PageSourceSearch

https://fishserve.co.nz/_next/static/chunks/188-fa330f15dbaf5330.js

js fishserve.co.nz collected 2026-10-07 21:57:56 UTC 35,832 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[188],{3748:function(e,l,s){s.r(l),s.d(l,{AppProvider:function(){return c},useAppContext:function(){return d}});var t=s(3827),r=s(4090),a=s(8678),n=s.n(a);let i=(0,r.createContext)(),c=e=>{let{children:l}=e,[s,a]=(0,r.useState)(!1),[c,d]=(0,r.useState)(),[o,m]=(0,r.useState)(!1),[x,h]=(0,r.useState)(),[u,f]=(0,r.useState)([]);return(0,r.useEffect)(()=>{var e;d((null===(e=window)||void 0===e?void 0:e.innerWidth)<1024),n().init("lsaxc6/fishserve")},[]),(0,t.jsx)(i.Provider,{value:{isMobile:c,loading:o,start:()=>{m(!0)},stop:()=>{m(!1)},isNavOpen:s,setIsNavOpen:a,hashtag:x,setHashtag:h,sections:u,setSections:f},children:l})},d=()=>(0,r.useContext)(i)},3369:function(e,l,s){s.r(l),s.d(l,{Video:function(){return c}});var t=s(3827),r=s(4090),a=s(4833),n=s.n(a);let i={container:{paddingBottom:"56.25%"}};function c(e){let{fields:l}=e,[s,a]=(0,r.useState)(!0),{title:c,videoUrl:d}=l;return((0,r.useEffect)(()=>{a(!1)},[]),d)?(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"relative h-0 w-full items-center overflow-hidden",style:i.container,children:!s&&(0,t.jsx)(n(),{style:{position:"absolute"},width:"100%",height:"100%",controls:!0,url:d})})}):null}},8219:function(e,l,s){s.d(l,{l8:function(){return y},BQ:function(){return C},qp:function(){return I},SB:function(){return k},Kx:function(){return P},sb:function(){return E},Qo:function(){return A}});var t=s(3827),r=s(3146),a=s(2207),n=s(1558),i=s(9085),c=s(8243),d=e=>{let{fields:l}=e,{richImage:s,rteContentA:r,rteContentB:a,layout:d,theme:o="Sand"}=l,m=d;m=m.replace("Image ","").toLowerCase();let x=(0,i.Zm)(r),h=(0,i.Zm)(a),u=a?"basis-1/2":"w-full";return(0,t.jsx)("div",{className:"border-t border-cobalt py-6 bg-".concat((0,c.Yw)(o,10)),children:"above"==m||"none"==m?(0,t.jsxs)(n.W,{className:"flex w-full flex-col items-center gap-6 md:pt-12",children:["none"!=m&&s&&(0,t.jsx)("div",{className:"relative aspect-[20/9] w-full overflow-hidden ",children:(0,t.jsx)("img",{alt:s.fields.caption,src:s.fields.image.fields.file.url,className:"absolute left-0 top-0 rounded-lg shadow-lg"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:gap-12 md:pb-16",children:[(0,t.jsx)("div",{className:"rte-content ".concat(u),children:x}),h&&(0,t.jsx)("div",{className:"rte-content ".concat(u),children:h})]})]}):(0,t.jsxs)(n.W,{className:"relative flex w-full flex-col items-center gap-2 md:flex-row md:gap-10",children:[(0,t.jsx)("div",{className:"rte-content basis-1/2 ".concat("left"==m&&"order-2"),children:x}),s&&(0,t.jsx)("div",{className:"basis-1/2 overflow-hidden py-6 ".concat("left"==m&&"order-1"),children:(0,t.jsx)("img",{alt:s.fields.caption,src:s.fields.image.fields.file.url,className:"rounded-lg border border-cobalt/30 shadow-lg"})})]})})},o=s(9402),m=s(2431),x=e=>{let{fields:l}=e,{content:s,ctaLink:r,colorTheme:a="White",layout:d="Standard",backgroundLightness:o}=l,x=d.indexOf("Centered")>-1,h=d.indexOf("Standard")>-1,u=d.indexOf("Notification")>-1,{title:f,subtitle:b,text:p}=s.fields,j=(0,i.Zm)(p);return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"border-t border-cobalt/50 bg-".concat((0,c.Yw)(a,o)),children:(0,t.jsxs)(n.W,{className:u?"p-5 xmd:max-w-lg mx-auto":"px-6 py-12 md:px-12 md:py-24",children:[u&&(0,t.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 md:flex-row ",children:(0,t.jsxs)("div",{className:"md:items-left flex flex-col items-center gap-4 md:flex-row",children:[(0,t.jsx)("div",{className:"whitespace-nowrap font-demi text-black/70",children:f}),b&&(0,t.jsx)("div",{className:"whitespace-nowrap text-black/70",children:b}),(0,t.jsx)("div",{className:"rte-content -mt-4 flex flex-col items-center justify-center text-center font-light text-sm md:-mt-2 md:text-left ",children:j}),r&&(0,t.jsx)(m.A,{className:"",type:r.fields.style,href:r.fields.actionUrl,children:r.fields.title})]})}),x&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,t.jsx)("h2",{children:f}),(0,t.jsx)("h3",{className:"mt-3",children:b}),(0,t.jsx)("div",{className:"rte-content prose text-center font-light text-lg md:text-xl",children:j})]}),h&&(0,t.jsxs)("div",{className:"flex-col",children:[(0,t.jsxs)("div",{className:"flex flex-row  gap-3",children:[(0,t.jsx)("h3",{children:f}),(0,t.jsx)("h3",{className:"font-normal",children:b})]}),(0,t.jsx)("div",{className:"rte-content prose mt-6 font-light text-lg md:w-1/2 md:text-xl",children:j})]}),r&&!u&&(0,t.jsx)("div",{className:"flex flex-col ".concat(x&&"items-center"," pt-12"),children:(0,t.jsx)(m.A,{className:"mt-10",type:"button-light",href:r.fields.actionUrl,children:r.fields.title})})]})})})},h=s(6365),u=s(5579),f=e=>{let{fields:l={}}=e,{internalName:s,items:r}=l;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg- border-t border-cobalt bg-aqua/10 py-4 md:py-16",children:(0,t.jsx)(n.W,{className:"px-6 py-12 md:px-12 md:py-24",children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,t.jsx)("div",{className:"basis-1/4 pb-8 md:mr-32",children:(0,t.jsx)("p",{children:"Fishserve is committed to partnering with Māori and to apply a Te Ao Māori view to the delivery of its strategy. As a first step Fishserve translated its strategy into Te Reo."})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-4xl md:text-7xl ",children:"Nāu te rourou, nāku te rourou, ka ora ai te iwi."}),(0,t.jsx)("p",{className:"block py-7 text-2xl md:text-3xl",children:"With your food basket and my food basket the people will thrive."}),(0,t.jsxs)("div",{className:"justify-content mt-3 flex flex-col gap-4 md:mt-6 lg:flex-row",children:[(0,t.jsx)("a",{className:"button-square arrow-down lg:flex-1",href:"https://assets.ctfassets.net/nobgftnx04cz/3ICq2T8Uo7dgtmcObQZ5XZ/4e039e5894b867b6a26424ddd11b4886/Statement_of_Strategic_Direction.pdf",children:"Strategic Direction document English"}),(0,t.jsx)("a",{className:"button-square arrow-down lg:flex-1",href:"https://assets.ctfassets.net/nobgftnx04cz/3x8DFefCATI5Yh0jKnif67/711ff0ee7b98d994628479eb44b18562/Te_Tau_k__O_Te_Rautaki_Ahunga.pdf",children:"Strategic Direction document Te Reo"})]})]})]})})})})},b=e=>{let{fields:l={}}=e,{internalName:s,customType:r,colorTheme:a,backgroundLightness:i}=l;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg- border-t border-cobalt bg-".concat((0,c.Yw)(a,i)),children:(0,t.jsx)(n.W,{className:"py-12",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6 md:flex-row",children:[(0,t.jsxs)("div",{className:"flex-1 text-center md:text-left",children:[(0,t.jsx)("h2",{children:"Glossary of Terms."}),(0,t.jsx)("p",{children:"Frequently used terms and acronyms in Fisheries Management."})]}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(m.A,{type:"button",href:"/glossary-of-terms",children:"View the Glossary"})})]})})})})},p=s(5383);let j=e=>{let{fields:l}=e,{title:s,subtitle:r,image:a,layout:i}=l,c=(null==i?void 0:i.indexOf("Left"))>-1;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"relative border-t border-cobalt bg-aqua/10",children:(0,t.jsxs)(n.W,{noPadding:!0,className:"relative flex w-full flex-col gap-6 md:flex-row md:items-center",children:[(0,t.jsxs)("div",{className:"basis-1/2 pl-6 ".concat(c?"order-2 pb-8 pt-3 ":"pt-12"," pb-4 "),children:[(0,t.jsx)("p",{className:"h1",children:r}),(0,t.jsx)("h1",{className:"mt-3 font-normal text-3xl",children:s})]}),(0,t.jsx)("div",{className:"relative aspect-[16/9] basis-1/2 overflow-hidden ".concat(c&&"order-1"),children:(0,t.jsx)("img",{alt:a.fields.caption,src:a.fields.image.fields.file.url,className:"left-0 top-0 md:absolute md:border-cobalt ".concat(c?"border-r":"border-l")})})]})})})},v=e=>{let{fields:l}=e,{title:s,subtitle:r,image:a,subsectionTitle:i,subsectionContent:c,subsectionCta:d}=l;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"relative border-t border-cobalt/30 bg-white py-10",children:(0,t.jsxs)(n.W,{className:"relative flex flex-col items-center",children:[(0,t.jsx)("p",{className:"h1 text-center",children:r}),(0,t.jsx)("h1",{className:"mt-2 font-normal text-3xl",children:s})]})}),a&&(0,t.jsx)("div",{className:"border-t border-cobalt bg-sand",children:(0,t.jsx)(n.W,{noPadding:!0,className:"relative aspect-[20/9] w-full overflow-hidden bg-cobalt",children:(0,t.jsx)("img",{alt:a.fields.caption,src:a.fields.image.fields.file.url,className:"absolute left-0 top-0"})})}),c&&(0,t.jsx)("div",{className:"relative border-t border-cobalt bg-aqua/10 md:py-8",children:(0,t.jsxs)(n.W,{className:"relative flex flex-col gap-6 p-10 md:flex-row md:gap-12",children:[(0,t.jsx)("p",{className:"h1",children:i}),(0,t.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,t.jsx)("p",{className:"md:pr-12",children:c}),d&&(0,t.jsx)(m.A,{openInNewWindow:d.fields.openInNewWindow,className:"mt-10",type:"button-light",href:d.fields.actionUrl,children:d.fields.title})]})]})})]})},N=e=>{let{fields:l}=e,{heading:s,title:r,subtitle:a,ctaLink:i,background:d,overlay:o,colorTheme:x,backgroundLightness:h,customBackgroun
1d:u}=l,f="";return u&&(f=u.startsWith("#")?u:"#"+u),(0,t.jsx)("div",{style:{backgroundColor:f},className:"relative border-t border-cobalt/50 bg-".concat((0,c.Yw)(x,h)," "),children:(0,t.jsxs)(n.W,{noPadding:!0,className:"relative min-h-[550px] md:min-h-[622px]",useBorders:!1,children:[(0,t.jsxs)("div",{className:"absolute top-12 z-20 p-8 md:top-0 md:w-3/5 md:p-16",children:[(0,t.jsx)("h1",{className:"text-cobalt",children:s}),(0,t.jsx)("h2",{className:"my-8",children:r}),(0,t.jsx)("h2",{className:"font-normal",children:a}),(0,t.jsx)("div",{className:"pt-12",children:i&&(0,t.jsx)(m.A,{href:i.fields.actionUrl,children:i.fields.title})})]}),d&&(0,t.jsx)("img",{src:d.fields.file.url,className:"absolute bottom-0 w-full"}),o&&(0,t.jsx)("img",{className:"zones hidden md:block",src:o.fields.file.url})]})})},g=e=>{let{fields:l}=e,{internalName:s,title:r,subtitle:a,content:i,ctaLink:d,image:o,layout:x,colorTheme:h,backgroundLightness:u}=l;return(0,c.Yw)(h,u),(0,t.jsx)("div",{className:"border-t border-cobalt py-12 md:py-40 bg-".concat((0,c.Yw)(h,u)),children:(0,t.jsxs)(n.W,{className:"flex flex-col items-center gap-6 md:flex-row ",children:[(0,t.jsx)("div",{className:"flex basis-1/2 items-center justify-center",children:(0,t.jsx)("img",{src:"https://fakeimg.pl/400x400?text=Product"})}),(0,t.jsxs)("div",{className:"flex basis-1/2 flex-col pt-8 md:pt-0",children:[(0,t.jsx)("h2",{children:r}),(0,t.jsx)("p",{className:"my-8 text-2xl ",children:i}),(0,t.jsx)("div",{className:"pt-6 md:pt-12",children:(0,t.jsx)(m.A,{href:"/",children:"Read more"})})]})]})})},w=e=>{let{fields:l}=e,{title:s,subtitle:r,image:a,ctaLink:i,colorTheme:d,layout:o}=l,x=(null==o?void 0:o.indexOf("Left"))>-1;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"relative bg-".concat((0,c.Yw)(d)),children:[(0,t.jsx)(n.W,{className:"relative",noPadding:!0,children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,t.jsx)("div",{className:"xlg:p-12 basis-3/5 ".concat(!x&&"order-2"),children:(0,t.jsx)("img",{alt:a.fields.caption,src:a.fields.image.fields.file.url,className:"lg:border-".concat(x?"l":"r"," lg:border-white/20 ")})}),(0,t.jsxs)("div",{className:"relative flex basis-2/5  flex-col px-10 py-16  ".concat(!x&&"order-1"),children:[(0,t.jsxs)("div",{className:"z-10",children:[(0,t.jsx)("h1",{className:"text-white",dangerouslySetInnerHTML:{__html:s}}),(0,t.jsx)("p",{className:"mt-6 font-normal text-2xl text-3xl text-gray-300",children:r})]}),(0,t.jsx)("img",{className:"zones z-0 block md:hidden",src:"/vector/zones.png"}),(0,t.jsx)("div",{className:"mt-20 flex-1"}),(0,t.jsx)(m.A,{className:"z-20 text-gray-300",href:i.fields.actionUrl,children:i.fields.title})]})]})}),(0,t.jsx)("img",{className:"zones hidden md:block",src:"/vector/zones.png"})]})})},y="120px",C="80px",k={Accordion:"sectionAccordian",Cards:"sectionCards",Content:"sectionContent",NewsletterSignup:"sectionNewsletterSignup",Promo:"sectionPromo",Team:"sectionTeam",Timeline:"sectionTimeline",Custom:"sectionCustom"},S={Strategy:"Strategy",Glossary:"Glossary Promo",Contact:"Contact Form"},W={Compact:"heroCompact",Full:"heroFull",FullImage:"heroFullImage",HeroPromo:"heroPromo",Split:"heroSplit"},I={PostPage:"pageBlogPost",ContentPage:"pageContent"},E=e=>{switch(e){case k.Accordion:return r.default;case k.Cards:return a.default;case k.Content:return d;case k.NewsletterSignup:return o.default;case k.Promo:return x;case k.Team:return h.default;case k.Timeline:return u.default;case W.Compact:return j;case W.Full:return v;case W.FullImage:return N;case W.HeroPromo:return g;case W.Split:return w;default:return()=>(0,t.jsxs)("div",{children:["No component found for type ",e]})}},A=e=>{switch(e){case S.Strategy:return f;case S.Glossary:return b;case S.Contact:return p.default;default:return()=>(0,t.jsxs)("div",{children:["No custom section component found for type ",e]})}},P="[email protected]"},9085:function(e,l,s){s.d(l,{Zm:function(){return b},EW:function(){return p}});var t=s(3827);s(6702);var r=s(2880),a=s(5341),n=s(982);s(4090),s(1720);let i={image:{margin:0}};function c(e){let{fields:l}=e,{title:s,image:r}=l;return(0,t.jsxs)("div",{className:"mt-8 lg:mb-12",children:[(0,t.jsx)("img",{className:"w-auto",style:i.image,src:"".concat(r.fields.file.url)}),(0,t.jsx)("span",{className:"py-4 text-center text-gray-700",children:s})]})}var d=s(3369),o=s(2431);let m=e=>{let{data:{target:{sys:l,fields:s}}}=e;return s.file.contentType.includes("video")?(0,t.jsx)(d.Video,{sys:l,fields:s}):s.file.contentType.includes("image")?(0,t.jsx)(c,{sys:l,fields:{name:s.name,title:s.title,image:{fields:s}}}):s.file.contentType.includes("application")?(0,t.jsx)(o.A,{href:s.file.url,type:"Button Small",isAttachment:!0,
1children:s.title}):null},x=e=>{let{data:{target:{sys:l,fields:s}}}=e;if("Link"==l.contentType.sys.type){var r;let e=null!=s.attachment,l=e?null===(r=s.attachment)||void 0===r?void 0:r.fields.file.url:s.actionUrl,a=s.openInNewWindow;return l&&(l.startsWith("http")||l.startsWith("//"))&&-1===l.indexOf("fishserve.co.nz")&&(a=!0),(0,t.jsx)(o.A,{openInNewWindow:a,isAttachment:e,href:l,type:s.style,children:s.title})}return null},h=e=>{var l;let s="AssetLink"===e.type?e.data.target.fields.file.url:e.data.uri,r=null===(l=e.content[0])||void 0===l?void 0:l.value;if(s&&"anchor"==s.trim().toLowerCase())return(0,t.jsx)("a",{id:null==r?void 0:r.replace("#","")});let a=s&&(s.startsWith("http")||s.startsWith("//"))&&-1===s.indexOf("fishserve.co.nz")?"_blank":"_self",n=b({content:e.content,data:{},nodeType:"document"});return(0,t.jsx)("a",{href:s,target:a,children:n})},u=e=>(0,t.jsx)(h,{...e,type:"PlainLink"}),f=e=>(0,t.jsx)(h,{...e,type:"AssetLink"}),b=e=>(0,a.h)(e,{renderNode:{[r.INLINES.HYPERLINK]:u,[r.INLINES.ASSET_HYPERLINK]:f,[r.INLINES.ENTRY_HYPERLINK]:()=>null,[r.BLOCKS.EMBEDDED_ASSET]:m,[r.BLOCKS.EMBEDDED_ENTRY]:x}}),p=e=>(0,n.a)(e);s(4750),s(9523),s(8219)},8243:function(e,l,s){s.d(l,{O1:function(){return a},Yw:function(){return i},cn:function(){return r},oH:function(){return d},qR:function(){return c},xf:function(){return n}});var t=s(4210);function r(){for(var e=arguments.length,l=Array(e),s=0;s<e;s++)l[s]=arguments[s];return(0,t.m)(l)}function a(e){return e?(e.startsWith("//")||e.startsWith("http")||e.startsWith("/")||(e="/".concat(e)),e):""}function n(e){return e.startsWith("//")||e.startsWith("http")}let i=(e,l)=>{let s=e?e.toLowerCase():"cobalt";return l&&100!=l&&"sand"!=s&&(s+="/".concat(l)),s},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,l="",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=s.length;for(let r=0;r<e;r++)l+=s.charAt(Math.floor(Math.random()*t));return l},d=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},1558:function(e,l,s){s.d(l,{W:function(){return a}});var t=s(3827),r=s(4210);let a=e=>{let{className:l,useBorders:s=!1,noPadding:a=!1,...n}=e;return(0,t.jsx)("div",{className:(0,r.m)("border-x-1 relative mx-auto max-w-6xl border-cobalt",a?"0":"px-4 md:px-6",l,s?"md:border-x md:border-x-cobalt/50":""),...n})};l.Z=a},2431:function(e,l,s){s.d(l,{A:function(){return i}});var t=s(3827),r=s(4210),a=s(8024),n=s(7535);let i=e=>{let l,{className:s,href:i,type:c,isAttachment:d,openInNewWindow:o,children:m,...x}=e;(null==c?void 0:c.toLowerCase())=="button"?l="rounded-full border border-cobalt bg-cobalt px-10 py-3 text-sm\n      hover:bg-cobalt/50 text-white transition-all":(null==c?void 0:c.toLowerCase())=="button small"?l="rounded-full border border-cobalt px-5 py-2 text-xs\n      inline-block my-2\n      !no-underline !text-cobalt\n      hover:bg-cobalt hover:!text-white transition-all":(null==c?void 0:c.toLowerCase())=="button-light"&&(l="rounded-full border border-cobalt px-10 py-3 text-sm\n      hover:bg-cobalt hover:text-white transition-all");let h=(null==c?void 0:c.toLowerCase().indexOf("arrow"))>-1;return(0,t.jsx)("div",{...x,className:"z-20",children:(0,t.jsxs)("a",{className:(0,r.m)("whitespace-nowrap font-demi uppercase",s,l),target:o||!0===d?"_blank":"_self",href:i,children:[d&&(0,t.jsx)("span",{className:"pr-2",children:(0,t.jsx)(a.G,{icon:n.q7m})}),m,h&&(0,t.jsx)("span",{className:"pl-3",children:"⟶"})]})})}},5383:function(e,l,s){s.r(l),s.d(l,{CustomSectionContact:function(){return c}});var t=s(3827),r=s(1558),a=s(8243),n=s(2670),i=s(8219);let c=e=>{var l,s,c,d;let{fields:o={}}=e,{internalName:m,items:x}=o,h="mb-3 w-full rounded-md border border-cobalt/50 p-3",u="bg- border-b border-cobalt xbg-aqua/10 py-4 px-4 md:py-8",f="absolute -top-10 left-0 w-full rounded-md bg-red-400 p-2 text-sm text-white",{register:b,handleSubmit:p,watch:j,formState:{errors:v}}=(0,n.cI)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg- border-t border-cobalt bg-sand ",children:(0,t.jsx)(r.W,{className:"py-8",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,t.jsx)("div",{className:(0,a.cn)("my-6 basis-1/2 flex-col gap-2 p-8","rounded-2xl bg-white shadow-lg"," border border-cobalt/20"),children:(0,t.jsxs)("form",{onSubmit:p(e=>{console.log("data",e),Object.entries(e).map(e=>{let[l,s]=e;return"".concat(encodeURIComponent(l),"=").concat(encodeURIComponent(s))}).join("&");let l="mailto:".concat(i.Kx,"?subject=").concat(encodeURIComponent("Contact form submission"),"&body=").concat(encodeURIComponent("Name: ".concat(e.name,"\n\nEmail: ").concat(e.email,"\n\nClient number: ").concat(e.clientNumber,"\n\nSubject: ").concat(e.subject,"\n\nMessage:\n\n").concat(e.message)));window.location.href=l}),children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)("input",{placeholder:"Name *",...b("name",{required:!0}),className:(0,a.cn)(h)}),(null===(l=v.name)||void 0===l?void 0:l.type)==="required"&&(0,t.jsx)("span",{className:f,children:"Name is required"})]}),(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)("input",{placeholder:"Email address *",...b("email",{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/}),className:(0,a.cn)(h)}),(null===(s=v.email)||void 0===s?void 0:s.type)==="required"&&(0,t.jsx)("span",{className:f,children:"Email is required"}),(null===(c=v.email)||void 0===c?void 0:c.type)==="pattern"&&(0,t.jsx)("span",{className:f,children:"Invalid email"})]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("div",{className:"relative basis-1/2",children:(0,t.jsx)("input",{...b("subject"),placeholder:"Subject",className:(0,a.cn)(h)})}),(0,t.jsx)("div",{className:"relative basis-1/2",children:(0,t.jsx)("input",{...b("clientNumber"),placeholder:"Client number",className:(0,a.cn)(h)})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("textarea",{...b("message",{required:!0}),placeholder:"Message *",className:(0,a.cn)(h,"h-40")}),(null===(d=v.message)||void 0===d?void 0:d.type)==="required"&&(0,t.jsx)("span",{className:(0,a.cn)(f,"bottom-2 top-auto"),children:"Message required"})]}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)("button",{type:"submit",className:"w-full whitespace-nowrap rounded-2xl border-2 bg-cobalt px-6 py-4 text-xl text-white",children:"Send email"})})]})}),(0,t.jsxs)("div",{className:"po-4 flex basis-1/2 flex-col md:p-8",children:[(0,t.jsx)("div",{className:(0,a.cn)(u),children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{className:"basis-1/2",children:[(0,t.jsx)("div",{className:"mb-2 text-sm",children:"Client Support"}),(0,t.jsx)("h2",{className:"text-xl",children:"04 460 9555"})]}),(0,t.jsxs)("div",{className:"basis-1/2",children:[(0,t.jsx)("div",{className:"mb-2 text-sm",children:"Office enquires"}),(0,t.jsx)("h2",{className:"text-xl",children:"04 385 4005"})]})]})}),(0,t.jsx)("div",{className:(0,a.cn)(u,"border-b-0"),children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{className:"basis-1/2",children:[(0,t.jsx)("div",{className:"mb-2 text-sm",children:"Physical address"}),(0,t.jsxs)("h2",{className:"text-lg",children:["Floor 12",(0,t.jsx)("br",{}),"7 Waterloo Quay",(0,t.jsx)("br",{}),"Pipitea",(0,t.jsx)("br",{}),"Wellington 6011",(0,t.jsx)("br",{}),"New Zealand"]})]}),(0,t.jsxs)("div",{className:"basis-1/2",children:[(0,t.jsx)("div",{className:"mb-2 text-sm",children:"Postal address"}),(0,t.jsxs)("h2",{className:"text-lg",children:["PO Box 297",(0,t.jsx)("br",{}),"Wellington",(0,t.jsx)("br",{}
1),"6140",(0,t.jsx)("br",{}),"New Zealand"]})]})]})})]})]})})})})};l.default=c},3146:function(e,l,s){s.r(l),s.d(l,{SectionAccordion:function(){return o}});var t=s(3827),r=s(4090),a=s(1558),n=s(9085),i=s(8024),c=s(7535),d=s(3748);let o=e=>{let{fields:l}=e,{internalName:s,heading:o,items:m,expandFirstEntry:x}=l,{sections:h,setSections:u}=(0,d.useAppContext)(),[f,b]=(0,r.useState)(1),[p,j]=(0,r.useState)(),[v,N]=(0,r.useState)("");(0,r.useEffect)(()=>{u(x?[1]:[])},[]);let g=e=>{u(l=>l.includes(e)?l.filter(l=>l!==e):[...l,e])};return(0,t.jsx)("div",{className:"border-t border-cobalt/50 bg-sand/50",children:(0,t.jsxs)(a.W,{className:"py-12 ",children:[o&&(0,t.jsx)("h2",{className:"mb-2 ",children:o}),m.map((e,l)=>{let{internalName:s,title:r,subtitle:a,text:d}=e.fields,o=(0,n.Zm)(d);(0,n.EW)(d);let m=(null==h?void 0:h.indexOf(l+1))>-1;return(0,t.jsxs)("div",{className:"accordian-item flex flex-col border-b border-cobalt pb-4 pt-5",children:[(0,t.jsxs)("div",{className:"clickable flex",onClick:e=>g(l+1),children:[(0,t.jsxs)("h4",{className:"flex-1",children:[(0,t.jsx)("a",{id:s}),r]}),(0,t.jsx)("div",{className:"text-cobalt",children:m?(0,t.jsx)(i.G,{icon:c.Kl4}):(0,t.jsx)(i.G,{icon:c.r8p})})]}),(0,t.jsx)("div",{className:"overflow-hidden transition-all duration-500 ease-in-out ".concat(m?"max-h-auto":"max-h-0"," "),children:(0,t.jsx)("div",{className:"rte-content my-6",children:o})})]},"accorianitem-".concat(l))})]})})};l.default=o},2207:function(e,l,s){s.r(l),s.d(l,{SectionCards:function(){return p},default:function(){return j}});var t=s(3827),r=s(1558);s(4090);var a=s(7907),n=s(8243),i=s(8024),c=s(7535);let d=e=>{var l,s,r;let d,o,{title:m,iconName:x,style:h,actionUrl:u,destinationPage:f,attachment:b,className:p,type:j,openInNewWindow:v,children:N,...g}=e;if((0,a.useRouter)(),!u&&!f&&!b)return;let w=m||"Read more";return f?d="/".concat(null==f?void 0:null===(l=f.fields)||void 0===l?void 0:l.slug):u?d=u:b&&(d=null==b?void 0:null===(r=b.fields)||void 0===r?void 0:null===(s=r.file)||void 0===s?void 0:s.url),d=(0,n.O1)(d),(null==j?void 0:j.toLowerCase())=="button"?o="rounded-full border border-cobalt bg-cobalt px-10 py-3 \n        hover:bg-cobalt/50 text-white transition-all":(null==j?void 0:j.toLowerCase())=="button-light"&&(o="rounded-full border border-cobalt px-10 py-3 \n        hover:bg-cobalt hover:text-white transition-all"),(0,t.jsx)(t.Fragment,{children:b?(0,t.jsxs)("a",{className:(0,n.cn)("flex text-sm font-semibold uppercase",o,p),download:w,target:"_blank",href:d,children:[(0,t.jsx)(i.G,{icon:c.q7m,className:"mr-2"}),N||w]}):(0,t.jsxs)("a",{...(0,n.xf)(d)&&{target:"_blank"},className:(0,n.cn)(" text-sm font-semibold uppercase",o,p),href:d,target:!0===v?"_blank":"_self",children:[N||w,(0,t.jsx)("span",{className:"pl-3",children:"⟶"})]})})};var o=s(3369);let m=e=>{let{fields:l}=e,{title:s,subtitle:r,summary:i,summaryRte:c,author:o,date:m,link:x,type:h}=l,u=(0,a.useRouter)(),f=(0,n.O1)(null==x?void 0:x.fields.actionUrl),b=(e,l)=>{var s;if(e){if((0,n.xf)(e)||(null==x?void 0:null===(s=x.fields)||void 0===s?void 0:s.openInNewWindow)===!0){window.open(e,"_blank","noopener,noreferrer");return}u.push(e)}};return(0,t.jsxs)("div",{className:"card article content clickable flex flex-col \n  rounded-br-3xl border border-cobalt/50\n  bg-white shadow-md h-full\n  ",onClick:e=>b(f),children:[(0,t.jsx)("div",{className:"border-b border-cobalt bg-sand",children:(0,t.jsx)("h3",{className:"mb-4 mt-7 px-4",children:s})}),(0,t.jsx)("div",{className:"content flex-1 px-4 pb-6",children:(0,t.jsx)("div",{className:"mt-4 ",children:(0,t.jsx)("p",{children:i})})}),(0,t.jsx)("div",{}),(0,t.jsx)("div",{className:"footer p-4",children:(null==x?void 0:x.fields)&&(0,t.jsx)(d,{...x.fields})})]})};var x=s(2151),h=s.n(x);let u=e=>{let{fields:l}=e,{title:s,subTitle:r,summary:i,summaryRte:c,author:m,date:x,link:h,type:u}=l,f=(0,a.useRouter)(),b=(0,n.O1)(null==h?void 0:h.fields.actionUrl),p=(e,l)=>{var s;if(e){if((0,n.xf)(e)||(null==h?void 0:null===(s=h.fields)||void 0===s?void 0:s.openInNewWindow)===!0){window.open(e,"_blank","noopener,noreferrer");return}f.push(e)}};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"card article content clickable flex flex-col \n  rounded-br-3xl border border-cobalt/50\n  bg-white shadow-md h-full\n  ",onClick:e=>p(b),children:[(0,t.jsx)("div",{className:"border-b border-cobalt bg-sand",children:(0,t.jsx)("h3",{className:"mb-4 mt-7 px-4",children:s})}),(0,t.jsx)(o.Video,{fields:l}),r&&(0,t.jsx)("p",{className:"mt-1 p-2",children:r}),(0,t.jsx)("div",{className:"footer p-4",children:(null==h?void 0:h.fields)&&(0,t.jsx)(d,{...h.fields})})]})})},f=e=>{let{cards:l}=e;return(0,t.jsx)("div",{className:"split-background-waves border-t border-cobalt",children:(0,t.jsxs)(r.W,{className:"px-4 py-10 md:p-16",children:[(0,t.jsx)("div",{className:"relative z-10 grid grid-cols-1 gap-8 md:grid-cols-2",children:null==l?void 0:l.map((e,l)=>{let s=e.fields.summary;return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center px-12",children:[(0,t.jsx)("h4",{className:"mb-3 mt-6 text-center",children:e.fields.title}),(0,t.jsx)("p",{className:"mdc:w-1/2 text-center",children:s})]},(0,n.qR)())})}),(0,t.jsx)("div",{className:"waves-container",id:"waves-left",children:(0,t.jsx)("img",{src:"/vector/waves.png"})}),(0,t.jsx)("div",{className:"waves-container",id:"waves-right",children:(0,t.jsx)("img",{src:"/vector/waves.png"})})]})})},b=e=>{let{fields:l}
1=e,{title:s,slug:r,shortDescription:i,content:c,author:o,publishedDate:m,type:x}=l,u=(0,a.useRouter)(),f="/news".concat((0,n.O1)(r)),b=e=>{e&&u.push(e)};return(0,t.jsxs)("div",{className:"card article content clickable flex flex-col \n  rounded-br-3xl border border-cobalt/50\n  bg-white shadow-md h-full\n  ",onClick:e=>b(f),children:[(0,t.jsxs)("div",{className:"preheader mt-4 flex px-4 text-xs  uppercase",children:[(0,t.jsx)("p",{className:" flex-1",children:"Article"}),m&&(0,t.jsx)("p",{children:h()(m).format("DD MMM YYYY")})]}),(0,t.jsxs)("div",{className:"content flex-1 px-4 pb-6",children:[(0,t.jsx)("h3",{className:"mt-7",children:s}),(0,t.jsx)("div",{className:"mt-4 ",children:(0,t.jsx)("p",{children:i})})]}),(0,t.jsx)("div",{className:"footer p-4",children:(0,t.jsx)(d,{title:"Read more",actionUrl:f})})]})},p=e=>{let{fields:l}=e,{title:s,summary:a,cards:n,type:i,ctaLinks:c}=l,d="Video Cards"==i;return(0,t.jsx)(t.Fragment,{children:"Blue Waves"==i?(0,t.jsx)(f,{cards:n}):(0,t.jsx)("div",{className:"border-t border-cobalt/50 bg-sand/50",children:(0,t.jsxs)(r.W,{className:"py-16",children:[s&&(0,t.jsx)("h2",{className:"mb-8 md:mb-12",children:s}),a&&(0,t.jsx)("p",{className:"mb-8 md:mb-12",children:a}),(0,t.jsx)("div",{className:"articles grid grid-cols-1 gap-8 md:grid-cols-".concat("Article Cards"==i||d||3==n.length?"3":"2"),children:null==n?void 0:n.map((e,l)=>{let s=e.sys.contentType.sys.id;return(0,t.jsxs)("div",{children:["componentCard"==s&&(0,t.jsx)(t.Fragment,{children:d?(0,t.jsx)(u,{fields:e.fields}):(0,t.jsx)(m,{fields:e.fields})}),"pageBlogPost"==s&&(0,t.jsx)(b,{fields:e.fields})]},"card-".concat(l))})})]})})})};var j=p},9402:function(e,l,s){s.r(l),s.d(l,{SectionNewsletterSignup:function(){return c},default:function(){return d}});var t=s(3827),r=s(4090),a=s(1558),n=s(8243);s(5355),(0,s(3472).$)("75190ab6220261770af7886c64bf17db88d7e2dc");var i=s(8219);let c=e=>{let{fields:l}=e,{internalName:s,colorTheme:c="Cobalt",backgroundLightness:d}=l,[o,m]=(0,r.useState)(""),[x,h]=(0,r.useState)(!0),u=async e=>{if(console.log("submitForm",o),e.preventDefault(),!(0,n.oH)(o)){h(!1);return}h(!0);let l="mailto:".concat(i.Kx,"?subject=Newsletter%20Signup%20&body=Please%20sign%20me%20up:%20").concat(o);window.location.href=l};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"border-t border-cobalt/50 bg-".concat((0,n.Yw)(c,d)),children:(0,t.jsxs)(a.W,{className:"px-8 py-16 md:px-32 md:py-24 lg:px-40",useBorders:!1,children:[(0,t.jsx)("p",{className:"mb-12 pl-3 text-center text-xl text-white md:text-left md:text-2xl",children:"To join our newsletter and find out more about what we do, sign-up below."}),!x&&(0,t.jsx)("p",{className:"text-md mb-6 rounded-full bg-sand p-3 py-4 pl-3 text-center font-demi text-orange ",children:"Please provide a valid email address."}),(0,t.jsx)("form",{children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,t.jsx)("input",{type:"text",value:o,onChange:e=>m(e.target.value),className:"xborder-2 flex-1 rounded-full border-white bg-white/10 px-6 \n              py-4 text-xl text-white ring-0\n              transition-all duration-500\n              placeholder:text-white focus:bg-white/100 focus:text-black\n              ",placeholder:"Your email address"}),(0,t.jsx)("button",{type:"submit",onClick:u,className:"whitespace-nowrap rounded-full border-2 border-white px-6 py-4 text-xl text-white",children:"Subscribe to news"})]})})]})})})};var d=c},6365:function(e,l,s){s.r(l),s.d(l,{SectionTeam:function(){return i}});var t=s(3827),r=s(4090),a=s(9085),n=s(1558);let i=e=>{let{fields:l}=e,{internalName:s,boardOfDirectorsGroup:i,managementGroup:c,staffGroup:d}=l,[o,m]=(0,r.useState)(!1),[x,h]=(0,r.useState)(null),[u,f]=(0,r.useState)(null),b="grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 gap-2 md:gap-6";(0,r.useEffect)(()=>{let e=e=>{("Escape"===e.key||27===e.keyCode)&&m(!1)};return o&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o]);let p=(e,l)=>{let s=(0,a.Zm)(l.fields.profile);m(!0);let t=l.fields.profileImage||l.fields.avatar;l.avatar=t.fields.file.url,h(l),f(s)},j=()=>{m(!1),h(null),f(null)};return(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)("div",{className:"modal-backdrop py-6 backdrop-blur-sm md:pt-32",onClick:j,children:(0,t.jsx)("div",{className:"modal",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("div",{className:"relative overflow-auto p-3",children:[(0,t.jsx)("button",{onClick:j,className:"escape absolute right-2",type:"reset"}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row",children:[(0,t.jsx)("div",{className:"details hidden md:block",children:(0,t.jsxs)("div",{className:"avatar-card ",children:[(0,t.jsx)("div",{className:"min-w-[200px]",children:(0,t.jsx)("img",{src:x.avatar})}),(0,t.jsxs)("div",{className:"details",children:[(0,t.jsx)("h4",{children:x.fields.name}),(0,t.jsx)("p",{children:x.fields.title})]})]})}),(0,t.jsx)("div",{className:"rte-content flex flex-col items-center justify-center p-4",children:u})]})]})})}),(0,t.jsx)("div",{className:"bg- border-t border-cobalt/50 bg-sand/80",children:(0,t.jsxs)(n.W,{className:"px-6 py-12 md:px-12 md:py-24",children:[(0,t.jsx)("h2",{className:"mb-8 md:mb-12",children:"Our People"}),i&&i.length>0&&(0,t.jsxs)("div",{className:"bg- mb-12 border-t border-cobalt/50",children:[(0,t.jsx)("h3",{className:"mb-4 mt-6",children:"Board of Directors"}),(0,t.jsx)("div",{className:b,children:i.map((e,l)=>{let s=e.fields.profileImage||e.fields.avatar;return(0,t.jsxs)("div",{className:"avatar-card",onClick:l=>p(l,e),children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)("img",{src:s.fields.file.url,alt:s.fields.file.title})}),(0,t.jsxs)("div",{className:"details flex-1",children:[(0,t.jsx)("h4",{children:e.fields.name}),(0,t.jsx)("p",{children:e.fields.title})]}),(0,t.jsx)("div",{className:"pl-2 text-xs text-black/70",children:"Learn more"})]},"directors-".concat(e.fields.name))})})]}),c&&c.length>0&&(0,t.jsxs)("div",{className:"bg- mb-12 border-t border-cobalt/50",children:[(0,t.jsx)("h3",{className:"mb-4 mt-6",children:"Executive Management "}),(0,t.jsx)("div",{className:b,children:c.map((e,l)=>{let s=e.fields.profileImage||e.fields.avatar;return(0,t.jsxs)("div",{className:"avatar-card",onClick:l=>p(l,e),children:[s&&(0,t.jsx)("div",{children:(0,t.jsx)("img",{className:"mb-4",src:s.fields.file.url,alt:s.fields.file.title})}),(0,t.jsxs)("div",{className:"details flex-1",children:[(0,t.jsx)("h4",{children:e.fields.name}),(0,t.jsx)("p",{children:e.fields.title})]}),(0,t.jsx)("div",{className:"pl-2 text-xs text-black/70",children:"Learn more"})]},"management-".concat(e.fields.name))})})]}),d&&d.length>0&&(0,t.jsxs)("div",{className:"bg- mb-12 border-t border-cobalt/50",children:[(0,t.jsx)("h3",{className:"mb-4 mt-6",children:"Key Staff"}),(0,t.jsx)("div",{className:b,children:d.map((e,l)=>{let s=e.fields.profileImage||e.fields.avatar;return(0,t.jsxs)("div",{className:"avatar-card ",onClick:l=>p(l,e),children:[s&&(0,t.jsx)("div",{children:(0,t.jsx)("img",{className:"mb-4",src:s.fields.file.url,alt:s.fields.file.title})}),(0,t.jsxs)("div",{className:"details flex-1",children:[(0,t.jsx)("h4",{children:e.fields.name}),(0,t.jsx)("p",{children:e.fields.title})]}),(0,t.jsx)("div",{className:"pl-2 text-xs text-black/70",children:"Learn more"})]},"staff-".concat(e.fields.name))})})]})]})})]})};l.default=i}
1,5579:function(e,l,s){s.r(l),s.d(l,{SectionTimeline:function(){return n}});var t=s(3827),r=s(1558),a=s(3748);let n=e=>{let{fields:l}=e,{internalName:s,items:n}=l,{sections:i,setSections:c}=(0,a.useAppContext)(),d=(e,l,s)=>{c([...i,s+1]),e.preventDefault();let t=document.getElementById(l);if(t&&(t.scrollIntoView({behavior:"smooth"}),t)){let{top:e}=t.getBoundingClientRect();window.scrollTo({top:e+window.pageYOffset-140,behavior:"smooth"})}};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg- border-t border-cobalt bg-sand",children:(0,t.jsxs)(r.W,{className:"px-6 py-12 md:px-12 md:py-24",children:[(0,t.jsx)("h2",{className:"mb-8 md:mb-12",children:"Timeline"}),(0,t.jsx)("div",{className:"bg- mb-10 border-t border-cobalt/50 ",children:(0,t.jsx)("div",{className:" mt-6 grid grid-cols-2  gap-6 md:grid-cols-3",children:n.map((e,l)=>{var s,r,a,n;return(0,t.jsxs)("div",{onClick:s=>{var t;return d(s,null===(t=e.fields)||void 0===t?void 0:t.internalName,l)},className:"clickable p- 3  rounded-md border bg-cobalt/5 p-3 hover:border-cobalt/50 ",children:[(0,t.jsx)("h4",{className:"mb-1",children:null===(s=e.fields)||void 0===s?void 0:s.subtitle}),(0,t.jsx)("div",{className:"h-auto text-cobalt",children:(0,t.jsx)("p",{children:(null==e?void 0:null===(r=e.fields)||void 0===r?void 0:r.title)||(null==e?void 0:null===(a=e.fields)||void 0===a?void 0:a.title)})})]},"item-".concat(null===(n=e.fields)||void 0===n?void 0:n.internalName))})})})]})})})};l.default=n}}]);

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.