"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/userUserLogin.js"),n=require("../model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js");const l=e.defineComponent({__name:"Classification",props:["item"],setup(l){const i=l,r=[{label:"房屋缴费",icon:"house_icon.svg",url:"/CUSTOMER/list_house/index",key:""},{label:"新增工单",icon:"workorder_icon.svg",url:"/ME/work_order_home/index",key:""},{label:"任务中心",icon:"task_icon.svg",url:"/INDEX/task/list/index",key:"houseWorkOrderCount"},{label:"打卡考勤",icon:"CheckInIcon.svg",url:"/ME/attendance/my_schedules/index",key:""},{label:"水印相机",icon:"WatermarkCamera.svg",url:"/INDEX/watermark_camera/index",key:""},{label:"客户管理",icon:"user_icon.svg",url:"/CUSTOMER/list_user/index",key:""},{label:"住户登记",icon:"household_registration.svg",url:"/CUSTOMER/bind_house_form/index",key:""},{label:"仪表抄表",icon:"meter_reading_icon.svg",url:"/pages/public/asset_houses/index?type=meter",key:""},{label:"突发事件",icon:"emergency_icon.svg",url:"/ME/emergency/list/index",key:"emergencyEventCount"},{label:"项目公告",icon:"announcement.svg",url:"/ME/announcement/list/index",key:"unread_count"}],u=e=>r[e];return(l,r)=>({a:e.f(null==i?void 0:i.item,(l,i,r)=>{var s,t,a,d,c,v,m,g,_,k,p,y,b,h;return e.e({a:`/static/svg/${null==(s=u(null==l?void 0:l.path))?void 0:s.icon}`,b:(null==l?void 0:l.key)&&(null==(c=null==(a=null==(t=e.unref(n.useModel))?void 0:t.IndexCount)?void 0:a.value)?void 0:c[null==(d=u(null==l?void 0:l.path))?void 0:d.key])},(null==l?void 0:l.key)&&(null==(_=null==(m=null==(v=e.unref(n.useModel))?void 0:v.IndexCount)?void 0:m.value)?void 0:_[null==(g=u(null==l?void 0:l.path))?void 0:g.key])?{c:e.t((null==(b=null==(p=null==(k=e.unref(n.useModel))?void 0:k.IndexCount)?void 0:p.value)?void 0:b[null==(y=u(null==l?void 0:l.path))?void 0:y.key])||0)}:{},{d:e.t(null==(h=u(null==l?void 0:l.path))?void 0:h.label),e:`items_${i}`,f:e.o(n=>{var i;return(n=>{var l;n?e.index.navigateTo({url:(null==(l=o.getUser)?void 0:l.getLoginStatus())?n||"":"/pages/login"}):e.index.showModal({title:"提示",content:"该功能暂未开放，敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})})(null==(i=u(null==l?void 0:l.path))?void 0:i.url)},`items_${i}`)})})})}}),i=e._export_sfc(l,[["__scopeId","data-v-bc782809"]]);wx.createComponent(i);
