1import{g as M,r,j as s,L as Q}from"./react-vendor-BDHNqS4B.js";import{u as K,P as W}from"./useNearbyPlaceSearch-x_utv8ac.js";import{R as U,a as $,b as z}from"./RestaurantListInfiniteLoader-C6rlaODV.js";import{a as Y,r as V}from"./useRestaurants-DQ6cKGMa.js";import{u as Z}from"./useSearchQueryFromUrl-jHjzcbFS.js";import{u as G}from"./useSEO-CoArDrdl.js";import{g as J}from"./availableHours-DsyGI15X.js";import{g as X}from"./distance-Bwcv1qLg.js";import{u as ee}from"./main-m_sUF2N4.js";import"./amplify-DYDcjoow.js";import"./Header-BkbupWq-.js";import"./chevron-right-CpkQxGj-.js";import"./check-DS0-tR9o.js";import"./tag-D40gy_Nl.js";import"./query-7-WHkg5t.js";import"./Footer-CtylQEAH.js";import"./textarea-D7qsgB_p.js";import"./reportService-tEzofQZ6.js";import"./phone-B2rvvDkK.js";import"./type-CVgQCqWZ.js";import"./FAQSection-CoCzp6cx.js";import"./accordion-DxrqSPr2.js";import"./index-BZFL-brE.js";import"./DirectAnswerBox-Bx52E2kD.js";import"./card-U4xgiZnN.js";import"./lock-CHPI1fFl.js";import"./DiscoverPlaceTabs-DPoC_wAS.js";import"./AppDownloadCTA-DAEixTy3.js";import"./shield-check-we62WOC3.js";import"./search-BSw3vufk.js";import"./sliders-horizontal-zztTPW4P.js";import"./badge-BYBBu8xB.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"./coffee-DvdZrCo4.js";import"./door-open-DBssRldx.js";import"./calendar-check-D9qQBLib.js";import"./star-Dim9pf51.js";import"./clock-CRHi7pcr.js";const te=1,se="8c15ffc2-05b7-428a-8998-eb88e69d97d1",ae="0dabfa92-a401-4196-b4f0-b756871e3b05",re="/__l5e/assets-v1/8c15ffc2-05b7-428a-8998-eb88e69d97d1/restaurants-og.png",ne="a/v1/0dabfa92-a401-4196-b4f0-b756871e3b05/8c15ffc2-05b7-428a-8998-eb88e69d97d1/restaurants-og.png",oe="restaurants-og.png",ie=1037534,le="image/png",ue="2026-07-15T06:39:11Z",ce={version:te,asset_id:se,project_id:ae,url:re,r2_key:ne,original_filename:oe,size:ie,content_type:le,created_at:ue},at=()=>{var N;const n=M().pathname==="/pet-friendly-restaurants-hk",[o,f]=r.useState("all"),[i,b]=Z(),[u,y]=r.useState(!1),[c,x]=r.useState(!1),[m,w]=r.useState(!1),{t:e,i18n:q}=ee(),a=K(),R=!i&&o==="all"&&!u&&!c&&!m&&!a.nearbyActive&&q.language!=="en",{restaurants:d,totalCount:p,isLoading:S,error:I,hasNextPage:L,fetchNextPage:k,isFetchingNextPage:P}=Y({region:a.nearbyActive?"all":o,keyword:i,verifiedOnly:!0,indoorAllowed:u,walkInAllowed:c,fehdLicensed:m,location:a.nearbyActive?a.coords??void 0:void 0,sortMethod:a.nearbyActive?"location":"rating-desc"},q.language,R?V():null),T=r.useMemo(()=>[{question:e("restaurants.faq.q1"),answer:e("restaurants.faq.a1")},{question:e("restaurants.faq.q2"),answer:e("restaurants.faq.a2")},{question:e("restaurants.faq.q3"),answer:e("restaurants.faq.a3")},{question:e("restaurants.faq.q4"),answer:e("restaurants.faq.a4")},{question:e("restaurants.faq.q5"),answer:e("restaurants.faq.a5")},{question:e("restaurants.faq.q6"),answer:e("restaurants.faq.a6")},{question:e("restaurants.faq.q7"),answer:e("restaurants.faq.a7")},{question:e("restaurants.faq.q8"),answer:e("restaurants.faq.a8")},{question:e("restaurants.faq.q9"),answer:e("restaurants.faq.a9")}],[e]),j=r.useMemo(()=>({name:e("restaurants.howTo.name"),description:e("restaurants.howTo.description"),steps:[{name:e("restaurants.howTo.step1Name"),text:e("restaurants.howTo.step1Text")},{name:e("restaurants.howTo.step2Name"),text:e("restaurants.howTo.step2Text")},{name:e("restaurants.howTo.step3Name"),text:e("restaurants.howTo.step3Text")},{name:e("restaurants.howTo.step4Name"),text:e("restaurants.howTo.step4Text")}]}),[e]),E=e(n?"restaurants.enAliasSeoTitle":"restaurants.seoTitle"),h=e(n?"restaurants.enAliasSeoDescription":"restaurants.seoDescription"),l=n?"https://petwellhk.com/pet-friendly-restaurants-hk/":"https://petwellhk.com/restaurants/",O=r.useMemo(()=>[{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"PetWell HK",item:"https://petwellhk.com/"},{"@type":"ListItem",position:2,name:e("restaurants.pageTitle"),item:l}]},{"@context":"https://schema.org","@type":"CollectionPage",name:e("restaurants.seoStructuredDataName"),description:h,url:l,numberOfItems:p},{"@context":"https://schema.org","@type":"ItemList",name:e("restaurants.seoStructuredDataName"),url:l,numberOfItems:p,itemListElement:d.slice(0,20).map((t,g)=>({"@type":"ListItem",position:g+1,url:`https://petwellhk.com/restaurants/${t.id}`,name:t.name||t.id}
1))}],[d,p,e,h,l]);G({title:E,description:h,keywords:e("restaurants.seoKeywords"),ogImage:`https://petwell-hk-hub.lovable.app${ce.url}`,canonicalUrl:l,structuredData:O,faqItems:T,howToSteps:j,speakableSelectors:[".hero-summary",".faq-answer",".restaurants-search-intent",".restaurants-hub-seo","h1"]});const A=[{value:"all",label:e("restaurants.regions.all")},{value:"Kowloon",label:e("restaurants.regions.kowloon")},{value:"Hong Kong",label:e("restaurants.regions.hongKong")},{value:"New Territories",label:e("restaurants.regions.newTerritories")},{value:"Others",label:e("restaurants.regions.others")}],v=[...o!=="all"?[((N=A.find(t=>t.value===o))==null?void 0:N.label)??""]:[],...u?[e("restaurant.petAccessArea.indoorAllowed")]:[],...c?[e("restaurants.filterWalkIn")]:[],...m?[e("restaurants.filterFehdLicensed")]:[],...i.trim()?[`"${i.trim()}"`]:[]].filter(Boolean),_=v.length>0,D=()=>{a.exitNearby(),f("all"),b(""),y(!1),x(!1),w(!1)},F=t=>{switch(t){case"WALK_IN_ONLY":return e("restaurant.petEntryPolicy.walkInOnly");case"RESERVATION_REQUIRED":return e("restaurant.petEntryPolicy.reservationRequired");case"BOTH":return e("restaurant.petEntryPolicy.both");default:return null}},C=t=>{switch(t){case"INDOOR_ALLOWED":return e("restaurant.petAccessArea.indoorAllowed");case"OUTDOOR_ONLY":return e("restaurant.petAccessArea.outdoorOnly");default:return null}},H=e(n?"restaurants.enAliasPageTitle":"restaurants.pageTitle"),B=e(n?"restaurants.enAliasSubtitle":"restaurants.subtitle");return s.jsx(W,{title:H,subtitle:B,description:e(n?"restaurants.enAliasDescription":"restaurants.description"),searchIntent:e("restaurants.searchIntent"),searchIntentClassName:"restaurants-search-intent",trustBadge:e("restaurants.verifiedPanelTitle"),searchPlaceholder:e("restaurants.searchPlaceholder"),searchQuery:i,onSearchChange:b,filterByRegionLabel:e("restaurants.filterByRegion"),filtersLabel:e("restaurants.filtersLabel"),regions:A,selectedRegion:o,onRegionChange:t=>{a.exitNearby(),f(t)},nearbyActive:a.nearbyActive,onSearchNearby:a.requestNearby,isRequestingNearby:a.isRequesting,policyFilters:[{id:"indoor",label:e("restaurant.petAccessArea.indoorAllowed"),active:u,onToggle:()=>y(t=>!t)},{id:"walkin",label:e("restaurants.filterWalkIn"),active:c,onToggle:()=>x(t=>!t)},{id:"fehd",label:e("restaurants.filterFehdLicensed"),active:m,onToggle:()=>w(t=>!t)}],activeFilterLabels:v,hasActiveFilters:_,onClearFilters:D,clearFiltersLabel:e("restaurants.clearFilters"),isLoading:S,error:I,errorTitle:e("restaurants.error"),errorSubtitle:e("restaurants.errorSubtitle"),resultCount:d.length,hasMoreToLoad:L,partialEmptyMessage:e("restaurants.noResults"),partialEmptyHint:e("restaurants.searchingMore"),resultsCountLabel:"",noResults:e("restaurants.noResults"),noResultsHint:e("restaurants.noResultsHint"),suggestPlaceCategory:"restaurant",listAriaLabel:"寵ç©ååé¤å»³å表",ctaTitle:e("restaurants.ctaTitle"),ctaDescription:e("restaurants.ctaDescription"),directQuestion:e("restaurants.directQuestion"),directAnswer:e("restaurants.directAnswer"),directAnswerHidden:!1,faqItems:T,faqTitle:e("restaurants.faqTitle"),faqHidden:!1,listFooterContent:s.jsx(U,{hasNextPage:L,isFetchingNextPage:P,fetchNextPage:k}),belowListContent:s.jsxs("div",{className:"restaurants-hub-seo space-y-6",children:[s.jsxs("section",{children:[s.jsx("h2",{className:"text-lg font-semibold",children:e("restaurants.hubSeo.fehdTitle")}),s.jsx("p",{className:"mt-2 max-w-3xl text-sm leading-relaxed text-muted-foreground",children:e("restaurants.hubSeo.fehdBody")}),s.jsx("p",{className:"mt-3 text-sm",children:s.jsx(Q,{to:"/hk-fehd-pet-friendly-restaurants-1000-list",className:"text-primary underline-offset-4 hover:underline",children:e("restaurants.districtPage.fehdLink")})})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-lg font-semibold",children:e("restaurants.hubSeo.title")}),s.jsx("p",{className:"mt-2 max-w-3xl text-sm leading-relaxed text-muted-foreground",children:e("restaurants.hubSeo.body")})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-base font-semibold",children:e("restaurants.communityReviewsTitle")}),s.jsx("p",{className:"mt-2 max-w-3xl text-sm leading-relaxed text-muted-foreground",children:e("restaurants.communityReviewsBody")})]}),s.jsx($,{showCounts:!1})]}),children:s.jsx("div",{className:"grid gap-5 md:grid-cols-2 md:gap-6 lg:grid-cols-4",children:d.map((t,g)=>s.jsx(z,{restaurant:t,imagePriority:g<4,petAccessLabel:C(t.petAccessArea),petEntryLabel:F(t.petEntryPolicy),openingHoursText:J(t.availableHours,t.is247,e)||null,distanceLabel:X(a.nearbyActive,a.coords,t.location,e)},t.id))})})};export{at 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.