PageSourceSearch

https://www.jagran.com/_next/static/chunks/pages/astrology/shraadh-tithi-calculator-434d942018f33b7b.js

js jagran.com collected 2026-10-01 10:35:00 UTC 15,691 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47958],{37210:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/astrology/shraadh-tithi-calculator",function(){return t(7521)}])},7521:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>R});var i,l,n=t(74848),s=t(96540),r=t(71468),d=t(53565),o=t(92701),c=t.n(o),h=t(53521),u=t(7953),m=t(22729),g=t(64695),x=t.n(g),p=t(48398),_=t(55810);let v=e=>{let{handleSubmit:a,newMatchData:t,setNewMatchData:i,errors:l,setErrors:s,relationOptions:r,hours:d,minutes:o,placeQuery:h,setPlaceQuery:u,debouncedQuery:m,suggestions:g,showSuggestions:x,setShowSuggestions:v,handlePlaceSelect:j,apiError:f,loading:N}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:c().title,children:"श्राद्ध तिथि कैलकुलेटर"}),(0,n.jsxs)("div",{className:c().cardTithi,children:[(0,n.jsx)("h2",{className:c().sectionTitle,children:"श्राद्ध तिथि"}),(0,n.jsxs)("form",{onSubmit:a,noValidate:!0,children:[(0,n.jsx)("div",{className:c().formGrid,children:(0,n.jsxs)("div",{className:c().column,children:[(0,n.jsxs)("div",{className:c().formGroup,children:[(0,n.jsx)("label",{className:c().label,children:"मैं श्राद्ध तिथि की जांच करना चाहता हूं"}),(0,n.jsxs)("select",{className:c().select,value:t.relation,onChange:e=>{i({...t,relation:e.target.value}),s({...l,relation:""})},children:[(0,n.jsx)("option",{value:"",children:"संबंध चुनें"}),r.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]}),l.relation&&(0,n.jsx)("small",{style:{color:"red",fontSize:"0.8rem"},children:l.relation})]}),(0,n.jsxs)("div",{className:c().formGroup,children:[(0,n.jsx)("label",{className:c().label,children:"नाम :"}),(0,n.jsx)("input",{type:"text",placeholder:"नाम दर्ज करें",className:c().input,value:t.name,onChange:e=>{i({...t,name:e.target.value}),s({...l,name:""})}}),l.name&&(0,n.jsx)("small",{style:{color:"red",fontSize:"0.8rem"},children:l.name})]}),(0,n.jsxs)("div",{className:c().formGroup,children:[(0,n.jsx)("label",{className:c().label,children:"मृत्यु तिथि :"}),(0,n.jsx)(p.A,{value:t.deathDate,onChange:e=>{i({...t,deathDate:(0,_.formatDateToYMD)(e)}),s({...l,deathDate:""})}}),l.deathDate&&(0,n.jsx)("small",{style:{color:"red",fontSize:"0.8rem"},children:l.deathDate})]}),(0,n.jsxs)("div",{className:c().formGroup,children:[(0,n.jsx)("label",{className:c().label,children:"मृत्यु समय :"}),(0,n.jsxs)("div",{className:c().timeGrid,children:[(0,n.jsxs)("select",{className:c().select,value:t.deathHour,onChange:e=>{i({...t,deathHour:e.target.value}),s({...l,deathHour:""})},children:[(0,n.jsx)("option",{value:"",children:"Hours"}),d.map(e=>(0,n.jsx)("option",{value:e,children:e},e))]}),(0,n.jsxs)("select",{className:c().select,value:t.deathMinute,onChange:e=>{i({...t,deathMinute:e.target.value}),s({...l,deathMinute:""})},children:[(0,n.jsx)("option",{value:"",children:"Minutes"}),o.map(e=>(0,n.jsx)("option",{value:e,children:e},e))]}),(0,n.jsxs)("select",{className:c().select,value:t.deathAmPm,onChange:e=>i({...t,deathAmPm:e.target.value}),children:[(0,n.jsx)("option",{value:"AM",children:"AM"}),(0,n.jsx)("option",{value:"PM",children:"PM"})]})]}),(l.deathHour||l.deathMinute)&&(0,n.jsx)("small",{style:{color:"red",fontSize:"0.8rem"},children:l.deathHour||l.deathMinute})]}),(0,n.jsxs)("div",{className:c().formGroup,style:{position:"relative"},children:[(0,n.jsx)("label",{className:c().label,children:"मृत्यु का स्थान :"}),(0,n.jsx)("input",{type:"text",placeholder:"मृत्यु का स्थान दर्ज करें",className:c().input,value:h,onChange:e=>{let a=e.target.value;u(a),i(e=>({...e,deathPlace:a})),s(e=>({...e,deathPlace:""}))},onFocus:()=>m&&v(!0),onBlur:()=>setTimeout(()=>v(!1),200)}),l.deathPlace&&(0,n.jsx)("small",{style:{color:"red",fontSize:"0.8rem"},children:l.deathPlace}),x&&g.length>0&&(0,n.jsx)("ul",{style:{position:"absolute",top:"100%",left:0,right:0,background:"white",border:"1px solid #ccc",borderRadius:"4px",maxHeight:"200px",overflowY:"auto",zIndex:10,margin:0,padding:0,listStyle:"none"},children:g.map(e=>(0,n.jsx)("li",{onMouseDown:()=>j(e),style:{padding:"10px",cursor:"pointer",borderBottom:"1px solid #eee"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#f5f5f5",onMouseLeave:e=>e.currentTarget.style.backgroundColor="white",children:e.description},e.place_id))})]})]})}),f&&(0,n.jsx)("div",{style:{color:"red",fontSize:"0.9rem",textAlign:"center",margin:"1rem 0",padding:"0.5rem",backgroundColor:"#ffe6e6",borderRadius:"4px"},children:f}),(0,n.jsx)("div",{className:c().buttonContainer,children:(0,n.jsx)("button",{type:"submit",className:c().matchButton,disabled:N,children:N?"सबमिट हो रहा है...":"सबमिट करें"})})]})]})]})},j=function(e){let{tithiListing:a}=e;return(0,n.jsx)("div",{className:x().planetaryTable,children:(0,n.jsx)("div",{className:"p0 ".concat(x().borderTopRadius," ").concat(x().card),children:(0,n.jsx)("div",{className:"".concat(x().tableContainer," ").concat(x().borderTopRadius),children:(0,n.jsxs)("table",{className:x().dataTable,children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"संबंध"}),(0,n.jsx)("th",{children:"नाम"}
1),(0,n.jsx)("th",{children:"मृत्यु तिथि"}),(0,n.jsx)("th",{children:"मृत्यु समय"}),(0,n.jsx)("th",{children:"स्थान"}),(0,n.jsx)("th",{children:"वार्षिक श्राद्ध तिथि"})]})}),(0,n.jsx)("tbody",{children:a.map((e,a)=>(0,n.jsxs)("tr",{className:a%2==0?x().evenRow:x().oddRow,children:[(0,n.jsx)("td",{children:e.type}),(0,n.jsx)("td",{children:e.name}),(0,n.jsx)("td",{children:e.death_date}),(0,n.jsx)("td",{children:e.death_time}),(0,n.jsx)("td",{children:e.death_place}),(0,n.jsx)("td",{children:e.varshik_shraddha_tithi||"—"})]},e.id))})]})})})})};var f=t(89153),N=t.n(f);let b=e=>{let{result:a}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:N().header,children:"श्राद्ध तिथि"}),(0,n.jsxs)("div",{className:N().card,children:[(0,n.jsxs)("div",{className:N().infoGrid,children:[(0,n.jsx)("span",{className:N().label,children:"मृत्यु तिथि"}),(0,n.jsx)("span",{className:N().colon,children:":"}),(0,n.jsx)("span",{className:N().value,children:a.death_date}),(0,n.jsx)("span",{className:N().label,children:"मृत्यु समय"}),(0,n.jsx)("span",{className:N().colon,children:":"}),(0,n.jsx)("span",{className:N().value,children:a.death_time}),(0,n.jsx)("span",{className:N().label,children:"तिथि"}),(0,n.jsx)("span",{className:N().colon,children:":"}),(0,n.jsx)("span",{className:N().value,children:a.tithi}),(0,n.jsx)("span",{className:N().label,children:"नक्षत्र"}),(0,n.jsx)("span",{className:N().colon,children:":"}),(0,n.jsx)("span",{className:N().value,children:a.nakshatraName})]}),(0,n.jsxs)("div",{className:N().upcomingCard,children:[(0,n.jsx)("h2",{className:N().upcomingTitle,children:"आगामी वार्षिक श्राद्ध तिथि"}),(0,n.jsxs)("p",{className:N().upcomingText,children:[a.name," के लिए ",(0,n.jsx)("strong",{children:a.varshik_shraddha_tithi})]})]})]})]})};var y=t(73303),T=t(80121),S=t(52153),w=t(28133),A=t.n(w),C=t(92940),L=t(14953),P=t.n(L),M=t(77836);let D=P()(()=>t.e(46619).then(t.bind(t,46619)),{loadableGenerated:{webpack:()=>[46619]},ssr:!1}),k=(null==M?void 0:null===(i=M.env)||void 0===i?void 0:"https://api-astropatri.jagran.com/")||"",O=(null==M?void 0:null===(l=M.env)||void 0===l?void 0:"AIzaSyCQEoRz4qcZW9yYyKIA6EnW6sETLKBgc9w")||"";function R(){let e=(0,r.wA)(),[a,t]=(0,s.useState)({relation:"",name:"",deathDate:"",deathHour:"",deathMinute:"",deathAmPm:"AM",deathPlace:""}),[i,l]=(0,s.useState)(""),o=(0,m.A)(i,1e3),[g,p]=(0,s.useState)([]),[_,f]=(0,s.useState)(!1),[N,w]=(0,s.useState)(null),[L,P]=(0,s.useState)({}),[M,R]=(0,s.useState)(null),[G,E]=(0,s.useState)(!1),[H,z]=(0,s.useState)(null),[I,B]=(0,s.useState)(!1),[Y,F]=(0,s.useState)([]),[K,J]=(0,s.useState)(!0),Q=(0,r.d4)(e=>e.userData.user),X=(0,r.d4)(e=>e.userData.isAuthenticated),W=Array.from({length:12},(e,a)=>a+1),q=Array.from({length:60},(e,a)=>a),Z=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=()=>{Z.current=new window.google.maps.places.AutocompleteService};(()=>{var a,t;if(null===(t=window.google)||void 0===t?void 0:null===(a=t.maps)||void 0===a?void 0:a.places){e();return}let i=document.createElement("script");i.src="https://maps.googleapis.com/maps/api/js?key=".concat(O,"&libraries=places"),i.async=!0,i.onload=e,document.head.appendChild(i)})()},[]),(0,s.useEffect)(()=>{if(!o.trim()||!Z.current){p([]),f(!1);return}Z.current.getPlacePredictions({input:o,types:["(cities)"],componentRestrictions:{country:"in"}},(e,a)=>{a===window.google.maps.places.PlacesServiceStatus.OK&&e?(p(e),f(!0)):(p([]),f(!1))})},[o]);let U=async e=>{try{var a;J(!0);let{data:t}=await d.A.post("".concat(k,"api/shraddha-tithi/list"),{external_ref_id:e.external_ref_id,reg_id:e.id,kundli_id:e.kundli_id});(null==t?void 0:null===(a=t.reminderData)||void 0===a?void 0:a.shraddha_tithi_list)?F(t.reminderData.shraddha_tithi_list):F([])}catch(e){console.error("Error fetching Shraddha Tithi list:",e),F([])}finally{J(!1)}},V=async()=>{try{var a,t,i;if(Q&&0!==Object.keys(Q).length)B(!1);else{B(!0),e((0,h.DX)({message:{}}));return}E(!0);let{data:l}=await d.A.get("".concat(k,"api/users/get-users/JPL").concat(Q.user_id
1));if(null==l?void 0:null===(t=l.user)||void 0===t?void 0:null===(a=t.externalResponse)||void 0===a?void 0:a.user_data){let e=l.user.externalResponse.user_data,a=(0,S.bB)(l);localStorage.setItem("ASTROLOGY_FORM",JSON.stringify(a)),R({external_ref_id:e.external_ref_id,reg_id:(null===(i=e.id)||void 0===i?void 0:i.toString())||""}),await U(a)}else window.location.href="/astrology/kundli-registration-form"}catch(e){console.error("fetchUserData error:",e),window.location.href="/astrology/kundli-registration-form",localStorage.removeItem("ASTROLOGY_FORM")}finally{E(!1)}};(0,s.useEffect)(()=>{null!==X&&V()},[Q,X]);let $=()=>{let e={};return a.relation||(e.relation="संबंध चुनना अनिवार्य है"),a.name.trim()||(e.name="नाम अनिवार्य है"),a.deathDate||(e.deathDate="मृत्यु तिथि अनिवार्य है"),a.deathHour||(e.deathHour="घंटा अनिवार्य है"),a.deathMinute||(e.deathMinute="मिनट अनिवार्य है"),a.deathPlace.trim()||(e.deathPlace="मृत्यु स्थान अनिवार्य है"),P(e),0===Object.keys(e).length},ee=async e=>{var i,l,n,s;if(e.preventDefault(),!M){z("उपयोगकर्ता डेटा लोड नहीं हुआ।");return}if(!$()){z("कृपया सभी अनिवार्य फ़ील्ड भरें।");return}E(!0),z(null);let r={external_ref_id:M.external_ref_id,reg_id:M.reg_id,type:a.relation,name:a.name,dob:a.deathDate,birth_time:String(a.deathHour).padStart(2,"0"),birth_minute:String(a.deathMinute).padStart(2,"0"),time_set:a.deathAmPm,placebirth:a.deathPlace};try{let{data:e}=await d.A.post("".concat(k,"api/shraddha-tithi"),r,{headers:{"Content-Type":"application/json"},timeout:0}),a=null==e?void 0:null===(l=e.shraddhaTithi)||void 0===l?void 0:null===(i=l.shraddhaTithiData)||void 0===i?void 0:i.api_response;a&&w(a);let n={id:M.reg_id,external_ref_id:M.external_ref_id,kundli_id:localStorage.getItem("ASTROLOGY_FORM")?JSON.parse(localStorage.getItem("ASTROLOGY_FORM")).kundli_id:""};await U(n),t({relation:"",name:"",deathDate:"",deathHour:"",deathMinute:"",deathAmPm:"AM",deathPlace:""}),z(null)}catch(e){z((null===(s=e.response)||void 0===s?void 0:null===(n=s.data)||void 0===n?void 0:n.message)||"कुछ गलत हो गया, कृपया पुनः प्रयास करें।")}finally{E(!1)}};if(G||null===X)return(0,n.jsx)(C.A,{children:(0,n.jsx)("div",{className:x().mainContent,children:(0,n.jsx)("div",{className:"".concat(x().pageContainer," ").concat(x().container),children:(0,n.jsx)(u.A,{})})})});if(!N)return(0,n.jsx)(C.A,{children:(0,n.jsxs)("div",{className:c().kundliContainer,children:[(0,n.jsx)(v,{handleSubmit:ee,newMatchData:a,setNewMatchData:t,errors:L,setErrors:P,relationOptions:[{value:"Parents",label:"माता-पिता"},{value:"Spouse",label:"पति/पत्नी"},{value:"Children",label:"संतान"},{value:"Sibling",label:"भाई-बहन"},{value:"Friend",label:"मित्र"},{value:"Relative",label:"रिश्तेदार"}],hours:W,minutes:q,placeQuery:i,setPlaceQuery:l,debouncedQuery:o,suggestions:g,showSuggestions:_,setShowSuggestions:f,handlePlaceSelect:e=>{l(e.description),t(a=>({...a,deathPlace:e.description})),f(!1),P(e=>({...e,deathPlace:""}))},apiError:H,loading:G}),(0,n.jsx)("div",{style:{marginTop:"2rem"},children:K?(0,n.jsx)("div",{className:x().mainContent,children:(0,n.jsx)(u.A,{})}):Y.length>0?(0,n.jsx)("div",{className:" ".concat(x().containerListing),children:(0,n.jsx)(j,{tithiListing:Y})}):(0,n.jsx)("p",{style:{textAlign:"center",color:"#666"},children:"कोई श्राद्ध तिथि नहीं मिली। नया जोड़ें।"})})]})});let ea=(0,S.yb)();return(0,n.jsx)(C.A,{children:(0,n.jsx)("main",{className:x().mainContent,children:(0,n.jsxs)("div",{className:"".concat(x().pageContainer," ").concat(x().container),children:[(0,n.jsx)(T.A,{}),(0,n.jsx)(A(),{id:"datalayerAutoMobile",dangerouslySetInnerHTML:{__html:"var dataLayer = window.dataLayer || [];dataLayer.push({'event':'pageview','tvc_page_type':'shraadh tithi landing page','tvc_landing_page_type':'landing page','tvc_page_cat':'shraadh tithi','language':'hindi','uid': '".concat(ea.uid,"',\n            'usertype': '").concat(ea.usertype,"',\n            'registration_status': '").concat(ea.registration_status,"',\n            'loggeduser_id': '").concat(ea.loggeduser_id,"'});")}}),(0,n.jsx)(D,{sectionData:"shraadh-tithi",authorData:""}),(0,n.jsx)(y.A,{active:12,openModal:I}),(0,n.jsxs)("div",{className:x().rightContent,children:[N&&(0,n.jsx)(b,{result:N}),(0,n.jsx)("div",{children:K?(0,n.jsx)("div",{className:x().mainContent,children:(0,n.jsx)(u.A,{})}):Y.length>0?(0,n.jsx)(j,{tithiListing:Y}):(0,n.jsx)("p",{style:{textAlign:"center",color:"#666"}
1,children:"कोई श्राद्ध तिथि नहीं मिली। नया जोड़ें।"})})]})]})})})}},89153:e=>{e.exports={container:"TithiListing_container__m3aZA",header:"TithiListing_header__9SBBC",card:"TithiListing_card__G5GgH",infoGrid:"TithiListing_infoGrid___gluR",label:"TithiListing_label__nQbj8",colon:"TithiListing_colon__W9YoP",value:"TithiListing_value__Ieiyq",upcomingCard:"TithiListing_upcomingCard__v8zdB",upcomingTitle:"TithiListing_upcomingTitle__0k6SP",upcomingText:"TithiListing_upcomingText__iORCb",highlight:"TithiListing_highlight__MPW0q",listContainer:"TithiListing_listContainer__RHZFg",listCard:"TithiListing_listCard__eL7PN",listCardHover:"TithiListing_listCardHover__ahj07",listGrid:"TithiListing_listGrid__OKPJt",dateBox:"TithiListing_dateBox__xkcXx",day:"TithiListing_day__yLDGE",monthYear:"TithiListing_monthYear__K8Jru",eventDetails:"TithiListing_eventDetails__Nww0l",eventTitle:"TithiListing_eventTitle__Kz75P",eventInfo:"TithiListing_eventInfo__fO4Xr"}}},e=>{var a=a=>e(e.s=a);e.O(0,[76424,19957,38441,75616,14248,90636,46593,38792],()=>a(37210)),_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.