@nocobase/app 1.6.0-beta.13 → 1.6.0-beta.14

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#`+Ke);return u.requireType=Ke,u.requireMo
114
114
  .ant-formily-item {
115
115
  margin-bottom: 0;
116
116
  }
117
- `])))},"x-component":o,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},E=function(){for(var w={},L=arguments.length,f=new Array(L),y=0;y<L;y++)f[y]=arguments[y];for(var p=0,P=f;p<P.length;p++){var m=P[p];R[m]&&(w[m]=R[m])}return w}},44605:function(){},53772:function(){},99899:function(Ke,ae,e){"use strict";e.d(ae,{U:function(){return H},l:function(){return u}});function H(k){var i;if(!k)return[];var g=k.split(":"),C=g.pop(),T=(i=g[0])!==null&&i!==void 0?i:"main";return[T,C]}function u(k,i){return!k||k==="main"?i:"".concat(k,":").concat(i)}},5346:function(Ke,ae,e){"use strict";e.d(ae,{T:function(){return C}});var H=e(5574),u=e.n(H),k=e(34041),i=e(67294),g=e(85893);function C(T){var r=T.title,N=T.defaultValue,v=T.onChange,A=T.options,h=T.fieldNames,M=(0,i.useState)(!1),n=u()(M,2),x=n[0],K=n[1],o=(0,i.useRef)(null);return(0,g.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(R){R.stopPropagation(),K(function(E){return!E})},onMouseLeave:function(){o.current=setTimeout(function(){K(!1)},200)},children:[r,(0,g.jsx)(k.default,{open:x,"data-testid":"select-".concat(r),popupMatchSelectWidth:!1,bordered:!1,defaultValue:N,onChange:v,popupClassName:"select-popup-".concat(r.replaceAll(" ","-")),fieldNames:h,options:A,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(o.current)}})]})}},7737:function(Ke,ae,e){"use strict";e.d(ae,{T:function(){return H.T},W:function(){return u.W}});var H=e(5346),u=e(56318)},56318:function(Ke,ae,e){"use strict";e.d(ae,{W:function(){return g}});var H=e(80844),u=e(67668),k=e(38752),i=e(81230);function g(){var C,T,r,N,v=(0,i.z9)(),A=v.fieldSchema,h=v.collectionField,M=(0,H.useField)(),n=(0,k.G5)(),x=(0,H.useFieldSchema)(),K=(0,u.Hy)(),o=A||x,a=h||K,R={AssociationField:"Select"},E=(o==null||(C=o["x-component-props"])===null||C===void 0?void 0:C.mode)||(M==null||(T=M.componentProps)===null||T===void 0?void 0:T.mode)||(n?"FileManager":"")||(o==null||(r=o["x-component-props"])===null||r===void 0?void 0:r.component)||(a==null||(N=a.uiSchema)===null||N===void 0?void 0:N["x-component"]);return R[E]||E}},52967:function(Ke,ae,e){"use strict";e.d(ae,{e:function(){return u}});var H=e(67294),u=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=(0,H.useRef)(0);return(0,H.useEffect)(function(){var C=function(r){var N=r.clientY,v=Math.max(N,window.innerHeight-N);g.current=v};return window.addEventListener("mousemove",C),function(){window.removeEventListener("mousemove",C)}},[]),(0,H.useMemo)(function(){return g.current-40},i)}},20085:function(Ke,ae,e){"use strict";e.d(ae,{O:function(){return C}});var H=e(10274),u=e(67294),k=e(69962),i=e(68230),g=function(r){var N=r.children,v=(0,i.d)(),A=v.token,h=A.colorFillTertiary,M=new H.C(A.colorFill).onBackground(A.colorFillSecondary).toHexShortString(),n=new H.C(A.colorFill).onBackground(A.colorFill).toHexShortString(),x=new H.C(A.colorFill).onBackground(A.colorFill).onBackground(A.colorFill).toHexShortString();return(0,u.useEffect)(function(){document.body.style.setProperty("--nb-spacing","".concat(A.marginLG,"px")),document.body.style.setProperty("--nb-designer-offset","".concat(A.marginXS,"px")),document.body.style.setProperty("--nb-header-height","".concat(A.sizeXXL-2,"px")),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--controlHeightLG","".concat(A.controlHeightLG,"px")),document.body.style.setProperty("--paddingContentVerticalSM","".concat(A.paddingContentVerticalSM,"px")),document.body.style.setProperty("--marginSM","".concat(A.marginSM,"px")),document.body.style.setProperty("--colorInfoBg",A.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",A.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",A.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",A.colorWarningBorder),document.body.style.setProperty("--colorText",A.colorText),document.body.style.setProperty("--colorPrimaryText",A.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",A.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",A.colorPrimaryTextHover),document.body.style.setProperty("--colorBgScrollTrack",h),document.body.style.setProperty("--colorBgScrollBar",M),document.body.style.setProperty("--colorBgScrollBarHover",n),document.body.style.setProperty("--colorBgScrollBarActive",x),document.body.style.setProperty("--colorSettings",A.colorSettings||k.uH.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",A.colorBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",A.colorBorderSettingsHover),document.body.style.setProperty("background-color",A.colorBgContainer)},[M,x,n,h,A.colorBgContainer,A.colorBgLayout,A.colorBgSettingsHover,A.colorBorderSettingsHover,A.colorInfoBg,A.colorInfoBorder,A.colorPrimaryText,A.colorPrimaryTextActive,A.colorPrimaryTextHover,A.colorSettings,A.colorText,A.colorWarningBg,A.colorWarningBorder,A.controlHeightLG,A.marginLG,A.marginSM,A.marginXS,A.paddingContentVerticalSM,A.sizeXXL]),N};g.displayName="CSSVariableProvider";var C=g},31959:function(Ke,ae,e){"use strict";e.d(ae,{S:function(){return M}});var H=e(97857),u=e.n(H),k=e(12444),i=e.n(k),g=e(72004),C=e.n(g),T=e(9783),r=e.n(T),N=e(96486),v=e.n(N),A=e(65375),h=e(84157),M=function(){function n(x){i()(this,n),r()(this,"name",void 0),r()(this,"group",void 0),r()(this,"title",void 0),r()(this,"description",void 0),r()(this,"order",void 0),r()(this,"default",void 0),r()(this,"sortable",void 0),r()(this,"availableTypes",void 0),r()(this,"supportDataSourceType",void 0),r()(this,"notSupportDataSourceType",void 0),r()(this,"hasDefaultValue",void 0),r()(this,"componentOptions",void 0),r()(this,"isAssociation",void 0),r()(this,"operators",void 0),r()(this,"properties",void 0),r()(this,"filterable",void 0),r()(this,"titleUsable",void 0),r()(this,"hidden",void 0),this.collectionFieldInterfaceManager=x}return C()(n,[{key:"addComponentOption",value:function(K){if(!this.componentOptions){var o,a;this.componentOptions=[];var R=(o=this.default)===null||o===void 0||(o=o.uiSchema)===null||o===void 0?void 0:o["x-component"],E=(a=this.default)===null||a===void 0||(a=a.uiSchema)===null||a===void 0?void 0:a["x-component-props"];if(R){var $,w=(($=this.default)===null||$===void 0||($=$.uiSchema)===null||$===void 0?void 0:$.type)||"string",L=(0,h.tval)(R.startsWith("Input")?(0,N.capitalize)(w):R.split(".").pop());this.componentOptions=[{label:L,value:R,useProps:function(){return E||{}}}]}}this.componentOptions.push(K)}},{key:"getConfigureFormProperties",value:function(){var K=this.hasDefaultValue?this.getDefaultValueProperty():{};return u()(u()({},(0,N.cloneDeep)(u()(u()({},A.defaultProps),this===null||this===void 0?void 0:this.properties))),K)}},{key:"getDefaultValueProperty",value:function(){var K,o;return{defaultValue:u()(u()(u()({},(0,N.cloneDeep)(this===null||this===void 0||(K=this.default)===null||K===void 0?void 0:K.uiSchema)),this===null||this===void 0||(o=this.properties)===null||o===void 0?void 0:o.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(Ke,ae,e){"use strict";e.d(ae,{S:function(){return H.S},Z:function(){return r}});var H=e(31959),u=e(12444),k=e.n(u),i=e(72004),g=e.n(i),C=e(9783),T=e.n(C),r=function(){function N(v,A,h){k()(this,N),T()(this,"collectionFieldInterfaceInstances",{}),T()(this,"collectionFieldGroups",{}),T()(this,"actionList",{}),this.dataSourceManager=h,this.addFieldInterfaces(v),this.addFieldInterfaceGroups(A)}return g()(N,[{key:"addFieldInterfaces",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(n,x){var K=new x(A);return n[K.name]=K,Array.isArray(A.actionList[K.name])&&(A.actionList[K.name].forEach(function(o){K[o.type](o.data)}),A.actionList[K.name]=void 0),n},{});Object.assign(this.collectionFieldInterfaceInstances,M)}},{key:"addFieldInterfaceComponentOption",value:function(A,h){var M=this.getFieldInterface(A);if(!M){this.actionList[A]||(this.actionList[A]=[]),this.actionList[A].push({type:"addComponentOption",data:h});return}M.addComponentOption(h)}},{key:"getFieldInterface",value:function(A){return this.collectionFieldInterfaceInstances[A]}},{key:"getFieldInterfaces",value:function(A){return Object.values(this.collectionFieldInterfaceInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var n;return!((n=h.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(A))}})}},{key:"addFieldInterfaceGroups",value:function(A){Object.assign(this.collectionFieldGroups,A)}},{key:"getFieldInterfaceGroups",value:function(){return this.collectionFieldGroups}},{key:"getFieldInterfaceGroup",value:function(A){return this.collectionFieldGroups[A]}}]),N}()},52020:function(Ke,ae,e){"use strict";e.d(ae,{s:function(){return E}});var H=e(97857),u=e.n(H),k=e(80844),i=e(85667),g=e(84327),C=e(96486),T=e.n(C),r=e(67294),N=e(7340),v=e(57105),A=e(15503),h=e(7105),M=e(29124),n=e(67668),x=e(85893),K=function(w,L,f){(0,i.untracked)(function(){w[L]===void 0&&(w[L]=f)})},o=function(w,L,f){typeof L.required>"u"&&(w.required=!!f.required)},a=function(w){var L,f=(0,h.eJW)(),y=(0,k.useField)(),p=(0,k.useFieldSchema)(),P=(0,n.Hy)(),m=P.uiSchema,j=P.defaultValue,D=(0,M.SF)(),c=D.isAllowToSetDefaultValue,d=(0,h.Cor)(((L=p["x-component-props"])===null||L===void 0?void 0:L.component)||(m==null?void 0:m["x-component"])||"Input"),l=(0,N.bz)(),S=(0,A.M)(m==null?void 0:m["x-use-component-props"],w);return(0,r.useEffect)(function(){if(m){var z=f(m);if(K(y,"content",z["x-content"]),K(y,"title",z.title),K(y,"description",z.description),l!=null&&l.form){var O=c()?p.default||j:void 0;O!=null&&K(y,"initialValue",O)}if(!y.validator&&(z["x-validator"]||p["x-validator"])){var U=(0,C.concat)([],z["x-validator"]||[],p["x-validator"]||[]);y.validator=U}p["x-disabled"]===!0&&(y.disabled=!0),p["x-read-pretty"]===!0&&(y.readPretty=!0),o(y,p,z),y.dataSource=z.enum;var t=f(z["x-component-props"])||{};y.componentProps=(0,g.merge)(t,y.componentProps||{},S||{})}},[m]),m?(0,x.jsx)(d,u()(u()({},w),S)):null},R=function(w){var L,f=(0,k.useField)(),y=(0,k.useFieldSchema)(),p=(0,v.mz)(),P=p.uiSchema,m=(0,h.Cor)(((L=y["x-component-props"])===null||L===void 0?void 0:L.component)||(P==null?void 0:P["x-component"])||"Input"),j=(0,A.M)(P==null?void 0:P["x-use-component-props"],w);return(0,r.useEffect)(function(){y["x-read-pretty"]===!0&&!f.readPretty&&(f.readPretty=!0)},[f,y]),P?(0,x.jsx)(m,u()(u()({},w),j)):null},E=(0,k.connect)(function($){var w=(0,k.useFieldSchema)(),L=(0,v.cl)();return(0,x.jsx)(n.YT,{name:w.name,children:L?(0,x.jsx)(R,u()({},$)):(0,x.jsx)(a,u()({},$))})});E.displayName="CollectionField"},67668:function(Ke,ae,e){"use strict";e.d(ae,{Hy:function(){return N},YT:function(){return T},m9:function(){return r},v_:function(){return C}});var H=e(67294),u=e(80844),k=e(1836),i=e(36032),g=e(85893),C=(0,H.createContext)(null);C.displayName="CollectionFieldContext";var T=function(A){var h=A.name,M=A.children,n=A.allowNull,x=(0,u.useFieldSchema)(),K=(0,k.Kx)(),o=(0,k.d9)(),a=(0,H.useMemo)(function(){var R;if(!K)return null;var E=x==null||(R=x["x-component-props"])===null||R===void 0?void 0:R.field;return o.getCollectionField(x==null?void 0:x["x-collection-field"])||E||K.getField((E==null?void 0:E.name)||h)},[K,x,o,h]);return!a&&n?(0,g.jsx)(g.Fragment,{children:M}):a?(0,g.jsx)(C.Provider,{value:a,children:M}):(0,g.jsx)(i.z,{type:"Field",name:h})},r=function(A){return(0,g.jsx)(C.Provider,{value:null,children:A.children})},N=function(){var A=(0,H.useContext)(C);return A}},58530:function(Ke,ae,e){"use strict";e.d(ae,{D:function(){return T}});var H=e(12444),u=e.n(H),k=e(72004),i=e.n(k),g=e(9783),C=e.n(g),T=function(){function r(N){u()(this,r),C()(this,"data",void 0),C()(this,"parentRecord",void 0),C()(this,"isNew",void 0);var v=N.data,A=N.parentRecord,h=N.isNew;this.isNew=h,this.data=v,this.parentRecord=A}return i()(r,[{key:"setData",value:function(v){this.data=v}},{key:"setParentRecord",value:function(v){this.parentRecord=v}}]),r}()},49834:function(Ke,ae,e){"use strict";e.d(ae,{E0:function(){return g},Kv:function(){return N},RA:function(){return r},nE:function(){return T},oV:function(){return C},vI:function(){return i}});var H=e(67294),u=e(58530),k=e(85893),i=(0,H.createContext)(null);i.displayName="CollectionRecordContext";var g=H.memo(function(v){var A=v.isNew,h=v.record,M=v.parentRecord,n=v.children,x=(0,H.useMemo)(function(){if(M)return M instanceof u.D?M:new u.D({data:M});if(h instanceof u.D)return h.parentRecord},[M,h]),K=(0,H.useMemo)(function(){var o;return h?h instanceof u.D?(o=h,o.isNew=h.isNew||A):o=new u.D({data:h,isNew:A}):o=new u.D({isNew:A}),o.setParentRecord(x),o},[h,x,A]);return(0,k.jsx)(i.Provider,{value:K,children:n})});g.displayName="CollectionRecordProvider";function C(){var v=(0,H.useContext)(i);return v}function T(){var v=C();return v==null?void 0:v.data}function r(){var v=C();return v==null?void 0:v.parentRecord}function N(){var v,A=C();return A==null||(v=A.parentRecord)===null||v===void 0?void 0:v.data}},88496:function(Ke,ae,e){"use strict";e.d(ae,{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(Ke,ae,e){"use strict";e.d(ae,{d:function(){return C},k:function(){return g}});var H=e(85667),u=e(96486),k=e.n(u),i="__isNewRecord__",g=function(r){return(0,H.untracked)(function(){return!!(r!=null&&r[i])})},C=function(r){if(!(0,u.isObject)(r))throw new Error("markRecordAsNew: record must be an object");return r[i]=!0,r}},34096:function(Ke,ae,e){"use strict";e.d(ae,{P:function(){return T}});var H=e(72004),u=e.n(H),k=e(12444),i=e.n(k),g=e(9783),C=e.n(g),T=u()(function r(N){i()(this,r),C()(this,"name",void 0),C()(this,"Collection",void 0),C()(this,"title",void 0),C()(this,"color",void 0),C()(this,"order",void 0),C()(this,"default",void 0),C()(this,"events",void 0),C()(this,"configurableProperties",void 0),C()(this,"availableFieldInterfaces",void 0),C()(this,"divider",void 0),C()(this,"description",void 0),C()(this,"configureActions",void 0),C()(this,"forbidDeletion",void 0),C()(this,"supportDataSourceType",void 0),C()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=N})},67836:function(Ke,ae,e){"use strict";e.d(ae,{P:function(){return H.P},y:function(){return r}});var H=e(34096),u=e(12444),k=e.n(u),i=e(72004),g=e.n(i),C=e(9783),T=e.n(C),r=function(){function N(v,A){k()(this,N),T()(this,"collectionTemplateInstances",{}),this.dataSourceManager=A,this.addCollectionTemplates(v)}return g()(N,[{key:"addCollectionTemplates",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(n,x){var K=new x(A);return n[K.name]=K,n},{});return Object.assign(this.collectionTemplateInstances,M),this.dataSourceManager.getDataSources().forEach(function(n){var x=n.collectionManager.getCollections(function(K){return M[K.template]});n.collectionManager.reAddCollections(x)}),M}},{key:"getCollectionTemplate",value:function(A){return this.collectionTemplateInstances[A]}},{key:"getCollectionTemplates",value:function(A){return Object.values(this.collectionTemplateInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var n;return!((n=h.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(A))}}).sort(function(h,M){return(h.order||0)-(M.order||0)})}}]),N}()},19271:function(Ke,ae,e){"use strict";e.d(ae,{Xo:function(){return A},lb:function(){return N},ym:function(){return v}});var H=e(67294),u=e(67668),k=e(36032),i=e(35746),g=e(58837),C=e(85893),T=(0,H.createContext)(null);T.displayName="ParentCollectionContext";var r=function(M){var n=(0,g.Kx)();return(0,C.jsx)(T.Provider,{value:n,children:M.children})},N=function(){return(0,H.useContext)(T)},v=function(M){var n=M.name,x=M.children,K=(0,i.d9)(),o=K.getCollectionName(n);return o?(0,C.jsx)(g.YQ,{name:String(n).split(".")[0],children:(0,C.jsx)(r,{children:(0,C.jsx)(u.YT,{name:n,children:(0,C.jsx)(g.YQ,{name:o,children:x})})})}):(0,C.jsx)(k.z,{type:"Collection",name:n})},A=function(){var M=(0,u.Hy)();return M!=null&&M.target?"".concat(M.collectionName,".").concat(M.name):null}},5282:function(Ke,ae,e){"use strict";e.d(ae,{F:function(){return A}});var H=e(61227),u=e.n(H),k=e(12444),i=e.n(k),g=e(72004),C=e.n(g),T=e(9783),r=e.n(T),N=e(96486),v=e.n(N),A=function(){function h(M,n){i()(this,h),r()(this,"fieldsMap",void 0),r()(this,"primaryKey",void 0),this.options=M,this.collectionManager=n}return C()(h,[{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,x){return this.options[n]=x,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,x){return n[x.name]=x,n},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(n){var x=this.getFieldsMap(),K=String(n).split("."),o=u()(K),a=o[0],R=o.slice(1),E=x[a];if(E){var $=E==null?void 0:E.target;if($){var w=this.collectionManager.getCollection($);if(w)return w.getField(R.join("."))}}}},{key:"getField",value:function(n){if(n){var x=this.getFieldsMap();if(String(n).split(".").length>1){var K=this.getFieldByAssociationName(n);return K||(typeof n=="string"&&n.startsWith("".concat(this.name,"."))?(n=n.replace("".concat(this.name,"."),""),this.getField(n)):void 0)}return x[n]}}},{key:"hasField",value:function(n){return!!this.getField(n)}},{key:"isTitleField",value:function(n){var x;return(x=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(n.interface))===null||x===void 0?void 0:x.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),h}()},35746:function(Ke,ae,e){"use strict";e.d(ae,{IX:function(){return T},bX:function(){return A},d9:function(){return v},xw:function(){return N}});var H=e(5574),u=e.n(H),k=e(67294),i=e(44990),g=e(58861),C=e(85893),T=(0,k.createContext)(null);T.displayName="CollectionManagerContext";var r=function(M){var n=M.instance,x=M.children,K=(0,i.wl)(),o=(0,g.P5)(),a=(0,k.useMemo)(function(){return n||(K==null?void 0:K.collectionManager)},[n,K]),R=k.useState(Math.random()),E=u()(R,2),$=E[0],w=E[1];(0,k.useEffect)(function(){a.dataSource.addReloadCallback(function(){w(Math.random())})},[a]);var L=(0,k.useMemo)(function(){var f=a;return o!=null&&o.length?f.clone(o):f},[a,o,$]);return(0,C.jsx)(T.Provider,{value:L,children:x})},N=function(M){var n=M.instance,x=M.dataSource,K=M.children;return(0,C.jsx)(i.LX,{dataSource:x,children:(0,C.jsx)(r,{instance:n,children:K})})};function v(){var h=(0,k.useContext)(T);return h}var A=function(M){var n=v(),x=(0,k.useMemo)(function(){return n.getCollections(M)},[n,M]);return x}},58837:function(Ke,ae,e){"use strict";e.d(ae,{Kx:function(){return A},Pd:function(){return v},WH:function(){return r},YQ:function(){return N},ge:function(){return h}});var H=e(97857),u=e.n(H),k=e(67294),i=e(67668),g=e(36032),C=e(35746),T=e(85893),r=(0,k.createContext)(null);r.displayName="CollectionContext";var N=function(n){var x=n.name,K=n.children,o=n.allowNull,a=(0,C.d9)(),R=(0,k.useMemo)(function(){return a==null?void 0:a.getCollection(x)},[a,x]);return!R&&o?(0,T.jsx)(T.Fragment,{children:n.children}):!R&&!o?(0,T.jsx)(g.z,{type:"Collection",name:x}):(0,T.jsx)(r.Provider,{value:R,children:K})},v=function(n){return(0,T.jsx)(i.v_.Provider,{value:null,children:(0,T.jsx)(N,u()({},n))})};function A(){var M=(0,k.useContext)(r);return M}var h=function(n){var x=A(),K=(0,k.useMemo)(function(){return x.getFields(n)},[x,n]);return K}},58861:function(Ke,ae,e){"use strict";e.d(ae,{P5:function(){return N},Xc:function(){return T},j5:function(){return r}});var H=e(19632),u=e.n(H),k=e(67294),i=e(44990),g=e(35746),C=e(85893),T=(0,k.createContext)(null);T.displayName="ExtendCollectionsContext";var r=function(A){var h=A.children,M=A.collections,n=N(),x=(0,k.useMemo)(function(){return n?[].concat(u()(n),u()(M)):M},[n,M]),K=(0,i.FC)();return(0,C.jsx)(T.Provider,{value:x,children:(0,C.jsx)(g.xw,{dataSource:K,children:h})})};function N(){var v=(0,k.useContext)(T);return v}},1836:function(Ke,ae,e){"use strict";e.d(ae,{ym:function(){return k.ym},FE:function(){return H.F},WH:function(){return u.WH},w4:function(){return f},IX:function(){return y.IX},xw:function(){return y.xw},YQ:function(){return u.YQ},Xc:function(){return p.Xc},j5:function(){return p.j5},Pd:function(){return u.Pd},Xo:function(){return k.Xo},Kx:function(){return u.Kx},ge:function(){return u.ge},d9:function(){return y.d9},bX:function(){return y.bX},P5:function(){return p.P5},lb:function(){return k.lb}});var H=e(5282),u=e(58837),k=e(19271),i=e(61227),g=e.n(i),C=e(52677),T=e.n(C),r=e(97857),N=e.n(r),v=e(12444),A=e.n(v),h=e(72004),M=e.n(h),n=e(9783),x=e.n(n),K=e(80129),o=e.n(K),a=e(13769),R=e.n(a),E=["rawTitle","title","fields"],$=["uiSchema"],w=function(m,j){var D=m.rawTitle,c=m.title,d=m.fields,l=d===void 0?[]:d,S=R()(m,E);return N()(N()({},S),{},{title:D?c:j.i18n.t(c,{ns:"lm-collections"}),rawTitle:D||c,fields:l==null?void 0:l.map(function(z){var O=z.uiSchema,U=R()(z,$);if(O!=null&&O.title){var t=O.title;O.title=O.rawTitle?t:j.i18n.t(t,{ns:"lm-collections"}),O.rawTitle=O.rawTitle||t}return Array.isArray(O==null?void 0:O.enum)&&(O.enum=O.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:O},U)})})};function L(P,m,j,D){var c=new P(j,D);return m.forEach(function(d){var l=new d(j,D);Object.getOwnPropertyNames(l).forEach(function(S){var z=Object.getOwnPropertyDescriptor(l,S);z?Object.defineProperty(c,S,z):c[S]=l[S]}),Object.getOwnPropertyNames(d.prototype).forEach(function(S){S!=="constructor"&&(c.__proto__[S]=d.prototype[S])})}),c}var f=function(){function P(m,j){A()(this,P),x()(this,"collectionInstancesMap",{}),x()(this,"collectionInstancesArr",[]),this.dataSource=j,this.addCollections(m)}return M()(P,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(j){var D=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(j.template),c=(D==null?void 0:D.Collection)||H.F,d=D==null?void 0:D.transform,l=d?d(w(j,this.app),this.app):w(j,this.dataSource.dataSourceManager.app),S=N()(N()({},l),{},{dataSource:this.dataSource.key}),z=L(c,this.dataSourceManager.collectionMixins,S,this);return z}},{key:"getInstancesMap",value:function(){var j=this,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=D.map(function(d){return j.getCollectionInstance(d)});return c.reduce(function(d,l){return d[l.name]=l,d},{})}},{key:"addCollections",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=this.getInstancesMap(j);this.collectionInstancesMap=N()(N()({},this.collectionInstancesMap),D),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,D=j.map(function(c){return c.getOptions()});this.addCollections(D)}},{key:"getCollection",value:function(j){if(j){if(T()(j)==="object")return this.getCollectionInstance(j);if(String(j).split(".").length>1){var D=this.getCollectionField(j);return D?this.getCollection(D.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 D=this.getCollection(j);return D==null?void 0:D.name}},{key:"getCollectionField",value:function(j){if(j){if(T()(j)==="object")return j;if(String(j).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(j,'" is invalid'));return}var D=String(j).split("."),c=g()(D),d=c[0],l=c.slice(1),S=this.getCollection(d);if(S)return S.getField(l.join("."))}}},{key:"getCollectionFields",value:function(j,D){var c;return((c=this.getCollection(j))===null||c===void 0?void 0:c.getFields(D))||[]}},{key:"getCollectionAllFields",value:function(j,D){var c;return((c=this.getCollection(j))===null||c===void 0?void 0:c.getAllFields(D))||[]}},{key:"getFilterByTK",value:function(j,D){if(!j||!D){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}var c=function(U,t){if(Array.isArray(U)){var B={};return U.forEach(function(G){B[G]=t[G]}),o().stringify(B)}else return t[U]};if(j instanceof H.F){var d=j.getFilterTargetKey();return c(d,D)}if(j.includes(".")){var l=this.getCollectionField(j);if(!l){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(j,'" is invalid'));return}if(l.targetKey)return D[l.targetKey]}var S=this.getCollection(j);if(!S){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(j,'" is invalid'));return}var z=S.getFilterTargetKey();return c(z,D)}},{key:"getSourceKeyByAssociation",value:function(j){if(j){var D=this.getCollectionField(j);if(D){if(D.sourceKey)return D.sourceKey;var c=this.getCollection(j.split(".")[0]);if(c)return c.filterTargetKey||c.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=new P([],this.dataSource);return D.collectionInstancesArr=this.collectionInstancesArr,D.collectionInstancesMap=this.collectionInstancesMap,D.addCollections(j),D}}]),P}(),y=e(35746),p=e(58861)},22558:function(Ke,ae,e){"use strict";e.d(ae,{K:function(){return h}});var H=e(9783),u=e.n(H),k=e(97857),i=e.n(k),g=e(80844),C=e(96486),T=e.n(C),r=e(26793),N=e(13511),v=e(67668),A=e(7105),h={name:"fieldComponent",type:"select",useVisible:function(){var n=(0,v.Hy)(),x=(0,N.fp)();if(!n)return!1;var K=x.collectionFieldInterfaceManager.getFieldInterface(n==null?void 0:n.interface);return Array.isArray(K==null?void 0:K.componentOptions)&&K.componentOptions.length>1&&K.componentOptions.filter(function(o){return!o.useVisible||o.useVisible()}).length>1},useComponentProps:function(){var n,x,K,o=(0,r.$)(),a=o.t,R=(0,g.useField)(),E=(0,g.useFieldSchema)(),$=(0,v.Hy)(),w=(0,N.fp)(),L=w.collectionFieldInterfaceManager.getFieldInterface($==null?void 0:$.interface),f=(0,A.z9d)(),y=f.fieldSchema,p=y||E,P=(0,A.ngQ)(),m=P.dn,j=(0,A.eJW)(),D=(L==null||(n=L.componentOptions)===null||n===void 0||(n=n.filter(function(c){return!c.useVisible||c.useVisible()}))===null||n===void 0?void 0:n.map(function(c){return{label:j(c.label),value:c.value,useProps:c.useProps}}))||[];return{title:a("Field component"),options:D,value:((x=p["x-component-props"])===null||x===void 0?void 0:x.component)||((K=D[0])===null||K===void 0?void 0:K.value),onChange:function(d){var l,S,z=D.find(function(U){return U.value===d}),O=i()({component:d},(z==null||(l=z.useProps)===null||l===void 0?void 0:l.call(z))||{});T().set(p,"x-component-props",O),R.componentProps=O,m.emit("patch",{schema:(S={},u()(S,"x-uid",p["x-uid"]),u()(S,"x-component-props",O),S)})}}}}},36032:function(Ke,ae,e){"use strict";e.d(ae,{p:function(){return R},z:function(){return o}});var H=e(97857),u=e.n(H),k=e(48997),i=e(3321),g=e(59720),C=e(15867),T=e(67294),r=e(26793),N=e(7105),v=e(44990),A=e(49453),h=e(57638),M=e(1836),n=e(18243),x=e(85893),K=k.Z.Text,o=function($){var w=$.type,L=$.name,f=$.message,y=(0,N.ngQ)(),p=y.designable,P=y.dn,m=i.Z.useApp(),j=m.modal,D=(0,r.$)(),c=D.t,d=(0,v.wl)(),l=(0,N.eJW)(),S=(0,M.Kx)(),z=(0,A.fp)(),O=(0,T.useMemo)(function(){if(w==="Data Source")return L;var B=(z==null?void 0:z.getDataSources().length)>=1&&d&&d.key!==h.ym?"".concat(l(d.displayName||d.key)," > "):"";if(w==="Collection")return"".concat(B).concat(L);var G=S?"".concat(l(S.title)||S.name||S.tableName," > "):"";return"".concat(B).concat(G).concat(L)},[]),U=(0,T.useMemo)(function(){return w==="Field"?"Field":"Block"},[w]),t=(0,T.useMemo)(function(){return L?f?"".concat(c(w),' "').concat(O,'" ').concat(f):c('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:c(w).toLocaleLowerCase(),name:O,blockType:c(U).toLocaleLowerCase()}).replaceAll("&gt;",">"):"".concat(c(w)," ","name is required")},[f,O,w,c,U]);return p?w==="Field"?(0,x.jsx)(N.BQs,{ellipsis:!0,children:(0,x.jsx)(K,{type:"secondary",children:t})}):(0,x.jsx)(n.P,{children:(0,x.jsx)(g.ZP,{status:"404",subTitle:t,extra:(0,x.jsx)(C.ZP,{onClick:function(){return j.confirm(u()(u()({title:c("Delete block"),content:c("Are you sure you want to delete it?")},confirm),{},{onOk:function(){P.remove(null,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}),P.refresh({refreshParentSchema:!0})}}))},children:c("Delete")},"Delete")})}):null},a=function(){var $=(0,r.$)(),w=$.t,L=(0,v.wl)(),f=(0,N.eJW)(),y=(0,M.Kx)(),p=(0,A.fp)(),P=(0,T.useMemo)(function(){var j=(p==null?void 0:p.getDataSources().length)>=1&&L&&L.key!==h.ym?"".concat(f(L.displayName||L.key)," > "):"";if(y)return"".concat(j).concat(y.name);var D=y?"".concat(f(y.title)||y.name||y.tableName," > "):"";return"".concat(j).concat(D).concat(y.name)},[]),m=(0,T.useMemo)(function(){return w(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:P}).replaceAll("&gt;",">")},[P,w]);return(0,x.jsx)(n.P,{children:(0,x.jsx)(g.ZP,{status:"404",subTitle:m})})},R=function(){var $=(0,N.ngQ)(),w=$.designable;return w?(0,x.jsx)(a,{}):null}},88996:function(Ke,ae,e){"use strict";e.d(ae,{i:function(){return v}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(67294),C=e(13511),T=e(35746),r=e(85893),N=["children","dataSourceManager"],v=function(h){var M=h.children,n=h.dataSourceManager,x=i()(h,N);return(0,r.jsx)(C.kv,{dataSourceManager:n,children:(0,r.jsx)(T.xw,u()(u()({},x),{},{children:M}))})}},87180:function(Ke,ae,e){"use strict";e.d(ae,{KY:function(){return $},Rr:function(){return f},dq:function(){return E},eS:function(){return w},hZ:function(){return o},sI:function(){return R},zh:function(){return L}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(5574),C=e.n(g),T=e(67294),r=e(75667),N=e(67205),v=e(15503),A=e(7105),h=e(1836),M=e(39742),n=e(14310),x=e(85893),K=["collection","association","dataSource","children","hidden"],o=(0,T.createContext)({});o.displayName="DataBlockContext";var a=(0,T.createContext)(null),R=function(p){var P=p.children,m=T.useState(!1),j=C()(m,2),D=j[0],c=j[1],d=(0,T.useMemo)(function(){return{rerenderDataBlock:function(){c(!0),setTimeout(function(){c(!1)})}}},[]);return D?null:(0,x.jsx)(a.Provider,{value:d,children:P})},E=function(p){var P=p.collection,m=p.association,j=p.allowNull,D=j===void 0?!1:j,c=(0,T.useMemo)(function(){return m?{Component:h.ym,name:m}:{Component:h.Pd,name:P}},[P,m]);return(0,x.jsx)(c.Component,{name:c.name,allowNull:D,children:p.children})},$=(0,v.t)(T.memo(function(y){var p=y,P=p.collection,m=p.association,j=p.dataSource,D=p.children,c=p.hidden,d=i()(p,K),l=(0,A.ngQ)(),S=l.dn;return c?null:(0,x.jsx)(o.Provider,{value:{dn:S,props:u()(u()({},d),{},{collection:P,association:m,dataSource:j})},children:(0,x.jsx)(h.xw,{dataSource:j,children:(0,x.jsx)(E,{collection:P,association:m,children:(0,x.jsx)(r.Hh,{children:(0,x.jsx)(n.eh,{children:(0,x.jsx)(M.N4,{children:(0,x.jsx)(N.vY,{params:y.params,children:(0,x.jsx)(R,{children:D})})})})})})})})}),{displayName:"DataBlockProvider"}),w=function(){var p=(0,T.useContext)(o);if(!p)throw new Error("useDataBlock() must be used within a DataBlockProvider");return p},L=function(){var p=w();return p.props},f=function(){var p=(0,T.useContext)(a);if(!p)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return p}},39742:function(Ke,ae,e){"use strict";e.d(ae,{H0:function(){return p},N4:function(){return j},Pt:function(){return c},hS:function(){return D},q4:function(){return L},uz:function(){return m},xQ:function(){return d}});var H=e(15009),u=e.n(H),k=e(99289),i=e.n(k),g=e(97857),C=e.n(g),T=e(5574),r=e.n(T),N=e(67294),v=e(96486),A=e.n(v),h=e(12174),M=e(4277),n=e(19530),x=e(54724),K=e(21044),o=e(88496),a=e(8341),R=e(87180),E=e(14310),$=e(85893),w=(0,N.createContext)(null);w.displayName="BlockRequestRefContext";var L=(0,N.createContext)(!1);L.displayName="BlockRequestLoadingContext";var f=(0,N.createContext)(null);f.displayName="BlockRequestDataContext";function y(l){var S=(0,M.tU)(),z=(0,E.wb)(),O=l.action,U=l.params,t=U===void 0?{}:U,B=l.record,G=l.requestService,Y=l.requestOptions,W=l.sourceId,I=l.association,te=l.parentRecord,Q=(0,h.LY)(),X=(0,R.zh)(),Z=(0,a.FE)(X.dataSource),b=(0,n.U)(I),J=(0,N.useMemo)(function(){return[JSON.stringify(t),JSON.stringify(B)]},[t,B]),se=r()(J,2),q=se[0],le=se[1],Ce=function(Pe){var ie;if(B)return Promise.resolve({data:B});if(!O)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(O==="get"&&A().isNil(t.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var me=t.filterByTk===void 0?A().omit(t,"filterByTk"):t;return(ie=z[O])===null||ie===void 0?void 0:ie.call(z,C()(C()({},me),Pe)).then(function(pe){return pe.data})},_e=function(){var Be=i()(u()().mark(function Pe(){var ie,me,pe,ee,ue=arguments;return u()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,Promise.all([(G||Ce).apply(void 0,ue),p({sourceId:W,association:I,parentRecord:te,api:Q,headers:Z,sourceKey:b})]);case 2:return ie=Ee.sent,me=r()(ie,2),pe=me[0],ee=me[1],pe&&(pe.parentRecord=ee==null?void 0:ee.data),Ee.abrupt("return",pe);case 8:case"end":return Ee.stop()}},Pe)}));return function(){return Be.apply(this,arguments)}}(),ye=(0,h.QT)(_e,C()(C()({},Y),{},{manual:S==="manual",ready:!!O,refreshDeps:[O,q,le,z,I,te,W]}));return ye}function p(l){return P.apply(this,arguments)}function P(){return P=i()(u()().mark(function l(S){var z,O,U,t,B,G,Y,W,I;return u()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(z=S.sourceId,O=S.association,U=S.parentRecord,t=S.api,B=S.headers,G=S.sourceKey,!U){Q.next=3;break}return Q.abrupt("return",Promise.resolve({data:U}));case 3:if(!(!O||!G||!z)){Q.next=5;break}return Q.abrupt("return",Promise.resolve({data:void 0}));case 5:return Y=O.split("."),W="".concat(Y[0],":get?filter[").concat(G,"]=").concat(z),Q.next=9,t.request({url:W,headers:B});case 9:return I=Q.sent,Q.abrupt("return",I.data);case 11:case"end":return Q.stop()}},l)})),P.apply(this,arguments)}var m=function(S){var z,O,U,t,B=(0,N.useRef)(S.recordRequest),G=(0,N.useRef)((z=S.recordRequest)===null||z===void 0?void 0:z.data),Y=(0,x.Du)(),W=Y.active,I=(0,N.useRef)(W),te=(0,N.useDeferredValue)(W),Q=(0,R.zh)();if(te&&!I.current&&(A().isNil(Q.dataLoadingMode)||Q.dataLoadingMode==="auto")){var X;(X=S.recordRequest)===null||X===void 0||X.refresh()}if(te&&I.current&&!((O=S.recordRequest)!==null&&O!==void 0&&O.loading)&&!A().isEqual(G.current,(U=S.recordRequest)===null||U===void 0?void 0:U.data)){var Z;G.current=(Z=S.recordRequest)===null||Z===void 0?void 0:Z.data}return te!==I.current&&(I.current=te),B.current=S.recordRequest,(0,$.jsx)(w.Provider,{value:B,children:(0,$.jsx)(L.Provider,{value:(t=S.recordRequest)===null||t===void 0?void 0:t.loading,children:(0,$.jsx)(f.Provider,{value:G.current,children:S.children})})})},j=N.memo(function(l){var S,z,O=l.children,U=(0,R.zh)(),t=U.action,B=U.filterByTk,G=U.sourceId,Y=U.params,W=Y===void 0?K.Nu:Y,I=U.association,te=U.collection,Q=U.record,X=U.parentRecord,Z=U.requestOptions,b=U.requestService,J=(0,N.useMemo)(function(){return C()(C()({},W),{},{filterByTk:B||W.filterByTk})},[B,W]),se=y({action:t,sourceId:G,record:Q,association:I,collection:te,requestOptions:Z,requestService:b,params:J,parentRecord:X}),q=(S=se.data)===null||S===void 0?void 0:S.parentRecord,le=(0,N.useMemo)(function(){return q&&new o.DI({isNew:!1,data:q instanceof o.DI?q.data:q})},[q]);return(0,$.jsx)(m,{recordRequest:se,children:t!=="list"?(0,$.jsx)(o.E0,{isNew:t==null,record:((z=se.data)===null||z===void 0?void 0:z.data)||Q,parentRecord:le||X,children:O}):(0,$.jsx)(o.E0,{isNew:!1,record:null,parentRecord:le||X,children:O})})});j.displayName="DataBlockRequestProvider";var D=function(){var S=(0,N.useContext)(w),z=(0,N.useContext)(L),O=(0,N.useContext)(f);return(0,N.useMemo)(function(){return S?C()(C()({},S.current),{},{loading:z,data:O}):null},[S,O,z])},c=function(){var S=(0,N.useContext)(w);return(0,N.useMemo)(function(){return{getDataBlockRequest:function(){return S?S.current:null}}},[S])},d=function(){return(0,N.useContext)(f)}},14310:function(Ke,ae,e){"use strict";e.d(ae,{T1:function(){return h},eh:function(){return M},wb:function(){return n}});var H=e(96695),u=e.n(H),k=e(96486),i=e.n(k),g=e(67294),C=e(12174),T=e(1836),r=e(88496),N=e(8341),v=e(87180),A=e(85893),h=(0,g.createContext)(null);h.displayName="DataBlockResourceContext";var M=function(K){var o=K.children,a=(0,v.zh)(),R=(0,T.d9)(),E=a.association,$=a.collection,w=a.dataSource,L=a.sourceId,f=a.parentRecord,y=(0,C.LY)(),p=(0,N.FE)(w),P=(0,g.useMemo)(function(){return typeof $=="string"?$:$==null?void 0:$.name},[$]),m=(0,g.useMemo)(function(){if(L)return L;if(E&&f){var D=R.getSourceKeyByAssociation(E),c=f instanceof r.DI?f.data:f;if((0,k.isArray)(D)){var d={},l=u()(D),S;try{for(l.s();!(S=l.n()).done;){var z=S.value;d[z]=c==null?void 0:c[z]}}catch(O){l.e(O)}finally{l.f()}return encodeURIComponent(JSON.stringify(d))}else return c[D]}},[E,L,f]),j=(0,g.useMemo)(function(){return E?y.resource(E,m,p,!m):y.resource(P,void 0,p)},[y,E,$,m,p]);return(0,A.jsx)(h.Provider,{value:j,children:o})};function n(){var x=(0,g.useContext)(h);if(!x)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return x}},35519:function(Ke,ae,e){"use strict";e.d(ae,{n:function(){return o},o:function(){return K}});var H=e(31996),u=e.n(H),k=e(26037),i=e.n(k),g=e(15009),C=e.n(g),T=e(99289),r=e.n(T),N=e(12444),v=e.n(N),A=e(72004),h=e.n(A),M=e(9783),n=e.n(M),x=e(1836),K=function(){function a(R,E){v()(this,a),n()(this,"collectionManager",void 0),n()(this,"reloadCallbacks",[]),this.options=R,this.dataSourceManager=E,this.collectionManager=new x.w4(R.collections,this)}return h()(a,[{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(E){Object.assign(this.options,E)}},{key:"getOption",value:function(E){return this.options[E]}},{key:"addReloadCallback",value:function(E){this.reloadCallbacks.includes(E)||this.reloadCallbacks.push(E)}},{key:"removeReloadCallback",value:function(E){this.reloadCallbacks=this.reloadCallbacks.filter(function($){return $!==E})}},{key:"reload",value:function(){var R=r()(C()().mark(function $(){var w;return C()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.getDataSource();case 2:return w=f.sent,this.setOptions(w),this.collectionManager.setCollections(w.collections||[]),this.reloadCallbacks.forEach(function(y){return y(w.collections)}),f.abrupt("return",this.options);case 7:case"end":return f.stop()}},$,this)}));function E(){return R.apply(this,arguments)}return E}()}]),a}(),o=function(a){u()(E,a);var R=i()(E);function E(){return v()(this,E),R.apply(this,arguments)}return h()(E,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),E}(K)},57638:function(Ke,ae,e){"use strict";e.d(ae,{AK:function(){return f},UC:function(){return L},ym:function(){return w}});var H=e(97857),u=e.n(H),k=e(15009),i=e.n(k),g=e(5574),C=e.n(g),T=e(99289),r=e.n(T),N=e(19632),v=e.n(N),A=e(12444),h=e.n(A),M=e(72004),n=e.n(M),x=e(9783),K=e.n(x),o=e(35519),a=e(67836),R=e(65050),E=e(96486),$=e.n(E),w="main",L='{{t("Main")}}',f=function(){function y(){var p,P=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=arguments.length>1?arguments[1]:void 0;h()(this,y),K()(this,"dataSourceInstancesMap",{}),K()(this,"multiDataSources",[]),K()(this,"collectionMixins",[]),K()(this,"collectionTemplateManager",void 0),K()(this,"collectionFieldInterfaceManager",void 0),this.options=m,this.app=j,this.collectionTemplateManager=new a.y(m.collectionTemplates,this),this.collectionFieldInterfaceManager=new R.Z(m.fieldInterfaces,m.fieldInterfaceGroups,this),(p=this.collectionMixins).push.apply(p,v()(m.collectionMixins||[])),this.addDataSource(o.n,{key:w,displayName:L,collections:m.collections||[]}),(m.dataSources||[]).forEach(function(D){P.addDataSource(o.n,D)})}return n()(y,[{key:"addCollectionMixins",value:function(){var P=this,m,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=j.filter(function(c){return!P.collectionMixins.includes(c)});D.length&&((m=this.collectionMixins).push.apply(m,v()(D)),this.getDataSources().forEach(function(c){return c.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(P){var m=Object.values(this.dataSourceInstancesMap);return P?$().filter(m,P):m}},{key:"getDataSource",value:function(P){return P?this.dataSourceInstancesMap[P]:this.dataSourceInstancesMap[w]}},{key:"removeDataSources",value:function(P){var m=this;P.forEach(function(j){delete m.dataSourceInstancesMap[j]})}},{key:"addDataSource",value:function(P,m){var j=new P(m,this);return this.dataSourceInstancesMap[j.key]=j,j}},{key:"addDataSources",value:function(){var p=r()(i()().mark(function m(j,D){return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!this.multiDataSources.some(function(l){var S=C()(l,2),z=S[0],O=S[1];return z===j&&O===D})){d.next=2;break}return d.abrupt("return");case 2:this.multiDataSources.push([j,D]);case 3:case"end":return d.stop()}},m,this)}));function P(m,j){return p.apply(this,arguments)}return P}()},{key:"getAllCollections",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=P.filterCollection,j=P.filterDataSource;return this.getDataSources(j).reduce(function(D,c){return D.push(u()(u()({},c.getOptions()),{},{collections:c.collectionManager.getCollections(m)})),D},[])}},{key:"addFieldInterfaceGroups",value:function(P){this.collectionFieldInterfaceManager.addFieldInterfaceGroups(P)}},{key:"addCollectionTemplates",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionTemplateManager.addCollectionTemplates(P)}},{key:"addFieldInterfaces",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionFieldInterfaceManager.addFieldInterfaces(P)}},{key:"reload",value:function(){var p=r()(i()().mark(function m(){var j=this;return i()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Promise.all(this.multiDataSources.map(function(){var d=r()(i()().mark(function l(S){var z,O,U,t;return i()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return z=C()(S,2),O=z[0],U=z[1],G.next=3,O();case 3:t=G.sent,t.map(function(Y){return j.addDataSource(U,Y)});case 5:case"end":return G.stop()}},l)}));return function(l){return d.apply(this,arguments)}}()));case 2:return c.abrupt("return",Promise.all(this.getDataSources().map(function(d){return d.reload()})));case 3:case"end":return c.stop()}},m,this)}));function P(){return p.apply(this,arguments)}return P}()}]),y}()},13511:function(Ke,ae,e){"use strict";e.d(ae,{Uv:function(){return C},fp:function(){return g},kv:function(){return i},up:function(){return k}});var H=e(67294),u=e(85893),k=(0,H.createContext)(null);k.displayName="DataSourceManagerContext";var i=function(r){var N=r.children,v=r.dataSourceManager;return(0,u.jsx)(k.Provider,{value:v,children:N})};function g(){var T=(0,H.useContext)(k);return T}function C(){var T=g(),r=(0,H.useCallback)(function(N,v){var A;return T==null||(A=T.getDataSource(v))===null||A===void 0||(A=A.collectionManager)===null||A===void 0||(A=A.getCollection(N))===null||A===void 0?void 0:A.getAllCollectionsInheritChain()},[T]);return{getAllCollectionsInheritChain:r}}},44990:function(Ke,ae,e){"use strict";e.d(ae,{FC:function(){return x},LX:function(){return M},NT:function(){return h},wl:function(){return n}});var H=e(5574),u=e.n(H),k=e(67294),i=e(13511),g=e(36032),C=e(7105),T=e(59720),r=e(15867),N=e(3407),v=e(26793),A=e(85893),h=(0,k.createContext)(null);h.displayName="DataSourceContext";var M=function(o){var a=o.children,R=o.dataSource,E=(0,i.fp)(),$=(0,v.$)(),w=$.t,L=(0,C.Dmu)(),f=L.refresh,y=k.useState(0),p=u()(y,2),P=p[0],m=p[1],j=E==null?void 0:E.getDataSource(R);return j?j.status==="loading-failed"?(0,A.jsx)(g.z,{type:"Data Source",name:j.displayName||R,message:j.errorMessage||"loading failed"}):j.status==="loading"||j.status==="reloading"?(0,A.jsx)(C.Ssf,{children:(0,A.jsx)(T.ZP,{icon:(0,A.jsx)(N.Z,{}),title:"".concat(j.displayName||R," ").concat(w("data source")," ").concat(w("loading"),"..."),extra:(0,A.jsx)(r.ZP,{type:"primary",onClick:function(){return j.reload().then(function(){f(),m(Math.random())})},children:w("Refresh")})})}):(0,A.jsx)(h.Provider,{value:j,children:a}):(0,A.jsx)(g.z,{type:"Data Source",name:R})};function n(){var K=(0,k.useContext)(h);return K}function x(){var K=(0,k.useContext)(h);return K==null?void 0:K.key}},49453:function(Ke,ae,e){"use strict";e.d(ae,{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 i.Uv},fp:function(){return i.fp},kv:function(){return i.kv},nC:function(){return H.n},o2:function(){return H.o},up:function(){return i.up},wl:function(){return k.wl},ym:function(){return u.ym}});var H=e(35519),u=e(57638),k=e(44990),i=e(13511)},94804:function(Ke,ae,e){"use strict";e.d(ae,{dq:function(){return v.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 C.z},sb:function(){return u.s},v_:function(){return k.v_},SY:function(){return i.S},Z:function(){return i.Z},YT:function(){return k.YT},Cd:function(){return t},rJ:function(){return z},lC:function(){return G},w4:function(){return H.w4},IX:function(){return H.IX},xw:function(){return H.xw},pD:function(){return C.p},YQ:function(){return H.YQ},DI:function(){return h.DI},vI:function(){return h.vI},E0:function(){return h.E0},Pl:function(){return g.P},yM:function(){return g.y},Ip:function(){return A.ym},UC:function(){return A.UC},hZ:function(){return v.hZ},KY:function(){return v.KY},T1:function(){return r.T1},eh:function(){return r.eh},o2:function(){return A.o2},i:function(){return T.i},NT:function(){return A.NT},AK:function(){return A.AK},up:function(){return A.up},kv:function(){return A.kv},LX:function(){return A.LX},Xc:function(){return H.Xc},j5:function(){return H.j5},nC:function(){return A.nC},sI:function(){return v.sI},Pd:function(){return H.Pd},K0:function(){return Y.K},iv:function(){return U},GX:function(){return M.GX},Yj:function(){return M.Yj},H0:function(){return N.H0},Uv:function(){return A.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 h.RA},Kv:function(){return h.Kv},oV:function(){return h.oV},nE:function(){return h.nE},bX:function(){return H.bX},eS:function(){return v.eS},zh:function(){return v.zh},hS:function(){return N.hS},xQ:function(){return N.xQ},Pt:function(){return N.Pt},wb:function(){return r.wb},wl:function(){return A.wl},on:function(){return M.FE},FC:function(){return A.FC},fp:function(){return A.fp},P5:function(){return H.P5},lb:function(){return H.lb},Rr:function(){return v.Rr}});var H=e(1836),u=e(52020),k=e(67668),i=e(65050),g=e(67836),C=e(36032),T=e(88996),r=e(14310),N=e(39742),v=e(87180),A=e(49453),h=e(88496),M=e(8341),n=e(97857),x=e.n(n),K=e(67294);function o(W,I,te){var Q,X=W.block,Z=W.isReadPretty,b=Z===void 0?function(pe){var ee=pe.form;return ee.readPretty}:Z,J=W.filter,se=J===void 0?function(){return!0}:J,q=W.getInitializerItem,le=q===void 0?function(){return{}}:q,Ce=W.getSchema,_e=Ce===void 0?function(){return{}}:Ce,ye=te.collectionManager,Be=te.collection,Pe=te.dataSourceManager,ie=te.actionContext,me=(Q=ie.fieldSchema)===null||Q===void 0?void 0:Q["x-action"];return Be?I.map(function(pe){var ee=ye.getCollection(pe.target),ue=Pe.collectionFieldInterfaceManager.getFieldInterface(pe.interface);return{collectionField:pe,context:x()(x()({},te),{},{targetCollection:ee,collectionFieldInterface:ue})}}).filter(function(pe){var ee=pe.collectionField;return ee.interface}).filter(function(pe){var ee=pe.collectionField,ue=pe.context;return se(ee,ue)}).map(function(pe){var ee,ue,ge=pe.collectionField,Ee=pe.context,Me={type:"string",title:(ge==null||(ee=ge.uiSchema)===null||ee===void 0?void 0:ee.title)||ge.name,name:ge.name,"x-component":"CollectionField","x-collection-field":"".concat(Be.name,".").concat(ge.name),"x-read-pretty":ge==null||(ue=ge.uiSchema)===null||ue===void 0?void 0:ue["x-read-pretty"]},Te=_e(ge,x()(x()({},Ee),{},{defaultSchema:Me})),Ae=x()(x()({},Me),Te||{});return{collectionField:ge,schema:Ae,context:x()(x()({},Ee),{},{schema:Ae})}}).map(function(pe){var ee,ue=pe.collectionField,ge=pe.context,Ee={type:"item",name:ue.name,title:(ue==null||(ee=ue.uiSchema)===null||ee===void 0?void 0:ee.title)||ue.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Te){var Ae,Ie;(Ae=ge.collectionFieldInterface)===null||Ae===void 0||(Ie=Ae.schemaInitialize)===null||Ie===void 0||Ie.call(Ae,Te,{field:ue,block:X,readPretty:b==null?void 0:b(ge),action:me,targetCollection:ge.targetCollection})},schema:ge.schema};return{collectionField:ue,context:ge,defaultInitializerItem:Ee}}).map(function(pe){var ee=pe.collectionField,ue=pe.defaultInitializerItem,ge=pe.context,Ee=le(ee,x()(x()({},ge),{},{defaultInitializerItem:ue}));return x()(x()({},ue),Ee||{})}):[]}var a=e(80844),R=e(26793),E=e(58837),$=e(44990),w=e(76157),L=e(35746),f=e(13511),y=e(7105);function p(){var W=(0,R.$)(),I=W.t,te=(0,E.Kx)(),Q=(0,f.fp)(),X=(0,w.XC)(),Z=(0,$.wl)(),b=(0,a.useForm)(),J=(0,a.useFieldSchema)(),se=(0,L.d9)(),q=(0,y.eJW)();return{t:I,compile:q,actionContext:X,fieldSchema:J,collection:te,dataSource:Z,form:b,collectionManager:se,dataSourceManager:Q}}var P=e(59582),m=e(85893),j=function(I){var te=p(),Q=te.t,X=te.collection,Z=X.getFields(),b=o(I,Z,te);return(0,m.jsx)(P.iP,{title:Q("Display fields"),children:b})},D=function(I){var te=p(),Q=te.collection,X=te.t,Z=te.collectionManager,b=Q.getParentCollectionsName();if(!b.length)return null;var J=b.map(function(se){var q=Q.getParentCollectionFields(se);if(q.length===0)return null;var le=Z.getCollection(se);return{parentCollection:le,parentCollectionFields:q}}).filter(Boolean).map(function(se){var q=se,le=q.parentCollection,Ce=q.parentCollectionFields,_e=x()(x()({},te),{},{collection:le});return{type:"itemGroup",divider:!0,title:X("Parent collection fields")+"("+te.compile(le.title)+")",children:o(I,Ce,_e)}});return(0,m.jsx)(P.E0,{children:J})},c=e(13769),d=e.n(c),l=["filterAssociationField","filterSelfField","getSchema"],S=function(I){var te=I.filterAssociationField,Q=I.filterSelfField,X=Q===void 0?function(){return!0}:Q,Z=I.getSchema,b=d()(I,l),J=I.context,se=J.collection,q=J.t,le=J.collectionManager,Ce=se.getFields(),_e=["o2o","oho","obo","m2o"],ye=Ce.filter(function(Pe){return _e.includes(Pe.interface)}).filter(function(Pe){return X(Pe,I.context)});if(!ye.length)return null;var Be=ye.map(function(Pe){var ie=le.getCollection(Pe.target);if(!ie)return null;var me=ie==null?void 0:ie.getAllFields();return me.length?{associationField:Pe,associationCollection:ie,associationCollectionFields:me}:null}).filter(Boolean).map(function(Pe){var ie,me,pe=Pe.associationField,ee=Pe.associationCollection,ue=Pe.associationCollectionFields,ge=x()(x()({},I.context),{},{collection:ee}),Ee=function(Te,Ae){var Ie=Z(Te,Ae);return x()(x()({},Ie||{}),{},{"x-read-pretty":!0,name:"".concat(pe.name,".").concat(Te.name),"x-collection-field":"".concat(se.name,".").concat(pe.name,".").concat(Te.name)})};return{type:"subMenu",name:(ie=pe.uiSchema)===null||ie===void 0?void 0:ie.title,title:(me=pe.uiSchema)===null||me===void 0?void 0:me.title,children:o(x()(x()({},b),{},{filter:te,getSchema:Ee}),ue,ge)}});return Be.length?(0,m.jsx)(P.iP,{title:q("Display association fields"),children:Be}):null},z=function(I){var te=I.selfField,Q=I.parentField,X=I.associationField,Z=I.block,b=p();return b.collection?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(j,x()(x()({block:Z},te),{},{context:x()(x()({},b),{},{collection:b.collection})})),Q&&(0,m.jsx)(D,x()(x()({block:Z},Q),{},{context:x()(x()({},b),{},{collection:b.collection})})),X&&(0,m.jsx)(S,x()(x()({block:Z},X),{},{context:x()(x()({},b),{},{collection:b.collection})}))]}):null},O=e(40341),U=function(I,te,Q){var X=(0,O.nD)(I,"x-component","Kanban");return(0,O.nD)(X,te,Q)},t=function(I){var te=(I==null?void 0:I.block)||"Form",Q={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},X={remove:O.YT};return(0,m.jsx)(z,{block:te,selfField:{filter:function(b){return!b.treeChildren},getSchema:function(b,J){var se,q=J.targetCollection,le=(q==null?void 0:q.template)==="file",Ce=q,_e=b==null||(se=b.uiSchema)===null||se===void 0||(se=se["x-component-props"])===null||se===void 0?void 0:se.fieldNames;return x()(x()({},Q),{},{"x-component-props":le?{fieldNames:{label:"preview",value:"id"}}:Ce&&_e?{fieldNames:x()(x()({},_e),{},{label:(q==null?void 0:q.titleField)||_e.label})}:{}})},getInitializerItem:function(){return x()(x()({},X),{},{find:(I==null?void 0:I.block)==="Kanban"?U:void 0})}},parentField:{getSchema:function(){return Q},getInitializerItem:function(){return X}},associationField:{filterSelfField:function(b){return te!=="Form"?!0:(b==null?void 0:b.interface)==="m2o"},filterAssociationField:function(b){return(b==null?void 0:b.interface)&&!["subTable"].includes(b==null?void 0:b.interface)&&!b.treeChildren},getSchema:function(){return Q},getInitializerItem:function(){return X}}})},B=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],G=function(I){function te(Q){var X=Q.fieldSchema,Z=Q.form,b=X["x-component"]==="AssociationField.SubTable",J=b?Z.readPretty:!0;return J}return(0,m.jsx)(z,{block:"Table",selfField:{isReadPretty:te,filter:function(X){return X.interface!=="subTable"&&!X.treeChildren},getSchema:function(X,Z){var b,J,se=Z.targetCollection,q=Z.fieldSchema,le=Z.form,Ce=(se==null?void 0:se.template)==="file",_e=((b=X.uiSchema)===null||b===void 0?void 0:b["x-component"])==="Preview",ye=q["x-component"]==="AssociationField.SubTable",Be=te({fieldSchema:q,form:le});return{"x-component-props":Ce?{fieldNames:{label:"preview",value:"id"}}:_e?{size:"small"}:{},"x-read-pretty":Be||((J=X.uiSchema)===null||J===void 0?void 0:J["x-read-pretty"]),"x-decorator":ye?B.includes(X.interface)||Ce?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:O.p$,remove:O.pP}}},parentField:{isReadPretty:te,getSchema:function(X,Z){var b,J=Z.targetCollection,se=Z.fieldSchema,q=Z.form,le=(J==null?void 0:J.template)==="file",Ce=se["x-component"]==="AssociationField.SubTable",_e=te({fieldSchema:se,form:q});return{"x-component-props":le?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":_e||((b=X.uiSchema)===null||b===void 0?void 0:b["x-read-pretty"]),"x-decorator":Ce?B.includes(X.interface)||le?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:O.YT}}},associationField:{filterAssociationField:function(X){return!["subTable"].includes(X.interface)&&!X.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:O.p$,remove:O.pP}}}})},Y=e(22558)},8341:function(Ke,ae,e){"use strict";e.d(ae,{FE:function(){return T},GX:function(){return r},Yj:function(){return C}});var H=e(9783),u=e.n(H),k=e(67294),i=e(57638),g="x-data-source",C=function(v,A){var h;return(h=v.collectionFieldInterfaceManager.getFieldInterface(A.interface))===null||h===void 0?void 0:h.titleUsable},T=function(v){var A=(0,k.useMemo)(function(){if(v&&v!==i.ym)return u()({},g,v)},[v]);return A},r=function(v){return v&&v!==i.ym?u()({},g,v):{}}},69803:function(Ke,ae,e){"use strict";e.d(ae,{AL:function(){return w},C$:function(){return R},PE:function(){return a},jr:function(){return $},uN:function(){return L},yq:function(){return E}});var H=e(15009),u=e.n(H),k=e(99289),i=e.n(k),g=e(12444),C=e.n(g),T=e(72004),r=e.n(T),N=e(31996),v=e.n(N),A=e(26037),h=e.n(A),M=e(67294),n=e(26793),x=e(31601),K=e(15585),o=e(85893),a=(0,M.createContext)({getTitle:function(){return""},setTitle:function(){}});a.displayName="DocumentTitleContext";var R=M.memo(function(f){var y=f.addonBefore,p=f.addonAfter,P=(0,n.$)(),m=P.t,j=(0,n.$)("lm-desktop-routes"),D=j.t,c=(0,n.$)("lm-collections"),d=c.t,l=M.useRef(""),S=(0,M.useCallback)(function(){return l.current},[]),z=(0,M.useCallback)(function(U){document.title=l.current="".concat(y?" - ".concat(m(y)):"").concat(D(U||"")).concat(p?" - ".concat(d(p)):"")},[p,y,m,D,d]),O=(0,M.useMemo)(function(){return{getTitle:S,setTitle:z}},[S,z]);return(0,o.jsx)(a.Provider,{value:O,children:f.children})});R.displayName="DocumentTitleProvider";var E=function(y){var p,P=(0,K.HX)();return(0,o.jsx)(R,{addonAfter:P==null||(p=P.data)===null||p===void 0||(p=p.data)===null||p===void 0?void 0:p.title,children:y.children})},$=function(){return(0,M.useContext)(a)},w=function(y){var p=$(),P=p.setTitle;(0,M.useEffect)(function(){P(y)},[P,y])},L=function(f){v()(p,f);var y=h()(p);function p(){return C()(this,p),y.apply(this,arguments)}return r()(p,[{key:"load",value:function(){var P=i()(u()().mark(function j(){return u()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:this.app.use(E,this.options);case 1:case"end":return c.stop()}},j,this)}));function m(){return P.apply(this,arguments)}return m}()}]),p}(x.S)},67205:function(Ke,ae,e){"use strict";e.d(ae,{XA:function(){return o},kO:function(){return R},vY:function(){return a}});var H=e(97857),u=e.n(H),k=e(19632),i=e.n(k),g=e(80844),C=e(96486),T=e.n(C),r=e(58837),N=e(39742),v=e(4277),A=e(7105),h=e(87714),M=e(67294),n=e(85893),x=function(E){return E.AND="$and",E.OR="$or",E}(x||{}),K=(0,M.createContext)(null);K.displayName="FilterContext";var o=M.memo(function(E){var $=E.children,w=M.useRef([]),L=(0,M.useCallback)(function(p){typeof p=="function"?w.current=p(w.current):w.current=p},[]),f=(0,M.useCallback)(function(){return w.current},[]),y=(0,M.useMemo)(function(){return{getDataBlocks:f,setDataBlocks:L}},[f,L]);return(0,n.jsx)(K.Provider,{value:y,children:$})});o.displayName="FilterBlockProvider";var a=function($){var w,L=$.children,f=$.params,y=(0,r.Kx)(),p=R(),P=p.recordDataBlocks,m=(0,N.Pt)(),j=m.getDataBlockRequest,D=(0,g.useField)(),c=(0,g.useFieldSchema)(),d=(0,h.Fp)(),l=(0,M.useRef)(null),S=(0,v.tU)(),z=D&&D.decoratorType!=="FilterFormBlockProvider"&&D.decoratorType!=="FormBlockProvider"&&D.decoratorProps.blockType!=="filter",O=(0,M.useCallback)(function(){var U=j();P({uid:c["x-uid"],title:D.componentProps.title,doFilter:U.runAsync,collection:y,associatedFields:d,foreignKeyFields:y==null?void 0:y.getFields("isForeignKey"),defaultFilter:(f==null?void 0:f.filter)||{},service:U,dom:l.current,dataLoadingMode:S,clearFilter:function(B){var G,Y,W=((G=this.service.params)===null||G===void 0?void 0:G[0])||{},I=((Y=this.service.params)===null||Y===void 0||(Y=Y[1])===null||Y===void 0?void 0:Y.filters)||{};delete I[B];var te=(0,h.EO)([].concat(i()(Object.values(I).map(function(Q){return(0,A.WmO)(Q)})),[(f==null?void 0:f.filter)||{}]));this.service.run(u()(u()({},W),{},{page:1,filter:te}),{filters:I})},clearData:function(){this.service.mutate(void 0)}})},[d,y,S,D==null||(w=D.componentProps)===null||w===void 0?void 0:w.title,c,f==null?void 0:f.filter,P,j]);return(0,M.useEffect)(function(){z&&O()},[O,z]),(0,n.jsx)("div",{ref:l,children:L})},R=function(){var $=M.useContext(K),w=(0,M.useCallback)(function(){return($==null?void 0:$.getDataBlocks())||[]},[$]),L=(0,M.useCallback)(function(y){var p=$==null?void 0:$.getDataBlocks().find(function(P){return P.uid===y.uid});if(p){Object.assign(p,y);return}$==null||$.setDataBlocks(function(P){return[].concat(i()(P),[y])})},[$]),f=(0,M.useCallback)(function(y){$!=null&&$.getDataBlocks().every(function(p){return p.uid!==y})||$==null||$.setDataBlocks(function(p){return p.filter(function(P){return P.uid!==y})})},[$]);return $?{recordDataBlocks:L,getDataBlocks:w,removeDataBlock:f,inProvider:!0}:{inProvider:!1,recordDataBlocks:T().noop,getDataBlocks:w,removeDataBlock:T().noop}}},18386:function(Ke,ae,e){"use strict";e.d(ae,{$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(Ke,ae,e){"use strict";e.d(ae,{$f:function(){return m},EO:function(){return w},Fp:function(){return P},Op:function(){return c},Um:function(){return y},hi:function(){return D},jE:function(){return p},vC:function(){return $},x5:function(){return L},yr:function(){return j},zv:function(){return f}});var H=e(97857),u=e.n(H),k=e(19632),i=e.n(k),g=e(5574),C=e.n(g),T=e(9783),r=e.n(T),N=e(52677),v=e.n(N),A=e(80844),h=e(84157),M=e(96486),n=e.n(M),x=e(67294),K=e(10097),o=e(58837),a=e(13511),R=e(7105),E=e(67205),$=function(d){return d[d.FORM=0]="FORM",d[d.TABLE=1]="TABLE",d[d.TREE=2]="TREE",d[d.COLLAPSE=3]="COLLAPSE",d}({}),w=function(l){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",z=l.filter(function(O){if(O&&v()(O)==="object"&&!Array.isArray(O))return Object.values(O).filter(function(U){return U!==void 0}).length});return z.length===0?{}:z.length===1?z[0]:r()({},S,z)},L=function(l,S){var z;return(z=S.associatedFields)===null||z===void 0?void 0:z.filter(function(O){return l==null?void 0:l.some(function(U){return U===O.target})})},f=function(l,S){var z;return(z=S.foreignKeyFields)===null||z===void 0?void 0:z.filter(function(O){return l.fields.some(function(U){return U.type!=="belongsTo"&&U.foreignKey===O.name})})},y=function(l){var S=(0,E.kO)(),z=S.getDataBlocks,O=(0,A.useFieldSchema)(),U=(0,o.Kx)(),t=(0,a.Uv)(),B=t.getAllCollectionsInheritChain;if(l===$.FORM||l===$.COLLAPSE)return z().filter(function(G){return j(G.collection,U)});if(l===$.TABLE||l===$.TREE)return z().filter(function(G){var Y,W;return O["x-uid"]!==G.uid&&(j(G.collection,U)||((Y=L(B(U.name,U.dataSource),G))===null||Y===void 0?void 0:Y.length)||((W=f(U,G))===null||W===void 0?void 0:W.length))})},p=function(l,S,z,O){l=(0,h.flatten)(l,{breakOn:function(B){var G=B.value,Y=B.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(S[Y]))return!0;var W=z("".concat(O,".").concat(Y));if(W!=null&&W.target){if(Array.isArray(G))return!0;var I=W.targetKey||"id";if(G&&G[I]!=null)return!0}return!1}});var U={$and:Object.keys(l).map(function(t){var B=n().get(l,t),G=z("".concat(O,".").concat(t));return G!=null&&G.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(G.type)&&(B=(0,h.getValuesByPath)(B,G.targetKey||"id"),t="".concat(t,".").concat(G.targetKey||"id"),(G==null?void 0:G.interface)==="chinaRegion"&&(B=n().last(B))),!B&&B!==0&&B!==!1?null:r()({},t,r()({},S[t]||"$eq",B))}).filter(Boolean)};return U},P=function(){var l;return((l=(0,o.Kx)())===null||l===void 0?void 0:l.fields.filter(function(S){return m(S)}))||[]},m=function(l){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(l==null?void 0:l.interface)},j=function(l,S){return l.name===S.name&&l.dataSource===S.dataSource},D=function(){var l=(0,A.useFieldSchema)(),S=(0,E.kO)(),z=S.getDataBlocks,O=(0,K.findFilterTargets)(l),U=O.targets,t=O.uid,B=z(),G=(0,x.useState)(function(){return U&&U.some(function(X){return B.some(function(Z){return Z.uid===X.uid})})}),Y=C()(G,2),W=Y[0],I=Y[1],te=Object.keys(U||{});(0,x.useEffect)(function(){I(U&&U.some(function(X){return B.some(function(Z){return Z.uid===X.uid})}))},[te.length,U,B]);var Q=(0,x.useCallback)(function(X){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";B.forEach(function(J){var se,q,le=U.find(function(Be){return Be.uid===J.uid});if(le){n().isFunction(Z)&&(Z=Z(le)),n().isFunction(b)&&(b=b(le));var Ce=((se=J.service.params)===null||se===void 0?void 0:se[0])||{},_e=((q=J.service.params)===null||q===void 0||(q=q[1])===null||q===void 0?void 0:q.filters)||{};X!==void 0?_e[t]={$and:[r()({},Z,r()({},b,X))]}:delete _e[t];var ye=w([].concat(i()(Object.values(_e).map(function(Be){return(0,R.WmO)(Be)})),[J.defaultFilter]));J.doFilter(u()(u()({},Ce),{},{page:1,filter:ye}),{filters:_e})}})},[B,U,t]);return{isConnected:W,doFilter:Q}},c=function(l){for(;l;){if(l["x-filter-targets"])return l["x-decorator"]==="FilterFormBlockProvider";l=l.parent}return!1}},5772:function(Ke,ae,e){"use strict";e.d(ae,{C:function(){return i},z:function(){return k}});var H=e(67294),u=e(85893),k=H.createContext(null),i=function(C){return(0,u.jsx)(k.Provider,{value:C,children:C.children})}},7686:function(Ke,ae,e){"use strict";e.d(ae,{P:function(){return k}});var H=e(67294),u=e(5772),k=function(){return(0,H.useContext)(u.z)||{}}},53285:function(Ke,ae,e){"use strict";e.d(ae,{Cm:function(){return H.C},P5:function(){return u.P},z_:function(){return H.z}});var H=e(5772),u=e(7686)},57105:function(Ke,ae,e){"use strict";e.d(ae,{_9:function(){return B},$:function(){return Q},sq:function(){return Z},ri:function(){return z},mz:function(){return t},cl:function(){return X},QJ:function(){return O},gR:function(){return U}});var H=e(97857),u=e.n(H),k=e(80844),i=e(84327),g=e(90105),C=e(96486),T=e.n(C),r=e(67294),N=e(35746),v=e(58837),A=e(93323),h=e(64910),M=e(96365),n=e(52677),x=e.n(n),K=e(85893),o=function(J,se){if(!(!J&&!se)&&!(0,i.isFn)(J))return(0,K.jsxs)(r.Fragment,{children:[J,se]})},a=function(J){return J&&(x()(J)==="object"||typeof J=="function")},R=function(J,se,q){return(0,i.isFn)(J)?J(se,q):J},E=function(J){var se,q=(0,r.useContext)(k.SchemaComponentsContext),le=J.field,Ce=o(R(J.children,le,le.form),(se=le.content)!==null&&se!==void 0?se:le.componentProps.children);if(le.display!=="visible")return null;var _e=function(ie){var me;return a(ie)?ie:(me=i.FormPath.getIn(q,ie))!==null&&me!==void 0?me:ie},ye=function(ie){return le.decoratorType?r.createElement(_e(le.decoratorType),le.decoratorProps,ie):(0,K.jsx)(r.Fragment,{children:ie})},Be=function(){return le.componentType?r.createElement(_e(le.componentType),u()(u()({},le.componentProps),{},{value:le.value}),Ce):Ce};return ye(Be())};E.displayName="NocoBaseReactiveInternal";var $=E;$.displayName="NocoBaseReactiveField";var w=e(12444),L=e.n(w),f=e(72004),y=e.n(f),p=e(9783),P=e.n(p);function m(b){return new j(b)}var j=function(){function b(J){L()(this,b),P()(this,"props",void 0),P()(this,"initialized",void 0),P()(this,"loading",void 0),P()(this,"validating",void 0),P()(this,"submitting",void 0),P()(this,"selfModified",void 0),P()(this,"active",void 0),P()(this,"visited",void 0),P()(this,"mounted",void 0),P()(this,"unmounted",void 0),P()(this,"inputValues",void 0),P()(this,"inputValue",void 0),P()(this,"feedbacks",void 0),P()(this,"title",void 0),P()(this,"description",void 0),P()(this,"display",void 0),P()(this,"pattern",void 0),P()(this,"editable",void 0),P()(this,"disabled",void 0),P()(this,"readOnly",void 0),P()(this,"readPretty",void 0),P()(this,"visible",void 0),P()(this,"hidden",void 0),P()(this,"dataSource",void 0),P()(this,"validator",void 0),P()(this,"required",void 0),P()(this,"content",void 0),P()(this,"initialValue",void 0),P()(this,"value",void 0),P()(this,"data",void 0),P()(this,"decorator",void 0),P()(this,"component",void 0),P()(this,"decoratorProps",void 0),P()(this,"componentProps",void 0),P()(this,"decoratorType",void 0),P()(this,"componentType",void 0),P()(this,"path",void 0),P()(this,"form",void 0),P()(this,"address",void 0),this.props=J,this.initialize()}return y()(b,[{key:"initialize",value:function(){var se,q,le,Ce,_e,ye,Be,Pe,ie,me,pe,ee,ue,ge,Ee,Me,Te,Ae,Ie,be,fe=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=fe(this.props.title||((se=this.props.schema)===null||se===void 0?void 0:se.title)),this.description=fe(this.props.description||((q=this.props.schema)===null||q===void 0?void 0:q.description)),this.display="visible",this.editable=this.props.editable||((le=this.props.schema)===null||le===void 0?void 0:le["x-editable"]),this.disabled=this.props.disabled||((Ce=this.props.schema)===null||Ce===void 0?void 0:Ce["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||((ye=this.props.schema)===null||ye===void 0?void 0:ye["x-visible"]),this.hidden=this.props.hidden||((Be=this.props.schema)===null||Be===void 0?void 0:Be["x-hidden"]),this.dataSource=fe(this.props.dataSource||((Pe=this.props.schema)===null||Pe===void 0?void 0:Pe.enum)),this.validator=this.props.validator,this.required=this.props.required||!!((ie=this.props.schema)!==null&&ie!==void 0&&ie.required),this.content=fe(this.props.content||((me=this.props.schema)===null||me===void 0?void 0:me["x-content"])),this.initialValue=fe(this.props.initialValue||((pe=this.props.schema)===null||pe===void 0?void 0:pe.default)),this.value=fe(this.props.value),this.data=this.props.data||((ee=this.props.schema)===null||ee===void 0?void 0:ee["x-data"]),this.decorator=this.props.decorator?(0,i.toArr)(this.props.decorator):[(ue=this.props.schema)===null||ue===void 0?void 0:ue["x-decorator"],(ge=this.props.schema)===null||ge===void 0?void 0:ge["x-decorator-props"]],this.component=this.props.component?(0,i.toArr)(this.props.component):[(Ee=this.props.schema)===null||Ee===void 0?void 0:Ee["x-component"],(Me=this.props.schema)===null||Me===void 0?void 0:Me["x-component-props"]],this.decoratorProps=((Te=this.props.schema)===null||Te===void 0?void 0:Te["x-decorator-props"])||{},this.componentProps=((Ae=this.props.schema)===null||Ae===void 0?void 0:Ae["x-component-props"])||{},this.decoratorType=(Ie=this.props.schema)===null||Ie===void 0?void 0:Ie["x-decorator"],this.componentType=(be=this.props.schema)===null||be===void 0?void 0:be["x-component"],this.path={},this.form={},this.address={concat:T().noop}}}]),b}(),D=function(J){var se=(0,M.e)(),q=(0,k.useFieldSchema)(),le=(0,r.useMemo)(function(){return m(u()(u()({},J),{},{compile:se}))},[]);return Object.assign(le.componentProps,q["x-component-props"]),le.value=J.value,(0,K.jsx)(k.FieldContext.Provider,{value:le,children:(0,K.jsx)($,{field:le,children:J.children})})},c=r.createContext({}),d=r.createContext(T().noop),l=function(J){var se=J.children,q=J.refresh,le=U(),Ce=(0,r.useCallback)(function(_e){q(),_e!=null&&_e.refreshParentSchema&&(le==null||le())},[le,q]);return(0,K.jsx)(d.Provider,{value:Ce,children:se})},S=r.createContext(T().noop),z=function(J){var se=J.children,q=J.refresh;return(0,K.jsx)(S.Provider,{value:q,children:se})},O=function(){return r.useContext(S)},U=function(){return r.useContext(d)},t=function(){return r.useContext(c)||{}},B=function(J){var se=J.children,q=J.fieldSchema,le=(0,v.Kx)(),Ce=(0,N.d9)(),_e=q==null?void 0:q.name,ye=(0,r.useMemo)(function(){var Be;if(!le)return null;var Pe=q==null||(Be=q["x-component-props"])===null||Be===void 0?void 0:Be.field;return Ce.getCollectionField(q==null?void 0:q["x-collection-field"])||Pe||le.getField((Pe==null?void 0:Pe.name)||_e)},[le,Ce,q,_e]);return(0,K.jsx)(c.Provider,{value:ye,children:se})},G=T().memoize(function(b,J){return b.toFieldProps({scope:J})}),Y=function(J){var se=(0,k.useExpressionScope)();return G(J,se)},W=function(J){var se=(0,k.useField)();if(J.onlyRenderProperties){var q;return J.basePath||(se==null||(q=se.address)===null||q===void 0?void 0:q.concat(J.name))}return J.basePath||(se==null?void 0:se.address)},I=function(J,se,q){var le=J.toJSON();if(q){if(!le.properties)return J;var Ce=Object.keys(le.properties)[0],_e=Object.values(le.properties)[0];return le.properties[Ce]=(0,i.merge)(T().omit(se,"type","x-read-pretty"),_e),new k.Schema(le)}return new k.Schema((0,i.merge)(T().omit(se,"type","x-read-pretty"),le))},te=function(J){var se=J.schema,q=J.field,le=J.basePath,Ce=J.mapProperties,_e=J.filterProperties,ye=J.propsRecursion,Be=J.values,Pe=J.isUseFormilyField,ie=k.Schema.getOrderProperties(se);return ie.length?(0,K.jsx)(r.Fragment,{children:ie.map(function(me,pe){var ee=me.schema,ue=me.key,ge=(q==null?void 0:q.address)||le,Ee=ee;if((0,i.isFn)(Ce)){var Me=Ce(ee,ue);Me&&(Ee=Me)}if((0,i.isFn)(_e)&&_e(Ee,ue)===!1)return null;var Te=(0,i.isBool)(ye)&&ye?(0,K.jsx)(Z,{propsRecursion:!0,filterProperties:_e,mapProperties:Ce,schema:Ee,name:ue,basePath:ge,values:T().get(Be,ue),isUseFormilyField:Pe}):(0,K.jsx)(Z,{schema:Ee,name:ue,basePath:ge,values:T().get(Be,ue),isUseFormilyField:Pe});return Ee["x-component"]==="CollectionField"?(0,K.jsx)(Q.Provider,{value:!0,children:(0,K.jsx)(B,{fieldSchema:Ee,children:Te})},"".concat(pe,"-").concat(ue)):(0,K.jsx)(Q.Provider,{value:!1,children:(0,K.jsx)(c.Provider,{value:h.Nu,children:Te})},"".concat(pe,"-").concat(ue))})}):null},Q=r.createContext(!1),X=function(){return r.useContext(Q)},Z=r.memo(function(b){var J=b.schema,se=b.name,q=b.onlyRenderProperties,le=b.onlyRenderSelf,Ce=b.mapProperties,_e=b.filterProperties,ye=b.propsRecursion,Be=b.values,Pe=b.isUseFormilyField,ie=Pe===void 0?!0:Pe,me=b.uiSchema,pe=W(b),ee=(0,r.useRef)(null),ue=(0,r.useMemo)(function(){return ee.current=null,new k.Schema(J)},[J]),ge=t(),Ee=ge.uiSchema,Me=ge.defaultValue,Te=(0,g.Z)(),Ae=(0,r.useContext)(A.A),Ie=Ae.onChange,be=ee.current||ue,fe=(0,r.useCallback)(function(){var re=be.parent;ee.current=new k.Schema(be.toJSON(),re),re!=null&&re.properties&&Object.keys(re.properties).forEach(function(Oe){Oe===be.name&&(re.properties[Oe]=ee.current)}),Te(),Ie==null||Ie()},[be,Ie,Te]),oe=(0,r.useMemo)(function(){return me?I(be,me,q):Ee?(Ee.default=Me,I(be,Ee,q)):be},[Ee,Me,be,q,me]),F=Y(oe),ce=function(Oe){if(!le)return te({schema:be,field:Oe,basePath:pe,mapProperties:Ce,filterProperties:_e,propsRecursion:ye,values:Be,isUseFormilyField:ie})},Se=function(){return(0,i.isValid)(se)?oe.type==="object"?q?ce():(0,K.jsx)(k.ObjectField,u()(u()({},F),{},{name:se,basePath:pe,children:ce})):oe.type==="array"?(0,K.jsx)(k.ArrayField,u()(u()({},F),{},{name:se,basePath:pe})):oe.type==="void"?q?ce():(0,K.jsx)(k.VoidField,u()(u()({},F),{},{name:se,basePath:pe,children:ce})):ie?(0,K.jsx)(k.Field,u()(u()({},F),{},{name:se,basePath:pe})):(0,K.jsx)(D,{name:se,value:Be,initialValue:Be,basePath:pe,schema:oe}):ce()};return be?(0,K.jsx)(k.SchemaContext.Provider,{value:be,children:(0,K.jsx)(l,{refresh:fe,children:Se()})}):(0,K.jsx)(r.Fragment,{})});Z.displayName="NocoBaseRecursionField"},69962:function(Ke,ae,e){"use strict";e.d(ae,{wI:function(){return w},YO:function(){return y},kK:function(){return M},uH:function(){return A},mg:function(){return f}});var H=e(5574),u=e.n(H),k=e(9361),i=e(28459),g=e(96486),C=e.n(g),T=e(67294),r=e(97857),N=e.n(r),v={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}},A=v;function h(p){var P;return(P=p.token)!==null&&P!==void 0&&P.colorSettings||(p.token=N()(N()({},p.token),A.token)),p}var M=h,n=function(P,m){var j=m||k.Z.defaultAlgorithm(P);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},x=function(P){return Array.isArray(P.algorithm)?P.algorithm.includes(n)||P.algorithm.push(n):P.algorithm=[P.algorithm,n].filter(Boolean),P.algorithm=P.algorithm.filter(Boolean),P},K=e(85893),o=e(3321),a=e(12174),R=e(68091),E=(0,T.memo)(function(p){var P=p.children,m=(0,R.qD)(),j=o.Z.useApp(),D=j.notification,c=(0,a.LY)();return(0,T.useEffect)(function(){c.notification=D,m.notification=D},[D]),(0,K.jsx)(K.Fragment,{children:P})});E.displayName="AppInner";var $=function(P){var m=P.children,j=P.className,D=P.style;return(0,K.jsx)(o.Z,{className:j,style:N()({height:"100%"},D),children:(0,K.jsx)(E,{children:m})})};$.displayName="AntdAppProvider";var w=$,L=(0,T.createContext)(null);L.displayName="GlobalThemeContext";var f=function(){return T.useContext(L)||{theme:{},isDarkTheme:!1}},y=function(P){var m=P.children,j=P.theme,D=T.useState(j||A),c=u()(D,2),d=c[0],l=c[1],S=(0,T.useRef)(null),z=(0,T.useRef)(null),O=(0,T.useMemo)(function(){var W=d==null?void 0:d.algorithm;return Array.isArray(W)?W.includes(k.Z.darkAlgorithm):W===k.Z.darkAlgorithm},[d==null?void 0:d.algorithm]),U=(0,T.useCallback)(function(W){z.current=W&&C().cloneDeep(W)},[]),t=(0,T.useCallback)(function(){return z.current},[]),B=(0,T.useCallback)(function(W){S.current=W&&C().cloneDeep(W)},[]),G=(0,T.useCallback)(function(){return S.current},[]),Y=(0,T.useMemo)(function(){return{theme:x(d),setTheme:l,setCurrentSettingTheme:B,getCurrentSettingTheme:G,setCurrentEditingTheme:U,getCurrentEditingTheme:t,isDarkTheme:O}},[t,G,O,U,B,d]);return(0,K.jsx)(L.Provider,{value:Y,children:(0,K.jsx)(i.ZP,{theme:M(Y.theme),children:m})})}},15503:function(Ke,ae,e){"use strict";e.d(ae,{M:function(){return x},t:function(){return K}});var H=e(97857),u=e.n(H),k=e(96695),i=e.n(k),g=e(80844),C=e(96486),T=e.n(C),r=e(67294),N=e(7105),v=e(57953),A=e(85893),h=function(){},M=function(a,R,E){var $=void 0;return T().isFunction(a)?$=a:($=R[a],$||console.error("".concat(E," is not registered"))),$||h},n=function(a,R){if(!a)return h;if(T().isFunction(a))return a;var E=a.split("."),$,w=i()(E),L;try{for(w.s();!(L=w.n()).done;){var f=L.value;$=M(f,$||R,a)}}catch(y){w.e(y)}finally{w.f()}return $};function x(o,a){var R=(0,g.useExpressionScope)(),E=n(o,R)(a);return E}function K(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=a.displayName||o.displayName||o.name,E=function $(w){var L=(0,N.ngQ)(),f=L.dn,y=L.findComponent,p=(0,r.useMemo)(function(){var j=f.getSchemaAttribute("x-component"),D=f.getSchemaAttribute("x-decorator"),c=f.getSchemaAttribute("x-use-component-props"),d=f.getSchemaAttribute("x-use-decorator-props");if(j&&c&&y(j)===$)return c;if(D&&d&&y(D)===$)return d},[f]),P=x(p,w),m=(0,r.useMemo)(function(){return u()(u()({},w),P)},[P,w]);return(0,A.jsx)(r.Suspense,{fallback:(0,A.jsx)(v.Z,{}),children:(0,A.jsx)(o,u()(u()({},m),{},{children:w.children}))})};return o.displayName=R,E.displayName="withSchemaProps(".concat(R,")"),E}},83335:function(Ke,ae,e){"use strict";e.d(ae,{C:function(){return r}});var H=e(97857),u=e.n(H),k=e(48054),i=e(39742),g=e(67294),C=e(85893),T=function(){var v;return!!((v=(0,i.hS)())!==null&&v!==void 0&&v.loading)},r=function(v,A){var h=A||{},M=h.useLoading,n=M===void 0?T:M,x=h.displayName,K=h.SkeletonComponent,o=K===void 0?k.Z:K,a=g.memo(function(R){var E=n(),$=(0,g.useRef)(!1);return!$.current&&E?(0,C.jsx)(o,{}):($.current=!0,(0,C.jsx)(v,u()({},R)))});return a.displayName=x||"".concat(v.displayName,"(withSkeletonComponent)")||0,a}},29392:function(Ke,ae,e){"use strict";e.d(ae,{W:function(){return H},S:function(){return i}});var H=function(){return"nocobase-admin-menu"},u=e(67294),k=function(){var C=(0,u.useRef)("initial-scale=0.1"),T=(0,u.useRef)();(0,u.useEffect)(function(){var N=document.querySelector('meta[name="viewport"]');N?C.current=N.content:(N=document.createElement("meta"),N.name="viewport"),N&&(N.content="width=device-width, initial-scale=1, user-scalable=0",T.current=N)},[]);var r=function(){T.current&&(T.current.content=C.current)};return{metaRef:T,restore:r}};function i(){var g=k(),C=g.metaRef,T=g.restore;(0,u.useEffect)(function(){if(C.current)return document.head.insertBefore(C.current,document.head.firstChild),function(){T()}},[])}},74820:function(Ke,ae,e){"use strict";e.d(ae,{d5:function(){return N},iX:function(){return A},nu:function(){return v}});var H=e(19632),u=e.n(H),k=e(96486),i=e.n(k),g=e(67294),C=e(85893),T=(0,g.createContext)(null);T.displayName="GetMenuItemContext";var r=(0,g.createContext)(null);r.displayName="GetMenuItemsContext";var N=function(){return(0,g.useContext)(T)||{}},v=function(){return(0,g.useContext)(r)||{}},A=function(){var M=(0,g.useRef)([]),n=(0,g.useRef)(null),x=(0,g.useRef)(!1),K=(0,g.useCallback)(function(E){var $=E.limitCount;return x.current?(x.current=!1,n.current?n.current():$&&M.current.length>$?(0,C.jsx)(C.Fragment,{children:M.current.slice(0,$).map(function(w,L){return(0,C.jsx)(w,{},L)})}):(0,C.jsx)(C.Fragment,{children:M.current.map(function(w,L){return(0,C.jsx)(w,{},L)})})):null},[]),o=(0,g.useCallback)(function(E){var $=[],w=function(f){$.push(f),$.sort(function(y,p){return(y.order||0)-(p.order||0)})};return x.current=!0,n.current=function(){var L=$.filter(function(f){return f.notdelete}).map(function(f){return i().omit(f,"notdelete")});return $.length=0,$.push.apply($,u()(L)),(0,C.jsx)(r.Provider,{value:{pushMenuItem:w},children:E()})},$},[]),a=(0,g.useCallback)(function(E){var $={},w=function(f){Object.assign($,f)};return x.current=!0,M.current.push(function(){return(0,C.jsx)(T.Provider,{value:{collectMenuItem:w},children:E()})}),$},[]),R=(0,g.useCallback)(function(){M.current=[]},[]);return{Component:K,getMenuItems:o,getMenuItem:a,clean:R}}},71098:function(Ke,ae,e){"use strict";e.d(ae,{j:function(){return r}});var H=e(39379),u=e(85418),k=e(67294),i=e(12174),g=e(35310),C=e(15585),T=e(85893);function r(){var N,v,A=(0,C.HX)()||{},h=A.data,M=(0,i.LY)();return(h==null||(N=h.data)===null||N===void 0?void 0:N.enabledLanguages.length)>1&&(0,T.jsx)(u.Z,{menu:{onClick:function(x){M.auth.setLocale(x.key),window.location.reload()},selectable:!0,defaultSelectedKeys:[M.auth.locale],items:h==null||(v=h.data)===null||v===void 0||(v=v.enabledLanguages)===null||v===void 0?void 0:v.map(function(n){return{key:n,label:g.ZP[n].label}})},children:(0,T.jsx)(H.Z,{style:{fontSize:24}})})}},58384:function(Ke,ae,e){"use strict";e.d(ae,{a:function(){return g},v:function(){return i}});var H=e(36609),u=e(57715),k=e(35310);function i(T,r){return r?"{{t(".concat(JSON.stringify(T),", ").concat(JSON.stringify(r),")}}"):"{{t(".concat(JSON.stringify(T),")}}")}var g=H.default.createInstance(),C={};Object.keys(k.ZP).forEach(function(T){C[T]=k.ZP[T].resources}),g.use(u.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(Ke,ae,e){"use strict";e.d(ae,{JO:function(){return K},OL:function(){return n},ci:function(){return h},q5:function(){return M},fm:function(){return x}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(53206),C=e(16165),T=e(91321),r=e(67294),N=e(85893),v=["type","component"],A,h=new Map;function M(a){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A;h.set(a.toLowerCase(),R)}function n(a){return a?h.has(a.toLowerCase()):!1}function x(a){Object.keys(a).forEach(function(R){M(R,a[R])})}Object.keys(g).forEach(function(a){M(a,g[a])});var K=function(R){var E=R.type,$=E===void 0?"":E,w=R.component,L=i()(R,v);if(w)return(0,N.jsx)(C.Z,u()({component:w},L));if($&&h.has($.toLowerCase())){var f=h.get($.toLowerCase());return(0,N.jsx)(f,u()({},L))}return $&&A?(0,N.jsx)(A,{type:$}):null};K.createFromIconfontCN=function(a){A=(0,T.Z)(a)},K.register=function(a){x(a)};var o=null},21143:function(Ke,ae,e){"use strict";e.r(ae),e.d(ae,{ACLActionParamsContext:function(){return E.R1},ACLActionProvider:function(){return E.mE},ACLCollectionFieldProvider:function(){return E.tq},ACLCollectionProvider:function(){return E.Hh},ACLContext:function(){return E.R3},ACLCustomContext:function(){return E.a3},ACLMenuItemProvider:function(){return E.fJ},ACLPane:function(){return E.$M},ACLPlugin:function(){return E.pz},ACLProvider:function(){return E.Z5},ACLRolesCheckProvider:function(){return E.VV},ADMIN_SETTINGS_KEY:function(){return f.eB},ADMIN_SETTINGS_PATH:function(){return f.oz},APIClient:function(){return w.lP},APIClientContext:function(){return w._Z},APIClientProvider:function(){return w.Xb},AccessControl:function(){return q.Mj},Action:function(){return b.aUM},ActionBar:function(){return b.olz},ActionBarAssociationFilterAction:function(){return J.cm},ActionBarProvider:function(){return b.N0i},ActionContext:function(){return b.fWn},ActionContextNoRerender:function(){return b.mlL},ActionContextProvider:function(){return b.EIK},ActionDesigner:function(){return b.$Lt},ActionInitializer:function(){return J.$M},ActionInitializerItem:function(){return J.eq},AdminDynamicPage:function(){return Z.zf},AdminLayout:function(){return Z.lq},AdminLayoutPlugin:function(){return Z.r3},AdminProvider:function(){return Z.IA},AdminSettingsLayout:function(){return te.i9},AfterSuccess:function(){return b.$b8},AntdAppProvider:function(){return O.wI},AntdConfigPlugin:function(){return $.kT},AntdConfigProvider:function(){return $.zy},AntdSchemaComponentPlugin:function(){return b.HTy},AntdSchemaComponentProvider:function(){return b.lkv},AppComponent:function(){return f.y$},AppLangContext:function(){return $.UJ},AppendsTreeSelect:function(){return b.rDu},Application:function(){return f.Mx},ApplicationContext:function(){return f.Zz},AssignedFieldValues:function(){return b.eYL},AssociatedFields:function(){return J.Pg},AssociationField:function(){return b.Rat},AssociationFieldMode:function(){return b.oAt},AssociationFieldModeProvider:function(){return b.E7E},AssociationFilter:function(){return J.tr},AssociationFilterDesignerDelete:function(){return J.nr},AssociationFilterDesignerDisplayField:function(){return J.N2},AssociationFilterPlugin:function(){return J.Ys},AssociationOrCollectionProvider:function(){return d.dq},AssociationProvider:function(){return d.ym},AssociationSelect:function(){return b.$SD},AsyncDataContext:function(){return y.tO},AsyncDataProvider:function(){return y.pW},AttachmentList:function(){return b.fUi},AutoComplete:function(){return b.QcG},BackButtonUsedInSubPage:function(){return b.MLy},BaseVariableProvider:function(){return q.Nx},BlankComponent:function(){return f.X_},Block:function(){return b.gOu},BlockAssociationContext:function(){return p.WJ},BlockContext:function(){return p.Qj},BlockInitializer:function(){return J.bn},BlockItem:function(){return b.jYG},BlockItemCard:function(){return b.PuU},BlockItemCardContext:function(){return b.smG},BlockItemInitializer:function(){return J.VD},BlockProvider:function(){return p.ZJ},BlockRequestContextProvider:function(){return d.uz},BlockRequestContext_deprecated:function(){return p.br},BlockRequestLoadingContext:function(){return d.q4},BlockRequestProvider:function(){return d.N4},BlockRequestProvider_deprecated:function(){return p.M0},BlockResourceContext:function(){return p.wH},BlockSchemaComponentPlugin:function(){return p.jF},BlockSchemaComponentProvider:function(){return p.UC},BlockSchemaToolbar:function(){return ge.G},BlockTemplateContext:function(){return le.k0},BlockTemplateDetails:function(){return le.bs},BlockTemplatePage:function(){return le.EF},BlockTemplateProvider:function(){return le.AG},BlockTemplatesPane:function(){return le.L},ButtonEditor:function(){return b.C1I},CSSVariableProvider:function(){return c.O},CardItem:function(){return b.Ssf},Cascader:function(){return b.vTp},Checkbox:function(){return b.XZJ},ClearCollectionFieldContext:function(){return d.m9},Collection:function(){return d.FE},CollectionContext:function(){return d.WH},CollectionDeletedPlaceholder:function(){return d.zW},CollectionField:function(){return d.sb},CollectionFieldContext:function(){return d.v_},CollectionFieldInterface:function(){return d.SY},CollectionFieldInterfaceManager:function(){return d.Z},CollectionFieldProvider:function(){return d.YT},CollectionFieldUISchemaProvider:function(){return Ne._9},CollectionFieldsToFormInitializerItems:function(){return d.Cd},CollectionFieldsToInitializerItems:function(){return d.rJ},CollectionFieldsToTableInitializerItems:function(){return d.lC},CollectionManager:function(){return d.w4},CollectionManagerContext:function(){return d.IX},CollectionManagerProvider:function(){return d.xw},CollectionNotAllowViewPlaceholder:function(){return d.pD},CollectionProvider:function(){return d.YQ},CollectionRecord:function(){return d.DI},CollectionRecordContext:function(){return d.vI},CollectionRecordProvider:function(){return d.E0},CollectionSelect:function(){return b.Tt2},CollectionTemplate:function(){return d.Pl},CollectionTemplateManager:function(){return d.yM},ColorPicker:function(){return b.zH8},ColorSelect:function(){return b.Q5L},CompatibleSchemaInitializer:function(){return f.nl},CreateFilterActionInitializer:function(){return J.nl},CreateResetActionInitializer:function(){return J.cz},Cron:function(){return b.Pok},CronSet:function(){return b.Vm0},CurrentAppInfoContext:function(){return L.RQ},CurrentAppInfoProvider:function(){return L.Gq},CurrentPageUidContext:function(){return f.WY},CurrentPageUidProvider:function(){return f.lN},CurrentTabUidContext:function(){return f.yt},CurrentTabUidProvider:function(){return f.vm},CurrentUserContext:function(){return Be.Ec},CurrentUserProvider:function(){return Be.MF},CurrentUserSettingsMenuProvider:function(){return Be.mY},CustomRouterContextProvider:function(){return f.O6},CustomizeActionInitializer:function(){return J.yE},DEBOUNCE_WAIT:function(){return Pe.on},DEFAULT_DATA_SOURCE_KEY:function(){return d.Ip},DEFAULT_DATA_SOURCE_TITLE:function(){return d.UC},DataBlockCollector:function(){return S.vY},DataBlockContext:function(){return d.hZ},DataBlockInitializer:function(){return J.dn},DataBlockProvider:function(){return d.KY},DataBlockResourceContext:function(){return d.T1},DataBlockResourceProvider:function(){return d.eh},DataSource:function(){return d.o2},DataSourceApplicationProvider:function(){return d.i},DataSourceCollectionCascader:function(){return b.xI_},DataSourceContext:function(){return d.NT},DataSourceManager:function(){return d.AK},DataSourceManagerContext:function(){return d.up},DataSourceManagerProvider:function(){return d.kv},DataSourceProvider:function(){return d.LX},DataSourceSelect:function(){return b.Lip},DateFormatCom:function(){return b.WN4},DatePicker:function(){return b.Mtg},DatePickerProvider:function(){return b.iNu},DefaultValueProvider:function(){return q.yT},Designable:function(){return b.zzt},DesignableSwitch:function(){return b._bl},Details:function(){return b.POi},DetailsBlockContext:function(){return p.LR},DetailsBlockProvider:function(){return p.nw},DetailsDesigner:function(){return b.AOY},Divider:function(){return b.izJ},DndContext:function(){return b.LBT},DocumentTitleContext:function(){return l.PE},DocumentTitleProvider:function(){return l.C$},DragHandler:function(){return b.IWB},DraggableContext:function(){return b.LCt},DropdownVisibleContext:function(){return Be.yI},EMPTY_OBJECT:function(){return Pe.Nu},EditComponent:function(){return b.FyH},EditDefaultValue:function(){return b.Nir},EditDescription:function(){return b.q8U},EditOperator:function(){return b.HGA},EditPattern:function(){return b.QTe},EditRequired:function(){return b.JEX},EditSortField:function(){return b.fAH},EditTitle:function(){return b.$w$},EditTitleField:function(){return b.nBj},EditTooltip:function(){return b.Oct},EditValidationRules:function(){return b.zdw},Editable:function(){return b.CXR},EllipsisWithTooltip:function(){return b.BQs},ErrorFallback:function(){return b.Hj5},Expand:function(){return b.M0b},ExpiresRadio:function(){return b.Dnz},ExtendCollectionsContext:function(){return d.Xc},ExtendCollectionsProvider:function(){return d.j5},Filter:function(){return b.wn$},FilterAction:function(){return b.GzZ},FilterActionContext:function(){return b.tJZ},FilterAssociatedFields:function(){return J.EC},FilterBlockProvider:function(){return S.XA},FilterBlockType:function(){return S.vC},FilterContext:function(){return b.fox},FilterDynamicComponent:function(){return b.VTd},FilterFormBlockProvider:function(){return p.WI},FilterLogicContext:function(){return b.XsZ},FilterParentCollectionFields:function(){return J.d6},FlagContext:function(){return z.z_},FlagProvider:function(){return z.Cm},Form:function(){return b.l09},FormActiveFieldsProvider:function(){return p.T2},FormBlockContext:function(){return p.TC},FormBlockInitializer:function(){return Ee.Jo},FormBlockProvider:function(){return p.$R},FormDialog:function(){return b.D_t},FormField:function(){return b.WiK},FormFieldContext:function(){return p.uW},FormFieldProvider:function(){return p.$1},FormItem:function(){return b.xJW},FormItemSchemaToolbar:function(){return Ee.Oo},FormProvider:function(){return b.RVL},FormV2:function(){return b.Bc8},G2Plot:function(){return b.hG9},G2PlotInitializer:function(){return J.oY},G2PlotRenderer:function(){return b.DCh},GeneralSchemaDesigner:function(){return q.aN},GeneralSchemaItems:function(){return se.Mj},GlobalThemeProvider:function(){return O.YO},Grid:function(){return b.rjZ},GridCard:function(){return b.Cqo},GridRowContext:function(){return b.jg7},HTMLEncode:function(){return b.gsn},HeightMode:function(){return q.j0},Icon:function(){return B.JO},IconPicker:function(){return b.$18},InitializerWithSwitch:function(){return J.sp},Input:function(){return b.IIB},InputNumber:function(){return b.RnZ},InputReadPretty:function(){return b.mX2},InputRecordPicker:function(){return b.zDC},InternalAdminLayout:function(){return Z.Me},IsInNocoBaseRecursionFieldContext:function(){return Ne.$},IsSubPageClosedByPageMenuProvider:function(){return f.oO},Json:function(){return b.Phs},KeepAlive:function(){return Z.Ob},LAZY_COMPONENT_KEY:function(){return G.XI},LOADING_DELAY:function(){return Pe.fw},Layout:function(){return q.Ar},LayoutContent:function(){return Z.bU},List:function(){return b.aVo},LocalDataSource:function(){return d.nC},LocationSearchContext:function(){return f.xJ},Markdown:function(){return b.UGj},MarkdownReadPretty:function(){return b.yq5},MaybeCollectionProvider:function(){return p.bH},Menu:function(){return b.v2r},MenuConfigure:function(){return E.dr},ModalActionSchemaInitializerItem:function(){return J.gy},NanoIDInput:function(){return b.HIW},NocoBaseBuildInPlugin:function(){return W.q},NocoBaseDesktopRouteType:function(){return Z.HQ},NocoBaseRecursionField:function(){return Ne.sq},OpenModeProvider:function(){return F.W},PMPlugin:function(){return te.Np},Page:function(){return b.T3C},PagePopups:function(){return b.d97},PageTabs:function(){return b.hGv},Pagination:function(){return b.tlE},ParentCollectionFields:function(){return J.cd},Password:function(){return b.rop},Percent:function(){return b.gGi},PermissionContext:function(){return E.Bk},PermissionProvider:function(){return E.Wx},PinnedListPlugin:function(){return I.r1},PinnedPluginList:function(){return I.B$},PinnedPluginListContext:function(){return I.uv},PinnedPluginListProvider:function(){return I.tc},Plugin:function(){return f.Sy},PluginManager:function(){return te.Q$},PluginManagerLink:function(){return te.s0},PluginSettingsManager:function(){return f.nS},PopupContextProvider:function(){return ce.y},PopupSettingsProvider:function(){return b.DBW},PoweredBy:function(){return Q.C},Preview:function(){return b.MBS},QuickEdit:function(){return b.pGO},REGEX_OF_VARIABLE:function(){return Pe.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return Pe.Bj},Radio:function(){return b.Y8K},ReadPretty:function(){return b.iVT},ReadPrettyRecordPicker:function(){return b.ODP},RecordAssociationBlockInitializer:function(){return J.$i},RecordAssociationDetailsBlockInitializer:function(){return J.Mr},RecordAssociationFormBlockInitializer:function(){return J.EK},RecordAssociationGridCardBlockInitializer:function(){return J.zb},RecordAssociationListBlockInitializer:function(){return J.Ok},RecordContext_deprecated:function(){return X.rY},RecordFormBlockInitializer:function(){return Ee.se},RecordIndexContext:function(){return X.Pc},RecordIndexProvider:function(){return X.li},RecordLink:function(){return p.hD},RecordPicker:function(){return b.lbb},RecordPickerContext:function(){return b.b7w},RecordPickerProvider:function(){return b.sUk},RecordProvider:function(){return X.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return J.CC},RecordSimpleProvider:function(){return X.Qh},RefreshComponentProvider:function(){return Ne.ri},RefreshDataBlockRequest:function(){return b.x1j},RemoteDocumentTitlePlugin:function(){return l.uN},RemoteDocumentTitleProvider:function(){return l.yq},RemoteSchemaComponent:function(){return b.m1v},RemoteSchemaTemplateManagerPlugin:function(){return le.Wc},RemoteSchemaTemplateManagerProvider:function(){return le.Jv},RemoteSelect:function(){return b.glM},RemoveButton:function(){return b.xZD},RemoveConditionContext:function(){return b.IuH},RenderChildrenWithAssociationFilter:function(){return p.gY},RequestSettings:function(){return b.MkN},RerenderDataBlockProvider:function(){return d.sI},Resizable:function(){return Me.ez},RichText:function(){return b.Hof},RoleConfigure:function(){return E.XU},RoleResourceCollectionContext:function(){return E.O9},RoleTable:function(){return E.No},RolesResourcesActions:function(){return E.kF},RouteSchemaComponent:function(){return Z.GX},RouterContextCleaner:function(){return f.OW},RouterManager:function(){return f.k2},SNIPPET_PREFIX:function(){return f.MC},SanitizedCollectionProvider:function(){return d.Pd},SchemaComponent:function(){return b.n6},SchemaComponentContext:function(){return b.DDd},SchemaComponentOnChangeContext:function(){return b.ATq},SchemaComponentOptions:function(){return b.G0E},SchemaComponentPlugin:function(){return b.a$w},SchemaComponentProvider:function(){return b.TzZ},SchemaInitializer:function(){return f.Ms},SchemaInitializerActionModal:function(){return f.HS},SchemaInitializerActionModalInternal:function(){return f.IQ},SchemaInitializerChild:function(){return f.yH},SchemaInitializerChildren:function(){return f.E0},SchemaInitializerContext:function(){return f.V4},SchemaInitializerDivider:function(){return f.qU},SchemaInitializerItem:function(){return f.lV},SchemaInitializerItemContext:function(){return f.Mm},SchemaInitializerItemGroup:function(){return f.iP},SchemaInitializerItemGroupInternal:function(){return f.IY},SchemaInitializerItemInternal:function(){return f.VG},SchemaInitializerItems:function(){return f.LU},SchemaInitializerManager:function(){return f.eN},SchemaInitializerMenu:function(){return f.tu},SchemaInitializerMenuProvider:function(){return f.kw},SchemaInitializerOpenModeSchemaItems:function(){return se.EU},SchemaInitializerPlugin:function(){return J.dH},SchemaInitializerSelect:function(){return f.iW},SchemaInitializerSelectInternal:function(){return f.ud},SchemaInitializerSubMenu:function(){return f.eU},SchemaInitializerSubMenuInternal:function(){return f.xv},SchemaInitializerSwitch:function(){return f._n},SchemaInitializerSwitchInternal:function(){return f.wH},SchemaSettingAccessControl:function(){return q.U4},SchemaSettingItemContext:function(){return f.A4},SchemaSettingOpenModeSchemaItems:function(){return se.HA},SchemaSettings:function(){return f.F5},SchemaSettingsActionLinkItem:function(){return ee.s},SchemaSettingsActionModalItem:function(){return q.Qh},SchemaSettingsBlockHeightItem:function(){return q.qf},SchemaSettingsBlockTitleItem:function(){return q._E},SchemaSettingsCascaderItem:function(){return q.ns},SchemaSettingsChild:function(){return f.kY},SchemaSettingsChildren:function(){return f.dk},SchemaSettingsConnectDataBlocks:function(){return q.FE},SchemaSettingsDataScope:function(){return q.HF},SchemaSettingsDataTemplates:function(){return q.ON},SchemaSettingsDateFormat:function(){return q.yu},SchemaSettingsDefaultSortingRules:function(){return q.y5},SchemaSettingsDefaultValue:function(){return q.Nn},SchemaSettingsDivider:function(){return q.Z5},SchemaSettingsDropdown:function(){return q.cM},SchemaSettingsEnableChildCollections:function(){return q.L3},SchemaSettingsFixed:function(){return Me.rI},SchemaSettingsFormItemTemplate:function(){return q.vC},SchemaSettingsItem:function(){return q.r2},SchemaSettingsItemGroup:function(){return q.bw},SchemaSettingsLayoutItem:function(){return q.JM},SchemaSettingsLinkageRules:function(){return q.lc},SchemaSettingsManager:function(){return f.XD},SchemaSettingsModalItem:function(){return q.B0},SchemaSettingsNumberFormat:function(){return q.wH},SchemaSettingsPlugin:function(){return q.zM},SchemaSettingsPopupItem:function(){return q.D3},SchemaSettingsProvider:function(){return q.Rh},SchemaSettingsRemove:function(){return q.qx},SchemaSettingsRenderEngine:function(){return q.cK},SchemaSettingsSelectItem:function(){return q.Qf},SchemaSettingsSortingRule:function(){return q.wL},SchemaSettingsSubMenu:function(){return q.m$},SchemaSettingsSwitchItem:function(){return q.hj},SchemaSettingsTemplate:function(){return q.Gk},SchemaSettingsWrapper:function(){return f.GC},SchemaTemplateManagerContext:function(){return le.Kb},SchemaToolbar:function(){return q.Mf},SchemaToolbarContext:function(){return f.J1},SchemaToolbarProvider:function(){return f.V$},SchemaToolbarVisibleContext:function(){return q.dI},ScopeSelect:function(){return E.X$},SearchCollections:function(){return J.zH},SecondConFirm:function(){return b.y00},Select:function(){return b.PhF},SelectActionInitializer:function(){return J.w_},SelectWithTitle:function(){return D.T},SetDataLoadingMode:function(){return Ae.jI},SettingCenterPermissionProvider:function(){return E.P2},SettingCenterProvider:function(){return E.S3},SettingsCenterConfigure:function(){return E.H3},SettingsCenterContext:function(){return te.EV},SettingsCenterDropdown:function(){return te.zK},SettingsMenuProvider:function(){return Be.SV},ShowFormData:function(){return b.Cqv},SkipValidation:function(){return b.cof},Sortable:function(){return b.bts},SortableContext:function(){return b.Fop},SortableItem:function(){return b.TRI},SortableProvider:function(){return b.ORg},Space:function(){return b.TaI},StablePopover:function(){return b.qHe},StrategyActions:function(){return E.R6},SubmitActionInitializer:function(){return J.ss},SwitchLanguage:function(){return pe.j},SystemSettingsContext:function(){return _e.YO},SystemSettingsPane:function(){return _e.a$},SystemSettingsPlugin:function(){return _e.j8},SystemSettingsProvider:function(){return _e.C6},Table:function(){return b.iA_},TableActionColumnInitializer:function(){return J.VU},TableBlockContext:function(){return p.Hz},TableBlockDesigner:function(){return b.gvM},TableBlockInitializer:function(){return Me.kD},TableBlockProvider:function(){return p._0},TableColumnSchemaToolbar:function(){return Me.u6},TableField:function(){return b.SnY},TableFieldContext:function(){return p.Q6},TableFieldProvider:function(){return p.CB},TableFieldResource:function(){return p.Qy},TableSelectorContext:function(){return p.Yu},TableSelectorDesigner:function(){return b.ASv},TableSelectorInitializer:function(){return Te.S},TableSelectorParamsProvider:function(){return p.Vs},TableSelectorProvider:function(){return p.rL},TableV2:function(){return b.bwk},Tabs:function(){return b.mQc},TabsContextProvider:function(){return b.c__},Templates:function(){return b.QZ3},TestDesigner:function(){return b.L39},TextAreaWithGlobalScope:function(){return b.feF},TimePicker:function(){return b.jII},TreeSelect:function(){return b.mPs},UnixTimestamp:function(){return b.tgM},Upload:function(){return b.gqx},Uploader:function(){return b.Qm7},Variable:function(){return b._wD},VariableInput:function(){return q.qj},VariablePopupRecordProvider:function(){return re.Rm},VariableScopeProvider:function(){return b.rjl},VariablesContext:function(){return Pe.cB},VariablesProvider:function(){return Pe.Uj},WithoutFormFieldResource:function(){return p.$Y},WithoutTableFieldResource:function(){return p.s},actionSettings:function(){return b.SLL},actionSettingsItems:function(){return b.sBv},allowAddNew:function(){return b.iTm},appendQueryStringToUrl:function(){return p.HQ},attachmentFileTypes:function(){return b.BDK},cache:function(){return R.cache},canMakeAssociationBlock:function(){return J.Tc},compatOldTheme:function(){return O.kK},completeURL:function(){return p.jR},compose:function(){return f.qC},createCreateFormBlockUISchema:function(){return Ee.lJ},createDesignable:function(){return b.Pls},createDetailsBlockSchema:function(){return J.e6},createFormActionInitializers:function(){return Ee.nr},createFormActionInitializers_deprecated:function(){return Ee.$G},createFormBlockSchema:function(){return J.NH},createFormBlockSettings:function(){return Ee.K9},createModalSettingsItem:function(){return f.lo},createReadPrettyFormBlockSchema:function(){return J.Uc},createRouterManager:function(){return f.w9},createSelectSchemaSettingsItem:function(){return f.NB},createStyles:function(){return Ce.k},createSwitchSettingsItem:function(){return f.HL},createTableBlockSchema:function(){return J.BU},createTableBlockUISchema:function(){return Me.OO},createTextSettingsItem:function(){return f.yq},css:function(){return R.css},customFormItemInitializers:function(){return J.Ic},customFormItemInitializers_deprecated:function(){return J.Jn},cx:function(){return R.cx},defaultAppComponents:function(){return f.FH},defaultFieldNames:function(){return b.Oxq},defaultInputStyle:function(){return q.ZL},defaultTheme:function(){return O.uH},editFormBlockSettings:function(){return Ee.rB},fetchTemplateData:function(){return b.WLi},fieldComponentSettingsItem:function(){return d.K0},fieldSettingsFormItem:function(){return Ee.dV},fillParentFields:function(){return p.Xe},filterFormItemSettings:function(){return b.$9M},findByUid:function(){return b.nCn},findFilterTargets:function(){return p.SK},findFormBlock:function(){return p.Fi},findKanbanFormItem:function(){return d.iv},findKeysByUid:function(){return b.iNG},findMenuItem:function(){return b.tD8},findParentFieldSchema:function(){return q.PO},flush:function(){return R.flush},formActionInitializers:function(){return Ee.vR},formDetailsSettings:function(){return b.pg9},formItemInitializers:function(){return Ee.ex},formItemInitializers_deprecated:function(){return Ee.eh},formItemSettings:function(){return b.Ofb},formSettings:function(){return b.ibf},formV1Settings:function(){return b.WyG},genStyleHook:function(){return b.l6$},getAppends:function(){return p.iF},getAssociationPath:function(){return p.dP},getCardItemSchema:function(){return p.Gn},getCollectionTitle:function(){return ge.A},getCurrentOptions:function(){return b.WGR},getDataSourceHeaders:function(){return d.GX},getDatePickerLabels:function(){return b.C$H},getDateRanges:function(){return b.SET},getFieldDefaultValue:function(){return q.os},getFormValues:function(){return p.X7},getGroupMenuSchema:function(){return be.X},getIdsWithChildren:function(){return p.Ns},getLabelFormatValue:function(){return b.cNQ},getLabelWithTooltip:function(){return q.rB},getLinkMenuSchema:function(){return fe.e},getPageMenuSchema:function(){return oe.a},getPageSchema:function(){return p.tj},getPopupPathFromParams:function(){return b.NCb},getRegisteredStyles:function(){return R.getRegisteredStyles},getRenderContent:function(){return b.I9l},getShouldChange:function(){return q.Vc},getStoredPopupContext:function(){return b.XQ2},getSupportFieldsByAssociation:function(){return S.x5},getSupportFieldsByForeignKey:function(){return S.zv},getTabSchema:function(){return b.Fxc},getURLSearchParams:function(){return q.Uz},getURLSearchParamsChildren:function(){return q.n9},getVariableComponentWithScope:function(){return ue.M},getVariablesFromExpression:function(){return Pe.fN},gridRowColWrap:function(){return J.BM},handleDateChangeOnForm:function(){return b.MDU},hasIcon:function(){return B.OL},hydrate:function(){return R.hydrate},i18n:function(){return t.a},icons:function(){return B.ci},inferPickerType:function(){return b.CEH},injectGlobal:function(){return R.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return q.TU},isAssocField:function(){return S.$f},isBulkEditAction:function(){return b.vUN},isFileCollection:function(){return b.ZZb},isInFilterFormBlock:function(){return S.Op},isInitializersSame:function(){return f.h6},isMobile:function(){return b.tqC},isPatternDisabled:function(){return q.VZ},isSameCollection:function(){return S.yr},isShowFilePicker:function(){return b.elO},isSystemField:function(){return q.Mq},isTabPage:function(){return b.CfU},isTitleField:function(){return d.Yj},isVariable:function(){return Pe.cG},itemsMerge:function(){return J.Z_},keyframes:function(){return R.keyframes},languageCodes:function(){return Y.m9},lazy:function(){return G.Vo},locale:function(){return Y.ZP},mapDatePicker:function(){return b.LPx},mapRangePicker:function(){return b.fY6},mapTimeFormat:function(){return b.Vm},merge:function(){return R.merge},mergeFilter:function(){return S.EO},mockAPIClient:function(){return ye.G},moment2str:function(){return b.w_o},navigateToTab:function(){return b.SJF},navigateWithinSelf:function(){return p.nl},normalizeContainer:function(){return f.pn},pageSettings:function(){return b._Ko},pageTabSettings:function(){return b.Mev},parseVariablesAndChangeParamsToQueryString:function(){return p._f},readPrettyFormSettings:function(){return b.i2K},recordBlockInitializers:function(){return J.vV},recordBlockInitializers_deprecated:function(){return J.Sq},recursiveParent:function(){return p.zA},reduceValueSize:function(){return p.ID},registerIcon:function(){return B.q5},registerIcons:function(){return B.fm},removeNullCondition:function(){return b.WmO},replaceVariableValue:function(){return p.UY},requestParentRecordData:function(){return d.H0},schemaSettingsLabelLayout:function(){return q.ut},setDataLoadingModeSettingsItem:function(){return Ae.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return q.rf},setTheDataScopeSchemaSettingsItem:function(){return q.aP},sheet:function(){return R.sheet},showFileName:function(){return Oe.y},splitWrapSchema:function(){return b.oBi},storePopupContext:function(){return b.hKP},subTableActionInitializers:function(){return J.U2},subTableActionInitializers_deprecated:function(){return J.o_},systemKeys:function(){return q.ob},tabPaneInitializers:function(){return J.$T},tabPaneInitializersForBulkEditFormBlock:function(){return J.zg},tabPaneInitializersForRecordBlock:function(){return J.d4},tabPaneInitializers_deprecated:function(){return J.xc},tableActionColumnInitializers:function(){return Me.Rp},tableActionColumnInitializers_deprecated:function(){return Me.Xe},tableActionInitializers:function(){return Me.H1},tableActionInitializers_deprecated:function(){return Me.EG},tableBlockSettings:function(){return Me.Oe},tableColumnInitializers:function(){return Me.Ug},tableColumnInitializers_deprecated:function(){return Me.T$},tableColumnSettings:function(){return Me.FY},tableSelectorBlockSettings:function(){return Te.v},transformToFilter:function(){return S.jE},transformVariableValue:function(){return Pe.J8},tval:function(){return t.v},updateFilterTargets:function(){return p.iJ},updateFormActionInitializers:function(){return Ee.SW},updateFormActionInitializers_deprecated:function(){return Ee.Cw},useACLActionParamsContext:function(){return E.Hq},useACLContext:function(){return E.TR},useACLFieldWhitelist:function(){return E.Aj},useACLRoleContext:function(){return E.ov},useACLRolesCheck:function(){return E.xd},useAPIClient:function(){return w.LY},useAPITokenVariable:function(){return q.IG},useActionAvailable:function(){return Ae.vn},useActionBarContext:function(){return b.DU1},useActionContext:function(){return b.XCj},useAdminSchemaUid:function(){return U.W},useAllAccessDesktopRoutes:function(){return Z.Kf},useAllCollectionsInheritChainGetter:function(){return d.Uv},useApp:function(){return f.qD},useAppLangContext:function(){return $.GW},useAppSpin:function(){return f.rM},useAriaAttributeOfMenuItem:function(){return f.ne},useAssociatedFields:function(){return S.Fp},useAssociatedFormItemInitializerFields:function(){return J.hg},useAssociatedTableColumnInitializerFields:function(){return J.V0},useAssociationCreateActionProps:function(){return p.Yo},useAssociationFieldContext:function(){return b.KyD},useAssociationFieldModeContext:function(){return b.Vpg},useAssociationFilterBlockProps:function(){return p._S},useAssociationFilterProps:function(){return p.rD},useAssociationName:function(){return d.Xo},useAssociationNames:function(){return p.P_},useAsyncData:function(){return y.w3},useAttach:function(){return b.lIL},useBackButton:function(){return b.KxP},useBaseVariable:function(){return q.zI},useBlockAssociationContext:function(){return p.DD},useBlockContext:function(){return p.VG},useBlockHeight:function(){return b.hi9},useBlockHeightProps:function(){return p.gp},useBlockRequestContext:function(){return p.BU},useBlockResource:function(){return p.lT},useBlockTemplateContext:function(){return le.rE},useBuiltinVariables:function(){return Pe.L7},useBulkDestroyActionProps:function(){return p.ns},useCloseAction:function(){return b.p27},useCollectValuesToSubmit:function(){return p.hu},useCollection:function(){return d.Kx},useCollectionDataSourceItems:function(){return J.HD},useCollectionField:function(){return d.Hy},useCollectionFields:function(){return d.ge},useCollectionManager:function(){return d.d9},useCollectionParentRecord:function(){return d.RA},useCollectionParentRecordData:function(){return d.Kv},useCollectionRecord:function(){return d.oV},useCollectionRecordData:function(){return d.nE},useCollectionState:function(){return q.IO},useCollections:function(){return d.bX},useColumnSchema:function(){return b.z9d},useCompatOldVariables:function(){return q.b1},useCompile:function(){return b.eJW},useComponent:function(){return b.Cor},useContextVariable:function(){return Pe.Ym},useCreateActionProps:function(){return p.cD},useCreateAssociationDetailsBlock:function(){return J.Dc},useCreateAssociationDetailsWithoutPagination:function(){return J.yZ},useCreateAssociationFormBlock:function(){return J.Qr},useCreateAssociationGridCardBlock:function(){return J.yG},useCreateAssociationListBlock:function(){return J.R_},useCreateAssociationTableBlock:function(){return J.Rm},useCreateEditFormBlock:function(){return Ee.$R},useCreateFormBlock:function(){return Ee.kQ},useCreateTableBlock:function(){return Me.Ez},useCurrentAppInfo:function(){return L._S},useCurrentDocumentTitle:function(){return l.AL},useCurrentPageUid:function(){return f.Rx},useCurrentPopupContext:function(){return b.Zmk},useCurrentPopupRecord:function(){return re.Sw},useCurrentRoleVariable:function(){return q.KR},useCurrentRoles:function(){return Be.ih},useCurrentRoute:function(){return Z.Hb},useCurrentSchema:function(){return J.pZ},useCurrentSearchParams:function(){return f.r_},useCurrentTabUid:function(){return f.zJ},useCurrentUserContext:function(){return Be.OP},useCurrentUserSettingsMenu:function(){return Be.t$},useCurrentUserVariable:function(){return q.AO},useCustomizeBulkUpdateActionProps:function(){return p.UQ},useCustomizeRequestActionProps:function(){return p.xx},useCustomizeUpdateActionProps:function(){return p.X0},useDataBlock:function(){return d.eS},useDataBlockHeight:function(){return b.aZq},useDataBlockParentRecord:function(){return p.M_},useDataBlockProps:function(){return d.zh},useDataBlockRequest:function(){return d.hS},useDataBlockRequestData:function(){return d.xQ},useDataBlockRequestGetter:function(){return d.Pt},useDataBlockResource:function(){return d.wb},useDataLoadingMode:function(){return Ae.tU},useDataSource:function(){return d.wl},useDataSourceHeaders:function(){return d.on},useDataSourceKey:function(){return d.FC},useDataSourceManager:function(){return d.fp},useDataTemplates:function(){return q.dD},useDatePickerContext:function(){return b.P1D},useDateVariable:function(){return q.ds},useDatetimeVariable:function(){return q.Ld},useDatetimeVariableContext:function(){return q.FB},useDesignable:function(){return b.ngQ},useDesigner:function(){return b.ett},useDestroyActionProps:function(){return p.z2},useDetailsBlockContext:function(){return p.nT},useDetailsBlockProps:function(){return p.BX},useDetailsDecoratorProps:function(){return Ae.dS},useDetailsPaginationProps:function(){return p.bF},useDetailsParentRecord:function(){return Ae.jM},useDetailsProps:function(){return Ae.os},useDetailsWithPaginationBlockParams:function(){return Ae.ln},useDetailsWithPaginationDecoratorProps:function(){return Ae.ec},useDetailsWithPaginationProps:function(){return Ae.tm},useDisassociateActionProps:function(){return p.ii},useDocumentTitle:function(){return l.jr},useDownloadLogs:function(){return b.ySm},useEnsureOperatorsValid:function(){return b.Zd$},useExtendCollections:function(){return d.P5},useFieldComponentName:function(){return D.W},useFieldComponentOptions:function(){return b.cLh},useFieldMode:function(){return b.baz},useFieldModeOptions:function(){return b.fde},useFieldNames:function(){return b.Xdt},useFieldProps:function(){return b.Cld},useFieldTitle:function(){return b.vH8},useFilterAPI:function(){return S.hi},useFilterActionProps:function(){return b.PLH},useFilterBlock:function(){return S.kO},useFilterBlockActionProps:function(){return p.Oy},useFilterByTk:function(){return p.C},useFilterFieldOptions:function(){return b.V8t},useFilterFieldProps:function(){return b.tMk},useFilterOptions:function(){return b.xQm},useFindComponent:function(){return b.sRe},useFlag:function(){return z.P5},useFormActiveFields:function(){return p.zj},useFormBlockContext:function(){return p.bz},useFormBlockProps:function(){return p._$},useFormBlockType:function(){return p.th},useFormDataTemplates:function(){return b.U1u},useFormFieldContext:function(){return p.e$},useFormFieldProps:function(){return p.GK},useFormItemInitializerFields:function(){return J.I_},useGetAriaLabelOfAction:function(){return b.HS$},useGetAriaLabelOfDesigner:function(){return q.zf},useGetAriaLabelOfDrawer:function(){return b.vBu},useGetAriaLabelOfModal:function(){return b.QYZ},useGetAriaLabelOfPopover:function(){return b.t9d},useGetFilterFieldOptions:function(){return b.Kgy},useGetFilterOptions:function(){return b.aJ2},useGetSchemaInitializerMenuItems:function(){return f.bw},useGlobalTheme:function(){return O.mg},useGlobalVariable:function(){return f.Xb},useGridContext:function(){return b.n14},useGridRowContext:function(){return b.DiB},useInheritsTableColumnInitializerFields:function(){return J.yi},useIsAddNewForm:function(){return b.l1O},useIsAdminPage:function(){return f.mI},useIsAllowToSetDefaultValue:function(){return q.SF},useIsAssociationField:function(){return b.w5o},useIsDetailBlock:function(){return p.WG},useIsFieldReadPretty:function(){return b.p3Q},useIsFileField:function(){return b.G5e},useIsFormReadPretty:function(){return b.xj2},useIsInSettingsPage:function(){return f.Bb},useIsSelectFieldMode:function(){return b.rxY},useIsSubPageClosedByPageMenu:function(){return f.ce},useLabelUiSchema:function(){return b.Ils},useLazy:function(){return G.lN},useLinkActionProps:function(){return p.ee},useLinkageAction:function(){return b.zCB},useLocalVariables:function(){return Pe.Kp},useLocationNoUpdate:function(){return f.fj},useLocationSearch:function(){return f.HU},useMatchAdmin:function(){return f.xi},useMatchAdminName:function(){return f.tJ},useMenuDragEnd:function(){return b.CMh},useMenuSearch:function(){return J.jA},useNavigateNoUpdate:function(){return f.WO},useNocoBaseRoutes:function(){return b.FMn},useOpenModeContext:function(){return F.B},useOptionalFieldList:function(){return p.Lh},useParamsFromRecord:function(){return p.MM},useParentCollection:function(){return d.lb},useParentRecordCommon:function(){return Ie._},useParentRoute:function(){return b.T0O},useParseDataScopeFilter:function(){return q._Y},useParseURLAndParams:function(){return p.VC},useParsedFilter:function(){return p.vs},usePickActionProps:function(){return p.St},usePlugin:function(){return f.j7},usePopupSettings:function(){return b.a4r},usePopupUtils:function(){return Se.E},usePopupVariable:function(){return q.AJ},usePopupVariableContext:function(){return q.gG},useProps:function(){return b.wNf},useRecord:function(){return X.a},useRecordCollectionDataSourceItems:function(){return J.bQ},useRecordIndex:function(){return X.pW},useRecordIsOwn:function(){return X.Px},useRecordPkValue:function(){return E.Jn},useRefreshActionProps:function(){return p.Xk},useRefreshFieldSchema:function(){return Ne.gR},useRemoveActionProps:function(){return p.PJ},useRemoveGridFormItem:function(){return J.EY},useRequest:function(){return w.QT},useRerenderDataBlock:function(){return d.Rr},useResetBlockActionProps:function(){return p.NP},useResource:function(){return w.Wf},useRoleRecheck:function(){return E.fG},useRoleVariable:function(){return q.bs},useRolesResourcesScopesSelectedRowKeys:function(){return E.cm},useRouter:function(){return f.tv},useRouterBasename:function(){return f.hZ},useSchemaComponentContext:function(){return b.Dmu},useSchemaInitializer:function(){return f.q_},useSchemaInitializerItem:function(){return f.UR},useSchemaInitializerMenuItems:function(){return f.hL},useSchemaInitializerRender:function(){return f.IU},useSchemaInitializerStyles:function(){return f._$},useSchemaInitializerSubMenuContext:function(){return f.vH},useSchemaOptionsContext:function(){return b.Bsl},useSchemaSettings:function(){return q.DD},useSchemaSettingsItem:function(){return f.J$},useSchemaSettingsRender:function(){return f.mQ},useSchemaTemplate:function(){return le.zy},useSchemaTemplateManager:function(){return le.$t},useSchemaToolbar:function(){return f.Po},useSchemaToolbarRender:function(){return f.du},useSourceId:function(){return Ae.GL},useSourceIdFromParentRecord:function(){return p.m},useSourceIdFromRecord:function(){return p.e0},useStyles:function(){return b.yKv},useSupportedBlocks:function(){return S.Um},useSyncFromForm:function(){return q.F1},useSystemSettings:function(){return _e.HX},useTableBlockContext:function(){return p.Si},useTableBlockContextBasicValue:function(){return p.bE},useTableBlockDecoratorProps:function(){return Me.cL},useTableBlockParams:function(){return Me.lo},useTableBlockProps:function(){return Me.GK},useTableColumnInitializerFields:function(){return J.bJ},useTableFieldContext:function(){return p.Wx},useTableFieldProps:function(){return p.oA},useTableSelectorContext:function(){return p.CL},useTableSelectorProps:function(){return p.RP},useTableSize:function(){return b.fMB},useTabsContext:function(){return b.gCg},useTitleFieldOptions:function(){return b.eT6},useToken:function(){return Ce.d},useUIConfigurationPermissions:function(){return E.mR},useURLAndHTMLSchema:function(){return ue.R},useURLSearchParamsCtx:function(){return q.MD},useURLSearchParamsVariable:function(){return q.F5},useUpdateActionProps:function(){return p.HD},useUploadStyles:function(){return b.$SN},useUserVariable:function(){return q.KD},useValidateSchema:function(){return b.q4O},useVariableOptions:function(){return q.Y5},useVariableScope:function(){return b.ymE},useVariables:function(){return Pe.OQ},useViewport:function(){return U.S},useZIndexContext:function(){return b.uqQ},withDynamicSchemaProps:function(){return ie.t},withInitializer:function(){return f.W_},withSearchParams:function(){return b.Q3P},withSkeletonComponent:function(){return me.C},zIndexContext:function(){return b.K5K}});var H=e(66607),u=e.n(H),k=e(79212),i=e.n(k),g=e(37412),C=e.n(g),T=e(59542),r=e.n(T),N=e(96036),v=e.n(N),A=e(96671),h=e.n(A),M=e(70178),n=e.n(M),x=e(72540),K=e.n(x),o=e(90844),a=e(14994),R=e(97133),E=e(47646),$=e(75599),w=e(12174),L=e(80347),f=e(68091),y=e(26124),p=e(67174),P=e(6145),m={};for(var j in P)["default","locale","withDynamicSchemaProps","withSkeletonComponent","SwitchLanguage","SchemaSettingsActionLinkItem","getVariableComponentWithScope","useURLAndHTMLSchema","getGroupMenuSchema","getLinkMenuSchema","getPageMenuSchema","OpenModeProvider","useOpenModeContext","PopupContextProvider","usePopupUtils","VariablePopupRecordProvider","useCurrentPopupRecord","showFileName","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","useGlobalVariable","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&&(m[j]=function(Le){return P[Le]}.bind(0,j));e.d(ae,m);var D=e(7737),c=e(20085),d=e(94804),l=e(69803),S=e(18386),z=e(53285),O=e(69962),U=e(29392),t=e(58384),B=e(82369),G=e(98902),Y=e(35310),W=e(7825),I=e(52817),te=e(65213),Q=e(53181),X=e(36586),Z=e(8918),b=e(7105),J=e(57030),se=e(90810),q=e(51159),le=e(15195),Ce=e(39863),_e=e(15585),ye=e(16779),Be=e(6438),Pe=e(64910),ie=e(15503),me=e(83335),pe=e(71098),ee=e(29245),ue=e(83954),ge=e(16966),Ee=e(67565),Me=e(77681),Te=e(75145),Ae=e(56995),Ie=e(92700),be=e(24757),fe=e(23437),oe=e(18591),F=e(39270),ce=e(74483),Se=e(23048),re=e(73691),Oe=e(69435),Ne=e(57105)},98902:function(Ke,ae,e){"use strict";e.d(ae,{Vo:function(){return v},XI:function(){return N},lN:function(){return A}});var H=e(97857),u=e.n(H),k=e(67294),i=e(57953),g=e(96486),C=e.n(g),T=e(97289),r=e(85893),N=Symbol("LAZY_COMPONENT_KEY");function v(h){for(var M=arguments.length,n=new Array(M>1?M-1:0),x=1;x<M;x++)n[x-1]=arguments[x];if(n.length===0){var K=(0,k.lazy)(function(){return h().then(function(a){var R=a.default;return o[N]=R,{default:R}})}),o=function(R){return(0,r.jsx)(k.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(K,u()({},R))})};return o}return n.reduce(function(a,R){var E=(0,k.lazy)(function(){return h().then(function($){var w=(0,g.get)($,R);return a[R][N]=w,{default:w}})});return a[R]=function($){return(0,r.jsx)(k.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(E,u()({},$))})},a},{})}function A(h,M){var n=typeof M=="function"?M:function(o){return o[M]},x=(0,T.I6)(h);if(!x.payload)throw new Promise(function(o,a){x.loadIfNeeded(),x.resolution.then(o).catch(a)});var K=n(x.payload);return K}},35310:function(Ke,ae,e){"use strict";e.d(ae,{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"}};ae.ZP=u},29245:function(Ke,ae,e){"use strict";e.d(ae,{f:function(){return E},s:function(){return R}});var H=e(9783),u=e.n(H),k=e(97857),i=e.n(k),g=e(5552),C=e(80844),T=e(96486),r=e.n(T),N=e(67294),v=e(26793),A=e(21143),h=e(68091),M=e(91410),n=e(6145),x=e(55642),K=e(51159),o=e(83954),a=e(85893),R=function(){var w=(0,C.useField)(),L=(0,C.useFieldSchema)(),f=(0,A.useDesignable)(),y=f.dn,p=(0,v.$)(),P=p.t,m=(0,o.R)(),j=m.urlSchema,D=m.paramsSchema,c=m.openInNewWindowSchema,d=L["x-component-props"]||{},l={url:d.url,params:d.params||[{}],openInNewWindow:d.openInNewWindow};return(0,a.jsx)(K.B0,{title:P("Edit link"),components:{ArrayItems:g.ArrayItems},schema:{type:"object",title:P("Edit link"),properties:{url:i()(i()({},j),{},{required:!0}),params:D,openInNewWindow:c}},onSubmit:function(z){var O,U=z.url,t=z.params,B=z.openInNewWindow;d.url=U,d.params=t,d.openInNewWindow=B,L["x-component-props"]=d,w.componentProps.url=U,w.componentProps.params=t,w.componentProps.openInNewWindow=B,y.emit("patch",{schema:(O={},u()(O,"x-uid",L["x-uid"]),u()(O,"x-component-props",d),O)}),y.refresh()},initialValues:l})},E=new M.F({name:"actionSettings:link",items:[{name:"editButton",Component:x.C1,useComponentProps:function(){var w=(0,h.Po)(),L=w.buttonEditorProps;return L}},{name:"editLink",Component:R},{name:"linkageRules",Component:K.lc,useVisible:function(){var w=(0,A.useCollectionRecord)();return!r().isEmpty(w==null?void 0:w.data)},useComponentProps:function(){var w=(0,n.useCollection_deprecated)(),L=w.name,f=(0,h.Po)(),y=f.linkageRulesProps;return i()(i()({},y),{},{collectionName:L})}},K.U4,{name:"remove",sort:100,Component:x.xZ,useComponentProps:function(){var w=(0,h.Po)(),L=w.removeButtonProps;return L}}]})},83954:function(Ke,ae,e){"use strict";e.d(ae,{M:function(){return x},R:function(){return K}});var H=e(68400),u=e.n(H),k=e(97857),i=e.n(k),g=e(97133),C=e(80844),T=e(67294),r=e(26793),N=e(7340),v=e(36586),A=e(91053),h=e(54885),M=e(85893),n,x=function(a){return function(R){var E=(0,C.useFieldSchema)(),$=(0,N.bz)(),w=$.form,L=(0,v.a)(),f=(0,h.Y)({collectionField:{uiSchema:E},form:w,record:L,uiSchema:E,noDisabled:!0});return(0,M.jsx)(a,i()(i()({},R),{},{scope:f}))}},K=function(){var a=(0,r.$)(),R=a.t,E=(0,T.useMemo)(function(){return x(A._w.TextArea)},[]),$=(0,T.useMemo)(function(){return{title:R("URL"),type:"string","x-decorator":"FormItem","x-component":E,description:R("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[R,E]),w=(0,T.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:R("URL")},{value:"html",label:R("HTML")}]}},[R]),L=(0,T.useMemo)(function(){return{title:R("html"),type:"string","x-decorator":"FormItem","x-component":x(A._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[R]),f=(0,T.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,g.css)(n||(n=u()([`
117
+ `])))},"x-component":o,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},E=function(){for(var w={},L=arguments.length,f=new Array(L),y=0;y<L;y++)f[y]=arguments[y];for(var p=0,P=f;p<P.length;p++){var m=P[p];R[m]&&(w[m]=R[m])}return w}},44605:function(){},53772:function(){},99899:function(Ke,ae,e){"use strict";e.d(ae,{U:function(){return H},l:function(){return u}});function H(k){var i;if(!k)return[];var g=k.split(":"),C=g.pop(),T=(i=g[0])!==null&&i!==void 0?i:"main";return[T,C]}function u(k,i){return!k||k==="main"?i:"".concat(k,":").concat(i)}},5346:function(Ke,ae,e){"use strict";e.d(ae,{T:function(){return C}});var H=e(5574),u=e.n(H),k=e(34041),i=e(67294),g=e(85893);function C(T){var r=T.title,N=T.defaultValue,v=T.onChange,A=T.options,h=T.fieldNames,M=(0,i.useState)(!1),n=u()(M,2),x=n[0],K=n[1],o=(0,i.useRef)(null);return(0,g.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(R){R.stopPropagation(),K(function(E){return!E})},onMouseLeave:function(){o.current=setTimeout(function(){K(!1)},200)},children:[r,(0,g.jsx)(k.default,{open:x,"data-testid":"select-".concat(r),popupMatchSelectWidth:!1,bordered:!1,defaultValue:N,onChange:v,popupClassName:"select-popup-".concat(r.replaceAll(" ","-")),fieldNames:h,options:A,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(o.current)}})]})}},7737:function(Ke,ae,e){"use strict";e.d(ae,{T:function(){return H.T},W:function(){return u.W}});var H=e(5346),u=e(56318)},56318:function(Ke,ae,e){"use strict";e.d(ae,{W:function(){return g}});var H=e(80844),u=e(67668),k=e(38752),i=e(81230);function g(){var C,T,r,N,v=(0,i.z9)(),A=v.fieldSchema,h=v.collectionField,M=(0,H.useField)(),n=(0,k.G5)(),x=(0,H.useFieldSchema)(),K=(0,u.Hy)(),o=A||x,a=h||K,R={AssociationField:"Select"},E=(o==null||(C=o["x-component-props"])===null||C===void 0?void 0:C.mode)||(M==null||(T=M.componentProps)===null||T===void 0?void 0:T.mode)||(n?"FileManager":"")||(o==null||(r=o["x-component-props"])===null||r===void 0?void 0:r.component)||(a==null||(N=a.uiSchema)===null||N===void 0?void 0:N["x-component"]);return R[E]||E}},52967:function(Ke,ae,e){"use strict";e.d(ae,{e:function(){return u}});var H=e(67294),u=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=(0,H.useRef)(0);return(0,H.useEffect)(function(){var C=function(r){var N=r.clientY,v=Math.max(N,window.innerHeight-N);g.current=v};return window.addEventListener("mousemove",C),function(){window.removeEventListener("mousemove",C)}},[]),(0,H.useMemo)(function(){return g.current-40},i)}},20085:function(Ke,ae,e){"use strict";e.d(ae,{O:function(){return C}});var H=e(10274),u=e(67294),k=e(69962),i=e(68230),g=function(r){var N=r.children,v=(0,i.d)(),A=v.token,h=A.colorFillTertiary,M=new H.C(A.colorFill).onBackground(A.colorFillSecondary).toHexShortString(),n=new H.C(A.colorFill).onBackground(A.colorFill).toHexShortString(),x=new H.C(A.colorFill).onBackground(A.colorFill).onBackground(A.colorFill).toHexShortString();return(0,u.useEffect)(function(){document.body.style.setProperty("--nb-spacing","".concat(A.marginLG,"px")),document.body.style.setProperty("--nb-designer-offset","".concat(A.marginXS,"px")),document.body.style.setProperty("--nb-header-height","".concat(A.sizeXXL-2,"px")),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--controlHeightLG","".concat(A.controlHeightLG,"px")),document.body.style.setProperty("--paddingContentVerticalSM","".concat(A.paddingContentVerticalSM,"px")),document.body.style.setProperty("--marginSM","".concat(A.marginSM,"px")),document.body.style.setProperty("--colorInfoBg",A.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",A.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",A.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",A.colorWarningBorder),document.body.style.setProperty("--colorText",A.colorText),document.body.style.setProperty("--colorPrimaryText",A.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",A.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",A.colorPrimaryTextHover),document.body.style.setProperty("--colorBgScrollTrack",h),document.body.style.setProperty("--colorBgScrollBar",M),document.body.style.setProperty("--colorBgScrollBarHover",n),document.body.style.setProperty("--colorBgScrollBarActive",x),document.body.style.setProperty("--colorSettings",A.colorSettings||k.uH.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",A.colorBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",A.colorBorderSettingsHover),document.body.style.setProperty("background-color",A.colorBgContainer)},[M,x,n,h,A.colorBgContainer,A.colorBgLayout,A.colorBgSettingsHover,A.colorBorderSettingsHover,A.colorInfoBg,A.colorInfoBorder,A.colorPrimaryText,A.colorPrimaryTextActive,A.colorPrimaryTextHover,A.colorSettings,A.colorText,A.colorWarningBg,A.colorWarningBorder,A.controlHeightLG,A.marginLG,A.marginSM,A.marginXS,A.paddingContentVerticalSM,A.sizeXXL]),N};g.displayName="CSSVariableProvider";var C=g},31959:function(Ke,ae,e){"use strict";e.d(ae,{S:function(){return M}});var H=e(97857),u=e.n(H),k=e(12444),i=e.n(k),g=e(72004),C=e.n(g),T=e(9783),r=e.n(T),N=e(96486),v=e.n(N),A=e(65375),h=e(84157),M=function(){function n(x){i()(this,n),r()(this,"name",void 0),r()(this,"group",void 0),r()(this,"title",void 0),r()(this,"description",void 0),r()(this,"order",void 0),r()(this,"default",void 0),r()(this,"sortable",void 0),r()(this,"availableTypes",void 0),r()(this,"supportDataSourceType",void 0),r()(this,"notSupportDataSourceType",void 0),r()(this,"hasDefaultValue",void 0),r()(this,"componentOptions",void 0),r()(this,"isAssociation",void 0),r()(this,"operators",void 0),r()(this,"properties",void 0),r()(this,"filterable",void 0),r()(this,"titleUsable",void 0),r()(this,"hidden",void 0),this.collectionFieldInterfaceManager=x}return C()(n,[{key:"addComponentOption",value:function(K){if(!this.componentOptions){var o,a;this.componentOptions=[];var R=(o=this.default)===null||o===void 0||(o=o.uiSchema)===null||o===void 0?void 0:o["x-component"],E=(a=this.default)===null||a===void 0||(a=a.uiSchema)===null||a===void 0?void 0:a["x-component-props"];if(R){var $,w=(($=this.default)===null||$===void 0||($=$.uiSchema)===null||$===void 0?void 0:$.type)||"string",L=(0,h.tval)(R.startsWith("Input")?(0,N.capitalize)(w):R.split(".").pop());this.componentOptions=[{label:L,value:R,useProps:function(){return E||{}}}]}}this.componentOptions.push(K)}},{key:"getConfigureFormProperties",value:function(){var K=this.hasDefaultValue?this.getDefaultValueProperty():{};return u()(u()({},(0,N.cloneDeep)(u()(u()({},A.defaultProps),this===null||this===void 0?void 0:this.properties))),K)}},{key:"getDefaultValueProperty",value:function(){var K,o;return{defaultValue:u()(u()(u()({},(0,N.cloneDeep)(this===null||this===void 0||(K=this.default)===null||K===void 0?void 0:K.uiSchema)),this===null||this===void 0||(o=this.properties)===null||o===void 0?void 0:o.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(Ke,ae,e){"use strict";e.d(ae,{S:function(){return H.S},Z:function(){return r}});var H=e(31959),u=e(12444),k=e.n(u),i=e(72004),g=e.n(i),C=e(9783),T=e.n(C),r=function(){function N(v,A,h){k()(this,N),T()(this,"collectionFieldInterfaceInstances",{}),T()(this,"collectionFieldGroups",{}),T()(this,"actionList",{}),this.dataSourceManager=h,this.addFieldInterfaces(v),this.addFieldInterfaceGroups(A)}return g()(N,[{key:"addFieldInterfaces",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(n,x){var K=new x(A);return n[K.name]=K,Array.isArray(A.actionList[K.name])&&(A.actionList[K.name].forEach(function(o){K[o.type](o.data)}),A.actionList[K.name]=void 0),n},{});Object.assign(this.collectionFieldInterfaceInstances,M)}},{key:"addFieldInterfaceComponentOption",value:function(A,h){var M=this.getFieldInterface(A);if(!M){this.actionList[A]||(this.actionList[A]=[]),this.actionList[A].push({type:"addComponentOption",data:h});return}M.addComponentOption(h)}},{key:"getFieldInterface",value:function(A){return this.collectionFieldInterfaceInstances[A]}},{key:"getFieldInterfaces",value:function(A){return Object.values(this.collectionFieldInterfaceInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var n;return!((n=h.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(A))}})}},{key:"addFieldInterfaceGroups",value:function(A){Object.assign(this.collectionFieldGroups,A)}},{key:"getFieldInterfaceGroups",value:function(){return this.collectionFieldGroups}},{key:"getFieldInterfaceGroup",value:function(A){return this.collectionFieldGroups[A]}}]),N}()},52020:function(Ke,ae,e){"use strict";e.d(ae,{s:function(){return E}});var H=e(97857),u=e.n(H),k=e(80844),i=e(85667),g=e(84327),C=e(96486),T=e.n(C),r=e(67294),N=e(7340),v=e(57105),A=e(15503),h=e(7105),M=e(29124),n=e(67668),x=e(85893),K=function(w,L,f){(0,i.untracked)(function(){w[L]===void 0&&(w[L]=f)})},o=function(w,L,f){typeof L.required>"u"&&(w.required=!!f.required)},a=function(w){var L,f=(0,h.eJW)(),y=(0,k.useField)(),p=(0,k.useFieldSchema)(),P=(0,n.Hy)(),m=P.uiSchema,j=P.defaultValue,D=(0,M.SF)(),c=D.isAllowToSetDefaultValue,d=(0,h.Cor)(((L=p["x-component-props"])===null||L===void 0?void 0:L.component)||(m==null?void 0:m["x-component"])||"Input"),l=(0,N.bz)(),S=(0,A.M)(m==null?void 0:m["x-use-component-props"],w);return(0,r.useEffect)(function(){if(m){var z=f(m);if(K(y,"content",z["x-content"]),K(y,"title",z.title),K(y,"description",z.description),l!=null&&l.form){var O=c()?p.default||j:void 0;O!=null&&K(y,"initialValue",O)}if(!y.validator&&(z["x-validator"]||p["x-validator"])){var U=(0,C.concat)([],z["x-validator"]||[],p["x-validator"]||[]);y.validator=U}p["x-disabled"]===!0&&(y.disabled=!0),p["x-read-pretty"]===!0&&(y.readPretty=!0),o(y,p,z),y.dataSource=z.enum;var t=f(z["x-component-props"])||{};y.componentProps=(0,g.merge)(t,y.componentProps||{},S||{})}},[m]),m?(0,x.jsx)(d,u()(u()({},w),S)):null},R=function(w){var L,f=(0,k.useField)(),y=(0,k.useFieldSchema)(),p=(0,v.mz)(),P=p.uiSchema,m=(0,h.Cor)(((L=y["x-component-props"])===null||L===void 0?void 0:L.component)||(P==null?void 0:P["x-component"])||"Input"),j=(0,A.M)(P==null?void 0:P["x-use-component-props"],w);return(0,r.useEffect)(function(){y["x-read-pretty"]===!0&&!f.readPretty&&(f.readPretty=!0)},[f,y]),P?(0,x.jsx)(m,u()(u()({},w),j)):null},E=(0,k.connect)(function($){var w=(0,k.useFieldSchema)(),L=(0,v.cl)();return(0,x.jsx)(n.YT,{name:w.name,children:L?(0,x.jsx)(R,u()({},$)):(0,x.jsx)(a,u()({},$))})});E.displayName="CollectionField"},67668:function(Ke,ae,e){"use strict";e.d(ae,{Hy:function(){return N},YT:function(){return T},m9:function(){return r},v_:function(){return C}});var H=e(67294),u=e(80844),k=e(1836),i=e(36032),g=e(85893),C=(0,H.createContext)(null);C.displayName="CollectionFieldContext";var T=function(A){var h=A.name,M=A.children,n=A.allowNull,x=(0,u.useFieldSchema)(),K=(0,k.Kx)(),o=(0,k.d9)(),a=(0,H.useMemo)(function(){var R;if(!K)return null;var E=x==null||(R=x["x-component-props"])===null||R===void 0?void 0:R.field;return o.getCollectionField(x==null?void 0:x["x-collection-field"])||E||K.getField((E==null?void 0:E.name)||h)},[K,x,o,h]);return!a&&n?(0,g.jsx)(g.Fragment,{children:M}):a?(0,g.jsx)(C.Provider,{value:a,children:M}):(0,g.jsx)(i.z,{type:"Field",name:h})},r=function(A){return(0,g.jsx)(C.Provider,{value:null,children:A.children})},N=function(){var A=(0,H.useContext)(C);return A}},58530:function(Ke,ae,e){"use strict";e.d(ae,{D:function(){return T}});var H=e(12444),u=e.n(H),k=e(72004),i=e.n(k),g=e(9783),C=e.n(g),T=function(){function r(N){u()(this,r),C()(this,"data",void 0),C()(this,"parentRecord",void 0),C()(this,"isNew",void 0);var v=N.data,A=N.parentRecord,h=N.isNew;this.isNew=h,this.data=v,this.parentRecord=A}return i()(r,[{key:"setData",value:function(v){this.data=v}},{key:"setParentRecord",value:function(v){this.parentRecord=v}}]),r}()},49834:function(Ke,ae,e){"use strict";e.d(ae,{E0:function(){return g},Kv:function(){return N},RA:function(){return r},nE:function(){return T},oV:function(){return C},vI:function(){return i}});var H=e(67294),u=e(58530),k=e(85893),i=(0,H.createContext)(null);i.displayName="CollectionRecordContext";var g=H.memo(function(v){var A=v.isNew,h=v.record,M=v.parentRecord,n=v.children,x=(0,H.useMemo)(function(){if(M)return M instanceof u.D?M:new u.D({data:M});if(h instanceof u.D)return h.parentRecord},[M,h]),K=(0,H.useMemo)(function(){var o;return h?h instanceof u.D?(o=h,o.isNew=h.isNew||A):o=new u.D({data:h,isNew:A}):o=new u.D({isNew:A}),o.setParentRecord(x),o},[h,x,A]);return(0,k.jsx)(i.Provider,{value:K,children:n})});g.displayName="CollectionRecordProvider";function C(){var v=(0,H.useContext)(i);return v}function T(){var v=C();return v==null?void 0:v.data}function r(){var v=C();return v==null?void 0:v.parentRecord}function N(){var v,A=C();return A==null||(v=A.parentRecord)===null||v===void 0?void 0:v.data}},88496:function(Ke,ae,e){"use strict";e.d(ae,{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(Ke,ae,e){"use strict";e.d(ae,{d:function(){return C},k:function(){return g}});var H=e(85667),u=e(96486),k=e.n(u),i="__isNewRecord__",g=function(r){return(0,H.untracked)(function(){return!!(r!=null&&r[i])})},C=function(r){if(!(0,u.isObject)(r))throw new Error("markRecordAsNew: record must be an object");return r[i]=!0,r}},34096:function(Ke,ae,e){"use strict";e.d(ae,{P:function(){return T}});var H=e(72004),u=e.n(H),k=e(12444),i=e.n(k),g=e(9783),C=e.n(g),T=u()(function r(N){i()(this,r),C()(this,"name",void 0),C()(this,"Collection",void 0),C()(this,"title",void 0),C()(this,"color",void 0),C()(this,"order",void 0),C()(this,"default",void 0),C()(this,"events",void 0),C()(this,"configurableProperties",void 0),C()(this,"availableFieldInterfaces",void 0),C()(this,"divider",void 0),C()(this,"description",void 0),C()(this,"configureActions",void 0),C()(this,"forbidDeletion",void 0),C()(this,"supportDataSourceType",void 0),C()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=N})},67836:function(Ke,ae,e){"use strict";e.d(ae,{P:function(){return H.P},y:function(){return r}});var H=e(34096),u=e(12444),k=e.n(u),i=e(72004),g=e.n(i),C=e(9783),T=e.n(C),r=function(){function N(v,A){k()(this,N),T()(this,"collectionTemplateInstances",{}),this.dataSourceManager=A,this.addCollectionTemplates(v)}return g()(N,[{key:"addCollectionTemplates",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(n,x){var K=new x(A);return n[K.name]=K,n},{});return Object.assign(this.collectionTemplateInstances,M),this.dataSourceManager.getDataSources().forEach(function(n){var x=n.collectionManager.getCollections(function(K){return M[K.template]});n.collectionManager.reAddCollections(x)}),M}},{key:"getCollectionTemplate",value:function(A){return this.collectionTemplateInstances[A]}},{key:"getCollectionTemplates",value:function(A){return Object.values(this.collectionTemplateInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var n;return!((n=h.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(A))}}).sort(function(h,M){return(h.order||0)-(M.order||0)})}}]),N}()},19271:function(Ke,ae,e){"use strict";e.d(ae,{Xo:function(){return A},lb:function(){return N},ym:function(){return v}});var H=e(67294),u=e(67668),k=e(36032),i=e(35746),g=e(58837),C=e(85893),T=(0,H.createContext)(null);T.displayName="ParentCollectionContext";var r=function(M){var n=(0,g.Kx)();return(0,C.jsx)(T.Provider,{value:n,children:M.children})},N=function(){return(0,H.useContext)(T)},v=function(M){var n=M.name,x=M.children,K=(0,i.d9)(),o=K.getCollectionName(n);return o?(0,C.jsx)(g.YQ,{name:String(n).split(".")[0],children:(0,C.jsx)(r,{children:(0,C.jsx)(u.YT,{name:n,children:(0,C.jsx)(g.YQ,{name:o,children:x})})})}):(0,C.jsx)(k.z,{type:"Collection",name:n})},A=function(){var M=(0,u.Hy)();return M!=null&&M.target?"".concat(M.collectionName,".").concat(M.name):null}},5282:function(Ke,ae,e){"use strict";e.d(ae,{F:function(){return A}});var H=e(61227),u=e.n(H),k=e(12444),i=e.n(k),g=e(72004),C=e.n(g),T=e(9783),r=e.n(T),N=e(96486),v=e.n(N),A=function(){function h(M,n){i()(this,h),r()(this,"fieldsMap",void 0),r()(this,"primaryKey",void 0),this.options=M,this.collectionManager=n}return C()(h,[{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,x){return this.options[n]=x,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,x){return n[x.name]=x,n},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(n){var x=this.getFieldsMap(),K=String(n).split("."),o=u()(K),a=o[0],R=o.slice(1),E=x[a];if(E){var $=E==null?void 0:E.target;if($){var w=this.collectionManager.getCollection($);if(w)return w.getField(R.join("."))}}}},{key:"getField",value:function(n){if(n){var x=this.getFieldsMap();if(String(n).split(".").length>1){var K=this.getFieldByAssociationName(n);return K||(typeof n=="string"&&n.startsWith("".concat(this.name,"."))?(n=n.replace("".concat(this.name,"."),""),this.getField(n)):void 0)}return x[n]}}},{key:"hasField",value:function(n){return!!this.getField(n)}},{key:"isTitleField",value:function(n){var x;return(x=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(n.interface))===null||x===void 0?void 0:x.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),h}()},35746:function(Ke,ae,e){"use strict";e.d(ae,{IX:function(){return T},bX:function(){return A},d9:function(){return v},xw:function(){return N}});var H=e(5574),u=e.n(H),k=e(67294),i=e(44990),g=e(58861),C=e(85893),T=(0,k.createContext)(null);T.displayName="CollectionManagerContext";var r=function(M){var n=M.instance,x=M.children,K=(0,i.wl)(),o=(0,g.P5)(),a=(0,k.useMemo)(function(){return n||(K==null?void 0:K.collectionManager)},[n,K]),R=k.useState(Math.random()),E=u()(R,2),$=E[0],w=E[1];(0,k.useEffect)(function(){a.dataSource.addReloadCallback(function(){w(Math.random())})},[a]);var L=(0,k.useMemo)(function(){var f=a;return o!=null&&o.length?f.clone(o):f},[a,o,$]);return(0,C.jsx)(T.Provider,{value:L,children:x})},N=function(M){var n=M.instance,x=M.dataSource,K=M.children;return(0,C.jsx)(i.LX,{dataSource:x,children:(0,C.jsx)(r,{instance:n,children:K})})};function v(){var h=(0,k.useContext)(T);return h}var A=function(M){var n=v(),x=(0,k.useMemo)(function(){return n.getCollections(M)},[n,M]);return x}},58837:function(Ke,ae,e){"use strict";e.d(ae,{Kx:function(){return A},Pd:function(){return v},WH:function(){return r},YQ:function(){return N},ge:function(){return h}});var H=e(97857),u=e.n(H),k=e(67294),i=e(67668),g=e(36032),C=e(35746),T=e(85893),r=(0,k.createContext)(null);r.displayName="CollectionContext";var N=function(n){var x=n.name,K=n.children,o=n.allowNull,a=(0,C.d9)(),R=(0,k.useMemo)(function(){return a==null?void 0:a.getCollection(x)},[a,x]);return!R&&o?(0,T.jsx)(T.Fragment,{children:n.children}):!R&&!o?(0,T.jsx)(g.z,{type:"Collection",name:x}):(0,T.jsx)(r.Provider,{value:R,children:K})},v=function(n){return(0,T.jsx)(i.v_.Provider,{value:null,children:(0,T.jsx)(N,u()({},n))})};function A(){var M=(0,k.useContext)(r);return M}var h=function(n){var x=A(),K=(0,k.useMemo)(function(){return x.getFields(n)},[x,n]);return K}},58861:function(Ke,ae,e){"use strict";e.d(ae,{P5:function(){return N},Xc:function(){return T},j5:function(){return r}});var H=e(19632),u=e.n(H),k=e(67294),i=e(44990),g=e(35746),C=e(85893),T=(0,k.createContext)(null);T.displayName="ExtendCollectionsContext";var r=function(A){var h=A.children,M=A.collections,n=N(),x=(0,k.useMemo)(function(){return n?[].concat(u()(n),u()(M)):M},[n,M]),K=(0,i.FC)();return(0,C.jsx)(T.Provider,{value:x,children:(0,C.jsx)(g.xw,{dataSource:K,children:h})})};function N(){var v=(0,k.useContext)(T);return v}},1836:function(Ke,ae,e){"use strict";e.d(ae,{ym:function(){return k.ym},FE:function(){return H.F},WH:function(){return u.WH},w4:function(){return f},IX:function(){return y.IX},xw:function(){return y.xw},YQ:function(){return u.YQ},Xc:function(){return p.Xc},j5:function(){return p.j5},Pd:function(){return u.Pd},Xo:function(){return k.Xo},Kx:function(){return u.Kx},ge:function(){return u.ge},d9:function(){return y.d9},bX:function(){return y.bX},P5:function(){return p.P5},lb:function(){return k.lb}});var H=e(5282),u=e(58837),k=e(19271),i=e(61227),g=e.n(i),C=e(52677),T=e.n(C),r=e(97857),N=e.n(r),v=e(12444),A=e.n(v),h=e(72004),M=e.n(h),n=e(9783),x=e.n(n),K=e(80129),o=e.n(K),a=e(13769),R=e.n(a),E=["rawTitle","title","fields"],$=["uiSchema"],w=function(m,j){var D=m.rawTitle,c=m.title,d=m.fields,l=d===void 0?[]:d,S=R()(m,E);return N()(N()({},S),{},{title:D?c:j.i18n.t(c,{ns:"lm-collections"}),rawTitle:D||c,fields:l==null?void 0:l.map(function(z){var O=z.uiSchema,U=R()(z,$);if(O!=null&&O.title){var t=O.title;O.title=O.rawTitle?t:j.i18n.t(t,{ns:"lm-collections"}),O.rawTitle=O.rawTitle||t}return Array.isArray(O==null?void 0:O.enum)&&(O.enum=O.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:O},U)})})};function L(P,m,j,D){var c=new P(j,D);return m.forEach(function(d){var l=new d(j,D);Object.getOwnPropertyNames(l).forEach(function(S){var z=Object.getOwnPropertyDescriptor(l,S);z?Object.defineProperty(c,S,z):c[S]=l[S]}),Object.getOwnPropertyNames(d.prototype).forEach(function(S){S!=="constructor"&&(c.__proto__[S]=d.prototype[S])})}),c}var f=function(){function P(m,j){A()(this,P),x()(this,"collectionInstancesMap",{}),x()(this,"collectionInstancesArr",[]),this.dataSource=j,this.addCollections(m)}return M()(P,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(j){var D=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(j.template),c=(D==null?void 0:D.Collection)||H.F,d=D==null?void 0:D.transform,l=d?d(w(j,this.app),this.app):w(j,this.dataSource.dataSourceManager.app),S=N()(N()({},l),{},{dataSource:this.dataSource.key}),z=L(c,this.dataSourceManager.collectionMixins,S,this);return z}},{key:"getInstancesMap",value:function(){var j=this,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=D.map(function(d){return j.getCollectionInstance(d)});return c.reduce(function(d,l){return d[l.name]=l,d},{})}},{key:"addCollections",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=this.getInstancesMap(j);this.collectionInstancesMap=N()(N()({},this.collectionInstancesMap),D),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,D=j.map(function(c){return c.getOptions()});this.addCollections(D)}},{key:"getCollection",value:function(j){if(j){if(T()(j)==="object")return this.getCollectionInstance(j);if(String(j).split(".").length>1){var D=this.getCollectionField(j);return D?this.getCollection(D.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 D=this.getCollection(j);return D==null?void 0:D.name}},{key:"getCollectionField",value:function(j){if(j){if(T()(j)==="object")return j;if(String(j).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(j,'" is invalid'));return}var D=String(j).split("."),c=g()(D),d=c[0],l=c.slice(1),S=this.getCollection(d);if(S)return S.getField(l.join("."))}}},{key:"getCollectionFields",value:function(j,D){var c;return((c=this.getCollection(j))===null||c===void 0?void 0:c.getFields(D))||[]}},{key:"getCollectionAllFields",value:function(j,D){var c;return((c=this.getCollection(j))===null||c===void 0?void 0:c.getAllFields(D))||[]}},{key:"getFilterByTK",value:function(j,D){if(!j||!D){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}var c=function(U,t){if(Array.isArray(U)){var B={};return U.forEach(function(G){B[G]=t[G]}),o().stringify(B)}else return t[U]};if(j instanceof H.F){var d=j.getFilterTargetKey();return c(d,D)}if(j.includes(".")){var l=this.getCollectionField(j);if(!l){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(j,'" is invalid'));return}if(l.targetKey)return D[l.targetKey]}var S=this.getCollection(j);if(!S){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(j,'" is invalid'));return}var z=S.getFilterTargetKey();return c(z,D)}},{key:"getSourceKeyByAssociation",value:function(j){if(j){var D=this.getCollectionField(j);if(D){if(D.sourceKey)return D.sourceKey;var c=this.getCollection(j.split(".")[0]);if(c)return c.filterTargetKey||c.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=new P([],this.dataSource);return D.collectionInstancesArr=this.collectionInstancesArr,D.collectionInstancesMap=this.collectionInstancesMap,D.addCollections(j),D}}]),P}(),y=e(35746),p=e(58861)},22558:function(Ke,ae,e){"use strict";e.d(ae,{K:function(){return h}});var H=e(9783),u=e.n(H),k=e(97857),i=e.n(k),g=e(80844),C=e(96486),T=e.n(C),r=e(26793),N=e(13511),v=e(67668),A=e(7105),h={name:"fieldComponent",type:"select",useVisible:function(){var n=(0,v.Hy)(),x=(0,N.fp)();if(!n)return!1;var K=x.collectionFieldInterfaceManager.getFieldInterface(n==null?void 0:n.interface);return Array.isArray(K==null?void 0:K.componentOptions)&&K.componentOptions.length>1&&K.componentOptions.filter(function(o){return!o.useVisible||o.useVisible()}).length>1},useComponentProps:function(){var n,x,K,o=(0,r.$)(),a=o.t,R=(0,g.useField)(),E=(0,g.useFieldSchema)(),$=(0,v.Hy)(),w=(0,N.fp)(),L=w.collectionFieldInterfaceManager.getFieldInterface($==null?void 0:$.interface),f=(0,A.z9d)(),y=f.fieldSchema,p=y||E,P=(0,A.ngQ)(),m=P.dn,j=(0,A.eJW)(),D=(L==null||(n=L.componentOptions)===null||n===void 0||(n=n.filter(function(c){return!c.useVisible||c.useVisible()}))===null||n===void 0?void 0:n.map(function(c){return{label:j(c.label),value:c.value,useProps:c.useProps}}))||[];return{title:a("Field component"),options:D,value:((x=p["x-component-props"])===null||x===void 0?void 0:x.component)||((K=D[0])===null||K===void 0?void 0:K.value),onChange:function(d){var l,S,z=D.find(function(U){return U.value===d}),O=i()({component:d},(z==null||(l=z.useProps)===null||l===void 0?void 0:l.call(z))||{});T().set(p,"x-component-props",O),R.componentProps=O,m.emit("patch",{schema:(S={},u()(S,"x-uid",p["x-uid"]),u()(S,"x-component-props",O),S)})}}}}},36032:function(Ke,ae,e){"use strict";e.d(ae,{p:function(){return R},z:function(){return o}});var H=e(97857),u=e.n(H),k=e(48997),i=e(3321),g=e(59720),C=e(15867),T=e(67294),r=e(26793),N=e(7105),v=e(44990),A=e(49453),h=e(57638),M=e(1836),n=e(18243),x=e(85893),K=k.Z.Text,o=function($){var w=$.type,L=$.name,f=$.message,y=(0,N.ngQ)(),p=y.designable,P=y.dn,m=i.Z.useApp(),j=m.modal,D=(0,r.$)(),c=D.t,d=(0,v.wl)(),l=(0,N.eJW)(),S=(0,M.Kx)(),z=(0,A.fp)(),O=(0,T.useMemo)(function(){if(w==="Data Source")return L;var B=(z==null?void 0:z.getDataSources().length)>=1&&d&&d.key!==h.ym?"".concat(l(d.displayName||d.key)," > "):"";if(w==="Collection")return"".concat(B).concat(L);var G=S?"".concat(l(S.title)||S.name||S.tableName," > "):"";return"".concat(B).concat(G).concat(L)},[]),U=(0,T.useMemo)(function(){return w==="Field"?"Field":"Block"},[w]),t=(0,T.useMemo)(function(){return L?f?"".concat(c(w),' "').concat(O,'" ').concat(f):c('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:c(w).toLocaleLowerCase(),name:O,blockType:c(U).toLocaleLowerCase()}).replaceAll("&gt;",">"):"".concat(c(w)," ","name is required")},[f,O,w,c,U]);return p?w==="Field"?(0,x.jsx)(N.BQs,{ellipsis:!0,children:(0,x.jsx)(K,{type:"secondary",children:t})}):(0,x.jsx)(n.P,{children:(0,x.jsx)(g.ZP,{status:"404",subTitle:t,extra:(0,x.jsx)(C.ZP,{onClick:function(){return j.confirm(u()(u()({title:c("Delete block"),content:c("Are you sure you want to delete it?")},confirm),{},{onOk:function(){P.remove(null,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}),P.refresh({refreshParentSchema:!0})}}))},children:c("Delete")},"Delete")})}):null},a=function(){var $=(0,r.$)(),w=$.t,L=(0,v.wl)(),f=(0,N.eJW)(),y=(0,M.Kx)(),p=(0,A.fp)(),P=(0,T.useMemo)(function(){var j=(p==null?void 0:p.getDataSources().length)>=1&&L&&L.key!==h.ym?"".concat(f(L.displayName||L.key)," > "):"";if(y)return"".concat(j).concat(y.name);var D=y?"".concat(f(y.title)||y.name||y.tableName," > "):"";return"".concat(j).concat(D).concat(y.name)},[]),m=(0,T.useMemo)(function(){return w(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:P}).replaceAll("&gt;",">")},[P,w]);return(0,x.jsx)(n.P,{children:(0,x.jsx)(g.ZP,{status:"404",subTitle:m})})},R=function(){var $=(0,N.ngQ)(),w=$.designable;return w?(0,x.jsx)(a,{}):null}},88996:function(Ke,ae,e){"use strict";e.d(ae,{i:function(){return v}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(67294),C=e(13511),T=e(35746),r=e(85893),N=["children","dataSourceManager"],v=function(h){var M=h.children,n=h.dataSourceManager,x=i()(h,N);return(0,r.jsx)(C.kv,{dataSourceManager:n,children:(0,r.jsx)(T.xw,u()(u()({},x),{},{children:M}))})}},87180:function(Ke,ae,e){"use strict";e.d(ae,{KY:function(){return $},Rr:function(){return f},dq:function(){return E},eS:function(){return w},hZ:function(){return o},sI:function(){return R},zh:function(){return L}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(5574),C=e.n(g),T=e(67294),r=e(75667),N=e(67205),v=e(15503),A=e(7105),h=e(1836),M=e(39742),n=e(14310),x=e(85893),K=["collection","association","dataSource","children","hidden"],o=(0,T.createContext)({});o.displayName="DataBlockContext";var a=(0,T.createContext)(null),R=function(p){var P=p.children,m=T.useState(!1),j=C()(m,2),D=j[0],c=j[1],d=(0,T.useMemo)(function(){return{rerenderDataBlock:function(){c(!0),setTimeout(function(){c(!1)})}}},[]);return D?null:(0,x.jsx)(a.Provider,{value:d,children:P})},E=function(p){var P=p.collection,m=p.association,j=p.allowNull,D=j===void 0?!1:j,c=(0,T.useMemo)(function(){return m?{Component:h.ym,name:m}:{Component:h.Pd,name:P}},[P,m]);return(0,x.jsx)(c.Component,{name:c.name,allowNull:D,children:p.children})},$=(0,v.t)(T.memo(function(y){var p=y,P=p.collection,m=p.association,j=p.dataSource,D=p.children,c=p.hidden,d=i()(p,K),l=(0,A.ngQ)(),S=l.dn;return c?null:(0,x.jsx)(o.Provider,{value:{dn:S,props:u()(u()({},d),{},{collection:P,association:m,dataSource:j})},children:(0,x.jsx)(h.xw,{dataSource:j,children:(0,x.jsx)(E,{collection:P,association:m,children:(0,x.jsx)(r.Hh,{children:(0,x.jsx)(n.eh,{children:(0,x.jsx)(M.N4,{children:(0,x.jsx)(N.vY,{params:y.params,children:(0,x.jsx)(R,{children:D})})})})})})})})}),{displayName:"DataBlockProvider"}),w=function(){var p=(0,T.useContext)(o);if(!p)throw new Error("useDataBlock() must be used within a DataBlockProvider");return p},L=function(){var p=w();return p.props},f=function(){var p=(0,T.useContext)(a);if(!p)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return p}},39742:function(Ke,ae,e){"use strict";e.d(ae,{H0:function(){return p},N4:function(){return j},Pt:function(){return c},hS:function(){return D},q4:function(){return L},uz:function(){return m},xQ:function(){return d}});var H=e(15009),u=e.n(H),k=e(99289),i=e.n(k),g=e(97857),C=e.n(g),T=e(5574),r=e.n(T),N=e(67294),v=e(96486),A=e.n(v),h=e(12174),M=e(4277),n=e(19530),x=e(54724),K=e(21044),o=e(88496),a=e(8341),R=e(87180),E=e(14310),$=e(85893),w=(0,N.createContext)(null);w.displayName="BlockRequestRefContext";var L=(0,N.createContext)(!1);L.displayName="BlockRequestLoadingContext";var f=(0,N.createContext)(null);f.displayName="BlockRequestDataContext";function y(l){var S=(0,M.tU)(),z=(0,E.wb)(),O=l.action,U=l.params,t=U===void 0?{}:U,B=l.record,G=l.requestService,Y=l.requestOptions,W=l.sourceId,I=l.association,te=l.parentRecord,Q=(0,h.LY)(),X=(0,R.zh)(),Z=(0,a.FE)(X.dataSource),b=(0,n.U)(I),J=(0,N.useMemo)(function(){return[JSON.stringify(t),JSON.stringify(B)]},[t,B]),se=r()(J,2),q=se[0],le=se[1],Ce=function(Pe){var ie;if(B)return Promise.resolve({data:B});if(!O)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(O==="get"&&A().isNil(t.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var me=t.filterByTk===void 0?A().omit(t,"filterByTk"):t;return(ie=z[O])===null||ie===void 0?void 0:ie.call(z,C()(C()({},me),Pe)).then(function(pe){return pe.data})},_e=function(){var Be=i()(u()().mark(function Pe(){var ie,me,pe,ee,ue=arguments;return u()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,Promise.all([(G||Ce).apply(void 0,ue),p({sourceId:W,association:I,parentRecord:te,api:Q,headers:Z,sourceKey:b})]);case 2:return ie=Ee.sent,me=r()(ie,2),pe=me[0],ee=me[1],pe&&(pe.parentRecord=ee==null?void 0:ee.data),Ee.abrupt("return",pe);case 8:case"end":return Ee.stop()}},Pe)}));return function(){return Be.apply(this,arguments)}}(),ye=(0,h.QT)(_e,C()(C()({},Y),{},{manual:S==="manual",ready:!!O,refreshDeps:[O,q,le,z,I,te,W]}));return ye}function p(l){return P.apply(this,arguments)}function P(){return P=i()(u()().mark(function l(S){var z,O,U,t,B,G,Y,W,I;return u()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(z=S.sourceId,O=S.association,U=S.parentRecord,t=S.api,B=S.headers,G=S.sourceKey,!U){Q.next=3;break}return Q.abrupt("return",Promise.resolve({data:U}));case 3:if(!(!O||!G||!z)){Q.next=5;break}return Q.abrupt("return",Promise.resolve({data:void 0}));case 5:return Y=O.split("."),W="".concat(Y[0],":get?filter[").concat(G,"]=").concat(z),Q.next=9,t.request({url:W,headers:B});case 9:return I=Q.sent,Q.abrupt("return",I.data);case 11:case"end":return Q.stop()}},l)})),P.apply(this,arguments)}var m=function(S){var z,O,U,t,B=(0,N.useRef)(S.recordRequest),G=(0,N.useRef)((z=S.recordRequest)===null||z===void 0?void 0:z.data),Y=(0,x.Du)(),W=Y.active,I=(0,N.useRef)(W),te=(0,N.useDeferredValue)(W),Q=(0,R.zh)();if(te&&!I.current&&(A().isNil(Q.dataLoadingMode)||Q.dataLoadingMode==="auto")){var X;(X=S.recordRequest)===null||X===void 0||X.refresh()}if(te&&I.current&&!((O=S.recordRequest)!==null&&O!==void 0&&O.loading)&&!A().isEqual(G.current,(U=S.recordRequest)===null||U===void 0?void 0:U.data)){var Z;G.current=(Z=S.recordRequest)===null||Z===void 0?void 0:Z.data}return te!==I.current&&(I.current=te),B.current=S.recordRequest,(0,$.jsx)(w.Provider,{value:B,children:(0,$.jsx)(L.Provider,{value:(t=S.recordRequest)===null||t===void 0?void 0:t.loading,children:(0,$.jsx)(f.Provider,{value:G.current,children:S.children})})})},j=N.memo(function(l){var S,z,O=l.children,U=(0,R.zh)(),t=U.action,B=U.filterByTk,G=U.sourceId,Y=U.params,W=Y===void 0?K.Nu:Y,I=U.association,te=U.collection,Q=U.record,X=U.parentRecord,Z=U.requestOptions,b=U.requestService,J=(0,N.useMemo)(function(){return C()(C()({},W),{},{filterByTk:B||W.filterByTk})},[B,W]),se=y({action:t,sourceId:G,record:Q,association:I,collection:te,requestOptions:Z,requestService:b,params:J,parentRecord:X}),q=(S=se.data)===null||S===void 0?void 0:S.parentRecord,le=(0,N.useMemo)(function(){return q&&new o.DI({isNew:!1,data:q instanceof o.DI?q.data:q})},[q]);return(0,$.jsx)(m,{recordRequest:se,children:t!=="list"?(0,$.jsx)(o.E0,{isNew:t==null,record:((z=se.data)===null||z===void 0?void 0:z.data)||Q,parentRecord:le||X,children:O}):(0,$.jsx)(o.E0,{isNew:!1,record:null,parentRecord:le||X,children:O})})});j.displayName="DataBlockRequestProvider";var D=function(){var S=(0,N.useContext)(w),z=(0,N.useContext)(L),O=(0,N.useContext)(f);return(0,N.useMemo)(function(){return S?C()(C()({},S.current),{},{loading:z,data:O}):null},[S,O,z])},c=function(){var S=(0,N.useContext)(w);return(0,N.useMemo)(function(){return{getDataBlockRequest:function(){return S?S.current:null}}},[S])},d=function(){return(0,N.useContext)(f)}},14310:function(Ke,ae,e){"use strict";e.d(ae,{T1:function(){return h},eh:function(){return M},wb:function(){return n}});var H=e(96695),u=e.n(H),k=e(96486),i=e.n(k),g=e(67294),C=e(12174),T=e(1836),r=e(88496),N=e(8341),v=e(87180),A=e(85893),h=(0,g.createContext)(null);h.displayName="DataBlockResourceContext";var M=function(K){var o=K.children,a=(0,v.zh)(),R=(0,T.d9)(),E=a.association,$=a.collection,w=a.dataSource,L=a.sourceId,f=a.parentRecord,y=(0,C.LY)(),p=(0,N.FE)(w),P=(0,g.useMemo)(function(){return typeof $=="string"?$:$==null?void 0:$.name},[$]),m=(0,g.useMemo)(function(){if(L)return L;if(E&&f){var D=R.getSourceKeyByAssociation(E),c=f instanceof r.DI?f.data:f;if((0,k.isArray)(D)){var d={},l=u()(D),S;try{for(l.s();!(S=l.n()).done;){var z=S.value;d[z]=c==null?void 0:c[z]}}catch(O){l.e(O)}finally{l.f()}return encodeURIComponent(JSON.stringify(d))}else return c[D]}},[E,L,f]),j=(0,g.useMemo)(function(){return E?y.resource(E,m,p,!m):y.resource(P,void 0,p)},[y,E,$,m,p]);return(0,A.jsx)(h.Provider,{value:j,children:o})};function n(){var x=(0,g.useContext)(h);if(!x)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return x}},35519:function(Ke,ae,e){"use strict";e.d(ae,{n:function(){return o},o:function(){return K}});var H=e(31996),u=e.n(H),k=e(26037),i=e.n(k),g=e(15009),C=e.n(g),T=e(99289),r=e.n(T),N=e(12444),v=e.n(N),A=e(72004),h=e.n(A),M=e(9783),n=e.n(M),x=e(1836),K=function(){function a(R,E){v()(this,a),n()(this,"collectionManager",void 0),n()(this,"reloadCallbacks",[]),this.options=R,this.dataSourceManager=E,this.collectionManager=new x.w4(R.collections,this)}return h()(a,[{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(E){Object.assign(this.options,E)}},{key:"getOption",value:function(E){return this.options[E]}},{key:"addReloadCallback",value:function(E){this.reloadCallbacks.includes(E)||this.reloadCallbacks.push(E)}},{key:"removeReloadCallback",value:function(E){this.reloadCallbacks=this.reloadCallbacks.filter(function($){return $!==E})}},{key:"reload",value:function(){var R=r()(C()().mark(function $(){var w;return C()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.getDataSource();case 2:return w=f.sent,this.setOptions(w),this.collectionManager.setCollections(w.collections||[]),this.reloadCallbacks.forEach(function(y){return y(w.collections)}),f.abrupt("return",this.options);case 7:case"end":return f.stop()}},$,this)}));function E(){return R.apply(this,arguments)}return E}()}]),a}(),o=function(a){u()(E,a);var R=i()(E);function E(){return v()(this,E),R.apply(this,arguments)}return h()(E,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),E}(K)},57638:function(Ke,ae,e){"use strict";e.d(ae,{AK:function(){return f},UC:function(){return L},ym:function(){return w}});var H=e(97857),u=e.n(H),k=e(15009),i=e.n(k),g=e(5574),C=e.n(g),T=e(99289),r=e.n(T),N=e(19632),v=e.n(N),A=e(12444),h=e.n(A),M=e(72004),n=e.n(M),x=e(9783),K=e.n(x),o=e(35519),a=e(67836),R=e(65050),E=e(96486),$=e.n(E),w="main",L='{{t("Main")}}',f=function(){function y(){var p,P=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=arguments.length>1?arguments[1]:void 0;h()(this,y),K()(this,"dataSourceInstancesMap",{}),K()(this,"multiDataSources",[]),K()(this,"collectionMixins",[]),K()(this,"collectionTemplateManager",void 0),K()(this,"collectionFieldInterfaceManager",void 0),this.options=m,this.app=j,this.collectionTemplateManager=new a.y(m.collectionTemplates,this),this.collectionFieldInterfaceManager=new R.Z(m.fieldInterfaces,m.fieldInterfaceGroups,this),(p=this.collectionMixins).push.apply(p,v()(m.collectionMixins||[])),this.addDataSource(o.n,{key:w,displayName:L,collections:m.collections||[]}),(m.dataSources||[]).forEach(function(D){P.addDataSource(o.n,D)})}return n()(y,[{key:"addCollectionMixins",value:function(){var P=this,m,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=j.filter(function(c){return!P.collectionMixins.includes(c)});D.length&&((m=this.collectionMixins).push.apply(m,v()(D)),this.getDataSources().forEach(function(c){return c.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(P){var m=Object.values(this.dataSourceInstancesMap);return P?$().filter(m,P):m}},{key:"getDataSource",value:function(P){return P?this.dataSourceInstancesMap[P]:this.dataSourceInstancesMap[w]}},{key:"removeDataSources",value:function(P){var m=this;P.forEach(function(j){delete m.dataSourceInstancesMap[j]})}},{key:"addDataSource",value:function(P,m){var j=new P(m,this);return this.dataSourceInstancesMap[j.key]=j,j}},{key:"addDataSources",value:function(){var p=r()(i()().mark(function m(j,D){return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!this.multiDataSources.some(function(l){var S=C()(l,2),z=S[0],O=S[1];return z===j&&O===D})){d.next=2;break}return d.abrupt("return");case 2:this.multiDataSources.push([j,D]);case 3:case"end":return d.stop()}},m,this)}));function P(m,j){return p.apply(this,arguments)}return P}()},{key:"getAllCollections",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=P.filterCollection,j=P.filterDataSource;return this.getDataSources(j).reduce(function(D,c){return D.push(u()(u()({},c.getOptions()),{},{collections:c.collectionManager.getCollections(m)})),D},[])}},{key:"addFieldInterfaceGroups",value:function(P){this.collectionFieldInterfaceManager.addFieldInterfaceGroups(P)}},{key:"addCollectionTemplates",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionTemplateManager.addCollectionTemplates(P)}},{key:"addFieldInterfaces",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionFieldInterfaceManager.addFieldInterfaces(P)}},{key:"reload",value:function(){var p=r()(i()().mark(function m(){var j=this;return i()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Promise.all(this.multiDataSources.map(function(){var d=r()(i()().mark(function l(S){var z,O,U,t;return i()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return z=C()(S,2),O=z[0],U=z[1],G.next=3,O();case 3:t=G.sent,t.map(function(Y){return j.addDataSource(U,Y)});case 5:case"end":return G.stop()}},l)}));return function(l){return d.apply(this,arguments)}}()));case 2:return c.abrupt("return",Promise.all(this.getDataSources().map(function(d){return d.reload()})));case 3:case"end":return c.stop()}},m,this)}));function P(){return p.apply(this,arguments)}return P}()}]),y}()},13511:function(Ke,ae,e){"use strict";e.d(ae,{Uv:function(){return C},fp:function(){return g},kv:function(){return i},up:function(){return k}});var H=e(67294),u=e(85893),k=(0,H.createContext)(null);k.displayName="DataSourceManagerContext";var i=function(r){var N=r.children,v=r.dataSourceManager;return(0,u.jsx)(k.Provider,{value:v,children:N})};function g(){var T=(0,H.useContext)(k);return T}function C(){var T=g(),r=(0,H.useCallback)(function(N,v){var A;return T==null||(A=T.getDataSource(v))===null||A===void 0||(A=A.collectionManager)===null||A===void 0||(A=A.getCollection(N))===null||A===void 0?void 0:A.getAllCollectionsInheritChain()},[T]);return{getAllCollectionsInheritChain:r}}},44990:function(Ke,ae,e){"use strict";e.d(ae,{FC:function(){return x},LX:function(){return M},NT:function(){return h},wl:function(){return n}});var H=e(5574),u=e.n(H),k=e(67294),i=e(13511),g=e(36032),C=e(7105),T=e(59720),r=e(15867),N=e(3407),v=e(26793),A=e(85893),h=(0,k.createContext)(null);h.displayName="DataSourceContext";var M=function(o){var a=o.children,R=o.dataSource,E=(0,i.fp)(),$=(0,v.$)(),w=$.t,L=(0,C.Dmu)(),f=L.refresh,y=k.useState(0),p=u()(y,2),P=p[0],m=p[1],j=E==null?void 0:E.getDataSource(R);return j?j.status==="loading-failed"?(0,A.jsx)(g.z,{type:"Data Source",name:j.displayName||R,message:j.errorMessage||"loading failed"}):j.status==="loading"||j.status==="reloading"?(0,A.jsx)(C.Ssf,{children:(0,A.jsx)(T.ZP,{icon:(0,A.jsx)(N.Z,{}),title:"".concat(j.displayName||R," ").concat(w("data source")," ").concat(w("loading"),"..."),extra:(0,A.jsx)(r.ZP,{type:"primary",onClick:function(){return j.reload().then(function(){f(),m(Math.random())})},children:w("Refresh")})})}):(0,A.jsx)(h.Provider,{value:j,children:a}):(0,A.jsx)(g.z,{type:"Data Source",name:R})};function n(){var K=(0,k.useContext)(h);return K}function x(){var K=(0,k.useContext)(h);return K==null?void 0:K.key}},49453:function(Ke,ae,e){"use strict";e.d(ae,{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 i.Uv},fp:function(){return i.fp},kv:function(){return i.kv},nC:function(){return H.n},o2:function(){return H.o},up:function(){return i.up},wl:function(){return k.wl},ym:function(){return u.ym}});var H=e(35519),u=e(57638),k=e(44990),i=e(13511)},94804:function(Ke,ae,e){"use strict";e.d(ae,{dq:function(){return v.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 C.z},sb:function(){return u.s},v_:function(){return k.v_},SY:function(){return i.S},Z:function(){return i.Z},YT:function(){return k.YT},Cd:function(){return t},rJ:function(){return z},lC:function(){return G},w4:function(){return H.w4},IX:function(){return H.IX},xw:function(){return H.xw},pD:function(){return C.p},YQ:function(){return H.YQ},DI:function(){return h.DI},vI:function(){return h.vI},E0:function(){return h.E0},Pl:function(){return g.P},yM:function(){return g.y},Ip:function(){return A.ym},UC:function(){return A.UC},hZ:function(){return v.hZ},KY:function(){return v.KY},T1:function(){return r.T1},eh:function(){return r.eh},o2:function(){return A.o2},i:function(){return T.i},NT:function(){return A.NT},AK:function(){return A.AK},up:function(){return A.up},kv:function(){return A.kv},LX:function(){return A.LX},Xc:function(){return H.Xc},j5:function(){return H.j5},nC:function(){return A.nC},sI:function(){return v.sI},Pd:function(){return H.Pd},K0:function(){return Y.K},iv:function(){return U},GX:function(){return M.GX},Yj:function(){return M.Yj},H0:function(){return N.H0},Uv:function(){return A.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 h.RA},Kv:function(){return h.Kv},oV:function(){return h.oV},nE:function(){return h.nE},bX:function(){return H.bX},eS:function(){return v.eS},zh:function(){return v.zh},hS:function(){return N.hS},xQ:function(){return N.xQ},Pt:function(){return N.Pt},wb:function(){return r.wb},wl:function(){return A.wl},on:function(){return M.FE},FC:function(){return A.FC},fp:function(){return A.fp},P5:function(){return H.P5},lb:function(){return H.lb},Rr:function(){return v.Rr}});var H=e(1836),u=e(52020),k=e(67668),i=e(65050),g=e(67836),C=e(36032),T=e(88996),r=e(14310),N=e(39742),v=e(87180),A=e(49453),h=e(88496),M=e(8341),n=e(97857),x=e.n(n),K=e(67294);function o(W,I,te){var Q,X=W.block,Z=W.isReadPretty,b=Z===void 0?function(pe){var ee=pe.form;return ee.readPretty}:Z,J=W.filter,se=J===void 0?function(){return!0}:J,q=W.getInitializerItem,le=q===void 0?function(){return{}}:q,Ce=W.getSchema,_e=Ce===void 0?function(){return{}}:Ce,ye=te.collectionManager,Be=te.collection,Pe=te.dataSourceManager,ie=te.actionContext,me=(Q=ie.fieldSchema)===null||Q===void 0?void 0:Q["x-action"];return Be?I.map(function(pe){var ee=ye.getCollection(pe.target),ue=Pe.collectionFieldInterfaceManager.getFieldInterface(pe.interface);return{collectionField:pe,context:x()(x()({},te),{},{targetCollection:ee,collectionFieldInterface:ue})}}).filter(function(pe){var ee=pe.collectionField;return ee.interface}).filter(function(pe){var ee=pe.collectionField,ue=pe.context;return se(ee,ue)}).map(function(pe){var ee,ue,ge=pe.collectionField,Ee=pe.context,Me={type:"string",title:(ge==null||(ee=ge.uiSchema)===null||ee===void 0?void 0:ee.title)||ge.name,name:ge.name,"x-component":"CollectionField","x-collection-field":"".concat(Be.name,".").concat(ge.name),"x-read-pretty":ge==null||(ue=ge.uiSchema)===null||ue===void 0?void 0:ue["x-read-pretty"]},Te=_e(ge,x()(x()({},Ee),{},{defaultSchema:Me})),Ae=x()(x()({},Me),Te||{});return{collectionField:ge,schema:Ae,context:x()(x()({},Ee),{},{schema:Ae})}}).map(function(pe){var ee,ue=pe.collectionField,ge=pe.context,Ee={type:"item",name:ue.name,title:(ue==null||(ee=ue.uiSchema)===null||ee===void 0?void 0:ee.title)||ue.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Te){var Ae,Ie;(Ae=ge.collectionFieldInterface)===null||Ae===void 0||(Ie=Ae.schemaInitialize)===null||Ie===void 0||Ie.call(Ae,Te,{field:ue,block:X,readPretty:b==null?void 0:b(ge),action:me,targetCollection:ge.targetCollection})},schema:ge.schema};return{collectionField:ue,context:ge,defaultInitializerItem:Ee}}).map(function(pe){var ee=pe.collectionField,ue=pe.defaultInitializerItem,ge=pe.context,Ee=le(ee,x()(x()({},ge),{},{defaultInitializerItem:ue}));return x()(x()({},ue),Ee||{})}):[]}var a=e(80844),R=e(26793),E=e(58837),$=e(44990),w=e(76157),L=e(35746),f=e(13511),y=e(7105);function p(){var W=(0,R.$)(),I=W.t,te=(0,E.Kx)(),Q=(0,f.fp)(),X=(0,w.XC)(),Z=(0,$.wl)(),b=(0,a.useForm)(),J=(0,a.useFieldSchema)(),se=(0,L.d9)(),q=(0,y.eJW)();return{t:I,compile:q,actionContext:X,fieldSchema:J,collection:te,dataSource:Z,form:b,collectionManager:se,dataSourceManager:Q}}var P=e(59582),m=e(85893),j=function(I){var te=p(),Q=te.t,X=te.collection,Z=X.getFields(),b=o(I,Z,te);return(0,m.jsx)(P.iP,{title:Q("Display fields"),children:b})},D=function(I){var te=p(),Q=te.collection,X=te.t,Z=te.collectionManager,b=Q.getParentCollectionsName();if(!b.length)return null;var J=b.map(function(se){var q=Q.getParentCollectionFields(se);if(q.length===0)return null;var le=Z.getCollection(se);return{parentCollection:le,parentCollectionFields:q}}).filter(Boolean).map(function(se){var q=se,le=q.parentCollection,Ce=q.parentCollectionFields,_e=x()(x()({},te),{},{collection:le});return{type:"itemGroup",divider:!0,title:X("Parent collection fields")+"("+te.compile(le.title)+")",children:o(I,Ce,_e)}});return(0,m.jsx)(P.E0,{children:J})},c=e(13769),d=e.n(c),l=["filterAssociationField","filterSelfField","getSchema"],S=function(I){var te=I.filterAssociationField,Q=I.filterSelfField,X=Q===void 0?function(){return!0}:Q,Z=I.getSchema,b=d()(I,l),J=I.context,se=J.collection,q=J.t,le=J.collectionManager,Ce=se.getFields(),_e=["o2o","oho","obo","m2o"],ye=Ce.filter(function(Pe){return _e.includes(Pe.interface)}).filter(function(Pe){return X(Pe,I.context)});if(!ye.length)return null;var Be=ye.map(function(Pe){var ie=le.getCollection(Pe.target);if(!ie)return null;var me=ie==null?void 0:ie.getAllFields();return me.length?{associationField:Pe,associationCollection:ie,associationCollectionFields:me}:null}).filter(Boolean).map(function(Pe){var ie,me,pe=Pe.associationField,ee=Pe.associationCollection,ue=Pe.associationCollectionFields,ge=x()(x()({},I.context),{},{collection:ee}),Ee=function(Te,Ae){var Ie=Z(Te,Ae);return x()(x()({},Ie||{}),{},{"x-read-pretty":!0,name:"".concat(pe.name,".").concat(Te.name),"x-collection-field":"".concat(se.name,".").concat(pe.name,".").concat(Te.name)})};return{type:"subMenu",name:(ie=pe.uiSchema)===null||ie===void 0?void 0:ie.title,title:(me=pe.uiSchema)===null||me===void 0?void 0:me.title,children:o(x()(x()({},b),{},{filter:te,getSchema:Ee}),ue,ge)}});return Be.length?(0,m.jsx)(P.iP,{title:q("Display association fields"),children:Be}):null},z=function(I){var te=I.selfField,Q=I.parentField,X=I.associationField,Z=I.block,b=p();return b.collection?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(j,x()(x()({block:Z},te),{},{context:x()(x()({},b),{},{collection:b.collection})})),Q&&(0,m.jsx)(D,x()(x()({block:Z},Q),{},{context:x()(x()({},b),{},{collection:b.collection})})),X&&(0,m.jsx)(S,x()(x()({block:Z},X),{},{context:x()(x()({},b),{},{collection:b.collection})}))]}):null},O=e(40341),U=function(I,te,Q){var X=(0,O.nD)(I,"x-component","Kanban");return(0,O.nD)(X,te,Q)},t=function(I){var te=(I==null?void 0:I.block)||"Form",Q={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},X={remove:O.YT};return(0,m.jsx)(z,{block:te,selfField:{filter:function(b){return!b.treeChildren},getSchema:function(b,J){var se,q=J.targetCollection,le=(q==null?void 0:q.template)==="file",Ce=q,_e=b==null||(se=b.uiSchema)===null||se===void 0||(se=se["x-component-props"])===null||se===void 0?void 0:se.fieldNames;return x()(x()({},Q),{},{"x-component-props":le?{fieldNames:{label:"preview",value:"id"}}:Ce&&_e?{fieldNames:x()(x()({},_e),{},{label:(q==null?void 0:q.titleField)||_e.label})}:{}})},getInitializerItem:function(){return x()(x()({},X),{},{find:(I==null?void 0:I.block)==="Kanban"?U:void 0})}},parentField:{getSchema:function(){return Q},getInitializerItem:function(){return X}},associationField:{filterSelfField:function(b){return te!=="Form"?!0:(b==null?void 0:b.interface)==="m2o"},filterAssociationField:function(b){return(b==null?void 0:b.interface)&&!["subTable"].includes(b==null?void 0:b.interface)&&!b.treeChildren},getSchema:function(){return Q},getInitializerItem:function(){return X}}})},B=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],G=function(I){function te(Q){var X=Q.fieldSchema,Z=Q.form,b=X["x-component"]==="AssociationField.SubTable",J=b?Z.readPretty:!0;return J}return(0,m.jsx)(z,{block:"Table",selfField:{isReadPretty:te,filter:function(X){return X.interface!=="subTable"&&!X.treeChildren},getSchema:function(X,Z){var b,J,se=Z.targetCollection,q=Z.fieldSchema,le=Z.form,Ce=(se==null?void 0:se.template)==="file",_e=((b=X.uiSchema)===null||b===void 0?void 0:b["x-component"])==="Preview",ye=q["x-component"]==="AssociationField.SubTable",Be=te({fieldSchema:q,form:le});return{"x-component-props":Ce?{fieldNames:{label:"preview",value:"id"}}:_e?{size:"small"}:{},"x-read-pretty":Be||((J=X.uiSchema)===null||J===void 0?void 0:J["x-read-pretty"]),"x-decorator":ye?B.includes(X.interface)||Ce?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:O.p$,remove:O.pP}}},parentField:{isReadPretty:te,getSchema:function(X,Z){var b,J=Z.targetCollection,se=Z.fieldSchema,q=Z.form,le=(J==null?void 0:J.template)==="file",Ce=se["x-component"]==="AssociationField.SubTable",_e=te({fieldSchema:se,form:q});return{"x-component-props":le?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":_e||((b=X.uiSchema)===null||b===void 0?void 0:b["x-read-pretty"]),"x-decorator":Ce?B.includes(X.interface)||le?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:O.YT}}},associationField:{filterAssociationField:function(X){return!["subTable"].includes(X.interface)&&!X.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:O.p$,remove:O.pP}}}})},Y=e(22558)},8341:function(Ke,ae,e){"use strict";e.d(ae,{FE:function(){return T},GX:function(){return r},Yj:function(){return C}});var H=e(9783),u=e.n(H),k=e(67294),i=e(57638),g="x-data-source",C=function(v,A){var h;return(h=v.collectionFieldInterfaceManager.getFieldInterface(A.interface))===null||h===void 0?void 0:h.titleUsable},T=function(v){var A=(0,k.useMemo)(function(){if(v&&v!==i.ym)return u()({},g,v)},[v]);return A},r=function(v){return v&&v!==i.ym?u()({},g,v):{}}},69803:function(Ke,ae,e){"use strict";e.d(ae,{AL:function(){return w},C$:function(){return R},PE:function(){return a},jr:function(){return $},uN:function(){return L},yq:function(){return E}});var H=e(15009),u=e.n(H),k=e(99289),i=e.n(k),g=e(12444),C=e.n(g),T=e(72004),r=e.n(T),N=e(31996),v=e.n(N),A=e(26037),h=e.n(A),M=e(67294),n=e(26793),x=e(31601),K=e(15585),o=e(85893),a=(0,M.createContext)({getTitle:function(){return""},setTitle:function(){}});a.displayName="DocumentTitleContext";var R=M.memo(function(f){var y=f.addonBefore,p=f.addonAfter,P=(0,n.$)(),m=P.t,j=(0,n.$)("lm-desktop-routes"),D=j.t,c=(0,n.$)("lm-collections"),d=c.t,l=M.useRef(""),S=(0,M.useCallback)(function(){return l.current},[]),z=(0,M.useCallback)(function(U){document.title=l.current="".concat(y?" - ".concat(m(y)):"").concat(D(U||"")).concat(p?" - ".concat(d(p)):"")},[p,y,m,D,d]),O=(0,M.useMemo)(function(){return{getTitle:S,setTitle:z}},[S,z]);return(0,o.jsx)(a.Provider,{value:O,children:f.children})});R.displayName="DocumentTitleProvider";var E=function(y){var p,P=(0,K.HX)();return(0,o.jsx)(R,{addonAfter:P==null||(p=P.data)===null||p===void 0||(p=p.data)===null||p===void 0?void 0:p.title,children:y.children})},$=function(){return(0,M.useContext)(a)},w=function(y){var p=$(),P=p.setTitle;(0,M.useEffect)(function(){P(y)},[P,y])},L=function(f){v()(p,f);var y=h()(p);function p(){return C()(this,p),y.apply(this,arguments)}return r()(p,[{key:"load",value:function(){var P=i()(u()().mark(function j(){return u()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:this.app.use(E,this.options);case 1:case"end":return c.stop()}},j,this)}));function m(){return P.apply(this,arguments)}return m}()}]),p}(x.S)},67205:function(Ke,ae,e){"use strict";e.d(ae,{XA:function(){return o},kO:function(){return R},vY:function(){return a}});var H=e(97857),u=e.n(H),k=e(19632),i=e.n(k),g=e(80844),C=e(96486),T=e.n(C),r=e(58837),N=e(39742),v=e(4277),A=e(7105),h=e(87714),M=e(67294),n=e(85893),x=function(E){return E.AND="$and",E.OR="$or",E}(x||{}),K=(0,M.createContext)(null);K.displayName="FilterContext";var o=M.memo(function(E){var $=E.children,w=M.useRef([]),L=(0,M.useCallback)(function(p){typeof p=="function"?w.current=p(w.current):w.current=p},[]),f=(0,M.useCallback)(function(){return w.current},[]),y=(0,M.useMemo)(function(){return{getDataBlocks:f,setDataBlocks:L}},[f,L]);return(0,n.jsx)(K.Provider,{value:y,children:$})});o.displayName="FilterBlockProvider";var a=function($){var w,L=$.children,f=$.params,y=(0,r.Kx)(),p=R(),P=p.recordDataBlocks,m=(0,N.Pt)(),j=m.getDataBlockRequest,D=(0,g.useField)(),c=(0,g.useFieldSchema)(),d=(0,h.Fp)(),l=(0,M.useRef)(null),S=(0,v.tU)(),z=D&&D.decoratorType!=="FilterFormBlockProvider"&&D.decoratorType!=="FormBlockProvider"&&D.decoratorProps.blockType!=="filter",O=(0,M.useCallback)(function(){var U=j();P({uid:c["x-uid"],title:D.componentProps.title,doFilter:U.runAsync,collection:y,associatedFields:d,foreignKeyFields:y==null?void 0:y.getFields("isForeignKey"),defaultFilter:(f==null?void 0:f.filter)||{},service:U,dom:l.current,dataLoadingMode:S,clearFilter:function(B){var G,Y,W=((G=this.service.params)===null||G===void 0?void 0:G[0])||{},I=((Y=this.service.params)===null||Y===void 0||(Y=Y[1])===null||Y===void 0?void 0:Y.filters)||{};delete I[B];var te=(0,h.EO)([].concat(i()(Object.values(I).map(function(Q){return(0,A.WmO)(Q)})),[(f==null?void 0:f.filter)||{}]));this.service.run(u()(u()({},W),{},{page:1,filter:te}),{filters:I})},clearData:function(){this.service.mutate(void 0)}})},[d,y,S,D==null||(w=D.componentProps)===null||w===void 0?void 0:w.title,c,f==null?void 0:f.filter,P,j]);return(0,M.useEffect)(function(){z&&O()},[O,z]),(0,n.jsx)("div",{ref:l,children:L})},R=function(){var $=M.useContext(K),w=(0,M.useCallback)(function(){return($==null?void 0:$.getDataBlocks())||[]},[$]),L=(0,M.useCallback)(function(y){var p=$==null?void 0:$.getDataBlocks().find(function(P){return P.uid===y.uid});if(p){Object.assign(p,y);return}$==null||$.setDataBlocks(function(P){return[].concat(i()(P),[y])})},[$]),f=(0,M.useCallback)(function(y){$!=null&&$.getDataBlocks().every(function(p){return p.uid!==y})||$==null||$.setDataBlocks(function(p){return p.filter(function(P){return P.uid!==y})})},[$]);return $?{recordDataBlocks:L,getDataBlocks:w,removeDataBlock:f,inProvider:!0}:{inProvider:!1,recordDataBlocks:T().noop,getDataBlocks:w,removeDataBlock:T().noop}}},18386:function(Ke,ae,e){"use strict";e.d(ae,{$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(Ke,ae,e){"use strict";e.d(ae,{$f:function(){return m},EO:function(){return w},Fp:function(){return P},Op:function(){return c},Um:function(){return y},hi:function(){return D},jE:function(){return p},vC:function(){return $},x5:function(){return L},yr:function(){return j},zv:function(){return f}});var H=e(97857),u=e.n(H),k=e(19632),i=e.n(k),g=e(5574),C=e.n(g),T=e(9783),r=e.n(T),N=e(52677),v=e.n(N),A=e(80844),h=e(84157),M=e(96486),n=e.n(M),x=e(67294),K=e(10097),o=e(58837),a=e(13511),R=e(7105),E=e(67205),$=function(d){return d[d.FORM=0]="FORM",d[d.TABLE=1]="TABLE",d[d.TREE=2]="TREE",d[d.COLLAPSE=3]="COLLAPSE",d}({}),w=function(l){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",z=l.filter(function(O){if(O&&v()(O)==="object"&&!Array.isArray(O))return Object.values(O).filter(function(U){return U!==void 0}).length});return z.length===0?{}:z.length===1?z[0]:r()({},S,z)},L=function(l,S){var z;return(z=S.associatedFields)===null||z===void 0?void 0:z.filter(function(O){return l==null?void 0:l.some(function(U){return U===O.target})})},f=function(l,S){var z;return(z=S.foreignKeyFields)===null||z===void 0?void 0:z.filter(function(O){return l.fields.some(function(U){return U.type!=="belongsTo"&&U.foreignKey===O.name})})},y=function(l){var S=(0,E.kO)(),z=S.getDataBlocks,O=(0,A.useFieldSchema)(),U=(0,o.Kx)(),t=(0,a.Uv)(),B=t.getAllCollectionsInheritChain;if(l===$.FORM||l===$.COLLAPSE)return z().filter(function(G){return j(G.collection,U)});if(l===$.TABLE||l===$.TREE)return z().filter(function(G){var Y,W;return O["x-uid"]!==G.uid&&(j(G.collection,U)||((Y=L(B(U.name,U.dataSource),G))===null||Y===void 0?void 0:Y.length)||((W=f(U,G))===null||W===void 0?void 0:W.length))})},p=function(l,S,z,O){l=(0,h.flatten)(l,{breakOn:function(B){var G=B.value,Y=B.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(S[Y]))return!0;var W=z("".concat(O,".").concat(Y));if(W!=null&&W.target){if(Array.isArray(G))return!0;var I=W.targetKey||"id";if(G&&G[I]!=null)return!0}return!1}});var U={$and:Object.keys(l).map(function(t){var B=n().get(l,t),G=z("".concat(O,".").concat(t));return G!=null&&G.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(G.type)&&(B=(0,h.getValuesByPath)(B,G.targetKey||"id"),t="".concat(t,".").concat(G.targetKey||"id"),(G==null?void 0:G.interface)==="chinaRegion"&&(B=n().last(B))),!B&&B!==0&&B!==!1?null:r()({},t,r()({},S[t]||"$eq",B))}).filter(Boolean)};return U},P=function(){var l;return((l=(0,o.Kx)())===null||l===void 0?void 0:l.fields.filter(function(S){return m(S)}))||[]},m=function(l){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(l==null?void 0:l.interface)},j=function(l,S){return l.name===S.name&&l.dataSource===S.dataSource},D=function(){var l=(0,A.useFieldSchema)(),S=(0,E.kO)(),z=S.getDataBlocks,O=(0,K.findFilterTargets)(l),U=O.targets,t=O.uid,B=z(),G=(0,x.useState)(function(){return U&&U.some(function(X){return B.some(function(Z){return Z.uid===X.uid})})}),Y=C()(G,2),W=Y[0],I=Y[1],te=Object.keys(U||{});(0,x.useEffect)(function(){I(U&&U.some(function(X){return B.some(function(Z){return Z.uid===X.uid})}))},[te.length,U,B]);var Q=(0,x.useCallback)(function(X){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";B.forEach(function(J){var se,q,le=U.find(function(Be){return Be.uid===J.uid});if(le){n().isFunction(X)&&(X=X(le,J)),n().isFunction(Z)&&(Z=Z(le,J)),n().isFunction(b)&&(b=b(le));var Ce=((se=J.service.params)===null||se===void 0?void 0:se[0])||{},_e=((q=J.service.params)===null||q===void 0||(q=q[1])===null||q===void 0?void 0:q.filters)||{};X!==void 0?_e[t]={$and:[r()({},Z,r()({},b,X))]}:delete _e[t];var ye=w([].concat(i()(Object.values(_e).map(function(Be){return(0,R.WmO)(Be)})),[J.defaultFilter]));J.doFilter(u()(u()({},Ce),{},{page:1,filter:ye}),{filters:_e})}})},[B,U,t]);return{isConnected:W,doFilter:Q}},c=function(l){for(;l;){if(l["x-filter-targets"])return l["x-decorator"]==="FilterFormBlockProvider";l=l.parent}return!1}},5772:function(Ke,ae,e){"use strict";e.d(ae,{C:function(){return i},z:function(){return k}});var H=e(67294),u=e(85893),k=H.createContext(null),i=function(C){return(0,u.jsx)(k.Provider,{value:C,children:C.children})}},7686:function(Ke,ae,e){"use strict";e.d(ae,{P:function(){return k}});var H=e(67294),u=e(5772),k=function(){return(0,H.useContext)(u.z)||{}}},53285:function(Ke,ae,e){"use strict";e.d(ae,{Cm:function(){return H.C},P5:function(){return u.P},z_:function(){return H.z}});var H=e(5772),u=e(7686)},57105:function(Ke,ae,e){"use strict";e.d(ae,{_9:function(){return B},$:function(){return Q},sq:function(){return Z},ri:function(){return z},mz:function(){return t},cl:function(){return X},QJ:function(){return O},gR:function(){return U}});var H=e(97857),u=e.n(H),k=e(80844),i=e(84327),g=e(90105),C=e(96486),T=e.n(C),r=e(67294),N=e(35746),v=e(58837),A=e(93323),h=e(64910),M=e(96365),n=e(52677),x=e.n(n),K=e(85893),o=function(J,se){if(!(!J&&!se)&&!(0,i.isFn)(J))return(0,K.jsxs)(r.Fragment,{children:[J,se]})},a=function(J){return J&&(x()(J)==="object"||typeof J=="function")},R=function(J,se,q){return(0,i.isFn)(J)?J(se,q):J},E=function(J){var se,q=(0,r.useContext)(k.SchemaComponentsContext),le=J.field,Ce=o(R(J.children,le,le.form),(se=le.content)!==null&&se!==void 0?se:le.componentProps.children);if(le.display!=="visible")return null;var _e=function(ie){var me;return a(ie)?ie:(me=i.FormPath.getIn(q,ie))!==null&&me!==void 0?me:ie},ye=function(ie){return le.decoratorType?r.createElement(_e(le.decoratorType),le.decoratorProps,ie):(0,K.jsx)(r.Fragment,{children:ie})},Be=function(){return le.componentType?r.createElement(_e(le.componentType),u()(u()({},le.componentProps),{},{value:le.value}),Ce):Ce};return ye(Be())};E.displayName="NocoBaseReactiveInternal";var $=E;$.displayName="NocoBaseReactiveField";var w=e(12444),L=e.n(w),f=e(72004),y=e.n(f),p=e(9783),P=e.n(p);function m(b){return new j(b)}var j=function(){function b(J){L()(this,b),P()(this,"props",void 0),P()(this,"initialized",void 0),P()(this,"loading",void 0),P()(this,"validating",void 0),P()(this,"submitting",void 0),P()(this,"selfModified",void 0),P()(this,"active",void 0),P()(this,"visited",void 0),P()(this,"mounted",void 0),P()(this,"unmounted",void 0),P()(this,"inputValues",void 0),P()(this,"inputValue",void 0),P()(this,"feedbacks",void 0),P()(this,"title",void 0),P()(this,"description",void 0),P()(this,"display",void 0),P()(this,"pattern",void 0),P()(this,"editable",void 0),P()(this,"disabled",void 0),P()(this,"readOnly",void 0),P()(this,"readPretty",void 0),P()(this,"visible",void 0),P()(this,"hidden",void 0),P()(this,"dataSource",void 0),P()(this,"validator",void 0),P()(this,"required",void 0),P()(this,"content",void 0),P()(this,"initialValue",void 0),P()(this,"value",void 0),P()(this,"data",void 0),P()(this,"decorator",void 0),P()(this,"component",void 0),P()(this,"decoratorProps",void 0),P()(this,"componentProps",void 0),P()(this,"decoratorType",void 0),P()(this,"componentType",void 0),P()(this,"path",void 0),P()(this,"form",void 0),P()(this,"address",void 0),this.props=J,this.initialize()}return y()(b,[{key:"initialize",value:function(){var se,q,le,Ce,_e,ye,Be,Pe,ie,me,pe,ee,ue,ge,Ee,Me,Te,Ae,Ie,be,fe=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=fe(this.props.title||((se=this.props.schema)===null||se===void 0?void 0:se.title)),this.description=fe(this.props.description||((q=this.props.schema)===null||q===void 0?void 0:q.description)),this.display="visible",this.editable=this.props.editable||((le=this.props.schema)===null||le===void 0?void 0:le["x-editable"]),this.disabled=this.props.disabled||((Ce=this.props.schema)===null||Ce===void 0?void 0:Ce["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||((ye=this.props.schema)===null||ye===void 0?void 0:ye["x-visible"]),this.hidden=this.props.hidden||((Be=this.props.schema)===null||Be===void 0?void 0:Be["x-hidden"]),this.dataSource=fe(this.props.dataSource||((Pe=this.props.schema)===null||Pe===void 0?void 0:Pe.enum)),this.validator=this.props.validator,this.required=this.props.required||!!((ie=this.props.schema)!==null&&ie!==void 0&&ie.required),this.content=fe(this.props.content||((me=this.props.schema)===null||me===void 0?void 0:me["x-content"])),this.initialValue=fe(this.props.initialValue||((pe=this.props.schema)===null||pe===void 0?void 0:pe.default)),this.value=fe(this.props.value),this.data=this.props.data||((ee=this.props.schema)===null||ee===void 0?void 0:ee["x-data"]),this.decorator=this.props.decorator?(0,i.toArr)(this.props.decorator):[(ue=this.props.schema)===null||ue===void 0?void 0:ue["x-decorator"],(ge=this.props.schema)===null||ge===void 0?void 0:ge["x-decorator-props"]],this.component=this.props.component?(0,i.toArr)(this.props.component):[(Ee=this.props.schema)===null||Ee===void 0?void 0:Ee["x-component"],(Me=this.props.schema)===null||Me===void 0?void 0:Me["x-component-props"]],this.decoratorProps=((Te=this.props.schema)===null||Te===void 0?void 0:Te["x-decorator-props"])||{},this.componentProps=((Ae=this.props.schema)===null||Ae===void 0?void 0:Ae["x-component-props"])||{},this.decoratorType=(Ie=this.props.schema)===null||Ie===void 0?void 0:Ie["x-decorator"],this.componentType=(be=this.props.schema)===null||be===void 0?void 0:be["x-component"],this.path={},this.form={},this.address={concat:T().noop}}}]),b}(),D=function(J){var se=(0,M.e)(),q=(0,k.useFieldSchema)(),le=(0,r.useMemo)(function(){return m(u()(u()({},J),{},{compile:se}))},[]);return Object.assign(le.componentProps,q["x-component-props"]),le.value=J.value,(0,K.jsx)(k.FieldContext.Provider,{value:le,children:(0,K.jsx)($,{field:le,children:J.children})})},c=r.createContext({}),d=r.createContext(T().noop),l=function(J){var se=J.children,q=J.refresh,le=U(),Ce=(0,r.useCallback)(function(_e){q(),_e!=null&&_e.refreshParentSchema&&(le==null||le())},[le,q]);return(0,K.jsx)(d.Provider,{value:Ce,children:se})},S=r.createContext(T().noop),z=function(J){var se=J.children,q=J.refresh;return(0,K.jsx)(S.Provider,{value:q,children:se})},O=function(){return r.useContext(S)},U=function(){return r.useContext(d)},t=function(){return r.useContext(c)||{}},B=function(J){var se=J.children,q=J.fieldSchema,le=(0,v.Kx)(),Ce=(0,N.d9)(),_e=q==null?void 0:q.name,ye=(0,r.useMemo)(function(){var Be;if(!le)return null;var Pe=q==null||(Be=q["x-component-props"])===null||Be===void 0?void 0:Be.field;return Ce.getCollectionField(q==null?void 0:q["x-collection-field"])||Pe||le.getField((Pe==null?void 0:Pe.name)||_e)},[le,Ce,q,_e]);return(0,K.jsx)(c.Provider,{value:ye,children:se})},G=T().memoize(function(b,J){return b.toFieldProps({scope:J})}),Y=function(J){var se=(0,k.useExpressionScope)();return G(J,se)},W=function(J){var se=(0,k.useField)();if(J.onlyRenderProperties){var q;return J.basePath||(se==null||(q=se.address)===null||q===void 0?void 0:q.concat(J.name))}return J.basePath||(se==null?void 0:se.address)},I=function(J,se,q){var le=J.toJSON();if(q){if(!le.properties)return J;var Ce=Object.keys(le.properties)[0],_e=Object.values(le.properties)[0];return le.properties[Ce]=(0,i.merge)(T().omit(se,"type","x-read-pretty"),_e),new k.Schema(le)}return new k.Schema((0,i.merge)(T().omit(se,"type","x-read-pretty"),le))},te=function(J){var se=J.schema,q=J.field,le=J.basePath,Ce=J.mapProperties,_e=J.filterProperties,ye=J.propsRecursion,Be=J.values,Pe=J.isUseFormilyField,ie=k.Schema.getOrderProperties(se);return ie.length?(0,K.jsx)(r.Fragment,{children:ie.map(function(me,pe){var ee=me.schema,ue=me.key,ge=(q==null?void 0:q.address)||le,Ee=ee;if((0,i.isFn)(Ce)){var Me=Ce(ee,ue);Me&&(Ee=Me)}if((0,i.isFn)(_e)&&_e(Ee,ue)===!1)return null;var Te=(0,i.isBool)(ye)&&ye?(0,K.jsx)(Z,{propsRecursion:!0,filterProperties:_e,mapProperties:Ce,schema:Ee,name:ue,basePath:ge,values:T().get(Be,ue),isUseFormilyField:Pe}):(0,K.jsx)(Z,{schema:Ee,name:ue,basePath:ge,values:T().get(Be,ue),isUseFormilyField:Pe});return Ee["x-component"]==="CollectionField"?(0,K.jsx)(Q.Provider,{value:!0,children:(0,K.jsx)(B,{fieldSchema:Ee,children:Te})},"".concat(pe,"-").concat(ue)):(0,K.jsx)(Q.Provider,{value:!1,children:(0,K.jsx)(c.Provider,{value:h.Nu,children:Te})},"".concat(pe,"-").concat(ue))})}):null},Q=r.createContext(!1),X=function(){return r.useContext(Q)},Z=r.memo(function(b){var J=b.schema,se=b.name,q=b.onlyRenderProperties,le=b.onlyRenderSelf,Ce=b.mapProperties,_e=b.filterProperties,ye=b.propsRecursion,Be=b.values,Pe=b.isUseFormilyField,ie=Pe===void 0?!0:Pe,me=b.uiSchema,pe=W(b),ee=(0,r.useRef)(null),ue=(0,r.useMemo)(function(){return ee.current=null,new k.Schema(J)},[J]),ge=t(),Ee=ge.uiSchema,Me=ge.defaultValue,Te=(0,g.Z)(),Ae=(0,r.useContext)(A.A),Ie=Ae.onChange,be=ee.current||ue,fe=(0,r.useCallback)(function(){var re=be.parent;ee.current=new k.Schema(be.toJSON(),re),re!=null&&re.properties&&Object.keys(re.properties).forEach(function(Oe){Oe===be.name&&(re.properties[Oe]=ee.current)}),Te(),Ie==null||Ie()},[be,Ie,Te]),oe=(0,r.useMemo)(function(){return me?I(be,me,q):Ee?(Ee.default=Me,I(be,Ee,q)):be},[Ee,Me,be,q,me]),F=Y(oe),ce=function(Oe){if(!le)return te({schema:be,field:Oe,basePath:pe,mapProperties:Ce,filterProperties:_e,propsRecursion:ye,values:Be,isUseFormilyField:ie})},Se=function(){return(0,i.isValid)(se)?oe.type==="object"?q?ce():(0,K.jsx)(k.ObjectField,u()(u()({},F),{},{name:se,basePath:pe,children:ce})):oe.type==="array"?(0,K.jsx)(k.ArrayField,u()(u()({},F),{},{name:se,basePath:pe})):oe.type==="void"?q?ce():(0,K.jsx)(k.VoidField,u()(u()({},F),{},{name:se,basePath:pe,children:ce})):ie?(0,K.jsx)(k.Field,u()(u()({},F),{},{name:se,basePath:pe})):(0,K.jsx)(D,{name:se,value:Be,initialValue:Be,basePath:pe,schema:oe}):ce()};return be?(0,K.jsx)(k.SchemaContext.Provider,{value:be,children:(0,K.jsx)(l,{refresh:fe,children:Se()})}):(0,K.jsx)(r.Fragment,{})});Z.displayName="NocoBaseRecursionField"},69962:function(Ke,ae,e){"use strict";e.d(ae,{wI:function(){return w},YO:function(){return y},kK:function(){return M},uH:function(){return A},mg:function(){return f}});var H=e(5574),u=e.n(H),k=e(9361),i=e(28459),g=e(96486),C=e.n(g),T=e(67294),r=e(97857),N=e.n(r),v={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}},A=v;function h(p){var P;return(P=p.token)!==null&&P!==void 0&&P.colorSettings||(p.token=N()(N()({},p.token),A.token)),p}var M=h,n=function(P,m){var j=m||k.Z.defaultAlgorithm(P);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},x=function(P){return Array.isArray(P.algorithm)?P.algorithm.includes(n)||P.algorithm.push(n):P.algorithm=[P.algorithm,n].filter(Boolean),P.algorithm=P.algorithm.filter(Boolean),P},K=e(85893),o=e(3321),a=e(12174),R=e(68091),E=(0,T.memo)(function(p){var P=p.children,m=(0,R.qD)(),j=o.Z.useApp(),D=j.notification,c=(0,a.LY)();return(0,T.useEffect)(function(){c.notification=D,m.notification=D},[D]),(0,K.jsx)(K.Fragment,{children:P})});E.displayName="AppInner";var $=function(P){var m=P.children,j=P.className,D=P.style;return(0,K.jsx)(o.Z,{className:j,style:N()({height:"100%"},D),children:(0,K.jsx)(E,{children:m})})};$.displayName="AntdAppProvider";var w=$,L=(0,T.createContext)(null);L.displayName="GlobalThemeContext";var f=function(){return T.useContext(L)||{theme:{},isDarkTheme:!1}},y=function(P){var m=P.children,j=P.theme,D=T.useState(j||A),c=u()(D,2),d=c[0],l=c[1],S=(0,T.useRef)(null),z=(0,T.useRef)(null),O=(0,T.useMemo)(function(){var W=d==null?void 0:d.algorithm;return Array.isArray(W)?W.includes(k.Z.darkAlgorithm):W===k.Z.darkAlgorithm},[d==null?void 0:d.algorithm]),U=(0,T.useCallback)(function(W){z.current=W&&C().cloneDeep(W)},[]),t=(0,T.useCallback)(function(){return z.current},[]),B=(0,T.useCallback)(function(W){S.current=W&&C().cloneDeep(W)},[]),G=(0,T.useCallback)(function(){return S.current},[]),Y=(0,T.useMemo)(function(){return{theme:x(d),setTheme:l,setCurrentSettingTheme:B,getCurrentSettingTheme:G,setCurrentEditingTheme:U,getCurrentEditingTheme:t,isDarkTheme:O}},[t,G,O,U,B,d]);return(0,K.jsx)(L.Provider,{value:Y,children:(0,K.jsx)(i.ZP,{theme:M(Y.theme),children:m})})}},15503:function(Ke,ae,e){"use strict";e.d(ae,{M:function(){return x},t:function(){return K}});var H=e(97857),u=e.n(H),k=e(96695),i=e.n(k),g=e(80844),C=e(96486),T=e.n(C),r=e(67294),N=e(7105),v=e(57953),A=e(85893),h=function(){},M=function(a,R,E){var $=void 0;return T().isFunction(a)?$=a:($=R[a],$||console.error("".concat(E," is not registered"))),$||h},n=function(a,R){if(!a)return h;if(T().isFunction(a))return a;var E=a.split("."),$,w=i()(E),L;try{for(w.s();!(L=w.n()).done;){var f=L.value;$=M(f,$||R,a)}}catch(y){w.e(y)}finally{w.f()}return $};function x(o,a){var R=(0,g.useExpressionScope)(),E=n(o,R)(a);return E}function K(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=a.displayName||o.displayName||o.name,E=function $(w){var L=(0,N.ngQ)(),f=L.dn,y=L.findComponent,p=(0,r.useMemo)(function(){var j=f.getSchemaAttribute("x-component"),D=f.getSchemaAttribute("x-decorator"),c=f.getSchemaAttribute("x-use-component-props"),d=f.getSchemaAttribute("x-use-decorator-props");if(j&&c&&y(j)===$)return c;if(D&&d&&y(D)===$)return d},[f]),P=x(p,w),m=(0,r.useMemo)(function(){return u()(u()({},w),P)},[P,w]);return(0,A.jsx)(r.Suspense,{fallback:(0,A.jsx)(v.Z,{}),children:(0,A.jsx)(o,u()(u()({},m),{},{children:w.children}))})};return o.displayName=R,E.displayName="withSchemaProps(".concat(R,")"),E}},83335:function(Ke,ae,e){"use strict";e.d(ae,{C:function(){return r}});var H=e(97857),u=e.n(H),k=e(48054),i=e(39742),g=e(67294),C=e(85893),T=function(){var v;return!!((v=(0,i.hS)())!==null&&v!==void 0&&v.loading)},r=function(v,A){var h=A||{},M=h.useLoading,n=M===void 0?T:M,x=h.displayName,K=h.SkeletonComponent,o=K===void 0?k.Z:K,a=g.memo(function(R){var E=n(),$=(0,g.useRef)(!1);return!$.current&&E?(0,C.jsx)(o,{}):($.current=!0,(0,C.jsx)(v,u()({},R)))});return a.displayName=x||"".concat(v.displayName,"(withSkeletonComponent)")||0,a}},29392:function(Ke,ae,e){"use strict";e.d(ae,{W:function(){return H},S:function(){return i}});var H=function(){return"nocobase-admin-menu"},u=e(67294),k=function(){var C=(0,u.useRef)("initial-scale=0.1"),T=(0,u.useRef)();(0,u.useEffect)(function(){var N=document.querySelector('meta[name="viewport"]');N?C.current=N.content:(N=document.createElement("meta"),N.name="viewport"),N&&(N.content="width=device-width, initial-scale=1, user-scalable=0",T.current=N)},[]);var r=function(){T.current&&(T.current.content=C.current)};return{metaRef:T,restore:r}};function i(){var g=k(),C=g.metaRef,T=g.restore;(0,u.useEffect)(function(){if(C.current)return document.head.insertBefore(C.current,document.head.firstChild),function(){T()}},[])}},74820:function(Ke,ae,e){"use strict";e.d(ae,{d5:function(){return N},iX:function(){return A},nu:function(){return v}});var H=e(19632),u=e.n(H),k=e(96486),i=e.n(k),g=e(67294),C=e(85893),T=(0,g.createContext)(null);T.displayName="GetMenuItemContext";var r=(0,g.createContext)(null);r.displayName="GetMenuItemsContext";var N=function(){return(0,g.useContext)(T)||{}},v=function(){return(0,g.useContext)(r)||{}},A=function(){var M=(0,g.useRef)([]),n=(0,g.useRef)(null),x=(0,g.useRef)(!1),K=(0,g.useCallback)(function(E){var $=E.limitCount;return x.current?(x.current=!1,n.current?n.current():$&&M.current.length>$?(0,C.jsx)(C.Fragment,{children:M.current.slice(0,$).map(function(w,L){return(0,C.jsx)(w,{},L)})}):(0,C.jsx)(C.Fragment,{children:M.current.map(function(w,L){return(0,C.jsx)(w,{},L)})})):null},[]),o=(0,g.useCallback)(function(E){var $=[],w=function(f){$.push(f),$.sort(function(y,p){return(y.order||0)-(p.order||0)})};return x.current=!0,n.current=function(){var L=$.filter(function(f){return f.notdelete}).map(function(f){return i().omit(f,"notdelete")});return $.length=0,$.push.apply($,u()(L)),(0,C.jsx)(r.Provider,{value:{pushMenuItem:w},children:E()})},$},[]),a=(0,g.useCallback)(function(E){var $={},w=function(f){Object.assign($,f)};return x.current=!0,M.current.push(function(){return(0,C.jsx)(T.Provider,{value:{collectMenuItem:w},children:E()})}),$},[]),R=(0,g.useCallback)(function(){M.current=[]},[]);return{Component:K,getMenuItems:o,getMenuItem:a,clean:R}}},71098:function(Ke,ae,e){"use strict";e.d(ae,{j:function(){return r}});var H=e(39379),u=e(85418),k=e(67294),i=e(12174),g=e(35310),C=e(15585),T=e(85893);function r(){var N,v,A=(0,C.HX)()||{},h=A.data,M=(0,i.LY)();return(h==null||(N=h.data)===null||N===void 0?void 0:N.enabledLanguages.length)>1&&(0,T.jsx)(u.Z,{menu:{onClick:function(x){M.auth.setLocale(x.key),window.location.reload()},selectable:!0,defaultSelectedKeys:[M.auth.locale],items:h==null||(v=h.data)===null||v===void 0||(v=v.enabledLanguages)===null||v===void 0?void 0:v.map(function(n){return{key:n,label:g.ZP[n].label}})},children:(0,T.jsx)(H.Z,{style:{fontSize:24}})})}},58384:function(Ke,ae,e){"use strict";e.d(ae,{a:function(){return g},v:function(){return i}});var H=e(36609),u=e(57715),k=e(35310);function i(T,r){return r?"{{t(".concat(JSON.stringify(T),", ").concat(JSON.stringify(r),")}}"):"{{t(".concat(JSON.stringify(T),")}}")}var g=H.default.createInstance(),C={};Object.keys(k.ZP).forEach(function(T){C[T]=k.ZP[T].resources}),g.use(u.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(Ke,ae,e){"use strict";e.d(ae,{JO:function(){return K},OL:function(){return n},ci:function(){return h},q5:function(){return M},fm:function(){return x}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(53206),C=e(16165),T=e(91321),r=e(67294),N=e(85893),v=["type","component"],A,h=new Map;function M(a){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A;h.set(a.toLowerCase(),R)}function n(a){return a?h.has(a.toLowerCase()):!1}function x(a){Object.keys(a).forEach(function(R){M(R,a[R])})}Object.keys(g).forEach(function(a){M(a,g[a])});var K=function(R){var E=R.type,$=E===void 0?"":E,w=R.component,L=i()(R,v);if(w)return(0,N.jsx)(C.Z,u()({component:w},L));if($&&h.has($.toLowerCase())){var f=h.get($.toLowerCase());return(0,N.jsx)(f,u()({},L))}return $&&A?(0,N.jsx)(A,{type:$}):null};K.createFromIconfontCN=function(a){A=(0,T.Z)(a)},K.register=function(a){x(a)};var o=null},21143:function(Ke,ae,e){"use strict";e.r(ae),e.d(ae,{ACLActionParamsContext:function(){return E.R1},ACLActionProvider:function(){return E.mE},ACLCollectionFieldProvider:function(){return E.tq},ACLCollectionProvider:function(){return E.Hh},ACLContext:function(){return E.R3},ACLCustomContext:function(){return E.a3},ACLMenuItemProvider:function(){return E.fJ},ACLPane:function(){return E.$M},ACLPlugin:function(){return E.pz},ACLProvider:function(){return E.Z5},ACLRolesCheckProvider:function(){return E.VV},ADMIN_SETTINGS_KEY:function(){return f.eB},ADMIN_SETTINGS_PATH:function(){return f.oz},APIClient:function(){return w.lP},APIClientContext:function(){return w._Z},APIClientProvider:function(){return w.Xb},AccessControl:function(){return q.Mj},Action:function(){return b.aUM},ActionBar:function(){return b.olz},ActionBarAssociationFilterAction:function(){return J.cm},ActionBarProvider:function(){return b.N0i},ActionContext:function(){return b.fWn},ActionContextNoRerender:function(){return b.mlL},ActionContextProvider:function(){return b.EIK},ActionDesigner:function(){return b.$Lt},ActionInitializer:function(){return J.$M},ActionInitializerItem:function(){return J.eq},AdminDynamicPage:function(){return Z.zf},AdminLayout:function(){return Z.lq},AdminLayoutPlugin:function(){return Z.r3},AdminProvider:function(){return Z.IA},AdminSettingsLayout:function(){return te.i9},AfterSuccess:function(){return b.$b8},AntdAppProvider:function(){return O.wI},AntdConfigPlugin:function(){return $.kT},AntdConfigProvider:function(){return $.zy},AntdSchemaComponentPlugin:function(){return b.HTy},AntdSchemaComponentProvider:function(){return b.lkv},AppComponent:function(){return f.y$},AppLangContext:function(){return $.UJ},AppendsTreeSelect:function(){return b.rDu},Application:function(){return f.Mx},ApplicationContext:function(){return f.Zz},AssignedFieldValues:function(){return b.eYL},AssociatedFields:function(){return J.Pg},AssociationField:function(){return b.Rat},AssociationFieldMode:function(){return b.oAt},AssociationFieldModeProvider:function(){return b.E7E},AssociationFilter:function(){return J.tr},AssociationFilterDesignerDelete:function(){return J.nr},AssociationFilterDesignerDisplayField:function(){return J.N2},AssociationFilterPlugin:function(){return J.Ys},AssociationOrCollectionProvider:function(){return d.dq},AssociationProvider:function(){return d.ym},AssociationSelect:function(){return b.$SD},AsyncDataContext:function(){return y.tO},AsyncDataProvider:function(){return y.pW},AttachmentList:function(){return b.fUi},AutoComplete:function(){return b.QcG},BackButtonUsedInSubPage:function(){return b.MLy},BaseVariableProvider:function(){return q.Nx},BlankComponent:function(){return f.X_},Block:function(){return b.gOu},BlockAssociationContext:function(){return p.WJ},BlockContext:function(){return p.Qj},BlockInitializer:function(){return J.bn},BlockItem:function(){return b.jYG},BlockItemCard:function(){return b.PuU},BlockItemCardContext:function(){return b.smG},BlockItemInitializer:function(){return J.VD},BlockProvider:function(){return p.ZJ},BlockRequestContextProvider:function(){return d.uz},BlockRequestContext_deprecated:function(){return p.br},BlockRequestLoadingContext:function(){return d.q4},BlockRequestProvider:function(){return d.N4},BlockRequestProvider_deprecated:function(){return p.M0},BlockResourceContext:function(){return p.wH},BlockSchemaComponentPlugin:function(){return p.jF},BlockSchemaComponentProvider:function(){return p.UC},BlockSchemaToolbar:function(){return ge.G},BlockTemplateContext:function(){return le.k0},BlockTemplateDetails:function(){return le.bs},BlockTemplatePage:function(){return le.EF},BlockTemplateProvider:function(){return le.AG},BlockTemplatesPane:function(){return le.L},ButtonEditor:function(){return b.C1I},CSSVariableProvider:function(){return c.O},CardItem:function(){return b.Ssf},Cascader:function(){return b.vTp},Checkbox:function(){return b.XZJ},ClearCollectionFieldContext:function(){return d.m9},Collection:function(){return d.FE},CollectionContext:function(){return d.WH},CollectionDeletedPlaceholder:function(){return d.zW},CollectionField:function(){return d.sb},CollectionFieldContext:function(){return d.v_},CollectionFieldInterface:function(){return d.SY},CollectionFieldInterfaceManager:function(){return d.Z},CollectionFieldProvider:function(){return d.YT},CollectionFieldUISchemaProvider:function(){return Ne._9},CollectionFieldsToFormInitializerItems:function(){return d.Cd},CollectionFieldsToInitializerItems:function(){return d.rJ},CollectionFieldsToTableInitializerItems:function(){return d.lC},CollectionManager:function(){return d.w4},CollectionManagerContext:function(){return d.IX},CollectionManagerProvider:function(){return d.xw},CollectionNotAllowViewPlaceholder:function(){return d.pD},CollectionProvider:function(){return d.YQ},CollectionRecord:function(){return d.DI},CollectionRecordContext:function(){return d.vI},CollectionRecordProvider:function(){return d.E0},CollectionSelect:function(){return b.Tt2},CollectionTemplate:function(){return d.Pl},CollectionTemplateManager:function(){return d.yM},ColorPicker:function(){return b.zH8},ColorSelect:function(){return b.Q5L},CompatibleSchemaInitializer:function(){return f.nl},CreateFilterActionInitializer:function(){return J.nl},CreateResetActionInitializer:function(){return J.cz},Cron:function(){return b.Pok},CronSet:function(){return b.Vm0},CurrentAppInfoContext:function(){return L.RQ},CurrentAppInfoProvider:function(){return L.Gq},CurrentPageUidContext:function(){return f.WY},CurrentPageUidProvider:function(){return f.lN},CurrentTabUidContext:function(){return f.yt},CurrentTabUidProvider:function(){return f.vm},CurrentUserContext:function(){return Be.Ec},CurrentUserProvider:function(){return Be.MF},CurrentUserSettingsMenuProvider:function(){return Be.mY},CustomRouterContextProvider:function(){return f.O6},CustomizeActionInitializer:function(){return J.yE},DEBOUNCE_WAIT:function(){return Pe.on},DEFAULT_DATA_SOURCE_KEY:function(){return d.Ip},DEFAULT_DATA_SOURCE_TITLE:function(){return d.UC},DataBlockCollector:function(){return S.vY},DataBlockContext:function(){return d.hZ},DataBlockInitializer:function(){return J.dn},DataBlockProvider:function(){return d.KY},DataBlockResourceContext:function(){return d.T1},DataBlockResourceProvider:function(){return d.eh},DataSource:function(){return d.o2},DataSourceApplicationProvider:function(){return d.i},DataSourceCollectionCascader:function(){return b.xI_},DataSourceContext:function(){return d.NT},DataSourceManager:function(){return d.AK},DataSourceManagerContext:function(){return d.up},DataSourceManagerProvider:function(){return d.kv},DataSourceProvider:function(){return d.LX},DataSourceSelect:function(){return b.Lip},DateFormatCom:function(){return b.WN4},DatePicker:function(){return b.Mtg},DatePickerProvider:function(){return b.iNu},DefaultValueProvider:function(){return q.yT},Designable:function(){return b.zzt},DesignableSwitch:function(){return b._bl},Details:function(){return b.POi},DetailsBlockContext:function(){return p.LR},DetailsBlockProvider:function(){return p.nw},DetailsDesigner:function(){return b.AOY},Divider:function(){return b.izJ},DndContext:function(){return b.LBT},DocumentTitleContext:function(){return l.PE},DocumentTitleProvider:function(){return l.C$},DragHandler:function(){return b.IWB},DraggableContext:function(){return b.LCt},DropdownVisibleContext:function(){return Be.yI},EMPTY_OBJECT:function(){return Pe.Nu},EditComponent:function(){return b.FyH},EditDefaultValue:function(){return b.Nir},EditDescription:function(){return b.q8U},EditOperator:function(){return b.HGA},EditPattern:function(){return b.QTe},EditRequired:function(){return b.JEX},EditSortField:function(){return b.fAH},EditTitle:function(){return b.$w$},EditTitleField:function(){return b.nBj},EditTooltip:function(){return b.Oct},EditValidationRules:function(){return b.zdw},Editable:function(){return b.CXR},EllipsisWithTooltip:function(){return b.BQs},ErrorFallback:function(){return b.Hj5},Expand:function(){return b.M0b},ExpiresRadio:function(){return b.Dnz},ExtendCollectionsContext:function(){return d.Xc},ExtendCollectionsProvider:function(){return d.j5},Filter:function(){return b.wn$},FilterAction:function(){return b.GzZ},FilterActionContext:function(){return b.tJZ},FilterAssociatedFields:function(){return J.EC},FilterBlockProvider:function(){return S.XA},FilterBlockType:function(){return S.vC},FilterContext:function(){return b.fox},FilterDynamicComponent:function(){return b.VTd},FilterFormBlockProvider:function(){return p.WI},FilterLogicContext:function(){return b.XsZ},FilterParentCollectionFields:function(){return J.d6},FlagContext:function(){return z.z_},FlagProvider:function(){return z.Cm},Form:function(){return b.l09},FormActiveFieldsProvider:function(){return p.T2},FormBlockContext:function(){return p.TC},FormBlockInitializer:function(){return Ee.Jo},FormBlockProvider:function(){return p.$R},FormDialog:function(){return b.D_t},FormField:function(){return b.WiK},FormFieldContext:function(){return p.uW},FormFieldProvider:function(){return p.$1},FormItem:function(){return b.xJW},FormItemSchemaToolbar:function(){return Ee.Oo},FormProvider:function(){return b.RVL},FormV2:function(){return b.Bc8},G2Plot:function(){return b.hG9},G2PlotInitializer:function(){return J.oY},G2PlotRenderer:function(){return b.DCh},GeneralSchemaDesigner:function(){return q.aN},GeneralSchemaItems:function(){return se.Mj},GlobalThemeProvider:function(){return O.YO},Grid:function(){return b.rjZ},GridCard:function(){return b.Cqo},GridRowContext:function(){return b.jg7},HTMLEncode:function(){return b.gsn},HeightMode:function(){return q.j0},Icon:function(){return B.JO},IconPicker:function(){return b.$18},InitializerWithSwitch:function(){return J.sp},Input:function(){return b.IIB},InputNumber:function(){return b.RnZ},InputReadPretty:function(){return b.mX2},InputRecordPicker:function(){return b.zDC},InternalAdminLayout:function(){return Z.Me},IsInNocoBaseRecursionFieldContext:function(){return Ne.$},IsSubPageClosedByPageMenuProvider:function(){return f.oO},Json:function(){return b.Phs},KeepAlive:function(){return Z.Ob},LAZY_COMPONENT_KEY:function(){return G.XI},LOADING_DELAY:function(){return Pe.fw},Layout:function(){return q.Ar},LayoutContent:function(){return Z.bU},List:function(){return b.aVo},LocalDataSource:function(){return d.nC},LocationSearchContext:function(){return f.xJ},Markdown:function(){return b.UGj},MarkdownReadPretty:function(){return b.yq5},MaybeCollectionProvider:function(){return p.bH},Menu:function(){return b.v2r},MenuConfigure:function(){return E.dr},ModalActionSchemaInitializerItem:function(){return J.gy},NanoIDInput:function(){return b.HIW},NocoBaseBuildInPlugin:function(){return W.q},NocoBaseDesktopRouteType:function(){return Z.HQ},NocoBaseRecursionField:function(){return Ne.sq},OpenModeProvider:function(){return F.W},PMPlugin:function(){return te.Np},Page:function(){return b.T3C},PagePopups:function(){return b.d97},PageTabs:function(){return b.hGv},Pagination:function(){return b.tlE},ParentCollectionFields:function(){return J.cd},Password:function(){return b.rop},Percent:function(){return b.gGi},PermissionContext:function(){return E.Bk},PermissionProvider:function(){return E.Wx},PinnedListPlugin:function(){return I.r1},PinnedPluginList:function(){return I.B$},PinnedPluginListContext:function(){return I.uv},PinnedPluginListProvider:function(){return I.tc},Plugin:function(){return f.Sy},PluginManager:function(){return te.Q$},PluginManagerLink:function(){return te.s0},PluginSettingsManager:function(){return f.nS},PopupContextProvider:function(){return ce.y},PopupSettingsProvider:function(){return b.DBW},PoweredBy:function(){return Q.C},Preview:function(){return b.MBS},QuickEdit:function(){return b.pGO},REGEX_OF_VARIABLE:function(){return Pe.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return Pe.Bj},Radio:function(){return b.Y8K},ReadPretty:function(){return b.iVT},ReadPrettyRecordPicker:function(){return b.ODP},RecordAssociationBlockInitializer:function(){return J.$i},RecordAssociationDetailsBlockInitializer:function(){return J.Mr},RecordAssociationFormBlockInitializer:function(){return J.EK},RecordAssociationGridCardBlockInitializer:function(){return J.zb},RecordAssociationListBlockInitializer:function(){return J.Ok},RecordContext_deprecated:function(){return X.rY},RecordFormBlockInitializer:function(){return Ee.se},RecordIndexContext:function(){return X.Pc},RecordIndexProvider:function(){return X.li},RecordLink:function(){return p.hD},RecordPicker:function(){return b.lbb},RecordPickerContext:function(){return b.b7w},RecordPickerProvider:function(){return b.sUk},RecordProvider:function(){return X.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return J.CC},RecordSimpleProvider:function(){return X.Qh},RefreshComponentProvider:function(){return Ne.ri},RefreshDataBlockRequest:function(){return b.x1j},RemoteDocumentTitlePlugin:function(){return l.uN},RemoteDocumentTitleProvider:function(){return l.yq},RemoteSchemaComponent:function(){return b.m1v},RemoteSchemaTemplateManagerPlugin:function(){return le.Wc},RemoteSchemaTemplateManagerProvider:function(){return le.Jv},RemoteSelect:function(){return b.glM},RemoveButton:function(){return b.xZD},RemoveConditionContext:function(){return b.IuH},RenderChildrenWithAssociationFilter:function(){return p.gY},RequestSettings:function(){return b.MkN},RerenderDataBlockProvider:function(){return d.sI},Resizable:function(){return Me.ez},RichText:function(){return b.Hof},RoleConfigure:function(){return E.XU},RoleResourceCollectionContext:function(){return E.O9},RoleTable:function(){return E.No},RolesResourcesActions:function(){return E.kF},RouteSchemaComponent:function(){return Z.GX},RouterContextCleaner:function(){return f.OW},RouterManager:function(){return f.k2},SNIPPET_PREFIX:function(){return f.MC},SanitizedCollectionProvider:function(){return d.Pd},SchemaComponent:function(){return b.n6},SchemaComponentContext:function(){return b.DDd},SchemaComponentOnChangeContext:function(){return b.ATq},SchemaComponentOptions:function(){return b.G0E},SchemaComponentPlugin:function(){return b.a$w},SchemaComponentProvider:function(){return b.TzZ},SchemaInitializer:function(){return f.Ms},SchemaInitializerActionModal:function(){return f.HS},SchemaInitializerActionModalInternal:function(){return f.IQ},SchemaInitializerChild:function(){return f.yH},SchemaInitializerChildren:function(){return f.E0},SchemaInitializerContext:function(){return f.V4},SchemaInitializerDivider:function(){return f.qU},SchemaInitializerItem:function(){return f.lV},SchemaInitializerItemContext:function(){return f.Mm},SchemaInitializerItemGroup:function(){return f.iP},SchemaInitializerItemGroupInternal:function(){return f.IY},SchemaInitializerItemInternal:function(){return f.VG},SchemaInitializerItems:function(){return f.LU},SchemaInitializerManager:function(){return f.eN},SchemaInitializerMenu:function(){return f.tu},SchemaInitializerMenuProvider:function(){return f.kw},SchemaInitializerOpenModeSchemaItems:function(){return se.EU},SchemaInitializerPlugin:function(){return J.dH},SchemaInitializerSelect:function(){return f.iW},SchemaInitializerSelectInternal:function(){return f.ud},SchemaInitializerSubMenu:function(){return f.eU},SchemaInitializerSubMenuInternal:function(){return f.xv},SchemaInitializerSwitch:function(){return f._n},SchemaInitializerSwitchInternal:function(){return f.wH},SchemaSettingAccessControl:function(){return q.U4},SchemaSettingItemContext:function(){return f.A4},SchemaSettingOpenModeSchemaItems:function(){return se.HA},SchemaSettings:function(){return f.F5},SchemaSettingsActionLinkItem:function(){return ee.s},SchemaSettingsActionModalItem:function(){return q.Qh},SchemaSettingsBlockHeightItem:function(){return q.qf},SchemaSettingsBlockTitleItem:function(){return q._E},SchemaSettingsCascaderItem:function(){return q.ns},SchemaSettingsChild:function(){return f.kY},SchemaSettingsChildren:function(){return f.dk},SchemaSettingsConnectDataBlocks:function(){return q.FE},SchemaSettingsDataScope:function(){return q.HF},SchemaSettingsDataTemplates:function(){return q.ON},SchemaSettingsDateFormat:function(){return q.yu},SchemaSettingsDefaultSortingRules:function(){return q.y5},SchemaSettingsDefaultValue:function(){return q.Nn},SchemaSettingsDivider:function(){return q.Z5},SchemaSettingsDropdown:function(){return q.cM},SchemaSettingsEnableChildCollections:function(){return q.L3},SchemaSettingsFixed:function(){return Me.rI},SchemaSettingsFormItemTemplate:function(){return q.vC},SchemaSettingsItem:function(){return q.r2},SchemaSettingsItemGroup:function(){return q.bw},SchemaSettingsLayoutItem:function(){return q.JM},SchemaSettingsLinkageRules:function(){return q.lc},SchemaSettingsManager:function(){return f.XD},SchemaSettingsModalItem:function(){return q.B0},SchemaSettingsNumberFormat:function(){return q.wH},SchemaSettingsPlugin:function(){return q.zM},SchemaSettingsPopupItem:function(){return q.D3},SchemaSettingsProvider:function(){return q.Rh},SchemaSettingsRemove:function(){return q.qx},SchemaSettingsRenderEngine:function(){return q.cK},SchemaSettingsSelectItem:function(){return q.Qf},SchemaSettingsSortingRule:function(){return q.wL},SchemaSettingsSubMenu:function(){return q.m$},SchemaSettingsSwitchItem:function(){return q.hj},SchemaSettingsTemplate:function(){return q.Gk},SchemaSettingsWrapper:function(){return f.GC},SchemaTemplateManagerContext:function(){return le.Kb},SchemaToolbar:function(){return q.Mf},SchemaToolbarContext:function(){return f.J1},SchemaToolbarProvider:function(){return f.V$},SchemaToolbarVisibleContext:function(){return q.dI},ScopeSelect:function(){return E.X$},SearchCollections:function(){return J.zH},SecondConFirm:function(){return b.y00},Select:function(){return b.PhF},SelectActionInitializer:function(){return J.w_},SelectWithTitle:function(){return D.T},SetDataLoadingMode:function(){return Ae.jI},SettingCenterPermissionProvider:function(){return E.P2},SettingCenterProvider:function(){return E.S3},SettingsCenterConfigure:function(){return E.H3},SettingsCenterContext:function(){return te.EV},SettingsCenterDropdown:function(){return te.zK},SettingsMenuProvider:function(){return Be.SV},ShowFormData:function(){return b.Cqv},SkipValidation:function(){return b.cof},Sortable:function(){return b.bts},SortableContext:function(){return b.Fop},SortableItem:function(){return b.TRI},SortableProvider:function(){return b.ORg},Space:function(){return b.TaI},StablePopover:function(){return b.qHe},StrategyActions:function(){return E.R6},SubmitActionInitializer:function(){return J.ss},SwitchLanguage:function(){return pe.j},SystemSettingsContext:function(){return _e.YO},SystemSettingsPane:function(){return _e.a$},SystemSettingsPlugin:function(){return _e.j8},SystemSettingsProvider:function(){return _e.C6},Table:function(){return b.iA_},TableActionColumnInitializer:function(){return J.VU},TableBlockContext:function(){return p.Hz},TableBlockDesigner:function(){return b.gvM},TableBlockInitializer:function(){return Me.kD},TableBlockProvider:function(){return p._0},TableColumnSchemaToolbar:function(){return Me.u6},TableField:function(){return b.SnY},TableFieldContext:function(){return p.Q6},TableFieldProvider:function(){return p.CB},TableFieldResource:function(){return p.Qy},TableSelectorContext:function(){return p.Yu},TableSelectorDesigner:function(){return b.ASv},TableSelectorInitializer:function(){return Te.S},TableSelectorParamsProvider:function(){return p.Vs},TableSelectorProvider:function(){return p.rL},TableV2:function(){return b.bwk},Tabs:function(){return b.mQc},TabsContextProvider:function(){return b.c__},Templates:function(){return b.QZ3},TestDesigner:function(){return b.L39},TextAreaWithGlobalScope:function(){return b.feF},TimePicker:function(){return b.jII},TreeSelect:function(){return b.mPs},UnixTimestamp:function(){return b.tgM},Upload:function(){return b.gqx},Uploader:function(){return b.Qm7},Variable:function(){return b._wD},VariableInput:function(){return q.qj},VariablePopupRecordProvider:function(){return re.Rm},VariableScopeProvider:function(){return b.rjl},VariablesContext:function(){return Pe.cB},VariablesProvider:function(){return Pe.Uj},WithoutFormFieldResource:function(){return p.$Y},WithoutTableFieldResource:function(){return p.s},actionSettings:function(){return b.SLL},actionSettingsItems:function(){return b.sBv},allowAddNew:function(){return b.iTm},appendQueryStringToUrl:function(){return p.HQ},attachmentFileTypes:function(){return b.BDK},cache:function(){return R.cache},canMakeAssociationBlock:function(){return J.Tc},compatOldTheme:function(){return O.kK},completeURL:function(){return p.jR},compose:function(){return f.qC},createCreateFormBlockUISchema:function(){return Ee.lJ},createDesignable:function(){return b.Pls},createDetailsBlockSchema:function(){return J.e6},createFormActionInitializers:function(){return Ee.nr},createFormActionInitializers_deprecated:function(){return Ee.$G},createFormBlockSchema:function(){return J.NH},createFormBlockSettings:function(){return Ee.K9},createModalSettingsItem:function(){return f.lo},createReadPrettyFormBlockSchema:function(){return J.Uc},createRouterManager:function(){return f.w9},createSelectSchemaSettingsItem:function(){return f.NB},createStyles:function(){return Ce.k},createSwitchSettingsItem:function(){return f.HL},createTableBlockSchema:function(){return J.BU},createTableBlockUISchema:function(){return Me.OO},createTextSettingsItem:function(){return f.yq},css:function(){return R.css},customFormItemInitializers:function(){return J.Ic},customFormItemInitializers_deprecated:function(){return J.Jn},cx:function(){return R.cx},defaultAppComponents:function(){return f.FH},defaultFieldNames:function(){return b.Oxq},defaultInputStyle:function(){return q.ZL},defaultTheme:function(){return O.uH},editFormBlockSettings:function(){return Ee.rB},fetchTemplateData:function(){return b.WLi},fieldComponentSettingsItem:function(){return d.K0},fieldSettingsFormItem:function(){return Ee.dV},fillParentFields:function(){return p.Xe},filterFormItemSettings:function(){return b.$9M},findByUid:function(){return b.nCn},findFilterTargets:function(){return p.SK},findFormBlock:function(){return p.Fi},findKanbanFormItem:function(){return d.iv},findKeysByUid:function(){return b.iNG},findMenuItem:function(){return b.tD8},findParentFieldSchema:function(){return q.PO},flush:function(){return R.flush},formActionInitializers:function(){return Ee.vR},formDetailsSettings:function(){return b.pg9},formItemInitializers:function(){return Ee.ex},formItemInitializers_deprecated:function(){return Ee.eh},formItemSettings:function(){return b.Ofb},formSettings:function(){return b.ibf},formV1Settings:function(){return b.WyG},genStyleHook:function(){return b.l6$},getAppends:function(){return p.iF},getAssociationPath:function(){return p.dP},getCardItemSchema:function(){return p.Gn},getCollectionTitle:function(){return ge.A},getCurrentOptions:function(){return b.WGR},getDataSourceHeaders:function(){return d.GX},getDatePickerLabels:function(){return b.C$H},getDateRanges:function(){return b.SET},getFieldDefaultValue:function(){return q.os},getFormValues:function(){return p.X7},getGroupMenuSchema:function(){return be.X},getIdsWithChildren:function(){return p.Ns},getLabelFormatValue:function(){return b.cNQ},getLabelWithTooltip:function(){return q.rB},getLinkMenuSchema:function(){return fe.e},getPageMenuSchema:function(){return oe.a},getPageSchema:function(){return p.tj},getPopupPathFromParams:function(){return b.NCb},getRegisteredStyles:function(){return R.getRegisteredStyles},getRenderContent:function(){return b.I9l},getShouldChange:function(){return q.Vc},getStoredPopupContext:function(){return b.XQ2},getSupportFieldsByAssociation:function(){return S.x5},getSupportFieldsByForeignKey:function(){return S.zv},getTabSchema:function(){return b.Fxc},getURLSearchParams:function(){return q.Uz},getURLSearchParamsChildren:function(){return q.n9},getVariableComponentWithScope:function(){return ue.M},getVariablesFromExpression:function(){return Pe.fN},gridRowColWrap:function(){return J.BM},handleDateChangeOnForm:function(){return b.MDU},hasIcon:function(){return B.OL},hydrate:function(){return R.hydrate},i18n:function(){return t.a},icons:function(){return B.ci},inferPickerType:function(){return b.CEH},injectGlobal:function(){return R.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return q.TU},isAssocField:function(){return S.$f},isBulkEditAction:function(){return b.vUN},isFileCollection:function(){return b.ZZb},isInFilterFormBlock:function(){return S.Op},isInitializersSame:function(){return f.h6},isMobile:function(){return b.tqC},isPatternDisabled:function(){return q.VZ},isSameCollection:function(){return S.yr},isShowFilePicker:function(){return b.elO},isSystemField:function(){return q.Mq},isTabPage:function(){return b.CfU},isTitleField:function(){return d.Yj},isVariable:function(){return Pe.cG},itemsMerge:function(){return J.Z_},keyframes:function(){return R.keyframes},languageCodes:function(){return Y.m9},lazy:function(){return G.Vo},locale:function(){return Y.ZP},mapDatePicker:function(){return b.LPx},mapRangePicker:function(){return b.fY6},mapTimeFormat:function(){return b.Vm},merge:function(){return R.merge},mergeFilter:function(){return S.EO},mockAPIClient:function(){return ye.G},moment2str:function(){return b.w_o},navigateToTab:function(){return b.SJF},navigateWithinSelf:function(){return p.nl},normalizeContainer:function(){return f.pn},pageSettings:function(){return b._Ko},pageTabSettings:function(){return b.Mev},parseVariablesAndChangeParamsToQueryString:function(){return p._f},readPrettyFormSettings:function(){return b.i2K},recordBlockInitializers:function(){return J.vV},recordBlockInitializers_deprecated:function(){return J.Sq},recursiveParent:function(){return p.zA},reduceValueSize:function(){return p.ID},registerIcon:function(){return B.q5},registerIcons:function(){return B.fm},removeNullCondition:function(){return b.WmO},replaceVariableValue:function(){return p.UY},requestParentRecordData:function(){return d.H0},schemaSettingsLabelLayout:function(){return q.ut},setDataLoadingModeSettingsItem:function(){return Ae.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return q.rf},setTheDataScopeSchemaSettingsItem:function(){return q.aP},sheet:function(){return R.sheet},showFileName:function(){return Oe.y},splitWrapSchema:function(){return b.oBi},storePopupContext:function(){return b.hKP},subTableActionInitializers:function(){return J.U2},subTableActionInitializers_deprecated:function(){return J.o_},systemKeys:function(){return q.ob},tabPaneInitializers:function(){return J.$T},tabPaneInitializersForBulkEditFormBlock:function(){return J.zg},tabPaneInitializersForRecordBlock:function(){return J.d4},tabPaneInitializers_deprecated:function(){return J.xc},tableActionColumnInitializers:function(){return Me.Rp},tableActionColumnInitializers_deprecated:function(){return Me.Xe},tableActionInitializers:function(){return Me.H1},tableActionInitializers_deprecated:function(){return Me.EG},tableBlockSettings:function(){return Me.Oe},tableColumnInitializers:function(){return Me.Ug},tableColumnInitializers_deprecated:function(){return Me.T$},tableColumnSettings:function(){return Me.FY},tableSelectorBlockSettings:function(){return Te.v},transformToFilter:function(){return S.jE},transformVariableValue:function(){return Pe.J8},tval:function(){return t.v},updateFilterTargets:function(){return p.iJ},updateFormActionInitializers:function(){return Ee.SW},updateFormActionInitializers_deprecated:function(){return Ee.Cw},useACLActionParamsContext:function(){return E.Hq},useACLContext:function(){return E.TR},useACLFieldWhitelist:function(){return E.Aj},useACLRoleContext:function(){return E.ov},useACLRolesCheck:function(){return E.xd},useAPIClient:function(){return w.LY},useAPITokenVariable:function(){return q.IG},useActionAvailable:function(){return Ae.vn},useActionBarContext:function(){return b.DU1},useActionContext:function(){return b.XCj},useAdminSchemaUid:function(){return U.W},useAllAccessDesktopRoutes:function(){return Z.Kf},useAllCollectionsInheritChainGetter:function(){return d.Uv},useApp:function(){return f.qD},useAppLangContext:function(){return $.GW},useAppSpin:function(){return f.rM},useAriaAttributeOfMenuItem:function(){return f.ne},useAssociatedFields:function(){return S.Fp},useAssociatedFormItemInitializerFields:function(){return J.hg},useAssociatedTableColumnInitializerFields:function(){return J.V0},useAssociationCreateActionProps:function(){return p.Yo},useAssociationFieldContext:function(){return b.KyD},useAssociationFieldModeContext:function(){return b.Vpg},useAssociationFilterBlockProps:function(){return p._S},useAssociationFilterProps:function(){return p.rD},useAssociationName:function(){return d.Xo},useAssociationNames:function(){return p.P_},useAsyncData:function(){return y.w3},useAttach:function(){return b.lIL},useBackButton:function(){return b.KxP},useBaseVariable:function(){return q.zI},useBlockAssociationContext:function(){return p.DD},useBlockContext:function(){return p.VG},useBlockHeight:function(){return b.hi9},useBlockHeightProps:function(){return p.gp},useBlockRequestContext:function(){return p.BU},useBlockResource:function(){return p.lT},useBlockTemplateContext:function(){return le.rE},useBuiltinVariables:function(){return Pe.L7},useBulkDestroyActionProps:function(){return p.ns},useCloseAction:function(){return b.p27},useCollectValuesToSubmit:function(){return p.hu},useCollection:function(){return d.Kx},useCollectionDataSourceItems:function(){return J.HD},useCollectionField:function(){return d.Hy},useCollectionFields:function(){return d.ge},useCollectionManager:function(){return d.d9},useCollectionParentRecord:function(){return d.RA},useCollectionParentRecordData:function(){return d.Kv},useCollectionRecord:function(){return d.oV},useCollectionRecordData:function(){return d.nE},useCollectionState:function(){return q.IO},useCollections:function(){return d.bX},useColumnSchema:function(){return b.z9d},useCompatOldVariables:function(){return q.b1},useCompile:function(){return b.eJW},useComponent:function(){return b.Cor},useContextVariable:function(){return Pe.Ym},useCreateActionProps:function(){return p.cD},useCreateAssociationDetailsBlock:function(){return J.Dc},useCreateAssociationDetailsWithoutPagination:function(){return J.yZ},useCreateAssociationFormBlock:function(){return J.Qr},useCreateAssociationGridCardBlock:function(){return J.yG},useCreateAssociationListBlock:function(){return J.R_},useCreateAssociationTableBlock:function(){return J.Rm},useCreateEditFormBlock:function(){return Ee.$R},useCreateFormBlock:function(){return Ee.kQ},useCreateTableBlock:function(){return Me.Ez},useCurrentAppInfo:function(){return L._S},useCurrentDocumentTitle:function(){return l.AL},useCurrentPageUid:function(){return f.Rx},useCurrentPopupContext:function(){return b.Zmk},useCurrentPopupRecord:function(){return re.Sw},useCurrentRoleVariable:function(){return q.KR},useCurrentRoles:function(){return Be.ih},useCurrentRoute:function(){return Z.Hb},useCurrentSchema:function(){return J.pZ},useCurrentSearchParams:function(){return f.r_},useCurrentTabUid:function(){return f.zJ},useCurrentUserContext:function(){return Be.OP},useCurrentUserSettingsMenu:function(){return Be.t$},useCurrentUserVariable:function(){return q.AO},useCustomizeBulkUpdateActionProps:function(){return p.UQ},useCustomizeRequestActionProps:function(){return p.xx},useCustomizeUpdateActionProps:function(){return p.X0},useDataBlock:function(){return d.eS},useDataBlockHeight:function(){return b.aZq},useDataBlockParentRecord:function(){return p.M_},useDataBlockProps:function(){return d.zh},useDataBlockRequest:function(){return d.hS},useDataBlockRequestData:function(){return d.xQ},useDataBlockRequestGetter:function(){return d.Pt},useDataBlockResource:function(){return d.wb},useDataLoadingMode:function(){return Ae.tU},useDataSource:function(){return d.wl},useDataSourceHeaders:function(){return d.on},useDataSourceKey:function(){return d.FC},useDataSourceManager:function(){return d.fp},useDataTemplates:function(){return q.dD},useDatePickerContext:function(){return b.P1D},useDateVariable:function(){return q.ds},useDatetimeVariable:function(){return q.Ld},useDatetimeVariableContext:function(){return q.FB},useDesignable:function(){return b.ngQ},useDesigner:function(){return b.ett},useDestroyActionProps:function(){return p.z2},useDetailsBlockContext:function(){return p.nT},useDetailsBlockProps:function(){return p.BX},useDetailsDecoratorProps:function(){return Ae.dS},useDetailsPaginationProps:function(){return p.bF},useDetailsParentRecord:function(){return Ae.jM},useDetailsProps:function(){return Ae.os},useDetailsWithPaginationBlockParams:function(){return Ae.ln},useDetailsWithPaginationDecoratorProps:function(){return Ae.ec},useDetailsWithPaginationProps:function(){return Ae.tm},useDisassociateActionProps:function(){return p.ii},useDocumentTitle:function(){return l.jr},useDownloadLogs:function(){return b.ySm},useEnsureOperatorsValid:function(){return b.Zd$},useExtendCollections:function(){return d.P5},useFieldComponentName:function(){return D.W},useFieldComponentOptions:function(){return b.cLh},useFieldMode:function(){return b.baz},useFieldModeOptions:function(){return b.fde},useFieldNames:function(){return b.Xdt},useFieldProps:function(){return b.Cld},useFieldTitle:function(){return b.vH8},useFilterAPI:function(){return S.hi},useFilterActionProps:function(){return b.PLH},useFilterBlock:function(){return S.kO},useFilterBlockActionProps:function(){return p.Oy},useFilterByTk:function(){return p.C},useFilterFieldOptions:function(){return b.V8t},useFilterFieldProps:function(){return b.tMk},useFilterOptions:function(){return b.xQm},useFindComponent:function(){return b.sRe},useFlag:function(){return z.P5},useFormActiveFields:function(){return p.zj},useFormBlockContext:function(){return p.bz},useFormBlockProps:function(){return p._$},useFormBlockType:function(){return p.th},useFormDataTemplates:function(){return b.U1u},useFormFieldContext:function(){return p.e$},useFormFieldProps:function(){return p.GK},useFormItemInitializerFields:function(){return J.I_},useGetAriaLabelOfAction:function(){return b.HS$},useGetAriaLabelOfDesigner:function(){return q.zf},useGetAriaLabelOfDrawer:function(){return b.vBu},useGetAriaLabelOfModal:function(){return b.QYZ},useGetAriaLabelOfPopover:function(){return b.t9d},useGetFilterFieldOptions:function(){return b.Kgy},useGetFilterOptions:function(){return b.aJ2},useGetSchemaInitializerMenuItems:function(){return f.bw},useGlobalTheme:function(){return O.mg},useGlobalVariable:function(){return f.Xb},useGridContext:function(){return b.n14},useGridRowContext:function(){return b.DiB},useInheritsTableColumnInitializerFields:function(){return J.yi},useIsAddNewForm:function(){return b.l1O},useIsAdminPage:function(){return f.mI},useIsAllowToSetDefaultValue:function(){return q.SF},useIsAssociationField:function(){return b.w5o},useIsDetailBlock:function(){return p.WG},useIsFieldReadPretty:function(){return b.p3Q},useIsFileField:function(){return b.G5e},useIsFormReadPretty:function(){return b.xj2},useIsInSettingsPage:function(){return f.Bb},useIsSelectFieldMode:function(){return b.rxY},useIsSubPageClosedByPageMenu:function(){return f.ce},useLabelUiSchema:function(){return b.Ils},useLazy:function(){return G.lN},useLinkActionProps:function(){return p.ee},useLinkageAction:function(){return b.zCB},useLocalVariables:function(){return Pe.Kp},useLocationNoUpdate:function(){return f.fj},useLocationSearch:function(){return f.HU},useMatchAdmin:function(){return f.xi},useMatchAdminName:function(){return f.tJ},useMenuDragEnd:function(){return b.CMh},useMenuSearch:function(){return J.jA},useNavigateNoUpdate:function(){return f.WO},useNocoBaseRoutes:function(){return b.FMn},useOpenModeContext:function(){return F.B},useOptionalFieldList:function(){return p.Lh},useParamsFromRecord:function(){return p.MM},useParentCollection:function(){return d.lb},useParentRecordCommon:function(){return Ie._},useParentRoute:function(){return b.T0O},useParseDataScopeFilter:function(){return q._Y},useParseURLAndParams:function(){return p.VC},useParsedFilter:function(){return p.vs},usePickActionProps:function(){return p.St},usePlugin:function(){return f.j7},usePopupSettings:function(){return b.a4r},usePopupUtils:function(){return Se.E},usePopupVariable:function(){return q.AJ},usePopupVariableContext:function(){return q.gG},useProps:function(){return b.wNf},useRecord:function(){return X.a},useRecordCollectionDataSourceItems:function(){return J.bQ},useRecordIndex:function(){return X.pW},useRecordIsOwn:function(){return X.Px},useRecordPkValue:function(){return E.Jn},useRefreshActionProps:function(){return p.Xk},useRefreshFieldSchema:function(){return Ne.gR},useRemoveActionProps:function(){return p.PJ},useRemoveGridFormItem:function(){return J.EY},useRequest:function(){return w.QT},useRerenderDataBlock:function(){return d.Rr},useResetBlockActionProps:function(){return p.NP},useResource:function(){return w.Wf},useRoleRecheck:function(){return E.fG},useRoleVariable:function(){return q.bs},useRolesResourcesScopesSelectedRowKeys:function(){return E.cm},useRouter:function(){return f.tv},useRouterBasename:function(){return f.hZ},useSchemaComponentContext:function(){return b.Dmu},useSchemaInitializer:function(){return f.q_},useSchemaInitializerItem:function(){return f.UR},useSchemaInitializerMenuItems:function(){return f.hL},useSchemaInitializerRender:function(){return f.IU},useSchemaInitializerStyles:function(){return f._$},useSchemaInitializerSubMenuContext:function(){return f.vH},useSchemaOptionsContext:function(){return b.Bsl},useSchemaSettings:function(){return q.DD},useSchemaSettingsItem:function(){return f.J$},useSchemaSettingsRender:function(){return f.mQ},useSchemaTemplate:function(){return le.zy},useSchemaTemplateManager:function(){return le.$t},useSchemaToolbar:function(){return f.Po},useSchemaToolbarRender:function(){return f.du},useSourceId:function(){return Ae.GL},useSourceIdFromParentRecord:function(){return p.m},useSourceIdFromRecord:function(){return p.e0},useStyles:function(){return b.yKv},useSupportedBlocks:function(){return S.Um},useSyncFromForm:function(){return q.F1},useSystemSettings:function(){return _e.HX},useTableBlockContext:function(){return p.Si},useTableBlockContextBasicValue:function(){return p.bE},useTableBlockDecoratorProps:function(){return Me.cL},useTableBlockParams:function(){return Me.lo},useTableBlockProps:function(){return Me.GK},useTableColumnInitializerFields:function(){return J.bJ},useTableFieldContext:function(){return p.Wx},useTableFieldProps:function(){return p.oA},useTableSelectorContext:function(){return p.CL},useTableSelectorProps:function(){return p.RP},useTableSize:function(){return b.fMB},useTabsContext:function(){return b.gCg},useTitleFieldOptions:function(){return b.eT6},useToken:function(){return Ce.d},useUIConfigurationPermissions:function(){return E.mR},useURLAndHTMLSchema:function(){return ue.R},useURLSearchParamsCtx:function(){return q.MD},useURLSearchParamsVariable:function(){return q.F5},useUpdateActionProps:function(){return p.HD},useUploadStyles:function(){return b.$SN},useUserVariable:function(){return q.KD},useValidateSchema:function(){return b.q4O},useVariableOptions:function(){return q.Y5},useVariableScope:function(){return b.ymE},useVariables:function(){return Pe.OQ},useViewport:function(){return U.S},useZIndexContext:function(){return b.uqQ},withDynamicSchemaProps:function(){return ie.t},withInitializer:function(){return f.W_},withSearchParams:function(){return b.Q3P},withSkeletonComponent:function(){return me.C},zIndexContext:function(){return b.K5K}});var H=e(66607),u=e.n(H),k=e(79212),i=e.n(k),g=e(37412),C=e.n(g),T=e(59542),r=e.n(T),N=e(96036),v=e.n(N),A=e(96671),h=e.n(A),M=e(70178),n=e.n(M),x=e(72540),K=e.n(x),o=e(90844),a=e(14994),R=e(97133),E=e(47646),$=e(75599),w=e(12174),L=e(80347),f=e(68091),y=e(26124),p=e(67174),P=e(6145),m={};for(var j in P)["default","locale","withDynamicSchemaProps","withSkeletonComponent","SwitchLanguage","SchemaSettingsActionLinkItem","getVariableComponentWithScope","useURLAndHTMLSchema","getGroupMenuSchema","getLinkMenuSchema","getPageMenuSchema","OpenModeProvider","useOpenModeContext","PopupContextProvider","usePopupUtils","VariablePopupRecordProvider","useCurrentPopupRecord","showFileName","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","useGlobalVariable","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&&(m[j]=function(Le){return P[Le]}.bind(0,j));e.d(ae,m);var D=e(7737),c=e(20085),d=e(94804),l=e(69803),S=e(18386),z=e(53285),O=e(69962),U=e(29392),t=e(58384),B=e(82369),G=e(98902),Y=e(35310),W=e(7825),I=e(52817),te=e(65213),Q=e(53181),X=e(36586),Z=e(8918),b=e(7105),J=e(57030),se=e(90810),q=e(51159),le=e(15195),Ce=e(39863),_e=e(15585),ye=e(16779),Be=e(6438),Pe=e(64910),ie=e(15503),me=e(83335),pe=e(71098),ee=e(29245),ue=e(83954),ge=e(16966),Ee=e(67565),Me=e(77681),Te=e(75145),Ae=e(56995),Ie=e(92700),be=e(24757),fe=e(23437),oe=e(18591),F=e(39270),ce=e(74483),Se=e(23048),re=e(73691),Oe=e(69435),Ne=e(57105)},98902:function(Ke,ae,e){"use strict";e.d(ae,{Vo:function(){return v},XI:function(){return N},lN:function(){return A}});var H=e(97857),u=e.n(H),k=e(67294),i=e(57953),g=e(96486),C=e.n(g),T=e(97289),r=e(85893),N=Symbol("LAZY_COMPONENT_KEY");function v(h){for(var M=arguments.length,n=new Array(M>1?M-1:0),x=1;x<M;x++)n[x-1]=arguments[x];if(n.length===0){var K=(0,k.lazy)(function(){return h().then(function(a){var R=a.default;return o[N]=R,{default:R}})}),o=function(R){return(0,r.jsx)(k.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(K,u()({},R))})};return o}return n.reduce(function(a,R){var E=(0,k.lazy)(function(){return h().then(function($){var w=(0,g.get)($,R);return a[R][N]=w,{default:w}})});return a[R]=function($){return(0,r.jsx)(k.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(E,u()({},$))})},a},{})}function A(h,M){var n=typeof M=="function"?M:function(o){return o[M]},x=(0,T.I6)(h);if(!x.payload)throw new Promise(function(o,a){x.loadIfNeeded(),x.resolution.then(o).catch(a)});var K=n(x.payload);return K}},35310:function(Ke,ae,e){"use strict";e.d(ae,{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"}};ae.ZP=u},29245:function(Ke,ae,e){"use strict";e.d(ae,{f:function(){return E},s:function(){return R}});var H=e(9783),u=e.n(H),k=e(97857),i=e.n(k),g=e(5552),C=e(80844),T=e(96486),r=e.n(T),N=e(67294),v=e(26793),A=e(21143),h=e(68091),M=e(91410),n=e(6145),x=e(55642),K=e(51159),o=e(83954),a=e(85893),R=function(){var w=(0,C.useField)(),L=(0,C.useFieldSchema)(),f=(0,A.useDesignable)(),y=f.dn,p=(0,v.$)(),P=p.t,m=(0,o.R)(),j=m.urlSchema,D=m.paramsSchema,c=m.openInNewWindowSchema,d=L["x-component-props"]||{},l={url:d.url,params:d.params||[{}],openInNewWindow:d.openInNewWindow};return(0,a.jsx)(K.B0,{title:P("Edit link"),components:{ArrayItems:g.ArrayItems},schema:{type:"object",title:P("Edit link"),properties:{url:i()(i()({},j),{},{required:!0}),params:D,openInNewWindow:c}},onSubmit:function(z){var O,U=z.url,t=z.params,B=z.openInNewWindow;d.url=U,d.params=t,d.openInNewWindow=B,L["x-component-props"]=d,w.componentProps.url=U,w.componentProps.params=t,w.componentProps.openInNewWindow=B,y.emit("patch",{schema:(O={},u()(O,"x-uid",L["x-uid"]),u()(O,"x-component-props",d),O)}),y.refresh()},initialValues:l})},E=new M.F({name:"actionSettings:link",items:[{name:"editButton",Component:x.C1,useComponentProps:function(){var w=(0,h.Po)(),L=w.buttonEditorProps;return L}},{name:"editLink",Component:R},{name:"linkageRules",Component:K.lc,useVisible:function(){var w=(0,A.useCollectionRecord)();return!r().isEmpty(w==null?void 0:w.data)},useComponentProps:function(){var w=(0,n.useCollection_deprecated)(),L=w.name,f=(0,h.Po)(),y=f.linkageRulesProps;return i()(i()({},y),{},{collectionName:L})}},K.U4,{name:"remove",sort:100,Component:x.xZ,useComponentProps:function(){var w=(0,h.Po)(),L=w.removeButtonProps;return L}}]})},83954:function(Ke,ae,e){"use strict";e.d(ae,{M:function(){return x},R:function(){return K}});var H=e(68400),u=e.n(H),k=e(97857),i=e.n(k),g=e(97133),C=e(80844),T=e(67294),r=e(26793),N=e(7340),v=e(36586),A=e(91053),h=e(54885),M=e(85893),n,x=function(a){return function(R){var E=(0,C.useFieldSchema)(),$=(0,N.bz)(),w=$.form,L=(0,v.a)(),f=(0,h.Y)({collectionField:{uiSchema:E},form:w,record:L,uiSchema:E,noDisabled:!0});return(0,M.jsx)(a,i()(i()({},R),{},{scope:f}))}},K=function(){var a=(0,r.$)(),R=a.t,E=(0,T.useMemo)(function(){return x(A._w.TextArea)},[]),$=(0,T.useMemo)(function(){return{title:R("URL"),type:"string","x-decorator":"FormItem","x-component":E,description:R("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[R,E]),w=(0,T.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:R("URL")},{value:"html",label:R("HTML")}]}},[R]),L=(0,T.useMemo)(function(){return{title:R("html"),type:"string","x-decorator":"FormItem","x-component":x(A._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[R]),f=(0,T.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,g.css)(n||(n=u()([`
118
118
  & > .ant-space-item:first-child,
119
119
  & > .ant-space-item:last-child {
120
120
  flex-shrink: 0;
@@ -766,7 +766,7 @@ https://requirejs.org/docs/errors.html#`+Ke);return u.requireType=Ke,u.requireMo
766
766
  border-top-color: transparent;
767
767
  }
768
768
  background-color: transparent;
769
- `])))},Te),{},{component:I.II.JSON}))}var pe=e(57340),ee=(0,u.createContext)([]);ee.displayName="VariableScopeContext";function ue(Te){var Ae=Te.scope,Ie=Ae===void 0?[]:Ae,be=Te.children;return(0,te.jsx)(ee.Provider,{value:Ie,children:be})}function ge(){return(0,u.useContext)(ee)}function Ee(){return null}Ee.Input=(0,H.connect)(Be),Ee.TextArea=(0,k.t)((0,H.connect)(pe.K,(0,H.mapReadPretty)(pe.K.ReadPretty))),Ee.RawTextArea=(0,H.connect)(Pe.f),Ee.JSON=(0,H.connect)(me);var Me=null},88969:function(Ke,ae,e){"use strict";e.d(ae,{m:function(){return E}});var H=e(15009),u=e.n(H),k=e(19632),i=e.n(k),g=e(99289),C=e.n(g),T=e(5574),r=e.n(T),N=e(97133),v=e(38089),A=e(67294),h=e(26793),M=e(46917),n=e(9783),x=e.n(n),K=(0,M.l6)("nb-variable-select",function($){var w=$.componentCls;return x()({},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}}})}),o=K,a=e(2876),R=e(85893);function E($){var w=$.options,L=$.setOptions,f=$.onInsert,y=$.changeOnSelect,p=y===void 0?!1:y,P=$.fieldNames,m=P===void 0?{}:P,j=$.className,D=$.disabled,c=(0,h.$)(),d=c.t,l=(0,A.useState)([]),S=r()(l,2),z=S[0],O=S[1],U=o(),t=U.wrapSSR,B=U.componentCls,G=U.hashId,Y=(0,M.dQ)(),W=Y.token;function I(Q){return te.apply(this,arguments)}function te(){return te=C()(u()().mark(function Q(X){var Z,b;return u()().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(b=X[X.length-1],!(!((Z=b.children)!==null&&Z!==void 0&&Z.length)&&!b.isLeaf&&b.loadChildren)){se.next=5;break}return se.next=4,b.loadChildren(b);case 4:L(function(q){return i()(q)});case 5:case"end":return se.stop()}},Q)})),te.apply(this,arguments)}return t((0,R.jsx)(a.R,{disabled:D,className:(0,N.cx)("x-button",B,G,j),children:(0,R.jsx)(v.Z,{disabled:D,placeholder:d("Select a variable"),value:[],options:w,fieldNames:m,loadData:I,onChange:function(){var X,Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(O(Z),!!Z.length){var J=b[b.length-1];(!(J!=null&&(X=J.children)!==null&&X!==void 0&&X.length)&&!(J!=null&&J.loadChildren)||J!=null&&J.isLeaf)&&f(Z)}},changeOnSelect:p,onClick:function(X){if(!(X.detail!==2||!p))for(var Z=X.target;Z&&Z!==X.currentTarget;Z=Z.parentNode){var b;Array.from((b=Z.classList)!==null&&b!==void 0?b:[]).includes("ant-cascader-menu-item")&&f(z)}},popupClassName:"Cascader-popupClassName",dropdownRender:p?function(Q){return(0,R.jsxs)(R.Fragment,{children:[Q,(0,R.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(W.colorBorder),color:W.colorTextDescription},children:d("Double click to choose entire object")})]})}:null})}))}},2876:function(Ke,ae,e){"use strict";e.d(ae,{R:function(){return C}});var H=e(97857),u=e.n(H),k=e(15867),i=e(67294),g=e(85893),C=(0,i.forwardRef)(function(T,r){var N=(0,i.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,g.jsxs)(k.ZP,u()(u()({"aria-label":"variable-button",ref:r,style:N},T),{},{children:["x",T.children]}))});C.displayName="XButton"},74866:function(Ke,ae,e){"use strict";e.d(ae,{y:function(){return i}});var H=e(9783),u=e.n(H),k=e(46917),i=(0,k.l6)("nb-variable",function(g,C){var T=g.componentCls,r=g.lineWidth,N=g.colorFillQuaternary,v=g.paddingSM-1,A=8,h=A-r,M=g.fontSizeSM,n="".concat(g.lineHeightSM*M,"px"),x=N;return u()({},T,{width:"auto",display:"flex","&.ant-input-group-compact":{display:"flex"},".ant-input-disabled":{".ant-tag":{color:"#bfbfbf",borderColor:"#d9d9d9"}},".ant-input.null-value":{width:"4em",minWidth:"4em"},".ant-formily-item .ant-formily-item-control .ant-formily-item-control-content .ant-formily-item-control-content-component":{lineHeight:"normal"},".ant-formily-item":{marginBottom:0},".ant-input":C!=null&&C.hideVariableButton?{}:{borderTopRightRadius:0,borderBottomRightRadius:0},".ant-tag":{display:"inline-block",height:"auto",marginInlineEnd:g.marginXS,paddingInline:h,fontSize:M,lineHeight:n,whiteSpace:"nowrap",background:x,border:"".concat(g.lineWidth,"px ").concat(g.lineType," ").concat(g.colorBorder),borderRadius:g.borderRadiusSM,opacity:1,transition:"all ".concat(g.motionDurationMid),textAlign:"start"},".ant-tag-blue":{color:g.colorPrimaryText,background:g.colorPrimaryBg,borderColor:g.colorPrimaryBorder},".clear-button":{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:v,zIndex:1,display:"none",width:g.fontSizeIcon,height:g.fontSizeIcon,marginTop:-g.fontSizeIcon/2,color:g.colorTextQuaternary,fontSize:g.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:g.colorBgContainer,cursor:"pointer",opacity:.8,transition:"color ".concat(g.motionDurationMid," ease, opacity ").concat(g.motionDurationSlow," ease"),textRendering:"auto",userSelect:"none","&:before":{display:"block"},"&:hover":{color:g.colorTextTertiary}},".ant-btn":{height:"auto"},".variable":{flex:1}})})},72724:function(Ke,ae,e){"use strict";e.d(ae,{L:function(){return M}});var H=e(97857),u=e.n(H),k=e(5574),i=e.n(k),g=e(23861),C=e(67294),T=e(26793),r=e(21143),N=e(84577),v=e(85893),A=function(x){var K=(0,N.ng)(),o=K.refresh,a=(0,r.useAPIClient)(),R=(0,T.$)(),E=R.t;return(0,C.useCallback)(function($){var w,L,f,y,p,P,m,j,D=$.active,c=$.over,d=D==null||(w=D.data)===null||w===void 0||(w=w.current)===null||w===void 0?void 0:w.schema,l=c==null||(L=c.data)===null||L===void 0||(L=L.current)===null||L===void 0?void 0:L.schema,S=c==null||(f=c.data)===null||f===void 0||(f=f.current)===null||f===void 0?void 0:f.insertAdjacent,z=c==null||(y=c.data)===null||y===void 0||(y=y.current)===null||y===void 0?void 0:y.breakRemoveOn,O=c==null||(p=c.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.wrapSchema,U=c==null||(P=c.data)===null||P===void 0||(P=P.current)===null||P===void 0?void 0:P.onSuccess,t=(m=c==null||(j=c.data)===null||j===void 0||(j=j.current)===null||j===void 0?void 0:j.removeParentsIfNoChildren)!==null&&m!==void 0?m:!0;if(!d||!l){x==null||x($);return}if(d===l){x==null||x($);return}if(d.parent===l&&S==="beforeEnd"){x==null||x($);return}var B=(0,N.Pl)({t:E,api:a,refresh:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=Y.refreshParentSchema,I=W===void 0?!0:W;return o({refreshParentSchema:I})},current:l});if(B.loadAPIClientEvents(),d.parent===l.parent){B.insertBeforeBeginOrAfterEnd(d),x==null||x($);return}if(S){B.insertAdjacent(S,d,{wrap:O,breakRemoveOn:z,removeParentsIfNoChildren:t,onSuccess:U}),x==null||x($);return}},[a,x,o,E])},h=C.memo(function(n){var x=(0,T.$)(),K=x.t,o=(0,C.useState)(!0),a=i()(o,2),R=a[0],E=a[1],$=(0,C.useCallback)(function(L){var f,y=L.active,p=y==null||(f=y.data)===null||f===void 0||(f=f.current)===null||f===void 0?void 0:f.schema;if(E(!!p),n!=null&&n.onDragStart){var P;n==null||(P=n.onDragStart)===null||P===void 0||P.call(n,L)}},[n==null?void 0:n.onDragStart]),w=A(n==null?void 0:n.onDragEnd);return(0,v.jsxs)(g.DndContext,u()(u()({collisionDetection:g.rectIntersection},n),{},{onDragStart:$,onDragEnd:w,children:[(0,v.jsx)(g.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:R&&(0,v.jsx)("span",{style:{whiteSpace:"nowrap"},children:K("Dragging")})}),n.children]}))});h.displayName="InternalDndContext";var M=function(x){return(0,v.jsx)(h,u()({},x))}},14896:function(Ke,ae,e){"use strict";e.r(ae),e.d(ae,{DndContext:function(){return H.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return C},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR},getRenderContent:function(){return T.I9}});var H=e(72724),u=e(20493),k=e(67294),i=e(80844),g=e(85893),C=(0,i.observer)(function(r){var N=r.children,v=(0,i.useForm)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(v.values,null,2)}),N]})}),T=e(7840)},20493:function(Ke,ae,e){"use strict";e.d(ae,{IW:function(){return P},LC:function(){return a},bt:function(){return w},Fo:function(){return R},TR:function(){return p},OR:function(){return E}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(10274),C=e(23861),T=e(97133),r=e(80844),N=e(96486),v=e.n(N),A=e(67294),h=e(46917),M=e(84577),n=e(85893),x=["component","overStyle","style","children","openMode"],K=["schema","id","eid","removeParentsIfNoChildren"],o=["component"],a=(0,A.createContext)(null);a.displayName="DraggableContext";var R=(0,A.createContext)(null);R.displayName="SortableContext";var E=function(j){var D=j.id,c=j.data,d=j.children,l=(0,C.useDraggable)({id:D,data:c}),S=(0,C.useDroppable)({id:D,data:c}),z=(0,A.useMemo)(function(){return{draggable:l,droppable:S}},[l,S]);return(0,n.jsx)(R.Provider,{value:z,children:d})},$=function(j){return new g.C(j).setAlpha(.15).toHex8String()},w=function(j){var D,c,d=j.component,l=j.overStyle,S=j.style,z=j.children,O=j.openMode,U=i()(j,x),t=(0,h.dQ)(),B=t.token,G=(0,A.useContext)(R),Y=G.draggable,W=G.droppable,I=W.isOver,te=W.setNodeRef,Q=u()({},S);return I&&(Y==null||(D=Y.active)===null||D===void 0?void 0:D.id)!==(W==null||(c=W.over)===null||c===void 0?void 0:c.id)&&(Q[d==="a"?"color":"background"]=$(B.colorSettings),Object.assign(Q,l)),A.createElement(d||"div",u()(u()({role:"none"},U),{},{className:(0,T.cx)("nb-sortable-designer",j.className),ref:te,style:Q}),z)},L=function(j){var D=f(j),c=(0,r.useFieldSchema)();return j.schema?u()(u()({},j),{},{id:D}):u()(u()({},j),{},{id:D,schema:c})},f=function(j){var D,c=(0,r.useField)();return j.id?j.id:(D=c.address)===null||D===void 0?void 0:D.toString()},y=(0,r.observer)(function(m){var j=L(m),D=j.schema,c=j.id,d=j.eid,l=j.removeParentsIfNoChildren,S=i()(j,K),z=(0,A.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:D,removeParentsIfNoChildren:l??!0}},[D,l]);return(0,n.jsx)(E,{id:c,data:z,children:(0,n.jsx)(w,u()(u()({id:d},S),{},{children:m.children}))})},{displayName:"InternalSortableItem"}),p=A.memo(function(m){var j=m.component,D=i()(m,o),c=(0,M.ng)(),d=c.designable;return d?(0,n.jsx)(y,u()({},m)):A.createElement(j||"div",v().omit(D,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),m.children)});p.displayName="SortableItem";var P=function(j){var D=(0,A.useContext)(R)||{},c=D.draggable;if(!c)return null;var d=c.attributes,l=c.listeners,S=c.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"}},l),d),{},{role:"none",children:(0,n.jsx)("span",{style:{cursor:"move",fontSize:14},children:j.children})}))})}},7840:function(Ke,ae,e){"use strict";e.d(ae,{I9:function(){return P},Rq:function(){return w},e7:function(){return E},jC:function(){return f},od:function(){return $}});var H=e(97857),u=e.n(H),k=e(15009),i=e.n(k),g=e(9783),C=e.n(g),T=e(5574),r=e.n(T),N=e(99289),v=e.n(N),A=e(52677),h=e.n(A),M=e(84157),n=e(96486),x=e.n(n),K=e(10097),o=e(76690),a=e(65565),R=e(61341),E=function(D,c){var d,l=/{{(.*?)}}/,S=D==null||(d=D.match)===null||d===void 0?void 0:d.call(D,l);if(S){var z=x().get(c,S[1]);return x().isFunction(z)?z():z}else return D};function $(j){if(h()(j)!=="object"||j===null)return null;for(var D in j)if(Object.prototype.hasOwnProperty.call(j,D))return Object.prototype.toString.call(j[D])==="[object Object]"&&j[D]!==null?$(j[D]):{key:D,value:j[D]};return null}var w=function(D){var c=L(D),d=(0,n.findIndex)(c,function(S,z,O){if(S.includes("$")&&z>0)return!0}),l=c.slice(0,d);return l};function L(j){var D=[];function c(d){Object.keys(d).sort().forEach(function(l){D.push(l),d[l]&&h()(d[l])==="object"&&c(d[l])})}return c(j),D}var f=function(){var j=v()(i()().mark(function D(c,d){var l,S,z,O,U,t,B;return i()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return l=c.ruleGroup,S=c.variables,z=c.localVariables,O=c.variableNameOfLeftCondition,U=Object.keys(l)[0]||"$and",t=l[U],B=t.map(function(){var W=v()(i()().mark(function I(te){var Q,X,Z,b,J,se,q,le,Ce,_e,ye,Be,Pe,ie;return i()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!("$and"in te||"$or"in te)){pe.next=4;break}return pe.next=3,f({ruleGroup:te,variables:S,localVariables:z},d);case 3:return pe.abrupt("return",pe.sent);case 4:if(Q=$(te),X=Q==null?void 0:Q.key,X){pe.next=8;break}return pe.abrupt("return",!0);case 8:return Z=y(w(te),O),b=S.parseVariable(Z,z,{doNotRequest:!0}).then(function(ee){var ue=ee.value;return ue}),J=(0,o.cG)(Q==null?void 0:Q.value)?[S.parseVariable(Q==null?void 0:Q.value,z).then(function(ee){var ue=ee.value;return ue}),b]:[Q==null?void 0:Q.value,b],pe.prev=11,pe.next=14,Promise.all(J);case 14:return se=pe.sent,q=r()(se,2),le=q[0],Ce=q[1],pe.next=20,S.getCollectionField(Z,z);case 20:return _e=pe.sent,ye=(0,a.J)(Ce,{targetCollectionField:_e}),Be=(0,a.J)(le,{targetCollectionField:_e}),_e!=null&&_e.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(_e.type)&&ye&&(Pe=(0,R.CE)(Be),ie=(0,M.getPickerFormat)(Pe),ye=(0,M.dayjs)(ye).format(ie)),pe.abrupt("return",d.apply(C()({},X,[ye,Be])));case 27:throw pe.prev=27,pe.t0=pe.catch(11),pe.t0;case 30:case"end":return pe.stop()}},I,null,[[11,27]])}));return function(I){return W.apply(this,arguments)}}()),Y.next=6,Promise.all(B);case 6:if(B=Y.sent,U!=="$and"){Y.next=11;break}return Y.abrupt("return",(0,n.every)(B,function(W){return W}));case 11:return Y.abrupt("return",(0,n.some)(B,function(W){return W}));case 12:case"end":return Y.stop()}},D)}));return function(c,d){return j.apply(this,arguments)}}();function y(j){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(D,".").concat(j.join(".")," }}")}var p=function(D){var c={};return D.map(function(d){c[d.name]=d.ctx}),c};function P(j,D,c,d,l){return m.apply(this,arguments)}function m(){return m=v()(i()().mark(function j(D,c,d,l,S){var z,O,U,t,B,G,Y,W,I;return i()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(!(c&&D==="handlebars")){Q.next=19;break}return Q.prev=1,U=M.Handlebars.compile(c),t=p(l),B=(d==null||(z=d.ctxRef)===null||z===void 0?void 0:z.current)||{},G=B.$nDate,Y={},Object.keys(G||{}).map(function(X){Y[X]=G[X]()}),W=U(u()(u()(u()({},d==null||(O=d.ctxRef)===null||O===void 0?void 0:O.current),t),{},{$nDate:Y})),Q.next=10,S(W);case 10:return Q.abrupt("return",Q.sent);case 13:return Q.prev=13,Q.t0=Q.catch(1),console.log(Q.t0),Q.abrupt("return",c);case 17:Q.next=32;break;case 19:return Q.prev=19,Q.next=22,(0,K.replaceVariableValue)(c,d,l);case 22:return I=Q.sent,Q.next=25,S(I);case 25:return Q.abrupt("return",Q.sent);case 28:return Q.prev=28,Q.t1=Q.catch(19),console.log(Q.t1),Q.abrupt("return",c);case 32:case"end":return Q.stop()}},j,null,[[1,13],[19,28]])})),m.apply(this,arguments)}},25145:function(Ke,ae,e){"use strict";e.d(ae,{u:function(){return w}});var H=e(5574),u=e.n(H),k=e(97857),i=e.n(k),g=e(13769),C=e.n(g),T=e(80844),r=e(96486),N=e(67294),v=e(7105),A=e(75585),h=e(22891),M={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:{}}}}}}}},n=e(94804),x=e(57105),K=e(73691),o=e(85893),a=["WrappedComponent"],R=function(){var f=(0,T.useFieldSchema)(),y=(0,v.ngQ)(),p=y.insertAfterBegin,P=(0,N.useCallback)(function(m){var j=f.reduceProperties(function(D,c){return c["x-component"]==="Action.Container"?c:D},null);j||p((0,r.cloneDeep)(m))},[f,p]);return P},E=function(f){return f["x-component"]==="Action.Container"},$=function(f){var y=f.WrappedComponent,p=C()(f,a),P=(0,T.useFieldSchema)(),m=(0,h.ES)(),j=m.openPopup,D=(0,N.useRef)(!1),c=R(),d=(0,N.useRef)(P);d.current=P;var l=(0,N.useCallback)(function(){return d.current},[]),S=(0,N.useCallback)(function(){P.properties||(c(M),D.current=!0),D.current?(setTimeout(function(){j({customActionSchema:l()})}),D.current=!1):P.properties&&j()},[P,c,j,l]);return(0,o.jsx)("a",{onClick:S,children:(0,o.jsx)(y,i()({},p))})};function w(L){return function(f){var y=(0,N.useState)(!1),p=u()(y,2),P=p[0],m=p[1],j=(0,N.useState)(!1),D=u()(j,2),c=D[0],d=D[1],l=(0,n.Kx)(),S=(0,v.XCj)(),z=(0,T.useField)(),O=(0,T.useFieldSchema)(),U=(O==null?void 0:O["x-component-props"])||{},t=U.enableLink,B=U.openMode,G=U.openSize,Y=(0,h.ES)(),W=Y.visibleWithURL,I=Y.setVisibleWithURL,te=(0,N.useCallback)(function(Z){m==null||m(Z),I==null||I(Z)},[I]),Q=(0,N.useRef)(O);Q.current=O;var X=S.setSubmitted;return t?(0,o.jsx)(A.OA,{visible:!1,children:(0,o.jsxs)(v.EIK,{button:(0,o.jsx)(L,i()({},f)),visible:P||W,setVisible:te,formValueChanged:c,setFormValueChanged:d,openMode:B,openSize:G,containerRefKey:"field-popup",fieldSchema:O,setSubmitted:X,children:[(0,o.jsx)(n.YQ,{name:l.name,children:(0,o.jsx)(v.G0E,{children:(0,o.jsx)(K.Rm,{children:(0,o.jsx)(x.sq,{onlyRenderProperties:!0,basePath:z==null?void 0:z.address,schema:O,filterProperties:E})})})}),(0,o.jsx)($,i()(i()({},f),{},{WrappedComponent:L}))]})}):(0,o.jsx)(L,i()({},f))}}},61736:function(Ke,ae,e){"use strict";e.d(ae,{D:function(){return u}});var H=e(67294),u=(0,H.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(Ke,ae,e){"use strict";e.d(ae,{R:function(){return n}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(86201),C=e(80844),T=e(67294),r=e(47844),N=e(85893),v=["children","form"],A=["children"],h=function(K){var o=K.children,a=K.form,R=i()(K,v),E=(0,T.useContext)(C.SchemaOptionsContext),$=(0,T.useContext)(C.SchemaExpressionScopeContext),w=u()(u()({},E==null?void 0:E.scope),$),L=u()({},E==null?void 0:E.components);return(0,N.jsx)(C.FormProvider,u()(u()({},R),{},{form:a,children:(0,N.jsx)(r.G,{components:L,scope:w,children:o})}))},M=function(K){var o=K.children,a=i()(K,A),R=(0,T.useContext)(C.SchemaOptionsContext),E=(0,T.useContext)(C.SchemaExpressionScopeContext),$=u()(u()({},R==null?void 0:R.scope),E),w=u()({},R==null?void 0:R.components),L=(0,T.useMemo)(function(){return(0,g.createForm)()},[]);return(0,N.jsx)(C.FormProvider,u()(u()({},a),{},{form:L,children:(0,N.jsx)(r.G,{components:w,scope:$,children:o})}))},n=function(K){return K.form?(0,N.jsx)(h,u()({},K)):(0,N.jsx)(M,u()({},K))}},93587:function(Ke,ae,e){"use strict";e.d(ae,{m:function(){return K}});var H=e(97857),u=e.n(H),k=e(86201),i=e(57953),g=e(67294),C=e(54195),T=e(21044),r=e(84577),N=e(44245),v=e(93323),A=e(12174),h=function(a){var R=a.uid,E=a.type,$=E===void 0?"getJsonSchema":E,w=a.onSuccess,L={url:"/uiSchemas:".concat($,"/").concat(R)},f=(0,A.QT)(L,{refreshDeps:[R],onSuccess:function(m){w&&w(m)}}),y=f.data,p=f.loading;return{schema:y==null?void 0:y.data,loading:p}},M=e(85893),n=function(a){return a},x=function(a){var R=a.noForm,E=a.onlyRenderProperties,$=a.hidden,w=a.scope,L=a.uid,f=a.components,y=a.onSuccess,p=a.NotFoundPage,P=a.schemaTransform,m=P===void 0?n:P,j=a.onPageNotFind,D=E?"getProperties":"getJsonSchema",c=(0,g.useMemo)(function(){return(0,k.createForm)()},[L]),d=h({uid:L,type:D,onSuccess:function(t){y&&y(t)}}),l=d.schema,S=d.loading,z=(0,r.Co)(p),O=(0,C.Kk)();return O||S||$?(0,M.jsx)(i.Z,{style:{width:"100%",marginTop:20},delay:T.fw}):!l||Object.keys(l).length===0?(j&&j(),z?(0,M.jsx)(z,{}):null):R?(0,M.jsx)(v.n,{components:f,scope:w,schema:m(l||{})}):(0,M.jsx)(N.R,{form:c,children:(0,M.jsx)(v.n,{components:f,scope:w,schema:m(l||{})})})},K=(0,g.memo)(function(o){return o.uid?(0,M.jsx)(x,u()({},o)):null});K.displayName="RemoteSchemaComponent"},93323:function(Ke,ae,e){"use strict";e.d(ae,{A:function(){return E},n:function(){return L}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(9783),C=e.n(g),T=e(80844),r=e(96486),N=e.n(r),v=e(67294),A=e(57105),h=e(61736),M=e(47844),n=e(85893),x=["components","scope","schema","distributed","onChange"],K=["schema"],o=["memoized"];function a(f){return T.Schema.isSchemaInstance(f)?f:f!=null&&f.name?new T.Schema({type:"object",properties:C()({},f.name,f)}):new T.Schema(f)}var R=function(y){return(0,v.useMemo)(function(){return a(y)},[])},E=(0,v.createContext)({onChange:N().noop}),$=(0,v.memo)(function(f){var y=f.components,p=f.scope,P=f.schema,m=f.distributed,j=f.onChange,D=i()(f,x),c=(0,v.useContext)(h.D),d=(0,v.useMemo)(function(){return a(P)},[P]),l=(0,v.useMemo)(function(){return u()(u()({},c),{},{distributed:c.distributed==!1?!1:m,refresh:c.refresh||N().noop})},[c,m]),S=(0,v.useContext)(E),z=S.onChange,O=(0,v.useMemo)(function(){return{onChange:function(){j==null||j(d),z==null||z()}}},[j,z,d]);return(0,n.jsx)(E.Provider,{value:O,children:(0,n.jsx)(h.D.Provider,{value:l,children:(0,n.jsx)(M.G,{inherit:!0,components:y,scope:p,children:(0,n.jsx)(A.sq,u()(u()({},D),{},{schema:d,isUseFormilyField:!0}))})})})});$.displayName="RecursionSchemaComponent";var w=(0,v.memo)(function(f){var y=f.schema,p=i()(f,K),P=R(y);return(0,n.jsx)($,u()(u()({},p),{},{schema:P}))});w.displayName="MemoizedSchemaComponent";var L=(0,v.memo)(function(f){var y=f.memoized,p=i()(f,o);return y?(0,n.jsx)(w,u()({},p)):(0,n.jsx)($,u()({},p))});L.displayName="SchemaComponent"},47844:function(Ke,ae,e){"use strict";e.d(ae,{B:function(){return C},G:function(){return T}});var H=e(97857),u=e.n(H),k=e(80844),i=e(67294),g=e(85893),C=function(){var N=(0,i.useContext)(k.SchemaOptionsContext);return N||{}},T=(0,i.memo)(function(r){var N=r.children,v=C(),A=(0,i.useMemo)(function(){return u()(u()({},v.components),r.components)},[v.components,r.components]),h=(0,i.useMemo)(function(){return u()(u()({},v.scope),r.scope)},[v.scope,r.scope]),M=(0,i.useMemo)(function(){return{scope:h,components:A}},[h,A]);return(0,g.jsx)(k.SchemaOptionsContext.Provider,{value:M,children:(0,g.jsx)(k.SchemaComponentsContext.Provider,{value:A,children:(0,g.jsx)(k.ExpressionScope,{value:h,children:N})})})});T.displayName="SchemaComponentOptions"},70993:function(Ke,ae,e){"use strict";e.d(ae,{_b:function(){return f},RV:function(){return y.R},m1:function(){return p.m},n6:function(){return P.n},AT:function(){return P.A},G0:function(){return m.G},a$:function(){return te},Tz:function(){return W},Bs:function(){return m.B}});var H=e(15009),u=e.n(H),k=e(99289),i=e.n(k),g=e(12444),C=e.n(g),T=e(72004),r=e.n(T),N=e(31996),v=e.n(N),A=e(26037),h=e.n(A),M=e(18205),n=e(83062),x=e(15867),K=e(67294),o=e(49218),a=e(26793),R=e(7105),E=e(68230),$=e(85893),w={backgroundColor:"var(--colorSettings) !important"},L={backgroundColor:"transparent"},f=function(){var Z=(0,R.ngQ)(),b=Z.designable,J=Z.setDesignable,se=(0,a.$)(),q=se.t,le=(0,E.d)(),Ce=le.token,_e=b?w:L;return(0,o.y1)("Ctrl+Shift+U",function(){return J(!b)},[b]),(0,$.jsx)(n.Z,{title:q("UI Editor"),children:(0,$.jsx)(x.ZP,{"data-testid":"ui-editor-button",icon:(0,$.jsx)(M.Z,{style:{color:Ce.colorTextHeaderMenu}}),title:q("UI Editor"),style:_e,onClick:function(){J(!b)}})})},y=e(44245),p=e(93587),P=e(93323),m=e(47844),j=e(97857),D=e.n(j),c=e(5574),d=e.n(c),l=e(86201),S=e(80844),z=e(84327),O=e(96486),U=e.n(O),t=e(61736),B=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(Z).concat((0,z.uid)())};S.Schema.silent(!0);var G={},Y={silent:!0,compile:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=function(){if(Y.silent)try{return new Function("$root","with($root) { return (".concat(Z,"); }"))(b)}catch{return"{{".concat(Z,"}}")}else return new Function("$root","with($root) { return (".concat(Z,"); }"))(b)};return G[Z]?G[Z]:Z.trim().startsWith("t(")?(G[Z]=J(),G[Z]):J()}};S.Schema.registerCompiler(Y.compile);var W=function(Z){var b=Z.designable,J=Z.onDesignableChange,se=Z.components,q=Z.children,le=(0,K.useContext)(t.D),Ce=(0,m.B)(),_e=(0,K.useState)(function(){return(0,z.uid)()}),ye=d()(_e,2),Be=ye[0],Pe=ye[1],ie=(0,K.useMemo)(function(){return Z.form||(0,l.createForm)()},[Be]),me=(0,a.$)(),pe=me.t,ee=(0,K.useMemo)(function(){return D()(D()({},Z.scope),{},{t:pe,randomString:B})},[Z.scope,pe,Ce==null?void 0:Ce.scope]),ue=(0,K.useState)(b),ge=d()(ue,2),Ee=ge[0],Me=ge[1],Te=(0,K.useMemo)(function(){return typeof b=="boolean"?b:Ee},[b,Ee,le.designable]),Ae=(0,K.useMemo)(function(){return function(fe){typeof Te!="boolean"&&Me(fe),J==null||J(fe)}},[Te,J]),Ie=(0,K.useCallback)(function(){Pe((0,z.uid)())},[]),be=(0,K.useMemo)(function(){return{scope:ee,components:se,reset:Ie,refresh:U().noop,designable:Te,setDesignable:Ae}},[se,Te,Ie,ee,Ae]);return(0,$.jsx)(t.D.Provider,{value:be,children:(0,$.jsx)(S.FormProvider,{form:ie,children:(0,$.jsx)(m.G,{inherit:!0,scope:ee,components:se,children:q})})})};W.displayName="SchemaComponentProvider";var I=e(31601),te=function(X){v()(b,X);var Z=h()(b);function b(){return C()(this,b),Z.apply(this,arguments)}return r()(b,[{key:"load",value:function(){var J=i()(u()().mark(function q(){return u()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:this.addComponents();case 1:case"end":return Ce.stop()}},q,this)}));function se(){return J.apply(this,arguments)}return se}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:f})}}]),b}(I.S),Q=null},84577:function(Ke,ae,e){"use strict";e.d(ae,{zz:function(){return T.zz},Pl:function(){return T.Pl},oB:function(){return T.oB},lI:function(){return u},hi:function(){return $.hi},eJ:function(){return k.e},Co:function(){return C},aZ:function(){return $.aZ},ng:function(){return T.ng},et:function(){return r.e},cL:function(){return K},fd:function(){return w},Cl:function(){return A},vH:function(){return R},sR:function(){return T.sR},wN:function(){return E.w},Dm:function(){return M},fM:function(){return $.fM}});var H=e(67294),u=function(f){var y=(0,H.useRef)(null);return(0,H.useEffect)(function(){return y.current&&f!==y.current&&y.current.onUnmount(),y.current=f,f.onMount(),function(){f.onUnmount()}},[f]),f},k=e(96365),i=e(80844),g=e(96486),C=function(f,y){var p=(0,H.useContext)(i.SchemaOptionsContext),P=p.components;return f?typeof f!="string"?f:(0,g.get)(P,f)||y:y},T=e(94516),r=e(98146),N=e(97857),v=e.n(N),A=function(f){var y=(0,H.useContext)(i.SchemaOptionsContext),p=(0,H.useContext)(i.SchemaExpressionScopeContext),P=(0,H.useRef)();return P.current=p,f.toFieldProps(v()(v()({},y),{},{get scope(){return v()(v()({},y.scope),P.current)}}))},h=e(61736);function M(){return(0,H.useContext)(h.D)}var n=e(26793),x=e(6145),K=function(){var f,y=(0,x.useCollectionManager_deprecated)(),p=y.getCollectionJoinField,P=y.getCollection,m=(0,i.useFieldSchema)(),j=(0,x.useCollection_deprecated)(),D=j.getField,c=D(m.name)||p(m["x-collection-field"]),d=(0,n.$)(),l=d.t,S=((f=m["x-component-props"])===null||f===void 0?void 0:f.fieldNames)||{},z=S.label,O=(0,H.useMemo)(function(){if(!(!c||!(c!=null&&c.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(c.interface)){var U=P(c.target);if((U==null?void 0:U.template)==="file")return[{label:l("Record picker"),value:"CollectionField"},{label:l("Select"),value:"AssociationSelect"}];switch(c.interface){case"o2m":return[{label:l("Record picker"),value:"CollectionField"},{label:l("Subtable"),value:"TableField"},{label:l("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:l("Record picker"),value:"CollectionField"},{label:l("Select"),value:"AssociationSelect"}];default:return[{label:l("Record picker"),value:"CollectionField"},{label:l("Subform"),value:"FormField"},{label:l("Select"),value:"AssociationSelect"}]}}},[l,c==null?void 0:c.interface,z]);return O},o=e(35746),a=e(58837),R=function(){var f,y=(0,i.useField)(),p=(0,i.useFieldSchema)(),P=(0,a.Kx)(),m=(0,o.d9)(),j=(P==null?void 0:P.getField(p.name))||(m==null?void 0:m.getCollectionField(p["x-collection-field"])),D=(0,k.e)();(0,H.useEffect)(function(){if(!(y!=null&&y.title)){var c;y.title=D(j==null||(c=j.uiSchema)===null||c===void 0?void 0:c.title)}},[j==null||(f=j.uiSchema)===null||f===void 0?void 0:f.title])},E=e(9780),$=e(18686),w=function(f){var y,p=(0,n.$)(),P=p.t,m=(0,x.useCollectionManager_deprecated)(),j=m.getCollectionJoinField,D=m.getCollection,c=(0,i.useFieldSchema)(),d=(f==null?void 0:f.fieldSchema)||c,l=(0,i.useField)(),S=(0,i.useForm)(),z=(d==null?void 0:d["x-read-pretty"])||l.readPretty||S.readPretty,O=f==null?void 0:f.fieldSchema,U=(0,x.useCollection_deprecated)(),t=U.getField,B=(f==null?void 0:f.collectionField)||t(d.name)||j(d["x-collection-field"]),G=((y=d["x-component-props"])===null||y===void 0?void 0:y.fieldNames)||{},Y=G.label,W=(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 I=D(B.target);if((I==null?void 0:I.template)==="file")return z?[{label:P("Title"),value:"Select"},{label:P("File manager"),value:"FileManager"},{label:P("Tag"),value:"Tag"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},{label:P("File manager"),value:"FileManager"}];if((I==null?void 0:I.template)==="tree"&&["m2m","o2m","m2o"].includes(B.interface))return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"},!O&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&["m2m","o2m"].includes(B.interface)&&{label:P("Sub-table"),value:"SubTable"},!O&&{label:P("Cascade Select"),value:"CascadeSelect"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];switch(B.interface){case"o2m":return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-table"),value:"SubTable"},!O&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"},!O&&{label:P("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"},!O&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-table"),value:"SubTable"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];default:return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}]}}},[P,B==null?void 0:B.interface,Y]);return(W||[]).filter(Boolean)}},18686:function(Ke,ae,e){"use strict";e.d(ae,{aZ:function(){return L},fM:function(){return y},hi:function(){return f}});var H=e(5574),u=e.n(H),k=e(97857),i=e.n(k),g=e(80844),C=e(83204),T=e(9361),r=e(96486),N=e.n(r),v=e(67294),A=e(89250),h=e(7105),M=e(21143),n=e(10097),x=e(1892),K=e(28561),o=function(m,j,D,c,d){return d.includes("/popups/")?2*c.paddingContentVertical+22+c.paddingPageVertical:m?c.paddingContentHorizontalLG:D?j?c.controlPaddingHorizontal+3*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.paddingContentHorizontalLG+12:j?c.paddingSM+c.controlHeight+c.marginXS+2*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.controlHeight+c.marginXS+(c.paddingXXS+2)*2+c.paddingContentHorizontalLG},a=function(m){var j=T.Z.useToken(),D=j.token,c=(0,h.ngQ)(),d=c.designable,l=(0,n.useBlockHeightProps)(),S=l.heightProps,z=(0,A.useLocation)(),O=m||S||{},U=O.disablePageHeader,t=O.enablePageTabs,B=O.hidePageTitle,G=D.sizeXXL-2,Y=d?D.controlHeight+2*D.paddingContentHorizontalLG:1*D.paddingContentHorizontalLG,W=o(U,t,B,D,z.pathname);return G+W+Y},R=function(){var m=T.Z.useToken(),j=m.token,D=(0,h.ngQ)(),c=D.designable,d=j.paddingContentVerticalLG+j.margin+2*j.paddingContentVertical+24,l=c?j.controlHeight+2*j.paddingContentHorizontalLG:1*j.paddingContentHorizontalLG;return d+l},E=function(m){var j=(0,g.useFieldSchema)(),D=p(j),c=a(m),d=R();return D?d:c},$=["users_jobs","approvals","approvalRecords"],w=function(){var m,j=T.Z.useToken(),D=j.token,c=(0,n.useBlockHeightProps)(),d=c.heightProps,l=(0,x.Si)(),S=l.heightProps,z=(0,h.ngQ)(),O=z.designable,U=(0,g.useFieldSchema)(),t=S||d,B=d.titleHeight,G=E(t),Y=(0,M.useCollection)(),W=Y.name,I=t.heightMode,te=t.height,Q=t.title;if(!(!(t!=null&&t.heightMode)||I===K.j.DEFAULT)){var X=Object.keys(((m=U.parent.properties.actions)===null||m===void 0?void 0:m.properties)||{}).length>0,Z=D.controlHeight+D.padding+D.marginLG,b=X||O?D.controlHeight+2*D.marginLG:D.marginLG,J=(O&&!$.includes(W)?D.controlHeight:22)+2*D.padding+1,se=Q?B:0;return I===K.j.FULL_HEIGHT?window.innerHeight-G-se-J-b-Z:te-se-b-J-Z}},L=function(m){var j=(0,n.useBlockHeightProps)(),D=j.heightProps,c=E(),d=D||{},l=d.heightMode,S=d.height,z=d.title,O=d.titleHeight,U=z?O:0;if(!(!(D!=null&&D.heightMode)||l===K.j.DEFAULT)){if(l===K.j.FULL_HEIGHT){var t=window.innerHeight-c;return console.log(t),m!=null&&m.removeBlockHeaderHeight&&(t=t-U),m!=null&&m.innerExtraHeight&&(t=t-m.innerExtraHeight),t}return S}},f=function(){var m=(0,g.useFieldSchema)(),j=(0,v.useMemo)(function(){return(0,n.getPageSchema)(m)},[]),D=(j==null?void 0:j["x-component-props"])||{},c=D.disablePageHeader,d=D.enablePageTabs,l=D.hidePageTitle,S=i()(i()({},m==null?void 0:m["x-component-props"]),{},{disablePageHeader:c,enablePageTabs:d,hidePageTitle:l}),z=E(S),O=S||{},U=O.heightMode,t=O.height;if(!(!(S!=null&&S.heightMode)||U===K.j.DEFAULT))return U===K.j.FULL_HEIGHT?window.innerHeight-z:t},y=function(){var m=(0,v.useState)(),j=u()(m,2),D=j[0],c=j[1],d=(0,v.useRef)(null),l=w(),S=(0,v.useCallback)((0,r.debounce)(function(){var O;if(d.current){var U=d.current.getBoundingClientRect(),t=(O=d.current.querySelector(".ant-table"))===null||O===void 0?void 0:O.getBoundingClientRect();t&&c(U.width)}},100),[l]),z=(0,v.useCallback)(function(O){d.current=O&&O.children?O.children[0]:null,S()},[S]);return(0,C.Z)("resize",S),{height:l,width:D,tableSizeRefCallback:z}},p=function P(m){if(!m)return null;if(m["x-component"]==="Action.Container"){var j;return(m==null||(j=m.parent["x-component-props"])===null||j===void 0?void 0:j.openMode)!=="page"}return P(m.parent)}},96365:function(Ke,ae,e){"use strict";e.d(ae,{e:function(){return N}});var H=e(97857),u=e.n(H),k=e(52677),i=e.n(k),g=e(80844),C=e(67294),T={},r=function(A){var h=/{{.*?}}/g;return h.test(A)},N=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},h=A.noCache,M=(0,C.useContext)(g.SchemaOptionsContext),n=(0,C.useContext)(g.SchemaExpressionScopeContext);return function(x,K){var o=!1,a;if(typeof x=="string"&&x.startsWith("{{")&&(o=!0,a=x),x&&i()(x)==="object"&&!(0,C.isValidElement)(x)){try{a=JSON.stringify(x)}catch(E){return console.warn("Failed to stringify:",E),x}if(T[a])return T[a];o=r(a)}if(Array.isArray(x)){try{a=JSON.stringify(x)}catch(E){return console.warn("Failed to stringify:",E),x}if(T[a])return T[a];o=r(a)}if(o){var R=u()(u()(u()({},M.scope),n),K);if(!a)return g.Schema.compile(x,R);try{return h?g.Schema.compile(x,R):(T[a]=T[a]||g.Schema.compile(x,R),T[a])}catch(E){return console.log("useCompile error",x,E),g.Schema.compile(x,R)}}return x}}},94516:function(Ke,ae,e){"use strict";e.d(ae,{zz:function(){return W},Pl:function(){return O},oB:function(){return G},ng:function(){return te},sR:function(){return I}});var H=e(5574),u=e.n(H),k=e(19632),i=e.n(k),g=e(15009),C=e.n(g),T=e(99289),r=e.n(T),N=e(12444),v=e.n(N),A=e(72004),h=e.n(A),M=e(9783),n=e.n(M),x=e(97857),K=e.n(x),o=e(80844),a=e(84327),R=e(90105),E=e(45360),$=e(50361),w=e.n($),L=e(27361),f=e.n(L),y=e(36968),p=e.n(y),P=e(67294),m=e(26793),j=e(12174),D=e(57105),c=e(98902),d=e(61736);function l(Q,X){if(Q)return Q["x-app-version"]||(Q["x-app-version"]=X),Object.keys(Q.properties||{}).forEach(function(Z){var b;l((b=Q.properties)===null||b===void 0?void 0:b[Z],X)}),Q}var S=JSON.parse('{"i8":"1.6.0-beta.13"}'),z=e(85893);function O(Q){return new W(Q)}var U=function Q(X){X&&(X["x-uid"]||(X["x-uid"]=(0,a.uid)()),Object.keys(X.properties||{}).forEach(function(Z){Q(X.properties[Z])}))},t=function(X){return X},B=function(X,Z){if(!(!X||!Z)){for(var b in Z)if(Object.prototype.hasOwnProperty.call(Z,b)){var J=Z[b];if(J!==(X==null?void 0:X[b]))return!1}return!0}},G=function(X,Z){if(X["x-uid"]&&X["x-uid"]===Z["x-uid"])return[null,X.toJSON()];var b=X.toJSON(),J=K()(K()({},b),{},{properties:{}}),se=null,q=function le(Ce,_e){Object.keys(Ce||{}).forEach(function(ye){var Be=Ce[ye];if(Be["x-uid"]===Z["x-uid"]){se=Ce[ye];return}else _e.properties[ye]=K()(K()({},Be),{},{properties:{}}),le(Be==null?void 0:Be.properties,_e.properties[ye])})};return q(b.properties,J),[J,se]},Y=function(X){return X},W=function(){function Q(X){v()(this,Q),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=X,this.current=X.current,this.appVersion=X.appVersion}return h()(Q,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var Z=this,b=this.options,J=b.api,se=b.t,q=se===void 0?Y:se;if(J){var le=function(_e){if(!_e)return[];var ye=Object.values(_e.properties).length,Be=[];return _e.mapProperties(function(Pe){Pe["x-component-props"]=Pe["x-component-props"]||{},Pe["x-component-props"].width=100/ye,Pe["x-uid"]&&Be.push({"x-uid":Pe["x-uid"],"x-component-props":Pe["x-component-props"]})}),_e["x-uid"]&&Be.length?Be:[]};this.on("insertAdjacent",function(){var Ce=r()(C()().mark(function _e(ye){var Be,Pe,ie,me,pe,ee,ue,ge,Ee,Me;return C()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Pe=ye.onSuccess,ie=ye.current,me=ye.position,pe=ye.schema,ee=ye.wrap,ue=ye.wrapped,ge=ye.removed,Ee=[],(ue==null?void 0:ue["x-component"])==="Grid.Col"&&(Ee=Ee.concat(le(ue.parent))),(ge==null?void 0:ge["x-component"])==="Grid.Col"&&(Ee=Ee.concat(le(ge.parent))),Z.refresh(),ie["x-uid"]){Ae.next=7;break}return Ae.abrupt("return");case 7:return Ae.next=9,J.request({url:"/uiSchemas:insertAdjacent/".concat(ie["x-uid"],"?position=").concat(me),method:"post",data:{schema:l(pe,Z.appVersion),wrap:ee}});case 9:if(Me=Ae.sent,!Ee.length){Ae.next=13;break}return Ae.next=13,J.request({url:"/uiSchemas:batchPatch",method:"post",data:Ee});case 13:if(!(ge!=null&&ge["x-uid"])){Ae.next=16;break}return Ae.next=16,J.request({url:"/uiSchemas:remove/".concat(ge["x-uid"]),method:"post"});case 16:Pe==null||Pe(Me==null||(Be=Me.data)===null||Be===void 0?void 0:Be.data),E.ZP.success(q("Saved successfully"),.2);case 18:case"end":return Ae.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("patch",function(){var Ce=r()(C()().mark(function _e(ye){var Be;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(Be=ye.schema,Z.refresh(),Be!=null&&Be["x-uid"]){ie.next=4;break}return ie.abrupt("return");case 4:return ie.next=6,J.request({url:"/uiSchemas:patch",method:"post",data:K()({},Be)});case 6:E.ZP.success(q("Saved successfully"),.2);case 7:case"end":return ie.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var Ce=r()(C()().mark(function _e(ye){var Be;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(Be=ye.schema,Be!=null&&Be["x-uid"]){ie.next=3;break}return ie.abrupt("return");case 3:return ie.next=5,J.request({url:"/uiSchemas:initializeActionContext",method:"post",data:K()({},Be)});case 5:case"end":return ie.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("batchPatch",function(){var Ce=r()(C()().mark(function _e(ye){var Be;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return Be=ye.schemas,Z.refresh(),ie.next=4,J.request({url:"/uiSchemas:batchPatch",method:"post",data:Be});case 4:E.ZP.success(q("Saved successfully"),.2);case 5:case"end":return ie.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("remove",function(){var Ce=r()(C()().mark(function _e(ye){var Be,Pe;return C()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(Be=ye.removed,Pe=[],(Be==null?void 0:Be["x-component"])==="Grid.Col"&&(Pe=le(Be.parent)),Z.refresh(),Be!=null&&Be["x-uid"]){me.next=6;break}return me.abrupt("return");case 6:return me.next=8,J.request({url:"/uiSchemas:remove/".concat(Be["x-uid"]),method:"post"});case 8:if(!Pe.length){me.next=11;break}return me.next=11,J.request({url:"/uiSchemas:batchPatch",method:"post",data:Pe});case 11:E.ZP.success(q("Saved successfully"),.2);case 12:case"end":return me.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(Z){Z.type||(Z.type="void"),Z.name||(Z.name=(0,a.uid)()),this.current["x-uid"]&&U(Z)}},{key:"on",value:function(Z,b){this.events[Z]||(this.events[Z]=[]),this.events[Z].push(b)}},{key:"emit",value:function(){var X=r()(C()().mark(function b(J){var se=this,q,le,Ce,_e,ye,Be=arguments;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(this.events[J]){ie.next=2;break}return ie.abrupt("return");case 2:for(q=Be.length,le=new Array(q>1?q-1:0),Ce=1;Ce<q;Ce++)le[Ce-1]=Be[Ce];return _e=le[0],ye=le.slice(1),ie.abrupt("return",Promise.all(this.events[J].map(function(me){return me.bind(se).apply(void 0,[K()({current:se.current},_e)].concat(i()(ye)))})));case 5:case"end":return ie.stop()}},b,this)}));function Z(b){return X.apply(this,arguments)}return Z}()},{key:"parentsIn",value:function(Z){if(!Z||!o.Schema.isSchemaInstance(Z))return!1;for(var b=this.current;(J=b)!==null&&J!==void 0&&J.parent;){var J;if(b.parent===Z)return!0;b=b.parent}return!1}},{key:"refresh",value:function(Z){var b=this.options.refresh;return b==null?void 0:b(Z)}},{key:"deepMerge",value:function(Z){var b=this,J={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"},se={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Z).forEach(function(q){J[q]?(b.current[q]=Z[q],b.updateModel(J[q],Z[q])):se[q]?Object.keys(Z[q]).forEach(function(le){p()(b.current,[q,le],Z[q][le]),b.updateModel([se[q],le],Z[q][le])}):b.current[q]=Z[q]}),this.emit("patch",{schema:Z})}},{key:"getSchemaAttribute",value:function(Z,b){return f()(this.current,Z,b)}},{key:"shallowMerge",value:function(Z){var b=this,J={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(Z).forEach(function(se){b.current[se]=Z[se],J[se]&&b.updateModel(J[se],Z[se])}),this.emit("patch",{schema:Z})}},{key:"updateModel",value:function(Z,b){var J=function(q){p()(q,Z,b)};this.model&&J(this.model),this.query&&this.query.take(J)}},{key:"insertAdjacent",value:function(Z,b){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(Z){case"beforeBegin":return this.insertBeforeBegin(b,J);case"afterBegin":return this.insertAfterBegin(b,J);case"beforeEnd":return this.insertBeforeEnd(b,J);case"afterEnd":return this.insertAfterEnd(b,J)}}},{key:"recursiveRemoveIfNoChildren",value:function(Z,b){if(Z){for(var J=Z,se,q=b==null?void 0:b.breakRemoveOn;J;){if(typeof q=="function"){if(q(J))break}else if(B(J,q))break;var le=Object.keys(J.properties||{}).length;if(le>0)break;J.parent&&(se=J.parent.removeProperty(J.name)),J=J.parent}return se}}},{key:"remove",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=b.breakRemoveOn,se=b.removeParentsIfNoChildren,q=Z||this.current,le=q.parent.removeProperty(q.name);if(se){var Ce=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:J});Ce&&(le=Ce)}return this.emit("remove",{removed:le})}},{key:"removeWithoutEmit",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=b.breakRemoveOn,se=b.removeParentsIfNoChildren,q=Z||this.current,le=q.parent.removeProperty(q.name);if(se){var Ce=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:J});Ce&&(le=Ce)}return le}},{key:"insertBeforeBeginOrAfterEnd",value:function(Z){var b=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)&&o.Schema.isSchemaInstance(Z)&&this.current.parent===Z.parent){var se=0,q=0;return this.current.parent.mapProperties(function(le,Ce,_e){b.current.name===Ce&&(q=_e),Z.name===Ce&&(se=_e)}),se>q?this.insertBeforeBegin(Z,J):this.insertAfterEnd(Z,J)}}},{key:"insertBeforeBegin",value:function(Z){var b=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var se={onSuccess:J.onSuccess},q=J.wrap,le=q===void 0?t:q,Ce=J.breakRemoveOn,_e=J.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),_e&&(se.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:Ce}))}else Z&&(Z=w()(Z));var ye={},Be=!1,Pe=0,ie=0;this.current.parent.mapProperties(function(Me,Te){Te===b.current.name&&(ie=Pe,Be=!0,++Pe),Me["x-index"]=Pe,++Pe,Be&&(ye[Te]=Me,b.current.parent.removeProperty(Te))}),this.prepareProperty(Z);var me=le(Z),pe=this.current.parent.addProperty(me.name||(0,a.uid)(),me);pe["x-index"]=ie,pe.parent=this.current.parent,this.current.parent.setProperties(ye);var ee=G(pe,Z),ue=u()(ee,2),ge=ue[0],Ee=ue[1];this.emit("insertAdjacent",K()({position:"beforeBegin",schema:Ee,wrapped:me,wrap:ge},se))}}},{key:"insertAfterBegin",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var J={onSuccess:b.onSuccess},se=b.wrap,q=se===void 0?t:se,le=b.breakRemoveOn,Ce=b.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),Ce&&(J.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:le}))}else Z&&(Z=w()(Z));var _e={},ye=1;this.current.mapProperties(function(ue,ge){ue["x-index"]=ye,++ye,_e[ge]=ue}),this.current.properties={},this.prepareProperty(Z);var Be=q(Z),Pe=this.current.addProperty(Be.name||(0,a.uid)(),Be);Pe["x-index"]=0,Pe.parent=this.current,this.current.setProperties(_e);var ie=G(Pe,Z),me=u()(ie,2),pe=me[0],ee=me[1];this.emit("insertAdjacent",K()({position:"afterBegin",schema:ee,wrap:pe,wrapped:Be},J))}}},{key:"insertBeforeEnd",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){delete Z["x-index"];var J={onSuccess:b.onSuccess},se=b.wrap,q=se===void 0?t:se,le=b.breakRemoveOn,Ce=b.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),Ce&&(J.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:le}))}else Z&&(Z=w()(Z));this.prepareProperty(Z);var _e=q(Z),ye=this.current.addProperty(_e.name||(0,a.uid)(),_e);ye.parent=this.current;var Be=G(ye,Z),Pe=u()(Be,2),ie=Pe[0],me=Pe[1];return this.emit("insertAdjacent",K()({position:"beforeEnd",schema:me,wrap:ie,wrapped:_e},J))}}},{key:"insertAfterEnd",value:function(Z){var b=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var se={onSuccess:J==null?void 0:J.onSuccess},q=J.wrap,le=q===void 0?t:q,Ce=J.breakRemoveOn,_e=J.removeParentsIfNoChildren,ye=0,Be=0,Pe=!1,ie={};if(this.current.parent.mapProperties(function(Me,Te){Me["x-index"]=ye,Te===b.current.name&&(++ye,Be=ye,Pe=!0),++ye,Pe&&Te!==b.current.name&&(ie[Te]=Me,b.current.parent.removeProperty(Te))}),o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),_e&&(se.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:Ce})),Z.parent=null}else Z&&(Z=w()(Z));this.prepareProperty(Z);var me=le(Z),pe=this.current.parent.addProperty(me.name||(0,a.uid)(),me);pe.parent=this.current.parent,pe["x-index"]=Be,this.current.parent.setProperties(ie);var ee=G(pe,Z),ue=u()(ee,2),ge=ue[0],Ee=ue[1];this.emit("insertAdjacent",K()({position:"afterEnd",schema:Ee,wrap:ge,wrapped:me},se))}}}]),Q}();function I(){var Q=(0,P.useContext)(o.SchemaOptionsContext),X=(0,P.useMemo)(function(){return(Q==null?void 0:Q.components)||{}},[Q]),Z=function(J){if(!J)return null;if(typeof J!="string")return J;var se=f()(X,J);return se||console.error('[nocobase]: Component "'.concat(J,'" not found')),se};return Z}function te(){var Q=(0,P.useContext)(d.D),X=Q.designable,Z=Q.setDesignable,b=Q.refresh,J=Q.reset,se=(0,P.useContext)(o.SchemaOptionsContext),q=(0,P.useMemo)(function(){return(se==null?void 0:se.components)||{}},[se]),le=(0,P.useMemo)(function(){return function(){return(0,z.jsx)(z.Fragment,{})}},[]),Ce=(0,R.Z)(),_e=(0,D.gR)(),ye=(0,D.QJ)(),Be=(0,P.useCallback)(function(ge){b==null||b(),Ce(),_e==null||_e(ge),ye==null||ye()},[b,Ce,_e,ye]),Pe=(0,o.useField)(),ie=(0,o.useFieldSchema)(),me=(0,j.LY)(),pe=(0,m.$)(),ee=pe.t,ue=(0,P.useMemo)(function(){return O({t:ee,api:me,refresh:Be,current:ie,model:Pe,appVersion:S.i8})},[ee,me,Be,ie,Pe]);return(0,P.useEffect)(function(){ue.loadAPIClientEvents()},[ue]),{dn:ue,designable:X,reset:J,refresh:Be,setDesignable:Z,DesignableBar:le,findComponent:(0,P.useCallback)(function(ge){var Ee;if(!ge)return null;if(typeof ge!="string")return ge;var Me=f()(q,ge);return(Ee=Me[c.XI])!==null&&Ee!==void 0?Ee:Me},[f()]),on:ue.on.bind(ue),patch:(0,P.useCallback)(function(ge,Ee){var Me=function(Ie){Object.keys(Ie).forEach(function(be){var fe=Ie[be];be==="title"&&(Pe.title=fe,ie.title=fe),be==="x-decorator-props"&&(Pe.decoratorProps||(Pe.decoratorProps={}),ie["x-decorator-props"]||(ie["x-decorator-props"]={}),Object.keys(fe).forEach(function(oe){Pe.decoratorProps[oe]=fe[oe],ie["x-decorator-props"][oe]=fe[oe]})),be==="x-component-props"&&(Pe.componentProps||(Pe.componentProps={}),ie["x-component-props"]||(ie["x-component-props"]={}),Object.keys(fe).forEach(function(oe){Pe.componentProps[oe]=fe[oe],ie["x-component-props"][oe]=fe[oe]}))})};if(typeof ge=="string"){var Te={};return p()(Te,ge,Ee),Me(Te)}Me(ge),Be()},[ue]),shallowMerge:(0,P.useCallback)(function(ge){ue.shallowMerge(ge)},[ue]),deepMerge:(0,P.useCallback)(function(ge){ue.deepMerge(ge)},[ue]),remove:(0,P.useCallback)(function(ge,Ee){ue.remove(ge,Ee)},[ue]),insertAdjacent:(0,P.useCallback)(function(ge,Ee,Me){ue.insertAdjacent(ge,Ee,Me)},[ue]),insertBeforeBegin:(0,P.useCallback)(function(ge){ue.insertBeforeBegin(ge)},[ue]),insertAfterBegin:(0,P.useCallback)(function(ge){ue.insertAfterBegin(ge)},[ue]),insertBeforeEnd:(0,P.useCallback)(function(ge){ue.insertBeforeEnd(ge)},[ue]),insertAfterEnd:(0,P.useCallback)(function(ge){ue.insertAfterEnd(ge)},[ue])}}},98146:function(Ke,ae,e){"use strict";e.d(ae,{e:function(){return C}});var H=e(80844),u=e(84577),k=e(67294),i=e(51159),g=function(){return null};g.isNullComponent=!0;var C=function(){var r=(0,u.ng)(),N=r.designable,v=(0,H.useFieldSchema)(),A=(0,k.useMemo)(function(){return v["x-designer"]||v["x-toolbar"]?v["x-designer"]||v["x-toolbar"]:v["x-settings"]?i.Mf:g},[v]),h=(0,u.Co)(A);return N&&h||g}},9780:function(Ke,ae,e){"use strict";e.d(ae,{w:function(){return T}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=["useProps"],C=function(){return{}},T=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=N.useProps,A=v===void 0?C:v,h=i()(N,g),M=A;typeof A!="function"&&(M=C);var n=M();return u()(u()({},h),n)}},7105:function(Ke,ae,e){"use strict";e.d(ae,{aUM:function(){return k.aU},olz:function(){return k.ol},N0i:function(){return k.N0},fWn:function(){return k.fW},mlL:function(){return k.ml},EIK:function(){return k.EI},$Lt:function(){return k.$L},$b8:function(){return k.$b},HTy:function(){return ai},lkv:function(){return ri},rDu:function(){return Yt},eYL:function(){return k.eY},Rat:function(){return la},oAt:function(){return Wl},E7E:function(){return $l},$SD:function(){return Ti},fUi:function(){return No.fU},QcG:function(){return Ss},MLy:function(){return _o.M},gOu:function(){return Xs},jYG:function(){return pa.jY},PuU:function(){return pa.Pu},smG:function(){return pa.sm},C1I:function(){return k.C1},Ssf:function(){return Es},vTp:function(){return Is},XZJ:function(){return ba},Tt2:function(){return Fs},zH8:function(){return Us},Q5L:function(){return Ns},Pok:function(){return Fi},Vm0:function(){return ks},xI_:function(){return js},Lip:function(){return Rs},WN4:function(){return ji.W},Mtg:function(){return Pa.Mt},iNu:function(){return Pa.iN},zzt:function(){return pt.zz},_bl:function(){return $._b},POi:function(){return Gs},AOY:function(){return _e},izJ:function(){return Hs},LBT:function(){return E.DndContext},IWB:function(){return E.DragHandler},LCt:function(){return E.DraggableContext},FyH:function(){return q.Fy},Nir:function(){return q.Ni},q8U:function(){return q.q8},HGA:function(){return q.HG},QTe:function(){return q.QT},JEX:function(){return q.JE},fAH:function(){return Il},$w$:function(){return q.$w},nBj:function(){return q.nB},Oct:function(){return q.Oc},zdw:function(){return q.zd},CXR:function(){return Dl},BQs:function(){return To.BQ},Hj5:function(){return pr.H},M0b:function(){return Ri},Dnz:function(){return ji.D},wn$:function(){return Fn.wn},GzZ:function(){return Fn.Gz},tJZ:function(){return Fn.tJ},fox:function(){return Fn.fo},VTd:function(){return Fn.VT},XsZ:function(){return Fn.Xs},l09:function(){return b},D_t:function(){return gl.D},WiK:function(){return uo},xJW:function(){return q.xJ},RVL:function(){return $.RV},Bc8:function(){return gt},hG9:function(){return Li},DCh:function(){return Bi},rjZ:function(){return Sa.rj},Cqo:function(){return pi},jg7:function(){return Sa.jg},gsn:function(){return To.gs},$18:function(){return iu},IIB:function(){return To.II},RnZ:function(){return bl},mX2:function(){return To.mX},zDC:function(){return dr.zD},Phs:function(){return To.Ph},aVo:function(){return fi},UGj:function(){return Wi.U},yq5:function(){return Wi.y},v2r:function(){return Hr},HIW:function(){return hu},T3C:function(){return Na},d97:function(){return da.d9},hGv:function(){return ei},tlE:function(){return gu},rop:function(){return yl},gGi:function(){return Cu},DBW:function(){return Oa.D},MBS:function(){return xu.M},pGO:function(){return Pu},Y8K:function(){return Vi},iVT:function(){return To.iV},ODP:function(){return dr.OD},lbb:function(){return dr.lb},b7w:function(){return dr.b7},sUk:function(){return dr.sU},x1j:function(){return k.x1},m1v:function(){return $.m1},glM:function(){return Pt},xZD:function(){return k.xZ},IuH:function(){return Fn.Iu},MkN:function(){return k.Mk},Hof:function(){return Su},n6:function(){return $.n6},DDd:function(){return wu.D},ATq:function(){return $.AT},G0E:function(){return $.G0},a$w:function(){return $.a$},TzZ:function(){return $.Tz},y00:function(){return k.y0},PhF:function(){return Qt},Cqv:function(){return E.ShowFormData},cof:function(){return k.co},bts:function(){return E.Sortable},Fop:function(){return E.SortableContext},TRI:function(){return E.SortableItem},ORg:function(){return E.SortableProvider},TaI:function(){return yu},qHe:function(){return va.q},iA_:function(){return wr},gvM:function(){return Lu},SnY:function(){return Al},ASv:function(){return Ku},bwk:function(){return fa},mQc:function(){return Qa},c__:function(){return Za.c},QZ3:function(){return Re},L39:function(){return pa.L3},feF:function(){return Hu},jII:function(){return ki},mPs:function(){return ku},tgM:function(){return Gu},gqx:function(){return No.gq},Qm7:function(){return No.Qm},_wD:function(){return sa._w},rjl:function(){return sa.rj},SLL:function(){return k.SL},sBv:function(){return k.sB},iTm:function(){return q.iT},BDK:function(){return No.BD},Pls:function(){return pt.Pl},Oxq:function(){return nt},WLi:function(){return ze},$9M:function(){return q.$9},nCn:function(){return Ve},iNG:function(){return Dt},tD8:function(){return tt},pg9:function(){return eo},Ofb:function(){return q.Of},ibf:function(){return ao},WyG:function(){return se},l6$:function(){return u.l6},WGR:function(){return Mt},C$H:function(){return dr.C$},SET:function(){return Vr.SE},cNQ:function(){return dr.cN},NCb:function(){return Wr.NC},I9l:function(){return E.getRenderContent},XQ2:function(){return Wr.XQ},Fxc:function(){return ti},MDU:function(){return Vr.MD},CEH:function(){return Vr.CE},vUN:function(){return k.vU},ZZb:function(){return q.ZZ},tqC:function(){return Vr.tq},elO:function(){return dr.el},CfU:function(){return bi},LPx:function(){return Vr.LP},fY6:function(){return Vr.fY},Vm:function(){return zi},w_o:function(){return Vr.w_},SJF:function(){return Va},_Ko:function(){return za},Mev:function(){return oi},i2K:function(){return vo},WmO:function(){return Fn.Wm},oBi:function(){return pt.oB},hKP:function(){return Wr.hK},DU1:function(){return k.DU},XCj:function(){return k.XC},KyD:function(){return zn.Ky},Vpg:function(){return Ai},lIL:function(){return pt.lI},KxP:function(){return _o.K},hi9:function(){return pt.hi},p27:function(){return k.p2},z9d:function(){return Ml.z9},eJW:function(){return pt.eJ},Cor:function(){return pt.Co},Zmk:function(){return da.Zm},aZq:function(){return pt.aZ},P1D:function(){return Pa.P1},ngQ:function(){return pt.ng},ett:function(){return pt.et},ySm:function(){return pr.y},Zd$:function(){return q.Zd},cLh:function(){return pt.cL},baz:function(){return q.b},fde:function(){return pt.fd},Xdt:function(){return dr.Xd},Cld:function(){return pt.Cl},vH8:function(){return pt.vH},PLH:function(){return Fn.PL},V8t:function(){return Fn.V8},tMk:function(){return Fn.tM},xQm:function(){return Fn.xQ},sRe:function(){return pt.sR},U1u:function(){return Fe},HS$:function(){return k.HS},vBu:function(){return k.vB},QYZ:function(){return k.QY},t9d:function(){return k.t9},Kgy:function(){return Fn.Kg},aJ2:function(){return Fn.aJ},n14:function(){return Sa.n1},DiB:function(){return Sa.Di},l1O:function(){return q.l1},w5o:function(){return q.w5},p3Q:function(){return q.p3},G5e:function(){return q.G5},xj2:function(){return q.xj},rxY:function(){return q.rx},Ils:function(){return dr.Il},zCB:function(){return k.zC},CMh:function(){return ua},FMn:function(){return Rr},T0O:function(){return Zr},a4r:function(){return Oa.a},wNf:function(){return pt.wN},Dmu:function(){return pt.Dm},Bsl:function(){return $.Bs},yKv:function(){return $n.y},fMB:function(){return pt.fM},gCg:function(){return Za.g},eT6:function(){return q.eT},$SN:function(){return No.$S},q4O:function(){return q.q4},ymE:function(){return sa.ym},uqQ:function(){return k.uq},Q3P:function(){return Wr.Q3},K5K:function(){return k.K5}});var H={};e.r(H),e.d(H,{Action:function(){return k.aU},ActionBar:function(){return k.ol},ActionBarProvider:function(){return k.N0},ActionContext:function(){return k.fW},ActionContextNoRerender:function(){return k.ml},ActionContextProvider:function(){return k.EI},ActionDesigner:function(){return k.$L},AfterSuccess:function(){return k.$b},AntdSchemaComponentPlugin:function(){return ai},AntdSchemaComponentProvider:function(){return ri},AppendsTreeSelect:function(){return Yt},AssignedFieldValues:function(){return k.eY},AssociationField:function(){return la},AssociationFieldMode:function(){return Wl},AssociationFieldModeProvider:function(){return $l},AssociationSelect:function(){return Ti},AttachmentList:function(){return No.fU},AutoComplete:function(){return Ss},BackButtonUsedInSubPage:function(){return _o.M},Block:function(){return Xs},BlockItem:function(){return pa.jY},BlockItemCard:function(){return pa.Pu},BlockItemCardContext:function(){return pa.sm},ButtonEditor:function(){return k.C1},CardItem:function(){return Es},Cascader:function(){return Is},Checkbox:function(){return ba},CollectionSelect:function(){return Fs},ColorPicker:function(){return Us},ColorSelect:function(){return Ns},Cron:function(){return Fi},CronSet:function(){return ks},DataSourceCollectionCascader:function(){return js},DataSourceSelect:function(){return Rs},DateFormatCom:function(){return ji.W},DatePicker:function(){return Pa.Mt},DatePickerProvider:function(){return Pa.iN},Details:function(){return Gs},DetailsDesigner:function(){return _e},Divider:function(){return Hs},EditComponent:function(){return q.Fy},EditDefaultValue:function(){return q.Ni},EditDescription:function(){return q.q8},EditOperator:function(){return q.HG},EditPattern:function(){return q.QT},EditRequired:function(){return q.JE},EditSortField:function(){return Il},EditTitle:function(){return q.$w},EditTitleField:function(){return q.nB},EditTooltip:function(){return q.Oc},EditValidationRules:function(){return q.zd},Editable:function(){return Dl},EllipsisWithTooltip:function(){return To.BQ},ErrorFallback:function(){return pr.H},Expand:function(){return Ri},ExpiresRadio:function(){return ji.D},Filter:function(){return Fn.wn},FilterAction:function(){return Fn.Gz},FilterActionContext:function(){return Fn.tJ},FilterContext:function(){return Fn.fo},FilterDynamicComponent:function(){return Fn.VT},FilterLogicContext:function(){return Fn.Xs},Form:function(){return b},FormDialog:function(){return gl.D},FormField:function(){return uo},FormItem:function(){return q.xJ},FormV2:function(){return gt},G2Plot:function(){return Li},G2PlotRenderer:function(){return Bi},Grid:function(){return Sa.rj},GridCard:function(){return pi},GridRowContext:function(){return Sa.jg},HTMLEncode:function(){return To.gs},IconPicker:function(){return iu},Input:function(){return To.II},InputNumber:function(){return bl},InputReadPretty:function(){return To.mX},InputRecordPicker:function(){return dr.zD},Json:function(){return To.Ph},List:function(){return fi},Markdown:function(){return Wi.U},MarkdownReadPretty:function(){return Wi.y},Menu:function(){return Hr},NanoIDInput:function(){return hu},Page:function(){return Na},PagePopups:function(){return da.d9},PageTabs:function(){return ei},Pagination:function(){return gu},Password:function(){return yl},Percent:function(){return Cu},PopupSettingsProvider:function(){return Oa.D},Preview:function(){return xu.M},QuickEdit:function(){return Pu},Radio:function(){return Vi},ReadPretty:function(){return To.iV},ReadPrettyRecordPicker:function(){return dr.OD},RecordPicker:function(){return dr.lb},RecordPickerContext:function(){return dr.b7},RecordPickerProvider:function(){return dr.sU},RefreshDataBlockRequest:function(){return k.x1},RemoteSelect:function(){return Pt},RemoveButton:function(){return k.xZ},RemoveConditionContext:function(){return Fn.Iu},RequestSettings:function(){return k.Mk},RichText:function(){return Su},SecondConFirm:function(){return k.y0},Select:function(){return Qt},SkipValidation:function(){return k.co},Space:function(){return yu},StablePopover:function(){return va.q},Table:function(){return wr},TableBlockDesigner:function(){return Lu},TableField:function(){return Al},TableSelectorDesigner:function(){return Ku},TableV2:function(){return fa},Tabs:function(){return Qa},TabsContextProvider:function(){return Za.c},Templates:function(){return Re},TestDesigner:function(){return pa.L3},TextAreaWithGlobalScope:function(){return Hu},TimePicker:function(){return ki},TreeSelect:function(){return ku},UnixTimestamp:function(){return Gu},Upload:function(){return No.gq},Uploader:function(){return No.Qm},Variable:function(){return sa._w},VariableScopeProvider:function(){return sa.rj},actionSettings:function(){return k.SL},actionSettingsItems:function(){return k.sB},allowAddNew:function(){return q.iT},attachmentFileTypes:function(){return No.BD},defaultFieldNames:function(){return nt},fetchTemplateData:function(){return ze},filterFormItemSettings:function(){return q.$9},findByUid:function(){return Ve},findKeysByUid:function(){return Dt},findMenuItem:function(){return tt},formDetailsSettings:function(){return eo},formItemSettings:function(){return q.Of},formSettings:function(){return ao},formV1Settings:function(){return se},genStyleHook:function(){return u.l6},getCurrentOptions:function(){return Mt},getDatePickerLabels:function(){return dr.C$},getDateRanges:function(){return Vr.SE},getLabelFormatValue:function(){return dr.cN},getPopupPathFromParams:function(){return Wr.NC},getStoredPopupContext:function(){return Wr.XQ},getTabSchema:function(){return ti},handleDateChangeOnForm:function(){return Vr.MD},inferPickerType:function(){return Vr.CE},isBulkEditAction:function(){return k.vU},isFileCollection:function(){return q.ZZ},isMobile:function(){return Vr.tq},isShowFilePicker:function(){return dr.el},isTabPage:function(){return bi},mapDatePicker:function(){return Vr.LP},mapRangePicker:function(){return Vr.fY},mapTimeFormat:function(){return zi},moment2str:function(){return Vr.w_},navigateToTab:function(){return Va},pageSettings:function(){return za},pageTabSettings:function(){return oi},readPrettyFormSettings:function(){return vo},removeNullCondition:function(){return Fn.Wm},storePopupContext:function(){return Wr.hK},useActionBarContext:function(){return k.DU},useActionContext:function(){return k.XC},useAssociationFieldContext:function(){return zn.Ky},useAssociationFieldModeContext:function(){return Ai},useBackButton:function(){return _o.K},useCloseAction:function(){return k.p2},useColumnSchema:function(){return Ml.z9},useCurrentPopupContext:function(){return da.Zm},useDatePickerContext:function(){return Pa.P1},useDownloadLogs:function(){return pr.y},useEnsureOperatorsValid:function(){return q.Zd},useFieldMode:function(){return q.b},useFieldNames:function(){return dr.Xd},useFilterActionProps:function(){return Fn.PL},useFilterFieldOptions:function(){return Fn.V8},useFilterFieldProps:function(){return Fn.tM},useFilterOptions:function(){return Fn.xQ},useFormDataTemplates:function(){return Fe},useGetAriaLabelOfAction:function(){return k.HS},useGetAriaLabelOfDrawer:function(){return k.vB},useGetAriaLabelOfModal:function(){return k.QY},useGetAriaLabelOfPopover:function(){return k.t9},useGetFilterFieldOptions:function(){return Fn.Kg},useGetFilterOptions:function(){return Fn.aJ},useGridContext:function(){return Sa.n1},useGridRowContext:function(){return Sa.Di},useIsAddNewForm:function(){return q.l1},useIsAssociationField:function(){return q.w5},useIsFieldReadPretty:function(){return q.p3},useIsFileField:function(){return q.G5},useIsFormReadPretty:function(){return q.xj},useIsSelectFieldMode:function(){return q.rx},useLabelUiSchema:function(){return dr.Il},useLinkageAction:function(){return k.zC},useMenuDragEnd:function(){return ua},useNocoBaseRoutes:function(){return Rr},useParentRoute:function(){return Zr},usePopupSettings:function(){return Oa.a},useStyles:function(){return $n.y},useTabsContext:function(){return Za.g},useTitleFieldOptions:function(){return q.eT},useUploadStyles:function(){return No.$S},useValidateSchema:function(){return q.q4},useVariableScope:function(){return sa.ym},useZIndexContext:function(){return k.uq},withSearchParams:function(){return Wr.Q3},zIndexContext:function(){return k.K5}});var u=e(46917),k=e(76157),i=e(15009),g=e.n(i),C=e(99289),T=e.n(C),r=e(12444),N=e.n(r),v=e(72004),A=e.n(v),h=e(31996),M=e.n(h),n=e(26037),x=e.n(n),K=e(97857),o=e.n(K),a=e(67294),R=e(31601),E=e(14896),$=e(70993),w=e(89127),L=function(V){return T()(g()().mark(function de(){var ve,he;return g()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.prev=0,De.next=3,this.api.request(V);case 3:return he=De.sent,De.abrupt("return",he==null||(ve=he.data)===null||ve===void 0?void 0:ve.data);case 7:return De.prev=7,De.t0=De.catch(0),De.abrupt("return",[]);case 10:case"end":return De.stop()}},de,this,[[0,7]])}))},f=e(13769),y=e.n(f),p=e(5552),P=e(86201),m=e(80844),j=e(28459),D=e(57953),c=e(12174),d=e(6145),l=e(57105),S=e(51159),z=e(64016),O=e(15195),U=e(23461),t=e(85893),B=["form","children"],G=["form","children","disabled"],Y=["request","effects","initialValue","useValues"],W=function(V){var de=V.form,ve=V.children,he=y()(V,B),xe=(0,m.useField)(),De=(0,m.useFieldSchema)(),je=(0,pt.lI)(de.createVoidField(o()(o()({},xe.props),{},{basePath:""})));return(0,t.jsx)(m.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(m.FormContext.Provider,{value:de,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},he),{},{children:(0,t.jsx)(l.sq,{basePath:je.address,schema:De,onlyRenderProperties:!0})}))})})},I=function(V){return V.children},te=function(V){var de=V.form,ve=V.children,he=V.disabled,xe=y()(V,G),De=(0,m.useField)(),je=(0,m.useFieldSchema)(),$e=(0,pt.lI)(de.createVoidField(o()(o()({},De.props),{},{basePath:""}))),Qe=(0,pt.Co)(je["x-component"],I);return(0,a.useEffect)(function(){de.disabled=he||De.disabled},[he,De.disabled]),(0,t.jsx)(j.ZP,{componentDisabled:he,children:(0,t.jsx)(m.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(m.FormContext.Provider,{value:de,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},xe),{},{children:(0,t.jsx)(m.FieldContext.Provider,{value:$e,children:(0,t.jsx)(Qe,o()(o()({},De.componentProps),{},{children:(0,t.jsx)(l.sq,{basePath:$e.address,schema:je,onlyRenderProperties:!0})}))})}))})})})},Q=function(V){var de=V.request,ve=V.initialValue;return de||function(){return Promise.resolve({data:ve})}},X=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,c.QT)(Q(de),V)},Z=(0,a.createContext)(null);Z.displayName="FormBlockContext";var b=(0,m.observer)(function(ne){var V=ne.request,de=ne.effects,ve=ne.initialValue,he=ne.useValues,xe=he===void 0?X:he,De=y()(ne,Y),je=(0,m.useFieldSchema)(),$e=(0,m.useField)(),Qe=(0,a.useMemo)(function(){return(0,P.createForm)({effects:de})},[]),Ge=xe({uid:je["x-uid"],onSuccess:function(Xe){return T()(g()().mark(function ft(){return g()().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Qe.reset();case 2:Qe.setValues(Xe==null?void 0:Xe.data),Qe.setInitialValues(Xe==null?void 0:Xe.data);case 4:case"end":return at.stop()}},ft)}))()}},ne),Je=(0,a.useContext)(Z);return(0,t.jsx)(Z.Provider,{value:{parent:Je,form:Qe,result:Ge,field:$e,fieldSchema:je},children:(0,t.jsx)(D.Z,{spinning:(Ge==null?void 0:Ge.loading)||!1,children:je["x-decorator"]==="Form"?(0,t.jsx)(te,o()({form:Qe},De)):(0,t.jsx)(W,o()({form:Qe},De))})})},{displayName:"Form"});b.Designer=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)(),xe=(0,U.rE)(),De=xe.componentNamePrefix;return(0,t.jsxs)(S.aN,{template:he,title:ve||de,children:[(0,t.jsx)(z.G,{componentName:"".concat(De,"Form"),collectionName:de}),(0,t.jsx)(S.Z5,{}),(0,t.jsx)(S.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var J=e(5537),se=new J.F5({name:"FormV1Settings",items:[{name:"template",Component:z.G,useComponentProps:function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=(0,U.rE)(),he=ve.componentNamePrefix;return{componentName:"".concat(he,"Form"),collectionName:de}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),q=e(54801),le=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormSettings",template:he,title:ve||de})},Ce=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"ReadPrettyFormSettings",template:he,title:ve||de})},_e=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormDetailsSettings",template:he,title:ve||de})},ye=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"blockSettings:filterForm",template:he,title:ve||de})},Be=e(7340),Pe=e(15503),ie=e(83335),me=e(68230),pe=e(68400),ee=e.n(pe),ue=e(97133),ge=e(84327),Ee=e(9361),Me=e(67174),Te=e(31019),Ae=e(39742),Ie=e(22229),be=e(43321),fe=e(64910),oe=e(9780),F=e(3192),ce=e(94804),Se=e(18686),re=e(5574),Oe=e.n(re),Ne=e(84157),Le=e(42075),Ze=e(34041),xt=e(96486),ut=e.n(xt),We=e(26793),ot=e(32268),dt=e(9783),He=e.n(dt),On=e(52677),Cn=e.n(On),xn=e(3407),un=e(66309),_n=e(96074),nn=e(27484),Mn=e.n(nn),zt=e(44990),Rn=e(8341),Jt=e(87714),pt=e(84577),rn=e(16646),Wn=e(73475),Tn=e(32983),ln=e(67668),mn=e(58812),In=e(96695),Zn=e.n(In),on=e(19632),vt=e.n(on),nt={label:"label",value:"value",color:"color",options:"children"};function Et(ne,V){var de=[];if(!Array.isArray(ne))return de;for(var ve=0;ve<ne.length;ve++){var he=ne[ve][V.options];Array.isArray(he)&&de.push.apply(de,vt()(Et(he,V))),de.push(o()({},ne[ve]))}return de}function Lt(ne,V,de){if(!ne)return[];var ve=[],he=Zn()(de),xe;try{var De=function(){var $e=xe.value,Qe=ne.find(function(Ge){return Ge[V.value]==$e})||{value:$e,label:$e&&$e.toString()};ve.push(Qe)};for(he.s();!(xe=he.n()).done;)De()}catch(je){he.e(je)}finally{he.f()}return ve}function Mt(ne,V,de){var ve=Et(V,de),he=(0,xt.castArray)(ne).map(function(xe){return(0,Ne.isPlainObject)(xe)?xe[de.value]:xe});return Lt(ve,de,he)}var mt=e(25145),St=(0,m.observer)(function(ne){var V=(0,a.useState)(!0),de=Oe()(V,2),ve=de[0],he=de[1],xe=(0,a.useState)([]),De=Oe()(xe,2),je=De[0],$e=De[1],Qe=(0,m.useField)(),Ge=(0,ln.Hy)();return(0,a.useEffect)(function(){var Je,_t=o()(o()({},nt),ne.fieldNames),Xe=Qe.dataSource||ne.options||(Ge==null?void 0:Ge.uiSchema.enum)||[],ft=Mt(Qe.value,Xe,_t);if(!(!(0,ge.isValid)(ne.value)&&!ft.length)&&!((0,P.isArrayField)(Qe)&&(Qe==null||(Je=Qe.value)===null||Je===void 0?void 0:Je.length)===0)){var ht=Qe.value!==null&&ft.map(function(at,It){return(0,t.jsx)(un.Z,{color:at[_t.color],icon:at.icon,children:at[_t.label]},It)});$e(ht),he(!1)}},[Ge==null?void 0:Ge.uiSchema.enum,Qe,Qe.dataSource,Qe.value,ne.fieldNames,ne.options,ne.value]),ve?null:(0,t.jsx)(mn.B,{ellipsis:ne.ellipsis,children:je})},{displayName:"SelectReadPretty"}),Kt=(0,mt.u)(St),Gt=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Vt=["objectValue","loading","value","rawOptions","defaultValue"],Wt=function(V){return!(0,ge.isValid)(V)||Cn()(V)==="object"&&Object.keys(V).length===0},wt=function(V){var de=V.value,ve=V.options,he=V.onChange,xe=V.fieldNames,De=V.mode,je=V.loading,$e=V.rawOptions,Qe=V.defaultValue,Ge=y()(V,Gt),Je=function(Xe){var ft;if(!Wt(Xe)){var ht=(0,ge.toArr)(Xe).filter(function(It){return It}).map(function(It){return(0,Ne.isPlainObject)(It)?It[xe.value]:It}),at=(ft=Mt(ht,ve,xe))===null||ft===void 0?void 0:ft.map(function(It){return{label:It[xe.label],value:It[xe.value]}});return["tags","multiple"].includes(De)||V.multiple?at:at.shift()}};return(0,t.jsx)(Ze.default,o()({role:"button","data-testid":"select-object-".concat(De||"single"),value:Je(de),defaultValue:Je(Qe),allowClear:{clearIcon:(0,t.jsx)(rn.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:je?(0,t.jsx)(D.Z,{}):(0,t.jsx)(Tn.Z,{image:Tn.Z.PRESENTED_IMAGE_SIMPLE}),options:ve,fieldNames:xe,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Xe,ft){var ht;return((ht=ft==null?void 0:ft[xe.label||"label"])!==null&&ht!==void 0?ht:"").includes(Xe)},filterSort:function(Xe,ft){var ht,at;return((ht=Xe==null?void 0:Xe[xe.label||"label"])!==null&&ht!==void 0?ht:"").toLowerCase().localeCompare(((at=ft==null?void 0:ft[xe.label||"label"])!==null&&at!==void 0?at:"").toLowerCase())},onChange:function(Xe){var ft=Mt((0,ge.toArr)(Xe).map(function(ht){return ht.value}),$e||ve,xe);["tags","multiple"].includes(De)||V.multiple?he==null||he(ft):he==null||he(ft.shift()||null)},mode:De,tagRender:function(Xe){return(0,t.jsx)(un.Z,o()(o()({role:"button","aria-label":Xe.label,closeIcon:(0,t.jsx)(Wn.Z,{role:"button","aria-label":"icon-close-tag"})},Xe),{},{children:Xe.label}))},maxTagCount:"responsive"},Ge))},qt=function(V,de){var ve;return((ve=de==null?void 0:de.label)!==null&&ve!==void 0?ve:"").toLowerCase().includes((V||"").toLowerCase())},fn=(0,m.connect)(function(ne){var V=ne.objectValue,de=ne.loading,ve=ne.value,he=ne.rawOptions,xe=ne.defaultValue,De=y()(ne,Vt),je=(0,pt.eJ)(),$e=ne.multiple?"multiple":ne.mode;if($e&&!["multiple","tags"].includes($e)&&($e=void 0),V)return(0,t.jsx)(wt,o()(o()({rawOptions:he},De),{},{defaultValue:xe,value:ve,mode:$e,loading:de}));var Qe=function(Je){return["tags","multiple"].includes(ne.mode)||ne.multiple?Je?(0,ge.toArr)(Je):void 0:Je};return(0,t.jsx)(Ze.default,o()(o()({role:"button","data-testid":"select-".concat($e||"single"),showSearch:!0,filterOption:qt,allowClear:{clearIcon:(0,t.jsx)(rn.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:de?(0,t.jsx)(D.Z,{}):(0,t.jsx)(Tn.Z,{image:Tn.Z.PRESENTED_IMAGE_SIMPLE}),value:Qe(ve),defaultValue:Qe(xe),tagRender:function(Je){return(0,t.jsx)(un.Z,o()(o()({role:"button","aria-label":Je.label,closeIcon:(0,t.jsx)(Wn.Z,{role:"button","aria-label":"icon-close-tag"})},Je),{},{children:Je.label}))}},je(De)),{},{onChange:function(Je){var _t;(_t=ne.onChange)===null||_t===void 0||_t.call(ne,Je===void 0?null:Je)},mode:$e,maxTagCount:"responsive"}))},(0,m.mapProps)({dataSource:"options"},function(ne,V){return o()(o()({},ne),{},{fieldNames:o()(o()({},nt),ne.fieldNames),suffixIcon:V!=null&&V.loading||V!=null&&V.validating?(0,t.jsx)(xn.Z,{}):ne.suffixIcon})}),(0,m.mapReadPretty)(Kt)),Qt=fn;Qt.ReadPretty=Kt;var bn=Qt,hn=e(36586),Nt=function(V,de){return(0,xt.castArray)(V).filter(function(ve){return ve!=null}).map(function(ve){return Cn()(ve)==="object"?ve[de.value]:ve})},vn=(0,m.observer)(function(ne){var V=o()(o()({},nt),ne.fieldNames),de=(0,m.useField)(),ve=(0,m.useFieldSchema)(),he=(0,hn.a)(),xe=(0,k.XC)(),De=xe.snapshot,je=(0,c.QT)(De?T()(g()().mark(function Qe(){return g()().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.abrupt("return",{data:he[ve.name]});case 1:case"end":return Je.stop()}},Qe)})):o()(o()({action:"list"},ne.service),{},{params:{paginate:!1,filter:He()({},V.value,{$in:Nt(de.value,V)})}}),{refreshDeps:[ne.service,de.value]}),$e=je.data;return(0,t.jsx)(Qt.ReadPretty,o()(o()({},ne),{},{options:$e==null?void 0:$e.data}))},{displayName:"ReadPretty"}),En=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],Ot="N/A",qe=(0,Pe.t)((0,m.connect)(function(ne){var V,de,ve=ne.fieldNames,he=ve===void 0?{}:ve,xe=ne.service,De=xe===void 0?{}:xe,je=ne.wait,$e=je===void 0?300:je,Qe=ne.value,Ge=ne.defaultValue,Je=ne.objectValue,_t=ne.manual,Xe=_t===void 0?!0:_t,ft=ne.mapOptions,ht=ne.targetField,at=ne.CustomDropdownRender,It=ne.optionFilter,At=ne.dataSource,pn=ne.toOptionsItem,Pn=pn===void 0?function(yr){return yr}:pn,Ln=ne.popupMatchSelectWidth,Bn=Ln===void 0?!1:Ln,Bt=y()(ne,En),an=(0,zt.FC)(),Qn=(0,Rn.FE)(At||an),po=(0,a.useState)(!1),io=Oe()(po,2),Vn=io[0],Jn=io[1],en=(0,a.useRef)(!1),no=(0,m.useFieldSchema)(),co=((V=no["x-component-props"])===null||V===void 0?void 0:V.addMode)==="quickAdd",oo=(0,d.useCollection_deprecated)(),Xn=oo.getField,ro=(0,a.useRef)(null),jn=(0,d.useCollectionManager_deprecated)(),gn=jn.getCollectionJoinField,qn=jn.getInterface,xo=no["x-collection-field"]||no.name,so=Xn(xo)||gn(xo),mo=ht||(so==null?void 0:so.target)&&(he==null?void 0:he.label)&&gn("".concat(so.target,".").concat(he.label)),Mo=(0,a.useMemo)(function(){if(mo!=null&&mo.interface){var yr,or=qn(mo.interface),Tr=(or==null||(yr=or.filterable)===null||yr===void 0?void 0:yr.operators[0].value)||"$includes";return mo.type==="string"?"$includes":Tr}return"$includes"},[mo]),bo=(0,pt.eJ)(),yo=(0,a.useCallback)(function(yr){try{return yr.filter(function(or){return["number","string"].includes(Cn()(or[he.value]))||!or[he.value]}).map(function(or){var Tr,Fr,Dr=bo(or[he.label]);if(mo!=null&&(Tr=mo.uiSchema)!==null&&Tr!==void 0&&Tr.enum)if(Array.isArray(Dr))Dr=Dr.map(function(Ea,Ja){var Ba=mo.uiSchema.enum.find(function(Tl){return Tl.value===Ea});return Ba?(0,t.jsx)(un.Z,{role:"button",color:Ba.color,style:{marginRight:3},children:(Ba==null?void 0:Ba.label)||Ea},Ja):(0,t.jsx)(un.Z,{role:"button",children:Ea},Ea)}).reverse();else{var oa=mo.uiSchema.enum.find(function(Ea){return Ea.value===Dr});oa&&(Dr=(0,t.jsx)(un.Z,{role:"button",color:oa.color,children:oa.label}))}if((mo==null?void 0:mo.type)==="date"&&(Dr=Mn()(Dr).format("YYYY-MM-DD")),ft){var ya;return ft((ya={},He()(ya,he.label,Dr||Ot),He()(ya,he.value,or[he.value]),ya))}return o()(o()({},or),{},(Fr={},He()(Fr,he.label,Dr||Ot),He()(Fr,he.value,or[he.value]),Fr))}).filter(Boolean)}catch(or){return console.error(or),yr}},[mo==null?void 0:mo.uiSchema,he]),Ho=(0,c.QT)(o()(o()({action:"list"},De),{},{headers:Qn,params:o()(o()({pageSize:200},De==null?void 0:De.params),{},{filter:De==null||(de=De.params)===null||de===void 0?void 0:de.filter})}),o()({manual:Xe,debounceWait:$e},De.defaultParams?{defaultParams:[De.defaultParams]}:{})),ho=Ho.data,Ko=Ho.run,Yo=Ho.loading,lr=(0,a.useMemo)(function(){return JSON.stringify({service:De,fieldNames:he})},[De,he]),br=(0,a.useCallback)(function(){return ro.current&&at?(0,t.jsx)(at,{search:ro.current,callBack:function(){ro.current=null,Jn(!1)}}):null},[ro.current]);(0,a.useEffect)(function(){en.current&&Ko()},[lr]);var ta=function(){var yr=T()(g()().mark(function or(Tr){var Fr;return g()().wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:Ko({filter:(0,Jt.EO)([Tr?He()({},he.label,He()({},Mo,Tr)):{},De==null||(Fr=De.params)===null||Fr===void 0?void 0:Fr.filter])}),ro.current=Tr;case 2:case"end":return oa.stop()}},or)}));return function(Tr){return yr.apply(this,arguments)}}(),na=(0,a.useMemo)(function(){var yr,or=Qe||Ge;if(!(ho!=null&&(yr=ho.data)!==null&&yr!==void 0&&yr.length))return or!=null?Array.isArray(or)?or:[or]:[];var Tr=or!=null&&(Array.isArray(or)?or.map(function(Dr){return o()(o()({},Dr),{},He()({},he.value,Dr[he.value]||Dr))}):[o()(o()({},or),{},He()({},he.value,or[he.value]||or))])||[],Fr=typeof It=="function"?ho.data.filter(It):ho.data;return(0,xt.uniqBy)(Fr.concat(Tr??[]),he.value)},[Qe,Ge,ho==null?void 0:ho.data,he.value,It]),zr=function(or){Jn(or),ro.current=null,or&&Ko(),en.current=!0};return(0,t.jsx)(Qt,o()(o()({open:Vn,popupMatchSelectWidth:Bn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:he,onSearch:ta,onDropdownVisibleChange:zr,objectValue:Je,value:Qe,defaultValue:Ge},Bt),{},{loading:ho?Yo:!0,options:Pn(yo(na)),rawOptions:na,dropdownRender:function(or){var Tr=na.some(function(Fr){return Fr[he.label]===ro.current});return(0,t.jsx)(t.Fragment,{children:co?(0,t.jsxs)(t.Fragment,{children:[!((ho==null?void 0:ho.data.length)===0&&ro!==null&&ro!==void 0&&ro.current)&&or,(ho==null?void 0:ho.data.length)>0&&(ro==null?void 0:ro.current)&&!Tr&&(0,t.jsx)(_n.Z,{style:{margin:0}}),!Tr&&(0,t.jsx)(br,{})]}):or})}}))},(0,m.mapProps)({dataSource:"options"},function(ne,V){var de,ve=(0,m.useFieldSchema)();return o()(o()({},ne),{},{fieldNames:o()(o()(o()(o()({},nt),ne.fieldNames),V.componentProps.fieldNames),(de=ve["x-component-props"])===null||de===void 0?void 0:de.fieldNames),suffixIcon:V!=null&&V.loading||V!=null&&V.validating?(0,t.jsx)(xn.Z,{}):ne.suffixIcon})}),(0,m.mapReadPretty)(vn))),Pt=qe;Pt.ReadPretty=vn;var Rt=null,Fe=function(){var V=(0,m.useFieldSchema)(),de=(0,We.$)(),ve=de.t,he=(0,Be.bz)(),xe=he.duplicateData,De=(0,d.useCollectionManager_deprecated)(),je=De.getCollectionJoinField;if(xe)return xe;var $e=ke(V),Qe=$e.items,Ge=Qe===void 0?[]:Qe,Je=$e.display,_t=Je===void 0?!0:Je;Ge.forEach(function(ht){try{var at;ht.fields=(at=ht.fields)===null||at===void 0?void 0:at.map(function(It){var At=je("".concat(ht.collection,".").concat(It));return At?It:""}).filter(Boolean)}catch(It){(0,Ne.error)(It),ht.fields=[]}});var Xe=[{key:"none",title:ve("None")}].concat(Ge.map(function(ht,at){return o()(o()({key:at},ht),{},{isLeaf:ht.dataId!==null&&ht.dataId!==void 0,titleCollectionField:(ht==null?void 0:ht.titleField)&&je("".concat(ht.collection,".").concat(ht.titleField))})})),ft=Ge.find(function(ht){return ht.default});return{templates:Xe,display:_t,defaultTemplate:ft,enabled:Ge.length>0&&Ge.every(function(ht){return ht.dataId||ht.dataScope})}},Re=a.memo(function(ne){var V=ne.style,de=V===void 0?{}:V,ve=ne.form,he=(0,u.dQ)(),xe=he.token,De=Fe(),je=De.templates,$e=De.display,Qe=De.enabled,Ge=De.defaultTemplate,Je=(0,d.useCollectionManager_deprecated)(),_t=Je.getCollectionJoinField,Xe=(0,ot.ss)(je),ft=(0,a.useState)((Ge==null?void 0:Ge.key)||"none"),ht=Oe()(ft,2),at=ht[0],It=ht[1],At=(0,a.useState)(null),pn=Oe()(At,2),Pn=pn[0],Ln=pn[1],Bn=(0,c.LY)(),Bt=(0,We.$)(),an=Bt.t,Qn=(0,ce.FC)(),po=(0,ce.on)(Qn);(0,a.useEffect)(function(){Qe&&Ge&&ve&&(ve.__template=!0,Ge.key==="duplicate"&&en(Ge.dataId,Ge,po))},[]),(0,a.useEffect)(function(){Xe!=null&&Xe.some(function(co){return co.key===at})||Jn("none")},[Xe]);var io=(0,a.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:xe.colorFillAlter,padding:xe.padding},de)},[de,xe.colorFillAlter]),Vn=(0,a.useMemo)(function(){return{fontSize:xe.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:xe.marginXS}},[xe.fontSize,xe.marginXS]),Jn=(0,a.useCallback)(function(){var co=T()(g()().mark(function oo(Xn){return g()().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:It(Xn),Ln(null),ve==null||ve.reset();case 3:case"end":return jn.stop()}},oo)}));return function(oo){return co.apply(this,arguments)}}(),[]),en=(0,a.useCallback)(function(){var co=T()(g()().mark(function oo(Xn,ro,jn){var gn;return g()().wrap(function(xo){for(;;)switch(xo.prev=xo.next){case 0:gn=o()(o()({},ro),{},{dataId:Xn}),Ln(ro),ze(Bn,gn,jn).then(function(so){return ve&&so&&(ve.reset(),ve.__template=!0,(0,Ne.forEach)(so,function(mo,Mo){if(mo){var bo;ve.values[Mo]=mo,ve==null||(bo=ve.setInitialValuesIn)===null||bo===void 0||bo.call(ve,Mo,mo)}})),so}).catch(function(so){console.error(so)});case 3:case"end":return xo.stop()}},oo)}));return function(oo,Xn,ro){return co.apply(this,arguments)}}(),[]);if(!Qe||!$e)return null;var no=Xe==null?void 0:Xe.find(function(co){return co.key===at});return(0,t.jsx)("div",{style:io,children:(0,t.jsxs)(Le.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:Vn,children:[an("Data template"),": "]}),(0,t.jsx)(Ze.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:Xe,fieldNames:{label:"title",value:"key"},value:at,onChange:Jn}),at!=="none"&&no&&(0,t.jsx)(Pt,{style:{width:220},fieldNames:{label:no==null?void 0:no.titleField,value:"id"},target:no==null?void 0:no.collection,value:Pn,objectValue:!0,service:{resource:no==null?void 0:no.collection,params:{filter:no==null?void 0:no.dataScope}},onChange:function(oo){return en(oo==null?void 0:oo.id,o()(o()({},oo),no),po)},targetField:_t("".concat(no==null?void 0:no.collection,".").concat(no.titleField))})]})})});Re.displayName="NocoBaseFormDataTemplates";function ke(ne){var V=(0,Be.Fi)(ne);return V?ut().cloneDeep(V["x-data-templates"])||{}:{}}function ze(ne,V,de){return et.apply(this,arguments)}function et(){return et=T()(g()().mark(function ne(V,de,ve){return g()().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(!(de.fields.length===0||!de.dataId)){xe.next=2;break}return xe.abrupt("return");case 2:return xe.abrupt("return",V.resource(de.collection,void 0,ve).get({filterByTk:de.dataId,fields:de.fields,isTemplate:!0}).then(function(De){var je;return(je=De.data)===null||je===void 0?void 0:je.data}));case 3:case"end":return xe.stop()}},ne)})),et.apply(this,arguments)}var it=function(){var V,de,ve=(0,Se.aZ)(),he=(0,m.useFieldSchema)(),xe=Ee.Z.useToken(),De=xe.token,je=(0,pt.ng)(),$e=je.designable,Qe=(0,F.gp)()||{},Ge=Qe.heightProps,Je=Ge||{},_t=Je.title,Xe=Je.titleHeight,ft=Fe(),ht=ft.display,at=ft.enabled,It=he.reduceProperties(function(Jn,en){return en["x-component"]==="ActionBar"?en:Jn}),At=Object.keys((It==null?void 0:It.properties)||{}).length>0,pn=he==null||(V=he.parent)===null||V===void 0||(V=V["x-decorator"])===null||V===void 0||(de=V.includes)===null||de===void 0?void 0:de.call(V,"FormBlockProvider"),Pn=At||$e?De.controlHeight+(pn?1*De.marginLG:24+De.paddingLG):De.marginLG,Ln=_t?Xe:0,Bn=(0,ce.xQ)(),Bt=(Bn==null?void 0:Bn.meta)||{},an=Bt.count,Qn=Bt.pageSize,po=an>Qn,io=po?De.controlHeightSM+24:0,Vn=ht&&at?De.controlHeight+2*De.padding+De.margin:0;return ve-Pn-De.paddingLG-Ln-io-Vn},Ft=e(68091),yt,$t,Xt=["form","children"],Ut=["form","children","disabled"],Zt=["form","disabled"],Ht=function(V){var de=V.form,ve=V.children,he=y()(V,Xt),xe=(0,m.useField)(),De=(0,m.useFieldSchema)(),je=Me.Gn===null||Me.Gn===void 0?void 0:(0,Me.Gn)(De),$e=(0,pt.lI)(de.createVoidField(o()(o()({},xe.props),{},{basePath:""}))),Qe=it(),Ge=Ee.Z.useToken(),Je=Ge.token,_t=(je==null?void 0:je["x-component-props"])||{},Xe=_t.layout,ft=Xe===void 0?"vertical":Xe,ht=_t.labelAlign,at=ht===void 0?"left":ht,It=_t.labelWidth,At=It===void 0?120:It,pn=_t.labelWrap,Pn=pn===void 0?!0:pn;return(0,t.jsx)(m.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(m.FormContext.Provider,{value:de,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:ft},he),{},{labelAlign:at,labelWidth:ft==="horizontal"?At:null,labelWrap:Pn,children:(0,t.jsx)("div",{className:(0,ue.css)(yt||(yt=ee()([`
769
+ `])))},Te),{},{component:I.II.JSON}))}var pe=e(57340),ee=(0,u.createContext)([]);ee.displayName="VariableScopeContext";function ue(Te){var Ae=Te.scope,Ie=Ae===void 0?[]:Ae,be=Te.children;return(0,te.jsx)(ee.Provider,{value:Ie,children:be})}function ge(){return(0,u.useContext)(ee)}function Ee(){return null}Ee.Input=(0,H.connect)(Be),Ee.TextArea=(0,k.t)((0,H.connect)(pe.K,(0,H.mapReadPretty)(pe.K.ReadPretty))),Ee.RawTextArea=(0,H.connect)(Pe.f),Ee.JSON=(0,H.connect)(me);var Me=null},88969:function(Ke,ae,e){"use strict";e.d(ae,{m:function(){return E}});var H=e(15009),u=e.n(H),k=e(19632),i=e.n(k),g=e(99289),C=e.n(g),T=e(5574),r=e.n(T),N=e(97133),v=e(38089),A=e(67294),h=e(26793),M=e(46917),n=e(9783),x=e.n(n),K=(0,M.l6)("nb-variable-select",function($){var w=$.componentCls;return x()({},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}}})}),o=K,a=e(2876),R=e(85893);function E($){var w=$.options,L=$.setOptions,f=$.onInsert,y=$.changeOnSelect,p=y===void 0?!1:y,P=$.fieldNames,m=P===void 0?{}:P,j=$.className,D=$.disabled,c=(0,h.$)(),d=c.t,l=(0,A.useState)([]),S=r()(l,2),z=S[0],O=S[1],U=o(),t=U.wrapSSR,B=U.componentCls,G=U.hashId,Y=(0,M.dQ)(),W=Y.token;function I(Q){return te.apply(this,arguments)}function te(){return te=C()(u()().mark(function Q(X){var Z,b;return u()().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(b=X[X.length-1],!(!((Z=b.children)!==null&&Z!==void 0&&Z.length)&&!b.isLeaf&&b.loadChildren)){se.next=5;break}return se.next=4,b.loadChildren(b);case 4:L(function(q){return i()(q)});case 5:case"end":return se.stop()}},Q)})),te.apply(this,arguments)}return t((0,R.jsx)(a.R,{disabled:D,className:(0,N.cx)("x-button",B,G,j),children:(0,R.jsx)(v.Z,{disabled:D,placeholder:d("Select a variable"),value:[],options:w,fieldNames:m,loadData:I,onChange:function(){var X,Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(O(Z),!!Z.length){var J=b[b.length-1];(!(J!=null&&(X=J.children)!==null&&X!==void 0&&X.length)&&!(J!=null&&J.loadChildren)||J!=null&&J.isLeaf)&&f(Z)}},changeOnSelect:p,onClick:function(X){if(!(X.detail!==2||!p))for(var Z=X.target;Z&&Z!==X.currentTarget;Z=Z.parentNode){var b;Array.from((b=Z.classList)!==null&&b!==void 0?b:[]).includes("ant-cascader-menu-item")&&f(z)}},popupClassName:"Cascader-popupClassName",dropdownRender:p?function(Q){return(0,R.jsxs)(R.Fragment,{children:[Q,(0,R.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(W.colorBorder),color:W.colorTextDescription},children:d("Double click to choose entire object")})]})}:null})}))}},2876:function(Ke,ae,e){"use strict";e.d(ae,{R:function(){return C}});var H=e(97857),u=e.n(H),k=e(15867),i=e(67294),g=e(85893),C=(0,i.forwardRef)(function(T,r){var N=(0,i.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,g.jsxs)(k.ZP,u()(u()({"aria-label":"variable-button",ref:r,style:N},T),{},{children:["x",T.children]}))});C.displayName="XButton"},74866:function(Ke,ae,e){"use strict";e.d(ae,{y:function(){return i}});var H=e(9783),u=e.n(H),k=e(46917),i=(0,k.l6)("nb-variable",function(g,C){var T=g.componentCls,r=g.lineWidth,N=g.colorFillQuaternary,v=g.paddingSM-1,A=8,h=A-r,M=g.fontSizeSM,n="".concat(g.lineHeightSM*M,"px"),x=N;return u()({},T,{width:"auto",display:"flex","&.ant-input-group-compact":{display:"flex"},".ant-input-disabled":{".ant-tag":{color:"#bfbfbf",borderColor:"#d9d9d9"}},".ant-input.null-value":{width:"4em",minWidth:"4em"},".ant-formily-item .ant-formily-item-control .ant-formily-item-control-content .ant-formily-item-control-content-component":{lineHeight:"normal"},".ant-formily-item":{marginBottom:0},".ant-input":C!=null&&C.hideVariableButton?{}:{borderTopRightRadius:0,borderBottomRightRadius:0},".ant-tag":{display:"inline-block",height:"auto",marginInlineEnd:g.marginXS,paddingInline:h,fontSize:M,lineHeight:n,whiteSpace:"nowrap",background:x,border:"".concat(g.lineWidth,"px ").concat(g.lineType," ").concat(g.colorBorder),borderRadius:g.borderRadiusSM,opacity:1,transition:"all ".concat(g.motionDurationMid),textAlign:"start"},".ant-tag-blue":{color:g.colorPrimaryText,background:g.colorPrimaryBg,borderColor:g.colorPrimaryBorder},".clear-button":{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:v,zIndex:1,display:"none",width:g.fontSizeIcon,height:g.fontSizeIcon,marginTop:-g.fontSizeIcon/2,color:g.colorTextQuaternary,fontSize:g.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:g.colorBgContainer,cursor:"pointer",opacity:.8,transition:"color ".concat(g.motionDurationMid," ease, opacity ").concat(g.motionDurationSlow," ease"),textRendering:"auto",userSelect:"none","&:before":{display:"block"},"&:hover":{color:g.colorTextTertiary}},".ant-btn":{height:"auto"},".variable":{flex:1}})})},72724:function(Ke,ae,e){"use strict";e.d(ae,{L:function(){return M}});var H=e(97857),u=e.n(H),k=e(5574),i=e.n(k),g=e(23861),C=e(67294),T=e(26793),r=e(21143),N=e(84577),v=e(85893),A=function(x){var K=(0,N.ng)(),o=K.refresh,a=(0,r.useAPIClient)(),R=(0,T.$)(),E=R.t;return(0,C.useCallback)(function($){var w,L,f,y,p,P,m,j,D=$.active,c=$.over,d=D==null||(w=D.data)===null||w===void 0||(w=w.current)===null||w===void 0?void 0:w.schema,l=c==null||(L=c.data)===null||L===void 0||(L=L.current)===null||L===void 0?void 0:L.schema,S=c==null||(f=c.data)===null||f===void 0||(f=f.current)===null||f===void 0?void 0:f.insertAdjacent,z=c==null||(y=c.data)===null||y===void 0||(y=y.current)===null||y===void 0?void 0:y.breakRemoveOn,O=c==null||(p=c.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.wrapSchema,U=c==null||(P=c.data)===null||P===void 0||(P=P.current)===null||P===void 0?void 0:P.onSuccess,t=(m=c==null||(j=c.data)===null||j===void 0||(j=j.current)===null||j===void 0?void 0:j.removeParentsIfNoChildren)!==null&&m!==void 0?m:!0;if(!d||!l){x==null||x($);return}if(d===l){x==null||x($);return}if(d.parent===l&&S==="beforeEnd"){x==null||x($);return}var B=(0,N.Pl)({t:E,api:a,refresh:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=Y.refreshParentSchema,I=W===void 0?!0:W;return o({refreshParentSchema:I})},current:l});if(B.loadAPIClientEvents(),d.parent===l.parent){B.insertBeforeBeginOrAfterEnd(d),x==null||x($);return}if(S){B.insertAdjacent(S,d,{wrap:O,breakRemoveOn:z,removeParentsIfNoChildren:t,onSuccess:U}),x==null||x($);return}},[a,x,o,E])},h=C.memo(function(n){var x=(0,T.$)(),K=x.t,o=(0,C.useState)(!0),a=i()(o,2),R=a[0],E=a[1],$=(0,C.useCallback)(function(L){var f,y=L.active,p=y==null||(f=y.data)===null||f===void 0||(f=f.current)===null||f===void 0?void 0:f.schema;if(E(!!p),n!=null&&n.onDragStart){var P;n==null||(P=n.onDragStart)===null||P===void 0||P.call(n,L)}},[n==null?void 0:n.onDragStart]),w=A(n==null?void 0:n.onDragEnd);return(0,v.jsxs)(g.DndContext,u()(u()({collisionDetection:g.rectIntersection},n),{},{onDragStart:$,onDragEnd:w,children:[(0,v.jsx)(g.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:R&&(0,v.jsx)("span",{style:{whiteSpace:"nowrap"},children:K("Dragging")})}),n.children]}))});h.displayName="InternalDndContext";var M=function(x){return(0,v.jsx)(h,u()({},x))}},14896:function(Ke,ae,e){"use strict";e.r(ae),e.d(ae,{DndContext:function(){return H.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return C},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR},getRenderContent:function(){return T.I9}});var H=e(72724),u=e(20493),k=e(67294),i=e(80844),g=e(85893),C=(0,i.observer)(function(r){var N=r.children,v=(0,i.useForm)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(v.values,null,2)}),N]})}),T=e(7840)},20493:function(Ke,ae,e){"use strict";e.d(ae,{IW:function(){return P},LC:function(){return a},bt:function(){return w},Fo:function(){return R},TR:function(){return p},OR:function(){return E}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(10274),C=e(23861),T=e(97133),r=e(80844),N=e(96486),v=e.n(N),A=e(67294),h=e(46917),M=e(84577),n=e(85893),x=["component","overStyle","style","children","openMode"],K=["schema","id","eid","removeParentsIfNoChildren"],o=["component"],a=(0,A.createContext)(null);a.displayName="DraggableContext";var R=(0,A.createContext)(null);R.displayName="SortableContext";var E=function(j){var D=j.id,c=j.data,d=j.children,l=(0,C.useDraggable)({id:D,data:c}),S=(0,C.useDroppable)({id:D,data:c}),z=(0,A.useMemo)(function(){return{draggable:l,droppable:S}},[l,S]);return(0,n.jsx)(R.Provider,{value:z,children:d})},$=function(j){return new g.C(j).setAlpha(.15).toHex8String()},w=function(j){var D,c,d=j.component,l=j.overStyle,S=j.style,z=j.children,O=j.openMode,U=i()(j,x),t=(0,h.dQ)(),B=t.token,G=(0,A.useContext)(R),Y=G.draggable,W=G.droppable,I=W.isOver,te=W.setNodeRef,Q=u()({},S);return I&&(Y==null||(D=Y.active)===null||D===void 0?void 0:D.id)!==(W==null||(c=W.over)===null||c===void 0?void 0:c.id)&&(Q[d==="a"?"color":"background"]=$(B.colorSettings),Object.assign(Q,l)),A.createElement(d||"div",u()(u()({role:"none"},U),{},{className:(0,T.cx)("nb-sortable-designer",j.className),ref:te,style:Q}),z)},L=function(j){var D=f(j),c=(0,r.useFieldSchema)();return j.schema?u()(u()({},j),{},{id:D}):u()(u()({},j),{},{id:D,schema:c})},f=function(j){var D,c=(0,r.useField)();return j.id?j.id:(D=c.address)===null||D===void 0?void 0:D.toString()},y=(0,r.observer)(function(m){var j=L(m),D=j.schema,c=j.id,d=j.eid,l=j.removeParentsIfNoChildren,S=i()(j,K),z=(0,A.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:D,removeParentsIfNoChildren:l??!0}},[D,l]);return(0,n.jsx)(E,{id:c,data:z,children:(0,n.jsx)(w,u()(u()({id:d},S),{},{children:m.children}))})},{displayName:"InternalSortableItem"}),p=A.memo(function(m){var j=m.component,D=i()(m,o),c=(0,M.ng)(),d=c.designable;return d?(0,n.jsx)(y,u()({},m)):A.createElement(j||"div",v().omit(D,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),m.children)});p.displayName="SortableItem";var P=function(j){var D=(0,A.useContext)(R)||{},c=D.draggable;if(!c)return null;var d=c.attributes,l=c.listeners,S=c.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"}},l),d),{},{role:"none",children:(0,n.jsx)("span",{style:{cursor:"move",fontSize:14},children:j.children})}))})}},7840:function(Ke,ae,e){"use strict";e.d(ae,{I9:function(){return P},Rq:function(){return w},e7:function(){return E},jC:function(){return f},od:function(){return $}});var H=e(97857),u=e.n(H),k=e(15009),i=e.n(k),g=e(9783),C=e.n(g),T=e(5574),r=e.n(T),N=e(99289),v=e.n(N),A=e(52677),h=e.n(A),M=e(84157),n=e(96486),x=e.n(n),K=e(10097),o=e(76690),a=e(65565),R=e(61341),E=function(D,c){var d,l=/{{(.*?)}}/,S=D==null||(d=D.match)===null||d===void 0?void 0:d.call(D,l);if(S){var z=x().get(c,S[1]);return x().isFunction(z)?z():z}else return D};function $(j){if(h()(j)!=="object"||j===null)return null;for(var D in j)if(Object.prototype.hasOwnProperty.call(j,D))return Object.prototype.toString.call(j[D])==="[object Object]"&&j[D]!==null?$(j[D]):{key:D,value:j[D]};return null}var w=function(D){var c=L(D),d=(0,n.findIndex)(c,function(S,z,O){if(S.includes("$")&&z>0)return!0}),l=c.slice(0,d);return l};function L(j){var D=[];function c(d){Object.keys(d).sort().forEach(function(l){D.push(l),d[l]&&h()(d[l])==="object"&&c(d[l])})}return c(j),D}var f=function(){var j=v()(i()().mark(function D(c,d){var l,S,z,O,U,t,B;return i()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return l=c.ruleGroup,S=c.variables,z=c.localVariables,O=c.variableNameOfLeftCondition,U=Object.keys(l)[0]||"$and",t=l[U],B=t.map(function(){var W=v()(i()().mark(function I(te){var Q,X,Z,b,J,se,q,le,Ce,_e,ye,Be,Pe,ie;return i()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!("$and"in te||"$or"in te)){pe.next=4;break}return pe.next=3,f({ruleGroup:te,variables:S,localVariables:z},d);case 3:return pe.abrupt("return",pe.sent);case 4:if(Q=$(te),X=Q==null?void 0:Q.key,X){pe.next=8;break}return pe.abrupt("return",!0);case 8:return Z=y(w(te),O),b=S.parseVariable(Z,z,{doNotRequest:!0}).then(function(ee){var ue=ee.value;return ue}),J=(0,o.cG)(Q==null?void 0:Q.value)?[S.parseVariable(Q==null?void 0:Q.value,z).then(function(ee){var ue=ee.value;return ue}),b]:[Q==null?void 0:Q.value,b],pe.prev=11,pe.next=14,Promise.all(J);case 14:return se=pe.sent,q=r()(se,2),le=q[0],Ce=q[1],pe.next=20,S.getCollectionField(Z,z);case 20:return _e=pe.sent,ye=(0,a.J)(Ce,{targetCollectionField:_e}),Be=(0,a.J)(le,{targetCollectionField:_e}),_e!=null&&_e.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(_e.type)&&ye&&(Pe=(0,R.CE)(Be),ie=(0,M.getPickerFormat)(Pe),ye=(0,M.dayjs)(ye).format(ie)),pe.abrupt("return",d.apply(C()({},X,[ye,Be])));case 27:throw pe.prev=27,pe.t0=pe.catch(11),pe.t0;case 30:case"end":return pe.stop()}},I,null,[[11,27]])}));return function(I){return W.apply(this,arguments)}}()),Y.next=6,Promise.all(B);case 6:if(B=Y.sent,U!=="$and"){Y.next=11;break}return Y.abrupt("return",(0,n.every)(B,function(W){return W}));case 11:return Y.abrupt("return",(0,n.some)(B,function(W){return W}));case 12:case"end":return Y.stop()}},D)}));return function(c,d){return j.apply(this,arguments)}}();function y(j){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(D,".").concat(j.join(".")," }}")}var p=function(D){var c={};return D.map(function(d){c[d.name]=d.ctx}),c};function P(j,D,c,d,l){return m.apply(this,arguments)}function m(){return m=v()(i()().mark(function j(D,c,d,l,S){var z,O,U,t,B,G,Y,W,I;return i()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(!(c&&D==="handlebars")){Q.next=19;break}return Q.prev=1,U=M.Handlebars.compile(c),t=p(l),B=(d==null||(z=d.ctxRef)===null||z===void 0?void 0:z.current)||{},G=B.$nDate,Y={},Object.keys(G||{}).map(function(X){Y[X]=G[X]()}),W=U(u()(u()(u()({},d==null||(O=d.ctxRef)===null||O===void 0?void 0:O.current),t),{},{$nDate:Y})),Q.next=10,S(W);case 10:return Q.abrupt("return",Q.sent);case 13:return Q.prev=13,Q.t0=Q.catch(1),console.log(Q.t0),Q.abrupt("return",c);case 17:Q.next=32;break;case 19:return Q.prev=19,Q.next=22,(0,K.replaceVariableValue)(c,d,l);case 22:return I=Q.sent,Q.next=25,S(I);case 25:return Q.abrupt("return",Q.sent);case 28:return Q.prev=28,Q.t1=Q.catch(19),console.log(Q.t1),Q.abrupt("return",c);case 32:case"end":return Q.stop()}},j,null,[[1,13],[19,28]])})),m.apply(this,arguments)}},25145:function(Ke,ae,e){"use strict";e.d(ae,{u:function(){return w}});var H=e(5574),u=e.n(H),k=e(97857),i=e.n(k),g=e(13769),C=e.n(g),T=e(80844),r=e(96486),N=e(67294),v=e(7105),A=e(75585),h=e(22891),M={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:{}}}}}}}},n=e(94804),x=e(57105),K=e(73691),o=e(85893),a=["WrappedComponent"],R=function(){var f=(0,T.useFieldSchema)(),y=(0,v.ngQ)(),p=y.insertAfterBegin,P=(0,N.useCallback)(function(m){var j=f.reduceProperties(function(D,c){return c["x-component"]==="Action.Container"?c:D},null);j||p((0,r.cloneDeep)(m))},[f,p]);return P},E=function(f){return f["x-component"]==="Action.Container"},$=function(f){var y=f.WrappedComponent,p=C()(f,a),P=(0,T.useFieldSchema)(),m=(0,h.ES)(),j=m.openPopup,D=(0,N.useRef)(!1),c=R(),d=(0,N.useRef)(P);d.current=P;var l=(0,N.useCallback)(function(){return d.current},[]),S=(0,N.useCallback)(function(){P.properties||(c(M),D.current=!0),D.current?(setTimeout(function(){j({customActionSchema:l()})}),D.current=!1):P.properties&&j()},[P,c,j,l]);return(0,o.jsx)("a",{onClick:S,children:(0,o.jsx)(y,i()({},p))})};function w(L){return function(f){var y=(0,N.useState)(!1),p=u()(y,2),P=p[0],m=p[1],j=(0,N.useState)(!1),D=u()(j,2),c=D[0],d=D[1],l=(0,n.Kx)(),S=(0,v.XCj)(),z=(0,T.useField)(),O=(0,T.useFieldSchema)(),U=(O==null?void 0:O["x-component-props"])||{},t=U.enableLink,B=U.openMode,G=U.openSize,Y=(0,h.ES)(),W=Y.visibleWithURL,I=Y.setVisibleWithURL,te=(0,N.useCallback)(function(Z){m==null||m(Z),I==null||I(Z)},[I]),Q=(0,N.useRef)(O);Q.current=O;var X=S.setSubmitted;return t?(0,o.jsx)(A.OA,{visible:!1,children:(0,o.jsxs)(v.EIK,{button:(0,o.jsx)(L,i()({},f)),visible:P||W,setVisible:te,formValueChanged:c,setFormValueChanged:d,openMode:B,openSize:G,containerRefKey:"field-popup",fieldSchema:O,setSubmitted:X,children:[(0,o.jsx)(n.YQ,{name:l.name,children:(0,o.jsx)(v.G0E,{children:(0,o.jsx)(K.Rm,{children:(0,o.jsx)(x.sq,{onlyRenderProperties:!0,basePath:z==null?void 0:z.address,schema:O,filterProperties:E})})})}),(0,o.jsx)($,i()(i()({},f),{},{WrappedComponent:L}))]})}):(0,o.jsx)(L,i()({},f))}}},61736:function(Ke,ae,e){"use strict";e.d(ae,{D:function(){return u}});var H=e(67294),u=(0,H.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(Ke,ae,e){"use strict";e.d(ae,{R:function(){return n}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(86201),C=e(80844),T=e(67294),r=e(47844),N=e(85893),v=["children","form"],A=["children"],h=function(K){var o=K.children,a=K.form,R=i()(K,v),E=(0,T.useContext)(C.SchemaOptionsContext),$=(0,T.useContext)(C.SchemaExpressionScopeContext),w=u()(u()({},E==null?void 0:E.scope),$),L=u()({},E==null?void 0:E.components);return(0,N.jsx)(C.FormProvider,u()(u()({},R),{},{form:a,children:(0,N.jsx)(r.G,{components:L,scope:w,children:o})}))},M=function(K){var o=K.children,a=i()(K,A),R=(0,T.useContext)(C.SchemaOptionsContext),E=(0,T.useContext)(C.SchemaExpressionScopeContext),$=u()(u()({},R==null?void 0:R.scope),E),w=u()({},R==null?void 0:R.components),L=(0,T.useMemo)(function(){return(0,g.createForm)()},[]);return(0,N.jsx)(C.FormProvider,u()(u()({},a),{},{form:L,children:(0,N.jsx)(r.G,{components:w,scope:$,children:o})}))},n=function(K){return K.form?(0,N.jsx)(h,u()({},K)):(0,N.jsx)(M,u()({},K))}},93587:function(Ke,ae,e){"use strict";e.d(ae,{m:function(){return K}});var H=e(97857),u=e.n(H),k=e(86201),i=e(57953),g=e(67294),C=e(54195),T=e(21044),r=e(84577),N=e(44245),v=e(93323),A=e(12174),h=function(a){var R=a.uid,E=a.type,$=E===void 0?"getJsonSchema":E,w=a.onSuccess,L={url:"/uiSchemas:".concat($,"/").concat(R)},f=(0,A.QT)(L,{refreshDeps:[R],onSuccess:function(m){w&&w(m)}}),y=f.data,p=f.loading;return{schema:y==null?void 0:y.data,loading:p}},M=e(85893),n=function(a){return a},x=function(a){var R=a.noForm,E=a.onlyRenderProperties,$=a.hidden,w=a.scope,L=a.uid,f=a.components,y=a.onSuccess,p=a.NotFoundPage,P=a.schemaTransform,m=P===void 0?n:P,j=a.onPageNotFind,D=E?"getProperties":"getJsonSchema",c=(0,g.useMemo)(function(){return(0,k.createForm)()},[L]),d=h({uid:L,type:D,onSuccess:function(t){y&&y(t)}}),l=d.schema,S=d.loading,z=(0,r.Co)(p),O=(0,C.Kk)();return O||S||$?(0,M.jsx)(i.Z,{style:{width:"100%",marginTop:20},delay:T.fw}):!l||Object.keys(l).length===0?(j&&j(),z?(0,M.jsx)(z,{}):null):R?(0,M.jsx)(v.n,{components:f,scope:w,schema:m(l||{})}):(0,M.jsx)(N.R,{form:c,children:(0,M.jsx)(v.n,{components:f,scope:w,schema:m(l||{})})})},K=(0,g.memo)(function(o){return o.uid?(0,M.jsx)(x,u()({},o)):null});K.displayName="RemoteSchemaComponent"},93323:function(Ke,ae,e){"use strict";e.d(ae,{A:function(){return E},n:function(){return L}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=e(9783),C=e.n(g),T=e(80844),r=e(96486),N=e.n(r),v=e(67294),A=e(57105),h=e(61736),M=e(47844),n=e(85893),x=["components","scope","schema","distributed","onChange"],K=["schema"],o=["memoized"];function a(f){return T.Schema.isSchemaInstance(f)?f:f!=null&&f.name?new T.Schema({type:"object",properties:C()({},f.name,f)}):new T.Schema(f)}var R=function(y){return(0,v.useMemo)(function(){return a(y)},[])},E=(0,v.createContext)({onChange:N().noop}),$=(0,v.memo)(function(f){var y=f.components,p=f.scope,P=f.schema,m=f.distributed,j=f.onChange,D=i()(f,x),c=(0,v.useContext)(h.D),d=(0,v.useMemo)(function(){return a(P)},[P]),l=(0,v.useMemo)(function(){return u()(u()({},c),{},{distributed:c.distributed==!1?!1:m,refresh:c.refresh||N().noop})},[c,m]),S=(0,v.useContext)(E),z=S.onChange,O=(0,v.useMemo)(function(){return{onChange:function(){j==null||j(d),z==null||z()}}},[j,z,d]);return(0,n.jsx)(E.Provider,{value:O,children:(0,n.jsx)(h.D.Provider,{value:l,children:(0,n.jsx)(M.G,{inherit:!0,components:y,scope:p,children:(0,n.jsx)(A.sq,u()(u()({},D),{},{schema:d,isUseFormilyField:!0}))})})})});$.displayName="RecursionSchemaComponent";var w=(0,v.memo)(function(f){var y=f.schema,p=i()(f,K),P=R(y);return(0,n.jsx)($,u()(u()({},p),{},{schema:P}))});w.displayName="MemoizedSchemaComponent";var L=(0,v.memo)(function(f){var y=f.memoized,p=i()(f,o);return y?(0,n.jsx)(w,u()({},p)):(0,n.jsx)($,u()({},p))});L.displayName="SchemaComponent"},47844:function(Ke,ae,e){"use strict";e.d(ae,{B:function(){return C},G:function(){return T}});var H=e(97857),u=e.n(H),k=e(80844),i=e(67294),g=e(85893),C=function(){var N=(0,i.useContext)(k.SchemaOptionsContext);return N||{}},T=(0,i.memo)(function(r){var N=r.children,v=C(),A=(0,i.useMemo)(function(){return u()(u()({},v.components),r.components)},[v.components,r.components]),h=(0,i.useMemo)(function(){return u()(u()({},v.scope),r.scope)},[v.scope,r.scope]),M=(0,i.useMemo)(function(){return{scope:h,components:A}},[h,A]);return(0,g.jsx)(k.SchemaOptionsContext.Provider,{value:M,children:(0,g.jsx)(k.SchemaComponentsContext.Provider,{value:A,children:(0,g.jsx)(k.ExpressionScope,{value:h,children:N})})})});T.displayName="SchemaComponentOptions"},70993:function(Ke,ae,e){"use strict";e.d(ae,{_b:function(){return f},RV:function(){return y.R},m1:function(){return p.m},n6:function(){return P.n},AT:function(){return P.A},G0:function(){return m.G},a$:function(){return te},Tz:function(){return W},Bs:function(){return m.B}});var H=e(15009),u=e.n(H),k=e(99289),i=e.n(k),g=e(12444),C=e.n(g),T=e(72004),r=e.n(T),N=e(31996),v=e.n(N),A=e(26037),h=e.n(A),M=e(18205),n=e(83062),x=e(15867),K=e(67294),o=e(49218),a=e(26793),R=e(7105),E=e(68230),$=e(85893),w={backgroundColor:"var(--colorSettings) !important"},L={backgroundColor:"transparent"},f=function(){var Z=(0,R.ngQ)(),b=Z.designable,J=Z.setDesignable,se=(0,a.$)(),q=se.t,le=(0,E.d)(),Ce=le.token,_e=b?w:L;return(0,o.y1)("Ctrl+Shift+U",function(){return J(!b)},[b]),(0,$.jsx)(n.Z,{title:q("UI Editor"),children:(0,$.jsx)(x.ZP,{"data-testid":"ui-editor-button",icon:(0,$.jsx)(M.Z,{style:{color:Ce.colorTextHeaderMenu}}),title:q("UI Editor"),style:_e,onClick:function(){J(!b)}})})},y=e(44245),p=e(93587),P=e(93323),m=e(47844),j=e(97857),D=e.n(j),c=e(5574),d=e.n(c),l=e(86201),S=e(80844),z=e(84327),O=e(96486),U=e.n(O),t=e(61736),B=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(Z).concat((0,z.uid)())};S.Schema.silent(!0);var G={},Y={silent:!0,compile:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=function(){if(Y.silent)try{return new Function("$root","with($root) { return (".concat(Z,"); }"))(b)}catch{return"{{".concat(Z,"}}")}else return new Function("$root","with($root) { return (".concat(Z,"); }"))(b)};return G[Z]?G[Z]:Z.trim().startsWith("t(")?(G[Z]=J(),G[Z]):J()}};S.Schema.registerCompiler(Y.compile);var W=function(Z){var b=Z.designable,J=Z.onDesignableChange,se=Z.components,q=Z.children,le=(0,K.useContext)(t.D),Ce=(0,m.B)(),_e=(0,K.useState)(function(){return(0,z.uid)()}),ye=d()(_e,2),Be=ye[0],Pe=ye[1],ie=(0,K.useMemo)(function(){return Z.form||(0,l.createForm)()},[Be]),me=(0,a.$)(),pe=me.t,ee=(0,K.useMemo)(function(){return D()(D()({},Z.scope),{},{t:pe,randomString:B})},[Z.scope,pe,Ce==null?void 0:Ce.scope]),ue=(0,K.useState)(b),ge=d()(ue,2),Ee=ge[0],Me=ge[1],Te=(0,K.useMemo)(function(){return typeof b=="boolean"?b:Ee},[b,Ee,le.designable]),Ae=(0,K.useMemo)(function(){return function(fe){typeof Te!="boolean"&&Me(fe),J==null||J(fe)}},[Te,J]),Ie=(0,K.useCallback)(function(){Pe((0,z.uid)())},[]),be=(0,K.useMemo)(function(){return{scope:ee,components:se,reset:Ie,refresh:U().noop,designable:Te,setDesignable:Ae}},[se,Te,Ie,ee,Ae]);return(0,$.jsx)(t.D.Provider,{value:be,children:(0,$.jsx)(S.FormProvider,{form:ie,children:(0,$.jsx)(m.G,{inherit:!0,scope:ee,components:se,children:q})})})};W.displayName="SchemaComponentProvider";var I=e(31601),te=function(X){v()(b,X);var Z=h()(b);function b(){return C()(this,b),Z.apply(this,arguments)}return r()(b,[{key:"load",value:function(){var J=i()(u()().mark(function q(){return u()().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:this.addComponents();case 1:case"end":return Ce.stop()}},q,this)}));function se(){return J.apply(this,arguments)}return se}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:f})}}]),b}(I.S),Q=null},84577:function(Ke,ae,e){"use strict";e.d(ae,{zz:function(){return T.zz},Pl:function(){return T.Pl},oB:function(){return T.oB},lI:function(){return u},hi:function(){return $.hi},eJ:function(){return k.e},Co:function(){return C},aZ:function(){return $.aZ},ng:function(){return T.ng},et:function(){return r.e},cL:function(){return K},fd:function(){return w},Cl:function(){return A},vH:function(){return R},sR:function(){return T.sR},wN:function(){return E.w},Dm:function(){return M},fM:function(){return $.fM}});var H=e(67294),u=function(f){var y=(0,H.useRef)(null);return(0,H.useEffect)(function(){return y.current&&f!==y.current&&y.current.onUnmount(),y.current=f,f.onMount(),function(){f.onUnmount()}},[f]),f},k=e(96365),i=e(80844),g=e(96486),C=function(f,y){var p=(0,H.useContext)(i.SchemaOptionsContext),P=p.components;return f?typeof f!="string"?f:(0,g.get)(P,f)||y:y},T=e(94516),r=e(98146),N=e(97857),v=e.n(N),A=function(f){var y=(0,H.useContext)(i.SchemaOptionsContext),p=(0,H.useContext)(i.SchemaExpressionScopeContext),P=(0,H.useRef)();return P.current=p,f.toFieldProps(v()(v()({},y),{},{get scope(){return v()(v()({},y.scope),P.current)}}))},h=e(61736);function M(){return(0,H.useContext)(h.D)}var n=e(26793),x=e(6145),K=function(){var f,y=(0,x.useCollectionManager_deprecated)(),p=y.getCollectionJoinField,P=y.getCollection,m=(0,i.useFieldSchema)(),j=(0,x.useCollection_deprecated)(),D=j.getField,c=D(m.name)||p(m["x-collection-field"]),d=(0,n.$)(),l=d.t,S=((f=m["x-component-props"])===null||f===void 0?void 0:f.fieldNames)||{},z=S.label,O=(0,H.useMemo)(function(){if(!(!c||!(c!=null&&c.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(c.interface)){var U=P(c.target);if((U==null?void 0:U.template)==="file")return[{label:l("Record picker"),value:"CollectionField"},{label:l("Select"),value:"AssociationSelect"}];switch(c.interface){case"o2m":return[{label:l("Record picker"),value:"CollectionField"},{label:l("Subtable"),value:"TableField"},{label:l("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:l("Record picker"),value:"CollectionField"},{label:l("Select"),value:"AssociationSelect"}];default:return[{label:l("Record picker"),value:"CollectionField"},{label:l("Subform"),value:"FormField"},{label:l("Select"),value:"AssociationSelect"}]}}},[l,c==null?void 0:c.interface,z]);return O},o=e(35746),a=e(58837),R=function(){var f,y=(0,i.useField)(),p=(0,i.useFieldSchema)(),P=(0,a.Kx)(),m=(0,o.d9)(),j=(P==null?void 0:P.getField(p.name))||(m==null?void 0:m.getCollectionField(p["x-collection-field"])),D=(0,k.e)();(0,H.useEffect)(function(){if(!(y!=null&&y.title)){var c;y.title=D(j==null||(c=j.uiSchema)===null||c===void 0?void 0:c.title)}},[j==null||(f=j.uiSchema)===null||f===void 0?void 0:f.title])},E=e(9780),$=e(18686),w=function(f){var y,p=(0,n.$)(),P=p.t,m=(0,x.useCollectionManager_deprecated)(),j=m.getCollectionJoinField,D=m.getCollection,c=(0,i.useFieldSchema)(),d=(f==null?void 0:f.fieldSchema)||c,l=(0,i.useField)(),S=(0,i.useForm)(),z=(d==null?void 0:d["x-read-pretty"])||l.readPretty||S.readPretty,O=f==null?void 0:f.fieldSchema,U=(0,x.useCollection_deprecated)(),t=U.getField,B=(f==null?void 0:f.collectionField)||t(d.name)||j(d["x-collection-field"]),G=((y=d["x-component-props"])===null||y===void 0?void 0:y.fieldNames)||{},Y=G.label,W=(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 I=D(B.target);if((I==null?void 0:I.template)==="file")return z?[{label:P("Title"),value:"Select"},{label:P("File manager"),value:"FileManager"},{label:P("Tag"),value:"Tag"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},{label:P("File manager"),value:"FileManager"}];if((I==null?void 0:I.template)==="tree"&&["m2m","o2m","m2o"].includes(B.interface))return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"},!O&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&["m2m","o2m"].includes(B.interface)&&{label:P("Sub-table"),value:"SubTable"},!O&&{label:P("Cascade Select"),value:"CascadeSelect"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];switch(B.interface){case"o2m":return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-table"),value:"SubTable"},!O&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"},!O&&{label:P("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"},!O&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-table"),value:"SubTable"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];default:return z?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!O&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!O&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}]}}},[P,B==null?void 0:B.interface,Y]);return(W||[]).filter(Boolean)}},18686:function(Ke,ae,e){"use strict";e.d(ae,{aZ:function(){return L},fM:function(){return y},hi:function(){return f}});var H=e(5574),u=e.n(H),k=e(97857),i=e.n(k),g=e(80844),C=e(83204),T=e(9361),r=e(96486),N=e.n(r),v=e(67294),A=e(89250),h=e(7105),M=e(21143),n=e(10097),x=e(1892),K=e(28561),o=function(m,j,D,c,d){return d.includes("/popups/")?2*c.paddingContentVertical+22+c.paddingPageVertical:m?c.paddingContentHorizontalLG:D?j?c.controlPaddingHorizontal+3*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.paddingContentHorizontalLG+12:j?c.paddingSM+c.controlHeight+c.marginXS+2*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.controlHeight+c.marginXS+(c.paddingXXS+2)*2+c.paddingContentHorizontalLG},a=function(m){var j=T.Z.useToken(),D=j.token,c=(0,h.ngQ)(),d=c.designable,l=(0,n.useBlockHeightProps)(),S=l.heightProps,z=(0,A.useLocation)(),O=m||S||{},U=O.disablePageHeader,t=O.enablePageTabs,B=O.hidePageTitle,G=D.sizeXXL-2,Y=d?D.controlHeight+2*D.paddingContentHorizontalLG:1*D.paddingContentHorizontalLG,W=o(U,t,B,D,z.pathname);return G+W+Y},R=function(){var m=T.Z.useToken(),j=m.token,D=(0,h.ngQ)(),c=D.designable,d=j.paddingContentVerticalLG+j.margin+2*j.paddingContentVertical+24,l=c?j.controlHeight+2*j.paddingContentHorizontalLG:1*j.paddingContentHorizontalLG;return d+l},E=function(m){var j=(0,g.useFieldSchema)(),D=p(j),c=a(m),d=R();return D?d:c},$=["users_jobs","approvals","approvalRecords"],w=function(){var m,j=T.Z.useToken(),D=j.token,c=(0,n.useBlockHeightProps)(),d=c.heightProps,l=(0,x.Si)(),S=l.heightProps,z=(0,h.ngQ)(),O=z.designable,U=(0,g.useFieldSchema)(),t=S||d,B=d.titleHeight,G=E(t),Y=(0,M.useCollection)(),W=Y.name,I=t.heightMode,te=t.height,Q=t.title;if(!(!(t!=null&&t.heightMode)||I===K.j.DEFAULT)){var X=Object.keys(((m=U.parent.properties.actions)===null||m===void 0?void 0:m.properties)||{}).length>0,Z=D.controlHeight+D.padding+D.marginLG,b=X||O?D.controlHeight+2*D.marginLG:D.marginLG,J=(O&&!$.includes(W)?D.controlHeight:22)+2*D.padding+1,se=Q?B:0;return I===K.j.FULL_HEIGHT?window.innerHeight-G-se-J-b-Z:te-se-b-J-Z}},L=function(m){var j=(0,n.useBlockHeightProps)(),D=j.heightProps,c=E(),d=D||{},l=d.heightMode,S=d.height,z=d.title,O=d.titleHeight,U=z?O:0;if(!(!(D!=null&&D.heightMode)||l===K.j.DEFAULT)){if(l===K.j.FULL_HEIGHT){var t=window.innerHeight-c;return console.log(t),m!=null&&m.removeBlockHeaderHeight&&(t=t-U),m!=null&&m.innerExtraHeight&&(t=t-m.innerExtraHeight),t}return S}},f=function(){var m=(0,g.useFieldSchema)(),j=(0,v.useMemo)(function(){return(0,n.getPageSchema)(m)},[]),D=(j==null?void 0:j["x-component-props"])||{},c=D.disablePageHeader,d=D.enablePageTabs,l=D.hidePageTitle,S=i()(i()({},m==null?void 0:m["x-component-props"]),{},{disablePageHeader:c,enablePageTabs:d,hidePageTitle:l}),z=E(S),O=S||{},U=O.heightMode,t=O.height;if(!(!(S!=null&&S.heightMode)||U===K.j.DEFAULT))return U===K.j.FULL_HEIGHT?window.innerHeight-z:t},y=function(){var m=(0,v.useState)(),j=u()(m,2),D=j[0],c=j[1],d=(0,v.useRef)(null),l=w(),S=(0,v.useCallback)((0,r.debounce)(function(){var O;if(d.current){var U=d.current.getBoundingClientRect(),t=(O=d.current.querySelector(".ant-table"))===null||O===void 0?void 0:O.getBoundingClientRect();t&&c(U.width)}},100),[l]),z=(0,v.useCallback)(function(O){d.current=O&&O.children?O.children[0]:null,S()},[S]);return(0,C.Z)("resize",S),{height:l,width:D,tableSizeRefCallback:z}},p=function P(m){if(!m)return null;if(m["x-component"]==="Action.Container"){var j;return(m==null||(j=m.parent["x-component-props"])===null||j===void 0?void 0:j.openMode)!=="page"}return P(m.parent)}},96365:function(Ke,ae,e){"use strict";e.d(ae,{e:function(){return N}});var H=e(97857),u=e.n(H),k=e(52677),i=e.n(k),g=e(80844),C=e(67294),T={},r=function(A){var h=/{{.*?}}/g;return h.test(A)},N=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},h=A.noCache,M=(0,C.useContext)(g.SchemaOptionsContext),n=(0,C.useContext)(g.SchemaExpressionScopeContext);return function(x,K){var o=!1,a;if(typeof x=="string"&&x.startsWith("{{")&&(o=!0,a=x),x&&i()(x)==="object"&&!(0,C.isValidElement)(x)){try{a=JSON.stringify(x)}catch(E){return console.warn("Failed to stringify:",E),x}if(T[a])return T[a];o=r(a)}if(Array.isArray(x)){try{a=JSON.stringify(x)}catch(E){return console.warn("Failed to stringify:",E),x}if(T[a])return T[a];o=r(a)}if(o){var R=u()(u()(u()({},M.scope),n),K);if(!a)return g.Schema.compile(x,R);try{return h?g.Schema.compile(x,R):(T[a]=T[a]||g.Schema.compile(x,R),T[a])}catch(E){return console.log("useCompile error",x,E),g.Schema.compile(x,R)}}return x}}},94516:function(Ke,ae,e){"use strict";e.d(ae,{zz:function(){return W},Pl:function(){return O},oB:function(){return G},ng:function(){return te},sR:function(){return I}});var H=e(5574),u=e.n(H),k=e(19632),i=e.n(k),g=e(15009),C=e.n(g),T=e(99289),r=e.n(T),N=e(12444),v=e.n(N),A=e(72004),h=e.n(A),M=e(9783),n=e.n(M),x=e(97857),K=e.n(x),o=e(80844),a=e(84327),R=e(90105),E=e(45360),$=e(50361),w=e.n($),L=e(27361),f=e.n(L),y=e(36968),p=e.n(y),P=e(67294),m=e(26793),j=e(12174),D=e(57105),c=e(98902),d=e(61736);function l(Q,X){if(Q)return Q["x-app-version"]||(Q["x-app-version"]=X),Object.keys(Q.properties||{}).forEach(function(Z){var b;l((b=Q.properties)===null||b===void 0?void 0:b[Z],X)}),Q}var S=JSON.parse('{"i8":"1.6.0-beta.14"}'),z=e(85893);function O(Q){return new W(Q)}var U=function Q(X){X&&(X["x-uid"]||(X["x-uid"]=(0,a.uid)()),Object.keys(X.properties||{}).forEach(function(Z){Q(X.properties[Z])}))},t=function(X){return X},B=function(X,Z){if(!(!X||!Z)){for(var b in Z)if(Object.prototype.hasOwnProperty.call(Z,b)){var J=Z[b];if(J!==(X==null?void 0:X[b]))return!1}return!0}},G=function(X,Z){if(X["x-uid"]&&X["x-uid"]===Z["x-uid"])return[null,X.toJSON()];var b=X.toJSON(),J=K()(K()({},b),{},{properties:{}}),se=null,q=function le(Ce,_e){Object.keys(Ce||{}).forEach(function(ye){var Be=Ce[ye];if(Be["x-uid"]===Z["x-uid"]){se=Ce[ye];return}else _e.properties[ye]=K()(K()({},Be),{},{properties:{}}),le(Be==null?void 0:Be.properties,_e.properties[ye])})};return q(b.properties,J),[J,se]},Y=function(X){return X},W=function(){function Q(X){v()(this,Q),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=X,this.current=X.current,this.appVersion=X.appVersion}return h()(Q,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var Z=this,b=this.options,J=b.api,se=b.t,q=se===void 0?Y:se;if(J){var le=function(_e){if(!_e)return[];var ye=Object.values(_e.properties).length,Be=[];return _e.mapProperties(function(Pe){Pe["x-component-props"]=Pe["x-component-props"]||{},Pe["x-component-props"].width=100/ye,Pe["x-uid"]&&Be.push({"x-uid":Pe["x-uid"],"x-component-props":Pe["x-component-props"]})}),_e["x-uid"]&&Be.length?Be:[]};this.on("insertAdjacent",function(){var Ce=r()(C()().mark(function _e(ye){var Be,Pe,ie,me,pe,ee,ue,ge,Ee,Me;return C()().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Pe=ye.onSuccess,ie=ye.current,me=ye.position,pe=ye.schema,ee=ye.wrap,ue=ye.wrapped,ge=ye.removed,Ee=[],(ue==null?void 0:ue["x-component"])==="Grid.Col"&&(Ee=Ee.concat(le(ue.parent))),(ge==null?void 0:ge["x-component"])==="Grid.Col"&&(Ee=Ee.concat(le(ge.parent))),Z.refresh(),ie["x-uid"]){Ae.next=7;break}return Ae.abrupt("return");case 7:return Ae.next=9,J.request({url:"/uiSchemas:insertAdjacent/".concat(ie["x-uid"],"?position=").concat(me),method:"post",data:{schema:l(pe,Z.appVersion),wrap:ee}});case 9:if(Me=Ae.sent,!Ee.length){Ae.next=13;break}return Ae.next=13,J.request({url:"/uiSchemas:batchPatch",method:"post",data:Ee});case 13:if(!(ge!=null&&ge["x-uid"])){Ae.next=16;break}return Ae.next=16,J.request({url:"/uiSchemas:remove/".concat(ge["x-uid"]),method:"post"});case 16:Pe==null||Pe(Me==null||(Be=Me.data)===null||Be===void 0?void 0:Be.data),E.ZP.success(q("Saved successfully"),.2);case 18:case"end":return Ae.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("patch",function(){var Ce=r()(C()().mark(function _e(ye){var Be;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(Be=ye.schema,Z.refresh(),Be!=null&&Be["x-uid"]){ie.next=4;break}return ie.abrupt("return");case 4:return ie.next=6,J.request({url:"/uiSchemas:patch",method:"post",data:K()({},Be)});case 6:E.ZP.success(q("Saved successfully"),.2);case 7:case"end":return ie.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var Ce=r()(C()().mark(function _e(ye){var Be;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(Be=ye.schema,Be!=null&&Be["x-uid"]){ie.next=3;break}return ie.abrupt("return");case 3:return ie.next=5,J.request({url:"/uiSchemas:initializeActionContext",method:"post",data:K()({},Be)});case 5:case"end":return ie.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("batchPatch",function(){var Ce=r()(C()().mark(function _e(ye){var Be;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return Be=ye.schemas,Z.refresh(),ie.next=4,J.request({url:"/uiSchemas:batchPatch",method:"post",data:Be});case 4:E.ZP.success(q("Saved successfully"),.2);case 5:case"end":return ie.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}()),this.on("remove",function(){var Ce=r()(C()().mark(function _e(ye){var Be,Pe;return C()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(Be=ye.removed,Pe=[],(Be==null?void 0:Be["x-component"])==="Grid.Col"&&(Pe=le(Be.parent)),Z.refresh(),Be!=null&&Be["x-uid"]){me.next=6;break}return me.abrupt("return");case 6:return me.next=8,J.request({url:"/uiSchemas:remove/".concat(Be["x-uid"]),method:"post"});case 8:if(!Pe.length){me.next=11;break}return me.next=11,J.request({url:"/uiSchemas:batchPatch",method:"post",data:Pe});case 11:E.ZP.success(q("Saved successfully"),.2);case 12:case"end":return me.stop()}},_e)}));return function(_e){return Ce.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(Z){Z.type||(Z.type="void"),Z.name||(Z.name=(0,a.uid)()),this.current["x-uid"]&&U(Z)}},{key:"on",value:function(Z,b){this.events[Z]||(this.events[Z]=[]),this.events[Z].push(b)}},{key:"emit",value:function(){var X=r()(C()().mark(function b(J){var se=this,q,le,Ce,_e,ye,Be=arguments;return C()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(this.events[J]){ie.next=2;break}return ie.abrupt("return");case 2:for(q=Be.length,le=new Array(q>1?q-1:0),Ce=1;Ce<q;Ce++)le[Ce-1]=Be[Ce];return _e=le[0],ye=le.slice(1),ie.abrupt("return",Promise.all(this.events[J].map(function(me){return me.bind(se).apply(void 0,[K()({current:se.current},_e)].concat(i()(ye)))})));case 5:case"end":return ie.stop()}},b,this)}));function Z(b){return X.apply(this,arguments)}return Z}()},{key:"parentsIn",value:function(Z){if(!Z||!o.Schema.isSchemaInstance(Z))return!1;for(var b=this.current;(J=b)!==null&&J!==void 0&&J.parent;){var J;if(b.parent===Z)return!0;b=b.parent}return!1}},{key:"refresh",value:function(Z){var b=this.options.refresh;return b==null?void 0:b(Z)}},{key:"deepMerge",value:function(Z){var b=this,J={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"},se={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Z).forEach(function(q){J[q]?(b.current[q]=Z[q],b.updateModel(J[q],Z[q])):se[q]?Object.keys(Z[q]).forEach(function(le){p()(b.current,[q,le],Z[q][le]),b.updateModel([se[q],le],Z[q][le])}):b.current[q]=Z[q]}),this.emit("patch",{schema:Z})}},{key:"getSchemaAttribute",value:function(Z,b){return f()(this.current,Z,b)}},{key:"shallowMerge",value:function(Z){var b=this,J={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(Z).forEach(function(se){b.current[se]=Z[se],J[se]&&b.updateModel(J[se],Z[se])}),this.emit("patch",{schema:Z})}},{key:"updateModel",value:function(Z,b){var J=function(q){p()(q,Z,b)};this.model&&J(this.model),this.query&&this.query.take(J)}},{key:"insertAdjacent",value:function(Z,b){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(Z){case"beforeBegin":return this.insertBeforeBegin(b,J);case"afterBegin":return this.insertAfterBegin(b,J);case"beforeEnd":return this.insertBeforeEnd(b,J);case"afterEnd":return this.insertAfterEnd(b,J)}}},{key:"recursiveRemoveIfNoChildren",value:function(Z,b){if(Z){for(var J=Z,se,q=b==null?void 0:b.breakRemoveOn;J;){if(typeof q=="function"){if(q(J))break}else if(B(J,q))break;var le=Object.keys(J.properties||{}).length;if(le>0)break;J.parent&&(se=J.parent.removeProperty(J.name)),J=J.parent}return se}}},{key:"remove",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=b.breakRemoveOn,se=b.removeParentsIfNoChildren,q=Z||this.current,le=q.parent.removeProperty(q.name);if(se){var Ce=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:J});Ce&&(le=Ce)}return this.emit("remove",{removed:le})}},{key:"removeWithoutEmit",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=b.breakRemoveOn,se=b.removeParentsIfNoChildren,q=Z||this.current,le=q.parent.removeProperty(q.name);if(se){var Ce=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:J});Ce&&(le=Ce)}return le}},{key:"insertBeforeBeginOrAfterEnd",value:function(Z){var b=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)&&o.Schema.isSchemaInstance(Z)&&this.current.parent===Z.parent){var se=0,q=0;return this.current.parent.mapProperties(function(le,Ce,_e){b.current.name===Ce&&(q=_e),Z.name===Ce&&(se=_e)}),se>q?this.insertBeforeBegin(Z,J):this.insertAfterEnd(Z,J)}}},{key:"insertBeforeBegin",value:function(Z){var b=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var se={onSuccess:J.onSuccess},q=J.wrap,le=q===void 0?t:q,Ce=J.breakRemoveOn,_e=J.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),_e&&(se.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:Ce}))}else Z&&(Z=w()(Z));var ye={},Be=!1,Pe=0,ie=0;this.current.parent.mapProperties(function(Me,Te){Te===b.current.name&&(ie=Pe,Be=!0,++Pe),Me["x-index"]=Pe,++Pe,Be&&(ye[Te]=Me,b.current.parent.removeProperty(Te))}),this.prepareProperty(Z);var me=le(Z),pe=this.current.parent.addProperty(me.name||(0,a.uid)(),me);pe["x-index"]=ie,pe.parent=this.current.parent,this.current.parent.setProperties(ye);var ee=G(pe,Z),ue=u()(ee,2),ge=ue[0],Ee=ue[1];this.emit("insertAdjacent",K()({position:"beforeBegin",schema:Ee,wrapped:me,wrap:ge},se))}}},{key:"insertAfterBegin",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var J={onSuccess:b.onSuccess},se=b.wrap,q=se===void 0?t:se,le=b.breakRemoveOn,Ce=b.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),Ce&&(J.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:le}))}else Z&&(Z=w()(Z));var _e={},ye=1;this.current.mapProperties(function(ue,ge){ue["x-index"]=ye,++ye,_e[ge]=ue}),this.current.properties={},this.prepareProperty(Z);var Be=q(Z),Pe=this.current.addProperty(Be.name||(0,a.uid)(),Be);Pe["x-index"]=0,Pe.parent=this.current,this.current.setProperties(_e);var ie=G(Pe,Z),me=u()(ie,2),pe=me[0],ee=me[1];this.emit("insertAdjacent",K()({position:"afterBegin",schema:ee,wrap:pe,wrapped:Be},J))}}},{key:"insertBeforeEnd",value:function(Z){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){delete Z["x-index"];var J={onSuccess:b.onSuccess},se=b.wrap,q=se===void 0?t:se,le=b.breakRemoveOn,Ce=b.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),Ce&&(J.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:le}))}else Z&&(Z=w()(Z));this.prepareProperty(Z);var _e=q(Z),ye=this.current.addProperty(_e.name||(0,a.uid)(),_e);ye.parent=this.current;var Be=G(ye,Z),Pe=u()(Be,2),ie=Pe[0],me=Pe[1];return this.emit("insertAdjacent",K()({position:"beforeEnd",schema:me,wrap:ie,wrapped:_e},J))}}},{key:"insertAfterEnd",value:function(Z){var b=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var se={onSuccess:J==null?void 0:J.onSuccess},q=J.wrap,le=q===void 0?t:q,Ce=J.breakRemoveOn,_e=J.removeParentsIfNoChildren,ye=0,Be=0,Pe=!1,ie={};if(this.current.parent.mapProperties(function(Me,Te){Me["x-index"]=ye,Te===b.current.name&&(++ye,Be=ye,Pe=!0),++ye,Pe&&Te!==b.current.name&&(ie[Te]=Me,b.current.parent.removeProperty(Te))}),o.Schema.isSchemaInstance(Z)){if(this.parentsIn(Z)){this.emit("error",{code:"parent_is_not_allowed",schema:Z});return}Z.parent.removeProperty(Z.name),_e&&(se.removed=this.recursiveRemoveIfNoChildren(Z.parent,{breakRemoveOn:Ce})),Z.parent=null}else Z&&(Z=w()(Z));this.prepareProperty(Z);var me=le(Z),pe=this.current.parent.addProperty(me.name||(0,a.uid)(),me);pe.parent=this.current.parent,pe["x-index"]=Be,this.current.parent.setProperties(ie);var ee=G(pe,Z),ue=u()(ee,2),ge=ue[0],Ee=ue[1];this.emit("insertAdjacent",K()({position:"afterEnd",schema:Ee,wrap:ge,wrapped:me},se))}}}]),Q}();function I(){var Q=(0,P.useContext)(o.SchemaOptionsContext),X=(0,P.useMemo)(function(){return(Q==null?void 0:Q.components)||{}},[Q]),Z=function(J){if(!J)return null;if(typeof J!="string")return J;var se=f()(X,J);return se||console.error('[nocobase]: Component "'.concat(J,'" not found')),se};return Z}function te(){var Q=(0,P.useContext)(d.D),X=Q.designable,Z=Q.setDesignable,b=Q.refresh,J=Q.reset,se=(0,P.useContext)(o.SchemaOptionsContext),q=(0,P.useMemo)(function(){return(se==null?void 0:se.components)||{}},[se]),le=(0,P.useMemo)(function(){return function(){return(0,z.jsx)(z.Fragment,{})}},[]),Ce=(0,R.Z)(),_e=(0,D.gR)(),ye=(0,D.QJ)(),Be=(0,P.useCallback)(function(ge){b==null||b(),Ce(),_e==null||_e(ge),ye==null||ye()},[b,Ce,_e,ye]),Pe=(0,o.useField)(),ie=(0,o.useFieldSchema)(),me=(0,j.LY)(),pe=(0,m.$)(),ee=pe.t,ue=(0,P.useMemo)(function(){return O({t:ee,api:me,refresh:Be,current:ie,model:Pe,appVersion:S.i8})},[ee,me,Be,ie,Pe]);return(0,P.useEffect)(function(){ue.loadAPIClientEvents()},[ue]),{dn:ue,designable:X,reset:J,refresh:Be,setDesignable:Z,DesignableBar:le,findComponent:(0,P.useCallback)(function(ge){var Ee;if(!ge)return null;if(typeof ge!="string")return ge;var Me=f()(q,ge);return(Ee=Me[c.XI])!==null&&Ee!==void 0?Ee:Me},[f()]),on:ue.on.bind(ue),patch:(0,P.useCallback)(function(ge,Ee){var Me=function(Ie){Object.keys(Ie).forEach(function(be){var fe=Ie[be];be==="title"&&(Pe.title=fe,ie.title=fe),be==="x-decorator-props"&&(Pe.decoratorProps||(Pe.decoratorProps={}),ie["x-decorator-props"]||(ie["x-decorator-props"]={}),Object.keys(fe).forEach(function(oe){Pe.decoratorProps[oe]=fe[oe],ie["x-decorator-props"][oe]=fe[oe]})),be==="x-component-props"&&(Pe.componentProps||(Pe.componentProps={}),ie["x-component-props"]||(ie["x-component-props"]={}),Object.keys(fe).forEach(function(oe){Pe.componentProps[oe]=fe[oe],ie["x-component-props"][oe]=fe[oe]}))})};if(typeof ge=="string"){var Te={};return p()(Te,ge,Ee),Me(Te)}Me(ge),Be()},[ue]),shallowMerge:(0,P.useCallback)(function(ge){ue.shallowMerge(ge)},[ue]),deepMerge:(0,P.useCallback)(function(ge){ue.deepMerge(ge)},[ue]),remove:(0,P.useCallback)(function(ge,Ee){ue.remove(ge,Ee)},[ue]),insertAdjacent:(0,P.useCallback)(function(ge,Ee,Me){ue.insertAdjacent(ge,Ee,Me)},[ue]),insertBeforeBegin:(0,P.useCallback)(function(ge){ue.insertBeforeBegin(ge)},[ue]),insertAfterBegin:(0,P.useCallback)(function(ge){ue.insertAfterBegin(ge)},[ue]),insertBeforeEnd:(0,P.useCallback)(function(ge){ue.insertBeforeEnd(ge)},[ue]),insertAfterEnd:(0,P.useCallback)(function(ge){ue.insertAfterEnd(ge)},[ue])}}},98146:function(Ke,ae,e){"use strict";e.d(ae,{e:function(){return C}});var H=e(80844),u=e(84577),k=e(67294),i=e(51159),g=function(){return null};g.isNullComponent=!0;var C=function(){var r=(0,u.ng)(),N=r.designable,v=(0,H.useFieldSchema)(),A=(0,k.useMemo)(function(){return v["x-designer"]||v["x-toolbar"]?v["x-designer"]||v["x-toolbar"]:v["x-settings"]?i.Mf:g},[v]),h=(0,u.Co)(A);return N&&h||g}},9780:function(Ke,ae,e){"use strict";e.d(ae,{w:function(){return T}});var H=e(97857),u=e.n(H),k=e(13769),i=e.n(k),g=["useProps"],C=function(){return{}},T=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=N.useProps,A=v===void 0?C:v,h=i()(N,g),M=A;typeof A!="function"&&(M=C);var n=M();return u()(u()({},h),n)}},7105:function(Ke,ae,e){"use strict";e.d(ae,{aUM:function(){return k.aU},olz:function(){return k.ol},N0i:function(){return k.N0},fWn:function(){return k.fW},mlL:function(){return k.ml},EIK:function(){return k.EI},$Lt:function(){return k.$L},$b8:function(){return k.$b},HTy:function(){return ai},lkv:function(){return ri},rDu:function(){return Yt},eYL:function(){return k.eY},Rat:function(){return la},oAt:function(){return Wl},E7E:function(){return $l},$SD:function(){return Ti},fUi:function(){return No.fU},QcG:function(){return Ss},MLy:function(){return _o.M},gOu:function(){return Xs},jYG:function(){return pa.jY},PuU:function(){return pa.Pu},smG:function(){return pa.sm},C1I:function(){return k.C1},Ssf:function(){return Es},vTp:function(){return Is},XZJ:function(){return ba},Tt2:function(){return Fs},zH8:function(){return Us},Q5L:function(){return Ns},Pok:function(){return Fi},Vm0:function(){return ks},xI_:function(){return js},Lip:function(){return Rs},WN4:function(){return ji.W},Mtg:function(){return Pa.Mt},iNu:function(){return Pa.iN},zzt:function(){return pt.zz},_bl:function(){return $._b},POi:function(){return Gs},AOY:function(){return _e},izJ:function(){return Hs},LBT:function(){return E.DndContext},IWB:function(){return E.DragHandler},LCt:function(){return E.DraggableContext},FyH:function(){return q.Fy},Nir:function(){return q.Ni},q8U:function(){return q.q8},HGA:function(){return q.HG},QTe:function(){return q.QT},JEX:function(){return q.JE},fAH:function(){return Il},$w$:function(){return q.$w},nBj:function(){return q.nB},Oct:function(){return q.Oc},zdw:function(){return q.zd},CXR:function(){return Dl},BQs:function(){return To.BQ},Hj5:function(){return pr.H},M0b:function(){return Ri},Dnz:function(){return ji.D},wn$:function(){return Fn.wn},GzZ:function(){return Fn.Gz},tJZ:function(){return Fn.tJ},fox:function(){return Fn.fo},VTd:function(){return Fn.VT},XsZ:function(){return Fn.Xs},l09:function(){return b},D_t:function(){return gl.D},WiK:function(){return uo},xJW:function(){return q.xJ},RVL:function(){return $.RV},Bc8:function(){return gt},hG9:function(){return Li},DCh:function(){return Bi},rjZ:function(){return Sa.rj},Cqo:function(){return pi},jg7:function(){return Sa.jg},gsn:function(){return To.gs},$18:function(){return iu},IIB:function(){return To.II},RnZ:function(){return bl},mX2:function(){return To.mX},zDC:function(){return dr.zD},Phs:function(){return To.Ph},aVo:function(){return fi},UGj:function(){return Wi.U},yq5:function(){return Wi.y},v2r:function(){return Hr},HIW:function(){return hu},T3C:function(){return Na},d97:function(){return da.d9},hGv:function(){return ei},tlE:function(){return gu},rop:function(){return yl},gGi:function(){return Cu},DBW:function(){return Oa.D},MBS:function(){return xu.M},pGO:function(){return Pu},Y8K:function(){return Vi},iVT:function(){return To.iV},ODP:function(){return dr.OD},lbb:function(){return dr.lb},b7w:function(){return dr.b7},sUk:function(){return dr.sU},x1j:function(){return k.x1},m1v:function(){return $.m1},glM:function(){return Pt},xZD:function(){return k.xZ},IuH:function(){return Fn.Iu},MkN:function(){return k.Mk},Hof:function(){return Su},n6:function(){return $.n6},DDd:function(){return wu.D},ATq:function(){return $.AT},G0E:function(){return $.G0},a$w:function(){return $.a$},TzZ:function(){return $.Tz},y00:function(){return k.y0},PhF:function(){return Qt},Cqv:function(){return E.ShowFormData},cof:function(){return k.co},bts:function(){return E.Sortable},Fop:function(){return E.SortableContext},TRI:function(){return E.SortableItem},ORg:function(){return E.SortableProvider},TaI:function(){return yu},qHe:function(){return va.q},iA_:function(){return wr},gvM:function(){return Lu},SnY:function(){return Al},ASv:function(){return Ku},bwk:function(){return fa},mQc:function(){return Qa},c__:function(){return Za.c},QZ3:function(){return Re},L39:function(){return pa.L3},feF:function(){return Hu},jII:function(){return ki},mPs:function(){return ku},tgM:function(){return Gu},gqx:function(){return No.gq},Qm7:function(){return No.Qm},_wD:function(){return sa._w},rjl:function(){return sa.rj},SLL:function(){return k.SL},sBv:function(){return k.sB},iTm:function(){return q.iT},BDK:function(){return No.BD},Pls:function(){return pt.Pl},Oxq:function(){return nt},WLi:function(){return ze},$9M:function(){return q.$9},nCn:function(){return Ve},iNG:function(){return Dt},tD8:function(){return tt},pg9:function(){return eo},Ofb:function(){return q.Of},ibf:function(){return ao},WyG:function(){return se},l6$:function(){return u.l6},WGR:function(){return Mt},C$H:function(){return dr.C$},SET:function(){return Vr.SE},cNQ:function(){return dr.cN},NCb:function(){return Wr.NC},I9l:function(){return E.getRenderContent},XQ2:function(){return Wr.XQ},Fxc:function(){return ti},MDU:function(){return Vr.MD},CEH:function(){return Vr.CE},vUN:function(){return k.vU},ZZb:function(){return q.ZZ},tqC:function(){return Vr.tq},elO:function(){return dr.el},CfU:function(){return bi},LPx:function(){return Vr.LP},fY6:function(){return Vr.fY},Vm:function(){return zi},w_o:function(){return Vr.w_},SJF:function(){return Va},_Ko:function(){return za},Mev:function(){return oi},i2K:function(){return vo},WmO:function(){return Fn.Wm},oBi:function(){return pt.oB},hKP:function(){return Wr.hK},DU1:function(){return k.DU},XCj:function(){return k.XC},KyD:function(){return zn.Ky},Vpg:function(){return Ai},lIL:function(){return pt.lI},KxP:function(){return _o.K},hi9:function(){return pt.hi},p27:function(){return k.p2},z9d:function(){return Ml.z9},eJW:function(){return pt.eJ},Cor:function(){return pt.Co},Zmk:function(){return da.Zm},aZq:function(){return pt.aZ},P1D:function(){return Pa.P1},ngQ:function(){return pt.ng},ett:function(){return pt.et},ySm:function(){return pr.y},Zd$:function(){return q.Zd},cLh:function(){return pt.cL},baz:function(){return q.b},fde:function(){return pt.fd},Xdt:function(){return dr.Xd},Cld:function(){return pt.Cl},vH8:function(){return pt.vH},PLH:function(){return Fn.PL},V8t:function(){return Fn.V8},tMk:function(){return Fn.tM},xQm:function(){return Fn.xQ},sRe:function(){return pt.sR},U1u:function(){return Fe},HS$:function(){return k.HS},vBu:function(){return k.vB},QYZ:function(){return k.QY},t9d:function(){return k.t9},Kgy:function(){return Fn.Kg},aJ2:function(){return Fn.aJ},n14:function(){return Sa.n1},DiB:function(){return Sa.Di},l1O:function(){return q.l1},w5o:function(){return q.w5},p3Q:function(){return q.p3},G5e:function(){return q.G5},xj2:function(){return q.xj},rxY:function(){return q.rx},Ils:function(){return dr.Il},zCB:function(){return k.zC},CMh:function(){return ua},FMn:function(){return Rr},T0O:function(){return Zr},a4r:function(){return Oa.a},wNf:function(){return pt.wN},Dmu:function(){return pt.Dm},Bsl:function(){return $.Bs},yKv:function(){return $n.y},fMB:function(){return pt.fM},gCg:function(){return Za.g},eT6:function(){return q.eT},$SN:function(){return No.$S},q4O:function(){return q.q4},ymE:function(){return sa.ym},uqQ:function(){return k.uq},Q3P:function(){return Wr.Q3},K5K:function(){return k.K5}});var H={};e.r(H),e.d(H,{Action:function(){return k.aU},ActionBar:function(){return k.ol},ActionBarProvider:function(){return k.N0},ActionContext:function(){return k.fW},ActionContextNoRerender:function(){return k.ml},ActionContextProvider:function(){return k.EI},ActionDesigner:function(){return k.$L},AfterSuccess:function(){return k.$b},AntdSchemaComponentPlugin:function(){return ai},AntdSchemaComponentProvider:function(){return ri},AppendsTreeSelect:function(){return Yt},AssignedFieldValues:function(){return k.eY},AssociationField:function(){return la},AssociationFieldMode:function(){return Wl},AssociationFieldModeProvider:function(){return $l},AssociationSelect:function(){return Ti},AttachmentList:function(){return No.fU},AutoComplete:function(){return Ss},BackButtonUsedInSubPage:function(){return _o.M},Block:function(){return Xs},BlockItem:function(){return pa.jY},BlockItemCard:function(){return pa.Pu},BlockItemCardContext:function(){return pa.sm},ButtonEditor:function(){return k.C1},CardItem:function(){return Es},Cascader:function(){return Is},Checkbox:function(){return ba},CollectionSelect:function(){return Fs},ColorPicker:function(){return Us},ColorSelect:function(){return Ns},Cron:function(){return Fi},CronSet:function(){return ks},DataSourceCollectionCascader:function(){return js},DataSourceSelect:function(){return Rs},DateFormatCom:function(){return ji.W},DatePicker:function(){return Pa.Mt},DatePickerProvider:function(){return Pa.iN},Details:function(){return Gs},DetailsDesigner:function(){return _e},Divider:function(){return Hs},EditComponent:function(){return q.Fy},EditDefaultValue:function(){return q.Ni},EditDescription:function(){return q.q8},EditOperator:function(){return q.HG},EditPattern:function(){return q.QT},EditRequired:function(){return q.JE},EditSortField:function(){return Il},EditTitle:function(){return q.$w},EditTitleField:function(){return q.nB},EditTooltip:function(){return q.Oc},EditValidationRules:function(){return q.zd},Editable:function(){return Dl},EllipsisWithTooltip:function(){return To.BQ},ErrorFallback:function(){return pr.H},Expand:function(){return Ri},ExpiresRadio:function(){return ji.D},Filter:function(){return Fn.wn},FilterAction:function(){return Fn.Gz},FilterActionContext:function(){return Fn.tJ},FilterContext:function(){return Fn.fo},FilterDynamicComponent:function(){return Fn.VT},FilterLogicContext:function(){return Fn.Xs},Form:function(){return b},FormDialog:function(){return gl.D},FormField:function(){return uo},FormItem:function(){return q.xJ},FormV2:function(){return gt},G2Plot:function(){return Li},G2PlotRenderer:function(){return Bi},Grid:function(){return Sa.rj},GridCard:function(){return pi},GridRowContext:function(){return Sa.jg},HTMLEncode:function(){return To.gs},IconPicker:function(){return iu},Input:function(){return To.II},InputNumber:function(){return bl},InputReadPretty:function(){return To.mX},InputRecordPicker:function(){return dr.zD},Json:function(){return To.Ph},List:function(){return fi},Markdown:function(){return Wi.U},MarkdownReadPretty:function(){return Wi.y},Menu:function(){return Hr},NanoIDInput:function(){return hu},Page:function(){return Na},PagePopups:function(){return da.d9},PageTabs:function(){return ei},Pagination:function(){return gu},Password:function(){return yl},Percent:function(){return Cu},PopupSettingsProvider:function(){return Oa.D},Preview:function(){return xu.M},QuickEdit:function(){return Pu},Radio:function(){return Vi},ReadPretty:function(){return To.iV},ReadPrettyRecordPicker:function(){return dr.OD},RecordPicker:function(){return dr.lb},RecordPickerContext:function(){return dr.b7},RecordPickerProvider:function(){return dr.sU},RefreshDataBlockRequest:function(){return k.x1},RemoteSelect:function(){return Pt},RemoveButton:function(){return k.xZ},RemoveConditionContext:function(){return Fn.Iu},RequestSettings:function(){return k.Mk},RichText:function(){return Su},SecondConFirm:function(){return k.y0},Select:function(){return Qt},SkipValidation:function(){return k.co},Space:function(){return yu},StablePopover:function(){return va.q},Table:function(){return wr},TableBlockDesigner:function(){return Lu},TableField:function(){return Al},TableSelectorDesigner:function(){return Ku},TableV2:function(){return fa},Tabs:function(){return Qa},TabsContextProvider:function(){return Za.c},Templates:function(){return Re},TestDesigner:function(){return pa.L3},TextAreaWithGlobalScope:function(){return Hu},TimePicker:function(){return ki},TreeSelect:function(){return ku},UnixTimestamp:function(){return Gu},Upload:function(){return No.gq},Uploader:function(){return No.Qm},Variable:function(){return sa._w},VariableScopeProvider:function(){return sa.rj},actionSettings:function(){return k.SL},actionSettingsItems:function(){return k.sB},allowAddNew:function(){return q.iT},attachmentFileTypes:function(){return No.BD},defaultFieldNames:function(){return nt},fetchTemplateData:function(){return ze},filterFormItemSettings:function(){return q.$9},findByUid:function(){return Ve},findKeysByUid:function(){return Dt},findMenuItem:function(){return tt},formDetailsSettings:function(){return eo},formItemSettings:function(){return q.Of},formSettings:function(){return ao},formV1Settings:function(){return se},genStyleHook:function(){return u.l6},getCurrentOptions:function(){return Mt},getDatePickerLabels:function(){return dr.C$},getDateRanges:function(){return Vr.SE},getLabelFormatValue:function(){return dr.cN},getPopupPathFromParams:function(){return Wr.NC},getStoredPopupContext:function(){return Wr.XQ},getTabSchema:function(){return ti},handleDateChangeOnForm:function(){return Vr.MD},inferPickerType:function(){return Vr.CE},isBulkEditAction:function(){return k.vU},isFileCollection:function(){return q.ZZ},isMobile:function(){return Vr.tq},isShowFilePicker:function(){return dr.el},isTabPage:function(){return bi},mapDatePicker:function(){return Vr.LP},mapRangePicker:function(){return Vr.fY},mapTimeFormat:function(){return zi},moment2str:function(){return Vr.w_},navigateToTab:function(){return Va},pageSettings:function(){return za},pageTabSettings:function(){return oi},readPrettyFormSettings:function(){return vo},removeNullCondition:function(){return Fn.Wm},storePopupContext:function(){return Wr.hK},useActionBarContext:function(){return k.DU},useActionContext:function(){return k.XC},useAssociationFieldContext:function(){return zn.Ky},useAssociationFieldModeContext:function(){return Ai},useBackButton:function(){return _o.K},useCloseAction:function(){return k.p2},useColumnSchema:function(){return Ml.z9},useCurrentPopupContext:function(){return da.Zm},useDatePickerContext:function(){return Pa.P1},useDownloadLogs:function(){return pr.y},useEnsureOperatorsValid:function(){return q.Zd},useFieldMode:function(){return q.b},useFieldNames:function(){return dr.Xd},useFilterActionProps:function(){return Fn.PL},useFilterFieldOptions:function(){return Fn.V8},useFilterFieldProps:function(){return Fn.tM},useFilterOptions:function(){return Fn.xQ},useFormDataTemplates:function(){return Fe},useGetAriaLabelOfAction:function(){return k.HS},useGetAriaLabelOfDrawer:function(){return k.vB},useGetAriaLabelOfModal:function(){return k.QY},useGetAriaLabelOfPopover:function(){return k.t9},useGetFilterFieldOptions:function(){return Fn.Kg},useGetFilterOptions:function(){return Fn.aJ},useGridContext:function(){return Sa.n1},useGridRowContext:function(){return Sa.Di},useIsAddNewForm:function(){return q.l1},useIsAssociationField:function(){return q.w5},useIsFieldReadPretty:function(){return q.p3},useIsFileField:function(){return q.G5},useIsFormReadPretty:function(){return q.xj},useIsSelectFieldMode:function(){return q.rx},useLabelUiSchema:function(){return dr.Il},useLinkageAction:function(){return k.zC},useMenuDragEnd:function(){return ua},useNocoBaseRoutes:function(){return Rr},useParentRoute:function(){return Zr},usePopupSettings:function(){return Oa.a},useStyles:function(){return $n.y},useTabsContext:function(){return Za.g},useTitleFieldOptions:function(){return q.eT},useUploadStyles:function(){return No.$S},useValidateSchema:function(){return q.q4},useVariableScope:function(){return sa.ym},useZIndexContext:function(){return k.uq},withSearchParams:function(){return Wr.Q3},zIndexContext:function(){return k.K5}});var u=e(46917),k=e(76157),i=e(15009),g=e.n(i),C=e(99289),T=e.n(C),r=e(12444),N=e.n(r),v=e(72004),A=e.n(v),h=e(31996),M=e.n(h),n=e(26037),x=e.n(n),K=e(97857),o=e.n(K),a=e(67294),R=e(31601),E=e(14896),$=e(70993),w=e(89127),L=function(V){return T()(g()().mark(function de(){var ve,he;return g()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.prev=0,De.next=3,this.api.request(V);case 3:return he=De.sent,De.abrupt("return",he==null||(ve=he.data)===null||ve===void 0?void 0:ve.data);case 7:return De.prev=7,De.t0=De.catch(0),De.abrupt("return",[]);case 10:case"end":return De.stop()}},de,this,[[0,7]])}))},f=e(13769),y=e.n(f),p=e(5552),P=e(86201),m=e(80844),j=e(28459),D=e(57953),c=e(12174),d=e(6145),l=e(57105),S=e(51159),z=e(64016),O=e(15195),U=e(23461),t=e(85893),B=["form","children"],G=["form","children","disabled"],Y=["request","effects","initialValue","useValues"],W=function(V){var de=V.form,ve=V.children,he=y()(V,B),xe=(0,m.useField)(),De=(0,m.useFieldSchema)(),je=(0,pt.lI)(de.createVoidField(o()(o()({},xe.props),{},{basePath:""})));return(0,t.jsx)(m.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(m.FormContext.Provider,{value:de,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},he),{},{children:(0,t.jsx)(l.sq,{basePath:je.address,schema:De,onlyRenderProperties:!0})}))})})},I=function(V){return V.children},te=function(V){var de=V.form,ve=V.children,he=V.disabled,xe=y()(V,G),De=(0,m.useField)(),je=(0,m.useFieldSchema)(),$e=(0,pt.lI)(de.createVoidField(o()(o()({},De.props),{},{basePath:""}))),Qe=(0,pt.Co)(je["x-component"],I);return(0,a.useEffect)(function(){de.disabled=he||De.disabled},[he,De.disabled]),(0,t.jsx)(j.ZP,{componentDisabled:he,children:(0,t.jsx)(m.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(m.FormContext.Provider,{value:de,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},xe),{},{children:(0,t.jsx)(m.FieldContext.Provider,{value:$e,children:(0,t.jsx)(Qe,o()(o()({},De.componentProps),{},{children:(0,t.jsx)(l.sq,{basePath:$e.address,schema:je,onlyRenderProperties:!0})}))})}))})})})},Q=function(V){var de=V.request,ve=V.initialValue;return de||function(){return Promise.resolve({data:ve})}},X=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,c.QT)(Q(de),V)},Z=(0,a.createContext)(null);Z.displayName="FormBlockContext";var b=(0,m.observer)(function(ne){var V=ne.request,de=ne.effects,ve=ne.initialValue,he=ne.useValues,xe=he===void 0?X:he,De=y()(ne,Y),je=(0,m.useFieldSchema)(),$e=(0,m.useField)(),Qe=(0,a.useMemo)(function(){return(0,P.createForm)({effects:de})},[]),Ge=xe({uid:je["x-uid"],onSuccess:function(Xe){return T()(g()().mark(function ft(){return g()().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Qe.reset();case 2:Qe.setValues(Xe==null?void 0:Xe.data),Qe.setInitialValues(Xe==null?void 0:Xe.data);case 4:case"end":return at.stop()}},ft)}))()}},ne),Je=(0,a.useContext)(Z);return(0,t.jsx)(Z.Provider,{value:{parent:Je,form:Qe,result:Ge,field:$e,fieldSchema:je},children:(0,t.jsx)(D.Z,{spinning:(Ge==null?void 0:Ge.loading)||!1,children:je["x-decorator"]==="Form"?(0,t.jsx)(te,o()({form:Qe},De)):(0,t.jsx)(W,o()({form:Qe},De))})})},{displayName:"Form"});b.Designer=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)(),xe=(0,U.rE)(),De=xe.componentNamePrefix;return(0,t.jsxs)(S.aN,{template:he,title:ve||de,children:[(0,t.jsx)(z.G,{componentName:"".concat(De,"Form"),collectionName:de}),(0,t.jsx)(S.Z5,{}),(0,t.jsx)(S.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var J=e(5537),se=new J.F5({name:"FormV1Settings",items:[{name:"template",Component:z.G,useComponentProps:function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=(0,U.rE)(),he=ve.componentNamePrefix;return{componentName:"".concat(he,"Form"),collectionName:de}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),q=e(54801),le=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormSettings",template:he,title:ve||de})},Ce=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"ReadPrettyFormSettings",template:he,title:ve||de})},_e=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormDetailsSettings",template:he,title:ve||de})},ye=function(){var V=(0,d.useCollection_deprecated)(),de=V.name,ve=V.title,he=(0,O.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"blockSettings:filterForm",template:he,title:ve||de})},Be=e(7340),Pe=e(15503),ie=e(83335),me=e(68230),pe=e(68400),ee=e.n(pe),ue=e(97133),ge=e(84327),Ee=e(9361),Me=e(67174),Te=e(31019),Ae=e(39742),Ie=e(22229),be=e(43321),fe=e(64910),oe=e(9780),F=e(3192),ce=e(94804),Se=e(18686),re=e(5574),Oe=e.n(re),Ne=e(84157),Le=e(42075),Ze=e(34041),xt=e(96486),ut=e.n(xt),We=e(26793),ot=e(32268),dt=e(9783),He=e.n(dt),On=e(52677),Cn=e.n(On),xn=e(3407),un=e(66309),_n=e(96074),nn=e(27484),Mn=e.n(nn),zt=e(44990),Rn=e(8341),Jt=e(87714),pt=e(84577),rn=e(16646),Wn=e(73475),Tn=e(32983),ln=e(67668),mn=e(58812),In=e(96695),Zn=e.n(In),on=e(19632),vt=e.n(on),nt={label:"label",value:"value",color:"color",options:"children"};function Et(ne,V){var de=[];if(!Array.isArray(ne))return de;for(var ve=0;ve<ne.length;ve++){var he=ne[ve][V.options];Array.isArray(he)&&de.push.apply(de,vt()(Et(he,V))),de.push(o()({},ne[ve]))}return de}function Lt(ne,V,de){if(!ne)return[];var ve=[],he=Zn()(de),xe;try{var De=function(){var $e=xe.value,Qe=ne.find(function(Ge){return Ge[V.value]==$e})||{value:$e,label:$e&&$e.toString()};ve.push(Qe)};for(he.s();!(xe=he.n()).done;)De()}catch(je){he.e(je)}finally{he.f()}return ve}function Mt(ne,V,de){var ve=Et(V,de),he=(0,xt.castArray)(ne).map(function(xe){return(0,Ne.isPlainObject)(xe)?xe[de.value]:xe});return Lt(ve,de,he)}var mt=e(25145),St=(0,m.observer)(function(ne){var V=(0,a.useState)(!0),de=Oe()(V,2),ve=de[0],he=de[1],xe=(0,a.useState)([]),De=Oe()(xe,2),je=De[0],$e=De[1],Qe=(0,m.useField)(),Ge=(0,ln.Hy)();return(0,a.useEffect)(function(){var Je,_t=o()(o()({},nt),ne.fieldNames),Xe=Qe.dataSource||ne.options||(Ge==null?void 0:Ge.uiSchema.enum)||[],ft=Mt(Qe.value,Xe,_t);if(!(!(0,ge.isValid)(ne.value)&&!ft.length)&&!((0,P.isArrayField)(Qe)&&(Qe==null||(Je=Qe.value)===null||Je===void 0?void 0:Je.length)===0)){var ht=Qe.value!==null&&ft.map(function(at,It){return(0,t.jsx)(un.Z,{color:at[_t.color],icon:at.icon,children:at[_t.label]},It)});$e(ht),he(!1)}},[Ge==null?void 0:Ge.uiSchema.enum,Qe,Qe.dataSource,Qe.value,ne.fieldNames,ne.options,ne.value]),ve?null:(0,t.jsx)(mn.B,{ellipsis:ne.ellipsis,children:je})},{displayName:"SelectReadPretty"}),Kt=(0,mt.u)(St),Gt=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Vt=["objectValue","loading","value","rawOptions","defaultValue"],Wt=function(V){return!(0,ge.isValid)(V)||Cn()(V)==="object"&&Object.keys(V).length===0},wt=function(V){var de=V.value,ve=V.options,he=V.onChange,xe=V.fieldNames,De=V.mode,je=V.loading,$e=V.rawOptions,Qe=V.defaultValue,Ge=y()(V,Gt),Je=function(Xe){var ft;if(!Wt(Xe)){var ht=(0,ge.toArr)(Xe).filter(function(It){return It}).map(function(It){return(0,Ne.isPlainObject)(It)?It[xe.value]:It}),at=(ft=Mt(ht,ve,xe))===null||ft===void 0?void 0:ft.map(function(It){return{label:It[xe.label],value:It[xe.value]}});return["tags","multiple"].includes(De)||V.multiple?at:at.shift()}};return(0,t.jsx)(Ze.default,o()({role:"button","data-testid":"select-object-".concat(De||"single"),value:Je(de),defaultValue:Je(Qe),allowClear:{clearIcon:(0,t.jsx)(rn.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:je?(0,t.jsx)(D.Z,{}):(0,t.jsx)(Tn.Z,{image:Tn.Z.PRESENTED_IMAGE_SIMPLE}),options:ve,fieldNames:xe,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Xe,ft){var ht;return((ht=ft==null?void 0:ft[xe.label||"label"])!==null&&ht!==void 0?ht:"").includes(Xe)},filterSort:function(Xe,ft){var ht,at;return((ht=Xe==null?void 0:Xe[xe.label||"label"])!==null&&ht!==void 0?ht:"").toLowerCase().localeCompare(((at=ft==null?void 0:ft[xe.label||"label"])!==null&&at!==void 0?at:"").toLowerCase())},onChange:function(Xe){var ft=Mt((0,ge.toArr)(Xe).map(function(ht){return ht.value}),$e||ve,xe);["tags","multiple"].includes(De)||V.multiple?he==null||he(ft):he==null||he(ft.shift()||null)},mode:De,tagRender:function(Xe){return(0,t.jsx)(un.Z,o()(o()({role:"button","aria-label":Xe.label,closeIcon:(0,t.jsx)(Wn.Z,{role:"button","aria-label":"icon-close-tag"})},Xe),{},{children:Xe.label}))},maxTagCount:"responsive"},Ge))},qt=function(V,de){var ve;return((ve=de==null?void 0:de.label)!==null&&ve!==void 0?ve:"").toLowerCase().includes((V||"").toLowerCase())},fn=(0,m.connect)(function(ne){var V=ne.objectValue,de=ne.loading,ve=ne.value,he=ne.rawOptions,xe=ne.defaultValue,De=y()(ne,Vt),je=(0,pt.eJ)(),$e=ne.multiple?"multiple":ne.mode;if($e&&!["multiple","tags"].includes($e)&&($e=void 0),V)return(0,t.jsx)(wt,o()(o()({rawOptions:he},De),{},{defaultValue:xe,value:ve,mode:$e,loading:de}));var Qe=function(Je){return["tags","multiple"].includes(ne.mode)||ne.multiple?Je?(0,ge.toArr)(Je):void 0:Je};return(0,t.jsx)(Ze.default,o()(o()({role:"button","data-testid":"select-".concat($e||"single"),showSearch:!0,filterOption:qt,allowClear:{clearIcon:(0,t.jsx)(rn.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:de?(0,t.jsx)(D.Z,{}):(0,t.jsx)(Tn.Z,{image:Tn.Z.PRESENTED_IMAGE_SIMPLE}),value:Qe(ve),defaultValue:Qe(xe),tagRender:function(Je){return(0,t.jsx)(un.Z,o()(o()({role:"button","aria-label":Je.label,closeIcon:(0,t.jsx)(Wn.Z,{role:"button","aria-label":"icon-close-tag"})},Je),{},{children:Je.label}))}},je(De)),{},{onChange:function(Je){var _t;(_t=ne.onChange)===null||_t===void 0||_t.call(ne,Je===void 0?null:Je)},mode:$e,maxTagCount:"responsive"}))},(0,m.mapProps)({dataSource:"options"},function(ne,V){return o()(o()({},ne),{},{fieldNames:o()(o()({},nt),ne.fieldNames),suffixIcon:V!=null&&V.loading||V!=null&&V.validating?(0,t.jsx)(xn.Z,{}):ne.suffixIcon})}),(0,m.mapReadPretty)(Kt)),Qt=fn;Qt.ReadPretty=Kt;var bn=Qt,hn=e(36586),Nt=function(V,de){return(0,xt.castArray)(V).filter(function(ve){return ve!=null}).map(function(ve){return Cn()(ve)==="object"?ve[de.value]:ve})},vn=(0,m.observer)(function(ne){var V=o()(o()({},nt),ne.fieldNames),de=(0,m.useField)(),ve=(0,m.useFieldSchema)(),he=(0,hn.a)(),xe=(0,k.XC)(),De=xe.snapshot,je=(0,c.QT)(De?T()(g()().mark(function Qe(){return g()().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.abrupt("return",{data:he[ve.name]});case 1:case"end":return Je.stop()}},Qe)})):o()(o()({action:"list"},ne.service),{},{params:{paginate:!1,filter:He()({},V.value,{$in:Nt(de.value,V)})}}),{refreshDeps:[ne.service,de.value]}),$e=je.data;return(0,t.jsx)(Qt.ReadPretty,o()(o()({},ne),{},{options:$e==null?void 0:$e.data}))},{displayName:"ReadPretty"}),En=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],Ot="N/A",qe=(0,Pe.t)((0,m.connect)(function(ne){var V,de,ve=ne.fieldNames,he=ve===void 0?{}:ve,xe=ne.service,De=xe===void 0?{}:xe,je=ne.wait,$e=je===void 0?300:je,Qe=ne.value,Ge=ne.defaultValue,Je=ne.objectValue,_t=ne.manual,Xe=_t===void 0?!0:_t,ft=ne.mapOptions,ht=ne.targetField,at=ne.CustomDropdownRender,It=ne.optionFilter,At=ne.dataSource,pn=ne.toOptionsItem,Pn=pn===void 0?function(yr){return yr}:pn,Ln=ne.popupMatchSelectWidth,Bn=Ln===void 0?!1:Ln,Bt=y()(ne,En),an=(0,zt.FC)(),Qn=(0,Rn.FE)(At||an),po=(0,a.useState)(!1),io=Oe()(po,2),Vn=io[0],Jn=io[1],en=(0,a.useRef)(!1),no=(0,m.useFieldSchema)(),co=((V=no["x-component-props"])===null||V===void 0?void 0:V.addMode)==="quickAdd",oo=(0,d.useCollection_deprecated)(),Xn=oo.getField,ro=(0,a.useRef)(null),jn=(0,d.useCollectionManager_deprecated)(),gn=jn.getCollectionJoinField,qn=jn.getInterface,xo=no["x-collection-field"]||no.name,so=Xn(xo)||gn(xo),mo=ht||(so==null?void 0:so.target)&&(he==null?void 0:he.label)&&gn("".concat(so.target,".").concat(he.label)),Mo=(0,a.useMemo)(function(){if(mo!=null&&mo.interface){var yr,or=qn(mo.interface),Tr=(or==null||(yr=or.filterable)===null||yr===void 0?void 0:yr.operators[0].value)||"$includes";return mo.type==="string"?"$includes":Tr}return"$includes"},[mo]),bo=(0,pt.eJ)(),yo=(0,a.useCallback)(function(yr){try{return yr.filter(function(or){return["number","string"].includes(Cn()(or[he.value]))||!or[he.value]}).map(function(or){var Tr,Fr,Dr=bo(or[he.label]);if(mo!=null&&(Tr=mo.uiSchema)!==null&&Tr!==void 0&&Tr.enum)if(Array.isArray(Dr))Dr=Dr.map(function(Ea,Ja){var Ba=mo.uiSchema.enum.find(function(Tl){return Tl.value===Ea});return Ba?(0,t.jsx)(un.Z,{role:"button",color:Ba.color,style:{marginRight:3},children:(Ba==null?void 0:Ba.label)||Ea},Ja):(0,t.jsx)(un.Z,{role:"button",children:Ea},Ea)}).reverse();else{var oa=mo.uiSchema.enum.find(function(Ea){return Ea.value===Dr});oa&&(Dr=(0,t.jsx)(un.Z,{role:"button",color:oa.color,children:oa.label}))}if((mo==null?void 0:mo.type)==="date"&&(Dr=Mn()(Dr).format("YYYY-MM-DD")),ft){var ya;return ft((ya={},He()(ya,he.label,Dr||Ot),He()(ya,he.value,or[he.value]),ya))}return o()(o()({},or),{},(Fr={},He()(Fr,he.label,Dr||Ot),He()(Fr,he.value,or[he.value]),Fr))}).filter(Boolean)}catch(or){return console.error(or),yr}},[mo==null?void 0:mo.uiSchema,he]),Ho=(0,c.QT)(o()(o()({action:"list"},De),{},{headers:Qn,params:o()(o()({pageSize:200},De==null?void 0:De.params),{},{filter:De==null||(de=De.params)===null||de===void 0?void 0:de.filter})}),o()({manual:Xe,debounceWait:$e},De.defaultParams?{defaultParams:[De.defaultParams]}:{})),ho=Ho.data,Ko=Ho.run,Yo=Ho.loading,lr=(0,a.useMemo)(function(){return JSON.stringify({service:De,fieldNames:he})},[De,he]),br=(0,a.useCallback)(function(){return ro.current&&at?(0,t.jsx)(at,{search:ro.current,callBack:function(){ro.current=null,Jn(!1)}}):null},[ro.current]);(0,a.useEffect)(function(){en.current&&Ko()},[lr]);var ta=function(){var yr=T()(g()().mark(function or(Tr){var Fr;return g()().wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:Ko({filter:(0,Jt.EO)([Tr?He()({},he.label,He()({},Mo,Tr)):{},De==null||(Fr=De.params)===null||Fr===void 0?void 0:Fr.filter])}),ro.current=Tr;case 2:case"end":return oa.stop()}},or)}));return function(Tr){return yr.apply(this,arguments)}}(),na=(0,a.useMemo)(function(){var yr,or=Qe||Ge;if(!(ho!=null&&(yr=ho.data)!==null&&yr!==void 0&&yr.length))return or!=null?Array.isArray(or)?or:[or]:[];var Tr=or!=null&&(Array.isArray(or)?or.map(function(Dr){return o()(o()({},Dr),{},He()({},he.value,Dr[he.value]||Dr))}):[o()(o()({},or),{},He()({},he.value,or[he.value]||or))])||[],Fr=typeof It=="function"?ho.data.filter(It):ho.data;return(0,xt.uniqBy)(Fr.concat(Tr??[]),he.value)},[Qe,Ge,ho==null?void 0:ho.data,he.value,It]),zr=function(or){Jn(or),ro.current=null,or&&Ko(),en.current=!0};return(0,t.jsx)(Qt,o()(o()({open:Vn,popupMatchSelectWidth:Bn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:he,onSearch:ta,onDropdownVisibleChange:zr,objectValue:Je,value:Qe,defaultValue:Ge},Bt),{},{loading:ho?Yo:!0,options:Pn(yo(na)),rawOptions:na,dropdownRender:function(or){var Tr=na.some(function(Fr){return Fr[he.label]===ro.current});return(0,t.jsx)(t.Fragment,{children:co?(0,t.jsxs)(t.Fragment,{children:[!((ho==null?void 0:ho.data.length)===0&&ro!==null&&ro!==void 0&&ro.current)&&or,(ho==null?void 0:ho.data.length)>0&&(ro==null?void 0:ro.current)&&!Tr&&(0,t.jsx)(_n.Z,{style:{margin:0}}),!Tr&&(0,t.jsx)(br,{})]}):or})}}))},(0,m.mapProps)({dataSource:"options"},function(ne,V){var de,ve=(0,m.useFieldSchema)();return o()(o()({},ne),{},{fieldNames:o()(o()(o()(o()({},nt),ne.fieldNames),V.componentProps.fieldNames),(de=ve["x-component-props"])===null||de===void 0?void 0:de.fieldNames),suffixIcon:V!=null&&V.loading||V!=null&&V.validating?(0,t.jsx)(xn.Z,{}):ne.suffixIcon})}),(0,m.mapReadPretty)(vn))),Pt=qe;Pt.ReadPretty=vn;var Rt=null,Fe=function(){var V=(0,m.useFieldSchema)(),de=(0,We.$)(),ve=de.t,he=(0,Be.bz)(),xe=he.duplicateData,De=(0,d.useCollectionManager_deprecated)(),je=De.getCollectionJoinField;if(xe)return xe;var $e=ke(V),Qe=$e.items,Ge=Qe===void 0?[]:Qe,Je=$e.display,_t=Je===void 0?!0:Je;Ge.forEach(function(ht){try{var at;ht.fields=(at=ht.fields)===null||at===void 0?void 0:at.map(function(It){var At=je("".concat(ht.collection,".").concat(It));return At?It:""}).filter(Boolean)}catch(It){(0,Ne.error)(It),ht.fields=[]}});var Xe=[{key:"none",title:ve("None")}].concat(Ge.map(function(ht,at){return o()(o()({key:at},ht),{},{isLeaf:ht.dataId!==null&&ht.dataId!==void 0,titleCollectionField:(ht==null?void 0:ht.titleField)&&je("".concat(ht.collection,".").concat(ht.titleField))})})),ft=Ge.find(function(ht){return ht.default});return{templates:Xe,display:_t,defaultTemplate:ft,enabled:Ge.length>0&&Ge.every(function(ht){return ht.dataId||ht.dataScope})}},Re=a.memo(function(ne){var V=ne.style,de=V===void 0?{}:V,ve=ne.form,he=(0,u.dQ)(),xe=he.token,De=Fe(),je=De.templates,$e=De.display,Qe=De.enabled,Ge=De.defaultTemplate,Je=(0,d.useCollectionManager_deprecated)(),_t=Je.getCollectionJoinField,Xe=(0,ot.ss)(je),ft=(0,a.useState)((Ge==null?void 0:Ge.key)||"none"),ht=Oe()(ft,2),at=ht[0],It=ht[1],At=(0,a.useState)(null),pn=Oe()(At,2),Pn=pn[0],Ln=pn[1],Bn=(0,c.LY)(),Bt=(0,We.$)(),an=Bt.t,Qn=(0,ce.FC)(),po=(0,ce.on)(Qn);(0,a.useEffect)(function(){Qe&&Ge&&ve&&(ve.__template=!0,Ge.key==="duplicate"&&en(Ge.dataId,Ge,po))},[]),(0,a.useEffect)(function(){Xe!=null&&Xe.some(function(co){return co.key===at})||Jn("none")},[Xe]);var io=(0,a.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:xe.colorFillAlter,padding:xe.padding},de)},[de,xe.colorFillAlter]),Vn=(0,a.useMemo)(function(){return{fontSize:xe.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:xe.marginXS}},[xe.fontSize,xe.marginXS]),Jn=(0,a.useCallback)(function(){var co=T()(g()().mark(function oo(Xn){return g()().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:It(Xn),Ln(null),ve==null||ve.reset();case 3:case"end":return jn.stop()}},oo)}));return function(oo){return co.apply(this,arguments)}}(),[]),en=(0,a.useCallback)(function(){var co=T()(g()().mark(function oo(Xn,ro,jn){var gn;return g()().wrap(function(xo){for(;;)switch(xo.prev=xo.next){case 0:gn=o()(o()({},ro),{},{dataId:Xn}),Ln(ro),ze(Bn,gn,jn).then(function(so){return ve&&so&&(ve.reset(),ve.__template=!0,(0,Ne.forEach)(so,function(mo,Mo){if(mo){var bo;ve.values[Mo]=mo,ve==null||(bo=ve.setInitialValuesIn)===null||bo===void 0||bo.call(ve,Mo,mo)}})),so}).catch(function(so){console.error(so)});case 3:case"end":return xo.stop()}},oo)}));return function(oo,Xn,ro){return co.apply(this,arguments)}}(),[]);if(!Qe||!$e)return null;var no=Xe==null?void 0:Xe.find(function(co){return co.key===at});return(0,t.jsx)("div",{style:io,children:(0,t.jsxs)(Le.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:Vn,children:[an("Data template"),": "]}),(0,t.jsx)(Ze.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:Xe,fieldNames:{label:"title",value:"key"},value:at,onChange:Jn}),at!=="none"&&no&&(0,t.jsx)(Pt,{style:{width:220},fieldNames:{label:no==null?void 0:no.titleField,value:"id"},target:no==null?void 0:no.collection,value:Pn,objectValue:!0,service:{resource:no==null?void 0:no.collection,params:{filter:no==null?void 0:no.dataScope}},onChange:function(oo){return en(oo==null?void 0:oo.id,o()(o()({},oo),no),po)},targetField:_t("".concat(no==null?void 0:no.collection,".").concat(no.titleField))})]})})});Re.displayName="NocoBaseFormDataTemplates";function ke(ne){var V=(0,Be.Fi)(ne);return V?ut().cloneDeep(V["x-data-templates"])||{}:{}}function ze(ne,V,de){return et.apply(this,arguments)}function et(){return et=T()(g()().mark(function ne(V,de,ve){return g()().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(!(de.fields.length===0||!de.dataId)){xe.next=2;break}return xe.abrupt("return");case 2:return xe.abrupt("return",V.resource(de.collection,void 0,ve).get({filterByTk:de.dataId,fields:de.fields,isTemplate:!0}).then(function(De){var je;return(je=De.data)===null||je===void 0?void 0:je.data}));case 3:case"end":return xe.stop()}},ne)})),et.apply(this,arguments)}var it=function(){var V,de,ve=(0,Se.aZ)(),he=(0,m.useFieldSchema)(),xe=Ee.Z.useToken(),De=xe.token,je=(0,pt.ng)(),$e=je.designable,Qe=(0,F.gp)()||{},Ge=Qe.heightProps,Je=Ge||{},_t=Je.title,Xe=Je.titleHeight,ft=Fe(),ht=ft.display,at=ft.enabled,It=he.reduceProperties(function(Jn,en){return en["x-component"]==="ActionBar"?en:Jn}),At=Object.keys((It==null?void 0:It.properties)||{}).length>0,pn=he==null||(V=he.parent)===null||V===void 0||(V=V["x-decorator"])===null||V===void 0||(de=V.includes)===null||de===void 0?void 0:de.call(V,"FormBlockProvider"),Pn=At||$e?De.controlHeight+(pn?1*De.marginLG:24+De.paddingLG):De.marginLG,Ln=_t?Xe:0,Bn=(0,ce.xQ)(),Bt=(Bn==null?void 0:Bn.meta)||{},an=Bt.count,Qn=Bt.pageSize,po=an>Qn,io=po?De.controlHeightSM+24:0,Vn=ht&&at?De.controlHeight+2*De.padding+De.margin:0;return ve-Pn-De.paddingLG-Ln-io-Vn},Ft=e(68091),yt,$t,Xt=["form","children"],Ut=["form","children","disabled"],Zt=["form","disabled"],Ht=function(V){var de=V.form,ve=V.children,he=y()(V,Xt),xe=(0,m.useField)(),De=(0,m.useFieldSchema)(),je=Me.Gn===null||Me.Gn===void 0?void 0:(0,Me.Gn)(De),$e=(0,pt.lI)(de.createVoidField(o()(o()({},xe.props),{},{basePath:""}))),Qe=it(),Ge=Ee.Z.useToken(),Je=Ge.token,_t=(je==null?void 0:je["x-component-props"])||{},Xe=_t.layout,ft=Xe===void 0?"vertical":Xe,ht=_t.labelAlign,at=ht===void 0?"left":ht,It=_t.labelWidth,At=It===void 0?120:It,pn=_t.labelWrap,Pn=pn===void 0?!0:pn;return(0,t.jsx)(m.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(m.FormContext.Provider,{value:de,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:ft},he),{},{labelAlign:at,labelWidth:ft==="horizontal"?At:null,labelWrap:Pn,children:(0,t.jsx)("div",{className:(0,ue.css)(yt||(yt=ee()([`
770
770
  .nb-grid-container {
771
771
  height: `,`;
772
772
  overflow-y: auto;