1import{_ as j}from"./B4cSWeW7.js";import{_ as E}from"./D1OgKGAn.js";import{_ as F,a as O,b as W,c as A,d as $}from"./DY82-Gpr.js";import{_ as Q}from"./83UbShPP.js";import{d as R,k,u as I,l as U,o as c,c as i,b as d,w as x,s as q,v as z,a as n,t as h,F as f,r as L,i as S,q as D,f as G,_ as J}from"./DHeb6HKI.js";import{u as K,a as X}from"./BXL10jL1.js";const Y={key:1,class:"u-align-center"},Z={class:"c-result-primary-header"},ee={class:"c-result-primary-header__title"},te=["id"],se={class:"c-result-secondary-header__title"},oe={class:"c-result"},ne={class:"c-result-header"},ae={class:"c-result-header-left"},ce={class:"c-result__address"},re={class:"c-result-icons"},ie={class:"c-result-icons__item"},le={key:0,src:W,alt:""},_e={key:1,src:A,alt:""},ue={class:"c-result-icons__item"},de={key:0,src:$,alt:""},he={key:1,src:A,alt:""},fe={key:0,src:$,alt:""},me={key:1,src:A,alt:""},pe={class:"c-result-body"},ye={class:"c-result__tel"},ge=["innerHTML"],ve={class:"c-result__time"},ke=["innerHTML"],xe={class:".c-result__extra"},be=R({__name:"index",setup(Be){const{update:C}=K();C("åºèã»ãã©ã·æ
å ±"),X([{label:"åºèã»ãã©ã·æ
å ±",to:"/store/"}]);const g=k([]),b=k({}),B=k(!0),T=k(null);function p(t,s){const e=t.indexOf(s);return e===-1?t:t.substring(e+s.length)}function M(t,s){const e=t.indexOf(s);return e===1?t:t.substring(0,e)}const N=t=>{if(t&&typeof t=="string")return t.replace(/(\r\n|\n|\r)/g,"<br>")},w=t=>{var s;return((s=t[0])==null?void 0:s.anchor)!==void 0},H=()=>{const t={},s={æ±äº¬é½:[],ç¥å¥å·ç:[],å¼çç:[],åèç:[]};g.value.forEach(e=>{const m=e.area.value.slice(6),y=M(m,"_");e.to="/store/"+y+"/post/?id="+e.slug;let a=e.area.label;const l=p(e.area.value,"_");let r="";if(a.startsWith("æ±äº¬")){r="æ±äº¬é½";let o=s[r].find(u=>u.anchor===l);a=p(e.area.label,"é½"),o||(o={anchor:l,title:a,posts:[]},s[r].push(o)),o.posts.push(e)}else if(a.startsWith("ç¥å¥å·ç")){r="ç¥å¥å·ç";let o=s[r].find(u=>u.anchor===l);a=p(e.area.label,"ç"),o||(o={anchor:l,title:a,posts:[]},s[r].push(o)),o.posts.push(e)}else if(a.startsWith("å¼çç")){r="å¼çç";let o=s[r].find(u=>u.anchor===l);a=p(e.area.label,"ç"),o||(o={anchor:l,title:a,posts:[]},s[r].push(o)),o.posts.push(e)}else if(a.startsWith("åèç")){r="åèç";let o=s[r].find(u=>u.anchor===l);a=p(e.area.label,"ç"),o||(o={anchor:l,title:a,posts:[]},s[r].push(o)),o.posts.push(e)}else t[a]||(t[a]=[]),t[a].push(e)}),b.value={...t},Object.keys(s).forEach(e=>{Object.keys(s[e]).length&&(b.value[e]=s[e])})},V=q().public.customApiUrl,P=async(t,s)=>{var a;const e=t.service.join(","),m=((a=t.products)==null?void 0:a.join(","))||"",y=t.facility.join(",");try{B.value=!0;const r=await(await fetch(`${V}/store?service=${e}&products=${m}&facility=${y}`)).json();g.value=r,H()}catch(l){console.error("Error fetching data:",l)}finally{setTimeout(()=>{B.value=!1,setTimeout(()=>{s&&T.value&&T.value.scrollIntoView({behavior:"smooth"})},100)},10)}};return I(()=>({title:"åºèã»ãã©ã·æ
å ±"})),U(()=>{P({service:[],products:[],facility:[]},!1)}),(t,s)=>{const e=j,m=E,y=F,a=O,l=Q,r=G;return c(),i("div",null,[d(m,{"custom-class":"is-top"},{default:x(()=>[d(e,{"text-text":"ãå©ç¨ã®å°åã¨åºèåãã¯ãªãã¯ãã¦ååºèã®æ
å ±ã¨ãã©ã·ãããããã ããã"})]),_:1}),d(y),d(m,{"custom-class":"is-bottom"},{default:x(()=>[d(a,{onFilterApplied:P}),B.value?(c(),z(l,{key:0})):g.value.length===0?(c(),i("p",Y,"çµãè¾¼ã¿æ¡ä»¶ã«ä¸è´ããåºèã¯ããã¾ããã")):(c(),i("div",{key:2,id:"result",ref_key:"resultsRef",ref:T},[n("p",null,"å
¨"+h(g.value.length)+"ä»¶",1),(c(!0),i(f,null,L(b.value,(o,u)=>(c(),i(f,{key:u},[n("div",Z,[n("h2",ee,h(u),1)]),w(o)?(c(!0),i(f,{key:0},L(o,v=>(c(),i(f,{key:v.anchor},[n("div",{id:v.anchor,class:"c-result-secondary-header"},[n("h3",se,h(v.title),1)],8,te),n("ul",oe,[(c(!0),i(f,null,L(v.posts,_=>(c(),i("li",{key:_.slug,class:"c-result__item"},[n("div",ne,[n("div",ae,[n("h4",null,[d(r,{to:_.to,class:"c-result__name"},{default:x(()=>
1[S(h(_.title),1)]),_:2},1032,["to"])]),n("p",ce,h(_.address),1)]),d(r,{to:`${_.to}#flyer`,class:"c-result__flyer"},{default:x(()=>[S("ãã©ã·")]),_:2},1032,["to"])]),n("ul",re,[n("li",ie,[_.type[0].value==="summit"?(c(),i("img",le)):(c(),i("img",_e))]),n("li",ue,[_.type.length>1?(c(),i(f,{key:0},[_.type[1].value==="colmopia"?(c(),i("img",de)):(c(),i("img",he))],64)):(c(),i(f,{key:1},[_.type[0].value==="colmopia"?(c(),i("img",fe)):(c(),i("img",me))],64))])]),n("div",pe,[n("div",ye,[n("p",{innerHTML:N(_.tel)},null,8,ge),n("p",null,"ï¼å仿éï¼"+h(_.time)+"ï¼",1)]),n("div",ve,[n("p",{innerHTML:N(_.hours)},null,8,ke)]),n("div",xe,[n("p",null,h(_.parking),1)])])]))),128))])],64))),128)):D("",!0)],64))),128))],512))]),_:1})])}}}),Ce=J(be,[["__scopeId","data-v-ddbc1aa8"]]);export{Ce 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.