1"use strict";(self.webpackChunkroominteriorapp=self.webpackChunkroominteriorapp||[]).push([[4916],{18948:(t,e,r)=>{r.d(e,{z:()=>h});var s=r(35007),i=r(66587),n=r(62530),u=r(27542),o=r(3847),a=r(28127),c=r(77849),h=class extends u.l{#t;#e=void 0;#r=void 0;#s=void 0;#i;#n;#u;#o;#a;#c;#h;#l;#d;#p=(()=>new Set)();constructor(t,e){super(),this.options=e,this.#t=t,this.#u=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#e.addObserver(this),l(this.#e,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#v(),this.#e.removeObserver(this)}setOptions(t){const e=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!==typeof this.options.enabled&&"function"!==typeof this.options.enabled&&"boolean"!==typeof(0,i.Wo)(this.options.enabled,this.#e))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#m(),this.#e.setOptions(this.options),e._defaulted&&!(0,i.VS)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&p(this.#e,r,this.options,e)&&this.#f(),this.updateResult(),!s||this.#e===r&&(0,i.Wo)(this.options.enabled,this.#e)===(0,i.Wo)(e.enabled,this.#e)&&(0,i.Wo)(this.options.staleTime,this.#e)===(0,i.Wo)(e.staleTime,this.#e)||this.#Q();const n=this.#b();!s||this.#e===r&&(0,i.Wo)(this.options.enabled,this.#e)===(0,i.Wo)(e.enabled,this.#e)&&n===this.#d||this.#I(n)}getOptimisticResult(t){const e=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(e,t);return(0,i.VS)(this.getCurrentResult(),r)||(this.#s=r,this.#n=this.options,this.#i=this.#e.state),r}getCurrentResult(){return this.#s}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),Reflect.get(t,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#e}refetch(){let{...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t})}fetchOptimistic(t){const e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);let s,i=()=>{};const n=new Promise(t=>{s=t,i=this.#t.getQueryCache().subscribe(s=>{"updated"===s.type&&s.query.queryHash===r.queryHash&&void 0!==r.state.data&&(i(),t(this.createResult(r,e)))})});return Promise.race([r.fetch().then(()=>{const t=this.createResult(r,e);return s?.(t),t}).finally(()=>{i()}),n])}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#f(t){this.#m();let e=this.#e.fetch(this.options,t);return t?.throwOnError||(e=e.catch(i.ZT)),e}#O(t){return!(0,n.s)()&&!1!==(0,i.Wo)(this.options.enabled,this.#e)&&(0,i.PN)(t)}#Q(){this.#R();const t=(0,i.Wo)(this.options.staleTime,this.#e);if(this.#s.isStale||!this.#O(t))return;const e=(0,i.Kp)(this.#s.dataUpdatedAt,t)+1;this.#h=s.mr.setTimeout(()=>{this.#s.isStale||this.updateResult()},e)}#b(){return("function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#I(t){this.#v(),this.#d=t,0!==this.#d&&this.#O(this.#d)&&(this.#l=s.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#f()},this.#d))}#y(){this.#Q(),this.#I(this.#b())}#R(){void 0!==this.#h&&(s.mr.clearTimeout(this.#h),this.#h=void 0)}#v(){void 0!==this.#l&&(s.mr.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){const r=this.#e,s=this.options,n=this.#s,u=this.#i,o=this.#n,a=t!==r?t.state:this.#r,{state:h}=t;let d,y={...h},R=!1;if(e._optimisticResults){const i=this.hasListeners(),n=!i&&l(t,e),u=i&&p(t,r,e,s);(n||u)&&(y={...y,...(0,c.z)(h.data,t.options)}),"isRestoring"===e._optimisticResults&&(y.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:Q}=y;d=y.data;let b=!1;if(void 0!==e.placeholderData&&void 0===d&&"pending"===Q){let t;n?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(t=n.data,b=!0):t="function"===typeof e.placeholderData?e.placeholderData(this.#c?.state.data,this.#c):e.placeholderData,void 0!==t&&(Q="success",d=(0,i.oE)(n?.data,t,e),R=!0)}if(e.select&&void 0!==d&&!b)if(n&&d===u?.data&&e.select===this.#o)d=this.#a;else try{this.#o=e.select,d=e.select(d),d=(0,i.oE)(n?.data,d,e),this.#a=d,this.#u=null}catch(C){this.#u=C}else void 0===d&&(this.#u=null);this.#u&&(v=this.#u,d=this.#a,m=Date.now(),Q="error",R=!1);const I="fetching"===y.fetchStatus,O="pending"===Q,g="error"===Q,S=O&&I,T=void 0!==d;return{status:Q,fetchStatus:y.fetchStatus,isPending:O,isSuccess:"success"===Q,isError:g,isInitialLoading:S,isLoading:S,data:d,dataUpdatedAt:y.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdate
1Count:y.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:y.dataUpdateCount>a.dataUpdateCount||y.errorUpdateCount>a.errorUpdateCount,isFetching:I,isRefetching:I&&!O,isLoadingError:g&&!T,isPaused:"paused"===y.fetchStatus,isPlaceholderData:R,isRefetchError:g&&T,isStale:f(t,e),refetch:this.refetch,isEnabled:!1!==(0,i.Wo)(e.enabled,t)}}updateResult(){const t=this.#s,e=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#n=this.options,void 0!==this.#i.data&&(this.#c=this.#e),(0,i.VS)(e,t))return;this.#s=e;const r=(()=>{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.#s).some(e=>{const r=e;return this.#s[r]!==t[r]&&s.has(r)})})();a.Vr.batch(()=>{r&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}#m(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const e=this.#e;this.#e=t,this.#r=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function l(t,e){return function(t,e){return!1!==(0,i.Wo)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===(0,i.Wo)(e.retryOnMount,t))}(t,e)||void 0!==t.state.data&&d(t,e,e.refetchOnMount)}function d(t,e,r){if(!1!==(0,i.Wo)(e.enabled,t)&&"static"!==(0,i.Wo)(e.staleTime,t)){const s="function"===typeof r?r(t):r;return"always"===s||!1!==s&&f(t,e)}return!1}function p(t,e,r,s){return(t!==e||!1===(0,i.Wo)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&f(t,r)}function f(t,e){return!1!==(0,i.Wo)(e.enabled,t)&&t.isStaleByTime((0,i.Wo)(e.staleTime,t))}},5814:(t,e,r)=>{r.d(e,{r:()=>m});var s=r(67109),i=r(47313);const n=i.createContext(!1),u=()=>i.useContext(n);n.Provider;r(46417);function o(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}const a=i.createContext(o()),c=()=>i.useContext(a);var h=r(66587);const l=(t,e,r)=>{const s=r?.state.error&&"function"===typeof t.throwOnError?(0,h.L3)(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||s)&&(e.isReset()||(t.retryOnMount=!1))},d=t=>{i.useEffect(()=>{t.clearReset()},[t])},p=t=>{let{result:e,errorResetBoundary:r,throwOnError:s,query:i,suspense:n}=t;return e.isError&&!r.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(0,h.L3)(s,[e.error,i]))},f=t=>{if(t.suspense){const e=1e3,r=t=>"static"===t?t:Math.max(t??e,e),s=t.staleTime;t.staleTime="function"===typeof s?function(){return r(s(...arguments))}:r(s),"number"===typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,e))}},y=(t,e)=>t?.suspense&&e.isPending,R=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});var v=r(28127);function m(t,e,r){const n=u(),o=c(),a=(0,s.NL)(r),m=a.defaultQueryOptions(t),Q=a.getQueryCache().get(m.queryHash);const b=!1!==t.subscribed;m._optimisticResults=n?"isRestoring":b?"optimistic":void 0,f(m),l(m,o,Q),d(o);const[I]=i.useState(()=>new e(a,m)),O=I.getOptimisticResult(m),g=!n&&b;if(i.useSyncExternalStore(i.useCallback(t=>{const e=g?I.subscribe(v.Vr.batchCalls(t)):h.ZT;return I.updateResult(),e},[I,g]),()=>I.getCurrentResult(),()=>I.getCurrentResult()),i.useEffect(()=>{I.setOptions(m)},[m,I]),y(m,O))throw R(m,I,o);if(p({result:O,errorResetBoundary:o,throwOnError:m.throwOnError,query:Q,suspense:m.suspense}))throw O.error;return m.notifyOnChangeProps?O:I.trackResult(O)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.