PageSourceSearch

https://policy.nz/_next/static/chunks/pages/how-to-vote-fa1195c6da7c1989.js

js policy.nz collected 2026-10-02 08:04:37 UTC 9,211 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[565],{1151:e=>{e.exports={section:"HomeCta_section__PcJXc",inner:"HomeCta_inner__9ZNpB",header:"HomeCta_header__83z4L",title:"HomeCta_title__0JCR7",standfirst:"HomeCta_standfirst___L5vz",cards:"HomeCta_cards__RZ5yP",card:"HomeCta_card___Fwmq",cardHeader:"HomeCta_cardHeader__2dn8W",cardTitle:"HomeCta_cardTitle___ETP9",cardBody:"HomeCta_cardBody__rtyWE",action:"HomeCta_action__57D1X",actionTeal:"HomeCta_actionTeal__kKVSt",actionOrange:"HomeCta_actionOrange__WjcxE",actionPurple:"HomeCta_actionPurple__AC67W"}},2091:(e,t,i)=>{"use strict";i.d(t,{g:()=>_});var s=i(7876),a=i(5039),n=i.n(a);i(4232);var r=i(315),o=i(9868),l=i(1151),c=i.n(l);let d=[c().actionTeal,c().actionOrange,c().actionPurple],_=({items:e,standfirst:t})=>(0,s.jsx)("section",{className:c().section,children:(0,s.jsx)(r.mc,{children:(0,s.jsxs)("div",{className:c().inner,children:[(0,s.jsxs)("div",{className:c().header,children:[(0,s.jsx)("h2",{className:c().title,children:o.dc.title}),t&&(0,s.jsx)("p",{className:c().standfirst,children:t})]}),(0,s.jsx)("div",{className:c().cards,children:e.map((e,t)=>(0,s.jsxs)("div",{className:c().card,children:[(0,s.jsxs)("div",{className:c().cardHeader,children:[(0,s.jsx)("h3",{className:c().cardTitle,children:e.title}),(0,s.jsx)("p",{className:c().cardBody,children:e.subTitle})]}),(0,s.jsx)("button",{className:n()(c().action,d[t%d.length]),onClick:e.onClick,children:o.dc.action})]},e.title))})]})})})},2115:e=>{e.exports={card:"HowToVotePanel_card__OkuLm",standfirst:"HowToVotePanel_standfirst__1AXCy",columns:"HowToVotePanel_columns__Qk2aK",toc:"HowToVotePanel_toc__8huwH",tocLink:"HowToVotePanel_tocLink__OsvfA",tocLinkActive:"HowToVotePanel_tocLinkActive__MagdZ",article:"HowToVotePanel_article__v_oUn",heading2:"HowToVotePanel_heading2__EzECx",heading3:"HowToVotePanel_heading3__DvO8F",paragraph:"HowToVotePanel_paragraph__fiqhz"}},2949:(e,t,i)=>{"use strict";i.d(t,{k:()=>l});var s=i(7876);i(4232);var a=i(7328),n=i.n(a),r=i(9099),o=i(9868);let l=({host:e,title:t,campaign:i,description:a,image:l,type:c="website"})=>{let d=o.Pg.TITLE,_=t?[t,i,d].filter(Boolean).join(" - "):[d,i].filter(Boolean).join(" - "),h=a||o.Pg.DESCRIPTION,m=(0,r.useRouter)(),p=`https://${e}${m.asPath}`;return(0,s.jsxs)(n(),{children:[(0,s.jsx)("title",{children:_}),(0,s.jsx)("link",{rel:"canonical",href:p}),(0,s.jsx)("meta",{name:"description",content:h}),(0,s.jsx)("meta",{property:"og:type",content:c}),(0,s.jsx)("meta",{property:"og:url",content:p}),(0,s.jsx)("meta",{property:"og:site_name",content:d}),(0,s.jsx)("meta",{property:"og:title",content:_}),(0,s.jsx)("meta",{property:"og:description",content:h}),l?(0,s.jsx)("meta",{property:"og:image",content:l}):(0,s.jsx)("meta",{property:"og:image",content:`https://${e}${o.Pg.IMAGE}`}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]})}},3475:e=>{e.exports={section:"ThingsToKnow_section__QAaG_",overlap:"ThingsToKnow_overlap__pWCDq",inner:"ThingsToKnow_inner__ttM0r",header:"ThingsToKnow_header__2SXgn",title:"ThingsToKnow_title__bEmwG",standfirst:"ThingsToKnow_standfirst__4hNU9",link:"ThingsToKnow_link__jwx6U",items:"ThingsToKnow_items__2Vi1C",item:"ThingsToKnow_item__BQXOz",icon:"ThingsToKnow_icon__wgi87",itemText:"ThingsToKnow_itemText__tn3ws",itemTitle:"ThingsToKnow_itemTitle__SNC59",itemBody:"ThingsToKnow_itemBody__O3ovz",illustration:"ThingsToKnow_illustration__TB9W_"}},6013:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>T,default:()=>j});var s=i(7876),a=i(9099),n=i(4232),r=i(2091),o=i(7846),l=i(7737),c=i(7365),d=i(2949),_=i(8124),h=i(3958),m=i(2670),p=i(8993),g=i.n(p),x=i(6823),u=i(9868),T=!0;let j=({host:e,page:t,campaign:i,tags:p,resources:T,homePage:j,topics:w})=>{let A=(0,a.useRouter)(),{dispatch:N,state:{address:v,userElections:f}}=(0,n.useContext)(h.B),k=(0,x._q)(i.slug),y={host:e,campaign:i.name,title:t.title},H=(k?u.Fc:u.qk).map(e=>({title:e.title,subTitle:e.subTitle,onClick:()=>{if(e.electionTypes){var t,s;return void(t=e.electionTypes,s=e.tagGroups,v&&f&&f.length>0?A.push((0,x.eT)(f,i.slug,t??[])):N((0,m.cN)(!0,t,s)))}let a=(0,x.aH)(i.slug,e.path,i.partyElection,j?.election,w?.[0]?.slug);a&&A.push(a)}}));return(0,s.jsxs)(c.P,{campaign:i,tags:p,resources:T,children:[(0,s.jsx)(d.k,{...y}),(0,s.jsxs)("div",{className:g().pageTop,children:[(0,s.jsx)(o.i,{title:t.title}),(0,s.jsx)("div",{className:g().cardWrap,children:(0,s.jsx)(l.s,{standfirst:t.standfirst,body:t.body})})]}),(0,s.jsx)(r.g,{items:H,standfirst:i.description}),k&&(0,s.jsx)(_.Q,{overlap:!1})]})}},7119:e=>{e.exports={hero:"HowToVoteHero_hero__UX_NQ",inner:"HowToVoteHero_inner__NEJym",title:"HowToVoteHero_title__xPk2Y"}},7737:(e,t,i)=>{"use strict";i.d(t,{s:()=>m});var s=i(7876),a=i(1727),n=i(5039),r=i.n(n),o=i(4232);let l=e=>!!e&&"object"==typeof e&&"block"===e._type,c=e=>(e.children??[]).map(e=>"text"in e?String(e.text):"").join("").trim(),d=e=>e?Array.isArray(e)?e:[e]:[];var _=i(2115),h=i.n(_);let m=({standfirst:e,body:t})=>{let i=e?"string"==typeof e?e:d(e).map(e=>
1l(e)?c(e):"").filter(Boolean).join(" "):"",n=(0,o.useMemo)(()=>d(t),[t]),_=(0,o.useMemo)(()=>{let e,t,i,s;return i=(t=(e=d(n).filter(l)).filter(e=>"h2"===e.style)).length?t:e.filter(e=>"h3"===e.style),s=new Map,i.flatMap((e,t)=>{let i=c(e);if(!i)return[];let a=i.toLowerCase().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"section",n=s.get(a)??0;s.set(a,n+1);let r=0===n?a:`${a}-${n+1}`;return[{id:r,key:e._key||`${r}-${t}`,label:i}]})},[n]),m=(0,o.useMemo)(()=>new Map(_.map(e=>[e.key,e.id])),[_]),[p,g]=(0,o.useState)(""),x=p||_[0]?.id||"";return(0,o.useEffect)(()=>{if(!_.length)return;let e=_.map(e=>document.getElementById(e.id)).filter(e=>!!e);if(!e.length)return;let t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top);t[0]?.target.id&&g(t[0].target.id)},{rootMargin:"-20% 0px -65% 0px",threshold:0});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[_]),(0,s.jsxs)("div",{className:h().card,children:[i&&(0,s.jsx)("p",{className:h().standfirst,children:i}),(0,s.jsxs)("div",{className:h().columns,children:[_.length>0&&(0,s.jsx)("nav",{className:h().toc,"aria-label":"On this page",children:_.map(e=>(0,s.jsx)("a",{className:r()(h().tocLink,{[h().tocLinkActive]:e.id===x}),href:`#${e.id}`,onClick:t=>{var i;return i=e.id,void(t.preventDefault(),document.getElementById(i)?.scrollIntoView({behavior:"smooth"}),g(i),window.history.replaceState(null,"",`#${i}`))},children:e.label},e.key))}),n.length>0&&(0,s.jsx)("div",{className:h().article,children:(0,s.jsx)(a.RK,{value:n,components:{block:{h2:({value:e,children:t})=>(0,s.jsx)("h2",{className:h().heading2,id:e._key?m.get(e._key):void 0,children:t}),h3:({value:e,children:t})=>(0,s.jsx)("h3",{className:h().heading3,id:e._key?m.get(e._key):void 0,children:t}),h4:({children:e})=>(0,s.jsx)("h4",{className:h().heading3,children:e}),h5:({children:e})=>(0,s.jsx)("h5",{className:h().heading3,children:e}),normal:({children:e})=>(0,s.jsx)("p",{className:h().paragraph,children:e})},marks:{fileLink:({value:e,children:t})=>(0,s.jsx)("a",{href:`${e?.url}?dl`,children:t})}}})})]})]})}},7846:(e,t,i)=>{"use strict";i.d(t,{i:()=>o});var s=i(7876);i(4232);var a=i(315),n=i(7119),r=i.n(n);let o=({title:e})=>(0,s.jsx)("section",{className:r().hero,children:(0,s.jsx)(a.mc,{children:(0,s.jsx)("div",{className:r().inner,children:(0,s.jsx)("h1",{className:r().title,children:e})})})})},8124:(e,t,i)=>{"use strict";i.d(t,{Q:()=>g});var s=i(7876);i(4232);var a=i(5039),n=i.n(a),r=i(4587),o=i.n(r),l=i(8230),c=i.n(l),d=i(315),_=i(9868);let h={src:"/_next/static/media/things-to-know-bird.201e4df5.webp",height:434,width:796,blurDataURL:"data:image/webp;base64,UklGRooAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAAU60VAAAABQANzOlUULDTBKDJ4fn8hgwABoHcJ2Ha6okAVlA4IEIAAADQAQCdASoIAAQAAkA4JYgCdAEfbhD3AAD+9rR30Pwv7rIXNsW/nlqH/shDexCI+QdqrcGu8NzV+i7GbF5oJT0AAAA=",blurWidth:8,blurHeight:4};var m=i(3475),p=i.n(m);let g=({className:e,overlap:t=!0,...i})=>{let{title:a,standfirst:r,link:l,items:m}=_.uL;return(0,s.jsxs)("div",{...i,className:n()(p().section,e,{[p().overlap]:t}),children:[(0,s.jsx)(d.mc,{children:(0,s.jsxs)("div",{className:p().inner,children:[(0,s.jsxs)("div",{className:p().header,children:[(0,s.jsx)("h2",{className:p().title,children:a}),(0,s.jsx)("p",{className:p().standfirst,children:r}),(0,s.jsx)(c(),{href:l.href,className:p().link,children:l.label})]}),(0,s.jsx)("ul",{className:p().items,children:m.map(({icon:e,title:t,text:i})=>(0,s.jsxs)("li",{className:p().item,children:[(0,s.jsx)("span",{className:p().icon,children:(0,s.jsx)(e,{})}),(0,s.jsxs)("div",{className:p().itemText,children:[(0,s.jsx)("h3",{className:p().itemTitle,children:t}),(0,s.jsx)("p",{className:p().itemBody,children:i})]})]},t))})]})}),(0,s.jsx)("div",{className:p().illustration,"aria-hidden":!0,children:(0,s.jsx)(o(),{src:h,alt:"",sizes:"398px"})})]})}},8196:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/how-to-vote",function(){return i(6013)}])},8993:e=>{e.exports={pageTop:"HowToVotePage_pageTop__1GC0L",cardWrap:"HowToVotePage_cardWrap__Nc03g"}}},e=>{e.O(0,[946,727,365,636,593,792],()=>e(e.s=8196)),_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.