PageSourceSearch

https://tahatu.govt.nz/_next/static/chunks/pages/[[...id]]-497745db0e38a50e.js

js tahatu.govt.nz collected 2026-10-01 15:28:22 UTC 257,739 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{50793:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...id]]",function(){return a(74697)}])},36051:function(e,t,a){"use strict";a.d(t,{T:function(){return i}});let i="[email protected]"},74697:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return nc},default:function(){return nu}});var i,r,n=a(52322),s=a(37312),l=a(38005),o=a(65391),d=a(70590),c=a(24853);let u=e=>(0,n.jsx)(s.vzF,{theme:e.content.theme.colourSet,children:(0,n.jsx)(h,{...e})}),h=e=>{let{id:t,content:a}=e;return(0,n.jsx)(s.xuv,{id:"d".concat(t),css:{bg:"brand.primary.200",pt:{base:6,md:12},pb:{base:8,md:12},px:{base:6,md:6}},children:(0,n.jsxs)(s.kCb,{css:{flexDirection:{base:"column",md:"row"},alignItems:{base:"center",lg:"flex-start"},justifyContent:"left"},children:[(0,n.jsx)(c.E,{src:a.illustration.url,alt:a.illustration.altTextEn,css:{width:{base:"240px"},px:{base:6,md:11},mt:{base:8},mb:{base:6},mx:{base:11,md:0},position:"relative"}}),(0,n.jsxs)(s.xuv,{css:{maxWidth:{base:"auto",md:"412px",lg:"670px"},pl:{base:0,md:8}},children:[(0,n.jsx)(s.ALS,{headingEn:a.headingEn,headingMi:a.headingMi,headingLevel:"h2",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"}),(0,n.jsx)(s.xvT,{as:"div",css:{mt:6,mb:6,textStyle:"paragraph-regular",color:"brand.primary.900"},dangerouslySetInnerHTML:{__html:a.sectionIntro}}),(0,n.jsx)(s.rUS,{href:a.buttonLink.url,variant:"primary",size:"regular",children:a.buttonText})]})]})})};var p=a(2784),g=a(55268),m=a(97583),x=a(4684);let b=e=>{var t;let{children:a,illustrationUrl:i,illustrationAlt:r,link:l,testId:o,stackWhenNeeded:d}=e;return(0,n.jsx)(s.rUS,{...(0,s.Mir)(o),href:null!==(t=null==l?void 0:l.url)&&void 0!==t?t:"#",rel:(null==l?void 0:l.linkType)==="external"?"external":void 0,variant:"text",css:{px:0,py:0,height:"auto"},children:(0,n.jsxs)(x.r,{className:"group",css:{width:"100%",height:"100%",gridTemplateColumns:d?{base:"auto min-content",sm:"auto 1fr auto"}:"auto 1fr auto",gap:{base:4,lg:6},alignItems:"center",pr:4,pb:4,pt:2,pl:4,background:"brand.neutrals.100",borderWidth:"1px",borderStyle:"solid",borderColor:"brand.primary.300",borderRadius:"4px",whiteSpace:"normal",_hover:{background:"brand.primary.150"}},children:[(0,n.jsx)(c.E,{...(0,s.Mir)(j.image),src:i,alt:r,css:{gridColumn:d?{base:"1 / span 2",sm:"1"}:"1",aspectRatio:1,width:"90px"}}),(0,n.jsx)(s.xuv,{css:{gridColumn:d?{base:"1",sm:"2"}:"2",display:"flex",flexDirection:"column"},children:a}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(j.arrow),css:{gridColumn:d?{base:"2",sm:"3"}:"3",display:"flex",justifyContent:"center",alignSelf:"center",alignItems:"center",borderRadius:"50%",width:8,height:8,color:"brand.primary.600",_groupHover:{background:"brand.primary.300",color:"brand.primary.700"}},children:(0,n.jsx)(s.JO$,{icon:"ArrowRight",size:"sm"})})]})})},j={image:"link-panel-image",arrow:"link-panel-arrow"};var v=a(64306),y=a(70259);let f=e=>{let t=1===e.value.length;return(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{maxWidth:t?"659px":void 0,margin:t?"0 auto":void 0},children:(0,n.jsx)(x.r,{css:{gridTemplateColumns:{base:"auto",md:t?"auto":"1fr 1fr"}
1,gap:4,"--cols":{base:"1",md:"2"},"--gap":y.W0[4]},children:e.value.map((e,t)=>{var a;return(0,n.jsx)(s.PB,{headingEn:e.title,headingMi:e.maoriTitle,media:{type:"image",imageUrl:null===(a=e.image)||void 0===a?void 0:a.urlCard,altText:e.imageAltText},href:e.url,...e,children:e.introduction&&(0,n.jsx)(s.Taj,{html:e.introduction,allowedTags:v.T})},t)})})})};var k=a(34613),w=a(57307);let C=e=>{let{children:t,theme:a,backgroundColor:i="brand.primary.600",patternUrl:r,flipCurve:l,testId:o,bottomSpacing:d="curve-gap",placeInContentContainer:c=!0,css:u}=e;return(0,n.jsx)(s.vzF,{theme:a,children:(0,n.jsxs)(s.xuv,{...(0,s.Mir)(o),css:{as:"section",position:"relative",display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:i,pb:{"curve-gap":32,"footer-gap":"100px"}[d],...u},children:[(0,n.jsx)(M,{patternUrl:r,flipCurve:l}),c?(0,n.jsx)(T,{children:t}):(0,n.jsx)(n.Fragment,{children:t})]})})},T=e=>{let{children:t}=e;return(0,n.jsx)(s.rjZ,{...(0,s.Mir)(E.homePageSection),children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,css:{position:"relative",pt:"44px"},children:t})})},S=e=>{let{headingMi:t,headingEn:a,description:i,colorMode:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Ysw,{headingLevel:"h2",textStyleAs:"h3",headingEn:a,headingMi:t,colorMode:r,mb:i?4:12}),i&&(0,n.jsx)(s.xvT,{...(0,s.Mir)(E.description),css:{textStyle:{base:"paragraph-regular",md:"paragraph-large-medium"},color:"brand.neutrals.100",mt:4,mb:12},children:i})]})},M=e=>{let{flipCurve:t=!1,patternUrl:a}=e;return(0,n.jsx)(s.xuv,{...(0,s.Mir)(E.curveContainer),css:{position:"absolute",left:0,top:0,right:0,height:"300px",mt:"-60px"},children:(0,n.jsxs)(s.xuv,{position:"absolute",inset:"0",role:"presentation","aria-hidden":!0,draggable:!1,css:{maskImage:'url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 2000" xml:space="preserve"><path d="M 903.75,39.745 C 980.625,39.745 1193.98,0 1200,0 V 2000 H 0 V 39.745 c 0,0 356.25,-30.3556 462.222,-30.3556 105.972,0 364.653,30.3556 441.528,30.3556 z"/></svg>\')',maskSize:"100%",maskRepeat:"no-repeat",maskPosition:"center top",transform:t?"scale(-1, 1)":void 0},children:[(0,n.jsx)(s.xuv,{...(0,s.Mir)("background"),bgGradient:"to-b",gradientFrom:"brand.primary.700",gradientTo:"brand.primary.600",css:{position:"absolute",inset:0}}),a&&(0,n.jsx)(s.xuv,{css:{background:"brand.primary.600",opacity:.3,maskRepeat:"repeat-x",maskPosition:"top center",maskImage:"url(".concat(a,")"),position:"absolute",inset:0}})]})})},E={homePageSection:"home-page-section",curveContainer:"home-page-section-curve-container",description:"home-page-section-description"},D=e=>{var t;let{newsletterSubscriptionDriver:a}=e;return(0,n.jsx)(n.Fragment,{children:a&&(0,n.jsx)(C,{theme:"global",patternUrl:null===(t=a.theme.pattern)||void 0===t?void 0:t.url,flipCurve:!0,children:(0,n.jsx)(P,{...a})})})},L=e=>{var t;let{resourceHubSection:a}=e;return(0,n.jsx)(n.Fragment,{children:a&&(0,n.jsx)(C,{theme:"resourceHub",patternUrl:null===(t=a.theme.pattern)||void 0===t?void 0:t.url,flipCurve:!0,children:(0,n.jsx)(P,{...a})})})},I=e=>{var t;let{newsSection:a}=e;return(0,n.jsx)(n.Fragment,{children:a&&0!==a.items.length&&(0,n.jsx)(C,{theme:a.theme.colourSet,patternUrl:null===(t=a.theme.pattern)||void 0===t?void 0:t.url,flipCurve:!0,children:(0,n.jsx)(A,{...a})})})},P=e=>{let{headingEn:t,headingMi:a,illustration:i,sectionIntro:r,buttonLink:l,buttonText:o,theme:d}=e,u=(0,m.AR)(),h=(null==u?void 0:u.keteItems)?(0,m.S2)(u.keteItems,d.colourSet):void 0,p=(0,k.createAnchorLinkToSection)(d.colourSet);return(0,n.jsxs)(s.kCb,{css:{flexDirection:{base:"column",md:"row"},alignItems:{base:"center",lg:"flex-start"},justifyContent:"left"},children:[(null==i?void 0:i.url)&&(0,n.jsx)(c.E,{src:i.url,alt:i.altTextEn,css:{width:{base:"230px",md:"235px",lg:"344px"},px:{base:6,md:11},mx:{base:11,md:0},pb:{base:12,md:0}}}),(0,n.jsxs)(s.xuv,{...(0,s.Mir)(z.hubDriverHeadings),css:{ml:{base:0,md:12,lg:24}},children:[(0,n.jsx)(s.ALS,{headingEn:t,headingMi:a,headingLevel:"h2",colorThemeMi:!0,colorThemeEn:!0}),(0,n.jsx)(s.xvT,{as:"div",...(0,s.Mir)(z.hubDriverIntro),css:{my:6,textStyle:{base
1:"paragraph-regular",md:"paragraph-large"},color:"brand.neutrals.100"},dangerouslySetInnerHTML:{__html:r}}),(0,n.jsxs)(s.xuv,{css:{display:{base:"row",sm:"flex"},gap:4},children:[l&&(0,n.jsx)(s.rUS,{...(0,s.Mir)(z.ctaLink),variant:"primaryLight",size:"regular",href:l.url,children:o}),!!h&&h>0&&p&&(0,n.jsx)(s.UkX,{css:{mt:{base:4,sm:0}},testId:z.keteButton,href:p,text:(0,s.PPS)(h)})]})]})]})},A=e=>{let{headingEn:t,headingMi:a,sectionIntro:i,buttonText:r,buttonLink:l,items:o}=e,d=1===o.length,{isMobile:c}=(0,s.kCD)();return(0,n.jsx)(s.kCb,{css:{flexDirection:{base:"column",md:"row"},alignItems:"stretch",justifyContent:"left"},children:(0,n.jsxs)(s.xuv,{css:{mt:12},children:[(0,n.jsx)(s.ALS,{headingEn:t,headingMi:a,headingLevel:"h2",colorThemeMi:!0,colorThemeEn:!0,spaceBelow:4,textStyleMi:"heading2-newzald",textStyleEn:"heading2-geograph"}),(0,n.jsx)(s.xvT,{as:"div",...(0,s.Mir)(z.newsDriverDescription),css:{mb:12,textStyle:{base:"paragraph-regular",md:"paragraph-large-medium"},color:"brand.neutrals.100",fontWeight:"400"},children:(0,n.jsx)(s.Taj,{html:i,allowedTags:v.T})}),(0,n.jsxs)(s.kCb,{css:{flexDirection:{base:"column",md:"row"}},children:[(0,n.jsx)(s.xuv,{css:{mr:{base:0,md:6},maxWidth:{base:"100%"},width:{base:"100%",md:d?"100%":"50%",lg:d?"100%":"65%"},mb:{base:2,md:0}},children:(0,n.jsx)(s.nsv,{headingEn:o[0].headingEn,headingMi:o[0].headingMi,tag:o[0].tag,url:o[0].url,summary:o[0].summary,newsDate:(0,s.p6d)(o[0].newsDate,s.kHz.newsDriver),headingEnColor:"brand.primary.100",headingMiColor:"brand.primary.A1",summaryColor:"brand.neutrals.100",tagVariant:"dark",dateColor:"brand.neutrals.100",headingLevel:"h3",tagHover:!0,textStyleEn:"heading3-geograph",textStyleMi:"heading3-newzald",textStyleSummary:c?"paragraph-regular":"paragraph-large",tagTextStyle:"paragraph-small",newsDateTextStyle:"paragraph-regular"})}),(0,n.jsx)(s.kCb,{css:{flexDirection:"column",flex:1,minWidth:0,mb:{base:12,md:0}},children:o.slice(1,3).map((e,t,a)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.nsv,{headingEn:e.headingEn,headingMi:e.headingMi,tag:e.tag,url:e.url,newsDate:(0,s.p6d)(e.newsDate,s.kHz.newsDriver),headingEnColor:"brand.primary.100",headingMiColor:"brand.primary.A1",summaryColor:"brand.neutrals.100",tagVariant:"dark",dateColor:"brand.neutrals.100",headingLevel:"h5",tagHover:!0,textStyleEn:"heading5-geograph",textStyleMi:"heading5-newzald",tagTextStyle:"paragraph-small",newsDateTextStyle:"paragraph-regular"},t),a.length>1&&0===t&&(0,n.jsx)(s.izJ,{my:6,color:"brand.primary.700"})]}))})]}),l&&(0,n.jsx)(s.rUS,{...(0,s.Mir)(z.newsDriverLink),variant:"primaryLight",size:"regular",href:l.url,textStyle:"buttons-and-links-small",css:{mt:2},children:r})]})})},z={hubDriverHeadings:"hub-driver-headings",hubDriverIntro:"hub-driver-intro",ctaLink:"hub-driver-cta-link",keteButton:"hub-driver-kete-button",newsDriverDescription:"news-driver-description",newsDriverLink:"news-driver-link"},B=new Map,H=e=>B.get(e),F=(e,t,a)=>{for(let i of(Array.isArray(e)||(e=[e]),e))B.set(i,{page:t,options:a});return t};var R=a(47024);let N=e=>{let{stats:t}=e;return(0,s.YjB)(t)?(0,n.jsx)(x.r,{role:"list",...(0,s.Mir)(O.statsSection),css:{gridTemplateColumns:{base:"auto",md:"repeat(2, 1fr)"},gap:4,mt:"-130px",mb:12},children:t.map((e,t)=>(0,n.jsx)(s.P4e,{role:"listitem",css:{display:"contents"},children:(0,n.jsx)(W,{...e})},t))}):null},W=e=>{let{heading:t,count:a,heading2:i,illustrationUrl:r,link:l,theme:o=s.uHP}=e;return(0,n.jsx)(s.vzF,{theme:o,children:(0,n.jsxs)(b,{link:l,illustrationUrl:r.url,illustrationAlt:"",testId:O.stat,children:[(0,n.jsx)(s.xvT,{as:"span",textStyle:{base:"paragraph-small-bold",md:"heading6-primary"},css:{color:"brand.primary.700",_groupHover:{textDecoration:"underline",textDecorationColor:"currentColor",textDecorationThickness:"1px"}},children:t}),(0,n.jsx)(s.xvT,{as:"span",textStyle:"heading3-geograph-bold",css:{color:"brand.primary.600",textDecoration:"none"},children:a}),(0,n.jsx)(s.xvT,{as:"span",textStyle:{base:"paragraph-small-bold",md:"heading6-primary"},css:{color:"brand.primary.700",_groupHover:{textDecoration:"underline",textDecorationColor:"currentColor",textDecorationThickness:"1px"}},children:i})]})})},O={statsSection:"stats-section",stat:"stats-section-stat"};var q=a(96998);let U=e=>{let{children:t,variant:a="primary",...i}=e;return(0,n.jsx)(s.rUS,{variant:a,textStyle:"buttons-and-links-small",size:"regular",mt:6,justifySelf:"center",display:"flex",...i,children:t})},_=e=>{let{imageUrl:t,imageAlt:a,linkUrl:i,children:r,height:l,layoutType:o="normal","aria-describedby":d,testId:u}=e;return(0,n.jsxs)(s.xuv,{...(0,s.Mir)(null!=u?u:Q.card),className:"group",css:{position:"relative",display:"flex",flexBasis:"normal"===o?"calc(100% / var(--cols) - var(--gap) / var(--cols) * (var(--cols) - 1))":"100%",flexDirection:"normal"===o?"column":"row",gridColumn:"auto",borderRadius:"sm",borderWidth:"1px",borderColor:"brand.primary.300",borderStyle:"solid",background:"brand.neutrals.100",height:l,_hover:{backgroundColor:"brand.primary.150","& span":{textDecoration:"none"}}},children:[(0,n.jsx)(s.rUS,{href:i,variant:"none","aria-describedby":(0,s.XtU)(d),css:{position:"absolute",inset:0,height:"unset"}}),(0,n.jsx)(c.E,{src:t,alt:a,css:{borderTopLeftRadius:"sm",borderTopRightRadius:"normal"===o?"sm":void 0,borderBottomLeftRadius:"wide"===o?"sm":void 0,width:"wide"===o?"calc(50% - var(--gap) / 2)":void 0,objectFit:"wide"===o?"cover":void 0}}),(0,n.jsx)(s.aYP,{children:r})]})},Q={card:"card"},Y=e=>{let{headingMi:t,headingEn:a,description:i,linkText:r,linkUrl:l,tag:o,keteId:d,layoutType:c,image:u,...h}=e,p=(0,w.E)(d),{isSmOrBelow:g}=(0,s.kCD)();return"wide"===c&&g&&(c="normal"),(0,n.jsxs)(_,{testId:Z.linkCard,layoutType:c,imageUrl:"wide"===c?null==u?void 0:u.urlCardWide:null==u?void 0:u.urlCard,imageAlt:null==u?void 0:u.altTextEn,linkUrl:l,...h,children:[(o||p)&&(0,n.jsxs)(s.kCb,{css:{mb:4,alignItems:"center"},children:[o&&(0,n.jsx)(s.xuv,{children:(0,n.jsx)(s.Vp9,{variant:"global",children:o})}),p&&(0,n.jsx)(s.xuv,{css:{ml:"auto"},children:(0,n.jsx)(s.VYJ,{...p})})]}),(0,n.jsx)(s.fNQ,{headingEn:a,headingMi:t}),i&&(0,n.jsx)(s.xvT,{...(0,s.Mir)(Z.linkCardDescription),as:"span",css:{textStyle:"paragraph-regular",my:4,lineClamp:3},children:(0,n.jsx)(s.Taj,{as:"span",html:i,allowedTags:["p","strong","em","br"]})}),r&&l&&(0,n.jsx)(s.rUS,{href:l,textStyle:"paragraph-medium",variant:"primary",size:"regular",mt:4,position:"relative",children:r})]})},Z={linkCard:"link-card",linkCardDescription:"link-card-description"},G=function(e){return Array.isArray(e)},J="Invalid autoI18n format. This indicates that something needs fixing in the backend",V=function(e,t){if("string"==typeof e)return e;if(e!==Object(e)||G(e)||"function"==typeof e){if(G(e))return e.map(e=>V(e,t))}else{let a={};return(Object.keys(e).forEach(i=>
1{a[i]=V(e[i],t)}),e.autoI18n)?X(e.autoI18n,t):a}return e},X=(e,t)=>{if(!e.find)return console.warn(J),"";let a=e.find(e=>e.lang===t);return a?a.content:(console.warn(J),e.length>0)?e[0].content:""},K=(e,t)=>e.filter(e=>0===e.lang.localeCompare(t,void 0,{sensitivity:"base"})),$=e=>{let{occupation:{keteId:t,titleEnglish:a,titleMaori:i,trainingDuration:r,alternateTitles:l,remunerations:o,isKaupapaMaori:d,url:c,...u},reserveMediaRegion:h}=e;return(0,n.jsx)(s.PB,{media:ee(u),headingEn:a,headingMi:i,keteId:t,tag:"Career idea",href:c,footer:d&&(0,n.jsx)(s.ehn,{withoutMargin:!0}),reserveMediaRegion:h,children:(0,n.jsx)(s.FgW,{description:(d?u.descriptionMaori:u.descriptionEnglish)||u.descriptionEnglish,alternateTitles:et(l,d),remunerations:o,trainingDuration:r,isKaupapaMaori:d})})},ee=e=>{let{profileVideo:t,profileImages:a}=e;return t?{type:"video",...t}:(null==a?void 0:a.length)?{type:"image",imageUrl:a[0].large,altText:V(a[0].altText,"en")}:void 0},et=(e,t)=>K(null!=e?e:[],t?"mi":"en").map(e=>e.content),ea=e=>{let{description:t,href:a,linkText:i,...r}=e;return(0,n.jsxs)(s.PB,{testId:ei.featureCard,href:a,...r,children:[(0,n.jsx)(s.ajI,{html:t}),a&&i&&(0,n.jsx)(s.rUS,{href:a,textStyle:"paragraph-medium",variant:"primary",size:"regular",mt:4,position:"relative",children:i})]})},ei={featureCard:"feature-card"},er=e=>{let{url:t,nameEnglish:a,nameMaori:i,description:r,tag:l,keteId:o}=e,d=(0,w.E)(o);return(0,n.jsx)(s.Zbd,{url:t,headingEn:a,headingMi:i,cardContent:r&&(0,n.jsx)(s.b3q,{description:r}),tag:l,kete:d})},en=e=>{let{qualificationGroup:t}=e,a=(0,w.E)(t.keteId),i=!1;"training"==t.type&&(i=!0);let{detail:{fee:r,duration:l,qualificationLevel:o},headingEn:d,headingMi:c,tag:u,url:h}=t;return(0,n.jsx)(s.Zbd,{headingLevel:3,headingMi:c,headingEn:d,url:h,kete:a,tag:u,cardContent:(0,n.jsx)(s.Qj0,{qualificationLevel:{...o,isWorkBasedTraining:i},duration:l,fee:r,url:h,smallBottomMargin:8,mediumBottomMargin:8}
1),BaseMinHeightSize:"0",MdMinHeightSize:"0",LgMinHeightSize:"0"})},es=e=>{let{groups:t}=e;return(0,n.jsx)(x.r,{css:{gap:12},children:t.map((e,t)=>(0,n.jsx)(s.P4e,{children:(0,n.jsx)(eo,{...e})},t))})},el=e=>{let{id:t,heading:a}=e;return(0,n.jsx)(s.xvT,{id:t,...(0,s.Mir)(ed.groupHeading),css:{textStyle:"heading5-primary",color:"brand.primary.900",mb:{base:4,md:6}},children:a})},eo=e=>{let{heading:t,items:a}=e;return(0,n.jsxs)(x.r,{...(0,s.Mir)(ed.group),children:[t&&(0,n.jsx)(el,{heading:t}),(0,n.jsx)(x.r,{css:{gridTemplateColumns:{base:"auto",md:"1fr 1fr"},gap:4,"--cols":{base:"1",md:"2"},"--gap":"spacing.4"},children:a.map((e,t)=>{switch(e.type){case"link":return(0,n.jsx)(s.P4e,{gridColumn:"wide"===e.value.layoutType?"1 / span var(--cols)":"auto",children:(0,n.jsx)(Y,{...e.value,linkUrl:e.value.link.url,height:"100%",linkText:e.value.linkText})},t);case"occupation":return(0,n.jsx)(s.P4e,{children:(0,n.jsx)($,{occupation:{...e.value,alternateTitles:[],descriptionEnglish:"",descriptionMaori:void 0}})},t);case"page":var a;return(0,n.jsx)(s.P4e,{children:(0,n.jsx)(s.PB,{...e.value,href:e.value.url,headingEn:e.value.title,headingMi:e.value.maoriTitle,media:{type:"image",imageUrl:null===(a=e.value.image)||void 0===a?void 0:a.urlCard,altText:e.value.imageAltText},children:e.value.introduction&&(0,n.jsx)(s.Taj,{html:e.value.introduction,allowedTags:v.T})})},t);case"qualification":return(0,n.jsx)(en,{qualificationGroup:e.value})}})})]})},ed={group:"popout-panel-group",groupHeading:"popout-panel-group-heading"},ec=e=>{let{heading:t,advicePages:a}=e,i=(0,p.useId)(),r=(0,s.Sx0)({base:1,md:2,xl:3})||1,l=a.length>r;return(0,n.jsxs)(s.xuv,{css:{mt:12},children:[t&&(0,n.jsx)(el,{id:i,heading:t}),l?(0,n.jsx)(s.xuv,{css:{width:"fit-content",translate:{base:void 0,xl:"calc(100% / 12* -1)"}},children:(0,n.jsx)(s.lr9,{testId:"advice-pages-carousel",items:a,renderedItem:e=>{var t;return(0,n.jsx)(s.Zbd,{tag:e.contentTag,cardContent:(0,n.jsx)(s.b3q,{description:null!==(t=e.introduction)&&void 0!==t?t:""}),headingEn:e.title,headingMi:e.maoriTitle,...e,headingLevel:3,BaseMinHeightSize:"200px",MdMinHeightSize:"360px",LgMinHeightSize:"360px",keteFactory:e.keteId?{keteId:e.keteId,keteFactory:w.E}:void 0})}
1,ariaLabelledby:i,itemsToDisplay:r,isLightBackground:!0})}):(0,n.jsx)(eu,{items:a,renderedItem:e=>{var t;return(0,n.jsx)(s.Zbd,{tag:e.contentTag,cardContent:(0,n.jsx)(s.b3q,{description:null!==(t=e.introduction)&&void 0!==t?t:""}),headingEn:e.title,headingMi:e.maoriTitle,...e,headingLevel:3,BaseMinHeightSize:"200px",MdMinHeightSize:"360px",LgMinHeightSize:"360px",keteFactory:e.keteId?{keteId:e.keteId,keteFactory:w.E}:void 0})}})]})},eu=e=>{let{items:t,renderedItem:a}=e;return(0,n.jsx)(x.r,{children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(x.r,{as:"ul","data-testid":"carousel-cards-list",gridTemplateColumns:{base:"1fr",sm:"repeat(auto-fill, minmax(calc((100% - 2em) / 2), 1fr))",lg:t.length<3?"repeat(auto-fill, minmax(calc((100% - 2em) / 2), 1fr))":"repeat(auto-fill, minmax(calc((100% - 2em) / 3), 1fr))"},css:{listStyle:"none",gap:4},children:t.map((e,t)=>(0,n.jsx)(s.P4e,{as:"li",children:a(e)},t))})})})},eh="popout-panel",ep=e=>{let{setExpanded:t,theme:a,themePatternUrl:i,headingMi:r,headingEn:l,peelApartHeadingEn:o,peelApartHeadingMi:d,description:c,groups:u,advicePagesHeading:h,callToAction:g,advicePages:m}=e,[x]=(0,q.Z)("Escape");x&&t(!1);let b=(0,p.useRef)(null),j=(0,p.useRef)(null);return(0,p.useEffect)(()=>{var e;null===(e=j.current)||void 0===e||e.focus()},[]),(0,n.jsx)(s.xuv,{id:eh,css:{gridArea:"var(--peel-apart-row) / 1 / auto / span var(--cards)",width:"max(100cqi, 100%)",mt:"calc(var(--peel-apart-margin) - var(--gap))",marginLeft:"min(0px, calc((100cqi - 100%) * -0.5))",marginRight:"min(0px, calc((100cqi - 100%) * -0.5))"},tabIndex:0,ref:j,children:(0,n.jsx)(s.vzF,{theme:a,children:(0,n.jsxs)(s.xuv,{css:{position:"relative",background:"brand.primary.200",pt:4,pb:16},children:[(0,n.jsx)(s.xuv,{...(0,s.Mir)(ex.topGradient),bgGradient:"to-b",gradientFrom:"transparent",gradientTo:"black/33",css:{position:"absolute",left:0,bottom:"100%",right:0,height:"25px"}}),i&&(0,n.jsx)(eg,{themePatternUrl:i}),(0,n.jsxs)(T,{children:[(0,n.jsx)(em,{close:()=>t(!1),closeButtonRef:b}),(0,n.jsx)(s.Ysw,{headingMi:d||r,headingEn:o||l,headingLevel:"h3",mr:4}),c&&(0,n.jsx)(s.xvT,{...(0,s.Mir)(ex.popoutPanelDescription),css:{textStyle:"paragraph-standard",color:"brand.neutrals.900",mt:4,mb:12},children:c}),(0,s.YjB)(u)&&(0,n.jsx)(es,{groups:u}),(null==g?void 0:g.text)&&(null==g?void 0:g.url)&&(0,n.jsx)(U,{href:g.url,children:g.text}),(0,s.YjB)(m)&&(0,n.jsx)(ec,{advicePages:m,heading:h}),(0,n.jsx)(s.xuv,{tabIndex:0,onFocus:()=>{var e;null===(e=b.current)||void 0===e||e.focus()}})]}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(ex.bottomGradient),bgGradient:"to-b",gradientTo:"transparent",gradientFrom:"black/33",css:{position:"absolute",left:0,top:"100%",right:0,height:"25px"}})]})})})},eg=e=>{let{themePatternUrl:t}=e;return(0,n.jsxs)(s.xuv,{...(0,s.Mir)(ex.peelApartPattern),css:{position:"absolute",left:0,top:0,right:0,height:"80px"},children:[(0,n.jsx)(s.xuv,{...(0,s.Mir)(ex.peelApartPatternBackground),css:{background:"brand.primary.200",position:"absolute",inset:0}}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(ex.peelApartPatternMask),bgGradient:"to-b",gradientFrom:"brand.primary.300",gradientTo:"brand.primary.200",css:{maskRepeat:"no-repeat",maskPosition:"top center",maskImage:t?"url(".concat(t,")"):void 0,position:"absolute",inset:0}})]})},em=e=>{let{close:t,closeButtonRef:a}=e;return(0,n.jsx)(s.xuv,{...(0,s.Mir)(ex.closeButton),css:{position:"absolute",top:0,right:0,pt:"inherit",pr:"inherit"},children:(0,n.jsx)(s.zxk,{variant:"link",textStyle:"buttons-and-links-small",leftIcon:(0,n.jsx)(s.JO$,{icon:"Close",size:"petit"}),"aria-controls":eh,onClick:t,ref:a,children:(0,n.jsx)(s.xuv,{as:"span",hideBelow:"md",children:"Close"})})})},ex={topGradient:"popout-panel-top-gradient",bottomGradient:"popout-panel-bottom-gradient",closeButton:"popout-panel-close-button",peelApartPattern:"peel-apart-pattern",peelApartPatternBackground:"peel-apart-pattern-background",peelApartPatternMask:"peel-apart-pattern-mask",popoutPanelDescription:"popout-panel-description"},eb=e=>{var t,a,i;let{meta:{pattern:r},stats:l,taskGroupsSectionItems:o,taskGroupsSectionHeadingEn:d,taskGroupsSectionHeadingMi:c,taskGroupsSectionAdvicePagesHeading:u}=e,h=null==o?void 0:o.filter(e=>"task_group_item"===e.type).map(e=>e.value),[g,m]=(0,p.useState)(void 0),b=h&&void 0!==g?h[g]:void 0,j=null!==(t=null==h?void 0:h.length)&&void 0!==t?t:0,v=null!==(a=(0,s.Sx0)({base:1,sm:2,lg:4}))&&void 0!==a?a:0,y=Math.min(j,v);return(0,n.jsx)(n.Fragment,{children:((0,s.YjB)(h)||(0,s.YjB)(l))&&(0,n.jsx)(s.xuv,{css:{position:"relative"},children:(0,n.jsx)(C,{testId:ev.taskGroupsSection,theme:"global",bottomSpacing:void 0===g?"curve-gap":void 0,placeInContentContainer:!1,backgroundColor:"brand.primary.600",patternUrl:null==r?void 0:r.url,css:{container:"task-groups-container / inline-size"},children:(0,n.jsxs)(T,{children:[l&&(0,n.jsx)(N,{stats:l}),(0,n.jsx)(S,{headingEn:d,headingMi:c,colorMode:"light"}),(0,n.jsxs)(x.r,{...(0,s.Mir)(ev.taskGroupsCards),role:"list",css:{"--max-cards":"".concat(v),"--cards":"".concat(y),"--expanded-card-index":"".concat(g),"--peel-apart-row":"".concat(void 0===g?void 0:Math.floor(g/y)+2),"--gap":"spacing.4","--peel-apart-margin":"calc(var(--gap) + 8px)",gridTemplateColumns:"repeat(var(--cards), 1fr)",gap:"var(--gap)",my:void 0===g?0:void 0},children:[(null!=h?h:[]).map((e,t)=>{var a;return(0,n.jsx)(R.P,{role:"listitem",css:{display:"grid",justifyItems:{base:"center",md:t%2==0?"right":"left",lg:"left"},zIndex:t===g?1:void 0},children:(0,n.jsx)(ej,{cardId:"card-".concat(t),theme:null!==(a=e.theme)&&void 0!==a?a:s.uHP,expanded:t===g,headingEn:e.headingEn,headingMi:e.headingMi,imageUrl:e.imageUrl,imageAlt:"",setExpanded:e=>m(e?t:void 0)})},t)}),void 0!==g&&b&&(0,n.jsx)(ep,{...b,theme:null!==(i=b.theme)&&void 0!==i?i:s.uHP,themePatternUrl:b.themePatternUrl,setExpanded:()=>m(void 0),advicePagesHeading:u})]})]})})})})},ej=e=>{let{headingEn:t,headingMi:a,imageUrl:i,imageAlt:r,expanded:l,setExpanded:o,theme:d,cardId:u}=e;return(0,n.jsx)(s.f6W,{theme:d,children:(0,n.jsxs)(s.zxk,{...(0,s.Mir)(ev.taskGroupsCard),"aria-expanded":l?"true":"false",className:"group",css:{anchorName:"--".concat(u),position:"relative",display:"grid",gridTemplateRows:"min-content auto",flexDirection:"column",height:"auto",textAlign:"left",whiteSpace:"normal",px:0,py:0,lineHeight:"normal",alignItems:"unset",m:0,w:"100%",minW:"auto",maxWidth:"250px",borderRadius:"4px",background:l?"brand.primary.300":"brand.neutrals.100",borderWidth:"1px",borderStyle:"solid",borderColor:"brand.primary.300",_hover:{background:"brand.primary.150",borderColor:"brand.primary.400"}},onClick:()=>{o(!l),l||(0,s.Ba6)("peel-apart-open",{expanded_task_group:t,expanded:!l,card_id:u})},children:[i&&(0,n.jsx)(s.xuv,{...(0,s.Mir)(ev.taskGroupsCardImage),css:{display:"grid",aspectRatio:1,placeContent:"center",overflow:"hidden",borderTopLeftRadius:"4px",borderTopRightRadius:"4px"},children:(0,n.jsx)(c.E,{src:i,alt:r})}),(0,n.jsxs)(x.r,{css:{gridTemplateColumns:"1fr auto",gap:2,p:5},children:[(0,n.jsxs)(s.kCb,{css:{flexDirection:"column"},children:[(0,n.jsx)(s.xvT,{...(0,s.Mir)(ev.taskGroupsCardHeadingEn),css:{color:"brand.primary.900",overflowWrap:"anywhere",textStyle:"heading6-geograph"},children:t}),(0,n.jsx)(s.xvT,{...(0,s.Mir)(ev.taskGroupsCardHeadingMi),css:{color:"brand.primary.600",overflowWrap:"anywhere",textStyle:"heading6-geograph"},children:a})]}),(0,n.jsx)(s.kCb,{...(0,s.Mir)(ev.taskGroupsCardUpAndDownArrow),css:{w:7,h:7,placeContent:"center",flexWrap:"wrap",mt:"auto",borderRadius:"50%",background:l?"brand.primary.400":"brand.primary.300",minWidth:"auto",_hover:{background:l?"brand.primary.500":"brand.primary.400"}},children:(0,n.jsx)(s.JO$,{icon:"ArrowUpSolid",w:"12px",h:"10px",preserveAspectRatio:"none",css:{fill:"brand.primary.600",transform:l?"none":"rotate(180deg)"}})})]}),l&&(0,n.jsx)(s.JO$,{icon:"ArrowUpSolid",...(0,s.Mir)("popout-arrow"),preserveAspectRatio:"none",width:"24px",height:"16px",css:{zIndex:1,position:"absolute",left:"50%",bottom:"calc(var(--peel-apart-margin) * -1 - 1px)",transform:"translate(-50%, 0)",fill:"brand.primary.200"}}
1)]})})},ev={taskGroupsSection:"task-groups-section",taskGroupsCards:"task-groups-cards",taskGroupsCard:"task-groups-card",taskGroupsCardImage:"task-groups-card-image",taskGroupsCardHeadingMi:"task-group-card-heading-mi",taskGroupsCardHeadingEn:"task-group-card-heading-en",taskGroupsCardUpAndDownArrow:"task-group-card-up-and-down-arrow"},ey=e=>{let{meta:{pattern:t},adviceSectionHeadingEn:a,adviceSectionHeadingMi:i,adviceSectionIntroduction:r,adviceSectionAdvicePages:l}=e;return(0,n.jsx)(n.Fragment,{children:(0,s.YjB)(l)&&(0,n.jsxs)(C,{theme:"work",patternUrl:null==t?void 0:t.url,testId:"advice-section",bottomSpacing:"footer-gap",children:[(0,n.jsx)(S,{colorMode:"light",headingEn:a,headingMi:i,description:r}),(0,n.jsx)(s.xuv,{css:{pb:16},children:l.map((e,t)=>(0,n.jsx)(s.uk3,{accordion:[{type:"accordion",value:{headingEn:e.title,headingMi:e.maoriTitle,body:e.introduction,accordionItems:e.guides}}]},t))})]})})},ef=e=>{let{headingMi:t,headingEn:a,description:i,linkText:r,link:l,imageUrl:o,imageAlt:d}=e,c=(0,p.useId)(),u=(0,p.useId)();return(0,n.jsxs)(_,{linkUrl:l.url,imageUrl:o,imageAlt:d,"aria-describedby":[c,u],children:[(0,n.jsx)(s.fNQ,{id:c,headingMi:t,headingEn:a}),i&&(0,n.jsx)(s._cU,{...(0,s.Mir)(ek.resourceCardDesc),id:u,content:i,css:{textStyle:"paragraph-regular",mb:6,mt:2}}),r&&(0,n.jsx)(s.rUS,{href:l.url,variant:"primary",size:"regular",textStyle:"paragraph-medium",color:"brand.neutrals.100",position:"relative","aria-label":r,children:r})]})},ek={resourceCardDesc:"resource-card-description"},ew=e=>{let{headingMi:t,headingEn:a}=e;return(0,n.jsxs)(s.xuv,{children:[a&&(0,n.jsx)(eC,{heading:a,lang:"en",testId:eT.linkPanelHeadingEn}),t&&(0,n.jsx)(eC,{heading:t,lang:"mi",testId:eT.linkPanelHeadingMi})]})},eC=e=>{let{heading:t,lang:a,testId:i}=e,r=(0,s.xex)("dark");return(0,n.jsx)(s.xvT,{...(0,s.Mir)(i),lang:a,textStyle:"heading6-geograph",css:{color:r[a]},children:t})},eT={linkPanelHeadingEn:"link-panel-heading-en",linkPanelHeadingMi:"link-panel-heading-mi"},eS=e=>{let{meta:{pattern:t},resourcesSectionItems:a,resourcesSectionHeadingEn:i,resourcesSectionHeadingMi:r,resourcesSectionDescription:l,resourcesSectionPopularContentHeading:o,resourcesSectionPopularContentItems:d}=e;return(0,n.jsx)(n.Fragment,{children:((0,s.YjB)(a)||(0,s.YjB)(d))&&(0,n.jsxs)(C,{theme:"plan",patternUrl:null==t?void 0:t.url,testId:"resources-section",children:[(0,n.jsx)(S,{headingEn:i,headingMi:r,description:l,colorMode:"light"}
1),(0,n.jsx)(s.kCb,{css:{gap:4,flexWrap:"wrap","--cols":{base:"1",md:"2"},"--gap":"spacing.4"},children:a.map((e,t)=>{switch(e.type){case"tool_resource":var a,i;if(!e.value.link)return;return(0,n.jsx)(ef,{...e.value,link:e.value.link,imageUrl:null===(a=e.value.image)||void 0===a?void 0:a.urlCard,imageAlt:null===(i=e.value.image)||void 0===i?void 0:i.altTextEn},t);case"page_link":return(0,n.jsx)(Y,{keteId:e.value.keteId,linkUrl:e.value.url,description:e.value.description,headingEn:e.value.headingEn,headingMi:e.value.headingMi,image:e.value.image,layoutType:e.value.layoutType,tag:e.value.contentTag},t);default:return null}}).filter(e=>!!e)}),(0,s.YjB)(d)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.xvT,{as:"h6",css:{mt:12,mb:4,textStyle:"heading6-primary",color:"brand.neutrals.100"},children:o}),(0,n.jsx)(x.r,{...(0,s.Mir)(eM.otherTools),gridTemplateColumns:{base:"auto",md:"repeat(2, 1fr)"},css:{gap:4},children:d.map(e=>e.value).map((e,t)=>(0,n.jsx)(b,{link:e.link,illustrationUrl:e.illustration.url,illustrationAlt:e.illustration.altTextEn,testId:eM.linkCard,stackWhenNeeded:!0,children:(0,n.jsx)(ew,{headingEn:e.headingEn,headingMi:e.headingMi})},t))})]})]})})},eM={linkCard:"resources-link-card",otherTools:"resources-other-tools"},eE=e=>{let{headingEn:t,headingMi:a,introduction:i,backgroundImageUrl:r,foregroundRightImageUrl:l,foregroundLeftImageUrl:o,backgroundImageAltText:d}=e;return(0,n.jsxs)(s.xuv,{...(0,s.Mir)(eL.heroHeader),css:{position:"relative",height:"662px",overflow:"hidden",backgroundColor:"brand.primary.600"},children:[(0,n.jsx)(s.xuv,{...(0,s.Mir)(eL.heroImage),role:"img","aria-label":d,css:{background:"url(".concat(r,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:{base:"63% 0",md:"50% 0","3xl":"50% 68%"},position:"absolute",inset:0}}),o&&(0,n.jsx)(c.E,{alt:"",src:o,draggable:!1,userSelect:"none",css:{position:"absolute",width:"240px",height:"300px",bottom:"60px",left:0,display:{base:"none",md:"block"}}}),l&&(0,n.jsx)(c.E,{alt:"",src:l,draggable:!1,userSelect:"none",css:{position:"absolute",width:"240px",height:"800px",bottom:"60px",right:0,display:{base:"none",md:"block"}}}),(0,n.jsx)(s.xuv,{css:{position:"relative",mt:{base:16,md:24}},children:(0,n.jsxs)(s.rjZ,{children:[(0,n.jsx)(s.P4e,{gridColumn:s.t4e.pageHeading,children:(0,n.jsx)(eD,{headingEn:t,headingMi:a})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 6",lg:"1 / span 6",xl:"2 / span 4"},children:i&&(0,n.jsx)(s.xvT,{css:{textStyle:"paragraph-large-medium",color:"brand.neutrals.100",mt:{base:6,md:8}},children:(0,n.jsx)(s.Taj,{html:i,allowedTags:["span"]})})})]})})]})},eD=e=>{let{headingEn:t,headingMi:a}=e,i="large"===(0,s.Sx0)({base:"normal",sm:"large"})?"-large":"",r="heading1".concat(i,"-newzald"),l="heading1".concat(i,"-geograph");return(0,n.jsx)(s.sxy,{headings:[...a?[{text:a,textStyle:r,lang:"mi",color:"brand.primary.A1"}]:[],...t?[{text:t,textStyle:l,lang:"en",color:"brand.primary.100"}]:[]],testId:eL.headings,headingLevel:"h1"})},eL={heroHeader:"hero-header",headings:"hero-header-headings",heroImage:"hero-header-hero-image"};var eI=a(69385),eP=a(71001);let eA=e=>{let{meta:{pattern:t},promoSectionHeadingEn:a,promoSectionHeadingMi:i,promoSectionIntroduction:r,promoSectionItems:l}=e;return(0,s.YjB)(l)?(0,n.jsxs)(C,{theme:"school",patternUrl:null==t?void 0:t.url,testId:eN.section,children:[(0,n.jsx)(S,{headingEn:a,headingMi:i,description:r,colorMode:"light"}),(0,n.jsxs)(eI.x,{...(0,s.Mir)(eN.items),display:{base:"grid",lg:"block"},columnCount:{base:void 0,lg:"2"},gridTemplateColumns:{base:"auto",md:"repeat(2, 1fr)",lg:void 0},position:"relative",mt:2*eF,css:{"--gap":(0,s.scb)("spacing","4"),gap:"var(--gap)"},children:[(0,n.jsx)(eR,{}),l.map((e,t)=>(0,n.jsx)(eI.x,{display:"grid",position:"relative",mt:0===t?{lg:14}:{base:void 0,lg:4},gridColumn:{base:void 0,md:0===t?"span 2":void 0},width:{base:"full",md:0===t?"calc(50% - var(--gap))":void 0,lg:"full"},justifySelf:{base:void 0,md:0===t?"center":void 0,lg:void 0},breakInside:"avoid",children:(0,n.jsx)(ez,{...e})},t))]})]}):null},ez=e=>{var t,a;let{type:i,value:r}=e;switch(i){case"occupation":return(0,n.jsx)(s.f6W,{theme:"work",children:(0,n.jsx)($,{occupation:r,reserveMediaRegion:!1})});case"link":return(0,n.jsx)(s.f6W,{theme:"school",children:(0,n.jsx)(eB,{...r})});case"plan":return(0,n.jsx)(s.f6W,{theme:"plan",children:(0,n.jsx)(eP.PC,{...(0,eP.q0)(r),testId:"plan-card"})});case"page":return(0,n.jsx)(s.f6W,{theme:r.section,children:(0,n.jsx)(s.PB,{...r,href:r.url,headingEn:r.title,headingMi:r.maoriTitle,media:{type:"image",imageUrl:null===(t=r.image)||void 0===t?void 0:t.urlCard,altText:r.imageAltText},children:(0,n.jsx)(s.ajI,{html:r.introduction})})});case"subject":return(0,n.jsx)(s.f6W,{theme:"school",children:(0,n.jsx)(eH,{...r})});case"qualification_group":{let e="training"===r.type;return(0,n.jsx)(s.f6W,{theme:"study",children:(0,n.jsx)(s.BdI,{...r,...r.detail,isTrainingCard:e,qualificationLevel:{...r.detail.qualificationLevel,isWorkBasedTraining:e},keteFactory:w.E})})}case"feature_card":{let e=null===(a=r.link)||void 0===a?void 0:a.url;if(!e)return null;return(0,n.jsx)(s.f6W,{theme:r.theme||"global",children:(0,n.jsx)(ea,{...r,media:r.media&&{..."image"===r.media.type?{type:"image",imageUrl:r.media.urlCardWide,altText:r.media.altTextEn}:r.media},href:e})})}case"minor_work_category":return(0,n.jsx)(s.f6W,{theme:"work",children:(0,n.jsx)(er,{...r})});default:return console.error("Unknown promo block type: ".concat(i)),null}},eB=e=>{let{titleEn:t,titleMi:a,links:i}=e;return(0,n.jsx)(s.Iwc,{testId:"links-card",headingEn:t,headingMi:a||"",links:i.map(e=>({linkText:e.text,url:e.link.url,isExternal:"external"===e.link.linkType||"document"===e.link.linkType})),borderRadius:"sm"})},eH=e=>{let{tag:t,keteId:a,...i}=e,r=(0,w.E)(a);return(0,n.jsx)(s.Zbd,{headingEn:"NZC"===i.curriculum?i.title:null,headingMi:"TMoA"===i.curriculum?i.title:null,url:i.url,kete:r,tag:t,cardContent:(0,n.jsx)(s.Ake,{subject:i}),footer:(0,n.jsx)(s.kKT,{curriculum:i.curriculum})})},eF=10,eR=()=>(0,n.jsx)(eI.x,{...(0,s.Mir)(eN.backdrop),position:"absolute",top:{base:24,lg:0},right:0,bottom:{base:24,lg:0},left:{base:"0",lg:"25%"}
1,background:"brand.primary.700",m:{base:-6,sm:-8,md:-10,lg:-eF},borderRadius:{lg:"sm"}}),eN={section:"promo-section",items:"promo-items",backdrop:"promo-backdrop"};F("editorial.HomePage",e=>{var t;let{pageData:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eE,{headingEn:a.title,headingMi:null!==(t=a.maoriTitle)&&void 0!==t?t:void 0,introduction:a.introduction,backgroundImageUrl:a.heroHeaderBackground,foregroundLeftImageUrl:a.heroHeaderForegroundLeft,foregroundRightImageUrl:a.heroHeaderForegroundRight}),(0,n.jsx)(eb,{...a}),(0,n.jsx)(eA,{...a}),(0,n.jsx)(eS,{...a}),(0,n.jsx)(L,{...a}),(0,n.jsx)(ey,{...a}),(0,n.jsx)(I,{...a}),(0,n.jsx)(D,{...a})]})},{footer:"no-gap"}),F(["editorial.ContentAreaPage","resource_hub.CategoryPage"],e=>{let{pageData:t,bodyData:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.xuv,{css:{pb:{base:12,md:24}},bgColor:"brand.primary.600",children:(0,n.jsx)(s.CDE,{colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:t.meta.pattern,...t,titleLevel:1})}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.rjZ,{as:"ul",gridTemplateColumns:{base:"1fr",sm:"repeat(auto-fill, minmax(calc((100% - 2em) / 2), 1fr))",lg:"repeat(auto-fill, minmax(calc((100% - 2em) / 3), 1fr))"},css:{listStyle:"none",pt:12,pb:{base:10,lg:20},gap:4},children:a.map((e,t)=>{let{value:{keteId:a,tag:i,...r}}=e;return(0,n.jsx)(s.P4e,{as:"li",gridColumn:0===t?{sm:"1 / span 2"}:void 0,children:(0,n.jsx)(s.Zbd,{index:t,tag:0===t?"Featured ".concat((null!=i?i:"guide").toLowerCase()):i,headingLevel:2,cardContent:(0,n.jsx)(s.b3q,{description:r.description}),BaseMinHeightSize:"200px",MdMinHeightSize:"360px",LgMinHeightSize:"360px",...r,keteFactory:{keteFactory:w.E,keteId:a}})},t)})})})})]})});var eW=a(26745);F("editorial.SectionLandingPage",e=>{let{pageData:t}=e,a=(0,m.AR)(),i=(null==a?void 0:a.keteItems)?(0,m.S2)(a.keteItems,t.meta.sectionTheme):void 0,r=(0,k.createAnchorLinkToSection)(t.meta.sectionTheme);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.wcX,{headingIllustration:t.meta.headingIllustration,children:[(0,n.jsx)(s.CDE,{isSectionTheme:!0,pattern:t.meta.pattern,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",titleLevel:1,...t}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 /span 8",md:"1 /span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{pt:8,zIndex:11},children:!!i&&i>0&&r&&(0,n.jsx)(s.UkX,{variant:"primaryLight",testId:"kete-landing-page-button",href:r,text:(0,eW.P)(i),strokeColour:"brand.primary.900"})})})]}),(0,n.jsxs)(s.W20,{fullWidthBackgroundColor:"colorPalette.dark",children:[(0,n.jsx)(x.r,{mt:{base:2,lg:16},mb:{base:12,lg:16},as:"ul",templateColumns:{base:"1fr",md:"repeat(2, 1fr)"},css:{listStyle:"none",gap:4},children:t.promoTiles.map((e,t)=>(0,n.jsx)(s.P4e,{as:"li",children:(0,n.jsx)(s.n9L,{headingEn:e.headingEn,headingMi:e.headingMi,imageSrc:e.illustration.url,imageAlt:"",imageHorizontalOffset:{base:-1,md:-4},imageVerticalOffset:-2,link:e.url,testId:"promo-tiles",description:e.description})},t))}),(0,n.jsx)(s.ALS,{headingLevel:"h2",headingMi:"Whiwhi tohutohu",headingEn:"Get advice",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald",colorThemeEn:!0,colorThemeMi:!0}),(0,s.YjB)(t.contentAreas)&&(0,n.jsx)(eI.x,{mb:24,children:t.contentAreas.map(e=>(0,n.jsx)(s.uk3,{testId:"accordion-guides-".concat(e.index),accordion:[{type:"accordion",value:{headingEn:e.title,headingMi:e.maoriTitle,body:e.introduction,accordionItems:e.guides}}]},e.index))})]}),t.newsletterSubscriptionDriver&&(0,n.jsx)(D,{newsletterSubscriptionDriver:t.newsletterSubscriptionDriver})]})},{footer:e=>e.newsletterSubscriptionDriver?"no-gap":{backgroundColor:"colorPalette.dark"}});var eO=a(98783),eq=a.n(eO),eU=a(63955),e_=a(13414),eQ=a(33093),eY=a(28384);let eZ=async e=>{try{return(await fetch((0,eY.dP)("/api/user_profile/v1/subscribe/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify((0,eY.pw)(e))})).ok}catch(e){return!1}},eG=e=>{var t,a,i;let{lifeStages:r,interests:l,onOutcomeChange:o}=e,{getRecaptchaResponse:d}=(0,s.cRO)(),{handleSubmit:c,register:u,formState:{isSubmitting:h,errors:p,isValid:g},control:b}=(0,eU.cI)({mode:"all",defaultValues:{email:"",whatDescribesYouBest:[],whatAreYouInterestedInHearingAbout:[]}}),j=[...r.map(e=>({code:e.id,firstLabel:e.name})),{code:"",firstLabel:"Prefer not to say",isRadio:!0}],v=l.map(e=>({code:e.id,firstLabel:e.name})),y=async e=>{let t=await d();if(!t)return;let a=""===e.whatDescribesYouBest[0]?[]:e.whatDescribesYouBest;await eZ({email:e.email,lifeStages:a,interests:e.whatAreYouInterestedInHearingAbout,googleRecaptchaToken:t})?o("succesful"):(0,s.wpA)({title:"Subscription failed",description:"Please try again later.",status:"error"})},f=(e,t,a)=>{if(""===e)a(t.includes("")?[]:[""]);else{let i=t.filter(e=>""!==e);a(eq()(i,[e]))}},k="Email",w="What describes you best?",C="What are you interested in hearing about?";return(0,n.jsx)("form",{onSubmit:c(y),children:(0,n.jsxs)(x.r,{gap:6,children:[(0,n.jsx)(s.P4e,{children:(0,n.jsx)(s.xvT,{children:"Please answer every question."})}),(0,n.jsx)(s.P4e,{children:(0,n.jsxs)(e_.Tn,{invalid:!!p.email,children:[(0,n.jsx)(e_.Qy,{children:k}),(0,n.jsx)(s.IIB,{...u("email",{required:"This field is required.",validate:e=>(0,m.Xt)(e)?void 0:"Invalid email address"}),...(0,s.Mir)(eJ.emailField),placeholder:k,disabled:h}),(0,n.jsx)(e_.FI,{children:null===(t=p.email)||void 0===t?void 0:t.message})]})}),(0,n.jsx)(s.P4e,{children:(0,n.jsxs)(eQ.aD,{invalid:!!p.whatDescribesYouBest,children:[(0,n.jsx)(eQ.Qv,{children:w}),(0,n.jsx)(eU.Qr,{control:b,name:"whatDescribesYouBest",rules:{required:"This field is required.",validate:e=>e.length<=3?void 0:"Please choose up to 3 only."},render:e=>
1{let{field:{onChange:t,onBlur:a,value:i}}=e;return(0,n.jsx)(s.YcF,{id:"email-subscription-what-describes-you-best",...(0,s.Mir)(eJ.whatDescribesYouBest),modalHeaderText:w,selectedOption:i&&i.length>0?i.map(e=>{var t;let a=j.find(t=>t.code===e);return null!==(t=null==a?void 0:a.firstLabel)&&void 0!==t?t:""}):["Select any that apply or choose Prefer not to say"],options:j,selected:i,ctaLabel:"Select",theme:null,onBlur:a,invalid:!!p.whatDescribesYouBest,onChange:e=>f(e,i,t),labelSize:"regular",disabled:h})}}),(0,n.jsx)(eQ.h9,{children:null===(a=p.whatDescribesYouBest)||void 0===a?void 0:a.message})]})}),(0,n.jsx)(s.P4e,{children:(0,n.jsxs)(eQ.aD,{invalid:!!p.whatAreYouInterestedInHearingAbout,children:[(0,n.jsx)(eQ.Qv,{children:C}),(0,n.jsx)(eU.Qr,{control:b,name:"whatAreYouInterestedInHearingAbout",rules:{required:"This field is required.",maxLength:3,validate:e=>e.length<=3?void 0:"Please choose up to 3 only."},render:e=>{let{field:{onChange:t,onBlur:a,value:i}}=e;return(0,n.jsx)(s.YcF,{id:"email-subscription-what-describes-you-best",...(0,s.Mir)(eJ.whatAreYouInterestedInHearingAbout),modalHeaderText:C,selectedOption:i&&i.length>0?i.map(e=>{var t;let a=v.find(t=>t.code===e);return null!==(t=null==a?void 0:a.firstLabel)&&void 0!==t?t:""}):["Select any that apply"],options:v,selected:i,ctaLabel:"Select",theme:null,onBlur:a,invalid:!!p.whatAreYouInterestedInHearingAbout,onChange:e=>t(eq()(i,[e])),labelSize:"regular",disabled:h})}}),(0,n.jsx)(eQ.h9,{children:null===(i=p.whatAreYouInterestedInHearingAbout)||void 0===i?void 0:i.message})]})}),(0,n.jsx)(s.P4e,{children:(0,n.jsx)(s.zxk,{formNoValidate:!0,type:"submit",disabled:h||!g,...(0,s.Mir)(eJ.submitButton),css:{mt:6,mr:4},children:"Sign up"})})]})})},eJ={emailField:"subscriber-email-field",submitButton:"subscriber-submit-button",whatDescribesYouBest:"subscriber-what-describes-you-best",whatAreYouInterestedInHearingAbout:"subscriber-what-are-you-interested-in-hearing-about"};var eV=a(8035),eX=a(5632),eK=a.n(eX);let e$=()=>{let e=(0,s._1g)(),t=t=>{e.open("auth-modal",{nextAuthenticationFlowCode:t})};return{openSignUpModal:()=>t("U"),openSignInModal:()=>t("I")}};F("user_profile.SubscribeToNewsletterPage",e=>{var t;let{pageData:a}=e,[i,r]=(0,p.useState)("not-submitted"),{isUserAuthenticated:l}=(0,eV.aC)(),{openSignInModal:o,openSignUpModal:d}=e$(),c=(0,m.Bx)(),u=null==c?void 0:c["user_profile.AboutYouPage"];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.zKw,{maoriTitle:null!==(t=a.maoriTitle)&&void 0!==t?t:void 0,title:a.title,introduction:a.introduction,illustration:a.illustration}),(0,n.jsxs)(s.W20,{mb:"not-submitted"===i?{base:29,lg:32}:void 0,children:["not-submitted"===i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.MFu,{children:l?(0,n.jsx)(s._cU,{content:a.editAccountCallout,opts:{link:"".concat(u,"?r=").concat(eK().asPath)}}):(0,n.jsx)(s._cU,{content:a.signInOrUpCallout,opts:{onSignUpClick:d,onSignInClick:o}})}),(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph",css:{display:"block",color:"brand.neutrals.900",mt:8,mb:{base:8,sm:12}},children:a.bodyText}),(0,n.jsx)(eG,{interests:a.interests,lifeStages:a.lifeStages,onOutcomeChange:e=>{r(e)}})]}),"succesful"===i&&(0,n.jsx)(e0,{successMessage:a.successMessage})]}),(0,n.jsx)(s.xuv,{css:{bg:"brand.global.100",breakInside:"avoid"},children:(0,n.jsxs)(s.W20,{mt:{base:10,md:16},mb:{base:12,md:16},children:[(0,n.jsx)(s.X6q,{as:"h2",textStyle:"heading5-primary",css:{mb:4},color:"brand.primary.800",children:"How will Tahatū use your information?"}),(0,n.jsx)(s._cU,{content:a.howWeUse,css:{"& p":{textStyle:{base:"paragraph-regular",md:"paragraph-small"},"&:not(:first-of-type)":{mt:4}}},opts:{forceLinksToOpenInNewTab:!0,linkVariant:"underlineStrong"}})]})})]})},{footer:{backgroundColor:"brand.global.100"},breadcrumbs:{lightForeground:!1}});let e0=e=>{let{successMessage:t}=e;return(0,n.jsx)(s._cU,{content:t,css:{mt:8,mb:{base:16,sm:24},p:{textStyle:"paragraph-large"}}})};F("editorial.VideoLibraryPage",e=>{let{pageData:t}=e;return(0,n.jsx)(s.xuv,{background:"brand.global.200",children:(0,n.jsx)(e1,{...t})})},{footer:{backgroundColor:"brand.global.200"}});let e1=e=>{let t=(0,p.useMemo)(()=>[{id:"work-area-playlists",headingEn:e.workAreaPlaylistsHeadingEn,headingMi:e.workAreaPlaylistsHeadingMi,playlists:e.workAreaPlaylists},{id:"career-advice-playlists",headingEn:e.careerAdvicePlaylistsHeadingEn,headingMi:e.careerAdvicePlaylistsHeadingMi,playlists:e.careerAdvicePlaylists}].filter(e=>(0,s.YjB)(e.playlists)),[e]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.xuv,{css:{pb:{base:12,md:24}},bgColor:"brand.primary.600",children:[(0,n.jsx)(s.CDE,{...e,titleLevel:1,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",illustration:e.illustration&&{url:e.illustration.url,altTextEn:e.illustrationAltText||"",altTextMi:""},pattern:e.meta.pattern}),(0,s.YjB)(t)&&(0,n.jsx)(s.W20,{children:(0,n.jsx)(s.GSM,{color:"brand.primary.100",mt:{base:6,md:8},links:t.map(e=>({title:e.headingEn,href:"#".concat(e.id)}))})})]}),t.map((e,t)=>(0,n.jsxs)(s.W20,{children:[(0,n.jsx)(s.Ysw,{id:e.id,headingLevel:"h2",textStyleAs:"h4",headingEn:e.headingEn,headingMi:e.headingMi,mt:{base:10,lg:12},mb:8}),(0,n.jsx)(x.r,{css:{gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)"},gridAutoRows:"1fr",gap:4},children:e.playlists.filter(s.Dw5).map((e,t)=>(0,n.jsx)(s.P4e,{children:(0,n.jsx)(e2,{...e})},t))})]},t))]})},e2=e=>{let{conciseTitleEn:t,conciseTitleMi:a,url:i,numberOfVideos:r,cardImageUrl:l,cardImageAlt:o}=e,d=1===Number(r)?"1 video":"".concat(r," videos");return(0,n.jsx)(s.PB,{href:i,headingEn:t,headingMi:a,media:{type:"image",imageUrl:l,altText:o},footerPlacement:"bottom",footer:(0,n.jsx)(s.xvT,{textStyle:"paragraph-regular",mt:2,children:d}),ariaLabel:"".concat(t," playlist, ").concat(d)})};var e4=a(34498),e6=a.n(e4);F("editorial.VideoPlaylistPage",e=>{let{pageData:t}=e;return(0,n.jsx)(s.xuv,{backgroundColor:"brand.global.100",children:(0,n.jsx)(e3,{...t})})},{footer:e=>({backgroundColor:e.driver?"brand.global.700":"brand.global.200"}),breadcrumbs:{lightForeground:!1}});let e3=e=>{var t,a,i;let{vimeoPlaylistId:r,occupations:l,guides:o,...d}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.hUI,{patternUrl:null===(t=d.meta.pattern)||void 0===t?void 0:t.url,...d,maoriTitle:null!==(i=d.maoriTitle)&&void 0!==i?i:""}),(0,n.jsx)(s.NVH,{children:(0,n.jsx)(s.W20,{mb:{base:10,md:12},children:(0,n.jsx)(s.xuv,{marginInline:{base:0,md:8},children:(0,n.jsx)(s.xuv,{css:{padding:"56.25% 0 0 0",position:"relative"},children:(0,n.jsx)("iframe",{src:"https://vimeo.com/showcase/".concat(r,"/embed"),allowFullScreen:!0,frameBorder:"0",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}},r)})})})}),(0,s.YjB)(l)&&(0,n.jsxs)(s.W20,{mb:16,children:[(0,n.jsx)(s.Ysw,{textStyleAs:"h4",headingLevel:"h2",headingEn:d.careerIdeasSectionHeadingEn,headingMi:d.careerIdeasSectionHeadingMi,mb:8}),(0,n.jsx)(s.vzF,{theme:"work",children:(0,n.jsx)(s.pUR,{occupations:l,keteFactory:w.E,id:"occupations-in-playlist",cardsSubject:"career ideas",initialLimit:10})})]}),(0,s.YjB)(o)&&(0,n.jsxs)(s.W20,{mb:16,children:[(0,n.jsx)(s.Ysw,{textStyleAs:"h4",headingLevel:"h2",headingEn:d.playlistGuidesSectionHeadingEn,headingMi:d.playlistGuidesSectionHeadingMi,mb:8}),(0,n.jsx)(x.r,{gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gridAutoRows:"1fr",rowGap:{base:4,sm:6},columnGap:{base:4},children:o.map((e,t)=>(0,n.jsx)(R.P,{children:(0,n.jsx)(s.vzF,{theme:e.section,children:(0,n.jsx)(s.Zbd,{headingEn:e.title,headingMi:e.maoriTitle,tag:e.contentTag,cardContent:(0,n.jsx)(s.b3q,{description:e.introduction||""}),url:e.url,headingLevel:4,keteFactory:e.keteId?{keteFactory:w.E,keteId:e.keteId}:void 0})})},t))})]}),(0,s.YjB)(d.otherPlaylists)&&(0,n.jsx)(e5,{...d}),(null===(a=d.driver)||void 0===a?void 0:a.url)&&(0,n.jsx)(s.W20,{fullWidthBackgroun
1dColor:"brand.primary.700",children:(0,n.jsx)(e8,{headingEn:d.driver.driverHeadingEn,headingMi:d.driver.driverHeadingMi,content:d.driver.driverDescription,ctaText:d.driver.driverCta,ctaLink:d.driver.url,image:d.driver.driverIllustration&&{url:d.driver.driverIllustration.url,altTextEn:d.driver.driverIllustrationAltText}})})]})},e8=e=>{let{headingMi:t,headingEn:a,content:i,ctaLink:r,ctaText:l,image:o}=e;return(0,n.jsxs)(s.kCb,{css:{px:6,pt:{base:12,sm:16},gap:{base:6,md:8},flexDirection:{base:"column",md:"row"}},children:[o&&(0,n.jsx)(c.E,{src:o.url,alt:o.altTextEn,css:{alignSelf:"center",width:{base:"160px",md:"243px"}}}),(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.Ysw,{headingLevel:"h3",headingMi:t,headingEn:a,textStyleAs:"h4",colorMode:"light"}),i&&(0,n.jsx)(s.xvT,{css:{my:6,textStyle:"paragraph-regular",color:"brand.primary.100"},children:(0,n.jsx)(s.Taj,{html:i,allowedTags:v.T})}),r&&(0,n.jsx)(s.rUS,{href:r,variant:"primaryLight",size:"regular",children:l})]})]})},e5=e=>{let{otherPlaylists:t,playlistOtherPlaylistsSectionHeadingEn:a,playlistOtherPlaylistsSectionHeadingMi:i}=e;return(0,n.jsx)(s.W20,{fullWidthBackgroundColor:"brand.primary.200",children:(0,n.jsxs)(s.xuv,{pt:{base:8,sm:16,md:12},pb:{base:8,md:16},children:[(0,n.jsx)(s.Ysw,{headingMi:i,headingEn:a,headingLevel:"h4",mb:{base:6,md:8}}),(0,n.jsx)(x.r,{css:{gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)"},gap:4},children:e6()(t,"conciseTitleEn").map((e,t)=>(0,n.jsx)(R.P,{children:(0,n.jsx)(e2,{cardImageUrl:e.cardImageUrl,cardImageAlt:e.cardImageAlt,...e})},t))})]})})};var e7=a(42490);F("news.NewsLandingPage",e=>{let{pageData:t}=e;return(0,n.jsx)(s.xuv,{background:"brand.global.600",children:(0,n.jsx)(e9,{...t})})},{footer:{backgroundColor:"brand.global.100"}});let e9=e=>{var t;let{isSmOrBelow:a,isMobile:i}=(0,s.kCD)(),{text:r,setText:l,performSearchWithTextOnly:o,filtersViewModel:d,highlighting:c,searchResultData:u,searchState:h,searchStateDispatch:p,isFetching:x,onNextPage:b,onBackPage:j,showFilters:v}=(0,g.J6)({searchHook:m.Oy}),{open:y,setOpen:f}=(0,s.qY0)();return(0,n.jsxs)(g.ci.Provider,{value:{searchState:h,dispatch:p},children:[(0,n.jsxs)(s.xuv,{css:{pb:{base:12,md:24}},children:[(0,n.jsx)(s.CDE,{...e,titleLevel:1,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.global.100",colorDescription:"brand.neutrals.100",pattern:e.meta.pattern}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 5",xl:"2 / span 5"},children:(0,n.jsx)(s.p1H,{performSearch:o,text:r,setText:l,withOverlay:!0,placeholder:"Search news",fetchSuggestions:()=>(0,m.lK)(r),cacheKey:"news-search-suggestions"})})})]}),(0,n.jsxs)(s.xuv,{css:{bgColor:"brand.global.100",pb:1,pt:{base:8,md:16}},children:[i&&d&&v&&(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panelMobile,children:(0,n.jsx)(s.kCb,{gap:2,mb:6,mt:6,children:(0,n.jsx)(e7.rM,{showFilterPanel:()=>f(!0),hasFilters:d.hasActiveFilters})})})}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:u&&u.pagination.totalResults>0&&(0,n.jsx)(s.xvT,{"data-testid":"pagination-summary",css:{mr:4},children:(0,s.VeA)(u.pagination.start+1,u.pagination.finish,u.pagination.totalResults)})})}),(0,n.jsxs)(s.rjZ,{children:[(0,n.jsxs)(s.P4e,{gridColumn:s.t4e.results,css:{py:12},children:[null==u?void 0:u.results.map((e,t)=>(0,n.jsxs)(s.xuv,{css:{...c},children:[(0,n.jsx)(s.nsv,{tag:e.tag,url:e.url,newsDate:(0,s.p6d)(e.newsDate,s.kHz.newsItem),headingEn:(0,s.NW4)(e.headingEn),headingMi:e.headingMi?(0,s.NW4)(e.headingMi):void 0,summary:e.summary?(0,s.NW4)(e.summary):void 0,byline:e.byline,tagVariant:"global",textStyleEn:"heading5-primary",textStyleMi:"heading5-primary",textStyleSummary:"paragraph-regular",tagColor:"brand.neutrals.900",newsDateTextStyle:i?"paragraph-small":"paragraph-regular",tagTextStyle:a?"paragraph-x-small":"paragraph-small"}),t<(null==u?void 0:u.results.length)-1&&(0,n.jsx)(s.izJ,{my:8})]},t)),!x&&u&&0===u.results.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.xvT,{textStyle:"heading5-primary",color:"brand.global.900",mb:6,children:[e.noResultsPrefixEn," `","".concat(r),"`"]}),(null==u?void 0:null===(t=u.didYouMean)||void 0===t?void 0:t.length)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.au,{didYouMean:u.didYouMean.map(e=>e.text)})}):(0,n.jsx)(s._cU,{css:{mb:12},content:e.noResultsText})]}),u&&u.pagination.totalResults>0&&(0,n.jsx)(s.xuv,{my:8,children:(0,n.jsx)(s.tlE,{startIndex:u.pagination.start+1,endIndex:u.pagination.finish,totalResults:u.pagination.totalResults,currentPage:h.page,totalPages:u.pagination.pages.length,onNext:b,onBack:j})})]}),(0,n.jsx)(s.P4e,{gridColumn:s.t4e.filters,children:!i&&d&&v&&(0,n.jsx)(s.P4e,{gridColumn:s.t4e.filters,children:(0,n.jsx)(e7.J7,{filters:d,headingEn:e.searchTagsHeadingEn,headingMi:e.searchTagsHeadingMi})})})]})]}),i&&d&&v&&(0,n.jsx)(e7.ab,{filters:d,numberOfResults:null==u?void 0:u.pagination.totalResults,open:y,onOpenChange:f,headingEn:e.searchTagsHeadingEn,headingMi:e.searchTagsHeadingMi})]})};var te=a(91914);let tt=e=>{let{bodyData:t,pageData:a,navigationData:i,footerData:r,feedbackData:l,alertData:o}=e,d=a.landingPageUrl;return(0,n.jsx)(tx,{pageData:a,feedbackData:l,footerData:r,navigationData:i,bodyData:t,alertData:o,contentFooter:a.topics&&(0,n.jsx)(s.rjZ,{children:(0,n.jsxs)(s.P4e,{gridColumn:s.t4e.pageHeading,css:{pt:16},children:[(0,n.jsx)(s.X6q,{textStyle:"paragraph-medium",children:"Topics"}),(0,n.jsx)(s.aVo.fC,{css:{display:"flex",flexWrap:"wrap",gap:2,flexDirection:"row",listStyle:"none",mt:4},...(0,s.Mir)(ta.newsTopics),children:a.topics.map((e,t)=>(0,n.jsx)(s.HCh,{children:(0,n.jsx)(s.rUS,{href:"".concat(d,"?filters=").concat((0,te.r)([{type:"tag",id:e.name}])),variant:"secondaryLight",size:"small",css:{fontWeight:"medium",color:"brand.global.700",_hover:{bg:"transparent",borderColor:"brand.global.700"}},children:e.name})},t))})]})})})},ta={newsTopics:"news-topics"};F("resource_hub.ResourceHubLandingPage",e=>{var t,a;let{pageData:i}=e,{exploreByAudienceTiles:r,exploreByCategoryTiles:l}=i,o=(0,m.AR)(),d=(null==o?void 0:o.keteItems)?(0,m.S2)(o.keteItems,i.meta.sectionTheme):void 0,c=(0,k.createAnchorLinkToSection)(i.meta.sectionTheme);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.xuv,{...(0,s.Mir)(ti.hubLandingPageHeadings),css:{pb:{base:12,md:24}},bgColor:"brand.primary.600",children:[(0,n.jsx)(s.CDE,{"data-testid":"page-heading",colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:i.meta.pattern,titleLevel:1,maoriTitle:i.maoriTitle,title:i.title,introduction:i.introduction}),(0,n.jsx)(s.xuv,{py:{base:6,md:8},children:(0,n.jsx)(g.oL,{topicId:"resourceHub",placeholder:"Search",keteItems:{numberOfKeteItems:d,ketePageUrl:c}})}),i.quickLinks&&(null===(t=i.quickLinks)||void 0===t?void 0:t.length)!==0&&(0,n.jsxs)(s.W20,{children:[i.quickLinksHeading&&(0,n.jsx)(s.xuv,{...(0,s.Mir)(ti.quickLinksHeading),pb:4,children:(0,n.jsx)(s.X6q,{textStyle:"paragraph-medium",color:"brand.primary.100",children:i.quickLinksHeading})}),(0,n.jsx)(s.GSM,{testId:"quick-links",variant:"quick-links",color:"brand.primary.100",links:null===(a=i.quickLinks)||void 0===a?void 0:a.map(e=>
1({href:"anchor"===e.link.linkType?"#".concat(e.link.url.replace(/^#/,"")):e.link.url,title:e.title}))})]})]}),i.mediaCardSection&&(0,n.jsx)(s.W20,{fullWidthBackgroundColor:"brand.primary.700",children:(0,n.jsxs)(s.xuv,{pt:{base:8,md:16,lg:12},pb:{base:12,md:16},children:[(0,n.jsx)(s.ALS,{"data-testid":"media-cards-section-heading",headingLevel:"h3",headingMi:i.mediaCardSection.titleMi,headingEn:i.mediaCardSection.titleEn,colorThemeEn:!0,colorThemeMi:!0,spaceBelow:0,css:{mb:{base:4,md:8}}}),(0,n.jsx)(f,{value:i.mediaCardSection.cards})]})}),(r.length>0||l.length>0)&&(0,n.jsx)(s.W20,{fullWidthBackgroundColor:"brand.primary.200",children:(0,n.jsxs)(s.xuv,{pb:{base:8,md:12},children:[r.length>0&&(0,n.jsxs)(s.xuv,{...(0,s.Mir)(ti.groupHeadings),mt:12,children:[(0,n.jsx)(s.ALS,{"data-testid":"explore-by-audience",headingLevel:"h2",headingMi:i.exploreByAudienceHeadingMi,headingEn:i.exploreByAudienceHeadingEn,textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary",spaceBelow:0}),(0,n.jsx)(x.r,{gridTemplateColumns:{base:"auto",md:"repeat(2, 1fr)"},mt:8,gap:4,children:r.map((e,t)=>(0,n.jsx)(s.n9L,{variant:"tight",headingEn:e.title,headingMi:e.maoriTitle,imageSrc:e.thumbnail.urlDesktop,imageAlt:e.thumbnailImageAltTextEn,link:e.url,testId:ti.tile,keteFactory:e.keteId?{keteFactory:w.E,keteId:e.keteId}:void 0,...e},t))})]}),l.length>0&&(0,n.jsxs)(s.xuv,{...(0,s.Mir)(ti.categoryHeadings),mt:12,children:[(0,n.jsx)(s.ALS,{"data-testid":"explore-by-category",headingLevel:"h2",headingMi:i.exploreByCategoryHeadingMi,headingEn:i.exploreByCategoryHeadingEn,textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary",spaceBelow:0}),(0,n.jsx)(x.r,{gridTemplateColumns:{base:"auto",md:"repeat(2, 1fr)"},mt:{base:4,md:8},gap:4,children:l.map((e,t)=>(0,n.jsx)(b,{link:e.link,illustrationUrl:e.illustration.url,illustrationAlt:e.illustration.illustrationAltTextEn,testId:ti.linkCard,stackWhenNeeded:!0,children:(0,n.jsx)(ew,{headingEn:e.title,headingMi:e.maoriTitle})},t))})]})]})}),(0,n.jsxs)(s.xuv,{mt:36,children:[i.newsSection&&(0,n.jsx)(I,{...i}),i.newsletterSubscriptionDriver&&(0,n.jsx)(D,{newsletterSubscriptionDriver:i.newsletterSubscriptionDriver})]})]})},{footer:e=>e.newsletterSubscriptionDriver||e.newsSection?"no-gap":{backgroundColor:"colorPalette.light"}});let ti={hubLandingPageHeadings:"hub-landing-page-headings",quickLinksHeading:"quick-links-heading",groupHeadings:"explore-by-group-headings",categoryHeadings:"explore-by-category-headings",linkCard:"explore-by-category-card",tile:"audience-tile"},tr=e=>{let{blockData:t}=e,a=(0,s.Sx0)({base:1,md:2,xl:3})||1,i="advice_page_carousel_heading_".concat(t.id),r=t.value.pages.length>a;return(0,n.jsxs)(s.xuv,{mb:8,children:[(0,n.jsx)(s.Ysw,{id:i,headingLevel:"h3",headingEn:t.value.headingEn,headingMi:t.value.headingMi}),(0,n.jsx)(s.xvT,{textStyle:"paragraph-regular",my:8,children:t.value.description}),r?(0,n.jsx)(s.lr9,{items:t.value.pages,itemsToDisplay:a,ariaLabelledby:i,isLightBackgroun
1d:!0,containerWidth:"fluid",arrowPlacement:"outside-container",renderedItem:e=>{var t,a,i;return(0,n.jsx)(s.Zbd,{tag:e.contentTag,url:e.url,cardContent:(0,n.jsx)(s.b3q,{description:null!==(t=e.description)&&void 0!==t?t:""}),headingEn:null!==(a=e.headingEn)&&void 0!==a?a:"",headingMi:null!==(i=e.headingMi)&&void 0!==i?i:"",headingLevel:3,BaseMinHeightSize:"200px",MdMinHeightSize:"360px",LgMinHeightSize:"360px",keteFactory:e.keteId?{keteFactory:w.E,keteId:e.keteId}:void 0})}}):(0,n.jsx)(tn,{items:t.value.pages,renderedItem:e=>{var t,a,i;return(0,n.jsx)(s.Zbd,{tag:e.contentTag,cardContent:(0,n.jsx)(s.b3q,{description:null!==(t=e.description)&&void 0!==t?t:""}),headingEn:null!==(a=e.headingEn)&&void 0!==a?a:"",headingMi:null!==(i=e.headingMi)&&void 0!==i?i:"",...e,headingLevel:3,BaseMinHeightSize:"200px",MdMinHeightSize:"360px",LgMinHeightSize:"360px",keteFactory:e.keteId?{keteId:e.keteId,keteFactory:w.E}:void 0})}})]})},tn=e=>{let{items:t,renderedItem:a}=e;return(0,n.jsx)(s.rjZ,{as:"ul","data-testid":"carousel-cards-list",gridTemplateColumns:{base:"1fr",sm:"repeat(auto-fill, minmax(calc((100% - 2em) / 2), 1fr))",lg:"repeat(auto-fill, minmax(calc((100% - 2em) / 3), 1fr))"},css:{mt:{base:6,md:8},listStyle:"none",gap:4},children:t.map((e,t)=>(0,n.jsx)(s.P4e,{as:"li",children:a(e)},t))})};var ts=a(47045);let tl=e=>{var t,a;let{links:i}=e,{isSmOrBelow:r}=(0,s.kCD)(),l=i.findIndex(e=>e.isCurrent),o=0===l,d=l===i.length-1,c=null===(t=i[l-1])||void 0===t?void 0:t.url,u=null===(a=i[l+1])||void 0===a?void 0:a.url;return(0,n.jsxs)(s.kCb,{justifyContent:"space-between",width:"100%",css:{mb:{base:16,sm:24}},children:[(0,n.jsx)(tc,{variant:"secondary",size:"regular",href:null!=c?c:"",...(0,s.Mir)(to.previousPaginationLink),"aria-label":o?void 0:"Go to the previous page. Page ".concat(l+1," of ").concat(i.length,"."),disabled:o,children:(0,n.jsx)(td,{content:r?"Previous":"Previous page",iconLeft:"ArrowLeft"})}),(0,n.jsx)(tc,{variant:"secondary",size:"regular",href:null!=u?u:"",...(0,s.Mir)(to.nextPaginationLink),disabled:d,"aria-label":d?void 0:"Go to the next page. Page ".concat(l+1," of ").concat(i.length,"."),children:(0,n.jsx)(td,{content:r?"Next":"Next page",iconRight:"ArrowRight"})})]})},to={nextPaginationLink:"next-pagination-link",previousPaginationLink:"previous-pagination-link"},td=e=>{let{content:t,iconLeft:a,iconRight:i}=e;return(0,n.jsxs)(s.kCb,{gap:2,alignItems:"center",children:[a&&(0,n.jsx)(s.JO$,{icon:a,size:"sm"}),(0,n.jsx)(s.xvT,{textStyle:"paragraph-small-large",css:{color:"inherit"},children:t}),i&&(0,n.jsx)(s.JO$,{icon:i,size:"sm"})]})},tc=e=>!1===e.disabled?(0,n.jsx)(s.rUS,{...e}):(0,n.jsx)(s.zxk,{...e}),tu=e=>{let{pageContext:t}=e,{links:a,headingEn:i}=t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.X6q,{as:"h2",...(0,s.Mir)(tp.relatedLinksHeading),children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"heading3-geograph",lang:"en",css:{display:"block",color:"brand.primary.900",mb:6},children:i})}),(0,n.jsx)(s.xuv,{css:{mt:2,mb:{base:8,sm:16},...s._g_.styles},children:(0,n.jsx)(s.aVo.fC,{css:{mt:2},variant:"bulletList",listIconColor:"primary",children:a.map((e,t)=>(0,n.jsx)(s.HCh,{children:(0,n.jsx)(th,{...e})},t))})})]})},th=e=>{let{url:t,headingEn:a,isCurrent:i}=e;return(0,n.jsx)(s.rUS,{...(0,s.Mir)("".concat(tp.relatedLinkItem,"-").concat(a)),css:{color:"brand.global.700"},href:t,children:(0,n.jsx)(s.xvT,{textStyle:"paragraph-medium",as:"div",css:{color:i?"brand.neutrals.900":"inherit"},children:a})})},tp={relatedLinksHeading:"related-links-heading",relatedLinkItem:"related-link"};var tg=a(61429),tm=a.n(tg);let tx=e=>{var t,a;let{bodyData:i,pageData:r,navigationData:o,footerData:c,feedbackData:u,alertData:h,contentFooter:p}=e,g=!!r.multiPageContext,m=(null===(t=r.meta)||void 0===t?void 0:t.searchDescription)||r.introduction,x={title:(null===(a=r.meta)||void 0===a?void 0:a.seoTitle)||r.title,description:tm()(m)};return(0,n.jsx)(l.A,{title:r.title,footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D,{newsletterSubscriptionDriver:r.newsletterSubscriptionDriver}),(0,n.jsx)(s.$_C,{data:c,gap:"no-gap",topSection:r.footerCallToAction})]}),alertData:h,navigationData:o,nav:(0,n.jsx)(d.m,{breadcrumbs:r.breadcrumbs,sectionTheme:r.meta.sectionTheme,keteId:r.keteId,rightHand:g&&(0,n.jsx)(s.kCb,{gap:2,children:(0,n.jsx)(ts.x,{theme:r.meta.sectionTheme,multiPageContext:r.multiPageContext})})}),meta:x,children:(0,n.jsx)(tb,{pageData:r,bodyData:i,feedbackData:u,contentFooter:p})})},tb=e=>{var t,a,i,r,l;let{pageData:d,bodyData:c,feedbackData:u,contentFooter:h}=e,p=null===(t=d.displayTitles)||void 0===t?void 0:t.includes("title"),g=null===(a=d.displayTitles)||void 0===a?void 0:a.includes("maori_title");return(0,n.jsx)(s.f6W,{theme:d.meta.sectionTheme,children:(0,n.jsxs)(s.xuv,{children:[(null===(i=d.displayTitles)||void 0===i?void 0:i.length)?(0,n.jsx)(s.ANF,{title:p?d.title:"",maoriTitle:g?d.maoriTitle:"",introduction:d.introduction,publishDate:d.publishDate,byline:d.byline,pattern:d.meta.pattern,theme:d.meta.sectionTheme,newsDate:d.newsDate?(0,s.p6d)(d.newsDate,s.kHz.newsPage):void 0,heroImage:d.heroImage}):(0,n.jsx)(s.ANF,{pattern:d.meta.pattern,multiPageContext:d.multiPageContext,theme:d.meta.sectionTheme,...d}),(null===(r=d.multiPageContext)||void 0===r?void 0:r.showLinks)&&(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10","2xl":"2 / span 9"},children:(0,n.jsx)(tu,{pageContext:d.multiPageContext})})}),(0,n.jsx)(s.rjZ,{children:c.map((e,t)=>(0,n.jsx)(s.P4e,{gridColumn:s.t4e.pageHeading,id:e.id,children:tj(e)},t))}),h,(0,n.jsx)(s.rjZ,{children:(0,n.jsxs)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10","2xl":"2 / span 9"},css:{pb:24,pt:16},children:[(0,s.YjB)(null===(l=d.multiPageContext)||void 0===l?void 0:l.links)&&(0,n.jsx)(tl,{links:d.multiPageContext.links}),(0,n.jsx)(o.x,{feedbackData:u})]})})]})})},tj=e=>{switch(e.type){case"accordion":return(0,n.jsx)(s.xuv,{"data-testid":"accordion-block",css:{mb:{base:8,lg:24}},children:(0,n.jsx)(s.UNf,{accordion:e.value})});case"file_download":return(0,n.jsx)(s.xuv,{"data-testid":"file-download-block",css:{mb:{base:8,lg:12}},children:(0,n.jsx)(s.g$Y,{download:e.value})});case"feature_highlight":return(0,n.jsx)(s.xuv,{"data-testid":"feature-highlight-block",css:{mb:{base:8,lg:24}},children:(0,n.jsx)(s.b6k,{id:e.id,...e.value})});case"heading":return(0,n.jsx)(s.xuv,{"data-testid":"heading-block",css:{mb:{base:6,lg:8},mt:{base:7,lg:8}},children:(0,n.jsx)(s.ALS,{...e.value})});case"numbered_heading":return(0,n.jsx)(s.xuv,{"data-testid":"numbered-heading-block",css:{mb:{base:6,lg:8},mt:{base:7,lg:8}},children:(0,n.jsx)(s.SLi,{...e.value})});case"image":return(0,n.jsx)(s.xuv,{"data-testid":"image-block",css:{mb:{base:8,lg:24}},children:(0,n.jsx)(s.r8v,{...e.value})});case"info_block":return(0,n.jsx)(s.xuv,{"data-testid":"illustrated-info-block",css:{mb:{base:8,lg:24}},children:(0,n.jsx)(s.vjZ,{illustratedBlock:e.value})});case"block_quote":return(0,n.jsx)(s.xuv,{"data-testid":"block-quote-block",css:{mb:{base:6,lg:8},mt:{base:8}},children:(0,n.jsx)(s.VN2,{...e.value})});case"related_content":return(0,n.jsx)(s.xuv,{"data-testid":"related-content-block",css:{mb:{base:8,lg:24}},children:(0,n.jsx)(s.EPg,{relatedContent:e.value})});case"rich_text":return(0,n.jsx)(s.xuv,{"data-testid":"rich-text-block",css:{mb:{base:8,lg:12}},children:(0,n.jsx)(s._cU,{content:e.value,opts:{listIconColor:"primary"}})});case"video":return(0,n.jsx)(s.xuv,{"data-testid":"video-block",css:{mb:{base:8,lg:24}},children:(0,n.jsx)(s.nU6,{...e.value})});case"table":return(0,n.jsx)(s.xuv,{"data-testid":"table",css:{mb:{base:8,lg:12},overflowX:"visible"},children:(0,n.jsx)(s.roP,{...e.value})});case"tool_driver":return(0,n.jsx)(s.xuv,{"data-testid":"tool-driver",css:{my:{base:16}},children:(0,n.jsx)(u,{id:e.id,content:e.value})});case"feature_driver":return(0,n.jsx)(s.xuv,{"data-testid":"feature-driver",css:{mb:{base:16,md:24}},children:(0,n.jsx)(f,{value:e.value})});case"advice_page_carousel":return(0,n.jsx)(tr,{blockData:e})}};var tv=a(34143);let ty=e=>null==e?void 0:e.reduce((e,t,a)=>{let{narrowClassifications:i,...r}=t,n=i.map(e=>{let{detailClassifications:t,...a}=e;return a}),s={...r,children:n};return a%2==0?e.push([s]):e[e.length-1].push(s),e},[]),tf=e=>{let t={};
1return e.forEach(e=>{let a=e.code;t[a]={},e.narrowClassifications.forEach(e=>{var i;let r=e.code;t[a][r]={},null===(i=e.detailClassifications)||void 0===i||i.forEach(e=>{let i=e.code;t[a][r][i]=e.code})})}),t},tk=(e,t,a,i)=>{let r={};return e.forEach(e=>{let t=JSON.parse(JSON.stringify(i[e]));r[e]=t}),t.forEach(e=>{let t=Object.keys(i).find(t=>e in i[t]);if(t){t in r||(r[t]={});let a=i[t][e];r[t][e]=a}}),a.forEach(e=>{Object.keys(i).forEach(t=>{let a=Object.keys(i[t]).find(a=>i[t]&&e in i[t][a]);if(a){t in r||(r[t]={}),a in r[t]||(r[t][a]={});let n=i[t][a][e];r[t][a][e]=n}})}),r},tw=(e,t)=>{let a=[],i=[],r=[];return Object.keys(e).forEach(n=>{let s=Object.keys(e[n]),l=s.length,o=Object.keys(t[n]).length,d=s.filter(a=>{var i,s;let l=Object.keys(e[n][a]);if(l.length===Object.keys(null!==(s=null===(i=t[n])||void 0===i?void 0:i[a])&&void 0!==s?s:{}).length)return a;l.forEach(e=>r.push(e))}),c=(null!=d?d:[]).length===l;l===o&&c?a.push(n):d.forEach(e=>i.push(e))}),{broadFilters:a,narrowFilters:i,detailFilters:r}},tC=e=>{let t={broad:{},narrow:{},detail:{}};return e.forEach(e=>{t.broad[e.code]=e.nameEnglish,e.narrowClassifications.forEach(e=>{var a;t.narrow[e.code]=e.nameEnglish,null===(a=e.detailClassifications)||void 0===a||a.forEach(e=>{t.detail[e.code]=e.nameEnglish})})}),t},tT=(e,t)=>{if(0===e.broadFilters.length&&0===e.narrowFilters.length&&0===e.detailFilters.length)return["all study areas"];{let a=[];return e.broadFilters.forEach(e=>{let i=t.broad[e];a.push(i)}),e.narrowFilters.forEach(e=>{let i=t.narrow[e];a.push(i)}),e.detailFilters.forEach(e=>{let i=t.detail[e];a.push(i)}),a}},tS=(e,t)=>e.filter(e=>e in t.broad),tM=(e,t)=>e.filter(e=>e in t.narrow),tE=(e,t)=>e.filter(e=>e in t.detail),tD=e=>{let t=void 0===e.secondLabel;return e.firstLabel===e.secondLabel||t?e.firstLabel:"".concat(e.firstLabel," | ").concat(e.secondLabel)},tL=(e,t,a)=>{let i=1===e.length,r=0===e.length,n=e.length===a.length;return i?a.find(t=>t.code===e[0])||"":r||n?t:"".concat(e.length," regions selected")},tI=(e,t)=>{let a=1===e.length,i=0===e.length;return a?t.find(t=>t.code===e[0])||"":i?"All levels":"".concat(e.length," levels selected")},tP=(e,t)=>{let a=0===e.length,i=e.length===t.length;if(a||i)return["all levels"];{let a=[];return t.forEach(t=>{e.includes(t.code)&&a.push(tD(t))}),a}},tA=(e,t)=>{let a={};return t.forEach(e=>a[e.code]=e.code),e.filter(e=>e in a)},tz=(e,t)=>e.length===t.length?[]:e,tB=(e,t)=>{let a={};return t.forEach(e=>a[e.code]=e.code),e.filter(e=>e in a)},tH=e=>e.map(e=>({code:e.code,firstLabel:e.pluralNameEnglish})),tF=e=>e.map(e=>({code:e.code,secondLabel:e.nameEnglish,firstLabel:e.nameMaori})),tR=e=>e.map(e=>({code:e.id,secondLabel:e.nameEn,firstLabel:e.nameMi,isRadio:!0})),tN=e=>e.map(e=>{var t;return{code:e.id.toString(),firstLabel:e.name,isRadio:null!==(t=e.isRadio)&&void 0!==t&&t}}),tW=e=>e.map(e=>{var t;return{code:e.id.toString(),firstLabel:e.name,isRadio:null!==(t=e.isRadio)&&void 0!==t&&t}}),tO=e=>e.filter(e=>!!e.provider.name).map(e=>{let{regions:t}=e.provider,a=!1,i=[];(t||[]).forEach(e=>{if(e.code===s.eTT){a=!0;return}i.push(e.nameEnglish)});let r=i.join(", ");return{hasRemoteLearning:a,region:r,provider:e.provider.name,qualification:e.name,...e.provider.website&&{href:e.provider.website}}}),tq=(e,t)=>Object.keys(t[e]).length,tU=(e,t,a)=>Object.keys(a[e][t]).length,t_=(e,t,a,i)=>{var r,n,s;return tU(e,t,i)===(null!==(s=Object.keys(null!==(n=null===(r=a[e])||void 0===r?void 0:r[t])&&void 0!==n?n:{}).length)&&void 0!==s?s:0)},tQ=(e,t,a)=>{var i,r;return tq(e,a)===(null!==(r=Object.keys(null!==(i=t[e])&&void 0!==i?i:{}).length)&&void 0!==r?r:0)&&Object.keys(t[e]).every(i=>t_(e,i,t,a))},tY=()=>{let{open:e,onOpen:t,onClose:a}=(0,s.qY0)(),i=(0,eX.useRouter)(),{removeProfileAsync:r,removeStatus:l}=(0,tv.K7)(),o=async()=>{await r().catch(()=>{(0,s.AaD)("We couldn’t delete your account.")})&&((0,s.wpA)({status:"success",title:"Account deleted.",withCloseButton:!0}),setTimeout(()=>{i.push((0,s.S7p)(i.query))},2e3),a())},d="loading"===l;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.zxk,{variant:"primaryRed",onClick:t,children:"Delete account"}),(0,n.jsx)(s.Wc$,{onClose:a,open:e,title:"Before you delete your account",closeOnInteractOutside:!d,testId:"delete-account-dialog",withCloseButton:!1,footer:{placement:"right",_type:"buttons",buttons:[{label:"Delete",onClick:o,variant:"danger",disabled:d},{label:"Cancel",onClick:a,variant:"link",disabled:d}]},children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph",children:"Your account and everything saved to your kete will be deleted. You will stop getting emails from us."})})]})},tZ=e=>(0,n.jsx)(s.NL0,{...e,heading:"Are you sure?",testId:"delete-account-modal",primaryButtonText:"Exit Form",primaryButtonStyle:"danger",secondaryButtonText:"Cancel",children:"If you exit this form you'll lose any changes you've made."}),tG=e=>{let{navigateAway:t,formFresh:a,completedOnboarding:i}=e,{open:r,onOpen:l,onClose:o}=(0,s.qY0)(),{removeProfileAsync:d,removeStatus:c}=(0,tv.K7)(),u=async()=>{try{return await d()}catch(e){(0,s.wpA)({title:"We couldn’t delete your account.",status:"error"})}return!1},h=async()=>{await u()&&((0,s.wpA)({status:"warning",title:"Account not created.",withCloseButton:!0}),t())},p=async()=>{i?((0,s.wpA)({status:"warning",title:"Changes cancelled.",withCloseButton:!0}),t()):await h(),o()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.zxk,{css:{bg:"none",mb:{base:29,lg:32}},onClick:async()=>{i&&a?t():l()},variant:"linkDefault",children:"Cancel"}),(0,n.jsx)(tZ,{open:r,onClose:o,onPrimaryClicked:p,primaryButtonDisabled:"loading"===c,secondaryButtonDisabled:"loading"===c})]})};var tJ=a(51567),tV=a(88303);let tX=e=>{let{newEmail:t,handleInputChange:a,formValidation:i,onSubmit:r,parentFormVisible:l,accessToken:o}=e,[d,c]=(0,p.useState)(!1),u=async e=>{o&&c(await (0,m.eg)(o,e))};return(0,p.useEffect)(()=>{a({target:{value:""}}),c(!1)},[]),(0,n.jsx)(eI.x,{css:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,n.jsx)(s.a7O,{css:{alignItems:"center"},children:(0,n.jsxs)(eI.x,{textAlign:"center",children:[(0,n.jsx)(s.Ysw,{testId:t2.changeEmailDialogHeading,headingEn:"Change email",headingMi:"Huri wāhitau īmēra",headingLevel:"h3",textStyleAs:"h4",mb:6}),(0,n.jsxs)(eI.x,{css:{flexGrow:1,width:"100%"},children:[(0,n.jsxs)(e_.Tn,{invalid:d,children:[(0,n.jsx)(s.Qyk,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:"Enter new email"}),(0,n.jsx)(tJ.I,{placeholder:"Email address",value:t,onChange:e=>{a(e),u(e.target.value)},autoFocus:!0}),d&&(0,n.jsx)(e_.FI,{children:"The email you entered is already in use."})]}),(0,n.jsx)(eI.x,{css:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,n.jsx)(s.cNS,{background:"none",children:(0,n.jsx)(tV.z,{"data-testid":t2.sendVerificationButton,variant:"primary",disabled:d||!t,onClick:async()=>{i?(await r(),l(!1)):(0,s.wpA)({status:"error",title:"Invalid email address"})},children:"Send verification code"})})})]})]})})})};var tK=a(80556),t$=a(79101);let t0=e=>{let{newEmail:t,onSubmit:a,onClose:i}=e;return(0,n.jsxs)(tK.a7,{css:{alignItems:"center",textAlign:"center"},children:[(0,n.jsx)(s.Ysw,{testId:t2.checkYourEmailDialogHeading,headingEn:"Check your email",headingMi:"Tirohia ō īmēra",headingLevel:"h3",textStyleAs:"h3",mt:6,mb:8}),(0,n.jsx)(t$.x,{textStyle:"paragraph-regular",mb:4,children:"We’ve sent a verification code to"}),(0,n.jsx)(t$.x,{textStyle:"paragraph-medium",children:t}),(0,n.jsx)(t$.x,{textStyle:"paragraph-regular",mt:8,mb:2,mx:{base:0,sm:20},children:"If you can’t find the email, check your spam folder or resend the code."}),(0,n.jsx)(tK.cN,{background:"none",justifyContent:"center",p:0,children:(0,n.jsx)(tV.z,{...(0,s.Mir)(t2.resendVerificationLink),onClick:async()=>{await a(),i()},variant:"link",color:"brand.primary.600",children:(0,n.jsx)(t$.x,{textStyle:"buttons-and-links-regular-underlined",color:"inherit",children:"Resend code"})})})]})},t1=e=>{let{data:t,accessToken:a}=e,{updateProfile:i}=(0,m.K7)(),{open:r,onOpen:l,onClose:o}=(0,s.qY0)(),[d,c]=(0,p.useState)(""),[u,h]=(0,p.useState)(!0),g=async()=>{let e={...t,recaptchaResponse:"_",unverifiedEmail:d};try{await i(e),(0,s.wpA)({status:"success",title:"Email verification sent"})}catch(e){(0,s.AaD)()}},x=!!(({email:d&&(0,m.Xt)(d)}).email&&t.email&&d.toLowerCase()!==t.email.toLowerCase());return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.zxk,{variant:"secondary",onClick:l,size:"lg",h:14,children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph-medium",css:{color:"inherit"},children:"Change email"})}),(0,n.jsxs)(s.VqE,{open:r,onClose:o,children:[(0,n.jsx)(s.ZRB,{}),(0,n.jsx)(tK.Qd,{children:(0,n.jsxs)(s.cZJ,{"data-testid":t2.changeEmailDialog,css:{maxWidth:"unset",width:{base:"90vw",sm:"minmax(540px, 90vw)",md:"540px"}},children:[(0,n.jsx)(s.fKu,{css:{justifyContent:"flex-end",py:6,px:{base:6,lg:8}},children:(0,n.jsx)(s.zxk,{"data-testid":t2.changeEmailDialogCloseButton,variant:"link",leftIcon:(0,n.jsx)(s.JO$,{icon:"Close",size:"20px"}),onClick:o,css:{color:"brand.global.700"},children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph-small-medium",css:{color:"inherit"},children:"Close"})})}),u?(0,n.jsx)(tX,{newEmail:d,handleInputChange:e=>{c(e.target.value)},formValidation:x,onSubmit:g,parentFormVisible:h,accessToken:a}):(0,n.jsx)(t0,{newEmail:d,onSubmit:g,onClose:o})]})})]})]})},t2={changeEmailDialogHeading:"change-email-dialog-heading",checkYourEmailDialogHeading:"check-your-email-dialog-heading",sendVerificationButton:"send-verification-button",resendVerificationLink:"resend-verification-link",changeEmailDialog:"change-email-modal",changeEmailDialogCloseButton:"change-email-dialog-close-button"};
1var t4=a(30307);let t6=e=>{var t,a,i,r;let{pageData:l,data:o,emailVerificationCode:d,aboutYouPageUrl:c}=e,u="Select one or choose Prefer not to say",h="Select any that apply or choose Prefer not to say",g="Prefer not to say",m="Select any that apply",{accessToken:b}=(0,eV.aC)(),{updateProfile:j,removeProfileAsync:v,refetchProfile:y,subscriberProfile:f}=(0,tv.K7)(),[k,w]=(0,p.useState)(void 0);(0,p.useEffect)(()=>{(async()=>{if(b&&d)try{await (0,tv.HY)(b,d),await y(),w(!0),(0,s.wpA)({status:"success",title:"Account saved.",withCloseButton:!0}),await T.push(c)}catch(e){(0,s.wpA)({status:"error",title:"Email verification failed.",description:"Please try again later."}),w(!1)}})()},[b,d]);let C=(0,s.Ga7)(),T=(0,eX.useRouter)(),{logout:S}=(0,eV.aC)(),[M,E]=(0,p.useState)(null!==(a=o.firstName)&&void 0!==a?a:""),[D,L]=(0,p.useState)(null!==(i=o.lastName)&&void 0!==i?i:""),[I,P]=(0,p.useState)([u+" "]),[A,z]=(0,p.useState)([h+" "]),[B,H]=(0,p.useState)([h+" "]),[F,R]=(0,p.useState)([m]),[N,W]=(0,p.useState)(null),[O,q]=(0,p.useState)(!1),[U,_]=(0,p.useState)(null),[Q,Y]=(0,p.useState)(!1),[Z,G]=(0,p.useState)(!1),[J,V]=(0,p.useState)(!1),[X,K]=(0,p.useState)(!0),[$,ee]=(0,p.useState)(0),[et,ea]=(0,p.useState)(0),[ei,er]=(0,p.useState)(0),[en,es]=(0,p.useState)(!1),[el,eo]=(0,p.useState)(!1),[ed,ec]=(0,p.useState)(void 0),[eu,eh]=(0,p.useState)(!1),ep=(0,s.Sx0)({base:!0,xs:!0,md:!1,lg:!1});(0,p.useEffect)(()=>{ed&&T.push(ed)},[ed]),(0,s.uDT)(e=>{X||ed||(e.preventDefault(),e.returnValue="")}),(0,s.AwT)(()=>!ed&&!!o.completedOnboarding&&!X,()=>{o.completedOnboarding&&eh(!0)}),(0,s.AwT)(()=>!ed&&!1===o.completedOnboarding,e=>{C({onPrimaryClicked:async()=>{try{await v(),(0,s.wpA)({status:"warning",title:"Account not created.",withCloseButton:!0})}catch(e){(0,s.wpA)({title:"We couldn’t delete your account.",status:"error"})}await S(),T.push(e)},heading:"Are you sure?",primaryButtonText:"Exit form",secondaryButtonText:"Cancel",primaryButtonStyle:"danger",content:"If you exit this form your account won’t be created."})}),(0,p.useEffect)(()=>{if(!l||!o)return;if((null==f?void 0:f.firstName)&&!o.firstName&&E(f.firstName),ef?(_(""),q(!0)):(_(o?o.age:""),q
1(!1)),ev)z([g]);else if(ey){let e=[];ey.forEach(t=>{l.ethnicGroups.forEach(a=>{t===parseInt(a.id,10)&&e.push(a.name)})}),e.length>0&&z(e)}if(eT)H([g]);else if(ey){let e=[];eC&&eC.forEach(t=>{l.lifeStages.forEach(a=>{t===parseInt(a.id,10)&&e.push(a.name)})}),e.length>0?H(e):(null==f||f.lifeStages.forEach(t=>{let a=l.lifeStages.find(e=>e.name===t);a&&e.push(a.name)}),e.length>0&&H(e))}eM?P([g]):eS&&P([eS]),ew?W(g):(null==o?void 0:o.gender)&&l.genders.forEach(e=>{parseInt(e.id,10)===ek&&W(e.name)});let e=[],t={};l.interests.forEach(e=>{t[parseInt(e.id,10)]=e.name}),o.interests&&o.interests.length>0?o.interests.forEach(a=>{let i=t[a];i&&e.push(i)}):(null==f?void 0:f.interests)&&f.interests.length>0&&f.interests.forEach(t=>{l.interests.find(e=>e.name===t)&&!o.completedOnboarding?e.push(t):R([m])}),e.length>0&&(R(e),es(!0)),Y(o.agreeTerms),G(o.underageConsent),es(o.newsletterOptIn),eo(o.surveyOptIn)},[o,f]);let{age:eg,firstName:em,lastName:ex,email:eb,completedOnboarding:ej,ethnicGroupPreferNotToSay:ev,ethnicGroup:ey,agePreferNotToSay:ef,gender:ek,genderPreferNotToSay:ew,lifeStage:eC,lifeStagePreferNotToSay:eT,region:eS,regionPreferNotToSay:eM,interests:eE,underageConsent:eD,agreeTerms:eL,surveyOptIn:eI,newsletterOptIn:eP}=o,{handleSubmit:eA,register:ez,formState:{isSubmitting:eB}}=(0,eU.cI)({defaultValues:{firstName:em,lastName:ex,email:eb,age:eg,agePreferNotToSay:ef,ethnicGroupPreferNotToSay:ev,ethnicGroup:ey,gender:ek,genderPreferNotToSay:ew,lifeStage:eC,lifeStagePreferNotToSay:eT,region:eS,regionPreferNotToSay:eM,interests:eE,underageConsent:eD,agreeTerms:eL,surveyOptIn:eI,newsletterOptIn:eP}}
1),eH=!ej&&(null!==(r=null==f?void 0:f.interests)&&void 0!==r?r:[]).length>0,eF=async e=>{let t=!!e.agreeTerms,a=!!e.underageConsent;Y(t),G(a);let i=[],r=[],n=[],d=I[0]===g?[]:I;d[0]===u&&(d=[""]),l.ethnicGroups.forEach(e=>{A.forEach(t=>{e.name===t&&i.push(parseInt(e.id,10))})}),l.lifeStages.forEach(e=>{B.forEach(t=>{e.name===t&&r.push(parseInt(e.id,10))})}),l.interests.forEach(e=>{F.forEach(t=>{e.name===t&&n.push(parseInt(e.id,10))})});let c=null;N!==g&&l.genders.forEach(e=>{e.name===N&&(c=parseInt(e.id,10))});let h=U?parseInt(null==U?void 0:U.toString(),10):void 0,p={firstName:M,lastName:D,email:o.email,age:O?void 0:h,agePreferNotToSay:O,ethnicGroupPreferNotToSay:0===i.length,ethnicGroup:i,gender:c,genderPreferNotToSay:N===g,lifeStage:r,lifeStagePreferNotToSay:0===r.length,region:d[0],regionPreferNotToSay:0===d.length,interests:n,agreeTerms:Q,underageConsent:Z,surveyOptIn:el,newsletterOptIn:en,recaptchaResponse:"_"},m=await j(p).catch(()=>{(0,s.AaD)()});if(null==m?void 0:m.created){if(ej)(0,s.wpA)({status:"success",title:"Account saved.",withCloseButton:!0});else{(0,s.wpA)({status:"success",title:"Your account is created.",withCloseButton:!0}),(0,s.Ba6)("account_created");let e="string"==typeof T.query.action?T.query.action:void 0,t="string"==typeof T.query.data?T.query.data:void 0;e&&s.cs.emit(s.F2M.performPostSignInAction,e,t)}ec((0,s.S7p)(T.query))}};if((0,p.useEffect)(()=>{let e=e=>{X||(e.preventDefault(),e.returnValue="")};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[X]),d&&void 0===k)return(0,n.jsx)(n.Fragment,{});let eR=[{id:"neither",name:g,option:g,sortOrder:3}],eN=l.genders.map((e,t)=>({id:t.toString(),option:e.name,sortOrder:t}));eN.push({id:"neither",name:g,option:g,sortOrder:3});let eW=l.ethnicGroups.map((e,t)=>({id:e.name,name:e.name,sortOrder:t}));eW.push({id:g,name:g,isRadio:!0});let eO=tN(eW),eq=e=>{if(e===g){z([g]);return}let t=A?[...A]:[""];t=(t=t.filter(e=>e!==h)).filter(e=>e!==h+" "),A.includes(e)?t=t.filter(t=>t!==e):t.push(e),A.includes(g)&&(t=t.filter(e=>e!==g)),0===t.length&&t.push(h),z(t)},e_=l.lifeStages.map(e=>({id:e.name,name:e.name}));e_.push({id:g,name:g,isRadio:!0});let eY=tW(e_),eZ=e=>{if(e===g){H([g]);return}let t=B?[...B]:[""];t=(t=t.filter(e=>e!==h)).filter(e=>e!==h+" "),B.includes(e)?t=t.filter(t=>t!==e):t.push(e),B.includes(g)&&(t=t.filter(e=>e!==g)),0===t.length&&t.push(h),H(t)},eG=l.interests.map(e=>({code:e.name,firstLabel:e.name})),eJ=e=>{let t=F?[...F]:[""];t=t.filter(e=>e!==m),F.includes(e)?t=t.filter(t=>t!==e):t.push(e),es(t.length>0),0===t.length&&t.push(m),R(t)},eK=l.regions.map(e=>({id:e.id,nameEn:e.nameEn,nameMi:e.nameMi}));eK.push({id:g,nameEn:g,nameMi:""});let e$=tR(eK),e0=e=>{if(e===g){P([g]);return}let t=I?[...I]:[""];t=I.includes(e)?[]:[e],I.includes(g)&&(t=t.filter(e=>e!==g)),0===t.length&&t.push(h),P(t)},e1=I[0],e2=l.regions.filter(e=>e.id===I[0]);e2[0]&&(e1={code:e2[0].id,firstLabel:e2[0].nameMi,secondLabel:e2[0].nameEn},e2[0].nameMi||(e1=e2[0].nameEn));let e4=null!=U?U:"",e6={firstName:!!(null==M?void 0:M.trim().length)||"",age:U&&(null==U?void 0:null===(t=U.toString())||void 0===t?void 0:t.length)>0||null===U||O,gender:null!==N||null===N||null!==ew||null!==o.genderPreferNotToSay||null!==o.gender,ethnicity:A[0]!==h||A[0]===h+" ",lifeStage:B[0]!==h||B[0]===h+" ",region:I[0]!==u,interest:!en||F[0]!==m&&F[0]!==m+" ",terms:null===Q||Q,consent:null===Z||Z},e3=e6.firstName&&e6.age&&e6.gender&&N&&e6.ethnicity&&A.length<4&&A[0]!==h&&A[0]!==h+" "&&e6.lifeStage&&B.length<4&&B[0]!==h&&B[0]!==h+" "&&e6.region&&I[0]!==u&&I[0]!==u+" "&&e6.interest&&F.length<4&&(!en||en&&F[0]!==m)&&e6.terms&&Q&&e6.consent&&Z&&(U||O),e8="";null===eP?e8="This is temporarily unavailable.":F.length>3?e8="Please choose up to 3 only.":en&&1===F.length&&F[0]===m&&(e8="This field is required.");let e5="Which ethnic group do you belong to?",e7="What describes you best?",e9="Where do you usually live?",te="What are you interested in?";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("form",{onSubmit:eA(eF),children:(0,n.jsxs)(s.rjZ,{children:[(0,n.jsxs)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 8"},css:{mb:{base:8,lg:12}},children:[eH&&(0,n.jsxs)(s.gNt.fC,{css:{p:6,backgroundColor:"brand.gold.100",borderRadius:"4px",border:"1px solid",borderColor:"brand.gold.300",mb:6},children:[(0,n.jsx)(s.Qyk,{textStyle:"heading4-primary",css:{color:"brand.neutrals.800"},children:"We’ve found some of your details"}),(0,n.jsx)(s.gNt.fC,{id:"required-label",textStyle:"paragraph-regular",css:{color:"brand.neutrals.900"},children:"We already have some of your details from when you signed up to our emails, so we've filled those in."})]}),(0,n.jsxs)(s.gCW,{gap:6,children:[(0,n.jsxs)(s.gNt.fC,{id:"contact-preferences",children:[(0,n.jsx)(s.Qyk,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:"Signed in as"}),(0,n.jsxs)(s.kCb,{css:{gap:2,flexDirection:{base:"column",md:"row"},justifyContent:"flex-start",alignItems:"flex-start",width:"100%"},children:[(0,n.jsx)(s.xuv,{css:{flexGrow:1,width:"100%"},children:(0,n.jsxs)(s.kCb,{css:{alignItems:"center",borderRadius:"4px",border:"1px solid",borderColor:"brand.neutrals.200",background:"brand.neutrals.200",py:3,px:4},children:[(0,n.jsx)(s.xuv,{width:"34px",height:"34px",css:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"brand.neutrals.100",borderRadius:"50%",mr:3},children:(0,n.jsx)(s.m$N.svg,{width:"18px",height:"20px",as:"svg",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",css:{mx:"auto"},children:(0,n.jsx)("path",{d:"M13.5402 0L12.1287 3.11211C8.16517 0.0612603 2.67049 1.71126 0.0228342 5.73821L1.66964 6.52236C-1.56416 10.9373 0.186318 17.0635 4.46084 20L5.87239 16.892C9.85982 19.9387 15.3346 18.2887 17.9742 14.27L16.3274 13.5062C19.5652 9.07495 17.8147 2.94874 13.5402 0ZM9.97546 10.5166C11.8974 12.5587 13.2491 14.1924 13.0936 14.3516C12.9381 14.5109 11.3352 13.1264 9.3614 11.1619C9.32551 13.9882 9.14209 16.1283 8.92278 16.1283C8.70347 16.1283 8.52404 13.9922 8.48416 11.1742C6.49045 13.1427 4.89547 14.5273 4.74395 14.3
168C4.59243 14.2087 5.94018 12.5505 7.88206 10.5166C5.1108 10.4799 3.00543 10.292 3.00543 10.0674C3.00543 9.84276 5.09485 9.65898 7.85415 9.61814C5.92822 7.57607 4.57249 5.94241 4.728 5.77905C4.88351 5.61568 6.49842 7.00429 8.48416 8.98918C8.52005 6.15888 8.70347 4.00653 8.92278 4.00653C9.14209 4.00653 9.32152 6.16296 9.3614 9.00143C11.3551 7.0288 12.9501 5.64019 13.1136 5.79539C13.2771 5.95058 11.9173 7.59649 10.0034 9.61814C12.7547 9.65898 14.8401 9.84276 14.8401 10.0674C14.8401 10.292 12.7387 10.4799 9.97546 10.5166Z",fill:"#031E5A"})})}),(0,n.jsx)(s.kCb,{css:{flexDirection:{base:"column",md:"row"}},children:(0,n.jsx)(s.xuv,{textStyle:"paragraph-bold",css:{color:"brand.neutrals.700",fontWeight:"bold",mr:1},children:o.email})})]})}),ej&&(0,n.jsx)(t1,{data:o,accessToken:b})]})]}),(0,n.jsxs)(s.gNt.fC,{id:"full-name",css:{pb:6},children:[(0,n.jsx)(s.gNt.__,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:"Full name"}),(0,n.jsxs)(s.kCb,{css:{gap:2,flexDirection:{base:"column",md:"row"},justifyContent:"space-between",alignItems:"flex-start",py:2,width:"100%"},children:[(0,n.jsx)(s.xuv,{css:{flexGrow:1,width:"100%"},children:(0,n.jsxs)(s.gNt.fC,{id:"first-name",invalid:!e6.firstName,children:[(0,n.jsx)(s.IIB,{value:M,css:{py:3,px:4},"data-testid":"about-you-first-name-field",placeholder:"First name (required)",onChange:e=>{E(e.target.value),e.target.value.trim()!==em?K(!1):K(!0)}}),(0,n.jsx)(s.gNt.y,{children:!e6.firstName&&"This field is required"})]})}),(0,n.jsx)(s.xuv,{css:{flexGrow:1,width:"100%"},children:(0,n.jsx)(s.gNt.fC,{id:"last-name",children:(0,n.jsx)(s.IIB,{value:D,"data-testid":"about-you-last-name-field",placeholder:"Last name (Optional)",onChange:e=>{L(e.target.value),e.target.value.trim()!==ex?K(!1):K(!0)},css:{py:3,px:4}})})})]})]}),(0,n.jsx)(s.gNt.fC,{id:"required-label",children:"Please answer every question."}),(0,n.jsxs)(s.gNt.fC,{id:"age",children:[(0,n.jsx)(s.Qyk,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:"How old are you?"}),(0,n.jsxs)(x.r,{gridTemplateColumns:{base:"auto",md:"1fr max-content"},css:{gap:2,width:"100%"},children:[(0,n.jsx)(s.P4e,{children:(0,n.jsxs)(s.gNt.fC,{id:"age",invalid:!e6.age,required:!1,children:[(0,n.jsx)(s.IIB,{value:isNaN(parseInt(e4.toString(),10))?"":e4,"data-testid":"about-you-age-field",placeholder:"Age in years",onChange:e=>{let t=e.target.value,a=!0;0>=parseInt(t,10)&&(a=!1),isNaN(Number(t))&&(a=!1),t.length>2&&(a=!1),a?(_(parseInt(t,10)),V(!1),K(!1)):V(!0),q(!1)},onBlur:()=>{null===U&&(_(""),V(!1))}}),(0,n.jsx)(s.gNt.y,{children:J?"Enter a number.":"This field is required."})]})}),(0,n.jsx)(s.P4e,{id:"agePreferNotToSay",css:{width:"fit-content"},children:(0,n.jsx)(s.FXm.fC,{name:"agePreferNotToSay",onChange:()=>{K(!1),q(!0),_("")},value:O?g:"",...(0,s.Mir)("age-prefer-not-to-say"),children:(0,n.jsx)(s.kCb,{as:"ul",css:{gap:2,li:{display:"inline-flex",width:"initial",minWidth:"193px"}},children:eR.filter(e=>!!e.option).map(e=>{let{id:t,option:a}=e;return(0,n.jsx)(s.Xa8,{as:"li",css:{display:"inline-flex"},children:(0,n.jsx)(s.Y8K,{value:a,"data-testid":"gender-radiogroup-option-".concat(a),children:a})},t)})})})})]})]}),(0,n.jsxs)(s.gNt.fC,{id:"gender",invalid:!e6.gender,onFocus:()=>{ee($+1),ea(et+1),er(ei+1)},children:[(0,n.jsx)(s.Qyk,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:"What is your gender?"}),(0,n.jsx)(s.FXm.fC,{name:"genderOption",onValueChange:e=>{let{value:t}=e;K(!1),W(t)},value:null==N?void 0:N.toString(),"data-testid":"account-workflow-gender-select-option-radiogroup",width:"100%",children:(0,n.jsx)(s.xuv,{as:"ul",role:"radiogroup","aria-labelledby":"gender-label",css:{gap:2,alignItems:"stretch","& li":{width:{base:"auto",md:"100%"},display:"inline-flex",mr:{base:2,md:0},mb:{base:2,md:0}},display:{base:"block",md:"flex"}},children:eN.filter(e=>!!e.option).map(e=>{let{id:t,option:a}=e;return(0,n.jsx)(s.Xa8,{as:"li",id:"gender",children:(0,n.jsx)(s.Y8K,{value:a,"data-testid":"gender-select-option-radiogroup-option-".concat(a),textWrap:"nowrap",width:"100%",children:a})},t)})})}),(0,n.jsx)(s.gNt.y,{children:"This field is required"})]}),(0,n.jsxs)(eQ.aD,{id:"ethnicity","aria-labelledby":"ethnicity-label",invalid:!e6.ethnicity||A.length>3,onFocus:()=>{er(ei+1),ea(et+1)},children:[(0,n.jsx)(eQ.Qv,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:e5}),(0,n.jsx)(s.xuv,{width:"100%",children:(0,n.jsx)(s.YcF,{isBilingual:!1,"data-testid":"multi-dropdown-ethnicities",id:"ethnicity",modalHeaderText:e5,selectedOption:A,options:eO,selected:A,theme:"work",onChange:e=>{K(!1),eq(e)},ctaLabel:"Select",labelSize:"regular",invalid:!e6.ethnicity||A.length>3,onBlur:()=>{A[0]===h+" "&&z([h])}},"ethnic-".concat($))}),(0,n.jsx)(eQ.h9,{children:A.length>3?"Please choose up to 3 only.":"This field is required"})]}),(0,n.jsxs)(eQ.aD,{id:"life-stage","aria-labelledby":"life-stage-label",invalid:!e6.lifeStage||B.length>3,onFocus:()=>{er(ei+1),ee($+1)},children:[(0,n.jsx)(s.QvT,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:e7}),(0,n.jsx)(s.xuv,{width:"100%",children:(0,n.jsx)(s.YcF,{isBilingual:!1,"data-testid":"multi-dropdown-life-stages",id:"life-stage",modalHeaderText:e7,selectedOption:B,options:eY,selected:B,theme:"work",onChange:e=>{K(!1),eZ(e)},ctaLabel:"Select",labelSize:"regular",invalid:!e6.lifeStage||B.length>3,onBlur:()=>{B[0]===h+" "&&H([h])}},"life-stage-".concat(et))}),(0,n.jsx)(eQ.h9,{children:B.length>3?"Please choose up to 3 only.":"This field is required"})]}),(0,n.jsxs)(s.gNt.fC,{id:"location","aria-labelledby":"location-label",invalid:!e6.region,onFocus:()=>{ee($+1),ea(et+1)},children:[(0,n.jsx)(s.Qyk,{textStyle:"paragraph-bold",css:{color:"brand.global.800"},children:e9}),(0,n.jsx)(s.xuv,{width:"100%",children:(0,n.jsx)(s.YcF,{isBilingual:!0,"data-testid":"multi-dropdown-regions",id:"region",modalHeaderText:e9,selectedOption:e1,options:e$,selected:I,theme:"work",onChange:e=>{K(!1),e0(e)},ctaLabel:"Select",labelSize:"regular",invalid:!e6.region},"region-".concat(ei))}),(0,n.jsx)(s.gNt.y,{children:"This field is required"})]}),(0,n.jsxs)(s.xuv,{css:{p:6,backgroundColor:"brand.global.100",borderRadius:"sm",border:"1px solid",borderColor:"brand.global.300",my:6,width:"full"},children:[(0,n.jsxs)(s.gNt.fC,{children:[(0,n.jsx)(s.Qyk,{textStyle:"paragraph-bold",css:{color:"brand.global.900",mb:2,mr:0},children:(0,n.jsxs)(s.xuv,{children:["Want to stay connected with Tahatū?"," ",(0,n.jsx)(s.xvT,{css:{fontWeight:400,color:"brand.global.900"},as:"span",children:"(optional)"})]})}),(0,n.jsx)(s.XZJ,{invalid:!1,id:"newsletterOptIn",...ez("newsletterOptIn"),"data-testid":"about-you-interests-emails-checkbox",checked:!!en,disabled:null===eP,onCheckedChange:e=>{let{checked:t}=e;K(!1),es(!!t),t||R([m])},children:(0,n.jsx)(s.xvT,{textStyle:ep?"paragraph-regular":"paragraph-small",css:{color:"brand.neutrals.900"},children:l.newsletterOptInText})}),null===eP&&(0,n.jsx)(s.gNt.y,{children:"This is temporarily unavailable."})]}),(0,n.jsxs)(eQ.aD,{invalid:!!e8,children:[(0,n.jsx)(eQ.Qv,{textStyle:"paragraph-bold",css:{color:"brand.global.900",mr:0,pt:3},children:te}),(0,n.jsx)(s.xuv,{width:"100%",children:(0,n.jsx)(s.YcF,{isBilingual:!1,"data-testid":"multi-dropdown-interests",id:"interests",modalHeaderText:te,selectedOption:F,options:eG,selected:F,theme:null,onChange:e=>{K(!1),eJ(e)},ctaLabel:"Select",labelSize:"regular",invalid:!e6.interest||F.length>3,onBlur:()=>{F[0]===m+" "&&R([m])},disabled:null===eP})}),(0,n.jsx)(eQ.h9,{children:e8})]}),(0,n.jsxs)(eQ.aD,{mt:6,children:[(0,n.jsxs)(eQ.Qv,{textStyle:"paragraph-bold",children:["Help us improve Tahatū"," ",(0,n.jsx)(s.xvT,{css:{fontWeight:400,color:"brand.global.900"},as:"span",children:"(optional)"})]}),(0,n.jsx)(s.XZJ,{id:"surveyOptIn",...ez("surveyOptIn"),checked:null!=el&&el,"data-testid":"about-you-get-survey-emails-checkbox",onCheckedChange:e=>{let{checked:t}=e;K(!1),eo(!!t)},children:(0,n.jsx)(s.xvT,{textStyle:ep?"paragraph-regular":"paragraph-small",css:{color:"brand.neutrals.900"},children:l.surveyOptInText})})]})]}),!o.completedOnboarding&&(0,n.jsxs)(eQ.aD,{invalid:!e6.age||!e6.terms,children:[(0,n.jsx)(eQ.Qv,{textStyle:"paragraph-bold",css:{color:"brand.global.800",mb:3,mr:0},children:"Confirm and agree"}),(0,n.jsx)(eQ.pD,{children:(0,n.jsx)(t4.cO,{children:(0,n.jsxs)(s.Kqy,{gap:3,direction:"column",children:[(0,n.jsx)(s.XZJ,{id:"underageConsent",...ez("underageConsent"),"data-testid":"about-you-underage-consent-checkbox",onCheckedChange:e=>{let{checked:t}=e;G(!!t)},children:(0,n.jsx)(s.xvT,{textStyle:ep?"paragraph-regular":"paragraph-small",css:{color:"brand.neutrals.900"},children:"I confirm that I am at least 13 years old or have permission from my guardian to use this site"})}),(0,n.jsx)(s.XZJ,{id:"agreeTerms",...ez("agreeTerms"),"data-testid":"about-you-agree-terms-checkbox",onCheckedChange:e=>{let{checked:t}=e;Y(!!t)},children:(0,n.jsxs)(s.xvT,{textStyle:ep?"paragraph-regular":"paragraph-small",css:{color:"brand.neutrals.900"},children:["I agree to Tahatū's"," ",(0,n.jsx)(s.rUS,{href:"/terms-and-conditions",target:"_blank",isExternal:!0,iconSize:"sm",variant:"underlineStrong",children:"terms and conditions"})]})})]})})}),(0,n.jsx)(eQ.h9,{children:"This field is required"})]})]})]}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 6",xl:"2 / span 8"},children:(0,n.jsxs)(s.kCb,{css:{flexDirection:"row"},children:[(0,n.jsx)(s.zxk,{formNoValidate:!0,type:"submit",disabled:eB||!e3||X,"data-testid":"about-you-submit",css:{mb:{base:29,lg:32},mr:4},children:ej?"Save":"Create account"}),(0,n.jsx)(s.xuv,{css:{mr:"auto"},children:(0,n.jsx)(tG,{navigateAway:()=>ec((0,s.S7p)(T.query)),formFresh:X,completedOnboarding:ej})}),(0,n.jsx)(s.xuv,{css:{ml:"auto"}
1,children:ej&&(0,n.jsx)(tY,{})})]})})]})}),(0,n.jsx)(tZ,{open:eu,onClose:()=>eh(!1),onPrimaryClicked:()=>{ec((0,s.S7p)(T.query))}})]})},t3=e=>{let{children:t,loadingPlaceholder:a="empty",accessDeniedPlaceholder:i="standard-access-denied-template"}=e,{isUserReady:r}=(0,eV.aC)();return!0===r?(0,n.jsx)(n.Fragment,{children:t}):!1===r?"standard-access-denied-template"===i?(0,n.jsx)(t5,{}):"empty"===i?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(n.Fragment,{children:i}):"spinner"===a?(0,n.jsx)(t8,{}):"empty"===a?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(n.Fragment,{children:a})},t8=e=>{let{css:t}=e;return(0,n.jsx)(s.kCb,{css:{justifyContent:"center",...t},children:(0,n.jsx)(s.$jN,{})})},t5=e=>{let{css:t}=e;return(0,n.jsx)(s.kCb,{css:{justifyContent:"center",my:34,...t},children:(0,n.jsx)(s.xuv,{css:{textAlign:"center"},children:(0,n.jsx)(s.xvT,{children:"Please Sign in"})})})};var t7=a(20439),t9=a(91912);let ae=e=>{var t,a,i,r,o;let{footerData:d,navigationData:c,pageData:u,alertData:h}=e,{accessToken:g,isUserAuthenticated:x}=(0,eV.aC)(),{data:b,isSuccess:j}=(0,m.K7)(),v=(0,eX.useRouter)(),y=null!==(i=new URLSearchParams((0,t7.Z)().search).get("verify_email"))&&void 0!==i?i:void 0,f=(0,m.Bx)(),k=null!==(r=null==f?void 0:f["user_profile.AboutYouPage"])&&void 0!==r?r:"/";(0,eV._s)(()=>v.push((0,s.S7p)(v.query))),(0,p.useEffect)(()=>{g&&j&&!b&&v.push((0,s.S7p)(v.query))},[]);let w=null!==(o=null==b?void 0:b.completedOnboarding)&&void 0!==o&&o,C=x&&!w,T={title:(null===(t=u.meta)||void 0===t?void 0:t.seoTitle)||u.title,description:(null===(a=u.meta)||void 0===a?void 0:a.searchDescription)||""};return(0,n.jsx)(l.A,{title:C?"Check your details":u.title,footer:(0,n.jsx)(s.$_C,{data:d}),alertData:h,navigationData:c,nav:(0,n.jsx)(s.h4i,{breadcrumbs:[{url:"/",titleEn:"Home"},{url:k,titleEn:"About you"}]}),meta:T,children:(0,n.jsx)(at,{headingEn:C?"Create your account":u.title,headingMi:C?"Hangaia tō pūkete":u.maoriTitle,children:(0,n.jsxs)(t3,{accessDeniedPlaceholder:(0,n.jsx)(aa,{}),children:[b&&(0,n.jsx)(s.xuv,{children:(0,n.jsx)(t6,{pageData:u,data:b,emailVerificationCode:y,aboutYouPageUrl:k})}),(0,n.jsx)(s.rjZ,{children:(0,n.jsxs)(s.P4e,{gridColumn:s.t4e.panel,css:{pt:{base:10,md:16},pb:{base:12,md:16},breakInside:"avoid"},children:[(0,n.jsx)(s.X6q,{as:"h2",textStyle:"heading5-primary",css:{mb:4},color:"brand.primary.800",children:"How will Tahatū use your information?"}),(0,n.jsx)(s._cU,{content:u.howWeUse,opts:{forceLinksToOpenInNewTab:!0}})]})})]})})})},at=e=>{let{children:t,headingEn:a,headingMi:i}=e;return(0,n.jsxs)(s.xuv,{css:{backgroundImage:"linear-gradient(180deg, #E5EFFB 0%, rgba(229, 239, 251, 0.00) 100%);",backgroundSize:"100% 388px",backgroundRepeat:"no-repeat",height:"100%"},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 12"},css:{mt:{base:21,md:33,lg:45}},children:(0,n.jsxs)(s.X6q,{as:"h1","data-testid":"about-you-heading",mb:{base:8,md:24},children:[(0,n.jsx)(s.xvT,{as:"span",textStyle:"heading1-geograph",css:{display:"block",color:"brand.global.800"},children:a}),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.TXu,{children:", "}),(0,n.jsx)(s.xvT,{as:"span",textStyle:"heading1-newzald",lang:"mi",css:{display:"block",color:"brand.global.600"},children:i})]})]})})}),t]})},aa=()=>(0,n.jsx)(s.rjZ,{mt:8,pb:36,children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.reader,children:(0,n.jsx)(t9.U,{headingEn:"Sign in to edit your account",content:"You'll need to sign in to make changes to your account. Or you can create a new account."})})});var ai=a(25341);let ar=e=>{var t,a;let{pageData:i,navigationData:r,footerData:o,studyAreasData:d,alertData:c}=e,u=ty(d.broadStudyClassifications),h={title:(null===(t=i.meta)||void 0===t?void 0:t.seoTitle)||i.title,description:null===(a=i.meta)||void 0===a?void 0:a.searchDescription};return(0,n.jsx)(l.A,{title:i.title,footer:(0,n.jsx)(s.$_C,{data:o,gap:{backgroundColor:"brand.primary.700",theme:i.meta.sectionTheme},topSection:i.footerCallToAction}),alertData:c,navigationData:r,nav:(0,n.jsx)(s.h4i,{lightForeground:!0,breadcrumbs:i.breadcrumbs}),meta:h,children:(0,n.jsxs)(s.f6W,{theme:i.meta.sectionTheme,children:[(0,n.jsxs)(s.xuv,{css:{pb:{base:"48px",md:"96px"}},bgColor:"brand.primary.600",children:[(0,n.jsx)(s.CDE,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:i.meta.pattern,...i}),(0,n.jsx)(g.oL,{topicId:"study",placeholder:"Search study and training"})]}),(0,n.jsxs)(s.xuv,{css:{bg:"brand.primary.200",pb:{base:8,md:16,lg:14}},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:{base:"inline-block",lg:"flex"},columnGap:"24px",py:{base:8,md:16,lg:14}},children:(0,n.jsx)(s.ALS,{"data-testid":"browse-by-category-heading",headingLevel:"h2",headingMi:"Tirotiro mā te kāwai",headingEn:"Browse by category",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"})})}),u&&(0,n.jsx)(s.zve,{"data-testid":"accordion-grid-block",accordion:u})]}),i.relatedContent&&(0,n.jsx)(ai.J,{guides:i.relatedContent})]})})};var an=a(58661);let as=e=>{let{title:t,description:a}=e;return{title:t,description:a}},al=e=>{var t;let{pageData:a,navigationData:i,footerData:r,studyAreaData:o,alertData:u}=e,h=(0,an.S)({base:!0,xs:!0,sm:!0,md:!1}),g=(0,an.S)({base:!1,xs:!1,sm:!1,md:!0,lg:!1}),m=o.images,b=m.length>0,j=1===m.length,v=2===m.length,y=o.skillsList,f=(0,p.useMemo)(()=>ao(o.detailClassifications),[o.detailClassifications]),k=e=>h?e.imgMobile:g?e.imgTablet:e.imgDesktop,C="Find out about studying ".concat(a.title," and what study or training is available."),T=as({title:a.title,de
1scription:C});return(0,n.jsx)(l.A,{title:a.title,footer:(0,n.jsx)(s.$_C,{data:r,gap:{backgroundColor:"brand.primary.700",theme:a.meta.sectionTheme},topSection:a.footerCallToAction}),alertData:u,navigationData:i,nav:(0,n.jsx)(d.m,{breadcrumbs:a.breadcrumbs,sectionTheme:a.meta.sectionTheme,keteId:o.keteId}),meta:T,children:(0,n.jsxs)(s.f6W,{theme:"study",children:[(0,n.jsxs)(s.xuv,{css:{pb:b?10:{base:"48px",md:"96px"},position:"relative",overflowY:"hidden"},bgColor:"brand.primary.200",children:[(0,n.jsx)(s.K0P,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.600",colorEnglishTitle:"brand.neutrals.900",colorDescription:"brand.neutrals.900",pattern:a.meta.pattern,title:o.nameEnglish,maoriTitle:o.nameMaori,introduction:o.description}),b&&(0,n.jsx)(s.xuv,{css:{mt:{base:12,lg:16}},children:!h||j?(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:j?"2 / span 10":"1 / span 12",xl:j?"3 / span 8":"2 / span 10"},css:{"@media print":{gridColumn:"1 / span 12"}},children:(0,n.jsx)(x.r,{gridTemplateColumns:j?"lfr":v?"repeat(auto-fill, minmax(calc((100% - 2em) / 2), 1fr))":"repeat(auto-fill, minmax(calc((100% - 2em) / 3), 1fr))",css:{gap:4,"@media print":{display:"flex",flexDirection:"column",alignItems:"center"}},children:m.map((e,t)=>(0,n.jsx)(c.E,{"data-testid":"hero-image",objectFit:"cover",w:"100%",h:"100%",alt:e.imageAltText,src:k(e),css:{borderRadius:"4px","@media print":{width:"400px",height:"250px"}}},"".concat(t,"-").concat(e.imageAltText)))})})}
1):(0,n.jsx)(s.lr9,{isLightBackground:!0,items:m,ariaLabelledby:"Images associated with ".concat(o.titleEnglish),itemsToDisplay:1,renderedItem:e=>(0,n.jsx)(c.E,{src:e.imgMobile,objectFit:"cover",w:"100%",alt:e.imageAltText,css:{borderRadius:"4px"}})})})]}),y&&y.length>0&&(0,n.jsx)(s.xuv,{css:{pb:{base:0,lg:6}},bgImage:"linear-gradient({colors.brand.primary.200} 0%, {colors.brand.primary.200} 40%, {colors.brand.primary.300} 40%, {colors.brand.primary.300} 100%)",children:(0,n.jsx)(s.Uif,{headingEn:"You might learn about",bulletList:y})}),(0,n.jsx)(s.xuv,{bgColor:"brand.primary.300",children:(0,n.jsxs)(s.rjZ,{children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:{base:"inline-block",lg:"flex"},columnGap:"24px",pt:{base:8,md:16},pb:8,"@media print":{pageBreakInside:"avoid"}},children:(0,n.jsx)(s.ALS,{"data-testid":"your-focus-heading",headingLevel:"h2",headingMi:"Tō tino arotahi",headingEn:"Your focus could be",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:"flex",columnGap:"24px",mb:{base:12,md:16}},children:(0,n.jsx)(s.I2X,{multiple:!0,detailClassifications:f,keteFactory:w.E})})]})}),(null===(t=o.relatedAreas)||void 0===t?void 0:t.length)>0&&(0,n.jsx)(s.Bbb,{"data-testid":"carousel-block",id:"similar-fields-of-study",headingLevel:2,headingMi:"Ngā wahi akoranga ōrite i te ".concat(o.parent.nameMaori),headingEn:"Similar study areas in ".concat(o.parent.nameEnglish),items:o.relatedAreas,renderedItem:e=>(0,n.jsx)(s.Zbd,{tag:"Study area",headingEn:e.nameEnglish,headingMi:e.nameMaori,cardContent:(0,n.jsx)(s.b3q,{description:e.description}),...e,headingLevel:3,BaseMinHeightSize:"200px",MdMinHeightSize:"360px",LgMinHeightSize:"360px",keteFactory:e.keteId?{keteFactory:w.E,keteId:e.keteId}:void 0})})]})})},ao=e=>{let t=e.map(e=>({...e,clusters:e.clusters.map(e=>({...e}))}));return t.sort((e,t)=>e.nameEnglish.toUpperCase().startsWith("OTHER")?1:e.nameEnglish.localeCompare(t.nameEnglish)),t};var ad=a(25524);let ac=e=>{let{introduction:t}=e;return(0,n.jsx)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.xvT,{"data-testid":"diagram-description",as:"div",css:{mb:{base:8,lg:12},maxWidth:"740px"},dangerouslySetInnerHTML:{__html:t}})})},au=e=>{let{svgBottom:t,svgTop:a,svgArrowDown:i}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"91%",left:7,display:{base:"block",md:"none"},"@media print":{display:"none"}},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"7",right:"34px"},children:a}),(0,n.jsx)(s.xuv,{css:{position:"absolute",top:"72px",right:"34px"},children:t}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"5",right:"6"},children:i})]})})},ah=e=>{let{diagramHeading:t,bulletList:a,bgColor:i,diagramHeadingColor:r,text:l,svg:o,svgRight:d,svgArrow:c,svgLeft:u,svgMiddle:h,leftPosition:p,svgBottom:g,svgArrowDown:m,svgTop:x,baseMarginRight:b}=e;return(0,n.jsxs)(s.P4e,{css:{p:6,position:"relative","@media print":{border:"1px solid",borderColor:i}}
1,backgroundColor:i,children:[t?(0,n.jsx)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:{base:4,md:6},minH:{base:0,md:16},"@media print":{color:"brand.primary.700",mb:6,minH:16}},color:r,children:t}):(0,n.jsx)(s.xuv,{css:{mb:{base:4,md:6},minH:{base:6,md:16},"@media print":{mb:6,minH:16}}}),a&&(0,n.jsx)(s.JHP,{bulletList:a}),l&&(0,n.jsx)(s.xvT,{textStyle:"paragraph-small",color:"brand.primary.800",css:{mr:{base:b,md:6},"@media print":{mr:0,color:"brand.neutrals.900"}},children:l}),(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:{base:"calc(100% - 130px)"},width:"50%",top:"auto",display:{base:"none",md:"block"},"@media print":{display:"block",color:"brand.primary.700"}},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px",left:0},children:u}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px","@media print":{left:8}},left:p,children:o})]}),(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block",color:"brand.primary.700"}},children:[d&&(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px"},children:d}),c&&(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"47px","@media print":{display:"block"}},children:c})]}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"47px",right:"48%",display:{base:"none",md:"block"},"@media print":{display:"block"}},children:h}),(0,n.jsx)(au,{svgTop:x,svgBottom:g,svgArrowDown:m})]})},ap=e=>{var t,a,i,r;let{description:l,entryInformation:o,diagramData:d}=e,c=(0,s.KOh)("brand.primary.A1"),u=(0,s.KOh)("brand.primary.700");if(d.length<4)return null;let[h,p,g,m]=d;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ac,{introduction:l}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",xl:"2/ span 10"},children:(0,n.jsxs)(x.r,{"data-testid":"diagram",css:{mb:{base:12,lg:16},minH:"400px",gridTemplateColumns:{base:"auto",md:"repeat(4, 1fr)"},color:c,"@media print":{gridTemplateColumns:"repeat(4, 1fr)"}},children:[(0,n.jsx)(ah,{svg:(0,n.jsx)(ag,{}),svgRight:(0,n.jsx)(am,{}),svgArrow:(0,n.jsx)(aj,{}),svgBottom:(0,n.jsx)(ax,{}),svgArrowDown:(0,n.jsx)(av,{}),leftPosition:"33px",diagramHeadingColor:"brand.primary.A1",bgColor:null!==(t=h.backgroundColor)&&void 0!==t?t:"brand.primary.600",diagramHeading:h.heading,bulletList:h.bulletList}),(0,n.jsx)(ah,{svg:(0,n.jsx)(ag,{}),svgRight:(0,n.jsx)(am,{}),svgArrow:(0,n.jsx)(aj,{}),svgLeft:(0,n.jsx)(am,{}),svgBottom:(0,n.jsx)(ax,{}),svgArrowDown:(0,n.jsx)(av,{}),svgTop:(0,n.jsx)(ab,{}),leftPosition:"33px",diagramHeadingColor:"brand.primary.A1",bgColor:null!==(a=p.backgroundColor)&&void 0!==a?a:"brand.primary.700",diagramHeading:p.heading,bulletList:p.bulletList}),(0,n.jsx)(ah,{svg:(0,n.jsx)(ag,{}),svgRight:(0,n.jsx)(am,{}),svgArrow:(0,n.jsx)(aj,{}),svgLeft:(0,n.jsx)(am,{}),svgBottom:(0,n.jsx)(ax,{}),svgArrowDown:(0,n.jsx)(av,{}),svgTop:(0,n.jsx)(ab,{}),leftPosition:"33px",diagramHeadingColor:"brand.primary.A1",bgColor:null!==(i=g.backgroundColor)&&void 0!==i?i:"brand.primary.800",diagramHeading:g.heading,bulletList:g.bulletList}),(0,n.jsx)(ah,{svgLeft:(0,n.jsx)(am,{color:u}),svgMiddle:(0,n.jsx)(aj,{color:u}),svgTop:(0,n.jsx)(ab,{color:u}),svgArrowDown:(0,n.jsx)(av,{color:u}),leftPosition:"0",text:"Check the education provider’s website for specific entry requirements and apply",diagramHeadingColor:"brand.primary.800",bgColor:null!==(r=m.backgroundColor)&&void 0!==r?r:"brand.primary.A3",diagramHeading:m.heading,baseMarginRight:18})]})}),o&&o.length>0&&(0,n.jsx)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.Baz,{tabs:o,mobileJumpLinkHeading:"Find out more"})})]})},ag=e=>(0,n.jsx)(ad.m.svg,{viewBox:"0 0 118 391",width:"118px",height:"391px",fill:"none",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 0V381C2 385.418 5.58172 389 10 389H118",stroke:"currentColor",strokeWidth:"4"})}),am=e=>(0,n.jsx)(ad.m.svg,{viewBox:"0 0 248 202",width:"248px",height:"202px",fill:"none",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:"currentColor",strokeWidth:"4"})}),ax=e=>(0,n.jsx)(ad.m.svg,{viewBox:"0 0 677 187",width:"677px",height:"187px",fill:"none",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M675 187L675 10.0001C675 5.58178 671.418 2.00006 667 2.00006L-1.60133e-05 2",stroke:"currentColor",strokeWidth:"4"})}),ab=e=>(0,n.jsx)(ad.m.svg,{viewBox:"0 0 4 298",width:"4px",height:"298px",fill:"none",...e,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 298L2.00001 -9.46687e-06",stroke:"currentColor",strokeWidth:"4"})}),aj=e=>{let{color:t="currentColor"}=e;return(0,n.jsx)(s.JO$,{icon:"ChevronRight",w:"15px",h:"24px",color:t})},av=e=>{let{color:t="currentColor"}=e;return(0,n.jsx)(s.JO$,{icon:"ChevronDown",w:"24px",h:"15px",color:t})},ay=e=>{let{summary:t,cards:a,supportTiles:i}=e,r=null==a?void 0:a.every(e=>e.illustration),l=null==a?void 0:a.every(e=>e.tag);return(0,n.jsxs)(s.P4e,{"data-testid":"fees-section",gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:[t&&(0,n.jsx)(s._cU,{content:t,pb:12}),a&&(0,n.jsx)(x.r,{"data-testid":"fees-guides",as:"ul",css:{gridAutoFlow:{base:"row",md:"column"},gridAutoColumns:"minmax(0, 1fr)",gap:{base:4,lg:6},pt:{base:2,md:0},"@media print":{gridAutoFlow:"column"}},children:a.map((e,t)=>(0,n.jsx)(s.xuv,{as:"li",css:{listStyle:"none",height:"100%"},children:(0,n.jsx)(s.s8Q,{...e,headingLevel:3,groupItem:a.length>
11,illustration:r?e.illustration:null,tag:l?e.tag:null})},t))}),(0,n.jsx)(s.izJ,{mt:12,mb:8}),(0,n.jsx)(s.X6q,{"data-testid":"gov-support-heading",textStyle:"heading5-primary",as:"h3",css:{mb:6},children:"Get support from the Government"}),(0,n.jsx)(s.xvT,{"data-testid":"gov-support-text",css:{mb:8,maxWidth:"740px"},children:"Discover what student loans, allowances and government funding you can get to help you pay for study or training."}),i&&(0,n.jsx)(s.gCW,{as:"ul",gap:4,"data-testid":"fees-support-tiles",children:i.map((e,t)=>(0,n.jsx)(s.xuv,{as:"li",css:{listStyle:"none",width:"100%"},children:(0,n.jsx)(s.Z3b,{...e})},t))})]})},af=e=>{let{whatsThisStudyLike:t}=e,a=null==t?void 0:t.every(e=>e.illustration);return(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsx)(x.r,{as:"ul","data-testid":"whatitslike-guides",css:{gridAutoFlow:{base:"row",md:"column"},gridAutoColumns:"minmax(0, 1fr)",gap:{base:4,lg:6},pt:{base:2,md:0},"@media print":{gridTemplateColumns:"repeat(2, 1fr)"}},children:t.map((e,i)=>(0,n.jsx)(s.xuv,{as:"li",css:{listStyle:"none",height:"100%"},children:(0,n.jsx)(s.s8Q,{...e,headingLevel:3,groupItem:t.length>1,illustration:a?e.illustration:null})},i))})})},ak=e=>{let{whatsThisStudyLike:t,description:a,qualificationLevel:i,credits:r,isWorkBasedTraining:l=!1}=e;return(0,n.jsxs)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:[(0,n.jsx)(s.xvT,{"data-testid":"whats-this-study-or-training-like-introduction",children:a}),(0,n.jsx)(s.izJ,{mt:{base:6,md:12},mb:{base:6,md:8,lg:12}}),(0,n.jsxs)(s.Kqy,{direction:{base:"column",md:"row"},gap:8,separator:(0,n.jsx)(s.ncD,{borderColor:"brand.primary.300",css:{"@media print":{borderWidth:"1px",mx:4}}}),css:{"@media print":{flexDirection:"row",justifyContent:"center"}},children:[(0,n.jsxs)(s.kCb,{css:{flex:1,flexDir:"column"},"data-testid":"study-level-section",children:[(0,n.jsx)(s.X6q,{textStyle:"heading5-primary",as:"h3",css:{color:"brand.primary.900",mb:{base:6,md:8}},children:"Study level"}),(0,n.jsx)(s.E5y,{rangeMin:1,rangeMax:10,min:i.minimumLevel,max:i.maximumLevel}),(0,n.jsx)(s.xvT,{css:{my:6},"data-testid":"study-level-section-description",children:"".concat(i.pluralNameEnglish," are ").concat((0,s._4$)(i.minimumLevel,i.maximumLevel),". You can study Levels 1–3 for NCEA at secondary school. A higher level means the study or training is more advanced.")}),(0,n.jsx)(s.rUS,{"data-testid":"study-level-section-link",href:"/study-and-training/getting-qualifications/about-qualification-levels",textStyle:"paragraph-small-medium",color:"brand.global.700",css:{...s.WfI.basic,_hover:{color:"brand.global.800"},mb:{base:6,md:8}},children:"About qualification levels"})]}),(0,n.jsx)(s.kCb,{css:{flex:1,flexDir:"column"},children:l?(0,n.jsx)(aC,{code:i.code}):(0,n.jsx)(aw,{credits:r,qualName:i.name})})]}),(0,n.jsx)(s.izJ,{mt:{base:6,md:12},mb:{base:6,md:8,lg:12}}),(0,n.jsx)(af,{whatsThisStudyLike:t})]})},aw=e=>{let{credits:t,qualName:a}=e;return(0,n.jsxs)(s.xuv,{"data-testid":"credits-panel",children:[(0,n.jsx)(s.X6q,{"data-testid":"credits-heading",textStyle:"heading5-primary",as:"h3",css:{color:"brand.primary.900",mb:{base:6,md:8}},children:"Credits"}),(0,n.jsx)(s.TXu,{children:t?(0,s.AiN)(t,"screen-reader-compatible"):"No data"}),(0,n.jsx)(s.xvT,{"data-testid":"credits-text",textStyle:"heading1-geograph",css:{color:"brand.primary.600",mb:6},"aria-hidden":!0,children:t?(0,s.AiN)(t):"No data"}),(0,n.jsx)(s.xvT,{"data-testid":"credits-description",css:{mb:{base:6,md:8}},children:"You need this many credits to earn ".concat((0,s.stP)(a)).concat(null==a?void 0:a.toLowerCase(),". One credit equals about 10 hours of mahi like learning, studying and doing assessments. A year’s full-time tertiary study is usually worth 120 credits.")})]})},aC=e=>{let{code:t}=e;return(0,n.jsxs)(s.xuv,{"data-testid":"what-will-you-do-panel",children:[(0,n.jsx)(s.X6q,{textStyle:"heading5-primary",as:"h3",css:{color:"brand.primary.900",mb:{base:6,md:8}},children:"What you will do"}),(0,n.jsxs)(s.xvT,{children:[t==m.ej.APPRENTICESHIP?"Apprentices":"Trainees"," usually"]}),(0,n.jsxs)(s.aVo.fC,{variant:"bulletList",ml:1,css:{"@media print":{colorAdjust:"exact"}}
1,children:[(0,n.jsxs)(s.HCh,{children:["learn"," ",t==m.ej.INTERMEDIATE_AND_ADVANCED_TRAINING&&"technical skills ","on the job"]}),(0,n.jsx)(s.HCh,{children:"do courses in person or online"}),(0,n.jsx)(s.HCh,{children:"do practical and written assessments"})]})]})},aT=e=>{let{providersData:t,title:a,mapRegions:i,url:r}=e,{onlyInPerson:l,onlyRemote:o,bothOffered:d,totalProviders:c}=t,u=(0,n.jsx)(s.rUS,{href:r,variant:"primary",size:"regular",testId:"find-a-place-to-study-link",css:{"@media print":{border:"1px solid",borderColor:"brand.primary.700",color:"brand.primary.700"}},children:"Find a place to study or train"}),h=(0,n.jsx)(s.JO$,{icon:"Home",size:"sm","aria-hidden":!0,color:"brand.primary.600"}),p=o>0||d>0,g=o+d;return(0,n.jsxs)(x.r,{id:"where-can-i-study",my:{base:8,xl:17},templateAreas:{base:'"heading"\n               "map"\n               "content"',md:'"heading map"\n             "content map"'},gridTemplateColumns:{base:"1fr",md:"repeat(2, 1fr)"},css:{"@media print":{gridTemplateColumns:"repeat(2, 1fr)",gridTemplateAreas:'"heading map"\n                              "content map"'}},children:[(0,n.jsx)(R.P,{area:"heading",alignSelf:{base:"start",md:"end"},children:(0,n.jsx)(s.ALS,{headingEn:"Where can I study or train?",headingMi:"Ka taea e au te ako, te whakangungu rānei ki hea?",headingLevel:"h2",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"})}),(0,n.jsx)(R.P,{area:"map",justifySelf:{base:"center",md:"start"},children:c>=1?(0,n.jsx)(s.rUS,{"data-testid":"map-link",href:r,children:(0,n.jsx)(s.jkg,{mapRegions:i,shouldShowNumbers:!0})}):(0,n.jsx)(s.jkg,{mapRegions:i,shouldShowNumbers:!0})}),(0,n.jsx)(R.P,{area:"content",children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.xvT,{textStyle:"paragraph-bold",py:8,"data-testid":"providers-label",children:1===c?"".concat(c," education provider offers ").concat(a):"".concat(c," education providers offer ").concat(a)}),!(0===o&&0===d)&&(0,n.jsxs)(s.kCb,{alignItems:"center",css:{paddingBottom:8},gap:2,children:[h,(0,n.jsx)(s.xvT,{textStyle:"paragraph-bold","data-testid":"remote-learning-label",children:0===l&&0===d&&o>0?"Only available remotely":0===l&&p?"All offer remote learning":p?"".concat(g," offer").concat(1===g?"s":""," remote learning"):""})]}),u]})})]})};var aS=a(27277);let aM=e=>{let{pageTitle:t,providersData:a,illustration:i,trainingProviderTiles:r}=e,{totalProviders:l}=a,o=1!=l,d=null==i?void 0:i.url,c=(0,an.S)({base:!0,xs:!0,md:!1}),u=(0,s.izC)();return(0,n.jsx)(s.xuv,{"data-testid":"training-providers-section",backgroundColor:"brand.primary.100",css:{pt:8,pb:{base:8,md:12}},children:(0,n.jsxs)(s.rjZ,{my:{base:6,sm:8},children:[(0,n.jsxs)(s.P4e,{gridColumn:s.t4e.panel,children:[c&&!u&&(0,n.jsx)(aE,{url:d}),(0,n.jsxs)(aS.k,{children:[(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.ALS,{headingEn:"Who can you study or train with?",headingMi:"Ka taea e koe te ako, te whakangungu rānei ki tēhea whakahaere?",headingLevel:"h2",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"}),(0,n.jsxs)(s.xvT,{css:{mt:8},children:[(0,n.jsxs)("b",{children:[l," training provider",o&&"s"]})," ","offer",!o&&"s"," ",t]})]}),(!c||u)&&(0,n.jsx)(aE,{url:d})]})]}),r&&(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,css:{pt:{base:8,sm:12}},children:(0,n.jsx)(s.gCW,{as:"ul",gap:4,"data-testid":"training-provider-tiles",children:r.map((e,t)=>(0,n.jsx)(s.xuv,{as:"li",css:{listStyle:"none",width:"100%"},children:(0,n.jsx)(s.m7H,{...e})},t))})})]})})},aE=e=>{let{url:t}=e;return t?(0,n.jsx)(c.E,{"data-testid":"training-providers-icon",src:t,alt:"",height:{base:"115px",lg:"173px"},css:{ml:{base:0,md:35},mb:{base:5,md:0}}}):(0,n.jsx)(n.Fragment,{})},aD=e=>{let{headingEn:t,introduction:a,qualifications:i,dataOrigin:r,itemsLimit:l=10}=e,{isSmOrBelow:o}=(0,s.kCD)(),[d,c]=(0,p.useState)(!1),u=(0,an.S)({base:5,md:3,lg:2}),h=(0,p.useMemo)(()=>i.some(e=>!0===e.completionRateNoData),[i]),g=[{provider:"<strong>Provider</strong>",completionRate:o?"<strong>Rate</strong>":"<strong>Completion rate</strong>"},...(d?i:i.slice(0,l)).map(e=>({provider:e.providerWebsite?'<a href="'.concat(e.providerWebsite,'"><strong>').concat(e.providerName,"</strong></a> - ").concat(e.name):"".concat(e.providerName," - ").concat(e.name),completionRate:e.completionRateNoData?"No data":"".concat(Math.round(e.completionRatePercentage),"%")}))];return(0,n.jsxs)(s.P4e,{...(0,s.Mir)(aL.completionRatesSection),gridColumn:s.t4e.panel,css:{mb:{base:0,sm:8}},children:[(0,n.jsx)(s.X6q,{...(0,s.Mir)(aL.completionRatesSectionHeading),color:"brand.primary.900",textStyle:"heading5-primary",as:"h3",css:{mb:6},children:t}),(0,n.jsx)(s._cU,{content:a,css:{"& p":{textStyle:"paragraph-regular"},mb:8}}),(0,n.jsx)(eI.x,{css:{"& th:first-of-type, & td:first-of-type":{width:"78%"},"& td a":{textStyle:"paragraph-small"}},children:(0,n.jsx)(s.roP,{caption:null,table:{columns:[{type:"Provider"}
1,{type:"Completion rate"}],rows:g.map(e=>({values:[e.provider,e.completionRate]}))},numberOfLines:u,firstRowIsHeader:!0,firstColumnIsHeader:!1})}),i.length>l&&!d&&(0,n.jsx)(s.bvl,{title:"education providers",itemLimit:l,itemLength:i.length,showAll:()=>c(!0)}),h&&r&&(0,n.jsx)(eI.x,{mt:8,children:(0,n.jsxs)(s.MFu,{borderColorVariant:"neutrals",backgroundColor:"brand.neutrals.200",children:[(0,n.jsx)(s.xvT,{css:{mb:{base:0,sm:4},textStyle:{base:"paragraph-small-bold",sm:"paragraph-bold"}},children:r.noDataHeadingEn}),(0,n.jsx)(s._cU,{content:r.noDataDescription})]})}),(null==r?void 0:r.ourDataLink)&&(0,n.jsx)(s.rUS,{...(0,s.Mir)(aL.ourDataLink),variant:"plainStrong",href:r.ourDataLink.url,mt:12,css:{"@media print":{textDecoration:"underline"}},children:r.ourDataLink.text})]})},aL={completionRatesSection:"completion-rates-section",completionRatesSectionHeading:"completion-rates-section-heading",ourDataLink:"our-data-link"},aI=e=>{let{headingEn:t,introduction:a,postStudyOutcomes:i,dataOrigin:r}=e,l=["Year 1","Year 3","Year 5"],o=(0,p.useMemo)(()=>i.find(e=>void 0!==e.medianEmployedIncome),[i]),d=(0,p.useMemo)(()=>i.length===l.length&&i.every(e=>"number"==typeof e.medianEmployedIncome&&e.medianEmployedIncome>0&&"number"==typeof e.lowerEarningRangeInThousands&&e.lowerEarningRangeInThousands>0&&"number"==typeof e.upperEarningRangeInThousands&&e.upperEarningRangeInThousands>0),[i]);return(0,n.jsxs)(s.P4e,{...(0,s.Mir)(aP.earningsOutcomesSection),gridColumn:s.t4e.panel,css:{mt:6},children:[(0,n.jsx)(s.X6q,{...(0,s.Mir)(aP.earningsOutcomesSectionHeading),color:"brand.primary.900",textStyle:"heading5-primary",as:"h3",css:{mb:6},children:t}),(0,n.jsx)(s._cU,{...(0,s.Mir)(aP.earningsOutcomesSectionIntroduction),content:a,css:{mb:{base:0,sm:8},"& p":{textStyle:"paragraph-regular"}}}),o&&(()=>{let e=Object.fromEntries(i.map(e=>[e.outcomeYear,e])),t=l.map(t=>{var a,i;return{outcomeYear:t,medianEmployedIncome:null!==(i=null===(a=e[t])||void 0===a?void 0:a.medianEmployedIncome)&&void 0!==i?i:void 0}});return(0,n.jsx)(s.Kqy,{...(0,s.Mir)(aP.earningsOutcomesSectionTiles),direction:{base:"column",md:"row"},separator:(0,n.jsx)(s.ncD,{css:{px:2,"@media print":{borderWidth:"1px",mx:4,px:0}},borderColor:"brand.neutrals.300"}),css:{py:{base:0,md:6},"@media print":{flexDirection:"row"}},children:t.map((t,a)=>{var i,r,l,o,d;return(0,n.jsx)(s.Mxf,{testId:aP.earningsOutcomesSectionTile(t.outcomeYear),heading:t.outcomeYear,value:null!==(l=t.medianEmployedIncome)&&void 0!==l?l:0,lowerValue:null!==(o=null===(i=e[t.outcomeYear])||void 0===i?void 0:i.lowerEarningRangeInThousands)&&void 0!==o?o:0,upperValue:null!==(d=null===(r=e[t.outcomeYear])||void 0===r?void 0:r.upperEarningRangeInThousands)&&void 0!==d?d:0,rangeLabel:"Earn"},a)})})})(),(!o||!d)&&r&&(0,n.jsx)(s.xuv,{my:8,children:(0,n.jsxs)(s.MFu,{borderColorVariant:"neutrals",backgroundColor:"brand.neutrals.200",children:[(0,n.jsx)(s.xvT,{css:{mb:{base:0,sm:4},textStyle:{base:"paragraph-small-bold",sm:"paragraph-bold"}},children:r.noDataHeadingEn}),(0,n.jsx)(s._cU,{content:r.noDataDescription})]})})]})},aP={earningsOutcomesSection:"earnings-outcomes-section",earningsOutcomesSectionHeading:"earnings-outcomes-section-heading",earningsOutcomesSectionIntroduction:"earnings-outcomes-section-introduction",earningsOutcomesSectionTiles:"earnings-outcomes-section-tiles",earningsOutcomesSectionTile:e=>"earnings-outcomes-section-tile-".concat(e)},aA=e=>{let{headingEn:t,introduction:a,postStudyOutcomes:i,dataOrigin:r}=e,l=(0,p.useMemo)(()=>i.find(e=>"Year 5"===e.outcomeYear),[i]),o=(0,p.useMemo)(()=>!!l&&["employedPercentage","furtherStudyPercentage","benefitPercentage","overseasPercentage"].every(e=>Number(l[e])>=0),[l]),d=(0,p.useMemo)(()=>{if(l)return[{label:"Employed",value:l.employedPercentage,barColor:"brand.gold.400"},{label:"In further study",value:l.furtherStudyPercentage,barColor:"themes.school.primary.500"},{label:"On a benefit",value:l.benefitPercentage,barColor:"themes.plan.primary.500"},{label:"Overseas",value:l.overseasPercentage,barColor:"themes.work.primary.500"}]},[l]);return(0,n.jsxs)(s.P4e,{...(0,s.Mir)(az.postStudyOutcomesSection),gridColumn:s.t4e.panel,children:[(0,n.jsx)(s.X6q,{...(0,s.Mir)(az.postStudyOutcomesSectionHeading),color:"brand.primary.900",textStyle:"heading5-primary",as:"h3",css:{mb:6},children:t}),(0,n.jsx)(s._cU,{...(0,s.Mir)(az.postStudyOutcomesSectionIntroduction),content:a,css:{p:{textStyle:"paragraph-regular"},mb:{base:0,sm:8}}}),d&&(0,n.jsx)(s.xuv,{css:{mb:8},children:l&&(0,n.jsx)(s.b8y,{data:d})}),(!l||!o)&&r&&(0,n.jsx)(s.xuv,{mb:8,children:(0,n.jsxs)(s.MFu,{borderColor
1Variant:"neutrals",backgroundColor:"brand.neutrals.200",children:[(0,n.jsx)(s.xvT,{css:{mb:{base:0,sm:4},textStyle:{base:"paragraph-small-bold",sm:"paragraph-bold"}},children:r.noDataHeadingEn}),(0,n.jsx)(s._cU,{content:r.noDataDescription})]})})]})},az={postStudyOutcomesSection:"post-study-outcomes-section",postStudyOutcomesSectionHeading:"post-study-outcomes-section-heading",postStudyOutcomesSectionIntroduction:"post-study-outcomes-section-introduction"},aB=e=>{let{headingEn:t,introduction:a,fee:i,subsidy:r,totalCost:l,dataOrigin:o}=e,d=[{fee:"<strong>What you pay</strong>",subsidy:"<strong>What the government pays</strong>",totalCost:"<strong>Total cost</strong>"},{fee:i?"".concat((0,s.IeB)(i,"compact")):"No data",subsidy:r?"".concat((0,s.IeB)(r,"compact")):"No data",totalCost:l?"".concat((0,s.IeB)(l,"compact")):"No data"}];return(0,n.jsxs)(s.P4e,{...(0,s.Mir)(aH.subsidiesSection),gridColumn:s.t4e.panel,css:{mt:8},children:[(0,n.jsx)(s.X6q,{...(0,s.Mir)(aH.subsidiesSectionHeading),color:"brand.primary.900",textStyle:"heading5-primary",as:"h3",css:{mb:6},children:t}),(0,n.jsx)(s._cU,{...(0,s.Mir)(aH.subsidiesSectionIntroduction),content:a,css:{mb:8,"& p":{textStyle:"paragraph-regular"}}}),(0,n.jsx)(s.xuv,{css:{mb:8},children:(0,n.jsx)(s.roP,{caption:null,table:{columns:[{type:"What you pay"},{type:"What the government pays"},{type:"Total cost"}],rows:d.map(e=>({values:[e.fee,e.subsidy,e.totalCost]}))},firstRowIsHeader:!0,firstColumnIsHeader:!1})}),(!i||!r||!l)&&o&&(0,n.jsx)(s.xuv,{my:8,children:(0,n.jsxs)(s.MFu,{borderColorVariant:"neutrals",backgroundColor:"brand.neutrals.200",children:[(0,n.jsx)(s.xvT,{css:{mb:{base:0,sm:4},textStyle:{base:"paragraph-small-bold",sm:"paragraph-bold"}},children:o.noDataHeadingEn}),(0,n.jsx)(s._cU,{content:o.noDataDescription})]})}),(null==o?void 0:o.ourDataLink)&&(0,n.jsx)(s.rUS,{...(0,s.Mir)(aH.ourDataLink),href:o.ourDataLink.url,variant:"plainStrong",mt:4,mb:8,css:{"@media print":{textDecoration:"underline"}},children:o.ourDataLink.text})]})},aH={subsidiesSection:"subsidies-section",subsidiesSectionHeading:"subsidies-section-heading",subsidiesSectionIntroduction:"subsidies-section-introduction",ourDataLink:"our-data-link"},aF={doctorate:{code:"08",entrySection:[{heading:"From study or training",bulletList:[{heading:"Level 8",content:"postgraduate certificate or diploma"}]},{backgroundColor:"brand.primary.600",bulletList:[{heading:"Level 9",content:"Master's degree"}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based on previous study or work experience"}]},{heading:"Apply"}]},masters:{code:"07",entrySection:[{heading:"From study or training",bulletList:[{heading:"Level 7 or 8",content:"Bachelor's or Honours degree"}]},{backgroundColor:"brand.primary.600",bulletList:[{heading:"Level 8",content:"postgraduate certificate, diploma or Honours     "}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based on previous study or work experience"}]},{heading:"Apply"}]},postGraduate:{code:"06",entrySection:[{heading:"From study or training",bulletList:[{heading:"Level 7",content:"graduate certificate or diploma"}]},{backgroundColor:"brand.primary.600",bulletList:[{heading:"Level 7 or 8",content:"Bachelor's or Honours degree"}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based on previous study or work experience"}]},{heading:"Apply"}]},bachelors:{code:"05",entrySection:[{heading:"If you're in school",bulletList:[{heading:"Level 1 to 3",content:"NCEA"},{heading:"University Entrance (UE) or similar",content:""}]},{heading:"If you're out of school",bulletList:[{heading:"Level 4",content:"certificate or foundation or bridging qualification"}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based on age, previous study or work experience"}]},{heading:"Apply"}]},graduateDiploma:{code:"04",entrySection:[{heading:"From training or studying",bulletList:[{heading:"Level 6 or 7",content:"certificate or diploma"}]},{backgroundColor:"brand.primary.600",bulletList:[{heading:"Level 7 or 8",content:"Bachelor's or Honours degree"}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based on previous study or work experience"}]}
1,{heading:"Apply"}]},diploma:{code:"03",entrySection:[{heading:"If you're in school",bulletList:[{heading:"Level 1 to 3",content:"NCEA"},{heading:"University Entrance (UE) or similar"}]},{heading:"If you're out of school",bulletList:[{heading:"Level 4, 5 or 6",content:"certificate or diploma, foundation or bridging qualification"}]},{heading:"Other entry options",bulletList:[{content:"Entry options based on age, previous study or work experience"}]},{heading:"Apply"}]},intermediateCertificate:{code:"02",entrySection:[{heading:"If you're in school",bulletList:[{heading:"Level 1 to 3",content:"NCEA"}]},{heading:"If you're out of school",bulletList:[{heading:"Level 2 or 3",content:"certificate"}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based age work experience"}]},{heading:"Apply"}]},entryCertificate:{code:"01",entrySection:[{heading:"If you're in school",bulletList:[{heading:"Level 1",content:"NCEA"}]},{heading:"If you're out of school",bulletList:[{heading:"Level 1 or 2",content:"certificate"}]},{heading:"Other entry options",bulletList:[{heading:"",content:"Entry options based on previous study or work experience"}]},{heading:"Apply"}]}},aR=e=>{var t,a,i,r,o,c;let{pageData:u,navigationData:h,footerData:p,qualClusterData:g,alertData:m}=e,x=Object.values(aF).find(e=>e.code===g.qualificationLevel.code),b=(null===(t=u.completionRates)||void 0===t?void 0:t.enabled)||(null===(a=u.earningsOutcomes)||void 0===a?void 0:a.enabled)||(null===(i=u.postStudyDestinations)||void 0===i?void 0:i.enabled);g.relatedQualClusters=null===(r=g.relatedQualClusters)||void 0===r?void 0:r.map(e=>({...e,kete:(0,w.E)(e.keteId)}));let j=[{title:"What’s this study or training like?",section:(0,n.jsx)(ak,{description:null===(o=g.detailClassification)||void 0===o?void 0:o.description,qualificationLevel:g.qualificationLevel,whatsThisStudyLike:u.whatsThisStudyLike,credits:g.credits})},{title:"How can you get into this study or training?",section:(0,n.jsx)(n.Fragment,{children:x&&(0,n.jsx)(ap,{diagramData:x.entrySection,description:g.qualificationLevel.entryInformationIntroText,entryInformation:g.qualificationLevel.entryInformation})})},{title:"How can you pay for your study or training?",section:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ay,{summary:u.feesSection.summary,cards:u.feesSection.cards,supportTiles:u.supportTiles}),u.subsidies&&u.subsidies.enabled&&g&&(0,n.jsx)(aB,{headingEn:u.subsidies.headingEn,introduction:u.subsidies.introduction,fee:g.fee,subsidy:g.subsidy,totalCost:g.totalCost,dataOrigin:u.dataOrigin})]})}],v=[{title:"What happens after this study or training?",section:(0,n.jsxs)(n.Fragment,{children:[u.earningsOutcomes&&g.postStudyOutcomes&&u.earningsOutcomes.enabled&&(0,n.jsx)(aI,{headingEn:u.earningsOutcomes.headingEn,introduction:u.earningsOutcomes.introduction,postStudyOutcomes:g.postStudyOutcomes,dataOrigin:u.dataOrigin}),u.postStudyDestinations&&g.postStudyOutcomes&&u.postStudyDestinations.enabled&&u.earningsOutcomes&&(0,n.jsxs)(n.Fragment,{children:[u.earningsOutcomes.enabled&&(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(s.izJ,{mt:4,mb:8,thickness:"sm",color:"brand.primary.300"})}),(0,n.jsx)(aA,{headingEn:u.postStudyDestinations.headingEn,introduction:u.postStudyDestinations.introduction,postStudyOutcomes:g.postStudyOutcomes,dataOrigin:u.dataOrigin})]}),u.completionRates&&u.completionRates.enabled&&u.postStudyDestinations&&u.earningsOutcomes&&(0,n.jsxs)(n.Fragment,{children:[(u.postStudyDestinations.enabled||u.earningsOutcomes.enabled)&&(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(s.izJ,{mt:4,mb:8,thickness:"sm",color:"brand.primary.300"})}),(0,n.jsx)(aD,{headingEn:u.completionRates.headingEn,introduction:u.completionRates.introduction,qualifications:u.completionRates.qualifications,dataOrigin:u.dataOrigin,itemsLimit:10})]})]})}],y=b?[...j,...v]:j,f={title:u.title,description:"Find out what this study or training is like, what you need to do it and how you can pay for it."};return(0,n.jsx)(l.A,{title:u.title,footer:(0,n.jsx)(s.$_C,{data:p,gap:{backgroundColor:"brand.study.700",theme:u.meta.sectionTheme},topSection:u.footerCallToAction}),alertData:m,navigationData:h,nav:(0,n.jsx)(d.m,{breadcrumbs:u.breadcrumbs,sectionTheme:u.meta.sectionTheme,keteId:g.keteId}),meta:f,children:(0,n.jsxs)(s.f6W,{theme:"study",children:[(0,n.jsx)(s.xuv,{backgroundColor:"brand.primary.200",pb:{base:12,md:24,lg:28},children:(0,n.jsx)(s.K0P,{"data-testid":"page-heading",colorMaoriTitle:"brand.primary.600",colorEnglishTitle:"brand.primary.900",colorDescription:"brand.neutrals.900",pattern:u.meta.pattern,...u,titleLevel:1,introduction:"".concat((0,s.hPx)(g.qualificationLevel.minimumLevel,g.qualificationLevel.maximumLevel)," qualifications"),namedQualification:g.named
1Qualification})}),(0,n.jsx)(s.xuv,{css:{backgroundColor:"brand.primary.100"},children:(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsxs)(s.Kqy,{direction:{base:"column",md:"row"},separator:(0,n.jsx)(s.ncD,{borderColor:"brand.neutrals.300",css:{"@media print":{borderWidth:"1px",mx:4}}}),css:{py:{base:6,md:14},"@media print":{flexDirection:"row",justifyContent:"center"}},children:[(0,n.jsx)(s.mZb,{icon:"Time",heading:"How long it takes",description:g.duration?"Study for ".concat((0,s._Qh)(g.duration)):"No data",subtext:"Check with education providers about studying part time or online."}),(0,n.jsx)(s.mZb,{icon:"Cost",heading:"What you pay",description:g.fee?"".concat((0,s.N2k)(g.fee,"compact")," fees"):"No fee data",screenReaderDescription:g.fee?"".concat((0,s.N2k)(g.fee,"screen-reader-compatible")," fees"):"No fee data",linkText:"Paying for study and training",url:"/study-and-training/paying-for-study-and-training"}),(0,n.jsx)(s.mZb,{icon:"Level",heading:"What you need",description:g.qualificationLevel.whatYouNeed})]})})})}),(0,n.jsx)(s.xuv,{backgroundColor:"brand.neutrals.100",css:{pt:{base:8,md:12,lg:16},pb:{base:12,md:16,lg:24}},children:(0,n.jsx)(s.$wW,{multiple:!0,pattern:u.meta.patternSmall,accordion:y.map(e=>({value:e.title,headingEn:e.title,headingLevel:2,section:e.section}))})}),(0,n.jsx)(s.xuv,{css:{backgroundColor:"brand.primary.100"},children:(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(aT,{providersData:u.providersData,title:u.title,mapRegions:g.regionCount,url:g.qualFinderUrl})})})}),g.relatedQualClusters&&g.relatedQualClusters.length>0&&(0,n.jsxs)(s.xuv,{id:"other-options",backgroundColor:"brand.primary.200",css:{pt:8,pb:{base:12,md:32}},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},my:{base:6,sm:8},children:(0,n.jsx)(s.ALS,{headingEn:"Other study and training options in ".concat(g.detailClassification.nameEnglish),headingMi:"Ētahi atu kōwhiringa ako me te whakangungu mō ".concat(g.detailClassification.nameMaori.startsWith("Ngā")||g.detailClassification.nameMaori.startsWith("Ētahi")?"":"te"," ").concat(g.detailClassification.nameMaori),headingLevel:"h2",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"})})}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.rjZ,{gridTemplateColumns:{base:"auto",sm:"repeat(2, 1fr)"},rowGap:{base:4,sm:6},columnGap:{base:4},css:{width:"auto",pb:8,"@media print":{gridTemplateColumns:"repeat(2, 1fr)"}},children:(0,n.jsx)(s.$X1,{quals:g.relatedQualClusters,headingLevel:3})})})})]}),(null===(c=u.relatedContent)||void 0===c?void 0:c.length)>0&&(0,n.jsx)(s.xuv,{backgroundColor:"brand.primary.700",pb:"100px",children:u.relatedContent&&(0,n.jsx)(ai.J,{guides:u.relatedContent})})]})})};var aN=a(24286),aW=a(70521);let aO=e=>{var t,a;let{pageData:i,navigationData:r,footerData:o,filterStudyData:d,alertData:c}=e,{open:u,onOpen:h,onClose:g}=(0,s.qY0)(),[b,j]=p.useState(!1);p.useEffect(()=>{var e;j("true"===(null!==(e=localStorage.getItem("shouldShowAllFilters"))&&void 0!==e?e:""))},[]);let[v,y]=p.useState(!1),f=(0,eX.useRouter)(),[k,w]=p.useState(1),[C,T]=p.useState([]),[S,M]=p.useState([]),[E,D]=p.useState({}),L=d.studyAreas,I=tf(L),P=tC(L),A=tH(d.levels),z=tF(d.regions);p.useEffect(()=>{var e;let t=new URL(window.location.href),a=tS(t.searchParams.getAll("broadfilter"),P),i=tM(t.searchParams.getAll("narrowfilter"),P),r=tE(t.searchParams.getAll("detailfilter"),P),n=tA(t.searchParams.getAll("level"),A),s=tB(t.searchParams.getAll("region"),z);w(parseInt(null!==(e=t.searchParams.get("p"))&&void 0!==e?e:"1",10)),T(n),M(s),D(tk(a,i,r,I)),y(!0)},[]);let B=tw(E,I),H=(0,n.jsx)(s.xvT,{as:"span","data-testid":"filter-description-study-areas",children:tT(B,P).join(", ")}),F=tz(S,z),R=e=>{let t=[...S];t.includes(e)?M(t.filter(t=>t!==e)):(t.push(e),M(t))};p.useEffect(()=>{if(v){let e=f.asPath.split("?")[0],t=(0,aN.p)(C,F,B,k);f.push("".concat(e).concat(t),void 0,{shallow:!0})}},[C,S,E,k]);let{data:N,isLoading:W,isError:O}=(0,m.hr)({levels:C,regions:F,studyAreas:B,page:k}),q=N&&tO(N.results),U=tI(C,A),_=p.useRef(null),Q=(0,s.Sx0)({base:"auto",md:"smooth"}),Y=(0,n.jsx)(s.xvT,{as:"span","data-testid":"filter-description-levels",textStyle:"paragraph-regular",children:tP(C,A).join(", ")}),Z=(0,n.jsxs)(eQ.aD,{theme:"light",children:[(0,n.jsx)(eQ.Qv,{children:"Filter by levels"}),(0,n.jsx)(s.YcF,{id:"levels",selectedOption:U,options:A,selected:C,theme:"study",onChange:e=>{let t=[...C];t.includes(e)?T(t.filter(t=>t!==e)):(t.push(e),T(t))},ctaLabel:"View results"})]}),G={secondLabel:"All New Zealand",firstLabel:"Aotearoa",code:"NZ"},J=tL(S,G,z),V=(0,n.jsxs)(eQ.aD,{theme:"light",children:[(0,n.jsx)(eQ.Qv,{children:"Filter by regions"}),(0,n.jsx)(s.YcF,{isBilingual:!0,id:"region",selectedOption:J,selectAllOption:G,options:z,selected:S,theme:"study",onChange:e=>{w(1),R(e)},onSelectAll:e=>{"select"===e?M(d.regions.map(e=>e.code)):"deselect"===e&&M([])},ctaLabel:"View results"})]}),X=(0,n.jsx)(s.TxB,{studyAreaData:L,selectedStudyAreas:E,handleSelectAllNarrowCheckboxClick:e=>{let t={...E};if(tQ(e,E,I)){var a;delete t[e],0===Object.keys(null!==(a=t[e])&&void 0!==a?a:{}).length&&delete t[e],D(t)}else{e in t||(t[e]={});let a=I[e];t[e]=a,D(t)}},handleSelectAllDetailCheckboxClick:(e,t)=>{let a=t_(e,t,E,I),i={...E};if(a)delete i[e][t],0===Object.keys(i[e]).length&&delete i[e],D(i);else{e in i||(i[e]={}),t in i[e]||(i[e][t]={});let a=I[e][t];i[e][t]=a,D(i)}},handleDetailCheckboxClick:(e,t,a)=>{var i,r;let n={...E};a in(null!==(r=null===(i=n[e])||void 0===i?void 0:i[t])&&void 0!==r?r:{})?(delete n[e][t][a],0===Object.keys(n[e][t]).length&&delete n[e][t],0===Object.keys(n[e]).length&&delete n[e]):(e in n||(n[e]={}),t in n[e]||(n[e][t]={}),n[e][t][a]=a),D(n)},handleNarrowCheckboxClick:(e,t)=>{let a={...E};e in a||(a[e]={});let i=a[e];void 0!==i[t]?(delete i[t],0===Object.keys(i).length&&delete a[e]):i[t]={},D(a)}}),K=N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.xvT,{as:"span","data-testid":"filter-description-count",textStyle:"paragraph-bold",children:0===N.totalResults?"No results ":"".concat((0,s.NV4)(N.totalResults,"result")," ")}),(0,n.jsx)(s.xvT,{textStyle:"paragraph-regular",as:"span",children:" for "}),Y,(0,n.jsx)(s.xvT,{textStyle:"paragraph-regular",as:"span",children:" in "}),H,N.totalProviders>0&&(0,n.jsx)(s.xvT,{textStyle:"paragraph-regular",as:"span",children:" at ".concat((0,s.NV4)(N.totalProviders,"education provider")," ")}),0===N.totalResults&&(0,n.jsx)(s.xvT,{css:{mt:4},textStyle:"paragraph-regular",as:"p",children:"Keep looking! Try a different region, or search all Aotearoa New Zealand."})]}),$=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(aW.s,{open:u,onClose:g,heading:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{lang:"mi",children:"Aroha mai"}),", what’s going on?"," "]}),description:"We're sorry to hear there's a problem with this page. Let us know more details about what's going on so we can fix it.",issueOptions:[{id:"500",option:"Providers not found - 500 error",feedbackType:"report",sortOrder:1}]}),(0,n.jsx)(s.xvT,{css:{mt:0},textStyle:"paragraph-bold",children:"Uh oh! We couldn’t find those providers."}),(0,n.jsxs)(s.xvT,{css:{mt:4},textStyle:"paragraph-regular",children:["Try refreshing the page. If you get this message again ",(0,n.jsx)(s.zxk,{as:"span",variant:"none",css:{py:0,px:0,height:"unset",lineHeight:"24px",verticalAlign:"baseline"},"data-testid":"cant-find-provider-report-button",onClick:h,children:(0,n.jsx)(s.xvT,{textStyle:"paragraph-medium",css:{borderBottom:"1px solid",color:"brand.primary.700",borderColor:"brand.primary.700",_hover:{color:"brand.primary.900",borderColor:"brand.primary.900"}},children:"report a problem"})})]})]}),ee=(0,n.jsxs)(s.kCb,{justifyContent:"center",children:[(0,n.jsx)(s.$jN,{css:{width:12,height:12,color:"brand.primary.500"}}),(0,n.jsx)(s.TXu,{"aria-live":"polite",children:"Loading providers"})]}),et="Browse the list of education providers to find one that’s right for you.",ea=(null===(t=i.meta)||void 0===t?void 0:t.searchDescription)||et,ei={title:(null===(a=i.meta)||void 0===a?void 0:a.seoTitle)||i.title,de
1scription:ea};return(0,n.jsx)(l.A,{title:i.title,footer:(0,n.jsx)(s.$_C,{data:o,gap:{backgroundColor:"brand.primary.700",theme:i.meta.sectionTheme},topSection:i.footerCallToAction}),alertData:c,navigationData:r,nav:(0,n.jsx)(s.h4i,{breadcrumbs:i.breadcrumbs,lightForeground:!0}),meta:ei,children:(0,n.jsxs)(s.f6W,{theme:"study",children:[(0,n.jsx)(s.xuv,{bgColor:"brand.primary.600",pb:10,children:(0,n.jsx)(s.CDE,{isFeaturedIntroduction:!0,maoriTitle:"Ākonga ā-wahi",title:"Find a place to study",colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:i.meta.pattern,introduction:et,titleLevel:1})}),(0,n.jsx)(s.xuv,{bgColor:"brand.primary.700",children:(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},py:{base:8,md:11},css:{columnGap:"24px"},children:(0,n.jsxs)(x.r,{gridTemplateColumns:{base:"1fr",lg:"repeat(2, 1fr)"},gap:6,children:[(0,n.jsx)(s.xuv,{children:V}),b&&(0,n.jsxs)(s.xuv,{children:[" ",Z]}),b&&(0,n.jsxs)(s.xuv,{children:[" ",X]})]})})})}),(0,n.jsx)(s.xuv,{bgColor:"brand.primary.200",pb:3,children:(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{ref:_,gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{columnGap:"24px",pt:{base:12},mb:8},children:(0,n.jsxs)(s.xuv,{children:[O&&$,(0,n.jsx)(s.xuv,{css:{pb:{base:8,md:12}},children:(0,n.jsx)(n.Fragment,{children:K})}),W&&ee,(0,n.jsx)(s.rjZ,{as:"ul",gridTemplateColumns:"1fr",css:{listStyle:"none",gap:4,pb:8},children:q&&q.map((e,t)=>(0,n.jsx)(s.P4e,{as:"li",children:(0,n.jsx)(s.FTT,{...e})},t))}),N&&N.totalResults>0&&(0,n.jsx)(s.tlE,{startIndex:N.startIndex,endIndex:N.endIndex,totalResults:N.totalResults,currentPage:N.currentPage,totalPages:N.pages,onNext:()=>{var e;w(k+1),null==_||null===(e=_.current)||void 0===e||e.scrollIntoView({behavior:Q})},onBack:()=>{var e;w(k-1),null==_||null===(e=_.current)||void 0===e||e.scrollIntoView({behavior:Q})}})]})})})}),i.relatedContent&&(0,n.jsx)(ai.J,{guides:i.relatedContent})]})})},aq=()=>{let e=(0,s.KOh)("brand.primary.A1"),[t]=(0,s.ach)(["(max-width: 340px) or (min-width: 768px)"]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.xuv,{"data-testid":"intermediate-and-advanced-training-entry-section",children:(0,n.jsxs)(s.rjZ,{gridTemplateColumns:{base:"auto",md:"repeat(3, 1fr)"},gridColumnGap:"0",css:{mt:{base:8,md:12},mb:{base:12,md:20},width:"auto",overflow:"hidden","@media print":{gridTemplateColumns:"repeat(3, 1fr) !important","& > div":{border:"1px solid",borderColor:"brand.primary.700"}}},minH:"322px",children:[(0,n.jsxs)(s.P4e,{css:{backgroundColor:"brand.primary.600",p:6,position:"relative"},children:[(0,n.jsx)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:{base:0,md:6},minH:{base:12,md:14},"@media print":{color:"brand.primary.700",mb:6,minH:14}},color:"brand.primary.A1",children:"Get industry skills"}),(0,n.jsxs)(s.xuv,{css:{display:"grid"},children:[(0,n.jsx)(s.JHP,{bulletList:[{content:"Job experience"},{content:"Training or study"}]}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:{base:"calc(100% - 130px)",md:"calc(100% - 105px)"},top:"auto",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},height:"calc(100% - 105px)"}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px",left:"33px"},children:(0,n.jsx)("svg",{width:"188",height:"394",viewBox:"0 0 188 394",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 0V384C2 388.418 5.58173 392 10 392H188",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"50px",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)("svg",{width:"15",height:"24",viewBox:"0 0 15 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2.35547 2L11.3555 12.0187L2.35547 22",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px"},children:(0,n.jsx)("svg",{width:"248",height:"202",viewBox:"0 0 248 202",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{display:{base:"block",md:"none"},"@media print":{display:"none"}},children:(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"calc(100%+30px)",width:"91%",left:7,top:-6},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",top:"105px",right:"34px"},children:(0,n.jsx)("svg",{width:"677",height:"187",viewBox:"0 0 677 187",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M675 187L675 10.0001C675 5.58178 671.418 2.00006 667 2.00006L-1.60133e-05 2",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"6",right:"6"},children:(0,n.jsx)("svg",{width:"24",height:"14",viewBox:"0 0 24 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M22.0098 2L11.991 11L2.00977 2",stroke:e,strokeWidth:"4"})})})]})})]})]}),(0,n.jsxs)(s.P4e,{css:{backgroundColor:"brand.primary.700",p:6,position:"relative"},children:[(0,n.jsx)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:{base:0,md:6},minH:{base:12,md:14},"@media print":{color:"brand.primary.700",mb:6,minH:14}},color:"brand.primary.A1",children:"Talk with your employer"}),(0,n.jsx)(s.JHP,{bulletList:[{content:"Ask your employer to supp
1ort your training"}]}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:{base:"calc(100% - 130px)",md:"calc(100% - 105px)"},top:"auto",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},height:"calc(100% - 105px)"}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px",left:"33px"},children:(0,n.jsx)("svg",{width:"188",height:"394",viewBox:"0 0 188 394",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 0V384C2 388.418 5.58173 392 10 392H188",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"50px",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)("svg",{width:"15",height:"24",viewBox:"0 0 15 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2.35547 2L11.3555 12.0187L2.35547 22",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px"},children:(0,n.jsx)("svg",{width:"248",height:"202",viewBox:"0 0 248 202",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px"},children:(0,n.jsx)("svg",{width:"248",height:"202",viewBox:"0 0 248 202",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{display:{base:"block",md:"none"},"@media print":{display:"none"}},children:(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"calc(100%+30px)",width:"91%",left:7,top:-6},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",top:"105px",right:"34px"},children:(0,n.jsx)("svg",{width:"677",height:"187",viewBox:"0 0 677 187",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M675 187L675 10.0001C675 5.58178 671.418 2.00006 667 2.00006L-1.60133e-05 2",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"6",right:"6"},children:(0,n.jsx)("svg",{width:"24",height:"14",viewBox:"0 0 24 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M22.0098 2L11.991 11L2.00977 2",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"6",right:"34px"},children:(0,n.jsx)("svg",{width:"4",height:"298",viewBox:"0 0 4 298",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 298L2.00001 -9.46687e-06",stroke:e,strokeWidth:"4"})})})]})})]}),(0,n.jsxs)(s.P4e,{css:{backgroundColor:"brand.primary.800",p:6,position:"relative"},children:[(0,n.jsxs)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:t?6:0,minH:{base:12,md:14},"@media print":{color:"brand.primary.700",mb:6,minH:14}},color:"brand.primary.A1",children:["Choose a training ",t&&(0,n.jsx)("br",{}),"provider"]}),(0,n.jsx)(s.xuv,{css:{mb:{base:4}},children:(0,n.jsx)(s.JHP,{bulletList:[{content:"Check entry requirements"},{content:"Sign the agreement and get started"}]})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:{base:"calc(100% - 130px)",md:"calc(100% - 105px)"},width:"50%",top:"auto",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},height:"calc(100% - 105px)"}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px",left:"33px"},children:(0,n.jsx)("svg",{width:"118",height:"391",viewBox:"0 0 118 391",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 0V381C2 385.418 5.58172 389 10 389H118",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"58px"},children:(0,n.jsx)("svg",{width:"248",height:"202",viewBox:"0 0 248 202",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"48px",right:"49%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)("svg",{width:"15",height:"24",viewBox:"0 0 15 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2.35547 2L11.3555 12.0187L2.35547 22",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{display:{base:"block",md:"none"},"@media print":{display:"none"}},children:(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"91%",left:7},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",top:t?"105px":"80px",right:"34px"},children:(0,n.jsx)("svg",{width:"677",height:"59",viewBox:"0 0 677 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M675 59L675 10C675 5.58172 671.418 2 667 2L-2.72034e-05 1.99994",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"6",right:"34px"},children:(0,n.jsx)("svg",{width:"4",height:"298",viewBox:"0 0 4 298",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 298L2.00001 -9.46687e-06",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"22px",right:"6"},children:(0,n.jsx)("svg",{width:"24",height:"14",viewBox:"0 0 24 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M22.0098 2L11.991 11L2.00977 2",stroke:e,strokeWidth:"4"})})})]})})]})]})})})},aU=()=>{let e=(0,s.KOh)("brand.primary.A1"),[t]=(0,s.ach)(["(max-width: 340px) or (min-width: 768px)"]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.xuv,{"data-testid":"training-and-apprenticeship-entry-section",children:(0,n.jsxs)(s.rjZ,{gridTemplateColumns:{base:"auto",md:"repeat(3, 1fr)"},gridColumnGap:"0",css:{mt:{base:8,md:12},mb:{base:12,md:20},width:"auto",overflow:"hidden","@media print":{gridTemplateColumns:"repeat(3, 1fr)","& > div":{border:"1px solid",borderColor:"brand.primary.700"}}},children:[(0,n.jsxs)(s.P4e,{css:{backgroundColor:"brand.primary.600",p:6,position:"relative"},children:[(0,n.jsx)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:{base:0,md:6},minH:{base:8,md:"52px"},"@media print":{color:"brand.primary.700",mb:6,minH:14}},color:"brand.primary.A1",children:"Get ready for work"}),(0,n.jsxs)(s.xuv,{css:{display:"grid"},gridTemplateColumns:{base:"auto",sm:"repeat(2, 1fr)",md:"auto"},gridColumnGap:6,children:[(0,n.jsx)(a_,{listHeading:"In school",bulletList:["Work skills","School subjects"]}),(0,n.jsx)(a_,{listHeading:"Out of school",bulletList:["Training or study","Work experience"]})]})]}),(0,n.jsxs)(s.P4e,{css:{backgroundColor:"brand.primary.700",p:6,position:"relative"},children:[(0,n.jsx)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:{base:0,md:6},minH:{base:12,md:"52px"},"@media print":{color:"brand.primary.700",mb:6,minH:14}},color:"brand.primary.A1",children:"Find a job"}),(0,n.jsx)(s.xuv,{css:{mb:{base:4}},children:(0,n.jsx)(s.JHP,{bulletList:[{content:"Ask your employer to supp
1ort your training"}]})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:{base:"calc(100% - 130px)",md:"calc(100% - 105px)"},top:"auto",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},height:"calc(100% - 105px)"}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"60px",left:"33px","@media print":{bottom:"30px"}},children:(0,n.jsx)("svg",{width:"188",height:"394",viewBox:"0 0 188 394",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 0V384C2 388.418 5.58173 392 10 392H188",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"50px",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},bottom:"20px"}},children:(0,n.jsx)("svg",{width:"15",height:"24",viewBox:"0 0 15 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2.35547 2L11.3555 12.0187L2.35547 22",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",left:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"60px","@media print":{bottom:"30px"}},children:(0,n.jsx)("svg",{width:"248",height:"202",viewBox:"0 0 248 202",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{display:{base:"block",md:"none"},"@media print":{display:"none"}},children:(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"calc(100%+30px)",width:"91%",left:7,top:-6},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",top:"105px",right:"34px"},children:(0,n.jsx)("svg",{width:"677",height:"187",viewBox:"0 0 677 187",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M675 187L675 10.0001C675 5.58178 671.418 2.00006 667 2.00006L-1.60133e-05 2",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"6",right:"6"},children:(0,n.jsx)("svg",{width:"24",height:"14",viewBox:"0 0 24 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M22.0098 2L11.991 11L2.00977 2",stroke:e,strokeWidth:"4"})})})]})})]}),(0,n.jsxs)(s.P4e,{css:{backgroundColor:"brand.primary.800",p:6,position:"relative"},children:[(0,n.jsxs)(s.X6q,{as:"h5",textStyle:"heading5-primary",css:{mb:t?6:0,minH:{base:12,md:14},"@media print":{color:"brand.primary.700",mb:6,minH:14}},color:"brand.primary.A1",children:["Choose a training ",t&&(0,n.jsx)("br",{}),"provider"]}),(0,n.jsx)(s.xuv,{css:{mb:{base:4}},children:(0,n.jsx)(s.JHP,{bulletList:[{content:"Check entry requirements"},{content:"Sign the agreement and get started"}]})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:{base:"calc(100% - 130px)",md:"calc(100% - 105px)"},width:"50%",top:"auto",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},height:"calc(100% - 105px)"}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"60px",left:"33px","@media print":{bottom:"30px"}},children:(0,n.jsx)("svg",{width:"118",height:"391",viewBox:"0 0 118 391",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 0V381C2 385.418 5.58172 389 10 389H118",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"50%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"}}},children:(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"60px","@media print":{bottom:"30px"}},children:(0,n.jsx)("svg",{width:"248",height:"202",viewBox:"0 0 248 202",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M237.355 200L0.0195312 200",stroke:e,strokeWidth:"4"})})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"50px",right:"49%",display:{base:"none",md:"block"},"@media print":{display:"block","& path":{stroke:"brand.primary.700"},bottom:"20px"}},children:(0,n.jsx)("svg",{width:"15",height:"24",viewBox:"0 0 15 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2.35547 2L11.3555 12.0187L2.35547 22",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{display:{base:"block",md:"none"},"@media print":{display:"none"}},children:(0,n.jsxs)(s.xuv,{css:{position:"absolute",inset:0,overflow:"hidden",height:"100%",width:"91%",left:7},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",top:t?"105px":"80px",right:"34px"},children:(0,n.jsx)("svg",{width:"677",height:"59",viewBox:"0 0 677 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M675 59L675 10C675 5.58172 671.418 2 667 2L-2.72034e-05 1.99994",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"6",right:"34px"},children:(0,n.jsx)("svg",{width:"4",height:"298",viewBox:"0 0 4 298",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 298L2.00001 -9.46687e-06",stroke:e,strokeWidth:"4"})})}),(0,n.jsx)(s.xuv,{css:{position:"absolute",bottom:"22px",right:"6"},children:(0,n.jsx)("svg",{width:"24",height:"14",viewBox:"0 0 24 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M22.0098 2L11.991 11L2.00977 2",stroke:e,strokeWidth:"4"})})})]})})]})]})})})},a_=e=>{let{bulletList:t,listHeading:a}=e;return(0,n.jsxs)(s.P4e,{children:[(0,n.jsx)(s.xvT,{textStyle:"paragraph-small-bold",color:"brand.neutrals.100",css:{mb:4,"@media print":{color:"brand.neutrals.900"}},children:a}),(0,n.jsx)(s.aVo.fC,{variant:"bulletList",listIcon:"star",css:{textStyle:"paragraph-small",color:"brand.neutrals.100",mb:{base:0,md:6},"@media print":{color:"brand.neutrals.900",printColorAdjust:"exact"}},children:t.map((e,t)=>(0,n.jsx)(s.HCh,{children:e.replace(";","")},t))})]})},aQ=e=>{var t,a,i,r,o;let{pageData:c,footerData:u,navigationData:h,workBasedTrainingData:g,alertData:m}=e,x=(0,t7.Z)(),{whoItsFor:b,entryInformationIntroText:j,entryInformation:v,headerDescription:y,whatYoullGetPaid:f,code:k}=g.qualificationLevel,C=(null===(t=c.completionRates)||void 0===t?void 0:t.enabled)||(null===(a=c.earningsOutcomes)||void 0===a?void 0:a.enabled)||(null===(i=c.postStudyDestinations)||void 0===i?void 0:i.enabled),T="How can you pay for your study or training?",S="how-to-pay",M="#".concat(S),E=[{title:"What’s this study or training like?",section:(0,n.jsx)(aZ,{description:null===(r=g.detailClassification)||void 0===r?void 0:r.description,qual
1ificationLevel:g.qualificationLevel,whatsThisStudyLike:aJ(c.whatsThisStudyLike)})},{title:"How can you get into this study or training?",section:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:[(0,n.jsx)(ac,{introduction:j}),(0,n.jsx)(aY,{code:k}),v&&v.length>0&&(0,n.jsx)(s.Baz,{tabs:v,mobileJumpLinkHeading:"Find out more"})]})})},{id:S,title:T,section:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ay,{summary:c.feesSection.summary,cards:aJ(c.feesSection.cards),supportTiles:c.supportTiles})})}],D=[{title:"What happens after this study or training?",section:(0,n.jsxs)(n.Fragment,{children:[c.earningsOutcomes&&g.postStudyOutcomes&&c.earningsOutcomes.enabled&&(0,n.jsx)(aI,{headingEn:c.earningsOutcomes.headingEn,introduction:c.earningsOutcomes.introduction,postStudyOutcomes:g.postStudyOutcomes,dataOrigin:c.dataOrigin}),c.postStudyDestinations&&g.postStudyOutcomes&&c.postStudyDestinations.enabled&&(0,n.jsxs)(n.Fragment,{children:[c.earningsOutcomes.enabled&&(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(s.izJ,{mt:4,mb:8,thickness:"sm",color:"brand.primary.300"})}),(0,n.jsx)(aA,{headingEn:c.postStudyDestinations.headingEn,introduction:c.postStudyDestinations.introduction,postStudyOutcomes:g.postStudyOutcomes,dataOrigin:c.dataOrigin})]}),c.completionRates&&c.completionRates.enabled&&(0,n.jsxs)(n.Fragment,{children:[(c.postStudyDestinations.enabled||c.earningsOutcomes.enabled)&&(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(s.izJ,{mt:4,mb:8,thickness:"sm",color:"brand.primary.300"})}),(0,n.jsx)(aD,{headingEn:c.completionRates.headingEn,introduction:c.completionRates.introduction,qualifications:c.completionRates.qualifications,dataOrigin:c.dataOrigin,itemsLimit:10})]})]})}],L=C?[...E,...D]:E,[I,P]=(0,p.useState)(void 0);(0,p.useEffect)(()=>{P(x.hash===M?T:void 0)},[x]),g.relatedQualClusters=g.relatedQualClusters.map(e=>({...e,kete:(0,w.E)(e.keteId)}));let A={title:c.title,description:"Find out what this study or training is like, what you need to do it and how you can pay for it."};return(0,n.jsx)(l.A,{title:c.title,footer:(0,n.jsx)(s.$_C,{data:u,gap:{backgroundColor:"brand.primary.700",theme:c.meta.sectionTheme},topSection:c.footerCallToAction}),alertData:m,navigationData:h,nav:(0,n.jsx)(d.m,{breadcrumbs:c.breadcrumbs,sectionTheme:c.meta.sectionTheme,keteId:g.keteId}),meta:A,children:(0,n.jsxs)(s.f6W,{theme:c.meta.sectionTheme,children:[(0,n.jsx)(s.xuv,{bgColor:"brand.primary.200",pb:{base:12,md:24,lg:28},children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 /span 8",md:"1 /span 12",lg:"1 / span 12",xl:"2 / span 9"},css:{zIndex:11,maxWidth:{md:"700px",lg:"unset"}},children:(0,n.jsx)(s.K0P,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.600",colorEnglishTitle:"brand.primary.900",colorDescription:"brand.neutrals.900",introduction:y,pattern:c.meta.pattern,...c,headingLabel:(0,n.jsx)(s.xuv,{css:{mb:{base:4,md:6}},children:(0,n.jsx)(s.MWv,{header:"Earn while you learn"})}),namedQualification:g.namedQualification})})}),(0,n.jsx)(s.xuv,{css:{backgroundColor:"brand.primary.100"},children:(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsxs)(s.Kqy,{"data-testid":"wbt-feature-boxes",direction:{base:"column",md:"row"},separator:(0,n.jsx)(s.ncD,{borderColor:"brand.neutrals.300",css:{"@media print":{borderWidth:"1px",mx:4}}}),css:{py:{base:6,md:14},"@media print":{flexDirection:"row",justifyContent:"center"}},children:[(0,n.jsx)(s.mZb,{icon:"Time",heading:"How long it takes",description:g.duration?"Train for ".concat((0,s._Qh)(g.duration)):"No data"}),(0,n.jsx)(s.mZb,{icon:"Level",heading:"Who it's for",description:b}),(0,n.jsx)(s.mZb,{icon:"Cost",heading:"What you'll get paid",description:f,descriptionUrl:M})]})})})}),(0,n.jsx)(s.xuv,{backgroundColor:"brand.neutrals.100",css:{pt:{base:8,md:12,lg:16},pb:{base:12,md:16,lg:24}},children:(0,n.jsx)(s.$wW,{multiple:!0,pattern:c.meta.patternSmall,accordion:L.map(e=>({id:e.id,value:e.title,headingEn:e.title,headingLevel:2,section:e.section}
1)),defaultValue:"string"==typeof I?[I]:I},I)}),(0,n.jsx)(aM,{pageTitle:c.title,providersData:c.providersData,illustration:null===(o=c.whoCanYouStudyOrTrainWith)||void 0===o?void 0:o.illustration,trainingProviderTiles:aV(c.trainingProviderTiles)}),g.relatedQualClusters&&g.relatedQualClusters.length>0&&(0,n.jsxs)(s.xuv,{backgroundColor:"brand.primary.200",css:{pt:8,pb:{base:12,md:32}},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},my:{base:6,sm:8},children:(0,n.jsx)(s.ALS,{headingEn:"Other study and training options in ".concat(g.detailClassification.nameEnglish),headingMi:"Ētahi atu kōwhiringa ako me te whakangungu mō ".concat(g.detailClassification.nameMaori.startsWith("Ngā")||g.detailClassification.nameMaori.startsWith("Ētahi")?"":"te"," ").concat(g.detailClassification.nameMaori),headingLevel:"h2",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"})})}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.rjZ,{gridTemplateColumns:{base:"auto",sm:"repeat(2, 1fr)"},rowGap:{base:4,sm:6},columnGap:{base:4},css:{width:"auto","@media print":{gridTemplateColumns:"repeat(2, 1fr)"}},children:(0,n.jsx)(s.$X1,{quals:g.relatedQualClusters,headingLevel:3})})})})]}),c.relatedContent&&(0,n.jsx)(ai.J,{guides:c.relatedContent})]})})},aY=e=>{let{code:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(t===m.ej.APPRENTICESHIP||t===m.ej.ENTRY_TRAINING)&&(0,n.jsx)(aU,{}),t===m.ej.INTERMEDIATE_AND_ADVANCED_TRAINING&&(0,n.jsx)(aq,{})]})},aZ=e=>{let{whatsThisStudyLike:t,description:a,qualificationLevel:i}=e;return(0,n.jsxs)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:[(0,n.jsx)(s.xvT,{"data-testid":"whats-this-study-or-training-like-introduction",children:a}),(0,n.jsx)(s.izJ,{mt:{base:6,md:12},mb:{base:6,md:8,lg:12}}),(0,n.jsxs)(s.Kqy,{direction:{base:"column",md:"row"},gap:"32px",separator:(0,n.jsx)(s.ncD,{borderColor:"brand.primary.300",css:{"@media print":{borderWidth:"1px",mx:4}}}),css:{"@media print":{flexDirection:"row",justifyContent:"center"}},children:[(0,n.jsxs)(s.kCb,{css:{flex:1,flexDir:"column"},"data-testid":"study-level-section",children:[(0,n.jsx)(s.X6q,{textStyle:"heading5-primary",as:"h3",css:{color:"brand.primary.900",mb:{base:6,md:8}},children:"Training level"}),(0,n.jsx)(s.E5y,{rangeMin:2,rangeMax:6,min:i.minimumLevel,max:i.maximumLevel}),(0,n.jsxs)(s.xvT,{css:{my:6},"data-testid":"study-level-section-description",children:[i.code===m.ej.ENTRY_TRAINING&&"Entry training can get you a New Zealand Certificate at Level 2 or 3.",i.code===m.ej.APPRENTICESHIP&&"An apprenticeship can get you a New Zealand Certificate at Level 4.",i.code===m.ej.INTERMEDIATE_AND_ADVANCED_TRAINING&&"Intermediate and advanced training can get you a New Zealand Certificate at Level 4, 5 or 6."]}),(0,n.jsx)(s.rUS,{"data-testid":"study-level-section-link",href:"/study-and-training/getting-qualifications/about-qualification-levels",textStyle:"paragraph-small-medium",color:"brand.global.700",css:{...s.WfI.basic,_hover:{color:"brand.global.800"},mb:{base:6,md:8}},children:"About qualification levels"})]}),(0,n.jsx)(s.kCb,{css:{flex:1,flexDir:"column"},children:(0,n.jsx)(aG,{code:i.code})})]}),(0,n.jsx)(s.izJ,{mt:{base:6,md:12},mb:{base:6,md:8,lg:12}}),(0,n.jsx)(af,{whatsThisStudyLike:t})]})},aG=e=>{let{code:t}=e;return(0,n.jsxs)(s.xuv,{"data-testid":"what-will-you-do-panel",children:[(0,n.jsx)(s.X6q,{textStyle:"heading5-primary",as:"h3",css:{color:"brand.primary.900",mb:{base:6,md:8}},children:"What you will do"}),(0,n.jsxs)(s.xvT,{children:[t==m.ej.APPRENTICESHIP?"Apprentices":"Trainees"," usually"]}),(0,n.jsxs)(s.aVo.fC,{variant:"bulletList",ml:1,css:{"@media print":{colorAdjust:"exact"}},children:[(0,n.jsxs)(s.HCh,{children:["learn"," ",t==m.ej.INTERMEDIATE_AND_ADVANCED_TRAINING&&"technical skills ","on the job"]}),(0,n.jsx)(s.HCh,{children:"do courses in person or online"}),(0,n.jsx)(s.HCh,{children:"do practical and written assessments"})]})]})};function aJ(e){return e.map(e=>({...e,withLearnMore:!1,tag:!e.illustration&&"Guide"}))}let aV=e=>e.filter(e=>!!e.code&&!!e.name&&!!e.website),aX=e=>e&&(null==e?void 0:e.reduce((e,t,a)=>{let{minorClassifications:i,...r}=t,n=i.map(e=>{let{tasks:t,nameMaori:a,description:i,sortOrder:r,...n}=e;return n}),s={...r,children:n.map(e=>{let{code:t,nameEnglish:a,url:i}=e;return{code:t,nameEnglish:a,url:i}})};return a%2==0?e.push([s]):e[e.length-1].push(s),e},[])),aK=(e,t)=>e.sort((e,a)=>(e.sortOrder<t)-(a.sortOrder<t)||e.sortOrder-a.sortOrder),a$=e=>{var t,a;let{pageData:i,navigationData:r,footerData:o,occupationData:d,alertData:c}=e,u=aX(d.majorWorkCategories),h=null===(t=i.meta)||void 0===t?void 0:t.searchDescription,p={title:(null===(a=i.meta)||void 0===a?void 0:a.seoTitle)||i.title,de
1scription:h};return(0,n.jsx)(l.A,{title:i.title,footer:(0,n.jsx)(s.$_C,{data:o,topSection:i.footerCallToAction,gap:{backgroundColor:"brand.primary.700",theme:i.meta.sectionTheme}}),alertData:c,navigationData:r,nav:(0,n.jsx)(s.h4i,{lightForeground:!0,breadcrumbs:i.breadcrumbs}),meta:p,children:(0,n.jsxs)(s.f6W,{theme:i.meta.sectionTheme,children:[(0,n.jsxs)(s.xuv,{css:{pb:{base:"48px",md:"96px"}},bgColor:"brand.primary.600",children:[(0,n.jsx)(s.CDE,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:i.meta.pattern,...i}),(0,n.jsx)(g.oL,{topicId:"work",placeholder:"Search career ideas"})]}),(0,n.jsxs)(s.xuv,{css:{bg:"brand.primary.200",pb:{base:8,md:16,lg:14}},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:{base:"inline-block",lg:"flex"},columnGap:"24px",py:{base:8,md:16,lg:14}},children:(0,n.jsx)(s.ALS,{"data-testid":"browse-by-category-heading",headingLevel:"h2",headingMi:"Tirotiro mā te kāwai",headingEn:"Browse by category",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"})})}),u&&(0,n.jsx)(s.zve,{"data-testid":"accordion-grid-block",accordion:u})]}),i.relatedContent&&(0,n.jsx)(ai.J,{guides:i.relatedContent})]})})};var a0=a(21295),a1=a(83913),a2=a(36051),a4=a(46152),a6=a.n(a4),a3=a(42703);let a8=(0,a1.S)("Trouble connecting with Trade Me and Seek."),a5=(0,a1.j)(a2.T,{body:a8,subject:"Trouble connecting with Trade Me and Seek."});(i=r||(r={}))[i.TRADEME=0]="TRADEME",i[i.SEEK=1]="SEEK";let a7=e=>{var t,a;let{selectedRegions:i,findAJobPageData:l}=e,[o,d]=(0,p.useState)(0),[c,u]=(0,p.useState)(0),[h,g]=(0,p.useState)(Object.values(r).filter(e=>!isNaN(Number(e)))),{status:x,data:b,isError:j}=(0,m.o3)({jobCode:l.code,regionsSelected:i.map(e=>Number(e))}),v=[null==b?void 0:b.seek,null==b?void 0:b.trademe].reduce((e,t)=>e+((null==t?void 0:t.availableJobListings)||0),0),y=e=>"Updated ".concat((0,a3.NV)(e>=60?Math.floor(e/60):e,e>=60?"hour":"minute")," ago");(0,p.useEffect)(()=>{var e;d(Math.max(0,Math.floor((new Date().getTime()-new Date((null==b?void 0:null===(e=b.seek)||void 0===e?void 0:e.dateRetrieved)||new Date).getTime())/6e4)))},[null==b?void 0:b.seek]),(0,p.useEffect)(()=>{var e;u(Math.max(0,Math.floor((new Date().getTime()-new Date((null==b?void 0:null===(e=b.trademe)||void 0===e?void 0:e.dateRetrieved)||new Date).getTime())/6e4)))},[null==b?void 0:b.trademe]),(0,p.useEffect)(()=>{let e=setInterval(()=>{d(e=>e+1),u(e=>e+1)},6e4);return()=>clearInterval(e)},[]);let f={};(null==b?void 0:null===(t=b.trademe)||void 0===t?void 0:t.availableJobListings)!==0&&(f[0]=(0,n.jsx)(s.thV,{headingEn:"Trade Me Jobs",headingLevel:3,description:"".concat(null==b?void 0:b.trademe.availableJobListings," related ").concat((null==b?void 0:b.trademe.availableJobListings)===1?"job ad":"job ads"),lastUpdated:y(c),jobsProvider:"Browse jobs on Trade Me",illustration:{altTextEn:"alt text",url:"/trademe.svg"},url:(null==b?void 0:b.trademe.externalSearchUrl)||"",isLoading:"loading"===x},0)),(null==b?void 0:null===(a=b.seek)||void 0===a?void 0:a.availableJobListings)!==0&&(f[1]=(0,n.jsx)(s.thV,{headingEn:"SEEK",headingLevel:3,description:"".concat(null==b?void 0:b.seek.availableJobListings," related ").concat((null==b?void 0:b.seek.availableJobListings)===1?"job ad":"job ads"),lastUpdated:y(o),jobsProvider:"Browse jobs on SEEK",illustration:{altTextEn:"alt text",url:"/seek.svg"},url:(null==b?void 0:b.seek.externalSearchUrl)||"",isLoading:"loading"===x},1)),(0,p.useEffect)(()=>{g(a6()(h))},[]);let k=[];for(let e of h)f[e]&&k.push(f[e]);return(0,n.jsx)(s.rjZ,{children:(0,n.jsxs)(s.P4e,{gridColumn:s.t4e.panel,children:[(0,n.jsx)(s.kCb,{"data-testid":a9.jobAdsMessage,css:{mt:9,mb:8},children:("loading"===x?(0,n.jsx)(s.xvT,{color:"brand.neutrals.100",children:"Loading..."}):j?(0,n.jsxs)(s.xvT,{color:"brand.neutrals.100",children:["We're having trouble connecting with Trade Me and Seek.",(0,n.jsx)("br",{}),"Come back later or email us at"," ",(0,n.jsx)(s.rUS,{textDecoration:"underline",href:a5,children:a2.T})]}):void 0)||0===v&&(0,n.jsxs)(s.xvT,{color:"brand.neutrals.100",children:[(0,n.jsx)("strong",{children:"0 job ads"})," related to ",l.titleEnglish," ","were found on Trade Me Jobs and SEEK today.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"You might find more job ads on recruitment and other job websites."]})||(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(s.xuv,{display:"inline",children:[(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph-bold",color:"brand.neutrals.100",css:{mr:"4px"},children:"".concat(v," job ").concat(1===v?"ad":"ads")}),(0,n.jsx)(s.xvT,{as:"span",color:"brand.neutrals.100",children:"related to ".concat(l.titleEnglish)})]})})}),"error"!==x&&(0,n.jsxs)(s.kCb,{css:{gap:{base:4,sm:6},flexDirection:{base:"column",md:"row"}},children:[k,k.length%2==1&&(0,n.jsx)(s.kCb,{css:{flex:1,px:6}})]})]})})},a9={jobAdsMessage:"job-ads-message"};var ie=a(13754),it=a(3440),ia=a.n(it),ii=a(84636),ir=a.n(ii);let is="job-resources-section",il=e=>{let{jobBoards:t}=e,a=iu(t);return(0,n.jsxs)(s.W20,{testId:"job-resources-section",children:[(0,n.jsx)(s.ALS,{headingLevel:"h2",headingMi:"Ngā paetukutuku taritari kaimahi, tuku mahi hoki",headingEn:"Recruitment and other job websites",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"}),(0,n.jsx)(s.xuv,{textStyle:"paragraph-regular",css:{mt:3,mb:{base:10,md:12}},children:"Browse specialist recruitment agencies and job listings for more options"}),(0,n.jsx)(s.xuv,{css:{my:{base:6,md:8}},"data-testid":"anchor-links",children:(0,n.jsx)(s.GSM,{links:a.map(e=>({title:e.headingEn,href:(0,s.uLb)("#".concat(e.headingEn))}))})}),a.map(e=>(0,n.jsx)(io,{headingEn:e.headingEn,headingMi:e.headingMi,children:(0,n.jsx)(id,{groupBy
1Field:e.groupField,groups:e.groupings})},e.headingEn))]})},io=e=>{let{headingEn:t,headingMi:a,children:i}=e;return(0,n.jsxs)(s.xuv,{id:(0,s.uLb)(t),backgroundColor:"brand.primary.100",borderRadius:4,css:{px:{base:4,sm:8},py:{base:6,sm:8},mb:12,_last:{mb:0}},children:[(0,n.jsx)(s.X6q,{as:"h3",textStyle:"heading6-primary",children:t}),(0,n.jsx)(s.X6q,{as:"h3",textStyle:"heading6-geograph",color:"brand.primary.600",lang:"mi",mb:7,children:a}),i]},t)},id=e=>{let{groupByField:t,groups:a}=e,[i,r]=p.useState([]);return(0,n.jsx)(s.UQy.fC,{multiple:!0,value:i,onValueChange:e=>{let{value:t}=e;return r(t)},children:Object.entries(a).map(e=>{let[a,r]=e,l="regionCode"===t?(0,n.jsx)(ih,{en:r[0].regionNameEnglish,mi:r[0].regionNameMaori}):(0,n.jsx)(s.xvT,{as:"span",children:r[0][t]});return(0,n.jsxs)(s.UQy.ck,{value:a,children:[(0,n.jsxs)(s.UQy.HO,{pl:0,children:[(0,n.jsx)(s.xuv,{flex:"1",textAlign:"left",children:l}),(0,n.jsx)(s.XEm,{type:"chevron",expanded:i.includes(a),size:"tiny",mr:4})]}),(0,n.jsx)(s.UQy.IU,{px:0,children:(0,n.jsx)(ic,{jobs:r.map(e=>({...e,title:e.titleEn}))})})]},a)})})},ic=e=>{let{jobs:t}=e;return(0,n.jsx)(s.rjZ,{gridTemplateColumns:{base:"auto",sm:"repeat(3, 1fr)"},gap:6,css:{width:"auto",my:4},children:t.map((e,t)=>(0,n.jsxs)(s.P4e,{children:[(0,n.jsx)(s.rUS,{href:e.websiteAddress,isExternal:!0,variant:"underlineStrong",css:{color:"brand.primary.600"},children:e.title}),(0,n.jsx)(s.xuv,{dangerouslySetInnerHTML:{__html:e.description}})]},t))})},iu=e=>{let t=e.map(e=>{var t,a,i;return{...e,regionCode:null===(t=e.region)||void 0===t?void 0:t.code,regionNameEnglish:null===(a=e.region)||void 0===a?void 0:a.nameEnglish,regionNameMaori:null===(i=e.region)||void 0===i?void 0:i.nameMaori}});return[{headingEn:"Industry",headingMi:"Ahumahi",groupField:"industry"},{headingEn:"Region",headingMi:"Rohe",groupField:"regionCode"},{headingEn:"Specialist",headingMi:"Mātanga",groupField:"specialty"}].map(e=>({...e,groupings:ia()(t.filter(t=>t[e.groupField]),e.groupField)})).filter(e=>Object.keys(e.groupings).length>0)},ih=e=>{let{en:t,mi:a}=e,i=ir()([["mi",a],["en",t]].filter(e=>!!e),e=>{let[,t]=e;return t});return(0,n.jsx)(n.Fragment,{children:i.map(e=>{let[t,a]=e;return(0,n.jsx)(s.xvT,{as:"span",lang:t,children:a},a)}).map((e,t)=>(0,n.jsxs)(s.xuv,{as:"span",children:[e,t<i.length-1?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.TXu,{children:", "}),(0,n.jsx)(s.xvT,{as:"span",css:{color:"brand.neutrals.400"},"aria-hidden":!0,children:"\xa0|\xa0"})]}):void 0]},t))})};var ip=a(35089);let ig=e=>{let{pageData:t,navigationData:a,footerData:i,findAJobPageData:r,alertData:o}=e,d=(0,t7.Z)(),c="job-ads-section",{isDesktop:u}=(0,s.kCD)(),h=r.regions.filter(e=>e.code!==ip.eT),[g,x]=(0,p.useState)(h.map(e=>e.code)),b=tF(h),j={secondLabel:"All New Zealand",firstLabel:"Aotearoa",code:"NZ"},v=tL(g,j,b),{status:y,data:f}=(0,m.yy)(r.code),k=null!=f?f:0,w=t.introduction,C={title:t.title,description:tm()(w)};return(0,p.useEffect)(()=>{if("success"===y){let e=d.hash;if(e){let t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})}}},[y,d.hash]),(0,n.jsx)(l.A,{title:t.title,footer:(0,n.jsx)(s.$_C,{data:i,gap:{backgroundColor:"brand.primary.700",theme:t.meta.sectionTheme},topSection:t.footerCallToAction}),alertData:o,navigationData:a,nav:(0,n.jsx)(s.h4i,{lightForeground:!0,breadcrumbs:t.breadcrumbs}),meta:C,children:(0,n.jsxs)(s.f6W,{theme:t.meta.sectionTheme,children:[(0,n.jsxs)(s.xuv,{bgColor:"brand.primary.600",pb:{base:10,lg:24},children:[(0,n.jsx)(s.CDE,{"data-testid":"page-heading",isFeaturedIntroduction:!0,titleLevel:1,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:t.meta.pattern,title:r.titleEnglish,maoriTitle:r.titleMaori,introduction:r.description,...t}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{css:{pb:4},gridColumn:s.t4e.panel,children:(0,n.jsx)(s.GSM,{links:[{title:"Job ads",href:"#".concat(c)},{title:"Recruitment and other job websites",href:"#".concat(is)}],color:"brand.primary.100"})})})]}),(0,n.jsx)(s.xuv,{background:"brand.primary.700",children:(0,n.jsxs)(s.W20,{children:[(0,n.jsx)(s.kCb,{id:c,"data-testid":im.jobAdsSection,css:{pt:16},children:(0,n.jsx)(s.ALS,{headingLevel:"h3",headingMi:"Ngā pānuitanga mahi",headingEn:"Job ads",colorThemeMi:!0,colorThemeEn:!0,textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary",spaceBelow:3})}),0===k&&(0,n.jsx)(s.kCb,{css:{pb:{base:12,lg:20}},...(0,s.Mir)(im.jobAdsNoResultsMessage),children:(0,n.jsxs)(s.xvT,{color:"brand.neutrals.100",children:[(0,n.jsx)("strong",{children:"0 job ads"})," related to"," ",r.titleEnglish," were found on Trade Me Jobs and SEEK today.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"You might find more job ads on recruitment and other job websites."]})})]})}),0!==k&&(0,n.jsxs)(s.xuv,{bgColor:"brand.primary.700",pb:{base:15,sm:16,lg:20},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,pt:{base:8,md:7},css:{display:"flex",flexDir:"column"},children:(0,n.jsx)(s.rjZ,{gridTemplateColumns:{base:"1fr",md:"repeat(2, 1fr)"},css:{my:2,width:"100%"},children:(0,n.jsxs)(s.pgx.fC,{theme:"light",children:[(0,n.jsx)(s.pgx.De,{children:"Filter by regions"}),(0,n.jsx)(s.YcF,{isBilingual:!0,id:"region",selectedOption:v,selectAllOption:j,options:b,selected:g,theme:"work",onChange:e=>{g.includes(e)&&1===g.length?x([]):x([e])},onSelectAll:e=>{"select"===e?x(h.map(e=>e.code)):"deselect"===e&&x([])},ctaLabel:"View results"})]})})})}),(0,n.jsx)(a7,{findAJobPageData:r,selectedRegions:g})]}),(0,n.jsxs)(s.xuv,{id:is,css:{my:{base:16,md:10,lg:16},scrollMarginTop:{base:"-80px",md:0}},children:[(0,n.jsx)(il,{jobBoards:r.jobBoards}),(0,n.jsx)(s.W20,{children:(0,n.jsx)(s.zV6,{isDesktop:u,anchorId:is,mt:{base:6,sm:8,lg:12}})})]}),t.relatedContent&&(0,n.jsx)(ai.J,{guides:t.relatedContent})]})})},im={jobAdsSection:"job-ads-section",jobAdsNoResultsMessage:"job-ads-no-result-message"};var ix=a(92405),ib=a(85701),ij=a.n(ib);let iv=e=>
1{let{headingMi:t,headingEn:a,content:i,ctaLink:r,ctaText:l,image:o}=e,d=(0,s.JZO)();return(0,n.jsx)(n.Fragment,{children:(t||a||i||r||l||o)&&(0,n.jsx)(s.vzF,{theme:"inspire",children:(0,n.jsxs)(aS.k,{css:{mt:12,px:6,py:12,background:"brand.primary.200",gap:8,flexDirection:{base:"column",sm:"row"},"@media print":{flexDirection:"row",border:"1px solid",borderColor:"brand.primary.200",pageBreakInside:"avoid"}},children:[o&&(0,n.jsx)(c.E,{src:o.url,alt:o.altTextEn,css:{alignSelf:"center",width:{base:"160px",sm:"240px"}}}),(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.Ysw,{headingLevel:"h3",headingMi:t,headingEn:a,textStyleAs:"h4"}),i&&(0,n.jsx)(s.xvT,{css:{my:6,textStyle:"paragraph-regular"},children:(0,n.jsx)(s.Taj,{html:i,allowedTags:v.T})}),r&&!d&&(0,n.jsx)(s.rUS,{href:r,variant:"primary",size:"regular",textStyle:"paragraph-medium",css:{"@media print":{display:"none"}},children:l})]})]})})})};var iy=a(51525),ik=a.n(iy),iw=a(15384);let iC=e=>({interestsData:ij()(e6()(e,e=>e.occupation,"desc"),3).map(e=>{let t=s.wdd[e.riasec];return{...e,occupation:(0,iw.jY)(e.occupation),user:e.user?(0,iw.jY)(e.user):void 0,color:t.heading,iconColor:t.icon}}),hasUserRiasec:ik()(e,e=>e.user)}),iT=e=>{let{interests:t,language:a,...i}=e,r=(0,p.useMemo)(()=>iC(t),[t]);return(0,n.jsx)(s.P4e,{...(0,s.Mir)(iH.interestsSection),gridColumn:s.t4e.panel,children:(0,n.jsxs)(s.vzF,{theme:"inspire",children:[r&&(0,n.jsx)(iM,{interests:r.interestsData,...i}),r.hasUserRiasec?(0,n.jsx)(iB,{...i}):(0,n.jsx)(iv,{content:i.interestDriverExplainer,ctaLink:i.interestDriverPrimaryButtonLink,ctaText:i.interestDriverPrimaryButtonText,headingEn:"mi"===a?void 0:i.interestDriverHeadingEn,headingMi:i.interestDriverHeadingMi,image:i.interestDriverImage})]})})},iS=()=>(0,n.jsx)(s.xuv,{gridColumn:"1 / span 4",css:{width:"100%"},children:(0,n.jsx)(s.izJ,{color:"themes.work.primary.300"})}),iM=e=>{let{interests:t,...a}=e,i=(0,an.S)({base:!1,sm:!0});return(0,n.jsx)(n.Fragment,{children:i?(0,n.jsx)(iE,{interests:t,...a}):(0,n.jsx)(iD,{interests:t,...a})})},iE=e=>{let{interests:t,...a}=e;return(0,n.jsxs)(x.r,{gridTemplateColumns:"auto repeat(".concat(t.length,", 1fr)"),gap:8,alignItems:"center",justifyItems:"center",children:[(0,n.jsx)(s.xuv,{}),t.map((e,t)=>{let{name:a,tooltip:i,color:r}=e;return(0,n.jsxs)(aS.k,{children:[(0,n.jsx)(s.xvT,{css:{textStyle:"paragraph-bold",mr:2,color:r},children:a}),(0,n.jsx)(iz,{tooltip:i})]},t)}),(0,n.jsx)(iS,{}),(0,n.jsx)(iP,{label:a.interestJobRowText}),t.map((e,t)=>{let{occupation:a,iconColor:i}=e;return(0,n.jsx)(iA,{color:i,percentage:a},t)}),ik()(t.map(e=>e.user))&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(iP,{label:a.knownInterestUserRowText}),t.map((e,t)=>{let{user:a,iconColor:i}=e;
1return(0,n.jsx)(iA,{percentage:a,color:i},t)})]}),(0,n.jsx)(iS,{})]})},iD=e=>{let{interests:t,...a}=e;return ik()(t,e=>e.user)?(0,n.jsx)(iL,{interests:t,...a}):(0,n.jsx)(iI,{interests:t,...a})},iL=e=>{let{interests:t,...a}=e;return(0,n.jsx)(aS.k,{css:{gap:6,flexDirection:"column"},children:t.map((e,t)=>{let{name:i,tooltip:r,color:l,iconColor:o,occupation:d,user:c}=e;return(0,n.jsxs)(p.Fragment,{children:[(0,n.jsxs)(aS.k,{children:[(0,n.jsx)(s.xvT,{css:{textStyle:"paragraph-bold",mr:2,color:l},children:i}),(0,n.jsx)(iz,{tooltip:r})]}),(0,n.jsxs)(x.r,{gridTemplateColumns:"min-content auto",css:{gap:6,alignItems:"center"},children:[(0,n.jsx)(iA,{percentage:d,color:o}),(0,n.jsx)(iP,{label:a.interestJobRowText}),void 0!==c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(iA,{percentage:c,color:o}),(0,n.jsx)(iP,{label:a.knownInterestUserRowText})]})]}),(0,n.jsx)(iS,{})]},t)})})},iI=e=>{let{interests:t,...a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.xvT,{css:{textStyle:"heading5-geograph",mb:8,color:s.gPC.work[900]},children:a.interestJobRowText}),(0,n.jsx)(aS.k,{css:{gap:6,flexDirection:"column"},children:t.map((e,t)=>{let{name:a,tooltip:i,color:r,iconColor:l,occupation:o}=e;return(0,n.jsxs)(x.r,{gridTemplateColumns:"min-content auto",css:{gap:6,alignItems:"center"},children:[(0,n.jsx)(iA,{percentage:o,color:l}),(0,n.jsxs)(aS.k,{children:[(0,n.jsx)(s.xvT,{css:{textStyle:"paragraph-bold",mr:2,color:r},children:a}),(0,n.jsx)(iz,{tooltip:i})]})]},t)})})]})},iP=e=>{let{label:t}=e;return(0,n.jsx)(s.xvT,{css:{textStyle:"heading6-primary",justifySelf:"start",color:s.gPC.work[900]},children:t})},iA=e=>{let{percentage:t,color:a}=e;return(0,n.jsx)(s.xuv,{css:{w:"50px"},children:void 0!==t&&(0,n.jsx)(s.T5B,{value:(0,s.uQY)(t),color:a})})},iz=e=>{let{tooltip:t}=e;return(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsx)(s.L_Y,{tooltipText:t,displayText:""})})},iB=e=>{let{knownInterestExplainer:t,knownInterestTertiaryButtonText:a,inspireMeQuizResultsUrl:i}=e;return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)(s.xvT,{css:{mt:8,mb:{base:8,sm:6}},children:(0,n.jsx)(s.Taj,{html:t,allowedTags:v.T})}),i&&(0,n.jsx)(s.rUS,{href:i,variant:"primary",size:"regular",css:{fontWeight:"500","@media print":{display:"none"}},children:a})]})},iH={interestsSection:"inspire-me-interests-section"};var iF=a(87622),iR=a.n(iF);let iN=e=>{let{occupation:t,user:a,dimensions:i}=e,r=iR()(i,e=>e.letter.toLowerCase());return Object.entries(t).map(e=>{let[t,i]=e,n=r[t];if(n)return{riasec:t,name:n.heading,tooltip:n.shortDescription,occupation:i,user:a?a[t]:void 0}}).filter(s.Dw5)};var iW=a(59799),iO=a(68801),iq=a(49547);let iU=e=>{let{pageData:t,occupationRiasec:a,language:i}=e,r=i_(a,t.inspireMeQuizResultsUrl);return(0,n.jsx)(iT,{...t,inspireMeQuizResultsUrl:r.inspireMeResultsUrl,interests:null==r?void 0:r.interests,language:i})},i_=(e,t,a)=>{let i=(0,iW.I)(),{local:{result:r}}=(0,iq.i3)(),n=(0,m.JP)();if(!n.data)return{interests:void 0,inspireMeQuizPageUrl:a,inspireMeResultsUrl:void 0};if(i){let t=(0,iO.X)(i.detail.riasec_1To_7);return{interests:e?iN({occupation:e,user:t,dimensions:n.data}):void 0,inspireMeResultsUrl:i.url,inspireMeQuizPageUrl:a}}{let i=e?iN({occupation:e,user:null==r?void 0:r.riasec,dimensions:n.data}):void 0;return r?{interests:i,inspireMeResultsUrl:"".concat(t,"/").concat(r.code),inspireMeQuizPageUrl:a}:{interests:i,inspireMeResultsUrl:void 0,inspireMeQuizPageUrl:a}}};var iQ=a(36383);let iY=e=>{let{duration:t,linkText:a,linkUrl:i,heading:r,noDataAvailableMessage:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.kCb,{direction:"column",alignItems:"center",children:[(0,n.jsx)(s.X6q,{textStyle:"heading6-primary",as:"h3",color:"brand.primary.700",p:2,mb:6,children:r}),(0,n.jsx)(s.JO$,{icon:"Time",mb:4}),(0,n.jsx)(s.xvT,{textStyle:"paragraph-large-bold",color:"brand.primary.700",mb:6,...(0,s.Mir)(iZ.duration),children:null!=t?t:l})]}),a&&i&&(0,n.jsx)(s.xuv,{gridRow:"2",display:"flex",placeContent:"center",background:"brand.primary.200",width:"full",textAlign:"center",p:6,children:(0,n.jsx)(s.rUS,{href:i,variant:"underlineStrong",textStyle:"buttons-and-links-small",color:"brand.primary.700",isJumpLink:!0,children:a})})]})},iZ={duration:"training-duration"},iG=e=>{var t;let a,i,{pageData:r,navigationData:o,footerData:c,tecApiData:u,alertData:h}=e,[g,b]=(0,p.useState)(!1);(0,p.useEffect)(()=>{b(!0)},[]);let[j,v]=(0,iQ.Xs)(iX,u.isKaupapaMaori?"mi":"en"),y=V(r,a=u.isKaupapaMaori?g?j:"mi":"en"),f=V(u,a),{titleEnglish:k,titleMaori:w,titlePluralEnglish:C,titlePluralMaori:T,alternateTitles:S,descriptionEnglish:M,descriptionMaori:E,workActivitiesEnglish:D,workActivitiesMaori:L,relatedOccupations:I,relatedKaupapaOccupations:P,minorClassifications:A,profileVideo:z,profileImages:B,remunerationFrequency:H,remunerations:F,payDataAnnotations:R,availableJobListings:N,isKaupapaMaori:W,kaupapaDescriptionEnglish:O,kaupapaDescriptionMaori:q,lifeOnTheJobEnglish:U,lifeOnTheJobMaori:_,keteId:Q,jobInsights:Y}=f,Z=D&&(null==D?void 0:D.length)>0,G=L&&(null==L?void 0:L.length)>0;z?B[0]&&(i=B[0]):i=B[1]?B[1]:null;let J=null==o?void 0:null===(t=o.toolsState)||void 0===t?void 0:t.pathFinderEnabled,X=[{visibility:W,title:"Kaupapa",section:(0,n.jsx)(iJ,{lang:a,kaupapaDescriptionEnglish:O,kaupapaDescriptionMaori:q})},{title:(0,s.YIR)(a,"Ka aha koe i tēnei mahi?","What would you do in this job?"),section:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.GYC,{lifeOnTheJobList:"mi"===a?_:U,titlePlural
1:"mi"===a?T:C,lifeOnTheJobImage:i}),(0,n.jsx)(a0.h,{heading:(0,s.YIR)(a,"Ngā tūmahi","Tasks"),testId:"tasks-section",tasks:"mi"===a?L:D,hasTasks:"mi"===a?G:Z,tasksLimit:10,columnsLimit:2})]})},{visibility:!!y.inspireMeQuizResultsUrl&&!!u.riasec,title:(0,s.YIR)(a,"Ko ēhea kaingākau e hāngai ana ki tēnei mahi?","What interests fit this job?"),section:(0,n.jsx)(iU,{pageData:r,occupationRiasec:u.riasec?(0,m.q3)(u.riasec):void 0,language:a})},{title:(0,s.YIR)(a,"Me pēhea e uru ai koe ki tēnei mahi?","How can you get into this job?"),section:(0,n.jsx)(ie.c,{language:a,occupationProfileData:f,tryPathFinder:J?{occupationId:null!=Q?Q:"",occupationTitle:null!=k?k:void 0,headingEn:(0,s.YIR)(a,"","Path Finder"),headingMi:W?(0,s.YIR)(a,"Tiro Whetū",""):"Tiro Whetū",pathFinderText:W?(0,s.YIR)(a,"Kitea ngā hipanga e tutuki ai tēnei whakaaro aramahi.","Discover the steps to this career idea."):"Discover the steps to this career idea.",buttonText:(0,s.YIR)(a,"Whakamātauria a Tiro Whetū","Try Path Finder")}:void 0})}],K=[...I].sort((e,t)=>e.titleEnglish.localeCompare(t.titleEnglish)),$=[...P||[]].sort((e,t)=>e.titleMaori.localeCompare(t.titleMaori)),{nameEnglish:ee,nameMaori:et}=A[0],ea=z?void 0:B[0],ei=F&&(null==F?void 0:F.length)>0&&F.some(e=>e.midLowerBound&&e.midUpperBound),{internalLink:er,averageTooltipText:en,taxTooltipText:es,noPayText:el}=R,{data:eo,isLoading:ed,isError:ec}=(0,m.Fy)({regionCountsEndpoint:y.regionCountsEndpoint}),eu=(0,n.jsx)(s.xuv,{backgroundColor:"brand.primary.100",css:{pt:{base:8,md:12,lg:16},pb:{base:12,md:16,lg:24}},children:(0,n.jsxs)(s.kCb,{justifyContent:"center",children:[(0,n.jsx)(s.$jN,{css:{width:12,height:12,color:"brand.primary.500"}}),(0,n.jsx)(s.TXu,{"aria-live":"polite",children:"Loading job ads"})]})}),eh=(0,n.jsx)(s.xuv,{backgroundColor:"brand.primary.100",css:{pt:{base:8,md:12,lg:16},pb:{base:12,md:16,lg:24}},children:"Uh oh! We couldn’t find available job ads."}),ep=y.occupationProfileTrainingDurationEnabled&&f.trainingDuration,eg=(0,s.JZO)(),em=(0,a3.lc)(k,w),ex=(0,s.EGt)(null==Y?void 0:Y.peopleEmployedCount);return(0,n.jsx)(l.A,{title:y.title,footer:(0,n.jsx)(s.$_C,{data:c,gap:{backgroundColor:"brand.primary.700",theme:y.meta.sectionTheme},topSection:y.footerCallToAction}),alertData:h,navigationData:o,nav:(0,n.jsx)(d.m,{breadcrumbs:y.breadcrumbs,sectionTheme:y.meta.sectionTheme,keteId:u.keteId}),meta:{title:em,description:M},children:(0,n.jsxs)(s.f6W,{theme:y.meta.sectionTheme,children:[(0,n.jsx)(s.xuv,{bgColor:"brand.primary.200",children:(0,n.jsx)(s.eHE,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.600",colorEnglishTitle:"brand.primary.900",colorDescription:"brand.neutrals.900",pattern:y.meta.pattern,title:k,maoriTitle:w,isKaupapaMaori:W,aliases:S,descriptionEnglish:M,descriptionMaori:E,profileVideo:z,profileImage:ea,language:a,setLanguage:v,isLoaded:g})}),(0,n.jsx)(s.W20,{...(0,s.Mir)("pay-and-training-section"),fullWidthBackgroundColor:"brand.primary.100",mt:{base:8,md:12,lg:16},children:(0,n.jsxs)(x.r,{...(0,s.Mir)("pay-and-training-grid"),gridTemplateColumns:{base:"auto",md:ep?"3fr auto 2fr":"auto"},gridTemplateRows:{base:"auto auto auto"},columnGap:{base:8,md:6,lg:12},pb:{base:8,md:14},children:[(0,n.jsx)(s.P4e,{...(0,s.Mir)("pay-summary"),gridColumn:"1",gridRow:"1",children:(0,n.jsx)(s.xhD,{initialRemunerationFrequency:H,remunerations:F,language:a})}),(0,n.jsx)(s.P4e,{...(0,s.Mir)("pay-overview-block"),gridColumn:"1",gridRow:"2",children:R&&(0,n.jsx)(s.b79,{url:er.url,averageTooltipText:en,taxTooltipText:es,hasRemunerations:ei,noPayText:el,language:a})}),ep&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.P4e,{gridRow:"span 2",children:(0,n.jsx)(s.izJ,{color:"brand.neutrals.300",orientation:{base:"horizontal",md:"vertical"},height:"full",my:{base:8,md:0}})}),(0,n.jsx)(s.P4e,{...(0,s.Mir)("training-section"),display:"grid",gridTemplateRows:"subgrid",gridRow:"span 2",children:(0,n.jsx)(iY,{heading:(0,s.YIR)(a,y.occupationProfileTrainingDurationHeadingMi,y.occupationProfileTrainingDurationHeadingEn),duration:f.trainingDuration,linkText:(0,s.YIR)(a,y.occupationProfileTrainingDurationJumpLinkTextMi,y.occupationProfileTrainingDurationJumpLinkTextEn),linkUrl:"mi"===a?"#me-pehea-e-uru-ai-koe-ki-tenei-mahi":"#how-can-you-get
1-into-this-job",noDataAvailableMessage:y.occupationProfileTrainingDurationNoDataAvailable})})]})]})}),(0,n.jsx)(s.xuv,{backgroundColor:"brand.neutrals.100",css:{pt:{base:8,md:12,lg:16},pb:{base:12,md:16,lg:24}},children:(0,n.jsx)(s.$wW,{multiple:!0,pattern:y.meta.patternSmall,accordion:X.map(e=>({value:e.title,visibility:e.visibility,headingEn:e.title,headingLevel:2,section:e.section}))})}),y.jobInsightsEnabled&&(0,n.jsx)(s.NVH,{topColor:"brand.neutrals.100",bottomColor:"brand.primary.100",children:(0,n.jsx)(s.xuv,{css:{py:{base:6,md:8,lg:10},px:{base:6,md:10,lg:0}},children:(0,n.jsx)(s.xuv,{css:{width:"100%",maxWidth:{base:"none",md:"none",lg:"660px"},mx:"auto"},...(0,s.Mir)("job-insights-block"),children:(0,n.jsx)(s.s41,{headingEn:y.jobInsightsHeadingEn,headingMi:y.jobInsightsHeadingMi,peopleEmployedLabel:y.jobInsightsPeopleEmployedLabel,employmentChangeLabel:y.jobInsightsEmploymentChangeLabel,peopleEmployedTooltipText:y.jobInsightsPeopleEmployedTooltipText,employmentChangeTooltipText:y.jobInsightsEmploymentChangeTooltipText,peopleEmployedCount:ex,employmentChangeCode:null==Y?void 0:Y.employmentChangeCode,showPeopleEmployed:null==Y?void 0:Y.showPeopleEmployed,showEmploymentChangeCode:null==Y?void 0:Y.showEmploymentChangeCode,jobInsightsNoDataText:y.jobInsightsNoDataText,jobInsightsGrowthTrendLabelDecrease:y.jobInsightsGrowthTrendLabelDecrease,jobInsightsGrowthTrendLabelSteady:y.jobInsightsGrowthTrendLabelSteady,jobInsightsGrowthTrendLabelIncrease:y.jobInsightsGrowthTrendLabelIncrease,jobInsightsGrowthTrendLabelStrongIncrease:y.jobInsightsGrowthTrendLabelStrongIncrease,jobInsightsGrowthTrendLabel:y.jobInsightsGrowthTrendLabel})})})}),(0,n.jsx)(s.xuv,{css:{backgroundColor:"brand.primary.100","@media print":{display:"none"}},children:(0,n.jsx)(s.rjZ,{id:"find-a-job",children:(0,n.jsxs)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:[ed&&eu,ec&&eh,eo&&eo.regionalCounts&&(0,n.jsx)(s.XG$,{title:k,availableJobListings:N,lowRange:0,medRange:2,upperRange:4,topRange:6,mapRegions:eo.regionalCounts,url:y.jobsUrl,jobResourcesSectionId:is})]})})}),J&&(0,n.jsx)(s.vzF,{theme:"plan",children:(0,n.jsx)(s.W20,{fullWidthBackgroundColor:"brand.primary.200",testId:iK.tryPathFinderContainer,children:(0,n.jsx)(s.xuv,{py:{base:12,md:16},css:{"@media print":{py:"48px",border:"1px solid",borderColor:"brand.primary.200",display:"none"}},children:(0,n.jsx)(ix.f,{occupationId:f.keteId,occupationTitle:f.titleEnglish,headingEn:"Path Finder",headingMi:"Tiro Whetū",pathFinderText:"Discover the steps to this career idea.",buttonText:"Try Path Finder"})})})}),(0,n.jsx)(s.xuv,{id:"other-career-ideas",css:{"@media print":{display:"none"}},children:(0,n.jsx)(iV,{bgColor:"brand.primary.300",headingMi:"Ētahi atu huatau aramahi i ".concat(et),headingEn:"Other career ideas in ".concat(ee),occupations:K,isKaupapaMaori:!1})}),!eg&&W&&(0,n.jsx)(iV,{bgColor:"brand.primary.200",headingMi:"Ētahi atu whakaaro mō ngā aramahi kaupapa Māori",headingEn:"Other kaupapa Māori career ideas",occupations:$,isKaupapaMaori:!0}),!eg&&y.relatedContent&&(0,n.jsx)(ai.J,{guides:y.relatedContent})]})})},iJ=e=>{let{lang:t,kaupapaDescriptionEnglish:a,kaupapaDescriptionMaori:i}=e;return(0,n.jsx)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s._cU,{"data-testid":"kaupapa-accordion-section",css:{textStyle:"paragraph-small",whiteSpace:"pre-line"},content:(0,s.YIR)(t,i,a)})})},iV=e=>{let{bgColor:t,headingEn:a,headingMi:i,occupations:r,isKaupapaMaori:l}=e;return(0,n.jsx)(s.xuv,{bgColor:t,"data-testid":l?"related-kaupapa-occupations-section":"related-occupations-section",css:{"@media print":{display:"none"}},children:(0,n.jsxs)(s.rjZ,{children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:{base:"inline-block",lg:"flex"},columnGap:"24px",pt:{base:8,md:16},pb:8},children:(0,n.jsx)(s.ALS,{"data-testid":l?"related-kaupapa-occupations-heading":"related-occupations-heading",headingLevel:"h2",headingMi:i,headingEn:a,textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:"flex",columnGap:"24px",mb:{base:12,md:16}},children:r&&(0,n.jsx)(s.pUR,{id:l?"occupations-kaupapa":"occupations-career-ideas",occupations:r,cardsSubject:"career ideas",initialLimit:6,initialLimitMobile:4,keteFactory:w.E})})]})})},iX="occupation-profile-language",iK={tryPathFinderContainer:"try-path-finder-container"},i$=e=>{let{pageData:t,navigationData:a,footerData:i,minorWorkCategoryData:r,alertData:o}=e,u=(0,an.S)({base:!0,xs:!0,sm:!0,md:!1}),h=(0,an.S)({base:!1,xs:!1,sm:!1,md:!0,lg:!1}),p=r.images,g=(null==p?void 0:p.length)>0,m=(null==p?void 0:p.length)===1,b=(null==p?void 0:p.length)===2,j=r.tasks,v=j&&(null==j?void 0:j.length)>0,y=[...r.occupations].sort((e,t)=>
1e.titleEnglish.localeCompare(t.titleEnglish)),f=e=>u?e.imgMobile:h?e.imgTablet:e.imgDesktop,k={title:r.nameEnglish,description:r.description};return(0,n.jsx)(l.A,{title:t.title,footer:(0,n.jsx)(s.$_C,{data:i,gap:{backgroundColor:"brand.primary.700",theme:t.meta.sectionTheme},topSection:t.footerCallToAction}),alertData:o,navigationData:a,nav:(0,n.jsx)(d.m,{breadcrumbs:t.breadcrumbs,sectionTheme:t.meta.sectionTheme,keteId:r.keteId}),meta:k,children:(0,n.jsxs)(s.f6W,{theme:t.meta.sectionTheme,children:[(0,n.jsxs)(s.xuv,{css:{pb:g?10:{base:12,md:24},position:"relative",overflowY:"hidden"},bgColor:"brand.primary.200",children:[(0,n.jsx)(s.K0P,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.600",colorEnglishTitle:"brand.neutrals.900",colorDescription:"brand.neutrals.900",pattern:t.meta.pattern,title:r.nameEnglish,maoriTitle:r.nameMaori,introduction:r.description}),g&&(0,n.jsx)(s.xuv,{css:{mt:{base:12,lg:16}},children:!u||m?(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:m?"2 / span 10":"1 / span 12",xl:m?"3 / span 8":"2 / span 10"},children:(0,n.jsx)(x.r,{gridTemplateColumns:m?"lfr":b?"repeat(auto-fill, minmax(calc((100% - 2em) / 2), 1fr))":"repeat(auto-fill, minmax(calc((100% - 2em) / 3), 1fr))",css:{gap:4},children:p.map((e,t)=>(0,n.jsx)(c.E,{objectFit:"cover",w:"100%",h:"100%",alt:e.imageAltText,src:f(e),css:{borderRadius:"4px"}},"".concat(t,"-").concat(e.imageAltText)))})})}
1):(0,n.jsx)(s.lr9,{isLightBackground:!0,items:p,ariaLabelledby:"Images associated with ".concat(r.nameEnglish),itemsToDisplay:1,renderedItem:e=>(0,n.jsx)(c.E,{src:e.imgMobile,objectFit:"cover",w:"100%",alt:e.imageAltText,css:{borderRadius:"4px"}})})})]}),v&&(0,n.jsx)(s.NVH,{topColor:"brand.primary.200",bottomColor:"brand.primary.300",size:40,children:(0,n.jsx)(s.xuv,{css:{pb:{base:0,lg:6}},children:(0,n.jsx)(s.Uif,{headingEn:"You might",bulletList:j})})}),(0,n.jsx)(s.xuv,{bgColor:"brand.primary.300",children:(0,n.jsxs)(s.rjZ,{children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:{base:"inline-block",lg:"flex"},columnGap:"24px",pt:{base:8,md:16},pb:8},children:(0,n.jsx)(s.ALS,{"data-testid":"your-focus-heading",headingLevel:"h2",headingMi:"Ngā huatau aramahi",headingEn:"Career ideas",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald"})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{display:"flex",columnGap:"24px",mb:{base:12,md:16}},"aria-live":"polite",children:y&&(0,n.jsx)(s.pUR,{occupations:y,keteFactory:w.E,id:"occupations-career-ideas",cardsSubject:"career ideas",initialLimit:10})})]})}),(0,n.jsx)(i0,{minorWorkCategoryData:r})]})})},i0=e=>{var t,a,i;let{minorWorkCategoryData:r}
1=e,l=aK(r.relatedCategories,r.sortOrder);return(null===(t=r.relatedCategories)||void 0===t?void 0:t.length)===0?null:(0,n.jsx)(s.Bbb,{"data-testid":"carousel-block",id:"other-work-areas",backgroundColor:"brand.primary.700",headingLevel:2,headingMi:"Ētahi atu wāhi mahi i ".concat(null===(a=r.parent)||void 0===a?void 0:a.nameMaori),headingEn:"Other work areas in ".concat(null===(i=r.parent)||void 0===i?void 0:i.nameEnglish),items:l,renderedItem:e=>(0,n.jsx)(s.Zbd,{tag:"Work area",headingEn:e.nameEnglish,headingMi:e.nameMaori,cardContent:(0,n.jsx)(s.b3q,{description:e.description}),...e,headingLevel:3,keteFactory:e.keteId?{keteFactory:w.E,keteId:e.keteId}:void 0})})},i1=e=>{var t,a;let{pageData:i,navigationData:r,footerData:o,tecApiData:d,alertData:c}=e,u=[...d.jointLearningAreas].sort((e,t)=>e.sortOrder-t.sortOrder),h=null===(t=i.meta)||void 0===t?void 0:t.searchDescription,p={title:(null===(a=i.meta)||void 0===a?void 0:a.seoTitle)||i.title,description:tm()(h)};return(0,n.jsx)(l.A,{title:i.title,footer:(0,n.jsx)(s.$_C,{data:o,topSection:i.footerCallToAction,gap:{backgroundColor:"brand.primary.700",theme:i.meta.sectionTheme}}),alertData:c,navigationData:r,nav:(0,n.jsx)(s.h4i,{lightForeground:!0,breadcrumbs:i.breadcrumbs}),meta:p,children:(0,n.jsxs)(s.f6W,{theme:i.meta.sectionTheme,children:[(0,n.jsxs)(s.xuv,{css:{pb:{base:"48px",md:"96px"}},bgColor:"brand.primary.600",children:[(0,n.jsx)(s.CDE,{"data-testid":"page-heading",titleLevel:1,colorMaoriTitle:"brand.primary.A1",colorEnglishTitle:"brand.neutrals.100",colorDescription:"brand.neutrals.100",pattern:i.meta.pattern,...i}),(0,n.jsx)(g.oL,{topicId:"school",placeholder:"Search NCEA subjects"})]}),(0,n.jsx)(s.xuv,{background:"brand.primary.200",children:(0,n.jsxs)(s.rjZ,{py:12,children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.ALS,{headingLevel:"h2",headingMi:"Tirotiro mā te wāhanga ako",headingEn:"Browse by learning area",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},my:8,children:(0,n.jsx)(s.rrC,{tiles:u.map(e=>{var t,a;return{headingEn:e.nzcTitle,headingMi:e.tmoaTitle||e.translatedTitle,imageAlt:e.imgExploreAltTextEn,imageSrc:null!==(a=null===(t=e.imgExploreDesktop)||void 0===t?void 0:t.urlDesktop)&&void 0!==a?a:void 0,link:e.url,keteFactory:{keteId:e.keteId,keteFactory:w.E},variant:"tight"}}),testId:"learning-area-page-tile-set"})})]})}),i.relatedContent&&(0,n.jsx)(ai.J,{guides:i.relatedContent})]})})},i2=e=>{var t,a,i,r,o;let{pageData:c,navigationData:u,footerData:h,learningAreaPageData:p,learningAreaPageData:{otherAreas:g,subjects:m},initialLimit:x=10,initialLimitMobile:b=10,alertData:j}=e,v=[...m=[...[...m.filter(e=>"TMoA"===e.curriculum)].sort((e,t)=>e.title.localeCompare(t.title)),...[...m.filter(e=>"NZC"===e.curriculum)].sort((e,t)=>e.title.localeCompare(t.title))].map(e=>({...e}))].sort((e,t)=>(e.title||"").localeCompare(t.title||"")),y="Find out about NCEA subjects relating to ".concat(p.nzcTitle," so you can understand your subject options."),f={title:(0,a3.lc)(p.nzcTitle,p.tmoaTitle),description:y};return(0,n.jsx)(l.A,{title:c.title,footer:(0,n.jsx)(s.$_C,{data:h,gap:{backgroundColor:"brand.primary.700",theme:c.meta.sectionTheme},topSection:c.footerCallToAction}),alertData:j,navigationData:u,nav:(0,n.jsx)(d.m,{breadcrumbs:c.breadcrumbs,sectionTheme:c.meta.sectionTheme,keteId:p.keteId}),meta:f,children:(0,n.jsxs)(s.f6W,{theme:c.meta.sectionTheme,children:[(0,n.jsx)(s.xuv,{css:{pb:10,position:"relative",overflowY:"hidden"},bgColor:"brand.primary.200",children:p.tmoaCode?(0,n.jsx)(s.iUP,{patternUrl:null===(t=c.meta.pattern)||void 0===t?void 0:t.url,labelMi:"Te Marautanga o Aotearoa",headingMi:p.tmoaTitle,descriptionMi:p.tmoaDescription,illustrationMi:null===(a=p.tmoaImgDesktop)||void 0===a?void 0:a.urlDesktop_2x,labelEn:"New Zealand Curriculum",descriptionEn:p.nzcDescription,headingEn:p.nzcTitle,illustrationEn:null===(i=p.nzcImgDesktop)||void 0===i?void 0:i.urlDesktop_2x,testIdEn:"label-en",testIdMi:"label-mi"}):(0,n.jsx)(s.esN,{patternUrl:null===(r=c.meta.pattern)||void 0===r?void 0:r.url,headingMi:p.translatedTitle,illustration:null===(o=p.nzcImgDesktop)||void 0===o?void 0:o.urlDesktop_2x,label:"New Zealand Curriculum",description:p.nzcDescription,headingEn:p.nzcTitle})}),(0,n.jsx)(s.xuv,{background:"brand.primary.300",children:(0,n.jsxs)(s.rjZ,{py:12,children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.ALS,{headingLevel:"h2",headingMi:"Ngā matau NCEA",headingEn:"NCEA subjects",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary",testId:i4.nceaSubjectsHeading})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{my:8},children:(0,n.jsx)(s.t3$,{id:"subject-cards",subjects:v,keteFactory:w.E,cardsSubject:"subject cards",initialLimit:x,initialLimitMobile:b})})]})}),(0,n.jsx)(s.xuv,{background:"brand.primary.700",children:(0,n.jsxs)(s.rjZ,{py:12,children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.ALS,{headingLevel:"h2",colorThemeMi:!0,colorThemeEn:!0,headingMi:"Ēra atu wāhi ako",headingEn:"Other learning areas",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},my:8,children:(0,n.jsx)(s.rrC,{tiles:g.map(e=>{var t,a;return{variant:"tight",headingEn:e.nzcTitle,headingMi:e.tmoaTitle||e.translatedTitle,imageAlt:e.nzcAltTextEn,imageSrc:null!==(a=null===(t=e.nzcImgDesktop)||void 0===t?void 0:t.urlDesktop)&&void 0!==a?a:"",link:e.url,keteFactory:e.keteId?{keteId:e.keteId,keteFactory:w.E}:void 0,testId:"other-learning-areas-page-tile"}}),testId:"other-learning-areas-page-tiles"})})]})})]})})},i4={nceaSubjectsHeading:"ncea-subjects-heading"},i6=e=>{let{pageData:t,navigationData:a,footerData:i,subjectProfileData:r,alertData:o}=e,{curriculum:c,title:u,description:h,relatedSubjects:p,levelTabs:g,findOutMoreLinks:m}=r,x=p.map(e=>({...e})),b=u&&"Explore the NCEA subject ".concat(u,". Find out what levels are available and what you could study towards.");
1return(0,n.jsx)(l.A,{title:t.title?t.title:t.maoriTitle,footer:(0,n.jsx)(s.$_C,{data:i,gap:{backgroundColor:"brand.primary.700",theme:t.meta.sectionTheme},topSection:t.footerCallToAction}),alertData:o,navigationData:a,nav:(0,n.jsx)(d.m,{breadcrumbs:t.breadcrumbs,sectionTheme:t.meta.sectionTheme,keteId:r.keteId}),meta:{title:u,description:b},children:(0,n.jsxs)(s.f6W,{theme:t.meta.sectionTheme,children:[(0,n.jsx)(s.xuv,{css:{pb:10,position:"relative",overflowY:"hidden"},bgColor:"brand.primary.200",children:(0,n.jsx)(s.esN,{patternUrl:t.meta.pattern.url,headingEn:"NZC"===c?u:"",headingMi:"TMoA"===c?u:"",description:h,header:"TMoA"===c?(0,n.jsx)(s.ehn,{header:"Kaupapa Māori subject"}):void 0})}),(0,n.jsx)(s.nrq,{...r}),(0,n.jsx)(s.xuv,{css:{mt:16,mb:{base:12,sm:16},"@media print":{breakInside:"avoid"}},children:(0,n.jsx)(s.rjZ,{children:(0,n.jsxs)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:[(0,n.jsx)(s.xuv,{mb:{base:6,sm:8},children:(0,n.jsx)(s.ALS,{headingLevel:"h2",headingMi:"Tiki mōhiohio ā-marau",headingEn:"TMoA"===c?"":"Get subject information",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"})}),(0,n.jsx)(s.E5C,{...(0,s.DHA)(r)})]})})}),(0,n.jsx)(s.xuv,{css:{my:{base:12,sm:16}},children:(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(i8,{levelTabs:g,subjectProfileData:r})})})}),m.length>0&&(0,n.jsx)(s.xuv,{background:{base:"brand.primary.200",sm:"none"},children:(0,n.jsx)(s.k3f,{headingEn:"NZC"===c?"Find out more":"",headingMi:"Ako atu",links:m,testId:"subject-profile-find-out-more"})}),(0,n.jsx)(i3,{otherSubjects:x}),t.relatedContent&&(0,n.jsx)(ai.J,{guides:t.relatedContent})]})})},i3=e=>{let{otherSubjects:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.xuv,{background:"brand.primary.300",children:(0,n.jsxs)(s.rjZ,{py:12,children:[(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1/ span 8",md:"1/ span 12",lg:"1 / span 12",xl:"2 / span 10"},children:(0,n.jsx)(s.ALS,{headingLevel:"h2",headingMi:"Ētahi atu marau kei tēnei",headingEn:"Other subjects in this learning area",textStyleMi:"heading4-newzald",textStyleEn:"heading4-primary"})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1 / span 4",sm:"1 / span 8",md:"1 / span 12",lg:"1 / span 12",xl:"2 / span 10"},css:{my:8},children:(0,n.jsx)(s.t3$,{id:"other-subjects",cardsSubject:"subjects",subjects:t,keteFactory:w.E})})]})})})},i8=e=>{var t;let{levelTabs:a,subjectProfileData:i}=e;return(0,n.jsx)(s.Baz,{tabs:a.map(e=>({...e,tabHeadingMi:"TMoA"===i.curriculum?e.tabHeadingMi:void 0,tabHeadingEn:"NZC"===i.curriculum?e.tabHeadingEn:void 0,id:"subject-profile-details-".concat(e.id),paragraphs:i7(e.paragraphs,i,i5(e.id))})),defaultValue:"subject-profile-details-level-".concat((null!==(t=re(i))&&void 0!==t?t:1).toString()),theme:"primary"})},i5=e=>{switch(e){case"level-1":default:return 1;case"level-2":return 2;case"level-3":return 3}},i7=(e,t,a)=>{let{curriculum:i,...r}=t;return i9(r,a)?e.map((e,t)=>({...e,id:"level-info-".concat(t)})):[{id:"not-offered",type:"custom",value:{content:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.xuv,{mt:8,mb:12,children:(0,n.jsx)(s.xvT,{lang:"TMoA"===i?"mi":"en",children:"TMoA"===i?"Kāore i te wātea i tēnei taumata.":"Not available at this level. You may be able to do a related subject."})})})}}]},i9=(e,t)=>1===t&&e.isNCEALevel1||2===t&&e.isNCEALevel2||3===t&&e.isNCEALevel3,re=e=>e.isNCEALevel1?1:e.isNCEALevel2?2:e.isNCEALevel3?3:void 0,rt=e=>{let{pageData:t,navigationData:a,footerData:i,alertData:r}=e;return(0,n.jsx)(g.ol,{pageData:t,footerData:i,navigationData:a,alertData:r})};var ra=a(78366);let ri=e=>{let{headingMi:t,headingEn:a}=e;return(0,n.jsxs)(s.X6q,{as:"h1",css:{mt:{base:8,lg:24}},children:[(0,n.jsx)(s.xvT,{...(0,s.Mir)(rr.headingEn),as:"span",css:{display:"block",color:"brand.neutrals.100",textStyle:"heading1-large-geograph"},children:a}),t&&(0,n.jsx)(s.xvT,{...(0,s.Mir)(rr.headingMi),lang:"mi",as:"span",css:{display:"block",color:"brand.primary.A1",textStyle:"heading1-large-newzald"},children:t})]})},rr={headingMi:"hero-heading-mi",headingEn:"hero-heading-en"},rn="/InspireMe",rs=()=>{let e=e=>"".concat(rn,"/HeroImage/").concat(e),t={background:e("Backgroun
1d.svg"),backgroundCenter:e("BackgroundCenter.svg"),foregroundLeft:e("ForegroundLeft.svg"),foregroundRight:e("ForegroundRight.svg"),gradient:e("Gradient.svg"),hero:e("Hero.svg"),landscapeBackground:e("LandscapeBackground.svg"),landscapeForeground:e("LandscapeForeground.svg")},a=(0,s.Sx0)({base:!1,lg:!0});return(0,n.jsxs)(s.xuv,{css:{backgroundColor:"brand.primary.600",width:"100%",height:{base:"740px",md:"800px"},position:"relative"},children:[(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.patternBackground),css:{position:"absolute",inset:0,background:"url(".concat(t.background,") no-repeat left top"),backgroundSize:"cover"}}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.sunHaze),css:{position:"absolute",inset:0,background:"url(".concat(t.gradient,") no-repeat"),backgroundPosition:"center bottom",backgroundSize:"max(1200px, 100%)"}}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.mountains),css:{position:"absolute",left:0,right:0,bottom:0,height:"561px",background:"url(".concat(t.landscapeBackground,") no-repeat bottom center"),backgroundSize:{base:"contain",lg:"max(1200px, 100%) 561px"}}}),a&&(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.foregroundLeft),css:{position:"absolute",inset:0,background:"url(".concat(t.foregroundLeft,") no-repeat left bottom")}}),a&&(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.foregroundRight),css:{position:"absolute",inset:0,background:"url(".concat(t.foregroundRight,") no-repeat right bottom")}}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.sun),css:{position:"absolute",inset:0,background:"url(".concat(t.backgroundCenter,") no-repeat"),backgroundPositionX:{base:"calc(50% + 120px)",sm:"calc(50% + 230px)"},backgroundPositionY:"340px"}}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.people),css:{position:"absolute",inset:0,background:"url(".concat(t.hero,") no-repeat"),backgroundPositionX:{base:"center",lg:"calc(50% + 80px)"},backgroundPositionY:"bottom"}}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(rl.landscapeForeground),css:{position:"absolute",inset:0,background:"url(".concat(t.landscapeForeground,") no-repeat"),backgroundPosition:"center bottom",backgroundSize:"max(1200px, 100%)"}})]})},rl={patternBackground:"pattern-background",sunHaze:"sun-haze",mountains:"mountains",foregroundLeft:"foreground-left",foregroundRight:"foreground-right",sun:"sun",people:"people",landscapeForeground:"landscape-foreground"},ro=e=>{let{headingEn:t,headingMi:a,steps:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Ysw,{testId:rd.sectionHeading,headingEn:t,headingMi:a,headingLevel:"h2",textStyleAs:"h4",colorMode:"light"}),(0,n.jsx)(s.Djn,{steps:i.map((e,t)=>({title:"Step ".concat(t+1),...e}))})]})},rd={sectionHeading:"how-it-works-section-heading"};var rc=a(76893);let ru=e=>{let{type:t,quizPageUrl:a,doTheQuizLinkText:i,doTheQuizAgainLinkText:r,restartQuizDialogContent:l,restartQuizDialogHeading:o,restartQuizDialogPrimaryButtonText:d}=e;switch(t){case"do-the-quiz":return(0,n.jsx)(s.rUS,{...(0,s.Mir)(rh.ctaDoTheQuiz),variant:"primaryLight",size:"regular",href:a,children:i});case"do-the-quiz-again":return(0,n.jsx)(rc.k,{testId:rh.ctaDoTheQuizAgain,buttonText:r,variant:"primaryLight",dialogContent:l,dialogHeading:o,dialogPrimaryButtonText:d,afterRestartAction:a})}},rh={ctaDoTheQuiz:"cta-do-the-quiz",ctaDoTheQuizAgain:"cta-do-the-quiz-again"},rp=(e,t)=>void 0!==t?"do-the-quiz-again":"introduction"===e?"do-the-quiz":void 0;var rg=a(77105);let rm=()=>{let e=(0,s.Sx0)({base:!1,xl:!0}),t=(0,s.KOh)("brand.primary.200");return(0,n.jsx)(s.xuv,{...(0,s.Mir)(rx.quizBackground),css:{position:"absolute",inset:0,background:"linear-gradient(180deg, rgba(235, 236, 255, 0.00) 0%, rgba(227, 215, 250, 0.50) 51.04%) no-repeat left bottom / 100% 420px, \n          url('".concat(rn,"/").concat(e?"Background.svg":"BackgroundSm.svg","') no-repeat top left / contain,\n          url('").concat(rn,"/Clouds.svg') no-repeat bottom center / contain,\n          ").concat(t)}})},rx={quizBackground:"quiz-background"},rb=e=>{let{text:t,css:a,testId:i,...r}=e;return(0,n.jsxs)(s.zxk,{...(0,s.Mir)(i),variant:"link",size:"sm","aria-label":t,title:t,css:a,...r,children:[(0,n.jsx)(s.JO$,{icon:"Close",boxSize:3,mr:2}),t]})},rj=e=>{let{open:t,onClose:a,onExitQuiz:i,numberOfAnswers:r,numberOfQuestions:l,content:o,heading:d,cancelButtonText:c,primaryButtonText:u}=e;return(0,n.jsx)(s.NL0,{open:t,onClose:a,heading:d,onPrimaryClicked:i,primaryButtonText:u,primaryButtonStyle:"danger",autoCloseOnPrimaryClick:!1,secondaryButtonText:c,footerButtonLayout:"either-side-stack-xs-reversed",children:(0,n.jsx)(s.S75,{str:o,tokens:{numberOfAnswers:r,numberOfQuestions:l},allowedTags:v.T})})},rv=e=>{let{open:t,onShowResults:a,onBackToQuiz:i,submitting:r,headingMi:l,headingEn:o,content:d,cancelButtonText:u,primaryButtonText:h,imageUrl:p,imageAlt:g,theme:m}=e;return(0,n.jsxs)(s.VqE,{open:t,closeOnInteractOutside:!1,onClose:a,children:[(0,n.jsx)(s.t9Y,{}),(0,n.jsx)(tK.Qd,{children:(0,n.jsx)(s.vzF,{theme:m,children:(0,n.jsxs)(s.cZJ,{...(0,s.Mir)(ry.finishedDialog),children:[(0,n.jsx)(s.a7O,{css:{p:{base:6,sm:8},mt:{base:2,sm:0},alignItems:"center"},children:(0,n.jsxs)(s.kCb,{css:{alignItems:"center",flexDirection:{base:"column",sm:"row"}},children:[(0,n.jsx)(s.xuv,{css:{mr:{base:"unset",sm:8},mb:{base:4,sm:"unset"}},children:p&&(0,n.jsx)(c.E,{src:p,alt:g,css:{width:"33%",minW:{base:"170px",lg:"202px"}}})}),(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.Ysw,{headingLevel:"h2",headingEn:o,headingMi:l,textStyleAs:"h4",testId:ry.headings}),(0,n.jsx)(s.xvT,{...(0,s.Mir)(ry.finishedDialogDescription),css:{"& p":{mt:{base:2,md:4}}},children:(0,n.jsx)(s.Taj,{html:d,allowedTags:v.T})})]})]})}),(0,n.jsx)(s.cNS,{children:(0,n.jsxs)(s.l1s,{layout:"either-side-stack-xs-reversed",children:[(0,n.jsx)(s.zxk,{...(0,s.Mir)(ry.backToQuizButton),variant:"secondary",disabled:r,onClick:i,children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph-medium",color:"inherit",children:u})}),(0,n.jsx)(s.zxk,{...(0,s.Mir)(ry.showResultsButton),variant:"primary",disabled:r,onClick:a,children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph-medium",color:"inherit",children:h})})]})}),r&&(0,n.jsx)(s.Tot,{})]})})})]})},ry={finishedDialog:"finished-dialog",headings:"headings",backToQuizButton:"back-to-quiz-button",showResultsButton:"show-results-button",finishedDialogDescription:"finished-dialog-description"};var rf=a(21842),rk=a.n(rf);let rw=e=>{let{percentage:t,toolName:a}=e;return(0,n.jsx)(s.xuv,{...(0,s.Mir)(rC.quizProgressBar),role:"progressbar","aria-valuenow":t,title:"Progress of the ".concat(a," is ").concat(rk()(t),"%"),css:{backgroundColor:"brand.primary.700",height:"8px",display:"flex",width:"100%",position:"sticky",top:"0",zIndex:1},children:(0,n.jsx)(s.xuv,{...(0,s.Mir)(rC.percentageBar),role:"presentation",css:{width:"".concat(t,"%"),backgroundColor:"brand.primary.A3"}})})},rC={quizProgressBar:"quiz-progress-bar",percentageBar:"percentage-bar"},rT=(0,s.KOh)("brand.gold.300"),rS=(0,s.KOh)("brand.primary.900"),rM=(0,s.IUT)({displayName:"VerySadFace",viewBox:"0 0 24 24",defaultProps:{w:"24px",h:"24px"},path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M23.4005 12C23.4005 18.296 18.2964 23.4 12.0002 23.4C5.70405 23.4 0.6 18.296 0.6 12C0.6 5.70397 5.70405 0.6 12.0002 0.6C18.2964 0.6 23.4005 5.70397 23.4005 12Z",fill:rT,stroke:rS,strokeWidth:"1.2"}),(0,n.jsx)("path",{d:"M12 12.2031C8.25 12.2031 7 16.0239 7 16.4484C7 18.1465 8.66642 16.4484 12 16.4484C15.3331 16.4484 17 18.1465 17 16.4484C17 16.0239 15.75 12.2031 12 12.2031Z",fill:rS}),(0,n.jsx)("path",{d:"M8.5 9L6 10",stroke:rS,strokeWidth:"1.2",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M15.5 9L18 10",stroke:rS,strokeWidth:"1.2",strokeLinecap:"round"})]})}),rE=(0,s.IUT)({displayName:"SadFace",viewBox:"0 0 24 24",defaultProps:{w:"24px",h:"24px"},path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M23.8003 12C23.8003 18.296 18.6962 23.4 12.4 23.4C6.10383 23.4 0.99978 18.296 0.99978 12C0.99978 5.70397 6.10383 0.6 12.4 0.6C18.6962 0.6 23.8003 5.70397 23.8003 12Z",fill:rT,stroke:rS,strokeWidth:"1.2"}),(0,n.jsx)("circle",{cx:"7.05117",cy:"9.85",r:"1.35",fill:rS}),(0,n.jsx)("circle",{cx:"16.9516",cy:"9.85",r:"1.35",fill:rS}),(0,n.jsx)("path",{d:"M16.6498 16C16.2956 15.4349 14.8789 14 12.3998 14C9.92061 14 8.50395 15.4349 8.14978 16",fill:rT,stroke:rS,strokeLinecap:"round"})]})}),rD=(0,s.IUT)({displayName:"NeutralFace",viewBox:"0 0 24 24",defaultProps:{w:"24px",h:"24px"},path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M23.3995 12C23.3995 18.296 18.2955 23.4 11.9993 23.4C5.70307 23.4 0.599023 18.296 0.599023 12C0.599023 5.70397 5.70307 0.6 11.9993 0.6C18.2955 0.6 23.3995 5.70397 23.3995 12Z",fill:rT,stroke:rS,strokeWidth:"1.2"}),(0,n.jsx)("path",{d:"M7.0752 15.8672L16.9233 14.1307",stroke:rS,strokeWidth:"1.2",strokeLinecap:"round"}),(0,n.jsx)("circle",{cx:"7.04922",cy:"9.85",r:"1.35",fill:rS}),(0,n.jsx)("circle",{cx:"16.9496",cy:"9.85",r:"1.35",fill:rS})]})}),rL=(0,s.IUT)({displayName:"HappyFace",viewBox:"0 0 24 24",defaultProps:{w:"24px",h:"24px"},path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M23.4005 12C23.4005 18.296 18.2964 23.4 12.0002 23.4C5.70405 23.4 0.6 18.296 0.6 12C0.6 5.70397 5.70405 0.6 12.0002 0.6C18.2964 0.6 23.4005 5.70397 23.4005 12Z",fill:rT,stroke:rS,strokeWidth:"1.2"}),(0,n.jsx)("circle",{cx:"7.05117",cy:"9.85",r:"1.35",fill:rS}),(0,n.jsx)("circle",{cx:"16.9516",cy:"9.85",r:"1.35",fill:rS}),(0,n.jsx)("path",{d:"M7.75006 15C8.10423 15.5651 9.52089 17 12.0001 17C14.4792 17 15.8959 15.5651 16.2501 15",fill:rT,stroke:rS,strokeLinecap:"round"})]})}),rI=(0,s.IUT)({displayName:"VeryHappyFace",viewBox:"0 0 24 24",defaultProps:{w:"24px",h:"24px"},path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M23.4005 12C23.4005 18.296 18.2964 23.4 12.0002 23.4C5.70405 23.4 0.6 18.296 0.6 12C0.6 5.70397 5.70405 0.6 12.0002 0.6C18.2964 0.6 23.4005 5.70397 23.4005 12Z",fill:rT,stroke:rS,strokeWidth:"1.2"}),(0,n.jsx)("path",{d:"M12.002 18C14.7624 18 16.7532 16.0279 17.3303 14.2832C17.5038 13.7589 17.0551 13.3026 16.5028 13.3026L12.002 13.3026L7.50112 13.3026C6.94883 13.3026 6.50012 13.7589 6.67359 14.2832C7.25079 16.0279 9.24156 18 12.002 18Z",fill:rS}),(0,n.jsx)("path",{d:"M8.69922 9.8C8.57422 9.57397 8.07422 9 7.19922 9C6.32422 9 5.82422 9.57397 5.69922 9.8",stroke:rS,strokeWidth:"1.1",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M18.2988 9.8C18.1738 9.57397 17.6738 9 16.7988 9C15.9238 9 15.4238 9.57397 15.2988 9.8",stroke:rS,strokeWidth:"1.1",strokeLinecap:"round"})]})});var rP=a(28249);let rA={borderRadius:{base:0,sm:"4px"}},rz={width:"100%",aspectRatio:"16 / 9",objectFit:"cover",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},rB=e=>{let{questionId:t,imageUrl:a,imageAlt:i,isActive:r,children:l,"aria-label":o,onOverlayClick:d,onSwipeToGoBack:c}=e,u=(0,p.useRef)(null),h=(0,s.T)(),g=(0,rP.QS)({onSwipedRight:()=>{c&&c()}}),m=(0,s.zY)();return(0,n.jsxs)(s.xuv,{...(0,s.Mir)(rF.card),"data-question-id":t,ref:u,tabIndex:r?0:void 0,"aria-label":o,role:"listitem",onTransitionEnd:e=>{if("transform"===e.propertyName&&r){var t;null===(t=u.current)||void 0===t||t.focus()}},css:{position:"relative",display:"flex",flexDirection:"column",flex:"0 0 auto",width:"var(--card-w)",minHeight:{base:"min(500px, 100vh - ".concat(m.base,")"),md:"min(600px, 100vh - ".concat(m.md,")")},borderRadius:rA.borderRadius,backgroundColor:"brand.neutrals.100",filter:r?void 0:"grayscale(1.0)",pointerEvents:r?void 0:"none",transition:h?void 0:"transform 0.5s, filter 0.5s",transform:"translate(-50%, 0) translate(calc(-100% * var(--card)), 0) ".concat(r?"":"scale(0.7)"),_focus:{boxShadow:"outline !important"}},children:[(0,n.jsx)(s.xuv,{...(0,s.Mir)(rF.swipeOverlay),...g,css:{position:"absolute",inset:0}}),(0,n.jsx)(rH,{imageUrl:a,imageAlt:i}),l,(0,n.jsx)(s.xuv,{...(0,s.Mir)(rF.overlay),css:{background:"brand.primary.300",opacity:r?0:.6,pointerEvents:r?"none":"auto",position:"absolute",inset:0,zIndex:1,transition:"opacity 0.5s",cursor:d?"pointer":void 0},title:d?"Previous question":void 0,onClick:d})]})},rH=e=>{let{imageUrl:t,imageAlt:a}=e;return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(c.E,{...(0,s.Mir)(rF.mainImage),src:t,alt:a,css:{...rz}}):(0,n.jsx)(s.xuv,{...(0,s.Mir)(rF.mainImageMissing),css:{...rz,backgroundColor:"brand.neutrals.300"}})})},rF={card:"quiz-card",mainImage:"main-image",mainImageMissing:"main-image-missing",overlay:"overlay",swipeOverlay:"swipe-overlay"},rR=e=>{let{testId:t,label:a,icon:i,backgroundColor:r,onClick:l,chosen:o=!1,disabled:d,css:c}=e;return(0,n.jsxs)(s.zxk,{...(0,s.Mir)(t),variant:"none",onClick:l,disabled:!!d||void 0,"aria-selected":!!o||void 0,css:{color:"brand.primary.700",px:2,py:4,backgroundColor:r,borderRadius:"none",justifyContent:"flex-start",boxShadow:o?"outline":void 0,wordWrap:"wrap",display:"flex",flexDirection:"column",width:"100%",height:"100%",whiteSpace:"normal",_hover:{backgroundColor:"brand.primary.700",color:"brand.primary.100"},_focus:{backgroundColor:"brand.primary.700",color:"brand.primary.100",boxShadow:"outline"},_active:{backgroundColor:"brand.primary.800",color:"brand.primary.100"},...c},children:[i,(0,n.jsx)(t$.x,{as:"span",css:{color:"inherit",textStyle:{base
1:"paragraph-x-small-medium",md:"paragraph-small-medium"},mt:2},children:a})]})},rN=[{answer:"no",label:"No",icon:(0,n.jsx)(rM,{})},{answer:"not-really",label:"Not really",icon:(0,n.jsx)(rE,{})},{answer:"dont-know",label:"Don't know",icon:(0,n.jsx)(rD,{})},{answer:"kind-of",label:"Kind of",icon:(0,n.jsx)(rL,{})},{answer:"yes",label:"Yes",icon:(0,n.jsx)(rI,{})}],rW=e=>{let{questionId:t,imageUrl:a,imageAlt:i,heading:r,text:l,textLeadIn:o,onAnswer:d,isActive:c,onOverlayClick:u,onSwipeToGoBack:h,answer:p,questionNumber:g,numberOfQuestions:m}=e;return(0,n.jsx)(rB,{questionId:t,imageUrl:a,imageAlt:i,isActive:c,"aria-label":"Question ".concat(g," of ").concat(m,". ").concat(o," ").concat(r),onOverlayClick:u,onSwipeToGoBack:h,children:(0,n.jsxs)(s.kCb,{css:{flexDirection:"column",flexGrow:1},children:[(0,n.jsxs)(s.xuv,{css:{pt:{base:6},pb:{base:6,md:10,lg:8,xl:10},px:{base:6}},children:[(0,n.jsx)(s.xvT,{...(0,s.Mir)(rO.leadIn),css:{textStyle:{base:"paragraph-medium",md:"paragraph-large-medium"},color:"brand.primary.800",mb:1},children:o}),(0,n.jsx)(s.xvT,{...(0,s.Mir)(rO.headingEn),css:{textStyle:"heading4-geograph",color:"brand.primary.700"},children:r}),(0,n.jsx)(s.xvT,{...(0,s.Mir)(rO.text),css:{my:4,textStyle:{base:"paragraph-small",md:"paragraph-regular"}},children:l})]}),c&&(0,n.jsx)(s.aVo.fC,{...(0,s.Mir)(rO.cardAnswerButtons),css:{display:"flex",flexDirection:"row",mt:"auto"},"aria-label":"Answer buttons",listStyle:"none",children:rN.map((e,t)=>{let a=p===e.answer,i=t===rN.length-1;return(0,n.jsx)(s.HCh,{css:{flex:1,minWidth:0,borderRightWidth:"1px",borderRightStyle:i?"none":"solid",borderRightColor:"brand.primary.300",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"brand.primary.300"},children:(0,n.jsx)(rR,{testId:rO.answerButton(e.answer),label:e.label,onClick:()=>d(e.answer),icon:e.icon,chosen:a,backgroundColor:a?"brand.primary.400":"transparent",disabled:!c,css:{borderBottomLeftRadius:0===t?rA.borderRadius:void 0,borderBottomRightRadius:i?rA.borderRadius:void 0}})},e.answer)})})]})})},rO={leadIn:"card-lead-in",headingEn:"card-heading-en",text:"card-text",cardAnswerButtons:"card-answer-buttons",answerButton:e=>"answer-button-".concat(e)},rq=new Map([["1","no"],["2","not-really"],["3","dont-know"],["4","kind-of"],["5","yes"]]),rU=e=>{let{questionId:t,previousQuestionId:a,questions:i,onAnswer:r,activeCardIndex:l,answers:o,onPrevious:d}=e,c=(0,s.fBj)(e=>{if(t){let a=rq.get(e);a&&r(t,a),"ArrowLeft"===e&&d()}},500);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.CQU,{css:"\n          #quiz-carousel {\n            --card: ".concat(l,";\n          }\n        ")}),(0,n.jsx)(s.xuv,{id:"quiz-carousel",...(0,s.Mir)(r_.quizCarousel),css:{outline:"none",translate:"50% 0"},onKeyDown:e=>{let{key:t}=e;return c(t)},children:(0,n.jsx)(s.kCb,{...(0,s.Mir)(r_.cardStrip),role:"list",children:i.map((e,s)=>{var l,c;let{id:u,...h}=e;return(0,n.jsx)(rW,{questionId:u,heading:h.text,text:null!==(c=h.example)&&void 0!==c?c:"",imageUrl:null===(l=h.image)||void 0===l?void 0:l.urlCard,imageAlt:h.imageAltEn,textLeadIn:h.prefix,onAnswer:e=>r(u,e),isActive:u===t,onOverlayClick:u===a?d:void 0,onSwipeToGoBack:u===a?d:void 0,answer:o[u],questionNumber:s+1,numberOfQuestions:i.length},u)})})})]})},r_={quizCarousel:"quiz-carousel",cardStrip:"card-strip"},rQ=e=>{let{onPrevious:t,questionNumber:a,numberOfQuestions:i,backButtonText:r,progressText:l}=e,o=(0,s.Sx0)({base:!0,xs:!0,md:!1,lg:!1});return(0,n.jsxs)(s.kCb,{css:{width:"var(--card-w)",py:6,mx:"auto",px:{base:6,md:"unset"},alignItems:"center",background:{base:"brand.primary.200",sm:"none"}},children:[a>1&&(0,n.jsx)(s.zxk,{...(0,s.Mir)(rY.goBack),variant:"secondary",onClick:t,"aria-label":"Go to the previous question",title:"Go to the previous question",css:{fontWeight:500,px:{base:"9px",sm:4}},size:o?"sm":"md",children:(0,n.jsx)(s.xvT,{as:"span",textStyle:{base:"paragraph-x-small-medium",md:"paragraph-small-medium"},css:{color:"brand.primary.700"},children:r})}),(0,n.jsx)(s.xvT,{...(0,s.Mir)(rY.questionProgressLabel),css:{color:"brand.primary.700",ml:"auto"},textStyle:{base:"paragraph-small-medium",md:"paragraph-medium"},children:(0,n.jsx)(s.S75,{str:l,tokens:{questionNumber:a,numberOfQuestions:i}})})]})},rY={questionProgressLabel:"question-progress-label",goBack:"go-back"},rZ=e=>{let{open:t,theme:a,onStartQuiz:i,imageUrl:r,imageAlt:l,items:o,headingEn:d,headingMi:u,primaryButtonText:h}=e,g=(0,p.useRef)(null);return(0,n.jsxs)(s.VqE,{open:t,closeOnInteractOutside:!1,initialFocusEl:()=>g.current,closeOnEscape:!1,onClose:i,children:[(0,n.jsx)(s.t9Y,{}),(0,n.jsx)(tK.Qd,{children:(0,n.jsx)(s.cZJ,{...(0,s.Mir)(rG.welcomeDialog),children:(0,n.jsxs)(s.vzF,{theme:a,children:[(0,n.jsx)(s.a7O,{css:{p:{base:6,sm:8},mt:{base:2,sm:0},alignItems:"center"},children:(0,n.jsxs)(s.kCb,{css:{alignItems:"center",flexDirection:{base:"column",sm:"row"}},children:[r&&(0,n.jsx)(c.E,{src:r,alt:l,css:{width:"33%",minW:{base:"170px",lg:"202px"},mr:{base:"unset",sm:8},mb:{base:4,sm:"unset"}}}),(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.Ysw,{headingLevel:"h2",headingEn:d,headingMi:u,textStyleAs:"h4",testId:rG.headings}),(0,n.jsx)(s.aVo.fC,{...(0,s.Mir)(rG.welcomeDialogItems),variant:"bulletList",listIcon:"star",listIconColor:"primary",css:{mt:{base:2,lg:4}},children:o.map((e,t)=>(0,n.jsx)(s.HCh,{children:(0,n.jsx)(s.xvT,{textStyle:"paragraph-regular",children:e})},t))})]})]})}),(0,n.jsx)(s.cNS,{children:(0,n.jsx)(s.zxk,{ref:g,...(0,s.Mir)(rG.startQuizButton),variant:"primary",onClick:i,children:(0,n.jsx)(s.xvT,{as:"span",textStyle:"paragraph-medium",css:{color:"inherit"},children:h})})})]})})})]})},rG={welcomeDialog:"welcome-dialog",startQuizButton:"start-quiz-button",welcomeDialogItems:"welcome-dialog-items",headings:"welcome-dialog-headings"},rJ=(e,t)=>
1{var a,i,r;if(!ik()(e))throw Error("Cannot compute quiz state with no questions");let n=e.length,s=(0,iq.ep)(t);if(void 0===s)return{quizStage:"introduction",activeQuestionId:null===(a=e[0])||void 0===a?void 0:a.id,activeQuestionIndex:0,previousQuestionId:void 0,percentage:0,numberOfQuestions:n,numberOfAnswers:s,activeQuestionNumber:1,resumeQuestionNumber:void 0,isPartlyDone:!1};if(s&&s>=e.length)return{quizStage:"finished-quiz",activeQuestionId:e[e.length-1].id,activeQuestionIndex:s-1,previousQuestionId:null===(i=e[e.length-2])||void 0===i?void 0:i.id,percentage:100,numberOfQuestions:n,numberOfAnswers:s,activeQuestionNumber:s,resumeQuestionNumber:void 0,isPartlyDone:!1};{let t=s+1;return{quizStage:"doing-quiz",activeQuestionId:e[s].id,activeQuestionIndex:s,previousQuestionId:null===(r=e[s-1])||void 0===r?void 0:r.id,percentage:t/e.length*100,numberOfQuestions:n,numberOfAnswers:s,activeQuestionNumber:t,resumeQuestionNumber:t,isPartlyDone:void 0!==s&&s>0}}},rV=e=>{var t;let{title:a,questions:i,theme:r,welcomeModalImage:l,welcomeModalImageAlt:o,welcomeModalItems:d,welcomeModalHeadingEn:c,welcomeModalHeadingMi:u,welcomeModalPrimaryButtonText:h,exitQuizButtonText:g,exitQuizModalContent:b,exitQuizModalHeading:j,exitQuizModalCancel:v,exitQuizModalPrimary:y,restartQuizDialogContent:f,restartQuizDialogHeading:k,restartQuizDialogPrimaryButtonText:w,restartQuizButtonText:C,quizBack:T,quizProgressText:S,finishedQuizModalHeadingMi:M,finishedQuizModalHeadingEn:E,finishedQuizModalContent:D,finishedQuizModalCancel:L,finishedQuizModalPrimary:I,finishedQuizModalImage:P,finishedQuizModalImageAlt:A,resultsPageUrl:z,landingPageUrl:B,xsAndBelow:H}=e,{accessToken:F}=(0,eV.aC)(),N=(0,m.II)(),W=(0,eX.useRouter)(),O=(0,m.jm)(),q=(0,iq.i3)(),{answers:U}=q.local,_=(0,s.zY)(),Q=(0,an.S)({..._,lg:-1}),Y=(0,rg.q)(),[Z,G]=(0,p.useState)(!1),[J,V]=(0,s.XsL)("inspire-me-welcome-dialog-seen",!1,!0),X=null!==(t=(0,an.S)({base:488,"2xl":512}))&&void 0!==t?t:488,{quizStage:K,activeQuestionId:$,activeQuestionIndex:ee,previousQuestionId:et,numberOfAnswers:ea,numberOfQuestions:ei,percentage:er,activeQuestionNumber:en}=rJ(i,U),es=()=>rK(K,i,q.local),el=(0,p.useCallback)(async()=>{0===ea?(sessionStorage.removeItem(iq.Np),B&&await W.push(B)):Y.onOpen()},[ea,B,W,Y]),eo=void 0!==ea&&ea>=1;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.CQU,{css:"\n          #inspire-me-quiz {\n            --card-w: min(100vw, ".concat(X,"px);\n          }\n        ")}),(0,n.jsxs)(s.xuv,{id:"inspire-me-quiz",...(0,s.Mir)(r$.inspireMeQuiz),css:{position:"relative",minHeight:"100vh"},children:[(0,n.jsx)(rm,{}),(0,n.jsxs)(x.r,{...(0,s.Mir)(r$.quizLayout),gridTemplateRows:"min-content min-content auto",css:{position:"relative",minHeight:-1===Q?"inherit":"calc(100% - ".concat(Q,")"),"@media screen and (max-height: 650px)":{zoom:.6}},children:[void 0!==er&&(0,n.jsx)(rw,{percentage:er,toolName:a}),!H&&(0,n.jsxs)(aS.k,{css:{p:6,justifyContent:"space-between"},children:[(0,n.jsx)(rc.k,{disabled:!eo,afterRestartAction:()=>{q.local.removeAll()},buttonText:C,dialogHeading:k,dialogPrimaryButtonText:w,dialogContent:f,size:"sm",variant:"link",buttonColor:"brand.primary.700",testId:r$.restartQuizButton}),(0,n.jsx)(rb,{testId:r$.exitButtonDesktop,text:g,disabled:"introduction"===K,onClick:el})]}),(0,n.jsx)(s.xuv,{...(0,s.Mir)(r$.carouselContainer),css:{overflowX:"hidden",alignSelf:"center",py:{sm:4}},children:void 0!==ee&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rU,{questionId:$,previousQuestionId:et,questions:i,onAnswer:q.local.set,activeCardIndex:ee,answers:null!=U?U:{},onPrevious:es}),("doing-quiz"===K||"introduction"===K)&&void 0!==en&&(0,n.jsx)(rQ,{questionNumber:en,numberOfQuestions:ei,onPrevious:es,backButtonText:T,progressText:S})]})}),H&&"introduction"!==K&&(0,n.jsxs)(R.P,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(rc.k,{disabled:!eo,afterRestartAction:()=>{q.local.removeAll()},buttonText:C,dialogHeading:k,dialogPrimaryButtonText:w,dialogContent:f,size:"sm",variant:"link",buttonColor:"brand.primary.700",testId:r$.restartQuizButton}),(0,n.jsx)(rb,{testId:r$.exitButtonMobile,text:g,onClick:el,css:{my:6}})]})]})]}),void 0!==ea&&ea>0&&(0,n.jsx)(rj,{open:Y.open,onClose:Y.onClose,onExitQuiz:async()=>{B&&await W.push(B)},numberOfAnswers:ea,numberOfQuestions:ei,content:b,heading:j,cancelButtonText:v,primaryButtonText:y}),(0,n.jsx)(rZ,{open:"introduction"===K&&!J,theme:r,onStartQuiz:()=>{V(!0),q.local.begin()},imageUrl:l,imageAlt:o,items:d,headingEn:c,headingMi:u,primaryButtonText:h}),U&&(0,n.jsx)(rv,{open:"finished-quiz"===K,submitting:Z,onShowResults:()=>
1{if(z)return rX(N,F,U,G,W.push,O,q)},onBackToQuiz:es,headingMi:M,headingEn:E,content:D,cancelButtonText:L,primaryButtonText:I,imageUrl:P,imageAlt:A,theme:r})]})},rX=async(e,t,a,i,r,n,l)=>{i(!0);let o=await (0,m.pN)(t,a);if(!o)return(0,s.wpA)({title:"An error occurred saving your answers",status:"error"}),i(!1),!1;if("no-results"===o.type){let e=o.data;return(await l.deleteLocalAndServerData(),e.redirectUrl)?(r(e.redirectUrl),!0):(console.error("Could not determine URL for '".concat(e.reason,"'")),!1)}if("saved"===o.type){let t=o.data;if(e&&n(e),l.local.setResult({riasec:t.riasec,code:t.code,keteId:t.keteId}),l.local.removeSessionStorageItem(),t.redirectUrl)return r(t.redirectUrl),!0;console.error("Could not determine results page URL")}return!1},rK=(e,t,a)=>{if("introduction"===e)return!1;let{answers:i,numberOfAnswers:r,remove:n,removeAll:s}=a;return!!i&&void 0!==r&&(0===r?s():n(t[r-1].id),!0)},r$={inspireMeQuiz:"inspire-me-quiz",quizLayout:"quiz-layout",carouselContainer:"carousel-container",exitButtonDesktop:"exit-button-desktop",exitButtonMobile:"exit-button-mobile",restartQuizButton:"restart-quiz-button"};var r0=a(29941);let r1=e=>{let{headingEn:t,headingMi:a,content:i,continueQuizLinkText:r,quizUrl:l,restartQuizButtonText:o,restartQuizDialogContent:d,restartQuizDialogHeading:c,restartQuizDialogPrimaryButtonText:u,numberOfQuizQuestions:h,activeQuizQuestionNumber:p}=e;return(0,n.jsxs)(r0.$,{testId:r2.continueQuizSection,headingEn:t,headingMi:a,colorThemeEn:!0,colorThemeMi:!0,backgroundColor:"brand.primary.800",css:{color:"brand.neutrals.100"},children:[(0,n.jsx)(s.xuv,{css:{my:6},children:i&&(0,n.jsx)(s.S75,{str:i,allowedTags:v.T,tokens:{numberOfQuizQuestions:h,activeQuizQuestionNumber:p}})}),(0,n.jsxs)(s.kCb,{css:{gap:2,alignItems:"center"},children:[(0,n.jsx)(s.rUS,{...(0,s.Mir)(r2.continueQuizLink),variant:"primaryLight",size:"small",href:l,textStyle:"paragraph-medium",children:r}),(0,n.jsx)(rc.k,{testId:r2.restartQuizButton,buttonText:o,dialogContent:d,dialogHeading:c,dialogPrimaryButtonText:u,afterRestartAction:l,buttonColor:"brand.neutrals.100",buttonTextStyle:"paragraph-medium"})]})]})},r2={restartQuizButton:"restart-quiz-button",continueQuizSection:"continue-quiz-section",continueQuizLink:"continue-quiz-link"};var r4=a(65562);let r6=e=>{var t,a,i;let{pageData:r,footerData:o,navigationData:d,alertData:c,questions:u}=e,h=r8(r.resultsPageUrl),{introduction:g}=r,{answers:b,getResult:j}=(0,iq.i3)(),{quizStage:v,resumeQuestionNumber:y}=rJ(u,b),f=r.videoBlock,k=(0,p.useMemo)(()=>r.tutorial.map(e=>{let{illustration:t,...a}=e;return{image:{url:t.url,alt:t.altTextEn},...a}}),[r.tutorial]),w=(0,m.JP)(),C=rp(v,j()),T=(null===(t=r.meta)||void 0===t?void 0:t.searchDescription)||r.introduction,S={title:(null===(a=r.meta)||void 0===a?void 0:a.seoTitle)||r.title,description:tm()(T)};return(0,n.jsx)(l.A,{title:r.title,footer:(0,n.jsx)(s.$_C,{data:o,topSection:r.footerCallToAction,gap:{backgroundColor:"brand.primary.800",theme:r.meta.sectionTheme}}),alertData:c,navigationData:d,nav:(0,n.jsx)(s.h4i,{lightForeground:!0,breadcrumbs:r.breadcrumbs}),meta:S,children:(0,n.jsxs)(s.vzF,{theme:r.meta.sectionTheme,children:[(0,n.jsxs)(s.xuv,{css:{position:"relative",backgroundColor:"brand.primary.600",display:"flex",justifyContent:"center"},children:[(0,n.jsx)(rs,{}),(0,n.jsx)(s.xuv,{css:{position:"absolute",inset:0},children:(0,n.jsxs)(s.rjZ,{children:[(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(s.xuv,{css:{pt:"70px"},children:(0,n.jsx)(ri,{headingMi:null!==(i=r.maoriTitle)&&void 0!==i?i:void 0,headingEn:r.title})})}),(0,n.jsx)(s.P4e,{gridColumn:{base:"1/ span 4",sm:"1/ span 4",md:"1/ span 6",lg:"1/ span 8",xl:"2/ span 5","2xl":"2/ span 4"},children:(0,n.jsx)(s.xvT,{...(0,s.Mir)(r3.headingIntroduction),css:{mt:{base:6,md:8},color:"brand.neutrals.100",textStyle:"paragraph-large-medium"},children:(0,n.jsx)(s.Taj,{html:g,allowedTags:["em"]})})}),C&&r.quizPageUrl&&(0,n.jsx)(s.P4e,{...(0,s.Mir)(r3.heroBannerCtaContainer),gridColumn:s.t4e.panel,mt:8,children:(0,n.jsx)(ru,{quizPageUrl:r.quizPageUrl,doTheQuizLinkText:r.ctaLinkText,doTheQuizAgainLinkText:r.ctaRestartQuizButtonText,restartQuizDialogContent:r.ctaRestartQuizModalContent,restartQuizDialogHeading:r.ctaRestartQuizModalHeading,restartQuizDialogPrimaryButtonText:r.ctaRestartQuizModalPrimaryButtonText,type:C})})]})})]}),void 0!==y&&r.quizPageUrl&&(0,n.jsx)(r1,{headingEn:r.partlyDoneHeadingEn,headingMi:r.partlyDoneHeadingMi,content:r.partlyDoneContent,continueQuizLinkText:r.partlyDoneContinueQuizLinkText,quizUrl:r.quizPageUrl,restartQuizButtonText:r.partlyDoneRestartQuizButtonText,restartQuizDialogContent:r.partlyDoneRestartQuizModalContent,restartQuizDialogHeading:r.partlyDoneRestartQuizModalHeading,restartQuizDialogPrimaryButtonText:r.partlyDoneRestartQuizModalPrimaryButtonText,numberOfQuizQuestions:u.length,activeQuizQuestionNumber:y}),h&&w.data&&(0,n.jsx)(r0.$,{headingEn:r.interestsHeadingEn,headingMi:r.interestsHeadingMi,colorThemeEn:!0,colorThemeMi:!0,backgroundColor:"brand.primary.800",textStyleEn:"heading4-primary",textStyleMi:"heading4-newzald",children:(0,n.jsx)(x.r,{gridTemplateColumns:{base:"auto",sm:"repeat(2, 1fr)"},children:(0,n.jsx)(s.P4e,{children:(0,n.jsx)(r4.g,{testId:r3.keteCard,interests:(0,r4.Y)(h.riasec,w.data),keteId:h.
1keteId,quizResultsPageUrl:h.resultsPageUrl})})})}),(0,n.jsxs)(s.xuv,{css:{background:"brand.primary.700",pt:12,pb:{base:16,md:24}},children:[(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,children:(0,n.jsx)(ro,{headingEn:r.tutorialHeadingEn,headingMi:r.tutorialHeadingMi,steps:k})})}),(0,n.jsx)(s.kCb,{css:{justifyContent:"center"},children:(0,n.jsxs)(s.kCb,{css:{flexDirection:"column",alignItems:"center",gap:4},children:[C&&r.quizPageUrl&&(0,n.jsx)(ru,{quizPageUrl:r.quizPageUrl,doTheQuizLinkText:r.ctaLinkText,doTheQuizAgainLinkText:r.ctaRestartQuizButtonText,restartQuizDialogContent:r.ctaRestartQuizModalContent,restartQuizDialogHeading:r.ctaRestartQuizModalHeading,restartQuizDialogPrimaryButtonText:r.ctaRestartQuizModalPrimaryButtonText,type:C}),r.tutorialInstructionsLink&&(0,n.jsx)(s.rUS,{...(0,s.Mir)(r3.tutorialLink),href:r.tutorialInstructionsLink.url,variant:"linkLight",css:{fontWeight:500},children:r.tutorialInstructionsLinkText})]})})]}),(0,n.jsxs)(s.xuv,{css:{position:"relative"},children:[(0,n.jsx)(s.xuv,{css:{position:"absolute",left:0,top:0,right:0,height:"50%",backgroundColor:"brand.primary.700"}}),(0,n.jsx)(s.xuv,{css:{position:"absolute",left:0,bottom:0,right:0,height:"50%",backgroundColor:"brand.primary.800"}}),(0,n.jsx)(s.rjZ,{children:(0,n.jsx)(s.P4e,{gridColumn:s.t4e.panel,css:{position:"relative"},children:(0,n.jsx)(s.kCb,{css:{justifyContent:"center",pb:{base:12,sm:20,md:8}},children:f&&(0,n.jsx)(s.nU6,{...(0,s.Mir)(r3.videoBlock),...f,language:"en",width:"min(100%, 794px)"})})})})]}),(0,n.jsx)(s.xuv,{css:{background:"brand.primary.800"},children:(0,n.jsx)(ai.J,{guides:r.relatedContent,backgroundColor:"brand.primary.800",displayMode:"grid"})})]})})},r3={keteCard:"inspire-me-kete-card",tutorialLink:"tutorial-link",videoBlock:"video-block-inspire-me",headingIntroduction:"hero-heading-introduction",heroBannerCtaContainer:"hero-banner-cta-container"},r8=e=>{let{isUserAuthenticated:t}=(0,eV.aC)(),a=(0,iW.I)(),i=(0,iq.i3)();if(t){if(!a)return;let e=a.detail.riasec_1To_7?(0,iO.X)(a.detail.riasec_1To_7):void 0;if(!e)return;return{riasec:e,keteId:a.keteId,resultsPageUrl:a.url}}{if(!i.local.result)return;let{riasec:t,code:a,keteId:r}=i.local.result;return{riasec:t,keteId:r,resultsPageUrl:iw.Hq?"".concat(e).concat(a):void 0}}},r5=e=>{var t,a,i;let{pageData:r,navigationData:o,alertData:d,questions:c}=e,u=null!==(i=(0,s.Sx0)({base:!0,xs:!0,sm:!1}))&&void 0!==i&&i,h=(null===(t=r.meta)||void 0===t?void 0:t.searchDescription)||"",p={title:(null===(a=r.meta)||void 0===a?void 0:a.seoTitle)||r.title,description:tm()(h)};return(0,n.jsx)(l.A,{title:r.title,footer:void 0,alertData:d,navigationData:o,nav:(0,n.jsx)(n.Fragment,{}),meta:p,children:(0,n.jsx)(s.vzF,{theme:r.meta.sectionTheme,children:c&&(0,n.jsx)(rV,{questions:c,...r,theme:r.meta.sectionTheme,xsAndBelow:u})})})};var r7=a(19586),r9=a(51848),ne=a(54403);let nt=e=>{let t=(0,eX.useRouter)(),a=(0,iq.i3)();return(0,n.jsxs)(ne.$,{testId:na.noQuizResults,children:[(0,n.jsx)(r7.X,{children:(0,n.jsx)(r9.C,{headingEn:e.headingEn,headingMi:e.headingMi})}),(0,n.jsx)(s.W20,{children:(0,n.jsxs)(s.xuv,{pt:16,pb:24,children:[e.content&&(0,n.jsx)(s._cU,{"data-testid":na.content,content:e.content,css:{mb:8,"& p":{textStyle:"paragraph-large-medium",fontWeight:500}}}),(0,n.jsxs)(s.kCb,{css:{gap:4,alignItems:"center",flexWrap:"wrap"},children:[e.restartQuizButtonText&&(0,n.jsx)(s.zxk,{variant:"primary",onClick:async()=>{e.restartQuizButtonUrl&&(await a.deleteLocalAndServerData(),await t.push(e.restartQuizButtonUrl))},...(0,s.Mir)(na.restartQuiz),children:e.restartQuizButtonText}),e.tertiaryLink&&e.tertiaryText&&(0,n.jsx)(s.rUS,{css:{color:"brand.primary.700",px:4,py:3},isExternal:"external"===e.tertiaryLink.linkType,href:e.tertiaryLink.url,...(0,s.Mir)(na.link),children:e.tertiaryText})]})]})})]})},na={noQuizResults:"no-quiz-results",restartQuiz:"restart-quiz",link:"link",content:"content"},ni=e=>{var t,a;let{pageData:i,alertData:r,footerData:o,navigationData:d}=e,{meta:{sectionTheme:c}}=i,u=(null===(t=i.meta)||void 0===t?void 0:t.searchDescription)||i.content||"",h={title:(null===(a=i.meta)||void 0===a?void 0:a.seoTitle)||i.headingEn,description:tm()(u)};
1return(0,n.jsx)(l.A,{title:i.title,footer:(0,n.jsx)(s.$_C,{data:o,topSection:i.footerCallToAction,gap:{theme:c,backgroundColor:"brand.primary.200"}}),alertData:r,navigationData:d,nav:(0,n.jsx)(s.h4i,{breadcrumbs:i.breadcrumbs,dockedColorMode:"light",sectionTheme:c}),meta:h,children:(0,n.jsx)(s.vzF,{theme:c,children:(0,n.jsx)(nt,{...i})})})},nr=e=>{var t;let{pageData:a,footerData:i,alertData:r,navigationData:o,backgroundColor:d="colorPalette.light",footer:c={backgroundColor:"colorPalette.light"},breadcrumbs:u={lightForeground:!0},children:h}=e,p={title:(null===(t=a.meta)||void 0===t?void 0:t.seoTitle)||a.title,description:a.meta.searchDescription};return(0,n.jsx)(s.f6W,{theme:a.meta.sectionTheme,children:(0,n.jsx)(l.A,{title:a.title,footer:(0,n.jsx)(s.$_C,{data:i,topSection:a.footerCallToAction,gap:"no-gap"===c?"no-gap":{...c,backgroundColor:c.backgroundColor,theme:a.meta.sectionTheme}}),alertData:r,navigationData:o,nav:(0,n.jsx)(s.h4i,{lightForeground:null==u?void 0:u.lightForeground,breadcrumbs:a.breadcrumbs}),meta:p,children:(0,n.jsx)(s.xuv,{...(0,s.Mir)("typical-page-background"),backgroundColor:d,children:h})})})};var nn=a(39097),ns=a.n(nn);let nl=[{id:1,titleEn:"Choose a main focus area below – the list includes related focus areas that others have studied as part of this qualification."},{id:2,titleEn:"Once on a focus area page go to the heading ‘What happens after this study or training?’"},{id:3,titleEn:"Discover what graduates earn and do after completing this qualification."}],no=e=>{var t;let a,{pageData:i,navigationData:r,footerData:o,qualClusterData:c,alertData:u}=e,h=null!==(t=c.qualClusters)&&void 0!==t?t:[],{providerNameEn:p,qualTitleEn:g}=c.qualAtProvider,m=h.length>0?"Find out what happens after completing the":"Sorry, we don’t have any data on the";p&&g&&(a=(0,n.jsxs)(n.Fragment,{children:[m," ",(0,n.jsx)(s.xvT,{as:"span",fontWeight:"bold",children:g})," ","at"," ",(0,n.jsx)(s.xvT,{as:"span",fontWeight:"bold",children:p}),"."]}));let x=(0,s.xex)("dark"),b=(0,n.jsx)(s.aVo.fC,{gap:4,children:h.map(e=>(0,n.jsx)(s.aVo.ck,{children:(0,n.jsx)(s.fGe,{p:4,borderRadius:"sm",bg:"brand.neutrals.100",boxShadow:"sm",_hover:{boxShadow:"md",bg:"gray.50"},_focusWithin:{outline:"none",boxShadow:"0 0 0 3px var(--chakra-colors-brand-primary-300)"},children:(0,n.jsx)(ns(),{href:e.url,passHref:!0,legacyBehavior:!0,children:(0,n.jsxs)(s.AB5,{children:[(0,n.jsx)(s.xvT,{textStyle:"paragraph-bold",color:x.en,mb:e.titleMi?1:0,children:e.titleEn}),e.titleMi&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.TXu,{children:", "}),(0,n.jsx)(s.xvT,{textStyle:"paragraph-bold",color:x.mi,children:e.titleMi})]})]})})})},e.id))}),j=(0,n.jsxs)(s.xuv,{children:[(0,n.jsx)(s.xvT,{css:{textStyle:"paragraph-regular",mt:4},children:"Here's how:"}),(0,n.jsx)(s.aVo.fC,{mt:2,gap:2,listStyle:"numbered",listStylePosition:"inside",children:nl.map(e=>{let{id:t,titleEn:a}=e;return(0,n.jsx)(s.aVo.ck,{children:(0,n.jsx)(s.xvT,{as:"span",css:{textStyle:"paragraph-regular"},children:a})},t)})})]});return(0,n.jsx)(l.A,{title:g&&p?"".concat(i.title," | ").concat(g," at ").concat(p):i.title,footer:(0,n.jsx)(s.$_C,{gap:"no-gap",data:o}),alertData:u,navigationData:r,nav:(0,n.jsx)(d.m,{breadcrumbs:i.breadcrumbs,sectionTheme:i.meta.sectionTheme,keteId:c.keteId}),children:(0,n.jsx)(s.f6W,{theme:"study",children:(0,n.jsxs)(s.W20,{fullWidthBackgroundColor:"brand.primary.100",mt:{base:12,md:24,lg:28},children:[(0,n.jsxs)(s.xuv,{css:{display:{base:"inline-block",lg:"flex"},columnGap:6,flexDirection:"column",py:{base:8,md:16,lg:14}},children:[(0,n.jsx)(s.Ysw,{testId:nd.qualificationLinksHeading,headingLevel:"h1",headingEn:"What happens after this study or training?",headingMi:"Ka aha i muri i te otinga o ēnei mahi ako, whakangungu rānei?",mb:{base:4,lg:6}}),a&&(0,n.jsx)(s.xvT,{css:{textStyle:"paragraph-regular"},children:a}),nl.length>0&&j]}),(0,n.jsx)(s.xuv,{css:{pb:{base:24,md:45}},children:b})]})})})},nd={qualificationLinksHeading:"qualification-links-heading"};var nc=!0,nu=e=>{let{bodyData:t,tecApiData:a,pageData:i,footerData:r,navigationData:s,feedbackData:l,levelTabs:o,...d}=e,c=s.alerts,u=H(i.meta.type);if(u){let{page:e,options:l}=u;return(0,n.jsx)(nr,{pageData:i,footerData:r,alertData:c,navigationData:s,footer:"function"==typeof(null==l?void 0:l.footer)?l.footer(i):null==l?void 0:l.footer,breadcrumbs:null==l?void 0:l.breadcrumbs,children:(0,n.jsx)(e,{pageData:i,bodyData:t,tecApiData:a})})}switch(i.meta.type){case"editorial.AdvicePage":case"resource_hub.ContentPage":case"resource_hub.FirstContentPage":case"resource_hub.AudiencePage":return(0,n.jsx)(tx,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,id:i.id,alertData:c});case"user_profile.AboutYouPage":return(0,n.jsx)(ae,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,id:i.id,alertData:c});case"tertiary.ExploreStudyAreaPage":return(0,n.jsx)(ar,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,studyAreasData:a,alertData:c});case"tertiary.NarrowStudyArea":return(0,n.jsx)(al,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,studyAreaData:a,alertData:c});case"tertiary.QualClusterProfilePage":return(0,n.jsx)(aR,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,qualClusterData:a,alertData:c});case"tertiary.QualificationFinderPage":return(0,n.jsx)(aO,{pageData:i,footerData:r,navigationData:s,filterStudyData:a,alertData:c});case"work.ExploreOccupationPage":return(0,n.jsx)(a$,{pageData:i,footerData:r,navigationData:s,bodyData:t,occupationData:a,alertData:c});case"work.MinorWorkCategory":return(0,n.jsx)(i$,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,minorWorkCategoryData:a,alertData:c});case"work.OccupationProfile":return(0,n.jsx)(iG,{pageData:i,footerData:r,navigationData:s,tecApiData:a,alertData:c});case"work.FindAJob":return(0,n.jsx)(ig,{pageData:i,footerData:r,navigationData:s,bodyData:t,findAJobPageData:a,alertData:c});case"school.ExploreSubjectsPage":return(0,n.jsx)(i1,{pageData:i,footerData:r,navigationData:s,tecApiData:a,alertData:c});case"school.LearningArea":return(0,n.jsx)(i2,{pageData:i,footerData:r,navigationData:s,learningAreaPageData:a,alertData:c});case"school.Subject":return(0,n.jsx)(i6,{pageData:i,footerData:r,navigationData:s,subjectProfileData:{levelTabs:o,...a},alertData:c});case"tertiary.WorkBasedTrainingPage":return(0,n.jsx)(aQ,{pageData:i,footerData:r,navigationData:s,workBasedTrainingData:a,alertData:c});case"plan.GoalBasedPlanningSearch":return(0,n.jsx)(rt,{pageData:i,footerData:r,navigationData:s,bodyData:t,goalBasedPlanningSearchData:a,alertData:c});case"planning.PathFinderPage":return(0,n.jsx)(ra.Hg,{pageData:i,footerData:r,navigationData:s,bodyData:t,goalBasedPlanningData:a,pathFinderPageData:i,alertData:c});case"inspireme.InspireMeLandingPage":return(0,n.jsx)(r6,{pageData:i,footerData:r,navigationData:s,alertData:c,questions:a.questions});case"inspireme.InspireMeQuizPage":return(0,n.jsx)(r5,{pageData:i,navigationData:s,questions:a.questions,alertData:c});case"inspireme.InspireMeResultPage":return(0,n.jsx)(iw.ks,{pageData:i,alertData:c,footerData:r,navigationData:s,questions:a.questions,tecApiData:a});case"inspireme.InspireMeNoResultPage":return(0,n.jsx)(ni,{pageData:i,alertData:c,footerData:r,navigationData:s,...d});case"tertiary.PocDataPage":return(0,n.jsx)(no,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,qualClusterData:a,alertData:c});case"news.NewsPage":return(0,n.jsx)(tt,{feedbackData:l,pageData:i,footerData:r,navigationData:s,bodyData:t,alertData:c})}return"Unhandled page type: "+i.meta.type}},83913:function(e,t,a){"use strict";a.d(t,{S:function(){return n},j:function(){return r}});let i=e=>Object.entries(e).map(e=>
1{let[t,a]=e;return"".concat(t,"=").concat(encodeURIComponent(a))}).join("&"),r=(e,t)=>"mailto:".concat(e,"?").concat(i(t)),n=e=>"\n    Please fill in the details below and send this email so we can investigate the issue you've encountered\n  \n    Someone encountered an error on Tahatū:\n    Feedback Type: ".concat(e," \n  \n    Were you signed in?\n    Yes/No\n  \n    Page Link:\n    <put the link from the address bar here>\n  \n    Browser:\n    <fill in the browser you were using>\n  \n    Device:\n    <fill in the device you were using>")}},function(e){e.O(0,[399,375,945,354,1,774,888,179],function(){return e(e.s=50793)}),_N_E=e.O()}]);

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.