1import{j as e}from"./vendor.BwbG8Zcq.js";import{i as d}from"./chrome.B6ris1qF.js";import{E as m,a as c}from"./ui.BqlJ4-gB.js";import{S as p,C as f,I as x}from"./ds.oOR8TAn4.js";import{c as u}from"./Skeleton.jbQ9_Mz4.js";import"./data.BLyhXs-t.js";import"./ChromeLink.CIaYJ3pw.js";import"./preload-helper.r23mchnI.js";import"./accountBase.DmtyjK7H.js";function R(){const{data:i,isLoading:r,isError:n,error:s,refetch:l}=d();return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:22},children:[e.jsx(p,{eyebrow:"From your dentist",title:"Recommendations",sub:"Personalized recommendations from your dentist."}),r?e.jsx(u,{}):null,n?e.jsx(m,{error:s,onRetry:l}):null,i&&i.length===0?e.jsx(c,{title:"No recommendations yet",message:"When your dentist creates recommendations for you, they'll appear here."}):null,i==null?void 0:i.map(t=>e.jsx(f,{children:e.jsxs("div",{style:{display:"flex",gap:16,alignItems:"flex-start",flexWrap:"wrap"},children:[e.jsx("div",{style:{width:44,height:44,borderRadius:"50%",background:"var(--bg-pale-blue)",color:"var(--sbr-blue)",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(x,{name:"building",size:20})}),e.jsxs("div",{style:{flex:1,minWidth:220},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:10,flexWrap:"wrap"},children:[e.jsx("strong",{style:{fontFamily:"var(--font-display)",fontSize:15,color:"var(--ink)"},children:t.dentistName}),e.jsx("span",{style:{fontSize:12.5,color:"var(--ink-faint)"},children:new Date(t.date).toLocaleDateString()})]}),t.products.length>0?e.jsx("ul",{style:{margin:"8px 0 0",paddingLeft:18,fontSize:14,color:"var(--ink)",lineHeight:1.6},children:t.products.map((a,o)=>e.jsx("li",{children:a},o))}):e.jsx("span",{style:{fontSize:13.5,color:"var(--ink-faint)"},children:"No products specified"}),t.note?e.jsxs("p",{style:{margin:"10px 0 0",padding:"10px 14px",background:"var(--bg-pale-blue)",borderRadius:10,fontSize:13.5,color:"var(--ink-3)",fontStyle:"italic"},children:["â",t.note,"â"]}):null]}),t.viewUrl?e.jsx("a",{className:"sb-btn sb-btn-primary sb-btn-sm",href:t.viewUrl,target:"_blank",rel:"noreferrer",style:{flexShrink:0},children:"View details"}):null]})},t.id))]})}export{R 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.