1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7192],{1016:(e,s,t)=>{"use strict";t.d(s,{PricingSection:()=>O});var r=t(95155),a=t(76596),n=t(12115),l=t(76444),i=t(24058),o=t(93126),d=t(64269);let c=n.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(i.bL,{className:(0,d.cn)("grid gap-2",t),...a,ref:s})});c.displayName=i.bL.displayName;let u=n.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(i.q7,{ref:s,className:(0,d.cn)("aspect-square h-4 w-4 rounded-full bg-muted border text-primary data-[state=checked]:bg-primary disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:(0,r.jsx)(i.C1,{className:"flex items-center justify-center",children:(0,r.jsx)(o.A,{className:"h-2.5 w-2.5 text-current fill-background"})})})});u.displayName=i.q7.displayName;var m=t(63298),f=t(46767);function x(e){let{value:s,onChange:t}=e;return(0,r.jsxs)(c,{id:"period",className:"flex items-center",value:s,onValueChange:e=>t(e),children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(u,{value:"month",id:"month"}),(0,r.jsx)(l.J,{htmlFor:"month",children:"Pay monthly"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(u,{value:"year",id:"year"}),(0,r.jsx)(l.J,{htmlFor:"year",children:"Pay yearly"})]}),(0,r.jsxs)(f.m_,{children:[(0,r.jsx)(f.k$,{children:(0,r.jsx)(m.A,{size:16,className:"text-muted-foreground"})}),(0,r.jsx)(f.ZI,{className:"max-w-[300px]",children:"Ideal to offset busy months with quiet ones by âbuying in bulkâ. Yearly plans auto-renew early if you use all of your included lookups, with no interruption of service."})]})]})}var p=t(72996),h=t(18573),g=t(83026);let b=n.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsxs)(g.bL,{ref:s,className:(0,d.cn)("relative flex w-full touch-none select-none items-center",t),...a,children:[(0,r.jsx)(g.CC,{className:"relative h-1 w-full grow overflow-hidden rounded-full bg-muted-foreground",children:(0,r.jsx)(g.Q6,{className:"absolute h-full bg-primary"})}),(0,r.jsx)(g.zi,{className:"block h-5 w-5 rounded-full border-primary bg-primary transition-colors disabled:pointer-events-none disabled:opacity-50"})]})});b.displayName=g.bL.displayName;var v=t(69123),y=t(89980);let j=n.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,d.cn)("rounded-lg border bg-card text-card-foreground p-6",t),...a})});j.displayName="Card";let N=n.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,d.cn)("flex flex-col space-y-1.5 mb-5",t),...a})});N.displayName="CardHeader";let w=n.forwardRef((e,s)=>{let{...t}=e;return(0,r.jsx)("div",{ref:s,...t})});w.displayName="CardContent";let k=n.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("div",{ref:s,className:(0,d.cn)("mt-5",t),...a})});k.displayName="CardFooter";let A={0:{agile:{AUD:19,NZD:19},business:{AUD:55,NZD:55}},200:{agile:{AUD:19,NZD:19},business:{AUD:55,NZD:55}},500:{agile:{AUD:45,NZD:45},business:{AUD:55,NZD:55}},1e3:{agile:{AUD:79,NZD:79},business:{AUD:95,NZD:95}},2e3:{agile:{AUD:149,NZD:149},business:{AUD:175,NZD:175}},3e3:{agile:{AUD:216,NZD:216},business:{AUD:255,NZD:255}},4e3:{agile:{AUD:272,NZD:272},business:{AUD:320,NZD:320}},5e3:{agile:{AUD:320,NZD:320},business:{AUD:375,NZD:375}},8e3:{agile:{AUD:476,NZD:476},business:{AUD:560,NZD:560}},1e4:{agile:{AUD:510,NZD:510},business:{AUD:600,NZD:600}},12500:{agile:{AUD:575,NZD:575},business:{AUD:675,NZD:675}},15e3:{agile:{AUD:645,NZD:645},business:{AUD:750,NZD:750}}},_=[{label:"200",value:200},{label:"500",value:500},{label:"1K",value:1e3},{label:"2K",value:2e3},{label:"3K",value:3e3},{label:"4K",value:4e3},{label:"5K",value:5e3},{label:"8K",value:8e3},{label:"10K",value:1e4},{label:"12.5K",value:12500},{label:"15K",value:15e3}];function C(e){let{slider:s,items:t}=e;if(s>t.length)return(0,r.jsx)(y.f,{children:"Please contact us to discuss your needs"});if(0==s)return(0,r.jsx)(y.f,{children:"How many lookups per month do you need?"});let a=t[s-1].value.toFixed(0),n=a.length>3?"".concat(a.slice(0,-3),",000"):a;return(0,r.jsxs)(y.f,{children:["I need ",(0,r.jsx)("span",{className:"text-primary",children:n})," lookups per month"]})}function S(e){let{onChange:s}
1=e,[t,a]=(0,n.useState)(0);return(0,r.jsxs)(j,{className:"p-8",children:[(0,r.jsx)(N,{className:"mb-12",children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:justify-between",children:[(0,r.jsx)(h.D,{level:"4",className:"text-lg font-semibold",children:(0,r.jsx)(C,{items:_,slider:t})}),(0,r.jsxs)(f.m_,{children:[(0,r.jsx)(f.k$,{asChild:!0,children:(0,r.jsx)(p.Yq,{href:"#what-is-a-lookup",className:"no-underline",children:"Learn about Lookups"})}),(0,r.jsxs)(f.ZI,{className:"max-w-[500px] p-4",children:[(0,r.jsx)(y.f,{className:"font-semibold",size:"small",children:"A Lookup is how we measure your usage of Addressfinder"}),(0,r.jsx)("br",{}),(0,r.jsxs)("ul",{className:"list-disc *:ml-4",children:[(0,r.jsx)("li",{children:"For addresses, one Lookup is consumed when a verified address is returned. The searching and display of addresses is not charged."}),(0,r.jsx)("li",{children:"For email and phone, one Lookup is consumed when data is submitted for verification and a result is determined."})]}),(0,r.jsx)("br",{}),(0,r.jsx)(p.Yq,{href:"#what-is-a-lookup",children:"Find out more"})]})]})]})}),(0,r.jsxs)(w,{className:"grow",children:[(0,r.jsx)(b,{defaultValue:[0],max:_.length+1,step:1,onValueChange:e=>{var t;a(e[0]);let r=null==(t=_[e[0]-1])?void 0:t.value;r&&s(r)},className:"z-10"}),(0,r.jsx)("div",{className:"flex flex-row justify-evenly px-2.5",children:Array.from({length:_.length}).map((e,s)=>(0,r.jsx)("div",{className:"relative h-9",children:(0,r.jsxs)("div",{className:(0,d.cn)("absolute -translate-x-1/2 flex flex-col justify-center",{"max-md:hidden":s%2}),children:[(0,r.jsx)("div",{className:(0,d.cn)("w-1 h-2 rounded-b-full bg-muted-foreground m-auto",{"bg-primary":t>s})}),(0,r.jsx)(y.f,{className:"mt-1 font-semibold",children:_[s].label})]})},s))})]})]})}function D(e){let{children:s,description:t,highlighted:a,title:n}=e;return(0,r.jsx)(j,{className:(0,d.cn)("p-8 flex flex-col",{"bg-primary/10":a}),children:(0,r.jsxs)(w,{className:"flex flex-col h-full gap-12 grow",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(v.D,{level:"4",children:n}),(0,r.jsx)(y.f,{className:"text-muted-foreground mt-2",children:t})]}),s]})})}function R(e){let{currency:s,period:t,price:a}=e,n=new Intl.NumberFormat("en-NZ",{style:"currency",currency:s,maximumFractionDigits:0,currencyDisplay:"narrowSymbol"}).format(a);return(0,r.jsxs)("div",{className:"-mt-7",children:[(0,r.jsx)(y.f,{children:"Starting from"}),(0,r.jsxs)(y.f,{children:[(0,r.jsx)("span",{className:"font-semibold text-xl tracking-tight",children:n})," ",s,"/",t," + tax"]})]})}var I=t(25352);function z(e){let{children:s,heading:t}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)(y.f,{className:"mb-3",children:t}),(0,r.jsx)("ul",{className:"flex flex-col gap-3",children:s})]})}function P(e){let{children:s,info:t,isNew:a}=e;return(0,r.jsxs)("li",{className:"flex gap-2",children:[(0,r.jsx)(I.A,{className:"flex-none size-5 text-primary mt-0.5"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{children:s}),a&&(0,r.jsx)("span",{className:"ml-2 inline-block rounded bg-primary/10 px-1.5 py-0.5 text-xs font-semibold text-primary align-middle",children:"new"}),t&&(0,r.jsxs)(f.m_,{children:[(0,r.jsx)(f.k$,{children:(0,r.jsx)(m.A,{className:"size-4 text-muted-foreground -mb-0.5 ml-2"})}),(0,r.jsx)(f.ZI,{className:"max-w-[300px]",children:t})]})]})]})}var V=t(3998),B=t(64340);function U(e){let{href:s,onClick:t,children:a}=e;return(0,r.jsx)(k,{className:"mt-auto",children:(0,r.jsx)(V.$,{variant:"primary",className:"text-base w-full",asChild:!0,children:(0,r.jsx)(B.Link,{href:s,onClick:t,children:a})})})}function L(e,s,t,r,a){var n,l;let i=null==(l=A[a])||null==(n=l[s])?void 0:n[r];return(null!=i?i:e)*("year"===t?12:1)}function T(e){return e<1e3?e:"".concat(e/1e3,"K")}function Z(e){let{currency:s,period:t,baseLookups:a,monthlyLookupsRequired:n,onPlanSelect:l}=e,i="agile",o="year"===t?12*a:a,d="year"===t?12*n:n,c=L(19,i,t,s,n),u=Math.max(d,o),m=(c/u*100).toFixed(2).replace(/\.?0*$/,"");return(0,r.jsxs)(D,{title:"Agile",description:"Great for online retailers and small businesses. Verify data with the full power of Addressfinder.",children:[(0,r.jsx)(R,{currency:s,peri
1od:t,price:c}),(0,r.jsxs)(z,{heading:"Includes:",children:[(0,r.jsxs)(P,{children:[T(u)," lookups included","year"!==t?", then ".concat(m,"c per extra lookup"):""]}),(0,r.jsx)(P,{info:"All paid plans include access to all of Addressfinder's verification services including: address autocomplete; address, email, and phone verification; NZ/AU addresses metadata and geocoding; points of interest; reverse geocode lookup; and more.",children:"Full access to address, email, and phone verification tools"}),(0,r.jsx)(P,{info:"Upload CSV files of addresses or emails and let our data verification service match and return verified formatted addresses with their metadata.",children:"Bulk database verification"}),(0,r.jsx)(P,{isNew:!0,info:"Lite services are designed for when speed is the priority and format validation is sufficient",children:"Free email and phone verification lite"}),(0,r.jsx)(P,{info:"Integrate Addressfinder to WooCommerce, Shopify, Magento, and more with our plugins. Or on any website with our custom JavaScript widget.",children:"Unlimited integrations"}),(0,r.jsx)(P,{info:"Agile organisations get 1 set of license keys to use on up to 10 domains at once, and 5 Portal users to manage Addressfinder.",children:"Standard Portal usage"}),(0,r.jsx)(P,{children:"Email support"})]}),(0,r.jsx)(U,{href:"/signup",onClick:()=>l(i,c),children:"Start free trial*"})]})}function E(e){let{currency:s,period:t,baseLookups:a,monthlyLookupsRequired:n,onPlanSelect:l}=e,i="business",o="year"===t?12*a:a,d="year"===t?12*n:n,c=L(55,i,t,s,n),u=(c/Math.max(d,o)*100).toFixed(2).replace(/\.?0*$/,"");return(0,r.jsxs)(D,{title:"Business",description:"Ideal for mature organisations. Build and manage your own custom verification service.",highlighted:!0,children:[(0,r.jsx)(R,{currency:s,period:t,price:c}),(0,r.jsxs)(z,{heading:"Agile features, plus:",children:[(0,r.jsxs)(P,{children:[T(d<o?o:d)," ","lookups included","year"!==t?", then ".concat(u,"c per extra lookup"):""]}),(0,r.jsx)(P,{info:"Build your own verification service using our APIs. For advanced users.",children:"Direct API access"}),(0,r.jsx)(P,{info:"Use temporary access tokens to authenticate API calls securely.",children:"OAuth 2.0"}),(0,r.jsx)(P,{info:"Business organisations get 2 sets of license keys to use on up to 30 domains at once, and 10 Portal users to manage Addressfinder.",children:"Doubled Portal usage"}),(0,r.jsx)(P,{children:"Email and phone support"})]}),(0,r.jsx)(U,{href:"/signup",onClick:()=>l(i,c),children:"Start free trial*"})]})}function M(e){let{onPlanSelect:s}=e;return(0,r.jsxs)(D,{title:"Enterprise",description:"For listed companies or governments with large custom workloads and compliance needs.",children:[(0,r.jsx)("div",{className:"h-[52px] -mt-7 flex items-end",children:(0,r.jsx)(v.D,{level:"4",children:"Custom"})}),(0,r.jsxs)(z,{heading:"Business features, plus:",children:[(0,r.jsx)(P,{children:"Single Sign-on (SAML)"}),(0,r.jsx)(P,{info:"Access Addressfinder endpoints via a fixed range of IP addresses.",children:"IP/Firewall features"}),(0,r.jsx)(P,{children:"Custom plan and billing"}),(0,r.jsx)(P,{children:"Custom Portal access"}),(0,r.jsx)(P,{children:"Dedicated technical support and uptime SLA"})]}),(0,r.jsx)(U,{href:"/sales",onClick:()=>s("enterprise"),children:"Talk to us"})]})}var F=t(84094),q=t(9824),W=t(89856);let J={nz:"NZD",au:"AUD"};function O(e){let{}=e,[s,t]=(0,n.useState)("month"),[l,i]=(0,n.useState)(0),o=(0,W.useCurrentLocale)(q.X0),d=J[o]||"AUD",c=(e,t)=>{let r="".concat(o,"_").concat(e,"_").concat(s,"ly_").concat(l),a=t?"".concat(t).concat(d):"".concat(d);F.Ay.track(F.RD,{plan_name:r,plan_value:a})};return(0,r.jsxs)(a.nA,{innerClassName:"flex flex-col gap-8",children:[(0,r.jsx)("div",{className:"flex flex-col gap-y-4 md:flex-row items-start md:justify-between",children:(0,r.jsx)(x,{value:s,onChange:e=>{t(e),F.Ay.track("year"===e?F.fB:F.yu)}})}),(0,r.jsx)(S,{onChange:e=>{i(e),F.Ay.track(F.W2,{lookup_quantity:e})}}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,r.jsx)(Z,{currency:d,period:s,baseLookups:200,monthlyLookupsRequired:l,onPlanSelect:c}
1),(0,r.jsx)(E,{currency:d,period:s,baseLookups:500,monthlyLookupsRequired:l,onPlanSelect:c}),(0,r.jsx)(M,{onPlanSelect:c})]}),(0,r.jsx)(y.f,{center:!0,children:"*Free 30-day trial includes 1,000 lookups. No credit card required."})]})}},1089:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ErrorBoundary:()=>n});var r=t(95155),a=t(27987);function n(e){let{fallback:s,FallbackComponent:t,...n}=e;return(0,r.jsx)(a.tH,{...n,FallbackComponent:s?()=>s:null!=t?t:l})}function l(e){let{}=e;return(0,r.jsx)("div",{children:"Something went wrong"})}},13406:(e,s,t)=>{"use strict";t.d(s,{Tabs:()=>i,TabsContent:()=>c,TabsList:()=>o,TabsTrigger:()=>d});var r=t(95155),a=t(12115),n=t(25667),l=t(64269);let i=n.bL,o=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(n.B8,{ref:s,className:(0,l.cn)("flex items-center justify-center rounded-lg bg-zinc-100 dark:bg-zinc-800 dark:zinc-700 p-1 text-zinc-400 dark:text-zinc-500 font-semibold",t),...a})});o.displayName=n.B8.displayName;let d=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(n.l9,{ref:s,className:(0,l.cn)("flex items-center justify-center whitespace-nowrap rounded-md px-4 py-2 text-sm r
1ing-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:dark:bg-zinc-700 data-[state=active]:text-foreground data-[state=active]:border border-foreground/10",t),...a})});d.displayName=n.l9.displayName;let c=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(n.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a})});c.displayName=n.UC.displayName},13496:(e,s,t)=>{"use strict";t.d(s,{Accordion:()=>c,AccordionContent:()=>f,AccordionItem:()=>u,AccordionTrigger:()=>m});var r=t(95155),a=t(12115),n=t(16083),l=t(23916),i=t(64269),o=t(69548),d=t(79109);let c=n.bL,u=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(n.q7,{ref:s,className:(0,i.cn)("my-2 p-4 rounded-lg border bg-card",t),...a})});u.displayName="AccordionItem";let m=a.forwardRef((e,s)=>{var t;let{className:c,children:u,...m}=e,f=a.useRef(null),x=(0,d.G)((0,o.X)(u));return a.useEffect(()=>{if(!x)return;let e=()=>{let e=window.location.hash.slice(1),s=e;try{s=decodeURIComponent(e)}catch(t){s=e}if(s!==x)return;let t=f.current;t&&"open"!==t.getAttribute("data-state")&&t.click()};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[x]),(0,r.jsx)(n.Y9,{className:"flex",children:(0,r.jsxs)(n.l9,{ref:(t=[s,f],e=>{for(let s of t)"function"==typeof s?s(e):null!=s&&(s.current=e)}),id:x,className:(0,i.cn)("flex flex-1 items-center justify-between font-semibold transition-all [&[data-state=open]>svg]:rotate-180",c),...m,children:[u,(0,r.jsx)(l.A,{className:"h-6 w-6 shrink-0 text-muted-foreground transition-transform duration-200"})]})})});m.displayName=n.l9.displayName;let f=a.forwardRef((e,s)=>{let{className:t,children:a,...l}=e;return(0,r.jsx)(n.UC,{ref:s,className:"overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...l,children:(0,r.jsx)("div",{className:(0,i.cn)("pt-4",t),children:a})})});f.displayName=n.UC.displayName},27145:(e,s,t)=>{"use strict";t.d(s,{AutocompleteDemoSection:()=>y});var r=t(95155),a=t(12115),n=t(89856),l=t(9824),i=t(76596),o=t(49762),d=t(76098),c=t(67081),u=t(64269);function m(e){let{data:s,format:t="json",className:n,height:l="336px",emptyMessage:i="No data available."}=e,[o,m]=(0,a.useState)(!1),f="json"===t?s?JSON.stringify(s,null,2):"":"string"==typeof s?s:String(null!=s?s:"");return(0,r.jsxs)("div",{className:(0,u.cn)("border border-input rounded-lg bg-muted relative",n),style:{height:l},children:[(0,r.jsx)("button",{type:"button",onClick:()=>{if(!s)return;let e="json"===t?JSON.stringify(s,null,2):"string"==typeof s?s:String(s);navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),1500)},"aria-label":o?"Data copied":"Copy data",disabled:!s,className:(0,u.cn)("absolute top-3 right-3 flex items-center gap-1 text-sm font-semibold transition-opacity duration-150",s?"text-gray-600 hover:text-gray-800 hover:opacity-80":"text-gray-300 cursor-not-allowed hover:opacity-100"),children:o?(0,r.jsx)(d.A,{className:"size-4 text-primary/70 hover:text-primary"}):(0,r.jsx)(c.A,{className:"size-4 text-muted-foreground hover:text-primary"})}),(0,r.jsx)("div",{className:"h-full overflow-y-auto p-4 pt-12",children:s?(0,r.jsx)("pre",{className:(0,u.cn)("text-sm text-foreground font-mono whitespace-pre-wrap","xml"===t&&"break-words"),children:f}):(0,r.jsx)("p",{className:"text-muted-foreground text-sm font-medium p-2",children:i})})]})}var f=t(62190);let x=(0,a.forwardRef)((e,s)=>{let{onClear:t,onInput:n,hasSelectedAddress:l}=e,[i,o]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("input",{ref:s,type:"text",placeholder:"Start typing an address...",onInput:function(e){o(!!e.target.value),n()},className:(0,u.cn)("flex w-full rounded-md sm:rounded-lg border border-input px-4 py-3 placeholder:text-muted-foreground focus-visible:border-primary focus-visible:outline-none",l?"bg-muted focus-visible:border-secondary":""),autoComplete:"off","data-1p-ignore":!0}),i&&(0,r.jsxs)("button",{type:"button",onClick:function(){s&&"function"!=typeof s&&s.current&&(s.current.value="",s.current.focus()),o(!1),t()},className:"absolute right-3 text-primary font-semibold text-lg sm:text-sm hover:underline",children:[(0,r.jsx)("span",{className:"block md:hidden",children:"x"}),(0,r.jsx)("span",{className:"hidden md:block",children:"CLEAR"})]})]})});x.displayName="AddressInput";let p=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)("input",{ref:s,readOnly:!0,tabIndex:-1,"aria-readonly":"true",onFocus:e=>e.target.blur(),className:(0,u.cn)("w-full rounded-md sm:rounded-lg border border-input px-4 py-3","placeholder:text-muted-foreground","cursor-default select-none","focus:outline-none focus-visible:outline-none",t),...a})});
1function h(e){let{country:s,address1Ref:t,address2Ref:a,suburbRef:n,cityStateRef:l,postcodeRef:i}=e,o="";return"NZ"===s?o="City":"AU"===s&&(o="State"),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{ref:t,placeholder:"Address line 1"}),(0,r.jsx)(p,{ref:a,placeholder:"Address line 2"}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,r.jsx)(p,{ref:n,placeholder:"Suburb"}),(0,r.jsx)(p,{ref:l,placeholder:o}),(0,r.jsx)(p,{ref:i,placeholder:"Postcode"})]})]})}function g(e){let{checked:s,onChange:t}=e;return(0,r.jsxs)("label",{className:"\n flex items-center gap-2 text-sm font-semibold cursor-pointer select-none\n transition-colors duration-150\n ".concat(s?"text-gray-800 dark:text-white":"text-gray-400 hover:text-gray-500 dark:text-gray-500 dark:hover:text-gray-400","\n "),children:[(0,r.jsxs)("span",{className:"relative flex items-center justify-center w-4 h-4",children:[(0,r.jsx)("input",{type:"checkbox",checked:s,onChange:e=>t(e.target.checked),className:"\n appearance-none w-4 h-4 rounded-sm cursor-pointer focus:outline-none\n bg-white ring-1 ring-gray-300 hover:ring-gray-400\n dark:bg-transparent dark:ring-gray-600 dark:hover:ring-gray-500\n checked:bg-primary checked:ring-primary\n transition-none\n "}),(0,r.jsx)("span",{className:"\n absolute text-[10px] font-bold text-white select-none\n ".concat(s?"opacity-100":"opacity-0","\n transition-opacity duration-100\n "),children:"â"})]}),(0,r.jsxs)("span",{className:"hidden md:inline-flex items-center gap-1",children:["Show JSON ",(0,r.jsx)("span",{className:"font-mono text-sm",children:"</>"})]}),(0,r.jsx)("span",{className:"inline-flex md:hidden font-mono text-sm",children:"</>"})]})}p.displayName="ReadOnlyInput";let b="WEBSITE_AA_DEMO",v=null;function y(e){var s;let{section:t}=e,u=(0,a.useRef)(null),p=(0,a.useRef)(null),y=(0,a.useRef)(null),j=(0,a.useRef)(null),N=(0,a.useRef)(null),w=(0,a.useRef)(null),k=((0,n.useCurrentLocale)(l.X0)||l.X0.defaultLocale).toUpperCase(),[A,_]=(0,a.useState)(k),[C,S]=(0,a.useState)(!1),[D,R]=(0,a.useState)(null),[I,z]=(0,a.useState)(!1),P=(0,a.useCallback)(()=>{[p,y,j,N,w].forEach(e=>{e.current&&(e.current.value="")}
1)},[]),V=(0,a.useCallback)(e=>{p.current&&(p.current.value=e.address_line_1||""),y.current&&(y.current.value=e.address_line_2||""),j.current&&(j.current.value=e.selected_suburb||e.locality_name||""),N.current&&(N.current.value=e.selected_city||e.town_city||e.region||e.state_territory||""),w.current&&(w.current.value=e.postcode||""),R(e)},[]),B=(0,a.useCallback)(()=>D?[D.address_line_1,D.address_line_2,D.selected_suburb||D.locality_name,D.selected_city||D.town_city||D.region||D.state_territory,D.postcode].filter(Boolean).join(", "):"",[D]),U=(0,a.useCallback)(async()=>{let e=B();e&&(navigator.clipboard.writeText(e),z(!0),setTimeout(()=>z(!1),1500))},[B]);return!function(e){let{inputRef:s,country:t,onAddressSelect:r}=e,[n,l]=(0,a.useState)({}),i=(0,a.useRef)({}),o=(0,a.useRef)(r);(0,a.useEffect)(()=>{o.current=r},[r]),(0,a.useEffect)(()=>{"undefined"!=typeof window&&(v||(v=new Promise(e=>{if(window.AddressFinder)return void e();let s=document.createElement("script");s.src="https://api.addressfinder.io/assets/v3/widget.js",s.async=!0,s.onload=()=>e(),document.body.appendChild(s)})))},[]),(0,a.useEffect)(()=>{let e,r;if("undefined"==typeof window||!s.current)return;let a=()=>{var a,n;if(!window.AddressFinder||!s.current)return;null==(a=i.current.NZ)||a.disable(),null==(n=i.current.AU)||n.disable(),e=new window.AddressFinder.Widget(s.current,b,"NZ",{manual_style:!0,max_results:5}),r=new window.AddressFinder.Widget(s.current,b,"AU",{manual_style:!0,address_params:{source:"gnaf,paf"},max_results:5});let d=(e,s)=>{var t;return null==(t=o.current)?void 0:t.call(o,s)};e.on("address:select",d),r.on("address:select",d),"NZ"===t?(e.enable(),r.disable()):(r.enable(),e.disable()),i.current={NZ:e,AU:r},l({NZ:e,AU:r})};return null==v||v.then(()=>{setTimeout(a,0)}),()=>{try{null==e||e.disable(),null==r||r.disable()}catch(e){}i.current={},l({})}},[s,t]),(0,a.useEffect)(()=>{let{NZ:e,AU:s}=i.current;e&&s&&("NZ"===t?(e.enable(),s.disable()):(s.enable(),e.disable()))},[t])}({inputRef:u,country:A,onAddressSelect:e=>{P(),V(e)}}),(0,a.useEffect)(()=>{u.current&&(u.current.value=""),P(),R(null)},[A,P]),(0,r.jsx)(i.nA,{children:(0,r.jsx)(o.j,{containerHeading:t.heading,containerText:t.text,containerButtons:t.buttons,backgroundColour:null!=(s=t.backgroundColour)?s:"Default",children:(0,r.jsxs)("div",{className:"rounded-md sm:rounded-lg border bg-card shadow-[10px_10px_0_0_hsl(var(--primary)/0.1)] p-4 sm:p-8",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-4 flex-wrap gap-2",children:[(0,r.jsx)(f.c,{country:A,onChange:_}),(0,r.jsx)(g,{checked:C,onChange:S})]}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:items-stretch",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 w-full transition-all duration-500 ease-in-out ".concat(C?"md:w-2/3":"md:w-full"),children:[(0,r.jsx)("div",{className:"text-md sm:text-xl font-semibold",children:"Search an address"}),(0,r.jsx)(x,{ref:u,onInput:()=>{P(),R(null)},onClear:()=>{u.current&&(u.current.value=""),P(),R(null)},hasSelectedAddress:!!D},A),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("div",{className:"text-md sm:text-xl font-semibold",children:"Address"}),D&&(0,r.jsx)("button",{type:"button",onClick:U,"aria-label":I?"Address copied":"Copy address",children:I?(0,r.jsx)(d.A,{className:"size-4 text-primary/70 hover:text-primary"}):(0,r.jsx)(c.A,{className:"size-4 text-muted-foreground hover:text-primary"})})]}),(0,r.jsx)(h,{country:A,address1Ref:p,address2Ref:y,suburbRef:j,cityStateRef:N,postcodeRef:w})]}),C&&(0,r.jsx)("div",{className:"md:w-1/3 w-full md:self-start",children:(0,r.jsx)(m,{data:D,format:"json"})})]})]})})})}},30521:(e,s,t)=>{"use strict";t.d(s,{ContactFormSection:()=>_});var r=t(95155),a=t(66942),n=t(22544),l=t(3998),i=t(41052),o=t(60315),d=t(76596),c=t(79616),u=t(31120);function m(e){let{name:s,label:t,placeholder:a}=e,{control:l}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:l,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(u.T,{placeholder:a,className:"resize-none",...s})}),(0,r.jsx)(i.C5,{})]})}})}var f=t(65142);function x(e){let{name:s,label:t,placeholder:a}=e,{control:l}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:l,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(f.p,{placeholder:a,...s})}),(0,r.jsx)(i.C5,{})]})}})}var p=t(15653);let h={name:"",email:"",organisation:"",message:""};var g=t(12115);function b(e){let{name:s,label:t,placeholder:a,isValidating:l}=e,{control:o}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:o,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(f.p,{placeholder:a,isValidating:l,showStateIcon:!0,...s})}),!l&&(0,r.jsx)(i.C5,{})]})}})}var v=t(89980),y=t(84094),j=t(36117),N=t.n(j),w=t(72996),k=t(73457);function A(e){let{name:s,children:t}=e,{control:a}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:a,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsxs)("div",{className:"flex flex-row items-center space-x-2 space-y-0",children:[(0,r.jsx)(i.MJ,{children:(0,r.jsx)(k.S,{checked:s.value,onCheckedChange:s.onChange})}),(0,r.jsx)(i.lR,{className:"font-normal",children:t})]}),(0,r.jsx)(i.C5,{})]})}})}function _(e){let{section:s}=e,[t,u]=(0,g.useState)(!1),[f,j]=(0,g.useState)(!1),[k,_]=(0,g.useState)(!1),[C,S]=(0,g.useState)(!1),D=(0,g.useMemo)(()=>p.z.object({name:p.z.string().min(1,{message:"Please complete this required field"}),organisation:p.z.string().min(1,{message:"Please complete this required field"}),email:p.z.string().min(1,{message:"Please complete this required field"}).email({message:"Invalid email address"}).superRefine(async(e,s)=>{let{success:t}=p.z.string().min(1).email().safeParse(e);if(!1===t)return!0;let r=window.localStorage.getItem("contact.email.".concat(e));if(""===r)return;if(null!==r)return void s.addIssue({code:p.z.ZodIssueCode.custom,message:r});S(!0);let a=await fetch("https://api.addressfinder.io/api/email/v1/verification/?format=json&email=".concat(e,"&key=").concat("7JQGWXM86HLDFY4TCK9B","&features=domain%2Cconnection")).then(e=>e.json()).finally(()=>S(!1));if(a.is_verified)return void window.localStorage.setItem("contact.email.".concat(e),"");s.addIssue({code:p.z.ZodIssueCode.custom,message:a.not_verified_reason}),window.localStorage.setItem("contact.email.".concat(e),a.not_verified_reason)}),message:p.z.string().min(1,{message:"Please complete this required field"}),privacy_statement:p.z.boolean().refine(e=>!0===e,{message:"Please accept our terms and policies"})}),[]),R=(0,n.mN)({resolver:(0,a.u)(D),defaultValues:h,mode:"onBlur"}),I=Object.keys(R.formState.touchedFields);return(0,g.useEffect)(()=>{I.includes("name")&&!k&&(_(!0),y.Ay.track(y._m))},[I,k]),(0,r.jsx)(d.nA,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[(0,r.jsx)("div",{children:(0,r.jsx)(c.w,{when:s.content,children:(0,r.jsx)(o.ContentBlocks,{content:s.content})})}),(0,r.jsx)("div",{className:"px-1",children:(0,r.jsx)(i.lV,{...R,children:(0,r.jsxs)("form",{onSubmit:R.handleSubmit(e=>{y.Ay.track(y.MP,{submission_time:N()().format("YYYY-MM-DDThh:mm:ss")}),fetch("/functions/contact-form",{method:"post",body:JSON.stringify(e)}).then(()=>{u(!0),R.reset()}).catch(()=>j(!0)).finally(()=>{setTimeout(()=>{u(!1),j(!1)},1e4)})}),className:"space-y-8",children:[(0,r.jsx)(x,{name:"name",label:"Full name",placeholder:"First and last name"}),(0,r.jsx)(x,{name:"organisation",label:"Organisation",placeholder:"Your business or company name"}),(0,r.jsx)(b,{name:"email",label:"Work email",placeholder:"Email address",isValidating:C}),(0,r.jsx)(m,{name:"message",label:"Message",placeholder:"Let us know how
1we can help"}),(0,r.jsx)(A,{name:"privacy_statement",children:(0,r.jsxs)("span",{className:"whitespace-pre-wrap text-sm",children:["I have read and agree to the"," ",(0,r.jsx)(w.Yq,{target:"_blank",href:"/privacy",children:"Privacy Statement"})]})}),(0,r.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,r.jsx)(l.$,{type:"submit",disabled:C,onClick:()=>{u(!1),j(!1)},children:"Send"}),(0,r.jsx)(c.w,{when:t,children:(0,r.jsx)(v.f,{className:"text-success",size:"small",children:"Thank you! We have received your message. Someone from our team will contact you soon."})}),(0,r.jsx)(c.w,{when:f,children:(0,r.jsx)(v.f,{className:"text-destructive",size:"small",children:"There was an issue submitting the form. Please try again."})})]})]})})})]})})}},31120:(e,s,t)=>{"use strict";t.d(s,{T:()=>i});var r=t(95155),a=t(12115),n=t(64269),l=t(41052);let i=a.forwardRef((e,s)=>{let{className:t,...a}=e,{error:i,isDirty:o}=(0,l.Wd)();return(0,r.jsx)("textarea",{className:(0,n.cn)("flex min-h-[120px] w-full rounded-lg border focus-visible:border-2 bg-muted px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:bg-background focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"border-destructive":i,"border-success":!i&&o,"border-input focus:border-ring":!i&&!o},t),ref:s,...a})});i.displayName="Textarea"},48843:(e,s,t)=>{"use strict";t.d(s,{BulkVerificationPreviewSection:()=>v});var r=t(95155),a=t(76596),n=t(49762),l=t(13406),i=t(15651),o=t(89856),d=t(9824);function c(e){let{section:s,children:t}=e,a=(0,o.useCurrentLocale)(d.X0)||d.X0.defaultLocale,n=[{key:"au",name:"Australia",content:s.auBulkVerificationPreviewTabs},{key:"nz",name:"New Zealand",content:s.nzBulkVerificationPreviewTabs}];return(0,r.jsxs)(l.Tabs,{defaultValue:a,children:[(0,r.jsx)("div",{className:"flex justify-center mb-4 sm:mb-6",children:(0,r.jsx)(l.TabsList,{children:(0,r.jsx)(i.a,{each:n,children:e=>(0,r.jsx)(l.TabsTrigger,{value:e.key,children:e.name},e.key)})})}),(0,r.jsx)(i.a,{each:n,children:e=>{var a;return(0,r.jsx)(l.TabsContent,{value:e.key,children:t({content:e.content,dataNote:null!=(a=s.dataNote)?a:""})},e.key)}})]})}var u=t(12115),m=t(19979),f=t(87212),x=t(9349),p=t.n(x),h=t(64269);function g(e){var s;let{csv:t}=e,a=(0,u.useRef)(null),[n,l]=(0,u.useState)(!1),[i,o]=(0,u.useState)(!1),d=()=>{if(!a.current)return;let{scrollLeft:e,scrollWidth:s,clientWidth:t}=a.current;l(e>0),o(e+t<s-1)},c=e=>{var s;null==(s=a.current)||s.scrollBy({left:e,behavior:"smooth"})};(0,u.useEffect)(()=>{let e=a.current;if(e)return d(),e.addEventListener("scroll",d),window.addEventListener("resize",d),()=>{e.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[]);let x=p().parse(t.trim(),{skipEmptyLines:!0}),g=null!=(s=x.data[0])?s:[],b=x.data.slice(1);return(0,r.jsxs)("div",{className:"relative p-0 sm:px-8",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{ref:a,className:"overflow-x-auto scroll-smooth bg-background scrollbar-primary scrollbar-force-visible",children:(0,r.jsxs)("table",{className:"min-w-max w-full text-xs sm:text-sm border border-border border-collapse",children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:g.map((e,s)=>(0,r.jsx)("th",{className:(0,h.cn)("px-3 py-2 text-left font-medium whitespace-nowrap border border-border",s<2?"bg-primary/10":"bg-secondary text-secondary-foreground"),children:e.trim()},s))})}),(0,r.jsx)("tbody",{children:b.map((e,s)=>(0,r.jsx)("tr",{children:e.map((e,s)=>(0,r.jsx)("td",{className:"px-3 py-1.5 align-middle whitespace-nowrap border border-border",children:e.trim()},s))},s))})]})}),n&&(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-6 bg-gradient-to-r from-background to-transparent sm:hidden"}),i&&(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-6 bg-gradient-to-l from-background to-transparent sm:hidden"})]}),(0,r.jsx)("button",{onClick:()=>c(-150),className:(0,h.cn)("group hidden sm:flex absolute left-0 top-1/2 -translate-y-1/2 rounded-md p-1 transition-colors duration-300 border",n?"bg-primary/10 hover:bg-primary":"bg-secondary pointer-events-none"),"aria-label":"Scroll left",children:(0,r.jsx)(m.A,{className:"w-4 h-4 text-foreground group-hover:text-background","aria-hidden":"true"})}),(0,r.jsx)("button",{onClick:()=>c(150),className:(0,h.cn)("group hidden sm:flex absolute right-0 top-1/2 -translate-y-1/2 roun
1ded-md p-1 transition-colors duration-300 border",i?"bg-primary/10 hover:bg-primary":"bg-secondary pointer-events-none"),"aria-label":"Scroll right",children:(0,r.jsx)(f.A,{className:"w-4 h-4 text-foreground group-hover:text-background","aria-hidden":"true"})})]})}function b(e){let{content:s,dataNote:t}=e,a=(0,u.useId)(),n=(0,u.useMemo)(()=>s?s.map((e,s)=>{var t;if(!e)return null;let r="".concat(s);return{key:null!=(t=e.id)?t:r,value:r,triggerId:"".concat(a,"-tab-").concat(r),panelId:"".concat(a,"-panel-").concat(r),index:s,tab:e}}).filter(e=>!!e):[],[s,a]),[i,o]=(0,u.useState)(()=>{var e,s;return null!=(s=null==(e=n[0])?void 0:e.value)?s:"0"});return(0,u.useEffect)(()=>{if(0===n.length)return void o("0");n.some(e=>e.value===i)||o(n[0].value)},[n,i]),(0,r.jsxs)(l.Tabs,{value:i,onValueChange:o,children:[(0,r.jsx)("div",{className:"flex justify-center mb-3 sm:mb-4",children:(0,r.jsx)("div",{className:"overflow-x-auto no-scrollbar px-2 sm:px-4",children:(0,r.jsx)(l.TabsList,{className:"flex gap-0 sm:gap-2 min-w-max bg-transparent p-0",children:n.map(e=>{let{key:s,value:t,triggerId:a,panelId:l,tab:d,index:c}=e,u=i===t;return(0,r.jsxs)("button",{id:a,type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive",tabIndex:u?0:-1,onClick:()=>o(t),onKeyDown:e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key){e.preventDefault();let s=(c+("ArrowRight"===e.key?1:-1)+n.length)%n.length;n[s]&&o(n[s].value)}},className:" group relative flex items-center gap-2 px-2 sm:px-3 py-1 sm:py-1.5 text-sm font-medium text-muted-foreground hover:text-foreground bg-transparent border-none shadow-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=active]:text-foreground ",children:[(0,r.jsxs)("span",{className:"relative flex items-center justify-center w-4 h-4",children:[(0,r.jsx)("span",{className:" absolute inset-0 rounded-full border-2 border-muted-foreground group-data-[state=active]:border-primary "}),(0,r.jsx)("span",{className:" w-2.5 h-2.5 rounded-full bg-primary opacity-0 group-data-[state=active]:opacity-100 transition-opacity duration-200 "})]}),d.tabName]},s)})})})}),(0,r.jsxs)("div",{className:"rounded-lg border border-border p-2 sm:p-6 bg-card bg-white dark:bg-black",children:[n.map(e=>{let{key:s,value:t,panelId:a,triggerId:n,tab:i}=e;return(0,r.jsx)(l.TabsContent,{value:t,id:a,"aria-labelledby":n,children:(0,r.jsx)(g,{csv:i.tabCsvContent||""})},s)}),t&&(0,r.jsx)("p",{className:"mt-3 sm:mt-4 text-xs sm:text-sm text-muted-foreground text-center",children:t})]})]})}function v(e){var s;let{section:t}=e;return(0,r.jsx)(a.nA,{children:(0,r.jsx)(n.j,{containerHeading:t.heading,containerText:t.text,containerButtons:t.buttons,backgroundColour:null!=(s=t.bvpsBackgroundColour)?s:"Default",children:(0,r.jsx)(c,{section:t,children:e=>{let{content:s,dataNote:t}=e;return(0,r.jsx)(b,{content:s,dataNote:t})}})})})}},49762:(e,s,t)=>{"use strict";t.d(s,{j:()=>g});var r=t(95155),a=t(90284),n=t(80243),l=t(69123),i=t(89980),o=t(64269);function d(e){let{className:s,title:t}=e;if(!t)return;let a=t.variant===n.xm.Centred,d=t.variant===n.xm.Centred?"2":"3";return(0,r.jsxs)("div",{className:(0,o.cn)("mb-8 sm:mb-12",s),children:[(0,r.jsx)(l.D,{level:d,center:a,children:t.title}),t.description&&(0,r.jsx)(i.f,{center:a,className:"mt-4 sm:mt-6",children:t.description})]})}(0,a.J)("\n fragment SectionTitleFragment on ComponentUtilSectionTitle {\n title\n variant\n description\n }\n");var c=t(60315),u=t(64340),m=t(3998),f=t(15651);function x(e){let{button:s,className:t}=e;return(0,r.jsx)(m.$,{variant:s.type.toLowerCase(),className:t,asChild:!0,children:(0,r.jsx)(u.Link,{href:p(s),children:s.content})},s.id)}(0,a.J)("\n fragment ButtonFragment on ComponentUtilButton {\n id\n content\n type\n href\n page {\n slug\n }\n }\n");let p=e=>e?e.page?"/".concat(e.page.slug):e.href?e.href:"":"";function h(e){var s;let{buttons:t,className:a}=e,n=null==(s=null!=t?t:[])?void 0:s.filter(e=>!!e);if(0!==n.length)return(0,r.jsx)("div",{className:(0,o.cn)("flex flex-wrap justify-center gap-3 w-full",a),children:(0,r.jsx)(f.a,{each:n,children:e=>(0,r.jsx)(x,{button:e,className:"w-full md:w-auto"},e.id)})})}
1function g(e){let{containerHeading:s,children:t,containerText:a,containerButtons:n,backgroundColour:l="Default"}=e;return(0,r.jsxs)("div",{className:(0,o.cn)("rounded-md sm:rounded-lg p-4 sm:p-16",{Default:"bg-background",Brand:"!my-0 bg-primary/10",Muted:"!my-0 bg-muted"}[l]),children:[(0,r.jsx)(d,{title:s}),t,(0,r.jsx)(c.ContentBlocks,{content:a,className:"text-center mt-6 sm:mt-12",styles:{paragraph:{className:"text-sm"}}}),(0,r.jsx)(h,{buttons:n,className:"mt-6 sm:mt-12"})]})}},62190:(e,s,t)=>{"use strict";t.d(s,{c:()=>a});var r=t(95155);function a(e){let{country:s,onChange:t}=e;return(0,r.jsxs)("div",{className:"relative inline-flex rounded-3xl bg-background p-1 border border-primary overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute top-[3px] bottom-[3px] left-[3px] rounded-full bg-primary transition-all duration-300 ease-in-out w-[calc(50%-3px)] ".concat("NZ"===s?"translate-x-full":"translate-x-0")}),(0,r.jsxs)("button",{type:"button",onClick:()=>t("AU"),className:"relative z-10 basis-1/2 min-w-[60px] md:min-w-[130px] px-2 md:px-5 py-1.5 text-xs md:text-sm font-bold whitespace-nowrap transition-colors ".concat("AU"===s?"text-background":"text-muted-foreground hover:text-primary"),children:[(0,r.jsx)("span",{className:"block md:hidden",children:"Aus"}),(0,r.jsx)("span",{className:"hidden md:block",children:"Australia"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>t("NZ"),className:"relative z-10 basis-1/2 min-w-[60px] md:min-w-[130px] px-2 md:px-5 py-1.5 text-xs md:text-sm font-bold whitespace-nowrap transition-colors ".concat("NZ"===s?"text-background":"text-muted-foreground hover:text-primary"),children:[(0,r.jsx)("span",{className:"block md:hidden",children:"NZ"}),(0,r.jsx)("span",{className:"hidden md:block",children:"New Zealand"})]})]})}},65142:(e,s,t)=>{"use strict";t.d(s,{p:()=>c});var r=t(95155),a=t(12115),n=t(64269),l=t(41052),i=t(34788),o=t(25352),d=t(69746);let c=a.forwardRef((e,s)=>{let{className:t,type:a,isValidating:c,showStateIcon:u,...m}=e,{error:f,isTouched:x}=(0,l.Wd)(),p=f&&!c,h=!f&&x&&!c;return(0,r.jsxs)("div",{className:"w-full relative",children:[(0,r.jsx)("input",{type:a,className:(0,n.cn)("flex h-12 w-full rounded-lg border focus-visible:border-2 bg-muted px-4 py-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:bg-background focus-visible:outline-none ring-0 disabled:cursor-not-allowed disabled:opacity-50",{"border-destructive":p,"border-success":h,"border-input focus:border-ring":!p&&!h},t),ref:s,...m}),u&&(0,r.jsxs)("div",{className:"absolute top-1/2 right-3 -translate-y-1/2",children:[p&&(0,r.jsx)(i.A,{className:"size-6 text-destructive"}),h&&(0,r.jsx)(o.A,{className:"size-6 text-success"}),c&&(0,r.jsx)(d.A,{className:"size-6 text-muted-foreground animate-spin"})]})]})});c.displayName="Input"},67192:(e,s,t)=>{Promise.resolve().then(t.bind(t,33604)),Promise.resolve().then(t.bind(t,47342)),Promise.resolve().then(t.bind(t,63209)),Promise.resolve().then(t.t.bind(t,81356,23)),Promise.resolve().then(t.t.bind(t,41402,23)),Promise.resolve().then(t.bind(t,60315)),Promise.resolve().then(t.bind(t,90308)),Promise.resolve().then(t.bind(t,27145)),Promise.resolve().then(t.bind(t,48843)),Promise.resolve().then(t.bind(t,30521)),Promise.resolve().then(t.bind(t,68792)),Promise.resolve().then(t.bind(t,1016)),Promise.resolve().then(t.bind(t,99204)),Promise.resolve().then(t.bind(t,13496)),Promise.resolve().then(t.bind(t,17037)),Promise.resolve().then(t.bind(t,13406)),Promise.resolve().then(t.bind(t,1089)),Promise.resolve().then(t.bind(t,64340)),Promise.resolve().then(t.bind(t,85051))},68792:(e,s,t)=>{"use strict";t.d(s,{EmailVerificationDemoSection:()=>f});var r=t(95155),a=t(12115),n=t(76596),l=t(49762),i=t(3998),o=t(64340),d=t(34788),c=t(64269),u=t(15239);let m=[{key:"success",description:"The service ran successfully"},{key:"is_verified",description:"The email is valid and verified"},{key:"verified_email",description:"The full verified email address"},{key:"email_account",description:"The first part of the email address - commonly used to infer name from business emails"},{key:"email_domain",description:"The information following the '@' - commonly used to identify business domains"},{key:"email_provider_domain",description:"The base domain of the email provider"}
1,{key:"is_public",description:"The email provider is public (eg. Gmail, Yahoo) - commonly used to infer business or personal email *"},{key:"is_role",description:"The email is a group or shared email (eg. [email protected])"},{key:"is_catch_all",description:"The email is configured to receive all emails sent to the domain regardless of the email_account"},{key:"is_disposable",description:"The address is a known disposable or temporary email address (eg. Temp Mail, Guerilla Mail)"},{key:"not_verified_code",description:(0,r.jsxs)(r.Fragment,{children:["Error code if ",(0,r.jsx)("span",{className:"font-semibold",children:"is_verified"})," is false"]})},{key:"not_verified_reason",description:"The reason the email could not be verified"}];function f(e){var s,t;let{section:f}=e,[x,p]=(0,a.useState)("[email protected]"),[h,g]=(0,a.useState)(!0),[b,v]=(0,a.useState)(null),[y,j]=(0,a.useState)(!1),[N,w]=(0,a.useState)(null),k=(0,a.useMemo)(()=>b?{catchAll:void 0===b.is_catch_all?null:b.is_catch_all?"Catch-all":"Not catch-all",disposable:void 0===b.is_disposable?null:b.is_disposable?"Disposable":"Not disposable",public:void 0===b.is_public?null:b.is_public?"Personal *":"Business *",role:void 0===b.is_role?null:b.is_role?"Group or shared":null}:null,[b]),A=async()=>{g(!1),j(!0),w(null);try{let e=new URLSearchParams({format:"json",email:x.trim(),key:"AF_WEBSITE_EV_DEMO",features:"domain,connection,provider"}),s=await fetch("".concat("https://api.addressfinder.io/api/email/v1/verification","?").concat(e.toString())).then(e=>e.json());v(s)}catch(e){console.error(e),w("Unable to verify this email right now."),v(null)}finally{j(!1)}};return(0,r.jsx)(n.nA,{children:(0,r.jsxs)(l.j,{containerHeading:f.heading,containerText:f.text,containerButtons:f.buttons,backgroundColour:null!=(s=f.emailBackgroundColour)?s:"Default",children:[(0,r.jsxs)("div",{className:"rounded-md sm:rounded-lg border bg-card shadow-[10px_10px_0_0_hsl(var(--primary)/0.1)] p-4 sm:p-8",children:[(0,r.jsx)("div",{className:"text-md sm:text-xl font-semibold",children:"Verify an email address"}),(0,r.jsxs)("form",{className:"mt-4 flex flex-col sm:flex-row gap-3 sm:items-center",onSubmit:e=>{e.preventDefault(),A()},children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)("input",{type:"email",value:x,onChange:e=>{p(e.target.value),v(null),w(null)},placeholder:"Enter an email address",className:"flex w-full rounded-md sm:rounded-lg border border-input px-4 py-3 placeholder:text-muted-foreground focus-visible:border-primary focus-visible:outline-none",autoComplete:"off","data-1p-ignore":!0}),(b||h)&&(0,r.jsxs)("button",{type:"button",onClick:()=>{g(!1),p(""),v(null),w(null)},className:"absolute right-3 top-1/2 -translate-y-1/2 text-primary font-semibold text-sm hover:underline",children:[(0,r.jsx)("span",{className:"hidden md:block",children:"CLEAR"}),(0,r.jsx)("span",{className:"block md:hidden",children:(0,r.jsx)(d.A,{className:"w-6 h-6 text-primary"})})]})]}),(0,r.jsx)(i.$,{type:"submit",variant:"outline",disabled:y||!x.trim(),className:"h-12 min-w-[110px] bg-secondary hover:bg-secondary/90",children:y?"Verifying...":"Verify"})]}),N&&(0,r.jsx)("div",{className:"mt-3 text-sm text-destructive",children:N}),!b&&!N&&(0,r.jsx)("div",{className:"mt-3 text-sm",children:"Verification responses will appear below."}),(null==b?void 0:b.is_verified)!==void 0&&(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:[(0,r.jsx)(u.default,{src:b.is_verified?"/images/api-status-icon-ok.svg":"/images/api-status-icon-not-ok.svg",alt:b.is_verified?"Verified":"Verification failed",width:20,height:20}),(0,r.jsx)("span",{className:"font-semibold",children:b.is_verified?"Verified":"Verification failed"}),!b.is_verified&&b.not_verified_reason&&(0,r.jsx)("span",{className:"rounded-md border border-muted-foreground/30 px-3 py-1 text-xs font-semibold text-muted-foreground",children:b.not_verified_reason}),b.is_verified&&(null==k?void 0:k.catchAll)&&(0,r.jsx)("span",{className:"data-tags-catch-all rounded-md border border-muted-foreground
1/30 px-3 py-1 text-xs font-semibold text-muted-foreground",children:k.catchAll}),b.is_verified&&(null==k?void 0:k.disposable)&&(0,r.jsx)("span",{className:"data-tags-disposable rounded-md border border-muted-foreground/30 px-3 py-1 text-xs font-semibold text-muted-foreground",children:k.disposable}),b.is_verified&&(null==k?void 0:k.public)&&(0,r.jsx)("span",{className:"data-tags-public rounded-md border border-muted-foreground/30 px-3 py-1 text-xs font-semibold text-muted-foreground",children:k.public}),b.is_verified&&(null==k?void 0:k.role)&&(0,r.jsx)("span",{className:"data-tags-role rounded-md border border-muted-foreground/30 px-3 py-1 text-xs font-semibold text-muted-foreground",children:k.role})]})]}),b&&(0,r.jsxs)("div",{className:"mt-8 sm:mt-10",children:[(0,r.jsx)("div",{className:"text-lg sm:text-xl font-semibold",children:"Response for this email address"}),(0,r.jsxs)("p",{className:"mt-2 text-sm",children:[(null==b?void 0:b.is_verified)===!1?"Verification failed for ":"The following response and metadata will be returned for ",(0,r.jsx)("span",{className:"font-semibold text-foreground",children:null!=(t=null==b?void 0:b.verified_email)?t:x}),". View"," ",(0,r.jsx)(o.Link,{href:"https://addressfinder.com/nz/docs/api/email-verification-api",className:"text-primary hover:underline",children:"developer docs"})," ","for more information."]}),(0,r.jsx)("div",{className:"mt-6 overflow-hidden rounded-lg border border-input",children:(0,r.jsxs)("div",{className:"overflow-x-auto",children:[(0,r.jsxs)("div",{className:"min-w-[640px] grid grid-cols-[160px_1fr_2fr] gap-x-4 bg-background px-4 sm:px-6 py-3 text-sm sm:text-base font-bold text-foreground",children:[(0,r.jsx)("div",{children:"Name"}),(0,r.jsx)("div",{children:"Response"}),(0,r.jsx)("div",{children:"Description"})]}),(0,r.jsx)("div",{className:"min-w-[640px] divide-y divide-border",children:m.filter(e=>!b.is_verified||"not_verified_reason"!==e.key&&"not_verified_code"!==e.key).map((e,s)=>{let t=b[e.key];return(0,r.jsxs)("div",{className:(0,c.cn)("grid grid-cols-[160px_1fr_2fr] gap-x-4 px-4 sm:px-6 py-4 text-sm",s%2==0?"bg-secondary":"bg-background"),children:[(0,r.jsx)("div",{children:e.key}),(0,r.jsx)("div",{children:"boolean"==typeof t?t?"true":"false":t||"â"}),(0,r.jsx)("div",{children:e.description})]},e.key)})})]})})]})]})})}},73457:(e,s,t)=>{"use strict";t.d(s,{S:()=>d});var r=t(95155),a=t(12115),n=t(15781),l=t(25352),i=t(64269),o=t(41052);let d=a.forwardRef((e,s)=>{let{className:t,...a}=e,{error:d}=(0,o.Wd)();return(0,r.jsx)(n.bL,{ref:s,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border focus-visible:border-2 bg-muted focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary/50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",{"border-destructive":d,"border-input focus:border-ring":!d},t),...a,children:(0,r.jsx)(n.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(l.A,{className:"h-4 w-4"})})})});d.displayName=n.bL.displayName},85051:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>r});let r={src:"/_next/static/media/PlaceholderPhoto.35f3a1e1.png",height:202,width:202,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEXvpVb53b/qkjTyuX3yt3fxsGrzvYTwq2H1x5f1w47tn0z2z6XumkD31bH1y58Dy3teAAAABHRSTlP9++/sDlR1oQAAAAlwSFlzAAALEwAACxMBAJqcGAAAADVJREFUeJwlyUsOgDAIQMGH0vIr3v+4RtlNMrB0e4kwaAHTHU8LaUvDq8nvwouD/eLkiGt0vzfvAZbAPBv1AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},90308:(e,s,t)=>{"use strict";t.d(s,{AddressVerificationDemoSection:()=>k});var r=t(95155),a=t(12115),n=t(89856),l=t(9824),i=t(76596),o=t(49762),d=t(3998),c=t(62190),u=t(64340),m=t(34788),f=t(64269),x=t(15239);let p={NZ:"lvl 2 1 ghuznee st wellingtn",AU:"22 Elizabeth St, hobart, tas"},h={NZ:"https://api.addressfinder.io/api/nz/address/verification",AU:"https://api.addressfinder.io/api/au/address/v2/verification"},g={NZ:"https://addressfinder.com/docs/api/nz/nz-address-metadata-api#responses",AU:"https://addressfinder.com/docs/api/au/au-address-metadata-api#responses"},b={NZ:{format:"json"},AU:{format:"json",gnaf:"1",paf:"1",gps:"1",extended:"1",census:"2021"}},v=(e,s)=>{let t=e;for(let e of s){if(!t||"object"!=typeof t)return;t=t[e]}return t},y=e=>
1null!=e&&""!==e,j=[{key:"matched",description:"Indicates if the address has been matched or not",getValue:e=>e.matched},{key:"full_address",description:"Full address string",getValue:e=>v(e,["address","full_address"])},{key:"latitude",description:"Latitude coordinate (in WGS84 format)",getValue:e=>v(e,["address","latitude"])},{key:"longitude",description:"Longitude coordinate (in WGS84 format)",getValue:e=>v(e,["address","longitude"])},{key:"box_type",description:"Describes the type of box",getValue:e=>v(e,["address","box_type"])},{key:"unit_type",description:"Describes the category of a sub-dwelling",getValue:e=>v(e,["address","unit_type"])},{key:"success",description:"Indicates if the request was successful or not",getValue:e=>e.success}],N=[{key:"matched",description:"Indicates if the address has been matched or not",getValue:e=>e.matched},{key:"a",description:"Canonical address as supplied by Land Information New Zealand or NZ Post",getValue:e=>e.a},{key:"postal",description:"Postal address (if NZ Post delivers here)",getValue:e=>e.postal},{key:"y",description:"Latitude coordinate (in WGS84 format)",getValue:e=>e.y},{key:"x",description:"Longitude coordinate (in WGS84 format)",getValue:e=>e.x},{key:"box_type",description:"The type portion of a PO Box address, including PO Box, Locked Bag, GPO Box, CMB, RMS, Care PO, MS and RSD",getValue:e=>e.box_type},{key:"unit_type",description:"Describes the category of a sub-dwelling",getValue:e=>e.unit_type},{key:"dpid",description:"Unique identifier from NZ Post",getValue:e=>e.dpid},{key:"rural",description:"An indicator to help determine if this address is located in a rural setting. Note Different courier companies have different rural/urban boundaries so this determination should be confirmed by your delivery agent",getValue:e=>e.rural},{key:"success",description:"Indicates if the request was successful or not",getValue:e=>e.success}],w=[{key:"matched",description:"Indicates if the address has been matched or not",getValue:e=>e.matched},{key:"success",description:"Indicates if the request was successful or not",getValue:e=>e.success}];function k(e){var s;let{section:t}=e,k=((0,n.useCurrentLocale)(l.X0)||l.X0.defaultLocale).toUpperCase(),[A,_]=(0,a.useState)(k),[C,S]=(0,a.useState)(p[k]),[D,R]=(0,a.useState)(null),[I,z]=(0,a.useState)(!0),[P,V]=(0,a.useState)(!1),[B,U]=(0,a.useState)(null),L=(0,a.useMemo)(()=>{if(!D)return[];if("object"==typeof D&&!Array.isArray(D)){let e=D.matched,s="boolean"==typeof e?e:null;return null===s?Object.entries(D).map(e=>{let[s,t]=e;return{key:s,value:t,description:"Response field from the API"}}):(!1===s?w:"AU"===A?j:N).map(e=>({key:e.key,value:e.getValue(D),description:e.description}))}return[{key:"response",value:D,description:"Response from the API"}]},[D,A]),T=(0,a.useMemo)(()=>{if(!D||"object"!=typeof D||Array.isArray(D))return null;let e=D.matched;return"boolean"==typeof e?e:null},[D]),Z=(0,a.useMemo)(()=>{if(!D||"object"!=typeof D||Array.isArray(D))return[];let e=[];
1if(!1===D.matched&&e.push("Match not found *"),!0===D.matched&&e.push("Standardised"),"AU"===A){let s=v(D,["address","latitude"]),t=v(D,["address","longitude"]),r=v(D,["address","unit_type"]),a=v(D,["address","box_type"]);y(s)&&y(t)&&e.push("Geocoded"),y(r)&&e.push(String(r)),y(a)&&e.push(String(a))}if("NZ"===A){let s=D.x,t=D.y,r=D.unit_type,a=D.box_type;D.postal&&e.push("NZ Post deliverable"),y(s)&&y(t)&&e.push("Geocoded"),y(r)&&e.push(String(r)),y(a)&&e.push(String(a)),!0===D.rural&&e.push("Rural")}return e},[D,A]),E=e=>y(e)?String(e).split(",").map(e=>e.trim()).filter(e=>e.length>0):[],M=(0,a.useMemo)(()=>!0!==T||!D||"object"!=typeof D||Array.isArray(D)?[]:"AU"===A?E(v(D,["address","full_address"])):E(D.a),[D,A,T]);(0,a.useEffect)(()=>{R(null),U(null),S(p[A])},[A]);let F=async()=>{z(!1),V(!0),U(null);try{let e=new URLSearchParams({...b[A],q:C.trim(),key:"AF_WEBSITE_AV_DEMO"}),s=await fetch("".concat(h[A],"?").concat(e.toString())).then(e=>{if(!e.ok)throw Error("Request failed with status ".concat(e.status));return e.json()});R(s)}catch(e){console.error(e),U("Unable to verify this address right now."),R(null)}finally{V(!1)}};return(0,r.jsx)(i.nA,{children:(0,r.jsxs)(o.j,{containerHeading:t.heading,containerText:t.text,containerButtons:t.buttons,backgroundColour:null!=(s=t.addressBackgroundColour)?s:"Default",children:[(0,r.jsxs)("div",{className:"rounded-md sm:rounded-lg border bg-card shadow-[10px_10px_0_0_hsl(var(--primary)/0.1)] p-4 sm:p-8",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsx)("div",{className:"text-md sm:text-xl font-semibold",children:"Verify an address"}),(0,r.jsx)(c.c,{country:A,onChange:_})]}),(0,r.jsxs)("form",{className:"mt-4 flex flex-col sm:flex-row gap-3 sm:items-center",onSubmit:e=>{e.preventDefault(),F()},children:[(0,r.jsxs)("div",{className:"relative flex-1",children:[(0,r.jsx)("input",{type:"text",value:C,onChange:e=>{S(e.target.value),R(null),U(null)},placeholder:"Enter an address",className:"flex w-full rounded-md sm:rounded-lg border border-input px-4 py-3 placeholder:text-muted-foreground focus-visible:border-primary focus-visible:outline-none",autoComplete:"off","data-1p-ignore":!0}),(D||I)&&(0,r.jsxs)("button",{type:"button",onClick:()=>{z(!1),S(""),R(null),U(null)},className:"absolute right-3 top-1/2 -translate-y-1/2 text-primary font-semibold text-sm hover:underline",children:[(0,r.jsx)("span",{className:"hidden md:block",children:"CLEAR"}),(0,r.jsx)("span",{className:"block md:hidden",children:(0,r.jsx)(m.A,{className:"w-6 h-6 text-primary"})})]})]}),(0,r.jsx)(d.$,{type:"submit",variant:"outline",disabled:P||!C.trim(),className:"h-12 min-w-[110px] bg-secondary hover:bg-secondary/90",children:P?"Verifying...":"Verify"})]}),B&&(0,r.jsx)("div",{className:"mt-3 text-sm text-destructive",children:B}),!D&&!B&&(0,r.jsx)("div",{className:"mt-3 text-sm",children:"Verification responses will appear below."}),null!==T&&(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:[(0,r.jsx)(x.default,{src:T?"/images/api-status-icon-ok.svg":"/images/api-status-icon-not-ok.svg",alt:T?"Verified":"Verification failed",width:20,height:20}),(0,r.jsx)("span",{className:"font-semibold",children:T?"Verified":"Verification failed"}),Z.map(e=>(0,r.jsx)("span",{className:"rounded-md border border-muted-foreground/30 px-3 py-1 text-xs font-semibold text-muted-foreground",children:e},e))]}),!0===T&&M.length>0&&(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("div",{className:"text-sm font-semibold",children:"Verified address match:"}),(0,r.jsx)("div",{className:"mt-2 inline-block rounded-md border border-muted-foreground/30 px-3 py-2 text-sm",children:M.map(e=>(0,r.jsx)("div",{children:e},e))})]}),!1===T&&(0,r.jsx)("div",{className:"mt-4 text-sm",children:"* This address may not exist or doesn't include enough detail to be confidently matched to a verified address."})]}),D&&(0,r.jsxs)("div",{className:"mt-8 sm:mt-10",children:[(0,r.jsx)("div",{className:"text-lg sm:text-xl font-semibold",children:"Response for this address"}),(0,r.jsxs)("p",{className:"mt-2 text-sm",children:["The following response and metadata will be returned for"," ",(0,r.jsx)("span",{className:"font-semibold text-foreground",children:C}),". View"," ",(0,r.jsx)(u.Link,{href:g[A],className:"text-primary hover:underline",children:"full metadata response"}
1)," ","in the developer docs."]}),(0,r.jsx)("div",{className:"mt-6 overflow-hidden rounded-lg border border-input",children:(0,r.jsxs)("div",{className:"overflow-x-auto",children:[(0,r.jsxs)("div",{className:"min-w-[640px] grid grid-cols-[160px_1fr_2fr] gap-x-4 bg-background px-4 sm:px-6 py-3 text-sm sm:text-base font-bold text-foreground",children:[(0,r.jsx)("div",{children:"Name"}),(0,r.jsx)("div",{children:"Response"}),(0,r.jsx)("div",{children:"Description"})]}),(0,r.jsx)("div",{className:"min-w-[640px] divide-y divide-border",children:L.map((e,s)=>{var t;let a=null==(t=e.value)||""===t?"â":"boolean"==typeof t?t?"true":"false":"string"==typeof t||"number"==typeof t?String(t):JSON.stringify(t);return(0,r.jsxs)("div",{className:(0,f.cn)("grid grid-cols-[160px_1fr_2fr] gap-x-4 px-4 sm:px-6 py-4 text-sm",s%2==0?"bg-secondary":"bg-background"),children:[(0,r.jsx)("div",{children:e.key}),(0,r.jsx)("div",{children:a}),(0,r.jsx)("div",{children:e.description})]},e.key)})})]})})]})]})})}},99204:(e,s,t)=>{"use strict";t.d(s,{SalesFormSection:()=>ee});var r=t(95155),a=t(66942),n=t(22544),l=t(3998),i=t(41052),o=t(60315),d=t(76596),c=t(81950),u=t(79616),m=t(25537),f=t(25352),x=t(12115),p=t(4327),h=t(12463),g=t(41808),b=t(37230),v=t(64269),y=t(89511),j=t(34788);y.bL,y.l9;let N=y.ZL;y.bm;let w=x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(y.hJ,{ref:s,className:(0,v.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a})});w.displayName=y.hJ.displayName,x.forwardRef((e,s)=>{let{className:t,children:a,...n}=e;return(0,r.jsxs)(N,{children:[(0,r.jsx)(w,{}),(0,r.jsxs)(y.UC,{ref:s,className:(0,v.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[a,(0,r.jsxs)(y.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(j.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}).displayName=y.UC.displayName,x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(y.hE,{ref:s,className:(0,v.cn)("text-lg font-semibold leading-none tracking-tight",t),...a})}).displayName=y.hE.displayName,x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(y.VY,{ref:s,className:(0,v.cn)("text-sm text-muted-foreground",t),...a})}).displayName=y.VY.displayName;let k=x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(g.uB,{ref:s,className:(0,v.cn)("flex h-full w-full flex-col overflow-hidden rounded-md text-popover-foreground",t),...a})});k.displayName=g.uB.displayName;let A=x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,r.jsx)(b.A,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,r.jsx)(g.uB.Input,{ref:s,className:(0,v.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...a})]})});A.displayName=g.uB.Input.displayName;let _=x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(g.uB.List,{ref:s,className:(0,v.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...a})});_.displayName=g.uB.List.displayName;let C=x.forwardRef((e,s)=>(0,r.jsx)(g.uB.Empty,{ref:s,className:"py-6 text-center text-sm",...e}));C.displayName=g.uB.Empty.displayName;let S=x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(g.uB.Group,{ref:s,className:(0,v.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...a})});S.displayName=g.uB.Group.displayName,x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(g.uB.Separator,{ref:s,className:(0,v.cn)("-mx-1 h-px bg-border",t),...a})}).displayName=g.uB.Separator.displayName;let D=x.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(g.uB.Item,{ref:s,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",t),...a})});D.displayName=g.uB.Item.displayName;var R=t(65142),I=t(26333),z=t(17037);let P=x.forwardRef((e,s)=>{let{className:t,onChange:a,isValidating:n,...l}=e;return(0,r.jsx)(p.Ay,{ref:s,className:(0,v.cn)("flex",t),flagComponent:B,countrySelectComponent:V,inputComponent:R.p,onChange:e=>null==a?void 0:a(e||""),numberInputProps:{isValidating:n,showStateIcon:!0,className:"rounded-e-lg rounded-s-none"},...l})});P.displayName="PhoneInput";let V=e=>{let{disabled:s,value:t,onChange:a,options:n}=e,i=x.useCallback(e=>{a(e)},[a]);return(0,r.jsxs)(I.AM,{children:[(0,r.jsx)(I.Wv,{asChild:!0,children:(0,r.jsxs)(l.$,{type:"button",variant:"outline",className:(0,v.cn)("flex gap-1 h-12 rounded-e-none border-e-0 rounded-s-lg px-3 bg-muted"),disabled:s,children:[(0,r.jsx)("span",{className:"text-base",children:t?"+".concat(p.Ko(t)):"?"}),(0,r.jsx)(m.A,{className:(0,v.cn)("-mr-1 h-4 w-4 opacity-50",s?"hidden":"opacity-100")})]})}),(0,r.jsx)(I.hl,{className:"w-[300px] p-0",children:(0,r.jsx)(k,{children:(0,r.jsx)(_,{children:(0,r.jsxs)(z.ScrollArea,{className:"h-72 bg-background",children:[(0,r.jsx)(A,{placeholder:"Search country..."}),(0,r.jsx)(C,{children:"No country found."}),(0,r.jsx)(S,{children:n.filter(e=>e.value).map(e=>(0,r.jsxs)(D,{className:"gap-2",onSelect:()=>i(e.value),children:[(0,r.jsx)(B,{country:e.value,countryName:e.label}),(0,r.jsx)("span",{className:"flex-1 text-sm",children:e.label}
1),e.value&&(0,r.jsx)("span",{className:"text-sm text-foreground/50",children:"+".concat(p.Ko(e.value))}),(0,r.jsx)(f.A,{className:(0,v.cn)("ml-auto h-4 w-4",e.value===t?"opacity-100":"opacity-0")})]},e.value))})]})})})})]})},B=e=>{let{country:s,countryName:t}=e,a=h.Ay[s];return(0,r.jsx)("span",{className:"flex h-4 w-6 overflow-hidden rounded-sm bg-foreground/20",children:a&&(0,r.jsx)(a,{title:t})})};function U(e){let{name:s,label:t,placeholder:a,isValidating:l}=e,{control:o}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:o,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(P,{defaultCountry:"NZ",placeholder:a,isValidating:l,...s})}),(0,r.jsx)(i.C5,{})]})}})}B.displayName="FlagComponent";var L=t(11186);function T(e){let{name:s,label:t,placeholder:a,options:l}=e,{control:o}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:o,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsxs)(L.l6,{onValueChange:s.onChange,defaultValue:s.value,value:s.value,children:[(0,r.jsx)(i.MJ,{children:(0,r.jsx)(L.bq,{children:(0,r.jsx)(L.yv,{placeholder:a})})}),(0,r.jsx)(L.gC,{children:l.map(e=>(0,r.jsx)(L.eb,{value:e.key,children:e.label},e.key))})]}),(0,r.jsx)(i.C5,{})]})}})}var Z=t(31120);function E(e){let{name:s,label:t,placeholder:a}=e,{control:l}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:l,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(Z.T,{placeholder:a,className:"resize-none",...s})}),(0,r.jsx)(i.C5,{})]})}})}var M=t(73457);function F(e){let{name:s,children:t}=e,{control:a}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:a,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsxs)("div",{className:"flex flex-row items-center space-x-2 space-y-0",children:[(0,r.jsx)(i.MJ,{children:(0,r.jsx)(M.S,{checked:s.value,onCheckedChange:s.onChange})}),(0,r.jsx)(i.lR,{className:"font-normal",children:t})]}),(0,r.jsx)(i.C5,{})]})}})}function q(e){let{name:s,label:t,options:a}=e,{control:l}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:l,name:s,render:e=>{let{field:n}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(i.lR,{className:"text-base",children:t})}),(0,r.jsxs)("div",{className:"flex flex-col space-y-4",children:[null==a?void 0:a.map(e=>{var t;return(0,r.jsxs)("div",{className:"flex flex-row items-center space-x-2 space-y-0",children:[(0,r.jsx)(M.S,{id:"".concat(s,".").concat(e.key),onCheckedChange:s=>{var t,r;return s?n.onChange([...null!=(r=n.value)?r:[],e.key]):n.onChange(null==(t=n.value)?void 0:t.filter(s=>s!==e.key))},checked:null==(t=n.value)?void 0:t.includes(e.key)}),(0,r.jsx)(i.lR,{htmlFor:"".concat(s,".").concat(e.key),children:e.label})]},e.key)}),(0,r.jsx)(i.C5,{})]})]})}})}function W(e){let{name:s,label:t,placeholder:a}=e,{control:l}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:l,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(R.p,{placeholder:a,...s})}),(0,r.jsx)(i.C5,{})]})}})}var J=t(72996),O=t(15653);let Y={name:"",email:"",organisation:"",phone:"",features:[],lookups:"",message:"",terms_and_conditions:!1,keep_me_updated:!1};function G(e){let{name:s,label:t,placeholder:a,isValidating:l}=e,{control:o}=(0,n.xW)();return(0,r.jsx)(i.zB,{control:o,name:s,render:e=>{let{field:s}=e;return(0,r.jsxs)(i.eI,{children:[(0,r.jsx)(i.lR,{children:t}),(0,r.jsx)(i.MJ,{children:(0,r.jsx)(R.p,{placeholder:a,isValidating:l,showStateIcon:!0,...s})}),!l&&(0,r.jsx)(i.C5,{})]})}})}var K=t(89980),H=t(84094),X=t(36117),$=t.n(X);let Q=[{key:"AV",label:"Address verification / Autocomplete"},{key:"EV",label:"Email verification"},{key:"PV",label:"Phone verification"},{key:"Metadata",label:"Data enrichment (e.g. address metadata)"},{key:"BV",label:"One-offs bulk verification/enrichment"},{key:"Other",label:"Other"}];function ee(e){let{section:s}=e,[t,m]=(0,x.useState)(!1),[f,h]=(0,x.useState)(!1),[g,b]=(0,x.useState)(!1),[v,y]=(0,x.useState)(!1),[j,N]=(0,x.useState)(!1),w=(0,x.useMemo)(()=>O.z.object({name:O.z.string().min(1,{message:"Please complete this required field"}),organisation:O.z.string().min(1,{message:"Please complete this required field"}),email:O.z.string().min(1,{message:"Please complete this required field"}).email({message:"Invalid email address"}).superRefine(async(e,s)=>{let{success:t}=O.z.string().min(1).email().safeParse(e);if(!1===t)return!0;let r=window.localStorage.getItem("contact.email.".concat(e));if(""===r)return;if(null!==r)return void s.addIssue({code:O.z.ZodIssueCode.custom,message:r});y(!0);let a=await fetch("https://api.addressfinder.io/api/email/v1/verification/?format=json&email=".concat(e,"&key=").concat("7JQGWXM86HLDFY4TCK9B","&features=domain%2Cconnection")).then(e=>e.json()).finally(()=>y(!1));if(a.is_verified)return void window.localStorage.setItem("contact.email.".concat(e),"");s.addIssue({code:O.z.ZodIssueCode.custom,message:a.not_verified_reason}),window.localStorage.setItem("contact.email.".concat(e),a.not_verified_reason)}),phone:O.z.string().min(1,{message:"Please complete this required field"}).refine(p.g0,{message:"Invalid phone number"}).superRefine(async(e,s)=>{let{success:t}=O.z.string().min(1).refine(p.g0).safeParse(e);if(!1===t)return!0;let r=window.localStorage.getItem("contact.phone.".concat(e));if(""===r)return;if(null!==r)return void s.addIssue({code:O.z.ZodIssueCode.custom,message:r});N(!0);let a=await fetch("https://api.addressfinder.io/api/phone/v1/verification/?format=json&phone_number=".concat(e,"&key=").concat("Q7EPY8L9DM3FBHTRCGXU","&default_country_code=nz")).then(e=>e.json()).finally(()=>N(!1));if(a.is_verified)return void window.localStorage.setItem("contact.phone.".concat(e),"");s.addIssue({code:O.z.ZodIssueCode.custom,message:a.not_verified_reason}),window.localStorage.setItem("contact.phone.".concat(e),a.not_verified_reason)}),features:O.z.array(O.z.string()).refine(e=>e.some(e=>e),{message:"Please select at least one option"}),lookups:O.z.string().min(1,{message:"Please complete this required field"}),message:O.z.string().min(1,{message:"Please complete this required field"}),terms_and_conditions:O.z.boolean().refine(e=>!0===e,{message:"Please accept our terms and policies"}
1),keep_me_updated:O.z.boolean()}),[]),k=(0,n.mN)({resolver:(0,a.u)(w),defaultValues:Y,mode:"onBlur"}),A=Object.keys(k.formState.touchedFields);return(0,x.useEffect)(()=>{A.includes("name")&&!g&&(b(!0),H.Ay.track(H.KZ))},[A,g]),(0,r.jsx)(d.nA,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{className:"size-12 p-3 rounded-lg mb-6 bg-background text-primary border"}),(0,r.jsx)(u.w,{when:s.content,children:(0,r.jsx)(o.ContentBlocks,{content:s.content})})]}),(0,r.jsx)("div",{className:"px-1",children:(0,r.jsx)(i.lV,{...k,children:(0,r.jsxs)("form",{onSubmit:k.handleSubmit(e=>{H.Ay.track(H.yB,{submission_time:$()().format("YYYY-MM-DDThh:mm:ss")}),fetch("/functions/sales-form",{method:"post",body:JSON.stringify(e)}).then(()=>{m(!0),k.reset()}).catch(()=>h(!0)).finally(()=>{setTimeout(()=>{m(!1),h(!1)},1e4)})}),className:"space-y-8",children:[(0,r.jsx)(W,{name:"name",label:"Full name",placeholder:"First and last name"}),(0,r.jsx)(W,{name:"organisation",label:"Organisation",placeholder:"Your business or company name"}),(0,r.jsx)(G,{name:"email",label:"Work email",placeholder:"Email address",isValidating:v}),(0,r.jsx)(U,{name:"phone",label:"Phone",placeholder:"Phone number",isValidating:j}),(0,r.jsx)(q,{name:"features",label:"Which features are you interested in?",options:Q}),(0,r.jsx)(T,{name:"lookups",label:"Estimated annual number of lookups",placeholder:"Select one",options:[{key:"200000",label:"200,000 â 500,000"},{key:"500000",label:"500,000 â 1,000,000"},{key:"1000000",label:"1,000,000 â 2,000,000"},{key:"2000000",label:"2,000,000 â 5,000,000"},{key:"5000000",label:"5,000,000+"}]}),(0,r.jsx)(E,{name:"message",label:"Message",placeholder:"Let us know how we can help"}),(0,r.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,r.jsx)(F,{name:"terms_and_conditions",children:(0,r.jsxs)("span",{className:"whitespace-pre-wrap text-sm",children:["I have read and agree to the"," ",(0,r.jsx)(J.Yq,{target:"_blank",href:s.privacy_statement,children:"Privacy Statement"})]})}),(0,r.jsx)(F,{name:"keep_me_updated",children:"Keep me updated on news and offers"})]}),(0,r.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,r.jsx)(l.$,{type:"submit",disabled:v||j,onClick:()=>{m(!1),h(!1)},children:"Send"}),(0,r.jsx)(u.w,{when:t,children:(0,r.jsx)(K.f,{className:"text-success",size:"small",children:"Thank you for your interest! We'll be in touch to discuss your needs."})}),(0,r.jsx)(u.w,{when:f,children:(0,r.jsx)(K.f,{className:"text-destructive",size:"small",children:"There was an issue submitting the form. Please try again."})})]})]})})})]})})}}}]);
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.