PageSourceSearch

https://slickbot.ai/assets/BusinessDetailPage--0J9SGu3.js

js slickbot.ai collected 2026-10-05 14:28:04 UTC 1,557 bytes, 1 lines download raw bytes

1import{d as l,u as f,j as s}from"./vendor-query-DPZO-Gta.js";import{b as p,u as h,h as x,r as n,O as b}from"./vendor-react-BomFe3BT.js";import{u as y,b as c}from"./index-BLzMsaFd.js";import"./vendor-charts-DodUWJ0z.js";function E(){const{id:e}=p(),t=h(),r=x(),a=l(),{isClient:i,businessId:u}=y(),{data:o,isLoading:d,refetch:m}=f({queryKey:["business",e],queryFn:async()=>(await c.get(e)).data,enabled:!!e});return n.useEffect(()=>{e&&e!==u&&c.switchTo(e).then(()=>{a.invalidateQueries({queryKey:["my-membership"]})}).catch(console.error)},[e,u,a]),n.useEffect(()=>{i()&&e&&r.pathname===`/business/${e}`&&t(`/business/${e}/feed`,{replace:!0})},[i,e,t,r.pathname]),n.useEffect(()=>{e&&r.pathname===`/business/${e}`&&t(`/business/${e}/feed`,{replace:!0})},[e,t,r.pathname]),d?s.jsx("div",{className:"flex items-center justify-center py-24",children:s.jsx("div",{className:"w-8 h-8 border-2 border-primary-500 border-t-transparent rounded-full animate-spin"})}):o?s.jsx(b,{context:{business:o,refetchBusiness:m}}):s.jsxs("div",{className:"text-center py-24",children:[s.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-surface-100 rounded-2xl flex items-center justify-center",children:s.jsx("svg",{className:"w-8 h-8 text-muted-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})})}),s.jsx("p",{className:"text-muted-500 font-medium",children:"Business not found"})]})}export{E 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.