1import{j as e,r as n}from"./vendor.BwbG8Zcq.js";import{N as c,O as l,h as d,e as p}from"./data.BLyhXs-t.js";import{u as a}from"./chrome.B6ris1qF.js";import{P as h}from"./ui.BqlJ4-gB.js";import{a as m}from"./Skeleton.jbQ9_Mz4.js";import{S as b}from"./AffiliateTabs.CzyebVhi.js";import"./ChromeLink.CIaYJ3pw.js";import"./preload-helper.r23mchnI.js";const x=e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),f=[{to:"details",label:"Practice Details",show:t=>t==null?void 0:t.isPracticeOwner,gated:!0},{to:"patients",label:"Manage Patients",show:t=>t==null?void 0:t.isDentistStaff,gated:!0},{to:"team",label:"Team Manager",show:t=>t==null?void 0:t.isPracticeOwner,gated:!0},{to:"reports",label:"Reports",show:t=>t==null?void 0:t.isDentistStaff,gated:!0},{to:"subscription",label:"Provider Subscriptions",show:t=>t==null?void 0:t.isPracticeOwner,gated:!1}];function O(){const{user:t}=a(),i=!!(t!=null&&t.isDentistStaff&&!(t!=null&&t.accessUnlocked)),r=f.filter(s=>s.show(t));return e.jsxs("div",{className:"sb-stack",children:[e.jsx("nav",{className:"sb-portal-tabs","aria-label":"Practice sections",children:r.map(s=>e.jsxs(c,{to:s.to,className:({isActive:o})=>"sb-portal-tab"+(o?" is-active":""),children:[e.jsx("span",{children:s.label}),s.gated&&i?e.jsx("span",{className:"sb-portal-tab-lock",title:"Subscription required",children:x}):null]},s.to))}),e.jsx(n.Suspense,{fallback:e.jsx(m,{}),children:e.jsx(l,{})})]})}function D(){const{user:t}=a();
1return e.jsx(d,{to:t!=null&&t.isPracticeOwner?"/practice/details":"/practice/patients",replace:!0})}function u(){const[t]=p();return e.jsxs("div",{className:"sb-stack",children:[e.jsx(h,{title:"Reports",subtitle:"Sales, commission and user activity."}),e.jsx(b,{initialFilter:t.get("filter")||"all"})]})}export{D as DentistPortalIndex,u as DentistReportsTab,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.