PageSourceSearch

https://travesim.com/assets/_partnerCode.faq.index-KiJVydx_.js

js travesim.com collected 2026-10-04 20:44:23 UTC 2,892 bytes, 1 lines download raw bytes

1import{a6 as u,j as e,u as j,a2 as f,r as h,a7 as N,V as y,L as C,h as v}from"./index-Dkk9Srv5.js";import{u as b}from"./useQuery-DbNZy248.js";import{q as S}from"./query-DUJorWiN.js";import{S as P}from"./skeleton-a0hch7Wr.js";import{E as q}from"./error-screen-ChtKDail.js";import{F as w}from"./faq-B1rbvpCT.js";import{u as L}from"./use-budoux-CuokfGgo.js";import{u as E}from"./use-page-title-6SAzhMBB.js";import{u as T}from"./use-static-page-title-Dnjiwzab.js";import{C as R}from"./cta-scope-tMYnnnD6.js";import{C as A}from"./chevron-right-qhkmBMKy.js";import"./suspense-hMCAMsFj.js";import"./button-DlbyMOSo.js";import"./index-C5VogPKA.js";import"./createLucideIcon-CEkUfykS.js";function J(){const{partnerCode:l}=u.useParams();return e.jsx(R,{locale:l,pageType:"support",pageKey:"faq",children:e.jsx(F,{})})}function F(){const{partnerCode:l}=u.useParams(),{parse:p}=L(),o=j(s=>s.language),n=v(o),m=f(s=>s.setPageSeoConfig),d=f(s=>s.resetPageSeoConfig);h.useEffect(()=>{const s=window.location.origin,a=N(o),t=y.map(r=>({lang:r.hreflangCode??r.defaultLanguage,href:`${s}/${r.partnerCode}/faq`}));return m({disableHreflang:!0,canonicalPartnerCode:a,customHreflangLinks:t}),()=>{d()}},[o,m,d]),E(T("faq"));const{data:i,isLoading:x,error:g}=b(S({language:o,category:void 0})),c=i!=null&&i.success?i.data:[];return g?e.jsx(q,{message:n("FAQの読み込みに失敗しました")}):e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:"/images/faq/banner.png",alt:n("よくあるご質問"),className:"mx-auto h-80 w-full object-cover object-[54%_0] md:object-[43%_0] lg:object-top",onError:s=>{s.currentTarget.style.display="none"}}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-opacity-40",children:e.jsx("h1",{className:"text-4xl font-bold",children:n("よくあるご質問")})})]}),e.jsx("div",{className:"container mx-auto px-4 py-8",children:x?e.jsx("div",{className:"space-y-4",children:Array.from({length:5}).map((s,a)=>e.jsx(P,{className:"h-20 w-full rounded-lg"},a))}):e.jsx("div",{className:"space-y-16 pt-6",children:w.map(s=>{var a;return e.jsxs("div",{className:"flex flex-col gap-y-12",children:[e.jsx("h2",{id:s,className:"text-center font-extrabold text-xl",children:n(s)}),e.jsx("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-y-4",children:(a=c==null?void 0:c.filter(t=>t.category===s))==null?void 0:a.map(({id:t,question:r})=>e.jsxs(C,{to:"/$partnerCode/faq/$faqId",params:{partnerCode:l,faqId:t},className:"flex items-center justify-between rounded-lg bg-gray-100 px-4 py-3",children:[e.jsx("div",{className:"w-9 font-bold self-center text-2xl text-blue-800",children:"Q"}),e.jsx("div",{className:"w-full text-left font-semibold text-sm",children:p(r)}),e.jsx("div",{className:"w-9",children:e.jsx(A,{className:"size-6 place-self-end"})})]},t))})]},s)})})})]})}export{J as component};

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.