PageSourceSearch

https://front-paulsmith-ec.vercel.app/_nuxt/C4TpIAGL.js

js front-paulsmith-ec.vercel.app collected 2026-10-03 06:59:59 UTC 5,001 bytes, 1 lines download raw bytes

1import{_ as L,i as V,w as k,s as $,A as j,b0 as H,c as m,z,a as W,b as N,u as l,e as X,h as G,F as Q,aK as Z,v as D,ag as P,o as I,an as q,ao as ee}from"./BoIX-Qb1.js";import{S as ae}from"./DQb2Vg97.js";const te=f=>(q("data-v-f527dea3"),f=f(),ee(),f),se=te(()=>N("link",{href:"https://use.fontawesome.com/releases/v5.0.1/css/all.css",rel:"stylesheet"},null,-1)),re={class:"shop-locator-root page-main"},ne=Z('<div class="container" data-v-f527dea3><div class="row" data-v-f527dea3><div class="col-12 d-none d-md-block" data-v-f527dea3><ul class="breadcrumb" data-v-f527dea3><li class="breadcrumb-item item home" style="font-family:FontAwesome;" data-v-f527dea3><a href="/" target="_self" data-v-f527dea3>ホーム</a></li><li class="breadcrumb-item item category211" data-v-f527dea3><i class="fa fa-long-arrow-right pl-2" data-v-f527dea3></i><a href="/shop-locator" target="_self" data-v-f527dea3>ショップロケーター</a><i class="fa fa-long-arrow-right pl-2" data-v-f527dea3></i></li><li class="breadcrumb-item active" data-v-f527dea3>検索結果</li></ul></div></div></div>',1),ie={__name:"search",async setup(f){let o,_;const B=V(),E={url:"https://paulsmith.g.kuroco-img.app/files/user/shop-news-top.jpg"},{data:R}=([o,_]=k(async()=>D("shops-metadata",async()=>null)),o=await o,_(),o),s=B.query??{},p=$(null),y=$(null),M=async()=>{var e;const t=[];s["area-button"]&&t.push(`region="${s["area-button"]}"`),s!=null&&s.line&&(s==null?void 0:s.shop_type)!=="shop"&&t.push(`available_items="${s==null?void 0:s.line}"`),s!=null&&s.shop_type&&t.push(`shop_type contains "${s==null?void 0:s.shop_type}"`);const a=t.join(" and ");try{const n=P(),i=(e=n.public.kurocoBaseUrl)==null?void 0:e.replace(/\/$/,"");if(!i)return console.error("Kuroco base URL is not configured"),[];const r=new URLSearchParams;r.set("cnt","9999"),a&&r.set("filter",a);const d=n.public.kurocoApiKey,c=await $fetch(`${i}/shops?${r.toString()}`,{headers:d?{"X-RCMS-API-ACCESS-TOKEN":d}:{}});return((c==null?void 0:c.list)??[]).filter(U)}catch(n){return console.error("Error fetching filtered shops:",n),[]}},U=t=>{if(!(s!=null&&s.shop_type)||!Array.isArray(t==null?void 0:t.shop_type))return!0;const a=s.shop_type!=="shop"?s.line:"";return t.shop_type.some((e,n)=>{var i,r;return(e==null?void 0:e.key)===s.shop_type&&(!a||((r=(i=t.available_items)==null?void 0:i[n])==null?void 0:r.key)===a)})};j(async()=>{var e;const t=await M(),a=u.value??((e=H("location-master").data)==null?void 0:e.value);if(a){const n=new Map,i=new Map;a.forEach((r,d)=>{r[3]&&!n.has(r[3])&&n.set(r[3],d),r[6]&&i.set(`${r[3]}|${r[6]}`,d)}),t.sort((r,d)=>{var b,S,w,A;const c=((b=r.prefectures)==null?void 0:b.label)??"",h=((S=d.prefectures)==null?void 0:S.label)??"",g=n.get(c)??1/0,v=n.get(h)??1/0;if(g!==v)return g-v;const O=((w=r.municipalities)==null?void 0:w.label)??"",x=((A=d.municipalities)==null?void 0:A.label)??"",T=i.get(`${c}|${O}`)??1/0,J=i.get(`${h}|${x}`)??1/0;return T-J})}p.value=t,y.value=C(t)});const C=t=>{const a=[];return t?(t.forEach(e=>{var n;a.push({topics_id:e.topics_id,title:e.title,slug:e.slug,address_line_1:e.address_line_1,address_line_2:e.address_line_2,phone_number:e.phone_number,main_phone_number:e.main_phone_number,daihyo:e.daihyo,shop_address:e.shop_address,prefectures:e.prefectures,municipalities:e.municipalities,memo:e.memo,other_info:e.other_info,shop_name:e.shop_name,area:e.area,location:e.location,floor_phone_number:e.floor_phone_number,available_items:e.available_items,shop_type:e.shop_type,opening_hour:JSON.stringify({monday:e.monday,tuesday:e.tuesday,wednesday:e.wednesday,thursday:e.thursday,friday:e.friday,saturday:e.saturday,sunday:e.sunday}),opening_hours:JSON.stringify({weekday:{MONDAY:e.monday,TUESDAY:e.tuesday,WEDNESDAY:e.wednesday,THURSDAY:e.thursday,FRIDAY:e.friday,SATURDAY:e.saturday,SUNDAY:e.sunday}}),main_image:((n=e.main_image)==null?void 0:n.url)||""})}),a):[]},Y=m(()=>R.value),{data:u}=([o,_]=k(async()=>D("location-master",async()=>null,{getCachedData:(t,a)=>a.payload.data[t]??a.static.data[t]})),o=await o,_(),o),F=m(()=>{if(!u.value)return[];const t=new Set;return u.value.map(a=>({key:a[2],value:a[3]})).filter(a=>!t.has(a.key)&&/^\d+$/.test(a.key)?(t.add(a.key),!0):!1)}),K=m(()=>{if(!u.value)return[];const t=new Set;return u.value.map(a=>{if(!t.has(a[0])&&/^\d+$/.test(a[0]))return t.add(a[0]),{key:a[0],value:a[1]}}).filter(a=>a!=null)});return z({title:"検索結果 | ショップロケーター | Paul Smith",meta:[{name:"description",content:"ショップロケーター 検索結果"}],link:[{rel:"stylesheet",href:"/css/shop-locator.css"}],bodyAttrs:{class:"shop-locator-page"}}),(t,a)=>(I(),W(Q,null,[se,N("div",re,[ne,l(p)?(I(),X(ae,{key:0,"header-image":E,"shops-metadata":l(Y),"is-search":!0,"filtered-shops":l(y),"selected-fields":l(s),"ordered-
1prefectures":l(F),regions:l(K)},null,8,["shops-metadata","filtered-shops","selected-fields","ordered-prefectures","regions"])):G("",!0)])],64))}},ce=L(ie,[["__scopeId","data-v-f527dea3"]]);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.