1import{y as H,X as P,Y as F,d as A,s as L,o,f as l,K as B,j as u,v as S,A as b,w as M,g as c,h as $,O as V,F as x,t as N,c as X,k as D,D as J,l as K,b as Y,e as j,I as G,J as q,r as T,_ as U,a as Q,S as W,P as Z}from"./CvFPpNjw.js";import{u as k,E as tt}from"./D6XLHUet.js";import{V as et}from"./BiGhy6XJ.js";import{P as st}from"./D-AMl5F_.js";const O=H("cases",{state:()=>({currentSortCategory:"all",showNum:P}),actions:{setCurrentSortCategory(p){this.currentSortCategory=p},incrementShowNum(){this.showNum+=F},resetShowNum(){this.showNum=P}}}),R=A({__name:"sortItem",props:{sector:{}},setup(p){const t=O(),{currentSortCategory:n}=L(t),s=p,i=b(()=>s.sector.toUpperCase()===n.value.toUpperCase()),a=()=>{i.value||t.setCurrentSortCategory(s.sector)};return(C,d)=>(o(),l("li",{class:B(["sort-item",{"is--active":u(i)}]),onClick:a},S(s.sector),3))}}),ot={class:"sort size--fix show-trigger general-show-anim"},at={class:"sort-list"},rt=A({__name:"sort",async setup(p){let t,n;const s=D(),{data:i}=([t,n]=M(async()=>k(async()=>{let a=`https://${s.public.serviceDomain}.microcms.io/api/v1/cases-sector?limit=100`;return await $fetch(a,{headers:{"X-MICROCMS-API-KEY":`${s.apiKey}`}})},"$8XUpj7u7lU")),t=await t,n(),t);return(a,C)=>(o(),l("section",ot,[c("ul",at,[$(R,{sector:u(V)},null,8,["sector"]),(o(!0),l(x,null,N(u(i)?.contents,d=>(o(),X(R,{sector:d.title},null,8,["sector"]))),256))])]))}}),nt=["href"],it={class:"image"},ct=["src","alt"],lt={class:"info"},ut={class:"category-list"},_t={class:"category-item"},mt={class:"info-title"},pt={class:"info-text"},dt={class:"info-partner__list"},ht={class:"info-partner__item"},ft=A({__name:"casesItem",props:{isTop:{type:Boolean},item:{},index:{}},async setup(p){let t,n;const s=O(),i=D(),{query:a}=J(),{currentSortCategory:C,showNum:d}=L(s),e=p;var h=e.item;a.draftKey&&([t,n]=M(async()=>k(async()=>{let w=`https://${i.public.serviceDomain}.microcms.io/api/v1/cases/${h.id}?draftKey=${a.draftKey}`;h=await $fetch(w,{headers:{"X-MICROCMS-API-KEY":`${i.apiKey}`},query:{draftKey:a.draftKey}})},"$A0fNC_Vurt")),await t,n());const f=K("isEn"),g=T(null);(!h.publishedAt||h.publishedAt&&h.revisedAt)&&g.value?.classList.add("dn");const E=b(()=>e.index<d.value);return Y(C,()=>{e.isTop||g.value===null||g.value.classList.remove("is--show")}),j(()=>{g.value?.classList.add("is--show")}),(w,I)=>G((o(),l("li",{class:B(["cases-item show-trigger general-show-anim",{"is--large":e.isTop}]),ref_key:"el",ref:g},[c("a",{href:`/cases/${e.item.id}/`,class:"inner"},[c("div",it,[c("img",{src:e.item.eyecatch_image.url,alt:e.item.title,class:"thumb"},null,8,ct)]),c("div",lt,[c("ul",ut,[(o(!0),l(x,null,N(e.item.sectors,y=>(o(),l("li",_t,S(y.title),1))),256))]),c("h3",mt,S(u(f)?e.item.title_en:e.item.title),1),c("p",pt,S(u(f)?e.item.lead_text_en:e.item.lead_text),1),c("ul",dt,[(o(!0),l(x,null,N(u(f)?e.item.partners_en:e.item.partners_jp,y=>(o(),l("li",ht,S(y.partners_name),1))),256))])])],8,nt)],2)),[[q,u(E)]])}}),gt=U(ft,[["__scopeId","data-v-3b3ad62e"]]),vt={class:"container size--fix"},Ct={class:"cases-list"},St={class:"ct"},wt=A({__name:"casesList",async setup(p){let t,n;const s=Q(),i=O(),{currentSortCategory:a,showNum:C}=L(i),d=D(),e=K("isEn"),h=T([]),f=T([]),{data:g}=([t,n]=M(async()=>k(()=>{const _=async(m=100,v=0)=>{const r=await $fetch(`https://${d.public.serviceDomain}.microcms.io/api/v1/cases?limit=${m}&offset=${v}${e?"&filters=is_english_enabled[equals]true":""}`,{headers:{"X-MICROCMS-API-KEY":d.apiKey}});if(r.offset+r.limit<r.totalCount){const z=await _(r.limit,r.offset+r.limit);return[...r.contents,...z]}return r.contents};return _()},"$1lDA_PtQbd")),t=await t,n(),t),E=b(()=>g.value.sort((_,m)=>{const v=_.overwritten_pubdate&&_.overwritten_pubdate!==""?_.overwritten_pubdate:_.publishedAt,r=m.overwritten_pubdate&&m.overwritten_pubdate!==""?m.overwritten_pubdate:m.publishedAt;return v<r?1:-1}));
1h.value=E.value,f.value=E.value,j(()=>{w()}),Y(a,()=>{setTimeout(()=>{i.resetShowNum(),w(),setTimeout(()=>{s.setShowElementThreshold(1.1),s.toggleScrollTrigger(),setTimeout(()=>{s.setShowElementThreshold(W)},200)},200)},800)});const w=()=>{f.value=h.value.filter(_=>{const m=_.sectors.filter(v=>v.title.toUpperCase()===a.value.toUpperCase());return a.value.toUpperCase()===V.toUpperCase()||m.length>0})},I=b(()=>C.value<f.value.length),y=()=>{i.incrementShowNum(),setTimeout(()=>{s.toggleScrollTrigger()},100)};return(_,m)=>(o(),l("section",vt,[c("ul",Ct,[(o(!0),l(x,null,N(u(f),(v,r)=>(o(),X(gt,{item:v,"is-top":!1,index:r},null,8,["item","index"]))),256))]),G($(et,{class:"show-trigger general-show-anim",onClick:y},null,512),[[q,u(I)]]),c("div",St,S(u(d).public.test),1)]))}}),yt=U(wt,[["__scopeId","data-v-b4e589cb"]]),$t={class:"article"},At=A({__name:"cases",setup(p){const t=K("LANG");return tt({lang:t,path:"cases/",titleId:"cases-meta-title",descriptionId:"cases-meta-desc",filename:"cases_ogp.png"}),(n,s)=>(o(),l("article",$t,[$(rt),$(yt),$(st,{"current-page":u(Z).CASES},null,8,["current-page"])]))}}),It=U(At,[["__scopeId","data-v-7f8025f1"]]);export{It as _};
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.