yqform-h5 0.1.50 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/yqform-h5.es.js +4 -2
- package/dist/yqform-h5.umd.js +1 -1
- package/package.json +1 -1
package/dist/yqform-h5.es.js
CHANGED
|
@@ -12449,6 +12449,8 @@ const BE = {
|
|
|
12449
12449
|
Ss("get", "/services/bl/api/user/hospital", o).then((s) => {
|
|
12450
12450
|
if (a = s.totalPages, this.cusSearchValue === "" && (a = 2), this.item.options = s.content.map((u) => ({ id: u.id, content: u.name, ...u })), a === 0)
|
|
12451
12451
|
this.loadCustom = !1, this.optionEmpty = !0;
|
|
12452
|
+
else if (a === 1)
|
|
12453
|
+
this.loadCustom = !1, this.optionEmpty = !1;
|
|
12452
12454
|
else
|
|
12453
12455
|
for (let u = 1; u < a; u++)
|
|
12454
12456
|
this.optionEmpty = !1, o.page = u, o.size = 20, o.name = this.cusSearchValue, Ss("get", "/services/bl/api/user/hospital", o).then((d) => {
|
|
@@ -12630,7 +12632,7 @@ const BE = {
|
|
|
12630
12632
|
created() {
|
|
12631
12633
|
this.item.type === "rate" && (this.rateValue = 1), this.initDependValue(), this.item.type === "phone" && this.item.autoFill && this.item.autoFill.auto && this.item.autoFill.config && (this.textValue = this.item.autoFill.config()), this.item.type === "identity" && !this.item.emsg && (this.item.emsg = "身份证格式不正确");
|
|
12632
12634
|
}
|
|
12633
|
-
}, ba = (e) => (ld("data-v-
|
|
12635
|
+
}, ba = (e) => (ld("data-v-0d553b88"), e = e(), ud(), e), RE = {
|
|
12634
12636
|
key: 0,
|
|
12635
12637
|
class: "form-item-container"
|
|
12636
12638
|
}, FE = {
|
|
@@ -13243,7 +13245,7 @@ function kx(e, t, n, o, a, s) {
|
|
|
13243
13245
|
}, 8, ["show"])
|
|
13244
13246
|
])) : Ce("", !0);
|
|
13245
13247
|
}
|
|
13246
|
-
const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-
|
|
13248
|
+
const cm = /* @__PURE__ */ vo(BE, [["render", kx], ["__scopeId", "data-v-0d553b88"]]);
|
|
13247
13249
|
/*!
|
|
13248
13250
|
* vue-draggable-next v2.2.0
|
|
13249
13251
|
* (c) 2023 Anish George
|
package/dist/yqform-h5.umd.js
CHANGED
|
@@ -30,7 +30,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
30
30
|
`)+ne+`return __p
|
|
31
31
|
}`;var Ne=K2(function(){return He(k,me+"return "+ne).apply(n,V)});if(Ne.source=ne,od(Ne))throw Ne;return Ne}function f8(r){return Ke(r).toLowerCase()}function h8(r){return Ke(r).toUpperCase()}function m8(r,i,c){if(r=Ke(r),r&&(c||i===n))return Zh(r);if(!r||!(i=en(i)))return r;var m=In(r),b=In(i),k=em(m,b),V=tm(m,b)+1;return Br(m,k,V).join("")}function g8(r,i,c){if(r=Ke(r),r&&(c||i===n))return r.slice(0,rm(r)+1);if(!r||!(i=en(i)))return r;var m=In(r),b=tm(m,In(i))+1;return Br(m,0,b).join("")}function p8(r,i,c){if(r=Ke(r),r&&(c||i===n))return r.replace(ou,"");if(!r||!(i=en(i)))return r;var m=In(r),b=em(m,In(i));return Br(m,b).join("")}function y8(r,i){var c=L,m=D;if(Xe(i)){var b="separator"in i?i.separator:b;c="length"in i?Te(i.length):c,m="omission"in i?en(i.omission):m}r=Ke(r);var k=r.length;if(Fo(r)){var V=In(r);k=V.length}if(c>=k)return r;var O=c-Lo(m);if(O<1)return m;var W=V?Br(V,0,O).join(""):r.slice(0,O);if(b===n)return W+m;if(V&&(O+=W.length-O),id(b)){if(r.slice(O).search(b)){var X,ee=W;for(b.global||(b=Cu(b.source,Ke(Ch.exec(b))+"g")),b.lastIndex=0;X=b.exec(ee);)var ne=X.index;W=W.slice(0,ne===n?O:ne)}}else if(r.indexOf(en(b),O)!=O){var se=W.lastIndexOf(b);se>-1&&(W=W.slice(0,se))}return W+m}function b8(r){return r=Ke(r),r&&Vx.test(r)?r.replace(bh,$7):r}var w8=Yo(function(r,i,c){return r+(c?" ":"")+i.toUpperCase()}),ld=Ym("toUpperCase");function z2(r,i,c){return r=Ke(r),i=c?n:i,i===n?W7(r)?q7(r):D7(r):r.match(i)||[]}var K2=Be(function(r,i){try{return Xt(r,n,i)}catch(c){return od(c)?c:new ke(c)}}),v8=ar(function(r,i){return hn(i,function(c){c=Wn(c),or(r,c,nd(r[c],r))}),r});function C8(r){var i=r==null?0:r.length,c=ye();return r=i?qe(r,function(m){if(typeof m[1]!="function")throw new mn(u);return[c(m[0]),m[1]]}):[],Be(function(m){for(var b=-1;++b<i;){var k=r[b];if(Xt(k[0],this,m))return Xt(k[1],this,m)}})}function E8(r){return $_(pn(r,p))}function cd(r){return function(){return r}}function x8(r,i){return r==null||r!==r?i:r}var _8=$m(),S8=$m(!0);function Yt(r){return r}function ud(r){return xm(typeof r=="function"?r:pn(r,p))}function k8(r){return Sm(pn(r,p))}function A8(r,i){return km(r,pn(i,p))}var I8=Be(function(r,i){return function(c){return Yi(c,r,i)}}),V8=Be(function(r,i){return function(c){return Yi(r,c,i)}});function dd(r,i,c){var m=bt(i),b=Us(i,m);c==null&&!(Xe(i)&&(b.length||!m.length))&&(c=i,i=r,r=this,b=Us(i,bt(i)));var k=!(Xe(c)&&"chain"in c)||!!c.chain,V=lr(r);return hn(b,function(O){var W=i[O];r[O]=W,V&&(r.prototype[O]=function(){var X=this.__chain__;if(k||X){var ee=r(this.__wrapped__),ne=ee.__actions__=Wt(this.__actions__);return ne.push({func:W,args:arguments,thisArg:r}),ee.__chain__=X,ee}return W.apply(r,kr([this.value()],arguments))})}),r}function T8(){return Ct._===this&&(Ct._=n_),this}function fd(){}function N8(r){return r=Te(r),Be(function(i){return Am(i,r)})}var B8=zu(qe),D8=zu(jh),O8=zu(mu);function Y2(r){return qu(r)?gu(Wn(r)):uS(r)}function P8(r){return function(i){return r==null?n:Xr(r,i)}}var R8=Gm(),F8=Gm(!0);function hd(){return[]}function md(){return!1}function L8(){return{}}function M8(){return""}function U8(){return!0}function H8(r,i){if(r=Te(r),r<1||r>Z)return[];var c=G,m=Vt(r,G);i=ye(i),r-=G;for(var b=bu(m,i);++c<r;)i(c);return b}function W8(r){return Ie(r)?qe(r,Wn):tn(r)?[r]:Wt(d2(Ke(r)))}function z8(r){var i=++e_;return Ke(r)+i}var K8=Qs(function(r,i){return r+i},0),Y8=Ku("ceil"),Q8=Qs(function(r,i){return r/i},1),$8=Ku("floor");function j8(r){return r&&r.length?Ms(r,Yt,Vu):n}function G8(r,i){return r&&r.length?Ms(r,ye(i,2),Vu):n}function q8(r){return Jh(r,Yt)}function J8(r,i){return Jh(r,ye(i,2))}function X8(r){return r&&r.length?Ms(r,Yt,Du):n}function Z8(r,i){return r&&r.length?Ms(r,ye(i,2),Du):n}var eV=Qs(function(r,i){return r*i},1),tV=Ku("round"),nV=Qs(function(r,i){return r-i},0);function rV(r){return r&&r.length?yu(r,Yt):0}function oV(r,i){return r&&r.length?yu(r,ye(i,2)):0}return x.after=kA,x.ary=E2,x.assign=hI,x.assignIn=R2,x.assignInWith=il,x.assignWith=mI,x.at=gI,x.before=x2,x.bind=nd,x.bindAll=v8,x.bindKey=_2,x.castArray=LA,x.chain=w2,x.chunk=$S,x.compact=jS,x.concat=GS,x.cond=C8,x.conforms=E8,x.constant=cd,x.countBy=rA,x.create=pI,x.curry=S2,x.curryRight=k2,x.debounce=A2,x.defaults=yI,x.defaultsDeep=bI,x.defer=AA,x.delay=IA,x.difference=qS,x.differenceBy=JS,x.differenceWith=XS,x.drop=ZS,x.dropRight=ek,x.dropRightWhile=tk,x.dropWhile=nk,x.fill=rk,x.filter=iA,x.flatMap=lA,x.flatMapDeep=cA,x.flatMapDepth=uA,x.flatten=g2,x.flattenDeep=ok,x.flattenDepth=ik,x.flip=VA,x.flow=_8,x.flowRight=S8,x.fromPairs=ak,x.functions=SI,x.functionsIn=kI,x.groupBy=dA,x.initial=lk,x.intersection=ck,x.intersectionBy=uk,x.intersectionWith=dk,x.invert=II,x.invertBy=VI,x.invokeMap=hA,x.iteratee=ud,x.keyBy=mA,x.keys=bt,x.keysIn=Kt,x.map=Zs,x.mapKeys=NI,x.mapValues=BI,x.matches=k8,x.matchesProperty=A8,x.memoize=tl,x.merge=DI,x.mergeWith=F2,x.method=I8,x.methodOf=V8,x.mixin=dd,x.negate=nl,x.nthArg=N8,x.omit=OI,x.omitBy=PI,x.once=TA,x.orderBy=gA,x.over=B8,x.overArgs=NA,x.overEvery=D8,x.overSome=O8,x.partial=rd,x.partialRight=I2,x.partition=pA,x.pick=RI,x.pickBy=L2,x.property=Y2,x.propertyOf=P8,x.pull=gk,x.pullAll=y2,x.pullAllBy=pk,x.pullAllWith=yk,x.pullAt=bk,x.range=R8,x.rangeRight=F8,x.rearg=BA,x.reject=wA,x.remove=wk,x.rest=DA,x.reverse=ed,x.sampleSize=CA,x.set=LI,x.setWith=MI,x.shuffle=EA,x.slice=vk,x.sortBy=SA,x.sortedUniq=Ak,x.sortedUniqBy=Ik,x.split=l8,x.spread=OA,x.tail=Vk,x.take=Tk,x.takeRight=Nk,x.takeRightWhile=Bk,x.takeWhile=Dk,x.tap=jk,x.throttle=PA,x.thru=Xs,x.toArray=D2,x.toPairs=M2,x.toPairsIn=U2,x.toPath=W8,x.toPlainObject=P2,x.transform=UI,x.unary=RA,x.union=Ok,x.unionBy=Pk,x.unionWith=Rk,x.uniq=Fk,x.uniqBy=Lk,x.uniqWith=Mk,x.unset=HI,x.unzip=td,x.unzipWith=b2,x.update=WI,x.updateWith=zI,x.values=jo,x.valuesIn=KI,x.without=Uk,x.words=z2,x.wrap=FA,x.xor=Hk,x.xorBy=Wk,x.xorWith=zk,x.zip=Kk,x.zipObject=Yk,x.zipObjectDeep=Qk,x.zipWith=$k,x.entries=M2,x.entriesIn=U2,x.extend=R2,x.extendWith=il,dd(x,x),x.add=K8,x.attempt=K2,x.camelCase=jI,x.capitalize=H2,x.ceil=Y8,x.clamp=YI,x.clone=MA,x.cloneDeep=HA,x.cloneDeepWith=WA,x.cloneWith=UA,x.conformsTo=zA,x.deburr=W2,x.defaultTo=x8,x.divide=Q8,x.endsWith=GI,x.eq=Tn,x.escape=qI,x.escapeRegExp=JI,x.every=oA,x.find=aA,x.findIndex=h2,x.findKey=wI,x.findLast=sA,x.findLastIndex=m2,x.findLastKey=vI,x.floor=$8,x.forEach=v2,x.forEachRight=C2,x.forIn=CI,x.forInRight=EI,x.forOwn=xI,x.forOwnRight=_I,x.get=ad,x.gt=KA,x.gte=YA,x.has=AI,x.hasIn=sd,x.head=p2,x.identity=Yt,x.includes=fA,x.indexOf=sk,x.inRange=QI,x.invoke=TI,x.isArguments=to,x.isArray=Ie,x.isArrayBuffer=QA,x.isArrayLike=zt,x.isArrayLikeObject=at,x.isBoolean=$A,x.isBuffer=Dr,x.isDate=jA,x.isElement=GA,x.isEmpty=qA,x.isEqual=JA,x.isEqualWith=XA,x.isError=od,x.isFinite=ZA,x.isFunction=lr,x.isInteger=V2,x.isLength=rl,x.isMap=T2,x.isMatch=eI,x.isMatchWith=tI,x.isNaN=nI,x.isNative=rI,x.isNil=iI,x.isNull=oI,x.isNumber=N2,x.isObject=Xe,x.isObjectLike=it,x.isPlainObject=Ji,x.isRegExp=id,x.isSafeInteger=aI,x.isSet=B2,x.isString=ol,x.isSymbol=tn,x.isTypedArray=$o,x.isUndefined=sI,x.isWeakMap=lI,x.isWeakSet=cI,x.join=fk,x.kebabCase=XI,x.last=bn,x.lastIndexOf=hk,x.lowerCase=ZI,x.lowerFirst=e8,x.lt=uI,x.lte=dI,x.max=j8,x.maxBy=G8,x.mean=q8,x.meanBy=J8,x.min=X8,x.minBy=Z8,x.stubArray=hd,x.stubFalse=md,x.stubObject=L8,x.stubString=M8,x.stubTrue=U8,x.multiply=eV,x.nth=mk,x.noConflict=T8,x.noop=fd,x.now=el,x.pad=t8,x.padEnd=n8,x.padStart=r8,x.parseInt=o8,x.random=$I,x.reduce=yA,x.reduceRight=bA,x.repeat=i8,x.replace=a8,x.result=FI,x.round=tV,x.runInContext=U,x.sample=vA,x.size=xA,x.snakeCase=s8,x.some=_A,x.sortedIndex=Ck,x.sortedIndexBy=Ek,x.sortedIndexOf=xk,x.sortedLastIndex=_k,x.sortedLastIndexBy=Sk,x.sortedLastIndexOf=kk,x.startCase=c8,x.startsWith=u8,x.subtract=nV,x.sum=rV,x.sumBy=oV,x.template=d8,x.times=H8,x.toFinite=cr,x.toInteger=Te,x.toLength=O2,x.toLower=f8,x.toNumber=wn,x.toSafeInteger=fI,x.toString=Ke,x.toUpper=h8,x.trim=m8,x.trimEnd=g8,x.trimStart=p8,x.truncate=y8,x.unescape=b8,x.uniqueId=z8,x.upperCase=w8,x.upperFirst=ld,x.each=v2,x.eachRight=C2,x.first=p2,dd(x,function(){var r={};return Un(x,function(i,c){Ye.call(x.prototype,c)||(r[c]=i)}),r}(),{chain:!1}),x.VERSION=a,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){x[r].placeholder=x}),hn(["drop","take"],function(r,i){Oe.prototype[r]=function(c){c=c===n?1:yt(Te(c),0);var m=this.__filtered__&&!i?new Oe(this):this.clone();return m.__filtered__?m.__takeCount__=Vt(c,m.__takeCount__):m.__views__.push({size:Vt(c,G),type:r+(m.__dir__<0?"Right":"")}),m},Oe.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),hn(["filter","map","takeWhile"],function(r,i){var c=i+1,m=c==Y||c==z;Oe.prototype[r]=function(b){var k=this.clone();return k.__iteratees__.push({iteratee:ye(b,3),type:c}),k.__filtered__=k.__filtered__||m,k}}),hn(["head","last"],function(r,i){var c="take"+(i?"Right":"");Oe.prototype[r]=function(){return this[c](1).value()[0]}}),hn(["initial","tail"],function(r,i){var c="drop"+(i?"":"Right");Oe.prototype[r]=function(){return this.__filtered__?new Oe(this):this[c](1)}}),Oe.prototype.compact=function(){return this.filter(Yt)},Oe.prototype.find=function(r){return this.filter(r).head()},Oe.prototype.findLast=function(r){return this.reverse().find(r)},Oe.prototype.invokeMap=Be(function(r,i){return typeof r=="function"?new Oe(this):this.map(function(c){return Yi(c,r,i)})}),Oe.prototype.reject=function(r){return this.filter(nl(ye(r)))},Oe.prototype.slice=function(r,i){r=Te(r);var c=this;return c.__filtered__&&(r>0||i<0)?new Oe(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),i!==n&&(i=Te(i),c=i<0?c.dropRight(-i):c.take(i-r)),c)},Oe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Oe.prototype.toArray=function(){return this.take(G)},Un(Oe.prototype,function(r,i){var c=/^(?:filter|find|map|reject)|While$/.test(i),m=/^(?:head|last)$/.test(i),b=x[m?"take"+(i=="last"?"Right":""):i],k=m||/^find/.test(i);b&&(x.prototype[i]=function(){var V=this.__wrapped__,O=m?[1]:arguments,W=V instanceof Oe,X=O[0],ee=W||Ie(V),ne=function(De){var Pe=b.apply(x,kr([De],O));return m&&se?Pe[0]:Pe};ee&&c&&typeof X=="function"&&X.length!=1&&(W=ee=!1);var se=this.__chain__,me=!!this.__actions__.length,we=k&&!se,Ne=W&&!me;if(!k&&ee){V=Ne?V:new Oe(this);var ve=r.apply(V,O);return ve.__actions__.push({func:Xs,args:[ne],thisArg:n}),new gn(ve,se)}return we&&Ne?r.apply(this,O):(ve=this.thru(ne),we?m?ve.value()[0]:ve.value():ve)})}),hn(["pop","push","shift","sort","splice","unshift"],function(r){var i=_s[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);x.prototype[r]=function(){var b=arguments;if(m&&!this.__chain__){var k=this.value();return i.apply(Ie(k)?k:[],b)}return this[c](function(V){return i.apply(Ie(V)?V:[],b)})}}),Un(Oe.prototype,function(r,i){var c=x[i];if(c){var m=c.name+"";Ye.call(Wo,m)||(Wo[m]=[]),Wo[m].push({name:i,func:c})}}),Wo[Ys(n,E).name]=[{name:"wrapper",func:n}],Oe.prototype.clone=b_,Oe.prototype.reverse=w_,Oe.prototype.value=v_,x.prototype.at=Gk,x.prototype.chain=qk,x.prototype.commit=Jk,x.prototype.next=Xk,x.prototype.plant=eA,x.prototype.reverse=tA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=nA,x.prototype.first=x.prototype.head,Li&&(x.prototype[Li]=Zk),x},Mo=J7();$r?(($r.exports=Mo)._=Mo,uu._=Mo):Ct._=Mo}).call(uo)}(ua,ua.exports);var C4=ua.exports;const Tf=If(C4),E4={ImageCompressorCls:class{constructor(e=.7,t=1,n=()=>{}){this.quality=1-e,this.scaleFactor=t||1,this.compressedImages=[],this.compressedImagesAll=[],this.addAllLibrary(()=>{n&&n()})}async addAllLibrary(e=()=>{}){try{await this.addJZZipLibrary(),await this.addPdfLib(),await this.addPdfjs(),e&&e()}catch(t){console.error(t)}}addJZZipLibrary(){return new Promise((e,t)=>{if(typeof JSZip<"u")return void e();const n=document.createElement("script");n.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js",n.onload=()=>e(),n.onerror=()=>t(new Error("Failed to load JSZip")),document.head.appendChild(n)})}addPdfLib(){return new Promise((e,t)=>{if(typeof PDFLib<"u")return void e();const n=document.createElement("script");n.src="https://cdnjs.cloudflare.com/ajax/libs/pdf-lib/1.17.1/pdf-lib.min.js",n.onload=()=>e(),n.onerror=()=>t(new Error("Failed to load PdfLib")),document.head.appendChild(n)})}addPdfjs(){return new Promise((e,t)=>{if(typeof pdfjsLib<"u")return void e();const n=document.createElement("script");n.src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js",n.onload=()=>e(),n.onerror=()=>t(new Error("Failed to load addPdfjs")),document.head.appendChild(n)})}async compressImage(e,t=!0){let n=["image/jpeg","image/png","image/webp","image/jpg","image/bmp"];if(!n.includes(e.type))return alert("仅支持"+n.join("、")+"格式的图片"),Promise.reject("this type is not support");const a=new FileReader;return a.readAsDataURL(e),new Promise((s,l)=>{a.onload=u=>{const f=new Image;f.src=u.target.result,f.onload=()=>{const h=document.createElement("canvas");let d=e.type=="image/png"||e.type=="image/bmp";this.scaleFactor<0&&(this.scaleFactor=-this.scaleFactor);let g=d?this.scaleFactor>=1?.8:this.scaleFactor:1;d&&!t&&(g=1),h.width=f.width*g,h.height=f.height*g;const p=h.getContext("2d");p.clearRect(0,0,h.width,h.height),p.drawImage(f,0,0,h.width,h.height);let y=e.type||"image/jpeg";d&&!t&&(y="image/jpeg"),console.log("imageType:",y,this.quality);try{const _=h.toDataURL(y,Number(this.quality.toFixed(2)));s(_)}catch(_){l(_)}},f.onerror=l},a.onerror=l})}async compressImages(e,t,n=!0){this.compressedImages=[],this.compressedImagesAll=[];for(const a of e){const s=await this.compressImage(a,n);this.compressedImagesAll.push({dataURL:s,size:this.showSize(s),originFile:a}),this.compressedImages.push(s),t(this.compressedImages.length,e.length,this.compressedImagesAll)}}showSize(e){let t=e.replace("data:image/png;base64,",""),n=t.indexOf("=");t.indexOf("=")>0&&(t=t.substring(0,n));let a=t.length,s="";s=(parseInt(a-a/8*2)/1024).toFixed(2);let l=s+"",u=l.indexOf(".");return l.substr(u+1,2)=="00"?l.substring(0,u)+l.substr(u+3,2):s}async downloadZip(e=[]){try{JSZip||(console.error("JSZip library is not loaded."),await addAllLibrary());let t=e||[];if(!t.length)return;const n=new JSZip;t.forEach((a,s)=>{const l=atob(a.split(",")[1]),u=a.split(",")[0].split(":")[1].split(";")[0],f=new Uint8Array(l.length);for(let h=0;h<l.length;h++)f[h]=l.charCodeAt(h);n.file(`compressed_image_${s+1}.${u.split("/")[1]}`,f)}),n.generateAsync({type:"blob"}).then(a=>{this.downloadFn(URL.createObjectURL(a),`compressed_images_${Date.now()}.zip`)})}catch(t){console.error("Error downloading zip:",t)}}downloadFn(e,t=""){const n=document.createElement("a");n.href=e,n.download=t||"",document.body.appendChild(n),n.click(),document.body.removeChild(n)}async imgFormatFn(e,t,n=!1){return new Promise(async(a,s)=>{if(e&&t)if(["image/jpeg","image/png","image/webp","image/jpg","image/bmp"].includes(t)&&e.type.includes("image")){if(console.log("图片转图片格式"),e.type===t||e.type===t)return void s("file type is the same as targetFormat");const l=new FileReader;l.readAsDataURL(e),l.onload=u=>{const f=new Image;f.src=u.target.result,f.onload=()=>{const h=document.createElement("canvas"),d=h.getContext("2d");h.width=f.width,h.height=f.height,d.drawImage(f,0,0);const g=h.toDataURL(t);n&&this.downloadFn(g,Date.now()+"."+t.split("/")[1]),a(g)}},l.onerror=u=>{s(u)}}else if(t==="application/pdf"&&e.type.includes("image")){if(console.log("图片转PDF格式"),e.type!=="image/png")return s("this type is not support"),void alert("仅支持png格式的图片转PDF");PDFLib||(console.error("PDFLib library is not loaded."),await addAllLibrary());const l=await PDFLib.PDFDocument.create(),u=await fetch(URL.createObjectURL(e)).then(p=>p.arrayBuffer()),f=await l.embedPng(u);l.addPage([f.width,f.height]).drawImage(f,{x:0,y:0,width:f.width,height:f.height});const h=await l.save(),d=new Blob([h],{type:"application/pdf"}),g=URL.createObjectURL(d);n&&this.downloadFn(g,Date.now()+".pdf"),a(g)}else if(e.type==="application/pdf"&&t.startsWith("image/")){if(console.log("PDF转图片格式"),!["image/jpeg","image/png","image/jpg"].includes(t))return s("不支持的图片格式,请选择image/jpeg, image/png"),void alert("不支持的图片格式,请选择image/jpeg, image/png");pdfjsLib||(console.error("pdfjsLib library is not loaded."),await addAllLibrary()),pdfjsLib.getDocument(URL.createObjectURL(e)).promise.then(async l=>{const u=[],f=l.numPages;for(let h=1;h<=f;h++){const d=await l.getPage(h),g=d.getViewport({scale:2}),p=document.createElement("canvas"),y=p.getContext("2d");p.width=g.width,p.height=g.height,await d.render({canvasContext:y,viewport:g}).promise;const _=p.toDataURL(t);u.push(_),h===f&&n&&this.downloadZip(u)}a(u)})}else s("targetFormat is not supported"),alert("不支持的文件格式");else s("file or targetFormat is required")})}applyWatermarkToImage(e,t,n=()=>{},a=()=>{}){try{let{watermarkText:s,fontFamily:l,fontSize:u,rotation:f,shouldRepeat:h,color:d,opacity:g,watermarkImageFile:p,watermarkPosition:y,watermarImagScale:_=1,watermarGap:v=30}=t;v<0&&(v=0);const w=new FileReader;w.readAsDataURL(e),w.onload=C=>{const E=new Image;E.src=C.target.result,E.onload=()=>{const S=document.createElement("canvas"),I=S.getContext("2d");S.width=E.width,S.height=E.height,I.drawImage(E,0,0,S.width,S.height);const A=(R,$,F,L)=>{switch(y){case"center":default:return{x:R/2,y:$/2};case"top":return{x:R/2,y:L};case"bottom":return{x:R/2,y:$-L};case"left":return{x:F,y:$/2};case"right":return{x:R-F,y:$/2};case"top-left":return{x:F,y:L};case"top-right":return{x:R-F,y:L};case"bottom-left":return{x:F,y:$-L};case"bottom-right":return{x:R-F,y:$-L}}};I.font=`${u}px ${l}`,I.fillStyle=d,I.globalAlpha=g;const N=I.measureText(s).width,B=u;if(s){if(h)for(let R=0;R<S.height;R+=B+(v||30))for(let $=0;$<S.width;$+=N+(v||30))I.save(),I.translate($+N/2+v/2,R+B/2+v/2),I.rotate(f*Math.PI/180),I.fillText(s,-N/2,B/2),I.restore();else{const{x:R,y:$}=A(S.width,S.height,N,B);I.save(),I.translate(R,$),I.rotate(f*Math.PI/180),I.fillText(s,-N/2,B/2),I.restore()}n&&n(S.toDataURL())}else if(p){const R=new FileReader;R.readAsDataURL(p),R.onload=$=>{const F=new Image;F.src=$.target.result,F.onload=()=>{const L=F.width*_,D=F.height*_,j=v||30;if(h)for(let T=0;T<S.height;T+=D+j)for(let Y=0;Y<S.width;Y+=L+j)I.save(),I.translate(Y+L/2,T+D/2),I.rotate(f*Math.PI/180),I.globalAlpha=g,I.drawImage(F,-L/2,-D/2,L,D),I.restore();else{const{x:T,y:Y}=A(S.width,S.height,L,D);I.save(),I.translate(T,Y),I.rotate(f*Math.PI/180),I.globalAlpha=g,I.drawImage(F,-L/2,-D/2,L,D),I.restore()}n&&n(S.toDataURL())}},R.onerror=$=>{console.error("Error loading watermark image:",$)}}else alert("请选择水印文本或水印图片"),a&&a("请选择水印文本或水印图片")}},w.onerror=C=>{console.error("Error loading image:",C),C&&C(C)}}catch(s){s&&s(s),console.error("applyWatermarkToImage Error:",s)}}},ImageResizerCls:class{constructor(e,t,n,a,s,l){if(!(e&&t&&n&&a))throw alert("初始化失败,缺少必要的参数"),new Error("Missing required parameters (fileInputId or imgPreviewId or widthInputId or heightInputId)");this.fileInput=document.getElementById(e),this.imgPreview=document.getElementById(t),this.widthInput=document.getElementById(n),this.heightInput=document.getElementById(a),this.resizeButton=document.getElementById(s),this.downloadButton=document.getElementById(l),this.originalWidth=null,this.originalHeight=null,this.originalImageSrc=null,this.maxScal=3,this.minScal=.1,this.init()}init(){this.fileInput&&this.fileInput.addEventListener("change",e=>this.handleFileChange(e)),this.resizeButton&&this.resizeButton.addEventListener("click",()=>this.resizeImage()),this.downloadButton&&this.downloadButton.addEventListener("click",()=>this.downloadImage()),this.widthInput&&this.widthInput.addEventListener("input",()=>this.updateHeight()),this.heightInput&&this.heightInput.addEventListener("input",()=>this.updateWidth())}handleFileChange(e){const t=e.target.files[0];if(t){const n=new FileReader;n.onload=a=>{this.imgPreview.src=a.target.result,this.originalImageSrc=a.target.result;const s=new Image;s.src=a.target.result,s.onload=()=>{this.widthInput.value=this.originalWidth=s.width,this.heightInput.value=this.originalHeight=s.height}},n.readAsDataURL(t)}}resizeImage(){const e=parseInt(this.widthInput.value),t=parseInt(this.heightInput.value),n=this.originalWidth*this.minScal,a=this.originalHeight*this.minScal,s=this.originalWidth*this.maxScal,l=this.originalHeight*this.maxScal,u=e>=n&&e<=s?e:null,f=t>=a&&t<=l?t:null;if(u===null&&f===null)return void alert("请保证输入的尺寸在限制范围内!");const h=document.createElement("canvas"),d=h.getContext("2d"),g=new Image;g.src=this.originalImageSrc,g.onload=()=>{let p=u||f*this.originalWidth/this.originalHeight,y=f||u*this.originalHeight/this.originalWidth;h.width=p,h.height=y,d.drawImage(g,0,0,p,y),this.imgPreview.src=h.toDataURL()}}updateHeight(){const e=parseInt(this.widthInput.value);if(!isNaN(e)&&this.originalWidth&&this.originalHeight){const t=Math.round(e*this.originalHeight/this.originalWidth),n=this.originalHeight*this.minScal,a=this.originalHeight*this.maxScal;t>=n&&t<=a&&(this.heightInput.value=t,this.resizeButton||this.resizeImage())}}updateWidth(){const e=parseInt(this.heightInput.value);if(!isNaN(e)&&this.originalWidth&&this.originalHeight){const t=Math.round(e*this.originalWidth/this.originalHeight),n=this.originalWidth*this.minScal,a=this.originalWidth*this.maxScal;t>=n&&t<=a&&(this.widthInput.value=t,this.resizeButton||this.resizeImage())}}downloadImage(){const e=document.createElement("a");e.href=this.imgPreview.src;const t=new Date().getTime();e.download=`resized-image-${t}.png`,e.click()}}};function x4(){return Math.random().toString(36).substr(2,6)}function _4(){return"key"+x4()}function S4(e){return/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/.test(e)}function ri(e){e=e.replace(/^data:image\/(png|jpg|jpeg|gif|bmp);base64,/,"");const t=atob(e);let n=t.length;const a=new Uint8Array(n);for(let u=0;u<n;u++)a[u]=t.charCodeAt(u);const s=(a.length/1024).toFixed(2),l=(s/1024).toFixed(2);return{kb:s,mb:l}}function Nf(e,t){const n=new Image;let a=400,s=400;const{mb:l,kb:u}=ri(e.url);console.log("[ init size ] >",l,u);function f(h){if(l<=1){if(h>1e3)return 500}else if(l<=3){if(h>2e3)return 500;if(h>1e3)return 400}else if(h>1e3)return 600;return 200}n.onload=function(){const h=document.createElement("canvas");let d=n.width,g=n.height;u<100?(a=d,s=g):(a=f(d),s=f(g)),d>a?(g*=a/d,d=a):g>s&&(d*=s/g,g=s),h.height=g,h.width=d;let p=h.getContext("2d");p.clearRect(0,0,d,g),p.drawImage(n,0,0,d,g);const y=h.toDataURL(e.type),{kb:_,mb:v}=ri(y);_&&v&&console.log("[ after size ] >",v,_),t(y)},n.src=e.url}function k4(e,t){const n=e.split(","),a=n[0].match(/:(.*?);/)[1],s=atob(n[1]);let l=s.length;const u=new Uint8Array(l);for(;l--;)u[l]=s.charCodeAt(l);const f=a.split("/")[1];return new File([u],`${t}.${f}`,{type:a})}async function A4(e,t){console.log(e);let n=E4.ImageCompressorCls;const a=new n;if(a.quality,e.length<=0)return null;const s=[];await a.compressImages(e,(l,u)=>{const f=k4(a.compressedImages[l-1],e[l-1].name);s.push(f),l===u&&t(s)},!1)}function Bf(e,t){return function(){return e.apply(t,arguments)}}const{toString:I4}=Object.prototype,{getPrototypeOf:Dl}=Object,da=(e=>t=>{const n=I4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>da(t)===e),fa=e=>t=>typeof t===e,{isArray:fo}=Array,oi=fa("undefined");function V4(e){return e!==null&&!oi(e)&&e.constructor!==null&&!oi(e.constructor)&&ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Df=Pn("ArrayBuffer");function T4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Df(e.buffer),t}const N4=fa("string"),ln=fa("function"),Of=fa("number"),ha=e=>e!==null&&typeof e=="object",B4=e=>e===!0||e===!1,ma=e=>{if(da(e)!=="object")return!1;const t=Dl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D4=Pn("Date"),O4=Pn("File"),P4=Pn("Blob"),R4=Pn("FileList"),F4=e=>ha(e)&&ln(e.pipe),L4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ln(e.append)&&((t=da(e))==="formdata"||t==="object"&&ln(e.toString)&&e.toString()==="[object FormData]"))},M4=Pn("URLSearchParams"),U4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ii(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,s;if(typeof e!="object"&&(e=[e]),fo(e))for(a=0,s=e.length;a<s;a++)t.call(null,e[a],a,e);else{const l=n?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let f;for(a=0;a<u;a++)f=l[a],t.call(null,e[f],f,e)}}function Pf(e,t){t=t.toLowerCase();const n=Object.keys(e);let a=n.length,s;for(;a-- >0;)if(s=n[a],t===s.toLowerCase())return s;return null}const Rf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ff=e=>!oi(e)&&e!==Rf;function Ol(){const{caseless:e}=Ff(this)&&this||{},t={},n=(a,s)=>{const l=e&&Pf(t,s)||s;ma(t[l])&&ma(a)?t[l]=Ol(t[l],a):ma(a)?t[l]=Ol({},a):fo(a)?t[l]=a.slice():t[l]=a};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&ii(arguments[a],n);return t}const H4=(e,t,n,{allOwnKeys:a}={})=>(ii(t,(s,l)=>{n&&ln(s)?e[l]=Bf(s,n):e[l]=s},{allOwnKeys:a}),e),W4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),z4=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},K4=(e,t,n,a)=>{let s,l,u;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)u=s[l],(!a||a(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=n!==!1&&Dl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Q4=e=>{if(!e)return null;if(fo(e))return e;let t=e.length;if(!Of(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dl(Uint8Array)),j4=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=a.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},G4=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},q4=Pn("HTMLFormElement"),J4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,s){return a.toUpperCase()+s}),Lf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X4=Pn("RegExp"),Mf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};ii(n,(s,l)=>{t(s,l,e)!==!1&&(a[l]=s)}),Object.defineProperties(e,a)},Z4=e=>{Mf(e,(t,n)=>{if(ln(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(ln(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ey=(e,t)=>{const n={},a=s=>{s.forEach(l=>{n[l]=!0})};return fo(e)?a(e):a(String(e).split(t)),n},ty=()=>{},ny=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pl="abcdefghijklmnopqrstuvwxyz",Uf="0123456789",Hf={DIGIT:Uf,ALPHA:Pl,ALPHA_DIGIT:Pl+Pl.toUpperCase()+Uf},ry=(e=16,t=Hf.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function oy(e){return!!(e&&ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iy=e=>{const t=new Array(10),n=(a,s)=>{if(ha(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[s]=a;const l=fo(a)?[]:{};return ii(a,(u,f)=>{const h=n(u,s+1);!oi(h)&&(l[f]=h)}),t[s]=void 0,l}}return a};return n(e,0)},ay=Pn("AsyncFunction"),J={isArray:fo,isArrayBuffer:Df,isBuffer:V4,isFormData:L4,isArrayBufferView:T4,isString:N4,isNumber:Of,isBoolean:B4,isObject:ha,isPlainObject:ma,isUndefined:oi,isDate:D4,isFile:O4,isBlob:P4,isRegExp:X4,isFunction:ln,isStream:F4,isURLSearchParams:M4,isTypedArray:$4,isFileList:R4,forEach:ii,merge:Ol,extend:H4,trim:U4,stripBOM:W4,inherits:z4,toFlatObject:K4,kindOf:da,kindOfTest:Pn,endsWith:Y4,toArray:Q4,forEachEntry:j4,matchAll:G4,isHTMLForm:q4,hasOwnProperty:Lf,hasOwnProp:Lf,reduceDescriptors:Mf,freezeMethods:Z4,toObjectSet:ey,toCamelCase:J4,noop:ty,toFiniteNumber:ny,findKey:Pf,global:Rf,isContextDefined:Ff,ALPHABET:Hf,generateString:ry,isSpecCompliantForm:oy,toJSONObject:iy,isAsyncFn:ay,isThenable:e=>e&&(ha(e)||ln(e))&&ln(e.then)&&ln(e.catch)};function Re(e,t,n,a,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),s&&(this.response=s)}J.inherits(Re,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wf=Re.prototype,zf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zf[e]={value:e}}),Object.defineProperties(Re,zf),Object.defineProperty(Wf,"isAxiosError",{value:!0}),Re.from=(e,t,n,a,s,l)=>{const u=Object.create(Wf);return J.toFlatObject(e,u,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Re.call(u,e.message,t,n,a,s),u.cause=e,u.name=e.name,l&&Object.assign(u,l),u};const sy=null;function Rl(e){return J.isPlainObject(e)||J.isArray(e)}function Kf(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Yf(e,t,n){return e?e.concat(t).map(function(s,l){return s=Kf(s),!n&&l?"["+s+"]":s}).join(n?".":""):t}function ly(e){return J.isArray(e)&&!e.some(Rl)}const cy=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function ga(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,C){return!J.isUndefined(C[w])});const a=n.metaTokens,s=n.visitor||g,l=n.dots,u=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(J.isDate(v))return v.toISOString();if(!h&&J.isBlob(v))throw new Re("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(v)||J.isTypedArray(v)?h&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function g(v,w,C){let E=v;if(v&&!C&&typeof v=="object"){if(J.endsWith(w,"{}"))w=a?w:w.slice(0,-2),v=JSON.stringify(v);else if(J.isArray(v)&&ly(v)||(J.isFileList(v)||J.endsWith(w,"[]"))&&(E=J.toArray(v)))return w=Kf(w),E.forEach(function(I,A){!(J.isUndefined(I)||I===null)&&t.append(u===!0?Yf([w],A,l):u===null?w:w+"[]",d(I))}),!1}return Rl(v)?!0:(t.append(Yf(C,w,l),d(v)),!1)}const p=[],y=Object.assign(cy,{defaultVisitor:g,convertValue:d,isVisitable:Rl});function _(v,w){if(!J.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(v),J.forEach(v,function(E,S){(!(J.isUndefined(E)||E===null)&&s.call(t,E,J.isString(S)?S.trim():S,w,y))===!0&&_(E,w?w.concat(S):[S])}),p.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return _(e),t}function Qf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Fl(e,t){this._pairs=[],e&&ga(e,this,t)}const $f=Fl.prototype;$f.append=function(t,n){this._pairs.push([t,n])},$f.toString=function(t){const n=t?function(a){return t.call(this,a,Qf)}:Qf;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jf(e,t,n){if(!t)return e;const a=n&&n.encode||uy,s=n&&n.serialize;let l;if(s?l=s(t,n):l=J.isURLSearchParams(t)?t.toString():new Fl(t,n).toString(a),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class dy{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Gf=dy,qf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fy=typeof URLSearchParams<"u"?URLSearchParams:Fl,hy=typeof FormData<"u"?FormData:null,my=typeof Blob<"u"?Blob:null,gy=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),py=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Rn={isBrowser:!0,classes:{URLSearchParams:fy,FormData:hy,Blob:my},isStandardBrowserEnv:gy,isStandardBrowserWebWorkerEnv:py,protocols:["http","https","file","blob","url","data"]};function yy(e,t){return ga(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,a,s,l){return Rn.isNode&&J.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function by(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wy(e){const t={},n=Object.keys(e);let a;const s=n.length;let l;for(a=0;a<s;a++)l=n[a],t[l]=e[l];return t}function Jf(e){function t(n,a,s,l){let u=n[l++];const f=Number.isFinite(+u),h=l>=n.length;return u=!u&&J.isArray(s)?s.length:u,h?(J.hasOwnProp(s,u)?s[u]=[s[u],a]:s[u]=a,!f):((!s[u]||!J.isObject(s[u]))&&(s[u]=[]),t(n,a,s[u],l)&&J.isArray(s[u])&&(s[u]=wy(s[u])),!f)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(a,s)=>{t(by(a),s,n,0)}),n}return null}const vy={"Content-Type":void 0};function Cy(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const pa={transitional:qf,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",s=a.indexOf("application/json")>-1,l=J.isObject(t);if(l&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return s&&s?JSON.stringify(Jf(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return yy(t,this.formSerializer).toString();if((f=J.isFileList(t))||a.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ga(f?{"files[]":t}:t,h&&new h,this.formSerializer)}}return l||s?(n.setContentType("application/json",!1),Cy(t)):t}],transformResponse:[function(t){const n=this.transitional||pa.transitional,a=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&J.isString(t)&&(a&&!this.responseType||s)){const u=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(u)throw f.name==="SyntaxError"?Re.from(f,Re.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};J.forEach(["delete","get","head"],function(t){pa.headers[t]={}}),J.forEach(["post","put","patch"],function(t){pa.headers[t]=J.merge(vy)});const Ll=pa,Ey=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xy=e=>{const t={};let n,a,s;return e&&e.split(`
|
|
32
32
|
`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),a=u.substring(s+1).trim(),!(!n||t[n]&&Ey[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},Xf=Symbol("internals");function ai(e){return e&&String(e).trim().toLowerCase()}function ya(e){return e===!1||e==null?e:J.isArray(e)?e.map(ya):String(e)}function _y(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const Sy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ml(e,t,n,a,s){if(J.isFunction(a))return a.call(this,t,n);if(s&&(t=n),!!J.isString(t)){if(J.isString(a))return t.indexOf(a)!==-1;if(J.isRegExp(a))return a.test(t)}}function ky(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Ay(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(s,l,u){return this[a].call(this,t,s,l,u)},configurable:!0})})}class ba{constructor(t){t&&this.set(t)}set(t,n,a){const s=this;function l(f,h,d){const g=ai(h);if(!g)throw new Error("header name must be a non-empty string");const p=J.findKey(s,g);(!p||s[p]===void 0||d===!0||d===void 0&&s[p]!==!1)&&(s[p||h]=ya(f))}const u=(f,h)=>J.forEach(f,(d,g)=>l(d,g,h));return J.isPlainObject(t)||t instanceof this.constructor?u(t,n):J.isString(t)&&(t=t.trim())&&!Sy(t)?u(xy(t),n):t!=null&&l(n,t,a),this}get(t,n){if(t=ai(t),t){const a=J.findKey(this,t);if(a){const s=this[a];if(!n)return s;if(n===!0)return _y(s);if(J.isFunction(n))return n.call(this,s,a);if(J.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ai(t),t){const a=J.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Ml(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let s=!1;function l(u){if(u=ai(u),u){const f=J.findKey(a,u);f&&(!n||Ml(a,a[f],f,n))&&(delete a[f],s=!0)}}return J.isArray(t)?t.forEach(l):l(t),s}clear(t){const n=Object.keys(this);let a=n.length,s=!1;for(;a--;){const l=n[a];(!t||Ml(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const n=this,a={};return J.forEach(this,(s,l)=>{const u=J.findKey(a,l);if(u){n[u]=ya(s),delete n[l];return}const f=t?ky(l):String(l).trim();f!==l&&delete n[l],n[f]=ya(s),a[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(a,s)=>{a!=null&&a!==!1&&(n[s]=t&&J.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
33
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(s=>a.set(s)),a}static accessor(t){const a=(this[Xf]=this[Xf]={accessors:{}}).accessors,s=this.prototype;function l(u){const f=ai(u);a[f]||(Ay(s,u),a[f]=!0)}return J.isArray(t)?t.forEach(l):l(t),this}}ba.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.freezeMethods(ba.prototype),J.freezeMethods(ba);const Qn=ba;function Ul(e,t){const n=this||Ll,a=t||n,s=Qn.from(a.headers);let l=a.data;return J.forEach(e,function(f){l=f.call(n,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function Zf(e){return!!(e&&e.__CANCEL__)}function si(e,t,n){Re.call(this,e??"canceled",Re.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(si,Re,{__CANCEL__:!0});function Iy(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Re("Request failed with status code "+n.status,[Re.ERR_BAD_REQUEST,Re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vy=Rn.isStandardBrowserEnv?function(){return{write:function(n,a,s,l,u,f){const h=[];h.push(n+"="+encodeURIComponent(a)),J.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),J.isString(l)&&h.push("path="+l),J.isString(u)&&h.push("domain="+u),f===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ty(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ny(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function e0(e,t){return e&&!Ty(t)?Ny(e,t):t}const By=Rn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function s(l){let u=l;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=s(window.location.href),function(u){const f=J.isString(u)?s(u):u;return f.protocol===a.protocol&&f.host===a.host}}():function(){return function(){return!0}}();function Dy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Oy(e,t){e=e||10;const n=new Array(e),a=new Array(e);let s=0,l=0,u;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),g=a[l];u||(u=d),n[s]=h,a[s]=d;let p=l,y=0;for(;p!==s;)y+=n[p++],p=p%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),d-u<t)return;const _=g&&d-g;return _?Math.round(y*1e3/_):void 0}}function t0(e,t){let n=0;const a=Oy(50,250);return s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,f=l-n,h=a(f),d=l<=u;n=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u&&d?(u-l)/h:void 0,event:s};g[t?"download":"upload"]=!0,e(g)}}const wa={http:sy,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){let s=e.data;const l=Qn.from(e.headers).normalize(),u=e.responseType;let f;function h(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}J.isFormData(s)&&(Rn.isStandardBrowserEnv||Rn.isStandardBrowserWebWorkerEnv?l.setContentType(!1):l.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(_+":"+v))}const g=e0(e.baseURL,e.url);d.open(e.method.toUpperCase(),jf(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const _=Qn.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};Iy(function(E){n(E),h()},function(E){a(E),h()},w),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(a(new Re("Request aborted",Re.ECONNABORTED,e,d)),d=null)},d.onerror=function(){a(new Re("Network Error",Re.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||qf;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),a(new Re(v,w.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,d)),d=null},Rn.isStandardBrowserEnv){const _=(e.withCredentials||By(g))&&e.xsrfCookieName&&Vy.read(e.xsrfCookieName);_&&l.set(e.xsrfHeaderName,_)}s===void 0&&l.setContentType(null),"setRequestHeader"in d&&J.forEach(l.toJSON(),function(v,w){d.setRequestHeader(w,v)}),J.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",t0(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t0(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=_=>{d&&(a(!_||_.type?new si(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));const y=Dy(g);if(y&&Rn.protocols.indexOf(y)===-1){a(new Re("Unsupported protocol "+y+":",Re.ERR_BAD_REQUEST,e));return}d.send(s||null)})}};J.forEach(wa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Py={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,a;for(let s=0;s<t&&(n=e[s],!(a=J.isString(n)?wa[n.toLowerCase()]:n));s++);if(!a)throw a===!1?new Re(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(J.hasOwnProp(wa,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!J.isFunction(a))throw new TypeError("adapter is not a function");return a},adapters:wa};function Hl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new si(null,e)}function n0(e){return Hl(e),e.headers=Qn.from(e.headers),e.data=Ul.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Py.getAdapter(e.adapter||Ll.adapter)(e).then(function(a){return Hl(e),a.data=Ul.call(e,e.transformResponse,a),a.headers=Qn.from(a.headers),a},function(a){return Zf(a)||(Hl(e),a&&a.response&&(a.response.data=Ul.call(e,e.transformResponse,a.response),a.response.headers=Qn.from(a.response.headers))),Promise.reject(a)})}const r0=e=>e instanceof Qn?e.toJSON():e;function ho(e,t){t=t||{};const n={};function a(d,g,p){return J.isPlainObject(d)&&J.isPlainObject(g)?J.merge.call({caseless:p},d,g):J.isPlainObject(g)?J.merge({},g):J.isArray(g)?g.slice():g}function s(d,g,p){if(J.isUndefined(g)){if(!J.isUndefined(d))return a(void 0,d,p)}else return a(d,g,p)}function l(d,g){if(!J.isUndefined(g))return a(void 0,g)}function u(d,g){if(J.isUndefined(g)){if(!J.isUndefined(d))return a(void 0,d)}else return a(void 0,g)}function f(d,g,p){if(p in t)return a(d,g);if(p in e)return a(void 0,d)}const h={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(d,g)=>s(r0(d),r0(g),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=h[g]||s,y=p(e[g],t[g],g);J.isUndefined(y)&&p!==f||(n[g]=y)}),n}const o0="1.4.0",Wl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wl[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const i0={};Wl.transitional=function(t,n,a){function s(l,u){return"[Axios v"+o0+"] Transitional option '"+l+"'"+u+(a?". "+a:"")}return(l,u,f)=>{if(t===!1)throw new Re(s(u," has been removed"+(n?" in "+n:"")),Re.ERR_DEPRECATED);return n&&!i0[u]&&(i0[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,u,f):!0}};function Ry(e,t,n){if(typeof e!="object")throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const l=a[s],u=t[l];if(u){const f=e[l],h=f===void 0||u(f,l,e);if(h!==!0)throw new Re("option "+l+" must be "+h,Re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Re("Unknown option "+l,Re.ERR_BAD_OPTION)}}const zl={assertOptions:Ry,validators:Wl},mr=zl.validators;class va{constructor(t){this.defaults=t,this.interceptors={request:new Gf,response:new Gf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ho(this.defaults,n);const{transitional:a,paramsSerializer:s,headers:l}=n;a!==void 0&&zl.assertOptions(a,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),s!=null&&(J.isFunction(s)?n.paramsSerializer={serialize:s}:zl.assertOptions(s,{encode:mr.function,serialize:mr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=l&&J.merge(l.common,l[n.method]),u&&J.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Qn.concat(u,l);const f=[];let h=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(h=h&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let g,p=0,y;if(!h){const v=[n0.bind(this),void 0];for(v.unshift.apply(v,f),v.push.apply(v,d),y=v.length,g=Promise.resolve(n);p<y;)g=g.then(v[p++],v[p++]);return g}y=f.length;let _=n;for(p=0;p<y;){const v=f[p++],w=f[p++];try{_=v(_)}catch(C){w.call(this,C);break}}try{g=n0.call(this,_)}catch(v){return Promise.reject(v)}for(p=0,y=d.length;p<y;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=ho(this.defaults,t);const n=e0(t.baseURL,t.url);return jf(n,t.params,t.paramsSerializer)}}J.forEach(["delete","get","head","options"],function(t){va.prototype[t]=function(n,a){return this.request(ho(a||{},{method:t,url:n,data:(a||{}).data}))}}),J.forEach(["post","put","patch"],function(t){function n(a){return function(l,u,f){return this.request(ho(f||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}va.prototype[t]=n(),va.prototype[t+"Form"]=n(!0)});const Ca=va;class Kl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const a=this;this.promise.then(s=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](s);a._listeners=null}),this.promise.then=s=>{let l;const u=new Promise(f=>{a.subscribe(f),l=f}).then(s);return u.cancel=function(){a.unsubscribe(l)},u},t(function(l,u,f){a.reason||(a.reason=new si(l,u,f),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Kl(function(s){t=s}),cancel:t}}}const Fy=Kl;function Ly(e){return function(n){return e.apply(null,n)}}function My(e){return J.isObject(e)&&e.isAxiosError===!0}const Yl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yl).forEach(([e,t])=>{Yl[t]=e});const Uy=Yl;function a0(e){const t=new Ca(e),n=Bf(Ca.prototype.request,t);return J.extend(n,Ca.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return a0(ho(e,s))},n}const ut=a0(Ll);ut.Axios=Ca,ut.CanceledError=si,ut.CancelToken=Fy,ut.isCancel=Zf,ut.VERSION=o0,ut.toFormData=ga,ut.AxiosError=Re,ut.Cancel=ut.CanceledError,ut.all=function(t){return Promise.all(t)},ut.spread=Ly,ut.isAxiosError=My,ut.mergeConfig=ho,ut.AxiosHeaders=Qn,ut.formToJSON=e=>Jf(J.isHTMLForm(e)?new FormData(e):e),ut.HttpStatusCode=Uy,ut.default=ut;const li=ut,Hy=`${{VITE_DOMAIN_URL:"",VITE_ENV:"prod",VITE_VIDEO_APP_ID:"1500014793",BASE_URL:"/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1}.VITE_DOMAIN_URL}`,Ql=3e4;li.defaults.withCredentials=!0,li.defaults.baseURL=Hy;const Ea=(e,t,n,a)=>new Promise((s,l)=>{var g;const u=t.indexOf("services")==-1;let f=window.location.pathname.split("/")[2];(!f||f=="null")&&(f="zcsk");const h=localStorage.getItem(f),d=(g=JSON.parse(h))==null?void 0:g.Authorization;d&&(a={...a,Authorization:"Bearer "+(d&&d.indexOf('"')!=-1?d.substring(1,d.length-1):d)}),e=="post"||e=="put"?li({url:t,method:e,data:n,timeout:Ql,headers:a}).then(p=>{if(u)s(p.data);else{const y=p.data;y.code===0?s(y.data):l(y)}}).catch(p=>{l(p),console.error("error",p)}):e=="get"?li.get(t,{params:n,timeout:Ql,headers:a}).then(p=>{if(u)s(p.data);else{const y=p.data;y.code===0?s(y.data):l(y)}}).catch(p=>{l(p),console.error("error",p)}):li.delete(t,{data:n,timeout:Ql,headers:a}).then(p=>{if(u)s(p.data);else{const y=p.data;y.code===0?s(y.data):l(y)}}).catch(p=>{l(p),console.error("error",p)})}),Wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADICAYAAABS39xVAAAAAXNSR0IArs4c6QAAD05JREFUeF7tnQtz2yoQRuU4btJO//8v7TRO29h31hM6KldIi4AFxGHG00d4nl1/WRCC09vb230iQQACEOiAwAnB6sBKdBECEHgQQLBwBAhAoBsCCFY3pqKjEIAAg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i8nbFEgBmiQQMlgU+IxQIPEywlbFIgBGiRQMtiUeAzQIPFywhYFYoAGCZQMNiUeA/8C7NKGbiGTgIIAAAAASUVORK5CYII=",bV="",Yy={name:"FormItem",components:{InputBox:pd},emits:["selectItem","getIndex"],inject:["addFile","toPay"],props:{item:{type:Object,required:!0},itemIndex:{type:Number,required:!0},editItem:{type:Boolean,required:!0},currentKey:{type:String,required:!1},currentPageIndex:{type:Number,required:!1},form:{type:Object},noAnswer:{type:String,required:!1},dependValues:{type:Array,required:!1,default:function(){return[]}},inPc:{type:Boolean},answer:{type:Object},init:{type:Boolean},enableForbid:{type:Boolean}},data(){var e;return{showDialog:!1,areaList:v4,areaCode:"",typeMap:{integer:"digit",float:"number",instant:"time",phone:"tel",password:"password"},pickerOption:[],numberType:["integer","float","phone"],textType:["instant","text","period","password","identity"],textArr:["instant","area","text","integer","float","period","phone","password","identity"],useField:["text","integer","float","phone","password","identity"],noTitleTip:["text","integer","float","phone","password","instant","period","area","picker","customPicker","identity","hos"],showTitleLimit:["text","integer","float","password"],textValue:"",textEmsg:"",switchValue:!1,radioValue:"",checkboxValue:[],fileList:[],doneFile:[],pickerSelected:{},customPicker:{},timeValue:(e=this.item.range)!=null&&e.min?this.minDate1:new Date,defaultDate:[],rateValue:0,sliderValue:0,pickerVisible:!1,cusPickerVisible:!1,cusSearchValue:"",timeVisible:!1,areaVisible:!1,calendarVisible:!1,payValue:{pay:!1,date:""},noAnswerKey:"",loadCustom:!1,optionEmpty:!1,pickerTop:{width:"100%",display:"flex",alignItems:"center",boxSizing:"border-box",justifyContent:"space-between"},idFront:[],frontImg:null,idBack:[],backImg:null,showSign:!1,signImg:""}},watch:{textValue(e){if((e==null?void 0:e.length)>0&&this.noAnswerKey&&(this.noAnswerKey=""),this.showTitleLimit.includes(this.item.type)){const{min:t,max:n}=this.item.range;if(this.item.type==="text"||this.item.type==="password"){const a=e.length;t&&a<t*1?this.item.type==="text"?this.textEmsg=`不能少于${t}个字`:this.item.type==="password"&&(this.textEmsg=`不能少于${t}个字符`):n&&a>n*1?this.item.type==="text"?this.textEmsg=`不能大于${n}个字`:this.item.type==="password"&&(this.textEmsg=`不能大于${n}个字符`):this.textEmsg=""}else(this.item.type==="integer"||this.item.type==="float")&&(t&&e*1<t*1?this.textEmsg=`不能小于${t}`:n&&e*1>n*1?this.textEmsg=`不能大于${n}`:this.textEmsg="")}this.dependChange()},rateValue(){this.dependChange()},sliderValue(){this.dependChange()},switchValue(){this.setDependValue({gid:this.gid,key:this.item.key,value:this.switchValue})},timeValue(e){console.log("newTime",e)},doneFile:{handler(e){console.log("donfile change",e),this.dependChange()},deep:!0},noAnswer:{handler(e){this.noAnswerKey=e},immedeiate:!0},isShow:{handler(e){if(!e){this.item.type==="radio"&&(this.radioValue=""),this.item.type==="checkbox"&&(this.checkboxValue=[]);const t=this.dependValues.findIndex(n=>n.key===this.item.key);t>-1&&this.dependValues[t]&&this.dependValues.splice(t,1)}},immediate:!0},answer:{handler(e){e&&this.initDependValue()}},init(){this.initDependValue()}},computed:{maxlength(){return this.item.limit?"maxlength":""},maxCount(){return this.item.limit?"max-count":""},minDate(){var e;return(e=this.item.range)!=null&&e.min?new Date(this.item.range.min):new Date(ca(new Date).add(-30,"year").format("YYYY-MM-DD"))},maxDate(){var e;return(e=this.item.range)!=null&&e.max?new Date(this.item.range.max):new Date(ca(new Date).add(20,"year").format("YYYY-MM-DD"))},minDate1(){var t;let e=new Date;return(t=this.item.range)!=null&&t.min?new Date(this.item.range.min):new Date(e.setFullYear(e.getFullYear()-100))},maxDate1(){var t;let e=new Date;return(t=this.item.range)!=null&&t.max?new Date(this.item.range.max):new Date(e.setFullYear(e.getFullYear()+100))},readonly(){return["picker","instant","period","area"].includes(this.item.type)},showLabel(){return["text","integer","float","phone","password","picker","instant","period","area"].includes(this.item.type)},isShow(){return this.item.depends.length?this.item.depends.some(e=>{const t=this.dependValues.find(a=>e.item===a.key&&e.group===a.gid);return e==null?void 0:e.vals.find(a=>Array.isArray(t==null?void 0:t.value)?t.value.some(s=>s===a.id):a.id===(t==null?void 0:t.value))}):!0},gid(){return this.form.groups.find(e=>e.items.find(t=>t.key===this.item.key)).gid},currentPage(){return this.form.groups[this.currentPageIndex]},teleport(){return this.inPc?"#yqform_pop_container":"body"},disableItem(){return this.enableForbid&&this.item.noModify}},methods:{handleChange(e){this.item.type==="float"&&e.target.value&&(this.textValue=(e.target.value*1).toFixed(this.item.range.digits*1))},handleClick(){this.$emit("selectItem",this.item.key)},itemClick(){switch(this.item.type){case"picker":this.pickerVisible=!this.pickerVisible;break;case"instant":this.timeVisible=!0;break;case"period":this.calendarVisible=!0;break;case"area":this.areaVisible=!0;break;case"customPicker":case"hos":this.cusPickerVisible=!0,this.searchCus();break}},closeCusPicker(){this.cusPickerVisible=!1,this.cusSearchValue="",this.loadCustom=!1},searchCus(){var e;if(this.item.type==="customPicker"){let t=this.cusSearchValue;const n=this.item.spec.request,a=this.item.spec.response,s={};let l;this.loadCustom=!0,((e=n.params)==null?void 0:e.length)>0&&n.params.forEach(u=>{s[u.name]=u.value}),s[n.page.param]=n.page.value,s[n.size.param]=n.size.value,s[n.keyword.param]=t,console.log("params >>",s),Ea(n.method,n.url,s).then(u=>{if(l=u.totalPages,this.item.options=[],t===""&&(l=2),l===0)this.loadCustom=!1,this.optionEmpty=!0;else for(let f=0;f<l;f++)this.item.options=[],this.optionEmpty=!1,s[n.page.param]=f,s[n.size.param]=n.size.value,s[n.keyword.param]=t,Ea(n.method,n.url,s).then(h=>{if(a.list.indexOf(".")===-1)h[a.list].forEach(d=>{let g={id:d[a.item.id],content:d[a.item.name]};this.item.options.push(g),this.$refs.cusPicker.setColumnValues(0,this.item.options)});else{let d=a.list.split("."),g;for(let p=0;p<d.length;p++)console.log(d[p]),g=a[d[p]];g.forEach(p=>{let y={id:p[a.item.id],name:p[a.item.name]};console.log("obj >>",p),this.item.options.push(y)})}this.loadCustom=!1}).catch(h=>{this.loadCustom=!1,console.log(h)})}).catch(u=>{console.log("[ err ] >",u),this.loadCustom=!1,this.$toast({message:"出错了",position:"bottom"})})}else if(this.item.type==="hos"){const t=window.location.search,n=new URLSearchParams(t),a={page:0,size:20,name:this.cusSearchValue,pid:n.get("pid")};let s=0;Ea("get","/services/bl/api/user/hospital",a).then(l=>{if(s=l.totalPages,this.cusSearchValue===""&&(s=2),this.item.options=l.content.map(u=>({id:u.id,content:u.name,...u})),s===0)this.loadCustom=!1,this.optionEmpty=!0;else for(let u=1;u<s;u++)this.optionEmpty=!1,a.page=u,a.size=20,a.name=this.cusSearchValue,Ea("get","/services/bl/api/user/hospital",a).then(f=>{f.content.forEach(h=>{let d={id:h.id,content:h.name,...h};console.log("obj >>",h),this.item.options.push(d)}),this.loadCustom=!1}).catch(f=>{this.loadCustom=!1,console.log(f)})})}},handlePopupConfirm(e){switch(this.item.type){case"picker":this.textValue=e.content,this.pickerSelected=e,this.pickerVisible=!1;break;case"instant":this.textValue=e,this.timeVisible=!1;break;case"area":this.textValue=e.map(t=>t.name).join(""),this.areaVisible=!1;break;case"customPicker":case"hos":console.log(e),this.customPicker=e,this.textValue=e.content,this.cusPickerVisible=!1}},dateTimeConfirm(e){this.textValue=ca(e).format("YYYY/MM/DD HH:mm:ss"),this.timeVisible=!1},calendarConfirm(e){this.textValue=e.map(t=>ca(t).format("YYYY-MM-DD")).join(" - "),this.calendarVisible=!this.calendarVisible},handleRemoveItem(){this.showDialog=!0},removeItem(e){const t=this.form.groups[this.currentPageIndex].items.findIndex(n=>n.key===e);this.form.groups[this.currentPageIndex].items.splice(t,1)},handleCopyItem(){const e=Tf.cloneDeep(this.item);e.key=_4(),this.form.groups[this.currentPageIndex].items.splice(this.itemIndex+1,0,e)},confirmDelete(){this.removeItem(this.item.key),this.showDialog=!1},beforeReadFile(e){return new Promise((t,n)=>{if(e.type.includes("image"))A4([e],a=>{const s=a[0];if(s.size>this.item.size*1024*1024){let l="图片大小不符合要求";this.$toast.fail(l),n(new Error(l))}else t(s)});else if(e.size>this.item.size*1024*1024){let a="文件大小不符合要求";this.$toast.fail(a),n(new Error(a))}else t(e)})},afterReadFile(e){Array.isArray(e)?e.forEach(t=>{this.handleFileUpload(t)}):this.handleFileUpload(e)},pushFile(e){this.doneFile.push(e)},handleFileUpload(e){this.addFile(e,this.itemIndex)},deleteFile(e){let t=e.file,n=this.doneFile.findIndex(a=>a.path===(t==null?void 0:t.path)||a.url===(t==null?void 0:t.url)||a.url===(e==null?void 0:e.url));return console.log("deleteFile index >>",this.doneFile,t,n),n!==-1?(this.doneFile.splice(n,1),!0):!1},setDependValue(e){const t=this.dependValues.findIndex(n=>n.key===e.key);t>-1?this.dependValues[t]&&this.dependValues.splice(t,1,e):this.dependValues.push(e)},dependChange(){let e;const t=this.item.type;t==="radio"?(e=this.radioValue,this.noAnswerKey&&(this.noAnswerKey="")):t==="checkbox"?(e=this.checkboxValue,this.noAnswerKey&&(this.noAnswerKey="")):t==="switch"?e=this.switchValue:this.textArr.includes(t)&&t!=="area"?e=this.textValue:t==="rate"?(e=this.rateValue,this.noAnswerKey&&(this.noAnswerKey="")):t==="slider"?e=this.sliderValue:t==="area"?e={code:this.areaCode,value:this.textValue}:t==="image"||t==="file"?(e=Tf.cloneDeep(this.doneFile),this.noAnswerKey&&(this.noAnswerKey="")):t==="picker"?e=this.pickerSelected:t==="customPicker"||t==="hos"?e=this.customPicker:t==="pay"?e=this.payValue:t==="sign"?e=this.signImg:t==="idPicture"&&(e={front:this.frontImg,back:this.backImg},console.log("[ value ] >",e)),this.setDependValue({gid:this.gid,key:this.item.key,value:e})},initDependValue(){if(this.dependValues.length>0){const e=this.currentPage.gid,t=this.item.type;this.dependValues.forEach(n=>{n.gid===e&&n.key===this.item.key&&n.value&&(t==="radio"?this.radioValue=n.value:t==="checkbox"?this.checkboxValue=n.value:t==="picker"?(this.pickerSelected=n.value,this.textValue=n.value.content):t==="switch"?this.switchValue=n.value:this.textType.includes(t)?(this.textValue=n.value,t==="instant"&&(this.timeValue=new Date(n.value)),t==="period"&&n.value.length>0&&(this.defaultDate.push(new Date(n.value.slice(0,10))),this.defaultDate.push(new Date(n.value.slice(13))))):this.numberType.includes(t)?t==="float"?this.textValue=(n.value*1).toFixed(this.item.digits):this.textValue=n.value*1:t==="rate"?this.rateValue=n.value:t==="slider"?this.sliderValue=n.value*1:t==="area"?(this.areaCode=n.value.code,this.textValue=n.value.value):t==="image"?(this.fileList=n.value,this.doneFile=n.value):t==="file"?(n.value.forEach(a=>{const s={url:a.url,file:new File([],a.name,{})};this.fileList.push(s)}),this.doneFile=n.value):t==="customPicker"||t==="hos"?(this.textValue=n.value.content,this.customPicker=n.value):t==="pay"?this.payValue=n.value:t==="sign"?this.signImg=n.value:t==="idPicture"&&(this.frontImg=n.value.front,this.backImg=n.value.back,this.idFront=[{...this.frontImg}],this.idBack=[{...this.backImg}]))})}this.item.type==="switch"?this.setDependValue({gid:this.gid,key:this.item.key,value:this.switchValue}):this.item.type==="rate"?this.setDependValue({gid:this.gid,key:this.item.key,value:this.rateValue}):this.item.type==="slider"&&this.setDependValue({gid:this.gid,key:this.item.key,value:this.sliderValue})},clickPay(){this.toPay(this.item,e=>{if(e){let t={pay:!0,amount:this.item.amount,date:e.date,desc:this.form.spec.name+this.item.title};this.payValue=Object.assign({},t,e),this.dependChange()}})},beforeReadFront(e){console.log("[ file ] >",e);const t=new FileReader;t.onload=n=>{Nf({url:n.target.result,type:e.type},a=>{if(!a)return!1;const{kb:s}=ri(a);return s>100?(this.$toast.fail("图片太大了"),!1):(this.frontImg={url:a,type:e.type,isImage:!0},this.idFront.push(this.frontImg),this.dependChange(),!0)})},t.readAsDataURL(e)},beforeReadBack(e){console.log("[ file ] >",e);const t=new FileReader;t.onload=n=>{Nf({url:n.target.result,type:e.type},a=>{if(!a)return!1;const{kb:s}=ri(a);return s>80?(this.$toast.fail("图片太大了"),!1):(this.backImg={url:a,type:e.type,isImage:!0},this.idBack.push(this.backImg),this.dependChange(),!0)})},t.readAsDataURL(e)},readImg(){console.log("[ this.frontImg, this.backImg ] >",this.frontImg,this.backImg)},deleteFrontPic(){this.frontImg=null,this.idFront=[],this.dependChange()},deleteBackPic(){this.backImg=null,this.idBack=[],this.dependChange()},openSign(){this.showSign=!0,this.noAnswerKey=""},closeSign(){this.showSign=!1,this.$refs.esign.reset()},resetSign(){this.$refs.esign.reset()},saveSign(){this.$refs.esign.generate().then(e=>{const{kb:t,mb:n}=ri(e);console.log("[ sign size ] >",t,n),this.signImg=e,this.showSign=!1,this.dependChange()}).catch(e=>{console.log("[ err ] >",e)})}},created(){this.item.type==="rate"&&(this.rateValue=1),this.initDependValue(),this.item.type==="phone"&&this.item.autoFill&&this.item.autoFill.auto&&this.item.autoFill.config&&(this.textValue=this.item.autoFill.config()),this.item.type==="identity"&&!this.item.emsg&&(this.item.emsg="身份证格式不正确")}},ci=e=>(o.pushScopeId("data-v-c326186a"),e=e(),o.popScopeId(),e),Qy={key:0,class:"form-item-container"},$y={key:0,class:"require-icon"},jy={class:"title"},Gy=ci(()=>o.createElementVNode("span",{class:"checkbox-title"}," [多选] ",-1)),qy={class:"subtitle"},Jy={key:0,class:"tip"},Xy={key:1,class:"switch-box"},Zy={class:"switch-btn"},eb={class:"text"},tb={key:0,class:"placeholder"},nb={key:1,class:"time-text"},rb={class:"icon"},ob={key:3,class:"input-text"},ib={key:0,class:"error-message"},ab={key:6,class:"slider-box"},sb={class:"left-num"},lb={class:"custom-button"},cb={class:"right-num"},ub={key:7,class:"rate-box"},db={class:"text"},fb={key:0,class:"placeholder"},hb={key:1,class:"time-text"},mb={class:"icon"},gb={key:11,class:"uploader-tips"},pb={class:"text"},yb={key:0,class:"placeholder"},bb={key:1,class:"time-text"},wb={class:"icon"},vb={key:0},Cb={key:1},Eb={class:"pay-amount"},xb={key:14,class:"id-picture"},_b=ci(()=>o.createElementVNode("div",{class:"id-picture-box"},[o.createElementVNode("img",{src:Wy,alt:""}),o.createElementVNode("p",null,"身份证正面")],-1)),Sb=ci(()=>o.createElementVNode("div",{class:"id-picture-box"},[o.createElementVNode("img",{src:zy,alt:""}),o.createElementVNode("p",null,"身份证反面")],-1)),kb={key:15,class:"sign"},Ab={key:0},Ib=["src"],Vb={key:16,class:"noAnswer"},Tb={key:17,class:"operation"},Nb=[ci(()=>o.createElementVNode("img",{class:"oper-icon",src:Ky,alt:"复制"},null,-1))],Bb={class:"sign-container"},Db={class:"sign-options"},Ob={class:"dialog-container"},Pb=ci(()=>o.createElementVNode("div",{class:"dialog-message"},"是否确认删除当前题目?",-1)),Rb={class:"confirm-btn"},Fb={class:"btn-con left"},Lb={class:"btn-con"};function Mb(e,t,n,a,s,l){const u=o.resolveComponent("van-switch"),f=o.resolveComponent("van-icon"),h=o.resolveComponent("van-field"),d=o.resolveComponent("van-radio"),g=o.resolveComponent("van-radio-group"),p=o.resolveComponent("van-checkbox"),y=o.resolveComponent("van-checkbox-group"),_=o.resolveComponent("van-slider"),v=o.resolveComponent("van-rate"),w=o.resolveComponent("van-uploader"),C=o.resolveComponent("van-button"),E=b4,S=pd,I=o.resolveComponent("van-datetime-picker"),A=o.resolveComponent("van-popup"),N=o.resolveComponent("van-calendar"),B=o.resolveComponent("van-area"),R=o.resolveComponent("van-picker"),$=o.resolveComponent("van-search"),F=o.resolveComponent("van-empty"),L=o.resolveComponent("vueEsign");return l.isShow?(o.openBlock(),o.createElementBlock("div",Qy,[o.createVNode(S,{active:n.item.key===n.currentKey&&n.editItem},{default:o.withCtx(()=>{var D,j;return[o.createElementVNode("div",{class:"quest-box",onClick:t[16]||(t[16]=(...T)=>l.handleClick&&l.handleClick(...T))},[n.item.required?(o.openBlock(),o.createElementBlock("div",$y,"*")):o.createCommentVNode("",!0),o.createElementVNode("div",jy,[s.showTitleLimit.includes(n.item.type)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.item.range.max!==""&&n.item.range.min!==""?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(n.item.title)+" ("+o.toDisplayString(n.item.range.min)+"至"+o.toDisplayString(n.item.range.max)+" "+o.toDisplayString(n.item.type==="text"||n.item.type==="password"?"字":"")+" "+o.toDisplayString(n.item.type==="float"&&n.item.range.digits?`且保留${n.item.range.digits}位小数`:"")+") ",1)],64)):n.item.range.max!==""?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.item.title)+" ("+o.toDisplayString(n.item.range.max)+" "+o.toDisplayString(n.item.type==="text"||n.item.type==="password"?"字":"")+" 以内"+o.toDisplayString(n.item.type==="float"&&n.item.range.digits?`且保留${n.item.range.digits}位小数`:"")+") ",1)],64)):n.item.range.min!==""?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(n.item.title)+" ("+o.toDisplayString(n.item.range.min)+" "+o.toDisplayString(n.item.type==="text"||n.item.type==="password"?"字":"")+" 以上"+o.toDisplayString(n.item.type==="float"&&n.item.range.digits?`且保留${n.item.range.digits}位小数`:"")+") ",1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n.item.title),1)],64))],64)):n.item.type==="checkbox"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.item.title),1),Gy,n.item.max&&n.item.max>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("(最多可选择"+o.toDisplayString(n.item.max)+"项)",1)],64)):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(n.item.title),1)],64))]),o.createElementVNode("div",qy,[o.createTextVNode(o.toDisplayString(n.item.subtitle)+" ",1),!s.noTitleTip.includes(n.item.type)&&n.item.placeholder?(o.openBlock(),o.createElementBlock("span",Jy,o.toDisplayString(`(${n.item.placeholder})`),1)):o.createCommentVNode("",!0)]),n.item.type==="switch"?(o.openBlock(),o.createElementBlock("div",Xy,[o.createElementVNode("div",Zy,[o.createVNode(u,{modelValue:s.switchValue,"onUpdate:modelValue":t[0]||(t[0]=T=>s.switchValue=T),disabled:l.disableItem},null,8,["modelValue","disabled"])])])):o.createCommentVNode("",!0),n.item.type==="picker"?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["picker-box",l.disableItem?"forbidden":""])},[o.createElementVNode("div",{class:"picker-text-area",onClick:t[1]||(t[1]=(...T)=>l.itemClick&&l.itemClick(...T))},[o.createElementVNode("div",eb,[s.textValue?(o.openBlock(),o.createElementBlock("span",nb,o.toDisplayString(s.textValue),1)):(o.openBlock(),o.createElementBlock("span",tb,o.toDisplayString(n.item.placeholder),1))]),o.createElementVNode("div",rb,[s.pickerVisible?(o.openBlock(),o.createBlock(f,{key:0,name:"arrow-up"})):(o.openBlock(),o.createBlock(f,{key:1,name:"arrow-down"}))])])],2)):o.createCommentVNode("",!0),s.useField.includes(n.item.type)?(o.openBlock(),o.createElementBlock("div",ob,[o.createVNode(h,o.normalizeProps({modelValue:s.textValue,"onUpdate:modelValue":t[2]||(t[2]=T=>s.textValue=T),placeholder:n.item.placeholder,rules:[{required:n.item.required,message:n.item.emsg||"当前项不能为空"}],[l.maxlength||""]:n.item.limit,readonly:l.readonly,disabled:l.disableItem,type:s.typeMap[n.item.type]??"text",onChange:l.handleChange}),null,16,["modelValue","placeholder","rules","readonly","disabled","type","onChange"]),s.textEmsg&&!s.noAnswerKey?(o.openBlock(),o.createElementBlock("div",ib,[o.createVNode(f,{name:"close",class:"close-icon"}),o.createTextVNode(" "+o.toDisplayString(s.textEmsg),1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.item.type==="radio"?(o.openBlock(),o.createBlock(g,{key:4,disabled:l.disableItem,modelValue:s.radioValue,"onUpdate:modelValue":t[3]||(t[3]=T=>s.radioValue=T),onChange:l.dependChange},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.item.options,T=>(o.openBlock(),o.createBlock(d,{key:T.id,name:T.id},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(T.content)+" ",1)]),_:2},1032,["name"]))),128))]),_:1},8,["disabled","modelValue","onChange"])):o.createCommentVNode("",!0),n.item.type==="checkbox"?(o.openBlock(),o.createBlock(y,{key:5,disabled:l.disableItem,modelValue:s.checkboxValue,"onUpdate:modelValue":t[4]||(t[4]=T=>s.checkboxValue=T),max:Number(n.item.max),onChange:l.dependChange},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.item.options,T=>(o.openBlock(),o.createBlock(p,{key:T.key,name:T.id,shape:"square"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(T.content),1)]),_:2},1032,["name"]))),128))]),_:1},8,["disabled","modelValue","max","onChange"])):o.createCommentVNode("",!0),n.item.type==="slider"?(o.openBlock(),o.createElementBlock("div",ab,[o.createElementVNode("div",sb,o.toDisplayString(n.item.range.min),1),o.createVNode(_,{disabled:l.disableItem,modelValue:s.sliderValue,"onUpdate:modelValue":t[5]||(t[5]=T=>s.sliderValue=T),max:(D=n.item.range)==null?void 0:D.max,min:(j=n.item.range)==null?void 0:j.min},{button:o.withCtx(()=>[o.createElementVNode("div",lb,o.toDisplayString(s.sliderValue),1)]),_:1},8,["disabled","modelValue","max","min"]),o.createElementVNode("div",cb,o.toDisplayString(n.item.range.max),1)])):o.createCommentVNode("",!0),n.item.type==="rate"?(o.openBlock(),o.createElementBlock("div",ub,[o.createVNode(v,{disabled:l.disableItem,count:n.item.size,modelValue:s.rateValue,"onUpdate:modelValue":t[6]||(t[6]=T=>s.rateValue=T)},null,8,["disabled","count","modelValue"])])):o.createCommentVNode("",!0),n.item.type==="instant"||n.item.type==="period"||n.item.type==="area"?(o.openBlock(),o.createElementBlock("div",{key:8,class:o.normalizeClass(["time-box",l.disableItem?"forbidden":""]),onClick:t[7]||(t[7]=(...T)=>l.itemClick&&l.itemClick(...T))},[o.createElementVNode("div",db,[s.textValue?(o.openBlock(),o.createElementBlock("span",hb,o.toDisplayString(s.textValue),1)):(o.openBlock(),o.createElementBlock("span",fb,o.toDisplayString(n.item.placeholder),1))]),o.createElementVNode("div",mb,[o.createVNode(f,{name:"arrow"})])],2)):o.createCommentVNode("",!0),n.item.type==="image"?(o.openBlock(),o.createBlock(w,o.normalizeProps({key:9,modelValue:s.fileList,"onUpdate:modelValue":t[8]||(t[8]=T=>s.fileList=T),multiple:"",disabled:l.disableItem,[l.maxCount||""]:n.item.limit,"max-size":n.item.size*1024*1024,accept:n.item.accept,"before-read":l.beforeReadFile,"after-read":l.afterReadFile,"before-delete":l.deleteFile}),null,16,["modelValue","disabled","max-size","accept","before-read","after-read","before-delete"])):o.createCommentVNode("",!0),n.item.type==="file"?(o.openBlock(),o.createBlock(w,o.normalizeProps({key:10,modelValue:s.fileList,"onUpdate:modelValue":t[9]||(t[9]=T=>s.fileList=T),multiple:"",disabled:l.disableItem,[l.maxCount||""]:n.item.limit,"max-size":n.item.size*1024*1024,accept:n.item.accept,"before-read":l.beforeReadFile,"after-read":l.afterReadFile,"before-delete":l.deleteFile}),{default:o.withCtx(()=>[n.item.type==="file"?(o.openBlock(),o.createBlock(C,{key:0,disabled:l.disableItem,icon:"plus",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(" 上传文件 ")]),_:1},8,["disabled"])):o.createCommentVNode("",!0)]),_:1},16,["modelValue","disabled","max-size","accept","before-read","after-read","before-delete"])):o.createCommentVNode("",!0),(n.item.type==="file"||n.item.type==="image")&&n.item.uploadTip?(o.openBlock(),o.createElementBlock("div",gb,o.toDisplayString(n.item.uploadTip),1)):o.createCommentVNode("",!0),n.item.type==="customPicker"||n.item.type==="hos"?(o.openBlock(),o.createElementBlock("div",{key:12,class:o.normalizeClass(["picker-box",l.disableItem?"forbidden":""])},[o.createElementVNode("div",{class:"picker-text-area",onClick:t[10]||(t[10]=(...T)=>l.itemClick&&l.itemClick(...T))},[o.createElementVNode("div",pb,[s.textValue?(o.openBlock(),o.createElementBlock("span",bb,o.toDisplayString(s.textValue),1)):(o.openBlock(),o.createElementBlock("span",yb,o.toDisplayString(n.item.placeholder),1))]),o.createElementVNode("div",wb,[s.cusPickerVisible?(o.openBlock(),o.createBlock(f,{key:0,name:"arrow-up"})):(o.openBlock(),o.createBlock(f,{key:1,name:"arrow-down"}))])])],2)):o.createCommentVNode("",!0),n.item.type==="pay"?(o.openBlock(),o.createElementBlock("div",{key:13,class:o.normalizeClass(["pay-box",l.disableItem?"forbidden":""])},[o.createElementVNode("div",null,[s.payValue.pay?(o.openBlock(),o.createElementBlock("span",vb,"已支付")):(o.openBlock(),o.createElementBlock("span",Cb,"支付金额")),o.createTextVNode(": "),o.createElementVNode("span",Eb,o.toDisplayString(n.item.amount),1),o.createTextVNode("元 ")]),s.payValue.pay?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,class:"click-button",onClick:t[11]||(t[11]=(...T)=>l.clickPay&&l.clickPay(...T))},"去支付"))],2)):o.createCommentVNode("",!0),n.item.type==="idPicture"?(o.openBlock(),o.createElementBlock("div",xb,[o.createVNode(w,{modelValue:s.idFront,"onUpdate:modelValue":t[12]||(t[12]=T=>s.idFront=T),maxCount:1,beforeRead:l.beforeReadFront,"after-read":l.readImg,"before-delete":l.deleteFrontPic},{default:o.withCtx(()=>[_b]),_:1},8,["modelValue","beforeRead","after-read","before-delete"]),o.createVNode(w,{modelValue:s.idBack,"onUpdate:modelValue":t[13]||(t[13]=T=>s.idBack=T),maxCount:1,beforeRead:l.beforeReadBack,"after-read":l.readImg,"before-delete":l.deleteBackPic},{default:o.withCtx(()=>[Sb]),_:1},8,["modelValue","beforeRead","after-read","before-delete"])])):o.createCommentVNode("",!0),n.item.type==="sign"?(o.openBlock(),o.createElementBlock("div",kb,[o.createElementVNode("button",{class:"click-button",onClick:t[14]||(t[14]=(...T)=>l.openSign&&l.openSign(...T))},[s.signImg?(o.openBlock(),o.createElementBlock("span",Ab,"重新")):o.createCommentVNode("",!0),o.createTextVNode("签名")]),s.signImg?(o.openBlock(),o.createElementBlock("img",{key:0,src:s.signImg,alt:""},null,8,Ib)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),s.noAnswerKey===n.item.key?(o.openBlock(),o.createElementBlock("div",Vb,[o.createVNode(f,{name:"close",class:"close-icon"}),o.createTextVNode(" "+o.toDisplayString(n.item.emsg?n.item.emsg:"当前项不能为空"),1)])):o.createCommentVNode("",!0),n.editItem?(o.openBlock(),o.createElementBlock("div",Tb,[o.createVNode(E,{class:"item",effect:"dark",content:"复制该题目",placement:"top"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"oper-icon",onClick:t[15]||(t[15]=o.withModifiers((...T)=>l.handleCopyItem&&l.handleCopyItem(...T),["stop"]))},Nb)]),_:1}),o.createVNode(E,{class:"item",effect:"dark",content:"长按拖动",placement:"top"},{default:o.withCtx(()=>[o.createVNode(f,{class:"oper-icon move",name:"sort"})]),_:1}),o.createVNode(E,{class:"item",effect:"dark",content:"点击删除",placement:"top"},{default:o.withCtx(()=>[o.createVNode(f,{class:"oper-icon",name:"delete-o",onClick:o.withModifiers(l.handleRemoveItem,["stop"])},null,8,["onClick"])]),_:1})])):o.createCommentVNode("",!0)])]}),_:1},8,["active"]),n.item.type==="instant"?(o.openBlock(),o.createBlock(A,{key:0,teleport:l.teleport,show:s.timeVisible,"onUpdate:show":t[19]||(t[19]=D=>s.timeVisible=D),round:"",position:"bottom"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:s.timeValue,"onUpdate:modelValue":t[17]||(t[17]=D=>s.timeValue=D),title:"选择时间",type:"datetime","min-date":l.minDate1,"max-date":l.maxDate1,onConfirm:l.dateTimeConfirm,onCancel:t[18]||(t[18]=D=>s.timeVisible=!1)},null,8,["modelValue","min-date","max-date","onConfirm"])]),_:1},8,["teleport","show"])):n.item.type==="period"?(o.openBlock(),o.createBlock(N,{key:1,teleport:l.teleport,show:s.calendarVisible,"onUpdate:show":t[20]||(t[20]=D=>s.calendarVisible=D),"allow-same-day":"",type:"range","default-date":s.defaultDate,"min-date":l.minDate,"max-date":l.maxDate,onConfirm:l.calendarConfirm,onCancel:t[21]||(t[21]=D=>s.calendarVisible=!1)},null,8,["teleport","show","default-date","min-date","max-date","onConfirm"])):n.item.type==="area"?(o.openBlock(),o.createBlock(A,{key:2,teleport:l.teleport,show:s.areaVisible,"onUpdate:show":t[24]||(t[24]=D=>s.areaVisible=D),round:"",position:"bottom"},{default:o.withCtx(()=>[o.createVNode(B,{title:"标题",modelValue:s.areaCode,"onUpdate:modelValue":t[22]||(t[22]=D=>s.areaCode=D),"area-list":s.areaList,onConfirm:l.handlePopupConfirm,onCancel:t[23]||(t[23]=D=>s.areaVisible=!1)},null,8,["modelValue","area-list","onConfirm"])]),_:1},8,["teleport","show"])):n.item.type==="picker"?(o.openBlock(),o.createBlock(A,{key:3,teleport:l.teleport,show:s.pickerVisible,"onUpdate:show":t[26]||(t[26]=D=>s.pickerVisible=D),round:"",position:"bottom"},{default:o.withCtx(()=>[o.createVNode(R,{columns:n.item.options,"columns-field-names":{text:"content"},onCancel:t[25]||(t[25]=D=>s.pickerVisible=!1),onConfirm:l.handlePopupConfirm},null,8,["columns","onConfirm"])]),_:1},8,["teleport","show"])):n.item.type==="customPicker"||n.item.type==="hos"?(o.openBlock(),o.createBlock(A,{key:4,teleport:l.teleport,show:s.cusPickerVisible,"onUpdate:show":t[28]||(t[28]=D=>s.cusPickerVisible=D),round:"",position:"bottom",style:{height:"50%",overflow:"hidden"}},{default:o.withCtx(()=>[o.createVNode(R,{ref:"cusPicker",class:"custom-picker",columns:n.item.options,"columns-field-names":{text:"content"},loading:s.loadCustom,style:{padding:"0 10px"},onCancel:l.closeCusPicker,onConfirm:l.handlePopupConfirm},{"columns-top":o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(s.pickerTop)},[o.createVNode($,{style:{flex:"1"},modelValue:s.cusSearchValue,"onUpdate:modelValue":t[27]||(t[27]=D=>s.cusSearchValue=D),shape:"round",placeholder:"请输入搜索关键词"},null,8,["modelValue"]),o.createVNode(C,{style:{width:"60px"},type:"primary",size:"small",onClick:l.searchCus},{default:o.withCtx(()=>[o.createTextVNode("搜索")]),_:1},8,["onClick"])],4),s.optionEmpty?(o.openBlock(),o.createBlock(F,{key:0,description:"暂无信息"})):o.createCommentVNode("",!0)]),_:1},8,["columns","loading","onCancel","onConfirm"])]),_:1},8,["teleport","show"])):o.createCommentVNode("",!0),o.createVNode(A,{teleport:l.teleport,show:s.showSign,"onUpdate:show":t[31]||(t[31]=D=>s.showSign=D),onClose:l.closeSign},{default:o.withCtx(()=>[o.createElementVNode("div",Bb,[o.createVNode(L,{class:"sign-area",ref:"esign",width:300,height:200,isCrop:!0},null,512),o.createElementVNode("div",Db,[o.createElementVNode("div",{class:"btn",onClick:t[29]||(t[29]=(...D)=>l.resetSign&&l.resetSign(...D))},"清空"),o.createElementVNode("div",{class:"btn",onClick:t[30]||(t[30]=(...D)=>l.saveSign&&l.saveSign(...D))},"确定")])])]),_:1},8,["teleport","show","onClose"]),o.createVNode(A,{show:s.showDialog,"onUpdate:show":t[33]||(t[33]=D=>s.showDialog=D),round:""},{default:o.withCtx(()=>[o.createElementVNode("div",Ob,[Pb,o.createElementVNode("div",Rb,[o.createElementVNode("div",Fb,[o.createVNode(C,{type:"default",onClick:t[32]||(t[32]=D=>s.showDialog=!1)},{default:o.withCtx(()=>[o.createTextVNode("取消")]),_:1})]),o.createElementVNode("div",Lb,[o.createVNode(C,{plain:"",type:"info",onClick:l.confirmDelete},{default:o.withCtx(()=>[o.createTextVNode("确认")]),_:1},8,["onClick"])])])])]),_:1},8,["show"])])):o.createCommentVNode("",!0)}const s0=no(Yy,[["render",Mb],["__scopeId","data-v-c326186a"]]);/*!
|
|
33
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(s=>a.set(s)),a}static accessor(t){const a=(this[Xf]=this[Xf]={accessors:{}}).accessors,s=this.prototype;function l(u){const f=ai(u);a[f]||(Ay(s,u),a[f]=!0)}return J.isArray(t)?t.forEach(l):l(t),this}}ba.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.freezeMethods(ba.prototype),J.freezeMethods(ba);const Qn=ba;function Ul(e,t){const n=this||Ll,a=t||n,s=Qn.from(a.headers);let l=a.data;return J.forEach(e,function(f){l=f.call(n,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function Zf(e){return!!(e&&e.__CANCEL__)}function si(e,t,n){Re.call(this,e??"canceled",Re.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(si,Re,{__CANCEL__:!0});function Iy(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Re("Request failed with status code "+n.status,[Re.ERR_BAD_REQUEST,Re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vy=Rn.isStandardBrowserEnv?function(){return{write:function(n,a,s,l,u,f){const h=[];h.push(n+"="+encodeURIComponent(a)),J.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),J.isString(l)&&h.push("path="+l),J.isString(u)&&h.push("domain="+u),f===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ty(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ny(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function e0(e,t){return e&&!Ty(t)?Ny(e,t):t}const By=Rn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function s(l){let u=l;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=s(window.location.href),function(u){const f=J.isString(u)?s(u):u;return f.protocol===a.protocol&&f.host===a.host}}():function(){return function(){return!0}}();function Dy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Oy(e,t){e=e||10;const n=new Array(e),a=new Array(e);let s=0,l=0,u;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),g=a[l];u||(u=d),n[s]=h,a[s]=d;let p=l,y=0;for(;p!==s;)y+=n[p++],p=p%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),d-u<t)return;const _=g&&d-g;return _?Math.round(y*1e3/_):void 0}}function t0(e,t){let n=0;const a=Oy(50,250);return s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,f=l-n,h=a(f),d=l<=u;n=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u&&d?(u-l)/h:void 0,event:s};g[t?"download":"upload"]=!0,e(g)}}const wa={http:sy,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){let s=e.data;const l=Qn.from(e.headers).normalize(),u=e.responseType;let f;function h(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}J.isFormData(s)&&(Rn.isStandardBrowserEnv||Rn.isStandardBrowserWebWorkerEnv?l.setContentType(!1):l.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(_+":"+v))}const g=e0(e.baseURL,e.url);d.open(e.method.toUpperCase(),jf(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const _=Qn.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};Iy(function(E){n(E),h()},function(E){a(E),h()},w),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(a(new Re("Request aborted",Re.ECONNABORTED,e,d)),d=null)},d.onerror=function(){a(new Re("Network Error",Re.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||qf;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),a(new Re(v,w.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,d)),d=null},Rn.isStandardBrowserEnv){const _=(e.withCredentials||By(g))&&e.xsrfCookieName&&Vy.read(e.xsrfCookieName);_&&l.set(e.xsrfHeaderName,_)}s===void 0&&l.setContentType(null),"setRequestHeader"in d&&J.forEach(l.toJSON(),function(v,w){d.setRequestHeader(w,v)}),J.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),u&&u!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",t0(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t0(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=_=>{d&&(a(!_||_.type?new si(null,e,d):_),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));const y=Dy(g);if(y&&Rn.protocols.indexOf(y)===-1){a(new Re("Unsupported protocol "+y+":",Re.ERR_BAD_REQUEST,e));return}d.send(s||null)})}};J.forEach(wa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Py={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,a;for(let s=0;s<t&&(n=e[s],!(a=J.isString(n)?wa[n.toLowerCase()]:n));s++);if(!a)throw a===!1?new Re(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(J.hasOwnProp(wa,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!J.isFunction(a))throw new TypeError("adapter is not a function");return a},adapters:wa};function Hl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new si(null,e)}function n0(e){return Hl(e),e.headers=Qn.from(e.headers),e.data=Ul.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Py.getAdapter(e.adapter||Ll.adapter)(e).then(function(a){return Hl(e),a.data=Ul.call(e,e.transformResponse,a),a.headers=Qn.from(a.headers),a},function(a){return Zf(a)||(Hl(e),a&&a.response&&(a.response.data=Ul.call(e,e.transformResponse,a.response),a.response.headers=Qn.from(a.response.headers))),Promise.reject(a)})}const r0=e=>e instanceof Qn?e.toJSON():e;function ho(e,t){t=t||{};const n={};function a(d,g,p){return J.isPlainObject(d)&&J.isPlainObject(g)?J.merge.call({caseless:p},d,g):J.isPlainObject(g)?J.merge({},g):J.isArray(g)?g.slice():g}function s(d,g,p){if(J.isUndefined(g)){if(!J.isUndefined(d))return a(void 0,d,p)}else return a(d,g,p)}function l(d,g){if(!J.isUndefined(g))return a(void 0,g)}function u(d,g){if(J.isUndefined(g)){if(!J.isUndefined(d))return a(void 0,d)}else return a(void 0,g)}function f(d,g,p){if(p in t)return a(d,g);if(p in e)return a(void 0,d)}const h={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(d,g)=>s(r0(d),r0(g),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(g){const p=h[g]||s,y=p(e[g],t[g],g);J.isUndefined(y)&&p!==f||(n[g]=y)}),n}const o0="1.4.0",Wl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wl[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const i0={};Wl.transitional=function(t,n,a){function s(l,u){return"[Axios v"+o0+"] Transitional option '"+l+"'"+u+(a?". "+a:"")}return(l,u,f)=>{if(t===!1)throw new Re(s(u," has been removed"+(n?" in "+n:"")),Re.ERR_DEPRECATED);return n&&!i0[u]&&(i0[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,u,f):!0}};function Ry(e,t,n){if(typeof e!="object")throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const l=a[s],u=t[l];if(u){const f=e[l],h=f===void 0||u(f,l,e);if(h!==!0)throw new Re("option "+l+" must be "+h,Re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Re("Unknown option "+l,Re.ERR_BAD_OPTION)}}const zl={assertOptions:Ry,validators:Wl},mr=zl.validators;class va{constructor(t){this.defaults=t,this.interceptors={request:new Gf,response:new Gf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ho(this.defaults,n);const{transitional:a,paramsSerializer:s,headers:l}=n;a!==void 0&&zl.assertOptions(a,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),s!=null&&(J.isFunction(s)?n.paramsSerializer={serialize:s}:zl.assertOptions(s,{encode:mr.function,serialize:mr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u;u=l&&J.merge(l.common,l[n.method]),u&&J.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Qn.concat(u,l);const f=[];let h=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(h=h&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let g,p=0,y;if(!h){const v=[n0.bind(this),void 0];for(v.unshift.apply(v,f),v.push.apply(v,d),y=v.length,g=Promise.resolve(n);p<y;)g=g.then(v[p++],v[p++]);return g}y=f.length;let _=n;for(p=0;p<y;){const v=f[p++],w=f[p++];try{_=v(_)}catch(C){w.call(this,C);break}}try{g=n0.call(this,_)}catch(v){return Promise.reject(v)}for(p=0,y=d.length;p<y;)g=g.then(d[p++],d[p++]);return g}getUri(t){t=ho(this.defaults,t);const n=e0(t.baseURL,t.url);return jf(n,t.params,t.paramsSerializer)}}J.forEach(["delete","get","head","options"],function(t){va.prototype[t]=function(n,a){return this.request(ho(a||{},{method:t,url:n,data:(a||{}).data}))}}),J.forEach(["post","put","patch"],function(t){function n(a){return function(l,u,f){return this.request(ho(f||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}va.prototype[t]=n(),va.prototype[t+"Form"]=n(!0)});const Ca=va;class Kl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const a=this;this.promise.then(s=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](s);a._listeners=null}),this.promise.then=s=>{let l;const u=new Promise(f=>{a.subscribe(f),l=f}).then(s);return u.cancel=function(){a.unsubscribe(l)},u},t(function(l,u,f){a.reason||(a.reason=new si(l,u,f),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Kl(function(s){t=s}),cancel:t}}}const Fy=Kl;function Ly(e){return function(n){return e.apply(null,n)}}function My(e){return J.isObject(e)&&e.isAxiosError===!0}const Yl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yl).forEach(([e,t])=>{Yl[t]=e});const Uy=Yl;function a0(e){const t=new Ca(e),n=Bf(Ca.prototype.request,t);return J.extend(n,Ca.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return a0(ho(e,s))},n}const ut=a0(Ll);ut.Axios=Ca,ut.CanceledError=si,ut.CancelToken=Fy,ut.isCancel=Zf,ut.VERSION=o0,ut.toFormData=ga,ut.AxiosError=Re,ut.Cancel=ut.CanceledError,ut.all=function(t){return Promise.all(t)},ut.spread=Ly,ut.isAxiosError=My,ut.mergeConfig=ho,ut.AxiosHeaders=Qn,ut.formToJSON=e=>Jf(J.isHTMLForm(e)?new FormData(e):e),ut.HttpStatusCode=Uy,ut.default=ut;const li=ut,Hy=`${{VITE_DOMAIN_URL:"",VITE_ENV:"prod",VITE_VIDEO_APP_ID:"1500014793",BASE_URL:"/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1}.VITE_DOMAIN_URL}`,Ql=3e4;li.defaults.withCredentials=!0,li.defaults.baseURL=Hy;const Ea=(e,t,n,a)=>new Promise((s,l)=>{var g;const u=t.indexOf("services")==-1;let f=window.location.pathname.split("/")[2];(!f||f=="null")&&(f="zcsk");const h=localStorage.getItem(f),d=(g=JSON.parse(h))==null?void 0:g.Authorization;d&&(a={...a,Authorization:"Bearer "+(d&&d.indexOf('"')!=-1?d.substring(1,d.length-1):d)}),e=="post"||e=="put"?li({url:t,method:e,data:n,timeout:Ql,headers:a}).then(p=>{if(u)s(p.data);else{const y=p.data;y.code===0?s(y.data):l(y)}}).catch(p=>{l(p),console.error("error",p)}):e=="get"?li.get(t,{params:n,timeout:Ql,headers:a}).then(p=>{if(u)s(p.data);else{const y=p.data;y.code===0?s(y.data):l(y)}}).catch(p=>{l(p),console.error("error",p)}):li.delete(t,{data:n,timeout:Ql,headers:a}).then(p=>{if(u)s(p.data);else{const y=p.data;y.code===0?s(y.data):l(y)}}).catch(p=>{l(p),console.error("error",p)})}),Wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADICAYAAABS39xVAAAAAXNSR0IArs4c6QAAD05JREFUeF7tnQtz2yoQRuU4btJO//8v7TRO29h31hM6KldIi4AFxGHG00d4nl1/WRCC09vb230iQQACEOiAwAnB6sBKdBECEHgQQLBwBAhAoBsCCFY3pqKjEIAAgoUPQAAC3RBAsLoxFR2FAAQQLHwAAhDohgCC1Y2p6CgEIIBg4QMQgEA3BBCsbkxFRyEAAQQLH4AABLohgGB1Yyo6CgEIIFj4AAQg0A0BBKsbU9FRCEAAwcIHIACBbgg0IVjn83k6nU6Pz9PTUzfw6CgEjk7gfr9Pt9vt8ZG/y6dmqipYX758QaBqWp+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fn6Kv7KhgyintalQYqXtR2AVgwyZzU1exA7vRVXUwMGmb2amgYpTtZ2Da7cINnDqm2GaRA7vRVXU7UGyXwgfyuBNEhxsrZrcHUG6eS2/zl+oLayYokGsWKywHoqMsjsZ41d6aNBChS2VZMLNcjYO4wLJjfyA/05Mw1ipbYC68k1yLBcYx9wLYdO2vbTIFqmKiyXaRCT2aFS6MQZRKQpIktJ+HY7MzcFbyqvOoNk7mx4d7ZU1V+iuGpoM3K7nBr4GTCoBPzbn+vrvpNPqaDnvOJPjcXyaQzkbsSXsyI2rWWxSqsMMuMb4Ka641ipfb81mc8f6u1ySuLivbbqDDLjfMCIB8fUkrxcHDNueKLdLie3bdGu0xrkqFvIsP9pzi/8aa85oEq9Zo45BsytPVeqDDIQk9slbwkJ9razVLF6tXvcrlXkqDuQ8znbtbb2/KF+SB8K5j7U7RDBuH+tl0Caj2O0h3Frw6s0g3xdD8Os4Zzy1G3mm9dnLQS0NrxKMgigF6lFN03gaLH3SDcIe5EmzPAWyBZ7j2SDsBdp0x8tv/BVz2JtS2PuVGGbMisTdevvsfIMMgy1DuR6zpRhmXJprNWGn66WylyWQcahFp9HSs25tt1cJqRdrLiL0cEki07OcxYyarPEcntggD3HE+nZPchjDU+Haopc7CGVDGnMQOvPHC/pnG2QJ6P8OqJ5WBLPF4nGonWqbtV3cnn/ebmXw3GcMCaHMTPI43PJeEQzjZKciD1ewMWk75BvapBnw64DOelEPnKma4/Sfz80jaFIDcQgz96ZDCtJD+RksZHfh7/3CzmSnsMwRW7sinSy6jay2gwLRDv5h8MoPbVwg+ibwpJkIB4DNEi8nLBFgRigQQIlg02JxwANEi8nbFEgBmiQQMlgU+IxQIPEywlbFIgBGiRQMtiUeAzQIPFywhYFYoAGCZQMNiUeA/8C7NKGbiGTgIIAAAAASUVORK5CYII=",bV="",Yy={name:"FormItem",components:{InputBox:pd},emits:["selectItem","getIndex"],inject:["addFile","toPay"],props:{item:{type:Object,required:!0},itemIndex:{type:Number,required:!0},editItem:{type:Boolean,required:!0},currentKey:{type:String,required:!1},currentPageIndex:{type:Number,required:!1},form:{type:Object},noAnswer:{type:String,required:!1},dependValues:{type:Array,required:!1,default:function(){return[]}},inPc:{type:Boolean},answer:{type:Object},init:{type:Boolean},enableForbid:{type:Boolean}},data(){var e;return{showDialog:!1,areaList:v4,areaCode:"",typeMap:{integer:"digit",float:"number",instant:"time",phone:"tel",password:"password"},pickerOption:[],numberType:["integer","float","phone"],textType:["instant","text","period","password","identity"],textArr:["instant","area","text","integer","float","period","phone","password","identity"],useField:["text","integer","float","phone","password","identity"],noTitleTip:["text","integer","float","phone","password","instant","period","area","picker","customPicker","identity","hos"],showTitleLimit:["text","integer","float","password"],textValue:"",textEmsg:"",switchValue:!1,radioValue:"",checkboxValue:[],fileList:[],doneFile:[],pickerSelected:{},customPicker:{},timeValue:(e=this.item.range)!=null&&e.min?this.minDate1:new Date,defaultDate:[],rateValue:0,sliderValue:0,pickerVisible:!1,cusPickerVisible:!1,cusSearchValue:"",timeVisible:!1,areaVisible:!1,calendarVisible:!1,payValue:{pay:!1,date:""},noAnswerKey:"",loadCustom:!1,optionEmpty:!1,pickerTop:{width:"100%",display:"flex",alignItems:"center",boxSizing:"border-box",justifyContent:"space-between"},idFront:[],frontImg:null,idBack:[],backImg:null,showSign:!1,signImg:""}},watch:{textValue(e){if((e==null?void 0:e.length)>0&&this.noAnswerKey&&(this.noAnswerKey=""),this.showTitleLimit.includes(this.item.type)){const{min:t,max:n}=this.item.range;if(this.item.type==="text"||this.item.type==="password"){const a=e.length;t&&a<t*1?this.item.type==="text"?this.textEmsg=`不能少于${t}个字`:this.item.type==="password"&&(this.textEmsg=`不能少于${t}个字符`):n&&a>n*1?this.item.type==="text"?this.textEmsg=`不能大于${n}个字`:this.item.type==="password"&&(this.textEmsg=`不能大于${n}个字符`):this.textEmsg=""}else(this.item.type==="integer"||this.item.type==="float")&&(t&&e*1<t*1?this.textEmsg=`不能小于${t}`:n&&e*1>n*1?this.textEmsg=`不能大于${n}`:this.textEmsg="")}this.dependChange()},rateValue(){this.dependChange()},sliderValue(){this.dependChange()},switchValue(){this.setDependValue({gid:this.gid,key:this.item.key,value:this.switchValue})},timeValue(e){console.log("newTime",e)},doneFile:{handler(e){console.log("donfile change",e),this.dependChange()},deep:!0},noAnswer:{handler(e){this.noAnswerKey=e},immedeiate:!0},isShow:{handler(e){if(!e){this.item.type==="radio"&&(this.radioValue=""),this.item.type==="checkbox"&&(this.checkboxValue=[]);const t=this.dependValues.findIndex(n=>n.key===this.item.key);t>-1&&this.dependValues[t]&&this.dependValues.splice(t,1)}},immediate:!0},answer:{handler(e){e&&this.initDependValue()}},init(){this.initDependValue()}},computed:{maxlength(){return this.item.limit?"maxlength":""},maxCount(){return this.item.limit?"max-count":""},minDate(){var e;return(e=this.item.range)!=null&&e.min?new Date(this.item.range.min):new Date(ca(new Date).add(-30,"year").format("YYYY-MM-DD"))},maxDate(){var e;return(e=this.item.range)!=null&&e.max?new Date(this.item.range.max):new Date(ca(new Date).add(20,"year").format("YYYY-MM-DD"))},minDate1(){var t;let e=new Date;return(t=this.item.range)!=null&&t.min?new Date(this.item.range.min):new Date(e.setFullYear(e.getFullYear()-100))},maxDate1(){var t;let e=new Date;return(t=this.item.range)!=null&&t.max?new Date(this.item.range.max):new Date(e.setFullYear(e.getFullYear()+100))},readonly(){return["picker","instant","period","area"].includes(this.item.type)},showLabel(){return["text","integer","float","phone","password","picker","instant","period","area"].includes(this.item.type)},isShow(){return this.item.depends.length?this.item.depends.some(e=>{const t=this.dependValues.find(a=>e.item===a.key&&e.group===a.gid);return e==null?void 0:e.vals.find(a=>Array.isArray(t==null?void 0:t.value)?t.value.some(s=>s===a.id):a.id===(t==null?void 0:t.value))}):!0},gid(){return this.form.groups.find(e=>e.items.find(t=>t.key===this.item.key)).gid},currentPage(){return this.form.groups[this.currentPageIndex]},teleport(){return this.inPc?"#yqform_pop_container":"body"},disableItem(){return this.enableForbid&&this.item.noModify}},methods:{handleChange(e){this.item.type==="float"&&e.target.value&&(this.textValue=(e.target.value*1).toFixed(this.item.range.digits*1))},handleClick(){this.$emit("selectItem",this.item.key)},itemClick(){switch(this.item.type){case"picker":this.pickerVisible=!this.pickerVisible;break;case"instant":this.timeVisible=!0;break;case"period":this.calendarVisible=!0;break;case"area":this.areaVisible=!0;break;case"customPicker":case"hos":this.cusPickerVisible=!0,this.searchCus();break}},closeCusPicker(){this.cusPickerVisible=!1,this.cusSearchValue="",this.loadCustom=!1},searchCus(){var e;if(this.item.type==="customPicker"){let t=this.cusSearchValue;const n=this.item.spec.request,a=this.item.spec.response,s={};let l;this.loadCustom=!0,((e=n.params)==null?void 0:e.length)>0&&n.params.forEach(u=>{s[u.name]=u.value}),s[n.page.param]=n.page.value,s[n.size.param]=n.size.value,s[n.keyword.param]=t,console.log("params >>",s),Ea(n.method,n.url,s).then(u=>{if(l=u.totalPages,this.item.options=[],t===""&&(l=2),l===0)this.loadCustom=!1,this.optionEmpty=!0;else for(let f=0;f<l;f++)this.item.options=[],this.optionEmpty=!1,s[n.page.param]=f,s[n.size.param]=n.size.value,s[n.keyword.param]=t,Ea(n.method,n.url,s).then(h=>{if(a.list.indexOf(".")===-1)h[a.list].forEach(d=>{let g={id:d[a.item.id],content:d[a.item.name]};this.item.options.push(g),this.$refs.cusPicker.setColumnValues(0,this.item.options)});else{let d=a.list.split("."),g;for(let p=0;p<d.length;p++)console.log(d[p]),g=a[d[p]];g.forEach(p=>{let y={id:p[a.item.id],name:p[a.item.name]};console.log("obj >>",p),this.item.options.push(y)})}this.loadCustom=!1}).catch(h=>{this.loadCustom=!1,console.log(h)})}).catch(u=>{console.log("[ err ] >",u),this.loadCustom=!1,this.$toast({message:"出错了",position:"bottom"})})}else if(this.item.type==="hos"){const t=window.location.search,n=new URLSearchParams(t),a={page:0,size:20,name:this.cusSearchValue,pid:n.get("pid")};let s=0;Ea("get","/services/bl/api/user/hospital",a).then(l=>{if(s=l.totalPages,this.cusSearchValue===""&&(s=2),this.item.options=l.content.map(u=>({id:u.id,content:u.name,...u})),s===0)this.loadCustom=!1,this.optionEmpty=!0;else if(s===1)this.loadCustom=!1,this.optionEmpty=!1;else for(let u=1;u<s;u++)this.optionEmpty=!1,a.page=u,a.size=20,a.name=this.cusSearchValue,Ea("get","/services/bl/api/user/hospital",a).then(f=>{f.content.forEach(h=>{let d={id:h.id,content:h.name,...h};console.log("obj >>",h),this.item.options.push(d)}),this.loadCustom=!1}).catch(f=>{this.loadCustom=!1,console.log(f)})})}},handlePopupConfirm(e){switch(this.item.type){case"picker":this.textValue=e.content,this.pickerSelected=e,this.pickerVisible=!1;break;case"instant":this.textValue=e,this.timeVisible=!1;break;case"area":this.textValue=e.map(t=>t.name).join(""),this.areaVisible=!1;break;case"customPicker":case"hos":console.log(e),this.customPicker=e,this.textValue=e.content,this.cusPickerVisible=!1}},dateTimeConfirm(e){this.textValue=ca(e).format("YYYY/MM/DD HH:mm:ss"),this.timeVisible=!1},calendarConfirm(e){this.textValue=e.map(t=>ca(t).format("YYYY-MM-DD")).join(" - "),this.calendarVisible=!this.calendarVisible},handleRemoveItem(){this.showDialog=!0},removeItem(e){const t=this.form.groups[this.currentPageIndex].items.findIndex(n=>n.key===e);this.form.groups[this.currentPageIndex].items.splice(t,1)},handleCopyItem(){const e=Tf.cloneDeep(this.item);e.key=_4(),this.form.groups[this.currentPageIndex].items.splice(this.itemIndex+1,0,e)},confirmDelete(){this.removeItem(this.item.key),this.showDialog=!1},beforeReadFile(e){return new Promise((t,n)=>{if(e.type.includes("image"))A4([e],a=>{const s=a[0];if(s.size>this.item.size*1024*1024){let l="图片大小不符合要求";this.$toast.fail(l),n(new Error(l))}else t(s)});else if(e.size>this.item.size*1024*1024){let a="文件大小不符合要求";this.$toast.fail(a),n(new Error(a))}else t(e)})},afterReadFile(e){Array.isArray(e)?e.forEach(t=>{this.handleFileUpload(t)}):this.handleFileUpload(e)},pushFile(e){this.doneFile.push(e)},handleFileUpload(e){this.addFile(e,this.itemIndex)},deleteFile(e){let t=e.file,n=this.doneFile.findIndex(a=>a.path===(t==null?void 0:t.path)||a.url===(t==null?void 0:t.url)||a.url===(e==null?void 0:e.url));return console.log("deleteFile index >>",this.doneFile,t,n),n!==-1?(this.doneFile.splice(n,1),!0):!1},setDependValue(e){const t=this.dependValues.findIndex(n=>n.key===e.key);t>-1?this.dependValues[t]&&this.dependValues.splice(t,1,e):this.dependValues.push(e)},dependChange(){let e;const t=this.item.type;t==="radio"?(e=this.radioValue,this.noAnswerKey&&(this.noAnswerKey="")):t==="checkbox"?(e=this.checkboxValue,this.noAnswerKey&&(this.noAnswerKey="")):t==="switch"?e=this.switchValue:this.textArr.includes(t)&&t!=="area"?e=this.textValue:t==="rate"?(e=this.rateValue,this.noAnswerKey&&(this.noAnswerKey="")):t==="slider"?e=this.sliderValue:t==="area"?e={code:this.areaCode,value:this.textValue}:t==="image"||t==="file"?(e=Tf.cloneDeep(this.doneFile),this.noAnswerKey&&(this.noAnswerKey="")):t==="picker"?e=this.pickerSelected:t==="customPicker"||t==="hos"?e=this.customPicker:t==="pay"?e=this.payValue:t==="sign"?e=this.signImg:t==="idPicture"&&(e={front:this.frontImg,back:this.backImg},console.log("[ value ] >",e)),this.setDependValue({gid:this.gid,key:this.item.key,value:e})},initDependValue(){if(this.dependValues.length>0){const e=this.currentPage.gid,t=this.item.type;this.dependValues.forEach(n=>{n.gid===e&&n.key===this.item.key&&n.value&&(t==="radio"?this.radioValue=n.value:t==="checkbox"?this.checkboxValue=n.value:t==="picker"?(this.pickerSelected=n.value,this.textValue=n.value.content):t==="switch"?this.switchValue=n.value:this.textType.includes(t)?(this.textValue=n.value,t==="instant"&&(this.timeValue=new Date(n.value)),t==="period"&&n.value.length>0&&(this.defaultDate.push(new Date(n.value.slice(0,10))),this.defaultDate.push(new Date(n.value.slice(13))))):this.numberType.includes(t)?t==="float"?this.textValue=(n.value*1).toFixed(this.item.digits):this.textValue=n.value*1:t==="rate"?this.rateValue=n.value:t==="slider"?this.sliderValue=n.value*1:t==="area"?(this.areaCode=n.value.code,this.textValue=n.value.value):t==="image"?(this.fileList=n.value,this.doneFile=n.value):t==="file"?(n.value.forEach(a=>{const s={url:a.url,file:new File([],a.name,{})};this.fileList.push(s)}),this.doneFile=n.value):t==="customPicker"||t==="hos"?(this.textValue=n.value.content,this.customPicker=n.value):t==="pay"?this.payValue=n.value:t==="sign"?this.signImg=n.value:t==="idPicture"&&(this.frontImg=n.value.front,this.backImg=n.value.back,this.idFront=[{...this.frontImg}],this.idBack=[{...this.backImg}]))})}this.item.type==="switch"?this.setDependValue({gid:this.gid,key:this.item.key,value:this.switchValue}):this.item.type==="rate"?this.setDependValue({gid:this.gid,key:this.item.key,value:this.rateValue}):this.item.type==="slider"&&this.setDependValue({gid:this.gid,key:this.item.key,value:this.sliderValue})},clickPay(){this.toPay(this.item,e=>{if(e){let t={pay:!0,amount:this.item.amount,date:e.date,desc:this.form.spec.name+this.item.title};this.payValue=Object.assign({},t,e),this.dependChange()}})},beforeReadFront(e){console.log("[ file ] >",e);const t=new FileReader;t.onload=n=>{Nf({url:n.target.result,type:e.type},a=>{if(!a)return!1;const{kb:s}=ri(a);return s>100?(this.$toast.fail("图片太大了"),!1):(this.frontImg={url:a,type:e.type,isImage:!0},this.idFront.push(this.frontImg),this.dependChange(),!0)})},t.readAsDataURL(e)},beforeReadBack(e){console.log("[ file ] >",e);const t=new FileReader;t.onload=n=>{Nf({url:n.target.result,type:e.type},a=>{if(!a)return!1;const{kb:s}=ri(a);return s>80?(this.$toast.fail("图片太大了"),!1):(this.backImg={url:a,type:e.type,isImage:!0},this.idBack.push(this.backImg),this.dependChange(),!0)})},t.readAsDataURL(e)},readImg(){console.log("[ this.frontImg, this.backImg ] >",this.frontImg,this.backImg)},deleteFrontPic(){this.frontImg=null,this.idFront=[],this.dependChange()},deleteBackPic(){this.backImg=null,this.idBack=[],this.dependChange()},openSign(){this.showSign=!0,this.noAnswerKey=""},closeSign(){this.showSign=!1,this.$refs.esign.reset()},resetSign(){this.$refs.esign.reset()},saveSign(){this.$refs.esign.generate().then(e=>{const{kb:t,mb:n}=ri(e);console.log("[ sign size ] >",t,n),this.signImg=e,this.showSign=!1,this.dependChange()}).catch(e=>{console.log("[ err ] >",e)})}},created(){this.item.type==="rate"&&(this.rateValue=1),this.initDependValue(),this.item.type==="phone"&&this.item.autoFill&&this.item.autoFill.auto&&this.item.autoFill.config&&(this.textValue=this.item.autoFill.config()),this.item.type==="identity"&&!this.item.emsg&&(this.item.emsg="身份证格式不正确")}},ci=e=>(o.pushScopeId("data-v-0d553b88"),e=e(),o.popScopeId(),e),Qy={key:0,class:"form-item-container"},$y={key:0,class:"require-icon"},jy={class:"title"},Gy=ci(()=>o.createElementVNode("span",{class:"checkbox-title"}," [多选] ",-1)),qy={class:"subtitle"},Jy={key:0,class:"tip"},Xy={key:1,class:"switch-box"},Zy={class:"switch-btn"},eb={class:"text"},tb={key:0,class:"placeholder"},nb={key:1,class:"time-text"},rb={class:"icon"},ob={key:3,class:"input-text"},ib={key:0,class:"error-message"},ab={key:6,class:"slider-box"},sb={class:"left-num"},lb={class:"custom-button"},cb={class:"right-num"},ub={key:7,class:"rate-box"},db={class:"text"},fb={key:0,class:"placeholder"},hb={key:1,class:"time-text"},mb={class:"icon"},gb={key:11,class:"uploader-tips"},pb={class:"text"},yb={key:0,class:"placeholder"},bb={key:1,class:"time-text"},wb={class:"icon"},vb={key:0},Cb={key:1},Eb={class:"pay-amount"},xb={key:14,class:"id-picture"},_b=ci(()=>o.createElementVNode("div",{class:"id-picture-box"},[o.createElementVNode("img",{src:Wy,alt:""}),o.createElementVNode("p",null,"身份证正面")],-1)),Sb=ci(()=>o.createElementVNode("div",{class:"id-picture-box"},[o.createElementVNode("img",{src:zy,alt:""}),o.createElementVNode("p",null,"身份证反面")],-1)),kb={key:15,class:"sign"},Ab={key:0},Ib=["src"],Vb={key:16,class:"noAnswer"},Tb={key:17,class:"operation"},Nb=[ci(()=>o.createElementVNode("img",{class:"oper-icon",src:Ky,alt:"复制"},null,-1))],Bb={class:"sign-container"},Db={class:"sign-options"},Ob={class:"dialog-container"},Pb=ci(()=>o.createElementVNode("div",{class:"dialog-message"},"是否确认删除当前题目?",-1)),Rb={class:"confirm-btn"},Fb={class:"btn-con left"},Lb={class:"btn-con"};function Mb(e,t,n,a,s,l){const u=o.resolveComponent("van-switch"),f=o.resolveComponent("van-icon"),h=o.resolveComponent("van-field"),d=o.resolveComponent("van-radio"),g=o.resolveComponent("van-radio-group"),p=o.resolveComponent("van-checkbox"),y=o.resolveComponent("van-checkbox-group"),_=o.resolveComponent("van-slider"),v=o.resolveComponent("van-rate"),w=o.resolveComponent("van-uploader"),C=o.resolveComponent("van-button"),E=b4,S=pd,I=o.resolveComponent("van-datetime-picker"),A=o.resolveComponent("van-popup"),N=o.resolveComponent("van-calendar"),B=o.resolveComponent("van-area"),R=o.resolveComponent("van-picker"),$=o.resolveComponent("van-search"),F=o.resolveComponent("van-empty"),L=o.resolveComponent("vueEsign");return l.isShow?(o.openBlock(),o.createElementBlock("div",Qy,[o.createVNode(S,{active:n.item.key===n.currentKey&&n.editItem},{default:o.withCtx(()=>{var D,j;return[o.createElementVNode("div",{class:"quest-box",onClick:t[16]||(t[16]=(...T)=>l.handleClick&&l.handleClick(...T))},[n.item.required?(o.openBlock(),o.createElementBlock("div",$y,"*")):o.createCommentVNode("",!0),o.createElementVNode("div",jy,[s.showTitleLimit.includes(n.item.type)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.item.range.max!==""&&n.item.range.min!==""?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(n.item.title)+" ("+o.toDisplayString(n.item.range.min)+"至"+o.toDisplayString(n.item.range.max)+" "+o.toDisplayString(n.item.type==="text"||n.item.type==="password"?"字":"")+" "+o.toDisplayString(n.item.type==="float"&&n.item.range.digits?`且保留${n.item.range.digits}位小数`:"")+") ",1)],64)):n.item.range.max!==""?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.item.title)+" ("+o.toDisplayString(n.item.range.max)+" "+o.toDisplayString(n.item.type==="text"||n.item.type==="password"?"字":"")+" 以内"+o.toDisplayString(n.item.type==="float"&&n.item.range.digits?`且保留${n.item.range.digits}位小数`:"")+") ",1)],64)):n.item.range.min!==""?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(n.item.title)+" ("+o.toDisplayString(n.item.range.min)+" "+o.toDisplayString(n.item.type==="text"||n.item.type==="password"?"字":"")+" 以上"+o.toDisplayString(n.item.type==="float"&&n.item.range.digits?`且保留${n.item.range.digits}位小数`:"")+") ",1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n.item.title),1)],64))],64)):n.item.type==="checkbox"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.item.title),1),Gy,n.item.max&&n.item.max>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("(最多可选择"+o.toDisplayString(n.item.max)+"项)",1)],64)):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(n.item.title),1)],64))]),o.createElementVNode("div",qy,[o.createTextVNode(o.toDisplayString(n.item.subtitle)+" ",1),!s.noTitleTip.includes(n.item.type)&&n.item.placeholder?(o.openBlock(),o.createElementBlock("span",Jy,o.toDisplayString(`(${n.item.placeholder})`),1)):o.createCommentVNode("",!0)]),n.item.type==="switch"?(o.openBlock(),o.createElementBlock("div",Xy,[o.createElementVNode("div",Zy,[o.createVNode(u,{modelValue:s.switchValue,"onUpdate:modelValue":t[0]||(t[0]=T=>s.switchValue=T),disabled:l.disableItem},null,8,["modelValue","disabled"])])])):o.createCommentVNode("",!0),n.item.type==="picker"?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["picker-box",l.disableItem?"forbidden":""])},[o.createElementVNode("div",{class:"picker-text-area",onClick:t[1]||(t[1]=(...T)=>l.itemClick&&l.itemClick(...T))},[o.createElementVNode("div",eb,[s.textValue?(o.openBlock(),o.createElementBlock("span",nb,o.toDisplayString(s.textValue),1)):(o.openBlock(),o.createElementBlock("span",tb,o.toDisplayString(n.item.placeholder),1))]),o.createElementVNode("div",rb,[s.pickerVisible?(o.openBlock(),o.createBlock(f,{key:0,name:"arrow-up"})):(o.openBlock(),o.createBlock(f,{key:1,name:"arrow-down"}))])])],2)):o.createCommentVNode("",!0),s.useField.includes(n.item.type)?(o.openBlock(),o.createElementBlock("div",ob,[o.createVNode(h,o.normalizeProps({modelValue:s.textValue,"onUpdate:modelValue":t[2]||(t[2]=T=>s.textValue=T),placeholder:n.item.placeholder,rules:[{required:n.item.required,message:n.item.emsg||"当前项不能为空"}],[l.maxlength||""]:n.item.limit,readonly:l.readonly,disabled:l.disableItem,type:s.typeMap[n.item.type]??"text",onChange:l.handleChange}),null,16,["modelValue","placeholder","rules","readonly","disabled","type","onChange"]),s.textEmsg&&!s.noAnswerKey?(o.openBlock(),o.createElementBlock("div",ib,[o.createVNode(f,{name:"close",class:"close-icon"}),o.createTextVNode(" "+o.toDisplayString(s.textEmsg),1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.item.type==="radio"?(o.openBlock(),o.createBlock(g,{key:4,disabled:l.disableItem,modelValue:s.radioValue,"onUpdate:modelValue":t[3]||(t[3]=T=>s.radioValue=T),onChange:l.dependChange},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.item.options,T=>(o.openBlock(),o.createBlock(d,{key:T.id,name:T.id},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(T.content)+" ",1)]),_:2},1032,["name"]))),128))]),_:1},8,["disabled","modelValue","onChange"])):o.createCommentVNode("",!0),n.item.type==="checkbox"?(o.openBlock(),o.createBlock(y,{key:5,disabled:l.disableItem,modelValue:s.checkboxValue,"onUpdate:modelValue":t[4]||(t[4]=T=>s.checkboxValue=T),max:Number(n.item.max),onChange:l.dependChange},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.item.options,T=>(o.openBlock(),o.createBlock(p,{key:T.key,name:T.id,shape:"square"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(T.content),1)]),_:2},1032,["name"]))),128))]),_:1},8,["disabled","modelValue","max","onChange"])):o.createCommentVNode("",!0),n.item.type==="slider"?(o.openBlock(),o.createElementBlock("div",ab,[o.createElementVNode("div",sb,o.toDisplayString(n.item.range.min),1),o.createVNode(_,{disabled:l.disableItem,modelValue:s.sliderValue,"onUpdate:modelValue":t[5]||(t[5]=T=>s.sliderValue=T),max:(D=n.item.range)==null?void 0:D.max,min:(j=n.item.range)==null?void 0:j.min},{button:o.withCtx(()=>[o.createElementVNode("div",lb,o.toDisplayString(s.sliderValue),1)]),_:1},8,["disabled","modelValue","max","min"]),o.createElementVNode("div",cb,o.toDisplayString(n.item.range.max),1)])):o.createCommentVNode("",!0),n.item.type==="rate"?(o.openBlock(),o.createElementBlock("div",ub,[o.createVNode(v,{disabled:l.disableItem,count:n.item.size,modelValue:s.rateValue,"onUpdate:modelValue":t[6]||(t[6]=T=>s.rateValue=T)},null,8,["disabled","count","modelValue"])])):o.createCommentVNode("",!0),n.item.type==="instant"||n.item.type==="period"||n.item.type==="area"?(o.openBlock(),o.createElementBlock("div",{key:8,class:o.normalizeClass(["time-box",l.disableItem?"forbidden":""]),onClick:t[7]||(t[7]=(...T)=>l.itemClick&&l.itemClick(...T))},[o.createElementVNode("div",db,[s.textValue?(o.openBlock(),o.createElementBlock("span",hb,o.toDisplayString(s.textValue),1)):(o.openBlock(),o.createElementBlock("span",fb,o.toDisplayString(n.item.placeholder),1))]),o.createElementVNode("div",mb,[o.createVNode(f,{name:"arrow"})])],2)):o.createCommentVNode("",!0),n.item.type==="image"?(o.openBlock(),o.createBlock(w,o.normalizeProps({key:9,modelValue:s.fileList,"onUpdate:modelValue":t[8]||(t[8]=T=>s.fileList=T),multiple:"",disabled:l.disableItem,[l.maxCount||""]:n.item.limit,"max-size":n.item.size*1024*1024,accept:n.item.accept,"before-read":l.beforeReadFile,"after-read":l.afterReadFile,"before-delete":l.deleteFile}),null,16,["modelValue","disabled","max-size","accept","before-read","after-read","before-delete"])):o.createCommentVNode("",!0),n.item.type==="file"?(o.openBlock(),o.createBlock(w,o.normalizeProps({key:10,modelValue:s.fileList,"onUpdate:modelValue":t[9]||(t[9]=T=>s.fileList=T),multiple:"",disabled:l.disableItem,[l.maxCount||""]:n.item.limit,"max-size":n.item.size*1024*1024,accept:n.item.accept,"before-read":l.beforeReadFile,"after-read":l.afterReadFile,"before-delete":l.deleteFile}),{default:o.withCtx(()=>[n.item.type==="file"?(o.openBlock(),o.createBlock(C,{key:0,disabled:l.disableItem,icon:"plus",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(" 上传文件 ")]),_:1},8,["disabled"])):o.createCommentVNode("",!0)]),_:1},16,["modelValue","disabled","max-size","accept","before-read","after-read","before-delete"])):o.createCommentVNode("",!0),(n.item.type==="file"||n.item.type==="image")&&n.item.uploadTip?(o.openBlock(),o.createElementBlock("div",gb,o.toDisplayString(n.item.uploadTip),1)):o.createCommentVNode("",!0),n.item.type==="customPicker"||n.item.type==="hos"?(o.openBlock(),o.createElementBlock("div",{key:12,class:o.normalizeClass(["picker-box",l.disableItem?"forbidden":""])},[o.createElementVNode("div",{class:"picker-text-area",onClick:t[10]||(t[10]=(...T)=>l.itemClick&&l.itemClick(...T))},[o.createElementVNode("div",pb,[s.textValue?(o.openBlock(),o.createElementBlock("span",bb,o.toDisplayString(s.textValue),1)):(o.openBlock(),o.createElementBlock("span",yb,o.toDisplayString(n.item.placeholder),1))]),o.createElementVNode("div",wb,[s.cusPickerVisible?(o.openBlock(),o.createBlock(f,{key:0,name:"arrow-up"})):(o.openBlock(),o.createBlock(f,{key:1,name:"arrow-down"}))])])],2)):o.createCommentVNode("",!0),n.item.type==="pay"?(o.openBlock(),o.createElementBlock("div",{key:13,class:o.normalizeClass(["pay-box",l.disableItem?"forbidden":""])},[o.createElementVNode("div",null,[s.payValue.pay?(o.openBlock(),o.createElementBlock("span",vb,"已支付")):(o.openBlock(),o.createElementBlock("span",Cb,"支付金额")),o.createTextVNode(": "),o.createElementVNode("span",Eb,o.toDisplayString(n.item.amount),1),o.createTextVNode("元 ")]),s.payValue.pay?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,class:"click-button",onClick:t[11]||(t[11]=(...T)=>l.clickPay&&l.clickPay(...T))},"去支付"))],2)):o.createCommentVNode("",!0),n.item.type==="idPicture"?(o.openBlock(),o.createElementBlock("div",xb,[o.createVNode(w,{modelValue:s.idFront,"onUpdate:modelValue":t[12]||(t[12]=T=>s.idFront=T),maxCount:1,beforeRead:l.beforeReadFront,"after-read":l.readImg,"before-delete":l.deleteFrontPic},{default:o.withCtx(()=>[_b]),_:1},8,["modelValue","beforeRead","after-read","before-delete"]),o.createVNode(w,{modelValue:s.idBack,"onUpdate:modelValue":t[13]||(t[13]=T=>s.idBack=T),maxCount:1,beforeRead:l.beforeReadBack,"after-read":l.readImg,"before-delete":l.deleteBackPic},{default:o.withCtx(()=>[Sb]),_:1},8,["modelValue","beforeRead","after-read","before-delete"])])):o.createCommentVNode("",!0),n.item.type==="sign"?(o.openBlock(),o.createElementBlock("div",kb,[o.createElementVNode("button",{class:"click-button",onClick:t[14]||(t[14]=(...T)=>l.openSign&&l.openSign(...T))},[s.signImg?(o.openBlock(),o.createElementBlock("span",Ab,"重新")):o.createCommentVNode("",!0),o.createTextVNode("签名")]),s.signImg?(o.openBlock(),o.createElementBlock("img",{key:0,src:s.signImg,alt:""},null,8,Ib)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),s.noAnswerKey===n.item.key?(o.openBlock(),o.createElementBlock("div",Vb,[o.createVNode(f,{name:"close",class:"close-icon"}),o.createTextVNode(" "+o.toDisplayString(n.item.emsg?n.item.emsg:"当前项不能为空"),1)])):o.createCommentVNode("",!0),n.editItem?(o.openBlock(),o.createElementBlock("div",Tb,[o.createVNode(E,{class:"item",effect:"dark",content:"复制该题目",placement:"top"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"oper-icon",onClick:t[15]||(t[15]=o.withModifiers((...T)=>l.handleCopyItem&&l.handleCopyItem(...T),["stop"]))},Nb)]),_:1}),o.createVNode(E,{class:"item",effect:"dark",content:"长按拖动",placement:"top"},{default:o.withCtx(()=>[o.createVNode(f,{class:"oper-icon move",name:"sort"})]),_:1}),o.createVNode(E,{class:"item",effect:"dark",content:"点击删除",placement:"top"},{default:o.withCtx(()=>[o.createVNode(f,{class:"oper-icon",name:"delete-o",onClick:o.withModifiers(l.handleRemoveItem,["stop"])},null,8,["onClick"])]),_:1})])):o.createCommentVNode("",!0)])]}),_:1},8,["active"]),n.item.type==="instant"?(o.openBlock(),o.createBlock(A,{key:0,teleport:l.teleport,show:s.timeVisible,"onUpdate:show":t[19]||(t[19]=D=>s.timeVisible=D),round:"",position:"bottom"},{default:o.withCtx(()=>[o.createVNode(I,{modelValue:s.timeValue,"onUpdate:modelValue":t[17]||(t[17]=D=>s.timeValue=D),title:"选择时间",type:"datetime","min-date":l.minDate1,"max-date":l.maxDate1,onConfirm:l.dateTimeConfirm,onCancel:t[18]||(t[18]=D=>s.timeVisible=!1)},null,8,["modelValue","min-date","max-date","onConfirm"])]),_:1},8,["teleport","show"])):n.item.type==="period"?(o.openBlock(),o.createBlock(N,{key:1,teleport:l.teleport,show:s.calendarVisible,"onUpdate:show":t[20]||(t[20]=D=>s.calendarVisible=D),"allow-same-day":"",type:"range","default-date":s.defaultDate,"min-date":l.minDate,"max-date":l.maxDate,onConfirm:l.calendarConfirm,onCancel:t[21]||(t[21]=D=>s.calendarVisible=!1)},null,8,["teleport","show","default-date","min-date","max-date","onConfirm"])):n.item.type==="area"?(o.openBlock(),o.createBlock(A,{key:2,teleport:l.teleport,show:s.areaVisible,"onUpdate:show":t[24]||(t[24]=D=>s.areaVisible=D),round:"",position:"bottom"},{default:o.withCtx(()=>[o.createVNode(B,{title:"标题",modelValue:s.areaCode,"onUpdate:modelValue":t[22]||(t[22]=D=>s.areaCode=D),"area-list":s.areaList,onConfirm:l.handlePopupConfirm,onCancel:t[23]||(t[23]=D=>s.areaVisible=!1)},null,8,["modelValue","area-list","onConfirm"])]),_:1},8,["teleport","show"])):n.item.type==="picker"?(o.openBlock(),o.createBlock(A,{key:3,teleport:l.teleport,show:s.pickerVisible,"onUpdate:show":t[26]||(t[26]=D=>s.pickerVisible=D),round:"",position:"bottom"},{default:o.withCtx(()=>[o.createVNode(R,{columns:n.item.options,"columns-field-names":{text:"content"},onCancel:t[25]||(t[25]=D=>s.pickerVisible=!1),onConfirm:l.handlePopupConfirm},null,8,["columns","onConfirm"])]),_:1},8,["teleport","show"])):n.item.type==="customPicker"||n.item.type==="hos"?(o.openBlock(),o.createBlock(A,{key:4,teleport:l.teleport,show:s.cusPickerVisible,"onUpdate:show":t[28]||(t[28]=D=>s.cusPickerVisible=D),round:"",position:"bottom",style:{height:"50%",overflow:"hidden"}},{default:o.withCtx(()=>[o.createVNode(R,{ref:"cusPicker",class:"custom-picker",columns:n.item.options,"columns-field-names":{text:"content"},loading:s.loadCustom,style:{padding:"0 10px"},onCancel:l.closeCusPicker,onConfirm:l.handlePopupConfirm},{"columns-top":o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(s.pickerTop)},[o.createVNode($,{style:{flex:"1"},modelValue:s.cusSearchValue,"onUpdate:modelValue":t[27]||(t[27]=D=>s.cusSearchValue=D),shape:"round",placeholder:"请输入搜索关键词"},null,8,["modelValue"]),o.createVNode(C,{style:{width:"60px"},type:"primary",size:"small",onClick:l.searchCus},{default:o.withCtx(()=>[o.createTextVNode("搜索")]),_:1},8,["onClick"])],4),s.optionEmpty?(o.openBlock(),o.createBlock(F,{key:0,description:"暂无信息"})):o.createCommentVNode("",!0)]),_:1},8,["columns","loading","onCancel","onConfirm"])]),_:1},8,["teleport","show"])):o.createCommentVNode("",!0),o.createVNode(A,{teleport:l.teleport,show:s.showSign,"onUpdate:show":t[31]||(t[31]=D=>s.showSign=D),onClose:l.closeSign},{default:o.withCtx(()=>[o.createElementVNode("div",Bb,[o.createVNode(L,{class:"sign-area",ref:"esign",width:300,height:200,isCrop:!0},null,512),o.createElementVNode("div",Db,[o.createElementVNode("div",{class:"btn",onClick:t[29]||(t[29]=(...D)=>l.resetSign&&l.resetSign(...D))},"清空"),o.createElementVNode("div",{class:"btn",onClick:t[30]||(t[30]=(...D)=>l.saveSign&&l.saveSign(...D))},"确定")])])]),_:1},8,["teleport","show","onClose"]),o.createVNode(A,{show:s.showDialog,"onUpdate:show":t[33]||(t[33]=D=>s.showDialog=D),round:""},{default:o.withCtx(()=>[o.createElementVNode("div",Ob,[Pb,o.createElementVNode("div",Rb,[o.createElementVNode("div",Fb,[o.createVNode(C,{type:"default",onClick:t[32]||(t[32]=D=>s.showDialog=!1)},{default:o.withCtx(()=>[o.createTextVNode("取消")]),_:1})]),o.createElementVNode("div",Lb,[o.createVNode(C,{plain:"",type:"info",onClick:l.confirmDelete},{default:o.withCtx(()=>[o.createTextVNode("确认")]),_:1},8,["onClick"])])])])]),_:1},8,["show"])])):o.createCommentVNode("",!0)}const s0=no(Yy,[["render",Mb],["__scopeId","data-v-0d553b88"]]);/*!
|
|
34
34
|
* vue-draggable-next v2.2.0
|
|
35
35
|
* (c) 2023 Anish George
|
|
36
36
|
* @license MIT
|