1import{j as n,bH as A,N as S,bX as O}from"./vendor-ui-DhwAFPcH.js";import{u as D,k as E,a as h}from"./vendor-react-B5040HA_.js";import{bs as f,ba as k,bc as y,bA as N,u as R,ae as c,bB as B,bv as m,S as C,k as M,P as p,o as T,a as j}from"./index-B-lFFyPG.js";import{m as G,a as L}from"./mascot_dog-BuYP3GdN.js";import{P as F}from"./PlusPassportView-ZGb4NL_w.js";import{I as d}from"./passportLinks-BZ3d0WeH.js";import"./vendor-supabase-DcqDzb1Y.js";import"./plus_onboarding2_breedguide_petfamily-BtH6GsH6.js";import"./PlusPill-ChxGYqZI.js";import"./passportContact-DnK-yDxy.js";import"./formatDate-C1YDOIKi.js";import"./passportSharedSections-CybMCuGG.js";import"./vaccineExpiry-1lrfFVpk.js";import"./prescriptionStatus-CBPvrbTa.js";import"./clarityMasking-D7XpGDea.js";const V="Biscuit",H="Pepper",u="Riverbend Animal Hospital",I=["Monday â Friday: 8 AM â 6 PM","Saturday: 9 AM â 2 PM","Sunday: Closed"],U="148 Riverbend Rd, Portland, OR 97202";function o(e,r){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()+r)).toISOString().slice(0,10)}function t(e,r,s){return new Date(Date.UTC(e.getFullYear(),e.getMonth()+r,s)).toISOString().slice(0,10)}function b(e,r,s){const a=t(e,-r,s),i=k(a,e);return{age:N(i?.years??null,i?.months??null),birthday:y(a)}}function x(e){return{primaryVet:{name:u,phone:"(555) 010-2200",doctorName:"Dr. Amara Osei",address:U,lastVisit:t(e,-2,12),website:"https://www.riverbendanimalclinic.example",openingHours:I},owner:{name:"Alex Rivera",phone:"(555) 010-2288",website:null,address:null},emergencyVet:{name:"Northside Emergency Vet (24h)",phone:"(555) 010-2911",website:null,address:"9 Northside Ave, Portland, OR 97227"}}}function _(e){return{petName:V,petType:"dog",photoUrl:L,basics:f({breed:"Golden Retriever",sex:"Female",weight:"62 lbs",...b(e,41,18),chipId:"985141001234567",neutered:"Yes",zip:"97202"}),allergies:["Chicken","Grass pollen"],...x(e),careTeam:[{label:"Groomer",name:"Soap & Snout Grooming",phone:"(555) 010-2340",address:"77 Alberta St, Portland, OR 97211"},{label:"Daycare / Boarding",name:"Wagmore Daycare",phone:"(555) 010-2377",address:"512 SE Belmont St, Portland, OR 97214"},{label:"Dog Walker",name:"Neighborhood Walks",phone:"(555) 010-2390",address:"31 SE Ankeny St, Portland, OR 97214"},{label:"Park",name:"Laurelhurst Dog Park",phone:null,address:"3756 SE Oak St, Portland, OR 97214"}],insurance:{provider:"Lemonade",providerPhone:"(555) 010-2481",coverageType:"Accident & illness · $250 annual deductible · 80% reimbursement",policyNumber:"LMN-2481-7734",renewal:t(e,7,3)},vaccines:[{id:"example-rabies",name:"Rabies (3 year)",dateGiven:t(e,-14,9),expiresAt:t(e,22,9),administeredBy:"Dr. Amara Osei"},{id:"example-dhpp",name:"DHPP",dateGiven:t(e,-11,6),expiresAt:o(e,25),administeredBy:"Dr. Amara Osei"},{id:"example-bordetella",name:"Bordetella",dateGiven:t(e,-5,21),expiresAt:t(e,7,21),administeredBy:u}],medications:[{id:"example-apoquel",name:"Apoquel",dosage:"5.4 mg · twice daily",prescribedBy:"Dr. Amara Osei",refillDue:o(e,21),status:"active",startedOn:null,endedOn:null},{id:"example-nexgard",name:"NexGard (flea & tick)",dosage:"One chew a month",prescribedBy:"Dr. Amara Osei",refillDue:t(e,1,4),status:"active",startedOn:null,endedOn:null}],careNotes:`Two cups of dry food twice a day, morning and evening â nothing with chicken in it. 2She guards her bowl, so feed her on her own. 3Fresh water topped up at bedtime. One dental chew after her evening walk.`,behavioralNotes:`Good with other dogs at the park. 4Recall is solid off-leash. Thunderstorms send her into the bathroom; leave the door open.`}}function $(e){return{petName:H,petType:"cat",photoUrl:G,basics:f({breed:"Domestic Shorthair",sex:"Male",weight:"11 lbs",...b(e,49,2),chipId:"985141007654321",neutered:"Yes",zip:"97202"}),allergies:["Fish","Dust mites"],...x(e),careTeam:[{label:"Groomer",name:"Soap & Snout Grooming",phone:"(555) 010-2340",address:"77 Alberta St, Portland, OR 97211"},{label:"Daycare / Boarding",name:"Quiet Paws Cat Boarding",phone:"(555) 010-2412",address:"820 NE Fremont St, Portland, OR 97212"}],insurance:{provider:"Lemonade",providerPhone:"(555) 010-3907",coverageType:"Accident & illness · $250 annual deductible · 80% reimbursement",policyNumber:"LMN-3907-5162",renewal:t(e,7,3)},vaccines:[{id:"example-cat-rabies",name:"Rabies (1 year)",dateGiven:t(e,-8,9),expiresAt:t(e,4,9),administeredBy:"Dr. Amara Osei"},{id:"example-fvrcp",name:"FVRCP",dateGiven:t(e,-11,6),expiresAt:o(e,25),administeredBy:"Dr. Amara Osei"},{id:"example-felv",name:"FeLV (feline leukaemia)",dateGiven:t(e,-5,21),expiresAt:t(e,7,21),administeredBy:u}],medications:[{id:"example-revolution",name:"Revolution Plus (flea, tick & worm)",dosage:"One topical dose a month",prescribedBy:"Dr. Amara Osei",refillDue:o(e,21),status:"active",startedOn:null,endedOn:null},{id:"example-cosequin",name:"Cosequin for Cats",dosage:"One sprinkle capsule daily",prescribedBy:"Dr. Amara Osei",refillDue:t(e,1,4),status:"active",startedOn:null,endedOn:null}],careNotes:`Half a cup of dry food morning and evening, plus one wet pouch at night â no fish. 5He eats up on the counter, away from the other animals in the house. 6Fresh water in the bathroom tap bowl; he will not drink from the kitchen one.`,behavioralNotes:`Indoor only. He bolts for the stairwell if the front door is left open, so shut him in the kitchen first. 7Hides on top of the wardrobe when strangers visit. Leave him there; he comes down on his own.`}}function q(e=new Date,r="dog"){return r==="cat"?$(e):_(e)}function W(e){return e==="dog"||e==="cat"}function X({species:e,petName:r}){const{toast:s}=j(),a=`${window.location.origin}${m(e)}`,i=`${r}'s example Pet Simple passport`;async function l(){if(typeof navigator.share=="function"){try{await navigator.share({title:i,url:a})}catch{return}return}try{await navigator.clipboard.writeText(a),s({title:"Link copied"})}catch{s({title:"Could not copy the link",variant:"destructive"})}}function g(){const w=encodeURIComponent(i),P=encodeURIComponent(`See what a finished Pet Simple passport looks like: ${a}`);window.location.href=`mailto:?subject=${w}&body=${P}`}function v(){c.passportPrinted("example"),window.print()}return n.jsxs("div",{className:"flex items-center gap-4 print:hidden",children:[n.jsx(d,{label:"Share a link",icon:A,onClick:()=>{l()},tone:"filled"}),n.jsx(d,{label:"Email passport",icon:S,onClick:g,tone:"filled"}
7),n.jsx(d,{label:"Print passport",icon:O,onClick:v,tone:"filled"})]})}function pe(){const e=D(),{user:r}=R(),{species:s}=E(),a=W(s)?s:null,i=h.useMemo(()=>a?q(new Date,a):null,[a]);if(h.useEffect(()=>{a&&c.examplePassportViewed()},[a]),!a||!i)return n.jsx(B,{to:m("dog")});function l(){c.examplePassportCtaClicked(),e(r?p.documents:T(p.onboarding,{returnTo:p.documents}))}return n.jsxs("div",{className:"plus-root flex min-h-screen flex-col bg-plus-background",children:[n.jsx(C,{title:"Example Pet Passport",description:"See what a finished Pet Simple passport looks like: vaccines, medications, care team, insurance and emergency contacts on one page.",canonicalPath:m(a),noIndex:!0}),n.jsx("div",{className:"flex flex-1 flex-col items-center overflow-x-clip px-0 pt-0 pb-8 md:px-4 md:pt-28 md:pb-12 print:overflow-x-visible print:px-0 print:py-0",children:n.jsx(F,{data:i,surface:"example",actions:n.jsx(X,{species:a,petName:i.petName}),footer:n.jsxs("div",{className:"flex flex-col items-center gap-3",children:[n.jsx(M,{label:"Get your pet's passport",variant:"primary",onClick:l}),n.jsx("span",{className:"font-plus-body text-plus-body-xs font-normal text-plus-text-secondary",children:"Example passport · Pet Simple"})]})})})]})}export{pe 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.