"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js"),l=require("../method.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup")+e.resolveComponent("hs-button")+e.resolveComponent("hs-popup-custom"))()}Math||((()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-popup/hs-popup.js")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const n=e.defineComponent({__name:"CreateHousehold",setup(n){const u=e.ref(!1),s=e.ref(!1),i=()=>{var l,n,u,s,i,r,t,a,d;let v=`&id=${null==(s=null==(u=null==(n=null==(l=o.useModel)?void 0:l.showData)?void 0:n.value)?void 0:u.house_relation)?void 0:s.asset_houses_id}&houseName=${null==(d=null==(a=null==(t=null==(r=null==(i=o.useModel)?void 0:i.showData)?void 0:r.value)?void 0:t.house_relation)?void 0:a.asset_house)?void 0:d.full_name}`;e.index.navigateTo({url:`/INDEX/binding/index?source=house_detail${v}`})};return e.onHide((()=>{u.value=!1})),(n,r)=>{var t,a,d,v,p,m,h,c,_,b,j,f,w,q,C,D,M,y,g,x,A,z;return e.e({a:"NonOwner"===(null==(v=null==(d=null==(a=null==(t=e.unref(o.useModel))?void 0:t.showData)?void 0:a.value)?void 0:d.house_relation)?void 0:v.house_relation)},"NonOwner"===(null==(c=null==(h=null==(m=null==(p=e.unref(o.useModel))?void 0:p.showData)?void 0:m.value)?void 0:h.house_relation)?void 0:c.house_relation)?{b:e.o((e=>s.value=!0))}:{},{c:"Owner"===(null==(f=null==(j=null==(b=null==(_=e.unref(o.useModel))?void 0:_.showData)?void 0:b.value)?void 0:j.house_relation)?void 0:f.house_relation)},"Owner"===(null==(D=null==(C=null==(q=null==(w=e.unref(o.useModel))?void 0:w.showData)?void 0:q.value)?void 0:C.house_relation)?void 0:D.house_relation)?{d:e.p({type:"plusempty",color:"#999",size:"15"}),e:e.o((e=>u.value=!0))}:{},{f:e.p({type:"personadd-filled",size:"30",color:"#2A7EFB"}),g:e.o(i),h:e.p({type:"weixin",size:"30",color:"#28C445"}),i:e.o((e=>u.value=!1)),j:e.p({show:u.value,mode:"bottom",closeable:!0,round:20}),k:e.t((null==(A=null==(x=null==(g=null==(y=null==(M=e.unref(o.useModel))?void 0:M.showData)?void 0:y.value)?void 0:g.house_relation)?void 0:x.asset_house)?void 0:A.full_name)||""),l:e.o(null==(z=e.unref(l.method))?void 0:z.handleUnbind),m:e.p({label:"确定解除",size:"md",type:"primary"}),n:e.o((e=>s.value=!1)),o:e.o((e=>s.value=!1)),p:e.p({show:s.value,mode:"center",closeable:!0,title:"再次确认",round:15})})}}}),u=e._export_sfc(n,[["__scopeId","data-v-eb080836"]]);wx.createComponent(u);
