1import{ae as x,j as a,u as j,a2 as h,r as w,V as y,h as v}from"./index-Dkk9Srv5.js";import{M as N,g as q,c as C,d as S}from"./maintenance-notice-CSAf5rUd.js";import{u as L}from"./useQuery-DbNZy248.js";import{L as P}from"./loading-screen-ItHOsYtr.js";import{b as f}from"./blog-maintenance-BQptIYjj.js";import{u as I}from"./use-blog-content-click-BEBUmEn-.js";import{C as M}from"./cta-scope-tMYnnnD6.js";import"./createLucideIcon-CEkUfykS.js";import"./suspense-hMCAMsFj.js";import"./loader-BSDrTuGq.js";function Q(){const{partnerCode:s}=x.useParams();return a.jsx(M,{locale:s,pageType:"article",pageKey:"news",children:a.jsx(R,{})})}function R(){const{slug:s,partnerCode:g}=x.useParams(),l=j(t=>t.language),n=v(l),i=h(t=>t.setPageSeoConfig),o=h(t=>t.resetPageSeoConfig),u=I(),{data:e,isLoading:b,error:d}=L({queryKey:["news-post",s],queryFn:()=>S(s),enabled:!f(),retry:!1});if(w.useEffect(()=>{var r;const t=e!=null&&e.language?(r=y.find(p=>p.defaultLanguage===e.language))==null?void 0:r.partnerCode:void 0;return i({disableHreflang:!0,canonicalPartnerCode:t,noindex:!e,description:(e==null?void 0:e.description)||void 0,title:(e==null?void 0:e.title)||void 0}),()=>{o()}},[e==null?void 0:e.language,e==null?void 0:e.description,e==null?void 0:e.title,i,o]),f())return a.jsx("div",{className:"container mx-auto max-w-5xl px-4 py-8 min-h-[50vh] flex items-center justify-center",children:a.jsx(N,{t:n,lang:l,partnerCode:g})});if(b)return a.jsx(P,{});const _=typeof window<"u"?window.location.origin:"",c=e?q(e,_):null,m=e!=null&&e.meta.faq&&e.meta.faq.length>0?C(e.meta.faq):null;return a.jsxs("div",{className:"max-w-4xl mx-auto prose p-4 lg:prose-lg",children:[c&&a.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:c}}),m&&a.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:m}}),d&&a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx("div",{className:"text-center",children:a.jsx("p",{className:"text-red-600",children:n("ãã¥ã¼ã¹ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã")})})}),!d&&!e&&a.jsx("div",{className:"min-h-[50vh] flex items-center justify-center",children:a.jsx("div",{className:"text-center",children:a.jsx("p",{className:"text-red-600",children:n("ãã¥ã¼ã¹ãè¦ã¤ããã¾ããã§ããã")})})}),e&&a.jsxs("div",{className:'prose md:prose-md mx-auto px-4 md:max-w-4xl [&_h1]:font-semibold [&_h1]:text-2xl [&_h1]:md:text-3xl [&_h2]:relative [&_h2]:pb-1 [&_h2]:pl-6 [&_h2]:font-bold [&_h2]:text-3xl [&_h2]:before:absolute [&_h2]:before:top-0 [&_h2]:before:left-0 [&_h2]:before:h-full [&_h2]:before:w-2 [&_h2]:before:bg-brand-blue-600 [&_h2]:before:content-[""] [&_h3]:border-b-2 [&_h3]:border-b-brand-blue-600 [&_h3]:px-2 [&_h4]:before:-translate-y-1/2 [&_h4]:relative [&_h4]:mb-4 [&_h4]:pb-2 [&_h4]:pl-6 [&_h4]:font-bold [&_h4]:text-xl [&_h4]:before:absolute [&_h4]:before:top-[16px] [&_h4]:before:left-1 [&_h4]:before:h-3 [&_h4]:before:w-3 [&_h4]:before:bg-brand-blue-600 [&_h4]:before:content-[""] [&_h4]:after:absolute [&_h4]:after:right-0 [&_h4]:after:bottom-1 [&_h4]:after:left-0 [&_h4]:after:h-px [&_h4]:after:bg-brand-blue-600 [&_h4]:after:content-[""] [&_[id="date-tag"]]:flex [&_[id="date-tag"]]:items-center [&_[id="date-tag"]]:gap-4 [&_[id="date-tag"]]:py-4 [&_[id="tag"]>a]:inline-block [&_[id="tag"]>a]:bg-teal-500 [&_[id="tag"]>a]:px-2 [&_[id="tag"]>a]:py-1 [&_[id="tag"]>a]:text-white [&_[id="tag"]>a]:text-xs [&_[id="tag"]>a]:no-underline [&_[id="blog-cat-label"]>a]:inline-block [&_[id="blog-cat-label"]>a]:bg-brand-blue-600 [&_[id="blog-cat-label"]>a]:px-2 [&_[id="blog-cat-label"]>a]:py-1 [&_[id="blog-cat-label"]>a]:text-white [&_[id="blog-cat-label"]>a]:text-xs [&_[id="blog-cat-label"]>a]:no-underline ',children:[a.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-2 py-4",children:[e.meta.categories.map(t=>a.jsx("div",{className:"ml-2 px-2 py-1 bg-primary-600 text-white font-semibold text-xs rounded",children:t.name},t.id)),e.meta.tags.map(t=>a.jsx("div",{className:"ml-2 px-2 py-1 bg-teal-500 text-white font-semibold text-xs rounded",children:t.name},t.id))]}),e.meta.featuredImage&&a.jsx("img",{src:e.meta.featuredImage.url,alt:e.meta.featuredImage.alt||e.title,width:e.meta.featuredImage.width,height:e.meta.featuredImage.height,className:"w-full mt-4 rounded-lg"}),a.jsx("div",{className:"lexical-content mt-8",onClick:u,dangerouslySetInnerHTML:{__html:e.html}}),e.meta.faq&&e.meta.faq.length>0&&a.jsxs("section",{className:"news-faq-section",children:[a.jsx("h2",{children:n("ãããã質å")}),a.jsx("div",{className:"space-y-4",children:e.meta.faq.map((t,r)=>a.jsxs("div",{className:"news-faq-item",children:[a.jsxs("div",{className:"news-faq-question",children:[n("Q. "),t.question]}),a.jsxs("div",{className:"news-faq-answer",children:[n("A. "),t.answer]})]},r))})]})]})]})}export{Q 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.