PageSourceSearch

https://lunarastro.com/_next/static/chunks/app/(home)/page-c6252d52e084ec30.js

js lunarastro.com collected 2026-10-09 22:39:36 UTC 12,334 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7813],{1199:(e,t,s)=>{"use strict";s.d(t,{BlogSection:()=>m});var a=s(64537),r=s(41417),l=s(4761),n=s.n(l),o=s(40824),i=s(35123),c=s(29691),d=s(75337);function m(){var e;let t=(0,i.Y)(()=>o.Gt.list({page:1,pageSize:5}),[]),s=null==(e=t.data)?void 0:e.rows;if(t.loading||t.error||!(null==s?void 0:s.length))return null;let[l,...m]=s;return(0,a.jsx)("section",{className:"px-6 py-16 sm:py-20",children:(0,a.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-maroon",children:[(0,a.jsx)(r.default,{src:"/home/Vector.svg",alt:"",width:16,height:16,className:"h-4 w-4"}),(0,a.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.2em]",children:"From the journal"})]}),(0,a.jsxs)("h2",{className:"mt-3 font-serif text-3xl font-normal leading-tight text-ink sm:text-4xl",children:["Lunar Astro ",(0,a.jsx)("span",{className:"font-playfair italic text-maroon",children:"Blog"})]})]}),(0,a.jsxs)(n(),{href:"/blog",className:"group inline-flex w-fit shrink-0 items-center gap-2 rounded-full bg-maroon px-5 py-2.5 text-sm font-medium text-white shadow-card transition hover:bg-maroon-light",children:["More Blog Posts",(0,a.jsx)("span",{className:"transition-transform duration-300 group-hover:translate-x-0.5 group-hover:-translate-y-0.5",children:(0,a.jsx)(c.I,{name:"arrowUpRight",size:14})})]})]}),(0,a.jsxs)("div",{className:"mt-10 grid items-stretch gap-6 lg:grid-cols-2",children:[(0,a.jsx)(d.$G,{post:l,href:"/blog/".concat(l.slug)}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:m.map(e=>(0,a.jsx)(d.LX,{post:e,href:"/blog/".concat(e.slug)}
1,e.id))})]})]})})}},9728:(e,t,s)=>{Promise.resolve().then(s.bind(s,1199)),Promise.resolve().then(s.bind(s,55423)),Promise.resolve().then(s.bind(s,21889)),Promise.resolve().then(s.bind(s,42509)),Promise.resolve().then(s.t.bind(s,4761,23)),Promise.resolve().then(s.t.bind(s,14310,23))},21189:(e,t,s)=>{"use strict";s.d(t,{J:()=>n});var a=s(12851),r=s(15533);let l={chat:(e,t)=>(0,r.Em)("/assistant/chat",{method:"POST",body:JSON.stringify({messages:e,leadCaptured:t})})},n=(0,a.v)((e,t)=>({open:!1,messages:[],draft:"",busy:!1,leadCaptured:!1,setDraft:t=>e({draft:t}),openPanel:s=>{0===t().messages.length?e({open:!0,messages:[{role:"assistant",content:"Namaste \uD83D\uDE4F I am the Lunar Astro assistant. Ask me about our courses, booking a consultation, our books — or anything astrology.",local:!0}]}):e({open:!0}),(null==s?void 0:s.trim())&&t().send(s)},closePanel:()=>e({open:!1}),send:async s=>{let a=s.trim();if(!a||t().busy)return;let r=[...t().messages,{role:"user",content:a}];e({messages:r,draft:"",busy:!0});let n=r.filter(e=>!e.local&&e.content.trim().length>0).map(e=>{let{role:t,content:s}=e;return{role:t,content:s.slice(0,2e3)}}).slice(-30);for(;n.length>0&&"assistant"===n[0].role;)n.shift();try{let s=await l.chat(n,t().leadCaptured);e({messages:[...t().messages,{role:"assistant",content:s.message,action:s.action}],busy:!1,leadCaptured:t().leadCaptured||s.leadSaved})}catch(s){e({messages:[...t().messages,{role:"assistant",content:"Sorry — something went wrong on my side. Please try that again.",local:!0}],busy:!1})}}}))},21889:(e,t,s)=>{"use strict";s.d(t,{VideoCarousel:()=>o});var a=s(64537),r=s(29537),l=s(42509);function n(){return(0,a.jsxs)("span",{className:"absolute left-3 top-3 z-10 inline-flex items-center gap-1 rounded bg-white/95 px-1.5 py-0.5 shadow-sm",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-5 text-[#ff0000]",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-5.8ZM9.6 15.6V8.4l6.3 3.6-6.3 3.6Z"})}),(0,a.jsx)("span",{className:"text-[10px] font-semibold tracking-tight text-ink",children:"YouTube"})]})}function o(e){let{videos:t}=e;return(0,a.jsx)(l.Carousel,{children:t.map(e=>(0,a.jsxs)("a",{href:"https://www.youtube.com/watch?v=".concat(e.id),target:"_blank",rel:"noopener noreferrer",className:"group relative block aspect-video overflow-hidden rounded-2xl shadow-card",children:[(0,a.jsx)(n,{}),(0,a.jsx)(r.VideoThumb,{id:e.id,alt:e.title}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)(r.PlayButton,{})}),(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 to-transparent p-4 pt-10",children:(0,a.jsx)("p",{className:"text-center text-sm text-white",children:e.title})})]},e.id))})}},42509:(e,t,s)=>{"use strict";s.d(t,{Carousel:()=>n});var a=s(64537),r=s(1997);function l(e){let{dir:t}=e;return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"h-4 w-4",children:(0,a.jsx)("path",{d:-1===t?"M15 18l-6-6 6-6":"M9 18l6-6-6-6",strokeLinecap:"round",strokeLinejoin:"round"})})}function n(e){let{children:t,slideClassName:s="w-full shrink-0 snap-start px-2.5 sm:w-1/2 lg:w-1/3"}=e,n=(0,r.useRef)(null),[o,i]=(0,r.useState)({page:0,pages:1}),c=()=>{let e=n.current;e&&i({page:Math.round(e.scrollLeft/e.clientWidth),pages:Math.max(1,Math.ceil(e.scrollWidth/e.clientWidth))})};(0,r.useEffect)(c,[t.length]);let d=e=>{var t;return null==(t=n.current)?void 0:t.scrollBy({left:e*n.current.clientWidth,behavior:"smooth"})};return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{ref:n,onScroll:c,className:"flex snap-x snap-mandatory items-stretch overflow-x-auto scroll-smooth [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:t.map((e,t)=>(0,a.jsx)("div",{className:s,children:e},t))}),o.pages>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{"aria-label":"Previous",onClick:()=>d(-1),className:"absolute -left-2 top-1/2 z-10 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-white text-ink shadow-card transition hover:text-maroon lg:-left-6",children:(0,a.jsx)(l,{dir:-1})}),(0,a.jsx)("button",{"aria-label":"Next",onClick:()=>d(1),className:"absolute -right-2 top-1/2 z-10 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full bg-white text-ink shadow-card transition hover:text-maroon lg:-right-6",children:(0,a.jsx)(l,{dir:1})}),(0,a.jsx)("div",{className:"mt-8 flex items-center justify-center gap-2",children:Array.from({length:o.pages},(e,t)=>(0,a.jsx)("button",{"aria-label":"Go to slide ".concat(t+1),onClick:()=>{var e;return null==(e=n.current)?void 0:e.scrollTo({left:t*n.current.clientWidth,behavior:"smooth"})},className:"h-2 w-2 rounded-full transition-colors ".concat(t===o.page?"bg-maroon":"bg-maroon/25")},t))})]})]})}},55423:(e,t,s)=>{"use strict";s.d(t,{HomeHero:()=>u});var a=s(64537),r=s(4761),l=s.n(r),n=s(1997),o=s(21189),i=s(29691);let c=[{label:"Book a consultation",prompt:"I want to book a consultation"},{label:"2-year diploma",prompt:"Tell me about the 2-year diploma course"},{label:"Know about courses",prompt:"I want to know about your courses"},{label:"Latest podcast",prompt:"Where can I find your latest podcast and videos?"}
1],d=[{icon:"graduation",title:"Courses",blurb:"Foundation to advanced predictive",href:"/courses"},{icon:"calendar",title:"Consultation",blurb:"Book a session with trained panel",href:"/consultation/book"},{icon:"book",title:"Books",blurb:"Nakshatra series, karma, soul",href:"/books"},{icon:"megaphone",title:"Free wisdom",blurb:"Podcast, YouTube, daily panchang",href:"/blog"}],m=[{title:"Essentials of Astrology (Foundation Course)",meta:"Foundation \xb7 Self-paced",href:"/courses/essentials-of-astrology"},{title:"Predictive Astrology Part 1",meta:"Predictive Astrology",href:"/courses/predictive-astrology-part-1"},{title:"A Course on Navamsha (Jaimini Sutram)",meta:"Navamsha \xb7 D-9 chart",href:"/courses/navamsha-jaimini-sutram"},{title:"Marriage Karma",meta:"Karma & Relationships",href:"/courses/marriage-karma"}],h=[{value:"35,000+",label:"Consultations"},{value:"10,872",label:"Testimonials"},{value:"4.9 ★",label:"Avg rating"},{value:"2018",label:"Founded"}],x="border-[#e7d9c4]";function u(){let e=(0,o.J)(e=>e.openPanel),[t,s]=(0,n.useState)("");return(0,a.jsxs)("section",{className:"mx-auto max-w-6xl px-6 pb-8 pt-36 sm:pt-44",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-muted",children:"Vedic Academy \xb7 Since 2018"}),(0,a.jsxs)("h1",{className:"mt-5 font-serif text-4xl font-normal leading-tight text-ink sm:text-5xl lg:text-6xl",children:["How can I ",(0,a.jsx)("span",{className:"font-playfair italic text-maroon",children:"help you?"})]}),(0,a.jsx)("p",{className:"mt-4 max-w-xl text-sm text-ink/70 sm:text-base",children:"Ask anything — courses, consultations, classical concepts, predictions."}),(0,a.jsx)("form",{className:"relative mt-8 w-full max-w-xl",onSubmit:a=>{a.preventDefault(),t.trim()&&(e(t),s(""))},children:(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-full border ".concat(x," bg-white py-2 pl-5 pr-2 shadow-card"),children:[(0,a.jsx)(i.I,{name:"search",size:18,className:"shrink-0 text-muted"}),(0,a.jsx)("input",{value:t,onChange:e=>s(e.target.value),"aria-label":"Ask a question",placeholder:"Try: Saturn in Revati, marriage timing, Yogini dasha…",className:"min-w-0 flex-1 bg-transparent text-sm text-ink outline-none placeholder:text-muted/70 sm:text-base"}),(0,a.jsx)("button",{type:"submit",disabled:!t.trim(),className:"shrink-0 rounded-full bg-maroon px-4 py-2 text-xs font-medium text-white transition hover:brightness-110 disabled:opacity-40",children:"Enter ↵"})]})}),(0,a.jsx)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-2.5",children:c.map(t=>(0,a.jsx)("button",{type:"button",onClick:()=>e(t.prompt),className:"rounded-full border ".concat(x," bg-white/70 px-4 py-2 text-xs font-medium text-ink transition hover:border-maroon hover:text-maroon sm:text-sm"),children:t.label},t.label))})]}),(0,a.jsx)("div",{className:"mt-14 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:d.map(e=>(0,a.jsxs)(l(),{href:e.href,className:"rounded-2xl border ".concat(x," bg-white p-5 text-left shadow-card transition hover:-translate-y-0.5 hover:border-maroon"),children:[(0,a.jsx)(i.I,{name:e.icon,size:20,className:"text-maroon"}),(0,a.jsx)("h3",{className:"mt-6 font-serif text-lg font-normal text-ink",children:e.title}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-ink/60",children:e.blurb})]},e.href))}),(0,a.jsxs)("div",{className:"mt-14",children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between gap-4",children:[(0,a.jsx)("h2",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-muted",children:"What others are asking"}),(0,a.jsxs)(l(),{href:"/courses",className:"inline-flex items-center gap-1.5 text-xs font-medium text-maroon hover:underline",children:["View all",(0,a.jsx)(i.I,{name:"arrowUpRight",size:12})]})]}),(0,a.jsx)("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:m.map(e=>(0,a.jsxs)(l(),{href:e.href,className:"rounded-2xl border ".concat(x," bg-white px-5 py-4 transition hover:border-maroon"),children:[(0,a.jsx)("p",{className:"font-medium text-ink",children:e.title}),(0,a.jsx)("p",{className:"mt-1 text-xs text-ink/60",children:e.meta})]},e.href))})]}),(0,a.jsx)("div",{className:"mt-14 grid grid-cols-2 gap-8 border-t ".concat(x," pt-10 text-center sm:grid-cols-4"),children:h.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-serif text-3xl font-normal text-ink sm:text-4xl",children:e.value}),(0,a.jsx)("p",{className:"mt-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted",children:e.label})]},e.label))}),(0,a.jsx)("div",{className:"mt-10 flex justify-center",children:(0,a.jsx)("a",{href:"#founder","aria-label":"Scroll to the next section",className:"flex h-10 w-10 items-center justify-center rounded-full border ".concat(x," bg-white text-maroon shadow-card transition hover:bg-cream"),children:"↓"})})]})}}},e=>{e.O(0,[4761,4310,3760,5385,2313,7358],()=>e(e.s=9728)),_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.