"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/upload.js"),l=require("../../common/libraries/getPageConfig.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;const r=e.defineComponent({__name:"hs-upload-id-card",props:["valueFrontModel","valueBackModel","size","display","borderTop","length","required","mediaType","labelTitle","count","styles","hasCover","iconName","iconSize"],emits:["update:valueFrontModel","update:valueBackModel"],setup(r,{emit:u}){const i=r,a=e.ref({}),s=e.ref({}),n=async e=>{const l=await o.upload(1,4,(null==i?void 0:i.mediaType)||["image"]);console.log(l,"res32"),1===e&&(a.value=l[0],u("update:valueFrontModel",l)),2===e&&(s.value=l[0],u("update:valueBackModel",l))};return(o,r)=>{var u,t,d,p,c,v;return e.e({a:null==i?void 0:i.required},(null==i||i.required,{}),{b:!(null==(u=a.value)?void 0:u.url)},(null==(t=a.value)?void 0:t.url)?{d:null==(d=a.value)?void 0:d.url}:{c:e.p({type:"plus-filled",color:e.unref(l.getStyleColorValueInfo)(),size:"40"})},{e:e.o((e=>n(1))),f:e.s(null==i?void 0:i.styles),g:!(null==(p=s.value)?void 0:p.url)},(null==(c=s.value)?void 0:c.url)?{i:null==(v=s.value)?void 0:v.url}:{h:e.p({type:"plus-filled",color:e.unref(l.getStyleColorValueInfo)(),size:"40"})},{j:e.o((e=>n(2))),k:e.s(null==i?void 0:i.styles),l:i.borderTop?"1rpx solid #eee":""})}}}),u=e._export_sfc(r,[["__scopeId","data-v-60d7ca52"]]);wx.createComponent(u);
