@nocobase/app 1.2.0-alpha → 1.2.1-alpha

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.
@@ -21,6 +21,6 @@
21
21
  </head>
22
22
  <body>
23
23
  <div id="root"></div>
24
- <script src="/umi.3b0392b6.js"></script>
24
+ <script src="/umi.f183f3eb.js"></script>
25
25
 
26
26
  </body></html>
@@ -21,6 +21,6 @@
21
21
  </head>
22
22
  <body>
23
23
  <div id="root"></div>
24
- <script src="/umi.3b0392b6.js"></script>
24
+ <script src="/umi.f183f3eb.js"></script>
25
25
 
26
26
  </body></html>
@@ -552,7 +552,7 @@ https://requirejs.org/docs/errors.html#`+He);return u.requireType=He,u.requireMo
552
552
  }
553
553
  }
554
554
  }
555
- `]))),f=(0,v.observer)(function(F){var C=(0,b.ett)();return(0,$.jsxs)(b.TRI,{className:j,children:[(0,$.jsx)(C,{}),F.children]})},{displayName:"TableColumnActionBar"})},70027:function(He,le,e){"use strict";e.d(le,{h:function(){return $},z:function(){return b}});var W=e(94350),u=e(67294),N=e(21143),v=e(29050),M=e(85893),b=function(){var j=(0,N.useCollection_deprecated)(),f=j.getField,F=(0,N.useCompile)(),C=(0,W.useFieldSchema)(),O=C.reduceProperties(function(o,c){return c["x-component"]==="CollectionField"?c:o},null);if(!O)return{};var n=f(O.name);return{columnSchema:C,fieldSchema:O,collectionField:n,uiSchema:F(n==null?void 0:n.uiSchema)}},$=function(j){var f=(0,N.useDesigner)(),F=(0,W.useField)(),C=b(),O=C.fieldSchema,n=C.uiSchema,o=C.collectionField,c=(0,N.useDesignable)(),L=c.refresh,E=(0,N.useCompile)();return(0,u.useLayoutEffect)(function(){F.title||O&&n!=null&&n.title&&(F.title=n==null?void 0:n.title)},[n==null?void 0:n.title]),(0,M.jsxs)(N.SortableItem,{className:v.m,children:[(0,M.jsx)(f,{fieldSchema:O,uiSchema:n,collectionField:o}),F.title||E(n==null?void 0:n.title)]})}},9829:function(He,le,e){"use strict";e.d(le,{fU:function(){return Ne},gq:function(){return re},Qm:function(){return Ve}});var W=e(19632),u=e.n(W),N=e(5574),v=e.n(N),M=e(97857),b=e.n(M),$=e(13769),r=e.n($),j=e(23430),f=e(48689),F=e(24969),C=e(50888),O=e(64082),n=e(94350),o=e(79801),c=e(42075),L=e(15867),E=e(26410),y=e(83062),m=e(5914),K=e(48807),T=e(93967),k=e.n(T),A=e(93162),S=e(56755),x=e.n(S),a=e(67294),D=e(26793),d=e(92879),p=e(87487),i=e(15503),l=e(9780),h=e(52677),I=e(63198),t=e(24193),U=e.n(t),H=e(12174),Y=[{ext:/\.docx?$/i,icon:"//img.alicdn.com/tfs/TB1n8jfr1uSBuNjy1XcXXcYjFXa-200-200.png"},{ext:/\.pptx?$/i,icon:"//img.alicdn.com/tfs/TB1ItgWr_tYBeNjy1XdXXXXyVXa-200-200.png"},{ext:/\.jpe?g$/i,icon:"//img.alicdn.com/tfs/TB1wrT5r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.pdf$/i,icon:"//img.alicdn.com/tfs/TB1GwD8r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.png$/i,icon:"//img.alicdn.com/tfs/TB1BHT5r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.eps$/i,icon:"//img.alicdn.com/tfs/TB1G_iGrVOWBuNjy0FiXXXFxVXa-200-200.png"},{ext:/\.ai$/i,icon:"//img.alicdn.com/tfs/TB1B2cVr_tYBeNjy1XdXXXXyVXa-200-200.png"},{ext:/\.gif$/i,icon:"//img.alicdn.com/tfs/TB1DTiGrVOWBuNjy0FiXXXFxVXa-200-200.png"},{ext:/\.svg$/i,icon:"//img.alicdn.com/tfs/TB1uUm9rY9YBuNjy0FgXXcxcXXa-200-200.png"},{ext:/\.xlsx?$/i,icon:"//img.alicdn.com/tfs/TB1any1r1OSBuNjy0FdXXbDnVXa-200-200.png"},{ext:/\.psd?$/i,icon:"//img.alicdn.com/tfs/TB1_nu1r1OSBuNjy0FdXXbDnVXa-200-200.png"},{ext:/\.(wav|aif|aiff|au|mp1|mp2|mp3|ra|rm|ram|mid|rmi)$/i,icon:"//img.alicdn.com/tfs/TB1jPvwr49YBuNjy0FfXXXIsVXa-200-200.png"},{ext:/\.(avi|wmv|mpg|mpeg|vob|dat|3gp|mp4|mkv|rm|rmvb|mov|flv)$/i,icon:"//img.alicdn.com/tfs/TB1FrT5r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.(zip|rar|arj|z|gz|iso|jar|ace|tar|uue|dmg|pkg|lzh|cab)$/i,icon:"//img.alicdn.com/tfs/TB10jmfr29TBuNjy0FcXXbeiFXa-200-200.png"}],z="//img.alicdn.com/tfs/TB10.R4r3mTBuNjy1XbXXaMrVXa-200-200.png",R=1024*1024*1024,G=function(je){return U()(je.mimetype||je.type,"image/*")},X=function(je){return U()(je.mimetype||je.type,"application/pdf")},ce=function(je){if(!je)return[];if(_typeof(je)!=="object")return[];var Ye=je;if(!Array.isArray(je)){if(Object.keys(_objectSpread({},je)).length===0)return[];Ye=[je]}return Ye.map(function(it){return[it.id||it.uid,ye(it)]})},ne=function(je){if(!je)return[];if(_typeof(je)!=="object")return[];if(Object.keys(je).length===0)return[];var Ye=je;return!Array.isArray(je)&&_typeof(je)==="object"&&(Ye=[je]),Ye.map(function(it){return _objectSpread(_objectSpread({},it),{},{title:it.title||it.name,imageUrl:pe(it.url,{exclude:[".png",".jpg",".jpeg",".gif"]})})})},oe=function(je){return(0,I.isValid)(je)?Object.keys(je).length===0?[]:(0,I.toArr)(je):[]},ie=function(je,Ye){return Ye&&(0,I.isArr)(Ye.include)?Ye.include.some(function(it){return je.test(it)}):Ye&&(0,I.isArr)(Ye.exclude)?!Ye.exclude.some(function(it){return je.test(it)}):!0},pe=function(je){for(var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=0;it<Y.length;it++)if(Y[it].ext.test(je))return ie(Y[it].ext,Ye)?Y[it].icon||z:je;return z},V=function(je){return(je==null?void 0:je.url)||(je==null?void 0:je.downloadURL)||(je==null?void 0:je.imgURL)||(je==null?void 0:je.name)},xe=function(je){return(je==null?void 0:je.thumbUrl)||(je==null?void 0:je.url)||(je==null?void 0:je.downloadURL)||(je==null?void 0:je.imgURL)||(je==null?void 0:je.name)};function de(et){var je,Ye=et.error,it=et.response;if(Ye instanceof Error&&"isAxiosError"in Ye)if(Ye.response){var Lt,dn;return(Lt=Ye.response.data)===null||Lt===void 0||(Lt=Lt.errors)===null||Lt===void 0||(dn=Lt.map)===null||dn===void 0?void 0:dn.call(Lt,function(_n){return _n==null?void 0:_n.message}).join(", ")}else return Ye.message;if(!it)return"";if(typeof it=="string")return it;var Nt=(je=it.data)!==null&&je!==void 0?je:{},In=Nt.errors;return In!=null&&In.length?In.map(function(_n){return _n==null?void 0:_n.message}).join(", "):""}function ae(et){var je=G(et)?URL.createObjectURL(et.originFileObj):pe(et.name),Ye=de(et);return b()(b()({},et),{},{title:et.name,thumbUrl:je,imageUrl:je,response:Ye})}var Pe=function(je){return je&&je.length?je.map(ae):[]};function Se(et){var je=(0,H.LY)();return b()(b()({},et),{},{customRequest:function(it){var Lt=it.action,dn=it.data,Nt=it.file,In=it.filename,_n=it.headers,qn=it.onError,er=it.onProgress,tr=it.onSuccess,Ur=it.withCredentials,Yt=new FormData;return dn&&Object.keys(dn).forEach(function(ar){Yt.append(ar,dn[ar])}),Yt.append(In,Nt),je.axios.post(Lt,Yt,{withCredentials:Ur,headers:_n,onUploadProgress:function(mr){var Vn=mr.total,fn=mr.loaded;er({percent:Math.round(fn/Vn*100).toFixed(2)},Nt)}}).then(function(ar){var mr=ar.data;tr(mr,Nt)}).catch(qn).finally(function(){}),{abort:function(){console.log("upload progress is aborted.")}}}})}function Ae(et){var je;return(je=et.response)===null||je===void 0?void 0:je.data}var ye=function(je){var Ye;return(Ye=je)!==null&&Ye!==void 0&&(Ye=Ye.response)!==null&&Ye!==void 0&&Ye.data&&(je=b()({uid:je.uid},je.response.data)),b()(b()({},je),{},{id:je.id||je.uid,title:je.title||je.name,imageUrl:pe(je.url,{exclude:[".png",".jpg",".jpeg",".gif"]})})},fe=function(je){return oe(je).filter(Boolean).map(ye)},ve=function(je){return oe(je).filter(function(Ye){return!Ye.response||Ye.status==="done"}).map(function(Ye){var it;return(Ye==null||(it=Ye.response)===null||it===void 0?void 0:it.data)||Ye})},te={size:function(je,Ye){var it=Ye!=null?Ye:R;return it===0||je.size<=it?null:"File size exceeds the limit"},mimetype:function(je){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"*",it=Ye.toString().trim();return!it||it==="*"||it.split(",").filter(Boolean).some(U()(je.type))?null:"File type is not allowed"}};function Z(et,je){if(!je)return null;var Ye=Object.keys(je);if(!Ye.length)return null;for(var it=0,Lt=Ye;it<Lt.length;it++){var dn=Lt[it],Nt=te[dn](et,je[dn]);if(Nt)return Nt}return null}function ee(et){var je=(0,D.$)(),Ye=je.t;return(0,a.useCallback)(function(it){var Lt=Z(it,et);return Lt?(it.status="error",it.response=Ye(Lt)):it.status==="error"&&(delete it.status,delete it.response),!Lt},[et])}var he=e(92601),me=e(85893),Ee=["onChange"],Ie=["rules"],Le=["tipContent","onChange"],Ue=["rules"],Be=["title"];function be(et){var je=et.onChange,Ye=r()(et,Ee),it=(0,a.useCallback)(function(Lt){je==null||je(fe(Lt.fileList))},[je]);return(0,me.jsx)(o.Z,b()(b()({},Se(Ye)),{},{onChange:it}))}function _e(et){var je=et.value,Ye=et.onChange,it=et.disabled,Lt=et.multiple,dn=et.size,Nt=(0,he.y)(),In=Nt.wrapSSR,_n=Nt.hashId,qn=Nt.componentCls,er=K.Z.default?K.Z.default:K.Z;return er(qn),In((0,me.jsx)("div",{className:k()("".concat(qn,"-wrapper"),"".concat(qn,"-picture-card-wrapper"),"nb-upload",dn?"nb-upload-".concat(dn):null,_n),children:(0,me.jsx)("div",{className:k()("".concat(qn,"-list"),"".concat(qn,"-list-picture-card")),children:(0,me.jsx)(Ne,{disabled:it,readPretty:!0,multiple:Lt,value:je,onChange:Ye})})}))}var re=(0,n.connect)(be,(0,n.mapProps)({value:"fileList"}),(0,n.mapReadPretty)(_e));re.ReadPretty=_e;function P(et){var je=et!=null?et:R,Ye=(0,D.$)(),it=Ye.t,Lt=Ye.i18n,dn=x()(je,{base:2,standard:"jedec",locale:Lt.language});return je!==0?it("File size should not exceed {{size}}.",{size:dn}):""}function q(et){var je,Ye=et.file,it=et.disabled,Lt=et.onPreview,dn=et.onDelete,Nt=et.readPretty,In=(0,he.y)(),_n=In.componentCls,qn=(0,D.$)(),er=qn.t,tr=(0,a.useCallback)(function(fn){fn.preventDefault(),fn.stopPropagation(),Lt==null||Lt(Ye)},[Ye,Lt]),Ur=(0,a.useCallback)(function(){dn==null||dn(Ye)},[Ye,dn]),Yt=(0,a.useCallback)(function(){(0,A.saveAs)(Ye.url,"".concat(Ye.title).concat(Ye.extname))},[Ye]),ar=[(0,me.jsx)("span",{className:"".concat(_n,"-list-item-thumbnail"),children:Ye.imageUrl&&(0,me.jsx)("img",{src:Ye.imageUrl,alt:Ye.title,className:"".concat(_n,"-list-item-image")})},"thumbnail"),(0,me.jsx)("span",{className:"".concat(_n,"-list-item-name"),title:Ye.title,children:Ye.status==="uploading"?er("Uploading"):Ye.title},"title")],mr=Ye.id?(0,me.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:Ye.url,onClick:tr,children:ar}):(0,me.jsx)("span",{className:"".concat(_n,"-span"),children:ar}),Vn=(0,me.jsxs)("div",{className:k()("".concat(_n,"-list-item"),"".concat(_n,"-list-item-").concat((je=Ye.status)!==null&&je!==void 0?je:"done"),"".concat(_n,"-list-item-list-type-picture-card")),children:[(0,me.jsx)("div",{className:"".concat(_n,"-list-item-info"),children:mr}),(0,me.jsx)("span",{className:"".concat(_n,"-list-item-actions"),children:(0,me.jsxs)(c.Z,{size:3,children:[!Nt&&Ye.id&&(0,me.jsx)(L.ZP,{size:"small",type:"text",icon:(0,me.jsx)(j.Z,{}),onClick:Yt}),!Nt&&!it&&(0,me.jsx)(L.ZP,{size:"small",type:"text",icon:(0,me.jsx)(f.Z,{}),onClick:Ur})]})}),Ye.status==="uploading"&&(0,me.jsx)("div",{className:"".concat(_n,"-list-item-progress"),children:(0,me.jsx)(E.Z,{size:2,type:"line",showInfo:!1,percent:Ye.percent})})]});return(0,me.jsx)("div",{className:"".concat(_n,"-list-picture-card-container ").concat(_n,"-list-item-container"),children:Ye.status==="error"?(0,me.jsx)(y.Z,{title:Ye.response,getPopupContainer:function(Wn){return Wn.parentNode},children:Vn}):Vn})}var Ce=[{matcher:G,Component:function(je){var Ye,it,Lt,dn,Nt=je.index,In=je.list,_n=je.onSwitchIndex,qn=(0,a.useCallback)(function(er){er.preventDefault();var tr=In[Nt];(0,A.saveAs)(tr.url,"".concat(tr.title).concat(tr.extname))},[Nt,In]);return(0,me.jsx)(d.Z,{mainSrc:(Ye=In[Nt])===null||Ye===void 0?void 0:Ye.imageUrl,nextSrc:(it=In[(Nt+1)%In.length])===null||it===void 0?void 0:it.imageUrl,prevSrc:(Lt=In[(Nt+In.length-1)%In.length])===null||Lt===void 0?void 0:Lt.imageUrl,onCloseRequest:function(){return _n(null)},onMovePrevRequest:function(){return _n((Nt+In.length-1)%In.length)},onMoveNextRequest:function(){return _n((Nt+1)%In.length)},imageTitle:(dn=In[Nt])===null||dn===void 0?void 0:dn.title,toolbarButtons:[(0,me.jsx)("button",{style:{fontSize:22,background:"none",lineHeight:1},type:"button","aria-label":"Download",title:"Download",className:"ril-zoom-in ril__toolbarItemChild ril__builtinButton",onClick:qn,children:(0,me.jsx)(j.Z,{})},"preview-img")]})}},{matcher:X,Component:function(je){var Ye=je.index,it=je.list,Lt=je.onSwitchIndex,dn=(0,D.$)(),Nt=dn.t,In=(0,a.useCallback)(function(qn){qn.preventDefault(),qn.stopPropagation();var er=it[Ye];(0,A.saveAs)(er.url,"".concat(er.title).concat(er.extname))},[Ye,it]),_n=(0,a.useCallback)(function(){Lt(null)},[Lt]);return(0,me.jsx)(m.Z,{open:Ye!=null,title:"PDF - "+it[Ye].title,onCancel:_n,footer:[(0,me.jsx)(L.ZP,{style:{textTransform:"capitalize"},onClick:In,children:Nt("Download")},"download"),(0,me.jsx)(L.ZP,{onClick:_n,style:{textTransform:"capitalize"},children:Nt("Close")},"close")],width:"85vw",centered:!0,children:(0,me.jsx)("div",{style:{padding:"8px",maxWidth:"100%",maxHeight:"calc(100vh - 256px)",height:"90vh",width:"100%",background:"white",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"auto"},children:(0,me.jsx)("iframe",{src:it[Ye].url,style:{width:"100%",maxHeight:"90vh",flex:"1 1 auto"}})})})}}];function ue(et){var je,Ye=et.index,it=et.onSwitchIndex,Lt=et.list;if(Ye==null)return null;var dn=Lt[Ye],Nt=(je=Ce.find(function(_n){return _n.matcher(dn)}))!==null&&je!==void 0?je:{},In=Nt.Component;return In?(0,me.jsx)(In,{index:Ye,list:Lt,onSwitchIndex:it}):null}function Ne(et){var je=et.disabled,Ye=et.multiple,it=et.value,Lt=et.onChange,dn=et.readPretty,Nt=(0,a.useState)([]),In=v()(Nt,2),_n=In[0],qn=In[1],er=(0,a.useState)(null),tr=v()(er,2),Ur=tr[0],Yt=tr[1];(0,a.useEffect)(function(){var Vn=fe(it);qn(Vn)},[it]);var ar=(0,a.useCallback)(function(Vn){var fn=_n.findIndex(function(Fn){return Fn.id===Vn.id}),Wn=Ce.find(function(Fn){return Fn.matcher(Vn)});Wn?Yt(fn):Vn.id&&(0,A.saveAs)(Vn.url,"".concat(Vn.title).concat(Vn.extname))},[_n]),mr=(0,a.useCallback)(function(Vn){Lt(Ye?it.filter(function(fn){return fn.id!==Vn.id}):null)},[Ye,Lt,it]);return(0,me.jsxs)(me.Fragment,{children:[_n.map(function(Vn,fn){return(0,me.jsx)(q,{file:Vn,index:fn,disabled:je,onPreview:ar,onDelete:mr,readPretty:dn},Vn.id)}),(0,me.jsx)(ue,{index:Ur,onSwitchIndex:Yt,list:_n})]})}function Ve(et){var je=et.rules,Ye=r()(et,Ie),it=Ye.disabled,Lt=Ye.multiple,dn=Ye.value,Nt=Ye.onChange,In=(0,a.useState)([]),_n=v()(In,2),qn=_n[0],er=_n[1],tr=(0,D.$)(),Ur=tr.t,Yt=(0,he.y)(),ar=Yt.componentCls,mr=(0,n.useField)(),Vn=Se(Ye),fn=ee(je);(0,a.useEffect)(function(){var Jt=qn.find(function(Ut){return Ut.status==="error"});Jt?mr.setFeedback({type:"error",code:"UploadError",messages:[Ur("Incomplete uploading files need to be resolved")]}):mr.setFeedback({})},[mr,qn]);var Wn=(0,a.useCallback)(function(Jt){if(Lt){var Ut=Jt.fileList.filter(function(Xt){return Xt.status==="done"});if(Ut.length){var cn=[].concat(u()(dn!=null?dn:[]),u()(Ut.map(Ae)));Nt==null||Nt(cn)}er(Jt.fileList.filter(function(Xt){return Xt.status!=="done"}).map(ae))}else{var Vt=Jt.fileList.find(function(Xt){return Xt.uid===Jt.file.uid});Vt.status==="done"?(Nt==null||Nt(Ae(Vt)),er([])):er([ae(Vt)])}},[dn,Lt,Nt]),Fn=(0,a.useCallback)(function(Jt){er(function(Ut){var cn=Ut.indexOf(Jt);return Ut.splice(cn,1),u()(Ut)})},[]),$t=je!=null?je:{},gt=$t.mimetype,Pt=$t.size,Zt=P(Pt),wt=!it&&(Lt||(!dn||Array.isArray(dn)&&!dn.length)&&!qn.length);return(0,me.jsxs)(me.Fragment,{children:[qn.map(function(Jt,Ut){return(0,me.jsx)(q,{file:Jt,index:Ut,disabled:it,onDelete:Fn},Jt.uid)}),(0,me.jsx)("div",{className:k()("".concat(ar,"-list-picture-card-container"),"".concat(ar,"-list-item-container")),style:wt?{}:{display:"none"},children:(0,me.jsx)(y.Z,{title:Zt,children:(0,me.jsx)(o.Z,b()(b()({accept:gt},Vn),{},{disabled:it,multiple:Lt,listType:"picture-card",fileList:qn,beforeUpload:fn,onChange:Wn,showUploadList:!1,children:wt?(0,me.jsxs)("span",{children:[(0,me.jsx)(F.Z,{}),(0,me.jsx)("br",{})," ",Ur("Upload")]}):null}))})})]})}function Qe(et){var je=(0,he.y)(),Ye=je.wrapSSR,it=je.hashId,Lt=je.componentCls;return Ye((0,me.jsx)("div",{className:k()("".concat(Lt,"-wrapper"),"".concat(Lt,"-picture-card-wrapper"),"nb-upload",it),children:(0,me.jsxs)("div",{className:k()("".concat(Lt,"-list"),"".concat(Lt,"-list-picture-card")),children:[(0,me.jsx)(Ne,b()({},et)),(0,me.jsx)(Ve,b()({},et))]})}))}Qe.ReadPretty=_e,re.Attachment=(0,i.t)((0,n.connect)(Qe,(0,n.mapReadPretty)(Qe.ReadPretty)),{displayName:"Upload.Attachment"}),re.Dragger=(0,n.connect)(function(et){var je=et.tipContent,Ye=et.onChange,it=r()(et,Le),Lt=(0,he.y)(),dn=Lt.wrapSSR,Nt=Lt.hashId,In=Lt.componentCls,_n=(0,a.useCallback)(function(qn){Ye==null||Ye(fe(qn.fileList))},[Ye]);return dn((0,me.jsx)("div",{className:k()("".concat(In,"-dragger"),Nt),children:(0,me.jsxs)(o.Z.Dragger,b()(b()({},Se(it)),{},{onChange:_n,children:[je,et.children]}))}))},(0,n.mapProps)({value:"fileList"})),re.DraggerV2=(0,i.t)((0,n.connect)(function(et){var je=et.rules,Ye=r()(et,Ue),it=(0,D.$)(),Lt=it.t,dn=Lt("Click or drag file to this area to upload"),Nt=(0,l.w)(Ye),In=Nt.title,_n=In===void 0?dn:In,qn=r()(Nt,Be),er=(0,a.useState)(!1),tr=v()(er,2),Ur=tr[0],Yt=tr[1],ar=(0,he.y)(),mr=ar.wrapSSR,Vn=ar.hashId,fn=ar.componentCls,Wn=ee(je),Fn=je!=null?je:{},$t=Fn.size,gt=Fn.mimetype,Pt=P($t),Zt=(0,a.useCallback)(function(wt){var Jt=wt.fileList,Ut=qn.onChange;Ut==null||Ut(Jt),Jt.some(function(cn){return cn.status==="uploading"})?Yt(!0):Yt(!1)},[qn]);return mr((0,me.jsx)("div",{className:k()("".concat(fn,"-dragger"),Vn),children:(0,me.jsxs)(o.Z.Dragger,b()(b()({},Se(b()(b()(b()({},Ye),qn),{},{accept:gt,onChange:Zt,beforeUpload:Wn}))),{},{children:[(0,me.jsx)("p",{className:"".concat(fn,"-drag-icon"),children:Ur?(0,me.jsx)(C.Z,{style:{fontSize:36},spin:!0}):(0,me.jsx)(O.Z,{})}),(0,me.jsx)("p",{className:"".concat(fn,"-text"),children:_n}),(0,me.jsxs)("ul",{children:[(0,me.jsx)("li",{className:"".concat(fn,"-hint"),children:Lt("Support for a single or bulk upload.")}),(0,me.jsx)("li",{className:"".concat(fn,"-hint"),children:Pt})]})]}))}))},(0,n.mapProps)({value:"fileList"})),{displayName:"Upload.DraggerV2"});var Re=null},78472:function(He,le,e){"use strict";e.d(le,{Qm:function(){return W.Qm},fU:function(){return W.fU},gq:function(){return W.gq}});var W=e(9829)},92601:function(He,le,e){"use strict";e.d(le,{y:function(){return v}});var W=e(9783),u=e.n(W),N=e(60094),v=(0,N.l6)("upload",function(M){var b,$,r,j=M.componentCls,f=M.antCls;return u()({},"".concat(j,"-wrapper"),(r={"&.nb-upload.nb-upload-small":(b={},u()(b,"".concat(j,"-list-picture-card-container"),{margin:"0 3px 3px 0 !important",height:"32px !important",width:"32px !important",marginBlock:"0 !important"}),u()(b,"".concat(j,"-list-picture-card ").concat(j,"-list-item-name").concat(j,"-list-item-name"),{display:"none !important"}),u()(b,"".concat(j,"-list-picture ").concat(j,"-list-item, ").concat(j,"-list-picture-card ").concat(j,"-list-item"),u()({borderRadius:"4px",padding:"1px !important"},"".concat(j,"-list-item-image"),{borderRadius:"2px"})),b),"&.nb-upload-large":u()({},"".concat(j,"-list-picture-card-container"),{margin:"0 3px 3px 0 !important",height:"160px !important",width:"160px !important",marginBlock:"0 28px !important"}),"&.nb-upload":($={},u()($,"".concat(j,"-list-item, ").concat(j,"-list-item-list-type-picture-card"),{padding:"3px !important"}),u()($,"".concat(j,"-list-item-thumbnail"),{img:{objectFit:"cover !important"}}),u()($,"".concat(j,"-list-item-actions"),u()({left:"auto !important",right:"2px !important",top:"2px !important",transform:"none !important",width:"fit-content !important"},"".concat(f,"-btn-text:hover, ").concat(f,"-btn-text:focus"),{background:"rgba(0, 0, 0, 0.4)"})),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item-info"),{overflow:"inherit",width:"100%",height:"100%"}),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item-name"),{display:"block !important",marginTop:"10px",fontSize:"13px",color:"#636363"}),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item::before"),{display:"none !important"}),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item-progress"),{bottom:"calc(50% - 11px)",pointerEvents:"none"}),u()($,"".concat(f,"-btn"),{background:"rgba(0, 0, 0, 0.5)"}),u()($,"".concat(j,"-list-picture-card-container"),{marginBlock:"0 28px !important"}),$)},u()(r,"".concat(j,"-list-item-error"),u()({},"".concat(j,"-list-item-info img"),{opacity:.6})),u()(r,"".concat(j,"-drag"),u()({},"".concat(j,"-drag-container"),{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",ul:u()({color:M.colorTextSecondary},"".concat(j,"-hint"),{textAlign:"left"})})),r))})},72724:function(He,le,e){"use strict";e.d(le,{L:function(){return O}});var W=e(97857),u=e.n(W),N=e(5574),v=e.n(N),M=e(94697),b=e(94350),$=e(67294),r=e(26793),j=e(21143),f=e(84577),F=e(85893),C=function(o){var c=(0,f.ng)(),L=c.refresh,E=(0,j.useAPIClient)(),y=(0,r.$)(),m=y.t;return(0,$.useCallback)(function(K){var T,k,A,S,x,a,D,d,p=K.active,i=K.over,l=p==null||(T=p.data)===null||T===void 0||(T=T.current)===null||T===void 0?void 0:T.schema,h=i==null||(k=i.data)===null||k===void 0||(k=k.current)===null||k===void 0?void 0:k.schema,I=i==null||(A=i.data)===null||A===void 0||(A=A.current)===null||A===void 0?void 0:A.insertAdjacent,t=i==null||(S=i.data)===null||S===void 0||(S=S.current)===null||S===void 0?void 0:S.breakRemoveOn,U=i==null||(x=i.data)===null||x===void 0||(x=x.current)===null||x===void 0?void 0:x.wrapSchema,H=i==null||(a=i.data)===null||a===void 0||(a=a.current)===null||a===void 0?void 0:a.onSuccess,Y=(D=i==null||(d=i.data)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.removeParentsIfNoChildren)!==null&&D!==void 0?D:!0;if(!l||!h){o==null||o(K);return}if(l===h){o==null||o(K);return}if(l.parent===h&&I==="beforeEnd"){o==null||o(K);return}var z=(0,f.Pl)({t:m,api:E,refresh:L,current:h});if(z.loadAPIClientEvents(),l.parent===h.parent){z.insertBeforeBeginOrAfterEnd(l),o==null||o(K);return}if(I){z.insertAdjacent(I,l,{wrap:U,breakRemoveOn:t,removeParentsIfNoChildren:Y,onSuccess:H}),o==null||o(K);return}},[o])},O=(0,b.observer)(function(n){var o=(0,r.$)(),c=o.t,L=(0,$.useState)(!0),E=v()(L,2),y=E[0],m=E[1],K=(0,$.useCallback)(function(k){var A,S=k.active,x=S==null||(A=S.data)===null||A===void 0||(A=A.current)===null||A===void 0?void 0:A.schema;if(m(!!x),n!=null&&n.onDragStart){var a;n==null||(a=n.onDragStart)===null||a===void 0||a.call(n,k)}},[n==null?void 0:n.onDragStart]),T=C(n==null?void 0:n.onDragEnd);return(0,F.jsxs)(M.DndContext,u()(u()({collisionDetection:M.rectIntersection},n),{},{onDragStart:K,onDragEnd:T,children:[(0,F.jsx)(M.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:y&&(0,F.jsx)("span",{style:{whiteSpace:"nowrap"},children:c("Dragging")})}),n.children]}))},{displayName:"DndContext"})},14896:function(He,le,e){"use strict";e.r(le),e.d(le,{DndContext:function(){return W.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return b},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR}});var W=e(72724),u=e(20493),N=e(67294),v=e(94350),M=e(85893),b=(0,v.observer)(function($){var r=$.children,j=(0,v.useForm)();return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(j.values,null,2)}),r]})})},20493:function(He,le,e){"use strict";e.d(le,{IW:function(){return K},LC:function(){return n},bt:function(){return L},Fo:function(){return o},TR:function(){return m},OR:function(){return c}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=e(10274),b=e(94697),$=e(97133),r=e(94350),j=e(67294),f=e(60094),F=e(85893),C=["component","overStyle","style","children","openMode"],O=["schema","id","eid","removeParentsIfNoChildren"],n=(0,j.createContext)(null);n.displayName="DraggableContext";var o=(0,j.createContext)(null);o.displayName="SortableContext";var c=function(k){var A=k.id,S=k.data,x=k.children,a=(0,b.useDraggable)({id:A,data:S}),D=(0,b.useDroppable)({id:A,data:S});return(0,F.jsx)(o.Provider,{value:{draggable:a,droppable:D},children:x})},L=function(k){var A,S,x=k.component,a=k.overStyle,D=k.style,d=k.children,p=k.openMode,i=v()(k,C),l=(0,f.dQ)(),h=l.token,I=(0,j.useContext)(o),t=I.draggable,U=I.droppable,H=U.isOver,Y=U.setNodeRef,z=u()({},D);return H&&(t==null||(A=t.active)===null||A===void 0?void 0:A.id)!==(U==null||(S=U.over)===null||S===void 0?void 0:S.id)&&(z[x==="a"?"color":"background"]=new M.C(h.colorSettings).setAlpha(.15).toHex8String(),Object.assign(z,a)),j.createElement(x||"div",u()(u()({role:"none"},i),{},{className:(0,$.cx)("nb-sortable-designer",k.className),ref:Y,style:z}),d)},E=function(k){var A=y(k),S=(0,r.useFieldSchema)();return k.schema?u()(u()({},k),{},{id:A}):u()(u()({},k),{},{id:A,schema:S})},y=function(k){var A=(0,r.useField)();return k.id?k.id:A.address.toString()},m=(0,r.observer)(function(T){var k=E(T),A=k.schema,S=k.id,x=k.eid,a=k.removeParentsIfNoChildren,D=v()(k,O),d=(0,j.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:A,removeParentsIfNoChildren:a!=null?a:!0}},[A,a]);return(0,F.jsx)(c,{id:S,data:d,children:(0,F.jsx)(L,u()(u()({id:x},D),{},{children:T.children}))})},{displayName:"SortableItem"}),K=function(k){var A=(0,j.useContext)(o),S=A.draggable,x=S.attributes,a=S.listeners,D=S.setNodeRef;return(0,F.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,F.jsx)("div",u()(u()(u()({ref:D,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},a),x),{},{role:"none",children:(0,F.jsx)("span",{style:{cursor:"move",fontSize:14},children:k.children})}))})}},34588:function(He,le,e){"use strict";e.d(le,{jC:function(){return T},od:function(){return y},Rq:function(){return m},e7:function(){return E}});var W=e(15009),u=e.n(W),N=e(9783),v=e.n(N),M=e(5574),b=e.n(M),$=e(99289),r=e.n($),j=e(52677),f=e.n(j),F=e(96486),C=e.n(F),O=e(76690),n=e(65565),o=e(27484),c=e.n(o);function L(){"use strict";Array.isArray||(Array.isArray=function(D){return Object.prototype.toString.call(D)==="[object Array]"});function A(D){for(var d=[],p=0,i=D.length;p<i;p++)d.indexOf(D[p])===-1&&d.push(D[p]);return d}function S(D,d){return JSON.stringify(D)===JSON.stringify(d)}var x={},a={$is:function(d,p){return d===p},$match:function(d,p){return Array.isArray(d)&&Array.isArray(p)&&d.some(function(i){return Array.isArray(i)})?d.some(function(i){return(i==null?void 0:i.length)===p.length&&(i==null?void 0:i.every(function(l,h){return l===p[h]}))}):JSON.stringify(d)===JSON.stringify(p)},$eq:function(d,p){return Array.isArray(d)&&Array.isArray(p)?S(d,p):Array.isArray(d)?d.includes(p):d===p},$ne:function(d,p){return d!=p},"!==":function(d,p){return d!==p},$gt:function(d,p){return Array.isArray(d)?d.some(function(i){return i>p}):d>p},$gte:function(d,p){return d>=p},$lt:function(d,p,i){return Array.isArray(d)?d.some(function(l){return l<p}):i===void 0?d<p:d<p&&p<i},$lte:function(d,p,i){return i===void 0?d<=p:d<=p&&p<=i},$exists:function(d){return x.truthy(d)},$notEmpty:function(d){return x.truthy(d)},$empty:function(d){return Array.isArray(d)?d.some(function(p){return!x.truthy(p)}):!x.truthy(d)},$notExists:function(d){return!x.truthy(d)},"%":function(d,p){return d%p},log:function(d){return console.log(d),d},$in:function(d,p){return!p||typeof p.indexOf=="undefined"?!1:Array.isArray(d)&&Array.isArray(p)?p.some(function(i){return d.includes(i)}):p.indexOf(d)!==-1},$notIn:function(d,p){return!p||typeof p.indexOf=="undefined"?!1:p.indexOf(d)===-1},$includes:function(d,p){return!d||typeof d.indexOf=="undefined"?!1:Array.isArray(d)?d.some(function(i){return i==null?void 0:i.includes(p)}):d.indexOf(p)!==-1},$notIncludes:function(d,p){return!d||typeof d.indexOf=="undefined"?!1:Array.isArray(d)?!d.some(function(i){return i.includes(p)}):d.indexOf(p)===-1},$anyOf:function(d,p){return d.length===0?!1:Array.isArray(d)&&Array.isArray(p)&&d.some(function(i){return Array.isArray(i)})?d.some(function(i){return i.some(function(l){return p.includes(l)})}):d.some(function(i){return p.includes(i)})},$noneOf:function(d,p){return d.length===0?!0:Array.isArray(d)&&Array.isArray(p)&&d.some(function(i){return Array.isArray(i)})?d.some(function(i){return i.every(function(l){return!p.some(function(h){return l.includes(h)})})}):p.some(function(i){return!d.includes(i)})},$notMatch:function(d,p){if(d.length!==p.length)return!0;for(var i=0;i<d.length;i++)if(d[i]!==p[i])return!0;return!1},$dateOn:function(d,p){return!d||!p?!1:(Array.isArray(d)||(d=[d,d]),Array.isArray(p)||(p=[p,p]),d=d.map(function(i){return c()(i)}),p=p.map(function(i){return c()(i)}),d[0].isBetween(p[0],p[1],null,"[]")&&d[1].isBetween(p[0],p[1],null,"[]"))},$dateBefore:function(d,p){return!d||!p?!1:(Array.isArray(d)||(d=[d,d]),Array.isArray(p)||(p=[p,p]),d=d.map(function(i){return c()(i)}),p=p.map(function(i){return c()(i)}),d[0].isBefore(p[0])&&d[1].isBefore(p[0]))},$dateNotBefore:function(d,p){return!a.$dateBefore(d,p)},$dateAfter:function(d,p){return!d||!p?!1:(Array.isArray(d)||(d=[d,d]),Array.isArray(p)||(p=[p,p]),d=d.map(function(i){return c()(i)}),p=p.map(function(i){return c()(i)}),d[0].isAfter(p[1])&&d[1].isAfter(p[1]))},$dateNotAfter:function(d,p){return!a.$dateAfter(d,p)},$dateBetween:function(d,p){return a.$dateOn(d,p)},$dateNotOn:function(d,p){return!a.$dateOn(d,p)},$isTruly:function(d){return Array.isArray(d)?d.some(function(p){return p===!0||p===1}):d===!0||d===1},$isFalsy:function(d){return Array.isArray(d)?d.some(function(p){return!x.truthy(p)}):!x.truthy(d)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(d,p,i){if(i<0){var l=String(d).substr(p);return l.substr(0,l.length+i)}return String(d).substr(p,i)},"+":function(){return Array.prototype.reduce.call(arguments,function(d,p){return parseFloat(d,10)+parseFloat(p,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(d,p){return parseFloat(d,10)*parseFloat(p,10)})},"-":function(d,p){return p===void 0?-d:d-p},"/":function(d,p){return d/p},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(d,p){return d.concat(p)},[])},var:function(d,p){var i=p===void 0?null:p,l=this;if(typeof d=="undefined"||d===""||d===null)return l;for(var h=String(d).split("."),I=0;I<h.length;I++)if(l==null||(l=l[h[I]],l===void 0))return i;return l},missing:function(){for(var d=[],p=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<p.length;i++){var l=p[i],h=x.apply({var:l},this);(h===null||h==="")&&d.push(l)}return d},missing_some:function(d,p){var i=x.apply({missing:p},this);return p.length-i.length>=d?[]:i}};return x.is_logic=function(D){return f()(D)==="object"&&D!==null&&!Array.isArray(D)&&Object.keys(D).length===1},x.truthy=function(D){return Array.isArray(D)&&D.length===0?!1:!!D},x.get_operator=function(D){return Object.keys(D)[0]},x.get_values=function(D){return D[x.get_operator(D)]},x.apply=function(D,d){if(Array.isArray(D))return D.map(function(z){return x.apply(z,d)});if(!x.is_logic(D))return D;var p=x.get_operator(D),i=D[p],l,h,I,t,U;if(Array.isArray(i)||(i=[i]),p==="if"||p=="?:"){for(l=0;l<i.length-1;l+=2)if(x.truthy(x.apply(i[l],d)))return x.apply(i[l+1],d);return i.length===l+1?x.apply(i[l],d):null}else if(p==="$and"){for(l=0;l<i.length;l+=1)if(h=x.apply(i[l],d),!x.truthy(h))return h;return h}else if(p==="or"){for(l=0;l<i.length;l+=1)if(h=x.apply(i[l],d),x.truthy(h))return h;return h}else{if(p==="filter")return t=x.apply(i[0],d),I=i[1],Array.isArray(t)?t.filter(function(z){return x.truthy(x.apply(I,z))}):[];if(p==="map")return t=x.apply(i[0],d),I=i[1],Array.isArray(t)?t.map(function(z){return x.apply(I,z)}):[];if(p==="reduce")return t=x.apply(i[0],d),I=i[1],U=typeof i[2]!="undefined"?i[2]:null,Array.isArray(t)?t.reduce(function(z,R){return x.apply(I,{current:R,accumulator:z})},U):U;if(p==="all"){if(t=x.apply(i[0],d),I=i[1],!Array.isArray(t)||!t.length)return!1;for(l=0;l<t.length;l+=1)if(!x.truthy(x.apply(I,t[l])))return!1;return!0}else if(p==="none"){if(t=x.apply(i[0],d),I=i[1],!Array.isArray(t)||!t.length)return!0;for(l=0;l<t.length;l+=1)if(x.truthy(x.apply(I,t[l])))return!1;return!0}else if(p==="some"){if(t=x.apply(i[0],d),I=i[1],!Array.isArray(t)||!t.length)return!1;for(l=0;l<t.length;l+=1)if(x.truthy(x.apply(I,t[l])))return!0;return!1}}if(i=i.map(function(z){return x.apply(z,d)}),a.hasOwnProperty(p)&&typeof a[p]=="function")return a[p].apply(d,i);if(p.indexOf(".")>0){var H=String(p).split("."),Y=a;for(l=0;l<H.length;l++){if(!Y.hasOwnProperty(H[l]))throw new Error("Unrecognized operation "+p+" (failed at "+H.slice(0,l+1).join(".")+")");Y=Y[H[l]]}return Y.apply(d,i)}throw new Error("Unrecognized operation "+p)},x.uses_data=function(D){var d=[];if(x.is_logic(D)){var p=x.get_operator(D),i=D[p];Array.isArray(i)||(i=[i]),p==="var"?d.push(i[0]):i.forEach(function(l){d.push.apply(d,x.uses_data(l))})}return A(d)},x.add_operation=function(D,d){a[D]=d},x.rm_operation=function(D){delete a[D]},x.rule_like=function(D,d){if(d===D||d==="@")return!0;if(d==="number")return typeof D=="number";if(d==="string")return typeof D=="string";if(d==="array")return Array.isArray(D)&&!x.is_logic(D);if(x.is_logic(d)){if(x.is_logic(D)){var p=x.get_operator(d),i=x.get_operator(D);if(p==="@"||p===i)return x.rule_like(x.get_values(D,!1),x.get_values(d,!1))}return!1}if(Array.isArray(d))if(Array.isArray(D)){if(d.length!==D.length)return!1;for(var l=0;l<d.length;l+=1)if(!x.rule_like(D[l],d[l]))return!1;return!0}else return!1;return!1},x}var E=function(S,x){var a,D=/{{(.*?)}}/,d=S==null||(a=S.match)===null||a===void 0?void 0:a.call(S,D);if(d){var p=C().get(x,d[1]);return C().isFunction(p)?p():p}else return S};function y(A){if(f()(A)!=="object"||A===null)return null;for(var S in A)if(Object.prototype.hasOwnProperty.call(A,S))return Object.prototype.toString.call(A[S])==="[object Object]"&&A[S]!==null?y(A[S]):{key:S,value:A[S]};return null}var m=function(S){var x=K(S),a=(0,F.findIndex)(x,function(d,p,i){if(d.includes("$")&&p>0)return!0}),D=x.slice(0,a);return D};function K(A){var S=[];function x(a){Object.keys(a).sort().forEach(function(D){S.push(D),a[D]&&f()(a[D])==="object"&&x(a[D])})}return x(A),S}var T=function(){var A=r()(u()().mark(function S(x){var a,D,d,p,i,l;return u()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return a=x.ruleGroup,D=x.variables,d=x.localVariables,p=Object.keys(a)[0]||"$and",i=a[p],l=i.map(function(){var t=r()(u()().mark(function U(H){var Y,z,R,G,X,ce,ne,oe,ie,pe,V;return u()().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(!("$and"in H||"$or"in H)){de.next=4;break}return de.next=3,T({ruleGroup:H,variables:D,localVariables:d});case 3:return de.abrupt("return",de.sent);case 4:if(Y=y(H),z=Y==null?void 0:Y.key,z){de.next=8;break}return de.abrupt("return",!0);case 8:return R=k(m(H)),G=D.parseVariable(R,d),X=(0,O.cG)(Y==null?void 0:Y.value)?[D.parseVariable(Y==null?void 0:Y.value,d),G]:[Y==null?void 0:Y.value,G],de.prev=11,ce=L(),de.next=15,Promise.all(X);case 15:return ne=de.sent,oe=b()(ne,2),ie=oe[0],pe=oe[1],de.next=21,D.getCollectionField(R,d);case 21:return V=de.sent,de.abrupt("return",ce.apply(v()({},z,[(0,n.J)(pe,{targetCollectionField:V}),(0,n.J)(ie,{targetCollectionField:V})])));case 25:throw de.prev=25,de.t0=de.catch(11),de.t0;case 28:case"end":return de.stop()}},U,null,[[11,25]])}));return function(U){return t.apply(this,arguments)}}()),I.next=6,Promise.all(l);case 6:if(l=I.sent,p!=="$and"){I.next=11;break}return I.abrupt("return",(0,F.every)(l,function(t){return t}));case 11:return I.abrupt("return",(0,F.some)(l,function(t){return t}));case 12:case"end":return I.stop()}},S)}));return function(x){return A.apply(this,arguments)}}();function k(A){return"{{ $nForm.".concat(A.join(".")," }}")}},61736:function(He,le,e){"use strict";e.d(le,{D:function(){return u}});var W=e(67294),u=(0,W.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(He,le,e){"use strict";e.d(le,{R:function(){return n}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=e(86201),b=e(94350),$=e(67294),r=e(47844),j=e(85893),f=["children","form"],F=["children"],C=function(c){var L=c.children,E=c.form,y=v()(c,f),m=(0,$.useContext)(b.SchemaOptionsContext),K=(0,$.useContext)(b.SchemaExpressionScopeContext),T=u()(u()({},m==null?void 0:m.scope),K),k=u()({},m==null?void 0:m.components);return(0,j.jsx)(b.FormProvider,u()(u()({},y),{},{form:E,children:(0,j.jsx)(r.G,{components:k,scope:T,children:L})}))},O=function(c){var L=c.children,E=v()(c,F),y=(0,$.useContext)(b.SchemaOptionsContext),m=(0,$.useContext)(b.SchemaExpressionScopeContext),K=u()(u()({},y==null?void 0:y.scope),m),T=u()({},y==null?void 0:y.components),k=(0,$.useMemo)(function(){return(0,M.createForm)()},[]);return(0,j.jsx)(b.FormProvider,u()(u()({},E),{},{form:k,children:(0,j.jsx)(r.G,{components:T,scope:K,children:L})}))},n=function(c){return c.form?(0,j.jsx)(C,u()({},c)):(0,j.jsx)(O,u()({},c))}},59480:function(He,le,e){"use strict";e.d(le,{m:function(){return O}});var W=e(97857),u=e.n(W),N=e(86201),v=e(57953),M=e(67294),b=e(12174),$=e(84577),r=e(44245),j=e(93323),f=e(85893),F=function(o){return o},C=function(o){var c=o.noForm,L=o.onlyRenderProperties,E=o.hidden,y=o.scope,m=o.uid,K=o.components,T=o.onSuccess,k=o.schemaTransform,A=k===void 0?F:k,S=(0,$.Dm)(),x=S.reset,a={url:"/uiSchemas:".concat(L?"getProperties":"getJsonSchema","/").concat(m)},D=(0,M.useMemo)(function(){return(0,N.createForm)()},[m]),d=(0,b.QT)(a,{refreshDeps:[m],onSuccess:function(h){T&&T(h),x&&x()}}),p=d.data,i=d.loading;return i?(0,f.jsx)(v.Z,{}):E?(0,f.jsx)(v.Z,{}):c?(0,f.jsx)(j.n,{memoized:!0,components:K,scope:y,schema:A((p==null?void 0:p.data)||{})}):(0,f.jsx)(r.R,{form:D,children:(0,f.jsx)(j.n,{memoized:!0,components:K,scope:y,schema:A((p==null?void 0:p.data)||{})})})},O=function(o){return o.uid?(0,f.jsx)(C,u()({},o)):null}},93323:function(He,le,e){"use strict";e.d(le,{n:function(){return m}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=e(9783),b=e.n(M),$=e(94350),r=e(67294),j=e(61736),f=e(47844),F=e(90105),C=e(85893),O=["components","scope","schema","distributed"],n=["schema"],o=["memoized"];function c(K){return $.Schema.isSchemaInstance(K)?K:K!=null&&K.name?new $.Schema({type:"object",properties:b()({},K.name,K)}):new $.Schema(K)}var L=function(T){return(0,r.useMemo)(function(){return c(T)},[])},E=function(T){var k=T.components,A=T.scope,S=T.schema,x=T.distributed,a=v()(T,O),D=(0,r.useContext)(j.D),d=(0,r.useMemo)(function(){return c(S)},[S]),p=(0,F.Z)();return(0,C.jsx)(j.D.Provider,{value:u()(u()({},D),{},{distributed:D.distributed==!1?!1:x,refresh:function(){var l;if(p(),D.distributed===!1||x===!1){var h;(h=D.refresh)===null||h===void 0||h.call(D)}(l=T.onChange)===null||l===void 0||l.call(T,d)}}),children:(0,C.jsx)(f.G,{inherit:!0,components:k,scope:A,children:(0,C.jsx)($.RecursionField,u()(u()({},a),{},{schema:d}))})})},y=function(T){var k=T.schema,A=v()(T,n),S=L(k);return(0,C.jsx)(E,u()(u()({},A),{},{schema:S}))},m=function(T){var k=T.memoized,A=v()(T,o);return k?(0,C.jsx)(y,u()({},A)):(0,C.jsx)(E,u()({},A))}},47844:function(He,le,e){"use strict";e.d(le,{B:function(){return b},G:function(){return $}});var W=e(97857),u=e.n(W),N=e(94350),v=e(67294),M=e(85893),b=function(){var j=(0,v.useContext)(N.SchemaOptionsContext);return j||{}},$=(0,v.memo)(function(r){var j=r.children,f=b(),F=(0,v.useMemo)(function(){return u()(u()({},f.components),r.components)},[f.components,r.components]),C=(0,v.useMemo)(function(){return u()(u()({},f.scope),r.scope)},[f.scope,r.scope]),O=(0,v.useMemo)(function(){return{scope:C,components:F}},[C,F]);return(0,M.jsx)(N.SchemaOptionsContext.Provider,{value:O,children:(0,M.jsx)(N.SchemaComponentsContext.Provider,{value:F,children:(0,M.jsx)(N.ExpressionScope,{value:C,children:j})})})});$.displayName="SchemaComponentOptions"},70993:function(He,le,e){"use strict";e.d(le,{_b:function(){return T},RV:function(){return k.R},m1:function(){return A.m},n6:function(){return S.n},G0:function(){return x.G},a$:function(){return G},Tz:function(){return z},Bs:function(){return x.B}});var W=e(15009),u=e.n(W),N=e(99289),v=e.n(N),M=e(12444),b=e.n(M),$=e(72004),r=e.n($),j=e(31996),f=e.n(j),F=e(26037),C=e.n(F),O=e(51947),n=e(83062),o=e(15867),c=e(67294),L=e(49218),E=e(26793),y=e(41278),m=e(68230),K=e(85893),T=function(){var ne=(0,y.ngQ)(),oe=ne.designable,ie=ne.setDesignable,pe=(0,E.$)(),V=pe.t,xe=(0,m.d)(),de=xe.token,ae={};return oe&&(ae.backgroundColor="var(--colorSettings)"),(0,L.y1)("Ctrl+Shift+U",function(){return ie(!oe)},[oe]),(0,K.jsx)(n.Z,{title:V("UI Editor"),children:(0,K.jsx)(o.ZP,{"data-testid":"ui-editor-button",icon:(0,K.jsx)(O.Z,{style:{color:de.colorTextHeaderMenu}}),title:V("UI Editor"),style:ae,onClick:function(){ie(!oe)}})})},k=e(44245),A=e(59480),S=e(93323),x=e(47844),a=e(97857),D=e.n(a),d=e(5574),p=e.n(d),i=e(86201),l=e(94350),h=e(63198),I=e(90105),t=e(61736),U=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(ne).concat((0,h.uid)())};l.Schema.silent(!0);var H={},Y={silent:!0,compile:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=function(){if(Y.silent)try{return new Function("$root","with($root) { return (".concat(ne,"); }"))(oe)}catch(V){return"{{".concat(ne,"}}")}else return new Function("$root","with($root) { return (".concat(ne,"); }"))(oe)};return H[ne]?H[ne]:ne.trim().startsWith("t(")?(H[ne]=ie(),H[ne]):ie()}};l.Schema.registerCompiler(Y.compile);var z=function(ne){var oe=ne.designable,ie=ne.onDesignableChange,pe=ne.components,V=ne.children,xe=(0,c.useContext)(t.D),de=(0,x.B)(),ae=(0,I.Z)(),Pe=(0,c.useState)((0,h.uid)()),Se=p()(Pe,2),Ae=Se[0],ye=Se[1],fe=(0,c.useMemo)(function(){return ne.form||(0,i.createForm)()},[Ae]),ve=(0,E.$)(),te=ve.t,Z=(0,c.useMemo)(function(){return D()(D()({},ne.scope),{},{t:te,randomString:U})},[ne.scope,te,de==null?void 0:de.scope]),ee=(0,c.useState)(oe),he=p()(ee,2),me=he[0],Ee=he[1],Ie=(0,c.useMemo)(function(){return typeof oe=="boolean"?oe:me},[oe,me,xe.designable]),Le=(0,c.useMemo)(function(){return function(Be){typeof Ie!="boolean"&&Ee(Be),ie==null||ie(Be)}},[Ie,ie]),Ue=(0,c.useCallback)(function(){ye((0,h.uid)())},[]);return(0,K.jsx)(t.D.Provider,{value:{scope:Z,components:pe,reset:Ue,refresh:ae,designable:Ie,setDesignable:Le},children:(0,K.jsx)(l.FormProvider,{form:fe,children:(0,K.jsx)(x.G,{inherit:!0,scope:Z,components:pe,children:V})})})};z.displayName="SchemaComponentProvider";var R=e(31601),G=function(ce){f()(oe,ce);var ne=C()(oe);function oe(){return b()(this,oe),ne.apply(this,arguments)}return r()(oe,[{key:"load",value:function(){var ie=v()(u()().mark(function V(){return u()().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:this.addComponents();case 1:case"end":return de.stop()}},V,this)}));function pe(){return ie.apply(this,arguments)}return pe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:T})}}]),oe}(R.S),X=null},84577:function(He,le,e){"use strict";e.d(le,{zz:function(){return $.zz},Pl:function(){return $.Pl},oB:function(){return $.oB},lI:function(){return u},hi:function(){return y.hi},eJ:function(){return N.e},Co:function(){return b},aZ:function(){return y.aZ},ng:function(){return $.ng},et:function(){return r.e},cL:function(){return c},fd:function(){return m},Cl:function(){return F},vH:function(){return L},sR:function(){return $.sR},wN:function(){return E.w},Dm:function(){return O},fM:function(){return y.fM}});var W=e(67294),u=function(T){var k=(0,W.useRef)(null);return(0,W.useEffect)(function(){return k.current&&T!==k.current&&k.current.onUnmount(),k.current=T,T.onMount(),function(){T.onUnmount()}},[T]),T},N=e(96365),v=e(94350),M=e(96486),b=function(T,k){var A=(0,W.useContext)(v.SchemaOptionsContext),S=A.components;return T?typeof T!="string"?T:(0,M.get)(S,T)||k:k},$=e(94516),r=e(98146),j=e(97857),f=e.n(j),F=function(T){var k=(0,W.useContext)(v.SchemaOptionsContext),A=(0,W.useContext)(v.SchemaExpressionScopeContext),S=(0,W.useRef)();return S.current=A,T.toFieldProps(f()(f()({},k),{},{get scope(){return f()(f()({},k.scope),S.current)}}))},C=e(61736);function O(){return(0,W.useContext)(C.D)}var n=e(26793),o=e(6145),c=function(){var T,k=(0,o.useCollectionManager_deprecated)(),A=k.getCollectionJoinField,S=k.getCollection,x=(0,v.useFieldSchema)(),a=(0,o.useCollection_deprecated)(),D=a.getField,d=D(x.name)||A(x["x-collection-field"]),p=(0,n.$)(),i=p.t,l=((T=x["x-component-props"])===null||T===void 0?void 0:T.fieldNames)||{},h=l.label,I=(0,W.useMemo)(function(){if(!(!d||!(d!=null&&d.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(d.interface)){var t=S(d.target);if((t==null?void 0:t.template)==="file")return[{label:i("Record picker"),value:"CollectionField"},{label:i("Select"),value:"AssociationSelect"}];switch(d.interface){case"o2m":return[{label:i("Record picker"),value:"CollectionField"},{label:i("Subtable"),value:"TableField"},{label:i("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:i("Record picker"),value:"CollectionField"},{label:i("Select"),value:"AssociationSelect"}];default:return[{label:i("Record picker"),value:"CollectionField"},{label:i("Subform"),value:"FormField"},{label:i("Select"),value:"AssociationSelect"}]}}},[i,d==null?void 0:d.interface,h]);return I},L=function(){var T,k=(0,v.useField)(),A=(0,v.useFieldSchema)(),S=(0,o.useCollection_deprecated)(),x=S.getField,a=(0,o.useCollectionManager_deprecated)(),D=a.getCollectionJoinField,d=x(A.name)||D(A["x-collection-field"]),p=(0,N.e)();(0,W.useEffect)(function(){if(!(k!=null&&k.title)){var i;k.title=p(d==null||(i=d.uiSchema)===null||i===void 0?void 0:i.title)}},[d==null||(T=d.uiSchema)===null||T===void 0?void 0:T.title])},E=e(9780),y=e(18686),m=function(T){var k,A=(0,n.$)(),S=A.t,x=(0,o.useCollectionManager_deprecated)(),a=x.getCollectionJoinField,D=x.getCollection,d=(0,v.useFieldSchema)(),p=(T==null?void 0:T.fieldSchema)||d,i=(0,v.useField)(),l=(0,v.useForm)(),h=(p==null?void 0:p["x-read-pretty"])||i.readPretty||l.readPretty,I=T==null?void 0:T.fieldSchema,t=(0,o.useCollection_deprecated)(),U=t.getField,H=(T==null?void 0:T.collectionField)||U(p.name)||a(p["x-collection-field"]),Y=((k=p["x-component-props"])===null||k===void 0?void 0:k.fieldNames)||{},z=Y.label,R=(0,W.useMemo)(function(){if(!(!H||!(H!=null&&H.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy"].includes(H.interface)){var G=D(H.target);if((G==null?void 0:G.template)==="file")return h?[{label:S("Title"),value:"Select"},{label:S("File manager"),value:"FileManager"},{label:S("Tag"),value:"Tag"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},{label:S("File manager"),value:"FileManager"}];if((G==null?void 0:G.template)==="tree"&&["m2m","o2m","m2o"].includes(H.interface))return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"},!I&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&["m2m","o2m"].includes(H.interface)&&{label:S("Sub-table"),value:"SubTable"},!I&&{label:S("Cascade Select"),value:"CascadeSelect"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];switch(H.interface){case"o2m":return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-table"),value:"SubTable"},!I&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"},!I&&{label:S("Sub-table"),value:"SubTable"}];case"m2m":return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"},!I&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-table"),value:"SubTable"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];default:return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}]}}},[S,H==null?void 0:H.interface,z]);return(R||[]).filter(Boolean)}},18686:function(He,le,e){"use strict";e.d(le,{aZ:function(){return m},fM:function(){return T},hi:function(){return K}});var W=e(5574),u=e.n(W),N=e(97857),v=e.n(N),M=e(94350),b=e(83204),$=e(9361),r=e(96486),j=e.n(r),f=e(67294),F=e(41278),C=e(21143),O=e(28561),n=e(10097),o=function(S,x,a,D){return S?D.paddingContentHorizontalLG:a?D.paddingContentHorizontalLG+12:x?D.paddingSM+D.controlHeight+D.marginXS+2*D.controlPaddingHorizontalSM+22+D.paddingContentHorizontalLG:D.controlHeight+D.marginXS+(D.paddingXXS+2)*2+D.paddingContentHorizontalLG},c=function(S){var x=$.Z.useToken(),a=x.token,D=(0,F.ngQ)(),d=D.designable,p=(0,n.useBlockHeightProps)(),i=p.heightProps,l=i||S||{},h=l.disablePageHeader,I=l.enablePageTabs,t=l.hidePageTitle,U=a.sizeXXL-2,H=d?a.controlHeight+2*a.paddingContentHorizontalLG:1*a.paddingContentHorizontalLG,Y=o(h,I,t,a);return U+Y+H},L=function(S){var x=(0,M.useFieldSchema)(),a=k(x),D=c(S),d=E();return a?d:D},E=function(){var S=$.Z.useToken(),x=S.token,a=(0,F.ngQ)(),D=a.designable,d=x.paddingContentVerticalLG+x.margin+2*x.paddingContentVertical+24,p=D?x.controlHeight+3*x.paddingContentHorizontalLG:2*x.paddingContentHorizontalLG;return d+p},y=function(){var S,x=$.Z.useToken(),a=x.token,D=(0,n.useBlockHeightProps)(),d=D.heightProps,p=(0,F.ngQ)(),i=p.designable,l=(0,M.useFieldSchema)(),h=L(),I=(0,C.useDataBlockRequest)(),t=I.data,U=(t==null?void 0:t.meta)||{},H=U.count,Y=U.pageSize,z=H>Y,R=d.heightMode,G=d.height,X=d.title;if(!(!(d!=null&&d.heightMode)||R===O.j.DEFAULT)){var ce=Object.keys(((S=l.parent.properties.actions)===null||S===void 0?void 0:S.properties)||{}).length>0,ne=z?a.controlHeight+a.padding+a.marginLG:a.marginLG,oe=ce||i?a.controlHeight+2*a.marginLG:a.marginLG,ie=(i?a.controlHeight:22)+2*a.padding+1,pe=X?a.fontSizeLG*a.lineHeightLG+a.padding*2-1:0;return R===O.j.FULL_HEIGHT?window.innerHeight-h-pe-ie-oe-ne:G-pe-oe-ie-ne}},m=function(S){var x=(0,n.useBlockHeightProps)(),a=x.heightProps,D=L(),d=$.Z.useToken(),p=d.token,i=a||{},l=i.heightMode,h=i.height,I=i.title,t=I?p.fontSizeLG*p.lineHeightLG+p.padding*2-1:0;if(!(!(a!=null&&a.heightMode)||l===O.j.DEFAULT)){if(l===O.j.FULL_HEIGHT){var U=window.innerHeight-D;return S!=null&&S.removeBlockHeaderHeight&&(U=U-t),S!=null&&S.innerExtraHeight&&(U=U-S.innerExtraHeight),U}return h}},K=function(){var S=(0,M.useFieldSchema)(),x=(0,f.useMemo)(function(){return(0,n.getPageSchema)(S)},[]),a=(x==null?void 0:x["x-component-props"])||{},D=a.disablePageHeader,d=a.enablePageTabs,p=a.hidePageTitle,i=v()(v()({},S==null?void 0:S["x-component-props"]),{},{disablePageHeader:D,enablePageTabs:d,hidePageTitle:p}),l=L(i),h=i||{},I=h.heightMode,t=h.height;if(!(!(i!=null&&i.heightMode)||I===O.j.DEFAULT))return I===O.j.FULL_HEIGHT?window.innerHeight-l:t},T=function(){var S=(0,f.useState)(),x=u()(S,2),a=x[0],D=x[1],d=(0,f.useState)(),p=u()(d,2),i=p[0],l=p[1],h=(0,f.useRef)(null),I=y(),t=(0,f.useCallback)((0,r.debounce)(function(){var H;if(h.current){var Y=h.current.getBoundingClientRect(),z=(H=h.current.querySelector(".ant-table"))===null||H===void 0?void 0:H.getBoundingClientRect();z&&(l(Y.width),D(I))}},100),[I]),U=(0,f.useCallback)(function(H){h.current=H&&H.children?H.children[0]:null,t()},[t]);return(0,b.Z)("resize",t),{height:a,width:i,tableSizeRefCallback:U}},k=function A(S){return S?S["x-component"]==="Action.Container"?!0:A(S.parent):null}},96365:function(He,le,e){"use strict";e.d(le,{e:function(){return r}});var W=e(97857),u=e.n(W),N=e(52677),v=e.n(N),M=e(94350),b=e(67294),$={},r=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},F=f.noCache,C=(0,b.useContext)(M.SchemaOptionsContext),O=(0,b.useContext)(M.SchemaExpressionScopeContext);return function(n,o){var c=!1,L;if(typeof n=="string"&&n.startsWith("{{")&&(c=!0,L=n),n&&v()(n)==="object"&&!(0,b.isValidElement)(n)&&(c=!0,L=JSON.stringify(n)),Array.isArray(n)&&(c=!0),c){var E=u()(u()(u()({},C.scope),O),o);if(!L)return M.Schema.compile(n,E);try{return F?M.Schema.compile(n,E):($[L]=$[L]||M.Schema.compile(n,E),$[L])}catch(y){return console.log("useCompile error",n,y),M.Schema.compile(n,E)}}return n}}},94516:function(He,le,e){"use strict";e.d(le,{zz:function(){return z},Pl:function(){return h},oB:function(){return H},ng:function(){return G},sR:function(){return R}});var W=e(5574),u=e.n(W),N=e(19632),v=e.n(N),M=e(15009),b=e.n(M),$=e(99289),r=e.n($),j=e(12444),f=e.n(j),F=e(72004),C=e.n(F),O=e(9783),n=e.n(O),o=e(97857),c=e.n(o),L=e(94350),E=e(63198),y=e(45360),m=e(50361),K=e.n(m),T=e(27361),k=e.n(T),A=e(36968),S=e.n(A),x=e(67294),a=e(26793),D=e(12174),d=e(61736);function p(X,ce){if(X)return X["x-app-version"]||(X["x-app-version"]=ce),Object.keys(X.properties||{}).forEach(function(ne){var oe;p((oe=X.properties)===null||oe===void 0?void 0:oe[ne],ce)}),X}var i={i8:"1.2.0-alpha"},l=e(85893);function h(X){return new z(X)}var I=function X(ce){ce&&(ce["x-uid"]||(ce["x-uid"]=(0,E.uid)()),Object.keys(ce.properties||{}).forEach(function(ne){X(ce.properties[ne])}))},t=function(ce){return ce},U=function(ce,ne){if(!(!ce||!ne)){for(var oe in ne)if(Object.prototype.hasOwnProperty.call(ne,oe)){var ie=ne[oe];if(ie!==(ce==null?void 0:ce[oe]))return!1}return!0}},H=function(ce,ne){if(ce["x-uid"]&&ce["x-uid"]===ne["x-uid"])return[null,ce.toJSON()];var oe=ce.toJSON(),ie=c()(c()({},oe),{},{properties:{}}),pe=null,V=function xe(de,ae){Object.keys(de||{}).forEach(function(Pe){var Se=de[Pe];if(Se["x-uid"]===ne["x-uid"]){pe=de[Pe];return}else ae.properties[Pe]=c()(c()({},Se),{},{properties:{}}),xe(Se==null?void 0:Se.properties,ae.properties[Pe])})};return V(oe.properties,ie),[ie,pe]},Y=function(ce){return ce},z=function(){function X(ce){f()(this,X),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=ce,this.current=ce.current,this.appVersion=ce.appVersion}return C()(X,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var ne=this,oe=this.options,ie=oe.api,pe=oe.t,V=pe===void 0?Y:pe;if(ie){var xe=function(ae){if(!ae)return[];var Pe=Object.values(ae.properties).length,Se=[];return ae.mapProperties(function(Ae){Ae["x-component-props"]=Ae["x-component-props"]||{},Ae["x-component-props"].width=100/Pe,Ae["x-uid"]&&Se.push({"x-uid":Ae["x-uid"],"x-component-props":Ae["x-component-props"]})}),ae["x-uid"]&&Se.length?Se:[]};this.on("insertAdjacent",function(){var de=r()(b()().mark(function ae(Pe){var Se,Ae,ye,fe,ve,te,Z,ee,he,me;return b()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(Ae=Pe.onSuccess,ye=Pe.current,fe=Pe.position,ve=Pe.schema,te=Pe.wrap,Z=Pe.wrapped,ee=Pe.removed,he=[],(Z==null?void 0:Z["x-component"])==="Grid.Col"&&(he=he.concat(xe(Z.parent))),(ee==null?void 0:ee["x-component"])==="Grid.Col"&&(he=he.concat(xe(ee.parent))),ne.refresh(),ye["x-uid"]){Ie.next=7;break}return Ie.abrupt("return");case 7:return Ie.next=9,ie.request({url:"/uiSchemas:insertAdjacent/".concat(ye["x-uid"],"?position=").concat(fe),method:"post",data:{schema:p(ve,ne.appVersion),wrap:te}});case 9:if(me=Ie.sent,!he.length){Ie.next=13;break}return Ie.next=13,ie.request({url:"/uiSchemas:batchPatch",method:"post",data:he});case 13:if(!(ee!=null&&ee["x-uid"])){Ie.next=16;break}return Ie.next=16,ie.request({url:"/uiSchemas:remove/".concat(ee["x-uid"]),method:"post"});case 16:Ae==null||Ae(me==null||(Se=me.data)===null||Se===void 0?void 0:Se.data),y.ZP.success(V("Saved successfully"),.2);case 18:case"end":return Ie.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}()),this.on("patch",function(){var de=r()(b()().mark(function ae(Pe){var Se;return b()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(Se=Pe.schema,ne.refresh(),Se!=null&&Se["x-uid"]){ye.next=4;break}return ye.abrupt("return");case 4:return ye.next=6,ie.request({url:"/uiSchemas:patch",method:"post",data:c()({},Se)});case 6:y.ZP.success(V("Saved successfully"),.2);case 7:case"end":return ye.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}()),this.on("batchPatch",function(){var de=r()(b()().mark(function ae(Pe){var Se;return b()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return Se=Pe.schemas,ne.refresh(),ye.next=4,ie.request({url:"/uiSchemas:batchPatch",method:"post",data:Se});case 4:y.ZP.success(V("Saved successfully"),.2);case 5:case"end":return ye.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}()),this.on("remove",function(){var de=r()(b()().mark(function ae(Pe){var Se,Ae;return b()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(Se=Pe.removed,Ae=[],(Se==null?void 0:Se["x-component"])==="Grid.Col"&&(Ae=xe(Se.parent)),ne.refresh(),Se!=null&&Se["x-uid"]){fe.next=6;break}return fe.abrupt("return");case 6:return fe.next=8,ie.request({url:"/uiSchemas:remove/".concat(Se["x-uid"]),method:"post"});case 8:if(!Ae.length){fe.next=11;break}return fe.next=11,ie.request({url:"/uiSchemas:batchPatch",method:"post",data:Ae});case 11:y.ZP.success(V("Saved successfully"),.2);case 12:case"end":return fe.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(ne){ne.type||(ne.type="void"),ne.name||(ne.name=(0,E.uid)()),this.current["x-uid"]&&I(ne)}},{key:"on",value:function(ne,oe){this.events[ne]||(this.events[ne]=[]),this.events[ne].push(oe)}},{key:"emit",value:function(){var ce=r()(b()().mark(function oe(ie){var pe=this,V,xe,de,ae,Pe,Se=arguments;return b()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(this.events[ie]){ye.next=2;break}return ye.abrupt("return");case 2:for(V=Se.length,xe=new Array(V>1?V-1:0),de=1;de<V;de++)xe[de-1]=Se[de];return ae=xe[0],Pe=xe.slice(1),ye.abrupt("return",Promise.all(this.events[ie].map(function(fe){return fe.bind(pe).apply(void 0,[c()({current:pe.current},ae)].concat(v()(Pe)))})));case 5:case"end":return ye.stop()}},oe,this)}));function ne(oe){return ce.apply(this,arguments)}return ne}()},{key:"parentsIn",value:function(ne){if(!ne||!L.Schema.isSchemaInstance(ne))return!1;for(var oe=this.current;(ie=oe)!==null&&ie!==void 0&&ie.parent;){var ie;if(oe.parent===ne)return!0;oe=oe.parent}return!1}},{key:"refresh",value:function(){var ne=this.options.refresh;return ne==null?void 0:ne()}},{key:"deepMerge",value:function(ne){var oe=this,ie={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},pe={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(ne).forEach(function(V){ie[V]?(oe.current[V]=ne[V],oe.updateModel(ie[V],ne[V])):pe[V]?Object.keys(ne[V]).forEach(function(xe){S()(oe.current,[V,xe],ne[V][xe]),oe.updateModel([pe[V],xe],ne[V][xe])}):oe.current[V]=ne[V]}),this.emit("patch",{schema:ne})}},{key:"getSchemaAttribute",value:function(ne,oe){return k()(this.current,ne,oe)}},{key:"shallowMerge",value:function(ne){var oe=this,ie={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(ne).forEach(function(pe){oe.current[pe]=ne[pe],ie[pe]&&oe.updateModel(ie[pe],ne[pe])}),this.emit("patch",{schema:ne})}},{key:"updateModel",value:function(ne,oe){var ie=function(V){S()(V,ne,oe)};this.model&&ie(this.model),this.query&&this.query.take(ie)}},{key:"insertAdjacent",value:function(ne,oe){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(ne){case"beforeBegin":return this.insertBeforeBegin(oe,ie);case"afterBegin":return this.insertAfterBegin(oe,ie);case"beforeEnd":return this.insertBeforeEnd(oe,ie);case"afterEnd":return this.insertAfterEnd(oe,ie)}}},{key:"recursiveRemoveIfNoChildren",value:function(ne,oe){if(ne){for(var ie=ne,pe,V=oe==null?void 0:oe.breakRemoveOn;ie;){if(typeof V=="function"){if(V(ie))break}else if(U(ie,V))break;var xe=Object.keys(ie.properties||{}).length;if(xe>0)break;ie.parent&&(pe=ie.parent.removeProperty(ie.name)),ie=ie.parent}return pe}}},{key:"remove",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=oe.breakRemoveOn,pe=oe.removeParentsIfNoChildren,V=ne||this.current,xe=V.parent.removeProperty(V.name);if(pe){var de=this.recursiveRemoveIfNoChildren(V.parent,{breakRemoveOn:ie});de&&(xe=de)}return this.emit("remove",{removed:xe})}},{key:"removeWithoutEmit",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=oe.breakRemoveOn,pe=oe.removeParentsIfNoChildren,V=ne||this.current,xe=V.parent.removeProperty(V.name);if(pe){var de=this.recursiveRemoveIfNoChildren(V.parent,{breakRemoveOn:ie});de&&(xe=de)}return xe}},{key:"insertBeforeBeginOrAfterEnd",value:function(ne){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)&&L.Schema.isSchemaInstance(ne)&&this.current.parent===ne.parent){var pe=0,V=0;return this.current.parent.mapProperties(function(xe,de,ae){oe.current.name===de&&(V=ae),ne.name===de&&(pe=ae)}),pe>V?this.insertBeforeBegin(ne,ie):this.insertAfterEnd(ne,ie)}}},{key:"insertBeforeBegin",value:function(ne){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){var pe={onSuccess:ie.onSuccess},V=ie.wrap,xe=V===void 0?t:V,de=ie.breakRemoveOn,ae=ie.removeParentsIfNoChildren;if(L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),ae&&(pe.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:de}))}else ne&&(ne=K()(ne));var Pe={},Se=!1,Ae=0,ye=0;this.current.parent.mapProperties(function(me,Ee){Ee===oe.current.name&&(ye=Ae,Se=!0,++Ae),me["x-index"]=Ae,++Ae,Se&&(Pe[Ee]=me,oe.current.parent.removeProperty(Ee))}),this.prepareProperty(ne);var fe=xe(ne),ve=this.current.parent.addProperty(fe.name||(0,E.uid)(),fe);ve["x-index"]=ye,ve.parent=this.current.parent,this.current.parent.setProperties(Pe);var te=H(ve,ne),Z=u()(te,2),ee=Z[0],he=Z[1];this.emit("insertAdjacent",c()({position:"beforeBegin",schema:he,wrapped:fe,wrap:ee},pe))}}},{key:"insertAfterBegin",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){var ie={onSuccess:oe.onSuccess},pe=oe.wrap,V=pe===void 0?t:pe,xe=oe.breakRemoveOn,de=oe.removeParentsIfNoChildren;if(L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),de&&(ie.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:xe}))}else ne&&(ne=K()(ne));var ae={},Pe=1;this.current.mapProperties(function(Z,ee){Z["x-index"]=Pe,++Pe,ae[ee]=Z}),this.current.properties={},this.prepareProperty(ne);var Se=V(ne),Ae=this.current.addProperty(Se.name||(0,E.uid)(),Se);Ae["x-index"]=0,Ae.parent=this.current,this.current.setProperties(ae);var ye=H(Ae,ne),fe=u()(ye,2),ve=fe[0],te=fe[1];this.emit("insertAdjacent",c()({position:"afterBegin",schema:te,wrap:ve,wrapped:Se},ie))}}},{key:"insertBeforeEnd",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){delete ne["x-index"];var ie={onSuccess:oe.onSuccess},pe=oe.wrap,V=pe===void 0?t:pe,xe=oe.breakRemoveOn,de=oe.removeParentsIfNoChildren;if(L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),de&&(ie.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:xe}))}else ne&&(ne=K()(ne));this.prepareProperty(ne);var ae=V(ne),Pe=this.current.addProperty(ae.name||(0,E.uid)(),ae);Pe.parent=this.current;var Se=H(Pe,ne),Ae=u()(Se,2),ye=Ae[0],fe=Ae[1];return this.emit("insertAdjacent",c()({position:"beforeEnd",schema:fe,wrap:ye,wrapped:ae},ie))}}},{key:"insertAfterEnd",value:function(ne){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){var pe={onSuccess:ie==null?void 0:ie.onSuccess},V=ie.wrap,xe=V===void 0?t:V,de=ie.breakRemoveOn,ae=ie.removeParentsIfNoChildren,Pe=0,Se=0,Ae=!1,ye={};if(this.current.parent.mapProperties(function(me,Ee){me["x-index"]=Pe,Ee===oe.current.name&&(++Pe,Se=Pe,Ae=!0),++Pe,Ae&&Ee!==oe.current.name&&(ye[Ee]=me,oe.current.parent.removeProperty(Ee))}),L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),ae&&(pe.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:de})),ne.parent=null}else ne&&(ne=K()(ne));this.prepareProperty(ne);var fe=xe(ne),ve=this.current.parent.addProperty(fe.name||(0,E.uid)(),fe);ve.parent=this.current.parent,ve["x-index"]=Se,this.current.parent.setProperties(ye);var te=H(ve,ne),Z=u()(te,2),ee=Z[0],he=Z[1];this.emit("insertAdjacent",c()({position:"afterEnd",schema:he,wrap:ee,wrapped:fe},pe))}}}]),X}();function R(){var X=(0,x.useContext)(L.SchemaOptionsContext),ce=(0,x.useMemo)(function(){return(X==null?void 0:X.components)||{}},[X]),ne=function(ie){if(!ie)return null;if(typeof ie!="string")return ie;var pe=k()(ce,ie);return pe||console.error('[nocobase]: Component "'.concat(ie,'" not found')),pe};return ne}function G(){var X=(0,x.useContext)(d.D),ce=X.designable,ne=X.setDesignable,oe=X.refresh,ie=X.reset,pe=(0,x.useContext)(L.SchemaOptionsContext),V=(0,x.useMemo)(function(){return(pe==null?void 0:pe.components)||{}},[pe]),xe=(0,x.useMemo)(function(){return function(){return(0,l.jsx)(l.Fragment,{})}},[]),de=(0,L.useField)(),ae=(0,L.useFieldSchema)(),Pe=(0,D.LY)(),Se=(0,a.$)(),Ae=Se.t,ye=(0,x.useMemo)(function(){return h({t:Ae,api:Pe,refresh:oe,current:ae,model:de,appVersion:i.i8})},[Ae,Pe,oe,ae,de]);return(0,x.useEffect)(function(){ye.loadAPIClientEvents()},[ye]),{dn:ye,designable:ce,reset:ie,refresh:oe,setDesignable:ne,DesignableBar:xe,findComponent:(0,x.useCallback)(function(fe){return fe?typeof fe!="string"?fe:k()(V,fe):null},[k()]),on:ye.on.bind(ye),patch:(0,x.useCallback)(function(fe,ve){var te=function(he){Object.keys(he).forEach(function(me){var Ee=he[me];me==="title"&&(de.title=Ee,ae.title=Ee),me==="x-decorator-props"&&(de.decoratorProps||(de.decoratorProps={}),ae["x-decorator-props"]||(ae["x-decorator-props"]={}),Object.keys(Ee).forEach(function(Ie){de.decoratorProps[Ie]=Ee[Ie],ae["x-decorator-props"][Ie]=Ee[Ie]})),me==="x-component-props"&&(de.componentProps||(de.componentProps={}),ae["x-component-props"]||(ae["x-component-props"]={}),Object.keys(Ee).forEach(function(Ie){de.componentProps[Ie]=Ee[Ie],ae["x-component-props"][Ie]=Ee[Ie]}))})};if(typeof fe=="string"){var Z={};return S()(Z,fe,ve),te(Z)}te(fe),oe()},[ye]),shallowMerge:(0,x.useCallback)(function(fe){ye.shallowMerge(fe)},[ye]),deepMerge:(0,x.useCallback)(function(fe){ye.deepMerge(fe)},[ye]),remove:(0,x.useCallback)(function(fe,ve){ye.remove(fe,ve)},[ye]),insertAdjacent:(0,x.useCallback)(function(fe,ve,te){ye.insertAdjacent(fe,ve,te)},[ye]),insertBeforeBegin:(0,x.useCallback)(function(fe){ye.insertBeforeBegin(fe)},[ye]),insertAfterBegin:(0,x.useCallback)(function(fe){ye.insertAfterBegin(fe)},[ye]),insertBeforeEnd:(0,x.useCallback)(function(fe){ye.insertBeforeEnd(fe)},[ye]),insertAfterEnd:(0,x.useCallback)(function(fe){ye.insertAfterEnd(fe)},[ye])}}},98146:function(He,le,e){"use strict";e.d(le,{e:function(){return b}});var W=e(94350),u=e(84577),N=e(67294),v=e(74538),M=function(){return null},b=function(){var r=(0,u.ng)(),j=r.designable,f=(0,W.useFieldSchema)(),F=(0,N.useMemo)(function(){return f["x-designer"]||f["x-toolbar"]?f["x-designer"]||f["x-toolbar"]:f["x-settings"]?v.Mf:M},[f]),C=(0,u.Co)(F);return j&&C||M}},9780:function(He,le,e){"use strict";e.d(le,{w:function(){return $}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=["useProps"],b=function(){return{}},$=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=j.useProps,F=f===void 0?b:f,C=v()(j,M),O=F;typeof F!="function"&&(O=b);var n=O();return u()(u()({},C),n)}},41278:function(He,le,e){"use strict";e.d(le,{aUM:function(){return T.aU},olz:function(){return T.ol},N0i:function(){return T.N0},fWn:function(){return T.fW},EIK:function(){return T.EI},$Lt:function(){return T.$L},$b8:function(){return T.$b},HTy:function(){return To},lkv:function(){return Ko},rDu:function(){return $o},eYL:function(){return T.eY},Rat:function(){return ra},$SD:function(){return vi},fUi:function(){return Zo.fU},QcG:function(){return wl},gOu:function(){return _s},jYG:function(){return $a.j},C1I:function(){return T.C1},Ssf:function(){return Hl},vTp:function(){return Jl},XZJ:function(){return ca},Tt2:function(){return es},zH8:function(){return as},Q5L:function(){return ls},Pok:function(){return fi},Vm0:function(){return ds},xI_:function(){return ns},Lip:function(){return ts},Mtg:function(){return ya},iNu:function(){return vs},zzt:function(){return Yt.zz},_bl:function(){return y._b},POi:function(){return ps},AOY:function(){return ae},LBT:function(){return E.DndContext},IWB:function(){return E.DragHandler},LCt:function(){return E.DraggableContext},FyH:function(){return V.Fy},Nir:function(){return V.Ni},q8U:function(){return V.q8},HGA:function(){return V.HG},QTe:function(){return V.QT},JEX:function(){return V.JE},fAH:function(){return dl},$w$:function(){return V.$w},nBj:function(){return V.nB},Oct:function(){return V.Oc},zdw:function(){return V.zd},CXR:function(){return ul},BQs:function(){return Fo.BQ},Hj5:function(){return pt.H},M0b:function(){return gi},wn$:function(){return Nr.wn},GzZ:function(){return Nr.Gz},tJZ:function(){return Nr.tJ},AsW:function(){return Qn},cLM:function(){return Lo},m__:function(){return Jn},l09:function(){return oe},D_t:function(){return Ji.D},WiK:function(){return It},xJW:function(){return V.xJ},RVL:function(){return y.RV},Bc8:function(){return Kr},hG9:function(){return Ci},DCh:function(){return _i},rjZ:function(){return da.rj},Cqo:function(){return ka},jg7:function(){return da.jg},gsn:function(){return Fo.gs},$18:function(){return Ds},IIB:function(){return Fo.II},RnZ:function(){return qi},mX2:function(){return Fo.mX},zDC:function(){return bo.zD},Phs:function(){return Fo.Ph},aVo:function(){return wa},UGj:function(){return nl},yq5:function(){return rl},v2r:function(){return ha},HIW:function(){return Nu},T3C:function(){return kr},tlE:function(){return ks},rop:function(){return Gs},gGi:function(){return Hs},MBS:function(){return Zs.M},pGO:function(){return Ys},Y8K:function(){return Si},iVT:function(){return Fo.iV},ODP:function(){return bo.OD},lbb:function(){return bo.lb},b7w:function(){return bo.b7},sUk:function(){return bo.sU},x1j:function(){return T.x1},m1v:function(){return y.m1},glM:function(){return _t},xZD:function(){return T.xZ},MkN:function(){return T.Mk},Hof:function(){return Qs},n6:function(){return y.n6},DDd:function(){return _v.D},G0E:function(){return y.G0},a$w:function(){return y.a$},TzZ:function(){return y.Tz},y00:function(){return T.y0},PhF:function(){return en},Cqv:function(){return E.ShowFormData},cof:function(){return T.co},bts:function(){return E.Sortable},Fop:function(){return E.SortableContext},TRI:function(){return E.SortableItem},ORg:function(){return E.SortableProvider},TaI:function(){return qs},qHe:function(){return pr.q},iA_:function(){return Go},gvM:function(){return uu},SnY:function(){return ml},ASv:function(){return du},bwk:function(){return oa},mQc:function(){return Di},c__:function(){return vu},QZ3:function(){return $e},L39:function(){return $a.L},jII:function(){return pl},mPs:function(){return Cu},tgM:function(){return Wu},gqx:function(){return Zo.gq},Qm7:function(){return Zo.Qm},_wD:function(){return Ma},rjl:function(){return Lu},Fjw:function(){return T.Fj},SLL:function(){return T.SL},sBv:function(){return T.sB},iTm:function(){return V.iT},Pls:function(){return Yt.Pl},Oxq:function(){return Pt},WLi:function(){return We},$9M:function(){return V.$9},nCn:function(){return Ga},iNG:function(){return Ea},tD8:function(){return xi},pg9:function(){return Hr},Ofb:function(){return V.Of},ibf:function(){return lo},WyG:function(){return pe},l6$:function(){return Lt.l6},WGR:function(){return wt},C$H:function(){return bo.C$},cNQ:function(){return bo.cN},ZZb:function(){return V.ZZ},elO:function(){return bo.el},_Ko:function(){return io},Mev:function(){return qr},i2K:function(){return mo},WmO:function(){return Nr.Wm},oBi:function(){return Yt.oB},igR:function(){return T.ig},DU1:function(){return T.DU},XCj:function(){return T.XC},lIL:function(){return Yt.lI},hi9:function(){return Yt.hi},p27:function(){return T.p2},z9d:function(){return cl.z},eJW:function(){return Yt.eJ},Cor:function(){return Yt.Co},aZq:function(){return Yt.aZ},P1D:function(){return hi},ngQ:function(){return Yt.ng},ett:function(){return Yt.et},ySm:function(){return pt.y},Zd$:function(){return V.Zd},cLh:function(){return Yt.cL},baz:function(){return V.b},fde:function(){return Yt.fd},Xdt:function(){return bo.Xd},Cld:function(){return Yt.Cl},vH8:function(){return Yt.vH},PLH:function(){return Nr.PL},V8t:function(){return Nr.V8},tMk:function(){return Nr.tM},xQm:function(){return Nr.xQ},sRe:function(){return Yt.sR},frb:function(){return Bn},$N2:function(){return mn},U1u:function(){return rt},HS$:function(){return T.HS},vBu:function(){return T.vB},QYZ:function(){return T.QY},t9d:function(){return T.t9},Kgy:function(){return Nr.Kg},aJ2:function(){return Nr.aJ},n14:function(){return da.n1},DiB:function(){return da.Di},l1O:function(){return V.l1},w5o:function(){return V.w5},p3Q:function(){return V.p3},G5e:function(){return V.G5},xj2:function(){return V.xj},rxY:function(){return V.rx},Ils:function(){return bo.Il},zCB:function(){return T.zC},wNf:function(){return Yt.wN},Dmu:function(){return Yt.Dm},Bsl:function(){return y.Bs},yKv:function(){return zs.y},fMB:function(){return Yt.fM},gCg:function(){return vl},eT6:function(){return V.eT},q4O:function(){return V.q4},ymE:function(){return Ku}});var W={};e.r(W),e.d(W,{Action:function(){return T.aU},ActionBar:function(){return T.ol},ActionBarProvider:function(){return T.N0},ActionContext:function(){return T.fW},ActionContextProvider:function(){return T.EI},ActionDesigner:function(){return T.$L},AfterSuccess:function(){return T.$b},AntdSchemaComponentPlugin:function(){return To},AntdSchemaComponentProvider:function(){return Ko},AppendsTreeSelect:function(){return $o},AssignedFieldValues:function(){return T.eY},AssociationField:function(){return ra},AssociationSelect:function(){return vi},AttachmentList:function(){return Zo.fU},AutoComplete:function(){return wl},Block:function(){return _s},BlockItem:function(){return $a.j},ButtonEditor:function(){return T.C1},CardItem:function(){return Hl},Cascader:function(){return Jl},Checkbox:function(){return ca},CollectionSelect:function(){return es},ColorPicker:function(){return as},ColorSelect:function(){return ls},Cron:function(){return fi},CronSet:function(){return ds},DataSourceCollectionCascader:function(){return ns},DataSourceSelect:function(){return ts},DatePicker:function(){return ya},DatePickerProvider:function(){return vs},Details:function(){return ps},DetailsDesigner:function(){return ae},EditComponent:function(){return V.Fy},EditDefaultValue:function(){return V.Ni},EditDescription:function(){return V.q8},EditOperator:function(){return V.HG},EditPattern:function(){return V.QT},EditRequired:function(){return V.JE},EditSortField:function(){return dl},EditTitle:function(){return V.$w},EditTitleField:function(){return V.nB},EditTooltip:function(){return V.Oc},EditValidationRules:function(){return V.zd},Editable:function(){return ul},EllipsisWithTooltip:function(){return Fo.BQ},ErrorFallback:function(){return pt.H},Expand:function(){return gi},Filter:function(){return Nr.wn},FilterAction:function(){return Nr.Gz},FilterActionContext:function(){return Nr.tJ},FixedBlock:function(){return Qn},FixedBlockDesignerItem:function(){return Lo},FixedBlockWrapper:function(){return Jn},Form:function(){return oe},FormDialog:function(){return Ji.D},FormField:function(){return It},FormItem:function(){return V.xJ},FormV2:function(){return Kr},G2Plot:function(){return Ci},G2PlotRenderer:function(){return _i},Grid:function(){return da.rj},GridCard:function(){return ka},GridRowContext:function(){return da.jg},HTMLEncode:function(){return Fo.gs},IconPicker:function(){return Ds},Input:function(){return Fo.II},InputNumber:function(){return qi},InputReadPretty:function(){return Fo.mX},InputRecordPicker:function(){return bo.zD},Json:function(){return Fo.Ph},List:function(){return wa},Markdown:function(){return nl},MarkdownReadPretty:function(){return rl},Menu:function(){return ha},NanoIDInput:function(){return Nu},Page:function(){return kr},Pagination:function(){return ks},Password:function(){return Gs},Percent:function(){return Hs},Preview:function(){return Zs.M},QuickEdit:function(){return Ys},Radio:function(){return Si},ReadPretty:function(){return Fo.iV},ReadPrettyRecordPicker:function(){return bo.OD},RecordPicker:function(){return bo.lb},RecordPickerContext:function(){return bo.b7},RecordPickerProvider:function(){return bo.sU},RefreshDataBlockRequest:function(){return T.x1},RemoteSelect:function(){return _t},RemoveButton:function(){return T.xZ},RequestSettings:function(){return T.Mk},RichText:function(){return Qs},SecondConFirm:function(){return T.y0},Select:function(){return en},SkipValidation:function(){return T.co},Space:function(){return qs},StablePopover:function(){return pr.q},Table:function(){return Go},TableBlockDesigner:function(){return uu},TableField:function(){return ml},TableSelectorDesigner:function(){return du},TableV2:function(){return oa},Tabs:function(){return Di},TabsContextProvider:function(){return vu},Templates:function(){return $e},TestDesigner:function(){return $a.L},TimePicker:function(){return pl},TreeSelect:function(){return Cu},UnixTimestamp:function(){return Wu},Upload:function(){return Zo.gq},Uploader:function(){return Zo.Qm},Variable:function(){return Ma},VariableScopeProvider:function(){return Lu},WorkflowConfig:function(){return T.Fj},actionSettings:function(){return T.SL},actionSettingsItems:function(){return T.sB},allowAddNew:function(){return V.iT},defaultFieldNames:function(){return Pt},fetchTemplateData:function(){return We},filterFormItemSettings:function(){return V.$9},findByUid:function(){return Ga},findKeysByUid:function(){return Ea},findMenuItem:function(){return xi},formDetailsSettings:function(){return Hr},formItemSettings:function(){return V.Of},formSettings:function(){return lo},formV1Settings:function(){return pe},genStyleHook:function(){return Lt.l6},getCurrentOptions:function(){return wt},getDatePickerLabels:function(){return bo.C$},getLabelFormatValue:function(){return bo.cN},isFileCollection:function(){return V.ZZ},isShowFilePicker:function(){return bo.el},pageSettings:function(){return io},pageTabSettings:function(){return qr},readPrettyFormSettings:function(){return mo},removeNullCondition:function(){return Nr.Wm},useA:function(){return T.ig},useActionBarContext:function(){return T.DU},useActionContext:function(){return T.XC},useCloseAction:function(){return T.p2},useColumnSchema:function(){return cl.z},useDatePickerContext:function(){return hi},useDownloadLogs:function(){return pt.y},useEnsureOperatorsValid:function(){return V.Zd},useFieldMode:function(){return V.b},useFieldNames:function(){return bo.Xd},useFilterActionProps:function(){return Nr.PL},useFilterFieldOptions:function(){return Nr.V8},useFilterFieldProps:function(){return Nr.tM},useFilterOptions:function(){return Nr.xQ},useFixedBlock:function(){return Bn},useFixedSchema:function(){return mn},useFormDataTemplates:function(){return rt},useGetAriaLabelOfAction:function(){return T.HS},useGetAriaLabelOfDrawer:function(){return T.vB},useGetAriaLabelOfModal:function(){return T.QY},useGetAriaLabelOfPopover:function(){return T.t9},useGetFilterFieldOptions:function(){return Nr.Kg},useGetFilterOptions:function(){return Nr.aJ},useGridContext:function(){return da.n1},useGridRowContext:function(){return da.Di},useIsAddNewForm:function(){return V.l1},useIsAssociationField:function(){return V.w5},useIsFieldReadPretty:function(){return V.p3},useIsFileField:function(){return V.G5},useIsFormReadPretty:function(){return V.xj},useIsSelectFieldMode:function(){return V.rx},useLabelUiSchema:function(){return bo.Il},useLinkageAction:function(){return T.zC},useStyles:function(){return zs.y},useTabsContext:function(){return vl},useTitleFieldOptions:function(){return V.eT},useValidateSchema:function(){return V.q4},useVariableScope:function(){return Ku}});var u=e(15009),N=e.n(u),v=e(99289),M=e.n(v),b=e(12444),$=e.n(b),r=e(72004),j=e.n(r),f=e(31996),F=e.n(f),C=e(26037),O=e.n(C),n=e(97857),o=e.n(n),c=e(67294),L=e(31601),E=e(14896),y=e(70993),m=e(89127),K=function(g){return M()(N()().mark(function w(){var J,Q;return N()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.prev=0,ge.next=3,this.api.request(g);case 3:return Q=ge.sent,ge.abrupt("return",Q==null||(J=Q.data)===null||J===void 0?void 0:J.data);case 7:return ge.prev=7,ge.t0=ge.catch(0),ge.abrupt("return",[]);case 10:case"end":return ge.stop()}},w,this,[[0,7]])}))},T=e(76157),k=e(13769),A=e.n(k),S=e(57134),x=e(86201),a=e(94350),D=e(28459),d=e(57953),p=e(12174),i=e(6145),l=e(74538),h=e(64016),I=e(95354),t=e(85893),U=["form","children"],H=["form","children","disabled"],Y=["request","effects","initialValue","useValues"],z=function(g){var w=g.form,J=g.children,Q=A()(g,U),se=(0,a.useField)(),ge=(0,a.useFieldSchema)(),De=(0,Yt.lI)(w.createVoidField(o()(o()({},se.props),{},{basePath:""})));return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:w,children:(0,t.jsx)(S.FormLayout,o()(o()({layout:"vertical"},Q),{},{children:(0,t.jsx)(a.RecursionField,{basePath:De.address,schema:ge,onlyRenderProperties:!0})}))})})},R=function(g){return g.children},G=function(g){var w=g.form,J=g.children,Q=g.disabled,se=A()(g,H),ge=(0,a.useField)(),De=(0,a.useFieldSchema)(),Te=(0,Yt.lI)(w.createVoidField(o()(o()({},ge.props),{},{basePath:""}))),Ke=(0,Yt.Co)(De["x-component"],R);return(0,c.useEffect)(function(){w.disabled=Q||ge.disabled},[Q,ge.disabled]),(0,t.jsx)(D.ZP,{componentDisabled:Q,children:(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:w,children:(0,t.jsx)(S.FormLayout,o()(o()({layout:"vertical"},se),{},{children:(0,t.jsx)(a.FieldContext.Provider,{value:Te,children:(0,t.jsx)(Ke,o()(o()({},ge.componentProps),{},{children:(0,t.jsx)(a.RecursionField,{basePath:Te.address,schema:De,onlyRenderProperties:!0})}))})}))})})})},X=function(g){var w=g.request,J=g.initialValue;return w||function(){return Promise.resolve({data:J})}},ce=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,p.QT)(X(w),g)},ne=(0,c.createContext)(null);ne.displayName="FormBlockContext";var oe=(0,a.observer)(function(B){var g=B.request,w=B.effects,J=B.initialValue,Q=B.useValues,se=Q===void 0?ce:Q,ge=A()(B,Y),De=(0,a.useFieldSchema)(),Te=(0,a.useField)(),Ke=(0,c.useMemo)(function(){return(0,x.createForm)({effects:w})},[]),Ge=se({uid:De["x-uid"],onSuccess:function(Xe){return M()(N()().mark(function lt(){return N()().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,Ke.reset();case 2:Ke.setValues(Xe==null?void 0:Xe.data),Ke.setInitialValues(Xe==null?void 0:Xe.data);case 4:case"end":return ht.stop()}},lt)}))()}},B),Je=(0,c.useContext)(ne);return(0,t.jsx)(ne.Provider,{value:{parent:Je,form:Ke,result:Ge,field:Te,fieldSchema:De},children:(0,t.jsx)(d.Z,{spinning:(Ge==null?void 0:Ge.loading)||!1,children:De["x-decorator"]==="Form"?(0,t.jsx)(G,o()({form:Ke},ge)):(0,t.jsx)(z,o()({form:Ke},ge))})})},{displayName:"Form"});oe.Designer=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsxs)(l.aN,{template:Q,title:J||w,children:[(0,t.jsx)(h.G,{componentName:"Form",collectionName:w}),(0,t.jsx)(l.Z5,{}),(0,t.jsx)(l.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var ie=e(5537),pe=new ie.F5({name:"FormV1Settings",items:[{name:"template",Component:h.G,useComponentProps:function(){var g=(0,i.useCollection_deprecated)(),w=g.name;return{componentName:"Form",collectionName:w}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),V=e(54801),xe=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"FormSettings",template:Q,title:J||w})},de=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"ReadPrettyFormSettings",template:Q,title:J||w})},ae=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"FormDetailsSettings",template:Q,title:J||w})},Pe=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"blockSettings:filterForm",template:Q,title:J||w})},Se=e(7340),Ae=e(15503),ye=e(68230),fe=e(9783),ve=e.n(fe),te=e(68400),Z=e.n(te),ee=e(97133),he=e(85667),me=e(63198),Ee=e(68433),Ie=e(9361),Le=e(31019),Ue=e(4595),Be=e(86406),be=e(90615),_e=e(44256),re=e(76690),P=e(34588),q=e(9780),Ce=e(18686),ue=e(72594),Ne=e(5574),Ve=e.n(Ne),Qe=e(42075),Re=e(34041),et=e(96486),je=e.n(et),Ye=e(26793),it=e(32268),Lt=e(60094),dn=e(52677),Nt=e.n(dn),In=e(50888),_n=e(66309),qn=e(96074),er=e(27484),tr=e.n(er),Ur=e(87714),Yt=e(84577),ar=e(4340),mr=e(97937),Vn=e(32983),fn=e(58812),Wn=e(96695),Fn=e.n(Wn),$t=e(19632),gt=e.n($t),Pt={label:"label",value:"value",color:"color",options:"children"};function Zt(B,g){var w=[];if(!Array.isArray(B))return w;for(var J=0;J<B.length;J++){var Q=B[J][g.options];Array.isArray(Q)&&w.push.apply(w,gt()(Zt(Q,g))),w.push(o()({},B[J]))}return w}function wt(B,g,w){var J=Zt(g,w),Q=(0,et.castArray)(B).filter(function(ge){return ge!=null}).map(function(ge){return(0,Ee.isPlainObject)(ge)?ge[w.value]:ge});function se(ge){if(!ge)return[];var De=[],Te=Fn()(Q),Ke;try{var Ge=function(){var mt=Ke.value,Xe=ge.find(function(lt){return lt[w.value]==mt})||{value:mt,label:mt&&mt.toString()};De.push(Xe)};for(Te.s();!(Ke=Te.n()).done;)Ge()}catch(Je){Te.e(Je)}finally{Te.f()}return De}return se(J)}var Jt=e(67668),Ut=(0,a.observer)(function(B){var g,w=o()(o()({},Pt),B.fieldNames),J=(0,a.useField)();if(!(0,me.isValid)(B.value))return(0,t.jsx)("div",{});if((0,x.isArrayField)(J)&&(J==null||(g=J.value)===null||g===void 0?void 0:g.length)===0)return(0,t.jsx)("div",{});var Q=(0,Jt.Hy)(),se=J.dataSource||B.options||(Q==null?void 0:Q.uiSchema.enum)||[],ge=wt(J.value,se,w);return(0,t.jsx)("div",{children:(0,t.jsx)(fn.B,{ellipsis:B.ellipsis,children:ge.map(function(De,Te){return(0,t.jsx)(_n.Z,{color:De[w.color],icon:De.icon,children:De[w.label]},Te)})})})},{displayName:"ReadPretty"}),cn=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Vt=["objectValue","loading","value","rawOptions","defaultValue"],Xt=function(g){return!(0,me.isValid)(g)||Nt()(g)==="object"&&Object.keys(g).length===0},Mt=function(g){var w=g.value,J=g.options,Q=g.onChange,se=g.fieldNames,ge=g.mode,De=g.loading,Te=g.rawOptions,Ke=g.defaultValue,Ge=A()(g,cn),Je=function(Xe){var lt;if(!Xt(Xe)){var qe=(0,me.toArr)(Xe).filter(function(bt){return bt}).map(function(bt){return(0,Ee.isPlainObject)(bt)?bt[se.value]:bt}),ht=(lt=wt(qe,J,se))===null||lt===void 0?void 0:lt.map(function(bt){return{label:bt[se.label],value:bt[se.value]}});return["tags","multiple"].includes(ge)||g.multiple?ht:ht.shift()}};return(0,t.jsx)(Re.default,o()({role:"button","data-testid":"select-object-".concat(ge||"single"),value:Je(w),defaultValue:Je(Ke),allowClear:{clearIcon:(0,t.jsx)(ar.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:De?(0,t.jsx)(d.Z,{}):(0,t.jsx)(Vn.Z,{image:Vn.Z.PRESENTED_IMAGE_SIMPLE}),options:J,fieldNames:se,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Xe,lt){var qe;return((qe=lt==null?void 0:lt[se.label||"label"])!==null&&qe!==void 0?qe:"").includes(Xe)},filterSort:function(Xe,lt){var qe,ht;return((qe=Xe==null?void 0:Xe[se.label||"label"])!==null&&qe!==void 0?qe:"").toLowerCase().localeCompare(((ht=lt==null?void 0:lt[se.label||"label"])!==null&&ht!==void 0?ht:"").toLowerCase())},onChange:function(Xe){var lt=wt((0,me.toArr)(Xe).map(function(qe){return qe.value}),Te||J,se);["tags","multiple"].includes(ge)||g.multiple?Q==null||Q(lt):Q==null||Q(lt.shift()||null)},mode:ge,tagRender:function(Xe){return(0,t.jsx)(_n.Z,o()(o()({role:"button","aria-label":Xe.label,closeIcon:(0,t.jsx)(mr.Z,{role:"button","aria-label":"icon-close-tag"})},Xe),{},{children:Xe.label}))}},Ge))},jt=function(g,w){var J;return((J=w==null?void 0:w.label)!==null&&J!==void 0?J:"").toLowerCase().includes((g||"").toLowerCase())},Gt=(0,a.connect)(function(B){var g=B.objectValue,w=B.loading,J=B.value,Q=B.rawOptions,se=B.defaultValue,ge=A()(B,Vt),De=B.multiple?"multiple":B.mode;if(De&&!["multiple","tags"].includes(De)&&(De=void 0),g)return(0,t.jsx)(Mt,o()(o()({rawOptions:Q},ge),{},{defaultValue:se,value:J,mode:De,loading:w}));var Te=function(Ge){return["tags","multiple"].includes(B.mode)||B.multiple?Ge?(0,me.toArr)(Ge):void 0:Ge};return(0,t.jsx)(Re.default,o()(o()({role:"button","data-testid":"select-".concat(De||"single"),showSearch:!0,filterOption:jt,allowClear:{clearIcon:(0,t.jsx)(ar.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:w?(0,t.jsx)(d.Z,{}):(0,t.jsx)(Vn.Z,{image:Vn.Z.PRESENTED_IMAGE_SIMPLE}),value:Te(J),defaultValue:Te(se),tagRender:function(Ge){return(0,t.jsx)(_n.Z,o()(o()({role:"button","aria-label":Ge.label,closeIcon:(0,t.jsx)(mr.Z,{role:"button","aria-label":"icon-close-tag"})},Ge),{},{children:Ge.label}))}},ge),{},{onChange:function(Ge){var Je;(Je=B.onChange)===null||Je===void 0||Je.call(B,Ge===void 0?null:Ge)},mode:De}))},(0,a.mapProps)({dataSource:"options"},function(B,g){return o()(o()({},B),{},{fieldNames:o()(o()({},Pt),B.fieldNames),suffixIcon:g!=null&&g.loading||g!=null&&g.validating?(0,t.jsx)(In.Z,{}):B.suffixIcon})}),(0,a.mapReadPretty)(Ut)),en=Gt;en.ReadPretty=Ut;var ln=en,Ot=e(36586),Zn=function(g,w){return(0,et.castArray)(g).filter(function(J){return J!=null}).map(function(J){return Nt()(J)==="object"?J[w.value]:J})},rn=(0,a.observer)(function(B){var g=o()(o()({},Pt),B.fieldNames),w=(0,a.useField)(),J=(0,a.useFieldSchema)(),Q=(0,Ot.a)(),se=(0,T.XC)(),ge=se.snapshot,De=(0,p.QT)(ge?M()(N()().mark(function Ke(){return N()().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.abrupt("return",{data:Q[J.name]});case 1:case"end":return Je.stop()}},Ke)})):o()(o()({action:"list"},B.service),{},{params:{paginate:!1,filter:ve()({},g.value,{$in:Zn(w.value,g)})}}),{refreshDeps:[B.service,w.value]}),Te=De.data;return(0,t.jsx)(en.ReadPretty,o()(o()({},B),{},{options:Te==null?void 0:Te.data}))},{displayName:"ReadPretty"}),Sn=e(8341),Rn=e(44990),jn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource"],vt="N/A",at=(0,a.connect)(function(B){var g,w,J=B.fieldNames,Q=J===void 0?{}:J,se=B.service,ge=se===void 0?{}:se,De=B.wait,Te=De===void 0?300:De,Ke=B.value,Ge=B.defaultValue,Je=B.objectValue,mt=B.manual,Xe=mt===void 0?!0:mt,lt=B.mapOptions,qe=B.targetField,ht=B.CustomDropdownRender,bt=B.optionFilter,Ct=B.dataSource,Wt=A()(B,jn),Bt=(0,Rn.FC)(),Tn=(0,Sn.FE)(Ct||Bt),pn=(0,c.useState)(!1),Dt=Ve()(pn,2),an=Dt[0],On=Dt[1],Kn=(0,c.useRef)(!1),wn=(0,a.useFieldSchema)(),xn=((g=wn["x-component-props"])===null||g===void 0?void 0:g.addMode)==="quickAdd",ur=(0,i.useCollection_deprecated)(),gn=ur.getField,Sr=(0,c.useRef)(null),Or=(0,i.useCollectionManager_deprecated)(),gr=Or.getCollectionJoinField,Hn=Or.getInterface,cr=wn["x-collection-field"]||wn.name,zn=gn(cr)||gr(cr),Cn=qe||(zn==null?void 0:zn.target)&&(Q==null?void 0:Q.label)&&gr("".concat(zn.target,".").concat(Q.label)),kn=(0,c.useMemo)(function(){if(Cn!=null&&Cn.interface){var Ir;return((Ir=Hn(Cn.interface))===null||Ir===void 0||(Ir=Ir.filterable)===null||Ir===void 0?void 0:Ir.operators[0].value)||"$includes"}return"$includes"},[Cn]),nr=(0,Yt.eJ)(),on=(0,c.useCallback)(function(Ir){try{return Ir.filter(function(Er){return["number","string"].includes(Nt()(Er[Q.value]))}).map(function(Er){var vo,Mo,Do=nr(Er[Q.label]);if(Cn!=null&&(vo=Cn.uiSchema)!==null&&vo!==void 0&&vo.enum)if(Array.isArray(Do))Do=Do.map(function(aa,Pl){var ia=Cn.uiSchema.enum.find(function(Ii){return Ii.value===aa});return ia?(0,t.jsx)(_n.Z,{role:"button",color:ia.color,style:{marginRight:3},children:(ia==null?void 0:ia.label)||aa},Pl):(0,t.jsx)(_n.Z,{role:"button",children:aa},aa)}).reverse();else{var Po=Cn.uiSchema.enum.find(function(aa){return aa.value===Do});Po&&(Do=(0,t.jsx)(_n.Z,{role:"button",color:Po.color,children:Po.label}))}if((Cn==null?void 0:Cn.type)==="date"&&(Do=tr()(Do).format("YYYY-MM-DD")),lt){var Wo;return lt((Wo={},ve()(Wo,Q.label,Do||vt),ve()(Wo,Q.value,Er[Q.value]),Wo))}return o()(o()({},Er),{},(Mo={},ve()(Mo,Q.label,Do||vt),ve()(Mo,Q.value,Er[Q.value]),Mo))}).filter(Boolean)}catch(Er){return console.error(Er),Ir}},[Cn==null?void 0:Cn.uiSchema,Q]),hn=(0,p.QT)(o()(o()({action:"list"},ge),{},{headers:Tn,params:o()(o()({pageSize:200},ge==null?void 0:ge.params),{},{filter:ge==null||(w=ge.params)===null||w===void 0?void 0:w.filter})}),{manual:Xe,debounceWait:Te}),Gn=hn.data,vr=hn.run,$n=hn.loading,dr=(0,c.useMemo)(function(){return JSON.stringify({service:ge,fieldNames:Q})},[ge,Q]),lr=(0,c.useCallback)(function(){return Sr.current&&ht?(0,t.jsx)(ht,{search:Sr.current,callBack:function(){Sr.current=null,On(!1)}}):null},[Sr.current]);(0,c.useEffect)(function(){Kn.current&&vr()},[dr]);var Mr=function(){var Ir=M()(N()().mark(function Er(vo){var Mo;return N()().wrap(function(Po){for(;;)switch(Po.prev=Po.next){case 0:vr({filter:(0,Ur.EO)([vo?ve()({},Q.label,ve()({},kn,vo)):{},ge==null||(Mo=ge.params)===null||Mo===void 0?void 0:Mo.filter])}),Sr.current=vo;case 2:case"end":return Po.stop()}},Er)}));return function(vo){return Ir.apply(this,arguments)}}(),Vr=(0,c.useMemo)(function(){var Ir,Er=Ke||Ge;if(!(Gn!=null&&(Ir=Gn.data)!==null&&Ir!==void 0&&Ir.length))return Er!=null?Array.isArray(Er)?Er:[Er]:[];var vo=Er!=null&&(Array.isArray(Er)?Er:[o()(o()({},Er),{},ve()({},Q.value,Er[Q.value]||Er))])||[],Mo=typeof bt=="function"?Gn.data.filter(bt):Gn.data;return(0,et.uniqBy)(Mo.concat(vo!=null?vo:[]),Q.value)},[Ke,Ge,Gn==null?void 0:Gn.data,Q.value,bt]),Lr=function(Er){On(Er),Sr.current=null,Er&&vr(),Kn.current=!0};return(0,t.jsx)(en,o()(o()({open:an,popupMatchSelectWidth:!1,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:Q,onSearch:Mr,onDropdownVisibleChange:Lr,objectValue:Je,value:Ke,defaultValue:Ge},Wt),{},{loading:Gn?$n:!0,options:on(Vr),rawOptions:Vr,dropdownRender:function(Er){var vo=Vr.some(function(Mo){return Mo[Q.label]===Sr.current});return(0,t.jsx)(t.Fragment,{children:xn?(0,t.jsxs)(t.Fragment,{children:[!((Gn==null?void 0:Gn.data.length)===0&&Sr!==null&&Sr!==void 0&&Sr.current)&&Er,(Gn==null?void 0:Gn.data.length)>0&&(Sr==null?void 0:Sr.current)&&!vo&&(0,t.jsx)(qn.Z,{style:{margin:0}}),!vo&&(0,t.jsx)(lr,{})]}):Er})}}))},(0,a.mapProps)({dataSource:"options"},function(B,g){var w,J=(0,a.useFieldSchema)();return o()(o()({},B),{},{fieldNames:o()(o()(o()(o()({},Pt),B.fieldNames),g.componentProps.fieldNames),(w=J["x-component-props"])===null||w===void 0?void 0:w.fieldNames),suffixIcon:g!=null&&g.loading||g!=null&&g.validating?(0,t.jsx)(In.Z,{}):B.suffixIcon})}),(0,a.mapReadPretty)(rn)),_t=at;_t.ReadPretty=rn;var At=null,rt=function(){var g=(0,a.useFieldSchema)(),w=(0,Ye.$)(),J=w.t,Q=(0,Se.bz)(),se=Q.duplicateData,ge=(0,i.useCollectionManager_deprecated)(),De=ge.getCollectionJoinField;if(se)return se;var Te=ke(g),Ke=Te.items,Ge=Ke===void 0?[]:Ke,Je=Te.display,mt=Je===void 0?!0:Je;Ge.forEach(function(qe){try{var ht;qe.fields=(ht=qe.fields)===null||ht===void 0?void 0:ht.map(function(bt){var Ct=De("".concat(qe.collection,".").concat(bt));return Ct?bt:""}).filter(Boolean)}catch(bt){(0,Ee.error)(bt),qe.fields=[]}});var Xe=[{key:"none",title:J("None")}].concat(Ge.map(function(qe,ht){return o()(o()({key:ht},qe),{},{isLeaf:qe.dataId!==null&&qe.dataId!==void 0,titleCollectionField:(qe==null?void 0:qe.titleField)&&De("".concat(qe.collection,".").concat(qe.titleField))})})),lt=Ge.find(function(qe){return qe.default});return{templates:Xe,display:mt,defaultTemplate:lt,enabled:Ge.length>0&&Ge.every(function(qe){return qe.dataId||qe.dataScope})}},$e=function(g){var w=g.style,J=w===void 0?{}:w,Q=g.form,se=(0,Lt.dQ)(),ge=se.token,De=rt(),Te=De.templates,Ke=De.display,Ge=De.enabled,Je=De.defaultTemplate,mt=(0,i.useCollectionManager_deprecated)(),Xe=mt.getCollectionJoinField,lt=(0,it.ss)(Te),qe=(0,c.useState)((Je==null?void 0:Je.key)||"none"),ht=Ve()(qe,2),bt=ht[0],Ct=ht[1],Wt=(0,c.useState)(null),Bt=Ve()(Wt,2),Tn=Bt[0],pn=Bt[1],Dt=(0,p.LY)(),an=(0,Ye.$)(),On=an.t;(0,c.useEffect)(function(){Ge&&Je&&Q&&(Q.__template=!0,Je.key==="duplicate"&&ur(Je.dataId,Je))},[]),(0,c.useEffect)(function(){lt!=null&&lt.some(function(Sr){return Sr.key===bt})||xn("none")},[lt]);var Kn=(0,c.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:ge.colorFillAlter,padding:ge.padding},J)},[J,ge.colorFillAlter]),wn=(0,c.useMemo)(function(){return{fontSize:ge.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:ge.marginXS}},[ge.fontSize,ge.marginXS]),xn=(0,c.useCallback)(function(){var Sr=M()(N()().mark(function Or(gr){return N()().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:Ct(gr),pn(null),Q==null||Q.reset();case 3:case"end":return cr.stop()}},Or)}));return function(Or){return Sr.apply(this,arguments)}}(),[]),ur=(0,c.useCallback)(function(){var Sr=M()(N()().mark(function Or(gr,Hn){var cr;return N()().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:cr=o()(o()({},Hn),{},{dataId:gr}),pn(Hn),We(Dt,cr,On).then(function(kn){return Q&&kn&&(Q.reset(),Q.__template=!0,(0,Ee.forEach)(kn,function(nr,on){if(nr){var hn;Q.values[on]=nr,Q==null||(hn=Q.setInitialValuesIn)===null||hn===void 0||hn.call(Q,on,nr)}})),kn}).catch(function(kn){console.error(kn)});case 3:case"end":return Cn.stop()}},Or)}));return function(Or,gr){return Sr.apply(this,arguments)}}(),[]);if(!Ge||!Ke)return null;var gn=lt==null?void 0:lt.find(function(Sr){return Sr.key===bt});return(0,t.jsx)("div",{style:Kn,children:(0,t.jsxs)(Qe.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:wn,children:[On("Data template"),": "]}),(0,t.jsx)(Re.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:lt,fieldNames:{label:"title",value:"key"},value:bt,onChange:xn}),bt!=="none"&&gn&&(0,t.jsx)(_t,{style:{width:220},fieldNames:{label:gn==null?void 0:gn.titleField,value:"id"},target:gn==null?void 0:gn.collection,value:Tn,objectValue:!0,service:{resource:gn==null?void 0:gn.collection,params:{filter:gn==null?void 0:gn.dataScope}},onChange:function(Or){return ur(Or==null?void 0:Or.id,o()(o()({},Or),gn))},targetField:Xe("".concat(gn==null?void 0:gn.collection,".").concat(gn.titleField))})]})})};function ke(B){var g=(0,Se.Fi)(B);return g?je().cloneDeep(g["x-data-templates"])||{}:{}}function We(B,g,w){return Fe.apply(this,arguments)}function Fe(){return Fe=M()(N()().mark(function B(g,w,J){return N()().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!(w.fields.length===0||!w.dataId)){se.next=2;break}return se.abrupt("return");case 2:return se.abrupt("return",g.resource(w.collection).get({filterByTk:w.dataId,fields:w.fields,isTemplate:!0}).then(function(ge){var De;return(De=ge.data)===null||De===void 0?void 0:De.data}));case 3:case"end":return se.stop()}},B)})),Fe.apply(this,arguments)}var Me=e(3192),we=function(){var g,w=(0,Ce.aZ)(),J=(0,a.useFieldSchema)(),Q=Ie.Z.useToken(),se=Q.token,ge=(0,Yt.ng)(),De=ge.designable,Te=(0,Me.g)()||{},Ke=Te.heightProps,Ge=Ke||{},Je=Ge.title,mt=rt(),Xe=mt.display,lt=mt.enabled,qe=J.reduceProperties(function(xn,ur){return ur["x-component"]==="ActionBar"?ur:xn}),ht=((g=J.parent)===null||g===void 0?void 0:g["x-decorator"])==="FilterFormBlockProvider",bt=Object.keys((qe==null?void 0:qe.properties)||{}).length>0,Ct=bt||De?se.controlHeight+(ht?se.marginLG:2*se.marginLG):ht?se.marginLG:2*se.marginLG,Wt=Je?se.fontSizeLG*se.lineHeightLG+se.padding*2-1:0,Bt=(0,ue.hS)()||{},Tn=Bt.data,pn=(Tn==null?void 0:Tn.meta)||{},Dt=pn.count,an=pn.pageSize,On=Dt>an,Kn=On?se.controlHeightSM+se.paddingLG:0,wn=Xe&&lt?se.controlHeight+2*se.padding+se.margin:0;return w-Ct-se.paddingLG-Wt-Kn-wn},tt=e(25324),nt,dt,ft=["form","children"],Ft=["form","children","disabled"],Kt=["form","disabled"],zt=function(g){var w=g.form,J=g.children,Q=A()(g,ft),se=(0,a.useField)(),ge=(0,a.useFieldSchema)(),De=(0,Yt.lI)(w.createVoidField(o()(o()({},se.props),{},{basePath:""}))),Te=we(),Ke=Ie.Z.useToken(),Ge=Ke.token;return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:w,children:(0,t.jsx)(S.FormLayout,o()(o()({layout:"vertical"},Q),{},{children:(0,t.jsx)("div",{className:(0,ee.css)(nt||(nt=Z()([`
555
+ `]))),f=(0,v.observer)(function(F){var C=(0,b.ett)();return(0,$.jsxs)(b.TRI,{className:j,children:[(0,$.jsx)(C,{}),F.children]})},{displayName:"TableColumnActionBar"})},70027:function(He,le,e){"use strict";e.d(le,{h:function(){return $},z:function(){return b}});var W=e(94350),u=e(67294),N=e(21143),v=e(29050),M=e(85893),b=function(){var j=(0,N.useCollection_deprecated)(),f=j.getField,F=(0,N.useCompile)(),C=(0,W.useFieldSchema)(),O=C.reduceProperties(function(o,c){return c["x-component"]==="CollectionField"?c:o},null);if(!O)return{};var n=f(O.name);return{columnSchema:C,fieldSchema:O,collectionField:n,uiSchema:F(n==null?void 0:n.uiSchema)}},$=function(j){var f=(0,N.useDesigner)(),F=(0,W.useField)(),C=b(),O=C.fieldSchema,n=C.uiSchema,o=C.collectionField,c=(0,N.useDesignable)(),L=c.refresh,E=(0,N.useCompile)();return(0,u.useLayoutEffect)(function(){F.title||O&&n!=null&&n.title&&(F.title=n==null?void 0:n.title)},[n==null?void 0:n.title]),(0,M.jsxs)(N.SortableItem,{className:v.m,children:[(0,M.jsx)(f,{fieldSchema:O,uiSchema:n,collectionField:o}),F.title||E(n==null?void 0:n.title)]})}},9829:function(He,le,e){"use strict";e.d(le,{fU:function(){return Ne},gq:function(){return re},Qm:function(){return Ve}});var W=e(19632),u=e.n(W),N=e(5574),v=e.n(N),M=e(97857),b=e.n(M),$=e(13769),r=e.n($),j=e(23430),f=e(48689),F=e(24969),C=e(50888),O=e(64082),n=e(94350),o=e(79801),c=e(42075),L=e(15867),E=e(26410),y=e(83062),m=e(5914),K=e(48807),T=e(93967),k=e.n(T),A=e(93162),S=e(56755),x=e.n(S),a=e(67294),D=e(26793),d=e(92879),p=e(87487),i=e(15503),l=e(9780),h=e(52677),I=e(63198),t=e(24193),U=e.n(t),H=e(12174),Y=[{ext:/\.docx?$/i,icon:"//img.alicdn.com/tfs/TB1n8jfr1uSBuNjy1XcXXcYjFXa-200-200.png"},{ext:/\.pptx?$/i,icon:"//img.alicdn.com/tfs/TB1ItgWr_tYBeNjy1XdXXXXyVXa-200-200.png"},{ext:/\.jpe?g$/i,icon:"//img.alicdn.com/tfs/TB1wrT5r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.pdf$/i,icon:"//img.alicdn.com/tfs/TB1GwD8r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.png$/i,icon:"//img.alicdn.com/tfs/TB1BHT5r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.eps$/i,icon:"//img.alicdn.com/tfs/TB1G_iGrVOWBuNjy0FiXXXFxVXa-200-200.png"},{ext:/\.ai$/i,icon:"//img.alicdn.com/tfs/TB1B2cVr_tYBeNjy1XdXXXXyVXa-200-200.png"},{ext:/\.gif$/i,icon:"//img.alicdn.com/tfs/TB1DTiGrVOWBuNjy0FiXXXFxVXa-200-200.png"},{ext:/\.svg$/i,icon:"//img.alicdn.com/tfs/TB1uUm9rY9YBuNjy0FgXXcxcXXa-200-200.png"},{ext:/\.xlsx?$/i,icon:"//img.alicdn.com/tfs/TB1any1r1OSBuNjy0FdXXbDnVXa-200-200.png"},{ext:/\.psd?$/i,icon:"//img.alicdn.com/tfs/TB1_nu1r1OSBuNjy0FdXXbDnVXa-200-200.png"},{ext:/\.(wav|aif|aiff|au|mp1|mp2|mp3|ra|rm|ram|mid|rmi)$/i,icon:"//img.alicdn.com/tfs/TB1jPvwr49YBuNjy0FfXXXIsVXa-200-200.png"},{ext:/\.(avi|wmv|mpg|mpeg|vob|dat|3gp|mp4|mkv|rm|rmvb|mov|flv)$/i,icon:"//img.alicdn.com/tfs/TB1FrT5r9BYBeNjy0FeXXbnmFXa-200-200.png"},{ext:/\.(zip|rar|arj|z|gz|iso|jar|ace|tar|uue|dmg|pkg|lzh|cab)$/i,icon:"//img.alicdn.com/tfs/TB10jmfr29TBuNjy0FcXXbeiFXa-200-200.png"}],z="//img.alicdn.com/tfs/TB10.R4r3mTBuNjy1XbXXaMrVXa-200-200.png",R=1024*1024*1024,G=function(je){return U()(je.mimetype||je.type,"image/*")},X=function(je){return U()(je.mimetype||je.type,"application/pdf")},ce=function(je){if(!je)return[];if(_typeof(je)!=="object")return[];var Ye=je;if(!Array.isArray(je)){if(Object.keys(_objectSpread({},je)).length===0)return[];Ye=[je]}return Ye.map(function(it){return[it.id||it.uid,ye(it)]})},ne=function(je){if(!je)return[];if(_typeof(je)!=="object")return[];if(Object.keys(je).length===0)return[];var Ye=je;return!Array.isArray(je)&&_typeof(je)==="object"&&(Ye=[je]),Ye.map(function(it){return _objectSpread(_objectSpread({},it),{},{title:it.title||it.name,imageUrl:pe(it.url,{exclude:[".png",".jpg",".jpeg",".gif"]})})})},oe=function(je){return(0,I.isValid)(je)?Object.keys(je).length===0?[]:(0,I.toArr)(je):[]},ie=function(je,Ye){return Ye&&(0,I.isArr)(Ye.include)?Ye.include.some(function(it){return je.test(it)}):Ye&&(0,I.isArr)(Ye.exclude)?!Ye.exclude.some(function(it){return je.test(it)}):!0},pe=function(je){for(var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=0;it<Y.length;it++)if(Y[it].ext.test(je))return ie(Y[it].ext,Ye)?Y[it].icon||z:je;return z},V=function(je){return(je==null?void 0:je.url)||(je==null?void 0:je.downloadURL)||(je==null?void 0:je.imgURL)||(je==null?void 0:je.name)},xe=function(je){return(je==null?void 0:je.thumbUrl)||(je==null?void 0:je.url)||(je==null?void 0:je.downloadURL)||(je==null?void 0:je.imgURL)||(je==null?void 0:je.name)};function de(et){var je,Ye=et.error,it=et.response;if(Ye instanceof Error&&"isAxiosError"in Ye)if(Ye.response){var Lt,dn;return(Lt=Ye.response.data)===null||Lt===void 0||(Lt=Lt.errors)===null||Lt===void 0||(dn=Lt.map)===null||dn===void 0?void 0:dn.call(Lt,function(_n){return _n==null?void 0:_n.message}).join(", ")}else return Ye.message;if(!it)return"";if(typeof it=="string")return it;var Nt=(je=it.data)!==null&&je!==void 0?je:{},In=Nt.errors;return In!=null&&In.length?In.map(function(_n){return _n==null?void 0:_n.message}).join(", "):""}function ae(et){var je=G(et)?URL.createObjectURL(et.originFileObj):pe(et.name),Ye=de(et);return b()(b()({},et),{},{title:et.name,thumbUrl:je,imageUrl:je,response:Ye})}var Pe=function(je){return je&&je.length?je.map(ae):[]};function Se(et){var je=(0,H.LY)();return b()(b()({},et),{},{customRequest:function(it){var Lt=it.action,dn=it.data,Nt=it.file,In=it.filename,_n=it.headers,qn=it.onError,er=it.onProgress,tr=it.onSuccess,Ur=it.withCredentials,Yt=new FormData;return dn&&Object.keys(dn).forEach(function(ar){Yt.append(ar,dn[ar])}),Yt.append(In,Nt),je.axios.post(Lt,Yt,{withCredentials:Ur,headers:_n,onUploadProgress:function(mr){var Vn=mr.total,fn=mr.loaded;er({percent:Math.round(fn/Vn*100).toFixed(2)},Nt)}}).then(function(ar){var mr=ar.data;tr(mr,Nt)}).catch(qn).finally(function(){}),{abort:function(){console.log("upload progress is aborted.")}}}})}function Ae(et){var je;return(je=et.response)===null||je===void 0?void 0:je.data}var ye=function(je){var Ye;return(Ye=je)!==null&&Ye!==void 0&&(Ye=Ye.response)!==null&&Ye!==void 0&&Ye.data&&(je=b()({uid:je.uid},je.response.data)),b()(b()({},je),{},{id:je.id||je.uid,title:je.title||je.name,imageUrl:pe(je.url,{exclude:[".png",".jpg",".jpeg",".gif"]})})},fe=function(je){return oe(je).filter(Boolean).map(ye)},ve=function(je){return oe(je).filter(function(Ye){return!Ye.response||Ye.status==="done"}).map(function(Ye){var it;return(Ye==null||(it=Ye.response)===null||it===void 0?void 0:it.data)||Ye})},te={size:function(je,Ye){var it=Ye!=null?Ye:R;return it===0||je.size<=it?null:"File size exceeds the limit"},mimetype:function(je){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"*",it=Ye.toString().trim();return!it||it==="*"||it.split(",").filter(Boolean).some(U()(je.type))?null:"File type is not allowed"}};function Z(et,je){if(!je)return null;var Ye=Object.keys(je);if(!Ye.length)return null;for(var it=0,Lt=Ye;it<Lt.length;it++){var dn=Lt[it],Nt=te[dn](et,je[dn]);if(Nt)return Nt}return null}function ee(et){var je=(0,D.$)(),Ye=je.t;return(0,a.useCallback)(function(it){var Lt=Z(it,et);return Lt?(it.status="error",it.response=Ye(Lt)):it.status==="error"&&(delete it.status,delete it.response),!Lt},[et])}var he=e(92601),me=e(85893),Ee=["onChange"],Ie=["rules"],Le=["tipContent","onChange"],Ue=["rules"],Be=["title"];function be(et){var je=et.onChange,Ye=r()(et,Ee),it=(0,a.useCallback)(function(Lt){je==null||je(fe(Lt.fileList))},[je]);return(0,me.jsx)(o.Z,b()(b()({},Se(Ye)),{},{onChange:it}))}function _e(et){var je=et.value,Ye=et.onChange,it=et.disabled,Lt=et.multiple,dn=et.size,Nt=(0,he.y)(),In=Nt.wrapSSR,_n=Nt.hashId,qn=Nt.componentCls,er=K.Z.default?K.Z.default:K.Z;return er(qn),In((0,me.jsx)("div",{className:k()("".concat(qn,"-wrapper"),"".concat(qn,"-picture-card-wrapper"),"nb-upload",dn?"nb-upload-".concat(dn):null,_n),children:(0,me.jsx)("div",{className:k()("".concat(qn,"-list"),"".concat(qn,"-list-picture-card")),children:(0,me.jsx)(Ne,{disabled:it,readPretty:!0,multiple:Lt,value:je,onChange:Ye})})}))}var re=(0,n.connect)(be,(0,n.mapProps)({value:"fileList"}),(0,n.mapReadPretty)(_e));re.ReadPretty=_e;function P(et){var je=et!=null?et:R,Ye=(0,D.$)(),it=Ye.t,Lt=Ye.i18n,dn=x()(je,{base:2,standard:"jedec",locale:Lt.language});return je!==0?it("File size should not exceed {{size}}.",{size:dn}):""}function q(et){var je,Ye=et.file,it=et.disabled,Lt=et.onPreview,dn=et.onDelete,Nt=et.readPretty,In=(0,he.y)(),_n=In.componentCls,qn=(0,D.$)(),er=qn.t,tr=(0,a.useCallback)(function(fn){fn.preventDefault(),fn.stopPropagation(),Lt==null||Lt(Ye)},[Ye,Lt]),Ur=(0,a.useCallback)(function(){dn==null||dn(Ye)},[Ye,dn]),Yt=(0,a.useCallback)(function(){(0,A.saveAs)(Ye.url,"".concat(Ye.title).concat(Ye.extname))},[Ye]),ar=[(0,me.jsx)("span",{className:"".concat(_n,"-list-item-thumbnail"),children:Ye.imageUrl&&(0,me.jsx)("img",{src:Ye.imageUrl,alt:Ye.title,className:"".concat(_n,"-list-item-image")})},"thumbnail"),(0,me.jsx)("span",{className:"".concat(_n,"-list-item-name"),title:Ye.title,children:Ye.status==="uploading"?er("Uploading"):Ye.title},"title")],mr=Ye.id?(0,me.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:Ye.url,onClick:tr,children:ar}):(0,me.jsx)("span",{className:"".concat(_n,"-span"),children:ar}),Vn=(0,me.jsxs)("div",{className:k()("".concat(_n,"-list-item"),"".concat(_n,"-list-item-").concat((je=Ye.status)!==null&&je!==void 0?je:"done"),"".concat(_n,"-list-item-list-type-picture-card")),children:[(0,me.jsx)("div",{className:"".concat(_n,"-list-item-info"),children:mr}),(0,me.jsx)("span",{className:"".concat(_n,"-list-item-actions"),children:(0,me.jsxs)(c.Z,{size:3,children:[!Nt&&Ye.id&&(0,me.jsx)(L.ZP,{size:"small",type:"text",icon:(0,me.jsx)(j.Z,{}),onClick:Yt}),!Nt&&!it&&(0,me.jsx)(L.ZP,{size:"small",type:"text",icon:(0,me.jsx)(f.Z,{}),onClick:Ur})]})}),Ye.status==="uploading"&&(0,me.jsx)("div",{className:"".concat(_n,"-list-item-progress"),children:(0,me.jsx)(E.Z,{size:2,type:"line",showInfo:!1,percent:Ye.percent})})]});return(0,me.jsx)("div",{className:"".concat(_n,"-list-picture-card-container ").concat(_n,"-list-item-container"),children:Ye.status==="error"?(0,me.jsx)(y.Z,{title:Ye.response,getPopupContainer:function(Wn){return Wn.parentNode},children:Vn}):Vn})}var Ce=[{matcher:G,Component:function(je){var Ye,it,Lt,dn,Nt=je.index,In=je.list,_n=je.onSwitchIndex,qn=(0,a.useCallback)(function(er){er.preventDefault();var tr=In[Nt];(0,A.saveAs)(tr.url,"".concat(tr.title).concat(tr.extname))},[Nt,In]);return(0,me.jsx)(d.Z,{mainSrc:(Ye=In[Nt])===null||Ye===void 0?void 0:Ye.imageUrl,nextSrc:(it=In[(Nt+1)%In.length])===null||it===void 0?void 0:it.imageUrl,prevSrc:(Lt=In[(Nt+In.length-1)%In.length])===null||Lt===void 0?void 0:Lt.imageUrl,onCloseRequest:function(){return _n(null)},onMovePrevRequest:function(){return _n((Nt+In.length-1)%In.length)},onMoveNextRequest:function(){return _n((Nt+1)%In.length)},imageTitle:(dn=In[Nt])===null||dn===void 0?void 0:dn.title,toolbarButtons:[(0,me.jsx)("button",{style:{fontSize:22,background:"none",lineHeight:1},type:"button","aria-label":"Download",title:"Download",className:"ril-zoom-in ril__toolbarItemChild ril__builtinButton",onClick:qn,children:(0,me.jsx)(j.Z,{})},"preview-img")]})}},{matcher:X,Component:function(je){var Ye=je.index,it=je.list,Lt=je.onSwitchIndex,dn=(0,D.$)(),Nt=dn.t,In=(0,a.useCallback)(function(qn){qn.preventDefault(),qn.stopPropagation();var er=it[Ye];(0,A.saveAs)(er.url,"".concat(er.title).concat(er.extname))},[Ye,it]),_n=(0,a.useCallback)(function(){Lt(null)},[Lt]);return(0,me.jsx)(m.Z,{open:Ye!=null,title:"PDF - "+it[Ye].title,onCancel:_n,footer:[(0,me.jsx)(L.ZP,{style:{textTransform:"capitalize"},onClick:In,children:Nt("Download")},"download"),(0,me.jsx)(L.ZP,{onClick:_n,style:{textTransform:"capitalize"},children:Nt("Close")},"close")],width:"85vw",centered:!0,children:(0,me.jsx)("div",{style:{padding:"8px",maxWidth:"100%",maxHeight:"calc(100vh - 256px)",height:"90vh",width:"100%",background:"white",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"auto"},children:(0,me.jsx)("iframe",{src:it[Ye].url,style:{width:"100%",maxHeight:"90vh",flex:"1 1 auto"}})})})}}];function ue(et){var je,Ye=et.index,it=et.onSwitchIndex,Lt=et.list;if(Ye==null)return null;var dn=Lt[Ye],Nt=(je=Ce.find(function(_n){return _n.matcher(dn)}))!==null&&je!==void 0?je:{},In=Nt.Component;return In?(0,me.jsx)(In,{index:Ye,list:Lt,onSwitchIndex:it}):null}function Ne(et){var je=et.disabled,Ye=et.multiple,it=et.value,Lt=et.onChange,dn=et.readPretty,Nt=(0,a.useState)([]),In=v()(Nt,2),_n=In[0],qn=In[1],er=(0,a.useState)(null),tr=v()(er,2),Ur=tr[0],Yt=tr[1];(0,a.useEffect)(function(){var Vn=fe(it);qn(Vn)},[it]);var ar=(0,a.useCallback)(function(Vn){var fn=_n.findIndex(function(Fn){return Fn.id===Vn.id}),Wn=Ce.find(function(Fn){return Fn.matcher(Vn)});Wn?Yt(fn):Vn.id&&(0,A.saveAs)(Vn.url,"".concat(Vn.title).concat(Vn.extname))},[_n]),mr=(0,a.useCallback)(function(Vn){Lt(Ye?it.filter(function(fn){return fn.id!==Vn.id}):null)},[Ye,Lt,it]);return(0,me.jsxs)(me.Fragment,{children:[_n.map(function(Vn,fn){return(0,me.jsx)(q,{file:Vn,index:fn,disabled:je,onPreview:ar,onDelete:mr,readPretty:dn},Vn.id)}),(0,me.jsx)(ue,{index:Ur,onSwitchIndex:Yt,list:_n})]})}function Ve(et){var je=et.rules,Ye=r()(et,Ie),it=Ye.disabled,Lt=Ye.multiple,dn=Ye.value,Nt=Ye.onChange,In=(0,a.useState)([]),_n=v()(In,2),qn=_n[0],er=_n[1],tr=(0,D.$)(),Ur=tr.t,Yt=(0,he.y)(),ar=Yt.componentCls,mr=(0,n.useField)(),Vn=Se(Ye),fn=ee(je);(0,a.useEffect)(function(){var Jt=qn.find(function(Ut){return Ut.status==="error"});Jt?mr.setFeedback({type:"error",code:"UploadError",messages:[Ur("Incomplete uploading files need to be resolved")]}):mr.setFeedback({})},[mr,qn]);var Wn=(0,a.useCallback)(function(Jt){if(Lt){var Ut=Jt.fileList.filter(function(Xt){return Xt.status==="done"});if(Ut.length){var cn=[].concat(u()(dn!=null?dn:[]),u()(Ut.map(Ae)));Nt==null||Nt(cn)}er(Jt.fileList.filter(function(Xt){return Xt.status!=="done"}).map(ae))}else{var Vt=Jt.fileList.find(function(Xt){return Xt.uid===Jt.file.uid});Vt.status==="done"?(Nt==null||Nt(Ae(Vt)),er([])):er([ae(Vt)])}},[dn,Lt,Nt]),Fn=(0,a.useCallback)(function(Jt){er(function(Ut){var cn=Ut.indexOf(Jt);return Ut.splice(cn,1),u()(Ut)})},[]),$t=je!=null?je:{},gt=$t.mimetype,Pt=$t.size,Zt=P(Pt),wt=!it&&(Lt||(!dn||Array.isArray(dn)&&!dn.length)&&!qn.length);return(0,me.jsxs)(me.Fragment,{children:[qn.map(function(Jt,Ut){return(0,me.jsx)(q,{file:Jt,index:Ut,disabled:it,onDelete:Fn},Jt.uid)}),(0,me.jsx)("div",{className:k()("".concat(ar,"-list-picture-card-container"),"".concat(ar,"-list-item-container")),style:wt?{}:{display:"none"},children:(0,me.jsx)(y.Z,{title:Zt,children:(0,me.jsx)(o.Z,b()(b()({accept:gt},Vn),{},{disabled:it,multiple:Lt,listType:"picture-card",fileList:qn,beforeUpload:fn,onChange:Wn,showUploadList:!1,children:wt?(0,me.jsxs)("span",{children:[(0,me.jsx)(F.Z,{}),(0,me.jsx)("br",{})," ",Ur("Upload")]}):null}))})})]})}function Qe(et){var je=(0,he.y)(),Ye=je.wrapSSR,it=je.hashId,Lt=je.componentCls;return Ye((0,me.jsx)("div",{className:k()("".concat(Lt,"-wrapper"),"".concat(Lt,"-picture-card-wrapper"),"nb-upload",it),children:(0,me.jsxs)("div",{className:k()("".concat(Lt,"-list"),"".concat(Lt,"-list-picture-card")),children:[(0,me.jsx)(Ne,b()({},et)),(0,me.jsx)(Ve,b()({},et))]})}))}Qe.ReadPretty=_e,re.Attachment=(0,i.t)((0,n.connect)(Qe,(0,n.mapReadPretty)(Qe.ReadPretty)),{displayName:"Upload.Attachment"}),re.Dragger=(0,n.connect)(function(et){var je=et.tipContent,Ye=et.onChange,it=r()(et,Le),Lt=(0,he.y)(),dn=Lt.wrapSSR,Nt=Lt.hashId,In=Lt.componentCls,_n=(0,a.useCallback)(function(qn){Ye==null||Ye(fe(qn.fileList))},[Ye]);return dn((0,me.jsx)("div",{className:k()("".concat(In,"-dragger"),Nt),children:(0,me.jsxs)(o.Z.Dragger,b()(b()({},Se(it)),{},{onChange:_n,children:[je,et.children]}))}))},(0,n.mapProps)({value:"fileList"})),re.DraggerV2=(0,i.t)((0,n.connect)(function(et){var je=et.rules,Ye=r()(et,Ue),it=(0,D.$)(),Lt=it.t,dn=Lt("Click or drag file to this area to upload"),Nt=(0,l.w)(Ye),In=Nt.title,_n=In===void 0?dn:In,qn=r()(Nt,Be),er=(0,a.useState)(!1),tr=v()(er,2),Ur=tr[0],Yt=tr[1],ar=(0,he.y)(),mr=ar.wrapSSR,Vn=ar.hashId,fn=ar.componentCls,Wn=ee(je),Fn=je!=null?je:{},$t=Fn.size,gt=Fn.mimetype,Pt=P($t),Zt=(0,a.useCallback)(function(wt){var Jt=wt.fileList,Ut=qn.onChange;Ut==null||Ut(Jt),Jt.some(function(cn){return cn.status==="uploading"})?Yt(!0):Yt(!1)},[qn]);return mr((0,me.jsx)("div",{className:k()("".concat(fn,"-dragger"),Vn),children:(0,me.jsxs)(o.Z.Dragger,b()(b()({},Se(b()(b()(b()({},Ye),qn),{},{accept:gt,onChange:Zt,beforeUpload:Wn}))),{},{children:[(0,me.jsx)("p",{className:"".concat(fn,"-drag-icon"),children:Ur?(0,me.jsx)(C.Z,{style:{fontSize:36},spin:!0}):(0,me.jsx)(O.Z,{})}),(0,me.jsx)("p",{className:"".concat(fn,"-text"),children:_n}),(0,me.jsxs)("ul",{children:[(0,me.jsx)("li",{className:"".concat(fn,"-hint"),children:Lt("Support for a single or bulk upload.")}),(0,me.jsx)("li",{className:"".concat(fn,"-hint"),children:Pt})]})]}))}))},(0,n.mapProps)({value:"fileList"})),{displayName:"Upload.DraggerV2"});var Re=null},78472:function(He,le,e){"use strict";e.d(le,{Qm:function(){return W.Qm},fU:function(){return W.fU},gq:function(){return W.gq}});var W=e(9829)},92601:function(He,le,e){"use strict";e.d(le,{y:function(){return v}});var W=e(9783),u=e.n(W),N=e(60094),v=(0,N.l6)("upload",function(M){var b,$,r,j=M.componentCls,f=M.antCls;return u()({},"".concat(j,"-wrapper"),(r={"&.nb-upload.nb-upload-small":(b={},u()(b,"".concat(j,"-list-picture-card-container"),{margin:"0 3px 3px 0 !important",height:"32px !important",width:"32px !important",marginBlock:"0 !important"}),u()(b,"".concat(j,"-list-picture-card ").concat(j,"-list-item-name").concat(j,"-list-item-name"),{display:"none !important"}),u()(b,"".concat(j,"-list-picture ").concat(j,"-list-item, ").concat(j,"-list-picture-card ").concat(j,"-list-item"),u()({borderRadius:"4px",padding:"1px !important"},"".concat(j,"-list-item-image"),{borderRadius:"2px"})),b),"&.nb-upload-large":u()({},"".concat(j,"-list-picture-card-container"),{margin:"0 3px 3px 0 !important",height:"160px !important",width:"160px !important",marginBlock:"0 28px !important"}),"&.nb-upload":($={},u()($,"".concat(j,"-list-item, ").concat(j,"-list-item-list-type-picture-card"),{padding:"3px !important"}),u()($,"".concat(j,"-list-item-thumbnail"),{img:{objectFit:"cover !important"}}),u()($,"".concat(j,"-list-item-actions"),u()({left:"auto !important",right:"2px !important",top:"2px !important",transform:"none !important",width:"fit-content !important"},"".concat(f,"-btn-text:hover, ").concat(f,"-btn-text:focus"),{background:"rgba(0, 0, 0, 0.4)"})),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item-info"),{overflow:"inherit",width:"100%",height:"100%"}),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item-name"),{display:"block !important",marginTop:"10px",fontSize:"13px",color:"#636363"}),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item::before"),{display:"none !important"}),u()($,"".concat(j,"-list-picture-card ").concat(j,"-list-item-progress"),{bottom:"calc(50% - 11px)",pointerEvents:"none"}),u()($,"".concat(f,"-btn"),{background:"rgba(0, 0, 0, 0.5)"}),u()($,"".concat(j,"-list-picture-card-container"),{marginBlock:"0 28px !important"}),$)},u()(r,"".concat(j,"-list-item-error"),u()({},"".concat(j,"-list-item-info img"),{opacity:.6})),u()(r,"".concat(j,"-drag"),u()({},"".concat(j,"-drag-container"),{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",ul:u()({color:M.colorTextSecondary},"".concat(j,"-hint"),{textAlign:"left"})})),r))})},72724:function(He,le,e){"use strict";e.d(le,{L:function(){return O}});var W=e(97857),u=e.n(W),N=e(5574),v=e.n(N),M=e(94697),b=e(94350),$=e(67294),r=e(26793),j=e(21143),f=e(84577),F=e(85893),C=function(o){var c=(0,f.ng)(),L=c.refresh,E=(0,j.useAPIClient)(),y=(0,r.$)(),m=y.t;return(0,$.useCallback)(function(K){var T,k,A,S,x,a,D,d,p=K.active,i=K.over,l=p==null||(T=p.data)===null||T===void 0||(T=T.current)===null||T===void 0?void 0:T.schema,h=i==null||(k=i.data)===null||k===void 0||(k=k.current)===null||k===void 0?void 0:k.schema,I=i==null||(A=i.data)===null||A===void 0||(A=A.current)===null||A===void 0?void 0:A.insertAdjacent,t=i==null||(S=i.data)===null||S===void 0||(S=S.current)===null||S===void 0?void 0:S.breakRemoveOn,U=i==null||(x=i.data)===null||x===void 0||(x=x.current)===null||x===void 0?void 0:x.wrapSchema,H=i==null||(a=i.data)===null||a===void 0||(a=a.current)===null||a===void 0?void 0:a.onSuccess,Y=(D=i==null||(d=i.data)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.removeParentsIfNoChildren)!==null&&D!==void 0?D:!0;if(!l||!h){o==null||o(K);return}if(l===h){o==null||o(K);return}if(l.parent===h&&I==="beforeEnd"){o==null||o(K);return}var z=(0,f.Pl)({t:m,api:E,refresh:L,current:h});if(z.loadAPIClientEvents(),l.parent===h.parent){z.insertBeforeBeginOrAfterEnd(l),o==null||o(K);return}if(I){z.insertAdjacent(I,l,{wrap:U,breakRemoveOn:t,removeParentsIfNoChildren:Y,onSuccess:H}),o==null||o(K);return}},[o])},O=(0,b.observer)(function(n){var o=(0,r.$)(),c=o.t,L=(0,$.useState)(!0),E=v()(L,2),y=E[0],m=E[1],K=(0,$.useCallback)(function(k){var A,S=k.active,x=S==null||(A=S.data)===null||A===void 0||(A=A.current)===null||A===void 0?void 0:A.schema;if(m(!!x),n!=null&&n.onDragStart){var a;n==null||(a=n.onDragStart)===null||a===void 0||a.call(n,k)}},[n==null?void 0:n.onDragStart]),T=C(n==null?void 0:n.onDragEnd);return(0,F.jsxs)(M.DndContext,u()(u()({collisionDetection:M.rectIntersection},n),{},{onDragStart:K,onDragEnd:T,children:[(0,F.jsx)(M.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:y&&(0,F.jsx)("span",{style:{whiteSpace:"nowrap"},children:c("Dragging")})}),n.children]}))},{displayName:"DndContext"})},14896:function(He,le,e){"use strict";e.r(le),e.d(le,{DndContext:function(){return W.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return b},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR}});var W=e(72724),u=e(20493),N=e(67294),v=e(94350),M=e(85893),b=(0,v.observer)(function($){var r=$.children,j=(0,v.useForm)();return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(j.values,null,2)}),r]})})},20493:function(He,le,e){"use strict";e.d(le,{IW:function(){return K},LC:function(){return n},bt:function(){return L},Fo:function(){return o},TR:function(){return m},OR:function(){return c}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=e(10274),b=e(94697),$=e(97133),r=e(94350),j=e(67294),f=e(60094),F=e(85893),C=["component","overStyle","style","children","openMode"],O=["schema","id","eid","removeParentsIfNoChildren"],n=(0,j.createContext)(null);n.displayName="DraggableContext";var o=(0,j.createContext)(null);o.displayName="SortableContext";var c=function(k){var A=k.id,S=k.data,x=k.children,a=(0,b.useDraggable)({id:A,data:S}),D=(0,b.useDroppable)({id:A,data:S});return(0,F.jsx)(o.Provider,{value:{draggable:a,droppable:D},children:x})},L=function(k){var A,S,x=k.component,a=k.overStyle,D=k.style,d=k.children,p=k.openMode,i=v()(k,C),l=(0,f.dQ)(),h=l.token,I=(0,j.useContext)(o),t=I.draggable,U=I.droppable,H=U.isOver,Y=U.setNodeRef,z=u()({},D);return H&&(t==null||(A=t.active)===null||A===void 0?void 0:A.id)!==(U==null||(S=U.over)===null||S===void 0?void 0:S.id)&&(z[x==="a"?"color":"background"]=new M.C(h.colorSettings).setAlpha(.15).toHex8String(),Object.assign(z,a)),j.createElement(x||"div",u()(u()({role:"none"},i),{},{className:(0,$.cx)("nb-sortable-designer",k.className),ref:Y,style:z}),d)},E=function(k){var A=y(k),S=(0,r.useFieldSchema)();return k.schema?u()(u()({},k),{},{id:A}):u()(u()({},k),{},{id:A,schema:S})},y=function(k){var A=(0,r.useField)();return k.id?k.id:A.address.toString()},m=(0,r.observer)(function(T){var k=E(T),A=k.schema,S=k.id,x=k.eid,a=k.removeParentsIfNoChildren,D=v()(k,O),d=(0,j.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:A,removeParentsIfNoChildren:a!=null?a:!0}},[A,a]);return(0,F.jsx)(c,{id:S,data:d,children:(0,F.jsx)(L,u()(u()({id:x},D),{},{children:T.children}))})},{displayName:"SortableItem"}),K=function(k){var A=(0,j.useContext)(o),S=A.draggable,x=S.attributes,a=S.listeners,D=S.setNodeRef;return(0,F.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,F.jsx)("div",u()(u()(u()({ref:D,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},a),x),{},{role:"none",children:(0,F.jsx)("span",{style:{cursor:"move",fontSize:14},children:k.children})}))})}},34588:function(He,le,e){"use strict";e.d(le,{jC:function(){return T},od:function(){return y},Rq:function(){return m},e7:function(){return E}});var W=e(15009),u=e.n(W),N=e(9783),v=e.n(N),M=e(5574),b=e.n(M),$=e(99289),r=e.n($),j=e(52677),f=e.n(j),F=e(96486),C=e.n(F),O=e(76690),n=e(65565),o=e(27484),c=e.n(o);function L(){"use strict";Array.isArray||(Array.isArray=function(D){return Object.prototype.toString.call(D)==="[object Array]"});function A(D){for(var d=[],p=0,i=D.length;p<i;p++)d.indexOf(D[p])===-1&&d.push(D[p]);return d}function S(D,d){return JSON.stringify(D)===JSON.stringify(d)}var x={},a={$is:function(d,p){return d===p},$match:function(d,p){return Array.isArray(d)&&Array.isArray(p)&&d.some(function(i){return Array.isArray(i)})?d.some(function(i){return(i==null?void 0:i.length)===p.length&&(i==null?void 0:i.every(function(l,h){return l===p[h]}))}):JSON.stringify(d)===JSON.stringify(p)},$eq:function(d,p){return Array.isArray(d)&&Array.isArray(p)?S(d,p):Array.isArray(d)?d.includes(p):d===p},$ne:function(d,p){return d!=p},"!==":function(d,p){return d!==p},$gt:function(d,p){return Array.isArray(d)?d.some(function(i){return i>p}):d>p},$gte:function(d,p){return d>=p},$lt:function(d,p,i){return Array.isArray(d)?d.some(function(l){return l<p}):i===void 0?d<p:d<p&&p<i},$lte:function(d,p,i){return i===void 0?d<=p:d<=p&&p<=i},$exists:function(d){return x.truthy(d)},$notEmpty:function(d){return x.truthy(d)},$empty:function(d){return Array.isArray(d)?d.some(function(p){return!x.truthy(p)}):!x.truthy(d)},$notExists:function(d){return!x.truthy(d)},"%":function(d,p){return d%p},log:function(d){return console.log(d),d},$in:function(d,p){return!p||typeof p.indexOf=="undefined"?!1:Array.isArray(d)&&Array.isArray(p)?p.some(function(i){return d.includes(i)}):p.indexOf(d)!==-1},$notIn:function(d,p){return!p||typeof p.indexOf=="undefined"?!1:p.indexOf(d)===-1},$includes:function(d,p){return!d||typeof d.indexOf=="undefined"?!1:Array.isArray(d)?d.some(function(i){return i==null?void 0:i.includes(p)}):d.indexOf(p)!==-1},$notIncludes:function(d,p){return!d||typeof d.indexOf=="undefined"?!1:Array.isArray(d)?!d.some(function(i){return i.includes(p)}):d.indexOf(p)===-1},$anyOf:function(d,p){return d.length===0?!1:Array.isArray(d)&&Array.isArray(p)&&d.some(function(i){return Array.isArray(i)})?d.some(function(i){return i.some(function(l){return p.includes(l)})}):d.some(function(i){return p.includes(i)})},$noneOf:function(d,p){return d.length===0?!0:Array.isArray(d)&&Array.isArray(p)&&d.some(function(i){return Array.isArray(i)})?d.some(function(i){return i.every(function(l){return!p.some(function(h){return l.includes(h)})})}):p.some(function(i){return!d.includes(i)})},$notMatch:function(d,p){if(d.length!==p.length)return!0;for(var i=0;i<d.length;i++)if(d[i]!==p[i])return!0;return!1},$dateOn:function(d,p){return!d||!p?!1:(Array.isArray(d)||(d=[d,d]),Array.isArray(p)||(p=[p,p]),d=d.map(function(i){return c()(i)}),p=p.map(function(i){return c()(i)}),d[0].isBetween(p[0],p[1],null,"[]")&&d[1].isBetween(p[0],p[1],null,"[]"))},$dateBefore:function(d,p){return!d||!p?!1:(Array.isArray(d)||(d=[d,d]),Array.isArray(p)||(p=[p,p]),d=d.map(function(i){return c()(i)}),p=p.map(function(i){return c()(i)}),d[0].isBefore(p[0])&&d[1].isBefore(p[0]))},$dateNotBefore:function(d,p){return!a.$dateBefore(d,p)},$dateAfter:function(d,p){return!d||!p?!1:(Array.isArray(d)||(d=[d,d]),Array.isArray(p)||(p=[p,p]),d=d.map(function(i){return c()(i)}),p=p.map(function(i){return c()(i)}),d[0].isAfter(p[1])&&d[1].isAfter(p[1]))},$dateNotAfter:function(d,p){return!a.$dateAfter(d,p)},$dateBetween:function(d,p){return a.$dateOn(d,p)},$dateNotOn:function(d,p){return!a.$dateOn(d,p)},$isTruly:function(d){return Array.isArray(d)?d.some(function(p){return p===!0||p===1}):d===!0||d===1},$isFalsy:function(d){return Array.isArray(d)?d.some(function(p){return!x.truthy(p)}):!x.truthy(d)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(d,p,i){if(i<0){var l=String(d).substr(p);return l.substr(0,l.length+i)}return String(d).substr(p,i)},"+":function(){return Array.prototype.reduce.call(arguments,function(d,p){return parseFloat(d,10)+parseFloat(p,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(d,p){return parseFloat(d,10)*parseFloat(p,10)})},"-":function(d,p){return p===void 0?-d:d-p},"/":function(d,p){return d/p},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(d,p){return d.concat(p)},[])},var:function(d,p){var i=p===void 0?null:p,l=this;if(typeof d=="undefined"||d===""||d===null)return l;for(var h=String(d).split("."),I=0;I<h.length;I++)if(l==null||(l=l[h[I]],l===void 0))return i;return l},missing:function(){for(var d=[],p=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<p.length;i++){var l=p[i],h=x.apply({var:l},this);(h===null||h==="")&&d.push(l)}return d},missing_some:function(d,p){var i=x.apply({missing:p},this);return p.length-i.length>=d?[]:i}};return x.is_logic=function(D){return f()(D)==="object"&&D!==null&&!Array.isArray(D)&&Object.keys(D).length===1},x.truthy=function(D){return Array.isArray(D)&&D.length===0?!1:!!D},x.get_operator=function(D){return Object.keys(D)[0]},x.get_values=function(D){return D[x.get_operator(D)]},x.apply=function(D,d){if(Array.isArray(D))return D.map(function(z){return x.apply(z,d)});if(!x.is_logic(D))return D;var p=x.get_operator(D),i=D[p],l,h,I,t,U;if(Array.isArray(i)||(i=[i]),p==="if"||p=="?:"){for(l=0;l<i.length-1;l+=2)if(x.truthy(x.apply(i[l],d)))return x.apply(i[l+1],d);return i.length===l+1?x.apply(i[l],d):null}else if(p==="$and"){for(l=0;l<i.length;l+=1)if(h=x.apply(i[l],d),!x.truthy(h))return h;return h}else if(p==="or"){for(l=0;l<i.length;l+=1)if(h=x.apply(i[l],d),x.truthy(h))return h;return h}else{if(p==="filter")return t=x.apply(i[0],d),I=i[1],Array.isArray(t)?t.filter(function(z){return x.truthy(x.apply(I,z))}):[];if(p==="map")return t=x.apply(i[0],d),I=i[1],Array.isArray(t)?t.map(function(z){return x.apply(I,z)}):[];if(p==="reduce")return t=x.apply(i[0],d),I=i[1],U=typeof i[2]!="undefined"?i[2]:null,Array.isArray(t)?t.reduce(function(z,R){return x.apply(I,{current:R,accumulator:z})},U):U;if(p==="all"){if(t=x.apply(i[0],d),I=i[1],!Array.isArray(t)||!t.length)return!1;for(l=0;l<t.length;l+=1)if(!x.truthy(x.apply(I,t[l])))return!1;return!0}else if(p==="none"){if(t=x.apply(i[0],d),I=i[1],!Array.isArray(t)||!t.length)return!0;for(l=0;l<t.length;l+=1)if(x.truthy(x.apply(I,t[l])))return!1;return!0}else if(p==="some"){if(t=x.apply(i[0],d),I=i[1],!Array.isArray(t)||!t.length)return!1;for(l=0;l<t.length;l+=1)if(x.truthy(x.apply(I,t[l])))return!0;return!1}}if(i=i.map(function(z){return x.apply(z,d)}),a.hasOwnProperty(p)&&typeof a[p]=="function")return a[p].apply(d,i);if(p.indexOf(".")>0){var H=String(p).split("."),Y=a;for(l=0;l<H.length;l++){if(!Y.hasOwnProperty(H[l]))throw new Error("Unrecognized operation "+p+" (failed at "+H.slice(0,l+1).join(".")+")");Y=Y[H[l]]}return Y.apply(d,i)}throw new Error("Unrecognized operation "+p)},x.uses_data=function(D){var d=[];if(x.is_logic(D)){var p=x.get_operator(D),i=D[p];Array.isArray(i)||(i=[i]),p==="var"?d.push(i[0]):i.forEach(function(l){d.push.apply(d,x.uses_data(l))})}return A(d)},x.add_operation=function(D,d){a[D]=d},x.rm_operation=function(D){delete a[D]},x.rule_like=function(D,d){if(d===D||d==="@")return!0;if(d==="number")return typeof D=="number";if(d==="string")return typeof D=="string";if(d==="array")return Array.isArray(D)&&!x.is_logic(D);if(x.is_logic(d)){if(x.is_logic(D)){var p=x.get_operator(d),i=x.get_operator(D);if(p==="@"||p===i)return x.rule_like(x.get_values(D,!1),x.get_values(d,!1))}return!1}if(Array.isArray(d))if(Array.isArray(D)){if(d.length!==D.length)return!1;for(var l=0;l<d.length;l+=1)if(!x.rule_like(D[l],d[l]))return!1;return!0}else return!1;return!1},x}var E=function(S,x){var a,D=/{{(.*?)}}/,d=S==null||(a=S.match)===null||a===void 0?void 0:a.call(S,D);if(d){var p=C().get(x,d[1]);return C().isFunction(p)?p():p}else return S};function y(A){if(f()(A)!=="object"||A===null)return null;for(var S in A)if(Object.prototype.hasOwnProperty.call(A,S))return Object.prototype.toString.call(A[S])==="[object Object]"&&A[S]!==null?y(A[S]):{key:S,value:A[S]};return null}var m=function(S){var x=K(S),a=(0,F.findIndex)(x,function(d,p,i){if(d.includes("$")&&p>0)return!0}),D=x.slice(0,a);return D};function K(A){var S=[];function x(a){Object.keys(a).sort().forEach(function(D){S.push(D),a[D]&&f()(a[D])==="object"&&x(a[D])})}return x(A),S}var T=function(){var A=r()(u()().mark(function S(x){var a,D,d,p,i,l;return u()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return a=x.ruleGroup,D=x.variables,d=x.localVariables,p=Object.keys(a)[0]||"$and",i=a[p],l=i.map(function(){var t=r()(u()().mark(function U(H){var Y,z,R,G,X,ce,ne,oe,ie,pe,V;return u()().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(!("$and"in H||"$or"in H)){de.next=4;break}return de.next=3,T({ruleGroup:H,variables:D,localVariables:d});case 3:return de.abrupt("return",de.sent);case 4:if(Y=y(H),z=Y==null?void 0:Y.key,z){de.next=8;break}return de.abrupt("return",!0);case 8:return R=k(m(H)),G=D.parseVariable(R,d),X=(0,O.cG)(Y==null?void 0:Y.value)?[D.parseVariable(Y==null?void 0:Y.value,d),G]:[Y==null?void 0:Y.value,G],de.prev=11,ce=L(),de.next=15,Promise.all(X);case 15:return ne=de.sent,oe=b()(ne,2),ie=oe[0],pe=oe[1],de.next=21,D.getCollectionField(R,d);case 21:return V=de.sent,de.abrupt("return",ce.apply(v()({},z,[(0,n.J)(pe,{targetCollectionField:V}),(0,n.J)(ie,{targetCollectionField:V})])));case 25:throw de.prev=25,de.t0=de.catch(11),de.t0;case 28:case"end":return de.stop()}},U,null,[[11,25]])}));return function(U){return t.apply(this,arguments)}}()),I.next=6,Promise.all(l);case 6:if(l=I.sent,p!=="$and"){I.next=11;break}return I.abrupt("return",(0,F.every)(l,function(t){return t}));case 11:return I.abrupt("return",(0,F.some)(l,function(t){return t}));case 12:case"end":return I.stop()}},S)}));return function(x){return A.apply(this,arguments)}}();function k(A){return"{{ $nForm.".concat(A.join(".")," }}")}},61736:function(He,le,e){"use strict";e.d(le,{D:function(){return u}});var W=e(67294),u=(0,W.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(He,le,e){"use strict";e.d(le,{R:function(){return n}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=e(86201),b=e(94350),$=e(67294),r=e(47844),j=e(85893),f=["children","form"],F=["children"],C=function(c){var L=c.children,E=c.form,y=v()(c,f),m=(0,$.useContext)(b.SchemaOptionsContext),K=(0,$.useContext)(b.SchemaExpressionScopeContext),T=u()(u()({},m==null?void 0:m.scope),K),k=u()({},m==null?void 0:m.components);return(0,j.jsx)(b.FormProvider,u()(u()({},y),{},{form:E,children:(0,j.jsx)(r.G,{components:k,scope:T,children:L})}))},O=function(c){var L=c.children,E=v()(c,F),y=(0,$.useContext)(b.SchemaOptionsContext),m=(0,$.useContext)(b.SchemaExpressionScopeContext),K=u()(u()({},y==null?void 0:y.scope),m),T=u()({},y==null?void 0:y.components),k=(0,$.useMemo)(function(){return(0,M.createForm)()},[]);return(0,j.jsx)(b.FormProvider,u()(u()({},E),{},{form:k,children:(0,j.jsx)(r.G,{components:T,scope:K,children:L})}))},n=function(c){return c.form?(0,j.jsx)(C,u()({},c)):(0,j.jsx)(O,u()({},c))}},59480:function(He,le,e){"use strict";e.d(le,{m:function(){return O}});var W=e(97857),u=e.n(W),N=e(86201),v=e(57953),M=e(67294),b=e(12174),$=e(84577),r=e(44245),j=e(93323),f=e(85893),F=function(o){return o},C=function(o){var c=o.noForm,L=o.onlyRenderProperties,E=o.hidden,y=o.scope,m=o.uid,K=o.components,T=o.onSuccess,k=o.schemaTransform,A=k===void 0?F:k,S=(0,$.Dm)(),x=S.reset,a={url:"/uiSchemas:".concat(L?"getProperties":"getJsonSchema","/").concat(m)},D=(0,M.useMemo)(function(){return(0,N.createForm)()},[m]),d=(0,b.QT)(a,{refreshDeps:[m],onSuccess:function(h){T&&T(h),x&&x()}}),p=d.data,i=d.loading;return i?(0,f.jsx)(v.Z,{}):E?(0,f.jsx)(v.Z,{}):c?(0,f.jsx)(j.n,{memoized:!0,components:K,scope:y,schema:A((p==null?void 0:p.data)||{})}):(0,f.jsx)(r.R,{form:D,children:(0,f.jsx)(j.n,{memoized:!0,components:K,scope:y,schema:A((p==null?void 0:p.data)||{})})})},O=function(o){return o.uid?(0,f.jsx)(C,u()({},o)):null}},93323:function(He,le,e){"use strict";e.d(le,{n:function(){return m}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=e(9783),b=e.n(M),$=e(94350),r=e(67294),j=e(61736),f=e(47844),F=e(90105),C=e(85893),O=["components","scope","schema","distributed"],n=["schema"],o=["memoized"];function c(K){return $.Schema.isSchemaInstance(K)?K:K!=null&&K.name?new $.Schema({type:"object",properties:b()({},K.name,K)}):new $.Schema(K)}var L=function(T){return(0,r.useMemo)(function(){return c(T)},[])},E=function(T){var k=T.components,A=T.scope,S=T.schema,x=T.distributed,a=v()(T,O),D=(0,r.useContext)(j.D),d=(0,r.useMemo)(function(){return c(S)},[S]),p=(0,F.Z)();return(0,C.jsx)(j.D.Provider,{value:u()(u()({},D),{},{distributed:D.distributed==!1?!1:x,refresh:function(){var l;if(p(),D.distributed===!1||x===!1){var h;(h=D.refresh)===null||h===void 0||h.call(D)}(l=T.onChange)===null||l===void 0||l.call(T,d)}}),children:(0,C.jsx)(f.G,{inherit:!0,components:k,scope:A,children:(0,C.jsx)($.RecursionField,u()(u()({},a),{},{schema:d}))})})},y=function(T){var k=T.schema,A=v()(T,n),S=L(k);return(0,C.jsx)(E,u()(u()({},A),{},{schema:S}))},m=function(T){var k=T.memoized,A=v()(T,o);return k?(0,C.jsx)(y,u()({},A)):(0,C.jsx)(E,u()({},A))}},47844:function(He,le,e){"use strict";e.d(le,{B:function(){return b},G:function(){return $}});var W=e(97857),u=e.n(W),N=e(94350),v=e(67294),M=e(85893),b=function(){var j=(0,v.useContext)(N.SchemaOptionsContext);return j||{}},$=(0,v.memo)(function(r){var j=r.children,f=b(),F=(0,v.useMemo)(function(){return u()(u()({},f.components),r.components)},[f.components,r.components]),C=(0,v.useMemo)(function(){return u()(u()({},f.scope),r.scope)},[f.scope,r.scope]),O=(0,v.useMemo)(function(){return{scope:C,components:F}},[C,F]);return(0,M.jsx)(N.SchemaOptionsContext.Provider,{value:O,children:(0,M.jsx)(N.SchemaComponentsContext.Provider,{value:F,children:(0,M.jsx)(N.ExpressionScope,{value:C,children:j})})})});$.displayName="SchemaComponentOptions"},70993:function(He,le,e){"use strict";e.d(le,{_b:function(){return T},RV:function(){return k.R},m1:function(){return A.m},n6:function(){return S.n},G0:function(){return x.G},a$:function(){return G},Tz:function(){return z},Bs:function(){return x.B}});var W=e(15009),u=e.n(W),N=e(99289),v=e.n(N),M=e(12444),b=e.n(M),$=e(72004),r=e.n($),j=e(31996),f=e.n(j),F=e(26037),C=e.n(F),O=e(51947),n=e(83062),o=e(15867),c=e(67294),L=e(49218),E=e(26793),y=e(41278),m=e(68230),K=e(85893),T=function(){var ne=(0,y.ngQ)(),oe=ne.designable,ie=ne.setDesignable,pe=(0,E.$)(),V=pe.t,xe=(0,m.d)(),de=xe.token,ae={};return oe&&(ae.backgroundColor="var(--colorSettings)"),(0,L.y1)("Ctrl+Shift+U",function(){return ie(!oe)},[oe]),(0,K.jsx)(n.Z,{title:V("UI Editor"),children:(0,K.jsx)(o.ZP,{"data-testid":"ui-editor-button",icon:(0,K.jsx)(O.Z,{style:{color:de.colorTextHeaderMenu}}),title:V("UI Editor"),style:ae,onClick:function(){ie(!oe)}})})},k=e(44245),A=e(59480),S=e(93323),x=e(47844),a=e(97857),D=e.n(a),d=e(5574),p=e.n(d),i=e(86201),l=e(94350),h=e(63198),I=e(90105),t=e(61736),U=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(ne).concat((0,h.uid)())};l.Schema.silent(!0);var H={},Y={silent:!0,compile:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=function(){if(Y.silent)try{return new Function("$root","with($root) { return (".concat(ne,"); }"))(oe)}catch(V){return"{{".concat(ne,"}}")}else return new Function("$root","with($root) { return (".concat(ne,"); }"))(oe)};return H[ne]?H[ne]:ne.trim().startsWith("t(")?(H[ne]=ie(),H[ne]):ie()}};l.Schema.registerCompiler(Y.compile);var z=function(ne){var oe=ne.designable,ie=ne.onDesignableChange,pe=ne.components,V=ne.children,xe=(0,c.useContext)(t.D),de=(0,x.B)(),ae=(0,I.Z)(),Pe=(0,c.useState)((0,h.uid)()),Se=p()(Pe,2),Ae=Se[0],ye=Se[1],fe=(0,c.useMemo)(function(){return ne.form||(0,i.createForm)()},[Ae]),ve=(0,E.$)(),te=ve.t,Z=(0,c.useMemo)(function(){return D()(D()({},ne.scope),{},{t:te,randomString:U})},[ne.scope,te,de==null?void 0:de.scope]),ee=(0,c.useState)(oe),he=p()(ee,2),me=he[0],Ee=he[1],Ie=(0,c.useMemo)(function(){return typeof oe=="boolean"?oe:me},[oe,me,xe.designable]),Le=(0,c.useMemo)(function(){return function(Be){typeof Ie!="boolean"&&Ee(Be),ie==null||ie(Be)}},[Ie,ie]),Ue=(0,c.useCallback)(function(){ye((0,h.uid)())},[]);return(0,K.jsx)(t.D.Provider,{value:{scope:Z,components:pe,reset:Ue,refresh:ae,designable:Ie,setDesignable:Le},children:(0,K.jsx)(l.FormProvider,{form:fe,children:(0,K.jsx)(x.G,{inherit:!0,scope:Z,components:pe,children:V})})})};z.displayName="SchemaComponentProvider";var R=e(31601),G=function(ce){f()(oe,ce);var ne=C()(oe);function oe(){return b()(this,oe),ne.apply(this,arguments)}return r()(oe,[{key:"load",value:function(){var ie=v()(u()().mark(function V(){return u()().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:this.addComponents();case 1:case"end":return de.stop()}},V,this)}));function pe(){return ie.apply(this,arguments)}return pe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:T})}}]),oe}(R.S),X=null},84577:function(He,le,e){"use strict";e.d(le,{zz:function(){return $.zz},Pl:function(){return $.Pl},oB:function(){return $.oB},lI:function(){return u},hi:function(){return y.hi},eJ:function(){return N.e},Co:function(){return b},aZ:function(){return y.aZ},ng:function(){return $.ng},et:function(){return r.e},cL:function(){return c},fd:function(){return m},Cl:function(){return F},vH:function(){return L},sR:function(){return $.sR},wN:function(){return E.w},Dm:function(){return O},fM:function(){return y.fM}});var W=e(67294),u=function(T){var k=(0,W.useRef)(null);return(0,W.useEffect)(function(){return k.current&&T!==k.current&&k.current.onUnmount(),k.current=T,T.onMount(),function(){T.onUnmount()}},[T]),T},N=e(96365),v=e(94350),M=e(96486),b=function(T,k){var A=(0,W.useContext)(v.SchemaOptionsContext),S=A.components;return T?typeof T!="string"?T:(0,M.get)(S,T)||k:k},$=e(94516),r=e(98146),j=e(97857),f=e.n(j),F=function(T){var k=(0,W.useContext)(v.SchemaOptionsContext),A=(0,W.useContext)(v.SchemaExpressionScopeContext),S=(0,W.useRef)();return S.current=A,T.toFieldProps(f()(f()({},k),{},{get scope(){return f()(f()({},k.scope),S.current)}}))},C=e(61736);function O(){return(0,W.useContext)(C.D)}var n=e(26793),o=e(6145),c=function(){var T,k=(0,o.useCollectionManager_deprecated)(),A=k.getCollectionJoinField,S=k.getCollection,x=(0,v.useFieldSchema)(),a=(0,o.useCollection_deprecated)(),D=a.getField,d=D(x.name)||A(x["x-collection-field"]),p=(0,n.$)(),i=p.t,l=((T=x["x-component-props"])===null||T===void 0?void 0:T.fieldNames)||{},h=l.label,I=(0,W.useMemo)(function(){if(!(!d||!(d!=null&&d.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(d.interface)){var t=S(d.target);if((t==null?void 0:t.template)==="file")return[{label:i("Record picker"),value:"CollectionField"},{label:i("Select"),value:"AssociationSelect"}];switch(d.interface){case"o2m":return[{label:i("Record picker"),value:"CollectionField"},{label:i("Subtable"),value:"TableField"},{label:i("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:i("Record picker"),value:"CollectionField"},{label:i("Select"),value:"AssociationSelect"}];default:return[{label:i("Record picker"),value:"CollectionField"},{label:i("Subform"),value:"FormField"},{label:i("Select"),value:"AssociationSelect"}]}}},[i,d==null?void 0:d.interface,h]);return I},L=function(){var T,k=(0,v.useField)(),A=(0,v.useFieldSchema)(),S=(0,o.useCollection_deprecated)(),x=S.getField,a=(0,o.useCollectionManager_deprecated)(),D=a.getCollectionJoinField,d=x(A.name)||D(A["x-collection-field"]),p=(0,N.e)();(0,W.useEffect)(function(){if(!(k!=null&&k.title)){var i;k.title=p(d==null||(i=d.uiSchema)===null||i===void 0?void 0:i.title)}},[d==null||(T=d.uiSchema)===null||T===void 0?void 0:T.title])},E=e(9780),y=e(18686),m=function(T){var k,A=(0,n.$)(),S=A.t,x=(0,o.useCollectionManager_deprecated)(),a=x.getCollectionJoinField,D=x.getCollection,d=(0,v.useFieldSchema)(),p=(T==null?void 0:T.fieldSchema)||d,i=(0,v.useField)(),l=(0,v.useForm)(),h=(p==null?void 0:p["x-read-pretty"])||i.readPretty||l.readPretty,I=T==null?void 0:T.fieldSchema,t=(0,o.useCollection_deprecated)(),U=t.getField,H=(T==null?void 0:T.collectionField)||U(p.name)||a(p["x-collection-field"]),Y=((k=p["x-component-props"])===null||k===void 0?void 0:k.fieldNames)||{},z=Y.label,R=(0,W.useMemo)(function(){if(!(!H||!(H!=null&&H.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy"].includes(H.interface)){var G=D(H.target);if((G==null?void 0:G.template)==="file")return h?[{label:S("Title"),value:"Select"},{label:S("File manager"),value:"FileManager"},{label:S("Tag"),value:"Tag"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},{label:S("File manager"),value:"FileManager"}];if((G==null?void 0:G.template)==="tree"&&["m2m","o2m","m2o"].includes(H.interface))return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"},!I&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&["m2m","o2m"].includes(H.interface)&&{label:S("Sub-table"),value:"SubTable"},!I&&{label:S("Cascade Select"),value:"CascadeSelect"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];switch(H.interface){case"o2m":return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-table"),value:"SubTable"},!I&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"},!I&&{label:S("Sub-table"),value:"SubTable"}];case"m2m":return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"},!I&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-table"),value:"SubTable"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];default:return h?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!I&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!I&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}]}}},[S,H==null?void 0:H.interface,z]);return(R||[]).filter(Boolean)}},18686:function(He,le,e){"use strict";e.d(le,{aZ:function(){return m},fM:function(){return T},hi:function(){return K}});var W=e(5574),u=e.n(W),N=e(97857),v=e.n(N),M=e(94350),b=e(83204),$=e(9361),r=e(96486),j=e.n(r),f=e(67294),F=e(41278),C=e(21143),O=e(28561),n=e(10097),o=function(S,x,a,D){return S?D.paddingContentHorizontalLG:a?D.paddingContentHorizontalLG+12:x?D.paddingSM+D.controlHeight+D.marginXS+2*D.controlPaddingHorizontalSM+22+D.paddingContentHorizontalLG:D.controlHeight+D.marginXS+(D.paddingXXS+2)*2+D.paddingContentHorizontalLG},c=function(S){var x=$.Z.useToken(),a=x.token,D=(0,F.ngQ)(),d=D.designable,p=(0,n.useBlockHeightProps)(),i=p.heightProps,l=i||S||{},h=l.disablePageHeader,I=l.enablePageTabs,t=l.hidePageTitle,U=a.sizeXXL-2,H=d?a.controlHeight+2*a.paddingContentHorizontalLG:1*a.paddingContentHorizontalLG,Y=o(h,I,t,a);return U+Y+H},L=function(S){var x=(0,M.useFieldSchema)(),a=k(x),D=c(S),d=E();return a?d:D},E=function(){var S=$.Z.useToken(),x=S.token,a=(0,F.ngQ)(),D=a.designable,d=x.paddingContentVerticalLG+x.margin+2*x.paddingContentVertical+24,p=D?x.controlHeight+3*x.paddingContentHorizontalLG:2*x.paddingContentHorizontalLG;return d+p},y=function(){var S,x=$.Z.useToken(),a=x.token,D=(0,n.useBlockHeightProps)(),d=D.heightProps,p=(0,F.ngQ)(),i=p.designable,l=(0,M.useFieldSchema)(),h=L(),I=(0,C.useDataBlockRequest)(),t=I.data,U=(t==null?void 0:t.meta)||{},H=U.count,Y=U.pageSize,z=H>Y,R=d.heightMode,G=d.height,X=d.title;if(!(!(d!=null&&d.heightMode)||R===O.j.DEFAULT)){var ce=Object.keys(((S=l.parent.properties.actions)===null||S===void 0?void 0:S.properties)||{}).length>0,ne=z?a.controlHeight+a.padding+a.marginLG:a.marginLG,oe=ce||i?a.controlHeight+2*a.marginLG:a.marginLG,ie=(i?a.controlHeight:22)+2*a.padding+1,pe=X?a.fontSizeLG*a.lineHeightLG+a.padding*2-1:0;return R===O.j.FULL_HEIGHT?window.innerHeight-h-pe-ie-oe-ne:G-pe-oe-ie-ne}},m=function(S){var x=(0,n.useBlockHeightProps)(),a=x.heightProps,D=L(),d=$.Z.useToken(),p=d.token,i=a||{},l=i.heightMode,h=i.height,I=i.title,t=I?p.fontSizeLG*p.lineHeightLG+p.padding*2-1:0;if(!(!(a!=null&&a.heightMode)||l===O.j.DEFAULT)){if(l===O.j.FULL_HEIGHT){var U=window.innerHeight-D;return S!=null&&S.removeBlockHeaderHeight&&(U=U-t),S!=null&&S.innerExtraHeight&&(U=U-S.innerExtraHeight),U}return h}},K=function(){var S=(0,M.useFieldSchema)(),x=(0,f.useMemo)(function(){return(0,n.getPageSchema)(S)},[]),a=(x==null?void 0:x["x-component-props"])||{},D=a.disablePageHeader,d=a.enablePageTabs,p=a.hidePageTitle,i=v()(v()({},S==null?void 0:S["x-component-props"]),{},{disablePageHeader:D,enablePageTabs:d,hidePageTitle:p}),l=L(i),h=i||{},I=h.heightMode,t=h.height;if(!(!(i!=null&&i.heightMode)||I===O.j.DEFAULT))return I===O.j.FULL_HEIGHT?window.innerHeight-l:t},T=function(){var S=(0,f.useState)(),x=u()(S,2),a=x[0],D=x[1],d=(0,f.useState)(),p=u()(d,2),i=p[0],l=p[1],h=(0,f.useRef)(null),I=y(),t=(0,f.useCallback)((0,r.debounce)(function(){var H;if(h.current){var Y=h.current.getBoundingClientRect(),z=(H=h.current.querySelector(".ant-table"))===null||H===void 0?void 0:H.getBoundingClientRect();z&&(l(Y.width),D(I))}},100),[I]),U=(0,f.useCallback)(function(H){h.current=H&&H.children?H.children[0]:null,t()},[t]);return(0,b.Z)("resize",t),{height:a,width:i,tableSizeRefCallback:U}},k=function A(S){return S?S["x-component"]==="Action.Container"?!0:A(S.parent):null}},96365:function(He,le,e){"use strict";e.d(le,{e:function(){return r}});var W=e(97857),u=e.n(W),N=e(52677),v=e.n(N),M=e(94350),b=e(67294),$={},r=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},F=f.noCache,C=(0,b.useContext)(M.SchemaOptionsContext),O=(0,b.useContext)(M.SchemaExpressionScopeContext);return function(n,o){var c=!1,L;if(typeof n=="string"&&n.startsWith("{{")&&(c=!0,L=n),n&&v()(n)==="object"&&!(0,b.isValidElement)(n)&&(c=!0,L=JSON.stringify(n)),Array.isArray(n)&&(c=!0),c){var E=u()(u()(u()({},C.scope),O),o);if(!L)return M.Schema.compile(n,E);try{return F?M.Schema.compile(n,E):($[L]=$[L]||M.Schema.compile(n,E),$[L])}catch(y){return console.log("useCompile error",n,y),M.Schema.compile(n,E)}}return n}}},94516:function(He,le,e){"use strict";e.d(le,{zz:function(){return z},Pl:function(){return h},oB:function(){return H},ng:function(){return G},sR:function(){return R}});var W=e(5574),u=e.n(W),N=e(19632),v=e.n(N),M=e(15009),b=e.n(M),$=e(99289),r=e.n($),j=e(12444),f=e.n(j),F=e(72004),C=e.n(F),O=e(9783),n=e.n(O),o=e(97857),c=e.n(o),L=e(94350),E=e(63198),y=e(45360),m=e(50361),K=e.n(m),T=e(27361),k=e.n(T),A=e(36968),S=e.n(A),x=e(67294),a=e(26793),D=e(12174),d=e(61736);function p(X,ce){if(X)return X["x-app-version"]||(X["x-app-version"]=ce),Object.keys(X.properties||{}).forEach(function(ne){var oe;p((oe=X.properties)===null||oe===void 0?void 0:oe[ne],ce)}),X}var i={i8:"1.2.1-alpha"},l=e(85893);function h(X){return new z(X)}var I=function X(ce){ce&&(ce["x-uid"]||(ce["x-uid"]=(0,E.uid)()),Object.keys(ce.properties||{}).forEach(function(ne){X(ce.properties[ne])}))},t=function(ce){return ce},U=function(ce,ne){if(!(!ce||!ne)){for(var oe in ne)if(Object.prototype.hasOwnProperty.call(ne,oe)){var ie=ne[oe];if(ie!==(ce==null?void 0:ce[oe]))return!1}return!0}},H=function(ce,ne){if(ce["x-uid"]&&ce["x-uid"]===ne["x-uid"])return[null,ce.toJSON()];var oe=ce.toJSON(),ie=c()(c()({},oe),{},{properties:{}}),pe=null,V=function xe(de,ae){Object.keys(de||{}).forEach(function(Pe){var Se=de[Pe];if(Se["x-uid"]===ne["x-uid"]){pe=de[Pe];return}else ae.properties[Pe]=c()(c()({},Se),{},{properties:{}}),xe(Se==null?void 0:Se.properties,ae.properties[Pe])})};return V(oe.properties,ie),[ie,pe]},Y=function(ce){return ce},z=function(){function X(ce){f()(this,X),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=ce,this.current=ce.current,this.appVersion=ce.appVersion}return C()(X,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var ne=this,oe=this.options,ie=oe.api,pe=oe.t,V=pe===void 0?Y:pe;if(ie){var xe=function(ae){if(!ae)return[];var Pe=Object.values(ae.properties).length,Se=[];return ae.mapProperties(function(Ae){Ae["x-component-props"]=Ae["x-component-props"]||{},Ae["x-component-props"].width=100/Pe,Ae["x-uid"]&&Se.push({"x-uid":Ae["x-uid"],"x-component-props":Ae["x-component-props"]})}),ae["x-uid"]&&Se.length?Se:[]};this.on("insertAdjacent",function(){var de=r()(b()().mark(function ae(Pe){var Se,Ae,ye,fe,ve,te,Z,ee,he,me;return b()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(Ae=Pe.onSuccess,ye=Pe.current,fe=Pe.position,ve=Pe.schema,te=Pe.wrap,Z=Pe.wrapped,ee=Pe.removed,he=[],(Z==null?void 0:Z["x-component"])==="Grid.Col"&&(he=he.concat(xe(Z.parent))),(ee==null?void 0:ee["x-component"])==="Grid.Col"&&(he=he.concat(xe(ee.parent))),ne.refresh(),ye["x-uid"]){Ie.next=7;break}return Ie.abrupt("return");case 7:return Ie.next=9,ie.request({url:"/uiSchemas:insertAdjacent/".concat(ye["x-uid"],"?position=").concat(fe),method:"post",data:{schema:p(ve,ne.appVersion),wrap:te}});case 9:if(me=Ie.sent,!he.length){Ie.next=13;break}return Ie.next=13,ie.request({url:"/uiSchemas:batchPatch",method:"post",data:he});case 13:if(!(ee!=null&&ee["x-uid"])){Ie.next=16;break}return Ie.next=16,ie.request({url:"/uiSchemas:remove/".concat(ee["x-uid"]),method:"post"});case 16:Ae==null||Ae(me==null||(Se=me.data)===null||Se===void 0?void 0:Se.data),y.ZP.success(V("Saved successfully"),.2);case 18:case"end":return Ie.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}()),this.on("patch",function(){var de=r()(b()().mark(function ae(Pe){var Se;return b()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(Se=Pe.schema,ne.refresh(),Se!=null&&Se["x-uid"]){ye.next=4;break}return ye.abrupt("return");case 4:return ye.next=6,ie.request({url:"/uiSchemas:patch",method:"post",data:c()({},Se)});case 6:y.ZP.success(V("Saved successfully"),.2);case 7:case"end":return ye.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}()),this.on("batchPatch",function(){var de=r()(b()().mark(function ae(Pe){var Se;return b()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return Se=Pe.schemas,ne.refresh(),ye.next=4,ie.request({url:"/uiSchemas:batchPatch",method:"post",data:Se});case 4:y.ZP.success(V("Saved successfully"),.2);case 5:case"end":return ye.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}()),this.on("remove",function(){var de=r()(b()().mark(function ae(Pe){var Se,Ae;return b()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(Se=Pe.removed,Ae=[],(Se==null?void 0:Se["x-component"])==="Grid.Col"&&(Ae=xe(Se.parent)),ne.refresh(),Se!=null&&Se["x-uid"]){fe.next=6;break}return fe.abrupt("return");case 6:return fe.next=8,ie.request({url:"/uiSchemas:remove/".concat(Se["x-uid"]),method:"post"});case 8:if(!Ae.length){fe.next=11;break}return fe.next=11,ie.request({url:"/uiSchemas:batchPatch",method:"post",data:Ae});case 11:y.ZP.success(V("Saved successfully"),.2);case 12:case"end":return fe.stop()}},ae)}));return function(ae){return de.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(ne){ne.type||(ne.type="void"),ne.name||(ne.name=(0,E.uid)()),this.current["x-uid"]&&I(ne)}},{key:"on",value:function(ne,oe){this.events[ne]||(this.events[ne]=[]),this.events[ne].push(oe)}},{key:"emit",value:function(){var ce=r()(b()().mark(function oe(ie){var pe=this,V,xe,de,ae,Pe,Se=arguments;return b()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(this.events[ie]){ye.next=2;break}return ye.abrupt("return");case 2:for(V=Se.length,xe=new Array(V>1?V-1:0),de=1;de<V;de++)xe[de-1]=Se[de];return ae=xe[0],Pe=xe.slice(1),ye.abrupt("return",Promise.all(this.events[ie].map(function(fe){return fe.bind(pe).apply(void 0,[c()({current:pe.current},ae)].concat(v()(Pe)))})));case 5:case"end":return ye.stop()}},oe,this)}));function ne(oe){return ce.apply(this,arguments)}return ne}()},{key:"parentsIn",value:function(ne){if(!ne||!L.Schema.isSchemaInstance(ne))return!1;for(var oe=this.current;(ie=oe)!==null&&ie!==void 0&&ie.parent;){var ie;if(oe.parent===ne)return!0;oe=oe.parent}return!1}},{key:"refresh",value:function(){var ne=this.options.refresh;return ne==null?void 0:ne()}},{key:"deepMerge",value:function(ne){var oe=this,ie={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},pe={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(ne).forEach(function(V){ie[V]?(oe.current[V]=ne[V],oe.updateModel(ie[V],ne[V])):pe[V]?Object.keys(ne[V]).forEach(function(xe){S()(oe.current,[V,xe],ne[V][xe]),oe.updateModel([pe[V],xe],ne[V][xe])}):oe.current[V]=ne[V]}),this.emit("patch",{schema:ne})}},{key:"getSchemaAttribute",value:function(ne,oe){return k()(this.current,ne,oe)}},{key:"shallowMerge",value:function(ne){var oe=this,ie={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(ne).forEach(function(pe){oe.current[pe]=ne[pe],ie[pe]&&oe.updateModel(ie[pe],ne[pe])}),this.emit("patch",{schema:ne})}},{key:"updateModel",value:function(ne,oe){var ie=function(V){S()(V,ne,oe)};this.model&&ie(this.model),this.query&&this.query.take(ie)}},{key:"insertAdjacent",value:function(ne,oe){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(ne){case"beforeBegin":return this.insertBeforeBegin(oe,ie);case"afterBegin":return this.insertAfterBegin(oe,ie);case"beforeEnd":return this.insertBeforeEnd(oe,ie);case"afterEnd":return this.insertAfterEnd(oe,ie)}}},{key:"recursiveRemoveIfNoChildren",value:function(ne,oe){if(ne){for(var ie=ne,pe,V=oe==null?void 0:oe.breakRemoveOn;ie;){if(typeof V=="function"){if(V(ie))break}else if(U(ie,V))break;var xe=Object.keys(ie.properties||{}).length;if(xe>0)break;ie.parent&&(pe=ie.parent.removeProperty(ie.name)),ie=ie.parent}return pe}}},{key:"remove",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=oe.breakRemoveOn,pe=oe.removeParentsIfNoChildren,V=ne||this.current,xe=V.parent.removeProperty(V.name);if(pe){var de=this.recursiveRemoveIfNoChildren(V.parent,{breakRemoveOn:ie});de&&(xe=de)}return this.emit("remove",{removed:xe})}},{key:"removeWithoutEmit",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=oe.breakRemoveOn,pe=oe.removeParentsIfNoChildren,V=ne||this.current,xe=V.parent.removeProperty(V.name);if(pe){var de=this.recursiveRemoveIfNoChildren(V.parent,{breakRemoveOn:ie});de&&(xe=de)}return xe}},{key:"insertBeforeBeginOrAfterEnd",value:function(ne){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)&&L.Schema.isSchemaInstance(ne)&&this.current.parent===ne.parent){var pe=0,V=0;return this.current.parent.mapProperties(function(xe,de,ae){oe.current.name===de&&(V=ae),ne.name===de&&(pe=ae)}),pe>V?this.insertBeforeBegin(ne,ie):this.insertAfterEnd(ne,ie)}}},{key:"insertBeforeBegin",value:function(ne){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){var pe={onSuccess:ie.onSuccess},V=ie.wrap,xe=V===void 0?t:V,de=ie.breakRemoveOn,ae=ie.removeParentsIfNoChildren;if(L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),ae&&(pe.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:de}))}else ne&&(ne=K()(ne));var Pe={},Se=!1,Ae=0,ye=0;this.current.parent.mapProperties(function(me,Ee){Ee===oe.current.name&&(ye=Ae,Se=!0,++Ae),me["x-index"]=Ae,++Ae,Se&&(Pe[Ee]=me,oe.current.parent.removeProperty(Ee))}),this.prepareProperty(ne);var fe=xe(ne),ve=this.current.parent.addProperty(fe.name||(0,E.uid)(),fe);ve["x-index"]=ye,ve.parent=this.current.parent,this.current.parent.setProperties(Pe);var te=H(ve,ne),Z=u()(te,2),ee=Z[0],he=Z[1];this.emit("insertAdjacent",c()({position:"beforeBegin",schema:he,wrapped:fe,wrap:ee},pe))}}},{key:"insertAfterBegin",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){var ie={onSuccess:oe.onSuccess},pe=oe.wrap,V=pe===void 0?t:pe,xe=oe.breakRemoveOn,de=oe.removeParentsIfNoChildren;if(L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),de&&(ie.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:xe}))}else ne&&(ne=K()(ne));var ae={},Pe=1;this.current.mapProperties(function(Z,ee){Z["x-index"]=Pe,++Pe,ae[ee]=Z}),this.current.properties={},this.prepareProperty(ne);var Se=V(ne),Ae=this.current.addProperty(Se.name||(0,E.uid)(),Se);Ae["x-index"]=0,Ae.parent=this.current,this.current.setProperties(ae);var ye=H(Ae,ne),fe=u()(ye,2),ve=fe[0],te=fe[1];this.emit("insertAdjacent",c()({position:"afterBegin",schema:te,wrap:ve,wrapped:Se},ie))}}},{key:"insertBeforeEnd",value:function(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){delete ne["x-index"];var ie={onSuccess:oe.onSuccess},pe=oe.wrap,V=pe===void 0?t:pe,xe=oe.breakRemoveOn,de=oe.removeParentsIfNoChildren;if(L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),de&&(ie.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:xe}))}else ne&&(ne=K()(ne));this.prepareProperty(ne);var ae=V(ne),Pe=this.current.addProperty(ae.name||(0,E.uid)(),ae);Pe.parent=this.current;var Se=H(Pe,ne),Ae=u()(Se,2),ye=Ae[0],fe=Ae[1];return this.emit("insertAdjacent",c()({position:"beforeEnd",schema:fe,wrap:ye,wrapped:ae},ie))}}},{key:"insertAfterEnd",value:function(ne){var oe=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(L.Schema.isSchemaInstance(this.current)){var pe={onSuccess:ie==null?void 0:ie.onSuccess},V=ie.wrap,xe=V===void 0?t:V,de=ie.breakRemoveOn,ae=ie.removeParentsIfNoChildren,Pe=0,Se=0,Ae=!1,ye={};if(this.current.parent.mapProperties(function(me,Ee){me["x-index"]=Pe,Ee===oe.current.name&&(++Pe,Se=Pe,Ae=!0),++Pe,Ae&&Ee!==oe.current.name&&(ye[Ee]=me,oe.current.parent.removeProperty(Ee))}),L.Schema.isSchemaInstance(ne)){if(this.parentsIn(ne)){this.emit("error",{code:"parent_is_not_allowed",schema:ne});return}ne.parent.removeProperty(ne.name),ae&&(pe.removed=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:de})),ne.parent=null}else ne&&(ne=K()(ne));this.prepareProperty(ne);var fe=xe(ne),ve=this.current.parent.addProperty(fe.name||(0,E.uid)(),fe);ve.parent=this.current.parent,ve["x-index"]=Se,this.current.parent.setProperties(ye);var te=H(ve,ne),Z=u()(te,2),ee=Z[0],he=Z[1];this.emit("insertAdjacent",c()({position:"afterEnd",schema:he,wrap:ee,wrapped:fe},pe))}}}]),X}();function R(){var X=(0,x.useContext)(L.SchemaOptionsContext),ce=(0,x.useMemo)(function(){return(X==null?void 0:X.components)||{}},[X]),ne=function(ie){if(!ie)return null;if(typeof ie!="string")return ie;var pe=k()(ce,ie);return pe||console.error('[nocobase]: Component "'.concat(ie,'" not found')),pe};return ne}function G(){var X=(0,x.useContext)(d.D),ce=X.designable,ne=X.setDesignable,oe=X.refresh,ie=X.reset,pe=(0,x.useContext)(L.SchemaOptionsContext),V=(0,x.useMemo)(function(){return(pe==null?void 0:pe.components)||{}},[pe]),xe=(0,x.useMemo)(function(){return function(){return(0,l.jsx)(l.Fragment,{})}},[]),de=(0,L.useField)(),ae=(0,L.useFieldSchema)(),Pe=(0,D.LY)(),Se=(0,a.$)(),Ae=Se.t,ye=(0,x.useMemo)(function(){return h({t:Ae,api:Pe,refresh:oe,current:ae,model:de,appVersion:i.i8})},[Ae,Pe,oe,ae,de]);return(0,x.useEffect)(function(){ye.loadAPIClientEvents()},[ye]),{dn:ye,designable:ce,reset:ie,refresh:oe,setDesignable:ne,DesignableBar:xe,findComponent:(0,x.useCallback)(function(fe){return fe?typeof fe!="string"?fe:k()(V,fe):null},[k()]),on:ye.on.bind(ye),patch:(0,x.useCallback)(function(fe,ve){var te=function(he){Object.keys(he).forEach(function(me){var Ee=he[me];me==="title"&&(de.title=Ee,ae.title=Ee),me==="x-decorator-props"&&(de.decoratorProps||(de.decoratorProps={}),ae["x-decorator-props"]||(ae["x-decorator-props"]={}),Object.keys(Ee).forEach(function(Ie){de.decoratorProps[Ie]=Ee[Ie],ae["x-decorator-props"][Ie]=Ee[Ie]})),me==="x-component-props"&&(de.componentProps||(de.componentProps={}),ae["x-component-props"]||(ae["x-component-props"]={}),Object.keys(Ee).forEach(function(Ie){de.componentProps[Ie]=Ee[Ie],ae["x-component-props"][Ie]=Ee[Ie]}))})};if(typeof fe=="string"){var Z={};return S()(Z,fe,ve),te(Z)}te(fe),oe()},[ye]),shallowMerge:(0,x.useCallback)(function(fe){ye.shallowMerge(fe)},[ye]),deepMerge:(0,x.useCallback)(function(fe){ye.deepMerge(fe)},[ye]),remove:(0,x.useCallback)(function(fe,ve){ye.remove(fe,ve)},[ye]),insertAdjacent:(0,x.useCallback)(function(fe,ve,te){ye.insertAdjacent(fe,ve,te)},[ye]),insertBeforeBegin:(0,x.useCallback)(function(fe){ye.insertBeforeBegin(fe)},[ye]),insertAfterBegin:(0,x.useCallback)(function(fe){ye.insertAfterBegin(fe)},[ye]),insertBeforeEnd:(0,x.useCallback)(function(fe){ye.insertBeforeEnd(fe)},[ye]),insertAfterEnd:(0,x.useCallback)(function(fe){ye.insertAfterEnd(fe)},[ye])}}},98146:function(He,le,e){"use strict";e.d(le,{e:function(){return b}});var W=e(94350),u=e(84577),N=e(67294),v=e(74538),M=function(){return null},b=function(){var r=(0,u.ng)(),j=r.designable,f=(0,W.useFieldSchema)(),F=(0,N.useMemo)(function(){return f["x-designer"]||f["x-toolbar"]?f["x-designer"]||f["x-toolbar"]:f["x-settings"]?v.Mf:M},[f]),C=(0,u.Co)(F);return j&&C||M}},9780:function(He,le,e){"use strict";e.d(le,{w:function(){return $}});var W=e(97857),u=e.n(W),N=e(13769),v=e.n(N),M=["useProps"],b=function(){return{}},$=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=j.useProps,F=f===void 0?b:f,C=v()(j,M),O=F;typeof F!="function"&&(O=b);var n=O();return u()(u()({},C),n)}},41278:function(He,le,e){"use strict";e.d(le,{aUM:function(){return T.aU},olz:function(){return T.ol},N0i:function(){return T.N0},fWn:function(){return T.fW},EIK:function(){return T.EI},$Lt:function(){return T.$L},$b8:function(){return T.$b},HTy:function(){return To},lkv:function(){return Ko},rDu:function(){return $o},eYL:function(){return T.eY},Rat:function(){return ra},$SD:function(){return vi},fUi:function(){return Zo.fU},QcG:function(){return wl},gOu:function(){return _s},jYG:function(){return $a.j},C1I:function(){return T.C1},Ssf:function(){return Hl},vTp:function(){return Jl},XZJ:function(){return ca},Tt2:function(){return es},zH8:function(){return as},Q5L:function(){return ls},Pok:function(){return fi},Vm0:function(){return ds},xI_:function(){return ns},Lip:function(){return ts},Mtg:function(){return ya},iNu:function(){return vs},zzt:function(){return Yt.zz},_bl:function(){return y._b},POi:function(){return ps},AOY:function(){return ae},LBT:function(){return E.DndContext},IWB:function(){return E.DragHandler},LCt:function(){return E.DraggableContext},FyH:function(){return V.Fy},Nir:function(){return V.Ni},q8U:function(){return V.q8},HGA:function(){return V.HG},QTe:function(){return V.QT},JEX:function(){return V.JE},fAH:function(){return dl},$w$:function(){return V.$w},nBj:function(){return V.nB},Oct:function(){return V.Oc},zdw:function(){return V.zd},CXR:function(){return ul},BQs:function(){return Fo.BQ},Hj5:function(){return pt.H},M0b:function(){return gi},wn$:function(){return Nr.wn},GzZ:function(){return Nr.Gz},tJZ:function(){return Nr.tJ},AsW:function(){return Qn},cLM:function(){return Lo},m__:function(){return Jn},l09:function(){return oe},D_t:function(){return Ji.D},WiK:function(){return It},xJW:function(){return V.xJ},RVL:function(){return y.RV},Bc8:function(){return Kr},hG9:function(){return Ci},DCh:function(){return _i},rjZ:function(){return da.rj},Cqo:function(){return ka},jg7:function(){return da.jg},gsn:function(){return Fo.gs},$18:function(){return Ds},IIB:function(){return Fo.II},RnZ:function(){return qi},mX2:function(){return Fo.mX},zDC:function(){return bo.zD},Phs:function(){return Fo.Ph},aVo:function(){return wa},UGj:function(){return nl},yq5:function(){return rl},v2r:function(){return ha},HIW:function(){return Nu},T3C:function(){return kr},tlE:function(){return ks},rop:function(){return Gs},gGi:function(){return Hs},MBS:function(){return Zs.M},pGO:function(){return Ys},Y8K:function(){return Si},iVT:function(){return Fo.iV},ODP:function(){return bo.OD},lbb:function(){return bo.lb},b7w:function(){return bo.b7},sUk:function(){return bo.sU},x1j:function(){return T.x1},m1v:function(){return y.m1},glM:function(){return _t},xZD:function(){return T.xZ},MkN:function(){return T.Mk},Hof:function(){return Qs},n6:function(){return y.n6},DDd:function(){return _v.D},G0E:function(){return y.G0},a$w:function(){return y.a$},TzZ:function(){return y.Tz},y00:function(){return T.y0},PhF:function(){return en},Cqv:function(){return E.ShowFormData},cof:function(){return T.co},bts:function(){return E.Sortable},Fop:function(){return E.SortableContext},TRI:function(){return E.SortableItem},ORg:function(){return E.SortableProvider},TaI:function(){return qs},qHe:function(){return pr.q},iA_:function(){return Go},gvM:function(){return uu},SnY:function(){return ml},ASv:function(){return du},bwk:function(){return oa},mQc:function(){return Di},c__:function(){return vu},QZ3:function(){return $e},L39:function(){return $a.L},jII:function(){return pl},mPs:function(){return Cu},tgM:function(){return Wu},gqx:function(){return Zo.gq},Qm7:function(){return Zo.Qm},_wD:function(){return Ma},rjl:function(){return Lu},Fjw:function(){return T.Fj},SLL:function(){return T.SL},sBv:function(){return T.sB},iTm:function(){return V.iT},Pls:function(){return Yt.Pl},Oxq:function(){return Pt},WLi:function(){return We},$9M:function(){return V.$9},nCn:function(){return Ga},iNG:function(){return Ea},tD8:function(){return xi},pg9:function(){return Hr},Ofb:function(){return V.Of},ibf:function(){return lo},WyG:function(){return pe},l6$:function(){return Lt.l6},WGR:function(){return wt},C$H:function(){return bo.C$},cNQ:function(){return bo.cN},ZZb:function(){return V.ZZ},elO:function(){return bo.el},_Ko:function(){return io},Mev:function(){return qr},i2K:function(){return mo},WmO:function(){return Nr.Wm},oBi:function(){return Yt.oB},igR:function(){return T.ig},DU1:function(){return T.DU},XCj:function(){return T.XC},lIL:function(){return Yt.lI},hi9:function(){return Yt.hi},p27:function(){return T.p2},z9d:function(){return cl.z},eJW:function(){return Yt.eJ},Cor:function(){return Yt.Co},aZq:function(){return Yt.aZ},P1D:function(){return hi},ngQ:function(){return Yt.ng},ett:function(){return Yt.et},ySm:function(){return pt.y},Zd$:function(){return V.Zd},cLh:function(){return Yt.cL},baz:function(){return V.b},fde:function(){return Yt.fd},Xdt:function(){return bo.Xd},Cld:function(){return Yt.Cl},vH8:function(){return Yt.vH},PLH:function(){return Nr.PL},V8t:function(){return Nr.V8},tMk:function(){return Nr.tM},xQm:function(){return Nr.xQ},sRe:function(){return Yt.sR},frb:function(){return Bn},$N2:function(){return mn},U1u:function(){return rt},HS$:function(){return T.HS},vBu:function(){return T.vB},QYZ:function(){return T.QY},t9d:function(){return T.t9},Kgy:function(){return Nr.Kg},aJ2:function(){return Nr.aJ},n14:function(){return da.n1},DiB:function(){return da.Di},l1O:function(){return V.l1},w5o:function(){return V.w5},p3Q:function(){return V.p3},G5e:function(){return V.G5},xj2:function(){return V.xj},rxY:function(){return V.rx},Ils:function(){return bo.Il},zCB:function(){return T.zC},wNf:function(){return Yt.wN},Dmu:function(){return Yt.Dm},Bsl:function(){return y.Bs},yKv:function(){return zs.y},fMB:function(){return Yt.fM},gCg:function(){return vl},eT6:function(){return V.eT},q4O:function(){return V.q4},ymE:function(){return Ku}});var W={};e.r(W),e.d(W,{Action:function(){return T.aU},ActionBar:function(){return T.ol},ActionBarProvider:function(){return T.N0},ActionContext:function(){return T.fW},ActionContextProvider:function(){return T.EI},ActionDesigner:function(){return T.$L},AfterSuccess:function(){return T.$b},AntdSchemaComponentPlugin:function(){return To},AntdSchemaComponentProvider:function(){return Ko},AppendsTreeSelect:function(){return $o},AssignedFieldValues:function(){return T.eY},AssociationField:function(){return ra},AssociationSelect:function(){return vi},AttachmentList:function(){return Zo.fU},AutoComplete:function(){return wl},Block:function(){return _s},BlockItem:function(){return $a.j},ButtonEditor:function(){return T.C1},CardItem:function(){return Hl},Cascader:function(){return Jl},Checkbox:function(){return ca},CollectionSelect:function(){return es},ColorPicker:function(){return as},ColorSelect:function(){return ls},Cron:function(){return fi},CronSet:function(){return ds},DataSourceCollectionCascader:function(){return ns},DataSourceSelect:function(){return ts},DatePicker:function(){return ya},DatePickerProvider:function(){return vs},Details:function(){return ps},DetailsDesigner:function(){return ae},EditComponent:function(){return V.Fy},EditDefaultValue:function(){return V.Ni},EditDescription:function(){return V.q8},EditOperator:function(){return V.HG},EditPattern:function(){return V.QT},EditRequired:function(){return V.JE},EditSortField:function(){return dl},EditTitle:function(){return V.$w},EditTitleField:function(){return V.nB},EditTooltip:function(){return V.Oc},EditValidationRules:function(){return V.zd},Editable:function(){return ul},EllipsisWithTooltip:function(){return Fo.BQ},ErrorFallback:function(){return pt.H},Expand:function(){return gi},Filter:function(){return Nr.wn},FilterAction:function(){return Nr.Gz},FilterActionContext:function(){return Nr.tJ},FixedBlock:function(){return Qn},FixedBlockDesignerItem:function(){return Lo},FixedBlockWrapper:function(){return Jn},Form:function(){return oe},FormDialog:function(){return Ji.D},FormField:function(){return It},FormItem:function(){return V.xJ},FormV2:function(){return Kr},G2Plot:function(){return Ci},G2PlotRenderer:function(){return _i},Grid:function(){return da.rj},GridCard:function(){return ka},GridRowContext:function(){return da.jg},HTMLEncode:function(){return Fo.gs},IconPicker:function(){return Ds},Input:function(){return Fo.II},InputNumber:function(){return qi},InputReadPretty:function(){return Fo.mX},InputRecordPicker:function(){return bo.zD},Json:function(){return Fo.Ph},List:function(){return wa},Markdown:function(){return nl},MarkdownReadPretty:function(){return rl},Menu:function(){return ha},NanoIDInput:function(){return Nu},Page:function(){return kr},Pagination:function(){return ks},Password:function(){return Gs},Percent:function(){return Hs},Preview:function(){return Zs.M},QuickEdit:function(){return Ys},Radio:function(){return Si},ReadPretty:function(){return Fo.iV},ReadPrettyRecordPicker:function(){return bo.OD},RecordPicker:function(){return bo.lb},RecordPickerContext:function(){return bo.b7},RecordPickerProvider:function(){return bo.sU},RefreshDataBlockRequest:function(){return T.x1},RemoteSelect:function(){return _t},RemoveButton:function(){return T.xZ},RequestSettings:function(){return T.Mk},RichText:function(){return Qs},SecondConFirm:function(){return T.y0},Select:function(){return en},SkipValidation:function(){return T.co},Space:function(){return qs},StablePopover:function(){return pr.q},Table:function(){return Go},TableBlockDesigner:function(){return uu},TableField:function(){return ml},TableSelectorDesigner:function(){return du},TableV2:function(){return oa},Tabs:function(){return Di},TabsContextProvider:function(){return vu},Templates:function(){return $e},TestDesigner:function(){return $a.L},TimePicker:function(){return pl},TreeSelect:function(){return Cu},UnixTimestamp:function(){return Wu},Upload:function(){return Zo.gq},Uploader:function(){return Zo.Qm},Variable:function(){return Ma},VariableScopeProvider:function(){return Lu},WorkflowConfig:function(){return T.Fj},actionSettings:function(){return T.SL},actionSettingsItems:function(){return T.sB},allowAddNew:function(){return V.iT},defaultFieldNames:function(){return Pt},fetchTemplateData:function(){return We},filterFormItemSettings:function(){return V.$9},findByUid:function(){return Ga},findKeysByUid:function(){return Ea},findMenuItem:function(){return xi},formDetailsSettings:function(){return Hr},formItemSettings:function(){return V.Of},formSettings:function(){return lo},formV1Settings:function(){return pe},genStyleHook:function(){return Lt.l6},getCurrentOptions:function(){return wt},getDatePickerLabels:function(){return bo.C$},getLabelFormatValue:function(){return bo.cN},isFileCollection:function(){return V.ZZ},isShowFilePicker:function(){return bo.el},pageSettings:function(){return io},pageTabSettings:function(){return qr},readPrettyFormSettings:function(){return mo},removeNullCondition:function(){return Nr.Wm},useA:function(){return T.ig},useActionBarContext:function(){return T.DU},useActionContext:function(){return T.XC},useCloseAction:function(){return T.p2},useColumnSchema:function(){return cl.z},useDatePickerContext:function(){return hi},useDownloadLogs:function(){return pt.y},useEnsureOperatorsValid:function(){return V.Zd},useFieldMode:function(){return V.b},useFieldNames:function(){return bo.Xd},useFilterActionProps:function(){return Nr.PL},useFilterFieldOptions:function(){return Nr.V8},useFilterFieldProps:function(){return Nr.tM},useFilterOptions:function(){return Nr.xQ},useFixedBlock:function(){return Bn},useFixedSchema:function(){return mn},useFormDataTemplates:function(){return rt},useGetAriaLabelOfAction:function(){return T.HS},useGetAriaLabelOfDrawer:function(){return T.vB},useGetAriaLabelOfModal:function(){return T.QY},useGetAriaLabelOfPopover:function(){return T.t9},useGetFilterFieldOptions:function(){return Nr.Kg},useGetFilterOptions:function(){return Nr.aJ},useGridContext:function(){return da.n1},useGridRowContext:function(){return da.Di},useIsAddNewForm:function(){return V.l1},useIsAssociationField:function(){return V.w5},useIsFieldReadPretty:function(){return V.p3},useIsFileField:function(){return V.G5},useIsFormReadPretty:function(){return V.xj},useIsSelectFieldMode:function(){return V.rx},useLabelUiSchema:function(){return bo.Il},useLinkageAction:function(){return T.zC},useStyles:function(){return zs.y},useTabsContext:function(){return vl},useTitleFieldOptions:function(){return V.eT},useValidateSchema:function(){return V.q4},useVariableScope:function(){return Ku}});var u=e(15009),N=e.n(u),v=e(99289),M=e.n(v),b=e(12444),$=e.n(b),r=e(72004),j=e.n(r),f=e(31996),F=e.n(f),C=e(26037),O=e.n(C),n=e(97857),o=e.n(n),c=e(67294),L=e(31601),E=e(14896),y=e(70993),m=e(89127),K=function(g){return M()(N()().mark(function w(){var J,Q;return N()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.prev=0,ge.next=3,this.api.request(g);case 3:return Q=ge.sent,ge.abrupt("return",Q==null||(J=Q.data)===null||J===void 0?void 0:J.data);case 7:return ge.prev=7,ge.t0=ge.catch(0),ge.abrupt("return",[]);case 10:case"end":return ge.stop()}},w,this,[[0,7]])}))},T=e(76157),k=e(13769),A=e.n(k),S=e(57134),x=e(86201),a=e(94350),D=e(28459),d=e(57953),p=e(12174),i=e(6145),l=e(74538),h=e(64016),I=e(95354),t=e(85893),U=["form","children"],H=["form","children","disabled"],Y=["request","effects","initialValue","useValues"],z=function(g){var w=g.form,J=g.children,Q=A()(g,U),se=(0,a.useField)(),ge=(0,a.useFieldSchema)(),De=(0,Yt.lI)(w.createVoidField(o()(o()({},se.props),{},{basePath:""})));return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:w,children:(0,t.jsx)(S.FormLayout,o()(o()({layout:"vertical"},Q),{},{children:(0,t.jsx)(a.RecursionField,{basePath:De.address,schema:ge,onlyRenderProperties:!0})}))})})},R=function(g){return g.children},G=function(g){var w=g.form,J=g.children,Q=g.disabled,se=A()(g,H),ge=(0,a.useField)(),De=(0,a.useFieldSchema)(),Te=(0,Yt.lI)(w.createVoidField(o()(o()({},ge.props),{},{basePath:""}))),Ke=(0,Yt.Co)(De["x-component"],R);return(0,c.useEffect)(function(){w.disabled=Q||ge.disabled},[Q,ge.disabled]),(0,t.jsx)(D.ZP,{componentDisabled:Q,children:(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:w,children:(0,t.jsx)(S.FormLayout,o()(o()({layout:"vertical"},se),{},{children:(0,t.jsx)(a.FieldContext.Provider,{value:Te,children:(0,t.jsx)(Ke,o()(o()({},ge.componentProps),{},{children:(0,t.jsx)(a.RecursionField,{basePath:Te.address,schema:De,onlyRenderProperties:!0})}))})}))})})})},X=function(g){var w=g.request,J=g.initialValue;return w||function(){return Promise.resolve({data:J})}},ce=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,p.QT)(X(w),g)},ne=(0,c.createContext)(null);ne.displayName="FormBlockContext";var oe=(0,a.observer)(function(B){var g=B.request,w=B.effects,J=B.initialValue,Q=B.useValues,se=Q===void 0?ce:Q,ge=A()(B,Y),De=(0,a.useFieldSchema)(),Te=(0,a.useField)(),Ke=(0,c.useMemo)(function(){return(0,x.createForm)({effects:w})},[]),Ge=se({uid:De["x-uid"],onSuccess:function(Xe){return M()(N()().mark(function lt(){return N()().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,Ke.reset();case 2:Ke.setValues(Xe==null?void 0:Xe.data),Ke.setInitialValues(Xe==null?void 0:Xe.data);case 4:case"end":return ht.stop()}},lt)}))()}},B),Je=(0,c.useContext)(ne);return(0,t.jsx)(ne.Provider,{value:{parent:Je,form:Ke,result:Ge,field:Te,fieldSchema:De},children:(0,t.jsx)(d.Z,{spinning:(Ge==null?void 0:Ge.loading)||!1,children:De["x-decorator"]==="Form"?(0,t.jsx)(G,o()({form:Ke},ge)):(0,t.jsx)(z,o()({form:Ke},ge))})})},{displayName:"Form"});oe.Designer=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsxs)(l.aN,{template:Q,title:J||w,children:[(0,t.jsx)(h.G,{componentName:"Form",collectionName:w}),(0,t.jsx)(l.Z5,{}),(0,t.jsx)(l.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var ie=e(5537),pe=new ie.F5({name:"FormV1Settings",items:[{name:"template",Component:h.G,useComponentProps:function(){var g=(0,i.useCollection_deprecated)(),w=g.name;return{componentName:"Form",collectionName:w}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),V=e(54801),xe=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"FormSettings",template:Q,title:J||w})},de=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"ReadPrettyFormSettings",template:Q,title:J||w})},ae=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"FormDetailsSettings",template:Q,title:J||w})},Pe=function(){var g=(0,i.useCollection_deprecated)(),w=g.name,J=g.title,Q=(0,I.zy)();return(0,t.jsx)(l.aN,{schemaSettings:"blockSettings:filterForm",template:Q,title:J||w})},Se=e(7340),Ae=e(15503),ye=e(68230),fe=e(9783),ve=e.n(fe),te=e(68400),Z=e.n(te),ee=e(97133),he=e(85667),me=e(63198),Ee=e(68433),Ie=e(9361),Le=e(31019),Ue=e(4595),Be=e(86406),be=e(90615),_e=e(44256),re=e(76690),P=e(34588),q=e(9780),Ce=e(18686),ue=e(72594),Ne=e(5574),Ve=e.n(Ne),Qe=e(42075),Re=e(34041),et=e(96486),je=e.n(et),Ye=e(26793),it=e(32268),Lt=e(60094),dn=e(52677),Nt=e.n(dn),In=e(50888),_n=e(66309),qn=e(96074),er=e(27484),tr=e.n(er),Ur=e(87714),Yt=e(84577),ar=e(4340),mr=e(97937),Vn=e(32983),fn=e(58812),Wn=e(96695),Fn=e.n(Wn),$t=e(19632),gt=e.n($t),Pt={label:"label",value:"value",color:"color",options:"children"};function Zt(B,g){var w=[];if(!Array.isArray(B))return w;for(var J=0;J<B.length;J++){var Q=B[J][g.options];Array.isArray(Q)&&w.push.apply(w,gt()(Zt(Q,g))),w.push(o()({},B[J]))}return w}function wt(B,g,w){var J=Zt(g,w),Q=(0,et.castArray)(B).filter(function(ge){return ge!=null}).map(function(ge){return(0,Ee.isPlainObject)(ge)?ge[w.value]:ge});function se(ge){if(!ge)return[];var De=[],Te=Fn()(Q),Ke;try{var Ge=function(){var mt=Ke.value,Xe=ge.find(function(lt){return lt[w.value]==mt})||{value:mt,label:mt&&mt.toString()};De.push(Xe)};for(Te.s();!(Ke=Te.n()).done;)Ge()}catch(Je){Te.e(Je)}finally{Te.f()}return De}return se(J)}var Jt=e(67668),Ut=(0,a.observer)(function(B){var g,w=o()(o()({},Pt),B.fieldNames),J=(0,a.useField)();if(!(0,me.isValid)(B.value))return(0,t.jsx)("div",{});if((0,x.isArrayField)(J)&&(J==null||(g=J.value)===null||g===void 0?void 0:g.length)===0)return(0,t.jsx)("div",{});var Q=(0,Jt.Hy)(),se=J.dataSource||B.options||(Q==null?void 0:Q.uiSchema.enum)||[],ge=wt(J.value,se,w);return(0,t.jsx)("div",{children:(0,t.jsx)(fn.B,{ellipsis:B.ellipsis,children:ge.map(function(De,Te){return(0,t.jsx)(_n.Z,{color:De[w.color],icon:De.icon,children:De[w.label]},Te)})})})},{displayName:"ReadPretty"}),cn=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Vt=["objectValue","loading","value","rawOptions","defaultValue"],Xt=function(g){return!(0,me.isValid)(g)||Nt()(g)==="object"&&Object.keys(g).length===0},Mt=function(g){var w=g.value,J=g.options,Q=g.onChange,se=g.fieldNames,ge=g.mode,De=g.loading,Te=g.rawOptions,Ke=g.defaultValue,Ge=A()(g,cn),Je=function(Xe){var lt;if(!Xt(Xe)){var qe=(0,me.toArr)(Xe).filter(function(bt){return bt}).map(function(bt){return(0,Ee.isPlainObject)(bt)?bt[se.value]:bt}),ht=(lt=wt(qe,J,se))===null||lt===void 0?void 0:lt.map(function(bt){return{label:bt[se.label],value:bt[se.value]}});return["tags","multiple"].includes(ge)||g.multiple?ht:ht.shift()}};return(0,t.jsx)(Re.default,o()({role:"button","data-testid":"select-object-".concat(ge||"single"),value:Je(w),defaultValue:Je(Ke),allowClear:{clearIcon:(0,t.jsx)(ar.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:De?(0,t.jsx)(d.Z,{}):(0,t.jsx)(Vn.Z,{image:Vn.Z.PRESENTED_IMAGE_SIMPLE}),options:J,fieldNames:se,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Xe,lt){var qe;return((qe=lt==null?void 0:lt[se.label||"label"])!==null&&qe!==void 0?qe:"").includes(Xe)},filterSort:function(Xe,lt){var qe,ht;return((qe=Xe==null?void 0:Xe[se.label||"label"])!==null&&qe!==void 0?qe:"").toLowerCase().localeCompare(((ht=lt==null?void 0:lt[se.label||"label"])!==null&&ht!==void 0?ht:"").toLowerCase())},onChange:function(Xe){var lt=wt((0,me.toArr)(Xe).map(function(qe){return qe.value}),Te||J,se);["tags","multiple"].includes(ge)||g.multiple?Q==null||Q(lt):Q==null||Q(lt.shift()||null)},mode:ge,tagRender:function(Xe){return(0,t.jsx)(_n.Z,o()(o()({role:"button","aria-label":Xe.label,closeIcon:(0,t.jsx)(mr.Z,{role:"button","aria-label":"icon-close-tag"})},Xe),{},{children:Xe.label}))}},Ge))},jt=function(g,w){var J;return((J=w==null?void 0:w.label)!==null&&J!==void 0?J:"").toLowerCase().includes((g||"").toLowerCase())},Gt=(0,a.connect)(function(B){var g=B.objectValue,w=B.loading,J=B.value,Q=B.rawOptions,se=B.defaultValue,ge=A()(B,Vt),De=B.multiple?"multiple":B.mode;if(De&&!["multiple","tags"].includes(De)&&(De=void 0),g)return(0,t.jsx)(Mt,o()(o()({rawOptions:Q},ge),{},{defaultValue:se,value:J,mode:De,loading:w}));var Te=function(Ge){return["tags","multiple"].includes(B.mode)||B.multiple?Ge?(0,me.toArr)(Ge):void 0:Ge};return(0,t.jsx)(Re.default,o()(o()({role:"button","data-testid":"select-".concat(De||"single"),showSearch:!0,filterOption:jt,allowClear:{clearIcon:(0,t.jsx)(ar.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:w?(0,t.jsx)(d.Z,{}):(0,t.jsx)(Vn.Z,{image:Vn.Z.PRESENTED_IMAGE_SIMPLE}),value:Te(J),defaultValue:Te(se),tagRender:function(Ge){return(0,t.jsx)(_n.Z,o()(o()({role:"button","aria-label":Ge.label,closeIcon:(0,t.jsx)(mr.Z,{role:"button","aria-label":"icon-close-tag"})},Ge),{},{children:Ge.label}))}},ge),{},{onChange:function(Ge){var Je;(Je=B.onChange)===null||Je===void 0||Je.call(B,Ge===void 0?null:Ge)},mode:De}))},(0,a.mapProps)({dataSource:"options"},function(B,g){return o()(o()({},B),{},{fieldNames:o()(o()({},Pt),B.fieldNames),suffixIcon:g!=null&&g.loading||g!=null&&g.validating?(0,t.jsx)(In.Z,{}):B.suffixIcon})}),(0,a.mapReadPretty)(Ut)),en=Gt;en.ReadPretty=Ut;var ln=en,Ot=e(36586),Zn=function(g,w){return(0,et.castArray)(g).filter(function(J){return J!=null}).map(function(J){return Nt()(J)==="object"?J[w.value]:J})},rn=(0,a.observer)(function(B){var g=o()(o()({},Pt),B.fieldNames),w=(0,a.useField)(),J=(0,a.useFieldSchema)(),Q=(0,Ot.a)(),se=(0,T.XC)(),ge=se.snapshot,De=(0,p.QT)(ge?M()(N()().mark(function Ke(){return N()().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.abrupt("return",{data:Q[J.name]});case 1:case"end":return Je.stop()}},Ke)})):o()(o()({action:"list"},B.service),{},{params:{paginate:!1,filter:ve()({},g.value,{$in:Zn(w.value,g)})}}),{refreshDeps:[B.service,w.value]}),Te=De.data;return(0,t.jsx)(en.ReadPretty,o()(o()({},B),{},{options:Te==null?void 0:Te.data}))},{displayName:"ReadPretty"}),Sn=e(8341),Rn=e(44990),jn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource"],vt="N/A",at=(0,a.connect)(function(B){var g,w,J=B.fieldNames,Q=J===void 0?{}:J,se=B.service,ge=se===void 0?{}:se,De=B.wait,Te=De===void 0?300:De,Ke=B.value,Ge=B.defaultValue,Je=B.objectValue,mt=B.manual,Xe=mt===void 0?!0:mt,lt=B.mapOptions,qe=B.targetField,ht=B.CustomDropdownRender,bt=B.optionFilter,Ct=B.dataSource,Wt=A()(B,jn),Bt=(0,Rn.FC)(),Tn=(0,Sn.FE)(Ct||Bt),pn=(0,c.useState)(!1),Dt=Ve()(pn,2),an=Dt[0],On=Dt[1],Kn=(0,c.useRef)(!1),wn=(0,a.useFieldSchema)(),xn=((g=wn["x-component-props"])===null||g===void 0?void 0:g.addMode)==="quickAdd",ur=(0,i.useCollection_deprecated)(),gn=ur.getField,Sr=(0,c.useRef)(null),Or=(0,i.useCollectionManager_deprecated)(),gr=Or.getCollectionJoinField,Hn=Or.getInterface,cr=wn["x-collection-field"]||wn.name,zn=gn(cr)||gr(cr),Cn=qe||(zn==null?void 0:zn.target)&&(Q==null?void 0:Q.label)&&gr("".concat(zn.target,".").concat(Q.label)),kn=(0,c.useMemo)(function(){if(Cn!=null&&Cn.interface){var Ir;return((Ir=Hn(Cn.interface))===null||Ir===void 0||(Ir=Ir.filterable)===null||Ir===void 0?void 0:Ir.operators[0].value)||"$includes"}return"$includes"},[Cn]),nr=(0,Yt.eJ)(),on=(0,c.useCallback)(function(Ir){try{return Ir.filter(function(Er){return["number","string"].includes(Nt()(Er[Q.value]))}).map(function(Er){var vo,Mo,Do=nr(Er[Q.label]);if(Cn!=null&&(vo=Cn.uiSchema)!==null&&vo!==void 0&&vo.enum)if(Array.isArray(Do))Do=Do.map(function(aa,Pl){var ia=Cn.uiSchema.enum.find(function(Ii){return Ii.value===aa});return ia?(0,t.jsx)(_n.Z,{role:"button",color:ia.color,style:{marginRight:3},children:(ia==null?void 0:ia.label)||aa},Pl):(0,t.jsx)(_n.Z,{role:"button",children:aa},aa)}).reverse();else{var Po=Cn.uiSchema.enum.find(function(aa){return aa.value===Do});Po&&(Do=(0,t.jsx)(_n.Z,{role:"button",color:Po.color,children:Po.label}))}if((Cn==null?void 0:Cn.type)==="date"&&(Do=tr()(Do).format("YYYY-MM-DD")),lt){var Wo;return lt((Wo={},ve()(Wo,Q.label,Do||vt),ve()(Wo,Q.value,Er[Q.value]),Wo))}return o()(o()({},Er),{},(Mo={},ve()(Mo,Q.label,Do||vt),ve()(Mo,Q.value,Er[Q.value]),Mo))}).filter(Boolean)}catch(Er){return console.error(Er),Ir}},[Cn==null?void 0:Cn.uiSchema,Q]),hn=(0,p.QT)(o()(o()({action:"list"},ge),{},{headers:Tn,params:o()(o()({pageSize:200},ge==null?void 0:ge.params),{},{filter:ge==null||(w=ge.params)===null||w===void 0?void 0:w.filter})}),{manual:Xe,debounceWait:Te}),Gn=hn.data,vr=hn.run,$n=hn.loading,dr=(0,c.useMemo)(function(){return JSON.stringify({service:ge,fieldNames:Q})},[ge,Q]),lr=(0,c.useCallback)(function(){return Sr.current&&ht?(0,t.jsx)(ht,{search:Sr.current,callBack:function(){Sr.current=null,On(!1)}}):null},[Sr.current]);(0,c.useEffect)(function(){Kn.current&&vr()},[dr]);var Mr=function(){var Ir=M()(N()().mark(function Er(vo){var Mo;return N()().wrap(function(Po){for(;;)switch(Po.prev=Po.next){case 0:vr({filter:(0,Ur.EO)([vo?ve()({},Q.label,ve()({},kn,vo)):{},ge==null||(Mo=ge.params)===null||Mo===void 0?void 0:Mo.filter])}),Sr.current=vo;case 2:case"end":return Po.stop()}},Er)}));return function(vo){return Ir.apply(this,arguments)}}(),Vr=(0,c.useMemo)(function(){var Ir,Er=Ke||Ge;if(!(Gn!=null&&(Ir=Gn.data)!==null&&Ir!==void 0&&Ir.length))return Er!=null?Array.isArray(Er)?Er:[Er]:[];var vo=Er!=null&&(Array.isArray(Er)?Er:[o()(o()({},Er),{},ve()({},Q.value,Er[Q.value]||Er))])||[],Mo=typeof bt=="function"?Gn.data.filter(bt):Gn.data;return(0,et.uniqBy)(Mo.concat(vo!=null?vo:[]),Q.value)},[Ke,Ge,Gn==null?void 0:Gn.data,Q.value,bt]),Lr=function(Er){On(Er),Sr.current=null,Er&&vr(),Kn.current=!0};return(0,t.jsx)(en,o()(o()({open:an,popupMatchSelectWidth:!1,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:Q,onSearch:Mr,onDropdownVisibleChange:Lr,objectValue:Je,value:Ke,defaultValue:Ge},Wt),{},{loading:Gn?$n:!0,options:on(Vr),rawOptions:Vr,dropdownRender:function(Er){var vo=Vr.some(function(Mo){return Mo[Q.label]===Sr.current});return(0,t.jsx)(t.Fragment,{children:xn?(0,t.jsxs)(t.Fragment,{children:[!((Gn==null?void 0:Gn.data.length)===0&&Sr!==null&&Sr!==void 0&&Sr.current)&&Er,(Gn==null?void 0:Gn.data.length)>0&&(Sr==null?void 0:Sr.current)&&!vo&&(0,t.jsx)(qn.Z,{style:{margin:0}}),!vo&&(0,t.jsx)(lr,{})]}):Er})}}))},(0,a.mapProps)({dataSource:"options"},function(B,g){var w,J=(0,a.useFieldSchema)();return o()(o()({},B),{},{fieldNames:o()(o()(o()(o()({},Pt),B.fieldNames),g.componentProps.fieldNames),(w=J["x-component-props"])===null||w===void 0?void 0:w.fieldNames),suffixIcon:g!=null&&g.loading||g!=null&&g.validating?(0,t.jsx)(In.Z,{}):B.suffixIcon})}),(0,a.mapReadPretty)(rn)),_t=at;_t.ReadPretty=rn;var At=null,rt=function(){var g=(0,a.useFieldSchema)(),w=(0,Ye.$)(),J=w.t,Q=(0,Se.bz)(),se=Q.duplicateData,ge=(0,i.useCollectionManager_deprecated)(),De=ge.getCollectionJoinField;if(se)return se;var Te=ke(g),Ke=Te.items,Ge=Ke===void 0?[]:Ke,Je=Te.display,mt=Je===void 0?!0:Je;Ge.forEach(function(qe){try{var ht;qe.fields=(ht=qe.fields)===null||ht===void 0?void 0:ht.map(function(bt){var Ct=De("".concat(qe.collection,".").concat(bt));return Ct?bt:""}).filter(Boolean)}catch(bt){(0,Ee.error)(bt),qe.fields=[]}});var Xe=[{key:"none",title:J("None")}].concat(Ge.map(function(qe,ht){return o()(o()({key:ht},qe),{},{isLeaf:qe.dataId!==null&&qe.dataId!==void 0,titleCollectionField:(qe==null?void 0:qe.titleField)&&De("".concat(qe.collection,".").concat(qe.titleField))})})),lt=Ge.find(function(qe){return qe.default});return{templates:Xe,display:mt,defaultTemplate:lt,enabled:Ge.length>0&&Ge.every(function(qe){return qe.dataId||qe.dataScope})}},$e=function(g){var w=g.style,J=w===void 0?{}:w,Q=g.form,se=(0,Lt.dQ)(),ge=se.token,De=rt(),Te=De.templates,Ke=De.display,Ge=De.enabled,Je=De.defaultTemplate,mt=(0,i.useCollectionManager_deprecated)(),Xe=mt.getCollectionJoinField,lt=(0,it.ss)(Te),qe=(0,c.useState)((Je==null?void 0:Je.key)||"none"),ht=Ve()(qe,2),bt=ht[0],Ct=ht[1],Wt=(0,c.useState)(null),Bt=Ve()(Wt,2),Tn=Bt[0],pn=Bt[1],Dt=(0,p.LY)(),an=(0,Ye.$)(),On=an.t;(0,c.useEffect)(function(){Ge&&Je&&Q&&(Q.__template=!0,Je.key==="duplicate"&&ur(Je.dataId,Je))},[]),(0,c.useEffect)(function(){lt!=null&&lt.some(function(Sr){return Sr.key===bt})||xn("none")},[lt]);var Kn=(0,c.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:ge.colorFillAlter,padding:ge.padding},J)},[J,ge.colorFillAlter]),wn=(0,c.useMemo)(function(){return{fontSize:ge.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:ge.marginXS}},[ge.fontSize,ge.marginXS]),xn=(0,c.useCallback)(function(){var Sr=M()(N()().mark(function Or(gr){return N()().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:Ct(gr),pn(null),Q==null||Q.reset();case 3:case"end":return cr.stop()}},Or)}));return function(Or){return Sr.apply(this,arguments)}}(),[]),ur=(0,c.useCallback)(function(){var Sr=M()(N()().mark(function Or(gr,Hn){var cr;return N()().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:cr=o()(o()({},Hn),{},{dataId:gr}),pn(Hn),We(Dt,cr,On).then(function(kn){return Q&&kn&&(Q.reset(),Q.__template=!0,(0,Ee.forEach)(kn,function(nr,on){if(nr){var hn;Q.values[on]=nr,Q==null||(hn=Q.setInitialValuesIn)===null||hn===void 0||hn.call(Q,on,nr)}})),kn}).catch(function(kn){console.error(kn)});case 3:case"end":return Cn.stop()}},Or)}));return function(Or,gr){return Sr.apply(this,arguments)}}(),[]);if(!Ge||!Ke)return null;var gn=lt==null?void 0:lt.find(function(Sr){return Sr.key===bt});return(0,t.jsx)("div",{style:Kn,children:(0,t.jsxs)(Qe.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:wn,children:[On("Data template"),": "]}),(0,t.jsx)(Re.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:lt,fieldNames:{label:"title",value:"key"},value:bt,onChange:xn}),bt!=="none"&&gn&&(0,t.jsx)(_t,{style:{width:220},fieldNames:{label:gn==null?void 0:gn.titleField,value:"id"},target:gn==null?void 0:gn.collection,value:Tn,objectValue:!0,service:{resource:gn==null?void 0:gn.collection,params:{filter:gn==null?void 0:gn.dataScope}},onChange:function(Or){return ur(Or==null?void 0:Or.id,o()(o()({},Or),gn))},targetField:Xe("".concat(gn==null?void 0:gn.collection,".").concat(gn.titleField))})]})})};function ke(B){var g=(0,Se.Fi)(B);return g?je().cloneDeep(g["x-data-templates"])||{}:{}}function We(B,g,w){return Fe.apply(this,arguments)}function Fe(){return Fe=M()(N()().mark(function B(g,w,J){return N()().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!(w.fields.length===0||!w.dataId)){se.next=2;break}return se.abrupt("return");case 2:return se.abrupt("return",g.resource(w.collection).get({filterByTk:w.dataId,fields:w.fields,isTemplate:!0}).then(function(ge){var De;return(De=ge.data)===null||De===void 0?void 0:De.data}));case 3:case"end":return se.stop()}},B)})),Fe.apply(this,arguments)}var Me=e(3192),we=function(){var g,w=(0,Ce.aZ)(),J=(0,a.useFieldSchema)(),Q=Ie.Z.useToken(),se=Q.token,ge=(0,Yt.ng)(),De=ge.designable,Te=(0,Me.g)()||{},Ke=Te.heightProps,Ge=Ke||{},Je=Ge.title,mt=rt(),Xe=mt.display,lt=mt.enabled,qe=J.reduceProperties(function(xn,ur){return ur["x-component"]==="ActionBar"?ur:xn}),ht=((g=J.parent)===null||g===void 0?void 0:g["x-decorator"])==="FilterFormBlockProvider",bt=Object.keys((qe==null?void 0:qe.properties)||{}).length>0,Ct=bt||De?se.controlHeight+(ht?se.marginLG:2*se.marginLG):ht?se.marginLG:2*se.marginLG,Wt=Je?se.fontSizeLG*se.lineHeightLG+se.padding*2-1:0,Bt=(0,ue.hS)()||{},Tn=Bt.data,pn=(Tn==null?void 0:Tn.meta)||{},Dt=pn.count,an=pn.pageSize,On=Dt>an,Kn=On?se.controlHeightSM+se.paddingLG:0,wn=Xe&&lt?se.controlHeight+2*se.padding+se.margin:0;return w-Ct-se.paddingLG-Wt-Kn-wn},tt=e(25324),nt,dt,ft=["form","children"],Ft=["form","children","disabled"],Kt=["form","disabled"],zt=function(g){var w=g.form,J=g.children,Q=A()(g,ft),se=(0,a.useField)(),ge=(0,a.useFieldSchema)(),De=(0,Yt.lI)(w.createVoidField(o()(o()({},se.props),{},{basePath:""}))),Te=we(),Ke=Ie.Z.useToken(),Ge=Ke.token;return(0,t.jsx)(a.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(a.FormContext.Provider,{value:w,children:(0,t.jsx)(S.FormLayout,o()(o()({layout:"vertical"},Q),{},{children:(0,t.jsx)("div",{className:(0,ee.css)(nt||(nt=Z()([`
556
556
  .nb-grid {
557
557
  height: `,`;
558
558
  overflow-y: auto;