PageSourceSearch

https://www.meridianenergy.co.nz/dist/chunk-RegionSelector-567faedacb6c8608d503.js

js meridianenergy.co.nz collected 2026-10-02 05:19:29 UTC 2,661 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmeridianenergy=self.webpackChunkmeridianenergy||[]).push([[332],{748(e,i,l){l.r(i),l.d(i,{default:()=>m});var n=l(5901),o=l(4730),t=l(5299),a=l(6942),s=l.n(a),r=l(5303);const d=({label:e,labelPosition:i,id:l,options:o,size:t,textAlign:a,selectedOption:d,assistiveLabel:c,theme:m,onChange:g})=>{const p="small"===t,u="left"===i,h=(0,n.Y)("div",{className:"dropdown__icon",children:(0,n.Y)(r.I,{type:"ChevronDown",color:"blue-1"})}),_=o.map(e=>(0,n.Y)("option",{id:e.id,value:e.value,children:e.label},e.id));return(0,n.FD)("div",{className:s()("dropdown",m&&`t-${m}`,{"dropdown--inline":u}),children:[(0,n.Y)("label",{className:s()("dropdown__label",{"dropdown__label--inline":u}),htmlFor:l,children:e}),(0,n.FD)("div",{className:"dropdown__border",children:[(0,n.Y)("span",{className:"u-hide-visually",children:c}),(0,n.Y)("select",{name:l,id:l,value:d,onChange:e=>{g(e.target.value)},className:s()("dropdown__selectbox",{"dropdown__selectbox--small":p,"dropdown__selectbox--center":"center"===a}),children:_}),h]})]})},c=({title:e,theme:i,data:l,dropdownLabel:o,dropdownAssistiveLabel:a})=>{const r=l.map(e=>e.dropdown),[c,m]=(0,t.useState)(r[0].value),g=l.find(e=>e.dropdown.value===c);return(0,n.FD)("div",{className:s()("split-image-layout","region-selector",i&&`t-${i} t-${i}--bg`),children:[(0,n.Y)("div",{className:"content-container",children:(0,n.FD)("div",{className:"split-image-layout__content-left region-selector__content",children:[(0,n.Y)("h2",{className:"region-selector__title",children:e}),(0,n.Y)(d,{label:o,labelPosition:"left",id:"region-selector-dropdown",options:r,selectedOption:c,theme:i,assistiveLabel:a,onChange:e=>m(e)}),(null==g?void 0:g.description)&&(0,n.Y)("div",{className:"region-selector__description",dangerouslySetInnerHTML:{__html:g.description}})]})}),(0,n.Y)("div",{className:"split-image-layout__content-right region-selector__img-wrapper",children:(0,n.Y)("div",{className:"split-image-layout__angled split-image-layout__angled--clockwise",children:(null==g?void 0:g.img)&&(0,n.FD)("picture",{children:[g.img[0]&&(0,n.Y)("source",{srcSet:g.img[0],media:"(min-width: 1700px)"}),g.img[1]&&(0,n.Y)("source",{srcSet:g.img[1],media:"(min-width: 1025px)"}),g.img[2]&&(0,n.Y)("source",{srcSet:g.img[2],media:"(min-width: 769px)"}),g.img[3]&&(0,n.Y)("source",{srcSet:g.img[3],media:"(min-width: 450px)"}),(g.img[4]||g.img[1])&&(0,n.Y)("img",{className:"split-image-layout__image",src:g.img[4]||g.img[1],alt:g.imgAlt,loading:"lazy"})]})})})]})},m=(e,i)=>{if(!i)throw Error("No RegionSelector data found");const l=(0,o.Hr)(e);return l.render((0,n.Y)(c,Object.assign({},i))),()=>{l.unmount()}}}}]);

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.