"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),n=require("../../../gen/Apis.js");require("../../../common/libraries/request.js");const s=require("../../../common/store/useWeAppAuthStore.js");if(require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup-custom"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const t=e.defineComponent({__name:"ModalServer",setup(t){const u=e.ref(!1),l=s.useWeAppAuthStore(),i=e.ref(!1),r=e.ref(!1),a=o=>{e.index.navigateTo({url:o||""})},d=()=>{i.value=!1,r.value=!1};e.onHide((()=>{d()}));return e.watch((()=>{var e;return null==(e=null==l?void 0:l.data)?void 0:e.is_house_exist}),(()=>{var e,o,n,s;!(null==(e=null==l?void 0:l.data)?void 0:e.user)||(null==(o=null==l?void 0:l.data)?void 0:o.house_occupant)||(null==(n=null==l?void 0:l.data)?void 0:n.house_register)||(i.value=!0),console.log(null==(s=null==l?void 0:l.data)?void 0:s.house_occupant,"house_occupant2")}),{deep:!0}),e.watch((()=>{var e;return null==(e=null==l?void 0:l.data)?void 0:e.user}),(()=>{var e,o;(null==(e=null==l?void 0:l.data)?void 0:e.user)&&(null==(o=null==l?void 0:l.data)||o.selected_house)}),{deep:!0}),e.onShow((async()=>{var s,t,i;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),(null==(t=null==l?void 0:l.data)?void 0:t.user)&&(null==(i=null==l?void 0:l.data)?void 0:i.selected_house)&&(u.value||o.getApiLoading(n.Apis.Archive.HouseRegisters.GetOwnerIsAudit,{}).then((e=>{(null==e?void 0:e.data)&&(r.value=!0,u.value=!0),console.log(e)})))})),(o,n)=>({a:e.o((e=>a("/INDEX/binding/index"))),b:e.p({label:"前往入住登记",size:"md",type:"primary"}),c:e.o(d),d:e.p({type:"close",size:"35",color:"#fff"}),e:e.o(d),f:e.p({show:i.value,mode:"center",title:"入住登记提醒"}),g:e.o((e=>a("/INDEX/owner_audit_list/index"))),h:e.p({label:"前往审核",size:"md",type:"primary"}),i:e.o(d),j:e.p({type:"close",size:"35",color:"#fff"}),k:e.o(d),l:e.p({show:r.value,mode:"center",title:"住户审核通知"})})}}),u=e._export_sfc(t,[["__scopeId","data-v-2c4ba4e3"]]);wx.createComponent(u);
