PageSourceSearch

https://www.anyplace.com/_next/static/chunks/pages/auth/sign-out-c9c54b715be98605.js

js anyplace.com collected 2026-10-02 05:42:42 UTC 11,871 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="57b38e8c-7415-43d0-8c06-25aaba31a199",e._sentryDebugIdIdentifier="sentry-dbid-57b38e8c-7415-43d0-8c06-25aaba31a199")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1305],{20939:(e,t,r)=>{"use strict";r.d(t,{Zr:()=>c,kg:()=>a}),Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let a=(e,t)=>(r,a,s)=>Object.assign({},e,t(r,a,s));var s=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))o.call(t,r)&&u(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&u(e,r,t[r]);return e};let l=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>l(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>l(t)(e)}}},c=(e,t)=>(r,a,s)=>{let n,o,i=d({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>d(d({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let u=!1,c=new Set,h=new Set;try{n=i.getStorage()}catch(e){}if(!n)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...e)},a,s);n.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);let f=l(i.serialize),g=()=>{let e,t=i.partialize(d({},a()));i.whitelist&&Object.keys(t).forEach(e=>{var r;(null==(r=i.whitelist)?void 0:r.includes(e))||delete t[e]}),i.blacklist&&i.blacklist.forEach(e=>delete t[e]);let r=f({state:t,version:i.version}).then(e=>n.setItem(i.name,e)).catch(t=>{e=t});if(e)throw e;return r},w=s.setState;s.setState=(e,t)=>{w(e,t),g()};let p=e((...e)=>{r(...e),g()},a,s),m=()=>{var e;if(!n)return;u=!1,c.forEach(e=>e(a()));let t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,a()))||void 0;return l(n.getItem.bind(n))(i.name).then(e=>{if(e)return i.deserialize(e)}).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return e.state;else{if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(o=i.merge(e,null!=(t=a())?t:p),!0),g()}).then(()=>{null==t||t(o,void 0),u=!0,h.forEach(e=>e(o))}).catch(e=>{null==t||t(void 0,e)})};return s.persist={setOptions:e=>{i=d(d({},i),e),e.getStorage&&(n=e.getStorage())},clearStorage:()=>{var e;null==(e=null==n?void 0:n.removeItem)||e.call(n,i.name)},rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(h.add(e),()=>{h.delete(e)})},m(),o||p}},21490:(e,t,r)=>{"use strict";r.d(t,{LV:()=>s});var a=r(95701);let s=r(25189).A.create({withCredentials:!0,headers:{"X-Token":"a5e0dbc3c39be67fc7f7d38333823f1f5c12e036f8d0b9f1974a0a34a8e3171c38adeb1486ae2a21896fbd9e0c95497a2c50a697b440fcfd95bc503f468fc79c"},baseURL:"/api"});s.interceptors.request.use(e=>{let t=JSON.parse(localStorage.getItem("auth-storage")??"null")?.state?.authHeaders?.authorization;return e.headers={...e.headers,authorization:t},e}),s.interceptors.response.use(a.A,e=>{if(401===e.response.status){let e=new URL(window.location.href);window.location.href=`/auth/sign-out?from=${encodeURIComponent(e.toString())}`}return e}),s.interceptors.request.use(e=>(e.headers={...e.headers,"preferred-currency":"USD"},e))},25434:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(53239);function s(){let e=(0,a.createContext)(void 0);return{Provider:({initialStore:t,createStore:r,children:s})=>{let n=(0,a.useRef)();return n.current||(t&&(console.warn("Provider initialStore is deprecated and will be removed in the next version."),r||(r=()=>t)),n.current=r()),(0,a.createElement)(e.Provider,{value:n.current},s)},useStore:(t,r=Object.is)=>{let s=(0,a.useContext)(e);if(!s)throw Error("Seems like you have not used zustand provider as an ancestor.");return s(t,r)}
1,useStoreApi:()=>{let t=(0,a.useContext)(e);if(!t)throw Error("Seems like you have not used zustand provider as an ancestor.");return(0,a.useMemo)(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe,destroy:t.destroy}),[t])}}}},38288:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/sign-out",function(){return r(59446)}])},59446:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var a=r(53239),s=r(1075),n=r(94542);let o=()=>{let e=(0,s.useRouter)(),t=(0,n.nc)(e=>e.signOut),r=e.query.from?`/auth/sign-in?redirect=${encodeURIComponent(e.query.from)}`:"/";return(0,a.useEffect)(()=>{(async()=>{try{await t()}catch(e){}e.push(r)})()},[t,e,r]),null}},85105:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(53239);let s="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?a.useEffect:a.useLayoutEffect;function n(e){let t="function"==typeof e?function(e){let t,r=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(s!==t){let e=t;t=a?s:Object.assign({},t,s),r.forEach(r=>r(t,e))}},s=()=>t,n={setState:a,getState:s,subscribe:(e,a,n)=>a||n?((e,a=s,n=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let o=a(t);function i(){let r=a(t);if(!n(o,r)){let t=o;e(o=r,t)}}return r.add(i),()=>r.delete(i)})(e,a,n):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(a,s,n),n}(e):e,r=(e=t.getState,r=Object.is)=>{let n,[,o]=(0,a.useReducer)(e=>e+1,0),i=t.getState(),u=(0,a.useRef)(i),d=(0,a.useRef)(e),l=(0,a.useRef)(r),c=(0,a.useRef)(!1),h=(0,a.useRef)();void 0===h.current&&(h.current=e(i));let f=!1;(u.current!==i||d.current!==e||l.current!==r||c.current)&&(n=e(i),f=!r(h.current,n)),s(()=>{f&&(h.current=n),u.current=i,d.current=e,l.current=r,c.current=!1});let g=(0,a.useRef)(i);s(()=>{let e=()=>{try{let e=t.getState(),r=d.current(e);l.current(h.current,r)||(u.current=e,h.current=r,o())}catch(e){c.current=!0,o()}},r=t.subscribe(e);return t.getState()!==g.current&&e(),r},[]);let w=f?n:h.current;return(0,a.useDebugValue)(w),w};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let e=[r,t];return{next(){let t=e.length<=0;return{value:e.shift(),done:t}}}},r}},94542:(e,t,r)=>{"use strict";r.d(t,{Et:()=>l,OJ:()=>u,nc:()=>d});var a=r(20939),s=r(25434),n=r(85105),o=r(21490);let i={authHeaders:void 0,userData:void 0},{Provider:u,useStore:d}=(0,s.A)(),l=()=>(0,n.A)((0,a.Zr)((e,t)=>({...i,signIn:async({email:t,password:r})=>{let a=await o.LV.post("/auth/sign-in",{email:t,password:r},{withCredentials:!1}),s={authorization:a?.headers.authorization};if(globalThis.auth=s,a?.data?.status!=="error")return e({userData:a?.data.data,authHeaders:s}),a?.data;throw Error(`${a?.data?.message}`)},signInApple:async({idToken:t,source_signup:r,source_signup_city:a,tags:s})=>{let n=await o.LV.post("/sign_in_apple",{id_token:t,source_signup:r,source_signup_city:a,tags:s},{withCredentials:!1}),i={authorization:n?.headers.authorization};if(globalThis.auth=i,n?.data?.status==="error")throw Error(`${n?.data?.message}`);if(n?.data?.status!=="merge")return e({userData:n?.data.data,authHeaders:i}),n?.data;throw Error(`${n?.data?.message}`)},mergeGA:async({credential:t})=>{let r=await o.LV.post("/merge_google",{credential:t,clientId:"462859797645-kg6di45n9v2jr1ekt6auk8kflh0nbt60.apps.googleusercontent.com"},{withCredentials:!1}),a={authorization:r?.headers.authorization};if(globalThis.auth=a,r?.data?.status!=="error")return e({userData:r?.data.data,authHeaders:a}),r?.data;throw Error(`${r?.data?.message}`)},signInGA:async({credential:t,source_signup:r,source_signup_city:a,tags:s,referral_code:n})=>{let i=await o.LV.post("/check_google_signin",{...t,clientId:"462859797645-kg6di45n9v2jr1ekt6auk8kflh0nbt60.apps.googleusercontent.com",referral_code:n,source_signup:r,source_signup_city:a,tags:s},{withCredentials:!1}),u={authorization:i?.headers.authorization};if(globalThis.auth=u,i?.data?.status==="error")throw Error(`${i?.data?.message}`);if(i?.data?.status!=="merge")return e({userData:i?.data.data,authHeaders:u}),i?.data;throw Error(`${i?.data?.message}`)},signInFB:async({accessToken:t,source_signup:r,source_signup_city:a,tags:s})=>{let n=await o.LV.post("/check_mobile_login",{accessToken:t,source_signup:r,source_signup_city:a,tags:s},{withCredentials:!1}),i={authorization:n?.headers.authorization};if(globalThis.auth=i,n?.data?.status==="error")throw Error(`${n?.data?.message}`);if(n?.data?.status!=="merge")return e({userData:n?.data.data,authHeaders:i}),n?.data;throw Error(`${n?.data?.message}`)},signOut:async()=>{e({authHeaders:void 0,userData:void 0});let t=await o.LV.get("/auth/sign-out");if(t?.data?.status!=="error")return t?.data;throw Error(`${t?.data?.message}`)},claimMe:async({token:e})=>{let t=await o.LV.get(`/users/claim?token=${e}`);if(t?.data?.status!=="error")return t?.data;throw Error(`${t?.data?.message}`)},claim:async e=>{let t=await o.LV.post("/users/claim",e);if(t?.data?.status!=="error")return t?.data;throw Error(`${t?.data?.message}`)},signUp:async({password:t,firstName:r,lastName:a,email:s,source_signup:n,source_signup_city:i,referral_code:u,tags:d})=>{let l=await o.LV.post("/auth/sign-up",{first_name:r,last_name:a,password_confirmation:t,password:t,email:s,source_signup:n,source_signup_city:i,tags:d||void 0,referral_code:u}),c={authorization:l?.headers.authorization};if(globalThis.auth=c,l?.data?.status!=="error")return e({userData:l?.data.data,authHeaders:c}),l?.data;throw Error(`${l?.data?.message}`)},forgotPassword:async({email:e})=>{let t=await o.LV.post("/auth/forgot-password",{email:e,redirect_url:`https://${window.location.host}/auth/reset-password`});if(t?.data?.status!=="error")return t?.data;throw Error(`${t?.data?.message}`)},resetPassword:async({password:e,passwordConfirmation:t,token:r})=>{let a=await o.LV.put("/auth/password",{password:e,password_confirmation:t,reset_password_token:r});if(a?.data?.status!=="error")return a?.data;throw Error(`${a?.data?.message}`)},validateToken:async()=>{let r=t().authHeaders,a=await o.LV.get("/users/current",{headers:r}),s={authorization:a?.headers.authorization||r.authorization};if(a?.data?.status!=="error")return e({userData:a?.data.data,authHeaders:s}),a?.data;throw Error(`${a?.data?.message}`)},updateUser:async(r={})=>{let a=t().authHeaders,s=await o.LV.put("/auth",r),n={authorization:s?.headers.authorization||a.authorization};if(s?.data?.status!=="error")return e({userData:s?.data.data,authHeaders:n}),s?.data;throw Error(`${s?.data?.message}`)},sendEmailPin:async(e,t=!1)=>{let r=await o.LV.post("/send_email_pin",{unconfirmed_email:e,airtable:t});if(r?.data?.status!=="error")return r?.data;throw Error(`${r?.data?.message}`)},verifyEmailPin:async(e,t=!1)=>{let r=await o.LV.post("/verify_email_pin",{confirmation_pin:e,airtable:t});if(r?.data?.status!=="error")return r?.data;throw Error(`${r?.data?.message}`)},sendPhonePin:async(e,{label:t,id:r,dialCode:a})=>{let s=await o.LV.post("/send_pin",{phone_number:e,country_code:a.slice(1),country_iso_code:r,country:t});if(s?.data?.status!=="error")return s?.data;throw Error(`${s?.data?.message}`)},verifyPhonePin:async e=>{let t=await o.LV.post("/verify_pin",{confirmation_pin:e});if(t?.data?.status!=="error")return t?.data;throw Error(`${t?.data?.message}`)}}),{name:"auth-storage"}))}},e=>{e.O(0,[3257,636,6593,8792],()=>e(e.s=38288)),_N_E=e.O()}]);

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