PageSourceSearch

https://www.powercor.com.au/_next/static/chunks/e129e9a2cf51b8ea.js

js powercor.com.au collected 2026-10-02 10:49:02 UTC 259,049 bytes, 92 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3209bfe0-a36f-9865-e248-1bb9279b0b62")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,473034,951893,448544,e=>{"use strict";var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a({snapCount:e,selectedSnap:r,onSelect:a,trackClassName:s="bg-blue-20",indicatorClassName:l="bg-midnight"}){let[i,o]=(0,n.useState)(!1),d=(0,n.useRef)(null),c=(0,n.useCallback)(t=>{if(!d.current)return r;let n=d.current.getBoundingClientRect();return Math.min(Math.floor(Math.max(0,Math.min(1,(t-n.left)/n.width))*e),e-1)},[e,r]),u=(0,n.useCallback)(e=>{o(!0),e.currentTarget.setPointerCapture(e.pointerId),a(c(e.clientX))},[c,a]),x=(0,n.useCallback)(e=>{i&&a(c(e.clientX))},[i,c,a]),p=(0,n.useCallback)(()=>{o(!1)},[]);return e<=1?null:(0,t.jsx)("div",{ref:d,className:`relative h-1 w-full cursor-pointer touch-none select-none ${s}`,role:"tablist","aria-label":"Carousel pagination",onPointerDown:u,onPointerMove:x,onPointerUp:p,onPointerCancel:p,children:(0,t.jsx)("div",{className:`absolute top-0 left-0 h-full transition-transform duration-300 ease-out ${l}`,style:{width:`${100/e}%`,transform:`translateX(${100*r}%)`},role:"tab","aria-selected":!0,"aria-label":`Slide group ${r+1} of ${e}`})})}e.s(["PaginationBar",()=>a],951893);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}e.s([],473034);try{var l="u">typeof window?window:e.g;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function d(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}try{var c="u">typeof window?window:e.g;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function u(e){return"number"==typeof e}function x(e){return"string"==typeof e}function p(e){return"boolean"==typeof e}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function m(e){return Math.abs(e)}function f(e){return Math.sign(e)}function g(e){return v(e).map(Number)}function b(e){return e[y(e)]}function y(e){return Math.max(0,e.length-1)}function w(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function v(e){return Object.keys(e)}function j(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function M(){let e=[],t={add:function(n,r,a,s={passive:!0}){let l;return"addEventListener"in n?(n.addEventListener(r,a,s),l=()=>n.removeEventListener(r,a,s)):(n.addListener(a),l=()=>n.removeListener(a)),e.push(l),t},clear:function(){e=e.filter(e=>e())}};return t}function k(e=0,t=0){let n=m(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function N(e){let t=e;function n(e){return u(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function _(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,a=null,s=!1;return{clear:function(){!s&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(s)return;let l=Math.round(100*e.direction(t))/100;l!==a&&(r.transform=n(l),a=l)},toggleActive:function(e){s=!e}}}let C={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function L(e,t,n){let r,a,s,l,i,o,d,c,E=e.ownerDocument,S=E.defaultView,B=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>
2(v(n).forEach(r=>{let a=t[r],s=n[r],l=h(a)&&h(s);t[r]=l?e(a,s):s}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},a=v(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,a)},optionsMediaQueries:function(t){return t.map(e=>v(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(S),A=(c=[],{init:function(e,t){return(c=t.filter(({options:e})=>!1!==B.optionsAtMedia(e).active)).forEach(t=>t.init(e,B)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){c=c.filter(e=>e.destroy())}}),P=M(),$=(a={},s={init:function(e){r=e},emit:function(e){return(a[e]||[]).forEach(t=>t(r,e)),s},off:function(e,t){return a[e]=(a[e]||[]).filter(e=>e!==t),s},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),s},clear:function(){a={}}}),{mergeOptions:H,optionsAtMedia:I,optionsMediaQueries:O}=B,{on:F,off:T,emit:D}=$,V=!1,K=H(C,L.globalOptions),z=H(K),R=[];function Z(t,n){V||(z=I(K=H(K,t)),R=n||R,function(){let{container:t,slides:n}=z;o=(x(t)?e.querySelector(t):t)||e.children[0];let r=x(n)?o.querySelectorAll(n):n;d=[].slice.call(r||o.children)}(),l=function t(n){let r=function(e,t,n,r,a,s,l){var i,o;let d,c,h,C,L,E,S,B,A,P,$,H,I,O,{align:F,axis:T,direction:D,startIndex:V,loop:K,duration:z,dragFree:R,dragThreshold:Z,inViewThreshold:U,slidesToScroll:W,skipSnaps:q,containScroll:G,watchResize:J,watchSlides:X,watchDrag:Y,watchFocus:Q}=s,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:a}=e;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}},et=ee.measure(t),en=n.map(ee.measure),er=(c="rtl"===D,C=(h="y"===T)||!c?1:-1,L=h?"top":c?"right":"left",E=h?"bottom":c?"left":"right",{scroll:h?"y":"x",cross:h?"x":"y",startEdge:L,endEdge:E,measureSize:function(e){let{height:t,width:n}=e;return h?t:n},direction:function(e){return e*C}}),ea=er.measureSize(et),es={measure:function(e){return e/100*ea}},el=(i=F,o=ea,d={start:function(){return 0},center:function(e){return(o-e)/2},end:function(e){return o-e}},{measure:function(e,t){return x(i)?d[i](e):i(o,e,t)}}),ei=!K&&!!G,{slideSizes:eo,slideSizesWithGaps:ed,startGap:ec,endGap:eu}=function(e,t,n,r,a,s){let{measureSize:l,startEdge:i,endEdge:o}=e,d=n[0]&&a,c=function(){if(!d)return 0;let e=n[0];return m(t[i]-e[i])}(),u=d?parseFloat(s.getComputedStyle(b(r)).getPropertyValue(`margin-${o}`)):0,x=n.map(l),p=n.map((e,t,n)=>{let r=t===y(n);return t?r?x[t]+u:n[t+1][i]-e[i]:x[t]+c}).map(m);return{slideSizes:x,slideSizesWithGaps:p,startGap:c,endGap:u}}(er,et,en,n,K||!!G,a),ex=function(e,t,n,r,a,s,l,i,o){let{startEdge:d,endEdge:c,direction:x}=e,p=u(n);return{groupSlides:function(e){return p?g(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?g(e).reduce((n,o,u)=>{let p=b(n)||0,h=o===y(e),f=a[d]-s[p][d],g=a[d]-s[o][c],w=r||0!==p?0:x(l),v=m(g-(!r&&h?x(i):0)-(f+w));return u&&v>t+2&&n.push(o),h&&n.push(e.length),n},[]).map((t,n,r)=>{let a=Math.max(r[n-1]||0);return e.slice(a,t)}):[]}}}(er,ea,W,K,et,en,ec,eu,0),{snaps:ep,snapsAligned:eh}=function(e,t,n,r,a){let{startEdge:s,endEdge:l}=e,{groupSlides:i}=a,o=i(r).map(e=>b(e)[l]-e[0][s]).map(m).map(t.measure),d=r.map(e=>n[s]-e[s]).map(e=>-m(e)),c=i(d).map(e=>e[0]).map((e,t)=>e+o[t]);return{snaps:d,snapsAligned:c}}(er,el,et,en,ex),em=-b(ep)+b(ed),{snapsContained:ef,scrollContainLimit:eg}=function(e,t,n,r,a){let s,l,i=k(-t+e,0),o=n.map((e,t)=>{let{min:r,max:a}=i,s=i.constrain(e),l=t===y(n);return t?l||function(e,t){return 1>=m(e-t)}(r,s)?r:function(e,t){return 1>=m(e-t)}(a,s)?a:s:a}).map(e=>parseFloat(e.toFixed(3))),d=(s=o[0],l=b(o),k(o.lastIndexOf(s),o.indexOf(l)+1));return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===r)return o;let{min:n,max:a}=d;return o.slice(n,a)}(),scrollContainLimit:d}}(ea,em,eh,G,0),eb=ei?ef:eh,{limit:ey}=(S=eb[0],{limit:k(K?S-em:b(eb),S)}),ew=function e(t,n,r){let{constrain:a}=k(0,t),s=t+1,l=i(n);function i(e){return r?m((s+e)%s):a(e)}function o(){return e(t,l,r)}let d={get:function(){return l},set:function(e){return l=i(e),d},add:function(e){return o().set(l+e)},clone:o};return d}(y(eb),V,K),ev=ew.clone(),ej=g(n),eM=function(e,t,n,r){let a=M(),s=1e3/60,l=null,i=0,o=0;function d(e){if(!o)return;l||(l=e,n(),n());let a=e-l;for(l=e,i+=a;i>=s;)n(),i-=s;r(i/s),o&&(o=t.requestAnimationFrame(d))}function c(){t.cancelAnimationFrame(o),l=null,i=0,o=0}return{init:function(){a.add(e,"visibilitychange",()=>{e.hidden&&(l=null,i=0)})},destroy:function(){c(),a.clear()},start:function(){o||(o=t.requestAnimationFrame(d))},stop:c,update:n,render:r}}(r,a,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eO),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:a,scrollLooper:s,slideLooper:l,dragHandler:i,animation:o,eventHandler:d,scrollBounds:c,options:{loop:u}},x)=>{let p=e.settled(),h=!c.shouldConstrain(),m=u?p:p&&h,f=m&&!i.pointerDown();f&&o.stop();let g=n.get()*x+a.get()*(1-x);r.set(g),u&&(s.loop(e.direction()),l.loop()),t.to(r.get()),f&&d.emit("settle"),m||d.emit("scroll")})(eO,e)),ek=eb[ew.get()],eN=N(ek),e_=N(ek),eC=N(ek),eL=N(ek),eE=function(e,t,n,r,a,s){let l=0,i=0,o=a,d=.68,c=e.get(),u=0;function x(e){return o=e,h}function p(e){return d=e,h}let h={direction:function(){return i},duration:function(){return o},velocity:function(){return l},seek:function(){let t=r.get()-e.get(),a=0;return o?(n.set(e),l+=t/o,l*=d,c+=l,e.add(l),a=c-u):(l=0,n.set(r),e.set(r),a=t),i=f(a),u=c,h},settled:function(){return .001>m(r.get()-t.get())},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return x(a)},useFriction:p,useDuration:x};return h}(eN,eC,e_,eL,z,0),eS=function(e,t,n,r,a){let{reachedAny:s,removeOffset:l,constrain:i}=r;function o(e){return e.concat().sort((e,t)=>
2m(e)-m(t))[0]}function d(t,r){let a=[t,t+n,t-n];if(!e)return t;if(!r)return o(a);let s=a.filter(e=>f(e)===r);return s.length?o(s):b(a)-n}return{byDistance:function(n,r){let o=a.get()+n,{index:c,distance:u}=function(n){let r=e?l(n):i(n),{index:a}=t.map((e,t)=>({diff:d(e-r,0),index:t})).sort((e,t)=>m(e.diff)-m(t.diff))[0];return{index:a,distance:r}}(o),x=!e&&s(o);if(!r||x)return{index:c,distance:n};let p=n+d(t[c]-u,0);return{index:c,distance:p}},byIndex:function(e,n){let r=d(t[e]-a.get(),n);return{index:e,distance:r}},shortcut:d}}(K,eb,em,ey,eL),eB=function(e,t,n,r,a,s,l){function i(a){let i=a.distance,o=a.index!==t.get();s.add(i),i&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),o&&(n.set(t.get()),t.set(a.index),l.emit("select"))}return{distance:function(e,t){i(a.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);i(a.byIndex(r.get(),n))}}}(eM,ew,ev,eE,eS,eL,l),eA=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ey),eP=M(),e$=(A={},P=null,$=null,H=!1,{init:function(){B=new IntersectionObserver(e=>{H||(e.forEach(e=>{A[n.indexOf(e.target)]=e}),P=null,$=null,l.emit("slidesInView"))},{root:t.parentElement,threshold:U}),n.forEach(e=>B.observe(e))},destroy:function(){B&&B.disconnect(),H=!0},get:function(e=!0){if(e&&P)return P;if(!e&&$)return $;let t=v(A).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=A[r];
2return(e&&a||!e&&!a)&&t.push(r),t},[]);return e&&(P=t),e||($=t),t}}),{slideRegistry:eH}=function(e,t,n,r,a,s){let l,{groupSlides:i}=a,{min:o,max:d}=r;return{slideRegistry:(l=i(s),1===n.length?[s]:e&&"keepSnaps"!==t?l.slice(o,d).map((e,t,n)=>{let r=t===y(n);return t?r?w(y(s)-b(n)[0]+1,b(n)[0]):e:w(b(n[0])+1)}):l)}}(ei,G,eb,eg,ex,ej),eI=function(e,t,n,r,a,s,l,i){let o={passive:!0,capture:!0},d=0;function c(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(x){i&&(s.add(document,"keydown",c,!1),t.forEach((t,c)=>{s.add(t,"focus",t=>{(p(i)||i(x,t))&&function(t){if(new Date().getTime()-d>10)return;l.emit("slideFocusStart"),e.scrollLeft=0;let s=n.findIndex(e=>e.includes(t));u(s)&&(a.useDuration(0),r.index(s,0),l.emit("slideFocus"))}(c)},o)}))}}}(e,n,eH,eB,eE,eP,l,Q),eO={ownerDocument:r,ownerWindow:a,eventHandler:l,containerRect:et,slideRects:en,animation:eM,axis:er,dragHandler:function(e,t,n,r,a,s,l,i,o,d,c,u,x,h,g,b,y,w,v){let{cross:N,direction:_}=e,C=["INPUT","SELECT","TEXTAREA"],L={passive:!1},E=M(),S=M(),B=k(50,225).constrain(h.measure(20)),A={mouse:300,touch:400},P={mouse:500,touch:600},$=g?43:25,H=!1,I=0,O=0,F=!1,T=!1,D=!1,V=!1;function K(e){if(!j(e,r)&&e.touches.length>=2)return z(e);let t=s.readPoint(e),n=s.readPoint(e,N),l=m(t-I),o=m(n-O);if(!T&&!V&&(!e.cancelable||!(T=l>o)))return z(e);let c=s.pointerMove(e);l>b&&(D=!0),d.useFriction(.3).useDuration(.75),i.start(),a.add(_(c)),e.preventDefault()}function z(e){var t;let n,r,a=c.byDistance(0,!1).index!==u.get(),l=s.pointerUp(e)*(g?P:A)[V?"mouse":"touch"],i=(t=_(l),n=u.add(-1*f(t)),r=c.byDistance(t,!g).distance,g||m(t)<B?r:y&&a?.5*r:c.byIndex(n.get(),0).distance),p=function(e,t){var n,r;if(0===e||0===t||m(e)<=m(t))return 0;let a=(n=m(e),r=m(t),m(n-r));return m(a/e)}(l,i);T=!1,F=!1,S.clear(),d.useDuration($-10*p).useFriction(.68+p/50),o.distance(i,!g),V=!1,x.emit("pointerUp")}function R(e){D&&(e.stopPropagation(),e.preventDefault(),D=!1)}return{init:function(e){v&&E.add(t,"dragstart",e=>e.preventDefault(),L).add(t,"touchmove",()=>void 0,L).add(t,"touchend",()=>void 0).add(t,"touchstart",i).add(t,"mousedown",i).add(t,"touchcancel",z).add(t,"contextmenu",z).add(t,"click",R,!0);function i(i){(p(v)||v(e,i))&&function(e){let i,o=j(e,r);if((V=o,D=g&&o&&!e.buttons&&H,H=m(a.get()-l.get())>=2,!o||0===e.button)&&(i=e.target.nodeName||"",!C.includes(i))){let r;F=!0,s.pointerDown(e),d.useFriction(0).useDuration(0),a.set(l),r=V?n:t,S.add(r,"touchmove",K,L).add(r,"touchend",z).add(r,"mousemove",K,L).add(r,"mouseup",z),I=s.readPoint(e),O=s.readPoint(e,N),x.emit("pointerDown")}}(i)}},destroy:function(){E.clear(),S.clear()},pointerDown:function(){return F}}}(er,e,r,a,eL,function(e,t){let n,r;function a(e){return e.timeStamp}function s(n,r){let a=r||e.scroll,s=`client${"x"===a?"X":"Y"}`;return(j(n,t)?n:n.touches[0])[s]}return{pointerDown:function(e){return n=e,r=e,s(e)},pointerMove:function(e){let t=s(e)-s(r),l=a(e)-a(n)>170;return r=e,l&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=s(r)-s(n),l=a(e)-a(n),i=a(e)-a(r)>170,o=t/l;return l&&!i&&m(o)>.1?o:0},readPoint:s}}(er,a),eN,eM,eB,eE,eS,ew,l,es,R,Z,q,0,Y),eventStore:eP,percentOfView:es,index:ew,indexPrevious:ev,limit:ey,location:eN,offsetLocation:eC,previousLocation:e_,options:s,resizeHandler:function(e,t,n,r,a,s,l){let i,o,d=[e].concat(r),c=[],u=!1;function x(e){return a.measureSize(l.measure(e))}return{init:function(a){s&&(o=x(e),c=r.map(x),i=new ResizeObserver(n=>{(p(s)||s(a,n))&&function(n){for(let s of n){if(u)return;let n=s.target===e,l=r.indexOf(s.target),i=n?o:c[l];if(m(x(n?e:r[l])-i)>=.5){a.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{d.forEach(e=>i.observe(e))}))},destroy:function(){u=!0,i&&i.disconnect()}}}(t,l,a,n,er,J,ee),scrollBody:eE,scrollBounds:function(e,t,n,r,a){let s=a.measure(10),l=a.measure(50),i=k(.1,.99),o=!1;function d(){return!o&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:d,constrain:function(a){if(!d())return;let o=e.reachedMin(t.get())?"min":"max",c=m(e[o]-t.get()),u=n.get()-t.get(),x=i.constrain(c/l);n.subtract(u*x),!a&&m(u)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){o=!e}}}(ey,eC,eL,eE,es),scrollLooper:function(e,t,n,r){let{reachedMin:a,reachedMax:s}=k(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?s(n.get()):-1===t&&a(n.get())))return;let l=-1*t*e;
2r.forEach(e=>e.add(l))}}}(em,ey,eC,[eN,eC,e_,eL]),scrollProgress:eA,scrollSnapList:eb.map(eA.get),scrollSnaps:eb,scrollTarget:eS,scrollTo:eB,slideLooper:function(e,t,n,r,a,s,l,i,o){let d=g(a),c=g(a).reverse(),u=h(p(c,l[0]),n,!1).concat(h(p(d,t-l[0]-1),-n,!0));function x(e,t){return e.reduce((e,t)=>e-a[t],t)}function p(e,t){return e.reduce((e,n)=>x(e,t)>0?e.concat([n]):e,[])}function h(a,l,d){let c=s.map((e,n)=>({start:e-r[n]+.5+l,end:e+t-.5+l}));return a.map(t=>{let r=d?0:-n,a=d?n:0,s=c[t][d?"end":"start"];return{index:t,loopPoint:s,slideLocation:N(-1),translate:_(e,o[t]),target:()=>i.get()>s?r:a}})}return{canLoop:function(){return u.every(({index:e})=>.1>=x(d.filter(t=>t!==e),t))},clear:function(){u.forEach(e=>e.translate.clear())},loop:function(){u.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,a=t();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:u}}(er,ea,em,eo,ed,ep,eb,eC,n),slideFocus:eI,slidesHandler:(O=!1,{init:function(e){X&&(I=new MutationObserver(t=>{!O&&(p(X)||X(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),l.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){I&&I.disconnect(),O=!0}}),slidesInView:e$,slideIndexes:ej,slideRegistry:eH,slidesToScroll:ex,target:eL,translate:_(er,t)};return eO}(e,o,d,E,S,n,$);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(z),O([K,...R.map(({options:e})=>e)]).forEach(e=>P.add(e,"change",U)),z.active&&(l.translate.to(l.location.get()),l.animation.init(),l.slidesInView.init(),l.slideFocus.init(J),l.eventHandler.init(J),l.resizeHandler.init(J),l.slidesHandler.init(J),l.options.loop&&l.slideLooper.loop(),o.offsetParent&&d.length&&l.dragHandler.init(J),i=A.init(J,R)))}function U(e,t){let n=G();W(),Z(H({startIndex:n},e),t),$.emit("reInit")}function W(){l.dragHandler.destroy(),l.eventStore.clear(),l.translate.clear(),l.slideLooper.clear(),l.resizeHandler.destroy(),l.slidesHandler.destroy(),l.slidesInView.destroy(),l.animation.destroy(),A.destroy(),P.clear()}function q(e,t,n){z.active&&!V&&(l.scrollBody.useBaseFriction().useDuration(!0===t?0:z.duration),l.scrollTo.index(e,n||0))}function G(){return l.index.get()}let J={canScrollNext:function(){return l.index.add(1).get()!==G()},canScrollPrev:function(){return l.index.add(-1).get()!==G()},containerNode:function(){return o},internalEngine:function(){return l},destroy:function(){V||(V=!0,P.clear(),W(),$.emit("destroy"),$.clear())},off:T,on:F,emit:D,plugins:function(){return i},previousScrollSnap:function(){return l.indexPrevious.get()},reInit:U,rootNode:function(){return e},scrollNext:function(e){q(l.index.add(1).get(),e,-1)},scrollPrev:function(e){q(l.index.add(-1).get(),e,1)},scrollProgress:function(){return l.scrollProgress.get(l.offsetLocation.get())},scrollSnapList:function(){return l.scrollSnapList},scrollTo:q,selectedScrollSnap:G,slideNodes:function(){return d},slidesInView:function(){return l.slidesInView.get()},slidesNotInView:function(){return l.slidesInView.get(!1)}};return Z(t,n),setTimeout(()=>$.emit("init"),0),J}L.globalOptions=void 0;try{var E="u">typeof window?window:e.g;E._sentryModuleMetadata=E._sentryModuleMetadata||{},E._sentryModuleMetadata[(new E.Error).stack]=Object.assign({},E._sentryModuleMetadata[(new E.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function S(e={}
2,t=[]){let r=(0,n.useRef)(e),a=(0,n.useRef)(t),[s,l]=(0,n.useState)(),[i,c]=(0,n.useState)(),u=(0,n.useCallback)(()=>{s&&s.reInit(r.current,a.current)},[s]);return(0,n.useEffect)(()=>{o(r.current,e)||(r.current=e,u())},[e,u]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=d(e),r=d(t);return n.every((e,t)=>o(e,r[t]))}(a.current,t)&&(a.current=t,u())},[t,u]),(0,n.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&i){L.globalOptions=S.globalOptions;let e=L(i,r.current,a.current);return l(e),()=>e.destroy()}l(void 0)},[i,l]),[c,s]}S.globalOptions=void 0;try{var B=window;B._sentryModuleMetadata=B._sentryModuleMetadata||{},B._sentryModuleMetadata[(new B.Error).stack]=Object.assign({},B._sentryModuleMetadata[(new B.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function A(e){let[t,r]=S({align:"start",containScroll:"trimSnaps",slidesToScroll:1,...e}),[a,s]=(0,n.useState)(0),[l,i]=(0,n.useState)(0),[o,d]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),x=(0,n.useCallback)(()=>{r&&(s(r.selectedScrollSnap()),i(r.scrollSnapList().length),d(r.canScrollPrev()),u(r.canScrollNext()))},[r]);(0,n.useEffect)(()=>{if(r)return r.on("select",x),r.on("reInit",x),x(),()=>{r.off("select",x),r.off("reInit",x)}},[r,x]);let p=(0,n.useCallback)(()=>r?.scrollPrev(),[r]);return{emblaRef:t,selectedSnap:a,snapCount:l,canScrollPrev:o,canScrollNext:c,scrollPrev:p,scrollNext:(0,n.useCallback)(()=>r?.scrollNext(),[r]),scrollTo:(0,n.useCallback)(e=>r?.scrollTo(e),[r])}}e.s(["useCarousel",()=>A],448544)},277003,e=>{"use strict";var t=e.i(783828);e.i(876385);var n=e.i(954474);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let a=(0,n.tz)("Australia/Melbourne");function s(e,n="d MMMM yyyy",r=""){if(!e)return r;let l=e instanceof Date?e:new Date(e);return Number.isNaN(l.getTime())?r:(0,t.format)(l,n,{in:a})}e.s(["formatDate",()=>s])},440585,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function n(e){if(!e)return;let[t,n]=e,r=(100*t).toFixed(2),a=(100*n).toFixed(2),s=((t-.5)*100).toFixed(2),l=((n-.5)*100).toFixed(2),i=`min(0%, max(calc(${r}% - ${s}cqw), 100%))`,o=`min(0%, max(calc(${a}% - ${l}cqh), 100%))`;return`${i} ${o}`}e.s(["focalPointToObjectPosition",()=>n])},408582,e=>{"use strict";var t=e.i(848277);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function r({className:e,size:n}){return(0,t.jsxs)("svg",{className:e,width:n,height:n,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"30",cy:"30",r:"29",stroke:"currentColor",strokeWidth:"2"}),(0,t.jsx)("rect",{x:"28",y:"16",width:"4",height:"4",rx:"2",fill:"currentColor"}),(0,t.jsx)("rect",{x:"28",y:"24",width:"4",height:"20",fill:"currentColor"})]})}e.s(["InfoIcon",()=>r])},664589,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let n=["powercor.com.au","citipower.com.au","cppcrax.arcadiandigital.com.au","cms.citipower.local","citipower.local","localhost"];function r(e){return e.replace(/^www\./,"").toLowerCase()}function a(e){return e.replace(/<a\b([^>]*)>/gi,(e,t)=>{let a=t.match(/href\s*=\s*["']([^"']*)["']/i)?.[1]??"",s=/target\s*=\s*["']_blank["']/i.test(t),l=function(e){let t,a=e.trim(),s=a;if(a.startsWith("//")?s=`https:${a}`:/^www\./i.test(a)&&(s=`https://${a}`),!/^https?:\/\//i.test(s))return!1;try{t=r(new URL(s).host)}catch{return!1}let l=new Set(n),i=function(){try{return r(new URL("https://www.powercor.com.au").host)}catch{return null}}();for(let e of(i&&l.add(i),l))if(t===e||t.endsWith("."+e))return!1;return!0}(a),i=t;return s&&!/\srel\s*=/i.test(t)&&(i+=' rel="noopener noreferrer"'),l&&!/\sdata-external\b/i.test(t)&&(i+=' data-external="true"'),`<a${i}>`}).replace(/(<a\b[^>]*\bdata-external="true"[^>]*>)([\s\S]*?)(<\/a>)/gi,(e,t,n,r)=>`${t}${n}<span class="sr-only"> (opens external site in a new window)</span>${r}`)}e.s(["enhanceWysiwygLinks",()=>a])},525873,e=>{"use strict";var t=e.i(848277),n=e.i(330668);e.i(373754);var r=e.i(654212),a=e.i(572987),s=e.i(664589);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i({data:e,anchorColumn:r=!1}){let{accordionsSubtitle:a,accordionsHeading:s,accordionsBody:l,accordionItems:i}
2=e,[d,c]=(0,n.useState)(null),u=(0,n.useCallback)(e=>{c(t=>t===e?null:e)},[]),x=(i??[]).filter(e=>null!=e);return 0===x.length?null:(0,t.jsx)("section",{className:"@container overflow-hidden mb-10 md:mb-[50px] xl:mb-[70px]",children:(0,t.jsxs)("div",{className:r?"mx-auto max-w-[900px] overflow-hidden px-5 @md:px-10 @xl:px-0":"mx-auto max-w-wysiwyg overflow-hidden px-5 md:px-10",children:[(a||s||l)&&(0,t.jsxs)("div",{className:"mb-10 @md:mb-[50px] flex flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[a&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 text-midnight font-[500] text-body-sm tracking-[3.5px] pt-1 px-2 py-1",children:a}),s&&(0,t.jsx)("h2",{className:`font-heading text-midnight leading-none ${r?"text-h3":"text-h3 @xl:text-h2"}`,children:s})]}),l&&(0,t.jsx)("p",{className:"text-text-secondary font-body text-body leading-[1.4]",children:l})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4",children:x.map((e,n)=>(0,t.jsx)(o,{item:e,isOpen:d===n,onToggle:()=>u(n)},e.id??n))})]})})}function o({item:e,isOpen:n,onToggle:l}){let i=e.accordionItemContent?.html?(0,s.enhanceWysiwygLinks)(e.accordionItemContent.html):e.accordionItemContent?.html,{url:o,target:d,label:c,hasCta:u}=(0,a.resolveCta)(e.accordionItemCtaText,e.accordionItemCtaLink);return(0,t.jsxs)("div",{className:`
3        border-l-[7px] border-solid transition-colors duration-200
4        ${n?"bg-grey-background border-midnight shadow-[0px_5px_15px_0px_rgba(74,58,255,0.06)]":"bg-grey-offWhite border-blue-20 shadow-[0px_1px_4px_0px_rgba(25,33,61,0.06)] hover:bg-grey-background"}
5      `,children:[(0,t.jsx)("h3",{className:"m-0",children:(0,t.jsxs)("button",{type:"button",onClick:l,"aria-expanded":n,className:"flex w-full items-center gap-[10px] py-8 pl-5 pr-[30px] @md:pl-8 @md:pr-[60px] text-left cursor-pointer focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-blue",children:[(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`shrink-0 transition-transform duration-300 ease-in-out ${n?"rotate-180 text-midnight":"rotate-0 text-form-chevron"}`,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"currentColor"})}),(0,t.jsx)("span",{className:"flex-1 font-heading text-h5 @md:text-h4 text-text-primary leading-[1.2] max-w-[650px]",children:e.accordionItemHeading})]})}),(0,t.jsx)("div",{inert:!n,className:`
6          grid transition-[grid-template-rows] duration-300 ease-in-out
7          ${n?"grid-rows-[1fr]":"grid-rows-[0fr]"}
8        `,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsxs)("div",{className:"pl-[60px] pr-[30px] pb-8 @md:pl-[72px] @md:pr-[60px] flex flex-col gap-[30px]",children:[i&&(0,t.jsx)("div",{className:"accordion-body wysiwyg-prose",dangerouslySetInnerHTML:{__html:i}}),u&&(0,t.jsx)("div",{children:(0,t.jsx)(r.Button,{href:o,target:d,variant:"dark",size:"compact",children:c})})]})})})]})}e.s(["Accordions",()=>i])},430855,36643,e=>{"use strict";var t=e.i(848277),n=e.i(442588);e.i(373754);var r=e.i(654212),a=e.i(196205);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function l({line1:e,line2:n,as:r="h2",className:s}){return e||n?(0,t.jsxs)(r,{className:(0,a.cn)("font-heading leading-none",s),children:[e&&(0,t.jsx)("span",{className:"text-white block",children:e}),n&&(0,t.jsx)("span",{className:"inline-block bg-blue p-[10px] text-white mt-1",children:n})]}):null}try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var o=e.i(572987),d=e.i(440585);try{var c=window;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function u({text:e,html:n,className:r}){return n?(0,t.jsx)("div",{className:`${r.replace("whitespace-pre-line","").trim()} [&_a]:underline [&_ul]:mt-2 [&_ul]:list-disc [&_ol]:mt-2 [&_ol]:list-decimal [&_li]:ml-5 [&_p+p]:mt-3`,dangerouslySetInnerHTML:{__html:n}}):e?(0,t.jsx)("p",{className:r,children:e}):null}function x({data:e,subHeroBodyHtml:a}){let{subHeroHeading:s,subHeroHeadingLine2:i,subHeroBody:c,subHeroImage:x,subHeroCtaText:p,subHeroCtaLink:h,sectionBottomMargin:m}=e,f=x?.[0]??null,g=f?.url!=null,{url:b,target:y,label:w,hasCta:v}=(0,o.resolveCta)(p,h);return(0,t.jsxs)("section",{className:m?"mb-[50px] md:mb-[70px]":void 0,children:[(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsxs)("div",{className:"bg-midnight px-5 py-7.5",children:[(s||i)&&(0,t.jsx)(l,{line1:s,line2:i,as:"h2",className:"text-h3"}),(0,t.jsx)(u,{text:c,html:a,className:"text-blue-20 font-body text-body mt-5 whitespace-pre-line"}),v&&(0,t.jsx)("div",{className:c||a?"mt-7.5":"mt-5",children:(0,t.jsx)(r.Button,{href:b,target:y,variant:"light",children:w})})]})}),(0,t.jsxs)("div",{className:"hidden md:grid min-h-subhero-desktop md:grid-cols-subhero-desktop",children:[(0,t.jsx)("div",{className:"bg-midnight col-start-1 col-end-3 row-start-1 row-end-2"}),(0,t.jsxs)("div",{className:"col-start-2 col-end-3 row-start-1 row-end-2 z-10 flex flex-col justify-center px-[50px] py-15",children:[(s||i)&&(0,t.jsx)(l,{line1:s,line2:i,as:"h1",className:"text-h1"}),(0,t.jsx)(u,{text:c,html:a,className:"text-blue-20 font-body text-body-lg mt-5 max-w-[603px] whitespace-pre-line"}),v&&(0,t.jsx)("div",{className:c||a?"mt-7.5":"mt-5",children:(0,t.jsx)(r.Button,{href:b,target:y,variant:"light",children:w})})]}),g&&f&&(0,t.jsx)("div",{className:"col-start-3 col-end-5 row-start-1 row-end-2 relative overflow-hidden [container-type:size] ",children:(0,t.jsx)(n.default,{src:f.url,alt:f.alt??"",fill:!0,className:"object-cover",sizes:"45vw",style:{objectPosition:(0,d.focalPointToObjectPosition)(f.focalPoint)}})}),!g&&(0,t.jsx)("div",{className:"bg-midnight col-start-3 col-end-5 row-start-1 row-end-2"})]})]})}e.s(["SubHero",()=>x],36643),e.i(35229);var p=e.i(687457);try{var h=window;h._sentryModuleMetadata=h._sentryModuleMetadata||{},h._sentryModuleMetadata[(new h.Error).stack]=Object.assign({},h._sentryModuleMetadata[(new h.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}(0,p.graphql)(`
9  fragment SubHeroFragment on subHero_Entry {
10    id
11    anchorId
12    subHeroHeading
13    subHeroHeadingLine2
14    subHeroBody
15    subHeroImage {
16      ...CraftImageFields
17    }
18    subHeroCtaText
19    subHeroCtaLink {
20      url
21      label
22      target
23    }
24    sectionBottomMargin
25  }
26`);try{var m=window;m._sentryModuleMetadata=m._sentryModuleMetadata||{},m._sentryModuleMetadata[(new m.Error).stack]=Object.assign({},m._sentryModuleMetadata[(new m.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}e.s([],430855)},375505,255469,e=>{"use strict";var t=e.i(848277),n=e.i(196205);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a({onClick:e,remaining:r,type:a}){return r<=0?null:(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("button",{type:"button",onClick:e,"aria-label":`Load more ${a} (${r} remaining)`,className:(0,n.cn)("inline-flex items-center font-body font-[500] text-nav-cta tracking-[0.02em] transition-colors","h-cta-height pl-4 pr-1 py-1","bg-midnight text-white hover:bg-blue","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue"),children:[(0,t.jsxs)("span",{children:["Load more ",a]}),(0,t.jsx)("span",{className:"flex h-full w-cta-arrow items-center justify-center overflow-hidden",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}e.s(["LoadMoreButton",()=>a],375505);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function l({message:e,action:n}){let r=e?.trim()||"No items match the selected filter.";return(0,t.jsxs)("div",{className:"flex min-h-empty-state flex-col items-center justify-center gap-4 overflow-hidden rounded border border-dashed border-grey-dark bg-white px-5 py-10 text-center",children:[(0,t.jsx)("p",{className:"font-body text-body text-text-secondary",children:r}),n?(0,t.jsx)("div",{children:n}):null]})}e.s(["EmptyState",()=>l],255469)},847350,199944,465219,e=>{"use strict";var t=e.i(330668);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function r(e,{initialPageSize:n=9,increment:a=9}={}){let s=Number.isFinite(n)&&n>0?n:9,l=Number.isFinite(a)&&a>0?a:9,[i,o]=(0,t.useState)(s),d=(0,t.useMemo)(()=>e.slice(0,i),[e,i]),c=e.length-d.length;return{visible:d,pageSize:i,remaining:c,loadMore:(0,t.useCallback)(()=>o(e=>e+l),[l]),reset:(0,t.useCallback)(()=>o(s),[s])}}e.s(["useArticlePagination",()=>r],847350);var a=e.i(848277),s=e.i(196205);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i({options:e,value:n,onChange:r,placeholder:l,ariaLabel:i,ariaLabelledBy:o,id:d,className:c,triggerClassName:u,size:x="sort",rounded:p="sm"}){let h=(0,t.useId)(),m=d??`styled-select-${h}`,f=`${m}-listbox`,[g,b]=(0,t.useState)(!1),[y,w]=(0,t.useState)(-1),v=(0,t.useRef)(null),j=e.find(e=>e.value===n),M=(0,t.useCallback)(()=>{b(!1),w(-1)},[]);return(0,t.useEffect)(()=>
26{if(g)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){v.current&&!v.current.contains(e.target)&&M()}},[g,M]),(0,a.jsxs)("div",{ref:v,className:(0,s.cn)("relative w-full min-w-0",c),children:[(0,a.jsxs)("button",{type:"button",id:m,role:"combobox","aria-expanded":g,"aria-haspopup":"listbox","aria-controls":f,"aria-label":i,"aria-labelledby":o,"aria-activedescendant":g&&y>=0?`${f}-option-${y}`:void 0,onClick:()=>b(e=>!e),onKeyDown:function(t){switch(t.key){case"Enter":case" ":if(t.preventDefault(),g&&y>=0)r(e[y].value),M();else{b(!0);let t=e.findIndex(e=>e.value===n);w(t>=0?t:0)}break;case"ArrowDown":t.preventDefault(),g?w(t=>Math.min(t+1,e.length-1)):(b(!0),w(0));break;case"ArrowUp":t.preventDefault(),g&&w(e=>Math.max(e-1,0));break;case"Escape":t.preventDefault(),M();break;case"Tab":M()}},className:(0,s.cn)("flex w-full min-w-0 items-center justify-between border border-midnight-20 bg-white pl-5 pr-3 text-left","cta"===x?"h-cta-height":"h-sort-height","md"===p?"rounded":"rounded-sm","font-body text-body font-medium tracking-copy text-midnight","transition-[border-color,box-shadow] duration-150 ease-in-out","focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",g&&"border-blue shadow-dropdown",u),children:[(0,a.jsx)("span",{className:(0,s.cn)("min-w-0 flex-1 truncate",!j&&"text-midnight"),children:j?.label??l??""}),(0,a.jsx)("span",{className:"pointer-events-none ml-2 flex h-6 w-6 shrink-0 items-center justify-center text-midnight-40",children:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:(0,s.cn)("transition-transform duration-150",g&&"rotate-180"),children:(0,a.jsx)("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),g&&(0,a.jsx)("ul",{id:f,role:"listbox","aria-label":i,className:"absolute left-0 top-[calc(100%+4px)] z-30 flex max-h-[280px] w-full flex-col gap-[15px] overflow-y-auto rounded-sm border border-midnight-20 bg-white p-5 shadow-dropdown",children:e.map((e,t)=>(0,a.jsx)("li",{id:`${f}-option-${t}`,role:"option","aria-selected":e.value===n,onMouseEnter:()=>w(t),onClick:()=>{r(e.value),M()},className:(0,s.cn)("cursor-pointer font-body text-body font-medium tracking-copy text-midnight transition-colors duration-150 hover:text-blue",y===t&&"text-blue",e.value===n&&"text-blue"),children:e.label},e.value))})]})}e.s(["StyledSelect",()=>i],199944);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}e.s([],465219)},677317,e=>{"use strict";var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a(e){if(!isFinite(e)||e<0)return"00:00";let t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function s(){return(0,t.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M13.3333 8.33337L31.6667 20L13.3333 31.6667V8.33337Z",fill:"currentColor"})})}function l(){return(0,t.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.6667 31.6667H18.3333V8.33337H11.6667V31.6667ZM21.6667 8.33337V31.6667H28.3333V8.33337H21.6667Z",fill:"currentColor"})})}function i(){return(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M7.5 22.5V7.5H10V22.5H7.5ZM22.5 22.5L12.5 15L22.5 7.5V22.5Z",fill:"currentColor"})})}function o(){return(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none","aria-hidden":"true",className:"rotate-180",children:(0,t.jsx)("path",{d:"M7.5 22.5V7.5
26H10V22.5H7.5ZM22.5 22.5L12.5 15L22.5 7.5V22.5Z",fill:"currentColor"})})}function d(){return(0,t.jsx)("svg",{width:"20",height:"25",viewBox:"0 0 16 20",fill:"none","aria-hidden":"true",className:"max-h-[20px]",children:(0,t.jsx)("path",{d:"M0 20V18H16V20H0ZM8 16L1 7H5V0H11V7H15L8 16Z",fill:"currentColor"})})}let c=[.22,.28,.31,.35,.4,.38,.44,.48,.42,.5,.53,.49,.56,.6,.55,.62,.66,.58,.64,.7,.68,.73,.76,.71,.78,.82,.75,.8,.85,.88,.9,.87,.92,.95,.88,.93,1,.91,.86,.83,.8,.77,.82,.75,.7,.73,.66,.62,.68,.58,.55,.6,.5,.48,.44,.4,.36,.32,.28,.22];function u({bars:e,progress:n,onClick:r,containerRef:a}){let s=100/e.length,l=.25*s;return(0,t.jsx)("div",{ref:a,className:"flex-1 h-10 cursor-pointer relative",onClick:r,role:"slider","aria-label":"Audio progress","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(n),tabIndex:0,children:e.map((r,a)=>{let i=(a+.5)/e.length*100,o=Math.max(8,100*r);return(0,t.jsx)("div",{className:"pointer-events-none",style:{position:"absolute",left:`${a*s}%`,width:`${s-l}%`,height:`${o}%`,top:`${(100-o)/2}%`,backgroundColor:i<=n?"#002E6B":"#CCD5E1",borderRadius:"1px"}},a)})})}function x({data:e,anchorColumn:r=!1}){let{audioPlayerSubtitle:x,audioPlayerHeading:p,audioPlayerBody:h,audioPlayerTitle:m,audioPlayerTranscript:f,audioPlayerFile:g,audioPlayerDownloadable:b,sectionBottomMargin:y}=e,w=g?.[0]??null,v=w?.url??null,j=x||p||h,M=(0,n.useRef)(null),k=(0,n.useRef)(null),[N,_]=(0,n.use
26State)(!1),[C,L]=(0,n.useState)(0),[E,S]=(0,n.useState)(0),[B,A]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=M.current;if(!e)return;let t=()=>L(e.currentTime),n=()=>{isFinite(e.duration)&&S(e.duration)},r=()=>_(!1);return isFinite(e.duration)&&e.duration>0&&S(e.duration),e.addEventListener("timeupdate",t),e.addEventListener("durationchange",n),e.addEventListener("loadedmetadata",n),e.addEventListener("ended",r),()=>{e.removeEventListener("timeupdate",t),e.removeEventListener("durationchange",n),e.removeEventListener("loadedmetadata",n),e.removeEventListener("ended",r)}},[]);let P=(0,n.useCallback)(()=>{let e=M.current;e&&(N?e.pause():e.play(),_(!N))},[N]),$=(0,n.useCallback)(()=>{let e=M.current;e&&(e.currentTime=Math.max(0,e.currentTime-10))},[]),H=(0,n.useCallback)(()=>{let e=M.current;e&&(e.currentTime=Math.min(e.duration,e.currentTime+10))},[]),I=(0,n.useCallback)(e=>{let t=M.current,n=k.current;if(!t||!n||!E)return;let r=n.getBoundingClientRect();t.currentTime=Math.max(0,Math.min(1,(e.clientX-r.left)/r.width))*E},[E]),O=function(e){let[t,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!e)return;let t=!1,n=c.length;return async function(){try{let a=await fetch(e),s=await a.arrayBuffer(),l=new(window.AudioContext||window.webkitAudioContext),i=(await l.decodeAudioData(s)).getChannelData(0),o=Math.floor(i.length/n),d=[];for(let e=0;e<n;e++){let t=e*o,n=Math.min(t+o,i.length),r=0;for(let e=t;e<n;e++){let t=Math.abs(i[e]);t>r&&(r=t)}d.push(r)}let c=Math.max(...d,.001),u=d.map(e=>Math.round(100*Math.max(.08,e/c))/100);t||(r(u),l.close())}catch{t||r(null)}}(),()=>{t=!0}},[e]),t??c}(v),F=E>0?C/E*100:0;return(0,t.jsx)("section",{className:`@container bg-grey-background overflow-hidden${y?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsx)("div",{className:r?"px-5 py-10 @md:px-10 @md:py-[70px]":"mx-auto max-w-site px-5 py-10 @min-[768px]:px-10 @min-[768px]:py-[70px] @min-[1280px]:px-12.5",children:(0,t.jsxs)("div",{className:r?"flex flex-col gap-[30px] @md:gap-[50px]":"flex flex-col gap-[30px] @min-[768px]:gap-[50px] @min-[1280px]:flex-row @min-[1280px]:gap-[120px]",children:[j&&(0,t.jsxs)("div",{className:r?"flex flex-col gap-5 shrink-0":"flex flex-col gap-5 shrink-0 @min-[1280px]:w-[550
26px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[x&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 px-2 py-1 font-body font-[500] text-body-sm text-midnight tracking-[3.5px] pt-1",children:x}),p&&(0,t.jsx)("h2",{className:r?"font-heading text-h3 text-midnight":"font-heading text-h3 @min-[1280px]:text-h2 text-midnight",children:p})]}),h&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary whitespace-pre-line",children:h})]}),(0,t.jsxs)("div",{className:r?"bg-white p-5 @md:p-10 w-full flex flex-col gap-[30px]":"bg-white p-5 @min-[768px]:p-10 flex-1 flex flex-col gap-[30px]",children:[v&&(0,t.jsx)("audio",{ref:M,src:v,preload:"metadata"}),(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[m&&(0,t.jsx)("h3",{className:"font-heading text-h4 text-midnight",children:m}),f&&(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>A(!B),className:"font-body font-medium text-body text-blue self-start cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-expanded":B,children:B?"Hide transcript":"Show transcript"}),B&&(0,t.jsx)("div",{className:"bg-grey-light border border-midnight-20 rounded-sm overflow-hidden p-5 max-h-[200px] overflow-y-auto",children:(0,t.jsx)("p",{className:"font-body text-body text-text-secondary whitespace-pre-line",children:f})})]})]}),v&&(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"font-body font-medium text-body-sm text-text-secondary opacity-80 shrink-0 tabular-nums w-[40px] mt-[4px]",children:a(C)}),(0,t.jsx)(u,{bars:O,progress:F,onClick:I,containerRef:k}),(0,t.jsx)("span",{className:"font-body font-medium text-body-sm text-text-secondary opacity-80 shrink-0 tabular-nums w-[40px] mt-[4px]",children:a(E)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"w-[30px]"}),(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)("button",{type:"button",onClick:$,className:"text-midnight hover:text-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":"Skip back 10 seconds",children:(0,t.jsx)(i,{})}),(0,t.jsx)("button",{type:"button",onClick:P,className:"size-[60px] rounded-full bg-midnight text-white flex items-center justify-center hover:bg-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":N?"Pause":"Play",children:N?(0,t.jsx)(l,{}):(0,t.jsx)(s,{})}),(0,t.jsx)("button",{type:"button",onClick:H,className:"text-midnight hover:text-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":"Skip forward 10 seconds",children:(0,t.jsx)(o,{})})]}),(0,t.jsx)("div",{className:"w-[30px]",children:b&&v&&(0,t.jsx)("a",{href:v,download:v.split("?")[0].split("/").pop()??"download",target:"_blank",rel:"noopener noreferrer",className:"text-midnight hover:text-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":"Download audio",children:(0,t.jsx)(d,{})})})]})]})]})]})})})}e.s(["AudioPlayer",()=>x])},723026,e=>{"use strict";var t=e.i(848277);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function r({className:e,label:n}){return(0,t.jsxs)("svg",{className:e,width:"55",height:"70",viewBox:"0 0 55 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n?{role:"img","aria-label":n}:{"aria-hidden":!0},children:[(0,t.jsxs)("g",{clipPath:"url(#docpdf-clip)",children:[(0,t.jsx)("path",{d:"M47.7106 62.2889V68.374H1.50391V7.58984H7.90664",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M34.7567 1.50439L53.4968 20.2445V62.2886H7.90869V1.50439H34.7567Z",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M18.1875 53.1274H43.2133",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M53.493 20.2445H34.7529V1.50439L53.493 20.2445Z",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M39.2622 37.8479V27.7339H45.0966",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M44.1291 33.2007H39.7324",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M16.2769 37.8479V27.7339",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M16.2769 27.7339H19.403C20.9076 27.7339 22.1279 28.9542 22.1279 30.4588C22.1279 31.9634 20.9076 33.1837 19.403 33.1837H16.2769V27.7339Z",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M27.7764 27.7339V37.8479H30.3341C32.1396 37.8479 33.6107 36.3767 33.6107 34.5713V31.0272C33.6107 29.2217 32.1396 27.7506 30.3341 27.7506H27.7764V27.7339Z",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"docpdf-clip",children:(0,t.jsx)("rect",{width:"55",height:"69.8784",fill:"white"})})})]})}try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function s({className:e,label:n}){return(0,t.jsxs)("svg",{className:e,width:"60",height:"52",viewBox:"0 0 60 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n?{role:"img","aria-label":n}:{"aria-hidden":!0},children:[(0,t.jsxs)("g",{clipPath:"url(#docimg-clip)",children:[(0,t.jsx)("path",{d:"M52.5781 1.29199H7.4202C4.03515 1.29199 1.29102 4.03612 1.29102 7.42118V44.3829C1.29102 47.768 4.03515 50.5121 7.4202 50.5121H52.5781C55.9632 50.5121 58.7073 47.768 58.7073 44.3829V7.42118C58.7073 4.03612 55.9632 1.29199 52.5781 1.29199Z",stroke:"#002E6B",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M57.0013 47.7988L44.4128 31.6505L34.9535 41.1098L21.4032 23.6553L2.54199 47.3251",stroke:"#002E6B",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M39.0185 21.4739C42.3084 21.4739 44.9754 18.8069 44.9754 15.517C44.9754 12.2271 42.3084 9.56006 39.0185 9.56006C35.7285 9.56006 33.0615 12.2271 33.0615 15.517C33.0615 18.8069 35.7285 21.4739 39.0185 21.4739Z",stroke:"#0079C1",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"docimg-clip",children:(0,t.jsx)("rect",{width:"60",height:"51.8038",fill:"white"})})})]})}try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i({className:e,label:n}){return(0,t.jsxs)("svg",{className:e,width:"55",height:"70",viewBox:"0 0 55 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n?{role:"img","aria-label":n}:{"aria-hidden":!0},children:[(0,t.jsxs)("g",{clipPath:"url(#doctext-clip)",children:[(0,t.jsx)("path",{d:"M47.7096 62.2889V68.374H1.50293V7.58984H7.90566",stroke:"#0079C1",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M34.7567 1.50439L53.4968 20.2445V62.2886H7.90869V1.50439H34.7567Z",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M18.0239 28.7705H41.6622",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M18.0239 38.7173H37.2489",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M18.0239 48.6807H31.8826",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M18.0239 18.8071H25.8978",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M53.4945 20.2445H34.7544V1.50439L53.4945 20.2445Z",stroke:"#002E6B",strokeWidth:"3.00912",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"doctext-clip",children:(0,t.jsx)("rect",{width:"55",height:"69.8784",fill:"white"})})})]})}e.i(473034);var o=e.i(951893),d=e.i(448544),c=e.i(24884);try{var u=window;u._sentryModuleMetadata=u._sentryModuleMetadata||{},u._sentryModuleMetadata[(new u.Error).stack]=Object.assign({},u._sentryModuleMetadata[(new u.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function x(e){return e.split("?")[0].split("/").pop()??"download"}function p({url:e,className:n}){if(!e)return(0,t.jsx)(i,{className:n,label:"Document"});let a=e.split("?")[0],l=a.split(".").pop()?.toLowerCase()??"";return"pdf"===l?(0,t.jsx)(r,{className:n,label:"PDF file"}):["jpg","jpeg","png","gif","webp","svg","bmp","tiff","tif"].includes(l)?(0,t.jsx)(s,{className:n,label:"Image file"}):(0,t.jsx)(i,{className:n,label:l?`${l.toUpperCase()} file`:"Document"})}function h(){return(0,t.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"shrink-0 text-midnight",children:(0,t.jsx)("path",{d:"M23.3333 30L21 27.5833L26.9167 21.6667H6.66667V18.3333H26.9167L21 12.4167L23.3333 10L33.3333 20L23.3333 30Z",fill:"currentColor"})})}function m({data:e,variant:n,anchorColumn:r=!1}){let{documentsSubtitle:a,documentsHeading:s,documentsBody:l,documentsDisplayMode:i,documentsMobileDisplay:o,sectionBottomMargin:d,documentsItems:c}=e,u="major-project"===n||r,x=function(e){let t=[],n=null;for(let r of e)if("documentSubheading_Entry"===r.__typename){let e=r.documentSubheadingText?.trim();if(!e)continue;n={heading:e,docs:[]},t.push(n)}else n||(n={heading:null,docs:[]},t.push(n)),n.docs.push(r);return t.filter(e=>e.docs.length>0)}(c?.filter(e=>null!=e)??[]),p="multiple"===i,h="carousel"===o,m=a||s||l,y=p?b:g;return(0,t.jsx)("section",{className:`@container bg-grey-background overflow-hidden${d?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsx)("div",{className:r?"w-full px-5 py-10 @md:py-[70px]":"mx-auto max-w-site px-5 py-10 @min-[768px]:px-10 @min-[768px]:py-[70px] @min-[1280px]:px-12.5",children:(0,t.jsxs)("div",{className:`flex flex-col gap-[30px] @min-[768px]:gap-[50px]${u?"":" @min-[1280px]:flex-row @min-[1280px]:gap-[120px]"}`,children:[m&&(0,t.jsxs)("div",{className:`flex flex-col gap-5 shrink-0${u?"":" @min-[1280px]:w-[550
26px]"}`,children:[(a||s)&&(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[a&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 px-2 py-1 font-body font-[500] text-body-sm text-midnight tracking-[3.5px] pt-1",children:a}),s&&(0,t.jsx)("h2",{className:"font-heading text-h3 @min-[1280px]:text-h2 text-midnight",children:s})]}),l&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary",children:l})]}),x.length>0?(0,t.jsx)("div",{className:"flex flex-col gap-[30px] @min-[768px]:gap-[50px] flex-1",children:x.map((e,n)=>(0,t.jsx)(f,{segment:e,CardComponent:y,isMultiple:p,anchorColumn:r,useCarouselOnMobile:!r&&h},e.docs[0].id??n))}):null]})})})}function f({segment:e,CardComponent:n,isMultiple:r,anchorColumn:a=!1,useCarouselOnMobile:s=!1}){let{emblaRef:l,selectedSnap:i,snapCount:c,scrollPrev:u,scrollNext:x,scrollTo:p,canScrollPrev:h,canScrollNext:m}=(0,d.useCarousel)(),f=e.heading?(0,t.jsx)("h4",{className:"font-heading text-h4 text-midnight",children:e.heading}):null;return a?(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[f,(0,t.jsx)("div",{className:`grid gap-3 grid-cols-1 ${r?"@md:grid-cols-3":"@md:grid-cols-2"}`,children:e.docs.map(e=>(0,t.jsx)(n,{item:e,anchorColumn:!0},e.id))})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[f,(0,t.jsx)("div",{className:"hidden @min-[768px]:grid @min-[768px]:grid-cols-2 gap-5 @min-[1280px]:gap-4",children:e.docs.map(e=>(0,t.jsx)(n,{item:e},e.id))}),s?(0,t.jsxs)("div",{className:"@min-[768px]:hidden",children:[(0,t.jsx)("div",{ref:l,className:"overflow-hidden -mx-5 px-5",children:(0,t.jsx)("div",{className:"flex gap-2.5",children:e.docs.map(e=>(0,t.jsx)("div",{className:"flex-[0_0_85%] min-w-0",children:(0,t.jsx)(n,{item:e})},e.id))})}),(0,t.jsxs)("div",{className:"flex items-center gap-6 mt-[30px]",children:[(0,t.jsx)(o.PaginationBar,{snapCount:c,selectedSnap:i,onSelect:p}),(0,t.jsxs)("div",{className:"flex items-center gap-4 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:u,disabled:!h,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Previous slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"rotate-180","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})}),(0,t.jsx)("button",{type:"button",onClick:x,disabled:!m,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Next slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})})]})]})]}):(0,t.jsx)("div",{className:"@min-[768px]:hidden grid grid-cols-1 gap-5",children:e.docs.map(e=>(0,t.jsx)(n,{item:e},e.id))})]})}function g({item:e,anchorColumn:n=!1}){let r=e.documentItemFile?.[0]?.url??null,a=e.documentItemLink?.url??null,s=null!=r,l=(0,t.jsxs)("div",{className:n?"bg-white border border-blue-20 overflow-hidden grid grid-cols-[minmax(0,55px)_1fr] @xl:grid-cols-[minmax(0,100px)_1fr] gap-5 @xl:gap-6 p-3 @xl:p-5 h-full":"bg-white border border-blue-20 overflow-hidden grid grid-cols-[minmax(0,55px)_1fr] gap-5 @min-[768px]:gap-6 p-3 @min-[768px]:p-5 h-full @min-[1280px]:h-[228px]",children:[(0,t.jsx)("div",{className:n?"flex items-center justify-center text-blue self-start max-w-[55px] @xl:max-w-[100px]":"flex items-center justify-center text-blue self-start max-w-[55px]",children:(0,t.jsx)(p,{url:r,className:"w-full h-auto"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[e.documentItemTitle&&(0,t.jsx)("h3",{className:"font-heading text-h5 font-bold text-midnight",children:e.documentItemTitle}),e.documentItemDescription&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary line-clamp-3",children:e.documentItemDescription}),(0,t.jsx)("span",{className:"text-blue mt-auto self-start",children:(0,t.jsx)(h,{})})]})]});return s&&r?(0,t.jsx)("a",{href:r,download:x(r),target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,c.trackFileDownload)(x(r)),style:{height:"100%"},className:"block w-full text-left group transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue cursor-pointer",children:l}):a?(0,t.jsx)("a",{href:a,target:e.documentItemLink?.target??"_blank",rel:"noopener noreferrer",className:"block group transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:l}):(0,t.jsx)("div",{children:l})}function b({item:e,anchorColumn:n=!1}){let r=e.documentItemFile?.[0]?.url??null,a=e.documentItemLink?.url??null,s=null!=r,l=(0,t.jsxs)("div",{className:n?"bg-white border border-blue-20 overflow-hidden grid grid-cols-[minmax(0px,44px)_1fr] gap-3 @xl:gap-5 p-3 @xl
26:py-4 @xl:pl-2.5 @xl:pr-5 items-center h-full":"bg-white border border-blue-20 overflow-hidden grid grid-cols-[minmax(0px,44px)_1fr] gap-3 @min-[768px]:gap-5 p-3 @min-[768px]:p-5 items-center h-full @min-[1280px]:h-[118px]",children:[(0,t.jsx)("div",{className:"flex items-center justify-center text-blue max-w-[44px]",children:(0,t.jsx)(p,{url:r,className:"w-full h-auto"})}),(0,t.jsx)("div",{className:"flex flex-col justify-center",children:e.documentItemTitle&&(0,t.jsx)("span",{className:"font-body font-bold text-body-lg text-midnight line-clamp-2",children:e.documentItemTitle})})]});return s&&r?(0,t.jsx)("a",{href:r,download:x(r),target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,c.trackFileDownload)(x(r)),className:"block w-full text-left group transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue cursor-pointer",children:l}):a?(0,t.jsx)("a",{href:a,target:e.documentItemLink?.target??"_blank",rel:"noopener noreferrer",className:"block group transition-opacity hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:l}):(0,t.jsx)("div",{children:l})}e.s(["Documents",()=>m],723026)},223425,e=>{"use strict";var t=e.i(415986);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let r=(0,t.create)(e=>({outages:[],selectedOrderId:null,searchFilter:null,mapBounds:null,lastUpdatedAt:null,status:"idle",crewStatusMap:[],pollerActive:!1,setOutages:(t,n)=>e({outages:t,lastUpdatedAt:n,status:"success"}),setError:()=>e({status:"stale-error"}),setLoading:()=>e(e=>({status:"success"===e.status?"success":"loading"})),setSelected:t=>e({selectedOrderId:t}),setSearchFilter:t=>e({searchFilter:t}),setMapBounds:t=>e({mapBounds:t}),setCrewStatusMap:t=>e({crewStatusMap:t}),setPollerActive:t=>e({pollerActive:t})}));e.s(["useOutageStore",0,r])},44575,317913,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(196205),a=e.i(275880);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let i=["formattedAddress","location","id","displayName","addressComponents"];function o({placeholder:e="Enter your suburb...",onPlaceSelect:s,onClear:l,onFocus:o,onChange:d,className:c,id:u,"aria-label":x,value:p,children:h}){let m=(0,n.useRef)(null),f=(0,n.useRef)(null),g=(0,n.useRef)(null),b=(0,n.useRef)(null),[y,w]=(0,n.useState)(!1),[v,j]=(0,n.useState)(p??""),[M,k]=(0,n.useState)([]),[N,_]=(0,n.use
26State)(!1),[C,L]=(0,n.useState)(-1),E=(0,n.useRef)(!1),S=u?`${u}-listbox`:void 0;(0,n.useEffect)(()=>{void 0!==p&&(E.current=!1,j(p))},[p]);let B=(0,n.useRef)(null),A=(0,n.useCallback)(async()=>{(0,a.hasMapsApiKey)()&&!y&&(B.current||(B.current=(async()=>{try{let e=await (0,a.loadMapsLibrary)("places");b.current=e,g.current=new e.AutocompleteSessionToken,w(!0)}catch(e){B.current=null,console.error("[PlacesAutocomplete] failed to load places library",e)}})()),await B.current)},[y]);(0,n.useEffect)(()=>{function e(e){m.current&&!m.current.contains(e.target)&&(_(!1),L(-1))}return N&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[N]);let P=(0,n.useRef)(0),$=(0,n.useCallback)(async e=>{let t=b.current,n=++P.current;if(!t||!e.trim()){k([]),_(!1);return}try{let{suggestions:r}=await t.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,sessionToken:g.current??void 0,includedRegionCodes:["au"],includedPrimaryTypes:["(regions)"]});if(n!==P.current)return;let a=[];for(let e of r){let t=e.placePrediction;t&&a.push({placeId:t.placeId,text:t.text?.toString()??"",prediction:t})}k(a),_(a.length>0),L(-1)}catch(e){if(n!==P.current)return;console.error("[PlacesAutocomplete] fetchAutocompleteSuggestions failed",e),k([]),_(!1)}},[]),H=(0,n.useCallback)(async e=>{E.current=!1,_(!1),k([]),j(e.text);try{let t=e.prediction.toPlace();await t.fetchFields({fields:i});let n=t.location,r=t.formattedAddress??e.text;j(r),s?.({address:r,placeId:t.id??e.placeId,description:t.displayName??r,lat:n?.lat(),lng:n?.lng(),addressComponents:t.addressComponents?.map(e=>({long_name:e.longText??"",short_name:e.shortText??"",types:e.types??[]}))})}catch{s?.({address:e.text,placeId:e.placeId,description:e.text})}finally{let e=b.current;e&&(g.current=new e.AutocompleteSessionToken)}},[s]),I=(0,n.useCallback)(e=>{let t=e.target.value;if(E.current=!0,j(t),d?.(t),""===t){l?.(),k([]),_(!1);return}A()},[l,d,A]),O=(0,n.useCallback)(()=>{A(),o?.()},[A,o]),F=function(e,t=250){let[r,a]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let n=setTimeout(()=>a(e),t);return()=>clearTimeout(n)},[e,t]),r}(v,250);(0,n.useEffect)(()=>{y&&E.current&&F.trim()&&$(F)},[F,y,$]);let T=(0,n.useCallback)(()=>{E.current=!1,j(""),k([]),_(!1),l?.(),f.current?.focus()},[l]);return(0,t.jsxs)("div",{ref:m,className:(0,r.cn)("relative flex items-center flex-1 min-w-0",c),children:[h,(0,t.jsx)("input",{ref:f,id:u,type:"text",placeholder:e,value:v,onChange:I,onFocus:O,onKeyDown:function(e){if(N&&0!==M.length)switch(e.key){case"ArrowDown":e.preventDefault(),L(e=>Math.min(e+1,M.length-1));break;case"ArrowUp":e.preventDefault(),L(e=>Math.max(e-1,0));break;case"Enter":e.preventDefault(),C>=0&&C<M.length&&H(M[C]);break;case"Escape":e.preventDefault(),_(!1),L(-1);break;case"Tab":_(!1),L(-1)}},"aria-label":x,role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":N?S:void 0,"aria-activedescendant":N&&C>=0&&S?`${S}-option-${C}`:void 0,autoComplete:"off",className:"flex-1 min-w-0 bg-transparent text-body font-body text-midnight placeholder:text-midnight-40 outline-none pr-2"}),v.length>0&&(0,t.jsx)("button",{type:"button","aria-label":"Clear search",onClick:T,className:"shrink-0 flex items-center justify-center w-6 h-6 mr-1 text-midnight hover:text-midnight focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),N&&M.length>0&&(0,t.jsx)("ul",{id:S,role:"listbox","aria-label":"Address suggestions",className:"absolute top-[calc(100%+4px)] left-0 w-full bg-white border border-blue-20 rounded-sm shadow-dropdown z-20 p-[10px] flex flex-col",children:M.map((e,n)=>(0,t.jsx)("li",{id:S?`${S}-option-${n}`:void 0,role:"option","aria-selected":C===n,className:(0,r.cn)("px-[10px] py-[8px] font-body text-body-sm text-midnight cursor-pointer rounded-sm","hover:bg-grey-background hover:text-blue transition-colors",C===n&&"bg-grey-background text-blue"),onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>{t.stopPropagation(),H(e)},onMouseEnter:()=>L(n),children:e.text},e.placeId))})]})}e.s(["PlacesAutocomplete",()=>o],317913);try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}e.s([],44575)},55864,e=>{"use strict";var t=e.i(848277);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function r({className:e,size:n}){return(0,t.jsx)("svg",{className:e,width:n,height:n,viewBox:"0 0 20 24.1562",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M10 21.6875C12.5417 19.3542 14.4271 17.2344 15.6563 15.3281C16.8854 13.4219 17.5 11.7292 17.5 10.25C17.5 7.97917 16.776 6.11979 15.3281 4.67187C13.8802 3.22396 12.1042 2.5 10 2.5C7.89583 2.5 6.11979 3.22396 4.67187 4.67187C3.22396 6.11979 2.5 7.97917 2.5 10.25C2.5 11.7292 3.11458 13.4219 4.34375 15.3281C5.57292 17.2344 7.45833 19.3542 10 21.6875ZM10 24.1563C9.70833 24.1563 9.41667 24.1042 9.125 24C8.83333 23.8958 8.57292 23.7396 8.34375 23.5313C6.98958 22.2813 5.79167 21.0625 4.75 19.875C3.70833 18.6875 2.83854 17.5365 2.14062 16.4219C1.44271 15.3073 0.911458 14.2344 0.546875 13.2031C0.182292 12.1719 0 11.1875 0 10.25C0 7.125 1.00521 4.63542 3.01563 2.78125C5.02604 0.927083 7.35417 0 10 0C12.6458 0 14.974 0.927083 16.9844 2.78125C18.9948 4.63542 20 7.125 20 10.25C20 11.1875 19.8177 12.1719 19.4531 13.2031C19.0885 14.2344 18.5573 15.3073 17.8594 16.4219C17.1615 17.5365 16.2917 18.6875 15.25 19.875C14.2083 21.0625 13.0104 22.2813 11.6562 23.5313C11.4271 23.7396 11.1667 23.8958 10.875 24C10.5833 24.1042 10.2917 24.1563 10 24.1563ZM10 12.5C10.687
265 12.5 11.276 12.2552 11.7656 11.7656C12.2552 11.276 12.5 10.6875 12.5 10C12.5 9.3125 12.2552 8.72396 11.7656 8.23438C11.276 7.74479 10.6875 7.5 10 7.5C9.3125 7.5 8.72396 7.74479 8.23438 8.23438C7.74479 8.72396 7.5 9.3125 7.5 10C7.5 10.6875 7.74479 11.276 8.23438 11.7656C8.72396 12.2552 9.3125 12.5 10 12.5Z",fill:"currentColor"})})}e.s(["LocationOutlineIcon",()=>r])},604670,e=>{"use strict";var t=e.i(848277);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function r({className:e,size:n}){return(0,t.jsxs)("svg",{className:e,width:n,height:n,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"30",cy:"30",r:"29",stroke:"currentColor",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M26 15L22 32H28L24 45L38 27H30L36 15H26Z",fill:"currentColor"})]})}e.s(["PowerIcon",()=>r])},50868,e=>{"use strict";var t,n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a(){return(a=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"currentColor","aria-hidden":"true"},e),t||(t=n.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})))}])},275880,e=>{"use strict";e.i(639057);try{var t="u">typeof window?window:e.g;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let n=()=>{},r=!1;async function a(e){if(r||n("No options were set before calling importLibrary. Make sure to configure the loader using setOptions()."),!window?.google?.maps?.importLibrary)throw Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(e)}try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let l="AIzaSyAVZ9wrhKwBu74BynP9AxhhH-W7oKnXrwQ".trim(),i=!1;function o(){return!!l}function d(e){if(!i){if(!l)throw Error("NEXT_PUBLIC_GOOGLE_MAPS_API_KEY is not set");!function(e){if(r)return n(`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`);(function(e){var t,n,r,a,s,l,i,o,d,c,u;let x=!!window.google?.maps?.importLibrary;x&&JSON.stringify(e);x||(a="google",s="importLibrary",l=document,d=(o=(i=window)[a]||(i[a]={})).maps||(o.maps={}),c=new Set,u=new URLSearchParams,d[s]?console.warn("The Google Maps JavaScript API only loads once. Ignoring:",e):d[s]=(i,...o)=>c.add(i)&&(t||(t=new Promise(async(s,i)=>{for(r in await (n=l.createElement("script")),u.set("libraries",[...c]+""),e)u.set(r.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[r]);u.set("callback",a+".maps.__ib__"),n.src="https://maps.googleapis.com/maps/api/js?"+u,d.__ib__=s,n.onerror=()=>t=i(Error("The Google Maps JavaScript API could not load.")),n.nonce=l.querySelector("script[nonce]")?.nonce||"",l.head.append(n)}))).then(()=>d[s](i,...o)))})(e),r=!0}({key:l,v:"weekly"}),i=!0}return a(e)}e.s(["hasMapsApiKey",()=>o,"loadMapsLibrary",()=>d],275880)},894746,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(696086),a=e.i(442588);e.i(373754);var s=e.i(654212),l=e.i(604670),i=e.i(55864);e.i(44575);var o=e.i(317913),d=e.i(572987),c=e.i(223425),u=e.i(50868);try{var x=window;x._sentryModuleMetadata=x._sentryModuleMetadata||{},x._sentryModuleMetadata[(new x.Error).stack]=Object.assign({},x._sentryModuleMetadata[(new x.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function p({className:e}){return(0,t.jsx)("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})}function h({data:e,anchorColumn:x=!1,outageMapUri:h=null}){let{outageBannerHeading:m,outageBannerSearchPlaceholder:f,outageBannerIcon:g,outageBannerCta1Text:b,outageBannerCta1Link:y,outageBannerCta2Text:w,outageBannerCta2Link:v}=e,j=g?.[0]??null,M=(0,d.resolveCta)(b,y),k=(0,d.resolveCta)(w,v),N=(0,c.useOutageStore)(e=>
26e.setSearchFilter),_=(0,r.useRouter)(),[C,L]=(0,n.useState)(null),[E,S]=(0,n.useState)(null),B=(0,n.useCallback)(e=>{S(null);let t=e.addressComponents?.find(e=>e.types.includes("locality"))?.long_name,n=e.addressComponents?.find(e=>e.types.includes("postal_code"))?.long_name;L({placeId:e.placeId,postcode:n,suburb:t}),N({placeId:e.placeId,label:e.address,suburb:t,postcode:n,lat:e.lat,lng:e.lng})},[N]),A=(0,n.useCallback)(()=>{L(null),N(null)},[N]),P=(0,n.useCallback)(()=>S(null),[]),$=(0,n.useCallback)(()=>{if(!h)return;if(!C?.placeId)return void S("Please select an address from the list of suggestions");S(null);let e=new URLSearchParams;C.postcode&&e.set("postcode",C.postcode),e.set("place_id",C.placeId),C.suburb&&e.set("suburb",C.suburb),_.push(`/${h}?${e.toString()}`)},[h,C,_]);return(0,t.jsx)("section",{className:"bg-blue-20",children:(0,t.jsx)("div",{className:x?"px-5 py-5":"mx-auto max-w-site px-5 md:px-10 xl:px-12.5 py-5 xl:py-0 xl:h-[90px] xl:flex xl:items-center",children:(0,t.jsxs)("div",{className:x?"flex flex-col gap-5 w-full":"flex flex-col xl:flex-row xl:items-center gap-5 xl:gap-[30px] w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 xl:gap-[10px] shrink-0",children:[j?(0,t.jsx)(a.default,{src:j.url,alt:j.alt||"",width:60,height:60,className:"hidden xl:block w-[60px] h-[60px] shrink-0"}):(0,t.jsx)(l.PowerIcon,{className:"hidden xl:block w-[60px] h-[60px] text-midnight shrink-0"}),m&&(0,t.jsx)("h2",{className:"font-heading text-h5 xl:text-h4 text-midnight",children:m})]}),(0,t.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex h-cta-height",children:[(0,t.jsxs)("div",{className:"flex items-center flex-1 bg-white border border-midnight-20 rounded-sm",children:[(0,t.jsx)("label",{htmlFor:"outage-search",className:"sr-only",children:"Search for outages by suburb or postcode"}),(0,t.jsx)(o.PlacesAutocomplete,{id:"outage-search",placeholder:f||"Enter your suburb...",onPlaceSelect:B,onClear:A,onFocus:P,onChange:P,"aria-label":"Search for outages by suburb or postcode",children:(0,t.jsx)("span",{className:"flex items-center justify-center w-[40px] xl:w-[50px] shrink-0",children:(0,t.jsx)(i.LocationOutlineIcon,{className:"w-5 h-5 xl:w-[24px] xl:h-[24px] text-blue"})})})]}),(0,t.jsx)("button",{type:"button","aria-label":"Search for outages",onClick:$,className:"w-cta-height h-cta-height bg-midnight flex items-center justify-center shrink-0 rounded-r-sm rounded-l-none ml-[-4px] hover:bg-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:(0,t.jsx)(p,{className:"text-white"})})]}),E&&(0,t.jsxs)("div",{className:"absolute top-[calc(100%+4px)] left-0 z-20 flex items-center gap-[4px] bg-white rounded-sm shadow-dropdown px-[10px] py-[8px] text-red",role:"alert",children:[(0,t.jsx)(u.default,{className:"w-[18px] h-[18px] shrink-0",viewBox:"0 0 24 24"}),(0,t.jsx)("span",{className:"font-body text-body-sm text-red",children:E})]})]}),(M.hasCta||k.hasCta)&&(0,t.jsxs)("div",{className:"flex items-stretch gap-5 w-full xl:w-auto xl:items-center shrink-0",children:[M.hasCta&&(0,t.jsx)(s.Button,{href:M.url,target:M.target,variant:"dark",size:"compact",prefetch:!M.url?.includes("live-outage-map")&&void 0,className:"flex-1 w-full justify-between self-stretch xl:flex-none xl:w-auto xl:justify-start xl:self-start",children:M.label}),k.hasCta&&(0,t.jsx)(s.Button,{href:k.url,target:k.target,variant:"dark",size:"compact",prefetch:!k.url?.includes("live-outage-map")&&void 0,className:"flex-1 w-full justify-between self-stretch xl:flex-none xl:w-auto xl:justify-start xl:self-start",children:k.label})]})]})})})}e.s(["OutageBanner",()=>h])},878979,e=>{"use strict";var t=e.i(848277),n=e.i(769941),r=e.i(330668);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let s=[32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840].sort((e,t)=>
26e-t);function l(e,t,n){return`/_next/image?url=${encodeURIComponent(e)}&w=${t}&q=${n}`}let i=[void 0,"fill","none","scale-down"],o=(0,r.forwardRef)(function({sources:e,alt:a,width:o,height:d,fill:c=!1,sizes:u="100vw",quality:x=75,priority:p=!1,loading:h,placeholder:m="empty",blurDataURL:f,objectFit:g,objectPosition:b,className:y,style:w,unoptimized:v=!1,decoding:j="async",fetchPriority:M,onLoad:k,onError:N},_){let[C,L]=(0,r.useState)(!1),[E,S]=(0,r.useState)(!1),B=(0,r.useRef)(k);(0,r.useEffect)(()=>{B.current=k},[k]);let A=(0,r.useCallback)(e=>{let t=e.src;e.getAttribute("data-loaded-src")===t||(e.setAttribute("data-loaded-src",t),("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected&&("empty"!==m&&L(!0),B.current)){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,r=!1;B.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}}))},[m]),P=(0,r.useCallback)(e=>{e&&(N&&(e.src=e.src),e.complete&&A(e))},[A,N]),$=(0,r.useCallback)(e=>{P(e),"function"==typeof _?_(e):_&&(_.current=e)},[P,_]);if(0===e.length)return null;let H=[...e].sort((e,t)=>e.minWidth-t.minWidth),I=H.map((e,t)=>{var n,r,a;let i,o=H[t+1]?.minWidth??null,d=(n=e.minWidth,0===(i=null!=o?s.filter(e=>e>=n&&e<o):s.filter(e=>e>=n)).length?[s.find(e=>e>=n)??s[s.length-1]]:i);return{url:e.url,minWidth:e.minWidth,widths:d,srcSet:(r=e.url,void 0!==(a=e.nativeWidth)?`${r} ${a}w`:d.map(e=>{let t=v?r:l(r,e,x);return`${t} ${e}w`}).join(", ")),sizesAttr:e.sizes??u}}),O=I[I.length-1],F=O.widths[O.widths.length-1],T=v?O.url:l(O.url,F,x),D=I[0],V=D.widths[D.widths.length-1],K=v?D.url:l(D.url,V,x);if(p&&"function"==typeof n.default.preload){let e=I.length>1;n.default.preload(K,{as:"image",imageSrcSet:D.srcSet,imageSizes:D.sizesAttr,media:e?"(max-width: 767px)":void 0,fetchPriority:"high"}),e&&n.default.preload(T,{as:"image",imageSrcSet:O.srcSet,imageSizes:O.sizesAttr,media:"(min-width: 768px)",fetchPriority:"high"})}let z={...c?{position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0}:{},objectFit:g,objectPosition:b,color:E?void 0:"transparent"};if(!C&&"empty"!==m){let e,t="blur"===m&&f?(e=encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg'><filter id='b' color-interpolation-filters='sRGB'><feGaussianBlur stdDeviation='20'/><feColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/><feFlood x='0' y='0' width='100%' height='100%'/><feComposite operator='out' in='s'/><feComposite in2='SourceGraphic'/><feGaussianBlur stdDeviation='20'/></filter><image width='100%' height='100%' x='0' y='0' preserveAspectRatio='${"contain"===g?"xMidYMid":"cover"===g?"xMidYMid slice":"none"}' style='filter: url(#b);' href='${f}'/></svg>`),`url("data:image/svg+xml;charset=utf-8,${e}")`):`url("${m}")`,n=i.includes(g)?"fill"===g?"100% 100%":"cover":g;z.backgroundImage=t,z.backgroundSize=n,z.backgroundPosition=b??"50% 50%",z.backgroundRepeat="no-repeat"}let R={ref:$,src:T,alt:a,width:c?void 0:o,height:c?void 0:d,loading:p||"lazy"!==h&&void 0!==h?"eager":"lazy",decoding:j,"data-nimg":c?"fill":"1",className:y,style:{...z,...w},...M?{fetchPriority:M}:{},onLoad:e=>A(e.currentTarget),onError:e=>{S(!0),"empty"!==m&&L(!0),N?.(e)}};if(1===I.length)return(0,t.jsx)("img",{...R,alt:a,srcSet:I[0].srcSet,sizes:I[0].sizesAttr});let Z=[...I].reverse();return(0,t.jsxs)("picture",{children:[Z.map(e=>(0,t.jsx)("source",{media:e.minWidth>0?`(min-width: ${e.minWidth}px)`:void 0,srcSet:e.srcSet,sizes:e.sizesAttr},`${e.url}-${e.minWidth}`)),(0,t.jsx)("img",{...R,alt:a})]})});o.displayName="ResponsiveImage",e.s(["ResponsiveImage",0,o])},65849,e=>{"use strict";var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a({items:e}
26){let[r,a]=(0,n.useState)(null),s=e.map(e=>e.targetId).join("|");return((0,n.useEffect)(()=>{let e=s?s.split("|"):[],t=e.map(e=>document.getElementById(e)).filter(e=>null!=e);if(0===t.length)return;let n=new Set,r=new IntersectionObserver(t=>{for(let e of t)e.isIntersecting?n.add(e.target.id):n.delete(e.target.id);let r=e.find(e=>n.has(e));r&&a(r)},{rootMargin:"-120px 0px -55% 0px",threshold:0});return t.forEach(e=>r.observe(e)),()=>r.disconnect()},[s]),0===e.length)?null:(0,t.jsx)("aside",{className:"hidden md:block w-[280px] shrink-0 sticky top-[120px] self-start mt-20",children:(0,t.jsxs)("nav",{"aria-label":"Page sections",children:[(0,t.jsx)("h2",{className:"font-heading text-h4 text-midnight mb-5",children:"Explore This Page"}),(0,t.jsx)("div",{children:e.map(e=>{let n=e.targetId===r;return(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.targetId,void document.getElementById(t)?.scrollIntoView({behavior:"smooth",block:"start"})},"aria-current":n?"true":void 0,className:`
27                  flex items-center justify-between w-full py-5
28                  text-left group transition-colors cursor-pointer
29                  ${n?"border-b-[3px] border-midnight text-midnight":"border-b border-grey-medium text-text-primary hover:text-midnight"}
30                `,children:[(0,t.jsx)("span",{className:"font-body text-body tracking-[0.02em] font-medium",children:e.label}),(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"shrink-0 ml-4 text-midnight","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})]},e.targetId)})})]})})}e.s(["AnchorLinks",()=>a])},331186,e=>{"use strict";var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a({mobile:e,desktop:r}){let[a,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)");s(e.matches);let t=e=>s(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,t.jsx)(t.Fragment,{children:a?r:e})}e.s(["MdGate",()=>a])},242610,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(696086);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function s(){let[e,a]=(0,n.useState)(""),s=(0,r.useRouter)();return(0,t.jsx)("form",{onSubmit:function(t){t.preventDefault();let n=e.trim();n&&s.push(`/search?q=${encodeURIComponent(n)}`)},role:"search","aria-label":"Search the site",className:"w-full",children:(0,t.jsxs)("div",{className:"flex items-center h-[55px] overflow-hidden rounded-[4px] border border-midnight-20 bg-grey-light",children:[(0,t.jsx)("label",{htmlFor:"help-support-search",className:"sr-only",children:"What are you looking for?"}),(0,t.jsx)("input",{id:"help-support-search",type:"text",value:e,onChange:e=>a(e.target.value),placeholder:"What are you looking for?",className:"flex-1 min-w-0 h-full pl-5 pr-4 bg-transparent font-body text-body @3xl:text-body-lg text-text-primary placeholder:text-midnight-40 focu
30s-visible:outline-none"}),(0,t.jsx)("button",{type:"submit","aria-label":"Search",className:"shrink-0 flex items-center justify-center w-[55px] h-full bg-midnight text-white transition-colors cursor-pointer hover:bg-blue focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-white",children:(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"size-[30px]",children:(0,t.jsx)("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})})})]})})}e.s(["HelpSupportSearch",()=>s])},749373,e=>{"use strict";var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function a({data:e}){let{contactAccordionSubtitle:r,contactAccordionHeading:a,contactAccordionBody:l,contactAccordionItems:i}=e,[o,d]=(0,n.useState)(null),c=(0,n.useCallback)(e=>{d(t=>t===e?null:e)},[]),u=(i??[]).filter(e=>null!=e);return 0===u.length?null:(0,t.jsx)("section",{className:"@container overflow-hidden mb-10 md:mb-[50px] xl:mb-[70px]",children:(0,t.jsxs)("div",{className:"mx-auto max-w-content overflow-hidden px-5 @md:px-10 @xl:px-12.5",children:[(r||a||l)&&(0,t.jsxs)("div",{className:"mb-10 @md:mb-[50px] flex flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[r&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 text-midnight font-[500] text-body-sm tracking-[3.5px] pt-1 px-2 py-1",children:r}),a&&(0,t.jsx)("h2",{className:"font-heading text-h3 @xl:text-h2 text-midnight leading-none",children:a})]}),l&&(0,t.jsx)("p",{className:"text-text-secondary font-body text-body leading-[1.4] max-w-wysiwyg",children:l})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4",children:u.map((e,n)=>(0,t.jsx)(s,{item:e,isOpen:o===n,onToggle:()=>c(n)},e.id??n))})]})})}function s({item:e,isOpen:n,onToggle:r}){let a=e.contactItemContent?.html;return(0,t.jsxs)("div",{className:`
31        overflow-hidden bg-grey-background
32        border-t border-r border-b border-grey-medium
33        border-l-[7px] border-solid
34        shadow-[0px_0px_10px_0px_rgba(0,0,0,0.05)]
35        transition-colors duration-200
36        ${n?"border-l-midnight":"border-l-blue-20"}
37      `,children:[(0,t.jsx)("h3",{className:"m-0",children:(0,t.jsxs)("button",{type:"button",onClick:r,"aria-expanded":n,className:`flex w-full items-center gap-[10px] py-8 px-6 @md:pl-8 @md:pr-[60px] text-left cursor-pointer transition-colors duration-200 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-blue ${n?"bg-sky-20":"bg-grey-background"}`,children:[(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`shrink-0 transition-transform duration-300 ease-in-out ${n?"rotate-180":"rotate-0"}`,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:n?"#002E6B":"#0079C1"})}),(0,t.jsx)("span",{className:"flex-1 font-heading text-h5 @md:text-h4 text-text-primary leading-[1.2] max-w-[650px]",children:e.contactItemHeading})]})}),(0,t.jsx)("div",{inert:!n,className:`
38          grid transition-[grid-template-rows] duration-300 ease-in-out
39          ${n?"grid-rows-[1fr]":"grid-rows-[0fr]"}
40        `,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"bg-grey-light pl-[60px] pr-6 pb-8 @md:pl-[72px] @md:pr-[60px]",children:a&&(0,t.jsx)("div",{className:"wysiwyg-prose",dangerouslySetInnerHTML:{__html:a}})})})})]})}e.s(["ContactAccordion",()=>a])},140780,e=>{"use strict";var t=e.i(848277),n=e.i(442588);e.i(473034);var r=e.i(951893),a=e.i(448544);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function l({size:e=40,className:n=""}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:`shrink-0 text-midnight ${n}`,children:(0,t.jsx)("path",{d:"M23.3333 30L21 27.5833L26.9167 21.6667H6.66667V18.3333H26.9167L21 12.4167L23.3333 10L33.3333 20L23.3333 30Z",fill:"currentColor"})})}function i({data:e,anchorColumn:n=!1}){let{relatedToolsSubtitle:s,relatedToolsHeading:l,relatedToolsBody:i,relatedToolsMobileDisplay:d,sectionBottomMargin:c,relatedToolCards:u}=e,x=u?.filter(e=>null!=e)??[],p=s||l||i,{emblaRef:h,selectedSnap:m,snapCount:f,scrollPrev:g,scrollNext:b,scrollTo:y,canScrollPrev:w,canScrollNext:v}=(0,a.useCarousel)();return(0,t.jsx)("section",{className:`@container bg-grey-background overflow-hidden${c?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsx)("div",{className:n?"px-5 py-10 @md:px-[40px] @md:py-[70px]":"mx-auto max-w-site px-5 py-10 md:px-10 md:py-[70px] xl:px-12.5 xl:py-[70px]",children:(0,t.jsxs)("div",{className:n?"flex flex-col gap-[30px] @md:gap-[50px]":"flex flex-col gap-[30px] md:gap-[50px] xl:flex-row xl:gap-[120px]",children:[p&&(0,t.jsxs)("div",{className:`flex flex-col gap-5 shrink-0${n?"":" xl:w-[450px]"}`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[s&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 px-2 py-1 font-body font-[500] text-body-sm text-midnight tracking-[3.5px] pt-1",children:s}),l&&(0,t.jsx)("h2",{className:`font-heading text-midnight ${n?"text-h3":"text-h3 xl:text-h2"}`,children:l})]}),i&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary",children:i})]}),x.length>0&&n?(0,t.jsx)("div",{className:"flex flex-col gap-5 flex-1 min-w-0",children:(0,t.jsx)("div",{className:"grid grid-cols-1 @md:grid-cols-2 gap-3",children:x.map(e=>(0,t.jsx)(o,{card:e,anchorColumn:!0},e.id))})}):x.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-5 flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"hidden md:grid md:grid-cols-2 xl:grid-cols-1 gap-4",children:x.map(e=>(0,t.jsx)(o,{card:e},e.id))}),"carousel"===d?(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsx)("div",{ref:h,className:"overflow-hidden -mx-5 px-5",children:(0,t.jsx)("div",{className:"flex gap-2.5",children:x.map(e=>(0,t.jsx)("div",{className:"flex-[0_0_90%] min-w-0",children:(0,t.jsx)(o,{card:e})},e.id))})}),(0,t.jsxs)("div",{className:"flex items-center gap-6 mt-[30px]",children:[(0,t.jsx)(r.PaginationBar,{snapCount:f,selectedSnap:m,onSelect:y}),(0,t.jsxs)("div",{className:"flex items-center gap-4 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:g,disabled:!w,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Previous slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"rotate-180","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})}),(0,t.jsx)("button",{type:"button",onClick:b,disabled:!v,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Next slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})})]})]})]}):(0,t.jsx)("div",{className:"md:hidden grid grid-cols-1 gap-5",children:x.map(e=>(0,t.jsx)(o,{card:e},e.id))})]})]})})})}function o({card:e,anchorColumn:r=!1}){let a=e.relatedToolCardIcon?.[0]??null,s=e.relatedToolCardLink,i=s?.url??void 0,o=s?.label?.trim()||null,d=o?(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-1 h-10 min-w-0 text-midnight transition-transform duration-300 group-hover:translate-x-2",children:[(0,t.jsx)("span",{className:"font-body font-[500] text-nav-cta tracking-[0.02em] min-w-0 break-words",children:o}
40),(0,t.jsx)(l,{size:24,className:"translate-y-px"})]}):(0,t.jsx)("div",{className:"mt-auto transition-transform duration-300 group-hover:translate-x-2",children:(0,t.jsx)(l,{})}),c=(0,t.jsxs)(t.Fragment,{children:[a?.url&&(0,t.jsx)("div",{className:`shrink-0 relative ml-[10px] my-[15px] ${r?"size-[80px]":"size-[80px] xl:size-[100px]"}`,children:(0,t.jsx)(n.default,{src:a.url,alt:a.alt??"",fill:!0,className:"object-contain",sizes:"100px"})}),(0,t.jsxs)("div",{className:`h-full flex flex-1 min-w-0 flex-col justify-between pt-[25px] pb-[15px] ${r?"pr-[30px]":"pr-[20px]"} ${!a?.url?"pl-[20px]":""}`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[10px] min-w-0",children:[e.relatedToolCardHeading&&(0,t.jsx)("h3",{className:"font-heading text-h5 xl:text-h4 text-midnight break-words",children:e.relatedToolCardHeading}),e.relatedToolCardBody&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary break-words",children:e.relatedToolCardBody})]}),d]})]}),u="flex min-w-0 items-start gap-5 bg-white border border-blue-20 h-full transition-colors hover:bg-blue-20 hover:border-blue-40 group";return i?(0,t.jsx)("a",{href:i,target:s?.target??void 0,rel:s?.target==="_blank"?"noopener noreferrer":void 0,className:`${u} cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue`,children:c}):(0,t.jsx)("div",{className:u,children:c})}e.s(["RelatedTools",()=>i])},332092,e=>{"use strict";var t=e.i(848277),n=e.i(277003),r=e.i(24884);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let s="bg-sky-20 text-midnight",l="bg-grey-medium text-text-secondary",i="bg-tag-amber text-tag-amberText",o={report:{label:"Report",style:s},regulatorydocument:{label:"Regulatory document",style:s},factsheet:{label:"Factsheet",style:l},guideline:{label:"Guideline",style:l},policy:{label:"Policy",style:i},form:{label:"Form",style:i},contract:{label:"Contract",style:"bg-tag-violet text-tag-violetText"},submission:{label:"Submission",style:s}};function d(e){let t,n=e?.trim();return n?o[n.toLowerCase()]??{label:(t=n.replace(/([a-z0-9])([A-Z])/g,"$1 $2").trim().toLowerCase()).charAt(0).toUpperCase()+t.slice(1),style:l}:null}function c({data:e,anchorColumn:n=!1}){let{documentsSubtitle:r,documentsHeading:a,documentsBody:s,sectionBottomMargin:l,documentsListingItems:i}=e,o=function(e){let t=[],n=null;for(let r of e)if("documentSubheading_Entry"===r.__typename){let e=r.documentSubheadingText?.trim();if(!e)continue;n={heading:e,docs:[]},t.push(n)}else n||(n={heading:null,docs:[]},t.push(n)),n.docs.push(r);return t.filter(e=>e.docs.length>0)}(i?.filter(e=>null!=e)??[]),d=r||a||s;return(0,t.jsx)("section",{className:`@container bg-grey-background overflow-hidden${l?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsx)("div",{className:n?"w-full px-5 py-10 @md:py-[70px]":"mx-auto max-w-site px-5 py-10 @min-[768px]:px-10 @min-[768px]:py-[70px] @min-[1280px]:px-12.5",children:(0,t.jsxs)("div",{className:"flex flex-col gap-7.5 @min-[768px]:gap-12.5",children:[d&&(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(r||a)&&(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[r&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 px-2 py-1 font-body font-[500] text-body-sm text-midnight tracking-[3.5px] pt-1",children:r}),a&&(0,t.jsx)("h2",{className:"font-heading text-h3 @min-[1280px]:text-h2 text-midnight",children:a})]}),s&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary @min-[1280px]:max-w-[728px]",children:s})]}),o.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-[30px] @min-[768px]:gap-[50px]",children:o.map((e,n)=>(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[e.heading&&(0,t.jsx)("h4",{className:"font-heading text-h4 text-midnight",children:e.heading}),(0,t.jsxs)("ul",{className:"grid grid-cols-1 @min-[768px]:grid-cols-2 @min-[768px]:auto-rows-fr border-t border-l border-grey-cardBorder",children:[e.docs.map((e,n)=>(0,t.jsx)(u,{item:e},e.id??n)),e.docs.length>1&&e.docs.length%2==1&&(0,t.jsx)("li",{"aria-hidden":"true",className:"hidden @min-[768px]:block"})]})]},e.docs[0].id??n))})]})})})}function u({item:e}){let a=e.documentListingItemFile?.[0]??null,s=a?.url??null,l=e.documentListingItemLink?.url??null,i=null!=s,o=e.documentListingItemTitle??a?.filename??null,c=d(e.documentListingItemType),u=(0,n.formatDate)(e.documentListingItemDate),x=a?.extension?.toUpperCase()??null,m=function(e){if(!e)return null;let t=Number(e);return!Number.isFinite(t)||t<=0?null:t<1024?`${t} B`:t<1048576?`${Math.round(t/1024)} KB`:`${(t/1048576).toFixed(1)} MB`}(a?.size),f=i&&s?a?.filename??s.split("?")[0].split("/").pop()??"download":null,g=s??l,b="font-body font-[500] text-body text-midnight tracking-cta leading-[1.4] @min-[768px]:text-body-lg @min-[768px]:tracking-copy @min-[768px]:leading-[1.5]",y=`${b} group-hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue`;return(0,t.jsx)("li",{className:"group bg-white border-r border-b border-grey-cardBorder @min-[768px]:[&:only-child]:col-span-2 hover:bg-grey-light transition-colors flex gap-6 px-6 py-5",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 min-w-0",children:[o&&((g?i?(0,t.jsx)("a",{href:g,download:f??void 0,target:"_blank",rel:"noopener noreferrer",className:y,onClick:()=>(0,r.trackFileDownload)(f??g,a?.extension??void 0),children:o}):(0,t.jsx)("a",{href:g,target:e.documentListingItemLink?.target??"_blank",rel:"noopener noreferrer",className:y,children:o}):null)??(0,t.jsx)("p",{className:b,children:o})),(0,t.jsxs)("div",{className:"mt-auto flex flex-wrap items-center gap-x-1.5 gap-y-1 @min-[768px]:flex-nowrap @min-[768px]:gap-2.5",children:[c&&(0,t.jsx)("span",{className:`${c.style} px-2.5 py-1 font-body font-[500] text-caption tracking-meta leading-[1.4] uppercase whitespace-nowrap`,children:c.label}),u&&(0,t.jsxs)(t.Fragment,{children:[c&&(0,t.jsx)(p,{}),(0,t.jsx)(h,{children:u})]}),x&&(0,t.jsxs)(t.Fragment,{children:[(c||u)&&(0,t.jsx)(p,{}),(0,t.jsx)(h,{strong:!0,children:x})]}),m&&(0,t.jsxs)(t.Fragment,{children:[!x&&(c||u)&&(0,t.jsx)(p,{}),(0,t.jsx)(h,{children:m})]})]})]})})}let x="font-body text-body-sm text-text-primary opacity-70 tracking-copy leading-[1.5] whitespace-nowrap";function p(){return(0,t.jsx)("span",{"aria-hidden":"true",className:x,children:"·"})}function h({children:e,strong:n=!1}){return(0,t.jsx)("span",{className:`${x}${n?" font-[500]":""}`,children:e})}e.s(["DocumentsListing",()=>c,"resolveDocumentTag",()=>d])},83184,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(442588);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let s={citipower:"bg-blue-20 text-midnight",powercor:"bg-red-tint text-red-ink"},l={citipower:"CitiPower",powercor:"Powercor"};function i({item:e}){switch(e.__typename){case"contactInfoPhone_Entry":{let n=e.contactInfoPhoneNumber;if(!n)return null;let r=e.contactInfoPhoneBadge??"none";return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:["none"!==r&&l[r]&&(0,t.jsx)("span",{className:`inline-block shrink-0 px-2 py-1 font-body font-medium text-body-sm tracking-wide-cms ${s[r]??""}`,children:l[r]}),(0,t.jsx)("a",{href:`tel:${n.replace(/[^\d+]/g,"")}`,className:"font-body font-medium text-body-lg text-text-primary tracking-wide-cms underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:n})]})}case"contactInfoEmail_Entry":{let n=e.contactInfoEmailAddress;if(!n)return null;return(0,t.jsx)("a",{href:`mailto:${n}`,className:"font-body font-medium text-body text-midnight tracking-nav underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:n})}case"contactInfoCtaLink_Entry":{let n=e.contactInfoCtaLink?.url,r=e.contactInfoCtaLabel||e.contactInfoCtaLink?.label;if(!n||!r||!function(e){try{let{protocol:t}=new URL(e,"https://base.invalid");return"https:"===t||"http:"===t}catch{return!1}}(n))return null;let a=e.contactInfoCtaLink?.target??void 0;return(0,t.jsxs)("a",{href:n,target:a,rel:"_blank"===a?"noreferrer":void 0,className:"group inline-flex items-center gap-1 font-body font-medium text-body text-midnight tracking-nav underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:[r,(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"shrink-0",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})]})}case"contactInfoText_Entry":{let n=e.contactInfoTextBody;if(!n)return null;return(0,t.jsx)("p",{className:"whitespace-pre-line font-body text-body text-text-primary",children:n})}default:return null}}function o({row:e}){let n=(e.contactInfoItems??[]).filter(e=>null!=e);return(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-2 border-t border-grey-medium py-6 first:border-t-0 md:grid-cols-[minmax(0,1.3fr)_minmax(0,1fr)_minmax(0,0.8fr)] md:items-center md:gap-6 md:pl-10 md:pr-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h4",{className:"font-heading text-h5 text-text-primary leading-[1.2]",children:e.contactInfoRowLabel}),e.contactInfoRowSubLabel&&(0,t.jsx)("span",{className:"font-body font-normal text-caption text-text-secondary tracking-tight-cms",children:e.contactInfoRowSubLabel})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:n.map((e,n)=>(0,t.jsx)(i,{item:e},e.id??n))}),(0,t.jsx)("div",{className:`md:text-right ${e.contactInfoHoursText?"mt-1 border-t border-grey-medium pt-3 md:mt-0 md:border-t-0 md:pt-0":""}`,children:e.contactInfoHoursText&&(0,t.jsx)("span",{className:"whitespace-pre-line font-body font-medium text-body text-text-primary tracking-wide-cms",children:e.contactInfoHoursText})})]})}function d({panel:e,isOpen:r,onToggle:a}){let s=(0,n.useId)(),l=`${s}-header`,i=`${s}-region`,d=(e.contactInfoRows??[]).filter(e=>null!=e);return(0,t.jsxs)("div",{className:`
41        overflow-hidden bg-grey-background
42        border-t border-r border-b border-grey-medium
43        border-l-[7px] border-solid
44        shadow-[0px_0px_10px_0px_rgba(0,0,0,0.05)]
45        transition-colors duration-200
46        ${r?"border-l-midnight":"border-l-blue-20"}
47      `,children:[(0,t.jsx)("h3",{className:"m-0",children:(0,t.jsxs)("button",{type:"button",id:l,"aria-expanded":r,"aria-controls":i,onClick:a,className:`flex w-full items-center gap-3 px-4 py-6 text-left cursor-pointer transition-colors duration-200 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-blue ${r?"bg-sky-20":"bg-grey-background hover:bg-sky-20"}`,children:[(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:`shrink-0 transition-transform duration-300 ease-in-out motion-reduce:transition-none ${r?"rotate-180 text-midnight":"rotate-0 text-blue"}`,children:(0,t.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",fill:"
47currentColor"})}),(0,t.jsxs)("span",{className:"flex flex-1 flex-col gap-1",children:[(0,t.jsx)("span",{className:"font-heading text-h4 text-text-primary leading-[1.2]",children:e.contactInfoAccordionTitle}),e.contactInfoAccordionSubtitle&&(0,t.jsx)("span",{className:"font-body font-normal text-body-sm text-text-secondary tracking-wide-cms",children:e.contactInfoAccordionSubtitle})]})]})}),(0,t.jsx)("div",{id:i,role:"region","aria-labelledby":l,inert:!r,className:`grid transition-[grid-template-rows] duration-300 ease-in-out motion-reduce:transition-none ${r?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"bg-grey-light px-4",children:d.map((e,n)=>(0,t.jsx)(o,{row:e},e.id??n))})})})]})}function c({data:e}){let[a,s]=(0,n.useState)(0),l=(0,n.useCallback)(e=>{s(t=>t===e?null:e)},[]),i=(e.contactInfoAccordions??[]).filter(e=>null!=e);if(0===i.length)return null;let o=e.contactInfoSectionIcon?.[0]??null;return(0,t.jsx)("section",{className:"overflow-hidden mb-10 md:mb-[50px] xl:mb-[70px]",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[900px] overflow-hidden px-5 md:px-10 xl:px-0",children:[(o||e.contactInfoSectionTitle||e.contactInfoSectionIntro)&&(0,t.jsxs)("div",{className:"mb-8 flex items-center gap-4 md:mb-10",children:[o?.url&&(0,t.jsx)(r.default,{src:o.url,alt:o.alt??"",width:o.width??100,height:o.height??100,className:"h-[72px] w-[72px] shrink-0 object-contain md:h-[100px] md:w-[100px]"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[e.contactInfoSectionTitle&&(0,t.jsx)("h2",{className:"font-heading text-h3 xl:text-h2 text-midnight leading-none",children:e.contactInfoSectionTitle}),e.contactInfoSectionIntro&&(0,t.jsx)("p",{className:"whitespace-pre-line font-body font-normal text-body text-text-secondary leading-[1.5] tracking-wide-cms",children:e.contactInfoSectionIntro})]})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4",children:i.map((e,n)=>(0,t.jsx)(d,{panel:e,isOpen:a===n,onToggle:()=>l(n)},e.id??n))})]})})}e.s(["ContactInformationAccordion",()=>c])},108549,e=>{"use strict";var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function s(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z",fill:"currentColor"})})}function l(){return(0,t.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.063 2.063 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}function i(){return(0,t.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}function o({onClick:e,ariaLabel:n,title:r,children:a}){return(0,t.jsx)("button",{type:"button",onClick:e,"aria-label":n,title:r,className:"inline-flex h-10 items-center gap-1.5 rounded-full border border-midnight-20 bg-grey-background px-4 transition-colors duration-150 hover:bg-info focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:a})}function d({url:e,title:r}){let{copied:a,copy:d,shareLinkedIn:c,shareFacebook:u}=function({url:e,title:t,copiedDuration:r=2e3}
47){let[a,s]=(0,n.useState)(!1),l=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{null!==l.current&&clearTimeout(l.current)},[]);let i=(0,n.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),null!==l.current&&clearTimeout(l.current),s(!0),l.current=setTimeout(()=>s(!1),r)}catch{}},[e,r]);return{copied:a,copy:i,shareLinkedIn:(0,n.useCallback)(()=>{let n=encodeURIComponent(e),r=encodeURIComponent(t);window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${n}&title=${r}`,"_blank","width=600,height=600,noopener,noreferrer")},[e,t]),shareFacebook:(0,n.useCallback)(()=>{let t=encodeURIComponent(e);window.open(`https://www.facebook.com/sharer/sharer.php?u=${t}`,"_blank","width=600,height=600,noopener,noreferrer")},[e])}}({url:e,title:r});return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxs)(o,{onClick:d,ariaLabel:a?"Link copied":"Copy article link",title:a?"Copied!":"Copy link",children:[(0,t.jsx)("span",{className:"text-text-secondary",children:(0,t.jsx)(s,{})}),(0,t.jsx)("span",{className:"font-body text-body-sm font-medium text-text-secondary",children:a?"Copied":"Copy"})]}),(0,t.jsxs)(o,{onClick:c,ariaLabel:"Share on LinkedIn",title:"Share on LinkedIn",children:[(0,t.jsx)("span",{className:"text-social-linkedin",children:(0,t.jsx)(l,{})}),(0,t.jsx)("span",{className:"font-body text-body-sm font-medium text-social-linkedin",children:"LinkedIn"})]}),(0,t.jsxs)(o,{onClick:u,ariaLabel:"Share on Facebook",title:"Share on Facebook",children:[(0,t.jsx)("span",{className:"text-social-facebook",children:(0,t.jsx)(i,{})}),(0,t.jsx)("span",{className:"font-body text-body-sm font-medium text-social-facebook",children:"Facebook"})]})]})}e.s(["ShareButtons",()=>d],108549)},7640,e=>{"use strict";e.i(639057);var t=e.i(848277),n=e.i(330668);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let a=[/(?:youtube\.com|youtube-nocookie\.com)\/watch\?(?:.*&)?v=([\w-]+)/,/youtu\.be\/([\w-]+)/,/(?:youtube\.com|youtube-nocookie\.com)\/embed\/([\w-]+)/,/(?:youtube\.com|youtube-nocookie\.com)\/shorts\/([\w-]+)/],s=[/vimeo\.com\/(?:video\/)?(\d+)/,/player\.vimeo\.com\/video\/(\d+)/];function l(e,t){for(let n of t){let t=e.match(n);if(t)return t[1]}return null}try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function o(){return(0,t.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none","aria-hidden":"true",className:"drop-shadow-[0_4px_12px_rgba(0,0,0,0.4)]",children:[(0,t.jsx)("circle",{cx:"40",cy:"40",r:"40",fill:"rgba(255,255,255,0.95)"}),(0,t.jsx)("path",{d:"M32 26L56 40L32 54V26Z",fill:"#002E6B"})]})}function d({block:e}){let[r,i]=(0,n.useState)(!1),d=(0,n.useRef)(null);if(!e.url)return null;let c=function(e){let t=e.trim();if(!t)return null;let n=l(t,a);if(n)return{provider:"youtube",id:n,embedUrl:`https://www.youtube-nocookie.com/embed/${n}?autoplay=1&rel=0&modestbranding=1`,thumbUrl:`https://i.ytimg.com/vi/${n}/hqdefault.jpg`,thumbSrcSet:`https://i.ytimg.com/vi/${n}/hqdefault.jpg 480w, https://i.ytimg.com/vi/${n}/sddefault.jpg 640w, https://i.ytimg.com/vi/${n}/maxresdefault.jpg 1280w`};let r=l(t,s);return r?{provider:"vimeo",id:r,embedUrl:`https://player.vimeo.com/video/${r}?autoplay=1&dnt=1`,thumbUrl:null,thumbSrcSet:null}:null}(e.url);if(!c)return null;let u=e.title??"Embedded video";return(0,t.jsxs)("figure",{className:"flex flex-col gap-3",children:[e.title&&(0,t.jsx)("h3",{className:"font-heading text-h5 text-midnight break-words",children:e.title}),(0,t.jsx)("div",{className:"relative mx-auto aspect-video w-full overflow-hidden rounded-lg bg-midnight xl:-mx-[22px] xl:aspect-auto xl:h-video-desktop xl:w-video-desktop",children:r?(0,t.jsx)("iframe",{ref:d,src:c.embedUrl,title:u,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,loading:"lazy",referrerPolicy:"str
47ict-origin-when-cross-origin",className:"absolute inset-0 h-full w-full border-0"}):(0,t.jsxs)("button",{type:"button",onClick:()=>{i(!0),requestAnimationFrame(()=>{d.current?.focus()})},"aria-label":`Play video: ${u}`,className:"group absolute inset-0 flex h-full w-full cursor-pointer items-center justify-center focus-visible:outline-2 focus-visible:outline-offset-[-4px] focus-visible:outline-blue",children:[c.thumbUrl&&(0,t.jsx)("img",{src:c.thumbUrl,srcSet:c.thumbSrcSet??void 0,sizes:"(max-width: 768px) 100vw, 920px",alt:"","aria-hidden":"true",loading:"lazy",className:"absolute inset-0 h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"relative transition-transform duration-200 group-hover:scale-110",children:(0,t.jsx)(o,{})})]})})]})}e.s(["ArticleVideo",()=>d],7640)},99902,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(442588);e.i(373754);var a=e.i(654212),s=e.i(572987);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 13V11H19V13H5Z",fill:"currentColor"})})}function o(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"})})}function d({data:e,anchorColumn:l=!1}){let{calculatorSubtitle:d,calculatorHeading:c,calculatorBody:u,calculatorCtaText:x,calculatorCtaLink:p,sectionBottomMargin:h,calculatorAppliances:m}=e,f=m?.filter(e=>null!=e&&null!=e.calculatorApplianceName&&null!=e.calculatorApplianceExpectedLife)??[],{url:g,target:b,label:y,hasCta:w}=(0,s.resolveCta)(x,p),[v,j]=(0,n.useState)(null),[M,k]=(0,n.useState)(""),[N,_]=(0,n.use
47State)(""),C=f.find(e=>e.id===v),L=C?.calculatorApplianceExpectedLife??0,E=(0,n.useCallback)(e=>{j(e),k(""),_("")},[]),S=(0,n.useCallback)(e=>{if(""===e)return void k("");let t=parseInt(e);isNaN(t)||t<0||t>99||k(String(t))},[]),B=(0,n.useCallback)(e=>{if(""===e)return void _("");let t=parseInt(e);isNaN(t)||t<0||t>999999||_(String(t))},[]),A=(0,n.useCallback)(()=>{k(e=>{let t=(parseInt(e)||0)+1;return t>99?e:String(t)})},[]),P=(0,n.useCallback)(()=>{k(e=>{let t=(parseInt(e)||0)-1;return t<0?e:String(t)})},[]),$=(0,n.useCallback)(e=>{"ArrowUp"===e.key?(e.preventDefault(),A()):"ArrowDown"===e.key&&(e.preventDefault(),P())},[A,P]),H=parseInt(M)||0,I=parseInt(N)||0,O=null!=C&&""!==M&&""!==N,F=O&&H>=L,T=O&&!F?(L-H)*(L>0?I/L:0):0;return(0,t.jsx)("section",{className:`@container overflow-hidden${h?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsx)("div",{className:"bg-midnight",children:(0,t.jsxs)("div",{className:`${l?"":"mx-auto w-full max-w-site"} px-5 py-10 @min-[768px]:px-10 @min-[768px]:py-[70px] @min-[1280px]:px-12.5`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5 mb-[30px] @min-[1280px]:mb-[50px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[d&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 px-2 py-1 font-body font-[500] text-body-sm text-midnight tracking-[3.5px] pt-1",children:d}),c&&(0,t.jsx)("h2",{className:"font-heading text-h3 @min-[1280px]:text-h2 text-white",children:c})]}),u&&(0,t.jsx)("p",{className:"font-body text-body text-white opacity-90 max-w-[900px]",children:u}),w&&(0,t.jsx)("div",{className:"mt-2.5",children:(0,t.jsx)(a.Button,{href:g,target:b,variant:"light",size:"compact",children:y})})]}),(0,t.jsx)("div",{className:"bg-grey-background border border-blue-20 p-5 @min-[768px]:p-10",children:(0,t.jsxs)("div",{className:"flex flex-col gap-5 @min-[1280px]:flex-row @min-[1280px]:gap-[50px]",children:[f.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-[15px] flex-1",children:[(0,t.jsx)("h3",{className:"font-heading text-h5 @min-[1280px]:text-h4 text-text-primary",children:"Select your appliance:"}),(0,t.jsx)("div",{className:`flex-grow grid gap-4 ${l?"grid-cols-2":"grid-cols-2 @min-[768px]:grid-cols-3"}`,children:f.map((e,n)=>{let a=e.calculatorApplianceIcon?.[0]??null,s=v===e.id,i=f.length%2!=0&&n===f.length-1;return(0,t.jsxs)("button",{type:"button",onClick:()=>E(e.id),className:`
48                          border border-blue-20 flex flex-col gap-[5px] items-center justify-center p-5
49                          transition-colors cursor-pointer
50                          focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue
51                          ${i?l?"col-span-2":"col-span-2 @min-[768px]:col-span-1":""}
52                          ${s?"bg-midnight text-white":"bg-white text-text-primary hover:bg-grey-light"}
53                        `,children:[a?.url&&(0,t.jsx)("div",{className:"relative size-10 overflow-hidden hidden @min-[768px]:block",children:(0,t.jsx)(r.default,{src:a.url,alt:a.alt??"",fill:!0,className:`object-contain ${s?"brightness-0 invert":""}`,sizes:"40px"})}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-0.5",children:[(0,t.jsx)("span",{className:"font-body font-bold text-body text-center leading-[1.4] break-words",children:e.calculatorApplianceName?.replace(/\//g,"/​")}),null!=e.calculatorApplianceExpectedLife&&(0,t.jsxs)("span",{className:`font-body text-[12px] leading-[1.4] tracking-meta text-center ${s?"text-midnight-20":"text-text-secondary"}`,children:["Expected life: ",e.calculatorApplianceExpectedLife," years"]})]})]},e.id)})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-5 @min-[1280px]:gap-[30px] flex-1 @min-[1280px]:self-stretch",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[15px]",children:[(0,t.jsx)("h3",{className:"font-heading text-h5 @min-[1280px]:text-h4 text-text-primary",children:"Age of appliance:"}),(0,t.jsxs)("div",{className:"flex gap-2.5",children:[(0,t.jsx)("button",{type:"button",onClick:P,className:"bg-white border border-blue-20 flex items-center justify-center size-[55px] shrink-0 text-midnight hover:bg-grey-light transition-colors cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":"Decrease age",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{className:"bg-white border border-blue-20 rounded-sm flex-1 flex items-center justify-center h-[55px]",children:(0,t.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:""===M?"":`${M} ${1===parseInt(M)?"year":"years"}`,onChange:e=>{S(e.target.value.replace(/[^0-9]/g,""))},onKeyDown:$,placeholder:"0 years",className:"w-full h-full text-center font-heading text-h5 text-text-primary bg-transparent outline-none","aria-label":"Appliance age in years"})}),(0,t.jsx)("button",{type:"button",onClick:A,className:"bg-white border border-blue-20 flex items-center justify-center size-[55px] shrink-0 text-midnight hover:bg-grey-light transition-colors cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":"Increase age",children:(0,t.jsx)(o,{})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[15px]",children:[(0,t.jsx)("h3",{className:"font-heading text-h5 @min-[1280px]:text-h4 text-text-primary",children:"Original purchase price:"}),(0,t.jsxs)("div",{className:"flex border border-blue-20 rounded-sm overflow-hidden",children:[(0,t.jsx)("div",{className:"bg-grey-background border-r border-blue-20 flex items-center justify-center size-[55px] shrink-0",children:(0,t.jsx)("span",{className:"font-heading text-h4 text-midnight",children:"$"})}),(0,t.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:N,onChange:e=>{B(e.target.value.replace(/[^0-9]/g,""))},placeholder:"0",className:"bg-white flex-1 h-[55px] px-5 font-heading text-h5 text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue","aria-label":"Original purchase price in dollars"})]})]}),(0,t.jsx)("hr",{className:"border-t border-blue-20"}),(0,t.jsxs)("div",{className:"flex flex-col gap-[15px] flex-1",children:[(0,t.jsx)("h3",{className:"font-heading text-h5 @min-[1280px]:text-h4 text-text-primary",children:"Your compensation:"}),(0,t.jsxs)("div",{className:"bg-white border border-blue-20 flex-1 flex flex-col justify-center px-5 py-5 @min-[1280px]:px-10",children:[(0,t.jsxs)("span",{className:"font-heading text-[45px] @min-[1280px]:text-h1 leading-none text-midnight",children:["$",Math.round(T).toLocaleStr
53ing("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).substring(1)]}),F&&(0,t.jsx)("p",{className:"font-body text-body-sm text-red mt-2.5",children:"Your appliance is older than the expected life span."})]})]})]})]})})]})})})}e.s(["Calculator",()=>d])},201250,e=>{"use strict";var t=e.i(848277),n=e.i(442588),r=e.i(816506);e.i(373754);var a=e.i(654212);e.i(473034);var s=e.i(951893),l=e.i(448544),i=e.i(572987),o=e.i(440585),d=e.i(277003);try{var c=window;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let u=/^\d{4}-\d{2}-\d{2}([T ].*)?$/,x=["article_Entry","documentCentre_Entry"];function p({slide:e,anchorColumn:a=!1}){var s,l;let i=e.carouselSlideEntry?.find(e=>null!=e)??null;if(!i)return null;let c="article_Entry"===i.__typename,p=i.referencedTitle??i.title,h=i.shortExcerpt??(c?i.articleExcerpt??null:null),m=i.referenceImage?.[0]??(c?i.articleFeaturedImage?.[0]??null:null),f=x.includes(i.__typename)&&i.postDate?(s=i.postDate.slice(0,10),u.test(s.trim())?(0,d.formatDate)(s,"EEE d MMM • yyyy",s):s):null,g=m?.url!=null,b=i.uri?(l=i.uri,`/${l.replace(/^\/+/,"")}`):null,y=(0,t.jsxs)("div",{className:"bg-grey-background border border-sky-20 p-2.5 flex flex-col gap-2.5 h-full group transition hover:shadow-dropdown hover:bg-midnight hover:border-midnight rounded-md overflow-hidden",children:[g&&m&&(0,t.jsx)("div",{className:`relative ${a?"h-[200px]":"h-[200px] md:h-[250px]"} w-full shrink-0 [container-type:size] overflow-hidden`,children:(0,t.jsx)(n.default,{src:m.url,alt:m.alt??"",fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300",sizes:"(max-width: 767px) 80vw, 400px",style:{objectPosition:(0,o.focalPointToObjectPosition)(m.focalPoint)}})}),(0,t.jsxs)("div",{className:"flex flex-col flex-1 justify-between px-[15px] pr-[30px] py-2.5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[f&&(0,t.jsx)("span",{className:"font-body font-medium text-[12px] tracking-[3px] text-midnight-80 leading-[1.4] transition-colors group-hover:text-midnight-20",children:f}),p&&(0,t.jsx)("h3",{className:`font-heading ${a?"text-h5":"text-h5 md:text-h4"} text-midnight leading-[1.2] transition-colors group-hover:text-white`,children:p})]}),h&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary leading-[1.4] transition-colors group-hover:text-midnight-20",children:h})]}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none","aria-hidden":"true",className:"text-midnight transition group-hover:translate-x-1 group-hover:text-white",children:(0,t.jsx)("path",{d:"M23.3333 30L21 27.5833L27.5833 21H6.66667V18H27.5833L21 11.4167L23.3333 9.16667L33.3333 19.5L23.3333 30Z",fill:"currentColor"})})})]})]});return b?(0,t.jsx)(r.default,{href:b,className:"block h-full no-underline",children:y}):y}function h({data:e,anchorColumn:n=!1}){let r=n?"w-full":"mx-auto max-w-site px-5 md:px-10 xl:px-12.5",o=n?"":"pl-5 md:pl-10 xl:pl-[max(50px,calc((100%-1440px)/2+50px))]",{carouselSubtitle:d,carouselHeading:c,carouselBody:u,carouselCtaText:x,carouselCtaLink:h,carouselSlides:m}=e,f=(m??[]).filter(e=>null!=e&&(e.carouselSlideEntry?.some(e=>null!=e)??!1)),{url:g,target:b,label:y,hasCta:w}=(0,i.resolveCta)(x,h),v=d||c||u||w,{emblaRef:j,selectedSnap:M,snapCount:k,canScrollPrev:N,canScrollNext:_,scrollPrev:C,scrollNext:L,scrollTo:E}=(0,l.useCarousel)({loop:!1});if(0===f.length)return null;let S=n?"mb-[30px] @xl:mb-[50px]":"mb-[30px] xl:mb-[50px]",B=n?"py-10 @md:py-[50px] @xl:py-[70px]":"py-10 md:py-[50px] xl:py-[70px]",A=n?"mb-[30px] @md:hidden":"mb-[30px] md:hidden",P=n?"mt-[30px] @xl:mt-[50px]":"mt-[30px] xl:mt-[50px]";return(0,t.jsx)("section",{className:`${n?"@container overflow-x-clip":"overflow-x-clip"}${e.sectionBottomMargin?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsxs)("div",{className:`bg-white ${B}`,children:[v&&(0,t.jsx)("div",{className:`${r} ${S}`,children:(0,t.jsxs)("div",{className:n?"flex flex-col gap-5 @md:flex-row @md:items-end @md:justify-between":"flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5 max-w-[900px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[d&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 text-midnight font-[500] text-body-sm tracking-[3.5px] pt-1 px-2 py-1",children:d}),c&&(0,t.jsx)("h2",{className:n?"font-heading text-h3 @xl:text-h2 text-midnight":"font-heading text-h3 xl:text-h2 text-midnight",children:c})]}),u&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary leading-[1.4]",children:u})]}),w&&(0,t.jsx)("div",{className:n?"shrink-0 hidden @md:block":"shrink-0 hidden md:block",children:(0,t.jsx)(a.Button,{href:g,target:b,variant:"dark",size:"compact",children:y})})]})}),w&&(0,t.jsx)("div",{className:`${r} ${A}`,children:(0,t.jsx)(a.Button,{href:g,target:b,variant:"dark",size:"compact",children:y})}),(0,t.jsx)("div",{ref:j,className:`overflow-hidden ${o}`,children:(0,t.jsx)("div",{className:n?"flex gap-3":"flex gap-2.5",children:f.map(e=>(0,t.jsx)("div",{className:n?"flex-[0_0_320px] min-w-0 @md:flex-[0_0_45%] @xl:flex-[0_0_280px]":"flex-[0_0_320px] min-w-0 md:flex-[0_0_45%] xl:flex-[0_0_400px]",children:(0,t.jsx)(p,{slide:e,anchorColumn:n})},e.id??void 0))})}),(0,t.jsx)("div",{className:`${r} ${P}`,children:(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[(0,t.jsx)(s.PaginationBar,{snapCount:k,selectedSnap:M,onSelect:E}),(0,t.jsxs)("div",{className:"flex items-center gap-4 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:C,disabled:!N,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Previous slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"rotate-180","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})}),(0,t.jsx)("button",{type:"button",onClick:L,disabled:!_,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Next slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})})]})]})})]})})}e.s(["Carousel",()=>h])},175596,e=>{"use strict";var t=e.i(848277),n=e.i(442588),r=e.i(816506);e.i(373754);var a=e.i(654212);e.i(473034);var s=e.i(951893),l=e.i(448544),i=e.i(572987);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function d({data:e,variant:a="default"}){let s=e.iconCardItemIcon?.[0]??null,l=e.iconCardItemLink,i=l?.url??void 0,o="stacked"===a,d=l?.label?.trim()||null,c=(e,n="")=>(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:`shrink-0 text-midnight ${n}`,children:(0,t.jsx)("path",{d:"M23.3333 28.3333L21.1667 26.0833L26.9167 20.3333H6.66667V17.3333H26.9167L21.1667 11.5833L23.3333 9.33333L33.3333 18.8333L23.3333 28.3333Z",fill:"currentColor"})}),u=c(40),x=e.iconCardItemHeading?.trim()||null,p=e.iconCardItemDescription?.trim()||null,h=!!(x||p),m=d?(0,t.jsxs)("div",{className:`${h?"mt-auto":""} flex items-center gap-1 h-10 min-w-0 text-midnight`,children:[(0,t.jsx)("span",{className:"font-body font-[500] text-nav-cta tracking-[0.02em] min-w-0 break-words",children:d}
53),c(24,"translate-y-px")]}):(0,t.jsx)("div",{className:h?"mt-auto":"",children:u}),f=h&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 min-w-0",children:[x&&(0,t.jsx)("h3",{className:"font-heading text-h5 xl:text-h4 text-midnight break-words",children:x}),p&&(0,t.jsx)("p",{className:"text-body text-text-secondary break-words",children:p})]}),g=(0,t.jsxs)(t.Fragment,{children:[s?.url&&(0,t.jsx)("div",{className:`shrink-0 relative ${o?"size-[60px] ml-[10px] my-[10px]":"size-[80px] xl:size-[100px] ml-[10px] my-[15px]"}`,children:(0,t.jsx)(n.default,{src:s.url,alt:s.alt??"",fill:!0,className:"object-contain",sizes:"100px"})}),o?(0,t.jsxs)("div",{className:`flex flex-1 min-w-0 items-start justify-between gap-[10px] self-stretch py-[15px] pr-[20px] ${!s?.url?"pl-[20px]":""}`,children:[f,c(40,"self-center")]}):(0,t.jsxs)("div",{className:`h-full flex flex-1 min-w-0 flex-col ${h?"justify-between":""} gap-4 pt-[25px] pb-[15px] pr-[20px] ${!s?.url?"pl-[20px]":""}`,children:[f,m]})]}),b="flex min-w-0 items-start gap-5 bg-white border border-blue-20 h-full transition-colors hover:bg-blue-20 hover:border-blue-40 group";return i?(0,t.jsx)(r.default,{href:i,target:l?.target??void 0,className:`${b} cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue`,...l?.target==="_blank"?{rel:"noopener noreferrer"}:{},children:g}):(0,t.jsx)("div",{className:b,children:g})}function c({data:e,anchorColumn:n=!1}){let{iconCardsSubtitle:r,iconCardsHeading:o,iconCardsCtaText:c,iconCardsCtaLink:u,iconCardsMobileDisplay:x,iconCardsColumns:p,sectionBottomMargin:h,iconCardsItems:m}=e,f="carousel"===x,{url:g,target:b,label:y,hasCta:w}=(0,i.resolveCta)(c,u),v=m?.filter(e=>null!=e)??[],{emblaRef:j,selectedSnap:M,snapCount:k,canScrollPrev:N,canScrollNext:_,scrollPrev:C,scrollNext:L,scrollTo:E}=(0,l.useCarousel)();return o||0!==v.length?(0,t.jsx)("section",{className:`@container bg-grey-background overflow-hidden${h?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsxs)("div",{className:n?"w-full px-5 py-10 @md:px-[40px] @md:py-[50px] @xl:py-[70px]":"mx-auto max-w-site px-5 py-10 md:px-10 md:py-[50px] xl:px-12.5 xl:py-[70px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[30px] md:flex-row md:items-end md:justify-between md:gap-[50px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[10px] md:max-w-[700px]",children:[r&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 text-midnight font-[500] text-body-sm tracking-[3.5px] pt-1 px-2 py-1",children:r}),o&&(0,t.jsx)("h2",{className:"font-heading text-h3 xl:text-h2 text-midnight",children:o})]}),w&&!f&&(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(a.Button,{href:g,target:b,variant:"dark",size:"compact",children:y})}),w&&(0,t.jsx)("div",{className:"shrink-0 hidden md:block",children:(0,t.jsx)(a.Button,{href:g,target:b,variant:"dark",size:"compact",children:y})})]}),v.length>0&&(0,t.jsxs)(t.Fragment,{children:[!n&&(0,t.jsx)("div",{className:`hidden xl:grid ${"3"===p?"xl:grid-cols-3":"xl:grid-cols-4"} xl:gap-5 mt-[50px]`,children:v.map(e=>(0,t.jsx)(d,{data:e},e.id))}),f&&!n?(0,t.jsxs)("div",{className:"xl:hidden mt-[30px]",children:[w&&(0,t.jsx)("div",{className:"mb-[30px] md:hidden",children:(0,t.jsx)(a.Button,{href:g,target:b,variant:"dark",size:"compact",children:y})}),(0,t.jsx)("div",{ref:j,className:"overflow-hidden -mx-5 md:-mx-10 px-5 md:px-10",children:(0,t.jsx)("div",{className:"flex items-stretch gap-2.5",children:v.map(e=>(0,t.jsx)("div",{className:"flex-[0_0_320px] min-w-0",children:(0,t.jsx)(d,{data:e})},e.id))})}),(0,t.jsxs)("div",{className:"flex items-center gap-6 mt-[30px]",children:[(0,t.jsx)(s.PaginationBar,{snapCount:k,selectedSnap:M,onSelect:E}),(0,t.jsxs)("div",{className:"flex items-center gap-4 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:C,disabled:!N,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Previous slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"rotate-180","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})}),(0,t.jsx)("button",{type:"button",onClick:L,disabled:!_,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Next slide",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})})]})]})]}):(0,t.jsx)("div",{className:`mt-[30px] grid grid-cols-1 gap-3 ${n?"@md:grid-cols-2":"xl:hidden md:grid-cols-2"}`,children:v.map(e=>(0,t.jsx)(d,{data:e,variant:"stacked"},e.id))})]})]})}):null}e.s(["IconCards",()=>c])},15167,e=>{"use strict";var t=e.i(848277),n=e.i(442588),r=e.i(816506);e.i(373754);var a=e.i(654212);e.i(473034);var s=e.i(951893),l=e.i(448544),i=e.i(572987),o=e.i(440585);try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let c={midnight:"border-t-midnight",sky:"border-t-sky","citipower-blue":"border-t-blue","powercor-red":"border-t-red"},u=c.midnight;function x({card:e,anchorColumn:a=!1}){var s;let l=e.twoUpCardImage?.[0]??null,d=l?.url!=null,x=(s=e.twoUpCardAccentColor)?c[s]??u:u,{url:p,target:h,label:m,hasCta:f}=(0,i.resolveCta)(e.twoUpCardCtaText,e.twoUpCardCtaLink),g=(0,t.jsxs)("div",{className:`
54        group bg-white border-t-15 border-solid ${x}
55        overflow-hidden transition-shadow hover:shadow-dropdown
56        flex flex-col h-full w-full
57        ${a?"@md:flex-row":"md:flex-row"}
58      `,children:[d&&l&&(0,t.jsx)("div",{className:`relative h-[220px] shrink-0 overflow-hidden [container-type:size] ${a?"w-full @md:h-full @md:w-1/2 @md:self-stretch":"md:h-full md:w-1/2"}`,children:(0,t.jsx)(n.default,{src:l.url,alt:l.alt??"",fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300",sizes:"(max-width: 767px) 320px, (max-width: 1279px) 50vw, 330px",quality:70,style:{objectPosition:(0,o.focalPointToObjectPosition)(l.focalPoint)}})}),(0,t.jsxs)("div",{className:`
59          bg-blue-20 transition-colors duration-300 group-hover:bg-midnight
60          flex flex-col gap-5
61          p-[25px]
62          ${a?"@md:px-[40px] @md:py-[50px] @md:flex-1":"md:px-[40px] md:py-[50px] md:flex-1"}
63          ${d?"":a?"@md:max-w-[640px]":"md:max-w-[640px]"}
64        `,children:[e.twoUpCardHeading&&(0,t.jsx)("h3",{className:`font-heading text-h4 ${a?"@md:text-h3":"md:text-h3 md:min-h-[105px]"} text-midnight leading-none transition-colors duration-300 group-hover:text-white`,children:e.twoUpCardHeading}),(e.twoUpCardBody||f)&&(0,t.jsxs)("div",{className:"flex flex-col gap-[30px]",children:[e.twoUpCardBody&&(0,t.jsx)("p",{className:`font-body text-body-sm ${a?"@md:text-body":"md:text-body"} text-text-secondary leading-[1.5] tracking-wide-cms transition-colors duration-300 group-hover:text-midnight-20`,children:e.twoUpCardBody}),f&&(0,t.jsxs)("span",{className:"inline-flex self-start items-center min-h-cta-height max-w-cta pl-4 pr-1 py-1 font-body font-[500] text-nav-cta tracking-[0.02em] bg-midnight text-white transition-colors group-hover:bg-blue",children:[(0,t.jsx)("span",{children:m}),(0,t.jsx)("span",{className:"flex items-center justify-center w-cta-arrow h-full overflow-hidden",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})})]})]})]})]});return f&&p?(0,t.jsx)(r.default,{href:p,...h?{target:h,rel:"_blank"===h?"noopener noreferrer":void 0}:{},className:"block h-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:g}):g}function p({data:e,anchorColumn:n=!1}){let{twoUpSubtitle:r,twoUpHeading:o,twoUpBody:d,twoUpCtaText:c,twoUpCtaLink:u,twoUpCards:p,twoUpMobileCarousel:h}=e,m=(p??[]).filter(e=>null!=e),{emblaRef:f,selectedSnap:g,snapCount:b,canScrollPrev:y,canScrollNext:w,scrollPrev:v,scrollNext:j,scrollTo:M}=(0,l.useCarousel)(),{url:k,target:N,label:_,hasCta:C}=(0,i.resolveCta)(c,u),L=r||o||d||C;return(0,t.jsx)("section",{className:`@container overflow-hidden${e.sectionBottomMargin?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsxs)("div",{className:n?"w-full bg-white py-10 @md:py-[50px] @xl:py-[70px]":"mx-auto max-w-site bg-white px-5 py-10 md:px-10 md:py-[50px] xl:px-12.5 xl:py-[70px]",children:[L&&(0,t.jsxs)("div",{className:`flex flex-col gap-5 mb-[30px] ${n?"@md:flex-row @md:items-end @md:justify-between @xl:mb-[50px]":"md:flex-row md:items-end md:justify-between xl:mb-[50px]"}`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-5 max-w-[900px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[r&&(0,t.jsx)("span",{className:"inline-block self-start bg-blue-20 text-midnight font-[500] text-body-sm tracking-[3.5px] pt-1 px-2 py-1",children:r}),o&&(0,t.jsx)("h2",{className:`font-heading text-h3 ${n?"@xl:text-h2":"xl:text-h2"} text-midnight`,children:o})]}),d&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary leading-[1.4]",children:d})]}),C&&(0,t.jsx)("div",{className:`shrink-0 hidden ${n?"@md:block":"md:block"}`,children:(0,t.jsx)(a.Button,{href:k,target:N,variant:"dark",size:"compact",children:_})})]}),C&&(0,t.jsx)("div",{className:`mb-[30px] ${n?"@md:hidden":"md:hidden"}`,children:(0,t.jsx)(a.Button,{href:k,target:N,variant:"dark",size:"compact",children:_})}),m.length>0&&(0,t.jsx)(t.Fragment,{children:!0===h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:n?void 0:"md:hidden",children:[(0,t.jsx)("div",{ref:f,className:`overflow-hidden ${n?"":"-mx-5 px-5"}`,children:(0,t.jsx)("div",{className:"flex items-stretch gap-2.5",children:m.map(e=>(0,t.jsx)("div",{className:`flex flex-col min-w-0 ${n?"flex-[0_0_100%]":"flex-[0_0_320px]"}`,children:(0,t.jsx)(x,{card:e,anchorColumn:n})},e.id??void 0))})}),(0,t.jsxs)("div",{className:"flex items-center gap-6 mt-[30px]",children:[(0,t.jsx)(s.PaginationBar,{snapCount:b,selectedSnap:g,onSelect:M}),(0,t.jsxs)("div",{className:"flex items-center gap-4 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:v,disabled:!y,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Previous card",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"rotate-180","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})}),(0,t.jsx)("button",{type:"button",onClick:j,disabled:!w,className:"text-midnight disabled:text-midnight-40 transition-colors","aria-label":"Next card",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z",fill:"currentColor"})})})]})]})]}),!n&&(0,t.jsx)("div",{className:"hidden md:grid grid-cols-1 xl:grid-cols-2 gap-2.5 xl:gap-5",children:m.map(e=>(0,t.jsx)(x,{card:e},e.id??void 0))})]}):(0,t.jsx)("div",{className:`grid gap-2.5 ${n?"grid-cols-1":"grid-cols-1 xl:grid-cols-2 xl:gap-5"}`,children:m.map(e=>(0,t.jsx)(x,{card:e,anchorColumn:n}
64,e.id??void 0))})})]})})}e.s(["TwoUp",()=>p])},41318,e=>{"use strict";var t=e.i(848277),n=e.i(330668);e.i(639057);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let s=null,l=null;function i(e){return"object"==typeof e&&null!==e&&"number"==typeof e.postcode&&"string"==typeof e.suburb&&"string"==typeof e.distributor}async function o(){if(null!==s)return s;if(l)return l;let e=new AbortController,t=setTimeout(()=>e.abort(),8e3);return l=fetch("https://cppc-outage.s3.ap-southeast-2.amazonaws.com/network-locator.json",{signal:e.signal}).then(e=>{if(!e.ok)throw Error(`Failed to fetch: ${e.status}`);return e.json()}).then(e=>{let t=Array.isArray(e)?e.filter(i):[];return s=t,t}).catch(e=>{throw l=null,e}).finally(()=>clearTimeout(t))}try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var c=window;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function u({rows:e}){return(0,t.jsxs)("div",{className:"mt-6 @5xl:mt-0 max-w-3xl",children:[(0,t.jsx)("div",{className:"flex flex-col gap-4 @3xl:hidden",children:e.map((e,n)=>(0,t.jsxs)("article",{className:"border border-grey-medium shadow-dropdown bg-white px-4 py-5 text-center",children:[(0,t.jsx)("p",{className:"font-heading text-h5 font-bold text-midnight leading-[1.2]",children:e.postcode}),(0,t.jsx)("p",{className:"mt-1 font-body text-body font-medium text-text-primary",children:e.suburb}),(0,t.jsx)("p",{className:"mt-1 font-body text-body text-text-secondary",children:e.distributor})]},`${e.postcode}-${e.suburb}-${e.distributor}-${n}`))}),(0,t.jsx)("div",{className:"hidden overflow-x-auto @3xl:block",children:(0,t.jsxs)("table",{className:"w-full border-collapse font-body text-body text-text-primary",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-midnight text-white text-left",children:[(0,t.jsx)("th",{className:"px-4 py-3 font-heading text-sm font-semibold",children:"Postcode"}),(0,t.jsx)("th",{className:"px-4 py-3 font-heading text-sm font-semibold",children:"Suburb"}),(0,t.jsx)("th",{className:"px-4 py-3 font-heading text-sm font-semibold",children:"Distributor"})]})}),(0,t.jsx)("tbody",{children:e.map((e,n)=>(0,t.jsxs)("tr",{className:n%2==0?"bg-white":"bg-grey-light",children:[(0,t.jsx)("td",{className:"px-4 py-3",children:e.postcode}),(0,t.jsx)("td",{className:"px-4 py-3",children:e.suburb}),(0,t.jsx)("td",{className:"px-4 py-3",children:e.distributor})]},`${e.postcode}-${e.suburb}-${e.distributor}-${n}`))})]})})]})}var x=e.i(664589);try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function h({data:e,anchorColumn:r=!1}){let{rows:a,status:l}=function(){let[e,t]=(0,n.useState)(()=>({rows:s??[],status:null!==s?"success":"idle"}));return(0,n.useEffect)(()=>{if(null!==s)return void t({rows:s,status:"success"});let e=!1;return t(e=>({...e,status:"loading"})),o().then(n=>{e||t({rows:n,status:"success"})}).catch(()=>{e||t({rows:[],status:"error"})}),()=>{e=!0}},[]),e}(),[i,d]=(0,n.useState)(""),[c,p]=(0,n.useState)(null),[h,m]=(0,n.use
64State)(""),f=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(f.current&&clearTimeout(f.current),!(i.trim().length>=3)){p(null),m("");return}if("success"===l)return f.current=setTimeout(()=>{let e,t=i.trim();m(t),p((e=t.trim().toLowerCase()).length<3?[]:a.filter(t=>String(t.postcode).includes(e)||t.suburb.toLowerCase().includes(e)))},300),()=>{f.current&&clearTimeout(f.current)}},[i,a,l]);let g=e.inputIcon?.[0]??null,b=`postcode-input-${e.id??""}`,y=e.inputPlaceholder||"e.g. 3000 or Melbourne",w=e.inputLabel||"Search by postcode or suburb",v=e.introText?.html?(0,x.enhanceWysiwygLinks)(e.introText.html).replace(/(?:<p>(?:\s|&nbsp;|<br\s*\/?>)*<\/p>\s*)+$/gi,""):null;return(0,t.jsx)("section",{className:"bg-grey-background overflow-hidden @container",children:(0,t.jsxs)("div",{className:r?"overflow-hidden flex flex-col gap-[30px] px-5 py-[40px] @3xl:px-10 @3xl:py-[50px] @5xl:flex-row @5xl:gap-[60px] @7xl:py-[70px]":"mx-auto max-w-site overflow-hidden px-5 py-[40px] flex flex-col gap-[30px] md:px-10 md:py-[50px] lg:flex-row lg:gap-[60px] xl:px-12.5 xl:py-[70px] xl:gap-[120px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[20px] @3xl:gap-[30px] @5xl:w-[400px] @7xl:w-[550px] @5xl:shrink-0",children:[v&&(0,t.jsx)("div",{className:"wysiwyg-prose",dangerouslySetInnerHTML:{__html:v}}),(0,t.jsxs)("div",{className:"relative max-w-sm",children:[(0,t.jsx)("label",{htmlFor:b,className:e.inputLabel?"flex font-body text-body-sm font-medium text-midnight tracking-copy mb-[8px]":"sr-only",children:w}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute inset-y-0 right-[20px] flex items-center pointer-events-none text-midnight-40",children:g?.url?(0,t.jsx)("img",{src:g.url,alt:"",width:24,height:24,className:"h-6 w-6 object-contain"}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z"})})}),(0,t.jsx)("input",{id:b,type:"text",maxLength:50,value:i,onChange:e=>d(e.target.value),placeholder:y,className:"w-full bg-grey-light border border-midnight-20 rounded-sm h-input-height pl-[20px] pr-[48px] py-[15px] font-body text-body text-text-primary tracking-copy placeholder:text-text-secondary transition-[border-color,box-shadow] duration-150 ease-in-out focus:outline-none focus:border-blue focus:shadow-dropdown focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue"})]})]})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0","aria-live":"polite","aria-atomic":"false",children:["loading"===l&&(0,t.jsx)("p",{className:"font-body text-body text-text-primary",children:"Loading data…"}),"error"===l&&(0,t.jsx)("p",{className:"font-body text-body text-text-primary",children:"Unable to load network data. Please try again later."}),"success"===l&&null!==c&&0===c.length&&(0,t.jsxs)("p",{className:"font-body text-body text-text-primary",children:["No results found for “",h,"”."]}),"success"===l&&null!==c&&c.length>0&&(0,t.jsx)(u,{rows:c})]})]})})}e.s(["PostcodeNetworkLocator",()=>h],41318)},895445,e=>{"use strict";var t=e.i(848277);e.i(430855);var n=e.i(36643),r=e.i(442588),a=e.i(816506),s=e.i(277003),l=e.i(440585);try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let o={"media-releases":{pill:"bg-blue-20 border-blue text-blue",dot:"bg-blue"},news:{pill:"bg-teal-10 border-teal text-teal",dot:"bg-teal"},blogs:{pill:"bg-grey-border border-midnight text-midnight",dot:"bg-midnight"},blog:{pill:"bg-grey-border border-midnight text-midnight",dot:"bg-midnight"}},d={pill:"bg-grey-border border-midnight text-midnight",dot:"bg-midnight"};try{var c=window;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function u(e,t){if(!e||!Number.isFinite(t)||t<=0||e.length<=t)return e;let n=e.slice(0,t),r=n.split(" ");if(1===r.length)return`${n}...`;r.pop();let a=r.join(" ");return a?a.length<e.length?`${a}...`:a:`${n}...`}try{var x=window;x._sentryModuleMetadata=x._sentryModuleMetadata||{},x._sentryModuleMetadata[(new x.Error).stack]=Object.assign({},x._sentryModuleMetadata[(new x.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function p({article:e}){let n=`/${e.uri.replace(/^\/+/,"")}`,i=(0,s.formatDate)(e.postDate),c=o[e.category.slug]??d,x=e.image;return(0,t.jsxs)("article",{className:"relative flex h-full w-full flex-col items-start gap-2.5 overflow-hidden border border-grey-border bg-white px-3 pb-2 pt-3 shadow-card",children:[(0,t.jsx)("div",{className:"relative h-article-image w-full overflow-hidden border-b-10 border-midnight bg-grey-medium [container-type:size]",children:x?.url&&(0,t.jsx)(r.default,{src:x.url,alt:x.alt||e.title,fill:!0,className:"object-cover",sizes:"(max-width: 767px) calc(100vw - 48px), (max-width: 1279px) 50vw, 33vw",quality:70,style:{objectPosition:(0,l.focalPointToObjectPosition)(x.focalPoint)}})}),(0,t.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-3 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-2",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.25 text-midnight-60",children:[(0,t.jsx)(h,{}),(0,t.jsx)("span",{className:"font-body text-terms font-medium ",children:i})]}),e.readMinutes>0&&(0,t.jsxs)("span",{className:"font-body text-terms tracking-meta text-midnight-60",children:[e.readMinutes," min read"]})]}),(0,t.jsx)("div",{className:"h-px w-full bg-grey-dark"})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-2.5",children:[(0,t.jsx)("h3",{className:"font-heading text-h5 font-bold text-midnight",children:(0,t.jsx)(a.default,{href:n,className:"after:absolute after:inset-0 after:content-['']",children:e.title})}),e.excerpt&&(0,t.jsx)("p",{className:"font-body text-body-sm leading-normal tracking-copy text-text-secondary",children:u(e.excerpt,100)})]})]}),(0,t.jsxs)("div",{className:"mt-auto flex items-center text-midnight",children:[(0,t.jsx)("span",{className:"font-body text-nav-cta font-[500] tracking-cta",children:"Read more"}),(0,t.jsx)("span",{className:"ml-2 inline-flex h-cta-arrow w-cta-arrow items-center justify-center","aria-hidden":"true",children:(0,t.jsx)(m,{})})]})]}
64),(0,t.jsxs)("div",{className:`absolute left-5.25 top-5.25 flex h-6 items-center gap-1 border px-2 ${c.pill}`,children:[(0,t.jsx)("span",{className:`h-dot w-dot rounded-dot ${c.dot}`}),(0,t.jsx)("span",{className:"font-body text-tag font-bold uppercase tracking-tag leading-none",children:e.category.title})]})]})}function h(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3.33333 14.6667C2.96667 14.6667 2.65278 14.5362 2.39167 14.275C2.13056 14.0139 2 13.7 2 13.3334V4.00004C2 3.63337 2.13056 3.31949 2.39167 3.05837C2.65278 2.79726 2.96667 2.66671 3.33333 2.66671H4V2.00004C4 1.81115 4.06389 1.65282 4.19167 1.52504C4.31944 1.39726 4.47778 1.33337 4.66667 1.33337C4.85556 1.33337 5.01389 1.39726 5.14167 1.52504C5.26944 1.65282 5.33333 1.81115 5.33333 2.00004V2.66671H10.6667V2.00004C10.6667 1.81115 10.7306 1.65282 10.8583 1.52504C10.9861 1.39726 11.1444 1.33337 11.3333 1.33337C11.5222 1.33337 11.6806 1.39726 11.8083 1.52504C11.9361 1.65282 12 1.81115 12 2.00004V2.66671H12.6667C13.0333 2.66671 13.3472 2.79726 13.6083 3.05837C13.8694 3.31949 14 3.63337 14 4.00004V13.3334C14 13.7 13.8694 14.0139 13.6083 14.275C13.3472 14.5362 13.0333 14.6667 12.6667 14.6667H3.33333ZM3.33333 13.3334H12.6667V6.66671H3.33333V13.3334ZM8 9.33337C7.81111 9.33337 7.65278 9.26948 7.525 9.14171C7.39722 9.01393 7.33333 8.8556 7.33333 8.66671C7.33333 8.47782 7.39722 8.31949 7.525 8.19171C7.65278 8.06393 7.81111 8.00004 8 8.00004C8.18889 8.00004 8.34722 8.06393 8.475 8.19171C8.60278 8.31949 8.66667 8.47782 8.66667 8.66671C8.66667 8.8556 8.60278 9.01393 8.475 9.14171C8.34722 9.26948 8.18889 9.33337 8 9.33337ZM4.85833 9.14171C4.73056 9.01393 4.66667 8.8556 4.66667 8.66671C4.66667 8.47782 4.73056 8.31949 4.85833 8.19171C4.98611 8.06393 5.14444 8.00004 5.33333 8.00004C5.52222 8.00004 5.68056 8.06393 5.80833 8.19171C5.93611 8.31949 6 8.47782 6 8.66671C6 8.8556 5.93611 9.01393 5.80833 9.14171C5.68056 9.26948 5.52222 9.33337 5.33333 9.33337C5.14444 9.33337 4.98611 9.26948 4.85833 9.14171ZM10.6667 9.33337C10.4778 9.33337 10.3194 9.26948 10.1917 9.14171C10.0639 9.01393 10 8.8556 10 8.66671C10 8.47782 10.0639 8.31949 10.1917 8.19171C10.3194 8.06393 10.4778 8.00004 10.6667 8.00004C10.8556 8.00004 11.0139 8.06393 11.1417 8.19171C11.2694 8.31949 11.3333 8.47782 11.3333 8.66671C11.3333 8.8556 11.2694 9.01393 11.1417 9.14171C11.0139 9.26948 10.8556 9.33337 10.6667 9.33337ZM8 12C7.81111 12 7.65278 11.9362 7.525 11.8084C7.39722 11.6806 7.33333 11.5223 7.33333 11.3334C7.33333 11.1445 7.39722 10.9862 7.525 10.8584C7.65278 10.7306 7.81111 10.6667 8 10.6667C8.18889 10.6667 8.34722 10.7306 8.475 10.8584C8.60278 10.9862 8.66667 11.1445 8.66667 11.3334C8.66667 11.5223 8.60278 11.6806 8.475 11.8084C8.34722 11.9362 8.18889 12 8 12ZM4.85833 11.8084C4.73056 11.6806 4.66667 11.5223 4.66667 11.3334C4.66667 11.1445 4.73056 10.9862 4.85833 10.8584C4.98611 10.7306 5.14444 10.6667 5.33333 10.6667C5.52222 10.6667 5.68056 10.7306 5.80833 10.8584C5.93611 10.9862 6 11.1445 6 11.3334C6 11.5223 5.93611 11.6806 5.80833 11.8084C5.68056 11.9362 5.52222 12 5.33333 12C5.14444 12 4.98611 11.9362 4.85833 11.8084ZM10.6667 12C10.4778 12 10.3194 11.9362 10.1917 11.8084C10.0639 11.6806 10 11.5223 10 11.3334C10 11.1445 10.0639 10.9862 10.1917 10.8584C10.3194 10.7306 10.4778 10.6667 10.6667 10.6667C10.8556 10.6667 11.0139 10.7306 11.1417 10.8584C11.2694 10.9862 11.3333 11.1445 11.3333 11.3334C11.3333 11.5223 11.2694 11.6806 11.1417 11.8084C11.0139 11.9362 10.8556 12 10.6667 12Z",fill:"currentColor"})})}function m(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}try{var f=window;f._sentryModuleMetadata=f._sentryModuleMetadata||{},f._sentryModuleMetadata[(new f.Error).stack]=Object.assign({},f._sentryModuleMetadata[(new f.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var g=e.i(330668);try{var b=window;b._sentryModuleMetadata=b._sentryModuleMetadata||{},b._sentryModuleMetadata[(new b.Error).stack]=Object.assign({},b._sentryModuleMetadata[(new b.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var y=window;y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[(new y.Error).stack]=Object.assign({},y._sentryModuleMetadata[(new y.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var w=e.i(847350);e.i(465219);var v=e.i(199944);try{var j=window;j._sentryModuleMetadata=j._sentryModuleMetadata||{},j._sentryModuleMetadata[(new j.Error).stack]=Object.assign({},j._sentryModuleMetadata[(new j.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let M=[{value:"newest",label:"Newest first"},{value:"oldest",label:"Oldest first"}];
64function k({value:e,onChange:n}){return(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-4 md:w-auto",children:[(0,t.jsx)("span",{id:"news-media-sort-label",className:"font-body text-body-sm font-medium tracking-copy text-midnight",children:"Sort by:"}),(0,t.jsx)("div",{className:"w-sort-width shrink-0",children:(0,t.jsx)(v.StyledSelect,{id:"news-media-sort",ariaLabelledBy:"news-media-sort-label",options:M,value:e,onChange:e=>n(e)})})]})}var N=e.i(375505),_=e.i(255469);e.i(373754);var C=e.i(654212);try{var L=window;L._sentryModuleMetadata=L._sentryModuleMetadata||{},L._sentryModuleMetadata[(new L.Error).stack]=Object.assign({},L._sentryModuleMetadata[(new L.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function E({article:e}){let n=o[e.category.slug]??d,i=`/${e.uri.replace(/^\/+/,"")}`,c=(0,s.formatDate)(e.postDate);return(0,t.jsxs)("article",{className:"flex flex-col gap-12 overflow-hidden border border-grey-border bg-white p-3 shadow-card md:h-featured-desktop md:flex-row md:items-center md:gap-0",children:[e.image?.url&&(0,t.jsxs)("div",{className:"relative h-featured-mobile w-full overflow-hidden border-b-10 border-midnight md:h-full md:flex-1 md:border-b-0 md:border-r-10 [container-type:size]",children:[(0,t.jsx)(r.default,{src:e.image.url,alt:e.image.alt||e.title,fill:!0,className:"object-cover",sizes:"(max-width: 767px) 100vw, 50vw",style:{objectPosition:(0,l.focalPointToObjectPosition)(e.image.focalPoint)},priority:!0}),(0,t.jsxs)("div",{className:`absolute left-5.25 top-5.25 flex h-6 items-center gap-1 border px-2 md:hidden ${n.pill}`,children:[(0,t.jsx)("span",{className:`h-dot w-dot rounded-dot ${n.dot}`}),(0,t.jsx)("span",{className:"font-body text-tag font-bold uppercase tracking-tag leading-none",children:e.category.title})]}),(0,t.jsx)("span",{className:"absolute right-5.25 top-5.25 inline-flex h-6 items-center bg-sunset px-2 pt-hairline font-body text-tag font-bold uppercase leading-none tracking-tag text-white md:hidden",children:"LATEST"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-7 px-5 pb-5 md:flex-1 md:px-15 md:py-0",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"hidden h-6 items-center self-start bg-sunset px-2 font-body text-tag font-bold uppercase tracking-tag text-white md:inline-flex",children:"LATEST"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,t.jsxs)("span",{className:`hidden h-6 items-center gap-1 border px-2 md:flex ${n.pill}`,children:[(0,t.jsx)("span",{className:`h-dot w-dot rounded-dot ${n.dot}`}),(0,t.jsx)("span",{className:"font-body text-tag font-bold uppercase tracking-tag leading-none",children:e.category.title})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.25 text-midnight-60",children:[(0,t.jsx)(S,{}),(0,t.jsx)("span",{className:"font-body text-terms font-medium ",children:c})]}),e.readMinutes>0&&(0,t.jsxs)("span",{className:"font-body text-terms tracking-meta text-midnight-60",children:[e.readMinutes," min read"]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("h2",{className:"font-heading text-h4 font-bold text-midnight",children:(0,t.jsx)(a.default,{href:i,children:e.title})}),e.excerpt&&(0,t.jsx)("p",{className:"font-body text-body leading-normal tracking-copy text-text-secondary",children:u(e.excerpt,200)})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)(C.Button,{href:i,variant:"dark",children:"Read more"})})]})]})}function S(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3.33333 14.6667C2.96667 14.6667 2.65278 14.5362 2.39167 14.275C2.13056 14.0139 2 13.7 2 13.3334V4.00004C2 3.63337 2.13056 3.31949 2.39167 3.05837C2.65278 2.79726 2.96667 2.66671 3.33333 2.66671H4V2.00004C4 1.81115 4.06389 1.65282 4.19167 1.52504C4.31944 1.39726 4.47778 1.33337 4.66667 1.33337C4.85556 1.33337 5.01389 1.39726 5.14167 1.52504C5.26944 1.65282 5.33333 1.81115 5.33333 2.00004V2.66671H10.6667V2.00004C10.6667 1.81115 10.7306 1.65282 10.8583 1.52504C10.9861 1.39726 11.1444 1.33337 11.3333 1.33337C11.5222 1.33337 11.6806 1.39726 11.8083 1.52504C11.9361 1.65282 12 1.81115 12 2.00004V2.66671H12.6667C13.0333 2.66671 13.3472 2.79726 13.6083 3.05837C13.8694 3.31949 14 3.63337 14 4.00004V13.3334C14 13.7 13.8694 14.0139 13.6083 14.275C13.3472 14.5362 13.0333 14.6667 12.6667 14.6667H3.33333ZM3.33333 13.3334H12.6667V6.66671H3.33333V13.3334ZM8 9.33337C7.81111 9.33337 7.65278 9.26948 7.525 9.14171C7.39722 9.01393 7.33333 8.8556 7.33333 8.66671C7.33333 8.47782 7.39722 8.31949 7.525 8.19171C7.65278 8.06393 7.81111 8.00004 8 8.00004C8.18889 8.00004 8.34722 8.06393 8.47
645 8.19171C8.60278 8.31949 8.66667 8.47782 8.66667 8.66671C8.66667 8.8556 8.60278 9.01393 8.475 9.14171C8.34722 9.26948 8.18889 9.33337 8 9.33337ZM4.85833 9.14171C4.73056 9.01393 4.66667 8.8556 4.66667 8.66671C4.66667 8.47782 4.73056 8.31949 4.85833 8.19171C4.98611 8.06393 5.14444 8.00004 5.33333 8.00004C5.52222 8.00004 5.68056 8.06393 5.80833 8.19171C5.93611 8.31949 6 8.47782 6 8.66671C6 8.8556 5.93611 9.01393 5.80833 9.14171C5.68056 9.26948 5.52222 9.33337 5.33333 9.33337C5.14444 9.33337 4.98611 9.26948 4.85833 9.14171ZM10.6667 9.33337C10.4778 9.33337 10.3194 9.26948 10.1917 9.14171C10.0639 9.01393 10 8.8556 10 8.66671C10 8.47782 10.0639 8.31949 10.1917 8.19171C10.3194 8.06393 10.4778 8.00004 10.6667 8.00004C10.8556 8.00004 11.0139 8.06393 11.1417 8.19171C11.2694 8.31949 11.3333 8.47782 11.3333 8.66671C11.3333 8.8556 11.2694 9.01393 11.1417 9.14171C11.0139 9.26948 10.8556 9.33337 10.6667 9.33337ZM8 12C7.81111 12 7.65278 11.9362 7.525 11.8084C7.39722 11.6806 7.33333 11.5223 7.33333 11.3334C7.33333 11.1445 7.39722 10.9862 7.525 10.8584C7.65278 10.7306 7.81111 10.6667 8 10.6667C8.18889 10.6667 8.34722 10.7306 8.475 10.8584C8.60278 10.9862 8.66667 11.1445 8.66667 11.3334C8.66667 11.5223 8.60278 11.6806 8.475 11.8084C8.34722 11.9362 8.18889 12 8 12ZM4.85833 11.8084C4.73056 11.6806 4.66667 11.5223 4.66667 11.3334C4.66667 11.1445 4.73056 10.9862 4.85833 10.8584C4.98611 10.7306 5.14444 10.6667 5.33333 10.6667C5.52222 10.6667 5.68056 10.7306 5.80833 10.8584C5.93611 10.9862 6 11.1445 6 11.3334C6 11.5223 5.93611 11.6806 5.80833 11.8084C5.68056 11.9362 5.52222 12 5.33333 12C5.14444 12 4.98611 11.9362 4.85833 11.8084ZM10.6667 12C10.4778 12 10.3194 11.9362 10.1917 11.8084C10.0639 11.6806 10 11.5223 10 11.3334C10 11.1445 10.0639 10.9862 10.1917 10.8584C10.3194 10.7306 10.4778 10.6667 10.6667 10.6667C10.8556 10.6667 11.0139 10.7306 11.1417 10.8584C11.2694 10.9862 11.3333 11.1445 11.3333 11.3334C11.3333 11.5223 11.2694 11.6806 11.1417 11.8084C11.0139 11.9362 10.8556 12 10.6667 12Z",fill:"currentColor"})})}try{var B=window;B._sentryModuleMetadata=B._sentryModuleMetadata||{},B._sentryModuleMetadata[(new B.Error).stack]=Object.assign({},B._sentryModuleMetadata[(new B.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function A({listing:e,articles:r,featured:a}){let{sortOrder:s,setSortOrder:l,sorted:i}=function(e,t="newest"){let[n,r]=(0,g.useState)(t),a=(0,g.useMemo)(()=>{let t;return(t=[...e]).sort((e,t)=>{let r=new Date(e.postDate).getTime(),a=new Date(t.postDate).getTime();return"newest"===n?a-r:r-a}),t},[e,n]);return{sortOrder:n,setSortOrder:r,sorted:a}}(r),{visible:o,remaining:d,loadMore:c}=(0,w.useArticlePagination)(i),u=+!!a,x=u+o.length,h=u+i.length,m=i.length>0||null!=a,f=i.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.SubHero,{data:{__typename:"subHero_Entry",id:"news-listing-hero",subHeroHeading:null,subHeroHeadingLine2:e.heading??e.title,subHeroBody:null,subHeroImage:e.heroImage?[e.heroImage]:[],subHeroCtaText:null,subHeroCtaLink:null,sectionBottomMargin:null},subHeroBodyHtml:e.descriptionHtml}),(0,t.jsx)("section",{className:"overflow-hidden bg-grey-background",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-site px-5 py-6 md:py-17.5 md:px-10 xl:px-20",children:[(0,t.jsx)("div",{className:"mb-6 flex flex-col gap-4 md:flex-row md:items-center md:justify-end",children:(0,t.jsx)(k,{value:s,onChange:l})}),m&&(0,t.jsxs)("p",{className:"mb-6 font-body text-count text-text-secondary",children:["Showing"," ",(0,t.jsxs)("span",{className:"font-medium",children:[x," of ",h]})," ","articles"]}),a&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(E,{article:a})}),f&&(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-4",children:[(0,t.jsx)("span",{className:"font-body text-body-lg font-medium tracking-copy text-midnight",children:"More articles"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-grey-dark"})]}),m?f?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3",children:o.map(e=>(0,t.jsx)(p,{article:e},e.id))}):null:(0,t.jsx)(_.EmptyState,{}),d>0&&(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(N.LoadMoreButton,{onClick:c,remaining:d,type:"articles"})})]})})]})}e.s(["NewsMediaListing",()=>A],895445)},841864,e=>{"use strict";var t=e.i(848277),n=e.i(330668);e.i(430855);var r=e.i(36643),a=e.i(375505),s=e.i(255469),l=e.i(847350),i=e.i(696086);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let d={region:"",type:"",status:""};try{var c=window;c._sentryModuleMetadata=c._sentryModuleMetadata||{},c._sentryModuleMetadata[(new c.Error).stack]=Object.assign({},c._sentryModuleMetadata[(new c.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function u(e){return!!(e.region||e.type||e.status)}function x(e,t){return u(t)?e.filter(e=>
64(!t.region||e.region?.slug===t.region)&&(!t.type||e.type?.slug===t.type)&&(!t.status||e.status?.slug===t.status)):e}try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let h=["region","type","status"];try{var m=window;m._sentryModuleMetadata=m._sentryModuleMetadata||{},m._sentryModuleMetadata[(new m.Error).stack]=Object.assign({},m._sentryModuleMetadata[(new m.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var f=e.i(442588),g=e.i(816506),b=e.i(440585);try{var y=window;y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[(new y.Error).stack]=Object.assign({},y._sentryModuleMetadata[(new y.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let w={pill:"bg-grey-medium border-grey-dark text-text-primary",dot:"bg-grey-dark"},v={planned:{pill:"bg-blue-20 border-blue text-blue",dot:"bg-blue"},underway:{pill:"bg-grey-border border-midnight text-midnight",dot:"bg-midnight"},complete:{pill:"bg-teal-10 border-teal text-teal",dot:"bg-teal"}};Object.keys(v);try{var j=window;j._sentryModuleMetadata=j._sentryModuleMetadata||{},j._sentryModuleMetadata[(new j.Error).stack]=Object.assign({},j._sentryModuleMetadata[(new j.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function M({status:e,className:n}){let r=v[e.slug]??w;return(0,t.jsxs)("span",{className:`inline-flex h-6 items-center gap-1 border px-2 ${r.pill} ${n??""}`,children:[(0,t.jsx)("span",{className:`h-dot w-dot rounded-dot ${r.dot}`}),(0,t.jsx)("span",{className:"font-body text-tag font-bold uppercase tracking-tag leading-none",children:e.title.toUpperCase()})]})}try{var k=window;k._sentryModuleMetadata=k._sentryModuleMetadata||{},k._sentryModuleMetadata[(new k.Error).stack]=Object.assign({},k._sentryModuleMetadata[(new k.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function N({region:e,type:n,className:r}){return e||n?(0,t.jsxs)("div",{className:`flex flex-wrap items-center gap-2 ${r??""}`,children:[e?(0,t.jsx)(_,{label:e.title}):null,n?(0,t.jsx)(_,{label:n.title}):null]}):null}function _({label:e}){return(0,t.jsx)("span",{className:"inline-flex h-6 items-center border border-grey-dark px-2 font-body text-tag font-bold uppercase tracking-tag leading-none text-text-secondary",children:e})}try{var C=window;C._sentryModuleMetadata=C._sentryModuleMetadata||{},C._sentryModuleMetadata[(new C.Error).stack]=Object.assign({},C._sentryModuleMetadata[(new C.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function L({project:e}){let n=`/${e.uri.replace(/^\/+/,"")}`,r=e.image;return(0,t.jsxs)("article",{className:"relative flex h-full w-full flex-col items-start gap-2.5 overflow-hidden border border-grey-border bg-white px-3 pb-2 pt-3 shadow-card",children:[(0,t.jsxs)("div",{className:"relative h-article-image w-full overflow-hidden border-b-10 border-midnight bg-grey-medium [container-type:size]",children:[r?.url?(0,t.jsx)(f.default,{src:r.url,alt:r.alt||e.title,fill:!0,className:"object-cover",sizes:"(max-width: 767px) calc(100vw - 48px), (max-width: 1279px) 50vw, 33vw",quality:70,style:{objectPosition:(0,b.focalPointToObjectPosition)(r.focalPoint)}}):null,e.status?(0,t.jsx)(M,{status:e.status,className:"absolute left-3 top-3"}):null]}),(0,t.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-3 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-2",children:[(0,t.jsx)(N,{region:e.region,type:e.type}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-2.5",children:[(0,t.jsx)("h3",{className:"font-heading text-h5 font-bold text-midnight",children:(0,t.jsx)(g.default,{href:n,className:"after:absolute after:inset-0 after:content-['']",children:e.title})}),e.summary?(0,t.jsx)("p",{className:"font-body text-body-sm leading-normal tracking-copy text-text-secondary",children:e.summary}):null]})]}),(0,t.jsxs)("div",{className:"mt-auto flex items-center text-midnight",children:[(0,t.jsx)("span",{className:"font-body text-nav-cta font-[500] tracking-cta",children:"View project details"}),(0,t.jsx)("span",{className:"ml-2 inline-flex h-cta-arrow w-cta-arrow items-center justify-center","aria-hidden":"true",children:(0,t.jsx)(E,{})})]})]})]})}function E(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}try{var S=window;S._sentryModuleMetadata=S._sentryModuleMetadata||{},S._sentryModuleMetadata[(new S.Error).stack]=Object.assign({},S._sentryModuleMetadata[(new S.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}e.i(373754);var B=e.i(654212);try{var A=window;A._sentryModuleMetadata=A._sentryModuleMetadata||{},A._sentryModuleMetadata[(new A.Error).stack]=Object.assign({},A._sentryModuleMetadata[(new A.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function P({project:e}){let n=`/${e.uri.replace(/^\/+/,"")}`,r=e.image;return(0,t.jsxs)("article",{className:"flex flex-col gap-6 overflow-hidden border border-grey-border bg-white p-3 shadow-card md:h-featured-desktop md:flex-row md:items-center md:gap-0",children:[r?.url?(0,t.jsxs)("div",{className:"relative h-featured-mobile w-full overflow-hidden border-b-10 border-midnight md:h-full md:flex-1 md:border-b-0 md:border-r-10  [container-type:size]",children:[(0,t.jsx)(f.default,{src:r.url,alt:r.alt||e.title,fill:!0,className:"object-cover",sizes:"(max-width: 767px) 100v
64w, 50vw",style:{objectPosition:(0,b.focalPointToObjectPosition)(r.focalPoint)},priority:!0}),e.status?(0,t.jsx)(M,{status:e.status,className:"absolute left-3 top-3 md:hidden"}):null,(0,t.jsx)("span",{className:"absolute right-3 top-3 inline-flex h-6 items-center bg-sunset px-2 pt-hairline font-body text-tag font-bold uppercase leading-none tracking-tag text-white md:hidden",children:"LATEST"})]}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-7 px-5 pb-5 md:flex-1 md:px-15 md:py-0",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"hidden h-6 items-center self-start bg-sunset px-2 font-body text-tag font-bold uppercase tracking-tag text-white md:inline-flex",children:"LATEST"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("div",{className:"hidden md:inline-flex",children:e.status?(0,t.jsx)(M,{status:e.status,className:"hidden md:inline-flex"}):null}),(0,t.jsx)(N,{region:e.region,type:e.type})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("h2",{className:"font-heading text-h4 font-bold text-midnight",children:(0,t.jsx)(g.default,{href:n,children:e.title})}),e.summary?(0,t.jsx)("p",{className:"font-body text-body leading-normal tracking-copy text-text-secondary",children:e.summary}):null]})]}),(0,t.jsx)("div",{children:(0,t.jsx)(B.Button,{href:n,variant:"dark",children:"View project details"})})]})]})}e.i(465219);var $=e.i(199944);try{var H=window;H._sentryModuleMetadata=H._sentryModuleMetadata||{},H._sentryModuleMetadata[(new H.Error).stack]=Object.assign({},H._sentryModuleMetadata[(new H.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function I({regions:e,types:n,statuses:r,values:a,onChange:s,onApply:l,onClear:i,layout:o}){let d=e=>t=>{s({...a,[e]:t})},c="desktop"===o;return(0,t.jsxs)("div",{className:c?"flex w-full flex-row flex-wrap items-center gap-3":"flex w-full flex-col gap-4",children:[(0,t.jsxs)("div",{className:c?"flex flex-1 flex-row flex-wrap gap-3":"flex flex-col gap-4",children:[(0,t.jsx)(O,{id:"filter-region",label:"Region",placeholder:"All regions",options:e,value:a.region,onChange:d("region"),layout:o}),(0,t.jsx)(O,{id:"filter-type",label:"Type",placeholder:"All types",options:n,value:a.type,onChange:d("type"),layout:o}),(0,t.jsx)(O,{id:"filter-status",label:"Status",placeholder:"All statuses",options:r,value:a.status,onChange:d("status"),layout:o})]}),(0,t.jsxs)("div",{className:c?"flex items-center gap-3":"flex w-full items-stretch gap-2.5",children:[(0,t.jsx)("button",{type:"button",onClick:i,className:c?"inline-flex h-cta-height items-center bg-blue px-6 font-body text-nav-cta font-[500] tracking-cta text-white transition-colors hover:bg-midnight":"inline-flex h-cta-height shrink-0 items-center justify-center bg-blue px-6 font-body text-nav-cta font-[500] tracking-cta text-white transition-colors hover:bg-midnight",children:"Clear"}),(0,t.jsxs)("button",{type:"button",onClick:l,className:c?"inline-flex h-cta-height items-center bg-midnight px-4 font-body text-nav-cta font-[500] tracking-cta text-white hover:bg-blue":"inline-flex h-cta-height flex-1 items-center justify-center bg-midnight px-4 font-body text-nav-cta font-[500] tracking-cta text-white hover:bg-blue",children:["Apply filters",(0,t.jsx)("span",{className:"ml-2 inline-flex h-cta-arrow w-cta-arrow items-center justify-center","aria-hidden":"true",children:(0,t.jsx)(F,{})})]})]})]})}function O({id:e,label:n,placeholder:r,options:a,value:s,onChange:l,layout:i="desktop"}){let o="sheet"===i,d=[{value:"",label:r},...a.map(e=>({value:e.slug,label:e.title}))];return(0,t.jsx)("div",{className:o?"w-full min-w-0":"min-w-0 flex-1",children:(0,t.jsx)($.StyledSelect,{id:e,ariaLabel:n,options:d,value:s,onChange:l,size:o?"cta":"sort",rounded:o?"md":"sm",placeholder:r})})}function F(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}try{var T=window;T._sentryModuleMetadata=T._sentryModuleMetadata||{},T._sentryModuleMetadata[(new T.Error).stack]=Object.assign({},T._sentryModuleMetadata[(new T.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function D({open:e,onClose:r,title:a="Filter projects",children:s}){let l=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=l.current;t&&(e&&!t.open&&t.showModal(),!e&&t.open&&t.close())},[e]),(0,n.useEffect)(()=>{let e=l.current;if(!e)return;let t=()=>r();return e.addEventListener("close",t),()=>e.removeEventListener("close",t)},[r]),(0,t.jsx)("dialog",{ref:l,onClick:function(e){e.target===l.current&&r()},className:"m-0 w-full max-w-none translate-y-0 bg-transparent p-0 backdrop:bg-black/40 md:hidden",style:{marginTop:"auto",marginBottom:0,top:"auto",bottom:0,left:0,right:0},children:(0,t.jsxs)("div",{className:"flex max-h-[85vh] w-screen flex-col overflow-y-auto border-b border-t border-grey-medium bg-grey-background shadow-[0_0_15px_rgba(0,46,107,0.25)]",children:[(0,t.jsx)("div",{className:"flex items-center justify-center pb-1.5 pt-3",children:(0,t.jsx)("span",{className:"h-1 w-10 rounded-full bg-midnight-20","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 px-5 pb-6 pt-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"font-heading text-h5 font-bold text-midnight",children:a}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":"Close filters",className:"inline-flex h-6 w-6 items-center justify-center text-midnight",children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),s]})]})})}try{var V=window;V._sentryModuleMetadata=V._sentryModuleMetadata||{},V._sentryModuleMetadata[(new V.Error).stack]=Object.assign({},V._sentryModuleMetadata[(new V.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var K=window;K._sentryModuleMetadata=K._sentryModuleMetadata||{},K._sentryModuleMetadata[(new K.Error).stack]=Object.assign({},K._sentryModuleMetadata[(new K.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function z({listing:e,projects:o,regions:c,types:p,statuses:m,basePath:f}){var g,b,y;let w=function({projects:e,basePath:t}){let r=(0,i.useRouter)(),a=(0,i.useSearchParams)(),s=(0,n.useMemo)(()=>{var e;return{region:(e=new URLSearchParams(a.toString())).get("region")??"",type:e.get("type")??"",status:e.get("status")??""}}
64,[a]),[l,o]=(0,n.useState)(s);(0,n.useEffect)(()=>{o(s)},[s.region,s.type,s.status]);let c=(0,n.useCallback)(e=>{o(t=>({...t,...e}))},[]),p=(0,n.useCallback)(()=>{r.replace(`/${t}${function(e){let t=[];for(let n of h){let r=e[n];r&&t.push(`${n}=${encodeURIComponent(r)}`)}return t.length?`?${t.join("&")}`:""}(l)}`,{scroll:!1})},[r,t,l]),m=(0,n.useCallback)(()=>{o(d),r.replace(`/${t}`,{scroll:!1})},[r,t]),f=(0,n.useMemo)(()=>x(e,s),[e,s.region,s.type,s.status]);return{applied:s,draft:l,setDraft:c,apply:p,clear:m,hasActiveFilters:u(s),filtered:f}}({projects:o,basePath:f}),v=(0,l.useArticlePagination)(w.filtered,{initialPageSize:9,increment:9});(0,n.useEffect)(()=>{v.reset()},[w.applied.region,w.applied.type,w.applied.status]);let[j,M]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=window.matchMedia("(min-width: 768px)"),t=e=>{e.matches&&M(!1)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let k=(g=e.featuredProject,b=w.applied,y=w.hasActiveFilters,null!=g&&(!y||x([g],b).length>0)),N=+!!k,_=N+v.visible.length,C=N+w.filtered.length,E=w.filtered.length>0||k;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.SubHero,{data:{__typename:"subHero_Entry",id:"major-projects-listing-hero",subHeroHeading:null,subHeroHeadingLine2:e.heading??e.title,subHeroBody:e.body,subHeroImage:e.heroImage?[e.heroImage]:[],subHeroCtaText:null,subHeroCtaLink:null,sectionBottomMargin:null}}),(0,t.jsx)("section",{className:"overflow-hidden bg-grey-background",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-site px-5 py-6 md:px-10 md:py-17.5 xl:px-20",children:[(0,t.jsxs)("div",{className:"mb-6 flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsx)("div",{className:"hidden w-full md:block",children:(0,t.jsx)(I,{regions:c,types:p,statuses:m,values:w.draft,onChange:e=>w.setDraft(e),onApply:w.apply,onClear:w.clear,layout:"desktop"})}),(0,t.jsxs)("div",{className:"flex items-center justify-between md:hidden",children:[(0,t.jsxs)("p",{className:"font-body text-count text-text-secondary",children:["Showing"," ",(0,t.jsxs)("span",{className:"font-medium",children:[_," of ",C]})," ","projects"]}),(0,t.jsx)("button",{type:"button",onClick:()=>M(!0),className:"inline-flex h-cta-height items-center bg-midnight px-4 font-body text-nav-cta font-[500] tracking-cta text-white",children:"Filters"})]})]}),E?(0,t.jsxs)("p",{className:"mb-6 hidden font-body text-count text-text-secondary md:block",children:["Showing"," ",(0,t.jsxs)("span",{className:"font-medium",children:[_," of ",C]})," ","projects"]}):null,k&&e.featuredProject?(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(P,{project:e.featuredProject})}):null,k&&w.filtered.length>0?(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-4",children:[(0,t.jsx)("span",{className:"font-body text-body-lg font-medium tracking-copy text-midnight",children:"More projects"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-grey-dark"})]}):null,E?w.filtered.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3",children:v.visible.map(e=>(0,t.jsx)(L,{project:e},e.id))}):null:(0,t.jsx)(s.EmptyState,{message:w.hasActiveFilters?"No projects match the selected filters.":"No projects available yet.",action:w.hasActiveFilters?(0,t.jsx)("button",{type:"button",onClick:w.clear,className:"inline-flex h-cta-height items-center bg-midnight px-4 font-body text-nav-cta font-[500] tracking-cta text-white",children:"Clear filters"}):null}),v.remaining>0?(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(a.LoadMoreButton,{onClick:v.loadMore,remaining:v.remaining,type:"projects"})}):null]})}),(0,t.jsx)(D,{open:j,onClose:()=>M(!1),children:(0,t.jsx)(I,{regions:c,types:p,statuses:m,values:w.draft,onChange:e=>w.setDraft(e),onApply:function(){w.apply(),M(!1)},onClear:function(){w.clear(),M(!1)},layout:"sheet"})})]})}e.s(["MajorProjectsListing",()=>z],841864)},480820,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(196205),a=e.i(277003),s=e.i(24884);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i({documents:e,anchorColumn:r=!1}
64){let[s,l]=(0,n.useState)(""),[i,h]=(0,n.useState)(""),[m,f]=(0,n.useState)(""),[g,b]=(0,n.useState)(""),[y,v]=(0,n.useState)({search:"",category:"",year:"",fileType:""}),[j,k]=(0,n.useState)({col:"postDate",dir:"desc"}),[N,_]=(0,n.useState)(10),[C,L]=(0,n.useState)(!1),E=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!C)return;let e=E.current;if(!e)return;let t=()=>{e.offsetWidth>=1024&&L(!1)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[C]);let S=(0,n.useMemo)(()=>Array.from(new Set(e.map(e=>e.documentCategory).filter(e=>!!e))).sort(),[e]),B=(0,n.useMemo)(()=>Array.from(new Set(e.map(e=>e.postDate&&(0,a.formatDate)(e.postDate,"yyyy","")||null).filter(e=>!!e))).sort((e,t)=>t.localeCompare(e)),[e]),A=(0,n.useMemo)(()=>Array.from(new Set(e.map(e=>e.documentFile?.[0]?.extension?.toUpperCase()??null).filter(e=>!!e))).sort(),[e]),P=(0,n.useMemo)(()=>e.filter(e=>{if(y.search){let t=y.search.toLowerCase();if(![e.title,e.documentDescription,e.documentCategory].filter(Boolean).join(" ").toLowerCase().includes(t))return!1}return(!y.category||e.documentCategory===y.category)&&(!y.year||(e.postDate?(0,a.formatDate)(e.postDate,"yyyy",""):"")===y.year)&&(!y.fileType||(e.documentFile?.[0]?.extension?.toUpperCase()??"")===y.fileType)&&!0}),[e,y]),$=(0,n.useMemo)(()=>{let e=[...P];return e.sort((e,t)=>{let n="",r="";"title"===j.col?(n=(e.title??"").toLowerCase(),r=(t.title??"").toLowerCase()):"category"===j.col?(n=(e.documentCategory??"").toLowerCase(),r=(t.documentCategory??"").toLowerCase()):"postDate"===j.col?(n=e.postDate?new Date(e.postDate).getTime():0,r=t.postDate?new Date(t.postDate).getTime():0):"size"===j.col?(n=Number(e.documentFile?.[0]?.size??0),r=Number(t.documentFile?.[0]?.size??0)):"type"===j.col&&(n=(e.documentFile?.[0]?.extension??"").toLowerCase(),r=(t.documentFile?.[0]?.extension??"").toLowerCase());let a=n<r?-1:+(n>r);return"asc"===j.dir?a:-a}),e},[P,j]).slice(0,N),H=Math.min(N,P.length),I=()=>{v({search:s,category:i,year:m,fileType:g}),_(10)},O=()=>{l(""),h(""),f(""),b(""),v({search:"",category:"",year:"",fileType:""}),_(10)},F=e=>{k(t=>t.col===e?{col:e,dir:"asc"===t.dir?"desc":"asc"}:{col:e,dir:"asc"})};return(0,t.jsxs)("section",{ref:E,className:"bg-grey-background @container",children:[(0,t.jsxs)("div",{className:r?"px-5 pt-6 pb-10 @md:px-10 @md:py-nav-bottom":"mx-auto max-w-site px-5 pt-6 pb-10 md:px-10 md:py-nav-bottom xl:px-12.5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 @5xl:flex-row @5xl:items-end @5xl:gap-6 mb-4 @5xl:mb-6",children:[(0,t.jsx)(d,{value:s,onChange:l,onSubmit:I}),(0,t.jsx)("div",{className:"hidden @5xl:block w-px self-stretch bg-midnight-20","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"hidden @5xl:flex flex-1 flex-row gap-3",children:[(0,t.jsx)(c,{value:i,onChange:h,placeholder:"All categories",options:S}),(0,t.jsx)(c,{value:m,onChange:f,placeholder:"All years",options:B}),(0,t.jsx)(c,{value:g,onChange:b,placeholder:"All file types",options:A}),(0,t.jsx)("button",{type:"button",onClick:O,className:"h-[50px] bg-blue px-4 text-white font-body font-medium text-body hover:bg-blue-80 transition-colors shrink-0",children:"Clear"}),(0,t.jsxs)("button",{type:"button",onClick:I,className:"h-[50px] bg-midnight pl-4 pr-1 text-white font-body font-medium text-body hover:bg-midnight-60 transition-colors shrink-0 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"@7xl:hidden",children:"Apply"}),(0,t.jsx)("span",{className:"hidden @7xl:inline",children:"Apply filters"}),(0,t.jsx)(w,{})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-4",children:[(0,t.jsxs)("p",{className:"font-body text-body-sm text-text-secondary",children:["Showing"," ",(0,t.jsxs)("span",{className:"font-medium text-text-secondary",children:[H," of ",P.length]})," ","document",1===P.length?"":"s"]}),(0,t.jsxs)("button",{type:"button",onClick:()=>L(!0),"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":"document-centre-mobile-filters",className:"@5xl:hidden inline-flex items-center gap-1.5 h-10 pl-2.5 pr-3 bg-midnight border border-midnight font-body font-medium text-body-sm text-white hover:bg-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:[(0,t.jsx)(M,{}),(0,t.jsx)("span",{children:"Filters"})]})]}),(0,t.jsx)("div",{className:"hidden @5xl:block bg-white overflow-x-auto",children:(0,t.jsxs)("div",{className:"min-w-[900px]",children:[(0,t.jsxs)("div",{className:"bg-midnight grid grid-cols-[32px_minmax(0,1fr)_160px_120px_90px_72px_72px] gap-x-5 items-center px-5 py-2.5",children:[(0,t.jsx)("span",{"aria-hidden":"true"}),(0,t.jsx)(u,{label:"Document",col:"title",sort:j,onClick:F}),(0,t.jsx)(u,{label:"Category",col:"category",sort:j,onClick:F}),(0,t.jsx)(u,{label:"Published",col:"postDate",sort:j,onClick:F}),(0,t.jsx)(u,{label:"File size",col:"size",sort:j,onClick:F}),(0,t.jsx)(u,{label:"Type",col:"type",sort:j,onClick:F}),(0,t.jsx)("span",{className:"font-body font-medium text-body-sm text-white",children:"Download"})]}),0===$.length?(0,t.jsx)("div",{className:"px-5 py-10 text-center font-body text-body text-text-secondary",children:"No documents match your filters."}):$.map(e=>(0,t.jsx)(x,{doc:e},e.id))]})}),(0,t.jsx)("div",{className:"@5xl:hidden flex flex-col gap-3",children:0===$.length?(0,t.jsx)("div",{className:"bg-white px-5 py-10 text-center font-body text-body text-text-secondary",children:"No documents match your filters."}):$.map(e=>(0,t.jsx)(p,{doc:e},e.id))}),N<P.length&&(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsxs)("button",{type:"button",onClick:()=>_(e=>e+10),className:"h-[50px] bg-midnight px-4 text-white font-body font-medium text-body hover:bg-midnight-60 transition-colors flex items-center gap-2",children:["Load more",(0,t.jsx)(w,{})]})})]}),(0,t.jsx)(o,{open:C,onClose:()=>L(!1),category:i,onCategoryChange:h,year:m,onYearChange:f,fileType:g,onFileTypeChange:b,categoryOptions:S,yearOptions:B,fileTypeOptions:A,onClear:O,onApply:()=>{I(),L(!1)}})]})}function o({open:e,onClose:a,category:s,onCategoryChange:l,year:i,onYearChange:o,fileType:d,onFileTypeChange:u,categoryOptions:x,yearOptions:p,fileTypeOptions:h,onClear:m,onApply:f}
64){let g=(0,n.useRef)(null),b=(0,n.useRef)(null),[y,v]=(0,n.useState)(!1),[j,M]=(0,n.useState)(!1),N=(0,n.useRef)(e),_=(0,n.useCallback)(()=>{let e=b.current;b.current=null,e?.isConnected&&e.focus({preventScroll:!0})},[]);(0,n.useEffect)(()=>{let t=N.current;N.current=e,e&&!t?(b.current=document.activeElement instanceof HTMLElement?document.activeElement:null,v(!0),M(!1)):!e&&t&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches||window.matchMedia("(min-width: 1024px)").matches?(v(!1),M(!1),_()):M(!0))},[e,_]);let C=(0,n.useCallback)(e=>{e.animationName.includes("slide-up-out")&&(v(!1),M(!1),_())},[_]);return((0,n.useEffect)(()=>{if(!e||!g.current)return;let t=g.current,n='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',r=t.querySelector(n);function s(e){if("Escape"===e.key)return void a();if("Tab"!==e.key)return;let r=t.querySelectorAll(n);if(0===r.length)return;let s=r[0],l=r[r.length-1];e.shiftKey&&document.activeElement===s?(e.preventDefault(),l.focus({preventScroll:!0})):e.shiftKey||document.activeElement!==l||(e.preventDefault(),s.focus({preventScroll:!0}))}return r&&r.focus({preventScroll:!0}),document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,a]),(0,n.useEffect)(()=>{if(!y)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[y]),y)?(0,t.jsxs)("div",{className:"fixed inset-0 z-40 @5xl:hidden","aria-hidden":j?"true":void 0,children:[(0,t.jsx)("button",{type:"button","aria-label":"Close filter panel",onClick:a,tabIndex:-1,className:(0,r.cn)("absolute inset-0 w-full h-full bg-midnight/30 cursor-default",j?"motion-safe:animate-fade-out":"motion-safe:animate-fade-in")}),(0,t.jsxs)("div",{ref:g,id:"document-centre-mobile-filters",role:"dialog","aria-modal":"true","aria-labelledby":"document-centre-mobile-filters-title",onAnimationEnd:C,className:(0,r.cn)("absolute left-0 right-0 bottom-0","bg-grey-background border-t border-b border-grey-medium shadow-sheet","flex flex-col",j?"motion-safe:animate-slide-up-out pointer-events-none":"motion-safe:animate-slide-up-in"),children:[(0,t.jsx)("div",{className:"flex items-center justify-center pt-3 pb-1.5",children:(0,t.jsx)("span",{className:"block w-10 h-1 rounded-sm bg-midnight-20","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"px-5 pt-3 pb-6 flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{id:"document-centre-mobile-filters-title",className:"font-heading text-h5 text-midnight",children:"Filter documents"}),(0,t.jsx)("button",{type:"button",onClick:a,"aria-label":"Close filter panel",className:"text-midnight hover:text-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:(0,t.jsx)(k,{})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(c,{value:s,onChange:l,placeholder:"All categories",options:x}),(0,t.jsx)(c,{value:i,onChange:o,placeholder:"All years",options:p}),(0,t.jsx)(c,{value:d,onChange:u,placeholder:"All file types",options:h})]}),(0,t.jsxs)("div",{className:"flex items-stretch gap-2.5",children:[(0,t.jsx)("button",{type:"button",onClick:m,className:"flex-1 h-cta-height bg-blue px-4 text-white font-body font-medium text-body hover:bg-blue-80 transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:"Clear"}),(0,t.jsxs)("button",{type:"button",onClick:f,className:"h-cta-height bg-midnight pl-12 pr-10 text-white font-body font-medium text-body hover:bg-midnight-60 transition-colors flex items-center gap-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:["Apply filters",(0,t.jsx)(w,{})]})]})]})]})]}):null}function d({value:e,onChange:n,onSubmit:r}){return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),r()},className:"bg-grey-light border border-midnight-20 h-[50px] flex items-center overflow-hidden w-full @5xl:w-[240px] @7xl:w-[350px] shrink-0",role:"search",children:[(0,t.jsx)("div",{className:"pl-3 pr-2.5 text-midnight-40 shrink-0","aria-hidden":"true",children:(0,t.jsx)(y,{})}
64),(0,t.jsx)("input",{type:"text",value:e,onChange:e=>n(e.target.value),placeholder:"Search...",className:"flex-1 min-w-0 bg-transparent font-body text-body text-midnight placeholder:text-midnight-40 outline-none","aria-label":"Search documents"}),(0,t.jsx)("button",{type:"submit",className:"bg-midnight hover:bg-midnight-60 transition-colors h-full w-[50px] flex items-center justify-center text-white shrink-0","aria-label":"Submit search",children:(0,t.jsx)(w,{})})]})}function c({value:e,onChange:n,placeholder:r,options:a}){return(0,t.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,t.jsxs)("select",{value:e,onChange:e=>n(e.target.value),className:"w-full h-[50px] bg-white border border-midnight-20 px-5 pr-10 font-body font-medium text-body text-midnight outline-none appearance-none cursor-pointer focus-visible:border-blue","aria-label":r,children:[(0,t.jsx)("option",{value:"",children:r}),a.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-midnight","aria-hidden":"true",children:(0,t.jsx)(v,{})})]})}function u({label:e,col:n,sort:r,onClick:a}){let s=r.col===n;return(0,t.jsxs)("button",{type:"button",onClick:()=>a(n),className:"flex items-center gap-1 font-body font-medium text-body-sm text-white text-left hover:opacity-80 transition-opacity","aria-label":`Sort by ${e}${s?` (${r.dir})`:""}`,children:[e,(0,t.jsx)("span",{className:s?"opacity-100":"opacity-60","aria-hidden":"true",children:s&&"asc"===r.dir?(0,t.jsx)(j,{}):(0,t.jsx)(v,{})})]})}function x({doc:e}){let n=e.documentFile?.[0]??null,r=n?.extension?.toUpperCase()??"",a=g(r);return(0,t.jsxs)("div",{className:"border-b border-grey-medium grid grid-cols-[32px_minmax(0,1fr)_160px_120px_90px_72px_72px] gap-x-5 items-center px-5 py-6",children:[(0,t.jsx)("div",{className:"flex items-center justify-center size-8 shrink-0",style:{backgroundColor:a.bg},children:(0,t.jsx)(b,{ext:r,color:a.fg})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 min-w-0",children:[(0,t.jsx)("span",{className:"font-body font-medium text-body-lg text-midnight",children:e.title}),e.documentDescription&&(0,t.jsx)("span",{className:"font-body text-body-sm text-text-primary",children:e.documentDescription})]}),(0,t.jsx)("span",{className:"font-body font-medium text-body text-text-primary truncate",children:e.documentCategory??"—"}),(0,t.jsx)("span",{className:"font-body text-body text-text-primary",children:m(e.postDate)}),(0,t.jsx)("span",{className:"font-body font-medium text-body text-text-primary",children:f(n?.size)}),(0,t.jsx)("div",{children:r&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 h-6 px-2 border font-body font-bold text-[11px] uppercase tracking-[0.5px]",style:{borderColor:a.fg,backgroundColor:a.bg,color:a.fg},children:[(0,t.jsx)("span",{className:"size-1.5 rounded-sm",style:{backgroundColor:a.fg},"aria-hidden":"true"}),r]})}),(0,t.jsx)(h,{url:n?.url??null,label:e.title??"document",extension:n?.extension??null})]})}function p({doc:e}){let n=e.documentFile?.[0]??null,r=n?.extension?.toUpperCase()??"",a=g(r),s=f(n?.size),l=m(e.postDate);return(0,t.jsxs)("div",{className:"bg-white border-l-4 border-solid p-3 shadow-[0_0_2.5px_rgba(0,0,0,0.05)] flex items-start justify-between gap-2",style:{borderLeftColor:a.fg},children:[(0,t.jsxs)("div",{className:"flex items-start gap-2 min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"flex items-center justify-center size-8 shrink-0 p-1",style:{backgroundColor:a.bg},children:(0,t.jsx)(b,{ext:r,color:a.fg})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"font-body font-medium text-body-sm text-midnight tracking-[0.7px]",children:e.title}),e.documentDescription&&(0,t.jsx)("span",{className:"font-body text-[12px] leading-[1.4] text-text-primary",children:e.documentDescription})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 font-body text-[12px] leading-[1.4] text-midnight-40",children:[e.documentCategory&&(0,t.jsx)("span",{children:e.documentCategory}),"—"!==l&&(0,t.jsx)("span",{children:l}),"—"!==s&&(0,t.jsx)("span",{children:s})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-end justify-between gap-y-5 self-stretch shrink-0",children:[(0,t.jsx)(h,{url:n?.url??null,label:e.title??"document",extension:n?.extension??null}),r&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 h-6 px-2 border font-body font-bold text-[11px] uppercase tracking-[0.5px]",style:{borderColor:a.fg,backgroundColor:a.bg,color:a.fg},children:[(0,t.jsx)("span",{className:"size-1.5 rounded-sm",style:{backgroundColor:a.fg},"aria-hidden":"true"}),r]})]})]})}function h({url:e,label:n,extension:r}
64){if(!e)return(0,t.jsx)("span",{});let a=e.split("?")[0].split("/").pop()??"download";return(0,t.jsx)("a",{href:e,download:a,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,s.trackFileDownload)(a,r??void 0),className:"inline-flex items-center justify-center size-8 bg-grey-light border border-midnight-20 hover:bg-grey-medium transition-colors text-midnight cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue","aria-label":`Download ${n}`,children:(0,t.jsx)(N,{})})}function m(e){return(0,a.formatDate)(e,"d MMM yyyy","—")}function f(e){if(!e)return"—";let t=Number(e);return!Number.isFinite(t)||t<=0?"—":t<1024?`${t} B`:t<1048576?`${Math.round(t/1024)} KB`:`${(t/1048576).toFixed(1)} MB`}function g(e){return"PDF"===e?{fg:"#335889",bg:"#E3F2FB"}:"XLSX"===e||"XLS"===e||"CSV"===e?{fg:"#002E6B",bg:"#E5F5F7"}:"DOCX"===e||"DOC"===e?{fg:"#002E6B",bg:"#E5EAF0"}:{fg:"#484848",bg:"#F1F1F1"}}function b({ext:e,color:n}){return"PDF"===e?(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:n,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"})}):"XLSX"===e||"XLS"===e||"CSV"===e?(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4h16v16H4V4Zm0 5h16M4 14h16M10 4v16",stroke:n,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6Z",stroke:n,strokeWidth:"1.6",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14 3v6h6",stroke:n,strokeWidth:"1.6",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M8 13h8M8 17h5",stroke:n,strokeWidth:"1.6",strokeLinecap:"round"})]})}function y(){return(0,t.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"1.8"}),(0,t.jsx)("path",{d:"m20 20-3.5-3.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function w(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M14 6l6 6-6 6M4 12h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function v(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function j(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m6 15 6-6 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function M(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6h16M7 12h10M10 18h4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function k(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 6l12 12M18 6 6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function N(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 3v12m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}e.s(["DocumentCentre",()=>i])},93758,e=>{"use strict";var t=e.i(848277);e.i(639057);var n=e.i(446471),r=e.i(330668);e.i(600092);var a=e.i(130818),s=e.i(381734);e.i(373754);var l=e.i(654212),i=e.i(548867);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function d({config:e,groups:n,submissionId:r}){let a=e.heading?.trim()||"Enquiry submitted",s=e.tagline?.trim()||"Thank you — we've received your enquiry and will be in touch soon.",l=e.showSubmissionId&&null!=r;return(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"bg-midnight px-[32px] py-[32px] flex gap-[16px]",children:[(0,t.jsx)("div",{className:"w-[50px] h-[50px] border-[2.5px] border-[#335889] bg-white/10 flex items-center justify-center shrink-0",children:(0,t.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M10 17L
645 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",fill:"#CCE4F3"})})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("h4",{className:"text-h4 leading-[1.2] text-white",children:a}),(0,t.jsx)("div",{className:"font-body text-body text-blue-20 leading-[1.5] tracking-[0.6px]",dangerouslySetInnerHTML:{__html:s}})]})]}),(l||n.length>0)&&(0,t.jsxs)("div",{className:"bg-white border border-t-0 border-midnight-20 px-[32px] py-[32px] flex flex-col shadow-[0_0_20px_0_rgba(0,46,107,0.05)]",children:[l&&(0,t.jsx)(p,{label:e.submissionIdLabel,value:String(r)}),n.map((e,n)=>(0,t.jsxs)("div",{className:"flex flex-col",children:[(n>0||l)&&(0,t.jsx)(c,{}),(0,t.jsx)(u,{heading:e.heading,rows:e.rows})]},`${e.heading??"ungrouped"}-${n}`))]})]})}function c(){return(0,t.jsx)("hr",{className:"border-0 h-px bg-grey-medium my-[24px]"})}function u({heading:e,rows:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[e&&(0,t.jsx)("span",{className:"inline-flex self-start bg-blue-20 px-[8px] py-[4px] font-body-sm font-medium text-midnight tracking-[3.5px] leading-[1.4]",children:e}),n.map((e,n)=>(0,t.jsx)(x,{fields:e.fields},n))]})}function x({fields:e}){let n=e.length>=2;return(0,t.jsx)("div",{className:n?"grid grid-cols-1 md:grid-cols-2 gap-x-[60px] gap-y-[16px]":"flex flex-col gap-[16px]",children:e.map(e=>"date"===e.kind?(0,t.jsx)(h,{label:e.label,value:e.value},e.handle):(0,t.jsx)(p,{label:e.label,value:e.value},e.handle))})}function p({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-[1.25px]",children:[(0,t.jsx)("span",{className:"font-body text-[14px] text-text-secondary tracking-[0.6px] leading-[1.5]",children:e}),(0,t.jsx)("span",{className:"font-body text-[16px] font-medium text-text-primary tracking-[0.6px] leading-[1.5] break-words whitespace-pre-line",children:n})]})}function h({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,t.jsx)("span",{className:"font-body text-[14px] text-text-secondary tracking-[0.6px] leading-[1.5]",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-[12px] h-[50px] px-[12px] bg-grey-background border border-midnight-20 rounded-[4px]",children:[(0,t.jsx)(i.CalendarIcon,{className:"w-[24px] h-[24px] shrink-0"}),(0,t.jsx)("span",{className:"font-body text-[16px] font-medium text-midnight tracking-[0.6px] leading-[1.5] whitespace-pre",children:n})]})]})}var m=e.i(261936),f=e.i(371204),g=e.i(129333),b=e.i(783828),y=e.i(519703),w=e.i(428391);try{var v=window;v._sentryModuleMetadata=v._sentryModuleMetadata||{},v._sentryModuleMetadata[(new v.Error).stack]=Object.assign({},v._sentryModuleMetadata[(new v.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let j="verbb\\formie\\fields\\Group",M=["address1","address2","address3","city","state","zip","country"],k=new Set([j,"verbb\\formie\\fields\\Section","verbb\\formie\\fields\\Summary","verbb\\formie\\fields\\Heading","verbb\\formie\\fields\\FileUpload","modules\\formiefields\\fields\\Callout","modules\\formiefields\\fields\\RichText"]);function N(e){return"string"==typeof e?e.trim():""}function _(e,t,n,r){return{fields:e.map(e=>(function(e,t,n,r){if(k.has(e.type)||(r?r.has(e.handle):(0,s.isFieldHidden)(e.conditions,t))||!n.showAllFields&&!n.fieldHandles.includes(e.handle))return null;let a=t[e.handle],l="",i="text";if("verbb\\formie\\fields\\Agree"===e.type)l=!0===a||"true"===a||"on"===a||1===a?"Yes":"No";else"verbb\\formie\\fields\\Date"===e.type?(l=function(e){let t=(e??"").trim();if(!t)return"";let n=t.match(/\d{4}-\d{2}-\d{2}/)?.[0]??"",r=t.match(/\d{2}:\d{2}/)?.[0]??"",a="";if(n){let e=(0,y.parse)(n,"yyyy-MM-dd",new Date);a=(0,w.isValid)(e)?(0,b.format)(e,"d MMMM yyyy"):""}return a&&r?`${a}  \xb7  ${r}`:a||r}(String(a??"")),i="date"):l=a&&"object"==typeof a?function(e,t){if("verbb\\formie\\fields\\Address"===e.type||"autoComplete"in t){let e=N(t.autoComplete);return e||M.map(e=>N(t[e])).filter(e=>e.length>0).join(", ")}return"verbb\\formie\\fields\\Checkboxes"===e.type?Object.entries(t).filter(([,e])=>!0===e).map(([t])=>e.options?.find(e=>e.value===t)?.label??t).join(", "):"verbb\\formie\\fields\\Name"===e.type?(e.rows?.flatMap(e=>e.fields.map(e=>e.handle))??Object.keys(t)).map(e=>N(t[e])).filter(e=>e.length>0).join(" "):Object.values(t).map(e=>N(e)).filter(e=>e.length>0).join(", ")}(e,a):String(a??"");return 0===l.trim().length?null:{label:e.name,handle:e.handle,value:l,type:e.type,kind:i}})(e,t,n,r)).filter(e=>null!==e)}}var C=e.i(141498),L=e.i(838849);try{var E=window;E._sentryModuleMetadata=E._sentryModuleMetadata||{},E._sentryModuleMetadata[(new E.Error).stack]=Object.assign({},E._sentryModuleMetadata[(new E.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function S(e){return e.flatMap(e=>e.fields)}function B(e){return["verbb\\formie\\fields\\Group","verbb\\formie\\fields\\Section","verbb\\formie\\fields\\Summary","modules\\formiefields\\fields\\Callout"].includes(e)}let A={"verbb\\formie\\fields\\subfields\\Address1":"address1","verbb\\formie\\fields\\subfields\\Address2":"address2","verbb\\formie\\fields\\subfields\\Address3":"address3","verbb\\formie\\fields\\subfields\\AddressCity":"
64city","verbb\\formie\\fields\\subfields\\AddressState":"state","verbb\\formie\\fields\\subfields\\AddressZip":"zip","verbb\\formie\\fields\\subfields\\AddressCountry":"country"};function P(e,t){if(null==e)return"";if("object"==typeof e&&!(e instanceof FileList)){let n;if((n=Object.values(e)).length>0&&n.every(e=>"boolean"==typeof e))return JSON.stringify(Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e));if(t?.type==="verbb\\formie\\fields\\Address"){let n=function(e){let t=new Set;for(let n of e.rows??[])for(let e of n.fields){let n=A[e.type];n&&(e.enabled??!0)&&t.add(n)}return t}(t);return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([e])=>n.has(e))))}if("autoComplete"in e){let{autoComplete:t,...n}=e;return JSON.stringify(n)}return JSON.stringify(e)}return String(e)}function $({forms:e,activeFormHandle:i,submitButtonText:o,confirmationConfig:c}){let[u,x]=(0,r.useState)("idle"),[p,h]=(0,r.useState)(null),[b,y]=(0,r.useState)(!1),[w,v]=(0,r.useState)([]),[M,k]=(0,r.useState)([]),[N,E]=(0,r.useState)(null),[A,$]=(0,r.useState)(null),{getToken:H}=(0,m.useRecaptcha)(),I=(0,r.useRef)(null),O=e[i],{register:F,handleSubmit:T,reset:D,watch:V,setValue:K,setError:z,unregister:R,formState:{errors:Z}}=(0,n.useForm)({shouldFocusError:!1}),U=V(),W=(0,r.useMemo)(()=>(0,s.resolveHiddenHandles)(O?.rows??[],U),[O,U]),q=(0,r.useRef)(W);q.current=W;let G=Array.from(W).sort().join("|");(0,r.useEffect)(()=>{let e=Array.from(q.current);e.length>0&&R(e)},[G,R]);let J=(0,r.useRef)(null),X=()=>(0,L.focusFirstInvalidField)(J.current);if((0,r.useEffect)(()=>{D(),x("idle"),h(null),v([])},[i,D]),(0,r.useEffect)(()=>{"success"===u&&I.current?.scrollIntoView({behavior:"smooth",block:"start"})},[u]),!O)return null;let Y=O.submitButtonConditions??null,Q=!Y||(0,s.evaluateConditions)(Y,V());async function ee(e){if(O){x("loading"),h(null),v([]);try{let t=(0,s.pruneHiddenRows)(O.rows,e),n=S(t),r=(function e(t){return t.flatMap(t=>"verbb\\formie\\fields\\Group"===t.type&&t.rows?e(S(t.rows)):[t])})(n).filter(e=>"verbb\\formie\\fields\\FileUpload"===e.type),a=[];for(let t of r){let r=e[t.handle];if(r&&r.length>0){let{uploads:e,errors:s}=await (0,g.uploadFiles)(r);if(s.length>0)throw Error(`File upload failed: ${s[0].error}`);a.push({fieldHandle:t.handle,groupHandle:function(e,t){for(let n of e)if("verbb\\formie\\fields\\Group"===n.type&&n.rows&&S(n.rows).some(e=>"verbb\\formie\\fields\\FileUpload"===e.type&&e.handle===t))return n.handle;return null}(n,t.handle),fileUuids:e.map(e=>e.uuid)})}}let l=n.filter(e=>!B(e.type)||"verbb\\formie\\fields\\Group"===e.type).map(t=>{if("verbb\\formie\\fields\\Group"===t.type&&t.rows){let n=S(t.rows).filter(e=>!B(e.type)&&"verbb\\formie\\fields\\FileUpload"!==e.type).map(t=>({handle:t.handle,value:P(e[t.handle],t),type:t.type}));return{handle:t.handle,type:t.type,isGroup:!0,children:n}}return"verbb\\formie\\fields\\FileUpload"===t.type?{handle:t.handle,type:t.type}:{handle:t.handle,value:P(e[t.handle],t),type:t.type}}),i={formHandle:O.handle,fields:l,...a.length>0&&{fileFields:a}},o=await H(),d=await fetch("https://www.powercor.com.au/api/forms/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,recaptchaToken:o})});if(!d.ok){let e=await d.json().catch(()=>({})),t=422===d.status&&e.errors&&"object"==typeof e.errors?e.errors:null;if(t&&Object.keys(t).length>0){let e=(0,C.mapServerFieldErrors)(t,O.rows);for(let{name:t,message:n}of e.fieldErrors)z(t,{type:"server",message:n});v(e.unmatchedMessages),x("error"),y(!!O.errorMessage),h(O.errorMessage||"Please review the highlighted fields and try again."),X();return}throw Error(e.error||e.msg||"Something went wrong. Please try again.")}let u=await d.json().catch(()=>({}));"string"==typeof u?.message&&u.message.length>0&&E(u.message);let p=u?.submissionId,m="number"==typeof p?p:"string"==typeof p&&""!==p.trim()?Number(p):null;null!=m&&Number.isFinite(m)&&$(m),k(function(e,t,n){let r=[],a=(0,s.resolveHiddenHandles)(e,t),l=[],i=()=>{l.length>0&&(r.push({heading:null,rows:l}),l=[])};for(let s of e){let e=[],o=()=>{let r=_(e,t,n,a);r.fields.length>0&&l.push(r),e=[]};
64for(let l of s.fields)if(l.type===j&&l.rows){if(a.has(l.handle))continue;o(),i();let e=function(e,t,n,r){return e.map(e=>_(e.fields,t,n,r)).filter(e=>e.fields.length>0)}(l.rows,t,n,a);e.length>0&&r.push({heading:l.name,rows:e})}else e.push(l);o()}return i(),r}(O.rows,e,c)),(0,f.pushEvent)(`${O.handle}_form_submission`,{form_name:O.handle}),x("success"),D()}catch(e){x("error"),y(!1),h(e instanceof Error?e.message:"Something went wrong. Please try again.")}}}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:I,"aria-hidden":"true",className:"scroll-mt-[120px]"}),"success"===u?(0,t.jsx)(d,{config:N?{...c,tagline:N}:c,groups:M,submissionId:A}):(0,t.jsx)("div",{className:"bg-white border border-midnight-20 shadow-[0px_0px_10px_rgba(0,46,107,0.05)] p-[32px]",children:(0,t.jsxs)("form",{ref:J,onSubmit:T(ee,X),noValidate:!0,"aria-label":`${O.title} form`,"aria-busy":"loading"===u,className:"flex flex-col gap-[25px]",children:[(0,t.jsx)(a.FormRowRenderer,{rows:O.rows,register:F,errors:Z,watch:V,setValue:K,hiddenHandles:W}),"error"===u&&p&&(0,t.jsxs)("div",{className:"flex items-center gap-[8px] p-[16px] bg-red-20 border border-red rounded-sm",role:"alert",children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9 1.5C4.86 1.5 1.5 4.86 1.5 9C1.5 13.14 4.86 16.5 9 16.5C13.14 16.5 16.5 13.14 16.5 9C16.5 4.86 13.14 1.5 9 1.5ZM9.75 12.75H8.25V11.25H9.75V12.75ZM9.75 9.75H8.25V5.25H9.75V9.75Z",fill:"#B71C17"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[b?(0,t.jsx)("span",{className:"font-body text-body-sm text-red-ink",dangerouslySetInnerHTML:{__html:p}}):(0,t.jsx)("span",{className:"font-body text-body-sm text-red-ink",children:p}),w.map(e=>(0,t.jsx)("span",{className:"font-body text-body-sm text-red-ink",children:e},e))]})]}),Q&&(0,t.jsx)(l.Button,{type:"submit",variant:"dark",disabled:"loading"===u,children:"loading"===u?"Sending...":o})]})})]})}try{var H=window;H._sentryModuleMetadata=H._sentryModuleMetadata||{},H._sentryModuleMetadata[(new H.Error).stack]=Object.assign({},H._sentryModuleMetadata[(new H.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function I({data:e,formieForms:n}){let{formSubmitButtonText:r,sectionBottomMargin:a}=e,s=e.formFormHandle?.[0]?.handle??"",l={heading:e.formConfirmationHeading,tagline:n[s]?.submitActionMessage??null,showAllFields:e.formConfirmationShowAllFields??!0,fieldHandles:(e.formConfirmationFields??[]).map(e=>e.fieldHandle?.trim()).filter(e=>!!e),showSubmissionId:n[s]?.includeSubmissionIdInConfirmation??!1,submissionIdLabel:n[s]?.confirmationLabel?.trim()||"Reference number"};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("section",{className:`bg-grey-background${a?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsx)("div",{className:"mx-auto max-w-[920px] px-5 py-[48px] md:px-10 xl:px-12.5 xl:py-[70px]",children:(0,t.jsx)($,{forms:n,activeFormHandle:s,submitButtonText:r??"Submit",confirmationConfig:l},s)})})})}e.s(["Form",()=>I],93758)},517649,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(442588),a=e.i(196205);e.i(639057);var s=e.i(446471);e.i(600092);var l=e.i(46953),i=e.i(130818),o=e.i(381734);e.i(373754);var d=e.i(654212),c=e.i(261936),u=e.i(371204),x=e.i(129333),p=e.i(141498),h=e.i(838849);try{var m=window;m._sentryModuleMetadata=m._sentryModuleMetadata||{},m._sentryModuleMetadata[(new m.Error).stack]=Object.assign({},m._sentryModuleMetadata[(new m.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function f(e){return e.flatMap(e=>e.fields.flatMap(e=>"verbb\\formie\\fields\\Group"===e.type&&e.rows?f(e.rows):[e]))}let g={"verbb\\formie\\fields\\subfields\\Address1":"address1","verbb\\formie\\fields\\subfields\\Address2":"address2","verbb\\formie\\fields\\subfields\\Address3":"address3","verbb\\formie\\fields\\subfields\\AddressCity":"city","verbb\\formie\\fields\\subfields\\AddressState":"state","verbb\\formie\\fields\\subfields\\AddressZip":"zip","verbb\\formie\\fields\\subfields\\AddressCountry":"country"};function b(e,t){if(null==e)return"";if("object"==typeof e&&!(e instanceof FileList)){let n;if((n=Object.values(e)).length>0&&n.every(e=>"boolean"==typeof e))return JSON.stringify(Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e));if(t?.type==="verbb\\formie\\fields\\Address"){let n=function(e){let t=new Set;for(let n of e.rows??[])for(let e of n.fields){let n=g[e.type];
64n&&(e.enabled??!0)&&t.add(n)}return t}(t);return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([e])=>n.has(e))))}if("autoComplete"in e){let{autoComplete:t,...n}=e;return JSON.stringify(n)}return JSON.stringify(e)}return String(e)}function y({forms:e,activeFormHandle:r,privacyHtml:a,privacyCheckboxLabel:m,submitButtonText:g}){let[y,w]=(0,n.useState)("idle"),[v,j]=(0,n.useState)(null),[M,k]=(0,n.useState)(!1),[N,_]=(0,n.useState)([]),[C,L]=(0,n.useState)(null),{getToken:E}=(0,c.useRecaptcha)(),S=(0,n.useRef)(null),B=e[r],{register:A,handleSubmit:P,reset:$,watch:H,setValue:I,setError:O,unregister:F,formState:{errors:T}}=(0,s.useForm)({shouldFocusError:!1}),D=H(),V=(0,n.useMemo)(()=>(0,o.resolveHiddenHandles)(B?.rows??[],D),[B,D]),K=(0,n.useRef)(V);K.current=V;let z=Array.from(V).sort().join("|");(0,n.useEffect)(()=>{let e=Array.from(K.current);e.length>0&&F(e)},[z,F]);let R=(0,n.useRef)(null),Z=()=>(0,h.focusFirstInvalidField)(R.current);if((0,n.useEffect)(()=>{$(),w("idle"),j(null),_([])},[r,$]),(0,n.useEffect)(()=>{"success"===y&&S.current?.scrollIntoView({behavior:"smooth",block:"start"})},[y]),!B)return null;let U=B.submitButtonConditions??null,W=!U||(0,o.evaluateConditions)(U,H());async function q(e){if(B){w("loading"),j(null),_([]);try{let t=(0,o.pruneHiddenRows)(B.rows,e),n=f(t).filter(e=>"verbb\\formie\\fields\\FileUpload"===e.type),r=[];for(let t of n){let n=e[t.handle];if(n&&n.length>0){let{uploads:e,errors:a}=await (0,x.uploadFiles)(n);if(a.length>0)throw Error(`File upload failed: ${a[0].error}`);r.push({fieldHandle:t.handle,groupHandle:null,fileUuids:e.map(e=>e.uuid)})}}let a=function(e,t){let n=[];for(let r of e)for(let e of r.fields)if("verbb\\formie\\fields\\FileUpload"!==e.type)if("verbb\\formie\\fields\\Group"===e.type&&e.rows){let r=f(e.rows).filter(e=>"verbb\\formie\\fields\\FileUpload"!==e.type).map(e=>({handle:e.handle,value:b(t[e.handle],e),type:e.type}));n.push({label:e.name,handle:e.handle,value:"",type:e.type,isGroup:!0,children:r})}else n.push({label:e.name,handle:e.handle,value:b(t[e.handle],e),type:e.type});return n}(t,e),s={formHandle:B.handle,fields:a,...r.length>0&&{fileFields:r}},l=await E(),i=await fetch("https://www.powercor.com.au/api/forms/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,recaptchaToken:l})});if(!i.ok){let e=await i.json().catch(()=>({})),t=422===i.status&&e.errors&&"object"==typeof e.errors?e.errors:null;if(t&&Object.keys(t).length>0){let e=(0,p.mapServerFieldErrors)(t,B.rows);for(let{name:t,message:n}of e.fieldErrors)O(t,{type:"server",message:n});_(e.unmatchedMessages),w("error"),k(!!B.errorMessage),j(B.errorMessage||"Please review the highlighted fields and try again."),Z();return}throw Error(e.error||e.msg||"Something went wrong. Please try again.")}let d=await i.json().catch(()=>({}));"string"==typeof d?.message&&d.message.length>0&&L(d.message),(0,u.pushEvent)(`${B.handle}_form_submission`,{form_name:B.handle}),w("success"),$()}catch(e){w("error"),k(!1),j(e instanceof Error?e.message:"Something went wrong. Please try again.")}}}if("success"===y){let e=C??B.submitActionMessage??"We have received your message and will get back to you as soon as possible.";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:S,"aria-hidden":"true",className:"scroll-mt-[120px]"}),(0,t.jsxs)("div",{className:"flex flex-col gap-[20px] p-[30px] bg-white border border-blue-20 rounded-sm",role:"status",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",fill:"#002E6B"})}),(0,t.jsx)("h3",{className:"font-heading text-h4 text-midnight",children:"Thank you for your enquiry"})]}),(0,t.jsx)("div",{className:"font-body text-body text-text-secondary",dangerouslySetInnerHTML:{__html:e}}),(0,t.jsx)("button",{type:"button",onClick:()=>w("idle"),className:"font-body text-body font-medium text-blue underline hover:text-midnight transition-colors duration-150 self-start focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:"Send another enquiry"})]})]})}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:S,"aria-hidden":"true",className:"scroll-mt-[120px]"}),(0,t.jsxs)("form",{ref:R,onSubmit:P(q,Z),noValidate:!0,"aria-label":`${B.title} form`,"aria-busy":"loading"===y,className:"flex flex-col gap-[25px]",children:[(0,t.jsx)(i.FormRowRenderer,{rows:B.rows,register:A,errors:T,watch:H,setValue:I,singleColumn:!0,hiddenHandles:V}),(0,t.jsxs)("div",{className:"flex flex-col gap-[20px] xl:gap-[24px]",children:[a&&(0,t.jsx)("div",{className:"font-body text-body-sm text-text-secondary",dangerouslySetInnerHTML:{__html:a}}),m&&(0,t.jsx)(l.CheckboxField,{label:m,name:"privacyAccepted",required:!0,error:T.privacyAccepted?.message,register:A("privacyAccepted",{validate:e=>!0===e||"You must accept the Privacy Policy"})})]}),"error"===y&&v&&(0,t.jsxs)("div",{className:"flex items-center gap-[8px] p-[16px] bg-red-20 border border-red rounded-sm",role:"alert",children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9 1.5C4.86 1.5 1.5 4.86 1.5 9C1.5 13.14 4.86 16.5 9 16.5C13.14 16.5 16.5 13.14 16.5 9C16.5 4.86 13.14 1.5 9 1.5ZM9.75 12.75H8.25V11.25H9.75V12.75ZM9.75 9.75H8.25V5.25H9.75V9.75Z",fill:"#B71C17"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[M?(0,t.jsx)("span",{className:"font-body text-body-sm text-red-ink",dangerouslySetInnerHTML:{__html:v}}):(0,t.jsx)("span",{className:"font-body text-body-sm text-red-ink",children:v}),N.map(e=>(0,t.jsx)("span",{className:"font-body text-body-sm text-red-ink",children:e},e))]})]}),W&&(0,t.jsx)(d.Button,{type:"submit",variant:"dark",disabled:"loading"===y,children:"loading"===y?"Sending...":g})]})]})}var w=e.i(604670),v=e.i(408582),j=e.i(572987);try{var M=window;M._sentryModuleMetadata=M._sentryModuleMetadata||{},M._sentryModuleMetadata[(new M.Error).stack]=Object.assign({},M._sentryModuleMetadata[(new M.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function k({data:e,anchorColumn:n=!1}){let{messageBannerType:s,messageBannerHeading:l,messageBannerBody:i,messageBannerIcon:o,messageBannerCtaText:c,messageBannerCtaLink:u,messageBannerCta2Text:x,messageBannerCta2Link:p}=e,h="faults"===s,m=(0,j.resolveCta)(c,u),f=(0,j.resolveCta)(x,p),g=o?.[0]??null,b=h?w.PowerIcon:v.InfoIcon;return(0,t.jsx)("section",{className:(0,a.cn)("overflow-hidden",h?"bg-blue-20 border-b border-midnight-20":"bg-white mb-5 md:mb-8"),role:"status","aria-label":h?"Fault notification":"Information message",children:(0,t.jsx)("div",{className:n?"px-5 py-4":"mx-auto max-w-site px-5 md:px-10 xl:px-[50px] py-4 xl:min-h-20 xl:flex xl:items-center",children:(0,t.jsxs)("div",{className:n?"flex flex-col gap-[10px] w-full":"flex flex-col gap-[10px] xl:flex-row xl:items-center xl:justify-between xl:gap-[50px] w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[10px] min-w-0 shrink",children:[(0,t.jsx)("span",{className:"hidden xl:contents",children:g?(0,t.jsx)(r.default,{src:g.url,alt:g.alt||"",width:60,height:60,className:"w-10 h-10 xl:w-[60px] xl:h-[60px] shrink-0 object-contain"}):(0,t.jsx)(b,{className:"w-10 h-10 xl:w-[60px] xl:h-[60px] text-midnight shrink-0"})}),l&&(0,t.jsx)("h2",{className:"font-heading text-h4 text-midnight leading-[1.2] min-w-0",children:l})]}),i&&(0,t.jsx)("p",{className:n?"font-body text-body-sm tracking-wide-cms text-text-primary whitespace-pre-line min-w-0 
64w-full py-2":"font-body text-body-sm tracking-wide-cms text-text-primary whitespace-pre-line min-w-0 flex-1 py-2 xl:py-0 xl:flex-none xl:w-[640px]",children:i}),(m.hasCta||f.hasCta)&&(0,t.jsxs)("div",{className:"flex flex-col xs:flex-row items-center gap-3 shrink-0 w-full xs:w-auto",children:[m.hasCta&&(0,t.jsx)(d.Button,{href:m.url,target:m.target,variant:"dark",size:"default",className:"w-full",iconAlignRight:!0,children:m.label}),f.hasCta&&h&&(0,t.jsx)(d.Button,{href:f.url,target:f.target,variant:"dark",size:"default",className:"w-full",iconAlignRight:!0,children:f.label})]})]})})})}e.i(35229);var N=e.i(687457);try{var _=window;_._sentryModuleMetadata=_._sentryModuleMetadata||{},_._sentryModuleMetadata[(new _.Error).stack]=Object.assign({},_._sentryModuleMetadata[(new _.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}(0,N.graphql)(`
65  fragment MessageBannerFragment on messageBanner_Entry {
66    id
67    anchorId
68    showInAnchorSection
69    anchorLinkInclude
70    anchorLinkLabel
71    messageBannerType
72    messageBannerHeading
73    messageBannerBody
74    messageBannerIcon {
75      ...CraftImageFields
76    }
77    messageBannerCtaText
78    messageBannerCtaLink {
79      url
80      label
81      target
82    }
83    messageBannerCta2Text
84    messageBannerCta2Link {
85      url
86      label
87      target
88    }
89  }
90`);try{var C=window;C._sentryModuleMetadata=C._sentryModuleMetadata||{},C._sentryModuleMetadata[(new C.Error).stack]=Object.assign({},C._sentryModuleMetadata[(new C.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var L=e.i(816506);try{var E=window;E._sentryModuleMetadata=E._sentryModuleMetadata||{},E._sentryModuleMetadata[(new E.Error).stack]=Object.assign({},E._sentryModuleMetadata[(new E.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function S({data:e,formieForms:r,anchorColumn:a=!1}){let s,{contactFormEyebrow:l,contactFormHeading:i,contactFormBody:o,contactFormQuickLinks:d,contactFormFormHandle:c,contactFormPrivacyText:u,contactFormPrivacyCheckboxLabel:x,contactFormSubmitButtonText:p,sectionBottomMargin:h}=e,m=c?.[0]?.handle??"",f=(d??[]).filter(e=>null!=e&&null!=e.quickLinkTitle),g=(f.length>0?f[0]?.quickLinkFormHandle?.[0]?.handle:m)??m??"",[b,w]=(0,n.useState)(g);(0,n.useEffect)(()=>{function e(){let e=window.location.hash.slice(1);e&&r[e]&&w(e)}return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[r]);let v=!0===e.contactFormShowMessageBanner,j=!!(e.contactFormBannerHeading?.trim()||e.contactFormBannerBody?.trim()||e.contactFormBannerCta1Text?.trim()&&e.contactFormBannerCta1Link?.url||e.contactFormBannerCta2Text?.trim()&&e.contactFormBannerCta2Link?.url);return(0,t.jsxs)(t.Fragment,{children:[v&&j&&(0,t.jsx)(k,{data:{__typename:"messageBanner_Entry",id:e.id?`${e.id}-banner`:null,messageBannerType:"faults",messageBannerHeading:e.contactFormBannerHeading,messageBannerBody:e.contactFormBannerBody,messageBannerIcon:e.contactFormBannerIcon??null,messageBannerCtaText:e.contactFormBannerCta1Text,messageBannerCtaLink:e.contactFormBannerCta1Link,messageBannerCta2Text:e.contactFormBannerCta2Text,messageBannerCta2Link:e.contactFormBannerCta2Link}}),(0,t.jsx)("section",{className:`@container bg-grey-background overflow-hidden${h?" mb-[50px] md:mb-[70px]":""}`,children:(0,t.jsxs)("div",{className:a?"px-5 py-[40px] flex flex-col gap-[30px] @md:px-10 @md:py-[50px]":"mx-auto max-w-site px-5 py-[40px] flex flex-col gap-[30px] md:px-10 md:py-[50px] lg:flex-row lg:gap-[60px] xl:px-12.5 xl:py-[70px] xl:gap-[120px]",children:[(0,t.jsxs)("div",{className:a?"flex flex-col gap-[20px] @md:gap-[50px]":"flex flex-col gap-[20px] md:gap-[50px] lg:w-[400px] lg:shrink-0 xl:w-[550px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[20px]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[l&&(0,t.jsx)("div",{className:"self-start bg-blue-20 px-[8px] py-[4px]",children:(0,t.jsx)("span",{className:"font-body text-body-sm font-[500] text-midnight tracking-[3.5px] pt-1",children:l})}),i&&(0,t.jsx)("h2",{className:`font-heading text-[35px] leading-none text-midnight ${a?"":"xl:text-h2"}`,children:i})]}),o&&(0,t.jsx)("p",{className:`font-body text-body text-text-secondary ${a?"":"xl:w-[500px]"}`,children:o})]}),f.length>0&&(s=f.every(e=>!("url"===e.quickLinkType&&e.quickLinkUrl?.url)),(0,t.jsx)("div",{className:"flex flex-col gap-[10px]",...s?{role:"tablist","aria-label":"Select enquiry type"}:{},children:f.map(e=>{let n=e.quickLinkFormHandle?.[0]?.handle??null;return(0,t.jsx)(B,{selector:e,isActive:b===n,onSelect:()=>{n&&(w(n),window.history.replaceState(null,"",`#${n}`))}},e.id)})}))]}),(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(y,{forms:r,activeFormHandle:b,privacyHtml:u?.html??null,privacyCheckboxLabel:x,submitButtonText:p??"Send enquiry"},b)})]})})]})}function B({selector:e,isActive:n,onSelect:s}){let l=e.quickLinkIcon?.[0]??null,i="url"===e.quickLinkType&&e.quickLinkUrl?.url,o=(0,a.cn)("border flex gap-[5px] items-center py-[4px] pr-[20px] md:py-[4px] md:pl-[10px] w-full group transition-colors duration-150 text-left","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",n?"border-blue bg-grey-background":"border-blue-20 bg-grey-background hover:bg-blue-20/20"),d=(0,t.jsxs)(t.Fragment,{children:[l?.url?(0,t.jsx)("div",{className:"relative w-[80px] h-[80px] shrink-0 overflow-hidden",children:(0,t.jsx)(r.default,{src:l.url,alt:l.alt??"",fill:!0,className:"object-contain",sizes:"80px"})}):(0,t.jsx)("div",{className:"w-[80px] h-[80px] shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-1 items-center justify-between min-w-0",children:[(0,t.jsx)("span",{className:"font-heading text-h5 text-midnight",children:e.quickLinkTitle}),(0,t.jsx)("svg",{width:"65",height:"65",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"shrink-0 transition-transform duration-150 group-hover:translate-x-1",children:(0,t.jsx)("path",{d:"M22 14L20.6 15.45L24.15 19H12V21H24.15L20.6 24.55L22 26L28 20L22 14Z",fill:"#002E6B"})})]})]});return i&&e.quickLinkUrl?(0,t.jsx)(L.default,{href:e.quickLinkUrl.url,target:e.quickLinkUrl.target??void 0,className:o,children:d}):(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":n,onClick:s,className:o,children:d})}e.s(["ContactForm",()=>S],517649)},514471,e=>{"use strict";var t=e.i(848277),n=e.i(330668),r=e.i(696086);e.i(373754);var a=e.i(654212),s=e.i(196205);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function i({initialQuery:e="",className:l,anchorColumn:i=!1}
90){let[d,c]=(0,n.useState)(e),u=(0,r.useRouter)();return(0,n.useEffect)(()=>{c(e)},[e]),(0,t.jsx)("section",{className:(0,s.cn)("bg-midnight overflow-hidden @container",l),children:(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault();let t=d.trim();t&&u.push(`/search?q=${encodeURIComponent(t)}`)},role:"search","aria-label":"Site search",className:(0,s.cn)(i?"":"mx-auto max-w-site","flex items-center justify-between","flex-col items-start gap-[30px] px-5 py-10","@3xl:px-10 @3xl:py-12 @3xl:gap-[35px]",i?"@7xl:flex-row @7xl:items-center @7xl:py-[60px]":"@7xl:flex-row @7xl:items-center @7xl:px-[50px] @7xl:py-[60px]"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[30px] @3xl:gap-[35px] @7xl:gap-10 w-full @7xl:w-auto",children:[(0,t.jsx)("div",{className:"self-start",children:(0,t.jsx)("span",{className:"inline-block bg-blue p-[10px] font-heading text-h3 @7xl:text-h2 leading-none text-white",children:"Search results for            "})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[15px] @3xl:flex-row @3xl:items-center @3xl:gap-5 @7xl:gap-5 w-full @7xl:w-auto",children:[(0,t.jsx)("label",{htmlFor:"search-banner-input",className:"sr-only",children:"Search query"}),(0,t.jsx)("input",{id:"search-banner-input",type:"text",value:d,onChange:e=>c(e.target.value),placeholder:"What are you looking for?",className:(0,s.cn)("w-full @7xl:w-[500px] h-input-height","bg-grey-light border border-midnight-20 rounded-sm","px-5 font-body text-body @7xl:text-body-lg text-text-primary","placeholder:text-midnight-40","focus-visible:outline-none focus-visible:border-blue focus-visible:ring-2 focus-visible:ring-blue/30","transition-colors duration-150")}),(0,t.jsx)(a.Button,{type:"submit",variant:"light",className:"h-input-height self-stretch @3xl:self-auto",children:"Search"})]})]}),(0,t.jsx)("div",{className:"hidden @7xl:block shrink-0","aria-hidden":"true",children:(0,t.jsx)(o,{className:"w-[150px] h-[150px] text-blue"})})]})})}function o({className:e}){return(0,t.jsxs)("svg",{width:"150",height:"150",viewBox:"0 0 150 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M41.303 78.553L66.028 53.756L41.303 53.971L66.028 29.211",stroke:"currentColor",strokeWidth:"6.459",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M53.973 104.498C81.997 104.498 104.715 81.828 104.715 53.864C104.715 25.899 81.997 3.23 53.973 3.23C25.949 3.23 3.231 25.899 3.231 53.864C3.231 81.828 25.949 104.498 53.973 104.498Z",stroke:"white",strokeWidth:"6.459",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M97.789 85.048L144.152 131.34C147.633 134.82 147.633 140.419 144.152 143.899C140.672 147.38 135.038 147.38 131.593 143.899L84.87 97.249",stroke:"white",strokeWidth:"6.459",strokeLinecap:"round",strokeLinejoin:"round"})]})}try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var c=e.i(783828),u=e.i(519703),x=e.i(732613);try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function h({className:e}){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function m({label:e,name:r,options:a,value:l,onChange:i,placeholder:o="Select options",disabled:d=!1,disabledReason:c,required:u=!1,error:p,className:m}){let[f,g]=(0,n.useState)(!1),[b,y]=(0,n.useState)(-1),w=(0,n.useRef)(null),v=`field-${r}`,j=`${v}-error`,M=`${v}-label`,k=`${v}-listbox`,N=(0,n.useMemo)(()=>new Set(l),[l]),_=(0,n.useMemo)(()=>l.map(e=>a.find(t=>t.value===e)).filter(e=>!!e),[l,a]),C=(0,n.useMemo)(()=>a.filter(e=>!N.has(e.value)),[a,N]),L=(0,n.useCallback)(()=>{g(!1),y(-1)},[]);function E(e){N.has(e)||i([...l,e])}(0,n.useEffect)(()=>{b>=C.length&&y(0===C.length?-1:C.length-1)},[C.length,b]),(0,n.useEffect)(()=>{function e(e){w.current&&!w.current.contains(e.target)&&L()}return f&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f,L]);let S=_.length>0,B=a.length>0&&0===C.length;return(0,t.jsxs)("div",{className:(0,s.cn)("w-full",m),ref:w,children:[(0,t.jsxs)("label",{id:M,htmlFor:v,className:"flex font-body text-body-sm font-medium text-midnight mb-[8px]",children:[e,u&&(0,t.jsx)("span",{className:"text-error","aria-hidden":"true",children:"*"})]}),(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsxs)("div",{id:v,role:"combobox",tabIndex:d?-1:0,"aria-expanded":f,"aria-haspopup":"listbox","aria-controls":k,"aria-labelledby":M,"aria-required":u||void 0,"aria-invalid":!!p,"aria-describedby":p?j:void 0,"aria-activedescendant":f&&b>=0?`${k}-option-${b}`:void 0,"aria-disabled":d||void 0,title:d&&c?c:void 0,onClick:function(){d||g(e=>!e)},onKeyDown:function(e){if(!d)switch(e.key){case"Enter":case" ":e.preventDefault(),f&&b>=0&&b<C.length?E(C[b].value):(g(!0),y(e=>0===C.length?-1:e<0?0:e));break;case"ArrowDown":e.preventDefault(),f?C.length>0&&y(e=>Math.min(e+1,C.length-1)):(g(!0),y(C.length>0?0:-1));break;case"ArrowUp":e.preventDefault(),f&&C.length>0&&y(e=>Math.max(e-1,0));break;case"Home":f&&C.length>0&&(e.preventDefault(),y(0));break;case"End":f&&C.length>0&&(e.preventDefault(),y(C.length-1));break;case"Escape":e.preventDefault(),L();break;case"Tab":L()}},className:(0,s.cn)("w-full bg-white border rounded-sm min-h-input-height px-[20px] py-[10px] text-left","flex items-center gap-[8px]","font-body text-body cursor-pointer","transition-[border-color,box-shadow] duration-150 ease-in-out","focus:outline-none focus:border-blue focus:shadow-dropdown","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",f&&!d&&"border-blue shadow-dropdown",p?"border-red":!f&&"border-blue-20",d&&"opacity-50 cursor-not-allowed"),children:[S?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-[6px] flex-1 min-w-0",children:_.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-grey-light border border-midnight-20 rounded-sm text-text-primary text-body-sm",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("button",{type:"button","aria-label":`Remove ${e.label}`,disabled:d,onClick:t=>{if(t.stopPropagation(),!d){var n;n=e.value,i(l.filter(e=>e!==n))}},className:(0,s.cn)("inline-flex items-center justify-center w-4 h-4 rounded-sm","hover:text-blue focus-visible:outline-1 focus-visible:outline-blue",d&&"cursor-not-allowed"),children:(0,t.jsx)(h,{})})]},e.value))}):(0,t.jsx)("span",{className:"text-text-secondary font-normal flex-1",children:o}),(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-[8px] shrink-0",children:[S&&(0,t.jsx)("button",{type:"button","aria-label":"Clear all selections",disabled:d,onClick:e=>{e.stopPropagation(),d||i([])},className:(0,s.cn)("inline-flex items-center justify-center w-[24px] h-[24px] rounded-sm text-midnight-40","hover:text-blue focus-visible:outline-1 focus-visible:outline-blue",d&&"cursor-not-allowed"),children:(0,t.jsx)(h,{className:"w-[12px] h-[12px]"})}),(0,t.jsx)("span",{className:"text-midnight-40 inline-flex",children:(0,t.jsx)(x.default,{className:(0,s.cn)("w-[24px] h-[24px] transition-transform duration-150",f&&"rotate-180"),"aria-hidden":"true"})})]})]}),f&&!d&&(0,t.jsx)("ul",{id:k,role:"listbox","aria-labelledby":M,"aria-multiselectable":"true",className:"absolute top-[calc(100%+4px)] left-0 w-full bg-white border border-blue-20 rounded-sm shadow-dropdown z-10 p-[20px] flex flex-col gap-[15px]",children:B?(0,t.jsx)("li",{role:"presentation",children:(0,t.jsx)("p",{className:"text-text-secondary text-body-sm",children:"All options selected"})}):C.map((e,n)=>(0,t.jsx)("li",{id:`${k}-option-${n}`,role:"option","aria-selected":!1,className:(0,s.cn)("font-body text-body text-midnight cursor-pointer","hover:text-blue transition-colors duration-150",b===n&&"text-blue"),onClick:()=>E(e.value),onMouseEnter:()=>y(n),children:e.label},e.value))})]}),p&&(0,t.jsxs)("div",{id:j,className:"flex items-center gap-[4px]",role:"alert",children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9 1.5C4.86 1.5 1.5 4.86 1.5 9C1.5 13.14 4.86 16.5 9 16.5C13.14 16.5 16.5 13.14 16.5 9C16.5 4.86 13.14 1.5 9 1.5ZM9.75 12.75H8.25V11.25H9.75V12.75ZM9.75 9.75H8.25V5.25H9.75V9.75Z",fill:"#D91C16"})}),(0,t.jsx)("span",{className:"font-body text-body-sm text-error",children:p})]})]})}try{var f=window;f._sentryModuleMetadata=f._sentryModuleMetadata||{},f._sentryModuleMetadata[(new f.Error).stack]=Object.assign({},f._sentryModuleMetadata[(new f.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var g=e.i(529565);try{var b=window;b._sentryModuleMetadata=b._sentryModuleMetadata||{},b._sentryModuleMetadata[(new b.Error).stack]=Object.assign({},b._sentryModuleMetadata[(new b.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let y=[{value:"page",label:"Page"},{value:"article",label:"Article"},{value:"majorProject",label:"Major project"},{value:"document",label:"Document"}],w=[{value:"factSheets",label:"Fact Sheets"},{value:"policies",label:"Policies"},{value:"reports",label:"Reports"},{value:"regulatoryDocument",label:"Regulatory Document"},{value:"form",label:"Form"}];try{var v=window;v._sentryModuleMetadata=v._sentryModuleMetadata||{},v._sentryModuleMetadata[(new v.Error).stack]=Object.assign({},v._sentryModuleMetadata[(new v.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let j="Select Document under Content type to enable this filter";function M({filters:e,onFiltersChange:n,onOpenMobileSheet:r}){return(0,t.jsxs)("div",{className:"bg-grey-background",children:[(0,t.jsx)("div",{className:"md:hidden px-5 py-5",children:(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":!1,onClick:r,className:(0,s.cn)("w-full flex items-center justify-between","bg-white border border-blue-20 rounded-sm","h-input-height px-[20px] py-[15px] text-left","font-body text-body font-medium text-midnight","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue"),children:[(0,t.jsx)("span",{children:"Filters"}),(0,t.jsx)(x.default,{className:"w-[24px] h-[24px] text-midnight-40","aria-hidden":"true"})]})}),(0,t.jsx)("div",{className:"hidden md:block mx-auto max-w-site px-10 py-8 xl:px-[50px] xl:py-[40px]",children:(0,t.jsx)(k,{filters:e,onFiltersChange:n,layout:"row"})})]})}function k({filters:e,onFiltersChange:n,layout:r}){var a,l;let i,o,d=e.contentTypes.includes("document"),c=!d,u=(a=e.dateFrom,l=e.dateTo,i=_(a),o=_(l),i&&o?`${i} – ${o}`:i||o||""),x="row"===r?"flex-1 min-w-0":"";return(0,t.jsxs)("div",{className:"row"===r?"flex flex-col md:flex-row gap-[20px]":"flex flex-col gap-[20px]",children:[(0,t.jsx)("div",{className:x,children:(0,t.jsx)(m,{label:"Content type",name:"search-content-type",options:[...y],value:e.contentTypes,onChange:function(t){!t.includes("document")&&d?n({...e,contentTypes:t,documentCategories:[],dateFrom:"",dateTo:""}):n({...e,contentTypes:t})},placeholder:"All content types"})}),(0,t.jsx)("div",{className:x,children:(0,t.jsx)(m,{label:"Document category",name:"search-document-category",options:[...w],value:e.documentCategories,onChange:function(t){n({...e,documentCategories:t})},placeholder:"All document categories",disabled:c,disabledReason:j})}),(0,t.jsx)("div",{className:(0,s.cn)(x,c&&"opacity-50"),title:c?j:void 0,"aria-disabled":c||void 0,inert:c||void 0,children:(0,t.jsx)(g.DatePickerField,{label:"Date range",name:"search-date-range",mode:"range",placeholder:"Any date",value:u,onChange:function(t){let r=t.split(/\s*[–-]\s*/),a=N(r[0]),s=r[1]?N(r[1]):"";n({...e,dateFrom:a,dateTo:s})}})})]})}function N(e){if(!e)return"";let t=e.trim();if(!t)return"";let n=(0,u.parse)(t,"dd/MM/yyyy",new Date);return isNaN(n.getTime())?"":(0,c.format)(n,"yyyy-MM-dd")}function _(e){if(!e)return"";let t=(0,u.parse)(e,"yyyy-MM-dd",new Date);return isNaN(t.getTime())?"":(0,c.format)(t,"dd/MM/yyyy")}try{var C=window;C._sentryModuleMetadata=C._sentryModuleMetadata||{},C._sentryModuleMetadata[(new C.Error).stack]=Object.assign({},C._sentryModuleMetadata[(new C.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function L({open:e,onClose:r,filters:a,onFiltersChange:l}
90){let i=(0,n.useRef)(null),o=(0,n.useRef)(null),[d,c]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),p=(0,n.useRef)(e),h=(0,n.useCallback)(()=>{let e=o.current;o.current=null,e?.isConnected&&e.focus({preventScroll:!0})},[]);(0,n.useEffect)(()=>{let t=p.current;p.current=e,e&&!t?(o.current=document.activeElement instanceof HTMLElement?document.activeElement:null,c(!0),x(!1)):!e&&t&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches||window.matchMedia("(min-width: 768px)").matches?(c(!1),x(!1),h()):x(!0))},[e,h]);let m=(0,n.useCallback)(e=>{e.animationName.includes("slide-up-out")&&(c(!1),x(!1),h())},[h]);return((0,n.useEffect)(()=>{if(!e||!i.current)return;let t=i.current,n='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',a=t.querySelector(n);function s(e){if("Escape"===e.key)return void r();if("Tab"!==e.key)return;let a=t.querySelectorAll(n);if(0===a.length)return;let s=a[0],l=a[a.length-1];e.shiftKey&&document.activeElement===s?(e.preventDefault(),l.focus({preventScroll:!0})):e.shiftKey||document.activeElement!==l||(e.preventDefault(),s.focus({preventScroll:!0}))}return a&&a.focus({preventScroll:!0}),document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,r]),(0,n.useEffect)(()=>{if(!d)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[d]),d)?(0,t.jsxs)("div",{className:"fixed inset-0 z-40 md:hidden overflow-hidden","aria-hidden":u?"true":void 0,children:[(0,t.jsx)("button",{type:"button","aria-label":"Close filter panel",onClick:r,tabIndex:-1,className:(0,s.cn)("absolute inset-0 w-full h-full bg-midnight/50 cursor-default",u?"motion-safe:animate-fade-out":"motion-safe:animate-fade-in")}),(0,t.jsxs)("div",{ref:i,id:"search-filters-mobile-sheet",role:"dialog","aria-modal":"true","aria-labelledby":"search-filters-mobile-sheet-title",onAnimationEnd:m,className:(0,s.cn)("absolute left-0 right-0 bottom-0","bg-white rounded-t-[8px] shadow-sheet","flex flex-col max-h-[90vh] overflow-y-auto","p-5",u?"motion-safe:animate-slide-up-out pointer-events-none":"motion-safe:animate-slide-up-in"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,t.jsx)("h2",{id:"search-filters-mobile-sheet-title",className:"font-heading text-h5 text-midnight",children:"Filters"}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":"Close filter panel",className:"text-midnight hover:text-blue transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue",children:(0,t.jsx)(E,{})})]}),(0,t.jsx)(k,{filters:a,onFiltersChange:l,layout:"stack"})]})]}):null}function E(){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 6l12 12M18 6 6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}try{var S=window;S._sentryModuleMetadata=S._sentryModuleMetadata||{},S._sentryModuleMetadata[(new S.Error).stack]=Object.assign({},S._sentryModuleMetadata[(new S.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function B({className:e}){return(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("flex flex-col gap-[10px]",e),children:[(0,t.jsx)("h2",{className:"font-heading text-h3 xl:text-h2 text-midnight",children:"No results found."}),(0,t.jsx)("p",{className:"font-body text-body text-text-secondary",children:"No results to display."})]})}try{var A=window;A._sentryModuleMetadata=A._sentryModuleMetadata||{},A._sentryModuleMetadata[(new A.Error).stack]=Object.assign({},A._sentryModuleMetadata[(new A.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var P=e.i(498879);try{var $=window;$._sentryModuleMetadata=$._sentryModuleMetadata||{},$._sentryModuleMetadata[(new $.Error).stack]=Object.assign({},$._sentryModuleMetadata[(new $.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var H=window;H._sentryModuleMetadata=H._sentryModuleMetadata||{},H._sentryModuleMetadata[(new H.Error).stack]=Object.assign({},H._sentryModuleMetadata[(new H.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function I({currentPage:e,totalPages:n,onPageChange:r,className:a}){if(n<=1)return null;let l=function(e,t){if(t<=0)return[];if(1===t)return[1];let n=Math.min(Math.max(e,1),t),r=n-1,a=n+1;r<1&&(a+=1-r,r=1),a>t&&(r-=a-t,a=t),r=Math.max(r,1),a=Math.min(a,t);let s=new Set([1,t]);for(let e=r;e<=a;e++)s.add(e);let l=Array.from(s).sort((e,t)=>
90e-t),i=[];for(let e=0;e<l.length;e++){let t=l[e];if(e>0){let r=l[e-1];t-r>1&&i.push(r<n?"ellipsis-left":"ellipsis-right")}i.push(t)}return i}(e,n),i=e<=1,o=e>=n,d=(0,s.cn)("inline-flex h-[40px] w-[40px] items-center justify-center","border border-blue-20 font-body font-medium text-body-sm","transition-colors","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue");return(0,t.jsxs)("nav",{"aria-label":"Pagination",className:(0,s.cn)("flex items-center gap-[16px]",a),children:[(0,t.jsx)("button",{type:"button","aria-label":"Previous page",disabled:i,onClick:()=>{i||r(e-1)},className:(0,s.cn)(d,"bg-white text-midnight",i&&"cursor-not-allowed opacity-50"),children:(0,t.jsx)(P.default,{className:"h-[24px] w-[24px]","aria-hidden":"true"})}),l.map(n=>{if("ellipsis-left"===n||"ellipsis-right"===n)return(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-[40px] w-[40px] items-center justify-center font-body font-medium text-body-sm text-midnight",children:"…"},n);let a=n===e;return(0,t.jsx)("button",{type:"button","aria-label":`Page ${n}`,"aria-current":a?"page":void 0,onClick:()=>{a||r(n)},className:(0,s.cn)(d,a?"bg-grey-background text-blue":"bg-white text-midnight"),children:n},`page-${n}`)}),(0,t.jsx)("button",{type:"button","aria-label":"Next page",disabled:o,onClick:()=>{o||r(e+1)},className:(0,s.cn)(d,"bg-white text-midnight",o&&"cursor-not-allowed opacity-50"),children:(0,t.jsx)(P.default,{className:"h-[24px] w-[24px] rotate-180","aria-hidden":"true"})})]})}try{var O=window;O._sentryModuleMetadata=O._sentryModuleMetadata||{},O._sentryModuleMetadata[(new O.Error).stack]=Object.assign({},O._sentryModuleMetadata[(new O.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}var F=e.i(816506);try{var T=window;T._sentryModuleMetadata=T._sentryModuleMetadata||{},T._sentryModuleMetadata[(new T.Error).stack]=Object.assign({},T._sentryModuleMetadata[(new T.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function D({hit:e}){let{title:n,excerpt:r,contentTypeName:a,uri:l}=e._source,i=n??"",o=r??"",d=!!(l&&i),c=(0,s.cn)("font-heading font-bold","text-h5 xl:text-h4",d&&"transition-colors duration-150 hover:underline focus-visible:underline","focus-visible:outline-none","text-blue");return(0,t.jsxs)("article",{className:"flex w-full xl:max-w-[800px] flex-col gap-[10px]",children:[d?"document"===a?(0,t.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:c,children:i}):(0,t.jsx)(F.default,{href:l,className:c,children:i}):(0,t.jsx)("span",{className:c,children:i}),o&&(0,t.jsx)("p",{className:"font-body text-body text-text-secondary leading-[1.5]",children:o})]})}try{var V=window;V._sentryModuleMetadata=V._sentryModuleMetadata||{},V._sentryModuleMetadata[(new V.Error).stack]=Object.assign({},V._sentryModuleMetadata[(new V.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}try{var K=window;K._sentryModuleMetadata=K._sentryModuleMetadata||{},K._sentryModuleMetadata[(new K.Error).stack]=Object.assign({},K._sentryModuleMetadata[(new K.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let z=new Intl.NumberFormat("en-AU");function R({query:e,total:r,page:a,perPage:l,hits:i,loading:o=!1,error:d=null,onPageChange:c}){let u=e.trim(),x=u.length>0,p=i.length>0,h=l>0?Math.ceil(r/l):0,m=!o&&(!x||0===r),f=0===r?0:(a-1)*l+1,g=Math.min(a*l,r),b=1===r?"result":"result(s)",y=z.format(r);return(0,t.jsx)("section",{"aria-label":"Search results","aria-busy":!!o||void 0,className:"bg-white",children:(0,t.jsx)("div",{className:"mx-auto max-w-site px-5 md:px-10 xl:px-[50px] py-10 md:py-12 xl:py-[70px]",children:(0,t.jsx)("div",{className:"w-full",children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:"flex flex-col",children:(0,t.jsx)(Z,{})}),p&&(0,t.jsx)("div",{className:"mt-[40px]",children:(0,t.jsx)("div",{className:(0,s.cn)("flex flex-col gap-[20px] opacity-60 pointer-events-none","transition-opacity"),children:i.map((e,r)=>(0,t.jsxs)(n.Fragment,{children:[r>0&&(0,t.jsx)("hr",{className:"border-t border-blue-20 m-0"}),(0,t.jsx)(D,{hit:e})]},e._id))})})]}
90):m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B,{}),d&&(0,t.jsx)(U,{message:d})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:"flex flex-col",children:[(0,t.jsxs)("h2",{className:"font-heading font-bold text-h3 md:text-h3 xl:text-h2 text-midnight",children:["Your search for “",u,"” matched"," ",y," ",b,"."]}),r>0&&(0,t.jsxs)("p",{className:"font-body text-body text-text-secondary mt-[20px]",children:["Showing results ",f," to ",g,"."]})]}),d&&(0,t.jsx)(U,{message:d}),(0,t.jsx)("div",{className:"mt-[40px]",children:(0,t.jsx)("div",{className:"flex flex-col gap-[20px]",children:i.map((e,r)=>(0,t.jsxs)(n.Fragment,{children:[r>0&&(0,t.jsx)("hr",{className:"border-t border-blue-20 m-0"}),(0,t.jsx)(D,{hit:e})]},e._id))})}),h>1&&(0,t.jsx)("div",{className:"mt-[40px]",children:(0,t.jsx)(I,{currentPage:a,totalPages:h,onPageChange:c})})]})})})})}function Z(){let[e,r]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=setInterval(()=>{r(e=>(e+1)%4)},350);return()=>clearInterval(e)},[]);let a=".".repeat(e);return(0,t.jsxs)("h2",{className:"font-heading font-bold text-h3 md:text-h3 xl:text-h2 text-midnight","aria-live":"polite",children:["Searching",(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block min-w-[1.5ch] text-left",children:a})]})}function U({message:e}){return(0,t.jsx)("div",{role:"alert",className:"mt-[20px] font-body text-body text-red",children:e||"Search is temporarily unavailable. Please try again."})}e.i(639057);try{var W=window;W._sentryModuleMetadata=W._sentryModuleMetadata||{},W._sentryModuleMetadata[(new W.Error).stack]=Object.assign({},W._sentryModuleMetadata[(new W.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}class q extends Error{status;constructor(e,t){super(t??`Search request failed with status ${e}`),this.name="SearchClientError",this.status=e}}async function G(e,t={}){let n={query:e.query,filters:e.filters?{contentTypes:e.filters.contentTypes,documentCategories:e.filters.documentCategories,dateFrom:e.filters.dateFrom||void 0,dateTo:e.filters.dateTo||void 0}:void 0,page:e.page??1,perPage:e.perPage??6},r=await fetch("https://www.powercor.com.au/api/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),signal:t.signal});if(!r.ok)throw new q(r.status);return await r.json()}try{var J=window;J._sentryModuleMetadata=J._sentryModuleMetadata||{},J._sentryModuleMetadata[(new J.Error).stack]=Object.assign({},J._sentryModuleMetadata[(new J.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}let X={contentTypes:[],documentCategories:[],dateFrom:"",dateTo:""};try{var Y=window;Y._sentryModuleMetadata=Y._sentryModuleMetadata||{},Y._sentryModuleMetadata[(new Y.Error).stack]=Object.assign({},Y._sentryModuleMetadata[(new Y.Error).stack],{"_sentryBundlerPluginAppKey:cppc-frontend":!0})}catch(e){}function Q({anchorColumn:e=!1}){let a=(0,r.useRouter)(),s=((0,r.useSearchParams)().get("q")??"").trim(),[l,o]=(0,n.useState)(s),[d,c]=(0,n.useState)(X),[u,x]=(0,n.useState)(1),[p,h]=(0,n.useState)([]),[m,f]=(0,n.useState)(0),[g,b]=(0,n.useState)(!1),[y,w]=(0,n.useState)(null),[v,j]=(0,n.useState)(!1),k=(0,n.useRef)(null),N=(0,n.useRef)(null),_=(0,n.useRef)("query");(0,n.useEffect)(()=>{o(e=>e===s?e:(_.current="query",s)),x(e=>s===l?e:1)},[s]);let C=(0,n.useCallback)(async e=>{k.current?.abort();let t=new AbortController;k.current=t,b(!0),w(null);try{let n=await G({query:e.q,filters:e.filters,page:e.page,perPage:6},{signal:t.signal});if(t.signal.aborted)return;h(n.hits.hits),f(n.hits.total.value)}catch(e){if(t.signal.aborted||e instanceof DOMException&&"AbortError"===e.name)return;w((e instanceof q,"Search is temporarily unavailable. Please try again.")),h([]),f(0)}finally{t.signal.aborted||b(!1)}},[]);(0,n.useEffect)(()=>{if(N.current&&(clearTimeout(N.current),N.current=null),l!==s)return;if(""===l.trim()){k.current?.abort(),h([]),f(0),w(null),b(!1);return}let e=_.current,t={q:l,filters:d,page:u};return"filters"===e?N.current=setTimeout(()=>{C(t)},200):C(t),()=>{N.current&&(clearTimeout(N.current),N.current=null)}},[l,s,d,u,C]),(0,n.useEffect)(()=>()=>{k.current?.abort(),N.current&&clearTimeout(N.current)},[]);let E=(0,n.useCallback)(e=>{_.current="filters",c(e),x(1)},[]),S=(0,n.useCallback)(e=>{_.current="page",x(e)},[]),B=(0,n.useCallback)(()=>{j(!0)},[]),A=(0,n.useCallback)(()=>{j(!1)},[]);return(0,n.useEffect)(()=>{let e=new URL(window.location.href);(e.searchParams.get("q")??"")!==l&&(l?e.searchParams.set("q",l):e.searchParams.delete("q"),a.replace(`${e.pathname}${e.search}`,{scroll:!1}))},[l,a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i,{initialQuery:l,anchorColumn:e}),(0,t.jsx)(M,{filters:d,onFiltersChange:E,onOpenMobileSheet:B}),(0,t.jsx)(L,{open:v,onClose:A,filters:d,onFiltersChange:E}),(0,t.jsx)(R,{query:l,total:m,page:u,perPage:6,hits:p,loading:g,error:y,onPageChange:S})]})}function ee({anchorColumn:e=!1}={}){return(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(Q,{anchorColumn:e})})}e.s(["SearchResults",()=>ee],514471)},472411,e=>{e.v(t=>Promise.all(["static/chunks/95651eff01e17178.js"].map(t=>e.l(t))).then(()=>t(234108)))}]);
91
92//# debugId=3209bfe0-a36f-9865-e248-1bb9279b0b62

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.