1"use strict";(self.webpackChunkpotters_resorts=self.webpackChunkpotters_resorts||[]).push([[1972],{36504:function(e,t,r){var s=r(96540),i=r(69170),n=r(38732),a=r(43048),u=r(77765);t.A=e=>{let{title:t,subtitle:r,titleHeaderTag:c=2,remoteImageData:o,hideWhichLogo:h=!1,overlay:l,full:d,onLoad:p,classes:f,imgStyle:y}=e;const m=()=>{if(r){return{vis:"d-block",align:"text-left"}}return{vis:"d-none",align:"text-center"}},R=()=>s.createElement(`h${c}`,{className:`text ${i.DD} ${f}`,style:{color:"#fff"}},s.createElement(s.Fragment,null,t));return s.createElement("header",{className:i.wx,id:"header"},s.createElement("div",{className:` ${m().align} ${i.Pl}`},s.createElement(n.P.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.75}},l&&s.createElement("div",{className:i.Lw},l),s.createElement(a.A,null,t&&s.createElement(R,null),r&&s.createElement("h2",{style:{color:"#fff"},className:`text ${m().vis} ${i.DD}`},r)))),s.createElement("img",{onLoad:p,style:y,className:d?"mb-0":"heroImage",src:o.src,alt:o.alt,width:"100%"}),!h&&s.createElement("img",{className:i.qS,src:`${u.XF}home/which-logo.png`,alt:"Which Logo"}))}},69170:function(e,t,r){r.d(t,{DD:function(){return c},Lw:function(){return u},Pl:function(){return a},dI:function(){return n},qS:function(){return s},wx:function(){return i}});var s="page-header-image-module--badge--22777",i="page-header-image-module--header--22b24",n="page-header-image-module--headerFull--9fb08",a="page-header-image-module--headline--7bc0d",u="page-header-image-module--overlay--627c7",c="page-header-image-module--title--b6bd0"},90176:function(e,t,r){r.d(t,{I:function(){return C}});var s=r(24880),i=r(26261),n=r(29658),a=r(66500),u=r(79757),c=class extends a.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.bindMethods(),this.setOptions(t)}#e;#r=void 0;#s=void 0;#i=void 0;#n;#a;#t;#u;#c;#o;#h;#l;#d;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),o(this.#r,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#m(),this.#R(),this.#r.removeObserver(this)}setOptions(e,t){const r=this.options,i=this.#r;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.Eh)(this.options.enabled,this.#r))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#r.setOptions(this.options),r._defaulted&&!(0,s.f8)(this.options,r)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});const n=this.hasListeners();n&&l(this.#r,i,this.options,r)&&this.#f(),this.updateResult(t),!n||this.#r===i&&(0,s.Eh)(this.options.enabled,this.#r)===(0,s.Eh)(r.enabled,this.#r)&&(0,s.d2)(this.options.staleTime,this.#r)===(0,s.d2)(r.staleTime,this.#r)||this.#v();const a=this.#b();!n||this.#r===i&&(0,s.Eh)(this.options.enabled,this.#r)===(0,s.Eh)(r.enabled,this.#r)&&a===this.#d||this.#Q(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return function(e,t){if(!(0,s.f8)(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#i=r,this.#a=this.options,this.#n=this.#r.state),r}getCurrentResult(){return this.#i}trackResult(e,t){const r={};return Object.keys(e).forEach((s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),t?.(s),e[s])})})),r}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#r}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#i)))}#f(e){this.#g();let t=this.#r.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.lQ)),t}#v(){this.#m();const e=(0,s.d2)(this.options.staleTime,this.#r);
1if(s.S$||this.#i.isStale||!(0,s.gn)(e))return;const t=(0,s.j3)(this.#i.dataUpdatedAt,e)+1;this.#h=setTimeout((()=>{this.#i.isStale||this.updateResult()}),t)}#b(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#Q(e){this.#R(),this.#d=e,!s.S$&&!1!==(0,s.Eh)(this.options.enabled,this.#r)&&(0,s.gn)(this.#d)&&0!==this.#d&&(this.#l=setInterval((()=>{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#f()}),this.#d))}#y(){this.#v(),this.#Q(this.#b())}#m(){this.#h&&(clearTimeout(this.#h),this.#h=void 0)}#R(){this.#l&&(clearInterval(this.#l),this.#l=void 0)}createResult(e,t){const r=this.#r,i=this.options,n=this.#i,a=this.#n,c=this.#a,h=e!==r?e.state:this.#s,{state:p}=e;let f,y={...p},m=!1;if(t._optimisticResults){const s=this.hasListeners(),n=!s&&o(e,t),a=s&&l(e,r,t,i);(n||a)&&(y={...y,...(0,u.k)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:R,errorUpdatedAt:g,status:v}=y;if(t.select&&void 0!==y.data)if(n&&y.data===a?.data&&t.select===this.#u)f=this.#c;else try{this.#u=t.select,f=t.select(y.data),f=(0,s.pl)(n?.data,f,t),this.#c=f,this.#t=null}catch(S){this.#t=S}else f=y.data;if(void 0!==t.placeholderData&&void 0===f&&"pending"===v){let e;if(n?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=n.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#o?.state.data,this.#o):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#t=null}catch(S){this.#t=S}void 0!==e&&(v="success",f=(0,s.pl)(n?.data,e,t),m=!0)}this.#t&&(R=this.#t,f=this.#c,g=Date.now(),v="error");const b="fetching"===y.fetchStatus,Q="pending"===v,E="error"===v,I=Q&&b,O=void 0!==f;return{status:v,fetchStatus:y.fetchStatus,isPending:Q,isSuccess:"success"===v,isError:E,isInitialLoading:I,isLoading:I,data:f,dataUpdatedAt:y.dataUpdatedAt,error:R,errorUpdatedAt:g,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:b,isRefetching:b&&!Q,isLoadingError:E&&!O,isPaused:"paused"===y.fetchStatus,isPlaceholderData:m,isRefetchError:E&&O,isStale:d(e,t),refetch:this.refetch}}updateResult(e){const t=this.#i,r=this.createResult(this.#r,this.options);if(this.#n=this.#r.state,this.#a=this.options,void 0!==this.#n.data&&(this.#o=this.#r),(0,s.f8)(r,t))return;this.#i=r;const i={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#p.size)return!0;const s=new Set(r??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some((e=>{const r=e;return this.#i[r]!==t[r]&&s.has(r)}))})()&&(i.listeners=!0),this.#E({...i,...e})}#g(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#r)return;const t=this.#r;this.#r=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){i.j.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#i)})),this.#e.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})}))}};function o(e,t){return function(e,t){return!1!==(0,s.Eh)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,r){if(!1!==(0,s.Eh)(t.enabled,e)){const s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&d(e,t)}return!1}function l(e,t,r,i){return(e!==t||!1===(0,s.Eh)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&d(e,r)}function d(e,t){return!1!==(0,s.Eh)(t.enabled,e)&&e.isStaleByTime((0,s.d2)(t.staleTime,e))}var p=r(96540);r(74848);function f(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var y=p.createContext(f()),m=()=>p.useContext(y),R=r(97665),g=p.createContext(!1),v=()=>p.useContext(g);g.Provider;var b=(e,t)=>
1{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Q=e=>{p.useEffect((()=>{e.clearReset()}),[e])},E=({result:e,errorResetBoundary:t,throwOnError:r,query:s})=>{return e.isError&&!t.isReset()&&!e.isFetching&&s&&(i=r,n=[e.error,s],"function"==typeof i?i(...n):!!i);var i,n},I=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},O=(e,t)=>e?.suspense&&t.isPending,S=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function C(e,t){return function(e,t,r){const s=(0,R.jE)(r),n=v(),a=m(),u=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=n?"isRestoring":"optimistic",I(u),b(u,a),Q(a);const[c]=p.useState((()=>new t(s,u))),o=c.getOptimisticResult(u);if(p.useSyncExternalStore(p.useCallback((e=>{const t=n?()=>{}:c.subscribe(i.j.batchCalls(e));return c.updateResult(),t}),[c,n]),(()=>c.getCurrentResult()),(()=>c.getCurrentResult())),p.useEffect((()=>{c.setOptions(u,{listeners:!1})}),[u,c]),O(u,o))throw S(u,c,a);if(E({result:o,errorResetBoundary:a,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash)}))throw o.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(u,o),u.notifyOnChangeProps?o:c.trackResult(o)}(e,c,t)}}}]);
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.