lu-lowcode-package-form 0.9.65 → 0.9.67
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
@@ -321,7 +321,7 @@ html body {
|
|
321
321
|
${n1e}-eye,
|
322
322
|
${n1e}-download,
|
323
323
|
${n1e}-delete
|
324
|
-
`]:{zIndex:10,width:r1e,margin:`0 ${unit$1(e1e.marginXXS)}`,fontSize:r1e,cursor:"pointer",transition:`all ${e1e.motionDurationSlow}`,color:o1e,"&:hover":{color:o1e},svg:{verticalAlign:"baseline"}}},[`${s1e}-thumbnail, ${s1e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s1e}-name`]:{display:"none",textAlign:"center"},[`${s1e}-file + ${s1e}-name`]:{position:"absolute",bottom:e1e.margin,display:"block",width:`calc(100% - ${unit$1(a1e(e1e.paddingXS).mul(2).equal())})`},[`${s1e}-uploading`]:{[`&${s1e}`]:{backgroundColor:e1e.colorFillAlter},[`&::before, ${n1e}-eye, ${n1e}-download, ${n1e}-delete`]:{display:"none"}},[`${s1e}-progress`]:{bottom:e1e.marginXL,width:`calc(100% - ${unit$1(a1e(e1e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t1e}-wrapper${t1e}-picture-circle-wrapper`]:{[`${t1e}${t1e}-select`]:{borderRadius:"50%"}}}},genRtlStyle=e1e=>{const{componentCls:t1e}=e1e;return{[`${t1e}-rtl`]:{direction:"rtl"}}},genBaseStyle=e1e=>{const{componentCls:t1e,colorTextDisabled:n1e}=e1e;return{[`${t1e}-wrapper`]:Object.assign(Object.assign({},resetComponent(e1e)),{[t1e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t1e}-select`]:{display:"inline-block"},[`${t1e}-disabled`]:{color:n1e,cursor:"not-allowed"}})}},prepareComponentToken=e1e=>({actionsColor:e1e.colorTextDescription}),useStyle=genStyleHooks("Upload",e1e=>{const{fontSizeHeading3:t1e,fontHeight:n1e,lineWidth:r1e,controlHeightLG:o1e,calc:a1e}=e1e,i1e=merge(e1e,{uploadThumbnailSize:a1e(t1e).mul(2).equal(),uploadProgressOffset:a1e(a1e(n1e).div(2)).add(r1e).equal(),uploadPicCardSize:a1e(o1e).mul(2.55).equal()});return[genBaseStyle(i1e),genDraggerStyle(i1e),genPictureStyle(i1e),genPictureCardStyle(i1e),genListStyle(i1e),genMotionStyle(i1e),genRtlStyle(i1e),genCollapseMotion(i1e)]},prepareComponentToken);var FileTwoTone$1={icon:function(t1e,n1e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n1e}},{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:t1e}}]}},name:"file",theme:"twotone"},FileTwoTone=function(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,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(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,icon:PaperClipOutlined$1}))},RefIcon$6=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="PaperClipOutlined");var PictureTwoTone$1={icon:function(t1e,n1e){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:t1e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n1e}},{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:n1e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n1e}},{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:t1e}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,icon:PictureTwoTone$1}))},RefIcon$5=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="PictureTwoTone");function file2Obj(e1e){return Object.assign(Object.assign({},e1e),{lastModified:e1e.lastModified,lastModifiedDate:e1e.lastModifiedDate,name:e1e.name,size:e1e.size,type:e1e.type,uid:e1e.uid,percent:0,originFileObj:e1e})}function updateFileList(e1e,t1e){const n1e=_toConsumableArray(t1e),r1e=n1e.findIndex(o1e=>{let{uid:a1e}=o1e;return a1e===e1e.uid});return r1e===-1?n1e.push(e1e):n1e[r1e]=e1e,n1e}function getFileItem(e1e,t1e){const n1e=e1e.uid!==void 0?"uid":"name";return t1e.filter(r1e=>r1e[n1e]===e1e[n1e])[0]}function removeFileItem(e1e,t1e){const n1e=e1e.uid!==void 0?"uid":"name",r1e=t1e.filter(o1e=>o1e[n1e]!==e1e[n1e]);return r1e.length===t1e.length?null:r1e}const extname=function(){const t1e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r1e=t1e[t1e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r1e)||[""])[0]},isImageFileType=e1e=>e1e.indexOf("image/")===0,isImageUrl=e1e=>{if(e1e.type&&!e1e.thumbUrl)return isImageFileType(e1e.type);const t1e=e1e.thumbUrl||e1e.url||"",n1e=extname(t1e);return/^data:image\//.test(t1e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n1e)?!0:!(/^data:/.test(t1e)||n1e)},MEASURE_SIZE=200;function previewImage(e1e){return new Promise(t1e=>{if(!e1e.type||!isImageFileType(e1e.type)){t1e("");return}const n1e=document.createElement("canvas");n1e.width=MEASURE_SIZE,n1e.height=MEASURE_SIZE,n1e.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(n1e);const r1e=n1e.getContext("2d"),o1e=new Image;if(o1e.onload=()=>{const{width:a1e,height:i1e}=o1e;let s1e=MEASURE_SIZE,l1e=MEASURE_SIZE,u1e=0,c1e=0;a1e>i1e?(l1e=i1e*(MEASURE_SIZE/a1e),c1e=-(l1e-s1e)/2):(s1e=a1e*(MEASURE_SIZE/i1e),u1e=-(s1e-l1e)/2),r1e.drawImage(o1e,u1e,c1e,s1e,l1e);const f1e=n1e.toDataURL();document.body.removeChild(n1e),window.URL.revokeObjectURL(o1e.src),t1e(f1e)},o1e.crossOrigin="anonymous",e1e.type.startsWith("image/svg+xml")){const a1e=new FileReader;a1e.onload=()=>{a1e.result&&typeof a1e.result=="string"&&(o1e.src=a1e.result)},a1e.readAsDataURL(e1e)}else if(e1e.type.startsWith("image/gif")){const a1e=new FileReader;a1e.onload=()=>{a1e.result&&t1e(a1e.result)},a1e.readAsDataURL(e1e)}else o1e.src=window.URL.createObjectURL(e1e)})}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(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,icon:DownloadOutlined$1}))},RefIcon$4=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="DownloadOutlined");const ListItem=React__namespace.forwardRef((e1e,t1e)=>{let{prefixCls:n1e,className:r1e,style:o1e,locale:a1e,listType:i1e,file:s1e,items:l1e,progress:u1e,iconRender:c1e,actionIconRender:f1e,itemRender:d1e,isImgUrl:p1e,showPreviewIcon:g1e,showRemoveIcon:m1e,showDownloadIcon:v1e,previewIcon:$1e,removeIcon:h1e,downloadIcon:y1e,onPreview:b1e,onDownload:E1e,onClose:S1e}=e1e;var C1e,x1e;const{status:O1e}=s1e,[R1e,A1e]=React__namespace.useState(O1e);React__namespace.useEffect(()=>{O1e!=="removed"&&A1e(O1e)},[O1e]);const[_1e,P1e]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const Q1e=setTimeout(()=>{P1e(!0)},300);return()=>{clearTimeout(Q1e)}},[]);const N1e=c1e(s1e);let I1e=React__namespace.createElement("div",{className:`${n1e}-icon`},N1e);if(i1e==="picture"||i1e==="picture-card"||i1e==="picture-circle")if(R1e==="uploading"||!s1e.thumbUrl&&!s1e.url){const Q1e=classNames(`${n1e}-list-item-thumbnail`,{[`${n1e}-list-item-file`]:R1e!=="uploading"});I1e=React__namespace.createElement("div",{className:Q1e},N1e)}else{const Q1e=p1e!=null&&p1e(s1e)?React__namespace.createElement("img",{src:s1e.thumbUrl||s1e.url,alt:s1e.name,className:`${n1e}-list-item-image`,crossOrigin:s1e.crossOrigin}):N1e,X1e=classNames(`${n1e}-list-item-thumbnail`,{[`${n1e}-list-item-file`]:p1e&&!p1e(s1e)});I1e=React__namespace.createElement("a",{className:X1e,onClick:t0e=>b1e(s1e,t0e),href:s1e.url||s1e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q1e)}const F1e=classNames(`${n1e}-list-item`,`${n1e}-list-item-${R1e}`),B1e=typeof s1e.linkProps=="string"?JSON.parse(s1e.linkProps):s1e.linkProps,L1e=m1e?f1e((typeof h1e=="function"?h1e(s1e):h1e)||React__namespace.createElement(RefIcon$8,null),()=>S1e(s1e),n1e,a1e.removeFile,!0):null,z1e=v1e&&R1e==="done"?f1e((typeof y1e=="function"?y1e(s1e):y1e)||React__namespace.createElement(RefIcon$4,null),()=>E1e(s1e),n1e,a1e.downloadFile):null,j1e=i1e!=="picture-card"&&i1e!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${n1e}-list-item-actions`,{picture:i1e==="picture"})},z1e,L1e),T1e=classNames(`${n1e}-list-item-name`),M1e=s1e.url?[React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T1e,title:s1e.name},B1e,{href:s1e.url,onClick:Q1e=>b1e(s1e,Q1e)}),s1e.name),j1e]:[React__namespace.createElement("span",{key:"view",className:T1e,onClick:Q1e=>b1e(s1e,Q1e),title:s1e.name},s1e.name),j1e],k1e=g1e&&(s1e.url||s1e.thumbUrl)?React__namespace.createElement("a",{href:s1e.url||s1e.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q1e=>b1e(s1e,Q1e),title:a1e.previewFile},typeof $1e=="function"?$1e(s1e):$1e||React__namespace.createElement(RefIcon$p,null)):null,U1e=(i1e==="picture-card"||i1e==="picture-circle")&&R1e!=="uploading"&&React__namespace.createElement("span",{className:`${n1e}-list-item-actions`},k1e,R1e==="done"&&z1e,L1e),{getPrefixCls:W1e}=React__namespace.useContext(ConfigContext),V1e=W1e(),K1e=React__namespace.createElement("div",{className:F1e},I1e,M1e,U1e,_1e&&React__namespace.createElement(CSSMotion,{motionName:`${V1e}-fade`,visible:R1e==="uploading",motionDeadline:2e3},Q1e=>{let{className:X1e}=Q1e;const t0e="percent"in s1e?React__namespace.createElement(Progress,Object.assign({},u1e,{type:"line",percent:s1e.percent,"aria-label":s1e["aria-label"],"aria-labelledby":s1e["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${n1e}-list-item-progress`,X1e)},t0e)})),G1e=s1e.response&&typeof s1e.response=="string"?s1e.response:((C1e=s1e.error)===null||C1e===void 0?void 0:C1e.statusText)||((x1e=s1e.error)===null||x1e===void 0?void 0:x1e.message)||a1e.uploadError,q1e=R1e==="error"?React__namespace.createElement(Tooltip,{title:G1e,getPopupContainer:Q1e=>Q1e.parentNode},K1e):K1e;return React__namespace.createElement("div",{className:classNames(`${n1e}-list-item-container`,r1e),style:o1e,ref:t1e},d1e?d1e(q1e,s1e,l1e,{download:E1e.bind(null,s1e),preview:b1e.bind(null,s1e),remove:S1e.bind(null,s1e)}):q1e)}),InternalUploadList=(e1e,t1e)=>{const{listType:n1e="text",previewFile:r1e=previewImage,onPreview:o1e,onDownload:a1e,onRemove:i1e,locale:s1e,iconRender:l1e,isImageUrl:u1e=isImageUrl,prefixCls:c1e,items:f1e=[],showPreviewIcon:d1e=!0,showRemoveIcon:p1e=!0,showDownloadIcon:g1e=!1,removeIcon:m1e,previewIcon:v1e,downloadIcon:$1e,progress:h1e={size:[-1,2],showInfo:!1},appendAction:y1e,appendActionVisible:b1e=!0,itemRender:E1e,disabled:S1e}=e1e,C1e=useForceUpdate(),[x1e,O1e]=React__namespace.useState(!1);React__namespace.useEffect(()=>{n1e!=="picture"&&n1e!=="picture-card"&&n1e!=="picture-circle"||(f1e||[]).forEach(k1e=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(k1e.originFileObj instanceof File||k1e.originFileObj)||k1e.thumbUrl!==void 0||r1e&&r1e(k1e.originFileObj).then(U1e=>{k1e.thumbUrl=U1e||"",C1e()})})},[n1e,f1e,r1e]),React__namespace.useEffect(()=>{O1e(!0)},[]);const R1e=(k1e,U1e)=>{if(o1e)return U1e==null||U1e.preventDefault(),o1e(k1e)},A1e=k1e=>{typeof a1e=="function"?a1e(k1e):k1e.url&&window.open(k1e.url)},_1e=k1e=>{i1e==null||i1e(k1e)},P1e=k1e=>{if(l1e)return l1e(k1e,n1e);const U1e=k1e.status==="uploading",W1e=u1e&&u1e(k1e)?React__namespace.createElement(RefIcon$5,null):React__namespace.createElement(RefIcon$7,null);let V1e=U1e?React__namespace.createElement(RefIcon$y,null):React__namespace.createElement(RefIcon$6,null);return n1e==="picture"?V1e=U1e?React__namespace.createElement(RefIcon$y,null):W1e:(n1e==="picture-card"||n1e==="picture-circle")&&(V1e=U1e?s1e.uploading:W1e),V1e},N1e=(k1e,U1e,W1e,V1e,K1e)=>{const G1e={type:"text",size:"small",title:V1e,onClick:q1e=>{var Q1e,X1e;U1e(),React__namespace.isValidElement(k1e)&&((X1e=(Q1e=k1e.props).onClick)===null||X1e===void 0||X1e.call(Q1e,q1e))},className:`${W1e}-list-item-action`};if(K1e&&(G1e.disabled=S1e),React__namespace.isValidElement(k1e)){const q1e=cloneElement(k1e,Object.assign(Object.assign({},k1e.props),{onClick:()=>{}}));return React__namespace.createElement(Button$1,Object.assign({},G1e,{icon:q1e}))}return React__namespace.createElement(Button$1,Object.assign({},G1e),React__namespace.createElement("span",null,k1e))};React__namespace.useImperativeHandle(t1e,()=>({handlePreview:R1e,handleDownload:A1e}));const{getPrefixCls:I1e}=React__namespace.useContext(ConfigContext),F1e=I1e("upload",c1e),B1e=I1e(),L1e=classNames(`${F1e}-list`,`${F1e}-list-${n1e}`),z1e=_toConsumableArray(f1e.map(k1e=>({key:k1e.uid,file:k1e})));let T1e={motionDeadline:2e3,motionName:`${F1e}-${n1e==="picture-card"||n1e==="picture-circle"?"animate-inline":"animate"}`,keys:z1e,motionAppear:x1e};const M1e=React__namespace.useMemo(()=>{const k1e=Object.assign({},initCollapseMotion$1(B1e));return delete k1e.onAppearEnd,delete k1e.onEnterEnd,delete k1e.onLeaveEnd,k1e},[B1e]);return n1e!=="picture-card"&&n1e!=="picture-circle"&&(T1e=Object.assign(Object.assign({},M1e),T1e)),React__namespace.createElement("div",{className:L1e},React__namespace.createElement(CSSMotionList,Object.assign({},T1e,{component:!1}),k1e=>{let{key:U1e,file:W1e,className:V1e,style:K1e}=k1e;return React__namespace.createElement(ListItem,{key:U1e,locale:s1e,prefixCls:F1e,className:V1e,style:K1e,file:W1e,items:f1e,progress:h1e,listType:n1e,isImgUrl:u1e,showPreviewIcon:d1e,showRemoveIcon:p1e,showDownloadIcon:g1e,removeIcon:m1e,previewIcon:v1e,downloadIcon:$1e,iconRender:P1e,actionIconRender:N1e,itemRender:E1e,onPreview:R1e,onDownload:A1e,onClose:_1e})}),y1e&&React__namespace.createElement(CSSMotion,Object.assign({},T1e,{visible:b1e,forceRender:!0}),k1e=>{let{className:U1e,style:W1e}=k1e;return cloneElement(y1e,V1e=>({className:classNames(V1e.className,U1e),style:Object.assign(Object.assign(Object.assign({},W1e),{pointerEvents:U1e?"none":void 0}),V1e.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");var __awaiter=function(e1e,t1e,n1e,r1e){function o1e(a1e){return a1e instanceof n1e?a1e:new n1e(function(i1e){i1e(a1e)})}return new(n1e||(n1e=Promise))(function(a1e,i1e){function s1e(c1e){try{u1e(r1e.next(c1e))}catch(f1e){i1e(f1e)}}function l1e(c1e){try{u1e(r1e.throw(c1e))}catch(f1e){i1e(f1e)}}function u1e(c1e){c1e.done?a1e(c1e.value):o1e(c1e.value).then(s1e,l1e)}u1e((r1e=r1e.apply(e1e,t1e||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(e1e,t1e)=>{const{fileList:n1e,defaultFileList:r1e,onRemove:o1e,showUploadList:a1e=!0,listType:i1e="text",onPreview:s1e,onDownload:l1e,onChange:u1e,onDrop:c1e,previewFile:f1e,disabled:d1e,locale:p1e,iconRender:g1e,isImageUrl:m1e,progress:v1e,prefixCls:$1e,className:h1e,type:y1e="select",children:b1e,style:E1e,itemRender:S1e,maxCount:C1e,data:x1e={},multiple:O1e=!1,hasControlInside:R1e=!0,action:A1e="",accept:_1e="",supportServerRender:P1e=!0,rootClassName:N1e}=e1e,I1e=React__namespace.useContext(DisabledContext),F1e=d1e??I1e,[B1e,L1e]=useMergedState(r1e||[],{value:n1e,postState:b0e=>b0e??[]}),[z1e,j1e]=React__namespace.useState("drop"),T1e=React__namespace.useRef(null),M1e=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const b0e=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&b0e("fileList"in e1e||!("value"in e1e),"usage","`value` is not a valid prop, do you mean `fileList`?"),b0e.deprecated(!("transformFile"in e1e),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const b0e=Date.now();(n1e||[]).forEach((y0e,P0e)=>{!y0e.uid&&!Object.isFrozen(y0e)&&(y0e.uid=`__AUTO__${b0e}_${P0e}__`)})},[n1e]);const k1e=(b0e,y0e,P0e)=>{let C0e=_toConsumableArray(y0e),A0e=!1;C1e===1?C0e=C0e.slice(-1):C1e&&(A0e=C0e.length>C1e,C0e=C0e.slice(0,C1e)),ReactDOM.flushSync(()=>{L1e(C0e)});const k0e={file:b0e,fileList:C0e};P0e&&(k0e.event=P0e),(!A0e||b0e.status==="removed"||C0e.some(J0e=>J0e.uid===b0e.uid))&&ReactDOM.flushSync(()=>{u1e==null||u1e(k0e)})},U1e=(b0e,y0e)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:P0e,transformFile:C0e}=e1e;let A0e=b0e;if(P0e){const k0e=yield P0e(b0e,y0e);if(k0e===!1)return!1;if(delete b0e[LIST_IGNORE],k0e===LIST_IGNORE)return Object.defineProperty(b0e,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof k0e=="object"&&k0e&&(A0e=k0e)}return C0e&&(A0e=yield C0e(A0e)),A0e}),W1e=b0e=>{const y0e=b0e.filter(A0e=>!A0e.file[LIST_IGNORE]);if(!y0e.length)return;const P0e=y0e.map(A0e=>file2Obj(A0e.file));let C0e=_toConsumableArray(B1e);P0e.forEach(A0e=>{C0e=updateFileList(A0e,C0e)}),P0e.forEach((A0e,k0e)=>{let J0e=A0e;if(y0e[k0e].parsedFile)A0e.status="uploading";else{const{originFileObj:G0e}=A0e;let Y0e;try{Y0e=new File([G0e],G0e.name,{type:G0e.type})}catch{Y0e=new Blob([G0e],{type:G0e.type}),Y0e.name=G0e.name,Y0e.lastModifiedDate=new Date,Y0e.lastModified=new Date().getTime()}Y0e.uid=A0e.uid,J0e=Y0e}k1e(J0e,C0e)})},V1e=(b0e,y0e,P0e)=>{try{typeof b0e=="string"&&(b0e=JSON.parse(b0e))}catch{}if(!getFileItem(y0e,B1e))return;const C0e=file2Obj(y0e);C0e.status="done",C0e.percent=100,C0e.response=b0e,C0e.xhr=P0e;const A0e=updateFileList(C0e,B1e);k1e(C0e,A0e)},K1e=(b0e,y0e)=>{if(!getFileItem(y0e,B1e))return;const P0e=file2Obj(y0e);P0e.status="uploading",P0e.percent=b0e.percent;const C0e=updateFileList(P0e,B1e);k1e(P0e,C0e,b0e)},G1e=(b0e,y0e,P0e)=>{if(!getFileItem(P0e,B1e))return;const C0e=file2Obj(P0e);C0e.error=b0e,C0e.response=y0e,C0e.status="error";const A0e=updateFileList(C0e,B1e);k1e(C0e,A0e)},q1e=b0e=>{let y0e;Promise.resolve(typeof o1e=="function"?o1e(b0e):o1e).then(P0e=>{var C0e;if(P0e===!1)return;const A0e=removeFileItem(b0e,B1e);A0e&&(y0e=Object.assign(Object.assign({},b0e),{status:"removed"}),B1e==null||B1e.forEach(k0e=>{const J0e=y0e.uid!==void 0?"uid":"name";k0e[J0e]===y0e[J0e]&&!Object.isFrozen(k0e)&&(k0e.status="removed")}),(C0e=T1e.current)===null||C0e===void 0||C0e.abort(y0e),k1e(y0e,A0e))})},Q1e=b0e=>{j1e(b0e.type),b0e.type==="drop"&&(c1e==null||c1e(b0e))};React__namespace.useImperativeHandle(t1e,()=>({onBatchStart:W1e,onSuccess:V1e,onProgress:K1e,onError:G1e,fileList:B1e,upload:T1e.current,nativeElement:M1e.current}));const{getPrefixCls:X1e,direction:t0e,upload:a0e}=React__namespace.useContext(ConfigContext),J1e=X1e("upload",$1e),o0e=Object.assign(Object.assign({onBatchStart:W1e,onError:G1e,onProgress:K1e,onSuccess:V1e},e1e),{data:x1e,multiple:O1e,action:A1e,accept:_1e,supportServerRender:P1e,prefixCls:J1e,disabled:F1e,beforeUpload:U1e,onChange:void 0,hasControlInside:R1e});delete o0e.className,delete o0e.style,(!b1e||F1e)&&delete o0e.id;const p0e=`${J1e}-wrapper`,[m0e,i0e,u0e]=useStyle(J1e,p0e),[c0e]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:l0e,showPreviewIcon:h0e,showDownloadIcon:w0e,removeIcon:v0e,previewIcon:x0e,downloadIcon:M0e}=typeof a1e=="boolean"?{}:a1e,j0e=typeof l0e>"u"?!F1e:!!l0e,_0e=(b0e,y0e)=>a1e?React__namespace.createElement(UploadList,{prefixCls:J1e,listType:i1e,items:B1e,previewFile:f1e,onPreview:s1e,onDownload:l1e,onRemove:q1e,showRemoveIcon:j0e,showPreviewIcon:h0e,showDownloadIcon:w0e,removeIcon:v0e,previewIcon:x0e,downloadIcon:M0e,iconRender:g1e,locale:Object.assign(Object.assign({},c0e),p1e),isImageUrl:m1e,progress:v1e,appendAction:b0e,appendActionVisible:y0e,itemRender:S1e,disabled:F1e}):b0e,H0e=classNames(p0e,h1e,N1e,i0e,u0e,a0e==null?void 0:a0e.className,{[`${J1e}-rtl`]:t0e==="rtl",[`${J1e}-picture-card-wrapper`]:i1e==="picture-card",[`${J1e}-picture-circle-wrapper`]:i1e==="picture-circle"}),T0e=Object.assign(Object.assign({},a0e==null?void 0:a0e.style),E1e);if(y1e==="drag"){const b0e=classNames(i0e,J1e,`${J1e}-drag`,{[`${J1e}-drag-uploading`]:B1e.some(y0e=>y0e.status==="uploading"),[`${J1e}-drag-hover`]:z1e==="dragover",[`${J1e}-disabled`]:F1e,[`${J1e}-rtl`]:t0e==="rtl"});return m0e(React__namespace.createElement("span",{className:H0e,ref:M1e},React__namespace.createElement("div",{className:b0e,style:T0e,onDrop:Q1e,onDragOver:Q1e,onDragLeave:Q1e},React__namespace.createElement(Upload$2,Object.assign({},o0e,{ref:T1e,className:`${J1e}-btn`}),React__namespace.createElement("div",{className:`${J1e}-drag-container`},b1e))),_0e()))}const K0e=classNames(J1e,`${J1e}-select`,{[`${J1e}-disabled`]:F1e}),O0e=React__namespace.createElement("div",{className:K0e,style:b1e?void 0:{display:"none"}},React__namespace.createElement(Upload$2,Object.assign({},o0e,{ref:T1e})));return m0e(i1e==="picture-card"||i1e==="picture-circle"?React__namespace.createElement("span",{className:H0e,ref:M1e},_0e(O0e,!!b1e)):React__namespace.createElement("span",{className:H0e,ref:M1e},O0e,_0e()))},Upload$1=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$1.displayName="Upload");var __rest=function(e1e,t1e){var n1e={};for(var r1e in e1e)Object.prototype.hasOwnProperty.call(e1e,r1e)&&t1e.indexOf(r1e)<0&&(n1e[r1e]=e1e[r1e]);if(e1e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o1e=0,r1e=Object.getOwnPropertySymbols(e1e);o1e<r1e.length;o1e++)t1e.indexOf(r1e[o1e])<0&&Object.prototype.propertyIsEnumerable.call(e1e,r1e[o1e])&&(n1e[r1e[o1e]]=e1e[r1e[o1e]]);return n1e};const Dragger=React__namespace.forwardRef((e1e,t1e)=>{var{style:n1e,height:r1e,hasControlInside:o1e=!1}=e1e,a1e=__rest(e1e,["style","height","hasControlInside"]);return React__namespace.createElement(Upload$1,Object.assign({ref:t1e,hasControlInside:o1e},a1e,{type:"drag",style:Object.assign(Object.assign({},n1e),{height:r1e})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Upload=Upload$1;Upload.Dragger=Dragger;Upload.LIST_IGNORE=LIST_IGNORE;const BaseWrapper=e1e=>{var t1e;let{label:n1e,higLabel:r1e=!1,children:o1e,prompt:a1e,subTable:i1e,subTableHead:s1e=!1,subTableContent:l1e=!0,hidePrompt:u1e=!1,subTableIndex:c1e,addWrapper:f1e=!0,readonly:d1e,isRequired:p1e,...g1e}=e1e;if(!f1e)return o1e;const m1e=["UploadImage","UploadFile","Table","WithMultipleSelect","WithSingleSelect"];if(d1e){var v1e;console.log("children?.type?.displayName",o1e==null||(v1e=o1e.type)===null||v1e===void 0?void 0:v1e.displayName)}m1e.includes(o1e==null||(t1e=o1e.type)===null||t1e===void 0?void 0:t1e.displayName)&&d1e&&(d1e=!1);const $1e=jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[n1e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!r1e&&jsxRuntimeExports.jsxs("div",{className:"fh-8 ftext-gray-500 ftext-sm fflex fitems-center ".concat(r1e?" ftext-xl fmy-2 ftext-black":""),children:[n1e,p1e&&jsxRuntimeExports.jsx("span",{className:"ftext-red-500 ffont-bold",children:"*"})]}),r1e&&jsxRuntimeExports.jsxs("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:n1e}),p1e&&jsxRuntimeExports.jsx("span",{className:"ftext-red-500 ffont-bold",children:"*"})]})]}),jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-stretch ftext-gray-900 frelative",children:[d1e&&jsxRuntimeExports.jsx("div",{className:"fw-full fh-full fbg-gray-100 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"}),o1e]}),!u1e&&a1e&&jsxRuntimeExports.jsx("div",{className:"ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",children:a1e})]});return i1e?jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[s1e&&n1e&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-[#fafafa] ftext-sm fflex fitems-center fborder-b fpl-2 f-mx-1",children:jsxRuntimeExports.jsxs("div",{className:"fw-full fborder-r fborder-r-[#e9e9e9]",children:[n1e,p1e&&jsxRuntimeExports.jsx("span",{className:"ftext-red-500",children:"*"})]})}),l1e&&jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-stretch frelative fpy-2",children:[d1e&&jsxRuntimeExports.jsx("div",{className:"fw-full fh-full fbg-gray-50 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"}),o1e]})]}):$1e};var lodash={exports:{}};/**
|
324
|
+
`]:{zIndex:10,width:r1e,margin:`0 ${unit$1(e1e.marginXXS)}`,fontSize:r1e,cursor:"pointer",transition:`all ${e1e.motionDurationSlow}`,color:o1e,"&:hover":{color:o1e},svg:{verticalAlign:"baseline"}}},[`${s1e}-thumbnail, ${s1e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s1e}-name`]:{display:"none",textAlign:"center"},[`${s1e}-file + ${s1e}-name`]:{position:"absolute",bottom:e1e.margin,display:"block",width:`calc(100% - ${unit$1(a1e(e1e.paddingXS).mul(2).equal())})`},[`${s1e}-uploading`]:{[`&${s1e}`]:{backgroundColor:e1e.colorFillAlter},[`&::before, ${n1e}-eye, ${n1e}-download, ${n1e}-delete`]:{display:"none"}},[`${s1e}-progress`]:{bottom:e1e.marginXL,width:`calc(100% - ${unit$1(a1e(e1e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t1e}-wrapper${t1e}-picture-circle-wrapper`]:{[`${t1e}${t1e}-select`]:{borderRadius:"50%"}}}},genRtlStyle=e1e=>{const{componentCls:t1e}=e1e;return{[`${t1e}-rtl`]:{direction:"rtl"}}},genBaseStyle=e1e=>{const{componentCls:t1e,colorTextDisabled:n1e}=e1e;return{[`${t1e}-wrapper`]:Object.assign(Object.assign({},resetComponent(e1e)),{[t1e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t1e}-select`]:{display:"inline-block"},[`${t1e}-disabled`]:{color:n1e,cursor:"not-allowed"}})}},prepareComponentToken=e1e=>({actionsColor:e1e.colorTextDescription}),useStyle=genStyleHooks("Upload",e1e=>{const{fontSizeHeading3:t1e,fontHeight:n1e,lineWidth:r1e,controlHeightLG:o1e,calc:a1e}=e1e,i1e=merge(e1e,{uploadThumbnailSize:a1e(t1e).mul(2).equal(),uploadProgressOffset:a1e(a1e(n1e).div(2)).add(r1e).equal(),uploadPicCardSize:a1e(o1e).mul(2.55).equal()});return[genBaseStyle(i1e),genDraggerStyle(i1e),genPictureStyle(i1e),genPictureCardStyle(i1e),genListStyle(i1e),genMotionStyle(i1e),genRtlStyle(i1e),genCollapseMotion(i1e)]},prepareComponentToken);var FileTwoTone$1={icon:function(t1e,n1e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n1e}},{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:t1e}}]}},name:"file",theme:"twotone"},FileTwoTone=function(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,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(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,icon:PaperClipOutlined$1}))},RefIcon$6=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="PaperClipOutlined");var PictureTwoTone$1={icon:function(t1e,n1e){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:t1e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n1e}},{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:n1e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n1e}},{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:t1e}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,icon:PictureTwoTone$1}))},RefIcon$5=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="PictureTwoTone");function file2Obj(e1e){return Object.assign(Object.assign({},e1e),{lastModified:e1e.lastModified,lastModifiedDate:e1e.lastModifiedDate,name:e1e.name,size:e1e.size,type:e1e.type,uid:e1e.uid,percent:0,originFileObj:e1e})}function updateFileList(e1e,t1e){const n1e=_toConsumableArray(t1e),r1e=n1e.findIndex(o1e=>{let{uid:a1e}=o1e;return a1e===e1e.uid});return r1e===-1?n1e.push(e1e):n1e[r1e]=e1e,n1e}function getFileItem(e1e,t1e){const n1e=e1e.uid!==void 0?"uid":"name";return t1e.filter(r1e=>r1e[n1e]===e1e[n1e])[0]}function removeFileItem(e1e,t1e){const n1e=e1e.uid!==void 0?"uid":"name",r1e=t1e.filter(o1e=>o1e[n1e]!==e1e[n1e]);return r1e.length===t1e.length?null:r1e}const extname=function(){const t1e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r1e=t1e[t1e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r1e)||[""])[0]},isImageFileType=e1e=>e1e.indexOf("image/")===0,isImageUrl=e1e=>{if(e1e.type&&!e1e.thumbUrl)return isImageFileType(e1e.type);const t1e=e1e.thumbUrl||e1e.url||"",n1e=extname(t1e);return/^data:image\//.test(t1e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n1e)?!0:!(/^data:/.test(t1e)||n1e)},MEASURE_SIZE=200;function previewImage(e1e){return new Promise(t1e=>{if(!e1e.type||!isImageFileType(e1e.type)){t1e("");return}const n1e=document.createElement("canvas");n1e.width=MEASURE_SIZE,n1e.height=MEASURE_SIZE,n1e.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(n1e);const r1e=n1e.getContext("2d"),o1e=new Image;if(o1e.onload=()=>{const{width:a1e,height:i1e}=o1e;let s1e=MEASURE_SIZE,l1e=MEASURE_SIZE,u1e=0,c1e=0;a1e>i1e?(l1e=i1e*(MEASURE_SIZE/a1e),c1e=-(l1e-s1e)/2):(s1e=a1e*(MEASURE_SIZE/i1e),u1e=-(s1e-l1e)/2),r1e.drawImage(o1e,u1e,c1e,s1e,l1e);const f1e=n1e.toDataURL();document.body.removeChild(n1e),window.URL.revokeObjectURL(o1e.src),t1e(f1e)},o1e.crossOrigin="anonymous",e1e.type.startsWith("image/svg+xml")){const a1e=new FileReader;a1e.onload=()=>{a1e.result&&typeof a1e.result=="string"&&(o1e.src=a1e.result)},a1e.readAsDataURL(e1e)}else if(e1e.type.startsWith("image/gif")){const a1e=new FileReader;a1e.onload=()=>{a1e.result&&t1e(a1e.result)},a1e.readAsDataURL(e1e)}else o1e.src=window.URL.createObjectURL(e1e)})}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(t1e,n1e){return React__namespace.createElement(Icon$2,_extends({},t1e,{ref:n1e,icon:DownloadOutlined$1}))},RefIcon$4=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="DownloadOutlined");const ListItem=React__namespace.forwardRef((e1e,t1e)=>{let{prefixCls:n1e,className:r1e,style:o1e,locale:a1e,listType:i1e,file:s1e,items:l1e,progress:u1e,iconRender:c1e,actionIconRender:f1e,itemRender:d1e,isImgUrl:p1e,showPreviewIcon:g1e,showRemoveIcon:m1e,showDownloadIcon:v1e,previewIcon:$1e,removeIcon:h1e,downloadIcon:y1e,onPreview:b1e,onDownload:E1e,onClose:S1e}=e1e;var C1e,x1e;const{status:O1e}=s1e,[R1e,A1e]=React__namespace.useState(O1e);React__namespace.useEffect(()=>{O1e!=="removed"&&A1e(O1e)},[O1e]);const[_1e,P1e]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const Q1e=setTimeout(()=>{P1e(!0)},300);return()=>{clearTimeout(Q1e)}},[]);const N1e=c1e(s1e);let I1e=React__namespace.createElement("div",{className:`${n1e}-icon`},N1e);if(i1e==="picture"||i1e==="picture-card"||i1e==="picture-circle")if(R1e==="uploading"||!s1e.thumbUrl&&!s1e.url){const Q1e=classNames(`${n1e}-list-item-thumbnail`,{[`${n1e}-list-item-file`]:R1e!=="uploading"});I1e=React__namespace.createElement("div",{className:Q1e},N1e)}else{const Q1e=p1e!=null&&p1e(s1e)?React__namespace.createElement("img",{src:s1e.thumbUrl||s1e.url,alt:s1e.name,className:`${n1e}-list-item-image`,crossOrigin:s1e.crossOrigin}):N1e,X1e=classNames(`${n1e}-list-item-thumbnail`,{[`${n1e}-list-item-file`]:p1e&&!p1e(s1e)});I1e=React__namespace.createElement("a",{className:X1e,onClick:t0e=>b1e(s1e,t0e),href:s1e.url||s1e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q1e)}const F1e=classNames(`${n1e}-list-item`,`${n1e}-list-item-${R1e}`),B1e=typeof s1e.linkProps=="string"?JSON.parse(s1e.linkProps):s1e.linkProps,L1e=m1e?f1e((typeof h1e=="function"?h1e(s1e):h1e)||React__namespace.createElement(RefIcon$8,null),()=>S1e(s1e),n1e,a1e.removeFile,!0):null,z1e=v1e&&R1e==="done"?f1e((typeof y1e=="function"?y1e(s1e):y1e)||React__namespace.createElement(RefIcon$4,null),()=>E1e(s1e),n1e,a1e.downloadFile):null,j1e=i1e!=="picture-card"&&i1e!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${n1e}-list-item-actions`,{picture:i1e==="picture"})},z1e,L1e),T1e=classNames(`${n1e}-list-item-name`),M1e=s1e.url?[React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T1e,title:s1e.name},B1e,{href:s1e.url,onClick:Q1e=>b1e(s1e,Q1e)}),s1e.name),j1e]:[React__namespace.createElement("span",{key:"view",className:T1e,onClick:Q1e=>b1e(s1e,Q1e),title:s1e.name},s1e.name),j1e],k1e=g1e&&(s1e.url||s1e.thumbUrl)?React__namespace.createElement("a",{href:s1e.url||s1e.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q1e=>b1e(s1e,Q1e),title:a1e.previewFile},typeof $1e=="function"?$1e(s1e):$1e||React__namespace.createElement(RefIcon$p,null)):null,U1e=(i1e==="picture-card"||i1e==="picture-circle")&&R1e!=="uploading"&&React__namespace.createElement("span",{className:`${n1e}-list-item-actions`},k1e,R1e==="done"&&z1e,L1e),{getPrefixCls:W1e}=React__namespace.useContext(ConfigContext),V1e=W1e(),K1e=React__namespace.createElement("div",{className:F1e},I1e,M1e,U1e,_1e&&React__namespace.createElement(CSSMotion,{motionName:`${V1e}-fade`,visible:R1e==="uploading",motionDeadline:2e3},Q1e=>{let{className:X1e}=Q1e;const t0e="percent"in s1e?React__namespace.createElement(Progress,Object.assign({},u1e,{type:"line",percent:s1e.percent,"aria-label":s1e["aria-label"],"aria-labelledby":s1e["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${n1e}-list-item-progress`,X1e)},t0e)})),G1e=s1e.response&&typeof s1e.response=="string"?s1e.response:((C1e=s1e.error)===null||C1e===void 0?void 0:C1e.statusText)||((x1e=s1e.error)===null||x1e===void 0?void 0:x1e.message)||a1e.uploadError,q1e=R1e==="error"?React__namespace.createElement(Tooltip,{title:G1e,getPopupContainer:Q1e=>Q1e.parentNode},K1e):K1e;return React__namespace.createElement("div",{className:classNames(`${n1e}-list-item-container`,r1e),style:o1e,ref:t1e},d1e?d1e(q1e,s1e,l1e,{download:E1e.bind(null,s1e),preview:b1e.bind(null,s1e),remove:S1e.bind(null,s1e)}):q1e)}),InternalUploadList=(e1e,t1e)=>{const{listType:n1e="text",previewFile:r1e=previewImage,onPreview:o1e,onDownload:a1e,onRemove:i1e,locale:s1e,iconRender:l1e,isImageUrl:u1e=isImageUrl,prefixCls:c1e,items:f1e=[],showPreviewIcon:d1e=!0,showRemoveIcon:p1e=!0,showDownloadIcon:g1e=!1,removeIcon:m1e,previewIcon:v1e,downloadIcon:$1e,progress:h1e={size:[-1,2],showInfo:!1},appendAction:y1e,appendActionVisible:b1e=!0,itemRender:E1e,disabled:S1e}=e1e,C1e=useForceUpdate(),[x1e,O1e]=React__namespace.useState(!1);React__namespace.useEffect(()=>{n1e!=="picture"&&n1e!=="picture-card"&&n1e!=="picture-circle"||(f1e||[]).forEach(k1e=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(k1e.originFileObj instanceof File||k1e.originFileObj)||k1e.thumbUrl!==void 0||r1e&&r1e(k1e.originFileObj).then(U1e=>{k1e.thumbUrl=U1e||"",C1e()})})},[n1e,f1e,r1e]),React__namespace.useEffect(()=>{O1e(!0)},[]);const R1e=(k1e,U1e)=>{if(o1e)return U1e==null||U1e.preventDefault(),o1e(k1e)},A1e=k1e=>{typeof a1e=="function"?a1e(k1e):k1e.url&&window.open(k1e.url)},_1e=k1e=>{i1e==null||i1e(k1e)},P1e=k1e=>{if(l1e)return l1e(k1e,n1e);const U1e=k1e.status==="uploading",W1e=u1e&&u1e(k1e)?React__namespace.createElement(RefIcon$5,null):React__namespace.createElement(RefIcon$7,null);let V1e=U1e?React__namespace.createElement(RefIcon$y,null):React__namespace.createElement(RefIcon$6,null);return n1e==="picture"?V1e=U1e?React__namespace.createElement(RefIcon$y,null):W1e:(n1e==="picture-card"||n1e==="picture-circle")&&(V1e=U1e?s1e.uploading:W1e),V1e},N1e=(k1e,U1e,W1e,V1e,K1e)=>{const G1e={type:"text",size:"small",title:V1e,onClick:q1e=>{var Q1e,X1e;U1e(),React__namespace.isValidElement(k1e)&&((X1e=(Q1e=k1e.props).onClick)===null||X1e===void 0||X1e.call(Q1e,q1e))},className:`${W1e}-list-item-action`};if(K1e&&(G1e.disabled=S1e),React__namespace.isValidElement(k1e)){const q1e=cloneElement(k1e,Object.assign(Object.assign({},k1e.props),{onClick:()=>{}}));return React__namespace.createElement(Button$1,Object.assign({},G1e,{icon:q1e}))}return React__namespace.createElement(Button$1,Object.assign({},G1e),React__namespace.createElement("span",null,k1e))};React__namespace.useImperativeHandle(t1e,()=>({handlePreview:R1e,handleDownload:A1e}));const{getPrefixCls:I1e}=React__namespace.useContext(ConfigContext),F1e=I1e("upload",c1e),B1e=I1e(),L1e=classNames(`${F1e}-list`,`${F1e}-list-${n1e}`),z1e=_toConsumableArray(f1e.map(k1e=>({key:k1e.uid,file:k1e})));let T1e={motionDeadline:2e3,motionName:`${F1e}-${n1e==="picture-card"||n1e==="picture-circle"?"animate-inline":"animate"}`,keys:z1e,motionAppear:x1e};const M1e=React__namespace.useMemo(()=>{const k1e=Object.assign({},initCollapseMotion$1(B1e));return delete k1e.onAppearEnd,delete k1e.onEnterEnd,delete k1e.onLeaveEnd,k1e},[B1e]);return n1e!=="picture-card"&&n1e!=="picture-circle"&&(T1e=Object.assign(Object.assign({},M1e),T1e)),React__namespace.createElement("div",{className:L1e},React__namespace.createElement(CSSMotionList,Object.assign({},T1e,{component:!1}),k1e=>{let{key:U1e,file:W1e,className:V1e,style:K1e}=k1e;return React__namespace.createElement(ListItem,{key:U1e,locale:s1e,prefixCls:F1e,className:V1e,style:K1e,file:W1e,items:f1e,progress:h1e,listType:n1e,isImgUrl:u1e,showPreviewIcon:d1e,showRemoveIcon:p1e,showDownloadIcon:g1e,removeIcon:m1e,previewIcon:v1e,downloadIcon:$1e,iconRender:P1e,actionIconRender:N1e,itemRender:E1e,onPreview:R1e,onDownload:A1e,onClose:_1e})}),y1e&&React__namespace.createElement(CSSMotion,Object.assign({},T1e,{visible:b1e,forceRender:!0}),k1e=>{let{className:U1e,style:W1e}=k1e;return cloneElement(y1e,V1e=>({className:classNames(V1e.className,U1e),style:Object.assign(Object.assign(Object.assign({},W1e),{pointerEvents:U1e?"none":void 0}),V1e.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");var __awaiter=function(e1e,t1e,n1e,r1e){function o1e(a1e){return a1e instanceof n1e?a1e:new n1e(function(i1e){i1e(a1e)})}return new(n1e||(n1e=Promise))(function(a1e,i1e){function s1e(c1e){try{u1e(r1e.next(c1e))}catch(f1e){i1e(f1e)}}function l1e(c1e){try{u1e(r1e.throw(c1e))}catch(f1e){i1e(f1e)}}function u1e(c1e){c1e.done?a1e(c1e.value):o1e(c1e.value).then(s1e,l1e)}u1e((r1e=r1e.apply(e1e,t1e||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(e1e,t1e)=>{const{fileList:n1e,defaultFileList:r1e,onRemove:o1e,showUploadList:a1e=!0,listType:i1e="text",onPreview:s1e,onDownload:l1e,onChange:u1e,onDrop:c1e,previewFile:f1e,disabled:d1e,locale:p1e,iconRender:g1e,isImageUrl:m1e,progress:v1e,prefixCls:$1e,className:h1e,type:y1e="select",children:b1e,style:E1e,itemRender:S1e,maxCount:C1e,data:x1e={},multiple:O1e=!1,hasControlInside:R1e=!0,action:A1e="",accept:_1e="",supportServerRender:P1e=!0,rootClassName:N1e}=e1e,I1e=React__namespace.useContext(DisabledContext),F1e=d1e??I1e,[B1e,L1e]=useMergedState(r1e||[],{value:n1e,postState:b0e=>b0e??[]}),[z1e,j1e]=React__namespace.useState("drop"),T1e=React__namespace.useRef(null),M1e=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const b0e=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&b0e("fileList"in e1e||!("value"in e1e),"usage","`value` is not a valid prop, do you mean `fileList`?"),b0e.deprecated(!("transformFile"in e1e),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const b0e=Date.now();(n1e||[]).forEach((y0e,P0e)=>{!y0e.uid&&!Object.isFrozen(y0e)&&(y0e.uid=`__AUTO__${b0e}_${P0e}__`)})},[n1e]);const k1e=(b0e,y0e,P0e)=>{let C0e=_toConsumableArray(y0e),A0e=!1;C1e===1?C0e=C0e.slice(-1):C1e&&(A0e=C0e.length>C1e,C0e=C0e.slice(0,C1e)),ReactDOM.flushSync(()=>{L1e(C0e)});const k0e={file:b0e,fileList:C0e};P0e&&(k0e.event=P0e),(!A0e||b0e.status==="removed"||C0e.some(J0e=>J0e.uid===b0e.uid))&&ReactDOM.flushSync(()=>{u1e==null||u1e(k0e)})},U1e=(b0e,y0e)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:P0e,transformFile:C0e}=e1e;let A0e=b0e;if(P0e){const k0e=yield P0e(b0e,y0e);if(k0e===!1)return!1;if(delete b0e[LIST_IGNORE],k0e===LIST_IGNORE)return Object.defineProperty(b0e,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof k0e=="object"&&k0e&&(A0e=k0e)}return C0e&&(A0e=yield C0e(A0e)),A0e}),W1e=b0e=>{const y0e=b0e.filter(A0e=>!A0e.file[LIST_IGNORE]);if(!y0e.length)return;const P0e=y0e.map(A0e=>file2Obj(A0e.file));let C0e=_toConsumableArray(B1e);P0e.forEach(A0e=>{C0e=updateFileList(A0e,C0e)}),P0e.forEach((A0e,k0e)=>{let J0e=A0e;if(y0e[k0e].parsedFile)A0e.status="uploading";else{const{originFileObj:G0e}=A0e;let Y0e;try{Y0e=new File([G0e],G0e.name,{type:G0e.type})}catch{Y0e=new Blob([G0e],{type:G0e.type}),Y0e.name=G0e.name,Y0e.lastModifiedDate=new Date,Y0e.lastModified=new Date().getTime()}Y0e.uid=A0e.uid,J0e=Y0e}k1e(J0e,C0e)})},V1e=(b0e,y0e,P0e)=>{try{typeof b0e=="string"&&(b0e=JSON.parse(b0e))}catch{}if(!getFileItem(y0e,B1e))return;const C0e=file2Obj(y0e);C0e.status="done",C0e.percent=100,C0e.response=b0e,C0e.xhr=P0e;const A0e=updateFileList(C0e,B1e);k1e(C0e,A0e)},K1e=(b0e,y0e)=>{if(!getFileItem(y0e,B1e))return;const P0e=file2Obj(y0e);P0e.status="uploading",P0e.percent=b0e.percent;const C0e=updateFileList(P0e,B1e);k1e(P0e,C0e,b0e)},G1e=(b0e,y0e,P0e)=>{if(!getFileItem(P0e,B1e))return;const C0e=file2Obj(P0e);C0e.error=b0e,C0e.response=y0e,C0e.status="error";const A0e=updateFileList(C0e,B1e);k1e(C0e,A0e)},q1e=b0e=>{let y0e;Promise.resolve(typeof o1e=="function"?o1e(b0e):o1e).then(P0e=>{var C0e;if(P0e===!1)return;const A0e=removeFileItem(b0e,B1e);A0e&&(y0e=Object.assign(Object.assign({},b0e),{status:"removed"}),B1e==null||B1e.forEach(k0e=>{const J0e=y0e.uid!==void 0?"uid":"name";k0e[J0e]===y0e[J0e]&&!Object.isFrozen(k0e)&&(k0e.status="removed")}),(C0e=T1e.current)===null||C0e===void 0||C0e.abort(y0e),k1e(y0e,A0e))})},Q1e=b0e=>{j1e(b0e.type),b0e.type==="drop"&&(c1e==null||c1e(b0e))};React__namespace.useImperativeHandle(t1e,()=>({onBatchStart:W1e,onSuccess:V1e,onProgress:K1e,onError:G1e,fileList:B1e,upload:T1e.current,nativeElement:M1e.current}));const{getPrefixCls:X1e,direction:t0e,upload:a0e}=React__namespace.useContext(ConfigContext),J1e=X1e("upload",$1e),o0e=Object.assign(Object.assign({onBatchStart:W1e,onError:G1e,onProgress:K1e,onSuccess:V1e},e1e),{data:x1e,multiple:O1e,action:A1e,accept:_1e,supportServerRender:P1e,prefixCls:J1e,disabled:F1e,beforeUpload:U1e,onChange:void 0,hasControlInside:R1e});delete o0e.className,delete o0e.style,(!b1e||F1e)&&delete o0e.id;const p0e=`${J1e}-wrapper`,[m0e,i0e,u0e]=useStyle(J1e,p0e),[c0e]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:l0e,showPreviewIcon:h0e,showDownloadIcon:w0e,removeIcon:v0e,previewIcon:x0e,downloadIcon:M0e}=typeof a1e=="boolean"?{}:a1e,j0e=typeof l0e>"u"?!F1e:!!l0e,_0e=(b0e,y0e)=>a1e?React__namespace.createElement(UploadList,{prefixCls:J1e,listType:i1e,items:B1e,previewFile:f1e,onPreview:s1e,onDownload:l1e,onRemove:q1e,showRemoveIcon:j0e,showPreviewIcon:h0e,showDownloadIcon:w0e,removeIcon:v0e,previewIcon:x0e,downloadIcon:M0e,iconRender:g1e,locale:Object.assign(Object.assign({},c0e),p1e),isImageUrl:m1e,progress:v1e,appendAction:b0e,appendActionVisible:y0e,itemRender:S1e,disabled:F1e}):b0e,H0e=classNames(p0e,h1e,N1e,i0e,u0e,a0e==null?void 0:a0e.className,{[`${J1e}-rtl`]:t0e==="rtl",[`${J1e}-picture-card-wrapper`]:i1e==="picture-card",[`${J1e}-picture-circle-wrapper`]:i1e==="picture-circle"}),T0e=Object.assign(Object.assign({},a0e==null?void 0:a0e.style),E1e);if(y1e==="drag"){const b0e=classNames(i0e,J1e,`${J1e}-drag`,{[`${J1e}-drag-uploading`]:B1e.some(y0e=>y0e.status==="uploading"),[`${J1e}-drag-hover`]:z1e==="dragover",[`${J1e}-disabled`]:F1e,[`${J1e}-rtl`]:t0e==="rtl"});return m0e(React__namespace.createElement("span",{className:H0e,ref:M1e},React__namespace.createElement("div",{className:b0e,style:T0e,onDrop:Q1e,onDragOver:Q1e,onDragLeave:Q1e},React__namespace.createElement(Upload$2,Object.assign({},o0e,{ref:T1e,className:`${J1e}-btn`}),React__namespace.createElement("div",{className:`${J1e}-drag-container`},b1e))),_0e()))}const K0e=classNames(J1e,`${J1e}-select`,{[`${J1e}-disabled`]:F1e}),O0e=React__namespace.createElement("div",{className:K0e,style:b1e?void 0:{display:"none"}},React__namespace.createElement(Upload$2,Object.assign({},o0e,{ref:T1e})));return m0e(i1e==="picture-card"||i1e==="picture-circle"?React__namespace.createElement("span",{className:H0e,ref:M1e},_0e(O0e,!!b1e)):React__namespace.createElement("span",{className:H0e,ref:M1e},O0e,_0e()))},Upload$1=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$1.displayName="Upload");var __rest=function(e1e,t1e){var n1e={};for(var r1e in e1e)Object.prototype.hasOwnProperty.call(e1e,r1e)&&t1e.indexOf(r1e)<0&&(n1e[r1e]=e1e[r1e]);if(e1e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o1e=0,r1e=Object.getOwnPropertySymbols(e1e);o1e<r1e.length;o1e++)t1e.indexOf(r1e[o1e])<0&&Object.prototype.propertyIsEnumerable.call(e1e,r1e[o1e])&&(n1e[r1e[o1e]]=e1e[r1e[o1e]]);return n1e};const Dragger=React__namespace.forwardRef((e1e,t1e)=>{var{style:n1e,height:r1e,hasControlInside:o1e=!1}=e1e,a1e=__rest(e1e,["style","height","hasControlInside"]);return React__namespace.createElement(Upload$1,Object.assign({ref:t1e,hasControlInside:o1e},a1e,{type:"drag",style:Object.assign(Object.assign({},n1e),{height:r1e})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Upload=Upload$1;Upload.Dragger=Dragger;Upload.LIST_IGNORE=LIST_IGNORE;const BaseWrapper=e1e=>{var t1e;let{label:n1e,higLabel:r1e=!1,children:o1e,prompt:a1e,subTable:i1e,subTableHead:s1e=!1,subTableContent:l1e=!0,hidePrompt:u1e=!1,subTableIndex:c1e,addWrapper:f1e=!0,defaultValue:d1e,onChange:p1e,readonly:g1e,isRequired:m1e,...v1e}=e1e;if(React.useEffect(()=>{d1e&&typeof p1e=="function"&&p1e(d1e)},[d1e]),!f1e)return o1e;const $1e=["UploadImage","UploadFile","Table","WithMultipleSelect","WithSingleSelect"];if(g1e){var h1e;console.log("children?.type?.displayName",o1e==null||(h1e=o1e.type)===null||h1e===void 0?void 0:h1e.displayName)}$1e.includes(o1e==null||(t1e=o1e.type)===null||t1e===void 0?void 0:t1e.displayName)&&g1e&&(g1e=!1);const y1e=jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[n1e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!r1e&&jsxRuntimeExports.jsxs("div",{className:"fh-8 ftext-gray-500 ftext-sm fflex fitems-center ".concat(r1e?" ftext-xl fmy-2 ftext-black":""),children:[n1e,m1e&&jsxRuntimeExports.jsx("span",{className:"ftext-red-500 ffont-bold",children:"*"})]}),r1e&&jsxRuntimeExports.jsxs("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:n1e}),m1e&&jsxRuntimeExports.jsx("span",{className:"ftext-red-500 ffont-bold",children:"*"})]})]}),jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-stretch ftext-gray-900 frelative",children:[g1e&&jsxRuntimeExports.jsx("div",{className:"fw-full fh-full fbg-gray-100 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"}),o1e]}),!u1e&&a1e&&jsxRuntimeExports.jsx("div",{className:"ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",children:a1e})]});return i1e?jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[s1e&&n1e&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-[#fafafa] ftext-sm fflex fitems-center fborder-b fpl-2 f-mx-1",children:jsxRuntimeExports.jsxs("div",{className:"fw-full fborder-r fborder-r-[#e9e9e9]",children:[n1e,m1e&&jsxRuntimeExports.jsx("span",{className:"ftext-red-500",children:"*"})]})}),l1e&&jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-stretch frelative fpy-2",children:[g1e&&jsxRuntimeExports.jsx("div",{className:"fw-full fh-full fbg-gray-50 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"}),o1e]})]}):y1e};var lodash={exports:{}};/**
|
325
325
|
* @license
|
326
326
|
* Lodash <https://lodash.com/>
|
327
327
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
@@ -402,7 +402,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
402
402
|
transform: rotate(360deg);
|
403
403
|
}
|
404
404
|
}
|
405
|
-
`,useInsertStyles=function(){var t1e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,n1e=React.useContext(IconContext),r1e=n1e.csp;React.useEffect(function(){updateCSS(t1e,"@ant-design-icons",{prepend:!0,csp:r1e})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(e1e){var t1e=e1e.primaryColor,n1e=e1e.secondaryColor;twoToneColorPalette.primaryColor=t1e,twoToneColorPalette.secondaryColor=n1e||getSecondaryColor(t1e),twoToneColorPalette.calculated=!!n1e}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(t1e){var n1e=t1e.icon,r1e=t1e.className,o1e=t1e.onClick,a1e=t1e.style,i1e=t1e.primaryColor,s1e=t1e.secondaryColor,l1e=_objectWithoutProperties(t1e,_excluded$1),u1e=twoToneColorPalette;if(i1e&&(u1e={primaryColor:i1e,secondaryColor:s1e||getSecondaryColor(i1e)}),useInsertStyles(),warning(isIconDefinition(n1e),"icon should be icon definiton, but got ".concat(n1e)),!isIconDefinition(n1e))return null;var c1e=n1e;return c1e&&typeof c1e.icon=="function"&&(c1e=_objectSpread2(_objectSpread2({},c1e),{},{icon:c1e.icon(u1e.primaryColor,u1e.secondaryColor)})),generate(c1e.icon,"svg-".concat(c1e.name),_objectSpread2({className:r1e,onClick:o1e,style:a1e,"data-icon":c1e.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l1e))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(e1e){var t1e=normalizeTwoToneColors(e1e),n1e=_slicedToArray(t1e,2),r1e=n1e[0],o1e=n1e[1];return IconBase.setTwoToneColors({primaryColor:r1e,secondaryColor:o1e})}function getTwoToneColor(){var e1e=IconBase.getTwoToneColors();return e1e.calculated?[e1e.primaryColor,e1e.secondaryColor]:e1e.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(e1e,t1e){var n1e=e1e.className,r1e=e1e.icon,o1e=e1e.spin,a1e=e1e.rotate,i1e=e1e.tabIndex,s1e=e1e.onClick,l1e=e1e.twoToneColor,u1e=_objectWithoutProperties(e1e,_excluded),c1e=React__namespace.useContext(IconContext),f1e=c1e.prefixCls,d1e=f1e===void 0?"anticon":f1e,p1e=c1e.rootClassName,g1e=classNames(p1e,d1e,_defineProperty(_defineProperty({},"".concat(d1e,"-").concat(r1e.name),!!r1e.name),"".concat(d1e,"-spin"),!!o1e||r1e.name==="loading"),n1e),m1e=i1e;m1e===void 0&&s1e&&(m1e=-1);var v1e=a1e?{msTransform:"rotate(".concat(a1e,"deg)"),transform:"rotate(".concat(a1e,"deg)")}:void 0,$1e=normalizeTwoToneColors(l1e),h1e=_slicedToArray($1e,2),y1e=h1e[0],b1e=h1e[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":r1e.name},u1e),{},{ref:t1e,tabIndex:m1e,onClick:s1e,className:g1e}),React__namespace.createElement(IconBase,{icon:r1e,primaryColor:y1e,secondaryColor:b1e,style:v1e}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,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(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(e1e){let t1e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",n1e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",r1e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",o1e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",a1e=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,i1e=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(e1e,t1e,n1e,r1e,o1e,a1e,s1e=>({value:s1e[t1e],title:s1e[n1e],key:s1e[t1e],disabled:s1e[t1e]===i1e}))}function constructTree(e1e,t1e,n1e,r1e,o1e,a1e,i1e){if(!Array.isArray(e1e)||e1e.length===0)return[];const s1e=e1e.map(l1e=>({...l1e,...i1e(l1e)}));return s1e.filter(l1e=>{const u1e=s1e.filter(c1e=>l1e[t1e]===c1e[r1e]);return l1e[o1e]=u1e.length>0?u1e:[],l1e[r1e]===a1e})}const TreeSelect=e1e=>{let{request:t1e,title:n1e,disabledValue:r1e,callError:o1e,...a1e}=e1e;const[i1e,s1e]=React.useState(!1),[l1e,u1e]=React.useState([]);React.useEffect(()=>{c1e()},[]);const c1e=async()=>{if(t1e&&typeof t1e=="function"){var f1e;const d1e=await t1e();if(d1e.code>0){o1e&&typeof o1e=="function"&&o1e(d1e.message);return}let p1e=handleTree(((f1e=d1e.data)===null||f1e===void 0?void 0:f1e.list)||d1e.data||[],"id",n1e||"title",a1e.parentId||"parentId","children",0,r1e);p1e=[{value:0,title:"根节点",children:p1e}],a1e.treeData=p1e,u1e(p1e)}a1e.treeData&&u1e(a1e.treeData),s1e(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...a1e,children:i1e&&jsxRuntimeExports.jsx(TreeSelect$1,{...a1e,treeData:l1e,treeDefaultExpandAll:!0,style:{width:"100%"}})})},SearchSelect=e1e=>{let{addWrapper:t1e=!0,value:n1e,type:r1e,defaultValue:o1e,onChange:a1e,option_label:i1e,option_value:s1e,option_search:l1e,options:u1e,request:c1e,requestParams:f1e,callError:d1e,subRequest:p1e,sub_option_label:g1e="label",mode:m1e="single",sub_option_value:v1e="id",rightIcon:$1e,rightIconClick:h1e,...y1e}=e1e;const[b1e,E1e]=React.useState([]),[S1e,C1e]=React.useState(!1);React.useEffect(()=>{x1e(f1e)},[f1e]);const x1e=async _1e=>{let P1e=null;if(c1e&&typeof c1e=="function"){const N1e=await R1e(_1e);N1e&&Array.isArray(N1e)&&(P1e=n1e?N1e.find(I1e=>I1e.value==n1e):null)}u1e&&u1e.length>0&&(P1e=n1e?u1e.find(N1e=>N1e.value==n1e):null,E1e(u1e)),P1e&&a1e(P1e)},O1e=lodashExports.debounce(async _1e=>{const P1e={...f1e};P1e[l1e]=_1e,await R1e(P1e)},200),R1e=async _1e=>{try{var P1e;C1e(!0);const N1e=await c1e(_1e);if(N1e.code>0){d1e&&typeof d1e=="function"&&d1e(N1e.message);return}let I1e=((P1e=N1e.data)===null||P1e===void 0?void 0:P1e.list)||N1e.data;if(Array.isArray(I1e)){for(let F1e=0;F1e<I1e.length;F1e++){const B1e=I1e[F1e];if(typeof p1e=="function"){let L1e=[];const{data:z1e}=await p1e(B1e);z1e!=null&&z1e.list&&Array.isArray(z1e.list)&&(L1e=z1e.list.map(j1e=>({label:"".concat(B1e[i1e],"-").concat(j1e[g1e]),value:"".concat(B1e[s1e],"-").concat(j1e[v1e])}))),I1e[F1e]={...B1e,label:B1e[i1e],title:B1e[i1e],options:L1e}}I1e[F1e]={...B1e,label:B1e[i1e],value:B1e[s1e]}}E1e(I1e)}else E1e([]);return I1e}catch(N1e){console.error("fetchOptions",N1e)}finally{C1e(!1)}},A1e=_1e=>{Array.isArray(_1e)?a1e(_1e.map(P1e=>b1e.find(N1e=>N1e.value===P1e))):a1e(b1e.find(P1e=>P1e.value===_1e))};return t1e?jsxRuntimeExports.jsxs(BaseWrapper,{...y1e,children:[jsxRuntimeExports.jsx(Select$1,{notFoundContent:S1e?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:n1e,...y1e,disabled:!1,filterOption:!1,showSearch:!!(c1e&&l1e),onSearch:c1e&&l1e?O1e:null,onChange:A1e,style:{width:"100%",flex:1},options:b1e,mode:m1e}),$1e]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Select$1,{notFoundContent:S1e?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:n1e,...y1e,disabled:!1,filterOption:!1,showSearch:!!(c1e&&l1e),onSearch:c1e&&l1e?O1e:null,onChange:A1e,style:{width:"100%"},options:b1e,mode:m1e}),$1e]})},Select=e1e=>{let{request:t1e,option_label:n1e="label",option_value:r1e="id",disabledValue:o1e,callError:a1e,options:i1e,addWrapper:s1e=!0,...l1e}=e1e;const[u1e,c1e]=React.useState([]);React.useEffect(()=>{f1e()},[]);const f1e=async()=>{if(t1e&&typeof t1e=="function"){var d1e;const p1e=await t1e();if(p1e.code>0){a1e&&typeof a1e=="function"&&a1e(p1e.message);return}let g1e=((d1e=p1e.data)===null||d1e===void 0?void 0:d1e.list)||p1e.data;Array.isArray(g1e)&&g1e.length>0&&c1e(g1e.map(m1e=>({label:m1e[n1e],value:m1e[r1e]})))}i1e&&i1e.length>0&&c1e(i1e)};return s1e?jsxRuntimeExports.jsx(BaseWrapper,{...l1e,children:jsxRuntimeExports.jsx(Select$1,{...l1e,options:u1e,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...l1e,options:u1e,style:{width:"100%"}})},SingleSelect=e1e=>{let{...t1e}=e1e;return jsxRuntimeExports.jsx(Select,{...t1e,mode:"single"})},MultipleSelect=e1e=>{let{onChange:t1e,value:n1e,...r1e}=e1e;const[o1e,a1e]=React.useState([]);return React.useEffect(()=>{if(n1e&&typeof n1e=="string")try{n1e=JSON.parse(n1e),t1e(n1e)}catch{}n1e&&a1e(n1e)},[n1e]),jsxRuntimeExports.jsx(Select,{...r1e,onChange:t1e,mode:"multiple",value:o1e})},WithSingleSelect=e1e=>{var t1e,n1e;let{readItemRender:r1e,readonly:o1e,onChange:a1e,value:i1e,...s1e}=e1e;return React.useEffect(()=>{if(i1e&&typeof i1e=="string")try{i1e=JSON.parse(i1e),a1e(i1e)}catch{}},[i1e]),o1e?jsxRuntimeExports.jsx("div",{className:" fh-8 fflex fitems-center fgap-2",children:i1e&&i1e.label&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:r1e&&typeof r1e=="function"?r1e(i1e):jsxRuntimeExports.jsx("span",{children:(t1e=i1e)===null||t1e===void 0?void 0:t1e.label},"btn_".concat((n1e=i1e)===null||n1e===void 0?void 0:n1e.value))})}):jsxRuntimeExports.jsx(SearchSelect,{addWrapper:!1,...s1e,onChange:a1e,value:i1e,mode:"single",className:" fflex-1 foverflow-hidden"})},WithMultipleSelect=e1e=>{let{readItemRender:t1e,readonly:n1e,onChange:r1e,value:o1e,...a1e}=e1e;return React.useEffect(()=>{if(o1e&&typeof o1e=="string")try{o1e=JSON.parse(o1e),r1e(o1e)}catch{}},[o1e]),n1e?jsxRuntimeExports.jsx("div",{className:" fh-8 fflex fitems-center fgap-2",children:Array.isArray(o1e)&&o1e.map((i1e,s1e)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",t1e&&typeof t1e=="function"?t1e(i1e):jsxRuntimeExports.jsx("span",{children:i1e==null?void 0:i1e.label},"btn_".concat(i1e==null?void 0:i1e.value)),s1e<o1e.length-1?jsxRuntimeExports.jsx("span",{className:" ftext-gray-400",children:","}):null]}))}):jsxRuntimeExports.jsx(SearchSelect,{addWrapper:!1,...a1e,onChange:r1e,value:o1e,mode:"multiple",className:" fflex-1 foverflow-hidden"})},UserSelect=e1e=>{let{customComponent:t1e,...n1e}=e1e;return console.log("UserSelect ////// props",n1e),t1e?jsxRuntimeExports.jsx(BaseWrapper,{...n1e,children:jsxRuntimeExports.jsx(t1e,{...n1e})}):jsxRuntimeExports.jsx(BaseWrapper,{...n1e,children:jsxRuntimeExports.jsx(Input$1,{...n1e})})},ArrayTreeSelect=e1e=>{let{onChange:t1e,value:n1e,multiple:r1e,...o1e}=e1e;const[a1e,i1e]=React.useState();React.useEffect(()=>{if(n1e&&typeof n1e=="string")try{n1e=JSON.parse(n1e),t1e(n1e);return}catch{}r1e?Array.isArray(n1e)&&i1e(n1e):(Array.isArray(n1e)&&(n1e=n1e[0]),i1e(n1e))},[n1e]);const s1e=l1e=>{Array.isArray(l1e)||(l1e=[l1e]),t1e&&typeof t1e=="function"&&t1e(l1e)};return jsxRuntimeExports.jsx(TreeSelect,{...o1e,onChange:s1e,value:a1e,multiple:r1e})},DeptSelect=e1e=>{let{FetchDeptList:t1e,...n1e}=e1e;return jsxRuntimeExports.jsx(ArrayTreeSelect,{...n1e,title:"deptName",request:t1e})},PostSelect=e1e=>{let{FetchPostList:t1e,...n1e}=e1e;return jsxRuntimeExports.jsx(ArrayTreeSelect,{...n1e,title:"postName",request:t1e})};WithSingleSelect.displayName="WithSingleSelect";WithMultipleSelect.displayName="WithMultipleSelect";const WithSingleSelectForward=React.forwardRef((e1e,t1e)=>(React.useImperativeHandle(t1e,()=>({handleChange:n1e=>{e1e==null||e1e.onChange(n1e)}}),[]),jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(WithSingleSelect,{...e1e})}))),WithMultipleSelectForward=React.forwardRef((e1e,t1e)=>(React.useImperativeHandle(t1e,()=>({handleChange:n1e=>{e1e==null||e1e.onChange(n1e)}}),[]),jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(WithMultipleSelect,{...e1e})}))),Custom=React.forwardRef((e1e,t1e)=>{let{value:n1e,onChange:r1e,...o1e}=e1e;const a1e=React.useRef(0),i1e=()=>{a1e.current++,r1e(a1e.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...o1e,children:[jsxRuntimeExports.jsxs("div",{ref:t1e,children:["form-set-value:",n1e]}),jsxRuntimeExports.jsx(Button$1,{onClick:i1e,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(e1e){console.error("formula error",e1e)}return console.log("formula result",result),result.toString()},LayoutFormRow=e1e=>{let{children:t1e,layout:n1e}=e1e;n1e=n1e||"1";const r1e=i1e=>{const s1e=i1e.split(",").map(Number),l1e=24;return s1e.map(u1e=>u1e/s1e.reduce((c1e,f1e)=>c1e+f1e)*l1e)},o1e=React.useMemo(()=>r1e(n1e),[n1e]),a1e=React.useMemo(()=>React.Children.toArray(t1e).map((i1e,s1e)=>{const l1e=i1e.props,u1e=(l1e==null?void 0:l1e.componentId)||(l1e==null?void 0:l1e.__id);return u1e?(o1e==null?void 0:o1e[s1e])&&jsxRuntimeExports.jsx(Col,{span:o1e[s1e],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:u1e,rules:[{required:l1e.isRequired,message:"".concat(l1e.title,"不能为空!")}],children:i1e},"".concat(u1e,"-form-item"))},s1e):(o1e==null?void 0:o1e[s1e])&&jsxRuntimeExports.jsx(Col,{span:o1e[s1e],children:i1e},s1e)}),[t1e,o1e]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:a1e})},FormGroupTitle=e1e=>{let{title:t1e}=e1e;return t1e?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:t1e})}):null};function batchElements(e1e,t1e){const n1e=[];let r1e=[];const o1e=(i1e,s1e)=>{const l1e=i1e-s1e.length;s1e.push(...new Array(l1e).fill(React.createElement("div")))};for(const i1e of e1e){var a1e;const{_componentName:s1e}=(i1e==null?void 0:i1e.props)||{},l1e=((a1e=i1e.type)===null||a1e===void 0?void 0:a1e.displayName)||s1e;l1e&&l1e.startsWith("Layout.")?(r1e.length>0&&(o1e(t1e,r1e),n1e.push(r1e),r1e=[]),n1e.push([i1e])):(r1e.push(i1e),r1e.length===t1e&&(n1e.push(r1e),r1e=[]))}return r1e.length>0&&(o1e(t1e,r1e),n1e.push(r1e)),n1e}const FormContainer=React.forwardRef((e1e,t1e)=>{let{cols:n1e=1,children:r1e,mode:o1e="view"}=e1e;const[a1e]=Form.useForm(),[i1e,s1e]=React.useState(null),l1e=React.useRef(null);React.useImperativeHandle(t1e,()=>({formRef:a1e,initializeFieldVisibility:c1e}),[]),React.useEffect(()=>{u1e(),s1e($1e())},[r1e,n1e]);const u1e=()=>{const h1e=[];function y1e(E1e){var S1e,C1e;let x1e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;var O1e=((S1e=E1e.type)===null||S1e===void 0?void 0:S1e.displayName)||((C1e=E1e.props)===null||C1e===void 0?void 0:C1e._componentName);const{props:R1e}=E1e;if(O1e&&(O1e.startsWith("Field.")||O1e.startsWith("Layout."))){let P1e=(R1e==null?void 0:R1e.componentId)||(R1e==null?void 0:R1e.__id),N1e=[];if(x1e&&x1e!==null&&x1e!==void 0&&x1e.props){var A1e,_1e;P1e="".concat((x1e==null||(A1e=x1e.props)===null||A1e===void 0?void 0:A1e.componentId)||(x1e==null||(_1e=x1e.props)===null||_1e===void 0?void 0:_1e.__id),".").concat(P1e)}R1e!=null&&R1e.withId&&N1e.push(R1e==null?void 0:R1e.withId),R1e!=null&&R1e.withIds&&(N1e=[...N1e,...R1e==null?void 0:R1e.withIds]),h1e.push({identifier:P1e,withIds:N1e,component:E1e,componentName:O1e,fillRules:R1e==null?void 0:R1e.fillRules})}R1e!=null&&R1e.children&&React.Children.toArray(R1e==null?void 0:R1e.children).forEach(N1e=>y1e(N1e,O1e&&O1e.startsWith("Field.")?E1e:null))}l1e.current=new Map;const b1e=React.Children.toArray(r1e);for(let E1e=0;E1e<b1e.length;E1e++){const S1e=b1e[E1e];y1e(S1e)}h1e.forEach(E1e=>{const{identifier:S1e}=E1e;l1e.current.set(S1e,{children:h1e.filter(C1e=>C1e.withIds.some(x1e=>x1e==S1e)),show:!0,...E1e})}),c1e()},c1e=function(){let h1e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const y1e=a1e.getFieldsValue();for(let b1e of l1e.current.keys())f1e(b1e,y1e,!0);h1e&&s1e($1e())},f1e=function(h1e,y1e){let b1e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,E1e=!1,S1e=[];if(Array.isArray(h1e)&&(S1e=[...h1e.slice(0,-1)],h1e=h1e.filter(C1e=>typeof C1e=="string").join(".")),l1e.current.has(h1e)){const C1e=l1e.current.get(h1e),x1e=C1e.children;!b1e&&C1e!==null&&C1e!==void 0&&C1e.fillRules&&Array.isArray(C1e==null?void 0:C1e.fillRules)&&(C1e==null?void 0:C1e.fillRules.length)>0&&d1e(h1e,S1e,y1e,C1e==null?void 0:C1e.fillRules),x1e.forEach(O1e=>{O1e.component.props.withFunc&&typeof O1e.component.props.withFunc=="function"&&(E1e=p1e(y1e,O1e)),O1e.component.props.withFill&&g1e(y1e,O1e,S1e,C1e==null?void 0:C1e.componentName)})}return E1e},d1e=(h1e,y1e,b1e,E1e)=>{let S1e=m1e("fieldsValue",h1e,b1e,null);for(let x1e=0;x1e<E1e.length;x1e++){const O1e=E1e[x1e];let{source:R1e,target:A1e}=O1e,_1e=S1e==null?void 0:S1e[R1e],P1e=_1e;if((O1e==null?void 0:O1e.type)==1){if(_1e&&typeof _1e=="string")try{_1e=JSON.parse(_1e)}catch(I1e){console.log("error end",I1e)}if(!Array.isArray(_1e))return;P1e=_1e.map(I1e=>{let F1e={};if(O1e!=null&&O1e.subRules&&Array.isArray(O1e==null?void 0:O1e.subRules)&&(O1e==null?void 0:O1e.subRules.length)>0)for(let B1e=0;B1e<(O1e==null?void 0:O1e.subRules.length);B1e++){const{source:L1e,target:z1e}=O1e==null?void 0:O1e.subRules[B1e];F1e[z1e]=I1e==null?void 0:I1e[L1e]}return F1e})}else{let N1e=0;if(y1e&&Array.isArray(y1e)&&y1e.length>1&&(y1e.filter(I1e=>typeof I1e=="string").join("."),N1e=y1e[y1e.length-1],A1e=[...y1e,A1e],Array.isArray(S1e)&&S1e.length>N1e)){var C1e;P1e=(C1e=S1e[N1e])===null||C1e===void 0?void 0:C1e[R1e]}}a1e.setFieldValue(A1e,P1e),f1e(A1e,a1e.getFieldsValue())}console.log("current value",S1e)},p1e=(h1e,y1e,b1e)=>{var E1e,S1e;let C1e=!1;const x1e=y1e==null||(E1e=y1e.component)===null||E1e===void 0||(S1e=E1e.props)===null||S1e===void 0?void 0:S1e.withFunc(h1e),O1e=y1e==null?void 0:y1e.identifier;if(l1e.current.has(O1e)){const R1e=l1e.current.get(O1e);R1e.show!==x1e&&(R1e.show=x1e,l1e.current.set(O1e,R1e),C1e=!0)}return C1e},g1e=async(h1e,y1e,b1e,E1e)=>{var S1e,C1e;const x1e=y1e==null||(S1e=y1e.component)===null||S1e===void 0?void 0:S1e.props.withFill,O1e=y1e==null||(C1e=y1e.component)===null||C1e===void 0?void 0:C1e.props.withDataFetch;let R1e=0,A1e="",_1e=y1e.identifier;b1e&&Array.isArray(b1e)&&b1e.length>1&&(A1e=b1e.filter(F1e=>typeof F1e=="string").join("."),R1e=b1e[b1e.length-1],_1e.startsWith("".concat(A1e,"."))&&(_1e=[...b1e,_1e.replace("".concat(A1e,"."),"")]));let P1e=[];if(console.log("componentName",E1e),x1e!=null&&x1e.withData&&(x1e==null?void 0:x1e.withData.length)>0&&O1e&&typeof O1e=="function")for(let F1e=0;F1e<(x1e==null?void 0:x1e.withData.length);F1e++){const B1e=x1e==null?void 0:x1e.withData[F1e];let L1e={};L1e.tableName=B1e.withTable.table_name,L1e.filter={};for(let j1e=0;j1e<B1e.withCondition.length;j1e++){var N1e;const{value:T1e,column:M1e}=B1e.withCondition[j1e];let k1e=m1e(T1e.group_key,T1e.field_key,h1e,P1e);Array.isArray(k1e)&&Array.isArray(_1e)&&k1e.length>R1e&&(k1e=k1e[R1e]),E1e=="Field.WithSingleSelect"&&k1e&&(N1e=k1e)!==null&&N1e!==void 0&&N1e.value&&(k1e=k1e.value),L1e.filter[M1e.column_name]=k1e}const z1e=await O1e(L1e);z1e.code===0&&z1e.data.list&&P1e.push({id:B1e.id,data:z1e.data.list})}let I1e;if(x1e.value&&x1e.value.length>0&&(I1e=x1e.value.map(F1e=>{let B1e="";const{insert:L1e,attributes:z1e}=F1e;return typeof L1e!="string"?L1e!=null&&L1e.span&&z1e&&z1e.tagKey&&z1e.id&&(B1e=m1e(z1e.tagKey,z1e.id,h1e,P1e),Array.isArray(B1e)?Array.isArray(_1e)&&B1e.length>R1e?B1e=B1e[R1e]:B1e=JSON.stringify(B1e):B1e&&(B1e='"'.concat(B1e,'"'))):B1e=L1e,B1e})),I1e&&I1e.length>0){const F1e=evalFormula(I1e);a1e.setFieldValue(_1e,F1e),f1e(_1e,a1e.getFieldsValue())}},m1e=(h1e,y1e,b1e,E1e)=>{let S1e="";if(h1e=="fieldsValue")if(y1e.indexOf(".")>=0){const[x1e,O1e]=y1e.split("."),R1e=(b1e==null?void 0:b1e[x1e])||[];Array.isArray(R1e)?S1e=R1e.map(A1e=>(A1e==null?void 0:A1e[O1e])||""):S1e=(R1e==null?void 0:R1e[O1e])||""}else S1e=(b1e==null?void 0:b1e[y1e])||"";else{let x1e=E1e.find(O1e=>O1e.id===h1e);if(x1e&&x1e.data&&x1e.data.length>0){var C1e;S1e=((C1e=x1e.data[0])===null||C1e===void 0?void 0:C1e[y1e])||""}}return S1e},v1e=lodashExports.debounce((h1e,y1e)=>{const b1e=a1e.getFieldsValue();let E1e=!1;console.log("changedFields",h1e),h1e.forEach(S1e=>{S1e.name&&S1e.name.length>0&&(E1e=f1e(S1e.name,b1e))}),E1e&&s1e($1e())},200),$1e=()=>{const h1e=React.Children.toArray(r1e);return batchElements(h1e.filter(b1e=>{var E1e;const S1e=b1e.props.componentId||b1e.props.__id;return!l1e.current.has(S1e)||((E1e=l1e.current.get(S1e))===null||E1e===void 0?void 0:E1e.show)}),n1e).map((b1e,E1e)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:b1e.map((S1e,C1e)=>{var x1e;const{componentId:O1e,__id:R1e,_componentName:A1e,..._1e}=S1e.props,P1e=((x1e=S1e.type)===null||x1e===void 0?void 0:x1e.displayName)||A1e,N1e=O1e||R1e,I1e=P1e&&P1e.startsWith("Layout."),F1e=P1e&&P1e=="Field.Table",B1e=[];if(_1e.isRequired&&B1e.push({required:!0,message:"".concat(_1e.label,"必须填写")}),_1e.rules)if(Array.isArray(_1e.rules)){const L1e=_1e.rules.join("|");B1e.push({pattern:new RegExp(L1e),message:_1e.rulesFailMessage?_1e.rulesFailMessage:"".concat(_1e.label,"格式错误")})}else B1e.push({pattern:new RegExp(_1e.rules),message:_1e.rulesFailMessage?_1e.rulesFailMessage:"".concat(_1e.label,"格式错误")});return jsxRuntimeExports.jsx(Col,{span:I1e?24:24/b1e.length,style:{marginBottom:0},children:I1e||F1e?S1e:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:N1e,rules:B1e,children:S1e})},N1e||"col-".concat(C1e))})},"row-".concat(E1e)))};return jsxRuntimeExports.jsx(Form,{form:a1e,className:"form-container fp-0 fw-full fh-full box-border fflex fflex-col fgap-y-2"+(o1e=="desgin"?" fp-6":""),onFieldsChange:v1e,children:i1e})});function withWrap(e1e){return React.forwardRef((t1e,n1e)=>jsxRuntimeExports.jsx(e1e,{...t1e,ref:n1e,forwardedRef:n1e}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:t1e,...n1e}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...n1e,ref:t1e})}}const FormContainerWrapper=withWrap(e1e=>{let{forwardedRef:t1e,...n1e}=e1e;return jsxRuntimeExports.jsx(FormContainer,{...n1e,ref:t1e})}),CheckboxTree=e1e=>{let{request:t1e,value:n1e,onChange:r1e,callError:o1e,disabledValue:a1e,addRoot:i1e=!0,title:s1e,...l1e}=e1e;const[u1e,c1e]=React.useState(!1),[f1e,d1e]=React.useState([]);React.useEffect(()=>{p1e()},[]),React.useEffect(()=>{if(typeof n1e=="string")try{n1e=JSON.parse(n1e),r1e(n1e)}catch{}Array.isArray(n1e)&&$1e(n1e)},[n1e]);const p1e=async()=>{if(t1e&&typeof t1e=="function"){var O1e;const R1e=await t1e();if(R1e.code>0){o1e&&typeof o1e=="function"&&o1e(R1e.message);return}let A1e=handleTree(((O1e=R1e.data)===null||O1e===void 0?void 0:O1e.list)||R1e.data||[],"id",s1e||"title",(l1e==null?void 0:l1e.parentId)||"parentId","children",0,a1e);i1e&&(A1e=[{value:0,title:"根节点",children:A1e}]),l1e.treeData=A1e,console.log("treeData",A1e),d1e(A1e)}l1e.treeData&&d1e(l1e.treeData),c1e(!0)},[g1e,m1e]=React.useState([]),[v1e,$1e]=React.useState([]),[h1e,y1e]=React.useState([]),[b1e,E1e]=React.useState(!0),S1e=O1e=>{console.log("onExpand",O1e),m1e(O1e),E1e(!1)},C1e=O1e=>{console.log("onCheck",O1e),$1e(O1e),r1e(O1e)},x1e=(O1e,R1e)=>{console.log("onSelect",R1e),y1e(O1e)};return jsxRuntimeExports.jsx(BaseWrapper,{...l1e,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:S1e,onCheck:C1e,onSelect:x1e,expandedKeys:g1e,autoExpandParent:b1e,checkedKeys:v1e,selectedKeys:h1e,treeData:f1e})})},Checkbox=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(Checkbox$1,{...e1e})}),CheckboxGroup=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...e1e})}),RadioGroup=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(Radio.Group,{...e1e})}),UploadFile=e1e=>{let{value:t1e,maxCount:n1e,onChange:r1e,...o1e}=e1e;React.useEffect(()=>{if(t1e){if(typeof t1e=="string")try{t1e=JSON.parse(t1e),r1e(t1e)}catch{}console.log("value",t1e),Array.isArray(t1e)&&i1e(t1e)}},[t1e]),n1e=n1e||9;const[a1e,i1e]=React.useState([]),s1e=l1e=>{let{fileList:u1e}=l1e;console.log("newFileList",u1e),u1e=u1e.map(c1e=>(c1e.status=="done"&&c1e.response&&(c1e.url=c1e.response),c1e)),r1e(u1e.map(c1e=>({uid:c1e.uid,name:c1e.name,status:c1e.status,url:c1e.url||c1e.response||"",error:c1e.error}))),i1e(u1e)};return jsxRuntimeExports.jsx(Upload,{...o1e,listType:"text",maxCount:n1e,onChange:s1e,fileList:a1e,children:!(o1e!=null&&o1e.disabled)&&!(o1e!=null&&o1e.readonly)&&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,{}),"点击上传文件"]})})};UploadFile.displayName="UploadFile";const UploadImageWrapper$1=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(UploadFile,{...e1e})}),UploadImage=e1e=>{let{maxCount:t1e,value:n1e,onChange:r1e,...o1e}=e1e;console.log("uploadimage props",o1e),React.useEffect(()=>{if(n1e){if(console.log("value",n1e),typeof n1e=="string")try{n1e=JSON.parse(n1e),r1e(n1e)}catch{}let b1e=[];if(Array.isArray(n1e))for(let E1e=0;E1e<n1e.length;E1e++){let S1e=n1e[E1e];var y1e=p1e.current.find(C1e=>C1e.uid===S1e.uid);!y1e||(y1e.version||0)<(S1e.version||0)?b1e.push(S1e):b1e.push(y1e)}i1e(b1e)}},[n1e]),t1e=t1e||9;const[a1e,i1e]=React.useState([]),[s1e,l1e]=React.useState(""),[u1e,c1e]=React.useState(0),[f1e,d1e]=React.useState(!1),p1e=React.useRef([]),g1e=y1e=>new Promise((b1e,E1e)=>{const S1e=new FileReader;S1e.readAsDataURL(y1e),S1e.onload=()=>b1e(S1e.result),S1e.onerror=C1e=>E1e(C1e)}),m1e=async(y1e,b1e)=>{!y1e.url&&!y1e.preview&&(y1e.preview=await g1e(y1e.originFileObj)),l1e(y1e.url||y1e.preview),c1e(b1e),d1e(!0)},v1e=async(y1e,b1e)=>{o1e!=null&&o1e.disabled||i1e(a1e.filter((E1e,S1e)=>S1e!==b1e))},$1e=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:"点击上传"})]})}),h1e=y1e=>{let{fileList:b1e}=y1e,E1e=[];for(let x1e=0;x1e<b1e.length;x1e++){var S1e=b1e[x1e];S1e.version=new Date().getTime();var C1e=p1e.current.find(O1e=>O1e.uid===S1e.uid);console.log("oldfile",JSON.parse(JSON.stringify(C1e||{}))),C1e&&C1e.status!="uploading"?E1e.push(C1e):(S1e.status=="done"&&S1e.response&&(S1e.url=S1e.response),E1e.push(S1e))}p1e.current=E1e,i1e(E1e),r1e(E1e.map(x1e=>({uid:x1e.uid,name:x1e.name,status:x1e.status,url:x1e.url||x1e.response||"",error:x1e.error,version:x1e.version||0})))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...o1e,itemRender:(y1e,b1e,E1e)=>{console.log("file",b1e);let S1e=E1e.findIndex(C1e=>C1e.uid===b1e.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"+(b1e.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:[b1e.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{m1e(b1e,S1e)},className:"hover:ftext-gray-200"}),!(o1e!=null&&o1e.disabled)&&!(o1e!=null&&o1e.readonly)&&jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{v1e(b1e,S1e)},className:"hover:ftext-gray-200"})]}),b1e.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:b1e.url||b1e.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(b1e.uid))})},listType:"picture-card",fileList:a1e,maxCount:t1e,onPreview:m1e,onChange:h1e,children:a1e.length>=t1e||o1e!=null&&o1e.disabled||o1e!=null&&o1e.readonly?null:$1e})}),s1e&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:f1e,current:u1e,onVisibleChange:y1e=>d1e(y1e),onChange:y1e=>{c1e(y1e)}},children:a1e.map((y1e,b1e)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:y1e.url})}))})]})};UploadImage.displayName="UploadImage";const UploadImageWrapper=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(UploadImage,{...e1e})}),Switch=e1e=>{let{value:t1e,onChange:n1e,...r1e}=e1e;const[o1e,a1e]=React.useState(!1);return React.useEffect(()=>{let i1e=!1;typeof t1e=="boolean"?i1e=t1e:typeof t1e=="string"?i1e=t1e=="1"||t1e=="true":typeof t1e=="number"&&(i1e=t1e==1),a1e(i1e),typeof n1e=="function"&&n1e(i1e)},[t1e]),jsxRuntimeExports.jsx(BaseWrapper,{...r1e,children:jsxRuntimeExports.jsx(Switch$1,{...r1e,onChange:n1e,value:o1e})})};var zhCn={exports:{}};(function(e1e,t1e){(function(n1e,r1e){e1e.exports=r1e(requireDayjs_min())})(commonjsGlobal,function(n1e){function r1e(i1e){return i1e&&typeof i1e=="object"&&"default"in i1e?i1e:{default:i1e}}var o1e=r1e(n1e),a1e={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(i1e,s1e){return s1e==="W"?i1e+"周":i1e+"日"},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(i1e,s1e){var l1e=100*i1e+s1e;return l1e<600?"凌晨":l1e<900?"早上":l1e<1100?"上午":l1e<1300?"中午":l1e<1800?"下午":"晚上"}};return o1e.default.locale(a1e,null,!0),a1e})})(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(e1e,t1e){(function(n1e,r1e){e1e.exports=r1e()})(commonjsGlobal,function(){return function(n1e,r1e,o1e){o1e.updateLocale=function(a1e,i1e){var s1e=o1e.Ls[a1e];if(s1e)return(i1e?Object.keys(i1e):[]).forEach(function(l1e){s1e[l1e]=i1e[l1e]}),s1e}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=e1e=>{let{datetype:t1e,value:n1e,onChange:r1e,...o1e}=e1e;t1e=t1e||"date";const[a1e,i1e]=React.useState(o1e==null?void 0:o1e.picker),[s1e,l1e]=React.useState(o1e==null?void 0:o1e.format),[u1e,c1e]=React.useState(null),[f1e,d1e]=React.useState(!1),[p1e,g1e]=React.useState(!1);React.useEffect(()=>{if(n1e){const v1e=dayjs(n1e);c1e(v1e)}},[n1e,s1e,a1e]);const m1e=(v1e,$1e)=>{r1e($1e)};return React.useEffect(()=>{switch(i1e("date"),d1e(!1),t1e){case"date":i1e("date"),l1e("YYYY-MM-DD"),g1e(!1);break;case"datetime":d1e(!0),i1e("datetime"),l1e("YYYY-MM-DD HH:mm:ss"),g1e(!0);break;case"month":i1e("month"),g1e(!1);break;case"year":i1e("year"),g1e(!1);break}},[t1e]),jsxRuntimeExports.jsx(BaseWrapper,{...o1e,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...o1e,picker:a1e,format:s1e,style:{width:"100%"},onChange:m1e,value:u1e,showTime:f1e,needConfirm:p1e})})},TableAction=e1e=>{let{label:t1e,subTableIndex:n1e,children:r1e,subTableHead:o1e=!1,...a1e}=e1e;return jsxRuntimeExports.jsx("div",{className:"fw-12 ",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col foverflow-hidden",children:[t1e&&o1e&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-[#fafafa] ftext-sm fflex fflex-nowrap ftext-nowrap fjustify-between fitems-center fpx-2 fborder-b",children:t1e}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 fbox-border ",children:r1e})]})})},TableCol=e1e=>{let{children:t1e,width:n1e,...r1e}=e1e;const[o1e,a1e]=React.useState(0);return React.useEffect(()=>{a1e(n1e)},[n1e]),jsxRuntimeExports.jsx("div",{className:"fflex-1 fpx-1",style:{minWidth:"".concat(o1e,"px")},...r1e,children:t1e})},Table=e1e=>{let{children:t1e,...n1e}=e1e;const[r1e,o1e]=React.useState(!1),a1e=n1e.componentId||n1e.__id,i1e=[],s1e=l1e=>{r1e||o1e(!0),typeof l1e=="function"&&l1e()};return n1e.isRequired&&i1e.push({required:!0,message:"子表[".concat(n1e.label,"]必须填写")}),jsxRuntimeExports.jsx(Form.List,{name:a1e,rules:i1e,children:(l1e,u1e)=>{let{add:c1e,remove:f1e}=u1e;return l1e.length===0&&!r1e&&s1e(c1e),jsxRuntimeExports.jsxs("div",{className:"fw-full ",children:[jsxRuntimeExports.jsxs("div",{className:"fw-full frelative fmin-h-20 foverflow-x-auto",children:[l1e.length===0&&jsxRuntimeExports.jsxs("div",{className:"fborder-b fflex flex-nowrap fmin-w-full ",children:[React.Children.map(t1e,(d1e,p1e)=>jsxRuntimeExports.jsx(TableCol,{width:150,children:React.cloneElement(d1e,{key:"row_".concat(0,"_child_",p1e),subTable:!0,subTableHead:!0,subTableContent:!1})},"row_".concat(0,"_col_",p1e))),!(n1e!=null&&n1e.readonly)&&jsxRuntimeExports.jsx(TableAction,{subTableHead:!0,subTable:!0,subTableIndex:0,label:"操作"},"row_".concat(0,"_action"))]},"tableHead"),l1e.map((d1e,p1e)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b fflex flex-nowrap fmin-w-full ",children:[React.Children.map(t1e,(g1e,m1e)=>{var v1e,$1e;let{props:h1e}=g1e;const y1e=(g1e==null||(v1e=g1e.props)===null||v1e===void 0?void 0:v1e.componentId)||(g1e==null||($1e=g1e.props)===null||$1e===void 0?void 0:$1e.__id)||m1e;(d1e==null?void 0:d1e[y1e])===void 0&&(d1e[y1e]="");const b1e=[];if(h1e.isRequired&&b1e.push({required:!0,message:"".concat(h1e.label,"必须填写")}),h1e.rules)if(Array.isArray(h1e.rules)){const E1e=h1e.rules.join("|");b1e.push({pattern:new RegExp(E1e),message:h1e.rulesFailMessage?h1e.rulesFailMessage:"".concat(h1e.label,"格式错误")})}else b1e.push({pattern:new RegExp(h1e.rules),message:h1e.rulesFailMessage?h1e.rulesFailMessage:"".concat(h1e.label,"格式错误")});return jsxRuntimeExports.jsx(TableCol,{width:150,children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:[d1e.name,y1e],rules:b1e,children:React.cloneElement(g1e,{key:"row_".concat(p1e,"_child_").concat(m1e),subTable:!0,subTableIndex:p1e,subTableHead:p1e==0})})},"row_".concat(p1e,"_col_").concat(m1e))}),!(n1e!=null&&n1e.readonly)&&jsxRuntimeExports.jsx(TableAction,{subTableHead:p1e==0,subTable:!0,subTableIndex:p1e,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>f1e(p1e)})},"row_".concat(p1e,"_action"))]},d1e.key))]}),jsxRuntimeExports.jsx(Button$1,{onClick:()=>c1e(),className:"fmy-2",children:"新增一行"})]})}})};Table.displayName="Table";const TableWrapper=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,higLabel:!0,children:jsxRuntimeExports.jsx(Table,{...e1e})}),OptionSetter=e1e=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(e1e,t1e){return e1e===t1e||e1e!==e1e&&t1e!==t1e}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(e1e,t1e){for(var n1e=e1e.length;n1e--;)if(eq$3(e1e[n1e][0],t1e))return n1e;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e1e){var t1e=this.__data__,n1e=assocIndexOf$3(t1e,e1e);if(n1e<0)return!1;var r1e=t1e.length-1;return n1e==r1e?t1e.pop():splice.call(t1e,n1e,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e1e){var t1e=this.__data__,n1e=assocIndexOf$2(t1e,e1e);return n1e<0?void 0:t1e[n1e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e1e){return assocIndexOf$1(this.__data__,e1e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e1e,t1e){var n1e=this.__data__,r1e=assocIndexOf(n1e,e1e);return r1e<0?(++this.size,n1e.push([e1e,t1e])):n1e[r1e][1]=t1e,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.clear();++t1e<n1e;){var r1e=e1e[t1e];this.set(r1e[0],r1e[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(e1e){var t1e=this.__data__,n1e=t1e.delete(e1e);return this.size=t1e.size,n1e}var _stackDelete=stackDelete$1;function stackGet$1(e1e){return this.__data__.get(e1e)}var _stackGet=stackGet$1;function stackHas$1(e1e){return this.__data__.has(e1e)}var _stackHas=stackHas$1;function isObject$2(e1e){var t1e=typeof e1e;return e1e!=null&&(t1e=="object"||t1e=="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(e1e){if(!isObject$1(e1e))return!1;var t1e=baseGetTag$3(e1e);return t1e==funcTag$1||t1e==genTag||t1e==asyncTag||t1e==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e1e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e1e?"Symbol(src)_1."+e1e:""}();function isMasked$1(e1e){return!!maskSrcKey&&maskSrcKey in e1e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e1e){if(e1e!=null){try{return funcToString$1.call(e1e)}catch{}try{return e1e+""}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(e1e){if(!isObject(e1e)||isMasked(e1e))return!1;var t1e=isFunction$1(e1e)?reIsNative:reIsHostCtor;return t1e.test(toSource$1(e1e))}var _baseIsNative=baseIsNative$1;function getValue$1(e1e,t1e){return e1e==null?void 0:e1e[t1e]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(e1e,t1e){var n1e=getValue(e1e,t1e);return baseIsNative(n1e)?n1e: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(e1e){var t1e=this.has(e1e)&&delete this.__data__[e1e];return this.size-=t1e?1:0,t1e}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(e1e){var t1e=this.__data__;if(nativeCreate$2){var n1e=t1e[e1e];return n1e===HASH_UNDEFINED$2?void 0:n1e}return hasOwnProperty$7.call(t1e,e1e)?t1e[e1e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(e1e){var t1e=this.__data__;return nativeCreate$1?t1e[e1e]!==void 0:hasOwnProperty$6.call(t1e,e1e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e1e,t1e){var n1e=this.__data__;return this.size+=this.has(e1e)?0:1,n1e[e1e]=nativeCreate&&t1e===void 0?HASH_UNDEFINED$1:t1e,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.clear();++t1e<n1e;){var r1e=e1e[t1e];this.set(r1e[0],r1e[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(e1e){var t1e=typeof e1e;return t1e=="string"||t1e=="number"||t1e=="symbol"||t1e=="boolean"?e1e!=="__proto__":e1e===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e1e,t1e){var n1e=e1e.__data__;return isKeyable(t1e)?n1e[typeof t1e=="string"?"string":"hash"]:n1e.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e1e){var t1e=getMapData$3(this,e1e).delete(e1e);return this.size-=t1e?1:0,t1e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e1e){return getMapData$2(this,e1e).get(e1e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e1e){return getMapData$1(this,e1e).has(e1e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e1e,t1e){var n1e=getMapData(this,e1e),r1e=n1e.size;return n1e.set(e1e,t1e),this.size+=n1e.size==r1e?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.clear();++t1e<n1e;){var r1e=e1e[t1e];this.set(r1e[0],r1e[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(e1e,t1e){var n1e=this.__data__;if(n1e instanceof ListCache$1){var r1e=n1e.__data__;if(!Map$2||r1e.length<LARGE_ARRAY_SIZE-1)return r1e.push([e1e,t1e]),this.size=++n1e.size,this;n1e=this.__data__=new MapCache$1(r1e)}return n1e.set(e1e,t1e),this.size=n1e.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e1e){var t1e=this.__data__=new ListCache(e1e);this.size=t1e.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(e1e){return this.__data__.set(e1e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e1e){return this.__data__.has(e1e)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.__data__=new MapCache;++t1e<n1e;)this.add(e1e[t1e])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(e1e,t1e){for(var n1e=-1,r1e=e1e==null?0:e1e.length;++n1e<r1e;)if(t1e(e1e[n1e],n1e,e1e))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(e1e,t1e){return e1e.has(t1e)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(e1e,t1e,n1e,r1e,o1e,a1e){var i1e=n1e&COMPARE_PARTIAL_FLAG$3,s1e=e1e.length,l1e=t1e.length;if(s1e!=l1e&&!(i1e&&l1e>s1e))return!1;var u1e=a1e.get(e1e),c1e=a1e.get(t1e);if(u1e&&c1e)return u1e==t1e&&c1e==e1e;var f1e=-1,d1e=!0,p1e=n1e&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a1e.set(e1e,t1e),a1e.set(t1e,e1e);++f1e<s1e;){var g1e=e1e[f1e],m1e=t1e[f1e];if(r1e)var v1e=i1e?r1e(m1e,g1e,f1e,t1e,e1e,a1e):r1e(g1e,m1e,f1e,e1e,t1e,a1e);if(v1e!==void 0){if(v1e)continue;d1e=!1;break}if(p1e){if(!arraySome(t1e,function($1e,h1e){if(!cacheHas(p1e,h1e)&&(g1e===$1e||o1e(g1e,$1e,n1e,r1e,a1e)))return p1e.push(h1e)})){d1e=!1;break}}else if(!(g1e===m1e||o1e(g1e,m1e,n1e,r1e,a1e))){d1e=!1;break}}return a1e.delete(e1e),a1e.delete(t1e),d1e}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e1e){var t1e=-1,n1e=Array(e1e.size);return e1e.forEach(function(r1e,o1e){n1e[++t1e]=[o1e,r1e]}),n1e}var _mapToArray=mapToArray$1;function setToArray$1(e1e){var t1e=-1,n1e=Array(e1e.size);return e1e.forEach(function(r1e){n1e[++t1e]=r1e}),n1e}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$2=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(e1e,t1e,n1e,r1e,o1e,a1e,i1e){switch(n1e){case dataViewTag$2:if(e1e.byteLength!=t1e.byteLength||e1e.byteOffset!=t1e.byteOffset)return!1;e1e=e1e.buffer,t1e=t1e.buffer;case arrayBufferTag$1:return!(e1e.byteLength!=t1e.byteLength||!a1e(new Uint8Array$1(e1e),new Uint8Array$1(t1e)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$2(+e1e,+t1e);case errorTag$1:return e1e.name==t1e.name&&e1e.message==t1e.message;case regexpTag$1:case stringTag$1:return e1e==t1e+"";case mapTag$2:var s1e=mapToArray;case setTag$2:var l1e=r1e&COMPARE_PARTIAL_FLAG$2;if(s1e||(s1e=setToArray),e1e.size!=t1e.size&&!l1e)return!1;var u1e=i1e.get(e1e);if(u1e)return u1e==t1e;r1e|=COMPARE_UNORDERED_FLAG,i1e.set(e1e,t1e);var c1e=equalArrays$1(s1e(e1e),s1e(t1e),r1e,o1e,a1e,i1e);return i1e.delete(e1e),c1e;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e1e)==symbolValueOf.call(t1e)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(e1e,t1e){for(var n1e=-1,r1e=t1e.length,o1e=e1e.length;++n1e<r1e;)e1e[o1e+n1e]=t1e[n1e];return e1e}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(e1e,t1e,n1e){var r1e=t1e(e1e);return isArray$2(e1e)?r1e:arrayPush(r1e,n1e(e1e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e1e,t1e){for(var n1e=-1,r1e=e1e==null?0:e1e.length,o1e=0,a1e=[];++n1e<r1e;){var i1e=e1e[n1e];t1e(i1e,n1e,e1e)&&(a1e[o1e++]=i1e)}return a1e}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(e1e){return e1e==null?[]:(e1e=Object(e1e),arrayFilter(nativeGetSymbols(e1e),function(t1e){return propertyIsEnumerable$1.call(e1e,t1e)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e1e,t1e){for(var n1e=-1,r1e=Array(e1e);++n1e<e1e;)r1e[n1e]=t1e(n1e);return r1e}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e1e){return isObjectLike$3(e1e)&&baseGetTag$2(e1e)==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(e1e){return isObjectLike$2(e1e)&&hasOwnProperty$5.call(e1e,"callee")&&!propertyIsEnumerable.call(e1e,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(e1e,t1e){var n1e=_root,r1e=stubFalse_1,o1e=t1e&&!t1e.nodeType&&t1e,a1e=o1e&&!0&&e1e&&!e1e.nodeType&&e1e,i1e=a1e&&a1e.exports===o1e,s1e=i1e?n1e.Buffer:void 0,l1e=s1e?s1e.isBuffer:void 0,u1e=l1e||r1e;e1e.exports=u1e})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e1e,t1e){var n1e=typeof e1e;return t1e=t1e??MAX_SAFE_INTEGER$1,!!t1e&&(n1e=="number"||n1e!="symbol"&&reIsUint.test(e1e))&&e1e>-1&&e1e%1==0&&e1e<t1e}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e1e){return typeof e1e=="number"&&e1e>-1&&e1e%1==0&&e1e<=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(e1e){return isObjectLike$1(e1e)&&isLength$1(e1e.length)&&!!typedArrayTags[baseGetTag$1(e1e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e1e){return function(t1e){return e1e(t1e)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(e1e,t1e){var n1e=_freeGlobal,r1e=t1e&&!t1e.nodeType&&t1e,o1e=r1e&&!0&&e1e&&!e1e.nodeType&&e1e,a1e=o1e&&o1e.exports===r1e,i1e=a1e&&n1e.process,s1e=function(){try{var l1e=o1e&&o1e.require&&o1e.require("util").types;return l1e||i1e&&i1e.binding&&i1e.binding("util")}catch{}}();e1e.exports=s1e})(_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(e1e,t1e){var n1e=isArray$1(e1e),r1e=!n1e&&isArguments(e1e),o1e=!n1e&&!r1e&&isBuffer$1(e1e),a1e=!n1e&&!r1e&&!o1e&&isTypedArray$1(e1e),i1e=n1e||r1e||o1e||a1e,s1e=i1e?baseTimes(e1e.length,String):[],l1e=s1e.length;for(var u1e in e1e)(t1e||hasOwnProperty$4.call(e1e,u1e))&&!(i1e&&(u1e=="length"||o1e&&(u1e=="offset"||u1e=="parent")||a1e&&(u1e=="buffer"||u1e=="byteLength"||u1e=="byteOffset")||isIndex(u1e,l1e)))&&s1e.push(u1e);return s1e}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e1e){var t1e=e1e&&e1e.constructor,n1e=typeof t1e=="function"&&t1e.prototype||objectProto$3;return e1e===n1e}var _isPrototype=isPrototype$1;function overArg$1(e1e,t1e){return function(n1e){return e1e(t1e(n1e))}}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(e1e){if(!isPrototype(e1e))return nativeKeys(e1e);var t1e=[];for(var n1e in Object(e1e))hasOwnProperty$3.call(e1e,n1e)&&n1e!="constructor"&&t1e.push(n1e);return t1e}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(e1e){return e1e!=null&&isLength(e1e.length)&&!isFunction(e1e)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(e1e){return isArrayLike(e1e)?arrayLikeKeys(e1e):baseKeys(e1e)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(e1e){return baseGetAllKeys(e1e,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(e1e,t1e,n1e,r1e,o1e,a1e){var i1e=n1e&COMPARE_PARTIAL_FLAG$1,s1e=getAllKeys(e1e),l1e=s1e.length,u1e=getAllKeys(t1e),c1e=u1e.length;if(l1e!=c1e&&!i1e)return!1;for(var f1e=l1e;f1e--;){var d1e=s1e[f1e];if(!(i1e?d1e in t1e:hasOwnProperty$2.call(t1e,d1e)))return!1}var p1e=a1e.get(e1e),g1e=a1e.get(t1e);if(p1e&&g1e)return p1e==t1e&&g1e==e1e;var m1e=!0;a1e.set(e1e,t1e),a1e.set(t1e,e1e);for(var v1e=i1e;++f1e<l1e;){d1e=s1e[f1e];var $1e=e1e[d1e],h1e=t1e[d1e];if(r1e)var y1e=i1e?r1e(h1e,$1e,d1e,t1e,e1e,a1e):r1e($1e,h1e,d1e,e1e,t1e,a1e);if(!(y1e===void 0?$1e===h1e||o1e($1e,h1e,n1e,r1e,a1e):y1e)){m1e=!1;break}v1e||(v1e=d1e=="constructor")}if(m1e&&!v1e){var b1e=e1e.constructor,E1e=t1e.constructor;b1e!=E1e&&"constructor"in e1e&&"constructor"in t1e&&!(typeof b1e=="function"&&b1e instanceof b1e&&typeof E1e=="function"&&E1e instanceof E1e)&&(m1e=!1)}return a1e.delete(e1e),a1e.delete(t1e),m1e}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(e1e){var t1e=baseGetTag(e1e),n1e=t1e==objectTag$1?e1e.constructor:void 0,r1e=n1e?toSource(n1e):"";if(r1e)switch(r1e){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t1e});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(e1e,t1e,n1e,r1e,o1e,a1e){var i1e=isArray(e1e),s1e=isArray(t1e),l1e=i1e?arrayTag:getTag(e1e),u1e=s1e?arrayTag:getTag(t1e);l1e=l1e==argsTag?objectTag:l1e,u1e=u1e==argsTag?objectTag:u1e;var c1e=l1e==objectTag,f1e=u1e==objectTag,d1e=l1e==u1e;if(d1e&&isBuffer(e1e)){if(!isBuffer(t1e))return!1;i1e=!0,c1e=!1}if(d1e&&!c1e)return a1e||(a1e=new Stack),i1e||isTypedArray(e1e)?equalArrays(e1e,t1e,n1e,r1e,o1e,a1e):equalByTag(e1e,t1e,l1e,n1e,r1e,o1e,a1e);if(!(n1e&COMPARE_PARTIAL_FLAG)){var p1e=c1e&&hasOwnProperty$1.call(e1e,"__wrapped__"),g1e=f1e&&hasOwnProperty$1.call(t1e,"__wrapped__");if(p1e||g1e){var m1e=p1e?e1e.value():e1e,v1e=g1e?t1e.value():t1e;return a1e||(a1e=new Stack),o1e(m1e,v1e,n1e,r1e,a1e)}}return d1e?(a1e||(a1e=new Stack),equalObjects(e1e,t1e,n1e,r1e,o1e,a1e)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(e1e,t1e,n1e,r1e,o1e){return e1e===t1e?!0:e1e==null||t1e==null||!isObjectLike(e1e)&&!isObjectLike(t1e)?e1e!==e1e&&t1e!==t1e:baseIsEqualDeep(e1e,t1e,n1e,r1e,baseIsEqual$1,o1e)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(e1e,t1e){return baseIsEqual(e1e,t1e)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
|
405
|
+
`,useInsertStyles=function(){var t1e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,n1e=React.useContext(IconContext),r1e=n1e.csp;React.useEffect(function(){updateCSS(t1e,"@ant-design-icons",{prepend:!0,csp:r1e})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(e1e){var t1e=e1e.primaryColor,n1e=e1e.secondaryColor;twoToneColorPalette.primaryColor=t1e,twoToneColorPalette.secondaryColor=n1e||getSecondaryColor(t1e),twoToneColorPalette.calculated=!!n1e}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(t1e){var n1e=t1e.icon,r1e=t1e.className,o1e=t1e.onClick,a1e=t1e.style,i1e=t1e.primaryColor,s1e=t1e.secondaryColor,l1e=_objectWithoutProperties(t1e,_excluded$1),u1e=twoToneColorPalette;if(i1e&&(u1e={primaryColor:i1e,secondaryColor:s1e||getSecondaryColor(i1e)}),useInsertStyles(),warning(isIconDefinition(n1e),"icon should be icon definiton, but got ".concat(n1e)),!isIconDefinition(n1e))return null;var c1e=n1e;return c1e&&typeof c1e.icon=="function"&&(c1e=_objectSpread2(_objectSpread2({},c1e),{},{icon:c1e.icon(u1e.primaryColor,u1e.secondaryColor)})),generate(c1e.icon,"svg-".concat(c1e.name),_objectSpread2({className:r1e,onClick:o1e,style:a1e,"data-icon":c1e.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l1e))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(e1e){var t1e=normalizeTwoToneColors(e1e),n1e=_slicedToArray(t1e,2),r1e=n1e[0],o1e=n1e[1];return IconBase.setTwoToneColors({primaryColor:r1e,secondaryColor:o1e})}function getTwoToneColor(){var e1e=IconBase.getTwoToneColors();return e1e.calculated?[e1e.primaryColor,e1e.secondaryColor]:e1e.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(e1e,t1e){var n1e=e1e.className,r1e=e1e.icon,o1e=e1e.spin,a1e=e1e.rotate,i1e=e1e.tabIndex,s1e=e1e.onClick,l1e=e1e.twoToneColor,u1e=_objectWithoutProperties(e1e,_excluded),c1e=React__namespace.useContext(IconContext),f1e=c1e.prefixCls,d1e=f1e===void 0?"anticon":f1e,p1e=c1e.rootClassName,g1e=classNames(p1e,d1e,_defineProperty(_defineProperty({},"".concat(d1e,"-").concat(r1e.name),!!r1e.name),"".concat(d1e,"-spin"),!!o1e||r1e.name==="loading"),n1e),m1e=i1e;m1e===void 0&&s1e&&(m1e=-1);var v1e=a1e?{msTransform:"rotate(".concat(a1e,"deg)"),transform:"rotate(".concat(a1e,"deg)")}:void 0,$1e=normalizeTwoToneColors(l1e),h1e=_slicedToArray($1e,2),y1e=h1e[0],b1e=h1e[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":r1e.name},u1e),{},{ref:t1e,tabIndex:m1e,onClick:s1e,className:g1e}),React__namespace.createElement(IconBase,{icon:r1e,primaryColor:y1e,secondaryColor:b1e,style:v1e}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,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(t1e,n1e){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},t1e),{},{ref:n1e,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(e1e){let t1e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",n1e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",r1e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",o1e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",a1e=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,i1e=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(e1e,t1e,n1e,r1e,o1e,a1e,s1e=>({value:s1e[t1e],title:s1e[n1e],key:s1e[t1e],disabled:s1e[t1e]===i1e}))}function constructTree(e1e,t1e,n1e,r1e,o1e,a1e,i1e){if(!Array.isArray(e1e)||e1e.length===0)return[];const s1e=e1e.map(l1e=>({...l1e,...i1e(l1e)}));return s1e.filter(l1e=>{const u1e=s1e.filter(c1e=>l1e[t1e]===c1e[r1e]);return l1e[o1e]=u1e.length>0?u1e:[],l1e[r1e]===a1e})}const TreeSelect=e1e=>{let{request:t1e,title:n1e,disabledValue:r1e,callError:o1e,...a1e}=e1e;const[i1e,s1e]=React.useState(!1),[l1e,u1e]=React.useState([]);React.useEffect(()=>{c1e()},[]);const c1e=async()=>{if(t1e&&typeof t1e=="function"){var f1e;const d1e=await t1e();if(d1e.code>0){o1e&&typeof o1e=="function"&&o1e(d1e.message);return}let p1e=handleTree(((f1e=d1e.data)===null||f1e===void 0?void 0:f1e.list)||d1e.data||[],"id",n1e||"title",a1e.parentId||"parentId","children",0,r1e);p1e=[{value:0,title:"根节点",children:p1e}],a1e.treeData=p1e,u1e(p1e)}a1e.treeData&&u1e(a1e.treeData),s1e(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...a1e,children:i1e&&jsxRuntimeExports.jsx(TreeSelect$1,{...a1e,treeData:l1e,treeDefaultExpandAll:!0,style:{width:"100%"}})})},SearchSelect=e1e=>{let{addWrapper:t1e=!0,value:n1e,type:r1e,defaultValue:o1e,onChange:a1e,option_label:i1e,option_value:s1e,option_search:l1e,options:u1e,request:c1e,requestParams:f1e,callError:d1e,subRequest:p1e,sub_option_label:g1e="label",mode:m1e="single",sub_option_value:v1e="id",rightIcon:$1e,rightIconClick:h1e,...y1e}=e1e;const[b1e,E1e]=React.useState([]),[S1e,C1e]=React.useState(!1);React.useEffect(()=>{x1e(f1e)},[f1e]);const x1e=async _1e=>{let P1e=null;if(c1e&&typeof c1e=="function"){const N1e=await R1e(_1e);N1e&&Array.isArray(N1e)&&(P1e=n1e?N1e.find(I1e=>I1e.value==n1e):null)}u1e&&u1e.length>0&&(P1e=n1e?u1e.find(N1e=>N1e.value==n1e):null,E1e(u1e)),P1e&&a1e(P1e)},O1e=lodashExports.debounce(async _1e=>{const P1e={...f1e};P1e[l1e]=_1e,await R1e(P1e)},200),R1e=async _1e=>{try{var P1e;C1e(!0);const N1e=await c1e(_1e);if(N1e.code>0){d1e&&typeof d1e=="function"&&d1e(N1e.message);return}let I1e=((P1e=N1e.data)===null||P1e===void 0?void 0:P1e.list)||N1e.data;if(Array.isArray(I1e)){for(let F1e=0;F1e<I1e.length;F1e++){const B1e=I1e[F1e];if(typeof p1e=="function"){let L1e=[];const{data:z1e}=await p1e(B1e);z1e!=null&&z1e.list&&Array.isArray(z1e.list)&&(L1e=z1e.list.map(j1e=>({label:"".concat(B1e[i1e],"-").concat(j1e[g1e]),value:"".concat(B1e[s1e],"-").concat(j1e[v1e])}))),I1e[F1e]={...B1e,label:B1e[i1e],title:B1e[i1e],options:L1e}}I1e[F1e]={...B1e,label:B1e[i1e],value:B1e[s1e]}}E1e(I1e)}else E1e([]);return I1e}catch(N1e){console.error("fetchOptions",N1e)}finally{C1e(!1)}},A1e=_1e=>{Array.isArray(_1e)?a1e(_1e.map(P1e=>b1e.find(N1e=>N1e.value===P1e))):a1e(b1e.find(P1e=>P1e.value===_1e))};return t1e?jsxRuntimeExports.jsxs(BaseWrapper,{...y1e,children:[jsxRuntimeExports.jsx(Select$1,{notFoundContent:S1e?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:n1e,...y1e,disabled:!1,filterOption:!1,showSearch:!!(c1e&&l1e),onSearch:c1e&&l1e?O1e:null,onChange:A1e,style:{width:"100%",flex:1},options:b1e,mode:m1e}),$1e]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Select$1,{notFoundContent:S1e?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:n1e,...y1e,disabled:!1,filterOption:!1,showSearch:!!(c1e&&l1e),onSearch:c1e&&l1e?O1e:null,onChange:A1e,style:{width:"100%"},options:b1e,mode:m1e}),$1e]})},Select=e1e=>{let{request:t1e,option_label:n1e="label",option_value:r1e="id",disabledValue:o1e,callError:a1e,options:i1e,addWrapper:s1e=!0,...l1e}=e1e;const[u1e,c1e]=React.useState([]);React.useEffect(()=>{f1e()},[]);const f1e=async()=>{if(t1e&&typeof t1e=="function"){var d1e;const p1e=await t1e();if(p1e.code>0){a1e&&typeof a1e=="function"&&a1e(p1e.message);return}let g1e=((d1e=p1e.data)===null||d1e===void 0?void 0:d1e.list)||p1e.data;Array.isArray(g1e)&&g1e.length>0&&c1e(g1e.map(m1e=>({label:m1e[n1e],value:m1e[r1e]})))}i1e&&i1e.length>0&&c1e(i1e)};return s1e?jsxRuntimeExports.jsx(BaseWrapper,{...l1e,children:jsxRuntimeExports.jsx(Select$1,{...l1e,options:u1e,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...l1e,options:u1e,style:{width:"100%"}})},SingleSelect=e1e=>{let{...t1e}=e1e;return jsxRuntimeExports.jsx(Select,{...t1e,mode:"single"})},MultipleSelect=e1e=>{let{onChange:t1e,value:n1e,...r1e}=e1e;const[o1e,a1e]=React.useState([]);return React.useEffect(()=>{if(n1e&&typeof n1e=="string")try{n1e=JSON.parse(n1e),t1e(n1e)}catch{}n1e&&a1e(n1e)},[n1e]),jsxRuntimeExports.jsx(Select,{...r1e,onChange:t1e,mode:"multiple",value:o1e})},WithSingleSelect=e1e=>{var t1e,n1e;let{readItemRender:r1e,readonly:o1e,onChange:a1e,value:i1e,...s1e}=e1e;return React.useEffect(()=>{if(i1e&&typeof i1e=="string")try{i1e=JSON.parse(i1e),a1e(i1e)}catch{}},[i1e]),o1e?jsxRuntimeExports.jsx("div",{className:" fh-8 fflex fitems-center fgap-2",children:i1e&&i1e.label&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:r1e&&typeof r1e=="function"?r1e(i1e):jsxRuntimeExports.jsx("span",{children:(t1e=i1e)===null||t1e===void 0?void 0:t1e.label},"btn_".concat((n1e=i1e)===null||n1e===void 0?void 0:n1e.value))})}):jsxRuntimeExports.jsx(SearchSelect,{addWrapper:!1,...s1e,onChange:a1e,value:i1e,mode:"single",className:" fflex-1 foverflow-hidden"})},WithMultipleSelect=e1e=>{let{readItemRender:t1e,readonly:n1e,onChange:r1e,value:o1e,...a1e}=e1e;return React.useEffect(()=>{if(o1e&&typeof o1e=="string")try{o1e=JSON.parse(o1e),r1e(o1e)}catch{}},[o1e]),n1e?jsxRuntimeExports.jsx("div",{className:" fh-8 fflex fitems-center fgap-2",children:Array.isArray(o1e)&&o1e.map((i1e,s1e)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",t1e&&typeof t1e=="function"?t1e(i1e):jsxRuntimeExports.jsx("span",{children:i1e==null?void 0:i1e.label},"btn_".concat(i1e==null?void 0:i1e.value)),s1e<o1e.length-1?jsxRuntimeExports.jsx("span",{className:" ftext-gray-400",children:","}):null]}))}):jsxRuntimeExports.jsx(SearchSelect,{addWrapper:!1,...a1e,onChange:r1e,value:o1e,mode:"multiple",className:" fflex-1 foverflow-hidden"})},UserSelect=e1e=>{let{customComponent:t1e,...n1e}=e1e;return console.log("UserSelect ////// props",n1e),t1e?jsxRuntimeExports.jsx(BaseWrapper,{...n1e,children:jsxRuntimeExports.jsx(t1e,{...n1e})}):jsxRuntimeExports.jsx(BaseWrapper,{...n1e,children:jsxRuntimeExports.jsx(Input$1,{...n1e})})},ArrayTreeSelect=e1e=>{let{onChange:t1e,value:n1e,multiple:r1e,...o1e}=e1e;const[a1e,i1e]=React.useState();React.useEffect(()=>{if(n1e&&typeof n1e=="string")try{n1e=JSON.parse(n1e),t1e(n1e);return}catch{}r1e?Array.isArray(n1e)&&i1e(n1e):(Array.isArray(n1e)&&(n1e=n1e[0]),i1e(n1e))},[n1e]);const s1e=l1e=>{Array.isArray(l1e)||(l1e=[l1e]),t1e&&typeof t1e=="function"&&t1e(l1e)};return jsxRuntimeExports.jsx(TreeSelect,{...o1e,onChange:s1e,value:a1e,multiple:r1e})},DeptSelect=e1e=>{let{FetchDeptList:t1e,...n1e}=e1e;return jsxRuntimeExports.jsx(ArrayTreeSelect,{...n1e,title:"deptName",request:t1e})},PostSelect=e1e=>{let{FetchPostList:t1e,...n1e}=e1e;return jsxRuntimeExports.jsx(ArrayTreeSelect,{...n1e,title:"postName",request:t1e})};WithSingleSelect.displayName="WithSingleSelect";WithMultipleSelect.displayName="WithMultipleSelect";const WithSingleSelectForward=React.forwardRef((e1e,t1e)=>(React.useImperativeHandle(t1e,()=>({handleChange:n1e=>{e1e==null||e1e.onChange(n1e)}}),[]),jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(WithSingleSelect,{...e1e})}))),WithMultipleSelectForward=React.forwardRef((e1e,t1e)=>(React.useImperativeHandle(t1e,()=>({handleChange:n1e=>{e1e==null||e1e.onChange(n1e)}}),[]),jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(WithMultipleSelect,{...e1e})}))),Custom=React.forwardRef((e1e,t1e)=>{let{value:n1e,onChange:r1e,...o1e}=e1e;const a1e=React.useRef(0),i1e=()=>{a1e.current++,r1e(a1e.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...o1e,children:[jsxRuntimeExports.jsxs("div",{ref:t1e,children:["form-set-value:",n1e]}),jsxRuntimeExports.jsx(Button$1,{onClick:i1e,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(e1e){console.error("formula error",e1e)}return console.log("formula result",result),result.toString()},LayoutFormRow=e1e=>{let{children:t1e,layout:n1e}=e1e;n1e=n1e||"1";const r1e=i1e=>{const s1e=i1e.split(",").map(Number),l1e=24;return s1e.map(u1e=>u1e/s1e.reduce((c1e,f1e)=>c1e+f1e)*l1e)},o1e=React.useMemo(()=>r1e(n1e),[n1e]),a1e=React.useMemo(()=>React.Children.toArray(t1e).map((i1e,s1e)=>{const l1e=i1e.props,u1e=(l1e==null?void 0:l1e.componentId)||(l1e==null?void 0:l1e.__id);return u1e?(o1e==null?void 0:o1e[s1e])&&jsxRuntimeExports.jsx(Col,{span:o1e[s1e],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:u1e,rules:[{required:l1e.isRequired,message:"".concat(l1e.title,"不能为空!")}],children:i1e},"".concat(u1e,"-form-item"))},s1e):(o1e==null?void 0:o1e[s1e])&&jsxRuntimeExports.jsx(Col,{span:o1e[s1e],children:i1e},s1e)}),[t1e,o1e]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:a1e})},FormGroupTitle=e1e=>{let{title:t1e}=e1e;return t1e?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:t1e})}):null};function batchElements(e1e,t1e){const n1e=[];let r1e=[];const o1e=(i1e,s1e)=>{const l1e=i1e-s1e.length;s1e.push(...new Array(l1e).fill(React.createElement("div")))};for(const i1e of e1e){var a1e;const{_componentName:s1e}=(i1e==null?void 0:i1e.props)||{},l1e=((a1e=i1e.type)===null||a1e===void 0?void 0:a1e.displayName)||s1e;l1e&&l1e.startsWith("Layout.")?(r1e.length>0&&(o1e(t1e,r1e),n1e.push(r1e),r1e=[]),n1e.push([i1e])):(r1e.push(i1e),r1e.length===t1e&&(n1e.push(r1e),r1e=[]))}return r1e.length>0&&(o1e(t1e,r1e),n1e.push(r1e)),n1e}const FormContainer=React.forwardRef((e1e,t1e)=>{let{cols:n1e=1,children:r1e,mode:o1e="view"}=e1e;const[a1e]=Form.useForm(),[i1e,s1e]=React.useState(null),l1e=React.useRef(null);React.useImperativeHandle(t1e,()=>({formRef:a1e,initializeFieldVisibility:c1e}),[]),React.useEffect(()=>{u1e(),s1e($1e())},[r1e,n1e]);const u1e=()=>{const h1e=[];function y1e(E1e){var S1e,C1e;let x1e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;var O1e=((S1e=E1e.type)===null||S1e===void 0?void 0:S1e.displayName)||((C1e=E1e.props)===null||C1e===void 0?void 0:C1e._componentName);const{props:R1e}=E1e;if(O1e&&(O1e.startsWith("Field.")||O1e.startsWith("Layout."))){let P1e=(R1e==null?void 0:R1e.componentId)||(R1e==null?void 0:R1e.__id),N1e=[];if(x1e&&x1e!==null&&x1e!==void 0&&x1e.props){var A1e,_1e;P1e="".concat((x1e==null||(A1e=x1e.props)===null||A1e===void 0?void 0:A1e.componentId)||(x1e==null||(_1e=x1e.props)===null||_1e===void 0?void 0:_1e.__id),".").concat(P1e)}R1e!=null&&R1e.withId&&N1e.push(R1e==null?void 0:R1e.withId),R1e!=null&&R1e.withIds&&(N1e=[...N1e,...R1e==null?void 0:R1e.withIds]),h1e.push({identifier:P1e,withIds:N1e,component:E1e,componentName:O1e,fillRules:R1e==null?void 0:R1e.fillRules})}R1e!=null&&R1e.children&&React.Children.toArray(R1e==null?void 0:R1e.children).forEach(N1e=>y1e(N1e,O1e&&O1e.startsWith("Field.")?E1e:null))}l1e.current=new Map;const b1e=React.Children.toArray(r1e);for(let E1e=0;E1e<b1e.length;E1e++){const S1e=b1e[E1e];y1e(S1e)}h1e.forEach(E1e=>{const{identifier:S1e}=E1e;l1e.current.set(S1e,{children:h1e.filter(C1e=>C1e.withIds.some(x1e=>x1e==S1e)),show:!0,...E1e})}),c1e()},c1e=function(){let h1e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const y1e=a1e.getFieldsValue();for(let b1e of l1e.current.keys())f1e(b1e,y1e,!0);h1e&&s1e($1e())},f1e=function(h1e,y1e){let b1e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,E1e=!1,S1e=[];if(Array.isArray(h1e)&&(S1e=[...h1e.slice(0,-1)],h1e=h1e.filter(C1e=>typeof C1e=="string").join(".")),l1e.current.has(h1e)){const C1e=l1e.current.get(h1e),x1e=C1e.children;!b1e&&C1e!==null&&C1e!==void 0&&C1e.fillRules&&Array.isArray(C1e==null?void 0:C1e.fillRules)&&(C1e==null?void 0:C1e.fillRules.length)>0&&d1e(h1e,S1e,y1e,C1e==null?void 0:C1e.fillRules),x1e.forEach(O1e=>{O1e.component.props.withFunc&&typeof O1e.component.props.withFunc=="function"&&(E1e=p1e(y1e,O1e)),O1e.component.props.withFill&&g1e(y1e,O1e,S1e,C1e==null?void 0:C1e.componentName)})}return E1e},d1e=(h1e,y1e,b1e,E1e)=>{let S1e=m1e("fieldsValue",h1e,b1e,null);for(let x1e=0;x1e<E1e.length;x1e++){const O1e=E1e[x1e];let{source:R1e,target:A1e}=O1e,_1e=S1e==null?void 0:S1e[R1e],P1e=_1e;if((O1e==null?void 0:O1e.type)==1){if(_1e&&typeof _1e=="string")try{_1e=JSON.parse(_1e)}catch(I1e){console.log("error end",I1e)}if(!Array.isArray(_1e))return;P1e=_1e.map(I1e=>{let F1e={};if(O1e!=null&&O1e.subRules&&Array.isArray(O1e==null?void 0:O1e.subRules)&&(O1e==null?void 0:O1e.subRules.length)>0)for(let B1e=0;B1e<(O1e==null?void 0:O1e.subRules.length);B1e++){const{source:L1e,target:z1e}=O1e==null?void 0:O1e.subRules[B1e];F1e[z1e]=I1e==null?void 0:I1e[L1e]}return F1e})}else{let N1e=0;if(y1e&&Array.isArray(y1e)&&y1e.length>1&&(y1e.filter(I1e=>typeof I1e=="string").join("."),N1e=y1e[y1e.length-1],A1e=[...y1e,A1e],Array.isArray(S1e)&&S1e.length>N1e)){var C1e;P1e=(C1e=S1e[N1e])===null||C1e===void 0?void 0:C1e[R1e]}}a1e.setFieldValue(A1e,P1e),f1e(A1e,a1e.getFieldsValue())}console.log("current value",S1e)},p1e=(h1e,y1e,b1e)=>{var E1e,S1e;let C1e=!1;const x1e=y1e==null||(E1e=y1e.component)===null||E1e===void 0||(S1e=E1e.props)===null||S1e===void 0?void 0:S1e.withFunc(h1e),O1e=y1e==null?void 0:y1e.identifier;if(l1e.current.has(O1e)){const R1e=l1e.current.get(O1e);R1e.show!==x1e&&(R1e.show=x1e,l1e.current.set(O1e,R1e),C1e=!0)}return C1e},g1e=async(h1e,y1e,b1e,E1e)=>{var S1e,C1e;const x1e=y1e==null||(S1e=y1e.component)===null||S1e===void 0?void 0:S1e.props.withFill,O1e=y1e==null||(C1e=y1e.component)===null||C1e===void 0?void 0:C1e.props.withDataFetch;let R1e=0,A1e="",_1e=y1e.identifier;b1e&&Array.isArray(b1e)&&b1e.length>1&&(A1e=b1e.filter(F1e=>typeof F1e=="string").join("."),R1e=b1e[b1e.length-1],_1e.startsWith("".concat(A1e,"."))&&(_1e=[...b1e,_1e.replace("".concat(A1e,"."),"")]));let P1e=[];if(console.log("componentName",E1e),x1e!=null&&x1e.withData&&(x1e==null?void 0:x1e.withData.length)>0&&O1e&&typeof O1e=="function")for(let F1e=0;F1e<(x1e==null?void 0:x1e.withData.length);F1e++){const B1e=x1e==null?void 0:x1e.withData[F1e];let L1e={};L1e.tableName=B1e.withTable.table_name,L1e.filter={};for(let j1e=0;j1e<B1e.withCondition.length;j1e++){var N1e;const{value:T1e,column:M1e}=B1e.withCondition[j1e];let k1e=m1e(T1e.group_key,T1e.field_key,h1e,P1e);Array.isArray(k1e)&&Array.isArray(_1e)&&k1e.length>R1e&&(k1e=k1e[R1e]),E1e=="Field.WithSingleSelect"&&k1e&&(N1e=k1e)!==null&&N1e!==void 0&&N1e.value&&(k1e=k1e.value),L1e.filter[M1e.column_name]=k1e}const z1e=await O1e(L1e);z1e.code===0&&z1e.data.list&&P1e.push({id:B1e.id,data:z1e.data.list})}let I1e;if(x1e.value&&x1e.value.length>0&&(I1e=x1e.value.map(F1e=>{let B1e="";const{insert:L1e,attributes:z1e}=F1e;return typeof L1e!="string"?L1e!=null&&L1e.span&&z1e&&z1e.tagKey&&z1e.id&&(B1e=m1e(z1e.tagKey,z1e.id,h1e,P1e),Array.isArray(B1e)?Array.isArray(_1e)&&B1e.length>R1e?B1e=B1e[R1e]:B1e=JSON.stringify(B1e):B1e&&(B1e='"'.concat(B1e,'"'))):B1e=L1e,B1e})),I1e&&I1e.length>0){const F1e=evalFormula(I1e);a1e.setFieldValue(_1e,F1e),f1e(_1e,a1e.getFieldsValue())}},m1e=(h1e,y1e,b1e,E1e)=>{let S1e="";if(h1e=="fieldsValue")if(y1e.indexOf(".")>=0){const[x1e,O1e]=y1e.split("."),R1e=(b1e==null?void 0:b1e[x1e])||[];Array.isArray(R1e)?S1e=R1e.map(A1e=>(A1e==null?void 0:A1e[O1e])||""):S1e=(R1e==null?void 0:R1e[O1e])||""}else S1e=(b1e==null?void 0:b1e[y1e])||"";else{let x1e=E1e.find(O1e=>O1e.id===h1e);if(x1e&&x1e.data&&x1e.data.length>0){var C1e;S1e=((C1e=x1e.data[0])===null||C1e===void 0?void 0:C1e[y1e])||""}}return S1e},v1e=lodashExports.debounce((h1e,y1e)=>{const b1e=a1e.getFieldsValue();let E1e=!1;console.log("changedFields",h1e),h1e.forEach(S1e=>{S1e.name&&S1e.name.length>0&&(E1e=f1e(S1e.name,b1e))}),E1e&&s1e($1e())},200),$1e=()=>{const h1e=React.Children.toArray(r1e);return batchElements(h1e.filter(b1e=>{var E1e;const S1e=b1e.props.componentId||b1e.props.__id;return!l1e.current.has(S1e)||((E1e=l1e.current.get(S1e))===null||E1e===void 0?void 0:E1e.show)}),n1e).map((b1e,E1e)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:b1e.map((S1e,C1e)=>{var x1e;const{componentId:O1e,__id:R1e,_componentName:A1e,..._1e}=S1e.props,P1e=((x1e=S1e.type)===null||x1e===void 0?void 0:x1e.displayName)||A1e,N1e=O1e||R1e,I1e=P1e&&P1e.startsWith("Layout."),F1e=P1e&&P1e=="Field.Table",B1e=[];if(_1e.isRequired&&B1e.push({required:!0,message:"".concat(_1e.label,"必须填写")}),_1e.rules)if(Array.isArray(_1e.rules)){const L1e=_1e.rules.join("|");B1e.push({pattern:new RegExp(L1e),message:_1e.rulesFailMessage?_1e.rulesFailMessage:"".concat(_1e.label,"格式错误")})}else B1e.push({pattern:new RegExp(_1e.rules),message:_1e.rulesFailMessage?_1e.rulesFailMessage:"".concat(_1e.label,"格式错误")});return jsxRuntimeExports.jsx(Col,{span:I1e?24:24/b1e.length,style:{marginBottom:0},children:I1e||F1e?S1e:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:N1e,rules:B1e,children:S1e})},N1e||"col-".concat(C1e))})},"row-".concat(E1e)))};return jsxRuntimeExports.jsx(Form,{form:a1e,className:"form-container fp-0 fw-full fh-full box-border fflex fflex-col fgap-y-2"+(o1e=="desgin"?" fp-6":""),onFieldsChange:v1e,children:i1e})});function withWrap(e1e){return React.forwardRef((t1e,n1e)=>jsxRuntimeExports.jsx(e1e,{...t1e,ref:n1e,forwardedRef:n1e}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:t1e,...n1e}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...n1e,ref:t1e})}}const FormContainerWrapper=withWrap(e1e=>{let{forwardedRef:t1e,...n1e}=e1e;return jsxRuntimeExports.jsx(FormContainer,{...n1e,ref:t1e})}),CheckboxTree=e1e=>{let{request:t1e,value:n1e,onChange:r1e,callError:o1e,disabledValue:a1e,addRoot:i1e=!0,title:s1e,...l1e}=e1e;const[u1e,c1e]=React.useState(!1),[f1e,d1e]=React.useState([]);React.useEffect(()=>{p1e()},[]),React.useEffect(()=>{if(typeof n1e=="string")try{n1e=JSON.parse(n1e),r1e(n1e)}catch{}Array.isArray(n1e)&&$1e(n1e)},[n1e]);const p1e=async()=>{if(t1e&&typeof t1e=="function"){var O1e;const R1e=await t1e();if(R1e.code>0){o1e&&typeof o1e=="function"&&o1e(R1e.message);return}let A1e=handleTree(((O1e=R1e.data)===null||O1e===void 0?void 0:O1e.list)||R1e.data||[],"id",s1e||"title",(l1e==null?void 0:l1e.parentId)||"parentId","children",0,a1e);i1e&&(A1e=[{value:0,title:"根节点",children:A1e}]),l1e.treeData=A1e,console.log("treeData",A1e),d1e(A1e)}l1e.treeData&&d1e(l1e.treeData),c1e(!0)},[g1e,m1e]=React.useState([]),[v1e,$1e]=React.useState([]),[h1e,y1e]=React.useState([]),[b1e,E1e]=React.useState(!0),S1e=O1e=>{console.log("onExpand",O1e),m1e(O1e),E1e(!1)},C1e=O1e=>{console.log("onCheck",O1e),$1e(O1e),r1e(O1e)},x1e=(O1e,R1e)=>{console.log("onSelect",R1e),y1e(O1e)};return jsxRuntimeExports.jsx(BaseWrapper,{...l1e,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:S1e,onCheck:C1e,onSelect:x1e,expandedKeys:g1e,autoExpandParent:b1e,checkedKeys:v1e,selectedKeys:h1e,treeData:f1e})})},Checkbox=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(Checkbox$1,{...e1e})}),CheckboxGroup=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...e1e})}),RadioGroup=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(Radio.Group,{...e1e})}),UploadFile=e1e=>{let{value:t1e,maxCount:n1e,onChange:r1e,...o1e}=e1e;React.useEffect(()=>{if(t1e){if(typeof t1e=="string")try{t1e=JSON.parse(t1e),r1e(t1e)}catch{}console.log("value",t1e),Array.isArray(t1e)&&i1e(t1e)}},[t1e]),n1e=n1e||9;const[a1e,i1e]=React.useState([]),s1e=l1e=>{let{fileList:u1e}=l1e;console.log("newFileList",u1e),u1e=u1e.map(c1e=>(c1e.status=="done"&&c1e.response&&(c1e.url=c1e.response),c1e)),r1e(u1e.map(c1e=>({uid:c1e.uid,name:c1e.name,status:c1e.status,url:c1e.url||c1e.response||"",error:c1e.error}))),i1e(u1e)};return jsxRuntimeExports.jsx(Upload,{...o1e,listType:"text",maxCount:n1e,onChange:s1e,fileList:a1e,children:!(o1e!=null&&o1e.disabled)&&!(o1e!=null&&o1e.readonly)&&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,{}),"点击上传文件"]})})};UploadFile.displayName="UploadFile";const UploadImageWrapper$1=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(UploadFile,{...e1e})}),UploadImage=e1e=>{let{maxCount:t1e,value:n1e,onChange:r1e,...o1e}=e1e;console.log("uploadimage props",o1e),React.useEffect(()=>{if(n1e){if(console.log("value",n1e),typeof n1e=="string")try{n1e=JSON.parse(n1e),r1e(n1e)}catch{}let b1e=[];if(Array.isArray(n1e))for(let E1e=0;E1e<n1e.length;E1e++){let S1e=n1e[E1e];var y1e=p1e.current.find(C1e=>C1e.uid===S1e.uid);!y1e||(y1e.version||0)<(S1e.version||0)?b1e.push(S1e):b1e.push(y1e)}i1e(b1e)}},[n1e]),t1e=t1e||9;const[a1e,i1e]=React.useState([]),[s1e,l1e]=React.useState(""),[u1e,c1e]=React.useState(0),[f1e,d1e]=React.useState(!1),p1e=React.useRef([]),g1e=y1e=>new Promise((b1e,E1e)=>{const S1e=new FileReader;S1e.readAsDataURL(y1e),S1e.onload=()=>b1e(S1e.result),S1e.onerror=C1e=>E1e(C1e)}),m1e=async(y1e,b1e)=>{!y1e.url&&!y1e.preview&&(y1e.preview=await g1e(y1e.originFileObj)),l1e(y1e.url||y1e.preview),c1e(b1e),d1e(!0)},v1e=async(y1e,b1e)=>{o1e!=null&&o1e.disabled||i1e(a1e.filter((E1e,S1e)=>S1e!==b1e))},$1e=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:"点击上传"})]})}),h1e=y1e=>{let{fileList:b1e}=y1e,E1e=[];for(let x1e=0;x1e<b1e.length;x1e++){var S1e=b1e[x1e];S1e.version=new Date().getTime();var C1e=p1e.current.find(O1e=>O1e.uid===S1e.uid);console.log("oldfile",JSON.parse(JSON.stringify(C1e||{}))),C1e&&C1e.status!="uploading"?E1e.push(C1e):(S1e.status=="done"&&S1e.response&&(S1e.url=S1e.response),E1e.push(S1e))}p1e.current=E1e,i1e(E1e),r1e(E1e.map(x1e=>({uid:x1e.uid,name:x1e.name,status:x1e.status,url:x1e.url||x1e.response||"",error:x1e.error,version:x1e.version||0})))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...o1e,itemRender:(y1e,b1e,E1e)=>{console.log("file",b1e);let S1e=E1e.findIndex(C1e=>C1e.uid===b1e.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"+(b1e.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:[b1e.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{m1e(b1e,S1e)},className:"hover:ftext-gray-200"}),!(o1e!=null&&o1e.disabled)&&!(o1e!=null&&o1e.readonly)&&jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{v1e(b1e,S1e)},className:"hover:ftext-gray-200"})]}),b1e.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:b1e.url||b1e.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(b1e.uid))})},listType:"picture-card",fileList:a1e,maxCount:t1e,onPreview:m1e,onChange:h1e,children:a1e.length>=t1e||o1e!=null&&o1e.disabled||o1e!=null&&o1e.readonly?null:$1e})}),s1e&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:f1e,current:u1e,onVisibleChange:y1e=>d1e(y1e),onChange:y1e=>{c1e(y1e)}},children:a1e.map((y1e,b1e)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:y1e.url})}))})]})};UploadImage.displayName="UploadImage";const UploadImageWrapper=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,children:jsxRuntimeExports.jsx(UploadImage,{...e1e})}),Switch=e1e=>{let{value:t1e,onChange:n1e,...r1e}=e1e;const[o1e,a1e]=React.useState(!1);return React.useEffect(()=>{let i1e=!1;typeof t1e=="boolean"?i1e=t1e:typeof t1e=="string"?i1e=t1e=="1"||t1e=="true":typeof t1e=="number"&&(i1e=t1e==1),a1e(i1e),typeof n1e=="function"&&n1e(i1e)},[t1e]),jsxRuntimeExports.jsx(BaseWrapper,{...r1e,children:jsxRuntimeExports.jsx(Switch$1,{...r1e,onChange:n1e,value:o1e})})};var zhCn={exports:{}};(function(e1e,t1e){(function(n1e,r1e){e1e.exports=r1e(requireDayjs_min())})(commonjsGlobal,function(n1e){function r1e(i1e){return i1e&&typeof i1e=="object"&&"default"in i1e?i1e:{default:i1e}}var o1e=r1e(n1e),a1e={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(i1e,s1e){return s1e==="W"?i1e+"周":i1e+"日"},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(i1e,s1e){var l1e=100*i1e+s1e;return l1e<600?"凌晨":l1e<900?"早上":l1e<1100?"上午":l1e<1300?"中午":l1e<1800?"下午":"晚上"}};return o1e.default.locale(a1e,null,!0),a1e})})(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(e1e,t1e){(function(n1e,r1e){e1e.exports=r1e()})(commonjsGlobal,function(){return function(n1e,r1e,o1e){o1e.updateLocale=function(a1e,i1e){var s1e=o1e.Ls[a1e];if(s1e)return(i1e?Object.keys(i1e):[]).forEach(function(l1e){s1e[l1e]=i1e[l1e]}),s1e}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=e1e=>{let{datetype:t1e,value:n1e,defaultNow:r1e,onChange:o1e,...a1e}=e1e;t1e=t1e||"date";const[i1e,s1e]=React.useState(a1e==null?void 0:a1e.picker),[l1e,u1e]=React.useState(a1e==null?void 0:a1e.format),[c1e,f1e]=React.useState(null),[d1e,p1e]=React.useState(!1),[g1e,m1e]=React.useState(!1);React.useEffect(()=>{if(n1e){const $1e=dayjs(n1e);f1e($1e)}else if(r1e){const $1e=dayjs();f1e($1e)}},[n1e,l1e,i1e]);const v1e=($1e,h1e)=>{o1e(h1e)};return React.useEffect(()=>{switch(s1e("date"),p1e(!1),t1e){case"date":s1e("date"),u1e("YYYY-MM-DD"),m1e(!1);break;case"datetime":p1e(!0),s1e("datetime"),u1e("YYYY-MM-DD HH:mm:ss"),m1e(!0);break;case"month":s1e("month"),m1e(!1);break;case"year":s1e("year"),m1e(!1);break}},[t1e]),jsxRuntimeExports.jsx(BaseWrapper,{...a1e,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...a1e,picker:i1e,format:l1e,style:{width:"100%"},onChange:v1e,value:c1e,showTime:d1e,needConfirm:g1e})})},TableAction=e1e=>{let{label:t1e,subTableIndex:n1e,children:r1e,subTableHead:o1e=!1,...a1e}=e1e;return jsxRuntimeExports.jsx("div",{className:"fw-12 ",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col foverflow-hidden",children:[t1e&&o1e&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-[#fafafa] ftext-sm fflex fflex-nowrap ftext-nowrap fjustify-between fitems-center fpx-2 fborder-b",children:t1e}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 fbox-border ",children:r1e})]})})},TableCol=e1e=>{let{children:t1e,width:n1e,...r1e}=e1e;const[o1e,a1e]=React.useState(0);return React.useEffect(()=>{a1e(n1e)},[n1e]),jsxRuntimeExports.jsx("div",{className:"fflex-1 fpx-1",style:{minWidth:"".concat(o1e,"px")},...r1e,children:t1e})},Table=e1e=>{let{children:t1e,...n1e}=e1e;const[r1e,o1e]=React.useState(!1),a1e=n1e.componentId||n1e.__id,i1e=[],s1e=l1e=>{r1e||o1e(!0),typeof l1e=="function"&&l1e()};return n1e.isRequired&&i1e.push({required:!0,message:"子表[".concat(n1e.label,"]必须填写")}),jsxRuntimeExports.jsx(Form.List,{name:a1e,rules:i1e,children:(l1e,u1e)=>{let{add:c1e,remove:f1e}=u1e;return l1e.length===0&&!r1e&&s1e(c1e),jsxRuntimeExports.jsxs("div",{className:"fw-full ",children:[jsxRuntimeExports.jsxs("div",{className:"fw-full frelative fmin-h-20 foverflow-x-auto",children:[l1e.length===0&&jsxRuntimeExports.jsxs("div",{className:"fborder-b fflex flex-nowrap fmin-w-full ",children:[React.Children.map(t1e,(d1e,p1e)=>jsxRuntimeExports.jsx(TableCol,{width:150,children:React.cloneElement(d1e,{key:"row_".concat(0,"_child_",p1e),subTable:!0,subTableHead:!0,subTableContent:!1})},"row_".concat(0,"_col_",p1e))),!(n1e!=null&&n1e.readonly)&&jsxRuntimeExports.jsx(TableAction,{subTableHead:!0,subTable:!0,subTableIndex:0,label:"操作"},"row_".concat(0,"_action"))]},"tableHead"),l1e.map((d1e,p1e)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b fflex flex-nowrap fmin-w-full ",children:[React.Children.map(t1e,(g1e,m1e)=>{var v1e,$1e;let{props:h1e}=g1e;const y1e=(g1e==null||(v1e=g1e.props)===null||v1e===void 0?void 0:v1e.componentId)||(g1e==null||($1e=g1e.props)===null||$1e===void 0?void 0:$1e.__id)||m1e;(d1e==null?void 0:d1e[y1e])===void 0&&(d1e[y1e]="");const b1e=[];if(h1e.isRequired&&b1e.push({required:!0,message:"".concat(h1e.label,"必须填写")}),h1e.rules)if(Array.isArray(h1e.rules)){const E1e=h1e.rules.join("|");b1e.push({pattern:new RegExp(E1e),message:h1e.rulesFailMessage?h1e.rulesFailMessage:"".concat(h1e.label,"格式错误")})}else b1e.push({pattern:new RegExp(h1e.rules),message:h1e.rulesFailMessage?h1e.rulesFailMessage:"".concat(h1e.label,"格式错误")});return jsxRuntimeExports.jsx(TableCol,{width:150,children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:[d1e.name,y1e],rules:b1e,children:React.cloneElement(g1e,{key:"row_".concat(p1e,"_child_").concat(m1e),subTable:!0,subTableIndex:p1e,subTableHead:p1e==0})})},"row_".concat(p1e,"_col_").concat(m1e))}),!(n1e!=null&&n1e.readonly)&&jsxRuntimeExports.jsx(TableAction,{subTableHead:p1e==0,subTable:!0,subTableIndex:p1e,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>f1e(p1e)})},"row_".concat(p1e,"_action"))]},d1e.key))]}),jsxRuntimeExports.jsx(Button$1,{onClick:()=>c1e(),className:"fmy-2",children:"新增一行"})]})}})};Table.displayName="Table";const TableWrapper=e1e=>jsxRuntimeExports.jsx(BaseWrapper,{...e1e,higLabel:!0,children:jsxRuntimeExports.jsx(Table,{...e1e})}),OptionSetter=e1e=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(e1e,t1e){return e1e===t1e||e1e!==e1e&&t1e!==t1e}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(e1e,t1e){for(var n1e=e1e.length;n1e--;)if(eq$3(e1e[n1e][0],t1e))return n1e;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e1e){var t1e=this.__data__,n1e=assocIndexOf$3(t1e,e1e);if(n1e<0)return!1;var r1e=t1e.length-1;return n1e==r1e?t1e.pop():splice.call(t1e,n1e,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e1e){var t1e=this.__data__,n1e=assocIndexOf$2(t1e,e1e);return n1e<0?void 0:t1e[n1e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e1e){return assocIndexOf$1(this.__data__,e1e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e1e,t1e){var n1e=this.__data__,r1e=assocIndexOf(n1e,e1e);return r1e<0?(++this.size,n1e.push([e1e,t1e])):n1e[r1e][1]=t1e,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.clear();++t1e<n1e;){var r1e=e1e[t1e];this.set(r1e[0],r1e[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(e1e){var t1e=this.__data__,n1e=t1e.delete(e1e);return this.size=t1e.size,n1e}var _stackDelete=stackDelete$1;function stackGet$1(e1e){return this.__data__.get(e1e)}var _stackGet=stackGet$1;function stackHas$1(e1e){return this.__data__.has(e1e)}var _stackHas=stackHas$1;function isObject$2(e1e){var t1e=typeof e1e;return e1e!=null&&(t1e=="object"||t1e=="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(e1e){if(!isObject$1(e1e))return!1;var t1e=baseGetTag$3(e1e);return t1e==funcTag$1||t1e==genTag||t1e==asyncTag||t1e==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e1e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e1e?"Symbol(src)_1."+e1e:""}();function isMasked$1(e1e){return!!maskSrcKey&&maskSrcKey in e1e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e1e){if(e1e!=null){try{return funcToString$1.call(e1e)}catch{}try{return e1e+""}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(e1e){if(!isObject(e1e)||isMasked(e1e))return!1;var t1e=isFunction$1(e1e)?reIsNative:reIsHostCtor;return t1e.test(toSource$1(e1e))}var _baseIsNative=baseIsNative$1;function getValue$1(e1e,t1e){return e1e==null?void 0:e1e[t1e]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(e1e,t1e){var n1e=getValue(e1e,t1e);return baseIsNative(n1e)?n1e: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(e1e){var t1e=this.has(e1e)&&delete this.__data__[e1e];return this.size-=t1e?1:0,t1e}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(e1e){var t1e=this.__data__;if(nativeCreate$2){var n1e=t1e[e1e];return n1e===HASH_UNDEFINED$2?void 0:n1e}return hasOwnProperty$7.call(t1e,e1e)?t1e[e1e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(e1e){var t1e=this.__data__;return nativeCreate$1?t1e[e1e]!==void 0:hasOwnProperty$6.call(t1e,e1e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e1e,t1e){var n1e=this.__data__;return this.size+=this.has(e1e)?0:1,n1e[e1e]=nativeCreate&&t1e===void 0?HASH_UNDEFINED$1:t1e,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.clear();++t1e<n1e;){var r1e=e1e[t1e];this.set(r1e[0],r1e[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(e1e){var t1e=typeof e1e;return t1e=="string"||t1e=="number"||t1e=="symbol"||t1e=="boolean"?e1e!=="__proto__":e1e===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e1e,t1e){var n1e=e1e.__data__;return isKeyable(t1e)?n1e[typeof t1e=="string"?"string":"hash"]:n1e.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e1e){var t1e=getMapData$3(this,e1e).delete(e1e);return this.size-=t1e?1:0,t1e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e1e){return getMapData$2(this,e1e).get(e1e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e1e){return getMapData$1(this,e1e).has(e1e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e1e,t1e){var n1e=getMapData(this,e1e),r1e=n1e.size;return n1e.set(e1e,t1e),this.size+=n1e.size==r1e?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.clear();++t1e<n1e;){var r1e=e1e[t1e];this.set(r1e[0],r1e[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(e1e,t1e){var n1e=this.__data__;if(n1e instanceof ListCache$1){var r1e=n1e.__data__;if(!Map$2||r1e.length<LARGE_ARRAY_SIZE-1)return r1e.push([e1e,t1e]),this.size=++n1e.size,this;n1e=this.__data__=new MapCache$1(r1e)}return n1e.set(e1e,t1e),this.size=n1e.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e1e){var t1e=this.__data__=new ListCache(e1e);this.size=t1e.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(e1e){return this.__data__.set(e1e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e1e){return this.__data__.has(e1e)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(e1e){var t1e=-1,n1e=e1e==null?0:e1e.length;for(this.__data__=new MapCache;++t1e<n1e;)this.add(e1e[t1e])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(e1e,t1e){for(var n1e=-1,r1e=e1e==null?0:e1e.length;++n1e<r1e;)if(t1e(e1e[n1e],n1e,e1e))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(e1e,t1e){return e1e.has(t1e)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(e1e,t1e,n1e,r1e,o1e,a1e){var i1e=n1e&COMPARE_PARTIAL_FLAG$3,s1e=e1e.length,l1e=t1e.length;if(s1e!=l1e&&!(i1e&&l1e>s1e))return!1;var u1e=a1e.get(e1e),c1e=a1e.get(t1e);if(u1e&&c1e)return u1e==t1e&&c1e==e1e;var f1e=-1,d1e=!0,p1e=n1e&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a1e.set(e1e,t1e),a1e.set(t1e,e1e);++f1e<s1e;){var g1e=e1e[f1e],m1e=t1e[f1e];if(r1e)var v1e=i1e?r1e(m1e,g1e,f1e,t1e,e1e,a1e):r1e(g1e,m1e,f1e,e1e,t1e,a1e);if(v1e!==void 0){if(v1e)continue;d1e=!1;break}if(p1e){if(!arraySome(t1e,function($1e,h1e){if(!cacheHas(p1e,h1e)&&(g1e===$1e||o1e(g1e,$1e,n1e,r1e,a1e)))return p1e.push(h1e)})){d1e=!1;break}}else if(!(g1e===m1e||o1e(g1e,m1e,n1e,r1e,a1e))){d1e=!1;break}}return a1e.delete(e1e),a1e.delete(t1e),d1e}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e1e){var t1e=-1,n1e=Array(e1e.size);return e1e.forEach(function(r1e,o1e){n1e[++t1e]=[o1e,r1e]}),n1e}var _mapToArray=mapToArray$1;function setToArray$1(e1e){var t1e=-1,n1e=Array(e1e.size);return e1e.forEach(function(r1e){n1e[++t1e]=r1e}),n1e}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$2=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(e1e,t1e,n1e,r1e,o1e,a1e,i1e){switch(n1e){case dataViewTag$2:if(e1e.byteLength!=t1e.byteLength||e1e.byteOffset!=t1e.byteOffset)return!1;e1e=e1e.buffer,t1e=t1e.buffer;case arrayBufferTag$1:return!(e1e.byteLength!=t1e.byteLength||!a1e(new Uint8Array$1(e1e),new Uint8Array$1(t1e)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$2(+e1e,+t1e);case errorTag$1:return e1e.name==t1e.name&&e1e.message==t1e.message;case regexpTag$1:case stringTag$1:return e1e==t1e+"";case mapTag$2:var s1e=mapToArray;case setTag$2:var l1e=r1e&COMPARE_PARTIAL_FLAG$2;if(s1e||(s1e=setToArray),e1e.size!=t1e.size&&!l1e)return!1;var u1e=i1e.get(e1e);if(u1e)return u1e==t1e;r1e|=COMPARE_UNORDERED_FLAG,i1e.set(e1e,t1e);var c1e=equalArrays$1(s1e(e1e),s1e(t1e),r1e,o1e,a1e,i1e);return i1e.delete(e1e),c1e;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e1e)==symbolValueOf.call(t1e)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(e1e,t1e){for(var n1e=-1,r1e=t1e.length,o1e=e1e.length;++n1e<r1e;)e1e[o1e+n1e]=t1e[n1e];return e1e}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(e1e,t1e,n1e){var r1e=t1e(e1e);return isArray$2(e1e)?r1e:arrayPush(r1e,n1e(e1e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e1e,t1e){for(var n1e=-1,r1e=e1e==null?0:e1e.length,o1e=0,a1e=[];++n1e<r1e;){var i1e=e1e[n1e];t1e(i1e,n1e,e1e)&&(a1e[o1e++]=i1e)}return a1e}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(e1e){return e1e==null?[]:(e1e=Object(e1e),arrayFilter(nativeGetSymbols(e1e),function(t1e){return propertyIsEnumerable$1.call(e1e,t1e)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e1e,t1e){for(var n1e=-1,r1e=Array(e1e);++n1e<e1e;)r1e[n1e]=t1e(n1e);return r1e}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e1e){return isObjectLike$3(e1e)&&baseGetTag$2(e1e)==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(e1e){return isObjectLike$2(e1e)&&hasOwnProperty$5.call(e1e,"callee")&&!propertyIsEnumerable.call(e1e,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(e1e,t1e){var n1e=_root,r1e=stubFalse_1,o1e=t1e&&!t1e.nodeType&&t1e,a1e=o1e&&!0&&e1e&&!e1e.nodeType&&e1e,i1e=a1e&&a1e.exports===o1e,s1e=i1e?n1e.Buffer:void 0,l1e=s1e?s1e.isBuffer:void 0,u1e=l1e||r1e;e1e.exports=u1e})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e1e,t1e){var n1e=typeof e1e;return t1e=t1e??MAX_SAFE_INTEGER$1,!!t1e&&(n1e=="number"||n1e!="symbol"&&reIsUint.test(e1e))&&e1e>-1&&e1e%1==0&&e1e<t1e}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e1e){return typeof e1e=="number"&&e1e>-1&&e1e%1==0&&e1e<=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(e1e){return isObjectLike$1(e1e)&&isLength$1(e1e.length)&&!!typedArrayTags[baseGetTag$1(e1e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e1e){return function(t1e){return e1e(t1e)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(e1e,t1e){var n1e=_freeGlobal,r1e=t1e&&!t1e.nodeType&&t1e,o1e=r1e&&!0&&e1e&&!e1e.nodeType&&e1e,a1e=o1e&&o1e.exports===r1e,i1e=a1e&&n1e.process,s1e=function(){try{var l1e=o1e&&o1e.require&&o1e.require("util").types;return l1e||i1e&&i1e.binding&&i1e.binding("util")}catch{}}();e1e.exports=s1e})(_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(e1e,t1e){var n1e=isArray$1(e1e),r1e=!n1e&&isArguments(e1e),o1e=!n1e&&!r1e&&isBuffer$1(e1e),a1e=!n1e&&!r1e&&!o1e&&isTypedArray$1(e1e),i1e=n1e||r1e||o1e||a1e,s1e=i1e?baseTimes(e1e.length,String):[],l1e=s1e.length;for(var u1e in e1e)(t1e||hasOwnProperty$4.call(e1e,u1e))&&!(i1e&&(u1e=="length"||o1e&&(u1e=="offset"||u1e=="parent")||a1e&&(u1e=="buffer"||u1e=="byteLength"||u1e=="byteOffset")||isIndex(u1e,l1e)))&&s1e.push(u1e);return s1e}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e1e){var t1e=e1e&&e1e.constructor,n1e=typeof t1e=="function"&&t1e.prototype||objectProto$3;return e1e===n1e}var _isPrototype=isPrototype$1;function overArg$1(e1e,t1e){return function(n1e){return e1e(t1e(n1e))}}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(e1e){if(!isPrototype(e1e))return nativeKeys(e1e);var t1e=[];for(var n1e in Object(e1e))hasOwnProperty$3.call(e1e,n1e)&&n1e!="constructor"&&t1e.push(n1e);return t1e}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(e1e){return e1e!=null&&isLength(e1e.length)&&!isFunction(e1e)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(e1e){return isArrayLike(e1e)?arrayLikeKeys(e1e):baseKeys(e1e)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(e1e){return baseGetAllKeys(e1e,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(e1e,t1e,n1e,r1e,o1e,a1e){var i1e=n1e&COMPARE_PARTIAL_FLAG$1,s1e=getAllKeys(e1e),l1e=s1e.length,u1e=getAllKeys(t1e),c1e=u1e.length;if(l1e!=c1e&&!i1e)return!1;for(var f1e=l1e;f1e--;){var d1e=s1e[f1e];if(!(i1e?d1e in t1e:hasOwnProperty$2.call(t1e,d1e)))return!1}var p1e=a1e.get(e1e),g1e=a1e.get(t1e);if(p1e&&g1e)return p1e==t1e&&g1e==e1e;var m1e=!0;a1e.set(e1e,t1e),a1e.set(t1e,e1e);for(var v1e=i1e;++f1e<l1e;){d1e=s1e[f1e];var $1e=e1e[d1e],h1e=t1e[d1e];if(r1e)var y1e=i1e?r1e(h1e,$1e,d1e,t1e,e1e,a1e):r1e($1e,h1e,d1e,e1e,t1e,a1e);if(!(y1e===void 0?$1e===h1e||o1e($1e,h1e,n1e,r1e,a1e):y1e)){m1e=!1;break}v1e||(v1e=d1e=="constructor")}if(m1e&&!v1e){var b1e=e1e.constructor,E1e=t1e.constructor;b1e!=E1e&&"constructor"in e1e&&"constructor"in t1e&&!(typeof b1e=="function"&&b1e instanceof b1e&&typeof E1e=="function"&&E1e instanceof E1e)&&(m1e=!1)}return a1e.delete(e1e),a1e.delete(t1e),m1e}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(e1e){var t1e=baseGetTag(e1e),n1e=t1e==objectTag$1?e1e.constructor:void 0,r1e=n1e?toSource(n1e):"";if(r1e)switch(r1e){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t1e});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(e1e,t1e,n1e,r1e,o1e,a1e){var i1e=isArray(e1e),s1e=isArray(t1e),l1e=i1e?arrayTag:getTag(e1e),u1e=s1e?arrayTag:getTag(t1e);l1e=l1e==argsTag?objectTag:l1e,u1e=u1e==argsTag?objectTag:u1e;var c1e=l1e==objectTag,f1e=u1e==objectTag,d1e=l1e==u1e;if(d1e&&isBuffer(e1e)){if(!isBuffer(t1e))return!1;i1e=!0,c1e=!1}if(d1e&&!c1e)return a1e||(a1e=new Stack),i1e||isTypedArray(e1e)?equalArrays(e1e,t1e,n1e,r1e,o1e,a1e):equalByTag(e1e,t1e,l1e,n1e,r1e,o1e,a1e);if(!(n1e&COMPARE_PARTIAL_FLAG)){var p1e=c1e&&hasOwnProperty$1.call(e1e,"__wrapped__"),g1e=f1e&&hasOwnProperty$1.call(t1e,"__wrapped__");if(p1e||g1e){var m1e=p1e?e1e.value():e1e,v1e=g1e?t1e.value():t1e;return a1e||(a1e=new Stack),o1e(m1e,v1e,n1e,r1e,a1e)}}return d1e?(a1e||(a1e=new Stack),equalObjects(e1e,t1e,n1e,r1e,o1e,a1e)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(e1e,t1e,n1e,r1e,o1e){return e1e===t1e?!0:e1e==null||t1e==null||!isObjectLike(e1e)&&!isObjectLike(t1e)?e1e!==e1e&&t1e!==t1e:baseIsEqualDeep(e1e,t1e,n1e,r1e,baseIsEqual$1,o1e)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(e1e,t1e){return baseIsEqual(e1e,t1e)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
|
406
406
|
* Quill Editor v1.3.7
|
407
407
|
* https://quilljs.com/
|
408
408
|
* Copyright (c) 2014, Jason Chen
|
package/dist/index.es.js
CHANGED
@@ -35953,23 +35953,27 @@ const BaseWrapper = (e1e) => {
|
|
35953
35953
|
hidePrompt: u1e = !1,
|
35954
35954
|
subTableIndex: c1e,
|
35955
35955
|
addWrapper: f1e = !0,
|
35956
|
-
|
35957
|
-
|
35958
|
-
|
35956
|
+
defaultValue: d1e,
|
35957
|
+
onChange: p1e,
|
35958
|
+
readonly: g1e,
|
35959
|
+
isRequired: m1e,
|
35960
|
+
...v1e
|
35959
35961
|
} = e1e;
|
35960
|
-
if (
|
35961
|
-
|
35962
|
-
|
35963
|
-
|
35964
|
-
|
35965
|
-
|
35966
|
-
|
35967
|
-
|
35962
|
+
if (useEffect(() => {
|
35963
|
+
d1e && typeof p1e == "function" && p1e(d1e);
|
35964
|
+
}, [d1e]), !f1e) return o1e;
|
35965
|
+
const $1e = ["UploadImage", "UploadFile", "Table", "WithMultipleSelect", "WithSingleSelect"];
|
35966
|
+
if (g1e) {
|
35967
|
+
var h1e;
|
35968
|
+
console.log("children?.type?.displayName", o1e == null || (h1e = o1e.type) === null || h1e === void 0 ? void 0 : h1e.displayName);
|
35969
|
+
}
|
35970
|
+
$1e.includes(o1e == null || (t1e = o1e.type) === null || t1e === void 0 ? void 0 : t1e.displayName) && g1e && (g1e = !1);
|
35971
|
+
const y1e = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
35968
35972
|
className: "frelative fw-full",
|
35969
35973
|
children: [n1e && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
35970
35974
|
children: [!r1e && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
35971
35975
|
className: "fh-8 ftext-gray-500 ftext-sm fflex fitems-center ".concat(r1e ? " ftext-xl fmy-2 ftext-black" : ""),
|
35972
|
-
children: [n1e,
|
35976
|
+
children: [n1e, m1e && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
35973
35977
|
className: "ftext-red-500 ffont-bold",
|
35974
35978
|
children: "*"
|
35975
35979
|
})]
|
@@ -35978,14 +35982,14 @@ const BaseWrapper = (e1e) => {
|
|
35978
35982
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
35979
35983
|
className: "fborder-l-4 fborder-slate-300 fpl-2 ",
|
35980
35984
|
children: n1e
|
35981
|
-
}),
|
35985
|
+
}), m1e && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
35982
35986
|
className: "ftext-red-500 ffont-bold",
|
35983
35987
|
children: "*"
|
35984
35988
|
})]
|
35985
35989
|
})]
|
35986
35990
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
35987
35991
|
className: "fw-full fflex fitems-stretch ftext-gray-900 frelative",
|
35988
|
-
children: [
|
35992
|
+
children: [g1e && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
35989
35993
|
className: "fw-full fh-full fbg-gray-100 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"
|
35990
35994
|
}), o1e]
|
35991
35995
|
}), !u1e && i1e && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
@@ -35999,18 +36003,18 @@ const BaseWrapper = (e1e) => {
|
|
35999
36003
|
className: "fh-12 ffont-semibold fbg-[#fafafa] ftext-sm fflex fitems-center fborder-b fpl-2 f-mx-1",
|
36000
36004
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
36001
36005
|
className: "fw-full fborder-r fborder-r-[#e9e9e9]",
|
36002
|
-
children: [n1e,
|
36006
|
+
children: [n1e, m1e && /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
36003
36007
|
className: "ftext-red-500",
|
36004
36008
|
children: "*"
|
36005
36009
|
})]
|
36006
36010
|
})
|
36007
36011
|
}), l1e && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
36008
36012
|
className: "fw-full fflex fitems-stretch frelative fpy-2",
|
36009
|
-
children: [
|
36013
|
+
children: [g1e && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
36010
36014
|
className: "fw-full fh-full fbg-gray-50 fopacity-5 fcursor-not-allowed fabsolute fleft-0 ftop-0 fz-10"
|
36011
36015
|
}), o1e]
|
36012
36016
|
})]
|
36013
|
-
}) :
|
36017
|
+
}) : y1e;
|
36014
36018
|
};
|
36015
36019
|
var lodash = { exports: {} };
|
36016
36020
|
/**
|
@@ -41531,49 +41535,53 @@ const DatePicker = (e1e) => {
|
|
41531
41535
|
let {
|
41532
41536
|
datetype: t1e,
|
41533
41537
|
value: n1e,
|
41534
|
-
|
41535
|
-
|
41538
|
+
defaultNow: r1e,
|
41539
|
+
onChange: o1e,
|
41540
|
+
...i1e
|
41536
41541
|
} = e1e;
|
41537
41542
|
t1e = t1e || "date";
|
41538
|
-
const [
|
41543
|
+
const [a1e, s1e] = useState(i1e == null ? void 0 : i1e.picker), [l1e, u1e] = useState(i1e == null ? void 0 : i1e.format), [c1e, f1e] = useState(null), [d1e, p1e] = useState(!1), [g1e, m1e] = useState(!1);
|
41539
41544
|
useEffect(() => {
|
41540
41545
|
if (n1e) {
|
41541
|
-
const
|
41542
|
-
|
41546
|
+
const $1e = dayjs(n1e);
|
41547
|
+
f1e($1e);
|
41548
|
+
} else if (r1e) {
|
41549
|
+
const $1e = dayjs();
|
41550
|
+
f1e($1e);
|
41543
41551
|
}
|
41544
|
-
}, [n1e,
|
41545
|
-
const
|
41546
|
-
|
41552
|
+
}, [n1e, l1e, a1e]);
|
41553
|
+
const v1e = ($1e, h1e) => {
|
41554
|
+
o1e(h1e);
|
41547
41555
|
};
|
41548
41556
|
return useEffect(() => {
|
41549
|
-
switch (
|
41557
|
+
switch (s1e("date"), p1e(!1), t1e) {
|
41550
41558
|
case "date":
|
41551
|
-
|
41559
|
+
s1e("date"), u1e("YYYY-MM-DD"), m1e(!1);
|
41552
41560
|
break;
|
41553
41561
|
case "datetime":
|
41554
|
-
|
41562
|
+
p1e(!0), s1e("datetime"), u1e("YYYY-MM-DD HH:mm:ss"), m1e(!0);
|
41555
41563
|
break;
|
41556
41564
|
case "month":
|
41557
|
-
|
41565
|
+
s1e("month"), m1e(!1);
|
41558
41566
|
break;
|
41559
41567
|
case "year":
|
41560
|
-
|
41568
|
+
s1e("year"), m1e(!1);
|
41561
41569
|
break;
|
41562
41570
|
}
|
41563
41571
|
}, [t1e]), /* @__PURE__ */ jsxRuntimeExports.jsx(BaseWrapper, {
|
41564
|
-
...
|
41572
|
+
...i1e,
|
41565
41573
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(DatePicker$1, {
|
41566
41574
|
locale,
|
41567
|
-
...
|
41568
|
-
picker:
|
41569
|
-
format:
|
41575
|
+
...i1e,
|
41576
|
+
picker: a1e,
|
41577
|
+
format: l1e,
|
41570
41578
|
style: {
|
41571
41579
|
width: "100%"
|
41572
41580
|
},
|
41573
|
-
onChange:
|
41574
|
-
value:
|
41575
|
-
showTime:
|
41576
|
-
needConfirm:
|
41581
|
+
onChange: v1e,
|
41582
|
+
value: c1e,
|
41583
|
+
showTime: d1e,
|
41584
|
+
needConfirm: g1e
|
41577
41585
|
})
|
41578
41586
|
});
|
41579
41587
|
}, TableAction = (e1e) => {
|
package/package.json
CHANGED
package/src/App.jsx
CHANGED
@@ -136,6 +136,7 @@ function App() {
|
|
136
136
|
|
137
137
|
|
138
138
|
<FormContainerWrapper cols={cols} className="" ref={formRef} >
|
139
|
+
<Field.UserSelect label="选择用户" __id="userselect" defaultValue={ [{id:1,username: "十天"}]} />
|
139
140
|
<Layout.FormGroupTitle title={"基本信息"} />
|
140
141
|
<Layout.FormRow layout={'1'}>
|
141
142
|
<Field.Table label="子表格" __id="table" >
|
@@ -323,9 +324,9 @@ function App() {
|
|
323
324
|
return fieldsValue?.switch ? true : false
|
324
325
|
}}
|
325
326
|
/>
|
326
|
-
<Field.DatePicker label="日期时间" prompt="" datetype="month" value='2022-10-22' __id="datetime" />
|
327
|
+
<Field.DatePicker defaultNow={true} label="日期时间" prompt="" datetype="month" value='2022-10-22' __id="datetime" />
|
327
328
|
<Field.DatePicker label="日期时间" prompt="" datetype="date" value='2022-10-22' __id="datetime2" />
|
328
|
-
<Field.DatePicker label="日期时间" prompt="" datetype="datetime" value={'2022-10-22'} __id="datetime3" />
|
329
|
+
<Field.DatePicker disabled={true} defaultNow={true} label="日期时间" prompt="" datetype="datetime" value={'2022-10-22'} __id="datetime3" />
|
329
330
|
<Field.DatePicker label="年" prompt="" datetype="year" value={'2022-10-22'} __id="datetime4" />
|
330
331
|
<Field.Input label="角色名称" __id="name" />
|
331
332
|
<Layout.FormRow layout={'1,1'}>
|
@@ -24,12 +24,15 @@ export const BaseWrapper = ({
|
|
24
24
|
hidePrompt = false,
|
25
25
|
subTableIndex,
|
26
26
|
addWrapper = true,
|
27
|
-
|
27
|
+
defaultValue,
|
28
|
+
onChange,
|
28
29
|
readonly,
|
29
30
|
isRequired,
|
30
31
|
...otherProps
|
31
32
|
}) => {
|
32
|
-
|
33
|
+
useEffect(()=>{
|
34
|
+
if (defaultValue && typeof onChange === "function") onChange(defaultValue)
|
35
|
+
},[defaultValue])
|
33
36
|
if (!addWrapper) return children;
|
34
37
|
// 不接管只读属性的组件
|
35
38
|
const ignoreReadonly = ["UploadImage", "UploadFile", "Table", "WithMultipleSelect", "WithSingleSelect"]
|
@@ -12,7 +12,7 @@ dayjs.updateLocale('zh-cn', {
|
|
12
12
|
weekStart: 0,
|
13
13
|
});
|
14
14
|
|
15
|
-
const DatePicker = ({ datetype, value, onChange, ...props }) => {
|
15
|
+
const DatePicker = ({ datetype, value, defaultNow,onChange, ...props }) => {
|
16
16
|
datetype = datetype || "date"
|
17
17
|
const [picker, setPicker] = useState(props?.picker)
|
18
18
|
const [format, setFormat] = useState(props?.format)
|
@@ -24,6 +24,10 @@ const DatePicker = ({ datetype, value, onChange, ...props }) => {
|
|
24
24
|
const format_date = dayjs(value)
|
25
25
|
setNValue(format_date)
|
26
26
|
}
|
27
|
+
else if (defaultNow) {
|
28
|
+
const now = dayjs()
|
29
|
+
setNValue(now)
|
30
|
+
}
|
27
31
|
}, [value, format, picker])
|
28
32
|
|
29
33
|
const handleChange = (value, dateString) => {
|