"use strict";const e=require("../../../../common/vendor.js"),n=require("../../../../gen/Enums.js"),o=require("../model.js");if(require("../../../../common/libraries/day.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const l=e.defineComponent({__name:"PersonnelList",setup:l=>(l,i)=>({a:e.f(e.unref(o.useModel).listData.value,((o,i,t)=>{var s,u;return e.e({a:null==(s=null==o?void 0:o.list)?void 0:s.length},(null==(u=null==o?void 0:o.list)?void 0:u.length)?{b:e.t(null==o?void 0:o.label),c:e.f(null==o?void 0:o.list,((o,i,s)=>e.e({a:e.t(null==o?void 0:o.name),b:e.t(null==o?void 0:o.phone),c:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{}:{d:"9e55057e-0-"+t+"-"+s,e:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),value:null==o?void 0:o.residential_relation})},{f:"9e55057e-1-"+t+"-"+s,g:e.o((e=>{var n;return null==(n=l.method)?void 0:n.handleSetContact(o)}),`personnel_${i}`),h:e.o((n=>{var l;(l=null==o?void 0:o.phone)&&e.index.makePhoneCall({phoneNumber:l})}),`personnel_${i}`),i:e.o((n=>{return l=null==o?void 0:o.phone,void e.index.setClipboardData({data:l,success(n){setTimeout((()=>{e.index.qy.navigateToAddCustomer({success:function(){}})}),1e3)}});var l}),`personnel_${i}`),j:e.o((n=>{return l=null==o?void 0:o.id,void e.index.navigateTo({url:`/CUSTOMER/show/index?id=${l}`});var l}),`personnel_${i}`),k:`personnel_${i}`}))),d:e.p({type:"star-filled",size:"20",color:(null==o?void 0:o.is_contact)?"#FFD666":"#DCDFE6"}),e:e.t((null==o?void 0:o.is_contact)?"常用联系人":"设为常用")}:{},{f:`item_${i}`})}))})}),i=e._export_sfc(l,[["__scopeId","data-v-9e55057e"]]);wx.createComponent(i);
