"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../common/libraries/upload.js");require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js");const l=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(l,{emit:u}){const s=l,a=e.ref({}),i=e.ref({}),n=async e=>{const o=await r.upload(1,4,(null==s?void 0:s.mediaType)||["image"]);console.log(o,"res32"),1===e&&(a.value=o[0],u("update:valueFrontModel",o)),2===e&&(i.value=o[0],u("update:valueBackModel",o))};return(r,l)=>{var u,t,d,m,v,c;return e.e({a:null==s?void 0:s.required},(null==s||s.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:o._imports_0},{e:e.o(e=>n(1)),f:e.s(null==s?void 0:s.styles),g:!(null==(m=i.value)?void 0:m.url)},(null==(v=i.value)?void 0:v.url)?{i:null==(c=i.value)?void 0:c.url}:{h:o._imports_1},{j:e.o(e=>n(2)),k:e.s(null==s?void 0:s.styles),l:s.borderTop?"1rpx solid #eee":""})}}}),u=e._export_sfc(l,[["__scopeId","data-v-7ef7af9e"]]);wx.createComponent(u);
