1import{_ as C}from"./Dx_aRpOT.js";import{h as T,n as M,E as _,r as A,s as $,o as a,c as b,w as k,k as n,a as c,x as g,d as x,e as v,t as r,F as f,b as h,y as w,P as N,I as S,z as L,J as R}from"./D3vvrfsG.js";import{_ as B}from"./CJ3PFpdD.js";import{n as I}from"./BPWNG458.js";import{p as P}from"./DAkePCaA.js";const U={all:{slug:"all",name:"ãã¹ã¦"},categories:[{slug:"train",name:"é»è»"},{slug:"bus",name:"ãã¹"},{slug:"future",name:"æªæ¥ã¸ã®åãçµã¿"},{slug:"fan",name:"ç¸éãã¡ã³"},{slug:"distribution",name:"æµé"},{slug:"realestate",name:"ä¸åç£"},{slug:"hotel",name:"ããã«"},{slug:"sustainability",name:"ãµã¹ããããªãã£"},{slug:"important",name:"éè¦ãªãç¥ãã"},{slug:"other",name:"ãã®ä»"}]},E={all:{slug:"all",name:"ãã¹ã¦"},categories:[{slug:"train",name:"é»è»"},{slug:"bus",name:"ãã¹"},{slug:"future",name:"æªæ¥ã¸ã®åãçµã¿"},{slug:"fan",name:"ç¸éãã¡ã³"},{slug:"distribution",name:"æµé"},{slug:"realestate",name:"ä¸åç£"},{slug:"hotel",name:"ããã«"},{slug:"sustainability",name:"ãµã¹ããããªãã£"},{slug:"other",name:"ãã®ä»"}]},F={all:{slug:"all",name:"ãã¹ã¦"},categories:[{slug:"sagami-railway",name:"ç¸æ¨¡éé"},{slug:"sotetsu-bus",name:"ç¸éãã¹"}]},V={key:0,class:"news-list-item__image"},K={class:"news-list-item__info"},O={key:0},j=["datetime"],z={key:2,class:"news-list-item__tags"},H={__name:"NewsListItem",props:{post:{type:Object,required:!0},titleTag:{type:String,default:"div",validator:s=>["h1","h2","h3","h4","h5","div","span"].includes(s)}},setup(s){const{$formatDate:i}=M(),e=s,o=_(()=>{if(!e.post.categories)return[];if(!e.post.categories.length)return[];let l=[];return e.post.type==="news"?l=U.categories:e.post.type==="pressrelease"?l=E.categories:e.post.type==="recruit"&&(l=F.categories),l.filter(p=>e.post.categories.includes(p.slug))}),m=_(()=>e.post.isArchive===!0),d=_(()=>{if(e.post.link)return e.post.link;if(e.post.isArchive){const p=(e.post.type==="news"?I:P)[e.post.slug];if(p)return p}return e.post[":permalink"]}),t=A(null),D=L();return $(async()=>{if(e.post.date)return;const l=D.public.microcmsManagementApiKey;if(!l)return;const p=new URL(`https://sotetsu.microcms-management.io/api/v1/contents/${e.post.type}/${encodeURIComponent(e.post.slug)}`),u=await(await fetch(p,{headers:{"X-MICROCMS-API-KEY":l}})).json();t.value=u}),(l,p)=>{const y=C;return a(),b(y,{to:d.value,target:m.value?"_blank":"",class:S(["news-list-item",[...o.value.map(u=>`is-category-${u.slug}`),{"is-thumb":!!s.post.thumb}]])},{default:k(()=>[s.post.thumb?(a(),n("div",V,[c(B,{src:s.post.thumb},null,8,["src"])])):g("",!0),x("div",K,[t.value?(a(),n("time",O,[v(r(t.value.status[0]==="DRAFT"?"[ç¶æ
: 䏿¸ã]":t.value.status[0]==="PUBLISH"?"[ç¶æ
: å
¬éä¸]":t.value.status[0]==="CLOSED"?"[ç¶æ
: å
¬éçµäº]":t.value.status[0]==="PUBLISH_AND_DRAFT"?"[ç¶æ
: å
¬éä¸ï¼ä¸æ¸ã]":"[ç¶æ
: å
¬éç¶æ
䏿]")+" ",1),t.value.reservationTime&&t.value.reservationTime.publishTime?(a(),n(f,{key:0},[v(" [äºç´æç¨¿: "+r(h(i)(t.value.reservationTime.publishTime))+"] ",1)],64)):g("",!0),t.value.reservationTime&&t.value.reservationTime.stopTime?(a(),n(f,{key:1},[v(" [äºç´ä¸æ¸ã: "+r(h(i)(t.value.reservationTime.stopTime))+"] ",1)],64)):g("",!0),t.value.publishedAt?(a(),n(f,{key:2},[v(" [å
¬éæ¥: "+r(h(i)(t.value.publishedAt))+"] ",1)],64)):g("",!0)])):(a(),n("time",{key:1,datetime:s.post.date},r(h(i)(s.post.date)),9,j)),o.value.length||s.post.tags&&s.post.tags.length?(a(),n("ul",z,[(a(!0),n(f,null,w(o.value,u=>(a(),n("li",{key:u.slug},r(u.name),1))),128)),(a(!0),n(f,null,w(s.post.tags||[],u=>(a(),n("li",{key:u},r(u),1))),128))])):g("",!0),(a(),b(N(s.titleTag),{class:"news-list-item__title"},{default:k(()=>[v(r(s.post.title),1)]),_:1}))])]),_:1},8,["to","target","class"])}}},W=T(H,[["__scopeId","data-v-d0802fbf"]]),Y=R({setup(s,{slots:i}){const e=A(-1);return()=>c("div",{class:"news-list"},[c("ul",null,[i.default&&i.default().filter(o=>o.type!==Symbol.for("v-txt")).map((o,m)=>o.type===Symbol.for("v-fgt")&&o.children?o.children.map((d,t)=>
1c("li",{key:t,class:{"is-active":t===e.value}},[c("div",{onmouseenter:()=>e.value=t,onmouseleave:()=>e.value=-1,ontouchstart:()=>e.value=t,ontouchend:()=>e.value=-1,ontouchcancel:()=>e.value=t},[d])])):c("li",{key:m,class:{"is-active":m===e.value}},[c("div",{onmouseenter:()=>e.value=m,onmouseleave:()=>e.value=-1,ontouchstart:()=>e.value=m,ontouchend:()=>e.value=-1,ontouchcancel:()=>e.value=m},[o])]))]),i.buttons&&c("div",{class:"news-list__buttons"},[i.buttons()])])}},"$DY0hxeh3u7"),Z=T(Y,[["__scopeId","data-v-011d249c"]]);export{W as _,Z as a,E as b,U as c,F as d};
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.