@nocobase/app 1.6.0-alpha.24 → 1.6.0-alpha.25
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#`+We);return u.requireType=We,u.requireMo
|
|
|
114
114
|
.ant-formily-item {
|
|
115
115
|
margin-bottom: 0;
|
|
116
116
|
}
|
|
117
|
-
`])))},"x-component":D,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},J=function(){for(var h={},M=arguments.length,p=new Array(M),P=0;P<M;P++)p[P]=arguments[P];for(var v=0,U=p;v<U.length;v++){var j=U[v];V[j]&&(h[j]=V[j])}return h}},44605:function(){},53772:function(){},99899:function(We,se,e){"use strict";e.d(se,{U:function(){return H},l:function(){return u}});function H(w){var i;if(!w)return[];var x=w.split(":"),g=x.pop(),B=(i=x[0])!==null&&i!==void 0?i:"main";return[B,g]}function u(w,i){return!w||w==="main"?i:"".concat(w,":").concat(i)}},5346:function(We,se,e){"use strict";e.d(se,{T:function(){return g}});var H=e(5574),u=e.n(H),w=e(34041),i=e(67294),x=e(85893);function g(B){var r=B.title,z=B.defaultValue,m=B.onChange,A=B.options,f=B.fieldNames,I=(0,i.useState)(!1),n=u()(I,2),C=n[0],N=n[1],o=(0,i.useRef)(null);return(0,x.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(D){D.stopPropagation(),N(function(E){return!E})},onMouseLeave:function(){o.current=setTimeout(function(){N(!1)},200)},children:[r,(0,x.jsx)(w.default,{open:C,"data-testid":"select-".concat(r),popupMatchSelectWidth:!1,bordered:!1,defaultValue:z,onChange:m,popupClassName:"select-popup-".concat(r.replaceAll(" ","-")),fieldNames:f,options:A,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(o.current)}})]})}},7737:function(We,se,e){"use strict";e.d(se,{T:function(){return H.T},W:function(){return u.W}});var H=e(5346),u=e(56318)},56318:function(We,se,e){"use strict";e.d(se,{W:function(){return x}});var H=e(80844),u=e(67668),w=e(38752),i=e(81230);function x(){var g,B,r,z,m=(0,i.z9)(),A=m.fieldSchema,f=m.collectionField,I=(0,H.useField)(),n=(0,w.G5)(),C=(0,H.useFieldSchema)(),N=(0,u.Hy)(),o=A||C,a=f||N,D={AssociationField:"Select"},E=(o==null||(g=o["x-component-props"])===null||g===void 0?void 0:g.mode)||(I==null||(B=I.componentProps)===null||B===void 0?void 0:B.mode)||(n?"FileManager":"")||(o==null||(r=o["x-component-props"])===null||r===void 0?void 0:r.component)||(a==null||(z=a.uiSchema)===null||z===void 0?void 0:z["x-component"]);return D[E]||E}},52967:function(We,se,e){"use strict";e.d(se,{e:function(){return u}});var H=e(67294),u=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=(0,H.useRef)(0);return(0,H.useEffect)(function(){var g=function(r){var z=r.clientY,m=Math.max(z,window.innerHeight-z);x.current=m};return window.addEventListener("mousemove",g),function(){window.removeEventListener("mousemove",g)}},[]),(0,H.useMemo)(function(){return x.current-40},i)}},20085:function(We,se,e){"use strict";e.d(se,{O:function(){return g}});var H=e(10274),u=e(67294),w=e(69962),i=e(68230),x=function(r){var z=r.children,m=(0,i.d)(),A=m.token,f=A.colorFillTertiary,I=new H.C(A.colorFill).onBackground(A.colorFillSecondary).toHexShortString(),n=new H.C(A.colorFill).onBackground(A.colorFill).toHexShortString(),C=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",f),document.body.style.setProperty("--colorBgScrollBar",I),document.body.style.setProperty("--colorBgScrollBarHover",n),document.body.style.setProperty("--colorBgScrollBarActive",C),document.body.style.setProperty("--colorSettings",A.colorSettings||w.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)},[I,C,n,f,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]),z};x.displayName="CSSVariableProvider";var g=x},31959:function(We,se,e){"use strict";e.d(se,{S:function(){return I}});var H=e(97857),u=e.n(H),w=e(12444),i=e.n(w),x=e(72004),g=e.n(x),B=e(9783),r=e.n(B),z=e(96486),m=e.n(z),A=e(65375),f=e(84157),I=function(){function n(C){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=C}return g()(n,[{key:"addComponentOption",value:function(N){if(!this.componentOptions){var o,a;this.componentOptions=[];var D=(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(D){var V,J=((V=this.default)===null||V===void 0||(V=V.uiSchema)===null||V===void 0?void 0:V.type)||"string",$=(0,f.tval)(D.startsWith("Input")?(0,z.capitalize)(J):D.split(".").pop());this.componentOptions=[{label:$,value:D,useProps:function(){return E||{}}}]}}this.componentOptions.push(N)}},{key:"getConfigureFormProperties",value:function(){var N=this.hasDefaultValue?this.getDefaultValueProperty():{};return u()(u()({},(0,z.cloneDeep)(u()(u()({},A.defaultProps),this===null||this===void 0?void 0:this.properties))),N)}},{key:"getDefaultValueProperty",value:function(){var N,o;return{defaultValue:u()(u()(u()({},(0,z.cloneDeep)(this===null||this===void 0||(N=this.default)===null||N===void 0?void 0:N.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(We,se,e){"use strict";e.d(se,{S:function(){return H.S},Z:function(){return r}});var H=e(31959),u=e(12444),w=e.n(u),i=e(72004),x=e.n(i),g=e(9783),B=e.n(g),r=function(){function z(m,A,f){w()(this,z),B()(this,"collectionFieldInterfaceInstances",{}),B()(this,"collectionFieldGroups",{}),B()(this,"actionList",{}),this.dataSourceManager=f,this.addFieldInterfaces(m),this.addFieldInterfaceGroups(A)}return x()(z,[{key:"addFieldInterfaces",value:function(){var A=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=f.reduce(function(n,C){var N=new C(A);return n[N.name]=N,Array.isArray(A.actionList[N.name])&&(A.actionList[N.name].forEach(function(o){N[o.type](o.data)}),A.actionList[N.name]=void 0),n},{});Object.assign(this.collectionFieldInterfaceInstances,I)}},{key:"addFieldInterfaceComponentOption",value:function(A,f){var I=this.getFieldInterface(A);if(!I){this.actionList[A]||(this.actionList[A]=[]),this.actionList[A].push({type:"addComponentOption",data:f});return}I.addComponentOption(f)}},{key:"getFieldInterface",value:function(A){return this.collectionFieldInterfaceInstances[A]}},{key:"getFieldInterfaces",value:function(A){return Object.values(this.collectionFieldInterfaceInstances).filter(function(f){if(!A||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var I;return(I=f.supportDataSourceType)===null||I===void 0?void 0:I.includes(A)}if(f.notSupportDataSourceType){var n;return!((n=f.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]}}]),z}()},52020:function(We,se,e){"use strict";e.d(se,{s:function(){return E}});var H=e(97857),u=e.n(H),w=e(80844),i=e(85667),x=e(84327),g=e(96486),B=e.n(g),r=e(67294),z=e(7340),m=e(57105),A=e(15503),f=e(7105),I=e(29124),n=e(67668),C=e(85893),N=function(J,$,h){(0,i.untracked)(function(){J[$]===void 0&&(J[$]=h)})},o=function(J,$,h){typeof $.required>"u"&&(J.required=!!h.required)},a=function(J){var $,h=(0,f.eJW)(),M=(0,w.useField)(),p=(0,w.useFieldSchema)(),P=(0,n.Hy)(),v=P.uiSchema,U=P.defaultValue,j=(0,I.SF)(),c=j.isAllowToSetDefaultValue,d=(0,f.Cor)((($=p["x-component-props"])===null||$===void 0?void 0:$.component)||(v==null?void 0:v["x-component"])||"Input"),l=(0,z.bz)(),S=(0,A.M)(v==null?void 0:v["x-use-component-props"],J);return(0,r.useEffect)(function(){if(v){var G=h(v);if(N(M,"content",G["x-content"]),N(M,"title",G.title),N(M,"description",G.description),l!=null&&l.form){var y=c()?p.default||U:void 0;y!=null&&N(M,"initialValue",y)}if(!M.validator&&(G["x-validator"]||p["x-validator"])){var K=(0,g.concat)([],G["x-validator"]||[],p["x-validator"]||[]);M.validator=K}p["x-disabled"]===!0&&(M.disabled=!0),p["x-read-pretty"]===!0&&(M.readPretty=!0),o(M,p,G),M.dataSource=G.enum;var t=h(G["x-component-props"])||{};M.componentProps=(0,x.merge)(t,M.componentProps||{},S||{})}},[v]),v?(0,C.jsx)(d,u()(u()({},J),S)):null},D=function(J){var $,h=(0,w.useField)(),M=(0,w.useFieldSchema)(),p=(0,m.mz)(),P=p.uiSchema,v=(0,f.Cor)((($=M["x-component-props"])===null||$===void 0?void 0:$.component)||(P==null?void 0:P["x-component"])||"Input"),U=(0,A.M)(P==null?void 0:P["x-use-component-props"],J);return(0,r.useEffect)(function(){M["x-read-pretty"]===!0&&!h.readPretty&&(h.readPretty=!0)},[h,M]),P?(0,C.jsx)(v,u()(u()({},J),U)):null},E=(0,w.connect)(function(V){var J=(0,w.useFieldSchema)(),$=(0,m.cl)();return(0,C.jsx)(n.YT,{name:J.name,children:$?(0,C.jsx)(D,u()({},V)):(0,C.jsx)(a,u()({},V))})});E.displayName="CollectionField"},67668:function(We,se,e){"use strict";e.d(se,{Hy:function(){return z},YT:function(){return B},m9:function(){return r},v_:function(){return g}});var H=e(67294),u=e(80844),w=e(1836),i=e(36032),x=e(85893),g=(0,H.createContext)(null);g.displayName="CollectionFieldContext";var B=function(A){var f=A.name,I=A.children,n=A.allowNull,C=(0,u.useFieldSchema)(),N=(0,w.Kx)(),o=(0,w.d9)(),a=(0,H.useMemo)(function(){var D;if(!N)return null;var E=C==null||(D=C["x-component-props"])===null||D===void 0?void 0:D.field;return o.getCollectionField(C==null?void 0:C["x-collection-field"])||E||N.getField((E==null?void 0:E.name)||f)},[N,C,o,f]);return!a&&n?(0,x.jsx)(x.Fragment,{children:I}):a?(0,x.jsx)(g.Provider,{value:a,children:I}):(0,x.jsx)(i.z,{type:"Field",name:f})},r=function(A){return(0,x.jsx)(g.Provider,{value:null,children:A.children})},z=function(){var A=(0,H.useContext)(g);return A}},58530:function(We,se,e){"use strict";e.d(se,{D:function(){return B}});var H=e(12444),u=e.n(H),w=e(72004),i=e.n(w),x=e(9783),g=e.n(x),B=function(){function r(z){u()(this,r),g()(this,"data",void 0),g()(this,"parentRecord",void 0),g()(this,"isNew",void 0);var m=z.data,A=z.parentRecord,f=z.isNew;this.isNew=f,this.data=m,this.parentRecord=A}return i()(r,[{key:"setData",value:function(m){this.data=m}},{key:"setParentRecord",value:function(m){this.parentRecord=m}}]),r}()},49834:function(We,se,e){"use strict";e.d(se,{E0:function(){return x},Kv:function(){return z},RA:function(){return r},nE:function(){return B},oV:function(){return g},vI:function(){return i}});var H=e(67294),u=e(58530),w=e(85893),i=(0,H.createContext)(null);i.displayName="CollectionRecordContext";var x=H.memo(function(m){var A=m.isNew,f=m.record,I=m.parentRecord,n=m.children,C=(0,H.useMemo)(function(){if(I)return I instanceof u.D?I:new u.D({data:I});if(f instanceof u.D)return f.parentRecord},[I,f]),N=(0,H.useMemo)(function(){var o;return f?f instanceof u.D?(o=f,o.isNew=f.isNew||A):o=new u.D({data:f,isNew:A}):o=new u.D({isNew:A}),o.setParentRecord(C),o},[f,C,A]);return(0,w.jsx)(i.Provider,{value:N,children:n})});x.displayName="CollectionRecordProvider";function g(){var m=(0,H.useContext)(i);return m}function B(){var m=g();return m==null?void 0:m.data}function r(){var m=g();return m==null?void 0:m.parentRecord}function z(){var m,A=g();return A==null||(m=A.parentRecord)===null||m===void 0?void 0:m.data}},88496:function(We,se,e){"use strict";e.d(se,{DI:function(){return H.D},E0:function(){return u.E0},Kv:function(){return u.Kv},RA:function(){return u.RA},nE:function(){return u.nE},oV:function(){return u.oV},vI:function(){return u.vI}});var H=e(58530),u=e(49834)},373:function(We,se,e){"use strict";e.d(se,{d:function(){return g},k:function(){return x}});var H=e(85667),u=e(96486),w=e.n(u),i="__isNewRecord__",x=function(r){return(0,H.untracked)(function(){return!!(r!=null&&r[i])})},g=function(r){if(!(0,u.isObject)(r))throw new Error("markRecordAsNew: record must be an object");return r[i]=!0,r}},34096:function(We,se,e){"use strict";e.d(se,{P:function(){return B}});var H=e(72004),u=e.n(H),w=e(12444),i=e.n(w),x=e(9783),g=e.n(x),B=u()(function r(z){i()(this,r),g()(this,"name",void 0),g()(this,"Collection",void 0),g()(this,"title",void 0),g()(this,"color",void 0),g()(this,"order",void 0),g()(this,"default",void 0),g()(this,"events",void 0),g()(this,"configurableProperties",void 0),g()(this,"availableFieldInterfaces",void 0),g()(this,"divider",void 0),g()(this,"description",void 0),g()(this,"configureActions",void 0),g()(this,"forbidDeletion",void 0),g()(this,"supportDataSourceType",void 0),g()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=z})},67836:function(We,se,e){"use strict";e.d(se,{P:function(){return H.P},y:function(){return r}});var H=e(34096),u=e(12444),w=e.n(u),i=e(72004),x=e.n(i),g=e(9783),B=e.n(g),r=function(){function z(m,A){w()(this,z),B()(this,"collectionTemplateInstances",{}),this.dataSourceManager=A,this.addCollectionTemplates(m)}return x()(z,[{key:"addCollectionTemplates",value:function(){var A=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=f.reduce(function(n,C){var N=new C(A);return n[N.name]=N,n},{});return Object.assign(this.collectionTemplateInstances,I),this.dataSourceManager.getDataSources().forEach(function(n){var C=n.collectionManager.getCollections(function(N){return I[N.template]});n.collectionManager.reAddCollections(C)}),I}},{key:"getCollectionTemplate",value:function(A){return this.collectionTemplateInstances[A]}},{key:"getCollectionTemplates",value:function(A){return Object.values(this.collectionTemplateInstances).filter(function(f){if(!A||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var I;return(I=f.supportDataSourceType)===null||I===void 0?void 0:I.includes(A)}if(f.notSupportDataSourceType){var n;return!((n=f.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(A))}}).sort(function(f,I){return(f.order||0)-(I.order||0)})}}]),z}()},19271:function(We,se,e){"use strict";e.d(se,{Xo:function(){return A},lb:function(){return z},ym:function(){return m}});var H=e(67294),u=e(67668),w=e(36032),i=e(35746),x=e(58837),g=e(85893),B=(0,H.createContext)(null);B.displayName="ParentCollectionContext";var r=function(I){var n=(0,x.Kx)();return(0,g.jsx)(B.Provider,{value:n,children:I.children})},z=function(){return(0,H.useContext)(B)},m=function(I){var n=I.name,C=I.children,N=(0,i.d9)(),o=N.getCollectionName(n);return o?(0,g.jsx)(x.YQ,{name:String(n).split(".")[0],children:(0,g.jsx)(r,{children:(0,g.jsx)(u.YT,{name:n,children:(0,g.jsx)(x.YQ,{name:o,children:C})})})}):(0,g.jsx)(w.z,{type:"Collection",name:n})},A=function(){var I=(0,u.Hy)();return I!=null&&I.target?"".concat(I.collectionName,".").concat(I.name):null}},5282:function(We,se,e){"use strict";e.d(se,{F:function(){return A}});var H=e(61227),u=e.n(H),w=e(12444),i=e.n(w),x=e(72004),g=e.n(x),B=e(9783),r=e.n(B),z=e(96486),m=e.n(z),A=function(){function f(I,n){i()(this,f),r()(this,"fieldsMap",void 0),r()(this,"primaryKey",void 0),this.options=I,this.collectionManager=n}return g()(f,[{key:"fields",get:function(){return this.options.fields||[]}},{key:"app",get:function(){return this.collectionManager.app}},{key:"dataSource",get:function(){return this.options.dataSource}},{key:"sourceKey",get:function(){return this.options.sourceKey}},{key:"name",get:function(){return this.options.name}},{key:"key",get:function(){return this.options.key}},{key:"title",get:function(){return this.options.title}},{key:"inherit",get:function(){return this.options.inherit}},{key:"hidden",get:function(){return this.options.hidden}},{key:"description",get:function(){return this.options.description}},{key:"duplicator",get:function(){return this.options.duplicator}},{key:"category",get:function(){return this.options.category}},{key:"targetKey",get:function(){return this.options.targetKey}},{key:"model",get:function(){return this.options.model}},{key:"createdBy",get:function(){return this.options.createdBy}},{key:"updatedBy",get:function(){return this.options.updatedBy}},{key:"logging",get:function(){return this.options.logging}},{key:"from",get:function(){return this.options.from}},{key:"rawTitle",get:function(){return this.options.rawTitle}},{key:"getPrimaryKey",value:function(){if(this.primaryKey)return this.primaryKey;if(this.options.targetKey)return this.options.targetKey;var n=this.getFields({primaryKey:!0})[0];return this.primaryKey=n==null?void 0:n.name,this.primaryKey}},{key:"getFilterTargetKey",value:function(){return this.filterTargetKey||this.getPrimaryKey()||"id"}},{key:"inherits",get:function(){return this.options.inherits||[]}},{key:"titleField",get:function(){return this.hasField(this.options.titleField)?this.options.titleField:this.getPrimaryKey()}},{key:"sources",get:function(){return this.options.sources||[]}},{key:"template",get:function(){return this.options.template}},{key:"tableName",get:function(){return this.options.tableName}},{key:"viewName",get:function(){return this.options.viewName}},{key:"writableView",get:function(){return this.options.writableView}},{key:"filterTargetKey",get:function(){return this.options.filterTargetKey}},{key:"sortable",get:function(){return this.options.sortable}},{key:"autoGenId",get:function(){return this.options.autoGenId}},{key:"magicAttribute",get:function(){return this.options.magicAttribute}},{key:"tree",get:function(){return this.options.tree}},{key:"isThrough",get:function(){return this.options.isThrough}},{key:"autoCreate",get:function(){return this.options.autoCreate}},{key:"resource",get:function(){return this.options.resource}},{key:"setOption",value:function(n,C){return this.options[n]=C,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,z.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,C){return n[C.name]=C,n},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(n){var C=this.getFieldsMap(),N=String(n).split("."),o=u()(N),a=o[0],D=o.slice(1),E=C[a];if(E){var V=E==null?void 0:E.target;if(V){var J=this.collectionManager.getCollection(V);if(J)return J.getField(D.join("."))}}}},{key:"getField",value:function(n){if(n){var C=this.getFieldsMap();if(String(n).split(".").length>1){var N=this.getFieldByAssociationName(n);return N||(typeof n=="string"&&n.startsWith("".concat(this.name,"."))?(n=n.replace("".concat(this.name,"."),""),this.getField(n)):void 0)}return C[n]}}},{key:"hasField",value:function(n){return!!this.getField(n)}},{key:"isTitleField",value:function(n){var C;return(C=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(n.interface))===null||C===void 0?void 0:C.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),f}()},35746:function(We,se,e){"use strict";e.d(se,{IX:function(){return B},bX:function(){return A},d9:function(){return m},xw:function(){return z}});var H=e(5574),u=e.n(H),w=e(67294),i=e(44990),x=e(58861),g=e(85893),B=(0,w.createContext)(null);B.displayName="CollectionManagerContext";var r=function(I){var n=I.instance,C=I.children,N=(0,i.wl)(),o=(0,x.P5)(),a=(0,w.useMemo)(function(){return n||(N==null?void 0:N.collectionManager)},[n,N]),D=w.useState(Math.random()),E=u()(D,2),V=E[0],J=E[1];(0,w.useEffect)(function(){a.dataSource.addReloadCallback(function(){J(Math.random())})},[a]);var $=(0,w.useMemo)(function(){var h=a;return o!=null&&o.length?h.clone(o):h},[a,o,V]);return(0,g.jsx)(B.Provider,{value:$,children:C})},z=function(I){var n=I.instance,C=I.dataSource,N=I.children;return(0,g.jsx)(i.LX,{dataSource:C,children:(0,g.jsx)(r,{instance:n,children:N})})};function m(){var f=(0,w.useContext)(B);return f}var A=function(I){var n=m(),C=(0,w.useMemo)(function(){return n.getCollections(I)},[n,I]);return C}},58837:function(We,se,e){"use strict";e.d(se,{Kx:function(){return A},Pd:function(){return m},WH:function(){return r},YQ:function(){return z},ge:function(){return f}});var H=e(97857),u=e.n(H),w=e(67294),i=e(67668),x=e(36032),g=e(35746),B=e(85893),r=(0,w.createContext)(null);r.displayName="CollectionContext";var z=function(n){var C=n.name,N=n.children,o=n.allowNull,a=(0,g.d9)(),D=(0,w.useMemo)(function(){return a==null?void 0:a.getCollection(C)},[a,C]);return!D&&o?(0,B.jsx)(B.Fragment,{children:n.children}):!D&&!o?(0,B.jsx)(x.z,{type:"Collection",name:C}):(0,B.jsx)(r.Provider,{value:D,children:N})},m=function(n){return(0,B.jsx)(i.v_.Provider,{value:null,children:(0,B.jsx)(z,u()({},n))})};function A(){var I=(0,w.useContext)(r);return I}var f=function(n){var C=A(),N=(0,w.useMemo)(function(){return C.getFields(n)},[C,n]);return N}},58861:function(We,se,e){"use strict";e.d(se,{P5:function(){return z},Xc:function(){return B},j5:function(){return r}});var H=e(19632),u=e.n(H),w=e(67294),i=e(44990),x=e(35746),g=e(85893),B=(0,w.createContext)(null);B.displayName="ExtendCollectionsContext";var r=function(A){var f=A.children,I=A.collections,n=z(),C=(0,w.useMemo)(function(){return n?[].concat(u()(n),u()(I)):I},[n,I]),N=(0,i.FC)();return(0,g.jsx)(B.Provider,{value:C,children:(0,g.jsx)(x.xw,{dataSource:N,children:f})})};function z(){var m=(0,w.useContext)(B);return m}},1836:function(We,se,e){"use strict";e.d(se,{ym:function(){return w.ym},FE:function(){return H.F},WH:function(){return u.WH},w4:function(){return h},IX:function(){return M.IX},xw:function(){return M.xw},YQ:function(){return u.YQ},Xc:function(){return p.Xc},j5:function(){return p.j5},Pd:function(){return u.Pd},Xo:function(){return w.Xo},Kx:function(){return u.Kx},ge:function(){return u.ge},d9:function(){return M.d9},bX:function(){return M.bX},P5:function(){return p.P5},lb:function(){return w.lb}});var H=e(5282),u=e(58837),w=e(19271),i=e(61227),x=e.n(i),g=e(52677),B=e.n(g),r=e(97857),z=e.n(r),m=e(12444),A=e.n(m),f=e(72004),I=e.n(f),n=e(9783),C=e.n(n),N=e(80129),o=e.n(N),a=e(13769),D=e.n(a),E=["rawTitle","title","fields"],V=["uiSchema"],J=function(v,U){var j=v.rawTitle,c=v.title,d=v.fields,l=d===void 0?[]:d,S=D()(v,E);return z()(z()({},S),{},{title:j?c:U.i18n.t(c,{ns:"lm-collections"}),rawTitle:j||c,fields:l==null?void 0:l.map(function(G){var y=G.uiSchema,K=D()(G,V);if(y!=null&&y.title){var t=y.title;y.title=y.rawTitle?t:U.i18n.t(t,{ns:"lm-collections"}),y.rawTitle=y.rawTitle||t}return Array.isArray(y==null?void 0:y.enum)&&(y.enum=y.enum.map(function(F){return z()(z()({},F),{},{value:(F==null?void 0:F.value)===void 0?F:F.value,label:F.rawLabel?F.label:U.i18n.t(F.label,{ns:"lm-collections"}),rawLabel:F.rawLabel||F.label})})),z()({uiSchema:y},K)})})};function $(P,v,U,j){var c=new P(U,j);return v.forEach(function(d){var l=new d(U,j);Object.getOwnPropertyNames(l).forEach(function(S){var G=Object.getOwnPropertyDescriptor(l,S);G?Object.defineProperty(c,S,G):c[S]=l[S]}),Object.getOwnPropertyNames(d.prototype).forEach(function(S){S!=="constructor"&&(c.__proto__[S]=d.prototype[S])})}),c}var h=function(){function P(v,U){A()(this,P),C()(this,"collectionInstancesMap",{}),C()(this,"collectionInstancesArr",[]),this.dataSource=U,this.addCollections(v)}return I()(P,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(U){var j=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(U.template),c=(j==null?void 0:j.Collection)||H.F,d=j==null?void 0:j.transform,l=d?d(J(U,this.app),this.app):J(U,this.dataSource.dataSourceManager.app),S=z()(z()({},l),{},{dataSource:this.dataSource.key}),G=$(c,this.dataSourceManager.collectionMixins,S,this);return G}},{key:"getInstancesMap",value:function(){var U=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=j.map(function(d){return U.getCollectionInstance(d)});return c.reduce(function(d,l){return d[l.name]=l,d},{})}},{key:"addCollections",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=this.getInstancesMap(U);this.collectionInstancesMap=z()(z()({},this.collectionInstancesMap),j),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"setCollections",value:function(U){this.collectionInstancesMap=this.getInstancesMap(U),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"reAddCollections",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.collectionInstancesArr,j=U.map(function(c){return c.getOptions()});this.addCollections(j)}},{key:"getCollection",value:function(U){if(U){if(B()(U)==="object")return this.getCollectionInstance(U);if(String(U).split(".").length>1){var j=this.getCollectionField(U);return j?this.getCollection(j.target):void 0}return this.collectionInstancesMap[U]}}},{key:"getCollections",value:function(U){return U?this.collectionInstancesArr.filter(U):this.collectionInstancesArr}},{key:"getCollectionName",value:function(U){var j=this.getCollection(U);return j==null?void 0:j.name}},{key:"getCollectionField",value:function(U){if(U){if(B()(U)==="object")return U;if(String(U).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(U,'" is invalid'));return}var j=String(U).split("."),c=x()(j),d=c[0],l=c.slice(1),S=this.getCollection(d);if(S)return S.getField(l.join("."))}}},{key:"getCollectionFields",value:function(U,j){var c;return((c=this.getCollection(U))===null||c===void 0?void 0:c.getFields(j))||[]}},{key:"getCollectionAllFields",value:function(U,j){var c;return((c=this.getCollection(U))===null||c===void 0?void 0:c.getAllFields(j))||[]}},{key:"getFilterByTK",value:function(U,j){if(!U||!j){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}var c=function(K,t){if(Array.isArray(K)){var F={};return K.forEach(function(O){F[O]=t[O]}),o().stringify(F)}else return t[K]};if(U instanceof H.F){var d=U.getFilterTargetKey();return c(d,j)}if(U.includes(".")){var l=this.getCollectionField(U);if(!l){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(U,'" is invalid'));return}if(l.targetKey)return j[l.targetKey]}var S=this.getCollection(U);if(!S){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(U,'" is invalid'));return}var G=S.getFilterTargetKey();return c(G,j)}},{key:"getSourceKeyByAssociation",value:function(U){if(U){var j=this.getCollectionField(U);if(j){if(j.sourceKey)return j.sourceKey;var c=this.getCollection(U.split(".")[0]);if(c)return c.filterTargetKey||c.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=new P([],this.dataSource);return j.collectionInstancesArr=this.collectionInstancesArr,j.collectionInstancesMap=this.collectionInstancesMap,j.addCollections(U),j}}]),P}(),M=e(35746),p=e(58861)},22558:function(We,se,e){"use strict";e.d(se,{K:function(){return f}});var H=e(9783),u=e.n(H),w=e(97857),i=e.n(w),x=e(80844),g=e(96486),B=e.n(g),r=e(26793),z=e(13511),m=e(67668),A=e(7105),f={name:"fieldComponent",type:"select",useVisible:function(){var n=(0,m.Hy)(),C=(0,z.fp)();if(!n)return!1;var N=C.collectionFieldInterfaceManager.getFieldInterface(n==null?void 0:n.interface);return Array.isArray(N==null?void 0:N.componentOptions)&&N.componentOptions.length>1&&N.componentOptions.filter(function(o){return!o.useVisible||o.useVisible()}).length>1},useComponentProps:function(){var n,C,N,o=(0,r.$)(),a=o.t,D=(0,x.useField)(),E=(0,x.useFieldSchema)(),V=(0,m.Hy)(),J=(0,z.fp)(),$=J.collectionFieldInterfaceManager.getFieldInterface(V==null?void 0:V.interface),h=(0,A.z9d)(),M=h.fieldSchema,p=M||E,P=(0,A.ngQ)(),v=P.dn,U=(0,A.eJW)(),j=($==null||(n=$.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:U(c.label),value:c.value,useProps:c.useProps}}))||[];return{title:a("Field component"),options:j,value:((C=p["x-component-props"])===null||C===void 0?void 0:C.component)||((N=j[0])===null||N===void 0?void 0:N.value),onChange:function(d){var l,S,G=j.find(function(K){return K.value===d}),y=i()({component:d},(G==null||(l=G.useProps)===null||l===void 0?void 0:l.call(G))||{});B().set(p,"x-component-props",y),D.componentProps=y,v.emit("patch",{schema:(S={},u()(S,"x-uid",p["x-uid"]),u()(S,"x-component-props",y),S)})}}}}},36032:function(We,se,e){"use strict";e.d(se,{p:function(){return D},z:function(){return o}});var H=e(97857),u=e.n(H),w=e(48997),i=e(3321),x=e(59720),g=e(15867),B=e(67294),r=e(26793),z=e(7105),m=e(44990),A=e(49453),f=e(57638),I=e(1836),n=e(18243),C=e(85893),N=w.Z.Text,o=function(V){var J=V.type,$=V.name,h=V.message,M=(0,z.ngQ)(),p=M.designable,P=M.dn,v=i.Z.useApp(),U=v.modal,j=(0,r.$)(),c=j.t,d=(0,m.wl)(),l=(0,z.eJW)(),S=(0,I.Kx)(),G=(0,A.fp)(),y=(0,B.useMemo)(function(){if(J==="Data Source")return $;var F=(G==null?void 0:G.getDataSources().length)>=1&&d&&d.key!==f.ym?"".concat(l(d.displayName||d.key)," > "):"";if(J==="Collection")return"".concat(F).concat($);var O=S?"".concat(l(S.title)||S.name||S.tableName," > "):"";return"".concat(F).concat(O).concat($)},[]),K=(0,B.useMemo)(function(){return J==="Field"?"Field":"Block"},[J]),t=(0,B.useMemo)(function(){return $?h?"".concat(c(J),' "').concat(y,'" ').concat(h):c('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:c(J).toLocaleLowerCase(),name:y,blockType:c(K).toLocaleLowerCase()}).replaceAll(">",">"):"".concat(c(J)," ","name is required")},[h,y,J,c,K]);return p?J==="Field"?(0,C.jsx)(z.BQs,{ellipsis:!0,children:(0,C.jsx)(N,{type:"secondary",children:t})}):(0,C.jsx)(n.P,{children:(0,C.jsx)(x.ZP,{status:"404",subTitle:t,extra:(0,C.jsx)(g.ZP,{onClick:function(){return U.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 V=(0,r.$)(),J=V.t,$=(0,m.wl)(),h=(0,z.eJW)(),M=(0,I.Kx)(),p=(0,A.fp)(),P=(0,B.useMemo)(function(){var U=(p==null?void 0:p.getDataSources().length)>=1&&$&&$.key!==f.ym?"".concat(h($.displayName||$.key)," > "):"";if(M)return"".concat(U).concat(M.name);var j=M?"".concat(h(M.title)||M.name||M.tableName," > "):"";return"".concat(U).concat(j).concat(M.name)},[]),v=(0,B.useMemo)(function(){return J(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:P}).replaceAll(">",">")},[P,J]);return(0,C.jsx)(n.P,{children:(0,C.jsx)(x.ZP,{status:"404",subTitle:v})})},D=function(){var V=(0,z.ngQ)(),J=V.designable;return J?(0,C.jsx)(a,{}):null}},88996:function(We,se,e){"use strict";e.d(se,{i:function(){return m}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(67294),g=e(13511),B=e(35746),r=e(85893),z=["children","dataSourceManager"],m=function(f){var I=f.children,n=f.dataSourceManager,C=i()(f,z);return(0,r.jsx)(g.kv,{dataSourceManager:n,children:(0,r.jsx)(B.xw,u()(u()({},C),{},{children:I}))})}},87180:function(We,se,e){"use strict";e.d(se,{KY:function(){return V},Rr:function(){return h},dq:function(){return E},eS:function(){return J},hZ:function(){return o},sI:function(){return D},zh:function(){return $}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(5574),g=e.n(x),B=e(67294),r=e(75667),z=e(67205),m=e(15503),A=e(7105),f=e(1836),I=e(39742),n=e(14310),C=e(85893),N=["collection","association","dataSource","children","hidden"],o=(0,B.createContext)({});o.displayName="DataBlockContext";var a=(0,B.createContext)(null),D=function(p){var P=p.children,v=B.useState(!1),U=g()(v,2),j=U[0],c=U[1],d=(0,B.useMemo)(function(){return{rerenderDataBlock:function(){c(!0),setTimeout(function(){c(!1)})}}},[]);return j?null:(0,C.jsx)(a.Provider,{value:d,children:P})},E=function(p){var P=p.collection,v=p.association,U=p.allowNull,j=U===void 0?!1:U,c=(0,B.useMemo)(function(){return v?{Component:f.ym,name:v}:{Component:f.Pd,name:P}},[P,v]);return(0,C.jsx)(c.Component,{name:c.name,allowNull:j,children:p.children})},V=(0,m.t)(B.memo(function(M){var p=M,P=p.collection,v=p.association,U=p.dataSource,j=p.children,c=p.hidden,d=i()(p,N),l=(0,A.ngQ)(),S=l.dn;return c?null:(0,C.jsx)(o.Provider,{value:{dn:S,props:u()(u()({},d),{},{collection:P,association:v,dataSource:U})},children:(0,C.jsx)(f.xw,{dataSource:U,children:(0,C.jsx)(E,{collection:P,association:v,children:(0,C.jsx)(r.Hh,{children:(0,C.jsx)(n.eh,{children:(0,C.jsx)(I.N4,{children:(0,C.jsx)(z.vY,{params:M.params,children:(0,C.jsx)(D,{children:j})})})})})})})})}),{displayName:"DataBlockProvider"}),J=function(){var p=(0,B.useContext)(o);if(!p)throw new Error("useDataBlock() must be used within a DataBlockProvider");return p},$=function(){var p=J();return p.props},h=function(){var p=(0,B.useContext)(a);if(!p)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return p}},39742:function(We,se,e){"use strict";e.d(se,{H0:function(){return p},N4:function(){return U},Pt:function(){return c},hS:function(){return j},q4:function(){return $},uz:function(){return v},xQ:function(){return d}});var H=e(15009),u=e.n(H),w=e(99289),i=e.n(w),x=e(97857),g=e.n(x),B=e(5574),r=e.n(B),z=e(67294),m=e(96486),A=e.n(m),f=e(12174),I=e(4277),n=e(19530),C=e(54724),N=e(21044),o=e(88496),a=e(8341),D=e(87180),E=e(14310),V=e(85893),J=(0,z.createContext)(null);J.displayName="BlockRequestRefContext";var $=(0,z.createContext)(!1);$.displayName="BlockRequestLoadingContext";var h=(0,z.createContext)(null);h.displayName="BlockRequestDataContext";function M(l){var S=(0,I.tU)(),G=(0,E.wb)(),y=l.action,K=l.params,t=K===void 0?{}:K,F=l.record,O=l.requestService,L=l.requestOptions,b=l.sourceId,T=l.association,q=l.parentRecord,ne=(0,f.LY)(),oe=(0,D.zh)(),Y=(0,a.FE)(oe.dataSource),W=(0,n.U)(T),Q=(0,z.useMemo)(function(){return[JSON.stringify(t),JSON.stringify(F)]},[t,F]),fe=r()(Q,2),X=fe[0],ue=fe[1],be=function(ie){var ee;if(F)return Promise.resolve({data:F});if(!y)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(y==="get"&&A().isNil(t.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var ce=t.filterByTk===void 0?A().omit(t,"filterByTk"):t;return(ee=G[y])===null||ee===void 0?void 0:ee.call(G,g()(g()({},ce),ie)).then(function(ve){return ve.data})},ge=function(){var Se=i()(u()().mark(function ie(){var ee,ce,ve,Z,le=arguments;return u()().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,Promise.all([(O||be).apply(void 0,le),p({sourceId:b,association:T,parentRecord:q,api:ne,headers:Y,sourceKey:W})]);case 2:return ee=Me.sent,ce=r()(ee,2),ve=ce[0],Z=ce[1],ve&&(ve.parentRecord=Z==null?void 0:Z.data),Me.abrupt("return",ve);case 8:case"end":return Me.stop()}},ie)}));return function(){return Se.apply(this,arguments)}}(),me=(0,f.QT)(ge,g()(g()({},L),{},{manual:S==="manual",ready:!!y,refreshDeps:[y,X,ue,G,T,q,b]}));return me}function p(l){return P.apply(this,arguments)}function P(){return P=i()(u()().mark(function l(S){var G,y,K,t,F,O,L,b,T;return u()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(G=S.sourceId,y=S.association,K=S.parentRecord,t=S.api,F=S.headers,O=S.sourceKey,!K){ne.next=3;break}return ne.abrupt("return",Promise.resolve({data:K}));case 3:if(!(!y||!O||!G)){ne.next=5;break}return ne.abrupt("return",Promise.resolve({data:void 0}));case 5:return L=y.split("."),b="".concat(L[0],":get?filter[").concat(O,"]=").concat(G),ne.next=9,t.request({url:b,headers:F});case 9:return T=ne.sent,ne.abrupt("return",T.data);case 11:case"end":return ne.stop()}},l)})),P.apply(this,arguments)}var v=function(S){var G,y,K,t,F=(0,z.useRef)(S.recordRequest),O=(0,z.useRef)((G=S.recordRequest)===null||G===void 0?void 0:G.data),L=(0,C.Du)(),b=L.active,T=(0,z.useRef)(b),q=(0,z.useDeferredValue)(b),ne=(0,D.zh)();if(q&&!T.current&&ne.dataLoadingMode==="auto"){var oe;(oe=S.recordRequest)===null||oe===void 0||oe.refresh()}if(q&&T.current&&!((y=S.recordRequest)!==null&&y!==void 0&&y.loading)&&!A().isEqual(O.current,(K=S.recordRequest)===null||K===void 0?void 0:K.data)){var Y;O.current=(Y=S.recordRequest)===null||Y===void 0?void 0:Y.data}return q!==T.current&&(T.current=q),F.current=S.recordRequest,(0,V.jsx)(J.Provider,{value:F,children:(0,V.jsx)($.Provider,{value:(t=S.recordRequest)===null||t===void 0?void 0:t.loading,children:(0,V.jsx)(h.Provider,{value:O.current,children:S.children})})})},U=z.memo(function(l){var S,G,y=l.children,K=(0,D.zh)(),t=K.action,F=K.filterByTk,O=K.sourceId,L=K.params,b=L===void 0?N.Nu:L,T=K.association,q=K.collection,ne=K.record,oe=K.parentRecord,Y=K.requestOptions,W=K.requestService,Q=(0,z.useMemo)(function(){return g()(g()({},b),{},{filterByTk:F||b.filterByTk})},[F,b]),fe=M({action:t,sourceId:O,record:ne,association:T,collection:q,requestOptions:Y,requestService:W,params:Q,parentRecord:oe}),X=(S=fe.data)===null||S===void 0?void 0:S.parentRecord,ue=(0,z.useMemo)(function(){return X&&new o.DI({isNew:!1,data:X instanceof o.DI?X.data:X})},[X]);return(0,V.jsx)(v,{recordRequest:fe,children:t!=="list"?(0,V.jsx)(o.E0,{isNew:t==null,record:((G=fe.data)===null||G===void 0?void 0:G.data)||ne,parentRecord:ue||oe,children:y}):(0,V.jsx)(o.E0,{isNew:!1,record:null,parentRecord:ue||oe,children:y})})});U.displayName="DataBlockRequestProvider";var j=function(){var S=(0,z.useContext)(J),G=(0,z.useContext)($),y=(0,z.useContext)(h);return(0,z.useMemo)(function(){return S?g()(g()({},S.current),{},{loading:G,data:y}):null},[S,y,G])},c=function(){var S=(0,z.useContext)(J);return(0,z.useMemo)(function(){return{getDataBlockRequest:function(){return S?S.current:null}}},[S])},d=function(){return(0,z.useContext)(h)}},14310:function(We,se,e){"use strict";e.d(se,{T1:function(){return f},eh:function(){return I},wb:function(){return n}});var H=e(96695),u=e.n(H),w=e(96486),i=e.n(w),x=e(67294),g=e(12174),B=e(1836),r=e(88496),z=e(8341),m=e(87180),A=e(85893),f=(0,x.createContext)(null);f.displayName="DataBlockResourceContext";var I=function(N){var o=N.children,a=(0,m.zh)(),D=(0,B.d9)(),E=a.association,V=a.collection,J=a.dataSource,$=a.sourceId,h=a.parentRecord,M=(0,g.LY)(),p=(0,z.FE)(J),P=(0,x.useMemo)(function(){return typeof V=="string"?V:V==null?void 0:V.name},[V]),v=(0,x.useMemo)(function(){if($)return $;if(E&&h){var j=D.getSourceKeyByAssociation(E),c=h instanceof r.DI?h.data:h;if((0,w.isArray)(j)){var d={},l=u()(j),S;try{for(l.s();!(S=l.n()).done;){var G=S.value;d[G]=c==null?void 0:c[G]}}catch(y){l.e(y)}finally{l.f()}return encodeURIComponent(JSON.stringify(d))}else return c[j]}},[E,$,h]),U=(0,x.useMemo)(function(){return E?M.resource(E,v,p,!v):M.resource(P,void 0,p)},[M,E,V,v,p]);return(0,A.jsx)(f.Provider,{value:U,children:o})};function n(){var C=(0,x.useContext)(f);if(!C)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return C}},35519:function(We,se,e){"use strict";e.d(se,{n:function(){return o},o:function(){return N}});var H=e(31996),u=e.n(H),w=e(26037),i=e.n(w),x=e(15009),g=e.n(x),B=e(99289),r=e.n(B),z=e(12444),m=e.n(z),A=e(72004),f=e.n(A),I=e(9783),n=e.n(I),C=e(1836),N=function(){function a(D,E){m()(this,a),n()(this,"collectionManager",void 0),n()(this,"reloadCallbacks",[]),this.options=D,this.dataSourceManager=E,this.collectionManager=new C.w4(D.collections,this)}return f()(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(V){return V!==E})}},{key:"reload",value:function(){var D=r()(g()().mark(function V(){var J;return g()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,this.getDataSource();case 2:return J=h.sent,this.setOptions(J),this.collectionManager.setCollections(J.collections||[]),this.reloadCallbacks.forEach(function(M){return M(J.collections)}),h.abrupt("return",this.options);case 7:case"end":return h.stop()}},V,this)}));function E(){return D.apply(this,arguments)}return E}()}]),a}(),o=function(a){u()(E,a);var D=i()(E);function E(){return m()(this,E),D.apply(this,arguments)}return f()(E,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),E}(N)},57638:function(We,se,e){"use strict";e.d(se,{AK:function(){return h},UC:function(){return $},ym:function(){return J}});var H=e(97857),u=e.n(H),w=e(15009),i=e.n(w),x=e(5574),g=e.n(x),B=e(99289),r=e.n(B),z=e(19632),m=e.n(z),A=e(12444),f=e.n(A),I=e(72004),n=e.n(I),C=e(9783),N=e.n(C),o=e(35519),a=e(67836),D=e(65050),E=e(96486),V=e.n(E),J="main",$='{{t("Main")}}',h=function(){function M(){var p,P=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=arguments.length>1?arguments[1]:void 0;f()(this,M),N()(this,"dataSourceInstancesMap",{}),N()(this,"multiDataSources",[]),N()(this,"collectionMixins",[]),N()(this,"collectionTemplateManager",void 0),N()(this,"collectionFieldInterfaceManager",void 0),this.options=v,this.app=U,this.collectionTemplateManager=new a.y(v.collectionTemplates,this),this.collectionFieldInterfaceManager=new D.Z(v.fieldInterfaces,v.fieldInterfaceGroups,this),(p=this.collectionMixins).push.apply(p,m()(v.collectionMixins||[])),this.addDataSource(o.n,{key:J,displayName:$,collections:v.collections||[]}),(v.dataSources||[]).forEach(function(j){P.addDataSource(o.n,j)})}return n()(M,[{key:"addCollectionMixins",value:function(){var P=this,v,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=U.filter(function(c){return!P.collectionMixins.includes(c)});j.length&&((v=this.collectionMixins).push.apply(v,m()(j)),this.getDataSources().forEach(function(c){return c.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(P){var v=Object.values(this.dataSourceInstancesMap);return P?V().filter(v,P):v}},{key:"getDataSource",value:function(P){return P?this.dataSourceInstancesMap[P]:this.dataSourceInstancesMap[J]}},{key:"removeDataSources",value:function(P){var v=this;P.forEach(function(U){delete v.dataSourceInstancesMap[U]})}},{key:"addDataSource",value:function(P,v){var U=new P(v,this);return this.dataSourceInstancesMap[U.key]=U,U}},{key:"addDataSources",value:function(){var p=r()(i()().mark(function v(U,j){return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!this.multiDataSources.some(function(l){var S=g()(l,2),G=S[0],y=S[1];return G===U&&y===j})){d.next=2;break}return d.abrupt("return");case 2:this.multiDataSources.push([U,j]);case 3:case"end":return d.stop()}},v,this)}));function P(v,U){return p.apply(this,arguments)}return P}()},{key:"getAllCollections",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=P.filterCollection,U=P.filterDataSource;return this.getDataSources(U).reduce(function(j,c){return j.push(u()(u()({},c.getOptions()),{},{collections:c.collectionManager.getCollections(v)})),j},[])}},{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 v(){var U=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 G,y,K,t;return i()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return G=g()(S,2),y=G[0],K=G[1],O.next=3,y();case 3:t=O.sent,t.map(function(L){return U.addDataSource(K,L)});case 5:case"end":return O.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()}},v,this)}));function P(){return p.apply(this,arguments)}return P}()}]),M}()},13511:function(We,se,e){"use strict";e.d(se,{Uv:function(){return g},fp:function(){return x},kv:function(){return i},up:function(){return w}});var H=e(67294),u=e(85893),w=(0,H.createContext)(null);w.displayName="DataSourceManagerContext";var i=function(r){var z=r.children,m=r.dataSourceManager;return(0,u.jsx)(w.Provider,{value:m,children:z})};function x(){var B=(0,H.useContext)(w);return B}function g(){var B=x(),r=(0,H.useCallback)(function(z,m){var A;return B==null||(A=B.getDataSource(m))===null||A===void 0||(A=A.collectionManager)===null||A===void 0||(A=A.getCollection(z))===null||A===void 0?void 0:A.getAllCollectionsInheritChain()},[B]);return{getAllCollectionsInheritChain:r}}},44990:function(We,se,e){"use strict";e.d(se,{FC:function(){return C},LX:function(){return I},NT:function(){return f},wl:function(){return n}});var H=e(5574),u=e.n(H),w=e(67294),i=e(13511),x=e(36032),g=e(7105),B=e(59720),r=e(15867),z=e(50888),m=e(26793),A=e(85893),f=(0,w.createContext)(null);f.displayName="DataSourceContext";var I=function(o){var a=o.children,D=o.dataSource,E=(0,i.fp)(),V=(0,m.$)(),J=V.t,$=(0,g.Dmu)(),h=$.refresh,M=w.useState(0),p=u()(M,2),P=p[0],v=p[1],U=E==null?void 0:E.getDataSource(D);return U?U.status==="loading-failed"?(0,A.jsx)(x.z,{type:"Data Source",name:U.displayName||D,message:U.errorMessage||"loading failed"}):U.status==="loading"||U.status==="reloading"?(0,A.jsx)(g.Ssf,{children:(0,A.jsx)(B.ZP,{icon:(0,A.jsx)(z.Z,{}),title:"".concat(U.displayName||D," ").concat(J("data source")," ").concat(J("loading"),"..."),extra:(0,A.jsx)(r.ZP,{type:"primary",onClick:function(){return U.reload().then(function(){h(),v(Math.random())})},children:J("Refresh")})})}):(0,A.jsx)(f.Provider,{value:U,children:a}):(0,A.jsx)(x.z,{type:"Data Source",name:D})};function n(){var N=(0,w.useContext)(f);return N}function C(){var N=(0,w.useContext)(f);return N==null?void 0:N.key}},49453:function(We,se,e){"use strict";e.d(se,{AK:function(){return u.AK},FC:function(){return w.FC},LX:function(){return w.LX},NT:function(){return w.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 w.wl},ym:function(){return u.ym}});var H=e(35519),u=e(57638),w=e(44990),i=e(13511)},94804:function(We,se,e){"use strict";e.d(se,{dq:function(){return m.dq},ym:function(){return H.ym},uz:function(){return z.uz},q4:function(){return z.q4},N4:function(){return z.N4},m9:function(){return w.m9},FE:function(){return H.FE},WH:function(){return H.WH},zW:function(){return g.z},sb:function(){return u.s},v_:function(){return w.v_},SY:function(){return i.S},Z:function(){return i.Z},YT:function(){return w.YT},Cd:function(){return t},rJ:function(){return G},lC:function(){return O},w4:function(){return H.w4},IX:function(){return H.IX},xw:function(){return H.xw},pD:function(){return g.p},YQ:function(){return H.YQ},DI:function(){return f.DI},vI:function(){return f.vI},E0:function(){return f.E0},Pl:function(){return x.P},yM:function(){return x.y},Ip:function(){return A.ym},UC:function(){return A.UC},hZ:function(){return m.hZ},KY:function(){return m.KY},T1:function(){return r.T1},eh:function(){return r.eh},o2:function(){return A.o2},i:function(){return B.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 m.sI},Pd:function(){return H.Pd},K0:function(){return L.K},iv:function(){return K},GX:function(){return I.GX},Yj:function(){return I.Yj},H0:function(){return z.H0},Uv:function(){return A.Uv},Xo:function(){return H.Xo},Kx:function(){return H.Kx},Hy:function(){return w.Hy},ge:function(){return H.ge},d9:function(){return H.d9},RA:function(){return f.RA},Kv:function(){return f.Kv},oV:function(){return f.oV},nE:function(){return f.nE},bX:function(){return H.bX},eS:function(){return m.eS},zh:function(){return m.zh},hS:function(){return z.hS},xQ:function(){return z.xQ},Pt:function(){return z.Pt},wb:function(){return r.wb},wl:function(){return A.wl},on:function(){return I.FE},FC:function(){return A.FC},fp:function(){return A.fp},P5:function(){return H.P5},lb:function(){return H.lb},Rr:function(){return m.Rr}});var H=e(1836),u=e(52020),w=e(67668),i=e(65050),x=e(67836),g=e(36032),B=e(88996),r=e(14310),z=e(39742),m=e(87180),A=e(49453),f=e(88496),I=e(8341),n=e(97857),C=e.n(n),N=e(67294);function o(b,T,q){var ne,oe=b.block,Y=b.isReadPretty,W=Y===void 0?function(ve){var Z=ve.form;return Z.readPretty}:Y,Q=b.filter,fe=Q===void 0?function(){return!0}:Q,X=b.getInitializerItem,ue=X===void 0?function(){return{}}:X,be=b.getSchema,ge=be===void 0?function(){return{}}:be,me=q.collectionManager,Se=q.collection,ie=q.dataSourceManager,ee=q.actionContext,ce=(ne=ee.fieldSchema)===null||ne===void 0?void 0:ne["x-action"];return Se?T.map(function(ve){var Z=me.getCollection(ve.target),le=ie.collectionFieldInterfaceManager.getFieldInterface(ve.interface);return{collectionField:ve,context:C()(C()({},q),{},{targetCollection:Z,collectionFieldInterface:le})}}).filter(function(ve){var Z=ve.collectionField;return Z.interface}).filter(function(ve){var Z=ve.collectionField,le=ve.context;return fe(Z,le)}).map(function(ve){var Z,le,xe=ve.collectionField,Me=ve.context,Ae={type:"string",title:(xe==null||(Z=xe.uiSchema)===null||Z===void 0?void 0:Z.title)||xe.name,name:xe.name,"x-component":"CollectionField","x-collection-field":"".concat(Se.name,".").concat(xe.name),"x-read-pretty":xe==null||(le=xe.uiSchema)===null||le===void 0?void 0:le["x-read-pretty"]},Re=ge(xe,C()(C()({},Me),{},{defaultSchema:Ae})),Ee=C()(C()({},Ae),Re||{});return{collectionField:xe,schema:Ee,context:C()(C()({},Me),{},{schema:Ee})}}).map(function(ve){var Z,le=ve.collectionField,xe=ve.context,Me={type:"item",name:le.name,title:(le==null||(Z=le.uiSchema)===null||Z===void 0?void 0:Z.title)||le.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Re){var Ee,Oe;(Ee=xe.collectionFieldInterface)===null||Ee===void 0||(Oe=Ee.schemaInitialize)===null||Oe===void 0||Oe.call(Ee,Re,{field:le,block:oe,readPretty:W==null?void 0:W(xe),action:ce,targetCollection:xe.targetCollection})},schema:xe.schema};return{collectionField:le,context:xe,defaultInitializerItem:Me}}).map(function(ve){var Z=ve.collectionField,le=ve.defaultInitializerItem,xe=ve.context,Me=ue(Z,C()(C()({},xe),{},{defaultInitializerItem:le}));return C()(C()({},le),Me||{})}):[]}var a=e(80844),D=e(26793),E=e(58837),V=e(44990),J=e(76157),$=e(35746),h=e(13511),M=e(7105);function p(){var b=(0,D.$)(),T=b.t,q=(0,E.Kx)(),ne=(0,h.fp)(),oe=(0,J.XC)(),Y=(0,V.wl)(),W=(0,a.useForm)(),Q=(0,a.useFieldSchema)(),fe=(0,$.d9)(),X=(0,M.eJW)();return{t:T,compile:X,actionContext:oe,fieldSchema:Q,collection:q,dataSource:Y,form:W,collectionManager:fe,dataSourceManager:ne}}var P=e(59582),v=e(85893),U=function(T){var q=p(),ne=q.t,oe=q.collection,Y=oe.getFields(),W=o(T,Y,q);return(0,v.jsx)(P.iP,{title:ne("Display fields"),children:W})},j=function(T){var q=p(),ne=q.collection,oe=q.t,Y=q.collectionManager,W=ne.getParentCollectionsName();if(!W.length)return null;var Q=W.map(function(fe){var X=ne.getParentCollectionFields(fe);if(X.length===0)return null;var ue=Y.getCollection(fe);return{parentCollection:ue,parentCollectionFields:X}}).filter(Boolean).map(function(fe){var X=fe,ue=X.parentCollection,be=X.parentCollectionFields,ge=C()(C()({},q),{},{collection:ue});return{type:"itemGroup",divider:!0,title:oe("Parent collection fields")+"("+q.compile(ue.title)+")",children:o(T,be,ge)}});return(0,v.jsx)(P.E0,{children:Q})},c=e(13769),d=e.n(c),l=["filterAssociationField","filterSelfField","getSchema"],S=function(T){var q=T.filterAssociationField,ne=T.filterSelfField,oe=ne===void 0?function(){return!0}:ne,Y=T.getSchema,W=d()(T,l),Q=T.context,fe=Q.collection,X=Q.t,ue=Q.collectionManager,be=fe.getFields(),ge=["o2o","oho","obo","m2o"],me=be.filter(function(ie){return ge.includes(ie.interface)}).filter(function(ie){return oe(ie,T.context)});if(!me.length)return null;var Se=me.map(function(ie){var ee=ue.getCollection(ie.target);if(!ee)return null;var ce=ee==null?void 0:ee.getAllFields();return ce.length?{associationField:ie,associationCollection:ee,associationCollectionFields:ce}:null}).filter(Boolean).map(function(ie){var ee,ce,ve=ie.associationField,Z=ie.associationCollection,le=ie.associationCollectionFields,xe=C()(C()({},T.context),{},{collection:Z}),Me=function(Re,Ee){var Oe=Y(Re,Ee);return C()(C()({},Oe||{}),{},{"x-read-pretty":!0,name:"".concat(ve.name,".").concat(Re.name),"x-collection-field":"".concat(fe.name,".").concat(ve.name,".").concat(Re.name)})};return{type:"subMenu",name:(ee=ve.uiSchema)===null||ee===void 0?void 0:ee.title,title:(ce=ve.uiSchema)===null||ce===void 0?void 0:ce.title,children:o(C()(C()({},W),{},{filter:q,getSchema:Me}),le,xe)}});return Se.length?(0,v.jsx)(P.iP,{title:X("Display association fields"),children:Se}):null},G=function(T){var q=T.selfField,ne=T.parentField,oe=T.associationField,Y=T.block,W=p();return W.collection?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(U,C()(C()({block:Y},q),{},{context:C()(C()({},W),{},{collection:W.collection})})),ne&&(0,v.jsx)(j,C()(C()({block:Y},ne),{},{context:C()(C()({},W),{},{collection:W.collection})})),oe&&(0,v.jsx)(S,C()(C()({block:Y},oe),{},{context:C()(C()({},W),{},{collection:W.collection})}))]}):null},y=e(40341),K=function(T,q,ne){var oe=(0,y.nD)(T,"x-component","Kanban");return(0,y.nD)(oe,q,ne)},t=function(T){var q=(T==null?void 0:T.block)||"Form",ne={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},oe={remove:y.YT};return(0,v.jsx)(G,{block:q,selfField:{filter:function(W){return!W.treeChildren},getSchema:function(W,Q){var fe,X=Q.targetCollection,ue=(X==null?void 0:X.template)==="file",be=X,ge=W==null||(fe=W.uiSchema)===null||fe===void 0||(fe=fe["x-component-props"])===null||fe===void 0?void 0:fe.fieldNames;return C()(C()({},ne),{},{"x-component-props":ue?{fieldNames:{label:"preview",value:"id"}}:be&&ge?{fieldNames:C()(C()({},ge),{},{label:(X==null?void 0:X.titleField)||ge.label})}:{}})},getInitializerItem:function(){return C()(C()({},oe),{},{find:(T==null?void 0:T.block)==="Kanban"?K:void 0})}},parentField:{getSchema:function(){return ne},getInitializerItem:function(){return oe}},associationField:{filterSelfField:function(W){return q!=="Form"?!0:(W==null?void 0:W.interface)==="m2o"},filterAssociationField:function(W){return(W==null?void 0:W.interface)&&!["subTable"].includes(W==null?void 0:W.interface)&&!W.treeChildren},getSchema:function(){return ne},getInitializerItem:function(){return oe}}})},F=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],O=function(T){function q(ne){var oe=ne.fieldSchema,Y=ne.form,W=oe["x-component"]==="AssociationField.SubTable",Q=W?Y.readPretty:!0;return Q}return(0,v.jsx)(G,{block:"Table",selfField:{isReadPretty:q,filter:function(oe){return oe.interface!=="subTable"&&!oe.treeChildren},getSchema:function(oe,Y){var W,Q,fe=Y.targetCollection,X=Y.fieldSchema,ue=Y.form,be=(fe==null?void 0:fe.template)==="file",ge=((W=oe.uiSchema)===null||W===void 0?void 0:W["x-component"])==="Preview",me=X["x-component"]==="AssociationField.SubTable",Se=q({fieldSchema:X,form:ue});return{"x-component-props":be?{fieldNames:{label:"preview",value:"id"}}:ge?{size:"small"}:{},"x-read-pretty":Se||((Q=oe.uiSchema)===null||Q===void 0?void 0:Q["x-read-pretty"]),"x-decorator":me?F.includes(oe.interface)||be?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:y.p$,remove:y.pP}}},parentField:{isReadPretty:q,getSchema:function(oe,Y){var W,Q=Y.targetCollection,fe=Y.fieldSchema,X=Y.form,ue=(Q==null?void 0:Q.template)==="file",be=fe["x-component"]==="AssociationField.SubTable",ge=q({fieldSchema:fe,form:X});return{"x-component-props":ue?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":ge||((W=oe.uiSchema)===null||W===void 0?void 0:W["x-read-pretty"]),"x-decorator":be?F.includes(oe.interface)||ue?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:y.YT}}},associationField:{filterAssociationField:function(oe){return!["subTable"].includes(oe.interface)&&!oe.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:y.p$,remove:y.pP}}}})},L=e(22558)},8341:function(We,se,e){"use strict";e.d(se,{FE:function(){return B},GX:function(){return r},Yj:function(){return g}});var H=e(9783),u=e.n(H),w=e(67294),i=e(57638),x="x-data-source",g=function(m,A){var f;return(f=m.collectionFieldInterfaceManager.getFieldInterface(A.interface))===null||f===void 0?void 0:f.titleUsable},B=function(m){var A=(0,w.useMemo)(function(){if(m&&m!==i.ym)return u()({},x,m)},[m]);return A},r=function(m){return m&&m!==i.ym?u()({},x,m):{}}},69803:function(We,se,e){"use strict";e.d(se,{AL:function(){return J},C$:function(){return D},PE:function(){return a},jr:function(){return V},uN:function(){return $},yq:function(){return E}});var H=e(15009),u=e.n(H),w=e(99289),i=e.n(w),x=e(12444),g=e.n(x),B=e(72004),r=e.n(B),z=e(31996),m=e.n(z),A=e(26037),f=e.n(A),I=e(67294),n=e(26793),C=e(31601),N=e(15585),o=e(85893),a=(0,I.createContext)({getTitle:function(){return""},setTitle:function(){}});a.displayName="DocumentTitleContext";var D=I.memo(function(h){var M=h.addonBefore,p=h.addonAfter,P=(0,n.$)(),v=P.t,U=(0,n.$)("lm-desktop-routes"),j=U.t,c=(0,n.$)("lm-collections"),d=c.t,l=I.useRef(""),S=(0,I.useCallback)(function(){return l.current},[]),G=(0,I.useCallback)(function(K){document.title=l.current="".concat(M?" - ".concat(v(M)):"").concat(j(K||"")).concat(p?" - ".concat(d(p)):"")},[p,M,v,j,d]),y=(0,I.useMemo)(function(){return{getTitle:S,setTitle:G}},[S,G]);return(0,o.jsx)(a.Provider,{value:y,children:h.children})});D.displayName="DocumentTitleProvider";var E=function(M){var p,P=(0,N.HX)();return(0,o.jsx)(D,{addonAfter:P==null||(p=P.data)===null||p===void 0||(p=p.data)===null||p===void 0?void 0:p.title,children:M.children})},V=function(){return(0,I.useContext)(a)},J=function(M){var p=V(),P=p.setTitle;(0,I.useEffect)(function(){P(M)},[P,M])},$=function(h){m()(p,h);var M=f()(p);function p(){return g()(this,p),M.apply(this,arguments)}return r()(p,[{key:"load",value:function(){var P=i()(u()().mark(function U(){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()}},U,this)}));function v(){return P.apply(this,arguments)}return v}()}]),p}(C.S)},67205:function(We,se,e){"use strict";e.d(se,{XA:function(){return o},kO:function(){return D},vY:function(){return a}});var H=e(97857),u=e.n(H),w=e(19632),i=e.n(w),x=e(80844),g=e(96486),B=e.n(g),r=e(58837),z=e(39742),m=e(4277),A=e(7105),f=e(87714),I=e(67294),n=e(85893),C=function(E){return E.AND="$and",E.OR="$or",E}(C||{}),N=(0,I.createContext)(null);N.displayName="FilterContext";var o=I.memo(function(E){var V=E.children,J=I.useRef([]),$=(0,I.useCallback)(function(p){typeof p=="function"?J.current=p(J.current):J.current=p},[]),h=(0,I.useCallback)(function(){return J.current},[]),M=(0,I.useMemo)(function(){return{getDataBlocks:h,setDataBlocks:$}},[h,$]);return(0,n.jsx)(N.Provider,{value:M,children:V})});o.displayName="FilterBlockProvider";var a=function(V){var J,$=V.children,h=V.params,M=(0,r.Kx)(),p=D(),P=p.recordDataBlocks,v=(0,z.Pt)(),U=v.getDataBlockRequest,j=(0,x.useField)(),c=(0,x.useFieldSchema)(),d=(0,f.Fp)(),l=(0,I.useRef)(null),S=(0,m.tU)(),G=j&&j.decoratorType!=="FilterFormBlockProvider"&&j.decoratorType!=="FormBlockProvider"&&j.decoratorProps.blockType!=="filter",y=(0,I.useCallback)(function(){var K=U();P({uid:c["x-uid"],title:j.componentProps.title,doFilter:K.runAsync,collection:M,associatedFields:d,foreignKeyFields:M==null?void 0:M.getFields("isForeignKey"),defaultFilter:(h==null?void 0:h.filter)||{},service:K,dom:l.current,dataLoadingMode:S,clearFilter:function(F){var O,L,b=((O=this.service.params)===null||O===void 0?void 0:O[0])||{},T=((L=this.service.params)===null||L===void 0||(L=L[1])===null||L===void 0?void 0:L.filters)||{};delete T[F];var q=(0,f.EO)([].concat(i()(Object.values(T).map(function(ne){return(0,A.WmO)(ne)})),[(h==null?void 0:h.filter)||{}]));this.service.run(u()(u()({},b),{},{page:1,filter:q}),{filters:T})},clearData:function(){this.service.mutate(void 0)}})},[d,M,S,j==null||(J=j.componentProps)===null||J===void 0?void 0:J.title,c,h==null?void 0:h.filter,P,U]);return(0,I.useEffect)(function(){G&&y()},[y,G]),(0,n.jsx)("div",{ref:l,children:$})},D=function(){var V=I.useContext(N),J=(0,I.useCallback)(function(){return(V==null?void 0:V.getDataBlocks())||[]},[V]),$=(0,I.useCallback)(function(M){var p=V==null?void 0:V.getDataBlocks().find(function(P){return P.uid===M.uid});if(p){Object.assign(p,M);return}V==null||V.setDataBlocks(function(P){return[].concat(i()(P),[M])})},[V]),h=(0,I.useCallback)(function(M){V!=null&&V.getDataBlocks().every(function(p){return p.uid!==M})||V==null||V.setDataBlocks(function(p){return p.filter(function(P){return P.uid!==M})})},[V]);return V?{recordDataBlocks:$,getDataBlocks:J,removeDataBlock:h,inProvider:!0}:{inProvider:!1,recordDataBlocks:B().noop,getDataBlocks:J,removeDataBlock:B().noop}}},18386:function(We,se,e){"use strict";e.d(se,{$f:function(){return u.$f},EO:function(){return u.EO},Fp:function(){return u.Fp},Op:function(){return u.Op},Um:function(){return u.Um},XA:function(){return H.XA},hi:function(){return u.hi},jE:function(){return u.jE},kO:function(){return H.kO},vC:function(){return u.vC},vY:function(){return H.vY},x5:function(){return u.x5},yr:function(){return u.yr},zv:function(){return u.zv}});var H=e(67205),u=e(87714)},87714:function(We,se,e){"use strict";e.d(se,{$f:function(){return v},EO:function(){return J},Fp:function(){return P},Op:function(){return c},Um:function(){return M},hi:function(){return j},jE:function(){return p},vC:function(){return V},x5:function(){return $},yr:function(){return U},zv:function(){return h}});var H=e(97857),u=e.n(H),w=e(19632),i=e.n(w),x=e(5574),g=e.n(x),B=e(9783),r=e.n(B),z=e(52677),m=e.n(z),A=e(80844),f=e(84157),I=e(96486),n=e.n(I),C=e(67294),N=e(10097),o=e(58837),a=e(13511),D=e(7105),E=e(67205),V=function(d){return d[d.FORM=0]="FORM",d[d.TABLE=1]="TABLE",d[d.TREE=2]="TREE",d[d.COLLAPSE=3]="COLLAPSE",d}({}),J=function(l){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",G=l.filter(function(y){if(y&&m()(y)==="object"&&!Array.isArray(y))return Object.values(y).filter(function(K){return K!==void 0}).length});return G.length===0?{}:G.length===1?G[0]:r()({},S,G)},$=function(l,S){var G;return(G=S.associatedFields)===null||G===void 0?void 0:G.filter(function(y){return l==null?void 0:l.some(function(K){return K===y.target})})},h=function(l,S){var G;return(G=S.foreignKeyFields)===null||G===void 0?void 0:G.filter(function(y){return l.fields.some(function(K){return K.type!=="belongsTo"&&K.foreignKey===y.name})})},M=function(l){var S=(0,E.kO)(),G=S.getDataBlocks,y=(0,A.useFieldSchema)(),K=(0,o.Kx)(),t=(0,a.Uv)(),F=t.getAllCollectionsInheritChain;if(l===V.FORM||l===V.COLLAPSE)return G().filter(function(O){return U(O.collection,K)});if(l===V.TABLE||l===V.TREE)return G().filter(function(O){var L,b;return y["x-uid"]!==O.uid&&(U(O.collection,K)||((L=$(F(K.name,K.dataSource),O))===null||L===void 0?void 0:L.length)||((b=h(K,O))===null||b===void 0?void 0:b.length))})},p=function(l,S,G,y){l=(0,f.flatten)(l,{breakOn:function(F){var O=F.value,L=F.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(S[L]))return!0;var b=G("".concat(y,".").concat(L));if(b!=null&&b.target){if(Array.isArray(O))return!0;var T=b.targetKey||"id";if(O&&O[T]!=null)return!0}return!1}});var K={$and:Object.keys(l).map(function(t){var F=n().get(l,t),O=G("".concat(y,".").concat(t));return O!=null&&O.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(O.type)&&(F=(0,f.getValuesByPath)(F,O.targetKey||"id"),t="".concat(t,".").concat(O.targetKey||"id"),(O==null?void 0:O.interface)==="chinaRegion"&&(F=n().last(F))),!F&&F!==0&&F!==!1?null:r()({},t,r()({},S[t]||"$eq",F))}).filter(Boolean)};return K},P=function(){var l;return((l=(0,o.Kx)())===null||l===void 0?void 0:l.fields.filter(function(S){return v(S)}))||[]},v=function(l){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(l==null?void 0:l.interface)},U=function(l,S){return l.name===S.name&&l.dataSource===S.dataSource},j=function(){var l=(0,A.useFieldSchema)(),S=(0,E.kO)(),G=S.getDataBlocks,y=(0,N.findFilterTargets)(l),K=y.targets,t=y.uid,F=G(),O=(0,C.useState)(function(){return K&&K.some(function(oe){return F.some(function(Y){return Y.uid===oe.uid})})}),L=g()(O,2),b=L[0],T=L[1],q=Object.keys(K||{});(0,C.useEffect)(function(){T(K&&K.some(function(oe){return F.some(function(Y){return Y.uid===oe.uid})}))},[q.length,K,F]);var ne=(0,C.useCallback)(function(oe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";F.forEach(function(Q){var fe,X,ue=K.find(function(Se){return Se.uid===Q.uid});if(ue){n().isFunction(Y)&&(Y=Y(ue)),n().isFunction(W)&&(W=W(ue));var be=((fe=Q.service.params)===null||fe===void 0?void 0:fe[0])||{},ge=((X=Q.service.params)===null||X===void 0||(X=X[1])===null||X===void 0?void 0:X.filters)||{};oe!==void 0?ge[t]={$and:[r()({},Y,r()({},W,oe))]}:delete ge[t];var me=J([].concat(i()(Object.values(ge).map(function(Se){return(0,D.WmO)(Se)})),[Q.defaultFilter]));Q.doFilter(u()(u()({},be),{},{page:1,filter:me}),{filters:ge})}})},[F,K,t]);return{isConnected:b,doFilter:ne}},c=function(l){for(;l;){if(l["x-filter-targets"])return l["x-decorator"]==="FilterFormBlockProvider";l=l.parent}return!1}},5772:function(We,se,e){"use strict";e.d(se,{C:function(){return i},z:function(){return w}});var H=e(67294),u=e(85893),w=H.createContext(null),i=function(g){return(0,u.jsx)(w.Provider,{value:g,children:g.children})}},7686:function(We,se,e){"use strict";e.d(se,{P:function(){return w}});var H=e(67294),u=e(5772),w=function(){return(0,H.useContext)(u.z)||{}}},53285:function(We,se,e){"use strict";e.d(se,{Cm:function(){return H.C},P5:function(){return u.P},z_:function(){return H.z}});var H=e(5772),u=e(7686)},57105:function(We,se,e){"use strict";e.d(se,{_9:function(){return F},$:function(){return ne},sq:function(){return Y},ri:function(){return G},mz:function(){return t},cl:function(){return oe},QJ:function(){return y},gR:function(){return K}});var H=e(97857),u=e.n(H),w=e(80844),i=e(84327),x=e(90105),g=e(96486),B=e.n(g),r=e(67294),z=e(35746),m=e(58837),A=e(93323),f=e(64910),I=e(96365),n=e(52677),C=e.n(n),N=e(85893),o=function(Q,fe){if(!(!Q&&!fe)&&!(0,i.isFn)(Q))return(0,N.jsxs)(r.Fragment,{children:[Q,fe]})},a=function(Q){return Q&&(C()(Q)==="object"||typeof Q=="function")},D=function(Q,fe,X){return(0,i.isFn)(Q)?Q(fe,X):Q},E=function(Q){var fe,X=(0,r.useContext)(w.SchemaComponentsContext),ue=Q.field,be=o(D(Q.children,ue,ue.form),(fe=ue.content)!==null&&fe!==void 0?fe:ue.componentProps.children);if(ue.display!=="visible")return null;var ge=function(ee){var ce;return a(ee)?ee:(ce=i.FormPath.getIn(X,ee))!==null&&ce!==void 0?ce:ee},me=function(ee){return ue.decoratorType?r.createElement(ge(ue.decoratorType),ue.decoratorProps,ee):(0,N.jsx)(r.Fragment,{children:ee})},Se=function(){return ue.componentType?r.createElement(ge(ue.componentType),u()(u()({},ue.componentProps),{},{value:ue.value}),be):be};return me(Se())};E.displayName="NocoBaseReactiveInternal";var V=E;V.displayName="NocoBaseReactiveField";var J=e(12444),$=e.n(J),h=e(72004),M=e.n(h),p=e(9783),P=e.n(p);function v(W){return new U(W)}var U=function(){function W(Q){$()(this,W),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=Q,this.initialize()}return M()(W,[{key:"initialize",value:function(){var fe,X,ue,be,ge,me,Se,ie,ee,ce,ve,Z,le,xe,Me,Ae,Re,Ee,Oe,Pe,_e=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=_e(this.props.title||((fe=this.props.schema)===null||fe===void 0?void 0:fe.title)),this.description=_e(this.props.description||((X=this.props.schema)===null||X===void 0?void 0:X.description)),this.display="visible",this.editable=this.props.editable||((ue=this.props.schema)===null||ue===void 0?void 0:ue["x-editable"]),this.disabled=this.props.disabled||((be=this.props.schema)===null||be===void 0?void 0:be["x-disabled"]),this.readOnly=this.props.readOnly||((ge=this.props.schema)===null||ge===void 0?void 0:ge["x-read-only"]),this.visible=this.props.visible||((me=this.props.schema)===null||me===void 0?void 0:me["x-visible"]),this.hidden=this.props.hidden||((Se=this.props.schema)===null||Se===void 0?void 0:Se["x-hidden"]),this.dataSource=_e(this.props.dataSource||((ie=this.props.schema)===null||ie===void 0?void 0:ie.enum)),this.validator=this.props.validator,this.required=this.props.required||!!((ee=this.props.schema)!==null&&ee!==void 0&&ee.required),this.content=_e(this.props.content||((ce=this.props.schema)===null||ce===void 0?void 0:ce["x-content"])),this.initialValue=_e(this.props.initialValue||((ve=this.props.schema)===null||ve===void 0?void 0:ve.default)),this.value=_e(this.props.value),this.data=this.props.data||((Z=this.props.schema)===null||Z===void 0?void 0:Z["x-data"]),this.decorator=this.props.decorator?(0,i.toArr)(this.props.decorator):[(le=this.props.schema)===null||le===void 0?void 0:le["x-decorator"],(xe=this.props.schema)===null||xe===void 0?void 0:xe["x-decorator-props"]],this.component=this.props.component?(0,i.toArr)(this.props.component):[(Me=this.props.schema)===null||Me===void 0?void 0:Me["x-component"],(Ae=this.props.schema)===null||Ae===void 0?void 0:Ae["x-component-props"]],this.decoratorProps=((Re=this.props.schema)===null||Re===void 0?void 0:Re["x-decorator-props"])||{},this.componentProps=((Ee=this.props.schema)===null||Ee===void 0?void 0:Ee["x-component-props"])||{},this.decoratorType=(Oe=this.props.schema)===null||Oe===void 0?void 0:Oe["x-decorator"],this.componentType=(Pe=this.props.schema)===null||Pe===void 0?void 0:Pe["x-component"],this.path={},this.form={},this.address={concat:B().noop}}}]),W}(),j=function(Q){var fe=(0,I.e)(),X=(0,w.useFieldSchema)(),ue=(0,r.useMemo)(function(){return v(u()(u()({},Q),{},{compile:fe}))},[]);return Object.assign(ue.componentProps,X["x-component-props"]),ue.value=Q.value,(0,N.jsx)(w.FieldContext.Provider,{value:ue,children:(0,N.jsx)(V,{field:ue,children:Q.children})})},c=r.createContext({}),d=r.createContext(B().noop),l=function(Q){var fe=Q.children,X=Q.refresh,ue=K(),be=(0,r.useCallback)(function(ge){X(),ge!=null&&ge.refreshParentSchema&&(ue==null||ue())},[ue,X]);return(0,N.jsx)(d.Provider,{value:be,children:fe})},S=r.createContext(B().noop),G=function(Q){var fe=Q.children,X=Q.refresh;return(0,N.jsx)(S.Provider,{value:X,children:fe})},y=function(){return r.useContext(S)},K=function(){return r.useContext(d)},t=function(){return r.useContext(c)||{}},F=function(Q){var fe=Q.children,X=Q.fieldSchema,ue=(0,m.Kx)(),be=(0,z.d9)(),ge=X==null?void 0:X.name,me=(0,r.useMemo)(function(){var Se;if(!ue)return null;var ie=X==null||(Se=X["x-component-props"])===null||Se===void 0?void 0:Se.field;return be.getCollectionField(X==null?void 0:X["x-collection-field"])||ie||ue.getField((ie==null?void 0:ie.name)||ge)},[ue,be,X,ge]);return(0,N.jsx)(c.Provider,{value:me,children:fe})},O=B().memoize(function(W,Q){return W.toFieldProps({scope:Q})}),L=function(Q){var fe=(0,w.useExpressionScope)();return O(Q,fe)},b=function(Q){var fe=(0,w.useField)();if(Q.onlyRenderProperties){var X;return Q.basePath||(fe==null||(X=fe.address)===null||X===void 0?void 0:X.concat(Q.name))}return Q.basePath||(fe==null?void 0:fe.address)},T=function(Q,fe,X){var ue=Q.toJSON();if(X){if(!ue.properties)return Q;var be=Object.keys(ue.properties)[0],ge=Object.values(ue.properties)[0];return ue.properties[be]=(0,i.merge)(B().omit(fe,"type","x-read-pretty"),ge),new w.Schema(ue)}return new w.Schema((0,i.merge)(B().omit(fe,"type","x-read-pretty"),ue))},q=function(Q){var fe=Q.schema,X=Q.field,ue=Q.basePath,be=Q.mapProperties,ge=Q.filterProperties,me=Q.propsRecursion,Se=Q.values,ie=Q.isUseFormilyField,ee=w.Schema.getOrderProperties(fe);return ee.length?(0,N.jsx)(r.Fragment,{children:ee.map(function(ce,ve){var Z=ce.schema,le=ce.key,xe=(X==null?void 0:X.address)||ue,Me=Z;if((0,i.isFn)(be)){var Ae=be(Z,le);Ae&&(Me=Ae)}if((0,i.isFn)(ge)&&ge(Me,le)===!1)return null;var Re=(0,i.isBool)(me)&&me?(0,N.jsx)(Y,{propsRecursion:!0,filterProperties:ge,mapProperties:be,schema:Me,name:le,basePath:xe,values:B().get(Se,le),isUseFormilyField:ie}):(0,N.jsx)(Y,{schema:Me,name:le,basePath:xe,values:B().get(Se,le),isUseFormilyField:ie});return Me["x-component"]==="CollectionField"?(0,N.jsx)(ne.Provider,{value:!0,children:(0,N.jsx)(F,{fieldSchema:Me,children:Re})},"".concat(ve,"-").concat(le)):(0,N.jsx)(ne.Provider,{value:!1,children:(0,N.jsx)(c.Provider,{value:f.Nu,children:Re})},"".concat(ve,"-").concat(le))})}):null},ne=r.createContext(!1),oe=function(){return r.useContext(ne)},Y=r.memo(function(W){var Q=W.schema,fe=W.name,X=W.onlyRenderProperties,ue=W.onlyRenderSelf,be=W.mapProperties,ge=W.filterProperties,me=W.propsRecursion,Se=W.values,ie=W.isUseFormilyField,ee=ie===void 0?!0:ie,ce=W.uiSchema,ve=b(W),Z=(0,r.useRef)(null),le=(0,r.useMemo)(function(){return Z.current=null,new w.Schema(Q)},[Q]),xe=t(),Me=xe.uiSchema,Ae=xe.defaultValue,Re=(0,x.Z)(),Ee=(0,r.useContext)(A.A),Oe=Ee.onChange,Pe=Z.current||le,_e=(0,r.useCallback)(function(){var ae=Pe.parent;Z.current=new w.Schema(Pe.toJSON(),ae),ae!=null&&ae.properties&&Object.keys(ae.properties).forEach(function(je){je===Pe.name&&(ae.properties[je]=Z.current)}),Re(),Oe==null||Oe()},[Pe,Oe,Re]),re=(0,r.useMemo)(function(){return ce?T(Pe,ce,X):Me?(Me.default=Ae,T(Pe,Me,X)):Pe},[Me,Ae,Pe,X,ce]),R=L(re),de=function(je){if(!ue)return q({schema:Pe,field:je,basePath:ve,mapProperties:be,filterProperties:ge,propsRecursion:me,values:Se,isUseFormilyField:ee})},De=function(){return(0,i.isValid)(fe)?re.type==="object"?X?de():(0,N.jsx)(w.ObjectField,u()(u()({},R),{},{name:fe,basePath:ve,children:de})):re.type==="array"?(0,N.jsx)(w.ArrayField,u()(u()({},R),{},{name:fe,basePath:ve})):re.type==="void"?X?de():(0,N.jsx)(w.VoidField,u()(u()({},R),{},{name:fe,basePath:ve,children:de})):ee?(0,N.jsx)(w.Field,u()(u()({},R),{},{name:fe,basePath:ve})):(0,N.jsx)(j,{name:fe,value:Se,initialValue:Se,basePath:ve,schema:re}):de()};return Pe?(0,N.jsx)(w.SchemaContext.Provider,{value:Pe,children:(0,N.jsx)(l,{refresh:_e,children:De()})}):(0,N.jsx)(r.Fragment,{})});Y.displayName="NocoBaseRecursionField"},69962:function(We,se,e){"use strict";e.d(se,{wI:function(){return J},YO:function(){return M},kK:function(){return I},uH:function(){return A},mg:function(){return h}});var H=e(5574),u=e.n(H),w=e(9361),i=e(28459),x=e(96486),g=e.n(x),B=e(67294),r=e(97857),z=e.n(r),m={name:"",token:{colorPrimaryHeader:"#001529",colorBgHeader:"#001529",colorBgHeaderMenuHover:"#ffffff1a",colorBgHeaderMenuActive:"#ffffff1a",colorTextHeaderMenu:"#ffffffa6",colorTextHeaderMenuHover:"#ffffff",colorTextHeaderMenuActive:"#ffffff",colorSettings:"#F18B62",colorBgSettingsHover:"rgba(241, 139, 98, 0.06)",colorBorderSettingsHover:"rgba(241, 139, 98, 0.3)",motionUnit:.03,motion:!0}},A=m;function f(p){var P;return(P=p.token)!==null&&P!==void 0&&P.colorSettings||(p.token=z()(z()({},p.token),A.token)),p}var I=f,n=function(P,v){var U=v||w.Z.defaultAlgorithm(P);return U.paddingPageHorizontal===void 0&&(U.paddingPageHorizontal=U.sizeLG),U.paddingPageVertical===void 0&&(U.paddingPageVertical=U.sizeLG),U.paddingPopupHorizontal===void 0&&(U.paddingPopupHorizontal=U.sizeLG),U.paddingPopupVertical===void 0&&(U.paddingPopupVertical=U.size),U.marginBlock===void 0&&(U.marginBlock=U.sizeLG),U.borderRadiusBlock===void 0&&(U.borderRadiusBlock=U.borderRadiusLG),U},C=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},N=e(85893),o=e(3321),a=e(12174),D=e(29939),E=(0,B.memo)(function(p){var P=p.children,v=(0,D.qD)(),U=o.Z.useApp(),j=U.notification,c=(0,a.LY)();return(0,B.useEffect)(function(){c.notification=j,v.notification=j},[j]),(0,N.jsx)(N.Fragment,{children:P})});E.displayName="AppInner";var V=function(P){var v=P.children,U=P.className,j=P.style;return(0,N.jsx)(o.Z,{className:U,style:z()({height:"100%"},j),children:(0,N.jsx)(E,{children:v})})};V.displayName="AntdAppProvider";var J=V,$=(0,B.createContext)(null);$.displayName="GlobalThemeContext";var h=function(){return B.useContext($)||{theme:{},isDarkTheme:!1}},M=function(P){var v=P.children,U=P.theme,j=B.useState(U||A),c=u()(j,2),d=c[0],l=c[1],S=(0,B.useRef)(null),G=(0,B.useRef)(null),y=(0,B.useMemo)(function(){var b=d==null?void 0:d.algorithm;return Array.isArray(b)?b.includes(w.Z.darkAlgorithm):b===w.Z.darkAlgorithm},[d==null?void 0:d.algorithm]),K=(0,B.useCallback)(function(b){G.current=b&&g().cloneDeep(b)},[]),t=(0,B.useCallback)(function(){return G.current},[]),F=(0,B.useCallback)(function(b){S.current=b&&g().cloneDeep(b)},[]),O=(0,B.useCallback)(function(){return S.current},[]),L=(0,B.useMemo)(function(){return{theme:C(d),setTheme:l,setCurrentSettingTheme:F,getCurrentSettingTheme:O,setCurrentEditingTheme:K,getCurrentEditingTheme:t,isDarkTheme:y}},[t,O,y,K,F,d]);return(0,N.jsx)($.Provider,{value:L,children:(0,N.jsx)(i.ZP,{theme:I(L.theme),children:v})})}},15503:function(We,se,e){"use strict";e.d(se,{M:function(){return C},t:function(){return N}});var H=e(97857),u=e.n(H),w=e(96695),i=e.n(w),x=e(80844),g=e(96486),B=e.n(g),r=e(67294),z=e(7105),m=e(57953),A=e(85893),f=function(){},I=function(a,D,E){var V=void 0;return B().isFunction(a)?V=a:(V=D[a],V||console.error("".concat(E," is not registered"))),V||f},n=function(a,D){if(!a)return f;if(B().isFunction(a))return a;var E=a.split("."),V,J=i()(E),$;try{for(J.s();!($=J.n()).done;){var h=$.value;V=I(h,V||D,a)}}catch(M){J.e(M)}finally{J.f()}return V};function C(o,a){var D=(0,x.useExpressionScope)(),E=n(o,D)(a);return E}function N(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=a.displayName||o.displayName||o.name,E=function V(J){var $=(0,z.ngQ)(),h=$.dn,M=$.findComponent,p=(0,r.useMemo)(function(){var U=h.getSchemaAttribute("x-component"),j=h.getSchemaAttribute("x-decorator"),c=h.getSchemaAttribute("x-use-component-props"),d=h.getSchemaAttribute("x-use-decorator-props");if(U&&c&&M(U)===V)return c;if(j&&d&&M(j)===V)return d},[h]),P=C(p,J),v=(0,r.useMemo)(function(){return u()(u()({},J),P)},[P,J]);return(0,A.jsx)(r.Suspense,{fallback:(0,A.jsx)(m.Z,{}),children:(0,A.jsx)(o,u()(u()({},v),{},{children:J.children}))})};return o.displayName=D,E.displayName="withSchemaProps(".concat(D,")"),E}},83335:function(We,se,e){"use strict";e.d(se,{C:function(){return r}});var H=e(97857),u=e.n(H),w=e(48054),i=e(39742),x=e(67294),g=e(85893),B=function(){var m;return!!((m=(0,i.hS)())!==null&&m!==void 0&&m.loading)},r=function(m,A){var f=A||{},I=f.useLoading,n=I===void 0?B:I,C=f.displayName,N=f.SkeletonComponent,o=N===void 0?w.Z:N,a=x.memo(function(D){var E=n(),V=(0,x.useRef)(!1);return!V.current&&E?(0,g.jsx)(o,{}):(V.current=!0,(0,g.jsx)(m,u()({},D)))});return a.displayName=C||"".concat(m.displayName,"(withSkeletonComponent)")||0,a}},29392:function(We,se,e){"use strict";e.d(se,{W:function(){return H},S:function(){return i}});var H=function(){return"nocobase-admin-menu"},u=e(67294),w=function(){var g=(0,u.useRef)("initial-scale=0.1"),B=(0,u.useRef)();(0,u.useEffect)(function(){var z=document.querySelector('meta[name="viewport"]');z?g.current=z.content:(z=document.createElement("meta"),z.name="viewport"),z&&(z.content="width=device-width, initial-scale=1, user-scalable=0",B.current=z)},[]);var r=function(){B.current&&(B.current.content=g.current)};return{metaRef:B,restore:r}};function i(){var x=w(),g=x.metaRef,B=x.restore;(0,u.useEffect)(function(){if(g.current)return document.head.insertBefore(g.current,document.head.firstChild),function(){B()}},[])}},74820:function(We,se,e){"use strict";e.d(se,{d5:function(){return z},iX:function(){return A},nu:function(){return m}});var H=e(19632),u=e.n(H),w=e(96486),i=e.n(w),x=e(67294),g=e(85893),B=(0,x.createContext)(null);B.displayName="GetMenuItemContext";var r=(0,x.createContext)(null);r.displayName="GetMenuItemsContext";var z=function(){return(0,x.useContext)(B)||{}},m=function(){return(0,x.useContext)(r)||{}},A=function(){var I=(0,x.useRef)([]),n=(0,x.useRef)(null),C=(0,x.useRef)(!1),N=(0,x.useCallback)(function(E){var V=E.limitCount;return C.current?(C.current=!1,n.current?n.current():V&&I.current.length>V?(0,g.jsx)(g.Fragment,{children:I.current.slice(0,V).map(function(J,$){return(0,g.jsx)(J,{},$)})}):(0,g.jsx)(g.Fragment,{children:I.current.map(function(J,$){return(0,g.jsx)(J,{},$)})})):null},[]),o=(0,x.useCallback)(function(E){var V=[],J=function(h){V.push(h),V.sort(function(M,p){return(M.order||0)-(p.order||0)})};return C.current=!0,n.current=function(){var $=V.filter(function(h){return h.notdelete}).map(function(h){return i().omit(h,"notdelete")});return V.length=0,V.push.apply(V,u()($)),(0,g.jsx)(r.Provider,{value:{pushMenuItem:J},children:E()})},V},[]),a=(0,x.useCallback)(function(E){var V={},J=function(h){Object.assign(V,h)};return C.current=!0,I.current.push(function(){return(0,g.jsx)(B.Provider,{value:{collectMenuItem:J},children:E()})}),V},[]),D=(0,x.useCallback)(function(){I.current=[]},[]);return{Component:N,getMenuItems:o,getMenuItem:a,clean:D}}},71098:function(We,se,e){"use strict";e.d(se,{j:function(){return r}});var H=e(12610),u=e(85418),w=e(67294),i=e(12174),x=e(35310),g=e(15585),B=e(85893);function r(){var z,m,A=(0,g.HX)()||{},f=A.data,I=(0,i.LY)();return(f==null||(z=f.data)===null||z===void 0?void 0:z.enabledLanguages.length)>1&&(0,B.jsx)(u.Z,{menu:{onClick:function(C){I.auth.setLocale(C.key),window.location.reload()},selectable:!0,defaultSelectedKeys:[I.auth.locale],items:f==null||(m=f.data)===null||m===void 0||(m=m.enabledLanguages)===null||m===void 0?void 0:m.map(function(n){return{key:n,label:x.ZP[n].label}})},children:(0,B.jsx)(H.Z,{style:{fontSize:24}})})}},58384:function(We,se,e){"use strict";e.d(se,{a:function(){return x},v:function(){return i}});var H=e(36609),u=e(57715),w=e(35310);function i(B,r){return r?"{{t(".concat(JSON.stringify(B),", ").concat(JSON.stringify(r),")}}"):"{{t(".concat(JSON.stringify(B),")}}")}var x=H.default.createInstance(),g={};Object.keys(w.ZP).forEach(function(B){g[B]=w.ZP[B].resources}),x.use(u.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(We,se,e){"use strict";e.d(se,{JO:function(){return N},OL:function(){return n},ci:function(){return f},q5:function(){return I},fm:function(){return C}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(19359),g=e(16165),B=e(91321),r=e(67294),z=e(85893),m=["type","component"],A,f=new Map;function I(a){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A;f.set(a.toLowerCase(),D)}function n(a){return a?f.has(a.toLowerCase()):!1}function C(a){Object.keys(a).forEach(function(D){I(D,a[D])})}Object.keys(x).forEach(function(a){I(a,x[a])});var N=function(D){var E=D.type,V=E===void 0?"":E,J=D.component,$=i()(D,m);if(J)return(0,z.jsx)(g.Z,u()({component:J},$));if(V&&f.has(V.toLowerCase())){var h=f.get(V.toLowerCase());return(0,z.jsx)(h,u()({},$))}return V&&A?(0,z.jsx)(A,{type:V}):null};N.createFromIconfontCN=function(a){A=(0,B.Z)(a)},N.register=function(a){C(a)};var o=null},21143:function(We,se,e){"use strict";e.r(se),e.d(se,{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 h.eB},ADMIN_SETTINGS_PATH:function(){return h.oz},APIClient:function(){return J.lP},APIClientContext:function(){return J._Z},APIClientProvider:function(){return J.Xb},Action:function(){return W.aUM},ActionBar:function(){return W.olz},ActionBarAssociationFilterAction:function(){return Q.cm},ActionBarProvider:function(){return W.N0i},ActionContext:function(){return W.fWn},ActionContextNoRerender:function(){return W.mlL},ActionContextProvider:function(){return W.EIK},ActionDesigner:function(){return W.$Lt},ActionInitializer:function(){return Q.$M},ActionInitializerItem:function(){return Q.eq},AdminDynamicPage:function(){return Y.zf},AdminLayout:function(){return Y.lq},AdminLayoutPlugin:function(){return Y.r3},AdminProvider:function(){return Y.IA},AdminSettingsLayout:function(){return q.i9},AfterSuccess:function(){return W.$b8},AntdAppProvider:function(){return y.wI},AntdConfigPlugin:function(){return V.kT},AntdConfigProvider:function(){return V.zy},AntdSchemaComponentPlugin:function(){return W.HTy},AntdSchemaComponentProvider:function(){return W.lkv},AppComponent:function(){return h.y$},AppLangContext:function(){return V.UJ},AppendsTreeSelect:function(){return W.rDu},Application:function(){return h.Mx},ApplicationContext:function(){return h.Zz},AssignedFieldValues:function(){return W.eYL},AssociatedFields:function(){return Q.Pg},AssociationField:function(){return W.Rat},AssociationFieldMode:function(){return W.oAt},AssociationFieldModeProvider:function(){return W.E7E},AssociationFilter:function(){return Q.tr},AssociationFilterDesignerDelete:function(){return Q.nr},AssociationFilterDesignerDisplayField:function(){return Q.N2},AssociationFilterPlugin:function(){return Q.Ys},AssociationOrCollectionProvider:function(){return d.dq},AssociationProvider:function(){return d.ym},AssociationSelect:function(){return W.$SD},AsyncDataContext:function(){return M.tO},AsyncDataProvider:function(){return M.pW},AttachmentList:function(){return W.fUi},AutoComplete:function(){return W.QcG},BackButtonUsedInSubPage:function(){return W.MLy},BaseVariableProvider:function(){return X.Nx},BlankComponent:function(){return h.X_},Block:function(){return W.gOu},BlockAssociationContext:function(){return p.WJ},BlockContext:function(){return p.Qj},BlockInitializer:function(){return Q.bn},BlockItem:function(){return W.jYG},BlockItemCard:function(){return W.PuU},BlockItemCardContext:function(){return W.smG},BlockItemInitializer:function(){return Q.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 xe.G},BlockTemplateContext:function(){return ue.k0},BlockTemplateDetails:function(){return ue.bs},BlockTemplatePage:function(){return ue.EF},BlockTemplateProvider:function(){return ue.AG},BlockTemplatesPane:function(){return ue.L},ButtonEditor:function(){return W.C1I},CSSVariableProvider:function(){return c.O},CardItem:function(){return W.Ssf},Cascader:function(){return W.vTp},Checkbox:function(){return W.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 Le._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 W.Tt2},CollectionTemplate:function(){return d.Pl},CollectionTemplateManager:function(){return d.yM},ColorPicker:function(){return W.zH8},ColorSelect:function(){return W.Q5L},CompatibleSchemaInitializer:function(){return h.nl},CreateFilterActionInitializer:function(){return Q.nl},CreateResetActionInitializer:function(){return Q.cz},Cron:function(){return W.Pok},CronSet:function(){return W.Vm0},CurrentAppInfoContext:function(){return $.RQ},CurrentAppInfoProvider:function(){return $.Gq},CurrentPageUidContext:function(){return h.WY},CurrentPageUidProvider:function(){return h.lN},CurrentTabUidContext:function(){return h.yt},CurrentTabUidProvider:function(){return h.vm},CurrentUser:function(){return Se.Ih},CurrentUserContext:function(){return Se.Ec},CurrentUserProvider:function(){return Se.MF},CurrentUserSettingsMenuProvider:function(){return Se.mY},CustomRouterContextProvider:function(){return h.O6},CustomizeActionInitializer:function(){return Q.yE},DEBOUNCE_WAIT:function(){return ie.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 Q.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 W.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 W.Lip},DateFormatCom:function(){return W.WN4},DatePicker:function(){return W.Mtg},DatePickerProvider:function(){return W.iNu},DefaultValueProvider:function(){return X.yT},Designable:function(){return W.zzt},DesignableSwitch:function(){return W._bl},Details:function(){return W.POi},DetailsBlockContext:function(){return p.LR},DetailsBlockProvider:function(){return p.nw},DetailsDesigner:function(){return W.AOY},Divider:function(){return W.izJ},DndContext:function(){return W.LBT},DocumentTitleContext:function(){return l.PE},DocumentTitleProvider:function(){return l.C$},DragHandler:function(){return W.IWB},DraggableContext:function(){return W.LCt},DropdownVisibleContext:function(){return Se.yI},EMPTY_OBJECT:function(){return ie.Nu},EditComponent:function(){return W.FyH},EditDefaultValue:function(){return W.Nir},EditDescription:function(){return W.q8U},EditOperator:function(){return W.HGA},EditPattern:function(){return W.QTe},EditRequired:function(){return W.JEX},EditSortField:function(){return W.fAH},EditTitle:function(){return W.$w$},EditTitleField:function(){return W.nBj},EditTooltip:function(){return W.Oct},EditValidationRules:function(){return W.zdw},Editable:function(){return W.CXR},EllipsisWithTooltip:function(){return W.BQs},ErrorFallback:function(){return W.Hj5},Expand:function(){return W.M0b},ExpiresRadio:function(){return W.Dnz},ExtendCollectionsContext:function(){return d.Xc},ExtendCollectionsProvider:function(){return d.j5},Filter:function(){return W.wn$},FilterAction:function(){return W.GzZ},FilterActionContext:function(){return W.tJZ},FilterAssociatedFields:function(){return Q.EC},FilterBlockProvider:function(){return S.XA},FilterBlockType:function(){return S.vC},FilterContext:function(){return W.fox},FilterDynamicComponent:function(){return W.VTd},FilterFormBlockProvider:function(){return p.WI},FilterLogicContext:function(){return W.XsZ},FilterParentCollectionFields:function(){return Q.d6},FlagContext:function(){return G.z_},FlagProvider:function(){return G.Cm},Form:function(){return W.l09},FormActiveFieldsProvider:function(){return p.T2},FormBlockContext:function(){return p.TC},FormBlockInitializer:function(){return Me.Jo},FormBlockProvider:function(){return p.$R},FormDialog:function(){return W.D_t},FormField:function(){return W.WiK},FormFieldContext:function(){return p.uW},FormFieldProvider:function(){return p.$1},FormItem:function(){return W.xJW},FormItemSchemaToolbar:function(){return Me.Oo},FormProvider:function(){return W.RVL},FormV2:function(){return W.Bc8},G2Plot:function(){return W.hG9},G2PlotInitializer:function(){return Q.oY},G2PlotRenderer:function(){return W.DCh},GeneralSchemaDesigner:function(){return X.aN},GeneralSchemaItems:function(){return fe.Mj},GlobalThemeProvider:function(){return y.YO},Grid:function(){return W.rjZ},GridCard:function(){return W.Cqo},GridRowContext:function(){return W.jg7},HTMLEncode:function(){return W.gsn},HeightMode:function(){return X.j0},Icon:function(){return F.JO},IconPicker:function(){return W.$18},InitializerWithSwitch:function(){return Q.sp},Input:function(){return W.IIB},InputNumber:function(){return W.RnZ},InputReadPretty:function(){return W.mX2},InputRecordPicker:function(){return W.zDC},InternalAdminLayout:function(){return Y.Me},IsInNocoBaseRecursionFieldContext:function(){return Le.$},IsSubPageClosedByPageMenuProvider:function(){return h.oO},Json:function(){return W.Phs},KeepAlive:function(){return Y.Ob},LAZY_COMPONENT_KEY:function(){return O.XI},LOADING_DELAY:function(){return ie.fw},Layout:function(){return X.Ar},LayoutContent:function(){return Y.bU},List:function(){return W.aVo},LocalDataSource:function(){return d.nC},LocationSearchContext:function(){return h.xJ},Markdown:function(){return W.UGj},MarkdownReadPretty:function(){return W.yq5},MaybeCollectionProvider:function(){return p.bH},Menu:function(){return W.v2r},MenuConfigure:function(){return E.dr},NanoIDInput:function(){return W.HIW},NavigateIfNotSignIn:function(){return Se.vo},NavigateToSigninWithRedirect:function(){return Se.Mv},NocoBaseBuildInPlugin:function(){return b.q},NocoBaseDesktopRouteType:function(){return Y.HQ},NocoBaseRecursionField:function(){return Le.sq},OpenModeProvider:function(){return R.W},PMPlugin:function(){return q.Np},Page:function(){return W.T3C},PagePopups:function(){return W.d97},PageTabs:function(){return W.hGv},Pagination:function(){return W.tlE},ParentCollectionFields:function(){return Q.cd},Password:function(){return W.rop},Percent:function(){return W.gGi},PermissionContext:function(){return E.Bk},PermissionProvider:function(){return E.Wx},PinnedListPlugin:function(){return T.r1},PinnedPluginList:function(){return T.B$},PinnedPluginListContext:function(){return T.uv},PinnedPluginListProvider:function(){return T.tc},Plugin:function(){return h.Sy},PluginManager:function(){return q.Q$},PluginManagerLink:function(){return q.s0},PluginSettingsManager:function(){return h.nS},PopupContextProvider:function(){return de.y},PopupSettingsProvider:function(){return W.DBW},PoweredBy:function(){return ne.C},Preview:function(){return W.MBS},QuickEdit:function(){return W.pGO},REGEX_OF_VARIABLE:function(){return ie.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return ie.Bj},Radio:function(){return W.Y8K},ReadPretty:function(){return W.iVT},ReadPrettyRecordPicker:function(){return W.ODP},RecordAssociationBlockInitializer:function(){return Q.$i},RecordAssociationDetailsBlockInitializer:function(){return Q.Mr},RecordAssociationFormBlockInitializer:function(){return Q.EK},RecordAssociationGridCardBlockInitializer:function(){return Q.zb},RecordAssociationListBlockInitializer:function(){return Q.Ok},RecordContext_deprecated:function(){return oe.rY},RecordFormBlockInitializer:function(){return Me.se},RecordIndexContext:function(){return oe.Pc},RecordIndexProvider:function(){return oe.li},RecordLink:function(){return p.hD},RecordPicker:function(){return W.lbb},RecordPickerContext:function(){return W.b7w},RecordPickerProvider:function(){return W.sUk},RecordProvider:function(){return oe.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return Q.CC},RecordSimpleProvider:function(){return oe.Qh},RefreshComponentProvider:function(){return Le.ri},RefreshDataBlockRequest:function(){return W.x1j},RemoteDocumentTitlePlugin:function(){return l.uN},RemoteDocumentTitleProvider:function(){return l.yq},RemoteSchemaComponent:function(){return W.m1v},RemoteSchemaTemplateManagerPlugin:function(){return ue.Wc},RemoteSchemaTemplateManagerProvider:function(){return ue.Jv},RemoteSelect:function(){return W.glM},RemoveButton:function(){return W.xZD},RemoveConditionContext:function(){return W.IuH},RenderChildrenWithAssociationFilter:function(){return p.gY},RequestSettings:function(){return W.MkN},RerenderDataBlockProvider:function(){return d.sI},Resizable:function(){return Ae.ez},RichText:function(){return W.Hof},RoleConfigure:function(){return E.XU},RoleResourceCollectionContext:function(){return E.O9},RoleTable:function(){return E.No},RolesResourcesActions:function(){return E.kF},RouteSchemaComponent:function(){return Y.GX},RouterContextCleaner:function(){return h.OW},RouterManager:function(){return h.k2},SNIPPET_PREFIX:function(){return h.MC},SanitizedCollectionProvider:function(){return d.Pd},SchemaComponent:function(){return W.n6},SchemaComponentContext:function(){return W.DDd},SchemaComponentOnChangeContext:function(){return W.ATq},SchemaComponentOptions:function(){return W.G0E},SchemaComponentPlugin:function(){return W.a$w},SchemaComponentProvider:function(){return W.TzZ},SchemaInitializer:function(){return h.Ms},SchemaInitializerActionModal:function(){return h.HS},SchemaInitializerActionModalInternal:function(){return h.IQ},SchemaInitializerChild:function(){return h.yH},SchemaInitializerChildren:function(){return h.E0},SchemaInitializerContext:function(){return h.V4},SchemaInitializerDivider:function(){return h.qU},SchemaInitializerItem:function(){return h.lV},SchemaInitializerItemContext:function(){return h.Mm},SchemaInitializerItemGroup:function(){return h.iP},SchemaInitializerItemGroupInternal:function(){return h.IY},SchemaInitializerItemInternal:function(){return h.VG},SchemaInitializerItems:function(){return h.LU},SchemaInitializerManager:function(){return h.eN},SchemaInitializerMenu:function(){return h.tu},SchemaInitializerMenuProvider:function(){return h.kw},SchemaInitializerOpenModeSchemaItems:function(){return fe.EU},SchemaInitializerPlugin:function(){return Q.dH},SchemaInitializerSelect:function(){return h.iW},SchemaInitializerSelectInternal:function(){return h.ud},SchemaInitializerSubMenu:function(){return h.eU},SchemaInitializerSubMenuInternal:function(){return h.xv},SchemaInitializerSwitch:function(){return h._n},SchemaInitializerSwitchInternal:function(){return h.wH},SchemaSettingItemContext:function(){return h.A4},SchemaSettingOpenModeSchemaItems:function(){return fe.HA},SchemaSettings:function(){return h.F5},SchemaSettingsActionLinkItem:function(){return Z.s},SchemaSettingsActionModalItem:function(){return X.Qh},SchemaSettingsBlockHeightItem:function(){return X.qf},SchemaSettingsBlockTitleItem:function(){return X._E},SchemaSettingsCascaderItem:function(){return X.ns},SchemaSettingsChild:function(){return h.kY},SchemaSettingsChildren:function(){return h.dk},SchemaSettingsConnectDataBlocks:function(){return X.FE},SchemaSettingsDataScope:function(){return X.HF},SchemaSettingsDataTemplates:function(){return X.ON},SchemaSettingsDateFormat:function(){return X.yu},SchemaSettingsDefaultSortingRules:function(){return X.y5},SchemaSettingsDefaultValue:function(){return X.Nn},SchemaSettingsDivider:function(){return X.Z5},SchemaSettingsDropdown:function(){return X.cM},SchemaSettingsEnableChildCollections:function(){return X.L3},SchemaSettingsFixed:function(){return Ae.rI},SchemaSettingsFormItemTemplate:function(){return X.vC},SchemaSettingsItem:function(){return X.r2},SchemaSettingsItemGroup:function(){return X.bw},SchemaSettingsLayoutItem:function(){return X.JM},SchemaSettingsLinkageRules:function(){return X.lc},SchemaSettingsManager:function(){return h.XD},SchemaSettingsModalItem:function(){return X.B0},SchemaSettingsNumberFormat:function(){return X.wH},SchemaSettingsPlugin:function(){return X.zM},SchemaSettingsPopupItem:function(){return X.D3},SchemaSettingsProvider:function(){return X.Rh},SchemaSettingsRemove:function(){return X.qx},SchemaSettingsRenderEngine:function(){return X.cK},SchemaSettingsSelectItem:function(){return X.Qf},SchemaSettingsSortingRule:function(){return X.wL},SchemaSettingsSubMenu:function(){return X.m$},SchemaSettingsSwitchItem:function(){return X.hj},SchemaSettingsTemplate:function(){return X.Gk},SchemaSettingsWrapper:function(){return h.GC},SchemaTemplateManagerContext:function(){return ue.Kb},SchemaToolbar:function(){return X.Mf},SchemaToolbarContext:function(){return h.J1},SchemaToolbarProvider:function(){return h.V$},SchemaToolbarVisibleContext:function(){return X.dI},ScopeSelect:function(){return E.X$},SearchCollections:function(){return Q.zH},SecondConFirm:function(){return W.y00},Select:function(){return W.PhF},SelectActionInitializer:function(){return Q.w_},SelectWithTitle:function(){return j.T},SetDataLoadingMode:function(){return Ee.jI},SettingCenterPermissionProvider:function(){return E.P2},SettingCenterProvider:function(){return E.S3},SettingsCenterConfigure:function(){return E.H3},SettingsCenterContext:function(){return q.EV},SettingsCenterDropdown:function(){return q.zK},SettingsMenu:function(){return Se.Tx},ShowFormData:function(){return W.Cqv},SkipValidation:function(){return W.cof},Sortable:function(){return W.bts},SortableContext:function(){return W.Fop},SortableItem:function(){return W.TRI},SortableProvider:function(){return W.ORg},Space:function(){return W.TaI},StablePopover:function(){return W.qHe},StrategyActions:function(){return E.R6},SubmitActionInitializer:function(){return Q.ss},SwitchLanguage:function(){return ve.j},SystemSettingsContext:function(){return ge.YO},SystemSettingsPane:function(){return ge.a$},SystemSettingsPlugin:function(){return ge.j8},SystemSettingsProvider:function(){return ge.C6},Table:function(){return W.iA_},TableActionColumnInitializer:function(){return Q.VU},TableBlockContext:function(){return p.Hz},TableBlockDesigner:function(){return W.gvM},TableBlockInitializer:function(){return Ae.kD},TableBlockProvider:function(){return p._0},TableColumnSchemaToolbar:function(){return Ae.u6},TableField:function(){return W.SnY},TableFieldContext:function(){return p.Q6},TableFieldProvider:function(){return p.CB},TableFieldResource:function(){return p.Qy},TableSelectorContext:function(){return p.Yu},TableSelectorDesigner:function(){return W.ASv},TableSelectorInitializer:function(){return Re.S},TableSelectorParamsProvider:function(){return p.Vs},TableSelectorProvider:function(){return p.rL},TableV2:function(){return W.bwk},Tabs:function(){return W.mQc},TabsContextProvider:function(){return W.c__},Templates:function(){return W.QZ3},TestDesigner:function(){return W.L39},TextAreaWithGlobalScope:function(){return W.feF},TimePicker:function(){return W.jII},TreeSelect:function(){return W.mPs},UnixTimestamp:function(){return W.tgM},Upload:function(){return W.gqx},Uploader:function(){return W.Qm7},Variable:function(){return W._wD},VariableInput:function(){return X.qj},VariablePopupRecordProvider:function(){return ae.Rm},VariableScopeProvider:function(){return W.rjl},VariablesContext:function(){return ie.cB},VariablesProvider:function(){return ie.Uj},WithoutFormFieldResource:function(){return p.$Y},WithoutTableFieldResource:function(){return p.s},WorkflowConfig:function(){return W.Fjw},actionSettings:function(){return W.SLL},actionSettingsItems:function(){return W.sBv},allowAddNew:function(){return W.iTm},appendQueryStringToUrl:function(){return p.HQ},attachmentFileTypes:function(){return W.BDK},cache:function(){return D.cache},canMakeAssociationBlock:function(){return Q.Tc},compatOldTheme:function(){return y.kK},completeURL:function(){return p.jR},compose:function(){return h.qC},createCreateFormBlockUISchema:function(){return Me.lJ},createDesignable:function(){return W.Pls},createDetailsBlockSchema:function(){return Q.e6},createFormActionInitializers:function(){return Me.nr},createFormActionInitializers_deprecated:function(){return Me.$G},createFormBlockSchema:function(){return Q.NH},createFormBlockSettings:function(){return Me.K9},createModalSettingsItem:function(){return h.lo},createReadPrettyFormBlockSchema:function(){return Q.Uc},createRouterManager:function(){return h.w9},createSelectSchemaSettingsItem:function(){return h.NB},createStyles:function(){return be.k},createSwitchSettingsItem:function(){return h.HL},createTableBlockSchema:function(){return Q.BU},createTableBlockUISchema:function(){return Ae.OO},createTextSettingsItem:function(){return h.yq},css:function(){return D.css},customFormItemInitializers:function(){return Q.Ic},customFormItemInitializers_deprecated:function(){return Q.Jn},cx:function(){return D.cx},defaultAppComponents:function(){return h.FH},defaultFieldNames:function(){return W.Oxq},defaultInputStyle:function(){return X.ZL},defaultTheme:function(){return y.uH},editFormBlockSettings:function(){return Me.rB},fetchTemplateData:function(){return W.WLi},fieldComponentSettingsItem:function(){return d.K0},fieldSettingsFormItem:function(){return Me.dV},fillParentFields:function(){return p.Xe},filterFormItemSettings:function(){return W.$9M},findByUid:function(){return W.nCn},findFilterTargets:function(){return p.SK},findFormBlock:function(){return p.Fi},findKanbanFormItem:function(){return d.iv},findKeysByUid:function(){return W.iNG},findMenuItem:function(){return W.tD8},findParentFieldSchema:function(){return X.PO},flush:function(){return D.flush},formActionInitializers:function(){return Me.vR},formDetailsSettings:function(){return W.pg9},formItemInitializers:function(){return Me.ex},formItemInitializers_deprecated:function(){return Me.eh},formItemSettings:function(){return W.Ofb},formSettings:function(){return W.ibf},formV1Settings:function(){return W.WyG},genStyleHook:function(){return W.l6$},getAppends:function(){return p.iF},getAssociationPath:function(){return p.dP},getCardItemSchema:function(){return p.Gn},getCollectionTitle:function(){return xe.A},getCurrentOptions:function(){return W.WGR},getDataSourceHeaders:function(){return d.GX},getDatePickerLabels:function(){return W.C$H},getDateRanges:function(){return W.SET},getFieldDefaultValue:function(){return X.os},getFormValues:function(){return p.X7},getGroupMenuSchema:function(){return Pe.X},getIdsWithChildren:function(){return p.Ns},getLabelFormatValue:function(){return W.cNQ},getLabelWithTooltip:function(){return X.rB},getLinkMenuSchema:function(){return _e.e},getPageMenuSchema:function(){return re.a},getPageSchema:function(){return p.tj},getPopupPathFromParams:function(){return W.NCb},getRegisteredStyles:function(){return D.getRegisteredStyles},getRenderContent:function(){return W.I9l},getShouldChange:function(){return X.Vc},getStoredPopupContext:function(){return W.XQ2},getSupportFieldsByAssociation:function(){return S.x5},getSupportFieldsByForeignKey:function(){return S.zv},getTabSchema:function(){return W.Fxc},getURLSearchParams:function(){return X.Uz},getURLSearchParamsChildren:function(){return X.n9},getVariableComponentWithScope:function(){return le.M},getVariablesFromExpression:function(){return ie.fN},gridRowColWrap:function(){return Q.BM},handleDateChangeOnForm:function(){return W.MDU},hasIcon:function(){return F.OL},hydrate:function(){return D.hydrate},i18n:function(){return t.a},icons:function(){return F.ci},inferPickerType:function(){return W.CEH},injectGlobal:function(){return D.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return X.TU},isAssocField:function(){return S.$f},isBulkEditAction:function(){return W.vUN},isFileCollection:function(){return W.ZZb},isInFilterFormBlock:function(){return S.Op},isInitializersSame:function(){return h.h6},isMobile:function(){return W.tqC},isPatternDisabled:function(){return X.VZ},isSameCollection:function(){return S.yr},isShowFilePicker:function(){return W.elO},isSystemField:function(){return X.Mq},isTabPage:function(){return W.CfU},isTitleField:function(){return d.Yj},isVariable:function(){return ie.cG},itemsMerge:function(){return Q.Z_},keyframes:function(){return D.keyframes},languageCodes:function(){return L.m9},lazy:function(){return O.Vo},locale:function(){return L.ZP},mapDatePicker:function(){return W.LPx},mapRangePicker:function(){return W.fY6},mapTimeFormat:function(){return W.Vm},merge:function(){return D.merge},mergeFilter:function(){return S.EO},mockAPIClient:function(){return me.G},moment2str:function(){return W.w_o},navigateToTab:function(){return W.SJF},navigateWithinSelf:function(){return p.nl},normalizeContainer:function(){return h.pn},pageSettings:function(){return W._Ko},pageTabSettings:function(){return W.Mev},parseVariablesAndChangeParamsToQueryString:function(){return p._f},readPrettyFormSettings:function(){return W.i2K},recordBlockInitializers:function(){return Q.vV},recordBlockInitializers_deprecated:function(){return Q.Sq},recursiveParent:function(){return p.zA},reduceValueSize:function(){return p.ID},registerIcon:function(){return F.q5},registerIcons:function(){return F.fm},removeNullCondition:function(){return W.WmO},replaceVariableValue:function(){return p.UY},requestParentRecordData:function(){return d.H0},schemaSettingsLabelLayout:function(){return X.ut},setDataLoadingModeSettingsItem:function(){return Ee.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return X.rf},setTheDataScopeSchemaSettingsItem:function(){return X.aP},sheet:function(){return D.sheet},showFileName:function(){return je.y},splitWrapSchema:function(){return W.oBi},storePopupContext:function(){return W.hKP},subTableActionInitializers:function(){return Q.U2},subTableActionInitializers_deprecated:function(){return Q.o_},systemKeys:function(){return X.ob},tabPaneInitializers:function(){return Q.$T},tabPaneInitializersForBulkEditFormBlock:function(){return Q.zg},tabPaneInitializersForRecordBlock:function(){return Q.d4},tabPaneInitializers_deprecated:function(){return Q.xc},tableActionColumnInitializers:function(){return Ae.Rp},tableActionColumnInitializers_deprecated:function(){return Ae.Xe},tableActionInitializers:function(){return Ae.H1},tableActionInitializers_deprecated:function(){return Ae.EG},tableBlockSettings:function(){return Ae.Oe},tableColumnInitializers:function(){return Ae.Ug},tableColumnInitializers_deprecated:function(){return Ae.T$},tableColumnSettings:function(){return Ae.FY},tableSelectorBlockSettings:function(){return Re.v},transformToFilter:function(){return S.jE},transformVariableValue:function(){return ie.J8},tval:function(){return t.v},updateFilterTargets:function(){return p.iJ},updateFormActionInitializers:function(){return Me.SW},updateFormActionInitializers_deprecated:function(){return Me.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 J.LY},useAPITokenVariable:function(){return X.IG},useActionAvailable:function(){return Ee.vn},useActionBarContext:function(){return W.DU1},useActionContext:function(){return W.XCj},useAdminSchemaUid:function(){return K.W},useAllAccessDesktopRoutes:function(){return Y.Kf},useAllCollectionsInheritChainGetter:function(){return d.Uv},useApp:function(){return h.qD},useAppLangContext:function(){return V.GW},useAppSpin:function(){return h.rM},useAriaAttributeOfMenuItem:function(){return h.ne},useAssociatedFields:function(){return S.Fp},useAssociatedFormItemInitializerFields:function(){return Q.hg},useAssociatedTableColumnInitializerFields:function(){return Q.V0},useAssociationCreateActionProps:function(){return p.Yo},useAssociationFieldContext:function(){return W.KyD},useAssociationFieldModeContext:function(){return W.Vpg},useAssociationFilterBlockProps:function(){return p._S},useAssociationFilterProps:function(){return p.rD},useAssociationName:function(){return d.Xo},useAssociationNames:function(){return p.P_},useAsyncData:function(){return M.w3},useAttach:function(){return W.lIL},useBackButton:function(){return W.KxP},useBaseVariable:function(){return X.zI},useBlockAssociationContext:function(){return p.DD},useBlockContext:function(){return p.VG},useBlockHeight:function(){return W.hi9},useBlockHeightProps:function(){return p.gp},useBlockRequestContext:function(){return p.BU},useBlockResource:function(){return p.lT},useBlockTemplateContext:function(){return ue.rE},useBuiltinVariables:function(){return ie.L7},useBulkDestroyActionProps:function(){return p.ns},useCloseAction:function(){return W.p27},useCollectValuesToSubmit:function(){return p.hu},useCollection:function(){return d.Kx},useCollectionDataSourceItems:function(){return Q.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 X.IO},useCollections:function(){return d.bX},useColumnSchema:function(){return W.z9d},useCompatOldVariables:function(){return X.b1},useCompile:function(){return W.eJW},useComponent:function(){return W.Cor},useContextVariable:function(){return ie.Ym},useCreateActionProps:function(){return p.cD},useCreateAssociationDetailsBlock:function(){return Q.Dc},useCreateAssociationDetailsWithoutPagination:function(){return Q.yZ},useCreateAssociationFormBlock:function(){return Q.Qr},useCreateAssociationGridCardBlock:function(){return Q.yG},useCreateAssociationListBlock:function(){return Q.R_},useCreateAssociationTableBlock:function(){return Q.Rm},useCreateEditFormBlock:function(){return Me.$R},useCreateFormBlock:function(){return Me.kQ},useCreateTableBlock:function(){return Ae.Ez},useCurrentAppInfo:function(){return $._S},useCurrentDocumentTitle:function(){return l.AL},useCurrentPageUid:function(){return h.Rx},useCurrentPopupContext:function(){return W.Zmk},useCurrentPopupRecord:function(){return ae.Sw},useCurrentRoleVariable:function(){return X.KR},useCurrentRoles:function(){return Se.ih},useCurrentRoute:function(){return Y.Hb},useCurrentSchema:function(){return Q.pZ},useCurrentSearchParams:function(){return h.r_},useCurrentTabUid:function(){return h.zJ},useCurrentUserContext:function(){return Se.OP},useCurrentUserSettingsMenu:function(){return Se.t$},useCurrentUserVariable:function(){return X.AO},useCustomizeBulkUpdateActionProps:function(){return p.UQ},useCustomizeRequestActionProps:function(){return p.xx},useCustomizeUpdateActionProps:function(){return p.X0},useDataBlock:function(){return d.eS},useDataBlockHeight:function(){return W.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 Ee.tU},useDataSource:function(){return d.wl},useDataSourceHeaders:function(){return d.on},useDataSourceKey:function(){return d.FC},useDataSourceManager:function(){return d.fp},useDataTemplates:function(){return X.dD},useDatePickerContext:function(){return W.P1D},useDateVariable:function(){return X.ds},useDatetimeVariable:function(){return X.Ld},useDatetimeVariableContext:function(){return X.FB},useDesignable:function(){return W.ngQ},useDesigner:function(){return W.ett},useDestroyActionProps:function(){return p.z2},useDetailsBlockContext:function(){return p.nT},useDetailsBlockProps:function(){return p.BX},useDetailsDecoratorProps:function(){return Ee.dS},useDetailsPaginationProps:function(){return p.bF},useDetailsParentRecord:function(){return Ee.jM},useDetailsProps:function(){return Ee.os},useDetailsWithPaginationBlockParams:function(){return Ee.ln},useDetailsWithPaginationDecoratorProps:function(){return Ee.ec},useDetailsWithPaginationProps:function(){return Ee.tm},useDisassociateActionProps:function(){return p.ii},useDocumentTitle:function(){return l.jr},useDownloadLogs:function(){return W.ySm},useEnsureOperatorsValid:function(){return W.Zd$},useExtendCollections:function(){return d.P5},useFieldComponentName:function(){return j.W},useFieldComponentOptions:function(){return W.cLh},useFieldMode:function(){return W.baz},useFieldModeOptions:function(){return W.fde},useFieldNames:function(){return W.Xdt},useFieldProps:function(){return W.Cld},useFieldTitle:function(){return W.vH8},useFilterAPI:function(){return S.hi},useFilterActionProps:function(){return W.PLH},useFilterBlock:function(){return S.kO},useFilterBlockActionProps:function(){return p.Oy},useFilterByTk:function(){return p.C},useFilterFieldOptions:function(){return W.V8t},useFilterFieldProps:function(){return W.tMk},useFilterOptions:function(){return W.xQm},useFindComponent:function(){return W.sRe},useFlag:function(){return G.P5},useFormActiveFields:function(){return p.zj},useFormBlockContext:function(){return p.bz},useFormBlockProps:function(){return p._$},useFormBlockType:function(){return p.th},useFormDataTemplates:function(){return W.U1u},useFormFieldContext:function(){return p.e$},useFormFieldProps:function(){return p.GK},useFormItemInitializerFields:function(){return Q.I_},useGetAriaLabelOfAction:function(){return W.HS$},useGetAriaLabelOfDesigner:function(){return X.zf},useGetAriaLabelOfDrawer:function(){return W.vBu},useGetAriaLabelOfModal:function(){return W.QYZ},useGetAriaLabelOfPopover:function(){return W.t9d},useGetFilterFieldOptions:function(){return W.Kgy},useGetFilterOptions:function(){return W.aJ2},useGetSchemaInitializerMenuItems:function(){return h.bw},useGlobalTheme:function(){return y.mg},useGlobalVariable:function(){return h.Xb},useGridContext:function(){return W.n14},useGridRowContext:function(){return W.DiB},useInheritsTableColumnInitializerFields:function(){return Q.yi},useIsAddNewForm:function(){return W.l1O},useIsAdminPage:function(){return h.mI},useIsAllowToSetDefaultValue:function(){return X.SF},useIsAssociationField:function(){return W.w5o},useIsDetailBlock:function(){return p.WG},useIsFieldReadPretty:function(){return W.p3Q},useIsFileField:function(){return W.G5e},useIsFormReadPretty:function(){return W.xj2},useIsInSettingsPage:function(){return h.Bb},useIsSelectFieldMode:function(){return W.rxY},useIsSubPageClosedByPageMenu:function(){return h.ce},useLabelUiSchema:function(){return W.Ils},useLazy:function(){return O.lN},useLinkActionProps:function(){return p.ee},useLinkageAction:function(){return W.zCB},useLocalVariables:function(){return ie.Kp},useLocationNoUpdate:function(){return h.fj},useLocationSearch:function(){return h.HU},useMatchAdmin:function(){return h.xi},useMatchAdminName:function(){return h.tJ},useMenuDragEnd:function(){return W.CMh},useMenuSearch:function(){return Q.jA},useNavigateNoUpdate:function(){return h.WO},useNocoBaseRoutes:function(){return W.FMn},useOpenModeContext:function(){return R.B},useOptionalFieldList:function(){return p.Lh},useParamsFromRecord:function(){return p.MM},useParentCollection:function(){return d.lb},useParentRecordCommon:function(){return Oe._},useParentRoute:function(){return W.T0O},useParseDataScopeFilter:function(){return X._Y},useParseURLAndParams:function(){return p.VC},useParsedFilter:function(){return p.vs},usePickActionProps:function(){return p.St},usePlugin:function(){return h.j7},usePopupSettings:function(){return W.a4r},usePopupUtils:function(){return De.E},usePopupVariable:function(){return X.AJ},usePopupVariableContext:function(){return X.gG},useProps:function(){return W.wNf},useRecord:function(){return oe.a},useRecordCollectionDataSourceItems:function(){return Q.bQ},useRecordIndex:function(){return oe.pW},useRecordIsOwn:function(){return oe.Px},useRecordPkValue:function(){return E.Jn},useRefreshActionProps:function(){return p.Xk},useRefreshFieldSchema:function(){return Le.gR},useRemoveActionProps:function(){return p.PJ},useRemoveGridFormItem:function(){return Q.EY},useRequest:function(){return J.QT},useRerenderDataBlock:function(){return d.Rr},useResetBlockActionProps:function(){return p.NP},useResource:function(){return J.Wf},useRoleRecheck:function(){return E.fG},useRoleVariable:function(){return X.bs},useRolesResourcesScopesSelectedRowKeys:function(){return E.cm},useRouter:function(){return h.tv},useRouterBasename:function(){return h.hZ},useSchemaComponentContext:function(){return W.Dmu},useSchemaInitializer:function(){return h.q_},useSchemaInitializerItem:function(){return h.UR},useSchemaInitializerMenuItems:function(){return h.hL},useSchemaInitializerRender:function(){return h.IU},useSchemaInitializerStyles:function(){return h._$},useSchemaInitializerSubMenuContext:function(){return h.vH},useSchemaOptionsContext:function(){return W.Bsl},useSchemaSettings:function(){return X.DD},useSchemaSettingsItem:function(){return h.J$},useSchemaSettingsRender:function(){return h.mQ},useSchemaTemplate:function(){return ue.zy},useSchemaTemplateManager:function(){return ue.$t},useSchemaToolbar:function(){return h.Po},useSchemaToolbarRender:function(){return h.du},useSourceId:function(){return Ee.GL},useSourceIdFromParentRecord:function(){return p.m},useSourceIdFromRecord:function(){return p.e0},useStyles:function(){return W.yKv},useSupportedBlocks:function(){return S.Um},useSyncFromForm:function(){return X.F1},useSystemSettings:function(){return ge.HX},useTableBlockContext:function(){return p.Si},useTableBlockContextBasicValue:function(){return p.bE},useTableBlockDecoratorProps:function(){return Ae.cL},useTableBlockParams:function(){return Ae.lo},useTableBlockProps:function(){return Ae.GK},useTableColumnInitializerFields:function(){return Q.bJ},useTableFieldContext:function(){return p.Wx},useTableFieldProps:function(){return p.oA},useTableSelectorContext:function(){return p.CL},useTableSelectorProps:function(){return p.RP},useTableSize:function(){return W.fMB},useTabsContext:function(){return W.gCg},useTitleFieldOptions:function(){return W.eT6},useToken:function(){return be.d},useUIConfigurationPermissions:function(){return E.mR},useURLAndHTMLSchema:function(){return le.R},useURLSearchParamsCtx:function(){return X.MD},useURLSearchParamsVariable:function(){return X.F5},useUpdateActionProps:function(){return p.HD},useUploadStyles:function(){return W.$SN},useUserVariable:function(){return X.KD},useValidateSchema:function(){return W.q4O},useVariableOptions:function(){return X.Y5},useVariableScope:function(){return W.ymE},useVariables:function(){return ie.OQ},useViewport:function(){return K.S},useZIndexContext:function(){return W.uqQ},withDynamicSchemaProps:function(){return ee.t},withInitializer:function(){return h.W_},withSearchParams:function(){return W.Q3P},withSkeletonComponent:function(){return ce.C},zIndexContext:function(){return W.K5K}});var H=e(66607),u=e.n(H),w=e(79212),i=e.n(w),x=e(37412),g=e.n(x),B=e(59542),r=e.n(B),z=e(96036),m=e.n(z),A=e(96671),f=e.n(A),I=e(70178),n=e.n(I),C=e(72540),N=e.n(C),o=e(90844),a=e(14994),D=e(97133),E=e(47646),V=e(75599),J=e(12174),$=e(80347),h=e(29939),M=e(26124),p=e(67174),P=e(6145),v={};for(var U 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(U)<0&&(v[U]=function(Ve){return P[Ve]}.bind(0,U));e.d(se,v);var j=e(7737),c=e(20085),d=e(94804),l=e(69803),S=e(18386),G=e(53285),y=e(69962),K=e(29392),t=e(58384),F=e(82369),O=e(98902),L=e(35310),b=e(7825),T=e(52817),q=e(65213),ne=e(53181),oe=e(36586),Y=e(8918),W=e(7105),Q=e(11117),fe=e(90810),X=e(36802),ue=e(15195),be=e(39863),ge=e(15585),me=e(16779),Se=e(95882),ie=e(64910),ee=e(15503),ce=e(83335),ve=e(71098),Z=e(29245),le=e(83954),xe=e(16966),Me=e(67565),Ae=e(77681),Re=e(75145),Ee=e(56995),Oe=e(92700),Pe=e(24757),_e=e(23437),re=e(18591),R=e(39270),de=e(74483),De=e(23048),ae=e(73691),je=e(69435),Le=e(57105)},98902:function(We,se,e){"use strict";e.d(se,{Vo:function(){return m},XI:function(){return z},lN:function(){return A}});var H=e(97857),u=e.n(H),w=e(67294),i=e(57953),x=e(96486),g=e.n(x),B=e(97289),r=e(85893),z=Symbol("LAZY_COMPONENT_KEY");function m(f){for(var I=arguments.length,n=new Array(I>1?I-1:0),C=1;C<I;C++)n[C-1]=arguments[C];if(n.length===0){var N=(0,w.lazy)(function(){return f().then(function(a){var D=a.default;return o[z]=D,{default:D}})}),o=function(D){return(0,r.jsx)(w.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(N,u()({},D))})};return o}return n.reduce(function(a,D){var E=(0,w.lazy)(function(){return f().then(function(V){var J=(0,x.get)(V,D);return a[D][z]=J,{default:J}})});return a[D]=function(V){return(0,r.jsx)(w.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(E,u()({},V))})},a},{})}function A(f,I){var n=typeof I=="function"?I:function(o){return o[I]},C=(0,B.I6)(f);if(!C.payload)throw new Promise(function(o,a){C.loadIfNeeded(),C.resolution.then(o).catch(a)});var N=n(C.payload);return N}},35310:function(We,se,e){"use strict";e.d(se,{m9:function(){return u},yx:function(){return H}});var H={"ar-EG":"ar","az-AZ":"az","bg-BG":"bg","bn-BD":"bn-bd","by-BY":"en","ca-ES":"ca","cs-CZ":"cs","da-DK":"da","de-DE":"de","el-GR":"el","en-GB":"en-gb","en-US":"en","es-ES":"es","et-EE":"et","fa-IR":"fa","fi-FI":"fi","fr-BE":"fr","fr-CA":"fr","fr-FR":"fr","ga-IE":"ga","gl-ES":"gl","he-IL":"he","hi-IN":"hi","hr-HR":"hr","hu-HU":"hu","hy-AM":"hy-am","id-ID":"id","is-IS":"is","it-IT":"it","ja-JP":"ja","ka-GE":"ka","kk-KZ":"kk","km-KH":"km","kn-IN":"kn","ko-KR":"ko","ku-IQ":"ku","lt-LT":"lt","lv-LV":"lv","mk-MK":"mk","ml-IN":"ml","mn-MN":"mn","ms-MY":"ms","nb-NO":"nb","ne-NP":"ne","nl-BE":"nl-be","nl-NL":"nl","pl-PL":"pl","pt-BR":"pt-br","pt-PT":"pt","ro-RO":"ro","ru-RU":"ru","si-LK":"si","sk-SK":"sk","sl-SI":"sl","sr-RS":"sr","sv-SE":"sv","ta-IN":"ta","th-TH":"th","tk-TK":"tk","tr-TR":"tr","uk-UA":"uk","ur-PK":"ur","vi-VN":"vi","zh-CN":"zh-cn","zh-HK":"zh-hk","zh-TW":"zh-tw"},u={"ar-EG":{label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},"az-AZ":{label:"Az\u0259rbaycan dili"},"bg-BG":{label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},"bn-BD":{label:"Bengali"},"by-BY":{label:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456"},"ca-ES":{label:"\u0421atal\xE0/Espanya"},"cs-CZ":{label:"\u010Cesky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xF1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"\u0641\u0627\u0631\u0633\u06CC"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xE7ais(BE)"},"fr-CA":{label:"Fran\xE7ais(CA)"},"fr-FR":{label:"Fran\xE7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"\u05E2\u05D1\u05E8\u05D9\u05EA"},"hi-IN":{label:"\u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xCDslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"\u65E5\u672C\u8A9E"},"ka-GE":{label:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"},"kk-KZ":{label:"\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"},"km-KH":{label:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},"kn-IN":{label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"},"ko-KR":{label:"\uD55C\uAD6D\uC5B4"},"ku-IQ":{label:"\u06A9\u0648\u0631\u062F\u06CC"},"lt-LT":{label:"lietuvi\u0173"},"lv-LV":{label:"Latvie\u0161u valoda"},"mk-MK":{label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A"},"ml-IN":{label:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"},"mn-MN":{label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},"ms-MY":{label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648"},"nb-NO":{label:"Norsk bokm\xE5l"},"ne-NP":{label:"\u0928\u0947\u092A\u093E\u0932\u0940"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xEAs brasileiro"},"pt-PT":{label:"Portugu\xEAs"},"ro-RO":{label:"Rom\xE2nia"},"ru-RU":{label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},"si-LK":{label:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"},"sk-SK":{label:"Sloven\u010Dina"},"sl-SI":{label:"Sloven\u0161\u010Dina"},"sr-RS":{label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xFCrk\xE7e"},"uk-UA":{label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},"ur-PK":{label:"O\u02BBzbekcha"},"vi-VN":{label:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{label:"\u7B80\u4F53\u4E2D\u6587"},"zh-HK":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u9999\u6E2F\uFF09"},"zh-TW":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u6E7E\uFF09"}};se.ZP=u},29245:function(We,se,e){"use strict";e.d(se,{f:function(){return E},s:function(){return D}});var H=e(9783),u=e.n(H),w=e(97857),i=e.n(w),x=e(5552),g=e(80844),B=e(96486),r=e.n(B),z=e(67294),m=e(26793),A=e(21143),f=e(29939),I=e(91410),n=e(6145),C=e(55642),N=e(36802),o=e(83954),a=e(85893),D=function(){var J=(0,g.useField)(),$=(0,g.useFieldSchema)(),h=(0,A.useDesignable)(),M=h.dn,p=(0,m.$)(),P=p.t,v=(0,o.R)(),U=v.urlSchema,j=v.paramsSchema,c=v.openInNewWindowSchema,d=$["x-component-props"]||{},l={url:d.url,params:d.params||[{}],openInNewWindow:d.openInNewWindow};return(0,a.jsx)(N.B0,{title:P("Edit link"),components:{ArrayItems:x.ArrayItems},schema:{type:"object",title:P("Edit link"),properties:{url:i()(i()({},U),{},{required:!0}),params:j,openInNewWindow:c}},onSubmit:function(G){var y,K=G.url,t=G.params,F=G.openInNewWindow;d.url=K,d.params=t,d.openInNewWindow=F,$["x-component-props"]=d,J.componentProps.url=K,J.componentProps.params=t,J.componentProps.openInNewWindow=F,M.emit("patch",{schema:(y={},u()(y,"x-uid",$["x-uid"]),u()(y,"x-component-props",d),y)}),M.refresh()},initialValues:l})},E=new I.F({name:"actionSettings:link",items:[{name:"editButton",Component:C.C1,useComponentProps:function(){var J=(0,f.Po)(),$=J.buttonEditorProps;return $}},{name:"editLink",Component:D},{name:"linkageRules",Component:N.lc,useVisible:function(){var J=(0,A.useCollectionRecord)();return!r().isEmpty(J==null?void 0:J.data)},useComponentProps:function(){var J=(0,n.useCollection_deprecated)(),$=J.name,h=(0,f.Po)(),M=h.linkageRulesProps;return i()(i()({},M),{},{collectionName:$})}},{name:"remove",sort:100,Component:C.xZ,useComponentProps:function(){var J=(0,f.Po)(),$=J.removeButtonProps;return $}}]})},83954:function(We,se,e){"use strict";e.d(se,{M:function(){return C},R:function(){return N}});var H=e(68400),u=e.n(H),w=e(97857),i=e.n(w),x=e(97133),g=e(80844),B=e(67294),r=e(26793),z=e(7340),m=e(36586),A=e(91053),f=e(54885),I=e(85893),n,C=function(a){return function(D){var E=(0,g.useFieldSchema)(),V=(0,z.bz)(),J=V.form,$=(0,m.a)(),h=(0,f.Y)({collectionField:{uiSchema:E},form:J,record:$,uiSchema:E,noDisabled:!0});return(0,I.jsx)(a,i()(i()({},D),{},{scope:h}))}},N=function(){var a=(0,r.$)(),D=a.t,E=(0,B.useMemo)(function(){return C(A._w.TextArea)},[]),V=(0,B.useMemo)(function(){return{title:D("URL"),type:"string","x-decorator":"FormItem","x-component":E,description:D("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[D,E]),J=(0,B.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:D("URL")},{value:"html",label:D("HTML")}]}},[D]),$=(0,B.useMemo)(function(){return{title:D("html"),type:"string","x-decorator":"FormItem","x-component":C(A._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[D]),h=(0,B.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,x.css)(n||(n=u()([`
|
|
117
|
+
`])))},"x-component":D,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},J=function(){for(var h={},M=arguments.length,p=new Array(M),P=0;P<M;P++)p[P]=arguments[P];for(var v=0,U=p;v<U.length;v++){var j=U[v];V[j]&&(h[j]=V[j])}return h}},44605:function(){},53772:function(){},99899:function(We,se,e){"use strict";e.d(se,{U:function(){return H},l:function(){return u}});function H(w){var i;if(!w)return[];var x=w.split(":"),g=x.pop(),B=(i=x[0])!==null&&i!==void 0?i:"main";return[B,g]}function u(w,i){return!w||w==="main"?i:"".concat(w,":").concat(i)}},5346:function(We,se,e){"use strict";e.d(se,{T:function(){return g}});var H=e(5574),u=e.n(H),w=e(34041),i=e(67294),x=e(85893);function g(B){var r=B.title,z=B.defaultValue,m=B.onChange,A=B.options,f=B.fieldNames,I=(0,i.useState)(!1),n=u()(I,2),C=n[0],N=n[1],o=(0,i.useRef)(null);return(0,x.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(D){D.stopPropagation(),N(function(E){return!E})},onMouseLeave:function(){o.current=setTimeout(function(){N(!1)},200)},children:[r,(0,x.jsx)(w.default,{open:C,"data-testid":"select-".concat(r),popupMatchSelectWidth:!1,bordered:!1,defaultValue:z,onChange:m,popupClassName:"select-popup-".concat(r.replaceAll(" ","-")),fieldNames:f,options:A,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(o.current)}})]})}},7737:function(We,se,e){"use strict";e.d(se,{T:function(){return H.T},W:function(){return u.W}});var H=e(5346),u=e(56318)},56318:function(We,se,e){"use strict";e.d(se,{W:function(){return x}});var H=e(80844),u=e(67668),w=e(38752),i=e(81230);function x(){var g,B,r,z,m=(0,i.z9)(),A=m.fieldSchema,f=m.collectionField,I=(0,H.useField)(),n=(0,w.G5)(),C=(0,H.useFieldSchema)(),N=(0,u.Hy)(),o=A||C,a=f||N,D={AssociationField:"Select"},E=(o==null||(g=o["x-component-props"])===null||g===void 0?void 0:g.mode)||(I==null||(B=I.componentProps)===null||B===void 0?void 0:B.mode)||(n?"FileManager":"")||(o==null||(r=o["x-component-props"])===null||r===void 0?void 0:r.component)||(a==null||(z=a.uiSchema)===null||z===void 0?void 0:z["x-component"]);return D[E]||E}},52967:function(We,se,e){"use strict";e.d(se,{e:function(){return u}});var H=e(67294),u=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=(0,H.useRef)(0);return(0,H.useEffect)(function(){var g=function(r){var z=r.clientY,m=Math.max(z,window.innerHeight-z);x.current=m};return window.addEventListener("mousemove",g),function(){window.removeEventListener("mousemove",g)}},[]),(0,H.useMemo)(function(){return x.current-40},i)}},20085:function(We,se,e){"use strict";e.d(se,{O:function(){return g}});var H=e(10274),u=e(67294),w=e(69962),i=e(68230),x=function(r){var z=r.children,m=(0,i.d)(),A=m.token,f=A.colorFillTertiary,I=new H.C(A.colorFill).onBackground(A.colorFillSecondary).toHexShortString(),n=new H.C(A.colorFill).onBackground(A.colorFill).toHexShortString(),C=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",f),document.body.style.setProperty("--colorBgScrollBar",I),document.body.style.setProperty("--colorBgScrollBarHover",n),document.body.style.setProperty("--colorBgScrollBarActive",C),document.body.style.setProperty("--colorSettings",A.colorSettings||w.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)},[I,C,n,f,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]),z};x.displayName="CSSVariableProvider";var g=x},31959:function(We,se,e){"use strict";e.d(se,{S:function(){return I}});var H=e(97857),u=e.n(H),w=e(12444),i=e.n(w),x=e(72004),g=e.n(x),B=e(9783),r=e.n(B),z=e(96486),m=e.n(z),A=e(65375),f=e(84157),I=function(){function n(C){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=C}return g()(n,[{key:"addComponentOption",value:function(N){if(!this.componentOptions){var o,a;this.componentOptions=[];var D=(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(D){var V,J=((V=this.default)===null||V===void 0||(V=V.uiSchema)===null||V===void 0?void 0:V.type)||"string",$=(0,f.tval)(D.startsWith("Input")?(0,z.capitalize)(J):D.split(".").pop());this.componentOptions=[{label:$,value:D,useProps:function(){return E||{}}}]}}this.componentOptions.push(N)}},{key:"getConfigureFormProperties",value:function(){var N=this.hasDefaultValue?this.getDefaultValueProperty():{};return u()(u()({},(0,z.cloneDeep)(u()(u()({},A.defaultProps),this===null||this===void 0?void 0:this.properties))),N)}},{key:"getDefaultValueProperty",value:function(){var N,o;return{defaultValue:u()(u()(u()({},(0,z.cloneDeep)(this===null||this===void 0||(N=this.default)===null||N===void 0?void 0:N.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(We,se,e){"use strict";e.d(se,{S:function(){return H.S},Z:function(){return r}});var H=e(31959),u=e(12444),w=e.n(u),i=e(72004),x=e.n(i),g=e(9783),B=e.n(g),r=function(){function z(m,A,f){w()(this,z),B()(this,"collectionFieldInterfaceInstances",{}),B()(this,"collectionFieldGroups",{}),B()(this,"actionList",{}),this.dataSourceManager=f,this.addFieldInterfaces(m),this.addFieldInterfaceGroups(A)}return x()(z,[{key:"addFieldInterfaces",value:function(){var A=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=f.reduce(function(n,C){var N=new C(A);return n[N.name]=N,Array.isArray(A.actionList[N.name])&&(A.actionList[N.name].forEach(function(o){N[o.type](o.data)}),A.actionList[N.name]=void 0),n},{});Object.assign(this.collectionFieldInterfaceInstances,I)}},{key:"addFieldInterfaceComponentOption",value:function(A,f){var I=this.getFieldInterface(A);if(!I){this.actionList[A]||(this.actionList[A]=[]),this.actionList[A].push({type:"addComponentOption",data:f});return}I.addComponentOption(f)}},{key:"getFieldInterface",value:function(A){return this.collectionFieldInterfaceInstances[A]}},{key:"getFieldInterfaces",value:function(A){return Object.values(this.collectionFieldInterfaceInstances).filter(function(f){if(!A||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var I;return(I=f.supportDataSourceType)===null||I===void 0?void 0:I.includes(A)}if(f.notSupportDataSourceType){var n;return!((n=f.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]}}]),z}()},52020:function(We,se,e){"use strict";e.d(se,{s:function(){return E}});var H=e(97857),u=e.n(H),w=e(80844),i=e(85667),x=e(84327),g=e(96486),B=e.n(g),r=e(67294),z=e(7340),m=e(57105),A=e(15503),f=e(7105),I=e(29124),n=e(67668),C=e(85893),N=function(J,$,h){(0,i.untracked)(function(){J[$]===void 0&&(J[$]=h)})},o=function(J,$,h){typeof $.required>"u"&&(J.required=!!h.required)},a=function(J){var $,h=(0,f.eJW)(),M=(0,w.useField)(),p=(0,w.useFieldSchema)(),P=(0,n.Hy)(),v=P.uiSchema,U=P.defaultValue,j=(0,I.SF)(),c=j.isAllowToSetDefaultValue,d=(0,f.Cor)((($=p["x-component-props"])===null||$===void 0?void 0:$.component)||(v==null?void 0:v["x-component"])||"Input"),l=(0,z.bz)(),S=(0,A.M)(v==null?void 0:v["x-use-component-props"],J);return(0,r.useEffect)(function(){if(v){var G=h(v);if(N(M,"content",G["x-content"]),N(M,"title",G.title),N(M,"description",G.description),l!=null&&l.form){var y=c()?p.default||U:void 0;y!=null&&N(M,"initialValue",y)}if(!M.validator&&(G["x-validator"]||p["x-validator"])){var K=(0,g.concat)([],G["x-validator"]||[],p["x-validator"]||[]);M.validator=K}p["x-disabled"]===!0&&(M.disabled=!0),p["x-read-pretty"]===!0&&(M.readPretty=!0),o(M,p,G),M.dataSource=G.enum;var t=h(G["x-component-props"])||{};M.componentProps=(0,x.merge)(t,M.componentProps||{},S||{})}},[v]),v?(0,C.jsx)(d,u()(u()({},J),S)):null},D=function(J){var $,h=(0,w.useField)(),M=(0,w.useFieldSchema)(),p=(0,m.mz)(),P=p.uiSchema,v=(0,f.Cor)((($=M["x-component-props"])===null||$===void 0?void 0:$.component)||(P==null?void 0:P["x-component"])||"Input"),U=(0,A.M)(P==null?void 0:P["x-use-component-props"],J);return(0,r.useEffect)(function(){M["x-read-pretty"]===!0&&!h.readPretty&&(h.readPretty=!0)},[h,M]),P?(0,C.jsx)(v,u()(u()({},J),U)):null},E=(0,w.connect)(function(V){var J=(0,w.useFieldSchema)(),$=(0,m.cl)();return(0,C.jsx)(n.YT,{name:J.name,children:$?(0,C.jsx)(D,u()({},V)):(0,C.jsx)(a,u()({},V))})});E.displayName="CollectionField"},67668:function(We,se,e){"use strict";e.d(se,{Hy:function(){return z},YT:function(){return B},m9:function(){return r},v_:function(){return g}});var H=e(67294),u=e(80844),w=e(1836),i=e(36032),x=e(85893),g=(0,H.createContext)(null);g.displayName="CollectionFieldContext";var B=function(A){var f=A.name,I=A.children,n=A.allowNull,C=(0,u.useFieldSchema)(),N=(0,w.Kx)(),o=(0,w.d9)(),a=(0,H.useMemo)(function(){var D;if(!N)return null;var E=C==null||(D=C["x-component-props"])===null||D===void 0?void 0:D.field;return o.getCollectionField(C==null?void 0:C["x-collection-field"])||E||N.getField((E==null?void 0:E.name)||f)},[N,C,o,f]);return!a&&n?(0,x.jsx)(x.Fragment,{children:I}):a?(0,x.jsx)(g.Provider,{value:a,children:I}):(0,x.jsx)(i.z,{type:"Field",name:f})},r=function(A){return(0,x.jsx)(g.Provider,{value:null,children:A.children})},z=function(){var A=(0,H.useContext)(g);return A}},58530:function(We,se,e){"use strict";e.d(se,{D:function(){return B}});var H=e(12444),u=e.n(H),w=e(72004),i=e.n(w),x=e(9783),g=e.n(x),B=function(){function r(z){u()(this,r),g()(this,"data",void 0),g()(this,"parentRecord",void 0),g()(this,"isNew",void 0);var m=z.data,A=z.parentRecord,f=z.isNew;this.isNew=f,this.data=m,this.parentRecord=A}return i()(r,[{key:"setData",value:function(m){this.data=m}},{key:"setParentRecord",value:function(m){this.parentRecord=m}}]),r}()},49834:function(We,se,e){"use strict";e.d(se,{E0:function(){return x},Kv:function(){return z},RA:function(){return r},nE:function(){return B},oV:function(){return g},vI:function(){return i}});var H=e(67294),u=e(58530),w=e(85893),i=(0,H.createContext)(null);i.displayName="CollectionRecordContext";var x=H.memo(function(m){var A=m.isNew,f=m.record,I=m.parentRecord,n=m.children,C=(0,H.useMemo)(function(){if(I)return I instanceof u.D?I:new u.D({data:I});if(f instanceof u.D)return f.parentRecord},[I,f]),N=(0,H.useMemo)(function(){var o;return f?f instanceof u.D?(o=f,o.isNew=f.isNew||A):o=new u.D({data:f,isNew:A}):o=new u.D({isNew:A}),o.setParentRecord(C),o},[f,C,A]);return(0,w.jsx)(i.Provider,{value:N,children:n})});x.displayName="CollectionRecordProvider";function g(){var m=(0,H.useContext)(i);return m}function B(){var m=g();return m==null?void 0:m.data}function r(){var m=g();return m==null?void 0:m.parentRecord}function z(){var m,A=g();return A==null||(m=A.parentRecord)===null||m===void 0?void 0:m.data}},88496:function(We,se,e){"use strict";e.d(se,{DI:function(){return H.D},E0:function(){return u.E0},Kv:function(){return u.Kv},RA:function(){return u.RA},nE:function(){return u.nE},oV:function(){return u.oV},vI:function(){return u.vI}});var H=e(58530),u=e(49834)},373:function(We,se,e){"use strict";e.d(se,{d:function(){return g},k:function(){return x}});var H=e(85667),u=e(96486),w=e.n(u),i="__isNewRecord__",x=function(r){return(0,H.untracked)(function(){return!!(r!=null&&r[i])})},g=function(r){if(!(0,u.isObject)(r))throw new Error("markRecordAsNew: record must be an object");return r[i]=!0,r}},34096:function(We,se,e){"use strict";e.d(se,{P:function(){return B}});var H=e(72004),u=e.n(H),w=e(12444),i=e.n(w),x=e(9783),g=e.n(x),B=u()(function r(z){i()(this,r),g()(this,"name",void 0),g()(this,"Collection",void 0),g()(this,"title",void 0),g()(this,"color",void 0),g()(this,"order",void 0),g()(this,"default",void 0),g()(this,"events",void 0),g()(this,"configurableProperties",void 0),g()(this,"availableFieldInterfaces",void 0),g()(this,"divider",void 0),g()(this,"description",void 0),g()(this,"configureActions",void 0),g()(this,"forbidDeletion",void 0),g()(this,"supportDataSourceType",void 0),g()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=z})},67836:function(We,se,e){"use strict";e.d(se,{P:function(){return H.P},y:function(){return r}});var H=e(34096),u=e(12444),w=e.n(u),i=e(72004),x=e.n(i),g=e(9783),B=e.n(g),r=function(){function z(m,A){w()(this,z),B()(this,"collectionTemplateInstances",{}),this.dataSourceManager=A,this.addCollectionTemplates(m)}return x()(z,[{key:"addCollectionTemplates",value:function(){var A=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=f.reduce(function(n,C){var N=new C(A);return n[N.name]=N,n},{});return Object.assign(this.collectionTemplateInstances,I),this.dataSourceManager.getDataSources().forEach(function(n){var C=n.collectionManager.getCollections(function(N){return I[N.template]});n.collectionManager.reAddCollections(C)}),I}},{key:"getCollectionTemplate",value:function(A){return this.collectionTemplateInstances[A]}},{key:"getCollectionTemplates",value:function(A){return Object.values(this.collectionTemplateInstances).filter(function(f){if(!A||!f.supportDataSourceType&&!f.notSupportDataSourceType)return!0;if(f.supportDataSourceType){var I;return(I=f.supportDataSourceType)===null||I===void 0?void 0:I.includes(A)}if(f.notSupportDataSourceType){var n;return!((n=f.notSupportDataSourceType)!==null&&n!==void 0&&n.includes(A))}}).sort(function(f,I){return(f.order||0)-(I.order||0)})}}]),z}()},19271:function(We,se,e){"use strict";e.d(se,{Xo:function(){return A},lb:function(){return z},ym:function(){return m}});var H=e(67294),u=e(67668),w=e(36032),i=e(35746),x=e(58837),g=e(85893),B=(0,H.createContext)(null);B.displayName="ParentCollectionContext";var r=function(I){var n=(0,x.Kx)();return(0,g.jsx)(B.Provider,{value:n,children:I.children})},z=function(){return(0,H.useContext)(B)},m=function(I){var n=I.name,C=I.children,N=(0,i.d9)(),o=N.getCollectionName(n);return o?(0,g.jsx)(x.YQ,{name:String(n).split(".")[0],children:(0,g.jsx)(r,{children:(0,g.jsx)(u.YT,{name:n,children:(0,g.jsx)(x.YQ,{name:o,children:C})})})}):(0,g.jsx)(w.z,{type:"Collection",name:n})},A=function(){var I=(0,u.Hy)();return I!=null&&I.target?"".concat(I.collectionName,".").concat(I.name):null}},5282:function(We,se,e){"use strict";e.d(se,{F:function(){return A}});var H=e(61227),u=e.n(H),w=e(12444),i=e.n(w),x=e(72004),g=e.n(x),B=e(9783),r=e.n(B),z=e(96486),m=e.n(z),A=function(){function f(I,n){i()(this,f),r()(this,"fieldsMap",void 0),r()(this,"primaryKey",void 0),this.options=I,this.collectionManager=n}return g()(f,[{key:"fields",get:function(){return this.options.fields||[]}},{key:"app",get:function(){return this.collectionManager.app}},{key:"dataSource",get:function(){return this.options.dataSource}},{key:"sourceKey",get:function(){return this.options.sourceKey}},{key:"name",get:function(){return this.options.name}},{key:"key",get:function(){return this.options.key}},{key:"title",get:function(){return this.options.title}},{key:"inherit",get:function(){return this.options.inherit}},{key:"hidden",get:function(){return this.options.hidden}},{key:"description",get:function(){return this.options.description}},{key:"duplicator",get:function(){return this.options.duplicator}},{key:"category",get:function(){return this.options.category}},{key:"targetKey",get:function(){return this.options.targetKey}},{key:"model",get:function(){return this.options.model}},{key:"createdBy",get:function(){return this.options.createdBy}},{key:"updatedBy",get:function(){return this.options.updatedBy}},{key:"logging",get:function(){return this.options.logging}},{key:"from",get:function(){return this.options.from}},{key:"rawTitle",get:function(){return this.options.rawTitle}},{key:"getPrimaryKey",value:function(){if(this.primaryKey)return this.primaryKey;if(this.options.targetKey)return this.options.targetKey;var n=this.getFields({primaryKey:!0})[0];return this.primaryKey=n==null?void 0:n.name,this.primaryKey}},{key:"getFilterTargetKey",value:function(){return this.filterTargetKey||this.getPrimaryKey()||"id"}},{key:"inherits",get:function(){return this.options.inherits||[]}},{key:"titleField",get:function(){return this.hasField(this.options.titleField)?this.options.titleField:this.getPrimaryKey()}},{key:"sources",get:function(){return this.options.sources||[]}},{key:"template",get:function(){return this.options.template}},{key:"tableName",get:function(){return this.options.tableName}},{key:"viewName",get:function(){return this.options.viewName}},{key:"writableView",get:function(){return this.options.writableView}},{key:"filterTargetKey",get:function(){return this.options.filterTargetKey}},{key:"sortable",get:function(){return this.options.sortable}},{key:"autoGenId",get:function(){return this.options.autoGenId}},{key:"magicAttribute",get:function(){return this.options.magicAttribute}},{key:"tree",get:function(){return this.options.tree}},{key:"isThrough",get:function(){return this.options.isThrough}},{key:"autoCreate",get:function(){return this.options.autoCreate}},{key:"resource",get:function(){return this.options.resource}},{key:"setOption",value:function(n,C){return this.options[n]=C,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,z.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,C){return n[C.name]=C,n},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(n){var C=this.getFieldsMap(),N=String(n).split("."),o=u()(N),a=o[0],D=o.slice(1),E=C[a];if(E){var V=E==null?void 0:E.target;if(V){var J=this.collectionManager.getCollection(V);if(J)return J.getField(D.join("."))}}}},{key:"getField",value:function(n){if(n){var C=this.getFieldsMap();if(String(n).split(".").length>1){var N=this.getFieldByAssociationName(n);return N||(typeof n=="string"&&n.startsWith("".concat(this.name,"."))?(n=n.replace("".concat(this.name,"."),""),this.getField(n)):void 0)}return C[n]}}},{key:"hasField",value:function(n){return!!this.getField(n)}},{key:"isTitleField",value:function(n){var C;return(C=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(n.interface))===null||C===void 0?void 0:C.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),f}()},35746:function(We,se,e){"use strict";e.d(se,{IX:function(){return B},bX:function(){return A},d9:function(){return m},xw:function(){return z}});var H=e(5574),u=e.n(H),w=e(67294),i=e(44990),x=e(58861),g=e(85893),B=(0,w.createContext)(null);B.displayName="CollectionManagerContext";var r=function(I){var n=I.instance,C=I.children,N=(0,i.wl)(),o=(0,x.P5)(),a=(0,w.useMemo)(function(){return n||(N==null?void 0:N.collectionManager)},[n,N]),D=w.useState(Math.random()),E=u()(D,2),V=E[0],J=E[1];(0,w.useEffect)(function(){a.dataSource.addReloadCallback(function(){J(Math.random())})},[a]);var $=(0,w.useMemo)(function(){var h=a;return o!=null&&o.length?h.clone(o):h},[a,o,V]);return(0,g.jsx)(B.Provider,{value:$,children:C})},z=function(I){var n=I.instance,C=I.dataSource,N=I.children;return(0,g.jsx)(i.LX,{dataSource:C,children:(0,g.jsx)(r,{instance:n,children:N})})};function m(){var f=(0,w.useContext)(B);return f}var A=function(I){var n=m(),C=(0,w.useMemo)(function(){return n.getCollections(I)},[n,I]);return C}},58837:function(We,se,e){"use strict";e.d(se,{Kx:function(){return A},Pd:function(){return m},WH:function(){return r},YQ:function(){return z},ge:function(){return f}});var H=e(97857),u=e.n(H),w=e(67294),i=e(67668),x=e(36032),g=e(35746),B=e(85893),r=(0,w.createContext)(null);r.displayName="CollectionContext";var z=function(n){var C=n.name,N=n.children,o=n.allowNull,a=(0,g.d9)(),D=(0,w.useMemo)(function(){return a==null?void 0:a.getCollection(C)},[a,C]);return!D&&o?(0,B.jsx)(B.Fragment,{children:n.children}):!D&&!o?(0,B.jsx)(x.z,{type:"Collection",name:C}):(0,B.jsx)(r.Provider,{value:D,children:N})},m=function(n){return(0,B.jsx)(i.v_.Provider,{value:null,children:(0,B.jsx)(z,u()({},n))})};function A(){var I=(0,w.useContext)(r);return I}var f=function(n){var C=A(),N=(0,w.useMemo)(function(){return C.getFields(n)},[C,n]);return N}},58861:function(We,se,e){"use strict";e.d(se,{P5:function(){return z},Xc:function(){return B},j5:function(){return r}});var H=e(19632),u=e.n(H),w=e(67294),i=e(44990),x=e(35746),g=e(85893),B=(0,w.createContext)(null);B.displayName="ExtendCollectionsContext";var r=function(A){var f=A.children,I=A.collections,n=z(),C=(0,w.useMemo)(function(){return n?[].concat(u()(n),u()(I)):I},[n,I]),N=(0,i.FC)();return(0,g.jsx)(B.Provider,{value:C,children:(0,g.jsx)(x.xw,{dataSource:N,children:f})})};function z(){var m=(0,w.useContext)(B);return m}},1836:function(We,se,e){"use strict";e.d(se,{ym:function(){return w.ym},FE:function(){return H.F},WH:function(){return u.WH},w4:function(){return h},IX:function(){return M.IX},xw:function(){return M.xw},YQ:function(){return u.YQ},Xc:function(){return p.Xc},j5:function(){return p.j5},Pd:function(){return u.Pd},Xo:function(){return w.Xo},Kx:function(){return u.Kx},ge:function(){return u.ge},d9:function(){return M.d9},bX:function(){return M.bX},P5:function(){return p.P5},lb:function(){return w.lb}});var H=e(5282),u=e(58837),w=e(19271),i=e(61227),x=e.n(i),g=e(52677),B=e.n(g),r=e(97857),z=e.n(r),m=e(12444),A=e.n(m),f=e(72004),I=e.n(f),n=e(9783),C=e.n(n),N=e(80129),o=e.n(N),a=e(13769),D=e.n(a),E=["rawTitle","title","fields"],V=["uiSchema"],J=function(v,U){var j=v.rawTitle,c=v.title,d=v.fields,l=d===void 0?[]:d,S=D()(v,E);return z()(z()({},S),{},{title:j?c:U.i18n.t(c,{ns:"lm-collections"}),rawTitle:j||c,fields:l==null?void 0:l.map(function(G){var y=G.uiSchema,K=D()(G,V);if(y!=null&&y.title){var t=y.title;y.title=y.rawTitle?t:U.i18n.t(t,{ns:"lm-collections"}),y.rawTitle=y.rawTitle||t}return Array.isArray(y==null?void 0:y.enum)&&(y.enum=y.enum.map(function(F){return z()(z()({},F),{},{value:(F==null?void 0:F.value)===void 0?F:F.value,label:F.rawLabel?F.label:U.i18n.t(F.label,{ns:"lm-collections"}),rawLabel:F.rawLabel||F.label})})),z()({uiSchema:y},K)})})};function $(P,v,U,j){var c=new P(U,j);return v.forEach(function(d){var l=new d(U,j);Object.getOwnPropertyNames(l).forEach(function(S){var G=Object.getOwnPropertyDescriptor(l,S);G?Object.defineProperty(c,S,G):c[S]=l[S]}),Object.getOwnPropertyNames(d.prototype).forEach(function(S){S!=="constructor"&&(c.__proto__[S]=d.prototype[S])})}),c}var h=function(){function P(v,U){A()(this,P),C()(this,"collectionInstancesMap",{}),C()(this,"collectionInstancesArr",[]),this.dataSource=U,this.addCollections(v)}return I()(P,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(U){var j=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(U.template),c=(j==null?void 0:j.Collection)||H.F,d=j==null?void 0:j.transform,l=d?d(J(U,this.app),this.app):J(U,this.dataSource.dataSourceManager.app),S=z()(z()({},l),{},{dataSource:this.dataSource.key}),G=$(c,this.dataSourceManager.collectionMixins,S,this);return G}},{key:"getInstancesMap",value:function(){var U=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=j.map(function(d){return U.getCollectionInstance(d)});return c.reduce(function(d,l){return d[l.name]=l,d},{})}},{key:"addCollections",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=this.getInstancesMap(U);this.collectionInstancesMap=z()(z()({},this.collectionInstancesMap),j),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"setCollections",value:function(U){this.collectionInstancesMap=this.getInstancesMap(U),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"reAddCollections",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.collectionInstancesArr,j=U.map(function(c){return c.getOptions()});this.addCollections(j)}},{key:"getCollection",value:function(U){if(U){if(B()(U)==="object")return this.getCollectionInstance(U);if(String(U).split(".").length>1){var j=this.getCollectionField(U);return j?this.getCollection(j.target):void 0}return this.collectionInstancesMap[U]}}},{key:"getCollections",value:function(U){return U?this.collectionInstancesArr.filter(U):this.collectionInstancesArr}},{key:"getCollectionName",value:function(U){var j=this.getCollection(U);return j==null?void 0:j.name}},{key:"getCollectionField",value:function(U){if(U){if(B()(U)==="object")return U;if(String(U).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(U,'" is invalid'));return}var j=String(U).split("."),c=x()(j),d=c[0],l=c.slice(1),S=this.getCollection(d);if(S)return S.getField(l.join("."))}}},{key:"getCollectionFields",value:function(U,j){var c;return((c=this.getCollection(U))===null||c===void 0?void 0:c.getFields(j))||[]}},{key:"getCollectionAllFields",value:function(U,j){var c;return((c=this.getCollection(U))===null||c===void 0?void 0:c.getAllFields(j))||[]}},{key:"getFilterByTK",value:function(U,j){if(!U||!j){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}var c=function(K,t){if(Array.isArray(K)){var F={};return K.forEach(function(O){F[O]=t[O]}),o().stringify(F)}else return t[K]};if(U instanceof H.F){var d=U.getFilterTargetKey();return c(d,j)}if(U.includes(".")){var l=this.getCollectionField(U);if(!l){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(U,'" is invalid'));return}if(l.targetKey)return j[l.targetKey]}var S=this.getCollection(U);if(!S){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(U,'" is invalid'));return}var G=S.getFilterTargetKey();return c(G,j)}},{key:"getSourceKeyByAssociation",value:function(U){if(U){var j=this.getCollectionField(U);if(j){if(j.sourceKey)return j.sourceKey;var c=this.getCollection(U.split(".")[0]);if(c)return c.filterTargetKey||c.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=new P([],this.dataSource);return j.collectionInstancesArr=this.collectionInstancesArr,j.collectionInstancesMap=this.collectionInstancesMap,j.addCollections(U),j}}]),P}(),M=e(35746),p=e(58861)},22558:function(We,se,e){"use strict";e.d(se,{K:function(){return f}});var H=e(9783),u=e.n(H),w=e(97857),i=e.n(w),x=e(80844),g=e(96486),B=e.n(g),r=e(26793),z=e(13511),m=e(67668),A=e(7105),f={name:"fieldComponent",type:"select",useVisible:function(){var n=(0,m.Hy)(),C=(0,z.fp)();if(!n)return!1;var N=C.collectionFieldInterfaceManager.getFieldInterface(n==null?void 0:n.interface);return Array.isArray(N==null?void 0:N.componentOptions)&&N.componentOptions.length>1&&N.componentOptions.filter(function(o){return!o.useVisible||o.useVisible()}).length>1},useComponentProps:function(){var n,C,N,o=(0,r.$)(),a=o.t,D=(0,x.useField)(),E=(0,x.useFieldSchema)(),V=(0,m.Hy)(),J=(0,z.fp)(),$=J.collectionFieldInterfaceManager.getFieldInterface(V==null?void 0:V.interface),h=(0,A.z9d)(),M=h.fieldSchema,p=M||E,P=(0,A.ngQ)(),v=P.dn,U=(0,A.eJW)(),j=($==null||(n=$.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:U(c.label),value:c.value,useProps:c.useProps}}))||[];return{title:a("Field component"),options:j,value:((C=p["x-component-props"])===null||C===void 0?void 0:C.component)||((N=j[0])===null||N===void 0?void 0:N.value),onChange:function(d){var l,S,G=j.find(function(K){return K.value===d}),y=i()({component:d},(G==null||(l=G.useProps)===null||l===void 0?void 0:l.call(G))||{});B().set(p,"x-component-props",y),D.componentProps=y,v.emit("patch",{schema:(S={},u()(S,"x-uid",p["x-uid"]),u()(S,"x-component-props",y),S)})}}}}},36032:function(We,se,e){"use strict";e.d(se,{p:function(){return D},z:function(){return o}});var H=e(97857),u=e.n(H),w=e(48997),i=e(3321),x=e(59720),g=e(15867),B=e(67294),r=e(26793),z=e(7105),m=e(44990),A=e(49453),f=e(57638),I=e(1836),n=e(18243),C=e(85893),N=w.Z.Text,o=function(V){var J=V.type,$=V.name,h=V.message,M=(0,z.ngQ)(),p=M.designable,P=M.dn,v=i.Z.useApp(),U=v.modal,j=(0,r.$)(),c=j.t,d=(0,m.wl)(),l=(0,z.eJW)(),S=(0,I.Kx)(),G=(0,A.fp)(),y=(0,B.useMemo)(function(){if(J==="Data Source")return $;var F=(G==null?void 0:G.getDataSources().length)>=1&&d&&d.key!==f.ym?"".concat(l(d.displayName||d.key)," > "):"";if(J==="Collection")return"".concat(F).concat($);var O=S?"".concat(l(S.title)||S.name||S.tableName," > "):"";return"".concat(F).concat(O).concat($)},[]),K=(0,B.useMemo)(function(){return J==="Field"?"Field":"Block"},[J]),t=(0,B.useMemo)(function(){return $?h?"".concat(c(J),' "').concat(y,'" ').concat(h):c('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:c(J).toLocaleLowerCase(),name:y,blockType:c(K).toLocaleLowerCase()}).replaceAll(">",">"):"".concat(c(J)," ","name is required")},[h,y,J,c,K]);return p?J==="Field"?(0,C.jsx)(z.BQs,{ellipsis:!0,children:(0,C.jsx)(N,{type:"secondary",children:t})}):(0,C.jsx)(n.P,{children:(0,C.jsx)(x.ZP,{status:"404",subTitle:t,extra:(0,C.jsx)(g.ZP,{onClick:function(){return U.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 V=(0,r.$)(),J=V.t,$=(0,m.wl)(),h=(0,z.eJW)(),M=(0,I.Kx)(),p=(0,A.fp)(),P=(0,B.useMemo)(function(){var U=(p==null?void 0:p.getDataSources().length)>=1&&$&&$.key!==f.ym?"".concat(h($.displayName||$.key)," > "):"";if(M)return"".concat(U).concat(M.name);var j=M?"".concat(h(M.title)||M.name||M.tableName," > "):"";return"".concat(U).concat(j).concat(M.name)},[]),v=(0,B.useMemo)(function(){return J(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:P}).replaceAll(">",">")},[P,J]);return(0,C.jsx)(n.P,{children:(0,C.jsx)(x.ZP,{status:"404",subTitle:v})})},D=function(){var V=(0,z.ngQ)(),J=V.designable;return J?(0,C.jsx)(a,{}):null}},88996:function(We,se,e){"use strict";e.d(se,{i:function(){return m}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(67294),g=e(13511),B=e(35746),r=e(85893),z=["children","dataSourceManager"],m=function(f){var I=f.children,n=f.dataSourceManager,C=i()(f,z);return(0,r.jsx)(g.kv,{dataSourceManager:n,children:(0,r.jsx)(B.xw,u()(u()({},C),{},{children:I}))})}},87180:function(We,se,e){"use strict";e.d(se,{KY:function(){return V},Rr:function(){return h},dq:function(){return E},eS:function(){return J},hZ:function(){return o},sI:function(){return D},zh:function(){return $}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(5574),g=e.n(x),B=e(67294),r=e(75667),z=e(67205),m=e(15503),A=e(7105),f=e(1836),I=e(39742),n=e(14310),C=e(85893),N=["collection","association","dataSource","children","hidden"],o=(0,B.createContext)({});o.displayName="DataBlockContext";var a=(0,B.createContext)(null),D=function(p){var P=p.children,v=B.useState(!1),U=g()(v,2),j=U[0],c=U[1],d=(0,B.useMemo)(function(){return{rerenderDataBlock:function(){c(!0),setTimeout(function(){c(!1)})}}},[]);return j?null:(0,C.jsx)(a.Provider,{value:d,children:P})},E=function(p){var P=p.collection,v=p.association,U=p.allowNull,j=U===void 0?!1:U,c=(0,B.useMemo)(function(){return v?{Component:f.ym,name:v}:{Component:f.Pd,name:P}},[P,v]);return(0,C.jsx)(c.Component,{name:c.name,allowNull:j,children:p.children})},V=(0,m.t)(B.memo(function(M){var p=M,P=p.collection,v=p.association,U=p.dataSource,j=p.children,c=p.hidden,d=i()(p,N),l=(0,A.ngQ)(),S=l.dn;return c?null:(0,C.jsx)(o.Provider,{value:{dn:S,props:u()(u()({},d),{},{collection:P,association:v,dataSource:U})},children:(0,C.jsx)(f.xw,{dataSource:U,children:(0,C.jsx)(E,{collection:P,association:v,children:(0,C.jsx)(r.Hh,{children:(0,C.jsx)(n.eh,{children:(0,C.jsx)(I.N4,{children:(0,C.jsx)(z.vY,{params:M.params,children:(0,C.jsx)(D,{children:j})})})})})})})})}),{displayName:"DataBlockProvider"}),J=function(){var p=(0,B.useContext)(o);if(!p)throw new Error("useDataBlock() must be used within a DataBlockProvider");return p},$=function(){var p=J();return p.props},h=function(){var p=(0,B.useContext)(a);if(!p)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return p}},39742:function(We,se,e){"use strict";e.d(se,{H0:function(){return p},N4:function(){return U},Pt:function(){return c},hS:function(){return j},q4:function(){return $},uz:function(){return v},xQ:function(){return d}});var H=e(15009),u=e.n(H),w=e(99289),i=e.n(w),x=e(97857),g=e.n(x),B=e(5574),r=e.n(B),z=e(67294),m=e(96486),A=e.n(m),f=e(12174),I=e(4277),n=e(19530),C=e(54724),N=e(21044),o=e(88496),a=e(8341),D=e(87180),E=e(14310),V=e(85893),J=(0,z.createContext)(null);J.displayName="BlockRequestRefContext";var $=(0,z.createContext)(!1);$.displayName="BlockRequestLoadingContext";var h=(0,z.createContext)(null);h.displayName="BlockRequestDataContext";function M(l){var S=(0,I.tU)(),G=(0,E.wb)(),y=l.action,K=l.params,t=K===void 0?{}:K,F=l.record,O=l.requestService,L=l.requestOptions,b=l.sourceId,T=l.association,q=l.parentRecord,ne=(0,f.LY)(),oe=(0,D.zh)(),Y=(0,a.FE)(oe.dataSource),W=(0,n.U)(T),Q=(0,z.useMemo)(function(){return[JSON.stringify(t),JSON.stringify(F)]},[t,F]),fe=r()(Q,2),X=fe[0],ue=fe[1],be=function(ie){var ee;if(F)return Promise.resolve({data:F});if(!y)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(y==="get"&&A().isNil(t.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var ce=t.filterByTk===void 0?A().omit(t,"filterByTk"):t;return(ee=G[y])===null||ee===void 0?void 0:ee.call(G,g()(g()({},ce),ie)).then(function(ve){return ve.data})},ge=function(){var Se=i()(u()().mark(function ie(){var ee,ce,ve,Z,le=arguments;return u()().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,Promise.all([(O||be).apply(void 0,le),p({sourceId:b,association:T,parentRecord:q,api:ne,headers:Y,sourceKey:W})]);case 2:return ee=Me.sent,ce=r()(ee,2),ve=ce[0],Z=ce[1],ve&&(ve.parentRecord=Z==null?void 0:Z.data),Me.abrupt("return",ve);case 8:case"end":return Me.stop()}},ie)}));return function(){return Se.apply(this,arguments)}}(),me=(0,f.QT)(ge,g()(g()({},L),{},{manual:S==="manual",ready:!!y,refreshDeps:[y,X,ue,G,T,q,b]}));return me}function p(l){return P.apply(this,arguments)}function P(){return P=i()(u()().mark(function l(S){var G,y,K,t,F,O,L,b,T;return u()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(G=S.sourceId,y=S.association,K=S.parentRecord,t=S.api,F=S.headers,O=S.sourceKey,!K){ne.next=3;break}return ne.abrupt("return",Promise.resolve({data:K}));case 3:if(!(!y||!O||!G)){ne.next=5;break}return ne.abrupt("return",Promise.resolve({data:void 0}));case 5:return L=y.split("."),b="".concat(L[0],":get?filter[").concat(O,"]=").concat(G),ne.next=9,t.request({url:b,headers:F});case 9:return T=ne.sent,ne.abrupt("return",T.data);case 11:case"end":return ne.stop()}},l)})),P.apply(this,arguments)}var v=function(S){var G,y,K,t,F=(0,z.useRef)(S.recordRequest),O=(0,z.useRef)((G=S.recordRequest)===null||G===void 0?void 0:G.data),L=(0,C.Du)(),b=L.active,T=(0,z.useRef)(b),q=(0,z.useDeferredValue)(b),ne=(0,D.zh)();if(q&&!T.current&&(A().isNil(ne.dataLoadingMode)||ne.dataLoadingMode==="auto")){var oe;(oe=S.recordRequest)===null||oe===void 0||oe.refresh()}if(q&&T.current&&!((y=S.recordRequest)!==null&&y!==void 0&&y.loading)&&!A().isEqual(O.current,(K=S.recordRequest)===null||K===void 0?void 0:K.data)){var Y;O.current=(Y=S.recordRequest)===null||Y===void 0?void 0:Y.data}return q!==T.current&&(T.current=q),F.current=S.recordRequest,(0,V.jsx)(J.Provider,{value:F,children:(0,V.jsx)($.Provider,{value:(t=S.recordRequest)===null||t===void 0?void 0:t.loading,children:(0,V.jsx)(h.Provider,{value:O.current,children:S.children})})})},U=z.memo(function(l){var S,G,y=l.children,K=(0,D.zh)(),t=K.action,F=K.filterByTk,O=K.sourceId,L=K.params,b=L===void 0?N.Nu:L,T=K.association,q=K.collection,ne=K.record,oe=K.parentRecord,Y=K.requestOptions,W=K.requestService,Q=(0,z.useMemo)(function(){return g()(g()({},b),{},{filterByTk:F||b.filterByTk})},[F,b]),fe=M({action:t,sourceId:O,record:ne,association:T,collection:q,requestOptions:Y,requestService:W,params:Q,parentRecord:oe}),X=(S=fe.data)===null||S===void 0?void 0:S.parentRecord,ue=(0,z.useMemo)(function(){return X&&new o.DI({isNew:!1,data:X instanceof o.DI?X.data:X})},[X]);return(0,V.jsx)(v,{recordRequest:fe,children:t!=="list"?(0,V.jsx)(o.E0,{isNew:t==null,record:((G=fe.data)===null||G===void 0?void 0:G.data)||ne,parentRecord:ue||oe,children:y}):(0,V.jsx)(o.E0,{isNew:!1,record:null,parentRecord:ue||oe,children:y})})});U.displayName="DataBlockRequestProvider";var j=function(){var S=(0,z.useContext)(J),G=(0,z.useContext)($),y=(0,z.useContext)(h);return(0,z.useMemo)(function(){return S?g()(g()({},S.current),{},{loading:G,data:y}):null},[S,y,G])},c=function(){var S=(0,z.useContext)(J);return(0,z.useMemo)(function(){return{getDataBlockRequest:function(){return S?S.current:null}}},[S])},d=function(){return(0,z.useContext)(h)}},14310:function(We,se,e){"use strict";e.d(se,{T1:function(){return f},eh:function(){return I},wb:function(){return n}});var H=e(96695),u=e.n(H),w=e(96486),i=e.n(w),x=e(67294),g=e(12174),B=e(1836),r=e(88496),z=e(8341),m=e(87180),A=e(85893),f=(0,x.createContext)(null);f.displayName="DataBlockResourceContext";var I=function(N){var o=N.children,a=(0,m.zh)(),D=(0,B.d9)(),E=a.association,V=a.collection,J=a.dataSource,$=a.sourceId,h=a.parentRecord,M=(0,g.LY)(),p=(0,z.FE)(J),P=(0,x.useMemo)(function(){return typeof V=="string"?V:V==null?void 0:V.name},[V]),v=(0,x.useMemo)(function(){if($)return $;if(E&&h){var j=D.getSourceKeyByAssociation(E),c=h instanceof r.DI?h.data:h;if((0,w.isArray)(j)){var d={},l=u()(j),S;try{for(l.s();!(S=l.n()).done;){var G=S.value;d[G]=c==null?void 0:c[G]}}catch(y){l.e(y)}finally{l.f()}return encodeURIComponent(JSON.stringify(d))}else return c[j]}},[E,$,h]),U=(0,x.useMemo)(function(){return E?M.resource(E,v,p,!v):M.resource(P,void 0,p)},[M,E,V,v,p]);return(0,A.jsx)(f.Provider,{value:U,children:o})};function n(){var C=(0,x.useContext)(f);if(!C)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return C}},35519:function(We,se,e){"use strict";e.d(se,{n:function(){return o},o:function(){return N}});var H=e(31996),u=e.n(H),w=e(26037),i=e.n(w),x=e(15009),g=e.n(x),B=e(99289),r=e.n(B),z=e(12444),m=e.n(z),A=e(72004),f=e.n(A),I=e(9783),n=e.n(I),C=e(1836),N=function(){function a(D,E){m()(this,a),n()(this,"collectionManager",void 0),n()(this,"reloadCallbacks",[]),this.options=D,this.dataSourceManager=E,this.collectionManager=new C.w4(D.collections,this)}return f()(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(V){return V!==E})}},{key:"reload",value:function(){var D=r()(g()().mark(function V(){var J;return g()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,this.getDataSource();case 2:return J=h.sent,this.setOptions(J),this.collectionManager.setCollections(J.collections||[]),this.reloadCallbacks.forEach(function(M){return M(J.collections)}),h.abrupt("return",this.options);case 7:case"end":return h.stop()}},V,this)}));function E(){return D.apply(this,arguments)}return E}()}]),a}(),o=function(a){u()(E,a);var D=i()(E);function E(){return m()(this,E),D.apply(this,arguments)}return f()(E,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),E}(N)},57638:function(We,se,e){"use strict";e.d(se,{AK:function(){return h},UC:function(){return $},ym:function(){return J}});var H=e(97857),u=e.n(H),w=e(15009),i=e.n(w),x=e(5574),g=e.n(x),B=e(99289),r=e.n(B),z=e(19632),m=e.n(z),A=e(12444),f=e.n(A),I=e(72004),n=e.n(I),C=e(9783),N=e.n(C),o=e(35519),a=e(67836),D=e(65050),E=e(96486),V=e.n(E),J="main",$='{{t("Main")}}',h=function(){function M(){var p,P=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=arguments.length>1?arguments[1]:void 0;f()(this,M),N()(this,"dataSourceInstancesMap",{}),N()(this,"multiDataSources",[]),N()(this,"collectionMixins",[]),N()(this,"collectionTemplateManager",void 0),N()(this,"collectionFieldInterfaceManager",void 0),this.options=v,this.app=U,this.collectionTemplateManager=new a.y(v.collectionTemplates,this),this.collectionFieldInterfaceManager=new D.Z(v.fieldInterfaces,v.fieldInterfaceGroups,this),(p=this.collectionMixins).push.apply(p,m()(v.collectionMixins||[])),this.addDataSource(o.n,{key:J,displayName:$,collections:v.collections||[]}),(v.dataSources||[]).forEach(function(j){P.addDataSource(o.n,j)})}return n()(M,[{key:"addCollectionMixins",value:function(){var P=this,v,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=U.filter(function(c){return!P.collectionMixins.includes(c)});j.length&&((v=this.collectionMixins).push.apply(v,m()(j)),this.getDataSources().forEach(function(c){return c.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(P){var v=Object.values(this.dataSourceInstancesMap);return P?V().filter(v,P):v}},{key:"getDataSource",value:function(P){return P?this.dataSourceInstancesMap[P]:this.dataSourceInstancesMap[J]}},{key:"removeDataSources",value:function(P){var v=this;P.forEach(function(U){delete v.dataSourceInstancesMap[U]})}},{key:"addDataSource",value:function(P,v){var U=new P(v,this);return this.dataSourceInstancesMap[U.key]=U,U}},{key:"addDataSources",value:function(){var p=r()(i()().mark(function v(U,j){return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!this.multiDataSources.some(function(l){var S=g()(l,2),G=S[0],y=S[1];return G===U&&y===j})){d.next=2;break}return d.abrupt("return");case 2:this.multiDataSources.push([U,j]);case 3:case"end":return d.stop()}},v,this)}));function P(v,U){return p.apply(this,arguments)}return P}()},{key:"getAllCollections",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=P.filterCollection,U=P.filterDataSource;return this.getDataSources(U).reduce(function(j,c){return j.push(u()(u()({},c.getOptions()),{},{collections:c.collectionManager.getCollections(v)})),j},[])}},{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 v(){var U=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 G,y,K,t;return i()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return G=g()(S,2),y=G[0],K=G[1],O.next=3,y();case 3:t=O.sent,t.map(function(L){return U.addDataSource(K,L)});case 5:case"end":return O.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()}},v,this)}));function P(){return p.apply(this,arguments)}return P}()}]),M}()},13511:function(We,se,e){"use strict";e.d(se,{Uv:function(){return g},fp:function(){return x},kv:function(){return i},up:function(){return w}});var H=e(67294),u=e(85893),w=(0,H.createContext)(null);w.displayName="DataSourceManagerContext";var i=function(r){var z=r.children,m=r.dataSourceManager;return(0,u.jsx)(w.Provider,{value:m,children:z})};function x(){var B=(0,H.useContext)(w);return B}function g(){var B=x(),r=(0,H.useCallback)(function(z,m){var A;return B==null||(A=B.getDataSource(m))===null||A===void 0||(A=A.collectionManager)===null||A===void 0||(A=A.getCollection(z))===null||A===void 0?void 0:A.getAllCollectionsInheritChain()},[B]);return{getAllCollectionsInheritChain:r}}},44990:function(We,se,e){"use strict";e.d(se,{FC:function(){return C},LX:function(){return I},NT:function(){return f},wl:function(){return n}});var H=e(5574),u=e.n(H),w=e(67294),i=e(13511),x=e(36032),g=e(7105),B=e(59720),r=e(15867),z=e(50888),m=e(26793),A=e(85893),f=(0,w.createContext)(null);f.displayName="DataSourceContext";var I=function(o){var a=o.children,D=o.dataSource,E=(0,i.fp)(),V=(0,m.$)(),J=V.t,$=(0,g.Dmu)(),h=$.refresh,M=w.useState(0),p=u()(M,2),P=p[0],v=p[1],U=E==null?void 0:E.getDataSource(D);return U?U.status==="loading-failed"?(0,A.jsx)(x.z,{type:"Data Source",name:U.displayName||D,message:U.errorMessage||"loading failed"}):U.status==="loading"||U.status==="reloading"?(0,A.jsx)(g.Ssf,{children:(0,A.jsx)(B.ZP,{icon:(0,A.jsx)(z.Z,{}),title:"".concat(U.displayName||D," ").concat(J("data source")," ").concat(J("loading"),"..."),extra:(0,A.jsx)(r.ZP,{type:"primary",onClick:function(){return U.reload().then(function(){h(),v(Math.random())})},children:J("Refresh")})})}):(0,A.jsx)(f.Provider,{value:U,children:a}):(0,A.jsx)(x.z,{type:"Data Source",name:D})};function n(){var N=(0,w.useContext)(f);return N}function C(){var N=(0,w.useContext)(f);return N==null?void 0:N.key}},49453:function(We,se,e){"use strict";e.d(se,{AK:function(){return u.AK},FC:function(){return w.FC},LX:function(){return w.LX},NT:function(){return w.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 w.wl},ym:function(){return u.ym}});var H=e(35519),u=e(57638),w=e(44990),i=e(13511)},94804:function(We,se,e){"use strict";e.d(se,{dq:function(){return m.dq},ym:function(){return H.ym},uz:function(){return z.uz},q4:function(){return z.q4},N4:function(){return z.N4},m9:function(){return w.m9},FE:function(){return H.FE},WH:function(){return H.WH},zW:function(){return g.z},sb:function(){return u.s},v_:function(){return w.v_},SY:function(){return i.S},Z:function(){return i.Z},YT:function(){return w.YT},Cd:function(){return t},rJ:function(){return G},lC:function(){return O},w4:function(){return H.w4},IX:function(){return H.IX},xw:function(){return H.xw},pD:function(){return g.p},YQ:function(){return H.YQ},DI:function(){return f.DI},vI:function(){return f.vI},E0:function(){return f.E0},Pl:function(){return x.P},yM:function(){return x.y},Ip:function(){return A.ym},UC:function(){return A.UC},hZ:function(){return m.hZ},KY:function(){return m.KY},T1:function(){return r.T1},eh:function(){return r.eh},o2:function(){return A.o2},i:function(){return B.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 m.sI},Pd:function(){return H.Pd},K0:function(){return L.K},iv:function(){return K},GX:function(){return I.GX},Yj:function(){return I.Yj},H0:function(){return z.H0},Uv:function(){return A.Uv},Xo:function(){return H.Xo},Kx:function(){return H.Kx},Hy:function(){return w.Hy},ge:function(){return H.ge},d9:function(){return H.d9},RA:function(){return f.RA},Kv:function(){return f.Kv},oV:function(){return f.oV},nE:function(){return f.nE},bX:function(){return H.bX},eS:function(){return m.eS},zh:function(){return m.zh},hS:function(){return z.hS},xQ:function(){return z.xQ},Pt:function(){return z.Pt},wb:function(){return r.wb},wl:function(){return A.wl},on:function(){return I.FE},FC:function(){return A.FC},fp:function(){return A.fp},P5:function(){return H.P5},lb:function(){return H.lb},Rr:function(){return m.Rr}});var H=e(1836),u=e(52020),w=e(67668),i=e(65050),x=e(67836),g=e(36032),B=e(88996),r=e(14310),z=e(39742),m=e(87180),A=e(49453),f=e(88496),I=e(8341),n=e(97857),C=e.n(n),N=e(67294);function o(b,T,q){var ne,oe=b.block,Y=b.isReadPretty,W=Y===void 0?function(ve){var Z=ve.form;return Z.readPretty}:Y,Q=b.filter,fe=Q===void 0?function(){return!0}:Q,X=b.getInitializerItem,ue=X===void 0?function(){return{}}:X,be=b.getSchema,ge=be===void 0?function(){return{}}:be,me=q.collectionManager,Se=q.collection,ie=q.dataSourceManager,ee=q.actionContext,ce=(ne=ee.fieldSchema)===null||ne===void 0?void 0:ne["x-action"];return Se?T.map(function(ve){var Z=me.getCollection(ve.target),le=ie.collectionFieldInterfaceManager.getFieldInterface(ve.interface);return{collectionField:ve,context:C()(C()({},q),{},{targetCollection:Z,collectionFieldInterface:le})}}).filter(function(ve){var Z=ve.collectionField;return Z.interface}).filter(function(ve){var Z=ve.collectionField,le=ve.context;return fe(Z,le)}).map(function(ve){var Z,le,xe=ve.collectionField,Me=ve.context,Ae={type:"string",title:(xe==null||(Z=xe.uiSchema)===null||Z===void 0?void 0:Z.title)||xe.name,name:xe.name,"x-component":"CollectionField","x-collection-field":"".concat(Se.name,".").concat(xe.name),"x-read-pretty":xe==null||(le=xe.uiSchema)===null||le===void 0?void 0:le["x-read-pretty"]},Re=ge(xe,C()(C()({},Me),{},{defaultSchema:Ae})),Ee=C()(C()({},Ae),Re||{});return{collectionField:xe,schema:Ee,context:C()(C()({},Me),{},{schema:Ee})}}).map(function(ve){var Z,le=ve.collectionField,xe=ve.context,Me={type:"item",name:le.name,title:(le==null||(Z=le.uiSchema)===null||Z===void 0?void 0:Z.title)||le.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Re){var Ee,Oe;(Ee=xe.collectionFieldInterface)===null||Ee===void 0||(Oe=Ee.schemaInitialize)===null||Oe===void 0||Oe.call(Ee,Re,{field:le,block:oe,readPretty:W==null?void 0:W(xe),action:ce,targetCollection:xe.targetCollection})},schema:xe.schema};return{collectionField:le,context:xe,defaultInitializerItem:Me}}).map(function(ve){var Z=ve.collectionField,le=ve.defaultInitializerItem,xe=ve.context,Me=ue(Z,C()(C()({},xe),{},{defaultInitializerItem:le}));return C()(C()({},le),Me||{})}):[]}var a=e(80844),D=e(26793),E=e(58837),V=e(44990),J=e(76157),$=e(35746),h=e(13511),M=e(7105);function p(){var b=(0,D.$)(),T=b.t,q=(0,E.Kx)(),ne=(0,h.fp)(),oe=(0,J.XC)(),Y=(0,V.wl)(),W=(0,a.useForm)(),Q=(0,a.useFieldSchema)(),fe=(0,$.d9)(),X=(0,M.eJW)();return{t:T,compile:X,actionContext:oe,fieldSchema:Q,collection:q,dataSource:Y,form:W,collectionManager:fe,dataSourceManager:ne}}var P=e(59582),v=e(85893),U=function(T){var q=p(),ne=q.t,oe=q.collection,Y=oe.getFields(),W=o(T,Y,q);return(0,v.jsx)(P.iP,{title:ne("Display fields"),children:W})},j=function(T){var q=p(),ne=q.collection,oe=q.t,Y=q.collectionManager,W=ne.getParentCollectionsName();if(!W.length)return null;var Q=W.map(function(fe){var X=ne.getParentCollectionFields(fe);if(X.length===0)return null;var ue=Y.getCollection(fe);return{parentCollection:ue,parentCollectionFields:X}}).filter(Boolean).map(function(fe){var X=fe,ue=X.parentCollection,be=X.parentCollectionFields,ge=C()(C()({},q),{},{collection:ue});return{type:"itemGroup",divider:!0,title:oe("Parent collection fields")+"("+q.compile(ue.title)+")",children:o(T,be,ge)}});return(0,v.jsx)(P.E0,{children:Q})},c=e(13769),d=e.n(c),l=["filterAssociationField","filterSelfField","getSchema"],S=function(T){var q=T.filterAssociationField,ne=T.filterSelfField,oe=ne===void 0?function(){return!0}:ne,Y=T.getSchema,W=d()(T,l),Q=T.context,fe=Q.collection,X=Q.t,ue=Q.collectionManager,be=fe.getFields(),ge=["o2o","oho","obo","m2o"],me=be.filter(function(ie){return ge.includes(ie.interface)}).filter(function(ie){return oe(ie,T.context)});if(!me.length)return null;var Se=me.map(function(ie){var ee=ue.getCollection(ie.target);if(!ee)return null;var ce=ee==null?void 0:ee.getAllFields();return ce.length?{associationField:ie,associationCollection:ee,associationCollectionFields:ce}:null}).filter(Boolean).map(function(ie){var ee,ce,ve=ie.associationField,Z=ie.associationCollection,le=ie.associationCollectionFields,xe=C()(C()({},T.context),{},{collection:Z}),Me=function(Re,Ee){var Oe=Y(Re,Ee);return C()(C()({},Oe||{}),{},{"x-read-pretty":!0,name:"".concat(ve.name,".").concat(Re.name),"x-collection-field":"".concat(fe.name,".").concat(ve.name,".").concat(Re.name)})};return{type:"subMenu",name:(ee=ve.uiSchema)===null||ee===void 0?void 0:ee.title,title:(ce=ve.uiSchema)===null||ce===void 0?void 0:ce.title,children:o(C()(C()({},W),{},{filter:q,getSchema:Me}),le,xe)}});return Se.length?(0,v.jsx)(P.iP,{title:X("Display association fields"),children:Se}):null},G=function(T){var q=T.selfField,ne=T.parentField,oe=T.associationField,Y=T.block,W=p();return W.collection?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(U,C()(C()({block:Y},q),{},{context:C()(C()({},W),{},{collection:W.collection})})),ne&&(0,v.jsx)(j,C()(C()({block:Y},ne),{},{context:C()(C()({},W),{},{collection:W.collection})})),oe&&(0,v.jsx)(S,C()(C()({block:Y},oe),{},{context:C()(C()({},W),{},{collection:W.collection})}))]}):null},y=e(40341),K=function(T,q,ne){var oe=(0,y.nD)(T,"x-component","Kanban");return(0,y.nD)(oe,q,ne)},t=function(T){var q=(T==null?void 0:T.block)||"Form",ne={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},oe={remove:y.YT};return(0,v.jsx)(G,{block:q,selfField:{filter:function(W){return!W.treeChildren},getSchema:function(W,Q){var fe,X=Q.targetCollection,ue=(X==null?void 0:X.template)==="file",be=X,ge=W==null||(fe=W.uiSchema)===null||fe===void 0||(fe=fe["x-component-props"])===null||fe===void 0?void 0:fe.fieldNames;return C()(C()({},ne),{},{"x-component-props":ue?{fieldNames:{label:"preview",value:"id"}}:be&&ge?{fieldNames:C()(C()({},ge),{},{label:(X==null?void 0:X.titleField)||ge.label})}:{}})},getInitializerItem:function(){return C()(C()({},oe),{},{find:(T==null?void 0:T.block)==="Kanban"?K:void 0})}},parentField:{getSchema:function(){return ne},getInitializerItem:function(){return oe}},associationField:{filterSelfField:function(W){return q!=="Form"?!0:(W==null?void 0:W.interface)==="m2o"},filterAssociationField:function(W){return(W==null?void 0:W.interface)&&!["subTable"].includes(W==null?void 0:W.interface)&&!W.treeChildren},getSchema:function(){return ne},getInitializerItem:function(){return oe}}})},F=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],O=function(T){function q(ne){var oe=ne.fieldSchema,Y=ne.form,W=oe["x-component"]==="AssociationField.SubTable",Q=W?Y.readPretty:!0;return Q}return(0,v.jsx)(G,{block:"Table",selfField:{isReadPretty:q,filter:function(oe){return oe.interface!=="subTable"&&!oe.treeChildren},getSchema:function(oe,Y){var W,Q,fe=Y.targetCollection,X=Y.fieldSchema,ue=Y.form,be=(fe==null?void 0:fe.template)==="file",ge=((W=oe.uiSchema)===null||W===void 0?void 0:W["x-component"])==="Preview",me=X["x-component"]==="AssociationField.SubTable",Se=q({fieldSchema:X,form:ue});return{"x-component-props":be?{fieldNames:{label:"preview",value:"id"}}:ge?{size:"small"}:{},"x-read-pretty":Se||((Q=oe.uiSchema)===null||Q===void 0?void 0:Q["x-read-pretty"]),"x-decorator":me?F.includes(oe.interface)||be?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:y.p$,remove:y.pP}}},parentField:{isReadPretty:q,getSchema:function(oe,Y){var W,Q=Y.targetCollection,fe=Y.fieldSchema,X=Y.form,ue=(Q==null?void 0:Q.template)==="file",be=fe["x-component"]==="AssociationField.SubTable",ge=q({fieldSchema:fe,form:X});return{"x-component-props":ue?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":ge||((W=oe.uiSchema)===null||W===void 0?void 0:W["x-read-pretty"]),"x-decorator":be?F.includes(oe.interface)||ue?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:y.YT}}},associationField:{filterAssociationField:function(oe){return!["subTable"].includes(oe.interface)&&!oe.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:y.p$,remove:y.pP}}}})},L=e(22558)},8341:function(We,se,e){"use strict";e.d(se,{FE:function(){return B},GX:function(){return r},Yj:function(){return g}});var H=e(9783),u=e.n(H),w=e(67294),i=e(57638),x="x-data-source",g=function(m,A){var f;return(f=m.collectionFieldInterfaceManager.getFieldInterface(A.interface))===null||f===void 0?void 0:f.titleUsable},B=function(m){var A=(0,w.useMemo)(function(){if(m&&m!==i.ym)return u()({},x,m)},[m]);return A},r=function(m){return m&&m!==i.ym?u()({},x,m):{}}},69803:function(We,se,e){"use strict";e.d(se,{AL:function(){return J},C$:function(){return D},PE:function(){return a},jr:function(){return V},uN:function(){return $},yq:function(){return E}});var H=e(15009),u=e.n(H),w=e(99289),i=e.n(w),x=e(12444),g=e.n(x),B=e(72004),r=e.n(B),z=e(31996),m=e.n(z),A=e(26037),f=e.n(A),I=e(67294),n=e(26793),C=e(31601),N=e(15585),o=e(85893),a=(0,I.createContext)({getTitle:function(){return""},setTitle:function(){}});a.displayName="DocumentTitleContext";var D=I.memo(function(h){var M=h.addonBefore,p=h.addonAfter,P=(0,n.$)(),v=P.t,U=(0,n.$)("lm-desktop-routes"),j=U.t,c=(0,n.$)("lm-collections"),d=c.t,l=I.useRef(""),S=(0,I.useCallback)(function(){return l.current},[]),G=(0,I.useCallback)(function(K){document.title=l.current="".concat(M?" - ".concat(v(M)):"").concat(j(K||"")).concat(p?" - ".concat(d(p)):"")},[p,M,v,j,d]),y=(0,I.useMemo)(function(){return{getTitle:S,setTitle:G}},[S,G]);return(0,o.jsx)(a.Provider,{value:y,children:h.children})});D.displayName="DocumentTitleProvider";var E=function(M){var p,P=(0,N.HX)();return(0,o.jsx)(D,{addonAfter:P==null||(p=P.data)===null||p===void 0||(p=p.data)===null||p===void 0?void 0:p.title,children:M.children})},V=function(){return(0,I.useContext)(a)},J=function(M){var p=V(),P=p.setTitle;(0,I.useEffect)(function(){P(M)},[P,M])},$=function(h){m()(p,h);var M=f()(p);function p(){return g()(this,p),M.apply(this,arguments)}return r()(p,[{key:"load",value:function(){var P=i()(u()().mark(function U(){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()}},U,this)}));function v(){return P.apply(this,arguments)}return v}()}]),p}(C.S)},67205:function(We,se,e){"use strict";e.d(se,{XA:function(){return o},kO:function(){return D},vY:function(){return a}});var H=e(97857),u=e.n(H),w=e(19632),i=e.n(w),x=e(80844),g=e(96486),B=e.n(g),r=e(58837),z=e(39742),m=e(4277),A=e(7105),f=e(87714),I=e(67294),n=e(85893),C=function(E){return E.AND="$and",E.OR="$or",E}(C||{}),N=(0,I.createContext)(null);N.displayName="FilterContext";var o=I.memo(function(E){var V=E.children,J=I.useRef([]),$=(0,I.useCallback)(function(p){typeof p=="function"?J.current=p(J.current):J.current=p},[]),h=(0,I.useCallback)(function(){return J.current},[]),M=(0,I.useMemo)(function(){return{getDataBlocks:h,setDataBlocks:$}},[h,$]);return(0,n.jsx)(N.Provider,{value:M,children:V})});o.displayName="FilterBlockProvider";var a=function(V){var J,$=V.children,h=V.params,M=(0,r.Kx)(),p=D(),P=p.recordDataBlocks,v=(0,z.Pt)(),U=v.getDataBlockRequest,j=(0,x.useField)(),c=(0,x.useFieldSchema)(),d=(0,f.Fp)(),l=(0,I.useRef)(null),S=(0,m.tU)(),G=j&&j.decoratorType!=="FilterFormBlockProvider"&&j.decoratorType!=="FormBlockProvider"&&j.decoratorProps.blockType!=="filter",y=(0,I.useCallback)(function(){var K=U();P({uid:c["x-uid"],title:j.componentProps.title,doFilter:K.runAsync,collection:M,associatedFields:d,foreignKeyFields:M==null?void 0:M.getFields("isForeignKey"),defaultFilter:(h==null?void 0:h.filter)||{},service:K,dom:l.current,dataLoadingMode:S,clearFilter:function(F){var O,L,b=((O=this.service.params)===null||O===void 0?void 0:O[0])||{},T=((L=this.service.params)===null||L===void 0||(L=L[1])===null||L===void 0?void 0:L.filters)||{};delete T[F];var q=(0,f.EO)([].concat(i()(Object.values(T).map(function(ne){return(0,A.WmO)(ne)})),[(h==null?void 0:h.filter)||{}]));this.service.run(u()(u()({},b),{},{page:1,filter:q}),{filters:T})},clearData:function(){this.service.mutate(void 0)}})},[d,M,S,j==null||(J=j.componentProps)===null||J===void 0?void 0:J.title,c,h==null?void 0:h.filter,P,U]);return(0,I.useEffect)(function(){G&&y()},[y,G]),(0,n.jsx)("div",{ref:l,children:$})},D=function(){var V=I.useContext(N),J=(0,I.useCallback)(function(){return(V==null?void 0:V.getDataBlocks())||[]},[V]),$=(0,I.useCallback)(function(M){var p=V==null?void 0:V.getDataBlocks().find(function(P){return P.uid===M.uid});if(p){Object.assign(p,M);return}V==null||V.setDataBlocks(function(P){return[].concat(i()(P),[M])})},[V]),h=(0,I.useCallback)(function(M){V!=null&&V.getDataBlocks().every(function(p){return p.uid!==M})||V==null||V.setDataBlocks(function(p){return p.filter(function(P){return P.uid!==M})})},[V]);return V?{recordDataBlocks:$,getDataBlocks:J,removeDataBlock:h,inProvider:!0}:{inProvider:!1,recordDataBlocks:B().noop,getDataBlocks:J,removeDataBlock:B().noop}}},18386:function(We,se,e){"use strict";e.d(se,{$f:function(){return u.$f},EO:function(){return u.EO},Fp:function(){return u.Fp},Op:function(){return u.Op},Um:function(){return u.Um},XA:function(){return H.XA},hi:function(){return u.hi},jE:function(){return u.jE},kO:function(){return H.kO},vC:function(){return u.vC},vY:function(){return H.vY},x5:function(){return u.x5},yr:function(){return u.yr},zv:function(){return u.zv}});var H=e(67205),u=e(87714)},87714:function(We,se,e){"use strict";e.d(se,{$f:function(){return v},EO:function(){return J},Fp:function(){return P},Op:function(){return c},Um:function(){return M},hi:function(){return j},jE:function(){return p},vC:function(){return V},x5:function(){return $},yr:function(){return U},zv:function(){return h}});var H=e(97857),u=e.n(H),w=e(19632),i=e.n(w),x=e(5574),g=e.n(x),B=e(9783),r=e.n(B),z=e(52677),m=e.n(z),A=e(80844),f=e(84157),I=e(96486),n=e.n(I),C=e(67294),N=e(10097),o=e(58837),a=e(13511),D=e(7105),E=e(67205),V=function(d){return d[d.FORM=0]="FORM",d[d.TABLE=1]="TABLE",d[d.TREE=2]="TREE",d[d.COLLAPSE=3]="COLLAPSE",d}({}),J=function(l){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",G=l.filter(function(y){if(y&&m()(y)==="object"&&!Array.isArray(y))return Object.values(y).filter(function(K){return K!==void 0}).length});return G.length===0?{}:G.length===1?G[0]:r()({},S,G)},$=function(l,S){var G;return(G=S.associatedFields)===null||G===void 0?void 0:G.filter(function(y){return l==null?void 0:l.some(function(K){return K===y.target})})},h=function(l,S){var G;return(G=S.foreignKeyFields)===null||G===void 0?void 0:G.filter(function(y){return l.fields.some(function(K){return K.type!=="belongsTo"&&K.foreignKey===y.name})})},M=function(l){var S=(0,E.kO)(),G=S.getDataBlocks,y=(0,A.useFieldSchema)(),K=(0,o.Kx)(),t=(0,a.Uv)(),F=t.getAllCollectionsInheritChain;if(l===V.FORM||l===V.COLLAPSE)return G().filter(function(O){return U(O.collection,K)});if(l===V.TABLE||l===V.TREE)return G().filter(function(O){var L,b;return y["x-uid"]!==O.uid&&(U(O.collection,K)||((L=$(F(K.name,K.dataSource),O))===null||L===void 0?void 0:L.length)||((b=h(K,O))===null||b===void 0?void 0:b.length))})},p=function(l,S,G,y){l=(0,f.flatten)(l,{breakOn:function(F){var O=F.value,L=F.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(S[L]))return!0;var b=G("".concat(y,".").concat(L));if(b!=null&&b.target){if(Array.isArray(O))return!0;var T=b.targetKey||"id";if(O&&O[T]!=null)return!0}return!1}});var K={$and:Object.keys(l).map(function(t){var F=n().get(l,t),O=G("".concat(y,".").concat(t));return O!=null&&O.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(O.type)&&(F=(0,f.getValuesByPath)(F,O.targetKey||"id"),t="".concat(t,".").concat(O.targetKey||"id"),(O==null?void 0:O.interface)==="chinaRegion"&&(F=n().last(F))),!F&&F!==0&&F!==!1?null:r()({},t,r()({},S[t]||"$eq",F))}).filter(Boolean)};return K},P=function(){var l;return((l=(0,o.Kx)())===null||l===void 0?void 0:l.fields.filter(function(S){return v(S)}))||[]},v=function(l){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(l==null?void 0:l.interface)},U=function(l,S){return l.name===S.name&&l.dataSource===S.dataSource},j=function(){var l=(0,A.useFieldSchema)(),S=(0,E.kO)(),G=S.getDataBlocks,y=(0,N.findFilterTargets)(l),K=y.targets,t=y.uid,F=G(),O=(0,C.useState)(function(){return K&&K.some(function(oe){return F.some(function(Y){return Y.uid===oe.uid})})}),L=g()(O,2),b=L[0],T=L[1],q=Object.keys(K||{});(0,C.useEffect)(function(){T(K&&K.some(function(oe){return F.some(function(Y){return Y.uid===oe.uid})}))},[q.length,K,F]);var ne=(0,C.useCallback)(function(oe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";F.forEach(function(Q){var fe,X,ue=K.find(function(Se){return Se.uid===Q.uid});if(ue){n().isFunction(Y)&&(Y=Y(ue)),n().isFunction(W)&&(W=W(ue));var be=((fe=Q.service.params)===null||fe===void 0?void 0:fe[0])||{},ge=((X=Q.service.params)===null||X===void 0||(X=X[1])===null||X===void 0?void 0:X.filters)||{};oe!==void 0?ge[t]={$and:[r()({},Y,r()({},W,oe))]}:delete ge[t];var me=J([].concat(i()(Object.values(ge).map(function(Se){return(0,D.WmO)(Se)})),[Q.defaultFilter]));Q.doFilter(u()(u()({},be),{},{page:1,filter:me}),{filters:ge})}})},[F,K,t]);return{isConnected:b,doFilter:ne}},c=function(l){for(;l;){if(l["x-filter-targets"])return l["x-decorator"]==="FilterFormBlockProvider";l=l.parent}return!1}},5772:function(We,se,e){"use strict";e.d(se,{C:function(){return i},z:function(){return w}});var H=e(67294),u=e(85893),w=H.createContext(null),i=function(g){return(0,u.jsx)(w.Provider,{value:g,children:g.children})}},7686:function(We,se,e){"use strict";e.d(se,{P:function(){return w}});var H=e(67294),u=e(5772),w=function(){return(0,H.useContext)(u.z)||{}}},53285:function(We,se,e){"use strict";e.d(se,{Cm:function(){return H.C},P5:function(){return u.P},z_:function(){return H.z}});var H=e(5772),u=e(7686)},57105:function(We,se,e){"use strict";e.d(se,{_9:function(){return F},$:function(){return ne},sq:function(){return Y},ri:function(){return G},mz:function(){return t},cl:function(){return oe},QJ:function(){return y},gR:function(){return K}});var H=e(97857),u=e.n(H),w=e(80844),i=e(84327),x=e(90105),g=e(96486),B=e.n(g),r=e(67294),z=e(35746),m=e(58837),A=e(93323),f=e(64910),I=e(96365),n=e(52677),C=e.n(n),N=e(85893),o=function(Q,fe){if(!(!Q&&!fe)&&!(0,i.isFn)(Q))return(0,N.jsxs)(r.Fragment,{children:[Q,fe]})},a=function(Q){return Q&&(C()(Q)==="object"||typeof Q=="function")},D=function(Q,fe,X){return(0,i.isFn)(Q)?Q(fe,X):Q},E=function(Q){var fe,X=(0,r.useContext)(w.SchemaComponentsContext),ue=Q.field,be=o(D(Q.children,ue,ue.form),(fe=ue.content)!==null&&fe!==void 0?fe:ue.componentProps.children);if(ue.display!=="visible")return null;var ge=function(ee){var ce;return a(ee)?ee:(ce=i.FormPath.getIn(X,ee))!==null&&ce!==void 0?ce:ee},me=function(ee){return ue.decoratorType?r.createElement(ge(ue.decoratorType),ue.decoratorProps,ee):(0,N.jsx)(r.Fragment,{children:ee})},Se=function(){return ue.componentType?r.createElement(ge(ue.componentType),u()(u()({},ue.componentProps),{},{value:ue.value}),be):be};return me(Se())};E.displayName="NocoBaseReactiveInternal";var V=E;V.displayName="NocoBaseReactiveField";var J=e(12444),$=e.n(J),h=e(72004),M=e.n(h),p=e(9783),P=e.n(p);function v(W){return new U(W)}var U=function(){function W(Q){$()(this,W),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=Q,this.initialize()}return M()(W,[{key:"initialize",value:function(){var fe,X,ue,be,ge,me,Se,ie,ee,ce,ve,Z,le,xe,Me,Ae,Re,Ee,Oe,Pe,_e=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=_e(this.props.title||((fe=this.props.schema)===null||fe===void 0?void 0:fe.title)),this.description=_e(this.props.description||((X=this.props.schema)===null||X===void 0?void 0:X.description)),this.display="visible",this.editable=this.props.editable||((ue=this.props.schema)===null||ue===void 0?void 0:ue["x-editable"]),this.disabled=this.props.disabled||((be=this.props.schema)===null||be===void 0?void 0:be["x-disabled"]),this.readOnly=this.props.readOnly||((ge=this.props.schema)===null||ge===void 0?void 0:ge["x-read-only"]),this.visible=this.props.visible||((me=this.props.schema)===null||me===void 0?void 0:me["x-visible"]),this.hidden=this.props.hidden||((Se=this.props.schema)===null||Se===void 0?void 0:Se["x-hidden"]),this.dataSource=_e(this.props.dataSource||((ie=this.props.schema)===null||ie===void 0?void 0:ie.enum)),this.validator=this.props.validator,this.required=this.props.required||!!((ee=this.props.schema)!==null&&ee!==void 0&&ee.required),this.content=_e(this.props.content||((ce=this.props.schema)===null||ce===void 0?void 0:ce["x-content"])),this.initialValue=_e(this.props.initialValue||((ve=this.props.schema)===null||ve===void 0?void 0:ve.default)),this.value=_e(this.props.value),this.data=this.props.data||((Z=this.props.schema)===null||Z===void 0?void 0:Z["x-data"]),this.decorator=this.props.decorator?(0,i.toArr)(this.props.decorator):[(le=this.props.schema)===null||le===void 0?void 0:le["x-decorator"],(xe=this.props.schema)===null||xe===void 0?void 0:xe["x-decorator-props"]],this.component=this.props.component?(0,i.toArr)(this.props.component):[(Me=this.props.schema)===null||Me===void 0?void 0:Me["x-component"],(Ae=this.props.schema)===null||Ae===void 0?void 0:Ae["x-component-props"]],this.decoratorProps=((Re=this.props.schema)===null||Re===void 0?void 0:Re["x-decorator-props"])||{},this.componentProps=((Ee=this.props.schema)===null||Ee===void 0?void 0:Ee["x-component-props"])||{},this.decoratorType=(Oe=this.props.schema)===null||Oe===void 0?void 0:Oe["x-decorator"],this.componentType=(Pe=this.props.schema)===null||Pe===void 0?void 0:Pe["x-component"],this.path={},this.form={},this.address={concat:B().noop}}}]),W}(),j=function(Q){var fe=(0,I.e)(),X=(0,w.useFieldSchema)(),ue=(0,r.useMemo)(function(){return v(u()(u()({},Q),{},{compile:fe}))},[]);return Object.assign(ue.componentProps,X["x-component-props"]),ue.value=Q.value,(0,N.jsx)(w.FieldContext.Provider,{value:ue,children:(0,N.jsx)(V,{field:ue,children:Q.children})})},c=r.createContext({}),d=r.createContext(B().noop),l=function(Q){var fe=Q.children,X=Q.refresh,ue=K(),be=(0,r.useCallback)(function(ge){X(),ge!=null&&ge.refreshParentSchema&&(ue==null||ue())},[ue,X]);return(0,N.jsx)(d.Provider,{value:be,children:fe})},S=r.createContext(B().noop),G=function(Q){var fe=Q.children,X=Q.refresh;return(0,N.jsx)(S.Provider,{value:X,children:fe})},y=function(){return r.useContext(S)},K=function(){return r.useContext(d)},t=function(){return r.useContext(c)||{}},F=function(Q){var fe=Q.children,X=Q.fieldSchema,ue=(0,m.Kx)(),be=(0,z.d9)(),ge=X==null?void 0:X.name,me=(0,r.useMemo)(function(){var Se;if(!ue)return null;var ie=X==null||(Se=X["x-component-props"])===null||Se===void 0?void 0:Se.field;return be.getCollectionField(X==null?void 0:X["x-collection-field"])||ie||ue.getField((ie==null?void 0:ie.name)||ge)},[ue,be,X,ge]);return(0,N.jsx)(c.Provider,{value:me,children:fe})},O=B().memoize(function(W,Q){return W.toFieldProps({scope:Q})}),L=function(Q){var fe=(0,w.useExpressionScope)();return O(Q,fe)},b=function(Q){var fe=(0,w.useField)();if(Q.onlyRenderProperties){var X;return Q.basePath||(fe==null||(X=fe.address)===null||X===void 0?void 0:X.concat(Q.name))}return Q.basePath||(fe==null?void 0:fe.address)},T=function(Q,fe,X){var ue=Q.toJSON();if(X){if(!ue.properties)return Q;var be=Object.keys(ue.properties)[0],ge=Object.values(ue.properties)[0];return ue.properties[be]=(0,i.merge)(B().omit(fe,"type","x-read-pretty"),ge),new w.Schema(ue)}return new w.Schema((0,i.merge)(B().omit(fe,"type","x-read-pretty"),ue))},q=function(Q){var fe=Q.schema,X=Q.field,ue=Q.basePath,be=Q.mapProperties,ge=Q.filterProperties,me=Q.propsRecursion,Se=Q.values,ie=Q.isUseFormilyField,ee=w.Schema.getOrderProperties(fe);return ee.length?(0,N.jsx)(r.Fragment,{children:ee.map(function(ce,ve){var Z=ce.schema,le=ce.key,xe=(X==null?void 0:X.address)||ue,Me=Z;if((0,i.isFn)(be)){var Ae=be(Z,le);Ae&&(Me=Ae)}if((0,i.isFn)(ge)&&ge(Me,le)===!1)return null;var Re=(0,i.isBool)(me)&&me?(0,N.jsx)(Y,{propsRecursion:!0,filterProperties:ge,mapProperties:be,schema:Me,name:le,basePath:xe,values:B().get(Se,le),isUseFormilyField:ie}):(0,N.jsx)(Y,{schema:Me,name:le,basePath:xe,values:B().get(Se,le),isUseFormilyField:ie});return Me["x-component"]==="CollectionField"?(0,N.jsx)(ne.Provider,{value:!0,children:(0,N.jsx)(F,{fieldSchema:Me,children:Re})},"".concat(ve,"-").concat(le)):(0,N.jsx)(ne.Provider,{value:!1,children:(0,N.jsx)(c.Provider,{value:f.Nu,children:Re})},"".concat(ve,"-").concat(le))})}):null},ne=r.createContext(!1),oe=function(){return r.useContext(ne)},Y=r.memo(function(W){var Q=W.schema,fe=W.name,X=W.onlyRenderProperties,ue=W.onlyRenderSelf,be=W.mapProperties,ge=W.filterProperties,me=W.propsRecursion,Se=W.values,ie=W.isUseFormilyField,ee=ie===void 0?!0:ie,ce=W.uiSchema,ve=b(W),Z=(0,r.useRef)(null),le=(0,r.useMemo)(function(){return Z.current=null,new w.Schema(Q)},[Q]),xe=t(),Me=xe.uiSchema,Ae=xe.defaultValue,Re=(0,x.Z)(),Ee=(0,r.useContext)(A.A),Oe=Ee.onChange,Pe=Z.current||le,_e=(0,r.useCallback)(function(){var ae=Pe.parent;Z.current=new w.Schema(Pe.toJSON(),ae),ae!=null&&ae.properties&&Object.keys(ae.properties).forEach(function(je){je===Pe.name&&(ae.properties[je]=Z.current)}),Re(),Oe==null||Oe()},[Pe,Oe,Re]),re=(0,r.useMemo)(function(){return ce?T(Pe,ce,X):Me?(Me.default=Ae,T(Pe,Me,X)):Pe},[Me,Ae,Pe,X,ce]),R=L(re),de=function(je){if(!ue)return q({schema:Pe,field:je,basePath:ve,mapProperties:be,filterProperties:ge,propsRecursion:me,values:Se,isUseFormilyField:ee})},De=function(){return(0,i.isValid)(fe)?re.type==="object"?X?de():(0,N.jsx)(w.ObjectField,u()(u()({},R),{},{name:fe,basePath:ve,children:de})):re.type==="array"?(0,N.jsx)(w.ArrayField,u()(u()({},R),{},{name:fe,basePath:ve})):re.type==="void"?X?de():(0,N.jsx)(w.VoidField,u()(u()({},R),{},{name:fe,basePath:ve,children:de})):ee?(0,N.jsx)(w.Field,u()(u()({},R),{},{name:fe,basePath:ve})):(0,N.jsx)(j,{name:fe,value:Se,initialValue:Se,basePath:ve,schema:re}):de()};return Pe?(0,N.jsx)(w.SchemaContext.Provider,{value:Pe,children:(0,N.jsx)(l,{refresh:_e,children:De()})}):(0,N.jsx)(r.Fragment,{})});Y.displayName="NocoBaseRecursionField"},69962:function(We,se,e){"use strict";e.d(se,{wI:function(){return J},YO:function(){return M},kK:function(){return I},uH:function(){return A},mg:function(){return h}});var H=e(5574),u=e.n(H),w=e(9361),i=e(28459),x=e(96486),g=e.n(x),B=e(67294),r=e(97857),z=e.n(r),m={name:"",token:{colorPrimaryHeader:"#001529",colorBgHeader:"#001529",colorBgHeaderMenuHover:"#ffffff1a",colorBgHeaderMenuActive:"#ffffff1a",colorTextHeaderMenu:"#ffffffa6",colorTextHeaderMenuHover:"#ffffff",colorTextHeaderMenuActive:"#ffffff",colorSettings:"#F18B62",colorBgSettingsHover:"rgba(241, 139, 98, 0.06)",colorBorderSettingsHover:"rgba(241, 139, 98, 0.3)",motionUnit:.03,motion:!0}},A=m;function f(p){var P;return(P=p.token)!==null&&P!==void 0&&P.colorSettings||(p.token=z()(z()({},p.token),A.token)),p}var I=f,n=function(P,v){var U=v||w.Z.defaultAlgorithm(P);return U.paddingPageHorizontal===void 0&&(U.paddingPageHorizontal=U.sizeLG),U.paddingPageVertical===void 0&&(U.paddingPageVertical=U.sizeLG),U.paddingPopupHorizontal===void 0&&(U.paddingPopupHorizontal=U.sizeLG),U.paddingPopupVertical===void 0&&(U.paddingPopupVertical=U.size),U.marginBlock===void 0&&(U.marginBlock=U.sizeLG),U.borderRadiusBlock===void 0&&(U.borderRadiusBlock=U.borderRadiusLG),U},C=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},N=e(85893),o=e(3321),a=e(12174),D=e(29939),E=(0,B.memo)(function(p){var P=p.children,v=(0,D.qD)(),U=o.Z.useApp(),j=U.notification,c=(0,a.LY)();return(0,B.useEffect)(function(){c.notification=j,v.notification=j},[j]),(0,N.jsx)(N.Fragment,{children:P})});E.displayName="AppInner";var V=function(P){var v=P.children,U=P.className,j=P.style;return(0,N.jsx)(o.Z,{className:U,style:z()({height:"100%"},j),children:(0,N.jsx)(E,{children:v})})};V.displayName="AntdAppProvider";var J=V,$=(0,B.createContext)(null);$.displayName="GlobalThemeContext";var h=function(){return B.useContext($)||{theme:{},isDarkTheme:!1}},M=function(P){var v=P.children,U=P.theme,j=B.useState(U||A),c=u()(j,2),d=c[0],l=c[1],S=(0,B.useRef)(null),G=(0,B.useRef)(null),y=(0,B.useMemo)(function(){var b=d==null?void 0:d.algorithm;return Array.isArray(b)?b.includes(w.Z.darkAlgorithm):b===w.Z.darkAlgorithm},[d==null?void 0:d.algorithm]),K=(0,B.useCallback)(function(b){G.current=b&&g().cloneDeep(b)},[]),t=(0,B.useCallback)(function(){return G.current},[]),F=(0,B.useCallback)(function(b){S.current=b&&g().cloneDeep(b)},[]),O=(0,B.useCallback)(function(){return S.current},[]),L=(0,B.useMemo)(function(){return{theme:C(d),setTheme:l,setCurrentSettingTheme:F,getCurrentSettingTheme:O,setCurrentEditingTheme:K,getCurrentEditingTheme:t,isDarkTheme:y}},[t,O,y,K,F,d]);return(0,N.jsx)($.Provider,{value:L,children:(0,N.jsx)(i.ZP,{theme:I(L.theme),children:v})})}},15503:function(We,se,e){"use strict";e.d(se,{M:function(){return C},t:function(){return N}});var H=e(97857),u=e.n(H),w=e(96695),i=e.n(w),x=e(80844),g=e(96486),B=e.n(g),r=e(67294),z=e(7105),m=e(57953),A=e(85893),f=function(){},I=function(a,D,E){var V=void 0;return B().isFunction(a)?V=a:(V=D[a],V||console.error("".concat(E," is not registered"))),V||f},n=function(a,D){if(!a)return f;if(B().isFunction(a))return a;var E=a.split("."),V,J=i()(E),$;try{for(J.s();!($=J.n()).done;){var h=$.value;V=I(h,V||D,a)}}catch(M){J.e(M)}finally{J.f()}return V};function C(o,a){var D=(0,x.useExpressionScope)(),E=n(o,D)(a);return E}function N(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=a.displayName||o.displayName||o.name,E=function V(J){var $=(0,z.ngQ)(),h=$.dn,M=$.findComponent,p=(0,r.useMemo)(function(){var U=h.getSchemaAttribute("x-component"),j=h.getSchemaAttribute("x-decorator"),c=h.getSchemaAttribute("x-use-component-props"),d=h.getSchemaAttribute("x-use-decorator-props");if(U&&c&&M(U)===V)return c;if(j&&d&&M(j)===V)return d},[h]),P=C(p,J),v=(0,r.useMemo)(function(){return u()(u()({},J),P)},[P,J]);return(0,A.jsx)(r.Suspense,{fallback:(0,A.jsx)(m.Z,{}),children:(0,A.jsx)(o,u()(u()({},v),{},{children:J.children}))})};return o.displayName=D,E.displayName="withSchemaProps(".concat(D,")"),E}},83335:function(We,se,e){"use strict";e.d(se,{C:function(){return r}});var H=e(97857),u=e.n(H),w=e(48054),i=e(39742),x=e(67294),g=e(85893),B=function(){var m;return!!((m=(0,i.hS)())!==null&&m!==void 0&&m.loading)},r=function(m,A){var f=A||{},I=f.useLoading,n=I===void 0?B:I,C=f.displayName,N=f.SkeletonComponent,o=N===void 0?w.Z:N,a=x.memo(function(D){var E=n(),V=(0,x.useRef)(!1);return!V.current&&E?(0,g.jsx)(o,{}):(V.current=!0,(0,g.jsx)(m,u()({},D)))});return a.displayName=C||"".concat(m.displayName,"(withSkeletonComponent)")||0,a}},29392:function(We,se,e){"use strict";e.d(se,{W:function(){return H},S:function(){return i}});var H=function(){return"nocobase-admin-menu"},u=e(67294),w=function(){var g=(0,u.useRef)("initial-scale=0.1"),B=(0,u.useRef)();(0,u.useEffect)(function(){var z=document.querySelector('meta[name="viewport"]');z?g.current=z.content:(z=document.createElement("meta"),z.name="viewport"),z&&(z.content="width=device-width, initial-scale=1, user-scalable=0",B.current=z)},[]);var r=function(){B.current&&(B.current.content=g.current)};return{metaRef:B,restore:r}};function i(){var x=w(),g=x.metaRef,B=x.restore;(0,u.useEffect)(function(){if(g.current)return document.head.insertBefore(g.current,document.head.firstChild),function(){B()}},[])}},74820:function(We,se,e){"use strict";e.d(se,{d5:function(){return z},iX:function(){return A},nu:function(){return m}});var H=e(19632),u=e.n(H),w=e(96486),i=e.n(w),x=e(67294),g=e(85893),B=(0,x.createContext)(null);B.displayName="GetMenuItemContext";var r=(0,x.createContext)(null);r.displayName="GetMenuItemsContext";var z=function(){return(0,x.useContext)(B)||{}},m=function(){return(0,x.useContext)(r)||{}},A=function(){var I=(0,x.useRef)([]),n=(0,x.useRef)(null),C=(0,x.useRef)(!1),N=(0,x.useCallback)(function(E){var V=E.limitCount;return C.current?(C.current=!1,n.current?n.current():V&&I.current.length>V?(0,g.jsx)(g.Fragment,{children:I.current.slice(0,V).map(function(J,$){return(0,g.jsx)(J,{},$)})}):(0,g.jsx)(g.Fragment,{children:I.current.map(function(J,$){return(0,g.jsx)(J,{},$)})})):null},[]),o=(0,x.useCallback)(function(E){var V=[],J=function(h){V.push(h),V.sort(function(M,p){return(M.order||0)-(p.order||0)})};return C.current=!0,n.current=function(){var $=V.filter(function(h){return h.notdelete}).map(function(h){return i().omit(h,"notdelete")});return V.length=0,V.push.apply(V,u()($)),(0,g.jsx)(r.Provider,{value:{pushMenuItem:J},children:E()})},V},[]),a=(0,x.useCallback)(function(E){var V={},J=function(h){Object.assign(V,h)};return C.current=!0,I.current.push(function(){return(0,g.jsx)(B.Provider,{value:{collectMenuItem:J},children:E()})}),V},[]),D=(0,x.useCallback)(function(){I.current=[]},[]);return{Component:N,getMenuItems:o,getMenuItem:a,clean:D}}},71098:function(We,se,e){"use strict";e.d(se,{j:function(){return r}});var H=e(12610),u=e(85418),w=e(67294),i=e(12174),x=e(35310),g=e(15585),B=e(85893);function r(){var z,m,A=(0,g.HX)()||{},f=A.data,I=(0,i.LY)();return(f==null||(z=f.data)===null||z===void 0?void 0:z.enabledLanguages.length)>1&&(0,B.jsx)(u.Z,{menu:{onClick:function(C){I.auth.setLocale(C.key),window.location.reload()},selectable:!0,defaultSelectedKeys:[I.auth.locale],items:f==null||(m=f.data)===null||m===void 0||(m=m.enabledLanguages)===null||m===void 0?void 0:m.map(function(n){return{key:n,label:x.ZP[n].label}})},children:(0,B.jsx)(H.Z,{style:{fontSize:24}})})}},58384:function(We,se,e){"use strict";e.d(se,{a:function(){return x},v:function(){return i}});var H=e(36609),u=e(57715),w=e(35310);function i(B,r){return r?"{{t(".concat(JSON.stringify(B),", ").concat(JSON.stringify(r),")}}"):"{{t(".concat(JSON.stringify(B),")}}")}var x=H.default.createInstance(),g={};Object.keys(w.ZP).forEach(function(B){g[B]=w.ZP[B].resources}),x.use(u.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(We,se,e){"use strict";e.d(se,{JO:function(){return N},OL:function(){return n},ci:function(){return f},q5:function(){return I},fm:function(){return C}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(19359),g=e(16165),B=e(91321),r=e(67294),z=e(85893),m=["type","component"],A,f=new Map;function I(a){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A;f.set(a.toLowerCase(),D)}function n(a){return a?f.has(a.toLowerCase()):!1}function C(a){Object.keys(a).forEach(function(D){I(D,a[D])})}Object.keys(x).forEach(function(a){I(a,x[a])});var N=function(D){var E=D.type,V=E===void 0?"":E,J=D.component,$=i()(D,m);if(J)return(0,z.jsx)(g.Z,u()({component:J},$));if(V&&f.has(V.toLowerCase())){var h=f.get(V.toLowerCase());return(0,z.jsx)(h,u()({},$))}return V&&A?(0,z.jsx)(A,{type:V}):null};N.createFromIconfontCN=function(a){A=(0,B.Z)(a)},N.register=function(a){C(a)};var o=null},21143:function(We,se,e){"use strict";e.r(se),e.d(se,{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 h.eB},ADMIN_SETTINGS_PATH:function(){return h.oz},APIClient:function(){return J.lP},APIClientContext:function(){return J._Z},APIClientProvider:function(){return J.Xb},Action:function(){return W.aUM},ActionBar:function(){return W.olz},ActionBarAssociationFilterAction:function(){return Q.cm},ActionBarProvider:function(){return W.N0i},ActionContext:function(){return W.fWn},ActionContextNoRerender:function(){return W.mlL},ActionContextProvider:function(){return W.EIK},ActionDesigner:function(){return W.$Lt},ActionInitializer:function(){return Q.$M},ActionInitializerItem:function(){return Q.eq},AdminDynamicPage:function(){return Y.zf},AdminLayout:function(){return Y.lq},AdminLayoutPlugin:function(){return Y.r3},AdminProvider:function(){return Y.IA},AdminSettingsLayout:function(){return q.i9},AfterSuccess:function(){return W.$b8},AntdAppProvider:function(){return y.wI},AntdConfigPlugin:function(){return V.kT},AntdConfigProvider:function(){return V.zy},AntdSchemaComponentPlugin:function(){return W.HTy},AntdSchemaComponentProvider:function(){return W.lkv},AppComponent:function(){return h.y$},AppLangContext:function(){return V.UJ},AppendsTreeSelect:function(){return W.rDu},Application:function(){return h.Mx},ApplicationContext:function(){return h.Zz},AssignedFieldValues:function(){return W.eYL},AssociatedFields:function(){return Q.Pg},AssociationField:function(){return W.Rat},AssociationFieldMode:function(){return W.oAt},AssociationFieldModeProvider:function(){return W.E7E},AssociationFilter:function(){return Q.tr},AssociationFilterDesignerDelete:function(){return Q.nr},AssociationFilterDesignerDisplayField:function(){return Q.N2},AssociationFilterPlugin:function(){return Q.Ys},AssociationOrCollectionProvider:function(){return d.dq},AssociationProvider:function(){return d.ym},AssociationSelect:function(){return W.$SD},AsyncDataContext:function(){return M.tO},AsyncDataProvider:function(){return M.pW},AttachmentList:function(){return W.fUi},AutoComplete:function(){return W.QcG},BackButtonUsedInSubPage:function(){return W.MLy},BaseVariableProvider:function(){return X.Nx},BlankComponent:function(){return h.X_},Block:function(){return W.gOu},BlockAssociationContext:function(){return p.WJ},BlockContext:function(){return p.Qj},BlockInitializer:function(){return Q.bn},BlockItem:function(){return W.jYG},BlockItemCard:function(){return W.PuU},BlockItemCardContext:function(){return W.smG},BlockItemInitializer:function(){return Q.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 xe.G},BlockTemplateContext:function(){return ue.k0},BlockTemplateDetails:function(){return ue.bs},BlockTemplatePage:function(){return ue.EF},BlockTemplateProvider:function(){return ue.AG},BlockTemplatesPane:function(){return ue.L},ButtonEditor:function(){return W.C1I},CSSVariableProvider:function(){return c.O},CardItem:function(){return W.Ssf},Cascader:function(){return W.vTp},Checkbox:function(){return W.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 Le._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 W.Tt2},CollectionTemplate:function(){return d.Pl},CollectionTemplateManager:function(){return d.yM},ColorPicker:function(){return W.zH8},ColorSelect:function(){return W.Q5L},CompatibleSchemaInitializer:function(){return h.nl},CreateFilterActionInitializer:function(){return Q.nl},CreateResetActionInitializer:function(){return Q.cz},Cron:function(){return W.Pok},CronSet:function(){return W.Vm0},CurrentAppInfoContext:function(){return $.RQ},CurrentAppInfoProvider:function(){return $.Gq},CurrentPageUidContext:function(){return h.WY},CurrentPageUidProvider:function(){return h.lN},CurrentTabUidContext:function(){return h.yt},CurrentTabUidProvider:function(){return h.vm},CurrentUser:function(){return Se.Ih},CurrentUserContext:function(){return Se.Ec},CurrentUserProvider:function(){return Se.MF},CurrentUserSettingsMenuProvider:function(){return Se.mY},CustomRouterContextProvider:function(){return h.O6},CustomizeActionInitializer:function(){return Q.yE},DEBOUNCE_WAIT:function(){return ie.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 Q.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 W.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 W.Lip},DateFormatCom:function(){return W.WN4},DatePicker:function(){return W.Mtg},DatePickerProvider:function(){return W.iNu},DefaultValueProvider:function(){return X.yT},Designable:function(){return W.zzt},DesignableSwitch:function(){return W._bl},Details:function(){return W.POi},DetailsBlockContext:function(){return p.LR},DetailsBlockProvider:function(){return p.nw},DetailsDesigner:function(){return W.AOY},Divider:function(){return W.izJ},DndContext:function(){return W.LBT},DocumentTitleContext:function(){return l.PE},DocumentTitleProvider:function(){return l.C$},DragHandler:function(){return W.IWB},DraggableContext:function(){return W.LCt},DropdownVisibleContext:function(){return Se.yI},EMPTY_OBJECT:function(){return ie.Nu},EditComponent:function(){return W.FyH},EditDefaultValue:function(){return W.Nir},EditDescription:function(){return W.q8U},EditOperator:function(){return W.HGA},EditPattern:function(){return W.QTe},EditRequired:function(){return W.JEX},EditSortField:function(){return W.fAH},EditTitle:function(){return W.$w$},EditTitleField:function(){return W.nBj},EditTooltip:function(){return W.Oct},EditValidationRules:function(){return W.zdw},Editable:function(){return W.CXR},EllipsisWithTooltip:function(){return W.BQs},ErrorFallback:function(){return W.Hj5},Expand:function(){return W.M0b},ExpiresRadio:function(){return W.Dnz},ExtendCollectionsContext:function(){return d.Xc},ExtendCollectionsProvider:function(){return d.j5},Filter:function(){return W.wn$},FilterAction:function(){return W.GzZ},FilterActionContext:function(){return W.tJZ},FilterAssociatedFields:function(){return Q.EC},FilterBlockProvider:function(){return S.XA},FilterBlockType:function(){return S.vC},FilterContext:function(){return W.fox},FilterDynamicComponent:function(){return W.VTd},FilterFormBlockProvider:function(){return p.WI},FilterLogicContext:function(){return W.XsZ},FilterParentCollectionFields:function(){return Q.d6},FlagContext:function(){return G.z_},FlagProvider:function(){return G.Cm},Form:function(){return W.l09},FormActiveFieldsProvider:function(){return p.T2},FormBlockContext:function(){return p.TC},FormBlockInitializer:function(){return Me.Jo},FormBlockProvider:function(){return p.$R},FormDialog:function(){return W.D_t},FormField:function(){return W.WiK},FormFieldContext:function(){return p.uW},FormFieldProvider:function(){return p.$1},FormItem:function(){return W.xJW},FormItemSchemaToolbar:function(){return Me.Oo},FormProvider:function(){return W.RVL},FormV2:function(){return W.Bc8},G2Plot:function(){return W.hG9},G2PlotInitializer:function(){return Q.oY},G2PlotRenderer:function(){return W.DCh},GeneralSchemaDesigner:function(){return X.aN},GeneralSchemaItems:function(){return fe.Mj},GlobalThemeProvider:function(){return y.YO},Grid:function(){return W.rjZ},GridCard:function(){return W.Cqo},GridRowContext:function(){return W.jg7},HTMLEncode:function(){return W.gsn},HeightMode:function(){return X.j0},Icon:function(){return F.JO},IconPicker:function(){return W.$18},InitializerWithSwitch:function(){return Q.sp},Input:function(){return W.IIB},InputNumber:function(){return W.RnZ},InputReadPretty:function(){return W.mX2},InputRecordPicker:function(){return W.zDC},InternalAdminLayout:function(){return Y.Me},IsInNocoBaseRecursionFieldContext:function(){return Le.$},IsSubPageClosedByPageMenuProvider:function(){return h.oO},Json:function(){return W.Phs},KeepAlive:function(){return Y.Ob},LAZY_COMPONENT_KEY:function(){return O.XI},LOADING_DELAY:function(){return ie.fw},Layout:function(){return X.Ar},LayoutContent:function(){return Y.bU},List:function(){return W.aVo},LocalDataSource:function(){return d.nC},LocationSearchContext:function(){return h.xJ},Markdown:function(){return W.UGj},MarkdownReadPretty:function(){return W.yq5},MaybeCollectionProvider:function(){return p.bH},Menu:function(){return W.v2r},MenuConfigure:function(){return E.dr},NanoIDInput:function(){return W.HIW},NavigateIfNotSignIn:function(){return Se.vo},NavigateToSigninWithRedirect:function(){return Se.Mv},NocoBaseBuildInPlugin:function(){return b.q},NocoBaseDesktopRouteType:function(){return Y.HQ},NocoBaseRecursionField:function(){return Le.sq},OpenModeProvider:function(){return R.W},PMPlugin:function(){return q.Np},Page:function(){return W.T3C},PagePopups:function(){return W.d97},PageTabs:function(){return W.hGv},Pagination:function(){return W.tlE},ParentCollectionFields:function(){return Q.cd},Password:function(){return W.rop},Percent:function(){return W.gGi},PermissionContext:function(){return E.Bk},PermissionProvider:function(){return E.Wx},PinnedListPlugin:function(){return T.r1},PinnedPluginList:function(){return T.B$},PinnedPluginListContext:function(){return T.uv},PinnedPluginListProvider:function(){return T.tc},Plugin:function(){return h.Sy},PluginManager:function(){return q.Q$},PluginManagerLink:function(){return q.s0},PluginSettingsManager:function(){return h.nS},PopupContextProvider:function(){return de.y},PopupSettingsProvider:function(){return W.DBW},PoweredBy:function(){return ne.C},Preview:function(){return W.MBS},QuickEdit:function(){return W.pGO},REGEX_OF_VARIABLE:function(){return ie.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return ie.Bj},Radio:function(){return W.Y8K},ReadPretty:function(){return W.iVT},ReadPrettyRecordPicker:function(){return W.ODP},RecordAssociationBlockInitializer:function(){return Q.$i},RecordAssociationDetailsBlockInitializer:function(){return Q.Mr},RecordAssociationFormBlockInitializer:function(){return Q.EK},RecordAssociationGridCardBlockInitializer:function(){return Q.zb},RecordAssociationListBlockInitializer:function(){return Q.Ok},RecordContext_deprecated:function(){return oe.rY},RecordFormBlockInitializer:function(){return Me.se},RecordIndexContext:function(){return oe.Pc},RecordIndexProvider:function(){return oe.li},RecordLink:function(){return p.hD},RecordPicker:function(){return W.lbb},RecordPickerContext:function(){return W.b7w},RecordPickerProvider:function(){return W.sUk},RecordProvider:function(){return oe.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return Q.CC},RecordSimpleProvider:function(){return oe.Qh},RefreshComponentProvider:function(){return Le.ri},RefreshDataBlockRequest:function(){return W.x1j},RemoteDocumentTitlePlugin:function(){return l.uN},RemoteDocumentTitleProvider:function(){return l.yq},RemoteSchemaComponent:function(){return W.m1v},RemoteSchemaTemplateManagerPlugin:function(){return ue.Wc},RemoteSchemaTemplateManagerProvider:function(){return ue.Jv},RemoteSelect:function(){return W.glM},RemoveButton:function(){return W.xZD},RemoveConditionContext:function(){return W.IuH},RenderChildrenWithAssociationFilter:function(){return p.gY},RequestSettings:function(){return W.MkN},RerenderDataBlockProvider:function(){return d.sI},Resizable:function(){return Ae.ez},RichText:function(){return W.Hof},RoleConfigure:function(){return E.XU},RoleResourceCollectionContext:function(){return E.O9},RoleTable:function(){return E.No},RolesResourcesActions:function(){return E.kF},RouteSchemaComponent:function(){return Y.GX},RouterContextCleaner:function(){return h.OW},RouterManager:function(){return h.k2},SNIPPET_PREFIX:function(){return h.MC},SanitizedCollectionProvider:function(){return d.Pd},SchemaComponent:function(){return W.n6},SchemaComponentContext:function(){return W.DDd},SchemaComponentOnChangeContext:function(){return W.ATq},SchemaComponentOptions:function(){return W.G0E},SchemaComponentPlugin:function(){return W.a$w},SchemaComponentProvider:function(){return W.TzZ},SchemaInitializer:function(){return h.Ms},SchemaInitializerActionModal:function(){return h.HS},SchemaInitializerActionModalInternal:function(){return h.IQ},SchemaInitializerChild:function(){return h.yH},SchemaInitializerChildren:function(){return h.E0},SchemaInitializerContext:function(){return h.V4},SchemaInitializerDivider:function(){return h.qU},SchemaInitializerItem:function(){return h.lV},SchemaInitializerItemContext:function(){return h.Mm},SchemaInitializerItemGroup:function(){return h.iP},SchemaInitializerItemGroupInternal:function(){return h.IY},SchemaInitializerItemInternal:function(){return h.VG},SchemaInitializerItems:function(){return h.LU},SchemaInitializerManager:function(){return h.eN},SchemaInitializerMenu:function(){return h.tu},SchemaInitializerMenuProvider:function(){return h.kw},SchemaInitializerOpenModeSchemaItems:function(){return fe.EU},SchemaInitializerPlugin:function(){return Q.dH},SchemaInitializerSelect:function(){return h.iW},SchemaInitializerSelectInternal:function(){return h.ud},SchemaInitializerSubMenu:function(){return h.eU},SchemaInitializerSubMenuInternal:function(){return h.xv},SchemaInitializerSwitch:function(){return h._n},SchemaInitializerSwitchInternal:function(){return h.wH},SchemaSettingItemContext:function(){return h.A4},SchemaSettingOpenModeSchemaItems:function(){return fe.HA},SchemaSettings:function(){return h.F5},SchemaSettingsActionLinkItem:function(){return Z.s},SchemaSettingsActionModalItem:function(){return X.Qh},SchemaSettingsBlockHeightItem:function(){return X.qf},SchemaSettingsBlockTitleItem:function(){return X._E},SchemaSettingsCascaderItem:function(){return X.ns},SchemaSettingsChild:function(){return h.kY},SchemaSettingsChildren:function(){return h.dk},SchemaSettingsConnectDataBlocks:function(){return X.FE},SchemaSettingsDataScope:function(){return X.HF},SchemaSettingsDataTemplates:function(){return X.ON},SchemaSettingsDateFormat:function(){return X.yu},SchemaSettingsDefaultSortingRules:function(){return X.y5},SchemaSettingsDefaultValue:function(){return X.Nn},SchemaSettingsDivider:function(){return X.Z5},SchemaSettingsDropdown:function(){return X.cM},SchemaSettingsEnableChildCollections:function(){return X.L3},SchemaSettingsFixed:function(){return Ae.rI},SchemaSettingsFormItemTemplate:function(){return X.vC},SchemaSettingsItem:function(){return X.r2},SchemaSettingsItemGroup:function(){return X.bw},SchemaSettingsLayoutItem:function(){return X.JM},SchemaSettingsLinkageRules:function(){return X.lc},SchemaSettingsManager:function(){return h.XD},SchemaSettingsModalItem:function(){return X.B0},SchemaSettingsNumberFormat:function(){return X.wH},SchemaSettingsPlugin:function(){return X.zM},SchemaSettingsPopupItem:function(){return X.D3},SchemaSettingsProvider:function(){return X.Rh},SchemaSettingsRemove:function(){return X.qx},SchemaSettingsRenderEngine:function(){return X.cK},SchemaSettingsSelectItem:function(){return X.Qf},SchemaSettingsSortingRule:function(){return X.wL},SchemaSettingsSubMenu:function(){return X.m$},SchemaSettingsSwitchItem:function(){return X.hj},SchemaSettingsTemplate:function(){return X.Gk},SchemaSettingsWrapper:function(){return h.GC},SchemaTemplateManagerContext:function(){return ue.Kb},SchemaToolbar:function(){return X.Mf},SchemaToolbarContext:function(){return h.J1},SchemaToolbarProvider:function(){return h.V$},SchemaToolbarVisibleContext:function(){return X.dI},ScopeSelect:function(){return E.X$},SearchCollections:function(){return Q.zH},SecondConFirm:function(){return W.y00},Select:function(){return W.PhF},SelectActionInitializer:function(){return Q.w_},SelectWithTitle:function(){return j.T},SetDataLoadingMode:function(){return Ee.jI},SettingCenterPermissionProvider:function(){return E.P2},SettingCenterProvider:function(){return E.S3},SettingsCenterConfigure:function(){return E.H3},SettingsCenterContext:function(){return q.EV},SettingsCenterDropdown:function(){return q.zK},SettingsMenu:function(){return Se.Tx},ShowFormData:function(){return W.Cqv},SkipValidation:function(){return W.cof},Sortable:function(){return W.bts},SortableContext:function(){return W.Fop},SortableItem:function(){return W.TRI},SortableProvider:function(){return W.ORg},Space:function(){return W.TaI},StablePopover:function(){return W.qHe},StrategyActions:function(){return E.R6},SubmitActionInitializer:function(){return Q.ss},SwitchLanguage:function(){return ve.j},SystemSettingsContext:function(){return ge.YO},SystemSettingsPane:function(){return ge.a$},SystemSettingsPlugin:function(){return ge.j8},SystemSettingsProvider:function(){return ge.C6},Table:function(){return W.iA_},TableActionColumnInitializer:function(){return Q.VU},TableBlockContext:function(){return p.Hz},TableBlockDesigner:function(){return W.gvM},TableBlockInitializer:function(){return Ae.kD},TableBlockProvider:function(){return p._0},TableColumnSchemaToolbar:function(){return Ae.u6},TableField:function(){return W.SnY},TableFieldContext:function(){return p.Q6},TableFieldProvider:function(){return p.CB},TableFieldResource:function(){return p.Qy},TableSelectorContext:function(){return p.Yu},TableSelectorDesigner:function(){return W.ASv},TableSelectorInitializer:function(){return Re.S},TableSelectorParamsProvider:function(){return p.Vs},TableSelectorProvider:function(){return p.rL},TableV2:function(){return W.bwk},Tabs:function(){return W.mQc},TabsContextProvider:function(){return W.c__},Templates:function(){return W.QZ3},TestDesigner:function(){return W.L39},TextAreaWithGlobalScope:function(){return W.feF},TimePicker:function(){return W.jII},TreeSelect:function(){return W.mPs},UnixTimestamp:function(){return W.tgM},Upload:function(){return W.gqx},Uploader:function(){return W.Qm7},Variable:function(){return W._wD},VariableInput:function(){return X.qj},VariablePopupRecordProvider:function(){return ae.Rm},VariableScopeProvider:function(){return W.rjl},VariablesContext:function(){return ie.cB},VariablesProvider:function(){return ie.Uj},WithoutFormFieldResource:function(){return p.$Y},WithoutTableFieldResource:function(){return p.s},WorkflowConfig:function(){return W.Fjw},actionSettings:function(){return W.SLL},actionSettingsItems:function(){return W.sBv},allowAddNew:function(){return W.iTm},appendQueryStringToUrl:function(){return p.HQ},attachmentFileTypes:function(){return W.BDK},cache:function(){return D.cache},canMakeAssociationBlock:function(){return Q.Tc},compatOldTheme:function(){return y.kK},completeURL:function(){return p.jR},compose:function(){return h.qC},createCreateFormBlockUISchema:function(){return Me.lJ},createDesignable:function(){return W.Pls},createDetailsBlockSchema:function(){return Q.e6},createFormActionInitializers:function(){return Me.nr},createFormActionInitializers_deprecated:function(){return Me.$G},createFormBlockSchema:function(){return Q.NH},createFormBlockSettings:function(){return Me.K9},createModalSettingsItem:function(){return h.lo},createReadPrettyFormBlockSchema:function(){return Q.Uc},createRouterManager:function(){return h.w9},createSelectSchemaSettingsItem:function(){return h.NB},createStyles:function(){return be.k},createSwitchSettingsItem:function(){return h.HL},createTableBlockSchema:function(){return Q.BU},createTableBlockUISchema:function(){return Ae.OO},createTextSettingsItem:function(){return h.yq},css:function(){return D.css},customFormItemInitializers:function(){return Q.Ic},customFormItemInitializers_deprecated:function(){return Q.Jn},cx:function(){return D.cx},defaultAppComponents:function(){return h.FH},defaultFieldNames:function(){return W.Oxq},defaultInputStyle:function(){return X.ZL},defaultTheme:function(){return y.uH},editFormBlockSettings:function(){return Me.rB},fetchTemplateData:function(){return W.WLi},fieldComponentSettingsItem:function(){return d.K0},fieldSettingsFormItem:function(){return Me.dV},fillParentFields:function(){return p.Xe},filterFormItemSettings:function(){return W.$9M},findByUid:function(){return W.nCn},findFilterTargets:function(){return p.SK},findFormBlock:function(){return p.Fi},findKanbanFormItem:function(){return d.iv},findKeysByUid:function(){return W.iNG},findMenuItem:function(){return W.tD8},findParentFieldSchema:function(){return X.PO},flush:function(){return D.flush},formActionInitializers:function(){return Me.vR},formDetailsSettings:function(){return W.pg9},formItemInitializers:function(){return Me.ex},formItemInitializers_deprecated:function(){return Me.eh},formItemSettings:function(){return W.Ofb},formSettings:function(){return W.ibf},formV1Settings:function(){return W.WyG},genStyleHook:function(){return W.l6$},getAppends:function(){return p.iF},getAssociationPath:function(){return p.dP},getCardItemSchema:function(){return p.Gn},getCollectionTitle:function(){return xe.A},getCurrentOptions:function(){return W.WGR},getDataSourceHeaders:function(){return d.GX},getDatePickerLabels:function(){return W.C$H},getDateRanges:function(){return W.SET},getFieldDefaultValue:function(){return X.os},getFormValues:function(){return p.X7},getGroupMenuSchema:function(){return Pe.X},getIdsWithChildren:function(){return p.Ns},getLabelFormatValue:function(){return W.cNQ},getLabelWithTooltip:function(){return X.rB},getLinkMenuSchema:function(){return _e.e},getPageMenuSchema:function(){return re.a},getPageSchema:function(){return p.tj},getPopupPathFromParams:function(){return W.NCb},getRegisteredStyles:function(){return D.getRegisteredStyles},getRenderContent:function(){return W.I9l},getShouldChange:function(){return X.Vc},getStoredPopupContext:function(){return W.XQ2},getSupportFieldsByAssociation:function(){return S.x5},getSupportFieldsByForeignKey:function(){return S.zv},getTabSchema:function(){return W.Fxc},getURLSearchParams:function(){return X.Uz},getURLSearchParamsChildren:function(){return X.n9},getVariableComponentWithScope:function(){return le.M},getVariablesFromExpression:function(){return ie.fN},gridRowColWrap:function(){return Q.BM},handleDateChangeOnForm:function(){return W.MDU},hasIcon:function(){return F.OL},hydrate:function(){return D.hydrate},i18n:function(){return t.a},icons:function(){return F.ci},inferPickerType:function(){return W.CEH},injectGlobal:function(){return D.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return X.TU},isAssocField:function(){return S.$f},isBulkEditAction:function(){return W.vUN},isFileCollection:function(){return W.ZZb},isInFilterFormBlock:function(){return S.Op},isInitializersSame:function(){return h.h6},isMobile:function(){return W.tqC},isPatternDisabled:function(){return X.VZ},isSameCollection:function(){return S.yr},isShowFilePicker:function(){return W.elO},isSystemField:function(){return X.Mq},isTabPage:function(){return W.CfU},isTitleField:function(){return d.Yj},isVariable:function(){return ie.cG},itemsMerge:function(){return Q.Z_},keyframes:function(){return D.keyframes},languageCodes:function(){return L.m9},lazy:function(){return O.Vo},locale:function(){return L.ZP},mapDatePicker:function(){return W.LPx},mapRangePicker:function(){return W.fY6},mapTimeFormat:function(){return W.Vm},merge:function(){return D.merge},mergeFilter:function(){return S.EO},mockAPIClient:function(){return me.G},moment2str:function(){return W.w_o},navigateToTab:function(){return W.SJF},navigateWithinSelf:function(){return p.nl},normalizeContainer:function(){return h.pn},pageSettings:function(){return W._Ko},pageTabSettings:function(){return W.Mev},parseVariablesAndChangeParamsToQueryString:function(){return p._f},readPrettyFormSettings:function(){return W.i2K},recordBlockInitializers:function(){return Q.vV},recordBlockInitializers_deprecated:function(){return Q.Sq},recursiveParent:function(){return p.zA},reduceValueSize:function(){return p.ID},registerIcon:function(){return F.q5},registerIcons:function(){return F.fm},removeNullCondition:function(){return W.WmO},replaceVariableValue:function(){return p.UY},requestParentRecordData:function(){return d.H0},schemaSettingsLabelLayout:function(){return X.ut},setDataLoadingModeSettingsItem:function(){return Ee.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return X.rf},setTheDataScopeSchemaSettingsItem:function(){return X.aP},sheet:function(){return D.sheet},showFileName:function(){return je.y},splitWrapSchema:function(){return W.oBi},storePopupContext:function(){return W.hKP},subTableActionInitializers:function(){return Q.U2},subTableActionInitializers_deprecated:function(){return Q.o_},systemKeys:function(){return X.ob},tabPaneInitializers:function(){return Q.$T},tabPaneInitializersForBulkEditFormBlock:function(){return Q.zg},tabPaneInitializersForRecordBlock:function(){return Q.d4},tabPaneInitializers_deprecated:function(){return Q.xc},tableActionColumnInitializers:function(){return Ae.Rp},tableActionColumnInitializers_deprecated:function(){return Ae.Xe},tableActionInitializers:function(){return Ae.H1},tableActionInitializers_deprecated:function(){return Ae.EG},tableBlockSettings:function(){return Ae.Oe},tableColumnInitializers:function(){return Ae.Ug},tableColumnInitializers_deprecated:function(){return Ae.T$},tableColumnSettings:function(){return Ae.FY},tableSelectorBlockSettings:function(){return Re.v},transformToFilter:function(){return S.jE},transformVariableValue:function(){return ie.J8},tval:function(){return t.v},updateFilterTargets:function(){return p.iJ},updateFormActionInitializers:function(){return Me.SW},updateFormActionInitializers_deprecated:function(){return Me.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 J.LY},useAPITokenVariable:function(){return X.IG},useActionAvailable:function(){return Ee.vn},useActionBarContext:function(){return W.DU1},useActionContext:function(){return W.XCj},useAdminSchemaUid:function(){return K.W},useAllAccessDesktopRoutes:function(){return Y.Kf},useAllCollectionsInheritChainGetter:function(){return d.Uv},useApp:function(){return h.qD},useAppLangContext:function(){return V.GW},useAppSpin:function(){return h.rM},useAriaAttributeOfMenuItem:function(){return h.ne},useAssociatedFields:function(){return S.Fp},useAssociatedFormItemInitializerFields:function(){return Q.hg},useAssociatedTableColumnInitializerFields:function(){return Q.V0},useAssociationCreateActionProps:function(){return p.Yo},useAssociationFieldContext:function(){return W.KyD},useAssociationFieldModeContext:function(){return W.Vpg},useAssociationFilterBlockProps:function(){return p._S},useAssociationFilterProps:function(){return p.rD},useAssociationName:function(){return d.Xo},useAssociationNames:function(){return p.P_},useAsyncData:function(){return M.w3},useAttach:function(){return W.lIL},useBackButton:function(){return W.KxP},useBaseVariable:function(){return X.zI},useBlockAssociationContext:function(){return p.DD},useBlockContext:function(){return p.VG},useBlockHeight:function(){return W.hi9},useBlockHeightProps:function(){return p.gp},useBlockRequestContext:function(){return p.BU},useBlockResource:function(){return p.lT},useBlockTemplateContext:function(){return ue.rE},useBuiltinVariables:function(){return ie.L7},useBulkDestroyActionProps:function(){return p.ns},useCloseAction:function(){return W.p27},useCollectValuesToSubmit:function(){return p.hu},useCollection:function(){return d.Kx},useCollectionDataSourceItems:function(){return Q.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 X.IO},useCollections:function(){return d.bX},useColumnSchema:function(){return W.z9d},useCompatOldVariables:function(){return X.b1},useCompile:function(){return W.eJW},useComponent:function(){return W.Cor},useContextVariable:function(){return ie.Ym},useCreateActionProps:function(){return p.cD},useCreateAssociationDetailsBlock:function(){return Q.Dc},useCreateAssociationDetailsWithoutPagination:function(){return Q.yZ},useCreateAssociationFormBlock:function(){return Q.Qr},useCreateAssociationGridCardBlock:function(){return Q.yG},useCreateAssociationListBlock:function(){return Q.R_},useCreateAssociationTableBlock:function(){return Q.Rm},useCreateEditFormBlock:function(){return Me.$R},useCreateFormBlock:function(){return Me.kQ},useCreateTableBlock:function(){return Ae.Ez},useCurrentAppInfo:function(){return $._S},useCurrentDocumentTitle:function(){return l.AL},useCurrentPageUid:function(){return h.Rx},useCurrentPopupContext:function(){return W.Zmk},useCurrentPopupRecord:function(){return ae.Sw},useCurrentRoleVariable:function(){return X.KR},useCurrentRoles:function(){return Se.ih},useCurrentRoute:function(){return Y.Hb},useCurrentSchema:function(){return Q.pZ},useCurrentSearchParams:function(){return h.r_},useCurrentTabUid:function(){return h.zJ},useCurrentUserContext:function(){return Se.OP},useCurrentUserSettingsMenu:function(){return Se.t$},useCurrentUserVariable:function(){return X.AO},useCustomizeBulkUpdateActionProps:function(){return p.UQ},useCustomizeRequestActionProps:function(){return p.xx},useCustomizeUpdateActionProps:function(){return p.X0},useDataBlock:function(){return d.eS},useDataBlockHeight:function(){return W.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 Ee.tU},useDataSource:function(){return d.wl},useDataSourceHeaders:function(){return d.on},useDataSourceKey:function(){return d.FC},useDataSourceManager:function(){return d.fp},useDataTemplates:function(){return X.dD},useDatePickerContext:function(){return W.P1D},useDateVariable:function(){return X.ds},useDatetimeVariable:function(){return X.Ld},useDatetimeVariableContext:function(){return X.FB},useDesignable:function(){return W.ngQ},useDesigner:function(){return W.ett},useDestroyActionProps:function(){return p.z2},useDetailsBlockContext:function(){return p.nT},useDetailsBlockProps:function(){return p.BX},useDetailsDecoratorProps:function(){return Ee.dS},useDetailsPaginationProps:function(){return p.bF},useDetailsParentRecord:function(){return Ee.jM},useDetailsProps:function(){return Ee.os},useDetailsWithPaginationBlockParams:function(){return Ee.ln},useDetailsWithPaginationDecoratorProps:function(){return Ee.ec},useDetailsWithPaginationProps:function(){return Ee.tm},useDisassociateActionProps:function(){return p.ii},useDocumentTitle:function(){return l.jr},useDownloadLogs:function(){return W.ySm},useEnsureOperatorsValid:function(){return W.Zd$},useExtendCollections:function(){return d.P5},useFieldComponentName:function(){return j.W},useFieldComponentOptions:function(){return W.cLh},useFieldMode:function(){return W.baz},useFieldModeOptions:function(){return W.fde},useFieldNames:function(){return W.Xdt},useFieldProps:function(){return W.Cld},useFieldTitle:function(){return W.vH8},useFilterAPI:function(){return S.hi},useFilterActionProps:function(){return W.PLH},useFilterBlock:function(){return S.kO},useFilterBlockActionProps:function(){return p.Oy},useFilterByTk:function(){return p.C},useFilterFieldOptions:function(){return W.V8t},useFilterFieldProps:function(){return W.tMk},useFilterOptions:function(){return W.xQm},useFindComponent:function(){return W.sRe},useFlag:function(){return G.P5},useFormActiveFields:function(){return p.zj},useFormBlockContext:function(){return p.bz},useFormBlockProps:function(){return p._$},useFormBlockType:function(){return p.th},useFormDataTemplates:function(){return W.U1u},useFormFieldContext:function(){return p.e$},useFormFieldProps:function(){return p.GK},useFormItemInitializerFields:function(){return Q.I_},useGetAriaLabelOfAction:function(){return W.HS$},useGetAriaLabelOfDesigner:function(){return X.zf},useGetAriaLabelOfDrawer:function(){return W.vBu},useGetAriaLabelOfModal:function(){return W.QYZ},useGetAriaLabelOfPopover:function(){return W.t9d},useGetFilterFieldOptions:function(){return W.Kgy},useGetFilterOptions:function(){return W.aJ2},useGetSchemaInitializerMenuItems:function(){return h.bw},useGlobalTheme:function(){return y.mg},useGlobalVariable:function(){return h.Xb},useGridContext:function(){return W.n14},useGridRowContext:function(){return W.DiB},useInheritsTableColumnInitializerFields:function(){return Q.yi},useIsAddNewForm:function(){return W.l1O},useIsAdminPage:function(){return h.mI},useIsAllowToSetDefaultValue:function(){return X.SF},useIsAssociationField:function(){return W.w5o},useIsDetailBlock:function(){return p.WG},useIsFieldReadPretty:function(){return W.p3Q},useIsFileField:function(){return W.G5e},useIsFormReadPretty:function(){return W.xj2},useIsInSettingsPage:function(){return h.Bb},useIsSelectFieldMode:function(){return W.rxY},useIsSubPageClosedByPageMenu:function(){return h.ce},useLabelUiSchema:function(){return W.Ils},useLazy:function(){return O.lN},useLinkActionProps:function(){return p.ee},useLinkageAction:function(){return W.zCB},useLocalVariables:function(){return ie.Kp},useLocationNoUpdate:function(){return h.fj},useLocationSearch:function(){return h.HU},useMatchAdmin:function(){return h.xi},useMatchAdminName:function(){return h.tJ},useMenuDragEnd:function(){return W.CMh},useMenuSearch:function(){return Q.jA},useNavigateNoUpdate:function(){return h.WO},useNocoBaseRoutes:function(){return W.FMn},useOpenModeContext:function(){return R.B},useOptionalFieldList:function(){return p.Lh},useParamsFromRecord:function(){return p.MM},useParentCollection:function(){return d.lb},useParentRecordCommon:function(){return Oe._},useParentRoute:function(){return W.T0O},useParseDataScopeFilter:function(){return X._Y},useParseURLAndParams:function(){return p.VC},useParsedFilter:function(){return p.vs},usePickActionProps:function(){return p.St},usePlugin:function(){return h.j7},usePopupSettings:function(){return W.a4r},usePopupUtils:function(){return De.E},usePopupVariable:function(){return X.AJ},usePopupVariableContext:function(){return X.gG},useProps:function(){return W.wNf},useRecord:function(){return oe.a},useRecordCollectionDataSourceItems:function(){return Q.bQ},useRecordIndex:function(){return oe.pW},useRecordIsOwn:function(){return oe.Px},useRecordPkValue:function(){return E.Jn},useRefreshActionProps:function(){return p.Xk},useRefreshFieldSchema:function(){return Le.gR},useRemoveActionProps:function(){return p.PJ},useRemoveGridFormItem:function(){return Q.EY},useRequest:function(){return J.QT},useRerenderDataBlock:function(){return d.Rr},useResetBlockActionProps:function(){return p.NP},useResource:function(){return J.Wf},useRoleRecheck:function(){return E.fG},useRoleVariable:function(){return X.bs},useRolesResourcesScopesSelectedRowKeys:function(){return E.cm},useRouter:function(){return h.tv},useRouterBasename:function(){return h.hZ},useSchemaComponentContext:function(){return W.Dmu},useSchemaInitializer:function(){return h.q_},useSchemaInitializerItem:function(){return h.UR},useSchemaInitializerMenuItems:function(){return h.hL},useSchemaInitializerRender:function(){return h.IU},useSchemaInitializerStyles:function(){return h._$},useSchemaInitializerSubMenuContext:function(){return h.vH},useSchemaOptionsContext:function(){return W.Bsl},useSchemaSettings:function(){return X.DD},useSchemaSettingsItem:function(){return h.J$},useSchemaSettingsRender:function(){return h.mQ},useSchemaTemplate:function(){return ue.zy},useSchemaTemplateManager:function(){return ue.$t},useSchemaToolbar:function(){return h.Po},useSchemaToolbarRender:function(){return h.du},useSourceId:function(){return Ee.GL},useSourceIdFromParentRecord:function(){return p.m},useSourceIdFromRecord:function(){return p.e0},useStyles:function(){return W.yKv},useSupportedBlocks:function(){return S.Um},useSyncFromForm:function(){return X.F1},useSystemSettings:function(){return ge.HX},useTableBlockContext:function(){return p.Si},useTableBlockContextBasicValue:function(){return p.bE},useTableBlockDecoratorProps:function(){return Ae.cL},useTableBlockParams:function(){return Ae.lo},useTableBlockProps:function(){return Ae.GK},useTableColumnInitializerFields:function(){return Q.bJ},useTableFieldContext:function(){return p.Wx},useTableFieldProps:function(){return p.oA},useTableSelectorContext:function(){return p.CL},useTableSelectorProps:function(){return p.RP},useTableSize:function(){return W.fMB},useTabsContext:function(){return W.gCg},useTitleFieldOptions:function(){return W.eT6},useToken:function(){return be.d},useUIConfigurationPermissions:function(){return E.mR},useURLAndHTMLSchema:function(){return le.R},useURLSearchParamsCtx:function(){return X.MD},useURLSearchParamsVariable:function(){return X.F5},useUpdateActionProps:function(){return p.HD},useUploadStyles:function(){return W.$SN},useUserVariable:function(){return X.KD},useValidateSchema:function(){return W.q4O},useVariableOptions:function(){return X.Y5},useVariableScope:function(){return W.ymE},useVariables:function(){return ie.OQ},useViewport:function(){return K.S},useZIndexContext:function(){return W.uqQ},withDynamicSchemaProps:function(){return ee.t},withInitializer:function(){return h.W_},withSearchParams:function(){return W.Q3P},withSkeletonComponent:function(){return ce.C},zIndexContext:function(){return W.K5K}});var H=e(66607),u=e.n(H),w=e(79212),i=e.n(w),x=e(37412),g=e.n(x),B=e(59542),r=e.n(B),z=e(96036),m=e.n(z),A=e(96671),f=e.n(A),I=e(70178),n=e.n(I),C=e(72540),N=e.n(C),o=e(90844),a=e(14994),D=e(97133),E=e(47646),V=e(75599),J=e(12174),$=e(80347),h=e(29939),M=e(26124),p=e(67174),P=e(6145),v={};for(var U 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(U)<0&&(v[U]=function(Ve){return P[Ve]}.bind(0,U));e.d(se,v);var j=e(7737),c=e(20085),d=e(94804),l=e(69803),S=e(18386),G=e(53285),y=e(69962),K=e(29392),t=e(58384),F=e(82369),O=e(98902),L=e(35310),b=e(7825),T=e(52817),q=e(65213),ne=e(53181),oe=e(36586),Y=e(8918),W=e(7105),Q=e(11117),fe=e(90810),X=e(36802),ue=e(15195),be=e(39863),ge=e(15585),me=e(16779),Se=e(95882),ie=e(64910),ee=e(15503),ce=e(83335),ve=e(71098),Z=e(29245),le=e(83954),xe=e(16966),Me=e(67565),Ae=e(77681),Re=e(75145),Ee=e(56995),Oe=e(92700),Pe=e(24757),_e=e(23437),re=e(18591),R=e(39270),de=e(74483),De=e(23048),ae=e(73691),je=e(69435),Le=e(57105)},98902:function(We,se,e){"use strict";e.d(se,{Vo:function(){return m},XI:function(){return z},lN:function(){return A}});var H=e(97857),u=e.n(H),w=e(67294),i=e(57953),x=e(96486),g=e.n(x),B=e(97289),r=e(85893),z=Symbol("LAZY_COMPONENT_KEY");function m(f){for(var I=arguments.length,n=new Array(I>1?I-1:0),C=1;C<I;C++)n[C-1]=arguments[C];if(n.length===0){var N=(0,w.lazy)(function(){return f().then(function(a){var D=a.default;return o[z]=D,{default:D}})}),o=function(D){return(0,r.jsx)(w.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(N,u()({},D))})};return o}return n.reduce(function(a,D){var E=(0,w.lazy)(function(){return f().then(function(V){var J=(0,x.get)(V,D);return a[D][z]=J,{default:J}})});return a[D]=function(V){return(0,r.jsx)(w.Suspense,{fallback:(0,r.jsx)(i.Z,{}),children:(0,r.jsx)(E,u()({},V))})},a},{})}function A(f,I){var n=typeof I=="function"?I:function(o){return o[I]},C=(0,B.I6)(f);if(!C.payload)throw new Promise(function(o,a){C.loadIfNeeded(),C.resolution.then(o).catch(a)});var N=n(C.payload);return N}},35310:function(We,se,e){"use strict";e.d(se,{m9:function(){return u},yx:function(){return H}});var H={"ar-EG":"ar","az-AZ":"az","bg-BG":"bg","bn-BD":"bn-bd","by-BY":"en","ca-ES":"ca","cs-CZ":"cs","da-DK":"da","de-DE":"de","el-GR":"el","en-GB":"en-gb","en-US":"en","es-ES":"es","et-EE":"et","fa-IR":"fa","fi-FI":"fi","fr-BE":"fr","fr-CA":"fr","fr-FR":"fr","ga-IE":"ga","gl-ES":"gl","he-IL":"he","hi-IN":"hi","hr-HR":"hr","hu-HU":"hu","hy-AM":"hy-am","id-ID":"id","is-IS":"is","it-IT":"it","ja-JP":"ja","ka-GE":"ka","kk-KZ":"kk","km-KH":"km","kn-IN":"kn","ko-KR":"ko","ku-IQ":"ku","lt-LT":"lt","lv-LV":"lv","mk-MK":"mk","ml-IN":"ml","mn-MN":"mn","ms-MY":"ms","nb-NO":"nb","ne-NP":"ne","nl-BE":"nl-be","nl-NL":"nl","pl-PL":"pl","pt-BR":"pt-br","pt-PT":"pt","ro-RO":"ro","ru-RU":"ru","si-LK":"si","sk-SK":"sk","sl-SI":"sl","sr-RS":"sr","sv-SE":"sv","ta-IN":"ta","th-TH":"th","tk-TK":"tk","tr-TR":"tr","uk-UA":"uk","ur-PK":"ur","vi-VN":"vi","zh-CN":"zh-cn","zh-HK":"zh-hk","zh-TW":"zh-tw"},u={"ar-EG":{label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},"az-AZ":{label:"Az\u0259rbaycan dili"},"bg-BG":{label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},"bn-BD":{label:"Bengali"},"by-BY":{label:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456"},"ca-ES":{label:"\u0421atal\xE0/Espanya"},"cs-CZ":{label:"\u010Cesky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xF1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"\u0641\u0627\u0631\u0633\u06CC"},"fi-FI":{label:"Suomi"},"fr-BE":{label:"Fran\xE7ais(BE)"},"fr-CA":{label:"Fran\xE7ais(CA)"},"fr-FR":{label:"Fran\xE7ais"},"ga-IE":{label:"Gaeilge"},"gl-ES":{label:"Galego"},"he-IL":{label:"\u05E2\u05D1\u05E8\u05D9\u05EA"},"hi-IN":{label:"\u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xCDslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"\u65E5\u672C\u8A9E"},"ka-GE":{label:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"},"kk-KZ":{label:"\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"},"km-KH":{label:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},"kn-IN":{label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"},"ko-KR":{label:"\uD55C\uAD6D\uC5B4"},"ku-IQ":{label:"\u06A9\u0648\u0631\u062F\u06CC"},"lt-LT":{label:"lietuvi\u0173"},"lv-LV":{label:"Latvie\u0161u valoda"},"mk-MK":{label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A"},"ml-IN":{label:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"},"mn-MN":{label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},"ms-MY":{label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648"},"nb-NO":{label:"Norsk bokm\xE5l"},"ne-NP":{label:"\u0928\u0947\u092A\u093E\u0932\u0940"},"nl-BE":{label:"Vlaams"},"nl-NL":{label:"Nederlands"},"pl-PL":{label:"Polski"},"pt-BR":{label:"Portugu\xEAs brasileiro"},"pt-PT":{label:"Portugu\xEAs"},"ro-RO":{label:"Rom\xE2nia"},"ru-RU":{label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},"si-LK":{label:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"},"sk-SK":{label:"Sloven\u010Dina"},"sl-SI":{label:"Sloven\u0161\u010Dina"},"sr-RS":{label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xFCrk\xE7e"},"uk-UA":{label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},"ur-PK":{label:"O\u02BBzbekcha"},"vi-VN":{label:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{label:"\u7B80\u4F53\u4E2D\u6587"},"zh-HK":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u9999\u6E2F\uFF09"},"zh-TW":{label:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u6E7E\uFF09"}};se.ZP=u},29245:function(We,se,e){"use strict";e.d(se,{f:function(){return E},s:function(){return D}});var H=e(9783),u=e.n(H),w=e(97857),i=e.n(w),x=e(5552),g=e(80844),B=e(96486),r=e.n(B),z=e(67294),m=e(26793),A=e(21143),f=e(29939),I=e(91410),n=e(6145),C=e(55642),N=e(36802),o=e(83954),a=e(85893),D=function(){var J=(0,g.useField)(),$=(0,g.useFieldSchema)(),h=(0,A.useDesignable)(),M=h.dn,p=(0,m.$)(),P=p.t,v=(0,o.R)(),U=v.urlSchema,j=v.paramsSchema,c=v.openInNewWindowSchema,d=$["x-component-props"]||{},l={url:d.url,params:d.params||[{}],openInNewWindow:d.openInNewWindow};return(0,a.jsx)(N.B0,{title:P("Edit link"),components:{ArrayItems:x.ArrayItems},schema:{type:"object",title:P("Edit link"),properties:{url:i()(i()({},U),{},{required:!0}),params:j,openInNewWindow:c}},onSubmit:function(G){var y,K=G.url,t=G.params,F=G.openInNewWindow;d.url=K,d.params=t,d.openInNewWindow=F,$["x-component-props"]=d,J.componentProps.url=K,J.componentProps.params=t,J.componentProps.openInNewWindow=F,M.emit("patch",{schema:(y={},u()(y,"x-uid",$["x-uid"]),u()(y,"x-component-props",d),y)}),M.refresh()},initialValues:l})},E=new I.F({name:"actionSettings:link",items:[{name:"editButton",Component:C.C1,useComponentProps:function(){var J=(0,f.Po)(),$=J.buttonEditorProps;return $}},{name:"editLink",Component:D},{name:"linkageRules",Component:N.lc,useVisible:function(){var J=(0,A.useCollectionRecord)();return!r().isEmpty(J==null?void 0:J.data)},useComponentProps:function(){var J=(0,n.useCollection_deprecated)(),$=J.name,h=(0,f.Po)(),M=h.linkageRulesProps;return i()(i()({},M),{},{collectionName:$})}},{name:"remove",sort:100,Component:C.xZ,useComponentProps:function(){var J=(0,f.Po)(),$=J.removeButtonProps;return $}}]})},83954:function(We,se,e){"use strict";e.d(se,{M:function(){return C},R:function(){return N}});var H=e(68400),u=e.n(H),w=e(97857),i=e.n(w),x=e(97133),g=e(80844),B=e(67294),r=e(26793),z=e(7340),m=e(36586),A=e(91053),f=e(54885),I=e(85893),n,C=function(a){return function(D){var E=(0,g.useFieldSchema)(),V=(0,z.bz)(),J=V.form,$=(0,m.a)(),h=(0,f.Y)({collectionField:{uiSchema:E},form:J,record:$,uiSchema:E,noDisabled:!0});return(0,I.jsx)(a,i()(i()({},D),{},{scope:h}))}},N=function(){var a=(0,r.$)(),D=a.t,E=(0,B.useMemo)(function(){return C(A._w.TextArea)},[]),V=(0,B.useMemo)(function(){return{title:D("URL"),type:"string","x-decorator":"FormItem","x-component":E,description:D("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[D,E]),J=(0,B.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:D("URL")},{value:"html",label:D("HTML")}]}},[D]),$=(0,B.useMemo)(function(){return{title:D("html"),type:"string","x-decorator":"FormItem","x-component":C(A._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[D]),h=(0,B.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,x.css)(n||(n=u()([`
|
|
118
118
|
& > .ant-space-item:first-child,
|
|
119
119
|
& > .ant-space-item:last-child {
|
|
120
120
|
flex-shrink: 0;
|
|
@@ -758,7 +758,7 @@ https://requirejs.org/docs/errors.html#`+We);return u.requireType=We,u.requireMo
|
|
|
758
758
|
border-top-color: transparent;
|
|
759
759
|
}
|
|
760
760
|
background-color: transparent;
|
|
761
|
-
`])))},Re),{},{component:T.II.JSON}))}var ve=e(57340),Z=(0,u.createContext)([]);Z.displayName="VariableScopeContext";function le(Re){var Ee=Re.scope,Oe=Ee===void 0?[]:Ee,Pe=Re.children;return(0,q.jsx)(Z.Provider,{value:Oe,children:Pe})}function xe(){return(0,u.useContext)(Z)}function Me(){return null}Me.Input=(0,H.connect)(Se),Me.TextArea=(0,w.t)((0,H.connect)(ve.K,(0,H.mapReadPretty)(ve.K.ReadPretty))),Me.RawTextArea=(0,H.connect)(ie.f),Me.JSON=(0,H.connect)(ce);var Ae=null},88969:function(We,se,e){"use strict";e.d(se,{m:function(){return E}});var H=e(15009),u=e.n(H),w=e(19632),i=e.n(w),x=e(99289),g=e.n(x),B=e(5574),r=e.n(B),z=e(97133),m=e(38089),A=e(67294),f=e(26793),I=e(46917),n=e(9783),C=e.n(n),N=(0,I.l6)("nb-variable-select",function(V){var J=V.componentCls;return C()({},J,{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=N,a=e(2876),D=e(85893);function E(V){var J=V.options,$=V.setOptions,h=V.onInsert,M=V.changeOnSelect,p=M===void 0?!1:M,P=V.fieldNames,v=P===void 0?{}:P,U=V.className,j=(0,f.$)(),c=j.t,d=(0,A.useState)([]),l=r()(d,2),S=l[0],G=l[1],y=o(),K=y.wrapSSR,t=y.componentCls,F=y.hashId,O=(0,I.dQ)(),L=O.token;function b(q){return T.apply(this,arguments)}function T(){return T=g()(u()().mark(function q(ne){var oe,Y;return u()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Y=ne[ne.length-1],!(!((oe=Y.children)!==null&&oe!==void 0&&oe.length)&&!Y.isLeaf&&Y.loadChildren)){Q.next=5;break}return Q.next=4,Y.loadChildren(Y);case 4:$(function(fe){return i()(fe)});case 5:case"end":return Q.stop()}},q)})),T.apply(this,arguments)}return K((0,D.jsx)(a.R,{className:(0,z.cx)("x-button",t,F,U),children:(0,D.jsx)(m.Z,{placeholder:c("Select a variable"),value:[],options:J,fieldNames:v,loadData:b,onChange:function(){var ne,oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(G(oe),!!oe.length){var W=Y[Y.length-1];(!(W!=null&&(ne=W.children)!==null&&ne!==void 0&&ne.length)&&!(W!=null&&W.loadChildren)||W!=null&&W.isLeaf)&&h(oe)}},changeOnSelect:p,onClick:function(ne){if(!(ne.detail!==2||!p))for(var oe=ne.target;oe&&oe!==ne.currentTarget;oe=oe.parentNode){var Y;Array.from((Y=oe.classList)!==null&&Y!==void 0?Y:[]).includes("ant-cascader-menu-item")&&h(S)}},popupClassName:"Cascader-popupClassName",dropdownRender:p?function(q){return(0,D.jsxs)(D.Fragment,{children:[q,(0,D.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(L.colorBorder),color:L.colorTextDescription},children:c("Double click to choose entire object")})]})}:null})}))}},2876:function(We,se,e){"use strict";e.d(se,{R:function(){return g}});var H=e(97857),u=e.n(H),w=e(15867),i=e(67294),x=e(85893),g=(0,i.forwardRef)(function(B,r){var z=(0,i.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,x.jsxs)(w.ZP,u()(u()({"aria-label":"variable-button",ref:r,style:z},B),{},{children:["x",B.children]}))});g.displayName="XButton"},74866:function(We,se,e){"use strict";e.d(se,{y:function(){return i}});var H=e(9783),u=e.n(H),w=e(46917),i=(0,w.l6)("nb-variable",function(x,g){var B=x.componentCls,r=x.lineWidth,z=x.colorFillQuaternary,m=x.paddingSM-1,A=8,f=A-r,I=x.fontSizeSM,n="".concat(x.lineHeightSM*I,"px"),C=z;return u()({},B,{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":g!=null&&g.hideVariableButton?{}:{borderTopRightRadius:0,borderBottomRightRadius:0},".ant-tag":{display:"inline-block",height:"auto",marginInlineEnd:x.marginXS,paddingInline:f,fontSize:I,lineHeight:n,whiteSpace:"nowrap",background:C,border:"".concat(x.lineWidth,"px ").concat(x.lineType," ").concat(x.colorBorder),borderRadius:x.borderRadiusSM,opacity:1,transition:"all ".concat(x.motionDurationMid),textAlign:"start"},".ant-tag-blue":{color:x.colorPrimaryText,background:x.colorPrimaryBg,borderColor:x.colorPrimaryBorder},".clear-button":{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:m,zIndex:1,display:"none",width:x.fontSizeIcon,height:x.fontSizeIcon,marginTop:-x.fontSizeIcon/2,color:x.colorTextQuaternary,fontSize:x.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:x.colorBgContainer,cursor:"pointer",opacity:.8,transition:"color ".concat(x.motionDurationMid," ease, opacity ").concat(x.motionDurationSlow," ease"),textRendering:"auto",userSelect:"none","&:before":{display:"block"},"&:hover":{color:x.colorTextTertiary}},".ant-btn":{height:"auto"},".variable":{flex:1}})})},72724:function(We,se,e){"use strict";e.d(se,{L:function(){return I}});var H=e(97857),u=e.n(H),w=e(5574),i=e.n(w),x=e(23861),g=e(67294),B=e(26793),r=e(21143),z=e(84577),m=e(85893),A=function(C){var N=(0,z.ng)(),o=N.refresh,a=(0,r.useAPIClient)(),D=(0,B.$)(),E=D.t;return(0,g.useCallback)(function(V){var J,$,h,M,p,P,v,U,j=V.active,c=V.over,d=j==null||(J=j.data)===null||J===void 0||(J=J.current)===null||J===void 0?void 0:J.schema,l=c==null||($=c.data)===null||$===void 0||($=$.current)===null||$===void 0?void 0:$.schema,S=c==null||(h=c.data)===null||h===void 0||(h=h.current)===null||h===void 0?void 0:h.insertAdjacent,G=c==null||(M=c.data)===null||M===void 0||(M=M.current)===null||M===void 0?void 0:M.breakRemoveOn,y=c==null||(p=c.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.wrapSchema,K=c==null||(P=c.data)===null||P===void 0||(P=P.current)===null||P===void 0?void 0:P.onSuccess,t=(v=c==null||(U=c.data)===null||U===void 0||(U=U.current)===null||U===void 0?void 0:U.removeParentsIfNoChildren)!==null&&v!==void 0?v:!0;if(!d||!l){C==null||C(V);return}if(d===l){C==null||C(V);return}if(d.parent===l&&S==="beforeEnd"){C==null||C(V);return}var F=(0,z.Pl)({t:E,api:a,refresh:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=L.refreshParentSchema,T=b===void 0?!0:b;return o({refreshParentSchema:T})},current:l});if(F.loadAPIClientEvents(),d.parent===l.parent){F.insertBeforeBeginOrAfterEnd(d),C==null||C(V);return}if(S){F.insertAdjacent(S,d,{wrap:y,breakRemoveOn:G,removeParentsIfNoChildren:t,onSuccess:K}),C==null||C(V);return}},[a,C,o,E])},f=g.memo(function(n){var C=(0,B.$)(),N=C.t,o=(0,g.useState)(!0),a=i()(o,2),D=a[0],E=a[1],V=(0,g.useCallback)(function($){var h,M=$.active,p=M==null||(h=M.data)===null||h===void 0||(h=h.current)===null||h===void 0?void 0:h.schema;if(E(!!p),n!=null&&n.onDragStart){var P;n==null||(P=n.onDragStart)===null||P===void 0||P.call(n,$)}},[n==null?void 0:n.onDragStart]),J=A(n==null?void 0:n.onDragEnd);return(0,m.jsxs)(x.DndContext,u()(u()({collisionDetection:x.rectIntersection},n),{},{onDragStart:V,onDragEnd:J,children:[(0,m.jsx)(x.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:D&&(0,m.jsx)("span",{style:{whiteSpace:"nowrap"},children:N("Dragging")})}),n.children]}))});f.displayName="InternalDndContext";var I=function(C){return(0,m.jsx)(f,u()({},C))}},14896:function(We,se,e){"use strict";e.r(se),e.d(se,{DndContext:function(){return H.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return g},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR},getRenderContent:function(){return B.I9}});var H=e(72724),u=e(20493),w=e(67294),i=e(80844),x=e(85893),g=(0,i.observer)(function(r){var z=r.children,m=(0,i.useForm)();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(m.values,null,2)}),z]})}),B=e(34588)},20493:function(We,se,e){"use strict";e.d(se,{IW:function(){return P},LC:function(){return a},bt:function(){return J},Fo:function(){return D},TR:function(){return p},OR:function(){return E}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(10274),g=e(23861),B=e(97133),r=e(80844),z=e(96486),m=e.n(z),A=e(67294),f=e(46917),I=e(84577),n=e(85893),C=["component","overStyle","style","children","openMode"],N=["schema","id","eid","removeParentsIfNoChildren"],o=["component"],a=(0,A.createContext)(null);a.displayName="DraggableContext";var D=(0,A.createContext)(null);D.displayName="SortableContext";var E=function(U){var j=U.id,c=U.data,d=U.children,l=(0,g.useDraggable)({id:j,data:c}),S=(0,g.useDroppable)({id:j,data:c}),G=(0,A.useMemo)(function(){return{draggable:l,droppable:S}},[l,S]);return(0,n.jsx)(D.Provider,{value:G,children:d})},V=function(U){return new x.C(U).setAlpha(.15).toHex8String()},J=function(U){var j,c,d=U.component,l=U.overStyle,S=U.style,G=U.children,y=U.openMode,K=i()(U,C),t=(0,f.dQ)(),F=t.token,O=(0,A.useContext)(D),L=O.draggable,b=O.droppable,T=b.isOver,q=b.setNodeRef,ne=u()({},S);return T&&(L==null||(j=L.active)===null||j===void 0?void 0:j.id)!==(b==null||(c=b.over)===null||c===void 0?void 0:c.id)&&(ne[d==="a"?"color":"background"]=V(F.colorSettings),Object.assign(ne,l)),A.createElement(d||"div",u()(u()({role:"none"},K),{},{className:(0,B.cx)("nb-sortable-designer",U.className),ref:q,style:ne}),G)},$=function(U){var j=h(U),c=(0,r.useFieldSchema)();return U.schema?u()(u()({},U),{},{id:j}):u()(u()({},U),{},{id:j,schema:c})},h=function(U){var j,c=(0,r.useField)();return U.id?U.id:(j=c.address)===null||j===void 0?void 0:j.toString()},M=(0,r.observer)(function(v){var U=$(v),j=U.schema,c=U.id,d=U.eid,l=U.removeParentsIfNoChildren,S=i()(U,N),G=(0,A.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:j,removeParentsIfNoChildren:l??!0}},[j,l]);return(0,n.jsx)(E,{id:c,data:G,children:(0,n.jsx)(J,u()(u()({id:d},S),{},{children:v.children}))})},{displayName:"InternalSortableItem"}),p=A.memo(function(v){var U=v.component,j=i()(v,o),c=(0,I.ng)(),d=c.designable;return d?(0,n.jsx)(M,u()({},v)):A.createElement(U||"div",m().omit(j,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),v.children)});p.displayName="SortableItem";var P=function(U){var j=(0,A.useContext)(D)||{},c=j.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:U.children})}))})}},34588:function(We,se,e){"use strict";e.d(se,{jC:function(){return c},od:function(){return v},I9:function(){return S},Rq:function(){return U},e7:function(){return P}});var H=e(97857),u=e.n(H),w=e(15009),i=e.n(w),x=e(9783),g=e.n(x),B=e(5574),r=e.n(B),z=e(99289),m=e.n(z),A=e(52677),f=e.n(A),I=e(84157),n=e(96486),C=e.n(n),N=e(10097),o=e(76690),a=e(65565),D=e(61341),E=e(27484);function V(){"use strict";Array.isArray||(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"});function y(O){for(var L=[],b=0,T=O.length;b<T;b++)L.indexOf(O[b])===-1&&L.push(O[b]);return L}function K(O,L){return JSON.stringify(O)===JSON.stringify(L)}var t={},F={$is:function(L,b){return L===b},$match:function(L,b){return Array.isArray(L)&&Array.isArray(b)&&L.some(function(T){return Array.isArray(T)})?L.some(function(T){return(T==null?void 0:T.length)===b.length&&(T==null?void 0:T.every(function(q,ne){return q===b[ne]}))}):JSON.stringify(L)===JSON.stringify(b)},$eq:function(L,b){return Array.isArray(L)&&Array.isArray(b)?K(L,b):Array.isArray(L)?L.includes(b):L==b},$ne:function(L,b){return L!=b},"!==":function(L,b){return L!==b},$gt:function(L,b){return Array.isArray(L)?L.some(function(T){return T>b}):L>b},$gte:function(L,b){return L>=b},$lt:function(L,b,T){return Array.isArray(L)?L.some(function(q){return q<b}):T===void 0?L<b:L<b&&b<T},$lte:function(L,b,T){return T===void 0?L<=b:L<=b&&b<=T},$exists:function(L){return t.truthy(L)},$notEmpty:function(L){return t.truthy(L)},$empty:function(L){return Array.isArray(L)?L.some(function(b){return!t.truthy(b)}):!t.truthy(L)},$notExists:function(L){return!t.truthy(L)},"%":function(L,b){return L%b},log:function(L){return L},$in:function(L,b){return!b||typeof b.indexOf>"u"?!1:Array.isArray(L)&&Array.isArray(b)?b.some(function(T){return L.includes(T)}):b.indexOf(L)!==-1},$notIn:function(L,b){return!b||typeof b.indexOf>"u"?!1:b.indexOf(L)===-1},$includes:function(L,b){return!L||typeof L.indexOf>"u"?!1:Array.isArray(L)?L.some(function(T){return T==null?void 0:T.includes(b)}):L.indexOf(b)!==-1},$notIncludes:function(L,b){return Array.isArray(L)?!L.some(function(T){return(T||"").includes(b)}):(L=L||"",!L.includes(b))},$anyOf:function(L,b){return L.length===0?!1:Array.isArray(L)&&Array.isArray(b)&&L.some(function(T){return Array.isArray(T)})?L.some(function(T){return T.some(function(q){return b.includes(q)})}):L.some(function(T){return b.includes(T)})},$noneOf:function(L,b){return!L||(L==null?void 0:L.length)===0?!0:Array.isArray(L)&&Array.isArray(b)&&L.some(function(T){return Array.isArray(T)})?L.some(function(T){return T.every(function(q){return!b.some(function(ne){return q.includes(ne)})})}):b.some(function(T){return!L.includes(T)})},$notMatch:function(L,b){if(L.length!==b.length)return!0;for(var T=0;T<L.length;T++)if(L[T]!==b[T])return!0;return!1},$dateOn:function(L,b){return!L||!b?!1:L===b},$dateBefore:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);if(!T||!q)throw new Error("Invalid date format");return T<q},$dateNotBefore:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);if(!T||!q)throw new Error("Invalid date format");return T>=q},$dateAfter:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);return T>q},$dateNotAfter:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);if(!T||!q)throw new Error("Invalid date format");return T<=q},$dateBetween:function(L,b){if(!L||!b)return!1;var T=J(L),q=J(b[0]),ne=J(b[1]);if(!T||!q||!ne)throw new Error("Invalid date format");return T>=q&&T<=ne},$dateNotOn:function(L,b){return!L||!b?!1:L!==b},$isTruly:function(L){return Array.isArray(L)?L.some(function(b){return b===!0||b===1}):L===!0||L===1},$isFalsy:function(L){return Array.isArray(L)?L.some(function(b){return!t.truthy(b)}):!t.truthy(L)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(L,b,T){if(T<0){var q=String(L).substr(b);return q.substr(0,q.length+T)}return String(L).substr(b,T)},"+":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)+parseFloat(b,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)*parseFloat(b,10)})},"-":function(L,b){return b===void 0?-L:L-b},"/":function(L,b){return L/b},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(L,b){return L.concat(b)},[])},var:function(L,b){var T=b===void 0?null:b,q=this;if(typeof L>"u"||L===""||L===null)return q;for(var ne=String(L).split("."),oe=0;oe<ne.length;oe++)if(q==null||(q=q[ne[oe]],q===void 0))return T;return q},missing:function(){for(var L=[],b=Array.isArray(arguments[0])?arguments[0]:arguments,T=0;T<b.length;T++){var q=b[T],ne=t.apply({var:q},this);(ne===null||ne==="")&&L.push(q)}return L},missing_some:function(L,b){var T=t.apply({missing:b},this);return b.length-T.length>=L?[]:T}};return t.is_logic=function(O){return f()(O)==="object"&&O!==null&&!Array.isArray(O)&&Object.keys(O).length===1},t.truthy=function(O){return Array.isArray(O)&&O.length===0?!1:!!O},t.get_operator=function(O){return Object.keys(O)[0]},t.get_values=function(O){return O[t.get_operator(O)]},t.apply=function(O,L){if(Array.isArray(O))return O.map(function(X){return t.apply(X,L)});if(!t.is_logic(O))return O;var b=t.get_operator(O),T=O[b],q,ne,oe,Y,W;if(Array.isArray(T)||(T=[T]),b==="if"||b=="?:"){for(q=0;q<T.length-1;q+=2)if(t.truthy(t.apply(T[q],L)))return t.apply(T[q+1],L);return T.length===q+1?t.apply(T[q],L):null}else if(b==="$and"){for(q=0;q<T.length;q+=1)if(ne=t.apply(T[q],L),!t.truthy(ne))return ne;return ne}else if(b==="or"){for(q=0;q<T.length;q+=1)if(ne=t.apply(T[q],L),t.truthy(ne))return ne;return ne}else{if(b==="filter")return Y=t.apply(T[0],L),oe=T[1],Array.isArray(Y)?Y.filter(function(X){return t.truthy(t.apply(oe,X))}):[];if(b==="map")return Y=t.apply(T[0],L),oe=T[1],Array.isArray(Y)?Y.map(function(X){return t.apply(oe,X)}):[];if(b==="reduce")return Y=t.apply(T[0],L),oe=T[1],W=typeof T[2]<"u"?T[2]:null,Array.isArray(Y)?Y.reduce(function(X,ue){return t.apply(oe,{current:ue,accumulator:X})},W):W;if(b==="all"){if(Y=t.apply(T[0],L),oe=T[1],!Array.isArray(Y)||!Y.length)return!1;for(q=0;q<Y.length;q+=1)if(!t.truthy(t.apply(oe,Y[q])))return!1;return!0}else if(b==="none"){if(Y=t.apply(T[0],L),oe=T[1],!Array.isArray(Y)||!Y.length)return!0;for(q=0;q<Y.length;q+=1)if(t.truthy(t.apply(oe,Y[q])))return!1;return!0}else if(b==="some"){if(Y=t.apply(T[0],L),oe=T[1],!Array.isArray(Y)||!Y.length)return!1;for(q=0;q<Y.length;q+=1)if(t.truthy(t.apply(oe,Y[q])))return!0;return!1}}if(T=T.map(function(X){return t.apply(X,L)}),F.hasOwnProperty(b)&&typeof F[b]=="function")return F[b].apply(L,T);if(b.indexOf(".")>0){var Q=String(b).split("."),fe=F;for(q=0;q<Q.length;q++){if(!fe.hasOwnProperty(Q[q]))throw new Error("Unrecognized operation "+b+" (failed at "+Q.slice(0,q+1).join(".")+")");fe=fe[Q[q]]}return fe.apply(L,T)}throw new Error("Unrecognized operation "+b)},t.uses_data=function(O){var L=[];if(t.is_logic(O)){var b=t.get_operator(O),T=O[b];Array.isArray(T)||(T=[T]),b==="var"?L.push(T[0]):T.forEach(function(q){L.push.apply(L,t.uses_data(q))})}return y(L)},t.add_operation=function(O,L){F[O]=L},t.rm_operation=function(O){delete F[O]},t.rule_like=function(O,L){if(L===O||L==="@")return!0;if(L==="number")return typeof O=="number";if(L==="string")return typeof O=="string";if(L==="array")return Array.isArray(O)&&!t.is_logic(O);if(t.is_logic(L)){if(t.is_logic(O)){var b=t.get_operator(L),T=t.get_operator(O);if(b==="@"||b===T)return t.rule_like(t.get_values(O,!1),t.get_values(L,!1))}return!1}if(Array.isArray(L))if(Array.isArray(O)){if(L.length!==O.length)return!1;for(var q=0;q<L.length;q+=1)if(!t.rule_like(O[q],L[q]))return!1;return!0}else return!1;return!1},t}function J(y){return new Date(y)}function $(y){var K=y.split("-").map(Number),t=r()(K,2),F=t[0],O=t[1];return new Date(F,O-1)}function h(y){var K=parseInt(y.slice(0,4)),t=parseInt(y.slice(5,6)),F=(t-1)*3;return new Date(K,F)}function M(y){var K=parseInt(y);return new Date(K,0)}function p(y){var K=Array.isArray(y)?y[1]:y;return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(K)?new Date(K):/^\d{4}-\d{2}-\d{2}$/.test(K)?J(K):/^\d{4}-\d{2}$/.test(K)?$(K):/^\d{4}Q[1-4]$/.test(K)?h(K):/^\d{4}$/.test(K)?M(K):null}var P=function(K,t){var F,O=/{{(.*?)}}/,L=K==null||(F=K.match)===null||F===void 0?void 0:F.call(K,O);if(L){var b=C().get(t,L[1]);return C().isFunction(b)?b():b}else return K};function v(y){if(f()(y)!=="object"||y===null)return null;for(var K in y)if(Object.prototype.hasOwnProperty.call(y,K))return Object.prototype.toString.call(y[K])==="[object Object]"&&y[K]!==null?v(y[K]):{key:K,value:y[K]};return null}var U=function(K){var t=j(K),F=(0,n.findIndex)(t,function(L,b,T){if(L.includes("$")&&b>0)return!0}),O=t.slice(0,F);return O};function j(y){var K=[];function t(F){Object.keys(F).sort().forEach(function(O){K.push(O),F[O]&&f()(F[O])==="object"&&t(F[O])})}return t(y),K}var c=function(){var y=m()(i()().mark(function K(t){var F,O,L,b,T,q,ne;return i()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return F=t.ruleGroup,O=t.variables,L=t.localVariables,b=t.variableNameOfLeftCondition,T=Object.keys(F)[0]||"$and",q=F[T],ne=q.map(function(){var W=m()(i()().mark(function Q(fe){var X,ue,be,ge,me,Se,ie,ee,ce,ve,Z,le,xe,Me,Ae;return i()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(!("$and"in fe||"$or"in fe)){Ee.next=4;break}return Ee.next=3,c({ruleGroup:fe,variables:O,localVariables:L});case 3:return Ee.abrupt("return",Ee.sent);case 4:if(X=v(fe),ue=X==null?void 0:X.key,ue){Ee.next=8;break}return Ee.abrupt("return",!0);case 8:return be=d(U(fe),b),ge=O.parseVariable(be,L,{doNotRequest:!0}).then(function(Oe){var Pe=Oe.value;return Pe}),me=(0,o.cG)(X==null?void 0:X.value)?[O.parseVariable(X==null?void 0:X.value,L).then(function(Oe){var Pe=Oe.value;return Pe}),ge]:[X==null?void 0:X.value,ge],Ee.prev=11,Se=V(),Ee.next=15,Promise.all(me);case 15:return ie=Ee.sent,ee=r()(ie,2),ce=ee[0],ve=ee[1],Ee.next=21,O.getCollectionField(be,L);case 21:return Z=Ee.sent,le=(0,a.J)(ve,{targetCollectionField:Z}),xe=(0,a.J)(ce,{targetCollectionField:Z}),Z!=null&&Z.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(Z.type)&&le&&(Me=(0,D.CE)(xe),Ae=(0,I.getPickerFormat)(Me),le=(0,I.dayjs)(le).format(Ae)),Ee.abrupt("return",Se.apply(g()({},ue,[le,xe])));case 28:throw Ee.prev=28,Ee.t0=Ee.catch(11),Ee.t0;case 31:case"end":return Ee.stop()}},Q,null,[[11,28]])}));return function(Q){return W.apply(this,arguments)}}()),Y.next=6,Promise.all(ne);case 6:if(ne=Y.sent,T!=="$and"){Y.next=11;break}return Y.abrupt("return",(0,n.every)(ne,function(W){return W}));case 11:return Y.abrupt("return",(0,n.some)(ne,function(W){return W}));case 12:case"end":return Y.stop()}},K)}));return function(t){return y.apply(this,arguments)}}();function d(y){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(K,".").concat(y.join(".")," }}")}var l=function(K){var t={};return K.map(function(F){t[F.name]=F.ctx}),t};function S(y,K,t,F,O){return G.apply(this,arguments)}function G(){return G=m()(i()().mark(function y(K,t,F,O,L){var b,T,q,ne,oe,Y,W,Q,fe;return i()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!(t&&K==="handlebars")){ue.next=19;break}return ue.prev=1,q=I.Handlebars.compile(t),ne=l(O),oe=(F==null||(b=F.ctxRef)===null||b===void 0?void 0:b.current)||{},Y=oe.$nDate,W={},Object.keys(Y||{}).map(function(be){W[be]=Y[be]()}),Q=q(u()(u()(u()({},F==null||(T=F.ctxRef)===null||T===void 0?void 0:T.current),ne),{},{$nDate:W})),ue.next=10,L(Q);case 10:return ue.abrupt("return",ue.sent);case 13:return ue.prev=13,ue.t0=ue.catch(1),console.log(ue.t0),ue.abrupt("return",t);case 17:ue.next=32;break;case 19:return ue.prev=19,ue.next=22,(0,N.replaceVariableValue)(t,F,O);case 22:return fe=ue.sent,ue.next=25,L(fe);case 25:return ue.abrupt("return",ue.sent);case 28:return ue.prev=28,ue.t1=ue.catch(19),console.log(ue.t1),ue.abrupt("return",t);case 32:case"end":return ue.stop()}},y,null,[[1,13],[19,28]])})),G.apply(this,arguments)}},25145:function(We,se,e){"use strict";e.d(se,{u:function(){return a}});var H=e(97857),u=e.n(H),w=e(5574),i=e.n(w),x=e(80844),g=e(96486),B=e(67294),r=e(7105),z=e(75585),m=e(22891),A={type:"void","x-component":"Action.Container","x-action":"view",title:'{{ t("View record") }}',"x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},f=e(94804),I=e(57105),n=e(73691),C=e(85893),N=function(){var E=(0,x.useFieldSchema)(),V=(0,r.ngQ)(),J=V.insertAfterBegin,$=(0,B.useCallback)(function(h){var M=E.reduceProperties(function(p,P){return P["x-component"]==="Action.Container"?P:p},null);M||J((0,g.cloneDeep)(h))},[E,J]);return $},o=function(E){return E["x-component"]==="Action.Container"};function a(D){return function(E){var V=(0,B.useState)(!1),J=i()(V,2),$=J[0],h=J[1],M=(0,B.useState)(!1),p=i()(M,2),P=p[0],v=p[1],U=N(),j=(0,f.Kx)(),c=(0,r.XCj)(),d=(0,x.useField)(),l=(0,x.useFieldSchema)(),S=(l==null?void 0:l["x-component-props"])||{},G=S.enableLink,y=S.openMode,K=S.openSize,t=(0,m.ES)(),F=t.visibleWithURL,O=t.setVisibleWithURL,L=(0,m.ES)(),b=L.openPopup,T=(0,B.useRef)(!1),q=(0,B.useRef)(l);q.current=l;var ne=(0,B.useCallback)(function(){return q.current},[]),oe=(0,B.useCallback)(function(){l.properties||(U(A),T.current=!0),T.current?(setTimeout(function(){b({customActionSchema:ne()})}),T.current=!1):l.properties&&b()},[l,U,b,ne]),Y=c.setSubmitted,W=(0,B.useCallback)(function(Q){h==null||h(Q),O==null||O(Q)},[O]);return G?(0,C.jsx)(z.OA,{visible:!1,children:(0,C.jsxs)(r.EIK,{button:(0,C.jsx)(D,u()({},E)),visible:$||F,setVisible:W,formValueChanged:P,setFormValueChanged:v,openMode:y,openSize:K,containerRefKey:"field-popup",fieldSchema:l,setSubmitted:Y,children:[(0,C.jsx)(f.YQ,{name:j.name,children:(0,C.jsx)(r.G0E,{children:(0,C.jsx)(n.Rm,{children:(0,C.jsx)(I.sq,{onlyRenderProperties:!0,basePath:d==null?void 0:d.address,schema:l,filterProperties:o})})})}),(0,C.jsx)("a",{onClick:oe,children:(0,C.jsx)(D,u()({},E))})]})}):(0,C.jsx)(D,u()({},E))}}},61736:function(We,se,e){"use strict";e.d(se,{D:function(){return u}});var H=e(67294),u=(0,H.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(We,se,e){"use strict";e.d(se,{R:function(){return n}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(86201),g=e(80844),B=e(67294),r=e(47844),z=e(85893),m=["children","form"],A=["children"],f=function(N){var o=N.children,a=N.form,D=i()(N,m),E=(0,B.useContext)(g.SchemaOptionsContext),V=(0,B.useContext)(g.SchemaExpressionScopeContext),J=u()(u()({},E==null?void 0:E.scope),V),$=u()({},E==null?void 0:E.components);return(0,z.jsx)(g.FormProvider,u()(u()({},D),{},{form:a,children:(0,z.jsx)(r.G,{components:$,scope:J,children:o})}))},I=function(N){var o=N.children,a=i()(N,A),D=(0,B.useContext)(g.SchemaOptionsContext),E=(0,B.useContext)(g.SchemaExpressionScopeContext),V=u()(u()({},D==null?void 0:D.scope),E),J=u()({},D==null?void 0:D.components),$=(0,B.useMemo)(function(){return(0,x.createForm)()},[]);return(0,z.jsx)(g.FormProvider,u()(u()({},a),{},{form:$,children:(0,z.jsx)(r.G,{components:J,scope:V,children:o})}))},n=function(N){return N.form?(0,z.jsx)(f,u()({},N)):(0,z.jsx)(I,u()({},N))}},93587:function(We,se,e){"use strict";e.d(se,{m:function(){return N}});var H=e(97857),u=e.n(H),w=e(86201),i=e(57953),x=e(67294),g=e(54195),B=e(21044),r=e(84577),z=e(44245),m=e(93323),A=e(12174),f=function(a){var D=a.uid,E=a.type,V=E===void 0?"getJsonSchema":E,J=a.onSuccess,$={url:"/uiSchemas:".concat(V,"/").concat(D)},h=(0,A.QT)($,{refreshDeps:[D],onSuccess:function(v){J&&J(v)}}),M=h.data,p=h.loading;return{schema:M==null?void 0:M.data,loading:p}},I=e(85893),n=function(a){return a},C=function(a){var D=a.noForm,E=a.onlyRenderProperties,V=a.hidden,J=a.scope,$=a.uid,h=a.components,M=a.onSuccess,p=a.NotFoundPage,P=a.schemaTransform,v=P===void 0?n:P,U=a.onPageNotFind,j=E?"getProperties":"getJsonSchema",c=(0,x.useMemo)(function(){return(0,w.createForm)()},[$]),d=f({uid:$,type:j,onSuccess:function(t){M&&M(t)}}),l=d.schema,S=d.loading,G=(0,r.Co)(p),y=(0,g.Kk)();return y||S||V?(0,I.jsx)(i.Z,{style:{width:"100%",marginTop:20},delay:B.fw}):!l||Object.keys(l).length===0?(U&&U(),G?(0,I.jsx)(G,{}):null):D?(0,I.jsx)(m.n,{components:h,scope:J,schema:v(l||{})}):(0,I.jsx)(z.R,{form:c,children:(0,I.jsx)(m.n,{components:h,scope:J,schema:v(l||{})})})},N=(0,x.memo)(function(o){return o.uid?(0,I.jsx)(C,u()({},o)):null});N.displayName="RemoteSchemaComponent"},93323:function(We,se,e){"use strict";e.d(se,{A:function(){return E},n:function(){return $}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(9783),g=e.n(x),B=e(80844),r=e(96486),z=e.n(r),m=e(67294),A=e(57105),f=e(61736),I=e(47844),n=e(85893),C=["components","scope","schema","distributed","onChange"],N=["schema"],o=["memoized"];function a(h){return B.Schema.isSchemaInstance(h)?h:h!=null&&h.name?new B.Schema({type:"object",properties:g()({},h.name,h)}):new B.Schema(h)}var D=function(M){return(0,m.useMemo)(function(){return a(M)},[])},E=(0,m.createContext)({onChange:z().noop}),V=(0,m.memo)(function(h){var M=h.components,p=h.scope,P=h.schema,v=h.distributed,U=h.onChange,j=i()(h,C),c=(0,m.useContext)(f.D),d=(0,m.useMemo)(function(){return a(P)},[P]),l=(0,m.useMemo)(function(){return u()(u()({},c),{},{distributed:c.distributed==!1?!1:v,refresh:c.refresh||z().noop})},[c,v]),S=(0,m.useContext)(E),G=S.onChange,y=(0,m.useMemo)(function(){return{onChange:function(){U==null||U(d),G==null||G()}}},[U,G,d]);return(0,n.jsx)(E.Provider,{value:y,children:(0,n.jsx)(f.D.Provider,{value:l,children:(0,n.jsx)(I.G,{inherit:!0,components:M,scope:p,children:(0,n.jsx)(A.sq,u()(u()({},j),{},{schema:d,isUseFormilyField:!0}))})})})});V.displayName="RecursionSchemaComponent";var J=(0,m.memo)(function(h){var M=h.schema,p=i()(h,N),P=D(M);return(0,n.jsx)(V,u()(u()({},p),{},{schema:P}))});J.displayName="MemoizedSchemaComponent";var $=(0,m.memo)(function(h){var M=h.memoized,p=i()(h,o);return M?(0,n.jsx)(J,u()({},p)):(0,n.jsx)(V,u()({},p))});$.displayName="SchemaComponent"},47844:function(We,se,e){"use strict";e.d(se,{B:function(){return g},G:function(){return B}});var H=e(97857),u=e.n(H),w=e(80844),i=e(67294),x=e(85893),g=function(){var z=(0,i.useContext)(w.SchemaOptionsContext);return z||{}},B=(0,i.memo)(function(r){var z=r.children,m=g(),A=(0,i.useMemo)(function(){return u()(u()({},m.components),r.components)},[m.components,r.components]),f=(0,i.useMemo)(function(){return u()(u()({},m.scope),r.scope)},[m.scope,r.scope]),I=(0,i.useMemo)(function(){return{scope:f,components:A}},[f,A]);return(0,x.jsx)(w.SchemaOptionsContext.Provider,{value:I,children:(0,x.jsx)(w.SchemaComponentsContext.Provider,{value:A,children:(0,x.jsx)(w.ExpressionScope,{value:f,children:z})})})});B.displayName="SchemaComponentOptions"},70993:function(We,se,e){"use strict";e.d(se,{_b:function(){return h},RV:function(){return M.R},m1:function(){return p.m},n6:function(){return P.n},AT:function(){return P.A},G0:function(){return v.G},a$:function(){return q},Tz:function(){return b},Bs:function(){return v.B}});var H=e(15009),u=e.n(H),w=e(99289),i=e.n(w),x=e(12444),g=e.n(x),B=e(72004),r=e.n(B),z=e(31996),m=e.n(z),A=e(26037),f=e.n(A),I=e(51947),n=e(83062),C=e(15867),N=e(67294),o=e(49218),a=e(26793),D=e(7105),E=e(68230),V=e(85893),J={backgroundColor:"var(--colorSettings) !important"},$={backgroundColor:"transparent"},h=function(){var Y=(0,D.ngQ)(),W=Y.designable,Q=Y.setDesignable,fe=(0,a.$)(),X=fe.t,ue=(0,E.d)(),be=ue.token,ge=W?J:$;return(0,o.y1)("Ctrl+Shift+U",function(){return Q(!W)},[W]),(0,V.jsx)(n.Z,{title:X("UI Editor"),children:(0,V.jsx)(C.ZP,{"data-testid":"ui-editor-button",icon:(0,V.jsx)(I.Z,{style:{color:be.colorTextHeaderMenu}}),title:X("UI Editor"),style:ge,onClick:function(){Q(!W)}})})},M=e(44245),p=e(93587),P=e(93323),v=e(47844),U=e(97857),j=e.n(U),c=e(5574),d=e.n(c),l=e(86201),S=e(80844),G=e(84327),y=e(96486),K=e.n(y),t=e(61736),F=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(Y).concat((0,G.uid)())};S.Schema.silent(!0);var O={},L={silent:!0,compile:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=function(){if(L.silent)try{return new Function("$root","with($root) { return (".concat(Y,"); }"))(W)}catch{return"{{".concat(Y,"}}")}else return new Function("$root","with($root) { return (".concat(Y,"); }"))(W)};return O[Y]?O[Y]:Y.trim().startsWith("t(")?(O[Y]=Q(),O[Y]):Q()}};S.Schema.registerCompiler(L.compile);var b=function(Y){var W=Y.designable,Q=Y.onDesignableChange,fe=Y.components,X=Y.children,ue=(0,N.useContext)(t.D),be=(0,v.B)(),ge=(0,N.useState)(function(){return(0,G.uid)()}),me=d()(ge,2),Se=me[0],ie=me[1],ee=(0,N.useMemo)(function(){return Y.form||(0,l.createForm)()},[Se]),ce=(0,a.$)(),ve=ce.t,Z=(0,N.useMemo)(function(){return j()(j()({},Y.scope),{},{t:ve,randomString:F})},[Y.scope,ve,be==null?void 0:be.scope]),le=(0,N.useState)(W),xe=d()(le,2),Me=xe[0],Ae=xe[1],Re=(0,N.useMemo)(function(){return typeof W=="boolean"?W:Me},[W,Me,ue.designable]),Ee=(0,N.useMemo)(function(){return function(_e){typeof Re!="boolean"&&Ae(_e),Q==null||Q(_e)}},[Re,Q]),Oe=(0,N.useCallback)(function(){ie((0,G.uid)())},[]),Pe=(0,N.useMemo)(function(){return{scope:Z,components:fe,reset:Oe,refresh:K().noop,designable:Re,setDesignable:Ee}},[fe,Re,Oe,Z,Ee]);return(0,V.jsx)(t.D.Provider,{value:Pe,children:(0,V.jsx)(S.FormProvider,{form:ee,children:(0,V.jsx)(v.G,{inherit:!0,scope:Z,components:fe,children:X})})})};b.displayName="SchemaComponentProvider";var T=e(31601),q=function(oe){m()(W,oe);var Y=f()(W);function W(){return g()(this,W),Y.apply(this,arguments)}return r()(W,[{key:"load",value:function(){var Q=i()(u()().mark(function X(){return u()().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:this.addComponents();case 1:case"end":return be.stop()}},X,this)}));function fe(){return Q.apply(this,arguments)}return fe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:h})}}]),W}(T.S),ne=null},84577:function(We,se,e){"use strict";e.d(se,{zz:function(){return B.zz},Pl:function(){return B.Pl},oB:function(){return B.oB},lI:function(){return u},hi:function(){return V.hi},eJ:function(){return w.e},Co:function(){return g},aZ:function(){return V.aZ},ng:function(){return B.ng},et:function(){return r.e},cL:function(){return N},fd:function(){return J},Cl:function(){return A},vH:function(){return D},sR:function(){return B.sR},wN:function(){return E.w},Dm:function(){return I},fM:function(){return V.fM}});var H=e(67294),u=function(h){var M=(0,H.useRef)(null);return(0,H.useEffect)(function(){return M.current&&h!==M.current&&M.current.onUnmount(),M.current=h,h.onMount(),function(){h.onUnmount()}},[h]),h},w=e(96365),i=e(80844),x=e(96486),g=function(h,M){var p=(0,H.useContext)(i.SchemaOptionsContext),P=p.components;return h?typeof h!="string"?h:(0,x.get)(P,h)||M:M},B=e(94516),r=e(98146),z=e(97857),m=e.n(z),A=function(h){var M=(0,H.useContext)(i.SchemaOptionsContext),p=(0,H.useContext)(i.SchemaExpressionScopeContext),P=(0,H.useRef)();return P.current=p,h.toFieldProps(m()(m()({},M),{},{get scope(){return m()(m()({},M.scope),P.current)}}))},f=e(61736);function I(){return(0,H.useContext)(f.D)}var n=e(26793),C=e(6145),N=function(){var h,M=(0,C.useCollectionManager_deprecated)(),p=M.getCollectionJoinField,P=M.getCollection,v=(0,i.useFieldSchema)(),U=(0,C.useCollection_deprecated)(),j=U.getField,c=j(v.name)||p(v["x-collection-field"]),d=(0,n.$)(),l=d.t,S=((h=v["x-component-props"])===null||h===void 0?void 0:h.fieldNames)||{},G=S.label,y=(0,H.useMemo)(function(){if(!(!c||!(c!=null&&c.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(c.interface)){var K=P(c.target);if((K==null?void 0:K.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,G]);return y},o=e(35746),a=e(58837),D=function(){var h,M=(0,i.useField)(),p=(0,i.useFieldSchema)(),P=(0,a.Kx)(),v=(0,o.d9)(),U=(P==null?void 0:P.getField(p.name))||(v==null?void 0:v.getCollectionField(p["x-collection-field"])),j=(0,w.e)();(0,H.useEffect)(function(){if(!(M!=null&&M.title)){var c;M.title=j(U==null||(c=U.uiSchema)===null||c===void 0?void 0:c.title)}},[U==null||(h=U.uiSchema)===null||h===void 0?void 0:h.title])},E=e(9780),V=e(18686),J=function(h){var M,p=(0,n.$)(),P=p.t,v=(0,C.useCollectionManager_deprecated)(),U=v.getCollectionJoinField,j=v.getCollection,c=(0,i.useFieldSchema)(),d=(h==null?void 0:h.fieldSchema)||c,l=(0,i.useField)(),S=(0,i.useForm)(),G=(d==null?void 0:d["x-read-pretty"])||l.readPretty||S.readPretty,y=h==null?void 0:h.fieldSchema,K=(0,C.useCollection_deprecated)(),t=K.getField,F=(h==null?void 0:h.collectionField)||t(d.name)||U(d["x-collection-field"]),O=((M=d["x-component-props"])===null||M===void 0?void 0:M.fieldNames)||{},L=O.label,b=(0,H.useMemo)(function(){if(!(!F||!(F!=null&&F.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm","attachmentURL"].includes(F.interface)){var T=j(F.target);if((T==null?void 0:T.template)==="file")return G?[{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((T==null?void 0:T.template)==="tree"&&["m2m","o2m","m2o"].includes(F.interface))return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"},!y&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&["m2m","o2m"].includes(F.interface)&&{label:P("Sub-table"),value:"SubTable"},!y&&{label:P("Cascade Select"),value:"CascadeSelect"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];switch(F.interface){case"o2m":return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-table"),value:"SubTable"},!y&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"},!y&&{label:P("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"},!y&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-table"),value:"SubTable"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];default:return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}]}}},[P,F==null?void 0:F.interface,L]);return(b||[]).filter(Boolean)}},18686:function(We,se,e){"use strict";e.d(se,{aZ:function(){return $},fM:function(){return M},hi:function(){return h}});var H=e(5574),u=e.n(H),w=e(97857),i=e.n(w),x=e(80844),g=e(83204),B=e(9361),r=e(96486),z=e.n(r),m=e(67294),A=e(89250),f=e(7105),I=e(21143),n=e(10097),C=e(1892),N=e(28561),o=function(v,U,j,c,d){return d.includes("/popups/")?2*c.paddingContentVertical+22+c.paddingPageVertical:v?c.paddingContentHorizontalLG:j?U?c.controlPaddingHorizontal+3*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.paddingContentHorizontalLG+12:U?c.paddingSM+c.controlHeight+c.marginXS+2*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.controlHeight+c.marginXS+(c.paddingXXS+2)*2+c.paddingContentHorizontalLG},a=function(v){var U=B.Z.useToken(),j=U.token,c=(0,f.ngQ)(),d=c.designable,l=(0,n.useBlockHeightProps)(),S=l.heightProps,G=(0,A.useLocation)(),y=v||S||{},K=y.disablePageHeader,t=y.enablePageTabs,F=y.hidePageTitle,O=j.sizeXXL-2,L=d?j.controlHeight+2*j.paddingContentHorizontalLG:1*j.paddingContentHorizontalLG,b=o(K,t,F,j,G.pathname);return O+b+L},D=function(){var v=B.Z.useToken(),U=v.token,j=(0,f.ngQ)(),c=j.designable,d=U.paddingContentVerticalLG+U.margin+2*U.paddingContentVertical+24,l=c?U.controlHeight+2*U.paddingContentHorizontalLG:1*U.paddingContentHorizontalLG;return d+l},E=function(v){var U=(0,x.useFieldSchema)(),j=p(U),c=a(v),d=D();return j?d:c},V=["users_jobs","approvals","approvalRecords"],J=function(){var v,U=B.Z.useToken(),j=U.token,c=(0,n.useBlockHeightProps)(),d=c.heightProps,l=(0,C.Si)(),S=l.heightProps,G=(0,f.ngQ)(),y=G.designable,K=(0,x.useFieldSchema)(),t=S||d,F=d.titleHeight,O=E(t),L=(0,I.useCollection)(),b=L.name,T=t.heightMode,q=t.height,ne=t.title;if(!(!(t!=null&&t.heightMode)||T===N.j.DEFAULT)){var oe=Object.keys(((v=K.parent.properties.actions)===null||v===void 0?void 0:v.properties)||{}).length>0,Y=j.controlHeight+j.padding+j.marginLG,W=oe||y?j.controlHeight+2*j.marginLG:j.marginLG,Q=(y&&!V.includes(b)?j.controlHeight:22)+2*j.padding+1,fe=ne?F:0;return T===N.j.FULL_HEIGHT?window.innerHeight-O-fe-Q-W-Y:q-fe-W-Q-Y}},$=function(v){var U=(0,n.useBlockHeightProps)(),j=U.heightProps,c=E(),d=j||{},l=d.heightMode,S=d.height,G=d.title,y=d.titleHeight,K=G?y:0;if(!(!(j!=null&&j.heightMode)||l===N.j.DEFAULT)){if(l===N.j.FULL_HEIGHT){var t=window.innerHeight-c;return console.log(t),v!=null&&v.removeBlockHeaderHeight&&(t=t-K),v!=null&&v.innerExtraHeight&&(t=t-v.innerExtraHeight),t}return S}},h=function(){var v=(0,x.useFieldSchema)(),U=(0,m.useMemo)(function(){return(0,n.getPageSchema)(v)},[]),j=(U==null?void 0:U["x-component-props"])||{},c=j.disablePageHeader,d=j.enablePageTabs,l=j.hidePageTitle,S=i()(i()({},v==null?void 0:v["x-component-props"]),{},{disablePageHeader:c,enablePageTabs:d,hidePageTitle:l}),G=E(S),y=S||{},K=y.heightMode,t=y.height;if(!(!(S!=null&&S.heightMode)||K===N.j.DEFAULT))return K===N.j.FULL_HEIGHT?window.innerHeight-G:t},M=function(){var v=(0,m.useState)(),U=u()(v,2),j=U[0],c=U[1],d=(0,m.useRef)(null),l=J(),S=(0,m.useCallback)((0,r.debounce)(function(){var y;if(d.current){var K=d.current.getBoundingClientRect(),t=(y=d.current.querySelector(".ant-table"))===null||y===void 0?void 0:y.getBoundingClientRect();t&&c(K.width)}},100),[l]),G=(0,m.useCallback)(function(y){d.current=y&&y.children?y.children[0]:null,S()},[S]);return(0,g.Z)("resize",S),{height:l,width:j,tableSizeRefCallback:G}},p=function P(v){if(!v)return null;if(v["x-component"]==="Action.Container"){var U;return(v==null||(U=v.parent["x-component-props"])===null||U===void 0?void 0:U.openMode)!=="page"}return P(v.parent)}},96365:function(We,se,e){"use strict";e.d(se,{e:function(){return z}});var H=e(97857),u=e.n(H),w=e(52677),i=e.n(w),x=e(80844),g=e(67294),B={},r=function(A){var f=/{{.*?}}/g;return f.test(A)},z=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},f=A.noCache,I=(0,g.useContext)(x.SchemaOptionsContext),n=(0,g.useContext)(x.SchemaExpressionScopeContext);return function(C,N){var o=!1,a;if(typeof C=="string"&&C.startsWith("{{")&&(o=!0,a=C),C&&i()(C)==="object"&&!(0,g.isValidElement)(C)){try{a=JSON.stringify(C)}catch(E){return console.warn("Failed to stringify:",E),C}if(B[a])return B[a];o=r(a)}if(Array.isArray(C)){try{a=JSON.stringify(C)}catch(E){return console.warn("Failed to stringify:",E),C}if(B[a])return B[a];o=r(a)}if(o){var D=u()(u()(u()({},I.scope),n),N);if(!a)return x.Schema.compile(C,D);try{return f?x.Schema.compile(C,D):(B[a]=B[a]||x.Schema.compile(C,D),B[a])}catch(E){return console.log("useCompile error",C,E),x.Schema.compile(C,D)}}return C}}},94516:function(We,se,e){"use strict";e.d(se,{zz:function(){return b},Pl:function(){return y},oB:function(){return O},ng:function(){return q},sR:function(){return T}});var H=e(5574),u=e.n(H),w=e(19632),i=e.n(w),x=e(15009),g=e.n(x),B=e(99289),r=e.n(B),z=e(12444),m=e.n(z),A=e(72004),f=e.n(A),I=e(9783),n=e.n(I),C=e(97857),N=e.n(C),o=e(80844),a=e(84327),D=e(90105),E=e(45360),V=e(50361),J=e.n(V),$=e(27361),h=e.n($),M=e(36968),p=e.n(M),P=e(67294),v=e(26793),U=e(12174),j=e(57105),c=e(98902),d=e(61736);function l(ne,oe){if(ne)return ne["x-app-version"]||(ne["x-app-version"]=oe),Object.keys(ne.properties||{}).forEach(function(Y){var W;l((W=ne.properties)===null||W===void 0?void 0:W[Y],oe)}),ne}var S=JSON.parse('{"i8":"1.6.0-alpha.24"}'),G=e(85893);function y(ne){return new b(ne)}var K=function ne(oe){oe&&(oe["x-uid"]||(oe["x-uid"]=(0,a.uid)()),Object.keys(oe.properties||{}).forEach(function(Y){ne(oe.properties[Y])}))},t=function(oe){return oe},F=function(oe,Y){if(!(!oe||!Y)){for(var W in Y)if(Object.prototype.hasOwnProperty.call(Y,W)){var Q=Y[W];if(Q!==(oe==null?void 0:oe[W]))return!1}return!0}},O=function(oe,Y){if(oe["x-uid"]&&oe["x-uid"]===Y["x-uid"])return[null,oe.toJSON()];var W=oe.toJSON(),Q=N()(N()({},W),{},{properties:{}}),fe=null,X=function ue(be,ge){Object.keys(be||{}).forEach(function(me){var Se=be[me];if(Se["x-uid"]===Y["x-uid"]){fe=be[me];return}else ge.properties[me]=N()(N()({},Se),{},{properties:{}}),ue(Se==null?void 0:Se.properties,ge.properties[me])})};return X(W.properties,Q),[Q,fe]},L=function(oe){return oe},b=function(){function ne(oe){m()(this,ne),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=oe,this.current=oe.current,this.appVersion=oe.appVersion}return f()(ne,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var Y=this,W=this.options,Q=W.api,fe=W.t,X=fe===void 0?L:fe;if(Q){var ue=function(ge){if(!ge)return[];var me=Object.values(ge.properties).length,Se=[];return ge.mapProperties(function(ie){ie["x-component-props"]=ie["x-component-props"]||{},ie["x-component-props"].width=100/me,ie["x-uid"]&&Se.push({"x-uid":ie["x-uid"],"x-component-props":ie["x-component-props"]})}),ge["x-uid"]&&Se.length?Se:[]};this.on("insertAdjacent",function(){var be=r()(g()().mark(function ge(me){var Se,ie,ee,ce,ve,Z,le,xe,Me,Ae;return g()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(ie=me.onSuccess,ee=me.current,ce=me.position,ve=me.schema,Z=me.wrap,le=me.wrapped,xe=me.removed,Me=[],(le==null?void 0:le["x-component"])==="Grid.Col"&&(Me=Me.concat(ue(le.parent))),(xe==null?void 0:xe["x-component"])==="Grid.Col"&&(Me=Me.concat(ue(xe.parent))),Y.refresh(),ee["x-uid"]){Ee.next=7;break}return Ee.abrupt("return");case 7:return Ee.next=9,Q.request({url:"/uiSchemas:insertAdjacent/".concat(ee["x-uid"],"?position=").concat(ce),method:"post",data:{schema:l(ve,Y.appVersion),wrap:Z}});case 9:if(Ae=Ee.sent,!Me.length){Ee.next=13;break}return Ee.next=13,Q.request({url:"/uiSchemas:batchPatch",method:"post",data:Me});case 13:if(!(xe!=null&&xe["x-uid"])){Ee.next=16;break}return Ee.next=16,Q.request({url:"/uiSchemas:remove/".concat(xe["x-uid"]),method:"post"});case 16:ie==null||ie(Ae==null||(Se=Ae.data)===null||Se===void 0?void 0:Se.data),E.ZP.success(X("Saved successfully"),.2);case 18:case"end":return Ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("patch",function(){var be=r()(g()().mark(function ge(me){var Se;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(Se=me.schema,Y.refresh(),Se!=null&&Se["x-uid"]){ee.next=4;break}return ee.abrupt("return");case 4:return ee.next=6,Q.request({url:"/uiSchemas:patch",method:"post",data:N()({},Se)});case 6:E.ZP.success(X("Saved successfully"),.2);case 7:case"end":return ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var be=r()(g()().mark(function ge(me){var Se;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(Se=me.schema,Se!=null&&Se["x-uid"]){ee.next=3;break}return ee.abrupt("return");case 3:return ee.next=5,Q.request({url:"/uiSchemas:initializeActionContext",method:"post",data:N()({},Se)});case 5:case"end":return ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("batchPatch",function(){var be=r()(g()().mark(function ge(me){var Se;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return Se=me.schemas,Y.refresh(),ee.next=4,Q.request({url:"/uiSchemas:batchPatch",method:"post",data:Se});case 4:E.ZP.success(X("Saved successfully"),.2);case 5:case"end":return ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("remove",function(){var be=r()(g()().mark(function ge(me){var Se,ie;return g()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(Se=me.removed,ie=[],(Se==null?void 0:Se["x-component"])==="Grid.Col"&&(ie=ue(Se.parent)),Y.refresh(),Se!=null&&Se["x-uid"]){ce.next=6;break}return ce.abrupt("return");case 6:return ce.next=8,Q.request({url:"/uiSchemas:remove/".concat(Se["x-uid"]),method:"post"});case 8:if(!ie.length){ce.next=11;break}return ce.next=11,Q.request({url:"/uiSchemas:batchPatch",method:"post",data:ie});case 11:E.ZP.success(X("Saved successfully"),.2);case 12:case"end":return ce.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(Y){Y.type||(Y.type="void"),Y.name||(Y.name=(0,a.uid)()),this.current["x-uid"]&&K(Y)}},{key:"on",value:function(Y,W){this.events[Y]||(this.events[Y]=[]),this.events[Y].push(W)}},{key:"emit",value:function(){var oe=r()(g()().mark(function W(Q){var fe=this,X,ue,be,ge,me,Se=arguments;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(this.events[Q]){ee.next=2;break}return ee.abrupt("return");case 2:for(X=Se.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=Se[be];return ge=ue[0],me=ue.slice(1),ee.abrupt("return",Promise.all(this.events[Q].map(function(ce){return ce.bind(fe).apply(void 0,[N()({current:fe.current},ge)].concat(i()(me)))})));case 5:case"end":return ee.stop()}},W,this)}));function Y(W){return oe.apply(this,arguments)}return Y}()},{key:"parentsIn",value:function(Y){if(!Y||!o.Schema.isSchemaInstance(Y))return!1;for(var W=this.current;(Q=W)!==null&&Q!==void 0&&Q.parent;){var Q;if(W.parent===Y)return!0;W=W.parent}return!1}},{key:"refresh",value:function(Y){var W=this.options.refresh;return W==null?void 0:W(Y)}},{key:"deepMerge",value:function(Y){var W=this,Q={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},fe={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(X){Q[X]?(W.current[X]=Y[X],W.updateModel(Q[X],Y[X])):fe[X]?Object.keys(Y[X]).forEach(function(ue){p()(W.current,[X,ue],Y[X][ue]),W.updateModel([fe[X],ue],Y[X][ue])}):W.current[X]=Y[X]}),this.emit("patch",{schema:Y})}},{key:"getSchemaAttribute",value:function(Y,W){return h()(this.current,Y,W)}},{key:"shallowMerge",value:function(Y){var W=this,Q={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(fe){W.current[fe]=Y[fe],Q[fe]&&W.updateModel(Q[fe],Y[fe])}),this.emit("patch",{schema:Y})}},{key:"updateModel",value:function(Y,W){var Q=function(X){p()(X,Y,W)};this.model&&Q(this.model),this.query&&this.query.take(Q)}},{key:"insertAdjacent",value:function(Y,W){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(Y){case"beforeBegin":return this.insertBeforeBegin(W,Q);case"afterBegin":return this.insertAfterBegin(W,Q);case"beforeEnd":return this.insertBeforeEnd(W,Q);case"afterEnd":return this.insertAfterEnd(W,Q)}}},{key:"recursiveRemoveIfNoChildren",value:function(Y,W){if(Y){for(var Q=Y,fe,X=W==null?void 0:W.breakRemoveOn;Q;){if(typeof X=="function"){if(X(Q))break}else if(F(Q,X))break;var ue=Object.keys(Q.properties||{}).length;if(ue>0)break;Q.parent&&(fe=Q.parent.removeProperty(Q.name)),Q=Q.parent}return fe}}},{key:"remove",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,X=Y||this.current,ue=X.parent.removeProperty(X.name);if(fe){var be=this.recursiveRemoveIfNoChildren(X.parent,{breakRemoveOn:Q});be&&(ue=be)}return this.emit("remove",{removed:ue})}},{key:"removeWithoutEmit",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,X=Y||this.current,ue=X.parent.removeProperty(X.name);if(fe){var be=this.recursiveRemoveIfNoChildren(X.parent,{breakRemoveOn:Q});be&&(ue=be)}return ue}},{key:"insertBeforeBeginOrAfterEnd",value:function(Y){var W=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)&&o.Schema.isSchemaInstance(Y)&&this.current.parent===Y.parent){var fe=0,X=0;return this.current.parent.mapProperties(function(ue,be,ge){W.current.name===be&&(X=ge),Y.name===be&&(fe=ge)}),fe>X?this.insertBeforeBegin(Y,Q):this.insertAfterEnd(Y,Q)}}},{key:"insertBeforeBegin",value:function(Y){var W=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var fe={onSuccess:Q.onSuccess},X=Q.wrap,ue=X===void 0?t:X,be=Q.breakRemoveOn,ge=Q.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ge&&(fe.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:be}))}else Y&&(Y=J()(Y));var me={},Se=!1,ie=0,ee=0;this.current.parent.mapProperties(function(Ae,Re){Re===W.current.name&&(ee=ie,Se=!0,++ie),Ae["x-index"]=ie,++ie,Se&&(me[Re]=Ae,W.current.parent.removeProperty(Re))}),this.prepareProperty(Y);var ce=ue(Y),ve=this.current.parent.addProperty(ce.name||(0,a.uid)(),ce);ve["x-index"]=ee,ve.parent=this.current.parent,this.current.parent.setProperties(me);var Z=O(ve,Y),le=u()(Z,2),xe=le[0],Me=le[1];this.emit("insertAdjacent",N()({position:"beforeBegin",schema:Me,wrapped:ce,wrap:xe},fe))}}},{key:"insertAfterBegin",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var Q={onSuccess:W.onSuccess},fe=W.wrap,X=fe===void 0?t:fe,ue=W.breakRemoveOn,be=W.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),be&&(Q.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ue}))}else Y&&(Y=J()(Y));var ge={},me=1;this.current.mapProperties(function(le,xe){le["x-index"]=me,++me,ge[xe]=le}),this.current.properties={},this.prepareProperty(Y);var Se=X(Y),ie=this.current.addProperty(Se.name||(0,a.uid)(),Se);ie["x-index"]=0,ie.parent=this.current,this.current.setProperties(ge);var ee=O(ie,Y),ce=u()(ee,2),ve=ce[0],Z=ce[1];this.emit("insertAdjacent",N()({position:"afterBegin",schema:Z,wrap:ve,wrapped:Se},Q))}}},{key:"insertBeforeEnd",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){delete Y["x-index"];var Q={onSuccess:W.onSuccess},fe=W.wrap,X=fe===void 0?t:fe,ue=W.breakRemoveOn,be=W.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),be&&(Q.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ue}))}else Y&&(Y=J()(Y));this.prepareProperty(Y);var ge=X(Y),me=this.current.addProperty(ge.name||(0,a.uid)(),ge);me.parent=this.current;var Se=O(me,Y),ie=u()(Se,2),ee=ie[0],ce=ie[1];return this.emit("insertAdjacent",N()({position:"beforeEnd",schema:ce,wrap:ee,wrapped:ge},Q))}}},{key:"insertAfterEnd",value:function(Y){var W=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var fe={onSuccess:Q==null?void 0:Q.onSuccess},X=Q.wrap,ue=X===void 0?t:X,be=Q.breakRemoveOn,ge=Q.removeParentsIfNoChildren,me=0,Se=0,ie=!1,ee={};if(this.current.parent.mapProperties(function(Ae,Re){Ae["x-index"]=me,Re===W.current.name&&(++me,Se=me,ie=!0),++me,ie&&Re!==W.current.name&&(ee[Re]=Ae,W.current.parent.removeProperty(Re))}),o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ge&&(fe.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:be})),Y.parent=null}else Y&&(Y=J()(Y));this.prepareProperty(Y);var ce=ue(Y),ve=this.current.parent.addProperty(ce.name||(0,a.uid)(),ce);ve.parent=this.current.parent,ve["x-index"]=Se,this.current.parent.setProperties(ee);var Z=O(ve,Y),le=u()(Z,2),xe=le[0],Me=le[1];this.emit("insertAdjacent",N()({position:"afterEnd",schema:Me,wrap:xe,wrapped:ce},fe))}}}]),ne}();function T(){var ne=(0,P.useContext)(o.SchemaOptionsContext),oe=(0,P.useMemo)(function(){return(ne==null?void 0:ne.components)||{}},[ne]),Y=function(Q){if(!Q)return null;if(typeof Q!="string")return Q;var fe=h()(oe,Q);return fe||console.error('[nocobase]: Component "'.concat(Q,'" not found')),fe};return Y}function q(){var ne=(0,P.useContext)(d.D),oe=ne.designable,Y=ne.setDesignable,W=ne.refresh,Q=ne.reset,fe=(0,P.useContext)(o.SchemaOptionsContext),X=(0,P.useMemo)(function(){return(fe==null?void 0:fe.components)||{}},[fe]),ue=(0,P.useMemo)(function(){return function(){return(0,G.jsx)(G.Fragment,{})}},[]),be=(0,D.Z)(),ge=(0,j.gR)(),me=(0,j.QJ)(),Se=(0,P.useCallback)(function(xe){W==null||W(),be(),ge==null||ge(xe),me==null||me()},[W,be,ge,me]),ie=(0,o.useField)(),ee=(0,o.useFieldSchema)(),ce=(0,U.LY)(),ve=(0,v.$)(),Z=ve.t,le=(0,P.useMemo)(function(){return y({t:Z,api:ce,refresh:Se,current:ee,model:ie,appVersion:S.i8})},[Z,ce,Se,ee,ie]);return(0,P.useEffect)(function(){le.loadAPIClientEvents()},[le]),{dn:le,designable:oe,reset:Q,refresh:Se,setDesignable:Y,DesignableBar:ue,findComponent:(0,P.useCallback)(function(xe){var Me;if(!xe)return null;if(typeof xe!="string")return xe;var Ae=h()(X,xe);return(Me=Ae[c.XI])!==null&&Me!==void 0?Me:Ae},[h()]),on:le.on.bind(le),patch:(0,P.useCallback)(function(xe,Me){var Ae=function(Oe){Object.keys(Oe).forEach(function(Pe){var _e=Oe[Pe];Pe==="title"&&(ie.title=_e,ee.title=_e),Pe==="x-decorator-props"&&(ie.decoratorProps||(ie.decoratorProps={}),ee["x-decorator-props"]||(ee["x-decorator-props"]={}),Object.keys(_e).forEach(function(re){ie.decoratorProps[re]=_e[re],ee["x-decorator-props"][re]=_e[re]})),Pe==="x-component-props"&&(ie.componentProps||(ie.componentProps={}),ee["x-component-props"]||(ee["x-component-props"]={}),Object.keys(_e).forEach(function(re){ie.componentProps[re]=_e[re],ee["x-component-props"][re]=_e[re]}))})};if(typeof xe=="string"){var Re={};return p()(Re,xe,Me),Ae(Re)}Ae(xe),Se()},[le]),shallowMerge:(0,P.useCallback)(function(xe){le.shallowMerge(xe)},[le]),deepMerge:(0,P.useCallback)(function(xe){le.deepMerge(xe)},[le]),remove:(0,P.useCallback)(function(xe,Me){le.remove(xe,Me)},[le]),insertAdjacent:(0,P.useCallback)(function(xe,Me,Ae){le.insertAdjacent(xe,Me,Ae)},[le]),insertBeforeBegin:(0,P.useCallback)(function(xe){le.insertBeforeBegin(xe)},[le]),insertAfterBegin:(0,P.useCallback)(function(xe){le.insertAfterBegin(xe)},[le]),insertBeforeEnd:(0,P.useCallback)(function(xe){le.insertBeforeEnd(xe)},[le]),insertAfterEnd:(0,P.useCallback)(function(xe){le.insertAfterEnd(xe)},[le])}}},98146:function(We,se,e){"use strict";e.d(se,{e:function(){return g}});var H=e(80844),u=e(84577),w=e(67294),i=e(36802),x=function(){return null};x.isNullComponent=!0;var g=function(){var r=(0,u.ng)(),z=r.designable,m=(0,H.useFieldSchema)(),A=(0,w.useMemo)(function(){return m["x-designer"]||m["x-toolbar"]?m["x-designer"]||m["x-toolbar"]:m["x-settings"]?i.Mf:x},[m]),f=(0,u.Co)(A);return z&&f||x}},9780:function(We,se,e){"use strict";e.d(se,{w:function(){return B}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=["useProps"],g=function(){return{}},B=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=z.useProps,A=m===void 0?g:m,f=i()(z,x),I=A;typeof A!="function"&&(I=g);var n=I();return u()(u()({},f),n)}},7105:function(We,se,e){"use strict";e.d(se,{aUM:function(){return w.aU},olz:function(){return w.ol},N0i:function(){return w.N0},fWn:function(){return w.fW},mlL:function(){return w.ml},EIK:function(){return w.EI},$Lt:function(){return w.$L},$b8:function(){return w.$b},HTy:function(){return ei},lkv:function(){return qa},rDu:function(){return Cn},eYL:function(){return w.eY},Rat:function(){return aa},oAt:function(){return Ul},E7E:function(){return Wl},$SD:function(){return Ii},fUi:function(){return To.fU},QcG:function(){return bs},MLy:function(){return Wo.M},gOu:function(){return Js},jYG:function(){return da.jY},PuU:function(){return da.Pu},smG:function(){return da.sm},C1I:function(){return w.C1},Ssf:function(){return Ss},vTp:function(){return Ds},XZJ:function(){return ga},Tt2:function(){return Os},zH8:function(){return Bs},Q5L:function(){return Ks},Pok:function(){return Oi},Vm0:function(){return Vs},xI_:function(){return Fs},Lip:function(){return Ts},WN4:function(){return Fi.W},Mtg:function(){return _a.Mt},iNu:function(){return _a.iN},zzt:function(){return ot.zz},_bl:function(){return V._b},POi:function(){return zs},AOY:function(){return ge},izJ:function(){return ks},LBT:function(){return E.DndContext},IWB:function(){return E.DragHandler},LCt:function(){return E.DraggableContext},FyH:function(){return X.Fy},Nir:function(){return X.Ni},q8U:function(){return X.q8},HGA:function(){return X.HG},QTe:function(){return X.QT},JEX:function(){return X.JE},fAH:function(){return El},$w$:function(){return X.$w},nBj:function(){return X.nB},Oct:function(){return X.Oc},zdw:function(){return X.zd},CXR:function(){return Sl},BQs:function(){return jo.BQ},Hj5:function(){return nr.H},M0b:function(){return Ti},Dnz:function(){return Fi.D},wn$:function(){return Qn.wn},GzZ:function(){return Qn.Gz},tJZ:function(){return Qn.tJ},fox:function(){return Qn.fo},VTd:function(){return Qn.VT},XsZ:function(){return Qn.Xs},l09:function(){return W},D_t:function(){return pl.D},WiK:function(){return Ho},xJW:function(){return X.xJ},RVL:function(){return V.RV},Bc8:function(){return Un},hG9:function(){return ji},DCh:function(){return Ri},rjZ:function(){return Ca.rj},Cqo:function(){return si},jg7:function(){return Ca.jg},gsn:function(){return jo.gs},$18:function(){return au},IIB:function(){return jo.II},RnZ:function(){return _l},mX2:function(){return jo.mX},zDC:function(){return ir.zD},Phs:function(){return jo.Ph},aVo:function(){return ui},UGj:function(){return Ui.U},yq5:function(){return Ui.y},v2r:function(){return kr},HIW:function(){return fu},T3C:function(){return ja},d97:function(){return ca.d9},hGv:function(){return hi},tlE:function(){return hu},rop:function(){return bl},gGi:function(){return _u},DBW:function(){return pa.D},MBS:function(){return Cu.M},pGO:function(){return bu},Y8K:function(){return Ni},iVT:function(){return jo.iV},ODP:function(){return ir.OD},lbb:function(){return ir.lb},b7w:function(){return ir.b7},sUk:function(){return ir.sU},x1j:function(){return w.x1},m1v:function(){return V.m1},glM:function(){return lt},xZD:function(){return w.xZ},IuH:function(){return Qn.Iu},MkN:function(){return w.Mk},Hof:function(){return Pu},n6:function(){return V.n6},DDd:function(){return Gu.D},ATq:function(){return V.AT},G0E:function(){return V.G0},a$w:function(){return V.a$},TzZ:function(){return V.Tz},y00:function(){return w.y0},PhF:function(){return qt},Cqv:function(){return E.ShowFormData},cof:function(){return w.co},bts:function(){return E.Sortable},Fop:function(){return E.SortableContext},TRI:function(){return E.SortableItem},ORg:function(){return E.SortableProvider},TaI:function(){return Su},qHe:function(){return ri.q},iA_:function(){return Hr},gvM:function(){return Bu},SnY:function(){return Dl},ASv:function(){return Uu},bwk:function(){return ma},mQc:function(){return wa},c__:function(){return za.c},QZ3:function(){return Ie},L39:function(){return da.L3},feF:function(){return wu},jII:function(){return zi},mPs:function(){return zu},tgM:function(){return ku},gqx:function(){return To.gq},Qm7:function(){return To.Qm},_wD:function(){return xa._w},rjl:function(){return xa.rj},Fjw:function(){return w.Fj},SLL:function(){return w.SL},sBv:function(){return w.sB},iTm:function(){return X.iT},BDK:function(){return To.BD},Pls:function(){return ot.Pl},Oxq:function(){return ct},WLi:function(){return at},$9M:function(){return X.$9},nCn:function(){return Mt},iNG:function(){return Tn},tD8:function(){return bn},pg9:function(){return Do},Ofb:function(){return X.Of},ibf:function(){return fo},WyG:function(){return fe},l6$:function(){return u.l6},WGR:function(){return It},C$H:function(){return ir.C$},SET:function(){return Vr.SE},cNQ:function(){return ir.cN},NCb:function(){return wr.NC},I9l:function(){return E.getRenderContent},XQ2:function(){return wr.XQ},Fxc:function(){return Ea},MDU:function(){return Vr.MD},CEH:function(){return Vr.CE},vUN:function(){return w.vU},ZZb:function(){return X.ZZ},tqC:function(){return Vr.tq},elO:function(){return ir.el},CfU:function(){return Ba},LPx:function(){return Vr.LP},fY6:function(){return Vr.fY},Vm:function(){return Vi},w_o:function(){return Vr.w_},SJF:function(){return Ya},_Ko:function(){return Qa},Mev:function(){return La},i2K:function(){return yo},WmO:function(){return Qn.Wm},oBi:function(){return ot.oB},hKP:function(){return wr.hK},DU1:function(){return w.DU},XCj:function(){return w.XC},KyD:function(){return Zn.Ky},Vpg:function(){return Mi},lIL:function(){return ot.lI},KxP:function(){return Wo.K},hi9:function(){return ot.hi},p27:function(){return w.p2},z9d:function(){return yl.z9},eJW:function(){return ot.eJ},Cor:function(){return ot.Co},Zmk:function(){return ca.Zm},aZq:function(){return ot.aZ},P1D:function(){return _a.P1},ngQ:function(){return ot.ng},ett:function(){return ot.et},ySm:function(){return nr.y},Zd$:function(){return X.Zd},cLh:function(){return ot.cL},baz:function(){return X.b},fde:function(){return ot.fd},Xdt:function(){return ir.Xd},Cld:function(){return ot.Cl},vH8:function(){return ot.vH},PLH:function(){return Qn.PL},V8t:function(){return Qn.V8},tMk:function(){return Qn.tM},xQm:function(){return Qn.xQ},sRe:function(){return ot.sR},U1u:function(){return Fe},HS$:function(){return w.HS},vBu:function(){return w.vB},QYZ:function(){return w.QY},t9d:function(){return w.t9},Kgy:function(){return Qn.Kg},aJ2:function(){return Qn.aJ},n14:function(){return Ca.n1},DiB:function(){return Ca.Di},l1O:function(){return X.l1},w5o:function(){return X.w5},p3Q:function(){return X.p3},G5e:function(){return X.G5},xj2:function(){return X.xj},rxY:function(){return X.rx},Ils:function(){return ir.Il},zCB:function(){return w.zC},CMh:function(){return na},FMn:function(){return jr},T0O:function(){return ia},a4r:function(){return pa.a},wNf:function(){return ot.wN},Dmu:function(){return ot.Dm},Bsl:function(){return V.Bs},yKv:function(){return Dt.y},fMB:function(){return ot.fM},gCg:function(){return za.g},eT6:function(){return X.eT},$SN:function(){return To.$S},q4O:function(){return X.q4},ymE:function(){return xa.ym},uqQ:function(){return w.uq},Q3P:function(){return wr.Q3},K5K:function(){return w.K5}});var H={};e.r(H),e.d(H,{Action:function(){return w.aU},ActionBar:function(){return w.ol},ActionBarProvider:function(){return w.N0},ActionContext:function(){return w.fW},ActionContextNoRerender:function(){return w.ml},ActionContextProvider:function(){return w.EI},ActionDesigner:function(){return w.$L},AfterSuccess:function(){return w.$b},AntdSchemaComponentPlugin:function(){return ei},AntdSchemaComponentProvider:function(){return qa},AppendsTreeSelect:function(){return Cn},AssignedFieldValues:function(){return w.eY},AssociationField:function(){return aa},AssociationFieldMode:function(){return Ul},AssociationFieldModeProvider:function(){return Wl},AssociationSelect:function(){return Ii},AttachmentList:function(){return To.fU},AutoComplete:function(){return bs},BackButtonUsedInSubPage:function(){return Wo.M},Block:function(){return Js},BlockItem:function(){return da.jY},BlockItemCard:function(){return da.Pu},BlockItemCardContext:function(){return da.sm},ButtonEditor:function(){return w.C1},CardItem:function(){return Ss},Cascader:function(){return Ds},Checkbox:function(){return ga},CollectionSelect:function(){return Os},ColorPicker:function(){return Bs},ColorSelect:function(){return Ks},Cron:function(){return Oi},CronSet:function(){return Vs},DataSourceCollectionCascader:function(){return Fs},DataSourceSelect:function(){return Ts},DateFormatCom:function(){return Fi.W},DatePicker:function(){return _a.Mt},DatePickerProvider:function(){return _a.iN},Details:function(){return zs},DetailsDesigner:function(){return ge},Divider:function(){return ks},EditComponent:function(){return X.Fy},EditDefaultValue:function(){return X.Ni},EditDescription:function(){return X.q8},EditOperator:function(){return X.HG},EditPattern:function(){return X.QT},EditRequired:function(){return X.JE},EditSortField:function(){return El},EditTitle:function(){return X.$w},EditTitleField:function(){return X.nB},EditTooltip:function(){return X.Oc},EditValidationRules:function(){return X.zd},Editable:function(){return Sl},EllipsisWithTooltip:function(){return jo.BQ},ErrorFallback:function(){return nr.H},Expand:function(){return Ti},ExpiresRadio:function(){return Fi.D},Filter:function(){return Qn.wn},FilterAction:function(){return Qn.Gz},FilterActionContext:function(){return Qn.tJ},FilterContext:function(){return Qn.fo},FilterDynamicComponent:function(){return Qn.VT},FilterLogicContext:function(){return Qn.Xs},Form:function(){return W},FormDialog:function(){return pl.D},FormField:function(){return Ho},FormItem:function(){return X.xJ},FormV2:function(){return Un},G2Plot:function(){return ji},G2PlotRenderer:function(){return Ri},Grid:function(){return Ca.rj},GridCard:function(){return si},GridRowContext:function(){return Ca.jg},HTMLEncode:function(){return jo.gs},IconPicker:function(){return au},Input:function(){return jo.II},InputNumber:function(){return _l},InputReadPretty:function(){return jo.mX},InputRecordPicker:function(){return ir.zD},Json:function(){return jo.Ph},List:function(){return ui},Markdown:function(){return Ui.U},MarkdownReadPretty:function(){return Ui.y},Menu:function(){return kr},NanoIDInput:function(){return fu},Page:function(){return ja},PagePopups:function(){return ca.d9},PageTabs:function(){return hi},Pagination:function(){return hu},Password:function(){return bl},Percent:function(){return _u},PopupSettingsProvider:function(){return pa.D},Preview:function(){return Cu.M},QuickEdit:function(){return bu},Radio:function(){return Ni},ReadPretty:function(){return jo.iV},ReadPrettyRecordPicker:function(){return ir.OD},RecordPicker:function(){return ir.lb},RecordPickerContext:function(){return ir.b7},RecordPickerProvider:function(){return ir.sU},RefreshDataBlockRequest:function(){return w.x1},RemoteSelect:function(){return lt},RemoveButton:function(){return w.xZ},RemoveConditionContext:function(){return Qn.Iu},RequestSettings:function(){return w.Mk},RichText:function(){return Pu},SecondConFirm:function(){return w.y0},Select:function(){return qt},SkipValidation:function(){return w.co},Space:function(){return Su},StablePopover:function(){return ri.q},Table:function(){return Hr},TableBlockDesigner:function(){return Bu},TableField:function(){return Dl},TableSelectorDesigner:function(){return Uu},TableV2:function(){return ma},Tabs:function(){return wa},TabsContextProvider:function(){return za.c},Templates:function(){return Ie},TestDesigner:function(){return da.L3},TextAreaWithGlobalScope:function(){return wu},TimePicker:function(){return zi},TreeSelect:function(){return zu},UnixTimestamp:function(){return ku},Upload:function(){return To.gq},Uploader:function(){return To.Qm},Variable:function(){return xa._w},VariableScopeProvider:function(){return xa.rj},WorkflowConfig:function(){return w.Fj},actionSettings:function(){return w.SL},actionSettingsItems:function(){return w.sB},allowAddNew:function(){return X.iT},attachmentFileTypes:function(){return To.BD},defaultFieldNames:function(){return ct},fetchTemplateData:function(){return at},filterFormItemSettings:function(){return X.$9},findByUid:function(){return Mt},findKeysByUid:function(){return Tn},findMenuItem:function(){return bn},formDetailsSettings:function(){return Do},formItemSettings:function(){return X.Of},formSettings:function(){return fo},formV1Settings:function(){return fe},genStyleHook:function(){return u.l6},getCurrentOptions:function(){return It},getDatePickerLabels:function(){return ir.C$},getDateRanges:function(){return Vr.SE},getLabelFormatValue:function(){return ir.cN},getPopupPathFromParams:function(){return wr.NC},getStoredPopupContext:function(){return wr.XQ},getTabSchema:function(){return Ea},handleDateChangeOnForm:function(){return Vr.MD},inferPickerType:function(){return Vr.CE},isBulkEditAction:function(){return w.vU},isFileCollection:function(){return X.ZZ},isMobile:function(){return Vr.tq},isShowFilePicker:function(){return ir.el},isTabPage:function(){return Ba},mapDatePicker:function(){return Vr.LP},mapRangePicker:function(){return Vr.fY},mapTimeFormat:function(){return Vi},moment2str:function(){return Vr.w_},navigateToTab:function(){return Ya},pageSettings:function(){return Qa},pageTabSettings:function(){return La},readPrettyFormSettings:function(){return yo},removeNullCondition:function(){return Qn.Wm},storePopupContext:function(){return wr.hK},useActionBarContext:function(){return w.DU},useActionContext:function(){return w.XC},useAssociationFieldContext:function(){return Zn.Ky},useAssociationFieldModeContext:function(){return Mi},useBackButton:function(){return Wo.K},useCloseAction:function(){return w.p2},useColumnSchema:function(){return yl.z9},useCurrentPopupContext:function(){return ca.Zm},useDatePickerContext:function(){return _a.P1},useDownloadLogs:function(){return nr.y},useEnsureOperatorsValid:function(){return X.Zd},useFieldMode:function(){return X.b},useFieldNames:function(){return ir.Xd},useFilterActionProps:function(){return Qn.PL},useFilterFieldOptions:function(){return Qn.V8},useFilterFieldProps:function(){return Qn.tM},useFilterOptions:function(){return Qn.xQ},useFormDataTemplates:function(){return Fe},useGetAriaLabelOfAction:function(){return w.HS},useGetAriaLabelOfDrawer:function(){return w.vB},useGetAriaLabelOfModal:function(){return w.QY},useGetAriaLabelOfPopover:function(){return w.t9},useGetFilterFieldOptions:function(){return Qn.Kg},useGetFilterOptions:function(){return Qn.aJ},useGridContext:function(){return Ca.n1},useGridRowContext:function(){return Ca.Di},useIsAddNewForm:function(){return X.l1},useIsAssociationField:function(){return X.w5},useIsFieldReadPretty:function(){return X.p3},useIsFileField:function(){return X.G5},useIsFormReadPretty:function(){return X.xj},useIsSelectFieldMode:function(){return X.rx},useLabelUiSchema:function(){return ir.Il},useLinkageAction:function(){return w.zC},useMenuDragEnd:function(){return na},useNocoBaseRoutes:function(){return jr},useParentRoute:function(){return ia},usePopupSettings:function(){return pa.a},useStyles:function(){return Dt.y},useTabsContext:function(){return za.g},useTitleFieldOptions:function(){return X.eT},useUploadStyles:function(){return To.$S},useValidateSchema:function(){return X.q4},useVariableScope:function(){return xa.ym},useZIndexContext:function(){return w.uq},withSearchParams:function(){return wr.Q3},zIndexContext:function(){return w.K5}});var u=e(46917),w=e(76157),i=e(15009),x=e.n(i),g=e(99289),B=e.n(g),r=e(12444),z=e.n(r),m=e(72004),A=e.n(m),f=e(31996),I=e.n(f),n=e(26037),C=e.n(n),N=e(97857),o=e.n(N),a=e(67294),D=e(31601),E=e(14896),V=e(70993),J=e(89127),$=function(k){return B()(x()().mark(function pe(){var he,Ce;return x()().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.prev=0,Te.next=3,this.api.request(k);case 3:return Ce=Te.sent,Te.abrupt("return",Ce==null||(he=Ce.data)===null||he===void 0?void 0:he.data);case 7:return Te.prev=7,Te.t0=Te.catch(0),Te.abrupt("return",[]);case 10:case"end":return Te.stop()}},pe,this,[[0,7]])}))},h=e(13769),M=e.n(h),p=e(5552),P=e(86201),v=e(80844),U=e(28459),j=e(57953),c=e(12174),d=e(6145),l=e(57105),S=e(36802),G=e(64016),y=e(15195),K=e(23461),t=e(85893),F=["form","children"],O=["form","children","disabled"],L=["request","effects","initialValue","useValues"],b=function(k){var pe=k.form,he=k.children,Ce=M()(k,F),ye=(0,v.useField)(),Te=(0,v.useFieldSchema)(),Be=(0,ot.lI)(pe.createVoidField(o()(o()({},ye.props),{},{basePath:""})));return(0,t.jsx)(v.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(v.FormContext.Provider,{value:pe,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},Ce),{},{children:(0,t.jsx)(l.sq,{basePath:Be.address,schema:Te,onlyRenderProperties:!0})}))})})},T=function(k){return k.children},q=function(k){var pe=k.form,he=k.children,Ce=k.disabled,ye=M()(k,O),Te=(0,v.useField)(),Be=(0,v.useFieldSchema)(),ze=(0,ot.lI)(pe.createVoidField(o()(o()({},Te.props),{},{basePath:""}))),Xe=(0,ot.Co)(Be["x-component"],T);return(0,a.useEffect)(function(){pe.disabled=Ce||Te.disabled},[Ce,Te.disabled]),(0,t.jsx)(U.ZP,{componentDisabled:Ce,children:(0,t.jsx)(v.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(v.FormContext.Provider,{value:pe,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},ye),{},{children:(0,t.jsx)(v.FieldContext.Provider,{value:ze,children:(0,t.jsx)(Xe,o()(o()({},Te.componentProps),{},{children:(0,t.jsx)(l.sq,{basePath:ze.address,schema:Be,onlyRenderProperties:!0})}))})}))})})})},ne=function(k){var pe=k.request,he=k.initialValue;return pe||function(){return Promise.resolve({data:he})}},oe=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,c.QT)(ne(pe),k)},Y=(0,a.createContext)(null);Y.displayName="FormBlockContext";var W=(0,v.observer)(function(te){var k=te.request,pe=te.effects,he=te.initialValue,Ce=te.useValues,ye=Ce===void 0?oe:Ce,Te=M()(te,L),Be=(0,v.useFieldSchema)(),ze=(0,v.useField)(),Xe=(0,a.useMemo)(function(){return(0,P.createForm)({effects:pe})},[]),Ze=ye({uid:Be["x-uid"],onSuccess:function(Qe){return B()(x()().mark(function _t(){return x()().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Xe.reset();case 2:Xe.setValues(Qe==null?void 0:Qe.data),Xe.setInitialValues(Qe==null?void 0:Qe.data);case 4:case"end":return mt.stop()}},_t)}))()}},te),Ye=(0,a.useContext)(Y);return(0,t.jsx)(Y.Provider,{value:{parent:Ye,form:Xe,result:Ze,field:ze,fieldSchema:Be},children:(0,t.jsx)(j.Z,{spinning:(Ze==null?void 0:Ze.loading)||!1,children:Be["x-decorator"]==="Form"?(0,t.jsx)(q,o()({form:Xe},Te)):(0,t.jsx)(b,o()({form:Xe},Te))})})},{displayName:"Form"});W.Designer=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)(),ye=(0,K.rE)(),Te=ye.componentNamePrefix;return(0,t.jsxs)(S.aN,{template:Ce,title:he||pe,children:[(0,t.jsx)(G.G,{componentName:"".concat(Te,"Form"),collectionName:pe}),(0,t.jsx)(S.Z5,{}),(0,t.jsx)(S.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var Q=e(5537),fe=new Q.F5({name:"FormV1Settings",items:[{name:"template",Component:G.G,useComponentProps:function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=(0,K.rE)(),Ce=he.componentNamePrefix;return{componentName:"".concat(Ce,"Form"),collectionName:pe}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),X=e(54801),ue=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormSettings",template:Ce,title:he||pe})},be=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"ReadPrettyFormSettings",template:Ce,title:he||pe})},ge=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormDetailsSettings",template:Ce,title:he||pe})},me=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"blockSettings:filterForm",template:Ce,title:he||pe})},Se=e(7340),ie=e(15503),ee=e(83335),ce=e(68230),ve=e(68400),Z=e.n(ve),le=e(97133),xe=e(84327),Me=e(9361),Ae=e(67174),Re=e(31019),Ee=e(39742),Oe=e(22229),Pe=e(43321),_e=e(64910),re=e(9780),R=e(3192),de=e(94804),De=e(18686),ae=e(5574),je=e.n(ae),Le=e(84157),Ve=e(42075),Ge=e(34041),it=e(96486),dt=e.n(it),Ke=e(26793),tt=e(32268),ut=e(9783),et=e.n(ut),on=e(52677),rn=e.n(on),Rt=e(50888),Qt=e(66309),pn=e(96074),Gt=e(27484),Nt=e.n(Gt),en=e(44990),nn=e(8341),kt=e(87714),ot=e(84577),Vt=e(4340),gn=e(97937),ln=e(32983),An=e(67668),Xn=e(58812),ro=e(96695),lo=e.n(ro),xn=e(19632),Pt=e.n(xn),ct={label:"label",value:"value",color:"color",options:"children"};function jt(te,k){var pe=[];if(!Array.isArray(te))return pe;for(var he=0;he<te.length;he++){var Ce=te[he][k.options];Array.isArray(Ce)&&pe.push.apply(pe,Pt()(jt(Ce,k))),pe.push(o()({},te[he]))}return pe}function Wt(te,k,pe){if(!te)return[];var he=[],Ce=lo()(pe),ye;try{var Te=function(){var ze=ye.value,Xe=te.find(function(Ze){return Ze[k.value]==ze})||{value:ze,label:ze&&ze.toString()};he.push(Xe)};for(Ce.s();!(ye=Ce.n()).done;)Te()}catch(Be){Ce.e(Be)}finally{Ce.f()}return he}function It(te,k,pe){var he=jt(k,pe),Ce=(0,it.castArray)(te).map(function(ye){return(0,Le.isPlainObject)(ye)?ye[pe.value]:ye});return Wt(he,pe,Ce)}var gt=e(25145),yt=(0,v.observer)(function(te){var k=(0,a.useState)(!0),pe=je()(k,2),he=pe[0],Ce=pe[1],ye=(0,a.useState)([]),Te=je()(ye,2),Be=Te[0],ze=Te[1],Xe=(0,v.useField)(),Ze=(0,An.Hy)();return(0,a.useEffect)(function(){var Ye,xt=o()(o()({},ct),te.fieldNames),Qe=Xe.dataSource||te.options||(Ze==null?void 0:Ze.uiSchema.enum)||[],_t=It(Xe.value,Qe,xt);if(!(!(0,xe.isValid)(te.value)&&!_t.length)&&!((0,P.isArrayField)(Xe)&&(Xe==null||(Ye=Xe.value)===null||Ye===void 0?void 0:Ye.length)===0)){var Ct=Xe.value!==null&&_t.map(function(mt,St){return(0,t.jsx)(Qt.Z,{color:mt[xt.color],icon:mt.icon,children:mt[xt.label]},St)});ze(Ct),Ce(!1)}},[Ze==null?void 0:Ze.uiSchema.enum,Xe,Xe.dataSource,Xe.value,te.fieldNames,te.options,te.value]),he?null:(0,t.jsx)(Xn.B,{ellipsis:te.ellipsis,children:Be})},{displayName:"SelectReadPretty"}),Lt=(0,gt.u)(yt),Ht=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Tt=["objectValue","loading","value","rawOptions","defaultValue"],Ut=function(k){return!(0,xe.isValid)(k)||rn()(k)==="object"&&Object.keys(k).length===0},zt=function(k){var pe=k.value,he=k.options,Ce=k.onChange,ye=k.fieldNames,Te=k.mode,Be=k.loading,ze=k.rawOptions,Xe=k.defaultValue,Ze=M()(k,Ht),Ye=function(Qe){var _t;if(!Ut(Qe)){var Ct=(0,xe.toArr)(Qe).filter(function(St){return St}).map(function(St){return(0,Le.isPlainObject)(St)?St[ye.value]:St}),mt=(_t=It(Ct,he,ye))===null||_t===void 0?void 0:_t.map(function(St){return{label:St[ye.label],value:St[ye.value]}});return["tags","multiple"].includes(Te)||k.multiple?mt:mt.shift()}};return(0,t.jsx)(Ge.default,o()({role:"button","data-testid":"select-object-".concat(Te||"single"),value:Ye(pe),defaultValue:Ye(Xe),allowClear:{clearIcon:(0,t.jsx)(Vt.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:Be?(0,t.jsx)(j.Z,{}):(0,t.jsx)(ln.Z,{image:ln.Z.PRESENTED_IMAGE_SIMPLE}),options:he,fieldNames:ye,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Qe,_t){var Ct;return((Ct=_t==null?void 0:_t[ye.label||"label"])!==null&&Ct!==void 0?Ct:"").includes(Qe)},filterSort:function(Qe,_t){var Ct,mt;return((Ct=Qe==null?void 0:Qe[ye.label||"label"])!==null&&Ct!==void 0?Ct:"").toLowerCase().localeCompare(((mt=_t==null?void 0:_t[ye.label||"label"])!==null&&mt!==void 0?mt:"").toLowerCase())},onChange:function(Qe){var _t=It((0,xe.toArr)(Qe).map(function(Ct){return Ct.value}),ze||he,ye);["tags","multiple"].includes(Te)||k.multiple?Ce==null||Ce(_t):Ce==null||Ce(_t.shift()||null)},mode:Te,tagRender:function(Qe){return(0,t.jsx)(Qt.Z,o()(o()({role:"button","aria-label":Qe.label,closeIcon:(0,t.jsx)(gn.Z,{role:"button","aria-label":"icon-close-tag"})},Qe),{},{children:Qe.label}))},maxTagCount:"responsive"},Ze))},Jt=function(k,pe){var he;return((he=pe==null?void 0:pe.label)!==null&&he!==void 0?he:"").toLowerCase().includes((k||"").toLowerCase())},fn=(0,v.connect)(function(te){var k=te.objectValue,pe=te.loading,he=te.value,Ce=te.rawOptions,ye=te.defaultValue,Te=M()(te,Tt),Be=(0,ot.eJ)(),ze=te.multiple?"multiple":te.mode;if(ze&&!["multiple","tags"].includes(ze)&&(ze=void 0),k)return(0,t.jsx)(zt,o()(o()({rawOptions:Ce},Te),{},{defaultValue:ye,value:he,mode:ze,loading:pe}));var Xe=function(Ye){return["tags","multiple"].includes(te.mode)||te.multiple?Ye?(0,xe.toArr)(Ye):void 0:Ye};return(0,t.jsx)(Ge.default,o()(o()({role:"button","data-testid":"select-".concat(ze||"single"),showSearch:!0,filterOption:Jt,allowClear:{clearIcon:(0,t.jsx)(Vt.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:pe?(0,t.jsx)(j.Z,{}):(0,t.jsx)(ln.Z,{image:ln.Z.PRESENTED_IMAGE_SIMPLE}),value:Xe(he),defaultValue:Xe(ye),tagRender:function(Ye){return(0,t.jsx)(Qt.Z,o()(o()({role:"button","aria-label":Ye.label,closeIcon:(0,t.jsx)(gn.Z,{role:"button","aria-label":"icon-close-tag"})},Ye),{},{children:Ye.label}))}},Be(Te)),{},{onChange:function(Ye){var xt;(xt=te.onChange)===null||xt===void 0||xt.call(te,Ye===void 0?null:Ye)},mode:ze,maxTagCount:"responsive"}))},(0,v.mapProps)({dataSource:"options"},function(te,k){return o()(o()({},te),{},{fieldNames:o()(o()({},ct),te.fieldNames),suffixIcon:k!=null&&k.loading||k!=null&&k.validating?(0,t.jsx)(Rt.Z,{}):te.suffixIcon})}),(0,v.mapReadPretty)(Lt)),qt=fn;qt.ReadPretty=Lt;var yn=qt,_n=e(36586),$t=function(k,pe){return(0,it.castArray)(k).filter(function(he){return he!=null}).map(function(he){return rn()(he)==="object"?he[pe.value]:he})},un=(0,v.observer)(function(te){var k=o()(o()({},ct),te.fieldNames),pe=(0,v.useField)(),he=(0,v.useFieldSchema)(),Ce=(0,_n.a)(),ye=(0,w.XC)(),Te=ye.snapshot,Be=(0,c.QT)(Te?B()(x()().mark(function Xe(){return x()().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.abrupt("return",{data:Ce[he.name]});case 1:case"end":return Ye.stop()}},Xe)})):o()(o()({action:"list"},te.service),{},{params:{paginate:!1,filter:et()({},k.value,{$in:$t(pe.value,k)})}}),{refreshDeps:[te.service,pe.value]}),ze=Be.data;return(0,t.jsx)(qt.ReadPretty,o()(o()({},te),{},{options:ze==null?void 0:ze.data}))},{displayName:"ReadPretty"}),cn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],Et="N/A",qe=(0,ie.t)((0,v.connect)(function(te){var k,pe,he=te.fieldNames,Ce=he===void 0?{}:he,ye=te.service,Te=ye===void 0?{}:ye,Be=te.wait,ze=Be===void 0?300:Be,Xe=te.value,Ze=te.defaultValue,Ye=te.objectValue,xt=te.manual,Qe=xt===void 0?!0:xt,_t=te.mapOptions,Ct=te.targetField,mt=te.CustomDropdownRender,St=te.optionFilter,At=te.dataSource,an=te.toOptionsItem,mn=an===void 0?function(xr){return xr}:an,Sn=te.popupMatchSelectWidth,Mn=Sn===void 0?!1:Sn,Ft=M()(te,cn),tn=(0,en.FC)(),Nn=(0,nn.FE)(At||tn),no=(0,a.useState)(!1),Gn=je()(no,2),On=Gn[0],Ln=Gn[1],Xt=(0,a.useRef)(!1),zn=(0,v.useFieldSchema)(),to=((k=zn["x-component-props"])===null||k===void 0?void 0:k.addMode)==="quickAdd",Hn=(0,d.useCollection_deprecated)(),Vn=Hn.getField,wn=(0,a.useRef)(null),Dn=(0,d.useCollectionManager_deprecated)(),dn=Dn.getCollectionJoinField,$n=Dn.getInterface,po=zn["x-collection-field"]||zn.name,Jn=Vn(po)||dn(po),qn=Ct||(Jn==null?void 0:Jn.target)&&(Ce==null?void 0:Ce.label)&&dn("".concat(Jn.target,".").concat(Ce.label)),So=(0,a.useMemo)(function(){if(qn!=null&&qn.interface){var xr,Xo=$n(qn.interface),Ir=(Xo==null||(xr=Xo.filterable)===null||xr===void 0?void 0:xr.operators[0].value)||"$includes";return qn.type==="string"?"$includes":Ir}return"$includes"},[qn]),uo=(0,ot.eJ)(),Po=(0,a.useCallback)(function(xr){try{return xr.filter(function(Xo){return["number","string"].includes(rn()(Xo[Ce.value]))||!Xo[Ce.value]}).map(function(Xo){var Ir,Or,Pr=uo(Xo[Ce.label]);if(qn!=null&&(Ir=qn.uiSchema)!==null&&Ir!==void 0&&Ir.enum)if(Array.isArray(Pr))Pr=Pr.map(function(Pa,Ga){var Oa=qn.uiSchema.enum.find(function(Al){return Al.value===Pa});return Oa?(0,t.jsx)(Qt.Z,{role:"button",color:Oa.color,style:{marginRight:3},children:(Oa==null?void 0:Oa.label)||Pa},Ga):(0,t.jsx)(Qt.Z,{role:"button",children:Pa},Pa)}).reverse();else{var ta=qn.uiSchema.enum.find(function(Pa){return Pa.value===Pr});ta&&(Pr=(0,t.jsx)(Qt.Z,{role:"button",color:ta.color,children:ta.label}))}if((qn==null?void 0:qn.type)==="date"&&(Pr=Nt()(Pr).format("YYYY-MM-DD")),_t){var ba;return _t((ba={},et()(ba,Ce.label,Pr||Et),et()(ba,Ce.value,Xo[Ce.value]),ba))}return o()(o()({},Xo),{},(Or={},et()(Or,Ce.label,Pr||Et),et()(Or,Ce.value,Xo[Ce.value]),Or))}).filter(Boolean)}catch(Xo){return console.error(Xo),xr}},[qn==null?void 0:qn.uiSchema,Ce]),ko=(0,c.QT)(o()(o()({action:"list"},Te),{},{headers:Nn,params:o()(o()({pageSize:200},Te==null?void 0:Te.params),{},{filter:Te==null||(pe=Te.params)===null||pe===void 0?void 0:pe.filter})}),o()({manual:Qe,debounceWait:ze},Te.defaultParams?{defaultParams:[Te.defaultParams]}:{})),io=ko.data,Fo=ko.run,Zo=ko.loading,or=(0,a.useMemo)(function(){return JSON.stringify({service:Te,fieldNames:Ce})},[Te,Ce]),gr=(0,a.useCallback)(function(){return wn.current&&mt?(0,t.jsx)(mt,{search:wn.current,callBack:function(){wn.current=null,Ln(!1)}}):null},[wn.current]);(0,a.useEffect)(function(){Xt.current&&Fo()},[or]);var qr=function(){var xr=B()(x()().mark(function Xo(Ir){var Or;return x()().wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:Fo({filter:(0,kt.EO)([Ir?et()({},Ce.label,et()({},So,Ir)):{},Te==null||(Or=Te.params)===null||Or===void 0?void 0:Or.filter])}),wn.current=Ir;case 2:case"end":return ta.stop()}},Xo)}));return function(Ir){return xr.apply(this,arguments)}}(),ea=(0,a.useMemo)(function(){var xr,Xo=Xe||Ze;if(!(io!=null&&(xr=io.data)!==null&&xr!==void 0&&xr.length))return Xo!=null?Array.isArray(Xo)?Xo:[Xo]:[];var Ir=Xo!=null&&(Array.isArray(Xo)?Xo.map(function(Pr){return o()(o()({},Pr),{},et()({},Ce.value,Pr[Ce.value]||Pr))}):[o()(o()({},Xo),{},et()({},Ce.value,Xo[Ce.value]||Xo))])||[],Or=typeof St=="function"?io.data.filter(St):io.data;return(0,it.uniqBy)(Or.concat(Ir??[]),Ce.value)},[Xe,Ze,io==null?void 0:io.data,Ce.value,St]),zr=function(Xo){Ln(Xo),wn.current=null,Xo&&Fo(),Xt.current=!0};return(0,t.jsx)(qt,o()(o()({open:On,popupMatchSelectWidth:Mn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:Ce,onSearch:qr,onDropdownVisibleChange:zr,objectValue:Ye,value:Xe,defaultValue:Ze},Ft),{},{loading:io?Zo:!0,options:mn(Po(ea)),rawOptions:ea,dropdownRender:function(Xo){var Ir=ea.some(function(Or){return Or[Ce.label]===wn.current});return(0,t.jsx)(t.Fragment,{children:to?(0,t.jsxs)(t.Fragment,{children:[!((io==null?void 0:io.data.length)===0&&wn!==null&&wn!==void 0&&wn.current)&&Xo,(io==null?void 0:io.data.length)>0&&(wn==null?void 0:wn.current)&&!Ir&&(0,t.jsx)(pn.Z,{style:{margin:0}}),!Ir&&(0,t.jsx)(gr,{})]}):Xo})}}))},(0,v.mapProps)({dataSource:"options"},function(te,k){var pe,he=(0,v.useFieldSchema)();return o()(o()({},te),{},{fieldNames:o()(o()(o()(o()({},ct),te.fieldNames),k.componentProps.fieldNames),(pe=he["x-component-props"])===null||pe===void 0?void 0:pe.fieldNames),suffixIcon:k!=null&&k.loading||k!=null&&k.validating?(0,t.jsx)(Rt.Z,{}):te.suffixIcon})}),(0,v.mapReadPretty)(un))),lt=qe;lt.ReadPretty=un;var He=null,Fe=function(){var k=(0,v.useFieldSchema)(),pe=(0,Ke.$)(),he=pe.t,Ce=(0,Se.bz)(),ye=Ce.duplicateData,Te=(0,d.useCollectionManager_deprecated)(),Be=Te.getCollectionJoinField;if(ye)return ye;var ze=we(k),Xe=ze.items,Ze=Xe===void 0?[]:Xe,Ye=ze.display,xt=Ye===void 0?!0:Ye;Ze.forEach(function(Ct){try{var mt;Ct.fields=(mt=Ct.fields)===null||mt===void 0?void 0:mt.map(function(St){var At=Be("".concat(Ct.collection,".").concat(St));return At?St:""}).filter(Boolean)}catch(St){(0,Le.error)(St),Ct.fields=[]}});var Qe=[{key:"none",title:he("None")}].concat(Ze.map(function(Ct,mt){return o()(o()({key:mt},Ct),{},{isLeaf:Ct.dataId!==null&&Ct.dataId!==void 0,titleCollectionField:(Ct==null?void 0:Ct.titleField)&&Be("".concat(Ct.collection,".").concat(Ct.titleField))})})),_t=Ze.find(function(Ct){return Ct.default});return{templates:Qe,display:xt,defaultTemplate:_t,enabled:Ze.length>0&&Ze.every(function(Ct){return Ct.dataId||Ct.dataScope})}},Ie=a.memo(function(te){var k=te.style,pe=k===void 0?{}:k,he=te.form,Ce=(0,u.dQ)(),ye=Ce.token,Te=Fe(),Be=Te.templates,ze=Te.display,Xe=Te.enabled,Ze=Te.defaultTemplate,Ye=(0,d.useCollectionManager_deprecated)(),xt=Ye.getCollectionJoinField,Qe=(0,tt.ss)(Be),_t=(0,a.useState)((Ze==null?void 0:Ze.key)||"none"),Ct=je()(_t,2),mt=Ct[0],St=Ct[1],At=(0,a.useState)(null),an=je()(At,2),mn=an[0],Sn=an[1],Mn=(0,c.LY)(),Ft=(0,Ke.$)(),tn=Ft.t,Nn=(0,de.FC)(),no=(0,de.on)(Nn);(0,a.useEffect)(function(){Xe&&Ze&&he&&(he.__template=!0,Ze.key==="duplicate"&&Xt(Ze.dataId,Ze,no))},[]),(0,a.useEffect)(function(){Qe!=null&&Qe.some(function(to){return to.key===mt})||Ln("none")},[Qe]);var Gn=(0,a.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:ye.colorFillAlter,padding:ye.padding},pe)},[pe,ye.colorFillAlter]),On=(0,a.useMemo)(function(){return{fontSize:ye.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:ye.marginXS}},[ye.fontSize,ye.marginXS]),Ln=(0,a.useCallback)(function(){var to=B()(x()().mark(function Hn(Vn){return x()().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:St(Vn),Sn(null),he==null||he.reset();case 3:case"end":return Dn.stop()}},Hn)}));return function(Hn){return to.apply(this,arguments)}}(),[]),Xt=(0,a.useCallback)(function(){var to=B()(x()().mark(function Hn(Vn,wn,Dn){var dn;return x()().wrap(function(po){for(;;)switch(po.prev=po.next){case 0:dn=o()(o()({},wn),{},{dataId:Vn}),Sn(wn),at(Mn,dn,Dn).then(function(Jn){return he&&Jn&&(he.reset(),he.__template=!0,(0,Le.forEach)(Jn,function(qn,So){if(qn){var uo;he.values[So]=qn,he==null||(uo=he.setInitialValuesIn)===null||uo===void 0||uo.call(he,So,qn)}})),Jn}).catch(function(Jn){console.error(Jn)});case 3:case"end":return po.stop()}},Hn)}));return function(Hn,Vn,wn){return to.apply(this,arguments)}}(),[]);if(!Xe||!ze)return null;var zn=Qe==null?void 0:Qe.find(function(to){return to.key===mt});return(0,t.jsx)("div",{style:Gn,children:(0,t.jsxs)(Ve.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:On,children:[tn("Data template"),": "]}),(0,t.jsx)(Ge.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:Qe,fieldNames:{label:"title",value:"key"},value:mt,onChange:Ln}),mt!=="none"&&zn&&(0,t.jsx)(lt,{style:{width:220},fieldNames:{label:zn==null?void 0:zn.titleField,value:"id"},target:zn==null?void 0:zn.collection,value:mn,objectValue:!0,service:{resource:zn==null?void 0:zn.collection,params:{filter:zn==null?void 0:zn.dataScope}},onChange:function(Hn){return Xt(Hn==null?void 0:Hn.id,o()(o()({},Hn),zn),no)},targetField:xt("".concat(zn==null?void 0:zn.collection,".").concat(zn.titleField))})]})})});Ie.displayName="NocoBaseFormDataTemplates";function we(te){var k=(0,Se.Fi)(te);return k?dt().cloneDeep(k["x-data-templates"])||{}:{}}function at(te,k,pe){return st.apply(this,arguments)}function st(){return st=B()(x()().mark(function te(k,pe,he){return x()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(!(pe.fields.length===0||!pe.dataId)){ye.next=2;break}return ye.abrupt("return");case 2:return ye.abrupt("return",k.resource(pe.collection,void 0,he).get({filterByTk:pe.dataId,fields:pe.fields,isTemplate:!0}).then(function(Te){var Be;return(Be=Te.data)===null||Be===void 0?void 0:Be.data}));case 3:case"end":return ye.stop()}},te)})),st.apply(this,arguments)}var ke=function(){var k,pe,he=(0,De.aZ)(),Ce=(0,v.useFieldSchema)(),ye=Me.Z.useToken(),Te=ye.token,Be=(0,ot.ng)(),ze=Be.designable,Xe=(0,R.gp)()||{},Ze=Xe.heightProps,Ye=Ze||{},xt=Ye.title,Qe=Ye.titleHeight,_t=Fe(),Ct=_t.display,mt=_t.enabled,St=Ce.reduceProperties(function(Ln,Xt){return Xt["x-component"]==="ActionBar"?Xt:Ln}),At=Object.keys((St==null?void 0:St.properties)||{}).length>0,an=Ce==null||(k=Ce.parent)===null||k===void 0||(k=k["x-decorator"])===null||k===void 0||(pe=k.includes)===null||pe===void 0?void 0:pe.call(k,"FormBlockProvider"),mn=At||ze?Te.controlHeight+(an?1*Te.marginLG:24+Te.paddingLG):Te.marginLG,Sn=xt?Qe:0,Mn=(0,de.xQ)(),Ft=(Mn==null?void 0:Mn.meta)||{},tn=Ft.count,Nn=Ft.pageSize,no=tn>Nn,Gn=no?Te.controlHeightSM+24:0,On=Ct&&mt?Te.controlHeight+2*Te.padding+Te.margin:0;return he-mn-Te.paddingLG-Sn-Gn-On},Ne,Ue,Je=["form","children"],rt=["form","children","disabled"],ft=["form","disabled"],ht=function(k){var pe=k.form,he=k.children,Ce=M()(k,Je),ye=(0,v.useField)(),Te=(0,v.useFieldSchema)(),Be=Ae.Gn===null||Ae.Gn===void 0?void 0:(0,Ae.Gn)(Te),ze=(0,ot.lI)(pe.createVoidField(o()(o()({},ye.props),{},{basePath:""}))),Xe=ke(),Ze=Me.Z.useToken(),Ye=Ze.token,xt=(Be==null?void 0:Be["x-component-props"])||{},Qe=xt.layout,_t=Qe===void 0?"vertical":Qe,Ct=xt.labelAlign,mt=Ct===void 0?"left":Ct,St=xt.labelWidth,At=St===void 0?120:St,an=xt.labelWrap,mn=an===void 0?!0:an;return(0,t.jsx)(v.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(v.FormContext.Provider,{value:pe,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:_t},Ce),{},{labelAlign:mt,labelWidth:_t==="horizontal"?At:null,labelWrap:mn,children:(0,t.jsx)("div",{className:(0,le.css)(Ne||(Ne=Z()([`
|
|
761
|
+
`])))},Re),{},{component:T.II.JSON}))}var ve=e(57340),Z=(0,u.createContext)([]);Z.displayName="VariableScopeContext";function le(Re){var Ee=Re.scope,Oe=Ee===void 0?[]:Ee,Pe=Re.children;return(0,q.jsx)(Z.Provider,{value:Oe,children:Pe})}function xe(){return(0,u.useContext)(Z)}function Me(){return null}Me.Input=(0,H.connect)(Se),Me.TextArea=(0,w.t)((0,H.connect)(ve.K,(0,H.mapReadPretty)(ve.K.ReadPretty))),Me.RawTextArea=(0,H.connect)(ie.f),Me.JSON=(0,H.connect)(ce);var Ae=null},88969:function(We,se,e){"use strict";e.d(se,{m:function(){return E}});var H=e(15009),u=e.n(H),w=e(19632),i=e.n(w),x=e(99289),g=e.n(x),B=e(5574),r=e.n(B),z=e(97133),m=e(38089),A=e(67294),f=e(26793),I=e(46917),n=e(9783),C=e.n(n),N=(0,I.l6)("nb-variable-select",function(V){var J=V.componentCls;return C()({},J,{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=N,a=e(2876),D=e(85893);function E(V){var J=V.options,$=V.setOptions,h=V.onInsert,M=V.changeOnSelect,p=M===void 0?!1:M,P=V.fieldNames,v=P===void 0?{}:P,U=V.className,j=(0,f.$)(),c=j.t,d=(0,A.useState)([]),l=r()(d,2),S=l[0],G=l[1],y=o(),K=y.wrapSSR,t=y.componentCls,F=y.hashId,O=(0,I.dQ)(),L=O.token;function b(q){return T.apply(this,arguments)}function T(){return T=g()(u()().mark(function q(ne){var oe,Y;return u()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Y=ne[ne.length-1],!(!((oe=Y.children)!==null&&oe!==void 0&&oe.length)&&!Y.isLeaf&&Y.loadChildren)){Q.next=5;break}return Q.next=4,Y.loadChildren(Y);case 4:$(function(fe){return i()(fe)});case 5:case"end":return Q.stop()}},q)})),T.apply(this,arguments)}return K((0,D.jsx)(a.R,{className:(0,z.cx)("x-button",t,F,U),children:(0,D.jsx)(m.Z,{placeholder:c("Select a variable"),value:[],options:J,fieldNames:v,loadData:b,onChange:function(){var ne,oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(G(oe),!!oe.length){var W=Y[Y.length-1];(!(W!=null&&(ne=W.children)!==null&&ne!==void 0&&ne.length)&&!(W!=null&&W.loadChildren)||W!=null&&W.isLeaf)&&h(oe)}},changeOnSelect:p,onClick:function(ne){if(!(ne.detail!==2||!p))for(var oe=ne.target;oe&&oe!==ne.currentTarget;oe=oe.parentNode){var Y;Array.from((Y=oe.classList)!==null&&Y!==void 0?Y:[]).includes("ant-cascader-menu-item")&&h(S)}},popupClassName:"Cascader-popupClassName",dropdownRender:p?function(q){return(0,D.jsxs)(D.Fragment,{children:[q,(0,D.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(L.colorBorder),color:L.colorTextDescription},children:c("Double click to choose entire object")})]})}:null})}))}},2876:function(We,se,e){"use strict";e.d(se,{R:function(){return g}});var H=e(97857),u=e.n(H),w=e(15867),i=e(67294),x=e(85893),g=(0,i.forwardRef)(function(B,r){var z=(0,i.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,x.jsxs)(w.ZP,u()(u()({"aria-label":"variable-button",ref:r,style:z},B),{},{children:["x",B.children]}))});g.displayName="XButton"},74866:function(We,se,e){"use strict";e.d(se,{y:function(){return i}});var H=e(9783),u=e.n(H),w=e(46917),i=(0,w.l6)("nb-variable",function(x,g){var B=x.componentCls,r=x.lineWidth,z=x.colorFillQuaternary,m=x.paddingSM-1,A=8,f=A-r,I=x.fontSizeSM,n="".concat(x.lineHeightSM*I,"px"),C=z;return u()({},B,{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":g!=null&&g.hideVariableButton?{}:{borderTopRightRadius:0,borderBottomRightRadius:0},".ant-tag":{display:"inline-block",height:"auto",marginInlineEnd:x.marginXS,paddingInline:f,fontSize:I,lineHeight:n,whiteSpace:"nowrap",background:C,border:"".concat(x.lineWidth,"px ").concat(x.lineType," ").concat(x.colorBorder),borderRadius:x.borderRadiusSM,opacity:1,transition:"all ".concat(x.motionDurationMid),textAlign:"start"},".ant-tag-blue":{color:x.colorPrimaryText,background:x.colorPrimaryBg,borderColor:x.colorPrimaryBorder},".clear-button":{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:m,zIndex:1,display:"none",width:x.fontSizeIcon,height:x.fontSizeIcon,marginTop:-x.fontSizeIcon/2,color:x.colorTextQuaternary,fontSize:x.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:x.colorBgContainer,cursor:"pointer",opacity:.8,transition:"color ".concat(x.motionDurationMid," ease, opacity ").concat(x.motionDurationSlow," ease"),textRendering:"auto",userSelect:"none","&:before":{display:"block"},"&:hover":{color:x.colorTextTertiary}},".ant-btn":{height:"auto"},".variable":{flex:1}})})},72724:function(We,se,e){"use strict";e.d(se,{L:function(){return I}});var H=e(97857),u=e.n(H),w=e(5574),i=e.n(w),x=e(23861),g=e(67294),B=e(26793),r=e(21143),z=e(84577),m=e(85893),A=function(C){var N=(0,z.ng)(),o=N.refresh,a=(0,r.useAPIClient)(),D=(0,B.$)(),E=D.t;return(0,g.useCallback)(function(V){var J,$,h,M,p,P,v,U,j=V.active,c=V.over,d=j==null||(J=j.data)===null||J===void 0||(J=J.current)===null||J===void 0?void 0:J.schema,l=c==null||($=c.data)===null||$===void 0||($=$.current)===null||$===void 0?void 0:$.schema,S=c==null||(h=c.data)===null||h===void 0||(h=h.current)===null||h===void 0?void 0:h.insertAdjacent,G=c==null||(M=c.data)===null||M===void 0||(M=M.current)===null||M===void 0?void 0:M.breakRemoveOn,y=c==null||(p=c.data)===null||p===void 0||(p=p.current)===null||p===void 0?void 0:p.wrapSchema,K=c==null||(P=c.data)===null||P===void 0||(P=P.current)===null||P===void 0?void 0:P.onSuccess,t=(v=c==null||(U=c.data)===null||U===void 0||(U=U.current)===null||U===void 0?void 0:U.removeParentsIfNoChildren)!==null&&v!==void 0?v:!0;if(!d||!l){C==null||C(V);return}if(d===l){C==null||C(V);return}if(d.parent===l&&S==="beforeEnd"){C==null||C(V);return}var F=(0,z.Pl)({t:E,api:a,refresh:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=L.refreshParentSchema,T=b===void 0?!0:b;return o({refreshParentSchema:T})},current:l});if(F.loadAPIClientEvents(),d.parent===l.parent){F.insertBeforeBeginOrAfterEnd(d),C==null||C(V);return}if(S){F.insertAdjacent(S,d,{wrap:y,breakRemoveOn:G,removeParentsIfNoChildren:t,onSuccess:K}),C==null||C(V);return}},[a,C,o,E])},f=g.memo(function(n){var C=(0,B.$)(),N=C.t,o=(0,g.useState)(!0),a=i()(o,2),D=a[0],E=a[1],V=(0,g.useCallback)(function($){var h,M=$.active,p=M==null||(h=M.data)===null||h===void 0||(h=h.current)===null||h===void 0?void 0:h.schema;if(E(!!p),n!=null&&n.onDragStart){var P;n==null||(P=n.onDragStart)===null||P===void 0||P.call(n,$)}},[n==null?void 0:n.onDragStart]),J=A(n==null?void 0:n.onDragEnd);return(0,m.jsxs)(x.DndContext,u()(u()({collisionDetection:x.rectIntersection},n),{},{onDragStart:V,onDragEnd:J,children:[(0,m.jsx)(x.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:D&&(0,m.jsx)("span",{style:{whiteSpace:"nowrap"},children:N("Dragging")})}),n.children]}))});f.displayName="InternalDndContext";var I=function(C){return(0,m.jsx)(f,u()({},C))}},14896:function(We,se,e){"use strict";e.r(se),e.d(se,{DndContext:function(){return H.L},DragHandler:function(){return u.IW},DraggableContext:function(){return u.LC},ShowFormData:function(){return g},Sortable:function(){return u.bt},SortableContext:function(){return u.Fo},SortableItem:function(){return u.TR},SortableProvider:function(){return u.OR},getRenderContent:function(){return B.I9}});var H=e(72724),u=e(20493),w=e(67294),i=e(80844),x=e(85893),g=(0,i.observer)(function(r){var z=r.children,m=(0,i.useForm)();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(m.values,null,2)}),z]})}),B=e(34588)},20493:function(We,se,e){"use strict";e.d(se,{IW:function(){return P},LC:function(){return a},bt:function(){return J},Fo:function(){return D},TR:function(){return p},OR:function(){return E}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(10274),g=e(23861),B=e(97133),r=e(80844),z=e(96486),m=e.n(z),A=e(67294),f=e(46917),I=e(84577),n=e(85893),C=["component","overStyle","style","children","openMode"],N=["schema","id","eid","removeParentsIfNoChildren"],o=["component"],a=(0,A.createContext)(null);a.displayName="DraggableContext";var D=(0,A.createContext)(null);D.displayName="SortableContext";var E=function(U){var j=U.id,c=U.data,d=U.children,l=(0,g.useDraggable)({id:j,data:c}),S=(0,g.useDroppable)({id:j,data:c}),G=(0,A.useMemo)(function(){return{draggable:l,droppable:S}},[l,S]);return(0,n.jsx)(D.Provider,{value:G,children:d})},V=function(U){return new x.C(U).setAlpha(.15).toHex8String()},J=function(U){var j,c,d=U.component,l=U.overStyle,S=U.style,G=U.children,y=U.openMode,K=i()(U,C),t=(0,f.dQ)(),F=t.token,O=(0,A.useContext)(D),L=O.draggable,b=O.droppable,T=b.isOver,q=b.setNodeRef,ne=u()({},S);return T&&(L==null||(j=L.active)===null||j===void 0?void 0:j.id)!==(b==null||(c=b.over)===null||c===void 0?void 0:c.id)&&(ne[d==="a"?"color":"background"]=V(F.colorSettings),Object.assign(ne,l)),A.createElement(d||"div",u()(u()({role:"none"},K),{},{className:(0,B.cx)("nb-sortable-designer",U.className),ref:q,style:ne}),G)},$=function(U){var j=h(U),c=(0,r.useFieldSchema)();return U.schema?u()(u()({},U),{},{id:j}):u()(u()({},U),{},{id:j,schema:c})},h=function(U){var j,c=(0,r.useField)();return U.id?U.id:(j=c.address)===null||j===void 0?void 0:j.toString()},M=(0,r.observer)(function(v){var U=$(v),j=U.schema,c=U.id,d=U.eid,l=U.removeParentsIfNoChildren,S=i()(U,N),G=(0,A.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:j,removeParentsIfNoChildren:l??!0}},[j,l]);return(0,n.jsx)(E,{id:c,data:G,children:(0,n.jsx)(J,u()(u()({id:d},S),{},{children:v.children}))})},{displayName:"InternalSortableItem"}),p=A.memo(function(v){var U=v.component,j=i()(v,o),c=(0,I.ng)(),d=c.designable;return d?(0,n.jsx)(M,u()({},v)):A.createElement(U||"div",m().omit(j,["children","schema","overStyle","openMode","id","eid","removeParentsIfNoChildren"]),v.children)});p.displayName="SortableItem";var P=function(U){var j=(0,A.useContext)(D)||{},c=j.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:U.children})}))})}},34588:function(We,se,e){"use strict";e.d(se,{jC:function(){return c},od:function(){return v},I9:function(){return S},Rq:function(){return U},e7:function(){return P}});var H=e(97857),u=e.n(H),w=e(15009),i=e.n(w),x=e(9783),g=e.n(x),B=e(5574),r=e.n(B),z=e(99289),m=e.n(z),A=e(52677),f=e.n(A),I=e(84157),n=e(96486),C=e.n(n),N=e(10097),o=e(76690),a=e(65565),D=e(61341),E=e(27484);function V(){"use strict";Array.isArray||(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"});function y(O){for(var L=[],b=0,T=O.length;b<T;b++)L.indexOf(O[b])===-1&&L.push(O[b]);return L}function K(O,L){return JSON.stringify(O)===JSON.stringify(L)}var t={},F={$is:function(L,b){return L===b},$match:function(L,b){return Array.isArray(L)&&Array.isArray(b)&&L.some(function(T){return Array.isArray(T)})?L.some(function(T){return(T==null?void 0:T.length)===b.length&&(T==null?void 0:T.every(function(q,ne){return q===b[ne]}))}):JSON.stringify(L)===JSON.stringify(b)},$eq:function(L,b){return Array.isArray(L)&&Array.isArray(b)?K(L,b):Array.isArray(L)?L.includes(b):L==b},$ne:function(L,b){return L!=b},"!==":function(L,b){return L!==b},$gt:function(L,b){return Array.isArray(L)?L.some(function(T){return T>b}):L>b},$gte:function(L,b){return L>=b},$lt:function(L,b,T){return Array.isArray(L)?L.some(function(q){return q<b}):T===void 0?L<b:L<b&&b<T},$lte:function(L,b,T){return T===void 0?L<=b:L<=b&&b<=T},$exists:function(L){return t.truthy(L)},$notEmpty:function(L){return t.truthy(L)},$empty:function(L){return Array.isArray(L)?L.some(function(b){return!t.truthy(b)}):!t.truthy(L)},$notExists:function(L){return!t.truthy(L)},"%":function(L,b){return L%b},log:function(L){return L},$in:function(L,b){return!b||typeof b.indexOf>"u"?!1:Array.isArray(L)&&Array.isArray(b)?b.some(function(T){return L.includes(T)}):b.indexOf(L)!==-1},$notIn:function(L,b){return!b||typeof b.indexOf>"u"?!1:b.indexOf(L)===-1},$includes:function(L,b){return!L||typeof L.indexOf>"u"?!1:Array.isArray(L)?L.some(function(T){return T==null?void 0:T.includes(b)}):L.indexOf(b)!==-1},$notIncludes:function(L,b){return Array.isArray(L)?!L.some(function(T){return(T||"").includes(b)}):(L=L||"",!L.includes(b))},$anyOf:function(L,b){return L.length===0?!1:Array.isArray(L)&&Array.isArray(b)&&L.some(function(T){return Array.isArray(T)})?L.some(function(T){return T.some(function(q){return b.includes(q)})}):L.some(function(T){return b.includes(T)})},$noneOf:function(L,b){return!L||(L==null?void 0:L.length)===0?!0:Array.isArray(L)&&Array.isArray(b)&&L.some(function(T){return Array.isArray(T)})?L.some(function(T){return T.every(function(q){return!b.some(function(ne){return q.includes(ne)})})}):b.some(function(T){return!L.includes(T)})},$notMatch:function(L,b){if(L.length!==b.length)return!0;for(var T=0;T<L.length;T++)if(L[T]!==b[T])return!0;return!1},$dateOn:function(L,b){return!L||!b?!1:L===b},$dateBefore:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);if(!T||!q)throw new Error("Invalid date format");return T<q},$dateNotBefore:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);if(!T||!q)throw new Error("Invalid date format");return T>=q},$dateAfter:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);return T>q},$dateNotAfter:function(L,b){if(!L||!b)return!1;var T=p(L),q=p(b);if(!T||!q)throw new Error("Invalid date format");return T<=q},$dateBetween:function(L,b){if(!L||!b)return!1;var T=J(L),q=J(b[0]),ne=J(b[1]);if(!T||!q||!ne)throw new Error("Invalid date format");return T>=q&&T<=ne},$dateNotOn:function(L,b){return!L||!b?!1:L!==b},$isTruly:function(L){return Array.isArray(L)?L.some(function(b){return b===!0||b===1}):L===!0||L===1},$isFalsy:function(L){return Array.isArray(L)?L.some(function(b){return!t.truthy(b)}):!t.truthy(L)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(L,b,T){if(T<0){var q=String(L).substr(b);return q.substr(0,q.length+T)}return String(L).substr(b,T)},"+":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)+parseFloat(b,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(L,b){return parseFloat(L,10)*parseFloat(b,10)})},"-":function(L,b){return b===void 0?-L:L-b},"/":function(L,b){return L/b},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(L,b){return L.concat(b)},[])},var:function(L,b){var T=b===void 0?null:b,q=this;if(typeof L>"u"||L===""||L===null)return q;for(var ne=String(L).split("."),oe=0;oe<ne.length;oe++)if(q==null||(q=q[ne[oe]],q===void 0))return T;return q},missing:function(){for(var L=[],b=Array.isArray(arguments[0])?arguments[0]:arguments,T=0;T<b.length;T++){var q=b[T],ne=t.apply({var:q},this);(ne===null||ne==="")&&L.push(q)}return L},missing_some:function(L,b){var T=t.apply({missing:b},this);return b.length-T.length>=L?[]:T}};return t.is_logic=function(O){return f()(O)==="object"&&O!==null&&!Array.isArray(O)&&Object.keys(O).length===1},t.truthy=function(O){return Array.isArray(O)&&O.length===0?!1:!!O},t.get_operator=function(O){return Object.keys(O)[0]},t.get_values=function(O){return O[t.get_operator(O)]},t.apply=function(O,L){if(Array.isArray(O))return O.map(function(X){return t.apply(X,L)});if(!t.is_logic(O))return O;var b=t.get_operator(O),T=O[b],q,ne,oe,Y,W;if(Array.isArray(T)||(T=[T]),b==="if"||b=="?:"){for(q=0;q<T.length-1;q+=2)if(t.truthy(t.apply(T[q],L)))return t.apply(T[q+1],L);return T.length===q+1?t.apply(T[q],L):null}else if(b==="$and"){for(q=0;q<T.length;q+=1)if(ne=t.apply(T[q],L),!t.truthy(ne))return ne;return ne}else if(b==="or"){for(q=0;q<T.length;q+=1)if(ne=t.apply(T[q],L),t.truthy(ne))return ne;return ne}else{if(b==="filter")return Y=t.apply(T[0],L),oe=T[1],Array.isArray(Y)?Y.filter(function(X){return t.truthy(t.apply(oe,X))}):[];if(b==="map")return Y=t.apply(T[0],L),oe=T[1],Array.isArray(Y)?Y.map(function(X){return t.apply(oe,X)}):[];if(b==="reduce")return Y=t.apply(T[0],L),oe=T[1],W=typeof T[2]<"u"?T[2]:null,Array.isArray(Y)?Y.reduce(function(X,ue){return t.apply(oe,{current:ue,accumulator:X})},W):W;if(b==="all"){if(Y=t.apply(T[0],L),oe=T[1],!Array.isArray(Y)||!Y.length)return!1;for(q=0;q<Y.length;q+=1)if(!t.truthy(t.apply(oe,Y[q])))return!1;return!0}else if(b==="none"){if(Y=t.apply(T[0],L),oe=T[1],!Array.isArray(Y)||!Y.length)return!0;for(q=0;q<Y.length;q+=1)if(t.truthy(t.apply(oe,Y[q])))return!1;return!0}else if(b==="some"){if(Y=t.apply(T[0],L),oe=T[1],!Array.isArray(Y)||!Y.length)return!1;for(q=0;q<Y.length;q+=1)if(t.truthy(t.apply(oe,Y[q])))return!0;return!1}}if(T=T.map(function(X){return t.apply(X,L)}),F.hasOwnProperty(b)&&typeof F[b]=="function")return F[b].apply(L,T);if(b.indexOf(".")>0){var Q=String(b).split("."),fe=F;for(q=0;q<Q.length;q++){if(!fe.hasOwnProperty(Q[q]))throw new Error("Unrecognized operation "+b+" (failed at "+Q.slice(0,q+1).join(".")+")");fe=fe[Q[q]]}return fe.apply(L,T)}throw new Error("Unrecognized operation "+b)},t.uses_data=function(O){var L=[];if(t.is_logic(O)){var b=t.get_operator(O),T=O[b];Array.isArray(T)||(T=[T]),b==="var"?L.push(T[0]):T.forEach(function(q){L.push.apply(L,t.uses_data(q))})}return y(L)},t.add_operation=function(O,L){F[O]=L},t.rm_operation=function(O){delete F[O]},t.rule_like=function(O,L){if(L===O||L==="@")return!0;if(L==="number")return typeof O=="number";if(L==="string")return typeof O=="string";if(L==="array")return Array.isArray(O)&&!t.is_logic(O);if(t.is_logic(L)){if(t.is_logic(O)){var b=t.get_operator(L),T=t.get_operator(O);if(b==="@"||b===T)return t.rule_like(t.get_values(O,!1),t.get_values(L,!1))}return!1}if(Array.isArray(L))if(Array.isArray(O)){if(L.length!==O.length)return!1;for(var q=0;q<L.length;q+=1)if(!t.rule_like(O[q],L[q]))return!1;return!0}else return!1;return!1},t}function J(y){return new Date(y)}function $(y){var K=y.split("-").map(Number),t=r()(K,2),F=t[0],O=t[1];return new Date(F,O-1)}function h(y){var K=parseInt(y.slice(0,4)),t=parseInt(y.slice(5,6)),F=(t-1)*3;return new Date(K,F)}function M(y){var K=parseInt(y);return new Date(K,0)}function p(y){var K=Array.isArray(y)?y[1]:y;return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(K)?new Date(K):/^\d{4}-\d{2}-\d{2}$/.test(K)?J(K):/^\d{4}-\d{2}$/.test(K)?$(K):/^\d{4}Q[1-4]$/.test(K)?h(K):/^\d{4}$/.test(K)?M(K):null}var P=function(K,t){var F,O=/{{(.*?)}}/,L=K==null||(F=K.match)===null||F===void 0?void 0:F.call(K,O);if(L){var b=C().get(t,L[1]);return C().isFunction(b)?b():b}else return K};function v(y){if(f()(y)!=="object"||y===null)return null;for(var K in y)if(Object.prototype.hasOwnProperty.call(y,K))return Object.prototype.toString.call(y[K])==="[object Object]"&&y[K]!==null?v(y[K]):{key:K,value:y[K]};return null}var U=function(K){var t=j(K),F=(0,n.findIndex)(t,function(L,b,T){if(L.includes("$")&&b>0)return!0}),O=t.slice(0,F);return O};function j(y){var K=[];function t(F){Object.keys(F).sort().forEach(function(O){K.push(O),F[O]&&f()(F[O])==="object"&&t(F[O])})}return t(y),K}var c=function(){var y=m()(i()().mark(function K(t){var F,O,L,b,T,q,ne;return i()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return F=t.ruleGroup,O=t.variables,L=t.localVariables,b=t.variableNameOfLeftCondition,T=Object.keys(F)[0]||"$and",q=F[T],ne=q.map(function(){var W=m()(i()().mark(function Q(fe){var X,ue,be,ge,me,Se,ie,ee,ce,ve,Z,le,xe,Me,Ae;return i()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(!("$and"in fe||"$or"in fe)){Ee.next=4;break}return Ee.next=3,c({ruleGroup:fe,variables:O,localVariables:L});case 3:return Ee.abrupt("return",Ee.sent);case 4:if(X=v(fe),ue=X==null?void 0:X.key,ue){Ee.next=8;break}return Ee.abrupt("return",!0);case 8:return be=d(U(fe),b),ge=O.parseVariable(be,L,{doNotRequest:!0}).then(function(Oe){var Pe=Oe.value;return Pe}),me=(0,o.cG)(X==null?void 0:X.value)?[O.parseVariable(X==null?void 0:X.value,L).then(function(Oe){var Pe=Oe.value;return Pe}),ge]:[X==null?void 0:X.value,ge],Ee.prev=11,Se=V(),Ee.next=15,Promise.all(me);case 15:return ie=Ee.sent,ee=r()(ie,2),ce=ee[0],ve=ee[1],Ee.next=21,O.getCollectionField(be,L);case 21:return Z=Ee.sent,le=(0,a.J)(ve,{targetCollectionField:Z}),xe=(0,a.J)(ce,{targetCollectionField:Z}),Z!=null&&Z.type&&["datetime","date","datetimeNoTz","dateOnly","unixTimestamp"].includes(Z.type)&&le&&(Me=(0,D.CE)(xe),Ae=(0,I.getPickerFormat)(Me),le=(0,I.dayjs)(le).format(Ae)),Ee.abrupt("return",Se.apply(g()({},ue,[le,xe])));case 28:throw Ee.prev=28,Ee.t0=Ee.catch(11),Ee.t0;case 31:case"end":return Ee.stop()}},Q,null,[[11,28]])}));return function(Q){return W.apply(this,arguments)}}()),Y.next=6,Promise.all(ne);case 6:if(ne=Y.sent,T!=="$and"){Y.next=11;break}return Y.abrupt("return",(0,n.every)(ne,function(W){return W}));case 11:return Y.abrupt("return",(0,n.some)(ne,function(W){return W}));case 12:case"end":return Y.stop()}},K)}));return function(t){return y.apply(this,arguments)}}();function d(y){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(K,".").concat(y.join(".")," }}")}var l=function(K){var t={};return K.map(function(F){t[F.name]=F.ctx}),t};function S(y,K,t,F,O){return G.apply(this,arguments)}function G(){return G=m()(i()().mark(function y(K,t,F,O,L){var b,T,q,ne,oe,Y,W,Q,fe;return i()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!(t&&K==="handlebars")){ue.next=19;break}return ue.prev=1,q=I.Handlebars.compile(t),ne=l(O),oe=(F==null||(b=F.ctxRef)===null||b===void 0?void 0:b.current)||{},Y=oe.$nDate,W={},Object.keys(Y||{}).map(function(be){W[be]=Y[be]()}),Q=q(u()(u()(u()({},F==null||(T=F.ctxRef)===null||T===void 0?void 0:T.current),ne),{},{$nDate:W})),ue.next=10,L(Q);case 10:return ue.abrupt("return",ue.sent);case 13:return ue.prev=13,ue.t0=ue.catch(1),console.log(ue.t0),ue.abrupt("return",t);case 17:ue.next=32;break;case 19:return ue.prev=19,ue.next=22,(0,N.replaceVariableValue)(t,F,O);case 22:return fe=ue.sent,ue.next=25,L(fe);case 25:return ue.abrupt("return",ue.sent);case 28:return ue.prev=28,ue.t1=ue.catch(19),console.log(ue.t1),ue.abrupt("return",t);case 32:case"end":return ue.stop()}},y,null,[[1,13],[19,28]])})),G.apply(this,arguments)}},25145:function(We,se,e){"use strict";e.d(se,{u:function(){return a}});var H=e(97857),u=e.n(H),w=e(5574),i=e.n(w),x=e(80844),g=e(96486),B=e(67294),r=e(7105),z=e(75585),m=e(22891),A={type:"void","x-component":"Action.Container","x-action":"view",title:'{{ t("View record") }}',"x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},f=e(94804),I=e(57105),n=e(73691),C=e(85893),N=function(){var E=(0,x.useFieldSchema)(),V=(0,r.ngQ)(),J=V.insertAfterBegin,$=(0,B.useCallback)(function(h){var M=E.reduceProperties(function(p,P){return P["x-component"]==="Action.Container"?P:p},null);M||J((0,g.cloneDeep)(h))},[E,J]);return $},o=function(E){return E["x-component"]==="Action.Container"};function a(D){return function(E){var V=(0,B.useState)(!1),J=i()(V,2),$=J[0],h=J[1],M=(0,B.useState)(!1),p=i()(M,2),P=p[0],v=p[1],U=N(),j=(0,f.Kx)(),c=(0,r.XCj)(),d=(0,x.useField)(),l=(0,x.useFieldSchema)(),S=(l==null?void 0:l["x-component-props"])||{},G=S.enableLink,y=S.openMode,K=S.openSize,t=(0,m.ES)(),F=t.visibleWithURL,O=t.setVisibleWithURL,L=(0,m.ES)(),b=L.openPopup,T=(0,B.useRef)(!1),q=(0,B.useRef)(l);q.current=l;var ne=(0,B.useCallback)(function(){return q.current},[]),oe=(0,B.useCallback)(function(){l.properties||(U(A),T.current=!0),T.current?(setTimeout(function(){b({customActionSchema:ne()})}),T.current=!1):l.properties&&b()},[l,U,b,ne]),Y=c.setSubmitted,W=(0,B.useCallback)(function(Q){h==null||h(Q),O==null||O(Q)},[O]);return G?(0,C.jsx)(z.OA,{visible:!1,children:(0,C.jsxs)(r.EIK,{button:(0,C.jsx)(D,u()({},E)),visible:$||F,setVisible:W,formValueChanged:P,setFormValueChanged:v,openMode:y,openSize:K,containerRefKey:"field-popup",fieldSchema:l,setSubmitted:Y,children:[(0,C.jsx)(f.YQ,{name:j.name,children:(0,C.jsx)(r.G0E,{children:(0,C.jsx)(n.Rm,{children:(0,C.jsx)(I.sq,{onlyRenderProperties:!0,basePath:d==null?void 0:d.address,schema:l,filterProperties:o})})})}),(0,C.jsx)("a",{onClick:oe,children:(0,C.jsx)(D,u()({},E))})]})}):(0,C.jsx)(D,u()({},E))}}},61736:function(We,se,e){"use strict";e.d(se,{D:function(){return u}});var H=e(67294),u=(0,H.createContext)({});u.displayName="SchemaComponentContext.Provider"},44245:function(We,se,e){"use strict";e.d(se,{R:function(){return n}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(86201),g=e(80844),B=e(67294),r=e(47844),z=e(85893),m=["children","form"],A=["children"],f=function(N){var o=N.children,a=N.form,D=i()(N,m),E=(0,B.useContext)(g.SchemaOptionsContext),V=(0,B.useContext)(g.SchemaExpressionScopeContext),J=u()(u()({},E==null?void 0:E.scope),V),$=u()({},E==null?void 0:E.components);return(0,z.jsx)(g.FormProvider,u()(u()({},D),{},{form:a,children:(0,z.jsx)(r.G,{components:$,scope:J,children:o})}))},I=function(N){var o=N.children,a=i()(N,A),D=(0,B.useContext)(g.SchemaOptionsContext),E=(0,B.useContext)(g.SchemaExpressionScopeContext),V=u()(u()({},D==null?void 0:D.scope),E),J=u()({},D==null?void 0:D.components),$=(0,B.useMemo)(function(){return(0,x.createForm)()},[]);return(0,z.jsx)(g.FormProvider,u()(u()({},a),{},{form:$,children:(0,z.jsx)(r.G,{components:J,scope:V,children:o})}))},n=function(N){return N.form?(0,z.jsx)(f,u()({},N)):(0,z.jsx)(I,u()({},N))}},93587:function(We,se,e){"use strict";e.d(se,{m:function(){return N}});var H=e(97857),u=e.n(H),w=e(86201),i=e(57953),x=e(67294),g=e(54195),B=e(21044),r=e(84577),z=e(44245),m=e(93323),A=e(12174),f=function(a){var D=a.uid,E=a.type,V=E===void 0?"getJsonSchema":E,J=a.onSuccess,$={url:"/uiSchemas:".concat(V,"/").concat(D)},h=(0,A.QT)($,{refreshDeps:[D],onSuccess:function(v){J&&J(v)}}),M=h.data,p=h.loading;return{schema:M==null?void 0:M.data,loading:p}},I=e(85893),n=function(a){return a},C=function(a){var D=a.noForm,E=a.onlyRenderProperties,V=a.hidden,J=a.scope,$=a.uid,h=a.components,M=a.onSuccess,p=a.NotFoundPage,P=a.schemaTransform,v=P===void 0?n:P,U=a.onPageNotFind,j=E?"getProperties":"getJsonSchema",c=(0,x.useMemo)(function(){return(0,w.createForm)()},[$]),d=f({uid:$,type:j,onSuccess:function(t){M&&M(t)}}),l=d.schema,S=d.loading,G=(0,r.Co)(p),y=(0,g.Kk)();return y||S||V?(0,I.jsx)(i.Z,{style:{width:"100%",marginTop:20},delay:B.fw}):!l||Object.keys(l).length===0?(U&&U(),G?(0,I.jsx)(G,{}):null):D?(0,I.jsx)(m.n,{components:h,scope:J,schema:v(l||{})}):(0,I.jsx)(z.R,{form:c,children:(0,I.jsx)(m.n,{components:h,scope:J,schema:v(l||{})})})},N=(0,x.memo)(function(o){return o.uid?(0,I.jsx)(C,u()({},o)):null});N.displayName="RemoteSchemaComponent"},93323:function(We,se,e){"use strict";e.d(se,{A:function(){return E},n:function(){return $}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=e(9783),g=e.n(x),B=e(80844),r=e(96486),z=e.n(r),m=e(67294),A=e(57105),f=e(61736),I=e(47844),n=e(85893),C=["components","scope","schema","distributed","onChange"],N=["schema"],o=["memoized"];function a(h){return B.Schema.isSchemaInstance(h)?h:h!=null&&h.name?new B.Schema({type:"object",properties:g()({},h.name,h)}):new B.Schema(h)}var D=function(M){return(0,m.useMemo)(function(){return a(M)},[])},E=(0,m.createContext)({onChange:z().noop}),V=(0,m.memo)(function(h){var M=h.components,p=h.scope,P=h.schema,v=h.distributed,U=h.onChange,j=i()(h,C),c=(0,m.useContext)(f.D),d=(0,m.useMemo)(function(){return a(P)},[P]),l=(0,m.useMemo)(function(){return u()(u()({},c),{},{distributed:c.distributed==!1?!1:v,refresh:c.refresh||z().noop})},[c,v]),S=(0,m.useContext)(E),G=S.onChange,y=(0,m.useMemo)(function(){return{onChange:function(){U==null||U(d),G==null||G()}}},[U,G,d]);return(0,n.jsx)(E.Provider,{value:y,children:(0,n.jsx)(f.D.Provider,{value:l,children:(0,n.jsx)(I.G,{inherit:!0,components:M,scope:p,children:(0,n.jsx)(A.sq,u()(u()({},j),{},{schema:d,isUseFormilyField:!0}))})})})});V.displayName="RecursionSchemaComponent";var J=(0,m.memo)(function(h){var M=h.schema,p=i()(h,N),P=D(M);return(0,n.jsx)(V,u()(u()({},p),{},{schema:P}))});J.displayName="MemoizedSchemaComponent";var $=(0,m.memo)(function(h){var M=h.memoized,p=i()(h,o);return M?(0,n.jsx)(J,u()({},p)):(0,n.jsx)(V,u()({},p))});$.displayName="SchemaComponent"},47844:function(We,se,e){"use strict";e.d(se,{B:function(){return g},G:function(){return B}});var H=e(97857),u=e.n(H),w=e(80844),i=e(67294),x=e(85893),g=function(){var z=(0,i.useContext)(w.SchemaOptionsContext);return z||{}},B=(0,i.memo)(function(r){var z=r.children,m=g(),A=(0,i.useMemo)(function(){return u()(u()({},m.components),r.components)},[m.components,r.components]),f=(0,i.useMemo)(function(){return u()(u()({},m.scope),r.scope)},[m.scope,r.scope]),I=(0,i.useMemo)(function(){return{scope:f,components:A}},[f,A]);return(0,x.jsx)(w.SchemaOptionsContext.Provider,{value:I,children:(0,x.jsx)(w.SchemaComponentsContext.Provider,{value:A,children:(0,x.jsx)(w.ExpressionScope,{value:f,children:z})})})});B.displayName="SchemaComponentOptions"},70993:function(We,se,e){"use strict";e.d(se,{_b:function(){return h},RV:function(){return M.R},m1:function(){return p.m},n6:function(){return P.n},AT:function(){return P.A},G0:function(){return v.G},a$:function(){return q},Tz:function(){return b},Bs:function(){return v.B}});var H=e(15009),u=e.n(H),w=e(99289),i=e.n(w),x=e(12444),g=e.n(x),B=e(72004),r=e.n(B),z=e(31996),m=e.n(z),A=e(26037),f=e.n(A),I=e(51947),n=e(83062),C=e(15867),N=e(67294),o=e(49218),a=e(26793),D=e(7105),E=e(68230),V=e(85893),J={backgroundColor:"var(--colorSettings) !important"},$={backgroundColor:"transparent"},h=function(){var Y=(0,D.ngQ)(),W=Y.designable,Q=Y.setDesignable,fe=(0,a.$)(),X=fe.t,ue=(0,E.d)(),be=ue.token,ge=W?J:$;return(0,o.y1)("Ctrl+Shift+U",function(){return Q(!W)},[W]),(0,V.jsx)(n.Z,{title:X("UI Editor"),children:(0,V.jsx)(C.ZP,{"data-testid":"ui-editor-button",icon:(0,V.jsx)(I.Z,{style:{color:be.colorTextHeaderMenu}}),title:X("UI Editor"),style:ge,onClick:function(){Q(!W)}})})},M=e(44245),p=e(93587),P=e(93323),v=e(47844),U=e(97857),j=e.n(U),c=e(5574),d=e.n(c),l=e(86201),S=e(80844),G=e(84327),y=e(96486),K=e.n(y),t=e(61736),F=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(Y).concat((0,G.uid)())};S.Schema.silent(!0);var O={},L={silent:!0,compile:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=function(){if(L.silent)try{return new Function("$root","with($root) { return (".concat(Y,"); }"))(W)}catch{return"{{".concat(Y,"}}")}else return new Function("$root","with($root) { return (".concat(Y,"); }"))(W)};return O[Y]?O[Y]:Y.trim().startsWith("t(")?(O[Y]=Q(),O[Y]):Q()}};S.Schema.registerCompiler(L.compile);var b=function(Y){var W=Y.designable,Q=Y.onDesignableChange,fe=Y.components,X=Y.children,ue=(0,N.useContext)(t.D),be=(0,v.B)(),ge=(0,N.useState)(function(){return(0,G.uid)()}),me=d()(ge,2),Se=me[0],ie=me[1],ee=(0,N.useMemo)(function(){return Y.form||(0,l.createForm)()},[Se]),ce=(0,a.$)(),ve=ce.t,Z=(0,N.useMemo)(function(){return j()(j()({},Y.scope),{},{t:ve,randomString:F})},[Y.scope,ve,be==null?void 0:be.scope]),le=(0,N.useState)(W),xe=d()(le,2),Me=xe[0],Ae=xe[1],Re=(0,N.useMemo)(function(){return typeof W=="boolean"?W:Me},[W,Me,ue.designable]),Ee=(0,N.useMemo)(function(){return function(_e){typeof Re!="boolean"&&Ae(_e),Q==null||Q(_e)}},[Re,Q]),Oe=(0,N.useCallback)(function(){ie((0,G.uid)())},[]),Pe=(0,N.useMemo)(function(){return{scope:Z,components:fe,reset:Oe,refresh:K().noop,designable:Re,setDesignable:Ee}},[fe,Re,Oe,Z,Ee]);return(0,V.jsx)(t.D.Provider,{value:Pe,children:(0,V.jsx)(S.FormProvider,{form:ee,children:(0,V.jsx)(v.G,{inherit:!0,scope:Z,components:fe,children:X})})})};b.displayName="SchemaComponentProvider";var T=e(31601),q=function(oe){m()(W,oe);var Y=f()(W);function W(){return g()(this,W),Y.apply(this,arguments)}return r()(W,[{key:"load",value:function(){var Q=i()(u()().mark(function X(){return u()().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:this.addComponents();case 1:case"end":return be.stop()}},X,this)}));function fe(){return Q.apply(this,arguments)}return fe}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:h})}}]),W}(T.S),ne=null},84577:function(We,se,e){"use strict";e.d(se,{zz:function(){return B.zz},Pl:function(){return B.Pl},oB:function(){return B.oB},lI:function(){return u},hi:function(){return V.hi},eJ:function(){return w.e},Co:function(){return g},aZ:function(){return V.aZ},ng:function(){return B.ng},et:function(){return r.e},cL:function(){return N},fd:function(){return J},Cl:function(){return A},vH:function(){return D},sR:function(){return B.sR},wN:function(){return E.w},Dm:function(){return I},fM:function(){return V.fM}});var H=e(67294),u=function(h){var M=(0,H.useRef)(null);return(0,H.useEffect)(function(){return M.current&&h!==M.current&&M.current.onUnmount(),M.current=h,h.onMount(),function(){h.onUnmount()}},[h]),h},w=e(96365),i=e(80844),x=e(96486),g=function(h,M){var p=(0,H.useContext)(i.SchemaOptionsContext),P=p.components;return h?typeof h!="string"?h:(0,x.get)(P,h)||M:M},B=e(94516),r=e(98146),z=e(97857),m=e.n(z),A=function(h){var M=(0,H.useContext)(i.SchemaOptionsContext),p=(0,H.useContext)(i.SchemaExpressionScopeContext),P=(0,H.useRef)();return P.current=p,h.toFieldProps(m()(m()({},M),{},{get scope(){return m()(m()({},M.scope),P.current)}}))},f=e(61736);function I(){return(0,H.useContext)(f.D)}var n=e(26793),C=e(6145),N=function(){var h,M=(0,C.useCollectionManager_deprecated)(),p=M.getCollectionJoinField,P=M.getCollection,v=(0,i.useFieldSchema)(),U=(0,C.useCollection_deprecated)(),j=U.getField,c=j(v.name)||p(v["x-collection-field"]),d=(0,n.$)(),l=d.t,S=((h=v["x-component-props"])===null||h===void 0?void 0:h.fieldNames)||{},G=S.label,y=(0,H.useMemo)(function(){if(!(!c||!(c!=null&&c.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(c.interface)){var K=P(c.target);if((K==null?void 0:K.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,G]);return y},o=e(35746),a=e(58837),D=function(){var h,M=(0,i.useField)(),p=(0,i.useFieldSchema)(),P=(0,a.Kx)(),v=(0,o.d9)(),U=(P==null?void 0:P.getField(p.name))||(v==null?void 0:v.getCollectionField(p["x-collection-field"])),j=(0,w.e)();(0,H.useEffect)(function(){if(!(M!=null&&M.title)){var c;M.title=j(U==null||(c=U.uiSchema)===null||c===void 0?void 0:c.title)}},[U==null||(h=U.uiSchema)===null||h===void 0?void 0:h.title])},E=e(9780),V=e(18686),J=function(h){var M,p=(0,n.$)(),P=p.t,v=(0,C.useCollectionManager_deprecated)(),U=v.getCollectionJoinField,j=v.getCollection,c=(0,i.useFieldSchema)(),d=(h==null?void 0:h.fieldSchema)||c,l=(0,i.useField)(),S=(0,i.useForm)(),G=(d==null?void 0:d["x-read-pretty"])||l.readPretty||S.readPretty,y=h==null?void 0:h.fieldSchema,K=(0,C.useCollection_deprecated)(),t=K.getField,F=(h==null?void 0:h.collectionField)||t(d.name)||U(d["x-collection-field"]),O=((M=d["x-component-props"])===null||M===void 0?void 0:M.fieldNames)||{},L=O.label,b=(0,H.useMemo)(function(){if(!(!F||!(F!=null&&F.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm","attachmentURL"].includes(F.interface)){var T=j(F.target);if((T==null?void 0:T.template)==="file")return G?[{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((T==null?void 0:T.template)==="tree"&&["m2m","o2m","m2o"].includes(F.interface))return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"},!y&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&["m2m","o2m"].includes(F.interface)&&{label:P("Sub-table"),value:"SubTable"},!y&&{label:P("Cascade Select"),value:"CascadeSelect"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];switch(F.interface){case"o2m":return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-table"),value:"SubTable"},!y&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"},!y&&{label:P("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"},!y&&{label:P("Sub-table"),value:"SubTable"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-table"),value:"SubTable"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}];default:return G?[{label:P("Title"),value:"Select"},{label:P("Tag"),value:"Tag"},!y&&{label:P("Sub-details"),value:"Nester"}]:[{label:P("Select"),value:"Select"},{label:P("Record picker"),value:"Picker"},!y&&{label:P("Sub-form"),value:"Nester"},{label:P("Sub-form(Popover)"),value:"PopoverNester"}]}}},[P,F==null?void 0:F.interface,L]);return(b||[]).filter(Boolean)}},18686:function(We,se,e){"use strict";e.d(se,{aZ:function(){return $},fM:function(){return M},hi:function(){return h}});var H=e(5574),u=e.n(H),w=e(97857),i=e.n(w),x=e(80844),g=e(83204),B=e(9361),r=e(96486),z=e.n(r),m=e(67294),A=e(89250),f=e(7105),I=e(21143),n=e(10097),C=e(1892),N=e(28561),o=function(v,U,j,c,d){return d.includes("/popups/")?2*c.paddingContentVertical+22+c.paddingPageVertical:v?c.paddingContentHorizontalLG:j?U?c.controlPaddingHorizontal+3*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.paddingContentHorizontalLG+12:U?c.paddingSM+c.controlHeight+c.marginXS+2*c.controlPaddingHorizontalSM+22+c.paddingContentHorizontalLG:c.controlHeight+c.marginXS+(c.paddingXXS+2)*2+c.paddingContentHorizontalLG},a=function(v){var U=B.Z.useToken(),j=U.token,c=(0,f.ngQ)(),d=c.designable,l=(0,n.useBlockHeightProps)(),S=l.heightProps,G=(0,A.useLocation)(),y=v||S||{},K=y.disablePageHeader,t=y.enablePageTabs,F=y.hidePageTitle,O=j.sizeXXL-2,L=d?j.controlHeight+2*j.paddingContentHorizontalLG:1*j.paddingContentHorizontalLG,b=o(K,t,F,j,G.pathname);return O+b+L},D=function(){var v=B.Z.useToken(),U=v.token,j=(0,f.ngQ)(),c=j.designable,d=U.paddingContentVerticalLG+U.margin+2*U.paddingContentVertical+24,l=c?U.controlHeight+2*U.paddingContentHorizontalLG:1*U.paddingContentHorizontalLG;return d+l},E=function(v){var U=(0,x.useFieldSchema)(),j=p(U),c=a(v),d=D();return j?d:c},V=["users_jobs","approvals","approvalRecords"],J=function(){var v,U=B.Z.useToken(),j=U.token,c=(0,n.useBlockHeightProps)(),d=c.heightProps,l=(0,C.Si)(),S=l.heightProps,G=(0,f.ngQ)(),y=G.designable,K=(0,x.useFieldSchema)(),t=S||d,F=d.titleHeight,O=E(t),L=(0,I.useCollection)(),b=L.name,T=t.heightMode,q=t.height,ne=t.title;if(!(!(t!=null&&t.heightMode)||T===N.j.DEFAULT)){var oe=Object.keys(((v=K.parent.properties.actions)===null||v===void 0?void 0:v.properties)||{}).length>0,Y=j.controlHeight+j.padding+j.marginLG,W=oe||y?j.controlHeight+2*j.marginLG:j.marginLG,Q=(y&&!V.includes(b)?j.controlHeight:22)+2*j.padding+1,fe=ne?F:0;return T===N.j.FULL_HEIGHT?window.innerHeight-O-fe-Q-W-Y:q-fe-W-Q-Y}},$=function(v){var U=(0,n.useBlockHeightProps)(),j=U.heightProps,c=E(),d=j||{},l=d.heightMode,S=d.height,G=d.title,y=d.titleHeight,K=G?y:0;if(!(!(j!=null&&j.heightMode)||l===N.j.DEFAULT)){if(l===N.j.FULL_HEIGHT){var t=window.innerHeight-c;return console.log(t),v!=null&&v.removeBlockHeaderHeight&&(t=t-K),v!=null&&v.innerExtraHeight&&(t=t-v.innerExtraHeight),t}return S}},h=function(){var v=(0,x.useFieldSchema)(),U=(0,m.useMemo)(function(){return(0,n.getPageSchema)(v)},[]),j=(U==null?void 0:U["x-component-props"])||{},c=j.disablePageHeader,d=j.enablePageTabs,l=j.hidePageTitle,S=i()(i()({},v==null?void 0:v["x-component-props"]),{},{disablePageHeader:c,enablePageTabs:d,hidePageTitle:l}),G=E(S),y=S||{},K=y.heightMode,t=y.height;if(!(!(S!=null&&S.heightMode)||K===N.j.DEFAULT))return K===N.j.FULL_HEIGHT?window.innerHeight-G:t},M=function(){var v=(0,m.useState)(),U=u()(v,2),j=U[0],c=U[1],d=(0,m.useRef)(null),l=J(),S=(0,m.useCallback)((0,r.debounce)(function(){var y;if(d.current){var K=d.current.getBoundingClientRect(),t=(y=d.current.querySelector(".ant-table"))===null||y===void 0?void 0:y.getBoundingClientRect();t&&c(K.width)}},100),[l]),G=(0,m.useCallback)(function(y){d.current=y&&y.children?y.children[0]:null,S()},[S]);return(0,g.Z)("resize",S),{height:l,width:j,tableSizeRefCallback:G}},p=function P(v){if(!v)return null;if(v["x-component"]==="Action.Container"){var U;return(v==null||(U=v.parent["x-component-props"])===null||U===void 0?void 0:U.openMode)!=="page"}return P(v.parent)}},96365:function(We,se,e){"use strict";e.d(se,{e:function(){return z}});var H=e(97857),u=e.n(H),w=e(52677),i=e.n(w),x=e(80844),g=e(67294),B={},r=function(A){var f=/{{.*?}}/g;return f.test(A)},z=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},f=A.noCache,I=(0,g.useContext)(x.SchemaOptionsContext),n=(0,g.useContext)(x.SchemaExpressionScopeContext);return function(C,N){var o=!1,a;if(typeof C=="string"&&C.startsWith("{{")&&(o=!0,a=C),C&&i()(C)==="object"&&!(0,g.isValidElement)(C)){try{a=JSON.stringify(C)}catch(E){return console.warn("Failed to stringify:",E),C}if(B[a])return B[a];o=r(a)}if(Array.isArray(C)){try{a=JSON.stringify(C)}catch(E){return console.warn("Failed to stringify:",E),C}if(B[a])return B[a];o=r(a)}if(o){var D=u()(u()(u()({},I.scope),n),N);if(!a)return x.Schema.compile(C,D);try{return f?x.Schema.compile(C,D):(B[a]=B[a]||x.Schema.compile(C,D),B[a])}catch(E){return console.log("useCompile error",C,E),x.Schema.compile(C,D)}}return C}}},94516:function(We,se,e){"use strict";e.d(se,{zz:function(){return b},Pl:function(){return y},oB:function(){return O},ng:function(){return q},sR:function(){return T}});var H=e(5574),u=e.n(H),w=e(19632),i=e.n(w),x=e(15009),g=e.n(x),B=e(99289),r=e.n(B),z=e(12444),m=e.n(z),A=e(72004),f=e.n(A),I=e(9783),n=e.n(I),C=e(97857),N=e.n(C),o=e(80844),a=e(84327),D=e(90105),E=e(45360),V=e(50361),J=e.n(V),$=e(27361),h=e.n($),M=e(36968),p=e.n(M),P=e(67294),v=e(26793),U=e(12174),j=e(57105),c=e(98902),d=e(61736);function l(ne,oe){if(ne)return ne["x-app-version"]||(ne["x-app-version"]=oe),Object.keys(ne.properties||{}).forEach(function(Y){var W;l((W=ne.properties)===null||W===void 0?void 0:W[Y],oe)}),ne}var S=JSON.parse('{"i8":"1.6.0-alpha.25"}'),G=e(85893);function y(ne){return new b(ne)}var K=function ne(oe){oe&&(oe["x-uid"]||(oe["x-uid"]=(0,a.uid)()),Object.keys(oe.properties||{}).forEach(function(Y){ne(oe.properties[Y])}))},t=function(oe){return oe},F=function(oe,Y){if(!(!oe||!Y)){for(var W in Y)if(Object.prototype.hasOwnProperty.call(Y,W)){var Q=Y[W];if(Q!==(oe==null?void 0:oe[W]))return!1}return!0}},O=function(oe,Y){if(oe["x-uid"]&&oe["x-uid"]===Y["x-uid"])return[null,oe.toJSON()];var W=oe.toJSON(),Q=N()(N()({},W),{},{properties:{}}),fe=null,X=function ue(be,ge){Object.keys(be||{}).forEach(function(me){var Se=be[me];if(Se["x-uid"]===Y["x-uid"]){fe=be[me];return}else ge.properties[me]=N()(N()({},Se),{},{properties:{}}),ue(Se==null?void 0:Se.properties,ge.properties[me])})};return X(W.properties,Q),[Q,fe]},L=function(oe){return oe},b=function(){function ne(oe){m()(this,ne),n()(this,"current",void 0),n()(this,"options",void 0),n()(this,"appVersion",void 0),n()(this,"events",{}),this.options=oe,this.current=oe.current,this.appVersion=oe.appVersion}return f()(ne,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var Y=this,W=this.options,Q=W.api,fe=W.t,X=fe===void 0?L:fe;if(Q){var ue=function(ge){if(!ge)return[];var me=Object.values(ge.properties).length,Se=[];return ge.mapProperties(function(ie){ie["x-component-props"]=ie["x-component-props"]||{},ie["x-component-props"].width=100/me,ie["x-uid"]&&Se.push({"x-uid":ie["x-uid"],"x-component-props":ie["x-component-props"]})}),ge["x-uid"]&&Se.length?Se:[]};this.on("insertAdjacent",function(){var be=r()(g()().mark(function ge(me){var Se,ie,ee,ce,ve,Z,le,xe,Me,Ae;return g()().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(ie=me.onSuccess,ee=me.current,ce=me.position,ve=me.schema,Z=me.wrap,le=me.wrapped,xe=me.removed,Me=[],(le==null?void 0:le["x-component"])==="Grid.Col"&&(Me=Me.concat(ue(le.parent))),(xe==null?void 0:xe["x-component"])==="Grid.Col"&&(Me=Me.concat(ue(xe.parent))),Y.refresh(),ee["x-uid"]){Ee.next=7;break}return Ee.abrupt("return");case 7:return Ee.next=9,Q.request({url:"/uiSchemas:insertAdjacent/".concat(ee["x-uid"],"?position=").concat(ce),method:"post",data:{schema:l(ve,Y.appVersion),wrap:Z}});case 9:if(Ae=Ee.sent,!Me.length){Ee.next=13;break}return Ee.next=13,Q.request({url:"/uiSchemas:batchPatch",method:"post",data:Me});case 13:if(!(xe!=null&&xe["x-uid"])){Ee.next=16;break}return Ee.next=16,Q.request({url:"/uiSchemas:remove/".concat(xe["x-uid"]),method:"post"});case 16:ie==null||ie(Ae==null||(Se=Ae.data)===null||Se===void 0?void 0:Se.data),E.ZP.success(X("Saved successfully"),.2);case 18:case"end":return Ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("patch",function(){var be=r()(g()().mark(function ge(me){var Se;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(Se=me.schema,Y.refresh(),Se!=null&&Se["x-uid"]){ee.next=4;break}return ee.abrupt("return");case 4:return ee.next=6,Q.request({url:"/uiSchemas:patch",method:"post",data:N()({},Se)});case 6:E.ZP.success(X("Saved successfully"),.2);case 7:case"end":return ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var be=r()(g()().mark(function ge(me){var Se;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(Se=me.schema,Se!=null&&Se["x-uid"]){ee.next=3;break}return ee.abrupt("return");case 3:return ee.next=5,Q.request({url:"/uiSchemas:initializeActionContext",method:"post",data:N()({},Se)});case 5:case"end":return ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("batchPatch",function(){var be=r()(g()().mark(function ge(me){var Se;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return Se=me.schemas,Y.refresh(),ee.next=4,Q.request({url:"/uiSchemas:batchPatch",method:"post",data:Se});case 4:E.ZP.success(X("Saved successfully"),.2);case 5:case"end":return ee.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}()),this.on("remove",function(){var be=r()(g()().mark(function ge(me){var Se,ie;return g()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(Se=me.removed,ie=[],(Se==null?void 0:Se["x-component"])==="Grid.Col"&&(ie=ue(Se.parent)),Y.refresh(),Se!=null&&Se["x-uid"]){ce.next=6;break}return ce.abrupt("return");case 6:return ce.next=8,Q.request({url:"/uiSchemas:remove/".concat(Se["x-uid"]),method:"post"});case 8:if(!ie.length){ce.next=11;break}return ce.next=11,Q.request({url:"/uiSchemas:batchPatch",method:"post",data:ie});case 11:E.ZP.success(X("Saved successfully"),.2);case 12:case"end":return ce.stop()}},ge)}));return function(ge){return be.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(Y){Y.type||(Y.type="void"),Y.name||(Y.name=(0,a.uid)()),this.current["x-uid"]&&K(Y)}},{key:"on",value:function(Y,W){this.events[Y]||(this.events[Y]=[]),this.events[Y].push(W)}},{key:"emit",value:function(){var oe=r()(g()().mark(function W(Q){var fe=this,X,ue,be,ge,me,Se=arguments;return g()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(this.events[Q]){ee.next=2;break}return ee.abrupt("return");case 2:for(X=Se.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=Se[be];return ge=ue[0],me=ue.slice(1),ee.abrupt("return",Promise.all(this.events[Q].map(function(ce){return ce.bind(fe).apply(void 0,[N()({current:fe.current},ge)].concat(i()(me)))})));case 5:case"end":return ee.stop()}},W,this)}));function Y(W){return oe.apply(this,arguments)}return Y}()},{key:"parentsIn",value:function(Y){if(!Y||!o.Schema.isSchemaInstance(Y))return!1;for(var W=this.current;(Q=W)!==null&&Q!==void 0&&Q.parent;){var Q;if(W.parent===Y)return!0;W=W.parent}return!1}},{key:"refresh",value:function(Y){var W=this.options.refresh;return W==null?void 0:W(Y)}},{key:"deepMerge",value:function(Y){var W=this,Q={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly"},fe={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(X){Q[X]?(W.current[X]=Y[X],W.updateModel(Q[X],Y[X])):fe[X]?Object.keys(Y[X]).forEach(function(ue){p()(W.current,[X,ue],Y[X][ue]),W.updateModel([fe[X],ue],Y[X][ue])}):W.current[X]=Y[X]}),this.emit("patch",{schema:Y})}},{key:"getSchemaAttribute",value:function(Y,W){return h()(this.current,Y,W)}},{key:"shallowMerge",value:function(Y){var W=this,Q={title:"title",description:"description",default:"initialValue",readOnly:"readOnly",writeOnly:"editable",enum:"dataSource","x-pattern":"pattern","x-display":"display","x-validator":"validator","x-decorator":"decorator","x-component":"component","x-reactions":"reactions","x-content":"content","x-visible":"visible","x-hidden":"hidden","x-disabled":"disabled","x-editable":"editable","x-read-only":"readOnly","x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(Y).forEach(function(fe){W.current[fe]=Y[fe],Q[fe]&&W.updateModel(Q[fe],Y[fe])}),this.emit("patch",{schema:Y})}},{key:"updateModel",value:function(Y,W){var Q=function(X){p()(X,Y,W)};this.model&&Q(this.model),this.query&&this.query.take(Q)}},{key:"insertAdjacent",value:function(Y,W){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(Y){case"beforeBegin":return this.insertBeforeBegin(W,Q);case"afterBegin":return this.insertAfterBegin(W,Q);case"beforeEnd":return this.insertBeforeEnd(W,Q);case"afterEnd":return this.insertAfterEnd(W,Q)}}},{key:"recursiveRemoveIfNoChildren",value:function(Y,W){if(Y){for(var Q=Y,fe,X=W==null?void 0:W.breakRemoveOn;Q;){if(typeof X=="function"){if(X(Q))break}else if(F(Q,X))break;var ue=Object.keys(Q.properties||{}).length;if(ue>0)break;Q.parent&&(fe=Q.parent.removeProperty(Q.name)),Q=Q.parent}return fe}}},{key:"remove",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,X=Y||this.current,ue=X.parent.removeProperty(X.name);if(fe){var be=this.recursiveRemoveIfNoChildren(X.parent,{breakRemoveOn:Q});be&&(ue=be)}return this.emit("remove",{removed:ue})}},{key:"removeWithoutEmit",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=W.breakRemoveOn,fe=W.removeParentsIfNoChildren,X=Y||this.current,ue=X.parent.removeProperty(X.name);if(fe){var be=this.recursiveRemoveIfNoChildren(X.parent,{breakRemoveOn:Q});be&&(ue=be)}return ue}},{key:"insertBeforeBeginOrAfterEnd",value:function(Y){var W=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)&&o.Schema.isSchemaInstance(Y)&&this.current.parent===Y.parent){var fe=0,X=0;return this.current.parent.mapProperties(function(ue,be,ge){W.current.name===be&&(X=ge),Y.name===be&&(fe=ge)}),fe>X?this.insertBeforeBegin(Y,Q):this.insertAfterEnd(Y,Q)}}},{key:"insertBeforeBegin",value:function(Y){var W=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var fe={onSuccess:Q.onSuccess},X=Q.wrap,ue=X===void 0?t:X,be=Q.breakRemoveOn,ge=Q.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ge&&(fe.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:be}))}else Y&&(Y=J()(Y));var me={},Se=!1,ie=0,ee=0;this.current.parent.mapProperties(function(Ae,Re){Re===W.current.name&&(ee=ie,Se=!0,++ie),Ae["x-index"]=ie,++ie,Se&&(me[Re]=Ae,W.current.parent.removeProperty(Re))}),this.prepareProperty(Y);var ce=ue(Y),ve=this.current.parent.addProperty(ce.name||(0,a.uid)(),ce);ve["x-index"]=ee,ve.parent=this.current.parent,this.current.parent.setProperties(me);var Z=O(ve,Y),le=u()(Z,2),xe=le[0],Me=le[1];this.emit("insertAdjacent",N()({position:"beforeBegin",schema:Me,wrapped:ce,wrap:xe},fe))}}},{key:"insertAfterBegin",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var Q={onSuccess:W.onSuccess},fe=W.wrap,X=fe===void 0?t:fe,ue=W.breakRemoveOn,be=W.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),be&&(Q.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ue}))}else Y&&(Y=J()(Y));var ge={},me=1;this.current.mapProperties(function(le,xe){le["x-index"]=me,++me,ge[xe]=le}),this.current.properties={},this.prepareProperty(Y);var Se=X(Y),ie=this.current.addProperty(Se.name||(0,a.uid)(),Se);ie["x-index"]=0,ie.parent=this.current,this.current.setProperties(ge);var ee=O(ie,Y),ce=u()(ee,2),ve=ce[0],Z=ce[1];this.emit("insertAdjacent",N()({position:"afterBegin",schema:Z,wrap:ve,wrapped:Se},Q))}}},{key:"insertBeforeEnd",value:function(Y){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){delete Y["x-index"];var Q={onSuccess:W.onSuccess},fe=W.wrap,X=fe===void 0?t:fe,ue=W.breakRemoveOn,be=W.removeParentsIfNoChildren;if(o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),be&&(Q.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:ue}))}else Y&&(Y=J()(Y));this.prepareProperty(Y);var ge=X(Y),me=this.current.addProperty(ge.name||(0,a.uid)(),ge);me.parent=this.current;var Se=O(me,Y),ie=u()(Se,2),ee=ie[0],ce=ie[1];return this.emit("insertAdjacent",N()({position:"beforeEnd",schema:ce,wrap:ee,wrapped:ge},Q))}}},{key:"insertAfterEnd",value:function(Y){var W=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o.Schema.isSchemaInstance(this.current)){var fe={onSuccess:Q==null?void 0:Q.onSuccess},X=Q.wrap,ue=X===void 0?t:X,be=Q.breakRemoveOn,ge=Q.removeParentsIfNoChildren,me=0,Se=0,ie=!1,ee={};if(this.current.parent.mapProperties(function(Ae,Re){Ae["x-index"]=me,Re===W.current.name&&(++me,Se=me,ie=!0),++me,ie&&Re!==W.current.name&&(ee[Re]=Ae,W.current.parent.removeProperty(Re))}),o.Schema.isSchemaInstance(Y)){if(this.parentsIn(Y)){this.emit("error",{code:"parent_is_not_allowed",schema:Y});return}Y.parent.removeProperty(Y.name),ge&&(fe.removed=this.recursiveRemoveIfNoChildren(Y.parent,{breakRemoveOn:be})),Y.parent=null}else Y&&(Y=J()(Y));this.prepareProperty(Y);var ce=ue(Y),ve=this.current.parent.addProperty(ce.name||(0,a.uid)(),ce);ve.parent=this.current.parent,ve["x-index"]=Se,this.current.parent.setProperties(ee);var Z=O(ve,Y),le=u()(Z,2),xe=le[0],Me=le[1];this.emit("insertAdjacent",N()({position:"afterEnd",schema:Me,wrap:xe,wrapped:ce},fe))}}}]),ne}();function T(){var ne=(0,P.useContext)(o.SchemaOptionsContext),oe=(0,P.useMemo)(function(){return(ne==null?void 0:ne.components)||{}},[ne]),Y=function(Q){if(!Q)return null;if(typeof Q!="string")return Q;var fe=h()(oe,Q);return fe||console.error('[nocobase]: Component "'.concat(Q,'" not found')),fe};return Y}function q(){var ne=(0,P.useContext)(d.D),oe=ne.designable,Y=ne.setDesignable,W=ne.refresh,Q=ne.reset,fe=(0,P.useContext)(o.SchemaOptionsContext),X=(0,P.useMemo)(function(){return(fe==null?void 0:fe.components)||{}},[fe]),ue=(0,P.useMemo)(function(){return function(){return(0,G.jsx)(G.Fragment,{})}},[]),be=(0,D.Z)(),ge=(0,j.gR)(),me=(0,j.QJ)(),Se=(0,P.useCallback)(function(xe){W==null||W(),be(),ge==null||ge(xe),me==null||me()},[W,be,ge,me]),ie=(0,o.useField)(),ee=(0,o.useFieldSchema)(),ce=(0,U.LY)(),ve=(0,v.$)(),Z=ve.t,le=(0,P.useMemo)(function(){return y({t:Z,api:ce,refresh:Se,current:ee,model:ie,appVersion:S.i8})},[Z,ce,Se,ee,ie]);return(0,P.useEffect)(function(){le.loadAPIClientEvents()},[le]),{dn:le,designable:oe,reset:Q,refresh:Se,setDesignable:Y,DesignableBar:ue,findComponent:(0,P.useCallback)(function(xe){var Me;if(!xe)return null;if(typeof xe!="string")return xe;var Ae=h()(X,xe);return(Me=Ae[c.XI])!==null&&Me!==void 0?Me:Ae},[h()]),on:le.on.bind(le),patch:(0,P.useCallback)(function(xe,Me){var Ae=function(Oe){Object.keys(Oe).forEach(function(Pe){var _e=Oe[Pe];Pe==="title"&&(ie.title=_e,ee.title=_e),Pe==="x-decorator-props"&&(ie.decoratorProps||(ie.decoratorProps={}),ee["x-decorator-props"]||(ee["x-decorator-props"]={}),Object.keys(_e).forEach(function(re){ie.decoratorProps[re]=_e[re],ee["x-decorator-props"][re]=_e[re]})),Pe==="x-component-props"&&(ie.componentProps||(ie.componentProps={}),ee["x-component-props"]||(ee["x-component-props"]={}),Object.keys(_e).forEach(function(re){ie.componentProps[re]=_e[re],ee["x-component-props"][re]=_e[re]}))})};if(typeof xe=="string"){var Re={};return p()(Re,xe,Me),Ae(Re)}Ae(xe),Se()},[le]),shallowMerge:(0,P.useCallback)(function(xe){le.shallowMerge(xe)},[le]),deepMerge:(0,P.useCallback)(function(xe){le.deepMerge(xe)},[le]),remove:(0,P.useCallback)(function(xe,Me){le.remove(xe,Me)},[le]),insertAdjacent:(0,P.useCallback)(function(xe,Me,Ae){le.insertAdjacent(xe,Me,Ae)},[le]),insertBeforeBegin:(0,P.useCallback)(function(xe){le.insertBeforeBegin(xe)},[le]),insertAfterBegin:(0,P.useCallback)(function(xe){le.insertAfterBegin(xe)},[le]),insertBeforeEnd:(0,P.useCallback)(function(xe){le.insertBeforeEnd(xe)},[le]),insertAfterEnd:(0,P.useCallback)(function(xe){le.insertAfterEnd(xe)},[le])}}},98146:function(We,se,e){"use strict";e.d(se,{e:function(){return g}});var H=e(80844),u=e(84577),w=e(67294),i=e(36802),x=function(){return null};x.isNullComponent=!0;var g=function(){var r=(0,u.ng)(),z=r.designable,m=(0,H.useFieldSchema)(),A=(0,w.useMemo)(function(){return m["x-designer"]||m["x-toolbar"]?m["x-designer"]||m["x-toolbar"]:m["x-settings"]?i.Mf:x},[m]),f=(0,u.Co)(A);return z&&f||x}},9780:function(We,se,e){"use strict";e.d(se,{w:function(){return B}});var H=e(97857),u=e.n(H),w=e(13769),i=e.n(w),x=["useProps"],g=function(){return{}},B=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=z.useProps,A=m===void 0?g:m,f=i()(z,x),I=A;typeof A!="function"&&(I=g);var n=I();return u()(u()({},f),n)}},7105:function(We,se,e){"use strict";e.d(se,{aUM:function(){return w.aU},olz:function(){return w.ol},N0i:function(){return w.N0},fWn:function(){return w.fW},mlL:function(){return w.ml},EIK:function(){return w.EI},$Lt:function(){return w.$L},$b8:function(){return w.$b},HTy:function(){return ei},lkv:function(){return qa},rDu:function(){return Cn},eYL:function(){return w.eY},Rat:function(){return aa},oAt:function(){return Ul},E7E:function(){return Wl},$SD:function(){return Ii},fUi:function(){return To.fU},QcG:function(){return bs},MLy:function(){return Wo.M},gOu:function(){return Js},jYG:function(){return da.jY},PuU:function(){return da.Pu},smG:function(){return da.sm},C1I:function(){return w.C1},Ssf:function(){return Ss},vTp:function(){return Ds},XZJ:function(){return ga},Tt2:function(){return Os},zH8:function(){return Bs},Q5L:function(){return Ks},Pok:function(){return Oi},Vm0:function(){return Vs},xI_:function(){return Fs},Lip:function(){return Ts},WN4:function(){return Fi.W},Mtg:function(){return _a.Mt},iNu:function(){return _a.iN},zzt:function(){return ot.zz},_bl:function(){return V._b},POi:function(){return zs},AOY:function(){return ge},izJ:function(){return ks},LBT:function(){return E.DndContext},IWB:function(){return E.DragHandler},LCt:function(){return E.DraggableContext},FyH:function(){return X.Fy},Nir:function(){return X.Ni},q8U:function(){return X.q8},HGA:function(){return X.HG},QTe:function(){return X.QT},JEX:function(){return X.JE},fAH:function(){return El},$w$:function(){return X.$w},nBj:function(){return X.nB},Oct:function(){return X.Oc},zdw:function(){return X.zd},CXR:function(){return Sl},BQs:function(){return jo.BQ},Hj5:function(){return nr.H},M0b:function(){return Ti},Dnz:function(){return Fi.D},wn$:function(){return Qn.wn},GzZ:function(){return Qn.Gz},tJZ:function(){return Qn.tJ},fox:function(){return Qn.fo},VTd:function(){return Qn.VT},XsZ:function(){return Qn.Xs},l09:function(){return W},D_t:function(){return pl.D},WiK:function(){return Ho},xJW:function(){return X.xJ},RVL:function(){return V.RV},Bc8:function(){return Un},hG9:function(){return ji},DCh:function(){return Ri},rjZ:function(){return Ca.rj},Cqo:function(){return si},jg7:function(){return Ca.jg},gsn:function(){return jo.gs},$18:function(){return au},IIB:function(){return jo.II},RnZ:function(){return _l},mX2:function(){return jo.mX},zDC:function(){return ir.zD},Phs:function(){return jo.Ph},aVo:function(){return ui},UGj:function(){return Ui.U},yq5:function(){return Ui.y},v2r:function(){return kr},HIW:function(){return fu},T3C:function(){return ja},d97:function(){return ca.d9},hGv:function(){return hi},tlE:function(){return hu},rop:function(){return bl},gGi:function(){return _u},DBW:function(){return pa.D},MBS:function(){return Cu.M},pGO:function(){return bu},Y8K:function(){return Ni},iVT:function(){return jo.iV},ODP:function(){return ir.OD},lbb:function(){return ir.lb},b7w:function(){return ir.b7},sUk:function(){return ir.sU},x1j:function(){return w.x1},m1v:function(){return V.m1},glM:function(){return lt},xZD:function(){return w.xZ},IuH:function(){return Qn.Iu},MkN:function(){return w.Mk},Hof:function(){return Pu},n6:function(){return V.n6},DDd:function(){return Gu.D},ATq:function(){return V.AT},G0E:function(){return V.G0},a$w:function(){return V.a$},TzZ:function(){return V.Tz},y00:function(){return w.y0},PhF:function(){return qt},Cqv:function(){return E.ShowFormData},cof:function(){return w.co},bts:function(){return E.Sortable},Fop:function(){return E.SortableContext},TRI:function(){return E.SortableItem},ORg:function(){return E.SortableProvider},TaI:function(){return Su},qHe:function(){return ri.q},iA_:function(){return Hr},gvM:function(){return Bu},SnY:function(){return Dl},ASv:function(){return Uu},bwk:function(){return ma},mQc:function(){return wa},c__:function(){return za.c},QZ3:function(){return Ie},L39:function(){return da.L3},feF:function(){return wu},jII:function(){return zi},mPs:function(){return zu},tgM:function(){return ku},gqx:function(){return To.gq},Qm7:function(){return To.Qm},_wD:function(){return xa._w},rjl:function(){return xa.rj},Fjw:function(){return w.Fj},SLL:function(){return w.SL},sBv:function(){return w.sB},iTm:function(){return X.iT},BDK:function(){return To.BD},Pls:function(){return ot.Pl},Oxq:function(){return ct},WLi:function(){return at},$9M:function(){return X.$9},nCn:function(){return Mt},iNG:function(){return Tn},tD8:function(){return bn},pg9:function(){return Do},Ofb:function(){return X.Of},ibf:function(){return fo},WyG:function(){return fe},l6$:function(){return u.l6},WGR:function(){return It},C$H:function(){return ir.C$},SET:function(){return Vr.SE},cNQ:function(){return ir.cN},NCb:function(){return wr.NC},I9l:function(){return E.getRenderContent},XQ2:function(){return wr.XQ},Fxc:function(){return Ea},MDU:function(){return Vr.MD},CEH:function(){return Vr.CE},vUN:function(){return w.vU},ZZb:function(){return X.ZZ},tqC:function(){return Vr.tq},elO:function(){return ir.el},CfU:function(){return Ba},LPx:function(){return Vr.LP},fY6:function(){return Vr.fY},Vm:function(){return Vi},w_o:function(){return Vr.w_},SJF:function(){return Ya},_Ko:function(){return Qa},Mev:function(){return La},i2K:function(){return yo},WmO:function(){return Qn.Wm},oBi:function(){return ot.oB},hKP:function(){return wr.hK},DU1:function(){return w.DU},XCj:function(){return w.XC},KyD:function(){return Zn.Ky},Vpg:function(){return Mi},lIL:function(){return ot.lI},KxP:function(){return Wo.K},hi9:function(){return ot.hi},p27:function(){return w.p2},z9d:function(){return yl.z9},eJW:function(){return ot.eJ},Cor:function(){return ot.Co},Zmk:function(){return ca.Zm},aZq:function(){return ot.aZ},P1D:function(){return _a.P1},ngQ:function(){return ot.ng},ett:function(){return ot.et},ySm:function(){return nr.y},Zd$:function(){return X.Zd},cLh:function(){return ot.cL},baz:function(){return X.b},fde:function(){return ot.fd},Xdt:function(){return ir.Xd},Cld:function(){return ot.Cl},vH8:function(){return ot.vH},PLH:function(){return Qn.PL},V8t:function(){return Qn.V8},tMk:function(){return Qn.tM},xQm:function(){return Qn.xQ},sRe:function(){return ot.sR},U1u:function(){return Fe},HS$:function(){return w.HS},vBu:function(){return w.vB},QYZ:function(){return w.QY},t9d:function(){return w.t9},Kgy:function(){return Qn.Kg},aJ2:function(){return Qn.aJ},n14:function(){return Ca.n1},DiB:function(){return Ca.Di},l1O:function(){return X.l1},w5o:function(){return X.w5},p3Q:function(){return X.p3},G5e:function(){return X.G5},xj2:function(){return X.xj},rxY:function(){return X.rx},Ils:function(){return ir.Il},zCB:function(){return w.zC},CMh:function(){return na},FMn:function(){return jr},T0O:function(){return ia},a4r:function(){return pa.a},wNf:function(){return ot.wN},Dmu:function(){return ot.Dm},Bsl:function(){return V.Bs},yKv:function(){return Dt.y},fMB:function(){return ot.fM},gCg:function(){return za.g},eT6:function(){return X.eT},$SN:function(){return To.$S},q4O:function(){return X.q4},ymE:function(){return xa.ym},uqQ:function(){return w.uq},Q3P:function(){return wr.Q3},K5K:function(){return w.K5}});var H={};e.r(H),e.d(H,{Action:function(){return w.aU},ActionBar:function(){return w.ol},ActionBarProvider:function(){return w.N0},ActionContext:function(){return w.fW},ActionContextNoRerender:function(){return w.ml},ActionContextProvider:function(){return w.EI},ActionDesigner:function(){return w.$L},AfterSuccess:function(){return w.$b},AntdSchemaComponentPlugin:function(){return ei},AntdSchemaComponentProvider:function(){return qa},AppendsTreeSelect:function(){return Cn},AssignedFieldValues:function(){return w.eY},AssociationField:function(){return aa},AssociationFieldMode:function(){return Ul},AssociationFieldModeProvider:function(){return Wl},AssociationSelect:function(){return Ii},AttachmentList:function(){return To.fU},AutoComplete:function(){return bs},BackButtonUsedInSubPage:function(){return Wo.M},Block:function(){return Js},BlockItem:function(){return da.jY},BlockItemCard:function(){return da.Pu},BlockItemCardContext:function(){return da.sm},ButtonEditor:function(){return w.C1},CardItem:function(){return Ss},Cascader:function(){return Ds},Checkbox:function(){return ga},CollectionSelect:function(){return Os},ColorPicker:function(){return Bs},ColorSelect:function(){return Ks},Cron:function(){return Oi},CronSet:function(){return Vs},DataSourceCollectionCascader:function(){return Fs},DataSourceSelect:function(){return Ts},DateFormatCom:function(){return Fi.W},DatePicker:function(){return _a.Mt},DatePickerProvider:function(){return _a.iN},Details:function(){return zs},DetailsDesigner:function(){return ge},Divider:function(){return ks},EditComponent:function(){return X.Fy},EditDefaultValue:function(){return X.Ni},EditDescription:function(){return X.q8},EditOperator:function(){return X.HG},EditPattern:function(){return X.QT},EditRequired:function(){return X.JE},EditSortField:function(){return El},EditTitle:function(){return X.$w},EditTitleField:function(){return X.nB},EditTooltip:function(){return X.Oc},EditValidationRules:function(){return X.zd},Editable:function(){return Sl},EllipsisWithTooltip:function(){return jo.BQ},ErrorFallback:function(){return nr.H},Expand:function(){return Ti},ExpiresRadio:function(){return Fi.D},Filter:function(){return Qn.wn},FilterAction:function(){return Qn.Gz},FilterActionContext:function(){return Qn.tJ},FilterContext:function(){return Qn.fo},FilterDynamicComponent:function(){return Qn.VT},FilterLogicContext:function(){return Qn.Xs},Form:function(){return W},FormDialog:function(){return pl.D},FormField:function(){return Ho},FormItem:function(){return X.xJ},FormV2:function(){return Un},G2Plot:function(){return ji},G2PlotRenderer:function(){return Ri},Grid:function(){return Ca.rj},GridCard:function(){return si},GridRowContext:function(){return Ca.jg},HTMLEncode:function(){return jo.gs},IconPicker:function(){return au},Input:function(){return jo.II},InputNumber:function(){return _l},InputReadPretty:function(){return jo.mX},InputRecordPicker:function(){return ir.zD},Json:function(){return jo.Ph},List:function(){return ui},Markdown:function(){return Ui.U},MarkdownReadPretty:function(){return Ui.y},Menu:function(){return kr},NanoIDInput:function(){return fu},Page:function(){return ja},PagePopups:function(){return ca.d9},PageTabs:function(){return hi},Pagination:function(){return hu},Password:function(){return bl},Percent:function(){return _u},PopupSettingsProvider:function(){return pa.D},Preview:function(){return Cu.M},QuickEdit:function(){return bu},Radio:function(){return Ni},ReadPretty:function(){return jo.iV},ReadPrettyRecordPicker:function(){return ir.OD},RecordPicker:function(){return ir.lb},RecordPickerContext:function(){return ir.b7},RecordPickerProvider:function(){return ir.sU},RefreshDataBlockRequest:function(){return w.x1},RemoteSelect:function(){return lt},RemoveButton:function(){return w.xZ},RemoveConditionContext:function(){return Qn.Iu},RequestSettings:function(){return w.Mk},RichText:function(){return Pu},SecondConFirm:function(){return w.y0},Select:function(){return qt},SkipValidation:function(){return w.co},Space:function(){return Su},StablePopover:function(){return ri.q},Table:function(){return Hr},TableBlockDesigner:function(){return Bu},TableField:function(){return Dl},TableSelectorDesigner:function(){return Uu},TableV2:function(){return ma},Tabs:function(){return wa},TabsContextProvider:function(){return za.c},Templates:function(){return Ie},TestDesigner:function(){return da.L3},TextAreaWithGlobalScope:function(){return wu},TimePicker:function(){return zi},TreeSelect:function(){return zu},UnixTimestamp:function(){return ku},Upload:function(){return To.gq},Uploader:function(){return To.Qm},Variable:function(){return xa._w},VariableScopeProvider:function(){return xa.rj},WorkflowConfig:function(){return w.Fj},actionSettings:function(){return w.SL},actionSettingsItems:function(){return w.sB},allowAddNew:function(){return X.iT},attachmentFileTypes:function(){return To.BD},defaultFieldNames:function(){return ct},fetchTemplateData:function(){return at},filterFormItemSettings:function(){return X.$9},findByUid:function(){return Mt},findKeysByUid:function(){return Tn},findMenuItem:function(){return bn},formDetailsSettings:function(){return Do},formItemSettings:function(){return X.Of},formSettings:function(){return fo},formV1Settings:function(){return fe},genStyleHook:function(){return u.l6},getCurrentOptions:function(){return It},getDatePickerLabels:function(){return ir.C$},getDateRanges:function(){return Vr.SE},getLabelFormatValue:function(){return ir.cN},getPopupPathFromParams:function(){return wr.NC},getStoredPopupContext:function(){return wr.XQ},getTabSchema:function(){return Ea},handleDateChangeOnForm:function(){return Vr.MD},inferPickerType:function(){return Vr.CE},isBulkEditAction:function(){return w.vU},isFileCollection:function(){return X.ZZ},isMobile:function(){return Vr.tq},isShowFilePicker:function(){return ir.el},isTabPage:function(){return Ba},mapDatePicker:function(){return Vr.LP},mapRangePicker:function(){return Vr.fY},mapTimeFormat:function(){return Vi},moment2str:function(){return Vr.w_},navigateToTab:function(){return Ya},pageSettings:function(){return Qa},pageTabSettings:function(){return La},readPrettyFormSettings:function(){return yo},removeNullCondition:function(){return Qn.Wm},storePopupContext:function(){return wr.hK},useActionBarContext:function(){return w.DU},useActionContext:function(){return w.XC},useAssociationFieldContext:function(){return Zn.Ky},useAssociationFieldModeContext:function(){return Mi},useBackButton:function(){return Wo.K},useCloseAction:function(){return w.p2},useColumnSchema:function(){return yl.z9},useCurrentPopupContext:function(){return ca.Zm},useDatePickerContext:function(){return _a.P1},useDownloadLogs:function(){return nr.y},useEnsureOperatorsValid:function(){return X.Zd},useFieldMode:function(){return X.b},useFieldNames:function(){return ir.Xd},useFilterActionProps:function(){return Qn.PL},useFilterFieldOptions:function(){return Qn.V8},useFilterFieldProps:function(){return Qn.tM},useFilterOptions:function(){return Qn.xQ},useFormDataTemplates:function(){return Fe},useGetAriaLabelOfAction:function(){return w.HS},useGetAriaLabelOfDrawer:function(){return w.vB},useGetAriaLabelOfModal:function(){return w.QY},useGetAriaLabelOfPopover:function(){return w.t9},useGetFilterFieldOptions:function(){return Qn.Kg},useGetFilterOptions:function(){return Qn.aJ},useGridContext:function(){return Ca.n1},useGridRowContext:function(){return Ca.Di},useIsAddNewForm:function(){return X.l1},useIsAssociationField:function(){return X.w5},useIsFieldReadPretty:function(){return X.p3},useIsFileField:function(){return X.G5},useIsFormReadPretty:function(){return X.xj},useIsSelectFieldMode:function(){return X.rx},useLabelUiSchema:function(){return ir.Il},useLinkageAction:function(){return w.zC},useMenuDragEnd:function(){return na},useNocoBaseRoutes:function(){return jr},useParentRoute:function(){return ia},usePopupSettings:function(){return pa.a},useStyles:function(){return Dt.y},useTabsContext:function(){return za.g},useTitleFieldOptions:function(){return X.eT},useUploadStyles:function(){return To.$S},useValidateSchema:function(){return X.q4},useVariableScope:function(){return xa.ym},useZIndexContext:function(){return w.uq},withSearchParams:function(){return wr.Q3},zIndexContext:function(){return w.K5}});var u=e(46917),w=e(76157),i=e(15009),x=e.n(i),g=e(99289),B=e.n(g),r=e(12444),z=e.n(r),m=e(72004),A=e.n(m),f=e(31996),I=e.n(f),n=e(26037),C=e.n(n),N=e(97857),o=e.n(N),a=e(67294),D=e(31601),E=e(14896),V=e(70993),J=e(89127),$=function(k){return B()(x()().mark(function pe(){var he,Ce;return x()().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.prev=0,Te.next=3,this.api.request(k);case 3:return Ce=Te.sent,Te.abrupt("return",Ce==null||(he=Ce.data)===null||he===void 0?void 0:he.data);case 7:return Te.prev=7,Te.t0=Te.catch(0),Te.abrupt("return",[]);case 10:case"end":return Te.stop()}},pe,this,[[0,7]])}))},h=e(13769),M=e.n(h),p=e(5552),P=e(86201),v=e(80844),U=e(28459),j=e(57953),c=e(12174),d=e(6145),l=e(57105),S=e(36802),G=e(64016),y=e(15195),K=e(23461),t=e(85893),F=["form","children"],O=["form","children","disabled"],L=["request","effects","initialValue","useValues"],b=function(k){var pe=k.form,he=k.children,Ce=M()(k,F),ye=(0,v.useField)(),Te=(0,v.useFieldSchema)(),Be=(0,ot.lI)(pe.createVoidField(o()(o()({},ye.props),{},{basePath:""})));return(0,t.jsx)(v.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(v.FormContext.Provider,{value:pe,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},Ce),{},{children:(0,t.jsx)(l.sq,{basePath:Be.address,schema:Te,onlyRenderProperties:!0})}))})})},T=function(k){return k.children},q=function(k){var pe=k.form,he=k.children,Ce=k.disabled,ye=M()(k,O),Te=(0,v.useField)(),Be=(0,v.useFieldSchema)(),ze=(0,ot.lI)(pe.createVoidField(o()(o()({},Te.props),{},{basePath:""}))),Xe=(0,ot.Co)(Be["x-component"],T);return(0,a.useEffect)(function(){pe.disabled=Ce||Te.disabled},[Ce,Te.disabled]),(0,t.jsx)(U.ZP,{componentDisabled:Ce,children:(0,t.jsx)(v.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(v.FormContext.Provider,{value:pe,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:"vertical"},ye),{},{children:(0,t.jsx)(v.FieldContext.Provider,{value:ze,children:(0,t.jsx)(Xe,o()(o()({},Te.componentProps),{},{children:(0,t.jsx)(l.sq,{basePath:ze.address,schema:Be,onlyRenderProperties:!0})}))})}))})})})},ne=function(k){var pe=k.request,he=k.initialValue;return pe||function(){return Promise.resolve({data:he})}},oe=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,c.QT)(ne(pe),k)},Y=(0,a.createContext)(null);Y.displayName="FormBlockContext";var W=(0,v.observer)(function(te){var k=te.request,pe=te.effects,he=te.initialValue,Ce=te.useValues,ye=Ce===void 0?oe:Ce,Te=M()(te,L),Be=(0,v.useFieldSchema)(),ze=(0,v.useField)(),Xe=(0,a.useMemo)(function(){return(0,P.createForm)({effects:pe})},[]),Ze=ye({uid:Be["x-uid"],onSuccess:function(Qe){return B()(x()().mark(function _t(){return x()().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Xe.reset();case 2:Xe.setValues(Qe==null?void 0:Qe.data),Xe.setInitialValues(Qe==null?void 0:Qe.data);case 4:case"end":return mt.stop()}},_t)}))()}},te),Ye=(0,a.useContext)(Y);return(0,t.jsx)(Y.Provider,{value:{parent:Ye,form:Xe,result:Ze,field:ze,fieldSchema:Be},children:(0,t.jsx)(j.Z,{spinning:(Ze==null?void 0:Ze.loading)||!1,children:Be["x-decorator"]==="Form"?(0,t.jsx)(q,o()({form:Xe},Te)):(0,t.jsx)(b,o()({form:Xe},Te))})})},{displayName:"Form"});W.Designer=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)(),ye=(0,K.rE)(),Te=ye.componentNamePrefix;return(0,t.jsxs)(S.aN,{template:Ce,title:he||pe,children:[(0,t.jsx)(G.G,{componentName:"".concat(Te,"Form"),collectionName:pe}),(0,t.jsx)(S.Z5,{}),(0,t.jsx)(S.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var Q=e(5537),fe=new Q.F5({name:"FormV1Settings",items:[{name:"template",Component:G.G,useComponentProps:function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=(0,K.rE)(),Ce=he.componentNamePrefix;return{componentName:"".concat(Ce,"Form"),collectionName:pe}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),X=e(54801),ue=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormSettings",template:Ce,title:he||pe})},be=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"ReadPrettyFormSettings",template:Ce,title:he||pe})},ge=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"FormDetailsSettings",template:Ce,title:he||pe})},me=function(){var k=(0,d.useCollection_deprecated)(),pe=k.name,he=k.title,Ce=(0,y.zy)();return(0,t.jsx)(S.aN,{schemaSettings:"blockSettings:filterForm",template:Ce,title:he||pe})},Se=e(7340),ie=e(15503),ee=e(83335),ce=e(68230),ve=e(68400),Z=e.n(ve),le=e(97133),xe=e(84327),Me=e(9361),Ae=e(67174),Re=e(31019),Ee=e(39742),Oe=e(22229),Pe=e(43321),_e=e(64910),re=e(9780),R=e(3192),de=e(94804),De=e(18686),ae=e(5574),je=e.n(ae),Le=e(84157),Ve=e(42075),Ge=e(34041),it=e(96486),dt=e.n(it),Ke=e(26793),tt=e(32268),ut=e(9783),et=e.n(ut),on=e(52677),rn=e.n(on),Rt=e(50888),Qt=e(66309),pn=e(96074),Gt=e(27484),Nt=e.n(Gt),en=e(44990),nn=e(8341),kt=e(87714),ot=e(84577),Vt=e(4340),gn=e(97937),ln=e(32983),An=e(67668),Xn=e(58812),ro=e(96695),lo=e.n(ro),xn=e(19632),Pt=e.n(xn),ct={label:"label",value:"value",color:"color",options:"children"};function jt(te,k){var pe=[];if(!Array.isArray(te))return pe;for(var he=0;he<te.length;he++){var Ce=te[he][k.options];Array.isArray(Ce)&&pe.push.apply(pe,Pt()(jt(Ce,k))),pe.push(o()({},te[he]))}return pe}function Wt(te,k,pe){if(!te)return[];var he=[],Ce=lo()(pe),ye;try{var Te=function(){var ze=ye.value,Xe=te.find(function(Ze){return Ze[k.value]==ze})||{value:ze,label:ze&&ze.toString()};he.push(Xe)};for(Ce.s();!(ye=Ce.n()).done;)Te()}catch(Be){Ce.e(Be)}finally{Ce.f()}return he}function It(te,k,pe){var he=jt(k,pe),Ce=(0,it.castArray)(te).map(function(ye){return(0,Le.isPlainObject)(ye)?ye[pe.value]:ye});return Wt(he,pe,Ce)}var gt=e(25145),yt=(0,v.observer)(function(te){var k=(0,a.useState)(!0),pe=je()(k,2),he=pe[0],Ce=pe[1],ye=(0,a.useState)([]),Te=je()(ye,2),Be=Te[0],ze=Te[1],Xe=(0,v.useField)(),Ze=(0,An.Hy)();return(0,a.useEffect)(function(){var Ye,xt=o()(o()({},ct),te.fieldNames),Qe=Xe.dataSource||te.options||(Ze==null?void 0:Ze.uiSchema.enum)||[],_t=It(Xe.value,Qe,xt);if(!(!(0,xe.isValid)(te.value)&&!_t.length)&&!((0,P.isArrayField)(Xe)&&(Xe==null||(Ye=Xe.value)===null||Ye===void 0?void 0:Ye.length)===0)){var Ct=Xe.value!==null&&_t.map(function(mt,St){return(0,t.jsx)(Qt.Z,{color:mt[xt.color],icon:mt.icon,children:mt[xt.label]},St)});ze(Ct),Ce(!1)}},[Ze==null?void 0:Ze.uiSchema.enum,Xe,Xe.dataSource,Xe.value,te.fieldNames,te.options,te.value]),he?null:(0,t.jsx)(Xn.B,{ellipsis:te.ellipsis,children:Be})},{displayName:"SelectReadPretty"}),Lt=(0,gt.u)(yt),Ht=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],Tt=["objectValue","loading","value","rawOptions","defaultValue"],Ut=function(k){return!(0,xe.isValid)(k)||rn()(k)==="object"&&Object.keys(k).length===0},zt=function(k){var pe=k.value,he=k.options,Ce=k.onChange,ye=k.fieldNames,Te=k.mode,Be=k.loading,ze=k.rawOptions,Xe=k.defaultValue,Ze=M()(k,Ht),Ye=function(Qe){var _t;if(!Ut(Qe)){var Ct=(0,xe.toArr)(Qe).filter(function(St){return St}).map(function(St){return(0,Le.isPlainObject)(St)?St[ye.value]:St}),mt=(_t=It(Ct,he,ye))===null||_t===void 0?void 0:_t.map(function(St){return{label:St[ye.label],value:St[ye.value]}});return["tags","multiple"].includes(Te)||k.multiple?mt:mt.shift()}};return(0,t.jsx)(Ge.default,o()({role:"button","data-testid":"select-object-".concat(Te||"single"),value:Ye(pe),defaultValue:Ye(Xe),allowClear:{clearIcon:(0,t.jsx)(Vt.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:Be?(0,t.jsx)(j.Z,{}):(0,t.jsx)(ln.Z,{image:ln.Z.PRESENTED_IMAGE_SIMPLE}),options:he,fieldNames:ye,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(Qe,_t){var Ct;return((Ct=_t==null?void 0:_t[ye.label||"label"])!==null&&Ct!==void 0?Ct:"").includes(Qe)},filterSort:function(Qe,_t){var Ct,mt;return((Ct=Qe==null?void 0:Qe[ye.label||"label"])!==null&&Ct!==void 0?Ct:"").toLowerCase().localeCompare(((mt=_t==null?void 0:_t[ye.label||"label"])!==null&&mt!==void 0?mt:"").toLowerCase())},onChange:function(Qe){var _t=It((0,xe.toArr)(Qe).map(function(Ct){return Ct.value}),ze||he,ye);["tags","multiple"].includes(Te)||k.multiple?Ce==null||Ce(_t):Ce==null||Ce(_t.shift()||null)},mode:Te,tagRender:function(Qe){return(0,t.jsx)(Qt.Z,o()(o()({role:"button","aria-label":Qe.label,closeIcon:(0,t.jsx)(gn.Z,{role:"button","aria-label":"icon-close-tag"})},Qe),{},{children:Qe.label}))},maxTagCount:"responsive"},Ze))},Jt=function(k,pe){var he;return((he=pe==null?void 0:pe.label)!==null&&he!==void 0?he:"").toLowerCase().includes((k||"").toLowerCase())},fn=(0,v.connect)(function(te){var k=te.objectValue,pe=te.loading,he=te.value,Ce=te.rawOptions,ye=te.defaultValue,Te=M()(te,Tt),Be=(0,ot.eJ)(),ze=te.multiple?"multiple":te.mode;if(ze&&!["multiple","tags"].includes(ze)&&(ze=void 0),k)return(0,t.jsx)(zt,o()(o()({rawOptions:Ce},Te),{},{defaultValue:ye,value:he,mode:ze,loading:pe}));var Xe=function(Ye){return["tags","multiple"].includes(te.mode)||te.multiple?Ye?(0,xe.toArr)(Ye):void 0:Ye};return(0,t.jsx)(Ge.default,o()(o()({role:"button","data-testid":"select-".concat(ze||"single"),showSearch:!0,filterOption:Jt,allowClear:{clearIcon:(0,t.jsx)(Vt.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:pe?(0,t.jsx)(j.Z,{}):(0,t.jsx)(ln.Z,{image:ln.Z.PRESENTED_IMAGE_SIMPLE}),value:Xe(he),defaultValue:Xe(ye),tagRender:function(Ye){return(0,t.jsx)(Qt.Z,o()(o()({role:"button","aria-label":Ye.label,closeIcon:(0,t.jsx)(gn.Z,{role:"button","aria-label":"icon-close-tag"})},Ye),{},{children:Ye.label}))}},Be(Te)),{},{onChange:function(Ye){var xt;(xt=te.onChange)===null||xt===void 0||xt.call(te,Ye===void 0?null:Ye)},mode:ze,maxTagCount:"responsive"}))},(0,v.mapProps)({dataSource:"options"},function(te,k){return o()(o()({},te),{},{fieldNames:o()(o()({},ct),te.fieldNames),suffixIcon:k!=null&&k.loading||k!=null&&k.validating?(0,t.jsx)(Rt.Z,{}):te.suffixIcon})}),(0,v.mapReadPretty)(Lt)),qt=fn;qt.ReadPretty=Lt;var yn=qt,_n=e(36586),$t=function(k,pe){return(0,it.castArray)(k).filter(function(he){return he!=null}).map(function(he){return rn()(he)==="object"?he[pe.value]:he})},un=(0,v.observer)(function(te){var k=o()(o()({},ct),te.fieldNames),pe=(0,v.useField)(),he=(0,v.useFieldSchema)(),Ce=(0,_n.a)(),ye=(0,w.XC)(),Te=ye.snapshot,Be=(0,c.QT)(Te?B()(x()().mark(function Xe(){return x()().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.abrupt("return",{data:Ce[he.name]});case 1:case"end":return Ye.stop()}},Xe)})):o()(o()({action:"list"},te.service),{},{params:{paginate:!1,filter:et()({},k.value,{$in:$t(pe.value,k)})}}),{refreshDeps:[te.service,pe.value]}),ze=Be.data;return(0,t.jsx)(qt.ReadPretty,o()(o()({},te),{},{options:ze==null?void 0:ze.data}))},{displayName:"ReadPretty"}),cn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource","toOptionsItem","popupMatchSelectWidth"],Et="N/A",qe=(0,ie.t)((0,v.connect)(function(te){var k,pe,he=te.fieldNames,Ce=he===void 0?{}:he,ye=te.service,Te=ye===void 0?{}:ye,Be=te.wait,ze=Be===void 0?300:Be,Xe=te.value,Ze=te.defaultValue,Ye=te.objectValue,xt=te.manual,Qe=xt===void 0?!0:xt,_t=te.mapOptions,Ct=te.targetField,mt=te.CustomDropdownRender,St=te.optionFilter,At=te.dataSource,an=te.toOptionsItem,mn=an===void 0?function(xr){return xr}:an,Sn=te.popupMatchSelectWidth,Mn=Sn===void 0?!1:Sn,Ft=M()(te,cn),tn=(0,en.FC)(),Nn=(0,nn.FE)(At||tn),no=(0,a.useState)(!1),Gn=je()(no,2),On=Gn[0],Ln=Gn[1],Xt=(0,a.useRef)(!1),zn=(0,v.useFieldSchema)(),to=((k=zn["x-component-props"])===null||k===void 0?void 0:k.addMode)==="quickAdd",Hn=(0,d.useCollection_deprecated)(),Vn=Hn.getField,wn=(0,a.useRef)(null),Dn=(0,d.useCollectionManager_deprecated)(),dn=Dn.getCollectionJoinField,$n=Dn.getInterface,po=zn["x-collection-field"]||zn.name,Jn=Vn(po)||dn(po),qn=Ct||(Jn==null?void 0:Jn.target)&&(Ce==null?void 0:Ce.label)&&dn("".concat(Jn.target,".").concat(Ce.label)),So=(0,a.useMemo)(function(){if(qn!=null&&qn.interface){var xr,Xo=$n(qn.interface),Ir=(Xo==null||(xr=Xo.filterable)===null||xr===void 0?void 0:xr.operators[0].value)||"$includes";return qn.type==="string"?"$includes":Ir}return"$includes"},[qn]),uo=(0,ot.eJ)(),Po=(0,a.useCallback)(function(xr){try{return xr.filter(function(Xo){return["number","string"].includes(rn()(Xo[Ce.value]))||!Xo[Ce.value]}).map(function(Xo){var Ir,Or,Pr=uo(Xo[Ce.label]);if(qn!=null&&(Ir=qn.uiSchema)!==null&&Ir!==void 0&&Ir.enum)if(Array.isArray(Pr))Pr=Pr.map(function(Pa,Ga){var Oa=qn.uiSchema.enum.find(function(Al){return Al.value===Pa});return Oa?(0,t.jsx)(Qt.Z,{role:"button",color:Oa.color,style:{marginRight:3},children:(Oa==null?void 0:Oa.label)||Pa},Ga):(0,t.jsx)(Qt.Z,{role:"button",children:Pa},Pa)}).reverse();else{var ta=qn.uiSchema.enum.find(function(Pa){return Pa.value===Pr});ta&&(Pr=(0,t.jsx)(Qt.Z,{role:"button",color:ta.color,children:ta.label}))}if((qn==null?void 0:qn.type)==="date"&&(Pr=Nt()(Pr).format("YYYY-MM-DD")),_t){var ba;return _t((ba={},et()(ba,Ce.label,Pr||Et),et()(ba,Ce.value,Xo[Ce.value]),ba))}return o()(o()({},Xo),{},(Or={},et()(Or,Ce.label,Pr||Et),et()(Or,Ce.value,Xo[Ce.value]),Or))}).filter(Boolean)}catch(Xo){return console.error(Xo),xr}},[qn==null?void 0:qn.uiSchema,Ce]),ko=(0,c.QT)(o()(o()({action:"list"},Te),{},{headers:Nn,params:o()(o()({pageSize:200},Te==null?void 0:Te.params),{},{filter:Te==null||(pe=Te.params)===null||pe===void 0?void 0:pe.filter})}),o()({manual:Qe,debounceWait:ze},Te.defaultParams?{defaultParams:[Te.defaultParams]}:{})),io=ko.data,Fo=ko.run,Zo=ko.loading,or=(0,a.useMemo)(function(){return JSON.stringify({service:Te,fieldNames:Ce})},[Te,Ce]),gr=(0,a.useCallback)(function(){return wn.current&&mt?(0,t.jsx)(mt,{search:wn.current,callBack:function(){wn.current=null,Ln(!1)}}):null},[wn.current]);(0,a.useEffect)(function(){Xt.current&&Fo()},[or]);var qr=function(){var xr=B()(x()().mark(function Xo(Ir){var Or;return x()().wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:Fo({filter:(0,kt.EO)([Ir?et()({},Ce.label,et()({},So,Ir)):{},Te==null||(Or=Te.params)===null||Or===void 0?void 0:Or.filter])}),wn.current=Ir;case 2:case"end":return ta.stop()}},Xo)}));return function(Ir){return xr.apply(this,arguments)}}(),ea=(0,a.useMemo)(function(){var xr,Xo=Xe||Ze;if(!(io!=null&&(xr=io.data)!==null&&xr!==void 0&&xr.length))return Xo!=null?Array.isArray(Xo)?Xo:[Xo]:[];var Ir=Xo!=null&&(Array.isArray(Xo)?Xo.map(function(Pr){return o()(o()({},Pr),{},et()({},Ce.value,Pr[Ce.value]||Pr))}):[o()(o()({},Xo),{},et()({},Ce.value,Xo[Ce.value]||Xo))])||[],Or=typeof St=="function"?io.data.filter(St):io.data;return(0,it.uniqBy)(Or.concat(Ir??[]),Ce.value)},[Xe,Ze,io==null?void 0:io.data,Ce.value,St]),zr=function(Xo){Ln(Xo),wn.current=null,Xo&&Fo(),Xt.current=!0};return(0,t.jsx)(qt,o()(o()({open:On,popupMatchSelectWidth:Mn,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:Ce,onSearch:qr,onDropdownVisibleChange:zr,objectValue:Ye,value:Xe,defaultValue:Ze},Ft),{},{loading:io?Zo:!0,options:mn(Po(ea)),rawOptions:ea,dropdownRender:function(Xo){var Ir=ea.some(function(Or){return Or[Ce.label]===wn.current});return(0,t.jsx)(t.Fragment,{children:to?(0,t.jsxs)(t.Fragment,{children:[!((io==null?void 0:io.data.length)===0&&wn!==null&&wn!==void 0&&wn.current)&&Xo,(io==null?void 0:io.data.length)>0&&(wn==null?void 0:wn.current)&&!Ir&&(0,t.jsx)(pn.Z,{style:{margin:0}}),!Ir&&(0,t.jsx)(gr,{})]}):Xo})}}))},(0,v.mapProps)({dataSource:"options"},function(te,k){var pe,he=(0,v.useFieldSchema)();return o()(o()({},te),{},{fieldNames:o()(o()(o()(o()({},ct),te.fieldNames),k.componentProps.fieldNames),(pe=he["x-component-props"])===null||pe===void 0?void 0:pe.fieldNames),suffixIcon:k!=null&&k.loading||k!=null&&k.validating?(0,t.jsx)(Rt.Z,{}):te.suffixIcon})}),(0,v.mapReadPretty)(un))),lt=qe;lt.ReadPretty=un;var He=null,Fe=function(){var k=(0,v.useFieldSchema)(),pe=(0,Ke.$)(),he=pe.t,Ce=(0,Se.bz)(),ye=Ce.duplicateData,Te=(0,d.useCollectionManager_deprecated)(),Be=Te.getCollectionJoinField;if(ye)return ye;var ze=we(k),Xe=ze.items,Ze=Xe===void 0?[]:Xe,Ye=ze.display,xt=Ye===void 0?!0:Ye;Ze.forEach(function(Ct){try{var mt;Ct.fields=(mt=Ct.fields)===null||mt===void 0?void 0:mt.map(function(St){var At=Be("".concat(Ct.collection,".").concat(St));return At?St:""}).filter(Boolean)}catch(St){(0,Le.error)(St),Ct.fields=[]}});var Qe=[{key:"none",title:he("None")}].concat(Ze.map(function(Ct,mt){return o()(o()({key:mt},Ct),{},{isLeaf:Ct.dataId!==null&&Ct.dataId!==void 0,titleCollectionField:(Ct==null?void 0:Ct.titleField)&&Be("".concat(Ct.collection,".").concat(Ct.titleField))})})),_t=Ze.find(function(Ct){return Ct.default});return{templates:Qe,display:xt,defaultTemplate:_t,enabled:Ze.length>0&&Ze.every(function(Ct){return Ct.dataId||Ct.dataScope})}},Ie=a.memo(function(te){var k=te.style,pe=k===void 0?{}:k,he=te.form,Ce=(0,u.dQ)(),ye=Ce.token,Te=Fe(),Be=Te.templates,ze=Te.display,Xe=Te.enabled,Ze=Te.defaultTemplate,Ye=(0,d.useCollectionManager_deprecated)(),xt=Ye.getCollectionJoinField,Qe=(0,tt.ss)(Be),_t=(0,a.useState)((Ze==null?void 0:Ze.key)||"none"),Ct=je()(_t,2),mt=Ct[0],St=Ct[1],At=(0,a.useState)(null),an=je()(At,2),mn=an[0],Sn=an[1],Mn=(0,c.LY)(),Ft=(0,Ke.$)(),tn=Ft.t,Nn=(0,de.FC)(),no=(0,de.on)(Nn);(0,a.useEffect)(function(){Xe&&Ze&&he&&(he.__template=!0,Ze.key==="duplicate"&&Xt(Ze.dataId,Ze,no))},[]),(0,a.useEffect)(function(){Qe!=null&&Qe.some(function(to){return to.key===mt})||Ln("none")},[Qe]);var Gn=(0,a.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:ye.colorFillAlter,padding:ye.padding},pe)},[pe,ye.colorFillAlter]),On=(0,a.useMemo)(function(){return{fontSize:ye.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:ye.marginXS}},[ye.fontSize,ye.marginXS]),Ln=(0,a.useCallback)(function(){var to=B()(x()().mark(function Hn(Vn){return x()().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:St(Vn),Sn(null),he==null||he.reset();case 3:case"end":return Dn.stop()}},Hn)}));return function(Hn){return to.apply(this,arguments)}}(),[]),Xt=(0,a.useCallback)(function(){var to=B()(x()().mark(function Hn(Vn,wn,Dn){var dn;return x()().wrap(function(po){for(;;)switch(po.prev=po.next){case 0:dn=o()(o()({},wn),{},{dataId:Vn}),Sn(wn),at(Mn,dn,Dn).then(function(Jn){return he&&Jn&&(he.reset(),he.__template=!0,(0,Le.forEach)(Jn,function(qn,So){if(qn){var uo;he.values[So]=qn,he==null||(uo=he.setInitialValuesIn)===null||uo===void 0||uo.call(he,So,qn)}})),Jn}).catch(function(Jn){console.error(Jn)});case 3:case"end":return po.stop()}},Hn)}));return function(Hn,Vn,wn){return to.apply(this,arguments)}}(),[]);if(!Xe||!ze)return null;var zn=Qe==null?void 0:Qe.find(function(to){return to.key===mt});return(0,t.jsx)("div",{style:Gn,children:(0,t.jsxs)(Ve.Z,{wrap:!0,children:[(0,t.jsxs)("label",{style:On,children:[tn("Data template"),": "]}),(0,t.jsx)(Ge.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:Qe,fieldNames:{label:"title",value:"key"},value:mt,onChange:Ln}),mt!=="none"&&zn&&(0,t.jsx)(lt,{style:{width:220},fieldNames:{label:zn==null?void 0:zn.titleField,value:"id"},target:zn==null?void 0:zn.collection,value:mn,objectValue:!0,service:{resource:zn==null?void 0:zn.collection,params:{filter:zn==null?void 0:zn.dataScope}},onChange:function(Hn){return Xt(Hn==null?void 0:Hn.id,o()(o()({},Hn),zn),no)},targetField:xt("".concat(zn==null?void 0:zn.collection,".").concat(zn.titleField))})]})})});Ie.displayName="NocoBaseFormDataTemplates";function we(te){var k=(0,Se.Fi)(te);return k?dt().cloneDeep(k["x-data-templates"])||{}:{}}function at(te,k,pe){return st.apply(this,arguments)}function st(){return st=B()(x()().mark(function te(k,pe,he){return x()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(!(pe.fields.length===0||!pe.dataId)){ye.next=2;break}return ye.abrupt("return");case 2:return ye.abrupt("return",k.resource(pe.collection,void 0,he).get({filterByTk:pe.dataId,fields:pe.fields,isTemplate:!0}).then(function(Te){var Be;return(Be=Te.data)===null||Be===void 0?void 0:Be.data}));case 3:case"end":return ye.stop()}},te)})),st.apply(this,arguments)}var ke=function(){var k,pe,he=(0,De.aZ)(),Ce=(0,v.useFieldSchema)(),ye=Me.Z.useToken(),Te=ye.token,Be=(0,ot.ng)(),ze=Be.designable,Xe=(0,R.gp)()||{},Ze=Xe.heightProps,Ye=Ze||{},xt=Ye.title,Qe=Ye.titleHeight,_t=Fe(),Ct=_t.display,mt=_t.enabled,St=Ce.reduceProperties(function(Ln,Xt){return Xt["x-component"]==="ActionBar"?Xt:Ln}),At=Object.keys((St==null?void 0:St.properties)||{}).length>0,an=Ce==null||(k=Ce.parent)===null||k===void 0||(k=k["x-decorator"])===null||k===void 0||(pe=k.includes)===null||pe===void 0?void 0:pe.call(k,"FormBlockProvider"),mn=At||ze?Te.controlHeight+(an?1*Te.marginLG:24+Te.paddingLG):Te.marginLG,Sn=xt?Qe:0,Mn=(0,de.xQ)(),Ft=(Mn==null?void 0:Mn.meta)||{},tn=Ft.count,Nn=Ft.pageSize,no=tn>Nn,Gn=no?Te.controlHeightSM+24:0,On=Ct&&mt?Te.controlHeight+2*Te.padding+Te.margin:0;return he-mn-Te.paddingLG-Sn-Gn-On},Ne,Ue,Je=["form","children"],rt=["form","children","disabled"],ft=["form","disabled"],ht=function(k){var pe=k.form,he=k.children,Ce=M()(k,Je),ye=(0,v.useField)(),Te=(0,v.useFieldSchema)(),Be=Ae.Gn===null||Ae.Gn===void 0?void 0:(0,Ae.Gn)(Te),ze=(0,ot.lI)(pe.createVoidField(o()(o()({},ye.props),{},{basePath:""}))),Xe=ke(),Ze=Me.Z.useToken(),Ye=Ze.token,xt=(Be==null?void 0:Be["x-component-props"])||{},Qe=xt.layout,_t=Qe===void 0?"vertical":Qe,Ct=xt.labelAlign,mt=Ct===void 0?"left":Ct,St=xt.labelWidth,At=St===void 0?120:St,an=xt.labelWrap,mn=an===void 0?!0:an;return(0,t.jsx)(v.FieldContext.Provider,{value:void 0,children:(0,t.jsx)(v.FormContext.Provider,{value:pe,children:(0,t.jsx)(p.FormLayout,o()(o()({layout:_t},Ce),{},{labelAlign:mt,labelWidth:_t==="horizontal"?At:null,labelWrap:mn,children:(0,t.jsx)("div",{className:(0,le.css)(Ne||(Ne=Z()([`
|
|
762
762
|
.nb-grid-container {
|
|
763
763
|
height: `,`;
|
|
764
764
|
overflow-y: auto;
|