PageSourceSearch

https://petwellhk.com/assets/ClinicDetail-BQs6r4l0.js

js petwellhk.com collected 2026-10-06 05:22:50 UTC 4,805 bytes, 1 lines download raw bytes

1import{p as R,r as N,j as t,L as P}from"./react-vendor-BDHNqS4B.js";import{b as c}from"./Header-BkbupWq-.js";import{F as p}from"./Footer-CtylQEAH.js";import{u as $,n as C,B as k}from"./main-m_sUF2N4.js";import{b as L}from"./useClinics-BT6VP7AE.js";import{u as S}from"./useSEO-CoArDrdl.js";import{P as H}from"./PlaceDetailLayout-BNsti9P1.js";import{C as I}from"./ClinicImage-CFSfW4FY.js";import{i as A}from"./placeSearchConfig-BfT0dFXT.js";import"./amplify-DYDcjoow.js";import"./chevron-right-CpkQxGj-.js";import"./check-DS0-tR9o.js";import"./tag-D40gy_Nl.js";import"./query-7-WHkg5t.js";import"./textarea-D7qsgB_p.js";import"./reportService-tEzofQZ6.js";import"./phone-B2rvvDkK.js";import"./type-CVgQCqWZ.js";import"./hongKongDistricts--r8_jlh4.js";import"./serviceOfferings-40B0fv7X.js";import"./card-U4xgiZnN.js";import"./badge-BYBBu8xB.js";import"./collapsible-XeBmzMPY.js";import"./index-BZFL-brE.js";import"./availableHours-DsyGI15X.js";import"./BusinessReviewReply-DaaGODlp.js";import"./ReviewAuthorLink-IWaLqPnT.js";import"./index-CFf87M6S.js";import"./userReviewApi-BPRYI5-q.js";import"./priceReviewApi-BFijUeFQ.js";import"./star-Dim9pf51.js";import"./image-plus--WXlfpIC.js";import"./chevron-left-Jw0Ezjn9.js";import"./checkbox-BkyFxaQM.js";import"./popover-D22i846k.js";import"./select-fZgDq8v8.js";import"./chevron-up-Cb9C18fB.js";import"./circle-check-DgLC__8_.js";import"./minus-xARKY3S7.js";import"./plus-D0NAkfqS.js";import"./store-DWI30bPC.js";import"./badge-check-CHAeghjg.js";import"./AppDownloadCTA-DAEixTy3.js";import"./PetWellVerifiedBadge-DpC4-twT.js";import"./PremiumPartnerBadge-Vc4azdA6.js";import"./sparkles-BcmYxR0H.js";import"./placeMaps-BMm8HyB6.js";import"./clock-CRHi7pcr.js";import"./calendar-check-D9qQBLib.js";import"./navigation-B9fVXvyH.js";import"./skeleton-CDto_fTL.js";function v(r,s){var e,a;if(!r)return"";const o=s==="en"?"zh":"en";return((e=r[s])==null?void 0:e.trim())||((a=r[o])==null?void 0:a.trim())||""}const He=()=>{var f,u;const{clinicId:r}=R(),{i18n:s,t:o}=$(),{data:e,isLoading:a,error:j}=L(r),d=s.language==="en"?"en":"zh",i=v(e==null?void 0:e.name,d),n=v(e==null?void 0:e.address,d),m=(e==null?void 0:e.district)||"",y=((f=e==null?void 0:e.serviceOfferings)==null?void 0:f.split(",").slice(0,3).join("、"))||"",w=N.useMemo(()=>{var x,h;if(e)return{"@context":"https://schema.org","@type":"VeterinaryCare",name:i,address:{"@type":"PostalAddress",streetAddress:n,addressLocality:m,addressRegion:"Hong Kong"},telephone:e.phoneNo,email:e.email,url:`https://petwellhk.com/clinics/${r}`,...e.totalRating&&{aggregateRating:{"@type":"AggregateRating",ratingValue:e.totalRating,bestRating:5,reviewCount:e.numReviews||0}},...((h=(x=e.reviews)==null?void 0:x.items)==null?void 0:h.length)&&{review:e.reviews.items.slice(0,3).map(l=>({"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:l.totalRating,bestRating:5},reviewBody:l.description,datePublished:l.updatedAt}))}}},[e,r,i,n,m]);if(S({title:e?`${i}好唔好?評價、收費、地址 | PetWell HK`:"獸醫診所詳情 | PetWell HK",description:e?`${i}獸醫診所評價、真實用家評論、收費參考。地址:${n}。服務包括:${y}。睇下其他主人點講。`:"查看獸醫診所詳細資料、評價及服務",keywords:e?`${i}好唔好,${i}評價,${i}收費,${e.district}獸醫,獸醫診所推薦,${i}review`:"獸醫診所評價,香港獸醫",canonicalUrl:`https://petwellhk.com/clinics/${r}`,ogImage:e==null?void 0:e.coverPhoto,structuredData:w}),a)return t.jsxs("div",{className:"min-h-screen flex flex-col",children:[t.jsx(c,{}),t.jsx("main",{className:"flex-1 py-16 md:py-20 flex items-center justify-center bg-gradient-hero",children:t.jsx(C,{className:"w-8 h-8 animate-spin text-primary"})}),t.jsx(p,{})]});if(j||!e)return t.jsxs("div",{className:"min-h-screen flex flex-col",children:[t.jsx(c,{}),t.jsx("main",{className:"flex-1 py-12 md:py-16 bg-gradient-hero",children:t.jsxs("div",{className:"container mx-auto px-4 text-center",children:[t.jsx("h1",{className:"text-2xl font-bold mb-4",children:o("clinics.detail.notFound")}),t.jsx(P,{to:"/clinics",children:t.jsx(k,{children:o("clinics.backToList")})})]})}),t.jsx(p,{})]});const g=((u=e.reviews)==null?void 0:u.items)||[],b=e.numReviews||g.length;return t.jsxs("div",{className:"min-h-screen flex flex-col",children:[t.jsx(c,{}),t.jsx(H,{backTo:"/clinics",name:i,address:n,district:m,coverImageKey:e.coverPhoto,gallery:e.gallery,verified:e.verified,isPremium:A(e),is247:e.is247,totalRating:e.totalRating,totalReviews:b,phoneNo:e.phoneNo,email:e.email,website:e.website,availableHours:e.availableHours,serviceOfferings:e.serviceOfferings,reviews:g,placeId:e.id,placeType:"clinic",i18nNamespace:"clinics",CoverImage:I,reservationSettings:e.reservationSettings,ownerSub:e.ownerSub}),t.jsx(p,{})]})};export{He 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.