"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js");require("../../common/libraries/day.js");const s=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../hs-popup/hs-popup.js"))();const l=e.defineComponent({__name:"hs-popup-house",props:["Apis","baseStyle"],emits:["close","change"],setup(l,{emit:n}){const u=l,i=e.ref({name:"全部房屋",id:0}),a=e.ref([]),r=e.ref(!1),t=()=>{r.value=!r.value,r.value&&d()},d=()=>{var e,l,n;o.getApiLoading(null==(n=null==(l=null==(e=s.Apis)?void 0:e.Archive)?void 0:l.HouseOccupants)?void 0:n.List,{}).then((e=>{a.value=null==e?void 0:e.data,console.log(e)}))},v=()=>{i.value={name:"全部房屋",id:0},n("change",void 0)};return(o,s)=>{var l,d,p,c,m;return e.e({a:e.t(null==(l=i.value)?void 0:l.name),b:e.s((null==u?void 0:u.baseStyle)||{}),c:"全部房屋"===(null==(d=i.value)?void 0:d.name)},"全部房屋"===(null==(p=i.value)?void 0:p.name)?{d:e.p({type:"down",color:"#333",size:"12"})}:{},{e:e.o(t),f:"全部房屋"!==(null==(c=i.value)?void 0:c.name)},"全部房屋"!==(null==(m=i.value)?void 0:m.name)?{g:e.p({type:"close",color:"#666",size:"18"}),h:e.o(v)}:{},{i:e.f(a.value,((o,s,l)=>{var u,a,r;return e.e({a:e.t(null==(u=null==o?void 0:o.asset_house)?void 0:u.full_name),b:(null==(a=i.value)?void 0:a.id)===(null==o?void 0:o.asset_houses_id)},(null==(r=i.value)?void 0:r.id)===(null==o?void 0:o.asset_houses_id)?{c:"7d570232-3-"+l+",7d570232-2",d:e.p({type:"checkmarkempty",size:"20",color:"#2A7EFB"})}:{},{e:`key_${s}`,f:e.o((e=>(e=>{var o;i.value={name:null==(o=null==e?void 0:e.asset_house)?void 0:o.full_name,id:null==e?void 0:e.asset_houses_id},n("change",(null==e?void 0:e.asset_houses_id)||""),t()})(o)),`key_${s}`)})})),j:e.o(t),k:e.p({show:r.value,mode:"bottom",closeable:!0,round:20})})}}}),n=e._export_sfc(l,[["__scopeId","data-v-7d570232"]]);wx.createComponent(n);
