PageSourceSearch

https://acharyaganesh.com/_next/static/chunks/0yqg48gs0.7m0.js

js acharyaganesh.com collected 2026-10-06 16:19:05 UTC 40,617 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26780,e=>{"use strict";var r=e.i(43476),t=e.i(71645),s=e.i(18566),a=e.i(22016),l=e.i(65526),n=e.i(25194);e.i(1526);var i=e.i(67898),o=e.i(95507);function d(){let{items:e,totals:t,isOpen:s,closeCart:d,removeItem:c}=(0,n.useCart)();if(!s)return null;let x=t.amount.toLocaleString("en-IN",{minimumFractionDigits:2});return(0,r.jsx)("div",{className:"fixed inset-0 z-[90] bg-black/50",onClick:d,role:"presentation",children:(0,r.jsxs)("aside",{className:"absolute right-0 top-0 flex h-full w-full max-w-md flex-col bg-card shadow-xl",onClick:e=>e.stopPropagation(),"aria-label":"Cart panel",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[(0,r.jsx)("h3",{className:"font-display text-xl font-bold text-heading",children:"Your Cart"}),(0,r.jsx)("button",{type:"button",onClick:d,className:"rounded-full p-2 text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close cart",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z",clipRule:"evenodd"})})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-4",children:0===e.length?(0,r.jsx)("p",{className:"text-center text-muted-foreground",children:"Your cart is empty."}):(0,r.jsx)("ul",{className:"space-y-4",children:e.map(e=>{let t=e.mrp>0?100-Math.round(e.price/e.mrp*100):0;return(0,r.jsxs)("li",{className:"flex gap-3 border-b border-border pb-4 last:border-b-0",children:[(0,r.jsx)("div",{className:"relative h-20 w-20 shrink-0 overflow-hidden rounded-lg bg-muted",children:(0,r.jsx)(i.Image,{src:e.image||"/logo.webp",alt:e.name,fill:!0,sizes:"80px",objectFit:"cover"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate font-medium text-heading",children:e.name}),(0,r.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-sm",children:[(0,r.jsxs)("span",{className:"font-semibold text-primary",children:["₹",e.price]}),e.mrp>e.price?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"text-muted-foreground line-through",children:["₹",e.mrp]}),(0,r.jsxs)("span",{className:"text-xs font-medium text-green-600",children:[t,"% off"]})]}):null]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>void c(e.productId),className:"self-start rounded p-2 text-muted-foreground hover:bg-muted hover:text-destructive","aria-label":`Remove ${e.name}`,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-4 w-4",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 013.878.512.75.75 0 11-.256 1.478l-.209-.035-1.005 13.07a3 3 0 01-2.991 2.77H8.084a3 3 0 01-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 01-.256-1.478A48.567 48.567 0 017.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 013.368 0c1.603.051 2.815 1.387 2.815 2.951zm-6.136-1.452a51.196 51.196 0 013.288 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 00-6 0v-.113c0-.794.609-1.428 1.364-1.452zm-.355 5.945a.75.75 0 10-1.5.058l.347 9a.75.75 0 101.499-.058l-.346-9zm5.48.058a.75.75 0 10-1.498-.058l-.347 9a.75.75 0 001.5.058l.345-9z",clipRule:"evenodd"})})})]},e.id)})})}),(0,r.jsxs)("div",{className:"border-t border-border px-5 py-4",children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between text-base font-semibold text-heading",children:[(0,r.jsx)("span",{children:"Total"}),(0,r.jsxs)("span",{children:["₹ ",x]})]}),(0,r.jsx)(a.default,{href:l.appPaths.checkout,onClick:d,className:(0,o.classes)("flex min-h-11 items-center justify-center rounded-full bg-primary px-6 py-3","text-sm font-semibold text-primary-foreground transition hover:bg-primary/90"),children:"Go to Checkout"})]})]})})}var c=e.i(20566),x=e.i(3242),h=e.i(82693);e.i(13250);let m="#5A1414",u={"--rb-green":"#7A1F1F","--rb-blue":"#8B3A3A","--rb-deep":"#5A1414","--rb-ivory":"#FFF8E7","--rb-surface":"#FFFFFF","--rb-mist":"#FBF3E4","--rb-gold":"#C79A3A","--rb-heading":m,"--foreground":"#3D2A2A","--muted-foreground":"#7A5C5C","--heading":m};e.i(12495);let p="#234B35",f={"--rb-green":"#3E6B3A","--rb-blue":"#2E4F6D","--rb-deep":"#1B3D2F","--rb-ivory":"#FFF8E7","--rb-surface":"#FFFFFF","--rb-mist":"#F3F7F0","--rb-gold":"#D4AF37","--rb-heading":p,"--foreground":"#2f4f3c","--muted-foreground":"#5f7a5c","--heading":p};function g({className:e,size:t=20}){return(0,r.jsxs)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
1children:[(0,r.jsx)("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),(0,r.jsx)("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]})}var b=e.i(81085),j=e.i(69262),v=e.i(8514);let w={facebook:b.FacebookIcon,instagram:function({className:e,size:t=20}){return(0,r.jsxs)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,r.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),(0,r.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,r.jsx)("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]})},twitter:v.TwitterIcon,linkedin:j.LinkedInIcon,pinterest:function({className:e,size:t=20}){return(0,r.jsxs)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,r.jsx)("path",{d:"M8 21.037c.37-.073 2.214-1.038 3.311-3.362.402-1.144 3.041-12.675 3.041-12.675"}),(0,r.jsx)("path",{d:"M12 8a4 4 0 1 0 0 8"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"})]})},youtube:function({className:e,size:t=20}){return(0,r.jsxs)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,r.jsx)("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.42a2.78 2.78 0 0 0-1.94 2C1 8.11 1 12 1 12s0 3.89.42 5.58a2.78 2.78 0 0 0 1.94 2c1.71.42 8.6.42 8.6.42s6.88 0 8.6-.42a2.78 2.78 0 0 0 1.94-2C23 15.89 23 12 23 12s0-3.89-.42-5.58z"}),(0,r.jsx)("polygon",{points:"9.75 15.02 15.5 12 9.75 8.98 9.75 15.02"})]})}};function N({icon:e,...t}){let s=w[e];return(0,r.jsx)(s,{...t})}function y({children:e,className:t}){return(0,r.jsx)("h3",{className:`${t} mb-5`,children:e})}function k({className:e}){return(0,r.jsx)("span",{className:e,"aria-hidden":!0,children:"›"})}function C({className:e}){return(0,r.jsx)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z"})})}function L({className:e}){return(0,r.jsx)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:18,height:18,"aria-hidden":!0,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z",clipRule:"evenodd"})})}function P({className:e}){return(0,r.jsxs)("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75","aria-hidden":!0,children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,r.jsx)("path",{d:"M8 12h8M12 8v8"})]})}let B=h.socialLinks.filter(e=>["facebook","instagram","youtube"].includes(e.icon));function A(){var e;let t=(0,s.usePathname)(),n=null;t===l.appPaths.rudrabhishekPuja?n=f:t===l.appPaths.kaalSarpDoshPuja&&(n=u);let o=(e=n)?{shell:"bg-[var(--rb-deep)] text-white/90 border-t border-[var(--rb-gold)]/25",shellStyle:e,heading:"font-display text-lg font-bold text-[var(--rb-gold)] sm:text-xl",link:"text-sm opacity-80 transition-all hover:text-[var(--rb-gold)] hover:opacity-100 font-sans",listItem:"flex items-start gap-2 align-center",tagline:"shrink-0 font-display text-sm italic text-[var(--rb-gold)]/90",accentLine:"h-px flex-1 bg-[var(--rb-gold)]/50",chevron:"-mt-[5px] shrink-0 text-[25px] leading-[25px] text-[var(--rb-gold)]",pin:"shrink-0 text-[var(--rb-gold)]",serviceIcon:"mt-0.5 shrink-0 text-[var(--rb-gold)]",viewMoreBtn:"inline-flex items-center gap-2 rounded border border-[var(--rb-gold)]/60 px-3 py-1.5 text-xs font-medium text-[var(--rb-gold)] transition hover:bg-[var(--rb-gold)]/10 font-sans",bottomBarBorder:"border-t border-white/10",socialBtn:"flex h-8 w-8 items-center justify-center rounded-full bg-white/10 text-white transition hover:scale-110 hover:bg-white/20",socialIcon:"text-[var(--rb-gold)]"}:{shell:"bg-footer text-footer-foreground",heading:"font-display text-lg font-bold text-accent sm:text-xl",link:"text-sm opacity-80 transition-all hover:text-accent hover:opacity-100 font-sans",listItem:"flex items-start gap-2 align-center",tagline:"shrink-0 font-display text-sm italic text-accent/90",accentLine:"h-px flex-1 bg-accent/50",chevron:"-mt-[5px] shrink-0 text-[25px] leading-[25px] text-accent",pin:"shrink-0 text-accent",serviceIcon:"mt-0.5 shrink-0 text-accent",viewM
1oreBtn:"inline-flex items-center gap-2 rounded border border-accent/60 px-3 py-1.5 text-xs font-medium text-accent transition hover:bg-accent/10 font-sans",bottomBarBorder:"border-t border-footer-foreground/10",socialBtn:"flex h-8 w-8 items-center justify-center rounded-full bg-footer-foreground/10 text-footer-foreground transition hover:scale-110 hover:bg-footer-foreground/20",socialIcon:"text-accent"},d=h.contactInfo.phones[0],x=h.contactInfo.emails[0],m=Math.ceil(h.footerLocationCities.length/2),p=[h.footerLocationCities.slice(0,m),h.footerLocationCities.slice(m)];return(0,r.jsxs)("footer",{className:`${o.shell} px-4 pt-12 pb-6 sm:px-6 lg:px-8 lg:pt-16`,style:o.shellStyle,children:[(0,r.jsxs)("div",{className:"mx-auto grid max-w-[1536px] grid-cols-1 gap-10 sm:grid-cols-2 xl:grid-cols-[minmax(0,7fr)_minmax(0,4fr)_minmax(0,6fr)_minmax(0,6fr)] xl:gap-8",children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-col items-center text-center sm:col-span-2 xl:col-span-1",children:[(0,r.jsx)(a.default,{href:"/",className:"mb-5 inline-block",children:(0,r.jsx)(i.Image,{src:"/brand-logo.webp",alt:"Acharya Ganesh Logo",size:"medium",objectFit:"contain"})}),(0,r.jsxs)("div",{className:"mb-5 flex w-full max-w-sm items-center gap-3",children:[(0,r.jsx)("span",{className:o.accentLine,"aria-hidden":!0}),(0,r.jsx)("p",{className:o.tagline,children:h.footerTagline}),(0,r.jsx)("span",{className:o.accentLine,"aria-hidden":!0})]}),(0,r.jsx)("p",{className:"mb-6 max-w-sm text-sm leading-relaxed opacity-80 font-sans",children:h.footerBrandDescription}),(0,r.jsxs)("div",{className:"flex w-full max-w-sm flex-col items-center gap-4",children:[(0,r.jsxs)("a",{href:h.contactInfo.addressUrl,target:"_blank",rel:"noopener noreferrer",className:`group flex items-start gap-3 ${o.link}`,children:[(0,r.jsx)(C,{className:`zoom-[1.6] ${o.pin}`}),(0,r.jsx)("span",{className:"max-w-[300px] leading-snug text-center",children:h.contactInfo.address})]}),x?(0,r.jsxs)("a",{href:`mailto:${x}`,className:`group flex items-center gap-3 ${o.link}`,children:[(0,r.jsx)(g,{className:`shrink-0 ${o.pin}`,size:18}),(0,r.jsx)("span",{children:x})]}):null,d?(0,r.jsxs)("a",{href:`tel:${d.tel}`,className:`group flex items-center gap-3 ${o.link}`,children:[(0,r.jsx)(L,{className:`shrink-0 ${o.pin}`}),(0,r.jsx)("span",{children:d.display})]}):null]})]}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)(y,{className:o.heading,children:"Quick Links"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3",children:h.quickLinks.map(e=>(0,r.jsxs)("li",{className:o.listItem,children:[(0,r.jsx)(k,{className:o.chevron}),(0,r.jsx)(a.default,{href:e.href,className:o.link,children:e.label})]},e.href))})]}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)(y,{className:o.heading,children:"Our Services Available In"}),(0,r.jsx)("div",{className:"mb-4 grid grid-cols-2 gap-x-3 gap-y-2.5",children:p.map((e,t)=>(0,r.jsx)("ul",{className:"flex flex-col gap-2.5",children:e.map(e=>(0,r.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(C,{className:o.pin}),(0,r.jsx)(a.default,{href:(0,h.getFooterLocationHref)(e),className:`${o.link} leading-tight`,children:e.label})]},e.label))},t))}),(0,r.jsxs)(a.default,{href:l.appPaths.citation,className:o.viewMoreBtn,children:["View More Cities",(0,r.jsx)("span",{"aria-hidden":!0,children:"→"})]}),(0,r.jsx)("p",{className:"mt-3 text-[11px] leading-relaxed opacity-50 font-sans",children:h.footerLocationsNote})]}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)(y,{className:o.heading,children:"Our Services"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3",children:h.footerServices.map(e=>(0,r.jsxs)("li",{className:o.listItem,children:[(0,r.jsx)(P,{className:o.serviceIcon}),(0,r.jsx)(a.default,{href:e.href,className:o.link,children:e.label})]},e.href))})]})]}),(0,r.jsxs)("div",{className:`mx-auto mt-10 flex max-w-[1536px] flex-col items-center justify-between gap-4 pt-6 sm:flex-row ${o.bottomBarBorder}`,children:[(0,r.jsxs)("p",{className:"text-xs opacity-60 font-sans sm:text-sm",children:["© ",new Date().getFullYear()," Acharya Ganesh. All Rights Reserved."]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("span",{className:"text-sm opacity-70 font-sans",children:"Follow Us:"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[B.map(e=>(0,r.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:o.socialBtn,"aria-label":e.platform,children:(0,r.jsx)(N,{className:o.socialIcon,icon:e.icon,size:16})},e.platform)),(0,r.jsx)("a",{href:c.whatsappUrl,target:"_blank",rel:"noopener noreferrer",className:"flex h-8 w-8 items-center justify-center rounded-full bg-[#25D366] text-white transition hover:scale-110","aria-label":"WhatsApp",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16","aria-hidden":!0,
1children:(0,r.jsx)("path",{d:"M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"})})})]})]})]})]})}var M=e.i(32341);function F({className:e}){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":!0,children:[(0,r.jsx)("path",{d:"M2.25 2.25a.75.75 0 000 1.5h1.386c.17 0 .318.114.362.278l2.122 8.607a3.75 3.75 0 003.657 2.89h9.67a3.75 3.75 0 003.657-2.89l2.122-8.607a.375.375 0 00-.362-.278H21.75a.75.75 0 000-1.5H2.25z"}),(0,r.jsx)("path",{d:"M5.26 15.74a.75.75 0 00-.75.75v.01c0 .414.336.75.75.75h13.48a.75.75 0 000-1.5H5.26zM7.5 20.25a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM18.75 20.25a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"})]})}function z({className:e}){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:e,"aria-hidden":!0,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"})})}function S({className:e}){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:e,"aria-hidden":!0,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})})}function I({label:e,onClick:t,href:s,icon:l,badge:n,destructive:i}){let d=(0,o.classes)("flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm font-medium transition",i?"text-destructive hover:bg-destructive/10":"text-heading hover:bg-muted"),c=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:l}),(0,r.jsx)("span",{className:"flex-1",children:e}),void 0!==n&&n>0?(0,r.jsx)("span",{className:"rounded-full bg-primary px-2 py-0.5 text-xs font-bold text-primary-foreground",children:n}):null]});return s?(0,r.jsx)(a.default,{href:s,className:d,onClick:t,children:c}):(0,r.jsx)("button",{type:"button",className:d,onClick:t,children:c})}function R({onNavigate:e,layout:s="desktop"}){var a;let i,{user:d,logout:c}=(0,M.useAuth)(),{totals:x,openCart:h}=(0,n.useCart)(),[m,u]=(0,t.useState)(!1),p=(0,t.useRef)(null),f=d?.name?.trim()||"User",g=(i=f.trim())?i.charAt(0).toUpperCase():"U",b=(a=d?.mobile||"")?10===a.length?`+91 ${a}`:a:"";(0,t.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},r=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",r)}},[]);let j=()=>{h(),u(!1),e?.()},v=()=>{c(),u(!1),e?.()},w=()=>{u(!1),e?.()};return"mobile"===s?(0,r.jsxs)("div",{className:"mt-4 space-y-3 border-t border-border pt-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 rounded-xl bg-muted/60 px-4 py-3",children:[(0,r.jsx)("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-primary font-display text-lg font-bold text-primary-foreground","aria-hidden":!0,
1children:g}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"truncate font-semibold text-heading",children:f}),b?(0,r.jsx)("p",{className:"truncate text-sm text-muted-foreground",children:b}):null]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(I,{label:"My Cart",icon:(0,r.jsx)(F,{className:"h-4 w-4"}),badge:x.count,onClick:j}),(0,r.jsx)(I,{label:"My Orders",href:l.appPaths.orders,icon:(0,r.jsx)(z,{className:"h-4 w-4"}),onClick:w}),(0,r.jsx)(I,{label:"Log out",icon:(0,r.jsx)(S,{className:"h-4 w-4"}),onClick:v,destructive:!0})]})]}):(0,r.jsxs)("div",{ref:p,className:"relative",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),className:(0,o.classes)("flex items-center gap-2 rounded-full border-2 border-foreground py-1 pl-1 pr-3","text-sm font-semibold text-foreground transition hover:bg-foreground/5",m&&"bg-foreground/5"),"aria-expanded":m,"aria-haspopup":"menu","aria-label":`Account menu for ${f}`,children:[(0,r.jsxs)("span",{className:"relative flex h-8 w-8 items-center justify-center rounded-full bg-primary font-display text-sm font-bold text-primary-foreground",children:[g,x.count>0?(0,r.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-bold text-accent-foreground ring-2 ring-background",children:x.count}):null]}),(0,r.jsx)("span",{className:"hidden max-w-[7rem] truncate xl:inline",children:f}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:(0,o.classes)("h-4 w-4 text-muted-foreground transition",m&&"rotate-180"),"aria-hidden":!0,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.94a.75.75 0 111.08 1.04l-4.24 4.5a.75.75 0 01-1.08 0l-4.24-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]}),m?(0,r.jsxs)("div",{role:"menu",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-64 overflow-hidden rounded-xl border border-border bg-card shadow-lg",children:[(0,r.jsxs)("div",{className:"border-b border-border bg-muted/40 px-4 py-3",children:[(0,r.jsx)("p",{className:"truncate font-semibold text-heading",children:f}),b?(0,r.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:b}):null]}),(0,r.jsxs)("div",{className:"p-2",children:[(0,r.jsx)("div",{role:"none",children:(0,r.jsx)(I,{label:"My Cart",icon:(0,r.jsx)(F,{className:"h-4 w-4"}),badge:x.count,onClick:j})}),(0,r.jsx)("div",{role:"none",children:(0,r.jsx)(I,{label:"My Orders",href:l.appPaths.orders,icon:(0,r.jsx)(z,{className:"h-4 w-4"}),onClick:w})}),(0,r.jsx)("div",{className:"my-1 border-t border-border",role:"separator"}),(0,r.jsx)("div",{role:"none",children:(0,r.jsx)(I,{label:"Log out",icon:(0,r.jsx)(S,{className:"h-4 w-4"}),onClick:v,destructive:!0})})]})]}):null]})}var $=e.i(16191);function D({layout:e}){return"mobile"===e?(0,r.jsx)("div",{className:"mt-4 h-12 animate-pulse rounded-full bg-muted","aria-hidden":!0}):(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"h-10 w-[7.5rem] animate-pulse rounded-full bg-muted","aria-hidden":!0}),(0,r.jsx)("div",{className:"h-10 w-[8.5rem] animate-pulse rounded-full bg-muted","aria-hidden":!0})]})}function T({onNavigate:e,layout:t="desktop"}){let{isAuthenticated:s,isAuthReady:n}=(0,M.useAuth)(),{openLogin:i}=(0,$.useLoginModal)();return n?"mobile"===t?(0,r.jsxs)("div",{className:"flex flex-col gap-3 mt-4",children:[s?(0,r.jsx)(R,{layout:"mobile",onNavigate:e}):(0,r.jsx)("button",{type:"button",onClick:()=>{i(),e?.()},className:"flex items-center justify-center gap-2 rounded-full border border-foreground px-5 py-3 font-semibold text-foreground",children:"Log in"}),(0,r.jsx)(a.default,{href:l.courseLoginUrl,onClick:e,className:"flex items-center justify-center gap-2 rounded-full border border-foreground px-5 py-3 text-center font-semibold text-foreground",children:"Course Login"})]}):(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[s?(0,r.jsx)(R,{layout:"desktop",onNavigate:e}):(0,r.jsxs)("button",{type:"button",onClick:i,className:(0,o.classes)("flex items-center gap-2 rounded-full border-2 border-foreground px-5 py-2","text-sm font-semibold text-foreground transition hover:bg-foreground
1/5"),children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-4 w-4","aria-hidden":!0,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z",clipRule:"evenodd"})}),"Log in"]}),(0,r.jsx)(a.default,{href:l.courseLoginUrl,className:(0,o.classes)("flex items-center gap-2 rounded-full border-2 border-foreground px-5 py-2","text-sm font-semibold text-foreground transition hover:bg-foreground/5"),children:"Course Login"})]}):(0,r.jsx)(D,{layout:t})}let W={items:[{lead:"Celebrate Shravan 2026 with devotion •",link:{label:"Book Rudrabhishek Puja",href:l.appPaths.rudrabhishekPuja}},{lead:"Seek relief from Kaal Sarp Dosh •",link:{label:"Book Kaal Sarp Dosh Puja",href:l.appPaths.kaalSarpDoshPuja}},{lead:"Find clarity with expert astrology •",link:{label:"Start Your Consultation",href:l.appPaths.bookConsultationForm}},{lead:"Personalized astrology •",link:{label:"Book Consultation",href:l.appPaths.bookConsultationForm}},{lead:"Honor Lord Shiva this Shravan 2026 •",link:{label:"Book Rudrabhishek Puja",href:l.appPaths.rudrabhishekPuja}},{lead:"Nag Panchami special •",link:{label:"Book Kaal Sarp Dosh Puja",href:l.appPaths.kaalSarpDoshPuja}}]};function O(){return(0,r.jsx)("span",{className:"mx-3 text-[10px] text-secondary sm:mx-4","aria-hidden":!0,children:"✦"})}function E({item:e}){return(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 whitespace-nowrap",children:[(0,r.jsx)("span",{className:"text-primary-foreground/90",children:e.lead}),(0,r.jsx)(a.default,{href:e.link.href,className:"font-semibold text-primary-foreground underline decoration-primary-foreground/50 underline-offset-[3px] transition hover:decoration-primary-foreground",children:e.link.label})]})}function U(){return(0,r.jsx)(r.Fragment,{children:W.items.map((e,t)=>(0,r.jsxs)("span",{className:"inline-flex items-center",children:[t>0?(0,r.jsx)(O,{}):null,(0,r.jsx)(E,{item:e})]},e.link.label))})}function H(){let e=W.items.map(e=>`${e.lead} ${e.link.label}`).join(" · ");return(0,r.jsxs)("div",{className:"relative h-8 overflow-hidden border-b border-primary/20 bg-primary text-primary-foreground",role:"region","aria-label":"Promotion",children:[(0,r.jsxs)("div",{className:"promo-marquee-track flex h-full w-max items-center px-4 text-[11px] leading-none sm:px-6 sm:text-xs motion-reduce:hidden",children:[(0,r.jsx)("span",{className:"inline-flex items-center pr-8",children:(0,r.jsx)(U,{})}),(0,r.jsx)("span",{className:"inline-flex items-center pr-8","aria-hidden":!0,children:(0,r.jsx)(U,{})})]}),(0,r.jsx)("p",{className:"hidden h-full items-center justify-center truncate px-4 text-center text-[11px] leading-none sm:text-xs motion-reduce:flex",children:e})]})}let V=[{name:"Home",href:l.appPaths.home},{name:"About",href:l.appPaths.aboutUs},{name:"Courses",href:l.appPaths.course},{name:"Products",href:l.appPaths.products},{name:"Reports",href:l.appPaths.reports},{name:"Services",href:l.appPaths.services},{name:"Contact",href:l.appPaths.contact},{name:"Blogs",href:l.appPaths.blogs}];function _({showPromoStrip:e=!1}){let[s,l]=(0,t.useState)(!1);return(0,r.jsxs)("header",{className:"sticky top-0 z-50 w-full shrink-0 flex flex-col font-sans bg-background border-b border-border",children:[e?(0,r.jsx)(H,{}):null,(0,r.jsx)("div",{className:"w-full",children:(0,r.jsxs)("div",{className:"mx-auto flex min-h-[80px] max-w-[1536px] items-center justify-between px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)(a.default,{href:"/",className:"z-50 shrink-0",children:(0,r.jsx)(i.Image,{src:"/logo.webp",alt:"Acharya Ganesh Logo",width:72,height:72,className:"h-[72px] w-[72px]",objectFit:"contain",priority:!0})}),(0,r.jsxs)("div",{className:"hidden lg:flex items-center gap-8 text-sm font-medium",children:[(0,r.jsx)("div",{className:"flex items-center gap-4",children:h.contactInfo.phones.map(e=>(0,r.jsx)(G,{phone:e,className:"flex items-center gap-2 text-foreground hover:text-primary transition",iconWrapperClassName:"p-1.5 rounded-full border-2 border-foreground flex items-center justify-center",iconClassName:"w-4 h-4"},e.tel))}),(0,r.jsx)(T,{})]}),(0,r.jsx)("button",{className:"lg:hidden p-2 text-foreground z-50",onClick:()=>l(!s),"aria-label":"Toggle Menu",children:s?(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-7 h-7",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-7 h-7",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})})]})}),(0,r.jsx)("nav",{className:"hidden w-full border-t border-border lg:block",children:(0,r.jsx)("ul",{className:"mx-auto flex max-w-[1536px] flex-wrap items-center justify-center gap-12 py-4 text-base font-semibold text-foreground",children:V.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(a.default,{href:e.href,className:"hover:text-primary transition",children:e.name})},e.name))})}),s&&(0,r.jsxs)("div",{className:`fixed inset-0 ${e?"top-[7rem]":"top-[80px]"} bg-background z-40 lg:hidden flex flex-col p-6 overflow-y-auto`,children:[(0,r.jsx)("ul",{className:"flex flex-col gap-6 text-foreground font-semibold text-lg mb-8",children:V.map(e=>(0,r.jsx)("li",{className:"border-b border-border pb-4",children:(0,r.jsx)(a.default,{href:e.href,className:"hover:text-primary transition block",onClick:()=>l(!1),children:e.name})},e.href))}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 mt-auto",children:[h.contactInfo.phones.map(e=>(0,r.jsx)(G,{phone:e,className:"flex items-center gap-3 text-foreground font-semibold",iconWrapperClassName:"p-2 rounded-full border border-foreground flex items-center justify-center",iconClassName:"w-5 h-5"},e.tel)),(0,r.jsx)(T,{layout:"mobile",onNavigate:()=>l(!1)})]})]})]})}function G({phone:e,className:t,iconWrapperClassName:s,iconClassName:a}){return(0,r.jsxs)("a",{href:`tel:${e.tel}`,className:t,children:[(0,r.jsx)("span",{className:s,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",className:a,"aria-hidden":!0,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 006.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5z",clipRule:"evenodd"})})}),(0,r.jsx)("span",{className:"font-semibold",children:e.display})]})}function K(){let e=[{label:"Home",href:"/",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})})},{label:"WhatsApp",href:c.whatsappUrl,icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 16 16",children:(0,r.jsx)("path",{d:"M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"})})},{label:"Contact",href:l.appPaths.contact,icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})},{label:"Booking",href:l.appPaths.bookConsultation,icon:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,r.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,r.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,r.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),(0,r.jsx)("polyline",{points:"9 16 11 18 15 14"})]})}];return(0,r.jsx)("nav",{className:"lg:hidden fixed bottom-0 left-0 right-0 bg-background border-t border-border z-[100] safe-area-bottom",children:(0,r.jsx)("div",{className:"flex justify-around items-center h-20",children:e.map(e=>(0,r.jsxs)(a.default,{href:e.href,className:"flex flex-col items-center justify-center gap-1.5 w-full text-xs font-bold text-primary transition-all hover:scale-105 active:scale-95",children:[(0,r.jsx)("div",{className:"flex items-center justify-center h-7 w-7",children:e.icon}),(0,r.jsx)("span",{className:"font-sans tracking-wide uppercase",children:e.label})]},e.label))})})}function Y({children:e}){let t=(0,s.usePathname)(),a=(0,s.useSearchParams)(),n="/payment/success"===t&&"workshop"===a.get("type");return/^\/web-stories\/[^/]+$/.test(t)||n?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{showPromoStrip:t===l.appPaths.home}),(0,r.jsx)("main",{className:"flex-grow flex flex-col",children:e}),(0,r.jsx)(A,{}),(0,r.jsx)(K,{}),(0,r.jsx)(d,{}),(0,r.jsx)("a",{id:x.GLOBAL_WHATSAPP_ID,href:c.whatsappUrl,className:"fixed bottom-6 right-6 bg-[#25d366] text-white p-3.5 rounded-full shadow-lg hover:scale-110 transition-transform z-50 hidden lg:flex items-center justify-center",target:"_blank",rel:"noopener noreferrer","aria-label":"Contact us on WhatsApp",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"
1currentColor",viewBox:"0 0 16 16",children:(0,r.jsx)("path",{d:"M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"})})})]})}e.s(["DefaultLayout",0,function({children:e}){return(0,r.jsx)(t.Suspense,{fallback:(0,r.jsx)("main",{className:"flex-grow flex flex-col",children:e}),children:(0,r.jsx)(Y,{children:e})})}],26780)},55578,e=>{"use strict";var r=e.i(43476),t=e.i(71645),s=e.i(74169),a=e.i(32341),l=e.i(16191),n=e.i(95507);let i=/^[A-Za-z\s]{2,40}$/;function o({onClose:e}){let{login:l}=(0,a.useAuth)(),[d,c]=(0,t.useState)(""),[x,h]=(0,t.useState)(""),[m,u]=(0,t.useState)(""),[p,f]=(0,t.useState)("phone"),[g,b]=(0,t.useState)(""),[j,v]=(0,t.useState)(!1),[w,N]=(0,t.useState)(""),y=async()=>{let e,r=x.trim().replace(/\s+/g," ");if(e=r.trim().replace(/\s+/g," "),!i.test(e))return void b("Please enter a valid name (letters and spaces only, 2–40 chars).");let t=d.replace(/\D/g,"");if(t.length<10)return void b("Please enter a valid 10-digit phone number.");let a=t.slice(-10);N(a),v(!0),b("");try{await s.internalApi.login({mobileNumber:a,name:r}),f("otp")}catch{b("Failed to send OTP. Please try again.")}finally{v(!1)}},k=async()=>{if(4!==m.length)return void b("OTP must be 4 digits.");let r=x.trim().replace(/\s+/g," ");v(!0),b("");try{let t=await s.internalApi.verifyOtp({mobileNumber:w,otp:Number(m),name:r});t.token?(l({token:t.token,name:r,mobile:w}),e()):b(t.message||"Invalid OTP")}catch{b("Verification failed. Please try again.")}finally{v(!1)}};return(0,r.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/50 p-4",role:"dialog","aria-modal":"true","aria-labelledby":"login-modal-title",children:(0,r.jsxs)("div",{className:"relative w-full max-w-md rounded-2xl bg-card p-6 shadow-xl",children:[(0,r.jsx)("button",{type:"button",onClick:e,className:"absolute right-4 top-4 roun
1ded-full p-1 text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close login",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z",clipRule:"evenodd"})})}),(0,r.jsxs)("div",{className:"mb-6 text-center",children:[(0,r.jsx)("h2",{id:"login-modal-title",className:"font-display text-2xl font-bold text-heading",children:"phone"===p?"Continue with Phone":"Enter OTP"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"phone"===p?"You will receive a 4-digit OTP":`Sent to +91 ${w}`})]}),"phone"===p?(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"login-name",className:"mb-1 block text-sm font-medium text-heading",children:"Full Name"}),(0,r.jsx)("input",{id:"login-name",type:"text",autoComplete:"name",maxLength:40,value:x,onChange:e=>h(e.target.value.replace(/[^A-Za-z\s]/g,"")),placeholder:"Enter your full name",className:"w-full rounded-lg border border-border bg-background px-4 py-3 text-foreground outline-none focus:border-primary focus:ring-2 focus:ring-primary/20"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"login-phone",className:"mb-1 block text-sm font-medium text-heading",children:"Phone Number"}),(0,r.jsxs)("div",{className:"flex overflow-hidden rounded-lg border border-border focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/20",children:[(0,r.jsx)("span",{className:"flex items-center bg-muted px-3 text-sm font-medium text-muted-foreground",children:"+91"}),(0,r.jsx)("input",{id:"login-phone",type:"tel",inputMode:"numeric",autoComplete:"tel",maxLength:10,value:d,onChange:e=>c(e.target.value.replace(/\D/g,"")),placeholder:"10-digit mobile number",className:"w-full bg-background px-4 py-3 text-foreground outline-none"})]})]}),g?(0,r.jsx)("p",{className:"text-sm text-destructive",children:g}):null,(0,r.jsx)("button",{type:"button",onClick:y,disabled:j,className:(0,n.classes)("w-full rounded-full bg-primary px-6 py-3 text-sm font-semibold text-primary-foreground","transition hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-60"),children:j?"Sending...":"Get OTP"})]}):(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("input",{type:"text",inputMode:"numeric",maxLength:4,value:m,onChange:e=>u(e.target.value.replace(/\D/g,"")),placeholder:"4-digit OTP",className:"w-full rounded-lg border border-border bg-background px-4 py-3 text-center text-lg tracking-[0.5em] text-foreground outline-none focus:border-primary focus:ring-2 focus:ring-primary/20"}),g?(0,r.jsx)("p",{className:"text-sm text-destructive",children:g}):null,(0,r.jsx)("button",{type:"button",onClick:k,disabled:j,className:(0,n.classes)("w-full rounded-full bg-primary px-6 py-3 text-sm font-semibold text-primary-foreground","transition hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-60"),children:j?"Verifying...":"Verify OTP"})]})]})})}function d(){let{isOpen:e,closeLogin:t}=(0,l.useLoginModal)();return e?(0,r.jsx)(o,{onClose:t}):null}var c=e.i(25194);e.s(["AppProviders",0,function({children:e}){return(0,r.jsx)(a.AuthProvider,{children:(0,r.jsx)(l.LoginModalProvider,{children:(0,r.jsxs)(c.CartProvider,{children:[e,(0,r.jsx)(d,{})]})})})}],55578)}]);

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.