"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-scroll-view")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../hs-scroll-view/hs-scroll-view.js")+(()=>"../hs-popup/hs-popup.js"))();const n=e.defineComponent({__name:"hs-popup-project",props:["Apis","baseStyle"],emits:["close","change"],setup(n,{emit:s}){const i=n,u=e.ref({page:1}),a=e.ref({}),r=e.ref({name:"全部项目",id:0}),t=e.ref([]),v=e.ref(!1),d=()=>{v.value=!v.value,v.value&&(u.value.page=1,t.value=[],c())},p=e=>{u.value.page=(null==e?void 0:e.page)||1,c()},c=()=>{var e,n,s;o.getApiLoading(null==(s=null==(n=null==(e=l.Apis)?void 0:e.Asset)?void 0:n.AssetHouses)?void 0:s.SelectPermissionProject,u.value).then(e=>{t.value=[...t.value,...null==e?void 0:e.data],a.value=null==e?void 0:e.meta,console.log(e)})},m=()=>{r.value={name:"全部项目",id:0},s("change",{asset_projects_id:void 0})};return(o,l)=>{var n,u,c,h,j;return e.e({a:e.t(null==(n=r.value)?void 0:n.name),b:e.s((null==i?void 0:i.baseStyle)||{}),c:"全部项目"===(null==(u=r.value)?void 0:u.name)},"全部项目"===(null==(c=r.value)?void 0:c.name)?{d:e.p({type:"down",color:"#333",size:"12"})}:{},{e:e.o(d),f:"全部项目"!==(null==(h=r.value)?void 0:h.name)},"全部项目"!==(null==(j=r.value)?void 0:j.name)?{g:e.p({type:"close",color:"#666",size:"18"}),h:e.o(m)}:{},{i:e.f(t.value,(o,l,n)=>{var i,u;return e.e({a:e.t(null==o?void 0:o.name),b:e.t(null==o?void 0:o.province),c:e.t(null==o?void 0:o.city),d:e.t(null==o?void 0:o.area),e:(null==(i=r.value)?void 0:i.id)===(null==o?void 0:o.id)},(null==(u=r.value)?void 0:u.id)===(null==o?void 0:o.id)?{f:"136d1c4b-4-"+n+",136d1c4b-3",g:e.p({type:"checkmarkempty",size:"20",color:"#2A7EFB"})}:{},{h:`key_${l}`,i:e.o(e=>(e=>{r.value=e,s("change",{asset_projects_id:null==e?void 0:e.id}),v.value=!v.value})(o),`key_${l}`)})}),j:e.o(p),k:e.p({meta:a.value}),l:e.o(d),m:e.p({show:v.value,mode:"bottom",closeable:!0,round:20})})}}}),s=e._export_sfc(n,[["__scopeId","data-v-136d1c4b"]]);wx.createComponent(s);
