1import{d as g,e as h,r,j as s,O as t,a as x}from"./index.82180562.js";import{d as v}from"./AirbnbApi.1cca6b4b.js";import{u as S}from"./usePersistAirbnb.f97fc198.js";import{s as k}from"./StoreAirbnbGlobalSlice.3bdfa355.js";import"./rtk-query-react.esm.a590bbfc.js";import"./redux-toolkit.esm.9083baea.js";import"./objectSpread2.dcaa9bcb.js";const O=()=>{g();const[o]=S(),i=h(k),n=r.exports.useRef(!1),[a,c]=r.exports.useState(!1),[l,{isUninitialized:f,isLoading:u,isSuccess:m,isError:p,error:y}]=v();r.exports.useEffect(()=>(n.current,!i&&o&&(async()=>{console.log("verifying refresh token");try{await l(),c(!0)}catch(d){console.error(d)}})(),()=>n.current=!0),[]);let e;return o?u?e=s("p",{children:"Loading..."}):p?(localStorage.removeItem("devisn-demo-app-airbnb"),e=x("p",{className:"errmsg mt-8",children:["Session Expired - ",s("a",{className:"text-2xl ",href:"/airbnb-clone/login",children:s("div",{children:"Please login again"})})]})):m&&a?e=s(t,{}):i&&f&&(e=s(t,{})):e=s(t,{}),e};export{O as default};
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.