1import{a as e}from"./chunk-BEqpzyXh.js";import{n as t}from"./createLucideIcon-CEDU0v2w.js";import{t as n}from"./jsx-runtime-DOlcsXOY.js";import{n as r,t as i}from"./store-badges-gcPnmsEm.js";import{d as a,g as o,h as s,i as c,o as l,u}from"./parse-citations-MFT8SyG5.js";import{p as d}from"./seo-CVabGtHM.js";import{Cn as f,cn as p,dn as m,on as h,sn as g,un as _}from"./main-BS7EFwYa.js";import{r as v,t as y}from"./lib-VWiGPENb.js";var b=e(t(),1),x=n(),S={reminder:{title:`Bring reminders with you`,description:`Use Voyage on your phone for medication, follow-up, and check-in reminders.`},camera:{title:`Use Voyageâs live camera`,description:`Continue in the app to share live visual context for your petâs symptoms.`},companion:{title:`Your petâs ongoing health home`,description:`Keep their profile, assessments, and future check-ins together in the Voyage app.`}};function C({open:e,onOpenChange:t,hook:n}){let a=n?S[n]:null,[o,s]=(0,b.useState)(d);return(0,b.useEffect)(()=>{e&&r(`app_store`,{entrySurface:`triage`,placement:`download_modal_qr`}).then(({url:e})=>s(e)).catch(()=>s(d))},[e]),(0,x.jsx)(h,{open:e,onOpenChange:t,children:(0,x.jsxs)(g,{className:`bg-surface-base sm:max-w-md`,children:[(0,x.jsxs)(_,{children:[(0,x.jsx)(m,{className:`font-heading text-[22px] font-normal text-text-primary`,children:a?.title??`Get the full picture`}),(0,x.jsx)(p,{className:`text-text-secondary`,children:a?.description??(0,x.jsx)(x.Fragment,{children:`Your pet's health records and detailed context are available in the Voyage mobile app. Download it to access the complete information behind this analysis.`})})]}),(0,x.jsxs)(`div`,{className:`flex flex-col items-center gap-4 py-4`,children:[(0,x.jsx)(i,{variant:`black`,className:`justify-center`,entrySurface:`triage`,placement:`download_modal`,hook:n}),(0,x.jsxs)(`div`,{className:`hidden flex-col items-center gap-2 sm:flex`,children:[(0,x.jsx)(`div`,{className:`rounded-2xl border border-surface-border bg-white p-4 shadow-sm`,children:(0,x.jsx)(f,{value:o,size:120,bgColor:`#ffffff`,fgColor:`#171412`,level:`M`})}),(0,x.jsx)(`p`,{className:`text-xs text-text-tertiary`,children:`Scan to open Voyage on your phone`})]})]})]})})}var w=`max-w-none text-sm leading-relaxed text-text-primary [&_p]:mb-2.5 [&_p]:last:mb-0 [&_h1]:mt-3 [&_h1]:mb-2 [&_h1]:first:mt-0 [&_h1]:font-heading [&_h1]:text-base [&_h1]:font-semibold [&_h1]:text-text-primary [&_h2]:mt-3 [&_h2]:mb-2 [&_h2]:first:mt-0 [&_h2]:font-heading [&_h2]:text-[15px] [&_h2]:font-semibold [&_h2]:text-text-primary [&_h3]:mt-3 [&_h3]:mb-1.5 [&_h3]:first:mt-0 [&_h3]:font-heading [&_h3]:text-sm [&_h3]:font-semibold [&_h3]:text-text-primary [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_li]:mb-1 [&_li]:pl-0.5 [&_strong]:font-semibold [&_em]:italic [&_a]:text-text-primary [&_a]:underline [&_a]:underline-offset-2 [&_code]:rounded [&_code]:bg-white/70 [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[13px] [&_pre]:my-2 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:border [&_pre]:border-surface-border [&_pre]:bg-white/80 [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-[13px] [&_blockquote]:my-2 [&_blockquote]:border-l-2 [&_blockquote]:border-surface-border [&_blockquote]:pl-3 [&_blockquote]:italic [&_blockquote]:text-text-secondary [&_hr]:my-4 [&_hr]:border-surface-border [&_thead]:bg-surface-border/70 [&_thead_tr]:border-b [&_thead_tr]:border-white [&_tbody_tr]:border-b [&_tbody_tr]:border-white [&_tbody_tr:last-child]:border-b-0 [&_th]:px-4 [&_th]:py-3 [&_th]:text-left [&_th]:font-semibold [&_th]:text-text-primary [&_th:not(:last-child)]:border-r [&_th:not(:last-child)]:border-white [&_td]:px-4 [&_td]:py-3 [&_td]:align-top [&_td:not(:last-child)]:border-r [&_td:not(:last-child)]:border-white [&_input[type=checkbox]]:mr-1.5 [&_input[type=checkbox]]:align-middle [&_li.task-list-item]:list-none [&_li.task-list-item]:pl-0 [&_del]:text-text-secondary [&_del]:line-through [&_kbd]:rounded [&_kbd]:border [&_kbd]:border-surface-border [&_kbd]:bg-white/70 [&_kbd]:px-1 [&_kbd]:py-0.5 [&_kbd]:font-mono [&_kbd]:text-[12px] [&_sub]:align-sub [&_sub]:text-[11px] [&_sup]:align-super [&_sup]:text-[11px] [&_mark]:rounded [&_mark]:bg-yellow-100 [&_mark]:px-0.5 [&_abbr]:cursor-help [&_abbr]:underline [&_abbr]:decoration-dotted [&_img]:my-2 [&_img]:max-w-full [&_img]:rounded-lg [&_img]:border [&_img]:border-surface-border [&_dl]:my-2 [&_dt]:font-semibold [&_dd]:mb-1 [&_dd]:ml-4 [&_.katex-display]:my-3 [&_.katex-display]:block [&_.katex-display]:max-w-full [&_.katex-display]:overflow-x-auto [&_.katex]:text-inherit`;function T(e,t,n,r=`cit`){let i=[];
1return b.Children.forEach(e,(e,a)=>{typeof e==`string`?c(e,t).forEach((e,t)=>{let c=`${r}-${a}-${t}`;e.type===`text`?i.push((0,x.jsx)(`span`,{children:e.value},c)):e.type===`k-citation`||e.type===`w-citation`?i.push((0,x.jsx)(o,{index:e.index,prefix:e.type===`w-citation`?`W`:`K`,url:e.url},c)):e.type===`c-citation`&&i.push((0,x.jsx)(s,{index:e.index,onClick:n},c))}):i.push(e)}),i}function E({content:e,citations:t}){let[n,r]=(0,b.useState)(!1),i=!!(t&&t.length>0),o=e=>i?T(e,t??[],()=>r(!0)):e;return(0,x.jsxs)(`div`,{className:w,children:[(0,x.jsx)(v,{remarkPlugins:[y,a],rehypePlugins:[u],components:{a:({href:e,children:t})=>(0,x.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-text-primary underline underline-offset-2`,children:t}),p:({children:e})=>(0,x.jsx)(`p`,{children:o(e)}),li:({children:e})=>(0,x.jsx)(`li`,{children:o(e)}),table:({children:e})=>(0,x.jsx)(`div`,{className:`my-3 overflow-x-auto rounded-lg bg-surface-border/40`,children:(0,x.jsx)(`table`,{className:`w-full border-collapse text-sm`,children:e})}),th:({children:e})=>(0,x.jsx)(`th`,{children:o(e)}),td:({children:e})=>(0,x.jsx)(`td`,{children:o(e)})},children:l(e)}),i&&(0,x.jsx)(C,{open:n,onOpenChange:r})]})}function D(e){return e.filter(e=>e.type===`text`).map(e=>e.text).join(``)}function O({children:e}){return(0,x.jsx)(`span`,{className:`whitespace-pre-wrap`,children:e})}export{C as i,O as n,D as r,E as t};
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.