formifex 0.3.5 → 0.3.6
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/index.es.js +4 -0
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -21561,6 +21561,10 @@ const B6 = /* @__PURE__ */ Dl(J2), Rce = (n, e) => {
|
|
|
21561
21561
|
), m = xe({}), g = J2.debounce(() => {
|
|
21562
21562
|
var T, F, x;
|
|
21563
21563
|
const N = m.current;
|
|
21564
|
+
if (Object.keys(N).length === 0) {
|
|
21565
|
+
m.current = h;
|
|
21566
|
+
return;
|
|
21567
|
+
}
|
|
21564
21568
|
if (m.current = h, (T = n.suppressionRef) != null && T.current)
|
|
21565
21569
|
return;
|
|
21566
21570
|
const R = Object.keys(h).filter(
|
package/dist/index.umd.js
CHANGED
|
@@ -203,7 +203,7 @@ __p += '`),n1&&(fe+=`' +
|
|
|
203
203
|
function print() { __p += __j.call(arguments, '') }
|
|
204
204
|
`:`;
|
|
205
205
|
`)+fe+`return __p
|
|
206
|
-
}`;var qe=oy(function(){return o1(F,Ve+"return "+fe).apply(t,B)});if(qe.source=fe,aa(qe))throw qe;return qe}function Roe(r){return u1(r).toLowerCase()}function Toe(r){return u1(r).toUpperCase()}function Soe(r,o,s){if(r=u1(r),r&&(s||o===t))return pz(r);if(!r||!(o=T4(o)))return r;var p=ct(r),O=ct(o),F=gz(p,O),B=wz(p,O)+1;return Gt(p,F,B).join("")}function Foe(r,o,s){if(r=u1(r),r&&(s||o===t))return r.slice(0,Ez(r)+1);if(!r||!(o=T4(o)))return r;var p=ct(r),O=wz(p,ct(o))+1;return Gt(p,0,O).join("")}function Hoe(r,o,s){if(r=u1(r),r&&(s||o===t))return r.replace(r4,"");if(!r||!(o=T4(o)))return r;var p=ct(r),O=gz(p,ct(o));return Gt(p,O).join("")}function $oe(r,o){var s=U,p=Y;if(T1(o)){var O="separator"in o?o.separator:O;s="length"in o?je(o.length):s,p="omission"in o?T4(o.omission):p}r=u1(r);var F=r.length;if(P2(r)){var B=ct(r);F=B.length}if(s>=F)return r;var W=s-k2(p);if(W<1)return p;var X=B?Gt(B,0,W).join(""):r.slice(0,W);if(O===t)return X+p;if(B&&(W+=X.length-W),ia(O)){if(r.slice(W).search(O)){var le,se=X;for(O.global||(O=z0(O.source,u1(i1.exec(O))+"g")),O.lastIndex=0;le=O.exec(se);)var fe=le.index;X=X.slice(0,fe===t?W:fe)}}else if(r.indexOf(T4(O),W)!=W){var we=X.lastIndexOf(O);we>-1&&(X=X.slice(0,we))}return X+p}function _oe(r){return r=u1(r),r&&P1.test(r)?r.replace(vt,u6e):r}var Ioe=K2(function(r,o,s){return r+(s?" ":"")+o.toUpperCase()}),la=lb("toUpperCase");function cy(r,o,s){return r=u1(r),o=s?t:o,o===t?i6e(r)?v6e(r):X8e(r):r.match(o)||[]}var oy=Ke(function(r,o){try{return M4(r,t,o)}catch(s){return aa(s)?s:new Be(s)}}),Loe=xt(function(r,o){return j4(o,function(s){s=pt(s),Vt(r,s,na(r[s],r))}),r});function Doe(r){var o=r==null?0:r.length,s=Te();return r=o?M1(r,function(p){if(typeof p[1]!="function")throw new q4(d);return[s(p[0]),p[1]]}):[],Ke(function(p){for(var O=-1;++O<o;){var F=r[O];if(M4(F[0],this,p))return M4(F[1],this,p)}})}function Boe(r){return u0e(U4(r,w))}function sa(r){return function(){return r}}function Aoe(r,o){return r==null||r!==r?o:r}var Poe=ub(),koe=ub(!0);function y4(r){return r}function ua(r){return Az(typeof r=="function"?r:U4(r,w))}function joe(r){return kz(U4(r,w))}function qoe(r,o){return jz(r,U4(o,w))}var Woe=Ke(function(r,o){return function(s){return j3(s,r,o)}}),Uoe=Ke(function(r,o){return function(s){return j3(r,s,o)}});function da(r,o,s){var p=e4(o),O=Nr(o,p);s==null&&!(T1(o)&&(O.length||!p.length))&&(s=o,o=r,r=this,O=Nr(o,e4(o)));var F=!(T1(s)&&"chain"in s)||!!s.chain,B=Mt(r);return j4(O,function(W){var X=o[W];r[W]=X,B&&(r.prototype[W]=function(){var le=this.__chain__;if(F||le){var se=r(this.__wrapped__),fe=se.__actions__=E4(this.__actions__);return fe.push({func:X,args:arguments,thisArg:r}),se.__chain__=le,se}return X.apply(r,Pt([this.value()],arguments))})}),r}function Goe(){return a4._===this&&(a4._=O6e),this}function fa(){}function Yoe(r){return r=je(r),Ke(function(o){return qz(o,r)})}var Koe=j0(M1),Xoe=j0(dz),Zoe=j0(h0);function ly(r){return X0(r)?m0(pt(r)):C0e(r)}function Qoe(r){return function(o){return r==null?t:u2(r,o)}}var Joe=fb(),ele=fb(!0);function va(){return[]}function ha(){return!1}function tle(){return{}}function nle(){return""}function rle(){return!0}function ale(r,o){if(r=je(r),r<1||r>$)return[];var s=Q,p=u4(r,Q);o=Te(o),r-=Q;for(var O=w0(p,o);++s<r;)o(s);return O}function ile(r){return Ae(r)?M1(r,pt):S4(r)?[r]:E4(Mb(u1(r)))}function cle(r){var o=++g6e;return u1(r)+o}var ole=Sr(function(r,o){return r+o},0),lle=q0("ceil"),sle=Sr(function(r,o){return r/o},1),ule=q0("floor");function dle(r){return r&&r.length?Vr(r,y4,R0):t}function fle(r,o){return r&&r.length?Vr(r,Te(o,2),R0):t}function vle(r){return hz(r,y4)}function hle(r,o){return hz(r,Te(o,2))}function mle(r){return r&&r.length?Vr(r,y4,H0):t}function ple(r,o){return r&&r.length?Vr(r,Te(o,2),H0):t}var gle=Sr(function(r,o){return r*o},1),wle=q0("round"),Ole=Sr(function(r,o){return r-o},0);function Ele(r){return r&&r.length?g0(r,y4):0}function zle(r,o){return r&&r.length?g0(r,Te(o,2)):0}return V.after=jie,V.ary=Bb,V.assign=Tce,V.assignIn=Jb,V.assignInWith=qr,V.assignWith=Sce,V.at=Fce,V.before=Ab,V.bind=na,V.bindAll=Loe,V.bindKey=Pb,V.castArray=tce,V.chain=Ib,V.chunk=uae,V.compact=dae,V.concat=fae,V.cond=Doe,V.conforms=Boe,V.constant=sa,V.countBy=Eie,V.create=Hce,V.curry=kb,V.curryRight=jb,V.debounce=qb,V.defaults=$ce,V.defaultsDeep=_ce,V.defer=qie,V.delay=Wie,V.difference=vae,V.differenceBy=hae,V.differenceWith=mae,V.drop=pae,V.dropRight=gae,V.dropRightWhile=wae,V.dropWhile=Oae,V.fill=Eae,V.filter=bie,V.flatMap=Nie,V.flatMapDeep=xie,V.flatMapDepth=Cie,V.flatten=Fb,V.flattenDeep=zae,V.flattenDepth=bae,V.flip=Uie,V.flow=Poe,V.flowRight=koe,V.fromPairs=yae,V.functions=kce,V.functionsIn=jce,V.groupBy=Mie,V.initial=Nae,V.intersection=xae,V.intersectionBy=Cae,V.intersectionWith=Mae,V.invert=Wce,V.invertBy=Uce,V.invokeMap=Tie,V.iteratee=ua,V.keyBy=Sie,V.keys=e4,V.keysIn=b4,V.map=Dr,V.mapKeys=Yce,V.mapValues=Kce,V.matches=joe,V.matchesProperty=qoe,V.memoize=Ar,V.merge=Xce,V.mergeWith=ey,V.method=Woe,V.methodOf=Uoe,V.mixin=da,V.negate=Pr,V.nthArg=Yoe,V.omit=Zce,V.omitBy=Qce,V.once=Gie,V.orderBy=Fie,V.over=Koe,V.overArgs=Yie,V.overEvery=Xoe,V.overSome=Zoe,V.partial=ra,V.partialRight=Wb,V.partition=Hie,V.pick=Jce,V.pickBy=ty,V.property=ly,V.propertyOf=Qoe,V.pull=Fae,V.pullAll=$b,V.pullAllBy=Hae,V.pullAllWith=$ae,V.pullAt=_ae,V.range=Joe,V.rangeRight=ele,V.rearg=Kie,V.reject=Iie,V.remove=Iae,V.rest=Xie,V.reverse=ea,V.sampleSize=Die,V.set=toe,V.setWith=noe,V.shuffle=Bie,V.slice=Lae,V.sortBy=kie,V.sortedUniq=qae,V.sortedUniqBy=Wae,V.split=Noe,V.spread=Zie,V.tail=Uae,V.take=Gae,V.takeRight=Yae,V.takeRightWhile=Kae,V.takeWhile=Xae,V.tap=die,V.throttle=Qie,V.thru=Lr,V.toArray=Xb,V.toPairs=ny,V.toPairsIn=ry,V.toPath=ile,V.toPlainObject=Qb,V.transform=roe,V.unary=Jie,V.union=Zae,V.unionBy=Qae,V.unionWith=Jae,V.uniq=eie,V.uniqBy=tie,V.uniqWith=nie,V.unset=aoe,V.unzip=ta,V.unzipWith=_b,V.update=ioe,V.updateWith=coe,V.values=Q2,V.valuesIn=ooe,V.without=rie,V.words=cy,V.wrap=ece,V.xor=aie,V.xorBy=iie,V.xorWith=cie,V.zip=oie,V.zipObject=lie,V.zipObjectDeep=sie,V.zipWith=uie,V.entries=ny,V.entriesIn=ry,V.extend=Jb,V.extendWith=qr,da(V,V),V.add=ole,V.attempt=oy,V.camelCase=doe,V.capitalize=ay,V.ceil=lle,V.clamp=loe,V.clone=nce,V.cloneDeep=ace,V.cloneDeepWith=ice,V.cloneWith=rce,V.conformsTo=cce,V.deburr=iy,V.defaultTo=Aoe,V.divide=sle,V.endsWith=foe,V.eq=lt,V.escape=voe,V.escapeRegExp=hoe,V.every=zie,V.find=yie,V.findIndex=Tb,V.findKey=Ice,V.findLast=Vie,V.findLastIndex=Sb,V.findLastKey=Lce,V.floor=ule,V.forEach=Lb,V.forEachRight=Db,V.forIn=Dce,V.forInRight=Bce,V.forOwn=Ace,V.forOwnRight=Pce,V.get=ca,V.gt=oce,V.gte=lce,V.has=qce,V.hasIn=oa,V.head=Hb,V.identity=y4,V.includes=Rie,V.indexOf=Vae,V.inRange=soe,V.invoke=Gce,V.isArguments=v2,V.isArray=Ae,V.isArrayBuffer=sce,V.isArrayLike=z4,V.isArrayLikeObject=L1,V.isBoolean=uce,V.isBuffer=Yt,V.isDate=dce,V.isElement=fce,V.isEmpty=vce,V.isEqual=hce,V.isEqualWith=mce,V.isError=aa,V.isFinite=pce,V.isFunction=Mt,V.isInteger=Ub,V.isLength=kr,V.isMap=Gb,V.isMatch=gce,V.isMatchWith=wce,V.isNaN=Oce,V.isNative=Ece,V.isNil=bce,V.isNull=zce,V.isNumber=Yb,V.isObject=T1,V.isObjectLike=H1,V.isPlainObject=K3,V.isRegExp=ia,V.isSafeInteger=yce,V.isSet=Kb,V.isString=jr,V.isSymbol=S4,V.isTypedArray=Z2,V.isUndefined=Vce,V.isWeakMap=Nce,V.isWeakSet=xce,V.join=Rae,V.kebabCase=moe,V.last=Y4,V.lastIndexOf=Tae,V.lowerCase=poe,V.lowerFirst=goe,V.lt=Cce,V.lte=Mce,V.max=dle,V.maxBy=fle,V.mean=vle,V.meanBy=hle,V.min=mle,V.minBy=ple,V.stubArray=va,V.stubFalse=ha,V.stubObject=tle,V.stubString=nle,V.stubTrue=rle,V.multiply=gle,V.nth=Sae,V.noConflict=Goe,V.noop=fa,V.now=Br,V.pad=woe,V.padEnd=Ooe,V.padStart=Eoe,V.parseInt=zoe,V.random=uoe,V.reduce=$ie,V.reduceRight=_ie,V.repeat=boe,V.replace=yoe,V.result=eoe,V.round=wle,V.runInContext=K,V.sample=Lie,V.size=Aie,V.snakeCase=Voe,V.some=Pie,V.sortedIndex=Dae,V.sortedIndexBy=Bae,V.sortedIndexOf=Aae,V.sortedLastIndex=Pae,V.sortedLastIndexBy=kae,V.sortedLastIndexOf=jae,V.startCase=xoe,V.startsWith=Coe,V.subtract=Ole,V.sum=Ele,V.sumBy=zle,V.template=Moe,V.times=ale,V.toFinite=Rt,V.toInteger=je,V.toLength=Zb,V.toLower=Roe,V.toNumber=K4,V.toSafeInteger=Rce,V.toString=u1,V.toUpper=Toe,V.trim=Soe,V.trimEnd=Foe,V.trimStart=Hoe,V.truncate=$oe,V.unescape=_oe,V.uniqueId=cle,V.upperCase=Ioe,V.upperFirst=la,V.each=Lb,V.eachRight=Db,V.first=Hb,da(V,function(){var r={};return ht(V,function(o,s){f1.call(V.prototype,s)||(r[s]=o)}),r}(),{chain:!1}),V.VERSION=i,j4(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){V[r].placeholder=V}),j4(["drop","take"],function(r,o){t1.prototype[r]=function(s){s=s===t?1:K1(je(s),0);var p=this.__filtered__&&!o?new t1(this):this.clone();return p.__filtered__?p.__takeCount__=u4(s,p.__takeCount__):p.__views__.push({size:u4(s,Q),type:r+(p.__dir__<0?"Right":"")}),p},t1.prototype[r+"Right"]=function(s){return this.reverse()[r](s).reverse()}}),j4(["filter","map","takeWhile"],function(r,o){var s=o+1,p=s==j||s==D;t1.prototype[r]=function(O){var F=this.clone();return F.__iteratees__.push({iteratee:Te(O,3),type:s}),F.__filtered__=F.__filtered__||p,F}}),j4(["head","last"],function(r,o){var s="take"+(o?"Right":"");t1.prototype[r]=function(){return this[s](1).value()[0]}}),j4(["initial","tail"],function(r,o){var s="drop"+(o?"":"Right");t1.prototype[r]=function(){return this.__filtered__?new t1(this):this[s](1)}}),t1.prototype.compact=function(){return this.filter(y4)},t1.prototype.find=function(r){return this.filter(r).head()},t1.prototype.findLast=function(r){return this.reverse().find(r)},t1.prototype.invokeMap=Ke(function(r,o){return typeof r=="function"?new t1(this):this.map(function(s){return j3(s,r,o)})}),t1.prototype.reject=function(r){return this.filter(Pr(Te(r)))},t1.prototype.slice=function(r,o){r=je(r);var s=this;return s.__filtered__&&(r>0||o<0)?new t1(s):(r<0?s=s.takeRight(-r):r&&(s=s.drop(r)),o!==t&&(o=je(o),s=o<0?s.dropRight(-o):s.take(o-r)),s)},t1.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},t1.prototype.toArray=function(){return this.take(Q)},ht(t1.prototype,function(r,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),p=/^(?:head|last)$/.test(o),O=V[p?"take"+(o=="last"?"Right":""):o],F=p||/^find/.test(o);O&&(V.prototype[o]=function(){var B=this.__wrapped__,W=p?[1]:arguments,X=B instanceof t1,le=W[0],se=X||Ae(B),fe=function(Je){var n1=O.apply(V,Pt([Je],W));return p&&we?n1[0]:n1};se&&s&&typeof le=="function"&&le.length!=1&&(X=se=!1);var we=this.__chain__,Ve=!!this.__actions__.length,Se=F&&!we,qe=X&&!Ve;if(!F&&se){B=qe?B:new t1(this);var Fe=r.apply(B,W);return Fe.__actions__.push({func:Lr,args:[fe],thisArg:t}),new W4(Fe,we)}return Se&&qe?r.apply(this,W):(Fe=this.thru(fe),Se?p?Fe.value()[0]:Fe.value():Fe)})}),j4(["pop","push","shift","sort","splice","unshift"],function(r){var o=sr[r],s=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",p=/^(?:pop|shift)$/.test(r);V.prototype[r]=function(){var O=arguments;if(p&&!this.__chain__){var F=this.value();return o.apply(Ae(F)?F:[],O)}return this[s](function(B){return o.apply(Ae(B)?B:[],O)})}}),ht(t1.prototype,function(r,o){var s=V[o];if(s){var p=s.name+"";f1.call(U2,p)||(U2[p]=[]),U2[p].push({name:o,func:s})}}),U2[Tr(t,x).name]=[{name:"wrapper",func:t}],t1.prototype.clone=_6e,t1.prototype.reverse=I6e,t1.prototype.value=L6e,V.prototype.at=fie,V.prototype.chain=vie,V.prototype.commit=hie,V.prototype.next=mie,V.prototype.plant=gie,V.prototype.reverse=wie,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Oie,V.prototype.first=V.prototype.head,I3&&(V.prototype[I3]=pie),V},j2=h6e();i2?((i2.exports=j2)._=j2,u0._=j2):a4._=j2}).call(P3e)}(b3,b3.exports)),b3.exports}var H2=k3e();const D6=ma(H2),j3e=(n,e)=>{const t=n.field.split("."),i=e==null?void 0:e.getFieldValue(t),c=n.value,l=n.operator||"=";if(!c)return Array.isArray(i)?i.length>0:!!i;const v={"=":()=>Array.isArray(c)?c.includes(i):i===c,"!=":()=>Array.isArray(c)?!c.includes(i):i!==c,">":()=>i>c,"<":()=>i<c,">=":()=>i>=c,"<=":()=>i<=c,includes:()=>Array.isArray(i)?Array.isArray(c)?i.some(h=>c.includes(h)):i.includes(c):typeof i=="string"?Array.isArray(c)?c.some(h=>i.includes(h)):i.includes(c):!1}[l];return v?v():!1},q3e=n=>{var M,N,E;let e=(M=n==null?void 0:n.id)==null?void 0:M.split("."),t=ue.Form.useWatch(e,n.formRef);const[i,c]=b.useState(!!n.lookupFetcher),l={textarea:LM,string:py,number:AM,color:$3e,date:Co,datetime:Co,time:D3e,checkbox:DM,switch:BM,select:H3e,password:_3e,radio:I3e,rate:L3e,slider:B3e,upload:A3e};async function d(){var x,R;if(n.lookupFetcher&&n.lookupKey){n.pendingLookupsRef&&n.pendingLookupsRef.current++,c(!0);try{const S=await((x=n.lookupFetcher)==null?void 0:x.call(n,n))||[];(R=n.updateLookupData)==null||R.call(n,n.lookupKey||"",S)}finally{c(!1),n.pendingLookupsRef&&n.pendingLookupsRef.current--}}}const v=["select","checkbox","radio","upload"],h=(n.enableWhen||[]).reduce((x,R)=>{var S;if(typeof R!="function"&&(R!=null&&R.field)){const H=(S=R==null?void 0:R.field)==null?void 0:S.split(".");x[R==null?void 0:R.field]=ue.Form.useWatch(H,n.formRef)}return x},{}),m=b.useRef({}),g=H2.debounce(()=>{var S,H,C;const x=m.current;if(m.current=h,(S=n.suppressionRef)!=null&&S.current)return;const R=Object.keys(h).filter(I=>x[I]!==h[I]);if(R.length>0){let I=(H=n==null?void 0:n.id)==null?void 0:H.split(".");const _=n.resetOnDependencyChange??!1,k=n.resetOnDependencyEmpty??!0;if(n.enableWhen&&((C=n==null?void 0:n.enableWhen)==null?void 0:C.length)>0){let A=n.formRef;(A&&k&&(R!=null&&R.some(U=>{var Y;if((Y=n.resetIgnoreFields)!=null&&Y.includes(U))return!1;{let ne=U==null?void 0:U.split("."),G=A==null?void 0:A.getFieldValue(ne);return Array.isArray(G)?G.length==0:!G}}))||A&&_&&(R!=null&&R.some(U=>{var Y;return!((Y=n.resetIgnoreFields)!=null&&Y.includes(U))})))&&A.setFieldValue(I,void 0)}}},200),w=H2.debounce(d,200);b.useEffect(()=>(w(),g(),()=>{w.cancel(),g.cancel()}),[...((N=n.enableWhen)==null?void 0:N.map(x=>{if(typeof x!="function")return h[x==null?void 0:x.field]}))||[]]);const z=x=>{if(!x||(x==null?void 0:x.length)==0)return!1;{let R=n.formRef;return!x.every(S=>typeof S!="function"?S.evaluate&&typeof S.evaluate=="function"?S.evaluate(n):S!=null&&S.field?j3e(S,R):!0:S(n))}};return b.useMemo(()=>{var H;const x=l==null?void 0:l[n.inputType];let R=(H=n==null?void 0:n.id)==null?void 0:H.split("."),S={...n};return v.includes(n.inputType)?S.suppressionRef=n.suppressionRef:(S==null||delete S.lookupData,S==null||delete S.initialData,S==null||delete S.httpAgent,S==null||delete S.form),typeof(S==null?void 0:S.addonBefore)=="function"&&(S.addonBefore=S.addonBefore(n)),typeof(S==null?void 0:S.addonAfter)=="function"&&(S.addonAfter=S.addonAfter(n)),S==null||delete S.resetOnDependencyChange,S==null||delete S.resetOnDependencyEmpty,S==null||delete S.inputType,S==null||delete S.dataType,S==null||delete S.input,S==null||delete S.enableWhen,n.inputType==="hidden"?P.jsx(ue.Form.Item,{name:R,noStyle:!0}):x?P.jsx(ue.Form.Item,{colon:typeof n.colon=="boolean"?n.colon:!0,className:n.wrapperClassName,style:{...n.wrapperStyle,...n.readOnly?{pointerEvents:"none"}:{}},label:typeof n.label=="function"?n.label(S):n.label,name:R,tooltip:n.tooltip,rules:[{required:n.required,message:n.defaultErrorMessage??`${n.label} is required`},...n.validators??[]],getValueProps:C=>(n.inputType==="date"&&X3(C).isValid()&&C&&(C=X3(C)),{value:C}),layout:n.layout??void 0,...n.inputType==="upload"?{valuePropName:"fileList",getValueFromEvent:C=>C.fileList}:{},...n.inputType==="color"?{getValueFromEvent:C=>C.toHexString()}:{},...["string","textarea"].includes(n.inputType)?{normalize:C=>C==null?void 0:C.trimStart()}:{},children:P.jsx(x,{loading:i,...S,form:n.formRef,data:t,disabled:n.disabled||z(n.enableWhen)})}):P.jsxs("div",{children:["Unknown Input Type - ",n.inputType]})},[n.id,t,n.lookupData,n.readOnly,n.disabled,i,...((E=n.enableWhen)==null?void 0:E.map(x=>{if(typeof x!="function")return h[x==null?void 0:x.field]}))||[]])},W3e=({children:n=[],label:e="",id:t="",className:i="",style:c={},section_id:l="",wrapperClassName:d="",wrapperStyle:v={},collapsible:h=!0,labelPlacement:m="start",labelMargin:g=0,showHeader:w=!0,showDivider:z=!0,expandIcon:y=null,collapseIcon:M=null,tooltip:N=null,...E})=>{var k;const[x,R]=b.useState(!0),[S,H]=b.useState("auto"),C=b.useRef(null);b.useEffect(()=>{if(!C.current)return;const A=()=>{C.current&&H(`${C.current.scrollHeight}px`)};A();const U=new ResizeObserver(()=>{A()});U.observe(C.current);const Y=new MutationObserver(()=>{setTimeout(A,0)});return Y.observe(C.current,{childList:!0,subtree:!0,attributes:!0}),()=>{U.disconnect(),Y.disconnect()}},[]);const I={maxHeight:x?S:"0px",overflow:"hidden",transition:"max-height 0.3s ease-in-out",opacity:x?1:0,transform:`translateY(${x?"0":"-10px"})`},_=A=>P.jsxs("div",{className:`antd-form-section-wrapper ${d}`,style:{...v},children:[w&&(z?P.jsx(ue.Divider,{orientation:m,orientationMargin:g,className:i,children:P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",...c},children:[h&&P.jsx(P.Fragment,{children:y&&M?P.jsx("div",{style:h?{transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:x?y:M}):P.jsx("div",{style:h?{transform:`rotate(${x?"0deg":"-90deg"})`,transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:P.jsx(_n,{})})}),P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[" ",P.jsx("span",{style:h?{cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:e}),N&&P.jsx(ue.Tooltip,{title:N,children:P.jsx(F6,{style:{opacity:.5}})})]})]})}):P.jsxs("div",{className:i,style:{margin:"16px 0",display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",...c},children:[h&&P.jsx(P.Fragment,{children:y&&M?P.jsx("div",{style:h?{transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:x?y:M}):P.jsx("div",{style:h?{transform:`rotate(${x?"0deg":"-90deg"})`,transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:P.jsx(_n,{})})}),P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[" ",P.jsx("span",{style:h?{cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:e}),N&&P.jsx(ue.Tooltip,{title:N,children:P.jsx(R6,{style:{opacity:.5}})})]})]})),P.jsx("div",{style:I,children:P.jsx("div",{ref:C,children:P.jsx(Dn,{...E,items:A},t)})})]});if(l){const A=(k=E.sections)==null?void 0:k.find(U=>U.id===l);if(A)return _((A==null?void 0:A.items)||[])}else if(n&&n.length>0)return _(n);return P.jsx(P.Fragment,{})},kO=(n,e)=>{const t=n.field.split("."),i=e==null?void 0:e.getFieldValue(t),c=n.value,l=n.operator||"=";if(!c)return Array.isArray(i)?i.length>0:!!i;const v={"=":()=>Array.isArray(c)?c.includes(i):i===c,"!=":()=>Array.isArray(c)?!c.includes(i):i!==c,">":()=>i>c,"<":()=>i<c,">=":()=>i>=c,"<=":()=>i<=c,includes:()=>Array.isArray(i)?Array.isArray(c)?i.some(h=>c.includes(h)):i.includes(c):typeof i=="string"?Array.isArray(c)?c.some(h=>i.includes(h)):i.includes(c):!1}[l];return v?v():!1},U3e=(n,e)=>{const t=n.displayWhen;return t?t.every(i=>i!=null&&i.field?typeof i!="function"?i.evaluate&&typeof i.evaluate=="function"?i.evaluate({formRef:e}):kO(i,e):i({formRef:e}):!0):!0},jO=n=>{const e=[];for(const t of n)t.displayWhen&&e.push(t),"children"in t&&Array.isArray(t.children)&&e.push(...jO(t.children));return e},Dn=n=>{var m;const e=((m=n==null?void 0:n.items)==null?void 0:m.sort((g,w)=>(g.sequence??9999)-(w.sequence??9999)))??[],t=ue.Form.useWatch([],n.formRef),i=b.useRef(new Set),c=b.useRef(new Map),l=b.useRef(e),d=b.useRef(n.formRef),v=b.useRef(n.suppressionRef);b.useEffect(()=>{l.current=e,d.current=n.formRef,v.current=n.suppressionRef},[e,n.formRef,n.suppressionRef]);const h=b.useMemo(()=>H2.debounce(()=>{var M;if(console.log("debouncedHandleHiddenFields"),(M=v.current)!=null&&M.current)return;const g=l.current,w=d.current,z=jO(g),y=[];for(const N of z){const E=N.id;if(!E)continue;const x=U3e(N,w),R=c.current.get(E);if(c.current.set(E,x),!x&&R!==!1){const S=E.split("."),H=w==null?void 0:w.getFieldValue(S);H!=null&&H!==""&&y.push(E)}else x&&i.current.delete(E)}for(const N of y){const E=N.split("."),x=w==null?void 0:w.getFieldValue(E);x!=null&&x!==""&&i.current.add(N)}},200),[]);return b.useEffect(()=>(h(),()=>{h.cancel()}),[t,h]),P.jsx(P.Fragment,{children:e.map(({displayWhen:g,...w})=>{if(g&&!g.every(z=>z!=null&&z.field?typeof z!="function"?z.evaluate&&typeof z.evaluate=="function"?z.evaluate(n):kO(z,n.formRef):z(n):!0))return null;if("dataType"in w&&w.type==="input")return P.jsx(q3e,{initialData:n.initialData,resetOnDependencyChange:n.resetOnDependencyChange,resetOnDependencyEmpty:n.resetOnDependencyEmpty,disabled:n.disabled,readOnly:n.readOnly,...w,formRef:n.formRef,httpAgent:n.httpAgent,lookupData:n.lookupData,suppressionRef:n.suppressionRef,pendingLookupsRef:n.pendingLookupsRef,updateLookupData:n.updateLookupData},w.key||w.id);if(w.type==="section")return P.jsx(W3e,{...n,...w});if(w.type==="grid")return P.jsx(my,{...n,...w},w.key||w.id);if(w.type==="flex")return P.jsx(hy,{...n,...w},w.key||w.id);if(w.type==="divider")return P.jsx(ue.Divider,{...w,type:w.orientation||"horizontal",orientation:w.labelPlacement||"center",dashed:w.dashed,children:w.label},w.key||w.id);if(w.type==="custom"&&typeof(w==null?void 0:w.render)=="function")return w.render(n)})})},qO=n=>typeof n=="object"&&n!=null&&n.nodeType===1,WO=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Bn=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return WO(t.overflowY,e)||WO(t.overflowX,e)||(i=>{const c=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!c&&(c.clientHeight<i.scrollHeight||c.clientWidth<i.scrollWidth)})(n)}return!1},An=(n,e,t,i,c,l,d,v)=>l<n&&d>e||l>n&&d<e?0:l<=n&&v<=t||d>=e&&v>=t?l-n-i:d>e&&v<t||l<n&&v>t?d-e+c:0,G3e=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},UO=(n,e)=>{var t,i,c,l;if(typeof document>"u")return[];const{scrollMode:d,block:v,inline:h,boundary:m,skipOverflowHiddenElements:g}=e,w=typeof m=="function"?m:D=>D!==m;if(!qO(n))throw new TypeError("Invalid target");const z=document.scrollingElement||document.documentElement,y=[];let M=n;for(;qO(M)&&w(M);){if(M=G3e(M),M===z){y.push(M);break}M!=null&&M===document.body&&Bn(M)&&!Bn(document.documentElement)||M!=null&&Bn(M,g)&&y.push(M)}const N=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,E=(l=(c=window.visualViewport)==null?void 0:c.height)!=null?l:innerHeight,{scrollX:x,scrollY:R}=window,{height:S,width:H,top:C,right:I,bottom:_,left:k}=n.getBoundingClientRect(),{top:A,right:U,bottom:Y,left:ne}=(D=>{const T=window.getComputedStyle(D);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(n);let G=v==="start"||v==="nearest"?C-A:v==="end"?_+Y:C+S/2-A+Y,j=h==="center"?k+H/2-ne+U:h==="end"?I+U:k-ne;const ee=[];for(let D=0;D<y.length;D++){const T=y[D],{height:$,width:q,top:J,right:Q,bottom:ie,left:oe}=T.getBoundingClientRect();if(d==="if-needed"&&C>=0&&k>=0&&_<=E&&I<=N&&(T===z&&!Bn(T)||C>=J&&_<=ie&&k>=oe&&I<=Q))return ee;const de=getComputedStyle(T),Oe=parseInt(de.borderLeftWidth,10),me=parseInt(de.borderTopWidth,10),ye=parseInt(de.borderRightWidth,10),he=parseInt(de.borderBottomWidth,10);let be=0,pe=0;const Ne="offsetWidth"in T?T.offsetWidth-T.clientWidth-Oe-ye:0,Me="offsetHeight"in T?T.offsetHeight-T.clientHeight-me-he:0,De="offsetWidth"in T?T.offsetWidth===0?0:q/T.offsetWidth:0,ve="offsetHeight"in T?T.offsetHeight===0?0:$/T.offsetHeight:0;if(z===T)be=v==="start"?G:v==="end"?G-E:v==="nearest"?An(R,R+E,E,me,he,R+G,R+G+S,S):G-E/2,pe=h==="start"?j:h==="center"?j-N/2:h==="end"?j-N:An(x,x+N,N,Oe,ye,x+j,x+j+H,H),be=Math.max(0,be+R),pe=Math.max(0,pe+x);else{be=v==="start"?G-J-me:v==="end"?G-ie+he+Me:v==="nearest"?An(J,ie,$,me,he+Me,G,G+S,S):G-(J+$/2)+Me/2,pe=h==="start"?j-oe-Oe:h==="center"?j-(oe+q/2)+Ne/2:h==="end"?j-Q+ye+Ne:An(oe,Q,q,Oe,ye+Ne,j,j+H,H);const{scrollLeft:Pe,scrollTop:ze}=T;be=ve===0?0:Math.max(0,Math.min(ze+be/ve,T.scrollHeight-$/ve+Me)),pe=De===0?0:Math.max(0,Math.min(Pe+pe/De,T.scrollWidth-q/De+Ne)),G+=ze-be,j+=Pe-pe}ee.push({el:T,top:be,left:pe})}return ee},Y3e=n=>n===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(n)?n:{block:"start",inline:"nearest"};function K3e(n,e){if(!n.isConnected||!(c=>{let l=c;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(n))return;const t=(c=>{const l=window.getComputedStyle(c);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(n);if((c=>typeof c=="object"&&typeof c.behavior=="function")(e))return e.behavior(UO(n,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:c,top:l,left:d}of UO(n,Y3e(e))){const v=l-t.top+t.bottom,h=d-t.left+t.right;c.scroll({top:v,left:h,behavior:i})}}const X3e=["parentNode"],Z3e="form_item";function GO(n){return n===void 0||n===!1?[]:Array.isArray(n)?n:[n]}function Q3e(n,e){if(!n.length)return;const t=n.join("_");return e?`${e}_${t}`:X3e.includes(t)?`${Z3e}_${t}`:t}var J3e=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)e.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(t[i[c]]=n[i[c]]);return t};function YO(n){return GO(n).join("_")}function KO(n,e){const t=e.getFieldInstance(n),i=Ia(t);if(i)return i;const c=Q3e(GO(n),e.__INTERNAL__.name);if(c)return document.getElementById(c)}function XO(n){const[e]=v6(),t=a.useRef({}),i=a.useMemo(()=>n??Object.assign(Object.assign({},e),{__INTERNAL__:{itemRef:c=>l=>{const d=YO(c);l?t.current[d]=l:delete t.current[d]}},scrollToField:(c,l={})=>{const{focus:d}=l,v=J3e(l,["focus"]),h=KO(c,i);h&&(K3e(h,Object.assign({scrollMode:"if-needed",block:"nearest"},v)),d&&i.focusField(c))},focusField:c=>{var l,d;const v=i.getFieldInstance(c);typeof(v==null?void 0:v.focus)=="function"?v.focus():(d=(l=KO(c,i))===null||l===void 0?void 0:l.focus)===null||d===void 0||d.call(l)},getFieldInstance:c=>{const l=YO(c);return t.current[l]}}),[n,e]);return[i]}const Pn={};function ene({name:n}){const e=St("Form");a.useEffect(()=>{if(n)return Pn[n]=(Pn[n]||0)+1,process.env.NODE_ENV!=="production"&&e(Pn[n]<=1,"usage","There exist multiple Form with same `name`."),()=>{Pn[n]-=1}},[n])}const tne=n=>({[n.componentCls]:{[`${n.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${n.motionDurationMid} ${n.motionEaseInOut},
|
|
206
|
+
}`;var qe=oy(function(){return o1(F,Ve+"return "+fe).apply(t,B)});if(qe.source=fe,aa(qe))throw qe;return qe}function Roe(r){return u1(r).toLowerCase()}function Toe(r){return u1(r).toUpperCase()}function Soe(r,o,s){if(r=u1(r),r&&(s||o===t))return pz(r);if(!r||!(o=T4(o)))return r;var p=ct(r),O=ct(o),F=gz(p,O),B=wz(p,O)+1;return Gt(p,F,B).join("")}function Foe(r,o,s){if(r=u1(r),r&&(s||o===t))return r.slice(0,Ez(r)+1);if(!r||!(o=T4(o)))return r;var p=ct(r),O=wz(p,ct(o))+1;return Gt(p,0,O).join("")}function Hoe(r,o,s){if(r=u1(r),r&&(s||o===t))return r.replace(r4,"");if(!r||!(o=T4(o)))return r;var p=ct(r),O=gz(p,ct(o));return Gt(p,O).join("")}function $oe(r,o){var s=U,p=Y;if(T1(o)){var O="separator"in o?o.separator:O;s="length"in o?je(o.length):s,p="omission"in o?T4(o.omission):p}r=u1(r);var F=r.length;if(P2(r)){var B=ct(r);F=B.length}if(s>=F)return r;var W=s-k2(p);if(W<1)return p;var X=B?Gt(B,0,W).join(""):r.slice(0,W);if(O===t)return X+p;if(B&&(W+=X.length-W),ia(O)){if(r.slice(W).search(O)){var le,se=X;for(O.global||(O=z0(O.source,u1(i1.exec(O))+"g")),O.lastIndex=0;le=O.exec(se);)var fe=le.index;X=X.slice(0,fe===t?W:fe)}}else if(r.indexOf(T4(O),W)!=W){var we=X.lastIndexOf(O);we>-1&&(X=X.slice(0,we))}return X+p}function _oe(r){return r=u1(r),r&&P1.test(r)?r.replace(vt,u6e):r}var Ioe=K2(function(r,o,s){return r+(s?" ":"")+o.toUpperCase()}),la=lb("toUpperCase");function cy(r,o,s){return r=u1(r),o=s?t:o,o===t?i6e(r)?v6e(r):X8e(r):r.match(o)||[]}var oy=Ke(function(r,o){try{return M4(r,t,o)}catch(s){return aa(s)?s:new Be(s)}}),Loe=xt(function(r,o){return j4(o,function(s){s=pt(s),Vt(r,s,na(r[s],r))}),r});function Doe(r){var o=r==null?0:r.length,s=Te();return r=o?M1(r,function(p){if(typeof p[1]!="function")throw new q4(d);return[s(p[0]),p[1]]}):[],Ke(function(p){for(var O=-1;++O<o;){var F=r[O];if(M4(F[0],this,p))return M4(F[1],this,p)}})}function Boe(r){return u0e(U4(r,w))}function sa(r){return function(){return r}}function Aoe(r,o){return r==null||r!==r?o:r}var Poe=ub(),koe=ub(!0);function y4(r){return r}function ua(r){return Az(typeof r=="function"?r:U4(r,w))}function joe(r){return kz(U4(r,w))}function qoe(r,o){return jz(r,U4(o,w))}var Woe=Ke(function(r,o){return function(s){return j3(s,r,o)}}),Uoe=Ke(function(r,o){return function(s){return j3(r,s,o)}});function da(r,o,s){var p=e4(o),O=Nr(o,p);s==null&&!(T1(o)&&(O.length||!p.length))&&(s=o,o=r,r=this,O=Nr(o,e4(o)));var F=!(T1(s)&&"chain"in s)||!!s.chain,B=Mt(r);return j4(O,function(W){var X=o[W];r[W]=X,B&&(r.prototype[W]=function(){var le=this.__chain__;if(F||le){var se=r(this.__wrapped__),fe=se.__actions__=E4(this.__actions__);return fe.push({func:X,args:arguments,thisArg:r}),se.__chain__=le,se}return X.apply(r,Pt([this.value()],arguments))})}),r}function Goe(){return a4._===this&&(a4._=O6e),this}function fa(){}function Yoe(r){return r=je(r),Ke(function(o){return qz(o,r)})}var Koe=j0(M1),Xoe=j0(dz),Zoe=j0(h0);function ly(r){return X0(r)?m0(pt(r)):C0e(r)}function Qoe(r){return function(o){return r==null?t:u2(r,o)}}var Joe=fb(),ele=fb(!0);function va(){return[]}function ha(){return!1}function tle(){return{}}function nle(){return""}function rle(){return!0}function ale(r,o){if(r=je(r),r<1||r>$)return[];var s=Q,p=u4(r,Q);o=Te(o),r-=Q;for(var O=w0(p,o);++s<r;)o(s);return O}function ile(r){return Ae(r)?M1(r,pt):S4(r)?[r]:E4(Mb(u1(r)))}function cle(r){var o=++g6e;return u1(r)+o}var ole=Sr(function(r,o){return r+o},0),lle=q0("ceil"),sle=Sr(function(r,o){return r/o},1),ule=q0("floor");function dle(r){return r&&r.length?Vr(r,y4,R0):t}function fle(r,o){return r&&r.length?Vr(r,Te(o,2),R0):t}function vle(r){return hz(r,y4)}function hle(r,o){return hz(r,Te(o,2))}function mle(r){return r&&r.length?Vr(r,y4,H0):t}function ple(r,o){return r&&r.length?Vr(r,Te(o,2),H0):t}var gle=Sr(function(r,o){return r*o},1),wle=q0("round"),Ole=Sr(function(r,o){return r-o},0);function Ele(r){return r&&r.length?g0(r,y4):0}function zle(r,o){return r&&r.length?g0(r,Te(o,2)):0}return V.after=jie,V.ary=Bb,V.assign=Tce,V.assignIn=Jb,V.assignInWith=qr,V.assignWith=Sce,V.at=Fce,V.before=Ab,V.bind=na,V.bindAll=Loe,V.bindKey=Pb,V.castArray=tce,V.chain=Ib,V.chunk=uae,V.compact=dae,V.concat=fae,V.cond=Doe,V.conforms=Boe,V.constant=sa,V.countBy=Eie,V.create=Hce,V.curry=kb,V.curryRight=jb,V.debounce=qb,V.defaults=$ce,V.defaultsDeep=_ce,V.defer=qie,V.delay=Wie,V.difference=vae,V.differenceBy=hae,V.differenceWith=mae,V.drop=pae,V.dropRight=gae,V.dropRightWhile=wae,V.dropWhile=Oae,V.fill=Eae,V.filter=bie,V.flatMap=Nie,V.flatMapDeep=xie,V.flatMapDepth=Cie,V.flatten=Fb,V.flattenDeep=zae,V.flattenDepth=bae,V.flip=Uie,V.flow=Poe,V.flowRight=koe,V.fromPairs=yae,V.functions=kce,V.functionsIn=jce,V.groupBy=Mie,V.initial=Nae,V.intersection=xae,V.intersectionBy=Cae,V.intersectionWith=Mae,V.invert=Wce,V.invertBy=Uce,V.invokeMap=Tie,V.iteratee=ua,V.keyBy=Sie,V.keys=e4,V.keysIn=b4,V.map=Dr,V.mapKeys=Yce,V.mapValues=Kce,V.matches=joe,V.matchesProperty=qoe,V.memoize=Ar,V.merge=Xce,V.mergeWith=ey,V.method=Woe,V.methodOf=Uoe,V.mixin=da,V.negate=Pr,V.nthArg=Yoe,V.omit=Zce,V.omitBy=Qce,V.once=Gie,V.orderBy=Fie,V.over=Koe,V.overArgs=Yie,V.overEvery=Xoe,V.overSome=Zoe,V.partial=ra,V.partialRight=Wb,V.partition=Hie,V.pick=Jce,V.pickBy=ty,V.property=ly,V.propertyOf=Qoe,V.pull=Fae,V.pullAll=$b,V.pullAllBy=Hae,V.pullAllWith=$ae,V.pullAt=_ae,V.range=Joe,V.rangeRight=ele,V.rearg=Kie,V.reject=Iie,V.remove=Iae,V.rest=Xie,V.reverse=ea,V.sampleSize=Die,V.set=toe,V.setWith=noe,V.shuffle=Bie,V.slice=Lae,V.sortBy=kie,V.sortedUniq=qae,V.sortedUniqBy=Wae,V.split=Noe,V.spread=Zie,V.tail=Uae,V.take=Gae,V.takeRight=Yae,V.takeRightWhile=Kae,V.takeWhile=Xae,V.tap=die,V.throttle=Qie,V.thru=Lr,V.toArray=Xb,V.toPairs=ny,V.toPairsIn=ry,V.toPath=ile,V.toPlainObject=Qb,V.transform=roe,V.unary=Jie,V.union=Zae,V.unionBy=Qae,V.unionWith=Jae,V.uniq=eie,V.uniqBy=tie,V.uniqWith=nie,V.unset=aoe,V.unzip=ta,V.unzipWith=_b,V.update=ioe,V.updateWith=coe,V.values=Q2,V.valuesIn=ooe,V.without=rie,V.words=cy,V.wrap=ece,V.xor=aie,V.xorBy=iie,V.xorWith=cie,V.zip=oie,V.zipObject=lie,V.zipObjectDeep=sie,V.zipWith=uie,V.entries=ny,V.entriesIn=ry,V.extend=Jb,V.extendWith=qr,da(V,V),V.add=ole,V.attempt=oy,V.camelCase=doe,V.capitalize=ay,V.ceil=lle,V.clamp=loe,V.clone=nce,V.cloneDeep=ace,V.cloneDeepWith=ice,V.cloneWith=rce,V.conformsTo=cce,V.deburr=iy,V.defaultTo=Aoe,V.divide=sle,V.endsWith=foe,V.eq=lt,V.escape=voe,V.escapeRegExp=hoe,V.every=zie,V.find=yie,V.findIndex=Tb,V.findKey=Ice,V.findLast=Vie,V.findLastIndex=Sb,V.findLastKey=Lce,V.floor=ule,V.forEach=Lb,V.forEachRight=Db,V.forIn=Dce,V.forInRight=Bce,V.forOwn=Ace,V.forOwnRight=Pce,V.get=ca,V.gt=oce,V.gte=lce,V.has=qce,V.hasIn=oa,V.head=Hb,V.identity=y4,V.includes=Rie,V.indexOf=Vae,V.inRange=soe,V.invoke=Gce,V.isArguments=v2,V.isArray=Ae,V.isArrayBuffer=sce,V.isArrayLike=z4,V.isArrayLikeObject=L1,V.isBoolean=uce,V.isBuffer=Yt,V.isDate=dce,V.isElement=fce,V.isEmpty=vce,V.isEqual=hce,V.isEqualWith=mce,V.isError=aa,V.isFinite=pce,V.isFunction=Mt,V.isInteger=Ub,V.isLength=kr,V.isMap=Gb,V.isMatch=gce,V.isMatchWith=wce,V.isNaN=Oce,V.isNative=Ece,V.isNil=bce,V.isNull=zce,V.isNumber=Yb,V.isObject=T1,V.isObjectLike=H1,V.isPlainObject=K3,V.isRegExp=ia,V.isSafeInteger=yce,V.isSet=Kb,V.isString=jr,V.isSymbol=S4,V.isTypedArray=Z2,V.isUndefined=Vce,V.isWeakMap=Nce,V.isWeakSet=xce,V.join=Rae,V.kebabCase=moe,V.last=Y4,V.lastIndexOf=Tae,V.lowerCase=poe,V.lowerFirst=goe,V.lt=Cce,V.lte=Mce,V.max=dle,V.maxBy=fle,V.mean=vle,V.meanBy=hle,V.min=mle,V.minBy=ple,V.stubArray=va,V.stubFalse=ha,V.stubObject=tle,V.stubString=nle,V.stubTrue=rle,V.multiply=gle,V.nth=Sae,V.noConflict=Goe,V.noop=fa,V.now=Br,V.pad=woe,V.padEnd=Ooe,V.padStart=Eoe,V.parseInt=zoe,V.random=uoe,V.reduce=$ie,V.reduceRight=_ie,V.repeat=boe,V.replace=yoe,V.result=eoe,V.round=wle,V.runInContext=K,V.sample=Lie,V.size=Aie,V.snakeCase=Voe,V.some=Pie,V.sortedIndex=Dae,V.sortedIndexBy=Bae,V.sortedIndexOf=Aae,V.sortedLastIndex=Pae,V.sortedLastIndexBy=kae,V.sortedLastIndexOf=jae,V.startCase=xoe,V.startsWith=Coe,V.subtract=Ole,V.sum=Ele,V.sumBy=zle,V.template=Moe,V.times=ale,V.toFinite=Rt,V.toInteger=je,V.toLength=Zb,V.toLower=Roe,V.toNumber=K4,V.toSafeInteger=Rce,V.toString=u1,V.toUpper=Toe,V.trim=Soe,V.trimEnd=Foe,V.trimStart=Hoe,V.truncate=$oe,V.unescape=_oe,V.uniqueId=cle,V.upperCase=Ioe,V.upperFirst=la,V.each=Lb,V.eachRight=Db,V.first=Hb,da(V,function(){var r={};return ht(V,function(o,s){f1.call(V.prototype,s)||(r[s]=o)}),r}(),{chain:!1}),V.VERSION=i,j4(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){V[r].placeholder=V}),j4(["drop","take"],function(r,o){t1.prototype[r]=function(s){s=s===t?1:K1(je(s),0);var p=this.__filtered__&&!o?new t1(this):this.clone();return p.__filtered__?p.__takeCount__=u4(s,p.__takeCount__):p.__views__.push({size:u4(s,Q),type:r+(p.__dir__<0?"Right":"")}),p},t1.prototype[r+"Right"]=function(s){return this.reverse()[r](s).reverse()}}),j4(["filter","map","takeWhile"],function(r,o){var s=o+1,p=s==j||s==D;t1.prototype[r]=function(O){var F=this.clone();return F.__iteratees__.push({iteratee:Te(O,3),type:s}),F.__filtered__=F.__filtered__||p,F}}),j4(["head","last"],function(r,o){var s="take"+(o?"Right":"");t1.prototype[r]=function(){return this[s](1).value()[0]}}),j4(["initial","tail"],function(r,o){var s="drop"+(o?"":"Right");t1.prototype[r]=function(){return this.__filtered__?new t1(this):this[s](1)}}),t1.prototype.compact=function(){return this.filter(y4)},t1.prototype.find=function(r){return this.filter(r).head()},t1.prototype.findLast=function(r){return this.reverse().find(r)},t1.prototype.invokeMap=Ke(function(r,o){return typeof r=="function"?new t1(this):this.map(function(s){return j3(s,r,o)})}),t1.prototype.reject=function(r){return this.filter(Pr(Te(r)))},t1.prototype.slice=function(r,o){r=je(r);var s=this;return s.__filtered__&&(r>0||o<0)?new t1(s):(r<0?s=s.takeRight(-r):r&&(s=s.drop(r)),o!==t&&(o=je(o),s=o<0?s.dropRight(-o):s.take(o-r)),s)},t1.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},t1.prototype.toArray=function(){return this.take(Q)},ht(t1.prototype,function(r,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),p=/^(?:head|last)$/.test(o),O=V[p?"take"+(o=="last"?"Right":""):o],F=p||/^find/.test(o);O&&(V.prototype[o]=function(){var B=this.__wrapped__,W=p?[1]:arguments,X=B instanceof t1,le=W[0],se=X||Ae(B),fe=function(Je){var n1=O.apply(V,Pt([Je],W));return p&&we?n1[0]:n1};se&&s&&typeof le=="function"&&le.length!=1&&(X=se=!1);var we=this.__chain__,Ve=!!this.__actions__.length,Se=F&&!we,qe=X&&!Ve;if(!F&&se){B=qe?B:new t1(this);var Fe=r.apply(B,W);return Fe.__actions__.push({func:Lr,args:[fe],thisArg:t}),new W4(Fe,we)}return Se&&qe?r.apply(this,W):(Fe=this.thru(fe),Se?p?Fe.value()[0]:Fe.value():Fe)})}),j4(["pop","push","shift","sort","splice","unshift"],function(r){var o=sr[r],s=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",p=/^(?:pop|shift)$/.test(r);V.prototype[r]=function(){var O=arguments;if(p&&!this.__chain__){var F=this.value();return o.apply(Ae(F)?F:[],O)}return this[s](function(B){return o.apply(Ae(B)?B:[],O)})}}),ht(t1.prototype,function(r,o){var s=V[o];if(s){var p=s.name+"";f1.call(U2,p)||(U2[p]=[]),U2[p].push({name:o,func:s})}}),U2[Tr(t,x).name]=[{name:"wrapper",func:t}],t1.prototype.clone=_6e,t1.prototype.reverse=I6e,t1.prototype.value=L6e,V.prototype.at=fie,V.prototype.chain=vie,V.prototype.commit=hie,V.prototype.next=mie,V.prototype.plant=gie,V.prototype.reverse=wie,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Oie,V.prototype.first=V.prototype.head,I3&&(V.prototype[I3]=pie),V},j2=h6e();i2?((i2.exports=j2)._=j2,u0._=j2):a4._=j2}).call(P3e)}(b3,b3.exports)),b3.exports}var H2=k3e();const D6=ma(H2),j3e=(n,e)=>{const t=n.field.split("."),i=e==null?void 0:e.getFieldValue(t),c=n.value,l=n.operator||"=";if(!c)return Array.isArray(i)?i.length>0:!!i;const v={"=":()=>Array.isArray(c)?c.includes(i):i===c,"!=":()=>Array.isArray(c)?!c.includes(i):i!==c,">":()=>i>c,"<":()=>i<c,">=":()=>i>=c,"<=":()=>i<=c,includes:()=>Array.isArray(i)?Array.isArray(c)?i.some(h=>c.includes(h)):i.includes(c):typeof i=="string"?Array.isArray(c)?c.some(h=>i.includes(h)):i.includes(c):!1}[l];return v?v():!1},q3e=n=>{var M,N,E;let e=(M=n==null?void 0:n.id)==null?void 0:M.split("."),t=ue.Form.useWatch(e,n.formRef);const[i,c]=b.useState(!!n.lookupFetcher),l={textarea:LM,string:py,number:AM,color:$3e,date:Co,datetime:Co,time:D3e,checkbox:DM,switch:BM,select:H3e,password:_3e,radio:I3e,rate:L3e,slider:B3e,upload:A3e};async function d(){var x,R;if(n.lookupFetcher&&n.lookupKey){n.pendingLookupsRef&&n.pendingLookupsRef.current++,c(!0);try{const S=await((x=n.lookupFetcher)==null?void 0:x.call(n,n))||[];(R=n.updateLookupData)==null||R.call(n,n.lookupKey||"",S)}finally{c(!1),n.pendingLookupsRef&&n.pendingLookupsRef.current--}}}const v=["select","checkbox","radio","upload"],h=(n.enableWhen||[]).reduce((x,R)=>{var S;if(typeof R!="function"&&(R!=null&&R.field)){const H=(S=R==null?void 0:R.field)==null?void 0:S.split(".");x[R==null?void 0:R.field]=ue.Form.useWatch(H,n.formRef)}return x},{}),m=b.useRef({}),g=H2.debounce(()=>{var S,H,C;const x=m.current;if(Object.keys(x).length===0){m.current=h;return}if(m.current=h,(S=n.suppressionRef)!=null&&S.current)return;const R=Object.keys(h).filter(I=>x[I]!==h[I]);if(R.length>0){let I=(H=n==null?void 0:n.id)==null?void 0:H.split(".");const _=n.resetOnDependencyChange??!1,k=n.resetOnDependencyEmpty??!0;if(n.enableWhen&&((C=n==null?void 0:n.enableWhen)==null?void 0:C.length)>0){let A=n.formRef;(A&&k&&(R!=null&&R.some(U=>{var Y;if((Y=n.resetIgnoreFields)!=null&&Y.includes(U))return!1;{let ne=U==null?void 0:U.split("."),G=A==null?void 0:A.getFieldValue(ne);return Array.isArray(G)?G.length==0:!G}}))||A&&_&&(R!=null&&R.some(U=>{var Y;return!((Y=n.resetIgnoreFields)!=null&&Y.includes(U))})))&&A.setFieldValue(I,void 0)}}},200),w=H2.debounce(d,200);b.useEffect(()=>(w(),g(),()=>{w.cancel(),g.cancel()}),[...((N=n.enableWhen)==null?void 0:N.map(x=>{if(typeof x!="function")return h[x==null?void 0:x.field]}))||[]]);const z=x=>{if(!x||(x==null?void 0:x.length)==0)return!1;{let R=n.formRef;return!x.every(S=>typeof S!="function"?S.evaluate&&typeof S.evaluate=="function"?S.evaluate(n):S!=null&&S.field?j3e(S,R):!0:S(n))}};return b.useMemo(()=>{var H;const x=l==null?void 0:l[n.inputType];let R=(H=n==null?void 0:n.id)==null?void 0:H.split("."),S={...n};return v.includes(n.inputType)?S.suppressionRef=n.suppressionRef:(S==null||delete S.lookupData,S==null||delete S.initialData,S==null||delete S.httpAgent,S==null||delete S.form),typeof(S==null?void 0:S.addonBefore)=="function"&&(S.addonBefore=S.addonBefore(n)),typeof(S==null?void 0:S.addonAfter)=="function"&&(S.addonAfter=S.addonAfter(n)),S==null||delete S.resetOnDependencyChange,S==null||delete S.resetOnDependencyEmpty,S==null||delete S.inputType,S==null||delete S.dataType,S==null||delete S.input,S==null||delete S.enableWhen,n.inputType==="hidden"?P.jsx(ue.Form.Item,{name:R,noStyle:!0}):x?P.jsx(ue.Form.Item,{colon:typeof n.colon=="boolean"?n.colon:!0,className:n.wrapperClassName,style:{...n.wrapperStyle,...n.readOnly?{pointerEvents:"none"}:{}},label:typeof n.label=="function"?n.label(S):n.label,name:R,tooltip:n.tooltip,rules:[{required:n.required,message:n.defaultErrorMessage??`${n.label} is required`},...n.validators??[]],getValueProps:C=>(n.inputType==="date"&&X3(C).isValid()&&C&&(C=X3(C)),{value:C}),layout:n.layout??void 0,...n.inputType==="upload"?{valuePropName:"fileList",getValueFromEvent:C=>C.fileList}:{},...n.inputType==="color"?{getValueFromEvent:C=>C.toHexString()}:{},...["string","textarea"].includes(n.inputType)?{normalize:C=>C==null?void 0:C.trimStart()}:{},children:P.jsx(x,{loading:i,...S,form:n.formRef,data:t,disabled:n.disabled||z(n.enableWhen)})}):P.jsxs("div",{children:["Unknown Input Type - ",n.inputType]})},[n.id,t,n.lookupData,n.readOnly,n.disabled,i,...((E=n.enableWhen)==null?void 0:E.map(x=>{if(typeof x!="function")return h[x==null?void 0:x.field]}))||[]])},W3e=({children:n=[],label:e="",id:t="",className:i="",style:c={},section_id:l="",wrapperClassName:d="",wrapperStyle:v={},collapsible:h=!0,labelPlacement:m="start",labelMargin:g=0,showHeader:w=!0,showDivider:z=!0,expandIcon:y=null,collapseIcon:M=null,tooltip:N=null,...E})=>{var k;const[x,R]=b.useState(!0),[S,H]=b.useState("auto"),C=b.useRef(null);b.useEffect(()=>{if(!C.current)return;const A=()=>{C.current&&H(`${C.current.scrollHeight}px`)};A();const U=new ResizeObserver(()=>{A()});U.observe(C.current);const Y=new MutationObserver(()=>{setTimeout(A,0)});return Y.observe(C.current,{childList:!0,subtree:!0,attributes:!0}),()=>{U.disconnect(),Y.disconnect()}},[]);const I={maxHeight:x?S:"0px",overflow:"hidden",transition:"max-height 0.3s ease-in-out",opacity:x?1:0,transform:`translateY(${x?"0":"-10px"})`},_=A=>P.jsxs("div",{className:`antd-form-section-wrapper ${d}`,style:{...v},children:[w&&(z?P.jsx(ue.Divider,{orientation:m,orientationMargin:g,className:i,children:P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",...c},children:[h&&P.jsx(P.Fragment,{children:y&&M?P.jsx("div",{style:h?{transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:x?y:M}):P.jsx("div",{style:h?{transform:`rotate(${x?"0deg":"-90deg"})`,transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:P.jsx(_n,{})})}),P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[" ",P.jsx("span",{style:h?{cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:e}),N&&P.jsx(ue.Tooltip,{title:N,children:P.jsx(F6,{style:{opacity:.5}})})]})]})}):P.jsxs("div",{className:i,style:{margin:"16px 0",display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",...c},children:[h&&P.jsx(P.Fragment,{children:y&&M?P.jsx("div",{style:h?{transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:x?y:M}):P.jsx("div",{style:h?{transform:`rotate(${x?"0deg":"-90deg"})`,transition:"transform 0.3s ease-in-out",cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:P.jsx(_n,{})})}),P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[" ",P.jsx("span",{style:h?{cursor:"pointer"}:{},onClick:()=>h&&R(!x),children:e}),N&&P.jsx(ue.Tooltip,{title:N,children:P.jsx(R6,{style:{opacity:.5}})})]})]})),P.jsx("div",{style:I,children:P.jsx("div",{ref:C,children:P.jsx(Dn,{...E,items:A},t)})})]});if(l){const A=(k=E.sections)==null?void 0:k.find(U=>U.id===l);if(A)return _((A==null?void 0:A.items)||[])}else if(n&&n.length>0)return _(n);return P.jsx(P.Fragment,{})},kO=(n,e)=>{const t=n.field.split("."),i=e==null?void 0:e.getFieldValue(t),c=n.value,l=n.operator||"=";if(!c)return Array.isArray(i)?i.length>0:!!i;const v={"=":()=>Array.isArray(c)?c.includes(i):i===c,"!=":()=>Array.isArray(c)?!c.includes(i):i!==c,">":()=>i>c,"<":()=>i<c,">=":()=>i>=c,"<=":()=>i<=c,includes:()=>Array.isArray(i)?Array.isArray(c)?i.some(h=>c.includes(h)):i.includes(c):typeof i=="string"?Array.isArray(c)?c.some(h=>i.includes(h)):i.includes(c):!1}[l];return v?v():!1},U3e=(n,e)=>{const t=n.displayWhen;return t?t.every(i=>i!=null&&i.field?typeof i!="function"?i.evaluate&&typeof i.evaluate=="function"?i.evaluate({formRef:e}):kO(i,e):i({formRef:e}):!0):!0},jO=n=>{const e=[];for(const t of n)t.displayWhen&&e.push(t),"children"in t&&Array.isArray(t.children)&&e.push(...jO(t.children));return e},Dn=n=>{var m;const e=((m=n==null?void 0:n.items)==null?void 0:m.sort((g,w)=>(g.sequence??9999)-(w.sequence??9999)))??[],t=ue.Form.useWatch([],n.formRef),i=b.useRef(new Set),c=b.useRef(new Map),l=b.useRef(e),d=b.useRef(n.formRef),v=b.useRef(n.suppressionRef);b.useEffect(()=>{l.current=e,d.current=n.formRef,v.current=n.suppressionRef},[e,n.formRef,n.suppressionRef]);const h=b.useMemo(()=>H2.debounce(()=>{var M;if(console.log("debouncedHandleHiddenFields"),(M=v.current)!=null&&M.current)return;const g=l.current,w=d.current,z=jO(g),y=[];for(const N of z){const E=N.id;if(!E)continue;const x=U3e(N,w),R=c.current.get(E);if(c.current.set(E,x),!x&&R!==!1){const S=E.split("."),H=w==null?void 0:w.getFieldValue(S);H!=null&&H!==""&&y.push(E)}else x&&i.current.delete(E)}for(const N of y){const E=N.split("."),x=w==null?void 0:w.getFieldValue(E);x!=null&&x!==""&&i.current.add(N)}},200),[]);return b.useEffect(()=>(h(),()=>{h.cancel()}),[t,h]),P.jsx(P.Fragment,{children:e.map(({displayWhen:g,...w})=>{if(g&&!g.every(z=>z!=null&&z.field?typeof z!="function"?z.evaluate&&typeof z.evaluate=="function"?z.evaluate(n):kO(z,n.formRef):z(n):!0))return null;if("dataType"in w&&w.type==="input")return P.jsx(q3e,{initialData:n.initialData,resetOnDependencyChange:n.resetOnDependencyChange,resetOnDependencyEmpty:n.resetOnDependencyEmpty,disabled:n.disabled,readOnly:n.readOnly,...w,formRef:n.formRef,httpAgent:n.httpAgent,lookupData:n.lookupData,suppressionRef:n.suppressionRef,pendingLookupsRef:n.pendingLookupsRef,updateLookupData:n.updateLookupData},w.key||w.id);if(w.type==="section")return P.jsx(W3e,{...n,...w});if(w.type==="grid")return P.jsx(my,{...n,...w},w.key||w.id);if(w.type==="flex")return P.jsx(hy,{...n,...w},w.key||w.id);if(w.type==="divider")return P.jsx(ue.Divider,{...w,type:w.orientation||"horizontal",orientation:w.labelPlacement||"center",dashed:w.dashed,children:w.label},w.key||w.id);if(w.type==="custom"&&typeof(w==null?void 0:w.render)=="function")return w.render(n)})})},qO=n=>typeof n=="object"&&n!=null&&n.nodeType===1,WO=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Bn=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return WO(t.overflowY,e)||WO(t.overflowX,e)||(i=>{const c=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!c&&(c.clientHeight<i.scrollHeight||c.clientWidth<i.scrollWidth)})(n)}return!1},An=(n,e,t,i,c,l,d,v)=>l<n&&d>e||l>n&&d<e?0:l<=n&&v<=t||d>=e&&v>=t?l-n-i:d>e&&v<t||l<n&&v>t?d-e+c:0,G3e=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},UO=(n,e)=>{var t,i,c,l;if(typeof document>"u")return[];const{scrollMode:d,block:v,inline:h,boundary:m,skipOverflowHiddenElements:g}=e,w=typeof m=="function"?m:D=>D!==m;if(!qO(n))throw new TypeError("Invalid target");const z=document.scrollingElement||document.documentElement,y=[];let M=n;for(;qO(M)&&w(M);){if(M=G3e(M),M===z){y.push(M);break}M!=null&&M===document.body&&Bn(M)&&!Bn(document.documentElement)||M!=null&&Bn(M,g)&&y.push(M)}const N=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,E=(l=(c=window.visualViewport)==null?void 0:c.height)!=null?l:innerHeight,{scrollX:x,scrollY:R}=window,{height:S,width:H,top:C,right:I,bottom:_,left:k}=n.getBoundingClientRect(),{top:A,right:U,bottom:Y,left:ne}=(D=>{const T=window.getComputedStyle(D);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(n);let G=v==="start"||v==="nearest"?C-A:v==="end"?_+Y:C+S/2-A+Y,j=h==="center"?k+H/2-ne+U:h==="end"?I+U:k-ne;const ee=[];for(let D=0;D<y.length;D++){const T=y[D],{height:$,width:q,top:J,right:Q,bottom:ie,left:oe}=T.getBoundingClientRect();if(d==="if-needed"&&C>=0&&k>=0&&_<=E&&I<=N&&(T===z&&!Bn(T)||C>=J&&_<=ie&&k>=oe&&I<=Q))return ee;const de=getComputedStyle(T),Oe=parseInt(de.borderLeftWidth,10),me=parseInt(de.borderTopWidth,10),ye=parseInt(de.borderRightWidth,10),he=parseInt(de.borderBottomWidth,10);let be=0,pe=0;const Ne="offsetWidth"in T?T.offsetWidth-T.clientWidth-Oe-ye:0,Me="offsetHeight"in T?T.offsetHeight-T.clientHeight-me-he:0,De="offsetWidth"in T?T.offsetWidth===0?0:q/T.offsetWidth:0,ve="offsetHeight"in T?T.offsetHeight===0?0:$/T.offsetHeight:0;if(z===T)be=v==="start"?G:v==="end"?G-E:v==="nearest"?An(R,R+E,E,me,he,R+G,R+G+S,S):G-E/2,pe=h==="start"?j:h==="center"?j-N/2:h==="end"?j-N:An(x,x+N,N,Oe,ye,x+j,x+j+H,H),be=Math.max(0,be+R),pe=Math.max(0,pe+x);else{be=v==="start"?G-J-me:v==="end"?G-ie+he+Me:v==="nearest"?An(J,ie,$,me,he+Me,G,G+S,S):G-(J+$/2)+Me/2,pe=h==="start"?j-oe-Oe:h==="center"?j-(oe+q/2)+Ne/2:h==="end"?j-Q+ye+Ne:An(oe,Q,q,Oe,ye+Ne,j,j+H,H);const{scrollLeft:Pe,scrollTop:ze}=T;be=ve===0?0:Math.max(0,Math.min(ze+be/ve,T.scrollHeight-$/ve+Me)),pe=De===0?0:Math.max(0,Math.min(Pe+pe/De,T.scrollWidth-q/De+Ne)),G+=ze-be,j+=Pe-pe}ee.push({el:T,top:be,left:pe})}return ee},Y3e=n=>n===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(n)?n:{block:"start",inline:"nearest"};function K3e(n,e){if(!n.isConnected||!(c=>{let l=c;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(n))return;const t=(c=>{const l=window.getComputedStyle(c);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(n);if((c=>typeof c=="object"&&typeof c.behavior=="function")(e))return e.behavior(UO(n,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:c,top:l,left:d}of UO(n,Y3e(e))){const v=l-t.top+t.bottom,h=d-t.left+t.right;c.scroll({top:v,left:h,behavior:i})}}const X3e=["parentNode"],Z3e="form_item";function GO(n){return n===void 0||n===!1?[]:Array.isArray(n)?n:[n]}function Q3e(n,e){if(!n.length)return;const t=n.join("_");return e?`${e}_${t}`:X3e.includes(t)?`${Z3e}_${t}`:t}var J3e=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)e.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(t[i[c]]=n[i[c]]);return t};function YO(n){return GO(n).join("_")}function KO(n,e){const t=e.getFieldInstance(n),i=Ia(t);if(i)return i;const c=Q3e(GO(n),e.__INTERNAL__.name);if(c)return document.getElementById(c)}function XO(n){const[e]=v6(),t=a.useRef({}),i=a.useMemo(()=>n??Object.assign(Object.assign({},e),{__INTERNAL__:{itemRef:c=>l=>{const d=YO(c);l?t.current[d]=l:delete t.current[d]}},scrollToField:(c,l={})=>{const{focus:d}=l,v=J3e(l,["focus"]),h=KO(c,i);h&&(K3e(h,Object.assign({scrollMode:"if-needed",block:"nearest"},v)),d&&i.focusField(c))},focusField:c=>{var l,d;const v=i.getFieldInstance(c);typeof(v==null?void 0:v.focus)=="function"?v.focus():(d=(l=KO(c,i))===null||l===void 0?void 0:l.focus)===null||d===void 0||d.call(l)},getFieldInstance:c=>{const l=YO(c);return t.current[l]}}),[n,e]);return[i]}const Pn={};function ene({name:n}){const e=St("Form");a.useEffect(()=>{if(n)return Pn[n]=(Pn[n]||0)+1,process.env.NODE_ENV!=="production"&&e(Pn[n]<=1,"usage","There exist multiple Form with same `name`."),()=>{Pn[n]-=1}},[n])}const tne=n=>({[n.componentCls]:{[`${n.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${n.motionDurationMid} ${n.motionEaseInOut},
|
|
207
207
|
opacity ${n.motionDurationMid} ${n.motionEaseInOut} !important`}},[`${n.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${n.motionDurationMid} ${n.motionEaseInOut},
|
|
208
208
|
opacity ${n.motionDurationMid} ${n.motionEaseInOut} !important`}}}),ZO=new _4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}});new _4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),new _4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),new _4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),new _4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),new _4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),new _4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),new _4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),new _4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),new _4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),new _4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),new _4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}});const nne=n=>{const{componentCls:e}=n,t=`${e}-show-help`,i=`${e}-show-help-item`;return{[t]:{transition:`opacity ${n.motionDurationFast} ${n.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[i]:{overflow:"hidden",transition:`height ${n.motionDurationFast} ${n.motionEaseInOut},
|
|
209
209
|
opacity ${n.motionDurationFast} ${n.motionEaseInOut},
|