"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),n=require("./method.js");require("../../common/libraries/request.js");const l=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const s=require("../../gen/Enums.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/userUserLogin.js"),require("../../common/libraries/setTabBar.js"),!Array){(e.resolveComponent("hs-collection")+e.resolveComponent("hs-empty")+e.resolveComponent("up-avatar")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-popup-switch-house"))()}Math||((()=>"../../components/hs-collection/hs-collection.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+u+(()=>"../../components/hs-popup-switch-house/hs-popup-switch-house.js"))();const u=()=>"./components/CreateHousehold.js",a=e.defineComponent({__name:"index",setup(u){const a=e.ref(!1),r=l.useWeAppAuthStore(),t=e=>{var l;console.log(e,"sss"),o.useModel.formData.value.asset_houses_id=null==e?void 0:e.asset_houses_id,null==(l=n.method)||l.handleSearch(),a.value=!1};return e.onHide((()=>{a.value=!1})),e.onLoad((()=>{var e,l,s;o.useModel.formData.value.asset_houses_id=(null==(l=null==(e=null==r?void 0:r.data)?void 0:e.selected_house)?void 0:l.id)||"",null==(s=n.method)||s.handleSearch()})),e.onShareAppMessage((()=>({title:"邀请您加入我的房屋",path:"/pages/index/index",imageUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}))),e.onShareTimeline((()=>({title:"邀请您加入我的房屋",path:"/pages/index/index",imageUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}))),(l,u)=>{var r,i,d,h,v,p,m,c,_,g;return{a:e.t((null==(v=null==(h=null==(d=null==(i=null==(r=e.unref(o.useModel))?void 0:r.showData)?void 0:i.value)?void 0:d.house_relation)?void 0:h.asset_house)?void 0:v.full_name)||""),b:e.o((e=>a.value=!0)),c:e.t(null==(c=null==(m=null==(p=e.unref(o.useModel))?void 0:p.showData)?void 0:m.value)?void 0:c.house_occupants_num),d:e.f(null==(g=null==(_=e.unref(o.useModel))?void 0:_.listData)?void 0:g.value,((l,u,a)=>{var r,t;return e.e({a:e.t(null==l?void 0:l.label),b:!(null==(r=l.list)?void 0:r.length)},(null==(t=l.list)?void 0:t.length)?{}:{c:"afe28dc2-1-"+a},{d:e.f(l.list,((l,u,r)=>{var t,i,d,h,v,p,m,c;return e.e({a:"afe28dc2-2-"+a+"-"+r,b:e.t(null==l?void 0:l.name),c:"Owner"===(null==l?void 0:l.house_relation)},"Owner"===(null==l?void 0:l.house_relation)?{d:"afe28dc2-3-"+a+"-"+r,e:e.p({value:null==l?void 0:l.house_relation,Enums:e.unref(s.HouseOccupantsHouseRelationEnum),type:"primary"})}:{},{f:"NonOwner"===(null==l?void 0:l.house_relation)},"NonOwner"===(null==l?void 0:l.house_relation)?{g:"afe28dc2-4-"+a+"-"+r,h:e.p({value:null==l?void 0:l.residential_relation,Enums:e.unref(s.HouseOccupantsResidentialRelationEnum),type:"orange"})}:{},{i:"NonOwner"===(null==l?void 0:l.house_relation)&&"Owner"===(null==(h=null==(d=null==(i=null==(t=e.unref(o.useModel))?void 0:t.showData)?void 0:i.value)?void 0:d.house_relation)?void 0:h.house_relation)},"NonOwner"===(null==l?void 0:l.house_relation)&&"Owner"===(null==(c=null==(m=null==(p=null==(v=e.unref(o.useModel))?void 0:v.showData)?void 0:p.value)?void 0:m.house_relation)?void 0:c.house_relation)?{j:e.o((o=>{var s;return null==(s=e.unref(n.method))?void 0:s.handleRemove(l)}),u)}:{},{k:u})})),e:`item_${u}`})})),e:e.p({text:"U",fontSize:"18",bgColor:"#ffeade",color:"#333"}),f:e.o((e=>a.value=!1)),g:e.o(t),h:e.p({show:a.value,pageSource:"archive_houses"})}}}});a.__runtimeHooks=6,wx.createPage(a);
