PageSourceSearch

https://divinetalk.in/assets/HoroscopeDetail-V3BI2p7U.js

js divinetalk.in collected 2026-10-01 16:41:52 UTC 4,669 bytes, 1 lines download raw bytes

1import{r as i,a0 as S,j as e,O as H,N as $,L as r,p as z,q as P,A as T}from"./index-CjBBelq3.js";import{d as C}from"./dailyHoroscopeData-DtwnnOio.js";const A=()=>e.jsx("p",{children:"Loading..."}),R=()=>{var x,m,h,p,u,f,j,y,N,g,v,D;const[t,b]=i.useState(null),[E,d]=i.useState(!0),[k,F]=i.useState(!1),[a,L]=i.useState("today"),{zodiacName:c}=S(),s=c.charAt(0).toUpperCase()+c.slice(1),l=C.find(o=>o.zodiacName===s);return i.useEffect(()=>{(async()=>{try{d(!0);const n={signName:s},w=await T.getDailySignPrediction(n);w.status_code===200&&b(w.data)}catch(n){console.error("Failed to fetch horoscope:"+n)}finally{d(!1)}})()},[s]),i.useEffect(()=>{if(!localStorage.getItem("userData")){F(!0);return}},[]),e.jsxs(e.Fragment,{children:[e.jsx(H,{title:`${s} Daily Horoscope Today | Divine Talk`,description:`Read your ${s} daily horoscope for today, tomorrow, and yesterday. Discover what the stars have in store for your love life, career, and health on Divine Talk.`,keywords:`${s} daily horoscope, ${s} today, ${s} astrology, today's horoscope, divine talk horoscope`,url:`https://divinetalk.in/daily-horoscope/${c}`,breadcrumbs:[{name:"Home",url:"https://divinetalk.in"},{name:"Daily Horoscope",url:"https://divinetalk.in/daily-horoscope"},{name:s,url:`https://divinetalk.in/daily-horoscope/${c}`}]}),e.jsx($,{}),e.jsxs("div",{className:"mx-6 lg:mx-11 xl:mx-40 pt-8",children:[e.jsxs("span",{className:"hidden md:inline-flex gap-5 justify-center items-center font-medium text-[15px]",children:[e.jsx(r,{to:"/",children:e.jsx("img",{src:z,alt:"home"})}),">",e.jsx("span",{className:"",children:e.jsx(r,{to:"/daily-horoscope",children:"Daily Horoscope"})}),">",e.jsxs("span",{children:[" ",s]})]}),e.jsxs("span",{className:"md:hidden font-medium text-base space-x-5",children:[e.jsx("span",{className:"text-[24px] font-light align-middle",children:e.jsx(r,{to:"/daily-horoscope",children:"<"})}),e.jsx("span",{className:"",children:"Daily Horoscope"})]}),e.jsxs("div",{className:"flex items-center my-8 gap-6",children:[e.jsx("div",{className:"h-32 lg:h-[166px] w-32 lg:w-[166px] p-4 bg-[#FEF3F299] rounded-full",children:e.jsx("img",{className:"lg:h-[132px] lg:w-[132px]",src:l.zodiacImg,alt:l.zodiacName})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-2xl",children:s}),e.jsx("p",{className:"font-medium text-xs text-[#5F3C08]",children:l.zodiacDate})]})]}),e.jsx("div",{className:"w-full flex justify-between font-medium text-sm p-2 rounded-[26.5px] shadow-md shadow-[#0E233926]",children:["Yesterday","Today","Tomorrow"].map(o=>e.jsx("button",{type:"button",className:`flex-1 rounded-[18px] py-2 ${a===o.toLowerCase()?"bg-[#EF5862] text-white":" "}`,onClick:()=>L(o.toLowerCase()),children:o},o))}),e.jsx("article",{className:"my-8",children:E||!t||!t[a]?e.jsx(A,{}):e.jsxs("div",{className:" space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-[#EF5862] font-medium text-xl",children:"Personal Life"}),e.jsx("p",{className:"font-medium text-xs lg:text-base text-[#00000080]",children:(m=(x=t[a])==null?void 0:x.prediction)==null?void 0:m.personal_life})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-[#EF5862] font-medium text-xl",children:"Luck"}),e.jsx("p",{className:"font-medium text-xs lg:text-base text-[#00000080]",children:(p=(h=t[a])==null?void 0:h.prediction)==null?void 0:p.luck})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-[#EF5862] font-medium text-xl",children:"Health"}),e.jsx("p",{className:"font-medium text-xs lg:text-base text-[#00000080]",children:(f=(u=t[a])==null?void 0:u.prediction)==null?void 0:f.health})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-[#EF5862] font-medium text-xl",children:"Profession"}),e.jsx("p",{className:"font-medium text-xs lg:text-base text-[#00000080]",children:(y=(j=t[a])==null?void 0:j.prediction)==null?void 0:y.profession})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-[#EF5862] font-medium text-xl",children:"Emotion"}),e.jsx("p",{className:"font-medium text-xs lg:text-base text-[#00000080]",children:(g=(N=t==null?void 0:t[a])==null?void 0:N.prediction)==null?void 0:g.emotions})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-[#EF5862] font-medium text-xl",children:"Travel"}),e.jsx("p",{className:"font-medium text-xs lg:text-base text-[#00000080]",children:(D=(v=t[a])==null?void 0:v.prediction)==null?void 0:D.travel})]})]})})]}),k&&e.jsx("div",{className:"fixed inset-0 flex items-center  justify-center bg-black bg-opacity-50 z-20",children:e.jsx(P,{})})]})};export{R as default};

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.