PageSourceSearch

https://trystan.net/assets/usePublicAccount-4Hkf4pUp.js

js trystan.net collected 2026-09-26 06:20:38 UTC 2,445 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3fb85819`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ef7c5d19-3e5b-432c-9e76-6cbfdab255e8`,e._sentryDebugIdIdentifier=`sentry-dbid-ef7c5d19-3e5b-432c-9e76-6cbfdab255e8`)}catch{}})();import{t as e}from"./compiler-runtime-BQBjb8-F.js";import{E as t,S as n,i as r,l as i,w as a}from"./useFetch-BoJLT2pS.js";import{f as o,n as s,r as c,t as l}from"./useQuery-CmicRdJh.js";import{t as u}from"./queryOptions-D4e91ekf.js";function d(e,t){return s({...e,enabled:!0,suspense:!0,throwOnError:c,placeholderData:void 0},o,t)}var f=e(),p=`LOADER_PUBLIC_ACCOUNT must be primed by the route loader (query / setQueryData)`;async function m(e,t){if(!t)throw Error(p);let r=await e(`/api/public-accounts/${t}`);if(r.status!==n.SUCCESS)throw Error(p);return r.data.account}var h=u({queryFn:()=>{throw Error(p)},queryKey:[a.LOADER_PUBLIC_ACCOUNT],staleTime:1/0});function g(){let e=(0,f.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={enabled:!1,queryFn:h.queryFn,queryKey:h.queryKey,staleTime:1/0},e[0]=t):t=e[0];let{data:n}=l(t);return n}function _(){let e=(0,f.c)(3),{get:n}=r(),o=t(),s;e[0]!==n||e[1]!==o?(s={...h,queryFn:async()=>{let e=await m(n,i());return o.setQueryData([a.PUBLIC_ACCOUNT,e.settings?.customUrl],e),o.setQueryData([a.PUBLIC_ACCOUNT,e.id],e),e}},e[0]=n,e[1]=o,e[2]=s):s=e[2];let{data:c}=d(s);return c}function v(e,i){let o=(0,f.c)(13),s=e===void 0?``:e,c;o[0]===i?c=o[1]:(c=i===void 0?{}:i,o[0]=i,o[1]=c);let u=c,{get:d}=r(),p=t(),m;o[2]!==s||o[3]!==d||o[4]!==p?(m=async function(){let e=await d(`/api/public-accounts/${s}`);return e.status===n.SUCCESS?(p.setQueryData([a.PUBLIC_ACCOUNT,e.data.account.settings?.customUrl],e.data.account),p.setQueryData([a.PUBLIC_ACCOUNT,e.data.account.id],e.data.account),e.data.account):null},o[2]=s,o[3]=d,o[4]=p,o[5]=m):m=o[5];let h=m,g=!!s,_;o[6]===s?_=o[7]:(_=[a.PUBLIC_ACCOUNT,s],o[6]=s,o[7]=_);let v;return o[8]!==h||o[9]!==u||o[10]!==g||o[11]!==_?(v={enabled:g,queryFn:h,queryKey:_,...u},o[8]=h,o[9]=u,o[10]=g,o[11]=_,o[12]=v):v=o[12],l(v)}function y(e,t){let n=(0,f.c)(4),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let a=r,o;return n[2]===t?o=n[3]:(o=t||i(),n[2]=t,n[3]=o),v(o,a)}export{d as a,_ as i,v as n,y as r,g as t};
2//# sourceMappingURL=usePublicAccount-4Hkf4pUp.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.