PageSourceSearch

https://glovbox.com.au/_next/static/chunks/5174-152c76f092f6b949.js

js glovbox.com.au collected 2026-10-02 00:44:00 UTC 9,000 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5174],{3298:(e,s,a)=>{a.d(s,{l:()=>n});var t=a(7876);a(4232);var l=a(897);let r={brand:"bg-gb-primary-subtle text-gb-primary",brandInk:"bg-gb-primary-subtle text-gb-fg",brandDeep:"bg-gb-primary-subtle-deep text-gb-primary",inverse:"bg-gb-surface-inverse text-gb-fg-inverse-secondary"};function n(e){let{children:s,tone:a="brand",size:n="md",withDot:i=!1,sentenceCase:o=!1,radius:c="pill",paddingClassName:d,className:m}=e;return(0,t.jsxs)("span",{className:(0,l.cx)("font-body inline-flex w-fit items-center gap-2 font-bold",o?"lg:font-semibold":"uppercase","md"===n?"text-gb-caption":"text-gb-overline",o&&"lg:text-gb-label",null!=d?d:"md"===n?"px-4 py-1.5":"px-2.5 py-1","pill"===c?"rounded-gb-full":"rounded-gb-sm",r[a],m),children:[i&&(0,t.jsx)("span",{"aria-hidden":"true",className:"h-[5px] w-[5px] shrink-0 rounded-gb-full bg-current"}),s]})}},4021:(e,s,a)=>{a.d(s,{w:()=>o});var t=a(7876);a(4232);var l=a(5577),r=a(1969),n=a(897);let i={light:"bg-gb-background text-gb-fg",secondary:"bg-gb-surface-secondary text-gb-fg",tertiary:"bg-gb-surface-tertiary text-gb-fg",dark:"bg-gb-background-inverse text-gb-fg-inverse",hero:"bg-gb-gradient-hero text-gb-fg-inverse",none:""};function o(e){let{children:s,tone:a="light",id:o,bare:c=!1,wideMobileGutter:d=!1,paddingClassName:m=l.Vu,className:b,...g}=e;return(0,t.jsx)("section",{id:o,className:(0,n.cx)("w-full",i[a],m,b),...g,children:c?s:(0,t.jsx)(r.m,{wideMobileGutter:d,children:s})})}},5437:(e,s,a)=>{a.d(s,{L:()=>f});var t=a(7876),l=a(4232),r=a(8477),n=a(8992),i=a(3810),o=a(9460),c=a(686),d=a(7229),m=a(3112),b=a(9750);let g=["Technical Support","Report Inaccuracy","Billing & Pricing","Workshop Partnership","Something Else"],u=m.Ikc({name:m.YjP().trim().min(1,"Name is required"),email:m.YjP().trim().email("Please enter a valid email"),mobile:m.YjP().trim().min(1,"Mobile number is required").refine(e=>/^[0-9]+$/.test(e),{message:"Mobile number must contain digits only"}).refine(e=>e.length>=6&&e.length<=15,{message:"Please enter a valid mobile number"}).refine(e=>(0,b.g0)("+61".concat(e)),{message:"Please enter a valid mobile number"}),subject:m.k5n(g,{message:"Please select a subject"}),message:m.YjP().trim().min(1,"Message is required")});class x extends Error{constructor(e,s){super(s),this.name="ContactValidationError",this.fieldErrors=e}}async function h(e){let s=await fetch("".concat("https://admin-backend.glovbox.com.au".replace(/\/+$/,"")).concat("/wp-json/contact-form/v1/submit"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,company:"Website enquiry"})}),a=await s.json().catch(()=>null);if(s.ok)return(null==a?void 0:a.message)||"Thanks — your message is on its way.";if(400===s.status&&(null==a?void 0:a.errors))throw new x(a.errors,"Please check the highlighted fields.");throw Error((null==a?void 0:a.message)||"Unable to send your message. Please try again later.")}var p=a(4772);function f(e){let{onClose:s}=e,[a,m]=(0,l.useState)(null),[b,f]=(0,l.useState)(null),{register:j,handleSubmit:y,setError:v,formState:{errors:N,isSubmitting:w}}=(0,n.mN)({resolver:(0,i.u)(u),mode:"onTouched"});(0,l.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]),(0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&s()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[s]);let k=async e=>{m(null);try{let s=await h({name:e.name,email:e.email,mobile:e.mobile,message:"Subject: ".concat(e.subject,"\n\n").concat(e.message)});f(s)}catch(e){if(e instanceof x){Object.entries(e.fieldErrors).forEach(e=>{let[s,a]=e;("name"===s||"email"===s||"mobile"===s)&&v(s,{message:a})}),m(e.message);return}m(e instanceof Error?e.message:"Unable to send your message. Please try again later.")}},E=(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"contact-support-heading",className:"fixed inset-0 z-[9999] flex items-end justify-center bg-slate-900/60 p-0 backdrop-blur-sm md:items-center md:p-4",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close contact form",onClick:s,className:"absolute inset-0 cursor-default"}),(0,t.jsxs)("div",{className:"relative flex max-h-[92dvh] w-full max-w-[560px] flex-col rounded-t-[24px] border border-gb-line bg-gb-surface shadow-gb-float md:max-h-[90dvh] md:rounded-gb-4xl",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-4 px-6 pb-4 pt-6 lg:px-8 lg:pt-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("h2",{id:"contact-support-heading",className:"font-heading text-gb-h4 font-extrabold text-gb-fg lg:text-gb-h3",children:"Can't find what you're looking for?"}),(0,t.jsx)("p",{className:"font-body text-gb-body-small font-normal text-gb-fg-secondary",children:"Send us a direct message and we'll get back to you."})]}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":"Close",className:"-mr-2 -mt-2 shrink-0 rounded-gb-full p-2 text-gb-fg-muted transition-colors hover:bg-gb-surface-secondary hover:text-gb-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gb-primary",children:(0,t.jsx)(c.US,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:b?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 px-6 pb-8 pt-2 text-center lg:px-8",children:[(0,t.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-gb-full bg-gb-success-subtle text-gb-success",children:(0,t.jsx)(c.Sr,{className:"h-7 w-7"})}),(0,t.jsx)("p",{className:"font-heading text-gb-body-large font-extrabold text-gb-fg",children:"Message sent"}),(0,t.jsx)("p",{className:"font-body text-gb-body-small font-normal text-gb-fg-secondary",children:b}),(0,t.jsx)(o.$,{variant:"primary",size:"lg",shape:"lg",fullWidth:!0,onClick:s,children:"Done"})]}):(0,t.jsxs)("form",{onSubmit:y(k),noValidate:!0,className:"flex flex-col gap-5 px-6 pb-8 lg:px-8",children:[(0,t.jsxs)("div",{className:"grid gap-5 md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"contact-name",className:d.x,children:["Name ",(0,t.jsx)("span",{className:"text-gb-primary",children:"*"})]}),(0,t.jsx)("input",{id:"contact-name",type:"text",autoComplete:"name",className:(0,d.jb)(!!N.name),...j("name")}
1),N.name&&(0,t.jsx)("p",{className:d.r1,children:N.name.message})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"contact-email",className:d.x,children:["Email ",(0,t.jsx)("span",{className:"text-gb-primary",children:"*"})]}),(0,t.jsx)("input",{id:"contact-email",type:"email",autoComplete:"email",className:(0,d.jb)(!!N.email),...j("email")}),N.email&&(0,t.jsx)("p",{className:d.r1,children:N.email.message})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"contact-mobile",className:d.x,children:["Mobile ",(0,t.jsx)("span",{className:"text-gb-primary",children:"*"})]}),(0,t.jsx)("input",{id:"contact-mobile",type:"tel",inputMode:"numeric",autoComplete:"tel-national",placeholder:"0400 000 000",className:(0,d.jb)(!!N.mobile),...j("mobile")}),N.mobile&&(0,t.jsx)("p",{className:d.r1,children:N.mobile.message})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"contact-subject",className:d.x,children:["Subject ",(0,t.jsx)("span",{className:"text-gb-primary",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:"contact-subject",defaultValue:"",className:(0,d.f8)(!!N.subject),...j("subject"),children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Select a subject"}),g.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(c.D3,{className:"pointer-events-none absolute right-5 top-1/2 h-4 w-4 -translate-y-1/2 text-gb-fg-muted"})]}),N.subject&&(0,t.jsx)("p",{className:d.r1,children:N.subject.message})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"contact-message",className:d.x,children:["Message ",(0,t.jsx)("span",{className:"text-gb-primary",children:"*"})]}),(0,t.jsx)("textarea",{id:"contact-message",rows:5,placeholder:"Enter your feedback here...",className:"".concat((0,d.jb)(!!N.message)," min-h-[140px] resize-none"),...j("message")}),N.message&&(0,t.jsx)("p",{className:d.r1,children:N.message.message})]}),a&&(0,t.jsx)("p",{role:"alert",className:"font-body rounded-gb-lg border border-gb-error bg-red-50 px-4 py-3 text-gb-body-small font-medium text-gb-error",children:a}),(0,t.jsx)(o.$,{type:"submit",variant:"primary",size:"lg",shape:"lg",fullWidth:!0,loading:w,loadingLabel:"Sending…",children:"Send Message"}),(0,t.jsxs)("p",{className:"font-body text-center text-gb-caption font-normal text-gb-fg-muted",children:["Prefer email? Reach us at"," ",(0,t.jsx)("a",{href:"mailto:".concat(p.ei),className:"font-semibold text-gb-primary hover:text-gb-primary-strong",children:p.ei})]})]})})]})]});return"undefined"!=typeof document?(0,r.createPortal)(E,document.body):null}}}]);

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.