@nocobase/app 1.6.0-beta.2 → 1.6.0-beta.3

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.
@@ -114,7 +114,7 @@ https://requirejs.org/docs/errors.html#`+ze);return u.requireType=ze,u.requireMo
114
114
  .ant-formily-item {
115
115
  margin-bottom: 0;
116
116
  }
117
- `])))},"x-component":D,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},w=function(){for(var p={},A=arguments.length,g=new Array(A),i=0;i<A;i++)g[i]=arguments[i];for(var G=0,j=g;G<j.length;G++){var O=j[G];Z[O]&&(p[O]=Z[O])}return p}},44605:function(){},53772:function(){},99899:function(ze,se,e){"use strict";e.d(se,{U:function(){return H},l:function(){return u}});function H(k){var c;if(!k)return[];var E=k.split(":"),x=E.pop(),K=(c=E[0])!==null&&c!==void 0?c:"main";return[K,x]}function u(k,c){return!k||k==="main"?c:"".concat(k,":").concat(c)}},5346:function(ze,se,e){"use strict";e.d(se,{T:function(){return x}});var H=e(5574),u=e.n(H),k=e(34041),c=e(67294),E=e(85893);function x(K){var o=K.title,N=K.defaultValue,m=K.onChange,y=K.options,f=K.fieldNames,M=(0,c.useState)(!1),n=u()(M,2),r=n[0],d=n[1],h=(0,c.useRef)(null);return(0,E.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(D){D.stopPropagation(),d(function(R){return!R})},onMouseLeave:function(){h.current=setTimeout(function(){d(!1)},200)},children:[o,(0,E.jsx)(k.default,{open:r,"data-testid":"select-".concat(o),popupMatchSelectWidth:!1,bordered:!1,defaultValue:N,onChange:m,popupClassName:"select-popup-".concat(o.replaceAll(" ","-")),fieldNames:f,options:y,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(h.current)}})]})}},7737:function(ze,se,e){"use strict";e.d(se,{T:function(){return H.T},W:function(){return u.W}});var H=e(5346),u=e(56318)},56318:function(ze,se,e){"use strict";e.d(se,{W:function(){return E}});var H=e(80844),u=e(67668),k=e(38752),c=e(81230);function E(){var x,K,o,N,m=(0,c.z9)(),y=m.fieldSchema,f=m.collectionField,M=(0,H.useField)(),n=(0,k.G5)(),r=(0,H.useFieldSchema)(),d=(0,u.Hy)(),h=y||r,C=f||d,D={AssociationField:"Select"},R=(h==null||(x=h["x-component-props"])===null||x===void 0?void 0:x.mode)||(M==null||(K=M.componentProps)===null||K===void 0?void 0:K.mode)||(n?"FileManager":"")||(h==null||(o=h["x-component-props"])===null||o===void 0?void 0:o.component)||(C==null||(N=C.uiSchema)===null||N===void 0?void 0:N["x-component"]);return D[R]||R}},52967:function(ze,se,e){"use strict";e.d(se,{e:function(){return u}});var H=e(67294),u=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=(0,H.useRef)(0);return(0,H.useEffect)(function(){var x=function(o){var N=o.clientY,m=Math.max(N,window.innerHeight-N);E.current=m};return window.addEventListener("mousemove",x),function(){window.removeEventListener("mousemove",x)}},[]),(0,H.useMemo)(function(){return E.current-40},c)}},20085:function(ze,se,e){"use strict";e.d(se,{O:function(){return x}});var H=e(10274),u=e(67294),k=e(69962),c=e(68230),E=function(o){var N=o.children,m=(0,c.d)(),y=m.token,f=y.colorFillTertiary,M=new H.C(y.colorFill).onBackground(y.colorFillSecondary).toHexShortString(),n=new H.C(y.colorFill).onBackground(y.colorFill).toHexShortString(),r=new H.C(y.colorFill).onBackground(y.colorFill).onBackground(y.colorFill).toHexShortString();return(0,u.useEffect)(function(){document.body.style.setProperty("--nb-spacing","".concat(y.marginLG,"px")),document.body.style.setProperty("--nb-designer-offset","".concat(y.marginXS,"px")),document.body.style.setProperty("--nb-header-height","".concat(y.sizeXXL-2,"px")),document.body.style.setProperty("--nb-box-bg",y.colorBgLayout),document.body.style.setProperty("--nb-box-bg",y.colorBgLayout),document.body.style.setProperty("--controlHeightLG","".concat(y.controlHeightLG,"px")),document.body.style.setProperty("--paddingContentVerticalSM","".concat(y.paddingContentVerticalSM,"px")),document.body.style.setProperty("--marginSM","".concat(y.marginSM,"px")),document.body.style.setProperty("--colorInfoBg",y.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",y.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",y.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",y.colorWarningBorder),document.body.style.setProperty("--colorText",y.colorText),document.body.style.setProperty("--colorPrimaryText",y.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",y.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",y.colorPrimaryTextHover),document.body.style.setProperty("--colorBgScrollTrack",f),document.body.style.setProperty("--colorBgScrollBar",M),document.body.style.setProperty("--colorBgScrollBarHover",n),document.body.style.setProperty("--colorBgScrollBarActive",r),document.body.style.setProperty("--colorSettings",y.colorSettings||k.uH.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",y.colorBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",y.colorBorderSettingsHover),document.body.style.setProperty("background-color",y.colorBgContainer)},[M,r,n,f,y.colorBgContainer,y.colorBgLayout,y.colorBgSettingsHover,y.colorBorderSettingsHover,y.colorInfoBg,y.colorInfoBorder,y.colorPrimaryText,y.colorPrimaryTextActive,y.colorPrimaryTextHover,y.colorSettings,y.colorText,y.colorWarningBg,y.colorWarningBorder,y.controlHeightLG,y.marginLG,y.marginSM,y.marginXS,y.paddingContentVerticalSM,y.sizeXXL]),N};E.displayName="CSSVariableProvider";var x=E},31959:function(ze,se,e){"use strict";e.d(se,{S:function(){return M}});var H=e(97857),u=e.n(H),k=e(12444),c=e.n(k),E=e(72004),x=e.n(E),K=e(9783),o=e.n(K),N=e(96486),m=e.n(N),y=e(65375),f=e(84157),M=function(){function n(r){c()(this,n),o()(this,"name",void 0),o()(this,"group",void 0),o()(this,"title",void 0),o()(this,"description",void 0),o()(this,"order",void 0),o()(this,"default",void 0),o()(this,"sortable",void 0),o()(this,"availableTypes",void 0),o()(this,"supportDataSourceType",void 0),o()(this,"notSupportDataSourceType",void 0),o()(this,"hasDefaultValue",void 0),o()(this,"componentOptions",void 0),o()(this,"isAssociation",void 0),o()(this,"operators",void 0),o()(this,"properties",void 0),o()(this,"filterable",void 0),o()(this,"titleUsable",void 0),o()(this,"hidden",void 0),this.collectionFieldInterfaceManager=r}return x()(n,[{key:"addComponentOption",value:function(d){if(!this.componentOptions){var h,C;this.componentOptions=[];var D=(h=this.default)===null||h===void 0||(h=h.uiSchema)===null||h===void 0?void 0:h["x-component"],R=(C=this.default)===null||C===void 0||(C=C.uiSchema)===null||C===void 0?void 0:C["x-component-props"];if(D){var Z,w=((Z=this.default)===null||Z===void 0||(Z=Z.uiSchema)===null||Z===void 0?void 0:Z.type)||"string",$=(0,f.tval)(D.startsWith("Input")?(0,N.capitalize)(w):D.split(".").pop());this.componentOptions=[{label:$,value:D,useProps:function(){return R||{}}}]}}this.componentOptions.push(d)}},{key:"getConfigureFormProperties",value:function(){var d=this.hasDefaultValue?this.getDefaultValueProperty():{};return u()(u()({},(0,N.cloneDeep)(u()(u()({},y.defaultProps),this===null||this===void 0?void 0:this.properties))),d)}},{key:"getDefaultValueProperty",value:function(){var d,h;return{defaultValue:u()(u()(u()({},(0,N.cloneDeep)(this===null||this===void 0||(d=this.default)===null||d===void 0?void 0:d.uiSchema)),this===null||this===void 0||(h=this.properties)===null||h===void 0?void 0:h.uiSchema),{},{required:!1,title:'{{ t("Default value") }}',"x-decorator":"FormItem","x-reactions":[{dependencies:["uiSchema.x-component-props.gmt","uiSchema.x-component-props.showTime","uiSchema.x-component-props.dateFormat","uiSchema.x-component-props.timeFormat","uiSchema.x-component-props.picker"],fulfill:{state:{componentProps:{gmt:"{{$deps[0]}}",showTime:"{{$deps[1]}}",dateFormat:"{{$deps[2]}}",timeFormat:"{{$deps[3]}}",picker:"{{$deps[4]}}"}}}},{dependencies:["uiSchema.x-component-props.picker"],fulfill:{state:{value:null}}},{dependencies:["primaryKey","unique","autoIncrement","defaultToCurrentTime"],when:"{{$deps[0]||$deps[1]||$deps[2]||$deps[3]}}",fulfill:{state:{hidden:!0,value:null}},otherwise:{state:{hidden:!1}}},{dependencies:["uiSchema.enum"],fulfill:{state:{dataSource:"{{$deps[0]}}"}}}]})}}}]),n}()},65050:function(ze,se,e){"use strict";e.d(se,{S:function(){return H.S},Z:function(){return o}});var H=e(31959),u=e(12444),k=e.n(u),c=e(72004),E=e.n(c),x=e(9783),K=e.n(x),o=function(){function N(m,y,f){k()(this,N),K()(this,"collectionFieldInterfaceInstances",{}),K()(this,"collectionFieldGroups",{}),K()(this,"actionList",{}),this.dataSourceManager=f,this.addFieldInterfaces(m),this.addFieldInterfaceGroups(y)}return E()(N,[{key:"addFieldInterfaces",value:function(){var y=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=f.reduce(function(n,r){var d=new r(y);return n[d.name]=d,Array.isArray(y.actionList[d.name])&&(y.actionList[d.name].forEach(function(h){d[h.type](h.data)}),y.actionList[d.name]=void 0),n},{});Object.assign(this.collectionFieldInterfaceInstances,M)}},{key:"addFieldInterfaceComponentOption",value:function(y,f){var M=this.getFieldInterface(y);if(!M){this.actionList[y]||(this.actionList[y]=[]),this.actionList[y].push({type:"addComponentOption",data:f});return}M.addComponentOption(f)}},{key:"getFieldInterface",value:function(y){return this.collectionFieldInterfaceInstances[y]}},{key:"getFieldInterfaces",value:function(y){return Object.values(this.collectionFieldInterfaceInstances).filter(function(f){if(!y||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var M;return(M=f.supportDataSourceType)===null||M===void 0?void 0:M.includes(y)}if(f.notSupportDataSourceType){var n;return!((n=f.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(y))}})}},{key:"addFieldInterfaceGroups",value:function(y){Object.assign(this.collectionFieldGroups,y)}},{key:"getFieldInterfaceGroups",value:function(){return this.collectionFieldGroups}},{key:"getFieldInterfaceGroup",value:function(y){return this.collectionFieldGroups[y]}}]),N}()},52020:function(ze,se,e){"use strict";e.d(se,{s:function(){return R}});var H=e(97857),u=e.n(H),k=e(80844),c=e(85667),E=e(84327),x=e(96486),K=e.n(x),o=e(67294),N=e(7340),m=e(57105),y=e(15503),f=e(64774),M=e(29124),n=e(67668),r=e(85893),d=function(w,$,p){(0,c.untracked)(function(){w[$]===void 0&&(w[$]=p)})},h=function(w,$,p){typeof $.required>"u"&&(w.required=!!p.required)},C=function(w){var $,p=(0,f.eJW)(),A=(0,k.useField)(),g=(0,k.useFieldSchema)(),i=(0,n.Hy)(),G=i.uiSchema,j=i.defaultValue,O=(0,M.SF)(),l=O.isAllowToSetDefaultValue,v=(0,f.Cor)((($=g["x-component-props"])===null||$===void 0?void 0:$.component)||(G==null?void 0:G["x-component"])||"Input"),a=(0,N.bz)(),S=(0,y.M)(G==null?void 0:G["x-use-component-props"],w);return(0,o.useEffect)(function(){if(G){var V=p(G);if(d(A,"content",V["x-content"]),d(A,"title",V.title),d(A,"description",V.description),a!=null&&a.form){var P=l()?g.default||j:void 0;P!=null&&d(A,"initialValue",P)}if(!A.validator&&(V["x-validator"]||g["x-validator"])){var t=(0,x.concat)([],V["x-validator"]||[],g["x-validator"]||[]);A.validator=t}g["x-disabled"]===!0&&(A.disabled=!0),g["x-read-pretty"]===!0&&(A.readPretty=!0),h(A,g,V),A.dataSource=V.enum;var I=p(V["x-component-props"])||{};A.componentProps=(0,E.merge)(I,A.componentProps||{},S||{})}},[G]),G?(0,r.jsx)(v,u()(u()({},w),S)):null},D=function(w){var $,p=(0,k.useField)(),A=(0,k.useFieldSchema)(),g=(0,m.mz)(),i=g.uiSchema,G=(0,f.Cor)((($=A["x-component-props"])===null||$===void 0?void 0:$.component)||(i==null?void 0:i["x-component"])||"Input"),j=(0,y.M)(i==null?void 0:i["x-use-component-props"],w);return(0,o.useEffect)(function(){A["x-read-pretty"]===!0&&!p.readPretty&&(p.readPretty=!0)},[p,A]),i?(0,r.jsx)(G,u()(u()({},w),j)):null},R=(0,k.connect)(function(Z){var w=(0,k.useFieldSchema)(),$=(0,m.cl)();return(0,r.jsx)(n.YT,{name:w.name,children:$?(0,r.jsx)(D,u()({},Z)):(0,r.jsx)(C,u()({},Z))})});R.displayName="CollectionField"},67668:function(ze,se,e){"use strict";e.d(se,{Hy:function(){return N},YT:function(){return K},m9:function(){return o},v_:function(){return x}});var H=e(67294),u=e(80844),k=e(1836),c=e(36032),E=e(85893),x=(0,H.createContext)(null);x.displayName="CollectionFieldContext";var K=function(y){var f=y.name,M=y.children,n=y.allowNull,r=(0,u.useFieldSchema)(),d=(0,k.Kx)(),h=(0,k.d9)(),C=(0,H.useMemo)(function(){var D;if(!d)return null;var R=r==null||(D=r["x-component-props"])===null||D===void 0?void 0:D.field;return h.getCollectionField(r==null?void 0:r["x-collection-field"])||R||d.getField((R==null?void 0:R.name)||f)},[d,r,h,f]);return!C&&n?(0,E.jsx)(E.Fragment,{children:M}):C?(0,E.jsx)(x.Provider,{value:C,children:M}):(0,E.jsx)(c.z,{type:"Field",name:f})},o=function(y){return(0,E.jsx)(x.Provider,{value:null,children:y.children})},N=function(){var y=(0,H.useContext)(x);return y}},58530:function(ze,se,e){"use strict";e.d(se,{D:function(){return K}});var H=e(12444),u=e.n(H),k=e(72004),c=e.n(k),E=e(9783),x=e.n(E),K=function(){function o(N){u()(this,o),x()(this,"data",void 0),x()(this,"parentRecord",void 0),x()(this,"isNew",void 0);var m=N.data,y=N.parentRecord,f=N.isNew;this.isNew=f,this.data=m,this.parentRecord=y}return c()(o,[{key:"setData",value:function(m){this.data=m}},{key:"setParentRecord",value:function(m){this.parentRecord=m}}]),o}()},49834:function(ze,se,e){"use strict";e.d(se,{E0:function(){return E},Kv:function(){return N},RA:function(){return o},nE:function(){return K},oV:function(){return x},vI:function(){return c}});var H=e(67294),u=e(58530),k=e(85893),c=(0,H.createContext)(null);c.displayName="CollectionRecordContext";var E=H.memo(function(m){var y=m.isNew,f=m.record,M=m.parentRecord,n=m.children,r=(0,H.useMemo)(function(){if(M)return M instanceof u.D?M:new u.D({data:M});if(f instanceof u.D)return f.parentRecord},[M,f]),d=(0,H.useMemo)(function(){var h;return f?f instanceof u.D?(h=f,h.isNew=f.isNew||y):h=new u.D({data:f,isNew:y}):h=new u.D({isNew:y}),h.setParentRecord(r),h},[f,r,y]);return(0,k.jsx)(c.Provider,{value:d,children:n})});E.displayName="CollectionRecordProvider";function x(){var m=(0,H.useContext)(c);return m}function K(){var m=x();return m==null?void 0:m.data}function o(){var m=x();return m==null?void 0:m.parentRecord}function N(){var m,y=x();return y==null||(m=y.parentRecord)===null||m===void 0?void 0:m.data}},88496:function(ze,se,e){"use strict";e.d(se,{DI:function(){return H.D},E0:function(){return u.E0},Kv:function(){return u.Kv},RA:function(){return u.RA},nE:function(){return u.nE},oV:function(){return u.oV},vI:function(){return u.vI}});var H=e(58530),u=e(49834)},373:function(ze,se,e){"use strict";e.d(se,{d:function(){return x},k:function(){return E}});var H=e(85667),u=e(96486),k=e.n(u),c="__isNewRecord__",E=function(o){return(0,H.untracked)(function(){return!!(o!=null&&o[c])})},x=function(o){if(!(0,u.isObject)(o))throw new Error("markRecordAsNew: record must be an object");return o[c]=!0,o}},34096:function(ze,se,e){"use strict";e.d(se,{P:function(){return K}});var H=e(72004),u=e.n(H),k=e(12444),c=e.n(k),E=e(9783),x=e.n(E),K=u()(function o(N){c()(this,o),x()(this,"name",void 0),x()(this,"Collection",void 0),x()(this,"title",void 0),x()(this,"color",void 0),x()(this,"order",void 0),x()(this,"default",void 0),x()(this,"events",void 0),x()(this,"configurableProperties",void 0),x()(this,"availableFieldInterfaces",void 0),x()(this,"divider",void 0),x()(this,"description",void 0),x()(this,"configureActions",void 0),x()(this,"forbidDeletion",void 0),x()(this,"supportDataSourceType",void 0),x()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=N})},67836:function(ze,se,e){"use strict";e.d(se,{P:function(){return H.P},y:function(){return o}});var H=e(34096),u=e(12444),k=e.n(u),c=e(72004),E=e.n(c),x=e(9783),K=e.n(x),o=function(){function N(m,y){k()(this,N),K()(this,"collectionTemplateInstances",{}),this.dataSourceManager=y,this.addCollectionTemplates(m)}return E()(N,[{key:"addCollectionTemplates",value:function(){var y=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=f.reduce(function(n,r){var d=new r(y);return n[d.name]=d,n},{});return Object.assign(this.collectionTemplateInstances,M),this.dataSourceManager.getDataSources().forEach(function(n){var r=n.collectionManager.getCollections(function(d){return M[d.template]});n.collectionManager.reAddCollections(r)}),M}},{key:"getCollectionTemplate",value:function(y){return this.collectionTemplateInstances[y]}},{key:"getCollectionTemplates",value:function(y){return Object.values(this.collectionTemplateInstances).filter(function(f){if(!y||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var M;return(M=f.supportDataSourceType)===null||M===void 0?void 0:M.includes(y)}if(f.notSupportDataSourceType){var n;return!((n=f.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(y))}}).sort(function(f,M){return(f.order||0)-(M.order||0)})}}]),N}()},19271:function(ze,se,e){"use strict";e.d(se,{Xo:function(){return y},lb:function(){return N},ym:function(){return m}});var H=e(67294),u=e(67668),k=e(36032),c=e(35746),E=e(58837),x=e(85893),K=(0,H.createContext)(null);K.displayName="ParentCollectionContext";var o=function(M){var n=(0,E.Kx)();return(0,x.jsx)(K.Provider,{value:n,children:M.children})},N=function(){return(0,H.useContext)(K)},m=function(M){var n=M.name,r=M.children,d=(0,c.d9)(),h=d.getCollectionName(n);return h?(0,x.jsx)(E.YQ,{name:String(n).split(".")[0],children:(0,x.jsx)(o,{children:(0,x.jsx)(u.YT,{name:n,children:(0,x.jsx)(E.YQ,{name:h,children:r})})})}):(0,x.jsx)(k.z,{type:"Collection",name:n})},y=function(){var M=(0,u.Hy)();return M&&["belongsToMany","belongsTo","hasMany","hasOne"].includes(M.type)?"".concat(M.collectionName,".").concat(M.name):null}},5282:function(ze,se,e){"use strict";e.d(se,{F:function(){return y}});var H=e(61227),u=e.n(H),k=e(12444),c=e.n(k),E=e(72004),x=e.n(E),K=e(9783),o=e.n(K),N=e(96486),m=e.n(N),y=function(){function f(M,n){c()(this,f),o()(this,"fieldsMap",void 0),o()(this,"primaryKey",void 0),this.options=M,this.collectionManager=n}return x()(f,[{key:"fields",get:function(){return this.options.fields||[]}},{key:"app",get:function(){return this.collectionManager.app}},{key:"dataSource",get:function(){return this.options.dataSource}},{key:"sourceKey",get:function(){return this.options.sourceKey}},{key:"name",get:function(){return this.options.name}},{key:"key",get:function(){return this.options.key}},{key:"title",get:function(){return this.options.title}},{key:"inherit",get:function(){return this.options.inherit}},{key:"hidden",get:function(){return this.options.hidden}},{key:"description",get:function(){return this.options.description}},{key:"duplicator",get:function(){return this.options.duplicator}},{key:"category",get:function(){return this.options.category}},{key:"targetKey",get:function(){return this.options.targetKey}},{key:"model",get:function(){return this.options.model}},{key:"createdBy",get:function(){return this.options.createdBy}},{key:"updatedBy",get:function(){return this.options.updatedBy}},{key:"logging",get:function(){return this.options.logging}},{key:"from",get:function(){return this.options.from}},{key:"rawTitle",get:function(){return this.options.rawTitle}},{key:"getPrimaryKey",value:function(){if(this.primaryKey)return this.primaryKey;if(this.options.targetKey)return this.options.targetKey;var n=this.getFields({primaryKey:!0})[0];return this.primaryKey=n==null?void 0:n.name,this.primaryKey}},{key:"getFilterTargetKey",value:function(){return this.filterTargetKey||this.getPrimaryKey()||"id"}},{key:"inherits",get:function(){return this.options.inherits||[]}},{key:"titleField",get:function(){return this.hasField(this.options.titleField)?this.options.titleField:this.getPrimaryKey()}},{key:"sources",get:function(){return this.options.sources||[]}},{key:"template",get:function(){return this.options.template}},{key:"tableName",get:function(){return this.options.tableName}},{key:"viewName",get:function(){return this.options.viewName}},{key:"writableView",get:function(){return this.options.writableView}},{key:"filterTargetKey",get:function(){return this.options.filterTargetKey}},{key:"sortable",get:function(){return this.options.sortable}},{key:"autoGenId",get:function(){return this.options.autoGenId}},{key:"magicAttribute",get:function(){return this.options.magicAttribute}},{key:"tree",get:function(){return this.options.tree}},{key:"isThrough",get:function(){return this.options.isThrough}},{key:"autoCreate",get:function(){return this.options.autoCreate}},{key:"resource",get:function(){return this.options.resource}},{key:"setOption",value:function(n,r){return this.options[n]=r,this}},{key:"getOptions",value:function(){return this.options}},{key:"getOption",value:function(n){return this.options[n]}},{key:"getFields",value:function(n){return n?(0,N.filter)(this.fields,n):this.fields}},{key:"getAllFields",value:function(n){return this.getFields(n)}},{key:"getFieldsMap",value:function(){return this.fieldsMap||(this.fieldsMap=this.getFields().reduce(function(n,r){return n[r.name]=r,n},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(n){var r=this.getFieldsMap(),d=String(n).split("."),h=u()(d),C=h[0],D=h.slice(1),R=r[C];if(R){var Z=R==null?void 0:R.target;if(Z){var w=this.collectionManager.getCollection(Z);if(w)return w.getField(D.join("."))}}}},{key:"getField",value:function(n){if(n){var r=this.getFieldsMap();if(String(n).split(".").length>1){var d=this.getFieldByAssociationName(n);return d||(typeof n=="string"&&n.startsWith("".concat(this.name,"."))?(n=n.replace("".concat(this.name,"."),""),this.getField(n)):void 0)}return r[n]}}},{key:"hasField",value:function(n){return!!this.getField(n)}},{key:"isTitleField",value:function(n){var r;return(r=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(n.interface))===null||r===void 0?void 0:r.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),f}()},35746:function(ze,se,e){"use strict";e.d(se,{IX:function(){return K},bX:function(){return y},d9:function(){return m},xw:function(){return N}});var H=e(5574),u=e.n(H),k=e(67294),c=e(44990),E=e(58861),x=e(85893),K=(0,k.createContext)(null);K.displayName="CollectionManagerContext";var o=function(M){var n=M.instance,r=M.children,d=(0,c.wl)(),h=(0,E.P5)(),C=(0,k.useMemo)(function(){return n||(d==null?void 0:d.collectionManager)},[n,d]),D=k.useState(Math.random()),R=u()(D,2),Z=R[0],w=R[1];(0,k.useEffect)(function(){C.dataSource.addReloadCallback(function(){w(Math.random())})},[C]);var $=(0,k.useMemo)(function(){var p=C;return h!=null&&h.length?p.clone(h):p},[C,h,Z]);return(0,x.jsx)(K.Provider,{value:$,children:r})},N=function(M){var n=M.instance,r=M.dataSource,d=M.children;return(0,x.jsx)(c.LX,{dataSource:r,children:(0,x.jsx)(o,{instance:n,children:d})})};function m(){var f=(0,k.useContext)(K);return f}var y=function(M){var n=m(),r=(0,k.useMemo)(function(){return n.getCollections(M)},[n,M]);return r}},58837:function(ze,se,e){"use strict";e.d(se,{Kx:function(){return y},Pd:function(){return m},WH:function(){return o},YQ:function(){return N},ge:function(){return f}});var H=e(97857),u=e.n(H),k=e(67294),c=e(67668),E=e(36032),x=e(35746),K=e(85893),o=(0,k.createContext)(null);o.displayName="CollectionContext";var N=function(n){var r=n.name,d=n.children,h=n.allowNull,C=(0,x.d9)(),D=(0,k.useMemo)(function(){return C==null?void 0:C.getCollection(r)},[C,r]);return!D&&h?(0,K.jsx)(K.Fragment,{children:n.children}):!D&&!h?(0,K.jsx)(E.z,{type:"Collection",name:r}):(0,K.jsx)(o.Provider,{value:D,children:d})},m=function(n){return(0,K.jsx)(c.v_.Provider,{value:null,children:(0,K.jsx)(N,u()({},n))})};function y(){var M=(0,k.useContext)(o);return M}var f=function(n){var r=y(),d=(0,k.useMemo)(function(){return r.getFields(n)},[r,n]);return d}},58861:function(ze,se,e){"use strict";e.d(se,{P5:function(){return N},Xc:function(){return K},j5:function(){return o}});var H=e(19632),u=e.n(H),k=e(67294),c=e(44990),E=e(35746),x=e(85893),K=(0,k.createContext)(null);K.displayName="ExtendCollectionsContext";var o=function(y){var f=y.children,M=y.collections,n=N(),r=(0,k.useMemo)(function(){return n?[].concat(u()(n),u()(M)):M},[n,M]),d=(0,c.FC)();return(0,x.jsx)(K.Provider,{value:r,children:(0,x.jsx)(E.xw,{dataSource:d,children:f})})};function N(){var m=(0,k.useContext)(K);return m}},1836:function(ze,se,e){"use strict";e.d(se,{ym:function(){return k.ym},FE:function(){return H.F},WH:function(){return u.WH},w4:function(){return p},IX:function(){return A.IX},xw:function(){return A.xw},YQ:function(){return u.YQ},Xc:function(){return g.Xc},j5:function(){return g.j5},Pd:function(){return u.Pd},Xo:function(){return k.Xo},Kx:function(){return u.Kx},ge:function(){return u.ge},d9:function(){return A.d9},bX:function(){return A.bX},P5:function(){return g.P5},lb:function(){return k.lb}});var H=e(5282),u=e(58837),k=e(19271),c=e(61227),E=e.n(c),x=e(52677),K=e.n(x),o=e(97857),N=e.n(o),m=e(12444),y=e.n(m),f=e(72004),M=e.n(f),n=e(9783),r=e.n(n),d=e(80129),h=e.n(d),C=e(13769),D=e.n(C),R=["rawTitle","title","fields"],Z=["uiSchema"],w=function(G,j){var O=G.rawTitle,l=G.title,v=G.fields,a=v===void 0?[]:v,S=D()(G,R);return N()(N()({},S),{},{title:O?l:j.i18n.t(l,{ns:"lm-collections"}),rawTitle:O||l,fields:a==null?void 0:a.map(function(V){var P=V.uiSchema,t=D()(V,Z);if(P!=null&&P.title){var I=P.title;P.title=P.rawTitle?I:j.i18n.t(I,{ns:"lm-collections"}),P.rawTitle=P.rawTitle||I}return Array.isArray(P==null?void 0:P.enum)&&(P.enum=P.enum.map(function(B){return N()(N()({},B),{},{value:(B==null?void 0:B.value)===void 0?B:B.value,label:B.rawLabel?B.label:j.i18n.t(B.label,{ns:"lm-collections"}),rawLabel:B.rawLabel||B.label})})),N()({uiSchema:P},t)})})};function $(i,G,j,O){var l=new i(j,O);return G.forEach(function(v){var a=new v(j,O);Object.getOwnPropertyNames(a).forEach(function(S){var V=Object.getOwnPropertyDescriptor(a,S);V?Object.defineProperty(l,S,V):l[S]=a[S]}),Object.getOwnPropertyNames(v.prototype).forEach(function(S){S!=="constructor"&&(l.__proto__[S]=v.prototype[S])})}),l}var p=function(){function i(G,j){y()(this,i),r()(this,"collectionInstancesMap",{}),r()(this,"collectionInstancesArr",[]),this.dataSource=j,this.addCollections(G)}return M()(i,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(j){var O=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(j.template),l=(O==null?void 0:O.Collection)||H.F,v=O==null?void 0:O.transform,a=v?v(w(j,this.app),this.app):w(j,this.dataSource.dataSourceManager.app),S=N()(N()({},a),{},{dataSource:this.dataSource.key}),V=$(l,this.dataSourceManager.collectionMixins,S,this);return V}},{key:"getInstancesMap",value:function(){var j=this,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=O.map(function(v){return j.getCollectionInstance(v)});return l.reduce(function(v,a){return v[a.name]=a,v},{})}},{key:"addCollections",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=this.getInstancesMap(j);this.collectionInstancesMap=N()(N()({},this.collectionInstancesMap),O),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"setCollections",value:function(j){this.collectionInstancesMap=this.getInstancesMap(j),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"reAddCollections",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.collectionInstancesArr,O=j.map(function(l){return l.getOptions()});this.addCollections(O)}},{key:"getCollection",value:function(j){if(j){if(K()(j)==="object")return this.getCollectionInstance(j);if(String(j).split(".").length>1){var O=this.getCollectionField(j);return O?this.getCollection(O.target):void 0}return this.collectionInstancesMap[j]}}},{key:"getCollections",value:function(j){return j?this.collectionInstancesArr.filter(j):this.collectionInstancesArr}},{key:"getCollectionName",value:function(j){var O=this.getCollection(j);return O==null?void 0:O.name}},{key:"getCollectionField",value:function(j){if(j){if(K()(j)==="object")return j;if(String(j).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(j,'" is invalid'));return}var O=String(j).split("."),l=E()(O),v=l[0],a=l.slice(1),S=this.getCollection(v);if(S)return S.getField(a.join("."))}}},{key:"getCollectionFields",value:function(j,O){var l;return((l=this.getCollection(j))===null||l===void 0?void 0:l.getFields(O))||[]}},{key:"getCollectionAllFields",value:function(j,O){var l;return((l=this.getCollection(j))===null||l===void 0?void 0:l.getAllFields(O))||[]}},{key:"getFilterByTK",value:function(j,O){if(!j||!O){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}var l=function(t,I){if(Array.isArray(t)){var B={};return t.forEach(function(z){B[z]=I[z]}),h().stringify(B)}else return I[t]};if(j instanceof H.F){var v=j.getFilterTargetKey();return l(v,O)}if(j.includes(".")){var a=this.getCollectionField(j);if(!a){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(j,'" is invalid'));return}if(a.targetKey)return O[a.targetKey]}var S=this.getCollection(j);if(!S){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(j,'" is invalid'));return}var V=S.getFilterTargetKey();return l(V,O)}},{key:"getSourceKeyByAssociation",value:function(j){if(j){var O=this.getCollectionField(j);if(O){if(O.sourceKey)return O.sourceKey;var l=this.getCollection(j.split(".")[0]);if(l)return l.filterTargetKey||l.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=new i([],this.dataSource);return O.collectionInstancesArr=this.collectionInstancesArr,O.collectionInstancesMap=this.collectionInstancesMap,O.addCollections(j),O}}]),i}(),A=e(35746),g=e(58861)},22558:function(ze,se,e){"use strict";e.d(se,{K:function(){return f}});var H=e(9783),u=e.n(H),k=e(97857),c=e.n(k),E=e(80844),x=e(96486),K=e.n(x),o=e(26793),N=e(13511),m=e(67668),y=e(64774),f={name:"fieldComponent",type:"select",useVisible:function(){var n=(0,m.Hy)(),r=(0,N.fp)();if(!n)return!1;var d=r.collectionFieldInterfaceManager.getFieldInterface(n==null?void 0:n.interface);return Array.isArray(d==null?void 0:d.componentOptions)&&d.componentOptions.length>1&&d.componentOptions.filter(function(h){return!h.useVisible||h.useVisible()}).length>1},useComponentProps:function(){var n,r,d,h=(0,o.$)(),C=h.t,D=(0,E.useField)(),R=(0,E.useFieldSchema)(),Z=(0,m.Hy)(),w=(0,N.fp)(),$=w.collectionFieldInterfaceManager.getFieldInterface(Z==null?void 0:Z.interface),p=(0,y.z9d)(),A=p.fieldSchema,g=A||R,i=(0,y.ngQ)(),G=i.dn,j=(0,y.eJW)(),O=($==null||(n=$.componentOptions)===null||n===void 0||(n=n.filter(function(l){return!l.useVisible||l.useVisible()}))===null||n===void 0?void 0:n.map(function(l){return{label:j(l.label),value:l.value,useProps:l.useProps}}))||[];return{title:C("Field component"),options:O,value:((r=g["x-component-props"])===null||r===void 0?void 0:r.component)||((d=O[0])===null||d===void 0?void 0:d.value),onChange:function(v){var a,S,V=O.find(function(t){return t.value===v}),P=c()({component:v},(V==null||(a=V.useProps)===null||a===void 0?void 0:a.call(V))||{});K().set(g,"x-component-props",P),D.componentProps=P,G.emit("patch",{schema:(S={},u()(S,"x-uid",g["x-uid"]),u()(S,"x-component-props",P),S)})}}}}},36032:function(ze,se,e){"use strict";e.d(se,{p:function(){return D},z:function(){return h}});var H=e(97857),u=e.n(H),k=e(48997),c=e(3321),E=e(59720),x=e(15867),K=e(67294),o=e(26793),N=e(64774),m=e(44990),y=e(49453),f=e(57638),M=e(1836),n=e(18243),r=e(85893),d=k.Z.Text,h=function(Z){var w=Z.type,$=Z.name,p=Z.message,A=(0,N.ngQ)(),g=A.designable,i=A.dn,G=c.Z.useApp(),j=G.modal,O=(0,o.$)(),l=O.t,v=(0,m.wl)(),a=(0,N.eJW)(),S=(0,M.Kx)(),V=(0,y.fp)(),P=(0,K.useMemo)(function(){if(w==="Data Source")return $;var B=(V==null?void 0:V.getDataSources().length)>=1&&v&&v.key!==f.ym?"".concat(a(v.displayName||v.key)," > "):"";if(w==="Collection")return"".concat(B).concat($);var z=S?"".concat(a(S.title)||S.name||S.tableName," > "):"";return"".concat(B).concat(z).concat($)},[]),t=(0,K.useMemo)(function(){return w==="Field"?"Field":"Block"},[w]),I=(0,K.useMemo)(function(){return $?p?"".concat(l(w),' "').concat(P,'" ').concat(p):l('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:l(w).toLocaleLowerCase(),name:P,blockType:l(t).toLocaleLowerCase()}).replaceAll("&gt;",">"):"".concat(l(w)," ","name is required")},[p,P,w,l,t]);return g?w==="Field"?(0,r.jsx)(N.BQs,{ellipsis:!0,children:(0,r.jsx)(d,{type:"secondary",children:I})}):(0,r.jsx)(n.P,{children:(0,r.jsx)(E.ZP,{status:"404",subTitle:I,extra:(0,r.jsx)(x.ZP,{onClick:function(){return j.confirm(u()(u()({title:l("Delete block"),content:l("Are you sure you want to delete it?")},confirm),{},{onOk:function(){i.remove(null,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}),i.refresh({refreshParentSchema:!0})}}))},children:l("Delete")},"Delete")})}):null},C=function(){var Z=(0,o.$)(),w=Z.t,$=(0,m.wl)(),p=(0,N.eJW)(),A=(0,M.Kx)(),g=(0,y.fp)(),i=(0,K.useMemo)(function(){var j=(g==null?void 0:g.getDataSources().length)>=1&&$&&$.key!==f.ym?"".concat(p($.displayName||$.key)," > "):"";if(A)return"".concat(j).concat(A.name);var O=A?"".concat(p(A.title)||A.name||A.tableName," > "):"";return"".concat(j).concat(O).concat(A.name)},[]),G=(0,K.useMemo)(function(){return w(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:i}).replaceAll("&gt;",">")},[i,w]);return(0,r.jsx)(n.P,{children:(0,r.jsx)(E.ZP,{status:"404",subTitle:G})})},D=function(){var Z=(0,N.ngQ)(),w=Z.designable;return w?(0,r.jsx)(C,{}):null}},88996:function(ze,se,e){"use strict";e.d(se,{i:function(){return m}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(67294),x=e(13511),K=e(35746),o=e(85893),N=["children","dataSourceManager"],m=function(f){var M=f.children,n=f.dataSourceManager,r=c()(f,N);return(0,o.jsx)(x.kv,{dataSourceManager:n,children:(0,o.jsx)(K.xw,u()(u()({},r),{},{children:M}))})}},87180:function(ze,se,e){"use strict";e.d(se,{KY:function(){return Z},Rr:function(){return p},dq:function(){return R},eS:function(){return w},hZ:function(){return h},sI:function(){return D},zh:function(){return $}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(5574),x=e.n(E),K=e(67294),o=e(75667),N=e(67205),m=e(15503),y=e(64774),f=e(1836),M=e(39742),n=e(14310),r=e(85893),d=["collection","association","dataSource","children","hidden"],h=(0,K.createContext)({});h.displayName="DataBlockContext";var C=(0,K.createContext)(null),D=function(g){var i=g.children,G=K.useState(!1),j=x()(G,2),O=j[0],l=j[1],v=(0,K.useMemo)(function(){return{rerenderDataBlock:function(){l(!0),setTimeout(function(){l(!1)})}}},[]);return O?null:(0,r.jsx)(C.Provider,{value:v,children:i})},R=function(g){var i=g.collection,G=g.association,j=g.allowNull,O=j===void 0?!1:j,l=(0,K.useMemo)(function(){return G?{Component:f.ym,name:G}:{Component:f.Pd,name:i}},[i,G]);return(0,r.jsx)(l.Component,{name:l.name,allowNull:O,children:g.children})},Z=(0,m.t)(K.memo(function(A){var g=A,i=g.collection,G=g.association,j=g.dataSource,O=g.children,l=g.hidden,v=c()(g,d),a=(0,y.ngQ)(),S=a.dn;return l?null:(0,r.jsx)(h.Provider,{value:{dn:S,props:u()(u()({},v),{},{collection:i,association:G,dataSource:j})},children:(0,r.jsx)(f.xw,{dataSource:j,children:(0,r.jsx)(R,{collection:i,association:G,children:(0,r.jsx)(o.Hh,{children:(0,r.jsx)(n.eh,{children:(0,r.jsx)(M.N4,{children:(0,r.jsx)(N.vY,{params:A.params,children:(0,r.jsx)(D,{children:O})})})})})})})})}),{displayName:"DataBlockProvider"}),w=function(){var g=(0,K.useContext)(h);if(!g)throw new Error("useDataBlock() must be used within a DataBlockProvider");return g},$=function(){var g=w();return g.props},p=function(){var g=(0,K.useContext)(C);if(!g)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return g}},39742:function(ze,se,e){"use strict";e.d(se,{H0:function(){return g},N4:function(){return j},Pt:function(){return l},hS:function(){return O},q4:function(){return $},uz:function(){return G},xQ:function(){return v}});var H=e(15009),u=e.n(H),k=e(99289),c=e.n(k),E=e(97857),x=e.n(E),K=e(5574),o=e.n(K),N=e(67294),m=e(96486),y=e.n(m),f=e(12174),M=e(4277),n=e(19530),r=e(54724),d=e(21044),h=e(88496),C=e(8341),D=e(87180),R=e(14310),Z=e(85893),w=(0,N.createContext)(null);w.displayName="BlockRequestRefContext";var $=(0,N.createContext)(!1);$.displayName="BlockRequestLoadingContext";var p=(0,N.createContext)(null);p.displayName="BlockRequestDataContext";function A(a){var S=(0,M.tU)(),V=(0,R.wb)(),P=a.action,t=a.params,I=t===void 0?{}:t,B=a.record,z=a.requestService,L=a.requestOptions,b=a.sourceId,F=a.association,ee=a.parentRecord,re=(0,f.LY)(),oe=(0,D.zh)(),J=(0,C.FE)(oe.dataSource),W=(0,n.U)(F),q=(0,N.useMemo)(function(){return[JSON.stringify(I),JSON.stringify(B)]},[I,B]),fe=o()(q,2),ne=fe[0],pe=fe[1],Se=function(te){var X;if(B)return Promise.resolve({data:B});if(!P)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(P==="get"&&y().isNil(I.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var ve=I.filterByTk===void 0?y().omit(I,"filterByTk"):I;return(X=V[P])===null||X===void 0?void 0:X.call(V,x()(x()({},ve),te)).then(function(ie){return ie.data})},_e=function(){var xe=c()(u()().mark(function te(){var X,ve,ie,Y,ue=arguments;return u()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,Promise.all([(z||Se).apply(void 0,ue),g({sourceId:b,association:F,parentRecord:ee,api:re,headers:J,sourceKey:W})]);case 2:return X=Ee.sent,ve=o()(X,2),ie=ve[0],Y=ve[1],ie&&(ie.parentRecord=Y==null?void 0:Y.data),Ee.abrupt("return",ie);case 8:case"end":return Ee.stop()}},te)}));return function(){return xe.apply(this,arguments)}}(),de=(0,f.QT)(_e,x()(x()({},L),{},{manual:S==="manual",ready:!!P,refreshDeps:[P,ne,pe,V,F,ee,b]}));return de}function g(a){return i.apply(this,arguments)}function i(){return i=c()(u()().mark(function a(S){var V,P,t,I,B,z,L,b,F;return u()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(V=S.sourceId,P=S.association,t=S.parentRecord,I=S.api,B=S.headers,z=S.sourceKey,!t){re.next=3;break}return re.abrupt("return",Promise.resolve({data:t}));case 3:if(!(!P||!z||!V)){re.next=5;break}return re.abrupt("return",Promise.resolve({data:void 0}));case 5:return L=P.split("."),b="".concat(L[0],":get?filter[").concat(z,"]=").concat(V),re.next=9,I.request({url:b,headers:B});case 9:return F=re.sent,re.abrupt("return",F.data);case 11:case"end":return re.stop()}},a)})),i.apply(this,arguments)}var G=function(S){var V,P,t,I,B=(0,N.useRef)(S.recordRequest),z=(0,N.useRef)((V=S.recordRequest)===null||V===void 0?void 0:V.data),L=(0,r.Du)(),b=L.active,F=(0,N.useRef)(b),ee=(0,N.useDeferredValue)(b),re=(0,D.zh)();if(ee&&!F.current&&re.dataLoadingMode==="auto"){var oe;(oe=S.recordRequest)===null||oe===void 0||oe.refresh()}if(ee&&F.current&&!((P=S.recordRequest)!==null&&P!==void 0&&P.loading)&&!y().isEqual(z.current,(t=S.recordRequest)===null||t===void 0?void 0:t.data)){var J;z.current=(J=S.recordRequest)===null||J===void 0?void 0:J.data}return ee!==F.current&&(F.current=ee),B.current=S.recordRequest,(0,Z.jsx)(w.Provider,{value:B,children:(0,Z.jsx)($.Provider,{value:(I=S.recordRequest)===null||I===void 0?void 0:I.loading,children:(0,Z.jsx)(p.Provider,{value:z.current,children:S.children})})})},j=N.memo(function(a){var S,V,P=a.children,t=(0,D.zh)(),I=t.action,B=t.filterByTk,z=t.sourceId,L=t.params,b=L===void 0?d.Nu:L,F=t.association,ee=t.collection,re=t.record,oe=t.parentRecord,J=t.requestOptions,W=t.requestService,q=(0,N.useMemo)(function(){return x()(x()({},b),{},{filterByTk:B||b.filterByTk})},[B,b]),fe=A({action:I,sourceId:z,record:re,association:F,collection:ee,requestOptions:J,requestService:W,params:q,parentRecord:oe}),ne=(S=fe.data)===null||S===void 0?void 0:S.parentRecord,pe=(0,N.useMemo)(function(){return ne&&new h.DI({isNew:!1,data:ne instanceof h.DI?ne.data:ne})},[ne]);return(0,Z.jsx)(G,{recordRequest:fe,children:I!=="list"?(0,Z.jsx)(h.E0,{isNew:I==null,record:((V=fe.data)===null||V===void 0?void 0:V.data)||re,parentRecord:pe||oe,children:P}):(0,Z.jsx)(h.E0,{isNew:!1,record:null,parentRecord:pe||oe,children:P})})});j.displayName="DataBlockRequestProvider";var O=function(){var S=(0,N.useContext)(w),V=(0,N.useContext)($),P=(0,N.useContext)(p);return(0,N.useMemo)(function(){return S?x()(x()({},S.current),{},{loading:V,data:P}):null},[S,P,V])},l=function(){var S=(0,N.useContext)(w);return(0,N.useMemo)(function(){return{getDataBlockRequest:function(){return S?S.current:null}}},[S])},v=function(){return(0,N.useContext)(p)}},14310:function(ze,se,e){"use strict";e.d(se,{T1:function(){return f},eh:function(){return M},wb:function(){return n}});var H=e(96695),u=e.n(H),k=e(96486),c=e.n(k),E=e(67294),x=e(12174),K=e(1836),o=e(88496),N=e(8341),m=e(87180),y=e(85893),f=(0,E.createContext)(null);f.displayName="DataBlockResourceContext";var M=function(d){var h=d.children,C=(0,m.zh)(),D=(0,K.d9)(),R=C.association,Z=C.collection,w=C.dataSource,$=C.sourceId,p=C.parentRecord,A=(0,x.LY)(),g=(0,N.FE)(w),i=(0,E.useMemo)(function(){return typeof Z=="string"?Z:Z==null?void 0:Z.name},[Z]),G=(0,E.useMemo)(function(){if($)return $;if(R&&p){var O=D.getSourceKeyByAssociation(R),l=p instanceof o.DI?p.data:p;if((0,k.isArray)(O)){var v={},a=u()(O),S;try{for(a.s();!(S=a.n()).done;){var V=S.value;v[V]=l==null?void 0:l[V]}}catch(P){a.e(P)}finally{a.f()}return encodeURIComponent(JSON.stringify(v))}else return l[O]}},[R,$,p]),j=(0,E.useMemo)(function(){return R?A.resource(R,G,g,!G):A.resource(i,void 0,g)},[A,R,Z,G,g]);return(0,y.jsx)(f.Provider,{value:j,children:h})};function n(){var r=(0,E.useContext)(f);if(!r)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return r}},35519:function(ze,se,e){"use strict";e.d(se,{n:function(){return h},o:function(){return d}});var H=e(31996),u=e.n(H),k=e(26037),c=e.n(k),E=e(15009),x=e.n(E),K=e(99289),o=e.n(K),N=e(12444),m=e.n(N),y=e(72004),f=e.n(y),M=e(9783),n=e.n(M),r=e(1836),d=function(){function C(D,R){m()(this,C),n()(this,"collectionManager",void 0),n()(this,"reloadCallbacks",[]),this.options=D,this.dataSourceManager=R,this.collectionManager=new r.w4(D.collections,this)}return f()(C,[{key:"app",get:function(){return this.dataSourceManager.app}},{key:"key",get:function(){return this.options.key}},{key:"displayName",get:function(){return this.options.displayName}},{key:"status",get:function(){return this.options.status}},{key:"errorMessage",get:function(){return this.options.errorMessage}},{key:"collections",get:function(){return this.collectionManager.getCollections()||[]}},{key:"getOptions",value:function(){return this.options}},{key:"setOptions",value:function(R){Object.assign(this.options,R)}},{key:"getOption",value:function(R){return this.options[R]}},{key:"addReloadCallback",value:function(R){this.reloadCallbacks.includes(R)||this.reloadCallbacks.push(R)}},{key:"removeReloadCallback",value:function(R){this.reloadCallbacks=this.reloadCallbacks.filter(function(Z){return Z!==R})}},{key:"reload",value:function(){var D=o()(x()().mark(function Z(){var w;return x()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.getDataSource();case 2:return w=p.sent,this.setOptions(w),this.collectionManager.setCollections(w.collections||[]),this.reloadCallbacks.forEach(function(A){return A(w.collections)}),p.abrupt("return",this.options);case 7:case"end":return p.stop()}},Z,this)}));function R(){return D.apply(this,arguments)}return R}()}]),C}(),h=function(C){u()(R,C);var D=c()(R);function R(){return m()(this,R),D.apply(this,arguments)}return f()(R,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),R}(d)},57638:function(ze,se,e){"use strict";e.d(se,{AK:function(){return p},UC:function(){return $},ym:function(){return w}});var H=e(97857),u=e.n(H),k=e(15009),c=e.n(k),E=e(5574),x=e.n(E),K=e(99289),o=e.n(K),N=e(19632),m=e.n(N),y=e(12444),f=e.n(y),M=e(72004),n=e.n(M),r=e(9783),d=e.n(r),h=e(35519),C=e(67836),D=e(65050),R=e(96486),Z=e.n(R),w="main",$='{{t("Main")}}',p=function(){function A(){var g,i=this,G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=arguments.length>1?arguments[1]:void 0;f()(this,A),d()(this,"dataSourceInstancesMap",{}),d()(this,"multiDataSources",[]),d()(this,"collectionMixins",[]),d()(this,"collectionTemplateManager",void 0),d()(this,"collectionFieldInterfaceManager",void 0),this.options=G,this.app=j,this.collectionTemplateManager=new C.y(G.collectionTemplates,this),this.collectionFieldInterfaceManager=new D.Z(G.fieldInterfaces,G.fieldInterfaceGroups,this),(g=this.collectionMixins).push.apply(g,m()(G.collectionMixins||[])),this.addDataSource(h.n,{key:w,displayName:$,collections:G.collections||[]}),(G.dataSources||[]).forEach(function(O){i.addDataSource(h.n,O)})}return n()(A,[{key:"addCollectionMixins",value:function(){var i=this,G,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=j.filter(function(l){return!i.collectionMixins.includes(l)});O.length&&((G=this.collectionMixins).push.apply(G,m()(O)),this.getDataSources().forEach(function(l){return l.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(i){var G=Object.values(this.dataSourceInstancesMap);return i?Z().filter(G,i):G}},{key:"getDataSource",value:function(i){return i?this.dataSourceInstancesMap[i]:this.dataSourceInstancesMap[w]}},{key:"removeDataSources",value:function(i){var G=this;i.forEach(function(j){delete G.dataSourceInstancesMap[j]})}},{key:"addDataSource",value:function(i,G){var j=new i(G,this);return this.dataSourceInstancesMap[j.key]=j,j}},{key:"addDataSources",value:function(){var g=o()(c()().mark(function G(j,O){return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!this.multiDataSources.some(function(a){var S=x()(a,2),V=S[0],P=S[1];return V===j&&P===O})){v.next=2;break}return v.abrupt("return");case 2:this.multiDataSources.push([j,O]);case 3:case"end":return v.stop()}},G,this)}));function i(G,j){return g.apply(this,arguments)}return i}()},{key:"getAllCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=i.filterCollection,j=i.filterDataSource;return this.getDataSources(j).reduce(function(O,l){return O.push(u()(u()({},l.getOptions()),{},{collections:l.collectionManager.getCollections(G)})),O},[])}},{key:"addFieldInterfaceGroups",value:function(i){this.collectionFieldInterfaceManager.addFieldInterfaceGroups(i)}},{key:"addCollectionTemplates",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionTemplateManager.addCollectionTemplates(i)}},{key:"addFieldInterfaces",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionFieldInterfaceManager.addFieldInterfaces(i)}},{key:"reload",value:function(){var g=o()(c()().mark(function G(){var j=this;return c()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all(this.multiDataSources.map(function(){var v=o()(c()().mark(function a(S){var V,P,t,I;return c()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return V=x()(S,2),P=V[0],t=V[1],z.next=3,P();case 3:I=z.sent,I.map(function(L){return j.addDataSource(t,L)});case 5:case"end":return z.stop()}},a)}));return function(a){return v.apply(this,arguments)}}()));case 2:return l.abrupt("return",Promise.all(this.getDataSources().map(function(v){return v.reload()})));case 3:case"end":return l.stop()}},G,this)}));function i(){return g.apply(this,arguments)}return i}()}]),A}()},13511:function(ze,se,e){"use strict";e.d(se,{Uv:function(){return x},fp:function(){return E},kv:function(){return c},up:function(){return k}});var H=e(67294),u=e(85893),k=(0,H.createContext)(null);k.displayName="DataSourceManagerContext";var c=function(o){var N=o.children,m=o.dataSourceManager;return(0,u.jsx)(k.Provider,{value:m,children:N})};function E(){var K=(0,H.useContext)(k);return K}function x(){var K=E(),o=(0,H.useCallback)(function(N,m){var y;return K==null||(y=K.getDataSource(m))===null||y===void 0||(y=y.collectionManager)===null||y===void 0||(y=y.getCollection(N))===null||y===void 0?void 0:y.getAllCollectionsInheritChain()},[K]);return{getAllCollectionsInheritChain:o}}},44990:function(ze,se,e){"use strict";e.d(se,{FC:function(){return r},LX:function(){return M},NT:function(){return f},wl:function(){return n}});var H=e(5574),u=e.n(H),k=e(67294),c=e(13511),E=e(36032),x=e(64774),K=e(59720),o=e(15867),N=e(50888),m=e(26793),y=e(85893),f=(0,k.createContext)(null);f.displayName="DataSourceContext";var M=function(h){var C=h.children,D=h.dataSource,R=(0,c.fp)(),Z=(0,m.$)(),w=Z.t,$=(0,x.Dmu)(),p=$.refresh,A=k.useState(0),g=u()(A,2),i=g[0],G=g[1],j=R==null?void 0:R.getDataSource(D);return j?j.status==="loading-failed"?(0,y.jsx)(E.z,{type:"Data Source",name:j.displayName||D,message:j.errorMessage||"loading failed"}):j.status==="loading"||j.status==="reloading"?(0,y.jsx)(x.Ssf,{children:(0,y.jsx)(K.ZP,{icon:(0,y.jsx)(N.Z,{}),title:"".concat(j.displayName||D," ").concat(w("data source")," ").concat(w("loading"),"..."),extra:(0,y.jsx)(o.ZP,{type:"primary",onClick:function(){return j.reload().then(function(){p(),G(Math.random())})},children:w("Refresh")})})}):(0,y.jsx)(f.Provider,{value:j,children:C}):(0,y.jsx)(E.z,{type:"Data Source",name:D})};function n(){var d=(0,k.useContext)(f);return d}function r(){var d=(0,k.useContext)(f);return d==null?void 0:d.key}},49453:function(ze,se,e){"use strict";e.d(se,{AK:function(){return u.AK},FC:function(){return k.FC},LX:function(){return k.LX},NT:function(){return k.NT},UC:function(){return u.UC},Uv:function(){return c.Uv},fp:function(){return c.fp},kv:function(){return c.kv},nC:function(){return H.n},o2:function(){return H.o},up:function(){return c.up},wl:function(){return k.wl},ym:function(){return u.ym}});var H=e(35519),u=e(57638),k=e(44990),c=e(13511)},94804:function(ze,se,e){"use strict";e.d(se,{dq:function(){return m.dq},ym:function(){return H.ym},uz:function(){return N.uz},q4:function(){return N.q4},N4:function(){return N.N4},m9:function(){return k.m9},FE:function(){return H.FE},WH:function(){return H.WH},zW:function(){return x.z},sb:function(){return u.s},v_:function(){return k.v_},SY:function(){return c.S},Z:function(){return c.Z},YT:function(){return k.YT},Cd:function(){return I},rJ:function(){return V},lC:function(){return z},w4:function(){return H.w4},IX:function(){return H.IX},xw:function(){return H.xw},pD:function(){return x.p},YQ:function(){return H.YQ},DI:function(){return f.DI},vI:function(){return f.vI},E0:function(){return f.E0},Pl:function(){return E.P},yM:function(){return E.y},Ip:function(){return y.ym},UC:function(){return y.UC},hZ:function(){return m.hZ},KY:function(){return m.KY},T1:function(){return o.T1},eh:function(){return o.eh},o2:function(){return y.o2},i:function(){return K.i},NT:function(){return y.NT},AK:function(){return y.AK},up:function(){return y.up},kv:function(){return y.kv},LX:function(){return y.LX},Xc:function(){return H.Xc},j5:function(){return H.j5},nC:function(){return y.nC},sI:function(){return m.sI},Pd:function(){return H.Pd},K0:function(){return L.K},iv:function(){return t},GX:function(){return M.GX},Yj:function(){return M.Yj},H0:function(){return N.H0},Uv:function(){return y.Uv},Xo:function(){return H.Xo},Kx:function(){return H.Kx},Hy:function(){return k.Hy},ge:function(){return H.ge},d9:function(){return H.d9},RA:function(){return f.RA},Kv:function(){return f.Kv},oV:function(){return f.oV},nE:function(){return f.nE},bX:function(){return H.bX},eS:function(){return m.eS},zh:function(){return m.zh},hS:function(){return N.hS},xQ:function(){return N.xQ},Pt:function(){return N.Pt},wb:function(){return o.wb},wl:function(){return y.wl},on:function(){return M.FE},FC:function(){return y.FC},fp:function(){return y.fp},P5:function(){return H.P5},lb:function(){return H.lb},Rr:function(){return m.Rr}});var H=e(1836),u=e(52020),k=e(67668),c=e(65050),E=e(67836),x=e(36032),K=e(88996),o=e(14310),N=e(39742),m=e(87180),y=e(49453),f=e(88496),M=e(8341),n=e(97857),r=e.n(n),d=e(67294);function h(b,F,ee){var re,oe=b.block,J=b.isReadPretty,W=J===void 0?function(ie){var Y=ie.form;return Y.readPretty}:J,q=b.filter,fe=q===void 0?function(){return!0}:q,ne=b.getInitializerItem,pe=ne===void 0?function(){return{}}:ne,Se=b.getSchema,_e=Se===void 0?function(){return{}}:Se,de=ee.collectionManager,xe=ee.collection,te=ee.dataSourceManager,X=ee.actionContext,ve=(re=X.fieldSchema)===null||re===void 0?void 0:re["x-action"];return xe?F.map(function(ie){var Y=de.getCollection(ie.target),ue=te.collectionFieldInterfaceManager.getFieldInterface(ie.interface);return{collectionField:ie,context:r()(r()({},ee),{},{targetCollection:Y,collectionFieldInterface:ue})}}).filter(function(ie){var Y=ie.collectionField;return Y.interface}).filter(function(ie){var Y=ie.collectionField,ue=ie.context;return fe(Y,ue)}).map(function(ie){var Y,ue,Ce=ie.collectionField,Ee=ie.context,Oe={type:"string",title:(Ce==null||(Y=Ce.uiSchema)===null||Y===void 0?void 0:Y.title)||Ce.name,name:Ce.name,"x-component":"CollectionField","x-collection-field":"".concat(xe.name,".").concat(Ce.name),"x-read-pretty":Ce==null||(ue=Ce.uiSchema)===null||ue===void 0?void 0:ue["x-read-pretty"]},Re=_e(Ce,r()(r()({},Ee),{},{defaultSchema:Oe})),Ae=r()(r()({},Oe),Re||{});return{collectionField:Ce,schema:Ae,context:r()(r()({},Ee),{},{schema:Ae})}}).map(function(ie){var Y,ue=ie.collectionField,Ce=ie.context,Ee={type:"item",name:ue.name,title:(ue==null||(Y=ue.uiSchema)===null||Y===void 0?void 0:Y.title)||ue.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Re){var Ae,Te;(Ae=Ce.collectionFieldInterface)===null||Ae===void 0||(Te=Ae.schemaInitialize)===null||Te===void 0||Te.call(Ae,Re,{field:ue,block:oe,readPretty:W==null?void 0:W(Ce),action:ve,targetCollection:Ce.targetCollection})},schema:Ce.schema};return{collectionField:ue,context:Ce,defaultInitializerItem:Ee}}).map(function(ie){var Y=ie.collectionField,ue=ie.defaultInitializerItem,Ce=ie.context,Ee=pe(Y,r()(r()({},Ce),{},{defaultInitializerItem:ue}));return r()(r()({},ue),Ee||{})}):[]}var C=e(80844),D=e(26793),R=e(58837),Z=e(44990),w=e(76157),$=e(35746),p=e(13511),A=e(64774);function g(){var b=(0,D.$)(),F=b.t,ee=(0,R.Kx)(),re=(0,p.fp)(),oe=(0,w.XC)(),J=(0,Z.wl)(),W=(0,C.useForm)(),q=(0,C.useFieldSchema)(),fe=(0,$.d9)(),ne=(0,A.eJW)();return{t:F,compile:ne,actionContext:oe,fieldSchema:q,collection:ee,dataSource:J,form:W,collectionManager:fe,dataSourceManager:re}}var i=e(59582),G=e(85893),j=function(F){var ee=g(),re=ee.t,oe=ee.collection,J=oe.getFields(),W=h(F,J,ee);return(0,G.jsx)(i.iP,{title:re("Display fields"),children:W})},O=function(F){var ee=g(),re=ee.collection,oe=ee.t,J=ee.collectionManager,W=re.getParentCollectionsName();if(!W.length)return null;var q=W.map(function(fe){var ne=re.getParentCollectionFields(fe);if(ne.length===0)return null;var pe=J.getCollection(fe);return{parentCollection:pe,parentCollectionFields:ne}}).filter(Boolean).map(function(fe){var ne=fe,pe=ne.parentCollection,Se=ne.parentCollectionFields,_e=r()(r()({},ee),{},{collection:pe});return{type:"itemGroup",divider:!0,title:oe("Parent collection fields")+"("+ee.compile(pe.title)+")",children:h(F,Se,_e)}});return(0,G.jsx)(i.E0,{children:q})},l=e(13769),v=e.n(l),a=["filterAssociationField","filterSelfField","getSchema"],S=function(F){var ee=F.filterAssociationField,re=F.filterSelfField,oe=re===void 0?function(){return!0}:re,J=F.getSchema,W=v()(F,a),q=F.context,fe=q.collection,ne=q.t,pe=q.collectionManager,Se=fe.getFields(),_e=["o2o","oho","obo","m2o"],de=Se.filter(function(te){return _e.includes(te.interface)}).filter(function(te){return oe(te,F.context)});if(!de.length)return null;var xe=de.map(function(te){var X=pe.getCollection(te.target);if(!X)return null;var ve=X==null?void 0:X.getAllFields();return ve.length?{associationField:te,associationCollection:X,associationCollectionFields:ve}:null}).filter(Boolean).map(function(te){var X,ve,ie=te.associationField,Y=te.associationCollection,ue=te.associationCollectionFields,Ce=r()(r()({},F.context),{},{collection:Y}),Ee=function(Re,Ae){var Te=J(Re,Ae);return r()(r()({},Te||{}),{},{"x-read-pretty":!0,name:"".concat(ie.name,".").concat(Re.name),"x-collection-field":"".concat(fe.name,".").concat(ie.name,".").concat(Re.name)})};return{type:"subMenu",name:(X=ie.uiSchema)===null||X===void 0?void 0:X.title,title:(ve=ie.uiSchema)===null||ve===void 0?void 0:ve.title,children:h(r()(r()({},W),{},{filter:ee,getSchema:Ee}),ue,Ce)}});return xe.length?(0,G.jsx)(i.iP,{title:ne("Display association fields"),children:xe}):null},V=function(F){var ee=F.selfField,re=F.parentField,oe=F.associationField,J=F.block,W=g();return W.collection?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(j,r()(r()({block:J},ee),{},{context:r()(r()({},W),{},{collection:W.collection})})),re&&(0,G.jsx)(O,r()(r()({block:J},re),{},{context:r()(r()({},W),{},{collection:W.collection})})),oe&&(0,G.jsx)(S,r()(r()({block:J},oe),{},{context:r()(r()({},W),{},{collection:W.collection})}))]}):null},P=e(40341),t=function(F,ee,re){var oe=(0,P.nD)(F,"x-component","Kanban");return(0,P.nD)(oe,ee,re)},I=function(F){var ee=(F==null?void 0:F.block)||"Form",re={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},oe={remove:P.YT};return(0,G.jsx)(V,{block:ee,selfField:{filter:function(W){return!W.treeChildren},getSchema:function(W,q){var fe,ne=q.targetCollection,pe=(ne==null?void 0:ne.template)==="file",Se=ne,_e=W==null||(fe=W.uiSchema)===null||fe===void 0||(fe=fe["x-component-props"])===null||fe===void 0?void 0:fe.fieldNames;return r()(r()({},re),{},{"x-component-props":pe?{fieldNames:{label:"preview",value:"id"}}:Se&&_e?{fieldNames:r()(r()({},_e),{},{label:(ne==null?void 0:ne.titleField)||_e.label})}:{}})},getInitializerItem:function(){return r()(r()({},oe),{},{find:(F==null?void 0:F.block)==="Kanban"?t:void 0})}},parentField:{getSchema:function(){return re},getInitializerItem:function(){return oe}},associationField:{filterSelfField:function(W){return ee!=="Form"?!0:(W==null?void 0:W.interface)==="m2o"},filterAssociationField:function(W){return(W==null?void 0:W.interface)&&!["subTable"].includes(W==null?void 0:W.interface)&&!W.treeChildren},getSchema:function(){return re},getInitializerItem:function(){return oe}}})},B=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],z=function(F){function ee(re){var oe=re.fieldSchema,J=re.form,W=oe["x-component"]==="AssociationField.SubTable",q=W?J.readPretty:!0;return q}return(0,G.jsx)(V,{block:"Table",selfField:{isReadPretty:ee,filter:function(oe){return oe.interface!=="subTable"&&!oe.treeChildren},getSchema:function(oe,J){var W,q,fe=J.targetCollection,ne=J.fieldSchema,pe=J.form,Se=(fe==null?void 0:fe.template)==="file",_e=((W=oe.uiSchema)===null||W===void 0?void 0:W["x-component"])==="Preview",de=ne["x-component"]==="AssociationField.SubTable",xe=ee({fieldSchema:ne,form:pe});return{"x-component-props":Se?{fieldNames:{label:"preview",value:"id"}}:_e?{size:"small"}:{},"x-read-pretty":xe||((q=oe.uiSchema)===null||q===void 0?void 0:q["x-read-pretty"]),"x-decorator":de?B.includes(oe.interface)||Se?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:P.p$,remove:P.pP}}},parentField:{isReadPretty:ee,getSchema:function(oe,J){var W,q=J.targetCollection,fe=J.fieldSchema,ne=J.form,pe=(q==null?void 0:q.template)==="file",Se=fe["x-component"]==="AssociationField.SubTable",_e=ee({fieldSchema:fe,form:ne});return{"x-component-props":pe?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":_e||((W=oe.uiSchema)===null||W===void 0?void 0:W["x-read-pretty"]),"x-decorator":Se?B.includes(oe.interface)||pe?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:P.YT}}},associationField:{filterAssociationField:function(oe){return!["subTable"].includes(oe.interface)&&!oe.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:P.p$,remove:P.pP}}}})},L=e(22558)},8341:function(ze,se,e){"use strict";e.d(se,{FE:function(){return K},GX:function(){return o},Yj:function(){return x}});var H=e(9783),u=e.n(H),k=e(67294),c=e(57638),E="x-data-source",x=function(m,y){var f;return(f=m.collectionFieldInterfaceManager.getFieldInterface(y.interface))===null||f===void 0?void 0:f.titleUsable},K=function(m){var y=(0,k.useMemo)(function(){if(m&&m!==c.ym)return u()({},E,m)},[m]);return y},o=function(m){return m&&m!==c.ym?u()({},E,m):{}}},69803:function(ze,se,e){"use strict";e.d(se,{AL:function(){return w},C$:function(){return D},PE:function(){return C},jr:function(){return Z},uN:function(){return $},yq:function(){return R}});var H=e(15009),u=e.n(H),k=e(99289),c=e.n(k),E=e(12444),x=e.n(E),K=e(72004),o=e.n(K),N=e(31996),m=e.n(N),y=e(26037),f=e.n(y),M=e(67294),n=e(26793),r=e(31601),d=e(15585),h=e(85893),C=(0,M.createContext)({getTitle:function(){return""},setTitle:function(){}});C.displayName="DocumentTitleContext";var D=M.memo(function(p){var A=p.addonBefore,g=p.addonAfter,i=(0,n.$)(),G=i.t,j=M.useRef(""),O=(0,M.useCallback)(function(){return j.current},[]),l=(0,M.useCallback)(function(a){document.title=j.current="".concat(A?" - ".concat(G(A)):"").concat(G(a||"")).concat(g?" - ".concat(G(g)):"")},[g,A,G]),v=(0,M.useMemo)(function(){return{getTitle:O,setTitle:l}},[O,l]);return(0,h.jsx)(C.Provider,{value:v,children:p.children})});D.displayName="DocumentTitleProvider";var R=function(A){var g,i=(0,d.HX)();return(0,h.jsx)(D,{addonAfter:i==null||(g=i.data)===null||g===void 0||(g=g.data)===null||g===void 0?void 0:g.title,children:A.children})},Z=function(){return(0,M.useContext)(C)},w=function(A){var g=Z(),i=g.setTitle;(0,M.useEffect)(function(){i(A)},[i,A])},$=function(p){m()(g,p);var A=f()(g);function g(){return x()(this,g),A.apply(this,arguments)}return o()(g,[{key:"load",value:function(){var i=c()(u()().mark(function j(){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this.app.use(R,this.options);case 1:case"end":return l.stop()}},j,this)}));function G(){return i.apply(this,arguments)}return G}()}]),g}(r.S)},67205:function(ze,se,e){"use strict";e.d(se,{XA:function(){return h},kO:function(){return D},vY:function(){return C}});var H=e(97857),u=e.n(H),k=e(19632),c=e.n(k),E=e(80844),x=e(96486),K=e.n(x),o=e(58837),N=e(39742),m=e(4277),y=e(64774),f=e(87714),M=e(67294),n=e(85893),r=function(R){return R.AND="$and",R.OR="$or",R}(r||{}),d=(0,M.createContext)(null);d.displayName="FilterContext";var h=M.memo(function(R){var Z=R.children,w=M.useRef([]),$=(0,M.useCallback)(function(g){typeof g=="function"?w.current=g(w.current):w.current=g},[]),p=(0,M.useCallback)(function(){return w.current},[]),A=(0,M.useMemo)(function(){return{getDataBlocks:p,setDataBlocks:$}},[p,$]);return(0,n.jsx)(d.Provider,{value:A,children:Z})});h.displayName="FilterBlockProvider";var C=function(Z){var w,$=Z.children,p=Z.params,A=(0,o.Kx)(),g=D(),i=g.recordDataBlocks,G=(0,N.Pt)(),j=G.getDataBlockRequest,O=(0,E.useField)(),l=(0,E.useFieldSchema)(),v=(0,f.Fp)(),a=(0,M.useRef)(null),S=(0,m.tU)(),V=O&&O.decoratorType!=="FilterFormBlockProvider"&&O.decoratorType!=="FormBlockProvider"&&O.decoratorProps.blockType!=="filter",P=(0,M.useCallback)(function(){var t=j();i({uid:l["x-uid"],title:O.componentProps.title,doFilter:t.runAsync,collection:A,associatedFields:v,foreignKeyFields:A==null?void 0:A.getFields("isForeignKey"),defaultFilter:(p==null?void 0:p.filter)||{},service:t,dom:a.current,dataLoadingMode:S,clearFilter:function(B){var z,L,b=((z=this.service.params)===null||z===void 0?void 0:z[0])||{},F=((L=this.service.params)===null||L===void 0||(L=L[1])===null||L===void 0?void 0:L.filters)||{};delete F[B];var ee=(0,f.EO)([].concat(c()(Object.values(F).map(function(re){return(0,y.WmO)(re)})),[(p==null?void 0:p.filter)||{}]));this.service.run(u()(u()({},b),{},{page:1,filter:ee}),{filters:F})},clearData:function(){this.service.mutate(void 0)}})},[v,A,S,O==null||(w=O.componentProps)===null||w===void 0?void 0:w.title,l,p==null?void 0:p.filter,i,j]);return(0,M.useEffect)(function(){V&&P()},[P,V]),(0,n.jsx)("div",{ref:a,children:$})},D=function(){var Z=M.useContext(d),w=(0,M.useCallback)(function(){return(Z==null?void 0:Z.getDataBlocks())||[]},[Z]),$=(0,M.useCallback)(function(A){var g=Z==null?void 0:Z.getDataBlocks().find(function(i){return i.uid===A.uid});if(g){Object.assign(g,A);return}Z==null||Z.setDataBlocks(function(i){return[].concat(c()(i),[A])})},[Z]),p=(0,M.useCallback)(function(A){Z!=null&&Z.getDataBlocks().every(function(g){return g.uid!==A})||Z==null||Z.setDataBlocks(function(g){return g.filter(function(i){return i.uid!==A})})},[Z]);return Z?{recordDataBlocks:$,getDataBlocks:w,removeDataBlock:p,inProvider:!0}:{inProvider:!1,recordDataBlocks:K().noop,getDataBlocks:w,removeDataBlock:K().noop}}},18386:function(ze,se,e){"use strict";e.d(se,{$f:function(){return u.$f},EO:function(){return u.EO},Fp:function(){return u.Fp},Op:function(){return u.Op},Um:function(){return u.Um},XA:function(){return H.XA},hi:function(){return u.hi},jE:function(){return u.jE},kO:function(){return H.kO},vC:function(){return u.vC},vY:function(){return H.vY},x5:function(){return u.x5},yr:function(){return u.yr},zv:function(){return u.zv}});var H=e(67205),u=e(87714)},87714:function(ze,se,e){"use strict";e.d(se,{$f:function(){return G},EO:function(){return w},Fp:function(){return i},Op:function(){return l},Um:function(){return A},hi:function(){return O},jE:function(){return g},vC:function(){return Z},x5:function(){return $},yr:function(){return j},zv:function(){return p}});var H=e(97857),u=e.n(H),k=e(19632),c=e.n(k),E=e(5574),x=e.n(E),K=e(9783),o=e.n(K),N=e(52677),m=e.n(N),y=e(80844),f=e(84157),M=e(96486),n=e.n(M),r=e(67294),d=e(10097),h=e(58837),C=e(13511),D=e(64774),R=e(67205),Z=function(v){return v[v.FORM=0]="FORM",v[v.TABLE=1]="TABLE",v[v.TREE=2]="TREE",v[v.COLLAPSE=3]="COLLAPSE",v}({}),w=function(a){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",V=a.filter(function(P){if(P&&m()(P)==="object"&&!Array.isArray(P))return Object.values(P).filter(function(t){return t!==void 0}).length});return V.length===0?{}:V.length===1?V[0]:o()({},S,V)},$=function(a,S){var V;return(V=S.associatedFields)===null||V===void 0?void 0:V.filter(function(P){return a==null?void 0:a.some(function(t){return t===P.target})})},p=function(a,S){var V;return(V=S.foreignKeyFields)===null||V===void 0?void 0:V.filter(function(P){return a.fields.some(function(t){return t.type!=="belongsTo"&&t.foreignKey===P.name})})},A=function(a){var S=(0,R.kO)(),V=S.getDataBlocks,P=(0,y.useFieldSchema)(),t=(0,h.Kx)(),I=(0,C.Uv)(),B=I.getAllCollectionsInheritChain;if(a===Z.FORM||a===Z.COLLAPSE)return V().filter(function(z){return j(z.collection,t)});if(a===Z.TABLE||a===Z.TREE)return V().filter(function(z){var L,b;return P["x-uid"]!==z.uid&&(j(z.collection,t)||((L=$(B(t.name,t.dataSource),z))===null||L===void 0?void 0:L.length)||((b=p(t,z))===null||b===void 0?void 0:b.length))})},g=function(a,S,V,P){a=(0,f.flatten)(a,{breakOn:function(B){var z=B.value,L=B.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(S[L]))return!0;var b=V("".concat(P,".").concat(L));if(b!=null&&b.target){if(Array.isArray(z))return!0;var F=b.targetKey||"id";if(z&&z[F]!=null)return!0}return!1}});var t={$and:Object.keys(a).map(function(I){var B=n().get(a,I),z=V("".concat(P,".").concat(I));return z!=null&&z.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(z.type)&&(B=(0,f.getValuesByPath)(B,z.targetKey||"id"),I="".concat(I,".").concat(z.targetKey||"id"),(z==null?void 0:z.interface)==="chinaRegion"&&(B=n().last(B))),!B&&B!==0&&B!==!1?null:o()({},I,o()({},S[I]||"$eq",B))}).filter(Boolean)};return t},i=function(){var a;return((a=(0,h.Kx)())===null||a===void 0?void 0:a.fields.filter(function(S){return G(S)}))||[]},G=function(a){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(a==null?void 0:a.interface)},j=function(a,S){return a.name===S.name&&a.dataSource===S.dataSource},O=function(){var a=(0,y.useFieldSchema)(),S=(0,R.kO)(),V=S.getDataBlocks,P=(0,d.findFilterTargets)(a),t=P.targets,I=P.uid,B=V(),z=(0,r.useState)(function(){return t&&t.some(function(oe){return B.some(function(J){return J.uid===oe.uid})})}),L=x()(z,2),b=L[0],F=L[1],ee=Object.keys(t||{});(0,r.useEffect)(function(){F(t&&t.some(function(oe){return B.some(function(J){return J.uid===oe.uid})}))},[ee.length,t,B]);var re=(0,r.useCallback)(function(oe){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";B.forEach(function(q){var fe,ne,pe=t.find(function(xe){return xe.uid===q.uid});if(pe){n().isFunction(J)&&(J=J(pe)),n().isFunction(W)&&(W=W(pe));var Se=((fe=q.service.params)===null||fe===void 0?void 0:fe[0])||{},_e=((ne=q.service.params)===null||ne===void 0||(ne=ne[1])===null||ne===void 0?void 0:ne.filters)||{};oe!==void 0?_e[I]={$and:[o()({},J,o()({},W,oe))]}:delete _e[I];var de=w([].concat(c()(Object.values(_e).map(function(xe){return(0,D.WmO)(xe)})),[q.defaultFilter]));q.doFilter(u()(u()({},Se),{},{page:1,filter:de}),{filters:_e})}})},[B,t,I]);return{isConnected:b,doFilter:re}},l=function(a){for(;a;){if(a["x-filter-targets"])return a["x-decorator"]==="FilterFormBlockProvider";a=a.parent}return!1}},5772:function(ze,se,e){"use strict";e.d(se,{C:function(){return c},z:function(){return k}});var H=e(67294),u=e(85893),k=H.createContext(null),c=function(x){return(0,u.jsx)(k.Provider,{value:x,children:x.children})}},7686:function(ze,se,e){"use strict";e.d(se,{P:function(){return k}});var H=e(67294),u=e(5772),k=function(){return(0,H.useContext)(u.z)||{}}},53285:function(ze,se,e){"use strict";e.d(se,{Cm:function(){return H.C},P5:function(){return u.P},z_:function(){return H.z}});var H=e(5772),u=e(7686)},57105:function(ze,se,e){"use strict";e.d(se,{_9:function(){return B},$:function(){return re},sq:function(){return J},ri:function(){return V},mz:function(){return I},cl:function(){return oe},QJ:function(){return P},gR:function(){return t}});var H=e(97857),u=e.n(H),k=e(80844),c=e(84327),E=e(90105),x=e(96486),K=e.n(x),o=e(67294),N=e(35746),m=e(58837),y=e(93323),f=e(64910),M=e(96365),n=e(52677),r=e.n(n),d=e(85893),h=function(q,fe){if(!(!q&&!fe)&&!(0,c.isFn)(q))return(0,d.jsxs)(o.Fragment,{children:[q,fe]})},C=function(q){return q&&(r()(q)==="object"||typeof q=="function")},D=function(q,fe,ne){return(0,c.isFn)(q)?q(fe,ne):q},R=function(q){var fe,ne=(0,o.useContext)(k.SchemaComponentsContext),pe=q.field,Se=h(D(q.children,pe,pe.form),(fe=pe.content)!==null&&fe!==void 0?fe:pe.componentProps.children);if(pe.display!=="visible")return null;var _e=function(X){var ve;return C(X)?X:(ve=c.FormPath.getIn(ne,X))!==null&&ve!==void 0?ve:X},de=function(X){return pe.decoratorType?o.createElement(_e(pe.decoratorType),pe.decoratorProps,X):(0,d.jsx)(o.Fragment,{children:X})},xe=function(){return pe.componentType?o.createElement(_e(pe.componentType),u()(u()({},pe.componentProps),{},{value:pe.value}),Se):Se};return de(xe())};R.displayName="NocoBaseReactiveInternal";var Z=R;Z.displayName="NocoBaseReactiveField";var w=e(12444),$=e.n(w),p=e(72004),A=e.n(p),g=e(9783),i=e.n(g);function G(W){return new j(W)}var j=function(){function W(q){$()(this,W),i()(this,"props",void 0),i()(this,"initialized",void 0),i()(this,"loading",void 0),i()(this,"validating",void 0),i()(this,"submitting",void 0),i()(this,"selfModified",void 0),i()(this,"active",void 0),i()(this,"visited",void 0),i()(this,"mounted",void 0),i()(this,"unmounted",void 0),i()(this,"inputValues",void 0),i()(this,"inputValue",void 0),i()(this,"feedbacks",void 0),i()(this,"title",void 0),i()(this,"description",void 0),i()(this,"display",void 0),i()(this,"pattern",void 0),i()(this,"editable",void 0),i()(this,"disabled",void 0),i()(this,"readOnly",void 0),i()(this,"readPretty",void 0),i()(this,"visible",void 0),i()(this,"hidden",void 0),i()(this,"dataSource",void 0),i()(this,"validator",void 0),i()(this,"required",void 0),i()(this,"content",void 0),i()(this,"initialValue",void 0),i()(this,"value",void 0),i()(this,"data",void 0),i()(this,"decorator",void 0),i()(this,"component",void 0),i()(this,"decoratorProps",void 0),i()(this,"componentProps",void 0),i()(this,"decoratorType",void 0),i()(this,"componentType",void 0),i()(this,"path",void 0),i()(this,"form",void 0),i()(this,"address",void 0),this.props=q,this.initialize()}return A()(W,[{key:"initialize",value:function(){var fe,ne,pe,Se,_e,de,xe,te,X,ve,ie,Y,ue,Ce,Ee,Oe,Re,Ae,Te,Pe,ye=this.props.compile;this.pattern="readPretty",this.readPretty=!0,this.initialized=!0,this.loading=!1,this.validating=!1,this.submitting=!1,this.selfModified=!1,this.active=!1,this.visited=!0,this.mounted=!0,this.unmounted=!1,this.inputValues=[],this.inputValue=null,this.feedbacks=[],this.title=ye(this.props.title||((fe=this.props.schema)===null||fe===void 0?void 0:fe.title)),this.description=ye(this.props.description||((ne=this.props.schema)===null||ne===void 0?void 0:ne.description)),this.display="visible",this.editable=this.props.editable||((pe=this.props.schema)===null||pe===void 0?void 0:pe["x-editable"]),this.disabled=this.props.disabled||((Se=this.props.schema)===null||Se===void 0?void 0:Se["x-disabled"]),this.readOnly=this.props.readOnly||((_e=this.props.schema)===null||_e===void 0?void 0:_e["x-read-only"]),this.visible=this.props.visible||((de=this.props.schema)===null||de===void 0?void 0:de["x-visible"]),this.hidden=this.props.hidden||((xe=this.props.schema)===null||xe===void 0?void 0:xe["x-hidden"]),this.dataSource=ye(this.props.dataSource||((te=this.props.schema)===null||te===void 0?void 0:te.enum)),this.validator=this.props.validator,this.required=this.props.required||!!((X=this.props.schema)!==null&&X!==void 0&&X.required),this.content=ye(this.props.content||((ve=this.props.schema)===null||ve===void 0?void 0:ve["x-content"])),this.initialValue=ye(this.props.initialValue||((ie=this.props.schema)===null||ie===void 0?void 0:ie.default)),this.value=ye(this.props.value),this.data=this.props.data||((Y=this.props.schema)===null||Y===void 0?void 0:Y["x-data"]),this.decorator=this.props.decorator?(0,c.toArr)(this.props.decorator):[(ue=this.props.schema)===null||ue===void 0?void 0:ue["x-decorator"],(Ce=this.props.schema)===null||Ce===void 0?void 0:Ce["x-decorator-props"]],this.component=this.props.component?(0,c.toArr)(this.props.component):[(Ee=this.props.schema)===null||Ee===void 0?void 0:Ee["x-component"],(Oe=this.props.schema)===null||Oe===void 0?void 0:Oe["x-component-props"]],this.decoratorProps=((Re=this.props.schema)===null||Re===void 0?void 0:Re["x-decorator-props"])||{},this.componentProps=((Ae=this.props.schema)===null||Ae===void 0?void 0:Ae["x-component-props"])||{},this.decoratorType=(Te=this.props.schema)===null||Te===void 0?void 0:Te["x-decorator"],this.componentType=(Pe=this.props.schema)===null||Pe===void 0?void 0:Pe["x-component"],this.path={},this.form={},this.address={concat:K().noop}}}]),W}(),O=function(q){var fe=(0,M.e)(),ne=(0,k.useFieldSchema)(),pe=(0,o.useMemo)(function(){return G(u()(u()({},q),{},{compile:fe}))},[]);return Object.assign(pe.componentProps,ne["x-component-props"]),pe.value=q.value,(0,d.jsx)(k.FieldContext.Provider,{value:pe,children:(0,d.jsx)(Z,{field:pe,children:q.children})})},l=o.createContext({}),v=o.createContext(K().noop),a=function(q){var fe=q.children,ne=q.refresh,pe=t(),Se=(0,o.useCallback)(function(_e){ne(),_e!=null&&_e.refreshParentSchema&&(pe==null||pe())},[pe,ne]);return(0,d.jsx)(v.Provider,{value:Se,children:fe})},S=o.createContext(K().noop),V=function(q){var fe=q.children,ne=q.refresh;return(0,d.jsx)(S.Provider,{value:ne,children:fe})},P=function(){return o.useContext(S)},t=function(){return o.useContext(v)},I=function(){return o.useContext(l)||{}},B=function(q){var fe=q.children,ne=q.fieldSchema,pe=(0,m.Kx)(),Se=(0,N.d9)(),_e=ne==null?void 0:ne.name,de=(0,o.useMemo)(function(){var xe;if(!pe)return null;var te=ne==null||(xe=ne["x-component-props"])===null||xe===void 0?void 0:xe.field;return Se.getCollectionField(ne==null?void 0:ne["x-collection-field"])||te||pe.getField((te==null?void 0:te.name)||_e)},[pe,Se,ne,_e]);return(0,d.jsx)(l.Provider,{value:de,children:fe})},z=K().memoize(function(W,q){return W.toFieldProps({scope:q})}),L=function(q){var fe=(0,k.useExpressionScope)();return z(q,fe)},b=function(q){var fe=(0,k.useField)();if(q.onlyRenderProperties){var ne;return q.basePath||(fe==null||(ne=fe.address)===null||ne===void 0?void 0:ne.concat(q.name))}return q.basePath||(fe==null?void 0:fe.address)},F=function(q,fe,ne){var pe=q.toJSON();if(ne){if(!pe.properties)return q;var Se=Object.keys(pe.properties)[0],_e=Object.values(pe.properties)[0];return pe.properties[Se]=(0,c.merge)(K().omit(fe,"type","x-read-pretty"),_e),new k.Schema(pe)}return new k.Schema((0,c.merge)(K().omit(fe,"type","x-read-pretty"),pe))},ee=function(q){var fe=q.schema,ne=q.field,pe=q.basePath,Se=q.mapProperties,_e=q.filterProperties,de=q.propsRecursion,xe=q.values,te=q.isUseFormilyField,X=k.Schema.getOrderProperties(fe);return X.length?(0,d.jsx)(o.Fragment,{children:X.map(function(ve,ie){var Y=ve.schema,ue=ve.key,Ce=(ne==null?void 0:ne.address)||pe,Ee=Y;if((0,c.isFn)(Se)){var Oe=Se(Y,ue);Oe&&(Ee=Oe)}if((0,c.isFn)(_e)&&_e(Ee,ue)===!1)return null;var Re=(0,c.isBool)(de)&&de?(0,d.jsx)(J,{propsRecursion:!0,filterProperties:_e,mapProperties:Se,schema:Ee,name:ue,basePath:Ce,values:K().get(xe,ue),isUseFormilyField:te}):(0,d.jsx)(J,{schema:Ee,name:ue,basePath:Ce,values:K().get(xe,ue),isUseFormilyField:te});return Ee["x-component"]==="CollectionField"?(0,d.jsx)(re.Provider,{value:!0,children:(0,d.jsx)(B,{fieldSchema:Ee,children:Re})},"".concat(ie,"-").concat(ue)):(0,d.jsx)(re.Provider,{value:!1,children:(0,d.jsx)(l.Provider,{value:f.Nu,children:Re})},"".concat(ie,"-").concat(ue))})}):null},re=o.createContext(!1),oe=function(){return o.useContext(re)},J=o.memo(function(W){var q=W.schema,fe=W.name,ne=W.onlyRenderProperties,pe=W.onlyRenderSelf,Se=W.mapProperties,_e=W.filterProperties,de=W.propsRecursion,xe=W.values,te=W.isUseFormilyField,X=te===void 0?!0:te,ve=W.uiSchema,ie=b(W),Y=(0,o.useRef)(null),ue=(0,o.useMemo)(function(){return Y.current=null,new k.Schema(q)},[q]),Ce=I(),Ee=Ce.uiSchema,Oe=Ce.defaultValue,Re=(0,E.Z)(),Ae=(0,o.useContext)(y.A),Te=Ae.onChange,Pe=Y.current||ue,ye=(0,o.useCallback)(function(){var ae=Pe.parent;Y.current=new k.Schema(Pe.toJSON(),ae),ae!=null&&ae.properties&&Object.keys(ae.properties).forEach(function(Ke){Ke===Pe.name&&(ae.properties[Ke]=Y.current)}),Re(),Te==null||Te()},[Pe,Te,Re]),le=(0,o.useMemo)(function(){return ve?F(Pe,ve,ne):Ee?(Ee.default=Oe,F(Pe,Ee,ne)):Pe},[Ee,Oe,Pe,ne,ve]),T=L(le),he=function(Ke){if(!pe)return ee({schema:Pe,field:Ke,basePath:ie,mapProperties:Se,filterProperties:_e,propsRecursion:de,values:xe,isUseFormilyField:X})},De=function(){return(0,c.isValid)(fe)?le.type==="object"?ne?he():(0,d.jsx)(k.ObjectField,u()(u()({},T),{},{name:fe,basePath:ie,children:he})):le.type==="array"?(0,d.jsx)(k.ArrayField,u()(u()({},T),{},{name:fe,basePath:ie})):le.type==="void"?ne?he():(0,d.jsx)(k.VoidField,u()(u()({},T),{},{name:fe,basePath:ie,children:he})):X?(0,d.jsx)(k.Field,u()(u()({},T),{},{name:fe,basePath:ie})):(0,d.jsx)(O,{name:fe,value:xe,initialValue:xe,basePath:ie,schema:le}):he()};return Pe?(0,d.jsx)(k.SchemaContext.Provider,{value:Pe,children:(0,d.jsx)(a,{refresh:ye,children:De()})}):(0,d.jsx)(o.Fragment,{})});J.displayName="NocoBaseRecursionField"},69962:function(ze,se,e){"use strict";e.d(se,{wI:function(){return w},YO:function(){return A},kK:function(){return M},uH:function(){return y},mg:function(){return p}});var H=e(5574),u=e.n(H),k=e(9361),c=e(28459),E=e(96486),x=e.n(E),K=e(67294),o=e(97857),N=e.n(o),m={name:"",token:{colorPrimaryHeader:"#001529",colorBgHeader:"#001529",colorBgHeaderMenuHover:"#ffffff1a",colorBgHeaderMenuActive:"#ffffff1a",colorTextHeaderMenu:"#ffffffa6",colorTextHeaderMenuHover:"#ffffff",colorTextHeaderMenuActive:"#ffffff",colorSettings:"#F18B62",colorBgSettingsHover:"rgba(241, 139, 98, 0.06)",colorBorderSettingsHover:"rgba(241, 139, 98, 0.3)",motionUnit:.03,motion:!0}},y=m;function f(g){var i;return(i=g.token)!==null&&i!==void 0&&i.colorSettings||(g.token=N()(N()({},g.token),y.token)),g}var M=f,n=function(i,G){var j=G||k.Z.defaultAlgorithm(i);return j.paddingPageHorizontal===void 0&&(j.paddingPageHorizontal=j.sizeLG),j.paddingPageVertical===void 0&&(j.paddingPageVertical=j.sizeLG),j.paddingPopupHorizontal===void 0&&(j.paddingPopupHorizontal=j.sizeLG),j.paddingPopupVertical===void 0&&(j.paddingPopupVertical=j.size),j.marginBlock===void 0&&(j.marginBlock=j.sizeLG),j.borderRadiusBlock===void 0&&(j.borderRadiusBlock=j.borderRadiusLG),j},r=function(i){return Array.isArray(i.algorithm)?i.algorithm.includes(n)||i.algorithm.push(n):i.algorithm=[i.algorithm,n].filter(Boolean),i.algorithm=i.algorithm.filter(Boolean),i},d=e(85893),h=e(3321),C=e(12174),D=e(29939),R=(0,K.memo)(function(g){var i=g.children,G=(0,D.qD)(),j=h.Z.useApp(),O=j.notification,l=(0,C.LY)();return(0,K.useEffect)(function(){l.notification=O,G.notification=O},[O]),(0,d.jsx)(d.Fragment,{children:i})});R.displayName="AppInner";var Z=function(i){var G=i.children,j=i.className,O=i.style;return(0,d.jsx)(h.Z,{className:j,style:N()({height:"100%"},O),children:(0,d.jsx)(R,{children:G})})};Z.displayName="AntdAppProvider";var w=Z,$=(0,K.createContext)(null);$.displayName="GlobalThemeContext";var p=function(){return K.useContext($)||{theme:{},isDarkTheme:!1}},A=function(i){var G=i.children,j=i.theme,O=K.useState(j||y),l=u()(O,2),v=l[0],a=l[1],S=(0,K.useRef)(null),V=(0,K.useRef)(null),P=(0,K.useMemo)(function(){var b=v==null?void 0:v.algorithm;return Array.isArray(b)?b.includes(k.Z.darkAlgorithm):b===k.Z.darkAlgorithm},[v==null?void 0:v.algorithm]),t=(0,K.useCallback)(function(b){V.current=b&&x().cloneDeep(b)},[]),I=(0,K.useCallback)(function(){return V.current},[]),B=(0,K.useCallback)(function(b){S.current=b&&x().cloneDeep(b)},[]),z=(0,K.useCallback)(function(){return S.current},[]),L=(0,K.useMemo)(function(){return{theme:r(v),setTheme:a,setCurrentSettingTheme:B,getCurrentSettingTheme:z,setCurrentEditingTheme:t,getCurrentEditingTheme:I,isDarkTheme:P}},[I,z,P,t,B,v]);return(0,d.jsx)($.Provider,{value:L,children:(0,d.jsx)(c.ZP,{theme:M(L.theme),children:G})})}},15503:function(ze,se,e){"use strict";e.d(se,{M:function(){return r},t:function(){return d}});var H=e(97857),u=e.n(H),k=e(96695),c=e.n(k),E=e(80844),x=e(96486),K=e.n(x),o=e(67294),N=e(64774),m=e(57953),y=e(85893),f=function(){},M=function(C,D,R){var Z=void 0;return K().isFunction(C)?Z=C:(Z=D[C],Z||console.error("".concat(R," is not registered"))),Z||f},n=function(C,D){if(!C)return f;if(K().isFunction(C))return C;var R=C.split("."),Z,w=c()(R),$;try{for(w.s();!($=w.n()).done;){var p=$.value;Z=M(p,Z||D,C)}}catch(A){w.e(A)}finally{w.f()}return Z};function r(h,C){var D=(0,E.useExpressionScope)(),R=n(h,D)(C);return R}function d(h){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=C.displayName||h.displayName||h.name,R=function Z(w){var $=(0,N.ngQ)(),p=$.dn,A=$.findComponent,g=(0,o.useMemo)(function(){var j=p.getSchemaAttribute("x-component"),O=p.getSchemaAttribute("x-decorator"),l=p.getSchemaAttribute("x-use-component-props"),v=p.getSchemaAttribute("x-use-decorator-props");if(j&&l&&A(j)===Z)return l;if(O&&v&&A(O)===Z)return v},[p]),i=r(g,w),G=(0,o.useMemo)(function(){return u()(u()({},w),i)},[i,w]);return(0,y.jsx)(o.Suspense,{fallback:(0,y.jsx)(m.Z,{}),children:(0,y.jsx)(h,u()(u()({},G),{},{children:w.children}))})};return h.displayName=D,R.displayName="withSchemaProps(".concat(D,")"),R}},83335:function(ze,se,e){"use strict";e.d(se,{C:function(){return o}});var H=e(97857),u=e.n(H),k=e(48054),c=e(39742),E=e(67294),x=e(85893),K=function(){var m;return!!((m=(0,c.hS)())!==null&&m!==void 0&&m.loading)},o=function(m,y){var f=y||{},M=f.useLoading,n=M===void 0?K:M,r=f.displayName,d=f.SkeletonComponent,h=d===void 0?k.Z:d,C=E.memo(function(D){var R=n(),Z=(0,E.useRef)(!1);return!Z.current&&R?(0,x.jsx)(h,{}):(Z.current=!0,(0,x.jsx)(m,u()({},D)))});return C.displayName=r||"".concat(m.displayName,"(withSkeletonComponent)")||0,C}},29392:function(ze,se,e){"use strict";e.d(se,{W:function(){return H},S:function(){return c}});var H=function(){return"nocobase-admin-menu"},u=e(67294),k=function(){var x=(0,u.useRef)("initial-scale=0.1"),K=(0,u.useRef)();(0,u.useEffect)(function(){var N=document.querySelector('meta[name="viewport"]');N?x.current=N.content:(N=document.createElement("meta"),N.name="viewport"),N&&(N.content="width=device-width, initial-scale=1, user-scalable=0",K.current=N)},[]);var o=function(){K.current&&(K.current.content=x.current)};return{metaRef:K,restore:o}};function c(){var E=k(),x=E.metaRef,K=E.restore;(0,u.useEffect)(function(){if(x.current)return document.head.insertBefore(x.current,document.head.firstChild),function(){K()}},[])}},74820:function(ze,se,e){"use strict";e.d(se,{d5:function(){return N},iX:function(){return y},nu:function(){return m}});var H=e(19632),u=e.n(H),k=e(96486),c=e.n(k),E=e(67294),x=e(85893),K=(0,E.createContext)(null);K.displayName="GetMenuItemContext";var o=(0,E.createContext)(null);o.displayName="GetMenuItemsContext";var N=function(){return(0,E.useContext)(K)||{}},m=function(){return(0,E.useContext)(o)||{}},y=function(){var M=(0,E.useRef)([]),n=(0,E.useRef)(null),r=(0,E.useRef)(!1),d=(0,E.useCallback)(function(R){var Z=R.limitCount;return r.current?(r.current=!1,n.current?n.current():Z&&M.current.length>Z?(0,x.jsx)(x.Fragment,{children:M.current.slice(0,Z).map(function(w,$){return(0,x.jsx)(w,{},$)})}):(0,x.jsx)(x.Fragment,{children:M.current.map(function(w,$){return(0,x.jsx)(w,{},$)})})):null},[]),h=(0,E.useCallback)(function(R){var Z=[],w=function(p){Z.push(p),Z.sort(function(A,g){return(A.order||0)-(g.order||0)})};return r.current=!0,n.current=function(){var $=Z.filter(function(p){return p.notdelete}).map(function(p){return c().omit(p,"notdelete")});return Z.length=0,Z.push.apply(Z,u()($)),(0,x.jsx)(o.Provider,{value:{pushMenuItem:w},children:R()})},Z},[]),C=(0,E.useCallback)(function(R){var Z={},w=function(p){Object.assign(Z,p)};return r.current=!0,M.current.push(function(){return(0,x.jsx)(K.Provider,{value:{collectMenuItem:w},children:R()})}),Z},[]),D=(0,E.useCallback)(function(){M.current=[]},[]);return{Component:d,getMenuItems:h,getMenuItem:C,clean:D}}},71098:function(ze,se,e){"use strict";e.d(se,{j:function(){return o}});var H=e(12610),u=e(85418),k=e(67294),c=e(12174),E=e(35310),x=e(15585),K=e(85893);function o(){var N,m,y=(0,x.HX)()||{},f=y.data,M=(0,c.LY)();return(f==null||(N=f.data)===null||N===void 0?void 0:N.enabledLanguages.length)>1&&(0,K.jsx)(u.Z,{menu:{onClick:function(r){M.auth.setLocale(r.key),window.location.reload()},selectable:!0,defaultSelectedKeys:[M.auth.locale],items:f==null||(m=f.data)===null||m===void 0||(m=m.enabledLanguages)===null||m===void 0?void 0:m.map(function(n){return{key:n,label:E.ZP[n].label}})},children:(0,K.jsx)(H.Z,{style:{fontSize:24}})})}},58384:function(ze,se,e){"use strict";e.d(se,{a:function(){return E},v:function(){return c}});var H=e(36609),u=e(57715),k=e(35310);function c(K,o){return o?"{{t(".concat(JSON.stringify(K),", ").concat(JSON.stringify(o),")}}"):"{{t(".concat(JSON.stringify(K),")}}")}var E=H.default.createInstance(),x={};Object.keys(k.ZP).forEach(function(K){x[K]=k.ZP[K].resources}),E.use(u.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(ze,se,e){"use strict";e.d(se,{JO:function(){return d},OL:function(){return n},ci:function(){return f},q5:function(){return M},fm:function(){return r}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(19359),x=e(16165),K=e(91321),o=e(67294),N=e(85893),m=["type","component"],y,f=new Map;function M(C){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;f.set(C.toLowerCase(),D)}function n(C){return C?f.has(C.toLowerCase()):!1}function r(C){Object.keys(C).forEach(function(D){M(D,C[D])})}Object.keys(E).forEach(function(C){C.endsWith("Outlined")&&M(C,E[C])});var d=function(D){var R=D.type,Z=R===void 0?"":R,w=D.component,$=c()(D,m);if(w)return(0,N.jsx)(x.Z,u()({component:w},$));if(Z&&f.has(Z.toLowerCase())){var p=f.get(Z.toLowerCase());return(0,N.jsx)(p,u()({},$))}return Z&&y?(0,N.jsx)(y,{type:Z}):null};d.createFromIconfontCN=function(C){y=(0,K.Z)(C)},d.register=function(C){r(C)};var h=null},21143:function(ze,se,e){"use strict";e.r(se),e.d(se,{ACLActionParamsContext:function(){return R.R1},ACLActionProvider:function(){return R.mE},ACLCollectionFieldProvider:function(){return R.tq},ACLCollectionProvider:function(){return R.Hh},ACLContext:function(){return R.R3},ACLCustomContext:function(){return R.a3},ACLMenuItemProvider:function(){return R.fJ},ACLPane:function(){return R.$M},ACLPlugin:function(){return R.pz},ACLProvider:function(){return R.Z5},ACLRolesCheckProvider:function(){return R.VV},ADMIN_SETTINGS_KEY:function(){return p.eB},ADMIN_SETTINGS_PATH:function(){return p.oz},APIClient:function(){return w.lP},APIClientContext:function(){return w._Z},APIClientProvider:function(){return w.Xb},Action:function(){return W.aUM},ActionBar:function(){return W.olz},ActionBarAssociationFilterAction:function(){return q.cm},ActionBarProvider:function(){return W.N0i},ActionContext:function(){return W.fWn},ActionContextNoRerender:function(){return W.mlL},ActionContextProvider:function(){return W.EIK},ActionDesigner:function(){return W.$Lt},ActionInitializer:function(){return q.$M},ActionInitializerItem:function(){return q.eq},AdminDynamicPage:function(){return J.zf},AdminLayout:function(){return J.lq},AdminLayoutPlugin:function(){return J.r3},AdminProvider:function(){return J.IA},AdminSettingsLayout:function(){return ee.i9},AfterSuccess:function(){return W.$b8},AntdAppProvider:function(){return P.wI},AntdConfigPlugin:function(){return Z.kT},AntdConfigProvider:function(){return Z.zy},AntdSchemaComponentPlugin:function(){return W.HTy},AntdSchemaComponentProvider:function(){return W.lkv},AppComponent:function(){return p.y$},AppLangContext:function(){return Z.UJ},AppendsTreeSelect:function(){return W.rDu},Application:function(){return p.Mx},ApplicationContext:function(){return p.Zz},AssignedFieldValues:function(){return W.eYL},AssociatedFields:function(){return q.Pg},AssociationField:function(){return W.Rat},AssociationFieldMode:function(){return W.oAt},AssociationFieldModeProvider:function(){return W.E7E},AssociationFilter:function(){return q.tr},AssociationFilterDesignerDelete:function(){return q.nr},AssociationFilterDesignerDisplayField:function(){return q.N2},AssociationFilterPlugin:function(){return q.Ys},AssociationOrCollectionProvider:function(){return v.dq},AssociationProvider:function(){return v.ym},AssociationSelect:function(){return W.$SD},AsyncDataContext:function(){return A.tO},AsyncDataProvider:function(){return A.pW},AttachmentList:function(){return W.fUi},AutoComplete:function(){return W.QcG},BackButtonUsedInSubPage:function(){return W.MLy},BaseVariableProvider:function(){return ne.Nx},BlankComponent:function(){return p.X_},Block:function(){return W.gOu},BlockAssociationContext:function(){return g.WJ},BlockContext:function(){return g.Qj},BlockInitializer:function(){return q.bn},BlockItem:function(){return W.jYG},BlockItemCard:function(){return W.PuU},BlockItemInitializer:function(){return q.VD},BlockProvider:function(){return g.ZJ},BlockRequestContextProvider:function(){return v.uz},BlockRequestContext_deprecated:function(){return g.br},BlockRequestLoadingContext:function(){return v.q4},BlockRequestProvider:function(){return v.N4},BlockRequestProvider_deprecated:function(){return g.M0},BlockResourceContext:function(){return g.wH},BlockSchemaComponentPlugin:function(){return g.jF},BlockSchemaComponentProvider:function(){return g.UC},BlockSchemaToolbar:function(){return ue.G},BlockTemplateContext:function(){return pe.k0},BlockTemplateDetails:function(){return pe.bs},BlockTemplatePage:function(){return pe.EF},BlockTemplateProvider:function(){return pe.AG},BlockTemplatesPane:function(){return pe.L},ButtonEditor:function(){return W.C1I},CSSVariableProvider:function(){return l.O},CardItem:function(){return W.Ssf},Cascader:function(){return W.vTp},Checkbox:function(){return W.XZJ},ClearCollectionFieldContext:function(){return v.m9},Collection:function(){return v.FE},CollectionContext:function(){return v.WH},CollectionDeletedPlaceholder:function(){return v.zW},CollectionField:function(){return v.sb},CollectionFieldContext:function(){return v.v_},CollectionFieldInterface:function(){return v.SY},CollectionFieldInterfaceManager:function(){return v.Z},CollectionFieldProvider:function(){return v.YT},CollectionFieldUISchemaProvider:function(){return he._9},CollectionFieldsToFormInitializerItems:function(){return v.Cd},CollectionFieldsToInitializerItems:function(){return v.rJ},CollectionFieldsToTableInitializerItems:function(){return v.lC},CollectionManager:function(){return v.w4},CollectionManagerContext:function(){return v.IX},CollectionManagerProvider:function(){return v.xw},CollectionNotAllowViewPlaceholder:function(){return v.pD},CollectionProvider:function(){return v.YQ},CollectionRecord:function(){return v.DI},CollectionRecordContext:function(){return v.vI},CollectionRecordProvider:function(){return v.E0},CollectionSelect:function(){return W.Tt2},CollectionTemplate:function(){return v.Pl},CollectionTemplateManager:function(){return v.yM},ColorPicker:function(){return W.zH8},ColorSelect:function(){return W.Q5L},CompatibleSchemaInitializer:function(){return p.nl},CreateFilterActionInitializer:function(){return q.nl},CreateResetActionInitializer:function(){return q.cz},Cron:function(){return W.Pok},CronSet:function(){return W.Vm0},CurrentAppInfoContext:function(){return $.RQ},CurrentAppInfoProvider:function(){return $.Gq},CurrentPageUidContext:function(){return p.WY},CurrentPageUidProvider:function(){return p.lN},CurrentTabUidContext:function(){return p.yt},CurrentTabUidProvider:function(){return p.vm},CurrentUser:function(){return xe.Ih},CurrentUserContext:function(){return xe.Ec},CurrentUserProvider:function(){return xe.MF},CurrentUserSettingsMenuProvider:function(){return xe.mY},CustomRouterContextProvider:function(){return p.O6},CustomizeActionInitializer:function(){return q.yE},DEBOUNCE_WAIT:function(){return te.on},DEFAULT_DATA_SOURCE_KEY:function(){return v.Ip},DEFAULT_DATA_SOURCE_TITLE:function(){return v.UC},DataBlockCollector:function(){return S.vY},DataBlockContext:function(){return v.hZ},DataBlockInitializer:function(){return q.dn},DataBlockProvider:function(){return v.KY},DataBlockResourceContext:function(){return v.T1},DataBlockResourceProvider:function(){return v.eh},DataSource:function(){return v.o2},DataSourceApplicationProvider:function(){return v.i},DataSourceCollectionCascader:function(){return W.xI_},DataSourceContext:function(){return v.NT},DataSourceManager:function(){return v.AK},DataSourceManagerContext:function(){return v.up},DataSourceManagerProvider:function(){return v.kv},DataSourceProvider:function(){return v.LX},DataSourceSelect:function(){return W.Lip},DateFormatCom:function(){return W.WN4},DatePicker:function(){return W.Mtg},DatePickerProvider:function(){return W.iNu},DefaultValueProvider:function(){return ne.yT},Designable:function(){return W.zzt},DesignableSwitch:function(){return W._bl},Details:function(){return W.POi},DetailsBlockContext:function(){return g.LR},DetailsBlockProvider:function(){return g.nw},DetailsDesigner:function(){return W.AOY},Divider:function(){return W.izJ},DndContext:function(){return W.LBT},DocumentTitleContext:function(){return a.PE},DocumentTitleProvider:function(){return a.C$},DragHandler:function(){return W.IWB},DraggableContext:function(){return W.LCt},DropdownVisibleContext:function(){return xe.yI},EMPTY_OBJECT:function(){return te.Nu},EditComponent:function(){return W.FyH},EditDefaultValue:function(){return W.Nir},EditDescription:function(){return W.q8U},EditOperator:function(){return W.HGA},EditPattern:function(){return W.QTe},EditRequired:function(){return W.JEX},EditSortField:function(){return W.fAH},EditTitle:function(){return W.$w$},EditTitleField:function(){return W.nBj},EditTooltip:function(){return W.Oct},EditValidationRules:function(){return W.zdw},Editable:function(){return W.CXR},EllipsisWithTooltip:function(){return W.BQs},ErrorFallback:function(){return W.Hj5},Expand:function(){return W.M0b},ExpiresRadio:function(){return W.Dnz},ExtendCollectionsContext:function(){return v.Xc},ExtendCollectionsProvider:function(){return v.j5},Filter:function(){return W.wn$},FilterAction:function(){return W.GzZ},FilterActionContext:function(){return W.tJZ},FilterAssociatedFields:function(){return q.EC},FilterBlockProvider:function(){return S.XA},FilterBlockType:function(){return S.vC},FilterContext:function(){return W.fox},FilterDynamicComponent:function(){return W.VTd},FilterFormBlockProvider:function(){return g.WI},FilterLogicContext:function(){return W.XsZ},FilterParentCollectionFields:function(){return q.d6},FlagContext:function(){return V.z_},FlagProvider:function(){return V.Cm},Form:function(){return W.l09},FormActiveFieldsProvider:function(){return g.T2},FormBlockContext:function(){return g.TC},FormBlockInitializer:function(){return Ce.Jo},FormBlockProvider:function(){return g.$R},FormDialog:function(){return W.D_t},FormField:function(){return W.WiK},FormFieldContext:function(){return g.uW},FormFieldProvider:function(){return g.$1},FormItem:function(){return W.xJW},FormItemSchemaToolbar:function(){return Ce.Oo},FormProvider:function(){return W.RVL},FormV2:function(){return W.Bc8},G2Plot:function(){return W.hG9},G2PlotInitializer:function(){return q.oY},G2PlotRenderer:function(){return W.DCh},GeneralSchemaDesigner:function(){return ne.aN},GeneralSchemaItems:function(){return fe.Mj},GlobalThemeProvider:function(){return P.YO},Grid:function(){return W.rjZ},GridCard:function(){return W.Cqo},GridRowContext:function(){return W.jg7},HTMLEncode:function(){return W.gsn},HeightMode:function(){return ne.j0},Icon:function(){return B.JO},IconPicker:function(){return W.$18},InitializerWithSwitch:function(){return q.sp},Input:function(){return W.IIB},InputNumber:function(){return W.RnZ},InputReadPretty:function(){return W.mX2},InputRecordPicker:function(){return W.zDC},InternalAdminLayout:function(){return J.Me},IsInNocoBaseRecursionFieldContext:function(){return he.$},IsSubPageClosedByPageMenuProvider:function(){return p.oO},Json:function(){return W.Phs},KeepAlive:function(){return J.Ob},LAZY_COMPONENT_KEY:function(){return z.XI},LOADING_DELAY:function(){return te.fw},Layout:function(){return ne.Ar},LayoutContent:function(){return J.bU},List:function(){return W.aVo},LocalDataSource:function(){return v.nC},LocationSearchContext:function(){return p.xJ},Markdown:function(){return W.UGj},MarkdownReadPretty:function(){return W.yq5},MaybeCollectionProvider:function(){return g.bH},Menu:function(){return W.v2r},MenuConfigure:function(){return R.dr},NanoIDInput:function(){return W.HIW},NavigateIfNotSignIn:function(){return xe.vo},NavigateToSigninWithRedirect:function(){return xe.Mv},NocoBaseBuildInPlugin:function(){return b.q},NocoBaseRecursionField:function(){return he.sq},OpenModeProvider:function(){return Te.W},PMPlugin:function(){return ee.Np},Page:function(){return W.T3C},PagePopups:function(){return W.d97},PageTabs:function(){return W.hGv},Pagination:function(){return W.tlE},ParentCollectionFields:function(){return q.cd},Password:function(){return W.rop},Percent:function(){return W.gGi},PermissionContext:function(){return R.Bk},PermissionProvider:function(){return R.Wx},PinnedListPlugin:function(){return F.r1},PinnedPluginList:function(){return F.B$},PinnedPluginListContext:function(){return F.uv},PinnedPluginListProvider:function(){return F.tc},Plugin:function(){return p.Sy},PluginManager:function(){return ee.Q$},PluginManagerLink:function(){return ee.s0},PluginSettingsManager:function(){return p.nS},PopupContextProvider:function(){return Pe.y},PopupSettingsProvider:function(){return W.DBW},PoweredBy:function(){return re.C},Preview:function(){return W.MBS},QuickEdit:function(){return W.pGO},REGEX_OF_VARIABLE:function(){return te.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return te.Bj},Radio:function(){return W.Y8K},ReadPretty:function(){return W.iVT},ReadPrettyRecordPicker:function(){return W.ODP},RecordAssociationBlockInitializer:function(){return q.$i},RecordAssociationDetailsBlockInitializer:function(){return q.Mr},RecordAssociationFormBlockInitializer:function(){return q.EK},RecordAssociationGridCardBlockInitializer:function(){return q.zb},RecordAssociationListBlockInitializer:function(){return q.Ok},RecordContext_deprecated:function(){return oe.rY},RecordFormBlockInitializer:function(){return Ce.se},RecordIndexContext:function(){return oe.Pc},RecordIndexProvider:function(){return oe.li},RecordLink:function(){return g.hD},RecordPicker:function(){return W.lbb},RecordPickerContext:function(){return W.b7w},RecordPickerProvider:function(){return W.sUk},RecordProvider:function(){return oe.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return q.CC},RecordSimpleProvider:function(){return oe.Qh},RefreshComponentProvider:function(){return he.ri},RefreshDataBlockRequest:function(){return W.x1j},RemoteDocumentTitlePlugin:function(){return a.uN},RemoteDocumentTitleProvider:function(){return a.yq},RemoteSchemaComponent:function(){return W.m1v},RemoteSchemaTemplateManagerPlugin:function(){return pe.Wc},RemoteSchemaTemplateManagerProvider:function(){return pe.Jv},RemoteSelect:function(){return W.glM},RemoveButton:function(){return W.xZD},RemoveConditionContext:function(){return W.IuH},RenderChildrenWithAssociationFilter:function(){return g.gY},RequestSettings:function(){return W.MkN},RerenderDataBlockProvider:function(){return v.sI},Resizable:function(){return Ee.ez},RichText:function(){return W.Hof},RoleConfigure:function(){return R.XU},RoleResourceCollectionContext:function(){return R.O9},RoleTable:function(){return R.No},RolesResourcesActions:function(){return R.kF},RouteSchemaComponent:function(){return J.GX},RouterContextCleaner:function(){return p.OW},RouterManager:function(){return p.k2},SNIPPET_PREFIX:function(){return p.MC},SanitizedCollectionProvider:function(){return v.Pd},SchemaComponent:function(){return W.n6},SchemaComponentContext:function(){return W.DDd},SchemaComponentOnChangeContext:function(){return W.ATq},SchemaComponentOptions:function(){return W.G0E},SchemaComponentPlugin:function(){return W.a$w},SchemaComponentProvider:function(){return W.TzZ},SchemaInitializer:function(){return p.Ms},SchemaInitializerActionModal:function(){return p.HS},SchemaInitializerActionModalInternal:function(){return p.IQ},SchemaInitializerChild:function(){return p.yH},SchemaInitializerChildren:function(){return p.E0},SchemaInitializerContext:function(){return p.V4},SchemaInitializerDivider:function(){return p.qU},SchemaInitializerItem:function(){return p.lV},SchemaInitializerItemContext:function(){return p.Mm},SchemaInitializerItemGroup:function(){return p.iP},SchemaInitializerItemGroupInternal:function(){return p.IY},SchemaInitializerItemInternal:function(){return p.VG},SchemaInitializerItems:function(){return p.LU},SchemaInitializerManager:function(){return p.eN},SchemaInitializerMenu:function(){return p.tu},SchemaInitializerMenuProvider:function(){return p.kw},SchemaInitializerOpenModeSchemaItems:function(){return fe.EU},SchemaInitializerPlugin:function(){return q.dH},SchemaInitializerSelect:function(){return p.iW},SchemaInitializerSelectInternal:function(){return p.ud},SchemaInitializerSubMenu:function(){return p.eU},SchemaInitializerSubMenuInternal:function(){return p.xv},SchemaInitializerSwitch:function(){return p._n},SchemaInitializerSwitchInternal:function(){return p.wH},SchemaSettingItemContext:function(){return p.A4},SchemaSettingOpenModeSchemaItems:function(){return fe.HA},SchemaSettings:function(){return p.F5},SchemaSettingsActionLinkItem:function(){return ie.s},SchemaSettingsActionModalItem:function(){return ne.Qh},SchemaSettingsBlockHeightItem:function(){return ne.qf},SchemaSettingsBlockTitleItem:function(){return ne._E},SchemaSettingsCascaderItem:function(){return ne.ns},SchemaSettingsChild:function(){return p.kY},SchemaSettingsChildren:function(){return p.dk},SchemaSettingsConnectDataBlocks:function(){return ne.FE},SchemaSettingsDataScope:function(){return ne.HF},SchemaSettingsDataTemplates:function(){return ne.ON},SchemaSettingsDateFormat:function(){return ne.yu},SchemaSettingsDefaultSortingRules:function(){return ne.y5},SchemaSettingsDefaultValue:function(){return ne.Nn},SchemaSettingsDivider:function(){return ne.Z5},SchemaSettingsDropdown:function(){return ne.cM},SchemaSettingsEnableChildCollections:function(){return ne.L3},SchemaSettingsFixed:function(){return Ee.rI},SchemaSettingsFormItemTemplate:function(){return ne.vC},SchemaSettingsItem:function(){return ne.r2},SchemaSettingsItemGroup:function(){return ne.bw},SchemaSettingsLayoutItem:function(){return ne.JM},SchemaSettingsLinkageRules:function(){return ne.lc},SchemaSettingsManager:function(){return p.XD},SchemaSettingsModalItem:function(){return ne.B0},SchemaSettingsNumberFormat:function(){return ne.wH},SchemaSettingsPlugin:function(){return ne.zM},SchemaSettingsPopupItem:function(){return ne.D3},SchemaSettingsProvider:function(){return ne.Rh},SchemaSettingsRemove:function(){return ne.qx},SchemaSettingsRenderEngine:function(){return ne.cK},SchemaSettingsSelectItem:function(){return ne.Qf},SchemaSettingsSortingRule:function(){return ne.wL},SchemaSettingsSubMenu:function(){return ne.m$},SchemaSettingsSwitchItem:function(){return ne.hj},SchemaSettingsTemplate:function(){return ne.Gk},SchemaSettingsWrapper:function(){return p.GC},SchemaTemplateManagerContext:function(){return pe.Kb},SchemaToolbar:function(){return ne.Mf},SchemaToolbarContext:function(){return p.J1},SchemaToolbarProvider:function(){return p.V$},SchemaToolbarVisibleContext:function(){return ne.dI},ScopeSelect:function(){return R.X$},SearchCollections:function(){return q.zH},SecondConFirm:function(){return W.y00},Select:function(){return W.PhF},SelectActionInitializer:function(){return q.w_},SelectWithTitle:function(){return O.T},SetDataLoadingMode:function(){return Re.jI},SettingCenterPermissionProvider:function(){return R.P2},SettingCenterProvider:function(){return R.S3},SettingsCenterConfigure:function(){return R.H3},SettingsCenterContext:function(){return ee.EV},SettingsCenterDropdown:function(){return ee.zK},SettingsMenu:function(){return xe.Tx},ShowFormData:function(){return W.Cqv},SkipValidation:function(){return W.cof},Sortable:function(){return W.bts},SortableContext:function(){return W.Fop},SortableItem:function(){return W.TRI},SortableProvider:function(){return W.ORg},Space:function(){return W.TaI},StablePopover:function(){return W.qHe},StrategyActions:function(){return R.R6},SubmitActionInitializer:function(){return q.ss},SwitchLanguage:function(){return le.j},SystemSettingsContext:function(){return _e.YO},SystemSettingsPane:function(){return _e.a$},SystemSettingsPlugin:function(){return _e.j8},SystemSettingsProvider:function(){return _e.C6},Table:function(){return W.iA_},TableActionColumnInitializer:function(){return q.VU},TableBlockContext:function(){return g.Hz},TableBlockDesigner:function(){return W.gvM},TableBlockInitializer:function(){return Ee.kD},TableBlockProvider:function(){return g._0},TableColumnSchemaToolbar:function(){return Ee.u6},TableField:function(){return W.SnY},TableFieldContext:function(){return g.Q6},TableFieldProvider:function(){return g.CB},TableFieldResource:function(){return g.Qy},TableSelectorContext:function(){return g.Yu},TableSelectorDesigner:function(){return W.ASv},TableSelectorInitializer:function(){return Oe.S},TableSelectorParamsProvider:function(){return g.Vs},TableSelectorProvider:function(){return g.rL},TableV2:function(){return W.bwk},Tabs:function(){return W.mQc},TabsContextProvider:function(){return W.c__},Templates:function(){return W.QZ3},TestDesigner:function(){return W.L39},TimePicker:function(){return W.jII},TreeSelect:function(){return W.mPs},UnixTimestamp:function(){return W.tgM},Upload:function(){return W.gqx},Uploader:function(){return W.Qm7},Variable:function(){return W._wD},VariableInput:function(){return ne.qj},VariablePopupRecordProvider:function(){return T.Rm},VariableScopeProvider:function(){return W.rjl},VariablesContext:function(){return te.cB},VariablesProvider:function(){return te.Uj},WithoutFormFieldResource:function(){return g.$Y},WithoutTableFieldResource:function(){return g.s},WorkflowConfig:function(){return W.Fjw},actionSettings:function(){return W.SLL},actionSettingsItems:function(){return W.sBv},allowAddNew:function(){return W.iTm},appendQueryStringToUrl:function(){return g.HQ},attachmentFileTypes:function(){return W.BDK},cache:function(){return D.cache},canMakeAssociationBlock:function(){return q.Tc},compatOldTheme:function(){return P.kK},completeURL:function(){return g.jR},compose:function(){return p.qC},createCreateFormBlockUISchema:function(){return Ce.lJ},createDesignable:function(){return W.Pls},createDetailsBlockSchema:function(){return q.e6},createFormActionInitializers:function(){return Ce.nr},createFormActionInitializers_deprecated:function(){return Ce.$G},createFormBlockSchema:function(){return q.NH},createFormBlockSettings:function(){return Ce.K9},createModalSettingsItem:function(){return p.lo},createReadPrettyFormBlockSchema:function(){return q.Uc},createRouterManager:function(){return p.w9},createSelectSchemaSettingsItem:function(){return p.NB},createStyles:function(){return Se.k},createSwitchSettingsItem:function(){return p.HL},createTableBlockSchema:function(){return q.BU},createTableBlockUISchema:function(){return Ee.OO},createTextSettingsItem:function(){return p.yq},css:function(){return D.css},customFormItemInitializers:function(){return q.Ic},customFormItemInitializers_deprecated:function(){return q.Jn},cx:function(){return D.cx},defaultAppComponents:function(){return p.FH},defaultFieldNames:function(){return W.Oxq},defaultInputStyle:function(){return ne.ZL},defaultTheme:function(){return P.uH},editFormBlockSettings:function(){return Ce.rB},fetchTemplateData:function(){return W.WLi},fieldComponentSettingsItem:function(){return v.K0},fieldSettingsFormItem:function(){return Ce.dV},fillParentFields:function(){return g.Xe},filterFormItemSettings:function(){return W.$9M},findByUid:function(){return W.nCn},findFilterTargets:function(){return g.SK},findFormBlock:function(){return g.Fi},findKanbanFormItem:function(){return v.iv},findKeysByUid:function(){return W.iNG},findMenuItem:function(){return W.tD8},findParentFieldSchema:function(){return ne.PO},flush:function(){return D.flush},formActionInitializers:function(){return Ce.vR},formDetailsSettings:function(){return W.pg9},formItemInitializers:function(){return Ce.ex},formItemInitializers_deprecated:function(){return Ce.eh},formItemSettings:function(){return W.Ofb},formSettings:function(){return W.ibf},formV1Settings:function(){return W.WyG},genStyleHook:function(){return W.l6$},getAppends:function(){return g.iF},getAssociationPath:function(){return g.dP},getCardItemSchema:function(){return g.Gn},getCollectionTitle:function(){return ue.A},getCurrentOptions:function(){return W.WGR},getDataSourceHeaders:function(){return v.GX},getDatePickerLabels:function(){return W.C$H},getDateRanges:function(){return W.SET},getFieldDefaultValue:function(){return ne.os},getFormValues:function(){return g.X7},getIdsWithChildren:function(){return g.Ns},getLabelFormatValue:function(){return W.cNQ},getLabelWithTooltip:function(){return ne.rB},getPageSchema:function(){return g.tj},getPopupPathFromParams:function(){return W.NCb},getRegisteredStyles:function(){return D.getRegisteredStyles},getRenderContent:function(){return W.I9l},getShouldChange:function(){return ne.Vc},getStoredPopupContext:function(){return W.XQ2},getSupportFieldsByAssociation:function(){return S.x5},getSupportFieldsByForeignKey:function(){return S.zv},getURLSearchParams:function(){return ne.Uz},getURLSearchParamsChildren:function(){return ne.n9},getVariablesFromExpression:function(){return te.fN},gridRowColWrap:function(){return q.BM},handleDateChangeOnForm:function(){return W.MDU},hasIcon:function(){return B.OL},hydrate:function(){return D.hydrate},i18n:function(){return I.a},icons:function(){return B.ci},inferPickerType:function(){return W.CEH},injectGlobal:function(){return D.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return ne.TU},isAssocField:function(){return S.$f},isBulkEditAction:function(){return W.vUN},isFileCollection:function(){return W.ZZb},isInFilterFormBlock:function(){return S.Op},isInitializersSame:function(){return p.h6},isMobile:function(){return W.tqC},isPatternDisabled:function(){return ne.VZ},isSameCollection:function(){return S.yr},isShowFilePicker:function(){return W.elO},isSystemField:function(){return ne.Mq},isTabPage:function(){return W.CfU},isTitleField:function(){return v.Yj},isVariable:function(){return te.cG},itemsMerge:function(){return q.Z_},keyframes:function(){return D.keyframes},languageCodes:function(){return L.m9},lazy:function(){return z.Vo},locale:function(){return L.ZP},mapDatePicker:function(){return W.LPx},mapRangePicker:function(){return W.fY6},mapTimeFormat:function(){return W.Vm},merge:function(){return D.merge},mergeFilter:function(){return S.EO},mockAPIClient:function(){return de.G},moment2str:function(){return W.w_o},navigateToTab:function(){return W.SJF},navigateWithinSelf:function(){return g.nl},normalizeContainer:function(){return p.pn},pageSettings:function(){return W._Ko},pageTabSettings:function(){return W.Mev},parseVariablesAndChangeParamsToQueryString:function(){return g._f},readPrettyFormSettings:function(){return W.i2K},recordBlockInitializers:function(){return q.vV},recordBlockInitializers_deprecated:function(){return q.Sq},recursiveParent:function(){return g.zA},reduceValueSize:function(){return g.ID},registerIcon:function(){return B.q5},registerIcons:function(){return B.fm},removeNullCondition:function(){return W.WmO},replaceVariableValue:function(){return g.UY},requestParentRecordData:function(){return v.H0},schemaSettingsLabelLayout:function(){return ne.ut},setDataLoadingModeSettingsItem:function(){return Re.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return ne.rf},setTheDataScopeSchemaSettingsItem:function(){return ne.aP},sheet:function(){return D.sheet},splitWrapSchema:function(){return W.oBi},storePopupContext:function(){return W.hKP},subTableActionInitializers:function(){return q.U2},subTableActionInitializers_deprecated:function(){return q.o_},systemKeys:function(){return ne.ob},tabPaneInitializers:function(){return q.$T},tabPaneInitializersForBulkEditFormBlock:function(){return q.zg},tabPaneInitializersForRecordBlock:function(){return q.d4},tabPaneInitializers_deprecated:function(){return q.xc},tableActionColumnInitializers:function(){return Ee.Rp},tableActionColumnInitializers_deprecated:function(){return Ee.Xe},tableActionInitializers:function(){return Ee.H1},tableActionInitializers_deprecated:function(){return Ee.EG},tableBlockSettings:function(){return Ee.Oe},tableColumnInitializers:function(){return Ee.Ug},tableColumnInitializers_deprecated:function(){return Ee.T$},tableColumnSettings:function(){return Ee.FY},tableSelectorBlockSettings:function(){return Oe.v},transformToFilter:function(){return S.jE},transformVariableValue:function(){return te.J8},tval:function(){return I.v},updateFilterTargets:function(){return g.iJ},updateFormActionInitializers:function(){return Ce.SW},updateFormActionInitializers_deprecated:function(){return Ce.Cw},useACLActionParamsContext:function(){return R.Hq},useACLContext:function(){return R.TR},useACLFieldWhitelist:function(){return R.Aj},useACLRoleContext:function(){return R.ov},useACLRolesCheck:function(){return R.xd},useAPIClient:function(){return w.LY},useAPITokenVariable:function(){return ne.IG},useActionAvailable:function(){return Re.vn},useActionBarContext:function(){return W.DU1},useActionContext:function(){return W.XCj},useAdminSchemaUid:function(){return t.W},useAllCollectionsInheritChainGetter:function(){return v.Uv},useApp:function(){return p.qD},useAppLangContext:function(){return Z.GW},useAppSpin:function(){return p.rM},useAriaAttributeOfMenuItem:function(){return p.ne},useAssociatedFields:function(){return S.Fp},useAssociatedFormItemInitializerFields:function(){return q.hg},useAssociatedTableColumnInitializerFields:function(){return q.V0},useAssociationCreateActionProps:function(){return g.Yo},useAssociationFieldContext:function(){return W.KyD},useAssociationFieldModeContext:function(){return W.Vpg},useAssociationFilterBlockProps:function(){return g._S},useAssociationFilterProps:function(){return g.rD},useAssociationName:function(){return v.Xo},useAssociationNames:function(){return g.P_},useAsyncData:function(){return A.w3},useAttach:function(){return W.lIL},useBackButton:function(){return W.KxP},useBaseVariable:function(){return ne.zI},useBlockAssociationContext:function(){return g.DD},useBlockContext:function(){return g.VG},useBlockHeight:function(){return W.hi9},useBlockHeightProps:function(){return g.gp},useBlockRequestContext:function(){return g.BU},useBlockResource:function(){return g.lT},useBlockTemplateContext:function(){return pe.rE},useBuiltinVariables:function(){return te.L7},useBulkDestroyActionProps:function(){return g.ns},useCloseAction:function(){return W.p27},useCollectValuesToSubmit:function(){return g.hu},useCollection:function(){return v.Kx},useCollectionDataSourceItems:function(){return q.HD},useCollectionField:function(){return v.Hy},useCollectionFields:function(){return v.ge},useCollectionManager:function(){return v.d9},useCollectionParentRecord:function(){return v.RA},useCollectionParentRecordData:function(){return v.Kv},useCollectionRecord:function(){return v.oV},useCollectionRecordData:function(){return v.nE},useCollectionState:function(){return ne.IO},useCollections:function(){return v.bX},useColumnSchema:function(){return W.z9d},useCompatOldVariables:function(){return ne.b1},useCompile:function(){return W.eJW},useComponent:function(){return W.Cor},useContextVariable:function(){return te.Ym},useCreateActionProps:function(){return g.cD},useCreateAssociationDetailsBlock:function(){return q.Dc},useCreateAssociationDetailsWithoutPagination:function(){return q.yZ},useCreateAssociationFormBlock:function(){return q.Qr},useCreateAssociationGridCardBlock:function(){return q.yG},useCreateAssociationListBlock:function(){return q.R_},useCreateAssociationTableBlock:function(){return q.Rm},useCreateEditFormBlock:function(){return Ce.$R},useCreateFormBlock:function(){return Ce.kQ},useCreateTableBlock:function(){return Ee.Ez},useCurrentAppInfo:function(){return $._S},useCurrentDocumentTitle:function(){return a.AL},useCurrentPageUid:function(){return p.Rx},useCurrentPopupContext:function(){return W.Zmk},useCurrentPopupRecord:function(){return T.Sw},useCurrentRoleVariable:function(){return ne.KR},useCurrentRoles:function(){return xe.ih},useCurrentSchema:function(){return q.pZ},useCurrentSearchParams:function(){return p.r_},useCurrentTabUid:function(){return p.zJ},useCurrentUserContext:function(){return xe.OP},useCurrentUserSettingsMenu:function(){return xe.t$},useCurrentUserVariable:function(){return ne.AO},useCustomizeBulkUpdateActionProps:function(){return g.UQ},useCustomizeRequestActionProps:function(){return g.xx},useCustomizeUpdateActionProps:function(){return g.X0},useDataBlock:function(){return v.eS},useDataBlockHeight:function(){return W.aZq},useDataBlockParentRecord:function(){return g.M_},useDataBlockProps:function(){return v.zh},useDataBlockRequest:function(){return v.hS},useDataBlockRequestData:function(){return v.xQ},useDataBlockRequestGetter:function(){return v.Pt},useDataBlockResource:function(){return v.wb},useDataLoadingMode:function(){return Re.tU},useDataSource:function(){return v.wl},useDataSourceHeaders:function(){return v.on},useDataSourceKey:function(){return v.FC},useDataSourceManager:function(){return v.fp},useDataTemplates:function(){return ne.dD},useDatePickerContext:function(){return W.P1D},useDateVariable:function(){return ne.ds},useDatetimeVariable:function(){return ne.Ld},useDatetimeVariableContext:function(){return ne.FB},useDesignable:function(){return W.ngQ},useDesigner:function(){return W.ett},useDestroyActionProps:function(){return g.z2},useDetailsBlockContext:function(){return g.nT},useDetailsBlockProps:function(){return g.BX},useDetailsDecoratorProps:function(){return Re.dS},useDetailsPaginationProps:function(){return g.bF},useDetailsParentRecord:function(){return Re.jM},useDetailsProps:function(){return Re.os},useDetailsWithPaginationBlockParams:function(){return Re.ln},useDetailsWithPaginationDecoratorProps:function(){return Re.ec},useDetailsWithPaginationProps:function(){return Re.tm},useDisassociateActionProps:function(){return g.ii},useDocumentTitle:function(){return a.jr},useDownloadLogs:function(){return W.ySm},useEnsureOperatorsValid:function(){return W.Zd$},useExtendCollections:function(){return v.P5},useFieldComponentName:function(){return O.W},useFieldComponentOptions:function(){return W.cLh},useFieldMode:function(){return W.baz},useFieldModeOptions:function(){return W.fde},useFieldNames:function(){return W.Xdt},useFieldProps:function(){return W.Cld},useFieldTitle:function(){return W.vH8},useFilterAPI:function(){return S.hi},useFilterActionProps:function(){return W.PLH},useFilterBlock:function(){return S.kO},useFilterBlockActionProps:function(){return g.Oy},useFilterByTk:function(){return g.C},useFilterFieldOptions:function(){return W.V8t},useFilterFieldProps:function(){return W.tMk},useFilterOptions:function(){return W.xQm},useFindComponent:function(){return W.sRe},useFlag:function(){return V.P5},useFormActiveFields:function(){return g.zj},useFormBlockContext:function(){return g.bz},useFormBlockProps:function(){return g._$},useFormBlockType:function(){return g.th},useFormDataTemplates:function(){return W.U1u},useFormFieldContext:function(){return g.e$},useFormFieldProps:function(){return g.GK},useFormItemInitializerFields:function(){return q.I_},useGetAriaLabelOfAction:function(){return W.HS$},useGetAriaLabelOfDesigner:function(){return ne.zf},useGetAriaLabelOfDrawer:function(){return W.vBu},useGetAriaLabelOfModal:function(){return W.QYZ},useGetAriaLabelOfPopover:function(){return W.t9d},useGetFilterFieldOptions:function(){return W.Kgy},useGetFilterOptions:function(){return W.aJ2},useGetSchemaInitializerMenuItems:function(){return p.bw},useGlobalTheme:function(){return P.mg},useGridContext:function(){return W.n14},useGridRowContext:function(){return W.DiB},useInheritsTableColumnInitializerFields:function(){return q.yi},useIsAddNewForm:function(){return W.l1O},useIsAdminPage:function(){return p.mI},useIsAllowToSetDefaultValue:function(){return ne.SF},useIsAssociationField:function(){return W.w5o},useIsDetailBlock:function(){return g.WG},useIsFieldReadPretty:function(){return W.p3Q},useIsFileField:function(){return W.G5e},useIsFormReadPretty:function(){return W.xj2},useIsInSettingsPage:function(){return p.Bb},useIsSelectFieldMode:function(){return W.rxY},useIsSubPageClosedByPageMenu:function(){return p.ce},useLabelUiSchema:function(){return W.Ils},useLazy:function(){return z.lN},useLinkActionProps:function(){return g.ee},useLinkageAction:function(){return W.zCB},useLocalVariables:function(){return te.Kp},useLocationNoUpdate:function(){return p.fj},useLocationSearch:function(){return p.HU},useMatchAdmin:function(){return p.xi},useMatchAdminName:function(){return p.tJ},useMenuSearch:function(){return q.jA},useNavigateNoUpdate:function(){return p.WO},useOpenModeContext:function(){return Te.B},useOptionalFieldList:function(){return g.Lh},useParamsFromRecord:function(){return g.MM},useParentCollection:function(){return v.lb},useParentRecordCommon:function(){return Ae._},useParseDataScopeFilter:function(){return ne._Y},useParseURLAndParams:function(){return g.VC},useParsedFilter:function(){return g.vs},usePickActionProps:function(){return g.St},usePlugin:function(){return p.j7},usePopupSettings:function(){return W.a4r},usePopupUtils:function(){return ye.E},usePopupVariable:function(){return ne.AJ},usePopupVariableContext:function(){return ne.gG},useProps:function(){return W.wNf},useRecord:function(){return oe.a},useRecordCollectionDataSourceItems:function(){return q.bQ},useRecordIndex:function(){return oe.pW},useRecordIsOwn:function(){return oe.Px},useRecordPkValue:function(){return R.Jn},useRefreshActionProps:function(){return g.Xk},useRefreshFieldSchema:function(){return he.gR},useRemoveActionProps:function(){return g.PJ},useRemoveGridFormItem:function(){return q.EY},useRequest:function(){return w.QT},useRerenderDataBlock:function(){return v.Rr},useResetBlockActionProps:function(){return g.NP},useResource:function(){return w.Wf},useRoleRecheck:function(){return R.fG},useRoleVariable:function(){return ne.bs},useRolesResourcesScopesSelectedRowKeys:function(){return R.cm},useRouter:function(){return p.tv},useRouterBasename:function(){return p.hZ},useSchemaComponentContext:function(){return W.Dmu},useSchemaInitializer:function(){return p.q_},useSchemaInitializerItem:function(){return p.UR},useSchemaInitializerMenuItems:function(){return p.hL},useSchemaInitializerRender:function(){return p.IU},useSchemaInitializerStyles:function(){return p._$},useSchemaInitializerSubMenuContext:function(){return p.vH},useSchemaOptionsContext:function(){return W.Bsl},useSchemaSettings:function(){return ne.DD},useSchemaSettingsItem:function(){return p.J$},useSchemaSettingsRender:function(){return p.mQ},useSchemaTemplate:function(){return pe.zy},useSchemaTemplateManager:function(){return pe.$t},useSchemaToolbar:function(){return p.Po},useSchemaToolbarRender:function(){return p.du},useSourceId:function(){return Re.GL},useSourceIdFromParentRecord:function(){return g.m},useSourceIdFromRecord:function(){return g.e0},useStyles:function(){return W.yKv},useSupportedBlocks:function(){return S.Um},useSyncFromForm:function(){return ne.F1},useSystemSettings:function(){return _e.HX},useTableBlockContext:function(){return g.Si},useTableBlockContextBasicValue:function(){return g.bE},useTableBlockDecoratorProps:function(){return Ee.cL},useTableBlockParams:function(){return Ee.lo},useTableBlockProps:function(){return Ee.GK},useTableColumnInitializerFields:function(){return q.bJ},useTableFieldContext:function(){return g.Wx},useTableFieldProps:function(){return g.oA},useTableSelectorContext:function(){return g.CL},useTableSelectorProps:function(){return g.RP},useTableSize:function(){return W.fMB},useTabsContext:function(){return W.gCg},useTitleFieldOptions:function(){return W.eT6},useToken:function(){return Se.d},useUIConfigurationPermissions:function(){return R.mR},useURLAndHTMLSchema:function(){return Y.R},useURLSearchParamsCtx:function(){return ne.MD},useURLSearchParamsVariable:function(){return ne.F5},useUpdateActionProps:function(){return g.HD},useUploadStyles:function(){return W.$SN},useUserVariable:function(){return ne.KD},useValidateSchema:function(){return W.q4O},useVariableOptions:function(){return ne.Y5},useVariableScope:function(){return W.ymE},useVariables:function(){return te.OQ},useViewport:function(){return t.S},useZIndexContext:function(){return W.uqQ},withDynamicSchemaProps:function(){return X.t},withInitializer:function(){return p.W_},withSearchParams:function(){return W.Q3P},withSkeletonComponent:function(){return ve.C},zIndexContext:function(){return W.K5K}});var H=e(66607),u=e.n(H),k=e(79212),c=e.n(k),E=e(37412),x=e.n(E),K=e(59542),o=e.n(K),N=e(96036),m=e.n(N),y=e(96671),f=e.n(y),M=e(70178),n=e.n(M),r=e(72540),d=e.n(r),h=e(90844),C=e(14994),D=e(97133),R=e(47646),Z=e(75599),w=e(12174),$=e(80347),p=e(29939),A=e(26124),g=e(67174),i=e(6145),G={};for(var j in i)["default","locale","withDynamicSchemaProps","withSkeletonComponent","SchemaSettingsActionLinkItem","useURLAndHTMLSchema","OpenModeProvider","useOpenModeContext","PopupContextProvider","usePopupUtils","SwitchLanguage","VariablePopupRecordProvider","useCurrentPopupRecord","languageCodes","CollectionFieldUISchemaProvider","IsInNocoBaseRecursionFieldContext","NocoBaseRecursionField","RefreshComponentProvider","useRefreshFieldSchema","cache","css","cx","flush","getRegisteredStyles","hydrate","injectGlobal","keyframes","merge","sheet","ACLActionParamsContext","ACLActionProvider","ACLCollectionFieldProvider","ACLCollectionProvider","ACLContext","ACLCustomContext","ACLMenuItemProvider","ACLPane","ACLPlugin","ACLProvider","ACLRolesCheckProvider","MenuConfigure","PermissionContext","PermissionProvider","RoleConfigure","RoleResourceCollectionContext","RoleTable","RolesResourcesActions","ScopeSelect","SettingCenterPermissionProvider","SettingCenterProvider","SettingsCenterConfigure","StrategyActions","useACLActionParamsContext","useACLContext","useACLFieldWhitelist","useACLRoleContext","useACLRolesCheck","useRecordPkValue","useRoleRecheck","useRolesResourcesScopesSelectedRowKeys","useUIConfigurationPermissions","AntdConfigPlugin","AntdConfigProvider","AppLangContext","useAppLangContext","APIClient","APIClientContext","APIClientProvider","useAPIClient","useRequest","useResource","CurrentAppInfoContext","CurrentAppInfoProvider","useCurrentAppInfo","ADMIN_SETTINGS_KEY","ADMIN_SETTINGS_PATH","AppComponent","Application","ApplicationContext","BlankComponent","CompatibleSchemaInitializer","CurrentPageUidContext","CurrentPageUidProvider","CurrentTabUidContext","CurrentTabUidProvider","CustomRouterContextProvider","IsSubPageClosedByPageMenuProvider","LocationSearchContext","Plugin","PluginSettingsManager","RouterContextCleaner","RouterManager","SNIPPET_PREFIX","SchemaInitializer","SchemaInitializerActionModal","SchemaInitializerActionModalInternal","SchemaInitializerChild","SchemaInitializerChildren","SchemaInitializerContext","SchemaInitializerDivider","SchemaInitializerItem","SchemaInitializerItemContext","SchemaInitializerItemGroup","SchemaInitializerItemGroupInternal","SchemaInitializerItemInternal","SchemaInitializerItems","SchemaInitializerManager","SchemaInitializerMenu","SchemaInitializerMenuProvider","SchemaInitializerSelect","SchemaInitializerSelectInternal","SchemaInitializerSubMenu","SchemaInitializerSubMenuInternal","SchemaInitializerSwitch","SchemaInitializerSwitchInternal","SchemaSettingItemContext","SchemaSettings","SchemaSettingsChild","SchemaSettingsChildren","SchemaSettingsManager","SchemaSettingsWrapper","SchemaToolbarContext","SchemaToolbarProvider","compose","createModalSettingsItem","createRouterManager","createSelectSchemaSettingsItem","createSwitchSettingsItem","createTextSettingsItem","defaultAppComponents","isInitializersSame","normalizeContainer","useApp","useAppSpin","useAriaAttributeOfMenuItem","useCurrentPageUid","useCurrentSearchParams","useCurrentTabUid","useGetSchemaInitializerMenuItems","useIsAdminPage","useIsInSettingsPage","useIsSubPageClosedByPageMenu","useLocationNoUpdate","useLocationSearch","useMatchAdmin","useMatchAdminName","useNavigateNoUpdate","usePlugin","useRouter","useRouterBasename","useSchemaInitializer","useSchemaInitializerItem","useSchemaInitializerMenuItems","useSchemaInitializerRender","useSchemaInitializerStyles","useSchemaInitializerSubMenuContext","useSchemaSettingsItem","useSchemaSettingsRender","useSchemaToolbar","useSchemaToolbarRender","withInitializer","AsyncDataContext","AsyncDataProvider","useAsyncData","BlockAssociationContext","BlockContext","BlockProvider","BlockRequestContext_deprecated","BlockRequestProvider_deprecated","BlockResourceContext","BlockSchemaComponentPlugin","BlockSchemaComponentProvider","DetailsBlockContext","DetailsBlockProvider","FilterFormBlockProvider","FormActiveFieldsProvider","FormBlockContext","FormBlockProvider","FormFieldContext","FormFieldProvider","MaybeCollectionProvider","RecordLink","RenderChildrenWithAssociationFilter","TableBlockContext","TableBlockProvider","TableFieldContext","TableFieldProvider","TableFieldResource","TableSelectorContext","TableSelectorParamsProvider","TableSelectorProvider","WithoutFormFieldResource","WithoutTableFieldResource","appendQueryStringToUrl","completeURL","fillParentFields","findFilterTargets","findFormBlock","getAppends","getAssociationPath","getCardItemSchema","getFormValues","getIdsWithChildren","getPageSchema","navigateWithinSelf","parseVariablesAndChangeParamsToQueryString","recursiveParent","reduceValueSize","replaceVariableValue","updateFilterTargets","useAssociationCreateActionProps","useAssociationFilterBlockProps","useAssociationFilterProps","useAssociationNames","useBlockAssociationContext","useBlockContext","useBlockHeightProps","useBlockRequestContext","useBlockResource","useBulkDestroyActionProps","useCollectValuesToSubmit","useCreateActionProps","useCustomizeBulkUpdateActionProps","useCustomizeRequestActionProps","useCustomizeUpdateActionProps","useDataBlockParentRecord","useDestroyActionProps","useDetailsBlockContext","useDetailsBlockProps","useDetailsPaginationProps","useDisassociateActionProps","useFilterBlockActionProps","useFilterByTk","useFormActiveFields","useFormBlockContext","useFormBlockProps","useFormBlockType","useFormFieldContext","useFormFieldProps","useIsDetailBlock","useLinkActionProps","useOptionalFieldList","useParamsFromRecord","useParseURLAndParams","useParsedFilter","usePickActionProps","useRefreshActionProps","useRemoveActionProps","useResetBlockActionProps","useSourceIdFromParentRecord","useSourceIdFromRecord","useTableBlockContext","useTableBlockContextBasicValue","useTableFieldContext","useTableFieldProps","useTableSelectorContext","useTableSelectorProps","useUpdateActionProps"].indexOf(j)<0&&(G[j]=function(De){return i[De]}.bind(0,j));e.d(se,G);var O=e(7737),l=e(20085),v=e(94804),a=e(69803),S=e(18386),V=e(53285),P=e(69962),t=e(29392),I=e(58384),B=e(82369),z=e(98902),L=e(35310),b=e(7825),F=e(52817),ee=e(65213),re=e(53181),oe=e(36586),J=e(71461),W=e(64774),q=e(63193),fe=e(90810),ne=e(83880),pe=e(15195),Se=e(39863),_e=e(15585),de=e(16779),xe=e(95882),te=e(64910),X=e(15503),ve=e(83335),ie=e(29245),Y=e(83954),ue=e(16966),Ce=e(67565),Ee=e(77681),Oe=e(75145),Re=e(56995),Ae=e(92700),Te=e(39270),Pe=e(74483),ye=e(23048),le=e(71098),T=e(73691),he=e(57105)},98902:function(ze,se,e){"use strict";e.d(se,{Vo:function(){return m},XI:function(){return N},lN:function(){return y}});var H=e(97857),u=e.n(H),k=e(67294),c=e(57953),E=e(96486),x=e.n(E),K=e(97289),o=e(85893),N=Symbol("LAZY_COMPONENT_KEY");function m(f){for(var M=arguments.length,n=new Array(M>1?M-1:0),r=1;r<M;r++)n[r-1]=arguments[r];if(n.length===0){var d=(0,k.lazy)(function(){return f().then(function(C){var D=C.default;return h[N]=D,{default:D}})}),h=function(D){return(0,o.jsx)(k.Suspense,{fallback:(0,o.jsx)(c.Z,{}),children:(0,o.jsx)(d,u()({},D))})};return h}return n.reduce(function(C,D){var R=(0,k.lazy)(function(){return f().then(function(Z){var w=(0,E.get)(Z,D);return C[D][N]=w,{default:w}})});return C[D]=function(Z){return(0,o.jsx)(k.Suspense,{fallback:(0,o.jsx)(c.Z,{}),children:(0,o.jsx)(R,u()({},Z))})},C},{})}function y(f,M){var n=typeof M=="function"?M:function(h){return h[M]},r=(0,K.I6)(f);if(!r.payload)throw new Promise(function(h,C){r.loadIfNeeded(),r.resolution.then(h).catch(C)});var d=n(r.payload);return d}},35310:function(ze,se,e){"use strict";e.d(se,{m9:function(){return u},yx:function(){return H}});var H={"ar-EG":"ar","az-AZ":"az","bg-BG":"bg","bn-BD":"bn-bd","by-BY":"en","ca-ES":"ca","cs-CZ":"cs","da-DK":"da","de-DE":"de","el-GR":"el","en-GB":"en-gb","en-US":"en","es-ES":"es","et-EE":"et","fa-IR":"fa","fi-FI":"fi","fr-BE":"fr","fr-CA":"fr","fr-FR":"fr","ga-IE":"ga","gl-ES":"gl","he-IL":"he","hi-IN":"hi","hr-HR":"hr","hu-HU":"hu","hy-AM":"hy-am","id-ID":"id","is-IS":"is","it-IT":"it","ja-JP":"ja","ka-GE":"ka","kk-KZ":"kk","km-KH":"km","kn-IN":"kn","ko-KR":"ko","ku-IQ":"ku","lt-LT":"lt","lv-LV":"lv","mk-MK":"mk","ml-IN":"ml","mn-MN":"mn","ms-MY":"ms","nb-NO":"nb","ne-NP":"ne","nl-BE":"nl-be","nl-NL":"nl","pl-PL":"pl","pt-BR":"pt-br","pt-PT":"pt","ro-RO":"ro","ru-RU":"ru","si-LK":"si","sk-SK":"sk","sl-SI":"sl","sr-RS":"sr","sv-SE":"sv","ta-IN":"ta","th-TH":"th","tk-TK":"tk","tr-TR":"tr","uk-UA":"uk","ur-PK":"ur","vi-VN":"vi","zh-CN":"zh-cn","zh-HK":"zh-hk","zh-TW":"zh-tw"},u={"ar-EG":{label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},"az-AZ":{label:"Az\u0259rbaycan dili"},"bg-BG":{label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},"bn-BD":{label:"Bengali"},"by-BY":{label:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456"},"ca-ES":{label:"\u0421atal\xE0/Espanya"},"cs-CZ":{label:"\u010Cesky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xF1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"\u0641\u0627\u0631\u0633\u06CC"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xE7ais(BE)"},"fr-CA":{label:"Fran\xE7ais(CA)"},"fr-FR":{label:"Fran\xE7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"\u05E2\u05D1\u05E8\u05D9\u05EA"},"hi-IN":{label:"\u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xCDslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"\u65E5\u672C\u8A9E"},"ka-GE":{label:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"},"kk-KZ":{label:"\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"},"km-KH":{label:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},"kn-IN":{label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"},"ko-KR":{label:"\uD55C\uAD6D\uC5B4"},"ku-IQ":{label:"\u06A9\u0648\u0631\u062F\u06CC"},"lt-LT":{label:"lietuvi\u0173"},"lv-LV":{label:"Latvie\u0161u valoda"},"mk-MK":{label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A"},"ml-IN":{label:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"},"mn-MN":{label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},"ms-MY":{label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648"},"nb-NO":{label:"Norsk bokm\xE5l"},"ne-NP":{label:"\u0928\u0947\u092A\u093E\u0932\u0940"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xEAs brasileiro"},"pt-PT":{label:"Portugu\xEAs"},"ro-RO":{label:"Rom\xE2nia"},"ru-RU":{label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},"si-LK":{label:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"},"sk-SK":{label:"Sloven\u010Dina"},"sl-SI":{label:"Sloven\u0161\u010Dina"},"sr-RS":{label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xFCrk\xE7e"},"uk-UA":{label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},"ur-PK":{label:"O\u02BBzbekcha"},"vi-VN":{label:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{label:"\u7B80\u4F53\u4E2D\u6587"},"zh-HK":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u9999\u6E2F\uFF09"},"zh-TW":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u6E7E\uFF09"}};se.ZP=u},29245:function(ze,se,e){"use strict";e.d(se,{f:function(){return R},s:function(){return D}});var H=e(9783),u=e.n(H),k=e(97857),c=e.n(k),E=e(5552),x=e(80844),K=e(96486),o=e.n(K),N=e(67294),m=e(26793),y=e(21143),f=e(29939),M=e(91410),n=e(6145),r=e(55642),d=e(83880),h=e(83954),C=e(85893),D=function(){var w=(0,x.useField)(),$=(0,x.useFieldSchema)(),p=(0,y.useDesignable)(),A=p.dn,g=(0,m.$)(),i=g.t,G=(0,h.R)(),j=G.urlSchema,O=G.paramsSchema,l=G.openInNewWindowSchema,v=$["x-component-props"]||{},a={url:v.url,params:v.params||[{}],openInNewWindow:v.openInNewWindow};return(0,C.jsx)(d.B0,{title:i("Edit link"),components:{ArrayItems:E.ArrayItems},schema:{type:"object",title:i("Edit link"),properties:{url:c()(c()({},j),{},{required:!0}),params:O,openInNewWindow:l}},onSubmit:function(V){var P,t=V.url,I=V.params,B=V.openInNewWindow;v.url=t,v.params=I,v.openInNewWindow=B,$["x-component-props"]=v,w.componentProps.url=t,w.componentProps.params=I,w.componentProps.openInNewWindow=B,A.emit("patch",{schema:(P={},u()(P,"x-uid",$["x-uid"]),u()(P,"x-component-props",v),P)}),A.refresh()},initialValues:a})},R=new M.F({name:"actionSettings:link",items:[{name:"editButton",Component:r.C1,useComponentProps:function(){var w=(0,f.Po)(),$=w.buttonEditorProps;return $}},{name:"editLink",Component:D},{name:"linkageRules",Component:d.lc,useVisible:function(){var w=(0,y.useCollectionRecord)();return!o().isEmpty(w==null?void 0:w.data)},useComponentProps:function(){var w=(0,n.useCollection_deprecated)(),$=w.name,p=(0,f.Po)(),A=p.linkageRulesProps;return c()(c()({},A),{},{collectionName:$})}},{name:"remove",sort:100,Component:r.xZ,useComponentProps:function(){var w=(0,f.Po)(),$=w.removeButtonProps;return $}}]})},83954:function(ze,se,e){"use strict";e.d(se,{R:function(){return d}});var H=e(68400),u=e.n(H),k=e(97857),c=e.n(k),E=e(97133),x=e(80844),K=e(67294),o=e(26793),N=e(7340),m=e(36586),y=e(35115),f=e(54885),M=e(85893),n,r=function(C){return function(D){var R=(0,x.useFieldSchema)(),Z=(0,N.bz)(),w=Z.form,$=(0,m.a)(),p=(0,f.Y)({collectionField:{uiSchema:R},form:w,record:$,uiSchema:R,noDisabled:!0});return(0,M.jsx)(C,c()(c()({},D),{},{scope:p}))}},d=function(){var C=(0,o.$)(),D=C.t,R=(0,K.useMemo)(function(){return r(y._w.TextArea)},[]),Z=(0,K.useMemo)(function(){return{title:D("URL"),type:"string","x-decorator":"FormItem","x-component":R,description:D("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[D,R]),w=(0,K.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:D("URL")},{value:"html",label:D("HTML")}]}},[D]),$=(0,K.useMemo)(function(){return{title:D("html"),type:"string","x-decorator":"FormItem","x-component":r(y._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[D]),p=(0,K.useMemo)(function(){return{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,E.css)(n||(n=u()([`
117
+ `])))},"x-component":D,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},w=function(){for(var p={},A=arguments.length,g=new Array(A),i=0;i<A;i++)g[i]=arguments[i];for(var G=0,j=g;G<j.length;G++){var O=j[G];Z[O]&&(p[O]=Z[O])}return p}},44605:function(){},53772:function(){},99899:function(ze,se,e){"use strict";e.d(se,{U:function(){return H},l:function(){return u}});function H(k){var c;if(!k)return[];var E=k.split(":"),x=E.pop(),K=(c=E[0])!==null&&c!==void 0?c:"main";return[K,x]}function u(k,c){return!k||k==="main"?c:"".concat(k,":").concat(c)}},5346:function(ze,se,e){"use strict";e.d(se,{T:function(){return x}});var H=e(5574),u=e.n(H),k=e(34041),c=e(67294),E=e(85893);function x(K){var o=K.title,N=K.defaultValue,m=K.onChange,y=K.options,f=K.fieldNames,M=(0,c.useState)(!1),n=u()(M,2),r=n[0],d=n[1],h=(0,c.useRef)(null);return(0,E.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(D){D.stopPropagation(),d(function(R){return!R})},onMouseLeave:function(){h.current=setTimeout(function(){d(!1)},200)},children:[o,(0,E.jsx)(k.default,{open:r,"data-testid":"select-".concat(o),popupMatchSelectWidth:!1,bordered:!1,defaultValue:N,onChange:m,popupClassName:"select-popup-".concat(o.replaceAll(" ","-")),fieldNames:f,options:y,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(h.current)}})]})}},7737:function(ze,se,e){"use strict";e.d(se,{T:function(){return H.T},W:function(){return u.W}});var H=e(5346),u=e(56318)},56318:function(ze,se,e){"use strict";e.d(se,{W:function(){return E}});var H=e(80844),u=e(67668),k=e(38752),c=e(81230);function E(){var x,K,o,N,m=(0,c.z9)(),y=m.fieldSchema,f=m.collectionField,M=(0,H.useField)(),n=(0,k.G5)(),r=(0,H.useFieldSchema)(),d=(0,u.Hy)(),h=y||r,C=f||d,D={AssociationField:"Select"},R=(h==null||(x=h["x-component-props"])===null||x===void 0?void 0:x.mode)||(M==null||(K=M.componentProps)===null||K===void 0?void 0:K.mode)||(n?"FileManager":"")||(h==null||(o=h["x-component-props"])===null||o===void 0?void 0:o.component)||(C==null||(N=C.uiSchema)===null||N===void 0?void 0:N["x-component"]);return D[R]||R}},52967:function(ze,se,e){"use strict";e.d(se,{e:function(){return u}});var H=e(67294),u=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=(0,H.useRef)(0);return(0,H.useEffect)(function(){var x=function(o){var N=o.clientY,m=Math.max(N,window.innerHeight-N);E.current=m};return window.addEventListener("mousemove",x),function(){window.removeEventListener("mousemove",x)}},[]),(0,H.useMemo)(function(){return E.current-40},c)}},20085:function(ze,se,e){"use strict";e.d(se,{O:function(){return x}});var H=e(10274),u=e(67294),k=e(69962),c=e(68230),E=function(o){var N=o.children,m=(0,c.d)(),y=m.token,f=y.colorFillTertiary,M=new H.C(y.colorFill).onBackground(y.colorFillSecondary).toHexShortString(),n=new H.C(y.colorFill).onBackground(y.colorFill).toHexShortString(),r=new H.C(y.colorFill).onBackground(y.colorFill).onBackground(y.colorFill).toHexShortString();return(0,u.useEffect)(function(){document.body.style.setProperty("--nb-spacing","".concat(y.marginLG,"px")),document.body.style.setProperty("--nb-designer-offset","".concat(y.marginXS,"px")),document.body.style.setProperty("--nb-header-height","".concat(y.sizeXXL-2,"px")),document.body.style.setProperty("--nb-box-bg",y.colorBgLayout),document.body.style.setProperty("--nb-box-bg",y.colorBgLayout),document.body.style.setProperty("--controlHeightLG","".concat(y.controlHeightLG,"px")),document.body.style.setProperty("--paddingContentVerticalSM","".concat(y.paddingContentVerticalSM,"px")),document.body.style.setProperty("--marginSM","".concat(y.marginSM,"px")),document.body.style.setProperty("--colorInfoBg",y.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",y.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",y.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",y.colorWarningBorder),document.body.style.setProperty("--colorText",y.colorText),document.body.style.setProperty("--colorPrimaryText",y.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",y.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",y.colorPrimaryTextHover),document.body.style.setProperty("--colorBgScrollTrack",f),document.body.style.setProperty("--colorBgScrollBar",M),document.body.style.setProperty("--colorBgScrollBarHover",n),document.body.style.setProperty("--colorBgScrollBarActive",r),document.body.style.setProperty("--colorSettings",y.colorSettings||k.uH.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",y.colorBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",y.colorBorderSettingsHover),document.body.style.setProperty("background-color",y.colorBgContainer)},[M,r,n,f,y.colorBgContainer,y.colorBgLayout,y.colorBgSettingsHover,y.colorBorderSettingsHover,y.colorInfoBg,y.colorInfoBorder,y.colorPrimaryText,y.colorPrimaryTextActive,y.colorPrimaryTextHover,y.colorSettings,y.colorText,y.colorWarningBg,y.colorWarningBorder,y.controlHeightLG,y.marginLG,y.marginSM,y.marginXS,y.paddingContentVerticalSM,y.sizeXXL]),N};E.displayName="CSSVariableProvider";var x=E},31959:function(ze,se,e){"use strict";e.d(se,{S:function(){return M}});var H=e(97857),u=e.n(H),k=e(12444),c=e.n(k),E=e(72004),x=e.n(E),K=e(9783),o=e.n(K),N=e(96486),m=e.n(N),y=e(65375),f=e(84157),M=function(){function n(r){c()(this,n),o()(this,"name",void 0),o()(this,"group",void 0),o()(this,"title",void 0),o()(this,"description",void 0),o()(this,"order",void 0),o()(this,"default",void 0),o()(this,"sortable",void 0),o()(this,"availableTypes",void 0),o()(this,"supportDataSourceType",void 0),o()(this,"notSupportDataSourceType",void 0),o()(this,"hasDefaultValue",void 0),o()(this,"componentOptions",void 0),o()(this,"isAssociation",void 0),o()(this,"operators",void 0),o()(this,"properties",void 0),o()(this,"filterable",void 0),o()(this,"titleUsable",void 0),o()(this,"hidden",void 0),this.collectionFieldInterfaceManager=r}return x()(n,[{key:"addComponentOption",value:function(d){if(!this.componentOptions){var h,C;this.componentOptions=[];var D=(h=this.default)===null||h===void 0||(h=h.uiSchema)===null||h===void 0?void 0:h["x-component"],R=(C=this.default)===null||C===void 0||(C=C.uiSchema)===null||C===void 0?void 0:C["x-component-props"];if(D){var Z,w=((Z=this.default)===null||Z===void 0||(Z=Z.uiSchema)===null||Z===void 0?void 0:Z.type)||"string",$=(0,f.tval)(D.startsWith("Input")?(0,N.capitalize)(w):D.split(".").pop());this.componentOptions=[{label:$,value:D,useProps:function(){return R||{}}}]}}this.componentOptions.push(d)}},{key:"getConfigureFormProperties",value:function(){var d=this.hasDefaultValue?this.getDefaultValueProperty():{};return u()(u()({},(0,N.cloneDeep)(u()(u()({},y.defaultProps),this===null||this===void 0?void 0:this.properties))),d)}},{key:"getDefaultValueProperty",value:function(){var d,h;return{defaultValue:u()(u()(u()({},(0,N.cloneDeep)(this===null||this===void 0||(d=this.default)===null||d===void 0?void 0:d.uiSchema)),this===null||this===void 0||(h=this.properties)===null||h===void 0?void 0:h.uiSchema),{},{required:!1,title:'{{ t("Default value") }}',"x-decorator":"FormItem","x-reactions":[{dependencies:["uiSchema.x-component-props.gmt","uiSchema.x-component-props.showTime","uiSchema.x-component-props.dateFormat","uiSchema.x-component-props.timeFormat","uiSchema.x-component-props.picker"],fulfill:{state:{componentProps:{gmt:"{{$deps[0]}}",showTime:"{{$deps[1]}}",dateFormat:"{{$deps[2]}}",timeFormat:"{{$deps[3]}}",picker:"{{$deps[4]}}"}}}},{dependencies:["uiSchema.x-component-props.picker"],fulfill:{state:{value:null}}},{dependencies:["primaryKey","unique","autoIncrement","defaultToCurrentTime"],when:"{{$deps[0]||$deps[1]||$deps[2]||$deps[3]}}",fulfill:{state:{hidden:!0,value:null}},otherwise:{state:{hidden:!1}}},{dependencies:["uiSchema.enum"],fulfill:{state:{dataSource:"{{$deps[0]}}"}}}]})}}}]),n}()},65050:function(ze,se,e){"use strict";e.d(se,{S:function(){return H.S},Z:function(){return o}});var H=e(31959),u=e(12444),k=e.n(u),c=e(72004),E=e.n(c),x=e(9783),K=e.n(x),o=function(){function N(m,y,f){k()(this,N),K()(this,"collectionFieldInterfaceInstances",{}),K()(this,"collectionFieldGroups",{}),K()(this,"actionList",{}),this.dataSourceManager=f,this.addFieldInterfaces(m),this.addFieldInterfaceGroups(y)}return E()(N,[{key:"addFieldInterfaces",value:function(){var y=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=f.reduce(function(n,r){var d=new r(y);return n[d.name]=d,Array.isArray(y.actionList[d.name])&&(y.actionList[d.name].forEach(function(h){d[h.type](h.data)}),y.actionList[d.name]=void 0),n},{});Object.assign(this.collectionFieldInterfaceInstances,M)}},{key:"addFieldInterfaceComponentOption",value:function(y,f){var M=this.getFieldInterface(y);if(!M){this.actionList[y]||(this.actionList[y]=[]),this.actionList[y].push({type:"addComponentOption",data:f});return}M.addComponentOption(f)}},{key:"getFieldInterface",value:function(y){return this.collectionFieldInterfaceInstances[y]}},{key:"getFieldInterfaces",value:function(y){return Object.values(this.collectionFieldInterfaceInstances).filter(function(f){if(!y||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var M;return(M=f.supportDataSourceType)===null||M===void 0?void 0:M.includes(y)}if(f.notSupportDataSourceType){var n;return!((n=f.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(y))}})}},{key:"addFieldInterfaceGroups",value:function(y){Object.assign(this.collectionFieldGroups,y)}},{key:"getFieldInterfaceGroups",value:function(){return this.collectionFieldGroups}},{key:"getFieldInterfaceGroup",value:function(y){return this.collectionFieldGroups[y]}}]),N}()},52020:function(ze,se,e){"use strict";e.d(se,{s:function(){return R}});var H=e(97857),u=e.n(H),k=e(80844),c=e(85667),E=e(84327),x=e(96486),K=e.n(x),o=e(67294),N=e(7340),m=e(57105),y=e(15503),f=e(64774),M=e(29124),n=e(67668),r=e(85893),d=function(w,$,p){(0,c.untracked)(function(){w[$]===void 0&&(w[$]=p)})},h=function(w,$,p){typeof $.required>"u"&&(w.required=!!p.required)},C=function(w){var $,p=(0,f.eJW)(),A=(0,k.useField)(),g=(0,k.useFieldSchema)(),i=(0,n.Hy)(),G=i.uiSchema,j=i.defaultValue,O=(0,M.SF)(),l=O.isAllowToSetDefaultValue,v=(0,f.Cor)((($=g["x-component-props"])===null||$===void 0?void 0:$.component)||(G==null?void 0:G["x-component"])||"Input"),a=(0,N.bz)(),S=(0,y.M)(G==null?void 0:G["x-use-component-props"],w);return(0,o.useEffect)(function(){if(G){var V=p(G);if(d(A,"content",V["x-content"]),d(A,"title",V.title),d(A,"description",V.description),a!=null&&a.form){var P=l()?g.default||j:void 0;P!=null&&d(A,"initialValue",P)}if(!A.validator&&(V["x-validator"]||g["x-validator"])){var t=(0,x.concat)([],V["x-validator"]||[],g["x-validator"]||[]);A.validator=t}g["x-disabled"]===!0&&(A.disabled=!0),g["x-read-pretty"]===!0&&(A.readPretty=!0),h(A,g,V),A.dataSource=V.enum;var I=p(V["x-component-props"])||{};A.componentProps=(0,E.merge)(I,A.componentProps||{},S||{})}},[G]),G?(0,r.jsx)(v,u()(u()({},w),S)):null},D=function(w){var $,p=(0,k.useField)(),A=(0,k.useFieldSchema)(),g=(0,m.mz)(),i=g.uiSchema,G=(0,f.Cor)((($=A["x-component-props"])===null||$===void 0?void 0:$.component)||(i==null?void 0:i["x-component"])||"Input"),j=(0,y.M)(i==null?void 0:i["x-use-component-props"],w);return(0,o.useEffect)(function(){A["x-read-pretty"]===!0&&!p.readPretty&&(p.readPretty=!0)},[p,A]),i?(0,r.jsx)(G,u()(u()({},w),j)):null},R=(0,k.connect)(function(Z){var w=(0,k.useFieldSchema)(),$=(0,m.cl)();return(0,r.jsx)(n.YT,{name:w.name,children:$?(0,r.jsx)(D,u()({},Z)):(0,r.jsx)(C,u()({},Z))})});R.displayName="CollectionField"},67668:function(ze,se,e){"use strict";e.d(se,{Hy:function(){return N},YT:function(){return K},m9:function(){return o},v_:function(){return x}});var H=e(67294),u=e(80844),k=e(1836),c=e(36032),E=e(85893),x=(0,H.createContext)(null);x.displayName="CollectionFieldContext";var K=function(y){var f=y.name,M=y.children,n=y.allowNull,r=(0,u.useFieldSchema)(),d=(0,k.Kx)(),h=(0,k.d9)(),C=(0,H.useMemo)(function(){var D;if(!d)return null;var R=r==null||(D=r["x-component-props"])===null||D===void 0?void 0:D.field;return h.getCollectionField(r==null?void 0:r["x-collection-field"])||R||d.getField((R==null?void 0:R.name)||f)},[d,r,h,f]);return!C&&n?(0,E.jsx)(E.Fragment,{children:M}):C?(0,E.jsx)(x.Provider,{value:C,children:M}):(0,E.jsx)(c.z,{type:"Field",name:f})},o=function(y){return(0,E.jsx)(x.Provider,{value:null,children:y.children})},N=function(){var y=(0,H.useContext)(x);return y}},58530:function(ze,se,e){"use strict";e.d(se,{D:function(){return K}});var H=e(12444),u=e.n(H),k=e(72004),c=e.n(k),E=e(9783),x=e.n(E),K=function(){function o(N){u()(this,o),x()(this,"data",void 0),x()(this,"parentRecord",void 0),x()(this,"isNew",void 0);var m=N.data,y=N.parentRecord,f=N.isNew;this.isNew=f,this.data=m,this.parentRecord=y}return c()(o,[{key:"setData",value:function(m){this.data=m}},{key:"setParentRecord",value:function(m){this.parentRecord=m}}]),o}()},49834:function(ze,se,e){"use strict";e.d(se,{E0:function(){return E},Kv:function(){return N},RA:function(){return o},nE:function(){return K},oV:function(){return x},vI:function(){return c}});var H=e(67294),u=e(58530),k=e(85893),c=(0,H.createContext)(null);c.displayName="CollectionRecordContext";var E=H.memo(function(m){var y=m.isNew,f=m.record,M=m.parentRecord,n=m.children,r=(0,H.useMemo)(function(){if(M)return M instanceof u.D?M:new u.D({data:M});if(f instanceof u.D)return f.parentRecord},[M,f]),d=(0,H.useMemo)(function(){var h;return f?f instanceof u.D?(h=f,h.isNew=f.isNew||y):h=new u.D({data:f,isNew:y}):h=new u.D({isNew:y}),h.setParentRecord(r),h},[f,r,y]);return(0,k.jsx)(c.Provider,{value:d,children:n})});E.displayName="CollectionRecordProvider";function x(){var m=(0,H.useContext)(c);return m}function K(){var m=x();return m==null?void 0:m.data}function o(){var m=x();return m==null?void 0:m.parentRecord}function N(){var m,y=x();return y==null||(m=y.parentRecord)===null||m===void 0?void 0:m.data}},88496:function(ze,se,e){"use strict";e.d(se,{DI:function(){return H.D},E0:function(){return u.E0},Kv:function(){return u.Kv},RA:function(){return u.RA},nE:function(){return u.nE},oV:function(){return u.oV},vI:function(){return u.vI}});var H=e(58530),u=e(49834)},373:function(ze,se,e){"use strict";e.d(se,{d:function(){return x},k:function(){return E}});var H=e(85667),u=e(96486),k=e.n(u),c="__isNewRecord__",E=function(o){return(0,H.untracked)(function(){return!!(o!=null&&o[c])})},x=function(o){if(!(0,u.isObject)(o))throw new Error("markRecordAsNew: record must be an object");return o[c]=!0,o}},34096:function(ze,se,e){"use strict";e.d(se,{P:function(){return K}});var H=e(72004),u=e.n(H),k=e(12444),c=e.n(k),E=e(9783),x=e.n(E),K=u()(function o(N){c()(this,o),x()(this,"name",void 0),x()(this,"Collection",void 0),x()(this,"title",void 0),x()(this,"color",void 0),x()(this,"order",void 0),x()(this,"default",void 0),x()(this,"events",void 0),x()(this,"configurableProperties",void 0),x()(this,"availableFieldInterfaces",void 0),x()(this,"divider",void 0),x()(this,"description",void 0),x()(this,"configureActions",void 0),x()(this,"forbidDeletion",void 0),x()(this,"supportDataSourceType",void 0),x()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=N})},67836:function(ze,se,e){"use strict";e.d(se,{P:function(){return H.P},y:function(){return o}});var H=e(34096),u=e(12444),k=e.n(u),c=e(72004),E=e.n(c),x=e(9783),K=e.n(x),o=function(){function N(m,y){k()(this,N),K()(this,"collectionTemplateInstances",{}),this.dataSourceManager=y,this.addCollectionTemplates(m)}return E()(N,[{key:"addCollectionTemplates",value:function(){var y=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=f.reduce(function(n,r){var d=new r(y);return n[d.name]=d,n},{});return Object.assign(this.collectionTemplateInstances,M),this.dataSourceManager.getDataSources().forEach(function(n){var r=n.collectionManager.getCollections(function(d){return M[d.template]});n.collectionManager.reAddCollections(r)}),M}},{key:"getCollectionTemplate",value:function(y){return this.collectionTemplateInstances[y]}},{key:"getCollectionTemplates",value:function(y){return Object.values(this.collectionTemplateInstances).filter(function(f){if(!y||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var M;return(M=f.supportDataSourceType)===null||M===void 0?void 0:M.includes(y)}if(f.notSupportDataSourceType){var n;return!((n=f.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(y))}}).sort(function(f,M){return(f.order||0)-(M.order||0)})}}]),N}()},19271:function(ze,se,e){"use strict";e.d(se,{Xo:function(){return y},lb:function(){return N},ym:function(){return m}});var H=e(67294),u=e(67668),k=e(36032),c=e(35746),E=e(58837),x=e(85893),K=(0,H.createContext)(null);K.displayName="ParentCollectionContext";var o=function(M){var n=(0,E.Kx)();return(0,x.jsx)(K.Provider,{value:n,children:M.children})},N=function(){return(0,H.useContext)(K)},m=function(M){var n=M.name,r=M.children,d=(0,c.d9)(),h=d.getCollectionName(n);return h?(0,x.jsx)(E.YQ,{name:String(n).split(".")[0],children:(0,x.jsx)(o,{children:(0,x.jsx)(u.YT,{name:n,children:(0,x.jsx)(E.YQ,{name:h,children:r})})})}):(0,x.jsx)(k.z,{type:"Collection",name:n})},y=function(){var M=(0,u.Hy)();return M!=null&&M.target?"".concat(M.collectionName,".").concat(M.name):null}},5282:function(ze,se,e){"use strict";e.d(se,{F:function(){return y}});var H=e(61227),u=e.n(H),k=e(12444),c=e.n(k),E=e(72004),x=e.n(E),K=e(9783),o=e.n(K),N=e(96486),m=e.n(N),y=function(){function f(M,n){c()(this,f),o()(this,"fieldsMap",void 0),o()(this,"primaryKey",void 0),this.options=M,this.collectionManager=n}return x()(f,[{key:"fields",get:function(){return this.options.fields||[]}},{key:"app",get:function(){return this.collectionManager.app}},{key:"dataSource",get:function(){return this.options.dataSource}},{key:"sourceKey",get:function(){return this.options.sourceKey}},{key:"name",get:function(){return this.options.name}},{key:"key",get:function(){return this.options.key}},{key:"title",get:function(){return this.options.title}},{key:"inherit",get:function(){return this.options.inherit}},{key:"hidden",get:function(){return this.options.hidden}},{key:"description",get:function(){return this.options.description}},{key:"duplicator",get:function(){return this.options.duplicator}},{key:"category",get:function(){return this.options.category}},{key:"targetKey",get:function(){return this.options.targetKey}},{key:"model",get:function(){return this.options.model}},{key:"createdBy",get:function(){return this.options.createdBy}},{key:"updatedBy",get:function(){return this.options.updatedBy}},{key:"logging",get:function(){return this.options.logging}},{key:"from",get:function(){return this.options.from}},{key:"rawTitle",get:function(){return this.options.rawTitle}},{key:"getPrimaryKey",value:function(){if(this.primaryKey)return this.primaryKey;if(this.options.targetKey)return this.options.targetKey;var n=this.getFields({primaryKey:!0})[0];return this.primaryKey=n==null?void 0:n.name,this.primaryKey}},{key:"getFilterTargetKey",value:function(){return this.filterTargetKey||this.getPrimaryKey()||"id"}},{key:"inherits",get:function(){return this.options.inherits||[]}},{key:"titleField",get:function(){return this.hasField(this.options.titleField)?this.options.titleField:this.getPrimaryKey()}},{key:"sources",get:function(){return this.options.sources||[]}},{key:"template",get:function(){return this.options.template}},{key:"tableName",get:function(){return this.options.tableName}},{key:"viewName",get:function(){return this.options.viewName}},{key:"writableView",get:function(){return this.options.writableView}},{key:"filterTargetKey",get:function(){return this.options.filterTargetKey}},{key:"sortable",get:function(){return this.options.sortable}},{key:"autoGenId",get:function(){return this.options.autoGenId}},{key:"magicAttribute",get:function(){return this.options.magicAttribute}},{key:"tree",get:function(){return this.options.tree}},{key:"isThrough",get:function(){return this.options.isThrough}},{key:"autoCreate",get:function(){return this.options.autoCreate}},{key:"resource",get:function(){return this.options.resource}},{key:"setOption",value:function(n,r){return this.options[n]=r,this}},{key:"getOptions",value:function(){return this.options}},{key:"getOption",value:function(n){return this.options[n]}},{key:"getFields",value:function(n){return n?(0,N.filter)(this.fields,n):this.fields}},{key:"getAllFields",value:function(n){return this.getFields(n)}},{key:"getFieldsMap",value:function(){return this.fieldsMap||(this.fieldsMap=this.getFields().reduce(function(n,r){return n[r.name]=r,n},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(n){var r=this.getFieldsMap(),d=String(n).split("."),h=u()(d),C=h[0],D=h.slice(1),R=r[C];if(R){var Z=R==null?void 0:R.target;if(Z){var w=this.collectionManager.getCollection(Z);if(w)return w.getField(D.join("."))}}}},{key:"getField",value:function(n){if(n){var r=this.getFieldsMap();if(String(n).split(".").length>1){var d=this.getFieldByAssociationName(n);return d||(typeof n=="string"&&n.startsWith("".concat(this.name,"."))?(n=n.replace("".concat(this.name,"."),""),this.getField(n)):void 0)}return r[n]}}},{key:"hasField",value:function(n){return!!this.getField(n)}},{key:"isTitleField",value:function(n){var r;return(r=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(n.interface))===null||r===void 0?void 0:r.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),f}()},35746:function(ze,se,e){"use strict";e.d(se,{IX:function(){return K},bX:function(){return y},d9:function(){return m},xw:function(){return N}});var H=e(5574),u=e.n(H),k=e(67294),c=e(44990),E=e(58861),x=e(85893),K=(0,k.createContext)(null);K.displayName="CollectionManagerContext";var o=function(M){var n=M.instance,r=M.children,d=(0,c.wl)(),h=(0,E.P5)(),C=(0,k.useMemo)(function(){return n||(d==null?void 0:d.collectionManager)},[n,d]),D=k.useState(Math.random()),R=u()(D,2),Z=R[0],w=R[1];(0,k.useEffect)(function(){C.dataSource.addReloadCallback(function(){w(Math.random())})},[C]);var $=(0,k.useMemo)(function(){var p=C;return h!=null&&h.length?p.clone(h):p},[C,h,Z]);return(0,x.jsx)(K.Provider,{value:$,children:r})},N=function(M){var n=M.instance,r=M.dataSource,d=M.children;return(0,x.jsx)(c.LX,{dataSource:r,children:(0,x.jsx)(o,{instance:n,children:d})})};function m(){var f=(0,k.useContext)(K);return f}var y=function(M){var n=m(),r=(0,k.useMemo)(function(){return n.getCollections(M)},[n,M]);return r}},58837:function(ze,se,e){"use strict";e.d(se,{Kx:function(){return y},Pd:function(){return m},WH:function(){return o},YQ:function(){return N},ge:function(){return f}});var H=e(97857),u=e.n(H),k=e(67294),c=e(67668),E=e(36032),x=e(35746),K=e(85893),o=(0,k.createContext)(null);o.displayName="CollectionContext";var N=function(n){var r=n.name,d=n.children,h=n.allowNull,C=(0,x.d9)(),D=(0,k.useMemo)(function(){return C==null?void 0:C.getCollection(r)},[C,r]);return!D&&h?(0,K.jsx)(K.Fragment,{children:n.children}):!D&&!h?(0,K.jsx)(E.z,{type:"Collection",name:r}):(0,K.jsx)(o.Provider,{value:D,children:d})},m=function(n){return(0,K.jsx)(c.v_.Provider,{value:null,children:(0,K.jsx)(N,u()({},n))})};function y(){var M=(0,k.useContext)(o);return M}var f=function(n){var r=y(),d=(0,k.useMemo)(function(){return r.getFields(n)},[r,n]);return d}},58861:function(ze,se,e){"use strict";e.d(se,{P5:function(){return N},Xc:function(){return K},j5:function(){return o}});var H=e(19632),u=e.n(H),k=e(67294),c=e(44990),E=e(35746),x=e(85893),K=(0,k.createContext)(null);K.displayName="ExtendCollectionsContext";var o=function(y){var f=y.children,M=y.collections,n=N(),r=(0,k.useMemo)(function(){return n?[].concat(u()(n),u()(M)):M},[n,M]),d=(0,c.FC)();return(0,x.jsx)(K.Provider,{value:r,children:(0,x.jsx)(E.xw,{dataSource:d,children:f})})};function N(){var m=(0,k.useContext)(K);return m}},1836:function(ze,se,e){"use strict";e.d(se,{ym:function(){return k.ym},FE:function(){return H.F},WH:function(){return u.WH},w4:function(){return p},IX:function(){return A.IX},xw:function(){return A.xw},YQ:function(){return u.YQ},Xc:function(){return g.Xc},j5:function(){return g.j5},Pd:function(){return u.Pd},Xo:function(){return k.Xo},Kx:function(){return u.Kx},ge:function(){return u.ge},d9:function(){return A.d9},bX:function(){return A.bX},P5:function(){return g.P5},lb:function(){return k.lb}});var H=e(5282),u=e(58837),k=e(19271),c=e(61227),E=e.n(c),x=e(52677),K=e.n(x),o=e(97857),N=e.n(o),m=e(12444),y=e.n(m),f=e(72004),M=e.n(f),n=e(9783),r=e.n(n),d=e(80129),h=e.n(d),C=e(13769),D=e.n(C),R=["rawTitle","title","fields"],Z=["uiSchema"],w=function(G,j){var O=G.rawTitle,l=G.title,v=G.fields,a=v===void 0?[]:v,S=D()(G,R);return N()(N()({},S),{},{title:O?l:j.i18n.t(l,{ns:"lm-collections"}),rawTitle:O||l,fields:a==null?void 0:a.map(function(V){var P=V.uiSchema,t=D()(V,Z);if(P!=null&&P.title){var I=P.title;P.title=P.rawTitle?I:j.i18n.t(I,{ns:"lm-collections"}),P.rawTitle=P.rawTitle||I}return Array.isArray(P==null?void 0:P.enum)&&(P.enum=P.enum.map(function(B){return N()(N()({},B),{},{value:(B==null?void 0:B.value)===void 0?B:B.value,label:B.rawLabel?B.label:j.i18n.t(B.label,{ns:"lm-collections"}),rawLabel:B.rawLabel||B.label})})),N()({uiSchema:P},t)})})};function $(i,G,j,O){var l=new i(j,O);return G.forEach(function(v){var a=new v(j,O);Object.getOwnPropertyNames(a).forEach(function(S){var V=Object.getOwnPropertyDescriptor(a,S);V?Object.defineProperty(l,S,V):l[S]=a[S]}),Object.getOwnPropertyNames(v.prototype).forEach(function(S){S!=="constructor"&&(l.__proto__[S]=v.prototype[S])})}),l}var p=function(){function i(G,j){y()(this,i),r()(this,"collectionInstancesMap",{}),r()(this,"collectionInstancesArr",[]),this.dataSource=j,this.addCollections(G)}return M()(i,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(j){var O=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(j.template),l=(O==null?void 0:O.Collection)||H.F,v=O==null?void 0:O.transform,a=v?v(w(j,this.app),this.app):w(j,this.dataSource.dataSourceManager.app),S=N()(N()({},a),{},{dataSource:this.dataSource.key}),V=$(l,this.dataSourceManager.collectionMixins,S,this);return V}},{key:"getInstancesMap",value:function(){var j=this,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=O.map(function(v){return j.getCollectionInstance(v)});return l.reduce(function(v,a){return v[a.name]=a,v},{})}},{key:"addCollections",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=this.getInstancesMap(j);this.collectionInstancesMap=N()(N()({},this.collectionInstancesMap),O),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"setCollections",value:function(j){this.collectionInstancesMap=this.getInstancesMap(j),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"reAddCollections",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.collectionInstancesArr,O=j.map(function(l){return l.getOptions()});this.addCollections(O)}},{key:"getCollection",value:function(j){if(j){if(K()(j)==="object")return this.getCollectionInstance(j);if(String(j).split(".").length>1){var O=this.getCollectionField(j);return O?this.getCollection(O.target):void 0}return this.collectionInstancesMap[j]}}},{key:"getCollections",value:function(j){return j?this.collectionInstancesArr.filter(j):this.collectionInstancesArr}},{key:"getCollectionName",value:function(j){var O=this.getCollection(j);return O==null?void 0:O.name}},{key:"getCollectionField",value:function(j){if(j){if(K()(j)==="object")return j;if(String(j).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(j,'" is invalid'));return}var O=String(j).split("."),l=E()(O),v=l[0],a=l.slice(1),S=this.getCollection(v);if(S)return S.getField(a.join("."))}}},{key:"getCollectionFields",value:function(j,O){var l;return((l=this.getCollection(j))===null||l===void 0?void 0:l.getFields(O))||[]}},{key:"getCollectionAllFields",value:function(j,O){var l;return((l=this.getCollection(j))===null||l===void 0?void 0:l.getAllFields(O))||[]}},{key:"getFilterByTK",value:function(j,O){if(!j||!O){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}var l=function(t,I){if(Array.isArray(t)){var B={};return t.forEach(function(z){B[z]=I[z]}),h().stringify(B)}else return I[t]};if(j instanceof H.F){var v=j.getFilterTargetKey();return l(v,O)}if(j.includes(".")){var a=this.getCollectionField(j);if(!a){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(j,'" is invalid'));return}if(a.targetKey)return O[a.targetKey]}var S=this.getCollection(j);if(!S){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(j,'" is invalid'));return}var V=S.getFilterTargetKey();return l(V,O)}},{key:"getSourceKeyByAssociation",value:function(j){if(j){var O=this.getCollectionField(j);if(O){if(O.sourceKey)return O.sourceKey;var l=this.getCollection(j.split(".")[0]);if(l)return l.filterTargetKey||l.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=new i([],this.dataSource);return O.collectionInstancesArr=this.collectionInstancesArr,O.collectionInstancesMap=this.collectionInstancesMap,O.addCollections(j),O}}]),i}(),A=e(35746),g=e(58861)},22558:function(ze,se,e){"use strict";e.d(se,{K:function(){return f}});var H=e(9783),u=e.n(H),k=e(97857),c=e.n(k),E=e(80844),x=e(96486),K=e.n(x),o=e(26793),N=e(13511),m=e(67668),y=e(64774),f={name:"fieldComponent",type:"select",useVisible:function(){var n=(0,m.Hy)(),r=(0,N.fp)();if(!n)return!1;var d=r.collectionFieldInterfaceManager.getFieldInterface(n==null?void 0:n.interface);return Array.isArray(d==null?void 0:d.componentOptions)&&d.componentOptions.length>1&&d.componentOptions.filter(function(h){return!h.useVisible||h.useVisible()}).length>1},useComponentProps:function(){var n,r,d,h=(0,o.$)(),C=h.t,D=(0,E.useField)(),R=(0,E.useFieldSchema)(),Z=(0,m.Hy)(),w=(0,N.fp)(),$=w.collectionFieldInterfaceManager.getFieldInterface(Z==null?void 0:Z.interface),p=(0,y.z9d)(),A=p.fieldSchema,g=A||R,i=(0,y.ngQ)(),G=i.dn,j=(0,y.eJW)(),O=($==null||(n=$.componentOptions)===null||n===void 0||(n=n.filter(function(l){return!l.useVisible||l.useVisible()}))===null||n===void 0?void 0:n.map(function(l){return{label:j(l.label),value:l.value,useProps:l.useProps}}))||[];return{title:C("Field component"),options:O,value:((r=g["x-component-props"])===null||r===void 0?void 0:r.component)||((d=O[0])===null||d===void 0?void 0:d.value),onChange:function(v){var a,S,V=O.find(function(t){return t.value===v}),P=c()({component:v},(V==null||(a=V.useProps)===null||a===void 0?void 0:a.call(V))||{});K().set(g,"x-component-props",P),D.componentProps=P,G.emit("patch",{schema:(S={},u()(S,"x-uid",g["x-uid"]),u()(S,"x-component-props",P),S)})}}}}},36032:function(ze,se,e){"use strict";e.d(se,{p:function(){return D},z:function(){return h}});var H=e(97857),u=e.n(H),k=e(48997),c=e(3321),E=e(59720),x=e(15867),K=e(67294),o=e(26793),N=e(64774),m=e(44990),y=e(49453),f=e(57638),M=e(1836),n=e(18243),r=e(85893),d=k.Z.Text,h=function(Z){var w=Z.type,$=Z.name,p=Z.message,A=(0,N.ngQ)(),g=A.designable,i=A.dn,G=c.Z.useApp(),j=G.modal,O=(0,o.$)(),l=O.t,v=(0,m.wl)(),a=(0,N.eJW)(),S=(0,M.Kx)(),V=(0,y.fp)(),P=(0,K.useMemo)(function(){if(w==="Data Source")return $;var B=(V==null?void 0:V.getDataSources().length)>=1&&v&&v.key!==f.ym?"".concat(a(v.displayName||v.key)," > "):"";if(w==="Collection")return"".concat(B).concat($);var z=S?"".concat(a(S.title)||S.name||S.tableName," > "):"";return"".concat(B).concat(z).concat($)},[]),t=(0,K.useMemo)(function(){return w==="Field"?"Field":"Block"},[w]),I=(0,K.useMemo)(function(){return $?p?"".concat(l(w),' "').concat(P,'" ').concat(p):l('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:l(w).toLocaleLowerCase(),name:P,blockType:l(t).toLocaleLowerCase()}).replaceAll("&gt;",">"):"".concat(l(w)," ","name is required")},[p,P,w,l,t]);return g?w==="Field"?(0,r.jsx)(N.BQs,{ellipsis:!0,children:(0,r.jsx)(d,{type:"secondary",children:I})}):(0,r.jsx)(n.P,{children:(0,r.jsx)(E.ZP,{status:"404",subTitle:I,extra:(0,r.jsx)(x.ZP,{onClick:function(){return j.confirm(u()(u()({title:l("Delete block"),content:l("Are you sure you want to delete it?")},confirm),{},{onOk:function(){i.remove(null,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}),i.refresh({refreshParentSchema:!0})}}))},children:l("Delete")},"Delete")})}):null},C=function(){var Z=(0,o.$)(),w=Z.t,$=(0,m.wl)(),p=(0,N.eJW)(),A=(0,M.Kx)(),g=(0,y.fp)(),i=(0,K.useMemo)(function(){var j=(g==null?void 0:g.getDataSources().length)>=1&&$&&$.key!==f.ym?"".concat(p($.displayName||$.key)," > "):"";if(A)return"".concat(j).concat(A.name);var O=A?"".concat(p(A.title)||A.name||A.tableName," > "):"";return"".concat(j).concat(O).concat(A.name)},[]),G=(0,K.useMemo)(function(){return w(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:i}).replaceAll("&gt;",">")},[i,w]);return(0,r.jsx)(n.P,{children:(0,r.jsx)(E.ZP,{status:"404",subTitle:G})})},D=function(){var Z=(0,N.ngQ)(),w=Z.designable;return w?(0,r.jsx)(C,{}):null}},88996:function(ze,se,e){"use strict";e.d(se,{i:function(){return m}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(67294),x=e(13511),K=e(35746),o=e(85893),N=["children","dataSourceManager"],m=function(f){var M=f.children,n=f.dataSourceManager,r=c()(f,N);return(0,o.jsx)(x.kv,{dataSourceManager:n,children:(0,o.jsx)(K.xw,u()(u()({},r),{},{children:M}))})}},87180:function(ze,se,e){"use strict";e.d(se,{KY:function(){return Z},Rr:function(){return p},dq:function(){return R},eS:function(){return w},hZ:function(){return h},sI:function(){return D},zh:function(){return $}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(5574),x=e.n(E),K=e(67294),o=e(75667),N=e(67205),m=e(15503),y=e(64774),f=e(1836),M=e(39742),n=e(14310),r=e(85893),d=["collection","association","dataSource","children","hidden"],h=(0,K.createContext)({});h.displayName="DataBlockContext";var C=(0,K.createContext)(null),D=function(g){var i=g.children,G=K.useState(!1),j=x()(G,2),O=j[0],l=j[1],v=(0,K.useMemo)(function(){return{rerenderDataBlock:function(){l(!0),setTimeout(function(){l(!1)})}}},[]);return O?null:(0,r.jsx)(C.Provider,{value:v,children:i})},R=function(g){var i=g.collection,G=g.association,j=g.allowNull,O=j===void 0?!1:j,l=(0,K.useMemo)(function(){return G?{Component:f.ym,name:G}:{Component:f.Pd,name:i}},[i,G]);return(0,r.jsx)(l.Component,{name:l.name,allowNull:O,children:g.children})},Z=(0,m.t)(K.memo(function(A){var g=A,i=g.collection,G=g.association,j=g.dataSource,O=g.children,l=g.hidden,v=c()(g,d),a=(0,y.ngQ)(),S=a.dn;return l?null:(0,r.jsx)(h.Provider,{value:{dn:S,props:u()(u()({},v),{},{collection:i,association:G,dataSource:j})},children:(0,r.jsx)(f.xw,{dataSource:j,children:(0,r.jsx)(R,{collection:i,association:G,children:(0,r.jsx)(o.Hh,{children:(0,r.jsx)(n.eh,{children:(0,r.jsx)(M.N4,{children:(0,r.jsx)(N.vY,{params:A.params,children:(0,r.jsx)(D,{children:O})})})})})})})})}),{displayName:"DataBlockProvider"}),w=function(){var g=(0,K.useContext)(h);if(!g)throw new Error("useDataBlock() must be used within a DataBlockProvider");return g},$=function(){var g=w();return g.props},p=function(){var g=(0,K.useContext)(C);if(!g)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return g}},39742:function(ze,se,e){"use strict";e.d(se,{H0:function(){return g},N4:function(){return j},Pt:function(){return l},hS:function(){return O},q4:function(){return $},uz:function(){return G},xQ:function(){return v}});var H=e(15009),u=e.n(H),k=e(99289),c=e.n(k),E=e(97857),x=e.n(E),K=e(5574),o=e.n(K),N=e(67294),m=e(96486),y=e.n(m),f=e(12174),M=e(4277),n=e(19530),r=e(54724),d=e(21044),h=e(88496),C=e(8341),D=e(87180),R=e(14310),Z=e(85893),w=(0,N.createContext)(null);w.displayName="BlockRequestRefContext";var $=(0,N.createContext)(!1);$.displayName="BlockRequestLoadingContext";var p=(0,N.createContext)(null);p.displayName="BlockRequestDataContext";function A(a){var S=(0,M.tU)(),V=(0,R.wb)(),P=a.action,t=a.params,I=t===void 0?{}:t,B=a.record,z=a.requestService,L=a.requestOptions,b=a.sourceId,F=a.association,ee=a.parentRecord,re=(0,f.LY)(),oe=(0,D.zh)(),J=(0,C.FE)(oe.dataSource),W=(0,n.U)(F),q=(0,N.useMemo)(function(){return[JSON.stringify(I),JSON.stringify(B)]},[I,B]),fe=o()(q,2),ne=fe[0],pe=fe[1],Se=function(te){var X;if(B)return Promise.resolve({data:B});if(!P)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(P==="get"&&y().isNil(I.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var ve=I.filterByTk===void 0?y().omit(I,"filterByTk"):I;return(X=V[P])===null||X===void 0?void 0:X.call(V,x()(x()({},ve),te)).then(function(ie){return ie.data})},_e=function(){var xe=c()(u()().mark(function te(){var X,ve,ie,Y,ue=arguments;return u()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,Promise.all([(z||Se).apply(void 0,ue),g({sourceId:b,association:F,parentRecord:ee,api:re,headers:J,sourceKey:W})]);case 2:return X=Ee.sent,ve=o()(X,2),ie=ve[0],Y=ve[1],ie&&(ie.parentRecord=Y==null?void 0:Y.data),Ee.abrupt("return",ie);case 8:case"end":return Ee.stop()}},te)}));return function(){return xe.apply(this,arguments)}}(),de=(0,f.QT)(_e,x()(x()({},L),{},{manual:S==="manual",ready:!!P,refreshDeps:[P,ne,pe,V,F,ee,b]}));return de}function g(a){return i.apply(this,arguments)}function i(){return i=c()(u()().mark(function a(S){var V,P,t,I,B,z,L,b,F;return u()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(V=S.sourceId,P=S.association,t=S.parentRecord,I=S.api,B=S.headers,z=S.sourceKey,!t){re.next=3;break}return re.abrupt("return",Promise.resolve({data:t}));case 3:if(!(!P||!z||!V)){re.next=5;break}return re.abrupt("return",Promise.resolve({data:void 0}));case 5:return L=P.split("."),b="".concat(L[0],":get?filter[").concat(z,"]=").concat(V),re.next=9,I.request({url:b,headers:B});case 9:return F=re.sent,re.abrupt("return",F.data);case 11:case"end":return re.stop()}},a)})),i.apply(this,arguments)}var G=function(S){var V,P,t,I,B=(0,N.useRef)(S.recordRequest),z=(0,N.useRef)((V=S.recordRequest)===null||V===void 0?void 0:V.data),L=(0,r.Du)(),b=L.active,F=(0,N.useRef)(b),ee=(0,N.useDeferredValue)(b),re=(0,D.zh)();if(ee&&!F.current&&re.dataLoadingMode==="auto"){var oe;(oe=S.recordRequest)===null||oe===void 0||oe.refresh()}if(ee&&F.current&&!((P=S.recordRequest)!==null&&P!==void 0&&P.loading)&&!y().isEqual(z.current,(t=S.recordRequest)===null||t===void 0?void 0:t.data)){var J;z.current=(J=S.recordRequest)===null||J===void 0?void 0:J.data}return ee!==F.current&&(F.current=ee),B.current=S.recordRequest,(0,Z.jsx)(w.Provider,{value:B,children:(0,Z.jsx)($.Provider,{value:(I=S.recordRequest)===null||I===void 0?void 0:I.loading,children:(0,Z.jsx)(p.Provider,{value:z.current,children:S.children})})})},j=N.memo(function(a){var S,V,P=a.children,t=(0,D.zh)(),I=t.action,B=t.filterByTk,z=t.sourceId,L=t.params,b=L===void 0?d.Nu:L,F=t.association,ee=t.collection,re=t.record,oe=t.parentRecord,J=t.requestOptions,W=t.requestService,q=(0,N.useMemo)(function(){return x()(x()({},b),{},{filterByTk:B||b.filterByTk})},[B,b]),fe=A({action:I,sourceId:z,record:re,association:F,collection:ee,requestOptions:J,requestService:W,params:q,parentRecord:oe}),ne=(S=fe.data)===null||S===void 0?void 0:S.parentRecord,pe=(0,N.useMemo)(function(){return ne&&new h.DI({isNew:!1,data:ne instanceof h.DI?ne.data:ne})},[ne]);return(0,Z.jsx)(G,{recordRequest:fe,children:I!=="list"?(0,Z.jsx)(h.E0,{isNew:I==null,record:((V=fe.data)===null||V===void 0?void 0:V.data)||re,parentRecord:pe||oe,children:P}):(0,Z.jsx)(h.E0,{isNew:!1,record:null,parentRecord:pe||oe,children:P})})});j.displayName="DataBlockRequestProvider";var O=function(){var S=(0,N.useContext)(w),V=(0,N.useContext)($),P=(0,N.useContext)(p);return(0,N.useMemo)(function(){return S?x()(x()({},S.current),{},{loading:V,data:P}):null},[S,P,V])},l=function(){var S=(0,N.useContext)(w);return(0,N.useMemo)(function(){return{getDataBlockRequest:function(){return S?S.current:null}}},[S])},v=function(){return(0,N.useContext)(p)}},14310:function(ze,se,e){"use strict";e.d(se,{T1:function(){return f},eh:function(){return M},wb:function(){return n}});var H=e(96695),u=e.n(H),k=e(96486),c=e.n(k),E=e(67294),x=e(12174),K=e(1836),o=e(88496),N=e(8341),m=e(87180),y=e(85893),f=(0,E.createContext)(null);f.displayName="DataBlockResourceContext";var M=function(d){var h=d.children,C=(0,m.zh)(),D=(0,K.d9)(),R=C.association,Z=C.collection,w=C.dataSource,$=C.sourceId,p=C.parentRecord,A=(0,x.LY)(),g=(0,N.FE)(w),i=(0,E.useMemo)(function(){return typeof Z=="string"?Z:Z==null?void 0:Z.name},[Z]),G=(0,E.useMemo)(function(){if($)return $;if(R&&p){var O=D.getSourceKeyByAssociation(R),l=p instanceof o.DI?p.data:p;if((0,k.isArray)(O)){var v={},a=u()(O),S;try{for(a.s();!(S=a.n()).done;){var V=S.value;v[V]=l==null?void 0:l[V]}}catch(P){a.e(P)}finally{a.f()}return encodeURIComponent(JSON.stringify(v))}else return l[O]}},[R,$,p]),j=(0,E.useMemo)(function(){return R?A.resource(R,G,g,!G):A.resource(i,void 0,g)},[A,R,Z,G,g]);return(0,y.jsx)(f.Provider,{value:j,children:h})};function n(){var r=(0,E.useContext)(f);if(!r)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return r}},35519:function(ze,se,e){"use strict";e.d(se,{n:function(){return h},o:function(){return d}});var H=e(31996),u=e.n(H),k=e(26037),c=e.n(k),E=e(15009),x=e.n(E),K=e(99289),o=e.n(K),N=e(12444),m=e.n(N),y=e(72004),f=e.n(y),M=e(9783),n=e.n(M),r=e(1836),d=function(){function C(D,R){m()(this,C),n()(this,"collectionManager",void 0),n()(this,"reloadCallbacks",[]),this.options=D,this.dataSourceManager=R,this.collectionManager=new r.w4(D.collections,this)}return f()(C,[{key:"app",get:function(){return this.dataSourceManager.app}},{key:"key",get:function(){return this.options.key}},{key:"displayName",get:function(){return this.options.displayName}},{key:"status",get:function(){return this.options.status}},{key:"errorMessage",get:function(){return this.options.errorMessage}},{key:"collections",get:function(){return this.collectionManager.getCollections()||[]}},{key:"getOptions",value:function(){return this.options}},{key:"setOptions",value:function(R){Object.assign(this.options,R)}},{key:"getOption",value:function(R){return this.options[R]}},{key:"addReloadCallback",value:function(R){this.reloadCallbacks.includes(R)||this.reloadCallbacks.push(R)}},{key:"removeReloadCallback",value:function(R){this.reloadCallbacks=this.reloadCallbacks.filter(function(Z){return Z!==R})}},{key:"reload",value:function(){var D=o()(x()().mark(function Z(){var w;return x()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.getDataSource();case 2:return w=p.sent,this.setOptions(w),this.collectionManager.setCollections(w.collections||[]),this.reloadCallbacks.forEach(function(A){return A(w.collections)}),p.abrupt("return",this.options);case 7:case"end":return p.stop()}},Z,this)}));function R(){return D.apply(this,arguments)}return R}()}]),C}(),h=function(C){u()(R,C);var D=c()(R);function R(){return m()(this,R),D.apply(this,arguments)}return f()(R,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),R}(d)},57638:function(ze,se,e){"use strict";e.d(se,{AK:function(){return p},UC:function(){return $},ym:function(){return w}});var H=e(97857),u=e.n(H),k=e(15009),c=e.n(k),E=e(5574),x=e.n(E),K=e(99289),o=e.n(K),N=e(19632),m=e.n(N),y=e(12444),f=e.n(y),M=e(72004),n=e.n(M),r=e(9783),d=e.n(r),h=e(35519),C=e(67836),D=e(65050),R=e(96486),Z=e.n(R),w="main",$='{{t("Main")}}',p=function(){function A(){var g,i=this,G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=arguments.length>1?arguments[1]:void 0;f()(this,A),d()(this,"dataSourceInstancesMap",{}),d()(this,"multiDataSources",[]),d()(this,"collectionMixins",[]),d()(this,"collectionTemplateManager",void 0),d()(this,"collectionFieldInterfaceManager",void 0),this.options=G,this.app=j,this.collectionTemplateManager=new C.y(G.collectionTemplates,this),this.collectionFieldInterfaceManager=new D.Z(G.fieldInterfaces,G.fieldInterfaceGroups,this),(g=this.collectionMixins).push.apply(g,m()(G.collectionMixins||[])),this.addDataSource(h.n,{key:w,displayName:$,collections:G.collections||[]}),(G.dataSources||[]).forEach(function(O){i.addDataSource(h.n,O)})}return n()(A,[{key:"addCollectionMixins",value:function(){var i=this,G,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=j.filter(function(l){return!i.collectionMixins.includes(l)});O.length&&((G=this.collectionMixins).push.apply(G,m()(O)),this.getDataSources().forEach(function(l){return l.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(i){var G=Object.values(this.dataSourceInstancesMap);return i?Z().filter(G,i):G}},{key:"getDataSource",value:function(i){return i?this.dataSourceInstancesMap[i]:this.dataSourceInstancesMap[w]}},{key:"removeDataSources",value:function(i){var G=this;i.forEach(function(j){delete G.dataSourceInstancesMap[j]})}},{key:"addDataSource",value:function(i,G){var j=new i(G,this);return this.dataSourceInstancesMap[j.key]=j,j}},{key:"addDataSources",value:function(){var g=o()(c()().mark(function G(j,O){return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!this.multiDataSources.some(function(a){var S=x()(a,2),V=S[0],P=S[1];return V===j&&P===O})){v.next=2;break}return v.abrupt("return");case 2:this.multiDataSources.push([j,O]);case 3:case"end":return v.stop()}},G,this)}));function i(G,j){return g.apply(this,arguments)}return i}()},{key:"getAllCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=i.filterCollection,j=i.filterDataSource;return this.getDataSources(j).reduce(function(O,l){return O.push(u()(u()({},l.getOptions()),{},{collections:l.collectionManager.getCollections(G)})),O},[])}},{key:"addFieldInterfaceGroups",value:function(i){this.collectionFieldInterfaceManager.addFieldInterfaceGroups(i)}},{key:"addCollectionTemplates",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionTemplateManager.addCollectionTemplates(i)}},{key:"addFieldInterfaces",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionFieldInterfaceManager.addFieldInterfaces(i)}},{key:"reload",value:function(){var g=o()(c()().mark(function G(){var j=this;return c()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Promise.all(this.multiDataSources.map(function(){var v=o()(c()().mark(function a(S){var V,P,t,I;return c()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return V=x()(S,2),P=V[0],t=V[1],z.next=3,P();case 3:I=z.sent,I.map(function(L){return j.addDataSource(t,L)});case 5:case"end":return z.stop()}},a)}));return function(a){return v.apply(this,arguments)}}()));case 2:return l.abrupt("return",Promise.all(this.getDataSources().map(function(v){return v.reload()})));case 3:case"end":return l.stop()}},G,this)}));function i(){return g.apply(this,arguments)}return i}()}]),A}()},13511:function(ze,se,e){"use strict";e.d(se,{Uv:function(){return x},fp:function(){return E},kv:function(){return c},up:function(){return k}});var H=e(67294),u=e(85893),k=(0,H.createContext)(null);k.displayName="DataSourceManagerContext";var c=function(o){var N=o.children,m=o.dataSourceManager;return(0,u.jsx)(k.Provider,{value:m,children:N})};function E(){var K=(0,H.useContext)(k);return K}function x(){var K=E(),o=(0,H.useCallback)(function(N,m){var y;return K==null||(y=K.getDataSource(m))===null||y===void 0||(y=y.collectionManager)===null||y===void 0||(y=y.getCollection(N))===null||y===void 0?void 0:y.getAllCollectionsInheritChain()},[K]);return{getAllCollectionsInheritChain:o}}},44990:function(ze,se,e){"use strict";e.d(se,{FC:function(){return r},LX:function(){return M},NT:function(){return f},wl:function(){return n}});var H=e(5574),u=e.n(H),k=e(67294),c=e(13511),E=e(36032),x=e(64774),K=e(59720),o=e(15867),N=e(50888),m=e(26793),y=e(85893),f=(0,k.createContext)(null);f.displayName="DataSourceContext";var M=function(h){var C=h.children,D=h.dataSource,R=(0,c.fp)(),Z=(0,m.$)(),w=Z.t,$=(0,x.Dmu)(),p=$.refresh,A=k.useState(0),g=u()(A,2),i=g[0],G=g[1],j=R==null?void 0:R.getDataSource(D);return j?j.status==="loading-failed"?(0,y.jsx)(E.z,{type:"Data Source",name:j.displayName||D,message:j.errorMessage||"loading failed"}):j.status==="loading"||j.status==="reloading"?(0,y.jsx)(x.Ssf,{children:(0,y.jsx)(K.ZP,{icon:(0,y.jsx)(N.Z,{}),title:"".concat(j.displayName||D," ").concat(w("data source")," ").concat(w("loading"),"..."),extra:(0,y.jsx)(o.ZP,{type:"primary",onClick:function(){return j.reload().then(function(){p(),G(Math.random())})},children:w("Refresh")})})}):(0,y.jsx)(f.Provider,{value:j,children:C}):(0,y.jsx)(E.z,{type:"Data Source",name:D})};function n(){var d=(0,k.useContext)(f);return d}function r(){var d=(0,k.useContext)(f);return d==null?void 0:d.key}},49453:function(ze,se,e){"use strict";e.d(se,{AK:function(){return u.AK},FC:function(){return k.FC},LX:function(){return k.LX},NT:function(){return k.NT},UC:function(){return u.UC},Uv:function(){return c.Uv},fp:function(){return c.fp},kv:function(){return c.kv},nC:function(){return H.n},o2:function(){return H.o},up:function(){return c.up},wl:function(){return k.wl},ym:function(){return u.ym}});var H=e(35519),u=e(57638),k=e(44990),c=e(13511)},94804:function(ze,se,e){"use strict";e.d(se,{dq:function(){return m.dq},ym:function(){return H.ym},uz:function(){return N.uz},q4:function(){return N.q4},N4:function(){return N.N4},m9:function(){return k.m9},FE:function(){return H.FE},WH:function(){return H.WH},zW:function(){return x.z},sb:function(){return u.s},v_:function(){return k.v_},SY:function(){return c.S},Z:function(){return c.Z},YT:function(){return k.YT},Cd:function(){return I},rJ:function(){return V},lC:function(){return z},w4:function(){return H.w4},IX:function(){return H.IX},xw:function(){return H.xw},pD:function(){return x.p},YQ:function(){return H.YQ},DI:function(){return f.DI},vI:function(){return f.vI},E0:function(){return f.E0},Pl:function(){return E.P},yM:function(){return E.y},Ip:function(){return y.ym},UC:function(){return y.UC},hZ:function(){return m.hZ},KY:function(){return m.KY},T1:function(){return o.T1},eh:function(){return o.eh},o2:function(){return y.o2},i:function(){return K.i},NT:function(){return y.NT},AK:function(){return y.AK},up:function(){return y.up},kv:function(){return y.kv},LX:function(){return y.LX},Xc:function(){return H.Xc},j5:function(){return H.j5},nC:function(){return y.nC},sI:function(){return m.sI},Pd:function(){return H.Pd},K0:function(){return L.K},iv:function(){return t},GX:function(){return M.GX},Yj:function(){return M.Yj},H0:function(){return N.H0},Uv:function(){return y.Uv},Xo:function(){return H.Xo},Kx:function(){return H.Kx},Hy:function(){return k.Hy},ge:function(){return H.ge},d9:function(){return H.d9},RA:function(){return f.RA},Kv:function(){return f.Kv},oV:function(){return f.oV},nE:function(){return f.nE},bX:function(){return H.bX},eS:function(){return m.eS},zh:function(){return m.zh},hS:function(){return N.hS},xQ:function(){return N.xQ},Pt:function(){return N.Pt},wb:function(){return o.wb},wl:function(){return y.wl},on:function(){return M.FE},FC:function(){return y.FC},fp:function(){return y.fp},P5:function(){return H.P5},lb:function(){return H.lb},Rr:function(){return m.Rr}});var H=e(1836),u=e(52020),k=e(67668),c=e(65050),E=e(67836),x=e(36032),K=e(88996),o=e(14310),N=e(39742),m=e(87180),y=e(49453),f=e(88496),M=e(8341),n=e(97857),r=e.n(n),d=e(67294);function h(b,F,ee){var re,oe=b.block,J=b.isReadPretty,W=J===void 0?function(ie){var Y=ie.form;return Y.readPretty}:J,q=b.filter,fe=q===void 0?function(){return!0}:q,ne=b.getInitializerItem,pe=ne===void 0?function(){return{}}:ne,Se=b.getSchema,_e=Se===void 0?function(){return{}}:Se,de=ee.collectionManager,xe=ee.collection,te=ee.dataSourceManager,X=ee.actionContext,ve=(re=X.fieldSchema)===null||re===void 0?void 0:re["x-action"];return xe?F.map(function(ie){var Y=de.getCollection(ie.target),ue=te.collectionFieldInterfaceManager.getFieldInterface(ie.interface);return{collectionField:ie,context:r()(r()({},ee),{},{targetCollection:Y,collectionFieldInterface:ue})}}).filter(function(ie){var Y=ie.collectionField;return Y.interface}).filter(function(ie){var Y=ie.collectionField,ue=ie.context;return fe(Y,ue)}).map(function(ie){var Y,ue,Ce=ie.collectionField,Ee=ie.context,Oe={type:"string",title:(Ce==null||(Y=Ce.uiSchema)===null||Y===void 0?void 0:Y.title)||Ce.name,name:Ce.name,"x-component":"CollectionField","x-collection-field":"".concat(xe.name,".").concat(Ce.name),"x-read-pretty":Ce==null||(ue=Ce.uiSchema)===null||ue===void 0?void 0:ue["x-read-pretty"]},Re=_e(Ce,r()(r()({},Ee),{},{defaultSchema:Oe})),Ae=r()(r()({},Oe),Re||{});return{collectionField:Ce,schema:Ae,context:r()(r()({},Ee),{},{schema:Ae})}}).map(function(ie){var Y,ue=ie.collectionField,Ce=ie.context,Ee={type:"item",name:ue.name,title:(ue==null||(Y=ue.uiSchema)===null||Y===void 0?void 0:Y.title)||ue.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Re){var Ae,Te;(Ae=Ce.collectionFieldInterface)===null||Ae===void 0||(Te=Ae.schemaInitialize)===null||Te===void 0||Te.call(Ae,Re,{field:ue,block:oe,readPretty:W==null?void 0:W(Ce),action:ve,targetCollection:Ce.targetCollection})},schema:Ce.schema};return{collectionField:ue,context:Ce,defaultInitializerItem:Ee}}).map(function(ie){var Y=ie.collectionField,ue=ie.defaultInitializerItem,Ce=ie.context,Ee=pe(Y,r()(r()({},Ce),{},{defaultInitializerItem:ue}));return r()(r()({},ue),Ee||{})}):[]}var C=e(80844),D=e(26793),R=e(58837),Z=e(44990),w=e(76157),$=e(35746),p=e(13511),A=e(64774);function g(){var b=(0,D.$)(),F=b.t,ee=(0,R.Kx)(),re=(0,p.fp)(),oe=(0,w.XC)(),J=(0,Z.wl)(),W=(0,C.useForm)(),q=(0,C.useFieldSchema)(),fe=(0,$.d9)(),ne=(0,A.eJW)();return{t:F,compile:ne,actionContext:oe,fieldSchema:q,collection:ee,dataSource:J,form:W,collectionManager:fe,dataSourceManager:re}}var i=e(59582),G=e(85893),j=function(F){var ee=g(),re=ee.t,oe=ee.collection,J=oe.getFields(),W=h(F,J,ee);return(0,G.jsx)(i.iP,{title:re("Display fields"),children:W})},O=function(F){var ee=g(),re=ee.collection,oe=ee.t,J=ee.collectionManager,W=re.getParentCollectionsName();if(!W.length)return null;var q=W.map(function(fe){var ne=re.getParentCollectionFields(fe);if(ne.length===0)return null;var pe=J.getCollection(fe);return{parentCollection:pe,parentCollectionFields:ne}}).filter(Boolean).map(function(fe){var ne=fe,pe=ne.parentCollection,Se=ne.parentCollectionFields,_e=r()(r()({},ee),{},{collection:pe});return{type:"itemGroup",divider:!0,title:oe("Parent collection fields")+"("+ee.compile(pe.title)+")",children:h(F,Se,_e)}});return(0,G.jsx)(i.E0,{children:q})},l=e(13769),v=e.n(l),a=["filterAssociationField","filterSelfField","getSchema"],S=function(F){var ee=F.filterAssociationField,re=F.filterSelfField,oe=re===void 0?function(){return!0}:re,J=F.getSchema,W=v()(F,a),q=F.context,fe=q.collection,ne=q.t,pe=q.collectionManager,Se=fe.getFields(),_e=["o2o","oho","obo","m2o"],de=Se.filter(function(te){return _e.includes(te.interface)}).filter(function(te){return oe(te,F.context)});if(!de.length)return null;var xe=de.map(function(te){var X=pe.getCollection(te.target);if(!X)return null;var ve=X==null?void 0:X.getAllFields();return ve.length?{associationField:te,associationCollection:X,associationCollectionFields:ve}:null}).filter(Boolean).map(function(te){var X,ve,ie=te.associationField,Y=te.associationCollection,ue=te.associationCollectionFields,Ce=r()(r()({},F.context),{},{collection:Y}),Ee=function(Re,Ae){var Te=J(Re,Ae);return r()(r()({},Te||{}),{},{"x-read-pretty":!0,name:"".concat(ie.name,".").concat(Re.name),"x-collection-field":"".concat(fe.name,".").concat(ie.name,".").concat(Re.name)})};return{type:"subMenu",name:(X=ie.uiSchema)===null||X===void 0?void 0:X.title,title:(ve=ie.uiSchema)===null||ve===void 0?void 0:ve.title,children:h(r()(r()({},W),{},{filter:ee,getSchema:Ee}),ue,Ce)}});return xe.length?(0,G.jsx)(i.iP,{title:ne("Display association fields"),children:xe}):null},V=function(F){var ee=F.selfField,re=F.parentField,oe=F.associationField,J=F.block,W=g();return W.collection?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(j,r()(r()({block:J},ee),{},{context:r()(r()({},W),{},{collection:W.collection})})),re&&(0,G.jsx)(O,r()(r()({block:J},re),{},{context:r()(r()({},W),{},{collection:W.collection})})),oe&&(0,G.jsx)(S,r()(r()({block:J},oe),{},{context:r()(r()({},W),{},{collection:W.collection})}))]}):null},P=e(40341),t=function(F,ee,re){var oe=(0,P.nD)(F,"x-component","Kanban");return(0,P.nD)(oe,ee,re)},I=function(F){var ee=(F==null?void 0:F.block)||"Form",re={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},oe={remove:P.YT};return(0,G.jsx)(V,{block:ee,selfField:{filter:function(W){return!W.treeChildren},getSchema:function(W,q){var fe,ne=q.targetCollection,pe=(ne==null?void 0:ne.template)==="file",Se=ne,_e=W==null||(fe=W.uiSchema)===null||fe===void 0||(fe=fe["x-component-props"])===null||fe===void 0?void 0:fe.fieldNames;return r()(r()({},re),{},{"x-component-props":pe?{fieldNames:{label:"preview",value:"id"}}:Se&&_e?{fieldNames:r()(r()({},_e),{},{label:(ne==null?void 0:ne.titleField)||_e.label})}:{}})},getInitializerItem:function(){return r()(r()({},oe),{},{find:(F==null?void 0:F.block)==="Kanban"?t:void 0})}},parentField:{getSchema:function(){return re},getInitializerItem:function(){return oe}},associationField:{filterSelfField:function(W){return ee!=="Form"?!0:(W==null?void 0:W.interface)==="m2o"},filterAssociationField:function(W){return(W==null?void 0:W.interface)&&!["subTable"].includes(W==null?void 0:W.interface)&&!W.treeChildren},getSchema:function(){return re},getInitializerItem:function(){return oe}}})},B=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],z=function(F){function ee(re){var oe=re.fieldSchema,J=re.form,W=oe["x-component"]==="AssociationField.SubTable",q=W?J.readPretty:!0;return q}return(0,G.jsx)(V,{block:"Table",selfField:{isReadPretty:ee,filter:function(oe){return oe.interface!=="subTable"&&!oe.treeChildren},getSchema:function(oe,J){var W,q,fe=J.targetCollection,ne=J.fieldSchema,pe=J.form,Se=(fe==null?void 0:fe.template)==="file",_e=((W=oe.uiSchema)===null||W===void 0?void 0:W["x-component"])==="Preview",de=ne["x-component"]==="AssociationField.SubTable",xe=ee({fieldSchema:ne,form:pe});return{"x-component-props":Se?{fieldNames:{label:"preview",value:"id"}}:_e?{size:"small"}:{},"x-read-pretty":xe||((q=oe.uiSchema)===null||q===void 0?void 0:q["x-read-pretty"]),"x-decorator":de?B.includes(oe.interface)||Se?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:P.p$,remove:P.pP}}},parentField:{isReadPretty:ee,getSchema:function(oe,J){var W,q=J.targetCollection,fe=J.fieldSchema,ne=J.form,pe=(q==null?void 0:q.template)==="file",Se=fe["x-component"]==="AssociationField.SubTable",_e=ee({fieldSchema:fe,form:ne});return{"x-component-props":pe?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":_e||((W=oe.uiSchema)===null||W===void 0?void 0:W["x-read-pretty"]),"x-decorator":Se?B.includes(oe.interface)||pe?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:P.YT}}},associationField:{filterAssociationField:function(oe){return!["subTable"].includes(oe.interface)&&!oe.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:P.p$,remove:P.pP}}}})},L=e(22558)},8341:function(ze,se,e){"use strict";e.d(se,{FE:function(){return K},GX:function(){return o},Yj:function(){return x}});var H=e(9783),u=e.n(H),k=e(67294),c=e(57638),E="x-data-source",x=function(m,y){var f;return(f=m.collectionFieldInterfaceManager.getFieldInterface(y.interface))===null||f===void 0?void 0:f.titleUsable},K=function(m){var y=(0,k.useMemo)(function(){if(m&&m!==c.ym)return u()({},E,m)},[m]);return y},o=function(m){return m&&m!==c.ym?u()({},E,m):{}}},69803:function(ze,se,e){"use strict";e.d(se,{AL:function(){return w},C$:function(){return D},PE:function(){return C},jr:function(){return Z},uN:function(){return $},yq:function(){return R}});var H=e(15009),u=e.n(H),k=e(99289),c=e.n(k),E=e(12444),x=e.n(E),K=e(72004),o=e.n(K),N=e(31996),m=e.n(N),y=e(26037),f=e.n(y),M=e(67294),n=e(26793),r=e(31601),d=e(15585),h=e(85893),C=(0,M.createContext)({getTitle:function(){return""},setTitle:function(){}});C.displayName="DocumentTitleContext";var D=M.memo(function(p){var A=p.addonBefore,g=p.addonAfter,i=(0,n.$)(),G=i.t,j=M.useRef(""),O=(0,M.useCallback)(function(){return j.current},[]),l=(0,M.useCallback)(function(a){document.title=j.current="".concat(A?" - ".concat(G(A)):"").concat(G(a||"")).concat(g?" - ".concat(G(g)):"")},[g,A,G]),v=(0,M.useMemo)(function(){return{getTitle:O,setTitle:l}},[O,l]);return(0,h.jsx)(C.Provider,{value:v,children:p.children})});D.displayName="DocumentTitleProvider";var R=function(A){var g,i=(0,d.HX)();return(0,h.jsx)(D,{addonAfter:i==null||(g=i.data)===null||g===void 0||(g=g.data)===null||g===void 0?void 0:g.title,children:A.children})},Z=function(){return(0,M.useContext)(C)},w=function(A){var g=Z(),i=g.setTitle;(0,M.useEffect)(function(){i(A)},[i,A])},$=function(p){m()(g,p);var A=f()(g);function g(){return x()(this,g),A.apply(this,arguments)}return o()(g,[{key:"load",value:function(){var i=c()(u()().mark(function j(){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this.app.use(R,this.options);case 1:case"end":return l.stop()}},j,this)}));function G(){return i.apply(this,arguments)}return G}()}]),g}(r.S)},67205:function(ze,se,e){"use strict";e.d(se,{XA:function(){return h},kO:function(){return D},vY:function(){return C}});var H=e(97857),u=e.n(H),k=e(19632),c=e.n(k),E=e(80844),x=e(96486),K=e.n(x),o=e(58837),N=e(39742),m=e(4277),y=e(64774),f=e(87714),M=e(67294),n=e(85893),r=function(R){return R.AND="$and",R.OR="$or",R}(r||{}),d=(0,M.createContext)(null);d.displayName="FilterContext";var h=M.memo(function(R){var Z=R.children,w=M.useRef([]),$=(0,M.useCallback)(function(g){typeof g=="function"?w.current=g(w.current):w.current=g},[]),p=(0,M.useCallback)(function(){return w.current},[]),A=(0,M.useMemo)(function(){return{getDataBlocks:p,setDataBlocks:$}},[p,$]);return(0,n.jsx)(d.Provider,{value:A,children:Z})});h.displayName="FilterBlockProvider";var C=function(Z){var w,$=Z.children,p=Z.params,A=(0,o.Kx)(),g=D(),i=g.recordDataBlocks,G=(0,N.Pt)(),j=G.getDataBlockRequest,O=(0,E.useField)(),l=(0,E.useFieldSchema)(),v=(0,f.Fp)(),a=(0,M.useRef)(null),S=(0,m.tU)(),V=O&&O.decoratorType!=="FilterFormBlockProvider"&&O.decoratorType!=="FormBlockProvider"&&O.decoratorProps.blockType!=="filter",P=(0,M.useCallback)(function(){var t=j();i({uid:l["x-uid"],title:O.componentProps.title,doFilter:t.runAsync,collection:A,associatedFields:v,foreignKeyFields:A==null?void 0:A.getFields("isForeignKey"),defaultFilter:(p==null?void 0:p.filter)||{},service:t,dom:a.current,dataLoadingMode:S,clearFilter:function(B){var z,L,b=((z=this.service.params)===null||z===void 0?void 0:z[0])||{},F=((L=this.service.params)===null||L===void 0||(L=L[1])===null||L===void 0?void 0:L.filters)||{};delete F[B];var ee=(0,f.EO)([].concat(c()(Object.values(F).map(function(re){return(0,y.WmO)(re)})),[(p==null?void 0:p.filter)||{}]));this.service.run(u()(u()({},b),{},{page:1,filter:ee}),{filters:F})},clearData:function(){this.service.mutate(void 0)}})},[v,A,S,O==null||(w=O.componentProps)===null||w===void 0?void 0:w.title,l,p==null?void 0:p.filter,i,j]);return(0,M.useEffect)(function(){V&&P()},[P,V]),(0,n.jsx)("div",{ref:a,children:$})},D=function(){var Z=M.useContext(d),w=(0,M.useCallback)(function(){return(Z==null?void 0:Z.getDataBlocks())||[]},[Z]),$=(0,M.useCallback)(function(A){var g=Z==null?void 0:Z.getDataBlocks().find(function(i){return i.uid===A.uid});if(g){Object.assign(g,A);return}Z==null||Z.setDataBlocks(function(i){return[].concat(c()(i),[A])})},[Z]),p=(0,M.useCallback)(function(A){Z!=null&&Z.getDataBlocks().every(function(g){return g.uid!==A})||Z==null||Z.setDataBlocks(function(g){return g.filter(function(i){return i.uid!==A})})},[Z]);return Z?{recordDataBlocks:$,getDataBlocks:w,removeDataBlock:p,inProvider:!0}:{inProvider:!1,recordDataBlocks:K().noop,getDataBlocks:w,removeDataBlock:K().noop}}},18386:function(ze,se,e){"use strict";e.d(se,{$f:function(){return u.$f},EO:function(){return u.EO},Fp:function(){return u.Fp},Op:function(){return u.Op},Um:function(){return u.Um},XA:function(){return H.XA},hi:function(){return u.hi},jE:function(){return u.jE},kO:function(){return H.kO},vC:function(){return u.vC},vY:function(){return H.vY},x5:function(){return u.x5},yr:function(){return u.yr},zv:function(){return u.zv}});var H=e(67205),u=e(87714)},87714:function(ze,se,e){"use strict";e.d(se,{$f:function(){return G},EO:function(){return w},Fp:function(){return i},Op:function(){return l},Um:function(){return A},hi:function(){return O},jE:function(){return g},vC:function(){return Z},x5:function(){return $},yr:function(){return j},zv:function(){return p}});var H=e(97857),u=e.n(H),k=e(19632),c=e.n(k),E=e(5574),x=e.n(E),K=e(9783),o=e.n(K),N=e(52677),m=e.n(N),y=e(80844),f=e(84157),M=e(96486),n=e.n(M),r=e(67294),d=e(10097),h=e(58837),C=e(13511),D=e(64774),R=e(67205),Z=function(v){return v[v.FORM=0]="FORM",v[v.TABLE=1]="TABLE",v[v.TREE=2]="TREE",v[v.COLLAPSE=3]="COLLAPSE",v}({}),w=function(a){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",V=a.filter(function(P){if(P&&m()(P)==="object"&&!Array.isArray(P))return Object.values(P).filter(function(t){return t!==void 0}).length});return V.length===0?{}:V.length===1?V[0]:o()({},S,V)},$=function(a,S){var V;return(V=S.associatedFields)===null||V===void 0?void 0:V.filter(function(P){return a==null?void 0:a.some(function(t){return t===P.target})})},p=function(a,S){var V;return(V=S.foreignKeyFields)===null||V===void 0?void 0:V.filter(function(P){return a.fields.some(function(t){return t.type!=="belongsTo"&&t.foreignKey===P.name})})},A=function(a){var S=(0,R.kO)(),V=S.getDataBlocks,P=(0,y.useFieldSchema)(),t=(0,h.Kx)(),I=(0,C.Uv)(),B=I.getAllCollectionsInheritChain;if(a===Z.FORM||a===Z.COLLAPSE)return V().filter(function(z){return j(z.collection,t)});if(a===Z.TABLE||a===Z.TREE)return V().filter(function(z){var L,b;return P["x-uid"]!==z.uid&&(j(z.collection,t)||((L=$(B(t.name,t.dataSource),z))===null||L===void 0?void 0:L.length)||((b=p(t,z))===null||b===void 0?void 0:b.length))})},g=function(a,S,V,P){a=(0,f.flatten)(a,{breakOn:function(B){var z=B.value,L=B.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(S[L]))return!0;var b=V("".concat(P,".").concat(L));if(b!=null&&b.target){if(Array.isArray(z))return!0;var F=b.targetKey||"id";if(z&&z[F]!=null)return!0}return!1}});var t={$and:Object.keys(a).map(function(I){var B=n().get(a,I),z=V("".concat(P,".").concat(I));return z!=null&&z.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(z.type)&&(B=(0,f.getValuesByPath)(B,z.targetKey||"id"),I="".concat(I,".").concat(z.targetKey||"id"),(z==null?void 0:z.interface)==="chinaRegion"&&(B=n().last(B))),!B&&B!==0&&B!==!1?null:o()({},I,o()({},S[I]||"$eq",B))}).filter(Boolean)};return t},i=function(){var a;return((a=(0,h.Kx)())===null||a===void 0?void 0:a.fields.filter(function(S){return G(S)}))||[]},G=function(a){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(a==null?void 0:a.interface)},j=function(a,S){return a.name===S.name&&a.dataSource===S.dataSource},O=function(){var a=(0,y.useFieldSchema)(),S=(0,R.kO)(),V=S.getDataBlocks,P=(0,d.findFilterTargets)(a),t=P.targets,I=P.uid,B=V(),z=(0,r.useState)(function(){return t&&t.some(function(oe){return B.some(function(J){return J.uid===oe.uid})})}),L=x()(z,2),b=L[0],F=L[1],ee=Object.keys(t||{});(0,r.useEffect)(function(){F(t&&t.some(function(oe){return B.some(function(J){return J.uid===oe.uid})}))},[ee.length,t,B]);var re=(0,r.useCallback)(function(oe){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";B.forEach(function(q){var fe,ne,pe=t.find(function(xe){return xe.uid===q.uid});if(pe){n().isFunction(J)&&(J=J(pe)),n().isFunction(W)&&(W=W(pe));var Se=((fe=q.service.params)===null||fe===void 0?void 0:fe[0])||{},_e=((ne=q.service.params)===null||ne===void 0||(ne=ne[1])===null||ne===void 0?void 0:ne.filters)||{};oe!==void 0?_e[I]={$and:[o()({},J,o()({},W,oe))]}:delete _e[I];var de=w([].concat(c()(Object.values(_e).map(function(xe){return(0,D.WmO)(xe)})),[q.defaultFilter]));q.doFilter(u()(u()({},Se),{},{page:1,filter:de}),{filters:_e})}})},[B,t,I]);return{isConnected:b,doFilter:re}},l=function(a){for(;a;){if(a["x-filter-targets"])return a["x-decorator"]==="FilterFormBlockProvider";a=a.parent}return!1}},5772:function(ze,se,e){"use strict";e.d(se,{C:function(){return c},z:function(){return k}});var H=e(67294),u=e(85893),k=H.createContext(null),c=function(x){return(0,u.jsx)(k.Provider,{value:x,children:x.children})}},7686:function(ze,se,e){"use strict";e.d(se,{P:function(){return k}});var H=e(67294),u=e(5772),k=function(){return(0,H.useContext)(u.z)||{}}},53285:function(ze,se,e){"use strict";e.d(se,{Cm:function(){return H.C},P5:function(){return u.P},z_:function(){return H.z}});var H=e(5772),u=e(7686)},57105:function(ze,se,e){"use strict";e.d(se,{_9:function(){return B},$:function(){return re},sq:function(){return J},ri:function(){return V},mz:function(){return I},cl:function(){return oe},QJ:function(){return P},gR:function(){return t}});var H=e(97857),u=e.n(H),k=e(80844),c=e(84327),E=e(90105),x=e(96486),K=e.n(x),o=e(67294),N=e(35746),m=e(58837),y=e(93323),f=e(64910),M=e(96365),n=e(52677),r=e.n(n),d=e(85893),h=function(q,fe){if(!(!q&&!fe)&&!(0,c.isFn)(q))return(0,d.jsxs)(o.Fragment,{children:[q,fe]})},C=function(q){return q&&(r()(q)==="object"||typeof q=="function")},D=function(q,fe,ne){return(0,c.isFn)(q)?q(fe,ne):q},R=function(q){var fe,ne=(0,o.useContext)(k.SchemaComponentsContext),pe=q.field,Se=h(D(q.children,pe,pe.form),(fe=pe.content)!==null&&fe!==void 0?fe:pe.componentProps.children);if(pe.display!=="visible")return null;var _e=function(X){var ve;return C(X)?X:(ve=c.FormPath.getIn(ne,X))!==null&&ve!==void 0?ve:X},de=function(X){return pe.decoratorType?o.createElement(_e(pe.decoratorType),pe.decoratorProps,X):(0,d.jsx)(o.Fragment,{children:X})},xe=function(){return pe.componentType?o.createElement(_e(pe.componentType),u()(u()({},pe.componentProps),{},{value:pe.value}),Se):Se};return de(xe())};R.displayName="NocoBaseReactiveInternal";var Z=R;Z.displayName="NocoBaseReactiveField";var w=e(12444),$=e.n(w),p=e(72004),A=e.n(p),g=e(9783),i=e.n(g);function G(W){return new j(W)}var j=function(){function W(q){$()(this,W),i()(this,"props",void 0),i()(this,"initialized",void 0),i()(this,"loading",void 0),i()(this,"validating",void 0),i()(this,"submitting",void 0),i()(this,"selfModified",void 0),i()(this,"active",void 0),i()(this,"visited",void 0),i()(this,"mounted",void 0),i()(this,"unmounted",void 0),i()(this,"inputValues",void 0),i()(this,"inputValue",void 0),i()(this,"feedbacks",void 0),i()(this,"title",void 0),i()(this,"description",void 0),i()(this,"display",void 0),i()(this,"pattern",void 0),i()(this,"editable",void 0),i()(this,"disabled",void 0),i()(this,"readOnly",void 0),i()(this,"readPretty",void 0),i()(this,"visible",void 0),i()(this,"hidden",void 0),i()(this,"dataSource",void 0),i()(this,"validator",void 0),i()(this,"required",void 0),i()(this,"content",void 0),i()(this,"initialValue",void 0),i()(this,"value",void 0),i()(this,"data",void 0),i()(this,"decorator",void 0),i()(this,"component",void 0),i()(this,"decoratorProps",void 0),i()(this,"componentProps",void 0),i()(this,"decoratorType",void 0),i()(this,"componentType",void 0),i()(this,"path",void 0),i()(this,"form",void 0),i()(this,"address",void 0),this.props=q,this.initialize()}return A()(W,[{key:"initialize",value:function(){var fe,ne,pe,Se,_e,de,xe,te,X,ve,ie,Y,ue,Ce,Ee,Oe,Re,Ae,Te,Pe,ye=this.props.compile;this.pattern="readPretty",this.readPretty=!0,this.initialized=!0,this.loading=!1,this.validating=!1,this.submitting=!1,this.selfModified=!1,this.active=!1,this.visited=!0,this.mounted=!0,this.unmounted=!1,this.inputValues=[],this.inputValue=null,this.feedbacks=[],this.title=ye(this.props.title||((fe=this.props.schema)===null||fe===void 0?void 0:fe.title)),this.description=ye(this.props.description||((ne=this.props.schema)===null||ne===void 0?void 0:ne.description)),this.display="visible",this.editable=this.props.editable||((pe=this.props.schema)===null||pe===void 0?void 0:pe["x-editable"]),this.disabled=this.props.disabled||((Se=this.props.schema)===null||Se===void 0?void 0:Se["x-disabled"]),this.readOnly=this.props.readOnly||((_e=this.props.schema)===null||_e===void 0?void 0:_e["x-read-only"]),this.visible=this.props.visible||((de=this.props.schema)===null||de===void 0?void 0:de["x-visible"]),this.hidden=this.props.hidden||((xe=this.props.schema)===null||xe===void 0?void 0:xe["x-hidden"]),this.dataSource=ye(this.props.dataSource||((te=this.props.schema)===null||te===void 0?void 0:te.enum)),this.validator=this.props.validator,this.required=this.props.required||!!((X=this.props.schema)!==null&&X!==void 0&&X.required),this.content=ye(this.props.content||((ve=this.props.schema)===null||ve===void 0?void 0:ve["x-content"])),this.initialValue=ye(this.props.initialValue||((ie=this.props.schema)===null||ie===void 0?void 0:ie.default)),this.value=ye(this.props.value),this.data=this.props.data||((Y=this.props.schema)===null||Y===void 0?void 0:Y["x-data"]),this.decorator=this.props.decorator?(0,c.toArr)(this.props.decorator):[(ue=this.props.schema)===null||ue===void 0?void 0:ue["x-decorator"],(Ce=this.props.schema)===null||Ce===void 0?void 0:Ce["x-decorator-props"]],this.component=this.props.component?(0,c.toArr)(this.props.component):[(Ee=this.props.schema)===null||Ee===void 0?void 0:Ee["x-component"],(Oe=this.props.schema)===null||Oe===void 0?void 0:Oe["x-component-props"]],this.decoratorProps=((Re=this.props.schema)===null||Re===void 0?void 0:Re["x-decorator-props"])||{},this.componentProps=((Ae=this.props.schema)===null||Ae===void 0?void 0:Ae["x-component-props"])||{},this.decoratorType=(Te=this.props.schema)===null||Te===void 0?void 0:Te["x-decorator"],this.componentType=(Pe=this.props.schema)===null||Pe===void 0?void 0:Pe["x-component"],this.path={},this.form={},this.address={concat:K().noop}}}]),W}(),O=function(q){var fe=(0,M.e)(),ne=(0,k.useFieldSchema)(),pe=(0,o.useMemo)(function(){return G(u()(u()({},q),{},{compile:fe}))},[]);return Object.assign(pe.componentProps,ne["x-component-props"]),pe.value=q.value,(0,d.jsx)(k.FieldContext.Provider,{value:pe,children:(0,d.jsx)(Z,{field:pe,children:q.children})})},l=o.createContext({}),v=o.createContext(K().noop),a=function(q){var fe=q.children,ne=q.refresh,pe=t(),Se=(0,o.useCallback)(function(_e){ne(),_e!=null&&_e.refreshParentSchema&&(pe==null||pe())},[pe,ne]);return(0,d.jsx)(v.Provider,{value:Se,children:fe})},S=o.createContext(K().noop),V=function(q){var fe=q.children,ne=q.refresh;return(0,d.jsx)(S.Provider,{value:ne,children:fe})},P=function(){return o.useContext(S)},t=function(){return o.useContext(v)},I=function(){return o.useContext(l)||{}},B=function(q){var fe=q.children,ne=q.fieldSchema,pe=(0,m.Kx)(),Se=(0,N.d9)(),_e=ne==null?void 0:ne.name,de=(0,o.useMemo)(function(){var xe;if(!pe)return null;var te=ne==null||(xe=ne["x-component-props"])===null||xe===void 0?void 0:xe.field;return Se.getCollectionField(ne==null?void 0:ne["x-collection-field"])||te||pe.getField((te==null?void 0:te.name)||_e)},[pe,Se,ne,_e]);return(0,d.jsx)(l.Provider,{value:de,children:fe})},z=K().memoize(function(W,q){return W.toFieldProps({scope:q})}),L=function(q){var fe=(0,k.useExpressionScope)();return z(q,fe)},b=function(q){var fe=(0,k.useField)();if(q.onlyRenderProperties){var ne;return q.basePath||(fe==null||(ne=fe.address)===null||ne===void 0?void 0:ne.concat(q.name))}return q.basePath||(fe==null?void 0:fe.address)},F=function(q,fe,ne){var pe=q.toJSON();if(ne){if(!pe.properties)return q;var Se=Object.keys(pe.properties)[0],_e=Object.values(pe.properties)[0];return pe.properties[Se]=(0,c.merge)(K().omit(fe,"type","x-read-pretty"),_e),new k.Schema(pe)}return new k.Schema((0,c.merge)(K().omit(fe,"type","x-read-pretty"),pe))},ee=function(q){var fe=q.schema,ne=q.field,pe=q.basePath,Se=q.mapProperties,_e=q.filterProperties,de=q.propsRecursion,xe=q.values,te=q.isUseFormilyField,X=k.Schema.getOrderProperties(fe);return X.length?(0,d.jsx)(o.Fragment,{children:X.map(function(ve,ie){var Y=ve.schema,ue=ve.key,Ce=(ne==null?void 0:ne.address)||pe,Ee=Y;if((0,c.isFn)(Se)){var Oe=Se(Y,ue);Oe&&(Ee=Oe)}if((0,c.isFn)(_e)&&_e(Ee,ue)===!1)return null;var Re=(0,c.isBool)(de)&&de?(0,d.jsx)(J,{propsRecursion:!0,filterProperties:_e,mapProperties:Se,schema:Ee,name:ue,basePath:Ce,values:K().get(xe,ue),isUseFormilyField:te}):(0,d.jsx)(J,{schema:Ee,name:ue,basePath:Ce,values:K().get(xe,ue),isUseFormilyField:te});return Ee["x-component"]==="CollectionField"?(0,d.jsx)(re.Provider,{value:!0,children:(0,d.jsx)(B,{fieldSchema:Ee,children:Re})},"".concat(ie,"-").concat(ue)):(0,d.jsx)(re.Provider,{value:!1,children:(0,d.jsx)(l.Provider,{value:f.Nu,children:Re})},"".concat(ie,"-").concat(ue))})}):null},re=o.createContext(!1),oe=function(){return o.useContext(re)},J=o.memo(function(W){var q=W.schema,fe=W.name,ne=W.onlyRenderProperties,pe=W.onlyRenderSelf,Se=W.mapProperties,_e=W.filterProperties,de=W.propsRecursion,xe=W.values,te=W.isUseFormilyField,X=te===void 0?!0:te,ve=W.uiSchema,ie=b(W),Y=(0,o.useRef)(null),ue=(0,o.useMemo)(function(){return Y.current=null,new k.Schema(q)},[q]),Ce=I(),Ee=Ce.uiSchema,Oe=Ce.defaultValue,Re=(0,E.Z)(),Ae=(0,o.useContext)(y.A),Te=Ae.onChange,Pe=Y.current||ue,ye=(0,o.useCallback)(function(){var ae=Pe.parent;Y.current=new k.Schema(Pe.toJSON(),ae),ae!=null&&ae.properties&&Object.keys(ae.properties).forEach(function(Ke){Ke===Pe.name&&(ae.properties[Ke]=Y.current)}),Re(),Te==null||Te()},[Pe,Te,Re]),le=(0,o.useMemo)(function(){return ve?F(Pe,ve,ne):Ee?(Ee.default=Oe,F(Pe,Ee,ne)):Pe},[Ee,Oe,Pe,ne,ve]),T=L(le),he=function(Ke){if(!pe)return ee({schema:Pe,field:Ke,basePath:ie,mapProperties:Se,filterProperties:_e,propsRecursion:de,values:xe,isUseFormilyField:X})},De=function(){return(0,c.isValid)(fe)?le.type==="object"?ne?he():(0,d.jsx)(k.ObjectField,u()(u()({},T),{},{name:fe,basePath:ie,children:he})):le.type==="array"?(0,d.jsx)(k.ArrayField,u()(u()({},T),{},{name:fe,basePath:ie})):le.type==="void"?ne?he():(0,d.jsx)(k.VoidField,u()(u()({},T),{},{name:fe,basePath:ie,children:he})):X?(0,d.jsx)(k.Field,u()(u()({},T),{},{name:fe,basePath:ie})):(0,d.jsx)(O,{name:fe,value:xe,initialValue:xe,basePath:ie,schema:le}):he()};return Pe?(0,d.jsx)(k.SchemaContext.Provider,{value:Pe,children:(0,d.jsx)(a,{refresh:ye,children:De()})}):(0,d.jsx)(o.Fragment,{})});J.displayName="NocoBaseRecursionField"},69962:function(ze,se,e){"use strict";e.d(se,{wI:function(){return w},YO:function(){return A},kK:function(){return M},uH:function(){return y},mg:function(){return p}});var H=e(5574),u=e.n(H),k=e(9361),c=e(28459),E=e(96486),x=e.n(E),K=e(67294),o=e(97857),N=e.n(o),m={name:"",token:{colorPrimaryHeader:"#001529",colorBgHeader:"#001529",colorBgHeaderMenuHover:"#ffffff1a",colorBgHeaderMenuActive:"#ffffff1a",colorTextHeaderMenu:"#ffffffa6",colorTextHeaderMenuHover:"#ffffff",colorTextHeaderMenuActive:"#ffffff",colorSettings:"#F18B62",colorBgSettingsHover:"rgba(241, 139, 98, 0.06)",colorBorderSettingsHover:"rgba(241, 139, 98, 0.3)",motionUnit:.03,motion:!0}},y=m;function f(g){var i;return(i=g.token)!==null&&i!==void 0&&i.colorSettings||(g.token=N()(N()({},g.token),y.token)),g}var M=f,n=function(i,G){var j=G||k.Z.defaultAlgorithm(i);return j.paddingPageHorizontal===void 0&&(j.paddingPageHorizontal=j.sizeLG),j.paddingPageVertical===void 0&&(j.paddingPageVertical=j.sizeLG),j.paddingPopupHorizontal===void 0&&(j.paddingPopupHorizontal=j.sizeLG),j.paddingPopupVertical===void 0&&(j.paddingPopupVertical=j.size),j.marginBlock===void 0&&(j.marginBlock=j.sizeLG),j.borderRadiusBlock===void 0&&(j.borderRadiusBlock=j.borderRadiusLG),j},r=function(i){return Array.isArray(i.algorithm)?i.algorithm.includes(n)||i.algorithm.push(n):i.algorithm=[i.algorithm,n].filter(Boolean),i.algorithm=i.algorithm.filter(Boolean),i},d=e(85893),h=e(3321),C=e(12174),D=e(29939),R=(0,K.memo)(function(g){var i=g.children,G=(0,D.qD)(),j=h.Z.useApp(),O=j.notification,l=(0,C.LY)();return(0,K.useEffect)(function(){l.notification=O,G.notification=O},[O]),(0,d.jsx)(d.Fragment,{children:i})});R.displayName="AppInner";var Z=function(i){var G=i.children,j=i.className,O=i.style;return(0,d.jsx)(h.Z,{className:j,style:N()({height:"100%"},O),children:(0,d.jsx)(R,{children:G})})};Z.displayName="AntdAppProvider";var w=Z,$=(0,K.createContext)(null);$.displayName="GlobalThemeContext";var p=function(){return K.useContext($)||{theme:{},isDarkTheme:!1}},A=function(i){var G=i.children,j=i.theme,O=K.useState(j||y),l=u()(O,2),v=l[0],a=l[1],S=(0,K.useRef)(null),V=(0,K.useRef)(null),P=(0,K.useMemo)(function(){var b=v==null?void 0:v.algorithm;return Array.isArray(b)?b.includes(k.Z.darkAlgorithm):b===k.Z.darkAlgorithm},[v==null?void 0:v.algorithm]),t=(0,K.useCallback)(function(b){V.current=b&&x().cloneDeep(b)},[]),I=(0,K.useCallback)(function(){return V.current},[]),B=(0,K.useCallback)(function(b){S.current=b&&x().cloneDeep(b)},[]),z=(0,K.useCallback)(function(){return S.current},[]),L=(0,K.useMemo)(function(){return{theme:r(v),setTheme:a,setCurrentSettingTheme:B,getCurrentSettingTheme:z,setCurrentEditingTheme:t,getCurrentEditingTheme:I,isDarkTheme:P}},[I,z,P,t,B,v]);return(0,d.jsx)($.Provider,{value:L,children:(0,d.jsx)(c.ZP,{theme:M(L.theme),children:G})})}},15503:function(ze,se,e){"use strict";e.d(se,{M:function(){return r},t:function(){return d}});var H=e(97857),u=e.n(H),k=e(96695),c=e.n(k),E=e(80844),x=e(96486),K=e.n(x),o=e(67294),N=e(64774),m=e(57953),y=e(85893),f=function(){},M=function(C,D,R){var Z=void 0;return K().isFunction(C)?Z=C:(Z=D[C],Z||console.error("".concat(R," is not registered"))),Z||f},n=function(C,D){if(!C)return f;if(K().isFunction(C))return C;var R=C.split("."),Z,w=c()(R),$;try{for(w.s();!($=w.n()).done;){var p=$.value;Z=M(p,Z||D,C)}}catch(A){w.e(A)}finally{w.f()}return Z};function r(h,C){var D=(0,E.useExpressionScope)(),R=n(h,D)(C);return R}function d(h){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=C.displayName||h.displayName||h.name,R=function Z(w){var $=(0,N.ngQ)(),p=$.dn,A=$.findComponent,g=(0,o.useMemo)(function(){var j=p.getSchemaAttribute("x-component"),O=p.getSchemaAttribute("x-decorator"),l=p.getSchemaAttribute("x-use-component-props"),v=p.getSchemaAttribute("x-use-decorator-props");if(j&&l&&A(j)===Z)return l;if(O&&v&&A(O)===Z)return v},[p]),i=r(g,w),G=(0,o.useMemo)(function(){return u()(u()({},w),i)},[i,w]);return(0,y.jsx)(o.Suspense,{fallback:(0,y.jsx)(m.Z,{}),children:(0,y.jsx)(h,u()(u()({},G),{},{children:w.children}))})};return h.displayName=D,R.displayName="withSchemaProps(".concat(D,")"),R}},83335:function(ze,se,e){"use strict";e.d(se,{C:function(){return o}});var H=e(97857),u=e.n(H),k=e(48054),c=e(39742),E=e(67294),x=e(85893),K=function(){var m;return!!((m=(0,c.hS)())!==null&&m!==void 0&&m.loading)},o=function(m,y){var f=y||{},M=f.useLoading,n=M===void 0?K:M,r=f.displayName,d=f.SkeletonComponent,h=d===void 0?k.Z:d,C=E.memo(function(D){var R=n(),Z=(0,E.useRef)(!1);return!Z.current&&R?(0,x.jsx)(h,{}):(Z.current=!0,(0,x.jsx)(m,u()({},D)))});return C.displayName=r||"".concat(m.displayName,"(withSkeletonComponent)")||0,C}},29392:function(ze,se,e){"use strict";e.d(se,{W:function(){return H},S:function(){return c}});var H=function(){return"nocobase-admin-menu"},u=e(67294),k=function(){var x=(0,u.useRef)("initial-scale=0.1"),K=(0,u.useRef)();(0,u.useEffect)(function(){var N=document.querySelector('meta[name="viewport"]');N?x.current=N.content:(N=document.createElement("meta"),N.name="viewport"),N&&(N.content="width=device-width, initial-scale=1, user-scalable=0",K.current=N)},[]);var o=function(){K.current&&(K.current.content=x.current)};return{metaRef:K,restore:o}};function c(){var E=k(),x=E.metaRef,K=E.restore;(0,u.useEffect)(function(){if(x.current)return document.head.insertBefore(x.current,document.head.firstChild),function(){K()}},[])}},74820:function(ze,se,e){"use strict";e.d(se,{d5:function(){return N},iX:function(){return y},nu:function(){return m}});var H=e(19632),u=e.n(H),k=e(96486),c=e.n(k),E=e(67294),x=e(85893),K=(0,E.createContext)(null);K.displayName="GetMenuItemContext";var o=(0,E.createContext)(null);o.displayName="GetMenuItemsContext";var N=function(){return(0,E.useContext)(K)||{}},m=function(){return(0,E.useContext)(o)||{}},y=function(){var M=(0,E.useRef)([]),n=(0,E.useRef)(null),r=(0,E.useRef)(!1),d=(0,E.useCallback)(function(R){var Z=R.limitCount;return r.current?(r.current=!1,n.current?n.current():Z&&M.current.length>Z?(0,x.jsx)(x.Fragment,{children:M.current.slice(0,Z).map(function(w,$){return(0,x.jsx)(w,{},$)})}):(0,x.jsx)(x.Fragment,{children:M.current.map(function(w,$){return(0,x.jsx)(w,{},$)})})):null},[]),h=(0,E.useCallback)(function(R){var Z=[],w=function(p){Z.push(p),Z.sort(function(A,g){return(A.order||0)-(g.order||0)})};return r.current=!0,n.current=function(){var $=Z.filter(function(p){return p.notdelete}).map(function(p){return c().omit(p,"notdelete")});return Z.length=0,Z.push.apply(Z,u()($)),(0,x.jsx)(o.Provider,{value:{pushMenuItem:w},children:R()})},Z},[]),C=(0,E.useCallback)(function(R){var Z={},w=function(p){Object.assign(Z,p)};return r.current=!0,M.current.push(function(){return(0,x.jsx)(K.Provider,{value:{collectMenuItem:w},children:R()})}),Z},[]),D=(0,E.useCallback)(function(){M.current=[]},[]);return{Component:d,getMenuItems:h,getMenuItem:C,clean:D}}},71098:function(ze,se,e){"use strict";e.d(se,{j:function(){return o}});var H=e(12610),u=e(85418),k=e(67294),c=e(12174),E=e(35310),x=e(15585),K=e(85893);function o(){var N,m,y=(0,x.HX)()||{},f=y.data,M=(0,c.LY)();return(f==null||(N=f.data)===null||N===void 0?void 0:N.enabledLanguages.length)>1&&(0,K.jsx)(u.Z,{menu:{onClick:function(r){M.auth.setLocale(r.key),window.location.reload()},selectable:!0,defaultSelectedKeys:[M.auth.locale],items:f==null||(m=f.data)===null||m===void 0||(m=m.enabledLanguages)===null||m===void 0?void 0:m.map(function(n){return{key:n,label:E.ZP[n].label}})},children:(0,K.jsx)(H.Z,{style:{fontSize:24}})})}},58384:function(ze,se,e){"use strict";e.d(se,{a:function(){return E},v:function(){return c}});var H=e(36609),u=e(57715),k=e(35310);function c(K,o){return o?"{{t(".concat(JSON.stringify(K),", ").concat(JSON.stringify(o),")}}"):"{{t(".concat(JSON.stringify(K),")}}")}var E=H.default.createInstance(),x={};Object.keys(k.ZP).forEach(function(K){x[K]=k.ZP[K].resources}),E.use(u.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(ze,se,e){"use strict";e.d(se,{JO:function(){return d},OL:function(){return n},ci:function(){return f},q5:function(){return M},fm:function(){return r}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(19359),x=e(16165),K=e(91321),o=e(67294),N=e(85893),m=["type","component"],y,f=new Map;function M(C){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;f.set(C.toLowerCase(),D)}function n(C){return C?f.has(C.toLowerCase()):!1}function r(C){Object.keys(C).forEach(function(D){M(D,C[D])})}Object.keys(E).forEach(function(C){C.endsWith("Outlined")&&M(C,E[C])});var d=function(D){var R=D.type,Z=R===void 0?"":R,w=D.component,$=c()(D,m);if(w)return(0,N.jsx)(x.Z,u()({component:w},$));if(Z&&f.has(Z.toLowerCase())){var p=f.get(Z.toLowerCase());return(0,N.jsx)(p,u()({},$))}return Z&&y?(0,N.jsx)(y,{type:Z}):null};d.createFromIconfontCN=function(C){y=(0,K.Z)(C)},d.register=function(C){r(C)};var h=null},21143:function(ze,se,e){"use strict";e.r(se),e.d(se,{ACLActionParamsContext:function(){return R.R1},ACLActionProvider:function(){return R.mE},ACLCollectionFieldProvider:function(){return R.tq},ACLCollectionProvider:function(){return R.Hh},ACLContext:function(){return R.R3},ACLCustomContext:function(){return R.a3},ACLMenuItemProvider:function(){return R.fJ},ACLPane:function(){return R.$M},ACLPlugin:function(){return R.pz},ACLProvider:function(){return R.Z5},ACLRolesCheckProvider:function(){return R.VV},ADMIN_SETTINGS_KEY:function(){return p.eB},ADMIN_SETTINGS_PATH:function(){return p.oz},APIClient:function(){return w.lP},APIClientContext:function(){return w._Z},APIClientProvider:function(){return w.Xb},Action:function(){return W.aUM},ActionBar:function(){return W.olz},ActionBarAssociationFilterAction:function(){return q.cm},ActionBarProvider:function(){return W.N0i},ActionContext:function(){return W.fWn},ActionContextNoRerender:function(){return W.mlL},ActionContextProvider:function(){return W.EIK},ActionDesigner:function(){return W.$Lt},ActionInitializer:function(){return q.$M},ActionInitializerItem:function(){return q.eq},AdminDynamicPage:function(){return J.zf},AdminLayout:function(){return J.lq},AdminLayoutPlugin:function(){return J.r3},AdminProvider:function(){return J.IA},AdminSettingsLayout:function(){return ee.i9},AfterSuccess:function(){return W.$b8},AntdAppProvider:function(){return P.wI},AntdConfigPlugin:function(){return Z.kT},AntdConfigProvider:function(){return Z.zy},AntdSchemaComponentPlugin:function(){return W.HTy},AntdSchemaComponentProvider:function(){return W.lkv},AppComponent:function(){return p.y$},AppLangContext:function(){return Z.UJ},AppendsTreeSelect:function(){return W.rDu},Application:function(){return p.Mx},ApplicationContext:function(){return p.Zz},AssignedFieldValues:function(){return W.eYL},AssociatedFields:function(){return q.Pg},AssociationField:function(){return W.Rat},AssociationFieldMode:function(){return W.oAt},AssociationFieldModeProvider:function(){return W.E7E},AssociationFilter:function(){return q.tr},AssociationFilterDesignerDelete:function(){return q.nr},AssociationFilterDesignerDisplayField:function(){return q.N2},AssociationFilterPlugin:function(){return q.Ys},AssociationOrCollectionProvider:function(){return v.dq},AssociationProvider:function(){return v.ym},AssociationSelect:function(){return W.$SD},AsyncDataContext:function(){return A.tO},AsyncDataProvider:function(){return A.pW},AttachmentList:function(){return W.fUi},AutoComplete:function(){return W.QcG},BackButtonUsedInSubPage:function(){return W.MLy},BaseVariableProvider:function(){return ne.Nx},BlankComponent:function(){return p.X_},Block:function(){return W.gOu},BlockAssociationContext:function(){return g.WJ},BlockContext:function(){return g.Qj},BlockInitializer:function(){return q.bn},BlockItem:function(){return W.jYG},BlockItemCard:function(){return W.PuU},BlockItemInitializer:function(){return q.VD},BlockProvider:function(){return g.ZJ},BlockRequestContextProvider:function(){return v.uz},BlockRequestContext_deprecated:function(){return g.br},BlockRequestLoadingContext:function(){return v.q4},BlockRequestProvider:function(){return v.N4},BlockRequestProvider_deprecated:function(){return g.M0},BlockResourceContext:function(){return g.wH},BlockSchemaComponentPlugin:function(){return g.jF},BlockSchemaComponentProvider:function(){return g.UC},BlockSchemaToolbar:function(){return ue.G},BlockTemplateContext:function(){return pe.k0},BlockTemplateDetails:function(){return pe.bs},BlockTemplatePage:function(){return pe.EF},BlockTemplateProvider:function(){return pe.AG},BlockTemplatesPane:function(){return pe.L},ButtonEditor:function(){return W.C1I},CSSVariableProvider:function(){return l.O},CardItem:function(){return W.Ssf},Cascader:function(){return W.vTp},Checkbox:function(){return W.XZJ},ClearCollectionFieldContext:function(){return v.m9},Collection:function(){return v.FE},CollectionContext:function(){return v.WH},CollectionDeletedPlaceholder:function(){return v.zW},CollectionField:function(){return v.sb},CollectionFieldContext:function(){return v.v_},CollectionFieldInterface:function(){return v.SY},CollectionFieldInterfaceManager:function(){return v.Z},CollectionFieldProvider:function(){return v.YT},CollectionFieldUISchemaProvider:function(){return he._9},CollectionFieldsToFormInitializerItems:function(){return v.Cd},CollectionFieldsToInitializerItems:function(){return v.rJ},CollectionFieldsToTableInitializerItems:function(){return v.lC},CollectionManager:function(){return v.w4},CollectionManagerContext:function(){return v.IX},CollectionManagerProvider:function(){return v.xw},CollectionNotAllowViewPlaceholder:function(){return v.pD},CollectionProvider:function(){return v.YQ},CollectionRecord:function(){return v.DI},CollectionRecordContext:function(){return v.vI},CollectionRecordProvider:function(){return v.E0},CollectionSelect:function(){return W.Tt2},CollectionTemplate:function(){return v.Pl},CollectionTemplateManager:function(){return v.yM},ColorPicker:function(){return W.zH8},ColorSelect:function(){return W.Q5L},CompatibleSchemaInitializer:function(){return p.nl},CreateFilterActionInitializer:function(){return q.nl},CreateResetActionInitializer:function(){return q.cz},Cron:function(){return W.Pok},CronSet:function(){return W.Vm0},CurrentAppInfoContext:function(){return $.RQ},CurrentAppInfoProvider:function(){return $.Gq},CurrentPageUidContext:function(){return p.WY},CurrentPageUidProvider:function(){return p.lN},CurrentTabUidContext:function(){return p.yt},CurrentTabUidProvider:function(){return p.vm},CurrentUser:function(){return xe.Ih},CurrentUserContext:function(){return xe.Ec},CurrentUserProvider:function(){return xe.MF},CurrentUserSettingsMenuProvider:function(){return xe.mY},CustomRouterContextProvider:function(){return p.O6},CustomizeActionInitializer:function(){return q.yE},DEBOUNCE_WAIT:function(){return te.on},DEFAULT_DATA_SOURCE_KEY:function(){return v.Ip},DEFAULT_DATA_SOURCE_TITLE:function(){return v.UC},DataBlockCollector:function(){return S.vY},DataBlockContext:function(){return v.hZ},DataBlockInitializer:function(){return q.dn},DataBlockProvider:function(){return v.KY},DataBlockResourceContext:function(){return v.T1},DataBlockResourceProvider:function(){return v.eh},DataSource:function(){return v.o2},DataSourceApplicationProvider:function(){return v.i},DataSourceCollectionCascader:function(){return W.xI_},DataSourceContext:function(){return v.NT},DataSourceManager:function(){return v.AK},DataSourceManagerContext:function(){return v.up},DataSourceManagerProvider:function(){return v.kv},DataSourceProvider:function(){return v.LX},DataSourceSelect:function(){return W.Lip},DateFormatCom:function(){return W.WN4},DatePicker:function(){return W.Mtg},DatePickerProvider:function(){return W.iNu},DefaultValueProvider:function(){return ne.yT},Designable:function(){return W.zzt},DesignableSwitch:function(){return W._bl},Details:function(){return W.POi},DetailsBlockContext:function(){return g.LR},DetailsBlockProvider:function(){return g.nw},DetailsDesigner:function(){return W.AOY},Divider:function(){return W.izJ},DndContext:function(){return W.LBT},DocumentTitleContext:function(){return a.PE},DocumentTitleProvider:function(){return a.C$},DragHandler:function(){return W.IWB},DraggableContext:function(){return W.LCt},DropdownVisibleContext:function(){return xe.yI},EMPTY_OBJECT:function(){return te.Nu},EditComponent:function(){return W.FyH},EditDefaultValue:function(){return W.Nir},EditDescription:function(){return W.q8U},EditOperator:function(){return W.HGA},EditPattern:function(){return W.QTe},EditRequired:function(){return W.JEX},EditSortField:function(){return W.fAH},EditTitle:function(){return W.$w$},EditTitleField:function(){return W.nBj},EditTooltip:function(){return W.Oct},EditValidationRules:function(){return W.zdw},Editable:function(){return W.CXR},EllipsisWithTooltip:function(){return W.BQs},ErrorFallback:function(){return W.Hj5},Expand:function(){return W.M0b},ExpiresRadio:function(){return W.Dnz},ExtendCollectionsContext:function(){return v.Xc},ExtendCollectionsProvider:function(){return v.j5},Filter:function(){return W.wn$},FilterAction:function(){return W.GzZ},FilterActionContext:function(){return W.tJZ},FilterAssociatedFields:function(){return q.EC},FilterBlockProvider:function(){return S.XA},FilterBlockType:function(){return S.vC},FilterContext:function(){return W.fox},FilterDynamicComponent:function(){return W.VTd},FilterFormBlockProvider:function(){return g.WI},FilterLogicContext:function(){return W.XsZ},FilterParentCollectionFields:function(){return q.d6},FlagContext:function(){return V.z_},FlagProvider:function(){return V.Cm},Form:function(){return W.l09},FormActiveFieldsProvider:function(){return g.T2},FormBlockContext:function(){return g.TC},FormBlockInitializer:function(){return Ce.Jo},FormBlockProvider:function(){return g.$R},FormDialog:function(){return W.D_t},FormField:function(){return W.WiK},FormFieldContext:function(){return g.uW},FormFieldProvider:function(){return g.$1},FormItem:function(){return W.xJW},FormItemSchemaToolbar:function(){return Ce.Oo},FormProvider:function(){return W.RVL},FormV2:function(){return W.Bc8},G2Plot:function(){return W.hG9},G2PlotInitializer:function(){return q.oY},G2PlotRenderer:function(){return W.DCh},GeneralSchemaDesigner:function(){return ne.aN},GeneralSchemaItems:function(){return fe.Mj},GlobalThemeProvider:function(){return P.YO},Grid:function(){return W.rjZ},GridCard:function(){return W.Cqo},GridRowContext:function(){return W.jg7},HTMLEncode:function(){return W.gsn},HeightMode:function(){return ne.j0},Icon:function(){return B.JO},IconPicker:function(){return W.$18},InitializerWithSwitch:function(){return q.sp},Input:function(){return W.IIB},InputNumber:function(){return W.RnZ},InputReadPretty:function(){return W.mX2},InputRecordPicker:function(){return W.zDC},InternalAdminLayout:function(){return J.Me},IsInNocoBaseRecursionFieldContext:function(){return he.$},IsSubPageClosedByPageMenuProvider:function(){return p.oO},Json:function(){return W.Phs},KeepAlive:function(){return J.Ob},LAZY_COMPONENT_KEY:function(){return z.XI},LOADING_DELAY:function(){return te.fw},Layout:function(){return ne.Ar},LayoutContent:function(){return J.bU},List:function(){return W.aVo},LocalDataSource:function(){return v.nC},LocationSearchContext:function(){return p.xJ},Markdown:function(){return W.UGj},MarkdownReadPretty:function(){return W.yq5},MaybeCollectionProvider:function(){return g.bH},Menu:function(){return W.v2r},MenuConfigure:function(){return R.dr},NanoIDInput:function(){return W.HIW},NavigateIfNotSignIn:function(){return xe.vo},NavigateToSigninWithRedirect:function(){return xe.Mv},NocoBaseBuildInPlugin:function(){return b.q},NocoBaseRecursionField:function(){return he.sq},OpenModeProvider:function(){return Te.W},PMPlugin:function(){return ee.Np},Page:function(){return W.T3C},PagePopups:function(){return W.d97},PageTabs:function(){return W.hGv},Pagination:function(){return W.tlE},ParentCollectionFields:function(){return q.cd},Password:function(){return W.rop},Percent:function(){return W.gGi},PermissionContext:function(){return R.Bk},PermissionProvider:function(){return R.Wx},PinnedListPlugin:function(){return F.r1},PinnedPluginList:function(){return F.B$},PinnedPluginListContext:function(){return F.uv},PinnedPluginListProvider:function(){return F.tc},Plugin:function(){return p.Sy},PluginManager:function(){return ee.Q$},PluginManagerLink:function(){return ee.s0},PluginSettingsManager:function(){return p.nS},PopupContextProvider:function(){return Pe.y},PopupSettingsProvider:function(){return W.DBW},PoweredBy:function(){return re.C},Preview:function(){return W.MBS},QuickEdit:function(){return W.pGO},REGEX_OF_VARIABLE:function(){return te.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return te.Bj},Radio:function(){return W.Y8K},ReadPretty:function(){return W.iVT},ReadPrettyRecordPicker:function(){return W.ODP},RecordAssociationBlockInitializer:function(){return q.$i},RecordAssociationDetailsBlockInitializer:function(){return q.Mr},RecordAssociationFormBlockInitializer:function(){return q.EK},RecordAssociationGridCardBlockInitializer:function(){return q.zb},RecordAssociationListBlockInitializer:function(){return q.Ok},RecordContext_deprecated:function(){return oe.rY},RecordFormBlockInitializer:function(){return Ce.se},RecordIndexContext:function(){return oe.Pc},RecordIndexProvider:function(){return oe.li},RecordLink:function(){return g.hD},RecordPicker:function(){return W.lbb},RecordPickerContext:function(){return W.b7w},RecordPickerProvider:function(){return W.sUk},RecordProvider:function(){return oe.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return q.CC},RecordSimpleProvider:function(){return oe.Qh},RefreshComponentProvider:function(){return he.ri},RefreshDataBlockRequest:function(){return W.x1j},RemoteDocumentTitlePlugin:function(){return a.uN},RemoteDocumentTitleProvider:function(){return a.yq},RemoteSchemaComponent:function(){return W.m1v},RemoteSchemaTemplateManagerPlugin:function(){return pe.Wc},RemoteSchemaTemplateManagerProvider:function(){return pe.Jv},RemoteSelect:function(){return W.glM},RemoveButton:function(){return W.xZD},RemoveConditionContext:function(){return W.IuH},RenderChildrenWithAssociationFilter:function(){return g.gY},RequestSettings:function(){return W.MkN},RerenderDataBlockProvider:function(){return v.sI},Resizable:function(){return Ee.ez},RichText:function(){return W.Hof},RoleConfigure:function(){return R.XU},RoleResourceCollectionContext:function(){return R.O9},RoleTable:function(){return R.No},RolesResourcesActions:function(){return R.kF},RouteSchemaComponent:function(){return J.GX},RouterContextCleaner:function(){return p.OW},RouterManager:function(){return p.k2},SNIPPET_PREFIX:function(){return p.MC},SanitizedCollectionProvider:function(){return v.Pd},SchemaComponent:function(){return W.n6},SchemaComponentContext:function(){return W.DDd},SchemaComponentOnChangeContext:function(){return W.ATq},SchemaComponentOptions:function(){return W.G0E},SchemaComponentPlugin:function(){return W.a$w},SchemaComponentProvider:function(){return W.TzZ},SchemaInitializer:function(){return p.Ms},SchemaInitializerActionModal:function(){return p.HS},SchemaInitializerActionModalInternal:function(){return p.IQ},SchemaInitializerChild:function(){return p.yH},SchemaInitializerChildren:function(){return p.E0},SchemaInitializerContext:function(){return p.V4},SchemaInitializerDivider:function(){return p.qU},SchemaInitializerItem:function(){return p.lV},SchemaInitializerItemContext:function(){return p.Mm},SchemaInitializerItemGroup:function(){return p.iP},SchemaInitializerItemGroupInternal:function(){return p.IY},SchemaInitializerItemInternal:function(){return p.VG},SchemaInitializerItems:function(){return p.LU},SchemaInitializerManager:function(){return p.eN},SchemaInitializerMenu:function(){return p.tu},SchemaInitializerMenuProvider:function(){return p.kw},SchemaInitializerOpenModeSchemaItems:function(){return fe.EU},SchemaInitializerPlugin:function(){return q.dH},SchemaInitializerSelect:function(){return p.iW},SchemaInitializerSelectInternal:function(){return p.ud},SchemaInitializerSubMenu:function(){return p.eU},SchemaInitializerSubMenuInternal:function(){return p.xv},SchemaInitializerSwitch:function(){return p._n},SchemaInitializerSwitchInternal:function(){return p.wH},SchemaSettingItemContext:function(){return p.A4},SchemaSettingOpenModeSchemaItems:function(){return fe.HA},SchemaSettings:function(){return p.F5},SchemaSettingsActionLinkItem:function(){return ie.s},SchemaSettingsActionModalItem:function(){return ne.Qh},SchemaSettingsBlockHeightItem:function(){return ne.qf},SchemaSettingsBlockTitleItem:function(){return ne._E},SchemaSettingsCascaderItem:function(){return ne.ns},SchemaSettingsChild:function(){return p.kY},SchemaSettingsChildren:function(){return p.dk},SchemaSettingsConnectDataBlocks:function(){return ne.FE},SchemaSettingsDataScope:function(){return ne.HF},SchemaSettingsDataTemplates:function(){return ne.ON},SchemaSettingsDateFormat:function(){return ne.yu},SchemaSettingsDefaultSortingRules:function(){return ne.y5},SchemaSettingsDefaultValue:function(){return ne.Nn},SchemaSettingsDivider:function(){return ne.Z5},SchemaSettingsDropdown:function(){return ne.cM},SchemaSettingsEnableChildCollections:function(){return ne.L3},SchemaSettingsFixed:function(){return Ee.rI},SchemaSettingsFormItemTemplate:function(){return ne.vC},SchemaSettingsItem:function(){return ne.r2},SchemaSettingsItemGroup:function(){return ne.bw},SchemaSettingsLayoutItem:function(){return ne.JM},SchemaSettingsLinkageRules:function(){return ne.lc},SchemaSettingsManager:function(){return p.XD},SchemaSettingsModalItem:function(){return ne.B0},SchemaSettingsNumberFormat:function(){return ne.wH},SchemaSettingsPlugin:function(){return ne.zM},SchemaSettingsPopupItem:function(){return ne.D3},SchemaSettingsProvider:function(){return ne.Rh},SchemaSettingsRemove:function(){return ne.qx},SchemaSettingsRenderEngine:function(){return ne.cK},SchemaSettingsSelectItem:function(){return ne.Qf},SchemaSettingsSortingRule:function(){return ne.wL},SchemaSettingsSubMenu:function(){return ne.m$},SchemaSettingsSwitchItem:function(){return ne.hj},SchemaSettingsTemplate:function(){return ne.Gk},SchemaSettingsWrapper:function(){return p.GC},SchemaTemplateManagerContext:function(){return pe.Kb},SchemaToolbar:function(){return ne.Mf},SchemaToolbarContext:function(){return p.J1},SchemaToolbarProvider:function(){return p.V$},SchemaToolbarVisibleContext:function(){return ne.dI},ScopeSelect:function(){return R.X$},SearchCollections:function(){return q.zH},SecondConFirm:function(){return W.y00},Select:function(){return W.PhF},SelectActionInitializer:function(){return q.w_},SelectWithTitle:function(){return O.T},SetDataLoadingMode:function(){return Re.jI},SettingCenterPermissionProvider:function(){return R.P2},SettingCenterProvider:function(){return R.S3},SettingsCenterConfigure:function(){return R.H3},SettingsCenterContext:function(){return ee.EV},SettingsCenterDropdown:function(){return ee.zK},SettingsMenu:function(){return xe.Tx},ShowFormData:function(){return W.Cqv},SkipValidation:function(){return W.cof},Sortable:function(){return W.bts},SortableContext:function(){return W.Fop},SortableItem:function(){return W.TRI},SortableProvider:function(){return W.ORg},Space:function(){return W.TaI},StablePopover:function(){return W.qHe},StrategyActions:function(){return R.R6},SubmitActionInitializer:function(){return q.ss},SwitchLanguage:function(){return le.j},SystemSettingsContext:function(){return _e.YO},SystemSettingsPane:function(){return _e.a$},SystemSettingsPlugin:function(){return _e.j8},SystemSettingsProvider:function(){return _e.C6},Table:function(){return W.iA_},TableActionColumnInitializer:function(){return q.VU},TableBlockContext:function(){return g.Hz},TableBlockDesigner:function(){return W.gvM},TableBlockInitializer:function(){return Ee.kD},TableBlockProvider:function(){return g._0},TableColumnSchemaToolbar:function(){return Ee.u6},TableField:function(){return W.SnY},TableFieldContext:function(){return g.Q6},TableFieldProvider:function(){return g.CB},TableFieldResource:function(){return g.Qy},TableSelectorContext:function(){return g.Yu},TableSelectorDesigner:function(){return W.ASv},TableSelectorInitializer:function(){return Oe.S},TableSelectorParamsProvider:function(){return g.Vs},TableSelectorProvider:function(){return g.rL},TableV2:function(){return W.bwk},Tabs:function(){return W.mQc},TabsContextProvider:function(){return W.c__},Templates:function(){return W.QZ3},TestDesigner:function(){return W.L39},TimePicker:function(){return W.jII},TreeSelect:function(){return W.mPs},UnixTimestamp:function(){return W.tgM},Upload:function(){return W.gqx},Uploader:function(){return W.Qm7},Variable:function(){return W._wD},VariableInput:function(){return ne.qj},VariablePopupRecordProvider:function(){return T.Rm},VariableScopeProvider:function(){return W.rjl},VariablesContext:function(){return te.cB},VariablesProvider:function(){return te.Uj},WithoutFormFieldResource:function(){return g.$Y},WithoutTableFieldResource:function(){return g.s},WorkflowConfig:function(){return W.Fjw},actionSettings:function(){return W.SLL},actionSettingsItems:function(){return W.sBv},allowAddNew:function(){return W.iTm},appendQueryStringToUrl:function(){return g.HQ},attachmentFileTypes:function(){return W.BDK},cache:function(){return D.cache},canMakeAssociationBlock:function(){return q.Tc},compatOldTheme:function(){return P.kK},completeURL:function(){return g.jR},compose:function(){return p.qC},createCreateFormBlockUISchema:function(){return Ce.lJ},createDesignable:function(){return W.Pls},createDetailsBlockSchema:function(){return q.e6},createFormActionInitializers:function(){return Ce.nr},createFormActionInitializers_deprecated:function(){return Ce.$G},createFormBlockSchema:function(){return q.NH},createFormBlockSettings:function(){return Ce.K9},createModalSettingsItem:function(){return p.lo},createReadPrettyFormBlockSchema:function(){return q.Uc},createRouterManager:function(){return p.w9},createSelectSchemaSettingsItem:function(){return p.NB},createStyles:function(){return Se.k},createSwitchSettingsItem:function(){return p.HL},createTableBlockSchema:function(){return q.BU},createTableBlockUISchema:function(){return Ee.OO},createTextSettingsItem:function(){return p.yq},css:function(){return D.css},customFormItemInitializers:function(){return q.Ic},customFormItemInitializers_deprecated:function(){return q.Jn},cx:function(){return D.cx},defaultAppComponents:function(){return p.FH},defaultFieldNames:function(){return W.Oxq},defaultInputStyle:function(){return ne.ZL},defaultTheme:function(){return P.uH},editFormBlockSettings:function(){return Ce.rB},fetchTemplateData:function(){return W.WLi},fieldComponentSettingsItem:function(){return v.K0},fieldSettingsFormItem:function(){return Ce.dV},fillParentFields:function(){return g.Xe},filterFormItemSettings:function(){return W.$9M},findByUid:function(){return W.nCn},findFilterTargets:function(){return g.SK},findFormBlock:function(){return g.Fi},findKanbanFormItem:function(){return v.iv},findKeysByUid:function(){return W.iNG},findMenuItem:function(){return W.tD8},findParentFieldSchema:function(){return ne.PO},flush:function(){return D.flush},formActionInitializers:function(){return Ce.vR},formDetailsSettings:function(){return W.pg9},formItemInitializers:function(){return Ce.ex},formItemInitializers_deprecated:function(){return Ce.eh},formItemSettings:function(){return W.Ofb},formSettings:function(){return W.ibf},formV1Settings:function(){return W.WyG},genStyleHook:function(){return W.l6$},getAppends:function(){return g.iF},getAssociationPath:function(){return g.dP},getCardItemSchema:function(){return g.Gn},getCollectionTitle:function(){return ue.A},getCurrentOptions:function(){return W.WGR},getDataSourceHeaders:function(){return v.GX},getDatePickerLabels:function(){return W.C$H},getDateRanges:function(){return W.SET},getFieldDefaultValue:function(){return ne.os},getFormValues:function(){return g.X7},getIdsWithChildren:function(){return g.Ns},getLabelFormatValue:function(){return W.cNQ},getLabelWithTooltip:function(){return ne.rB},getPageSchema:function(){return g.tj},getPopupPathFromParams:function(){return W.NCb},getRegisteredStyles:function(){return D.getRegisteredStyles},getRenderContent:function(){return W.I9l},getShouldChange:function(){return ne.Vc},getStoredPopupContext:function(){return W.XQ2},getSupportFieldsByAssociation:function(){return S.x5},getSupportFieldsByForeignKey:function(){return S.zv},getURLSearchParams:function(){return ne.Uz},getURLSearchParamsChildren:function(){return ne.n9},getVariablesFromExpression:function(){return te.fN},gridRowColWrap:function(){return q.BM},handleDateChangeOnForm:function(){return W.MDU},hasIcon:function(){return B.OL},hydrate:function(){return D.hydrate},i18n:function(){return I.a},icons:function(){return B.ci},inferPickerType:function(){return W.CEH},injectGlobal:function(){return D.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return ne.TU},isAssocField:function(){return S.$f},isBulkEditAction:function(){return W.vUN},isFileCollection:function(){return W.ZZb},isInFilterFormBlock:function(){return S.Op},isInitializersSame:function(){return p.h6},isMobile:function(){return W.tqC},isPatternDisabled:function(){return ne.VZ},isSameCollection:function(){return S.yr},isShowFilePicker:function(){return W.elO},isSystemField:function(){return ne.Mq},isTabPage:function(){return W.CfU},isTitleField:function(){return v.Yj},isVariable:function(){return te.cG},itemsMerge:function(){return q.Z_},keyframes:function(){return D.keyframes},languageCodes:function(){return L.m9},lazy:function(){return z.Vo},locale:function(){return L.ZP},mapDatePicker:function(){return W.LPx},mapRangePicker:function(){return W.fY6},mapTimeFormat:function(){return W.Vm},merge:function(){return D.merge},mergeFilter:function(){return S.EO},mockAPIClient:function(){return de.G},moment2str:function(){return W.w_o},navigateToTab:function(){return W.SJF},navigateWithinSelf:function(){return g.nl},normalizeContainer:function(){return p.pn},pageSettings:function(){return W._Ko},pageTabSettings:function(){return W.Mev},parseVariablesAndChangeParamsToQueryString:function(){return g._f},readPrettyFormSettings:function(){return W.i2K},recordBlockInitializers:function(){return q.vV},recordBlockInitializers_deprecated:function(){return q.Sq},recursiveParent:function(){return g.zA},reduceValueSize:function(){return g.ID},registerIcon:function(){return B.q5},registerIcons:function(){return B.fm},removeNullCondition:function(){return W.WmO},replaceVariableValue:function(){return g.UY},requestParentRecordData:function(){return v.H0},schemaSettingsLabelLayout:function(){return ne.ut},setDataLoadingModeSettingsItem:function(){return Re.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return ne.rf},setTheDataScopeSchemaSettingsItem:function(){return ne.aP},sheet:function(){return D.sheet},splitWrapSchema:function(){return W.oBi},storePopupContext:function(){return W.hKP},subTableActionInitializers:function(){return q.U2},subTableActionInitializers_deprecated:function(){return q.o_},systemKeys:function(){return ne.ob},tabPaneInitializers:function(){return q.$T},tabPaneInitializersForBulkEditFormBlock:function(){return q.zg},tabPaneInitializersForRecordBlock:function(){return q.d4},tabPaneInitializers_deprecated:function(){return q.xc},tableActionColumnInitializers:function(){return Ee.Rp},tableActionColumnInitializers_deprecated:function(){return Ee.Xe},tableActionInitializers:function(){return Ee.H1},tableActionInitializers_deprecated:function(){return Ee.EG},tableBlockSettings:function(){return Ee.Oe},tableColumnInitializers:function(){return Ee.Ug},tableColumnInitializers_deprecated:function(){return Ee.T$},tableColumnSettings:function(){return Ee.FY},tableSelectorBlockSettings:function(){return Oe.v},transformToFilter:function(){return S.jE},transformVariableValue:function(){return te.J8},tval:function(){return I.v},updateFilterTargets:function(){return g.iJ},updateFormActionInitializers:function(){return Ce.SW},updateFormActionInitializers_deprecated:function(){return Ce.Cw},useACLActionParamsContext:function(){return R.Hq},useACLContext:function(){return R.TR},useACLFieldWhitelist:function(){return R.Aj},useACLRoleContext:function(){return R.ov},useACLRolesCheck:function(){return R.xd},useAPIClient:function(){return w.LY},useAPITokenVariable:function(){return ne.IG},useActionAvailable:function(){return Re.vn},useActionBarContext:function(){return W.DU1},useActionContext:function(){return W.XCj},useAdminSchemaUid:function(){return t.W},useAllCollectionsInheritChainGetter:function(){return v.Uv},useApp:function(){return p.qD},useAppLangContext:function(){return Z.GW},useAppSpin:function(){return p.rM},useAriaAttributeOfMenuItem:function(){return p.ne},useAssociatedFields:function(){return S.Fp},useAssociatedFormItemInitializerFields:function(){return q.hg},useAssociatedTableColumnInitializerFields:function(){return q.V0},useAssociationCreateActionProps:function(){return g.Yo},useAssociationFieldContext:function(){return W.KyD},useAssociationFieldModeContext:function(){return W.Vpg},useAssociationFilterBlockProps:function(){return g._S},useAssociationFilterProps:function(){return g.rD},useAssociationName:function(){return v.Xo},useAssociationNames:function(){return g.P_},useAsyncData:function(){return A.w3},useAttach:function(){return W.lIL},useBackButton:function(){return W.KxP},useBaseVariable:function(){return ne.zI},useBlockAssociationContext:function(){return g.DD},useBlockContext:function(){return g.VG},useBlockHeight:function(){return W.hi9},useBlockHeightProps:function(){return g.gp},useBlockRequestContext:function(){return g.BU},useBlockResource:function(){return g.lT},useBlockTemplateContext:function(){return pe.rE},useBuiltinVariables:function(){return te.L7},useBulkDestroyActionProps:function(){return g.ns},useCloseAction:function(){return W.p27},useCollectValuesToSubmit:function(){return g.hu},useCollection:function(){return v.Kx},useCollectionDataSourceItems:function(){return q.HD},useCollectionField:function(){return v.Hy},useCollectionFields:function(){return v.ge},useCollectionManager:function(){return v.d9},useCollectionParentRecord:function(){return v.RA},useCollectionParentRecordData:function(){return v.Kv},useCollectionRecord:function(){return v.oV},useCollectionRecordData:function(){return v.nE},useCollectionState:function(){return ne.IO},useCollections:function(){return v.bX},useColumnSchema:function(){return W.z9d},useCompatOldVariables:function(){return ne.b1},useCompile:function(){return W.eJW},useComponent:function(){return W.Cor},useContextVariable:function(){return te.Ym},useCreateActionProps:function(){return g.cD},useCreateAssociationDetailsBlock:function(){return q.Dc},useCreateAssociationDetailsWithoutPagination:function(){return q.yZ},useCreateAssociationFormBlock:function(){return q.Qr},useCreateAssociationGridCardBlock:function(){return q.yG},useCreateAssociationListBlock:function(){return q.R_},useCreateAssociationTableBlock:function(){return q.Rm},useCreateEditFormBlock:function(){return Ce.$R},useCreateFormBlock:function(){return Ce.kQ},useCreateTableBlock:function(){return Ee.Ez},useCurrentAppInfo:function(){return $._S},useCurrentDocumentTitle:function(){return a.AL},useCurrentPageUid:function(){return p.Rx},useCurrentPopupContext:function(){return W.Zmk},useCurrentPopupRecord:function(){return T.Sw},useCurrentRoleVariable:function(){return ne.KR},useCurrentRoles:function(){return xe.ih},useCurrentSchema:function(){return q.pZ},useCurrentSearchParams:function(){return p.r_},useCurrentTabUid:function(){return p.zJ},useCurrentUserContext:function(){return xe.OP},useCurrentUserSettingsMenu:function(){return xe.t$},useCurrentUserVariable:function(){return ne.AO},useCustomizeBulkUpdateActionProps:function(){return g.UQ},useCustomizeRequestActionProps:function(){return g.xx},useCustomizeUpdateActionProps:function(){return g.X0},useDataBlock:function(){return v.eS},useDataBlockHeight:function(){return W.aZq},useDataBlockParentRecord:function(){return g.M_},useDataBlockProps:function(){return v.zh},useDataBlockRequest:function(){return v.hS},useDataBlockRequestData:function(){return v.xQ},useDataBlockRequestGetter:function(){return v.Pt},useDataBlockResource:function(){return v.wb},useDataLoadingMode:function(){return Re.tU},useDataSource:function(){return v.wl},useDataSourceHeaders:function(){return v.on},useDataSourceKey:function(){return v.FC},useDataSourceManager:function(){return v.fp},useDataTemplates:function(){return ne.dD},useDatePickerContext:function(){return W.P1D},useDateVariable:function(){return ne.ds},useDatetimeVariable:function(){return ne.Ld},useDatetimeVariableContext:function(){return ne.FB},useDesignable:function(){return W.ngQ},useDesigner:function(){return W.ett},useDestroyActionProps:function(){return g.z2},useDetailsBlockContext:function(){return g.nT},useDetailsBlockProps:function(){return g.BX},useDetailsDecoratorProps:function(){return Re.dS},useDetailsPaginationProps:function(){return g.bF},useDetailsParentRecord:function(){return Re.jM},useDetailsProps:function(){return Re.os},useDetailsWithPaginationBlockParams:function(){return Re.ln},useDetailsWithPaginationDecoratorProps:function(){return Re.ec},useDetailsWithPaginationProps:function(){return Re.tm},useDisassociateActionProps:function(){return g.ii},useDocumentTitle:function(){return a.jr},useDownloadLogs:function(){return W.ySm},useEnsureOperatorsValid:function(){return W.Zd$},useExtendCollections:function(){return v.P5},useFieldComponentName:function(){return O.W},useFieldComponentOptions:function(){return W.cLh},useFieldMode:function(){return W.baz},useFieldModeOptions:function(){return W.fde},useFieldNames:function(){return W.Xdt},useFieldProps:function(){return W.Cld},useFieldTitle:function(){return W.vH8},useFilterAPI:function(){return S.hi},useFilterActionProps:function(){return W.PLH},useFilterBlock:function(){return S.kO},useFilterBlockActionProps:function(){return g.Oy},useFilterByTk:function(){return g.C},useFilterFieldOptions:function(){return W.V8t},useFilterFieldProps:function(){return W.tMk},useFilterOptions:function(){return W.xQm},useFindComponent:function(){return W.sRe},useFlag:function(){return V.P5},useFormActiveFields:function(){return g.zj},useFormBlockContext:function(){return g.bz},useFormBlockProps:function(){return g._$},useFormBlockType:function(){return g.th},useFormDataTemplates:function(){return W.U1u},useFormFieldContext:function(){return g.e$},useFormFieldProps:function(){return g.GK},useFormItemInitializerFields:function(){return q.I_},useGetAriaLabelOfAction:function(){return W.HS$},useGetAriaLabelOfDesigner:function(){return ne.zf},useGetAriaLabelOfDrawer:function(){return W.vBu},useGetAriaLabelOfModal:function(){return W.QYZ},useGetAriaLabelOfPopover:function(){return W.t9d},useGetFilterFieldOptions:function(){return W.Kgy},useGetFilterOptions:function(){return W.aJ2},useGetSchemaInitializerMenuItems:function(){return p.bw},useGlobalTheme:function(){return P.mg},useGridContext:function(){return W.n14},useGridRowContext:function(){return W.DiB},useInheritsTableColumnInitializerFields:function(){return q.yi},useIsAddNewForm:function(){return W.l1O},useIsAdminPage:function(){return p.mI},useIsAllowToSetDefaultValue:function(){return ne.SF},useIsAssociationField:function(){return W.w5o},useIsDetailBlock:function(){return g.WG},useIsFieldReadPretty:function(){return W.p3Q},useIsFileField:function(){return W.G5e},useIsFormReadPretty:function(){return W.xj2},useIsInSettingsPage:function(){return p.Bb},useIsSelectFieldMode:function(){return W.rxY},useIsSubPageClosedByPageMenu:function(){return p.ce},useLabelUiSchema:function(){return W.Ils},useLazy:function(){return z.lN},useLinkActionProps:function(){return g.ee},useLinkageAction:function(){return W.zCB},useLocalVariables:function(){return te.Kp},useLocationNoUpdate:function(){return p.fj},useLocationSearch:function(){return p.HU},useMatchAdmin:function(){return p.xi},useMatchAdminName:function(){return p.tJ},useMenuSearch:function(){return q.jA},useNavigateNoUpdate:function(){return p.WO},useOpenModeContext:function(){return Te.B},useOptionalFieldList:function(){return g.Lh},useParamsFromRecord:function(){return g.MM},useParentCollection:function(){return v.lb},useParentRecordCommon:function(){return Ae._},useParseDataScopeFilter:function(){return ne._Y},useParseURLAndParams:function(){return g.VC},useParsedFilter:function(){return g.vs},usePickActionProps:function(){return g.St},usePlugin:function(){return p.j7},usePopupSettings:function(){return W.a4r},usePopupUtils:function(){return ye.E},usePopupVariable:function(){return ne.AJ},usePopupVariableContext:function(){return ne.gG},useProps:function(){return W.wNf},useRecord:function(){return oe.a},useRecordCollectionDataSourceItems:function(){return q.bQ},useRecordIndex:function(){return oe.pW},useRecordIsOwn:function(){return oe.Px},useRecordPkValue:function(){return R.Jn},useRefreshActionProps:function(){return g.Xk},useRefreshFieldSchema:function(){return he.gR},useRemoveActionProps:function(){return g.PJ},useRemoveGridFormItem:function(){return q.EY},useRequest:function(){return w.QT},useRerenderDataBlock:function(){return v.Rr},useResetBlockActionProps:function(){return g.NP},useResource:function(){return w.Wf},useRoleRecheck:function(){return R.fG},useRoleVariable:function(){return ne.bs},useRolesResourcesScopesSelectedRowKeys:function(){return R.cm},useRouter:function(){return p.tv},useRouterBasename:function(){return p.hZ},useSchemaComponentContext:function(){return W.Dmu},useSchemaInitializer:function(){return p.q_},useSchemaInitializerItem:function(){return p.UR},useSchemaInitializerMenuItems:function(){return p.hL},useSchemaInitializerRender:function(){return p.IU},useSchemaInitializerStyles:function(){return p._$},useSchemaInitializerSubMenuContext:function(){return p.vH},useSchemaOptionsContext:function(){return W.Bsl},useSchemaSettings:function(){return ne.DD},useSchemaSettingsItem:function(){return p.J$},useSchemaSettingsRender:function(){return p.mQ},useSchemaTemplate:function(){return pe.zy},useSchemaTemplateManager:function(){return pe.$t},useSchemaToolbar:function(){return p.Po},useSchemaToolbarRender:function(){return p.du},useSourceId:function(){return Re.GL},useSourceIdFromParentRecord:function(){return g.m},useSourceIdFromRecord:function(){return g.e0},useStyles:function(){return W.yKv},useSupportedBlocks:function(){return S.Um},useSyncFromForm:function(){return ne.F1},useSystemSettings:function(){return _e.HX},useTableBlockContext:function(){return g.Si},useTableBlockContextBasicValue:function(){return g.bE},useTableBlockDecoratorProps:function(){return Ee.cL},useTableBlockParams:function(){return Ee.lo},useTableBlockProps:function(){return Ee.GK},useTableColumnInitializerFields:function(){return q.bJ},useTableFieldContext:function(){return g.Wx},useTableFieldProps:function(){return g.oA},useTableSelectorContext:function(){return g.CL},useTableSelectorProps:function(){return g.RP},useTableSize:function(){return W.fMB},useTabsContext:function(){return W.gCg},useTitleFieldOptions:function(){return W.eT6},useToken:function(){return Se.d},useUIConfigurationPermissions:function(){return R.mR},useURLAndHTMLSchema:function(){return Y.R},useURLSearchParamsCtx:function(){return ne.MD},useURLSearchParamsVariable:function(){return ne.F5},useUpdateActionProps:function(){return g.HD},useUploadStyles:function(){return W.$SN},useUserVariable:function(){return ne.KD},useValidateSchema:function(){return W.q4O},useVariableOptions:function(){return ne.Y5},useVariableScope:function(){return W.ymE},useVariables:function(){return te.OQ},useViewport:function(){return t.S},useZIndexContext:function(){return W.uqQ},withDynamicSchemaProps:function(){return X.t},withInitializer:function(){return p.W_},withSearchParams:function(){return W.Q3P},withSkeletonComponent:function(){return ve.C},zIndexContext:function(){return W.K5K}});var H=e(66607),u=e.n(H),k=e(79212),c=e.n(k),E=e(37412),x=e.n(E),K=e(59542),o=e.n(K),N=e(96036),m=e.n(N),y=e(96671),f=e.n(y),M=e(70178),n=e.n(M),r=e(72540),d=e.n(r),h=e(90844),C=e(14994),D=e(97133),R=e(47646),Z=e(75599),w=e(12174),$=e(80347),p=e(29939),A=e(26124),g=e(67174),i=e(6145),G={};for(var j in i)["default","locale","withDynamicSchemaProps","withSkeletonComponent","SchemaSettingsActionLinkItem","useURLAndHTMLSchema","OpenModeProvider","useOpenModeContext","PopupContextProvider","usePopupUtils","SwitchLanguage","VariablePopupRecordProvider","useCurrentPopupRecord","languageCodes","CollectionFieldUISchemaProvider","IsInNocoBaseRecursionFieldContext","NocoBaseRecursionField","RefreshComponentProvider","useRefreshFieldSchema","cache","css","cx","flush","getRegisteredStyles","hydrate","injectGlobal","keyframes","merge","sheet","ACLActionParamsContext","ACLActionProvider","ACLCollectionFieldProvider","ACLCollectionProvider","ACLContext","ACLCustomContext","ACLMenuItemProvider","ACLPane","ACLPlugin","ACLProvider","ACLRolesCheckProvider","MenuConfigure","PermissionContext","PermissionProvider","RoleConfigure","RoleResourceCollectionContext","RoleTable","RolesResourcesActions","ScopeSelect","SettingCenterPermissionProvider","SettingCenterProvider","SettingsCenterConfigure","StrategyActions","useACLActionParamsContext","useACLContext","useACLFieldWhitelist","useACLRoleContext","useACLRolesCheck","useRecordPkValue","useRoleRecheck","useRolesResourcesScopesSelectedRowKeys","useUIConfigurationPermissions","AntdConfigPlugin","AntdConfigProvider","AppLangContext","useAppLangContext","APIClient","APIClientContext","APIClientProvider","useAPIClient","useRequest","useResource","CurrentAppInfoContext","CurrentAppInfoProvider","useCurrentAppInfo","ADMIN_SETTINGS_KEY","ADMIN_SETTINGS_PATH","AppComponent","Application","ApplicationContext","BlankComponent","CompatibleSchemaInitializer","CurrentPageUidContext","CurrentPageUidProvider","CurrentTabUidContext","CurrentTabUidProvider","CustomRouterContextProvider","IsSubPageClosedByPageMenuProvider","LocationSearchContext","Plugin","PluginSettingsManager","RouterContextCleaner","RouterManager","SNIPPET_PREFIX","SchemaInitializer","SchemaInitializerActionModal","SchemaInitializerActionModalInternal","SchemaInitializerChild","SchemaInitializerChildren","SchemaInitializerContext","SchemaInitializerDivider","SchemaInitializerItem","SchemaInitializerItemContext","SchemaInitializerItemGroup","SchemaInitializerItemGroupInternal","SchemaInitializerItemInternal","SchemaInitializerItems","SchemaInitializerManager","SchemaInitializerMenu","SchemaInitializerMenuProvider","SchemaInitializerSelect","SchemaInitializerSelectInternal","SchemaInitializerSubMenu","SchemaInitializerSubMenuInternal","SchemaInitializerSwitch","SchemaInitializerSwitchInternal","SchemaSettingItemContext","SchemaSettings","SchemaSettingsChild","SchemaSettingsChildren","SchemaSettingsManager","SchemaSettingsWrapper","SchemaToolbarContext","SchemaToolbarProvider","compose","createModalSettingsItem","createRouterManager","createSelectSchemaSettingsItem","createSwitchSettingsItem","createTextSettingsItem","defaultAppComponents","isInitializersSame","normalizeContainer","useApp","useAppSpin","useAriaAttributeOfMenuItem","useCurrentPageUid","useCurrentSearchParams","useCurrentTabUid","useGetSchemaInitializerMenuItems","useIsAdminPage","useIsInSettingsPage","useIsSubPageClosedByPageMenu","useLocationNoUpdate","useLocationSearch","useMatchAdmin","useMatchAdminName","useNavigateNoUpdate","usePlugin","useRouter","useRouterBasename","useSchemaInitializer","useSchemaInitializerItem","useSchemaInitializerMenuItems","useSchemaInitializerRender","useSchemaInitializerStyles","useSchemaInitializerSubMenuContext","useSchemaSettingsItem","useSchemaSettingsRender","useSchemaToolbar","useSchemaToolbarRender","withInitializer","AsyncDataContext","AsyncDataProvider","useAsyncData","BlockAssociationContext","BlockContext","BlockProvider","BlockRequestContext_deprecated","BlockRequestProvider_deprecated","BlockResourceContext","BlockSchemaComponentPlugin","BlockSchemaComponentProvider","DetailsBlockContext","DetailsBlockProvider","FilterFormBlockProvider","FormActiveFieldsProvider","FormBlockContext","FormBlockProvider","FormFieldContext","FormFieldProvider","MaybeCollectionProvider","RecordLink","RenderChildrenWithAssociationFilter","TableBlockContext","TableBlockProvider","TableFieldContext","TableFieldProvider","TableFieldResource","TableSelectorContext","TableSelectorParamsProvider","TableSelectorProvider","WithoutFormFieldResource","WithoutTableFieldResource","appendQueryStringToUrl","completeURL","fillParentFields","findFilterTargets","findFormBlock","getAppends","getAssociationPath","getCardItemSchema","getFormValues","getIdsWithChildren","getPageSchema","navigateWithinSelf","parseVariablesAndChangeParamsToQueryString","recursiveParent","reduceValueSize","replaceVariableValue","updateFilterTargets","useAssociationCreateActionProps","useAssociationFilterBlockProps","useAssociationFilterProps","useAssociationNames","useBlockAssociationContext","useBlockContext","useBlockHeightProps","useBlockRequestContext","useBlockResource","useBulkDestroyActionProps","useCollectValuesToSubmit","useCreateActionProps","useCustomizeBulkUpdateActionProps","useCustomizeRequestActionProps","useCustomizeUpdateActionProps","useDataBlockParentRecord","useDestroyActionProps","useDetailsBlockContext","useDetailsBlockProps","useDetailsPaginationProps","useDisassociateActionProps","useFilterBlockActionProps","useFilterByTk","useFormActiveFields","useFormBlockContext","useFormBlockProps","useFormBlockType","useFormFieldContext","useFormFieldProps","useIsDetailBlock","useLinkActionProps","useOptionalFieldList","useParamsFromRecord","useParseURLAndParams","useParsedFilter","usePickActionProps","useRefreshActionProps","useRemoveActionProps","useResetBlockActionProps","useSourceIdFromParentRecord","useSourceIdFromRecord","useTableBlockContext","useTableBlockContextBasicValue","useTableFieldContext","useTableFieldProps","useTableSelectorContext","useTableSelectorProps","useUpdateActionProps"].indexOf(j)<0&&(G[j]=function(De){return i[De]}.bind(0,j));e.d(se,G);var O=e(7737),l=e(20085),v=e(94804),a=e(69803),S=e(18386),V=e(53285),P=e(69962),t=e(29392),I=e(58384),B=e(82369),z=e(98902),L=e(35310),b=e(7825),F=e(52817),ee=e(65213),re=e(53181),oe=e(36586),J=e(71461),W=e(64774),q=e(63193),fe=e(90810),ne=e(83880),pe=e(15195),Se=e(39863),_e=e(15585),de=e(16779),xe=e(95882),te=e(64910),X=e(15503),ve=e(83335),ie=e(29245),Y=e(83954),ue=e(16966),Ce=e(67565),Ee=e(77681),Oe=e(75145),Re=e(56995),Ae=e(92700),Te=e(39270),Pe=e(74483),ye=e(23048),le=e(71098),T=e(73691),he=e(57105)},98902:function(ze,se,e){"use strict";e.d(se,{Vo:function(){return m},XI:function(){return N},lN:function(){return y}});var H=e(97857),u=e.n(H),k=e(67294),c=e(57953),E=e(96486),x=e.n(E),K=e(97289),o=e(85893),N=Symbol("LAZY_COMPONENT_KEY");function m(f){for(var M=arguments.length,n=new Array(M>1?M-1:0),r=1;r<M;r++)n[r-1]=arguments[r];if(n.length===0){var d=(0,k.lazy)(function(){return f().then(function(C){var D=C.default;return h[N]=D,{default:D}})}),h=function(D){return(0,o.jsx)(k.Suspense,{fallback:(0,o.jsx)(c.Z,{}),children:(0,o.jsx)(d,u()({},D))})};return h}return n.reduce(function(C,D){var R=(0,k.lazy)(function(){return f().then(function(Z){var w=(0,E.get)(Z,D);return C[D][N]=w,{default:w}})});return C[D]=function(Z){return(0,o.jsx)(k.Suspense,{fallback:(0,o.jsx)(c.Z,{}),children:(0,o.jsx)(R,u()({},Z))})},C},{})}function y(f,M){var n=typeof M=="function"?M:function(h){return h[M]},r=(0,K.I6)(f);if(!r.payload)throw new Promise(function(h,C){r.loadIfNeeded(),r.resolution.then(h).catch(C)});var d=n(r.payload);return d}},35310:function(ze,se,e){"use strict";e.d(se,{m9:function(){return u},yx:function(){return H}});var H={"ar-EG":"ar","az-AZ":"az","bg-BG":"bg","bn-BD":"bn-bd","by-BY":"en","ca-ES":"ca","cs-CZ":"cs","da-DK":"da","de-DE":"de","el-GR":"el","en-GB":"en-gb","en-US":"en","es-ES":"es","et-EE":"et","fa-IR":"fa","fi-FI":"fi","fr-BE":"fr","fr-CA":"fr","fr-FR":"fr","ga-IE":"ga","gl-ES":"gl","he-IL":"he","hi-IN":"hi","hr-HR":"hr","hu-HU":"hu","hy-AM":"hy-am","id-ID":"id","is-IS":"is","it-IT":"it","ja-JP":"ja","ka-GE":"ka","kk-KZ":"kk","km-KH":"km","kn-IN":"kn","ko-KR":"ko","ku-IQ":"ku","lt-LT":"lt","lv-LV":"lv","mk-MK":"mk","ml-IN":"ml","mn-MN":"mn","ms-MY":"ms","nb-NO":"nb","ne-NP":"ne","nl-BE":"nl-be","nl-NL":"nl","pl-PL":"pl","pt-BR":"pt-br","pt-PT":"pt","ro-RO":"ro","ru-RU":"ru","si-LK":"si","sk-SK":"sk","sl-SI":"sl","sr-RS":"sr","sv-SE":"sv","ta-IN":"ta","th-TH":"th","tk-TK":"tk","tr-TR":"tr","uk-UA":"uk","ur-PK":"ur","vi-VN":"vi","zh-CN":"zh-cn","zh-HK":"zh-hk","zh-TW":"zh-tw"},u={"ar-EG":{label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},"az-AZ":{label:"Az\u0259rbaycan dili"},"bg-BG":{label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},"bn-BD":{label:"Bengali"},"by-BY":{label:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456"},"ca-ES":{label:"\u0421atal\xE0/Espanya"},"cs-CZ":{label:"\u010Cesky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xF1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"\u0641\u0627\u0631\u0633\u06CC"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xE7ais(BE)"},"fr-CA":{label:"Fran\xE7ais(CA)"},"fr-FR":{label:"Fran\xE7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"\u05E2\u05D1\u05E8\u05D9\u05EA"},"hi-IN":{label:"\u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xCDslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"\u65E5\u672C\u8A9E"},"ka-GE":{label:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"},"kk-KZ":{label:"\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"},"km-KH":{label:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},"kn-IN":{label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"},"ko-KR":{label:"\uD55C\uAD6D\uC5B4"},"ku-IQ":{label:"\u06A9\u0648\u0631\u062F\u06CC"},"lt-LT":{label:"lietuvi\u0173"},"lv-LV":{label:"Latvie\u0161u valoda"},"mk-MK":{label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A"},"ml-IN":{label:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"},"mn-MN":{label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},"ms-MY":{label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648"},"nb-NO":{label:"Norsk bokm\xE5l"},"ne-NP":{label:"\u0928\u0947\u092A\u093E\u0932\u0940"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xEAs brasileiro"},"pt-PT":{label:"Portugu\xEAs"},"ro-RO":{label:"Rom\xE2nia"},"ru-RU":{label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},"si-LK":{label:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"},"sk-SK":{label:"Sloven\u010Dina"},"sl-SI":{label:"Sloven\u0161\u010Dina"},"sr-RS":{label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xFCrk\xE7e"},"uk-UA":{label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},"ur-PK":{label:"O\u02BBzbekcha"},"vi-VN":{label:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{label:"\u7B80\u4F53\u4E2D\u6587"},"zh-HK":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u9999\u6E2F\uFF09"},"zh-TW":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u6E7E\uFF09"}};se.ZP=u},29245:function(ze,se,e){"use strict";e.d(se,{f:function(){return R},s:function(){return D}});var H=e(9783),u=e.n(H),k=e(97857),c=e.n(k),E=e(5552),x=e(80844),K=e(96486),o=e.n(K),N=e(67294),m=e(26793),y=e(21143),f=e(29939),M=e(91410),n=e(6145),r=e(55642),d=e(83880),h=e(83954),C=e(85893),D=function(){var w=(0,x.useField)(),$=(0,x.useFieldSchema)(),p=(0,y.useDesignable)(),A=p.dn,g=(0,m.$)(),i=g.t,G=(0,h.R)(),j=G.urlSchema,O=G.paramsSchema,l=G.openInNewWindowSchema,v=$["x-component-props"]||{},a={url:v.url,params:v.params||[{}],openInNewWindow:v.openInNewWindow};return(0,C.jsx)(d.B0,{title:i("Edit link"),components:{ArrayItems:E.ArrayItems},schema:{type:"object",title:i("Edit link"),properties:{url:c()(c()({},j),{},{required:!0}),params:O,openInNewWindow:l}},onSubmit:function(V){var P,t=V.url,I=V.params,B=V.openInNewWindow;v.url=t,v.params=I,v.openInNewWindow=B,$["x-component-props"]=v,w.componentProps.url=t,w.componentProps.params=I,w.componentProps.openInNewWindow=B,A.emit("patch",{schema:(P={},u()(P,"x-uid",$["x-uid"]),u()(P,"x-component-props",v),P)}),A.refresh()},initialValues:a})},R=new M.F({name:"actionSettings:link",items:[{name:"editButton",Component:r.C1,useComponentProps:function(){var w=(0,f.Po)(),$=w.buttonEditorProps;return $}},{name:"editLink",Component:D},{name:"linkageRules",Component:d.lc,useVisible:function(){var w=(0,y.useCollectionRecord)();return!o().isEmpty(w==null?void 0:w.data)},useComponentProps:function(){var w=(0,n.useCollection_deprecated)(),$=w.name,p=(0,f.Po)(),A=p.linkageRulesProps;return c()(c()({},A),{},{collectionName:$})}},{name:"remove",sort:100,Component:r.xZ,useComponentProps:function(){var w=(0,f.Po)(),$=w.removeButtonProps;return $}}]})},83954:function(ze,se,e){"use strict";e.d(se,{R:function(){return d}});var H=e(68400),u=e.n(H),k=e(97857),c=e.n(k),E=e(97133),x=e(80844),K=e(67294),o=e(26793),N=e(7340),m=e(36586),y=e(35115),f=e(54885),M=e(85893),n,r=function(C){return function(D){var R=(0,x.useFieldSchema)(),Z=(0,N.bz)(),w=Z.form,$=(0,m.a)(),p=(0,f.Y)({collectionField:{uiSchema:R},form:w,record:$,uiSchema:R,noDisabled:!0});return(0,M.jsx)(C,c()(c()({},D),{},{scope:p}))}},d=function(){var C=(0,o.$)(),D=C.t,R=(0,K.useMemo)(function(){return r(y._w.TextArea)},[]),Z=(0,K.useMemo)(function(){return{title:D("URL"),type:"string","x-decorator":"FormItem","x-component":R,description:D("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[D,R]),w=(0,K.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:D("URL")},{value:"html",label:D("HTML")}]}},[D]),$=(0,K.useMemo)(function(){return{title:D("html"),type:"string","x-decorator":"FormItem","x-component":r(y._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[D]),p=(0,K.useMemo)(function(){return{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,E.css)(n||(n=u()([`
118
118
  & > .ant-space-item:first-child,
119
119
  & > .ant-space-item:last-child {
120
120
  flex-shrink: 0;
@@ -752,7 +752,7 @@ https://requirejs.org/docs/errors.html#`+ze);return u.requireType=ze,u.requireMo
752
752
  padding: 2px 7px;
753
753
  border-radius: 10px;
754
754
  }
755
- `])));ke.ReadPretty=function(Rt){var nt=Rt.value,Ot=Rt.delimiters,Xt=Ot===void 0?["{{","}}"]:Ot,tn=typeof Rt.scope=="function"?Rt.scope():Rt.scope,nn=F(),En=nn.wrapSSR,Ln=nn.hashId,zn=nn.componentCls,Xn=(0,u.useState)([]),$t=r()(Xn,2),tt=$t[0],Pt=$t[1],Ft=(0,u.useMemo)(function(){return qe(tt)},[tt]),Ut=(0,u.useMemo)(function(){return Je(nt??"",Ft,Xt)},[Xt,Ft,nt]),gt=at(nt,Xt);(0,u.useEffect)(function(){wt(tn,gt).then(function(Lt){Pt(Lt)}).catch(g.error)},[tn,gt]);var Et=En((0,re.jsx)("span",{dangerouslySetInnerHTML:{__html:Ut},className:(0,A.cx)(zn,Ln,yt)}));return(0,re.jsx)(T.BQs,{ellipsis:!0,popoverContent:Et,children:Et})};var Gt=(0,u.createContext)([]);Gt.displayName="VariableScopeContext";function xn(Tt){var Rt=Tt.scope,nt=Rt===void 0?[]:Rt,Ot=Tt.children;return(0,re.jsx)(Gt.Provider,{value:nt,children:Ot})}function un(){return(0,u.useContext)(Gt)}function bn(){return null}bn.Input=(0,H.connect)(te),bn.TextArea=(0,k.t)((0,H.connect)(ke,(0,H.mapReadPretty)(ke.ReadPretty))),bn.RawTextArea=(0,H.connect)(Oe),bn.JSON=(0,H.connect)(Ae);var Wn=null},88969:function(ze,se,e){"use strict";e.d(se,{m:function(){return R}});var H=e(15009),u=e.n(H),k=e(19632),c=e.n(k),E=e(99289),x=e.n(E),K=e(5574),o=e.n(K),N=e(97133),m=e(38089),y=e(67294),f=e(26793),M=e(46917),n=e(9783),r=e.n(n),d=(0,M.l6)("nb-variable-select",function(Z){var w=Z.componentCls;return r()({},w,{position:"relative",".ant-select.ant-cascader":{position:"absolute",top:"-1px",right:"-1px",minWidth:"auto",width:"calc(100% + 2px)",height:"calc(100% + 2px)",overflow:"hidden",opacity:0},".variable-btn":{fontStyle:"italic",fontFamily:"'New York', 'Times New Roman', Times, serif"},".Cascader-popupClassName":{".ant-cascader-menu":{marginBottom:0}}})}),h=d,C=e(2876),D=e(85893);function R(Z){var w=Z.options,$=Z.setOptions,p=Z.onInsert,A=Z.changeOnSelect,g=A===void 0?!1:A,i=Z.fieldNames,G=i===void 0?{}:i,j=Z.className,O=(0,f.$)(),l=O.t,v=(0,y.useState)([]),a=o()(v,2),S=a[0],V=a[1],P=h(),t=P.wrapSSR,I=P.componentCls,B=P.hashId,z=(0,M.dQ)(),L=z.token;function b(ee){return F.apply(this,arguments)}function F(){return F=x()(u()().mark(function ee(re){var oe,J;return u()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(J=re[re.length-1],!(!((oe=J.children)!==null&&oe!==void 0&&oe.length)&&!J.isLeaf&&J.loadChildren)){q.next=5;break}return q.next=4,J.loadChildren(J);case 4:$(function(fe){return c()(fe)});case 5:case"end":return q.stop()}},ee)})),F.apply(this,arguments)}return t((0,D.jsx)(C.R,{className:(0,N.cx)("x-button",I,B,j),children:(0,D.jsx)(m.Z,{placeholder:l("Select a variable"),value:[],options:w,fieldNames:G,loadData:b,onChange:function(){var re,oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(V(oe),!!oe.length){var W=J[J.length-1];(!(W!=null&&(re=W.children)!==null&&re!==void 0&&re.length)&&!(W!=null&&W.loadChildren)||W!=null&&W.isLeaf)&&p(oe)}},changeOnSelect:g,onClick:function(re){if(!(re.detail!==2||!g))for(var oe=re.target;oe&&oe!==re.currentTarget;oe=oe.parentNode){var J;Array.from((J=oe.classList)!==null&&J!==void 0?J:[]).includes("ant-cascader-menu-item")&&p(S)}},popupClassName:"Cascader-popupClassName",dropdownRender:g?function(ee){return(0,D.jsxs)(D.Fragment,{children:[ee,(0,D.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(L.colorBorder),color:L.colorTextDescription},children:l("Double click to choose entire object")})]})}:null})}))}},2876:function(ze,se,e){"use strict";e.d(se,{R:function(){return x}});var H=e(97857),u=e.n(H),k=e(15867),c=e(67294),E=e(85893),x=(0,c.forwardRef)(function(K,o){var N=(0,c.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,E.jsxs)(k.ZP,u()(u()({"aria-label":"variable-button",ref:o,style:N},K),{},{children:["x",K.children]}))});x.displayName="XButton"},72724:function(ze,se,e){"use strict";e.d(se,{L:function(){return M}});var H=e(97857),u=e.n(H),k=e(5574),c=e.n(k),E=e(23861),x=e(67294),K=e(26793),o=e(21143),N=e(84577),m=e(85893),y=function(r){var d=(0,N.ng)(),h=d.refresh,C=(0,o.useAPIClient)(),D=(0,K.$)(),R=D.t;return(0,x.useCallback)(function(Z){var w,$,p,A,g,i,G,j,O=Z.active,l=Z.over,v=O==null||(w=O.data)===null||w===void 0||(w=w.current)===null||w===void 0?void 0:w.schema,a=l==null||($=l.data)===null||$===void 0||($=$.current)===null||$===void 0?void 0:$.schema,S=l==null||(p=l.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.insertAdjacent,V=l==null||(A=l.data)===null||A===void 0||(A=A.current)===null||A===void 0?void 0:A.breakRemoveOn,P=l==null||(g=l.data)===null||g===void 0||(g=g.current)===null||g===void 0?void 0:g.wrapSchema,t=l==null||(i=l.data)===null||i===void 0||(i=i.current)===null||i===void 0?void 0:i.onSuccess,I=(G=l==null||(j=l.data)===null||j===void 0||(j=j.current)===null||j===void 0?void 0:j.removeParentsIfNoChildren)!==null&&G!==void 0?G:!0;if(!v||!a){r==null||r(Z);return}if(v===a){r==null||r(Z);return}if(v.parent===a&&S==="beforeEnd"){r==null||r(Z);return}var B=(0,N.Pl)({t:R,api:C,refresh:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=L.refreshParentSchema,F=b===void 0?!0:b;return h({refreshParentSchema:F})},current:a});if(B.loadAPIClientEvents(),v.parent===a.parent){B.insertBeforeBeginOrAfterEnd(v),r==null||r(Z);return}if(S){B.insertAdjacent(S,v,{wrap:P,breakRemoveOn:V,removeParentsIfNoChildren:I,onSuccess:t}),r==null||r(Z);return}},[C,r,h,R])},f=x.memo(function(n){var r=(0,K.$)(),d=r.t,h=(0,x.useState)(!0),C=c()(h,2),D=C[0],R=C[1],Z=(0,x.useCallback)(function($){var p,A=$.active,g=A==null||(p=A.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.schema;if(R(!!g),n!=null&&n.onDragStart){var i;n==null||(i=n.onDragStart)===null||i===void 0||i.call(n,$)}},[n==null?void 0:n.onDragStart]),w=y(n==null?void 0:n.onDragEnd);return(0,m.jsxs)(E.DndContext,u()(u()({collisionDetection:E.rectIntersection},n),{},{onDragStart:Z,onDragEnd:w,children:[(0,m.jsx)(E.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:D&&(0,m.jsx)("span",{style:{whiteSpace:"nowrap"},children:d("Dragging")})}),n.children]}))});f.displayName="InternalDndContext";var M=function(r){return(0,m.jsx)(f,u()({},r))}},14896:function(ze,se,e){"use strict";e.r(se),e.d(se,{DndContext:function(){return H.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return x},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR},getRenderContent:function(){return K.I9}});var H=e(72724),u=e(20493),k=e(67294),c=e(80844),E=e(85893),x=(0,c.observer)(function(o){var N=o.children,m=(0,c.useForm)();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(m.values,null,2)}),N]})}),K=e(34588)},20493:function(ze,se,e){"use strict";e.d(se,{IW:function(){return i},LC:function(){return C},bt:function(){return w},Fo:function(){return D},TR:function(){return g},OR:function(){return R}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(10274),x=e(23861),K=e(97133),o=e(80844),N=e(96486),m=e.n(N),y=e(67294),f=e(46917),M=e(84577),n=e(85893),r=["component","overStyle","style","children","openMode"],d=["schema","id","eid","removeParentsIfNoChildren"],h=["component"],C=(0,y.createContext)(null);C.displayName="DraggableContext";var D=(0,y.createContext)(null);D.displayName="SortableContext";var R=function(j){var O=j.id,l=j.data,v=j.children,a=(0,x.useDraggable)({id:O,data:l}),S=(0,x.useDroppable)({id:O,data:l}),V=(0,y.useMemo)(function(){return{draggable:a,droppable:S}},[a,S]);return(0,n.jsx)(D.Provider,{value:V,children:v})},Z=function(j){return new E.C(j).setAlpha(.15).toHex8String()},w=function(j){var O,l,v=j.component,a=j.overStyle,S=j.style,V=j.children,P=j.openMode,t=c()(j,r),I=(0,f.dQ)(),B=I.token,z=(0,y.useContext)(D),L=z.draggable,b=z.droppable,F=b.isOver,ee=b.setNodeRef,re=u()({},S);return F&&(L==null||(O=L.active)===null||O===void 0?void 0:O.id)!==(b==null||(l=b.over)===null||l===void 0?void 0:l.id)&&(re[v==="a"?"color":"background"]=Z(B.colorSettings),Object.assign(re,a)),y.createElement(v||"div",u()(u()({role:"none"},t),{},{className:(0,K.cx)("nb-sortable-designer",j.className),ref:ee,style:re}),V)},$=function(j){var O=p(j),l=(0,o.useFieldSchema)();return j.schema?u()(u()({},j),{},{id:O}):u()(u()({},j),{},{id:O,schema:l})},p=function(j){var O,l=(0,o.useField)();return j.id?j.id:(O=l.address)===null||O===void 0?void 0:O.toString()},A=(0,o.observer)(function(G){var j=$(G),O=j.schema,l=j.id,v=j.eid,a=j.removeParentsIfNoChildren,S=c()(j,d),V=(0,y.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:O,removeParentsIfNoChildren:a??!0}},[O,a]);return(0,n.jsx)(R,{id:l,data:V,children:(0,n.jsx)(w,u()(u()({id:v},S),{},{children:G.children}))})},{displayName:"InternalSortableItem"}),g=y.memo(function(G){var j=G.component,O=c()(G,h),l=(0,M.ng)(),v=l.designable;return v?(0,n.jsx)(A,u()({},G)):y.createElement(j||"div",m().omit(O,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),G.children)});g.displayName="SortableItem";var i=function(j){var O=(0,y.useContext)(D)||{},l=O.draggable;if(!l)return null;var v=l.attributes,a=l.listeners,S=l.setNodeRef;return(0,n.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,n.jsx)("div",u()(u()(u()({ref:S,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},a),v),{},{role:"none",children:(0,n.jsx)("span",{style:{cursor:"move",fontSize:14},children:j.children})}))})}},34588:function(ze,se,e){"use strict";e.d(se,{jC:function(){return l},od:function(){return G},I9:function(){return S},Rq:function(){return j},e7:function(){return i}});var H=e(97857),u=e.n(H),k=e(15009),c=e.n(k),E=e(9783),x=e.n(E),K=e(5574),o=e.n(K),N=e(99289),m=e.n(N),y=e(52677),f=e.n(y),M=e(84157),n=e(96486),r=e.n(n),d=e(10097),h=e(76690),C=e(65565),D=e(61341),R=e(27484);function Z(){"use strict";Array.isArray||(Array.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"});function P(z){for(var L=[],b=0,F=z.length;b<F;b++)L.indexOf(z[b])===-1&&L.push(z[b]);return L}function t(z,L){return JSON.stringify(z)===JSON.stringify(L)}var I={},B={$is:function(L,b){return L===b},$match:function(L,b){return Array.isArray(L)&&Array.isArray(b)&&L.some(function(F){return Array.isArray(F)})?L.some(function(F){return(F==null?void 0:F.length)===b.length&&(F==null?void 0:F.every(function(ee,re){return ee===b[re]}))}):JSON.stringify(L)===JSON.stringify(b)},$eq:function(L,b){return Array.isArray(L)&&Array.isArray(b)?t(L,b):Array.isArray(L)?L.includes(b):L==b},$ne:function(L,b){return L!=b},"!==":function(L,b){return L!==b},$gt:function(L,b){return Array.isArray(L)?L.some(function(F){return F>b}):L>b},$gte:function(L,b){return L>=b},$lt:function(L,b,F){return Array.isArray(L)?L.some(function(ee){return ee<b}):F===void 0?L<b:L<b&&b<F},$lte:function(L,b,F){return F===void 0?L<=b:L<=b&&b<=F},$exists:function(L){return I.truthy(L)},$notEmpty:function(L){return I.truthy(L)},$empty:function(L){return Array.isArray(L)?L.some(function(b){return!I.truthy(b)}):!I.truthy(L)},$notExists:function(L){return!I.truthy(L)},"%":function(L,b){return L%b},log:function(L){return L},$in:function(L,b){return!b||typeof b.indexOf>"u"?!1:Array.isArray(L)&&Array.isArray(b)?b.some(function(F){return L.includes(F)}):b.indexOf(L)!==-1},$notIn:function(L,b){return!b||typeof b.indexOf>"u"?!1:b.indexOf(L)===-1},$includes:function(L,b){return!L||typeof L.indexOf>"u"?!1:Array.isArray(L)?L.some(function(F){return F==null?void 0:F.includes(b)}):L.indexOf(b)!==-1},$notIncludes:function(L,b){return Array.isArray(L)?!L.some(function(F){return(F||"").includes(b)}):(L=L||"",!L.includes(b))},$anyOf:function(L,b){return L.length===0?!1:Array.isArray(L)&&Array.isArray(b)&&L.some(function(F){return Array.isArray(F)})?L.some(function(F){return F.some(function(ee){return b.includes(ee)})}):L.some(function(F){return b.includes(F)})},$noneOf:function(L,b){return!L||(L==null?void 0:L.length)===0?!0:Array.isArray(L)&&Array.isArray(b)&&L.some(function(F){return Array.isArray(F)})?L.some(function(F){return F.every(function(ee){return!b.some(function(re){return ee.includes(re)})})}):b.some(function(F){return!L.includes(F)})},$notMatch:function(L,b){if(L.length!==b.length)return!0;for(var F=0;F<L.length;F++)if(L[F]!==b[F])return!0;return!1},$dateOn:function(L,b){return!L||!b?!1:L===b},$dateBefore:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);if(!F||!ee)throw new Error("Invalid date format");return F<ee},$dateNotBefore:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);if(!F||!ee)throw new Error("Invalid date format");return F>=ee},$dateAfter:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);return F>ee},$dateNotAfter:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);if(!F||!ee)throw new Error("Invalid date format");return F<=ee},$dateBetween:function(L,b){if(!L||!b)return!1;var F=w(L),ee=w(b[0]),re=w(b[1]);if(!F||!ee||!re)throw new Error("Invalid date format");return F>=ee&&F<=re},$dateNotOn:function(L,b){return!L||!b?!1:L!==b},$isTruly:function(L){return Array.isArray(L)?L.some(function(b){return b===!0||b===1}):L===!0||L===1},$isFalsy:function(L){return Array.isArray(L)?L.some(function(b){return!I.truthy(b)}):!I.truthy(L)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(L,b,F){if(F<0){var ee=String(L).substr(b);return ee.substr(0,ee.length+F)}return String(L).substr(b,F)},"+":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)+parseFloat(b,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)*parseFloat(b,10)})},"-":function(L,b){return b===void 0?-L:L-b},"/":function(L,b){return L/b},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(L,b){return L.concat(b)},[])},var:function(L,b){var F=b===void 0?null:b,ee=this;if(typeof L>"u"||L===""||L===null)return ee;for(var re=String(L).split("."),oe=0;oe<re.length;oe++)if(ee==null||(ee=ee[re[oe]],ee===void 0))return F;return ee},missing:function(){for(var L=[],b=Array.isArray(arguments[0])?arguments[0]:arguments,F=0;F<b.length;F++){var ee=b[F],re=I.apply({var:ee},this);(re===null||re==="")&&L.push(ee)}return L},missing_some:function(L,b){var F=I.apply({missing:b},this);return b.length-F.length>=L?[]:F}};return I.is_logic=function(z){return f()(z)==="object"&&z!==null&&!Array.isArray(z)&&Object.keys(z).length===1},I.truthy=function(z){return Array.isArray(z)&&z.length===0?!1:!!z},I.get_operator=function(z){return Object.keys(z)[0]},I.get_values=function(z){return z[I.get_operator(z)]},I.apply=function(z,L){if(Array.isArray(z))return z.map(function(ne){return I.apply(ne,L)});if(!I.is_logic(z))return z;var b=I.get_operator(z),F=z[b],ee,re,oe,J,W;if(Array.isArray(F)||(F=[F]),b==="if"||b=="?:"){for(ee=0;ee<F.length-1;ee+=2)if(I.truthy(I.apply(F[ee],L)))return I.apply(F[ee+1],L);return F.length===ee+1?I.apply(F[ee],L):null}else if(b==="$and"){for(ee=0;ee<F.length;ee+=1)if(re=I.apply(F[ee],L),!I.truthy(re))return re;return re}else if(b==="or"){for(ee=0;ee<F.length;ee+=1)if(re=I.apply(F[ee],L),I.truthy(re))return re;return re}else{if(b==="filter")return J=I.apply(F[0],L),oe=F[1],Array.isArray(J)?J.filter(function(ne){return I.truthy(I.apply(oe,ne))}):[];if(b==="map")return J=I.apply(F[0],L),oe=F[1],Array.isArray(J)?J.map(function(ne){return I.apply(oe,ne)}):[];if(b==="reduce")return J=I.apply(F[0],L),oe=F[1],W=typeof F[2]<"u"?F[2]:null,Array.isArray(J)?J.reduce(function(ne,pe){return I.apply(oe,{current:pe,accumulator:ne})},W):W;if(b==="all"){if(J=I.apply(F[0],L),oe=F[1],!Array.isArray(J)||!J.length)return!1;for(ee=0;ee<J.length;ee+=1)if(!I.truthy(I.apply(oe,J[ee])))return!1;return!0}else if(b==="none"){if(J=I.apply(F[0],L),oe=F[1],!Array.isArray(J)||!J.length)return!0;for(ee=0;ee<J.length;ee+=1)if(I.truthy(I.apply(oe,J[ee])))return!1;return!0}else if(b==="some"){if(J=I.apply(F[0],L),oe=F[1],!Array.isArray(J)||!J.length)return!1;for(ee=0;ee<J.length;ee+=1)if(I.truthy(I.apply(oe,J[ee])))return!0;return!1}}if(F=F.map(function(ne){return I.apply(ne,L)}),B.hasOwnProperty(b)&&typeof B[b]=="function")return B[b].apply(L,F);if(b.indexOf(".")>0){var q=String(b).split("."),fe=B;for(ee=0;ee<q.length;ee++){if(!fe.hasOwnProperty(q[ee]))throw new Error("Unrecognized operation "+b+" (failed at "+q.slice(0,ee+1).join(".")+")");fe=fe[q[ee]]}return fe.apply(L,F)}throw new Error("Unrecognized operation "+b)},I.uses_data=function(z){var L=[];if(I.is_logic(z)){var b=I.get_operator(z),F=z[b];Array.isArray(F)||(F=[F]),b==="var"?L.push(F[0]):F.forEach(function(ee){L.push.apply(L,I.uses_data(ee))})}return P(L)},I.add_operation=function(z,L){B[z]=L},I.rm_operation=function(z){delete B[z]},I.rule_like=function(z,L){if(L===z||L==="@")return!0;if(L==="number")return typeof z=="number";if(L==="string")return typeof z=="string";if(L==="array")return Array.isArray(z)&&!I.is_logic(z);if(I.is_logic(L)){if(I.is_logic(z)){var b=I.get_operator(L),F=I.get_operator(z);if(b==="@"||b===F)return I.rule_like(I.get_values(z,!1),I.get_values(L,!1))}return!1}if(Array.isArray(L))if(Array.isArray(z)){if(L.length!==z.length)return!1;for(var ee=0;ee<L.length;ee+=1)if(!I.rule_like(z[ee],L[ee]))return!1;return!0}else return!1;return!1},I}function w(P){return new Date(P)}function $(P){var t=P.split("-").map(Number),I=o()(t,2),B=I[0],z=I[1];return new Date(B,z-1)}function p(P){var t=parseInt(P.slice(0,4)),I=parseInt(P.slice(5,6)),B=(I-1)*3;return new Date(t,B)}function A(P){var t=parseInt(P);return new Date(t,0)}function g(P){var t=Array.isArray(P)?P[1]:P;return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(t)?new Date(t):/^\d{4}-\d{2}-\d{2}$/.test(t)?w(t):/^\d{4}-\d{2}$/.test(t)?$(t):/^\d{4}Q[1-4]$/.test(t)?p(t):/^\d{4}$/.test(t)?A(t):null}var i=function(t,I){var B,z=/{{(.*?)}}/,L=t==null||(B=t.match)===null||B===void 0?void 0:B.call(t,z);if(L){var b=r().get(I,L[1]);return r().isFunction(b)?b():b}else return t};function G(P){if(f()(P)!=="object"||P===null)return null;for(var t in P)if(Object.prototype.hasOwnProperty.call(P,t))return Object.prototype.toString.call(P[t])==="[object Object]"&&P[t]!==null?G(P[t]):{key:t,value:P[t]};return null}var j=function(t){var I=O(t),B=(0,n.findIndex)(I,function(L,b,F){if(L.includes("$")&&b>0)return!0}),z=I.slice(0,B);return z};function O(P){var t=[];function I(B){Object.keys(B).sort().forEach(function(z){t.push(z),B[z]&&f()(B[z])==="object"&&I(B[z])})}return I(P),t}var l=function(){var P=m()(c()().mark(function t(I){var B,z,L,b,F,ee,re;return c()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return B=I.ruleGroup,z=I.variables,L=I.localVariables,b=I.variableNameOfLeftCondition,F=Object.keys(B)[0]||"$and",ee=B[F],re=ee.map(function(){var W=m()(c()().mark(function q(fe){var ne,pe,Se,_e,de,xe,te,X,ve,ie,Y,ue,Ce,Ee,Oe;return c()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!("$and"in fe||"$or"in fe)){Ae.next=4;break}return Ae.next=3,l({ruleGroup:fe,variables:z,localVariables:L});case 3:return Ae.abrupt("return",Ae.sent);case 4:if(ne=G(fe),pe=ne==null?void 0:ne.key,pe){Ae.next=8;break}return Ae.abrupt("return",!0);case 8:return Se=v(j(fe),b),_e=z.parseVariable(Se,L,{doNotRequest:!0}).then(function(Te){var Pe=Te.value;return Pe}),de=(0,h.cG)(ne==null?void 0:ne.value)?[z.parseVariable(ne==null?void 0:ne.value,L).then(function(Te){var Pe=Te.value;return Pe}),_e]:[ne==null?void 0:ne.value,_e],Ae.prev=11,xe=Z(),Ae.next=15,Promise.all(de);case 15:return te=Ae.sent,X=o()(te,2),ve=X[0],ie=X[1],Ae.next=21,z.getCollectionField(Se,L);case 21:return Y=Ae.sent,ue=(0,C.J)(ie,{targetCollectionField:Y}),Ce=(0,C.J)(ve,{targetCollectionField:Y}),Y!=null&&Y.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(Y.type)&&ue&&(Ee=(0,D.CE)(Ce),Oe=(0,M.getPickerFormat)(Ee),ue=(0,M.dayjs)(ue).format(Oe)),Ae.abrupt("return",xe.apply(x()({},pe,[ue,Ce])));case 28:throw Ae.prev=28,Ae.t0=Ae.catch(11),Ae.t0;case 31:case"end":return Ae.stop()}},q,null,[[11,28]])}));return function(q){return W.apply(this,arguments)}}()),J.next=6,Promise.all(re);case 6:if(re=J.sent,F!=="$and"){J.next=11;break}return J.abrupt("return",(0,n.every)(re,function(W){return W}));case 11:return J.abrupt("return",(0,n.some)(re,function(W){return W}));case 12:case"end":return J.stop()}},t)}));return function(I){return P.apply(this,arguments)}}();function v(P){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(t,".").concat(P.join(".")," }}")}var a=function(t){var I={};return t.map(function(B){I[B.name]=B.ctx}),I};function S(P,t,I,B,z){return V.apply(this,arguments)}function V(){return V=m()(c()().mark(function P(t,I,B,z,L){var b,F,ee,re,oe,J,W,q,fe;return c()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!(I&&t==="handlebars")){pe.next=19;break}return pe.prev=1,ee=M.Handlebars.compile(I),re=a(z),oe=(B==null||(b=B.ctxRef)===null||b===void 0?void 0:b.current)||{},J=oe.$nDate,W={},Object.keys(J||{}).map(function(Se){W[Se]=J[Se]()}),q=ee(u()(u()(u()({},B==null||(F=B.ctxRef)===null||F===void 0?void 0:F.current),re),{},{$nDate:W})),pe.next=10,L(q);case 10:return pe.abrupt("return",pe.sent);case 13:return pe.prev=13,pe.t0=pe.catch(1),console.log(pe.t0),pe.abrupt("return",I);case 17:pe.next=32;break;case 19:return pe.prev=19,pe.next=22,(0,d.replaceVariableValue)(I,B,z);case 22:return fe=pe.sent,pe.next=25,L(fe);case 25:return pe.abrupt("return",pe.sent);case 28:return pe.prev=28,pe.t1=pe.catch(19),console.log(pe.t1),pe.abrupt("return",I);case 32:case"end":return pe.stop()}},P,null,[[1,13],[19,28]])})),V.apply(this,arguments)}},25145:function(ze,se,e){"use strict";e.d(se,{u:function(){return C}});var H=e(97857),u=e.n(H),k=e(5574),c=e.n(k),E=e(80844),x=e(96486),K=e(67294),o=e(64774),N=e(75585),m=e(22891),y={type:"void","x-component":"Action.Container","x-action":"view",title:'{{ t("View record") }}',"x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},f=e(94804),M=e(57105),n=e(73691),r=e(85893),d=function(){var R=(0,E.useFieldSchema)(),Z=(0,o.ngQ)(),w=Z.insertAfterBegin,$=(0,K.useCallback)(function(p){var A=R.reduceProperties(function(g,i){return i["x-component"]==="Action.Container"?i:g},null);A||w((0,x.cloneDeep)(p))},[R,w]);return $},h=function(R){return R["x-component"]==="Action.Container"};function C(D){return function(R){var Z=(0,K.useState)(!1),w=c()(Z,2),$=w[0],p=w[1],A=(0,K.useState)(!1),g=c()(A,2),i=g[0],G=g[1],j=d(),O=(0,f.Kx)(),l=(0,o.XCj)(),v=(0,E.useField)(),a=(0,E.useFieldSchema)(),S=(a==null?void 0:a["x-component-props"])||{},V=S.enableLink,P=S.openMode,t=S.openSize,I=(0,m.ES)(),B=I.visibleWithURL,z=I.setVisibleWithURL,L=(0,m.ES)(),b=L.openPopup,F=(0,K.useRef)(!1),ee=(0,K.useRef)(a);ee.current=a;var re=(0,K.useCallback)(function(){return ee.current},[]),oe=(0,K.useCallback)(function(){a.properties||(j(y),F.current=!0),F.current?(setTimeout(function(){b({customActionSchema:re()})}),F.current=!1):a.properties&&b()},[a,j,b,re]),J=l.setSubmitted,W=(0,K.useCallback)(function(q){p==null||p(q),z==null||z(q)},[z]);return V?(0,r.jsx)(N.OA,{visible:!1,children:(0,r.jsxs)(o.EIK,{button:(0,r.jsx)(D,u()({},R)),visible:$||B,setVisible:W,formValueChanged:i,setFormValueChanged:G,openMode:P,openSize:t,containerRefKey:"field-popup",fieldSchema:a,setSubmitted:J,children:[(0,r.jsx)(f.YQ,{name:O.name,children:(0,r.jsx)(o.G0E,{children:(0,r.jsx)(n.Rm,{children:(0,r.jsx)(M.sq,{onlyRenderProperties:!0,basePath:v==null?void 0:v.address,schema:a,filterProperties:h})})})}),(0,r.jsx)("a",{onClick:oe,children:(0,r.jsx)(D,u()({},R))})]})}):(0,r.jsx)(D,u()({},R))}}},61736:function(ze,se,e){"use strict";e.d(se,{D:function(){return u}});var H=e(67294),u=(0,H.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(ze,se,e){"use strict";e.d(se,{R:function(){return n}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(86201),x=e(80844),K=e(67294),o=e(47844),N=e(85893),m=["children","form"],y=["children"],f=function(d){var h=d.children,C=d.form,D=c()(d,m),R=(0,K.useContext)(x.SchemaOptionsContext),Z=(0,K.useContext)(x.SchemaExpressionScopeContext),w=u()(u()({},R==null?void 0:R.scope),Z),$=u()({},R==null?void 0:R.components);return(0,N.jsx)(x.FormProvider,u()(u()({},D),{},{form:C,children:(0,N.jsx)(o.G,{components:$,scope:w,children:h})}))},M=function(d){var h=d.children,C=c()(d,y),D=(0,K.useContext)(x.SchemaOptionsContext),R=(0,K.useContext)(x.SchemaExpressionScopeContext),Z=u()(u()({},D==null?void 0:D.scope),R),w=u()({},D==null?void 0:D.components),$=(0,K.useMemo)(function(){return(0,E.createForm)()},[]);return(0,N.jsx)(x.FormProvider,u()(u()({},C),{},{form:$,children:(0,N.jsx)(o.G,{components:w,scope:Z,children:h})}))},n=function(d){return d.form?(0,N.jsx)(f,u()({},d)):(0,N.jsx)(M,u()({},d))}},93587:function(ze,se,e){"use strict";e.d(se,{m:function(){return d}});var H=e(97857),u=e.n(H),k=e(86201),c=e(57953),E=e(67294),x=e(54195),K=e(21044),o=e(84577),N=e(44245),m=e(93323),y=e(12174),f=function(C){var D=C.uid,R=C.type,Z=R===void 0?"getJsonSchema":R,w=C.onSuccess,$={url:"/uiSchemas:".concat(Z,"/").concat(D)},p=(0,y.QT)($,{refreshDeps:[D],onSuccess:function(G){w&&w(G)}}),A=p.data,g=p.loading;return{schema:A==null?void 0:A.data,loading:g}},M=e(85893),n=function(C){return C},r=function(C){var D=C.noForm,R=C.onlyRenderProperties,Z=C.hidden,w=C.scope,$=C.uid,p=C.components,A=C.onSuccess,g=C.NotFoundPage,i=C.schemaTransform,G=i===void 0?n:i,j=C.onPageNotFind,O=R?"getProperties":"getJsonSchema",l=(0,E.useMemo)(function(){return(0,k.createForm)()},[$]),v=f({uid:$,type:O,onSuccess:function(I){A&&A(I)}}),a=v.schema,S=v.loading,V=(0,o.Co)(g),P=(0,x.Kk)();return P||S||Z?(0,M.jsx)(c.Z,{style:{width:"100%",marginTop:20},delay:K.fw}):!a||Object.keys(a).length===0?(j&&j(),V?(0,M.jsx)(V,{}):null):D?(0,M.jsx)(m.n,{components:p,scope:w,schema:G(a||{})}):(0,M.jsx)(N.R,{form:l,children:(0,M.jsx)(m.n,{components:p,scope:w,schema:G(a||{})})})},d=(0,E.memo)(function(h){return h.uid?(0,M.jsx)(r,u()({},h)):null});d.displayName="RemoteSchemaComponent"},93323:function(ze,se,e){"use strict";e.d(se,{A:function(){return R},n:function(){return $}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(9783),x=e.n(E),K=e(80844),o=e(96486),N=e.n(o),m=e(67294),y=e(57105),f=e(61736),M=e(47844),n=e(85893),r=["components","scope","schema","distributed","onChange"],d=["schema"],h=["memoized"];function C(p){return K.Schema.isSchemaInstance(p)?p:p!=null&&p.name?new K.Schema({type:"object",properties:x()({},p.name,p)}):new K.Schema(p)}var D=function(A){return(0,m.useMemo)(function(){return C(A)},[])},R=(0,m.createContext)({onChange:N().noop}),Z=(0,m.memo)(function(p){var A=p.components,g=p.scope,i=p.schema,G=p.distributed,j=p.onChange,O=c()(p,r),l=(0,m.useContext)(f.D),v=(0,m.useMemo)(function(){return C(i)},[i]),a=(0,m.useMemo)(function(){return u()(u()({},l),{},{distributed:l.distributed==!1?!1:G,refresh:l.refresh||N().noop})},[l,G]),S=(0,m.useContext)(R),V=S.onChange,P=(0,m.useMemo)(function(){return{onChange:function(){j==null||j(v),V==null||V()}}},[j,V,v]);return(0,n.jsx)(R.Provider,{value:P,children:(0,n.jsx)(f.D.Provider,{value:a,children:(0,n.jsx)(M.G,{inherit:!0,components:A,scope:g,children:(0,n.jsx)(y.sq,u()(u()({},O),{},{schema:v,isUseFormilyField:!0}))})})})});Z.displayName="RecursionSchemaComponent";var w=(0,m.memo)(function(p){var A=p.schema,g=c()(p,d),i=D(A);return(0,n.jsx)(Z,u()(u()({},g),{},{schema:i}))});w.displayName="MemoizedSchemaComponent";var $=(0,m.memo)(function(p){var A=p.memoized,g=c()(p,h);return A?(0,n.jsx)(w,u()({},g)):(0,n.jsx)(Z,u()({},g))});$.displayName="SchemaComponent"},47844:function(ze,se,e){"use strict";e.d(se,{B:function(){return x},G:function(){return K}});var H=e(97857),u=e.n(H),k=e(80844),c=e(67294),E=e(85893),x=function(){var N=(0,c.useContext)(k.SchemaOptionsContext);return N||{}},K=(0,c.memo)(function(o){var N=o.children,m=x(),y=(0,c.useMemo)(function(){return u()(u()({},m.components),o.components)},[m.components,o.components]),f=(0,c.useMemo)(function(){return u()(u()({},m.scope),o.scope)},[m.scope,o.scope]),M=(0,c.useMemo)(function(){return{scope:f,components:y}},[f,y]);return(0,E.jsx)(k.SchemaOptionsContext.Provider,{value:M,children:(0,E.jsx)(k.SchemaComponentsContext.Provider,{value:y,children:(0,E.jsx)(k.ExpressionScope,{value:f,children:N})})})});K.displayName="SchemaComponentOptions"},70993:function(ze,se,e){"use strict";e.d(se,{_b:function(){return p},RV:function(){return A.R},m1:function(){return g.m},n6:function(){return i.n},AT:function(){return i.A},G0:function(){return G.G},a$:function(){return ee},Tz:function(){return b},Bs:function(){return G.B}});var H=e(15009),u=e.n(H),k=e(99289),c=e.n(k),E=e(12444),x=e.n(E),K=e(72004),o=e.n(K),N=e(31996),m=e.n(N),y=e(26037),f=e.n(y),M=e(51947),n=e(83062),r=e(15867),d=e(67294),h=e(49218),C=e(26793),D=e(64774),R=e(68230),Z=e(85893),w={backgroundColor:"var(--colorSettings) !important"},$={backgroundColor:"transparent"},p=function(){var J=(0,D.ngQ)(),W=J.designable,q=J.setDesignable,fe=(0,C.$)(),ne=fe.t,pe=(0,R.d)(),Se=pe.token,_e=W?w:$;return(0,h.y1)("Ctrl+Shift+U",function(){return q(!W)},[W]),(0,Z.jsx)(n.Z,{title:ne("UI Editor"),children:(0,Z.jsx)(r.ZP,{"data-testid":"ui-editor-button",icon:(0,Z.jsx)(M.Z,{style:{color:Se.colorTextHeaderMenu}}),title:ne("UI Editor"),style:_e,onClick:function(){q(!W)}})})},A=e(44245),g=e(93587),i=e(93323),G=e(47844),j=e(97857),O=e.n(j),l=e(5574),v=e.n(l),a=e(86201),S=e(80844),V=e(84327),P=e(96486),t=e.n(P),I=e(61736),B=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(J).concat((0,V.uid)())};S.Schema.silent(!0);var z={},L={silent:!0,compile:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=function(){if(L.silent)try{return new Function("$root","with($root) { return (".concat(J,"); }"))(W)}catch{return"{{".concat(J,"}}")}else return new Function("$root","with($root) { return (".concat(J,"); }"))(W)};return z[J]?z[J]:J.trim().startsWith("t(")?(z[J]=q(),z[J]):q()}};S.Schema.registerCompiler(L.compile);var b=function(J){var W=J.designable,q=J.onDesignableChange,fe=J.components,ne=J.children,pe=(0,d.useContext)(I.D),Se=(0,G.B)(),_e=(0,d.useState)(function(){return(0,V.uid)()}),de=v()(_e,2),xe=de[0],te=de[1],X=(0,d.useMemo)(function(){return J.form||(0,a.createForm)()},[xe]),ve=(0,C.$)(),ie=ve.t,Y=(0,d.useMemo)(function(){return O()(O()({},J.scope),{},{t:ie,randomString:B})},[J.scope,ie,Se==null?void 0:Se.scope]),ue=(0,d.useState)(W),Ce=v()(ue,2),Ee=Ce[0],Oe=Ce[1],Re=(0,d.useMemo)(function(){return typeof W=="boolean"?W:Ee},[W,Ee,pe.designable]),Ae=(0,d.useMemo)(function(){return function(ye){typeof Re!="boolean"&&Oe(ye),q==null||q(ye)}},[Re,q]),Te=(0,d.useCallback)(function(){te((0,V.uid)())},[]),Pe=(0,d.useMemo)(function(){return{scope:Y,components:fe,reset:Te,refresh:t().noop,designable:Re,setDesignable:Ae}},[fe,Re,Te,Y,Ae]);return(0,Z.jsx)(I.D.Provider,{value:Pe,children:(0,Z.jsx)(S.FormProvider,{form:X,children:(0,Z.jsx)(G.G,{inherit:!0,scope:Y,components:fe,children:ne})})})};b.displayName="SchemaComponentProvider";var F=e(31601),ee=function(oe){m()(W,oe);var J=f()(W);function W(){return x()(this,W),J.apply(this,arguments)}return o()(W,[{key:"load",value:function(){var q=c()(u()().mark(function ne(){return u()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:this.addComponents();case 1:case"end":return Se.stop()}},ne,this)}));function fe(){return q.apply(this,arguments)}return fe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:p})}}]),W}(F.S),re=null},84577:function(ze,se,e){"use strict";e.d(se,{zz:function(){return K.zz},Pl:function(){return K.Pl},oB:function(){return K.oB},lI:function(){return u},hi:function(){return Z.hi},eJ:function(){return k.e},Co:function(){return x},aZ:function(){return Z.aZ},ng:function(){return K.ng},et:function(){return o.e},cL:function(){return d},fd:function(){return w},Cl:function(){return y},vH:function(){return D},sR:function(){return K.sR},wN:function(){return R.w},Dm:function(){return M},fM:function(){return Z.fM}});var H=e(67294),u=function(p){var A=(0,H.useRef)(null);return(0,H.useEffect)(function(){return A.current&&p!==A.current&&A.current.onUnmount(),A.current=p,p.onMount(),function(){p.onUnmount()}},[p]),p},k=e(96365),c=e(80844),E=e(96486),x=function(p,A){var g=(0,H.useContext)(c.SchemaOptionsContext),i=g.components;return p?typeof p!="string"?p:(0,E.get)(i,p)||A:A},K=e(94516),o=e(98146),N=e(97857),m=e.n(N),y=function(p){var A=(0,H.useContext)(c.SchemaOptionsContext),g=(0,H.useContext)(c.SchemaExpressionScopeContext),i=(0,H.useRef)();return i.current=g,p.toFieldProps(m()(m()({},A),{},{get scope(){return m()(m()({},A.scope),i.current)}}))},f=e(61736);function M(){return(0,H.useContext)(f.D)}var n=e(26793),r=e(6145),d=function(){var p,A=(0,r.useCollectionManager_deprecated)(),g=A.getCollectionJoinField,i=A.getCollection,G=(0,c.useFieldSchema)(),j=(0,r.useCollection_deprecated)(),O=j.getField,l=O(G.name)||g(G["x-collection-field"]),v=(0,n.$)(),a=v.t,S=((p=G["x-component-props"])===null||p===void 0?void 0:p.fieldNames)||{},V=S.label,P=(0,H.useMemo)(function(){if(!(!l||!(l!=null&&l.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(l.interface)){var t=i(l.target);if((t==null?void 0:t.template)==="file")return[{label:a("Record picker"),value:"CollectionField"},{label:a("Select"),value:"AssociationSelect"}];switch(l.interface){case"o2m":return[{label:a("Record picker"),value:"CollectionField"},{label:a("Subtable"),value:"TableField"},{label:a("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:a("Record picker"),value:"CollectionField"},{label:a("Select"),value:"AssociationSelect"}];default:return[{label:a("Record picker"),value:"CollectionField"},{label:a("Subform"),value:"FormField"},{label:a("Select"),value:"AssociationSelect"}]}}},[a,l==null?void 0:l.interface,V]);return P},h=e(35746),C=e(58837),D=function(){var p,A=(0,c.useField)(),g=(0,c.useFieldSchema)(),i=(0,C.Kx)(),G=(0,h.d9)(),j=(i==null?void 0:i.getField(g.name))||(G==null?void 0:G.getCollectionField(g["x-collection-field"])),O=(0,k.e)();(0,H.useEffect)(function(){if(!(A!=null&&A.title)){var l;A.title=O(j==null||(l=j.uiSchema)===null||l===void 0?void 0:l.title)}},[j==null||(p=j.uiSchema)===null||p===void 0?void 0:p.title])},R=e(9780),Z=e(18686),w=function(p){var A,g=(0,n.$)(),i=g.t,G=(0,r.useCollectionManager_deprecated)(),j=G.getCollectionJoinField,O=G.getCollection,l=(0,c.useFieldSchema)(),v=(p==null?void 0:p.fieldSchema)||l,a=(0,c.useField)(),S=(0,c.useForm)(),V=(v==null?void 0:v["x-read-pretty"])||a.readPretty||S.readPretty,P=p==null?void 0:p.fieldSchema,t=(0,r.useCollection_deprecated)(),I=t.getField,B=(p==null?void 0:p.collectionField)||I(v.name)||j(v["x-collection-field"]),z=((A=v["x-component-props"])===null||A===void 0?void 0:A.fieldNames)||{},L=z.label,b=(0,H.useMemo)(function(){if(!(!B||!(B!=null&&B.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm","attachmentURL"].includes(B.interface)){var F=O(B.target);if((F==null?void 0:F.template)==="file")return V?[{label:i("Title"),value:"Select"},{label:i("File manager"),value:"FileManager"},{label:i("Tag"),value:"Tag"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},{label:i("File manager"),value:"FileManager"}];if((F==null?void 0:F.template)==="tree"&&["m2m","o2m","m2o"].includes(B.interface))return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"},!P&&{label:i("Sub-table"),value:"SubTable"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&["m2m","o2m"].includes(B.interface)&&{label:i("Sub-table"),value:"SubTable"},!P&&{label:i("Cascade Select"),value:"CascadeSelect"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}];switch(B.interface){case"o2m":return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-table"),value:"SubTable"},!P&&{label:i("Sub-details"),value:"Nester"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"},!P&&{label:i("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"},!P&&{label:i("Sub-table"),value:"SubTable"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-table"),value:"SubTable"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}];default:return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}]}}},[i,B==null?void 0:B.interface,L]);return(b||[]).filter(Boolean)}},18686:function(ze,se,e){"use strict";e.d(se,{aZ:function(){return $},fM:function(){return A},hi:function(){return p}});var H=e(5574),u=e.n(H),k=e(97857),c=e.n(k),E=e(80844),x=e(83204),K=e(9361),o=e(96486),N=e.n(o),m=e(67294),y=e(89250),f=e(64774),M=e(21143),n=e(10097),r=e(1892),d=e(28561),h=function(G,j,O,l,v){return v.includes("/popups/")?2*l.paddingContentVertical+22+l.paddingPageVertical:G?l.paddingContentHorizontalLG:O?j?l.controlPaddingHorizontal+3*l.controlPaddingHorizontalSM+22+l.paddingContentHorizontalLG:l.paddingContentHorizontalLG+12:j?l.paddingSM+l.controlHeight+l.marginXS+2*l.controlPaddingHorizontalSM+22+l.paddingContentHorizontalLG:l.controlHeight+l.marginXS+(l.paddingXXS+2)*2+l.paddingContentHorizontalLG},C=function(G){var j=K.Z.useToken(),O=j.token,l=(0,f.ngQ)(),v=l.designable,a=(0,n.useBlockHeightProps)(),S=a.heightProps,V=(0,y.useLocation)(),P=G||S||{},t=P.disablePageHeader,I=P.enablePageTabs,B=P.hidePageTitle,z=O.sizeXXL-2,L=v?O.controlHeight+2*O.paddingContentHorizontalLG:1*O.paddingContentHorizontalLG,b=h(t,I,B,O,V.pathname);return z+b+L},D=function(){var G=K.Z.useToken(),j=G.token,O=(0,f.ngQ)(),l=O.designable,v=j.paddingContentVerticalLG+j.margin+2*j.paddingContentVertical+24,a=l?j.controlHeight+2*j.paddingContentHorizontalLG:1*j.paddingContentHorizontalLG;return v+a},R=function(G){var j=(0,E.useFieldSchema)(),O=g(j),l=C(G),v=D();return O?v:l},Z=["users_jobs","approvals","approvalRecords"],w=function(){var G,j=K.Z.useToken(),O=j.token,l=(0,n.useBlockHeightProps)(),v=l.heightProps,a=(0,r.Si)(),S=a.heightProps,V=(0,f.ngQ)(),P=V.designable,t=(0,E.useFieldSchema)(),I=S||v,B=R(I),z=(0,M.useCollection)(),L=z.name,b=I.heightMode,F=I.height,ee=I.title;if(!(!(I!=null&&I.heightMode)||b===d.j.DEFAULT)){var re=Object.keys(((G=t.parent.properties.actions)===null||G===void 0?void 0:G.properties)||{}).length>0,oe=O.controlHeight+O.padding+O.marginLG,J=re||P?O.controlHeight+2*O.marginLG:O.marginLG,W=(P&&!Z.includes(L)?O.controlHeight:22)+2*O.padding+1,q=ee?O.fontSizeLG*O.lineHeightLG+O.padding*2-1:0;return b===d.j.FULL_HEIGHT?window.innerHeight-B-q-W-J-oe:F-q-J-W-oe}},$=function(G){var j=(0,n.useBlockHeightProps)(),O=j.heightProps,l=R(),v=K.Z.useToken(),a=v.token,S=O||{},V=S.heightMode,P=S.height,t=S.title,I=t?a.fontSizeLG*a.lineHeightLG+a.padding*2-1:0;if(!(!(O!=null&&O.heightMode)||V===d.j.DEFAULT)){if(V===d.j.FULL_HEIGHT){var B=window.innerHeight-l;return G!=null&&G.removeBlockHeaderHeight&&(B=B-I),G!=null&&G.innerExtraHeight&&(B=B-G.innerExtraHeight),B}return P}},p=function(){var G=(0,E.useFieldSchema)(),j=(0,m.useMemo)(function(){return(0,n.getPageSchema)(G)},[]),O=(j==null?void 0:j["x-component-props"])||{},l=O.disablePageHeader,v=O.enablePageTabs,a=O.hidePageTitle,S=c()(c()({},G==null?void 0:G["x-component-props"]),{},{disablePageHeader:l,enablePageTabs:v,hidePageTitle:a}),V=R(S),P=S||{},t=P.heightMode,I=P.height;if(!(!(S!=null&&S.heightMode)||t===d.j.DEFAULT))return t===d.j.FULL_HEIGHT?window.innerHeight-V:I},A=function(){var G=(0,m.useState)(),j=u()(G,2),O=j[0],l=j[1],v=(0,m.useRef)(null),a=w(),S=(0,m.useCallback)((0,o.debounce)(function(){var P;if(v.current){var t=v.current.getBoundingClientRect(),I=(P=v.current.querySelector(".ant-table"))===null||P===void 0?void 0:P.getBoundingClientRect();I&&l(t.width)}},100),[a]),V=(0,m.useCallback)(function(P){v.current=P&&P.children?P.children[0]:null,S()},[S]);return(0,x.Z)("resize",S),{height:a,width:O,tableSizeRefCallback:V}},g=function i(G){if(!G)return null;if(G["x-component"]==="Action.Container"){var j;return(G==null||(j=G.parent["x-component-props"])===null||j===void 0?void 0:j.openMode)!=="page"}return i(G.parent)}},96365:function(ze,se,e){"use strict";e.d(se,{e:function(){return N}});var H=e(97857),u=e.n(H),k=e(52677),c=e.n(k),E=e(80844),x=e(67294),K={},o=function(y){var f=/{{.*?}}/g;return f.test(y)},N=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},f=y.noCache,M=(0,x.useContext)(E.SchemaOptionsContext),n=(0,x.useContext)(E.SchemaExpressionScopeContext);return function(r,d){var h=!1,C;if(typeof r=="string"&&r.startsWith("{{")&&(h=!0,C=r),r&&c()(r)==="object"&&!(0,x.isValidElement)(r)){try{C=JSON.stringify(r)}catch(R){return console.warn("Failed to stringify:",R),r}if(K[C])return K[C];h=o(C)}if(Array.isArray(r)){try{C=JSON.stringify(r)}catch(R){return console.warn("Failed to stringify:",R),r}if(K[C])return K[C];h=o(C)}if(h){var D=u()(u()(u()({},M.scope),n),d);if(!C)return E.Schema.compile(r,D);try{return f?E.Schema.compile(r,D):(K[C]=K[C]||E.Schema.compile(r,D),K[C])}catch(R){return console.log("useCompile error",r,R),E.Schema.compile(r,D)}}return r}}},94516:function(ze,se,e){"use strict";e.d(se,{zz:function(){return b},Pl:function(){return P},oB:function(){return z},ng:function(){return ee},sR:function(){return F}});var H=e(5574),u=e.n(H),k=e(19632),c=e.n(k),E=e(15009),x=e.n(E),K=e(99289),o=e.n(K),N=e(12444),m=e.n(N),y=e(72004),f=e.n(y),M=e(9783),n=e.n(M),r=e(97857),d=e.n(r),h=e(80844),C=e(84327),D=e(90105),R=e(45360),Z=e(50361),w=e.n(Z),$=e(27361),p=e.n($),A=e(36968),g=e.n(A),i=e(67294),G=e(26793),j=e(12174),O=e(57105),l=e(98902),v=e(61736);function a(re,oe){if(re)return re["x-app-version"]||(re["x-app-version"]=oe),Object.keys(re.properties||{}).forEach(function(J){var W;a((W=re.properties)===null||W===void 0?void 0:W[J],oe)}),re}var S=JSON.parse('{"i8":"1.6.0-beta.2"}'),V=e(85893);function P(re){return new b(re)}var t=function re(oe){oe&&(oe["x-uid"]||(oe["x-uid"]=(0,C.uid)()),Object.keys(oe.properties||{}).forEach(function(J){re(oe.properties[J])}))},I=function(oe){return oe},B=function(oe,J){if(!(!oe||!J)){for(var W in J)if(Object.prototype.hasOwnProperty.call(J,W)){var q=J[W];if(q!==(oe==null?void 0:oe[W]))return!1}return!0}},z=function(oe,J){if(oe["x-uid"]&&oe["x-uid"]===J["x-uid"])return[null,oe.toJSON()];var W=oe.toJSON(),q=d()(d()({},W),{},{properties:{}}),fe=null,ne=function pe(Se,_e){Object.keys(Se||{}).forEach(function(de){var xe=Se[de];if(xe["x-uid"]===J["x-uid"]){fe=Se[de];return}else _e.properties[de]=d()(d()({},xe),{},{properties:{}}),pe(xe==null?void 0:xe.properties,_e.properties[de])})};return ne(W.properties,q),[q,fe]},L=function(oe){return oe},b=function(){function re(oe){m()(this,re),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=oe,this.current=oe.current,this.appVersion=oe.appVersion}return f()(re,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var J=this,W=this.options,q=W.api,fe=W.t,ne=fe===void 0?L:fe;if(q){var pe=function(_e){if(!_e)return[];var de=Object.values(_e.properties).length,xe=[];return _e.mapProperties(function(te){te["x-component-props"]=te["x-component-props"]||{},te["x-component-props"].width=100/de,te["x-uid"]&&xe.push({"x-uid":te["x-uid"],"x-component-props":te["x-component-props"]})}),_e["x-uid"]&&xe.length?xe:[]};this.on("insertAdjacent",function(){var Se=o()(x()().mark(function _e(de){var xe,te,X,ve,ie,Y,ue,Ce,Ee,Oe;return x()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(te=de.onSuccess,X=de.current,ve=de.position,ie=de.schema,Y=de.wrap,ue=de.wrapped,Ce=de.removed,Ee=[],(ue==null?void 0:ue["x-component"])==="Grid.Col"&&(Ee=Ee.concat(pe(ue.parent))),(Ce==null?void 0:Ce["x-component"])==="Grid.Col"&&(Ee=Ee.concat(pe(Ce.parent))),J.refresh(),X["x-uid"]){Ae.next=7;break}return Ae.abrupt("return");case 7:return Ae.next=9,q.request({url:"/uiSchemas:insertAdjacent/".concat(X["x-uid"],"?position=").concat(ve),method:"post",data:{schema:a(ie,J.appVersion),wrap:Y}});case 9:if(Oe=Ae.sent,!Ee.length){Ae.next=13;break}return Ae.next=13,q.request({url:"/uiSchemas:batchPatch",method:"post",data:Ee});case 13:if(!(Ce!=null&&Ce["x-uid"])){Ae.next=16;break}return Ae.next=16,q.request({url:"/uiSchemas:remove/".concat(Ce["x-uid"]),method:"post"});case 16:te==null||te(Oe==null||(xe=Oe.data)===null||xe===void 0?void 0:xe.data),R.ZP.success(ne("Saved successfully"),.2);case 18:case"end":return Ae.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("patch",function(){var Se=o()(x()().mark(function _e(de){var xe;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(xe=de.schema,J.refresh(),xe!=null&&xe["x-uid"]){X.next=4;break}return X.abrupt("return");case 4:return X.next=6,q.request({url:"/uiSchemas:patch",method:"post",data:d()({},xe)});case 6:R.ZP.success(ne("Saved successfully"),.2);case 7:case"end":return X.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var Se=o()(x()().mark(function _e(de){var xe;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(xe=de.schema,xe!=null&&xe["x-uid"]){X.next=3;break}return X.abrupt("return");case 3:return X.next=5,q.request({url:"/uiSchemas:initializeActionContext",method:"post",data:d()({},xe)});case 5:case"end":return X.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("batchPatch",function(){var Se=o()(x()().mark(function _e(de){var xe;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return xe=de.schemas,J.refresh(),X.next=4,q.request({url:"/uiSchemas:batchPatch",method:"post",data:xe});case 4:R.ZP.success(ne("Saved successfully"),.2);case 5:case"end":return X.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("remove",function(){var Se=o()(x()().mark(function _e(de){var xe,te;return x()().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(xe=de.removed,te=[],(xe==null?void 0:xe["x-component"])==="Grid.Col"&&(te=pe(xe.parent)),J.refresh(),xe!=null&&xe["x-uid"]){ve.next=6;break}return ve.abrupt("return");case 6:return ve.next=8,q.request({url:"/uiSchemas:remove/".concat(xe["x-uid"]),method:"post"});case 8:if(!te.length){ve.next=11;break}return ve.next=11,q.request({url:"/uiSchemas:batchPatch",method:"post",data:te});case 11:R.ZP.success(ne("Saved successfully"),.2);case 12:case"end":return ve.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(J){J.type||(J.type="void"),J.name||(J.name=(0,C.uid)()),this.current["x-uid"]&&t(J)}},{key:"on",value:function(J,W){this.events[J]||(this.events[J]=[]),this.events[J].push(W)}},{key:"emit",value:function(){var oe=o()(x()().mark(function W(q){var fe=this,ne,pe,Se,_e,de,xe=arguments;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(this.events[q]){X.next=2;break}return X.abrupt("return");case 2:for(ne=xe.length,pe=new Array(ne>1?ne-1:0),Se=1;Se<ne;Se++)pe[Se-1]=xe[Se];return _e=pe[0],de=pe.slice(1),X.abrupt("return",Promise.all(this.events[q].map(function(ve){return ve.bind(fe).apply(void 0,[d()({current:fe.current},_e)].concat(c()(de)))})));case 5:case"end":return X.stop()}},W,this)}));function J(W){return oe.apply(this,arguments)}return J}()},{key:"parentsIn",value:function(J){if(!J||!h.Schema.isSchemaInstance(J))return!1;for(var W=this.current;(q=W)!==null&&q!==void 0&&q.parent;){var q;if(W.parent===J)return!0;W=W.parent}return!1}},{key:"refresh",value:function(J){var W=this.options.refresh;return W==null?void 0:W(J)}},{key:"deepMerge",value:function(J){var W=this,q={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"},fe={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(J).forEach(function(ne){q[ne]?(W.current[ne]=J[ne],W.updateModel(q[ne],J[ne])):fe[ne]?Object.keys(J[ne]).forEach(function(pe){g()(W.current,[ne,pe],J[ne][pe]),W.updateModel([fe[ne],pe],J[ne][pe])}):W.current[ne]=J[ne]}),this.emit("patch",{schema:J})}},{key:"getSchemaAttribute",value:function(J,W){return p()(this.current,J,W)}},{key:"shallowMerge",value:function(J){var W=this,q={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(J).forEach(function(fe){W.current[fe]=J[fe],q[fe]&&W.updateModel(q[fe],J[fe])}),this.emit("patch",{schema:J})}},{key:"updateModel",value:function(J,W){var q=function(ne){g()(ne,J,W)};this.model&&q(this.model),this.query&&this.query.take(q)}},{key:"insertAdjacent",value:function(J,W){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(J){case"beforeBegin":return this.insertBeforeBegin(W,q);case"afterBegin":return this.insertAfterBegin(W,q);case"beforeEnd":return this.insertBeforeEnd(W,q);case"afterEnd":return this.insertAfterEnd(W,q)}}},{key:"recursiveRemoveIfNoChildren",value:function(J,W){if(J){for(var q=J,fe,ne=W==null?void 0:W.breakRemoveOn;q;){if(typeof ne=="function"){if(ne(q))break}else if(B(q,ne))break;var pe=Object.keys(q.properties||{}).length;if(pe>0)break;q.parent&&(fe=q.parent.removeProperty(q.name)),q=q.parent}return fe}}},{key:"remove",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,ne=J||this.current,pe=ne.parent.removeProperty(ne.name);if(fe){var Se=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:q});Se&&(pe=Se)}return this.emit("remove",{removed:pe})}},{key:"removeWithoutEmit",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,ne=J||this.current,pe=ne.parent.removeProperty(ne.name);if(fe){var Se=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:q});Se&&(pe=Se)}return pe}},{key:"insertBeforeBeginOrAfterEnd",value:function(J){var W=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)&&h.Schema.isSchemaInstance(J)&&this.current.parent===J.parent){var fe=0,ne=0;return this.current.parent.mapProperties(function(pe,Se,_e){W.current.name===Se&&(ne=_e),J.name===Se&&(fe=_e)}),fe>ne?this.insertBeforeBegin(J,q):this.insertAfterEnd(J,q)}}},{key:"insertBeforeBegin",value:function(J){var W=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){var fe={onSuccess:q.onSuccess},ne=q.wrap,pe=ne===void 0?I:ne,Se=q.breakRemoveOn,_e=q.removeParentsIfNoChildren;if(h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),_e&&(fe.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:Se}))}else J&&(J=w()(J));var de={},xe=!1,te=0,X=0;this.current.parent.mapProperties(function(Oe,Re){Re===W.current.name&&(X=te,xe=!0,++te),Oe["x-index"]=te,++te,xe&&(de[Re]=Oe,W.current.parent.removeProperty(Re))}),this.prepareProperty(J);var ve=pe(J),ie=this.current.parent.addProperty(ve.name||(0,C.uid)(),ve);ie["x-index"]=X,ie.parent=this.current.parent,this.current.parent.setProperties(de);var Y=z(ie,J),ue=u()(Y,2),Ce=ue[0],Ee=ue[1];this.emit("insertAdjacent",d()({position:"beforeBegin",schema:Ee,wrapped:ve,wrap:Ce},fe))}}},{key:"insertAfterBegin",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){var q={onSuccess:W.onSuccess},fe=W.wrap,ne=fe===void 0?I:fe,pe=W.breakRemoveOn,Se=W.removeParentsIfNoChildren;if(h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),Se&&(q.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:pe}))}else J&&(J=w()(J));var _e={},de=1;this.current.mapProperties(function(ue,Ce){ue["x-index"]=de,++de,_e[Ce]=ue}),this.current.properties={},this.prepareProperty(J);var xe=ne(J),te=this.current.addProperty(xe.name||(0,C.uid)(),xe);te["x-index"]=0,te.parent=this.current,this.current.setProperties(_e);var X=z(te,J),ve=u()(X,2),ie=ve[0],Y=ve[1];this.emit("insertAdjacent",d()({position:"afterBegin",schema:Y,wrap:ie,wrapped:xe},q))}}},{key:"insertBeforeEnd",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){delete J["x-index"];var q={onSuccess:W.onSuccess},fe=W.wrap,ne=fe===void 0?I:fe,pe=W.breakRemoveOn,Se=W.removeParentsIfNoChildren;if(h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),Se&&(q.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:pe}))}else J&&(J=w()(J));this.prepareProperty(J);var _e=ne(J),de=this.current.addProperty(_e.name||(0,C.uid)(),_e);de.parent=this.current;var xe=z(de,J),te=u()(xe,2),X=te[0],ve=te[1];return this.emit("insertAdjacent",d()({position:"beforeEnd",schema:ve,wrap:X,wrapped:_e},q))}}},{key:"insertAfterEnd",value:function(J){var W=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){var fe={onSuccess:q==null?void 0:q.onSuccess},ne=q.wrap,pe=ne===void 0?I:ne,Se=q.breakRemoveOn,_e=q.removeParentsIfNoChildren,de=0,xe=0,te=!1,X={};if(this.current.parent.mapProperties(function(Oe,Re){Oe["x-index"]=de,Re===W.current.name&&(++de,xe=de,te=!0),++de,te&&Re!==W.current.name&&(X[Re]=Oe,W.current.parent.removeProperty(Re))}),h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),_e&&(fe.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:Se})),J.parent=null}else J&&(J=w()(J));this.prepareProperty(J);var ve=pe(J),ie=this.current.parent.addProperty(ve.name||(0,C.uid)(),ve);ie.parent=this.current.parent,ie["x-index"]=xe,this.current.parent.setProperties(X);var Y=z(ie,J),ue=u()(Y,2),Ce=ue[0],Ee=ue[1];this.emit("insertAdjacent",d()({position:"afterEnd",schema:Ee,wrap:Ce,wrapped:ve},fe))}}}]),re}();function F(){var re=(0,i.useContext)(h.SchemaOptionsContext),oe=(0,i.useMemo)(function(){return(re==null?void 0:re.components)||{}},[re]),J=function(q){if(!q)return null;if(typeof q!="string")return q;var fe=p()(oe,q);return fe||console.error('[nocobase]: Component "'.concat(q,'" not found')),fe};return J}function ee(){var re=(0,i.useContext)(v.D),oe=re.designable,J=re.setDesignable,W=re.refresh,q=re.reset,fe=(0,i.useContext)(h.SchemaOptionsContext),ne=(0,i.useMemo)(function(){return(fe==null?void 0:fe.components)||{}},[fe]),pe=(0,i.useMemo)(function(){return function(){return(0,V.jsx)(V.Fragment,{})}},[]),Se=(0,D.Z)(),_e=(0,O.gR)(),de=(0,O.QJ)(),xe=(0,i.useCallback)(function(Ce){W==null||W(),Se(),_e==null||_e(Ce),de==null||de()},[W,Se,_e,de]),te=(0,h.useField)(),X=(0,h.useFieldSchema)(),ve=(0,j.LY)(),ie=(0,G.$)(),Y=ie.t,ue=(0,i.useMemo)(function(){return P({t:Y,api:ve,refresh:xe,current:X,model:te,appVersion:S.i8})},[Y,ve,xe,X,te]);return(0,i.useEffect)(function(){ue.loadAPIClientEvents()},[ue]),{dn:ue,designable:oe,reset:q,refresh:xe,setDesignable:J,DesignableBar:pe,findComponent:(0,i.useCallback)(function(Ce){var Ee;if(!Ce)return null;if(typeof Ce!="string")return Ce;var Oe=p()(ne,Ce);return(Ee=Oe[l.XI])!==null&&Ee!==void 0?Ee:Oe},[p()]),on:ue.on.bind(ue),patch:(0,i.useCallback)(function(Ce,Ee){var Oe=function(Te){Object.keys(Te).forEach(function(Pe){var ye=Te[Pe];Pe==="title"&&(te.title=ye,X.title=ye),Pe==="x-decorator-props"&&(te.decoratorProps||(te.decoratorProps={}),X["x-decorator-props"]||(X["x-decorator-props"]={}),Object.keys(ye).forEach(function(le){te.decoratorProps[le]=ye[le],X["x-decorator-props"][le]=ye[le]})),Pe==="x-component-props"&&(te.componentProps||(te.componentProps={}),X["x-component-props"]||(X["x-component-props"]={}),Object.keys(ye).forEach(function(le){te.componentProps[le]=ye[le],X["x-component-props"][le]=ye[le]}))})};if(typeof Ce=="string"){var Re={};return g()(Re,Ce,Ee),Oe(Re)}Oe(Ce),xe()},[ue]),shallowMerge:(0,i.useCallback)(function(Ce){ue.shallowMerge(Ce)},[ue]),deepMerge:(0,i.useCallback)(function(Ce){ue.deepMerge(Ce)},[ue]),remove:(0,i.useCallback)(function(Ce,Ee){ue.remove(Ce,Ee)},[ue]),insertAdjacent:(0,i.useCallback)(function(Ce,Ee,Oe){ue.insertAdjacent(Ce,Ee,Oe)},[ue]),insertBeforeBegin:(0,i.useCallback)(function(Ce){ue.insertBeforeBegin(Ce)},[ue]),insertAfterBegin:(0,i.useCallback)(function(Ce){ue.insertAfterBegin(Ce)},[ue]),insertBeforeEnd:(0,i.useCallback)(function(Ce){ue.insertBeforeEnd(Ce)},[ue]),insertAfterEnd:(0,i.useCallback)(function(Ce){ue.insertAfterEnd(Ce)},[ue])}}},98146:function(ze,se,e){"use strict";e.d(se,{e:function(){return x}});var H=e(80844),u=e(84577),k=e(67294),c=e(83880),E=function(){return null};E.isNullComponent=!0;var x=function(){var o=(0,u.ng)(),N=o.designable,m=(0,H.useFieldSchema)(),y=(0,k.useMemo)(function(){return m["x-designer"]||m["x-toolbar"]?m["x-designer"]||m["x-toolbar"]:m["x-settings"]?c.Mf:E},[m]),f=(0,u.Co)(y);return N&&f||E}},9780:function(ze,se,e){"use strict";e.d(se,{w:function(){return K}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=["useProps"],x=function(){return{}},K=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=N.useProps,y=m===void 0?x:m,f=c()(N,E),M=y;typeof y!="function"&&(M=x);var n=M();return u()(u()({},f),n)}},64774:function(ze,se,e){"use strict";e.d(se,{aUM:function(){return w.aU},olz:function(){return w.ol},N0i:function(){return w.N0},fWn:function(){return w.fW},mlL:function(){return w.ml},EIK:function(){return w.EI},$Lt:function(){return w.$L},$b8:function(){return w.$b},HTy:function(){return Mo},lkv:function(){return vo},rDu:function(){return lr},eYL:function(){return w.eY},Rat:function(){return aa},oAt:function(){return Oo},E7E:function(){return $o},$SD:function(){return Fi},fUi:function(){return Cr.fU},QcG:function(){return as},MLy:function(){return Wo.M},gOu:function(){return Rs},jYG:function(){return Ia.jY},PuU:function(){return Ia.Pu},C1I:function(){return w.C1},Ssf:function(){return ls},vTp:function(){return cs},XZJ:function(){return va},Tt2:function(){return ps},zH8:function(){return _s},Q5L:function(){return Ps},Pok:function(){return Ri},Vm0:function(){return Ds},xI_:function(){return hs},Lip:function(){return fs},WN4:function(){return Hi.W},Mtg:function(){return pa.Mt},iNu:function(){return pa.iN},zzt:function(){return nt.zz},_bl:function(){return D._b},POi:function(){return Ms},AOY:function(){return Se},izJ:function(){return ku},LBT:function(){return C.DndContext},IWB:function(){return C.DragHandler},LCt:function(){return C.DraggableContext},FyH:function(){return fe.Fy},Nir:function(){return fe.Ni},q8U:function(){return fe.q8},HGA:function(){return fe.HG},QTe:function(){return fe.QT},JEX:function(){return fe.JE},fAH:function(){return Dl},$w$:function(){return fe.$w},nBj:function(){return fe.nB},Oct:function(){return fe.Oc},zdw:function(){return fe.zd},CXR:function(){return yl},BQs:function(){return mr.BQ},Hj5:function(){return er.H},M0b:function(){return ji},Dnz:function(){return Hi.D},wn$:function(){return Gn.wn},GzZ:function(){return Gn.Gz},tJZ:function(){return Gn.tJ},fox:function(){return Gn.fo},VTd:function(){return Gn.VT},XsZ:function(){return Gn.Xs},l09:function(){return J},D_t:function(){return ml.D},WiK:function(){return Uo},xJW:function(){return fe.xJ},RVL:function(){return D.RV},Bc8:function(){return Pn},hG9:function(){return Li},DCh:function(){return Bi},rjZ:function(){return fa.rj},Cqo:function(){return vi},jg7:function(){return fa.jg},gsn:function(){return mr.gs},$18:function(){return Vs},IIB:function(){return mr.II},RnZ:function(){return fl},mX2:function(){return mr.mX},zDC:function(){return vr.zD},Phs:function(){return mr.Ph},aVo:function(){return pi},UGj:function(){return gl},yq5:function(){return Cl},v2r:function(){return ha},HIW:function(){return zu},T3C:function(){return la},d97:function(){return An.d9},hGv:function(){return ja},tlE:function(){return mu},rop:function(){return pu},gGi:function(){return fu},DBW:function(){return to.D},MBS:function(){return hu.M},pGO:function(){return Cu},Y8K:function(){return zi},iVT:function(){return mr.iV},ODP:function(){return vr.OD},lbb:function(){return vr.lb},b7w:function(){return vr.b7},sUk:function(){return vr.sU},x1j:function(){return w.x1},m1v:function(){return D.m1},glM:function(){return ct},xZD:function(){return w.xZ},IuH:function(){return Gn.Iu},MkN:function(){return w.Mk},Hof:function(){return xu},n6:function(){return D.n6},DDd:function(){return wu.D},ATq:function(){return D.AT},G0E:function(){return D.G0},a$w:function(){return D.a$},TzZ:function(){return D.Tz},y00:function(){return w.y0},PhF:function(){return dn},Cqv:function(){return C.ShowFormData},cof:function(){return w.co},bts:function(){return C.Sortable},Fop:function(){return C.SortableContext},TRI:function(){return C.SortableItem},ORg:function(){return C.SortableProvider},TaI:function(){return bu},qHe:function(){return ht.q},iA_:function(){return Qr},gvM:function(){return Ru},SnY:function(){return Ml},ASv:function(){return Bu},bwk:function(){return ca},mQc:function(){return Ga},c__:function(){return or.c},QZ3:function(){return Ie},L39:function(){return Ia.L3},jII:function(){return Gi},mPs:function(){return $u},tgM:function(){return Vu},gqx:function(){return Cr.gq},Qm7:function(){return Cr.Qm},_wD:function(){return Ha._w},rjl:function(){return Ha.rj},Fjw:function(){return w.Fj},SLL:function(){return w.SL},sBv:function(){return w.sB},iTm:function(){return fe.iT},BDK:function(){return Cr.BD},Pls:function(){return nt.Pl},Oxq:function(){return tt},WLi:function(){return rt},$9M:function(){return fe.$9},nCn:function(){return fi},iNG:function(){return ka},tD8:function(){return Wi},pg9:function(){return To},Ofb:function(){return fe.Of},ibf:function(){return so},WyG:function(){return q},l6$:function(){return dt.l6},WGR:function(){return Ut},C$H:function(){return vr.C$},SET:function(){return Gr.SE},cNQ:function(){return vr.cN},NCb:function(){return an.NC},I9l:function(){return C.getRenderContent},XQ2:function(){return an.XQ},MDU:function(){return Gr.MD},CEH:function(){return Gr.CE},vUN:function(){return w.vU},ZZb:function(){return fe.ZZ},tqC:function(){return Gr.tq},elO:function(){return vr.el},CfU:function(){return xt},LPx:function(){return Gr.LP},fY6:function(){return Gr.fY},Vm:function(){return wi},w_o:function(){return Gr.w_},SJF:function(){return Ct},_Ko:function(){return Yt},Mev:function(){return Eo},i2K:function(){return Fo},WmO:function(){return Gn.Wm},oBi:function(){return nt.oB},hKP:function(){return an.hK},DU1:function(){return w.DU},XCj:function(){return w.XC},KyD:function(){return Jo.Ky},Vpg:function(){return Ko},lIL:function(){return nt.lI},KxP:function(){return Wo.K},hi9:function(){return nt.hi},p27:function(){return w.p2},z9d:function(){return El.z9},eJW:function(){return nt.eJ},Cor:function(){return nt.Co},Zmk:function(){return An.Zm},aZq:function(){return nt.aZ},P1D:function(){return pa.P1},ngQ:function(){return nt.ng},ett:function(){return nt.et},ySm:function(){return er.y},Zd$:function(){return fe.Zd},cLh:function(){return nt.cL},baz:function(){return fe.b},fde:function(){return nt.fd},Xdt:function(){return vr.Xd},Cld:function(){return nt.Cl},vH8:function(){return nt.vH},PLH:function(){return Gn.PL},V8t:function(){return Gn.V8},tMk:function(){return Gn.tM},xQm:function(){return Gn.xQ},sRe:function(){return nt.sR},U1u:function(){return Fe},HS$:function(){return w.HS},vBu:function(){return w.vB},QYZ:function(){return w.QY},t9d:function(){return w.t9},Kgy:function(){return Gn.Kg},aJ2:function(){return Gn.aJ},n14:function(){return fa.n1},DiB:function(){return fa.Di},l1O:function(){return fe.l1},w5o:function(){return fe.w5},p3Q:function(){return fe.p3},G5e:function(){return fe.G5},xj2:function(){return fe.xj},rxY:function(){return fe.rx},Ils:function(){return vr.Il},zCB:function(){return w.zC},a4r:function(){return to.a},wNf:function(){return nt.wN},Dmu:function(){return nt.Dm},Bsl:function(){return D.Bs},yKv:function(){return du.y},fMB:function(){return nt.fM},gCg:function(){return or.g},eT6:function(){return fe.eT},$SN:function(){return Cr.$S},q4O:function(){return fe.q4},ymE:function(){return Ha.ym},uqQ:function(){return w.uq},Q3P:function(){return an.Q3},K5K:function(){return w.K5}});var H={};e.r(H),e.d(H,{Action:function(){return w.aU},ActionBar:function(){return w.ol},ActionBarProvider:function(){return w.N0},ActionContext:function(){return w.fW},ActionContextNoRerender:function(){return w.ml},ActionContextProvider:function(){return w.EI},ActionDesigner:function(){return w.$L},AfterSuccess:function(){return w.$b},AntdSchemaComponentPlugin:function(){return Mo},AntdSchemaComponentProvider:function(){return vo},AppendsTreeSelect:function(){return lr},AssignedFieldValues:function(){return w.eY},AssociationField:function(){return aa},AssociationFieldMode:function(){return Oo},AssociationFieldModeProvider:function(){return $o},AssociationSelect:function(){return Fi},AttachmentList:function(){return Cr.fU},AutoComplete:function(){return as},BackButtonUsedInSubPage:function(){return Wo.M},Block:function(){return Rs},BlockItem:function(){return Ia.jY},BlockItemCard:function(){return Ia.Pu},ButtonEditor:function(){return w.C1},CardItem:function(){return ls},Cascader:function(){return cs},Checkbox:function(){return va},CollectionSelect:function(){return ps},ColorPicker:function(){return _s},ColorSelect:function(){return Ps},Cron:function(){return Ri},CronSet:function(){return Ds},DataSourceCollectionCascader:function(){return hs},DataSourceSelect:function(){return fs},DateFormatCom:function(){return Hi.W},DatePicker:function(){return pa.Mt},DatePickerProvider:function(){return pa.iN},Details:function(){return Ms},DetailsDesigner:function(){return Se},Divider:function(){return ku},EditComponent:function(){return fe.Fy},EditDefaultValue:function(){return fe.Ni},EditDescription:function(){return fe.q8},EditOperator:function(){return fe.HG},EditPattern:function(){return fe.QT},EditRequired:function(){return fe.JE},EditSortField:function(){return Dl},EditTitle:function(){return fe.$w},EditTitleField:function(){return fe.nB},EditTooltip:function(){return fe.Oc},EditValidationRules:function(){return fe.zd},Editable:function(){return yl},EllipsisWithTooltip:function(){return mr.BQ},ErrorFallback:function(){return er.H},Expand:function(){return ji},ExpiresRadio:function(){return Hi.D},Filter:function(){return Gn.wn},FilterAction:function(){return Gn.Gz},FilterActionContext:function(){return Gn.tJ},FilterContext:function(){return Gn.fo},FilterDynamicComponent:function(){return Gn.VT},FilterLogicContext:function(){return Gn.Xs},Form:function(){return J},FormDialog:function(){return ml.D},FormField:function(){return Uo},FormItem:function(){return fe.xJ},FormV2:function(){return Pn},G2Plot:function(){return Li},G2PlotRenderer:function(){return Bi},Grid:function(){return fa.rj},GridCard:function(){return vi},GridRowContext:function(){return fa.jg},HTMLEncode:function(){return mr.gs},IconPicker:function(){return Vs},Input:function(){return mr.II},InputNumber:function(){return fl},InputReadPretty:function(){return mr.mX},InputRecordPicker:function(){return vr.zD},Json:function(){return mr.Ph},List:function(){return pi},Markdown:function(){return gl},MarkdownReadPretty:function(){return Cl},Menu:function(){return ha},NanoIDInput:function(){return zu},Page:function(){return la},PagePopups:function(){return An.d9},PageTabs:function(){return ja},Pagination:function(){return mu},Password:function(){return pu},Percent:function(){return fu},PopupSettingsProvider:function(){return to.D},Preview:function(){return hu.M},QuickEdit:function(){return Cu},Radio:function(){return zi},ReadPretty:function(){return mr.iV},ReadPrettyRecordPicker:function(){return vr.OD},RecordPicker:function(){return vr.lb},RecordPickerContext:function(){return vr.b7},RecordPickerProvider:function(){return vr.sU},RefreshDataBlockRequest:function(){return w.x1},RemoteSelect:function(){return ct},RemoveButton:function(){return w.xZ},RemoveConditionContext:function(){return Gn.Iu},RequestSettings:function(){return w.Mk},RichText:function(){return xu},SecondConFirm:function(){return w.y0},Select:function(){return dn},SkipValidation:function(){return w.co},Space:function(){return bu},StablePopover:function(){return ht.q},Table:function(){return Qr},TableBlockDesigner:function(){return Ru},TableField:function(){return Ml},TableSelectorDesigner:function(){return Bu},TableV2:function(){return ca},Tabs:function(){return Ga},TabsContextProvider:function(){return or.c},Templates:function(){return Ie},TestDesigner:function(){return Ia.L3},TimePicker:function(){return Gi},TreeSelect:function(){return $u},UnixTimestamp:function(){return Vu},Upload:function(){return Cr.gq},Uploader:function(){return Cr.Qm},Variable:function(){return Ha._w},VariableScopeProvider:function(){return Ha.rj},WorkflowConfig:function(){return w.Fj},actionSettings:function(){return w.SL},actionSettingsItems:function(){return w.sB},allowAddNew:function(){return fe.iT},attachmentFileTypes:function(){return Cr.BD},defaultFieldNames:function(){return tt},fetchTemplateData:function(){return rt},filterFormItemSettings:function(){return fe.$9},findByUid:function(){return fi},findKeysByUid:function(){return ka},findMenuItem:function(){return Wi},formDetailsSettings:function(){return To},formItemSettings:function(){return fe.Of},formSettings:function(){return so},formV1Settings:function(){return q},genStyleHook:function(){return dt.l6},getCurrentOptions:function(){return Ut},getDatePickerLabels:function(){return vr.C$},getDateRanges:function(){return Gr.SE},getLabelFormatValue:function(){return vr.cN},getPopupPathFromParams:function(){return an.NC},getStoredPopupContext:function(){return an.XQ},handleDateChangeOnForm:function(){return Gr.MD},inferPickerType:function(){return Gr.CE},isBulkEditAction:function(){return w.vU},isFileCollection:function(){return fe.ZZ},isMobile:function(){return Gr.tq},isShowFilePicker:function(){return vr.el},isTabPage:function(){return xt},mapDatePicker:function(){return Gr.LP},mapRangePicker:function(){return Gr.fY},mapTimeFormat:function(){return wi},moment2str:function(){return Gr.w_},navigateToTab:function(){return Ct},pageSettings:function(){return Yt},pageTabSettings:function(){return Eo},readPrettyFormSettings:function(){return Fo},removeNullCondition:function(){return Gn.Wm},storePopupContext:function(){return an.hK},useActionBarContext:function(){return w.DU},useActionContext:function(){return w.XC},useAssociationFieldContext:function(){return Jo.Ky},useAssociationFieldModeContext:function(){return Ko},useBackButton:function(){return Wo.K},useCloseAction:function(){return w.p2},useColumnSchema:function(){return El.z9},useCurrentPopupContext:function(){return An.Zm},useDatePickerContext:function(){return pa.P1},useDownloadLogs:function(){return er.y},useEnsureOperatorsValid:function(){return fe.Zd},useFieldMode:function(){return fe.b},useFieldNames:function(){return vr.Xd},useFilterActionProps:function(){return Gn.PL},useFilterFieldOptions:function(){return Gn.V8},useFilterFieldProps:function(){return Gn.tM},useFilterOptions:function(){return Gn.xQ},useFormDataTemplates:function(){return Fe},useGetAriaLabelOfAction:function(){return w.HS},useGetAriaLabelOfDrawer:function(){return w.vB},useGetAriaLabelOfModal:function(){return w.QY},useGetAriaLabelOfPopover:function(){return w.t9},useGetFilterFieldOptions:function(){return Gn.Kg},useGetFilterOptions:function(){return Gn.aJ},useGridContext:function(){return fa.n1},useGridRowContext:function(){return fa.Di},useIsAddNewForm:function(){return fe.l1},useIsAssociationField:function(){return fe.w5},useIsFieldReadPretty:function(){return fe.p3},useIsFileField:function(){return fe.G5},useIsFormReadPretty:function(){return fe.xj},useIsSelectFieldMode:function(){return fe.rx},useLabelUiSchema:function(){return vr.Il},useLinkageAction:function(){return w.zC},usePopupSettings:function(){return to.a},useStyles:function(){return du.y},useTabsContext:function(){return or.g},useTitleFieldOptions:function(){return fe.eT},useUploadStyles:function(){return Cr.$S},useValidateSchema:function(){return fe.q4},useVariableScope:function(){return Ha.ym},useZIndexContext:function(){return w.uq},withSearchParams:function(){return an.Q3},zIndexContext:function(){return w.K5}});var u=e(15009),k=e.n(u),c=e(99289),E=e.n(c),x=e(12444),K=e.n(x),o=e(72004),N=e.n(o),m=e(31996),y=e.n(m),f=e(26037),M=e.n(f),n=e(97857),r=e.n(n),d=e(67294),h=e(31601),C=e(14896),D=e(70993),R=e(89127),Z=function(U){return E()(k()().mark(function ce(){var me,ge;return k()().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.prev=0,Me.next=3,this.api.request(U);case 3:return ge=Me.sent,Me.abrupt("return",ge==null||(me=ge.data)===null||me===void 0?void 0:me.data);case 7:return Me.prev=7,Me.t0=Me.catch(0),Me.abrupt("return",[]);case 10:case"end":return Me.stop()}},ce,this,[[0,7]])}))},w=e(76157),$=e(13769),p=e.n($),A=e(5552),g=e(86201),i=e(80844),G=e(28459),j=e(57953),O=e(12174),l=e(6145),v=e(57105),a=e(83880),S=e(64016),V=e(15195),P=e(23461),t=e(85893),I=["form","children"],B=["form","children","disabled"],z=["request","effects","initialValue","useValues"],L=function(U){var ce=U.form,me=U.children,ge=p()(U,I),be=(0,i.useField)(),Me=(0,i.useFieldSchema)(),Le=(0,nt.lI)(ce.createVoidField(r()(r()({},be.props),{},{basePath:""})));return(0,t.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(i.FormContext.Provider,{value:ce,children:(0,t.jsx)(A.FormLayout,r()(r()({layout:"vertical"},ge),{},{children:(0,t.jsx)(v.sq,{basePath:Le.address,schema:Me,onlyRenderProperties:!0})}))})})},b=function(U){return U.children},F=function(U){var ce=U.form,me=U.children,ge=U.disabled,be=p()(U,B),Me=(0,i.useField)(),Le=(0,i.useFieldSchema)(),We=(0,nt.lI)(ce.createVoidField(r()(r()({},Me.props),{},{basePath:""}))),Xe=(0,nt.Co)(Le["x-component"],b);return(0,d.useEffect)(function(){ce.disabled=ge||Me.disabled},[ge,Me.disabled]),(0,t.jsx)(G.ZP,{componentDisabled:ge,children:(0,t.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(i.FormContext.Provider,{value:ce,children:(0,t.jsx)(A.FormLayout,r()(r()({layout:"vertical"},be),{},{children:(0,t.jsx)(i.FieldContext.Provider,{value:We,children:(0,t.jsx)(Xe,r()(r()({},Me.componentProps),{},{children:(0,t.jsx)(v.sq,{basePath:We.address,schema:Le,onlyRenderProperties:!0})}))})}))})})})},ee=function(U){var ce=U.request,me=U.initialValue;return ce||function(){return Promise.resolve({data:me})}},re=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,O.QT)(ee(ce),U)},oe=(0,d.createContext)(null);oe.displayName="FormBlockContext";var J=(0,i.observer)(function(Q){var U=Q.request,ce=Q.effects,me=Q.initialValue,ge=Q.useValues,be=ge===void 0?re:ge,Me=p()(Q,z),Le=(0,i.useFieldSchema)(),We=(0,i.useField)(),Xe=(0,d.useMemo)(function(){return(0,g.createForm)({effects:ce})},[]),He=be({uid:Le["x-uid"],onSuccess:function(st){return E()(k()().mark(function Mt(){return k()().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,Xe.reset();case 2:Xe.setValues(st==null?void 0:st.data),Xe.setInitialValues(st==null?void 0:st.data);case 4:case"end":return ut.stop()}},Mt)}))()}},Q),et=(0,d.useContext)(oe);return(0,t.jsx)(oe.Provider,{value:{parent:et,form:Xe,result:He,field:We,fieldSchema:Le},children:(0,t.jsx)(j.Z,{spinning:(He==null?void 0:He.loading)||!1,children:Le["x-decorator"]==="Form"?(0,t.jsx)(F,r()({form:Xe},Me)):(0,t.jsx)(L,r()({form:Xe},Me))})})},{displayName:"Form"});J.Designer=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)(),be=(0,P.rE)(),Me=be.componentNamePrefix;return(0,t.jsxs)(a.aN,{template:ge,title:me||ce,children:[(0,t.jsx)(S.G,{componentName:"".concat(Me,"Form"),collectionName:ce}),(0,t.jsx)(a.Z5,{}),(0,t.jsx)(a.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var W=e(5537),q=new W.F5({name:"FormV1Settings",items:[{name:"template",Component:S.G,useComponentProps:function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=(0,P.rE)(),ge=me.componentNamePrefix;return{componentName:"".concat(ge,"Form"),collectionName:ce}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),fe=e(54801),ne=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"FormSettings",template:ge,title:me||ce})},pe=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"ReadPrettyFormSettings",template:ge,title:me||ce})},Se=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"FormDetailsSettings",template:ge,title:me||ce})},_e=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"blockSettings:filterForm",template:ge,title:me||ce})},de=e(7340),xe=e(15503),te=e(83335),X=e(68230),ve=e(68400),ie=e.n(ve),Y=e(97133),ue=e(84327),Ce=e(9361),Ee=e(67174),Oe=e(31019),Re=e(39742),Ae=e(22229),Te=e(43321),Pe=e(64910),ye=e(9780),le=e(3192),T=e(94804),he=e(18686),De=e(5574),ae=e.n(De),Ke=e(84157),Ue=e(42075),Je=e(34041),qe=e(96486),ft=e.n(qe),_t=e(26793),$e=e(32268),dt=e(46917),at=e(9783),ke=e.n(at),wt=e(52677),Zt=e.n(wt),yt=e(50888),Gt=e(66309),xn=e(96074),un=e(27484),bn=e.n(un),Wn=e(44990),Tt=e(8341),Rt=e(87714),nt=e(84577),Ot=e(4340),Xt=e(97937),tn=e(32983),nn=e(67668),En=e(58812),Ln=e(96695),zn=e.n(Ln),Xn=e(19632),$t=e.n(Xn),tt={label:"label",value:"value",color:"color",options:"children"};function Pt(Q,U){var ce=[];if(!Array.isArray(Q))return ce;for(var me=0;me<Q.length;me++){var ge=Q[me][U.options];Array.isArray(ge)&&ce.push.apply(ce,$t()(Pt(ge,U))),ce.push(r()({},Q[me]))}return ce}function Ft(Q,U,ce){if(!Q)return[];var me=[],ge=zn()(ce),be;try{var Me=function(){var We=be.value,Xe=Q.find(function(He){return He[U.value]==We})||{value:We,label:We&&We.toString()};me.push(Xe)};for(ge.s();!(be=ge.n()).done;)Me()}catch(Le){ge.e(Le)}finally{ge.f()}return me}function Ut(Q,U,ce){var me=Pt(U,ce),ge=(0,qe.castArray)(Q).map(function(be){return(0,Ke.isPlainObject)(be)?be[ce.value]:be});return Ft(me,ce,ge)}var gt=e(25145),Et=(0,i.observer)(function(Q){var U=(0,d.useState)(!0),ce=ae()(U,2),me=ce[0],ge=ce[1],be=(0,d.useState)([]),Me=ae()(be,2),Le=Me[0],We=Me[1],Xe=(0,i.useField)(),He=(0,nn.Hy)();return(0,d.useEffect)(function(){var et,St=r()(r()({},tt),Q.fieldNames),st=Xe.dataSource||Q.options||(He==null?void 0:He.uiSchema.enum)||[],Mt=Ut(Xe.value,st,St);if(!(!(0,ue.isValid)(Q.value)&&!Mt.length)&&!((0,g.isArrayField)(Xe)&&(Xe==null||(et=Xe.value)===null||et===void 0?void 0:et.length)===0)){var bt=Xe.value!==null&&Mt.map(function(ut,Bt){return(0,t.jsx)(Gt.Z,{color:ut[St.color],icon:ut.icon,children:ut[St.label]},Bt)});We(bt),ge(!1)}},[He==null?void 0:He.uiSchema.enum,Xe,Xe.dataSource,Xe.value,Q.fieldNames,Q.options,Q.value]),me?null:(0,t.jsx)(En.B,{ellipsis:Q.ellipsis,children:Le})},{displayName:"SelectReadPretty"}),Lt=(0,gt.u)(Et),Vt=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],kt=["objectValue","loading","value","rawOptions","defaultValue"],Wt=function(U){return!(0,ue.isValid)(U)||Zt()(U)==="object"&&Object.keys(U).length===0},on=function(U){var ce=U.value,me=U.options,ge=U.onChange,be=U.fieldNames,Me=U.mode,Le=U.loading,We=U.rawOptions,Xe=U.defaultValue,He=p()(U,Vt),et=function(st){var Mt;if(!Wt(st)){var bt=(0,ue.toArr)(st).filter(function(Bt){return Bt}).map(function(Bt){return(0,Ke.isPlainObject)(Bt)?Bt[be.value]:Bt}),ut=(Mt=Ut(bt,me,be))===null||Mt===void 0?void 0:Mt.map(function(Bt){return{label:Bt[be.label],value:Bt[be.value]}});return["tags","multiple"].includes(Me)||U.multiple?ut:ut.shift()}};return(0,t.jsx)(Je.default,r()({role:"button","data-testid":"select-object-".concat(Me||"single"),value:et(ce),defaultValue:et(Xe),allowClear:{clearIcon:(0,t.jsx)(Ot.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:Le?(0,t.jsx)(j.Z,{}):(0,t.jsx)(tn.Z,{image:tn.Z.PRESENTED_IMAGE_SIMPLE}),options:me,fieldNames:be,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(st,Mt){var bt;return((bt=Mt==null?void 0:Mt[be.label||"label"])!==null&&bt!==void 0?bt:"").includes(st)},filterSort:function(st,Mt){var bt,ut;return((bt=st==null?void 0:st[be.label||"label"])!==null&&bt!==void 0?bt:"").toLowerCase().localeCompare(((ut=Mt==null?void 0:Mt[be.label||"label"])!==null&&ut!==void 0?ut:"").toLowerCase())},onChange:function(st){var Mt=Ut((0,ue.toArr)(st).map(function(bt){return bt.value}),We||me,be);["tags","multiple"].includes(Me)||U.multiple?ge==null||ge(Mt):ge==null||ge(Mt.shift()||null)},mode:Me,tagRender:function(st){return(0,t.jsx)(Gt.Z,r()(r()({role:"button","aria-label":st.label,closeIcon:(0,t.jsx)(Xt.Z,{role:"button","aria-label":"icon-close-tag"})},st),{},{children:st.label}))},maxTagCount:"responsive"},He))},rn=function(U,ce){var me;return((me=ce==null?void 0:ce.label)!==null&&me!==void 0?me:"").toLowerCase().includes((U||"").toLowerCase())},gn=(0,i.connect)(function(Q){var U=Q.objectValue,ce=Q.loading,me=Q.value,ge=Q.rawOptions,be=Q.defaultValue,Me=p()(Q,kt),Le=(0,nt.eJ)(),We=Q.multiple?"multiple":Q.mode;if(We&&!["multiple","tags"].includes(We)&&(We=void 0),U)return(0,t.jsx)(on,r()(r()({rawOptions:ge},Me),{},{defaultValue:be,value:me,mode:We,loading:ce}));var Xe=function(et){return["tags","multiple"].includes(Q.mode)||Q.multiple?et?(0,ue.toArr)(et):void 0:et};return(0,t.jsx)(Je.default,r()(r()({role:"button","data-testid":"select-".concat(We||"single"),showSearch:!0,filterOption:rn,allowClear:{clearIcon:(0,t.jsx)(Ot.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:ce?(0,t.jsx)(j.Z,{}):(0,t.jsx)(tn.Z,{image:tn.Z.PRESENTED_IMAGE_SIMPLE}),value:Xe(me),defaultValue:Xe(be),tagRender:function(et){return(0,t.jsx)(Gt.Z,r()(r()({role:"button","aria-label":et.label,closeIcon:(0,t.jsx)(Xt.Z,{role:"button","aria-label":"icon-close-tag"})},et),{},{children:et.label}))}},Le(Me)),{},{onChange:function(et){var St;(St=Q.onChange)===null||St===void 0||St.call(Q,et===void 0?null:et)},mode:We,maxTagCount:"responsive"}))},(0,i.mapProps)({dataSource:"options"},function(Q,U){return r()(r()({},Q),{},{fieldNames:r()(r()({},tt),Q.fieldNames),suffixIcon:U!=null&&U.loading||U!=null&&U.validating?(0,t.jsx)(yt.Z,{}):Q.suffixIcon})}),(0,i.mapReadPretty)(Lt)),dn=gn;dn.ReadPretty=Lt;var Dn=dn,On=e(36586),en=function(U,ce){return(0,qe.castArray)(U).filter(function(me){return me!=null}).map(function(me){return Zt()(me)==="object"?me[ce.value]:me})},ln=(0,i.observer)(function(Q){var U=r()(r()({},tt),Q.fieldNames),ce=(0,i.useField)(),me=(0,i.useFieldSchema)(),ge=(0,On.a)(),be=(0,w.XC)(),Me=be.snapshot,Le=(0,O.QT)(Me?E()(k()().mark(function Xe(){return k()().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.abrupt("return",{data:ge[me.name]});case 1:case"end":return et.stop()}},Xe)})):r()(r()({action:"list"},Q.service),{},{params:{paginate:!1,filter:ke()({},U.value,{$in:en(ce.value,U)})}}),{refreshDeps:[Q.service,ce.value]}),We=Le.data;return(0,t.jsx)(dn.ReadPretty,r()(r()({},Q),{},{options:We==null?void 0:We.data}))},{displayName:"ReadPretty"}),hn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],Dt="N/A",Ye=(0,xe.t)((0,i.connect)(function(Q){var U,ce,me=Q.fieldNames,ge=me===void 0?{}:me,be=Q.service,Me=be===void 0?{}:be,Le=Q.wait,We=Le===void 0?300:Le,Xe=Q.value,He=Q.defaultValue,et=Q.objectValue,St=Q.manual,st=St===void 0?!0:St,Mt=Q.mapOptions,bt=Q.targetField,ut=Q.CustomDropdownRender,Bt=Q.optionFilter,It=Q.dataSource,fn=Q.toOptionsItem,_n=fn===void 0?function(Dr){return Dr}:fn,yn=Q.popupMatchSelectWidth,Kn=yn===void 0?!1:yn,zt=p()(Q,hn),pn=(0,Wn.FC)(),Vn=(0,Tt.FE)(It||pn),Zn=(0,d.useState)(!1),Hn=ae()(Zn,2),Tn=Hn[0],kn=Hn[1],Rn=(0,d.useRef)(!1),ho=(0,i.useFieldSchema)(),Ao=((U=ho["x-component-props"])===null||U===void 0?void 0:U.addMode)==="quickAdd",yo=(0,l.useCollection_deprecated)(),bo=yo.getField,mo=(0,d.useRef)(null),$n=(0,l.useCollectionManager_deprecated)(),jn=$n.getCollectionJoinField,Jn=$n.getInterface,po=ho["x-collection-field"]||ho.name,oo=bo(po)||jn(po),io=bt||(oo==null?void 0:oo.target)&&(ge==null?void 0:ge.label)&&jn("".concat(oo.target,".").concat(ge.label)),Do=(0,d.useMemo)(function(){if(io!=null&&io.interface){var Dr,Xo=Jn(io.interface),Br=(Xo==null||(Dr=Xo.filterable)===null||Dr===void 0?void 0:Dr.operators[0].value)||"$includes";return io.type==="string"?"$includes":Br}return"$includes"},[io]),fo=(0,nt.eJ)(),So=(0,d.useCallback)(function(Dr){try{return Dr.filter(function(Xo){return["number","string"].includes(Zt()(Xo[ge.value]))||!Xo[ge.value]}).map(function(Xo){var Br,Lr,Ar=fo(Xo[ge.label]);if(io!=null&&(Br=io.uiSchema)!==null&&Br!==void 0&&Br.enum)if(Array.isArray(Ar))Ar=Ar.map(function(Ca,Za){var Ta=io.uiSchema.enum.find(function(Il){return Il.value===Ca});return Ta?(0,t.jsx)(Gt.Z,{role:"button",color:Ta.color,style:{marginRight:3},children:(Ta==null?void 0:Ta.label)||Ca},Za):(0,t.jsx)(Gt.Z,{role:"button",children:Ca},Ca)}).reverse();else{var ra=io.uiSchema.enum.find(function(Ca){return Ca.value===Ar});ra&&(Ar=(0,t.jsx)(Gt.Z,{role:"button",color:ra.color,children:ra.label}))}if((io==null?void 0:io.type)==="date"&&(Ar=bn()(Ar).format("YYYY-MM-DD")),Mt){var ga;return Mt((ga={},ke()(ga,ge.label,Ar||Dt),ke()(ga,ge.value,Xo[ge.value]),ga))}return r()(r()({},Xo),{},(Lr={},ke()(Lr,ge.label,Ar||Dt),ke()(Lr,ge.value,Xo[ge.value]),Lr))}).filter(Boolean)}catch(Xo){return console.error(Xo),Dr}},[io==null?void 0:io.uiSchema,ge]),Go=(0,O.QT)(r()(r()({action:"list"},Me),{},{headers:Vn,params:r()(r()({pageSize:200},Me==null?void 0:Me.params),{},{filter:Me==null||(ce=Me.params)===null||ce===void 0?void 0:ce.filter})}),r()({manual:st,debounceWait:We},Me.defaultParams?{defaultParams:[Me.defaultParams]}:{})),lo=Go.data,Lo=Go.run,Ho=Go.loading,nr=(0,d.useMemo)(function(){return JSON.stringify({service:Me,fieldNames:ge})},[Me,ge]),Pr=(0,d.useCallback)(function(){return mo.current&&ut?(0,t.jsx)(ut,{search:mo.current,callBack:function(){mo.current=null,kn(!1)}}):null},[mo.current]);(0,d.useEffect)(function(){Rn.current&&Lo()},[nr]);var na=function(){var Dr=E()(k()().mark(function Xo(Br){var Lr;return k()().wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:Lo({filter:(0,Rt.EO)([Br?ke()({},ge.label,ke()({},Do,Br)):{},Me==null||(Lr=Me.params)===null||Lr===void 0?void 0:Lr.filter])}),mo.current=Br;case 2:case"end":return ra.stop()}},Xo)}));return function(Br){return Dr.apply(this,arguments)}}(),oa=(0,d.useMemo)(function(){var Dr,Xo=Xe||He;if(!(lo!=null&&(Dr=lo.data)!==null&&Dr!==void 0&&Dr.length))return Xo!=null?Array.isArray(Xo)?Xo:[Xo]:[];var Br=Xo!=null&&(Array.isArray(Xo)?Xo.map(function(Ar){return r()(r()({},Ar),{},ke()({},ge.value,Ar[ge.value]||Ar))}):[r()(r()({},Xo),{},ke()({},ge.value,Xo[ge.value]||Xo))])||[],Lr=typeof Bt=="function"?lo.data.filter(Bt):lo.data;return(0,qe.uniqBy)(Lr.concat(Br??[]),ge.value)},[Xe,He,lo==null?void 0:lo.data,ge.value,Bt]),Hr=function(Xo){kn(Xo),mo.current=null,Xo&&Lo(),Rn.current=!0};return(0,t.jsx)(dn,r()(r()({open:Tn,popupMatchSelectWidth:Kn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:ge,onSearch:na,onDropdownVisibleChange:Hr,objectValue:et,value:Xe,defaultValue:He},zt),{},{loading:lo?Ho:!0,options:_n(So(oa)),rawOptions:oa,dropdownRender:function(Xo){var Br=oa.some(function(Lr){return Lr[ge.label]===mo.current});return(0,t.jsx)(t.Fragment,{children:Ao?(0,t.jsxs)(t.Fragment,{children:[!((lo==null?void 0:lo.data.length)===0&&mo!==null&&mo!==void 0&&mo.current)&&Xo,(lo==null?void 0:lo.data.length)>0&&(mo==null?void 0:mo.current)&&!Br&&(0,t.jsx)(xn.Z,{style:{margin:0}}),!Br&&(0,t.jsx)(Pr,{})]}):Xo})}}))},(0,i.mapProps)({dataSource:"options"},function(Q,U){var ce,me=(0,i.useFieldSchema)();return r()(r()({},Q),{},{fieldNames:r()(r()(r()(r()({},tt),Q.fieldNames),U.componentProps.fieldNames),(ce=me["x-component-props"])===null||ce===void 0?void 0:ce.fieldNames),suffixIcon:U!=null&&U.loading||U!=null&&U.validating?(0,t.jsx)(yt.Z,{}):Q.suffixIcon})}),(0,i.mapReadPretty)(ln))),ct=Ye;ct.ReadPretty=ln;var Qe=null,Fe=function(){var U=(0,i.useFieldSchema)(),ce=(0,_t.$)(),me=ce.t,ge=(0,de.bz)(),be=ge.duplicateData,Me=(0,l.useCollectionManager_deprecated)(),Le=Me.getCollectionJoinField;if(be)return be;var We=Ze(U),Xe=We.items,He=Xe===void 0?[]:Xe,et=We.display,St=et===void 0?!0:et;He.forEach(function(bt){try{var ut;bt.fields=(ut=bt.fields)===null||ut===void 0?void 0:ut.map(function(Bt){var It=Le("".concat(bt.collection,".").concat(Bt));return It?Bt:""}).filter(Boolean)}catch(Bt){(0,Ke.error)(Bt),bt.fields=[]}});var st=[{key:"none",title:me("None")}].concat(He.map(function(bt,ut){return r()(r()({key:ut},bt),{},{isLeaf:bt.dataId!==null&&bt.dataId!==void 0,titleCollectionField:(bt==null?void 0:bt.titleField)&&Le("".concat(bt.collection,".").concat(bt.titleField))})})),Mt=He.find(function(bt){return bt.default});return{templates:st,display:St,defaultTemplate:Mt,enabled:He.length>0&&He.every(function(bt){return bt.dataId||bt.dataScope})}},Ie=d.memo(function(Q){var U=Q.style,ce=U===void 0?{}:U,me=Q.form,ge=(0,dt.dQ)(),be=ge.token,Me=Fe(),Le=Me.templates,We=Me.display,Xe=Me.enabled,He=Me.defaultTemplate,et=(0,l.useCollectionManager_deprecated)(),St=et.getCollectionJoinField,st=(0,$e.ss)(Le),Mt=(0,d.useState)((He==null?void 0:He.key)||"none"),bt=ae()(Mt,2),ut=bt[0],Bt=bt[1],It=(0,d.useState)(null),fn=ae()(It,2),_n=fn[0],yn=fn[1],Kn=(0,O.LY)(),zt=(0,_t.$)(),pn=zt.t,Vn=(0,T.FC)(),Zn=(0,T.on)(Vn);(0,d.useEffect)(function(){Xe&&He&&me&&(me.__template=!0,He.key==="duplicate"&&Rn(He.dataId,He,Zn))},[]),(0,d.useEffect)(function(){st!=null&&st.some(function(Ao){return Ao.key===ut})||kn("none")},[st]);var Hn=(0,d.useMemo)(function(){return r()({display:"flex",alignItems:"center",backgroundColor:be.colorFillAlter,padding:be.padding},ce)},[ce,be.colorFillAlter]),Tn=(0,d.useMemo)(function(){return{fontSize:be.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:be.marginXS}},[be.fontSize,be.marginXS]),kn=(0,d.useCallback)(function(){var Ao=E()(k()().mark(function yo(bo){return k()().wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:Bt(bo),yn(null),me==null||me.reset();case 3:case"end":return $n.stop()}},yo)}));return function(yo){return Ao.apply(this,arguments)}}(),[]),Rn=(0,d.useCallback)(function(){var Ao=E()(k()().mark(function yo(bo,mo,$n){var jn;return k()().wrap(function(po){for(;;)switch(po.prev=po.next){case 0:jn=r()(r()({},mo),{},{dataId:bo}),yn(mo),rt(Kn,jn,$n).then(function(oo){return me&&oo&&(me.reset(),me.__template=!0,(0,Ke.forEach)(oo,function(io,Do){if(io){var fo;me.values[Do]=io,me==null||(fo=me.setInitialValuesIn)===null||fo===void 0||fo.call(me,Do,io)}})),oo}).catch(function(oo){console.error(oo)});case 3:case"end":return po.stop()}},yo)}));return function(yo,bo,mo){return Ao.apply(this,arguments)}}(),[]);if(!Xe||!We)return null;var ho=st==null?void 0:st.find(function(Ao){return Ao.key===ut});return(0,t.jsx)("div",{style:Hn,children:(0,t.jsxs)(Ue.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:Tn,children:[pn("Data template"),": "]}),(0,t.jsx)(Je.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:st,fieldNames:{label:"title",value:"key"},value:ut,onChange:kn}),ut!=="none"&&ho&&(0,t.jsx)(ct,{style:{width:220},fieldNames:{label:ho==null?void 0:ho.titleField,value:"id"},target:ho==null?void 0:ho.collection,value:_n,objectValue:!0,service:{resource:ho==null?void 0:ho.collection,params:{filter:ho==null?void 0:ho.dataScope}},onChange:function(yo){return Rn(yo==null?void 0:yo.id,r()(r()({},yo),ho),Zn)},targetField:St("".concat(ho==null?void 0:ho.collection,".").concat(ho.titleField))})]})})});Ie.displayName="NocoBaseFormDataTemplates";function Ze(Q){var U=(0,de.Fi)(Q);return U?ft().cloneDeep(U["x-data-templates"])||{}:{}}function rt(Q,U,ce){return mt.apply(this,arguments)}function mt(){return mt=E()(k()().mark(function Q(U,ce,me){return k()().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!(ce.fields.length===0||!ce.dataId)){be.next=2;break}return be.abrupt("return");case 2:return be.abrupt("return",U.resource(ce.collection,void 0,me).get({filterByTk:ce.dataId,fields:ce.fields,isTemplate:!0}).then(function(Me){var Le;return(Le=Me.data)===null||Le===void 0?void 0:Le.data}));case 3:case"end":return be.stop()}},Q)})),mt.apply(this,arguments)}var we=function(){var U,ce,me=(0,he.aZ)(),ge=(0,i.useFieldSchema)(),be=Ce.Z.useToken(),Me=be.token,Le=(0,nt.ng)(),We=Le.designable,Xe=(0,le.gp)()||{},He=Xe.heightProps,et=He||{},St=et.title,st=Fe(),Mt=st.display,bt=st.enabled,ut=ge.reduceProperties(function(Tn,kn){return kn["x-component"]==="ActionBar"?kn:Tn}),Bt=Object.keys((ut==null?void 0:ut.properties)||{}).length>0,It=ge==null||(U=ge.parent)===null||U===void 0||(U=U["x-decorator"])===null||U===void 0||(ce=U.includes)===null||ce===void 0?void 0:ce.call(U,"FormBlockProvider"),fn=Bt||We?Me.controlHeight+(It?1:2)*Me.marginLG:Me.marginLG,_n=St?Me.fontSizeLG*Me.lineHeightLG+Me.padding*2-1:0,yn=(0,T.xQ)(),Kn=(yn==null?void 0:yn.meta)||{},zt=Kn.count,pn=Kn.pageSize,Vn=zt>pn,Zn=Vn?Me.controlHeightSM+1*Me.paddingLG:0,Hn=Mt&&bt?Me.controlHeight+2*Me.padding+Me.margin:0;return me-fn-Me.paddingLG-_n-Zn-Hn},Ne,Be,Ge=["form","children"],lt=["form","children","disabled"],vt=["form","disabled"],ot=function(U){var ce=U.form,me=U.children,ge=p()(U,Ge),be=(0,i.useField)(),Me=(0,i.useFieldSchema)(),Le=Ee.Gn===null||Ee.Gn===void 0?void 0:(0,Ee.Gn)(Me),We=(0,nt.lI)(ce.createVoidField(r()(r()({},be.props),{},{basePath:""}))),Xe=we(),He=Ce.Z.useToken(),et=He.token,St=(Le==null?void 0:Le["x-component-props"])||{},st=St.layout,Mt=st===void 0?"vertical":st,bt=St.labelAlign,ut=bt===void 0?"left":bt,Bt=St.labelWidth,It=Bt===void 0?120:Bt,fn=St.labelWrap,_n=fn===void 0?!0:fn;return(0,t.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(i.FormContext.Provider,{value:ce,children:(0,t.jsx)(A.FormLayout,r()(r()({layout:Mt},ge),{},{labelAlign:ut,labelWidth:Mt==="horizontal"?It:null,labelWrap:_n,children:(0,t.jsx)("div",{className:(0,Y.css)(Ne||(Ne=ie()([`
755
+ `])));ke.ReadPretty=function(Rt){var nt=Rt.value,Ot=Rt.delimiters,Xt=Ot===void 0?["{{","}}"]:Ot,tn=typeof Rt.scope=="function"?Rt.scope():Rt.scope,nn=F(),En=nn.wrapSSR,Ln=nn.hashId,zn=nn.componentCls,Xn=(0,u.useState)([]),$t=r()(Xn,2),tt=$t[0],Pt=$t[1],Ft=(0,u.useMemo)(function(){return qe(tt)},[tt]),Ut=(0,u.useMemo)(function(){return Je(nt??"",Ft,Xt)},[Xt,Ft,nt]),gt=at(nt,Xt);(0,u.useEffect)(function(){wt(tn,gt).then(function(Lt){Pt(Lt)}).catch(g.error)},[tn,gt]);var Et=En((0,re.jsx)("span",{dangerouslySetInnerHTML:{__html:Ut},className:(0,A.cx)(zn,Ln,yt)}));return(0,re.jsx)(T.BQs,{ellipsis:!0,popoverContent:Et,children:Et})};var Gt=(0,u.createContext)([]);Gt.displayName="VariableScopeContext";function xn(Tt){var Rt=Tt.scope,nt=Rt===void 0?[]:Rt,Ot=Tt.children;return(0,re.jsx)(Gt.Provider,{value:nt,children:Ot})}function un(){return(0,u.useContext)(Gt)}function bn(){return null}bn.Input=(0,H.connect)(te),bn.TextArea=(0,k.t)((0,H.connect)(ke,(0,H.mapReadPretty)(ke.ReadPretty))),bn.RawTextArea=(0,H.connect)(Oe),bn.JSON=(0,H.connect)(Ae);var Wn=null},88969:function(ze,se,e){"use strict";e.d(se,{m:function(){return R}});var H=e(15009),u=e.n(H),k=e(19632),c=e.n(k),E=e(99289),x=e.n(E),K=e(5574),o=e.n(K),N=e(97133),m=e(38089),y=e(67294),f=e(26793),M=e(46917),n=e(9783),r=e.n(n),d=(0,M.l6)("nb-variable-select",function(Z){var w=Z.componentCls;return r()({},w,{position:"relative",".ant-select.ant-cascader":{position:"absolute",top:"-1px",right:"-1px",minWidth:"auto",width:"calc(100% + 2px)",height:"calc(100% + 2px)",overflow:"hidden",opacity:0},".variable-btn":{fontStyle:"italic",fontFamily:"'New York', 'Times New Roman', Times, serif"},".Cascader-popupClassName":{".ant-cascader-menu":{marginBottom:0}}})}),h=d,C=e(2876),D=e(85893);function R(Z){var w=Z.options,$=Z.setOptions,p=Z.onInsert,A=Z.changeOnSelect,g=A===void 0?!1:A,i=Z.fieldNames,G=i===void 0?{}:i,j=Z.className,O=(0,f.$)(),l=O.t,v=(0,y.useState)([]),a=o()(v,2),S=a[0],V=a[1],P=h(),t=P.wrapSSR,I=P.componentCls,B=P.hashId,z=(0,M.dQ)(),L=z.token;function b(ee){return F.apply(this,arguments)}function F(){return F=x()(u()().mark(function ee(re){var oe,J;return u()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(J=re[re.length-1],!(!((oe=J.children)!==null&&oe!==void 0&&oe.length)&&!J.isLeaf&&J.loadChildren)){q.next=5;break}return q.next=4,J.loadChildren(J);case 4:$(function(fe){return c()(fe)});case 5:case"end":return q.stop()}},ee)})),F.apply(this,arguments)}return t((0,D.jsx)(C.R,{className:(0,N.cx)("x-button",I,B,j),children:(0,D.jsx)(m.Z,{placeholder:l("Select a variable"),value:[],options:w,fieldNames:G,loadData:b,onChange:function(){var re,oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(V(oe),!!oe.length){var W=J[J.length-1];(!(W!=null&&(re=W.children)!==null&&re!==void 0&&re.length)&&!(W!=null&&W.loadChildren)||W!=null&&W.isLeaf)&&p(oe)}},changeOnSelect:g,onClick:function(re){if(!(re.detail!==2||!g))for(var oe=re.target;oe&&oe!==re.currentTarget;oe=oe.parentNode){var J;Array.from((J=oe.classList)!==null&&J!==void 0?J:[]).includes("ant-cascader-menu-item")&&p(S)}},popupClassName:"Cascader-popupClassName",dropdownRender:g?function(ee){return(0,D.jsxs)(D.Fragment,{children:[ee,(0,D.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(L.colorBorder),color:L.colorTextDescription},children:l("Double click to choose entire object")})]})}:null})}))}},2876:function(ze,se,e){"use strict";e.d(se,{R:function(){return x}});var H=e(97857),u=e.n(H),k=e(15867),c=e(67294),E=e(85893),x=(0,c.forwardRef)(function(K,o){var N=(0,c.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,E.jsxs)(k.ZP,u()(u()({"aria-label":"variable-button",ref:o,style:N},K),{},{children:["x",K.children]}))});x.displayName="XButton"},72724:function(ze,se,e){"use strict";e.d(se,{L:function(){return M}});var H=e(97857),u=e.n(H),k=e(5574),c=e.n(k),E=e(23861),x=e(67294),K=e(26793),o=e(21143),N=e(84577),m=e(85893),y=function(r){var d=(0,N.ng)(),h=d.refresh,C=(0,o.useAPIClient)(),D=(0,K.$)(),R=D.t;return(0,x.useCallback)(function(Z){var w,$,p,A,g,i,G,j,O=Z.active,l=Z.over,v=O==null||(w=O.data)===null||w===void 0||(w=w.current)===null||w===void 0?void 0:w.schema,a=l==null||($=l.data)===null||$===void 0||($=$.current)===null||$===void 0?void 0:$.schema,S=l==null||(p=l.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.insertAdjacent,V=l==null||(A=l.data)===null||A===void 0||(A=A.current)===null||A===void 0?void 0:A.breakRemoveOn,P=l==null||(g=l.data)===null||g===void 0||(g=g.current)===null||g===void 0?void 0:g.wrapSchema,t=l==null||(i=l.data)===null||i===void 0||(i=i.current)===null||i===void 0?void 0:i.onSuccess,I=(G=l==null||(j=l.data)===null||j===void 0||(j=j.current)===null||j===void 0?void 0:j.removeParentsIfNoChildren)!==null&&G!==void 0?G:!0;if(!v||!a){r==null||r(Z);return}if(v===a){r==null||r(Z);return}if(v.parent===a&&S==="beforeEnd"){r==null||r(Z);return}var B=(0,N.Pl)({t:R,api:C,refresh:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=L.refreshParentSchema,F=b===void 0?!0:b;return h({refreshParentSchema:F})},current:a});if(B.loadAPIClientEvents(),v.parent===a.parent){B.insertBeforeBeginOrAfterEnd(v),r==null||r(Z);return}if(S){B.insertAdjacent(S,v,{wrap:P,breakRemoveOn:V,removeParentsIfNoChildren:I,onSuccess:t}),r==null||r(Z);return}},[C,r,h,R])},f=x.memo(function(n){var r=(0,K.$)(),d=r.t,h=(0,x.useState)(!0),C=c()(h,2),D=C[0],R=C[1],Z=(0,x.useCallback)(function($){var p,A=$.active,g=A==null||(p=A.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.schema;if(R(!!g),n!=null&&n.onDragStart){var i;n==null||(i=n.onDragStart)===null||i===void 0||i.call(n,$)}},[n==null?void 0:n.onDragStart]),w=y(n==null?void 0:n.onDragEnd);return(0,m.jsxs)(E.DndContext,u()(u()({collisionDetection:E.rectIntersection},n),{},{onDragStart:Z,onDragEnd:w,children:[(0,m.jsx)(E.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:D&&(0,m.jsx)("span",{style:{whiteSpace:"nowrap"},children:d("Dragging")})}),n.children]}))});f.displayName="InternalDndContext";var M=function(r){return(0,m.jsx)(f,u()({},r))}},14896:function(ze,se,e){"use strict";e.r(se),e.d(se,{DndContext:function(){return H.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return x},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR},getRenderContent:function(){return K.I9}});var H=e(72724),u=e(20493),k=e(67294),c=e(80844),E=e(85893),x=(0,c.observer)(function(o){var N=o.children,m=(0,c.useForm)();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(m.values,null,2)}),N]})}),K=e(34588)},20493:function(ze,se,e){"use strict";e.d(se,{IW:function(){return i},LC:function(){return C},bt:function(){return w},Fo:function(){return D},TR:function(){return g},OR:function(){return R}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(10274),x=e(23861),K=e(97133),o=e(80844),N=e(96486),m=e.n(N),y=e(67294),f=e(46917),M=e(84577),n=e(85893),r=["component","overStyle","style","children","openMode"],d=["schema","id","eid","removeParentsIfNoChildren"],h=["component"],C=(0,y.createContext)(null);C.displayName="DraggableContext";var D=(0,y.createContext)(null);D.displayName="SortableContext";var R=function(j){var O=j.id,l=j.data,v=j.children,a=(0,x.useDraggable)({id:O,data:l}),S=(0,x.useDroppable)({id:O,data:l}),V=(0,y.useMemo)(function(){return{draggable:a,droppable:S}},[a,S]);return(0,n.jsx)(D.Provider,{value:V,children:v})},Z=function(j){return new E.C(j).setAlpha(.15).toHex8String()},w=function(j){var O,l,v=j.component,a=j.overStyle,S=j.style,V=j.children,P=j.openMode,t=c()(j,r),I=(0,f.dQ)(),B=I.token,z=(0,y.useContext)(D),L=z.draggable,b=z.droppable,F=b.isOver,ee=b.setNodeRef,re=u()({},S);return F&&(L==null||(O=L.active)===null||O===void 0?void 0:O.id)!==(b==null||(l=b.over)===null||l===void 0?void 0:l.id)&&(re[v==="a"?"color":"background"]=Z(B.colorSettings),Object.assign(re,a)),y.createElement(v||"div",u()(u()({role:"none"},t),{},{className:(0,K.cx)("nb-sortable-designer",j.className),ref:ee,style:re}),V)},$=function(j){var O=p(j),l=(0,o.useFieldSchema)();return j.schema?u()(u()({},j),{},{id:O}):u()(u()({},j),{},{id:O,schema:l})},p=function(j){var O,l=(0,o.useField)();return j.id?j.id:(O=l.address)===null||O===void 0?void 0:O.toString()},A=(0,o.observer)(function(G){var j=$(G),O=j.schema,l=j.id,v=j.eid,a=j.removeParentsIfNoChildren,S=c()(j,d),V=(0,y.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:O,removeParentsIfNoChildren:a??!0}},[O,a]);return(0,n.jsx)(R,{id:l,data:V,children:(0,n.jsx)(w,u()(u()({id:v},S),{},{children:G.children}))})},{displayName:"InternalSortableItem"}),g=y.memo(function(G){var j=G.component,O=c()(G,h),l=(0,M.ng)(),v=l.designable;return v?(0,n.jsx)(A,u()({},G)):y.createElement(j||"div",m().omit(O,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),G.children)});g.displayName="SortableItem";var i=function(j){var O=(0,y.useContext)(D)||{},l=O.draggable;if(!l)return null;var v=l.attributes,a=l.listeners,S=l.setNodeRef;return(0,n.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,n.jsx)("div",u()(u()(u()({ref:S,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},a),v),{},{role:"none",children:(0,n.jsx)("span",{style:{cursor:"move",fontSize:14},children:j.children})}))})}},34588:function(ze,se,e){"use strict";e.d(se,{jC:function(){return l},od:function(){return G},I9:function(){return S},Rq:function(){return j},e7:function(){return i}});var H=e(97857),u=e.n(H),k=e(15009),c=e.n(k),E=e(9783),x=e.n(E),K=e(5574),o=e.n(K),N=e(99289),m=e.n(N),y=e(52677),f=e.n(y),M=e(84157),n=e(96486),r=e.n(n),d=e(10097),h=e(76690),C=e(65565),D=e(61341),R=e(27484);function Z(){"use strict";Array.isArray||(Array.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"});function P(z){for(var L=[],b=0,F=z.length;b<F;b++)L.indexOf(z[b])===-1&&L.push(z[b]);return L}function t(z,L){return JSON.stringify(z)===JSON.stringify(L)}var I={},B={$is:function(L,b){return L===b},$match:function(L,b){return Array.isArray(L)&&Array.isArray(b)&&L.some(function(F){return Array.isArray(F)})?L.some(function(F){return(F==null?void 0:F.length)===b.length&&(F==null?void 0:F.every(function(ee,re){return ee===b[re]}))}):JSON.stringify(L)===JSON.stringify(b)},$eq:function(L,b){return Array.isArray(L)&&Array.isArray(b)?t(L,b):Array.isArray(L)?L.includes(b):L==b},$ne:function(L,b){return L!=b},"!==":function(L,b){return L!==b},$gt:function(L,b){return Array.isArray(L)?L.some(function(F){return F>b}):L>b},$gte:function(L,b){return L>=b},$lt:function(L,b,F){return Array.isArray(L)?L.some(function(ee){return ee<b}):F===void 0?L<b:L<b&&b<F},$lte:function(L,b,F){return F===void 0?L<=b:L<=b&&b<=F},$exists:function(L){return I.truthy(L)},$notEmpty:function(L){return I.truthy(L)},$empty:function(L){return Array.isArray(L)?L.some(function(b){return!I.truthy(b)}):!I.truthy(L)},$notExists:function(L){return!I.truthy(L)},"%":function(L,b){return L%b},log:function(L){return L},$in:function(L,b){return!b||typeof b.indexOf>"u"?!1:Array.isArray(L)&&Array.isArray(b)?b.some(function(F){return L.includes(F)}):b.indexOf(L)!==-1},$notIn:function(L,b){return!b||typeof b.indexOf>"u"?!1:b.indexOf(L)===-1},$includes:function(L,b){return!L||typeof L.indexOf>"u"?!1:Array.isArray(L)?L.some(function(F){return F==null?void 0:F.includes(b)}):L.indexOf(b)!==-1},$notIncludes:function(L,b){return Array.isArray(L)?!L.some(function(F){return(F||"").includes(b)}):(L=L||"",!L.includes(b))},$anyOf:function(L,b){return L.length===0?!1:Array.isArray(L)&&Array.isArray(b)&&L.some(function(F){return Array.isArray(F)})?L.some(function(F){return F.some(function(ee){return b.includes(ee)})}):L.some(function(F){return b.includes(F)})},$noneOf:function(L,b){return!L||(L==null?void 0:L.length)===0?!0:Array.isArray(L)&&Array.isArray(b)&&L.some(function(F){return Array.isArray(F)})?L.some(function(F){return F.every(function(ee){return!b.some(function(re){return ee.includes(re)})})}):b.some(function(F){return!L.includes(F)})},$notMatch:function(L,b){if(L.length!==b.length)return!0;for(var F=0;F<L.length;F++)if(L[F]!==b[F])return!0;return!1},$dateOn:function(L,b){return!L||!b?!1:L===b},$dateBefore:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);if(!F||!ee)throw new Error("Invalid date format");return F<ee},$dateNotBefore:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);if(!F||!ee)throw new Error("Invalid date format");return F>=ee},$dateAfter:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);return F>ee},$dateNotAfter:function(L,b){if(!L||!b)return!1;var F=g(L),ee=g(b);if(!F||!ee)throw new Error("Invalid date format");return F<=ee},$dateBetween:function(L,b){if(!L||!b)return!1;var F=w(L),ee=w(b[0]),re=w(b[1]);if(!F||!ee||!re)throw new Error("Invalid date format");return F>=ee&&F<=re},$dateNotOn:function(L,b){return!L||!b?!1:L!==b},$isTruly:function(L){return Array.isArray(L)?L.some(function(b){return b===!0||b===1}):L===!0||L===1},$isFalsy:function(L){return Array.isArray(L)?L.some(function(b){return!I.truthy(b)}):!I.truthy(L)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(L,b,F){if(F<0){var ee=String(L).substr(b);return ee.substr(0,ee.length+F)}return String(L).substr(b,F)},"+":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)+parseFloat(b,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)*parseFloat(b,10)})},"-":function(L,b){return b===void 0?-L:L-b},"/":function(L,b){return L/b},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(L,b){return L.concat(b)},[])},var:function(L,b){var F=b===void 0?null:b,ee=this;if(typeof L>"u"||L===""||L===null)return ee;for(var re=String(L).split("."),oe=0;oe<re.length;oe++)if(ee==null||(ee=ee[re[oe]],ee===void 0))return F;return ee},missing:function(){for(var L=[],b=Array.isArray(arguments[0])?arguments[0]:arguments,F=0;F<b.length;F++){var ee=b[F],re=I.apply({var:ee},this);(re===null||re==="")&&L.push(ee)}return L},missing_some:function(L,b){var F=I.apply({missing:b},this);return b.length-F.length>=L?[]:F}};return I.is_logic=function(z){return f()(z)==="object"&&z!==null&&!Array.isArray(z)&&Object.keys(z).length===1},I.truthy=function(z){return Array.isArray(z)&&z.length===0?!1:!!z},I.get_operator=function(z){return Object.keys(z)[0]},I.get_values=function(z){return z[I.get_operator(z)]},I.apply=function(z,L){if(Array.isArray(z))return z.map(function(ne){return I.apply(ne,L)});if(!I.is_logic(z))return z;var b=I.get_operator(z),F=z[b],ee,re,oe,J,W;if(Array.isArray(F)||(F=[F]),b==="if"||b=="?:"){for(ee=0;ee<F.length-1;ee+=2)if(I.truthy(I.apply(F[ee],L)))return I.apply(F[ee+1],L);return F.length===ee+1?I.apply(F[ee],L):null}else if(b==="$and"){for(ee=0;ee<F.length;ee+=1)if(re=I.apply(F[ee],L),!I.truthy(re))return re;return re}else if(b==="or"){for(ee=0;ee<F.length;ee+=1)if(re=I.apply(F[ee],L),I.truthy(re))return re;return re}else{if(b==="filter")return J=I.apply(F[0],L),oe=F[1],Array.isArray(J)?J.filter(function(ne){return I.truthy(I.apply(oe,ne))}):[];if(b==="map")return J=I.apply(F[0],L),oe=F[1],Array.isArray(J)?J.map(function(ne){return I.apply(oe,ne)}):[];if(b==="reduce")return J=I.apply(F[0],L),oe=F[1],W=typeof F[2]<"u"?F[2]:null,Array.isArray(J)?J.reduce(function(ne,pe){return I.apply(oe,{current:pe,accumulator:ne})},W):W;if(b==="all"){if(J=I.apply(F[0],L),oe=F[1],!Array.isArray(J)||!J.length)return!1;for(ee=0;ee<J.length;ee+=1)if(!I.truthy(I.apply(oe,J[ee])))return!1;return!0}else if(b==="none"){if(J=I.apply(F[0],L),oe=F[1],!Array.isArray(J)||!J.length)return!0;for(ee=0;ee<J.length;ee+=1)if(I.truthy(I.apply(oe,J[ee])))return!1;return!0}else if(b==="some"){if(J=I.apply(F[0],L),oe=F[1],!Array.isArray(J)||!J.length)return!1;for(ee=0;ee<J.length;ee+=1)if(I.truthy(I.apply(oe,J[ee])))return!0;return!1}}if(F=F.map(function(ne){return I.apply(ne,L)}),B.hasOwnProperty(b)&&typeof B[b]=="function")return B[b].apply(L,F);if(b.indexOf(".")>0){var q=String(b).split("."),fe=B;for(ee=0;ee<q.length;ee++){if(!fe.hasOwnProperty(q[ee]))throw new Error("Unrecognized operation "+b+" (failed at "+q.slice(0,ee+1).join(".")+")");fe=fe[q[ee]]}return fe.apply(L,F)}throw new Error("Unrecognized operation "+b)},I.uses_data=function(z){var L=[];if(I.is_logic(z)){var b=I.get_operator(z),F=z[b];Array.isArray(F)||(F=[F]),b==="var"?L.push(F[0]):F.forEach(function(ee){L.push.apply(L,I.uses_data(ee))})}return P(L)},I.add_operation=function(z,L){B[z]=L},I.rm_operation=function(z){delete B[z]},I.rule_like=function(z,L){if(L===z||L==="@")return!0;if(L==="number")return typeof z=="number";if(L==="string")return typeof z=="string";if(L==="array")return Array.isArray(z)&&!I.is_logic(z);if(I.is_logic(L)){if(I.is_logic(z)){var b=I.get_operator(L),F=I.get_operator(z);if(b==="@"||b===F)return I.rule_like(I.get_values(z,!1),I.get_values(L,!1))}return!1}if(Array.isArray(L))if(Array.isArray(z)){if(L.length!==z.length)return!1;for(var ee=0;ee<L.length;ee+=1)if(!I.rule_like(z[ee],L[ee]))return!1;return!0}else return!1;return!1},I}function w(P){return new Date(P)}function $(P){var t=P.split("-").map(Number),I=o()(t,2),B=I[0],z=I[1];return new Date(B,z-1)}function p(P){var t=parseInt(P.slice(0,4)),I=parseInt(P.slice(5,6)),B=(I-1)*3;return new Date(t,B)}function A(P){var t=parseInt(P);return new Date(t,0)}function g(P){var t=Array.isArray(P)?P[1]:P;return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(t)?new Date(t):/^\d{4}-\d{2}-\d{2}$/.test(t)?w(t):/^\d{4}-\d{2}$/.test(t)?$(t):/^\d{4}Q[1-4]$/.test(t)?p(t):/^\d{4}$/.test(t)?A(t):null}var i=function(t,I){var B,z=/{{(.*?)}}/,L=t==null||(B=t.match)===null||B===void 0?void 0:B.call(t,z);if(L){var b=r().get(I,L[1]);return r().isFunction(b)?b():b}else return t};function G(P){if(f()(P)!=="object"||P===null)return null;for(var t in P)if(Object.prototype.hasOwnProperty.call(P,t))return Object.prototype.toString.call(P[t])==="[object Object]"&&P[t]!==null?G(P[t]):{key:t,value:P[t]};return null}var j=function(t){var I=O(t),B=(0,n.findIndex)(I,function(L,b,F){if(L.includes("$")&&b>0)return!0}),z=I.slice(0,B);return z};function O(P){var t=[];function I(B){Object.keys(B).sort().forEach(function(z){t.push(z),B[z]&&f()(B[z])==="object"&&I(B[z])})}return I(P),t}var l=function(){var P=m()(c()().mark(function t(I){var B,z,L,b,F,ee,re;return c()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return B=I.ruleGroup,z=I.variables,L=I.localVariables,b=I.variableNameOfLeftCondition,F=Object.keys(B)[0]||"$and",ee=B[F],re=ee.map(function(){var W=m()(c()().mark(function q(fe){var ne,pe,Se,_e,de,xe,te,X,ve,ie,Y,ue,Ce,Ee,Oe;return c()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!("$and"in fe||"$or"in fe)){Ae.next=4;break}return Ae.next=3,l({ruleGroup:fe,variables:z,localVariables:L});case 3:return Ae.abrupt("return",Ae.sent);case 4:if(ne=G(fe),pe=ne==null?void 0:ne.key,pe){Ae.next=8;break}return Ae.abrupt("return",!0);case 8:return Se=v(j(fe),b),_e=z.parseVariable(Se,L,{doNotRequest:!0}).then(function(Te){var Pe=Te.value;return Pe}),de=(0,h.cG)(ne==null?void 0:ne.value)?[z.parseVariable(ne==null?void 0:ne.value,L).then(function(Te){var Pe=Te.value;return Pe}),_e]:[ne==null?void 0:ne.value,_e],Ae.prev=11,xe=Z(),Ae.next=15,Promise.all(de);case 15:return te=Ae.sent,X=o()(te,2),ve=X[0],ie=X[1],Ae.next=21,z.getCollectionField(Se,L);case 21:return Y=Ae.sent,ue=(0,C.J)(ie,{targetCollectionField:Y}),Ce=(0,C.J)(ve,{targetCollectionField:Y}),Y!=null&&Y.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(Y.type)&&ue&&(Ee=(0,D.CE)(Ce),Oe=(0,M.getPickerFormat)(Ee),ue=(0,M.dayjs)(ue).format(Oe)),Ae.abrupt("return",xe.apply(x()({},pe,[ue,Ce])));case 28:throw Ae.prev=28,Ae.t0=Ae.catch(11),Ae.t0;case 31:case"end":return Ae.stop()}},q,null,[[11,28]])}));return function(q){return W.apply(this,arguments)}}()),J.next=6,Promise.all(re);case 6:if(re=J.sent,F!=="$and"){J.next=11;break}return J.abrupt("return",(0,n.every)(re,function(W){return W}));case 11:return J.abrupt("return",(0,n.some)(re,function(W){return W}));case 12:case"end":return J.stop()}},t)}));return function(I){return P.apply(this,arguments)}}();function v(P){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(t,".").concat(P.join(".")," }}")}var a=function(t){var I={};return t.map(function(B){I[B.name]=B.ctx}),I};function S(P,t,I,B,z){return V.apply(this,arguments)}function V(){return V=m()(c()().mark(function P(t,I,B,z,L){var b,F,ee,re,oe,J,W,q,fe;return c()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!(I&&t==="handlebars")){pe.next=19;break}return pe.prev=1,ee=M.Handlebars.compile(I),re=a(z),oe=(B==null||(b=B.ctxRef)===null||b===void 0?void 0:b.current)||{},J=oe.$nDate,W={},Object.keys(J||{}).map(function(Se){W[Se]=J[Se]()}),q=ee(u()(u()(u()({},B==null||(F=B.ctxRef)===null||F===void 0?void 0:F.current),re),{},{$nDate:W})),pe.next=10,L(q);case 10:return pe.abrupt("return",pe.sent);case 13:return pe.prev=13,pe.t0=pe.catch(1),console.log(pe.t0),pe.abrupt("return",I);case 17:pe.next=32;break;case 19:return pe.prev=19,pe.next=22,(0,d.replaceVariableValue)(I,B,z);case 22:return fe=pe.sent,pe.next=25,L(fe);case 25:return pe.abrupt("return",pe.sent);case 28:return pe.prev=28,pe.t1=pe.catch(19),console.log(pe.t1),pe.abrupt("return",I);case 32:case"end":return pe.stop()}},P,null,[[1,13],[19,28]])})),V.apply(this,arguments)}},25145:function(ze,se,e){"use strict";e.d(se,{u:function(){return C}});var H=e(97857),u=e.n(H),k=e(5574),c=e.n(k),E=e(80844),x=e(96486),K=e(67294),o=e(64774),N=e(75585),m=e(22891),y={type:"void","x-component":"Action.Container","x-action":"view",title:'{{ t("View record") }}',"x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},f=e(94804),M=e(57105),n=e(73691),r=e(85893),d=function(){var R=(0,E.useFieldSchema)(),Z=(0,o.ngQ)(),w=Z.insertAfterBegin,$=(0,K.useCallback)(function(p){var A=R.reduceProperties(function(g,i){return i["x-component"]==="Action.Container"?i:g},null);A||w((0,x.cloneDeep)(p))},[R,w]);return $},h=function(R){return R["x-component"]==="Action.Container"};function C(D){return function(R){var Z=(0,K.useState)(!1),w=c()(Z,2),$=w[0],p=w[1],A=(0,K.useState)(!1),g=c()(A,2),i=g[0],G=g[1],j=d(),O=(0,f.Kx)(),l=(0,o.XCj)(),v=(0,E.useField)(),a=(0,E.useFieldSchema)(),S=(a==null?void 0:a["x-component-props"])||{},V=S.enableLink,P=S.openMode,t=S.openSize,I=(0,m.ES)(),B=I.visibleWithURL,z=I.setVisibleWithURL,L=(0,m.ES)(),b=L.openPopup,F=(0,K.useRef)(!1),ee=(0,K.useRef)(a);ee.current=a;var re=(0,K.useCallback)(function(){return ee.current},[]),oe=(0,K.useCallback)(function(){a.properties||(j(y),F.current=!0),F.current?(setTimeout(function(){b({customActionSchema:re()})}),F.current=!1):a.properties&&b()},[a,j,b,re]),J=l.setSubmitted,W=(0,K.useCallback)(function(q){p==null||p(q),z==null||z(q)},[z]);return V?(0,r.jsx)(N.OA,{visible:!1,children:(0,r.jsxs)(o.EIK,{button:(0,r.jsx)(D,u()({},R)),visible:$||B,setVisible:W,formValueChanged:i,setFormValueChanged:G,openMode:P,openSize:t,containerRefKey:"field-popup",fieldSchema:a,setSubmitted:J,children:[(0,r.jsx)(f.YQ,{name:O.name,children:(0,r.jsx)(o.G0E,{children:(0,r.jsx)(n.Rm,{children:(0,r.jsx)(M.sq,{onlyRenderProperties:!0,basePath:v==null?void 0:v.address,schema:a,filterProperties:h})})})}),(0,r.jsx)("a",{onClick:oe,children:(0,r.jsx)(D,u()({},R))})]})}):(0,r.jsx)(D,u()({},R))}}},61736:function(ze,se,e){"use strict";e.d(se,{D:function(){return u}});var H=e(67294),u=(0,H.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(ze,se,e){"use strict";e.d(se,{R:function(){return n}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(86201),x=e(80844),K=e(67294),o=e(47844),N=e(85893),m=["children","form"],y=["children"],f=function(d){var h=d.children,C=d.form,D=c()(d,m),R=(0,K.useContext)(x.SchemaOptionsContext),Z=(0,K.useContext)(x.SchemaExpressionScopeContext),w=u()(u()({},R==null?void 0:R.scope),Z),$=u()({},R==null?void 0:R.components);return(0,N.jsx)(x.FormProvider,u()(u()({},D),{},{form:C,children:(0,N.jsx)(o.G,{components:$,scope:w,children:h})}))},M=function(d){var h=d.children,C=c()(d,y),D=(0,K.useContext)(x.SchemaOptionsContext),R=(0,K.useContext)(x.SchemaExpressionScopeContext),Z=u()(u()({},D==null?void 0:D.scope),R),w=u()({},D==null?void 0:D.components),$=(0,K.useMemo)(function(){return(0,E.createForm)()},[]);return(0,N.jsx)(x.FormProvider,u()(u()({},C),{},{form:$,children:(0,N.jsx)(o.G,{components:w,scope:Z,children:h})}))},n=function(d){return d.form?(0,N.jsx)(f,u()({},d)):(0,N.jsx)(M,u()({},d))}},93587:function(ze,se,e){"use strict";e.d(se,{m:function(){return d}});var H=e(97857),u=e.n(H),k=e(86201),c=e(57953),E=e(67294),x=e(54195),K=e(21044),o=e(84577),N=e(44245),m=e(93323),y=e(12174),f=function(C){var D=C.uid,R=C.type,Z=R===void 0?"getJsonSchema":R,w=C.onSuccess,$={url:"/uiSchemas:".concat(Z,"/").concat(D)},p=(0,y.QT)($,{refreshDeps:[D],onSuccess:function(G){w&&w(G)}}),A=p.data,g=p.loading;return{schema:A==null?void 0:A.data,loading:g}},M=e(85893),n=function(C){return C},r=function(C){var D=C.noForm,R=C.onlyRenderProperties,Z=C.hidden,w=C.scope,$=C.uid,p=C.components,A=C.onSuccess,g=C.NotFoundPage,i=C.schemaTransform,G=i===void 0?n:i,j=C.onPageNotFind,O=R?"getProperties":"getJsonSchema",l=(0,E.useMemo)(function(){return(0,k.createForm)()},[$]),v=f({uid:$,type:O,onSuccess:function(I){A&&A(I)}}),a=v.schema,S=v.loading,V=(0,o.Co)(g),P=(0,x.Kk)();return P||S||Z?(0,M.jsx)(c.Z,{style:{width:"100%",marginTop:20},delay:K.fw}):!a||Object.keys(a).length===0?(j&&j(),V?(0,M.jsx)(V,{}):null):D?(0,M.jsx)(m.n,{components:p,scope:w,schema:G(a||{})}):(0,M.jsx)(N.R,{form:l,children:(0,M.jsx)(m.n,{components:p,scope:w,schema:G(a||{})})})},d=(0,E.memo)(function(h){return h.uid?(0,M.jsx)(r,u()({},h)):null});d.displayName="RemoteSchemaComponent"},93323:function(ze,se,e){"use strict";e.d(se,{A:function(){return R},n:function(){return $}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=e(9783),x=e.n(E),K=e(80844),o=e(96486),N=e.n(o),m=e(67294),y=e(57105),f=e(61736),M=e(47844),n=e(85893),r=["components","scope","schema","distributed","onChange"],d=["schema"],h=["memoized"];function C(p){return K.Schema.isSchemaInstance(p)?p:p!=null&&p.name?new K.Schema({type:"object",properties:x()({},p.name,p)}):new K.Schema(p)}var D=function(A){return(0,m.useMemo)(function(){return C(A)},[])},R=(0,m.createContext)({onChange:N().noop}),Z=(0,m.memo)(function(p){var A=p.components,g=p.scope,i=p.schema,G=p.distributed,j=p.onChange,O=c()(p,r),l=(0,m.useContext)(f.D),v=(0,m.useMemo)(function(){return C(i)},[i]),a=(0,m.useMemo)(function(){return u()(u()({},l),{},{distributed:l.distributed==!1?!1:G,refresh:l.refresh||N().noop})},[l,G]),S=(0,m.useContext)(R),V=S.onChange,P=(0,m.useMemo)(function(){return{onChange:function(){j==null||j(v),V==null||V()}}},[j,V,v]);return(0,n.jsx)(R.Provider,{value:P,children:(0,n.jsx)(f.D.Provider,{value:a,children:(0,n.jsx)(M.G,{inherit:!0,components:A,scope:g,children:(0,n.jsx)(y.sq,u()(u()({},O),{},{schema:v,isUseFormilyField:!0}))})})})});Z.displayName="RecursionSchemaComponent";var w=(0,m.memo)(function(p){var A=p.schema,g=c()(p,d),i=D(A);return(0,n.jsx)(Z,u()(u()({},g),{},{schema:i}))});w.displayName="MemoizedSchemaComponent";var $=(0,m.memo)(function(p){var A=p.memoized,g=c()(p,h);return A?(0,n.jsx)(w,u()({},g)):(0,n.jsx)(Z,u()({},g))});$.displayName="SchemaComponent"},47844:function(ze,se,e){"use strict";e.d(se,{B:function(){return x},G:function(){return K}});var H=e(97857),u=e.n(H),k=e(80844),c=e(67294),E=e(85893),x=function(){var N=(0,c.useContext)(k.SchemaOptionsContext);return N||{}},K=(0,c.memo)(function(o){var N=o.children,m=x(),y=(0,c.useMemo)(function(){return u()(u()({},m.components),o.components)},[m.components,o.components]),f=(0,c.useMemo)(function(){return u()(u()({},m.scope),o.scope)},[m.scope,o.scope]),M=(0,c.useMemo)(function(){return{scope:f,components:y}},[f,y]);return(0,E.jsx)(k.SchemaOptionsContext.Provider,{value:M,children:(0,E.jsx)(k.SchemaComponentsContext.Provider,{value:y,children:(0,E.jsx)(k.ExpressionScope,{value:f,children:N})})})});K.displayName="SchemaComponentOptions"},70993:function(ze,se,e){"use strict";e.d(se,{_b:function(){return p},RV:function(){return A.R},m1:function(){return g.m},n6:function(){return i.n},AT:function(){return i.A},G0:function(){return G.G},a$:function(){return ee},Tz:function(){return b},Bs:function(){return G.B}});var H=e(15009),u=e.n(H),k=e(99289),c=e.n(k),E=e(12444),x=e.n(E),K=e(72004),o=e.n(K),N=e(31996),m=e.n(N),y=e(26037),f=e.n(y),M=e(51947),n=e(83062),r=e(15867),d=e(67294),h=e(49218),C=e(26793),D=e(64774),R=e(68230),Z=e(85893),w={backgroundColor:"var(--colorSettings) !important"},$={backgroundColor:"transparent"},p=function(){var J=(0,D.ngQ)(),W=J.designable,q=J.setDesignable,fe=(0,C.$)(),ne=fe.t,pe=(0,R.d)(),Se=pe.token,_e=W?w:$;return(0,h.y1)("Ctrl+Shift+U",function(){return q(!W)},[W]),(0,Z.jsx)(n.Z,{title:ne("UI Editor"),children:(0,Z.jsx)(r.ZP,{"data-testid":"ui-editor-button",icon:(0,Z.jsx)(M.Z,{style:{color:Se.colorTextHeaderMenu}}),title:ne("UI Editor"),style:_e,onClick:function(){q(!W)}})})},A=e(44245),g=e(93587),i=e(93323),G=e(47844),j=e(97857),O=e.n(j),l=e(5574),v=e.n(l),a=e(86201),S=e(80844),V=e(84327),P=e(96486),t=e.n(P),I=e(61736),B=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(J).concat((0,V.uid)())};S.Schema.silent(!0);var z={},L={silent:!0,compile:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=function(){if(L.silent)try{return new Function("$root","with($root) { return (".concat(J,"); }"))(W)}catch{return"{{".concat(J,"}}")}else return new Function("$root","with($root) { return (".concat(J,"); }"))(W)};return z[J]?z[J]:J.trim().startsWith("t(")?(z[J]=q(),z[J]):q()}};S.Schema.registerCompiler(L.compile);var b=function(J){var W=J.designable,q=J.onDesignableChange,fe=J.components,ne=J.children,pe=(0,d.useContext)(I.D),Se=(0,G.B)(),_e=(0,d.useState)(function(){return(0,V.uid)()}),de=v()(_e,2),xe=de[0],te=de[1],X=(0,d.useMemo)(function(){return J.form||(0,a.createForm)()},[xe]),ve=(0,C.$)(),ie=ve.t,Y=(0,d.useMemo)(function(){return O()(O()({},J.scope),{},{t:ie,randomString:B})},[J.scope,ie,Se==null?void 0:Se.scope]),ue=(0,d.useState)(W),Ce=v()(ue,2),Ee=Ce[0],Oe=Ce[1],Re=(0,d.useMemo)(function(){return typeof W=="boolean"?W:Ee},[W,Ee,pe.designable]),Ae=(0,d.useMemo)(function(){return function(ye){typeof Re!="boolean"&&Oe(ye),q==null||q(ye)}},[Re,q]),Te=(0,d.useCallback)(function(){te((0,V.uid)())},[]),Pe=(0,d.useMemo)(function(){return{scope:Y,components:fe,reset:Te,refresh:t().noop,designable:Re,setDesignable:Ae}},[fe,Re,Te,Y,Ae]);return(0,Z.jsx)(I.D.Provider,{value:Pe,children:(0,Z.jsx)(S.FormProvider,{form:X,children:(0,Z.jsx)(G.G,{inherit:!0,scope:Y,components:fe,children:ne})})})};b.displayName="SchemaComponentProvider";var F=e(31601),ee=function(oe){m()(W,oe);var J=f()(W);function W(){return x()(this,W),J.apply(this,arguments)}return o()(W,[{key:"load",value:function(){var q=c()(u()().mark(function ne(){return u()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:this.addComponents();case 1:case"end":return Se.stop()}},ne,this)}));function fe(){return q.apply(this,arguments)}return fe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:p})}}]),W}(F.S),re=null},84577:function(ze,se,e){"use strict";e.d(se,{zz:function(){return K.zz},Pl:function(){return K.Pl},oB:function(){return K.oB},lI:function(){return u},hi:function(){return Z.hi},eJ:function(){return k.e},Co:function(){return x},aZ:function(){return Z.aZ},ng:function(){return K.ng},et:function(){return o.e},cL:function(){return d},fd:function(){return w},Cl:function(){return y},vH:function(){return D},sR:function(){return K.sR},wN:function(){return R.w},Dm:function(){return M},fM:function(){return Z.fM}});var H=e(67294),u=function(p){var A=(0,H.useRef)(null);return(0,H.useEffect)(function(){return A.current&&p!==A.current&&A.current.onUnmount(),A.current=p,p.onMount(),function(){p.onUnmount()}},[p]),p},k=e(96365),c=e(80844),E=e(96486),x=function(p,A){var g=(0,H.useContext)(c.SchemaOptionsContext),i=g.components;return p?typeof p!="string"?p:(0,E.get)(i,p)||A:A},K=e(94516),o=e(98146),N=e(97857),m=e.n(N),y=function(p){var A=(0,H.useContext)(c.SchemaOptionsContext),g=(0,H.useContext)(c.SchemaExpressionScopeContext),i=(0,H.useRef)();return i.current=g,p.toFieldProps(m()(m()({},A),{},{get scope(){return m()(m()({},A.scope),i.current)}}))},f=e(61736);function M(){return(0,H.useContext)(f.D)}var n=e(26793),r=e(6145),d=function(){var p,A=(0,r.useCollectionManager_deprecated)(),g=A.getCollectionJoinField,i=A.getCollection,G=(0,c.useFieldSchema)(),j=(0,r.useCollection_deprecated)(),O=j.getField,l=O(G.name)||g(G["x-collection-field"]),v=(0,n.$)(),a=v.t,S=((p=G["x-component-props"])===null||p===void 0?void 0:p.fieldNames)||{},V=S.label,P=(0,H.useMemo)(function(){if(!(!l||!(l!=null&&l.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(l.interface)){var t=i(l.target);if((t==null?void 0:t.template)==="file")return[{label:a("Record picker"),value:"CollectionField"},{label:a("Select"),value:"AssociationSelect"}];switch(l.interface){case"o2m":return[{label:a("Record picker"),value:"CollectionField"},{label:a("Subtable"),value:"TableField"},{label:a("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:a("Record picker"),value:"CollectionField"},{label:a("Select"),value:"AssociationSelect"}];default:return[{label:a("Record picker"),value:"CollectionField"},{label:a("Subform"),value:"FormField"},{label:a("Select"),value:"AssociationSelect"}]}}},[a,l==null?void 0:l.interface,V]);return P},h=e(35746),C=e(58837),D=function(){var p,A=(0,c.useField)(),g=(0,c.useFieldSchema)(),i=(0,C.Kx)(),G=(0,h.d9)(),j=(i==null?void 0:i.getField(g.name))||(G==null?void 0:G.getCollectionField(g["x-collection-field"])),O=(0,k.e)();(0,H.useEffect)(function(){if(!(A!=null&&A.title)){var l;A.title=O(j==null||(l=j.uiSchema)===null||l===void 0?void 0:l.title)}},[j==null||(p=j.uiSchema)===null||p===void 0?void 0:p.title])},R=e(9780),Z=e(18686),w=function(p){var A,g=(0,n.$)(),i=g.t,G=(0,r.useCollectionManager_deprecated)(),j=G.getCollectionJoinField,O=G.getCollection,l=(0,c.useFieldSchema)(),v=(p==null?void 0:p.fieldSchema)||l,a=(0,c.useField)(),S=(0,c.useForm)(),V=(v==null?void 0:v["x-read-pretty"])||a.readPretty||S.readPretty,P=p==null?void 0:p.fieldSchema,t=(0,r.useCollection_deprecated)(),I=t.getField,B=(p==null?void 0:p.collectionField)||I(v.name)||j(v["x-collection-field"]),z=((A=v["x-component-props"])===null||A===void 0?void 0:A.fieldNames)||{},L=z.label,b=(0,H.useMemo)(function(){if(!(!B||!(B!=null&&B.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm","attachmentURL"].includes(B.interface)){var F=O(B.target);if((F==null?void 0:F.template)==="file")return V?[{label:i("Title"),value:"Select"},{label:i("File manager"),value:"FileManager"},{label:i("Tag"),value:"Tag"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},{label:i("File manager"),value:"FileManager"}];if((F==null?void 0:F.template)==="tree"&&["m2m","o2m","m2o"].includes(B.interface))return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"},!P&&{label:i("Sub-table"),value:"SubTable"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&["m2m","o2m"].includes(B.interface)&&{label:i("Sub-table"),value:"SubTable"},!P&&{label:i("Cascade Select"),value:"CascadeSelect"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}];switch(B.interface){case"o2m":return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-table"),value:"SubTable"},!P&&{label:i("Sub-details"),value:"Nester"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"},!P&&{label:i("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"},!P&&{label:i("Sub-table"),value:"SubTable"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-table"),value:"SubTable"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}];default:return V?[{label:i("Title"),value:"Select"},{label:i("Tag"),value:"Tag"},!P&&{label:i("Sub-details"),value:"Nester"}]:[{label:i("Select"),value:"Select"},{label:i("Record picker"),value:"Picker"},!P&&{label:i("Sub-form"),value:"Nester"},{label:i("Sub-form(Popover)"),value:"PopoverNester"}]}}},[i,B==null?void 0:B.interface,L]);return(b||[]).filter(Boolean)}},18686:function(ze,se,e){"use strict";e.d(se,{aZ:function(){return $},fM:function(){return A},hi:function(){return p}});var H=e(5574),u=e.n(H),k=e(97857),c=e.n(k),E=e(80844),x=e(83204),K=e(9361),o=e(96486),N=e.n(o),m=e(67294),y=e(89250),f=e(64774),M=e(21143),n=e(10097),r=e(1892),d=e(28561),h=function(G,j,O,l,v){return v.includes("/popups/")?2*l.paddingContentVertical+22+l.paddingPageVertical:G?l.paddingContentHorizontalLG:O?j?l.controlPaddingHorizontal+3*l.controlPaddingHorizontalSM+22+l.paddingContentHorizontalLG:l.paddingContentHorizontalLG+12:j?l.paddingSM+l.controlHeight+l.marginXS+2*l.controlPaddingHorizontalSM+22+l.paddingContentHorizontalLG:l.controlHeight+l.marginXS+(l.paddingXXS+2)*2+l.paddingContentHorizontalLG},C=function(G){var j=K.Z.useToken(),O=j.token,l=(0,f.ngQ)(),v=l.designable,a=(0,n.useBlockHeightProps)(),S=a.heightProps,V=(0,y.useLocation)(),P=G||S||{},t=P.disablePageHeader,I=P.enablePageTabs,B=P.hidePageTitle,z=O.sizeXXL-2,L=v?O.controlHeight+2*O.paddingContentHorizontalLG:1*O.paddingContentHorizontalLG,b=h(t,I,B,O,V.pathname);return z+b+L},D=function(){var G=K.Z.useToken(),j=G.token,O=(0,f.ngQ)(),l=O.designable,v=j.paddingContentVerticalLG+j.margin+2*j.paddingContentVertical+24,a=l?j.controlHeight+2*j.paddingContentHorizontalLG:1*j.paddingContentHorizontalLG;return v+a},R=function(G){var j=(0,E.useFieldSchema)(),O=g(j),l=C(G),v=D();return O?v:l},Z=["users_jobs","approvals","approvalRecords"],w=function(){var G,j=K.Z.useToken(),O=j.token,l=(0,n.useBlockHeightProps)(),v=l.heightProps,a=(0,r.Si)(),S=a.heightProps,V=(0,f.ngQ)(),P=V.designable,t=(0,E.useFieldSchema)(),I=S||v,B=R(I),z=(0,M.useCollection)(),L=z.name,b=I.heightMode,F=I.height,ee=I.title;if(!(!(I!=null&&I.heightMode)||b===d.j.DEFAULT)){var re=Object.keys(((G=t.parent.properties.actions)===null||G===void 0?void 0:G.properties)||{}).length>0,oe=O.controlHeight+O.padding+O.marginLG,J=re||P?O.controlHeight+2*O.marginLG:O.marginLG,W=(P&&!Z.includes(L)?O.controlHeight:22)+2*O.padding+1,q=ee?O.fontSizeLG*O.lineHeightLG+O.padding*2-1:0;return b===d.j.FULL_HEIGHT?window.innerHeight-B-q-W-J-oe:F-q-J-W-oe}},$=function(G){var j=(0,n.useBlockHeightProps)(),O=j.heightProps,l=R(),v=K.Z.useToken(),a=v.token,S=O||{},V=S.heightMode,P=S.height,t=S.title,I=t?a.fontSizeLG*a.lineHeightLG+a.padding*2-1:0;if(!(!(O!=null&&O.heightMode)||V===d.j.DEFAULT)){if(V===d.j.FULL_HEIGHT){var B=window.innerHeight-l;return G!=null&&G.removeBlockHeaderHeight&&(B=B-I),G!=null&&G.innerExtraHeight&&(B=B-G.innerExtraHeight),B}return P}},p=function(){var G=(0,E.useFieldSchema)(),j=(0,m.useMemo)(function(){return(0,n.getPageSchema)(G)},[]),O=(j==null?void 0:j["x-component-props"])||{},l=O.disablePageHeader,v=O.enablePageTabs,a=O.hidePageTitle,S=c()(c()({},G==null?void 0:G["x-component-props"]),{},{disablePageHeader:l,enablePageTabs:v,hidePageTitle:a}),V=R(S),P=S||{},t=P.heightMode,I=P.height;if(!(!(S!=null&&S.heightMode)||t===d.j.DEFAULT))return t===d.j.FULL_HEIGHT?window.innerHeight-V:I},A=function(){var G=(0,m.useState)(),j=u()(G,2),O=j[0],l=j[1],v=(0,m.useRef)(null),a=w(),S=(0,m.useCallback)((0,o.debounce)(function(){var P;if(v.current){var t=v.current.getBoundingClientRect(),I=(P=v.current.querySelector(".ant-table"))===null||P===void 0?void 0:P.getBoundingClientRect();I&&l(t.width)}},100),[a]),V=(0,m.useCallback)(function(P){v.current=P&&P.children?P.children[0]:null,S()},[S]);return(0,x.Z)("resize",S),{height:a,width:O,tableSizeRefCallback:V}},g=function i(G){if(!G)return null;if(G["x-component"]==="Action.Container"){var j;return(G==null||(j=G.parent["x-component-props"])===null||j===void 0?void 0:j.openMode)!=="page"}return i(G.parent)}},96365:function(ze,se,e){"use strict";e.d(se,{e:function(){return N}});var H=e(97857),u=e.n(H),k=e(52677),c=e.n(k),E=e(80844),x=e(67294),K={},o=function(y){var f=/{{.*?}}/g;return f.test(y)},N=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},f=y.noCache,M=(0,x.useContext)(E.SchemaOptionsContext),n=(0,x.useContext)(E.SchemaExpressionScopeContext);return function(r,d){var h=!1,C;if(typeof r=="string"&&r.startsWith("{{")&&(h=!0,C=r),r&&c()(r)==="object"&&!(0,x.isValidElement)(r)){try{C=JSON.stringify(r)}catch(R){return console.warn("Failed to stringify:",R),r}if(K[C])return K[C];h=o(C)}if(Array.isArray(r)){try{C=JSON.stringify(r)}catch(R){return console.warn("Failed to stringify:",R),r}if(K[C])return K[C];h=o(C)}if(h){var D=u()(u()(u()({},M.scope),n),d);if(!C)return E.Schema.compile(r,D);try{return f?E.Schema.compile(r,D):(K[C]=K[C]||E.Schema.compile(r,D),K[C])}catch(R){return console.log("useCompile error",r,R),E.Schema.compile(r,D)}}return r}}},94516:function(ze,se,e){"use strict";e.d(se,{zz:function(){return b},Pl:function(){return P},oB:function(){return z},ng:function(){return ee},sR:function(){return F}});var H=e(5574),u=e.n(H),k=e(19632),c=e.n(k),E=e(15009),x=e.n(E),K=e(99289),o=e.n(K),N=e(12444),m=e.n(N),y=e(72004),f=e.n(y),M=e(9783),n=e.n(M),r=e(97857),d=e.n(r),h=e(80844),C=e(84327),D=e(90105),R=e(45360),Z=e(50361),w=e.n(Z),$=e(27361),p=e.n($),A=e(36968),g=e.n(A),i=e(67294),G=e(26793),j=e(12174),O=e(57105),l=e(98902),v=e(61736);function a(re,oe){if(re)return re["x-app-version"]||(re["x-app-version"]=oe),Object.keys(re.properties||{}).forEach(function(J){var W;a((W=re.properties)===null||W===void 0?void 0:W[J],oe)}),re}var S=JSON.parse('{"i8":"1.6.0-beta.3"}'),V=e(85893);function P(re){return new b(re)}var t=function re(oe){oe&&(oe["x-uid"]||(oe["x-uid"]=(0,C.uid)()),Object.keys(oe.properties||{}).forEach(function(J){re(oe.properties[J])}))},I=function(oe){return oe},B=function(oe,J){if(!(!oe||!J)){for(var W in J)if(Object.prototype.hasOwnProperty.call(J,W)){var q=J[W];if(q!==(oe==null?void 0:oe[W]))return!1}return!0}},z=function(oe,J){if(oe["x-uid"]&&oe["x-uid"]===J["x-uid"])return[null,oe.toJSON()];var W=oe.toJSON(),q=d()(d()({},W),{},{properties:{}}),fe=null,ne=function pe(Se,_e){Object.keys(Se||{}).forEach(function(de){var xe=Se[de];if(xe["x-uid"]===J["x-uid"]){fe=Se[de];return}else _e.properties[de]=d()(d()({},xe),{},{properties:{}}),pe(xe==null?void 0:xe.properties,_e.properties[de])})};return ne(W.properties,q),[q,fe]},L=function(oe){return oe},b=function(){function re(oe){m()(this,re),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=oe,this.current=oe.current,this.appVersion=oe.appVersion}return f()(re,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var J=this,W=this.options,q=W.api,fe=W.t,ne=fe===void 0?L:fe;if(q){var pe=function(_e){if(!_e)return[];var de=Object.values(_e.properties).length,xe=[];return _e.mapProperties(function(te){te["x-component-props"]=te["x-component-props"]||{},te["x-component-props"].width=100/de,te["x-uid"]&&xe.push({"x-uid":te["x-uid"],"x-component-props":te["x-component-props"]})}),_e["x-uid"]&&xe.length?xe:[]};this.on("insertAdjacent",function(){var Se=o()(x()().mark(function _e(de){var xe,te,X,ve,ie,Y,ue,Ce,Ee,Oe;return x()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(te=de.onSuccess,X=de.current,ve=de.position,ie=de.schema,Y=de.wrap,ue=de.wrapped,Ce=de.removed,Ee=[],(ue==null?void 0:ue["x-component"])==="Grid.Col"&&(Ee=Ee.concat(pe(ue.parent))),(Ce==null?void 0:Ce["x-component"])==="Grid.Col"&&(Ee=Ee.concat(pe(Ce.parent))),J.refresh(),X["x-uid"]){Ae.next=7;break}return Ae.abrupt("return");case 7:return Ae.next=9,q.request({url:"/uiSchemas:insertAdjacent/".concat(X["x-uid"],"?position=").concat(ve),method:"post",data:{schema:a(ie,J.appVersion),wrap:Y}});case 9:if(Oe=Ae.sent,!Ee.length){Ae.next=13;break}return Ae.next=13,q.request({url:"/uiSchemas:batchPatch",method:"post",data:Ee});case 13:if(!(Ce!=null&&Ce["x-uid"])){Ae.next=16;break}return Ae.next=16,q.request({url:"/uiSchemas:remove/".concat(Ce["x-uid"]),method:"post"});case 16:te==null||te(Oe==null||(xe=Oe.data)===null||xe===void 0?void 0:xe.data),R.ZP.success(ne("Saved successfully"),.2);case 18:case"end":return Ae.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("patch",function(){var Se=o()(x()().mark(function _e(de){var xe;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(xe=de.schema,J.refresh(),xe!=null&&xe["x-uid"]){X.next=4;break}return X.abrupt("return");case 4:return X.next=6,q.request({url:"/uiSchemas:patch",method:"post",data:d()({},xe)});case 6:R.ZP.success(ne("Saved successfully"),.2);case 7:case"end":return X.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var Se=o()(x()().mark(function _e(de){var xe;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(xe=de.schema,xe!=null&&xe["x-uid"]){X.next=3;break}return X.abrupt("return");case 3:return X.next=5,q.request({url:"/uiSchemas:initializeActionContext",method:"post",data:d()({},xe)});case 5:case"end":return X.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("batchPatch",function(){var Se=o()(x()().mark(function _e(de){var xe;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return xe=de.schemas,J.refresh(),X.next=4,q.request({url:"/uiSchemas:batchPatch",method:"post",data:xe});case 4:R.ZP.success(ne("Saved successfully"),.2);case 5:case"end":return X.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}()),this.on("remove",function(){var Se=o()(x()().mark(function _e(de){var xe,te;return x()().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(xe=de.removed,te=[],(xe==null?void 0:xe["x-component"])==="Grid.Col"&&(te=pe(xe.parent)),J.refresh(),xe!=null&&xe["x-uid"]){ve.next=6;break}return ve.abrupt("return");case 6:return ve.next=8,q.request({url:"/uiSchemas:remove/".concat(xe["x-uid"]),method:"post"});case 8:if(!te.length){ve.next=11;break}return ve.next=11,q.request({url:"/uiSchemas:batchPatch",method:"post",data:te});case 11:R.ZP.success(ne("Saved successfully"),.2);case 12:case"end":return ve.stop()}},_e)}));return function(_e){return Se.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(J){J.type||(J.type="void"),J.name||(J.name=(0,C.uid)()),this.current["x-uid"]&&t(J)}},{key:"on",value:function(J,W){this.events[J]||(this.events[J]=[]),this.events[J].push(W)}},{key:"emit",value:function(){var oe=o()(x()().mark(function W(q){var fe=this,ne,pe,Se,_e,de,xe=arguments;return x()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(this.events[q]){X.next=2;break}return X.abrupt("return");case 2:for(ne=xe.length,pe=new Array(ne>1?ne-1:0),Se=1;Se<ne;Se++)pe[Se-1]=xe[Se];return _e=pe[0],de=pe.slice(1),X.abrupt("return",Promise.all(this.events[q].map(function(ve){return ve.bind(fe).apply(void 0,[d()({current:fe.current},_e)].concat(c()(de)))})));case 5:case"end":return X.stop()}},W,this)}));function J(W){return oe.apply(this,arguments)}return J}()},{key:"parentsIn",value:function(J){if(!J||!h.Schema.isSchemaInstance(J))return!1;for(var W=this.current;(q=W)!==null&&q!==void 0&&q.parent;){var q;if(W.parent===J)return!0;W=W.parent}return!1}},{key:"refresh",value:function(J){var W=this.options.refresh;return W==null?void 0:W(J)}},{key:"deepMerge",value:function(J){var W=this,q={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"},fe={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(J).forEach(function(ne){q[ne]?(W.current[ne]=J[ne],W.updateModel(q[ne],J[ne])):fe[ne]?Object.keys(J[ne]).forEach(function(pe){g()(W.current,[ne,pe],J[ne][pe]),W.updateModel([fe[ne],pe],J[ne][pe])}):W.current[ne]=J[ne]}),this.emit("patch",{schema:J})}},{key:"getSchemaAttribute",value:function(J,W){return p()(this.current,J,W)}},{key:"shallowMerge",value:function(J){var W=this,q={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(J).forEach(function(fe){W.current[fe]=J[fe],q[fe]&&W.updateModel(q[fe],J[fe])}),this.emit("patch",{schema:J})}},{key:"updateModel",value:function(J,W){var q=function(ne){g()(ne,J,W)};this.model&&q(this.model),this.query&&this.query.take(q)}},{key:"insertAdjacent",value:function(J,W){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(J){case"beforeBegin":return this.insertBeforeBegin(W,q);case"afterBegin":return this.insertAfterBegin(W,q);case"beforeEnd":return this.insertBeforeEnd(W,q);case"afterEnd":return this.insertAfterEnd(W,q)}}},{key:"recursiveRemoveIfNoChildren",value:function(J,W){if(J){for(var q=J,fe,ne=W==null?void 0:W.breakRemoveOn;q;){if(typeof ne=="function"){if(ne(q))break}else if(B(q,ne))break;var pe=Object.keys(q.properties||{}).length;if(pe>0)break;q.parent&&(fe=q.parent.removeProperty(q.name)),q=q.parent}return fe}}},{key:"remove",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,ne=J||this.current,pe=ne.parent.removeProperty(ne.name);if(fe){var Se=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:q});Se&&(pe=Se)}return this.emit("remove",{removed:pe})}},{key:"removeWithoutEmit",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,ne=J||this.current,pe=ne.parent.removeProperty(ne.name);if(fe){var Se=this.recursiveRemoveIfNoChildren(ne.parent,{breakRemoveOn:q});Se&&(pe=Se)}return pe}},{key:"insertBeforeBeginOrAfterEnd",value:function(J){var W=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)&&h.Schema.isSchemaInstance(J)&&this.current.parent===J.parent){var fe=0,ne=0;return this.current.parent.mapProperties(function(pe,Se,_e){W.current.name===Se&&(ne=_e),J.name===Se&&(fe=_e)}),fe>ne?this.insertBeforeBegin(J,q):this.insertAfterEnd(J,q)}}},{key:"insertBeforeBegin",value:function(J){var W=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){var fe={onSuccess:q.onSuccess},ne=q.wrap,pe=ne===void 0?I:ne,Se=q.breakRemoveOn,_e=q.removeParentsIfNoChildren;if(h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),_e&&(fe.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:Se}))}else J&&(J=w()(J));var de={},xe=!1,te=0,X=0;this.current.parent.mapProperties(function(Oe,Re){Re===W.current.name&&(X=te,xe=!0,++te),Oe["x-index"]=te,++te,xe&&(de[Re]=Oe,W.current.parent.removeProperty(Re))}),this.prepareProperty(J);var ve=pe(J),ie=this.current.parent.addProperty(ve.name||(0,C.uid)(),ve);ie["x-index"]=X,ie.parent=this.current.parent,this.current.parent.setProperties(de);var Y=z(ie,J),ue=u()(Y,2),Ce=ue[0],Ee=ue[1];this.emit("insertAdjacent",d()({position:"beforeBegin",schema:Ee,wrapped:ve,wrap:Ce},fe))}}},{key:"insertAfterBegin",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){var q={onSuccess:W.onSuccess},fe=W.wrap,ne=fe===void 0?I:fe,pe=W.breakRemoveOn,Se=W.removeParentsIfNoChildren;if(h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),Se&&(q.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:pe}))}else J&&(J=w()(J));var _e={},de=1;this.current.mapProperties(function(ue,Ce){ue["x-index"]=de,++de,_e[Ce]=ue}),this.current.properties={},this.prepareProperty(J);var xe=ne(J),te=this.current.addProperty(xe.name||(0,C.uid)(),xe);te["x-index"]=0,te.parent=this.current,this.current.setProperties(_e);var X=z(te,J),ve=u()(X,2),ie=ve[0],Y=ve[1];this.emit("insertAdjacent",d()({position:"afterBegin",schema:Y,wrap:ie,wrapped:xe},q))}}},{key:"insertBeforeEnd",value:function(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){delete J["x-index"];var q={onSuccess:W.onSuccess},fe=W.wrap,ne=fe===void 0?I:fe,pe=W.breakRemoveOn,Se=W.removeParentsIfNoChildren;if(h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),Se&&(q.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:pe}))}else J&&(J=w()(J));this.prepareProperty(J);var _e=ne(J),de=this.current.addProperty(_e.name||(0,C.uid)(),_e);de.parent=this.current;var xe=z(de,J),te=u()(xe,2),X=te[0],ve=te[1];return this.emit("insertAdjacent",d()({position:"beforeEnd",schema:ve,wrap:X,wrapped:_e},q))}}},{key:"insertAfterEnd",value:function(J){var W=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(h.Schema.isSchemaInstance(this.current)){var fe={onSuccess:q==null?void 0:q.onSuccess},ne=q.wrap,pe=ne===void 0?I:ne,Se=q.breakRemoveOn,_e=q.removeParentsIfNoChildren,de=0,xe=0,te=!1,X={};if(this.current.parent.mapProperties(function(Oe,Re){Oe["x-index"]=de,Re===W.current.name&&(++de,xe=de,te=!0),++de,te&&Re!==W.current.name&&(X[Re]=Oe,W.current.parent.removeProperty(Re))}),h.Schema.isSchemaInstance(J)){if(this.parentsIn(J)){this.emit("error",{code:"parent_is_not_allowed",schema:J});return}J.parent.removeProperty(J.name),_e&&(fe.removed=this.recursiveRemoveIfNoChildren(J.parent,{breakRemoveOn:Se})),J.parent=null}else J&&(J=w()(J));this.prepareProperty(J);var ve=pe(J),ie=this.current.parent.addProperty(ve.name||(0,C.uid)(),ve);ie.parent=this.current.parent,ie["x-index"]=xe,this.current.parent.setProperties(X);var Y=z(ie,J),ue=u()(Y,2),Ce=ue[0],Ee=ue[1];this.emit("insertAdjacent",d()({position:"afterEnd",schema:Ee,wrap:Ce,wrapped:ve},fe))}}}]),re}();function F(){var re=(0,i.useContext)(h.SchemaOptionsContext),oe=(0,i.useMemo)(function(){return(re==null?void 0:re.components)||{}},[re]),J=function(q){if(!q)return null;if(typeof q!="string")return q;var fe=p()(oe,q);return fe||console.error('[nocobase]: Component "'.concat(q,'" not found')),fe};return J}function ee(){var re=(0,i.useContext)(v.D),oe=re.designable,J=re.setDesignable,W=re.refresh,q=re.reset,fe=(0,i.useContext)(h.SchemaOptionsContext),ne=(0,i.useMemo)(function(){return(fe==null?void 0:fe.components)||{}},[fe]),pe=(0,i.useMemo)(function(){return function(){return(0,V.jsx)(V.Fragment,{})}},[]),Se=(0,D.Z)(),_e=(0,O.gR)(),de=(0,O.QJ)(),xe=(0,i.useCallback)(function(Ce){W==null||W(),Se(),_e==null||_e(Ce),de==null||de()},[W,Se,_e,de]),te=(0,h.useField)(),X=(0,h.useFieldSchema)(),ve=(0,j.LY)(),ie=(0,G.$)(),Y=ie.t,ue=(0,i.useMemo)(function(){return P({t:Y,api:ve,refresh:xe,current:X,model:te,appVersion:S.i8})},[Y,ve,xe,X,te]);return(0,i.useEffect)(function(){ue.loadAPIClientEvents()},[ue]),{dn:ue,designable:oe,reset:q,refresh:xe,setDesignable:J,DesignableBar:pe,findComponent:(0,i.useCallback)(function(Ce){var Ee;if(!Ce)return null;if(typeof Ce!="string")return Ce;var Oe=p()(ne,Ce);return(Ee=Oe[l.XI])!==null&&Ee!==void 0?Ee:Oe},[p()]),on:ue.on.bind(ue),patch:(0,i.useCallback)(function(Ce,Ee){var Oe=function(Te){Object.keys(Te).forEach(function(Pe){var ye=Te[Pe];Pe==="title"&&(te.title=ye,X.title=ye),Pe==="x-decorator-props"&&(te.decoratorProps||(te.decoratorProps={}),X["x-decorator-props"]||(X["x-decorator-props"]={}),Object.keys(ye).forEach(function(le){te.decoratorProps[le]=ye[le],X["x-decorator-props"][le]=ye[le]})),Pe==="x-component-props"&&(te.componentProps||(te.componentProps={}),X["x-component-props"]||(X["x-component-props"]={}),Object.keys(ye).forEach(function(le){te.componentProps[le]=ye[le],X["x-component-props"][le]=ye[le]}))})};if(typeof Ce=="string"){var Re={};return g()(Re,Ce,Ee),Oe(Re)}Oe(Ce),xe()},[ue]),shallowMerge:(0,i.useCallback)(function(Ce){ue.shallowMerge(Ce)},[ue]),deepMerge:(0,i.useCallback)(function(Ce){ue.deepMerge(Ce)},[ue]),remove:(0,i.useCallback)(function(Ce,Ee){ue.remove(Ce,Ee)},[ue]),insertAdjacent:(0,i.useCallback)(function(Ce,Ee,Oe){ue.insertAdjacent(Ce,Ee,Oe)},[ue]),insertBeforeBegin:(0,i.useCallback)(function(Ce){ue.insertBeforeBegin(Ce)},[ue]),insertAfterBegin:(0,i.useCallback)(function(Ce){ue.insertAfterBegin(Ce)},[ue]),insertBeforeEnd:(0,i.useCallback)(function(Ce){ue.insertBeforeEnd(Ce)},[ue]),insertAfterEnd:(0,i.useCallback)(function(Ce){ue.insertAfterEnd(Ce)},[ue])}}},98146:function(ze,se,e){"use strict";e.d(se,{e:function(){return x}});var H=e(80844),u=e(84577),k=e(67294),c=e(83880),E=function(){return null};E.isNullComponent=!0;var x=function(){var o=(0,u.ng)(),N=o.designable,m=(0,H.useFieldSchema)(),y=(0,k.useMemo)(function(){return m["x-designer"]||m["x-toolbar"]?m["x-designer"]||m["x-toolbar"]:m["x-settings"]?c.Mf:E},[m]),f=(0,u.Co)(y);return N&&f||E}},9780:function(ze,se,e){"use strict";e.d(se,{w:function(){return K}});var H=e(97857),u=e.n(H),k=e(13769),c=e.n(k),E=["useProps"],x=function(){return{}},K=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=N.useProps,y=m===void 0?x:m,f=c()(N,E),M=y;typeof y!="function"&&(M=x);var n=M();return u()(u()({},f),n)}},64774:function(ze,se,e){"use strict";e.d(se,{aUM:function(){return w.aU},olz:function(){return w.ol},N0i:function(){return w.N0},fWn:function(){return w.fW},mlL:function(){return w.ml},EIK:function(){return w.EI},$Lt:function(){return w.$L},$b8:function(){return w.$b},HTy:function(){return Mo},lkv:function(){return vo},rDu:function(){return lr},eYL:function(){return w.eY},Rat:function(){return aa},oAt:function(){return Oo},E7E:function(){return $o},$SD:function(){return Fi},fUi:function(){return Cr.fU},QcG:function(){return as},MLy:function(){return Wo.M},gOu:function(){return Rs},jYG:function(){return Ia.jY},PuU:function(){return Ia.Pu},C1I:function(){return w.C1},Ssf:function(){return ls},vTp:function(){return cs},XZJ:function(){return va},Tt2:function(){return ps},zH8:function(){return _s},Q5L:function(){return Ps},Pok:function(){return Ri},Vm0:function(){return Ds},xI_:function(){return hs},Lip:function(){return fs},WN4:function(){return Hi.W},Mtg:function(){return pa.Mt},iNu:function(){return pa.iN},zzt:function(){return nt.zz},_bl:function(){return D._b},POi:function(){return Ms},AOY:function(){return Se},izJ:function(){return ku},LBT:function(){return C.DndContext},IWB:function(){return C.DragHandler},LCt:function(){return C.DraggableContext},FyH:function(){return fe.Fy},Nir:function(){return fe.Ni},q8U:function(){return fe.q8},HGA:function(){return fe.HG},QTe:function(){return fe.QT},JEX:function(){return fe.JE},fAH:function(){return Dl},$w$:function(){return fe.$w},nBj:function(){return fe.nB},Oct:function(){return fe.Oc},zdw:function(){return fe.zd},CXR:function(){return yl},BQs:function(){return mr.BQ},Hj5:function(){return er.H},M0b:function(){return ji},Dnz:function(){return Hi.D},wn$:function(){return Gn.wn},GzZ:function(){return Gn.Gz},tJZ:function(){return Gn.tJ},fox:function(){return Gn.fo},VTd:function(){return Gn.VT},XsZ:function(){return Gn.Xs},l09:function(){return J},D_t:function(){return ml.D},WiK:function(){return Uo},xJW:function(){return fe.xJ},RVL:function(){return D.RV},Bc8:function(){return Pn},hG9:function(){return Li},DCh:function(){return Bi},rjZ:function(){return fa.rj},Cqo:function(){return vi},jg7:function(){return fa.jg},gsn:function(){return mr.gs},$18:function(){return Vs},IIB:function(){return mr.II},RnZ:function(){return fl},mX2:function(){return mr.mX},zDC:function(){return vr.zD},Phs:function(){return mr.Ph},aVo:function(){return pi},UGj:function(){return gl},yq5:function(){return Cl},v2r:function(){return ha},HIW:function(){return zu},T3C:function(){return la},d97:function(){return An.d9},hGv:function(){return ja},tlE:function(){return mu},rop:function(){return pu},gGi:function(){return fu},DBW:function(){return to.D},MBS:function(){return hu.M},pGO:function(){return Cu},Y8K:function(){return zi},iVT:function(){return mr.iV},ODP:function(){return vr.OD},lbb:function(){return vr.lb},b7w:function(){return vr.b7},sUk:function(){return vr.sU},x1j:function(){return w.x1},m1v:function(){return D.m1},glM:function(){return ct},xZD:function(){return w.xZ},IuH:function(){return Gn.Iu},MkN:function(){return w.Mk},Hof:function(){return xu},n6:function(){return D.n6},DDd:function(){return wu.D},ATq:function(){return D.AT},G0E:function(){return D.G0},a$w:function(){return D.a$},TzZ:function(){return D.Tz},y00:function(){return w.y0},PhF:function(){return dn},Cqv:function(){return C.ShowFormData},cof:function(){return w.co},bts:function(){return C.Sortable},Fop:function(){return C.SortableContext},TRI:function(){return C.SortableItem},ORg:function(){return C.SortableProvider},TaI:function(){return bu},qHe:function(){return ht.q},iA_:function(){return Qr},gvM:function(){return Ru},SnY:function(){return Ml},ASv:function(){return Bu},bwk:function(){return ca},mQc:function(){return Ga},c__:function(){return or.c},QZ3:function(){return Ie},L39:function(){return Ia.L3},jII:function(){return Gi},mPs:function(){return $u},tgM:function(){return Vu},gqx:function(){return Cr.gq},Qm7:function(){return Cr.Qm},_wD:function(){return Ha._w},rjl:function(){return Ha.rj},Fjw:function(){return w.Fj},SLL:function(){return w.SL},sBv:function(){return w.sB},iTm:function(){return fe.iT},BDK:function(){return Cr.BD},Pls:function(){return nt.Pl},Oxq:function(){return tt},WLi:function(){return rt},$9M:function(){return fe.$9},nCn:function(){return fi},iNG:function(){return ka},tD8:function(){return Wi},pg9:function(){return To},Ofb:function(){return fe.Of},ibf:function(){return so},WyG:function(){return q},l6$:function(){return dt.l6},WGR:function(){return Ut},C$H:function(){return vr.C$},SET:function(){return Gr.SE},cNQ:function(){return vr.cN},NCb:function(){return an.NC},I9l:function(){return C.getRenderContent},XQ2:function(){return an.XQ},MDU:function(){return Gr.MD},CEH:function(){return Gr.CE},vUN:function(){return w.vU},ZZb:function(){return fe.ZZ},tqC:function(){return Gr.tq},elO:function(){return vr.el},CfU:function(){return xt},LPx:function(){return Gr.LP},fY6:function(){return Gr.fY},Vm:function(){return wi},w_o:function(){return Gr.w_},SJF:function(){return Ct},_Ko:function(){return Yt},Mev:function(){return Eo},i2K:function(){return Fo},WmO:function(){return Gn.Wm},oBi:function(){return nt.oB},hKP:function(){return an.hK},DU1:function(){return w.DU},XCj:function(){return w.XC},KyD:function(){return Jo.Ky},Vpg:function(){return Ko},lIL:function(){return nt.lI},KxP:function(){return Wo.K},hi9:function(){return nt.hi},p27:function(){return w.p2},z9d:function(){return El.z9},eJW:function(){return nt.eJ},Cor:function(){return nt.Co},Zmk:function(){return An.Zm},aZq:function(){return nt.aZ},P1D:function(){return pa.P1},ngQ:function(){return nt.ng},ett:function(){return nt.et},ySm:function(){return er.y},Zd$:function(){return fe.Zd},cLh:function(){return nt.cL},baz:function(){return fe.b},fde:function(){return nt.fd},Xdt:function(){return vr.Xd},Cld:function(){return nt.Cl},vH8:function(){return nt.vH},PLH:function(){return Gn.PL},V8t:function(){return Gn.V8},tMk:function(){return Gn.tM},xQm:function(){return Gn.xQ},sRe:function(){return nt.sR},U1u:function(){return Fe},HS$:function(){return w.HS},vBu:function(){return w.vB},QYZ:function(){return w.QY},t9d:function(){return w.t9},Kgy:function(){return Gn.Kg},aJ2:function(){return Gn.aJ},n14:function(){return fa.n1},DiB:function(){return fa.Di},l1O:function(){return fe.l1},w5o:function(){return fe.w5},p3Q:function(){return fe.p3},G5e:function(){return fe.G5},xj2:function(){return fe.xj},rxY:function(){return fe.rx},Ils:function(){return vr.Il},zCB:function(){return w.zC},a4r:function(){return to.a},wNf:function(){return nt.wN},Dmu:function(){return nt.Dm},Bsl:function(){return D.Bs},yKv:function(){return du.y},fMB:function(){return nt.fM},gCg:function(){return or.g},eT6:function(){return fe.eT},$SN:function(){return Cr.$S},q4O:function(){return fe.q4},ymE:function(){return Ha.ym},uqQ:function(){return w.uq},Q3P:function(){return an.Q3},K5K:function(){return w.K5}});var H={};e.r(H),e.d(H,{Action:function(){return w.aU},ActionBar:function(){return w.ol},ActionBarProvider:function(){return w.N0},ActionContext:function(){return w.fW},ActionContextNoRerender:function(){return w.ml},ActionContextProvider:function(){return w.EI},ActionDesigner:function(){return w.$L},AfterSuccess:function(){return w.$b},AntdSchemaComponentPlugin:function(){return Mo},AntdSchemaComponentProvider:function(){return vo},AppendsTreeSelect:function(){return lr},AssignedFieldValues:function(){return w.eY},AssociationField:function(){return aa},AssociationFieldMode:function(){return Oo},AssociationFieldModeProvider:function(){return $o},AssociationSelect:function(){return Fi},AttachmentList:function(){return Cr.fU},AutoComplete:function(){return as},BackButtonUsedInSubPage:function(){return Wo.M},Block:function(){return Rs},BlockItem:function(){return Ia.jY},BlockItemCard:function(){return Ia.Pu},ButtonEditor:function(){return w.C1},CardItem:function(){return ls},Cascader:function(){return cs},Checkbox:function(){return va},CollectionSelect:function(){return ps},ColorPicker:function(){return _s},ColorSelect:function(){return Ps},Cron:function(){return Ri},CronSet:function(){return Ds},DataSourceCollectionCascader:function(){return hs},DataSourceSelect:function(){return fs},DateFormatCom:function(){return Hi.W},DatePicker:function(){return pa.Mt},DatePickerProvider:function(){return pa.iN},Details:function(){return Ms},DetailsDesigner:function(){return Se},Divider:function(){return ku},EditComponent:function(){return fe.Fy},EditDefaultValue:function(){return fe.Ni},EditDescription:function(){return fe.q8},EditOperator:function(){return fe.HG},EditPattern:function(){return fe.QT},EditRequired:function(){return fe.JE},EditSortField:function(){return Dl},EditTitle:function(){return fe.$w},EditTitleField:function(){return fe.nB},EditTooltip:function(){return fe.Oc},EditValidationRules:function(){return fe.zd},Editable:function(){return yl},EllipsisWithTooltip:function(){return mr.BQ},ErrorFallback:function(){return er.H},Expand:function(){return ji},ExpiresRadio:function(){return Hi.D},Filter:function(){return Gn.wn},FilterAction:function(){return Gn.Gz},FilterActionContext:function(){return Gn.tJ},FilterContext:function(){return Gn.fo},FilterDynamicComponent:function(){return Gn.VT},FilterLogicContext:function(){return Gn.Xs},Form:function(){return J},FormDialog:function(){return ml.D},FormField:function(){return Uo},FormItem:function(){return fe.xJ},FormV2:function(){return Pn},G2Plot:function(){return Li},G2PlotRenderer:function(){return Bi},Grid:function(){return fa.rj},GridCard:function(){return vi},GridRowContext:function(){return fa.jg},HTMLEncode:function(){return mr.gs},IconPicker:function(){return Vs},Input:function(){return mr.II},InputNumber:function(){return fl},InputReadPretty:function(){return mr.mX},InputRecordPicker:function(){return vr.zD},Json:function(){return mr.Ph},List:function(){return pi},Markdown:function(){return gl},MarkdownReadPretty:function(){return Cl},Menu:function(){return ha},NanoIDInput:function(){return zu},Page:function(){return la},PagePopups:function(){return An.d9},PageTabs:function(){return ja},Pagination:function(){return mu},Password:function(){return pu},Percent:function(){return fu},PopupSettingsProvider:function(){return to.D},Preview:function(){return hu.M},QuickEdit:function(){return Cu},Radio:function(){return zi},ReadPretty:function(){return mr.iV},ReadPrettyRecordPicker:function(){return vr.OD},RecordPicker:function(){return vr.lb},RecordPickerContext:function(){return vr.b7},RecordPickerProvider:function(){return vr.sU},RefreshDataBlockRequest:function(){return w.x1},RemoteSelect:function(){return ct},RemoveButton:function(){return w.xZ},RemoveConditionContext:function(){return Gn.Iu},RequestSettings:function(){return w.Mk},RichText:function(){return xu},SecondConFirm:function(){return w.y0},Select:function(){return dn},SkipValidation:function(){return w.co},Space:function(){return bu},StablePopover:function(){return ht.q},Table:function(){return Qr},TableBlockDesigner:function(){return Ru},TableField:function(){return Ml},TableSelectorDesigner:function(){return Bu},TableV2:function(){return ca},Tabs:function(){return Ga},TabsContextProvider:function(){return or.c},Templates:function(){return Ie},TestDesigner:function(){return Ia.L3},TimePicker:function(){return Gi},TreeSelect:function(){return $u},UnixTimestamp:function(){return Vu},Upload:function(){return Cr.gq},Uploader:function(){return Cr.Qm},Variable:function(){return Ha._w},VariableScopeProvider:function(){return Ha.rj},WorkflowConfig:function(){return w.Fj},actionSettings:function(){return w.SL},actionSettingsItems:function(){return w.sB},allowAddNew:function(){return fe.iT},attachmentFileTypes:function(){return Cr.BD},defaultFieldNames:function(){return tt},fetchTemplateData:function(){return rt},filterFormItemSettings:function(){return fe.$9},findByUid:function(){return fi},findKeysByUid:function(){return ka},findMenuItem:function(){return Wi},formDetailsSettings:function(){return To},formItemSettings:function(){return fe.Of},formSettings:function(){return so},formV1Settings:function(){return q},genStyleHook:function(){return dt.l6},getCurrentOptions:function(){return Ut},getDatePickerLabels:function(){return vr.C$},getDateRanges:function(){return Gr.SE},getLabelFormatValue:function(){return vr.cN},getPopupPathFromParams:function(){return an.NC},getStoredPopupContext:function(){return an.XQ},handleDateChangeOnForm:function(){return Gr.MD},inferPickerType:function(){return Gr.CE},isBulkEditAction:function(){return w.vU},isFileCollection:function(){return fe.ZZ},isMobile:function(){return Gr.tq},isShowFilePicker:function(){return vr.el},isTabPage:function(){return xt},mapDatePicker:function(){return Gr.LP},mapRangePicker:function(){return Gr.fY},mapTimeFormat:function(){return wi},moment2str:function(){return Gr.w_},navigateToTab:function(){return Ct},pageSettings:function(){return Yt},pageTabSettings:function(){return Eo},readPrettyFormSettings:function(){return Fo},removeNullCondition:function(){return Gn.Wm},storePopupContext:function(){return an.hK},useActionBarContext:function(){return w.DU},useActionContext:function(){return w.XC},useAssociationFieldContext:function(){return Jo.Ky},useAssociationFieldModeContext:function(){return Ko},useBackButton:function(){return Wo.K},useCloseAction:function(){return w.p2},useColumnSchema:function(){return El.z9},useCurrentPopupContext:function(){return An.Zm},useDatePickerContext:function(){return pa.P1},useDownloadLogs:function(){return er.y},useEnsureOperatorsValid:function(){return fe.Zd},useFieldMode:function(){return fe.b},useFieldNames:function(){return vr.Xd},useFilterActionProps:function(){return Gn.PL},useFilterFieldOptions:function(){return Gn.V8},useFilterFieldProps:function(){return Gn.tM},useFilterOptions:function(){return Gn.xQ},useFormDataTemplates:function(){return Fe},useGetAriaLabelOfAction:function(){return w.HS},useGetAriaLabelOfDrawer:function(){return w.vB},useGetAriaLabelOfModal:function(){return w.QY},useGetAriaLabelOfPopover:function(){return w.t9},useGetFilterFieldOptions:function(){return Gn.Kg},useGetFilterOptions:function(){return Gn.aJ},useGridContext:function(){return fa.n1},useGridRowContext:function(){return fa.Di},useIsAddNewForm:function(){return fe.l1},useIsAssociationField:function(){return fe.w5},useIsFieldReadPretty:function(){return fe.p3},useIsFileField:function(){return fe.G5},useIsFormReadPretty:function(){return fe.xj},useIsSelectFieldMode:function(){return fe.rx},useLabelUiSchema:function(){return vr.Il},useLinkageAction:function(){return w.zC},usePopupSettings:function(){return to.a},useStyles:function(){return du.y},useTabsContext:function(){return or.g},useTitleFieldOptions:function(){return fe.eT},useUploadStyles:function(){return Cr.$S},useValidateSchema:function(){return fe.q4},useVariableScope:function(){return Ha.ym},useZIndexContext:function(){return w.uq},withSearchParams:function(){return an.Q3},zIndexContext:function(){return w.K5}});var u=e(15009),k=e.n(u),c=e(99289),E=e.n(c),x=e(12444),K=e.n(x),o=e(72004),N=e.n(o),m=e(31996),y=e.n(m),f=e(26037),M=e.n(f),n=e(97857),r=e.n(n),d=e(67294),h=e(31601),C=e(14896),D=e(70993),R=e(89127),Z=function(U){return E()(k()().mark(function ce(){var me,ge;return k()().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.prev=0,Me.next=3,this.api.request(U);case 3:return ge=Me.sent,Me.abrupt("return",ge==null||(me=ge.data)===null||me===void 0?void 0:me.data);case 7:return Me.prev=7,Me.t0=Me.catch(0),Me.abrupt("return",[]);case 10:case"end":return Me.stop()}},ce,this,[[0,7]])}))},w=e(76157),$=e(13769),p=e.n($),A=e(5552),g=e(86201),i=e(80844),G=e(28459),j=e(57953),O=e(12174),l=e(6145),v=e(57105),a=e(83880),S=e(64016),V=e(15195),P=e(23461),t=e(85893),I=["form","children"],B=["form","children","disabled"],z=["request","effects","initialValue","useValues"],L=function(U){var ce=U.form,me=U.children,ge=p()(U,I),be=(0,i.useField)(),Me=(0,i.useFieldSchema)(),Le=(0,nt.lI)(ce.createVoidField(r()(r()({},be.props),{},{basePath:""})));return(0,t.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(i.FormContext.Provider,{value:ce,children:(0,t.jsx)(A.FormLayout,r()(r()({layout:"vertical"},ge),{},{children:(0,t.jsx)(v.sq,{basePath:Le.address,schema:Me,onlyRenderProperties:!0})}))})})},b=function(U){return U.children},F=function(U){var ce=U.form,me=U.children,ge=U.disabled,be=p()(U,B),Me=(0,i.useField)(),Le=(0,i.useFieldSchema)(),We=(0,nt.lI)(ce.createVoidField(r()(r()({},Me.props),{},{basePath:""}))),Xe=(0,nt.Co)(Le["x-component"],b);return(0,d.useEffect)(function(){ce.disabled=ge||Me.disabled},[ge,Me.disabled]),(0,t.jsx)(G.ZP,{componentDisabled:ge,children:(0,t.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(i.FormContext.Provider,{value:ce,children:(0,t.jsx)(A.FormLayout,r()(r()({layout:"vertical"},be),{},{children:(0,t.jsx)(i.FieldContext.Provider,{value:We,children:(0,t.jsx)(Xe,r()(r()({},Me.componentProps),{},{children:(0,t.jsx)(v.sq,{basePath:We.address,schema:Le,onlyRenderProperties:!0})}))})}))})})})},ee=function(U){var ce=U.request,me=U.initialValue;return ce||function(){return Promise.resolve({data:me})}},re=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,O.QT)(ee(ce),U)},oe=(0,d.createContext)(null);oe.displayName="FormBlockContext";var J=(0,i.observer)(function(Q){var U=Q.request,ce=Q.effects,me=Q.initialValue,ge=Q.useValues,be=ge===void 0?re:ge,Me=p()(Q,z),Le=(0,i.useFieldSchema)(),We=(0,i.useField)(),Xe=(0,d.useMemo)(function(){return(0,g.createForm)({effects:ce})},[]),He=be({uid:Le["x-uid"],onSuccess:function(st){return E()(k()().mark(function Mt(){return k()().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,Xe.reset();case 2:Xe.setValues(st==null?void 0:st.data),Xe.setInitialValues(st==null?void 0:st.data);case 4:case"end":return ut.stop()}},Mt)}))()}},Q),et=(0,d.useContext)(oe);return(0,t.jsx)(oe.Provider,{value:{parent:et,form:Xe,result:He,field:We,fieldSchema:Le},children:(0,t.jsx)(j.Z,{spinning:(He==null?void 0:He.loading)||!1,children:Le["x-decorator"]==="Form"?(0,t.jsx)(F,r()({form:Xe},Me)):(0,t.jsx)(L,r()({form:Xe},Me))})})},{displayName:"Form"});J.Designer=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)(),be=(0,P.rE)(),Me=be.componentNamePrefix;return(0,t.jsxs)(a.aN,{template:ge,title:me||ce,children:[(0,t.jsx)(S.G,{componentName:"".concat(Me,"Form"),collectionName:ce}),(0,t.jsx)(a.Z5,{}),(0,t.jsx)(a.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var W=e(5537),q=new W.F5({name:"FormV1Settings",items:[{name:"template",Component:S.G,useComponentProps:function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=(0,P.rE)(),ge=me.componentNamePrefix;return{componentName:"".concat(ge,"Form"),collectionName:ce}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),fe=e(54801),ne=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"FormSettings",template:ge,title:me||ce})},pe=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"ReadPrettyFormSettings",template:ge,title:me||ce})},Se=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"FormDetailsSettings",template:ge,title:me||ce})},_e=function(){var U=(0,l.useCollection_deprecated)(),ce=U.name,me=U.title,ge=(0,V.zy)();return(0,t.jsx)(a.aN,{schemaSettings:"blockSettings:filterForm",template:ge,title:me||ce})},de=e(7340),xe=e(15503),te=e(83335),X=e(68230),ve=e(68400),ie=e.n(ve),Y=e(97133),ue=e(84327),Ce=e(9361),Ee=e(67174),Oe=e(31019),Re=e(39742),Ae=e(22229),Te=e(43321),Pe=e(64910),ye=e(9780),le=e(3192),T=e(94804),he=e(18686),De=e(5574),ae=e.n(De),Ke=e(84157),Ue=e(42075),Je=e(34041),qe=e(96486),ft=e.n(qe),_t=e(26793),$e=e(32268),dt=e(46917),at=e(9783),ke=e.n(at),wt=e(52677),Zt=e.n(wt),yt=e(50888),Gt=e(66309),xn=e(96074),un=e(27484),bn=e.n(un),Wn=e(44990),Tt=e(8341),Rt=e(87714),nt=e(84577),Ot=e(4340),Xt=e(97937),tn=e(32983),nn=e(67668),En=e(58812),Ln=e(96695),zn=e.n(Ln),Xn=e(19632),$t=e.n(Xn),tt={label:"label",value:"value",color:"color",options:"children"};function Pt(Q,U){var ce=[];if(!Array.isArray(Q))return ce;for(var me=0;me<Q.length;me++){var ge=Q[me][U.options];Array.isArray(ge)&&ce.push.apply(ce,$t()(Pt(ge,U))),ce.push(r()({},Q[me]))}return ce}function Ft(Q,U,ce){if(!Q)return[];var me=[],ge=zn()(ce),be;try{var Me=function(){var We=be.value,Xe=Q.find(function(He){return He[U.value]==We})||{value:We,label:We&&We.toString()};me.push(Xe)};for(ge.s();!(be=ge.n()).done;)Me()}catch(Le){ge.e(Le)}finally{ge.f()}return me}function Ut(Q,U,ce){var me=Pt(U,ce),ge=(0,qe.castArray)(Q).map(function(be){return(0,Ke.isPlainObject)(be)?be[ce.value]:be});return Ft(me,ce,ge)}var gt=e(25145),Et=(0,i.observer)(function(Q){var U=(0,d.useState)(!0),ce=ae()(U,2),me=ce[0],ge=ce[1],be=(0,d.useState)([]),Me=ae()(be,2),Le=Me[0],We=Me[1],Xe=(0,i.useField)(),He=(0,nn.Hy)();return(0,d.useEffect)(function(){var et,St=r()(r()({},tt),Q.fieldNames),st=Xe.dataSource||Q.options||(He==null?void 0:He.uiSchema.enum)||[],Mt=Ut(Xe.value,st,St);if(!(!(0,ue.isValid)(Q.value)&&!Mt.length)&&!((0,g.isArrayField)(Xe)&&(Xe==null||(et=Xe.value)===null||et===void 0?void 0:et.length)===0)){var bt=Xe.value!==null&&Mt.map(function(ut,Bt){return(0,t.jsx)(Gt.Z,{color:ut[St.color],icon:ut.icon,children:ut[St.label]},Bt)});We(bt),ge(!1)}},[He==null?void 0:He.uiSchema.enum,Xe,Xe.dataSource,Xe.value,Q.fieldNames,Q.options,Q.value]),me?null:(0,t.jsx)(En.B,{ellipsis:Q.ellipsis,children:Le})},{displayName:"SelectReadPretty"}),Lt=(0,gt.u)(Et),Vt=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],kt=["objectValue","loading","value","rawOptions","defaultValue"],Wt=function(U){return!(0,ue.isValid)(U)||Zt()(U)==="object"&&Object.keys(U).length===0},on=function(U){var ce=U.value,me=U.options,ge=U.onChange,be=U.fieldNames,Me=U.mode,Le=U.loading,We=U.rawOptions,Xe=U.defaultValue,He=p()(U,Vt),et=function(st){var Mt;if(!Wt(st)){var bt=(0,ue.toArr)(st).filter(function(Bt){return Bt}).map(function(Bt){return(0,Ke.isPlainObject)(Bt)?Bt[be.value]:Bt}),ut=(Mt=Ut(bt,me,be))===null||Mt===void 0?void 0:Mt.map(function(Bt){return{label:Bt[be.label],value:Bt[be.value]}});return["tags","multiple"].includes(Me)||U.multiple?ut:ut.shift()}};return(0,t.jsx)(Je.default,r()({role:"button","data-testid":"select-object-".concat(Me||"single"),value:et(ce),defaultValue:et(Xe),allowClear:{clearIcon:(0,t.jsx)(Ot.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:Le?(0,t.jsx)(j.Z,{}):(0,t.jsx)(tn.Z,{image:tn.Z.PRESENTED_IMAGE_SIMPLE}),options:me,fieldNames:be,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(st,Mt){var bt;return((bt=Mt==null?void 0:Mt[be.label||"label"])!==null&&bt!==void 0?bt:"").includes(st)},filterSort:function(st,Mt){var bt,ut;return((bt=st==null?void 0:st[be.label||"label"])!==null&&bt!==void 0?bt:"").toLowerCase().localeCompare(((ut=Mt==null?void 0:Mt[be.label||"label"])!==null&&ut!==void 0?ut:"").toLowerCase())},onChange:function(st){var Mt=Ut((0,ue.toArr)(st).map(function(bt){return bt.value}),We||me,be);["tags","multiple"].includes(Me)||U.multiple?ge==null||ge(Mt):ge==null||ge(Mt.shift()||null)},mode:Me,tagRender:function(st){return(0,t.jsx)(Gt.Z,r()(r()({role:"button","aria-label":st.label,closeIcon:(0,t.jsx)(Xt.Z,{role:"button","aria-label":"icon-close-tag"})},st),{},{children:st.label}))},maxTagCount:"responsive"},He))},rn=function(U,ce){var me;return((me=ce==null?void 0:ce.label)!==null&&me!==void 0?me:"").toLowerCase().includes((U||"").toLowerCase())},gn=(0,i.connect)(function(Q){var U=Q.objectValue,ce=Q.loading,me=Q.value,ge=Q.rawOptions,be=Q.defaultValue,Me=p()(Q,kt),Le=(0,nt.eJ)(),We=Q.multiple?"multiple":Q.mode;if(We&&!["multiple","tags"].includes(We)&&(We=void 0),U)return(0,t.jsx)(on,r()(r()({rawOptions:ge},Me),{},{defaultValue:be,value:me,mode:We,loading:ce}));var Xe=function(et){return["tags","multiple"].includes(Q.mode)||Q.multiple?et?(0,ue.toArr)(et):void 0:et};return(0,t.jsx)(Je.default,r()(r()({role:"button","data-testid":"select-".concat(We||"single"),showSearch:!0,filterOption:rn,allowClear:{clearIcon:(0,t.jsx)(Ot.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:ce?(0,t.jsx)(j.Z,{}):(0,t.jsx)(tn.Z,{image:tn.Z.PRESENTED_IMAGE_SIMPLE}),value:Xe(me),defaultValue:Xe(be),tagRender:function(et){return(0,t.jsx)(Gt.Z,r()(r()({role:"button","aria-label":et.label,closeIcon:(0,t.jsx)(Xt.Z,{role:"button","aria-label":"icon-close-tag"})},et),{},{children:et.label}))}},Le(Me)),{},{onChange:function(et){var St;(St=Q.onChange)===null||St===void 0||St.call(Q,et===void 0?null:et)},mode:We,maxTagCount:"responsive"}))},(0,i.mapProps)({dataSource:"options"},function(Q,U){return r()(r()({},Q),{},{fieldNames:r()(r()({},tt),Q.fieldNames),suffixIcon:U!=null&&U.loading||U!=null&&U.validating?(0,t.jsx)(yt.Z,{}):Q.suffixIcon})}),(0,i.mapReadPretty)(Lt)),dn=gn;dn.ReadPretty=Lt;var Dn=dn,On=e(36586),en=function(U,ce){return(0,qe.castArray)(U).filter(function(me){return me!=null}).map(function(me){return Zt()(me)==="object"?me[ce.value]:me})},ln=(0,i.observer)(function(Q){var U=r()(r()({},tt),Q.fieldNames),ce=(0,i.useField)(),me=(0,i.useFieldSchema)(),ge=(0,On.a)(),be=(0,w.XC)(),Me=be.snapshot,Le=(0,O.QT)(Me?E()(k()().mark(function Xe(){return k()().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.abrupt("return",{data:ge[me.name]});case 1:case"end":return et.stop()}},Xe)})):r()(r()({action:"list"},Q.service),{},{params:{paginate:!1,filter:ke()({},U.value,{$in:en(ce.value,U)})}}),{refreshDeps:[Q.service,ce.value]}),We=Le.data;return(0,t.jsx)(dn.ReadPretty,r()(r()({},Q),{},{options:We==null?void 0:We.data}))},{displayName:"ReadPretty"}),hn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],Dt="N/A",Ye=(0,xe.t)((0,i.connect)(function(Q){var U,ce,me=Q.fieldNames,ge=me===void 0?{}:me,be=Q.service,Me=be===void 0?{}:be,Le=Q.wait,We=Le===void 0?300:Le,Xe=Q.value,He=Q.defaultValue,et=Q.objectValue,St=Q.manual,st=St===void 0?!0:St,Mt=Q.mapOptions,bt=Q.targetField,ut=Q.CustomDropdownRender,Bt=Q.optionFilter,It=Q.dataSource,fn=Q.toOptionsItem,_n=fn===void 0?function(Dr){return Dr}:fn,yn=Q.popupMatchSelectWidth,Kn=yn===void 0?!1:yn,zt=p()(Q,hn),pn=(0,Wn.FC)(),Vn=(0,Tt.FE)(It||pn),Zn=(0,d.useState)(!1),Hn=ae()(Zn,2),Tn=Hn[0],kn=Hn[1],Rn=(0,d.useRef)(!1),ho=(0,i.useFieldSchema)(),Ao=((U=ho["x-component-props"])===null||U===void 0?void 0:U.addMode)==="quickAdd",yo=(0,l.useCollection_deprecated)(),bo=yo.getField,mo=(0,d.useRef)(null),$n=(0,l.useCollectionManager_deprecated)(),jn=$n.getCollectionJoinField,Jn=$n.getInterface,po=ho["x-collection-field"]||ho.name,oo=bo(po)||jn(po),io=bt||(oo==null?void 0:oo.target)&&(ge==null?void 0:ge.label)&&jn("".concat(oo.target,".").concat(ge.label)),Do=(0,d.useMemo)(function(){if(io!=null&&io.interface){var Dr,Xo=Jn(io.interface),Br=(Xo==null||(Dr=Xo.filterable)===null||Dr===void 0?void 0:Dr.operators[0].value)||"$includes";return io.type==="string"?"$includes":Br}return"$includes"},[io]),fo=(0,nt.eJ)(),So=(0,d.useCallback)(function(Dr){try{return Dr.filter(function(Xo){return["number","string"].includes(Zt()(Xo[ge.value]))||!Xo[ge.value]}).map(function(Xo){var Br,Lr,Ar=fo(Xo[ge.label]);if(io!=null&&(Br=io.uiSchema)!==null&&Br!==void 0&&Br.enum)if(Array.isArray(Ar))Ar=Ar.map(function(Ca,Za){var Ta=io.uiSchema.enum.find(function(Il){return Il.value===Ca});return Ta?(0,t.jsx)(Gt.Z,{role:"button",color:Ta.color,style:{marginRight:3},children:(Ta==null?void 0:Ta.label)||Ca},Za):(0,t.jsx)(Gt.Z,{role:"button",children:Ca},Ca)}).reverse();else{var ra=io.uiSchema.enum.find(function(Ca){return Ca.value===Ar});ra&&(Ar=(0,t.jsx)(Gt.Z,{role:"button",color:ra.color,children:ra.label}))}if((io==null?void 0:io.type)==="date"&&(Ar=bn()(Ar).format("YYYY-MM-DD")),Mt){var ga;return Mt((ga={},ke()(ga,ge.label,Ar||Dt),ke()(ga,ge.value,Xo[ge.value]),ga))}return r()(r()({},Xo),{},(Lr={},ke()(Lr,ge.label,Ar||Dt),ke()(Lr,ge.value,Xo[ge.value]),Lr))}).filter(Boolean)}catch(Xo){return console.error(Xo),Dr}},[io==null?void 0:io.uiSchema,ge]),Go=(0,O.QT)(r()(r()({action:"list"},Me),{},{headers:Vn,params:r()(r()({pageSize:200},Me==null?void 0:Me.params),{},{filter:Me==null||(ce=Me.params)===null||ce===void 0?void 0:ce.filter})}),r()({manual:st,debounceWait:We},Me.defaultParams?{defaultParams:[Me.defaultParams]}:{})),lo=Go.data,Lo=Go.run,Ho=Go.loading,nr=(0,d.useMemo)(function(){return JSON.stringify({service:Me,fieldNames:ge})},[Me,ge]),Pr=(0,d.useCallback)(function(){return mo.current&&ut?(0,t.jsx)(ut,{search:mo.current,callBack:function(){mo.current=null,kn(!1)}}):null},[mo.current]);(0,d.useEffect)(function(){Rn.current&&Lo()},[nr]);var na=function(){var Dr=E()(k()().mark(function Xo(Br){var Lr;return k()().wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:Lo({filter:(0,Rt.EO)([Br?ke()({},ge.label,ke()({},Do,Br)):{},Me==null||(Lr=Me.params)===null||Lr===void 0?void 0:Lr.filter])}),mo.current=Br;case 2:case"end":return ra.stop()}},Xo)}));return function(Br){return Dr.apply(this,arguments)}}(),oa=(0,d.useMemo)(function(){var Dr,Xo=Xe||He;if(!(lo!=null&&(Dr=lo.data)!==null&&Dr!==void 0&&Dr.length))return Xo!=null?Array.isArray(Xo)?Xo:[Xo]:[];var Br=Xo!=null&&(Array.isArray(Xo)?Xo.map(function(Ar){return r()(r()({},Ar),{},ke()({},ge.value,Ar[ge.value]||Ar))}):[r()(r()({},Xo),{},ke()({},ge.value,Xo[ge.value]||Xo))])||[],Lr=typeof Bt=="function"?lo.data.filter(Bt):lo.data;return(0,qe.uniqBy)(Lr.concat(Br??[]),ge.value)},[Xe,He,lo==null?void 0:lo.data,ge.value,Bt]),Hr=function(Xo){kn(Xo),mo.current=null,Xo&&Lo(),Rn.current=!0};return(0,t.jsx)(dn,r()(r()({open:Tn,popupMatchSelectWidth:Kn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:ge,onSearch:na,onDropdownVisibleChange:Hr,objectValue:et,value:Xe,defaultValue:He},zt),{},{loading:lo?Ho:!0,options:_n(So(oa)),rawOptions:oa,dropdownRender:function(Xo){var Br=oa.some(function(Lr){return Lr[ge.label]===mo.current});return(0,t.jsx)(t.Fragment,{children:Ao?(0,t.jsxs)(t.Fragment,{children:[!((lo==null?void 0:lo.data.length)===0&&mo!==null&&mo!==void 0&&mo.current)&&Xo,(lo==null?void 0:lo.data.length)>0&&(mo==null?void 0:mo.current)&&!Br&&(0,t.jsx)(xn.Z,{style:{margin:0}}),!Br&&(0,t.jsx)(Pr,{})]}):Xo})}}))},(0,i.mapProps)({dataSource:"options"},function(Q,U){var ce,me=(0,i.useFieldSchema)();return r()(r()({},Q),{},{fieldNames:r()(r()(r()(r()({},tt),Q.fieldNames),U.componentProps.fieldNames),(ce=me["x-component-props"])===null||ce===void 0?void 0:ce.fieldNames),suffixIcon:U!=null&&U.loading||U!=null&&U.validating?(0,t.jsx)(yt.Z,{}):Q.suffixIcon})}),(0,i.mapReadPretty)(ln))),ct=Ye;ct.ReadPretty=ln;var Qe=null,Fe=function(){var U=(0,i.useFieldSchema)(),ce=(0,_t.$)(),me=ce.t,ge=(0,de.bz)(),be=ge.duplicateData,Me=(0,l.useCollectionManager_deprecated)(),Le=Me.getCollectionJoinField;if(be)return be;var We=Ze(U),Xe=We.items,He=Xe===void 0?[]:Xe,et=We.display,St=et===void 0?!0:et;He.forEach(function(bt){try{var ut;bt.fields=(ut=bt.fields)===null||ut===void 0?void 0:ut.map(function(Bt){var It=Le("".concat(bt.collection,".").concat(Bt));return It?Bt:""}).filter(Boolean)}catch(Bt){(0,Ke.error)(Bt),bt.fields=[]}});var st=[{key:"none",title:me("None")}].concat(He.map(function(bt,ut){return r()(r()({key:ut},bt),{},{isLeaf:bt.dataId!==null&&bt.dataId!==void 0,titleCollectionField:(bt==null?void 0:bt.titleField)&&Le("".concat(bt.collection,".").concat(bt.titleField))})})),Mt=He.find(function(bt){return bt.default});return{templates:st,display:St,defaultTemplate:Mt,enabled:He.length>0&&He.every(function(bt){return bt.dataId||bt.dataScope})}},Ie=d.memo(function(Q){var U=Q.style,ce=U===void 0?{}:U,me=Q.form,ge=(0,dt.dQ)(),be=ge.token,Me=Fe(),Le=Me.templates,We=Me.display,Xe=Me.enabled,He=Me.defaultTemplate,et=(0,l.useCollectionManager_deprecated)(),St=et.getCollectionJoinField,st=(0,$e.ss)(Le),Mt=(0,d.useState)((He==null?void 0:He.key)||"none"),bt=ae()(Mt,2),ut=bt[0],Bt=bt[1],It=(0,d.useState)(null),fn=ae()(It,2),_n=fn[0],yn=fn[1],Kn=(0,O.LY)(),zt=(0,_t.$)(),pn=zt.t,Vn=(0,T.FC)(),Zn=(0,T.on)(Vn);(0,d.useEffect)(function(){Xe&&He&&me&&(me.__template=!0,He.key==="duplicate"&&Rn(He.dataId,He,Zn))},[]),(0,d.useEffect)(function(){st!=null&&st.some(function(Ao){return Ao.key===ut})||kn("none")},[st]);var Hn=(0,d.useMemo)(function(){return r()({display:"flex",alignItems:"center",backgroundColor:be.colorFillAlter,padding:be.padding},ce)},[ce,be.colorFillAlter]),Tn=(0,d.useMemo)(function(){return{fontSize:be.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:be.marginXS}},[be.fontSize,be.marginXS]),kn=(0,d.useCallback)(function(){var Ao=E()(k()().mark(function yo(bo){return k()().wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:Bt(bo),yn(null),me==null||me.reset();case 3:case"end":return $n.stop()}},yo)}));return function(yo){return Ao.apply(this,arguments)}}(),[]),Rn=(0,d.useCallback)(function(){var Ao=E()(k()().mark(function yo(bo,mo,$n){var jn;return k()().wrap(function(po){for(;;)switch(po.prev=po.next){case 0:jn=r()(r()({},mo),{},{dataId:bo}),yn(mo),rt(Kn,jn,$n).then(function(oo){return me&&oo&&(me.reset(),me.__template=!0,(0,Ke.forEach)(oo,function(io,Do){if(io){var fo;me.values[Do]=io,me==null||(fo=me.setInitialValuesIn)===null||fo===void 0||fo.call(me,Do,io)}})),oo}).catch(function(oo){console.error(oo)});case 3:case"end":return po.stop()}},yo)}));return function(yo,bo,mo){return Ao.apply(this,arguments)}}(),[]);if(!Xe||!We)return null;var ho=st==null?void 0:st.find(function(Ao){return Ao.key===ut});return(0,t.jsx)("div",{style:Hn,children:(0,t.jsxs)(Ue.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:Tn,children:[pn("Data template"),": "]}),(0,t.jsx)(Je.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:st,fieldNames:{label:"title",value:"key"},value:ut,onChange:kn}),ut!=="none"&&ho&&(0,t.jsx)(ct,{style:{width:220},fieldNames:{label:ho==null?void 0:ho.titleField,value:"id"},target:ho==null?void 0:ho.collection,value:_n,objectValue:!0,service:{resource:ho==null?void 0:ho.collection,params:{filter:ho==null?void 0:ho.dataScope}},onChange:function(yo){return Rn(yo==null?void 0:yo.id,r()(r()({},yo),ho),Zn)},targetField:St("".concat(ho==null?void 0:ho.collection,".").concat(ho.titleField))})]})})});Ie.displayName="NocoBaseFormDataTemplates";function Ze(Q){var U=(0,de.Fi)(Q);return U?ft().cloneDeep(U["x-data-templates"])||{}:{}}function rt(Q,U,ce){return mt.apply(this,arguments)}function mt(){return mt=E()(k()().mark(function Q(U,ce,me){return k()().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!(ce.fields.length===0||!ce.dataId)){be.next=2;break}return be.abrupt("return");case 2:return be.abrupt("return",U.resource(ce.collection,void 0,me).get({filterByTk:ce.dataId,fields:ce.fields,isTemplate:!0}).then(function(Me){var Le;return(Le=Me.data)===null||Le===void 0?void 0:Le.data}));case 3:case"end":return be.stop()}},Q)})),mt.apply(this,arguments)}var we=function(){var U,ce,me=(0,he.aZ)(),ge=(0,i.useFieldSchema)(),be=Ce.Z.useToken(),Me=be.token,Le=(0,nt.ng)(),We=Le.designable,Xe=(0,le.gp)()||{},He=Xe.heightProps,et=He||{},St=et.title,st=Fe(),Mt=st.display,bt=st.enabled,ut=ge.reduceProperties(function(Tn,kn){return kn["x-component"]==="ActionBar"?kn:Tn}),Bt=Object.keys((ut==null?void 0:ut.properties)||{}).length>0,It=ge==null||(U=ge.parent)===null||U===void 0||(U=U["x-decorator"])===null||U===void 0||(ce=U.includes)===null||ce===void 0?void 0:ce.call(U,"FormBlockProvider"),fn=Bt||We?Me.controlHeight+(It?1:2)*Me.marginLG:Me.marginLG,_n=St?Me.fontSizeLG*Me.lineHeightLG+Me.padding*2-1:0,yn=(0,T.xQ)(),Kn=(yn==null?void 0:yn.meta)||{},zt=Kn.count,pn=Kn.pageSize,Vn=zt>pn,Zn=Vn?Me.controlHeightSM+1*Me.paddingLG:0,Hn=Mt&&bt?Me.controlHeight+2*Me.padding+Me.margin:0;return me-fn-Me.paddingLG-_n-Zn-Hn},Ne,Be,Ge=["form","children"],lt=["form","children","disabled"],vt=["form","disabled"],ot=function(U){var ce=U.form,me=U.children,ge=p()(U,Ge),be=(0,i.useField)(),Me=(0,i.useFieldSchema)(),Le=Ee.Gn===null||Ee.Gn===void 0?void 0:(0,Ee.Gn)(Me),We=(0,nt.lI)(ce.createVoidField(r()(r()({},be.props),{},{basePath:""}))),Xe=we(),He=Ce.Z.useToken(),et=He.token,St=(Le==null?void 0:Le["x-component-props"])||{},st=St.layout,Mt=st===void 0?"vertical":st,bt=St.labelAlign,ut=bt===void 0?"left":bt,Bt=St.labelWidth,It=Bt===void 0?120:Bt,fn=St.labelWrap,_n=fn===void 0?!0:fn;return(0,t.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(i.FormContext.Provider,{value:ce,children:(0,t.jsx)(A.FormLayout,r()(r()({layout:Mt},ge),{},{labelAlign:ut,labelWidth:Mt==="horizontal"?It:null,labelWrap:_n,children:(0,t.jsx)("div",{className:(0,Y.css)(Ne||(Ne=ie()([`
756
756
  .nb-grid-container {
757
757
  height: `,`;
758
758
  overflow-y: auto;