1import{u as b}from"./7wDI_HF0.js";import{_ as x}from"./CfXGDlWm.js";import{_ as T}from"./DlqKviNY.js";import{g as q}from"./84M-Bk_D.js";import{i as w,o as u,c as y,a as s,b as r,I as U,x as l,u as B,g as C,J as L,f as N}from"./CBVuVATE.js";import{S as k,a as M,b as P}from"./0udINejZ.js";import{S as $}from"./D90v5NxZ.js";import{_ as g}from"./DlAUqK2U.js";import"./C-s4FLFn.js";import"./pb_TXfmz.js";import"./D2ILL_is.js";import"./DjAMax5V.js";import"./D_55ujGA.js";import"./DqyvCMfs.js";import"./Deuc0E8-.js";import"./D1ihiQni.js";import"./D1mFsme-.js";import"./D6qJbdzf.js";import"./B9yxvNgP.js";import"./BWPJAYnm.js";import"./DDkvXkMO.js";import"./BvDKD9B8.js";import"./BUbgdMAE.js";import"./C9PSfLM3.js";import"./CX9Zmyoh.js";import"./wy6QX1Ie.js";import"./Dua2NKO9.js";import"./C13c8upd.js";const D={class:"stores-page-pc"},V={class:"offline-stores-section"},j={class:"container"},E={class:"stores-content"},F={class:"map-wrapper"},H={class:"list-wrapper"},J={class:"contact-section"},O={class:"container"},z={class:"contact-grid"},A={__name:"StoresPage",setup(S){const e=l({provinceId:null,cityId:null,storeType:null}),n=l([]),c=l(!1),p=l(null),a=l({latitude:null,longitude:null}),I=async()=>{try{const t=await U();if(console.log("location result:",t),t&&(t.province_id&&(e.value.provinceId=t.province_id),t.city_id&&(e.value.cityId=t.city_id),t.location?.rectangle)){const[o,d]=t.location.rectangle.split(";"),[m,i]=o.split(",").map(Number),[Q,R]=d.split(",").map(Number);console.log("ç¨æ·ä½ç½®:",a.value)}}catch(t){console.error("è·åç¨æ·ä½ç½®å¤±è´¥:",t)}},v=async()=>{c.value=!0;try{const t={q:{}};e.value.provinceId&&(t.q.province_id_is=e.value.provinceId),e.value.cityId&&(t.q.city_id_is=e.value.cityId),t.q.category_is=2,e.value.storeType&&(t.q.store_type_is=e.value.storeType),a.value.latitude&&a.value.longitude&&(t.latitude=a.value.latitude,t.longitude=a.value.longitude);const o=await q(t);n.value=o.objects||[]}catch(t){console.error("å è½½é¨åºå表失败:",t),n.value=[]}finally{c.value=!1}},h=()=>{p.value=null,v()},_=t=>{p.value=t};return w(async()=>{await I(),v()}),(t,o)=>{const d=x,m=T;return u(),y("div",D,[s("div",V,[s("div",j,[o[3]||(o[3]=s("h1",{class:"section-title"},"å
¨å½æå¡ç½ç¹",-1)),o[4]||(o[4]=s("p",{class:"section-subtitle"},"å®ä½æ¨éè¿çæºæ¢°é©å½äºèç½æå¡ä¸å¿åç¹çº¦æå¡ç«ï¼éæ©å®åç»´ä¿®ãææ¯æ¯æçåçæå¡",-1)),r(k,{"province-id":e.value.provinceId,"onUpdate:provinceId":o[0]||(o[0]=i=>e.value.provinceId=i),"city-id":e.value.cityId,"onUpdate:cityId":o[1]||(o[1]=i=>e.value.cityId=i),"store-type":e.value.storeType,"onUpdate:storeType":o[2]||(o[2]=i=>e.value.storeType=i),onSearch:h},null,8,["province-id","city-id","store-type"]),s("div",E,[s("div",F,[r(M,{stores:n.value,"selected-store":p.value,onSelectStore:_},null,8,["stores","selected-store"])]),s("div",H,[r(P,{stores:n.value,loading:c.value,"selected-store":p.value,onSelectStore:_},null,8,["stores","loading","selected-store"])])])])]),r($),s("section",J,[s("div",O,[o[5]||(o[5]=s("h3",{class:"section-title"},"èç³»æä»¬",-1)),s("div",z,[r(d),r(m)])])])])}}},f=g(A,[["__scopeId","data-v-5d38414a"]]),G={class:"stores-page"},K={__name:"outlets",setup(S){const{isMobile:e}=b();return B({title:"æå¡ç½ç¹ - æºæ¢°é©å½å®æ¹ç½ç«"}),(n,c)=>(u(),y("div",G,[(u(),C(L((N(e),f))))]))}},Tt=g(K,[["__scopeId","data-v-df2730cb"]]);export{Tt 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.