PageSourceSearch

https://aiginroyalpark.com/_next/static/chunks/3u96ywqlgv1uw.js

js aiginroyalpark.com collected 2026-10-08 01:07:45 UTC 13,442 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93732,e=>{"use strict";var t=e.i(43476),a=e.i(71645),n=e.i(97585),r=e.i(19099);let l="What is your good name?",o="Name",s="Your full name",i="Please tell us your name so we know who we are speaking to.",c="{name}, on which number can we call or WhatsApp you?",d="Mobile number",u="+91 XXXXX XXXXX",m="Please enter a mobile number of at least 10 digits.",p="{name}, which layout are you looking for?",h=[{value:"3 BHK",note:"1,895 – 1,925 sq ft"},{value:"4 BHK",note:"2,475 – 2,575 sq ft"},{value:"Not Decided",note:"Send me both"}],x="What is your expected budget?",g=[{value:"< 1 Cr."},{value:"1-2 Cr."},{value:"2-3 Cr."},{value:"> 3 Cr."}],f={heading:"Thank you",body:"Thank you, {name}. Your details have reached our sales desk and our relationship manager will contact you soon, usually within {hours} working hours.",footnote:`Prefer to talk now? Call ${r.contact.phone} or WhatsApp ${r.contact.whatsappDisplay}.`};r.contact.siteOffice,r.contact.corporateOfficeCompany,r.contact.corporateOffice;let b=`${r.project.name}, ${r.contact.siteOffice}`;encodeURIComponent(b),encodeURIComponent(b);var y=e.i(75679);let v="https://api.web3forms.com/submit",j={name:"",phone:"",layout:"",budget:""},N=e=>e.replace(/\D/g,"").length>=10,w=e=>e.trim().split(/\s+/)[0]??"";function k({step:e,uid:a,children:n}){return(0,t.jsxs)("div",{role:a?"group":void 0,"aria-labelledby":a?`${a}-q${e}`:void 0,className:"hairline-gold relative flex h-full min-h-[25rem] flex-1 flex-col rounded-sm border bg-emerald-900/70 p-6 shadow-[0_18px_48px_-24px_rgba(0,0,0,0.85)] sm:min-h-[24rem] sm:p-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("p",{className:"label-caps text-gold",children:["Question ",e+1," of ",4]}),(0,t.jsx)("div",{"aria-hidden":"true",className:"flex gap-1.5",children:Array.from({length:4}).map((a,n)=>(0,t.jsx)("span",{className:"h-1 rounded-full transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",style:{width:n===e?"1.5rem":"0.4rem",backgroundColor:n<=e?"var(--color-gold)":"color-mix(in srgb, var(--color-gold) 25%, transparent)"}},n))})]}),n]})}function C({step:e,answers:a,picked:n,uid:r,disabled:i,sending:m,error:f,onName:b,onPhone:y,onNameNext:v,onPhoneNext:j,onLayout:N,onBudget:k}){let _=w(a.name)||"there",I=`${r}-q${e}`,P=`${r}-e${e}`;return 0===e?(0,t.jsx)(q,{qId:I,errId:P,question:l,label:o,placeholder:s,value:a.name,onChange:b,onNext:v,error:f,disabled:i,inputProps:{type:"text",autoComplete:"name",autoCapitalize:"words"}}):1===e?(0,t.jsx)(q,{qId:I,errId:P,question:c.replace("{name}",_),label:d,placeholder:u,value:a.phone,onChange:y,onNext:j,error:f,disabled:i,inputProps:{type:"tel",inputMode:"tel",autoComplete:"tel",maxLength:18},hint:"We call or WhatsApp this number. We never share it with anyone else."}):2===e?(0,t.jsx)($,{qId:I,question:p.replace("{name}",_),choices:h,picked:n,disabled:i,onPick:N}):(0,t.jsx)($,{qId:I,question:x,choices:g,picked:n,disabled:i,sending:m,columns:!0,onPick:k})}function q({qId:e,errId:a,question:r,label:l,placeholder:o,value:s,onChange:i,onNext:c,error:d,disabled:u,inputProps:m,hint:p}){let h=`${a}-input`;return(0,t.jsxs)("form",{className:"flex flex-1 flex-col",onSubmit:e=>{e.preventDefault(),c()},children:[(0,t.jsx)("h3",{id:e,"data-clarity-mask":"True",className:"font-display mt-6 text-balance text-[clamp(1.15rem,2.6vw,1.5rem)] leading-snug text-ivory",children:r}),(0,t.jsx)(n.Ornament,{className:"mt-5 justify-start",width:"2.5rem"}),(0,t.jsx)("label",{htmlFor:h,className:"label-caps mt-7 block text-gold",children:l}),(0,t.jsx)("input",{...m,id:h,value:s,disabled:u,onChange:e=>i(e.target.value),placeholder:o,"aria-invalid":!!d||void 0,"aria-describedby":d?a:void 0,className:"mt-2 w-full rounded-sm border border-gold/30 bg-black/25 px-3.5 py-3 text-[0.95rem] text-ivory placeholder:text-ivory/35 transition-colors focus:border-gold focus:outline-none focus-visible:ring-2 focus-visible:ring-gold/40"}),d?(0,t.jsx)("p",{id:a,role:"alert",className:"mt-2.5 text-[0.85rem] text-camel",children:d}):p&&(0,t.jsx)("p",{className:"mt-2.5 text-[0.8rem] leading-relaxed text-ivory/72",children:p}),(0,t.jsx)("div",{className:"mt-auto pt-7",children:(0,t.jsx)("button",{type:"submit",disabled:u,className:"label-caps min-h-12 w-full rounded-sm bg-gold px-6 text-emerald-900 transition-colors hover:bg-gold-bright disabled:opacity-60",children:"Next"})})]})}function $({qId:e,question:a,choices:r,picked:l,disabled:o,sending:s=!1,columns:i=!1,onPick:c}){return(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,t.jsx)("h3",{id:e,"data-clarity-mask":"True",className:"font-display mt-6 text-balance text-[clamp(1.15rem,2.6vw,1.5rem)] leading-snug text-ivory",children:a}),(0,t.jsx)(n.Ornament,{className:"mt-5 justify-start",width:"2.5rem"}),(0,t.jsx)("div",{className:`mt-auto grid gap-3 pt-7 ${i?"grid-cols-2":"grid-cols-1"}`,children:r.map(e=>{let a=l===e.value;return(0,t.jsxs)("button",{type:"button",disabled:o,onClick:()=>c(e.value),className:`group flex min-h-14 flex-col items-start justify-center rounded-sm border px-4 py-2.5 text-left transition-colors duration-200 disabled:cursor-default ${a?"border-gold bg-gold text-emerald-900":"border-gold/35 bg-black/20 text-ivory hover:border-gold hover:bg-gold/10"} ${a?"quiz-choice-picked":""}`,children:[(0,t.jsx)("span",{className:"label-caps text-[0.72rem]",children:a&&s?"Sending…":e.value}),e.note&&(0,t.jsx)("span",{className:`mt-0.5 text-[0.72rem] leading-tight ${a?"text-emerald-900/75":"text-ivory/72"}`,children:e.note})]},e.value)})})]})}function _({name:e}){return(0,t.jsxs)("div",{role:"status",className:"hairline-gold flex h-full min-h-[25rem] flex-col items-center justify-center rounded-sm border bg-emerald-800/60 p-8 text-center sm:min-h-[24rem]",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"emblem-mask w-14 text-gold"}),(0,t.jsx)("h3",{className:"font-display mt-6 text-[1.25rem] text-gold",children:f.heading}),(0,t.jsx)(n.Ornament,{className:"mt-5",width:"3rem"}),(0,t.jsx)("p",{"data-clarity-mask":"True",className:"mt-5 max-w-sm text-pretty text-[0.95rem] leading-relaxed text-ivory/85",children:f.body.replace("{name}",e||"there").replace("{hours}",String(r.contact.responseHours))}),(0,t.jsxs)("div",{className:"mt-8 flex w-full max-w-sm flex-col gap-3 sm:flex-row",children:[(0,t.jsxs)("a",{href:r.contact.phoneHref,className:"label-caps grid min-h-12 flex-1 place-items-center rounded-sm bg-gold text-emerald-900 transition-colors hover:bg-gold-bright",children:["Call ",r.contact.phone]}
1),(0,t.jsx)("a",{href:(0,r.whatsappLink)("Hello, I have just submitted an enquiry on the AIGIN Royal Park website."),target:"_blank",rel:"noopener",className:"label-caps grid min-h-12 flex-1 place-items-center rounded-sm border border-gold/40 text-gold transition-colors hover:bg-gold hover:text-emerald-900",children:"WhatsApp"})]})]})}e.s(["QuizCards",0,function(){let e=(0,a.useId)(),[n,l]=(0,a.useState)(0),[o,s]=(0,a.useState)(j),[c,d]=(0,a.useState)(1),[u,p]=(0,a.useState)(null),[h,x]=(0,a.useState)(null),[g,f]=(0,a.useState)(null),[b,q]=(0,a.useState)("idle"),[$,I]=(0,a.useState)(null),P=(0,a.useRef)(j),E=(0,a.useRef)("none"),S=(0,a.useRef)([]),z=(0,a.useRef)(!1),T=(0,a.useRef)(null),R=(0,a.useCallback)((e,t)=>{S.current.push(window.setTimeout(e,t))},[]);(0,a.useEffect)(()=>()=>{S.current.forEach(clearTimeout)},[]);let O=(0,a.useRef)(!1),A=(0,a.useCallback)(e=>{O.current||(O.current=!0,(0,y.track)("form_start",{form_location:"contact-quiz",typology:(0,y.currentTypology)()})),s(t=>{let a={...t,...e};return P.current=a,a})},[]),W=(0,a.useCallback)(()=>{let e=P.current;if("none"!==E.current||!N(e.phone)||"u"<typeof navigator||!navigator.sendBeacon)return;E.current="partial";let t=new FormData;t.append("access_key",r.WEB3FORMS_KEY),t.append("subject",`Incomplete enquiry: ${w(e.name)||"Unnamed"}, AIGIN Royal Park`),t.append("from_name","AIGIN Royal Park Website"),t.append("lead_source","contact-quiz-abandoned"),t.append("name",e.name),t.append("phone",e.phone),t.append("Layout preference",e.layout||"Not answered"),t.append("Expected budget",e.budget||"Not answered"),t.append("Enquiry status",`INCOMPLETE: left the page after ${[e.name,e.phone,e.layout,e.budget].filter(Boolean).length} of 4 questions`),t.append("page",window.location.href),navigator.sendBeacon(v,t),(0,y.track)("form_abandon",{form_location:"contact-quiz",typology:(0,y.currentTypology)()})},[]);(0,a.useEffect)(()=>{let e=()=>{"hidden"===document.visibilityState&&W()};return document.addEventListener("visibilitychange",e),window.addEventListener("pagehide",W),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("pagehide",W)}},[W]);let L=(0,a.useCallback)((e,t)=>{f(null),p({step:n,dir:t}),d(t),l(e),x(null),z.current=!0,R(()=>p(null),320)},[n,R]);async function B(e){let t={...P.current,budget:e};P.current=t,s(t);let a="partial"===E.current;E.current="final",q("sending"),I(null);try{let e=await fetch(v,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({access_key:r.WEB3FORMS_KEY,subject:`Site visit enquiry: ${w(t.name)||"New lead"}, ${t.layout}, ${t.budget}`,from_name:"AIGIN Royal Park Website",lead_source:"contact-quiz",botcheck:"",name:t.name,phone:t.phone,"Layout preference":t.layout,"Expected budget":t.budget,"Enquiry status":a?"COMPLETE: an incomplete email was already sent for this visitor":"COMPLETE: all 4 questions answered",page:window.location.href})}),n=await e.json();e.ok&&n.success?(q("sent"),(0,y.track)("generate_lead",{form_location:"contact-quiz",typology:(0,y.currentTypology)()})):(E.current=a?"partial":"none",q("error"),I(n.message??"We could not send that. Please try again."))}catch{E.current=a?"partial":"none",q("error"),I(`Network error. Please check your connection, or call us on ${r.contact.phone}.`)}}if((0,a.useEffect)(()=>{if(!z.current||"sent"===b)return;let e=T.current?.querySelector("input, button:not([disabled])");e?.focus({preventScroll:!0})},[n,b]),"sent"===b)return(0,t.jsx)(_,{name:w(o.name)});let X=u?.dir===1?"quiz-card-out":"quiz-card-out-back";return(0,t.jsxs)("div",{className:"quiz-stack relative flex h-full flex-col",children:[Array.from({length:Math.max(0,3-n)}).map((e,a)=>(0,t.jsx)("div",{"aria-hidden":"true",className:"hairline-gold pointer-events-none absolute inset-x-0 top-0 h-full rounded-sm border bg-emerald-800/45 transition-transform duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",style:{transform:`translate3d(0, ${(a+1)*10}px, ${-((a+1)*40)}px) scale(${1-(a+1)*.025})`,zIndex:-1-a}},a)),u&&(0,t.jsx)("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-0 ${X}`,children:(0,t.jsx)(k,{step:u.step,children:(0,t.jsx)(C,{step:u.step,answers:o,picked:null,uid:`${e}ghost`,disabled:!0,onName:()=>{},onPhone:()=>{},onNameNext:()=>{},onPhoneNext:()=>{},onLayout:()=>{},onBudget:()=>{},error:null,sending:!1})})}),(0,t.jsx)("div",{ref:T,className:`flex-1 ${1===c?"quiz-card-in":"quiz-card-in-back"}`,children:(0,t.jsxs)(k,{step:n,uid:e,children:[(0,t.jsx)(C,{step:n,answers:o,picked:h,uid:e,disabled:"sending"===b,onName:e=>A({name:e}),onPhone:e=>A({phone:e}),onNameNext:function(){o.name.trim().length<2?f(i):L(1,1)},onPhoneNext:function(){N(o.phone)?L(2,1):f(m)},onLayout:function(e){A({layout:e}),x(e),R(()=>L(3,1),170)},onBudget:function(e){x(e),B(e)},error:g,sending:"sending"===b}),"error"===b&&(0,t.jsx)("p",{role:"alert",className:"mt-4 text-[0.85rem] text-camel",children:$}),n>0&&"sending"!==b&&(0,t.jsxs)("button",{type:"button",onClick:()=>L(n-1,-1),className:"label-caps mt-6 inline-flex min-h-11 items-center gap-2 text-ivory/72 transition-colors hover:text-gold",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"←"})," Back"]})]})},n)]})}],93732)},8836,e=>{"use strict";var t=e.i(43476),a=e.i(97585),n=e.i(96084),r=e.i(60451);e.s(["ContactHero",0,function(){let{ref:e,progress:l}=(0,r.useSectionProgress)();return(0,t.jsxs)("section",{ref:e,className:"surface-trellis relative isolate flex min-h-[42svh] flex-col items-center justify-center overflow-hidden pt-[var(--header-h)] sm:min-h-[46svh]",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-x-0 -z-30",style:{to
1p:"-8%",height:"116%",transform:`translate3d(0, ${9*(l-.5)}%, 0)`,willChange:"transform"},children:(0,t.jsx)(n.CoverImage,{src:"gate-night",alt:"AIGIN Royal Park at dusk: the illuminated G+27 tower elevation above its landscaped entrance approach on NH-24, Aditya World City, Ghaziabad",priority:!0,className:"size-full object-cover object-[50%_78%]"})}),(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 -z-20 bg-[radial-gradient(ellipse_at_center,rgba(12,43,33,0.62)_10%,rgba(12,43,33,0.86)_62%,rgba(12,43,33,0.96)_100%)]"}),(0,t.jsx)(a.KnotEmblem,{className:"pointer-events-none absolute left-1/2 top-1/2 -z-10 w-[110vw] max-w-[34rem] -translate-x-1/2 -translate-y-1/2 text-gold/[0.055] md:w-[38vw]"}),(0,t.jsxs)("div",{className:"shell relative flex flex-col items-center py-14 text-center sm:py-16",children:[(0,t.jsx)("h1",{className:"font-display max-w-4xl text-balance text-[clamp(1.45rem,4vw,2.8rem)] leading-[1.14] text-ivory drop-shadow-[0_2px_24px_rgba(0,0,0,0.55)]",children:"Contact AIGIN Royal Park"}),(0,t.jsx)(a.Ornament,{className:"mt-6",width:"3.5rem"})]})]})}])}]);

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.