1import{c as $,C as b,d as D,t as E}from"./BMTa7n7v.js";import{u as j,e as F,f as V,c as u,a,b as m,g as t,F as L,r as M,h as A,i as k,j as J,k as x,l as z,m as r,n as G,o as n}from"./BqtG95X7.js";import{m as H}from"./BuM63MbF.js";import{C as I}from"./CJ9iDN_j.js";import{C as w}from"./C6CahiiA.js";import{u as U}from"./Dof8Dxjo.js";import{u as q}from"./F6xjuVwI.js";import{u as K}from"./OOm6r_nU.js";import{u as Q}from"./CuN3dpAq.js";import"./6j9y6l-W.js";import"./BpLX44cB.js";const W={class:"contents"},X={class:"contents__inner"},Y={key:0},Z={class:"service__others"},tt="service",B=3,pt={__name:"service",async setup(et){let i,p;const d=z(),N=j(),l=U(),{sortPostsByDate:g}=q(),{filterPostsByCategoryName:y}=K(),f=x(null),O=G.navigationList.filter,_=$.columnList,v=x(B),{data:R}=([i,p]=F(async()=>J("posts-service",async()=>{if(d.public.MODE==="preview"){if(l.allPosts.length===0){const e=await $fetch("/api/category/service");return g(e)}}else l.allPosts.length===0&&await l.fetchPostsFromJSON();return g(y(l.allPosts,e=>e.toLowerCase()===tt))})),i=await i,p(),i),C=r(()=>R.value??[]),c=r(()=>Object.fromEntries(_.map(s=>[s.id,E(y(C.value,e=>e.toLowerCase()===s.label),v.value)]))),S=r(()=>D(C.value,Object.values(c.value).flat(),"id")),h=r(()=>O.find(({path:e})=>new RegExp(`(${e}|${e}/)$`).test(N.path))?.labelJapanese||""),T=r(()=>Object.values(c.value).some(s=>s.length>0));V(()=>{f.value&&(v.value=getComputedStyle(f.value.$el).getPropertyValue("grid-template-columns").split(" ").length||B)});const P=H(d.public.SITE_URL).service;return Q({title:P.title,meta:(P.meta||[]).map(({hid:s,...e})=>({key:s,...e}))}),(s,e)=>(n(),u("div",null,[a("div",W,[a("div",X,[m(t(I),{title:t(h)},null,8,["title"]),a("div",null,[(n(!0),u(L,null,M(t(_),o=>(n(),u(L,{key:o.id},[t(c)[o.id].length>0?(n(),u("section",Y,[m(t(b),{text:o.title,"sub-text":o.subTitle},null,8,["text","sub-text"]),m(t(w),{posts:t(c)[o.id]},null,8,["posts"])])):k("",!0)],64))),128)),a("div",Z,[a("section",null,[t(T)?(n(),A(t(b),{key:0,text:`${t(h)}ä¸è¦§`},null,8,["text"])):k("",!0),m(t(w),{ref_key:"contentsListRef",ref:f,posts:t(S)},null,8,["posts"])])])])])])]))}};export{pt 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.