"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/day.js"),u=require("./method.js"),o=require("./model.js"),n=require("../../gen/Enums.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),!Array){e.resolveComponent("uni-icons")()}Math||(i+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const i=()=>"./components/SwitchSelectBtn.js",r=e.defineComponent({__name:"index",setup:i=>(e.onLoad((()=>{var e,l;null==(e=u.method)||e.getHouseList(),null==(l=u.method)||l.getShowCurrentTime()})),e.onUnload((()=>{var e,l;clearTimeout(null==(l=null==(e=o.useModel)?void 0:e.timeoutObj)?void 0:l.value)})),(u,i)=>{var r,s,t,d,v,a,c,m,p,f,g,M,h,_,j,q,H,D,y,b,A,B,T,C,w,S,x,k,z,E,L,F,K,N,O,W,P,R,U,X,Y,G,I,J,Q,V,Z,$,ee,le,ue,oe,ne,ie,re,se,te,de,ve,ae;return e.e({a:null==(t=null==(s=null==(r=e.unref(o.useModel))?void 0:r.listData)?void 0:s.value)?void 0:t.length},(null==(a=null==(v=null==(d=e.unref(o.useModel))?void 0:d.listData)?void 0:v.value)||a.length,{}),{b:null==(p=null==(m=null==(c=e.unref(o.useModel))?void 0:c.listData)?void 0:m.value)?void 0:p.length},(null==(M=null==(g=null==(f=e.unref(o.useModel))?void 0:f.listData)?void 0:g.value)||M.length,{}),{c:null==(j=null==(_=null==(h=e.unref(o.useModel))?void 0:h.listData)?void 0:_.value)?void 0:j.length},(null==(D=null==(H=null==(q=e.unref(o.useModel))?void 0:q.listData)?void 0:H.value)?void 0:D.length)?e.e({d:e.t((null==(A=null==(b=null==(y=e.unref(o.useModel))?void 0:y.currentHouse)?void 0:b.value)?void 0:A.full_name)||""),e:1===(null==(C=null==(T=null==(B=e.unref(o.useModel))?void 0:B.currentHouse)?void 0:T.value)?void 0:C.type)},1===(null==(x=null==(S=null==(w=e.unref(o.useModel))?void 0:w.currentHouse)?void 0:S.value)?void 0:x.type)?{f:e.t(null==(L=e.unref(n.HouseOccupantsHouseRelationEnum)[null==(E=null==(z=null==(k=e.unref(o.useModel))?void 0:k.currentHouse)?void 0:z.value)?void 0:E.house_relation])?void 0:L.text),g:e.t(null==(K=null==(F=e.unref(o.useModel))?void 0:F.showCurrentTime)?void 0:K.value)}:{},{h:2===(null==(W=null==(O=null==(N=e.unref(o.useModel))?void 0:N.currentHouse)?void 0:O.value)?void 0:W.type)},2===(null==(U=null==(R=null==(P=e.unref(o.useModel))?void 0:P.currentHouse)?void 0:R.value)?void 0:U.type)?{i:null==(Y=null==(X=e.unref(o.useModel))?void 0:X.qrCode)?void 0:Y.value,j:(null==(Q=null==(J=null==(I=null==(G=e.unref(o.useModel))?void 0:G.currentHouse)?void 0:I.value)?void 0:J.renovation_workers)?void 0:Q.url)||"https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KFANM6DNBTBEATX9Y8KA9TH2.png",k:e.t((null==($=null==(Z=null==(V=e.unref(o.useModel))?void 0:V.currentHouse)?void 0:Z.value)?void 0:$.visitor_name)||""),l:e.t(e.unref(l.getDate)((null==(ue=null==(le=null==(ee=e.unref(o.useModel))?void 0:ee.currentHouse)?void 0:le.value)?void 0:ue.visit_start_time)||"")),m:e.p({type:"right",color:"#B6B6B6",size:"20"}),n:e.t(e.unref(l.getDate)((null==(ie=null==(ne=null==(oe=e.unref(o.useModel))?void 0:oe.currentHouse)?void 0:ne.value)?void 0:ie.code_expired_at)||""))}:{}):{o:e.p({type:"close",color:"#CF1322",size:"60"})},{p:e.n((null==(te=null==(se=null==(re=e.unref(o.useModel))?void 0:re.listData)?void 0:se.value)?void 0:te.length)?"pass_page":"pass_page close_pass_page"),q:e.n((null==(ae=null==(ve=null==(de=e.unref(o.useModel))?void 0:de.listData)?void 0:ve.value)?void 0:ae.length)?"success_page":"close_page")})})});wx.createPage(r);
