@pdfme/ui 4.2.4-dev.7 → 4.2.4-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
@@ -136350,7 +136350,7 @@ const { Text: Text$4 } = Typography$1, Item = React$a.memo(
|
|
136350
136350
|
},
|
136351
136351
|
title: _ || "",
|
136352
136352
|
children: [
|
136353
|
-
$ === void 0 ? s : /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
136353
|
+
$ === void 0 ? s : /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
136354
136354
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ExclamationCircleOutlined$1, { width: 15, style: { marginRight: "0.5rem" } }),
|
136355
136355
|
$ === "is-warning" ? gt("noKeyName") : s,
|
136356
136356
|
$ === "is-danger" ? gt("notUniq") : ""
|
package/dist/index.umd.js
CHANGED
@@ -587,7 +587,7 @@ html body {
|
|
587
587
|
${$}-eye,
|
588
588
|
${$}-download,
|
589
589
|
${$}-delete
|
590
|
-
`]:{zIndex:10,width:_,margin:`0 ${unit$1(a.marginXXS)}`,fontSize:_,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,color:_e,"&:hover":{color:_e},svg:{verticalAlign:"baseline"}}},[`${at}-thumbnail, ${at}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${at}-name`]:{display:"none",textAlign:"center"},[`${at}-file + ${at}-name`]:{position:"absolute",bottom:a.margin,display:"block",width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`},[`${at}-uploading`]:{[`&${at}`]:{backgroundColor:a.colorFillAlter},[`&::before, ${$}-eye, ${$}-download, ${$}-delete`]:{display:"none"}},[`${at}-progress`]:{bottom:a.marginXL,width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}},genRtlStyle=a=>{const{componentCls:s}=a;return{[`${s}-rtl`]:{direction:"rtl"}}},genRtlStyle$1=genRtlStyle,genBaseStyle=a=>{const{componentCls:s,colorTextDisabled:$}=a;return{[`${s}-wrapper`]:Object.assign(Object.assign({},resetComponent(a)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-disabled`]:{color:$,cursor:"not-allowed"}})}},prepareComponentToken=a=>({actionsColor:a.colorTextDescription}),useStyle=genStyleHooks("Upload",a=>{const{fontSizeHeading3:s,fontHeight:$,lineWidth:_,controlHeightLG:_e,calc:tt}=a,nt=merge(a,{uploadThumbnailSize:tt(s).mul(2).equal(),uploadProgressOffset:tt(tt($).div(2)).add(_).equal(),uploadPicCardSize:tt(_e).mul(2.55).equal()});return[genBaseStyle(nt),genDraggerStyle$1(nt),genPictureStyle(nt),genPictureCardStyle(nt),genListStyle$1(nt),genMotionStyle$1(nt),genRtlStyle$1(nt),genCollapseMotion$1(nt)]},prepareComponentToken);var FileTwoTone$2={icon:function a(s,$){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$}},{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:s}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:FileTwoToneSvg}))};const FileTwoTone$1=reactExports.forwardRef(FileTwoTone);var PaperClipOutlined$2={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"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PaperClipOutlinedSvg}))};const PaperClipOutlined$1=reactExports.forwardRef(PaperClipOutlined);var PictureTwoTone$2={icon:function a(s,$){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:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$}},{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:$}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$}},{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:s}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PictureTwoToneSvg}))};const PictureTwoTone$1=reactExports.forwardRef(PictureTwoTone);function file2Obj(a){return Object.assign(Object.assign({},a),{lastModified:a.lastModified,lastModifiedDate:a.lastModifiedDate,name:a.name,size:a.size,type:a.type,uid:a.uid,percent:0,originFileObj:a})}function updateFileList(a,s){const $=_toConsumableArray$d(s),_=$.findIndex(_e=>{let{uid:tt}=_e;return tt===a.uid});return _===-1?$.push(a):$[_]=a,$}function getFileItem(a,s){const $=a.uid!==void 0?"uid":"name";return s.filter(_=>_[$]===a[$])[0]}function removeFileItem(a,s){const $=a.uid!==void 0?"uid":"name",_=s.filter(_e=>_e[$]!==a[$]);return _.length===s.length?null:_}const extname=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),_=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(_)||[""])[0]},isImageFileType=a=>a.indexOf("image/")===0,isImageUrl=a=>{if(a.type&&!a.thumbUrl)return isImageFileType(a.type);const s=a.thumbUrl||a.url||"",$=extname(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($)?!0:!(/^data:/.test(s)||$)},MEASURE_SIZE=200;function previewImage(a){return new Promise(s=>{if(!a.type||!isImageFileType(a.type)){s("");return}const $=document.createElement("canvas");$.width=MEASURE_SIZE,$.height=MEASURE_SIZE,$.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild($);const _=$.getContext("2d"),_e=new Image;if(_e.onload=()=>{const{width:tt,height:nt}=_e;let at=MEASURE_SIZE,ot=MEASURE_SIZE,rt=0,st=0;tt>nt?(ot=nt*(MEASURE_SIZE/tt),st=-(ot-at)/2):(at=tt*(MEASURE_SIZE/nt),rt=-(at-ot)/2),_.drawImage(_e,rt,st,at,ot);const lt=$.toDataURL();document.body.removeChild($),window.URL.revokeObjectURL(_e.src),s(lt)},_e.crossOrigin="anonymous",a.type.startsWith("image/svg+xml")){const tt=new FileReader;tt.onload=()=>{tt.result&&(_e.src=tt.result)},tt.readAsDataURL(a)}else if(a.type.startsWith("image/gif")){const tt=new FileReader;tt.onload=()=>{tt.result&&s(tt.result)},tt.readAsDataURL(a)}else _e.src=window.URL.createObjectURL(a)})}var DownloadOutlined$2={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"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:DownloadOutlinedSvg}))};const DownloadOutlined$1=reactExports.forwardRef(DownloadOutlined),ListItem=reactExports.forwardRef((a,s)=>{let{prefixCls:$,className:_,style:_e,locale:tt,listType:nt,file:at,items:ot,progress:rt,iconRender:st,actionIconRender:lt,itemRender:et,isImgUrl:it,showPreviewIcon:ut,showRemoveIcon:ft,showDownloadIcon:ht,previewIcon:dt,removeIcon:gt,downloadIcon:pt,onPreview:mt,onDownload:ct,onClose:vt}=a;var At,xt;const{status:bt}=at,[Et,St]=reactExports.useState(bt);reactExports.useEffect(()=>{bt!=="removed"&&St(bt)},[bt]);const[Bt,Ot]=reactExports.useState(!1);reactExports.useEffect(()=>{const Dt=setTimeout(()=>{Ot(!0)},300);return()=>{clearTimeout(Dt)}},[]);const Pt=st(at);let wt=reactExports.createElement("div",{className:`${$}-icon`},Pt);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(Et==="uploading"||!at.thumbUrl&&!at.url){const Dt=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:Et!=="uploading"});wt=reactExports.createElement("div",{className:Dt},Pt)}else{const Dt=it!=null&&it(at)?reactExports.createElement("img",{src:at.thumbUrl||at.url,alt:at.name,className:`${$}-list-item-image`,crossOrigin:at.crossOrigin}):Pt,Ut=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:it&&!it(at)});wt=reactExports.createElement("a",{className:Ut,onClick:Vt=>mt(at,Vt),href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dt)}const Ct=classnames(`${$}-list-item`,`${$}-list-item-${Et}`),It=typeof at.linkProps=="string"?JSON.parse(at.linkProps):at.linkProps,yt=ft?lt((typeof gt=="function"?gt(at):gt)||reactExports.createElement(DeleteOutlined$1,null),()=>vt(at),$,tt.removeFile,!0):null,Rt=ht&&Et==="done"?lt((typeof pt=="function"?pt(at):pt)||reactExports.createElement(DownloadOutlined$1,null),()=>ct(at),$,tt.downloadFile):null,kt=nt!=="picture-card"&&nt!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classnames(`${$}-list-item-actions`,{picture:nt==="picture"})},Rt,yt),jt=classnames(`${$}-list-item-name`),Ht=at.url?[reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jt,title:at.name},It,{href:at.url,onClick:Dt=>mt(at,Dt)}),at.name),kt]:[reactExports.createElement("span",{key:"view",className:jt,onClick:Dt=>mt(at,Dt),title:at.name},at.name),kt],Ft=ut&&(at.url||at.thumbUrl)?reactExports.createElement("a",{href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Dt=>mt(at,Dt),title:tt.previewFile},typeof dt=="function"?dt(at):dt||reactExports.createElement(EyeOutlined$1,null)):null,_t=(nt==="picture-card"||nt==="picture-circle")&&Et!=="uploading"&&reactExports.createElement("span",{className:`${$}-list-item-actions`},Ft,Et==="done"&&Rt,yt),{getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),Mt=Nt(),Lt=reactExports.createElement("div",{className:Ct},wt,Ht,_t,Bt&&reactExports.createElement(CSSMotion,{motionName:`${Mt}-fade`,visible:Et==="uploading",motionDeadline:2e3},Dt=>{let{className:Ut}=Dt;const Vt="percent"in at?reactExports.createElement(Progress$1,Object.assign({},rt,{type:"line",percent:at.percent,"aria-label":at["aria-label"],"aria-labelledby":at["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classnames(`${$}-list-item-progress`,Ut)},Vt)})),$t=at.response&&typeof at.response=="string"?at.response:((At=at.error)===null||At===void 0?void 0:At.statusText)||((xt=at.error)===null||xt===void 0?void 0:xt.message)||tt.uploadError,Tt=Et==="error"?reactExports.createElement(_Tooltip,{title:$t,getPopupContainer:Dt=>Dt.parentNode},Lt):Lt;return reactExports.createElement("div",{className:classnames(`${$}-list-item-container`,_),style:_e,ref:s},et?et(Tt,at,ot,{download:ct.bind(null,at),preview:mt.bind(null,at),remove:vt.bind(null,at)}):Tt)}),ListItem$1=ListItem,InternalUploadList=(a,s)=>{const{listType:$="text",previewFile:_=previewImage,onPreview:_e,onDownload:tt,onRemove:nt,locale:at,iconRender:ot,isImageUrl:rt=isImageUrl,prefixCls:st,items:lt=[],showPreviewIcon:et=!0,showRemoveIcon:it=!0,showDownloadIcon:ut=!1,removeIcon:ft,previewIcon:ht,downloadIcon:dt,progress:gt={size:[-1,2],showInfo:!1},appendAction:pt,appendActionVisible:mt=!0,itemRender:ct,disabled:vt}=a,At=useForceUpdate(),[xt,bt]=reactExports.useState(!1);reactExports.useEffect(()=>{$!=="picture"&&$!=="picture-card"&&$!=="picture-circle"||(lt||[]).forEach(Ft=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ft.originFileObj instanceof File||Ft.originFileObj instanceof Blob)||Ft.thumbUrl!==void 0||(Ft.thumbUrl="",_&&_(Ft.originFileObj).then(_t=>{Ft.thumbUrl=_t||"",At()}))})},[$,lt,_]),reactExports.useEffect(()=>{bt(!0)},[]);const Et=(Ft,_t)=>{if(_e)return _t==null||_t.preventDefault(),_e(Ft)},St=Ft=>{typeof tt=="function"?tt(Ft):Ft.url&&window.open(Ft.url)},Bt=Ft=>{nt==null||nt(Ft)},Ot=Ft=>{if(ot)return ot(Ft,$);const _t=Ft.status==="uploading",Nt=rt&&rt(Ft)?reactExports.createElement(PictureTwoTone$1,null):reactExports.createElement(FileTwoTone$1,null);let Mt=_t?reactExports.createElement(LoadingOutlined$1,null):reactExports.createElement(PaperClipOutlined$1,null);return $==="picture"?Mt=_t?reactExports.createElement(LoadingOutlined$1,null):Nt:($==="picture-card"||$==="picture-circle")&&(Mt=_t?at.uploading:Nt),Mt},Pt=(Ft,_t,Nt,Mt,Lt)=>{const $t={type:"text",size:"small",title:Mt,onClick:Tt=>{_t(),isValidElement(Ft)&&Ft.props.onClick&&Ft.props.onClick(Tt)},className:`${Nt}-list-item-action`};if(Lt&&($t.disabled=vt),isValidElement(Ft)){const Tt=cloneElement(Ft,Object.assign(Object.assign({},Ft.props),{onClick:()=>{}}));return reactExports.createElement(Button$2,Object.assign({},$t,{icon:Tt}))}return reactExports.createElement(Button$2,Object.assign({},$t),reactExports.createElement("span",null,Ft))};reactExports.useImperativeHandle(s,()=>({handlePreview:Et,handleDownload:St}));const{getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Ct=wt("upload",st),It=wt(),yt=classnames(`${Ct}-list`,`${Ct}-list-${$}`),Rt=_toConsumableArray$d(lt.map(Ft=>({key:Ft.uid,file:Ft})));let jt={motionDeadline:2e3,motionName:`${Ct}-${$==="picture-card"||$==="picture-circle"?"animate-inline":"animate"}`,keys:Rt,motionAppear:xt};const Ht=reactExports.useMemo(()=>{const Ft=Object.assign({},initCollapseMotion$1(It));return delete Ft.onAppearEnd,delete Ft.onEnterEnd,delete Ft.onLeaveEnd,Ft},[It]);return $!=="picture-card"&&$!=="picture-circle"&&(jt=Object.assign(Object.assign({},Ht),jt)),reactExports.createElement("div",{className:yt},reactExports.createElement(CSSMotionList,Object.assign({},jt,{component:!1}),Ft=>{let{key:_t,file:Nt,className:Mt,style:Lt}=Ft;return reactExports.createElement(ListItem$1,{key:_t,locale:at,prefixCls:Ct,className:Mt,style:Lt,file:Nt,items:lt,progress:gt,listType:$,isImgUrl:rt,showPreviewIcon:et,showRemoveIcon:it,showDownloadIcon:ut,removeIcon:ft,previewIcon:ht,downloadIcon:dt,iconRender:Ot,actionIconRender:Pt,itemRender:ct,onPreview:Et,onDownload:St,onClose:Bt})}),pt&&reactExports.createElement(CSSMotion,Object.assign({},jt,{visible:mt,forceRender:!0}),Ft=>{let{className:_t,style:Nt}=Ft;return cloneElement(pt,Mt=>({className:classnames(Mt.className,_t),style:Object.assign(Object.assign(Object.assign({},Nt),{pointerEvents:_t?"none":void 0}),Mt.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList),UploadList$1=UploadList;var __awaiter$1=function(a,s,$,_){function _e(tt){return tt instanceof $?tt:new $(function(nt){nt(tt)})}return new($||($=Promise))(function(tt,nt){function at(st){try{rt(_.next(st))}catch(lt){nt(lt)}}function ot(st){try{rt(_.throw(st))}catch(lt){nt(lt)}}function rt(st){st.done?tt(st.value):_e(st.value).then(at,ot)}rt((_=_.apply(a,s||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(a,s)=>{const{fileList:$,defaultFileList:_,onRemove:_e,showUploadList:tt=!0,listType:nt="text",onPreview:at,onDownload:ot,onChange:rt,onDrop:st,previewFile:lt,disabled:et,locale:it,iconRender:ut,isImageUrl:ft,progress:ht,prefixCls:dt,className:gt,type:pt="select",children:mt,style:ct,itemRender:vt,maxCount:At,data:xt={},multiple:bt=!1,action:Et="",accept:St="",supportServerRender:Bt=!0,rootClassName:Ot}=a,Pt=reactExports.useContext(DisabledContext$1),wt=et??Pt,[Ct,It]=useMergedState(_||[],{value:$,postState:ur=>ur??[]}),[yt,Rt]=reactExports.useState("drop"),kt=reactExports.useRef(null);reactExports.useMemo(()=>{const ur=Date.now();($||[]).forEach((pr,yr)=>{!pr.uid&&!Object.isFrozen(pr)&&(pr.uid=`__AUTO__${ur}_${yr}__`)})},[$]);const jt=(ur,pr,yr)=>{let Er=_toConsumableArray$d(pr),br=!1;At===1?Er=Er.slice(-1):At&&(br=Er.length>At,Er=Er.slice(0,At)),reactDomExports.flushSync(()=>{It(Er)});const gr={file:ur,fileList:Er};yr&&(gr.event=yr),(!br||Er.some(Ar=>Ar.uid===ur.uid))&&reactDomExports.flushSync(()=>{rt==null||rt(gr)})},Ht=(ur,pr)=>__awaiter$1(void 0,void 0,void 0,function*(){const{beforeUpload:yr,transformFile:Er}=a;let br=ur;if(yr){const gr=yield yr(ur,pr);if(gr===!1)return!1;if(delete ur[LIST_IGNORE],gr===LIST_IGNORE)return Object.defineProperty(ur,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof gr=="object"&&gr&&(br=gr)}return Er&&(br=yield Er(br)),br}),Ft=ur=>{const pr=ur.filter(br=>!br.file[LIST_IGNORE]);if(!pr.length)return;const yr=pr.map(br=>file2Obj(br.file));let Er=_toConsumableArray$d(Ct);yr.forEach(br=>{Er=updateFileList(br,Er)}),yr.forEach((br,gr)=>{let Ar=br;if(pr[gr].parsedFile)br.status="uploading";else{const{originFileObj:Sr}=br;let Br;try{Br=new File([Sr],Sr.name,{type:Sr.type})}catch{Br=new Blob([Sr],{type:Sr.type}),Br.name=Sr.name,Br.lastModifiedDate=new Date,Br.lastModified=new Date().getTime()}Br.uid=br.uid,Ar=Br}jt(Ar,Er)})},_t=(ur,pr,yr)=>{try{typeof ur=="string"&&(ur=JSON.parse(ur))}catch{}if(!getFileItem(pr,Ct))return;const Er=file2Obj(pr);Er.status="done",Er.percent=100,Er.response=ur,Er.xhr=yr;const br=updateFileList(Er,Ct);jt(Er,br)},Nt=(ur,pr)=>{if(!getFileItem(pr,Ct))return;const yr=file2Obj(pr);yr.status="uploading",yr.percent=ur.percent;const Er=updateFileList(yr,Ct);jt(yr,Er,ur)},Mt=(ur,pr,yr)=>{if(!getFileItem(yr,Ct))return;const Er=file2Obj(yr);Er.error=ur,Er.response=pr,Er.status="error";const br=updateFileList(Er,Ct);jt(Er,br)},Lt=ur=>{let pr;Promise.resolve(typeof _e=="function"?_e(ur):_e).then(yr=>{var Er;if(yr===!1)return;const br=removeFileItem(ur,Ct);br&&(pr=Object.assign(Object.assign({},ur),{status:"removed"}),Ct==null||Ct.forEach(gr=>{const Ar=pr.uid!==void 0?"uid":"name";gr[Ar]===pr[Ar]&&!Object.isFrozen(gr)&&(gr.status="removed")}),(Er=kt.current)===null||Er===void 0||Er.abort(pr),jt(pr,br))})},$t=ur=>{Rt(ur.type),ur.type==="drop"&&(st==null||st(ur))};reactExports.useImperativeHandle(s,()=>({onBatchStart:Ft,onSuccess:_t,onProgress:Nt,onError:Mt,fileList:Ct,upload:kt.current}));const{getPrefixCls:Tt,direction:Dt,upload:Ut}=reactExports.useContext(ConfigContext$1),Vt=Tt("upload",dt),Qt=Object.assign(Object.assign({onBatchStart:Ft,onError:Mt,onProgress:Nt,onSuccess:_t},a),{data:xt,multiple:bt,action:Et,accept:St,supportServerRender:Bt,prefixCls:Vt,disabled:wt,beforeUpload:Ht,onChange:void 0});delete Qt.className,delete Qt.style,(!mt||wt)&&delete Qt.id;const qt=`${Vt}-wrapper`,[Zt,ar,Jt]=useStyle(Vt,qt),[rr]=useLocale$1("Upload",defaultLocale.Upload),{showRemoveIcon:Yt,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ir,downloadIcon:sr}=typeof tt=="boolean"?{}:tt,cr=typeof Yt>"u"?!wt:!!Yt,or=(ur,pr)=>tt?reactExports.createElement(UploadList$1,{prefixCls:Vt,listType:nt,items:Ct,previewFile:lt,onPreview:at,onDownload:ot,onRemove:Lt,showRemoveIcon:cr,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ir,downloadIcon:sr,iconRender:ut,locale:Object.assign(Object.assign({},rr),it),isImageUrl:ft,progress:ht,appendAction:ur,appendActionVisible:pr,itemRender:vt,disabled:wt}):ur,Xt=classnames(qt,gt,Ot,ar,Jt,Ut==null?void 0:Ut.className,{[`${Vt}-rtl`]:Dt==="rtl",[`${Vt}-picture-card-wrapper`]:nt==="picture-card",[`${Vt}-picture-circle-wrapper`]:nt==="picture-circle"}),Gt=Object.assign(Object.assign({},Ut==null?void 0:Ut.style),ct);if(pt==="drag"){const ur=classnames(ar,Vt,`${Vt}-drag`,{[`${Vt}-drag-uploading`]:Ct.some(pr=>pr.status==="uploading"),[`${Vt}-drag-hover`]:yt==="dragover",[`${Vt}-disabled`]:wt,[`${Vt}-rtl`]:Dt==="rtl"});return Zt(reactExports.createElement("span",{className:Xt},reactExports.createElement("div",{className:ur,style:Gt,onDrop:$t,onDragOver:$t,onDragLeave:$t},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt,className:`${Vt}-btn`}),reactExports.createElement("div",{className:`${Vt}-drag-container`},mt))),or()))}const Wt=classnames(Vt,`${Vt}-select`,{[`${Vt}-disabled`]:wt}),lr=(ur=>reactExports.createElement("div",{className:Wt,style:ur},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt}))))(mt?void 0:{display:"none"});return Zt(nt==="picture-card"||nt==="picture-circle"?reactExports.createElement("span",{className:Xt},or(lr,!!mt)):reactExports.createElement("span",{className:Xt},lr,or()))},Upload$1=reactExports.forwardRef(InternalUpload),InternalUpload$1=Upload$1;var __rest$4=function(a,s){var $={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&s.indexOf(_)<0&&($[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,_=Object.getOwnPropertySymbols(a);_e<_.length;_e++)s.indexOf(_[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,_[_e])&&($[_[_e]]=a[_[_e]]);return $};const Dragger=reactExports.forwardRef((a,s)=>{var{style:$,height:_}=a,_e=__rest$4(a,["style","height"]);return reactExports.createElement(InternalUpload$1,Object.assign({ref:s},_e,{type:"drag",style:Object.assign(Object.assign({},$),{height:_})}))}),Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1,Upload.LIST_IGNORE=LIST_IGNORE;const _Upload=Upload;var ArrowLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ArrowLeftOutlinedSvg=ArrowLeftOutlined$2;var ArrowLeftOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowLeftOutlinedSvg}))};const ArrowLeftOutlined$1=reactExports.forwardRef(ArrowLeftOutlined);var ArrowRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const ArrowRightOutlinedSvg=ArrowRightOutlined$2;var ArrowRightOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowRightOutlinedSvg}))};const ArrowRightOutlined$1=reactExports.forwardRef(ArrowRightOutlined);var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;var ExclamationCircleOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ExclamationCircleOutlinedSvg}))};const ExclamationCircleOutlined$1=reactExports.forwardRef(ExclamationCircleOutlined);var MenuOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const MenuOutlinedSvg=MenuOutlined$2;var MenuOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MenuOutlinedSvg}))};const MenuOutlined$1=reactExports.forwardRef(MenuOutlined);var MinusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const MinusOutlinedSvg=MinusOutlined$2;var MinusOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MinusOutlinedSvg}))};const MinusOutlined$1=reactExports.forwardRef(MinusOutlined),dictEn={cancel:"Cancel",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",required:"Required",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",addPageAfter:"Add Page After",removePage:"Remove Current Page",removePageConfirm:"Are you sure you want to delete this page? This action cannot be undone.",hexColorPrompt:"Please enter a valid hex color code.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.backgroundColor":"Background Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.padding":"Padding","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Add variables by typing words surrounded by curly brackets, e.g.","schemas.mvt.sampleField":"name","schemas.mvt.variablesSampleData":"Variables Sample Data","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text","schemas.table.alternateBackgroundColor":"Alternate Background Color","schemas.table.tableStyle":"Table Style","schemas.table.headStyle":"Header Style","schemas.table.bodyStyle":"Body Style","schemas.table.columnStyle":"Column Style"},dictZh={cancel:"取消",field:"字段",fieldName:"名称",align:"对齐",width:"宽度",height:"高度",opacity:"透明度",rotate:"旋转",required:"必需的",edit:"编辑",plsInputName:"请输入名称",fieldMustUniq:"字段名称必须唯一",notUniq:"(名称不唯一)",noKeyName:"无名称",fieldsList:"字段列表",editField:"编辑字段",type:"类型",errorOccurred:"发生错误",errorBulkUpdateFieldName:"由于项目数量已更改,无法提交更改。",commitBulkUpdateFieldName:"提交更改",bulkUpdateFieldName:"批量更新字段名称",addPageAfter:"在之后添加页面",removePage:"删除当前页面",removePageConfirm:"您确定要删除此页面吗?此操作无法撤销。",hexColorPrompt:"请输入有效的十六进制颜色代码。","schemas.color":"颜色","schemas.borderWidth":"边框宽度","schemas.borderColor":"边框颜色","schemas.backgroundColor":"背景颜色","schemas.textColor":"文字颜色","schemas.bgColor":"背景颜色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中","schemas.right":"右","schemas.top":"顶","schemas.middle":"中间","schemas.bottom":"底","schemas.padding":"填充","schemas.text.fontName":"字体名称","schemas.text.size":"大小","schemas.text.spacing":"间距","schemas.text.textAlign":"文本对齐","schemas.text.verticalAlign":"垂直对齐","schemas.text.lineHeight":"行高","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"适应","schemas.text.dynamicFontSize":"动态字体大小","schemas.text.format":"格式","schemas.mvt.typingInstructions":"通过输入用花括号括起来的单词来添加变量,例如","schemas.mvt.sampleField":"姓名","schemas.mvt.variablesSampleData":"变量样本数据","schemas.barcodes.barColor":"条码颜色","schemas.barcodes.includetext":"包括文本","schemas.table.alternateBackgroundColor":"交替背景颜色","schemas.table.tableStyle":"表格样式","schemas.table.headStyle":"表头样式","schemas.table.bodyStyle":"表体样式","schemas.table.columnStyle":"列样式"},dictJa={cancel:"キャンセル",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",required:"必須",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",addPageAfter:"次にページを追加",removePage:"現在のページを削除",removePageConfirm:"ページを削除してもよろしいですか?この操作は元に戻せません。",hexColorPrompt:"有効な16進数のカラーコードを入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.backgroundColor":"背景色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.padding":"パディング","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.text.format":"書式","schemas.mvt.typingInstructions":"中括弧で囲まれた単語を入力して変数を追加します。例:","schemas.mvt.sampleField":"名前","schemas.mvt.variablesSampleData":"変数サンプルデータ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める","schemas.table.alternateBackgroundColor":"交互の背景色","schemas.table.tableStyle":"テーブルスタイル","schemas.table.headStyle":"ヘッダースタイル","schemas.table.bodyStyle":"ボディスタイル","schemas.table.columnStyle":"カラムスタイル"},dictKo={cancel:"취소",field:"필드",fieldName:"이름",align:"정렬",width:"너비",height:"높이",opacity:"투명도",rotate:"회전",required:"필수의",edit:"편집",plsInputName:"이름을 입력하세요",fieldMustUniq:"필드 이름은 유일해야 합니다",notUniq:"(유일하지 않은 이름)",noKeyName:"이름 없음",fieldsList:"필드 목록",editField:"필드 편집",type:"유형",errorOccurred:"오류 발생",errorBulkUpdateFieldName:"항목 수가 변경되어 변경을 커밋할 수 없습니다.",commitBulkUpdateFieldName:"변경 사항 커밋",bulkUpdateFieldName:"필드 이름 일괄 업데이트",addPageAfter:"다음에 페이지 추가",removePage:"현재 페이지 제거",removePageConfirm:"이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",hexColorPrompt:"유효한 16진수 색상 코드를 입력하세요.","schemas.color":"색상","schemas.borderWidth":"테두리 너비","schemas.borderColor":"테두리 색상","schemas.backgroundColor":"배경색","schemas.textColor":"텍스트 색상","schemas.bgColor":"배경색","schemas.horizontal":"수평","schemas.vertical":"수직","schemas.left":"왼쪽","schemas.center":"중앙","schemas.right":"오른쪽","schemas.top":"상단","schemas.middle":"중간","schemas.bottom":"하단","schemas.padding":"패딩","schemas.text.fontName":"글꼴 이름","schemas.text.size":"크기","schemas.text.spacing":"간격","schemas.text.textAlign":"텍스트 정렬","schemas.text.verticalAlign":"수직 정렬","schemas.text.lineHeight":"줄 높이","schemas.text.min":"최소","schemas.text.max":"최대","schemas.text.fit":"맞춤","schemas.text.dynamicFontSize":"동적 폰트 크기","schemas.text.format":"형식","schemas.mvt.typingInstructions":"중괄호로 묶인 단어를 입력하여 변수를 추가하세요.","schemas.mvt.sampleField":"이름","schemas.mvt.variablesSampleData":"변수 샘플 데이터","schemas.barcodes.barColor":"바코드 색상","schemas.barcodes.includetext":"텍스트 포함","schemas.table.alternateBackgroundColor":"대체 배경색","schemas.table.tableStyle":"테이블 스타일","schemas.table.headStyle":"헤더 스타일","schemas.table.bodyStyle":"본문 스타일","schemas.table.columnStyle":"열 스타일"},dictAr={cancel:"إلغاء",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",required:"مطلوب",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",addPageAfter:"إضافة صفحة بعد",removePage:"احذف الصفحة الحالية",removePageConfirm:"هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.",hexColorPrompt:"الرجاء إدخال رمز لون سداسي عشري صالح.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.backgroundColor":"لون الخلفية","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.padding":"التبطين","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.text.format":"تنسيق","schemas.mvt.typingInstructions":"قم بإضافة المتغيرات عن طريق كتابة الكلمات المحاطة بأقواس متعرجة، على سبيل المثال:","schemas.mvt.sampleField":"اسم","schemas.mvt.variablesSampleData":"بيانات عينة المتغيرات","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص","schemas.table.alternateBackgroundColor":"لون الخلفية البديل","schemas.table.tableStyle":"أسلوب الجدول","schemas.table.headStyle":"أسلوب الرأس","schemas.table.bodyStyle":"أسلوب الجسم","schemas.table.columnStyle":"أسلوب العمود"},dictTh={cancel:"ยกเลิก",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",required:"ที่จำเป็น",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",addPageAfter:"เพิ่มหน้าถัดไป",removePage:"ลบหน้าปัจจุบัน",removePageConfirm:"คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้",hexColorPrompt:"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.backgroundColor":"สีพื้นหลัง","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.padding":"การเพิ่มพื้นที่","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.text.format":"รูปแบบ","schemas.mvt.typingInstructions":"เพิ่มตัวแปรโดยพิมพ์คำที่ล้อมรอบด้วยวงเล็บปีกกา เช่น","schemas.mvt.sampleField":"ชื่อ","schemas.mvt.variablesSampleData":"ข้อมูลตัวอย่างตัวแปร","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ","schemas.table.alternateBackgroundColor":"สีพื้นหลังสลับกัน","schemas.table.tableStyle":"สไตล์ตาราง","schemas.table.headStyle":"สไตล์หัวข้อ","schemas.table.bodyStyle":"สไตล์เนื้อหา","schemas.table.columnStyle":"สไตล์คอลัมน์"},dictIt={cancel:"Annulla",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",required:"Necessaria",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",addPageAfter:"Aggiungi pagina dopo",removePage:"Rimuovi la Pagina Corrente",removePageConfirm:"Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.",hexColorPrompt:"Inserisci un codice colore esadecimale valido.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.backgroundColor":"Colore di Sfondo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.padding":"Padding","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Aggiungi variabili digitando parole circondate da parentesi graffe, ad es.","schemas.mvt.sampleField":"nome","schemas.mvt.variablesSampleData":"Dati di esempio variabili","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo","schemas.table.alternateBackgroundColor":"Colore di Sfondo Alternato","schemas.table.tableStyle":"Stile della Tabella","schemas.table.headStyle":"Stile dell'Intestazione","schemas.table.bodyStyle":"Stile del Corpo","schemas.table.columnStyle":"Stile della Colonna"},dictPl={cancel:"Anuluj",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",required:"Wymagany",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",addPageAfter:"Dodaj stronę po",removePage:"Usuń Bieżącą Stronę",removePageConfirm:"Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.",hexColorPrompt:"Wprowadź poprawny kod koloru szesnastkowego.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.backgroundColor":"Kolor tła","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.padding":"Odsadzenie","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Dodaj zmienne, wpisując słowa ujęte w nawiasy klamrowe, np.","schemas.mvt.sampleField":"nazwa","schemas.mvt.variablesSampleData":"Zmienne Przykładowe dane","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst","schemas.table.alternateBackgroundColor":"Alternatywny kolor tła","schemas.table.tableStyle":"Styl tabeli","schemas.table.headStyle":"Styl nagłówka","schemas.table.bodyStyle":"Styl ciała","schemas.table.columnStyle":"Styl kolumny"},dictDe={cancel:"Abbrechen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",required:"Erforderlich",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",addPageAfter:"Seite danach hinzufügen",removePage:"Aktuelle Seite entfernen",removePageConfirm:"Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",hexColorPrompt:"Bitte geben Sie einen gültigen Hex-Farbcode ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.backgroundColor":"Hintergrundfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.padding":"Polsterung","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Fügen Sie Variablen hinzu, indem Sie Wörter in geschweiften Klammern eingeben, z. B.","schemas.mvt.sampleField":"Name","schemas.mvt.variablesSampleData":"Variablen Beispieldaten","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen","schemas.table.alternateBackgroundColor":"Wechselnde Hintergrundfarbe","schemas.table.tableStyle":"Tabellenstil","schemas.table.headStyle":"Kopfzeilenstil","schemas.table.bodyStyle":"Körperstil","schemas.table.columnStyle":"Spaltenstil"},dictEs={cancel:"Cancelar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",required:"Requerido",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",addPageAfter:"Insertar página",removePage:"Eliminar página actual",removePageConfirm:"¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.",hexColorPrompt:"Introduce un código de color hexadecimal válido.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.backgroundColor":"Color de fondo","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.padding":"Relleno","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Agregue variables escribiendo palabras entre llaves, p.","schemas.mvt.sampleField":"nombre","schemas.mvt.variablesSampleData":"Variables Datos de muestra","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto","schemas.table.alternateBackgroundColor":"Color de fondo alternativo","schemas.table.tableStyle":"Estilo de tabla","schemas.table.headStyle":"Estilo de cabecera","schemas.table.bodyStyle":"Estilo de cuerpo","schemas.table.columnStyle":"Estilo de columna"},dictFr={cancel:"Annuler",field:"Champ",fieldName:"Nom",align:"Aligner",width:"Largeur",height:"Hauteur",opacity:"Opacité",rotate:"Rotation",required:"Requis",edit:"Éditer",plsInputName:"Veuillez saisir le nom",fieldMustUniq:"Le nom du champ n'est pas unique",notUniq:"(Nombre non unique)",noKeyName:"Pas de nom",fieldsList:"Liste des champs",editField:"Éditer le champ",type:"Type",errorOccurred:"Une erreur est survenue",errorBulkUpdateFieldName:"Impossible de confirmer le changement car le nombre d'éléments a changé.",commitBulkUpdateFieldName:"Confirmer les changements",bulkUpdateFieldName:"Modifier les noms de champs en masse",addPageAfter:"Ajouter une page après",removePage:"Supprimer la page actuelle",removePageConfirm:"Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.",hexColorPrompt:"Veuillez entrer un code couleur hexadécimal valide.","schemas.color":"Couleur","schemas.borderWidth":"Largeur de la bordure","schemas.borderColor":"Couleur de la bordure","schemas.backgroundColor":"Couleur de fond","schemas.textColor":"Couleur du texte","schemas.bgColor":"Couleur de fond","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Gauche","schemas.center":"Centre","schemas.right":"Droite","schemas.top":"Haut","schemas.middle":"Milieu","schemas.bottom":"Bas","schemas.padding":"Zone de remplissage","schemas.text.fontName":"Nom de la police","schemas.text.size":"Taille","schemas.text.spacing":"Espacement","schemas.text.textAlign":"Alignement du texte","schemas.text.verticalAlign":"Alignement vertical","schemas.text.lineHeight":"Hauteur de ligne","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Ajustement","schemas.text.dynamicFontSize":"Taille de police dynamique","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Ajoutez des variables en tapant des mots entourés d'accolades, par ex.","schemas.mvt.sampleField":"nom","schemas.mvt.variablesSampleData":"Variables Exemples de données","schemas.barcodes.barColor":"Couleur de la barre","schemas.barcodes.includetext":"Inclure le texte","schemas.table.alternateBackgroundColor":"Couleur de fond alternative","schemas.table.tableStyle":"Style de tableau","schemas.table.headStyle":"Style d'en-tête","schemas.table.bodyStyle":"Style de corps","schemas.table.columnStyle":"Style de colonne"},dictionaries={en:dictEn,zh:dictZh,ja:dictJa,ko:dictKo,ar:dictAr,th:dictTh,it:dictIt,pl:dictPl,de:dictDe,es:dictEs,fr:dictFr},getDict=a=>dictionaries[a]||dictionaries[DEFAULT_LANG],i18n=(a,s)=>(s||getDict(DEFAULT_LANG))[a],I18nContext=reactExports.createContext(i18n),FontContext=reactExports.createContext(getDefaultFont()),PluginsRegistry=reactExports.createContext(builtInPlugins),OptionsContext=reactExports.createContext({});function arrayMove(a,s,$){const _=a.slice();return _.splice($<0?_.length+$:$,0,_.splice(s,1)[0]),_}function getSortedRects(a,s){return a.reduce(($,_,_e)=>{const tt=s.get(_);return tt&&($[_e]=tt),$},Array(a.length))}function isValidIndex(a){return a!==null&&a>=0}function itemsEqual(a,s){if(a===s)return!0;if(a.length!==s.length)return!1;for(let $=0;$<a.length;$++)if(a[$]!==s[$])return!1;return!0}function normalizeDisabled(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const rectSortingStrategy=a=>{let{rects:s,activeIndex:$,overIndex:_,index:_e}=a;const tt=arrayMove(s,_,$),nt=s[_e],at=tt[_e];return!at||!nt?null:{x:at.left-nt.left,y:at.top-nt.top,scaleX:at.width/nt.width,scaleY:at.height/nt.height}},defaultScale$1={scaleX:1,scaleY:1},verticalListSortingStrategy=a=>{var s;let{activeIndex:$,activeNodeRect:_,index:_e,rects:tt,overIndex:nt}=a;const at=(s=tt[$])!=null?s:_;if(!at)return null;if(_e===$){const rt=tt[nt];return rt?{x:0,y:$<nt?rt.top+rt.height-(at.top+at.height):rt.top-at.top,...defaultScale$1}:null}const ot=getItemGap$1(tt,_e,$);return _e>$&&_e<=nt?{x:0,y:-at.height-ot,...defaultScale$1}:_e<$&&_e>=nt?{x:0,y:at.height+ot,...defaultScale$1}:{x:0,y:0,...defaultScale$1}};function getItemGap$1(a,s,$){const _=a[s],_e=a[s-1],tt=a[s+1];return _?$<s?_e?_.top-(_e.top+_e.height):tt?tt.top-(_.top+_.height):0:tt?tt.top-(_.top+_.height):_e?_.top-(_e.top+_e.height):0:0}const ID_PREFIX="Sortable",Context$1=React$a.createContext({activeIndex:-1,containerId:ID_PREFIX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rectSortingStrategy,disabled:{draggable:!1,droppable:!1}});function SortableContext(a){let{children:s,id:$,items:_,strategy:_e=rectSortingStrategy,disabled:tt=!1}=a;const{active:nt,dragOverlay:at,droppableRects:ot,over:rt,measureDroppableContainers:st}=useDndContext(),lt=useUniqueId(ID_PREFIX,$),et=at.rect!==null,it=reactExports.useMemo(()=>_.map(vt=>typeof vt=="object"&&"id"in vt?vt.id:vt),[_]),ut=nt!=null,ft=nt?it.indexOf(nt.id):-1,ht=rt?it.indexOf(rt.id):-1,dt=reactExports.useRef(it),gt=!itemsEqual(it,dt.current),pt=ht!==-1&&ft===-1||gt,mt=normalizeDisabled(tt);useIsomorphicLayoutEffect$1(()=>{gt&&ut&&st(it)},[gt,it,ut,st]),reactExports.useEffect(()=>{dt.current=it},[it]);const ct=reactExports.useMemo(()=>({activeIndex:ft,containerId:lt,disabled:mt,disableTransforms:pt,items:it,overIndex:ht,useDragOverlay:et,sortedRects:getSortedRects(it,ot),strategy:_e}),[ft,lt,mt.draggable,mt.droppable,pt,it,ht,ot,et,_e]);return React$a.createElement(Context$1.Provider,{value:ct},s)}const defaultNewIndexGetter=a=>{let{id:s,items:$,activeIndex:_,overIndex:_e}=a;return arrayMove($,_,_e).indexOf(s)},defaultAnimateLayoutChanges=a=>{let{containerId:s,isSorting:$,wasDragging:_,index:_e,items:tt,newIndex:nt,previousItems:at,previousContainerId:ot,transition:rt}=a;return!rt||!_||at!==tt&&_e===nt?!1:$?!0:nt!==_e&&s===ot},defaultTransition={duration:200,easing:"ease"},transitionProperty="transform",disabledTransition=CSS$1.Transition.toString({property:transitionProperty,duration:0,easing:"linear"}),defaultAttributes={roleDescription:"sortable"};function useDerivedTransform(a){let{disabled:s,index:$,node:_,rect:_e}=a;const[tt,nt]=reactExports.useState(null),at=reactExports.useRef($);return useIsomorphicLayoutEffect$1(()=>{if(!s&&$!==at.current&&_.current){const ot=_e.current;if(ot){const rt=getClientRect$1(_.current,{ignoreTransform:!0}),st={x:ot.left-rt.left,y:ot.top-rt.top,scaleX:ot.width/rt.width,scaleY:ot.height/rt.height};(st.x||st.y)&&nt(st)}}$!==at.current&&(at.current=$)},[s,$,_,_e]),reactExports.useEffect(()=>{tt&&nt(null)},[tt]),tt}function useSortable(a){let{animateLayoutChanges:s=defaultAnimateLayoutChanges,attributes:$,disabled:_,data:_e,getNewIndex:tt=defaultNewIndexGetter,id:nt,strategy:at,resizeObserverConfig:ot,transition:rt=defaultTransition}=a;const{items:st,containerId:lt,activeIndex:et,disabled:it,disableTransforms:ut,sortedRects:ft,overIndex:ht,useDragOverlay:dt,strategy:gt}=reactExports.useContext(Context$1),pt=normalizeLocalDisabled(_,it),mt=st.indexOf(nt),ct=reactExports.useMemo(()=>({sortable:{containerId:lt,index:mt,items:st},..._e}),[lt,_e,mt,st]),vt=reactExports.useMemo(()=>st.slice(st.indexOf(nt)),[st,nt]),{rect:At,node:xt,isOver:bt,setNodeRef:Et}=useDroppable({id:nt,data:ct,disabled:pt.droppable,resizeObserverConfig:{updateMeasurementsFor:vt,...ot}}),{active:St,activatorEvent:Bt,activeNodeRect:Ot,attributes:Pt,setNodeRef:wt,listeners:Ct,isDragging:It,over:yt,setActivatorNodeRef:Rt,transform:kt}=useDraggable({id:nt,data:ct,attributes:{...defaultAttributes,...$},disabled:pt.draggable}),jt=useCombinedRefs(Et,wt),Ht=!!St,Ft=Ht&&!ut&&isValidIndex(et)&&isValidIndex(ht),_t=!dt&&It,Nt=_t&&Ft?kt:null,Lt=Ft?Nt??(at??gt)({rects:ft,activeNodeRect:Ot,activeIndex:et,overIndex:ht,index:mt}):null,$t=isValidIndex(et)&&isValidIndex(ht)?tt({id:nt,items:st,activeIndex:et,overIndex:ht}):mt,Tt=St==null?void 0:St.id,Dt=reactExports.useRef({activeId:Tt,items:st,newIndex:$t,containerId:lt}),Ut=st!==Dt.current.items,Vt=s({active:St,containerId:lt,isDragging:It,isSorting:Ht,id:nt,index:mt,items:st,newIndex:Dt.current.newIndex,previousItems:Dt.current.items,previousContainerId:Dt.current.containerId,transition:rt,wasDragging:Dt.current.activeId!=null}),Qt=useDerivedTransform({disabled:!Vt,index:mt,node:xt,rect:At});return reactExports.useEffect(()=>{Ht&&Dt.current.newIndex!==$t&&(Dt.current.newIndex=$t),lt!==Dt.current.containerId&&(Dt.current.containerId=lt),st!==Dt.current.items&&(Dt.current.items=st)},[Ht,$t,lt,st]),reactExports.useEffect(()=>{if(Tt===Dt.current.activeId)return;if(Tt&&!Dt.current.activeId){Dt.current.activeId=Tt;return}const Zt=setTimeout(()=>{Dt.current.activeId=Tt},50);return()=>clearTimeout(Zt)},[Tt]),{active:St,activeIndex:et,attributes:Pt,data:ct,rect:At,index:mt,newIndex:$t,items:st,isOver:bt,isSorting:Ht,isDragging:It,listeners:Ct,node:xt,overIndex:ht,over:yt,setNodeRef:jt,setActivatorNodeRef:Rt,setDroppableNodeRef:Et,setDraggableNodeRef:wt,transform:Qt??Lt,transition:qt()};function qt(){if(Qt||Ut&&Dt.current.newIndex===mt)return disabledTransition;if(!(_t&&!isKeyboardEvent(Bt)||!rt)&&(Ht||Vt))return CSS$1.Transition.toString({...rt,property:transitionProperty})}}function normalizeLocalDisabled(a,s){var $,_;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:($=a==null?void 0:a.draggable)!=null?$:s.draggable,droppable:(_=a==null?void 0:a.droppable)!=null?_:s.droppable}}function hasSortableData(a){if(!a)return!1;const s=a.data.current;return!!(s&&"sortable"in s&&typeof s.sortable=="object"&&"containerId"in s.sortable&&"items"in s.sortable&&"index"in s.sortable)}const directions=[KeyboardCode.Down,KeyboardCode.Right,KeyboardCode.Up,KeyboardCode.Left],sortableKeyboardCoordinates=(a,s)=>{let{context:{active:$,collisionRect:_,droppableRects:_e,droppableContainers:tt,over:nt,scrollableAncestors:at}}=s;if(directions.includes(a.code)){if(a.preventDefault(),!$||!_)return;const ot=[];tt.getEnabled().forEach(lt=>{if(!lt||lt!=null&<.disabled)return;const et=_e.get(lt.id);if(et)switch(a.code){case KeyboardCode.Down:_.top<et.top&&ot.push(lt);break;case KeyboardCode.Up:_.top>et.top&&ot.push(lt);break;case KeyboardCode.Left:_.left>et.left&&ot.push(lt);break;case KeyboardCode.Right:_.left<et.left&&ot.push(lt);break}});const rt=closestCorners({active:$,collisionRect:_,droppableRects:_e,droppableContainers:ot,pointerCoordinates:null});let st=getFirstCollision(rt,"id");if(st===(nt==null?void 0:nt.id)&&rt.length>1&&(st=rt[1].id),st!=null){const lt=tt.get($.id),et=tt.get(st),it=et?_e.get(et.id):null,ut=et==null?void 0:et.node.current;if(ut&&it&<&&et){const ht=getScrollableAncestors(ut).some((vt,At)=>at[At]!==vt),dt=isSameContainer(lt,et),gt=isAfter(lt,et),pt=ht||!dt?{x:0,y:0}:{x:gt?_.width-it.width:0,y:gt?_.height-it.height:0},mt={x:it.left,y:it.top};return pt.x&&pt.y?mt:subtract(mt,pt)}}}};function isSameContainer(a,s){return!hasSortableData(a)||!hasSortableData(s)?!1:a.data.current.sortable.containerId===s.data.current.sortable.containerId}function isAfter(a,s){return!hasSortableData(a)||!hasSortableData(s)||!isSameContainer(a,s)?!1:a.data.current.sortable.index<s.data.current.sortable.index}const{Text:Text$4}=Typography$1,Item=React$a.memo(React$a.forwardRef(({icon:a,value:s,status:$,title:_,required:_e,style:tt,dragOverlay:nt,onClick:at,onMouseEnter:ot,onMouseLeave:rt,dragging:st,fadeIn:lt,listeners:et,sorting:it,transition:ut,transform:ft,...ht},dt)=>{const gt=reactExports.useContext(I18nContext);reactExports.useEffect(()=>{if(nt)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[nt]);const{x:pt,y:mt,scaleX:ct,scaleY:vt}=ft||{x:0,y:0,scaleX:1,scaleY:1};return jsxRuntimeExports.jsx("li",{style:{marginTop:10,transition:ut,transform:`translate(${pt}px, ${mt}px) scale(${ct}, ${vt})`},onMouseEnter:ot,onMouseLeave:rt,ref:dt,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",...tt},...ht,onClick:()=>at&&at(),children:[jsxRuntimeExports.jsx(Button$2,{...et,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:jsxRuntimeExports.jsx(HolderOutlined$1,{style:{cursor:"grab"}})}),a,jsxRuntimeExports.jsxs(Text$4,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:_||"",children:[$===void 0?s:jsxRuntimeExports.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(ExclamationCircleOutlined$1,{width:15,style:{marginRight:"0.5rem"}}),$==="is-warning"?gt("noKeyName"):s,$==="is-danger"?gt("notUniq"):""]}),_e&&jsxRuntimeExports.jsx("span",{style:{color:"red",marginLeft:"0.5rem"},children:"*"})]})]})})})),Item$1=Item,usePrevious=a=>{const s=reactExports.useRef(null);return reactExports.useEffect(()=>{s.current=a}),s.current},getScale=(a,s)=>Math.floor((a/s>1?1:a/s)*100)/100,useUIPreProcessor=({template:a,size:s,zoomLevel:$})=>{const[_,_e]=reactExports.useState([]),[tt,nt]=reactExports.useState([]),[at,ot]=reactExports.useState(0),[rt,st]=reactExports.useState(null),lt=async et=>{const{template:{basePdf:it,schemas:ut},size:ft}=et;let ht,dt,gt,pt;if(isBlankPdf(it)){const{width:ct,height:vt}=it;ht=ct*ZOOM,dt=vt*ZOOM,gt=ut.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),pt=ut.map(()=>({width:ct,height:vt}))}else{const ct=await getB64BasePdf(it),vt=b64toBlob(ct);pt=await getPdfPageSizes(vt),ht=pt[0].width*ZOOM,dt=pt[0].height*ZOOM,gt=await pdf2Pngs(vt,ht)}const mt=Math.min(getScale(ft.width,ht),getScale(ft.height-RULER_HEIGHT,dt));return{backgrounds:gt,pageSizes:pt,scale:mt}};return reactExports.useEffect(()=>{lt({template:a,size:s}).then(({pageSizes:et,scale:it,backgrounds:ut})=>{nt(et),ot(it),_e(ut)}).catch(et=>{st(et),console.error(`[@pdfme/ui] ${et}`)})},[a,s]),{backgrounds:_,pageSizes:tt,scale:at*$,error:rt,refresh:et=>lt({template:et,size:s}).then(({pageSizes:it,scale:ut,backgrounds:ft})=>{nt(it),ot(ut),_e(ft)})}},useScrollPageCursor=({ref:a,pageSizes:s,scale:$,pageCursor:_,onChangePageCursor:_e})=>{const tt=reactExports.useCallback(()=>{if(!s[0]||!a.current)return;const nt=a.current.scrollTop,{top:at}=a.current.getBoundingClientRect(),ot=s.reduce((st,lt,et)=>{let it=(lt.height*ZOOM+RULER_HEIGHT)*$;return et===0?it+=at-it/2:it+=st[et-1],st.concat(it)},[]);let rt=0;ot.forEach((st,lt)=>{nt>st&&(rt=lt+1>=ot.length?ot.length-1:lt+1)}),rt!==_&&_e(rt)},[_e,_,s,a,$]);reactExports.useEffect(()=>{var nt;return(nt=a.current)==null||nt.addEventListener("scroll",tt),()=>{var at;(at=a.current)==null||at.removeEventListener("scroll",tt)}},[a,tt])},useMountStatus=()=>{const[a,s]=reactExports.useState(!1);return reactExports.useEffect(()=>{const $=setTimeout(()=>s(!0),500);return()=>clearTimeout($)},[]),a},useInitEvents=({pageCursor:a,pageSizes:s,activeElements:$,template:_,schemasList:_e,changeSchemas:tt,commitSchemas:nt,removeSchemas:at,onSaveTemplate:ot,past:rt,future:st,setSchemasList:lt,onEdit:et,onEditEnd:it})=>{const ut=reactExports.useRef(null),ft=reactExports.useCallback(()=>{const dt=()=>{const pt=$.map(mt=>mt.id);return _e[a].filter(mt=>pt.includes(mt.id))},gt=pt=>{const mt=pt==="undo",ct=mt?rt:st;if(ct.current.length<=0)return;(mt?st:rt).current.push(cloneDeep$2(_e[a]));const vt=cloneDeep$2(_e);vt[a]=ct.current.pop(),lt(vt)};initShortCuts({move:(pt,mt)=>{const ct=s[a],vt=dt(),At=moveCommandToChangeSchemasArg({command:pt,activeSchemas:vt,pageSize:ct,isShift:mt});tt(At)},copy:()=>{const pt=dt();pt.length!==0&&(ut.current=pt)},paste:()=>{if(!ut.current||ut.current.length===0)return;const pt=_e[a],mt=[],ct=ut.current.map(vt=>{const At=uuid$6(),xt=getUniqSchemaKey({copiedSchemaKey:vt.key,schema:pt,stackUniqSchemaKeys:mt}),{height:bt,width:Et,position:St}=vt,Bt=s[a],Ot={x:St.x+10>Bt.width-Et?Bt.width-Et:St.x+10,y:St.y+10>Bt.height-bt?Bt.height-bt:St.y+10};return Object.assign(cloneDeep$2(vt),{id:At,key:xt,position:Ot})});nt(_e[a].concat(ct)),et(ct.map(vt=>document.getElementById(vt.id))),ut.current=ct},redo:()=>gt("redo"),undo:()=>gt("undo"),save:()=>ot&&ot(schemasList2template(_e,_.basePdf)),remove:()=>at(dt().map(pt=>pt.id)),esc:it,selectAll:()=>et(_e[a].map(pt=>document.getElementById(pt.id)))})},[_,$,a,s,tt,nt,_e,ot,at,rt,st,lt,ut,et,it]),ht=reactExports.useCallback(()=>{destroyShortCuts()},[]);reactExports.useEffect(()=>(ft(),ht),[ft,ht])},getWithModifiedSize=(a,s,$,_)=>{const tt=new DOMParser().parseFromString(a,"text/html"),nt=at=>{(at.tagName==="SVG"||at.tagName==="svg")&&(at.setAttribute("width",$.toString()),at.setAttribute("height",$.toString())),Array.from(at.children).forEach(ot=>nt(ot))};return Array.from(tt.body.children).forEach(at=>nt(at)),jsxRuntimeExports.jsx("div",{style:_,title:s,dangerouslySetInnerHTML:{__html:tt.body.innerHTML}})},PluginIcon=a=>{var ot;const{plugin:s,label:$,size:_,styles:_e}=a,nt=((ot=reactExports.useContext(OptionsContext).icons)==null?void 0:ot[s.propPanel.defaultSchema.type])??s.icon,at={..._e,display:"flex",justifyContent:"center"};return nt?_?getWithModifiedSize(nt,$,_,at):jsxRuntimeExports.jsx("div",{style:at,title:$,dangerouslySetInnerHTML:{__html:nt}}):jsxRuntimeExports.jsx("div",{style:{..._e,overflow:"hidden",fontSize:10},children:$})},PluginIcon$1=PluginIcon,SelectableSortableItem=({isSelected:a,style:s,onSelect:$,onEdit:_,schema:_e,schemas:tt,onMouseEnter:nt,onMouseLeave:at})=>{const{token:ot}=theme.useToken(),rt=reactExports.useContext(I18nContext),st=reactExports.useContext(PluginsRegistry),{setNodeRef:lt,listeners:et,isDragging:it,isSorting:ut,transform:ft,transition:ht}=useSortable({id:_e.id}),dt=useMountStatus(),gt=it&&!dt,pt={...et,onClick:Et=>$(_e.id,Et.shiftKey)},[mt,ct]=Object.entries(st).find(([Et,St])=>(St==null?void 0:St.propPanel.defaultSchema.type)===_e.type),vt={width:20,marginRight:"0.5rem"};let At;_e.key?tt.find(Et=>_e.key&&Et.key===_e.key&&Et.id!==_e.id)&&(At="is-danger"):At="is-warning";let xt=rt("edit");At==="is-warning"?xt=rt("plsInputName"):At==="is-danger"&&(xt=rt("fieldMustUniq"));const bt=a?{background:ot.colorPrimary,opacity:ut||it?.5:1}:{};return jsxRuntimeExports.jsx(Item$1,{ref:lt,onMouseEnter:nt,onMouseLeave:at,onClick:()=>_(_e.id),icon:ct&&jsxRuntimeExports.jsx(PluginIcon$1,{plugin:ct,label:mt,size:20,styles:vt}),value:_e.key,status:At,title:xt,required:_e.required,style:{...bt,...s},dragging:it,sorting:ut,transition:ht,transform:ft,fadeIn:gt,listeners:pt})},SelectableSortableItem$1=SelectableSortableItem,SelectableSortableContainer=a=>{const{token:s}=theme.useToken(),{schemas:$,onEdit:_,onSortEnd:_e,hoveringSchemaId:tt,onChangeHoveringSchemaId:nt}=a,[at,ot]=reactExports.useState([]),[rt,st]=reactExports.useState(null),[lt,et]=reactExports.useState(null),it=reactExports.useContext(PluginsRegistry),ut=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:15}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),ft=gt=>at.map(pt=>pt.id).includes(gt),ht=(gt,pt)=>{if(pt)if(ft(gt)){const mt=at.filter(ct=>ct.id!==gt);ot(mt)}else{const mt=$.find(vt=>vt.id===gt),ct=at.concat(mt);ot(ct)}else ot([])},dt=gt=>{const pt=typeof gt=="string"?$.find(vt=>vt.id===gt):gt,[mt,ct]=Object.entries(it).find(([vt,At])=>(At==null?void 0:At.propPanel.defaultSchema.type)===(pt==null?void 0:pt.type));return ct?jsxRuntimeExports.jsx(PluginIcon$1,{plugin:ct,label:mt,size:20,styles:{marginRight:"0.5rem"}}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})};return jsxRuntimeExports.jsx(DndContext,{sensors:ut,collisionDetection:closestCorners,onDragStart:({active:gt})=>{et(String(gt.id)),st($),ft(String(gt.id))?at.length>0&&_e(at.reduce((pt,mt)=>mt.id===String(gt.id)?pt:pt.filter(ct=>ct!==mt),$)):ot([])},onDragEnd:({active:gt,over:pt})=>{const mt=(pt==null?void 0:pt.id)||"",ct=$.map(At=>At.id).indexOf(String(gt.id)),vt=$.map(At=>At.id).indexOf(String(mt));if(at.length){let At=[...$];At=arrayMove(At,ct,vt),At.splice(vt+1,0,...at.filter(xt=>xt.id!==lt)),_e(At),ot([])}else ct!==vt&&_e(arrayMove($,ct,vt));et(null)},onDragCancel:()=>{rt&&_e(rt),et(null),st(null)},children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{height:"100%",overflowY:"auto"},children:jsxRuntimeExports.jsx(SortableContext,{items:$,strategy:verticalListSortingStrategy,children:jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:$.map(gt=>jsxRuntimeExports.jsx(SelectableSortableItem$1,{style:{border:`1px solid ${gt.id===tt?s.colorPrimary:"transparent"}`},schema:gt,schemas:$,isSelected:ft(gt.id)||lt===gt.id,onEdit:_,onSelect:ht,onMouseEnter:()=>nt(gt.id),onMouseLeave:()=>nt(null)},gt.id))})})}),reactDomExports.createPortal(jsxRuntimeExports.jsx(DragOverlay,{adjustScale:!0,children:lt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:jsxRuntimeExports.jsx(Item$1,{icon:dt(lt),value:$.find(gt=>gt.id===lt).key,required:$.find(gt=>gt.id===lt).required,style:{background:s.colorPrimary},dragOverlay:!0})}),jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:at.filter(gt=>gt.id!==lt).map(gt=>jsxRuntimeExports.jsx(Item$1,{icon:dt(gt),value:gt.key,required:gt.required,style:{background:s.colorPrimary},dragOverlay:!0},gt.id))})]}):null}),document.body)]})})},SelectableSortableContainer$1=SelectableSortableContainer,{Text:Text$3}=Typography$1,{TextArea:TextArea$2}=_Input,headHeight=40,ListView=a=>{const{schemas:s,onSortEnd:$,onEdit:_,size:_e,hoveringSchemaId:tt,onChangeHoveringSchemaId:nt,changeSchemas:at}=a,{token:ot}=theme.useToken(),rt=reactExports.useContext(I18nContext),[st,lt]=reactExports.useState(!1),[et,it]=reactExports.useState(""),ut=getSidebarContentHeight(_e.height),ft=()=>{const dt=et.split(`
|
590
|
+
`]:{zIndex:10,width:_,margin:`0 ${unit$1(a.marginXXS)}`,fontSize:_,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,color:_e,"&:hover":{color:_e},svg:{verticalAlign:"baseline"}}},[`${at}-thumbnail, ${at}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${at}-name`]:{display:"none",textAlign:"center"},[`${at}-file + ${at}-name`]:{position:"absolute",bottom:a.margin,display:"block",width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`},[`${at}-uploading`]:{[`&${at}`]:{backgroundColor:a.colorFillAlter},[`&::before, ${$}-eye, ${$}-download, ${$}-delete`]:{display:"none"}},[`${at}-progress`]:{bottom:a.marginXL,width:`calc(100% - ${unit$1(tt(a.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}},genRtlStyle=a=>{const{componentCls:s}=a;return{[`${s}-rtl`]:{direction:"rtl"}}},genRtlStyle$1=genRtlStyle,genBaseStyle=a=>{const{componentCls:s,colorTextDisabled:$}=a;return{[`${s}-wrapper`]:Object.assign(Object.assign({},resetComponent(a)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-disabled`]:{color:$,cursor:"not-allowed"}})}},prepareComponentToken=a=>({actionsColor:a.colorTextDescription}),useStyle=genStyleHooks("Upload",a=>{const{fontSizeHeading3:s,fontHeight:$,lineWidth:_,controlHeightLG:_e,calc:tt}=a,nt=merge(a,{uploadThumbnailSize:tt(s).mul(2).equal(),uploadProgressOffset:tt(tt($).div(2)).add(_).equal(),uploadPicCardSize:tt(_e).mul(2.55).equal()});return[genBaseStyle(nt),genDraggerStyle$1(nt),genPictureStyle(nt),genPictureCardStyle(nt),genListStyle$1(nt),genMotionStyle$1(nt),genRtlStyle$1(nt),genCollapseMotion$1(nt)]},prepareComponentToken);var FileTwoTone$2={icon:function a(s,$){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$}},{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:s}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:FileTwoToneSvg}))};const FileTwoTone$1=reactExports.forwardRef(FileTwoTone);var PaperClipOutlined$2={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"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PaperClipOutlinedSvg}))};const PaperClipOutlined$1=reactExports.forwardRef(PaperClipOutlined);var PictureTwoTone$2={icon:function a(s,$){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:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$}},{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:$}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$}},{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:s}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:PictureTwoToneSvg}))};const PictureTwoTone$1=reactExports.forwardRef(PictureTwoTone);function file2Obj(a){return Object.assign(Object.assign({},a),{lastModified:a.lastModified,lastModifiedDate:a.lastModifiedDate,name:a.name,size:a.size,type:a.type,uid:a.uid,percent:0,originFileObj:a})}function updateFileList(a,s){const $=_toConsumableArray$d(s),_=$.findIndex(_e=>{let{uid:tt}=_e;return tt===a.uid});return _===-1?$.push(a):$[_]=a,$}function getFileItem(a,s){const $=a.uid!==void 0?"uid":"name";return s.filter(_=>_[$]===a[$])[0]}function removeFileItem(a,s){const $=a.uid!==void 0?"uid":"name",_=s.filter(_e=>_e[$]!==a[$]);return _.length===s.length?null:_}const extname=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),_=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(_)||[""])[0]},isImageFileType=a=>a.indexOf("image/")===0,isImageUrl=a=>{if(a.type&&!a.thumbUrl)return isImageFileType(a.type);const s=a.thumbUrl||a.url||"",$=extname(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($)?!0:!(/^data:/.test(s)||$)},MEASURE_SIZE=200;function previewImage(a){return new Promise(s=>{if(!a.type||!isImageFileType(a.type)){s("");return}const $=document.createElement("canvas");$.width=MEASURE_SIZE,$.height=MEASURE_SIZE,$.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild($);const _=$.getContext("2d"),_e=new Image;if(_e.onload=()=>{const{width:tt,height:nt}=_e;let at=MEASURE_SIZE,ot=MEASURE_SIZE,rt=0,st=0;tt>nt?(ot=nt*(MEASURE_SIZE/tt),st=-(ot-at)/2):(at=tt*(MEASURE_SIZE/nt),rt=-(at-ot)/2),_.drawImage(_e,rt,st,at,ot);const lt=$.toDataURL();document.body.removeChild($),window.URL.revokeObjectURL(_e.src),s(lt)},_e.crossOrigin="anonymous",a.type.startsWith("image/svg+xml")){const tt=new FileReader;tt.onload=()=>{tt.result&&(_e.src=tt.result)},tt.readAsDataURL(a)}else if(a.type.startsWith("image/gif")){const tt=new FileReader;tt.onload=()=>{tt.result&&s(tt.result)},tt.readAsDataURL(a)}else _e.src=window.URL.createObjectURL(a)})}var DownloadOutlined$2={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"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:DownloadOutlinedSvg}))};const DownloadOutlined$1=reactExports.forwardRef(DownloadOutlined),ListItem=reactExports.forwardRef((a,s)=>{let{prefixCls:$,className:_,style:_e,locale:tt,listType:nt,file:at,items:ot,progress:rt,iconRender:st,actionIconRender:lt,itemRender:et,isImgUrl:it,showPreviewIcon:ut,showRemoveIcon:ft,showDownloadIcon:ht,previewIcon:dt,removeIcon:gt,downloadIcon:pt,onPreview:mt,onDownload:ct,onClose:vt}=a;var At,xt;const{status:bt}=at,[Et,St]=reactExports.useState(bt);reactExports.useEffect(()=>{bt!=="removed"&&St(bt)},[bt]);const[Bt,Ot]=reactExports.useState(!1);reactExports.useEffect(()=>{const Dt=setTimeout(()=>{Ot(!0)},300);return()=>{clearTimeout(Dt)}},[]);const Pt=st(at);let wt=reactExports.createElement("div",{className:`${$}-icon`},Pt);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(Et==="uploading"||!at.thumbUrl&&!at.url){const Dt=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:Et!=="uploading"});wt=reactExports.createElement("div",{className:Dt},Pt)}else{const Dt=it!=null&&it(at)?reactExports.createElement("img",{src:at.thumbUrl||at.url,alt:at.name,className:`${$}-list-item-image`,crossOrigin:at.crossOrigin}):Pt,Ut=classnames(`${$}-list-item-thumbnail`,{[`${$}-list-item-file`]:it&&!it(at)});wt=reactExports.createElement("a",{className:Ut,onClick:Vt=>mt(at,Vt),href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dt)}const Ct=classnames(`${$}-list-item`,`${$}-list-item-${Et}`),It=typeof at.linkProps=="string"?JSON.parse(at.linkProps):at.linkProps,yt=ft?lt((typeof gt=="function"?gt(at):gt)||reactExports.createElement(DeleteOutlined$1,null),()=>vt(at),$,tt.removeFile,!0):null,Rt=ht&&Et==="done"?lt((typeof pt=="function"?pt(at):pt)||reactExports.createElement(DownloadOutlined$1,null),()=>ct(at),$,tt.downloadFile):null,kt=nt!=="picture-card"&&nt!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classnames(`${$}-list-item-actions`,{picture:nt==="picture"})},Rt,yt),jt=classnames(`${$}-list-item-name`),Ht=at.url?[reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:jt,title:at.name},It,{href:at.url,onClick:Dt=>mt(at,Dt)}),at.name),kt]:[reactExports.createElement("span",{key:"view",className:jt,onClick:Dt=>mt(at,Dt),title:at.name},at.name),kt],Ft=ut&&(at.url||at.thumbUrl)?reactExports.createElement("a",{href:at.url||at.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Dt=>mt(at,Dt),title:tt.previewFile},typeof dt=="function"?dt(at):dt||reactExports.createElement(EyeOutlined$1,null)):null,_t=(nt==="picture-card"||nt==="picture-circle")&&Et!=="uploading"&&reactExports.createElement("span",{className:`${$}-list-item-actions`},Ft,Et==="done"&&Rt,yt),{getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),Mt=Nt(),Lt=reactExports.createElement("div",{className:Ct},wt,Ht,_t,Bt&&reactExports.createElement(CSSMotion,{motionName:`${Mt}-fade`,visible:Et==="uploading",motionDeadline:2e3},Dt=>{let{className:Ut}=Dt;const Vt="percent"in at?reactExports.createElement(Progress$1,Object.assign({},rt,{type:"line",percent:at.percent,"aria-label":at["aria-label"],"aria-labelledby":at["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classnames(`${$}-list-item-progress`,Ut)},Vt)})),$t=at.response&&typeof at.response=="string"?at.response:((At=at.error)===null||At===void 0?void 0:At.statusText)||((xt=at.error)===null||xt===void 0?void 0:xt.message)||tt.uploadError,Tt=Et==="error"?reactExports.createElement(_Tooltip,{title:$t,getPopupContainer:Dt=>Dt.parentNode},Lt):Lt;return reactExports.createElement("div",{className:classnames(`${$}-list-item-container`,_),style:_e,ref:s},et?et(Tt,at,ot,{download:ct.bind(null,at),preview:mt.bind(null,at),remove:vt.bind(null,at)}):Tt)}),ListItem$1=ListItem,InternalUploadList=(a,s)=>{const{listType:$="text",previewFile:_=previewImage,onPreview:_e,onDownload:tt,onRemove:nt,locale:at,iconRender:ot,isImageUrl:rt=isImageUrl,prefixCls:st,items:lt=[],showPreviewIcon:et=!0,showRemoveIcon:it=!0,showDownloadIcon:ut=!1,removeIcon:ft,previewIcon:ht,downloadIcon:dt,progress:gt={size:[-1,2],showInfo:!1},appendAction:pt,appendActionVisible:mt=!0,itemRender:ct,disabled:vt}=a,At=useForceUpdate(),[xt,bt]=reactExports.useState(!1);reactExports.useEffect(()=>{$!=="picture"&&$!=="picture-card"&&$!=="picture-circle"||(lt||[]).forEach(Ft=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ft.originFileObj instanceof File||Ft.originFileObj instanceof Blob)||Ft.thumbUrl!==void 0||(Ft.thumbUrl="",_&&_(Ft.originFileObj).then(_t=>{Ft.thumbUrl=_t||"",At()}))})},[$,lt,_]),reactExports.useEffect(()=>{bt(!0)},[]);const Et=(Ft,_t)=>{if(_e)return _t==null||_t.preventDefault(),_e(Ft)},St=Ft=>{typeof tt=="function"?tt(Ft):Ft.url&&window.open(Ft.url)},Bt=Ft=>{nt==null||nt(Ft)},Ot=Ft=>{if(ot)return ot(Ft,$);const _t=Ft.status==="uploading",Nt=rt&&rt(Ft)?reactExports.createElement(PictureTwoTone$1,null):reactExports.createElement(FileTwoTone$1,null);let Mt=_t?reactExports.createElement(LoadingOutlined$1,null):reactExports.createElement(PaperClipOutlined$1,null);return $==="picture"?Mt=_t?reactExports.createElement(LoadingOutlined$1,null):Nt:($==="picture-card"||$==="picture-circle")&&(Mt=_t?at.uploading:Nt),Mt},Pt=(Ft,_t,Nt,Mt,Lt)=>{const $t={type:"text",size:"small",title:Mt,onClick:Tt=>{_t(),isValidElement(Ft)&&Ft.props.onClick&&Ft.props.onClick(Tt)},className:`${Nt}-list-item-action`};if(Lt&&($t.disabled=vt),isValidElement(Ft)){const Tt=cloneElement(Ft,Object.assign(Object.assign({},Ft.props),{onClick:()=>{}}));return reactExports.createElement(Button$2,Object.assign({},$t,{icon:Tt}))}return reactExports.createElement(Button$2,Object.assign({},$t),reactExports.createElement("span",null,Ft))};reactExports.useImperativeHandle(s,()=>({handlePreview:Et,handleDownload:St}));const{getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Ct=wt("upload",st),It=wt(),yt=classnames(`${Ct}-list`,`${Ct}-list-${$}`),Rt=_toConsumableArray$d(lt.map(Ft=>({key:Ft.uid,file:Ft})));let jt={motionDeadline:2e3,motionName:`${Ct}-${$==="picture-card"||$==="picture-circle"?"animate-inline":"animate"}`,keys:Rt,motionAppear:xt};const Ht=reactExports.useMemo(()=>{const Ft=Object.assign({},initCollapseMotion$1(It));return delete Ft.onAppearEnd,delete Ft.onEnterEnd,delete Ft.onLeaveEnd,Ft},[It]);return $!=="picture-card"&&$!=="picture-circle"&&(jt=Object.assign(Object.assign({},Ht),jt)),reactExports.createElement("div",{className:yt},reactExports.createElement(CSSMotionList,Object.assign({},jt,{component:!1}),Ft=>{let{key:_t,file:Nt,className:Mt,style:Lt}=Ft;return reactExports.createElement(ListItem$1,{key:_t,locale:at,prefixCls:Ct,className:Mt,style:Lt,file:Nt,items:lt,progress:gt,listType:$,isImgUrl:rt,showPreviewIcon:et,showRemoveIcon:it,showDownloadIcon:ut,removeIcon:ft,previewIcon:ht,downloadIcon:dt,iconRender:Ot,actionIconRender:Pt,itemRender:ct,onPreview:Et,onDownload:St,onClose:Bt})}),pt&&reactExports.createElement(CSSMotion,Object.assign({},jt,{visible:mt,forceRender:!0}),Ft=>{let{className:_t,style:Nt}=Ft;return cloneElement(pt,Mt=>({className:classnames(Mt.className,_t),style:Object.assign(Object.assign(Object.assign({},Nt),{pointerEvents:_t?"none":void 0}),Mt.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList),UploadList$1=UploadList;var __awaiter$1=function(a,s,$,_){function _e(tt){return tt instanceof $?tt:new $(function(nt){nt(tt)})}return new($||($=Promise))(function(tt,nt){function at(st){try{rt(_.next(st))}catch(lt){nt(lt)}}function ot(st){try{rt(_.throw(st))}catch(lt){nt(lt)}}function rt(st){st.done?tt(st.value):_e(st.value).then(at,ot)}rt((_=_.apply(a,s||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(a,s)=>{const{fileList:$,defaultFileList:_,onRemove:_e,showUploadList:tt=!0,listType:nt="text",onPreview:at,onDownload:ot,onChange:rt,onDrop:st,previewFile:lt,disabled:et,locale:it,iconRender:ut,isImageUrl:ft,progress:ht,prefixCls:dt,className:gt,type:pt="select",children:mt,style:ct,itemRender:vt,maxCount:At,data:xt={},multiple:bt=!1,action:Et="",accept:St="",supportServerRender:Bt=!0,rootClassName:Ot}=a,Pt=reactExports.useContext(DisabledContext$1),wt=et??Pt,[Ct,It]=useMergedState(_||[],{value:$,postState:ur=>ur??[]}),[yt,Rt]=reactExports.useState("drop"),kt=reactExports.useRef(null);reactExports.useMemo(()=>{const ur=Date.now();($||[]).forEach((pr,yr)=>{!pr.uid&&!Object.isFrozen(pr)&&(pr.uid=`__AUTO__${ur}_${yr}__`)})},[$]);const jt=(ur,pr,yr)=>{let Er=_toConsumableArray$d(pr),br=!1;At===1?Er=Er.slice(-1):At&&(br=Er.length>At,Er=Er.slice(0,At)),reactDomExports.flushSync(()=>{It(Er)});const gr={file:ur,fileList:Er};yr&&(gr.event=yr),(!br||Er.some(Ar=>Ar.uid===ur.uid))&&reactDomExports.flushSync(()=>{rt==null||rt(gr)})},Ht=(ur,pr)=>__awaiter$1(void 0,void 0,void 0,function*(){const{beforeUpload:yr,transformFile:Er}=a;let br=ur;if(yr){const gr=yield yr(ur,pr);if(gr===!1)return!1;if(delete ur[LIST_IGNORE],gr===LIST_IGNORE)return Object.defineProperty(ur,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof gr=="object"&&gr&&(br=gr)}return Er&&(br=yield Er(br)),br}),Ft=ur=>{const pr=ur.filter(br=>!br.file[LIST_IGNORE]);if(!pr.length)return;const yr=pr.map(br=>file2Obj(br.file));let Er=_toConsumableArray$d(Ct);yr.forEach(br=>{Er=updateFileList(br,Er)}),yr.forEach((br,gr)=>{let Ar=br;if(pr[gr].parsedFile)br.status="uploading";else{const{originFileObj:Sr}=br;let Br;try{Br=new File([Sr],Sr.name,{type:Sr.type})}catch{Br=new Blob([Sr],{type:Sr.type}),Br.name=Sr.name,Br.lastModifiedDate=new Date,Br.lastModified=new Date().getTime()}Br.uid=br.uid,Ar=Br}jt(Ar,Er)})},_t=(ur,pr,yr)=>{try{typeof ur=="string"&&(ur=JSON.parse(ur))}catch{}if(!getFileItem(pr,Ct))return;const Er=file2Obj(pr);Er.status="done",Er.percent=100,Er.response=ur,Er.xhr=yr;const br=updateFileList(Er,Ct);jt(Er,br)},Nt=(ur,pr)=>{if(!getFileItem(pr,Ct))return;const yr=file2Obj(pr);yr.status="uploading",yr.percent=ur.percent;const Er=updateFileList(yr,Ct);jt(yr,Er,ur)},Mt=(ur,pr,yr)=>{if(!getFileItem(yr,Ct))return;const Er=file2Obj(yr);Er.error=ur,Er.response=pr,Er.status="error";const br=updateFileList(Er,Ct);jt(Er,br)},Lt=ur=>{let pr;Promise.resolve(typeof _e=="function"?_e(ur):_e).then(yr=>{var Er;if(yr===!1)return;const br=removeFileItem(ur,Ct);br&&(pr=Object.assign(Object.assign({},ur),{status:"removed"}),Ct==null||Ct.forEach(gr=>{const Ar=pr.uid!==void 0?"uid":"name";gr[Ar]===pr[Ar]&&!Object.isFrozen(gr)&&(gr.status="removed")}),(Er=kt.current)===null||Er===void 0||Er.abort(pr),jt(pr,br))})},$t=ur=>{Rt(ur.type),ur.type==="drop"&&(st==null||st(ur))};reactExports.useImperativeHandle(s,()=>({onBatchStart:Ft,onSuccess:_t,onProgress:Nt,onError:Mt,fileList:Ct,upload:kt.current}));const{getPrefixCls:Tt,direction:Dt,upload:Ut}=reactExports.useContext(ConfigContext$1),Vt=Tt("upload",dt),Qt=Object.assign(Object.assign({onBatchStart:Ft,onError:Mt,onProgress:Nt,onSuccess:_t},a),{data:xt,multiple:bt,action:Et,accept:St,supportServerRender:Bt,prefixCls:Vt,disabled:wt,beforeUpload:Ht,onChange:void 0});delete Qt.className,delete Qt.style,(!mt||wt)&&delete Qt.id;const qt=`${Vt}-wrapper`,[Zt,ar,Jt]=useStyle(Vt,qt),[rr]=useLocale$1("Upload",defaultLocale.Upload),{showRemoveIcon:Yt,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ir,downloadIcon:sr}=typeof tt=="boolean"?{}:tt,cr=typeof Yt>"u"?!wt:!!Yt,or=(ur,pr)=>tt?reactExports.createElement(UploadList$1,{prefixCls:Vt,listType:nt,items:Ct,previewFile:lt,onPreview:at,onDownload:ot,onRemove:Lt,showRemoveIcon:cr,showPreviewIcon:Kt,showDownloadIcon:nr,removeIcon:tr,previewIcon:ir,downloadIcon:sr,iconRender:ut,locale:Object.assign(Object.assign({},rr),it),isImageUrl:ft,progress:ht,appendAction:ur,appendActionVisible:pr,itemRender:vt,disabled:wt}):ur,Xt=classnames(qt,gt,Ot,ar,Jt,Ut==null?void 0:Ut.className,{[`${Vt}-rtl`]:Dt==="rtl",[`${Vt}-picture-card-wrapper`]:nt==="picture-card",[`${Vt}-picture-circle-wrapper`]:nt==="picture-circle"}),Gt=Object.assign(Object.assign({},Ut==null?void 0:Ut.style),ct);if(pt==="drag"){const ur=classnames(ar,Vt,`${Vt}-drag`,{[`${Vt}-drag-uploading`]:Ct.some(pr=>pr.status==="uploading"),[`${Vt}-drag-hover`]:yt==="dragover",[`${Vt}-disabled`]:wt,[`${Vt}-rtl`]:Dt==="rtl"});return Zt(reactExports.createElement("span",{className:Xt},reactExports.createElement("div",{className:ur,style:Gt,onDrop:$t,onDragOver:$t,onDragLeave:$t},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt,className:`${Vt}-btn`}),reactExports.createElement("div",{className:`${Vt}-drag-container`},mt))),or()))}const Wt=classnames(Vt,`${Vt}-select`,{[`${Vt}-disabled`]:wt}),lr=(ur=>reactExports.createElement("div",{className:Wt,style:ur},reactExports.createElement(Upload$2,Object.assign({},Qt,{ref:kt}))))(mt?void 0:{display:"none"});return Zt(nt==="picture-card"||nt==="picture-circle"?reactExports.createElement("span",{className:Xt},or(lr,!!mt)):reactExports.createElement("span",{className:Xt},lr,or()))},Upload$1=reactExports.forwardRef(InternalUpload),InternalUpload$1=Upload$1;var __rest$4=function(a,s){var $={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&s.indexOf(_)<0&&($[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,_=Object.getOwnPropertySymbols(a);_e<_.length;_e++)s.indexOf(_[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,_[_e])&&($[_[_e]]=a[_[_e]]);return $};const Dragger=reactExports.forwardRef((a,s)=>{var{style:$,height:_}=a,_e=__rest$4(a,["style","height"]);return reactExports.createElement(InternalUpload$1,Object.assign({ref:s},_e,{type:"drag",style:Object.assign(Object.assign({},$),{height:_})}))}),Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1,Upload.LIST_IGNORE=LIST_IGNORE;const _Upload=Upload;var ArrowLeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const ArrowLeftOutlinedSvg=ArrowLeftOutlined$2;var ArrowLeftOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowLeftOutlinedSvg}))};const ArrowLeftOutlined$1=reactExports.forwardRef(ArrowLeftOutlined);var ArrowRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const ArrowRightOutlinedSvg=ArrowRightOutlined$2;var ArrowRightOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ArrowRightOutlinedSvg}))};const ArrowRightOutlined$1=reactExports.forwardRef(ArrowRightOutlined);var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;var ExclamationCircleOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:ExclamationCircleOutlinedSvg}))};const ExclamationCircleOutlined$1=reactExports.forwardRef(ExclamationCircleOutlined);var MenuOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const MenuOutlinedSvg=MenuOutlined$2;var MenuOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MenuOutlinedSvg}))};const MenuOutlined$1=reactExports.forwardRef(MenuOutlined);var MinusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const MinusOutlinedSvg=MinusOutlined$2;var MinusOutlined=function a(s,$){return reactExports.createElement(AntdIcon$1,_extends$2({},s,{ref:$,icon:MinusOutlinedSvg}))};const MinusOutlined$1=reactExports.forwardRef(MinusOutlined),dictEn={cancel:"Cancel",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",required:"Required",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",addPageAfter:"Add Page After",removePage:"Remove Current Page",removePageConfirm:"Are you sure you want to delete this page? This action cannot be undone.",hexColorPrompt:"Please enter a valid hex color code.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.backgroundColor":"Background Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.padding":"Padding","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Add variables by typing words surrounded by curly brackets, e.g.","schemas.mvt.sampleField":"name","schemas.mvt.variablesSampleData":"Variables Sample Data","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text","schemas.table.alternateBackgroundColor":"Alternate Background Color","schemas.table.tableStyle":"Table Style","schemas.table.headStyle":"Header Style","schemas.table.bodyStyle":"Body Style","schemas.table.columnStyle":"Column Style"},dictZh={cancel:"取消",field:"字段",fieldName:"名称",align:"对齐",width:"宽度",height:"高度",opacity:"透明度",rotate:"旋转",required:"必需的",edit:"编辑",plsInputName:"请输入名称",fieldMustUniq:"字段名称必须唯一",notUniq:"(名称不唯一)",noKeyName:"无名称",fieldsList:"字段列表",editField:"编辑字段",type:"类型",errorOccurred:"发生错误",errorBulkUpdateFieldName:"由于项目数量已更改,无法提交更改。",commitBulkUpdateFieldName:"提交更改",bulkUpdateFieldName:"批量更新字段名称",addPageAfter:"在之后添加页面",removePage:"删除当前页面",removePageConfirm:"您确定要删除此页面吗?此操作无法撤销。",hexColorPrompt:"请输入有效的十六进制颜色代码。","schemas.color":"颜色","schemas.borderWidth":"边框宽度","schemas.borderColor":"边框颜色","schemas.backgroundColor":"背景颜色","schemas.textColor":"文字颜色","schemas.bgColor":"背景颜色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中","schemas.right":"右","schemas.top":"顶","schemas.middle":"中间","schemas.bottom":"底","schemas.padding":"填充","schemas.text.fontName":"字体名称","schemas.text.size":"大小","schemas.text.spacing":"间距","schemas.text.textAlign":"文本对齐","schemas.text.verticalAlign":"垂直对齐","schemas.text.lineHeight":"行高","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"适应","schemas.text.dynamicFontSize":"动态字体大小","schemas.text.format":"格式","schemas.mvt.typingInstructions":"通过输入用花括号括起来的单词来添加变量,例如","schemas.mvt.sampleField":"姓名","schemas.mvt.variablesSampleData":"变量样本数据","schemas.barcodes.barColor":"条码颜色","schemas.barcodes.includetext":"包括文本","schemas.table.alternateBackgroundColor":"交替背景颜色","schemas.table.tableStyle":"表格样式","schemas.table.headStyle":"表头样式","schemas.table.bodyStyle":"表体样式","schemas.table.columnStyle":"列样式"},dictJa={cancel:"キャンセル",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",required:"必須",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",addPageAfter:"次にページを追加",removePage:"現在のページを削除",removePageConfirm:"ページを削除してもよろしいですか?この操作は元に戻せません。",hexColorPrompt:"有効な16進数のカラーコードを入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.backgroundColor":"背景色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.padding":"パディング","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.text.format":"書式","schemas.mvt.typingInstructions":"中括弧で囲まれた単語を入力して変数を追加します。例:","schemas.mvt.sampleField":"名前","schemas.mvt.variablesSampleData":"変数サンプルデータ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める","schemas.table.alternateBackgroundColor":"交互の背景色","schemas.table.tableStyle":"テーブルスタイル","schemas.table.headStyle":"ヘッダースタイル","schemas.table.bodyStyle":"ボディスタイル","schemas.table.columnStyle":"カラムスタイル"},dictKo={cancel:"취소",field:"필드",fieldName:"이름",align:"정렬",width:"너비",height:"높이",opacity:"투명도",rotate:"회전",required:"필수의",edit:"편집",plsInputName:"이름을 입력하세요",fieldMustUniq:"필드 이름은 유일해야 합니다",notUniq:"(유일하지 않은 이름)",noKeyName:"이름 없음",fieldsList:"필드 목록",editField:"필드 편집",type:"유형",errorOccurred:"오류 발생",errorBulkUpdateFieldName:"항목 수가 변경되어 변경을 커밋할 수 없습니다.",commitBulkUpdateFieldName:"변경 사항 커밋",bulkUpdateFieldName:"필드 이름 일괄 업데이트",addPageAfter:"다음에 페이지 추가",removePage:"현재 페이지 제거",removePageConfirm:"이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",hexColorPrompt:"유효한 16진수 색상 코드를 입력하세요.","schemas.color":"색상","schemas.borderWidth":"테두리 너비","schemas.borderColor":"테두리 색상","schemas.backgroundColor":"배경색","schemas.textColor":"텍스트 색상","schemas.bgColor":"배경색","schemas.horizontal":"수평","schemas.vertical":"수직","schemas.left":"왼쪽","schemas.center":"중앙","schemas.right":"오른쪽","schemas.top":"상단","schemas.middle":"중간","schemas.bottom":"하단","schemas.padding":"패딩","schemas.text.fontName":"글꼴 이름","schemas.text.size":"크기","schemas.text.spacing":"간격","schemas.text.textAlign":"텍스트 정렬","schemas.text.verticalAlign":"수직 정렬","schemas.text.lineHeight":"줄 높이","schemas.text.min":"최소","schemas.text.max":"최대","schemas.text.fit":"맞춤","schemas.text.dynamicFontSize":"동적 폰트 크기","schemas.text.format":"형식","schemas.mvt.typingInstructions":"중괄호로 묶인 단어를 입력하여 변수를 추가하세요.","schemas.mvt.sampleField":"이름","schemas.mvt.variablesSampleData":"변수 샘플 데이터","schemas.barcodes.barColor":"바코드 색상","schemas.barcodes.includetext":"텍스트 포함","schemas.table.alternateBackgroundColor":"대체 배경색","schemas.table.tableStyle":"테이블 스타일","schemas.table.headStyle":"헤더 스타일","schemas.table.bodyStyle":"본문 스타일","schemas.table.columnStyle":"열 스타일"},dictAr={cancel:"إلغاء",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",required:"مطلوب",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",addPageAfter:"إضافة صفحة بعد",removePage:"احذف الصفحة الحالية",removePageConfirm:"هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.",hexColorPrompt:"الرجاء إدخال رمز لون سداسي عشري صالح.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.backgroundColor":"لون الخلفية","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.padding":"التبطين","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.text.format":"تنسيق","schemas.mvt.typingInstructions":"قم بإضافة المتغيرات عن طريق كتابة الكلمات المحاطة بأقواس متعرجة، على سبيل المثال:","schemas.mvt.sampleField":"اسم","schemas.mvt.variablesSampleData":"بيانات عينة المتغيرات","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص","schemas.table.alternateBackgroundColor":"لون الخلفية البديل","schemas.table.tableStyle":"أسلوب الجدول","schemas.table.headStyle":"أسلوب الرأس","schemas.table.bodyStyle":"أسلوب الجسم","schemas.table.columnStyle":"أسلوب العمود"},dictTh={cancel:"ยกเลิก",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",required:"ที่จำเป็น",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",addPageAfter:"เพิ่มหน้าถัดไป",removePage:"ลบหน้าปัจจุบัน",removePageConfirm:"คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้",hexColorPrompt:"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.backgroundColor":"สีพื้นหลัง","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.padding":"การเพิ่มพื้นที่","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.text.format":"รูปแบบ","schemas.mvt.typingInstructions":"เพิ่มตัวแปรโดยพิมพ์คำที่ล้อมรอบด้วยวงเล็บปีกกา เช่น","schemas.mvt.sampleField":"ชื่อ","schemas.mvt.variablesSampleData":"ข้อมูลตัวอย่างตัวแปร","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ","schemas.table.alternateBackgroundColor":"สีพื้นหลังสลับกัน","schemas.table.tableStyle":"สไตล์ตาราง","schemas.table.headStyle":"สไตล์หัวข้อ","schemas.table.bodyStyle":"สไตล์เนื้อหา","schemas.table.columnStyle":"สไตล์คอลัมน์"},dictIt={cancel:"Annulla",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",required:"Necessaria",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",addPageAfter:"Aggiungi pagina dopo",removePage:"Rimuovi la Pagina Corrente",removePageConfirm:"Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.",hexColorPrompt:"Inserisci un codice colore esadecimale valido.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.backgroundColor":"Colore di Sfondo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.padding":"Padding","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Aggiungi variabili digitando parole circondate da parentesi graffe, ad es.","schemas.mvt.sampleField":"nome","schemas.mvt.variablesSampleData":"Dati di esempio variabili","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo","schemas.table.alternateBackgroundColor":"Colore di Sfondo Alternato","schemas.table.tableStyle":"Stile della Tabella","schemas.table.headStyle":"Stile dell'Intestazione","schemas.table.bodyStyle":"Stile del Corpo","schemas.table.columnStyle":"Stile della Colonna"},dictPl={cancel:"Anuluj",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",required:"Wymagany",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",addPageAfter:"Dodaj stronę po",removePage:"Usuń Bieżącą Stronę",removePageConfirm:"Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.",hexColorPrompt:"Wprowadź poprawny kod koloru szesnastkowego.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.backgroundColor":"Kolor tła","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.padding":"Odsadzenie","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Dodaj zmienne, wpisując słowa ujęte w nawiasy klamrowe, np.","schemas.mvt.sampleField":"nazwa","schemas.mvt.variablesSampleData":"Zmienne Przykładowe dane","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst","schemas.table.alternateBackgroundColor":"Alternatywny kolor tła","schemas.table.tableStyle":"Styl tabeli","schemas.table.headStyle":"Styl nagłówka","schemas.table.bodyStyle":"Styl ciała","schemas.table.columnStyle":"Styl kolumny"},dictDe={cancel:"Abbrechen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",required:"Erforderlich",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",addPageAfter:"Seite danach hinzufügen",removePage:"Aktuelle Seite entfernen",removePageConfirm:"Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",hexColorPrompt:"Bitte geben Sie einen gültigen Hex-Farbcode ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.backgroundColor":"Hintergrundfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.padding":"Polsterung","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Fügen Sie Variablen hinzu, indem Sie Wörter in geschweiften Klammern eingeben, z. B.","schemas.mvt.sampleField":"Name","schemas.mvt.variablesSampleData":"Variablen Beispieldaten","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen","schemas.table.alternateBackgroundColor":"Wechselnde Hintergrundfarbe","schemas.table.tableStyle":"Tabellenstil","schemas.table.headStyle":"Kopfzeilenstil","schemas.table.bodyStyle":"Körperstil","schemas.table.columnStyle":"Spaltenstil"},dictEs={cancel:"Cancelar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",required:"Requerido",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",addPageAfter:"Insertar página",removePage:"Eliminar página actual",removePageConfirm:"¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.",hexColorPrompt:"Introduce un código de color hexadecimal válido.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.backgroundColor":"Color de fondo","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.padding":"Relleno","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Agregue variables escribiendo palabras entre llaves, p.","schemas.mvt.sampleField":"nombre","schemas.mvt.variablesSampleData":"Variables Datos de muestra","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto","schemas.table.alternateBackgroundColor":"Color de fondo alternativo","schemas.table.tableStyle":"Estilo de tabla","schemas.table.headStyle":"Estilo de cabecera","schemas.table.bodyStyle":"Estilo de cuerpo","schemas.table.columnStyle":"Estilo de columna"},dictFr={cancel:"Annuler",field:"Champ",fieldName:"Nom",align:"Aligner",width:"Largeur",height:"Hauteur",opacity:"Opacité",rotate:"Rotation",required:"Requis",edit:"Éditer",plsInputName:"Veuillez saisir le nom",fieldMustUniq:"Le nom du champ n'est pas unique",notUniq:"(Nombre non unique)",noKeyName:"Pas de nom",fieldsList:"Liste des champs",editField:"Éditer le champ",type:"Type",errorOccurred:"Une erreur est survenue",errorBulkUpdateFieldName:"Impossible de confirmer le changement car le nombre d'éléments a changé.",commitBulkUpdateFieldName:"Confirmer les changements",bulkUpdateFieldName:"Modifier les noms de champs en masse",addPageAfter:"Ajouter une page après",removePage:"Supprimer la page actuelle",removePageConfirm:"Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.",hexColorPrompt:"Veuillez entrer un code couleur hexadécimal valide.","schemas.color":"Couleur","schemas.borderWidth":"Largeur de la bordure","schemas.borderColor":"Couleur de la bordure","schemas.backgroundColor":"Couleur de fond","schemas.textColor":"Couleur du texte","schemas.bgColor":"Couleur de fond","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Gauche","schemas.center":"Centre","schemas.right":"Droite","schemas.top":"Haut","schemas.middle":"Milieu","schemas.bottom":"Bas","schemas.padding":"Zone de remplissage","schemas.text.fontName":"Nom de la police","schemas.text.size":"Taille","schemas.text.spacing":"Espacement","schemas.text.textAlign":"Alignement du texte","schemas.text.verticalAlign":"Alignement vertical","schemas.text.lineHeight":"Hauteur de ligne","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Ajustement","schemas.text.dynamicFontSize":"Taille de police dynamique","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Ajoutez des variables en tapant des mots entourés d'accolades, par ex.","schemas.mvt.sampleField":"nom","schemas.mvt.variablesSampleData":"Variables Exemples de données","schemas.barcodes.barColor":"Couleur de la barre","schemas.barcodes.includetext":"Inclure le texte","schemas.table.alternateBackgroundColor":"Couleur de fond alternative","schemas.table.tableStyle":"Style de tableau","schemas.table.headStyle":"Style d'en-tête","schemas.table.bodyStyle":"Style de corps","schemas.table.columnStyle":"Style de colonne"},dictionaries={en:dictEn,zh:dictZh,ja:dictJa,ko:dictKo,ar:dictAr,th:dictTh,it:dictIt,pl:dictPl,de:dictDe,es:dictEs,fr:dictFr},getDict=a=>dictionaries[a]||dictionaries[DEFAULT_LANG],i18n=(a,s)=>(s||getDict(DEFAULT_LANG))[a],I18nContext=reactExports.createContext(i18n),FontContext=reactExports.createContext(getDefaultFont()),PluginsRegistry=reactExports.createContext(builtInPlugins),OptionsContext=reactExports.createContext({});function arrayMove(a,s,$){const _=a.slice();return _.splice($<0?_.length+$:$,0,_.splice(s,1)[0]),_}function getSortedRects(a,s){return a.reduce(($,_,_e)=>{const tt=s.get(_);return tt&&($[_e]=tt),$},Array(a.length))}function isValidIndex(a){return a!==null&&a>=0}function itemsEqual(a,s){if(a===s)return!0;if(a.length!==s.length)return!1;for(let $=0;$<a.length;$++)if(a[$]!==s[$])return!1;return!0}function normalizeDisabled(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const rectSortingStrategy=a=>{let{rects:s,activeIndex:$,overIndex:_,index:_e}=a;const tt=arrayMove(s,_,$),nt=s[_e],at=tt[_e];return!at||!nt?null:{x:at.left-nt.left,y:at.top-nt.top,scaleX:at.width/nt.width,scaleY:at.height/nt.height}},defaultScale$1={scaleX:1,scaleY:1},verticalListSortingStrategy=a=>{var s;let{activeIndex:$,activeNodeRect:_,index:_e,rects:tt,overIndex:nt}=a;const at=(s=tt[$])!=null?s:_;if(!at)return null;if(_e===$){const rt=tt[nt];return rt?{x:0,y:$<nt?rt.top+rt.height-(at.top+at.height):rt.top-at.top,...defaultScale$1}:null}const ot=getItemGap$1(tt,_e,$);return _e>$&&_e<=nt?{x:0,y:-at.height-ot,...defaultScale$1}:_e<$&&_e>=nt?{x:0,y:at.height+ot,...defaultScale$1}:{x:0,y:0,...defaultScale$1}};function getItemGap$1(a,s,$){const _=a[s],_e=a[s-1],tt=a[s+1];return _?$<s?_e?_.top-(_e.top+_e.height):tt?tt.top-(_.top+_.height):0:tt?tt.top-(_.top+_.height):_e?_.top-(_e.top+_e.height):0:0}const ID_PREFIX="Sortable",Context$1=React$a.createContext({activeIndex:-1,containerId:ID_PREFIX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rectSortingStrategy,disabled:{draggable:!1,droppable:!1}});function SortableContext(a){let{children:s,id:$,items:_,strategy:_e=rectSortingStrategy,disabled:tt=!1}=a;const{active:nt,dragOverlay:at,droppableRects:ot,over:rt,measureDroppableContainers:st}=useDndContext(),lt=useUniqueId(ID_PREFIX,$),et=at.rect!==null,it=reactExports.useMemo(()=>_.map(vt=>typeof vt=="object"&&"id"in vt?vt.id:vt),[_]),ut=nt!=null,ft=nt?it.indexOf(nt.id):-1,ht=rt?it.indexOf(rt.id):-1,dt=reactExports.useRef(it),gt=!itemsEqual(it,dt.current),pt=ht!==-1&&ft===-1||gt,mt=normalizeDisabled(tt);useIsomorphicLayoutEffect$1(()=>{gt&&ut&&st(it)},[gt,it,ut,st]),reactExports.useEffect(()=>{dt.current=it},[it]);const ct=reactExports.useMemo(()=>({activeIndex:ft,containerId:lt,disabled:mt,disableTransforms:pt,items:it,overIndex:ht,useDragOverlay:et,sortedRects:getSortedRects(it,ot),strategy:_e}),[ft,lt,mt.draggable,mt.droppable,pt,it,ht,ot,et,_e]);return React$a.createElement(Context$1.Provider,{value:ct},s)}const defaultNewIndexGetter=a=>{let{id:s,items:$,activeIndex:_,overIndex:_e}=a;return arrayMove($,_,_e).indexOf(s)},defaultAnimateLayoutChanges=a=>{let{containerId:s,isSorting:$,wasDragging:_,index:_e,items:tt,newIndex:nt,previousItems:at,previousContainerId:ot,transition:rt}=a;return!rt||!_||at!==tt&&_e===nt?!1:$?!0:nt!==_e&&s===ot},defaultTransition={duration:200,easing:"ease"},transitionProperty="transform",disabledTransition=CSS$1.Transition.toString({property:transitionProperty,duration:0,easing:"linear"}),defaultAttributes={roleDescription:"sortable"};function useDerivedTransform(a){let{disabled:s,index:$,node:_,rect:_e}=a;const[tt,nt]=reactExports.useState(null),at=reactExports.useRef($);return useIsomorphicLayoutEffect$1(()=>{if(!s&&$!==at.current&&_.current){const ot=_e.current;if(ot){const rt=getClientRect$1(_.current,{ignoreTransform:!0}),st={x:ot.left-rt.left,y:ot.top-rt.top,scaleX:ot.width/rt.width,scaleY:ot.height/rt.height};(st.x||st.y)&&nt(st)}}$!==at.current&&(at.current=$)},[s,$,_,_e]),reactExports.useEffect(()=>{tt&&nt(null)},[tt]),tt}function useSortable(a){let{animateLayoutChanges:s=defaultAnimateLayoutChanges,attributes:$,disabled:_,data:_e,getNewIndex:tt=defaultNewIndexGetter,id:nt,strategy:at,resizeObserverConfig:ot,transition:rt=defaultTransition}=a;const{items:st,containerId:lt,activeIndex:et,disabled:it,disableTransforms:ut,sortedRects:ft,overIndex:ht,useDragOverlay:dt,strategy:gt}=reactExports.useContext(Context$1),pt=normalizeLocalDisabled(_,it),mt=st.indexOf(nt),ct=reactExports.useMemo(()=>({sortable:{containerId:lt,index:mt,items:st},..._e}),[lt,_e,mt,st]),vt=reactExports.useMemo(()=>st.slice(st.indexOf(nt)),[st,nt]),{rect:At,node:xt,isOver:bt,setNodeRef:Et}=useDroppable({id:nt,data:ct,disabled:pt.droppable,resizeObserverConfig:{updateMeasurementsFor:vt,...ot}}),{active:St,activatorEvent:Bt,activeNodeRect:Ot,attributes:Pt,setNodeRef:wt,listeners:Ct,isDragging:It,over:yt,setActivatorNodeRef:Rt,transform:kt}=useDraggable({id:nt,data:ct,attributes:{...defaultAttributes,...$},disabled:pt.draggable}),jt=useCombinedRefs(Et,wt),Ht=!!St,Ft=Ht&&!ut&&isValidIndex(et)&&isValidIndex(ht),_t=!dt&&It,Nt=_t&&Ft?kt:null,Lt=Ft?Nt??(at??gt)({rects:ft,activeNodeRect:Ot,activeIndex:et,overIndex:ht,index:mt}):null,$t=isValidIndex(et)&&isValidIndex(ht)?tt({id:nt,items:st,activeIndex:et,overIndex:ht}):mt,Tt=St==null?void 0:St.id,Dt=reactExports.useRef({activeId:Tt,items:st,newIndex:$t,containerId:lt}),Ut=st!==Dt.current.items,Vt=s({active:St,containerId:lt,isDragging:It,isSorting:Ht,id:nt,index:mt,items:st,newIndex:Dt.current.newIndex,previousItems:Dt.current.items,previousContainerId:Dt.current.containerId,transition:rt,wasDragging:Dt.current.activeId!=null}),Qt=useDerivedTransform({disabled:!Vt,index:mt,node:xt,rect:At});return reactExports.useEffect(()=>{Ht&&Dt.current.newIndex!==$t&&(Dt.current.newIndex=$t),lt!==Dt.current.containerId&&(Dt.current.containerId=lt),st!==Dt.current.items&&(Dt.current.items=st)},[Ht,$t,lt,st]),reactExports.useEffect(()=>{if(Tt===Dt.current.activeId)return;if(Tt&&!Dt.current.activeId){Dt.current.activeId=Tt;return}const Zt=setTimeout(()=>{Dt.current.activeId=Tt},50);return()=>clearTimeout(Zt)},[Tt]),{active:St,activeIndex:et,attributes:Pt,data:ct,rect:At,index:mt,newIndex:$t,items:st,isOver:bt,isSorting:Ht,isDragging:It,listeners:Ct,node:xt,overIndex:ht,over:yt,setNodeRef:jt,setActivatorNodeRef:Rt,setDroppableNodeRef:Et,setDraggableNodeRef:wt,transform:Qt??Lt,transition:qt()};function qt(){if(Qt||Ut&&Dt.current.newIndex===mt)return disabledTransition;if(!(_t&&!isKeyboardEvent(Bt)||!rt)&&(Ht||Vt))return CSS$1.Transition.toString({...rt,property:transitionProperty})}}function normalizeLocalDisabled(a,s){var $,_;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:($=a==null?void 0:a.draggable)!=null?$:s.draggable,droppable:(_=a==null?void 0:a.droppable)!=null?_:s.droppable}}function hasSortableData(a){if(!a)return!1;const s=a.data.current;return!!(s&&"sortable"in s&&typeof s.sortable=="object"&&"containerId"in s.sortable&&"items"in s.sortable&&"index"in s.sortable)}const directions=[KeyboardCode.Down,KeyboardCode.Right,KeyboardCode.Up,KeyboardCode.Left],sortableKeyboardCoordinates=(a,s)=>{let{context:{active:$,collisionRect:_,droppableRects:_e,droppableContainers:tt,over:nt,scrollableAncestors:at}}=s;if(directions.includes(a.code)){if(a.preventDefault(),!$||!_)return;const ot=[];tt.getEnabled().forEach(lt=>{if(!lt||lt!=null&<.disabled)return;const et=_e.get(lt.id);if(et)switch(a.code){case KeyboardCode.Down:_.top<et.top&&ot.push(lt);break;case KeyboardCode.Up:_.top>et.top&&ot.push(lt);break;case KeyboardCode.Left:_.left>et.left&&ot.push(lt);break;case KeyboardCode.Right:_.left<et.left&&ot.push(lt);break}});const rt=closestCorners({active:$,collisionRect:_,droppableRects:_e,droppableContainers:ot,pointerCoordinates:null});let st=getFirstCollision(rt,"id");if(st===(nt==null?void 0:nt.id)&&rt.length>1&&(st=rt[1].id),st!=null){const lt=tt.get($.id),et=tt.get(st),it=et?_e.get(et.id):null,ut=et==null?void 0:et.node.current;if(ut&&it&<&&et){const ht=getScrollableAncestors(ut).some((vt,At)=>at[At]!==vt),dt=isSameContainer(lt,et),gt=isAfter(lt,et),pt=ht||!dt?{x:0,y:0}:{x:gt?_.width-it.width:0,y:gt?_.height-it.height:0},mt={x:it.left,y:it.top};return pt.x&&pt.y?mt:subtract(mt,pt)}}}};function isSameContainer(a,s){return!hasSortableData(a)||!hasSortableData(s)?!1:a.data.current.sortable.containerId===s.data.current.sortable.containerId}function isAfter(a,s){return!hasSortableData(a)||!hasSortableData(s)||!isSameContainer(a,s)?!1:a.data.current.sortable.index<s.data.current.sortable.index}const{Text:Text$4}=Typography$1,Item=React$a.memo(React$a.forwardRef(({icon:a,value:s,status:$,title:_,required:_e,style:tt,dragOverlay:nt,onClick:at,onMouseEnter:ot,onMouseLeave:rt,dragging:st,fadeIn:lt,listeners:et,sorting:it,transition:ut,transform:ft,...ht},dt)=>{const gt=reactExports.useContext(I18nContext);reactExports.useEffect(()=>{if(nt)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[nt]);const{x:pt,y:mt,scaleX:ct,scaleY:vt}=ft||{x:0,y:0,scaleX:1,scaleY:1};return jsxRuntimeExports.jsx("li",{style:{marginTop:10,transition:ut,transform:`translate(${pt}px, ${mt}px) scale(${ct}, ${vt})`},onMouseEnter:ot,onMouseLeave:rt,ref:dt,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",...tt},...ht,onClick:()=>at&&at(),children:[jsxRuntimeExports.jsx(Button$2,{...et,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:jsxRuntimeExports.jsx(HolderOutlined$1,{style:{cursor:"grab"}})}),a,jsxRuntimeExports.jsxs(Text$4,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:_||"",children:[$===void 0?s:jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx(ExclamationCircleOutlined$1,{width:15,style:{marginRight:"0.5rem"}}),$==="is-warning"?gt("noKeyName"):s,$==="is-danger"?gt("notUniq"):""]}),_e&&jsxRuntimeExports.jsx("span",{style:{color:"red",marginLeft:"0.5rem"},children:"*"})]})]})})})),Item$1=Item,usePrevious=a=>{const s=reactExports.useRef(null);return reactExports.useEffect(()=>{s.current=a}),s.current},getScale=(a,s)=>Math.floor((a/s>1?1:a/s)*100)/100,useUIPreProcessor=({template:a,size:s,zoomLevel:$})=>{const[_,_e]=reactExports.useState([]),[tt,nt]=reactExports.useState([]),[at,ot]=reactExports.useState(0),[rt,st]=reactExports.useState(null),lt=async et=>{const{template:{basePdf:it,schemas:ut},size:ft}=et;let ht,dt,gt,pt;if(isBlankPdf(it)){const{width:ct,height:vt}=it;ht=ct*ZOOM,dt=vt*ZOOM,gt=ut.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),pt=ut.map(()=>({width:ct,height:vt}))}else{const ct=await getB64BasePdf(it),vt=b64toBlob(ct);pt=await getPdfPageSizes(vt),ht=pt[0].width*ZOOM,dt=pt[0].height*ZOOM,gt=await pdf2Pngs(vt,ht)}const mt=Math.min(getScale(ft.width,ht),getScale(ft.height-RULER_HEIGHT,dt));return{backgrounds:gt,pageSizes:pt,scale:mt}};return reactExports.useEffect(()=>{lt({template:a,size:s}).then(({pageSizes:et,scale:it,backgrounds:ut})=>{nt(et),ot(it),_e(ut)}).catch(et=>{st(et),console.error(`[@pdfme/ui] ${et}`)})},[a,s]),{backgrounds:_,pageSizes:tt,scale:at*$,error:rt,refresh:et=>lt({template:et,size:s}).then(({pageSizes:it,scale:ut,backgrounds:ft})=>{nt(it),ot(ut),_e(ft)})}},useScrollPageCursor=({ref:a,pageSizes:s,scale:$,pageCursor:_,onChangePageCursor:_e})=>{const tt=reactExports.useCallback(()=>{if(!s[0]||!a.current)return;const nt=a.current.scrollTop,{top:at}=a.current.getBoundingClientRect(),ot=s.reduce((st,lt,et)=>{let it=(lt.height*ZOOM+RULER_HEIGHT)*$;return et===0?it+=at-it/2:it+=st[et-1],st.concat(it)},[]);let rt=0;ot.forEach((st,lt)=>{nt>st&&(rt=lt+1>=ot.length?ot.length-1:lt+1)}),rt!==_&&_e(rt)},[_e,_,s,a,$]);reactExports.useEffect(()=>{var nt;return(nt=a.current)==null||nt.addEventListener("scroll",tt),()=>{var at;(at=a.current)==null||at.removeEventListener("scroll",tt)}},[a,tt])},useMountStatus=()=>{const[a,s]=reactExports.useState(!1);return reactExports.useEffect(()=>{const $=setTimeout(()=>s(!0),500);return()=>clearTimeout($)},[]),a},useInitEvents=({pageCursor:a,pageSizes:s,activeElements:$,template:_,schemasList:_e,changeSchemas:tt,commitSchemas:nt,removeSchemas:at,onSaveTemplate:ot,past:rt,future:st,setSchemasList:lt,onEdit:et,onEditEnd:it})=>{const ut=reactExports.useRef(null),ft=reactExports.useCallback(()=>{const dt=()=>{const pt=$.map(mt=>mt.id);return _e[a].filter(mt=>pt.includes(mt.id))},gt=pt=>{const mt=pt==="undo",ct=mt?rt:st;if(ct.current.length<=0)return;(mt?st:rt).current.push(cloneDeep$2(_e[a]));const vt=cloneDeep$2(_e);vt[a]=ct.current.pop(),lt(vt)};initShortCuts({move:(pt,mt)=>{const ct=s[a],vt=dt(),At=moveCommandToChangeSchemasArg({command:pt,activeSchemas:vt,pageSize:ct,isShift:mt});tt(At)},copy:()=>{const pt=dt();pt.length!==0&&(ut.current=pt)},paste:()=>{if(!ut.current||ut.current.length===0)return;const pt=_e[a],mt=[],ct=ut.current.map(vt=>{const At=uuid$6(),xt=getUniqSchemaKey({copiedSchemaKey:vt.key,schema:pt,stackUniqSchemaKeys:mt}),{height:bt,width:Et,position:St}=vt,Bt=s[a],Ot={x:St.x+10>Bt.width-Et?Bt.width-Et:St.x+10,y:St.y+10>Bt.height-bt?Bt.height-bt:St.y+10};return Object.assign(cloneDeep$2(vt),{id:At,key:xt,position:Ot})});nt(_e[a].concat(ct)),et(ct.map(vt=>document.getElementById(vt.id))),ut.current=ct},redo:()=>gt("redo"),undo:()=>gt("undo"),save:()=>ot&&ot(schemasList2template(_e,_.basePdf)),remove:()=>at(dt().map(pt=>pt.id)),esc:it,selectAll:()=>et(_e[a].map(pt=>document.getElementById(pt.id)))})},[_,$,a,s,tt,nt,_e,ot,at,rt,st,lt,ut,et,it]),ht=reactExports.useCallback(()=>{destroyShortCuts()},[]);reactExports.useEffect(()=>(ft(),ht),[ft,ht])},getWithModifiedSize=(a,s,$,_)=>{const tt=new DOMParser().parseFromString(a,"text/html"),nt=at=>{(at.tagName==="SVG"||at.tagName==="svg")&&(at.setAttribute("width",$.toString()),at.setAttribute("height",$.toString())),Array.from(at.children).forEach(ot=>nt(ot))};return Array.from(tt.body.children).forEach(at=>nt(at)),jsxRuntimeExports.jsx("div",{style:_,title:s,dangerouslySetInnerHTML:{__html:tt.body.innerHTML}})},PluginIcon=a=>{var ot;const{plugin:s,label:$,size:_,styles:_e}=a,nt=((ot=reactExports.useContext(OptionsContext).icons)==null?void 0:ot[s.propPanel.defaultSchema.type])??s.icon,at={..._e,display:"flex",justifyContent:"center"};return nt?_?getWithModifiedSize(nt,$,_,at):jsxRuntimeExports.jsx("div",{style:at,title:$,dangerouslySetInnerHTML:{__html:nt}}):jsxRuntimeExports.jsx("div",{style:{..._e,overflow:"hidden",fontSize:10},children:$})},PluginIcon$1=PluginIcon,SelectableSortableItem=({isSelected:a,style:s,onSelect:$,onEdit:_,schema:_e,schemas:tt,onMouseEnter:nt,onMouseLeave:at})=>{const{token:ot}=theme.useToken(),rt=reactExports.useContext(I18nContext),st=reactExports.useContext(PluginsRegistry),{setNodeRef:lt,listeners:et,isDragging:it,isSorting:ut,transform:ft,transition:ht}=useSortable({id:_e.id}),dt=useMountStatus(),gt=it&&!dt,pt={...et,onClick:Et=>$(_e.id,Et.shiftKey)},[mt,ct]=Object.entries(st).find(([Et,St])=>(St==null?void 0:St.propPanel.defaultSchema.type)===_e.type),vt={width:20,marginRight:"0.5rem"};let At;_e.key?tt.find(Et=>_e.key&&Et.key===_e.key&&Et.id!==_e.id)&&(At="is-danger"):At="is-warning";let xt=rt("edit");At==="is-warning"?xt=rt("plsInputName"):At==="is-danger"&&(xt=rt("fieldMustUniq"));const bt=a?{background:ot.colorPrimary,opacity:ut||it?.5:1}:{};return jsxRuntimeExports.jsx(Item$1,{ref:lt,onMouseEnter:nt,onMouseLeave:at,onClick:()=>_(_e.id),icon:ct&&jsxRuntimeExports.jsx(PluginIcon$1,{plugin:ct,label:mt,size:20,styles:vt}),value:_e.key,status:At,title:xt,required:_e.required,style:{...bt,...s},dragging:it,sorting:ut,transition:ht,transform:ft,fadeIn:gt,listeners:pt})},SelectableSortableItem$1=SelectableSortableItem,SelectableSortableContainer=a=>{const{token:s}=theme.useToken(),{schemas:$,onEdit:_,onSortEnd:_e,hoveringSchemaId:tt,onChangeHoveringSchemaId:nt}=a,[at,ot]=reactExports.useState([]),[rt,st]=reactExports.useState(null),[lt,et]=reactExports.useState(null),it=reactExports.useContext(PluginsRegistry),ut=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:15}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),ft=gt=>at.map(pt=>pt.id).includes(gt),ht=(gt,pt)=>{if(pt)if(ft(gt)){const mt=at.filter(ct=>ct.id!==gt);ot(mt)}else{const mt=$.find(vt=>vt.id===gt),ct=at.concat(mt);ot(ct)}else ot([])},dt=gt=>{const pt=typeof gt=="string"?$.find(vt=>vt.id===gt):gt,[mt,ct]=Object.entries(it).find(([vt,At])=>(At==null?void 0:At.propPanel.defaultSchema.type)===(pt==null?void 0:pt.type));return ct?jsxRuntimeExports.jsx(PluginIcon$1,{plugin:ct,label:mt,size:20,styles:{marginRight:"0.5rem"}}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})};return jsxRuntimeExports.jsx(DndContext,{sensors:ut,collisionDetection:closestCorners,onDragStart:({active:gt})=>{et(String(gt.id)),st($),ft(String(gt.id))?at.length>0&&_e(at.reduce((pt,mt)=>mt.id===String(gt.id)?pt:pt.filter(ct=>ct!==mt),$)):ot([])},onDragEnd:({active:gt,over:pt})=>{const mt=(pt==null?void 0:pt.id)||"",ct=$.map(At=>At.id).indexOf(String(gt.id)),vt=$.map(At=>At.id).indexOf(String(mt));if(at.length){let At=[...$];At=arrayMove(At,ct,vt),At.splice(vt+1,0,...at.filter(xt=>xt.id!==lt)),_e(At),ot([])}else ct!==vt&&_e(arrayMove($,ct,vt));et(null)},onDragCancel:()=>{rt&&_e(rt),et(null),st(null)},children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{height:"100%",overflowY:"auto"},children:jsxRuntimeExports.jsx(SortableContext,{items:$,strategy:verticalListSortingStrategy,children:jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:$.map(gt=>jsxRuntimeExports.jsx(SelectableSortableItem$1,{style:{border:`1px solid ${gt.id===tt?s.colorPrimary:"transparent"}`},schema:gt,schemas:$,isSelected:ft(gt.id)||lt===gt.id,onEdit:_,onSelect:ht,onMouseEnter:()=>nt(gt.id),onMouseLeave:()=>nt(null)},gt.id))})})}),reactDomExports.createPortal(jsxRuntimeExports.jsx(DragOverlay,{adjustScale:!0,children:lt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:jsxRuntimeExports.jsx(Item$1,{icon:dt(lt),value:$.find(gt=>gt.id===lt).key,required:$.find(gt=>gt.id===lt).required,style:{background:s.colorPrimary},dragOverlay:!0})}),jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:at.filter(gt=>gt.id!==lt).map(gt=>jsxRuntimeExports.jsx(Item$1,{icon:dt(gt),value:gt.key,required:gt.required,style:{background:s.colorPrimary},dragOverlay:!0},gt.id))})]}):null}),document.body)]})})},SelectableSortableContainer$1=SelectableSortableContainer,{Text:Text$3}=Typography$1,{TextArea:TextArea$2}=_Input,headHeight=40,ListView=a=>{const{schemas:s,onSortEnd:$,onEdit:_,size:_e,hoveringSchemaId:tt,onChangeHoveringSchemaId:nt,changeSchemas:at}=a,{token:ot}=theme.useToken(),rt=reactExports.useContext(I18nContext),[st,lt]=reactExports.useState(!1),[et,it]=reactExports.useState(""),ut=getSidebarContentHeight(_e.height),ft=()=>{const dt=et.split(`
|
591
591
|
`);dt.length!==s.length?alert(rt("errorBulkUpdateFieldName")):(at(dt.map((gt,pt)=>({key:"key",value:gt,schemaId:s[pt].id}))),lt(!1))},ht=()=>{it(s.map(dt=>dt.key).join(`
|
592
592
|
`)),lt(!0)};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{style:{height:headHeight,display:"flex",alignItems:"center"},children:jsxRuntimeExports.jsx(Text$3,{strong:!0,style:{textAlign:"center",width:"100%"},children:rt("fieldsList")})}),jsxRuntimeExports.jsx(Divider$1,{style:{marginTop:ot.marginXS,marginBottom:ot.marginXS}}),jsxRuntimeExports.jsxs("div",{style:{height:ut-headHeight},children:[st?jsxRuntimeExports.jsx(TextArea$2,{wrap:"off",value:et,onChange:dt=>it(dt.target.value),style:{paddingLeft:30,height:ut-headHeight,width:RIGHT_SIDEBAR_WIDTH-35,lineHeight:"2.75rem"}}):jsxRuntimeExports.jsx(SelectableSortableContainer$1,{schemas:s,hoveringSchemaId:tt,onChangeHoveringSchemaId:nt,onSortEnd:$,onEdit:_}),jsxRuntimeExports.jsx("div",{style:{paddingTop:"0.5rem",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:st?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button$2,{size:"small",type:"text",onClick:ft,children:jsxRuntimeExports.jsxs("u",{children:[" ",rt("commitBulkUpdateFieldName")]})}),jsxRuntimeExports.jsx("span",{style:{margin:"0 1rem"},children:"/"}),jsxRuntimeExports.jsx(Button$2,{size:"small",type:"text",onClick:()=>lt(!1),children:jsxRuntimeExports.jsxs("u",{children:[" ",rt("cancel")]})})]}):jsxRuntimeExports.jsx(Button$2,{size:"small",type:"text",onClick:ht,children:jsxRuntimeExports.jsxs("u",{children:[" ",rt("bulkUpdateFieldName")]})})})]})]})},ListView$1=ListView;/*! *****************************************************************************
|
593
593
|
Copyright (c) Microsoft Corporation.
|
package/package.json
CHANGED
@@ -110,7 +110,7 @@ const Item = React.memo(
|
|
110
110
|
{status === undefined ? (
|
111
111
|
value
|
112
112
|
) : (
|
113
|
-
<span
|
113
|
+
<span>
|
114
114
|
<ExclamationCircleOutlined width={15} style={{ marginRight: '0.5rem' }} />
|
115
115
|
{status === 'is-warning' ? i18n('noKeyName') : value}
|
116
116
|
{status === 'is-danger' ? i18n('notUniq') : ''}
|