"use strict";var e=(e,t,r)=>new Promise(((a,i)=>{var n=e=>{try{l(r.next(e))}catch(t){i(t)}},o=e=>{try{l(r.throw(e))}catch(t){i(t)}},l=e=>e.done?a(e.value):Promise.resolve(e.value).then(n,o);l((r=r.apply(e,t)).next())}));const t=require("../../../common/vendor.js"),r=require("../../../utils/commUtils.js"),a=require("../../../service/personalService.js"),i=require("../../../service/mapService.js");Math||(n+l+o)();const n=()=>"../../../components/RecommendedServiceCard.js",o=()=>"../../../components/EmptyState.js",l=()=>"../../../components/LocalLoader.js",c={__name:"recommendedServices",setup(n){const o=t.ref(!1),l=t.ref([]),c=()=>e(this,null,(function*(){const e=yield i.getLocation(),t=yield a.getNearbyServices(e.latitude,e.longitude);l.value=t}));return t.onLoad((()=>e(this,null,(function*(){o.value=!0,yield c(),o.value=!1})))),(e,a)=>t.e({a:l.value.length>0},l.value.length>0?{b:t.f(l.value,((e,a,i)=>({a:"f0057377-0-"+i,b:t.p({image:t.unref(r.imgUrl)(e.url),title:e.serviceName,description:e.description,price:e.price}),c:t.o((r=>(e=>{t.index.navigateTo({url:"/pages/service/detail?id="+e.id})})(e)),a),d:a})))}:{},{c:t.o((e=>o.value=e)),d:t.p({modelValue:o.value}),e:0==l.value.length&&!o.value},(0!=l.value.length||o.value,{}))}},s=t._export_sfc(c,[["__scopeId","data-v-f0057377"]]);wx.createComponent(s);