!function(e){function t(t){for(var i,o,l=t[0],s=t[1],c=t[2],h=0,d=[];h<l.length;h++)o=l[h],a[o]&&d.push(a[o][0]),a[o]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);for(u&&u(t);d.length;)d.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,l=1;l<n.length;l++){var s=n[l];0!==a[s]&&(i=!1)}i&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var i={},a={0:0},r=[];function o(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var l=window.customWebpackJsonp=window.customWebpackJsonp||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var u=s;r.push([228,1]),n()}({228:function(e,t,n){"use strict";n.r(t);n(16),n(21),n(22),n(23),n(19),n(48),n(13),n(24),n(25),n(26),n(20),n(50),n(51);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"getRealElementHeight",value:function(e){if(void 0===e)return 0;var t=e.cloneNode(!0);e.parentElement.appendChild(t);var n=t.getBoundingClientRect().height;return n<=0&&(t.style.display="block",t.style.height="auto",n=t.getBoundingClientRect().height),t.parentElement.removeChild(t),n}},{key:"slideUp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease";if(void 0!==e&&void 0!==e.style){var i=e.getBoundingClientRect().height;return e.style.height="".concat(i,"px"),e.style.overflow="hidden",e.style.display="block",e.style.transition="height ".concat(n," ").concat(t,"ms"),e.transitioningUp=!0,new Promise(function(t,n){requestAnimationFrame(function(){e.style.height="0px"});e.addEventListener("transitionend",function n(i){"height"===i.propertyName&&(e.transitioningDown||(e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("display"),e.style.removeProperty("transition")),e.transitioningUp=!1,e.removeEventListener("transitionend",n),t(!0))})})}}},{key:"slideDown",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease";if(void 0!==t&&void 0!==t.style){var a=e.getRealElementHeight(t);return new Promise(function(e,r){requestAnimationFrame(function(){t.style.height="0px",t.style.overflow="hidden",t.style.display="block",t.style.transition="height ".concat(i," ").concat(n,"ms"),t.transitioningDown=!0,requestAnimationFrame(function(){t.style.height="".concat(a,"px")});t.addEventListener("transitionend",function n(i){"height"===i.propertyName&&(t.transitioningUp||(t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition")),t.transitioningDown=!1,t.removeEventListener("transitionend",n),e(!0))})})})}}}],(n=null)&&i(t.prototype,n),a&&i(t,a),e}();function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"element",void 0),l(this,"attrs",{triggerChild:"aria-controls"}),t&&(this.element=t,this.bindings())}var t,n,i;return t=e,(n=[{key:"bindings",value:function(){var t=this;r(this.element.querySelectorAll(e.selectors.trigger)).forEach(function(e){e.addEventListener("click",function(n){var i=document.getElementById(e.getAttribute(t.attrs.triggerChild));i.hasAttribute("hidden")?(e.setAttribute("aria-expanded",!0),i.removeAttribute("hidden"),a.slideDown(i,600,"cubic-bezier(0.165, 0.84, 0.44, 1)")):(e.setAttribute("aria-expanded",!1),i.setAttribute("hidden",""),a.slideUp(i,600,"cubic-bezier(0.165, 0.84, 0.44, 1)"))})})}}])&&o(t.prototype,n),i&&o(t,i),e}();l(s,"selectors",{component:"[data-accordion]",trigger:"[data-accordion-trigger]"});n(52),n(112),n(113);var c=n(60),u=n.n(c);function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"aspectRatioSizes",[{minWidth:0,maxWidth:500,outputHeight:600},{minWidth:500,maxWidth:1/0,outputHeight:700}]),p(this,"vizTextWrapOffset",20),p(this,"vizImage",void 0),p(this,"vizContainer",void 0),p(this,"loadingSpinner",void 0),p(this,"vizIframeContainer",void 0),p(this,"vizName",void 0),p(this,"stateDropdown",void 0),p(this,"viz",void 0),p(this,"vizSize",void 0),p(this,"workbook",void 0),p(this,"activeSheet",void 0),p(this,"tempName",void 0),p(this,"previousResizeWidth",void 0),p(this,"localStoragePanel",void 0),p(this,"options",void 0),p(this,"vizInitialised",void 0),this.vizImage=t,this.vizContainer=this.vizImage.parentNode,this.loadingSpinner=this.vizContainer.querySelector(e.selectors.spinner),this.vizIframeContainer=this.vizContainer.querySelector(e.selectors.vizIframeWrapper),this.vizName=this.vizIframeContainer.getAttribute("data-js-viz-name"),this.stateDropdown=document.querySelector(e.selectors.stateSelect);var n=localStorage.getItem("initialPanels"),i=this;if(this.vizInitialised=!1,null!=n){var a=JSON.parse(n);this.localStoragePanel=a.filter(function(e){return e.id==window.vizId}).length?a.filter(function(e){return e.id==window.vizId})[0]:null,null!=this.localStoragePanel&&(this.stateDropdown.value=this.localStoragePanel.state?this.localStoragePanel.state:"Australia",this.localStoragePanel.state&&this.updateVizImage())}this.options={hideToolbar:!0,hideTabs:!0,width:"100%",height:this.getHeightForBreakpoint(this.vizIframeContainer.getBoundingClientRect().width)+this.vizTextWrapOffset,MeasureName:this.vizName,filterName1:this.localStoragePanel&&this.localStoragePanel.filterName1?this.localStoragePanel.filterName1:"",filterName2:this.localStoragePanel&&this.localStoragePanel.filterName2?this.localStoragePanel.filterName2:"",filterName3:this.localStoragePanel&&this.localStoragePanel.filterName3?this.localStoragePanel.filterName3:"",filterValue1:this.localStoragePanel&&this.localStoragePanel.filterValue1?this.localStoragePanel.filterValue1:"",filterValue2:this.localStoragePanel&&this.localStoragePanel.filterValue2?this.localStoragePanel.filterValue2:"",filterValue3:this.localStoragePanel&&this.localStoragePanel.filterValue3?this.localStoragePanel.filterValue3:"",Master_filter:this.stateDropdown.value,fixedSize:!1,iframeSizedToWindow:!0,onFirstInteractive:function(){i.workbook=i.viz.getWorkbook(),i.activeSheet=i.workbook.getActiveSheet(),i.viz.addEventListener(tableau.TableauEventName.CUSTOM_VIEW_LOAD,i.onViewLoad.bind(i)),i.viz.addEventListener(tableau.TableauEventName.FILTER_CHANGE,i.onFilterChange.bind(i))}},this.bindings()}var t,n,i;return t=e,(n=[{key:"bindings",value:function(){var t=this;this.localStoragePanel&&this.localStoragePanel.isInteractive&&this.initialiseViz(),this.vizContainer.addEventListener("click",function(e){t.initialiseViz()}),h(document.querySelectorAll(e.selectors.stateSelect)).forEach(function(e){e.addEventListener("change",function(e){t.vizInitialised?(t.viz.dispose(),t.options.Master_filter=e.target.value,t.viz=new tableau.Viz(t.vizIframeContainer,window.vizUrl,t.options)):(t.updateVizImage(e.target.value),t.options.Master_filter=e.target.value)})})}},{key:"updateVizImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=window.innerWidth<768?"Mobile":"Desktop";fetch(getImageEndPoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vizCode:window.vizId,selectedState:t||this.localStoragePanel.state,sourceType:n})}).then(function(e){return e.json()}).then(function(t){t.image&&t.image.length&&(e.vizImage.src=t.image)})}},{key:"updatePrintImage",value:function(){var e=window.vizUrlPlain+".png?Master_filter=".concat(this.options.Master_filter);this.localStoragePanel.filterName1&&this.localStoragePanel.filterValue1&&(e+="&".concat(this.localStoragePanel.filterName1,"=").concat(this.localStoragePanel.filterValue1)),this.localStoragePanel.filterName2&&this.localStoragePanel.filterValue2&&(e+="&".concat(this.localStoragePanel.filterName2,"=").concat(this.localStoragePanel.filterValue2)),this.localStoragePanel.filterName3&&this.localStoragePanel.filterValue3&&(e+="&".concat(this.localStoragePanel.filterName3,"=").concat(this.localStoragePanel.filterValue3)),this.vizImage.src=encodeURI(e)}},{key:"getHeightForBreakpoint",value:function(e){var t=this.aspectRatioSizes.filter(function(t){return e>=t.minWidth&&e<t.maxWidth});return t.length?t[0].outputHeight:0}},{key:"onViewLoad",value:function(e){for(var t=this,n=this.activeSheet.getWorksheets()?this.activeSheet.getWorksheets().length:0,i=0;i<n;i++)this.localStoragePanel&&this.localStoragePanel.filterName1&&this.localStoragePanel.filterName1.length>0&&this.activeSheet.getWorksheets()[i].applyFilterAsync(this.localStoragePanel.filterName1,this.localStoragePanel.filterValue1,tableau.FilterUpdateType.REPLACE),this.localStoragePanel&&this.localStoragePanel.filterName2&&this.localStoragePanel.filterName2.length>0&&this.activeSheet.getWorksheets()[i].applyFilterAsync(this.localStoragePanel.filterName2,this.localStoragePanel.filterValue2,tableau.FilterUpdateType.REPLACE),this.localStoragePanel&&this.localStoragePanel.filterName3&&this.localStoragePanel.filterName3.length>0&&this.activeSheet.getWorksheets()[i].applyFilterAsync(this.localStoragePanel.filterName3,this.localStoragePanel.filterValue3,tableau.FilterUpdateType.REPLACE);this.loadingSpinner.style.display="none",this.vizIframeContainer.classList.remove("c-iframe--loading");var a=this.vizIframeContainer.getBoundingClientRect().width,r=this.getHeightForBreakpoint(a);this.activeSheet.changeSizeAsync({behavior:"EXACTLY",minSize:{width:a,height:r}}).then(function(e){t.viz.setFrameSize("100%",r+t.vizTextWrapOffset)})}},{key:"onFilterChange",value:function(e){var t=this;e.getFilterAsync().then(function(e){if(t.localStoragePanel){var n=-1,i=e.getFieldName(),a="";i===t.localStoragePanel.filterName1?n=1:i===t.localStoragePanel.filterName2?n=2:i===t.localStoragePanel.filterName3&&(n=3),-1===n&&(n=1,t.localStoragePanel.filterName1=i);var r=e.getAppliedValues();null!==r&&null!==r.length&&r.length>0&&(a=r[0].formattedValue,1===n||-1===n&&!t.localStoragePanel.filterName1||0===t.localStoragePanel.filterName1.length?(t.localStoragePanel.filterName1=i,t.localStoragePanel.filterValue1=a):2===n||-1===n&&!t.localStoragePanel.filterName2||0===t.localStoragePanel.filterName2.length?(t.localStoragePanel.filterName2=i,t.localStoragePanel.filterValue2=a):(3===n||-1===n&&!t.localStoragePanel.filterName3||0===t.localStoragePanel.filterName3.length)&&(t.localStoragePanel.filterName3=i,t.localStoragePanel.filterValue3=a)),t.updatePrintImage()}})}},{key:"initialiseViz",value:function(){var e=this;this.loadingSpinner.style.display="flex",this.vizIframeContainer.classList.add("c-iframe--loading"),this.vizInitialised=!0;var t=this.vizIframeContainer.getBoundingClientRect().width;this.getHeightForBreakpoint(t);this.vizImage.style.display="none",this.previousResizeWidth=t,this.viz=new tableau.Viz(this.vizIframeContainer,window.vizUrl,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){p(e,t,n[t])})}return e}({},this.options,{height:t+this.vizTextWrapOffset})),this.vizContainer.classList.add("c-chart-expanded__chart__inner--intialised");var n=!1;window.addEventListener("resize",u()(function(t){if(!n){n=!0;var i=e.vizIframeContainer.getBoundingClientRect().width;if(e.previousResizeWidth<500&&i>=500||e.previousResizeWidth>=500&&i<500)return e.viz.dispose(),e.viz=new tableau.Viz(e.vizIframeContainer,window.vizUrl,e.options),n=!1,void(e.previousResizeWidth=i);var a=e.getHeightForBreakpoint(i);e.activeSheet.changeSizeAsync({behavior:"EXACTLY",minSize:{width:i,height:a}}).then(function(t){n=!1,e.previousResizeWidth=i,e.viz.setFrameSize("100%",a+e.vizTextWrapOffset)})}},200))}}])&&d(t.prototype,n),i&&d(t,i),e}();function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}p(f,"selectors",{vizImage:"[data-single-viz]",vizIframeWrapper:"[data-iframe-wrapper]",stateSelect:"[data-js-state-select]",spinner:"[data-js-spinner]"});var v=function(){function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i={backToTop:"[data-back-to-top]",shareBtn:"[data-js-add-this]"},(n="selectors")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,this.bindings()}var t,n,i;return t=e,(n=[{key:"bindings",value:function(){m(document.querySelectorAll(this.selectors.backToTop)).forEach(function(e){e.addEventListener("click",function(e){"scrollBehavior"in document.documentElement.style?window.scrollTo({top:0,left:0,behavior:"smooth"}):window.scrollTo(0,0)})}),m(document.querySelectorAll(this.selectors.shareBtn)).forEach(function(e){e.addEventListener("click",function(e){e.target.parentNode.classList.toggle("c-addthis--visible")})})}}])&&g(t.prototype,n),i&&g(t,i),e}();function y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),w(this,"selectors",{button:"[data-js-header-our-sites]"}),w(this,"classes",{buttonParentToggle:"c-our-sites--open"}),this.bindings(),this.polyfill()}var t,n,i;return t=e,(n=[{key:"bindings",value:function(){var e=this;y(document.querySelectorAll(this.selectors.button)).forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),t.parentNode.classList.toggle(e.classes.buttonParentToggle),t.setAttribute("aria-expanded","false"==t.getAttribute("aria-expanded")?"true":"false")})}),document.addEventListener("click",function(t){null==t.target.closest(".c-our-sites")&&y(document.querySelectorAll(e.selectors.button)).forEach(function(t){t.parentNode.classList.remove(e.classes.buttonParentToggle),t.setAttribute("aria-expanded","false")})})}},{key:"polyfill",value:function(){Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})}}])&&b(t.prototype,n),i&&b(t,i),e}();function S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),C(this,"element",void 0),C(this,"thumbnail",void 0),C(this,"frame",void 0),t&&(this.element=t,this.thumbnail=t.querySelector(e.selectors.thumbnail),this.frame=t.querySelector(e.selectors.frame),null==this.thumbnail?this.replacePlaceholderFrame():this.bindings())}var t,n,i;return t=e,(n=[{key:"bindings",value:function(){var e=this;this.thumbnail.addEventListener("click",function(t){"iframe"!==e.frame.tagName.toLowerCase()&&e.replacePlaceholderFrame(),e.frame.src=e.frame.src+(e.frame.src.indexOf("?")>=0?"&":"?")+"autoplay=1",e.element.classList.add("is-playing")})}},{key:"replacePlaceholderFrame",value:function(){var e=document.createElement("iframe");e.src=this.frame.dataset.src,e.className=this.frame.className,e.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),e.setAttribute("allowfullscreen",""),this.frame.parentNode.replaceChild(e,this.frame),this.frame=e}}])&&S(t.prototype,n),i&&S(t,i),e}();C(k,"selectors",{component:"[data-video]",thumbnail:"[data-video-thumbnail]",frame:"[data-video-frame]"});n(153),n(154),n(75),n(155),n(156),n(76),n(157),n(158),n(117);var P=n(39),N=n.n(P),x=n(38),A=n.n(x),O=n(127),I=n.n(O),z=(n(211),n(128)),E=n(129),T=n(131),V={props:{large:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1},shareUrl:{type:String,default:""}},directives:{onClickaway:T.directive},data:function(){return{showModal:!1}},created:function(){window.addEventListener("keyup",this.handleKeyInput)},methods:{closeModal:function(){this.showModal=!1,document.body.style.overflow="",""!=this.shareUrl&&window.location.href.includes("/dashboard/")&&this.shareUrl!=window.location.href&&(window.location=this.shareUrl)},openModal:function(){this.showModal=!0,document.body.style.overflow="hidden",document.getElementById("content")},handleKeyInput:function(){27==event.which&&this.closeModal()}}},L=n(7),j=Object(L.a)(V,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"c-modal",class:{"c-modal--close-btn":e.showClose,"c-modal--lg":e.large}},[n("transition",{attrs:{name:"c-modal"}},[e.showModal?n("div",{staticClass:"c-modal-mask"},[n("div",{staticClass:"c-modal-wrapper"},[n("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeModal,expression:"closeModal"}],staticClass:"c-modal-container"},[n("div",{staticClass:"modal-header"},[e._t("header"),e._v(" "),e.showClose?n("button",{staticClass:"c-modal-close-button",on:{click:e.closeModal}},[n("svg",{staticClass:"i-icon i-close",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg#icon-close"}})])]):e._e()],2),e._v(" "),n("div",{staticClass:"c-modal-body"},[e._t("body",null,{closeModal:e.closeModal})],2)])])]):e._e()]),e._v(" "),e._t("button",null,{openModal:e.openModal})],2)},[],!1,null,null,null).exports,B={props:{panel:Object,state:{type:String,required:!0},menuOpen:{type:Boolean,default:!1}},data:function(){return{iconVersion:"4",flipped:"Viz"!=this.panel.flipView,panelInitialised:!1,showSpinner:!1,Url:"",tempName:"",options:"",iframe:"",vizIframeContainer:"",tableauAdditonalOptions:"?:highdpi=false&:render=false&:embed=y&:tabs=false"}},mounted:function(){this.Url=this.panel.vizUrl,this.vizIframeContainer=this.$refs[this.panel.id],"Australia"!=this.state&&this.updateImages(),this.$redrawVueMasonry()},watch:{state:function(){this.panelInitialised?(this.options.Master_filter=this.state,this.iframe.dispose(),this.iframe=new tableau.Viz(this.vizIframeContainer,this.Url+this.panel.vizTab+this.tableauAdditonalOptions,this.options)):this.updateImages()},panel:function(){"Viz"===this.panel.flipView&&this.flipped&&(this.flipped=!1),!1===this.panel.isInteractive&&this.panelInitialised&&this.revertToImage()}},methods:{updateImages:function(){var e=this,t=window.innerWidth<768?"Mobile":"Desktop";fetch(getImageEndPoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vizCode:this.panel.id,selectedState:this.state,sourceType:t})}).then(function(e){return e.json()}).then(function(t){if(t.image&&t.image.length){var n=document.getElementById("image__wrapper__"+e.panel.id),i=n.querySelectorAll(".c-chart__image").length?n.querySelectorAll(".c-chart__image")[0]:null;i&&(i.src=t.image,e.$redrawVueMasonry())}})},updatePrintImage:function(){var e=this.Url+this.panel.vizTab+".png?Master_filter=".concat(this.state);this.panel.filterName1&&this.panel.filterValue1&&(e+="&".concat(this.panel.filterName1,"=").concat(this.panel.filterValue1)),this.panel.filterName2&&this.panel.filterValue2&&(e+="&".concat(this.panel.filterName2,"=").concat(this.panel.filterValue2)),this.panel.filterName3&&this.panel.filterValue3&&(e+="&".concat(this.panel.filterName3,"=").concat(this.panel.filterValue3));var t=document.getElementById("image__wrapper__"+this.panel.id),n=t.querySelectorAll(".c-chart__image").length?t.querySelectorAll(".c-chart__image")[0]:null;n&&(n.src=encodeURI(e))},flipPanel:function(){this.flipped=!this.flipped,this.$emit("flip-panel",this.panel)},checkVizInitOnLoad:function(){this.panel.isInteractive&&this.$nextTick(function(){this.initViz()})},initViz:function(){var e=this;if(!this.panelInitialised){this.panelInitialised=!0;var t=document.getElementById("image__wrapper__"+this.panel.id);this.showSpinner=!0;var n,i,a=this,r=this.vizIframeContainer.getBoundingClientRect().width,o=!1,l=[{minWidth:0,maxWidth:500,outputHeight:600},{minWidth:500,maxWidth:1/0,outputHeight:700}];this.options={Filter1:this.panel.filterName1?this.panel.filterName1:"",Filter2:this.panel.filterName2?this.panel.filterName2:"",Filter3:this.panel.filterName3?this.panel.filterName3:"",MeasureName:this.panel.vizTitle?this.panel.vizTitle:"",Master_filter:this.state,height:t.offsetHeight+"px",hideTabs:!0,hideToolbar:!0,width:"100%",fixedSize:!1,iframeSizedToWindow:!0,onFirstInteractive:function(){n=a.iframe.getWorkbook(),i=n.getActiveSheet(),a.iframe.addEventListener(tableau.TableauEventName.CUSTOM_VIEW_LOAD,function(e){!function(e){for(var t=i.getWorksheets()?i.getWorksheets().length:0,n=0;n<t;n++)a.panel.filterName1&&a.panel.filterName1.length>0&&i.getWorksheets()[n].applyFilterAsync(a.panel.filterName1,a.panel.filterValue1,tableau.FilterUpdateType.REPLACE),a.panel.filterName2&&a.panel.filterName2.length>0&&i.getWorksheets()[n].applyFilterAsync(a.panel.filterName2,a.panel.filterValue2,tableau.FilterUpdateType.REPLACE),a.panel.filterName3&&a.panel.filterName3.length>0&&i.getWorksheets()[n].applyFilterAsync(a.panel.filterName3,a.panel.filterValue3,tableau.FilterUpdateType.REPLACE);a.showSpinner=!1}()}),a.iframe.addEventListener(tableau.TableauEventName.FILTER_CHANGE,function(e){var t;(t=e).getFieldName()!==a.tempName&&(a.tempName=t.getFieldName(),t.getFilterAsync().then(function(e){var t=-1,n=e.getFieldName(),i="";n===a.panel.filterName1?t=1:n===a.panel.filterName2?t=2:n===a.panel.filterName3&&(t=3);var r=e.getAppliedValues();null!==r&&null!==r.length&&r.length>0&&(i=r[0].formattedValue,1===t||-1===t&&!a.panel.filterName1||0===a.panel.filterName1.length?(a.panel.filterName1=n,a.panel.filterValue1=i):2===t||-1===t&&!a.panel.filterName2||0===a.panel.filterName2.length?(a.panel.filterName2=n,a.panel.filterValue2=i):(3===t||-1===t&&!a.panel.filterName3||0===a.panel.filterName3.length)&&(a.panel.filterName3=n,a.panel.filterValue3=i),a.updateFilter(),a.updatePrintImage(),setTimeout(function(){a.tempName=""},300))}))})}},this.iframe=new tableau.Viz(this.vizIframeContainer,this.Url+this.panel.vizTab+this.tableauAdditonalOptions,this.options),window.addEventListener("resize",u()(function(t){if(!o){o=!0;var n=e.vizIframeContainer.getBoundingClientRect().width;if(r<500&&n>=500||r>=500&&n<500)return e.iframe.dispose(),e.iframe=new tableau.Viz(e.vizIframeContainer,a.Url+a.panel.vizTab+e.tableauAdditonalOptions,e.options),o=!1,void(r=n);var s=(c=n,(u=l.filter(function(e){return c>=e.minWidth&&c<e.maxWidth})).length?u[0].outputHeight:0);i&&i.changeSizeAsync({behavior:"EXACTLY",minSize:{width:n,height:s}}).then(function(t){o=!1,e.previousResizeWidth=n,e.iframe.setFrameSize("100%",s+e.vizTextWrapOffset)})}var c,u},200)),viz.push(this.iframe),this.updatePrintImage(),this.$emit("is-interactive",this.panel)}},updateFilter:function(){this.$emit("filter-change",{panel:this.panel})},revertToImage:function(){this.panelInitialised=!1,this.iframe.dispose()}}},M=Object(L.a)(B,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"masonry-tile",rawName:"v-masonry-tile"}],staticClass:"c-chart",class:{"c-flip--animate":e.flipped,"c-chart--loading":e.showSpinner,"c-chart--loaded":e.panelInitialised},attrs:{"data-js-chart":""}},[n("div",{staticClass:"c-chart__inner",attrs:{"aria-hidden":!!e.flipped}},[n("div",{staticClass:"c-chart__controls"},[e.panel.content?n("button",{staticClass:"e-btn e-btn--square",attrs:{title:"Flip panel",tabindex:e.menuOpen?-1:e.flipped?-1:0},on:{click:e.flipPanel}},[n("span",{staticClass:"visually-hidden"},[e._v("Flip chart")]),e._v(" "),n("svg",{staticClass:"i-flip i-icon",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+e.iconVersion+"#icon-flip"}})])]):e._e(),e._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!e.flipped,expression:"!flipped"}],staticClass:"e-btn e-btn--square",attrs:{href:e.panel.pageUrl,tabindex:e.menuOpen?-1:e.flipped?-1:0}},[n("span",{staticClass:"visually-hidden"},[e._v(e._s(e.panel.vizTitle)+" page")]),e._v(" "),n("svg",{staticClass:"i-expand i-icon",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+e.iconVersion+"#icon-expand"}})])]),e._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:!e.flipped,expression:"!flipped"}],staticClass:"e-btn e-btn--square",attrs:{tabindex:e.menuOpen?-1:e.flipped?-1:0},on:{click:function(t){return e.$emit("delete-panel",e.panel)}}},[n("span",{staticClass:"visually-hidden"},[e._v("Remove panel")]),e._v(" "),n("svg",{staticClass:"i-remove i-icon",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+e.iconVersion+"#icon-remove"}})])])]),e._v(" "),n("div",{staticClass:"c-chart__inner__content",on:{click:e.initViz}},[n("h2",{staticClass:"c-chart__title"},[e._v("\n\t\t\t\t"+e._s(e.panel.vizTitle)+"\n\t\t\t")]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.panelInitialised,expression:"!panelInitialised"}],staticClass:"c-chart__image__wrapper",attrs:{id:"image__wrapper__"+e.panel.id}},[n("img",{staticClass:"c-chart__image",attrs:{alt:e.panel.vizTitle+" chart",src:e.panel.vizImage},on:{load:e.checkVizInitOnLoad}})]),e._v(" "),n("div",{ref:e.panel.id,staticClass:"c-chart__iframe__wrapper",class:{"c-chart__iframe__wrapper--init":e.panelInitialised}})]),e._v(" "),n("transition",{attrs:{name:"c-spinner"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSpinner,expression:"showSpinner"}],staticClass:"c-spinner__wrapper"},[n("div",{staticClass:"c-spinner"},[n("div",{staticClass:"c-spinner__inner one"}),e._v(" "),n("div",{staticClass:"c-spinner__inner two"}),e._v(" "),n("div",{staticClass:"c-spinner__inner three"})])])])],1),e._v(" "),n("div",{staticClass:"c-chart__inner c-chart__inner--flipped",attrs:{"aria-hidden":!e.flipped}},[n("div",{staticClass:"c-chart__controls"},[n("button",{staticClass:"e-btn e-btn--square",attrs:{title:"Flip panel",tabindex:e.menuOpen?-1:e.flipped?0:-1},on:{click:e.flipPanel}},[n("span",{staticClass:"visually-hidden"},[e._v("Flip chart")]),e._v(" "),n("svg",{staticClass:"i-flip i-icon",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+e.iconVersion+"#icon-flip"}})])]),e._v(" "),n("a",{staticClass:"e-btn e-btn--square",attrs:{href:e.panel.pageUrl,tabindex:e.menuOpen?-1:e.flipped?0:-1}},[n("span",{staticClass:"visually-hidden"},[e._v(e._s(e.panel.vizTitle)+" page")]),e._v(" "),n("svg",{staticClass:"i-expand i-icon",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+e.iconVersion+"#icon-expand"}})])]),e._v(" "),n("button",{staticClass:"e-btn e-btn--square",attrs:{tabindex:e.menuOpen?-1:e.flipped?0:-1},on:{click:function(t){return e.$emit("delete-panel",e.panel)}}},[n("span",{staticClass:"visually-hidden"},[e._v("Remove panel")]),e._v(" "),n("svg",{staticClass:"i-remove i-icon",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+e.iconVersion+"#icon-remove"}})])])]),e._v(" "),n("h2",{staticClass:"c-chart__title"},[e._v("\n\t\t\t"+e._s(e.panel.vizTitle)+"\n\t\t")]),e._v(" "),n("div",{staticClass:"cke_editable",domProps:{innerHTML:e._s(e.panel.content)}})])])},[],!1,null,null,null).exports,W={props:{url:String,message:{type:String,default:""},hideAddthis:Boolean},data:function(){return{inputValue:this.url,copied:!1}},watch:{url:function(){this.inputValue=this.url}},methods:{copyInput:function(){var e=this,t=document.createElement("textarea");t.value=this.inputValue,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),this.copied=!0,setTimeout(function(){e.copied=!1},2e3)}}},D=Object(L.a)(W,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"c-share"},[n("div",{staticClass:"c-share__item"},[n("div",{staticClass:"c-share__item__inner"},[n("p",{staticClass:"c-share__item__copy"},[e._v(e._s(""!=e.message?e.message:"You can share the dashboard layout and global filter."))]),e._v(" "),n("p",{staticClass:"c-share__item__copy__secondary"},[e._v("Use the URL below to share:")]),e._v(" "),n("div",{staticClass:"c-share__item__input__wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],staticClass:"e-field c-share__item__input",attrs:{type:"text",readonly:""},domProps:{value:e.inputValue},on:{input:function(t){t.target.composing||(e.inputValue=t.target.value)}}}),e._v(" "),n("button",{staticClass:"c-share__item__input__wrapper__btn",on:{click:e.copyInput}},[n("svg",{staticClass:"i-icon i-copy",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg#icon-copy"}})])])]),e._v(" "),e.hideAddthis?e._e():n("div",[n("p",{staticClass:"c-share__item__copy"},[e._v("Share with:")]),e._v(" "),n("div",{staticClass:"addthis_inline_share_toolbox_a1q5 c-addthis__container",attrs:{"data-url":e.inputValue}})])])]),e._v(" "),n("transition",{attrs:{name:"c-copied"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.copied,expression:"copied"}],staticClass:"c-copied__wrapper"},[n("div",{staticClass:"e-wrapper__content"},[n("span",{staticClass:"c-copied"},[e._v("\n\t\t\t\t\tCopied!\n\t\t\t\t")])])])])],1)},[],!1,null,null,null).exports;n(126),n(222),n(224),n(225),n(226),n(227);function F(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var $={props:{name:String},created:function(){var e=F(document.querySelectorAll("use")).map(function(e){var t=e.href.baseVal.match(/.+\.svg\?v=([\d]+)#/);if(null!=t&&t.length>1)return t[1]});this.version=e.length?e[0]:"1"},data:function(){return{version:"1"}},computed:{parsedIconName:function(){return this.name.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g).filter(Boolean).map(function(e){return e.toLowerCase()}).join("-")}}},R=Object(L.a)($,function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{class:["i-"+this.parsedIconName],attrs:{focusable:"false","aria-hidden":"true"}},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg?v="+this.version+"#icon-"+this.parsedIconName}})])},[],!1,null,null,null).exports,U={components:{svgIcon:R},props:{title:String,category:{type:Object,required:!0},menuOpen:{type:Boolean,default:!1},index:Number,openPanel:Array,searching:Boolean,clearAll:Boolean,collapseAll:Boolean},data:function(){return{sectionOpen:!1,sectionChecked:!1}},watch:{clearAll:function(){this.clearAllBoxes()},collapseAll:function(){1==this.collapseAll?this.sectionOpen=!1:this.sectionOpen=!0},sectionOpen:function(){this.$emit("menu-changed")}},mounted:function(){var e=this;0==this.index&&(this.sectionOpen=!0),this.category.children.forEach(function(t){t.selected&&(e.sectionOpen=!0)}),this.sectionChecked=this.category.children.every(function(e){return e.selected})},methods:{toggleSection:function(){this.sectionOpen=!this.sectionOpen},toggleCheckboxes:function(){var e=this;this.sectionChecked=!this.sectionChecked,this.category.children.forEach(function(t){e.$emit("toggle-select",[t,e.sectionChecked])})},clearAllBoxes:function(){var e=this;this.sectionChecked=!1,this.category.children.forEach(function(t){e.$emit("toggle-select",[t,e.sectionChecked])})},toggleCheckbox:function(e,t){this.$emit("toggle-select",[t,e.target.checked]),this.category.children.every(function(e){return e.selected})?(document.getElementById(this.category.categoryName.toLowerCase().replace(" ","-")+"__toggler").checked=!0,this.sectionChecked=!0):(document.getElementById(this.category.categoryName.toLowerCase().replace(" ","-")+"__toggler").checked=!1,this.sectionChecked=!1)}}},q={components:{menuSection:Object(L.a)(U,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"c-charts__menu__section",class:{"c-charts__menu__section--open":e.sectionOpen,"c-charts__menu__section--has-checked":e.category.children.some(function(e){return e.selected})&&!e.category.children.every(function(e){return e.selected})}},[n("div",{staticClass:"e-checkbox-wrapper c-charts__menu__section__heading"},[n("input",{staticClass:"e-checkbox",attrs:{type:"checkbox",id:e.category.categoryName.toLowerCase().replace(" ","-")+"__toggler",tabindex:e.menuOpen?0:-1},domProps:{checked:e.category.children.every(function(e){return e.selected})},on:{change:function(t){return e.toggleCheckboxes()}}}),e._v(" "),n("label",{staticClass:"e-label c-charts__menu__section__heading__label",attrs:{for:e.category.categoryName.toLowerCase().replace(" ","-")+"__toggler"}},[e._v("\n\t\t\t"+e._s(e.category.categoryName)+"\n\n\t\t\t"),e.category.categoryHasGeographyData?n("span",{staticClass:"c-charts__menu__subsection__label-geography"},[n("svg-icon",{staticClass:"c-charts__menu__subsection__label-geography-icon",attrs:{name:"globe"}}),e._v(" "),n("span",{staticClass:"c-charts__menu__subsection__label-geography-popup"},[e._v("Geography data available")])],1):e._e()]),e._v(" "),n("button",{staticClass:"c-charts__menu__section__heading__toggle",attrs:{id:"expander-"+e.category.categoryName.toLowerCase().replace(" ","-"),tabindex:e.menuOpen?0:-1,"aria-controls":"menu-section-"+e.category.categoryName.toLowerCase().replace(" ","-"),"aria-expanded":e.sectionOpen||e.openPanel[0]&&e.searching?"true":"false"},on:{click:e.toggleSection}},[n("span",{staticClass:"visually-hidden"},[e._v("Toggle section")]),e._v(" "),n("svg",{staticClass:"i-arrow-up",attrs:{focusable:"false","aria-hidden":"true"}},[n("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/assets/dist/svg/symbol-defs.svg#icon-chevron-up"}})])])]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.sectionOpen||e.openPanel[0]&&e.searching,expression:"sectionOpen || (openPanel[0] && searching)"}],staticClass:"e-checkbox-wrapper c-charts__menu__subsection",attrs:{role:"region","aria-labelledby":"expander-"+e.category.categoryName.toLowerCase().replace(" ","-"),id:"menu-section-"+e.category.categoryName.toLowerCase().replace(" ","-")}},e._l(e.category.children,function(t){return n("li",{directives:[{name:"show",rawName:"v-show",value:!e.searching||e.openPanel[1].includes(t),expression:"!searching || openPanel[1].includes(item)"}],key:t.pageGuid},[n("input",{staticClass:"e-checkbox",attrs:{type:"checkbox",id:t.id+"_checkbox",tabindex:e.menuOpen?0:-1},domProps:{checked:t.selected},on:{change:function(n){return e.toggleCheckbox(n,t)}}}),e._v(" "),n("label",{staticClass:"e-label c-charts__menu__subsection__label",attrs:{for:t.id+"_checkbox"}},[e._v("\n\t\t\t\t"+e._s(t.titleNavigation)+"\n\n\t\t\t\t"),t.hasGeographyData?n("span",{staticClass:"c-charts__menu__subsection__label-geography"},[n("svg-icon",{staticClass:"c-charts__menu__subsection__label-geography-icon",attrs:{name:"globe"}}),e._v(" "),n("span",{staticClass:"c-charts__menu__subsection__label-geography-popup"},[e._v("Geography data available")])],1):e._e()])])}),0)])},[],!1,null,null,null).exports},props:{title:String,categories:Array,limit:Number,menuOpen:{type:Boolean,default:!1},showAlert:{type:Boolean,default:!1}},data:function(){return{searchQuery:"",clearAll:!1,collapseAll:!1,applyButtonPosition:"static"}},mounted:function(){window.addEventListener("scroll",this.handleDesktopStickyBtn)},computed:{searching:function(){return""!=this.searchQuery.trim()},showInSearch:function(){var e=this,t={};return this.categories.forEach(function(n){var i=!1;t[n.categoryName]=[!0,[]],n.categoryName.toLowerCase().search(e.searchQuery)>=0?(i=!0,t[n.categoryName][1]=n.children):n.children.forEach(function(a){a.titleNavigation.toLowerCase().search(e.searchQuery)>=0&&(i=!0,t[n.categoryName][1].includes(a)||t[n.categoryName][1].push(a))}),t[n.categoryName][0]=i}),t}},methods:{handleDesktopStickyBtn:function(){var e=this;this.$nextTick(function(){var t=e.$refs.menu.getBoundingClientRect();t.top+t.height+e.$refs.applyButtonWrapper.getBoundingClientRect().height>window.innerHeight?e.applyButtonPosition="floating":(e.applyButtonPosition="static",e.$el.style.paddingBottom="")})},toggleSelect:function(e){this.$emit("toggle-select",e)}}},H=Object(L.a)(q,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"c-charts__menu__wrapper",class:{"apply-button-floating":"floating"===e.applyButtonPosition,"apply-button-stuck":"stuck"===e.applyButtonPosition},attrs:{"aria-labelledby":"openMenuBtn",role:"region",id:"filtersMenuMain","aria-hidden":!e.menuOpen}},[n("div",{ref:"menu",staticClass:"c-charts__menu",attrs:{tabindex:"-1"}},[n("h3",{staticClass:"c-charts__menu__heading"},[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"c-charts__menu__txtbox__wrapper"},[n("label",{staticClass:"visually-hidden",attrs:{for:"filterSearchBox"}},[e._v("Search filters")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchQuery,expression:"searchQuery"}],ref:"searchField",staticClass:"e-field",attrs:{tabindex:e.menuOpen?0:-1,type:"text",placeholder:"Start typing...",id:"filterSearchBox"},domProps:{value:e.searchQuery},on:{input:function(t){t.target.composing||(e.searchQuery=t.target.value)}}}),e._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:e.showAlert,expression:"showAlert"}],staticClass:"c-charts__menu__alert"},[e._v("Please limit selection to "+e._s(e.limit))])]),e._v(" "),n("div",[n("div",{staticClass:"c-charts__menu__clear__wrapper"},[n("button",{staticClass:"c-charts__menu__clear",attrs:{tabindex:e.menuOpen?0:-1},on:{click:function(t){e.collapseAll=!e.collapseAll}}},[e._v(e._s(e.collapseAll?"Expand all":"Collapse all"))]),e._v(" "),n("button",{staticClass:"c-charts__menu__clear",attrs:{tabindex:e.menuOpen?0:-1},on:{click:function(t){e.clearAll=!e.clearAll}}},[e._v("clear all")])]),e._v(" "),e._l(e.categories,function(t,i){return n("menu-section",{directives:[{name:"show",rawName:"v-show",value:e.showInSearch[t.categoryName][0],expression:"showInSearch[category.categoryName][0]"}],key:t.categoryName,attrs:{"menu-open":e.menuOpen,"collapse-all":e.collapseAll,"clear-all":e.clearAll,searching:e.searching,"open-panel":e.showInSearch[t.categoryName],category:t,index:i},on:{"menu-changed":function(t){e.$emit("menu-changed"),e.handleDesktopStickyBtn()},"toggle-select":e.toggleSelect}})})],2)]),e._v(" "),n("div",{ref:"applyButtonWrapper",staticClass:"c-chart__menu__btn__wrapper"},[n("button",{staticClass:"e-btn c-chart__menu__btn",attrs:{tabindex:e.menuOpen?0:-1,type:"button"},on:{click:function(t){return e.$emit("apply-selection")}}},[e._v("Apply and show data")])])])},[],!1,null,null,null).exports;function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){G(e,t,n[t])})}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var K=function(){function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"undefined"==typeof inCMS||!inCMS&&void 0!==t){var i=t.querySelector("thead"),a=t.querySelector("tbody").querySelectorAll("tr"),r=[];null!==i&&(r=Q(i.querySelectorAll("th")).map(function(e){return e.textContent})),a.forEach(function(e){e.querySelectorAll("td").forEach(function(e,t){n.wrapInner(e,'<div class="table-cell-content" />'),r.length&&e.insertAdjacentHTML("afterbegin",'<div class="table-cell-mobile-header">'.concat(r[t],"</div>"))})})}}var t,n,i;return t=e,(n=[{key:"wrapInner",value:function(e,t){e.insertAdjacentHTML("beforeend",t);for(var n=e.lastElementChild;e.firstChild!==n;)n.appendChild(e.firstChild)}}])&&Y(t.prototype,n),i&&Y(t,i),e}();function Z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}window.LoadedComponents={PageNavigation:new v,OurSites:new _,Viz:Z(document.querySelectorAll(f.selectors.vizImage)).map(function(e){return new f(e)}),Accordions:Z(document.querySelectorAll(s.selectors.component)).map(function(e){return new s(e)}),Videos:Z(document.querySelectorAll(k.selectors.component)).map(function(e){return new k(e)}),Dashboard:new function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t&&(A.a.use(z.VueReCaptcha,{siteKey:grecaptchaSiteKey}),A.a.use(E.a),new A.a({el:"#chartPanels",components:{modal:j,chartPanel:M,sharePanel:D,draggable:I.a,menuWrapper:H,svgIcon:R},data:{panels:window.panels,reordering:[],selecting:[],dataChanged:!1,selectingLimit:maxPanels,notificationsOpen:!1,menuOpen:!1,showMenuAlert:!1,shareUrl:"Generating url...",hideAddThis:!1,exportToken:"",exportLocalStorageData:"",showSpinner:!1,isBarSticky:!1,stickyBarPos:-1,state:window.panels.length?window.panels[0].state:"Australia"},watch:{panels:function(){var e=this,t=this.panels.filter(function(e){return e.selected});t=t.map(function(t,n){return J({},t,{content:encodeURI(t.content),sequenceNo:n,state:e.state})});var n=window.location.href.split("/dashboard/").length>0?window.location.href.split("/dashboard/")[1]:null;n?localStorage.setItem("initialPanels_".concat(n),JSON.stringify(t)):localStorage.setItem("initialPanels",JSON.stringify(t)),this.dataChanged=!0,setTimeout(function(){"function"==typeof e.$redrawVueMasonry&&e.$redrawVueMasonry()},600)},state:function(){var e=this,t=this.panels.filter(function(e){return e.selected});t=t.map(function(t,n){return J({},t,{content:encodeURI(t.content),sequenceNo:n,state:e.state})});var n=window.location.href.split("/dashboard/").length>0?window.location.href.split("/dashboard/")[1]:null;n?localStorage.setItem("initialPanels_".concat(n),JSON.stringify(t)):localStorage.setItem("initialPanels",JSON.stringify(t)),this.dataChanged=!0},notificationsOpen:function(e){var t=this;if(e)a.slideDown(this.$refs.introPanel,600).then(function(){t.isBarSticky&&(t.stickyBarPos=t.$refs.introPanel.offsetTop+t.$refs.introPanel.offsetHeight)});else{var n=this.$refs.introPanel.offsetTop;a.slideUp(this.$refs.introPanel,600).then(function(){t.isBarSticky&&(t.stickyBarPos=n)})}}},created:function(){this.selecting=N()(this.panels),this.checkNotificationCookie(),this.checkLastDashboardIDCookie(),this.checkLocalStorage()},mounted:function(){var e=this;requestAnimationFrame(function t(){var n=e.$refs.stickyBar.offsetTop;window.pageYOffset>=(e.stickyBarPos>0?e.stickyBarPos:n)?(e.stickyBarPos<0&&(e.stickyBarPos=n),e.isBarSticky=!0):(e.stickyBarPos=-1,e.isBarSticky=!1),e.setMenuTop(),requestAnimationFrame(t)})},methods:{checkLocalStorage:function(){var e,t=this,n=window.location.href.split("/dashboard/").length>0?window.location.href.split("/dashboard/")[1]:null,i=this.getCookieValue("LastDashboardID");if(n&&null!=localStorage.getItem("initialPanels_".concat(n))?e=localStorage.getItem("initialPanels_".concat(n)):n&&n!=i||(e=localStorage.getItem("initialPanels")),null!=e){var a=JSON.parse(e),r=a.map(function(e){return e.id});this.panels.forEach(function(e){e.selected=!1});for(var o=function(e){var n=r[e],i=t.panels.findIndex(function(e){return e.id===n});i>-1&&((s=N()(t.panels[i])).selected=!0,s.flipView=a.filter(function(e){return e.id==t.panels[i].id})[0].flipView,s.isInteractive=a.filter(function(e){return e.id==t.panels[i].id})[0].isInteractive,s.filterName1=a.filter(function(e){return e.id==t.panels[i].id})[0].filterName1,s.filterValue1=a.filter(function(e){return e.id==t.panels[i].id})[0].filterValue1,s.filterName2=a.filter(function(e){return e.id==t.panels[i].id})[0].filterName2,s.filterValue2=a.filter(function(e){return e.id==t.panels[i].id})[0].filterValue2,s.filterName3=a.filter(function(e){return e.id==t.panels[i].id})[0].filterName3,s.filterValue3=a.filter(function(e){return e.id==t.panels[i].id})[0].filterValue3,t.panels.splice(i,1),t.panels.unshift(s))},l=r.length-1;l>=0;l--){var s;o(l)}this.selecting.forEach(function(e){r.includes(e.id)?e.selected=!0:e.selected=!1}),this.state=a[0]&&a[0].state?a[0].state:"Australia"}},recaptcha:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$recaptcha("login").then(function(t){return e(t,n)}).then(function(){t()})},submitExport:function(e,t){var n,i=this,a=window.location.href.split("/dashboard/").length>0?window.location.href.split("/dashboard/")[1]:null;n=a?window.localStorage.getItem("initialPanels_".concat(a))||"":window.localStorage.getItem("initialPanels")||"",this.exportToken=e,this.exportLocalStorageData=n,this.$nextTick(function(){t.target.parentNode.submit(),setInterval(function(){"CompleteExport"===(i.getCookieValue("ExportDashboard")||"")&&(i.showSpinner=!1,i.deleteCookie("ExportDashboard"))},2e3)})},savePreferences:function(e){var t,n=this,i=window.location.href.split("/dashboard/").length>0?window.location.href.split("/dashboard/")[1]:null;return t=i?window.localStorage.getItem("initialPanels_".concat(i))||"":window.localStorage.getItem("initialPanels")||"",fetch(savePreferencesEndPoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e,region:this.state,localStorageData:t})}).then(function(e){return e.json()}).then(function(e){return e.Delay?new Promise(function(t,i){setTimeout(function(){n.showSpinner=!1,t(e)},e.Delay)}):e}).then(function(e){return"undefined"!=typeof addthis?addthis.layers.refresh():n.hideAddThis=!0,n.shareUrl=e.Message,n.checkLastDashboardIDCookie(),null})},closeNotification:function(){this.notificationsOpen=!1,this.setCookie("HomeIntroDismissed",dataIntroPanel,10)},checkLastDashboardIDCookie:function(){var e=this.getCookieValue("LastDashboardID");e&&!window.location.href.includes("dashboard/")&&window.history.pushState({key:e},null,"dashboard/"+e)},checkNotificationCookie:function(){var e=this.getCookieValue("HomeIntroDismissed");e?e!=dataIntroPanel&&(this.notificationsOpen=!0):this.notificationsOpen=!0},setCookie:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=new Date;i.setTime(i.getTime()+365*n*24*60*60*1e3),document.cookie="".concat(e,"=").concat(t,";expires=").concat(i.toUTCString(),";path=/;")},deleteCookie:function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},getCookieValue:function(e){var t=e+"=",n=decodeURIComponent(document.cookie).split(";").map(function(e){return e.trim()}).filter(function(e){return e.indexOf(t)>=0})[0];return null!=n&&n.length?n.substring(t.length,n.length):""},setMenuTop:function(){var e=this.$refs.stickyBar.getBoundingClientRect();this.$refs.menuWrapper.$el.style.top="".concat(e.top+e.height,"px")},toggleMenu:function(){var e=this;this.setMenuTop(),this.menuOpen=!this.menuOpen,this.menuOpen&&this.$refs.menuWrapper&&(this.$refs.menuWrapper.$el.addEventListener("transitionend",function t(){e.$refs.menuWrapper.$refs.menu.focus({preventScroll:!0}),e.$refs.menuWrapper.$el.removeEventListener("transitionend",t)}),document.body.classList.add("menu-open")),this.menuOpen||document.body.classList.remove("menu-open")},mainContentClick:function(){this.menuOpen&&this.toggleMenu()},deletePanel:function(e){this.panels=this.panels.map(function(t){return t==e&&(t.selected=!1),t}),this.selecting=N()(this.panels)},flipPanel:function(e){this.panels=this.panels.map(function(t){return t==e&&(t.flipView="Viz"==t.flipView?"Desc":"Viz"),t})},isInteractive:function(e){this.panels=this.panels.map(function(t){return t==e&&(t.isInteractive=!0),t})},filterChange:function(e){this.panels=this.panels.map(function(t){return t.id==e.id?e:t})},startPanelReordering:function(){this.reordering=this.panels},SavePanelReordering:function(){this.panels=this.reordering},filterState:function(){this.state=event.target.value},isSelectedLimitReached:function(){var e=this.selecting.filter(function(e){return e.selected});return this.selectingLimit<=e.length},toggleSelect:function(e){var t=this,n=this.isSelectedLimitReached(),i=e[1];this.selecting.forEach(function(a){if(a==e[0])if(a.selected)a.selected=i,t.isSelectedLimitReached()||(t.showMenuAlert=!1);else if(n){var r=document.getElementById(a.id+"_checkbox");a.selected=!1,r.checked=!1,t.showMenuAlert=!0}else a.selected=i})},applySelection:function(){this.panels=N()(this.selecting),this.menuOpen=!1,this.showMenuAlert=!1},reset:function(){var e=this,t=this.panels.filter(function(e){return e.defaultOnDashboard}).map(function(e){return e.id});this.panels.forEach(function(e){e.flipView="Viz",e.isInteractive=!1,e.selected=t.includes(e.id)}),this.panels=this.panels.sort(function(e,t){return(e.categoryOrder>t.categoryOrder)-(e.categoryOrder<t.categoryOrder)||(e.order>t.order)-(e.order<t.order)}),this.state="Australia";var n=window.location.href.split("/dashboard").length?window.location.href.split("/dashboard")[0]:null;n&&window.history.replaceState(null,null,n),this.$nextTick(function(){for(var t in e.dataChanged=!1,e.deleteCookie("LastDashboardID"),window.localStorage)t.startsWith("initialPanels")&&window.localStorage.hasOwnProperty(t)&&window.localStorage.removeItem(t);fetch("/reset",{method:"POST"})})},getShareUrl:function(e){var t,n=this,i=window.location.href.split("/dashboard/").length>0?window.location.href.split("/dashboard/")[1]:null;return t=i?window.localStorage.getItem("initialPanels_".concat(i))||"":window.localStorage.getItem("initialPanels")||"",fetch(shareEndPoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e,localStorageData:t,region:this.state})}).then(function(e){return e.json()}).then(function(e){return e.Delay?new Promise(function(t,i){setTimeout(function(){n.showSpinner=!1,t(e)},e.Delay)}):e}).then(function(e){return"undefined"!=typeof addthis?addthis.layers.refresh():n.hideAddThis=!0,n.shareUrl=""==t?window.location.href:e.Message,null})}},computed:{menuCategories:function(){var e=[];return this.selecting.forEach(function(t){var n=t.category,i=e.find(function(e){return e.categoryName===n});void 0===i&&(i={categoryName:n,categoryOrder:t.categoryOrder,children:[]},e.push(i)),i.children.push(t)}),e.map(function(e){var t=e.children.some(function(e){return e.hasGeographyData});return J({},e,{categoryHasGeographyData:t,children:e.children.sort(function(e,t){return e.order-t.order})})}).sort(function(e,t){return e.categoryOrder-t.categoryOrder})}}}))}(document.getElementById("chartPanels")),RTETables:Z(document.querySelectorAll(".cke_editable table")).map(function(e){return new K(e)})}}});;
