(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{6322:function(e,o,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/horoscope/[time-period]/[label]",function(){return l(930)}])},930:function(e,o,l){"use strict";l.r(o),l.d(o,{__N_SSP:function(){return k},default:function(){return H}});var t=l(1527),s=l(959),r=l(2380),a=l(3028),c=l(7615),i=l.n(c),n=l(9470),d=l.n(n),p=l(6062),m=l(1672),u=l(5072);l(3756);var x=l(7981),h=l(1245),y=l(5800),f=l(673),b=l(509),j=l(982);function v(e){let o=new Date(e),l=o.getDate(),t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()],s=o.getFullYear();return"".concat(l," ").concat(t," ").concat(s)}let g={aries:"(March 21 - April 19)",taurus:"(April 20 - May 20)",gemini:"(May 21 - June 20)",cancer:"(June 21 - July 22)",leo:"(July 23 - August 22)",libra:"(September 23 - October 22)",scorpio:"(October 23 – November 21)",sagittarius:"(November 22 – December 21)",Capricorn:" (December 22 – January 19)",aquarius:"(January 20 – February 18)",pisces:"(February 19 – March 20)"},N={"daily-horoscope":"today","today-horoscope":"today","tomorrow-horoscope":"tomorrow","yesterday-horoscope":"yesterday","weekly-horoscope":"weekly","monthly-horoscope":"monthly","yearly-horoscope":"annual"},w={"daily-horoscope":"daily","today-horoscope":"today","tomorrow-horoscope":"tomorrow","yesterday-horoscope":"yesterday","weekly-horoscope":"weekly","monthly-horoscope":"monthly","yearly-horoscope":"annual"},_={"daily-horoscope":e=>({date:v(e),title:"Daily Horoscope"}),"today-horoscope":e=>({date:v(e),title:"Today's Horoscope"}),"tomorrow-horoscope":e=>({date:v(e),title:"Tomorrow Horoscope"}),"yesterday-horoscope":e=>({date:v(e),title:"Yesterday Horoscope"}),"weekly-horoscope":e=>({date:e,title:"Weekly Horoscope"}),"monthly-horoscope":e=>({date:e||"25, July 2024",title:"Monthly Horoscope"}),"yearly-horoscope":e=>({date:e,title:"Yearly Horoscope"})};var k=!0;function H(e){var o,l;let{timePeriod:c,zodiac:n}=e,{query:v,push:k,locale:H}=(0,a.useRouter)(),[M,S]=(0,s.useState)(null),E=(null===(l=f.W[H])||void 0===l?void 0:null===(o=l[w[c]])||void 0===o?void 0:o[n])||null,[O,F]=(0,s.useState)(null);return(0,s.useEffect)(()=>{!v["time-period"]||!v.label||u.Z.public.getHoroscope({period:N[v["time-period"]],horoscope:String(v.label).toUpperCase(),lang:H},e=>{let{success:o,data:l}=e;o&&(F((0,_[v["time-period"]])(null==l?void 0:l.date)),S(l))})},[v]),(0,t.jsxs)(r.Z,{children:[c&&n&&(0,t.jsx)(y.I,{metaProps:(0,b.Xe)(c,(0,j.zH)(n))}),(0,t.jsxs)("div",{className:"bg-[#F3F3F6]",children:[(0,t.jsxs)("div",{className:"sm:py-12 py-4",children:[(0,t.jsxs)(h.H1,{className:"dark-title capitalize font-medium sm:text-5xl text-2xl text-center",children:[null==v?void 0:v.label," ",null==O?void 0:O.title]}),(0,t.jsx)("h4",{className:"capitalize font-medium text-center sm:text-3xl text-xl sm:mt-10 mt-2",children:null==O?void 0:O.date})]}),(0,t.jsxs)("div",{className:"flex flex-col-reverse sm:flex-row  gap-4 py-4 sm:px-32 px-4",children:[(0,t.jsxs)("div",{className:"bg-white shadow-sm py-6 px-8 rounded-2xl",children:[(0,t.jsx)(h.H2,{className:"font-medium text-2xl mb-4",children:"SELECT OTHER SIGN"}),(null==v?void 0:v.label)&&(0,t.jsx)("select",{defaultValue:null==v?void 0:v.label,onChange:e=>{k("/horoscope/".concat(v["time-period"],"/").concat(e.target.value||"aries"))},className:"w-full py-2 px-3 shadow-sm capitalize my-2 rounded-xl border-[1px] border-slate-400 ",children:p.k3.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label}))}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 font-medium mt-4",children:[(0,t.jsx)(h.H3,{className:"font-medium text-2xl pb-2 border-b-[1px] border-slate-800",children:"Other categories:"}),(0,t.jsx)("ul",{className:"list-disc ml-4 flex flex-col gap-4",children:p.Qs.map(e=>{let o=e.value==v["time-period"];return(0,t.jsx)("li",{children:(0,t.jsx)(d(),{className:"font-medium ".concat(o?"text-[#c92f38]":""),href:"/horoscope/".concat(e.value,"/").concat((null==v?void 0:v.label.toLocaleLowerCase())||"aries"),children:e.label})})})})]})]}),(0,t.jsxs)("div",{className:"bg-white flex-1 flex flex-col gap-4 py-6 px-6 rounded-2xl text-justify",children:[(null==g?void 0:g[null==v?void 0:v.label])&&(0,t.jsx)("p",{children:null==g?void 0:g[null==v?void 0:v.label]}),(null==M?void 0:M.prediction)&&(0,t.jsx)(t.Fragment,{children:Object.keys(null==M?void 0:M.prediction).map(e=>(0,t.jsx)(J,{content:null==M?void 0:M.prediction[e],title:e,footer:"By Vedic Meet"}))}),(0,t.jsx)("p",{className:"text-[#c92f38] font-medium text-xl text-end",children:"By Vedic Meet"})]})]}),(0,t.jsxs)("div",{className:"bg-[#fff] mt-4 pt-2 pb-14",children:[(0,t.jsx)(h.H2,{className:"text-center font-medium text-3xl pt-7 pb-2 text-slate-900",children:"Other Zodiac Signs"}),(0,t.jsx)("span",{className:"flex justify-center",children:(0,t.jsx)(m.Um,{w:330})}),(0,t.jsx)("div",{className:"grid sm:grid-cols-4 tab:grid-cols-3 grid-cols-2 sm:gap-y-12 gap-y-4 sm:mx-8  justify-center items-center sm:px-40 px-4 mt-12",children:p.k3.map(e=>(0,t.jsxs)(d(),{href:"/horoscope/".concat(v["time-period"],"/").concat(e.label),className:"flex flex-col gap-1 items-center justify-center",children:[(0,t.jsx)(i(),{src:e.img,width:120,height:120,className:"rounded-full border-[2px] border-slate-300",alt:e.alt}),(0,t.jsx)("p",{className:"font-medium text-center capitalize text-lg text-slate-800",children:e.label})]}))})]}),(0,t.jsx)(x.Iz,{list:E},v["time-period"]+(null==v?void 0:v.label))]})]})}let J=e=>{let{title:o,content:l,footer:s}=e;return(0,t.jsxs)("p",{className:"text-slate-800",children:[(0,t.jsxs)("span",{className:"font-medium text-xl  capitalize text-[#c92f38]",children:[o,": ",(0,t.jsx)("br",{})," "]})," ",l,(0,t.jsx)("br",{}),"   "]})}}},function(e){e.O(0,[8639,6630,7348,4560,7660,2380,1700,7981,3756,2888,9774,179],function(){return e(e.s=6322)}),_N_E=e.O()}]);