PageSourceSearch

https://petwellhk.com/assets/ChristmasEventDetail-Cnl4qtwY.js

js petwellhk.com collected 2026-10-06 05:22:43 UTC 8,536 bytes, 6 lines download raw bytes

1import{p as w,r as S,j as e,L as c}from"./react-vendor-BDHNqS4B.js";import{b as y}from"./Header-BkbupWq-.js";import{F as N,M as E}from"./Footer-CtylQEAH.js";import{N as A}from"./NearbyRestaurants-Dk648Dmq.js";import{c as C,d as $,B as i,A as v}from"./main-m_sUF2N4.js";import{C as l,a as m}from"./card-U4xgiZnN.js";import{B as M}from"./badge-BYBBu8xB.js";import{g as D}from"./christmasEventData-CwZjPWpq.js";import{S as q}from"./share-2-CCPUIaWa.js";import{C as B}from"./calendar-KPQ2FJpt.js";import{C as L}from"./clock-CRHi7pcr.js";import{E as T}from"./external-link-BIpC4MGv.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"./skeleton-CDto_fTL.js";import"./RestaurantImage-CN6NkWJn.js";import"./hongKongDistricts--r8_jlh4.js";import"./RestaurantVerificationBadge-BvUGD2EG.js";import"./PetWellVerifiedBadge-DpC4-twT.js";import"./triangle-alert-1QSShUG6.js";import"./restaurantApi-J7TAaZ7f.js";import"./placeSearchConfig-BfT0dFXT.js";import"./PremiumPartnerBadge-Vc4azdA6.js";import"./star-Dim9pf51.js";import"./useNearbyRestaurants-DlbceyfQ.js";import"./chevron-up-Cb9C18fB.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const U=C("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),ge=()=>{const{eventId:d}=w(),{toast:b}=$(),t=d?D(d):void 0;if(S.useEffect(()=>{var f;if(!t)return;const s=document.title,o=(f=document.querySelector('meta[name="description"]'))==null?void 0:f.getAttribute("content");document.title=`${t.name} | 2025 香港狗狗聖誕活動 | PetWell`;const a=document.querySelector('meta[name="description"]');a&&a.setAttribute("content",`${t.name} - ${t.organiser}聖誕活動。地點:${t.address}。${t.remark.substring(0,100)}...`);const h=document.querySelector('meta[property="og:title"]'),x=document.querySelector('meta[property="og:description"]'),u=document.querySelector('meta[property="og:url"]'),g=document.querySelector('meta[property="og:image"]');h&&h.setAttribute("content",`${t.name} | 狗狗聖誕活動`),x&&x.setAttribute("content",t.remark.substring(0,150)),u&&u.setAttribute("content",`https://petwellhk.com/christmas-event/${t.id}`),g&&g.setAttribute("content",t.imageUrl);let r=document.querySelector('link[rel="canonical"]');r||(r=document.createElement("link"),r.setAttribute("rel","canonical"),document.head.appendChild(r)),r.setAttribute("href",`https://petwellhk.com/christmas-event/${t.id}`);const n=document.createElement("script");return n.type="application/ld+json",n.id="event-schema",n.text=JSON.stringify({"@context":"https://schema.org","@type":"Event",name:t.name,description:t.remark,startDate:t.dateStart,endDate:t.dateEnd,eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{"@type":"Place",name:t.organiser,address:{"@type":"PostalAddress",streetAddress:t.address,addressLocality:"Hong Kong",addressCountry:"HK"},geo:{"@type":"GeoCoordinates",latitude:t.latitude,longitude:t.longitude}},organizer:{"@type":"Organization",name:t.organiser,url:t.sourceUrl},image:t.imageUrl,url:`https://petwellhk.com/christmas-event/${t.id}`}),document.head.appendChild(n),()=>{document.title=s,a&&o&&a.setAttribute("content",o);const j=document.getElementById("event-schema");j&&j.remove()}},[t]),!t)return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(y,{}),e.jsx("main",{className:"flex-1 mt-[72px] flex items-center justify-center",children:e.jsxs("div",{className:"text-center space-y-4 p-8",children:[e.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"找不到活動"}),e.jsx("p",{className:"text-muted-foreground",children:"呢個活動可能已經結束或者唔存在。"}),e.jsx(c,{to:"/christmas-events-2025",children:e.jsxs(i,{children:[e.jsx(v,{className:"w-4 h-4 mr-2"}),"返回測驗"]})})]})}),e.jsx(N,{})]});const p=s=>new Date(s).toLocaleDateString("zh-HK",{year:"numeric",month:"long",day:"numeric",weekday:"long"}),k=async()=>{const s={title:t.name,text:`🎄 ${t.name} - 聖誕狗狗活動推介`,url:window.location.href};if(navigator.share)try{await navigator.share(s)}catch{}else await navigator.clipboard.writeText(window.location.href),b({title:"已複製連結",description:"活動連結已複製到剪貼簿!"})};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(y,{}),e.jsxs("main",{className:"flex-1 mt-0",children:[e.jsxs("div",{className:"relative h-[300px] md:h-[400px] overflow-hidden",children:[e.jsx("img",{src:t.imageUrl,alt:`${t.name} - ${t.organiser}聖誕活動,位於${t.address}`,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/20 to-transparent"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx(c,{to:"/christmas-events-2025",children:e.jsxs(i,{variant:"secondary",size:"sm",className:"gap-2 bg-background/80 backdrop-blur-sm",children:[e.jsx(v,{className:"w-4 h-4"}),"返回"]})})}),e.jsx("div",{className:"absolute top-4 right-4",children:e.jsxs(i,{variant:"secondary",size:"sm",className:"gap-2 bg-background/80 backdrop-blur-sm",onClick:k,children:[e.jsx(q,{className:"w-4 h-4"}),"分享"]})}),e.jsx("div",{className:"absolute bottom-4 right-4",children:e.jsx(M,{className:"text-sm px-4 py-1.5",children:t.district})})]}),e.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[e.jsx("div",{className:"space-y-4 mb-8",children:e.jsx("h1",{className:"text-2xl md:text-4xl font-bold text-foreground",children:t.name})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[e.jsx(l,{children:e.jsxs(m,{className:"p-6 space-y-4",children:[e.jsxs("h3",{className:"font-semibold text-lg text-foreground flex items-center gap-2",children:[e.jsx(B,{className:"w-5 h-5 text-primary"}),"日期時間"]}),e.jsxs("div",{className:"space-y-2 text-muted-foreground",children:[e.jsxs("p",{children:[e.jsx("span",{className:"font-medium text-foreground",children:"開始:"}),e.jsx("time",{dateTime:t.dateStart,children:p(t.dateStart)})]}),t.dateStart!==t.dateEnd&&e.jsxs("p",{children:[e.jsx("span",{className:"font-medium text-foreground",children:"結束:"}),e.jsx("time",{dateTime:t.dateEnd,children:p(t.dateEnd)})]}),e.jsxs("p",{className:"flex items-center gap-2 pt-2",children:[e.jsx(L,{className:"w-4 h-4"}),t.openTime," - ",t.closeTime]})]})]})}),e.jsx(l,{children:e.jsxs(m,{className:"p-6 space-y-4",children:[e.jsxs("h3",{className:"font-semibold text-lg text-foreground flex items-center gap-2",children:[e.jsx(E,{className:"w-5 h-5 text-primary"}),"地點"]}),e.jsxs("div",{className:"space-y-2 text-muted-foreground",children:[e.jsx("p",{className:"text-foreground font-medium",children:t.address}),e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx(U,{className:"w-4 h-4"}),"主辦:",t.organiser]})]})]})})]}),e.jsx(l,{className:"mb-8",children:e.jsxs(m,{className:"p-6 space-y-4",children:[e.jsx("h3",{className:"font-semibold text-lg text-foreground",children:"📝 活動詳情"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.remark})]})}),e.jsx(A,{eventLat:t.latitude,eventLon:t.longitude}),t.sourceUrl&&t.sourceUrl!=="https://example.com"&&e.jsx("div",{className:"flex justify-center mb-8",children:e.jsxs("a",{href:t.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:text-primary/80 underline underline-offset-4 transition-colors",children:[e.jsx(T,{className:"w-4 h-4"}),"查看活動官網"]})}),e.jsxs("div",{className:"text-center pt-8 border-t",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:"想知狗狗最啱去邊度過聖誕?"}),e.jsx(c,{to:"/christmas-dog-mbti-2025",children:e.jsx(i,{variant:"outline",className:"gap-2",children:"🐕 測下狗狗 MBTI 話你知佢想去邊"})})]})]})]}),e.jsx(N,{})]})};export{ge 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.