1import{j as e}from"./query-Co5zPIAz.js";import{c7 as L,J as $,bu as A,bx as P,a4 as m,bz as h,by as H}from"./index-zO9zJpD4.js";import{r as o}from"./vendor-gQ6fEQY1.js";import"./TurnstileWidget-Iyz-geyA.js";import{i as B}from"./turnstile-BzWadfAJ.js";import{C as R,a7 as z}from"./icons-DJgMwlto.js";import{D as M,a as O,b as F,c as G,d as U,e as W}from"./dialog-B3KY1byU.js";async function Y(i){const s=await L("blue-light-discount",{method:"POST",body:i,auth:"none"});if(s.ok===!1)return s;const r=s.data??{};return"discount_code"in r&&!String(r.discount_code??"").trim()?{ok:!1,code:"BLUE_LIGHT_UNAVAILABLE",status:s.status}:{ok:!0,data:r}}const k="w-full border-b border-border bg-transparent py-3 t-body text-foreground outline-none transition-[color,border-color,transform] duration-300 focus:border-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm motion-safe:focus:scale-[1.01]",q=()=>{var w;const[i,s]=o.useState(""),[r,N]=o.useState(""),[f,x]=o.useState(!1),[b,l]=o.useState(null),[a,y]=o.useState({}),[n,T]=o.useState(null),[v,p]=o.useState(!1),[j,E]=o.useState(null),D=o.useRef(null),C=()=>{var t;(t=D.current)==null||t.reset(),E(null)},S=async t=>{if(t.preventDefault(),f)return;l(null),y({});const c=i.trim(),g=r.trim(),d={};if((!c||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c))&&(d.work_email="Enter a valid work email address."),g?g.length<2&&(d.work_id="Enter at least 2 characters."):d.work_id="Enter your work ID.",Object.keys(d).length>0){y(d);return}x(!0);const u=await Y({work_email:c,work_id:g,...j?{turnstile_token:j}:{}});if(x(!1),u.ok===!0){T(u.data);return}switch(C(),u.code){case"VALIDATION_ERROR":l(u.message||"Please check your details and try again.");break;case"BLUE_LIGHT_DISABLED":l("Blue Light discounts aren't available right now.");break;case"WORK_ID_ALREADY_CLAIMED":l(u.message||"That work ID already has a discount code. Please contact us and we'll help.");break;case"CAPTCHA_REQUIRED":case"CAPTCHA_FAILED":case"CAPTCHA_EXPIRED":l("Please complete the security check and try again.");break;default:l("We couldn't issue a code right now â please try again shortly.")}},I=async()=>{const t=n==null?void 0:n.discount_code;if(t)try{await navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3)}catch{p(!1)}};if(n){const t=(w=n.discount_code)==null?void 0:w.trim();if(t){const c=typeof n.discount_value=="number"?n.discount_value:null;return e.jsxs("div",{role:"status",className:"rounded-lg border border-border bg-card p-8",children:[e.jsx("h2",{className:"t-card-title text-foreground",children:"Your discount code"}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-4",children:[e.jsx("p",{className:"text-3xl sm:text-4xl font-medium tracking-wide text-foreground","data-testid":"blue-light-code",children:t}),e.jsxs("button",{type:"button",onClick:I,"aria-label":"Copy discount code",className:"inline-flex items-center gap-2 rounded-md border border-border px-4 py-2 text-sm text-foreground transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:[v?e.jsx(R,{className:"h-4 w-4"}):e.jsx(z,{className:"h-4 w-4"}),v?"Copied":"Copy"]})]}),e.jsxs("div",{className:"mt-6 space-y-3 t-body-sm text-muted-foreground",children:[c!==null&&e.jsxs("p",{children:["This code takes ",c,"% off your order."]}),e.jsx("p",{children:"It's single-use â enter it in the discount code box at checkout."}),e.jsx("p",{children:"Copy the code before you close this page. If you lose it, submit the same details again â you'll get the same code back while it's unused, and a fresh one once it's been spent."})]})]})}return e.jsxs("div",{role:"status",className:"rounded-lg border border-border bg-card p-8",children:[e.jsx("h2",{className:"t-card-title text-foreground",children:"Application received"}),e.jsxs("div",{className:"mt-6 space-y-3 t-body-sm text-muted-foreground",children:[e.jsxs("p",{children:["Thank you, we've received your application. We'll email your discount code to ",e.jsx("span",{className:"text-foreground",children:i.trim()}),n.send_delay_working_days===0?" shortly.":" on the next working day."]}),e.jsx("p",{children:"The code takes 10% off and is single-use, enter it in the discount code box at checkout."}),e.jsx("p",{children:"If it doesn't arrive, you can submit the same details again."})]})]})}return e.jsx("form",{onSubmit:S,noValidate:!0,className:"rounded-lg border border-border bg-card p-8",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"work_email",className:"caption mb-2 block",children:"Work email"}),e.jsx("input",{id:"work_email",name:"work_email",type:"email",required:!0,maxLength:254,placeholder:"[email protected]",autoComplete:"email",value:i,onChange:t=>s(t.target.value),"aria-invalid":a.work_email?!0:void 0,"aria-describedby":a.work_email?"work_email-error":void 0,className:`${k}${a.work_email?" border-destructive":""}`}),a.work_email&&e.jsx("p",{id:"work_email-error",className:"mt-2 text-xs text-destructive",children:a.work_email})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"work_id",className:"caption mb-2 block",children:"Work ID"}),e.jsx("input",{id:"work_id",name:"work_id",type:"text",required:!0,maxLength:64,placeholder:"e.g. 12345678",autoComplete:"off",value:r,onChange:t=>N(t.target.value),"aria-invalid":a.work_id?!0:void 0,"aria-describedby":a.work_id?"work_id-error":void 0,className:`${k}${a.work_id?" border-destructive":""}`}),a.work_id&&e.jsx("p",{id:"work_id-error",className:"mt-2 text-xs text-destructive",children:a.work_id}),e.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Your staff or payroll ID."})]}),B(),b&&e.jsx("p",{className:"text-sm text-destructive",role:"alert",children:b}),e.jsx("button",{type:"submit",disabled:f,className:"btn-primary-full active:bg-background active:text-foreground disabled:opacity-60 disabled:cursor-not-allowed motion-safe:transition-transform motion-safe:duration-200 motion-safe:active:scale-[0.98]",children:f?"Getting your co
1deâ¦":"Get my code"})]})})},V=1,K="55c3fc19-79ab-427a-bb75-c472f924765c",Z="074a6c69-a97f-4372-b8ee-41cd256fab9b",X="/__l5e/assets-v1/55c3fc19-79ab-427a-bb75-c472f924765c/blue-light-hero.png",J="a/v1/074a6c69-a97f-4372-b8ee-41cd256fab9b/55c3fc19-79ab-427a-bb75-c472f924765c/blue-light-hero.png",Q="blue-light-hero.png",ee=138760,te="image/webp",se="2026-09-10T20:06:31Z",ae={version:V,asset_id:K,project_id:Z,url:X,r2_key:J,original_filename:Q,size:ee,content_type:te,created_at:se},oe=1,ie="ea94661e-c953-4b21-bdf3-3294a3e06107",re="074a6c69-a97f-4372-b8ee-41cd256fab9b",ne="/__l5e/assets-v1/71cc9048-97f1-4c71-86e0-eae8f5f277be/family.webp",le="a/v1/074a6c69-a97f-4372-b8ee-41cd256fab9b/ea94661e-c953-4b21-bdf3-3294a3e06107/family.png",ce="family.png",de=829364,ue="image/png",me="2026-09-10T20:29:20Z",he={version:oe,asset_id:ie,project_id:re,url:ne,r2_key:le,original_filename:ce,size:de,content_type:ue,created_at:me},fe=1,pe="2dded2b1-35f4-493e-a294-5f1a7d88b681",ge="074a6c69-a97f-4372-b8ee-41cd256fab9b",xe="/__l5e/assets-v1/cc375108-74b7-4232-825c-51ab2b453fd1/nhs-logo.webp",be="a/v1/074a6c69-a97f-4372-b8ee-41cd256fab9b/2dded2b1-35f4-493e-a294-5f1a7d88b681/nhs-logo.png",ye="nhs-logo.png",ve=60273,je="image/png",we="2026-09-10T20:39:54Z",_={version:fe,asset_id:pe,project_id:ge,url:xe,r2_key:be,original_filename:ye,size:ve,content_type:je,created_at:we},Se=()=>{const i=$(),s=r=>i?{}:{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.7,ease:H,delay:r}};return e.jsxs("div",{children:[e.jsx(A,{title:"Blue Light discount â 10% off | Simpson & Partners",description:"NHS, emergency services and armed forces staff can get 10% off a Simpson & Partners EV charger. Get your personal single-use discount code on screen in seconds.",path:P.blueLightDiscount}),e.jsxs("section",{className:"relative isolate w-full overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 z-0",children:[e.jsx("img",{src:ae.url,alt:"A physiotherapist treating a young patient with a colleague in a clinic room",className:"h-full w-full object-cover",fetchPriority:"high",decoding:"async"}),i?e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-black/15 to-transparent"}):e.jsx(m.div,{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-black/15 to-transparent",animate:{opacity:[.8,1,.8]},transition:{duration:14,repeat:1/0,ease:"easeInOut"}})]}),e.jsxs("div",{className:"relative z-10 page-container flex min-h-[50vh] md:min-h-[55vh] lg:min-h-[70vh] items-end pb-12 pt-[calc(56px+2rem)] md:pb-16 lg:pb-20",children:[e.jsxs("div",{className:"max-w-2xl",children:[e.jsx("img",{src:_.url,alt:"","aria-hidden":"true",className:"md:hidden w-14 h-auto object-contain mb-4",loading:"lazy",decoding:"async"}),e.jsx(m.p,{...s(0),className:"caption text-white/80 mb-3",children:"BLUE LIGHT"}),e.jsx(m.h1,{...s(.12),className:"t-hero-title text-on-image text-white text-balance",children:"10% off for NHS, emergency services and armed forces staff"}),e.jsx(m.a,{...s(.25),href:"#claim",className:"btn-pill-invert mt-6 motion-safe:transition-transform motion-safe:duration-200 motion-safe:active:scale-[0.98]",children:"Get discount"})]}),e.jsx("img",{src:_.url,alt:"NHS logo",className:"hidden md:block absolute md:top-20 md:right-12 md:w-20 lg:w-28 h-auto object-contain",loading:"lazy",decoding:"async"})]})]}),e.jsx("section",{className:"page-container section-padding pb-0",children:e.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 xl:grid-cols-2 xl:gap-16",children:[e.jsxs(h,{children:[e.jsx("h2",{className:"t-section-title text-foreground max-w-xl text-balance",children:"Thank you for everything you do."}),e.jsxs("div",{className:"mt-6 max-w-xl space-y-4 t-body text-muted-foreground text-pretty lg:mr-auto",children:[e.jsx("p",{children:"In 2022, our daughter Mae Simpson suffered a brain bleed and a major stroke. Thanks to the incredible response of the ambulance and air ambulance services, along with the outstanding critical care team at Bristol Children's Hospital, Mae was given the best possible chance of recovery."}),e.jsx("p",{children:"During her six-month stay at Bristol Children's Hospital, Mandy and I witnessed not only the professionalism and expertise of the staff, but also the genuine kindness, compassion, and care they showed every single day. Their support helped Mae on her long road to recovery, and it is something we will never forget."}),e.jsx("p",{children:"There is nothing we could ever do to fully repay the people who helped our family through such a difficult time. However, as a small gesture of our gratitude, we are pleased to offer all UK Blue Light workers and serving military personnel a 10% discount on all Simpson & Partners products."}
1),e.jsx("p",{children:"Thank you for everything you do. Let's continue to support one another on the road to recovery, and on the journey towards a more sustainable future."}),e.jsxs("p",{className:"pt-2 text-foreground",children:["David Simpson",e.jsx("span",{className:"block caption text-muted-foreground pt-1",children:"Founder, Simpson & Partners"})]})]})]}),e.jsx(h,{delay:.08,children:e.jsx("img",{src:he.url,alt:"Mandy, David and Mae Simpson",className:"w-full rounded-[var(--radius)] object-cover",loading:"lazy",decoding:"async"})})]})}),e.jsx("section",{id:"claim",className:"bg-gradient-to-t from-[hsl(var(--bluelight-deep))] to-[hsl(var(--bluelight-bright))] text-white section-padding",children:e.jsx("div",{className:"page-container",children:e.jsxs("div",{className:"grid grid-cols-1 items-start gap-12 xl:grid-cols-2 xl:gap-16",children:[e.jsxs(h,{children:[e.jsx("h2",{className:"t-section-title text-white max-w-xl text-balance",children:"Claim Your 10% Discount"}),e.jsx("p",{className:"t-lede mt-6 max-w-xl text-white/90 text-pretty",children:"Getting your discount code is quick and easy:"}),e.jsxs("ol",{className:"mt-8 space-y-5 t-body max-w-xl text-white/90 list-none",children:[e.jsxs("li",{className:"flex gap-4 motion-safe:transition-transform motion-safe:duration-300 motion-safe:hover:-translate-y-1",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/15 text-sm font-medium",children:"1"}),e.jsx("span",{className:"pt-0.5",children:"Enter your work email address and your staff or payroll ID."})]}),e.jsxs("li",{className:"flex gap-4 motion-safe:transition-transform motion-safe:duration-300 motion-safe:hover:-translate-y-1",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/15 text-sm font-medium",children:"2"}),e.jsx("span",{className:"pt-0.5",children:"Weâll review your application and email you a discount code within one working day."})]}),e.jsxs("li",{className:"flex gap-4 motion-safe:transition-transform motion-safe:duration-300 motion-safe:hover:-translate-y-1",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/15 text-sm font-medium",children:"3"}),e.jsx("span",{className:"pt-0.5",children:"Configure your charger and add it to your basket."})]}),e.jsxs("li",{className:"flex gap-4 motion-safe:transition-transform motion-safe:duration-300 motion-safe:hover:-translate-y-1",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-full bg-white/15 text-sm font-medium",children:"4"}),e.jsx("span",{className:"pt-0.5",children:"Enter it in the discount code box at checkout to take 10% off your order."})]})]}),e.jsxs("div",{className:"mt-8 space-y-4 max-w-xl",children:[e.jsx("p",{className:"t-body text-white/80",children:"Available to NHS, Emergency Services, and Armed Forces personnel. Your information is securely handled in line with UK data protection regulations."}),e.jsxs(M,{children:[e.jsx(O,{asChild:!0,children:e.jsx("button",{type:"button",className:"inline-flex items-center text-sm font-medium underline underline-offset-4 text-white hover:text-white/80 focus:outline-none focus:ring-2 focus:ring-white/50 focus:ring-offset-2 focus:ring-offset-[hsl(var(--bluelight-bright))] rounded-sm",children:"Terms and conditions"})}),e.jsxs(F,{className:"bg-white text-foreground border-none max-w-lg",children:[e.jsxs(G,{children:[e.jsx(U,{className:"t-section-title text-foreground text-left",children:"Terms and conditions"}),e.jsx(W,{className:"sr-only",children:"Important information about the Blue Light discount offer."})]}),e.jsxs("ul",{className:"mt-4 space-y-3 t-body text-foreground/80 list-disc pl-4",children:[e.jsx("li",{children:"One discount code per employee number."}),e.jsx("li",{children:"The discount is valid for one order only."}),e.jsx("li",{children:"The offer applies to direct retail purchases only."}),e.jsx("li",{children:"The offer is not available on products purchased through an installer."})]})]})]})]})]}),e.jsx(h,{delay:.08,children:e.jsx("div",{className:"mt-12 xl:mt-16 xl:max-w-lg",children:e.jsx(q,{})})})]})})})]})};export{Se 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.