PageSourceSearch

https://www.visitriverland.com.au/static/js/main.e8f1f8fa.chunk.js

js visitriverland.com.au collected 2026-09-25 01:18:08 UTC 269,275 bytes, 2 lines download raw bytes

1(this["webpackJsonpreact-frontend"]=this["webpackJsonpreact-frontend"]||[]).push([[0],{172:function(e,t){t.settings={breakpointNames:["xs","sm","md","lg","xl","xxl"],numOfTilesPerBreakpoints:[2,2,2,3,4,6],marginLR:[14,20,20,20,20,20],marginTB:[14,20,20,20,20,20]}},262:function(e,t,n){e.exports=n(525)},460:function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},465:function(e,t,n){},518:function(e,t,n){},525:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"isExternalLink",(function(){return G})),n.d(a,"getLinkFromElement",(function(){return K})),n.d(a,"getLinkInfo",(function(){return J})),n.d(a,"getExtension",(function(){return Z})),n.d(a,"getFilename",(function(){return X})),n.d(a,"getFolderPath",(function(){return $})),n.d(a,"toQueryString",(function(){return ee})),n.d(a,"getYoutubeId",(function(){return te})),n.d(a,"getSlug",(function(){return ne})),n.d(a,"getWebUrl",(function(){return ae}));var r={};n.r(r),n.d(r,"getErrors",(function(){return re})),n.d(r,"getErrorMessage",(function(){return oe}));var o={};n.r(o),n.d(o,"convertToObject",(function(){return le})),n.d(o,"convertToKeyValues",(function(){return ce})),n.d(o,"moveItem",(function(){return se})),n.d(o,"removeItem",(function(){return ue})),n.d(o,"insertItem",(function(){return de})),n.d(o,"find",(function(){return me})),n.d(o,"findIndex",(function(){return pe})),n.d(o,"contains",(function(){return be})),n.d(o,"distinct",(function(){return fe})),n.d(o,"sum",(function(){return ge})),n.d(o,"equal",(function(){return he})),n.d(o,"caseInsensitiveCompare",(function(){return ve})),n.d(o,"compareIgnoreEmpty",(function(){return ye}));var i={};n.r(i),n.d(i,"addDays",(function(){return je})),n.d(i,"formatDate",(function(){return Te})),n.d(i,"formatYYYYMMDD",(function(){return Ce})),n.d(i,"formatDDMMYYYY",(function(){return Ee})),n.d(i,"toDate",(function(){return xe})),n.d(i,"toDateTime",(function(){return Ne})),n.d(i,"parseDate",(function(){return ke})),n.d(i,"isValidDate",(function(){return Se}));var l={};n.r(l),n.d(l,"bgUrl",(function(){return Ie})),n.d(l,"bgUrlStyle",(function(){return Ae})),n.d(l,"screenWidth",(function(){return Pe})),n.d(l,"screenHeight",(function(){return De})),n.d(l,"outerWidth",(function(){return Re})),n.d(l,"outerHeight",(function(){return Le})),n.d(l,"hasClass",(function(){return Me})),n.d(l,"addClass",(function(){return Be})),n.d(l,"removeClass",(function(){return He})),n.d(l,"toggleClass",(function(){return Ue}));var c={};n.r(c),n.d(c,"scrollTo",(function(){return ze})),n.d(c,"findElement",(function(){return Ve})),n.d(c,"querySelectorOrNull",(function(){return qe})),n.d(c,"elementOffset",(function(){return Ye})),n.d(c,"isElementInViewport",(function(){return Ge})),n.d(c,"getCurrentBreakpoint",(function(){return Ke}));var s={};n.r(s),n.d(s,"formatMoney",(function(){return Je})),n.d(s,"toMonthlyCost",(function(){return Qe}));var u={};n.r(u),n.d(u,"isBlank",(function(){return Ze})),n.d(u,"isEmpty",(function(){return Xe})),n.d(u,"isNumeric",(function(){return $e})),n.d(u,"capitalize",(function(){return et})),n.d(u,"toFieldName",(function(){return tt})),n.d(u,"toHtml",(function(){return nt})),n.d(u,"truncateWords",(function(){return at})),n.d(u,"numberWithCommas",(function(){return rt})),n.d(u,"formatNumber",(function(){return ot})),n.d(u,"toTelephoneNumber",(function(){return it})),n.d(u,"like",(function(){return lt}));var d={};n.r(d),n.d(d,"shortId",(function(){return mt})),n.d(d,"guid",(function(){return pt}));var m={};n.r(m),n.d(m,"toCamel",(function(){return bt}));var p={};n.r(p),n.d(p,"getImageSetPath",(function(){return ft})),n.d(p,"getPathDetails",(function(){return gt}));var b={};n.r(b),n.d(b,"overlay",(function(){return Nt}));var f={};n.r(f),n.d(f,"isMobile",(function(){return kt})),n.d(f,"resourcePath",(function(){return St})),n.d(f,"fullUrl",(function(){return It})),n.d(f,"isNZ",(function(){return At}));var g={};n.r(g),n.d(g,"MAX",(function(){return Ut})),n.d(g,"MIN",(function(){return Ft})),n.d(g,"getScrollProgress",(function(){return Wt})),n.d(g,"setClass",(function(){return zt})),n.d(g,"prVal",(function(){return Vt})),n.d(g,"transform",(function(){return qt})),n.d(g,"removeTransform",(function(){return Yt})),n.d(g,"getScreenSize",(function(){return Gt}));var h={};n.r(h),n.d(h,"hasGTM",(function(){return Xa})),n.d(h,"pageView",(function(){return $a})),n.d(h,"sendEvent",(function(){return er})),n.d(h,"sendGAEvent",(function(){return tr}));n(263),n(273),n(460);var v=n(2),y=n.n(v),_=n(35),O=n.n(_),w=(n(465),n(25)),j=n(76);function T(e){var t=e.debugInfo;return y.a.createElement("div",{className:"error-panel"},y.a.createElement("div",{className:"container"},y.a.createElement("h1",null,"404 Error"),y.a.createElement("p",null,"Please ",y.a.createElement("a",{href:"/",onClick:function(e){return function(e){e.preventDefault(),"undefined"!==typeof window&&window.location.reload()}(e)}},"refresh")," your browser."),y.a.createElement("div",null,y.a.createElement("button",{onClick:function(e){return function(e){e.preventDefault(),"undefined"!==typeof window&&window.history.back()}(e)}},"or Go Back")),t&&y.a.createElement("pre",{style:{marginTop:"3rem",color:"chocolate",fontSize:"0.7rem"}},"Error message: ",t.pageUrl," - ",t.loadFrom," ")))}var C=n(3),E=n(5),x={isProd:!0,locale:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_API_ENDPOINT:"",REACT_APP_BAZZAR_CLIENT_ID:"id here",REACT_APP_BAZZAR_ENV:"staging",REACT_APP_BAZZAR_SITE_ID:"main_site",REACT_APP_CMS_ENDPOINT:"http://cms.visitriverland.com.au",REACT_APP_GTM:"GTM-M2JNQJ6",REACT_APP_RECAPTCHASITEKEY:"6LecuWgsAAAAAKu4sQiNmvUh7oVX-naU2LSwzbYM",REACT_APP_RESOURCE_BASEURL:"",REACT_APP_SITECODE:"dr5",REACT_APP_SITENAME:"Riverland",REACT_APP_STRIPE_KEY:"",REACT_APP_TITLESUFFIX:"Riverland, South Australia",REACT_APP_UPDATED_AT:"2026-07-07",REACT_APP_VERSION:"1.1.243"}).REACT_APP_COUNTRY_LOCALE||function(){if("undefined"!==typeof window){if(window.location.hostname.toLowerCase().indexOf(".nz")>=0)return"nz";if(window.location.hostname.toLowerCase().indexOf("-nz")>=0)return"nz";if("?nz=true"===window.location.search)return"nz"}return"au"}(),siteName:"Riverland",titleSuffix:"Riverland, South Australia",siteCode:"dr5",apiBase:"",resourceBase:"",baseOrigin:function(){if("undefined"!==typeof window)return window.location.origin;return Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_API_ENDPOINT:"",REACT_APP_BAZZAR_CLIENT_ID:"id here",REACT_APP_BAZZAR_ENV:"staging",REACT_APP_BAZZAR_SITE_ID:"main_site",REACT_APP_CMS_ENDPOINT:"http://cms.visitriverland.com.au",REACT_APP_GTM:"GTM-M2JNQJ6",REACT_APP_RECAPTCHASITEKEY:"6LecuWgsAAAAAKu4sQiNmvUh7oVX-naU2LSwzbYM",REACT_APP_RESOURCE_BASEURL:"",REACT_APP_SITECODE:"dr5",REACT_APP_SITENAME:"Riverland",REACT_APP_STRIPE_KEY:"",REACT_APP_TITLESUFFIX:"Riverland, South Australia",REACT_APP_UPDATED_AT:"2026-07-07",REACT_APP_VERSION:"1.1.243"}).GATSBY_BASEURL}(),cmsEndpoint:"http://cms.visitriverland.com.au",ver:"1.1.243",updateDate:"2026-07-07",stripeKey:"",reCaptchaSiteKey:"6LecuWgsAAAAAKu4sQiNmvUh7oVX-naU2LSwzbYM"};console.log(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_API_ENDPOINT:"",REACT_APP_BAZZAR_CLIENT_ID:"id here",REACT_APP_BAZZAR_ENV:"staging",REACT_APP_BAZZAR_SITE_ID:"main_site",REACT_APP_CMS_ENDPOINT:"http://cms.visitriverland.com.au",REACT_APP_GTM:"GTM-M2JNQJ6",REACT_APP_RECAPTCHASITEKEY:"6LecuWgsAAAAAKu4sQiNmvUh7oVX-naU2LSwzbYM",REACT_APP_RESOURCE_BASEURL:"",REACT_APP_SITECODE:"dr5",REACT_APP_SITENAME:"Riverland",REACT_APP_STRIPE_KEY:"",REACT_APP_TITLESUFFIX:"Riverland, South Australia",REACT_APP_UPDATED_AT:"2026-07-07",REACT_APP_VERSION:"1.1.243"}),x);var N=Object(E.a)(Object(E.a)({},x),{},{getDevCartId:function(){return x.isProd||"undefined"===typeof window?null:window.localStorage.getItem("cart")},setDevCartId:function(e){x.isProd||"undefined"===typeof window||window.localStorage.setItem("cart",e)}});function k(e){var t=y.a.useState("idle"),n=Object(C.a)(t,2),a=n[0],r=n[1],o=N.ver,i=N.updateDate;y.a.useEffect((function(){if(console.log(a),"checking"===a){"undefined"!==typeof window&&window.updateSW().then((function(){console.log("sw update called"),r("checked")}));var e=setTimeout((function(){"undefined"!==typeof window&&window.location.reload()}),5e3);return function(){clearTimeout(e)}}}
1),[a]);var l=null;return l="checking"===a?y.a.createElement("button",{className:"btn btn-primary",type:"button"},"Checking App Version..."):"checked"===a?y.a.createElement(y.a.Fragment,null,y.a.createElement("button",{className:"btn btn-primary",type:"button",onClick:function(e){"undefined"!==typeof window&&window.location.reload()}},"Reloading App...")," ",y.a.createElement("div",null,"(If this does't reload automatically, please click the above button)")):y.a.createElement("button",{className:"btn btn-primary",type:"button",onClick:function(e){"undefined"!==typeof window&&(window.updateSW?r("checking"):window.location.reload())}},"Update App (Refresh)"),y.a.createElement("div",{className:"appInfo htmlPanel"},y.a.createElement("div",{className:"appInfo__ver"},y.a.createElement("b",null,"Version"),": ",o," (",i,")"),y.a.createElement("div",{style:{marginTop:"1rem"}},l))}function S(e){return y.a.createElement("div",{style:{margin:"5rem auto",width:"900px"}},y.a.createElement(k,null))}function I(e){var t=e.onClick,n=e.status,a=e.children,r=e.btnStyle,o=void 0===r?"primary":r,i=e.className,l="btn-"+o;return y.a.createElement("button",{className:"btn ".concat(l," ").concat(i),onClick:t,type:"button",disabled:"pending"===n},"pending"===n&&y.a.createElement("span",{className:"spinner-grow spinner-grow-sm",role:"status","aria-hidden":"true"}),a)}var A=function(e){var t=e.errors,n=e.summaryMessage;if(!t)return null;if("undefined"!==typeof t.length&&0===t.length)return null;if(n)return y.a.createElement("div",{className:"error",role:"alert"},n);var a=t;if(Array.isArray(t)){if(0===t.length)return null;a=t.map((function(e,t){return y.a.createElement("div",{key:t},e)}))}return y.a.createElement("div",{className:"error",role:"alert"},a)},P=n(1),D=function(e){var t=e.title||"Errors",n=e.errors,a=[];n&&(Array.isArray(n)?a=n:a.push(n));var r=Object(P.a)({position:"fixed",padding:"3rem",width:"800px",maxWidth:"90vw",maxHeight:"90vw",background:"white",color:"red",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:"1000"});return Object(P.b)("div",{css:r},Object(P.b)("h3",null,t),e.children,a.map((function(e,t){return Object(P.b)("div",{key:t,dangerouslySetInnerHTML:{__html:e}})})))};var R={dkColor:"#3b3b3b",dkOrangeColor:"#b35128",dkBlueColor:"#132734",sandCtoneColor:"#fdf8e6",blieColor:"#4d868f",greenColor:"#85af96",orangeColor:"#f26c33",yellowColor:"#ffef9a"},L=Object(E.a)(Object(E.a)({familyBase:'"GT Eesti Pro Text",sans-serif',familyHeader:'"GT Eesti Pro Text",serif',primaryColor:"#c20f2f",fontColor:R.dkColor,bgColor:"#ebebeb"},R),{breakpointNames:["sm","md","lg","xl","xxl"],breakpoints:[576,768,992,1200,1600]}),M={cssEmotion:{breakpointNames:L.breakpointNames,breakpoints:L.breakpoints}},B=M&&M.iconColors||{primary:"#eee",secondary:"#000"};var H=function(e){return v.createElement("svg",Object.assign({width:200,height:200,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},e),v.createElement("circle",{cx:50,cy:50,r:29.973,fill:"none",stroke:B.primary,strokeWidth:8},v.createElement("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0;40",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:"-0.9259259259259258s"}),v.createElement("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:"-0.9259259259259258s"})),v.createElement("circle",{cx:50,cy:50,r:8.673,fill:"none",stroke:B.secondary,strokeWidth:8},v.createElement("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0;40",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline"}),v.createElement("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline"})))};function U(e){var t=e.children,n=y.a.useState(!1),a=Object(C.a)(n,2),r=a[0],o=a[1],i={loading:Object(P.a)({minHeight:"300px",display:"flex",justifyContent:"center",alignItems:"center",opacity:"0",transition:"all 1s"}),loaded:Object(P.a)({opacity:"1"})};return y.a.useEffect((function(){var e=setTimeout((function(){return o(!0)}),500);return function(){clearTimeout(e)}}),[]),Object(P.b)("div",{css:[i.loading,r?i.loaded:{}]}
1,Object(P.b)("div",null,Object(P.b)(H,null),t))}var F=n(24),W=n(15),z=n.n(W),V=n(26),q=n(67),Y=n.n(q);function G(e){return e&&(0===e.indexOf("https://")||0===e.indexOf("http://")||0===e.indexOf("://"))}function K(e){if(!e)return null;var t=e.closest("a");return t?t.getAttribute("href"):null}function J(e){if(!e)return null;var t="undefined"!==typeof window&&window.location&&window.location.origin,n="undefined"!==typeof window&&window.location&&window.location.pathname,a=e.replace(t,"").replace(n+"#","#"),r=e.toLowerCase(),o=G(a),i=0===a.indexOf("#"),l=0===a.indexOf("tel:"),c=0===a.indexOf("mailto:");return{url:a,type:(i?"hash":l&&"tel")||c&&"mailto"||function(e){for(var t=0;t<Q.length;t++)if(e.indexOf(Q[t])>=0)return!0;return!1}(r)&&"static"||o&&"external"||"internal",ext:Z(e)}}var Q=[".pdf",".jpg",".png",".gif",".docx",".doc"];function Z(e){return!e||e.indexOf(".")<0?null:e.split(".").pop().toLowerCase()}function X(e){return e.split("/").pop().split("?")[0]}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.split("/").slice(0,t).join("/")}function ee(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function te(e){return void 0!==(e=e.split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]?e[2].split(/[^0-9a-z_-]/i)[0]:e[0]}function ne(e){return e.toLowerCase().replace(/ /g,"-").replace(/[-]+/g,"-").replace(/[^\w-]+/g,"")}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https://";return e?e.indexOf("https:")>=0||e.indexOf("http:")>=0||e.indexOf(":")>=0?e:t+e:null}var re=function(e){var t=[];return e&&e.errors&&e.errors.length>0&&e.errors.forEach((function(e){t.push(e.errorMessage)})),t},oe=function(e){return re(e).join(" ")},ie=n(70),le=function(e,t){return e.reduce((function(e,n){return Object(E.a)(Object(E.a)({},e),{},Object(ie.a)({},n[t],n))}),{})},ce=function(e,t,n){return e.reduce((function(e,a){return Object(E.a)(Object(E.a)({},e),{},Object(ie.a)({},a[t],a[n]))}),{})},se=function(e,t,n){var a=e.splice(t,1),r=Object(C.a)(a,1)[0];return e.splice(n,0,r),e},ue=function(e,t){return e.splice(t,1),e},de=function(e,t,n){return e.splice(t,0,n),e},me=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null},pe=function(e,t){if(!e)return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},be=function(e,t){return pe(e,t)>=0},fe=function(e,t){for(var n=[],a=function(a){be(n,(function(n){return t(n,e[a])}))||n.push(e[a])},r=0;r<e.length;r++)a(r);return n},ge=function(e,t){if(!e)return 0;for(var n=0,a=0;a<e.length;a++)n+=t(e[a])||0;return n},he=function(e,t,n){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++){for(var r=!1,o=0;o<t.length;o++)if(n(e[a],t[a])){r=!0;break}if(!r)return!1}return!0},ve=function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())},ye=function(e){return e?function(e,t){return(null===e||isNaN(e))-(null===t||isNaN(t))||+(e>t)||-(e<t)}:function(e,t){return(null===e||isNaN(e))-(null===t||isNaN(t))||-(e>t)||+(e<t)}},_e=n(259),Oe=n(168),we=n(260),je=function(e,t){var n=new Date(e);return n.setDate(n.getDate()+t),n};function Te(e,t){var n=xe(e);return n?Object(we.a)(n,t):""}function Ce(e){var t=xe(e);if(!t)return"";var n=t.getDate(),a=t.getMonth()+1,r=t.getFullYear();return n<10&&(n="0"+n),a<10&&(a="0"+a),"".concat(r,"-").concat(a,"-").concat(n)}function Ee(e){var t=xe(e);if(!t)return"";var n=t.getDate(),a=t.getMonth()+1,r=t.getFullYear();return n<10&&(n="0"+n),a<10&&(a="0"+a),"".concat(n,"-").concat(a,"-").concat(r)}function xe(e){return e?"string"===typeof e?ke(e,"yyyy-MM-dd")||ke(e,"yyyy-M-d")||ke(e,"dd/MM/yyyy")||ke(e,"d/M/yyyy")||Object(Oe.a)(e):e:null}function Ne(e){return e?"string"===typeof e?ke(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")||ke(e,"yyyy-MM-dd HH:mm:ss.SSSxxx")||ke(e,"yyyy-M-d HH:mm:ss.SSSxxx")||ke(e,"dd/MM/yyyy HH:mm:ss.SSSxxx")||ke(e,"d/M/yyyy HH:mm:ss.SSSxxx")||Object(Oe.a)(e):e:null}function ke(e,t){var n=Object(_e.a)(e,t,new Date);return n&&Se(n)?n:null}function Se(e){return e instanceof Date&&!isNaN(e)}var Ie=function(e){return'background-image:url("'+encodeURI(decodeURI(e))+'")'},Ae=function(e){return'url("'+encodeURI(decodeURI(e))+'")'},Pe=function(){return"undefined"!==typeof window?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:0},De=function(){return"undefined"!==typeof window?window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight:0},Re=function(e){return e.offsetWidth},Le=function(e){return e.offsetHeight},Me=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)".concat(t,"(\\s|$)")))},Be=function(e,t){e.classList?e.classList.add(t):Me(e,t)||(e.className+=" ".concat(t))},He=function(e,t){if(e.classList)e.classList.remove(t);else if(Me(e,t)){var n=new RegExp("(\\s|^)".concat(t,"(\\s|$)"));e.className=e.className.replace(n," ")}},Ue=function(e,t,n){if(e&&t)return n?Be(e,t):void He(e,t)},Fe=n(108),We=n(248);function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:750,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=Ve(e);return!!a&&(setTimeout((function(){var e=Ye(a);Fe.a.to(window,{duration:t/1e3,scrollTo:e.top-100,ease:"power1"})}),n),!0)}function Ve(e){return"string"!==typeof e?e:qe(e)||qe("#"+e)||qe("."+e)}function qe(e){try{return document.querySelector(e)}catch(t){return null}}function Ye(e){var t=e.getBoundingClientRect(),n="undefined"!==typeof window?window.pageXOffset||document.documentElement.scrollLeft:0,a="undefined"!==typeof window?window.pageYOffset||document.documentElement.scrollTop:0;return{top:t.top+a,left:t.left+n,width:e.offsetWidth,height:e.offsetHeight}}function Ge(e){if("undefined"!==typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}return!0}function Ke(){if("undefined"===typeof window)return null;var e=document.querySelector(".devMediaQueryStatus__current");return e?window.getComputedStyle(e,":before").getPropertyValue("content").replace(/["']/g,""):null}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t});return n.format(e)}function Qe(e,t){return e?"Week"===t?52.1429*e/12:"Fortnight"===t?52.1429*e/2/12:"Month"===t?e:"Quarter"===t?4*e/12:"Year"===t?e/12:e:0}function Ze(e){return!e||/^\s*$/.test(e)}function Xe(e){return!e||0===e.length}function $e(e){return!isNaN(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}function tt(e){return e?et(e.replace(/([A-Z]+)/g," $1").replace(/([A-Z][a-z])/g," $1").trim()):null}function nt(e){return e?e.replace(/[\n\r]/g,"<br/>"):null}function at(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"...";if(e.length<=t)return e;var r=e.lastIndexOf(n,t);return e.substr(0,r)+a}function rt(e){var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}Fe.a.registerPlugin(We.a);var ot=function(e){return 0===e?"0":e?Math.round(100*e)/100:""},it=function(e){return(e||[]).replace(/[^+\d]+/g,"")},lt=function(e,t){return"string"===typeof t&&null!==e&&(t=(t=t.replace(new RegExp("([\\.\\\\\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:\\-])","g"),"\\$1")).replace(/%/g,".*").replace(/_/g,"."),RegExp("^"+t+"$","gi").test(e))},ct=n(90),st=n.n(ct),ut=n(249),dt=n.n(ut);function mt(){return st()()}function pt(){return dt()()}function bt(e){var t,n,a,r;if(e instanceof Array)return e.map((function(e){return"object"===typeof e&&(e=bt(e)),e}));for(n in t={},e)e.hasOwnProperty(n)&&(a=(n.charAt(0).toLowerCase()+n.slice(1)||n).toString(),((r=e[n])instanceof Array||null!==r&&r.constructor===Object)&&(r=bt(r)),t[a]=r);return t}function ft(e,t){var n=gt(e);return n?n.baseFolder+"/@"+t+"/"+n.filename:e}function gt(e,t){if(!e)return null;var n=e.split("/").slice(0,-1);
1if(n.length<=1)return{baseFolder:"/",setId:null,filename:X(e)};var a=n[n.length-1];return(t&&t.length>0?be(t,(function(e){return e===a})):0===a.indexOf("@"))?{baseFolder:n.slice(0,-1).join("/"),setId:a,filename:X(e)}:{baseFolder:n.join("/"),setId:null,filename:X(e)}}var ht={classNames:Y.a,url:a,form:r,array:o,date:i,css:l,ui:c,money:s,text:u,random:d,object:m,media:p},vt=n(132),yt=M.cssEmotion,_t=yt&&yt.breakpointNames||["sm","md","lg","xl","xxl"],Ot=yt&&yt.breakpoints||[576,768,992,1200,1600],wt=Object(vt.a)(Ot.map((function(e){return"@media (min-width: ".concat(e,"px)")}))),jt={};_t.forEach((function(e,t){return jt[e]="@media (min-width: ".concat(Ot[t],"px)")}));var Tt={};_t.forEach((function(e,t){return Tt[e]="@media (max-width: ".concat(Ot[t]-1,"px)")}));var Ct=function(e){return!!window.matchMedia(e).matches},Et={};_t.forEach((function(e,t){return Et[e]=function(){return Ct("(min-width: ".concat(Ot[t],"px)"))}}));var xt={};function Nt(){return{content:"''",position:"absolute",top:0,bottom:0,left:0,right:0,transition:"all 0.5s"}}_t.forEach((function(e,t){return xt[e]=function(){return Ct("(max-width: ".concat(Ot[t]-1,"px)"))}}));var kt=function(){return!Et.md()};function St(e){return e?e&&0===e.indexOf("/assets/")||Pt.url.isExternalLink(e)?e:N.resourceBase+e:null}function It(e){return Pt.url.isExternalLink(e)?e:N.baseOrigin+e}var At="nz"===N.locale,Pt=Object(E.a)(Object(E.a)({},ht),{},{site:f});function Dt(e){var t=Object(v.useState)({}),n=Object(C.a)(t,2),a=n[0],r=n[1],o=Object(v.useState)([]),i=Object(C.a)(o,2),l=i[0],c=i[1],s=Object(v.useState)("ready"),u=Object(C.a)(s,2),d=u[0],m=u[1],p=Object(v.useState)(null),b=Object(C.a)(p,2),f=b[0],g=b[1];Object(v.useEffect)((function(){f&&(r(null),c([]),m("ready"),function(){var e=Object(V.a)(z.a.mark((function e(){var t,n,a,o,i,l;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m("pending"),e.prev=1,t=f.options||{},e.t0=M.apiNetJwt,!e.t0){e.next=7;break}return e.next=7,M.apiNetJwt(t);case 7:return e.next=9,fetch(f.url,t);case 9:if((n=e.sent).ok){e.next=28;break}return e.prev=11,e.next=14,n.json();case 14:if(a=e.sent,console.log(a),!a.message){e.next=20;break}return c([a.message]),m("error"),e.abrupt("return");case 20:e.next=24;break;case 22:e.prev=22,e.t1=e.catch(11);case 24:return o=401===n.status?"Permission denied. Please login first.":n.statusText,c(["Error - ["+n.status+"]"+(o&&" - "+o)]),m("error"),e.abrupt("return");case 28:return e.next=30,n.text();case 30:if(i=e.sent,!((l=i&&i.length?JSON.parse(i):null)&&l.errors&&l.errors.length>0)){e.next=36;break}return c(Pt.form.getErrors(l)),m("error"),e.abrupt("return");case 36:r(l),m("done"),e.next=44;break;case 40:e.prev=40,e.t2=e.catch(1),c([e.t2.toString()]),m("error");case 44:case"end":return e.stop()}}),e,null,[[1,40],[11,22]])})));return function(){return e.apply(this,arguments)}}()())}),[f]);return{request:f,response:a,errors:l,status:d,hasErrors:function(){return"error"===d},containsErrorMessage:function(e){var t=(e||"").toLowerCase();return l.some((function(e){return(e||"").toLowerCase().indexOf(t)>=0}))},addErrors:function(e){c.apply(void 0,Object(F.a)(l).concat(Object(F.a)(e))),m("error")},done:function(){return"done"===d},send:function(){m("ready"),g(e.apply(void 0,arguments))},sendRaw:function(e){m("ready");for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];g(e.apply(void 0,n))},setResult:function(e){r(e),m("done")},reset:function(){m("ready"),c([])}}}function Rt(){var e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{url:e,options:Object(E.a)(Object(E.a)({},n),{},{method:"POST",body:t})}},t=Dt((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{url:e,options:Object(E.a)(Object(E.a)({},n),{},{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}}));return Object(E.a)(Object(E.a)({},t),{},{loading:function(){return"ready"===t.status||"pending"===t.status},sending:function(){return"pending"===t.status},sendFormData:function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t.sendRaw.apply(t,[e].concat(a))}})}function Lt(){var e=Dt((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{url:e,options:Object(E.a)(Object(E.a)({},t),{},{method:"GET"})}}));return Object(E.a)(Object(E.a)({},e),{},{loading:function(){return"ready"===e.status||"pending"===e.status}})}function Mt(e){return y.a.createElement("div",{className:"devMediaQueryStatus",style:{display:N.isProd?"none":"block"}},y.a.createElement("div",{className:"devMediaQueryStatus__current"}))}var Bt=n(133);function Ht(e){var t=e.data,n=Object.assign({},{title:""},t);return y.a.createElement(y.a.Fragment,null,y.a.createElement(Bt.a,null,y.a.createElement("title",null,n.title),n.description&&y.a.createElement("meta",{name:"description",content:n.description}),n.keywords&&y.a.createElement("meta",{name:"keywords",content:n.keywords}),n.language&&y.a.createElement("meta",{name:"language",content:n.language}),n.country&&y.a.createElement("meta",{name:"country",content:n.country}),n.faceBookDomainVerifi&&""!==n.faceBookDomainVerifi&&y.a.createElement("meta",{name:"facebook-domain-verification",content:n.faceBookDomainVerifi}),y.a.createElement("meta",{name:"twitter:card",content:n.heroImageUrl?"summary_large_image":"summary"}),y.a.createElement("meta",{name:"twitter:site",content:n.siteName}),y.a.createElement("meta",{name:"twitter:title",content:n.title}),n.description&&y.a.createElement("meta",{name:"twitter:description",content:n.description}),n.heroImageUrl&&y.a.createElement("meta",{name:"twitter:image",content:n.heroImageUrl}),y.a.createElement("meta",{name:"og:title",content:n.title}),y.a.createElement("meta",{name:"og:site_name",content:n.siteName}),y.a.createElement("meta",{name:"og:url",content:n.url}),n.description&&y.a.createElement("meta",{name:"og:description",content:n.description}),n.heroImageUrl&&y.a.createElement("meta",{name:"og:image",content:n.heroImageUrl}),y.a.createElement("link",{rel:"canonical",href:n.canonical||n.url}),(n.alternates||[]).map((function(e,t){return y.a.createElement("link",{rel:"alternate",key:t,hreflang:e.hreflang,href:e.href})}))))}var Ut=1e5,Ft=-1e5;function Wt(e){if("undefined"!==typeof window){var t=window.scrollY||window.pageYOffset;if(!e)return console.log("not exists",e),{progress:0,top:t};var n=e.getBoundingClientRect().top+t,a={top:t,bottom:t+window.innerHeight,height:window.innerHeight},r={top:n,bottom:n+e.clientHeight,height:e.clientHeight};return{progress:(a.bottom-r.top)/(r.height+a.height),top:(a.bottom-r.top)/a.height}}return{progress:0,top:0}}function zt(e,t,n,a){n>=a[0]&&n<=a[1]?Pt.css.addClass(e,t):Pt.css.removeClass(e,t)}function Vt(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[0,1];return n<a[0]?e:n>a[1]?t:e+(t-e)*((n-a[0])/(a[1]-a[0]))}function qt(e,t,n){e.style.transform="translate("+t+","+n+")"}function Yt(e){}function Gt(){return{width:Pt.css.screenWidth(),height:Pt.css.screenHeight()}}var Kt="undefined"!==typeof window?window:{},Jt="__j6_lazy_js";function Qt(){for(var e=[],t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];
1return n.forEach((function(t){return e.push(Zt(t,Kt))})),Promise.all(e)}function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t||Kt;return a[Jt]||(a[Jt]={}),new Promise((function(t,r){if(!n&&a[Jt][e]&&a[Jt][e].loaded)t({script:e,loaded:!0,networkLoaded:!1,status:"Already Loaded"});else{var o=document.querySelector('script[src="'+e+'"]');o&&o.remove();var i=document.createElement("script");i.type="text/javascript",i.src=e,i.onload=function(){a[Jt][e]={loaded:!0},t({script:e,loaded:!0,networkLoaded:!0,status:"Loaded"})},i.onerror=function(n){return t({script:e,loaded:!1,status:"Load failed"})},document.getElementsByTagName("head")[0].appendChild(i)}}))}var Xt={cutoffPadding:10,speed:15},$t={settings:{screenSize:null},panels:[{selector:".parallax",imageRatio:.5625,panelHeight:"auto"}],elements:[],timeoutId:null};function en(){var e=function(){$t.elements.forEach((function(e){if(e.el){var t=g.getScrollProgress(e.el).progress,n=e.calculated.fromTop,a=e.calculated.toTop,r=g.prVal(n,a,t,[0,1]);e.el.style.backgroundPositionY=r+"px"}}))},t=function(){setTimeout((function(){tn($t),e()}),300)};return Object(v.useLayoutEffect)((function(){return setTimeout((function(){tn($t),e()}),300),"undefined"!==typeof window&&(window.addEventListener("scroll",e),window.addEventListener("resize",t)),function(){"undefined"!==typeof window&&(window.removeEventListener("scroll",e),window.removeEventListener("resize",t))}}),[]),{reset:t}}function tn(e){var t=e.settings.screenSize=g.getScreenSize();e.settings=Object.assign({},Xt,e.settings);var n=0;if(e.panels.forEach((function(a){for(var r=document.querySelectorAll(a.selector)||[],o=0;o<r.length;o++){n++;var i=r[o],l=!a.panelHeight||"auto"===a.panelHeight,c=l?i.offsetHeight:parseFloat(a.panelHeight),s={shadowHeight:0,shadowWidth:0,fromTop:0,toTop:0},u=e.settings.speed*(t.width>1e3?1:2),d=e.settings.screenSize.width*a.imageRatio>c?e.settings.screenSize.width*a.imageRatio:c;d+=(e.settings.screenSize.height+c)*(.01*u),s.shadowHeight=d+2*e.settings.cutoffPadding,s.shadowWidth=s.shadowHeight/a.imageRatio,s.shadowWidth<e.settings.screenSize.width&&(s.shadowWidth=e.settings.screenSize.width,s.shadowHeight=s.shadowWidth*a.imageRatio),s.fromTop=-e.settings.cutoffPadding,s.toTop=-s.shadowHeight+c+e.settings.cutoffPadding,l||(i.style.height=a.panelHeight+"px"),i.style.backgroundSize=s.shadowWidth+"px "+s.shadowHeight+"px",a.calculated=s,e.elements.push({el:i,calculated:s})}})),0===n){if(e.timeoutId)try{"undefined"!==typeof window&&window.clearTimeout(e.timeoutId)}catch(a){}"undefined"!==typeof window&&(e.timeoutId=window.setTimeout((function(){return tn(e)}),500))}}var nn=n(252),an=n.n(nn);function rn(){var e=Object(w.i)(),t=Object(w.h)(),n=Object(w.g)(),a=Object(w.j)();return Object(v.useMemo)((function(){return{navigate:n.push,push:n.push,Redirect:w.a,replace:n.replace,pathname:t.pathname,path:t.pathname+t.hash+t.search,query:Object(E.a)(Object(E.a)({},an.a.parse(t.search)),e),match:a,location:t,history:n}}),[e,a,t,n])}var on={page:null,menu:null,popup:null,history:null},ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:on,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PAGE":return Object(E.a)(Object(E.a)({},e),{},{page:t.payload});case"SET_MENU":return Object(E.a)(Object(E.a)({},e),{},{menu:t.payload});case"SET_POPUP":return Object(E.a)(Object(E.a)({},e),{},{popup:t.payload});case"SET_HISTORY":return Object(E.a)(Object(E.a)({},e),{},{history:t.payload});case"SET_STATE":return Object(E.a)(Object(E.a)({},e),t.payload);default:throw new Error("Unexpected action")}},cn=Object(v.createContext)(on),sn=function(e){var t=e.children,n=Object(v.useReducer)(ln,on),a=Object(C.a)(n,2),r=a[0],o=a[1];return Object(v.useEffect)((function(){}),[r]),y.a.createElement(cn.Provider,{value:{state:r,dispatch:o}},t)},un=function(){return Object(v.useContext)(cn)};function dn(){var e=un(),t=e.state,n=e.dispatch,a=t.history||[];return{history:a,push:function(e){a.length>0&&JSON.stringify(a[a.length-1])===JSON.stringify(e)||function(e){n({type:"SET_HISTORY",payload:e})}([].concat(Object(F.a)(a),[e]))},pop:function(){return 0===a.length?null:(a.pop(),a.pop())},last:function(){return a.length<2?null:a[a.length-2].path}}}function mn(e,t){var n=Pt.url.getLinkFromElement(e),a=Pt.url.getLinkInfo(n);if(!a)return{handled:!1,linkInfo:a};if("hash"===a.type)Pt.ui.scrollTo(a.url);else if("tel"===a.type||"mailto"===a.type);else if("external"===a.type&&t)return t(a.url),{handled:!0,linkInfo:a};return{handled:!1,linkInfo:a}}var pn=n(88),bn=["children","to","target","onClick"];function fn(e){var t=e.children,n=e.to,a=(e.target,e.onClick),r=Object(pn.a)(e,bn);function o(e){a&&a(e),mn(e.target).handled&&(e.preventDefault(),e.stopPropagation())}return Pt.url.isExternalLink(n)?y.a.createElement("a",Object.assign({href:n,target:"_blank",rel:"noopener noreferrer",onClick:function(e){return o(e)}},r),t):y.a.createElement(j.b,Object.assign({to:n,onClick:function(e){return o(e)}},r),t)}
1var gn={tiles:Object(P.a)(wt({marginLeft:[0,-5,null,-10],marginRight:[0,-5,null,-10],display:"flex",justifyContent:"center",flexWrap:"wrap"})),tile:Object(P.a)(wt({flexBasis:["50%","33.33%","25%","25%","20%","16.66%"],padding:[0,5,null,10],cursor:"pointer"})),tileImage:Object(P.a)({position:"relative",display:"block",":after":Object(E.a)({},b.overlay()),":hover, :focus":{":after":{backgroundColor:"rgba(0, 0, 0, 0.2)"}}}),tileIcon:Object(P.a)({position:"absolute",top:10,right:10,fontSize:30,color:"white",zIndex:1})},hn=n(22);function vn(e){var t=Lt();if(y.a.useEffect((function(){t.send(N.apiBase+"/api/instagram/GetInstagramFeeds")}),[]),t.loading())return Object(P.b)(U,null);if(t.hasErrors())return Object(P.b)(D,{title:"Loading Error",errors:t.errors});var n=t.response;return 0===n.length?null:Object(P.b)(yn,{posts:n})}function yn(e){var t=e.posts,n=Pt.ui.getCurrentBreakpoint(),a=2*({xs:2,sm:3,md:4,lg:4,xl:5,xxl:6}[n]||6);console.log(n,2,a);var r=t.length>a?t.slice(0,a):t;return Object(P.b)("div",{css:gn.tiles},r.map((function(e,t){return Object(P.b)(_n,{key:t,item:e})})))}function _n(e){var t=e.item;return Object(P.b)("div",{css:gn.tile},Object(P.b)("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",css:gn.tileImage},Object(P.b)("img",{src:Pt.site.resourcePath("/instagram/".concat(t.filename)),alt:t.filename}),"video"===t.type&&Object(P.b)(hn.e,{css:gn.tileIcon}),"carousel"===t.type&&Object(P.b)(hn.f,{css:gn.tileIcon})))}function On(e,t){var n,a=arguments,r=this;return function(o){clearTimeout(n),n=setTimeout((function(t){n=null,e.apply(r,a)}),t)}}function wn(e){if("undefined"===typeof window||window.YT)e(!1);else{var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",window.onYouTubeIframeAPIReady=function(){return e(!0)};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}}function jn(e){return"https://img.youtube.com/vi/".concat(e,"/maxresdefault.jpg")}function Tn(e){return Pt.url.getYoutubeId(e)}var Cn=n(91);function En(e){var t=e.url,n=(e.title,e.posterUrl),a=un().dispatch,r=Tn(t),o=Pt.site.resourcePath(n||jn(r)),i=y.a.useState(0),l=Object(C.a)(i,2),c=l[0],s=l[1];return y.a.createElement("div",{className:"ytEmdPopup__poster",style:{backgroundImage:Pt.css.bgUrlStyle(o)},onClick:function(){s(c+1),a({type:"SET_POPUP",payload:{sources:["https://www.youtube.com/watch?v="+r],popupIndex:c+1}})}},y.a.createElement(hn.g,{className:"ytEmdPopup__playIcon"}))}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=e.payloads.find((function(e){return e.key===t}));return a?a.value:n}function Nn(e,t){if(!e)return!1;for(var n=0;n<e.sections.length;n++)if(kn(e.sections[n].items,t))return!0;return!1}function kn(e,t){if(!e)return!1;for(var n=0;n<e.length;n++){if(t(e[n]))return!0;if(kn(e[n].items,t))return!0}return!1}var Sn={payload:xn,getCodeJson:function(e){var t=xn(e,"Code");return"Json"===xn(e,"CodeType")?JSON.parse(t):null},hasItemInPageData:Nn,hasItemInItems:kn,hasItemInPageDataByItemTypeCode:function(e,t){return Nn(e,(function(e){return e.itemTypeCode===t}))}},In={buttonContainer:{textAlign:"center",marginTop:"1rem"},topBar:{marginTop:"1.5rem"},bottomBar:{marginTop:".5rem",textAlign:"right"},button:{fontWeight:600},noResultText:{textAlign:"center",marginTop:"1rem",fontWeight:600}},An={form:{".form-group":{marginBottom:"0.5rem"},".form-control":{backgroundColor:"transparent"}},label:{fontWeight:600,marginBottom:"0px"},formLast:wt({marginBottom:["0.5rem",null,null,"0px !important"]}),searchBtn:{marginTop:"1rem",fontWeight:600},atdwTypeSelect:wt({height:["27px !important",null,null,"196px !important"],marginTop:"0.15rem"}),eventButton:{display:"flex",flexDirection:"column",justifyContent:"end",".form-group":{marginBottom:"0.5rem !important"}}};function Pn(e){var t=e.atdwType,n=e.searechAtdw,a=e.towns,r=e.subCategoies,o=e.town,i="ACCOMM"===t?{title:"Accommodation Type",items:[{value:"",label:"ALL"},{value:"APARTMENT",label:"Apartments"},{value:"BACKPACKER",label:"Backpackers and Hostels"},{value:"BEDBREAKFA",label:"Bed and Breakfasts"},{value:"CABCOTTAGE",label:"Cabins and Cottages"},{value:"VANCAMP",label:"Caravan and Camping"},{value:"ECOACCOMM",label:"Eco Accommodation"},{value:"FARMSTAY",label:"Farm Stays"},{value:"HISTORICAL",label:"Historical"},{value:"HOLHOUSE",label:"Holiday Houses"},{value:"HOUSEBOATS",label:"Houseboats"},{value:"LUXURYACCOMM",label:"Luxury Accommodation"},{value:"HOTELMOTEL",label:"Hotels and Motels"},{value:"RESORTRETREAT",label:"Resorts and Retreats"},{value:"SELFCONTAINED",label:"Self Contained"},{value:"WATERFRONT",label:"Waterfront"}]}:"ATTRACTION"===t?{title:"Attraction Type",items:[{value:"",label:"ALL"},{value:"AMUSETHEME",label:"Amusement and Theme Parks"},{value:"ENTERTAIN",label:"Entertainment Venues"},{value:"GALMUSECOL",label:"Galleries, Museums and Collections"},{value:"HISTHERITG",label:"Historical Sites and Heritage Locations"},{value:"LMARKBLD",label:"Landmarks and Buildings"},{value:"MINDUSTRY",label:"Agri, Mining and Industry"},{value:"NATATTRACT",label:"Natural Attractions"},{value:"NATPARKRES",label:"National Parks and Reserves"},{value:"OBSVPLANET",label:"Observatories and Planetariums"},{value:"PKGDNCEM",label:"Parks and Gardens"},{value:"SHOPPING",label:"Shopping and Markets"},{value:"SPARETREAT",label:"Spas and Retreats"},{value:"SPORTREC",label:"Sports and Recreation Facilities"},{value:"ZOOSNCAQU",label:"Zoos, Sanctuaries, Aquariums and Wildlife Parks"}]}:"DESTINFO"===t?{title:"Destination Info",items:[]}:"RESTAURANT"===t?{title:"Food & Drink Type",items:[]}:"EVENT"===t?{title:"Event Type",items:[{value:"",label:"ALL"},{value:"EVTBUS",label:"Business Event"},{value:"EVTCLASS",label:"Classes, Lessons, Workshops and Talks"},{value:"EVTCOMNTY",label:"Community Event"},{value:"EVTFOOD",label:"Food and Wine"},{value:"EVTMARKET",label:"Markets"},{value:"EXHIBIT",label:"Exhibition and Shows"}
1,{value:"FESTIVAL",label:"Festivals and Celebrations"},{value:"PERFORMANC",label:"Concert or Performance"},{value:"SPORT",label:"Sporting Events"},{value:"FEATUREDEVENTS",label:"Featured Events"}]}:"HIRE"===t?{title:"Hire Type",items:[{value:"",label:"ALL"},{value:"WATERFRONT",label:"Waterfront"},{value:"HOUSEBOATS",label:"Houseboats"},{value:"ACCOMMODATION",label:"Accommodation"},{value:"FEATUREDHIRES",label:"Featured Hires"}]}:"TOUR"===t?{title:"Tour Type",items:[{value:"",label:"ALL"},{value:"CRUISES",label:"Cruises"},{value:"FEATUREDTOURS",label:"Featured Tours"}]}:"GENSERVICE"===t?{title:"Service Type",items:[]}:"TOUR"===t?{title:"Tour Type",items:[]}:{title:"",items:[]};return Object(P.b)(Dn,{atdwTypeOptions:i,searechAtdw:n,towns:a,atdwType:t,subCategoies:r,town:o})}function Dn(e){var t=e.atdwTypeOptions,n=e.searechAtdw,a=e.towns,r=e.atdwType,o=e.subCategoies,i=e.town,l=Object(v.useState)({atdwCheckIn:"",atdwCheckOut:"",atdwAdults:"1",atdwKids:"0",atdwSubType:o&&o.length>0?o:[""],atdwSearchByName:"",atdwTown:"ALL"===i?"":i}),c=Object(C.a)(l,2),s=c[0],u=c[1];function d(e){var t=e.target.name,n=e.target.value;if("atdwSubType"===t){var a=Array.from(e.target.selectedOptions,(function(e){return e.value}));u(Object(E.a)(Object(E.a)({},s),{},Object(ie.a)({},t,a)))}else u(Object(E.a)(Object(E.a)({},s),{},Object(ie.a)({},t,n)))}return Object(P.b)("form",{css:An.form,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),n(s)}},"ACCOMM"===r&&Object(P.b)("div",{className:"row"},Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwCheckIn",style:{fontWeight:400}}," Check In "),Object(P.b)("input",{type:"date",id:"atdwCheckIn",name:"atdwCheckIn",className:"form-control form-control-sm",placeholder:"",autoComplete:"off",value:s.atdwCheckIn,onChange:d})),Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwCheckOut"}," Check Out "),Object(P.b)("input",{type:"date",id:"atdwCheckOut",name:"atdwCheckOut",className:"form-control form-control-sm",placeholder:"",autoComplete:"off",value:s.atdwCheckOut,onChange:d})),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{css:An.formLast,className:"form-group col-6"},Object(P.b)("label",{css:An.label,htmlFor:"atdwAdults",style:{fontWeight:400}},"Adults"),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwAdults",name:"atdwAdults",value:s.atdwAdults,onChange:d},Object(P.b)("option",{value:"1"},"1"),Object(P.b)("option",{value:"2"},"2"),Object(P.b)("option",{value:"3"},"3"),Object(P.b)("option",{value:"4"},"4"),Object(P.b)("option",{value:"5"},"5"),Object(P.b)("option",{value:"6"},"6"),Object(P.b)("option",{value:"7"},"7"),Object(P.b)("option",{value:"8"},"8"),Object(P.b)("option",{value:"9"},"9"))),Object(P.b)("div",{css:An.formLast,className:"form-group col-6"},Object(P.b)("label",{css:An.label,htmlFor:"atdwKids",style:{fontWeight:400}},"Kids"),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwKids",name:"atdwKids",value:s.atdwKids,onChange:d},Object(P.b)("option",{value:"0"},"0"),Object(P.b)("option",{value:"1"},"1"),Object(P.b)("option",{value:"2"},"2"),Object(P.b)("option",{value:"3"},"3"),Object(P.b)("option",{value:"4"},"4"),Object(P.b)("option",{value:"5"},"5"),Object(P.b)("option",{value:"6"},"6"),Object(P.b)("option",{value:"7"},"7"),Object(P.b)("option",{value:"8"},"8"),Object(P.b)("option",{value:"9"},"9"))))),Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSubType"}," ",t.title," "),Object(P.b)("select",{css:An.atdwTypeSelect,multiple:!0,className:"form-control form-control-sm",id:"atdwSubType",name:"atdwSubType",value:s.atdwSubType,onChange:d},t.items.map((function(e,t){return Object(P.b)("option",{key:t,value:e.value}," ",e.label," ")}))))),Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwTown"}," Town "),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwTown",name:"atdwTown",value:s.atdwTown,onChange:d}
1,Object(P.b)("option",{value:""}," ALL "),a.map((function(e,t){return Object(P.b)("option",{key:t,value:e}," ",e," ")})))),Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSearchByName"}," Search by Name "),Object(P.b)("input",{type:"text",className:"form-control form-control-sm",placeholder:"",name:"atdwSearchByName",id:"atdwSearchByName",autoComplete:"off",value:s.atdwSearchByName,onChange:d})),Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("button",{css:An.searchBtn,style:{width:"100%"},className:"btn btn-primary",type:"submit"},"SEARCH")))),("DESTINFO"===r||"RESTAURANT"===r||"GENSERVICE"===r)&&Object(P.b)("div",{className:"row"},Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwTown"}," Town "),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwTown",name:"atdwTown",value:s.atdwTown,onChange:d},Object(P.b)("option",{value:""}," ALL "),a.map((function(e,t){return Object(P.b)("option",{key:t,value:e}," ",e," ")}))))),Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSearchByName"}," Search by Name "),Object(P.b)("input",{type:"text",className:"form-control form-control-sm",placeholder:"",name:"atdwSearchByName",id:"atdwSearchByName",autoComplete:"off",value:s.atdwSearchByName,onChange:d}))),Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("button",{css:An.searchBtn,style:{width:"100%"},className:"btn btn-primary",type:"submit"},"SEARCH")))),("HIRE"===r||"TOUR"===r)&&Object(P.b)("div",{className:"row"},Object(P.b)("div",{className:"col-md-6"},Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSubType"}," ",t.title," "),Object(P.b)("select",{css:An.atdwTypeSelect,multiple:!0,className:"form-control form-control-sm",id:"atdwSubType",name:"atdwSubType",value:s.atdwSubType,onChange:d},t.items.map((function(e,t){return Object(P.b)("option",{key:t,value:e.value}," ",e.label," ")}))))),Object(P.b)("div",{className:"col-md-6"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwTown"}," Town "),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwTown",name:"atdwTown",value:s.atdwTown,onChange:d},Object(P.b)("option",{value:""}," ALL "),a.map((function(e,t){return Object(P.b)("option",{key:t,value:e}," ",e," ")})))),Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSearchByName"}," Search by Name "),Object(P.b)("input",{type:"text",className:"form-control form-control-sm",placeholder:"",name:"atdwSearchByName",id:"atdwSearchByName",autoComplete:"off",value:s.atdwSearchByName,onChange:d})),Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("button",{css:An.searchBtn,style:{width:"100%"},className:"btn btn-primary",type:"submit"},"SEARCH")))),"EVENT"===r&&Object(P.b)("div",{className:"row"},Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwCheckIn",style:{fontWeight:400}}," From "),Object(P.b)("input",{type:"date",id:"atdwCheckIn",name:"atdwCheckIn",className:"form-control form-control-sm",placeholder:"",autoComplete:"off",value:s.atdwCheckIn,onChange:d})),Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwCheckOut"}," To "),Object(P.b)("input",{type:"date",id:"atdwCheckOut",name:"atdwCheckOut",className:"form-control form-control-sm",placeholder:"",autoComplete:"off",value:s.atdwCheckOut,onChange:d}))),Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSubType"}," ",t.title," "),Object(P.b)("select",{css:An.atdwTypeSelect,multiple:!0,className:"form-control form-control-sm",id:"atdwSubType",name:"atdwSubType",value:s.atdwSubType,onChange:d},t.items.map((function(e,t){return Object(P.b)("option",{key:t,value:e.value}," ",e.label," ")}))))),Object(P.b)("div",{className:"col-md-4"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwTown"}," Town "),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwTown",name:"atdwTown",value:s.atdwTown,onChange:d}
1,Object(P.b)("option",{value:""}," ALL "),a.map((function(e,t){return Object(P.b)("option",{key:t,value:e}," ",e," ")})))),Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSearchByName"}," Search by Name "),Object(P.b)("input",{type:"text",className:"form-control form-control-sm",placeholder:"",name:"atdwSearchByName",id:"atdwSearchByName",autoComplete:"off",value:s.atdwSearchByName,onChange:d})),Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("button",{css:An.searchBtn,style:{width:"100%"},className:"btn btn-primary",type:"submit"},"SEARCH")))),"ATTRACTION"===r&&Object(P.b)("div",{className:"row"},Object(P.b)("div",{className:"col-md-6"},Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSubType"}," ",t.title," "),Object(P.b)("select",{css:An.atdwTypeSelect,multiple:!0,className:"form-control form-control-sm",id:"atdwSubType",name:"atdwSubType",value:s.atdwSubType,onChange:d},t.items.map((function(e,t){return Object(P.b)("option",{key:t,value:e.value}," ",e.label," ")}))))),Object(P.b)("div",{className:"col-md-6"},Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwTown"}," Town "),Object(P.b)("select",{className:"form-control form-control-sm",id:"atdwTown",name:"atdwTown",value:s.atdwTown,onChange:d},Object(P.b)("option",{value:""}," ALL "),a.map((function(e,t){return Object(P.b)("option",{key:t,value:e}," ",e," ")})))),Object(P.b)("div",{className:"form-group"},Object(P.b)("label",{css:An.label,htmlFor:"atdwSearchByName"}," Search by Name "),Object(P.b)("input",{type:"text",className:"form-control form-control-sm",placeholder:"",name:"atdwSearchByName",id:"atdwSearchByName",autoComplete:"off",value:s.atdwSearchByName,onChange:d})),Object(P.b)("div",{css:An.formLast,className:"form-group"},Object(P.b)("button",{css:An.searchBtn,style:{width:"100%"},className:"btn btn-primary",type:"submit"},"SEARCH")))))}var Rn={atdwTiles:{display:"flex",alignItems:"stretch",flexWrap:"wrap",justifyContent:"start",marginLeft:"-0.7rem",marginRight:"-0.7rem","&.useSlider":{display:"block"}},atdwTiles__big:wt({display:"flex",justifyContent:"flex-start",flexWrap:"wrap",margin:"2rem -10px",overflow:"hidden",marginLeft:["-10px",null,null,null,"-2rem","-5.5rem"],marginRight:["-10px",null,null,null,"-2rem","-5.5rem"]})},Ln={atdwTile:wt({flexGrow:"1",flexShrink:"0",flexBasis:["100%",null,"33.3%"],maxWidth:["100%",null,"33.3%"],paddingTop:"10px",paddingBottom:"10px",paddingLeft:"0.7rem",paddingRight:"0.7rem","&.useSlider":{flexBasis:"100%",maxWidth:"100%",height:"100%"},a:{display:"flex",flexDirection:"column",height:"100%","&:hover":{textDecoration:"none",".atdwitembg":{transform:"scale(1.05)"}}}}),bg:{paddingTop:"56.25%",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",boxShadow:"3px 1px 12px rgba(0,0,0,0.7)",transition:"all 0.2s"},container:{position:"relative",overflow:"hidden",flexGrow:"1",backgroundColor:L.dkBlueColor,marginTop:"-20px",width:"90%",marginLeft:"auto",marginRight:"auto",textAlign:"center",display:"flex",flexDirection:"column",boxShadow:"3px 1px 12px rgba(0,0,0,0.7)"},details:{padding:"1rem 0.8rem",flex:"1 0 auto","&.more":{paddingTop:"0.5rem"}},pName:{fontSize:"1rem",textTransform:"uppercase",fontWeight:700,lineHeight:1,color:L.orangeColor,WebkitLineClamp:"2",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"},hr:{width:"40% !important",marginTop:"0.5rem",marginBottom:"0.5rem",borderTopColor:L.orangeColor,marginLeft:"auto !important",marginRight:"auto !important"},des:{lineHeight:"1.3",fontSize:"0.7rem",WebkitLineClamp:"3",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",color:L.sandCtoneColor},eventDate:{fontSize:"0.7rem",color:L.sandCtoneColor,marginBottom:"0.2rem"},bottomImg:{width:"100%"}};function Mn(e){var t=e,n=e.useSlider,a="";if(t.additionalData&&t.additionalData.eventFrequency&&t.additionalData.eventFrequency.length>0&&"EVENT"===t.productType){var r=t.additionalData.eventFrequency[0].frequencyStartDate.split("-");a=r[2]+"-"+r[1]+"-"+r[0]}return Object(P.b)("div",{css:Ln.atdwTile,id:t.productId,className:"".concat(n&&"useSlider")},Object(P.b)(fn,{to:"/atdwproduct/"+t.slug},Object(P.b)("div",{className:"atdwitembg",css:Ln.bg,style:{backgroundImage:Pt.css.bgUrlStyle(t.imageUrl)}}),Object(P.b)("div",{css:Ln.container},Object(P.b)("div",{css:Ln.details,className:""!==a?"more":""},""!==a&&Object(P.b)("div",{css:Ln.eventDate},a),Object(P.b)("div",{css:Ln.pName},t.productName),Object(P.b)("hr",{css:Ln.hr}
1),Object(P.b)("div",{css:Ln.des},t.shortDesc)),Object(P.b)("div",{css:Ln.bottomImg},Object(P.b)("img",{src:"/assets/flow-device-transparent.png",style:{width:"100%"},alt:"wave"})))))}var Bn={pageTile__tile:Object(P.a)(wt({flex:["0 0 1000%",null,"0 0 88%"],maxWidth:["100%",null,"88%"],padding:"10px",paddingTop:"3rem",zIndex:1,"&:nth-of-type(even)":{marginLeft:"auto",".pageTile__bsyc__bg":wt({order:["0",null,"2"]}),".pageTile__bsyc__content__details":wt({order:"1"})},"&:nth-of-type(1)":{paddingTop:"10px"}})),tile__content:Object(P.a)({"&:hover":{textDecoration:"none","& .pageTile__bsyc__content__details":{},"& .pageTile__bsyc__bg2":{}}}),tile__flip__wrapper:Object(P.a)(wt({zIndex:"-1",display:"flex",flexDirection:"row",justifyContent:["center",null,"space-between"],width:"100%",height:"100%",cursor:"pointer",position:"relative",flexWrap:"wrap",alignItems:"center"})),tile__bg:Object(P.a)(wt({height:["230px",null,null,"490px"],flex:"1 1 300px",overflow:"hidden",position:"relative",boxShadow:"3px 5px 10px rgba(0,0,0,0.3)"})),tile__bg2:Object(P.a)(wt({height:"100%",overflow:"hidden",position:"absolute",top:"0px",width:"100%",".slick-next, .slick-prev":{display:"none !important"}})),tile__bg2__inner:Object(P.a)(wt({backgroundPosition:"50%",backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"100%",height:["232px",null,null,"492px"]})),tile__details:Object(P.a)(wt({overflow:"hidden",flexGrow:"1",textAlign:"center",width:"100%",bottom:"0","&.orange":Object(P.a)({backgroundColor:L.orangeColor}),"&.blie":Object(P.a)({backgroundColor:L.blieColor}),"&.green":Object(P.a)({backgroundColor:L.greenColor}),"&.yellow ":Object(P.a)({backgroundColor:L.yellowColor}),flex:["1 1 300px",null,"1 1 350px"],maxWidth:["300px",null,"350px"],height:["unset",null,"75%"],transition:"all .2s ease-in-out",color:L.sandCtoneColor,position:"relative",marginTop:["-20px",null,"0px"],boxShadow:"3px 5px 10px rgba(0,0,0,0.3)","&.even":wt({marginLeft:["0px",null,"-50px"],marginRight:"unset"}),"&.odd":wt({marginRight:["0px",null,"-50px"],marginLeft:"unset"}),"& .pageTile__bsyc__container":wt({position:["static,",null,"absolute"],top:"50%",left:"50%",transform:["none",null,"translate(-50%, -50%)"],width:["100%",null,"75%"],padding:["1rem",null,"0px"],"& .pageTile__bsyc__title":{fontSize:"1.2rem",textTransform:"uppercase",fontWeight:"700",lineHeight:"1",margin:"0",paddingBottom:".5rem",color:"inherit"},"& .pageTile__bsyc__dot":{width:"40%",marginTop:"0px",marginBottom:"0px",paddingBottom:"0.5rem",borderTopColor:L.sandCtoneColor},"& .pageTile__bsyc__desc":{lineHeight:"1.5",fontSize:".8rem",minHeight:"70px",color:"inherit"}})}))},Hn=n(27),Un=n.n(Hn);function Fn(e){var t=e,n=[t.additionalData&&t.additionalData.bigSizeBgImg?t.additionalData.bigSizeBgImg.serverPath:t.imageUrl],a=e.index,r=n.map((function(e,t){return Object(P.b)("div",{key:t},Object(P.b)("div",{className:"pageTile__bsyc__bg2__inner",css:Bn.tile__bg2__inner,style:{backgroundImage:Pt.css.bgUrlStyle(e)}}))}));return Object(P.b)("div",{css:Bn.pageTile__tile,className:"pageTile__bsyc"},Object(P.b)(fn,{className:"pageTile__bsyc__content",css:Bn.tile__content,to:"/atdwproduct/"+t.slug},Object(P.b)("div",{css:Bn.tile__flip__wrapper},Object(P.b)("div",{className:"pageTile__bsyc__bg","data-aos":a%2===0?"fade-up-right":"fade-up-left",css:Bn.tile__bg},Object(P.b)("div",{className:"pageTile__bsyc__bg2 ".concat(a%2===0?"even":"odd"),css:Bn.tile__bg2},Object(P.b)(Un.a,{dots:!1,infinite:!0,speed:1500,autoplaySpeed:3e3,fade:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1},r))),Object(P.b)("div",{css:Bn.tile__details,className:"pageTile__bsyc__content__details orange ".concat(a%2===0?"even":"odd"),"data-aos":a%2===0?"fade-up-left":"fade-up-right"},Object(P.b)("div",{className:"pageTile__bsyc__container"},t.productName&&""!==t.productName&&Object(P.b)("div",{className:"pageTile__bsyc__title"},t.productName),Object(P.b)("hr",{className:"pageTile__bsyc__dot"}),Object(P.b)("div",{className:"pageTile__bsyc__desc"},t.shortDesc||t.shortDesc))))))}function Wn(e){var t=e.atdwData,n=e.tileType,a=void 0===n?"2":n,r=e.useSlider,o=t||[];console.log("_atdwData",o);return Object(P.b)("div",{className:"atdwResult"},"2"===a?Object(P.b)(v.Fragment,null,r?Object(P.b)("div",{css:Rn.atdwTiles,className:"atdwTiles useSlider"},Object(P.b)(Un.a,{dots:!1,infinite:!0,speed:500,autoplaySpeed:3e3,fade:!1,autoplay:!0,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1}}]},o.map((function(e,t){return Object(P.b)(Mn,Object.assign({},e,{key:t,useSlider:r}))})))):Object(P.b)("div",{css:Rn.atdwTiles,className:"atdwTiles"},o.map((function(e,t){return Object(P.b)(Mn,Object.assign({},e,{key:t}))})))):Object(P.b)("div",{css:Rn.atdwTiles__big,className:"atdwTiles__big"},o.map((function(e,t){return Object(P.b)(Fn,Object.assign({},e,{key:t,index:t}))}))))}function zn(e){var t=e.atdwType,n=e.subTypes,a=e.autoSearch,r=e.hideSearch,o=void 0===r?"off":r,i=e.numOfTileLines,l=void 0===i?"12":i,c=e.town,s=void 0===c?"ALL":c,u=e.hideCount,d=void 0===u?"off":u,m=Object(v.useState)(),p=Object(C.a)(m,2),b=p[0],f=p[1],g=Object(v.useState)(!1),h=Object(C.a)(g,2),y=h[0],_=h[1],O=Object(v.useState)(0),w=Object(C.a)(O,2),j=w[0],T=w[1],x=Pt.ui.getCurrentBreakpoint(),k="on"===o?parseInt(l)*{xs:1,sm:1,md:3,lg:3,xl:3,xxl:3}[x]:12;function S(e){console.log("filteredData",e),e.sort((function(e,t){var n=null,a=null;return e.additionalData.eventFrequency&&e.additionalData.eventFrequency.length>0&&e.additionalData.eventFrequency.forEach((function(e){if(null===n)n=new Date(e.frequencyStartDate);else{var t=new Date(e.frequencyStartDate);t<=n&&(n=t)}})),t.additionalData.eventFrequency&&t.additionalData.eventFrequency.length>0&&t.additionalData.eventFrequency.forEach((function(e){if(null===a)a=new Date(e.frequencyStartDate);else{var t=new Date(e.frequencyStartDate);t<=a&&(a=t)}})),n=n||new Date,a=a||new Date,n-a}))}function I(e){var n=e.atdwSubTypeItem,a=e.atdwSearchByNameItem,r=e.atdwTownItem,o=e.atdwCheckIn,i=e.atdwCheckOut,l=e.atdwDataItem,c=n||[],s=a||"",u=r||"",d=o||"",m=i||"";return l.filter((function(e){var n=!1;if(c.length>0&&""===c[0]||0===c.length)n=!0;else{var a=c.toString().replace("HOTELMOTEL","HOTEL,MOTEL").replace("RESORTRETREAT","RESORT,RETREAT");for(var r in e.additionalData.PRODUCTTYPES)if(n=!1,a.includes(e.additionalData.PRODUCTTYPES[r].productTypeId)){n=!0;break}}if(!0===n&&""!==u&&null!==u){n=!1;var o=["loxton","loxton north","new residence","pyap","bookpurnong"],i=["waikerie","good hope landing","lowbank","holder","pooginook","golden heights","ramco","ramco heights","sunlands"],l=["kingston on murray","moorook","moorook 
1south","wigley flat","woolpunda"];o.includes(u.toLowerCase())?o.includes(e.town.toLowerCase())&&(n=!0):i.includes(u.toLowerCase())?i.includes(e.town.toLowerCase())&&(n=!0):l.includes(u.toLowerCase())?l.includes(e.town.toLowerCase())&&(n=!0):e.town.toLowerCase().includes(u.toLowerCase())&&(n=!0)}if(!0===n&&""!==s&&null!==s&&(n=!1,e.productName.toLowerCase().includes(s.toLowerCase())&&(n=!0)),"EVENT"===t&&!0===n&&""!==d&&null!==d&&""!==m&&null!==m){n=!1;var p=new Date(d),b=new Date(m),f=e.additionalData.eventFrequency;if(f&&f.length>0)for(var g in f){var h=new Date(f[g].frequencyStartDate);if(p<=h&&b>=h){n=!0;break}}}return n}))}return Object(v.useEffect)((function(){var e=new AbortController,r=e.signal;return function(){var e=Object(V.a)(z.a.mark((function e(){var i,l,c,u,d,m,p,b;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(N.apiBase+"/api/atdw/getproducts",{method:"post",signal:r,headers:{"Content-Type":"application/json"},body:JSON.stringify({category:t,town:"off"===o?"ALL":s})});case 2:return i=e.sent,e.next=5,i.json();case 5:if(!((l=e.sent)&&l.results&&l.results.productResult)){e.next=24;break}if(c=n&&""!==n?n.split(","):[],u=I({atdwSubTypeItem:c,atdwDataItem:l.results.productResult.products,atdwTownItem:"ALL"===s?"":s}),"EVENT"===t&&S(u),d=[],!(u.length>0)){e.next=20;break}m=0;case 13:if(!(m<k)){e.next=20;break}if(d.push(u[m]),m!==u.length-1){e.next=17;break}return e.abrupt("break",20);case 17:m++,e.next=13;break;case 20:p=a,"on"===o&&(p="on"),b="on"===p,f({atdwDataFromDB:l.results.productResult.products,reserveAtdwData:u,atdwData:"on"===p?d:[],towns:l.results.productResult.tows,subCategoies:c,checkStartResult:b});case 24:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort()}}),[]),Object(v.useEffect)((function(){if(0!==j){var e=new AbortController;return function(){var e=Object(V.a)(z.a.mark((function e(){var t;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],b.reserveAtdwData.forEach((function(e){for(var n in e.additionalData.externalSystems)if("TXA_DEFAULT"===e.additionalData.externalSystems[n].externalSystemCode){t.push(e.additionalData.externalSystems[n].externalSystemText);break}}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort()}}}),[j]),b?Object(P.b)(v.Fragment,null,"off"===o&&Object(P.b)(Pn,{atdwType:t,searechAtdw:function(e){_(!0);var n=e.atdwSubType||[],a=e.atdwSearchByName||"",r=e.atdwCheckIn||"",o=e.atdwCheckOut||"",i=e.atdwAdults||"1",l=e.atdwKids||"0",c=I({atdwSubTypeItem:n,atdwSearchByNameItem:a,atdwTownItem:e.atdwTown||"",atdwCheckIn:r,atdwCheckOut:o,atdwDataItem:b.atdwDataFromDB});"EVENT"===t&&S(c);var s=[];if(c.length>0)for(var u=0;u<k&&(s.push(c[u]),u!==c.length-1);u++);"ACCOMM___"===t&&""!==r&&null!==r&&""!==o&&null!==o?(console.log("TXA ::::: ->"),f(Object(E.a)(Object(E.a)({},b),{},{reserveAtdwData:c,atdwData:s,checkStartResult:!0,atdwCheckIn:r,atdwCheckOut:o,atdwAdults:i,atdwKids:l})),T(j+1)):(f(Object(E.a)(Object(E.a)({},b),{},{reserveAtdwData:c,atdwData:s,checkStartResult:!0})),setTimeout((function(){_(!1)}),1e3))},towns:b.towns,subCategoies:b.subCategoies,town:s}),y?Object(P.b)(U,null):b.atdwData.length>0?Object(P.b)(v.Fragment,null,"off"===d&&Object(P.b)("div",{css:In.topBar},"1 to ",b.atdwData.length," of ",b.reserveAtdwData.length),Object(P.b)(Wn,{atdwData:b.atdwData}),"off"===d&&Object(P.b)("div",{css:In.bottomBar},"1 to ",b.atdwData.length," of ",b.reserveAtdwData.length),b.atdwData.length!==b.reserveAtdwData.length&&b.atdwData.length>0&&Object(P.b)("div",{css:In.buttonContainer},Object(P.b)("button",{css:In.button,className:"btn btn-primary",onClick:function(){b.reserveAtdwData.slice(b.atdwData.length,b.atdwData.length+k).forEach((function(e){b.atdwData.push(e)})),f(Object(E.a)(Object(E.a)({},b),{},{atdwData:b.atdwData}))}},"MORE"))):Object(P.b)(v.Fragment,null,b.checkStartResult&&Object(P.b)("div",{css:In.noResultText}," Sorry, there are no available results. "))):Object(P.b)(U,null)}function Vn(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","atdw-search",t.cssClass||t.anchorName||""),r=Sn.payload(t,"BgColor"),o=Sn.payload(t,"ImageUrl"),i=Sn.payload(t,"Backgroun
1dTile"),l=Sn.payload(t,"FeaturedCategory")||"FEATUREDHOMEPAGE",c=Sn.payload(t,"NumOfTileLines")||"12",s=null;return o?s=Pt.site.resourcePath(o):i&&(s=Pt.site.resourcePath("/dist/transparent-textures/textures/".concat(i))),Object(P.b)("section",{style:{backgroundColor:"".concat(r),backgroundImage:s&&Pt.css.bgUrlStyle(s),padding:"1rem 0px"},className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)("div",{className:"container"},Object(P.b)(zn,{atdwType:l,autoSearch:"on",hideSearch:"on",hideCount:"on",numOfTileLines:c})))}var qn={match:function(e,t){return"AtdwFeaturedSearch"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Vn,{item:e,cmsOption:t})}},Yn={atdwMap:Object(P.a)({maxWidth:"960px",margin:"auto",".info__window":{maxWidth:"300px"},".info__title":{fontWeight:"700",fontSize:"15px"},".info__town":{fontWeight:"300",fontSize:"13px",margin:"0.2rem 0px"}}),filters:Object(P.a)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",marginTop:"0.5rem",marginBottom:"0.5rem",".btn":{lineHeight:"1",margin:"4px",fontSize:"0.6rem"},".btn.selected":{backgroundColor:L.dkOrangeColor,borderColor:L.dkOrangeColor}}),popupBackground:Object(P.a)({backgroundColor:"rgba(0,0,0,0.3)",position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:"9999"}),container:Object(P.a)({position:"fixed",width:"95%",left:"50%",top:"50%",transform:"translate(-50%, -50%)",marginTop:"-1rem",zIndex:"9999",backgroundColor:"white",padding:"1rem",maxWidth:"450px"}),popupTitle:Object(P.a)({fontWeight:"700",fontSize:"1rem"}),popupTown:Object(P.a)({fontWeight:"300",fontSize:"0.8rem",margin:"0.2rem 0px"}),popupDesc:Object(P.a)({fontSize:"0.8rem"}),button:Object(P.a)({fontWeight:"700"})};function Gn(e){var t=e.children,n=Object(v.useState)(document.createElement("div")),a=Object(C.a)(n,1)[0];return Object(v.useEffect)((function(){var e=document.getElementById("portal-root");return e.appendChild(a),function(){return e.removeChild(a)}}),[a]),Object(_.createPortal)(t,a)}function Kn(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","atdw-map",t.cssClass||t.anchorName||""),r=e.fromType||"area",o=Sn.payload(t,"AtdwType")||"ALL",i=Sn.payload(t,"MapArea")||("town"===r?"loxton":"all"),l=Object(v.useState)({currentAtdwType:"ALL"===o?"town"===r?"ATTRACTION":"ACCOMM":o}),c=Object(C.a)(l,2),s=c[0],u=c[1],d=Object(v.useRef)(null),m=Object(w.g)(),p=Object(v.useState)(!1),b=Object(C.a)(p,2),f=b[0],g=b[1],h=Object(v.useState)(),y=Object(C.a)(h,2),_=y[0],O=y[1];Object(v.useEffect)((function(){var e=new AbortController,t=e.signal,n=!0,a=document.createElement("script");return function(){var e=Object(V.a)(z.a.mark((function e(){var o,l,c;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(){l.results.productResult.products;var e=new window.google.maps.Map(d.current,{}),t=[{lat:-27.55533244236193,lng:152.9550044958552},{lat:-33.832736836858565,lng:151.09038602071857}];new window.google.maps.Polyline(Object(E.a)(Object(E.a)({},{geodesic:!0,strokeColor:"#e27443",strokeOpacity:.7,strokeWeight:6}),{},{path:t})).setMap(e);for(var n=new window.google.maps.LatLngBounds,a=0;a<t.length;a++)n.extend(t[a]);e.fitBounds(n)},e.next=3,fetch(N.apiBase+"/api/atdw/getmapproducts",{method:"post",signal:t,headers:{"Content-Type":"application/json"},body:JSON.stringify({category:s.currentAtdwType,mapArea:i,fromType:r})});case 3:return o=e.sent,e.next=6,o.json();case 6:l=e.sent,void 0===window.google?n=!1:void 0===window.google.maps&&(n=!0),n?c():(a.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqjATWMNIpPT5GIDudcLTY6_2ijO8d-fQ",a.async=!0,document.body.appendChild(a),setTimeout((function(){c()}),1e3));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort(),n||document.body.removeChild(a)}}),[s.currentAtdwType]);var j=Object(v.useCallback)((function(e){u(Object(E.a)(Object(E.a)({},s),{},{currentAtdwType:e}))}),[]);return Object(P.b)(v.Fragment,null,Object(P.b)(Gn,null,f&&Object(P.b)(v.Fragment,null,Object(P.b)("div",{css:Yn.popupBackgroun
1d}),Object(P.b)("div",{css:Yn.container},Object(P.b)("div",{css:Yn.popupTitle}," ",_.productName," "),Object(P.b)("div",{css:Yn.popupTown}," ",_.town," "),Object(P.b)("div",{css:Yn.popupTown}," ",_.address+" "+_.town," "),Object(P.b)("p",{css:Yn.popupDesc}," ",_.desc," "),Object(P.b)("div",{style:{textAlign:"center"}},Object(P.b)("button",{className:"btn btn-primary",onClick:function(){m.push("/atdwproduct/"+_.slug)}},"Go"),Object(P.b)("button",{className:"btn btn-primary",style:{marginLeft:"1rem"},onClick:function(){g(!1),O(null)}},"Close"))))),Object(P.b)("div",{css:Yn.atdwMap,className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)("div",{style:{height:"450px"}},Object(P.b)("div",{ref:d,style:{height:"100%"}})),"ALL"===o&&Object(P.b)((function(){return Object(P.b)("div",{css:Yn.filters,className:"atdw__map__filter"},Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("ACCOMM"===s.currentAtdwType?"selected":""),onClick:function(){"ACCOMM"!==s.currentAtdwType&&j("ACCOMM")}},"ACCOMMODATION"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("ATTRACTION"===s.currentAtdwType?"selected":""),onClick:function(){"ATTRACTION"!==s.currentAtdwType&&j("ATTRACTION")}},"ATTRACTIONS"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("RESTAURANT"===s.currentAtdwType?"selected":""),onClick:function(){"RESTAURANT"!==s.currentAtdwType&&j("RESTAURANT")}},"EAT & DRINK"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("EVENT"===s.currentAtdwType?"selected":""),onClick:function(){"EVENT"!==s.currentAtdwType&&j("EVENT")}},"EVENTS"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("HIRE"===s.currentAtdwType?"selected":""),onClick:function(){"HIRE"!==s.currentAtdwType&&j("HIRE")}},"HIRE"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("INFO"===s.currentAtdwType?"selected":""),onClick:function(){"INFO"!==s.currentAtdwType&&j("INFO")}},"INFO"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("TOUR"===s.currentAtdwType?"selected":""),onClick:function(){"TOUR"!==s.currentAtdwType&&j("TOUR")}},"TOURS"),Object(P.b)("button",{css:Yn.button,className:"btn btn-primary map-button ".concat("GENSERVICE"===s.currentAtdwType?"selected":""),onClick:function(){"GENSERVICE"!==s.currentAtdwType&&j("GENSERVICE")}},"GENERAL"))}),null)))}var Jn={match:function(e,t){return"--AtdwMap"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Kn,{item:e,cmsOption:t})}},Qn={atdwMap:Object(P.a)({maxWidth:"960px",margin:"auto",".info__window":{maxWidth:"300px"},".info__title":{fontWeight:"700",fontSize:"15px"},".info__town":{fontWeight:"300",fontSize:"13px",margin:"0.2rem 0px"}}),filters:Object(P.a)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",marginTop:"0.5rem",marginBottom:"0.5rem",".btn":{lineHeight:"1",margin:"4px",fontSize:"0.6rem"},".btn.selected":{backgroundColor:L.dkOrangeColor,borderColor:L.dkOrangeColor}}),popupBackground:Object(P.a)({backgroundColor:"rgba(0,0,0,0.3)",position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:"9999"}),container:Object(P.a)({position:"fixed",width:"95%",left:"50%",top:"50%",transform:"translate(-50%, -50%)",marginTop:"-1rem",zIndex:"9999",backgroundColor:"white",padding:"1rem",maxWidth:"450px"}),popupTitle:Object(P.a)({fontWeight:"700",fontSize:"1rem"}),popupTown:Object(P.a)({fontWeight:"300",fontSize:"0.8rem",margin:"0.2rem 0px"}),popupDesc:Object(P.a)({fontSize:"0.8rem"}),button:Object(P.a)({fontWeight:"700"}),atdw__cellar__door__data:{overflow:"hidden",maxHeight:"0",transition:"all 0.8s",padding:"0px",maxWidth:"960px",marginLeft:"auto",marginRight:"auto","&.expand":{maxHeight:"40000px",padding:"1rem 0"}},barBtnContainer:wt({display:"flex",marginLeft:"-0.5rem",marginRight:"-0.5rem",marginTop:"0.3rem",flexWrap:"wrap",justifyContent:["center",null,"unset"]}),barBtn:wt({lineHeight:"1",padding:["0.5rem 2rem",null,"0.3rem 2rem"],borderRadius:"13px",color:L.orangeColor,backgroundColor:L.sandCtoneColor,marginLeft:"0.5rem",marginRight:"0.5rem",fontSize:"0.8rem",marginTop:"0.2rem",marginBottom:"0.2rem",width:["140px","unset"]}),productName:wt({color:L.orangeColor,lineHeight:"1.1",fontSize:"2.5rem"}),productDes:wt({"&.des__0":{fontWeight:600}}),productRate:{fontWeight:600,marginTop:"1.5rem"},expendablePanel:{marginTop:"1rem","&.open":{".exPanelTitle svg":{transform:"translateY(-50%) rotate(180deg)"},".expendablePanelContent":{opacity:"1",height:"auto"}}},expendablePanelTitle:{borderBottom:"1px solid ".concat(L.orangeColor),cursor:"pointer",position:"relative",svg:{position:"absolute",right:"0px",top:"50%",transform:"translateY(-50%)",transition:"all 0.2s ease-in-out"}},expendablePanelContent:{transition:"opacity 1s ease-out !important",opacity:"0",height:"0",overflow:"hidden"}
1,expanleTitle:{fontWeight:600},content:{fontSize:"0.9rem"},searchFunctionText:{fontWeight:600,marginTop:"3rem",marginBottom:"1rem"},searchTextTitle:{fontWeight:600,fontSize:"2.2rem",textTransform:"uppercase",color:L.orangeColor,marginBottom:"1.5rem"}},Zn=n(28),Xn={container:{display:"flex",flexWrap:"wrap",marginLeft:"-10px",marginRight:"-10px"},imgItemContainer:{padding:"10px",maxWidth:"16.6%",flexBasis:"16.6%",flex:"0 0 50%",display:"flex",flexDirection:"column",cursor:"pointer"},imgItem:{paddingBottom:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}};function $n(e){var t=e.children,n=y.a.useState(document.createElement("div")),a=Object(C.a)(n,1)[0];return y.a.useEffect((function(){var e=document.getElementById("portal-root");return e.appendChild(a),function(){return e.removeChild(a)}}),[a]),Object(_.createPortal)(t,a)}var ea=n(68),ta=n.n(ea);function na(e){var t=e.images,n=e.isAtdwProduct,a=(e.useSlider,Object(v.useState)()),r=Object(C.a)(a,2),o=r[0],i=r[1],l=Object(v.useState)(),c=Object(C.a)(l,2),s=c[0],u=c[1],d=Object(v.useState)(0),m=Object(C.a)(d,2),p=m[0],b=m[1],f=Object(v.useState)(!0),g=Object(C.a)(f,2),h=g[0],y=g[1];return Object(v.useEffect)((function(){if(!s){var e=[],a=[];!0===n?t&&t.forEach((function(t){var n=null,r=null;t.forEach((function(e){(null===n||parseInt(n.width)<parseInt(e.width))&&(n=e),(null===r||parseInt(r.width)>parseInt(e.width))&&(r=e)})),e.push(n.serverPath),a.push(r.serverPath)})):t&&t.forEach((function(t){e.push(t.imageUrl),a.push(t.imageUrl)})),i(e),u(a)}}),[]),Object(P.b)(v.Fragment,null,Object(P.b)($n,null,Object(P.b)(ta.a,{toggler:h,sources:o,sourceIndex:p})),Object(P.b)("div",{css:Xn.container},s&&s.length>0&&s.map((function(e,t){return Object(P.b)("div",{key:t,css:Xn.imgItemContainer,onClick:function(e){e.stopPropagation(),e.preventDefault(),b(t>=0?t:0),y(!h)}},Object(P.b)("div",{css:Xn.imgItem,style:{backgroundImage:'url("'.concat(e,'")')}}))}))))}function aa(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","atdw-map-cellardoor",t.cssClass||t.anchorName||""),r=Object(v.useRef)(null),o=Object(v.useState)((function(){var e=window.location.hash;return e&&""!==e?e.trim().substring(1):null})),i=Object(C.a)(o,2),l=i[0],c=i[1],s=Object(v.useState)({errors:""}),u=Object(C.a)(s,2),d=u[0],m=u[1],p=Object(v.useState)("onloading"),b=Object(C.a)(p,2),f=b[0],g=b[1];function h(e){g("button"),c(e.slug)}return Object(v.useEffect)((function(){var e=new AbortController,t=e.signal,n=!0,a=document.createElement("script");return function(){var e=Object(V.a)(z.a.mark((function e(){var o,i,c;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(){var e=i.results.productResult.products,t=new window.google.maps.Map(r.current,{center:{lat:-34.17547561936846,lng:140.02757156230592},zoom:9,mapId:"77731b8119077e37"}),n=[];e.forEach((function(e){var a={lat:Number(e.additionalData.googlemap.geocodeGdaLatitude),lng:Number(e.additionalData.googlemap.geocodeGdaLongitude)},r=new window.google.maps.Marker({position:{lat:a.lat,lng:a.lng},map:t,title:e.productName});null!==l&&l===e.slug&&r.setIcon("/assets/pin/orange-map.svg?v=1");var o=new window.google.maps.InfoWindow({content:'<div class="info__window"><div class="info__title">'+e.productName+'</div><div class="info__town">'+e.town+'</div><div class="info__town">'+e.address+" "+e.town+'</div><p class="info__desc">'+e.shortDesc+"</p></div>"}),i=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(i=!0),r.addListener("mouseover",(function(){i||o.open(t,r)})),r.addListener("mouseout",(function(){i||o.close()})),r.addListener("click",(function(){for(var t in n)n[t].setIcon();r.setIcon("/assets/pin/orange-map.svg?v=1"),h(e)})),n.push(r)}))},e.next=3,fetch(N.apiBase+"/api/atdw/getmapproducts",{method:"post",signal:t,headers:{"Content-Type":"application/json"},body:JSON.stringify({fromType:"atdwmapcellardoor"})});case 3:return o=e.sent,e.next=6,o.json();case 6:i=e.sent,void 0===window.google?n=!1:void 0===window.google.maps&&(n=!0),n?c():(a.src="https://maps.googleapis.com/ma
1ps/api/js?key=AIzaSyBqjATWMNIpPT5GIDudcLTY6_2ijO8d-fQ",a.async=!0,document.body.appendChild(a),setTimeout((function(){c()}),1e3));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort(),n||document.body.removeChild(a)}}),[]),Object(v.useEffect)((function(){if(null!==l){var e=new AbortController,t=e.signal;m(null);var n=null;return fetch(N.apiBase+"/api/atdw/getproduct/"+l,{signal:t}).then((function(e){return e.json()})).then((function(e){var t=e;if(t.errors&&t.errors.length>0)n=setTimeout((function(){m({errors:t.errors[0].errorMessage})}),500);else{var a=t.results.isAtdwProduct;if(!0===a){if(t&&t.results&&t.results.product){console.log("_features ----\x3e 2");for(var r,o=t.results.product,i=[],l=[],c=[],s={lat:0,lng:0},u="",d="",p="",b=[],g=0;g<o.multimedia.length;g++)"IMAGE"===o.multimedia[g].attributeIdMultimediaContent&&"16X9"===o.multimedia[g].attributeIdSizeOrientation&&parseInt(o.multimedia[g].width)>=800?(r||(r=o.multimedia[g].multimediaId),r===o.multimedia[g].multimediaId?b.push(o.multimedia[g]):(i.push(b),(b=[]).push(o.multimedia[g]),r=o.multimedia[g].multimediaId)):"VIDEO"===o.multimedia[g].attributeIdMultimediaContent&&l.push(o.multimedia[g]),g===o.multimedia.length-1&&b.length>0&&i.push(b);for(var h in o.addresses)if("PHYSICAL"===o.addresses[h].attributeIdAddress){s.lat=Number(o.addresses[h].geocodeGdaLatitude),s.lng=Number(o.addresses[h].geocodeGdaLongitude);break}if(o.communication.forEach((function(e){"Primary Phone"===e.attributeIdCommunicationDescription?u=e.communicationDetail:"URL Enquiries"===e.attributeIdCommunicationDescription?d=e.communicationDetail:"Booking URL"===e.attributeIdCommunicationDescription&&(p=e.communicationDetail)})),o.externalSystems.length>0)for(var v in o.externalSystems)if("TXA_DEFAULT"===o.externalSystems[v].externalSystemCode){var y=o.externalSystems[v].externalSystemText;p="https://book.txa.com.au/v4/Pages/Availability.aspx?exl_dn=Destination_Riverland_web&exl_psn=".concat(y,"&exl_ad=2&exl_ch=0&exl_dte=");break}o.attributes.forEach((function(e){"ENTITY FAC"===e.attributeTypeId&&c.push(e)})),n=setTimeout((function(){m({multimedia:i,product:o,features:c,geoCode:s,searchTextTitle:"SEARCH "+o.productCategoryDescription,primaryPhone:u,siteUrl:d,bookingUrl:p,isAtdwProduct:a,atdwType:o.productCategoryId}),"button"===f&&Pt.ui.scrollTo("atdw__cellar__door__data")}),500)}}else if(t&&t.results&&t.results.product){var _=t.results.product,O=_.communication.find((function(e){return"Primary Phone"===e.attributeIdCommunicationDescription})),w=_.communication.find((function(e){return"URL Enquiries"===e.attributeIdCommunicationDescription})),j=_.communication.find((function(e){return"Booking URL"===e.attributeIdCommunicationDescription}));n=setTimeout((function(){m({multimedia:_.atdwImages,isAtdwProduct:a,product:_,features:_.features,geoCode:{lat:Number(_.extraGeoCodeLat),lng:Number(_.extraGeoCodeLng)},atdwType:_.productType,primaryPhone:O&&O.communicationDetail,siteUrl:w&&w.communicationDetail,bookingUrl:j&&j.communicationDetail}),"button"===f&&Pt.ui.scrollTo("atdw__cellar__door__data")}),500)}}})).catch((function(e){console.log("error :: ",e)})),function(){e.abort(),n&&clearTimeout(n)}}}),[l]),Object(P.b)(v.Fragment,null,Object(P.b)("div",{css:Qn.atdwMap,className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)("div",{style:{height:"450px"}},Object(P.b)("div",{ref:r,style:{height:"100%"}}))),null===d&&Object(P.b)(U,null),Object(P.b)("div",{id:"atdw__cellar__door__data",css:Qn.atdw__cellar__door__data,className:"atdw__cellar__door__data ".concat(null===d?"not__expand":"expand")},null!==d&&d.product&&Object(P.b)(v.Fragment,null,Object(P.b)("div",{className:"container",style:{paddingLeft:"0px",paddingRight:"0px"}},Object(P.b)(ra,{primaryPhone:d.primaryPhone,siteUrl:d.siteUrl,bookingUrl:d.bookingUrl,isAtdwProduct:d.isAtdwProduct}),Object(P.b)(oa,{product:d.product,isAtdwProduct:d.isAtdwProduct}),Object(P.b)(ia,{communication:d.product.communication,isAtdwProduct:d.isAtdwProduct}),Object(P.b)(la,{features:d.features}),d.product.eventFrequency&&d.product.eventFrequency.length>0&&Object(P.b)(ca,{dates:d.product.eventFrequency,isAtdwProduct:d.isAtdwProduct}
1),Object(P.b)(sa,{multimedia:d.multimedia,isAtdwProduct:d.isAtdwProduct})))))}function ra(e){var t=e.primaryPhone,n=e.siteUrl,a=e.bookingUrl;return Object(P.b)("div",{css:Qn.barBtnContainer},t&&""!==t&&Object(P.b)("a",{href:"tel:"+t},Object(P.b)("button",{css:Qn.barBtn,className:"btn btn-primary",type:"button"},"CONTACT")),n&&""!==n&&Object(P.b)("a",{href:n.includes("http")?n:"https://"+n,target:"_blank",rel:"noopener noreferrer"},Object(P.b)("button",{css:Qn.barBtn,className:"btn btn-primary",type:"button"}," WEBSITE ")),a&&""!==a&&Object(P.b)("a",{href:a.includes("http")?a:"https://"+a,target:"_blank",rel:"noopener noreferrer"},Object(P.b)("button",{css:Qn.barBtn,className:"btn btn-primary",type:"button"}," BOOKINGS ")))}function oa(e){var t=e.product,n=e.isAtdwProduct;return Object(P.b)("section",null,Object(P.b)("h1",{css:Qn.productName},t.productName.toUpperCase()),Object(P.b)((function(){return n?t.productDescription.split("\n").map((function(e,t){return Object(P.b)("p",{css:Qn.productDes,key:t,className:"".concat("des__"+t)},e)})):Object(P.b)("div",{dangerouslySetInnerHTML:{__html:t.extraDescription}})}),null),t.rateFrom&&""!==t.rateFrom&&t.rateTo&&""!==t.rateTo&&Object(P.b)("div",{css:Qn.productRate},"Rate : ","$"+t.rateFrom," ~ ","$"+t.rateTo))}function ia(e){var t=e.communication,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Qn.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Qn.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Qn.expanleTitle}," CONTACT DETAILS "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Qn.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),t.map((function(e,t){if(!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("email")||!1===n&&"email"===e.type)return Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:"mailto:"+e.communicationDetail,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail));if(!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("phone")||!1===n&&"tel"===e.type){var a=e.communicationDetail;if(e.communicationDetail&&""!==e.communicationDetail){var r=(e.communicationAreaCode?e.communicationAreaCode:"")+e.communicationDetail.replace(/\s/g,"");a="+"+e.communicationIsdCode+r.slice(1)}return Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:"tel:"+a,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail))}return!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("url")||!1===n&&"url"===e.type?Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:e.communicationDetail.includes("http")?e.communicationDetail:"https://"+e.communicationDetail,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail)):Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("span",null," ",e.communicationDetail," "))})))))}function la(e){var t=e.features,n=Object(v.useState)(!1),a=Object(C.a)(n,2),r=a[0],o=a[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Qn.expendablePanel,className:r?"open":"close"},Object(P.b)("div",{css:Qn.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){o(!r)}},Object(P.b)("span",{css:Qn.expanleTitle}," FEATURES "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Qn.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{className:"row"},t.map((function(e,t){return Object(P.b)("div",{className:"col-12 col-sm-4",key:t},Object(P.b)(hn.d,{style:{height:"0.2em",width:"0.2em",verticalAlign:"middle"}}),Object(P.b)("span",{css:Qn.content}," ",e.attributeIdDescription," "))}))))))}function ca(e){var t=e.dates,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1],l=new Date;return Object(P.b)("section",null,Object(P.b)("div",{css:Qn.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Qn.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Qn.expanleTitle}," DATES & TIME "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Qn.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{className:"row"},t.map((function(e,t){var a=new Date(e.frequencyStartDate),r="",o=n?e.frequencyStartTime:"";switch(a.getMonth()){case 0:r="January";break;case 1:r="February";break;case 2:r="March";break;case 3:r="April";break;case 4:r="May";break;case 5:r="June";break;case 6:r="July";break;case 7:r="August";break;case 8:r="September";break;case 9:r="October";break;case 10:r="November";break;case 11:r="December";break;default:r=""}if(o&&""!==o){var i=e.frequencyStartTime.split(":");o=parseInt(i[0])>12?i[0]-12+":"+i[1]+" pm":i[0]+":"+i[1]+" am"}var c=a.getDate()+"th "+r+" "+a.getFullYear()+(o&&""!==o?" "+o:"");return a>=l?Object(P.b)("div",{className:"col-6 col-sm-4",key:t,style:{fontFamily:"sans-serif"}},c):null}))))))}function sa(e){var t=e.multimedia,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Qn.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Qn.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Qn.expanleTitle}," PHOTO GALLERY & VIDEO "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Qn.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)(na,{images:t,isAtdwProduct:n}))))}var ua={match:function(e,t){return"AtdwCellarDoorMap"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(aa,{item:e,cmsOption:t})}},da={atdwMap:Object(P.a)({maxWidth:"960px",margin:"auto",".info__window":{maxWidth:"300px"},".info__title":{fontWeight:"700",fontSize:"15px"},".info__town":{fontWeight:"300",fontSize:"13px",margin:"0.2rem 0px"}}),filters:Object(P.a)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",marginTop:"0.5rem",marginBottom:"0.5rem",".btn":{lineHeight:"1",margin:"4px",fontSize:"0.6rem"},".btn.selected":{backgroundColor:L.dkOrangeColor,borderColor:L.dkOrangeColor}}
1),popupBackground:Object(P.a)({backgroundColor:"rgba(0,0,0,0.3)",position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:"9999"}),container:Object(P.a)({position:"fixed",width:"95%",left:"50%",top:"50%",transform:"translate(-50%, -50%)",marginTop:"-1rem",zIndex:"9999",backgroundColor:"white",padding:"1rem",maxWidth:"450px"}),popupTitle:Object(P.a)({fontWeight:"700",fontSize:"1rem"}),popupTown:Object(P.a)({fontWeight:"300",fontSize:"0.8rem",margin:"0.2rem 0px"}),popupDesc:Object(P.a)({fontSize:"0.8rem"}),button:Object(P.a)({fontWeight:"700"})};function ma(e){var t=e.children,n=Object(v.useState)(document.createElement("div")),a=Object(C.a)(n,1)[0];return Object(v.useEffect)((function(){var e=document.getElementById("portal-root");return e.appendChild(a),function(){return e.removeChild(a)}}),[a]),Object(_.createPortal)(t,a)}function pa(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","atdw-map",t.cssClass||t.anchorName||""),r=e.fromType||"area",o=Sn.payload(t,"AtdwType")||"ALL",i=Sn.payload(t,"MapArea")||("town"===r?"loxton":"all"),l=Object(v.useState)({currentAtdwType:"ALL"===o?"town"===r?"ATTRACTION":"ACCOMM":o}),c=Object(C.a)(l,2),s=c[0],u=c[1],d=Object(v.useRef)(null),m=Object(w.g)(),p=Object(v.useState)(!1),b=Object(C.a)(p,2),f=b[0],g=b[1],h=Object(v.useState)(),y=Object(C.a)(h,2),_=y[0],O=y[1];Object(v.useEffect)((function(){var e=new AbortController,t=e.signal,n=!0,a=document.createElement("script");return function(){var e=Object(V.a)(z.a.mark((function e(){var o,l,c;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(){var e=l.results.productResult.products,t={lat:-34.17547561936846,lng:140.02757156230592},n=9,a=null,o={geodesic:!0,strokeColor:"#d44a33",strokeOpacity:1,strokeWeight:2};"east"===i?(t={lat:-34.15645063232083,lng:140.74006049706702},n=11,a=new window.google.maps.Polyline(Object(E.a)(Object(E.a)({},o),{},{path:[{lat:-34.10267722604226,lng:140.57938170451808},{lat:-34.07274418546968,lng:140.68324273122866},{lat:-33.97058173801264,lng:140.64918400143875},{lat:-33.82325254108687,lng:141.01950749703695},{lat:-34.43312277879625,lng:141.01618241134287},{lat:-34.49879906366051,lng:140.8966838554657},{lat:-34.10267722604226,lng:140.57938170451808}]}))):"central"===i?(t={lat:-34.27115834236997,lng:140.60792884221695},n=10,a=new window.google.maps.Polyline(Object(E.a)(Object(E.a)({},o),{},{path:[{lat:-34.07622871072631,lng:140.22212910088683},{lat:-34.12722076884324,lng:140.46106837373443},{lat:-34.10267722604226,lng:140.57938170451808},{lat:-34.49879906366051,lng:140.8966838554657},{lat:-34.60822804198778,lng:140.5911586974733},{lat:-34.35191069253517,lng:140.22314098606688},{lat:-34.07622871072631,lng:140.22212910088683}]}))):"west"===i?(t={lat:-34.15321294235024,lng:139.82787743344488},n=10,a=new window.google.maps.Polyline(Object(E.a)(Object(E.a)({},o),{},{path:[{lat:-33.8548977222504,lng:139.54142526792327},{lat:-34.07622871072631,lng:140.22212910088683},{lat:-34.35191069253517,lng:140.22314098606688},{lat:-34.25327954821813,lng:140.06125313010946},{lat:-34.4950906230296,lng:139.5480324822079},{lat:-33.8548977222504,lng:139.54142526792327}]}))):"town"===r&&"loxton"===i?(t={lat:-34.389577187333295,lng:140.58616565490823},n=11,a=new window.google.maps.Polyline(Object(E.a)(Object(E.a)({},o),{},{path:[{lat:-34.42956929991063,lng:140.66241694584906},{lat:-34.51573532920424,lng:140.66221280479223},{lat:-34.515903535157165,lng:140.60709475176404},{lat:-34.50766104412369,lng:140.60321607395832},{lat:-34.50698815171927,lng:140.487264021662},{lat:-34.459285140174174,lng:140.51649253650788},{lat:-34.460028220241796,lng:140.51936786466055},{lat:-34.45539270796296,lng:140.5223719388499},{lat:-34.45606505012705,lng:140.5267922194428},{lat:-34.45280944814033,lng:140.52644889641616},{lat:-34.45178319949749,lng:140.52945297060552},{lat:-34.45574657285607,lng:140.53455989635398},{lat:-34.4527386727435,lng:140.5467907694407},{lat:-34.44789041756394,lng:140.54606120856613},{lat:-34.44651020586981,lng:140.54902236740992},{lat:-34.447748858423886,lng:140.55412929327227},{lat:-34.44835048300211,lng:140.56189697055947}
1,{lat:-34.443395798058454,lng:140.5727974681125},{lat:-34.43829924418593,lng:140.57129543098475},{lat:-34.43521992553833,lng:140.5743424203476},{lat:-34.43461820635783,lng:140.58095138356418},{lat:-34.43072462453833,lng:140.58627288615568},{lat:-34.42732644131692,lng:140.58820407670598},{lat:-34.425945889867364,lng:140.62592666437084},{lat:-34.431007800182925,lng:140.628458669759},{lat:-34.43029985913629,lng:140.63910167545842},{lat:-34.42775122172015,lng:140.64176242688328},{lat:-34.42973350198171,lng:140.64781349060755},{lat:-34.42969810453212,lng:140.66231887740756}]}))):"town"===r&&"waikerie"===i&&(t={lat:-34.178330889864164,lng:139.9858583816066},n=12,a=new window.google.maps.Polyline(Object(E.a)({},o)));var c=new window.google.maps.Map(d.current,{center:t,zoom:n,mapId:"77731b8119077e37"});a&&a.setMap(c),e.forEach((function(e){var t={lat:Number(e.additionalData.googlemap.geocodeGdaLatitude),lng:Number(e.additionalData.googlemap.geocodeGdaLongitude)},n=new window.google.maps.Marker({position:{lat:t.lat,lng:t.lng},map:c,title:e.productName}),a=new window.google.maps.InfoWindow({content:'<div class="info__window"><div class="info__title">'+e.productName+'</div><div class="info__town">'+e.town+'</div><div class="info__town">'+e.address+" "+e.town+'</div><p class="info__desc">'+e.shortDesc+"</p></div>"}),r=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(r=!0),n.addListener("mouseover",(function(){r||a.open(c,n)})),n.addListener("mouseout",(function(){r||a.close()})),n.addListener("click",(function(){r?(O({productName:e.productName,address:e.address,town:e.town,desc:e.shortDesc,slug:e.slug}),g(!0)):m.push("/atdwproduct/"+e.slug)}))}))},e.next=3,fetch(N.apiBase+"/api/atdw/getmapproducts",{method:"post",signal:t,headers:{"Content-Type":"application/json"},body:JSON.stringify({category:s.currentAtdwType,mapArea:i,fromType:r})});case 3:return o=e.sent,e.next=6,o.json();case 6:l=e.sent,void 0===window.google?n=!1:void 0===window.google.maps&&(n=!0),n?c():(a.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqjATWMNIpPT5GIDudcLTY6_2ijO8d-fQ",a.async=!0,document.body.appendChild(a),setTimeout((function(){c()}),1e3));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort(),n||document.body.removeChild(a)}}),[s.currentAtdwType]);var j=Object(v.useCallback)((function(e){u(Object(E.a)(Object(E.a)({},s),{},{currentAtdwType:e}))}),[]);return Object(P.b)(v.Fragment,null,Object(P.b)(ma,null,f&&Object(P.b)(v.Fragment,null,Object(P.b)("div",{css:da.popupBackground}),Object(P.b)("div",{css:da.container},Object(P.b)("div",{css:da.popupTitle}," ",_.productName," "),Object(P.b)("div",{css:da.popupTown}," ",_.town," "),Object(P.b)("div",{css:da.popupTown}," ",_.address+" "+_.town," "),Object(P.b)("p",{css:da.popupDesc}," ",_.desc," "),Object(P.b)("div",{style:{textAlign:"center"}},Object(P.b)("button",{className:"btn btn-primary",onClick:function(){m.push("/atdwproduct/"+_.slug)}},"Go"),Object(P.b)("button",{className:"btn btn-primary",style:{marginLeft:"1rem"},onClick:function(){g(!1),O(null)}},"Close"))))),Object(P.b)("div",{css:da.atdwMap,className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)("div",{style:{height:"450px"}},Object(P.b)("div",{ref:d,style:{height:"100%"}})),Object(P.b)((function(){return Object(P.b)("div",{css:da.filters,className:"atdw__map__filter"},Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("ACCOMM"===s.currentAtdwType?"selected":""),onClick:function(){"ACCOMM"!==s.currentAtdwType&&j("ACCOMM")}},"ACCOMMODATION"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("ATTRACTION"===s.currentAtdwType?"selected":""),onClick:function(){"ATTRACTION"!==s.currentAtdwType&&j("ATTRACTION")}},"ATTRACTIONS"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("RESTAURANT"===s.currentAtdwType?"selected":""),onClick:function(){"RESTAURANT"!==s.currentAtdwType&&j("RESTAURANT")}},"EAT & DRINK"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("EVENT"===s.currentAtdwType?"selected":""),onClick:function(){"EVENT"!==s.currentAtdwType&&j("EVENT")}},"EVENTS"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("HIRE"===s.currentAtdwType?"selected":""),onClick:function(){"HIRE"!==s.currentAtdwType&&j("HIRE")}},"HIRE"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("INFO"===s.currentAtdwType?"selected":""),onClick:function(){"INFO"!==s.currentAtdwType&&j("INFO")}},"INFO"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("TOUR"===s.currentAtdwType?"selected":""),onClick:function(){"TOUR"!==s.currentAtdwType&&j("TOUR")}},"TOURS"),Object(P.b)("button",{css:da.button,className:"btn btn-primary map-button ".concat("GENSERVICE"===s.currentAtdwType?"selected":""),onClick:function(){"GENSERVICE"!==s.currentAtdwType&&j("GENSERVICE")}},"GENERAL"))}),null)))}var ba={match:function(e,t){return"AtdwMapTown"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(pa,{item:e,cmsOption:t,fromType:"town"})}};function fa(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","atdw-search",t.cssClass||t.anchorName||""),r=Sn.payload(t,"BgColor"),o=Sn.payload(t,"ImageUrl"),i=Sn.payload(t,"Backgroun
1dTile"),l=Sn.payload(t,"ProductType")||"ACCOMM",c=Sn.payload(t,"SubTypes")||"",s=Sn.payload(t,"AutoSearch")||"off",u=Sn.payload(t,"HideSearch")||"off",d=Sn.payload(t,"NumOfTileLines")||"12",m=Sn.payload(t,"Town")||"ALL",p=null;return o?p=Pt.site.resourcePath(o):i&&(p=Pt.site.resourcePath("/dist/transparent-textures/textures/".concat(i))),Object(P.b)("section",{style:{backgroundColor:"".concat(r),backgroundImage:p&&Pt.css.bgUrlStyle(p),padding:"1rem 0px"},className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)("div",{className:"container"},Object(P.b)(zn,{atdwType:l,subTypes:c,autoSearch:s,hideSearch:u,numOfTileLines:d,town:m})))}var ga={match:function(e,t){return"AtdwSearch"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(fa,{item:e,cmsOption:t})}},ha={noResultText:{textAlign:"center",marginTop:"1rem",fontWeight:600}};function va(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","atdw__page__tiles",t.cssClass||t.anchorName||""),r=Object(v.useState)(!0),o=Object(C.a)(r,2),i=o[0],l=o[1],c=Object(v.useState)(),s=Object(C.a)(c,2),u=s[0],d=s[1],m=Sn.payload(t,"SelectedPages")||"",p=Sn.payload(t,"TileType")||"2",b="slider"===Sn.payload(t,"UseSlider");return Object(v.useEffect)((function(){var e=new AbortController,t=e.signal;return function(){var e=Object(V.a)(z.a.mark((function e(){var n,a;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(N.apiBase+"/api/atdw/getproductsatdwtiles",{method:"post",signal:t,headers:{"Content-Type":"application/json"},body:JSON.stringify({selectedPages:m})});case 2:return n=e.sent,e.next=5,n.json();case 5:(a=e.sent)&&a.results&&a.results.productResult&&d({atdwData:a.results.productResult.products}),l(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort()}}),[]),Object(P.b)("div",{css:ha.atdwMap,className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},i?Object(P.b)(U,null):Object(P.b)(Wn,{atdwData:u.atdwData,tileType:p,useSlider:b}),u&&u.atdwData&&u.atdwData.length<1&&Object(P.b)("div",{css:ha.noResultText}," Sorry, there are no available results. "))}var ya={match:function(e,t){return"AtdwPageTiles"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(va,{item:e,cmsOption:t})}};var _a={match:function(e,t){return"instagram"===(Sn.getCodeJson(e)||{}).control},itemElt:function(e,t){return!!navigator.onLine&&y.a.createElement(vn,null)}};function Oa(e,t){return"number"===typeof e&&t&&t.controls.length>e?t.controls[e]:function e(t,n){if(!n)return null;if(n.name===t)return n;if(n.controls&&n.controls.length>0)for(var a=0;a<n.controls.length;a++){var r=e(t,n.controls[a]);if(r)return r}return null}(e,t)}function wa(e){return Ca(e)}var ja={getValueTraverse:Ca,getFilesTraverse:Ea};function Ta(e){var t={};return t[e.name]=Ca(e),t}function Ca(e){if("control"===e.controlType)return e.customValueFn?e.customValueFn(e,ja):e.value;if("group"===e.controlType){if(e.customValueFn)return e.customValueFn(e,ja);for(var t={},n=0;n<e.controls.length;n++)t=Object(E.a)(Object(E.a)({},t),Ta(e.controls[n]));return t}if("array"===e.controlType){if(e.customValueFn)return e.customValueFn(e,ja);for(var a=[],r=0;r<e.controls.length;r++)a.push(Ca(e.controls[r]));return a}return null}function Ea(e){if("control"===e.controlType)return e.files?[{name:e.name,files:e.files}]:[];if("group"===e.controlType){for(var t=[],n=0;n<e.controls.length;n++)t.push.apply(t,Object(F.a)(Ea(e.controls[n])));return t}if("array"===e.controlType){for(var a=[],r=0;r<e.controls.length;r++)a.push.apply(a,Object(F.a)(Ea(e.controls[r])));return a}return[]}var xa=function(e,t){return t?t.controlType?(t.name=e,t):Na(e,t):null},Na=function(e,t){var n=Object(C.a)(t,3),a=n[0],r=n[1],o=n[2];return Object(E.a)(Object(E.a)({},{controlType:"control",id:st()(),name:e,value:a,validators:r||[],touched:!1,incomplete:!1,findValidator:function(e){return(r||[]).find((function(t){return t.type===e}))}}),o)},ka=function(e){var t=[];e&&"object"===typeof e&&Object.keys(e).forEach((function(n){t.push(xa(n,e[n]))}));var n={controlType:"group",id:st()(),controls:t,find:function(e){return t.find((function(t){return t.name===e}))},customValueFn:null,disableValidators:!1,getValue:function(){return wa(n)}};
1return n.controls.forEach((function(e){return e.parent=n})),n};function Sa(e){return!!e&&!!e.findValidator("required")}function Ia(e,t){return Pt.text.toFieldName(e||t)}function Aa(e,t,n,a){return Object(E.a)(Object(E.a)({type:e,disabled:!1},function(e){var t={continueToValidate:!1};return e?Object(E.a)(Object(E.a)({},t),e):t}(n)),{},{message:t,validate:a})}function Pa(e){return Array.isArray(e)?0===e.length:!e&&0!==e}var Da=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)};function Ra(e){return Array.isArray(e)?0===e.length:!e&&0!==e}function La(e){return!!e&&!!Pt.date.toDate(e)}function Ma(e){if(e){var t=Pt.date.toDate(e);if(t){var n=new Date;return t.getTime()<n.getTime()}}return!1}var Ba=function(e,t){var n=(e||"").length;return!(t.min&&n<t.min)&&!(t.max&&n>t.max)},Ha={Required:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Aa("required",e,t,(function(t,n,a){return a.triggeredByChange&&t.incomplete?null:Pa(t.value)?e||Ia(t.label,t.name)+" is required.":null}))},Email:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Aa("email",e,t,(function(t,n,a){return a.triggeredByChange&&t.incomplete||n&&"change"===n.type||Ra(t.value)||Da(t.value)?null:e||Ia(t.label,t.name)+" - Invalid email."}))},Date:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Aa("date",e,t,(function(t,n,a){return a.triggeredByChange&&t.incomplete||La(t.value)?null:e||Ia(t.label,t.name)+" is invalid."}))},PastDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Aa("past-date",e,t,(function(t,n,a){return a.triggeredByChange&&t.incomplete||Ma(t.value)?null:e||Ia(t.label,t.name)+" is invalid."}))},PastDateNullAllowed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Aa("past-date",e,t,(function(t,n,a){return a.triggeredByChange&&t.incomplete?null:t.value&&!Ma(t.value)?e||Ia(t.label,t.name)+" is invalid.":null}))},Length:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Aa("email",e,t,(function(t,n,a,r){return a.triggeredByChange&&t.incomplete||Ba(t.value,r)?null:e||Ia(t.label,t.name)+" - Invalid length."}))},validateControl:function(e,t,n){for(var a=[],r=e.validators||[],o=0;o<r.length;o++){var i=r[o];if(!i.disabled){var l=i.validate&&i.validate(e,t,n,i);if(l&&(a.push(l),!i.continueToValidate))break}}return e.errors=a,a}};function Ua(e,t){var n=e.label,a=e.name,r=Sa(e)&&(t.requiredMark||"*");return null===n?"":y.a.createElement(y.a.Fragment,null,y.a.createElement("span",{dangerouslySetInnerHTML:{__html:n||Pt.text.toFieldName(a)}}),r&&y.a.createElement("span",{className:"req"},r))}function Fa(e,t){var n=e.label,a=e.name,r=Sa(e)&&(t.requiredMark||"*");return null===n?"":(n||Pt.text.toFieldName(a))+(r||"")}var Wa=function(e){var t=e.errors;return t&&0!==t.length?y.a.createElement("div",{className:"invalid",role:"alert",dangerouslySetInnerHTML:{__html:t.join("<br/>")}}):null};var za=function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.type),i=t.value,l=t.errors,c=t.style,s=t.helpText,u=t.attrs,d=Pt.random.shortId(),m=a.usePlaceholder,p=void 0!==m&&m,b=Ua(t,a),f=p?Fa(t,a):null,g=0===i?0:i||"";"date"===o&&i&&(g=Pt.date.formatYYYYMMDD(i));var h=null;return c&&c.prependText&&(h=c.prependText),v.createElement("div",{className:"ff ff--".concat(o," form-group ").concat(c&&c.className)},!p&&b&&v.createElement("label",{htmlFor:d,className:"label"},b),v.createElement("div",{className:"ff__input ".concat(h&&"input-group")},h&&v.createElement("div",{className:"input-group-prepend"},v.createElement("div",{className:"input-group-text"},h)),v.createElement("input",Object.assign({id:d,name:r,type:o,value:g,onChange:function(e){n(e,t)},onKeyDown:function(e){"Enter"!==e.key&&"Tab"!==e.key||n(e,t)},onBlur:function(e){n(e,t)},autoComplete:"new-password",placeholder:f,className:"form-control"+(l&&l.length>0?" is-invalid":"")},u))),s&&v.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:s}}),v.createElement(Wa,{errors:l}))};function Va(e,t){return null!==t&&"undefined"!==typeof t&&e===t}function qa(e,t){return null!==t&&"undefined"!==typeof t&&e.includes(t)}var Ya=function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.errors),i=t.style,l=t.helpText,c=t.attrs,s=(new Date).getFullYear(),u=v.useState(""),d=Object(C.a)(u,2),m=d[0],p=d[1],b=v.useState(""),f=Object(C.a)(b,2),g=f[0],h=f[1],y=v.useState(""),_=Object(C.a)(y,2),O=_[0],w=_[1],j=Pt.random.shortId(),T=a.usePlaceholder,E=void 0!==T&&T,x=Ua(t,a);function N(e,a,o){t.incomplete=!(""!==e&&""!==a&&""!==o),n({persist:function(){},target:{name:r,value:e+"-"+a+"-"+o,checked:!1}
1},t)}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],S={width:"auto",display:"inline-block",marginRight:"0.5em"},I=i&&i.recentYear?s:s-10,A=i&&i.recentYear?i.recentYear:100;return v.createElement("div",{className:"ff ff--dateSeperate form-group"},!E&&x&&v.createElement("label",{htmlFor:j,className:"label"},x),v.createElement("div",{className:"ff__input"},v.createElement("select",Object.assign({style:S,id:"day_".concat(j),value:O,onChange:function(e){return function(e){w(e.target.value),N(m,g,e.target.value)}(e)},className:"form-control"+(o&&o.length>0?" is-invalid":"")},c),v.createElement("option",{value:""},"Day"),Object(F.a)(Array(31).keys()).map((function(e){return e+1})).map((function(e){return v.createElement("option",{key:e,value:e},e)}))),v.createElement("select",Object.assign({style:S,id:"month_".concat(j),value:g,onChange:function(e){return function(e){h(e.target.value),N(m,e.target.value,O)}(e)},className:"form-control"+(o&&o.length>0?" is-invalid":"")},c),v.createElement("option",{value:""},"Month"),Object(F.a)(Array(12).keys()).map((function(e){return v.createElement("option",{key:e,value:e+1},k[e])}))),v.createElement("select",Object.assign({style:S,id:"year_".concat(j),value:m,onChange:function(e){return function(e){p(e.target.value),N(e.target.value,g,O)}(e)},className:"form-control"+(o&&o.length>0?" is-invalid":"")},c),v.createElement("option",{value:""},"Year"),Object(F.a)(Array(A).keys()).map((function(e){return I-e})).map((function(e){return v.createElement("option",{key:e,value:e},e)})))),l&&v.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:l}}),v.createElement(Wa,{errors:o}))};var Ga={TextInput:za,RadioListInput:function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.value),i=t.errors,l=t.style,c=t.options,s=t.helpText,u=t.attrs,d=Pt.random.shortId(),m=Ua(t,a);return y.a.createElement("div",{className:"ff ff--radiolist form-group ".concat(l&&l.className)},m&&y.a.createElement("label",{className:"label"},m),y.a.createElement("div",{className:"ff__input controlOptions"},c&&c.map((function(e,a){return y.a.createElement("div",{className:"form-check ".concat(l&&l.inline&&"form-check-inline"),key:e.value},y.a.createElement("input",Object.assign({className:"form-check-input",name:r,type:"radio",checked:Va(o,e.value),onChange:function(e){return n(e,t)},value:e.value,id:d+"_"+a},u)),y.a.createElement("label",{className:"form-check-label",htmlFor:d+"_"+a},e.name),e.helpText&&""!==e.helpText&&y.a.createElement("label",{className:"form-check-label help-text ".concat(e.id&&""!==e.id&&e.id)},e.helpText))}))),s&&y.a.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:s}}),y.a.createElement(Wa,{errors:i}))},TextareaInput:function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.type),i=t.value,l=t.errors,c=t.style,s=t.helpText,u=t.attrs,d=Pt.random.shortId(),m=Ua(t,a),p=a.usePlaceholder,b=void 0!==p&&p,f=b?Fa(t,a):null,g=0===i?0:i||"",h=y.a.useRef(null),v=y.a.useState("auto"),_=Object(C.a)(v,2),O=_[0],w=_[1],j=y.a.useState("auto"),T=Object(C.a)(j,2),E=T[0],x=T[1];return y.a.useEffect((function(){if(h.current){var e=h.current.scrollHeight>60?h.current.scrollHeight:60;x("".concat(e,"px")),w("".concat(e,"px"))}}),[g]),y.a.createElement("div",{className:"ff ff--textarea form-group ".concat(c&&c.className)},!b&&m&&y.a.createElement("label",{htmlFor:d,className:"label"},m),y.a.createElement("div",{className:"ff__input",style:{minHeight:E}},y.a.createElement("textarea",Object.assign({id:d,name:r,value:g,type:o,onChange:function(e){if(w("auto"),h.current){var a=h.current.scrollHeight>60?h.current.scrollHeight:60;x("".concat(a,"px"))}n(e,t)},placeholder:f,rows:c&&c.rows,ref:h,style:{height:O},className:"form-control"+(l&&l.length>0?" is-invalid":"")},u))),s&&y.a.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:s}}),y.a.createElement(Wa,{errors:l}))},CheckboxInput:function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.type),i=t.value,l=t.errors,c=t.style,s=t.helpText,u=t.attrs,d=t.link,m=t.linkText,p=Pt.random.shortId(),b=Ua(t,a);return y.a.createElement("div",{className:"form-group form-check ".concat(c&&c.className)},y.a.createElement("input",Object.assign({id:p,name:r,type:o,value:i||"",checked:i||!1,onChange:function(e){return n(e,t)},className:"form-check-input"},u)),y.a.createElement("label",{htmlFor:p,className:"form-check-label"},b,d&&""!==d&&m&&""!==m&&d.includes(".pdf")?y.a.createElement("a",{href:d,className:"checkbox_link_text"}," ",m," "):y.a.createElement(fn,{to:d,className:"checkbox_link_text"}," ",m," ")),s&&y.a.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:s}}),y.a.createElement(Wa,{errors:l}))},CheckboxListInput:function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.value),i=t.errors,l=t.style,c=t.o
1ptions,s=t.helpText,u=t.attrs,d=Pt.random.shortId(),m=Ua(t,a),p=o?Object(F.a)(o):[];return y.a.createElement("div",{className:"ff ff--checkbox form-group ".concat(l&&l.className)},m&&y.a.createElement("label",{className:"label"},m),y.a.createElement("div",{className:"ff__input"},y.a.createElement("div",{className:"controlOptions"},c&&c.map((function(e,a){return y.a.createElement("div",{className:"form-check ".concat(l&&l.inline&&"form-check-inline"),key:e.value},y.a.createElement("input",Object.assign({className:"form-check-input",name:r,type:"checkbox",checked:qa(p,e.value),onChange:function(e){return n(e,t)},value:e.value,id:d+"_"+a},u)),y.a.createElement("label",{className:"form-check-label",htmlFor:d+"_"+a},e.name))})))),s&&y.a.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:s}}),y.a.createElement(Wa,{errors:i}))},SelectInput:function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.type),i=t.value,l=t.errors,c=t.style,s=t.options,u=t.helpText,d=t.attrs,m=Pt.random.shortId(),p=Ua(t,a);return y.a.createElement("div",{className:"ff ff--select form-group ".concat(c&&c.className)},p&&y.a.createElement("label",{htmlFor:m,className:"label"},p),y.a.createElement("div",{className:"ff__input"},y.a.createElement("select",Object.assign({id:m,name:r,type:o,value:null===i?"":i,onChange:function(e){return n(e,t)},className:"form-control"+(l&&l.length>0?" is-invalid":"")},d),s&&s.map((function(e){return y.a.createElement("option",{key:e.value,value:e.value,disabled:!!e.disabled},e.name)})))),u&&y.a.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:u}}),y.a.createElement(Wa,{errors:l}))},HiddenInput:function(e){var t=e.control,n=(e.handleChange,e.formOption,t.name),a=t.value,r=Pt.random.shortId(),o=0===a?0:a||"";return v.createElement("input",{id:r,name:n,type:"hidden",value:o})},DateSeparateInput:Ya,FileInput:function(e){var t=e.control,n=e.handleChange,a=e.formOption,r=t.name,o=(t.label,t.type),i=t.value,l=t.errors,c=t.style,s=t.helpText,u=t.attrs,d=Pt.random.shortId(),m=a.usePlaceholder,p=void 0!==m&&m,b=Ua(t,a),f=p?b:null,g=0===i?0:i||"";return"date"===o&&i&&(g=Pt.date.formatYYYYMMDD(i)),v.createElement("div",{className:"ff ff--file form-group ".concat(c&&c.className)},!p&&b&&v.createElement("label",{htmlFor:d,className:"label"},b),v.createElement("div",{className:"ff__input"},v.createElement("input",Object.assign({style:{display:"none"},id:d,name:r,type:"file",value:g,onChange:function(e){return n(e,t)},onBlur:function(e){return n(e,t)},placeholder:f,className:"form-control-file"+(l&&l.length>0?" is-invalid":"")},u)),v.createElement("div",{className:"choose-file-container"},v.createElement("label",{htmlFor:d,className:"choose-file-label"}," CHOOSE FILE "),v.createElement("div",{className:"file__attach__text"},""===g?"No File Chosen":g.replace(/^.*\\/,"")))),s&&v.createElement("div",{className:"ff__help",dangerouslySetInnerHTML:{__html:s}}),v.createElement(Wa,{errors:l}))}};function Ka(e,t,n){if(null===e)return null;var a=function(e,t){var n;return"number"===e.type||"email"===e.type||"date"===e.type||"password"===e.type||"tel"===e.type?za:"dob"===e.type?Ya:Ga[(n=e.type||"",n.charAt(0).toUpperCase()+n.slice(1)+"Input")]}(e);return a?y.a.createElement(a,{key:e.name,control:e,handleChange:t,formOption:n}):e.value}var Ja={renderControl:function(e,t,n,a){var r=Oa(t,e);if(r)return Ka(r,n,a)},renderControlDirect:Ka};function Qa(e,t){if(!e)return[];if(e.disableValidators)return e.errors=[],[];var n=[],a=Ha.validateControl(e,null,t);if(n.push.apply(n,Object(F.a)(a)),e.controls&&e.controls.length>0)for(var r=0;r<e.controls.length;r++){var o=Qa(e.controls[r],t);n.push.apply(n,Object(F.a)(o))}return e.errors=n,n}var Za=function(e,t){var n=Object(v.useState)(e),a=Object(C.a)(n,2),r=a[0],o=a[1],i=Object(E.a)(Object(E.a)({},{template:"bootstrap",usePlaceholder:!1,requiredMark:"*",onControlChanged:null}),t),l=function(e,t){e.persist();var n=t||Oa(e.target.name,r);n&&(n.touched=!0,n.value=function(e,t){if("checkboxList"===e.type){var n=t.closest(".controlOptions");return n?Object(F.a)(n.querySelectorAll("input:checked")).map((function(e){return e.value})):[]}if("radioList"===e.type){var a=t.closest(".controlOptions");
1if(a){var r=Object(F.a)(a.querySelectorAll("input:checked")).map((function(e){return e.value}));return r&&r.length>0?r[0]:null}return null}return"checkbox"===e.type?t.checked:t.value}(n,e.target),"file"===n.type&&(n.files=e.target.files),n.onBeforeUpdateValue&&n.onBeforeUpdateValue(n,r),Ha.validateControl(n,e,{triggeredByChange:!0}),o(Object(E.a)({},r)),i.onControlChanged&&i.onControlChanged(e,n))},c=function(e,t,n,a){t&&t.preventDefault();var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qa(e,Object(E.a)(Object(E.a)({},{triggeredByChange:!1}),t));return n}(e);0===i.length?n&&n():(o(Object(E.a)({},r)),a&&a(i))};return{model:r,errors:r.errors,reset:function(e){return o(e?Object(E.a)({},e):Object(E.a)({},r))},renderControl:function(e,t){return Ja.renderControl(t||r,e,l,i)},renderControlDirect:function(e){return Ja.renderControlDirect(e,l,i)},findControl:function(e,t){return Oa(e,t||r)},validateForm:function(e,t,n){c(r,e,t,n)},validateGroup:c,getValue:function(e){return wa(e||r)},getFiles:function(e){return Ea(e||r)}}};var Xa=function(){return!("undefined"===typeof window||!window.dataLayer)},$a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Xa()){var n=t?{path:e,title:t}:{path:e};window.dataLayer.push({event:"pageview",page:n})}},er=function(e,t){Xa()&&window.dataLayer.push(Object.assign({event:e},t||{}))},tr=function(e,t,n,a){Xa()&&window.dataLayer.push(Object.assign({event:"gaEvent"},{category:e||"",action:t||"",label:n||"",value:a||""}))},nr=n(77),ar=L.primaryColor,rr={button:wt({color:"white",padding:"0.7rem 1.5rem 1rem 1.5rem",position:"relative",overflow:"hidden",display:"inline-block",appearance:"none","-webkit-appearance":"none","&:hover .buttonBg":{background:Object(nr.a)(.1,ar)},"&:hover":{color:"white",textDecoration:"none"}}),buttonBg:{transition:"all 0.3s",borderRadius:"100%",position:"absolute",background:ar,right:"-200px",left:"-200px",top:"-200px",content:'""',bottom:"0",zIndex:"0"},buttonTxt:{zIndex:"1",position:"relative"}},or={button:Object(P.a)(rr.button,{fontSize:"0.85rem",fontWeight:600,letterSpacing:1,padding:"0.3rem 1.5rem 0.3rem 1.5rem","&:hover .buttonBg":{background:Object(nr.a)(.1,ar)}}),buttonBg:Object(P.a)(rr.buttonBg,{background:ar}),buttonTxt:rr.buttonTxt};var ir=["onClick","status","children","buttonStyle","overridingStyle","to"];function lr(e){var t=e.onClick,n=e.status,a=e.children,r=e.buttonStyle,o=e.overridingStyle,i=(e.to,Object(pn.a)(e,ir)),l="small"===r?or:rr,c=o||{};return Object(P.b)("a",Object.assign({css:[l.button,c.button],href:"/",onClick:t,type:"button",disabled:"pending"===n},i),Object(P.b)("span",{css:[l.buttonBg,c.buttonBg],className:"buttonBg"}),Object(P.b)("span",{css:[l.buttonTxt,c.buttonTxt]},"pending"===n&&Object(P.b)("span",{className:"spinner-grow spinner-grow-sm",role:"status","aria-hidden":"true"}),a))}function cr(){var e,t=ka({name:[(e={}).name||"",[Ha.Required()],{label:"Name",type:"text"}],email:[e.email||"",[Ha.Required(),Ha.Email()],{label:"Email",type:"email"}]}),n=Za(t,{usePlaceholder:!0}),a=y.a.useState(null),r=Object(C.a)(a,2),o=r[0],i=r[1],l=Rt();if(l.done()&&"pending"===o){var c=n.getValue();h.sendEvent("subscribeFormSubmitted",{contactEmail:c.email}),n.reset(t),i(null)}var s=function(e){return n.renderControl(e,null)},u={button:{"&:hover .buttonBg":{background:Object(nr.a)(.1,L.colorBlue)}},buttonBg:{background:L.colorBlue},buttonTxt:{fontWeight:900,color:"white"}};return y.a.createElement("form",{className:"contactForm"},y.a.createElement("div",{className:"form-row"},y.a.createElement("div",{className:"col-md-6 mb-2"},s("name")),y.a.createElement("div",{className:"col-md-6 mb-2"},s("email"))),y.a.createElement("div",{className:"form-row"},y.a.createElement("div",{className:"col-md-12 mb-2"},y.a.createElement("p",{style:{textAlign:"center"}},"By subscribing to Ecotourism Australia\u2019s monthly newsletter, you accept the terms of our ",y.a.createElement("a",{href:"/privacy",target:"_blank",rel:"noopener noreferrer"},"Privacy Policy")),y.a.createElement("div",{className:"actions"},y.a.createElement("h4",null,y.a.createElement(lr,{onClick:function(e){e.preventDefault(),e.stopPropagation(),n.validateForm(e,(function(){var e=Object(E.a)({},n.getValue());l.send(N.apiBase+"/api/contact/subscribe",e),i("pending")}))},status:l.status,overridingStyle:u},"SUBSCRIBE NOW")),y.a.createElement(A,{errors:n.errors,summaryMessage:"Please review the errors."}),y.a.createElement(A,{errors:l.errors}),l.done()&&y.a.createElement("span",{style:{marginLeft:"1.5rem",color:"red",fontWeight:"bold"}},"Successfully registered!")))))}var sr={match:function(e,t){return"subscribe"===(Sn.getCodeJson(e)||{}).control},itemElt:function(e,t){return y.a.createElement(cr,null)}};var ur={formStyle:{hr:{marginTop:"0px"},"input.form-check-input":{marginTop:"0.45rem"}},actions:{button:{backgroundColor:L.orangeColor,"&:hover":{backgroundColor:L.dkOrangeColor,borderColor:L.dkOrangeColor}}},titleStyle:{h4:{display:"inline-block"}},colStyle:{".ff--checkbox.form-group label.label":{display:"none"},".ff--checkbox.form-group .controlOptions":{display:"flex",flexWrap:"wrap",".form-check-inline":{flexBasis:"48%",maxWidth:"48%",alignItems:"baseline"}}}};function dr(e){var t,n=e.item,a=e.cmsOption||{},r=Pt.classNames("cms_item","consent-form",n.cssClass||n.anchorName||""),o=Sn.payload(n,"EmailReceiver"),i=Sn.payload(n,"MailchimpApiKey"),l=Sn.payload(n,"MailchimpAudienceKey"),c=ka({organisation:[(t={}).organisation||"",[Ha.Required()],{label:"Organisation/Business",type:"text"}],contactPerson:[t.contactPerson||"",[],{label:"Contact Person",type:"text"}],postalAddress:[t.postalAddress||"",[],{label:"Postal Address",type:"text"}],contactNumber:[t.contactNumber||"",[],{label:"Contact Number",type:"text"}],email:[t.email||"",[Ha.Required(),Ha.Email()],{label:"Email",type:"email"}],intendedUse:[t.intendedUse||[],[],{type:"checkboxList",options:[{name:"Signage",value:"Signage"},{name:"Packaging",value:"Packaging"},{name:"TV/Digital Media",value:"TV/Digital Media"},{name:"Promotional Material",value:"Promotional Material"},{name:"Other (please specify below)",value:"Other"},{name:"Web (please provide web address below)",value:"Web"}],style:{inline:!0}}],intendedUseEnquiry:[t.enquiry||"",[],{label:" ",type:"textarea"}],memberShipDetails:[t.memberShipDetails||[],[],{type:"checkboxList",options:[{name:"Riverland Industry Connector",value:"Riverland Industry Connector"},{name:"Riverland Wine",value:"Riverland Wine"},{name:"Renmark Paringa Council",value:"Renmark Paringa Council"},{name:"Loxton Waikerie Council",value:"Loxton Waikerie Council"},{name:"Berri Barmera Council",value:"Berri Barmera Council"},{name:"Mid Murray Council",value:"Mid Murray Council"},{name:"Loxton Chamber of Commerce",value:"Loxton Chamber of Commerce"},{name:"Renmark Paringa Network",value:"Renmark Paringa Network"},{name:"Riverland West Chamber of Commerce",value:"Riverland West Chamber of Commerce"},{name:"Regional Development Australia",value:"Regional Development Australia"},{name:"Other (please specify)",value:"Other"}],style:{inline:!0}}],memberShipDetailsEnquiry:[t.memberShipDetailsEnquiry||"",[],{label:" ",type:"textarea"}],accept:[!1,[Ha.Required("Please agree.")],{label:"I Accept",type:"checkbox",link:"/sites/dr5/media/pdf/riverland-brand---terms-and-conditions-of-use.pdf",linkText:"Terms & Conditions"}]}),s=Za(c,{usePlaceholder:!0}),u=y.a.useState(null),d=Object(C.a)(u,2),m=d[0],p=d[1],b=y.a.useState(),f=Object(C.a)(b,2),g=f[0],h=f[1],_=Rt(),O=y.a.useMemo((function(){return g}),[g]);_.done()&&"pending"===m&&(s.reset(c),p(null),_.response.results&&_.response.results.MailChimpError&&""!==_.response.results.MailChimpError&&h("Mail Chimp Error : "+_.response.results.MailChimpError));var w=function(e){return s.renderControl(e,null)};return Object(v.useLayoutEffect)((function(){document.querySelector("div.accept__checkbox label span.req").style.display="none"})),Object(P.b)("div",{className:r,"data-cms-item-id":a.isCmsEdit&&n.itemId,id:n.anchorName}
1,Object(P.b)("div",{className:"container contact-wrapper",id:"consentForm"},Object(P.b)("form",{css:ur.formStyle,className:"contactForm"},Object(P.b)("h4",null," CONTACT INFORMATION "),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-6 mb-2"},w("organisation")),Object(P.b)("div",{className:"col-md-6 mb-2"},w("postalAddress"))),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-4 mb-2"},w("contactPerson")),Object(P.b)("div",{className:"col-md-4 mb-2"},w("contactNumber")),Object(P.b)("div",{className:"col-md-4 mb-2"},w("email"))),Object(P.b)("hr",null),Object(P.b)("div",{css:ur.titleStyle},Object(P.b)("h4",null," INTENDED USE OF LOGO ")," ",Object(P.b)("span",null,"(please tick all applicable)")),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{css:ur.colStyle,className:"col-md-12 mb-2"},w("intendedUse"))),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-12 mb-2"},w("intendedUseEnquiry"))),Object(P.b)("hr",null),Object(P.b)("div",{css:ur.titleStyle},Object(P.b)("h4",null," MEMBERSHIP DETAILS ")," ",Object(P.b)("span",null,"(please tick all applicable)")),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{css:ur.colStyle,className:"col-md-12 mb-2"},w("memberShipDetails"))),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-12 mb-2"},w("memberShipDetailsEnquiry"))),Object(P.b)("hr",null),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-12 mb-2 accept__checkbox"},w("accept"))),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-12 mb-2"},Object(P.b)("div",{className:"actions",css:ur.actions},Object(P.b)(I,{onClick:function(e){h(null),s.validateForm(e,(function(){var e=Object(E.a)(Object(E.a)({},s.getValue()),{},{emailReceiver:o,mailchimpApiKey:i,mailchimpAudienceKey:l}),t=s.getFiles(),n=new FormData;n.append("jsonData",JSON.stringify(e)),t.forEach((function(e){(e.files||[]).forEach((function(t){n.append(e.name,t)}))})),_.sendFormData(N.apiBase+"/api/contact/consentform",n),p("pending")})),console.log("submitting")},status:_.status}," ","Submit"," "),Object(P.b)(A,{errors:s.errors,summaryMessage:"Please review the errors."}),Object(P.b)(A,{errors:_.errors}),Object(P.b)(A,{errors:O}),_.done()&&Object(P.b)("span",{style:{marginLeft:"1.5rem",color:"red",fontWeight:"bold"}},"Successfully sent!")))))))}var mr={match:function(e,t){return"ConsentForm"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(dr,{item:e,cmsOption:t})}},pr=n(92),br=n.n(pr),fr={replace:function(e){if(!N.isProd&&"tag"===e.type&&"img"===e.name)return function(e){if(e.attribs&&e.attribs.src){var t=Object(pr.attributesToProps)(e.attribs);return t.src=Pt.site.resourcePath(e.attribs.src),y.a.createElement("img",t)}return null}(e);if("tag"===e.type&&"button"===e.attribs.class)return function(e){if(e.children&&e.children.some((function(e){return"span"===e.name})))return null;var t=Object(pr.attributesToProps)(e.attribs);return y.a.createElement(e.name,t,y.a.createElement("span",null,Object(pr.domToReact)(e.children,fr)))}(e);if("tag"===e.type&&e.attribs["data-embed-jaba"])return function(e){var t=e.attribs["data-embed-jaba"],n=Pt.array.find(gr,(function(e){return e.id===t}));return n?y.a.createElement("div",{className:"codeType_".concat(n.codeType)},vr(n.code,hr)):null}(e)}},gr=[],hr={};function vr(e,t){return hr=t,t.isCmsEdit&&"viewonly"!==t.cmsViewMode?br()(e||"",{}):(gr=null===t||void 0===t||null===(n=t.pageData)||void 0===n?void 0:n.embedDataList,br()(e||"",fr));var n}function yr(e){var t=N.ver,n=e.item,a=e.cmsOption||{},r=rn().history,o=(new Date).getFullYear(),i=a.isCmsEdit?Sn.payload(n,"Content"):Sn.payload(n,"Content").replace(/__year__/g,o).replace("__version__","<a href = '/app' class = 'app_version'> PWA "+t+"</a>"),l=Pt.classNames("cms_item","htmlPanel",a.isCmsEdit&&"html",n.cssClass||n.anchorName||"");var c=Object(v.useRef)(null);return y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{ref:c,className:l,"data-cms-html":"true","data-cms-item-id":a.isCmsEdit&&n.itemId,id:n.anchorName,onClick:function(e){return function(e){var t="";e.target.closest("a")&&(t=e.target.closest("a").getAttribute("target"));var n="_blank"===t?mn(e.target,null):mn(e.target);if(n.handled)e.preventDefault(),e.stopPropagation();else if(n.linkInfo&&"internal"===n.linkInfo.type)e.preventDefault(),e.stopPropagation(),r.push(n.linkInfo.url);else if(e.target.closest("a")){var a=e.target.closest("a"),o=a.getAttribute("href")+"";if(-1!==o.indexOf("#")){var i=o.split("#");console.log("_href",i);var l=i[1],c=document.querySelector('section[data-cms-item-anchor="'+i[1]+'"]');if(c){var s=a.closest("p, div, h1, h2, h3, h4, h5"),u=s.nextElementSibling;u&&u.getAttribute("data-cms-item-anchor")===l||s.insertAdjacentElement("afterend",c),window.setTimeout((function(){"collapse"===c.getAttribute("data-anchor-status")?(c.setAttribute("data-anchor-status","expand"),c.classList.add("expand")):(c.setAttribute("data-anchor-status","collapse"),c.classList.remove("expand"))}),100),e.preventDefault(),e.stopPropagation()}}}}(e)}},vr(i,a)))}var _r={match:function(e,t){return"Html"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(yr,{item:e,cmsOption:t})}},Or=Object(vt.a)([576,768,992,1200,1600,1900,2200].map((function(e){return"@media (min-width: ".concat(e,"px)")}))),wr=[180,190,200,220,250,270,290,300],jr=[270,350,400,450,500,550,600,700];function Tr(e){var t,n="standard"===(t=e)?jr:"thin"===t?wr:jr;return{bannerHeight:Or({height:n,backgroundPositionX:"center"}),photoCredit:Or({color:"white",fontSize:"0.8rem",transform:"rotate(-90deg) translate(-50%, 10px)",position:"absolute",top:"50%",left:"0",textAlign:"center",transformOrigin:"left top",maxWidth:n.map((function(e){return.9*e})),"&:hover, &:active":{color:"white"}})}}function Cr(e,t){var n=y.a.useState(function(e){return Object.assign({},{cutoffPadding:10,paddingHeightRatio:1,stretchToFit:!0,actionRange:[.1,.9],imageRatio:.5625,panelHeight:"auto",cutTop:0,cutBottom:0},e)}(t)),a=Object(C.a)(n,1)[0],r=function(){!function(e,t){var n=g.getScrollProgress(t).progress,a=parseFloat(t.getAttribute("data-fromTop")),r=parseFloat(t.getAttribute("data-toTop")),o=g.prVal(a,r,n,e.actionRange);t.style.backgroundPositionY=o+"px"}(a,e.current)},o=function(){setTimeout((function(){!function(e,t){var n=g.getScreenSize(),a=!e.panelHeight||"auto"===e.panelHeight,r=a?t.offsetHeight:parseFloat(e.panelHeight),o=0,i=0;o=r*(1+e.paddingHeightRatio)+2*e.cutoffPadding,i=o*(1+e.cutTop+e.cutBottom)/e.imageRatio,e.stretchToFit&&i<n.width&&(o=n.width*e.imageRatio,i=o*(1+e.cutTop+e.cutBottom)/e.imageRatio);var l=o*(1+e.cutTop+e.cutBottom)*e.cutTop,c=o*(1+e.cutTop+e.cutBottom)*e.cutBottom,s=-e.cutoffPadding,u=-(o-r-e.cutoffPadding);u+=(s+=s-u>l?l:0)-u>c?c:0,t.setAttribute("data-fromTop",s),t.setAttribute("data-toTop",u),a||(t.style.height=e.panelHeight+"px");t.style.backgroundSize=i+"px "+o+"px"}(a,e.current),r()}),300)};return y.a.useEffect((function(){return o(),"undefined"!==typeof window&&(window.addEventListener("scroll",r),window.addEventListener("resize",o)),function(){"undefined"!==typeof window&&(window.removeEventListener("scroll",r),window.removeEventListener("resize",o))}}),[]),{reset:o}}function Er(e){var t=e.item,n=e.cmsOption||{},a=Sn.payload(t,"HeightSet")||"standard",r=Sn.payload(t,"PhotoCredit"),o=Sn.payload(t,"PhotoCreditUrl"),i=Sn.payload(t,"HideTop")||"0",l=Sn.payload(t,"HideBottom")||"0",c=Pt.classNames("cms_item","imagePanel","parallax_notused","bannerSize_notused--".concat(a),t.cssClass||t.anchorName||""),s=n.pageOptions&&n.pageOptions.imagePath?Pt.site.resourcePath(n.pageOptions.imagePath):Pt.site.resourcePath(Sn.payload(t,"ImageUrl")),u=y.a.useRef(null),d=Pt.classNames("cms_item","htmlPanel",n.isCmsEdit&&"html",t.cssClass||t.anchorName||""),m=Sn.payload(t,"Content"),p={cutoffPadding:10,paddingHeightRatio:1,stretchToFit:!0,actionRange:[.1,.9],imageRatio:.5625,panelHeight:"auto",cutTop:i?parseFloat(i):0,cutBottom:l?parseFloat(l):0},b=y.a.useRef(null);Cr(b,p);var f=Tr(a);return Object(P.b)("div",{className:c,css:f.bannerHeight,ref:b,style:{backgroundImage:Pt.css.bgUrlStyle(s)}},Object(P.b)("div",{ref:u,className:d,"data-cms-html":"true","data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName,dangerouslySetInnerHTML:{__html:m}}),r&&!o&&Object(P.b)("div",{css:f.photoCredit},r),r&&o&&Object(P.b)(fn,{to:o,css:f.photoCredit},r))}var xr={match:function(e,t){return"ImagePanel"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Er,{item:e,cmsOption:t})}},Nr=n(69),kr=["tiles","style","overridingStyle","cssClass","useSlider","settings"];function Sr(e){var t=e.tiles,n=e.style,a=e.overridingStyle,r=e.cssClass,o=e.useSlider,i=void 0!==o&&o,l=e.settings,c=void 0===l?Nr.settings:l,s=Object(pn.a)(e,kr),u=n||{},d=a||{},m=c.slickSettings;return i=i&&t.length>1,m.infinite=t.length>2,i?Object(P.b)("div",Object.assign({className:r,css:[u.holder,d.holder]},s),Object(P.b)("div",{css:[u.tiles,d.tiles,i&&u.tilesSlider,i&&d.tilesSlider]},Object(P.b)(Un.a,m,t))):Object(P.b)("div",Object.assign({className:r,css:[u.holder,d.holder]},s),Object(P.b)("div",{css:[u.tiles,d.tiles]},t))}function Ir(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nr.settings,t=e.marginLR,n=e.marginTB;return{holder:wt({margin:"auto",marginTop:[30,null,40],marginBottom:[30,null,40],".slick-prev, .slick-next":{top:[100],transform:"translate(0, 0)"},".slick-prev":{left:[10,null,-20]},".slick-next":{right:[10,null,-20]},".slick-prev:before, .slick-next:before":{color:L.fontColor}}),tiles:wt({display:"flex",justifyContent:"flex-start",alignItems:"stretch",flexWrap:"wrap",marginLeft:t.map((function(e){return null===e?null:-e/2})),marginRight:t.map((function(e){return null===e?null:-e/2})),marginTop:n.map((function(e){return null===e?null:e/2})),marginBottom:n.map((function(e){return null===e?null:e/2}))}),tilesSlider:wt({display:"block",marginLeft:[15,null,15],marginRight:[15,null,15]})}}function Ar(e){var t=e.page,n=e.useSlider,a=(e.disableLink,t.pageUrl),r=Pt.site.resourcePath(t.imageUrl),o=t.pageTitle,i=t.tileDesc||t.description,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nr.settings,t=e.numOfTilesPerBreakpoints,n=e.marginLR,a=e.marginTB;return{tile:wt({paddingLeft:n.map((function(e){return null===e?null:e/2})),paddingRight:n.map((function(e){return null===e?null:e/2})),paddingTop:a.map((function(e){return null===e?null:e/2})),paddingBottom:a.map((function(e){return null===e?null:e/2})),maxWidth:t.map((function(e){return null===e?null:100/e+"%"})),flexBasis:t.map((function(e){return null===e?null:100/e+"%"})),flexGrow:0,flexShrink:0,textAlign:"left",display:"flex",flexDirection:"column",color:"inherit",":hover":{textDecoration:"none",color:"inherit",".tileBg":{transform:"scale(1.02)",transition:"all .2s ease-in-out"},".tileContent":{backgroundColor:Object(nr.b)(L.primaryColor,.3)}}}),tileSlider:wt({maxWidth:"100% !important"}),tileBg:wt({backgroundColor:"white",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:0,paddingBottom:"56.25%"}),tileContent:wt({display:"flex",flexDirection:"column",flexGrow:1,lineHeight:1.3,backgroundColor:"#fff",marginTop:[10],padding:[20],transition:"all .2s ease-in-out"}),title:wt({fontSize:"1.3rem",textTransform:"uppercase",lineHeight:1.3,fontWeight:900,textAlign:"center"}),desc:wt({marginTop:5,fontSize:"0.9rem",display:"-webkit-box",WebkitLineClamp:"9",WebkitBoxOrient:"vertical",overflow:"hidden"})}}();return Object(P.b)(fn,{to:a,css:[l.tile,n&&l.tileSlider]},Object(P.b)("div",{className:"tileBg",css:l.tileBg,style:{backgroundImage:Pt.css.bgUrlStyle(r)}}),Object(P.b)("div",{className:"tileContent",css:l.tileContent},Object(P.b)("div",{css:l.title},o),Object(P.b)("div",{css:l.desc}
1,i)))}function Pr(e){var t=e.item,n=e.cmsOption||{},a="slider"===Sn.payload(t,"UseSlider"),r=function(e){if(e)return JSON.parse(e);return[]}(Sn.payload(t,"PageObjects")).map((function(e,t){return Object(P.b)(Ar,{key:t,page:e,useSlider:a,disableLink:n.isCmsEdit})}));return Object(P.b)(Sr,{tiles:r,style:Ir(),useSlider:a})}var Dr={match:function(e,t){return"PageTiles__"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Pr,{item:e,cmsOption:t})}};function Rr(e){var t=e.item,n=t.items||[],a=e.cmsOption||{},r=Sn.payload(t,"BgColor"),o=Sn.payload(t,"BgColor")||"#fdf8e6",i=Sn.payload(t,"Wave")||"none",l=Sn.payload(t,"ImageUrl"),c=Sn.payload(t,"BackgroundTile"),s=Sn.payload(t,"TextColorTheme")||"white",u=Sn.payload(t,"SpecialStyle")||"none",d=Sn.payload(t,"SpecialStyleColorTop")||"#fdf8e6",m=Sn.payload(t,"SpecialStyleColorCenter")||"#fdf8e6",p=Sn.payload(t,"SpecialStyleColorBottom")||"#fdf8e6",b={hoverPanel:wt({position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}),hoverPanelTop3:wt({height:"30%",position:"relative","&.sandStone":{backgroundColor:L.sandCtoneColor},"&.blie":{backgroundColor:L.blieColor},"&.green":{backgroundColor:L.greenColor},"&.orange":{backgroundColor:L.orangeColor},"&.yellow":{backgroundColor:L.yellowColor}}),hoverPanelCenter3:wt({height:"40%",position:"relative","&.sandStone":{backgroundColor:L.sandCtoneColor},"&.blie":{backgroundColor:L.blieColor},"&.green":{backgroundColor:L.greenColor},"&.orange":{backgroundColor:L.orangeColor},"&.yellow":{backgroundColor:L.yellowColor}}),hoverPanelBottom3:wt({height:"30%",position:"relative","&.sandStone":{backgroundColor:L.sandCtoneColor},"&.blie":{backgroundColor:L.blieColor},"&.green":{backgroundColor:L.greenColor},"&.orange":{backgroundColor:L.orangeColor},"&.yellow":{backgroundColor:L.yellowColor}}),hoverPanelTop2:wt({height:"70%",position:"relative"}),hoverPanelBottom2:wt({height:"30%",position:"relative"}),waveColor:{}},f="transparent"===o?"#fdf8e6":o,g="transparent"===o?"#fdf8e6":o;("threeColorStyle"===u||"twoColorStyle"===u)&&(f=d,g=p);var h=null;l?h=Pt.site.resourcePath(l):c&&(h=Pt.site.resourcePath("/dist/transparent-textures/textures/".concat(c)));var v=Pt.classNames("cms_item","contentPanel","contentPanel--"+s,t.cssClass||t.anchorName||""),y=n.map((function(e,t){return Object(P.b)(Zo,{item:e,key:e.itemId,cmsOption:a})}));return Object(P.b)("section",{className:v,style:{backgroundColor:"".concat(r),backgroundImage:h&&Pt.css.bgUrlStyle(h)},"data-cms-item-id":a.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)("div",{className:"contentPanel__bg"}),"threeColorStyle"===u&&Object(P.b)("div",{css:b.hoverPanel},Object(P.b)("div",{className:"top",css:b.hoverPanelTop3,style:{backgroundColor:d}}),Object(P.b)("div",{className:"center",css:b.hoverPanelCenter3,style:{backgroundColor:m}},Object(P.b)("div",{className:"wave-animation-top",css:b.waveColor,style:{color:m}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 25 H 0 V 0"})))),Object(P.b)("div",{className:"wave-animation-bottom",css:b.waveColor,style:{color:m}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 0 H 0 V 12.5"}))))),Object(P.b)("div",{className:"bottom",css:b.hoverPanelBottom3,style:{backgroundColor:p}})),"twoColorStyle"===u&&Object(P.b)("div",{css:b.hoverPanel},Object(P.b)("div",{className:"top",css:b.hoverPanelTop2,style:{backgroundColor:d}},Object(P.b)("div",{className:"wave-animation-top",css:b.waveColor,style:{color:d}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 25 H 0 V 0"})))),Object(P.b)("div",{className:"wave-animation-bottom",css:b.waveColor,style:{color:d}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 0 H 0 V 12.5"}))))),Object(P.b)("div",{className:"bottom",css:b.hoverPanelBottom2,style:{backgroundColor:p}})),("top"===i||"both"===i)&&Object(P.b)("div",{className:"wave-animation-top",style:{color:f}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 25 H 0 V 0"})))),Object(P.b)("div",{className:"container"},y),("bottom"===i||"both"===i)&&Object(P.b)("div",{className:"wave-animation-bottom",style:{color:g}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 0 H 0 V 12.5"})))))}var Lr={match:function(e,t){return"Panel"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Rr,{item:e,cmsOption:t})}},Mr=n(172);function Br(e){var t=e.images,n=e.openPopupImage,a=e.useSlider,r=void 0!==a&&a;if(0===t.length)return null;var o=t.map((function(e,t){return Object(P.b)(Hr,{key:t,image:e,useSlider:r,openPopupImage:n})}
1));return Object(P.b)(Sr,{tiles:o,style:Ir(Mr.settings),useSlider:r})}function Hr(e){var t=e.image,n=e.useSlider,a=e.disableLink,r=e.openPopupImage,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nr.settings,t=e.numOfTilesPerBreakpoints,n=e.marginLR,a=e.marginTB;return{tile:wt({paddingLeft:n.map((function(e){return null===e?null:e/2})),paddingRight:n.map((function(e){return null===e?null:e/2})),paddingTop:a.map((function(e){return null===e?null:e/2})),paddingBottom:a.map((function(e){return null===e?null:e/2})),maxWidth:t.map((function(e){return null===e?null:100/e+"%"})),flexBasis:t.map((function(e){return null===e?null:100/e+"%"})),flexGrow:0,flexShrink:0,textAlign:"left",display:"flex",flexDirection:"column",color:"inherit",":hover":{textDecoration:"none",color:"inherit",".tileBg":{transform:"scale(1.02)",transition:"all .2s ease-in-out"}}}),tileSlider:wt({maxWidth:"100% !important"}),tileBg:wt({backgroundColor:"white",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:0,paddingBottom:"100%"})}}(Mr.settings),i=t.thumbnailUrl||t.imageUrl,l=t.imageUrl;return Object(P.b)(fn,{css:[o.tile,n&&o.tileSlider],to:a?"":l,onClick:function(e){return r(e,t)}},Object(P.b)("div",{css:o.tileBg,className:"tileBg",style:{backgroundImage:Pt.css.bgUrlStyle(i)}}))}var Ur=Pt.site.resourcePath;function Fr(e){var t=e.images,n=e.useSlider,a=void 0!==n&&n,r=y.a.useState(!1),o=Object(C.a)(r,2),i=o[0],l=o[1],c=y.a.useState(0),s=Object(C.a)(c,2),u=s[0],d=s[1],m=Pt.array.distinct(t,(function(e,t){return e.imageUrl===t.imageUrl}));if(0===m.length)return null;var p=m.map((function(e){return Ur(e.imageUrl)})),b=m.map((function(e){return{imageUrl:Ur(e.imageUrl),thumbnailUrl:Ur(e.imageUrl),caption:e.caption}}));return Object(P.b)(y.a.Fragment,null,Object(P.b)($n,null,Object(P.b)(ta.a,{toggler:i,sources:p,sourceIndex:u})),Object(P.b)(Br,{images:b,openPopupImage:function(e,t){e.stopPropagation(),e.preventDefault();var n=Ur(t.imageUrl),a=Pt.array.findIndex(p,(function(e){return e===n}));d(a>=0?a:0),l(!i)},useSlider:a}))}function Wr(e){var t=e.item,n=Pt.classNames("cms_item","photoGallery",t.cssClass||t.anchorName||""),a=(Sn.payload(t,"ImageUrl")?Sn.payload(t,"ImageUrl").split("|"):[]).map((function(e){return{imageUrl:e,thumbnailUrl:e,caption:null}}));return Object(P.b)(Fr,{cssClass:n,images:a,useSlider:!1})}var zr={match:function(e,t){return"PhotoGallery"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Wr,{item:e,cmsOption:t})}},Vr=n(527),qr=n(528),Yr=n(529),Gr=n(530),Kr=n(531),Jr=n(532);function Qr(e){var t=e.shareUrl,n=e.pageTitle,a=void 0===n?null:n,r=e.topLabel,o=void 0===r?"SHARE THIS PAGE:":r,i={shareButtons:{marginTop:"1.5rem"},shareButtonTitle:{fontSize:"0.8rem",marginLeft:"0.5rem",marginBottom:"0.3rem"},shareButton:{margin:5}},l=a||window.document.title;return console.log(l),Object(P.b)("div",{css:i.shareButtons},o&&Object(P.b)("div",{css:i.shareButtonTitle},o),Object(P.b)("span",{title:"Sharing with Facebook"},Object(P.b)(Vr.a,{css:i.shareButton,url:t},Object(P.b)(qr.a,{size:50,round:!0}))),Object(P.b)("span",{title:"Sharing with Whatsapp"},Object(P.b)(Yr.a,{css:i.shareButton,url:t,title:l},Object(P.b)(Gr.a,{size:50,round:!0}))),Object(P.b)("span",{title:"Sharing with Email"},Object(P.b)(Kr.a,{css:i.shareButton,url:t,subject:l},Object(P.b)(Jr.a,{size:50,round:!0}))))}function Zr(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item",t.cssClass||t.anchorName||""),r=Pt.site.fullUrl(window.location.pathname+window.location.search);return Object(P.b)("div",{className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)(Qr,{shareUrl:r}))}var Xr={match:function(e,t){return"SharingIcons"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(Zr,{item:e,cmsOption:t})}};var $r={actions:{button:{backgroundColor:L.orangeColor,"&:hover":{backgroundColor:L.dkOrangeColor,borderColor:L.dkOrangeColor}}}};function eo(e){var t,n=e.item,a=e.cmsOption||{},r=Sn.payload(n,"EmailReceiver"),o=Sn.payload(n,"FileAttachment")||"false",i=Sn.payload(n,"MailchimpApiKey"),l=Sn.payload(n,"MailchimpAudienceKey"),c=Pt.classNames("cms_item","htmlPanel",a.isCmsEdit&&"html",n.cssClass||n.anchorName||""),s=ka({name:[(t={}).name||"",[Ha.Required()],{label:"Name",type:"text"}],phone:[t.phone||"",[],{label:"Phone",type:"text"}],email:[t.email||"",[Ha.Required(),Ha.Email()],{label:"Email",type:"email"}],attachments:[t.attachments||"",[],{label:"Attachments",type:"file"}]}),u=Za(s,{usePlaceholder:!0}),d=y.a.useState(null),m=Object(C.a)(d,2),p=m[0],b=m[1],f=y.a.useState(),g=Object(C.a)(f,2),h=g[0],v=g[1],_=Rt(),O=y.a.useMemo((function(){return h}),[h]);_.done()&&"pending"===p&&(u.reset(s),b(null),_.response.results&&_.response.results.MailChimpError&&""!==_.response.results.MailChimpError&&v("Mail Chimp Error : "+_.response.results.MailChimpError));var w=function(e){return u.renderControl(e,null)};return Object(P.b)("div",{className:c,"data-cms-html":"true","data-cms-item-id":a.isCmsEdit&&n.itemId,id:n.anchorName},Object(P.b)("div",{className:"container contact-wrapper",id:"signupForm"},Object(P.b)("form",{className:"contactForm"},Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-4 mb-2"},w("name")),Object(P.b)("div",{className:"col-md-4 mb-2"},w("phone")),Object(P.b)("div",{className:"col-md-4 mb-2"},w("email"))),"true"===o&&Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-12 mb-2"}," ",w("attachments")," ")),Object(P.b)("div",{className:"form-row"},Object(P.b)("div",{className:"col-md-12 mb-2"},Object(P.b)("div",{className:"actions",css:$r.actions},Object(P.b)(I,{onClick:function(e){v(null),u.validateForm(e,(function(){var e=Object(E.a)(Object(E.a)({},u.getValue()),{},{emailReceiver:r,mailchimpApiKey:i,mailchimpAudienceKey:l}),t=u.getFiles(),n=new FormData;n.append("jsonData",JSON.stringify(e)),t.forEach((function(e){(e.files||[]).forEac
1h((function(t){n.append(e.name,t)}))})),_.sendFormData(N.apiBase+"/api/contact/signupform",n),b("pending")})),console.log("submitting")},status:_.status}," SIGN UP "),Object(P.b)(A,{errors:u.errors,summaryMessage:"Please review the errors."}),Object(P.b)(A,{errors:_.errors}),Object(P.b)(A,{errors:O}),_.done()&&Object(P.b)("span",{style:{marginLeft:"1.5rem",color:"red",fontWeight:"bold"}},"Successfully sent!")))))))}var to={match:function(e,t){return"SignupForm"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(eo,{item:e,cmsOption:t})}};function no(e){var t=e.item.items||[],n=e.cmsOption||{},a=t.map((function(e,t){return Object(P.b)(Zo,{item:e,key:e.itemId,cmsOption:n})}));return Object(P.b)(y.a.Fragment,null,a)}var ao={match:function(e,t){return"SubscribePanel"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(no,{item:e,cmsOption:t})}},ro=n(253),oo=n.n(ro);function io(e){var t=y.a.useRef(null),n=Object(v.useState)("loading"),a=Object(C.a)(n,2),r=a[0],o=a[1],i=Object(v.useState)(null),l=Object(C.a)(i,2),c=l[0],s=l[1],u=Object(v.useState)(null),d=Object(C.a)(u,2),m=d[0],p=d[1],b=Object(v.useState)(!0),f=Object(C.a)(b,2),g=f[0],h=f[1],_=Object(v.useRef)(0),O=Object(v.useState)(!1),w=Object(C.a)(O,2),j=w[0],T=w[1],E=e.video,x=E.heightSet,N=E.videoLinkOrId,k=E.playerId,S=Tn(N),I=e.posterImageUrl&&""!==e.posterImageUrl?e.posterImageUrl:jn(S),A=e.mobileImageUrl,P=function(){return"undefined"!==typeof window&&"undefined"===typeof e.canPlayVideo?window.innerWidth>=1200:!!("function"===typeof e.canPlayVideo?e.canPlayVideo():e.canPlayVideo)};function D(){t.current&&s(function(e){var t=e?{w:e.offsetWidth,h:e.offsetHeight}:{w:window.innerWidth,h:window.innerHeight},n=1*t.w,a=1*t.h,r={width:n,height:n*(9/16),left:0,top:0};r.height<a&&(r.height=a,r.width=a/(9/16));return r.left=-(r.width-t.w)/2,r.top=-(r.height-t.h)/2,r}(t.current)),P()&&wn((function(e){e?R():setTimeout(R,100)}))}function R(){var e=null;"undefined"!==typeof window&&(e=new window.YT.Player(k,{events:{onStateChange:function(t){switch(t.data){case window.YT.PlayerState.ENDED:var n=_.current;n<2?(_.current=n+1,e&&e.playVideo&&e.playVideo()):o("finished")}},onReady:function(t){e&&e.mute&&e.playVideo&&(e.mute(),e.playVideo()),setTimeout((function(){return o("loaded")}),1e3)},onError:function(e){console.log(e)}}}),p(e))}y.a.useEffect((function(){var e=On((function(){D()}));return D(),"undefined"!==typeof window&&window.addEventListener("resize",e),function(){"undefined"!==typeof window&&window.removeEventListener("resize",e)}}),[]);var L=P(),M=!L&&A?A:I;return y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{className:Pt.classNames("youtubePlayer","youtubePlayer--".concat(L?"canPlay":"cannotPlay"),"youtubePlayer--".concat(r),"youtubePlayer--".concat(x)),ref:t},y.a.createElement("div",{className:"youtubePlayer__mask"}),y.a.createElement("div",{className:"youtubePlayer__poster",style:{backgroundImage:Pt.css.bgUrlStyle(M)}}),L&&c&&y.a.createElement("iframe",{className:"youtubePlayer__iframe",id:k,width:"640",height:"390",title:"Youtube video",style:{width:"".concat(c.width,"px"),height:"".concat(c.height,"px"),top:"".concat(c.top,"px"),left:"".concat(c.left,"px")},src:"https://www.youtube.com/embed/".concat(S,"?").concat(Pt.url.toQueryString({enablejsapi:1,controls:0,loop:1,showinfo:0,rel:0,modestbranding:1,allowfullscreen:!0,wmode:"transparent"})),allow:"autoplay; fullscreen",frameBorder:"0"}),L&&"loaded"===r&&y.a.createElement("div",{className:"youtubePlayer__soundIcon",title:g?"Sound On":"Sound Off",onClick:function(e){e.preventDefault(),e.stopPropagation(),m&&(g?(h(!1),setTimeout((function(){m&&m.pauseVideo&&m.unMute&&m.playVideo&&(m.pauseVideo(),m.unMute(),m.playVideo())}),100)):(h(!0),setTimeout((function(){m&&m.pauseVideo&&m.unMute&&m.playVideo&&(m.pauseVideo(),m.mute(),m.playVideo())}),100)))}},g?y.a.createElement(Cn.a,null):y.a.createElement(Cn.b,null)),!L&&!A&&y.a.createElement("div",{className:"youtubePlayer__playIcon",title:"Play",onClick:function(){T(!0)}},y.a.createElement(hn.g,null))),y.a.createElement(oo.a,{channel:"youtube",isOpen:j,videoId:S,onClose:function(){return T(!1)}}))}function lo(e){var t=e.item,n=e.cmsOption||{},a=Sn.payload(t,"HeightSet")||"standard",r=Sn.payload(t,"YoutubeCode"),o=Sn.payload(t,"PosterFrameUrl",null),i={heightSet:a,videoLinkOrId:r,playerId:"ytBanner
1-"+t.itemId.substr(0,8)},l=Pt.classNames("cms_item","youtubePanel",t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:l,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName,style:{position:"relative",overflow:"hidden"}},y.a.createElement(io,{video:i,canPlayVideo:function(){return Pt.css.screenWidth()>=1200},posterImageUrl:Pt.site.resourcePath(o)}))}var co=[qn,Jn,{match:function(e,t){return"AtdwMap"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(pa,{item:e,cmsOption:t})}},ua,ba,ga,ya,_a,sr,mr,_r,xr,Dr,Lr,zr,Xr,to,ao,{match:function(e,t){return"VideoPanel"===e.itemTypeCode},itemElt:function(e,t){return y.a.createElement(lo,{item:e,cmsOption:t})}}];var so={payload:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=e.payloads.find((function(e){return e.key===t}));return a?a.value:n}};n(518);function uo(){var e=Object(v.useState)(""),t=Object(C.a)(e,2),n=t[0],a=t[1],r=rn().navigate;return Object(P.b)("form",{className:"bannerSearchBar",onSubmit:function(e){return function(e){e.preventDefault(),r("/search-results?q="+encodeURIComponent(n))}(e)}},Object(P.b)("div",{className:"bannerSearchBar__container"},Object(P.b)("img",{src:"/assets/icons/glass.png",className:"bannerSearchBar__icon",alt:"Search"}),Object(P.b)("input",{type:"text",className:"bannerSearchBar__input",placeholder:"Find your holiday here...",value:n,onChange:function(e){a(e.target.value)}})))}function mo(e){var t=e.item,n=t.items||[],a=e.cmsOption||{},r=so.payload(t,"HeightSet")||"standard",o=so.payload(t,"UseSearch")||"false",i=n.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:a})})),l={dots:!1,infinite:!0,speed:1500,autoplaySpeed:3e3,fade:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1},c=Pt.classNames("cms_item","bannerPanel","bannerWrapperSize--".concat(r),t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:c,"data-cms-item-id":a.isCmsEdit&&t.itemId,id:t.anchorName,style:{position:"relative"}},y.a.createElement(Un.a,l,i),"true"===o&&y.a.createElement("div",{className:"bottom-search-container James3"},y.a.createElement(uo,null)))}function po(e){var t=e.item,n=e.cmsOption||{},a=Pt.site.resourcePath(so.payload(t,"ImageUrl")),r=so.payload(t,"CaptionTitle2")||so.payload(t,"CaptionTitle"),o=so.payload(t,"CaptionButton")&&""!==so.payload(t,"CaptionButton")?so.payload(t,"CaptionButton"):"READ MORE",i=so.payload(t,"LinkUrl2")||so.payload(t,"LinkUrl"),l=r?i?y.a.createElement("div",null,y.a.createElement("div",{className:"banner-item__title",dangerouslySetInnerHTML:{__html:r}}),y.a.createElement(fn,{to:i,className:"banner-item__link"}," ",o," ")):y.a.createElement("div",{className:"banner-item__title",dangerouslySetInnerHTML:{__html:r}}):null,c=i&&!r?y.a.createElement(fn,{className:"bannerItem__overlay",to:i}):null,s=Pt.classNames("cms_item","banner-item","bannerSize",t.cssClass||t.anchorName||"",l&&"bannerHasTitlePanel");return y.a.createElement("div",{className:s,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName,style:{backgroundImage:Pt.css.bgUrlStyle(a)}},l&&y.a.createElement("div",{className:"banner_item__text"},l),c&&c)}function bo(e){var t=e.item,n=t.items||[],a=e.cmsOption||{};console.log("item ------ ",t,n);var r=so.payload(t,"BgColor"),o=so.payload(t,"BgColor"),i=so.payload(t,"Wave")||"none",l=so.payload(t,"ImageUrl"),c=so.payload(t,"BackgroundTile"),s=so.payload(t,"TextColorTheme")||"white",u=null;l?u=Pt.site.resourcePath(l):c&&(u=Pt.site.resourcePath("/dist/transparent-textures/textures/".concat(c)));var d=Pt.classNames("cms_item","contentPanel","contentPanel--"+s,t.cssClass||t.anchorName||""),m=n.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:a})}));return y.a.createElement("section",{className:d,style:{backgroundColor:"".concat(r),backgroundImage:u&&Pt.css.bgUrlStyle(u)},"data-cms-item-id":a.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement("div",{className:"contentPanel__bg"}),("top"===i||"both"===i)&&y.a.createElement("div",{className:"wave-animation-top",style:{color:o}},y.a.createElement("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},y.a.createElement("g",{"data-svg-origin":"0 0"},y.a.createElement("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 25 H 0 V 0"})))),y.a.createElement("div",{className:"container"},m),("bottom"===i||"both"===i)&&y.a.createElement("div",{className:"wave-animation-bottom",style:{color:o}},y.a.createElement("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},y.a.createElement("g",{"data-svg-origin":"0 0"},y.a.createElement("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 0 H 0 V 12.5"})))))}function fo(e){var t=N.ver,n=e.item,a=e.cmsOption||{},r=rn().history,o=(new Date).getFullYear(),i=a.isCmsEdit?so.payload(n,"Content"):so.payload(n,"Content").replace(/__year__/g,o).replace("__version__","<a href = '/app' class = 'app_version'> PWA "+t+"</a>"),l=Pt.classNames("cms_item","htmlPanel",a.isCmsEdit&&"html",n.cssClass||n.anchorName||"");var c=Object(v.useRef)(null);return Object(v.useLayoutEffect)((function(){a.isCmsEdit&&"viewonly"!==a.cmsViewMode||function(e,t){var n,a=null===t||void 0===t||null===(n=t.pageData)||void 0===n?void 0:n.embedDataList;e.querySelectorAll("[data-embed-jaba]").forEach((function(e){var t=e.getAttribute("data-embed-jaba"),n=Pt.array.find(a,(function(e){return e.id===t}));n&&O.a.render(y.a.createElement("div",{className:"codeType_".concat(n.codeType),dangerouslySetInnerHTML:{__html:n.code}}),e)}))}(c.current,a);for(var e=c.current.querySelectorAll(".button"),t=0;e&&t<e.length;t++)go(e[t])}),[a]),y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{ref:c,className:l,"data-cms-html":"true","data-cms-item-id":a.isCmsEdit&&n.itemId,id:n.anchorName,dangerouslySetInnerHTML:{__html:i},onClick:function(e){return function(e){var t="";e.target.closest("a")&&(t=e.target.closest("a").getAttribute("target"));var n="_blank"===t?mn(e.target,null):mn(e.target);if(n.handled)e.preventDefault(),e.stopPropagation();else if(n.linkInfo&&"internal"===n.linkInfo.type)e.preventDefault(),e.stopPropagation(),r.push(n.linkInfo.url);else if(e.target.closest("a")){var a=e.target.closest("a").getAttribute("href")+"";if(-1!==a.indexOf("#")){var o=a.split("#");console.log("_href",o);var i=document.querySelector('section[data-cms-item-anchor="'+o[1]+'"]');"collapse"===i.getAttribute("data-anchor-status")?(i.setAttribute("data-anchor-status","expand"),i.classList.add("expand")):(i.setAttribute("data-anchor-status","collapse"),i.classList.remove("expand")),e.preventDefault(),e.stopPropagation()}}}(e)}}),null)}function go(e){if(!e.querySelector("span")){var t=document.createElement("span");t.innerHTML=e.innerHTML,e.innerHTML="",e.appendChild(t)}}function ho(e){var t=e.item,n=e.cmsOption||{},a=so.payload(t,"HeightSet")||"standard",r=Pt.classNames("cms_item","imagePanel","parallax","bannerSize--".concat(a),t.cssClass||t.anchorName||""),o=n.pageOptions&&n.pageOptions.imagePath?Pt.site.resourcePath(n.pageOptions.imagePath):Pt.site.resourcePath(so.payload(t,"ImageUrl")),i=y.a.useRef(null),l=Pt.classNames("cms_item","htmlPanel",n.isCmsEdit&&"html",t.cssClass||t.anchorName||""),c=so.payload(t,"Content");
1return y.a.createElement("div",{className:r,"data-pxh":a,style:{backgroundImage:Pt.css.bgUrlStyle(o)}},y.a.createElement("div",{ref:i,className:l,"data-cms-html":"true","data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName,dangerouslySetInnerHTML:{__html:c}}))}function vo(e){var t=e.item,n=e.cmsOption||{},a="slider"===so.payload(t,"UseSlider"),r=function(e){if(e)return JSON.parse(e);return[]}(so.payload(t,"PageObjects")).map((function(e,t){return y.a.createElement(yo,{page:e,key:t,disableLink:n.isCmsEdit})})),o={dots:!1,infinite:!0,speed:500,autoplaySpeed:3e3,fade:!1,autoplay:!0,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1}}]},i=Pt.classNames("cms_item","pageTiles tiles",a&&"useSlider",t.cssClass||t.anchorName||"");return a?y.a.createElement("div",{className:i,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement(Un.a,o,r)):y.a.createElement("div",{className:i,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},r)}function yo(e){var t=e.page,n=Pt.site.resourcePath(t.imageUrl),a=e.disableLink,r=t.colorTheme&&"default"!==t.colorTheme?t.colorTheme:"orange";return y.a.createElement("div",{className:"pageTile tile"},y.a.createElement(fn,{className:"pageTile__content tile__content",to:a?"":t.pageUrl},y.a.createElement("div",{className:"tile__bg",style:{backgroundImage:Pt.css.bgUrlStyle(n)}}),y.a.createElement("div",{className:"pageTile_details_container ".concat(r)},y.a.createElement("div",{className:"pageTile_details tile__details"},y.a.createElement("div",{className:"pageTile__title new-style"},t.pageTitle),y.a.createElement("hr",{className:"pageTile__dot__style"}),y.a.createElement("div",{className:"pageTile_desc"},t.tileDesc||t.description)),y.a.createElement("div",{className:"pageTile__bottom__img"},y.a.createElement("img",{src:"/assets/flow-device-transparent.png",style:{width:"100%"},alt:"wave"})))))}var _o={pageTiles:Object(P.a)(wt({display:"flex",justifyContent:"flex-start",flexWrap:"wrap",margin:"2rem -10px",overflow:"hidden",marginLeft:["-10px",null,null,null,"-2rem","-5.5rem"],marginRight:["-10px",null,null,null,"-2rem","-5.5rem"]})),pageTile__tile:Object(P.a)(wt({flex:["0 0 1000%",null,"0 0 88%"],maxWidth:["100%",null,"88%"],padding:"10px",paddingTop:"3rem",zIndex:1,"&:nth-of-type(even)":{marginLeft:"auto",".pageTile__bsyc__bg":wt({order:["0",null,"2"]}),".pageTile__bsyc__content__details":wt({order:"1"})},"&:nth-of-type(1)":{paddingTop:"10px"}})),tile__content:Object(P.a)({"&:hover":{textDecoration:"none","& .pageTile__bsyc__content__details":{},"& .pageTile__bsyc__bg2":{}}}),tile__flip__wrapper:Object(P.a)(wt({zIndex:"-1",display:"flex",flexDirection:"row",justifyContent:["center",null,"space-between"],width:"100%",height:"100%",cursor:"pointer",position:"relative",flexWrap:"wrap",alignItems:"center"})),tile__bg:Object(P.a)(wt({height:["230px",null,null,"490px"],flex:"1 1 300px",overflow:"hidden",position:"relative",boxShadow:"3px 5px 10px rgba(0,0,0,0.3)"})),tile__bg2:Object(P.a)(wt({height:"100%",overflow:"hidden",position:"absolute",top:"0px",width:"100%",".slick-next, .slick-prev":{display:"none !important"}})),tile__bg2__inner:Object(P.a)(wt({backgroundPosition:"50%",backgroundRepeat:"no-repeat",backgroundSize:"cover",width:"100%",height:["232px",null,null,"492px"]})),tile__details:Object(P.a)(wt({overflow:"hidden",flexGrow:"1",textAlign:"center",width:"100%",bottom:"0",zIndex:"1","&.orange":Object(P.a)({backgroundColor:L.orangeColor}),"&.blie":Object(P.a)({backgroundColor:L.blieColor}),"&.green":Object(P.a)({backgroundColor:L.greenColor}),"&.yellow ":Object(P.a)({backgroundColor:L.yellowColor}),flex:["1 1 300px",null,"1 1 350px"],maxWidth:["300px",null,"350px"],height:["unset",null,"75%"],transition:"all .2s ease-in-out",color:L.sandCtoneColor,position:"relative",marginTop:["-20px",null,"0px"],boxShadow:"3px 5px 10px rgba(0,0,0,0.3)","&.even":wt({marginLeft:["0px",null,"-50px"],marginRight:"unset"}),"&.odd":wt({marginRight:["0px",null,"-50px"],marginLeft:"unset"}),"& .pageTile__bsyc__container":wt({position:["static,",null,"absolute"],top:"50%",left:"50%",transform:["none",null,"translate(-50%, -50%)"],width:["100%",null,"75%"],padding:["1rem",null,"0px"],"& .pageTile__bsyc__title":{fontSize:"1.2rem",textTransform:"uppercase",fontWeight:"700",lineHeight:"1",margin:"0",paddingBottom:".5rem",color:"inherit"},"& .pageTile__bsyc__dot":{width:"40%",marginTop:"0px",marginBottom:"0px",paddingBottom:"0.5rem",borderTopColor:L.sandCtoneColor},"& .pageTile__bsyc__desc":{lineHeight:"1.5",fontSize:".8rem",minHeight:"70px",color:"inherit"}})}))};function Oo(e){var t=e.item,n=e.cmsOption||{},a=function(e){if(e)return JSON.parse(e);return[]}(so.payload(t,"PageObjects")).map((function(e,t){return Object(P.b)(wo,{page:e,key:t,disableLink:n.isCmsEdit,idx:t})})),r=Pt.classNames("cms_item","pageTiles__bsyc",t.cssClass||t.anchorName||"");return Object(P.b)("div",{className:r,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName,css:_o.pageTiles},a)}function wo(e){var t=e.page,n=Pt.site.resourcePath(t.imageUrl),a=e.disableLink,r="default"===t.colorTheme?"orange":t.colorTheme,o=t.bottomImageUrl&&""!==t.bottomImageUrl?t.bottomImageUrl.split("|"):[];n&&""!==n&&o.unshift(n);var i=e.idx,l=o.map((function(e,t){return Object(P.b)("div",{key:t},Object(P.b)("div",{className:"pageTile__bsyc__bg2__inner",css:_o.tile__bg2__inner,style:{backgroundImage:Pt.css.bgUrlStyle(e)}}))}));return Object(P.b)("div",{css:_o.pageTile__tile,className:"pageTile__bsyc"},Object(P.b)(fn,{className:"pageTile__bsyc__content",css:_o.tile__content,to:a?"":t.pageUrl},Object(P.b)("div",{css:_o.tile__flip__wrapper},Object(P.b)("div",{className:"pageTile__bsyc__bg","data-aos":i%2===0?"fade-up-right":"fade-up-left",css:_o.tile__bg},Object(P.b)("div",{className:"pageTile__bsyc__bg2 ".concat(i%2===0?"even":"odd"),css:_o.tile__bg2},Object(P.b)(Un.a,{dots:!1,infinite:!0,speed:1500,autoplaySpeed:3e3,fade:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1},l))),Object(P.b)("div",{css:_o.tile__details,className:"pageTile__bsyc__content__details ".concat(r," ").concat(i%2===0?"even":"odd"),"data-aos":i%2===0?"fade-up-left":"fade-up-right"},Object(P.b)("div",{className:"pageTile__bsyc__container"},t.pageTitle&&""!==t.pageTitle&&Object(P.b)("div",{className:"pageTile__bsyc__title"},t.pageTitle),Object(P.b)("hr",{className:"pageTile__bsyc__dot"}),Object(P.b)("div",{className:"pageTile__bsyc__desc"},t.tileDesc||t.description))))))}function jo(e){var t=e.item,n=e.cmsOption||{},a=so.payload(t,"HeightSet")||"standard",r=so.payload(t,"AlignV")||"50%",o=Pt.classNames("cms_item","single-banner","banner-item","bannerSize--".concat(a),t.cssClass||t.anchorName||""),i=Pt.site.resourcePath(so.payload(t,"ImageUrl")),l=so.payload(t,"CaptionTitle2")||so.payload(t,"CaptionTitle"),c=so.payload(t,"
1LinkUrl2")||so.payload(t,"LinkUrl"),s=l?c?y.a.createElement(fn,{to:c,className:"banner-item__link"},y.a.createElement("div",{className:"banner-item__title",dangerouslySetInnerHTML:{__html:l}})):y.a.createElement("div",{className:"banner-item__title",dangerouslySetInnerHTML:{__html:l}}):null;return y.a.createElement("div",{className:o,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName,style:{backgroundImage:Pt.css.bgUrlStyle(i),backgroundPositionY:r}},s&&y.a.createElement("div",{className:"banner_item__text"},s))}var To=n(261);function Co(e){var t,n=e.emailReceiver,a=e.fileAttachment||"false",r=e.mailchimpApiKey,o=e.mailchimpAudienceKey,i=ka({name:[(t={}).name||"",[Ha.Required()],{label:"Name",type:"text"}],phone:[t.phone||"",[Ha.Required()],{label:"Phone",type:"text"}],email:[t.email||"",[Ha.Required(),Ha.Email()],{label:"Email",type:"email"}],enquiry:[t.enquiry||"",[Ha.Required()],{label:"Your Message",type:"textarea"}],attachments:[t.attachments||"",[],{label:"Attachments",type:"file"}]}),l=Za(i,{usePlaceholder:!0}),c=y.a.useState(null),s=Object(C.a)(c,2),u=s[0],d=s[1],m=y.a.useState(),p=Object(C.a)(m,2),b=p[0],f=p[1],g=Rt(),v=y.a.useRef(),_=y.a.useMemo((function(){return b}),[b]);if(g.done()&&"pending"===u){var O=l.getValue();h.sendEvent("contactFormSubmitted",{contactEmail:O.email}),l.reset(i),v.current.reset(),d(null),g.response.results&&g.response.results.MailChimpError&&""!==g.response.results.MailChimpError&&f("Mail Chimp Error : "+g.response.results.MailChimpError)}var w=function(e){return l.renderControl(e,null)};return y.a.createElement("form",{className:"contactForm"},y.a.createElement("div",{className:"form-row"},y.a.createElement("div",{className:"col-md-12 mb-2"},w("name")),y.a.createElement("div",{className:"col-md-12 mb-2"},w("phone")),y.a.createElement("div",{className:"col-md-12 mb-2"},w("email")),y.a.createElement("div",{className:"col-md-12 mb-2"},w("enquiry"))),"true"===a&&y.a.createElement("div",{className:"form-row"},y.a.createElement("div",{className:"col-md-12 mb-2"}," ",w("attachments")," ")),y.a.createElement("div",{className:"form-row"},y.a.createElement("div",{className:"col-md-12 mb-2 recaptcha-container"},y.a.createElement(To.a,{ref:v,sitekey:N.reCaptchaSiteKey}))),y.a.createElement("div",{className:"form-row"},y.a.createElement("div",{className:"col-md-12 mb-2"},y.a.createElement("div",{className:"actions"},y.a.createElement(I,{onClick:function(e){f(null),l.validateForm(e,(function(){var e=v.current.getValue();if(e){var t=Object(E.a)(Object(E.a)({},l.getValue()),{},{emailReceiver:n,mailchimpApiKey:r,mailchimpAudienceKey:o,grecaptchaToken:e}),a=l.getFiles(),i=new FormData;console.log("formData",i),i.append("jsonData",JSON.stringify(t)),a.forEach((function(e){(e.files||[]).forEach((function(t){i.append(e.name,t)}))})),g.sendFormData(N.apiBase+"/api/contact/send",i),d("pending")}else alert("Please complete the reCAPTCHA verification")})),console.log("submitting")},status:g.status}," SEND MESSAGE "),y.a.createElement(A,{errors:l.errors,summaryMessage:"Please review the errors."}),y.a.createElement(A,{errors:g.errors}),y.a.createElement(A,{errors:_}),g.done()&&y.a.createElement("span",{style:{marginLeft:"1.5rem",color:"red",fontWeight:"bold"}},"Successfully sent!")))))}function Eo(e){var t=e.item,n=e.cmsOption||{},a=so.payload(t,"EmailReceiver"),r=so.payload(t,"FileAttachment")||"false",o=so.payload(t,"MailchimpApiKey"),i=so.payload(t,"MailchimpAudienceKey"),l=Pt.classNames("cms_item","htmlPanel",n.isCmsEdit&&"html",t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:l,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement("div",{className:"container contact-wrapper",id:"contactForm"},y.a.createElement(Co,{emailReceiver:a,fileAttachment:r,mailchimpApiKey:o,mailchimpAudienceKey:i})))}function xo(e){var t=e.item,n=e.cmsOption||{},a={heightSet:so.payload(t,"HeightSet")||"standard",videoLinkOrId:so.payload(t,"YoutubeCode"),playerId:"ytBanner-"+t.itemId.substr(0,8)},r=Pt.classNames("cms_item","youtubePanel",t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:r,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement(io,{video:a,canPlayVideo:function(){return Pt.css.screenWidth()>=1200}}))}function No(e){var t=rn().query,n=Rt(),a=t.q;if(y.a.useEffect((function(){n.send(N.apiBase+"/api/search/search",{keyword:a})}),[a]),n.loading())return y.a.createElement(U,null);if(n.hasErrors())return y.a.createElement(D,{title:"Loading Error",errors:n.errors});var r=n.response,o=r.pages,i=r.atdws;return console.log("pages :: ",o),0===o.length&&0===i.length?y.a.createElement(v.Fragment,null,y.a.createElement("h3",{style:{marginTop:"2rem"}},"Showing Search Results For: ",y.a.createElement("span",null,a)),y.a.createElement("div",{className:"alert alert-danger",role:"alert"},"No result found.")):y.a.createElement(y.a.Fragment,null,y.a.createElement("h3",{style:{marginTop:"2rem"}},"Showing Search Results For: ",y.a.createElement("span",null,a)),i.length>0&&y.a.createElement("div",null,y.a.createElement(Wn,{atdwData:i})),o.length>0&&y.a.createElement("div",null,y.a.createElement(ko,{pages:o})))}function ko(e){var t=e.pages;return y.a.createElement("div",{className:"pageTiles tiles"},t.map((function(e,t){return y.a.createElement(So,{key:t,page:e})})))}function So(e){var t=e.page,n=Pt.site.resourcePath(t.imageUrl),a=e.disableLink,r=t.colorTheme&&"default"!==t.colorTheme?t.colorTheme:"orange";return y.a.createElement("div",{className:"pageTile tile"},y.a.createElement(fn,{className:"pageTile__content tile__content",to:a?"":t.pageUrl},y.a.createElement("div",{className:"tile__bg",style:{backgroundImage:Pt.css.bgUrlStyle(n)}}),y.a.createElement("div",{className:"pageTile_details_container ".concat(r)},y.a.createElement("div",{className:"pageTile_details tile__details"},y.a.createElement("div",{className:"pageTile__title new-style"},t.pageTitle),y.a.createElement("hr",{className:"pageTile__dot__style"}),y.a.createElement("div",{className:"pageTile_desc"},t.tileDesc||t.description)),y.a.createElement("div",{className:"pageTile__bottom__img"},y.a.createElement("img",{src:"/assets/flow-device-transparent.png",style:{width:"100%"},alt:"wave"})))))}function Io(e){var t=e.item,n=e.cssClass,a=so.payload(t,"Code")||"",r=a.substring(a.indexOf("<script"),a.indexOf("<\/script>")+9).trim(),o=a.replace(r,"").trim();return Object(v.useEffect)((function(){var e=r.substring(r.indexOf("<script"),r.indexOf(">")+1).trim(),t=r.substring(r.indexOf(">")+1,r.indexOf("<\/script>")).trim(),n=document.createElement("script");
1if(n.type="text/javascript",""!==t&&(n.text=t),e.includes("src=")){var a=-1===e.indexOf('src="')?"":e.substring(e.indexOf('src="')).trim(),o=a.substring(a.indexOf('src="')+5,a.indexOf('"',5));n.src=o}if(e.includes("async")&&(n.async=!0),e.includes("defer")&&(n.defer=!0),e.includes("onload=")){var i=e.substring(e.indexOf("onload=")+8),l=i.substring(0,i.indexOf('"')-1).replace("()","");n.onload=function(){window[l]()}}document.body.appendChild(n)}),[r]),Object(P.b)("div",{className:n,id:t.anchorName,dangerouslySetInnerHTML:{__html:o}})}function Ao(e){var t=e.item,n=e.cmsOption||{},a=so.payload(t,"Code"),r=so.payload(t,"CodeType"),o=null;if("Json"===r){var i=JSON.parse(a);"search-results"===i.control?o=y.a.createElement(No,null):"app"===i.control?o=y.a.createElement(k,null):"instagram"===i.control&&(o=y.a.createElement(vn,null))}var l=Pt.classNames("cms_item",t.cssClass||t.anchorName||"");return n.isCmsEdit?y.a.createElement("div",{className:l,"data-cms-item-id":t.itemId,id:t.anchorName},y.a.createElement("pre",{style:{fontSize:"12px",margin:"5px",padding:"10px",background:"#eee",border:"1px solid #ccc"}},y.a.createElement("b",null,"Code Type: ",r),a)):"Text"===r?y.a.createElement("div",{className:l,id:t.anchorName,dangerouslySetInnerHTML:{__html:a}}):"TestWithJs"===r?y.a.createElement(Io,{item:t,cssClass:l}):y.a.createElement("div",{className:l,id:t.anchorName},o)}function Po(e){var t=e.item,n=e.cmsOption||{},a=function(e){if(e)return JSON.parse(e);return[]}(so.payload(t,"BlogPosts")),r=parseInt(so.payload(t,"NumOfTileLines","2")),o=Pt.ui.getCurrentBreakpoint(),i={xs:1,sm:1,md:2,lg:2,xl:3,xxl:4},l=r*(i[o]||3),c=l;console.log(o,r,i,l);var s=y.a.useState(l),u=Object(C.a)(s,2),d=u[0],m=u[1],p=a.length>d?a.slice(0,d):a,b=a.length>p.length,f=p.map((function(e,t){return y.a.createElement(Do,{page:e,key:t,disableLink:n.isCmsEdit})})),g=Pt.classNames("cms_item","blogTiles tiles",t.cssClass||t.anchorName||"");return y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{className:g,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},f),b&&y.a.createElement("div",{className:"blogTiles__loadMore"},y.a.createElement("span",{className:"thinBtn",onClick:function(e){m(d+c)}},"LOAD MORE")))}function Do(e){var t=e.page,n=Pt.site.resourcePath(t.imageUrl),a=e.disableLink;return y.a.createElement("div",{className:"blogTile"},y.a.createElement(fn,{className:"blogTile__link",to:a?"":t.pageUrl},y.a.createElement("div",{className:"blogTile__bg",style:{backgroundImage:Pt.css.bgUrlStyle(n)}}),y.a.createElement("div",{className:"blogTile__content"},y.a.createElement("div",{className:"blogTile__contentInner"},y.a.createElement("div",{className:"blogTile__title"},t.pageTitle),y.a.createElement("div",{className:"blogTile__desc"},t.tileDesc||t.description),y.a.createElement("div",{className:"blogTile__readMore thinBtn"},"READ MORE")))))}function Ro(e){var t=e.item,n=e.cmsOption||{},a=so.payload(t,"PageTitle"),r=so.payload(t,"PostDate"),o=Pt.classNames("blogView__titleContainer","cms_item",t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:o,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement("div",{className:"blogView__date"},r),y.a.createElement("h1",{className:"blogView__title"},a))}function Lo(e){var t=e.item,n=t.items||[],a=e.cmsOption||{},r=n.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:a})})),o=Pt.classNames("cms_item","videoHolder",t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:o,"data-cms-item-id":a.isCmsEdit&&t.itemId,id:t.anchorName},r)}function Mo(e){var t=e.item,n=e.cmsOption||{},a=so.payload(t,"YoutubeCode"),r=so.payload(t,"PosterFrameUrl"),o=so.payload(t,"CaptionTitleYoutube"),i=so.payload(t,"ShortDesc"),l=Pt.classNames("cms_item","videoItem",t.cssClass||t.anchorName||"");return y.a.createElement("div",{className:l,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement("div",{className:"row video"},y.a.createElement("div",{className:"col-md-5"},y.a.createElement(En,{url:a,title:o,posterUrl:r})),y.a.createElement("div",{className:"col-md-7"},y.a.createElement("h4",null,o),y.a.createElement("div",{dangerouslySetInnerHTML:{__html:i}}))))}function Bo(e){var t=e.item,n="yes"===so.payload(t,"MobileReverse","no")&&Pt.css.screenWidth()<=550?t.items.reverse()||[]:t.items||[],a=e.cmsOption||{},r=so.payload(t,"ColumnWidths").split(","),o=so.payload(t,"MobileColumnWidths").split(","),i={countD:0,countM:0,col:""},l=so.payload(t,"BgColor"),c=so.payload(t,"ImageUrl"),s=so.payload(t,"Backgroun
1dTile"),u=so.payload(t,"TextColorTheme")||"white",d=null;c?d=Pt.site.resourcePath(c):s&&(d=Pt.site.resourcePath("/dist/transparent-textures/textures/".concat(s)));var m=Pt.classNames("cms_item","contentPanel","multiColumnPanel","contentPanel--"+u,t.cssClass||t.anchorName||"");var p=n.map((function(e,t){return i.col="",r.length===i.countD&&(i.countD=0),o.length===i.countM&&(i.countM=0),i.col="col-sm"+("13"===r[i.countD]?"":"-"+r[i.countD])+" col-"+o[i.countM],i.countD++,i.countM++,y.a.createElement("div",{className:i.col,key:e.itemId},y.a.createElement(Zo,{item:e,cmsOption:a}))}));return y.a.createElement("section",{className:m,style:{backgroundColor:"".concat(l),backgroundImage:d&&Pt.css.bgUrlStyle(d)},"data-cms-item-id":a.isCmsEdit&&t.itemId,id:t.anchorName},y.a.createElement("div",{className:"container"},y.a.createElement("div",{className:"row"},p)))}function Ho(e){var t=e.cmsOption||{},n=y.a.useState(t.isCmsEdit),a=Object(C.a)(n,2),r=a[0],o=a[1],i=N.ver,l=e.item,c=rn().history,s=t.isCmsEdit?so.payload(l,"Content"):so.payload(l,"Content").replace("__version__","<a href = '/app' class = 'app_version'> PWA "+i+"</a>"),u=so.payload(l,"ButtonTitle"),d=Pt.classNames("cms_item","htmlPanel exHtml",t.isCmsEdit&&"html",l.cssClass||l.anchorName||"");function m(e){var t="";e.target.closest("a")&&(t=e.target.closest("a").getAttribute("target"));var n="_blank"===t?mn(e.target,null):mn(e.target);n.handled?(e.preventDefault(),e.stopPropagation()):n.linkInfo&&"internal"===n.linkInfo.type&&(e.preventDefault(),e.stopPropagation(),c.push(n.linkInfo.url))}var p=Object(v.useRef)(null);Object(v.useLayoutEffect)((function(){for(var e=p.current.querySelectorAll(".button"),t=0;e&&t<e.length;t++)Uo(e[t])}),[]);var b={icon:{marginLeft:"0.5rem",width:"auto !important",fontSize:"80%",transition:"all 0.5s"},iconOpen:{transform:"translateY(-0.1rem) rotate(-180deg)"},iconClosed:{transform:"translateY(-0.1rem) rotate(0)"},panelCollapsed:{maxHeight:0,transition:"all 0.6s",opacity:0,overflow:"hidden"},panelOpen:{opacity:1,maxHeight:"2000px",transition:"all 1s"}};return t.isCmsEdit?Object(P.b)("div",{ref:p,className:d,"data-cms-item-id":t.isCmsEdit&&l.itemId,id:l.anchorName,onClick:function(e){return m(e)}},Object(P.b)("div",{css:{textAlign:"center"}},Object(P.b)("a",{className:"button",href:"/",onClick:function(e){e.preventDefault(),e.stopPropagation()}},Object(P.b)("strong",null,u)," ",Object(P.b)("span",{css:[b.icon,r?b.iconOpen:b.iconClosed]},Object(P.b)(hn.c,null))," "),Object(P.b)("div",{css:{color:"chocolate"}},"To edit the button title, please double click or open item editor")),Object(P.b)("div",{"data-cms-html":"true","data-cms-item-id":t.isCmsEdit&&l.itemId,css:[{margin:"1rem 0"},r?b.panelOpen:b.panelCollapsed],dangerouslySetInnerHTML:{__html:s}})):Object(P.b)("div",{ref:p,className:d,"data-cms-html":"true","data-cms-item-id":t.isCmsEdit&&l.itemId,id:l.anchorName,onClick:function(e){return m(e)}},Object(P.b)("div",{css:{textAlign:"center"}},Object(P.b)("a",{className:"button",href:"/",onClick:function(e){e.preventDefault(),e.stopPropagation(),o(!r)}},Object(P.b)("strong",null,u)," ",Object(P.b)("span",{css:[b.icon,r?b.iconOpen:b.iconClosed]},Object(P.b)(hn.c,null))," ")),Object(P.b)("div",{css:[{margin:"1rem 0"},r?b.panelOpen:b.panelCollapsed],dangerouslySetInnerHTML:{__html:s}}))}function Uo(e){if(!e.querySelector("span")){var t=document.createElement("span");t.innerHTML=e.innerHTML,e.innerHTML="",e.appendChild(t)}}var Fo={photoGallery:Object(P.a)({maxWidth:"960px",margin:"auto"}),thumbnails:Object(P.a)({display:"flex",flexWrap:"wrap",marginLeft:"-5px",marginRight:"-5px"}),thumbnail:Object(P.a)(wt({flexBasis:["50%","25%","16.66%"],padding:"5px",cursor:"pointer"})),bg:{paddingBottom:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}};function Wo(e){var t=e.children,n=Object(v.useState)(document.createElement("div")),a=Object(C.a)(n,1)[0];return Object(v.useEffect)((function(){var e=document.getElementById("portal-root");return e.appendChild(a),function(){return e.removeChild(a)}}),[a]),Object(_.createPortal)(t,a)}function zo(e){var t=e.item,n=e.cmsOption||{},a=Pt.classNames("cms_item","photoGallery",t.cssClass||t.anchorName||""),r=so.payload(t,"ImageUrl")?so.payload(t,"ImageUrl").split("|"):[],o=[];r.length>0&&r.forEach((function(e){var t=e.split("/"),n=e.replace(t[t.length-1],"@thumb/"+t[t.length-1]);o.push(n)}));var i=Object(v.useState)(!1),l=Object(C.a)(i,2),c=l[0],s=l[1],u=Object(v.useState)(0),d=Object(C.a)(u,2),m=d[0],p=d[1];return Object(P.b)("div",{css:Fo.photoGallery,className:a,"data-cms-item-id":n.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)(Wo,null,Object(P.b)("div",{style:{display:"none"}},"PhotoGallery"),Object(P.b)(ta.a,{toggler:c,sources:r,sourceIndex:m})),Object(P.b)("div",{css:Fo.thumbnails},o.map((function(e,t){return Object(P.b)("div",{css:Fo.thumbnail,className:"thumbnail",key:t,onClick:function(e){e.preventDefault(),e.stopPropagation(),s(!c),p(t)}},Object(P.b)("div",{css:Fo.bg,style:{backgroundImage:Pt.css.bgUrlStyle(e)}}))}))))}var Vo={testimonialPanel:Object(P.a)({marginTop:"20px",marginBottom:"20px",backgroundColor:"transparent","& .slick-prev:before, .slick-next:before":{color:"black"},"& .slick-next":{right:"-2%"},"& .slick-prev":{left:"-2%"}})},qo=n(255),Yo={testimonialItem:Object(P.a)(wt({maxWidth:"300px",backgroundColor:"#f8f8ff",opacity:".9",textAlign:"center",color:"#000",padding:"10px",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:"auto",height:["400px","430px"]})),testimonialItem_title:Object(P.a)(wt({marginBottom:"0px",fontSize:["2rem","1.72rem"]})),testimonialItem_desc:Object(P.a)(wt({flex:"1 1 auto",fontSize:["1.2rem","1rem"]})),testimonialItem_bottom:Object(P.a)(wt({fontSize:["1rem","0.86rem"]}))};function Go(e){for(var t=e.item,n=Pt.classNames("cms_item","testimonialItem",t.cssClass||t.anchorName||""),a=e.startRating
1Color&&""!==e.startRatingColor?e.startRatingColor:"black",r=so.payload(t,"Title"),o=so.payload(t,"Desc"),i=so.payload(t,"BottomText"),l=parseInt(so.payload(t,"RatingStar")),c=[],s=0;s<l;s++)c.push(Object(P.b)(qo.a,{key:s,style:{color:a}}));return Object(P.b)("div",{css:Yo.testimonialItem,className:n},Object(P.b)("h4",{css:Yo.testimonialItem_title,className:"title"},r),Object(P.b)("div",{className:"rating"},c),Object(P.b)("div",{css:Yo.testimonialItem_desc,className:"desc"},o),Object(P.b)("h5",{css:Yo.testimonialItem_bottom,className:"bottom"},i))}function Ko(e){var t=e.item,n=e.startRatingColor,a=t.items||[],r=e.cmsOption||{},o=Pt.classNames("cms_item","testimonialPanel",t.cssClass||t.anchorName||""),i=a.map((function(e,t){return Object(P.b)(Go,{item:e,key:e.itemId,cmsOption:r,startRatingColor:n})})),l={dots:!1,infinite:!0,speed:1700,autoplaySpeed:3e3,autoplay:!0,slidesToShow:a.length>=3?3:a.length,slidesToScroll:1,responsive:[{breakpoint:1024,settings:{slidesToShow:a.length>=2?2:a.length}},{breakpoint:800,settings:{slidesToShow:1}}]};return Object(P.b)("div",{css:Vo.testimonialPanel,className:o,"data-cms-item-id":r.isCmsEdit&&t.itemId,id:t.anchorName},Object(P.b)(Un.a,l,i))}var Jo={exTextItem:Object(P.a)({overflow:"hidden",maxHeight:"0",transition:"all 0.2s",padding:"0px","&.expand":{maxHeight:"40000px",padding:"1rem 0"}})};function Qo(e){var t=e.item,n=t.items||[],a=e.cmsOption||{},r=so.payload(t,"BgColor"),o=so.payload(t,"ImageUrl"),i=so.payload(t,"BackgroundTile"),l=null;o?l=Pt.site.resourcePath(o):i&&(l=Pt.site.resourcePath("/dist/transparent-textures/textures/".concat(i)));var c=Pt.classNames("cms_item","contentPanel","expandablePanel",a.isCmsEdit&&"expandablePanel_item_cms",t.cssClass||t.anchorName||""),s=n.map((function(e,t){return Object(P.b)(Zo,{item:e,key:e.itemId,cmsOption:a})}));return Object(P.b)("section",{className:c,style:{backgroundColor:"".concat(r),backgroundImage:l&&Pt.css.bgUrlStyle(l)},"data-cms-item-id":a.isCmsEdit&&t.itemId,css:!a.isCmsEdit&&Jo.exTextItem,"data-anchor-status":"collapse","data-cms-item-anchor":t.anchorName,"data-cms-anchor":t.anchorName},Object(P.b)("div",{className:"contentPanel__bg"}),Object(P.b)("div",{className:"container"},s))}function Zo(e){var t=e.item,n=e.cmsOption||{},a=null,r=Pt.array.find(co,(function(e){return e.match(t,n)}));if(r)return r.itemElt(t,n);if("Panel"===t.itemTypeCode)a=y.a.createElement(bo,{item:t,cmsOption:n});else if("Html"===t.itemTypeCode)a=y.a.createElement(fo,{item:t,cmsOption:n});else if("BannerPanel"===t.itemTypeCode)a=y.a.createElement(mo,{item:t,cmsOption:n});else if("BannerItem"===t.itemTypeCode)a=y.a.createElement(po,{item:t,cmsOption:n});else if("TestimonialPanel"===t.itemTypeCode){a=y.a.createElement(Ko,Object.assign({item:t,cmsOption:n},{startRatingColor:"#2b707d"}))}else if("ImagePanel"===t.itemTypeCode)a=y.a.createElement(ho,{item:t,cmsOption:n});else if("PageTiles"===t.itemTypeCode){var o=so.payload(t,"TileType");a="2"===(o&&""!==o?o:"1")?y.a.createElement(vo,{item:t,cmsOption:n}):y.a.createElement(Oo,{item:t,cmsOption:n})}else a="SingleBanner"===t.itemTypeCode?y.a.createElement(jo,{item:t,cmsOption:n}):"ContactForm"===t.itemTypeCode?y.a.createElement(Eo,{item:t,cmsOption:n}):"VideoPanel"===t.itemTypeCode?y.a.createElement(xo,{item:t,cmsOption:n}):"Code"===t.itemTypeCode?y.a.createElement(Ao,{item:t,cmsOption:n}):"Blog-Posts"===t.itemTypeCode?y.a.createElement(Po,{item:t,cmsOption:n}):"Blog-PostTitle"===t.itemTypeCode?y.a.createElement(Ro,{item:t,cmsOption:n}):"MultiColumnPanel"===t.itemTypeCode?y.a.createElement(Bo,{item:t,cmsOption:n}):"ExpandableHtml"===t.itemTypeCode?y.a.createElement(Ho,{item:t,cmsOption:n}):"VideoHolder"===t.itemTypeCode?y.a.createElement(Lo,{item:t,cmsOption:n}):"VideoItem"===t.itemTypeCode?y.a.createElement(Mo,{item:t,cmsOption:n}):"PhotoGallery"===t.itemTypeCode?y.a.createElement(zo,{item:t,cmsOption:n}):"ExpandablePanel"===t.itemTypeCode?y.a.createElement(Qo,{item:t,cmsOption:n}):y.a.createElement("div",null,t.itemTypeCode);return a}var Xo=y.a.memo((function(e){var t=e.pageData,n=e.cmsOption;n.pageData=t;var a=t.sections.map((function(e,t){return y.a.createElement(ei,{item:e,key:e.sectionName+t,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,y.a.createElement(Ht,{data:ti(t)}),y.a.createElement("div",{className:"cmsPage cmsPage--".concat(t.pageTypeCode)},a))}),(function(e,t){return e.pageData===t.pageData}));function $o(){var e=un().dispatch,t=Object(v.useState)(!1),n=Object(C.a)(t,2),a=n[0],r=n[1],o=Object(v.useState)(null),i=Object(C.a)(o,2),l=i[0],c=i[1],s=rn(),u=s.pathname,d=s.Redirect;!function(){var e=y.a.useState(null),t=Object(C.a)(e,2),n=t[0],a=t[1];function r(){"undefined"!==typeof window&&(window.instgrm?window.instgrm.Embeds.process():n||"loading"===n||(a("loading"),Qt("https://www.instagram.com/embed.js").then((function(e){window.instgrm&&(window.instgrm.Embeds.process(),a("loaded"))}))))}y.a.useEffect((function(){r()}))}();var m=Lt();if(Object(v.useEffect)((function(){r(!1),m.send(N.apiBase+"/api/cms/GetPublishedPage?path="+u)}),[u]),Object(v.useEffect)((function(){l&&(e({type:"SET_PAGE",payload:l.data}),e({type:"SET_MENU",payload:l.menu}))}),[l]),m.loading())return y.a.createElement(U,null);if(m.hasErrors())return y.a.createElement(D,{title:"Loading Error",errors:m.errors});m.response;var p=m.response.data,b=m.response.redirectTo;
1if(!a&&p)return r(!0),c(m.response),document.title=p.pageTitle,h.pageView(u,p.pageTitle),null;if(b)return b.indexOf("http")>=0&&"undefined"!==typeof window?window.location.href=b:y.a.createElement(d,{to:b});if(!a&&!p)return r(!0),c(m.response),y.a.createElement(T,null);if(p){var f=so.payload(p,"ColorTheme","orange"),g=document.querySelector("div.body-content").className.replace(/theme-color-.*/g,"");return document.querySelector("div.body-content").className=g+"theme-color-"+f,document.querySelector("header#top").classList.remove("atdw-page"),y.a.createElement(Xo,{pageData:p,cmsOption:{}})}return y.a.createElement(T,null)}function ei(e){var t=e.item.items||[],n=e.cmsOption||{};if(!t||0===t.length)return y.a.createElement(y.a.Fragment,null);var a=t.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,a)}function ti(e){var t=N.siteName,n=N.titleSuffix;return{title:e.pageTitle+" | "+n,description:so.payload(e,"Description"),keywords:so.payload(e,"Keyword"),heroImageUrl:Pt.site.fullUrl(so.payload(e,"ImageUrl")),language:"English",country:"Australia",siteName:t,url:Pt.site.fullUrl(e.pageUrl)}}var ni=n(52),ai=n(53),ri=function(){function e(t){Object(ni.a)(this,e),this.controller=t}return Object(ai.a)(e,[{key:"sendMessageToParent",value:function(e,t){var n=JSON.parse(JSON.stringify(t));"undefined"!==typeof window&&window.parent.postMessage({action:e,data:n},"*")}},{key:"saveAllDirtyHtml",value:function(e){this.sendMessageToParent("return-all-dirty-html",{returnTo:"_saveAllDirtyHtml",htmlChanges:e})}},{key:"selectControllerItem",value:function(e){this.sendMessageToParent("select-controller-item",e)}},{key:"returnAllDirtyHtml",value:function(e,t){this.sendMessageToParent("return-all-dirty-html",{returnTo:e,htmlChanges:t})}},{key:"returnHtml",value:function(e,t){this.sendMessageToParent("return-html",{id:e,html:t})}},{key:"markDirtyHtml",value:function(e){this.sendMessageToParent("mark-dirty-html-item",{id:e})}}]),e}(),oi=function(){function e(t){Object(ni.a)(this,e),this.controller=t,this.init()}return Object(ai.a)(e,[{key:"init",value:function(){if("undefined"!==typeof window){var e=this;window.addEventListener("message",(function(t){var n=t.data.action,a=t.data.data;if("select-item"===n)e.selectItem(a.itemId);else if("media-selected-ckeditor"===n)e.mediaSelectedCKEditor(a);else if("get-all-dirty-html"===n){var r=e.controller.getAllDirtyHtml();e.controller.sender.returnAllDirtyHtml(a.returnTo,r)}else if("get-html"===n){var o=e.controller.getHtml(a.id);e.controller.sender.returnHtml(a.id,o)}else"page-reload"===n&&window.location.reload()}),!1)}}},{key:"mediaSelectedCKEditor",value:function(e){(window.CKEDITOR||{}).tools.callFunction(e.funcNum,e.selectedPath)}},{key:"selectItem",value:function(e){this.controller.selectItemFromController(e)}}]),e}(),ii=function(){function e(t,n){Object(ni.a)(this,e),this.ckeditorConfig={startupFocus:!0,filebrowserBrowseUrl:t+"/cms41helper/browse/selectpageormedia",filebrowserImageBrowseUrl:t+"/cms41helper/browse/selectmedia",extraPlugins:"sourcedialog,youtubejaba,lineutils,widget,embedjaba,image2",toolbar:[{name:"basicstyles",groups:["basicstyles","cleanup"],items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",groups:["list","align"],items:["NumberedList","BulletedList","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","PageBreak","Iframe","Youtube","EmbedJaba"]},"/",{name:"document",groups:["mode"],items:["Sourcedialog"]},{name:"clipboard",groups:["clipboard","undo"],items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"styles",items:["Styles","Format"]},{name:"colors",items:["TextColor","BGColor"]},{name:"tools",items:["Maximize","ShowBlocks"]}],extraAllowedContent:"style;span;*[id,rel,data-*](*){*}"},this.ckeditorStylesSet=[{name:"Title",attributes:{class:"title"}},{name:"Button",element:"a",attributes:{class:"button"}},{name:"Primary Button",element:"a",attributes:{class:"p-button"}},{name:"Secondary Button",element:"a",attributes:{class:"s-button"}},{name:"More link",element:"a",attributes:{class:"more"}}],this.sender=n}return Object(ai.a)(e,[{key:"show",value:function(e){var t=window.CKEDITOR||{};try{t.disableAutoInline=!0}catch(r){}var n=t.inline("cmsCurrentEditor",this.ckeditorConfig);t.stylesSet.get("default")||t.stylesSet.add("default",this.ckeditorStylesSet);var a=this;n.on("change",(function(e){var t=document.querySelector("#cmsCurrentEditor");t.classList.add("dirtyHtml");var n=t.getAttribute("data-cms-item-id");a.sender.markDirtyHtml(n)})),n.on("paste",(function(e){setTimeout((function(){t.instances.cmsCurrentEditor.setData(t.instances.cmsCurrentEditor.getData())}),100)}),null,null,9)}},{key:"close",value:function(){var e=window.CKEDITOR||{};"undefined"!=typeof e.instances.cmsCurrentEditor&&e.instances.cmsCurrentEditor.destroy()}}]),e}(),li=function(){function e(){Object(ni.a)(this,e),this.settings={root:"body",viewOnly:!1},this.sender=new ri(this),this.receiver=new oi(this),this.htmlEditor=new ii(N.cmsEndpoint,this.sender)}return Object(ai.a)(e,[{key:"init",value:function(e){var t=window.jQuery;this.settings=Object.assign({},{root:"body",viewOnly:!1},e),this.initGlobalVars();var n=this;
1t("[onclick]").prop("onclick",null),t("[dblclick]").prop("dblclick",null),t(n.settings.root).off("click dblclick","*"),t(n.settings.root).on("click dblclick","*",(function(e){t(e.target).hasClass("allowClick")||(e.stopPropagation(),e.preventDefault()),"true"===t(this).attr("contenteditable")||t("#cms_html_editor_source_id").is(":visible")?e.stopPropagation():(n.settings.viewOnly||n.selectItem(t(this),!1,"dblclick"===e.type),t("#cke_108_select").change((function(){var e=t(this).val();t("#cke_215_textInput").val(""),"_blank"===e&&t("#cke_215_textInput").val("noreferrer noopener")})))})),n.settings.viewOnly||t(n.settings.root).on("keydown","#cmsCurrentEditor",(function(e){if(e.ctrlKey&&83===e.which)return n.sender.saveAllDirtyHtml(n.getAllDirtyHtml()),!1}))}},{key:"selectItemFromController",value:function(e){var t=(0,window.jQuery)(".cms_item[data-cms-item-id='"+e+"']");this.scrollTo(t),this.selectItem(t,!0)}},{key:"selectItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.closest("[contenteditable]");if(!(a.length>0)){var r=e.closest(".cke_top");r.length>0||(this.closeEditingItem(),"undefined"!==typeof e&&0!==e.length&&this.findItem(e,t,0,n))}}},{key:"closeEditingItem",value:function(){var e=window.jQuery;e("[contenteditable]").removeAttr("contenteditable"),e("#cms_hovermenu").remove(),e(".cms_editing_item").removeClass("cms_editing_item")}},{key:"findItem",value:function(e,t,n,a){if(n>100)return!1;if("undefined"!==typeof e.attr("data-cms-html")&&"true"===e.attr("data-cms-html")&&(e.attr("contenteditable","true"),this.showHtmlEditor(e)),"undefined"!==typeof e.attr("data-cms-item-id"))e.addClass("cms_editing_item"),t||this.sender.selectControllerItem({id:e.attr("data-cms-item-id"),openEdit:"undefined"!==typeof a&&!0===a});else{var r=e.parents(".cms_item[data-cms-item-id], [data-cms-html]");r.length>0&&this.findItem(r.first(),t,n+1,a)}}},{key:"sameContent",value:function(e,t){return e===t}},{key:"showHtmlEditor",value:function(e){var t=window.jQuery,n=e;"cmsCurrentEditor"!==n.attr("id")&&(t("#cmsCurrentEditor").attr("id",""),this.htmlEditor.close(n),n.attr("id","cmsCurrentEditor"),this.htmlEditor.show(n))}},{key:"initGlobalVars",value:function(){var e=window.jQuery;window.cmsPage=e.extend({},window.cmsPage||{},{htmleditor:{getAnchors:function(t){var n=[];return e("a[name]").each((function(t,a){n.push({id:e(a).attr("id"),name:e(a).attr("name")})})),e("[data-cms-item-name],[data-cms-anchor]").each((function(t,a){"undefined"!==typeof e(a).attr("data-cms-anchor")&&""!==e(a).attr("data-cms-anchor")&&0===e(a).parents(".owl-item").length?n.push({id:null,name:e(a).attr("data-cms-anchor")}):""!==e(a).attr("data-cms-item-name")&&0===e(a).parents(".owl-item").length&&n.push({id:null,name:e(a).attr("data-cms-item-name")})})),n}}})}},{key:"scrollTo",value:function(e){var t=window.jQuery;if("undefined"!==typeof e&&0!==t(e).length){var n=t("html,body"),a=0;a=t(e).height()>t(window).height()?t(e).offset().top:t(e).offset().top-Math.floor((t(window).height()-t(e).height())/2),n.animate({scrollTop:a},500)}}},{key:"getCurrentHtml",value:function(){var e=window.CKEDITOR||{};try{return e.instances.cmsCurrentEditor.getData()}catch(t){return""}}},{key:"getAllDirtyHtml",value:function(){var e=window.jQuery,t=this,n=[];return e(".dirtyHtml").each((function(a,r){var o=e(r),i=o.is("#cmsCurrentEditor")?t.getCurrentHtml():o.html();if(o.is("[data-cms-section-id]")){var l=o.closest("[data-cms-item-id]");n.push({ItemId:l.data("cms-item-id"),SectionId:o.data("cms-section-id"),Content:i})}else if(o.is("[data-cms-item-id]")){var c=o;n.push({ItemId:c.data("cms-item-id"),SectionId:"Content",Content:i})}})),n}},{key:"getHtml",value:function(e){var t=window.jQuery;this.htmlEditor.close();var n=this,a=t(".cms_item[data-cms-item-id='"+e+"']"),r={Content:this.cms_replace_item_html(a)};return t("[data-cms-section-id]",a).length>0&&t("[data-cms-section-id]",a).each((function(a,o){if(t(o).closest(".cms_item").data("cms-item-id")===e){var i=t(o).attr("data-cms-section-id");r[i]=n.cms_replace_item_html(t(o))}})),r}},{key:"cms_replace_item_html",value:function(e){return e.html()}}]),e}();function ci(e){var t=rn().query,n=t.cmsViewMode,a=void 0===n?"edit":n,r=t.id,o=t.publishVer,i=t.editVer,l=r,c=Lt();if(Object(v.useEffect)((function(){c.send(N.apiBase+"/api/cms/GetPage/"+l+"?cmsViewMode="+a+(o?"&publishVer="+o:"")+(i?"&editVer="+i:""))}),[l]),c.loading())return y.a.createElement(U,null);if(c.hasErrors())return y.a.createElement(D,{title:"Loading Error",errors:c.errors});var s=c.response.data,u={isCmsEdit:!0,cmsViewMode:a};u.pageData=s;var d=new li;if(s){var m=so.payload(s,"ColorTheme","orange"),p=document.querySelector("div.body-content").className.replace(/theme-color-.*/g,"");document.querySelector("#root div.body-content").className=p+"theme-color-"+m}if("viewonly"!==a){Qt(N.resourceBase+"/dist/jquery-3.4.1/jquery.min.js?v=1").then((function(e){return Qt(N.resourceBase+"/dist/cms/ckeditor/ckeditor.js?v=1")})).then((function(e){d.init({}),document.querySelector("body").classList.add("cmsedit"),"Partial"===s.pageTypeCode&&document.querySelector("body").classList.add("partial-page")})).catch((function(e){return console.log(e)}))}else{Qt(N.resourceBase+"/dist/jquery-3.4.1/jquery.min.js?v=1").then((function(e){u.isCmsEdit=!1,d.init({viewOnly:!0})})).catch((function(e){return console.log(e)}))}var b=s.sections.map((function(e,t){return y.a.createElement(si,{item:e,key:e.sectionName+t,cmsOption:u})}));return y.a.createElement("div",{className:"cmsPage cmsPage--".concat(s.pageTypeCode)},b)}function si(e){var t=e.item.items||[],n=e.cmsOption||{};if(!t||0===t.length)return y.a.createElement(y.a.Fragment,null);var a=t.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,a)}var ui=n(256);function di(e){var t=e.onCloseMenu,n=y.a.useState(""),a=Object(C.a)(n,2),r=a[
10],o=a[1],i=rn().navigate;return y.a.createElement("form",{className:"searchBar",onSubmit:function(e){return function(e){e.preventDefault(),t(),i("/search-results?q="+encodeURIComponent(r))}(e)}},y.a.createElement("input",{type:"text",className:"searchBar__input",placeholder:"SEARCH",value:r,onChange:function(e){o(e.target.value)}}))}function mi(e){var t=e.open,n=un().state,a=n.menu||{items:[]},r=n.history&&n.history.length>0?n.history[n.history.length-1].path:"",o=a.items.map((function(t,n){return y.a.createElement(pi,{item:t,key:n,depth:1,onCloseMenu:e.onCloseMenu,currentLocation:r})}));return y.a.createElement("div",{className:"navBar ".concat(t?"navBar--on":""),id:"sliding-menu"},y.a.createElement(di,{onCloseMenu:e.onCloseMenu}),y.a.createElement("div",{className:"navBar__scrollArea",id:"top-menu"},y.a.createElement("nav",{className:"navBar_nav"},y.a.createElement("ul",null,o))))}function pi(e){var t=Object(v.useState)(!1),n=Object(C.a)(t,2),a=n[0],r=n[1],o=e.item,i=o.items||[],l=e.currentLocation,c=i.length>0?i.map((function(t,n){return y.a.createElement(bi,{item:t,key:n,onCloseMenu:e.onCloseMenu,currentLocation:l})})):null;return Object(v.useEffect)((function(){r(!1)}),[l]),y.a.createElement("li",{className:"navBar__item ".concat(a?"navBar__item--open":"")},y.a.createElement(fn,{className:"navBar__link",to:o.url,onClick:function(){e.onCloseMenu()}},y.a.createElement("span",null,o.title),c&&y.a.createElement("span",{className:"navBar__icon",onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),r(!a)}(e)}},y.a.createElement(hn.c,null))),c&&y.a.createElement("ul",{className:"navBar__subMenu"},c))}function bi(e){var t=e.item,n=Object(v.useState)(!1),a=Object(C.a)(n,2),r=a[0],o=a[1],i=e.currentLocation,l=t.items||[],c=l.length>0?l.map((function(t,n){return y.a.createElement(fi,{item:t,key:n,onCloseMenu:e.onCloseMenu})})):null;return Object(v.useEffect)((function(){o(!1)}),[i]),y.a.createElement("li",{className:"navBar__subItem ".concat(r?"navBar__subItem--open":"")},y.a.createElement(fn,{className:"navBar__subLink",to:t.url,onClick:function(){e.onCloseMenu()}},y.a.createElement("span",null,t.title),c&&y.a.createElement("span",{className:"navBar__icon__sub",onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),o(!r)}(e)}},y.a.createElement(hn.c,null))),c&&y.a.createElement("ul",{className:"navBar__subMenu__sub"},c))}function fi(e){var t=e.item;return y.a.createElement("li",{className:"navBar__subItem__sub"},y.a.createElement(fn,{className:"navBar__subLink__sub",to:t.url,onClick:function(){e.onCloseMenu()}},y.a.createElement("span",null,t.title)))}var gi={button:Object(P.a)(wt({position:"absolute",left:"1rem",lineHeight:"1.6rem",color:"white",fontWeight:600,fontSize:["12px",null,"15px"]}))};function hi(e){var t=dn();return t.last()?Object(P.b)(fn,{css:gi.button,title:"Go Back",to:t.last(),onClick:function(e){t.pop()}},Object(P.b)(hn.a,null),"BACK"):null}var vi=[{w:44,h:44,barW:28,barH:3,space:8},{w:56,h:56,barW:44,barH:3,space:10}],yi=Object(P.a)(wt({width:[vi[0].barW,null,vi[1].barW],height:[vi[0].barH,null,vi[1].barH],borderRadius:"4px",position:"absolute",transitionProperty:"transform",backgroundColor:"#fff",display:"block",transitionDuration:"0.15s",transitionDelay:"0.15s",transitionTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"})),_i={button:Object(P.a)(wt({cursor:"pointer",zIndex:"1000",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease-in-out",padding:"0",top:0,width:[vi[0].w,null,vi[1].w],height:[vi[0].h,null,vi[1].h],right:[0,null,20],background:"transparent",border:"none",outline:"none",font:"inherit",color:"inherit",textTransform:"none","&:focus":{outline:"none"}})),buttonScrolled:Object(P.a)(wt({top:[0,null,0]})),hamburger:Object(P.a)(wt({width:[vi[0].barW,null,vi[1].barW],height:[vi[0].barH+2*vi[0].space,null,vi[1].barH+2*vi[1].space],position:"relative",display:"block"})),line1:Object(P.a)(wt(yi,{top:0,transition:"top 0.3s 0.1s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s 0.1s linear"})),line2:Object(P.a)(wt(yi,{transition:"top 0.12s 0.3s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.15s cubic-bezier(0.55, 0.055, 0.675, 0.19)",top:[vi[0].space,null,vi[1].space]})),line3:Object(P.a)(wt(yi,{top:[2*vi[0].space,null,2*vi[1].space]})),lineActive1:Object(P.a)({opacity:"0",top:18,transition:"top 0.3s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.2s linear"}),lineActive2:Object(P.a)({transform:"rotate(-135deg)",transition:"top 0.12s 0.18s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.15s 0.42s cubic-bezier(0.215, 0.61, 0.355, 1)"}),lineActive3:Object(P.a)(wt({transform:["translate3d(0, -".concat(vi[0].space,"px, 0) rotate(-45deg)"),null,"translate3d(0, -".concat(vi[1].space,"px, 0) rotate(-45deg)")],transitionDelay:"0.32s",transitionTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"}))};function Oi(e){var t=e.opened,n=e.toggleMenu,a=e.scrolled;return Object(P.b)("button",{css:[_i.button,a&&_i.buttonScrolled],type:"button","aria-label":"Menu",onClick:n},Object(P.b)("span",{css:_i.hamburger},Object(P.b)("span",{css:[_i.line1,t&&_i.lineActive1]}),Object(P.b)("span",{css:[_i.line2,t&&_i.lineActive2]}),Object(P.b)("span",{css:[_i.line3,t&&_i.lineActive3]})))}var wi={top:Object(P.a)(wt({height:[60,null,130],background:L.orangeColor,position:"fixed",width:"100%",zIndex:"999",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s","&.atdw-page":Object(P.a)(wt({height:[44,null,75],"a.site-link":Object(P.a)(wt({img:Object(P.a)(wt({height:[22,null,60],marginTop:["0px",null,"0.5rem"]}))}))})),"&.itinerary__page__top":wt({height:[44,null,75],".site-link 
1img":wt({height:[34,null,60],marginTop:["0px",null,"0.5rem"]})})})),topScrolled:Object(P.a)(wt({height:[44,null,75]})),logo:Object(P.a)(wt({})),logoImg:Object(P.a)(wt({display:"block",height:[42,null,100],transition:"all .2s"})),logoScrolled:Object(P.a)(wt({img:Object(P.a)(wt({height:[34,null,60],marginTop:["0px",null,"0.5rem"]}))}))};function ji(e){var t=Object(v.useState)(!1),n=Object(C.a)(t,2),a=n[0],r=n[1],o=Object(v.useState)(!1),i=Object(C.a)(o,2),l=i[0],c=i[1],s=rn().path,u=Object(v.useState)("norm__page"),d=Object(C.a)(u,2),m=d[0],p=d[1];return Object(ui.useScrollPosition)((function(e){e.prevPos;e.currPos.y>90?c(!0):c(!1)}),[],null,!0),Object(v.useLayoutEffect)((function(){p("norm__page"),s.includes("/itinerary/")&&p("itinerary__page__top")}),[s]),Object(P.b)(v.Fragment,null,Object(P.b)("header",{css:[wi.top,l&&wi.topScrolled],id:"top",className:"header-top-bar ".concat(m)},Object(P.b)(hi,null),Object(P.b)(fn,{to:"/",css:[wi.logo,l&&wi.logoScrolled],onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},className:"site-link"},Object(P.b)("img",{css:wi.logoImg,src:"/assets/logos/logo.png",alt:"logo"})),Object(P.b)(Oi,{opened:a,toggleMenu:function(e){r(!a)},scrolled:l}),Object(P.b)(mi,{open:a,onCloseMenu:function(){r(!1)}}),Object(P.b)("div",{className:"wave-animation-bottom in-header",style:{color:"#f26c33"}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 0 H 0 V 12.5"}))))))}var Ti=n(140),Ci=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(ni.a)(this,e);var a={};this.settings=Object.assign({},a,n),this.slider=t,this.currentTranslateY=0,this.size=null,this.status="expanded",this.inititialised=!1,this.tsEventHandled=new Date}return Object(ai.a)(e,[{key:"init",value:function(e){var t=this;this.size=this.getSize(this.slider),e.includes("/loxton")||e.includes("/waikerie")?this.close():this.open(),this.showHidePaddingBar();var n=new Ti.a.Manager(this.slider);n.add(new Ti.a.Pan({direction:Ti.a.DIRECTION_VERTICAL,threshold:0})),n.on("panstart pan panend",(function(e){"panend"===e.type?t.switch(e.deltaY):"pan"===e.type&&t.moveDeltaTmp(e.deltaY)})),this.initEvent()}},{key:"initEvent",value:function(){var e=this,t=this.slider.querySelector(".bottomMenu__bar");this.inititialised&&t.removeEventListener("click",(function(t){return e.handleClick(t,e)})),t.addEventListener("click",(function(t){return e.handleClick(t,e)})),this.inititialised=!0}},{key:"handleClick",value:function(e,t){e.preventDefault(),e.stopPropagation(),new Date-this.tsEventHandled<100||t.switch()}},{key:"moveDeltaTmp",value:function(e){var t=this.getBaseY()+e;this.currentTranslateY=t<0?0:t>this.size.max?this.size.max:t,this.move(this.currentTranslateY)}},{key:"switch",value:function(e){if(this.tsEventHandled=new Date,!(e<0&&"expanded"===this.status||e>0&&"collapsed"===this.status)){var t=this.getTargetY();Fe.a.fromTo(this.slider,{y:this.currentTranslateY},{duration:.3,y:t,ease:"power1"}),this.status="collapsed"===this.status?"expanded":"collapsed",this.setStatus(),this.currentTranslateY=t,this.showHidePaddingBar()}}},{key:"getBaseY",value:function(){return"collapsed"===this.status?this.size.max:this.size.min}},{key:"getTargetY",value:function(){return"collapsed"===this.status?this.size.min:this.size.max}},{key:"getSize",value:function(e){var t=e.querySelector(".bottomMenu__links"),n=e.querySelector(".bottomMenu__bar");return{min:0,max:t.offsetHeight,barHeight:n.offsetHeight}}},{key:"move",value:function(e){this.slider.style.transform="translate3d(0, ".concat(e,"px, 0)")}},{key:"setStatus",value:function(){localStorage.setItem("bottomDrawerStatus",this.status)}},{key:"close",value:function(){this.status="collapsed",this.setStatus(),this.currentTranslateY=this.size.max,this.move(this.currentTranslateY)}},{key:"open",value:function(){this.status="expanded",this.setStatus(),this.currentTranslateY=this.size.min,this.move(this.currentTranslateY)}},{key:"showHidePaddingBar",value:function(){"collapsed"===this.status?(document.querySelector(".bottomMenuPadding").style.display="block",document.querySelector(".bottomMenu__line1").style.display="none",document.querySelector(".bottomMenu__line2").style.display="none",document.querySelector(".bottomMenu__text").style.display="block",this.slider.style.bottom="10px",this.slider.classList.add("bottomMenuShowOrHide")):(console.log("open"),document.querySelector(".bottomMenuPadding").style.display="none",document.querySelector(".bottomMenu__line1").style.display="block",document.querySelector(".bottomMenu__line2").style.display="block",document.querySelector(".bottomMenu__text").style.display="none",this.slider.classList.remove("bottomMenuShowOrHide"),this.slider.style.bottom="0px")}}]),e}();function Ei(e){var t=rn().pathname,n=function(e){return t&&t.toLowerCase()===e.toLowerCase()},a=[{url:"/things-to-do",title:"THINGS TO DO",icon:"our-river-WHITE.png",iconHover:"our-river-WHITE.png"},{url:"/eat-and-drink",title:"EAT & DRINK",icon:"eat-and-drink-WHITE.png",iconHover:"eat-and-drink-WHITE.png"},{url:"/accommodation",title:"ACCOMMODATION",icon:"accommodation-WHITE.png",iconHover:"accommodation-WHITE.png"},{url:"/explore",title:"EXPLORE",icon:"things-to-do-WHITE.png",iconHover:"things-to-do-WHITE.png"},{url:"/events",title:"EVENTS ",icon:"events-WHITE.png",iconHover:"events-WHITE.png"}].map((function(e,t){return y.a.createElement("li",{key:t,className:"bottomMenu__li ".concat(n(e.url)?"selected":"")},y.a.createElement(fn,{to:e.url,className:"bottomMenu__link bottomMenu__link--".concat(t)},y.a.createElement("div",{className:"icon"},y.a.createElement("img",{className:"normal",src:"/assets/navicons/".concat(e.icon),alt:e.title}),y.a.createElement("img",{className:"selected",src:"/assets/navicons/".concat(e.iconHover),alt:e.title})),y.a.createElement("div",null,e.title)))})),r=Object(v.useRef)(null);return Object(v.useLayoutEffect)((function(){var e=new Ci(r.current);setTimeout((function(){e.init(t)}),1e3)}),[t]),y.a.createElement(y.a.Fragment,null,y.a.createElement("nav",{className:"bottomMenu",ref:r},y.a.createElement("div",{className:"bottomMenu__bar"},y.a.createElement("div",{className:"bottomMenu__line1",style:{display:"none"}}),y.a.createElement("div",{className:"bottomMenu__line2",style:{display:"none"}}),y.a.createElement("div",{className:"bottomMenu__text"},y.a.createElement("div",{style:{position:"relative"}}
1,"EXPLORE THE RIVERLAND",y.a.createElement(hn.b,null)))),y.a.createElement("ul",{className:"bottomMenu__links"},a)),y.a.createElement("div",{className:"bottomMenuPadding"}))}function xi(e){var t=un().state,n=y.a.useState(!1),a=Object(C.a)(n,2),r=a[0],o=a[1],i=y.a.useState([]),l=Object(C.a)(i,2),c=l[0],s=l[1],u=y.a.useState(0),d=Object(C.a)(u,2),m=d[0],p=d[1],b=t.popup;return JSON.stringify(b&&b.sources||[])===JSON.stringify(c)&&(b&&b.popupIndex||0)===m||(s(b.sources),p(b.popupIndex),setTimeout((function(){o(!r)}),10)),y.a.createElement("div",{className:""},y.a.createElement(ta.a,{toggler:r,sources:c,key:m,onOpen:function(e){}}))}function Ni(){var e=rn().path,t=en(),n=dn();return y.a.useLayoutEffect((function(){if(n.push({path:e}),"undefined"!==typeof window)if(t.reset(),function(e){return function(e,t){var n=function(e,t){if(!e)return-1;for(var n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}(e,(function(e){return e.path===t}));if(n>=0&&n>=e.length-2)return n<e.length-1&&(e.splice(n+1),localStorage.setItem("scrollPosRouter",JSON.stringify(e))),e[n];return null}(function(){var e=localStorage.getItem("scrollPosRouter");if(e){var t;try{t=JSON.parse(e)}catch(n){return null}return t}return null}()||[],e)}(e))setTimeout((function(){}),500);else{var a=window.location.hash;a?setTimeout((function(){var e=Pt.ui.findElement(a);e&&Pt.ui.scrollTo(e,500)}),500):window.scrollTo(0,0)}}),[e]),null}var ki=n(257),Si=n.n(ki),Ii={bannerConatiner:wt({margin:"auto",marginTop:"1.5rem",maxWidth:"960px",paddingRight:"0px",paddingLeft:"0px"}),bannerItem:wt({img:wt({width:"100%"})}),backgroundBannerItem:wt({paddingTop:"56.25%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"}),barBtnContainer:wt({display:"flex",marginLeft:"-0.5rem",marginRight:"-0.5rem",marginTop:"0.3rem",flexWrap:"wrap",justifyContent:["center",null,"unset"]}),barBtn:wt({lineHeight:"1",padding:["0.5rem 2rem",null,"0.3rem 2rem"],borderRadius:"13px",color:L.orangeColor,backgroundColor:L.sandCtoneColor,marginLeft:"0.5rem",marginRight:"0.5rem",fontSize:"0.8rem",marginTop:"0.2rem",marginBottom:"0.2rem",width:["140px","unset"]}),hoverPanel:wt({position:"absolute",top:"0",bottom:"0",left:"0",right:"0",zIndex:"-1"}),hoverPanelTop:wt({height:["46%",null,"40%"],position:"relative",backgroundColor:L.orangeColor,"&.one-line":wt({height:["41%",null,"40%"]})}),productName:wt({color:L.orangeColor,lineHeight:"1.1",fontSize:"2.5rem"}),productDes:wt({"&.des__0":{fontWeight:600}}),productRate:{fontWeight:600,marginTop:"1.5rem"},expendablePanel:{marginTop:"1rem","&.open":{".exPanelTitle svg":{transform:"translateY(-50%) rotate(180deg)"},".expendablePanelContent":{opacity:"1",height:"auto"}}},expendablePanelTitle:{borderBottom:"1px solid ".concat(L.orangeColor),cursor:"pointer",position:"relative",svg:{position:"absolute",right:"0px",top:"50%",transform:"translateY(-50%)",transition:"all 0.2s ease-in-out"}},expendablePanelContent:{transition:"opacity 1s ease-out !important",opacity:"0",height:"0",overflow:"hidden"},expanleTitle:{fontWeight:600},content:{fontSize:"0.9rem"},searchFunctionText:{fontWeight:600,marginTop:"3rem",marginBottom:"1rem"},searchTextTitle:{fontWeight:600,fontSize:"2.2rem",textTransform:"uppercase",color:L.orangeColor,marginBottom:"1.5rem"}},Ai=y.a.memo((function(e){var t=e.pageData,n=e.cmsOption;var a=t.sections.map((function(e,t){return y.a.createElement(Di,{item:e,key:e.sectionName+t,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,a)}),(function(e,t){return e.pageData===t.pageData}));function Pi(e){var t=e.pageOptions,n=void 0===t?null:t,a=un().dispatch,r=Object(v.useState)(!1),o=Object(C.a)(r,2),i=o[0],l=o[1],c=Object(v.useState)(null),s=Object(C.a)(c,2),u=s[0],d=s[1],m=Lt();if(Object(v.useEffect)((function(){l(!1),m.send(N.apiBase+"/api/cms/GetPublishedPage?path=/partials/common-footer")}),["/partials/common-footer"]),Object(v.useEffect)((function(){u&&(a({type:"SET_PAGE",payload:u.data}),a({type:"SET_MENU",payload:u.menu}))}),[u]),m.loading())return y.a.createElement(U,null);if(m.hasErrors())return y.a.createElement(D,{title:"Loading Error",errors:m.errors});m.response;var p=m.response.data,b={pageOptions:n};return!i&&p?(l(!0),d(m.response),null):p?y.a.createElement(Ai,{pageData:p,cmsOption:b}):y.a.createElement(T,null)}function Di(e){var t=e.item.items||[],n=e.cmsOption||{};if(!t||0===t.length)return y.a.createElement(y.a.Fragment,null);var a=t.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,a)}var Ri=y.a.memo((function(e){var t=e.pageData,n=e.cmsOption;var a=t.sections.map((function(e,t){return y.a.createElement(Mi,{item:e,key:e.sectionName+t,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,a)}),(function(e,t){return e.pageData===t.pageData}));function Li(e){var t=e.pageOptions,n=void 0===t?null:t,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1],l="/partials/common-atdw-page-bottom",c=Lt();if(Object(v.useEffect)((function(){i(!1),c.send(N.apiBase+"/api/cms/GetPublishedPage?path="+l)}),[l]),c.loading())return y.a.createElement("div",null);if(c.hasErrors())return y.a.createElement(D,{title:"Loading Error",errors:c.errors});c.response;var s=c.response.data,u={pageOptions:n};return!o&&s?(i(!0),null):s?y.a.createElement(Ri,{pageData:s,cmsOption:u}):y.a.createElement(T,null)}function Mi(e){var t=e.item.items||[],n=e.cmsOption||{};if(!t||0===t.length)return y.a.createElement(y.a.Fragment,null);var a=t.map((function(e,t){return y.a.createElement(Zo,{item:e,key:e.itemId,cmsOption:n})}));return y.a.createElement(y.a.Fragment,null,a)}
1function Bi(){var e=rn().query.slug,t=Object(v.useState)(),n=Object(C.a)(t,2),a=n[0],r=n[1],o=Object(v.useState)(),i=Object(C.a)(o,2),l=i[0],c=i[1],s=Object(v.useState)(),u=Object(C.a)(s,2),d=u[0],m=u[1],p=Object(v.useState)(!1),b=Object(C.a)(p,2),f=b[0],g=b[1];return Object(v.useEffect)((function(){r(null),c(!0),m(null)}),[e]),Object(v.useEffect)((function(){if(!0===l){var t=new AbortController,n=t.signal,a=document.querySelector("div.body-content").className.replace(/theme-color-.*/g,"");return document.querySelector("div.body-content").className=a+"theme-color-orange",document.querySelector("header#top").classList.remove("itinerary-page"),document.querySelector("header#top").classList.add("atdw-page"),fetch(N.apiBase+"/api/atdw/getproduct/"+e,{signal:n}).then((function(e){return e.json()})).then((function(e){var t=e;if(console.log("data--",t),t.errors&&t.errors.length>0)m(t.errors[0].errorMessage);else{var n=t.results.isAtdwProduct,a=t.results.atdwDataInDb;if(!0===n){if(t&&t.results&&t.results.product){for(var o,i=t.results.product,l=[],s=[],u=[],d={lat:0,lng:0},p="",b="",f="",g=[],h=0;h<i.multimedia.length;h++)"IMAGE"===i.multimedia[h].attributeIdMultimediaContent&&"16X9"===i.multimedia[h].attributeIdSizeOrientation&&parseInt(i.multimedia[h].width)>=800?(o||(o=i.multimedia[h].multimediaId),o===i.multimedia[h].multimediaId?g.push(i.multimedia[h]):(l.push(g),(g=[]).push(i.multimedia[h]),o=i.multimedia[h].multimediaId)):"VIDEO"===i.multimedia[h].attributeIdMultimediaContent&&s.push(i.multimedia[h]),h===i.multimedia.length-1&&g.length>0&&l.push(g);for(var v in i.addresses)if("PHYSICAL"===i.addresses[v].attributeIdAddress){d.lat=Number(i.addresses[v].geocodeGdaLatitude),d.lng=Number(i.addresses[v].geocodeGdaLongitude);break}if(i.communication.forEach((function(e){"Primary Phone"===e.attributeIdCommunicationDescription?p=e.communicationDetail:"URL Enquiries"===e.attributeIdCommunicationDescription?b=e.communicationDetail:"Booking URL"===e.attributeIdCommunicationDescription&&(f=e.communicationDetail)})),i.externalSystems.length>0)for(var y in i.externalSystems)if("TXA_DEFAULT"===i.externalSystems[y].externalSystemCode){var _=i.externalSystems[y].externalSystemText;f="https://book.txa.com.au/v4/Pages/Availability.aspx?exl_dn=Destination_Riverland_web&exl_psn=".concat(_,"&exl_ad=2&exl_ch=0&exl_dte=");break}i.attributes.forEach((function(e){"ENTITY FAC"===e.attributeTypeId&&u.push(e)})),r({multimedia:l,product:i,features:u,geoCode:d,searchTextTitle:"SEARCH "+i.productCategoryDescription,primaryPhone:p,siteUrl:b,bookingUrl:f,isAtdwProduct:n,atdwType:i.productCategoryId,atdwDataInDb:a})}}else if(t&&t.results&&t.results.product){var O=t.results.product,w=O.communication.find((function(e){return"Primary Phone"===e.attributeIdCommunicationDescription})),j=O.communication.find((function(e){return"URL Enquiries"===e.attributeIdCommunicationDescription})),T=O.communication.find((function(e){return"Booking URL"===e.attributeIdCommunicationDescription}));r({multimedia:O.atdwImages,isAtdwProduct:n,product:O,features:O.features,geoCode:{lat:Number(O.extraGeoCodeLat),lng:Number(O.extraGeoCodeLng)},atdwType:O.productType,primaryPhone:w&&w.communicationDetail,siteUrl:j&&j.communicationDetail,bookingUrl:T&&T.communicationDetail,atdwDataInDb:a})}c(!1)}})).catch((function(e){console.log("error :: ",e),c(!1)})),function(){t.abort()}}}),[l]),l||!a?d?Object(P.b)(D,{title:"Loading Error",errors:d}):Object(P.b)(U,null):Object(P.b)(v.Fragment,null,!0===a.isAtdwProduct&&Object(P.b)("img",{src:a.product.productPixelURL,width:"1",height:"1",border:"0",position:"absolute",left:"-9999px",alt:"atdw_pixel_code"}),Object(P.b)(qi,{multimedia:a.multimedia,primaryPhone:a.primaryPhone,siteUrl:a.siteUrl,bookingUrl:a.bookingUrl,isAtdwProduct:a.isAtdwProduct,setOpenMap:g}),Object(P.b)("div",{className:"container"},Object(P.b)("div",{className:"htmlPanel"},Object(P.b)(Hi,{product:a.product,isAtdwProduct:a.isAtdwProduct}),Object(P.b)(Ui,{communication:a.product.communication,isAtdwProduct:a.isAtdwProduct}),Object(P.b)(zi,{features:a.features}),a.product.eventFrequency&&a.product.eventFrequency.length>0&&Object(P.b)(Fi,{dates:a.product.eventFrequency,isAtdwProduct:a.isAtdwProduct}
1),Object(P.b)("div",{id:"atdwPageLocation"},Object(P.b)(Vi,{geoCode:a.geoCode,productName:a.product.productName,openMap:f,setOpenMap:g})),Object(P.b)(Wi,{multimedia:a.multimedia,isAtdwProduct:a.isAtdwProduct}),Object(P.b)("div",{css:Ii.searchFunctionText},"IF THIS LISTING IS NOT WHAT YOU ARE LOOKING FOR, USE THE SEARCH FUNCTION BELOW."),Object(P.b)(zn,{atdwType:a.atdwType}),!0===a.isAtdwProduct&&Object(P.b)("img",{src:a.product.productPixelURL,width:"1",height:"1",border:"0",alt:"atdw_pixel_code"}))),Object(P.b)(Li,null),Object(P.b)(Pi,null))}function Hi(e){var t=e.product,n=e.isAtdwProduct;return Object(P.b)("section",null,Object(P.b)("h1",{css:Ii.productName},t.productName.toUpperCase()),Object(P.b)((function(){return n?t.productDescription.split("\n").map((function(e,t){return Object(P.b)("p",{css:Ii.productDes,key:t,className:"".concat("des__"+t)},e)})):Object(P.b)("div",{dangerouslySetInnerHTML:{__html:t.extraDescription}})}),null),t.rateFrom&&""!==t.rateFrom&&t.rateTo&&""!==t.rateTo&&Object(P.b)("div",{css:Ii.productRate},"Rate : ","$"+t.rateFrom," ~ ","$"+t.rateTo))}function Ui(e){var t=e.communication,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Ii.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Ii.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Ii.expanleTitle}," CONTACT DETAILS "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ii.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),t.map((function(e,t){if(!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("email")||!1===n&&"email"===e.type)return Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:"mailto:"+e.communicationDetail,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail));if(!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("phone")||!1===n&&"tel"===e.type){var a=e.communicationDetail;if(e.communicationDetail&&""!==e.communicationDetail){var r=(e.communicationAreaCode?e.communicationAreaCode:"")+e.communicationDetail.replace(/\s/g,"");a="+"+e.communicationIsdCode+r.slice(1)}return Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:"tel:"+a,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail))}return!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("url")||!1===n&&"url"===e.type?Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:e.communicationDetail.includes("http")?e.communicationDetail:"https://"+e.communicationDetail,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail)):Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("span",null," ",e.communicationDetail," "))})))))}function Fi(e){var t=e.dates,n=e.isAtdwProduct;console.log("dates ---\x3e",t);var a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1],l=new Date((new Date).toISOString().split("T")[0]);return Object(P.b)("section",null,Object(P.b)("div",{css:Ii.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Ii.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Ii.expanleTitle}," DATES & TIME "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ii.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{className:"row"},t.map((function(e,t){var a=new Date(e.frequencyStartDate),r="",o=n?e.frequencyStartTime:"",i=n?e.frequencyEndTime:"";switch(console.log("endTime",i),a.getMonth()){case 0:r="January";break;case 1:r="February";break;case 2:r="March";break;case 3:r="April";break;case 4:r="May";break;case 5:r="June";break;case 6:r="July";break;case 7:r="August";break;case 8:r="September";break;case 9:r="October";break;case 10:r="November";break;case 11:r="December";break;default:r=""}var c=a.getDate(),s="";s=1===c||21===c||31===c?"st":2===c||22===c||32===c?"nd":3===c||23===c||33===c?"rd":"th";var u="";if(o&&""!==o){var d=e.frequencyStartTime.split(":");u=" | "+(o=parseInt(d[0])>12?d[0]-12+":"+d[1]+"pm":d[0]+":"+d[1]+"am")}if(o&&""!==o&&i&&""!==i){var m=i.split(":");u=u+" \u2013 "+(i=parseInt(m[0])>12?m[0]-12+":"+m[1]+"pm":m[0]+":"+m[1]+"am")}return a>=l?Object(P.b)("div",{className:"col-12 col-md-6",key:t,style:{fontFamily:"sans-serif"}},Object(P.b)("div",{className:"atdw__page__event__time_c"},c," ",Object(P.b)("sup",{style:{marginLeft:"-5px",top:"-0.7em",fontSize:"0.6rem"}},s)," ",r+", "+a.getFullYear()+(u&&""!==u&&u))):null}))))))}function Wi(e){var t=e.multimedia,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Ii.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Ii.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Ii.expanleTitle}," PHOTO GALLERY & VIDEO "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ii.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)(na,{images:t,isAtdwProduct:n}))))}function zi(e){var t=e.features,n=Object(v.useState)(!1),a=Object(C.a)(n,2),r=a[
10],o=a[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Ii.expendablePanel,className:r?"open":"close"},Object(P.b)("div",{css:Ii.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){o(!r)}},Object(P.b)("span",{css:Ii.expanleTitle}," FEATURES "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ii.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{className:"row"},t&&t.map((function(e,t){return Object(P.b)("div",{className:"col-12 col-sm-4",key:t},Object(P.b)(hn.d,{style:{height:"0.2em",width:"0.2em",verticalAlign:"middle"}}),Object(P.b)("span",{css:Ii.content}," ",e.attributeIdDescription," "))}))))))}function Vi(e){var t=e.geoCode,n=e.productName,a=e.openMap,r=e.setOpenMap,o=Object(v.useRef)(null);return Object(v.useEffect)((function(){var e,a,r=!0,i=document.createElement("script");((void 0===window.google||void 0===window.google.maps)&&(r=!1),r)?(e=new window.google.maps.Map(o.current,{center:{lat:t.lat,lng:t.lng},zoom:15}),a=new window.google.maps.Marker({position:{lat:t.lat,lng:t.lng},map:e,title:n}),console.log(a)):(i.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqjATWMNIpPT5GIDudcLTY6_2ijO8d-fQ",i.async=!0,document.body.appendChild(i),setTimeout((function(){var e,a;e=new window.google.maps.Map(o.current,{center:{lat:t.lat,lng:t.lng},zoom:15}),a=new window.google.maps.Marker({position:{lat:t.lat,lng:t.lng},map:e,title:n}),console.log(a)}),1e3));return function(){r||document.body.removeChild(i)}}),[]),Object(P.b)("section",null,Object(P.b)("div",{css:Ii.expendablePanel,className:a?"open":"close"},Object(P.b)("div",{css:Ii.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){setTimeout((function(){document.getElementById("atdwPageLocation").scrollIntoView({behavior:"smooth",block:"center"})}),800),r(!a)}},Object(P.b)("span",{css:Ii.expanleTitle}," LOCATION "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ii.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{style:{height:"450px"}},Object(P.b)("div",{ref:o,style:{height:"100%"}})))))}function qi(e){var t=e.multimedia,n=void 0===t?[]:t,a=e.primaryPhone,r=e.siteUrl,o=e.bookingUrl,i=e.setOpenMap,l=e.isAtdwProduct,c=n.length>0?n:[{imageUrl:"/sites/dr5/media/banners/natural-indulgence/255254.jpg"}];return Object(P.b)("section",{style:{overflow:"hidden"}},Object(P.b)("div",{className:"container",css:Ii.bannerConatiner},Object(P.b)(Un.a,{dots:!1,infinite:!0,speed:1500,autoplaySpeed:3e3,fade:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1},c&&c.map((function(e,t){return Object(P.b)("div",{key:t,css:Ii.bannerItem},!0===l?Object(P.b)("picture",null,e.map((function(e,t){return Object(P.b)("source",{key:t,crossOrigin:"anonymous",srcSet:e.serverPath,media:e.width<=800?"(min-width:600px)":null})})),Object(P.b)("img",{src:"/assets/logos/logo.png",alt:"image2"})):Object(P.b)("div",{style:{backgroundImage:Pt.css.bgUrlStyle("https://www.visitriverland.com.au"+e.imageUrl)},css:Ii.backgroundBannerItem}))}))),Object(P.b)("div",{css:Ii.barBtnContainer},a&&""!==a&&Object(P.b)("a",{href:"tel:"+a},Object(P.b)("button",{css:Ii.barBtn,className:"btn btn-primary",type:"button"},"CONTACT")),Object(P.b)("button",{css:Ii.barBtn,className:"btn btn-primary",type:"button",onClick:function(){Pt.ui.scrollTo("#atdwPageLocation"),i(!0)}},"LOCATION"),r&&""!==r&&Object(P.b)("a",{href:r.includes("http")?r:"https://"+r,target:"_blank",rel:"noopener noreferrer"},Object(P.b)("button",{css:Ii.barBtn,className:"btn btn-primary",type:"button"}," WEBSITE ")),o&&""!==o&&Object(P.b)("a",{href:o.includes("http")?o:"https://"+o,target:"_blank",rel:"noopener noreferrer"},Object(P.b)("button",{css:Ii.barBtn,className:"btn btn-primary",type:"button"}," BOOKINGS ")))),Object(P.b)("div",{css:Ii.hoverPanel},Object(P.b)("div",{css:Ii.hoverPanelTop,className:"".concat(r&&""!==r||o&&""!==o?"two-line":"one-line")},Object(P.b)("div",{className:"wave-animation-bottom",style:{color:"#f26c33"}},Object(P.b)("svg",{width:"1440px",height:"25px",viewBox:"0 0 1440 25",preserveAspectRatio:"none"},Object(P.b)("g",{"data-svg-origin":"0 0"},Object(P.b)("path",{fill:"currentColor",d:"M 0 12.5 q 360 -25 720 0 t 720 0 t 720 0 t 720 0 t 720 0 t 720 0 V 0 H 0 V 12.5"})))))))}var Yi={atdw__popup__page__back__to__menu:wt({fontWeight:"400",display:["block",null,"none"],position:"fixed",top:"5%",backgroundColor:"white",zIndex:9,paddingLeft:"1rem",paddingRight:"1rem",paddingBottom:"0px",paddingTop:"0.7rem",width:"100%",borderBottom:"1px solid",svg:{width:"20px",height:"20px"},span:{display:"inline-block",marginLeft:"0.5rem",verticalAlign:"middle"}}),itinerary__dumy__background:{width:"100%",height:"100%",backgroundColor:"white",position:"fixed",top:"0",zIndex:"-1"},itinerary__dumy__text:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:3,display:"none","&.map__off":wt({display:["none",null,"block"]})},itinerary__page:{marginTop:"3rem"},itinerary__container:wt({border:"1px solid red"}),itinerary__menu__icon:wt({position:"fixed",top:"2px",right:"3rem",zIndex:"999",padding:"0.5rem",borderRadius:"50%",borderColor:"rgba(255, 255, 255, 0.08)",display:["black",null,"none"],svg:{fontSize:"1.5rem",color:"white",cursor:"pointer"}}),itinerary__layout:wt({display:"flex",flexDirection:"row",marginTop:["1px",null,"2rem"],flexWrap:"wrap",position:"relative"}),itinerary__side___close__panel:wt({width:"100%",height:"100%",position:"absolute",display:"none",zIndex:2,"&.open":wt({display:["block",null,"none"]})}),itinerary__side__panel:wt({flex:["1 0 100%",null,"1 0 25%"],maxWidth:["100%",null,"25%"],height:"100%",overflow:"auto",position:["absolute",null,"static"],zIndex:3,transition:"all 0.3s ease-in-out",backgroundColor:"white",width:"100%","&.atdw__popup__page__container":wt({"&.open":{transform:"translateX(0)"}
1,"&.close":{transform:"translateX(-100%)"}})}),itinerary__main__panel:wt({flex:["1 0 100%",null,"1 0 75%"],maxWidth:["100%",null,"75%"],display:["none",null,"block"],"&.atdw__popup__open":wt({flex:["1 0 100%",null,"1 0 50%"],maxWidth:["100%",null,"50%"]}),".gm-ui-hover-effect":{},".info__window":{maxWidth:"300px",".info__title":{fontSize:"16px",fontWeight:"600",marginBottom:"3px",color:L.orangeColor,fontFamily:L.familyHeader,textTransform:"uppercase"}}}),itinerary__view__item__container:{padding:"0.5rem",marginLeft:"0.5rem",marginRight:"0.5rem"},itinerary__view__item__title:{fontWeight:800,textAlign:"center",color:L.orangeColor},itinerary__view__item__des:{marginTop:"1rem",fontSize:"0.7rem",p:{marginBottom:"0.5rem"}},itinerary__day__item__des:{marginTop:"1rem",fontSize:"0.7rem",p:{marginBottom:"0.5rem"}},itinerary__hr__style:{borderTop:"0.5px solid #ebebeb"},itinerary__sub__items:{display:"flex",".itinerary__sub__item":{flex:"1 0 33.3%",maxWidth:"33.3%",paddingLeft:"0.2rem",paddingRight:"0.2rem","&.selected":{pointerEvents:"none",".itinerary__sub__item__inner__inner":{color:"black"}}},".itinerary__sub__item__inner":{background:"#f0582B",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",".itinerary__sub__item__inner__inner":{lineHeight:"1.1",padding:"0.3rem 0.2rem",textAlign:"center",color:"white",fontWeight:"600",fontSize:"0.8rem"}}},itinerary__view__item__detail:{position:"relative"},itinerary__day__container:{marginTop:"1rem"},itinerary__day__item__title:{borderTop:"1px solid black",borderBottom:"1px solid black",padding:"0.3rem 0.1rem",color:"#f0582B",fontWeight:600,position:"relative",cursor:"pointer",".itinerary__day__item__title__svg":{position:"absolute",top:"50%",right:"10px",transform:"translateY(-50%)"}},itinerary__item__view:{position:"relative",marginTop:"0.3rem",marginBottom:"0.3rem",paddingBottom:"0.5rem","&::before":{position:"absolute",content:"''",bottom:"5px",top:"12px",left:"12px",borderRight:"1px solid #f0582B"},"&::after":{position:"absolute",content:"''",bottom:"0px",left:"8px",borderRight:"4.5px solid transparent",borderLeft:"4.5px solid transparent",borderTop:"9px solid #f0582B"},"&:last-child, &.one__day__trip":{"&::after":{position:"absolute",content:"''",bottom:"0px",left:"8px",borderRight:"4.5px solid #f0582B",borderLeft:"4.5px solid #f0582B",borderTop:"9px solid #f0582B"}},"&.end__destination":{"&::after, &::before":{display:"none"}}},itinerary__item__view__wrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap","&:hover":{"&:not(.lo_dd)":{".itinerary__item__view__detail__title":{color:"#ea4335"}}},"&.lo_dd":{cursor:"pointer"}},itinerary__item__view__index:wt({flexBasis:["25px","20px",null,"25px"],maxWidth:["25px","20px",null,"25px"]}),itinerary__item__view__detail:{flex:"1 0 0%",paddingLeft:"10px",maxWidth:"90%",fontSize:"0.7rem",".itinerary__item__view__detail__title":wt({color:L.orangeColor,fontWeight:700,marginTop:"0.3rem",marginBottom:"0.5rem",fontSize:["18px",null,"20px"],paddingLeft:["unset","unset","unset",null,null,"unset"],".itinerary__item__view__detail__inner__title":{display:"inline-block"}})},itinerary__item__view__detail__small:{flex:"1 0 0%",maxWidth:"90%",fontSize:"0.7rem",paddingLeft:"10px",cursor:"pointer",".itinerary__item__view__detail__title":wt({color:L.orangeColor,fontWeight:700,marginTop:"0.3rem",marginBottom:"0.5rem",fontSize:["15px",null,"17px"]})},itinerary__item__view__detail__des:{p:{marginBottom:"0.5rem"}},itinerary__view__index__item:wt({position:"relative",height:["25px","20px",null,"25px"],width:["25px","20px",null,"25px"],backgroundColor:L.orangeColor,borderRadius:"50%",marginTop:"4px",".itinerary__view__index__item__inner":{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"white",lineHeight:"1"}}),itinerary__view__index__item__small:{position:"relative",".itinerary__view__index__item__inner__small":{position:"absolute",top:"12px",left:"8px",height:"9px",width:"9px",backgroundColor:L.orangeColor,borderRadius:"50%"}}},Gi=n(258),Ki={atdw__popup__page__back__to__menu:wt({fontWeight:"400",display:["block",null,"none"],position:"sticky",top:"0",backgroundColor:"white",zIndex:3,paddingLeft:"1rem",paddingRight:"1rem",paddingBottom:"0px",paddingTop:"0.7rem",width:"100%",borderBottom:"1px solid",svg:{width:"20px",height:"20px"},span:{display:"inline-block",marginLeft:"0.5rem",verticalAlign:"middle"}}),atdw__popup__page:wt({padding:"1rem"}),bannerSection:wt({marginTop:["2rem",null,"0px"]}
1),bannerConatiner:wt({margin:"auto",maxWidth:"960px",paddingRight:"0px",paddingLeft:"0px"}),bannerItem:wt({img:wt({width:"100%"})}),backgroundBannerItem:wt({paddingTop:"56.25%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"}),barBtnContainer:wt({display:"flex",marginLeft:"0rem",marginRight:"0rem",marginTop:"0.3rem",flexWrap:"wrap",justifyContent:["unset",null,"unset"],a:{lineHeight:"0"}}),barBtn:wt({padding:["0.3rem 10px",null,"0.3rem 10px"],paddingTop:["7px !important",null,"9px !important"],lineHeight:"10px",borderRadius:"13px",color:L.orangeColor,backgroundColor:L.sandCtoneColor,marginLeft:"0.3rem",marginRight:"0.3rem",fontSize:"0.7rem",marginTop:"0.2rem",marginBottom:"0.2rem",width:["unset","unset"],"&:first-of-type":{marginLeft:"0rem"}}),atdw__popup__page__container:{},productName:wt({color:L.orangeColor,lineHeight:"1.1",fontSize:"1rem",marginBottom:"0rem",marginTop:"1rem"}),productDes:wt({"&.des__0":{fontWeight:600},fontSize:"0.8rem",marginBottom:"0",marginTop:"0.5rem"}),productRate:{fontWeight:600,marginTop:"1.5rem"},expendablePanel:{marginTop:"1rem",fontSize:"0.8rem","&.open":{".exPanelTitle svg":{transform:"translateY(-50%) rotate(180deg)"},".expendablePanelContent":{opacity:"1",height:"auto"}}},expendablePanelTitle:{borderBottom:"1px solid ".concat(L.orangeColor),cursor:"pointer",position:"relative",svg:{position:"absolute",right:"0px",top:"50%",transform:"translateY(-50%)",transition:"all 0.2s ease-in-out"}},expendablePanelContent:{transition:"opacity 1s ease-out !important",opacity:"0",height:"0",overflow:"hidden"},expanleTitle:{fontWeight:600},content:{fontSize:"0.8rem"}};function Ji(e){var t=e.atdwPopupId,n=(e.closeSetMenuOpen,Object(v.useState)(null)),a=Object(C.a)(n,2),r=a[0],o=a[1],i=Object(v.useState)(!1),l=Object(C.a)(i,2),c=l[0],s=l[1];return Object(v.useEffect)((function(){o(null),s(!1);var e=new AbortController,n=e.signal;return function(){var e=Object(V.a)(z.a.mark((function e(){var a,r,i,l,c,s,u,d,m,p,b,f,g,h,v,y,_,O,w,j,T;return z.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(N.apiBase+"/api/atdw/getproductbyid/"+t,{signal:n});case 2:return a=e.sent,e.next=5,a.json();case 5:if(r=e.sent,!0!==(i=r.results.IsAtdwProduct)){e.next=46;break}if(!(r&&r.results&&r.results.product)){e.next=43;break}for(l=r.results.product,c=[],s=[],u=[],d={lat:0,lng:0},m="",p="",b="",f=[],h=0;h<l.multimedia.length;h++)"IMAGE"===l.multimedia[h].attributeIdMultimediaContent&&"16X9"===l.multimedia[h].attributeIdSizeOrientation&&parseInt(l.multimedia[h].width)>=800?(g||(g=l.multimedia[h].multimediaId),g===l.multimedia[h].multimediaId?f.push(l.multimedia[h]):(c.push(f),(f=[]).push(l.multimedia[h]),g=l.multimedia[h].multimediaId)):"VIDEO"===l.multimedia[h].attributeIdMultimediaContent&&s.push(l.multimedia[h]),h===l.multimedia.length-1&&f.length>0&&c.push(f);e.t0=z.a.keys(l.addresses);case 20:if((e.t1=e.t0()).done){e.next=28;break}if(v=e.t1.value,"PHYSICAL"!==l.addresses[v].attributeIdAddress){e.next=26;break}return d.lat=Number(l.addresses[v].geocodeGdaLatitude),d.lng=Number(l.addresses[v].geocodeGdaLongitude),e.abrupt("break",28);case 26:e.next=20;break;case 28:if(l.communication.forEach((function(e){"Primary Phone"===e.attributeIdCommunicationDescription?m=e.communicationDetail:"URL Enquiries"===e.attributeIdCommunicationDescription?p=e.communicationDetail:"Booking URL"===e.attributeIdCommunicationDescription&&(b=e.communicationDetail)})),!(l.externalSystems.length>0)){e.next=39;break}e.t2=z.a.keys(l.externalSystems);case 31:if((e.t3=e.t2()).done){e.next=39;break}if(y=e.t3.value,"TXA_DEFAULT"!==l.externalSystems[y].externalSystemCode){e.next=37;break}return _=l.externalSystems[y].externalSystemText,b="https://book.txa.com.au/v4/Pages/Availability.aspx?exl_dn=Destination_Riverland_web&exl_psn=".concat(_,"&exl_ad=2&exl_ch=0&exl_dte="),e.abrupt("break",39);case 37:e.next=31;break;case 39:l.attributes.forEach((function(e){"ENTITY FAC"===e.attributeTypeId&&u.push(e)})),o({multimedia:c,product:l,features:u,geoCode:d,searchTextTitle:"SEARCH "+l.productCategoryDescription,primaryPhone:m,siteUrl:p,bookingUrl:b,isAtdwProduct:i,atdwType:l.productCategoryId}),e.next=44;break;case 43:o({error:"No product"});case 44:e.next=47;break;case 46:r&&r.results&&r.results.product&&(O=r.results.product,w=O.communication.find((function(e){return"Primary Phone"===e.attributeIdCommunicationDescription}
1)),j=O.communication.find((function(e){return"URL Enquiries"===e.attributeIdCommunicationDescription})),T=O.communication.find((function(e){return"Booking URL"===e.attributeIdCommunicationDescription})),o({multimedia:O.atdwImages,isAtdwProduct:i,product:O,features:O.features,geoCode:{lat:Number(O.extraGeoCodeLat),lng:Number(O.extraGeoCodeLng)},atdwType:O.productType,primaryPhone:w&&w.communicationDetail,siteUrl:j&&j.communicationDetail,bookingUrl:T&&T.communicationDetail}));case 47:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),function(){e.abort()}}),[t]),r?r.error?Object(P.b)("div",{className:"atdw__popup__page",css:Ki.atdw__popup__page},r.error):Object(P.b)(v.Fragment,null,Object(P.b)("div",{className:"atdw__popup__page",css:Ki.atdw__popup__page},Object(P.b)(tl,{multimedia:r.multimedia,primaryPhone:r.primaryPhone,siteUrl:r.siteUrl,bookingUrl:r.bookingUrl,isAtdwProduct:r.isAtdwProduct,setOpenMap:s}),Object(P.b)("div",{className:"htmlPanel atdw__popup__page__container",css:Ki.atdw__popup__page__container},Object(P.b)(el,{product:r.product,isAtdwProduct:r.isAtdwProduct}),Object(P.b)($i,{communication:r.product.communication,isAtdwProduct:r.isAtdwProduct}),r.features&&r.features.length>0&&Object(P.b)(Xi,{features:r.features}),r.product.eventFrequency&&r.product.eventFrequency.length>0&&Object(P.b)(Zi,{dates:r.product.eventFrequency,isAtdwProduct:r.isAtdwProduct}),Object(P.b)("div",{id:"atdwPageLocation"},Object(P.b)(Qi,{geoCode:r.geoCode,productName:r.product.productName,openMap:c,setOpenMap:s}))))):Object(P.b)(U,null)}function Qi(e){var t=e.geoCode,n=e.productName,a=e.openMap,r=e.setOpenMap,o=Object(v.useRef)(null);return Object(v.useEffect)((function(){var e,a;e=new window.google.maps.Map(o.current,{center:{lat:t.lat,lng:t.lng},zoom:15}),a=new window.google.maps.Marker({position:{lat:t.lat,lng:t.lng},map:e,title:n}),console.log(a)}),[]),Object(P.b)("section",null,Object(P.b)("div",{css:Ki.expendablePanel,className:a?"open":"close"},Object(P.b)("div",{css:Ki.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){setTimeout((function(){document.getElementById("atdwPageLocation").scrollIntoView({behavior:"smooth",block:"center"})}),800),r(!a)}},Object(P.b)("span",{css:Ki.expanleTitle}," LOCATION "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ki.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{style:{height:"450px"}},Object(P.b)("div",{ref:o,style:{height:"100%"}})))))}function Zi(e){var t=e.dates,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1],l=new Date;return Object(P.b)("section",null,Object(P.b)("div",{css:Ki.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Ki.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Ki.expanleTitle}," DATES & TIME "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ki.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{className:"row"},t.map((function(e,t){var a=new Date(e.frequencyStartDate),r="",o=n?e.frequencyStartTime:"";switch(console.log("pDate.getMonth",a.getMonth()),a.getMonth()){case 0:r="January";break;case 1:r="February";break;case 2:r="March";break;case 3:r="April";break;case 4:r="May";break;case 5:r="June";break;case 6:r="July";break;case 7:r="August";break;case 8:r="September";break;case 9:r="October";break;case 10:r="November";break;case 11:r="December";break;default:r=""}if(o&&""!==o){var i=e.frequencyStartTime.split(":");o=parseInt(i[0])>12?i[0]-12+":"+i[1]+" pm":i[0]+":"+i[1]+" am"}var c=a.getDate()+"th "+r+" "+a.getFullYear()+(o&&""!==o?" "+o:"");return a>=l?Object(P.b)("div",{className:"col-6 col-sm-4",key:t,style:{fontFamily:"sans-serif"}},c):null}))))))}function Xi(e){var t=e.features,n=Object(v.useState)(!1),a=Object(C.a)(n,2),r=a[0],o=a[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Ki.expendablePanel,className:r?"open":"close"},Object(P.b)("div",{css:Ki.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){o(!r)}},Object(P.b)("span",{css:Ki.expanleTitle}," FEATURES "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ki.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),Object(P.b)("div",{className:"row"},t.map((function(e,t){return Object(P.b)("div",{className:"col-12 col-sm-4",key:t},Object(P.b)(hn.d,{style:{height:"0.2em",width:"0.2em",verticalAlign:"middle"}}),Object(P.b)("span",{css:Ki.content}
1," ",e.attributeIdDescription," "))}))))))}function $i(e){var t=e.communication,n=e.isAtdwProduct,a=Object(v.useState)(!1),r=Object(C.a)(a,2),o=r[0],i=r[1];return Object(P.b)("section",null,Object(P.b)("div",{css:Ki.expendablePanel,className:o?"open":"close"},Object(P.b)("div",{css:Ki.expendablePanelTitle,className:"exPanelTitle",onClick:function(e){i(!o)}},Object(P.b)("span",{css:Ki.expanleTitle}," CONTACT DETAILS "),Object(P.b)(Zn.a,null)),Object(P.b)("div",{css:Ki.expendablePanelContent,className:"expendablePanelContent"},Object(P.b)("div",{style:{marginTop:"0.5rem"}}),t.map((function(e,t){if(!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("email")||!1===n&&"email"===e.type)return Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:"mailto:"+e.communicationDetail,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail));if(!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("phone")||!1===n&&"tel"===e.type){var a=e.communicationDetail;if(e.communicationDetail&&""!==e.communicationDetail){var r=(e.communicationAreaCode?e.communicationAreaCode:"")+e.communicationDetail.replace(/\s/g,"");a="+"+e.communicationIsdCode+r.slice(1)}return Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:"tel:"+a,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail))}return!0===n&&e.attributeIdCommunicationDescription.toLowerCase().includes("url")||!1===n&&"url"===e.type?Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("a",{href:e.communicationDetail.includes("http")?e.communicationDetail:"https://"+e.communicationDetail,target:"_blank",rel:"noopener noreferrer"}," ",e.communicationDetail)):Object(P.b)("div",{key:t},Object(P.b)("span",null," ",e.attributeIdCommunicationDescription+" : "," "),Object(P.b)("span",null," ",e.communicationDetail," "))})))))}function el(e){var t=e.product,n=e.isAtdwProduct;return Object(P.b)("section",null,Object(P.b)("h1",{css:Ki.productName},t.productName.toUpperCase()),Object(P.b)((function(){return n?t.productDescription.split("\n").map((function(e,t){return Object(P.b)("p",{css:Ki.productDes,key:t,className:"".concat("des__"+t)},e)})):Object(P.b)("div",{css:Ki.productDes,dangerouslySetInnerHTML:{__html:t.extraDescription||t.shortDesc&&t.shortDesc}})}),null),t.rateFrom&&""!==t.rateFrom&&t.rateTo&&""!==t.rateTo&&Object(P.b)("div",{css:Ki.productRate},"Rate : ","$"+t.rateFrom," ~ ","$"+t.rateTo))}function tl(e){var t=e.multimedia,n=e.primaryPhone,a=e.siteUrl,r=e.bookingUrl,o=e.setOpenMap,i=e.isAtdwProduct,l=t.length>0?t:[{imageUrl:"/sites/dr5/media/banners/natural-indulgence/255254.jpg"}];return Object(P.b)("section",{style:{overflow:"hidden"},css:Ki.bannerSection},Object(P.b)("div",{className:"container",css:Ki.bannerConatiner},Object(P.b)(Un.a,{dots:!1,infinite:!0,speed:1500,autoplaySpeed:3e3,fade:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1},l.map((function(e,t){return Object(P.b)("div",{key:t,css:Ki.bannerItem},!0===i?Object(P.b)("picture",null,e.map((function(e,t){return Object(P.b)("source",{key:t,crossOrigin:"anonymous",srcSet:e.serverPath,media:e.width<=800?"(min-width:600px)":null})})),Object(P.b)("img",{src:"/assets/logos/logo.png",alt:"image2"})):Object(P.b)("div",{style:{backgroundImage:Pt.css.bgUrlStyle("https://www.visitriverland.com.au"+e.imageUrl)},css:Ki.backgroundBannerItem}))}))),Object(P.b)("div",{css:Ki.barBtnContainer},n&&""!==n&&Object(P.b)("a",{href:"tel:"+n},Object(P.b)("button",{css:Ki.barBtn,className:"btn btn-primary",type:"button"},"CONTACT")),Object(P.b)("button",{css:Ki.barBtn,className:"btn btn-primary",type:"button",onClick:function(){setTimeout((function(){document.getElementById("atdwPageLocation").scrollIntoView({behavior:"smooth",block:"center"})}),800),o(!0)}},"LOCATION"),a&&""!==a&&Object(P.b)("a",{href:a.includes("http")?a:"https://"+a,target:"_blank",rel:"noopener noreferrer"},Object(P.b)("button",{css:Ki.barBtn,className:"btn btn-primary",type:"button"}," WEBSITE ")),r&&""!==r&&Object(P.b)("a",{href:r.includes("http")?r:"https://"+r,target:"_blank",rel:"noopener noreferrer"},Object(P.b)("button",{css:Ki.barBtn,className:"btn btn-primary",type:"button"}," BOOKINGS ")))))}
1function nl(){var e=rn().query.slug,t=Object(v.useState)(),n=Object(C.a)(t,2),a=n[0],r=n[1],o=Object(v.useState)(!1),i=Object(C.a)(o,2),l=i[0],c=i[1];return Object(v.useEffect)((function(){var t=new AbortController,n=t.signal;return function(){var t=Object(V.a)(z.a.mark((function t(){var a,o;return z.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(N.apiBase+"/api/itinerary/getitinerary/"+e,{signal:n});case 2:return a=t.sent,t.next=5,a.json();case 5:o=t.sent,console.log("data ----\x3e",o),o.statusCode&&500===o.statusCode?c(!0):r(o);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()(),function(){t.abort()}}),[]),a||!1!==l?l?Object(P.b)(T,null):Object(P.b)(v.Fragment,null,Object(P.b)(al,{itineraryData:a}),Object(P.b)("div",{style:{display:"none"}},Object(P.b)(Pi,null))):Object(P.b)(U,null)}function al(e){var t=e.itineraryData,n=Object(v.useRef)(null),a=Object(v.useRef)(null),r=Object(v.useState)(!1),o=Object(C.a)(r,2),i=o[0],l=o[1],c=Object(v.useState)(!1),s=Object(C.a)(c,2),u=s[0],d=s[1],m=Object(v.useState)(),p=Object(C.a)(m,2),b=p[0],f=p[1],g=Object(v.useState)(),h=Object(C.a)(g,2),y=h[0],_=h[1],O=Object(v.useState)(),w=Object(C.a)(O,2),j=w[0],T=w[1],E=Object(v.useState)(t.subItems[0]),x=Object(C.a)(E,2),N=x[0],k=x[1],S=Object(v.useState)(),I=Object(C.a)(S,2),A=I[0],D=I[1],R=Object(v.useState)(),L=Object(C.a)(R,2),M=L[0],B=L[1],H=Object(v.useState)(null),U=Object(C.a)(H,2),F=U[0],W=U[1],z=Object(v.useState)(null),V=Object(C.a)(z,2),q=V[0],Y=V[1];function G(e){for(var t=0;t<e.length;t++)e[t].setMap(null)}function K(){l(!1)}return Object(v.useEffect)((function(){var e=!0,t=document.createElement("script");function r(){if(kt())T({type:"mobile"});else{var e=new window.google.maps.Map(n.current,{center:{lat:-34.17547561936846,lng:140.02757156230592},zoom:9,mapId:"2328f65e96956828"}),t=new window.google.maps.DirectionsService,a=new window.google.maps.DirectionsRenderer({polylineOptions:{strokeColor:"#e27443",strokeOpacity:.7,strokeWeight:6},suppressMarkers:!0});a.setMap(e),B({directionsService:t,directionsRenderer:a}),T(e)}}void 0===window.google?e=!1:void 0===window.google.maps&&(e=!0),e?r():(t.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqjATWMNIpPT5GIDudcLTY6_2ijO8d-fQ",t.async=!0,document.body.appendChild(t),setTimeout((function(){r()}),500));var o=function(){var e=window.innerWidth>=992?220:100;a.current.style.height=window.innerHeight-e+"px"};return o(),window.addEventListener("resize",o),function(){e||document.body.removeChild(t),"undefined"!==typeof window&&window.removeEventListener("resize",o)}}),[N]),Object(v.useEffect)((function(){if(A&&null!==A){if(y&&y.length>0)for(var e=0;e<y.length;e++)y[e].setMap(null);b&&b.length>0&&G(b);var t=A.locationItems,n=[];if(!kt()){t.forEach((function(e){e.detailItems.forEach((function(e){var t={lat:Number(e.lat),lng:Number(e.lng)},a=new window.google.maps.Marker({position:{lat:t.lat,lng:t.lng},map:j,title:e.title,id:e.detailItemId,zIndex:100}),r=new window.google.maps.InfoWindow({content:'<div class="info__window"><div class="info__title">'+e.detailItemTitle+'</div><div class="info__img"><img src="'+e.thumbnail+'" alt="img" width="100%" ></div></div>'});r.addListener("closeclick",(function(){G(n)})),a.addListener("mouseover",(function(){r.open(j,a)})),a.addListener("mouseout",(function(){r.close()})),n.push(a)}))})),G(n);var a=new window.google.maps.Geocoder;t&&t.length>0&&(setTimeout((function(){!function(e,t,n,a){console.log("locationItems",n);var r=[];console.log("locationItems[0]",n[0]);var o=n[0].lat&&n[0].lng?{lat:Number(n[0].lat),lng:Number(n[0].lng)}:n[0].location,i=n[0].endDestination&&""!==n[0].endDestination?n[0].endDestination:n[n.length-1].lat&&n[n.length-1].lng?{lat:Number(n[n.length-1].lat),lng:Number(n[n.length-1].lng)}
1:n[n.length-1].location,l=n.slice(1,-1),c=[];l.forEach((function(e){e.lat&&e.lng?c.push({location:{lat:Number(e.lat),lng:Number(e.lng)},stopover:!0}):e.location&&c.push({location:e.location,stopover:!0})})),e.route({origin:o,destination:i,optimizeWaypoints:!1,waypoints:c,travelMode:"DRIVING"}).then((function(e){t.setDirections(e);for(var n,o=1,i=function(t){var i=e.routes[0].legs[t],l=o,c=new window.google.maps.Marker({position:i.start_location,map:a,icon:"/assets/pin/"+l+".svg?v=3",title:o,id:l});c.addListener("mouseover",(function(){c.setIcon("/assets/pin/"+l+".svg?v=3")})),c.addListener("mouseout",(function(){c.setIcon("/assets/pin/"+l+".svg?v=3")})),n=i,r.push(c),o++},l=0;l<e.routes[0].legs.length;l++)i(l);var c=new window.google.maps.Marker({position:n.end_location,map:a,icon:"/assets/pin/"+o+".svg?v=3",title:o,id:o});c.addListener("mouseover",(function(){c.setIcon("/assets/pin/"+o+".svg?v=3")})),c.addListener("mouseout",(function(){c.setIcon("/assets/pin/"+o+".svg?v=3")})),r.push(c),_(r)})).catch((function(e){return window.alert("Directions request failed due to")}))}(M.directionsService,M.directionsRenderer,t,j)}),100),setTimeout((function(){var e={lat:parseFloat("-34.5406258"),lng:parseFloat("138.7928901")};a.geocode({location:e}).then((function(e){e.results[0]?console.log("response.results[0].formatted_address",e.results[0].formatted_address):window.alert("No results found")})).catch((function(e){return window.alert("Geocoder failed due to: "+e)}))}),100)),f(n)}}}),[A]),Object(P.b)(v.Fragment,null,i&&Object(P.b)("div",{className:"atdw__popup__page__back__to__menu",css:Yi.atdw__popup__page__back__to__menu,onClick:K},Object(P.b)(Gi.a,null),Object(P.b)("span",null,"Back to menu")),Ob
1ject(P.b)("div",{ref:a,className:"itinerary__layout ".concat(i?"open":"close"),css:Yi.itinerary__layout},Object(P.b)("div",{className:"itinerary__side__panel ".concat(i?"open":"close"),css:Yi.itinerary__side__panel},Object(P.b)(rl,{itineraryData:t,openMarkerItem:function(e){for(var t in G(b),b)if(b[t].id===e.detailItemId){b[t].setMap(j),window.google.maps.event.trigger(b[t],"mouseover");break}},closeMarkerItem:function(e){if(G(b),null!==q)for(var t in b)if(b[t].id===q){b[t].setMap(j),window.google.maps.event.trigger(b[t],"mouseover");break}},openMarkerItemD:function(e){for(var t in y)if(y[t].id===e+1){window.google.maps.event.trigger(y[t],"mouseover");break}},closeMarkerItemD:function(e){for(var t in y)if(y[t].id===e+1){window.google.maps.event.trigger(y[t],"mouseout");break}},currentSubItem:N,setCurrentSubItem:k,currentDayItem:A,setCurrentDayItem:D,updateCurrentSubItem:function(e){W(null),k(e)},updateCurrentDayItem:function(e){null===e?d(!1):(A&&e.dayItemId===A.dayItemId&&u?d(!1):d(!0),A&&A.dayItemId!==e.dayItemId&&W(null)),D(e),kt()},checkCurrentDayItemOpen:u,setupAtdwPopupData:function(e){if(kt())W(e.atdwProductId),l(!0);else if(F===e.atdwProductId)W(null),Y(null);else for(var t in W(e.atdwProductId),Y(e.detailItemId),G(b),b)if(b[t].id===e.detailItemId){b[t].setMap(j),window.google.maps.event.trigger(b[t],"mouseover");break}}})),!kt()&&F&&""!==F&&Object(P.b)("div",{className:"itinerary__side__panel ".concat(i?"open":"close"),css:Yi.itinerary__side__panel},Object(P.b)(Ji,{atdwPopupId:F})),kt()&&Object(P.b)("div",{className:"itinerary__side__panel atdw__popup__page__container ".concat(i?"open":"close"),css:Yi.itinerary__side__panel},F&&""!==F&&Object(P.b)(Ji,{atdwPopupId:F,closeSetMenuOpen:K})),Object(P.b)("div",{className:"itinerary__main__panel ".concat(F&&""!==F?"atdw__popup__open":"atdw__popup__open__close"),css:Yi.itinerary__main__panel},Object(P.b)("div",{ref:n,style:{height:"100%"}}))),Object(P.b)("div",{className:"itinerary__dumy__background",css:Yi.itinerary__dumy__background}),Object(P.b)("div",{className:"itinerary__dumy__text ".concat(j&&j.type&&"mobile"===j.type?"map__off":"map__on"),css:Yi.itinerary__dumy__text},Object(P.b)("button",{className:"btn btn-primary",type:"button",onClick:function(){window.location.reload()}}," ","Please refresh page"," ")))}function rl(e){var t=e.itineraryData,n=e.openMarkerItem,a=e.closeMarkerItem,r=e.currentSubItem,o=e.setupAtdwPopupData,i=e.currentDayItem,l=e.updateCurrentSubItem,c=e.updateCurrentDayItem,s=e.checkCurrentDayItemOpen,u=e.openMarkerItemD,d=e.closeMarkerItemD,m=t.mainItemTitle,p=t.mainItemDes,b=t.subItems;return Object(P.b)("div",{id:"itinerary__view__item__container",className:"itinerary__view__item__container",css:Yi.itinerary__view__item__container},Object(P.b)("div",{className:"itinerary__view__item__title",css:Yi.itinerary__view__item__title},m),Object(P.b)("div",{style:{marginTop:"1rem",marginBottom:"1rem"}},Object(P.b)("img",{src:"/assets/logos/riverland-logo-trip-planner-padded.png",width:"100%",alt:"img",style:{maxWidth:"400px",margin:"auto",display:"block"}})),Object(P.b)("div",{className:"itinerary__view__item__des",css:Yi.itinerary__view__item__des,dangerouslySetInnerHTML:{__html:p}}),Object(P.b)("hr",{className:"hr__style",css:Yi.itinerary__hr__style}),Object(P.b)("div",{className:"itinerary__sub__items",css:Yi.itinerary__sub__items},b.map((function(e,t){return Object(P.b)("div",{className:"itinerary__sub__item ".concat(r.subItemId===e.subItemId?"selected":"unselected"),key:t},Object(P.b)("div",{className:"itinerary__sub__item__inner",onClick:function(){l(b[t]),c(null)}},Object(P.b)("div",{className:"itinerary__sub__item__inner__inner"},e.subItemTitle)))}))),Object(P.b)(ol,{dayItems:r.dayItems,updateCurrentDayItem:c,currentDayItem:i,openMarkerItem:n,closeMarkerItem:a,checkCurrentDayItemOpen:s,openMarkerItemD:u,closeMarkerItemD:d,setupAtdwPopupData:o}))}function ol(e){var t=e.dayItems,n=e.updateCurrentDayItem,a=e.currentDayItem,r=e.openMarkerItem,o=e.closeMarkerItem,i=e.openMarkerItemD,l=e.checkCurrentDayItemOpen,c=e.closeMarkerItemD,s=e.setupAtdwPopupData;return Object(P.b)("div",{className:"itinerary__day__container",css:Yi.itinerary__day__container},t&&t.length>0?Object(P.b)("div",null,t.map((function(e,t){return Object(P.b)("div",{key:t},Object(P.b)("div",{className:"itinerary__day__item__title",css:Yi.itinerary__day__item__title,onClick:function(){n(e)}},e.dayItemCustomTitle&&""!==e.dayItemCustomTitle?e.dayItemCustomTitle:e.dayItemTitle.replace(" Days","").replace(" Day","")+" Stop",Object(P.b)("div",{className:"itinerary__day__item__title__svg"}," ",Object(P.b)(Zn.a,null)," ")),a&&a.dayItemId===e.dayItemId&&l&&Object(P.b)(v.Fragment,null,Object(P.b)(il,{dayItemDes:e.dayItemDes}),Object(P.b)(ll,{locationItems:e.locationItems,openMarkerItem:r,closeMarkerItem:o,openMarkerItemD:i,closeMarkerItemD:c,setupAtdwPopupData:s,dayItemTitle:e.dayItemTitle}
1)))}))):Object(P.b)("div",null," No Iitems "))}function il(e){var t=e.dayItemDes;return Object(P.b)("div",{className:"itinerary__day__item__des",css:Yi.itinerary__day__item__des,dangerouslySetInnerHTML:{__html:t}})}function ll(e){var t=e.locationItems,n=e.openMarkerItem,a=e.closeMarkerItem,r=e.openMarkerItemD,o=e.closeMarkerItemD,i=e.setupAtdwPopupData,l=e.dayItemTitle;function c(e){r(e)}function s(e){o(e)}return Object(P.b)("div",null,t.map((function(e,o){return Object(P.b)("div",{key:o},Object(P.b)("div",{className:"itinerary__item__view ".concat(1===t.length?"one__day__trip":"none__one__day__trip"),css:Yi.itinerary__item__view},Object(P.b)("div",{className:"itinerary__item__view__wrapper lo_dd",css:Yi.itinerary__item__view__wrapper,onMouseEnter:function(){c(o)},onMouseLeave:function(){s(o)}},Object(P.b)("div",{className:"itinerary__item__view__index",css:Yi.itinerary__item__view__index},Object(P.b)("div",{className:"itinerary__view__index__item",css:Yi.itinerary__view__index__item},Object(P.b)("div",{className:"itinerary__view__index__item__inner"},1===t.length?"1":e.seq))),Object(P.b)("div",{className:"itinerary__item__view__detail",css:Yi.itinerary__item__view__detail},Object(P.b)("div",{className:"itinerary__item__view__detail__title"},Object(P.b)("span",{className:"itinerary__item__view__detail__inner__title"},e.destinationTitle&&""!==e.destinationTitle&&e.destinationTitle)),Object(P.b)("div",{className:"itinerary__item__view__detail__des",css:Yi.itinerary__item__view__detail__des,dangerouslySetInnerHTML:{__html:e.description}}))),e.detailItems.map((function(e,t){return Object(P.b)(cl,{key:t,index:t,item:e,openMarkerItem:n,closeMarkerItem:a,openMarkerItemD:r,setupAtdwPopupData:i})}))),("1 Day"===l||"1"===l)&&1===t.length&&e.endDestination&&""!==e.endDestination&&Object(P.b)("div",{className:"itinerary__item__view end__destination",css:Yi.itinerary__item__view},Object(P.b)("div",{className:"itinerary__item__view__wrapper lo_dd",css:Yi.itinerary__item__view__wrapper,onMouseEnter:function(){c(o+1)},onMouseLeave:function(){s(o+1)}},Object(P.b)("div",{className:"itinerary__item__view__index",css:Yi.itinerary__item__view__index},Object(P.b)("div",{className:"itinerary__view__index__item",css:Yi.itinerary__view__index__item},Object(P.b)("div",{className:"itinerary__view__index__item__inner"},"2"))),Object(P.b)("div",{className:"itinerary__item__view__detail",css:Yi.itinerary__item__view__detail},Object(P.b)("div",{className:"itinerary__item__view__detail__title"}," ","End"," "),Object(P.b)("div",{className:"itinerary__item__view__detail__des",css:Yi.itinerary__item__view__detail__des,dangerouslySetInnerHTML:{__html:e.endDescription}})))))})))}function cl(e){var t=e.item,n=e.openMarkerItem,a=e.closeMarkerItem,r=e.setupAtdwPopupData;function o(){r(t)}return Object(P.b)("div",{className:"itinerary__item__view__wrapper",css:Yi.itinerary__item__view__wrapper},Object(P.b)("div",{className:"itinerary__item__view__index",css:Yi.itinerary__item__view__index},Object(P.b)("div",{className:"itinerary__view__index__item__small",css:Yi.itinerary__view__index__item__small},Object(P.b)("div",{className:"itinerary__view__index__item__inner__small"}))),kt()?Object(P.b)("div",{className:"itinerary__item__view__detail__small",css:Yi.itinerary__item__view__detail__small,onClick:o},Object(P.b)("div",{className:"itinerary__item__view__detail__title"}," ",t.detailItemTitle," ")):Object(P.b)("div",{className:"itinerary__item__view__detail__small",css:Yi.itinerary__item__view__detail__small,onMouseEnter:function(){n(t)},onMouseLeave:function(){a(t)},onClick:o},Object(P.b)("div",{className:"itinerary__item__view__detail__title"}," ",t.detailItemTitle," ")))}function sl(e){var t=rn().pathname;return Object(v.useEffect)((function(){Si.a.init({duration:1200})}),[]),y.a.createElement("div",{className:"body-content ".concat("/"===t?"homepage":"subpage"," ").concat("")},y.a.createElement(Ni,null),y.a.createElement(ji,null),y.a.createElement("div",{className:"main-content"},y.a.createElement("div",{className:"app-content"},y.a.createElement(w.d,null,y.a.createElement(w.b,{path:"/ver",children:y.a.createElement(S,null)}),y.a.createElement(w.b,{path:"/cms/page/render/:id",children:y.a.createElement(ci,null)}),y.a.createElement(w.b,{path:"/admin"},y.a.createElement(w.a,{to:"/admin"})),y.a.createElement(w.b,{path:"/atdwproduct/:slug",children:y.a.createElement(Bi,null)}),y.a.createElement(w.b,{path:"/itinerary/:slug",children:y.a.createElement(nl,null)}),y.a.createElement(w.b,{path:"/"},y.a.createElement($o,null))))),y.a.createElement(Ei,null),y.a.createElement(Mt,null),y.a.createElement(xi,null))}var ul=function(){return y.a.createElement(sn,null,y.a.createElement(Bt.b,null,y.a.createElement(j.a,null,y.a.createElement(sl,null))))},dl=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),ml=null;function pl(e,t){navigator.serviceWorker.register(e,{updateViaCache:"none"}).then((function(e){if(console.log("Service Worker registration successful with scope: ",e.scope),ml)try{clearInterval(ml)}catch(a){}ml=setInterval((function(){console.log("Checking SW updates..."),e.update(
1)}),6e5),window.updateSW=function(){return console.log("Checking SW updates... (force)"),e.update()};var n=!1;navigator.serviceWorker.addEventListener("controllerchange",(function(e){console.log("Service Worker controller change",e),n||(n=!0,window.location.reload())})),e.onupdatefound=function(){console.log("registration.onupdatefound",e.installing);var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)})),navigator.serviceWorker.ready.then((function(e){console.log("Service Worker ready")}))}O.a.render(y.a.createElement(ul,null),document.getElementById("root")),function(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("","/service-worker.js");dl?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var a=n.headers.get("content-type");404===n.status||null!=a&&-1===a.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):pl(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA")}))):pl(t,e)}))}}({onUpdate:function(e){console.log("updated",e);e.waiting&&e.waiting.postMessage({type:"SKIP_WAITING"})}})},69:function(e,t){t.settings={breakpointNames:["xs","sm","md","lg","xl","xxl"],numOfTilesPerBreakpoints:[1,2,2,2,3,3],marginLR:[14,20,20,20,20,20],marginTB:[14,20,20,20,20,20],slickSettings:{dots:!1,infinite:!0,speed:500,autoplaySpeed:3e3,autoplay:!0,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1}}]}}}},[[262,1,2]]]);
2//# sourceMappingURL=main.e8f1f8fa.chunk.js.map

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.