"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js");require("../../../common/libraries/getPageConfig.js");const u=require("../../../common/libraries/day.js");require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js");const r=e.defineComponent({__name:"ContactButler",setup(r){const a=()=>{var r,a,n;if("Online"!==(null==(r=u.checkWorkStatus())?void 0:r.value))return e.index.showToast({title:"当前物业不在线",icon:"none"});(null==(a=o.useModel.houseKeeperData.value)?void 0:a.phone)?e.index.makePhoneCall({phoneNumber:(null==(n=o.useModel.houseKeeperData.value)?void 0:n.phone)||""}):e.index.showToast({title:"暂无联系电话",icon:"none"})};return(r,n)=>{var s,t,l,i,d,c,m,v;return e.e({a:null==(s=e.unref(o.useModel).houseKeeperData.value)?void 0:s.name},(null==(t=e.unref(o.useModel).houseKeeperData.value)?void 0:t.name)?{b:(null==(l=e.unref(o.useModel).houseKeeperData.value)?void 0:l.avatar)&&(null==(d=null==(i=e.unref(o.useModel).houseKeeperData.value)?void 0:i.avatar[0])?void 0:d.url)||"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K7GYWP13PR4WWVKEB47EG1KA.png",c:e.t((null==(c=e.unref(o.useModel).houseKeeperData.value)?void 0:c.name)||"暂无"),d:e.t(null==(m=e.unref(u.checkWorkStatus)())?void 0:m.status),e:e.n(`status status_${null==(v=e.unref(u.checkWorkStatus)())?void 0:v.value}`),f:e.o(a)}:{})}}}),a=e._export_sfc(r,[["__scopeId","data-v-390bc268"]]);wx.createComponent(a);
