PageSourceSearch

https://plus4.ai/assets/Pricing-8OkvyavA.js

js plus4.ai collected 2026-10-05 15:19:46 UTC 1,687 bytes, 1 lines download raw bytes

1import{r as a,aN as r,j as i,aR as m,c as x,d as u,bj as h,bk as j,bl as y,bm as f,bn as C,b2 as l}from"./index-CuBJvi3o.js";import{C as b}from"./CorpPricingTable-2BeUpw1h.js";import"./table-D7rP_C6j.js";function v(){const[e,n]=a.useState(""),{data:t,isLoading:o}=r({queryKey:["/api/corp/clinics","pricing-picker"],queryFn:async()=>(await l("GET","/api/corp/clinics?from=1970-01-01&to=2999-12-31")).json()}),c=a.useMemo(()=>(t?.clinics??[]).slice().sort((s,g)=>s.name.localeCompare(g.name)),[t]);a.useEffect(()=>{!e&&c.length>0&&n(String(c[0].id))},[c,e]);const{data:d,isLoading:p}=r({queryKey:["/api/corp/clinics",e,"pricing"],enabled:!!e,queryFn:async()=>(await l("GET",`/api/corp/clinics/${e}/pricing`)).json()});return i.jsxs("div",{className:"space-y-6 p-4 md:p-6","data-testid":"corp-pricing",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Pricing"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"What each of your clinics pays. Prices are view-only and managed by the tenant admin."})]}),o?i.jsx(m,{className:"h-10 w-72"}):c.length===0?i.jsx(x,{children:i.jsx(u,{className:"py-10 text-center text-sm text-muted-foreground",children:"No clinics in this account yet."})}):i.jsxs(i.Fragment,{children:[i.jsxs(h,{value:e,onValueChange:n,children:[i.jsx(j,{className:"sm:w-80","data-testid":"corp-pricing-clinic-select",children:i.jsx(y,{placeholder:"Choose a clinic"})}),i.jsx(f,{children:c.map(s=>i.jsx(C,{value:String(s.id),children:s.name},s.id))})]}),i.jsx(b,{pricing:d?.pricing,isLoading:p,testIdPrefix:"corp-pricing",emptyMessage:"No priced products for this clinic yet."})]})]})}export{v 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.