1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7675],{20246:e=>{e.exports={locationTile:"LocationSelector_locationTile__ZBWvs",emergencyIcon:"LocationSelector_emergencyIcon__wUJdX",advice:"LocationSelector_advice__ZRRDQ",watchandact:"LocationSelector_watchandact__DIwjv",emergency:"LocationSelector_emergency__ariBH",locationTitle:"LocationSelector_locationTitle__cWfw2",subtle:"LocationSelector_subtle__2vxXO",selectLocation:"LocationSelector_selectLocation__g8q3q",dark:"LocationSelector_dark__oNDft",locationList:"LocationSelector_locationList__LtRVy",inputContainer:"LocationSelector_inputContainer__8v5l7",inputAndInstruction:"LocationSelector_inputAndInstruction__V_u7p",searchBox:"LocationSelector_searchBox__s7I3B",icon:"LocationSelector_icon__10ch_",textInput:"LocationSelector_textInput__E0NIX",instructions:"LocationSelector_instructions__9wC7J",listItem:"LocationSelector_listItem__fIQov","focus-visible":"LocationSelector_focus-visible__uYqy_","js-focus-visible":"LocationSelector_js-focus-visible__cmtFP",recentsList:"LocationSelector_recentsList__z6DrP",clearHistory:"LocationSelector_clearHistory__SKQav",container:"LocationSelector_container__iCxBV",inlineIcon:"LocationSelector_inlineIcon__zsxTS",subHeading:"LocationSelector_subHeading__q8xBN",descriptiveText:"LocationSelector_descriptiveText___dT8r",noLocation:"LocationSelector_noLocation__8LM74",toolbar:"LocationSelector_toolbar__m0Aly",lastUpdated:"LocationSelector_lastUpdated__WfAq7",listText:"LocationSelector_listText__4wA0E",highlighted:"LocationSelector_highlighted__HZ2J9"}},27787:(e,t,n)=>{"use strict";n.d(t,{l:()=>g});var o=n(77766),i=n.t(o,2),l=n(87503);let c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t.forEach(t=>{t&&t(e,...o)})}},r=[],a=(e,t)=>{switch(t.type){case"selectItem":return{...e,selectedItem:t.selectedItem,isOpen:!1,inputValue:t.inputValue};case"setSearchValue":return{...e,searchValue:t.searchValue};case"setInputValue":return{...e,inputValue:t.inputValue,isOpen:!0,highlightedItem:t.highlightedItem,selectedItem:null};case"highlightItem":case"setHighlightedItem":return{...e,highlightedItem:t.highlightedItem};case"clearSelection":return{...e,selectedItem:null,inputValue:"",searchValue:"",highlightedItem:t.highlightedItem,isOpen:!1};case"toggleMenu":return{...e,isOpen:t.isOpen};default:throw Error()}},{useState:s,useEffect:u}=i,{useEffect:h,useLayoutEffect:d,useReducer:_}=i,g=e=>{let t,{debounceTime:n=300,id:o,clearOnBlur:i=!1,itemToString:g,onSelection:m,inputInitialValue:p,autoSelection:I}=e,[v,L]=_(a,{highlightedItem:I?0:-1,selectedItem:null,inputValue:p||"",searchValue:"",isOpen:!1}),{highlightedItem:f,selectedItem:y,inputValue:b,searchValue:x,isOpen:w}=v,S="".concat(o,"-menu"),j="".concat(o,"-label"),C="".concat(o,"-input"),E=e=>"".concat(o,"-item-").concat(e),V=[],A=e=>{L({type:"selectItem",selectedItem:e,inputValue:g(e)}),m&&m(e)},T=()=>{L({type:"clearSelection",highlightedItem:I?0:-1})};h(()=>{r=[]},[b]),h(()=>{t=(V=r).length}),h(()=>{if(document){let e=e=>{let{target:t}=e,n=document.getElementById(C),o=document.getElementById(S);n&&o&&![n,o].some(e=>e&&e===t||e&&e.contains&&t instanceof Node&&e.contains(t))&&(y||!i?L({type:"toggleMenu",isOpen:!1}):T())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}},[y]),d(()=>{let e=(e=>{if(document)return document.getElementById(E(e))})(f),t=document.getElementById(S);e&&(0,l.A)(e,{boundary:t,block:"nearest",scrollMode:"if-needed"})},[f]);let B={ArrowDown(e){e.preventDefault(),!1===w&&t&&L({type:"toggleMenu",isOpen:!0}),L({type:"highlightItem",highlightedItem:(f+1)%t})},ArrowUp(e){e.preventDefault(),L({type:"highlightItem",highlightedItem:f-1<0?t-1:f-1})},Enter(){let e=V[f];e&&A(e)},Escape(){T()}},N=e=>{var t;let n="Down"===(t=e.key)||"ArrowDown"===t?"ArrowDown":"Up"===t||"ArrowUp"===t?"ArrowUp":"Enter"===t||"Tab"===t?"Enter":"Esc"===t||"Escape"===t?"Escape":t;B[n]&&B[n](e)},D=function(e){let{isOpen:t,labelId:n,menuId:o}=e;return e=>({role:"combobox","aria-expanded":t,"aria-haspopup":"listbox","aria-owns":t?o:void 0,"aria-labelledby":n,...e})}({isOpen:w,labelId:j,menuId:S}),M=function(e){let{inputId:t,labelId:n}=e;return e=>({htmlFor:t,id:n,...e})}({inputId:C,labelId:j}),k=function(e){let{labelId:t,menuId:n}=e;return e=>({role:"listbox","aria-labelledby":e&&e["aria-label"]?void 0:t,id:n,...e})}({labelId:j,menuId:S}),O=((e,t)=>
1{let[n,o]=s(e);return u(()=>{let n=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(n)}},[e]),n})(b,n);return h(()=>{L({type:"setSearchValue",searchValue:O})},[O]),{getLabelProps:M,getMenuProps:k,getInputProps:function(e){let{inputId:t,menuId:n,labelId:o,inputValue:i,isOpen:l,highlightedItem:r,getItemId:a,handleKeyDown:s,inputHandleChange:u}=e;return function(){let{onKeyDown:e,onChange:h,...d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_={onKeyDown:c(e,s),onChange:c(h,u)};return{"aria-autocomplete":"both","aria-activedescendant":l&&"number"==typeof r&&r>=0?a(r):void 0,"aria-controls":l?n:void 0,"aria-labelledby":o,autoComplete:"off",value:i,id:t,..._,...d}}}({inputId:C,menuId:S,labelId:j,inputValue:b,isOpen:w,highlightedItem:f,getItemId:E,handleKeyDown:N,inputHandleChange:e=>{L({type:"setInputValue",inputValue:e.target.value,highlightedItem:I?0:-1})}}),getItemProps:(e=>{let{highlightedItem:t,handleItemMouseMove:n,handleItemClick:o,handleKeyDown:i,getItemId:l}=e;return e=>{let{item:a,index:s,onClick:u,onKeyDown:h,onMouseMove:d,..._}=e;r[s]=a;let g={onKeyDown:c(h,i),onMouseMove:c(d,()=>n(s)),onClick:c(u,()=>o(s))};return{"aria-selected":t===s,id:l(s),role:"option",...g,..._}}})({getItemId:E,highlightedItem:f,handleItemMouseMove:e=>{e!==f&&L({type:"setHighlightedItem",highlightedItem:e})},handleItemClick:e=>{A(V[null!=e?e:f])},handleKeyDown:N}),getContainerProps:D,selectItem:A,clearSelection:T,setHighlightedItem:e=>{L({type:"setHighlightedItem",highlightedItem:e})},highlightedItem:f,searchValue:x,isOpen:w,selectedItem:y}}},36600:(e,t,n)=>{"use strict";n.d(t,{m:()=>l});var o=n(49222),i=n(58313);let l=e=>{let t=(0,i.e)(e);return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em","data-component":"Dropdown",...t,children:(0,o.jsx)("path",{fill:"currentColor",d:"m12 15-5-5h10l-5 5Z"})})}},60144:(e,t,n)=>{"use strict";n.d(t,{s:()=>_});var o=n(49222),i=n(11230),l=n.n(i),c=n(68716),r=n(32142),a=n(62048),s=n(94090),u=n(20246),h=n.n(u);let d=e=>(0,o.jsxs)("p",{className:h().inlineIcon,children:[(0,o.jsx)(c.$,{size:20,className:h().icon,"aria-hidden":"true"}),e.message]}),_=e=>{var t,n,i;let{loading:c,error:u,data:_,getMenuProps:g,getItemProps:m,highlightedItem:p}=e;if(c)return(0,o.jsx)(r.R,{className:h().listItem,label:"Loadingâ¦",variant:"brand",size:16,hideLabel:!1});if(u)return(0,o.jsx)(a.B,{type:"unstyled",children:[(0,o.jsx)(s.c,{type:"unstyled",children:"There was an error getting locations"},"location-selector-error")]});if(null==_||null==(t=_.locations)?void 0:t.cleared)return null;if(null==_||null==(i=_.locations)||null==(n=i.byLocalitySearch)?void 0:n.length){let e=_.locations.byLocalitySearch.map(e=>({id:e.id,title:e.suburb,state:e.state.id,subtitle:"".concat(e.state.id," ").concat(e.postcode),region:e.abcRegion.region,regionName:e.abcRegion.regionName}));return(0,o.jsx)("ul",{...g(),className:h().locationList,"data-component":"LocationList",children:e.map((e,t)=>{let n=m({index:t,item:e});return(0,o.jsxs)("li",{...n,className:l()(h().listItem,{[h().highlighted]:p===t}),children:[(0,o.jsx)("strong",{children:e.title}),","," ",e.subtitle.toUpperCase()]},e.id)})})}return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{icon:"error",message:"Sorry, no locations found"}),(0,o.jsx)("p",{children:"Please try the following:"}),(0,o.jsx)(a.B,{className:h().listText,children:[(0,o.jsx)(s.c,{children:"Make sure it is spelt correctly"},"location-selector-help-1"),(0,o.jsx)(s.c,{children:"Try a different suburb or postcode"},"location-selector-help-2"),(0,o.jsx)(s.c,{children:"Check that the location is in Australia"},"location-selector-help-3")]})]})}},68716:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var o=n(49222),i=n(58313);let l=e=>{let t=(0,i.e)(e);return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em","data-component":"Error",...t,children:[(0,o.jsx)("path",{fill:"currentColor",d:"M13 17h-2v-2h2v2Z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M13 13h-2V7h2v6Z"}),(0,o.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",clipRule:"evenodd"})]})}},90901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class o{static get instance(){return this._instanceObj||(this._instanceObj=new o),this._instanceObj}get currentCount(){return this._count}incrementCount(){return this._count%this._maxCount==0&&(this._count=0),++this._count}constructor(){this._count=0,this._maxCount=1e6}}let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dls";return"".concat(e,"-id-").concat(o.instance.incrementCount())}}}]);
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.