PageSourceSearch

https://www.localis.co/_next/static/chunks/app/tools/future-occupancy-dmo/page-9aee728f333761f5.js

js localis.co collected 2026-10-09 17:26:17 UTC 25,113 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7833],{10255:(e,t,r)=>{"use strict";function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(95155),r(47650),r(85744),r(20589)},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},30832:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",a="week",s="month",i="quarter",l="year",o="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h="en",m={};m[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var g="$isDayjsObject",y=function(e){return e instanceof v||!(!e||!e[g])},x=function e(t,r,n){var a;if(!t)return h;if("string"==typeof t){var s=t.toLowerCase();m[s]&&(a=s),r&&(m[s]=r,a=s);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var l=t.name;m[l]=t,a=l}return!n&&a&&(h=a),a||!n&&h},p=function(e,t){if(y(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new v(r)},b={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,s),i=r-a<0,l=t.clone().add(n+(i?-1:1),s);return+(-(n+(r-a)/(i?a-l:l-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:s,y:l,w:a,d:"day",D:o,h:n,m:r,s:t,ms:e,Q:i})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=x,b.i=y,b.w=function(e,t){return p(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var v=function(){function f(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var h=f.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var a=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return b},h.isValid=function(){return this.$d.toString()!==u},h.isSame=function(e,t){var r=p(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return p(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<p(e)},h.$g=function(e,t,r){return b.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,i){var u=this,c=!!b.u(i)||i,d=b.p(e),f=function(e,t){var r=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?r:r.endOf("day")},h=function(e,t){return b.w(u.toDate()[e].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},m=this.$W,g=this.$M,y=this.$D,x="set"+(this.$u?"UTC":"");switch(d){case l:return c?f(1,0):f(31,11);case s:return c?f(1,g):f(0,g+1);case a:var p=this.$locale().weekStart||0,v=(m<p?m+7:m)-p;return f(c?y-v:y+(6-v),g);case"day":case o:return h(x+"Hours",0);case n:return h(x+"Minutes",1);case r:return h(x+"Seconds",2);case t:return h(x+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(a,i){var u,c=b.p(a),d="set"+(this.$u?"UTC":""),f=((u={}).day=d+"Date",u[o]=d+"Date",u[s]=d+"Month",u[l]=d+"FullYear",u[n]=d+"Hours",u[r]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[c],h="day"===c?this.$D+(i-this.$W):i;if(c===s||c===l){var m=this.clone().set(o,1);
1m.$d[f](h),m.init(),this.$d=m.set(o,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[b.p(e)]()},h.add=function(e,i){var o,u=this;e=Number(e);var c=b.p(i),d=function(t){var r=p(u);return b.w(r.date(r.date()+Math.round(t*e)),u)};if(c===s)return this.set(s,this.$M+e);if(c===l)return this.set(l,this.$y+e);if("day"===c)return d(1);if(c===a)return d(7);var f=((o={})[r]=6e4,o[n]=36e5,o[t]=1e3,o)[c]||1,h=this.$d.getTime()+e*f;return b.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=b.z(this),s=this.$H,i=this.$m,l=this.$M,o=r.weekdays,c=r.months,f=r.meridiem,h=function(e,r,a,s){return e&&(e[r]||e(t,n))||a[r].slice(0,s)},m=function(e){return b.s(s%12||12,e,"0")},g=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return l+1;case"MM":return b.s(l+1,2,"0");case"MMM":return h(r.monthsShort,l,c,3);case"MMMM":return h(c,l);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,o,2);case"ddd":return h(r.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return g(s,i,!0);case"A":return g(s,i,!1);case"m":return String(i);case"mm":return b.s(i,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,o,u){var c,d=this,f=b.p(o),h=p(e),m=(h.utcOffset()-this.utcOffset())*6e4,g=this-h,y=function(){return b.m(d,h)};switch(f){case l:c=y()/12;break;case s:c=y();break;case i:c=y()/3;break;case a:c=(g-m)/6048e5;break;case"day":c=(g-m)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case t:c=g/1e3;break;default:c=g}return u?c:b.a(c)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return m[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=x(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return b.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),w=v.prototype;return p.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",s],["$y",l],["$D",o]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),p.extend=function(e,t){return e.$i||(e(t,v,p),e.$i=!0),p},p.locale=x,p.isDayjs=y,p.unix=function(e){return p(1e3*e)},p.en=m[h],p.Ls=m,p.p={},p}()},36645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(38466)._(r(67357));function a(e,t){var r;let a={};"function"==typeof e&&(a.loader=e);let s={...a,...t};return(0,n.default)({...s,modules:null==(r=s.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39663:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(32109),a=r.n(n);function s(e){if(null==e)return null;try{var t;let r=JSON.stringify(e);if(void 0===r)return null;let n=(t=r,encodeURIComponent(t)),s=a().enc.Utf8.parse(n),i=a().AES.encrypt(s,"db4e8dad34df44219c1b63733a071ce3d383ea59a1c3114f238546553dfa6d1b"),l=i.salt.toString(a().enc.Hex),o=i.ciphertext.toString(a().enc.Hex);if(16!==l.length)return null;return l+o}catch(e){return null}}},50477:()=>{},55028:(e,t,r)=>{"use strict";r.d(t,{default:()=>a.a});var n=r(36645),a=r.n(n)},62146:(e,t,r)=>{"use strict";function n(e){let{reason:t,children:r}=e;return r}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(45262)},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return i},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return l}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let a="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return a?new a:new n}function i(e){return a?a.bind(e):n.bind(e)}function l(){return a?a.snapshot():function(e,...t){return e(...t)}}},64157:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(95155);r(12115);var a=r(24717),s=r(55028),i=r(55184);let l=(0,s.default)(()=>Promise.all([r.e(3104),r.e(6144)]).then(r.bind(r,6144)),{loadableGenerated:{webpack:()=>[null]},ssr:!1});function o(e,t,r){if(null==t||"-"===t||""===t||isNaN(Number(t)))return"-";let n=Number(t),a=!Number.isInteger(n),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&a?e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):e.toLocaleString()};return"$"===r||"spend"===e?"$".concat(s(n,!0)):"txns"===r||"txns"===e||"transactions"===e?"".concat(s(n)," txns"):"%"===r||"percent"===e||"percentage"===e?"".concat(s(n,!0),"%"):r&&"-"!==r?"".concat(s(n)," ").concat(r).trim():s(n)}function u(e){return e?e.toLowerCase().includes("year")?(0,n.jsx)(a.HiOutlineCalendar,{className:"inline-block mr-1",size:16}):e.toLowerCase().includes("month")||e.toLowerCase().includes("quarter")?(0,n.jsx)(a.HiOutlineClock,{className:"inline-block mr-1",size:16}):null:null}let c={positive:"bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300",negative:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300",neutral:"bg-gray-100 text-gray-500 dark:bg-gray-700 dark:text-gray-400"};function d(e,t){if("neutral"===t)return c.neutral;let r=e>0;return("lower_better"===t?!r:r)?c.positive:c.negative}function f(e){let{value:t,previousLabel:r,previousValue:s,changePercent:c,changeDirection:f="higher_better",secondPreviousLabel:h,secondPreviousValue:m,secondChangePercent:g,sparklineData:y=[],sparklineLabels:x=[],sparklineUnit:p="",highlightLastN:b=0,metricLabel:v="",metric:w="",hoverTextOnTitle:j,loading:N=!1,error:S=null}=e;if(N)return(0,n.jsx)("div",{className:"flex justify-center items-center h-48 bg-white dark:bg-gray-800 rounded-lg shadow",children:(0,n.jsx)(i.y$,{size:"lg"})});if(S)return(0,n.jsx)("div",{className:"flex flex-col justify-center items-center h-48 bg-white dark:bg-gray-800 rounded-lg shadow text-red-600",children:"string"==typeof S?S:S.message});if(("-"===t||null==t)&&("-"===s||null==s)&&("-"===m||null==m)&&(!y||!y.length||y.every(e=>null==e)))return(0,n.jsx)("div",{className:"flex flex-col justify-center items-center h-48 bg-white dark:bg-gray-800 rounded-lg shadow text-gray-400",children:"No data found."});let $=null!=c&&!isNaN(c)&&0!==Number(c),k=$&&Number(c)>0,M=$&&0>Number(c),_=k?a.HiArrowUp:M?a.HiArrowDown:null,O=$?Math.abs(Number(c)).toFixed(2):"0.00",D=null!=g&&!isNaN(g)&&0!==Number(g),C=D&&Number(g)>0,A=D&&0>Number(g),F=C?a.HiArrowUp:A?a.HiArrowDown:null,L=D?Math.abs(Number(g)).toFixed(2):"0.00",P=o(w,t,p),T=o(w,s,p),H=o(w,m,p);return(0,n.jsxs)("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow flex flex-col justify-between h-full",children:[v&&(0,n.jsx)("div",{className:"text-xs font-medium text-gray-400 dark:text-gray-500 mb-1 tracking-wide",children:j?(0,n.jsx)(i.m_,{content:j,animation:"duration-200",children:(0,n.jsx)("span",{className:"cursor-help uppercase",children:v})}):(0,n.jsx)("span",{className:"uppercase",children:v})}),(0,n.jsx)("div",{className:"flex items-center space-x-3",children:(0,n.jsx)("span",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:P})}),null!=s&&(0,n.jsxs)("div",{className:"mt-3 text-xs flex items-center gap-2",children:[(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 text-gray-500 dark:text-gray-400",children:[u(r),(0,n.jsx)("span",{className:"capitalize",children:r})]}),(0,n.jsx)("span",{className:"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white px-2 py-1 rounded-full font-semibold",children:T}),$&&(0,n.jsxs)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold ".concat(d(Number(c),f)),children:[_&&(0,n.jsx)(_,{className:"h-4 w-4 mr-0.5"}),O,"%"]})]}),null!=m&&(0,n.jsxs)("div",{className:"mt-2 text-xs flex items-center gap-2",children:[(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 text-gray-500 dark:text-gray-400",children:[u(h),(0,n.jsx)("span",{className:"capitalize",children:h})]}),(0,n.jsx)("span",{className:"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white px-2 py-1 rounded-full font-semibold",children:H}),D&&(0,n.jsxs)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold ".concat(d(Number(g),f)),children:[F&&(0,n.jsx)(F,{className:"h-4 w-4 mr-0.5"}),L,"%"]})]}),y&&y.length>1&&(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)(l,{options:{chart:{id:"kpi-sparkline",sparkline:{enabled:!0},background:"transparent",toolbar:{show:!1}},stroke:{curve:"smooth",width:3},fill:{type:"gradient",gradient:{shadeIntensity:.6,opacityFrom:.7,opacityTo:.1,stops:[0,90,100]}},xaxis:{categories:x,labels:{show:!1}},tooltip:{enabled:!0,y:{formatter:e=>o(w,e,p)},x:{formatter:(e,t)=>{var r;let{dataPointIndex:n}=t;return null!=(r=null==x?void 0:x[n])?r:e}}},colors:["#3b82f6"],markers:{size:4},grid:{show:!1},yaxis:{show:!1},axisBorder:{show:!1},axisTicks:{show:!1},dataLabels:{enabled:!1}},series:[{name:v,data:y}],type:"area",height:100,width:"100%"}),(0,n.jsxs)("div",{className:"flex justify-between text-xs text-gray-400 -mt-2",children:[(0,n.jsx)("span",{children:null==x?void 0:x[0]}),(0,n.jsx)("span",{children:null==x?void 0:x[x.length-1]})]})]})]})}},67357:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(95155),a=r(12115),s=r(62146);function i(e){return{default:e&&"default"in e?e.default:e}}r(10255);let l={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},o=function(e){let t={...l,...e},r=(0,a.lazy)(()=>t.loader().then(i)),o=t.loading;function u(e){let i=o?(0,n.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,u=l?a.Suspense:a.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...l?{fallback:i}:{},children:c})}return u.displayName="LoadableComponent",u}},68188:(e,t,r)=>{Promise.resolve().then(r.bind(r,85479))},85479:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(95155),a=r(12115),s=r(55028),i=r(19169),l=r(30832),o=r.n(l),u=r(55184),c=r(75830),d=r(24717);let f=e=>{let{handleBlurAndScroll:t,formSubmitted:r}=e;return(0,n.jsxs)("section",{className:"text-white bg-no-repeat bg-cover bg-center relative h-screen flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-[url('/images/hotels-background-1.jpg')] bg-cover bg-center"}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-[#002244] via-[#003366]/80 to-[#002244]"}),(0,n.jsx)("div",{className:"relative flex flex-col items-center justify-center text-center z-10 max-w-screen-lg px-6",children:(0,n.jsxs)(c.P.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.75},viewport:{once:!0,amount:.5},className:"w-full",children:[(0,n.jsx)("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-extrabold mb-6",children:"Future Focused Accommodation Data for Australia's Tourism Regions"}),(0,n.jsx)("p",{className:"text-lg md:text-xl font-light mb-8",children:"Gain insights into upcoming occupancy trends for all of Australia's tourism regions."}),!r&&(0,n.jsx)("div",{className:"flex justify-center mb-8",children:(0,n.jsxs)("button",{onClick:t,className:"inline-flex items-center py-3 px-6 font-medium text-white bg-[#b2602f] rounded-lg hover:bg-orange-500 transition-all",children:[(0,n.jsx)(d.HiOutlineArrowRight,{className:"mr-2"})," View Free Data"]})})]})})]})},h=e=>{let{setFormSubmitted:t}=e;return(0,a.useEffect)(()=>{let e=()=>{let r=document.getElementById("freeToolsHubspotForm");window.hbspt&&r?window.hbspt.forms.create({portalId:"39998880",formId:"ececc873-1bd9-4a76-8894-b5f00a29abf4",target:"#freeToolsHubspotForm",onFormSubmitted:()=>{t()}}):setTimeout(e,100)};e()},[t]),(0,n.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",children:(0,n.jsxs)(u.aF,{show:!0,onClose:()=>{},size:"lg",children:[(0,n.jsx)(u.aF.Header,{children:"Access the Data"}),(0,n.jsx)(u.aF.Body,{children:(0,n.jsx)("div",{id:"freeToolsHubspotForm"})})]})})};var m=r(64157),g=r(39663);let y=(0,s.default)(()=>Promise.all([r.e(4134),r.e(1982),r.e(479),r.e(9249)]).then(r.bind(r,90479)),{loadableGenerated:{webpack:()=>[90479]},ssr:!1}),x=["Adelaide","Adelaide Hills","Alice Springs","Australia's Coral Coast","Australia's Golden Outback","Australia's North West","Australia's South West","Ballarat","Barkly","Barossa","Bendigo Loddon","Blue Mountains","Brisbane","Bundaberg","Canberra","Capital Country","Capricorn","Central Coast","Central Highlands","Central Murray","Central NSW","Clare Valley","Darwin","Destination Perth","East Coast","Eyre Peninsula","Fleurieu Peninsula","Flinders Ranges and Outback","Fraser Coast","Geelong and the Bellarine","Gippsland","Gladstone","Gold Coast","Goulburn","Great Ocean Road","High Country","Hobart and the South","Hunter","Kangaroo Island","Katherine Daly","Lakes","Lasseter","Launceston and the North","Limestone Coast","Litchfield Kakadu Arnhem","MacDonnell","Macedon","Mackay","Mallee","Melbourne","Murray East","Murray River, Lakes and Coorong","New England North West","North Coast NSW","North West","Outback NSW","Outback Queensland","Peninsula","Phillip Island","River
1ina","Riverland","Snowy Mountains","South Coast","Southern Queensland Country","Spa Country","Sunshine Coast","Sydney","The Murray","Townsville","Tropical North Queensland","West Coast","Western Grampians","Whitsundays","Wimmera","Yarra Valley and the Dandenong Ranges","Yorke Peninsula"];function p(){(0,a.useEffect)(()=>{document.title="Future Occupancy | Free Tools | Localis";let e=document.querySelector("meta[name='description']");e&&e.setAttribute("content","Gain insights into upcoming occupancy trends for all of Australia's tourism regions.");let t=document.querySelector("meta[property='og:title']");t&&t.setAttribute("content","Future Occupancy | Free Tools | Localis");let r=document.querySelector("meta[property='og:description']");r&&r.setAttribute("content","Gain insights into upcoming occupancy trends for all of Australia's tourism regions.")},[]);let[e,t]=(0,a.useState)("Brisbane"),[r,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>(r?document.body.style.overflow="auto":document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto"}),[r]);let{data:d,error:p}=(0,i.Ay)(e?["/api/localis_django_api/dispatcher/",e]:null,e=>{let[t,r]=e;return fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encryptedData:(0,g.y)({fetch_type:"tool_future_occupancy_tourism_region",tourism_region_name:r})})}).then(e=>{if(!e.ok)throw Error("Fetch error");return e.json()})}),b=(null==d?void 0:d.data)||[],v=e&&!d&&!p,w=o()().startOf("day"),j=e=>{let t=b.filter(t=>{let r=o()(t.pricing_date).diff(w,"days");return r>=0&&r<e});return t.length?t.reduce((e,t)=>e+t.future_occupancy_this_year,0)/t.length:0},N=(0,a.useMemo)(()=>j(7),[b,w]),S=(0,a.useMemo)(()=>j(14),[b,w]),$=(0,a.useMemo)(()=>j(30),[b,w]),{mode:k}=(0,u.eP)(),M="dark"===k,_="transparent",O=M?"#f7f1ea":"#173a2c",D=M?"#444444":"#e5e7eb",C=M?["#60a5fa","#a5b4fc","#34d399","#fbbf24","#f87171","#c084fc","#fcd34d","#86efac"]:["#2563eb","#6366f1","#14b8a6","#f59e42","#f87171","#c026d3","#fbbf24","#a3e635"],A=(0,a.useMemo)(()=>b.map(e=>[o()(e.pricing_date).valueOf(),null!=e.future_occupancy_this_year?100*e.future_occupancy_this_year:null]).sort((e,t)=>e[0]-t[0]),[b]),F=(0,a.useMemo)(()=>{let e="";return{backgroundColor:_,color:C,textStyle:{fontFamily:"Plus Jakarta Sans, sans-serif"},tooltip:{trigger:"axis",backgroundColor:M?"rgba(30,30,30,0.96)":"rgba(255,255,255,0.96)",borderColor:M?"#444":"#e5e7eb",padding:0,formatter:function(e){if(!e||!e.length)return"";let t=e[0],r=o()(t.axisValue).format("ddd, D MMM YYYY"),n=null==t.value[1]||isNaN(t.value[1])?"—":"".concat(t.value[1].toFixed(2),"%");return'\n            <div style="padding:6px; font-family: \'Plus Jakarta Sans\', sans-serif;">\n              <div style="font-weight:600;margin-bottom:6px;color:'.concat(O,'">').concat(r,'</div>\n              <div style="font-size:13px;color:').concat(O,'">\n                ').concat(t.marker,' <span style="font-weight:600;">').concat(t.seriesName,"</span>: ").concat(n,"\n              </div>\n            </div>\n          ")}},grid:{top:20,left:55,right:20,bottom:30,containLabel:!1},xAxis:{type:"time",axisLine:{lineStyle:{color:D}},axisTick:{lineStyle:{color:D}},splitLine:{show:!1},axisLabel:{color:O,hideOverlap:!0,formatter:(t,r)=>{0===r&&(e="");let n=o()(t).format("D MMM 'YY");return n===e?"":(e=n,n)}}},yAxis:{type:"value",name:"Future Occupancy (%)",nameLocation:"middle",nameGap:40,nameTextStyle:{fontWeight:"bold",color:O},min:0,max:100,axisLabel:{formatter:"{value}%",color:O},splitLine:{lineStyle:{color:D}}},series:[{name:"Future Occupancy",type:"line",data:A,smooth:!0,showSymbol:!1,symbol:"circle",itemStyle:{color:C[0]},lineStyle:{width:4}}]}},[_,M,O,D,C,A]);return(0,n.jsxs)("div",{className:"relative min-h-screen",children:[(0,n.jsx)(f,{handleBlurAndScroll:()=>{c(!0)},formSubmitted:r}),l&&!r&&(0,n.jsx)(h,{setFormSubmitted:()=>{s(!0);let e=document.getElementById("embed-section");e&&e.scrollIntoView({behavior:"smooth"})}}),r&&(0,n.jsx)("section",{id:"embed-section",className:"bg-gray-50 py-12 px-6 mx-auto max-w-screen-xl",style:{pointerEvents:r?"auto":"none"},children:(0,n.jsxs)("div",{className:"bg-white p-8 rounded-lg shadow-lg",children:[(0,n.jsx)("h2",{className:"text-3xl font-bold text-gray-800 text-center mb-4",children:"Future Occupancy"}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,n.jsx)("p",{className:"text-2xl font-light text-gray-800 mb
1-8",children:"Available for all of Australia's tourism regions..."}),(0,n.jsxs)("div",{className:"flex flex-col items-center mb-8",children:[(0,n.jsx)("label",{htmlFor:"region-select",className:"text-xs font-medium dark:text-white tracking-wide uppercase mb-2",children:"Select a Tourism Region"}),(0,n.jsx)("select",{id:"region-select",className:"w-64 border rounded p-2",value:e,onChange:e=>t(e.target.value),children:x.map(e=>(0,n.jsx)("option",{value:e,children:e},e))})]}),v&&(0,n.jsx)("div",{className:"flex justify-center py-16",children:(0,n.jsx)(u.y$,{size:"xl"})}),p&&(0,n.jsx)("p",{className:"text-center text-red-600 mt-8",children:"Error loading data. Please try again."}),e&&d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-4 w-full",children:[(0,n.jsx)(m.A,{metricLabel:"Next 7 Days",value:(100*N).toFixed(2),sparklineUnit:"%"}),(0,n.jsx)(m.A,{metricLabel:"Next 14 Days",value:(100*S).toFixed(2),sparklineUnit:"%"}),(0,n.jsx)(m.A,{metricLabel:"Next 30 Days",value:(100*$).toFixed(2),sparklineUnit:"%"})]}),(0,n.jsx)(u.Zp,{className:"w-full",children:(0,n.jsx)("div",{className:"h-[350px] w-full",children:(0,n.jsx)(y,{option:F,notMerge:!0,lazyUpdate:!0,style:{height:"100%",width:"100%"}})})})]})]})]})})]})}},85744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17828)}},e=>{e.O(0,[6314,850,4118,7111,2545,4777,2486,2109,5830,3736,9169,8441,5964,7358],()=>e(e.s=68188)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.