lu-lowcode-package-form 0.9.20 → 0.9.21

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.cjs.js CHANGED
@@ -313,7 +313,7 @@ html body {
313
313
  ${x_}-eye,
314
314
  ${x_}-download,
315
315
  ${x_}-delete
316
- `]:{zIndex:10,width:$_,margin:`0 ${unit$1(Ff.marginXXS)}`,fontSize:$_,cursor:"pointer",transition:`all ${Ff.motionDurationSlow}`,color:B_,"&:hover":{color:B_},svg:{verticalAlign:"baseline"}}},[`${eme}-thumbnail, ${eme}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${eme}-name`]:{display:"none",textAlign:"center"},[`${eme}-file + ${eme}-name`]:{position:"absolute",bottom:Ff.margin,display:"block",width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`},[`${eme}-uploading`]:{[`&${eme}`]:{backgroundColor:Ff.colorFillAlter},[`&::before, ${x_}-eye, ${x_}-download, ${x_}-delete`]:{display:"none"}},[`${eme}-progress`]:{bottom:Ff.marginXL,width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${kh}-wrapper${kh}-picture-circle-wrapper`]:{[`${kh}${kh}-select`]:{borderRadius:"50%"}}}},genRtlStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-rtl`]:{direction:"rtl"}}},genBaseStyle=Ff=>{const{componentCls:kh,colorTextDisabled:x_}=Ff;return{[`${kh}-wrapper`]:Object.assign(Object.assign({},resetComponent(Ff)),{[kh]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${kh}-select`]:{display:"inline-block"},[`${kh}-disabled`]:{color:x_,cursor:"not-allowed"}})}},prepareComponentToken=Ff=>({actionsColor:Ff.colorTextDescription}),useStyle=genStyleHooks("Upload",Ff=>{const{fontSizeHeading3:kh,fontHeight:x_,lineWidth:$_,controlHeightLG:B_,calc:$P}=Ff,zP=merge(Ff,{uploadThumbnailSize:$P(kh).mul(2).equal(),uploadProgressOffset:$P($P(x_).div(2)).add($_).equal(),uploadPicCardSize:$P(B_).mul(2.55).equal()});return[genBaseStyle(zP),genDraggerStyle(zP),genPictureStyle(zP),genPictureCardStyle(zP),genListStyle(zP),genMotionStyle(zP),genRtlStyle(zP),genCollapseMotion(zP)]},prepareComponentToken);var FileTwoTone$1={icon:function(kh,x_){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:x_}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:kh}}]}},name:"file",theme:"twotone"},FileTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FileTwoTone$1}))},RefIcon$7=React__namespace.forwardRef(FileTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$7.displayName="FileTwoTone");var PaperClipOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},PaperClipOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PaperClipOutlined$1}))},RefIcon$6=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="PaperClipOutlined");var PictureTwoTone$1={icon:function(kh,x_){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:kh}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:x_}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:x_}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:x_}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:kh}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PictureTwoTone$1}))},RefIcon$5=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="PictureTwoTone");function file2Obj(Ff){return Object.assign(Object.assign({},Ff),{lastModified:Ff.lastModified,lastModifiedDate:Ff.lastModifiedDate,name:Ff.name,size:Ff.size,type:Ff.type,uid:Ff.uid,percent:0,originFileObj:Ff})}function updateFileList(Ff,kh){const x_=_toConsumableArray(kh),$_=x_.findIndex(B_=>{let{uid:$P}=B_;return $P===Ff.uid});return $_===-1?x_.push(Ff):x_[$_]=Ff,x_}function getFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name";return kh.filter($_=>$_[x_]===Ff[x_])[0]}function removeFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name",$_=kh.filter(B_=>B_[x_]!==Ff[x_]);return $_.length===kh.length?null:$_}const extname=function(){const kh=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),$_=kh[kh.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec($_)||[""])[0]},isImageFileType=Ff=>Ff.indexOf("image/")===0,isImageUrl=Ff=>{if(Ff.type&&!Ff.thumbUrl)return isImageFileType(Ff.type);const kh=Ff.thumbUrl||Ff.url||"",x_=extname(kh);return/^data:image\//.test(kh)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(x_)?!0:!(/^data:/.test(kh)||x_)},MEASURE_SIZE=200;function previewImage(Ff){return new Promise(kh=>{if(!Ff.type||!isImageFileType(Ff.type)){kh("");return}const x_=document.createElement("canvas");x_.width=MEASURE_SIZE,x_.height=MEASURE_SIZE,x_.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(x_);const $_=x_.getContext("2d"),B_=new Image;if(B_.onload=()=>{const{width:$P,height:zP}=B_;let eme=MEASURE_SIZE,tme=MEASURE_SIZE,nme=0,rme=0;$P>zP?(tme=zP*(MEASURE_SIZE/$P),rme=-(tme-eme)/2):(eme=$P*(MEASURE_SIZE/zP),nme=-(eme-tme)/2),$_.drawImage(B_,nme,rme,eme,tme);const ame=x_.toDataURL();document.body.removeChild(x_),window.URL.revokeObjectURL(B_.src),kh(ame)},B_.crossOrigin="anonymous",Ff.type.startsWith("image/svg+xml")){const $P=new FileReader;$P.onload=()=>{$P.result&&typeof $P.result=="string"&&(B_.src=$P.result)},$P.readAsDataURL(Ff)}else if(Ff.type.startsWith("image/gif")){const $P=new FileReader;$P.onload=()=>{$P.result&&kh($P.result)},$P.readAsDataURL(Ff)}else B_.src=window.URL.createObjectURL(Ff)})}var DownloadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},DownloadOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DownloadOutlined$1}))},RefIcon$4=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="DownloadOutlined");const ListItem=React__namespace.forwardRef((Ff,kh)=>{let{prefixCls:x_,className:$_,style:B_,locale:$P,listType:zP,file:eme,items:tme,progress:nme,iconRender:rme,actionIconRender:ame,itemRender:ome,isImgUrl:ime,showPreviewIcon:cme,showRemoveIcon:ume,showDownloadIcon:sme,previewIcon:fme,removeIcon:lme,downloadIcon:hme,onPreview:pme,onDownload:gme,onClose:yme}=Ff;var mme,bme;const{status:Sme}=eme,[_me,Cme]=React__namespace.useState(Sme);React__namespace.useEffect(()=>{Sme!=="removed"&&Cme(Sme)},[Sme]);const[Eme,Tme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const zme=setTimeout(()=>{Tme(!0)},300);return()=>{clearTimeout(zme)}},[]);const Rme=rme(eme);let Pme=React__namespace.createElement("div",{className:`${x_}-icon`},Rme);if(zP==="picture"||zP==="picture-card"||zP==="picture-circle")if(_me==="uploading"||!eme.thumbUrl&&!eme.url){const zme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:_me!=="uploading"});Pme=React__namespace.createElement("div",{className:zme},Rme)}else{const zme=ime!=null&&ime(eme)?React__namespace.createElement("img",{src:eme.thumbUrl||eme.url,alt:eme.name,className:`${x_}-list-item-image`,crossOrigin:eme.crossOrigin}):Rme,Vme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:ime&&!ime(eme)});Pme=React__namespace.createElement("a",{className:Vme,onClick:Xme=>pme(eme,Xme),href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zme)}const $me=classNames(`${x_}-list-item`,`${x_}-list-item-${_me}`),Dme=typeof eme.linkProps=="string"?JSON.parse(eme.linkProps):eme.linkProps,Mme=ume?ame((typeof lme=="function"?lme(eme):lme)||React__namespace.createElement(RefIcon$8,null),()=>yme(eme),x_,$P.removeFile,!0):null,Nme=sme&&_me==="done"?ame((typeof hme=="function"?hme(eme):hme)||React__namespace.createElement(RefIcon$4,null),()=>gme(eme),x_,$P.downloadFile):null,Ime=zP!=="picture-card"&&zP!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${x_}-list-item-actions`,{picture:zP==="picture"})},Nme,Mme),wme=classNames(`${x_}-list-item-name`),Ome=eme.url?[React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:wme,title:eme.name},Dme,{href:eme.url,onClick:zme=>pme(eme,zme)}),eme.name),Ime]:[React__namespace.createElement("span",{key:"view",className:wme,onClick:zme=>pme(eme,zme),title:eme.name},eme.name),Ime],Ame=cme&&(eme.url||eme.thumbUrl)?React__namespace.createElement("a",{href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:zme=>pme(eme,zme),title:$P.previewFile},typeof fme=="function"?fme(eme):fme||React__namespace.createElement(RefIcon$p,null)):null,Fme=(zP==="picture-card"||zP==="picture-circle")&&_me!=="uploading"&&React__namespace.createElement("span",{className:`${x_}-list-item-actions`},Ame,_me==="done"&&Nme,Mme),{getPrefixCls:Bme}=React__namespace.useContext(ConfigContext),kme=Bme(),Lme=React__namespace.createElement("div",{className:$me},Pme,Ome,Fme,Eme&&React__namespace.createElement(CSSMotion,{motionName:`${kme}-fade`,visible:_me==="uploading",motionDeadline:2e3},zme=>{let{className:Vme}=zme;const Xme="percent"in eme?React__namespace.createElement(Progress,Object.assign({},nme,{type:"line",percent:eme.percent,"aria-label":eme["aria-label"],"aria-labelledby":eme["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-progress`,Vme)},Xme)})),Hme=eme.response&&typeof eme.response=="string"?eme.response:((mme=eme.error)===null||mme===void 0?void 0:mme.statusText)||((bme=eme.error)===null||bme===void 0?void 0:bme.message)||$P.uploadError,Wme=_me==="error"?React__namespace.createElement(Tooltip,{title:Hme,getPopupContainer:zme=>zme.parentNode},Lme):Lme;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-container`,$_),style:B_,ref:kh},ome?ome(Wme,eme,tme,{download:gme.bind(null,eme),preview:pme.bind(null,eme),remove:yme.bind(null,eme)}):Wme)}),InternalUploadList=(Ff,kh)=>{const{listType:x_="text",previewFile:$_=previewImage,onPreview:B_,onDownload:$P,onRemove:zP,locale:eme,iconRender:tme,isImageUrl:nme=isImageUrl,prefixCls:rme,items:ame=[],showPreviewIcon:ome=!0,showRemoveIcon:ime=!0,showDownloadIcon:cme=!1,removeIcon:ume,previewIcon:sme,downloadIcon:fme,progress:lme={size:[-1,2],showInfo:!1},appendAction:hme,appendActionVisible:pme=!0,itemRender:gme,disabled:yme}=Ff,mme=useForceUpdate(),[bme,Sme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{x_!=="picture"&&x_!=="picture-card"&&x_!=="picture-circle"||(ame||[]).forEach(Ame=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ame.originFileObj instanceof File||Ame.originFileObj)||Ame.thumbUrl!==void 0||$_&&$_(Ame.originFileObj).then(Fme=>{Ame.thumbUrl=Fme||"",mme()})})},[x_,ame,$_]),React__namespace.useEffect(()=>{Sme(!0)},[]);const _me=(Ame,Fme)=>{if(B_)return Fme==null||Fme.preventDefault(),B_(Ame)},Cme=Ame=>{typeof $P=="function"?$P(Ame):Ame.url&&window.open(Ame.url)},Eme=Ame=>{zP==null||zP(Ame)},Tme=Ame=>{if(tme)return tme(Ame,x_);const Fme=Ame.status==="uploading",Bme=nme&&nme(Ame)?React__namespace.createElement(RefIcon$5,null):React__namespace.createElement(RefIcon$7,null);let kme=Fme?React__namespace.createElement(RefIcon$x,null):React__namespace.createElement(RefIcon$6,null);return x_==="picture"?kme=Fme?React__namespace.createElement(RefIcon$x,null):Bme:(x_==="picture-card"||x_==="picture-circle")&&(kme=Fme?eme.uploading:Bme),kme},Rme=(Ame,Fme,Bme,kme,Lme)=>{const Hme={type:"text",size:"small",title:kme,onClick:Wme=>{var zme,Vme;Fme(),React__namespace.isValidElement(Ame)&&((Vme=(zme=Ame.props).onClick)===null||Vme===void 0||Vme.call(zme,Wme))},className:`${Bme}-list-item-action`};if(Lme&&(Hme.disabled=yme),React__namespace.isValidElement(Ame)){const Wme=cloneElement(Ame,Object.assign(Object.assign({},Ame.props),{onClick:()=>{}}));return React__namespace.createElement(Button$1,Object.assign({},Hme,{icon:Wme}))}return React__namespace.createElement(Button$1,Object.assign({},Hme),React__namespace.createElement("span",null,Ame))};React__namespace.useImperativeHandle(kh,()=>({handlePreview:_me,handleDownload:Cme}));const{getPrefixCls:Pme}=React__namespace.useContext(ConfigContext),$me=Pme("upload",rme),Dme=Pme(),Mme=classNames(`${$me}-list`,`${$me}-list-${x_}`),Nme=_toConsumableArray(ame.map(Ame=>({key:Ame.uid,file:Ame})));let wme={motionDeadline:2e3,motionName:`${$me}-${x_==="picture-card"||x_==="picture-circle"?"animate-inline":"animate"}`,keys:Nme,motionAppear:bme};const Ome=React__namespace.useMemo(()=>{const Ame=Object.assign({},initCollapseMotion(Dme));return delete Ame.onAppearEnd,delete Ame.onEnterEnd,delete Ame.onLeaveEnd,Ame},[Dme]);return x_!=="picture-card"&&x_!=="picture-circle"&&(wme=Object.assign(Object.assign({},Ome),wme)),React__namespace.createElement("div",{className:Mme},React__namespace.createElement(CSSMotionList,Object.assign({},wme,{component:!1}),Ame=>{let{key:Fme,file:Bme,className:kme,style:Lme}=Ame;return React__namespace.createElement(ListItem,{key:Fme,locale:eme,prefixCls:$me,className:kme,style:Lme,file:Bme,items:ame,progress:lme,listType:x_,isImgUrl:nme,showPreviewIcon:ome,showRemoveIcon:ime,showDownloadIcon:cme,removeIcon:ume,previewIcon:sme,downloadIcon:fme,iconRender:Tme,actionIconRender:Rme,itemRender:gme,onPreview:_me,onDownload:Cme,onClose:Eme})}),hme&&React__namespace.createElement(CSSMotion,Object.assign({},wme,{visible:pme,forceRender:!0}),Ame=>{let{className:Fme,style:Bme}=Ame;return cloneElement(hme,kme=>({className:classNames(kme.className,Fme),style:Object.assign(Object.assign(Object.assign({},Bme),{pointerEvents:Fme?"none":void 0}),kme.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");var __awaiter=function(Ff,kh,x_,$_){function B_($P){return $P instanceof x_?$P:new x_(function(zP){zP($P)})}return new(x_||(x_=Promise))(function($P,zP){function eme(rme){try{nme($_.next(rme))}catch(ame){zP(ame)}}function tme(rme){try{nme($_.throw(rme))}catch(ame){zP(ame)}}function nme(rme){rme.done?$P(rme.value):B_(rme.value).then(eme,tme)}nme(($_=$_.apply(Ff,kh||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(Ff,kh)=>{const{fileList:x_,defaultFileList:$_,onRemove:B_,showUploadList:$P=!0,listType:zP="text",onPreview:eme,onDownload:tme,onChange:nme,onDrop:rme,previewFile:ame,disabled:ome,locale:ime,iconRender:cme,isImageUrl:ume,progress:sme,prefixCls:fme,className:lme,type:hme="select",children:pme,style:gme,itemRender:yme,maxCount:mme,data:bme={},multiple:Sme=!1,hasControlInside:_me=!0,action:Cme="",accept:Eme="",supportServerRender:Tme=!0,rootClassName:Rme}=Ff,Pme=React__namespace.useContext(DisabledContext),$me=ome??Pme,[Dme,Mme]=useMergedState($_||[],{value:x_,postState:O0e=>O0e??[]}),[Nme,Ime]=React__namespace.useState("drop"),wme=React__namespace.useRef(null),Ome=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const O0e=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&O0e("fileList"in Ff||!("value"in Ff),"usage","`value` is not a valid prop, do you mean `fileList`?"),O0e.deprecated(!("transformFile"in Ff),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const O0e=Date.now();(x_||[]).forEach((b0e,k0e)=>{!b0e.uid&&!Object.isFrozen(b0e)&&(b0e.uid=`__AUTO__${O0e}_${k0e}__`)})},[x_]);const Ame=(O0e,b0e,k0e)=>{let T0e=_toConsumableArray(b0e),L0e=!1;mme===1?T0e=T0e.slice(-1):mme&&(L0e=T0e.length>mme,T0e=T0e.slice(0,mme)),ReactDOM.flushSync(()=>{Mme(T0e)});const Y0e={file:O0e,fileList:T0e};k0e&&(Y0e.event=k0e),(!L0e||O0e.status==="removed"||T0e.some(mye=>mye.uid===O0e.uid))&&ReactDOM.flushSync(()=>{nme==null||nme(Y0e)})},Fme=(O0e,b0e)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:k0e,transformFile:T0e}=Ff;let L0e=O0e;if(k0e){const Y0e=yield k0e(O0e,b0e);if(Y0e===!1)return!1;if(delete O0e[LIST_IGNORE],Y0e===LIST_IGNORE)return Object.defineProperty(O0e,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Y0e=="object"&&Y0e&&(L0e=Y0e)}return T0e&&(L0e=yield T0e(L0e)),L0e}),Bme=O0e=>{const b0e=O0e.filter(L0e=>!L0e.file[LIST_IGNORE]);if(!b0e.length)return;const k0e=b0e.map(L0e=>file2Obj(L0e.file));let T0e=_toConsumableArray(Dme);k0e.forEach(L0e=>{T0e=updateFileList(L0e,T0e)}),k0e.forEach((L0e,Y0e)=>{let mye=L0e;if(b0e[Y0e].parsedFile)L0e.status="uploading";else{const{originFileObj:Q0e}=L0e;let U0e;try{U0e=new File([Q0e],Q0e.name,{type:Q0e.type})}catch{U0e=new Blob([Q0e],{type:Q0e.type}),U0e.name=Q0e.name,U0e.lastModifiedDate=new Date,U0e.lastModified=new Date().getTime()}U0e.uid=L0e.uid,mye=U0e}Ame(mye,T0e)})},kme=(O0e,b0e,k0e)=>{try{typeof O0e=="string"&&(O0e=JSON.parse(O0e))}catch{}if(!getFileItem(b0e,Dme))return;const T0e=file2Obj(b0e);T0e.status="done",T0e.percent=100,T0e.response=O0e,T0e.xhr=k0e;const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Lme=(O0e,b0e)=>{if(!getFileItem(b0e,Dme))return;const k0e=file2Obj(b0e);k0e.status="uploading",k0e.percent=O0e.percent;const T0e=updateFileList(k0e,Dme);Ame(k0e,T0e,O0e)},Hme=(O0e,b0e,k0e)=>{if(!getFileItem(k0e,Dme))return;const T0e=file2Obj(k0e);T0e.error=O0e,T0e.response=b0e,T0e.status="error";const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Wme=O0e=>{let b0e;Promise.resolve(typeof B_=="function"?B_(O0e):B_).then(k0e=>{var T0e;if(k0e===!1)return;const L0e=removeFileItem(O0e,Dme);L0e&&(b0e=Object.assign(Object.assign({},O0e),{status:"removed"}),Dme==null||Dme.forEach(Y0e=>{const mye=b0e.uid!==void 0?"uid":"name";Y0e[mye]===b0e[mye]&&!Object.isFrozen(Y0e)&&(Y0e.status="removed")}),(T0e=wme.current)===null||T0e===void 0||T0e.abort(b0e),Ame(b0e,L0e))})},zme=O0e=>{Ime(O0e.type),O0e.type==="drop"&&(rme==null||rme(O0e))};React__namespace.useImperativeHandle(kh,()=>({onBatchStart:Bme,onSuccess:kme,onProgress:Lme,onError:Hme,fileList:Dme,upload:wme.current,nativeElement:Ome.current}));const{getPrefixCls:Vme,direction:Xme,upload:e0e}=React__namespace.useContext(ConfigContext),Ume=Vme("upload",fme),Jme=Object.assign(Object.assign({onBatchStart:Bme,onError:Hme,onProgress:Lme,onSuccess:kme},Ff),{data:bme,multiple:Sme,action:Cme,accept:Eme,supportServerRender:Tme,prefixCls:Ume,disabled:$me,beforeUpload:Fme,onChange:void 0,hasControlInside:_me});delete Jme.className,delete Jme.style,(!pme||$me)&&delete Jme.id;const s0e=`${Ume}-wrapper`,[d0e,Zme,Qme]=useStyle(Ume,s0e),[a0e]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:t0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e}=typeof $P=="boolean"?{}:$P,P0e=typeof t0e>"u"?!$me:!!t0e,y0e=(O0e,b0e)=>$P?React__namespace.createElement(UploadList,{prefixCls:Ume,listType:zP,items:Dme,previewFile:ame,onPreview:eme,onDownload:tme,onRemove:Wme,showRemoveIcon:P0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e,iconRender:cme,locale:Object.assign(Object.assign({},a0e),ime),isImageUrl:ume,progress:sme,appendAction:O0e,appendActionVisible:b0e,itemRender:yme,disabled:$me}):O0e,$0e=classNames(s0e,lme,Rme,Zme,Qme,e0e==null?void 0:e0e.className,{[`${Ume}-rtl`]:Xme==="rtl",[`${Ume}-picture-card-wrapper`]:zP==="picture-card",[`${Ume}-picture-circle-wrapper`]:zP==="picture-circle"}),C0e=Object.assign(Object.assign({},e0e==null?void 0:e0e.style),gme);if(hme==="drag"){const O0e=classNames(Zme,Ume,`${Ume}-drag`,{[`${Ume}-drag-uploading`]:Dme.some(b0e=>b0e.status==="uploading"),[`${Ume}-drag-hover`]:Nme==="dragover",[`${Ume}-disabled`]:$me,[`${Ume}-rtl`]:Xme==="rtl"});return d0e(React__namespace.createElement("span",{className:$0e,ref:Ome},React__namespace.createElement("div",{className:O0e,style:C0e,onDrop:zme,onDragOver:zme,onDragLeave:zme},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme,className:`${Ume}-btn`}),React__namespace.createElement("div",{className:`${Ume}-drag-container`},pme))),y0e()))}const z0e=classNames(Ume,`${Ume}-select`,{[`${Ume}-disabled`]:$me}),D0e=React__namespace.createElement("div",{className:z0e,style:pme?void 0:{display:"none"}},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme})));return d0e(zP==="picture-card"||zP==="picture-circle"?React__namespace.createElement("span",{className:$0e,ref:Ome},y0e(D0e,!!pme)):React__namespace.createElement("span",{className:$0e,ref:Ome},D0e,y0e()))},Upload$1=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$1.displayName="Upload");var __rest=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const Dragger=React__namespace.forwardRef((Ff,kh)=>{var{style:x_,height:$_,hasControlInside:B_=!1}=Ff,$P=__rest(Ff,["style","height","hasControlInside"]);return React__namespace.createElement(Upload$1,Object.assign({ref:kh,hasControlInside:B_},$P,{type:"drag",style:Object.assign(Object.assign({},x_),{height:$_})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Upload=Upload$1;Upload.Dragger=Dragger;Upload.LIST_IGNORE=LIST_IGNORE;const BaseWrapper=function(kh){let{label:x_,children:$_,prompt:B_,subTable:$P,hidePrompt:zP=!1,subTableIndex:eme,addWrapper:tme=!0,...nme}=kh;return tme?$P?jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[x_&&eme===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:x_}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex fitems-stretch fp-2 ",children:$_})]}):jsxRuntimeExports.jsxs("div",{className:"frelative",children:[x_&&jsxRuntimeExports.jsx("div",{className:"fh-8 ftext-gray-500 ftext-sm fflex fjustify-between fitems-center",children:x_}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex fitems-stretch ftext-gray-900",children:$_}),!zP&&jsxRuntimeExports.jsx("div",{className:"ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",children:B_})]}):$_};var lodash={exports:{}};/**
316
+ `]:{zIndex:10,width:$_,margin:`0 ${unit$1(Ff.marginXXS)}`,fontSize:$_,cursor:"pointer",transition:`all ${Ff.motionDurationSlow}`,color:B_,"&:hover":{color:B_},svg:{verticalAlign:"baseline"}}},[`${eme}-thumbnail, ${eme}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${eme}-name`]:{display:"none",textAlign:"center"},[`${eme}-file + ${eme}-name`]:{position:"absolute",bottom:Ff.margin,display:"block",width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`},[`${eme}-uploading`]:{[`&${eme}`]:{backgroundColor:Ff.colorFillAlter},[`&::before, ${x_}-eye, ${x_}-download, ${x_}-delete`]:{display:"none"}},[`${eme}-progress`]:{bottom:Ff.marginXL,width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${kh}-wrapper${kh}-picture-circle-wrapper`]:{[`${kh}${kh}-select`]:{borderRadius:"50%"}}}},genRtlStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-rtl`]:{direction:"rtl"}}},genBaseStyle=Ff=>{const{componentCls:kh,colorTextDisabled:x_}=Ff;return{[`${kh}-wrapper`]:Object.assign(Object.assign({},resetComponent(Ff)),{[kh]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${kh}-select`]:{display:"inline-block"},[`${kh}-disabled`]:{color:x_,cursor:"not-allowed"}})}},prepareComponentToken=Ff=>({actionsColor:Ff.colorTextDescription}),useStyle=genStyleHooks("Upload",Ff=>{const{fontSizeHeading3:kh,fontHeight:x_,lineWidth:$_,controlHeightLG:B_,calc:$P}=Ff,zP=merge(Ff,{uploadThumbnailSize:$P(kh).mul(2).equal(),uploadProgressOffset:$P($P(x_).div(2)).add($_).equal(),uploadPicCardSize:$P(B_).mul(2.55).equal()});return[genBaseStyle(zP),genDraggerStyle(zP),genPictureStyle(zP),genPictureCardStyle(zP),genListStyle(zP),genMotionStyle(zP),genRtlStyle(zP),genCollapseMotion(zP)]},prepareComponentToken);var FileTwoTone$1={icon:function(kh,x_){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:x_}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:kh}}]}},name:"file",theme:"twotone"},FileTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FileTwoTone$1}))},RefIcon$7=React__namespace.forwardRef(FileTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$7.displayName="FileTwoTone");var PaperClipOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},PaperClipOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PaperClipOutlined$1}))},RefIcon$6=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="PaperClipOutlined");var PictureTwoTone$1={icon:function(kh,x_){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:kh}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:x_}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:x_}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:x_}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:kh}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PictureTwoTone$1}))},RefIcon$5=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="PictureTwoTone");function file2Obj(Ff){return Object.assign(Object.assign({},Ff),{lastModified:Ff.lastModified,lastModifiedDate:Ff.lastModifiedDate,name:Ff.name,size:Ff.size,type:Ff.type,uid:Ff.uid,percent:0,originFileObj:Ff})}function updateFileList(Ff,kh){const x_=_toConsumableArray(kh),$_=x_.findIndex(B_=>{let{uid:$P}=B_;return $P===Ff.uid});return $_===-1?x_.push(Ff):x_[$_]=Ff,x_}function getFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name";return kh.filter($_=>$_[x_]===Ff[x_])[0]}function removeFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name",$_=kh.filter(B_=>B_[x_]!==Ff[x_]);return $_.length===kh.length?null:$_}const extname=function(){const kh=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),$_=kh[kh.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec($_)||[""])[0]},isImageFileType=Ff=>Ff.indexOf("image/")===0,isImageUrl=Ff=>{if(Ff.type&&!Ff.thumbUrl)return isImageFileType(Ff.type);const kh=Ff.thumbUrl||Ff.url||"",x_=extname(kh);return/^data:image\//.test(kh)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(x_)?!0:!(/^data:/.test(kh)||x_)},MEASURE_SIZE=200;function previewImage(Ff){return new Promise(kh=>{if(!Ff.type||!isImageFileType(Ff.type)){kh("");return}const x_=document.createElement("canvas");x_.width=MEASURE_SIZE,x_.height=MEASURE_SIZE,x_.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(x_);const $_=x_.getContext("2d"),B_=new Image;if(B_.onload=()=>{const{width:$P,height:zP}=B_;let eme=MEASURE_SIZE,tme=MEASURE_SIZE,nme=0,rme=0;$P>zP?(tme=zP*(MEASURE_SIZE/$P),rme=-(tme-eme)/2):(eme=$P*(MEASURE_SIZE/zP),nme=-(eme-tme)/2),$_.drawImage(B_,nme,rme,eme,tme);const ame=x_.toDataURL();document.body.removeChild(x_),window.URL.revokeObjectURL(B_.src),kh(ame)},B_.crossOrigin="anonymous",Ff.type.startsWith("image/svg+xml")){const $P=new FileReader;$P.onload=()=>{$P.result&&typeof $P.result=="string"&&(B_.src=$P.result)},$P.readAsDataURL(Ff)}else if(Ff.type.startsWith("image/gif")){const $P=new FileReader;$P.onload=()=>{$P.result&&kh($P.result)},$P.readAsDataURL(Ff)}else B_.src=window.URL.createObjectURL(Ff)})}var DownloadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},DownloadOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DownloadOutlined$1}))},RefIcon$4=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="DownloadOutlined");const ListItem=React__namespace.forwardRef((Ff,kh)=>{let{prefixCls:x_,className:$_,style:B_,locale:$P,listType:zP,file:eme,items:tme,progress:nme,iconRender:rme,actionIconRender:ame,itemRender:ome,isImgUrl:ime,showPreviewIcon:cme,showRemoveIcon:ume,showDownloadIcon:sme,previewIcon:fme,removeIcon:lme,downloadIcon:hme,onPreview:pme,onDownload:gme,onClose:yme}=Ff;var mme,bme;const{status:Sme}=eme,[_me,Cme]=React__namespace.useState(Sme);React__namespace.useEffect(()=>{Sme!=="removed"&&Cme(Sme)},[Sme]);const[Eme,Tme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const zme=setTimeout(()=>{Tme(!0)},300);return()=>{clearTimeout(zme)}},[]);const Rme=rme(eme);let Pme=React__namespace.createElement("div",{className:`${x_}-icon`},Rme);if(zP==="picture"||zP==="picture-card"||zP==="picture-circle")if(_me==="uploading"||!eme.thumbUrl&&!eme.url){const zme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:_me!=="uploading"});Pme=React__namespace.createElement("div",{className:zme},Rme)}else{const zme=ime!=null&&ime(eme)?React__namespace.createElement("img",{src:eme.thumbUrl||eme.url,alt:eme.name,className:`${x_}-list-item-image`,crossOrigin:eme.crossOrigin}):Rme,Vme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:ime&&!ime(eme)});Pme=React__namespace.createElement("a",{className:Vme,onClick:Xme=>pme(eme,Xme),href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zme)}const $me=classNames(`${x_}-list-item`,`${x_}-list-item-${_me}`),Dme=typeof eme.linkProps=="string"?JSON.parse(eme.linkProps):eme.linkProps,Mme=ume?ame((typeof lme=="function"?lme(eme):lme)||React__namespace.createElement(RefIcon$8,null),()=>yme(eme),x_,$P.removeFile,!0):null,Nme=sme&&_me==="done"?ame((typeof hme=="function"?hme(eme):hme)||React__namespace.createElement(RefIcon$4,null),()=>gme(eme),x_,$P.downloadFile):null,Ime=zP!=="picture-card"&&zP!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${x_}-list-item-actions`,{picture:zP==="picture"})},Nme,Mme),wme=classNames(`${x_}-list-item-name`),Ome=eme.url?[React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:wme,title:eme.name},Dme,{href:eme.url,onClick:zme=>pme(eme,zme)}),eme.name),Ime]:[React__namespace.createElement("span",{key:"view",className:wme,onClick:zme=>pme(eme,zme),title:eme.name},eme.name),Ime],Ame=cme&&(eme.url||eme.thumbUrl)?React__namespace.createElement("a",{href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:zme=>pme(eme,zme),title:$P.previewFile},typeof fme=="function"?fme(eme):fme||React__namespace.createElement(RefIcon$p,null)):null,Fme=(zP==="picture-card"||zP==="picture-circle")&&_me!=="uploading"&&React__namespace.createElement("span",{className:`${x_}-list-item-actions`},Ame,_me==="done"&&Nme,Mme),{getPrefixCls:Bme}=React__namespace.useContext(ConfigContext),kme=Bme(),Lme=React__namespace.createElement("div",{className:$me},Pme,Ome,Fme,Eme&&React__namespace.createElement(CSSMotion,{motionName:`${kme}-fade`,visible:_me==="uploading",motionDeadline:2e3},zme=>{let{className:Vme}=zme;const Xme="percent"in eme?React__namespace.createElement(Progress,Object.assign({},nme,{type:"line",percent:eme.percent,"aria-label":eme["aria-label"],"aria-labelledby":eme["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-progress`,Vme)},Xme)})),Hme=eme.response&&typeof eme.response=="string"?eme.response:((mme=eme.error)===null||mme===void 0?void 0:mme.statusText)||((bme=eme.error)===null||bme===void 0?void 0:bme.message)||$P.uploadError,Wme=_me==="error"?React__namespace.createElement(Tooltip,{title:Hme,getPopupContainer:zme=>zme.parentNode},Lme):Lme;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-container`,$_),style:B_,ref:kh},ome?ome(Wme,eme,tme,{download:gme.bind(null,eme),preview:pme.bind(null,eme),remove:yme.bind(null,eme)}):Wme)}),InternalUploadList=(Ff,kh)=>{const{listType:x_="text",previewFile:$_=previewImage,onPreview:B_,onDownload:$P,onRemove:zP,locale:eme,iconRender:tme,isImageUrl:nme=isImageUrl,prefixCls:rme,items:ame=[],showPreviewIcon:ome=!0,showRemoveIcon:ime=!0,showDownloadIcon:cme=!1,removeIcon:ume,previewIcon:sme,downloadIcon:fme,progress:lme={size:[-1,2],showInfo:!1},appendAction:hme,appendActionVisible:pme=!0,itemRender:gme,disabled:yme}=Ff,mme=useForceUpdate(),[bme,Sme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{x_!=="picture"&&x_!=="picture-card"&&x_!=="picture-circle"||(ame||[]).forEach(Ame=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ame.originFileObj instanceof File||Ame.originFileObj)||Ame.thumbUrl!==void 0||$_&&$_(Ame.originFileObj).then(Fme=>{Ame.thumbUrl=Fme||"",mme()})})},[x_,ame,$_]),React__namespace.useEffect(()=>{Sme(!0)},[]);const _me=(Ame,Fme)=>{if(B_)return Fme==null||Fme.preventDefault(),B_(Ame)},Cme=Ame=>{typeof $P=="function"?$P(Ame):Ame.url&&window.open(Ame.url)},Eme=Ame=>{zP==null||zP(Ame)},Tme=Ame=>{if(tme)return tme(Ame,x_);const Fme=Ame.status==="uploading",Bme=nme&&nme(Ame)?React__namespace.createElement(RefIcon$5,null):React__namespace.createElement(RefIcon$7,null);let kme=Fme?React__namespace.createElement(RefIcon$x,null):React__namespace.createElement(RefIcon$6,null);return x_==="picture"?kme=Fme?React__namespace.createElement(RefIcon$x,null):Bme:(x_==="picture-card"||x_==="picture-circle")&&(kme=Fme?eme.uploading:Bme),kme},Rme=(Ame,Fme,Bme,kme,Lme)=>{const Hme={type:"text",size:"small",title:kme,onClick:Wme=>{var zme,Vme;Fme(),React__namespace.isValidElement(Ame)&&((Vme=(zme=Ame.props).onClick)===null||Vme===void 0||Vme.call(zme,Wme))},className:`${Bme}-list-item-action`};if(Lme&&(Hme.disabled=yme),React__namespace.isValidElement(Ame)){const Wme=cloneElement(Ame,Object.assign(Object.assign({},Ame.props),{onClick:()=>{}}));return React__namespace.createElement(Button$1,Object.assign({},Hme,{icon:Wme}))}return React__namespace.createElement(Button$1,Object.assign({},Hme),React__namespace.createElement("span",null,Ame))};React__namespace.useImperativeHandle(kh,()=>({handlePreview:_me,handleDownload:Cme}));const{getPrefixCls:Pme}=React__namespace.useContext(ConfigContext),$me=Pme("upload",rme),Dme=Pme(),Mme=classNames(`${$me}-list`,`${$me}-list-${x_}`),Nme=_toConsumableArray(ame.map(Ame=>({key:Ame.uid,file:Ame})));let wme={motionDeadline:2e3,motionName:`${$me}-${x_==="picture-card"||x_==="picture-circle"?"animate-inline":"animate"}`,keys:Nme,motionAppear:bme};const Ome=React__namespace.useMemo(()=>{const Ame=Object.assign({},initCollapseMotion(Dme));return delete Ame.onAppearEnd,delete Ame.onEnterEnd,delete Ame.onLeaveEnd,Ame},[Dme]);return x_!=="picture-card"&&x_!=="picture-circle"&&(wme=Object.assign(Object.assign({},Ome),wme)),React__namespace.createElement("div",{className:Mme},React__namespace.createElement(CSSMotionList,Object.assign({},wme,{component:!1}),Ame=>{let{key:Fme,file:Bme,className:kme,style:Lme}=Ame;return React__namespace.createElement(ListItem,{key:Fme,locale:eme,prefixCls:$me,className:kme,style:Lme,file:Bme,items:ame,progress:lme,listType:x_,isImgUrl:nme,showPreviewIcon:ome,showRemoveIcon:ime,showDownloadIcon:cme,removeIcon:ume,previewIcon:sme,downloadIcon:fme,iconRender:Tme,actionIconRender:Rme,itemRender:gme,onPreview:_me,onDownload:Cme,onClose:Eme})}),hme&&React__namespace.createElement(CSSMotion,Object.assign({},wme,{visible:pme,forceRender:!0}),Ame=>{let{className:Fme,style:Bme}=Ame;return cloneElement(hme,kme=>({className:classNames(kme.className,Fme),style:Object.assign(Object.assign(Object.assign({},Bme),{pointerEvents:Fme?"none":void 0}),kme.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");var __awaiter=function(Ff,kh,x_,$_){function B_($P){return $P instanceof x_?$P:new x_(function(zP){zP($P)})}return new(x_||(x_=Promise))(function($P,zP){function eme(rme){try{nme($_.next(rme))}catch(ame){zP(ame)}}function tme(rme){try{nme($_.throw(rme))}catch(ame){zP(ame)}}function nme(rme){rme.done?$P(rme.value):B_(rme.value).then(eme,tme)}nme(($_=$_.apply(Ff,kh||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(Ff,kh)=>{const{fileList:x_,defaultFileList:$_,onRemove:B_,showUploadList:$P=!0,listType:zP="text",onPreview:eme,onDownload:tme,onChange:nme,onDrop:rme,previewFile:ame,disabled:ome,locale:ime,iconRender:cme,isImageUrl:ume,progress:sme,prefixCls:fme,className:lme,type:hme="select",children:pme,style:gme,itemRender:yme,maxCount:mme,data:bme={},multiple:Sme=!1,hasControlInside:_me=!0,action:Cme="",accept:Eme="",supportServerRender:Tme=!0,rootClassName:Rme}=Ff,Pme=React__namespace.useContext(DisabledContext),$me=ome??Pme,[Dme,Mme]=useMergedState($_||[],{value:x_,postState:O0e=>O0e??[]}),[Nme,Ime]=React__namespace.useState("drop"),wme=React__namespace.useRef(null),Ome=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const O0e=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&O0e("fileList"in Ff||!("value"in Ff),"usage","`value` is not a valid prop, do you mean `fileList`?"),O0e.deprecated(!("transformFile"in Ff),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const O0e=Date.now();(x_||[]).forEach((b0e,k0e)=>{!b0e.uid&&!Object.isFrozen(b0e)&&(b0e.uid=`__AUTO__${O0e}_${k0e}__`)})},[x_]);const Ame=(O0e,b0e,k0e)=>{let T0e=_toConsumableArray(b0e),L0e=!1;mme===1?T0e=T0e.slice(-1):mme&&(L0e=T0e.length>mme,T0e=T0e.slice(0,mme)),ReactDOM.flushSync(()=>{Mme(T0e)});const Y0e={file:O0e,fileList:T0e};k0e&&(Y0e.event=k0e),(!L0e||O0e.status==="removed"||T0e.some(mye=>mye.uid===O0e.uid))&&ReactDOM.flushSync(()=>{nme==null||nme(Y0e)})},Fme=(O0e,b0e)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:k0e,transformFile:T0e}=Ff;let L0e=O0e;if(k0e){const Y0e=yield k0e(O0e,b0e);if(Y0e===!1)return!1;if(delete O0e[LIST_IGNORE],Y0e===LIST_IGNORE)return Object.defineProperty(O0e,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Y0e=="object"&&Y0e&&(L0e=Y0e)}return T0e&&(L0e=yield T0e(L0e)),L0e}),Bme=O0e=>{const b0e=O0e.filter(L0e=>!L0e.file[LIST_IGNORE]);if(!b0e.length)return;const k0e=b0e.map(L0e=>file2Obj(L0e.file));let T0e=_toConsumableArray(Dme);k0e.forEach(L0e=>{T0e=updateFileList(L0e,T0e)}),k0e.forEach((L0e,Y0e)=>{let mye=L0e;if(b0e[Y0e].parsedFile)L0e.status="uploading";else{const{originFileObj:Q0e}=L0e;let U0e;try{U0e=new File([Q0e],Q0e.name,{type:Q0e.type})}catch{U0e=new Blob([Q0e],{type:Q0e.type}),U0e.name=Q0e.name,U0e.lastModifiedDate=new Date,U0e.lastModified=new Date().getTime()}U0e.uid=L0e.uid,mye=U0e}Ame(mye,T0e)})},kme=(O0e,b0e,k0e)=>{try{typeof O0e=="string"&&(O0e=JSON.parse(O0e))}catch{}if(!getFileItem(b0e,Dme))return;const T0e=file2Obj(b0e);T0e.status="done",T0e.percent=100,T0e.response=O0e,T0e.xhr=k0e;const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Lme=(O0e,b0e)=>{if(!getFileItem(b0e,Dme))return;const k0e=file2Obj(b0e);k0e.status="uploading",k0e.percent=O0e.percent;const T0e=updateFileList(k0e,Dme);Ame(k0e,T0e,O0e)},Hme=(O0e,b0e,k0e)=>{if(!getFileItem(k0e,Dme))return;const T0e=file2Obj(k0e);T0e.error=O0e,T0e.response=b0e,T0e.status="error";const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Wme=O0e=>{let b0e;Promise.resolve(typeof B_=="function"?B_(O0e):B_).then(k0e=>{var T0e;if(k0e===!1)return;const L0e=removeFileItem(O0e,Dme);L0e&&(b0e=Object.assign(Object.assign({},O0e),{status:"removed"}),Dme==null||Dme.forEach(Y0e=>{const mye=b0e.uid!==void 0?"uid":"name";Y0e[mye]===b0e[mye]&&!Object.isFrozen(Y0e)&&(Y0e.status="removed")}),(T0e=wme.current)===null||T0e===void 0||T0e.abort(b0e),Ame(b0e,L0e))})},zme=O0e=>{Ime(O0e.type),O0e.type==="drop"&&(rme==null||rme(O0e))};React__namespace.useImperativeHandle(kh,()=>({onBatchStart:Bme,onSuccess:kme,onProgress:Lme,onError:Hme,fileList:Dme,upload:wme.current,nativeElement:Ome.current}));const{getPrefixCls:Vme,direction:Xme,upload:e0e}=React__namespace.useContext(ConfigContext),Ume=Vme("upload",fme),Jme=Object.assign(Object.assign({onBatchStart:Bme,onError:Hme,onProgress:Lme,onSuccess:kme},Ff),{data:bme,multiple:Sme,action:Cme,accept:Eme,supportServerRender:Tme,prefixCls:Ume,disabled:$me,beforeUpload:Fme,onChange:void 0,hasControlInside:_me});delete Jme.className,delete Jme.style,(!pme||$me)&&delete Jme.id;const s0e=`${Ume}-wrapper`,[d0e,Zme,Qme]=useStyle(Ume,s0e),[a0e]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:t0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e}=typeof $P=="boolean"?{}:$P,P0e=typeof t0e>"u"?!$me:!!t0e,y0e=(O0e,b0e)=>$P?React__namespace.createElement(UploadList,{prefixCls:Ume,listType:zP,items:Dme,previewFile:ame,onPreview:eme,onDownload:tme,onRemove:Wme,showRemoveIcon:P0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e,iconRender:cme,locale:Object.assign(Object.assign({},a0e),ime),isImageUrl:ume,progress:sme,appendAction:O0e,appendActionVisible:b0e,itemRender:yme,disabled:$me}):O0e,$0e=classNames(s0e,lme,Rme,Zme,Qme,e0e==null?void 0:e0e.className,{[`${Ume}-rtl`]:Xme==="rtl",[`${Ume}-picture-card-wrapper`]:zP==="picture-card",[`${Ume}-picture-circle-wrapper`]:zP==="picture-circle"}),C0e=Object.assign(Object.assign({},e0e==null?void 0:e0e.style),gme);if(hme==="drag"){const O0e=classNames(Zme,Ume,`${Ume}-drag`,{[`${Ume}-drag-uploading`]:Dme.some(b0e=>b0e.status==="uploading"),[`${Ume}-drag-hover`]:Nme==="dragover",[`${Ume}-disabled`]:$me,[`${Ume}-rtl`]:Xme==="rtl"});return d0e(React__namespace.createElement("span",{className:$0e,ref:Ome},React__namespace.createElement("div",{className:O0e,style:C0e,onDrop:zme,onDragOver:zme,onDragLeave:zme},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme,className:`${Ume}-btn`}),React__namespace.createElement("div",{className:`${Ume}-drag-container`},pme))),y0e()))}const z0e=classNames(Ume,`${Ume}-select`,{[`${Ume}-disabled`]:$me}),D0e=React__namespace.createElement("div",{className:z0e,style:pme?void 0:{display:"none"}},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme})));return d0e(zP==="picture-card"||zP==="picture-circle"?React__namespace.createElement("span",{className:$0e,ref:Ome},y0e(D0e,!!pme)):React__namespace.createElement("span",{className:$0e,ref:Ome},D0e,y0e()))},Upload$1=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$1.displayName="Upload");var __rest=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const Dragger=React__namespace.forwardRef((Ff,kh)=>{var{style:x_,height:$_,hasControlInside:B_=!1}=Ff,$P=__rest(Ff,["style","height","hasControlInside"]);return React__namespace.createElement(Upload$1,Object.assign({ref:kh,hasControlInside:B_},$P,{type:"drag",style:Object.assign(Object.assign({},x_),{height:$_})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Upload=Upload$1;Upload.Dragger=Dragger;Upload.LIST_IGNORE=LIST_IGNORE;const BaseWrapper=function(kh){let{label:x_,children:$_,prompt:B_,subTable:$P,hidePrompt:zP=!1,subTableIndex:eme,addWrapper:tme=!0,readonly:nme,...rme}=kh;return tme?$P?jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[x_&&eme===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:x_}),jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-stretch fp-2 frelative",children:[nme&&jsxRuntimeExports.jsx("div",{className:"fw-full fh-full fbg-gray-50 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"}),$_]})]}):jsxRuntimeExports.jsxs("div",{className:"frelative",children:[x_&&jsxRuntimeExports.jsx("div",{className:"fh-8 ftext-gray-500 ftext-sm fflex fjustify-between fitems-center",children:x_}),jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-stretch ftext-gray-900 frelative",children:[nme&&jsxRuntimeExports.jsx("div",{className:"fw-full fh-full fbg-gray-100 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"}),$_]}),!zP&&jsxRuntimeExports.jsx("div",{className:"ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",children:B_})]}):$_};var lodash={exports:{}};/**
317
317
  * @license
318
318
  * Lodash <https://lodash.com/>
319
319
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -394,7 +394,7 @@ function print() { __p += __j.call(arguments, '') }
394
394
  transform: rotate(360deg);
395
395
  }
396
396
  }
397
- `,useInsertStyles=function(){var kh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,x_=React.useContext(IconContext),$_=x_.csp;React.useEffect(function(){updateCSS(kh,"@ant-design-icons",{prepend:!0,csp:$_})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(Ff){var kh=Ff.primaryColor,x_=Ff.secondaryColor;twoToneColorPalette.primaryColor=kh,twoToneColorPalette.secondaryColor=x_||getSecondaryColor(kh),twoToneColorPalette.calculated=!!x_}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(kh){var x_=kh.icon,$_=kh.className,B_=kh.onClick,$P=kh.style,zP=kh.primaryColor,eme=kh.secondaryColor,tme=_objectWithoutProperties(kh,_excluded$1),nme=twoToneColorPalette;if(zP&&(nme={primaryColor:zP,secondaryColor:eme||getSecondaryColor(zP)}),useInsertStyles(),warning(isIconDefinition(x_),"icon should be icon definiton, but got ".concat(x_)),!isIconDefinition(x_))return null;var rme=x_;return rme&&typeof rme.icon=="function"&&(rme=_objectSpread2(_objectSpread2({},rme),{},{icon:rme.icon(nme.primaryColor,nme.secondaryColor)})),generate(rme.icon,"svg-".concat(rme.name),_objectSpread2({className:$_,onClick:B_,style:$P,"data-icon":rme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tme))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(Ff){var kh=normalizeTwoToneColors(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return IconBase.setTwoToneColors({primaryColor:$_,secondaryColor:B_})}function getTwoToneColor(){var Ff=IconBase.getTwoToneColors();return Ff.calculated?[Ff.primaryColor,Ff.secondaryColor]:Ff.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.className,$_=Ff.icon,B_=Ff.spin,$P=Ff.rotate,zP=Ff.tabIndex,eme=Ff.onClick,tme=Ff.twoToneColor,nme=_objectWithoutProperties(Ff,_excluded),rme=React__namespace.useContext(IconContext),ame=rme.prefixCls,ome=ame===void 0?"anticon":ame,ime=rme.rootClassName,cme=classNames(ime,ome,_defineProperty(_defineProperty({},"".concat(ome,"-").concat($_.name),!!$_.name),"".concat(ome,"-spin"),!!B_||$_.name==="loading"),x_),ume=zP;ume===void 0&&eme&&(ume=-1);var sme=$P?{msTransform:"rotate(".concat($P,"deg)"),transform:"rotate(".concat($P,"deg)")}:void 0,fme=normalizeTwoToneColors(tme),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":$_.name},nme),{},{ref:kh,tabIndex:ume,onClick:eme,className:cme}),React__namespace.createElement(IconBase,{icon:$_,primaryColor:hme,secondaryColor:pme,style:sme}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:PlusOutlined$1}))},RefIcon$1=React__namespace.forwardRef(PlusOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="PlusOutlined");var UploadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},UploadOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,zP=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(Ff,kh,x_,$_,B_,$P,eme=>({value:eme[kh],title:eme[x_],key:eme[kh],disabled:eme[kh]===zP}))}function constructTree(Ff,kh,x_,$_,B_,$P,zP){if(!Array.isArray(Ff)||Ff.length===0)return[];const eme=Ff.map(tme=>({...tme,...zP(tme)}));return eme.filter(tme=>{const nme=eme.filter(rme=>tme[kh]===rme[$_]);return tme[B_]=nme.length>0?nme:[],tme[$_]===$P})}const TreeSelect=Ff=>{let{request:kh,title:x_,disabledValue:$_,callError:B_,...$P}=Ff;const[zP,eme]=React.useState(!1),[tme,nme]=React.useState([]);React.useEffect(()=>{rme()},[]);const rme=async()=>{if(kh&&typeof kh=="function"){var ame;const ome=await kh();if(ome.code>0){B_&&typeof B_=="function"&&B_(ome.message);return}let ime=handleTree(((ame=ome.data)===null||ame===void 0?void 0:ame.list)||ome.data||[],"id",x_||"title",$P.parentId||"parentId","children",0,$_);ime=[{value:0,title:"根节点",children:ime}],$P.treeData=ime,nme(ime)}$P.treeData&&nme($P.treeData),eme(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...$P,children:zP&&jsxRuntimeExports.jsx(TreeSelect$1,{...$P,treeData:tme,treeDefaultExpandAll:!0,style:{width:"100%"}})})},Select=Ff=>{let{request:kh,option_label:x_="label",option_value:$_="id",disabledValue:B_,callError:$P,options:zP,addWrapper:eme=!0,...tme}=Ff;const[nme,rme]=React.useState([]);React.useEffect(()=>{ame()},[]);const ame=async()=>{if(kh&&typeof kh=="function"){var ome;const ime=await kh();if(ime.code>0){$P&&typeof $P=="function"&&$P(ime.message);return}let cme=((ome=ime.data)===null||ome===void 0?void 0:ome.list)||ime.data;Array.isArray(cme)&&cme.length>0&&rme(cme.map(ume=>({label:ume[x_],value:ume[$_]})))}zP&&zP.length>0&&rme(zP)};return eme?jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})},SingleSelect=Ff=>{let{...kh}=Ff;return jsxRuntimeExports.jsx(Select,{...kh,mode:"single"})},MultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);return React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]),jsxRuntimeExports.jsx(Select,{...$_,onChange:kh,mode:"multiple",value:B_})},WithSingleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState("");React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),$P(tme.label)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"single"})},WithMultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}Array.isArray(x_)&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),tme.map(nme=>nme.label),$P(tme)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"multiple"})},SearchSelect=Ff=>{let{addWrapper:kh=!0,value:x_,type:$_,defaultValue:B_,onChange:$P,option_label:zP,option_value:eme,option_search:tme,options:nme,request:rme,requestParams:ame,callError:ome,...ime}=Ff;const[cme,ume]=React.useState([]),[sme,fme]=React.useState(!1);React.useEffect(()=>{lme(ame)},[ame]);const lme=async yme=>{let mme=null;if(rme&&typeof rme=="function"){const bme=await pme(yme);bme&&Array.isArray(bme)&&(mme=x_?bme.find(Sme=>Sme.value==x_):null)}nme&&nme.length>0&&(mme=x_?nme.find(bme=>bme.value==x_):null,ume(nme)),mme&&$P(mme)},hme=lodashExports.debounce(async yme=>{const mme={...ame};mme[tme]=yme,await pme(mme)},200),pme=async yme=>{try{var mme;fme(!0);const bme=await rme(yme);if(bme.code>0){ome&&typeof ome=="function"&&ome(bme.message);return}let Sme=((mme=bme.data)===null||mme===void 0?void 0:mme.list)||bme.data;return Array.isArray(Sme)?(Sme=Sme.map(_me=>({..._me,label:_me[zP],value:_me[eme]})),ume(Sme)):ume([]),Sme}catch(bme){console.error("fetchOptions",bme)}finally{fme(!1)}},gme=yme=>{const mme=cme.find(bme=>bme.value===yme);$P(mme)};return kh?jsxRuntimeExports.jsx(BaseWrapper,{...ime,children:jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})}):jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})},Custom=React.forwardRef((Ff,kh)=>{let{value:x_,onChange:$_,...B_}=Ff;const $P=React.useRef(0),zP=()=>{$P.current++,$_($P.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsxs("div",{ref:kh,children:["form-set-value:",x_]}),jsxRuntimeExports.jsx(Button$1,{onClick:zP,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(Ff){console.error("formula error",Ff)}return result.toString()},LayoutFormRow=Ff=>{let{children:kh,layout:x_}=Ff;x_=x_||"1";const $_=zP=>{const eme=zP.split(",").map(Number),tme=24;return eme.map(nme=>nme/eme.reduce((rme,ame)=>rme+ame)*tme)},B_=React.useMemo(()=>$_(x_),[x_]);console.log("colSpans",B_);const $P=React.useMemo(()=>React.Children.toArray(kh).map((zP,eme)=>{const tme=zP.props,nme=(tme==null?void 0:tme.componentId)||(tme==null?void 0:tme.__id);return nme?(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:nme,rules:[{required:tme.isRequired,message:"".concat(tme.title,"不能为空!")}],children:zP},"".concat(nme,"-form-item"))},eme):(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:zP},eme)}),[kh,B_]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:$P})},FormGroupTitle=Ff=>{let{title:kh}=Ff;return kh?jsxRuntimeExports.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:jsxRuntimeExports.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:kh})}):null};function batchElements(Ff,kh){const x_=[];let $_=[];const B_=(zP,eme)=>{const tme=zP-eme.length;eme.push(...new Array(tme).fill(React.createElement("div")))};for(const zP of Ff){var $P;const{_componentName:eme}=(zP==null?void 0:zP.props)||{},tme=(($P=zP.type)===null||$P===void 0?void 0:$P.displayName)||eme;tme&&tme.startsWith("Layout.")?($_.length>0&&(B_(kh,$_),x_.push($_),$_=[]),x_.push([zP])):($_.push(zP),$_.length===kh&&(x_.push($_),$_=[]))}return $_.length>0&&(B_(kh,$_),x_.push($_)),x_}const FormContainer=React.forwardRef((Ff,kh)=>{let{cols:x_=1,children:$_}=Ff;const[B_]=Form.useForm(),[$P,zP]=React.useState(null),eme=React.useRef(null);React.useImperativeHandle(kh,()=>({formRef:B_,initializeFieldVisibility:nme}),[]),React.useEffect(()=>{tme(),zP(ume())},[$_,x_]);const tme=()=>{const sme=[];function fme(hme){var pme,gme,yme=((pme=hme.type)===null||pme===void 0?void 0:pme.displayName)||((gme=hme.props)===null||gme===void 0?void 0:gme._componentName);const{props:mme}=hme;yme&&yme.startsWith("Field.")&&sme.push(hme),mme!=null&&mme.children&&React.Children.toArray(mme==null?void 0:mme.children).forEach(Sme=>fme(Sme))}eme.current=new Map;const lme=React.Children.toArray($_);for(let hme=0;hme<lme.length;hme++){const pme=lme[hme];fme(pme)}sme.forEach(hme=>{const{componentId:pme,__id:gme,...yme}=hme==null?void 0:hme.props,mme=pme||gme;eme.current.set(mme,{children:lme.filter(bme=>{var Sme;return bme.props.withId===mme||((Sme=bme.props.withIds)===null||Sme===void 0?void 0:Sme.some(_me=>mme==_me||_me.startsWith(mme+".")))}),show:!0})}),console.log("dependencyMap",eme.current),nme()},nme=function(){let sme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fme=B_.getFieldsValue();for(let lme of eme.current.keys())rme(lme,fme);sme&&zP(ume())},rme=(sme,fme)=>{let lme=!1;return eme.current.has(sme)&&eme.current.get(sme).children.forEach(pme=>{pme.props.withFunc&&typeof pme.props.withFunc=="function"&&(lme=ame(fme,pme)),pme.props.withFill&&ome(fme,pme)}),lme},ame=(sme,fme)=>{let lme=!1;const hme=fme.props.withFunc(sme),pme=fme.props.componentId||fme.props.__id;if(eme.current.has(pme)){const gme=eme.current.get(pme);gme.show!==hme&&(gme.show=hme,eme.current.set(pme,gme),lme=!0)}return lme},ome=async(sme,fme)=>{const lme=fme.props.withFill,hme=fme.props.withDataFetch;console.log("withFill",lme),console.log("fieldValues",sme),console.log("child",fme);let pme=[];if(lme!=null&&lme.withData&&(lme==null?void 0:lme.withData.length)>0&&hme&&typeof hme=="function")for(let yme=0;yme<(lme==null?void 0:lme.withData.length);yme++){const mme=lme==null?void 0:lme.withData[yme];let bme={};bme.tableName=mme.withTable.table_name,bme.filter={};for(let _me=0;_me<mme.withCondition.length;_me++){const{value:Cme,column:Eme}=mme.withCondition[_me];bme.filter[Eme.column_name]=ime(Cme.group_key,Cme.field_key,sme,pme)}const Sme=await hme(bme);Sme.code===0&&Sme.data.list&&pme.push({id:mme.id,data:Sme.data.list})}let gme;if(lme.value&&lme.value.length>0&&(gme=lme.value.map(yme=>{let mme="";const{insert:bme,attributes:Sme}=yme;return typeof bme!="string"?bme!=null&&bme.span&&Sme&&Sme.tagKey&&Sme.id&&(mme=ime(Sme.tagKey,Sme.id,sme,pme),Array.isArray(mme)?mme=JSON.stringify(mme):mme&&(mme='"'.concat(mme,'"'))):mme=bme,mme})),console.log("formula",gme),gme&&gme.length>0){const yme=fme.props.componentId||fme.props.__id;B_.setFieldValue(yme,evalFormula(gme))}},ime=(sme,fme,lme,hme)=>{let pme="";if(sme=="fieldsValue")if(fme.indexOf(".")>=0){const[yme,mme]=fme.split("."),bme=(lme==null?void 0:lme[yme])||[];Array.isArray(bme)?pme=bme.map(Sme=>(Sme==null?void 0:Sme[mme])||""):pme=(bme==null?void 0:bme[mme])||""}else pme=(lme==null?void 0:lme[fme])||"";else{let yme=hme.find(mme=>mme.id===sme);if(yme&&yme.data&&yme.data.length>0){var gme;pme=((gme=yme.data[0])===null||gme===void 0?void 0:gme[fme])||""}}return pme},cme=lodashExports.debounce((sme,fme)=>{const lme=B_.getFieldsValue();let hme=!1;sme.forEach(pme=>{pme.name&&pme.name.length>0&&(hme=rme(pme.name[0],lme))}),hme&&zP(ume())},200),ume=()=>{const sme=React.Children.toArray($_);return batchElements(sme.filter(lme=>{const hme=lme.props.componentId||lme.props.__id;return eme.current.has(hme)&&eme.current.get(hme).show}),x_).map((lme,hme)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:lme.map((pme,gme)=>{var yme;const{componentId:mme,__id:bme,_componentName:Sme,..._me}=pme.props,Cme=((yme=pme.type)===null||yme===void 0?void 0:yme.displayName)||Sme,Eme=mme||bme,Tme=Cme&&Cme.startsWith("Layout.");return jsxRuntimeExports.jsx(Col,{span:Tme?24:24/lme.length,style:{marginBottom:0},children:Tme?pme:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:Eme,rules:[{required:_me.isRequired,message:"".concat(_me.title,"不能为空!")}],children:pme})},Eme||"col-".concat(gme))})},"row-".concat(hme)))};return jsxRuntimeExports.jsx(Form,{form:B_,className:"form-container fp-6 fw-full fh-full box-border overflow-auto",onFieldsChange:cme,children:$P})});function withWrap(Ff){return React.forwardRef((kh,x_)=>jsxRuntimeExports.jsx(Ff,{...kh,ref:x_,forwardedRef:x_}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:kh,...x_}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}}const FormContainerWrapper=withWrap(Ff=>{let{forwardedRef:kh,...x_}=Ff;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}),CheckboxTree=Ff=>{let{request:kh,value:x_,onChange:$_,callError:B_,disabledValue:$P,addRoot:zP=!0,title:eme,...tme}=Ff;const[nme,rme]=React.useState(!1),[ame,ome]=React.useState([]);React.useEffect(()=>{ime()},[]),React.useEffect(()=>{if(console.log("CheckboxTree value ",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}Array.isArray(x_)&&fme(x_)},[x_]);const ime=async()=>{if(kh&&typeof kh=="function"){var Sme;const _me=await kh();if(_me.code>0){B_&&typeof B_=="function"&&B_(_me.message);return}let Cme=handleTree(((Sme=_me.data)===null||Sme===void 0?void 0:Sme.list)||_me.data||[],"id",eme||"title",(tme==null?void 0:tme.parentId)||"parentId","children",0,$P);zP&&(Cme=[{value:0,title:"根节点",children:Cme}]),tme.treeData=Cme,console.log("treeData",Cme),ome(Cme)}tme.treeData&&ome(tme.treeData),rme(!0)},[cme,ume]=React.useState([]),[sme,fme]=React.useState([]),[lme,hme]=React.useState([]),[pme,gme]=React.useState(!0),yme=Sme=>{console.log("onExpand",Sme),ume(Sme),gme(!1)},mme=Sme=>{console.log("onCheck",Sme),fme(Sme),$_(Sme)},bme=(Sme,_me)=>{console.log("onSelect",_me),hme(Sme)};return jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:yme,onCheck:mme,onSelect:bme,expandedKeys:cme,autoExpandParent:pme,checkedKeys:sme,selectedKeys:lme,treeData:ame})})},Checkbox=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1,{...Ff})}),CheckboxGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...Ff})}),RadioGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Radio.Group,{...Ff})}),UploadFile=Ff=>{let{value:kh,maxCount:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(kh){if(typeof kh=="string")try{kh=JSON.parse(kh),$_(kh)}catch{}console.log("value",kh),Array.isArray(kh)&&zP(kh)}},[kh]),x_=x_||9;const[$P,zP]=React.useState([]),eme=tme=>{let{fileList:nme}=tme;console.log("newFileList",nme),nme=nme.map(rme=>(rme.status=="done"&&rme.response&&(rme.url=rme.response),rme)),$_(nme.map(rme=>({uid:rme.uid,name:rme.name,status:rme.status,url:rme.url||rme.response||"",error:rme.error}))),zP(nme)};return jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(Upload,{...B_,listType:"text",maxCount:x_,onChange:eme,fileList:$P,children:!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[jsxRuntimeExports.jsx(RefIcon,{}),"点击上传文件"]})})})},UploadImage=Ff=>{let{maxCount:kh,value:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(x_){if(console.log("value",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}let pme=[];if(Array.isArray(x_))for(let gme=0;gme<x_.length;gme++){let yme=x_[gme];var hme=ime.current.find(mme=>mme.uid===yme.uid);!hme||(hme.version||0)<(yme.version||0)?pme.push(yme):pme.push(hme)}zP(pme)}},[x_]),kh=kh||9;const[$P,zP]=React.useState([]),[eme,tme]=React.useState(""),[nme,rme]=React.useState(0),[ame,ome]=React.useState(!1),ime=React.useRef([]),cme=hme=>new Promise((pme,gme)=>{const yme=new FileReader;yme.readAsDataURL(hme),yme.onload=()=>pme(yme.result),yme.onerror=mme=>gme(mme)}),ume=async(hme,pme)=>{!hme.url&&!hme.preview&&(hme.preview=await cme(hme.originFileObj)),tme(hme.url||hme.preview),rme(pme),ome(!0)},sme=async(hme,pme)=>{zP($P.filter((gme,yme)=>yme!==pme))},fme=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[jsxRuntimeExports.jsx(RefIcon$1,{}),jsxRuntimeExports.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),lme=hme=>{let{fileList:pme}=hme,gme=[];for(let bme=0;bme<pme.length;bme++){var yme=pme[bme];yme.version=new Date().getTime();var mme=ime.current.find(Sme=>Sme.uid===yme.uid);console.log("oldfile",JSON.parse(JSON.stringify(mme||{}))),mme&&mme.status!="uploading"?gme.push(mme):(yme.status=="done"&&yme.response&&(yme.url=yme.response),gme.push(yme))}ime.current=gme,zP(gme),$_(gme.map(bme=>({uid:bme.uid,name:bme.name,status:bme.status,url:bme.url||bme.response||"",error:bme.error,version:bme.version||0})))};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...B_,itemRender:(hme,pme,gme)=>{console.log("file",pme);let yme=gme.findIndex(mme=>mme.uid===pme.uid);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(pme.status=="error"?" fborder-red-500":""),children:[jsxRuntimeExports.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[pme.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{ume(pme,yme)},className:"hover:ftext-gray-200"}),jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{sme(pme,yme)},className:"hover:ftext-gray-200"})]}),pme.status=="uploading"&&jsxRuntimeExports.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:jsxRuntimeExports.jsx(Spin,{})}),jsxRuntimeExports.jsx("img",{src:pme.url||pme.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(pme.uid))})},listType:"picture-card",fileList:$P,maxCount:kh,onPreview:ume,onChange:lme,children:$P.length>=kh||B_!=null&&B_.disabled?null:fme})}),eme&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:ame,current:nme,onVisibleChange:hme=>ome(hme),onChange:hme=>{rme(hme)}},children:$P.map((hme,pme)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:hme.url})}))})]})},Switch=Ff=>{let{value:kh,...x_}=Ff;const[$_,B_]=React.useState(!1);return React.useEffect(()=>{let $P=!1;typeof kh=="boolean"?$P=kh:typeof kh=="string"?$P=kh=="1"||kh=="true":typeof kh=="number"&&($P=kh==1),B_($P),x_==null||x_.onChange($P)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Switch$1,{...x_,value:$_})})};var zhCn={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_(dayjs_minExports)})(commonjsGlobal,function(x_){function $_(zP){return zP&&typeof zP=="object"&&"default"in zP?zP:{default:zP}}var B_=$_(x_),$P={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(zP,eme){return eme==="W"?zP+"周":zP+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(zP,eme){var tme=100*zP+eme;return tme<600?"凌晨":tme<900?"早上":tme<1100?"上午":tme<1300?"中午":tme<1800?"下午":"晚上"}};return B_.default.locale($P,null,!0),$P})})(zhCn);var locale$2={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},locale={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$2),timePickerLocale:Object.assign({},locale$1)};locale.lang.ok="确定";var updateLocale$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){B_.updateLocale=function($P,zP){var eme=B_.Ls[$P];if(eme)return(zP?Object.keys(zP):[]).forEach(function(tme){eme[tme]=zP[tme]}),eme}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=Ff=>{let{datetype:kh,value:x_,onChange:$_,...B_}=Ff;kh=kh||"date";const[$P,zP]=React.useState(B_==null?void 0:B_.picker),[eme,tme]=React.useState(B_==null?void 0:B_.format),[nme,rme]=React.useState(null),[ame,ome]=React.useState(!1),[ime,cme]=React.useState(!1);React.useEffect(()=>{if(x_){const sme=dayjs(x_);rme(sme)}},[x_,eme,$P]);const ume=(sme,fme)=>{$_(fme)};return React.useEffect(()=>{switch(zP("date"),ome(!1),kh){case"date":zP("date"),tme("YYYY-MM-DD"),cme(!1);break;case"datetime":ome(!0),zP("datetime"),tme("YYYY-MM-DD HH:mm:ss"),cme(!0);break;case"month":zP("month"),cme(!1);break;case"year":zP("year"),cme(!1);break}},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...B_,picker:$P,format:eme,style:{width:"100%"},onChange:ume,value:nme,showTime:ame,needConfirm:ime})})},TableCol=Ff=>{let{children:kh,width:x_,...$_}=Ff;const[B_,$P]=React.useState(0);return React.useEffect(()=>{$P(x_)},[x_]),jsxRuntimeExports.jsx("div",{className:"fflex-1",style:{minWidth:"".concat(B_,"px")},...$_,children:kh})},TableAction=Ff=>{let{label:kh,subTableIndex:x_,children:$_,...B_}=Ff;return jsxRuntimeExports.jsx("div",{className:"fw-16",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col",children:[kh&&x_===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:kh}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 ",children:$_})]})})},Table=Ff=>{let{children:kh,value:x_,onChange:$_,...B_}=Ff;const[$P,zP]=React.useState([{}]),eme=React.useRef($P),tme=React.useRef(new Map),[nme,rme]=React.useState({}),ame=B_.componentId||B_.__id,ome=mme=>{zP(mme),eme.current=mme};React.useEffect(()=>{if(console.log("value useEffect ",JSON.stringify(x_)),x_&&typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}x_&&Array.isArray(x_)&&!lodashExports.isEqual(eme.current,x_)&&(console.log("useEffect setRows"),ome(x_))},[x_]),React.useEffect(()=>{console.log("children useEffect ",kh),ime()},[kh]);const ime=React.useCallback(()=>{tme.current.clear();const mme=React.Children.toArray(kh);mme.forEach(bme=>{const{componentId:Sme,__id:_me,...Cme}=bme.props,Eme="".concat(ame,".").concat(Sme||_me);tme.current.set(Eme,{children:mme.filter(Tme=>{var Rme;return Tme.props.withId===Eme||((Rme=Tme.props.withIds)===null||Rme===void 0?void 0:Rme.includes(Eme))}),show:!0})}),ume()},[kh,ame]),cme=React.useCallback(mme=>{const bme={};for(let Sme in mme)bme["".concat(ame,".").concat(Sme)]=mme[Sme]||"";return bme},[ame]),ume=React.useCallback(()=>{$P.forEach((mme,bme)=>{const Sme=cme(mme);for(let _me of tme.current.keys())sme(_me,Sme,bme)})},[$P,cme]),sme=React.useCallback((mme,bme,Sme)=>{let _me=!1;const Cme="".concat(ame,".").concat(mme);return tme.current.has(Cme)&&tme.current.get(Cme).children.forEach(Tme=>{Tme.props.withFunc&&typeof Tme.props.withFunc=="function"&&(_me=fme(bme,Tme)),Tme.props.withFill&&lme(bme,Tme,Sme)}),_me},[ame,$P]),fme=React.useCallback((mme,bme)=>{let Sme=!1;const _me=bme.props.withFunc(mme),Cme=bme.props.componentId||bme.props.__id;if(tme.current.has(Cme)){const Eme=tme.current.get(Cme);Eme.show!==_me&&(Eme.show=_me,tme.current.set(Cme,Eme),Sme=!0)}return Sme},[]),lme=React.useCallback(async(mme,bme,Sme)=>{const _me=bme.props.withFill,Cme=bme.props.withDataFetch;let Eme=[];if(_me!=null&&_me.withData&&(_me==null?void 0:_me.withData.length)>0&&Cme&&typeof Cme=="function")for(let Rme=0;Rme<(_me==null?void 0:_me.withData.length);Rme++){const Pme=_me==null?void 0:_me.withData[Rme];let $me={};$me.tableName=Pme.withTable.table_name,$me.filter={};for(let Mme=0;Mme<Pme.withCondition.length;Mme++){const{value:Nme,column:Ime}=Pme.withCondition[Mme];$me.filter[Ime.column_name]=hme(Nme.group_key,Nme.field_key,mme,Eme)}const Dme=await Cme($me);Dme.code===0&&Dme.data.list&&Eme.push({id:Pme.id,data:Dme.data.list})}let Tme;if(_me.value&&_me.value.length>0&&(Tme=_me.value.map(Rme=>{let Pme="";const{insert:$me,attributes:Dme}=Rme;return typeof $me!="string"?$me!=null&&$me.span&&Dme&&Dme.tagKey&&Dme.id&&(Pme=hme(Dme.tagKey,Dme.id,mme,Eme),Pme&&(Pme='"'.concat(Pme,'"'))):Pme=$me,Pme})),console.log("formula",Tme),Tme&&Tme.length>0){const Rme=bme.props.componentId||bme.props.__id,Pme=evalFormula(Tme);console.log("formulaResult",Pme),console.log("handleFieldsWithFill setRows");const $me=[...$P];$me[Sme][Rme]=Pme,ome($me)}},[$P]),hme=React.useCallback((mme,bme,Sme,_me)=>{let Cme="";if(mme==="fieldsValue")Cme=(Sme==null?void 0:Sme[bme])||"";else{let Tme=_me.find(Rme=>Rme.id===mme);if(Tme&&Tme.data&&Tme.data.length>0){var Eme;Cme=((Eme=Tme.data[0])===null||Eme===void 0?void 0:Eme[bme])||""}}return Cme},[]),pme=React.useCallback((mme,bme,Sme)=>{var _me;const Cme=[...$P];Cme[mme]={...Cme[mme],[bme]:(Sme==null||(_me=Sme.target)===null||_me===void 0?void 0:_me.value)||""},console.log("handleInputChange setRows"),ome(Cme),rme({rowIndex:mme,identifier:bme,value:cme(Cme[mme])})},[$P,sme,cme,$_]),gme=mme=>{const bme=[...$P];bme.splice(mme,1),console.log("handleDeleteRow setRows"),ome(bme)},yme=()=>{console.log("addRow setRows"),ome([...$P,{}])};return React.useEffect(()=>{console.log("rows changed rows",JSON.stringify(eme.current)),console.log("rows changed value",JSON.stringify(x_)),!lodashExports.isEqual(eme.current,x_)&&(console.log("noreq"),typeof $_=="function"&&$_(eme.current))},[$P]),React.useEffect(()=>{nme&&nme.identifier&&sme(nme.identifier,nme.value,nme.rowIndex)},[nme]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fw-full fmin-h-20 foverflow-x-auto",children:$P.map((mme,bme)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b finline-flex fflex-wrap fmin-w-full",style:{width:"max-content"},children:[React.Children.map(kh,(Sme,_me)=>{var Cme;const Eme=(Sme==null||(Cme=Sme.props)===null||Cme===void 0?void 0:Cme.__id)||_me;return(mme==null?void 0:mme[Eme])===void 0&&(mme[Eme]=""),jsxRuntimeExports.jsx(TableCol,{width:100,children:React.cloneElement(Sme,{key:"row_".concat(bme,"_child_").concat(_me),subTable:!0,subTableIndex:bme,value:mme[Eme]||"",onChange:Tme=>pme(bme,Eme,Tme)})},"row_".concat(bme,"_col_").concat(_me))}),jsxRuntimeExports.jsx(TableAction,{subTable:!0,subTableIndex:bme,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>gme(bme)})},"row_".concat(bme,"_action"))]},bme))}),jsxRuntimeExports.jsx(Button$1,{onClick:yme,className:"fmy-2",children:"新增一行"})]})},OptionSetter=Ff=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(Ff,kh){return Ff===kh||Ff!==Ff&&kh!==kh}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(Ff,kh){for(var x_=Ff.length;x_--;)if(eq$2(Ff[x_][0],kh))return x_;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(Ff){var kh=this.__data__,x_=assocIndexOf$3(kh,Ff);if(x_<0)return!1;var $_=kh.length-1;return x_==$_?kh.pop():splice.call(kh,x_,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(Ff){var kh=this.__data__,x_=assocIndexOf$2(kh,Ff);return x_<0?void 0:kh[x_][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(Ff){return assocIndexOf$1(this.__data__,Ff)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(Ff,kh){var x_=this.__data__,$_=assocIndexOf(x_,Ff);return $_<0?(++this.size,x_.push([Ff,kh])):x_[$_][1]=kh,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(Ff){var kh=this.__data__,x_=kh.delete(Ff);return this.size=kh.size,x_}var _stackDelete=stackDelete$1;function stackGet$1(Ff){return this.__data__.get(Ff)}var _stackGet=stackGet$1;function stackHas$1(Ff){return this.__data__.has(Ff)}var _stackHas=stackHas$1;function isObject$2(Ff){var kh=typeof Ff;return Ff!=null&&(kh=="object"||kh=="function")}var isObject_1=isObject$2,baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(Ff){if(!isObject$1(Ff))return!1;var kh=baseGetTag$3(Ff);return kh==funcTag$1||kh==genTag||kh==asyncTag||kh==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var Ff=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}();function isMasked$1(Ff){return!!maskSrcKey&&maskSrcKey in Ff}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(Ff){if(Ff!=null){try{return funcToString$1.call(Ff)}catch{}try{return Ff+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(Ff){if(!isObject(Ff)||isMasked(Ff))return!1;var kh=isFunction$1(Ff)?reIsNative:reIsHostCtor;return kh.test(toSource$1(Ff))}var _baseIsNative=baseIsNative$1;function getValue$1(Ff,kh){return Ff==null?void 0:Ff[kh]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(Ff,kh){var x_=getValue(Ff,kh);return baseIsNative(x_)?x_:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(Ff){var kh=this.has(Ff)&&delete this.__data__[Ff];return this.size-=kh?1:0,kh}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(Ff){var kh=this.__data__;if(nativeCreate$2){var x_=kh[Ff];return x_===HASH_UNDEFINED$2?void 0:x_}return hasOwnProperty$7.call(kh,Ff)?kh[Ff]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(Ff){var kh=this.__data__;return nativeCreate$1?kh[Ff]!==void 0:hasOwnProperty$6.call(kh,Ff)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(Ff,kh){var x_=this.__data__;return this.size+=this.has(Ff)?0:1,x_[Ff]=nativeCreate&&kh===void 0?HASH_UNDEFINED$1:kh,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(Ff){var kh=typeof Ff;return kh=="string"||kh=="number"||kh=="symbol"||kh=="boolean"?Ff!=="__proto__":Ff===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(Ff,kh){var x_=Ff.__data__;return isKeyable(kh)?x_[typeof kh=="string"?"string":"hash"]:x_.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(Ff){var kh=getMapData$3(this,Ff).delete(Ff);return this.size-=kh?1:0,kh}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(Ff){return getMapData$2(this,Ff).get(Ff)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(Ff){return getMapData$1(this,Ff).has(Ff)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(Ff,kh){var x_=getMapData(this,Ff),$_=x_.size;return x_.set(Ff,kh),this.size+=x_.size==$_?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(Ff,kh){var x_=this.__data__;if(x_ instanceof ListCache$1){var $_=x_.__data__;if(!Map$2||$_.length<LARGE_ARRAY_SIZE-1)return $_.push([Ff,kh]),this.size=++x_.size,this;x_=this.__data__=new MapCache$1($_)}return x_.set(Ff,kh),this.size=x_.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(Ff){var kh=this.__data__=new ListCache(Ff);this.size=kh.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(Ff){return this.__data__.set(Ff,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(Ff){return this.__data__.has(Ff)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.__data__=new MapCache;++kh<x_;)this.add(Ff[kh])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length;++x_<$_;)if(kh(Ff[x_],x_,Ff))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(Ff,kh){return Ff.has(kh)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$3,eme=Ff.length,tme=kh.length;if(eme!=tme&&!(zP&&tme>eme))return!1;var nme=$P.get(Ff),rme=$P.get(kh);if(nme&&rme)return nme==kh&&rme==Ff;var ame=-1,ome=!0,ime=x_&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for($P.set(Ff,kh),$P.set(kh,Ff);++ame<eme;){var cme=Ff[ame],ume=kh[ame];if($_)var sme=zP?$_(ume,cme,ame,kh,Ff,$P):$_(cme,ume,ame,Ff,kh,$P);if(sme!==void 0){if(sme)continue;ome=!1;break}if(ime){if(!arraySome(kh,function(fme,lme){if(!cacheHas(ime,lme)&&(cme===fme||B_(cme,fme,x_,$_,$P)))return ime.push(lme)})){ome=!1;break}}else if(!(cme===ume||B_(cme,ume,x_,$_,$P))){ome=!1;break}}return $P.delete(Ff),$P.delete(kh),ome}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}var _mapToArray=mapToArray$1;function setToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(Ff,kh,x_,$_,B_,$P,zP){switch(x_){case dataViewTag$2:if(Ff.byteLength!=kh.byteLength||Ff.byteOffset!=kh.byteOffset)return!1;Ff=Ff.buffer,kh=kh.buffer;case arrayBufferTag$1:return!(Ff.byteLength!=kh.byteLength||!$P(new Uint8Array$1(Ff),new Uint8Array$1(kh)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$1(+Ff,+kh);case errorTag$1:return Ff.name==kh.name&&Ff.message==kh.message;case regexpTag$1:case stringTag$1:return Ff==kh+"";case mapTag$2:var eme=mapToArray;case setTag$2:var tme=$_&COMPARE_PARTIAL_FLAG$2;if(eme||(eme=setToArray),Ff.size!=kh.size&&!tme)return!1;var nme=zP.get(Ff);if(nme)return nme==kh;$_|=COMPARE_UNORDERED_FLAG,zP.set(Ff,kh);var rme=equalArrays$1(eme(Ff),eme(kh),$_,B_,$P,zP);return zP.delete(Ff),rme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(Ff)==symbolValueOf.call(kh)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(Ff,kh){for(var x_=-1,$_=kh.length,B_=Ff.length;++x_<$_;)Ff[B_+x_]=kh[x_];return Ff}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(Ff,kh,x_){var $_=kh(Ff);return isArray$2(Ff)?$_:arrayPush($_,x_(Ff))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=0,$P=[];++x_<$_;){var zP=Ff[x_];kh(zP,x_,Ff)&&($P[B_++]=zP)}return $P}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(Ff){return Ff==null?[]:(Ff=Object(Ff),arrayFilter(nativeGetSymbols(Ff),function(kh){return propertyIsEnumerable$1.call(Ff,kh)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(Ff,kh){for(var x_=-1,$_=Array(Ff);++x_<Ff;)$_[x_]=kh(x_);return $_}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(Ff){return isObjectLike$3(Ff)&&baseGetTag$2(Ff)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(Ff){return isObjectLike$2(Ff)&&hasOwnProperty$5.call(Ff,"callee")&&!propertyIsEnumerable.call(Ff,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(Ff,kh){var x_=_root,$_=stubFalse_1,B_=kh&&!kh.nodeType&&kh,$P=B_&&!0&&Ff&&!Ff.nodeType&&Ff,zP=$P&&$P.exports===B_,eme=zP?x_.Buffer:void 0,tme=eme?eme.isBuffer:void 0,nme=tme||$_;Ff.exports=nme})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(Ff,kh){var x_=typeof Ff;return kh=kh??MAX_SAFE_INTEGER$1,!!kh&&(x_=="number"||x_!="symbol"&&reIsUint.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(Ff){return typeof Ff=="number"&&Ff>-1&&Ff%1==0&&Ff<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(Ff){return isObjectLike$1(Ff)&&isLength$1(Ff.length)&&!!typedArrayTags[baseGetTag$1(Ff)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(Ff){return function(kh){return Ff(kh)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(Ff,kh){var x_=_freeGlobal,$_=kh&&!kh.nodeType&&kh,B_=$_&&!0&&Ff&&!Ff.nodeType&&Ff,$P=B_&&B_.exports===$_,zP=$P&&x_.process,eme=function(){try{var tme=B_&&B_.require&&B_.require("util").types;return tme||zP&&zP.binding&&zP.binding("util")}catch{}}();Ff.exports=eme})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(Ff,kh){var x_=isArray$1(Ff),$_=!x_&&isArguments(Ff),B_=!x_&&!$_&&isBuffer$1(Ff),$P=!x_&&!$_&&!B_&&isTypedArray$1(Ff),zP=x_||$_||B_||$P,eme=zP?baseTimes(Ff.length,String):[],tme=eme.length;for(var nme in Ff)(kh||hasOwnProperty$4.call(Ff,nme))&&!(zP&&(nme=="length"||B_&&(nme=="offset"||nme=="parent")||$P&&(nme=="buffer"||nme=="byteLength"||nme=="byteOffset")||isIndex(nme,tme)))&&eme.push(nme);return eme}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(Ff){var kh=Ff&&Ff.constructor,x_=typeof kh=="function"&&kh.prototype||objectProto$3;return Ff===x_}var _isPrototype=isPrototype$1;function overArg$1(Ff,kh){return function(x_){return Ff(kh(x_))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(Ff){if(!isPrototype(Ff))return nativeKeys(Ff);var kh=[];for(var x_ in Object(Ff))hasOwnProperty$3.call(Ff,x_)&&x_!="constructor"&&kh.push(x_);return kh}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(Ff){return Ff!=null&&isLength(Ff.length)&&!isFunction(Ff)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(Ff){return isArrayLike(Ff)?arrayLikeKeys(Ff):baseKeys(Ff)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(Ff){return baseGetAllKeys(Ff,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$1,eme=getAllKeys(Ff),tme=eme.length,nme=getAllKeys(kh),rme=nme.length;if(tme!=rme&&!zP)return!1;for(var ame=tme;ame--;){var ome=eme[ame];if(!(zP?ome in kh:hasOwnProperty$2.call(kh,ome)))return!1}var ime=$P.get(Ff),cme=$P.get(kh);if(ime&&cme)return ime==kh&&cme==Ff;var ume=!0;$P.set(Ff,kh),$P.set(kh,Ff);for(var sme=zP;++ame<tme;){ome=eme[ame];var fme=Ff[ome],lme=kh[ome];if($_)var hme=zP?$_(lme,fme,ome,kh,Ff,$P):$_(fme,lme,ome,Ff,kh,$P);if(!(hme===void 0?fme===lme||B_(fme,lme,x_,$_,$P):hme)){ume=!1;break}sme||(sme=ome=="constructor")}if(ume&&!sme){var pme=Ff.constructor,gme=kh.constructor;pme!=gme&&"constructor"in Ff&&"constructor"in kh&&!(typeof pme=="function"&&pme instanceof pme&&typeof gme=="function"&&gme instanceof gme)&&(ume=!1)}return $P.delete(Ff),$P.delete(kh),ume}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(Ff){var kh=baseGetTag(Ff),x_=kh==objectTag$1?Ff.constructor:void 0,$_=x_?toSource(x_):"";if($_)switch($_){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return kh});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(Ff,kh,x_,$_,B_,$P){var zP=isArray(Ff),eme=isArray(kh),tme=zP?arrayTag:getTag(Ff),nme=eme?arrayTag:getTag(kh);tme=tme==argsTag?objectTag:tme,nme=nme==argsTag?objectTag:nme;var rme=tme==objectTag,ame=nme==objectTag,ome=tme==nme;if(ome&&isBuffer(Ff)){if(!isBuffer(kh))return!1;zP=!0,rme=!1}if(ome&&!rme)return $P||($P=new Stack),zP||isTypedArray(Ff)?equalArrays(Ff,kh,x_,$_,B_,$P):equalByTag(Ff,kh,tme,x_,$_,B_,$P);if(!(x_&COMPARE_PARTIAL_FLAG)){var ime=rme&&hasOwnProperty$1.call(Ff,"__wrapped__"),cme=ame&&hasOwnProperty$1.call(kh,"__wrapped__");if(ime||cme){var ume=ime?Ff.value():Ff,sme=cme?kh.value():kh;return $P||($P=new Stack),B_(ume,sme,x_,$_,$P)}}return ome?($P||($P=new Stack),equalObjects(Ff,kh,x_,$_,B_,$P)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(Ff,kh,x_,$_,B_){return Ff===kh?!0:Ff==null||kh==null||!isObjectLike(Ff)&&!isObjectLike(kh)?Ff!==Ff&&kh!==kh:baseIsEqualDeep(Ff,kh,x_,$_,baseIsEqual$1,B_)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(Ff,kh){return baseIsEqual(Ff,kh)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
397
+ `,useInsertStyles=function(){var kh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,x_=React.useContext(IconContext),$_=x_.csp;React.useEffect(function(){updateCSS(kh,"@ant-design-icons",{prepend:!0,csp:$_})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(Ff){var kh=Ff.primaryColor,x_=Ff.secondaryColor;twoToneColorPalette.primaryColor=kh,twoToneColorPalette.secondaryColor=x_||getSecondaryColor(kh),twoToneColorPalette.calculated=!!x_}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(kh){var x_=kh.icon,$_=kh.className,B_=kh.onClick,$P=kh.style,zP=kh.primaryColor,eme=kh.secondaryColor,tme=_objectWithoutProperties(kh,_excluded$1),nme=twoToneColorPalette;if(zP&&(nme={primaryColor:zP,secondaryColor:eme||getSecondaryColor(zP)}),useInsertStyles(),warning(isIconDefinition(x_),"icon should be icon definiton, but got ".concat(x_)),!isIconDefinition(x_))return null;var rme=x_;return rme&&typeof rme.icon=="function"&&(rme=_objectSpread2(_objectSpread2({},rme),{},{icon:rme.icon(nme.primaryColor,nme.secondaryColor)})),generate(rme.icon,"svg-".concat(rme.name),_objectSpread2({className:$_,onClick:B_,style:$P,"data-icon":rme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tme))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(Ff){var kh=normalizeTwoToneColors(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return IconBase.setTwoToneColors({primaryColor:$_,secondaryColor:B_})}function getTwoToneColor(){var Ff=IconBase.getTwoToneColors();return Ff.calculated?[Ff.primaryColor,Ff.secondaryColor]:Ff.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.className,$_=Ff.icon,B_=Ff.spin,$P=Ff.rotate,zP=Ff.tabIndex,eme=Ff.onClick,tme=Ff.twoToneColor,nme=_objectWithoutProperties(Ff,_excluded),rme=React__namespace.useContext(IconContext),ame=rme.prefixCls,ome=ame===void 0?"anticon":ame,ime=rme.rootClassName,cme=classNames(ime,ome,_defineProperty(_defineProperty({},"".concat(ome,"-").concat($_.name),!!$_.name),"".concat(ome,"-spin"),!!B_||$_.name==="loading"),x_),ume=zP;ume===void 0&&eme&&(ume=-1);var sme=$P?{msTransform:"rotate(".concat($P,"deg)"),transform:"rotate(".concat($P,"deg)")}:void 0,fme=normalizeTwoToneColors(tme),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":$_.name},nme),{},{ref:kh,tabIndex:ume,onClick:eme,className:cme}),React__namespace.createElement(IconBase,{icon:$_,primaryColor:hme,secondaryColor:pme,style:sme}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:PlusOutlined$1}))},RefIcon$1=React__namespace.forwardRef(PlusOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="PlusOutlined");var UploadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},UploadOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,zP=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(Ff,kh,x_,$_,B_,$P,eme=>({value:eme[kh],title:eme[x_],key:eme[kh],disabled:eme[kh]===zP}))}function constructTree(Ff,kh,x_,$_,B_,$P,zP){if(!Array.isArray(Ff)||Ff.length===0)return[];const eme=Ff.map(tme=>({...tme,...zP(tme)}));return eme.filter(tme=>{const nme=eme.filter(rme=>tme[kh]===rme[$_]);return tme[B_]=nme.length>0?nme:[],tme[$_]===$P})}const TreeSelect=Ff=>{let{request:kh,title:x_,disabledValue:$_,callError:B_,...$P}=Ff;const[zP,eme]=React.useState(!1),[tme,nme]=React.useState([]);React.useEffect(()=>{rme()},[]);const rme=async()=>{if(kh&&typeof kh=="function"){var ame;const ome=await kh();if(ome.code>0){B_&&typeof B_=="function"&&B_(ome.message);return}let ime=handleTree(((ame=ome.data)===null||ame===void 0?void 0:ame.list)||ome.data||[],"id",x_||"title",$P.parentId||"parentId","children",0,$_);ime=[{value:0,title:"根节点",children:ime}],$P.treeData=ime,nme(ime)}$P.treeData&&nme($P.treeData),eme(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...$P,children:zP&&jsxRuntimeExports.jsx(TreeSelect$1,{...$P,treeData:tme,treeDefaultExpandAll:!0,style:{width:"100%"}})})},Select=Ff=>{let{request:kh,option_label:x_="label",option_value:$_="id",disabledValue:B_,callError:$P,options:zP,addWrapper:eme=!0,...tme}=Ff;const[nme,rme]=React.useState([]);React.useEffect(()=>{ame()},[]);const ame=async()=>{if(kh&&typeof kh=="function"){var ome;const ime=await kh();if(ime.code>0){$P&&typeof $P=="function"&&$P(ime.message);return}let cme=((ome=ime.data)===null||ome===void 0?void 0:ome.list)||ime.data;Array.isArray(cme)&&cme.length>0&&rme(cme.map(ume=>({label:ume[x_],value:ume[$_]})))}zP&&zP.length>0&&rme(zP)};return eme?jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})},SingleSelect=Ff=>{let{...kh}=Ff;return jsxRuntimeExports.jsx(Select,{...kh,mode:"single"})},MultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);return React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]),jsxRuntimeExports.jsx(Select,{...$_,onChange:kh,mode:"multiple",value:B_})},WithSingleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState("");React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),$P(tme.label)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"single"})},WithMultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}Array.isArray(x_)&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),tme.map(nme=>nme.label),$P(tme)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"multiple"})},SearchSelect=Ff=>{let{addWrapper:kh=!0,value:x_,type:$_,defaultValue:B_,onChange:$P,option_label:zP,option_value:eme,option_search:tme,options:nme,request:rme,requestParams:ame,callError:ome,...ime}=Ff;const[cme,ume]=React.useState([]),[sme,fme]=React.useState(!1);React.useEffect(()=>{lme(ame)},[ame]);const lme=async yme=>{let mme=null;if(rme&&typeof rme=="function"){const bme=await pme(yme);bme&&Array.isArray(bme)&&(mme=x_?bme.find(Sme=>Sme.value==x_):null)}nme&&nme.length>0&&(mme=x_?nme.find(bme=>bme.value==x_):null,ume(nme)),mme&&$P(mme)},hme=lodashExports.debounce(async yme=>{const mme={...ame};mme[tme]=yme,await pme(mme)},200),pme=async yme=>{try{var mme;fme(!0);const bme=await rme(yme);if(bme.code>0){ome&&typeof ome=="function"&&ome(bme.message);return}let Sme=((mme=bme.data)===null||mme===void 0?void 0:mme.list)||bme.data;return Array.isArray(Sme)?(Sme=Sme.map(_me=>({..._me,label:_me[zP],value:_me[eme]})),ume(Sme)):ume([]),Sme}catch(bme){console.error("fetchOptions",bme)}finally{fme(!1)}},gme=yme=>{const mme=cme.find(bme=>bme.value===yme);$P(mme)};return kh?jsxRuntimeExports.jsx(BaseWrapper,{...ime,children:jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})}):jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})},Custom=React.forwardRef((Ff,kh)=>{let{value:x_,onChange:$_,...B_}=Ff;const $P=React.useRef(0),zP=()=>{$P.current++,$_($P.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsxs("div",{ref:kh,children:["form-set-value:",x_]}),jsxRuntimeExports.jsx(Button$1,{onClick:zP,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(Ff){console.error("formula error",Ff)}return result.toString()},LayoutFormRow=Ff=>{let{children:kh,layout:x_}=Ff;x_=x_||"1";const $_=zP=>{const eme=zP.split(",").map(Number),tme=24;return eme.map(nme=>nme/eme.reduce((rme,ame)=>rme+ame)*tme)},B_=React.useMemo(()=>$_(x_),[x_]);console.log("colSpans",B_);const $P=React.useMemo(()=>React.Children.toArray(kh).map((zP,eme)=>{const tme=zP.props,nme=(tme==null?void 0:tme.componentId)||(tme==null?void 0:tme.__id);return nme?(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:nme,rules:[{required:tme.isRequired,message:"".concat(tme.title,"不能为空!")}],children:zP},"".concat(nme,"-form-item"))},eme):(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:zP},eme)}),[kh,B_]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:$P})},FormGroupTitle=Ff=>{let{title:kh}=Ff;return kh?jsxRuntimeExports.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:jsxRuntimeExports.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:kh})}):null};function batchElements(Ff,kh){const x_=[];let $_=[];const B_=(zP,eme)=>{const tme=zP-eme.length;eme.push(...new Array(tme).fill(React.createElement("div")))};for(const zP of Ff){var $P;const{_componentName:eme}=(zP==null?void 0:zP.props)||{},tme=(($P=zP.type)===null||$P===void 0?void 0:$P.displayName)||eme;tme&&tme.startsWith("Layout.")?($_.length>0&&(B_(kh,$_),x_.push($_),$_=[]),x_.push([zP])):($_.push(zP),$_.length===kh&&(x_.push($_),$_=[]))}return $_.length>0&&(B_(kh,$_),x_.push($_)),x_}const FormContainer=React.forwardRef((Ff,kh)=>{let{cols:x_=1,children:$_}=Ff;const[B_]=Form.useForm(),[$P,zP]=React.useState(null),eme=React.useRef(null);React.useImperativeHandle(kh,()=>({formRef:B_,initializeFieldVisibility:nme}),[]),React.useEffect(()=>{tme(),zP(ume())},[$_,x_]);const tme=()=>{const sme=[];function fme(hme){var pme,gme,yme=((pme=hme.type)===null||pme===void 0?void 0:pme.displayName)||((gme=hme.props)===null||gme===void 0?void 0:gme._componentName);const{props:mme}=hme;yme&&yme.startsWith("Field.")&&sme.push(hme),mme!=null&&mme.children&&React.Children.toArray(mme==null?void 0:mme.children).forEach(Sme=>fme(Sme))}eme.current=new Map;const lme=React.Children.toArray($_);for(let hme=0;hme<lme.length;hme++){const pme=lme[hme];fme(pme)}sme.forEach(hme=>{const{componentId:pme,__id:gme,...yme}=hme==null?void 0:hme.props,mme=pme||gme;eme.current.set(mme,{children:lme.filter(bme=>{var Sme;return bme.props.withId===mme||((Sme=bme.props.withIds)===null||Sme===void 0?void 0:Sme.some(_me=>mme==_me||_me.startsWith(mme+".")))}),show:!0})}),console.log("dependencyMap",eme.current),nme()},nme=function(){let sme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fme=B_.getFieldsValue();for(let lme of eme.current.keys())rme(lme,fme);sme&&zP(ume())},rme=(sme,fme)=>{let lme=!1;return eme.current.has(sme)&&eme.current.get(sme).children.forEach(pme=>{pme.props.withFunc&&typeof pme.props.withFunc=="function"&&(lme=ame(fme,pme)),pme.props.withFill&&ome(fme,pme)}),lme},ame=(sme,fme)=>{let lme=!1;const hme=fme.props.withFunc(sme),pme=fme.props.componentId||fme.props.__id;if(eme.current.has(pme)){const gme=eme.current.get(pme);gme.show!==hme&&(gme.show=hme,eme.current.set(pme,gme),lme=!0)}return lme},ome=async(sme,fme)=>{const lme=fme.props.withFill,hme=fme.props.withDataFetch;console.log("withFill",lme),console.log("fieldValues",sme),console.log("child",fme);let pme=[];if(lme!=null&&lme.withData&&(lme==null?void 0:lme.withData.length)>0&&hme&&typeof hme=="function")for(let yme=0;yme<(lme==null?void 0:lme.withData.length);yme++){const mme=lme==null?void 0:lme.withData[yme];let bme={};bme.tableName=mme.withTable.table_name,bme.filter={};for(let _me=0;_me<mme.withCondition.length;_me++){const{value:Cme,column:Eme}=mme.withCondition[_me];bme.filter[Eme.column_name]=ime(Cme.group_key,Cme.field_key,sme,pme)}const Sme=await hme(bme);Sme.code===0&&Sme.data.list&&pme.push({id:mme.id,data:Sme.data.list})}let gme;if(lme.value&&lme.value.length>0&&(gme=lme.value.map(yme=>{let mme="";const{insert:bme,attributes:Sme}=yme;return typeof bme!="string"?bme!=null&&bme.span&&Sme&&Sme.tagKey&&Sme.id&&(mme=ime(Sme.tagKey,Sme.id,sme,pme),Array.isArray(mme)?mme=JSON.stringify(mme):mme&&(mme='"'.concat(mme,'"'))):mme=bme,mme})),console.log("formula",gme),gme&&gme.length>0){const yme=fme.props.componentId||fme.props.__id;B_.setFieldValue(yme,evalFormula(gme))}},ime=(sme,fme,lme,hme)=>{let pme="";if(sme=="fieldsValue")if(fme.indexOf(".")>=0){const[yme,mme]=fme.split("."),bme=(lme==null?void 0:lme[yme])||[];Array.isArray(bme)?pme=bme.map(Sme=>(Sme==null?void 0:Sme[mme])||""):pme=(bme==null?void 0:bme[mme])||""}else pme=(lme==null?void 0:lme[fme])||"";else{let yme=hme.find(mme=>mme.id===sme);if(yme&&yme.data&&yme.data.length>0){var gme;pme=((gme=yme.data[0])===null||gme===void 0?void 0:gme[fme])||""}}return pme},cme=lodashExports.debounce((sme,fme)=>{const lme=B_.getFieldsValue();let hme=!1;sme.forEach(pme=>{pme.name&&pme.name.length>0&&(hme=rme(pme.name[0],lme))}),hme&&zP(ume())},200),ume=()=>{const sme=React.Children.toArray($_);return batchElements(sme.filter(lme=>{const hme=lme.props.componentId||lme.props.__id;return eme.current.has(hme)&&eme.current.get(hme).show}),x_).map((lme,hme)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:lme.map((pme,gme)=>{var yme;const{componentId:mme,__id:bme,_componentName:Sme,..._me}=pme.props,Cme=((yme=pme.type)===null||yme===void 0?void 0:yme.displayName)||Sme,Eme=mme||bme,Tme=Cme&&Cme.startsWith("Layout.");return jsxRuntimeExports.jsx(Col,{span:Tme?24:24/lme.length,style:{marginBottom:0},children:Tme?pme:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:Eme,rules:[{required:_me.isRequired,message:"".concat(_me.title,"不能为空!")}],children:pme})},Eme||"col-".concat(gme))})},"row-".concat(hme)))};return jsxRuntimeExports.jsx(Form,{form:B_,className:"form-container fp-6 fw-full fh-full box-border overflow-auto",onFieldsChange:cme,children:$P})});function withWrap(Ff){return React.forwardRef((kh,x_)=>jsxRuntimeExports.jsx(Ff,{...kh,ref:x_,forwardedRef:x_}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:kh,...x_}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}}const FormContainerWrapper=withWrap(Ff=>{let{forwardedRef:kh,...x_}=Ff;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}),CheckboxTree=Ff=>{let{request:kh,value:x_,onChange:$_,callError:B_,disabledValue:$P,addRoot:zP=!0,title:eme,...tme}=Ff;const[nme,rme]=React.useState(!1),[ame,ome]=React.useState([]);React.useEffect(()=>{ime()},[]),React.useEffect(()=>{if(console.log("CheckboxTree value ",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}Array.isArray(x_)&&fme(x_)},[x_]);const ime=async()=>{if(kh&&typeof kh=="function"){var Sme;const _me=await kh();if(_me.code>0){B_&&typeof B_=="function"&&B_(_me.message);return}let Cme=handleTree(((Sme=_me.data)===null||Sme===void 0?void 0:Sme.list)||_me.data||[],"id",eme||"title",(tme==null?void 0:tme.parentId)||"parentId","children",0,$P);zP&&(Cme=[{value:0,title:"根节点",children:Cme}]),tme.treeData=Cme,console.log("treeData",Cme),ome(Cme)}tme.treeData&&ome(tme.treeData),rme(!0)},[cme,ume]=React.useState([]),[sme,fme]=React.useState([]),[lme,hme]=React.useState([]),[pme,gme]=React.useState(!0),yme=Sme=>{console.log("onExpand",Sme),ume(Sme),gme(!1)},mme=Sme=>{console.log("onCheck",Sme),fme(Sme),$_(Sme)},bme=(Sme,_me)=>{console.log("onSelect",_me),hme(Sme)};return jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:yme,onCheck:mme,onSelect:bme,expandedKeys:cme,autoExpandParent:pme,checkedKeys:sme,selectedKeys:lme,treeData:ame})})},Checkbox=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1,{...Ff})}),CheckboxGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...Ff})}),RadioGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Radio.Group,{...Ff})}),UploadFile=Ff=>{let{value:kh,maxCount:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(kh){if(typeof kh=="string")try{kh=JSON.parse(kh),$_(kh)}catch{}console.log("value",kh),Array.isArray(kh)&&zP(kh)}},[kh]),x_=x_||9;const[$P,zP]=React.useState([]),eme=tme=>{let{fileList:nme}=tme;console.log("newFileList",nme),nme=nme.map(rme=>(rme.status=="done"&&rme.response&&(rme.url=rme.response),rme)),$_(nme.map(rme=>({uid:rme.uid,name:rme.name,status:rme.status,url:rme.url||rme.response||"",error:rme.error}))),zP(nme)};return jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(Upload,{...B_,listType:"text",maxCount:x_,onChange:eme,fileList:$P,children:!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[jsxRuntimeExports.jsx(RefIcon,{}),"点击上传文件"]})})})},UploadImage=Ff=>{let{maxCount:kh,value:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(x_){if(console.log("value",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}let pme=[];if(Array.isArray(x_))for(let gme=0;gme<x_.length;gme++){let yme=x_[gme];var hme=ime.current.find(mme=>mme.uid===yme.uid);!hme||(hme.version||0)<(yme.version||0)?pme.push(yme):pme.push(hme)}zP(pme)}},[x_]),kh=kh||9;const[$P,zP]=React.useState([]),[eme,tme]=React.useState(""),[nme,rme]=React.useState(0),[ame,ome]=React.useState(!1),ime=React.useRef([]),cme=hme=>new Promise((pme,gme)=>{const yme=new FileReader;yme.readAsDataURL(hme),yme.onload=()=>pme(yme.result),yme.onerror=mme=>gme(mme)}),ume=async(hme,pme)=>{!hme.url&&!hme.preview&&(hme.preview=await cme(hme.originFileObj)),tme(hme.url||hme.preview),rme(pme),ome(!0)},sme=async(hme,pme)=>{B_!=null&&B_.disabled||zP($P.filter((gme,yme)=>yme!==pme))},fme=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[jsxRuntimeExports.jsx(RefIcon$1,{}),jsxRuntimeExports.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),lme=hme=>{let{fileList:pme}=hme,gme=[];for(let bme=0;bme<pme.length;bme++){var yme=pme[bme];yme.version=new Date().getTime();var mme=ime.current.find(Sme=>Sme.uid===yme.uid);console.log("oldfile",JSON.parse(JSON.stringify(mme||{}))),mme&&mme.status!="uploading"?gme.push(mme):(yme.status=="done"&&yme.response&&(yme.url=yme.response),gme.push(yme))}ime.current=gme,zP(gme),$_(gme.map(bme=>({uid:bme.uid,name:bme.name,status:bme.status,url:bme.url||bme.response||"",error:bme.error,version:bme.version||0})))};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...B_,itemRender:(hme,pme,gme)=>{console.log("file",pme);let yme=gme.findIndex(mme=>mme.uid===pme.uid);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(pme.status=="error"?" fborder-red-500":""),children:[jsxRuntimeExports.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[pme.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{ume(pme,yme)},className:"hover:ftext-gray-200"}),!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{sme(pme,yme)},className:"hover:ftext-gray-200"})]}),pme.status=="uploading"&&jsxRuntimeExports.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:jsxRuntimeExports.jsx(Spin,{})}),jsxRuntimeExports.jsx("img",{src:pme.url||pme.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(pme.uid))})},listType:"picture-card",fileList:$P,maxCount:kh,onPreview:ume,onChange:lme,children:$P.length>=kh||B_!=null&&B_.disabled?null:fme})}),eme&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:ame,current:nme,onVisibleChange:hme=>ome(hme),onChange:hme=>{rme(hme)}},children:$P.map((hme,pme)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:hme.url})}))})]})},Switch=Ff=>{let{value:kh,...x_}=Ff;const[$_,B_]=React.useState(!1);return React.useEffect(()=>{let $P=!1;typeof kh=="boolean"?$P=kh:typeof kh=="string"?$P=kh=="1"||kh=="true":typeof kh=="number"&&($P=kh==1),B_($P),x_==null||x_.onChange($P)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Switch$1,{...x_,value:$_})})};var zhCn={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_(dayjs_minExports)})(commonjsGlobal,function(x_){function $_(zP){return zP&&typeof zP=="object"&&"default"in zP?zP:{default:zP}}var B_=$_(x_),$P={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(zP,eme){return eme==="W"?zP+"周":zP+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(zP,eme){var tme=100*zP+eme;return tme<600?"凌晨":tme<900?"早上":tme<1100?"上午":tme<1300?"中午":tme<1800?"下午":"晚上"}};return B_.default.locale($P,null,!0),$P})})(zhCn);var locale$2={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},locale={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$2),timePickerLocale:Object.assign({},locale$1)};locale.lang.ok="确定";var updateLocale$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){B_.updateLocale=function($P,zP){var eme=B_.Ls[$P];if(eme)return(zP?Object.keys(zP):[]).forEach(function(tme){eme[tme]=zP[tme]}),eme}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=Ff=>{let{datetype:kh,value:x_,onChange:$_,...B_}=Ff;kh=kh||"date";const[$P,zP]=React.useState(B_==null?void 0:B_.picker),[eme,tme]=React.useState(B_==null?void 0:B_.format),[nme,rme]=React.useState(null),[ame,ome]=React.useState(!1),[ime,cme]=React.useState(!1);React.useEffect(()=>{if(x_){const sme=dayjs(x_);rme(sme)}},[x_,eme,$P]);const ume=(sme,fme)=>{$_(fme)};return React.useEffect(()=>{switch(zP("date"),ome(!1),kh){case"date":zP("date"),tme("YYYY-MM-DD"),cme(!1);break;case"datetime":ome(!0),zP("datetime"),tme("YYYY-MM-DD HH:mm:ss"),cme(!0);break;case"month":zP("month"),cme(!1);break;case"year":zP("year"),cme(!1);break}},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...B_,picker:$P,format:eme,style:{width:"100%"},onChange:ume,value:nme,showTime:ame,needConfirm:ime})})},TableCol=Ff=>{let{children:kh,width:x_,...$_}=Ff;const[B_,$P]=React.useState(0);return React.useEffect(()=>{$P(x_)},[x_]),jsxRuntimeExports.jsx("div",{className:"fflex-1",style:{minWidth:"".concat(B_,"px")},...$_,children:kh})},TableAction=Ff=>{let{label:kh,subTableIndex:x_,children:$_,...B_}=Ff;return jsxRuntimeExports.jsx("div",{className:"fw-16",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col",children:[kh&&x_===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:kh}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 ",children:$_})]})})},Table=Ff=>{let{children:kh,value:x_,onChange:$_,...B_}=Ff;const[$P,zP]=React.useState([{}]),eme=React.useRef($P),tme=React.useRef(new Map),[nme,rme]=React.useState({}),ame=B_.componentId||B_.__id,ome=mme=>{zP(mme),eme.current=mme};React.useEffect(()=>{if(console.log("value useEffect ",JSON.stringify(x_)),x_&&typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}x_&&Array.isArray(x_)&&!lodashExports.isEqual(eme.current,x_)&&(console.log("useEffect setRows"),ome(x_))},[x_]),React.useEffect(()=>{console.log("children useEffect ",kh),ime()},[kh]);const ime=React.useCallback(()=>{tme.current.clear();const mme=React.Children.toArray(kh);mme.forEach(bme=>{const{componentId:Sme,__id:_me,...Cme}=bme.props,Eme="".concat(ame,".").concat(Sme||_me);tme.current.set(Eme,{children:mme.filter(Tme=>{var Rme;return Tme.props.withId===Eme||((Rme=Tme.props.withIds)===null||Rme===void 0?void 0:Rme.includes(Eme))}),show:!0})}),ume()},[kh,ame]),cme=React.useCallback(mme=>{const bme={};for(let Sme in mme)bme["".concat(ame,".").concat(Sme)]=mme[Sme]||"";return bme},[ame]),ume=React.useCallback(()=>{$P.forEach((mme,bme)=>{const Sme=cme(mme);for(let _me of tme.current.keys())sme(_me,Sme,bme)})},[$P,cme]),sme=React.useCallback((mme,bme,Sme)=>{let _me=!1;const Cme="".concat(ame,".").concat(mme);return tme.current.has(Cme)&&tme.current.get(Cme).children.forEach(Tme=>{Tme.props.withFunc&&typeof Tme.props.withFunc=="function"&&(_me=fme(bme,Tme)),Tme.props.withFill&&lme(bme,Tme,Sme)}),_me},[ame,$P]),fme=React.useCallback((mme,bme)=>{let Sme=!1;const _me=bme.props.withFunc(mme),Cme=bme.props.componentId||bme.props.__id;if(tme.current.has(Cme)){const Eme=tme.current.get(Cme);Eme.show!==_me&&(Eme.show=_me,tme.current.set(Cme,Eme),Sme=!0)}return Sme},[]),lme=React.useCallback(async(mme,bme,Sme)=>{const _me=bme.props.withFill,Cme=bme.props.withDataFetch;let Eme=[];if(_me!=null&&_me.withData&&(_me==null?void 0:_me.withData.length)>0&&Cme&&typeof Cme=="function")for(let Rme=0;Rme<(_me==null?void 0:_me.withData.length);Rme++){const Pme=_me==null?void 0:_me.withData[Rme];let $me={};$me.tableName=Pme.withTable.table_name,$me.filter={};for(let Mme=0;Mme<Pme.withCondition.length;Mme++){const{value:Nme,column:Ime}=Pme.withCondition[Mme];$me.filter[Ime.column_name]=hme(Nme.group_key,Nme.field_key,mme,Eme)}const Dme=await Cme($me);Dme.code===0&&Dme.data.list&&Eme.push({id:Pme.id,data:Dme.data.list})}let Tme;if(_me.value&&_me.value.length>0&&(Tme=_me.value.map(Rme=>{let Pme="";const{insert:$me,attributes:Dme}=Rme;return typeof $me!="string"?$me!=null&&$me.span&&Dme&&Dme.tagKey&&Dme.id&&(Pme=hme(Dme.tagKey,Dme.id,mme,Eme),Pme&&(Pme='"'.concat(Pme,'"'))):Pme=$me,Pme})),console.log("formula",Tme),Tme&&Tme.length>0){const Rme=bme.props.componentId||bme.props.__id,Pme=evalFormula(Tme);console.log("formulaResult",Pme),console.log("handleFieldsWithFill setRows");const $me=[...$P];$me[Sme][Rme]=Pme,ome($me)}},[$P]),hme=React.useCallback((mme,bme,Sme,_me)=>{let Cme="";if(mme==="fieldsValue")Cme=(Sme==null?void 0:Sme[bme])||"";else{let Tme=_me.find(Rme=>Rme.id===mme);if(Tme&&Tme.data&&Tme.data.length>0){var Eme;Cme=((Eme=Tme.data[0])===null||Eme===void 0?void 0:Eme[bme])||""}}return Cme},[]),pme=React.useCallback((mme,bme,Sme)=>{var _me;const Cme=[...$P];Cme[mme]={...Cme[mme],[bme]:(Sme==null||(_me=Sme.target)===null||_me===void 0?void 0:_me.value)||""},console.log("handleInputChange setRows"),ome(Cme),rme({rowIndex:mme,identifier:bme,value:cme(Cme[mme])})},[$P,sme,cme,$_]),gme=mme=>{const bme=[...$P];bme.splice(mme,1),console.log("handleDeleteRow setRows"),ome(bme)},yme=()=>{console.log("addRow setRows"),ome([...$P,{}])};return React.useEffect(()=>{console.log("rows changed rows",JSON.stringify(eme.current)),console.log("rows changed value",JSON.stringify(x_)),!lodashExports.isEqual(eme.current,x_)&&(console.log("noreq"),typeof $_=="function"&&$_(eme.current))},[$P]),React.useEffect(()=>{nme&&nme.identifier&&sme(nme.identifier,nme.value,nme.rowIndex)},[nme]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fw-full fmin-h-20 foverflow-x-auto",children:$P.map((mme,bme)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b finline-flex fflex-wrap fmin-w-full",style:{width:"max-content"},children:[React.Children.map(kh,(Sme,_me)=>{var Cme;const Eme=(Sme==null||(Cme=Sme.props)===null||Cme===void 0?void 0:Cme.__id)||_me;return(mme==null?void 0:mme[Eme])===void 0&&(mme[Eme]=""),jsxRuntimeExports.jsx(TableCol,{width:100,children:React.cloneElement(Sme,{key:"row_".concat(bme,"_child_").concat(_me),subTable:!0,subTableIndex:bme,value:mme[Eme]||"",onChange:Tme=>pme(bme,Eme,Tme)})},"row_".concat(bme,"_col_").concat(_me))}),jsxRuntimeExports.jsx(TableAction,{subTable:!0,subTableIndex:bme,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>gme(bme)})},"row_".concat(bme,"_action"))]},bme))}),jsxRuntimeExports.jsx(Button$1,{onClick:yme,className:"fmy-2",children:"新增一行"})]})},OptionSetter=Ff=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(Ff,kh){return Ff===kh||Ff!==Ff&&kh!==kh}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(Ff,kh){for(var x_=Ff.length;x_--;)if(eq$2(Ff[x_][0],kh))return x_;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(Ff){var kh=this.__data__,x_=assocIndexOf$3(kh,Ff);if(x_<0)return!1;var $_=kh.length-1;return x_==$_?kh.pop():splice.call(kh,x_,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(Ff){var kh=this.__data__,x_=assocIndexOf$2(kh,Ff);return x_<0?void 0:kh[x_][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(Ff){return assocIndexOf$1(this.__data__,Ff)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(Ff,kh){var x_=this.__data__,$_=assocIndexOf(x_,Ff);return $_<0?(++this.size,x_.push([Ff,kh])):x_[$_][1]=kh,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(Ff){var kh=this.__data__,x_=kh.delete(Ff);return this.size=kh.size,x_}var _stackDelete=stackDelete$1;function stackGet$1(Ff){return this.__data__.get(Ff)}var _stackGet=stackGet$1;function stackHas$1(Ff){return this.__data__.has(Ff)}var _stackHas=stackHas$1;function isObject$2(Ff){var kh=typeof Ff;return Ff!=null&&(kh=="object"||kh=="function")}var isObject_1=isObject$2,baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(Ff){if(!isObject$1(Ff))return!1;var kh=baseGetTag$3(Ff);return kh==funcTag$1||kh==genTag||kh==asyncTag||kh==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var Ff=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}();function isMasked$1(Ff){return!!maskSrcKey&&maskSrcKey in Ff}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(Ff){if(Ff!=null){try{return funcToString$1.call(Ff)}catch{}try{return Ff+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(Ff){if(!isObject(Ff)||isMasked(Ff))return!1;var kh=isFunction$1(Ff)?reIsNative:reIsHostCtor;return kh.test(toSource$1(Ff))}var _baseIsNative=baseIsNative$1;function getValue$1(Ff,kh){return Ff==null?void 0:Ff[kh]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(Ff,kh){var x_=getValue(Ff,kh);return baseIsNative(x_)?x_:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(Ff){var kh=this.has(Ff)&&delete this.__data__[Ff];return this.size-=kh?1:0,kh}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(Ff){var kh=this.__data__;if(nativeCreate$2){var x_=kh[Ff];return x_===HASH_UNDEFINED$2?void 0:x_}return hasOwnProperty$7.call(kh,Ff)?kh[Ff]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(Ff){var kh=this.__data__;return nativeCreate$1?kh[Ff]!==void 0:hasOwnProperty$6.call(kh,Ff)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(Ff,kh){var x_=this.__data__;return this.size+=this.has(Ff)?0:1,x_[Ff]=nativeCreate&&kh===void 0?HASH_UNDEFINED$1:kh,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(Ff){var kh=typeof Ff;return kh=="string"||kh=="number"||kh=="symbol"||kh=="boolean"?Ff!=="__proto__":Ff===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(Ff,kh){var x_=Ff.__data__;return isKeyable(kh)?x_[typeof kh=="string"?"string":"hash"]:x_.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(Ff){var kh=getMapData$3(this,Ff).delete(Ff);return this.size-=kh?1:0,kh}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(Ff){return getMapData$2(this,Ff).get(Ff)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(Ff){return getMapData$1(this,Ff).has(Ff)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(Ff,kh){var x_=getMapData(this,Ff),$_=x_.size;return x_.set(Ff,kh),this.size+=x_.size==$_?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(Ff,kh){var x_=this.__data__;if(x_ instanceof ListCache$1){var $_=x_.__data__;if(!Map$2||$_.length<LARGE_ARRAY_SIZE-1)return $_.push([Ff,kh]),this.size=++x_.size,this;x_=this.__data__=new MapCache$1($_)}return x_.set(Ff,kh),this.size=x_.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(Ff){var kh=this.__data__=new ListCache(Ff);this.size=kh.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(Ff){return this.__data__.set(Ff,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(Ff){return this.__data__.has(Ff)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.__data__=new MapCache;++kh<x_;)this.add(Ff[kh])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length;++x_<$_;)if(kh(Ff[x_],x_,Ff))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(Ff,kh){return Ff.has(kh)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$3,eme=Ff.length,tme=kh.length;if(eme!=tme&&!(zP&&tme>eme))return!1;var nme=$P.get(Ff),rme=$P.get(kh);if(nme&&rme)return nme==kh&&rme==Ff;var ame=-1,ome=!0,ime=x_&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for($P.set(Ff,kh),$P.set(kh,Ff);++ame<eme;){var cme=Ff[ame],ume=kh[ame];if($_)var sme=zP?$_(ume,cme,ame,kh,Ff,$P):$_(cme,ume,ame,Ff,kh,$P);if(sme!==void 0){if(sme)continue;ome=!1;break}if(ime){if(!arraySome(kh,function(fme,lme){if(!cacheHas(ime,lme)&&(cme===fme||B_(cme,fme,x_,$_,$P)))return ime.push(lme)})){ome=!1;break}}else if(!(cme===ume||B_(cme,ume,x_,$_,$P))){ome=!1;break}}return $P.delete(Ff),$P.delete(kh),ome}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}var _mapToArray=mapToArray$1;function setToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(Ff,kh,x_,$_,B_,$P,zP){switch(x_){case dataViewTag$2:if(Ff.byteLength!=kh.byteLength||Ff.byteOffset!=kh.byteOffset)return!1;Ff=Ff.buffer,kh=kh.buffer;case arrayBufferTag$1:return!(Ff.byteLength!=kh.byteLength||!$P(new Uint8Array$1(Ff),new Uint8Array$1(kh)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$1(+Ff,+kh);case errorTag$1:return Ff.name==kh.name&&Ff.message==kh.message;case regexpTag$1:case stringTag$1:return Ff==kh+"";case mapTag$2:var eme=mapToArray;case setTag$2:var tme=$_&COMPARE_PARTIAL_FLAG$2;if(eme||(eme=setToArray),Ff.size!=kh.size&&!tme)return!1;var nme=zP.get(Ff);if(nme)return nme==kh;$_|=COMPARE_UNORDERED_FLAG,zP.set(Ff,kh);var rme=equalArrays$1(eme(Ff),eme(kh),$_,B_,$P,zP);return zP.delete(Ff),rme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(Ff)==symbolValueOf.call(kh)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(Ff,kh){for(var x_=-1,$_=kh.length,B_=Ff.length;++x_<$_;)Ff[B_+x_]=kh[x_];return Ff}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(Ff,kh,x_){var $_=kh(Ff);return isArray$2(Ff)?$_:arrayPush($_,x_(Ff))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=0,$P=[];++x_<$_;){var zP=Ff[x_];kh(zP,x_,Ff)&&($P[B_++]=zP)}return $P}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(Ff){return Ff==null?[]:(Ff=Object(Ff),arrayFilter(nativeGetSymbols(Ff),function(kh){return propertyIsEnumerable$1.call(Ff,kh)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(Ff,kh){for(var x_=-1,$_=Array(Ff);++x_<Ff;)$_[x_]=kh(x_);return $_}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(Ff){return isObjectLike$3(Ff)&&baseGetTag$2(Ff)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(Ff){return isObjectLike$2(Ff)&&hasOwnProperty$5.call(Ff,"callee")&&!propertyIsEnumerable.call(Ff,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(Ff,kh){var x_=_root,$_=stubFalse_1,B_=kh&&!kh.nodeType&&kh,$P=B_&&!0&&Ff&&!Ff.nodeType&&Ff,zP=$P&&$P.exports===B_,eme=zP?x_.Buffer:void 0,tme=eme?eme.isBuffer:void 0,nme=tme||$_;Ff.exports=nme})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(Ff,kh){var x_=typeof Ff;return kh=kh??MAX_SAFE_INTEGER$1,!!kh&&(x_=="number"||x_!="symbol"&&reIsUint.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(Ff){return typeof Ff=="number"&&Ff>-1&&Ff%1==0&&Ff<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(Ff){return isObjectLike$1(Ff)&&isLength$1(Ff.length)&&!!typedArrayTags[baseGetTag$1(Ff)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(Ff){return function(kh){return Ff(kh)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(Ff,kh){var x_=_freeGlobal,$_=kh&&!kh.nodeType&&kh,B_=$_&&!0&&Ff&&!Ff.nodeType&&Ff,$P=B_&&B_.exports===$_,zP=$P&&x_.process,eme=function(){try{var tme=B_&&B_.require&&B_.require("util").types;return tme||zP&&zP.binding&&zP.binding("util")}catch{}}();Ff.exports=eme})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(Ff,kh){var x_=isArray$1(Ff),$_=!x_&&isArguments(Ff),B_=!x_&&!$_&&isBuffer$1(Ff),$P=!x_&&!$_&&!B_&&isTypedArray$1(Ff),zP=x_||$_||B_||$P,eme=zP?baseTimes(Ff.length,String):[],tme=eme.length;for(var nme in Ff)(kh||hasOwnProperty$4.call(Ff,nme))&&!(zP&&(nme=="length"||B_&&(nme=="offset"||nme=="parent")||$P&&(nme=="buffer"||nme=="byteLength"||nme=="byteOffset")||isIndex(nme,tme)))&&eme.push(nme);return eme}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(Ff){var kh=Ff&&Ff.constructor,x_=typeof kh=="function"&&kh.prototype||objectProto$3;return Ff===x_}var _isPrototype=isPrototype$1;function overArg$1(Ff,kh){return function(x_){return Ff(kh(x_))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(Ff){if(!isPrototype(Ff))return nativeKeys(Ff);var kh=[];for(var x_ in Object(Ff))hasOwnProperty$3.call(Ff,x_)&&x_!="constructor"&&kh.push(x_);return kh}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(Ff){return Ff!=null&&isLength(Ff.length)&&!isFunction(Ff)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(Ff){return isArrayLike(Ff)?arrayLikeKeys(Ff):baseKeys(Ff)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(Ff){return baseGetAllKeys(Ff,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$1,eme=getAllKeys(Ff),tme=eme.length,nme=getAllKeys(kh),rme=nme.length;if(tme!=rme&&!zP)return!1;for(var ame=tme;ame--;){var ome=eme[ame];if(!(zP?ome in kh:hasOwnProperty$2.call(kh,ome)))return!1}var ime=$P.get(Ff),cme=$P.get(kh);if(ime&&cme)return ime==kh&&cme==Ff;var ume=!0;$P.set(Ff,kh),$P.set(kh,Ff);for(var sme=zP;++ame<tme;){ome=eme[ame];var fme=Ff[ome],lme=kh[ome];if($_)var hme=zP?$_(lme,fme,ome,kh,Ff,$P):$_(fme,lme,ome,Ff,kh,$P);if(!(hme===void 0?fme===lme||B_(fme,lme,x_,$_,$P):hme)){ume=!1;break}sme||(sme=ome=="constructor")}if(ume&&!sme){var pme=Ff.constructor,gme=kh.constructor;pme!=gme&&"constructor"in Ff&&"constructor"in kh&&!(typeof pme=="function"&&pme instanceof pme&&typeof gme=="function"&&gme instanceof gme)&&(ume=!1)}return $P.delete(Ff),$P.delete(kh),ume}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(Ff){var kh=baseGetTag(Ff),x_=kh==objectTag$1?Ff.constructor:void 0,$_=x_?toSource(x_):"";if($_)switch($_){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return kh});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(Ff,kh,x_,$_,B_,$P){var zP=isArray(Ff),eme=isArray(kh),tme=zP?arrayTag:getTag(Ff),nme=eme?arrayTag:getTag(kh);tme=tme==argsTag?objectTag:tme,nme=nme==argsTag?objectTag:nme;var rme=tme==objectTag,ame=nme==objectTag,ome=tme==nme;if(ome&&isBuffer(Ff)){if(!isBuffer(kh))return!1;zP=!0,rme=!1}if(ome&&!rme)return $P||($P=new Stack),zP||isTypedArray(Ff)?equalArrays(Ff,kh,x_,$_,B_,$P):equalByTag(Ff,kh,tme,x_,$_,B_,$P);if(!(x_&COMPARE_PARTIAL_FLAG)){var ime=rme&&hasOwnProperty$1.call(Ff,"__wrapped__"),cme=ame&&hasOwnProperty$1.call(kh,"__wrapped__");if(ime||cme){var ume=ime?Ff.value():Ff,sme=cme?kh.value():kh;return $P||($P=new Stack),B_(ume,sme,x_,$_,$P)}}return ome?($P||($P=new Stack),equalObjects(Ff,kh,x_,$_,B_,$P)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(Ff,kh,x_,$_,B_){return Ff===kh?!0:Ff==null||kh==null||!isObjectLike(Ff)&&!isObjectLike(kh)?Ff!==Ff&&kh!==kh:baseIsEqualDeep(Ff,kh,x_,$_,baseIsEqual$1,B_)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(Ff,kh){return baseIsEqual(Ff,kh)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
398
398
  * Quill Editor v1.3.7
399
399
  * https://quilljs.com/
400
400
  * Copyright (c) 2014, Jason Chen
package/dist/index.es.js CHANGED
@@ -34477,25 +34477,30 @@ const BaseWrapper = function(kh) {
34477
34477
  hidePrompt: zP = !1,
34478
34478
  subTableIndex: eme,
34479
34479
  addWrapper: tme = !0,
34480
- ...nme
34480
+ readonly: nme,
34481
+ ...rme
34481
34482
  } = kh;
34482
34483
  return tme ? $P ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
34483
34484
  className: "frelative fw-full",
34484
34485
  children: [x_ && eme === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34485
34486
  className: "fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",
34486
34487
  children: x_
34487
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34488
- className: "fw-full fflex fitems-stretch fp-2 ",
34489
- children: $_
34488
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
34489
+ className: "fw-full fflex fitems-stretch fp-2 frelative",
34490
+ children: [nme && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34491
+ className: "fw-full fh-full fbg-gray-50 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"
34492
+ }), $_]
34490
34493
  })]
34491
34494
  }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
34492
34495
  className: "frelative",
34493
34496
  children: [x_ && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34494
34497
  className: "fh-8 ftext-gray-500 ftext-sm fflex fjustify-between fitems-center",
34495
34498
  children: x_
34496
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34497
- className: "fw-full fflex fitems-stretch ftext-gray-900",
34498
- children: $_
34499
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
34500
+ className: "fw-full fflex fitems-stretch ftext-gray-900 frelative",
34501
+ children: [nme && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34502
+ className: "fw-full fh-full fbg-gray-100 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"
34503
+ }), $_]
34499
34504
  }), !zP && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
34500
34505
  className: "ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",
34501
34506
  children: B_
@@ -39623,7 +39628,7 @@ const FormContainerWrapper = withWrap((Ff) => {
39623
39628
  }), ume = async (hme, pme) => {
39624
39629
  !hme.url && !hme.preview && (hme.preview = await cme(hme.originFileObj)), tme(hme.url || hme.preview), rme(pme), ime(!0);
39625
39630
  }, sme = async (hme, pme) => {
39626
- zP($P.filter((gme, yme) => yme !== pme));
39631
+ B_ != null && B_.disabled || zP($P.filter((gme, yme) => yme !== pme));
39627
39632
  }, fme = /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
39628
39633
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
39629
39634
  className: "fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",
@@ -39670,7 +39675,7 @@ const FormContainerWrapper = withWrap((Ff) => {
39670
39675
  ume(pme, yme);
39671
39676
  },
39672
39677
  className: "hover:ftext-gray-200"
39673
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$3, {
39678
+ }), !(B_ != null && B_.disabled) && /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$3, {
39674
39679
  onClick: () => {
39675
39680
  sme(pme, yme);
39676
39681
  },
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fabsolute{position:absolute}.frelative{position:relative}.fleft-0{left:0}.ftop-0{top:0}.fz-10{z-index:10}.fmy-2{margin-top:.5rem;margin-bottom:.5rem}.fmt-2{margin-top:.5rem}.fflex{display:flex}.finline-flex{display:inline-flex}.fhidden{display:none}.fh-11{height:2.75rem}.fh-12{height:3rem}.fh-24{height:6rem}.fh-5{height:1.25rem}.fh-8{height:2rem}.fh-full{height:100%}.fmax-h-full{max-height:100%}.fmin-h-20{min-height:5rem}.fmin-h-5{min-height:1.25rem}.fw-16{width:4rem}.fw-24{width:6rem}.fw-5{width:1.25rem}.fw-\[960px\]{width:960px}.fw-full{width:100%}.fmin-w-36{min-width:9rem}.fmin-w-full{min-width:100%}.fmax-w-full{max-width:100%}.fflex-1{flex:1 1 0%}.fcursor-pointer{cursor:pointer}.fflex-col{flex-direction:column}.fflex-wrap{flex-wrap:wrap}.fitems-center{align-items:center}.fitems-stretch{align-items:stretch}.fjustify-center{justify-content:center}.fjustify-between{justify-content:space-between}.fgap-1{gap:.25rem}.fgap-2{gap:.5rem}.fgap-3{gap:.75rem}.fgap-x-1{column-gap:.25rem}.foverflow-hidden{overflow:hidden}.foverflow-x-auto{overflow-x:auto}.frounded{border-radius:.25rem}.fborder{border-width:1px}.fborder-b{border-bottom-width:1px}.fborder-l-4{border-left-width:4px}.fborder-dashed{border-style:dashed}.fborder-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.fborder-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.fborder-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.fbg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.fbg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.fbg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.fbg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.fbg-transparent{background-color:transparent}.fbg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fbg-opacity-50{--tw-bg-opacity: .5}.fobject-contain{object-fit:contain}.fp-2{padding:.5rem}.fp-4{padding:1rem}.fp-6{padding:1.5rem}.fpx-2{padding-left:.5rem;padding-right:.5rem}.fpb-10{padding-bottom:2.5rem}.fpl-2{padding-left:.5rem}.ftext-lg{font-size:1.125rem;line-height:1.75rem}.ftext-sm{font-size:.875rem;line-height:1.25rem}.ftext-xs{font-size:.75rem;line-height:1rem}.ffont-medium{font-weight:500}.ffont-semibold{font-weight:600}.ftext-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.ftext-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.ftext-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.ftext-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:fborder-\[\#3e92f8\]:hover{--tw-border-opacity: 1;border-color:rgb(62 146 248 / var(--tw-border-opacity))}.hover\:ftext-\[\#3e92f8\]:hover{--tw-text-opacity: 1;color:rgb(62 146 248 / var(--tw-text-opacity))}.hover\:ftext-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.fgroup:hover .group-hover\:fflex{display:flex}.fgroup:hover .group-hover\:fbg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}/*!
1
+ *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fabsolute{position:absolute}.frelative{position:relative}.fleft-0{left:0}.ftop-0{top:0}.fz-10{z-index:10}.fmy-2{margin-top:.5rem;margin-bottom:.5rem}.fmt-2{margin-top:.5rem}.fflex{display:flex}.finline-flex{display:inline-flex}.fhidden{display:none}.fh-11{height:2.75rem}.fh-12{height:3rem}.fh-24{height:6rem}.fh-5{height:1.25rem}.fh-8{height:2rem}.fh-full{height:100%}.fmax-h-full{max-height:100%}.fmin-h-20{min-height:5rem}.fmin-h-5{min-height:1.25rem}.fw-16{width:4rem}.fw-24{width:6rem}.fw-5{width:1.25rem}.fw-\[960px\]{width:960px}.fw-full{width:100%}.fmin-w-36{min-width:9rem}.fmin-w-full{min-width:100%}.fmax-w-full{max-width:100%}.fflex-1{flex:1 1 0%}.fcursor-not-allowed{cursor:not-allowed}.fcursor-pointer{cursor:pointer}.fflex-col{flex-direction:column}.fflex-wrap{flex-wrap:wrap}.fitems-center{align-items:center}.fitems-stretch{align-items:stretch}.fjustify-center{justify-content:center}.fjustify-between{justify-content:space-between}.fgap-1{gap:.25rem}.fgap-2{gap:.5rem}.fgap-3{gap:.75rem}.fgap-x-1{column-gap:.25rem}.foverflow-hidden{overflow:hidden}.foverflow-x-auto{overflow-x:auto}.frounded{border-radius:.25rem}.fborder{border-width:1px}.fborder-b{border-bottom-width:1px}.fborder-l-4{border-left-width:4px}.fborder-dashed{border-style:dashed}.fborder-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.fborder-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.fborder-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.fbg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.fbg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.fbg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.fbg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.fbg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.fbg-transparent{background-color:transparent}.fbg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fbg-opacity-50{--tw-bg-opacity: .5}.fobject-contain{object-fit:contain}.fp-2{padding:.5rem}.fp-4{padding:1rem}.fp-6{padding:1.5rem}.fpx-2{padding-left:.5rem;padding-right:.5rem}.fpb-10{padding-bottom:2.5rem}.fpl-2{padding-left:.5rem}.ftext-lg{font-size:1.125rem;line-height:1.75rem}.ftext-sm{font-size:.875rem;line-height:1.25rem}.ftext-xs{font-size:.75rem;line-height:1rem}.ffont-medium{font-weight:500}.ffont-semibold{font-weight:600}.ftext-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.ftext-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.ftext-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.ftext-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.fopacity-5{opacity:.05}.hover\:fborder-\[\#3e92f8\]:hover{--tw-border-opacity: 1;border-color:rgb(62 146 248 / var(--tw-border-opacity))}.hover\:ftext-\[\#3e92f8\]:hover{--tw-text-opacity: 1;color:rgb(62 146 248 / var(--tw-text-opacity))}.hover\:ftext-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.fgroup:hover .group-hover\:fflex{display:flex}.fgroup:hover .group-hover\:fbg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}/*!
2
2
  * Quill Editor v1.3.7
3
3
  * https://quilljs.com/
4
4
  * Copyright (c) 2014, Jason Chen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.9.20",
3
+ "version": "0.9.21",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@testing-library/jest-dom": "^5.17.0",
package/src/App.jsx CHANGED
@@ -84,8 +84,8 @@ function App() {
84
84
  <FormContainerWrapper cols={cols} className="" ref={formRef} >
85
85
  <Layout.FormRow layout={'1'}>
86
86
  <Field.Table label="子表格" __id="table" >
87
- <Field.Input label="商品价格" __id="product_price1" />
88
- <Field.Input label="商品数量" __id="product_num1" />
87
+ <Field.Input readonly={true} label="商品价格" __id="product_price1" />
88
+ <Field.Input readonly={true} label="商品数量" __id="product_num1" />
89
89
  <Field.Input label="商品总价" __id="product_sum1"
90
90
  withIds={["table.product_price1", "table.product_num1"]}
91
91
  withFill={{
@@ -200,11 +200,11 @@ function App() {
200
200
 
201
201
  ]
202
202
  }} />
203
- <Field.SingleSelect mode="single" label="测试单选" __id="select1" options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]}></Field.SingleSelect>
204
- <Field.MultipleSelect mode="multiple" label="测多选" __id="select2" options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]}></Field.MultipleSelect>
205
- <Field.TreeSelect label="分组名" __id="title11"></Field.TreeSelect>
206
- <Field.Switch label="开关" __id="switch"></Field.Switch>
207
- <Field.CodeMachine label="角色编号" prompt="" __id="code"
203
+ <Field.SingleSelect readonly={true} mode="single" label="测试单选" __id="select1" options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]}></Field.SingleSelect>
204
+ <Field.MultipleSelect readonly={true} mode="multiple" label="测多选" __id="select2" options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]}></Field.MultipleSelect>
205
+ <Field.TreeSelect readonly={true} label="分组名" __id="title11"></Field.TreeSelect>
206
+ <Field.Switch label="开关" __id="switch"></Field.Switch>
207
+ <Field.CodeMachine readonly={true} label="角色编号" prompt="" __id="code"
208
208
  withIds={["switch"]}
209
209
  withFunc={(fieldsValue) => {
210
210
  return fieldsValue?.switch ? true : false
@@ -220,7 +220,7 @@ function App() {
220
220
  <Field.Input label="角色名称布局2" __id="name2" />
221
221
  <Field.Input label="角色名称布局3" __id="name3" />
222
222
  </Layout.FormRow>
223
- <Field.CheckboxTree label="角色权限" __id="permissions" addRoot={false} treeData={treeData} />
223
+ <Field.CheckboxTree readonly={true} label="角色权限" __id="permissions" addRoot={false} treeData={treeData} />
224
224
  <Layout.FormGroupTitle title={"关联信息"} />
225
225
  <Field.WithSingleSelect label="测试关联单选" options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]} __id="remark11" />
226
226
  <Field.WithMultipleSelect label="测试关联多选" options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]} __id="remark12" />
@@ -233,7 +233,7 @@ function App() {
233
233
  <Field.CheckboxGroup options={[{ label: '选项1', value: '1' }, { label: '选项2', value: '2' }]} label="多选框" __id="CheckboxGroup" ></Field.CheckboxGroup>
234
234
  </Layout.FormRow>
235
235
  <Field.UploadFile label="上传文件" __id="UploadFile" ></Field.UploadFile>
236
- <Field.UploadImage label="上传图片" __id="UploadImage" ></Field.UploadImage>
236
+ <Field.UploadImage readonly={true} label="上传图片" __id="UploadImage" ></Field.UploadImage>
237
237
 
238
238
  </FormContainerWrapper>
239
239
  <div class="fgroup">11111
@@ -17,13 +17,15 @@ export const BaseWrapper = function BaseWrapper({
17
17
  hidePrompt = false,
18
18
  subTableIndex,
19
19
  addWrapper = true,
20
+ readonly,
20
21
  ...otherProps
21
22
  }) {
22
23
  if (!addWrapper) return children;
23
24
  const formWarpper = (
24
25
  <div className="frelative">
25
26
  {label && <div className='fh-8 ftext-gray-500 ftext-sm fflex fjustify-between fitems-center'>{label}</div>}
26
- <div className="fw-full fflex fitems-stretch ftext-gray-900">
27
+ <div className="fw-full fflex fitems-stretch ftext-gray-900 frelative">
28
+ {readonly && <div className="fw-full fh-full fbg-gray-100 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"></div>}
27
29
  {/* <FieldLable value={otherProps?.value} /> */}
28
30
  {children}
29
31
  </div>
@@ -34,7 +36,8 @@ export const BaseWrapper = function BaseWrapper({
34
36
  const tableWarpper = (
35
37
  <div className="frelative fw-full">
36
38
  {label && subTableIndex === 0 && <div className='fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b'>{label}</div>}
37
- <div className="fw-full fflex fitems-stretch fp-2 ">
39
+ <div className="fw-full fflex fitems-stretch fp-2 frelative">
40
+ {readonly && <div className="fw-full fh-full fbg-gray-50 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"></div>}
38
41
  {/* <FieldLable value={otherProps?.value} /> */}
39
42
  {children}
40
43
  </div>
@@ -56,7 +56,7 @@ const UploadImage = ({ maxCount, value, onChange, ...props }) => {
56
56
  };
57
57
 
58
58
  const handleDelete = async (file, index) => {
59
-
59
+ if (props?.disabled) return
60
60
  setFileList(fileList.filter((item, i) => i !== index))
61
61
  }
62
62
 
@@ -128,7 +128,7 @@ const UploadImage = ({ maxCount, value, onChange, ...props }) => {
128
128
  <div key={`file-${file.uid}`} className={"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative" + (file.status == "error" ? " fborder-red-500" : "")}>
129
129
  <div className=" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2">
130
130
  {file.status == "done" && <EyeOutlined onClick={() => { handlePreview(file, index) }} className="hover:ftext-gray-200" />}
131
- <DeleteOutlined onClick={() => { handleDelete(file, index) }} className="hover:ftext-gray-200" />
131
+ {!props?.disabled && <DeleteOutlined onClick={() => { handleDelete(file, index) }} className="hover:ftext-gray-200" />}
132
132
 
133
133
  </div>
134
134
  {file.status == "uploading" && <div className=" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 "><Spin></Spin></div>}