PageSourceSearch

https://www.renav.co.uk/_next/static/immutable/chunks/1bkms-lmp1p-e.js

js renav.co.uk collected 2026-10-08 05:46:36 UTC 8,443 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46880,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["useSpamGuard",0,function(){let e=(0,r.useId)(),i=(0,r.useRef)(null),a=(0,r.useRef)(0);return(0,r.useEffect)(()=>{a.current=Date.now()},[]),{field:(0,t.jsxs)("div",{"aria-hidden":"true",className:"absolute left-[-10000px] h-px w-px overflow-hidden",children:[(0,t.jsx)("label",{htmlFor:`${e}-hp`,children:"Leave this field empty"}),(0,t.jsx)("input",{ref:i,id:`${e}-hp`,name:"hp_extra",type:"text",tabIndex:-1,autoComplete:"off"})]}),guard:()=>({website:i.current?.value??"",startedAt:a.current})}}])},20271,e=>{"use strict";var t=e.i(43476),r=e.i(71645),i=e.i(72520),a=e.i(95468),s=e.i(31278),n=e.i(23750),l=e.i(10708),o=e.i(84762),d=e.i(58249),c=e.i(46880);let u=["A new website","An e-commerce store","A custom web application","One of your SaaS products","Something else"];e.s(["QuickQuoteForm",0,function(){let[e,m]=(0,r.useState)("idle"),{field:p,guard:f}=(0,c.useSpamGuard)(),x=async e=>{e.preventDefault();let t=e.currentTarget,r=new FormData(t),i={name:r.get("name"),email:r.get("email"),service:r.get("service"),message:r.get("message"),...f()};m("sending");try{if(!(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw Error("Request failed");(0,d.trackLead)("homepage_quote",{service:String(i.service??"")}),t.reset(),m("sent")}catch{m("error")}};return"sent"===e?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-10 text-center",role:"status",children:[(0,t.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-600",children:(0,t.jsx)(a.CheckCircle2,{className:"h-7 w-7"})}),(0,t.jsx)("h3",{className:"text-2xl font-semibold text-foreground",children:"Thanks — we've got it"}),(0,t.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:"We'll reply within 2 business hours with next steps and a free quote."})]}):(0,t.jsxs)("form",{onSubmit:x,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(l.Label,{htmlFor:"qq-name",children:"Your name"}),(0,t.jsx)(n.Input,{id:"qq-name",name:"name",autoComplete:"name",required:!0})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(l.Label,{htmlFor:"qq-email",children:"Work email"}),(0,t.jsx)(n.Input,{id:"qq-email",name:"email",type:"email",autoComplete:"email",required:!0})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(l.Label,{htmlFor:"qq-service",children:"What do you need?"}),(0,t.jsx)("select",{id:"qq-service",name:"service",defaultValue:u[0],className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:u.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(l.Label,{htmlFor:"qq-message",children:"A few lines about your project"}),(0,t.jsx)(o.Textarea,{id:"qq-message",name:"message",rows:3,required:!0,placeholder:"What are you building, and roughly when do you need it?",className:"resize-y"})]}),p,"error"===e&&(0,t.jsxs)("p",{className:"rounded-lg border border-red-500/20 bg-red-500/10 p-3 text-sm text-red-600 dark:text-red-400",role:"alert",children:["Something went wrong sending that. Please try again, or email"," ",(0,t.jsx)("a",{href:"mailto:[email protected]",className:"font-semibold underline",children:"[email protected]"}),"."]}),(0,t.jsx)("button",{type:"submit",disabled:"sending"===e,className:"flex h-12 w-full items-center justify-center gap-2 rounded-[2px] bg-bp-ink text-base font-medium text-bp-paper transition-colors hover:bg-bp-indigo hover:text-white disabled:cursor-not-allowed disabled:opacity-70",children:"sending"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Loader2,{className:"h-5 w-5 animate-spin"}),"Sending…"]}):(0,t.jsxs)(t.Fragment,{children:["Get my free quote",(0,t.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})}),(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:"No obligation. We only use your details to reply to this enquiry."})]})}])},95468,e=>{"use strict";
1let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],95468)},31278,23750,10708,84762,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278);var r=e.i(43476),i=e.i(47163);e.s(["Input",0,function({className:e,type:t,...a}){return(0,r.jsx)("input",{type:t,"data-slot":"input",className:(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}],23750);var a=e.i(71645);e.i(74080);var s=e.i(20783),n=Symbol("radix.slottable");function l(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===n}var o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var i,n;let o,d,c,u=(n=i=`Primitive.${t}`,(o=a.forwardRef((e,t)=>{let{children:r,...i}=e;if(a.isValidElement(r)){var n;let e,l,o=(n=r,(l=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(l=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,t){let r={...t};for(let i in t){let a=e[i],s=t[i];/^on[A-Z]/.test(i)?a&&s?r[i]=(...e)=>{let t=s(...e);return a(...e),t}:a&&(r[i]=a):"style"===i?r[i]={...a,...s}:"className"===i&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==a.Fragment&&(d.ref=t?(0,s.composeRefs)(t,o):o),a.cloneElement(r,d)}return a.Children.count(r)>1?a.Children.only(null):null})).displayName=`${n}.SlotClone`,d=o,(c=a.forwardRef((e,t)=>{let{children:i,...s}=e,n=a.Children.toArray(i),o=n.find(l);if(o){let e=o.props.children,i=n.map(t=>t!==o?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,r.jsx)(d,{...s,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,i):null})}return(0,r.jsx)(d,{...s,ref:t,children:i})})).displayName=`${i}.Slot`,c),m=a.forwardRef((e,i)=>{let{asChild:a,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(a?u:t,{...s,ref:i})});return m.displayName=`Primitive.${t}`,{...e,[t]:m}},{}),d=a.forwardRef((e,t)=>(0,r.jsx)(o.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));d.displayName="Label",e.s(["Label",0,d,"Root",0,d],73741);var c=e.i(73741),c=c;e.s(["Label",0,function({className:e,...t}){return(0,r.jsx)(c.Root,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}],10708),e.s(["Textarea",0,function({className:e,...t}){return(0,r.jsx)("textarea",{"data-slot":"textarea",className:(0,i.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}],84762)}]);

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.