PageSourceSearch

https://hotelonline.co/assets/FaqPage-DW-hfglT.js

js hotelonline.co collected 2026-10-08 00:02:35 UTC 7,490 bytes, 1 lines download raw bytes

1import{j as e}from"./data-D773YjhC.js";import{P as x,t as g,u as p,A as m,X as o,i as h,j as u,k as b,l as f}from"./index-DoMSgt5B.js";import{I as q}from"./input-DmhiVy9c.js";import{r as d,L as F}from"./react-C95wPGXe.js";import{S as j}from"./search-BDuhX6hh.js";function P({children:a,watchKey:s,className:l=""}){return e.jsx("div",{"data-loc":"client/src/components/MotionCrossFade.tsx:10",className:`ho-crossfade ${l}`,children:a},s)}function v(a,s){const l=s.trim().toLocaleLowerCase();return l?a.filter(({question:t,answer:r})=>`${t} ${r}`.toLocaleLowerCase().includes(l)):[...a]}function N(){const{data:a=[],isLoading:s}=g.public.faqs.useQuery(),{openEnquiry:l}=p(),[t,r]=d.useState(""),c=d.useMemo(()=>v(a,t),[a,t]),i=!!t.trim();return e.jsxs("main",{"data-loc":"client/src/pages/FaqPage.tsx:18",children:[e.jsxs("section",{"data-loc":"client/src/pages/FaqPage.tsx:19",className:"relative isolate overflow-hidden bg-ink py-20 text-white md:py-28",children:[e.jsx("img",{"data-loc":"client/src/pages/FaqPage.tsx:20",src:"/manus-storage/hotelonline-pms_55d89593.jpg",alt:"","aria-hidden":"true",className:"absolute inset-0 -z-20 size-full object-cover object-[62%_center]"}),e.jsx("div",{"data-loc":"client/src/pages/FaqPage.tsx:21",className:"absolute inset-0 -z-10 bg-[linear-gradient(90deg,rgba(16,34,44,0.97)_0%,rgba(16,34,44,0.9)_52%,rgba(16,34,44,0.66)_100%)]"}),e.jsx("div",{"data-loc":"client/src/pages/FaqPage.tsx:22",className:"absolute inset-0 -z-10 bg-[radial-gradient(circle_at_82%_18%,rgba(0,188,212,0.18),transparent_38%)]"}),e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:23",className:"container relative max-w-5xl",children:[e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:23",className:"text-xs font-bold uppercase tracking-[0.2em] text-brand-300",children:"Frequently asked questions"}),e.jsx("h1",{"data-loc":"client/src/pages/FaqPage.tsx:23",className:"mt-5 max-w-4xl font-display text-5xl font-bold leading-[0.98] tracking-[-0.065em] sm:text-6xl",children:"Clearer answers for hotel teams."}),e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:23",className:"mt-6 max-w-2xl text-base leading-7 text-white/78",children:"Explore practical guidance on online distribution, direct bookings and the connected tools that support hotel operations."}),e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:23",className:"mt-8 flex flex-wrap gap-3",children:[e.jsxs(F,{"data-loc":"client/src/pages/FaqPage.tsx:23",href:"/about",className:"inline-flex items-center gap-2 rounded-full border border-white/25 px-5 py-3 text-sm font-bold text-white transition hover:bg-white hover:text-ink",children:["About HotelOnline ",e.jsx(m,{"data-loc":"client/src/pages/FaqPage.tsx:23",className:"size-4"})]}),e.jsx("button",{"data-loc":"client/src/pages/FaqPage.tsx:23",type:"button",onClick:()=>l({type:"general",subject:"HotelOnline FAQs"}),className:"rounded-full bg-brand-500 px-5 py-3 text-sm font-bold text-ink transition hover:bg-white",children:"Ask a question"})]})]})]}),e.jsx("section",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"bg-paper py-14 md:py-20",children:e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"container max-w-4xl",children:[e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"border-b border-slate/15 pb-8",children:[e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"text-xs font-bold uppercase tracking-[0.18em] text-brand-600",children:"Distribution, direct bookings and operations"}),e.jsx("h2",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"mt-4 font-display text-4xl font-bold tracking-[-0.055em] text-ink",children:"Find the answer you need."}),!s&&a.length?e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"mt-7 max-w-xl",role:"search",children:[e.jsx("label",{"data-loc":"client/src/pages/FaqPage.tsx:25",htmlFor:"faq-search",className:"sr-only",children:"Search questions and answers"}),e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"relative",children:[e.jsx(j,{"data-loc":"client/src/pages/FaqPage.tsx:25","aria-hidden":"true",className:"pointer-events-none absolute left-4 top-1/2 size-4 -translate-y-1/2 text-brand-600"}),e.jsx(q,{"data-loc":"client/src/pages/FaqPage.tsx:25",id:"faq-search",type:"search",value:t,onChange:n=>r(n.target.value),placeholder:"Search questions and answers",className:"h-12 rounded-full border-slate/20 bg-white pl-11 pr-12 text-ink shadow-sm placeholder:text-slate/65 focus-visible:border-brand-500 focus-visible:ring-brand-500/25"}),i?e.jsx("button",{"data-loc":"client/src/pages/FaqPage.tsx:25",type:"button",onClick:()=>r(""),className:"absolute right-2 top-1/2 grid size-8 -translate-y-1/2 place-items-center rounded-full text-slate transition hover:bg-brand-500/10 hover:text-brand-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500","aria-label":"Clear FAQ search",children:e.jsx(o,{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"size-4"})}):null]}),e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"mt-3 text-sm text-slate","aria-live":"polite",children:i?`${c.length} ${c.length===1?"answer":"answers"} found`:`${a.length} ${a.length===1?"answer":"answers"} available`})]}):null]}),e.jsx(P,{"data-loc":"client/src/pages/FaqPage.tsx:25",watchKey:`${s?"loading":"ready"}:${t.trim().toLocaleLowerCase()}`,className:"min-h-24",children:s?e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"py-10 text-sm text-slate",role:"status",children:"Loading frequently asked questions…"}):a.length?c.length?e.jsx(h,{"data-loc":"client/src/pages/FaqPage.tsx:25",type:"single",collapsible:!0,className:"border-b border-slate/15",children:c.map(n=>e.jsxs(u,{"data-loc":"client/src/pages/FaqPage.tsx:25",value:`faq-${n.id}`,className:"border-slate/15",children:[e.jsx(b,{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"py-6 text-left font-display text-lg font-bold tracking-[-0.025em] text-ink hover:no-underline sm:text-xl",children:n.question}),e.jsx(f,{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"max-w-3xl pb-6 text-sm leading-7 text-slate",children:n.answer})]},n.id))}):e.jsxs("div",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"py-10",children:[e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"max-w-xl font-display text-2xl font-bold tracking-[-0.04em] text-ink",children:"No matching answers yet."}),e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"mt-3 max-w-xl text-sm leading-7 text-slate",children:"Try a different phrase, or clear the search to browse all available answers."}),e.jsxs("button",{"data-loc":"client/src/pages/FaqPage.tsx:25",type:"button",onClick:()=>r(""),className:"mt-5 inline-flex items-center gap-2 rounded-full border border-ink/15 px-4 py-2 text-sm font-bold text-ink transition hover:border-brand-500 hover:bg-brand-500/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500",children:["Clear search ",e.jsx(o,{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"size-4"})]})]}):e.jsx("p",{"data-loc":"client/src/pages/FaqPage.tsx:25",className:"py-10 text-sm leading-7 text-slate",children:"The HotelOnline team is updating these answers. Please contact us if you would like to discu
1ss your property."})})]})})]})}function A(){return e.jsx(x,{"data-loc":"client/src/pages/FaqPage.tsx:29",children:e.jsx(N,{"data-loc":"client/src/pages/FaqPage.tsx:29"})})}export{A 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.