1import{_ as N}from"./CdbQisJ1.js";import{d as I,o as c,c as v,a as n,G as f,J as m,C as t,E as x,b as y,I as b,e as R,w as S,F as C,D as O,t as A,r as $,_ as M,v as U,x as E,y as V,N as T}from"#entry";import{_ as q}from"./Bu3Ut8u7.js";import{_ as j}from"./BD2uUOvC.js";import{_ as F}from"./ekwhou1-.js";import{_ as K}from"./DetAW6B7.js";import{_ as H}from"./Ab5aZcYz.js";import{u as z}from"./DErXlS1R.js";import{ReadOverviewPageDocument as J}from"./DC83hjhG.js";import"./CBqEX3gF.js";import"./BzIyOAo_.js";import"./BQoafL-k.js";import"./bWfTIvgB.js";import"./PDAqZhCA.js";import"./CmTNNL2C.js";import"./BDee-KbQ.js";import"./C8jqtCxF.js";import"./fjZVWD6c.js";import"./HSFWdQo3.js";import"./DgwhPVIm.js";import"./CDbv4Pwj.js";import"./Df3Flexc.js";import"./DeN2a19Q.js";import"./sCqd4t1y.js";import"./DIjIfg2g.js";import"./sHX0Jqvi.js";import"./LzsP_8VY.js";const Q={class:"page-pattern"},W={class:"page-pattern__graphic page-pattern__graphic--first"},X={class:"page-pattern__graphic page-pattern__graphic--second"},Y={class:"page-pattern__graphic page-pattern__graphic--third"},Z={class:"page-pattern__graphic page-pattern__graphic--fourth"},ee=I({__name:"PagePatternOverview",props:{headerPattern:{}},setup(r){const p=r,l={"tax-money":{firstGraphic:"graphic--more-money-filled",secondGraphic:null,thirdGraphic:"graphic--save-time-filled",fourthGraphic:"graphic--building-filled"},people:{firstGraphic:"graphic--mountain-peak-filled",secondGraphic:null,thirdGraphic:"graphic--speech-bubble-3-filled",fourthGraphic:"graphic--long-white-cloud-filled"},operations:{firstGraphic:"graphic--speech-bubble-1-filled",secondGraphic:null,thirdGraphic:"graphic--upwards-growth-filled",fourthGraphic:"graphic--save-time-filled"},"strategy-performance":{firstGraphic:"graphic--growth-expansion-filled",secondGraphic:null,thirdGraphic:"graphic--abstract-fern-filled",fourthGraphic:"graphic--speech-bubble-2-filled"},"business-stages-type":{firstGraphic:"graphic--speech-bubble-3-filled",secondGraphic:null,thirdGraphic:"graphic--upwards-growth-filled",fourthGraphic:"graphic--building-filled"},default:{firstGraphic:"graphic--more-money-filled",secondGraphic:null,thirdGraphic:"graphic--save-time-filled",fourthGraphic:"graphic--building-filled"}},d=b(()=>{if(!p.headerPattern)return l.default;const k=p.headerPattern.toLowerCase().replace(/\s+/g,"-");return l[k]||l.default});return(k,G)=>{const _=N;return c(),v("div",Q,[n("div",W,[f(_,{class:m(t(d).firstGraphic)},null,8,["class"])]),n("div",X,[t(d).secondGraphic?(c(),x(_,{key:0,class:m(t(d).secondGraphic)},null,8,["class"])):y("",!0)]),n("div",Y,[f(_,{class:m(t(d).thirdGraphic)},null,8,["class"])]),n("div",Z,[f(_,{class:m(t(d).fourthGraphic)},null,8,["class"])])])}}}),te={class:"overview-links"},ae={class:"overview-links__inner"},ie={class:"container container--content overview-links__container"},ne={class:"overview-links__carousel",role:"region","aria-roledescription":"carousel","aria-label":"Navigation options"},re={class:"overview-links__list"},oe=["onClick","onKeydown","tabindex","aria-current","aria-label"],se={class:"overview-links__button",type:"button"},le={class:"overview-links__button-heading"},ce={class:"overview-links__pips",role:"tablist","aria-label":"Carousel navigation"},pe={class:"container"},de={class:"overview-links__pips-inner"},ue={key:0,class:"overview-links__pip overview-links__pip--more-indicator"},_e=["onClick","aria-label","aria-selected","tabindex"],he={key:1,class:"overview-links__pip overview-links__pip--more-indicator"},ge=I({__name:"OverviewNavSlider",props:{previousLinks:{},nextLinks:{}},setup(r){const p=[...r.previousLinks,...r.nextLinks],l=b(()=>{const a=[...r.previousLinks,...r.nextLinks],o=a.length,g=Math.min(2,e.value),s=Math.min(2,o-e.value-1),i=1+g+s,u=e.value-g,B=u+i;return{links:a.slice(u,B),startIndex:u}}),d=b(()=>l.value.links),k=b(()=>l.value.startIndex>0),G=b(()=>{const a=[...r.previousLinks,...r.nextLinks];return l.value.startIndex+l.value.links.length<a.length}),_=r.nextLinks.length===0?r.previousLinks.length-1:r.previousLinks.length,e=$(_),h=a=>l.value.startIndex+a,w=()=>{document.documentElement.style.setProperty("--current-index",e.value.toString())},P=a=>{e.value=a,w();const o=document.querySelectorAll(".overview-links__item");o[a]&&o[a].focus()},L=(a,o)=>{a===e.value?o.link&&(window.location.href=o.link):P(a)},D=(a,o,g)=>{if(a.key==="Enter"||a.key===" ")a.preventDefault(),L(o,g);else if(a.key==="ArrowLeft"||a.key==="ArrowRight"){a.preventDefault();const s=a.key==="ArrowLeft"?-1:1,i=(e.value+s+p.length)%p.length;P(i)}};return R(()=>{w()}),S(e,()=>{w()}),(a,o)=>{const g=K;return c(),v("section",te,[n("div",ae,[o[0]||(o[0]=n("div",{class:"container container--content"},[n("div",{class:"overview-links__header"},[n("h2",{class:"overview-links__heading"},"What's next")])],-1)),n("div",ie,[n("div",ne,[n("ul",re,[(c(),v(C,null,O(p,(s,i)=>n("li",{key:s.id,class:m([{"overview-links__item--current":i===t(e)},"overview-links__item"]),onClick:u=>L(i,s),onKeydown:u=>D(u,i,s),tabindex:i===t(e)?0:-1,"aria-current":i===t(e)?"true":"false","aria-label":`${s.menuTitle}${i===t(e)?", current slide":""}`},[n("button",se,[n("span",le,A(s.menuTitle),1),f(g,{type:"arrow",class:m(["button-icon--invert-with-hover-change",{"overview-links__link-icon--active":i===t(e)}])},null,8,["class"])])],42,oe)),64))])])])]),n("div",ce,[n("div",pe,[n("div",de,[t(k)?(c(),v("div",ue)):y("",!0),(c(!0),v(C,null,O(t(d),(s,i)=>(c(),v("button",{key:`pip-${s.id}`,class:m([{"overview-links__pip--active":h(i)===t(e)},"overview-links__pip"]),onClick:u=>P(h(i)),"aria-label":`Go to slide ${h(i)+1}: ${s.menuTitle}`,"aria-selected":h(i)===t(e)?"true":"false",role:"tab",tabindex:h(i)===t(e)?0:-1},null,10,_e))),128)),t(G)?(c(),v("div",he)):y("",!0)])])])])}}}),ve=M(ge,[["__scopeId","data-v-20c61fbc"]]),me={id:"main"},Ke=I({__name:"OverviewPage",props:{sourcePageLink:{},theme:{},canonicalUrl:{}},async setup(r){let p,l;const d=U();z(r.theme,r.canonicalUrl);const k=b(()=>r.sourcePageLink||d.path),G=E(),_=([p,l]=V(()=>G.client.query({query:J,variables:{link:k.value}})),p=await p,l(),p),e=$({page:_.data?.page}),h=$(null),w=$("");return T("openSlideOverPanel",async(L=null)=>{w.value=L,h.value?.open()}),T("pageType","overview-page"),(L,D)=>{const a=ee,o=q,g=j,s=F,i=ve,u=H;return c(),v(C,null,[t(e)?.page?.headerPattern?(c(),x(a,{key:0,headerPattern:t(e)?.page?.headerPattern,breadcrumbs:t(e)?.page?.breadcrumbs,currentPageId:t(e)?.page?.id},null,8,["headerPattern","breadcrumbs","currentPageId"])):y("",!0),f(o,{title:t(e)?.page?.title,teReoTitle:t(e)?.page?.teReoTitle,intro:t(e)?.page?.intro,download:t(e)?.page?.download,associatedOrganisations:t(e)?.page?.associatedOrganisations,associatedBannerPrefix:t(e)?.page?.associatedBannerPrefix,pageType:t(e)?.page?.componentName},null,8,["title","teReoTitle","intro","download","associatedOrganisations","associatedBannerPrefix","pageType"]),n("main",me,[t(e)?.page?.elementalAreaID?(c(),x(g,{key:0,id:t(e).page.elementalAreaID},null,8,["id"])):y("",!0),f(s,{lastReviewedDate:t(e)?.page?.formattedLastReviewedDate,lastMajorUpdate:t(e)?.page?.formattedLastMajorUpdate,breadcrumbs:t(e)?.page?.breadcrumbs,pageID:t(e)?.page?.id,pageTitle:t(e)?.page?.title,pageType:t(e)?.page?.__typename,ratingBlock:t(e)?.page?.ratingBlock,shareUrl:t(e)?.page?.canonicalUrl},null,8,["lastReviewedDate","lastMajorUpdate","breadcrumbs","pageID","pageTitle","pageType","ratingBlock","shareUrl"]),t(e)?.page?.overviewNavigationLinks?.previous.length||t(e)?.page?.overviewNavigationLinks?.next.length?(c(),x(i,{key:1,previousLinks:t(e)?.page?.overviewNavigationLinks?.previous,nextLinks:t(e)?.page?.overviewNavigationLinks?.next},null,8,["previousLinks","nextLinks"])):y("",!0),f(u,{ref_key:"slideOverPanelRef",ref:h,link:t(w),pageType:"detail-page"},null,8,["link"])])],64)}}});
1export{Ke as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.