@nocobase/app 1.3.30-beta → 1.3.31-beta

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.
@@ -119,7 +119,7 @@ https://requirejs.org/docs/errors.html#`+ze);return l.requireType=ze,l.requireMo
119
119
  .ant-formily-item {
120
120
  margin-bottom: 0;
121
121
  }
122
- `])))},"x-component":C,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},x=function(){for(var m={},S=arguments.length,b=new Array(S),i=0;i<S;i++)b[i]=arguments[i];for(var w=0,E=b;w<E.length;w++){var g=E[w];U[g]&&(m[g]=U[g])}return m}},44605:function(){},53772:function(){},99899:function(ze,te,e){"use strict";e.d(te,{U:function(){return $},l:function(){return l}});function $(V){var c;if(!V)return[];var D=V.split(":"),f=D.pop(),L=(c=D[0])!==null&&c!==void 0?c:"main";return[L,f]}function l(V,c){return!V||V==="main"?c:"".concat(V,":").concat(c)}},5346:function(ze,te,e){"use strict";e.d(te,{T:function(){return f}});var $=e(5574),l=e.n($),V=e(34041),c=e(67294),D=e(85893);function f(L){var r=L.title,W=L.defaultValue,p=L.onChange,A=L.options,h=L.fieldNames,M=(0,c.useState)(!1),t=l()(M,2),o=t[0],u=t[1],B=(0,c.useRef)(null);return(0,D.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(C){C.stopPropagation(),u(function(T){return!T})},onMouseLeave:function(){B.current=setTimeout(function(){u(!1)},200)},children:[r,(0,D.jsx)(V.default,{open:o,"data-testid":"select-".concat(r),popupMatchSelectWidth:!1,bordered:!1,defaultValue:W,onChange:p,popupClassName:"select-popup-".concat(r.replaceAll(" ","-")),fieldNames:h,options:A,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(B.current)}})]})}},7737:function(ze,te,e){"use strict";e.d(te,{T:function(){return $.T},W:function(){return l.W}});var $=e(5346),l=e(56318)},56318:function(ze,te,e){"use strict";e.d(te,{W:function(){return D}});var $=e(94350),l=e(67668),V=e(38752),c=e(81230);function D(){var f,L,r,W,p=(0,c.z)(),A=p.fieldSchema,h=p.collectionField,M=(0,$.useField)(),t=(0,V.G5)(),o=(0,$.useFieldSchema)(),u=(0,l.Hy)(),B=A||o,y=h||u,C={AssociationField:"Select"},T=(B==null||(f=B["x-component-props"])===null||f===void 0?void 0:f.mode)||(M==null||(L=M.componentProps)===null||L===void 0?void 0:L.mode)||(t?"FileManager":"")||(B==null||(r=B["x-component-props"])===null||r===void 0?void 0:r.component)||(y==null||(W=y.uiSchema)===null||W===void 0?void 0:W["x-component"]);return C[T]||T}},52967:function(ze,te,e){"use strict";e.d(te,{e:function(){return l}});var $=e(67294),l=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=(0,$.useRef)(0);return(0,$.useEffect)(function(){var f=function(r){var W=r.clientY,p=Math.max(W,window.innerHeight-W);D.current=p};return window.addEventListener("mousemove",f),function(){window.removeEventListener("mousemove",f)}},[]),(0,$.useMemo)(function(){return D.current-40},c)}},20085:function(ze,te,e){"use strict";e.d(te,{O:function(){return f}});var $=e(10274),l=e(67294),V=e(69962),c=e(68230),D=function(r){var W=r.children,p=(0,c.d)(),A=p.token,h=A.colorFillTertiary,M=new $.C(A.colorFill).onBackground(A.colorFillSecondary).toHexShortString(),t=new $.C(A.colorFill).onBackground(A.colorFill).toHexShortString(),o=new $.C(A.colorFill).onBackground(A.colorFill).onBackground(A.colorFill).toHexShortString();return(0,l.useEffect)(function(){document.body.style.setProperty("--nb-spacing","".concat(A.marginLG,"px")),document.body.style.setProperty("--nb-designer-offset","".concat(A.marginXS,"px")),document.body.style.setProperty("--nb-header-height","".concat(A.sizeXXL-2,"px")),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--controlHeightLG","".concat(A.controlHeightLG,"px")),document.body.style.setProperty("--paddingContentVerticalSM","".concat(A.paddingContentVerticalSM,"px")),document.body.style.setProperty("--marginSM","".concat(A.marginSM,"px")),document.body.style.setProperty("--colorInfoBg",A.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",A.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",A.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",A.colorWarningBorder),document.body.style.setProperty("--colorText",A.colorText),document.body.style.setProperty("--colorPrimaryText",A.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",A.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",A.colorPrimaryTextHover),document.body.style.setProperty("--colorBgScrollTrack",h),document.body.style.setProperty("--colorBgScrollBar",M),document.body.style.setProperty("--colorBgScrollBarHover",t),document.body.style.setProperty("--colorBgScrollBarActive",o),document.body.style.setProperty("--colorSettings",A.colorSettings||V.uH.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",A.colorBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",A.colorBorderSettingsHover),document.body.style.setProperty("background-color",A.colorBgContainer)},[M,o,t,h,A.colorBgContainer,A.colorBgLayout,A.colorBgSettingsHover,A.colorBorderSettingsHover,A.colorInfoBg,A.colorInfoBorder,A.colorPrimaryText,A.colorPrimaryTextActive,A.colorPrimaryTextHover,A.colorSettings,A.colorText,A.colorWarningBg,A.colorWarningBorder,A.controlHeightLG,A.marginLG,A.marginSM,A.marginXS,A.paddingContentVerticalSM,A.sizeXXL]),W};D.displayName="CSSVariableProvider";var f=D},31959:function(ze,te,e){"use strict";e.d(te,{S:function(){return L}});var $=e(12444),l=e.n($),V=e(72004),c=e.n(V),D=e(9783),f=e.n(D),L=function(){function r(W){l()(this,r),f()(this,"name",void 0),f()(this,"group",void 0),f()(this,"title",void 0),f()(this,"description",void 0),f()(this,"order",void 0),f()(this,"default",void 0),f()(this,"sortable",void 0),f()(this,"availableTypes",void 0),f()(this,"supportDataSourceType",void 0),f()(this,"notSupportDataSourceType",void 0),f()(this,"hasDefaultValue",void 0),f()(this,"componentOptions",void 0),f()(this,"isAssociation",void 0),f()(this,"operators",void 0),f()(this,"filterable",void 0),f()(this,"titleUsable",void 0),f()(this,"hidden",void 0),this.collectionFieldInterfaceManager=W}return c()(r,[{key:"addComponentOption",value:function(p){if(!this.componentOptions){var A,h;this.componentOptions=[];var M=(A=this.default)===null||A===void 0||(A=A.uiSchema)===null||A===void 0?void 0:A["x-component"],t=(h=this.default)===null||h===void 0||(h=h.uiSchema)===null||h===void 0?void 0:h["x-component-props"];M&&(this.componentOptions=[{label:M.split(".").pop(),value:M,useProps:function(){return t||{}}}])}this.componentOptions.push(p)}}]),r}()},65050:function(ze,te,e){"use strict";e.d(te,{S:function(){return $.S},Z:function(){return r}});var $=e(31959),l=e(12444),V=e.n(l),c=e(72004),D=e.n(c),f=e(9783),L=e.n(f),r=function(){function W(p,A,h){V()(this,W),L()(this,"collectionFieldInterfaceInstances",{}),L()(this,"collectionFieldGroups",{}),L()(this,"actionList",{}),this.dataSourceManager=h,this.addFieldInterfaces(p),this.addFieldInterfaceGroups(A)}return D()(W,[{key:"addFieldInterfaces",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(t,o){var u=new o(A);return t[u.name]=u,Array.isArray(A.actionList[u.name])&&(A.actionList[u.name].forEach(function(B){u[B.type](B.data)}),A.actionList[u.name]=void 0),t},{});Object.assign(this.collectionFieldInterfaceInstances,M)}},{key:"addFieldInterfaceComponentOption",value:function(A,h){var M=this.getFieldInterface(A);if(!M){this.actionList[A]||(this.actionList[A]=[]),this.actionList[A].push({type:"addComponentOption",data:h});return}M.addComponentOption(h)}},{key:"getFieldInterface",value:function(A){return this.collectionFieldInterfaceInstances[A]}},{key:"getFieldInterfaces",value:function(A){return Object.values(this.collectionFieldInterfaceInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var t;return!((t=h.notSupportDataSourceType)!==null&&t!==void 0&&t.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]}}]),W}()},52020:function(ze,te,e){"use strict";e.d(te,{q:function(){return o},s:function(){return u}});var $=e(97857),l=e.n($),V=e(94350),c=e(73773),D=e(96486),f=e.n(D),L=e(67294),r=e(4511),W=e(7340),p=e(15503),A=e(40868),h=e(29124),M=e(67668),t=e(85893),o=function(y){var C,T=y.component,U=(0,A.eJW)(),x=(0,V.useField)(),I=(0,V.useFieldSchema)(),m=(0,M.Hy)(),S=m.uiSchema,b=m.defaultValue,i=(0,h.SF)(),w=i.isAllowToSetDefaultValue,E=(0,L.useMemo)(function(){return U(S)},[JSON.stringify(S)]),g=(0,A.Cor)(((C=I["x-component-props"])===null||C===void 0?void 0:C.component)||(E==null?void 0:E["x-component"])||"Input"),v=(0,L.useCallback)(function(j,n){x[j]=typeof x[j]=="undefined"?n:x[j]},[x]),a=(0,L.useCallback)(function(){typeof I.required=="undefined"&&(x.required=!!E.required)},[I,E]),d=(0,W.bz)(),R=(0,p.M)(E==null?void 0:E["x-use-component-props"],y);return(0,L.useEffect)(function(){d!=null&&d.field&&(d.field.added=d.field.added||new Set,d.field.added.add(I.name))}),(0,L.useEffect)(function(){if(E){if(v("content",E["x-content"]),v("title",E.title),v("description",E.description),d!=null&&d.form){var j=w()?I.default||b:void 0;j!=null&&v("initialValue",j)}if(!x.validator&&(E["x-validator"]||I["x-validator"])){var n=(0,D.concat)([],E["x-validator"]||[],I["x-validator"]||[]);x.validator=n}I["x-disabled"]===!0&&(x.disabled=!0),I["x-read-pretty"]===!0&&(x.readPretty=!0),a(),x.dataSource=E.enum;var P=U(E["x-component-props"])||{};x.componentProps=(0,c.merge)(P,x.componentProps||{},R||{})}},[E]),E?(0,t.jsx)(g,l()(l()({},y),R)):null},u=(0,V.connect)(function(B){var y=(0,V.useFieldSchema)();return(0,t.jsx)(r.SV,{FallbackComponent:A.Hj5.Modal,onError:function(T){return console.log(T)},children:(0,t.jsx)(M.YT,{name:y.name,children:(0,t.jsx)(o,l()({},B))})})});u.displayName="CollectionField"},67668:function(ze,te,e){"use strict";e.d(te,{Hy:function(){return W},YT:function(){return L},m9:function(){return r},v_:function(){return f}});var $=e(67294),l=e(94350),V=e(1836),c=e(36032),D=e(85893),f=(0,$.createContext)(null);f.displayName="CollectionFieldContext";var L=function(A){var h=A.name,M=A.children,t=A.allowNull,o=(0,l.useFieldSchema)(),u=(0,V.Kx)(),B=(0,V.d9)(),y=(0,$.useMemo)(function(){var C;if(!u)return null;var T=o==null||(C=o["x-component-props"])===null||C===void 0?void 0:C.field;return B.getCollectionField(o==null?void 0:o["x-collection-field"])||T||u.getField((T==null?void 0:T.name)||h)},[u,o,h,B]);return!y&&t?(0,D.jsx)(D.Fragment,{children:M}):y?(0,D.jsx)(f.Provider,{value:y,children:M}):(0,D.jsx)(c.z,{type:"Field",name:h})},r=function(A){return(0,D.jsx)(f.Provider,{value:null,children:A.children})},W=function(){var A=(0,$.useContext)(f);return A}},58530:function(ze,te,e){"use strict";e.d(te,{D:function(){return L}});var $=e(12444),l=e.n($),V=e(72004),c=e.n(V),D=e(9783),f=e.n(D),L=function(){function r(W){l()(this,r),f()(this,"data",void 0),f()(this,"parentRecord",void 0),f()(this,"isNew",void 0);var p=W.data,A=W.parentRecord,h=W.isNew;this.isNew=h,this.data=p,this.parentRecord=A}return c()(r,[{key:"setData",value:function(p){this.data=p}},{key:"setParentRecord",value:function(p){this.parentRecord=p}}]),r}()},49834:function(ze,te,e){"use strict";e.d(te,{E0:function(){return D},Kv:function(){return W},RA:function(){return r},nE:function(){return L},oV:function(){return f},vI:function(){return c}});var $=e(67294),l=e(58530),V=e(85893),c=(0,$.createContext)(null);c.displayName="CollectionRecordContext";var D=function(A){var h=A.isNew,M=A.record,t=A.parentRecord,o=A.children,u=(0,$.useMemo)(function(){if(t)return t instanceof l.D?t:new l.D({data:t});if(M instanceof l.D)return M.parentRecord},[t,M]),B=(0,$.useMemo)(function(){var y;return M?M instanceof l.D?(y=M,y.isNew=M.isNew||h):y=new l.D({data:M,isNew:h}):y=new l.D({isNew:h}),y.setParentRecord(u),y},[M,u,h]);return(0,V.jsx)(c.Provider,{value:B,children:o})};function f(){var p=(0,$.useContext)(c);return p}function L(){var p=f();return p==null?void 0:p.data}function r(){var p=f();return p==null?void 0:p.parentRecord}function W(){var p,A=f();return A==null||(p=A.parentRecord)===null||p===void 0?void 0:p.data}},88496:function(ze,te,e){"use strict";e.d(te,{DI:function(){return $.D},E0:function(){return l.E0},Kv:function(){return l.Kv},RA:function(){return l.RA},nE:function(){return l.nE},oV:function(){return l.oV},vI:function(){return l.vI}});var $=e(58530),l=e(49834)},373:function(ze,te,e){"use strict";e.d(te,{d:function(){return D},k:function(){return c}});var $=e(96486),l=e.n($),V=Symbol("isNewRecord"),c=function(L){return!!(L!=null&&L[V])},D=function(L){if(!(0,$.isObject)(L))throw new Error("markRecordAsNew: record must be an object");return L[V]=!0,L}},34096:function(ze,te,e){"use strict";e.d(te,{P:function(){return L}});var $=e(72004),l=e.n($),V=e(12444),c=e.n(V),D=e(9783),f=e.n(D),L=l()(function r(W){c()(this,r),f()(this,"name",void 0),f()(this,"Collection",void 0),f()(this,"title",void 0),f()(this,"color",void 0),f()(this,"order",void 0),f()(this,"default",void 0),f()(this,"events",void 0),f()(this,"configurableProperties",void 0),f()(this,"availableFieldInterfaces",void 0),f()(this,"divider",void 0),f()(this,"description",void 0),f()(this,"configureActions",void 0),f()(this,"forbidDeletion",void 0),f()(this,"supportDataSourceType",void 0),f()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=W})},67836:function(ze,te,e){"use strict";e.d(te,{P:function(){return $.P},y:function(){return r}});var $=e(34096),l=e(12444),V=e.n(l),c=e(72004),D=e.n(c),f=e(9783),L=e.n(f),r=function(){function W(p,A){V()(this,W),L()(this,"collectionTemplateInstances",{}),this.dataSourceManager=A,this.addCollectionTemplates(p)}return D()(W,[{key:"addCollectionTemplates",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(t,o){var u=new o(A);return t[u.name]=u,t},{});return Object.assign(this.collectionTemplateInstances,M),this.dataSourceManager.getDataSources().forEach(function(t){var o=t.collectionManager.getCollections(function(u){return M[u.template]});t.collectionManager.reAddCollections(o)}),M}},{key:"getCollectionTemplate",value:function(A){return this.collectionTemplateInstances[A]}},{key:"getCollectionTemplates",value:function(A){return Object.values(this.collectionTemplateInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var t;return!((t=h.notSupportDataSourceType)!==null&&t!==void 0&&t.includes(A))}}).sort(function(h,M){return(h.order||0)-(M.order||0)})}}]),W}()},19271:function(ze,te,e){"use strict";e.d(te,{Xo:function(){return A},lb:function(){return W},ym:function(){return p}});var $=e(67294),l=e(67668),V=e(36032),c=e(35746),D=e(58837),f=e(85893),L=(0,$.createContext)(null);L.displayName="ParentCollectionContext";var r=function(M){var t=(0,D.Kx)();return(0,f.jsx)(L.Provider,{value:t,children:M.children})},W=function(){return(0,$.useContext)(L)},p=function(M){var t=M.name,o=M.children,u=(0,c.d9)(),B=u.getCollectionName(t);return B?(0,f.jsx)(D.YQ,{name:String(t).split(".")[0],children:(0,f.jsx)(r,{children:(0,f.jsx)(l.YT,{name:t,children:(0,f.jsx)(D.YQ,{name:B,children:o})})})}):(0,f.jsx)(V.z,{type:"Collection",name:t})},A=function(){var M=(0,l.Hy)();return M?"".concat(M.collectionName,".").concat(M.name):null}},5282:function(ze,te,e){"use strict";e.d(te,{F:function(){return A}});var $=e(61227),l=e.n($),V=e(12444),c=e.n(V),D=e(72004),f=e.n(D),L=e(9783),r=e.n(L),W=e(96486),p=e.n(W),A=function(){function h(M,t){c()(this,h),r()(this,"fieldsMap",void 0),r()(this,"primaryKey",void 0),this.options=M,this.collectionManager=t}return f()(h,[{key:"fields",get:function(){return this.options.fields||[]}},{key:"app",get:function(){return this.collectionManager.app}},{key:"dataSource",get:function(){return this.options.dataSource}},{key:"sourceKey",get:function(){return this.options.sourceKey}},{key:"name",get:function(){return this.options.name}},{key:"key",get:function(){return this.options.key}},{key:"title",get:function(){return this.options.title}},{key:"inherit",get:function(){return this.options.inherit}},{key:"hidden",get:function(){return this.options.hidden}},{key:"description",get:function(){return this.options.description}},{key:"duplicator",get:function(){return this.options.duplicator}},{key:"category",get:function(){return this.options.category}},{key:"targetKey",get:function(){return this.options.targetKey}},{key:"model",get:function(){return this.options.model}},{key:"createdBy",get:function(){return this.options.createdBy}},{key:"updatedBy",get:function(){return this.options.updatedBy}},{key:"logging",get:function(){return this.options.logging}},{key:"from",get:function(){return this.options.from}},{key:"rawTitle",get:function(){return this.options.rawTitle}},{key:"getPrimaryKey",value:function(){if(this.primaryKey)return this.primaryKey;if(this.options.targetKey)return this.options.targetKey;var t=this.getFields({primaryKey:!0})[0];return this.primaryKey=t==null?void 0:t.name,this.primaryKey}},{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(t,o){return this.options[t]=o,this}},{key:"getOptions",value:function(){return this.options}},{key:"getOption",value:function(t){return this.options[t]}},{key:"getFields",value:function(t){return t?(0,W.filter)(this.fields,t):this.fields}},{key:"getFieldsMap",value:function(){return this.fieldsMap||(this.fieldsMap=this.getFields().reduce(function(t,o){return t[o.name]=o,t},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(t){var o=this.getFieldsMap(),u=String(t).split("."),B=l()(u),y=B[0],C=B.slice(1),T=o[y];if(T){var U=T==null?void 0:T.target;if(U){var x=this.collectionManager.getCollection(U);if(x)return x.getField(C.join("."))}}}},{key:"getField",value:function(t){if(t){var o=this.getFieldsMap();if(String(t).split(".").length>1){var u=this.getFieldByAssociationName(t);return u||(typeof t=="string"&&t.startsWith("".concat(this.name,"."))?(t=t.replace("".concat(this.name,"."),""),this.getField(t)):void 0)}return o[t]}}},{key:"hasField",value:function(t){return!!this.getField(t)}},{key:"isTitleField",value:function(t){var o;return(o=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(t.interface))===null||o===void 0?void 0:o.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),h}()},35746:function(ze,te,e){"use strict";e.d(te,{IX:function(){return L},bX:function(){return A},d9:function(){return p},xw:function(){return W}});var $=e(5574),l=e.n($),V=e(67294),c=e(44990),D=e(58861),f=e(85893),L=(0,V.createContext)(null);L.displayName="CollectionManagerContext";var r=function(M){var t=M.instance,o=M.children,u=(0,c.wl)(),B=(0,D.P5)(),y=(0,V.useMemo)(function(){return t||(u==null?void 0:u.collectionManager)},[t,u]),C=V.useState(Math.random()),T=l()(C,2),U=T[0],x=T[1];(0,V.useEffect)(function(){y.dataSource.addReloadCallback(function(){x(Math.random())})},[y]);var I=(0,V.useMemo)(function(){var m=y;return B!=null&&B.length?m.clone(B):m},[y,B,U]);return(0,f.jsx)(L.Provider,{value:I,children:o})},W=function(M){var t=M.instance,o=M.dataSource,u=M.children;return(0,f.jsx)(c.LX,{dataSource:o,children:(0,f.jsx)(r,{instance:t,children:u})})};function p(){var h=(0,V.useContext)(L);return h}var A=function(M){var t=p(),o=(0,V.useMemo)(function(){return t.getCollections(M)},[t,M]);return o}},58837:function(ze,te,e){"use strict";e.d(te,{Kx:function(){return A},Pd:function(){return p},WH:function(){return r},YQ:function(){return W},ge:function(){return h}});var $=e(97857),l=e.n($),V=e(67294),c=e(67668),D=e(36032),f=e(35746),L=e(85893),r=(0,V.createContext)(null);r.displayName="CollectionContext";var W=function(t){var o=t.name,u=t.children,B=t.allowNull,y=(0,f.d9)(),C=(0,V.useMemo)(function(){return y==null?void 0:y.getCollection(o)},[y,o]);return!C&&B?(0,L.jsx)(L.Fragment,{children:t.children}):!C&&!B?(0,L.jsx)(D.z,{type:"Collection",name:o}):(0,L.jsx)(r.Provider,{value:C,children:u})},p=function(t){return(0,L.jsx)(c.v_.Provider,{value:null,children:(0,L.jsx)(W,l()({},t))})};function A(){var M=(0,V.useContext)(r);return M}var h=function(t){var o=A(),u=(0,V.useMemo)(function(){return o.getFields(t)},[o,t]);return u}},58861:function(ze,te,e){"use strict";e.d(te,{P5:function(){return W},Xc:function(){return L},j5:function(){return r}});var $=e(19632),l=e.n($),V=e(67294),c=e(44990),D=e(35746),f=e(85893),L=(0,V.createContext)(null);L.displayName="ExtendCollectionsContext";var r=function(A){var h=A.children,M=A.collections,t=W(),o=(0,V.useMemo)(function(){return t?[].concat(l()(t),l()(M)):M},[t,M]),u=(0,c.FC)();return(0,f.jsx)(L.Provider,{value:o,children:(0,f.jsx)(D.xw,{dataSource:u,children:h})})};function W(){var p=(0,V.useContext)(L);return p}},1836:function(ze,te,e){"use strict";e.d(te,{ym:function(){return V.ym},FE:function(){return $.F},WH:function(){return l.WH},w4:function(){return x},IX:function(){return I.IX},xw:function(){return I.xw},YQ:function(){return l.YQ},Xc:function(){return m.Xc},j5:function(){return m.j5},Pd:function(){return l.Pd},Xo:function(){return V.Xo},Kx:function(){return l.Kx},ge:function(){return l.ge},d9:function(){return I.d9},bX:function(){return I.bX},P5:function(){return m.P5},lb:function(){return V.lb}});var $=e(5282),l=e(58837),V=e(19271),c=e(61227),D=e.n(c),f=e(52677),L=e.n(f),r=e(97857),W=e.n(r),p=e(12444),A=e.n(p),h=e(72004),M=e.n(h),t=e(9783),o=e.n(t),u=e(13769),B=e.n(u),y=["rawTitle","title","fields"],C=["uiSchema"],T=function(b,i){var w=b.rawTitle,E=b.title,g=b.fields,v=g===void 0?[]:g,a=B()(b,y);return W()(W()({},a),{},{title:w?E:i.i18n.t(E,{ns:"lm-collections"}),rawTitle:w||E,fields:v==null?void 0:v.map(function(d){var R=d.uiSchema,j=B()(d,C);if(R!=null&&R.title){var n=R.title;R.title=R.rawTitle?n:i.i18n.t(n,{ns:"lm-collections"}),R.rawTitle=R.rawTitle||n}return Array.isArray(R==null?void 0:R.enum)&&(R.enum=R.enum.map(function(P){return W()(W()({},P),{},{value:(P==null?void 0:P.value)===void 0?P:P.value,label:P.rawLabel?P.label:i.i18n.t(P.label,{ns:"lm-collections"}),rawLabel:P.rawLabel||P.label})})),W()({uiSchema:R},j)})})};function U(S,b,i,w){var E=new S(i,w);return b.forEach(function(g){var v=new g(i,w);Object.getOwnPropertyNames(v).forEach(function(a){var d=Object.getOwnPropertyDescriptor(v,a);d?Object.defineProperty(E,a,d):E[a]=v[a]}),Object.getOwnPropertyNames(g.prototype).forEach(function(a){a!=="constructor"&&(E.__proto__[a]=g.prototype[a])})}),E}var x=function(){function S(b,i){A()(this,S),o()(this,"collectionInstancesMap",{}),o()(this,"collectionInstancesArr",[]),this.dataSource=i,this.addCollections(b)}return M()(S,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(i){var w=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(i.template),E=(w==null?void 0:w.Collection)||$.F,g=w==null?void 0:w.transform,v=g?g(T(i,this.app),this.app):T(i,this.dataSource.dataSourceManager.app),a=W()(W()({},v),{},{dataSource:this.dataSource.key}),d=U(E,this.dataSourceManager.collectionMixins,a,this);return d}},{key:"getInstancesMap",value:function(){var i=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=w.map(function(g){return i.getCollectionInstance(g)});return E.reduce(function(g,v){return g[v.name]=v,g},{})}},{key:"addCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=this.getInstancesMap(i);this.collectionInstancesMap=W()(W()({},this.collectionInstancesMap),w),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"setCollections",value:function(i){this.collectionInstancesMap=this.getInstancesMap(i),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"reAddCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.collectionInstancesArr,w=i.map(function(E){return E.getOptions()});this.addCollections(w)}},{key:"getCollection",value:function(i){if(i){if(L()(i)==="object")return this.getCollectionInstance(i);if(String(i).split(".").length>1){var w=this.getCollectionField(i);return w?this.getCollection(w.target):void 0}return this.collectionInstancesMap[i]}}},{key:"getCollections",value:function(i){return i?this.collectionInstancesArr.filter(i):this.collectionInstancesArr}},{key:"getCollectionName",value:function(i){var w=this.getCollection(i);return w==null?void 0:w.name}},{key:"getCollectionField",value:function(i){if(i){if(L()(i)==="object")return i;if(String(i).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(i,'" is invalid'));return}var w=String(i).split("."),E=D()(w),g=E[0],v=E.slice(1),a=this.getCollection(g);if(a)return a.getField(v.join("."))}}},{key:"getCollectionFields",value:function(i,w){var E;return((E=this.getCollection(i))===null||E===void 0?void 0:E.getFields(w))||[]}},{key:"getFilterByTK",value:function(i,w){if(!i||!w){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}if(i instanceof $.F){var E=i.filterTargetKey||i.getPrimaryKey()||"id";return w[E]}if(i.includes(".")){var g=this.getCollectionField(i);if(!g){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(i,'" is invalid'));return}if(g.targetKey)return w[g.targetKey]}var v=this.getCollection(i);if(!v){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(i,'" is invalid'));return}var a=(v==null?void 0:v.filterTargetKey)||(v==null?void 0:v.getPrimaryKey())||"id";return w[a]}},{key:"getSourceKeyByAssociation",value:function(i){if(i){var w=this.getCollectionField(i);if(w){if(w.sourceKey)return w.sourceKey;var E=this.getCollection(i.split(".")[0]);if(E)return E.filterTargetKey||E.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new S([],this.dataSource);return w.collectionInstancesArr=this.collectionInstancesArr,w.collectionInstancesMap=this.collectionInstancesMap,w.addCollections(i),w}}]),S}(),I=e(35746),m=e(58861)},22558:function(ze,te,e){"use strict";e.d(te,{K:function(){return h}});var $=e(9783),l=e.n($),V=e(97857),c=e.n(V),D=e(94350),f=e(96486),L=e.n(f),r=e(26793),W=e(13511),p=e(67668),A=e(40868),h={name:"fieldComponent",type:"select",useVisible:function(){var t=(0,p.Hy)(),o=(0,W.fp)();if(!t)return!1;var u=o.collectionFieldInterfaceManager.getFieldInterface(t==null?void 0:t.interface);return Array.isArray(u==null?void 0:u.componentOptions)&&u.componentOptions.length>1&&u.componentOptions.filter(function(B){return!B.useVisible||B.useVisible()}).length>1},useComponentProps:function(){var t,o,u,B=(0,r.$)(),y=B.t,C=(0,D.useField)(),T=(0,D.useFieldSchema)(),U=(0,p.Hy)(),x=(0,W.fp)(),I=x.collectionFieldInterfaceManager.getFieldInterface(U==null?void 0:U.interface),m=(0,A.z9d)(),S=m.fieldSchema,b=S||T,i=(0,A.ngQ)(),w=i.dn,E=(0,A.eJW)(),g=(I==null||(t=I.componentOptions)===null||t===void 0||(t=t.filter(function(v){return!v.useVisible||v.useVisible()}))===null||t===void 0?void 0:t.map(function(v){return{label:E(v.label),value:v.value,useProps:v.useProps}}))||[];return{title:y("Field component"),options:g,value:((o=b["x-component-props"])===null||o===void 0?void 0:o.component)||((u=g[0])===null||u===void 0?void 0:u.value),onChange:function(a){var d,R,j=g.find(function(P){return P.value===a}),n=c()({component:a},(j==null||(d=j.useProps)===null||d===void 0?void 0:d.call(j))||{});L().set(b,"x-component-props",n),C.componentProps=n,w.emit("patch",{schema:(R={},l()(R,"x-uid",b["x-uid"]),l()(R,"x-component-props",n),R)})}}}}},36032:function(ze,te,e){"use strict";e.d(te,{p:function(){return C},z:function(){return B}});var $=e(97857),l=e.n($),V=e(48997),c=e(3321),D=e(59720),f=e(15867),L=e(67294),r=e(26793),W=e(40868),p=e(44990),A=e(49453),h=e(57638),M=e(1836),t=e(18243),o=e(85893),u=V.Z.Text,B=function(U){var x=U.type,I=U.name,m=U.message,S=(0,W.ngQ)(),b=S.designable,i=S.dn,w=c.Z.useApp(),E=w.modal,g=(0,r.$)(),v=g.t,a=(0,p.wl)(),d=(0,W.eJW)(),R=(0,M.Kx)(),j=(0,A.fp)(),n=(0,L.useMemo)(function(){if(x==="Data Source")return I;var N=(j==null?void 0:j.getDataSources().length)>=1&&a&&a.key!==h.ym?"".concat(d(a.displayName||a.key)," > "):"";if(x==="Collection")return"".concat(N).concat(I);var G=R?"".concat(d(R.title)||R.name||R.tableName," > "):"";return"".concat(N).concat(G).concat(I)},[]),P=(0,L.useMemo)(function(){return x==="Field"?"Field":"Block"},[x]),z=(0,L.useMemo)(function(){return I?m?"".concat(v(x),' "').concat(n,'" ').concat(m):v('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:v(x).toLocaleLowerCase(),name:n,blockType:v(P).toLocaleLowerCase()}).replaceAll("&gt;",">"):"".concat(v(x)," ","name is required")},[m,n,x,v,P]);return b?x==="Field"?(0,o.jsx)(W.BQs,{ellipsis:!0,children:(0,o.jsx)(u,{type:"secondary",children:z})}):(0,o.jsx)(t.P,{children:(0,o.jsx)(D.ZP,{status:"404",subTitle:z,extra:(0,o.jsx)(f.ZP,{onClick:function(){return E.confirm(l()(l()({title:v("Delete block"),content:v("Are you sure you want to delete it?")},confirm),{},{onOk:function(){i.remove(null,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})}}))},children:v("Delete")},"Delete")})}):null},y=function(){var U=(0,r.$)(),x=U.t,I=(0,p.wl)(),m=(0,W.eJW)(),S=(0,M.Kx)(),b=(0,A.fp)(),i=(0,L.useMemo)(function(){var E=(b==null?void 0:b.getDataSources().length)>=1&&I&&I.key!==h.ym?"".concat(m(I.displayName||I.key)," > "):"";if(S)return"".concat(E).concat(S.name);var g=S?"".concat(m(S.title)||S.name||S.tableName," > "):"";return"".concat(E).concat(g).concat(S.name)},[]),w=(0,L.useMemo)(function(){return x(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:i}).replaceAll("&gt;",">")},[i,x]);return(0,o.jsx)(t.P,{children:(0,o.jsx)(D.ZP,{status:"404",subTitle:w})})},C=function(){var U=(0,W.ngQ)(),x=U.designable;return x?(0,o.jsx)(y,{}):null}},88996:function(ze,te,e){"use strict";e.d(te,{i:function(){return p}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(67294),f=e(13511),L=e(35746),r=e(85893),W=["children","dataSourceManager"],p=function(h){var M=h.children,t=h.dataSourceManager,o=c()(h,W);return(0,r.jsx)(f.kv,{dataSourceManager:t,children:(0,r.jsx)(L.xw,l()(l()({},o),{},{children:M}))})}},87180:function(ze,te,e){"use strict";e.d(te,{KY:function(){return U},Rr:function(){return m},dq:function(){return T},eS:function(){return x},hZ:function(){return B},sI:function(){return C},zh:function(){return I}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(5574),f=e.n(D),L=e(67294),r=e(75667),W=e(67205),p=e(15503),A=e(40868),h=e(1836),M=e(39742),t=e(14310),o=e(85893),u=["collection","association","dataSource","children","hidden"],B=(0,L.createContext)({});B.displayName="DataBlockContext";var y=(0,L.createContext)(null),C=function(b){var i=b.children,w=L.useState(!1),E=f()(w,2),g=E[0],v=E[1],a=(0,L.useMemo)(function(){return{rerenderDataBlock:function(){v(!0),setTimeout(function(){v(!1)})}}},[]);return g?null:(0,o.jsx)(y.Provider,{value:a,children:i})},T=function(b){var i=b.collection,w=b.association,E=b.allowNull,g=E===void 0?!1:E,v=(0,L.useMemo)(function(){return w?{Component:h.ym,name:w}:{Component:h.Pd,name:i}},[i,w]);return(0,o.jsx)(v.Component,{name:v.name,allowNull:g,children:b.children})},U=(0,p.t)(function(S){var b=S,i=b.collection,w=b.association,E=b.dataSource,g=b.children,v=b.hidden,a=c()(b,u),d=(0,A.ngQ)(),R=d.dn;return v?null:(0,o.jsx)(B.Provider,{value:{dn:R,props:l()(l()({},a),{},{collection:i,association:w,dataSource:E})},children:(0,o.jsx)(h.xw,{dataSource:E,children:(0,o.jsx)(T,{collection:i,association:w,children:(0,o.jsx)(r.Hh,{children:(0,o.jsx)(t.eh,{children:(0,o.jsx)(M.N4,{children:(0,o.jsx)(W.vY,{params:S.params,children:(0,o.jsx)(C,{children:g})})})})})})})})},{displayName:"DataBlockProvider"}),x=function(){var b=(0,L.useContext)(B);if(!b)throw new Error("useDataBlock() must be used within a DataBlockProvider");return b},I=function(){var b=x();return b.props},m=function(){var b=(0,L.useContext)(y);if(!b)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return b}},39742:function(ze,te,e){"use strict";e.d(te,{H0:function(){return T},N4:function(){return I},do:function(){return y},hS:function(){return m}});var $=e(15009),l=e.n($),V=e(99289),c=e.n(V),D=e(97857),f=e.n(D),L=e(67294),r=e(96486),W=e.n(r),p=e(12174),A=e(4277),h=e(19530),M=e(88496),t=e(8341),o=e(87180),u=e(14310),B=e(85893),y=(0,L.createContext)(null);y.displayName="BlockRequestContext";function C(S){var b=(0,A.tU)(),i=(0,u.wb)(),w=S.action,E=S.params,g=E===void 0?{}:E,v=S.record,a=S.requestService,d=S.requestOptions,R=(0,L.useMemo)(function(){return a||function(n){var P;if(v)return Promise.resolve({data:v});if(!w)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(w==="get"&&W().isNil(g.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var z=g.filterByTk===void 0?W().omit(g,"filterByTk"):g;return(P=i[w])===null||P===void 0?void 0:P.call(i,f()(f()({},z),n)).then(function(N){return N.data})}},[i,w,JSON.stringify(g),JSON.stringify(v),a]),j=(0,p.QT)(R,f()(f()({},d),{},{manual:b==="manual",ready:!!w,refreshDeps:[w,JSON.stringify(g),JSON.stringify(v),i]}));return j}function T(S){return U.apply(this,arguments)}function U(){return U=c()(l()().mark(function S(b){var i,w,E,g,v,a,d,R,j;return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(i=b.sourceId,w=b.association,E=b.parentRecord,g=b.api,v=b.headers,a=b.sourceKey,!E){P.next=3;break}return P.abrupt("return",Promise.resolve({data:E}));case 3:if(!(!w||!a||!i)){P.next=5;break}return P.abrupt("return",Promise.resolve({data:void 0}));case 5:return d=w.split("."),R="".concat(d[0],":get?filter[").concat(a,"]=").concat(i),P.next=9,g.request({url:R,headers:v});case 9:return j=P.sent,P.abrupt("return",j.data);case 11:case"end":return P.stop()}},S)})),U.apply(this,arguments)}function x(S){var b=S.sourceId,i=S.association,w=S.parentRecord,E=(0,p.LY)(),g=(0,o.zh)(),v=(0,t.FE)(g.dataSource),a=(0,h.U)(i);return(0,p.QT)(function(){return T({sourceId:b,association:i,parentRecord:w,api:E,headers:v,sourceKey:a})},{refreshDeps:[i,w,b]})}var I=function(b){var i,w,E=b.children,g=(0,o.zh)(),v=g.action,a=g.filterByTk,d=g.sourceId,R=g.params,j=R===void 0?{}:R,n=g.association,P=g.collection,z=g.record,N=g.parentRecord,G=g.requestOptions,Q=g.requestService,K=C({action:v,sourceId:d,record:z,association:n,collection:P,requestOptions:G,requestService:Q,params:f()(f()({},j),{},{filterByTk:a||j.filterByTk})}),H=x({sourceId:d,association:n,parentRecord:N}),q=(0,L.useMemo)(function(){var oe,ne,Z,k;return((oe=H.data)===null||oe===void 0?void 0:oe.data)&&new M.DI({isNew:!1,data:((ne=H.data)===null||ne===void 0?void 0:ne.data)instanceof M.DI?(Z=H.data)===null||Z===void 0?void 0:Z.data.data:(k=H.data)===null||k===void 0?void 0:k.data})},[(i=H.data)===null||i===void 0?void 0:i.data]);return(0,B.jsx)(y.Provider,{value:K,children:v!=="list"?(0,B.jsx)(M.E0,{isNew:v==null,record:((w=K.data)===null||w===void 0?void 0:w.data)||z,parentRecord:q||N,children:E}):(0,B.jsx)(M.E0,{isNew:!1,record:null,parentRecord:q||N,children:E})})},m=function(){var b=(0,L.useContext)(y);return b}},14310:function(ze,te,e){"use strict";e.d(te,{T1:function(){return r},eh:function(){return W},wb:function(){return p}});var $=e(67294),l=e(12174),V=e(1836),c=e(88496),D=e(8341),f=e(87180),L=e(85893),r=(0,$.createContext)(null);r.displayName="DataBlockResourceContext";var W=function(h){var M=h.children,t=(0,f.zh)(),o=(0,V.d9)(),u=t.association,B=t.collection,y=t.dataSource,C=t.sourceId,T=t.parentRecord,U=(0,l.LY)(),x=(0,D.FE)(y),I=(0,$.useMemo)(function(){return typeof B=="string"?B:B==null?void 0:B.name},[B]),m=(0,$.useMemo)(function(){if(C)return C;if(u&&T){var b=o.getSourceKeyByAssociation(u),i=T instanceof c.DI?T.data:T;return i[b]}},[u,C,T]),S=(0,$.useMemo)(function(){return u?U.resource(u,m,x,!m):U.resource(I,void 0,x)},[U,u,B,m,x]);return(0,L.jsx)(r.Provider,{value:S,children:M})};function p(){var A=(0,$.useContext)(r);if(!A)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return A}},35519:function(ze,te,e){"use strict";e.d(te,{n:function(){return B},o:function(){return u}});var $=e(31996),l=e.n($),V=e(26037),c=e.n(V),D=e(15009),f=e.n(D),L=e(99289),r=e.n(L),W=e(12444),p=e.n(W),A=e(72004),h=e.n(A),M=e(9783),t=e.n(M),o=e(1836),u=function(){function y(C,T){p()(this,y),t()(this,"collectionManager",void 0),t()(this,"reloadCallbacks",[]),this.options=C,this.dataSourceManager=T,this.collectionManager=new o.w4(C.collections,this)}return h()(y,[{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(T){Object.assign(this.options,T)}},{key:"getOption",value:function(T){return this.options[T]}},{key:"addReloadCallback",value:function(T){this.reloadCallbacks.includes(T)||this.reloadCallbacks.push(T)}},{key:"removeReloadCallback",value:function(T){this.reloadCallbacks=this.reloadCallbacks.filter(function(U){return U!==T})}},{key:"reload",value:function(){var C=r()(f()().mark(function U(){var x;return f()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.getDataSource();case 2:return x=m.sent,this.setOptions(x),this.collectionManager.setCollections(x.collections||[]),this.reloadCallbacks.forEach(function(S){return S(x.collections)}),m.abrupt("return",this.options);case 7:case"end":return m.stop()}},U,this)}));function T(){return C.apply(this,arguments)}return T}()}]),y}(),B=function(y){l()(T,y);var C=c()(T);function T(){return p()(this,T),C.apply(this,arguments)}return h()(T,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),T}(u)},57638:function(ze,te,e){"use strict";e.d(te,{AK:function(){return m},UC:function(){return I},ym:function(){return x}});var $=e(97857),l=e.n($),V=e(15009),c=e.n(V),D=e(5574),f=e.n(D),L=e(99289),r=e.n(L),W=e(19632),p=e.n(W),A=e(12444),h=e.n(A),M=e(72004),t=e.n(M),o=e(9783),u=e.n(o),B=e(35519),y=e(67836),C=e(65050),T=e(96486),U=e.n(T),x="main",I='{{t("Main")}}',m=function(){function S(){var b,i=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;h()(this,S),u()(this,"dataSourceInstancesMap",{}),u()(this,"multiDataSources",[]),u()(this,"collectionMixins",[]),u()(this,"collectionTemplateManager",void 0),u()(this,"collectionFieldInterfaceManager",void 0),this.options=w,this.app=E,this.collectionTemplateManager=new y.y(w.collectionTemplates,this),this.collectionFieldInterfaceManager=new C.Z(w.fieldInterfaces,w.fieldInterfaceGroups,this),(b=this.collectionMixins).push.apply(b,p()(w.collectionMixins||[])),this.addDataSource(B.n,{key:x,displayName:I,collections:w.collections||[]}),(w.dataSources||[]).forEach(function(g){i.addDataSource(B.n,g)})}return t()(S,[{key:"addCollectionMixins",value:function(){var i=this,w,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=E.filter(function(v){return!i.collectionMixins.includes(v)});g.length&&((w=this.collectionMixins).push.apply(w,p()(g)),this.getDataSources().forEach(function(v){return v.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(i){var w=Object.values(this.dataSourceInstancesMap);return i?U().filter(w,i):w}},{key:"getDataSource",value:function(i){return i?this.dataSourceInstancesMap[i]:this.dataSourceInstancesMap[x]}},{key:"removeDataSources",value:function(i){var w=this;i.forEach(function(E){delete w.dataSourceInstancesMap[E]})}},{key:"addDataSource",value:function(i,w){var E=new i(w,this);return this.dataSourceInstancesMap[E.key]=E,E}},{key:"addDataSources",value:function(){var b=r()(c()().mark(function w(E,g){return c()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!this.multiDataSources.some(function(d){var R=f()(d,2),j=R[0],n=R[1];return j===E&&n===g})){a.next=2;break}return a.abrupt("return");case 2:this.multiDataSources.push([E,g]);case 3:case"end":return a.stop()}},w,this)}));function i(w,E){return b.apply(this,arguments)}return i}()},{key:"getAllCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=i.filterCollection,E=i.filterDataSource;return this.getDataSources(E).reduce(function(g,v){return g.push(l()(l()({},v.getOptions()),{},{collections:v.collectionManager.getCollections(w)})),g},[])}},{key:"addFieldInterfaceGroups",value:function(i){this.collectionFieldInterfaceManager.addFieldInterfaceGroups(i)}},{key:"addCollectionTemplates",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionTemplateManager.addCollectionTemplates(i)}},{key:"addFieldInterfaces",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionFieldInterfaceManager.addFieldInterfaces(i)}},{key:"reload",value:function(){var b=r()(c()().mark(function w(){var E=this;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Promise.all(this.multiDataSources.map(function(){var a=r()(c()().mark(function d(R){var j,n,P,z;return c()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return j=f()(R,2),n=j[0],P=j[1],G.next=3,n();case 3:z=G.sent,z.map(function(Q){return E.addDataSource(P,Q)});case 5:case"end":return G.stop()}},d)}));return function(d){return a.apply(this,arguments)}}()));case 2:return v.abrupt("return",Promise.all(this.getDataSources().map(function(a){return a.reload()})));case 3:case"end":return v.stop()}},w,this)}));function i(){return b.apply(this,arguments)}return i}()}]),S}()},13511:function(ze,te,e){"use strict";e.d(te,{fp:function(){return D},kv:function(){return c},up:function(){return V}});var $=e(67294),l=e(85893),V=(0,$.createContext)(null);V.displayName="DataSourceManagerContext";var c=function(L){var r=L.children,W=L.dataSourceManager;return(0,l.jsx)(V.Provider,{value:W,children:r})};function D(){var f=(0,$.useContext)(V);return f}},44990:function(ze,te,e){"use strict";e.d(te,{FC:function(){return o},LX:function(){return M},NT:function(){return h},wl:function(){return t}});var $=e(5574),l=e.n($),V=e(67294),c=e(13511),D=e(36032),f=e(40868),L=e(59720),r=e(15867),W=e(50888),p=e(26793),A=e(85893),h=(0,V.createContext)(null);h.displayName="DataSourceContext";var M=function(B){var y=B.children,C=B.dataSource,T=(0,c.fp)(),U=(0,p.$)(),x=U.t,I=(0,f.Dmu)(),m=I.refresh,S=V.useState(0),b=l()(S,2),i=b[0],w=b[1],E=T==null?void 0:T.getDataSource(C);return E?E.status==="loading-failed"?(0,A.jsx)(D.z,{type:"Data Source",name:E.displayName||C,message:E.errorMessage||"loading failed"}):E.status==="loading"||E.status==="reloading"?(0,A.jsx)(f.Ssf,{children:(0,A.jsx)(L.ZP,{icon:(0,A.jsx)(W.Z,{}),title:"".concat(E.displayName||C," ").concat(x("data source")," ").concat(x("loading"),"..."),extra:(0,A.jsx)(r.ZP,{type:"primary",onClick:function(){return E.reload().then(function(){m(),w(Math.random())})},children:x("Refresh")})})}):(0,A.jsx)(h.Provider,{value:E,children:y}):(0,A.jsx)(D.z,{type:"Data Source",name:C})};function t(){var u=(0,V.useContext)(h);return u}function o(){var u=(0,V.useContext)(h);return u==null?void 0:u.key}},49453:function(ze,te,e){"use strict";e.d(te,{AK:function(){return l.AK},FC:function(){return V.FC},LX:function(){return V.LX},NT:function(){return V.NT},UC:function(){return l.UC},fp:function(){return c.fp},kv:function(){return c.kv},nC:function(){return $.n},o2:function(){return $.o},up:function(){return c.up},wl:function(){return V.wl},ym:function(){return l.ym}});var $=e(35519),l=e(57638),V=e(44990),c=e(13511)},94804:function(ze,te,e){"use strict";e.d(te,{dq:function(){return p.dq},ym:function(){return $.ym},do:function(){return W.do},N4:function(){return W.N4},m9:function(){return V.m9},FE:function(){return $.FE},WH:function(){return $.WH},zW:function(){return f.z},sb:function(){return l.s},v_:function(){return V.v_},SY:function(){return c.S},Z:function(){return c.Z},qL:function(){return l.q},YT:function(){return V.YT},Cd:function(){return z},rJ:function(){return j},lC:function(){return G},w4:function(){return $.w4},IX:function(){return $.IX},xw:function(){return $.xw},pD:function(){return f.p},YQ:function(){return $.YQ},DI:function(){return h.DI},vI:function(){return h.vI},E0:function(){return h.E0},Pl:function(){return D.P},yM:function(){return D.y},Ip:function(){return A.ym},UC:function(){return A.UC},hZ:function(){return p.hZ},KY:function(){return p.KY},T1:function(){return r.T1},eh:function(){return r.eh},o2:function(){return A.o2},i:function(){return L.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 $.Xc},j5:function(){return $.j5},nC:function(){return A.nC},sI:function(){return p.sI},Pd:function(){return $.Pd},K0:function(){return Q.K},iv:function(){return P},GX:function(){return M.GX},Yj:function(){return M.Yj},H0:function(){return W.H0},Xo:function(){return $.Xo},Kx:function(){return $.Kx},Hy:function(){return V.Hy},ge:function(){return $.ge},d9:function(){return $.d9},RA:function(){return h.RA},Kv:function(){return h.Kv},oV:function(){return h.oV},nE:function(){return h.nE},bX:function(){return $.bX},eS:function(){return p.eS},zh:function(){return p.zh},hS:function(){return W.hS},wb:function(){return r.wb},wl:function(){return A.wl},on:function(){return M.FE},FC:function(){return A.FC},fp:function(){return A.fp},P5:function(){return $.P5},lb:function(){return $.lb},Rr:function(){return p.Rr}});var $=e(1836),l=e(52020),V=e(67668),c=e(65050),D=e(67836),f=e(36032),L=e(88996),r=e(14310),W=e(39742),p=e(87180),A=e(49453),h=e(88496),M=e(8341),t=e(97857),o=e.n(t),u=e(67294);function B(K,H,q){var oe,ne=K.block,Z=K.isReadPretty,k=Z===void 0?function(ge){var se=ge.form;return se.readPretty}:Z,Y=K.filter,De=Y===void 0?function(){return!0}:Y,ee=K.getInitializerItem,he=ee===void 0?function(){return{}}:ee,be=K.getSchema,Fe=be===void 0?function(){return{}}:be,_e=q.collectionManager,Te=q.collection,Ae=q.dataSourceManager,ue=q.actionContext,ae=(oe=ue.fieldSchema)===null||oe===void 0?void 0:oe["x-action"];return Te?H.map(function(ge){var se=_e.getCollection(ge.target),pe=Ae.collectionFieldInterfaceManager.getFieldInterface(ge.interface);return{collectionField:ge,context:o()(o()({},q),{},{targetCollection:se,collectionFieldInterface:pe})}}).filter(function(ge){var se=ge.collectionField;return se.interface}).filter(function(ge){var se=ge.collectionField,pe=ge.context;return De(se,pe)}).map(function(ge){var se,pe,xe=ge.collectionField,Se=ge.context,je={type:"string",title:(xe==null||(se=xe.uiSchema)===null||se===void 0?void 0:se.title)||xe.name,name:xe.name,"x-component":"CollectionField","x-collection-field":"".concat(Te.name,".").concat(xe.name),"x-read-pretty":xe==null||(pe=xe.uiSchema)===null||pe===void 0?void 0:pe["x-read-pretty"]},Le=Fe(xe,o()(o()({},Se),{},{defaultSchema:je})),Oe=o()(o()({},je),Le||{});return{collectionField:xe,schema:Oe,context:o()(o()({},Se),{},{schema:Oe})}}).map(function(ge){var se,pe=ge.collectionField,xe=ge.context,Se={type:"item",name:pe.name,title:(pe==null||(se=pe.uiSchema)===null||se===void 0?void 0:se.title)||pe.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Le){var Oe,ve;(Oe=xe.collectionFieldInterface)===null||Oe===void 0||(ve=Oe.schemaInitialize)===null||ve===void 0||ve.call(Oe,Le,{field:pe,block:ne,readPretty:k==null?void 0:k(xe),action:ae,targetCollection:xe.targetCollection})},schema:xe.schema};return{collectionField:pe,context:xe,defaultInitializerItem:Se}}).map(function(ge){var se=ge.collectionField,pe=ge.defaultInitializerItem,xe=ge.context,Se=he(se,o()(o()({},xe),{},{defaultInitializerItem:pe}));return o()(o()({},pe),Se||{})}):[]}var y=e(94350),C=e(26793),T=e(58837),U=e(44990),x=e(76157),I=e(35746),m=e(13511),S=e(40868);function b(){var K=(0,C.$)(),H=K.t,q=(0,T.Kx)(),oe=(0,m.fp)(),ne=(0,x.XC)(),Z=(0,U.wl)(),k=(0,y.useForm)(),Y=(0,y.useFieldSchema)(),De=(0,I.d9)(),ee=(0,S.eJW)();return{t:H,compile:ee,actionContext:ne,fieldSchema:Y,collection:q,dataSource:Z,form:k,collectionManager:De,dataSourceManager:oe}}var i=e(59582),w=e(85893),E=function(H){var q=b(),oe=q.t,ne=q.collection,Z=ne.getFields(),k=B(H,Z,q);return(0,w.jsx)(i.iP,{title:oe("Display fields"),children:k})},g=function(H){var q=b(),oe=q.collection,ne=q.t,Z=q.collectionManager,k=oe.getParentCollectionsName();if(!k.length)return null;var Y=k.map(function(De){var ee=oe.getParentCollectionFields(De);if(ee.length===0)return null;var he=Z.getCollection(De);return{parentCollection:he,parentCollectionFields:ee}}).filter(Boolean).map(function(De){var ee=De,he=ee.parentCollection,be=ee.parentCollectionFields,Fe=o()(o()({},q),{},{collection:he});return{type:"itemGroup",divider:!0,title:ne("Parent collection fields")+"("+q.compile(he.title)+")",children:B(H,be,Fe)}});return(0,w.jsx)(i.E0,{children:Y})},v=e(13769),a=e.n(v),d=["filterAssociationField","filterSelfField","getSchema"],R=function(H){var q=H.filterAssociationField,oe=H.filterSelfField,ne=oe===void 0?function(){return!0}:oe,Z=H.getSchema,k=a()(H,d),Y=H.context,De=Y.collection,ee=Y.t,he=Y.collectionManager,be=De.getFields(),Fe=["o2o","oho","obo","m2o"],_e=be.filter(function(Ae){return Fe.includes(Ae.interface)}).filter(function(Ae){return ne(Ae,H.context)});if(!_e.length)return null;var Te=_e.map(function(Ae){var ue=he.getCollection(Ae.target);if(!ue)return null;var ae=ue==null?void 0:ue.getAllFields();return ae.length?{associationField:Ae,associationCollection:ue,associationCollectionFields:ae}:null}).filter(Boolean).map(function(Ae){var ue,ae,ge=Ae.associationField,se=Ae.associationCollection,pe=Ae.associationCollectionFields,xe=o()(o()({},H.context),{},{collection:se}),Se=function(Le,Oe){var ve=Z(Le,Oe);return o()(o()({},ve||{}),{},{"x-read-pretty":!0,name:"".concat(ge.name,".").concat(Le.name),"x-collection-field":"".concat(De.name,".").concat(ge.name,".").concat(Le.name)})};return{type:"subMenu",name:(ue=ge.uiSchema)===null||ue===void 0?void 0:ue.title,title:(ae=ge.uiSchema)===null||ae===void 0?void 0:ae.title,children:B(o()(o()({},k),{},{filter:q,getSchema:Se}),pe,xe)}});return Te.length?(0,w.jsx)(i.iP,{title:ee("Display association fields"),children:Te}):null},j=function(H){var q=H.selfField,oe=H.parentField,ne=H.associationField,Z=H.block,k=b();return k.collection?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(E,o()(o()({block:Z},q),{},{context:o()(o()({},k),{},{collection:k.collection})})),oe&&(0,w.jsx)(g,o()(o()({block:Z},oe),{},{context:o()(o()({},k),{},{collection:k.collection})})),ne&&(0,w.jsx)(R,o()(o()({block:Z},ne),{},{context:o()(o()({},k),{},{collection:k.collection})}))]}):null},n=e(40341),P=function(H,q,oe){var ne=(0,n.nD)(H,"x-component","Kanban");return(0,n.nD)(ne,q,oe)},z=function(H){var q=(H==null?void 0:H.block)||"Form",oe={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},ne={remove:n.YT};return(0,w.jsx)(j,{block:q,selfField:{filter:function(k){return!k.treeChildren},getSchema:function(k,Y){var De,ee=Y.targetCollection,he=(ee==null?void 0:ee.template)==="file",be=ee,Fe=k==null||(De=k.uiSchema)===null||De===void 0||(De=De["x-component-props"])===null||De===void 0?void 0:De.fieldNames;return o()(o()({},oe),{},{"x-component-props":he?{fieldNames:{label:"preview",value:"id"}}:be&&Fe?{fieldNames:o()(o()({},Fe),{},{label:(ee==null?void 0:ee.titleField)||Fe.label})}:{}})},getInitializerItem:function(){return o()(o()({},ne),{},{find:(H==null?void 0:H.block)==="Kanban"?P:void 0})}},parentField:{getSchema:function(){return oe},getInitializerItem:function(){return ne}},associationField:{filterSelfField:function(k){return q!=="Form"?!0:(k==null?void 0:k.interface)==="m2o"},filterAssociationField:function(k){return(k==null?void 0:k.interface)&&!["subTable"].includes(k==null?void 0:k.interface)&&!k.treeChildren},getSchema:function(){return oe},getInitializerItem:function(){return ne}}})},N=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],G=function(H){function q(oe){var ne=oe.fieldSchema,Z=oe.form,k=ne["x-component"]==="AssociationField.SubTable",Y=k?Z.readPretty:!0;return Y}return(0,w.jsx)(j,{block:"Table",selfField:{isReadPretty:q,filter:function(ne){return ne.interface!=="subTable"&&!ne.treeChildren},getSchema:function(ne,Z){var k,Y,De=Z.targetCollection,ee=Z.fieldSchema,he=Z.form,be=(De==null?void 0:De.template)==="file",Fe=((k=ne.uiSchema)===null||k===void 0?void 0:k["x-component"])==="Preview",_e=ee["x-component"]==="AssociationField.SubTable",Te=q({fieldSchema:ee,form:he});return{"x-component-props":be?{fieldNames:{label:"preview",value:"id"}}:Fe?{size:"small"}:{},"x-read-pretty":Te||((Y=ne.uiSchema)===null||Y===void 0?void 0:Y["x-read-pretty"]),"x-decorator":_e?N.includes(ne.interface)||be?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:n.p$,remove:n.pP}}},parentField:{isReadPretty:q,getSchema:function(ne,Z){var k,Y=Z.targetCollection,De=Z.fieldSchema,ee=Z.form,he=(Y==null?void 0:Y.template)==="file",be=De["x-component"]==="AssociationField.SubTable",Fe=q({fieldSchema:De,form:ee});return{"x-component-props":he?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":Fe||((k=ne.uiSchema)===null||k===void 0?void 0:k["x-read-pretty"]),"x-decorator":be?N.includes(ne.interface)||he?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:n.YT}}},associationField:{filterAssociationField:function(ne){return!["subTable"].includes(ne.interface)&&!ne.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:n.p$,remove:n.pP}}}})},Q=e(22558)},8341:function(ze,te,e){"use strict";e.d(te,{FE:function(){return L},GX:function(){return r},Yj:function(){return f}});var $=e(9783),l=e.n($),V=e(67294),c=e(57638),D="x-data-source",f=function(p,A){var h;return(h=p.collectionFieldInterfaceManager.getFieldInterface(A.interface))===null||h===void 0?void 0:h.titleUsable},L=function(p){var A=(0,V.useMemo)(function(){if(p&&p!==c.ym)return l()({},D,p)},[p]);return A},r=function(p){return p&&p!==c.ym?l()({},D,p):{}}},69803:function(ze,te,e){"use strict";e.d(te,{AL:function(){return S},C$:function(){return x},PE:function(){return U},jr:function(){return m},uN:function(){return b},yq:function(){return I}});var $=e(15009),l=e.n($),V=e(99289),c=e.n(V),D=e(12444),f=e.n(D),L=e(72004),r=e.n(L),W=e(31996),p=e.n(W),A=e(26037),h=e.n(A),M=e(5574),t=e.n(M),o=e(67294),u=e(64593),B=e(26793),y=e(31601),C=e(15585),T=e(85893),U=(0,o.createContext)({title:null,setTitle:function(){}});U.displayName="DocumentTitleContext";var x=function(w){var E=w.addonBefore,g=w.addonAfter,v=(0,B.$)(),a=v.t,d=(0,o.useState)(""),R=t()(d,2),j=R[0],n=R[1],P="".concat(E?" - ".concat(a(E)):"").concat(a(j||"")).concat(g?" - ".concat(a(g)):"");return(0,T.jsxs)(U.Provider,{value:{title:j,setTitle:n},children:[(0,T.jsx)(u.q,{children:(0,T.jsx)("title",{children:P})}),w.children]})},I=function(w){var E,g=(0,C.HX)();return(0,T.jsx)(x,{addonAfter:g==null||(E=g.data)===null||E===void 0||(E=E.data)===null||E===void 0?void 0:E.title,children:w.children})},m=function(){return(0,o.useContext)(U)},S=function(w){var E=m(),g=E.setTitle;(0,o.useEffect)(function(){g(w)},[])},b=function(i){p()(E,i);var w=h()(E);function E(){return f()(this,E),w.apply(this,arguments)}return r()(E,[{key:"load",value:function(){var g=c()(l()().mark(function a(){return l()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:this.app.use(I,this.options);case 1:case"end":return R.stop()}},a,this)}));function v(){return g.apply(this,arguments)}return v}()}]),E}(y.S)},67205:function(ze,te,e){"use strict";e.d(te,{XA:function(){return C},kO:function(){return U},vY:function(){return T}});var $=e(97857),l=e.n($),V=e(19632),c=e.n(V),D=e(5574),f=e.n(D),L=e(94350),r=e(96486),W=e.n(r),p=e(67294),A=e(58837),h=e(39742),M=e(4277),t=e(40868),o=e(87714),u=e(85893),B=function(x){return x.AND="$and",x.OR="$or",x}(B||{}),y=(0,p.createContext)(null);y.displayName="FilterContext";var C=function(I){var m=I.children,S=p.useState([]),b=f()(S,2),i=b[0],w=b[1];return(0,u.jsx)(y.Provider,{value:{dataBlocks:i,setDataBlocks:w},children:m})},T=function(I){var m,S=I.children,b=I.params,i=(0,A.Kx)(),w=U(),E=w.recordDataBlocks,g=(0,h.hS)(),v=(0,L.useField)(),a=(0,L.useFieldSchema)(),d=(0,o.Fp)(),R=(0,p.useRef)(null),j=(0,M.tU)(),n=v&&v.decoratorType!=="FilterFormBlockProvider"&&v.decoratorType!=="FormBlockProvider"&&v.decoratorProps.blockType!=="filter",P=(0,p.useCallback)(function(){E({uid:a["x-uid"],title:v.componentProps.title,doFilter:g.runAsync,collection:i,associatedFields:d,foreignKeyFields:i.getFields("isForeignKey"),defaultFilter:(b==null?void 0:b.filter)||{},service:g,dom:R.current,dataLoadingMode:j,clearFilter:function(N){var G,Q,K=((G=this.service.params)===null||G===void 0?void 0:G[0])||{},H=((Q=this.service.params)===null||Q===void 0||(Q=Q[1])===null||Q===void 0?void 0:Q.filters)||{};delete H[N];var q=(0,o.EO)([].concat(c()(Object.values(H).map(function(oe){return(0,t.WmO)(oe)})),[(b==null?void 0:b.filter)||{}]));this.service.run(l()(l()({},K),{},{page:1,filter:q}),{filters:H})},clearData:function(){this.service.mutate(void 0)}})},[d,i,j,v==null||(m=v.componentProps)===null||m===void 0?void 0:m.title,a,b==null?void 0:b.filter,E,g]);return(0,p.useEffect)(function(){n&&P()},[P,n]),(0,u.jsx)("div",{ref:R,children:S})},U=function(){var I=p.useContext(y),m=(0,p.useCallback)(function(){return(I==null?void 0:I.dataBlocks)||[]},[I==null?void 0:I.dataBlocks]);if(!I)return{inProvider:!1,recordDataBlocks:function(){},getDataBlocks:m,removeDataBlock:function(){}};var S=I.dataBlocks,b=I.setDataBlocks,i=function(g){var v=S.find(function(a){return a.uid===g.uid});if(v){Object.assign(v,g);return}b(function(a){return(0,r.uniqBy)([].concat(c()(a),[g]),"uid")})},w=function(g){S.every(function(v){return v.uid!==g})||b(function(v){return v.filter(function(a){return a.uid!==g})})};return{recordDataBlocks:i,getDataBlocks:m,removeDataBlock:w,inProvider:!0}}},18386:function(ze,te,e){"use strict";e.d(te,{$f:function(){return l.$f},EO:function(){return l.EO},Fp:function(){return l.Fp},Op:function(){return l.Op},Um:function(){return l.Um},XA:function(){return $.XA},hi:function(){return l.hi},jE:function(){return l.jE},kO:function(){return $.kO},vC:function(){return l.vC},vY:function(){return $.vY},x5:function(){return l.x5},yr:function(){return l.yr},zv:function(){return l.zv}});var $=e(67205),l=e(87714)},87714:function(ze,te,e){"use strict";e.d(te,{$f:function(){return w},EO:function(){return x},Fp:function(){return i},Op:function(){return v},Um:function(){return S},hi:function(){return g},jE:function(){return b},vC:function(){return U},x5:function(){return I},yr:function(){return E},zv:function(){return m}});var $=e(97857),l=e.n($),V=e(19632),c=e.n(V),D=e(5574),f=e.n(D),L=e(9783),r=e.n(L),W=e(52677),p=e.n(W),A=e(94350),h=e(68433),M=e(96486),t=e.n(M),o=e(67294),u=e(10097),B=e(6145),y=e(58837),C=e(40868),T=e(67205),U=function(a){return a[a.FORM=0]="FORM",a[a.TABLE=1]="TABLE",a[a.TREE=2]="TREE",a[a.COLLAPSE=3]="COLLAPSE",a}({}),x=function(d){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",j=d.filter(function(n){if(n&&p()(n)==="object"&&!Array.isArray(n))return Object.values(n).filter(function(P){return P!==void 0}).length});return j.length===0?{}:j.length===1?j[0]:r()({},R,j)},I=function(d,R){var j;return(j=R.associatedFields)===null||j===void 0?void 0:j.filter(function(n){return d==null?void 0:d.some(function(P){return P===n.target})})},m=function(d,R){var j;return(j=R.foreignKeyFields)===null||j===void 0?void 0:j.filter(function(n){return d.fields.some(function(P){return P.type!=="belongsTo"&&P.foreignKey===n.name})})},S=function(d){var R=(0,T.kO)(),j=R.getDataBlocks,n=(0,A.useFieldSchema)(),P=(0,y.Kx)(),z=(0,B.useCollectionManager_deprecated)(),N=z.getAllCollectionsInheritChain;if(d===U.FORM||d===U.COLLAPSE)return j().filter(function(G){return E(G.collection,P)});if(d===U.TABLE||d===U.TREE)return j().filter(function(G){var Q,K;return n["x-uid"]!==G.uid&&(E(G.collection,P)||((Q=I(N(P.name,P.dataSource),G))===null||Q===void 0?void 0:Q.length)||((K=m(P,G))===null||K===void 0?void 0:K.length))})},b=function(d,R,j,n){d=(0,h.flatten)(d,{breakOn:function(N){var G=N.value,Q=N.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(R[Q]))return!0;var K=j("".concat(n,".").concat(Q));if(K!=null&&K.target){if(Array.isArray(G))return!0;var H=K.targetKey||"id";if(G&&G[H]!=null)return!0}return!1}});var P={$and:Object.keys(d).map(function(z){var N=t().get(d,z),G=j("".concat(n,".").concat(z));return G!=null&&G.target&&(N=(0,h.getValuesByPath)(N,G.targetKey||"id"),z="".concat(z,".").concat(G.targetKey||"id")),!N&&N!==0&&N!==!1?null:r()({},z,r()({},R[z]||"$eq",N))}).filter(Boolean)};return P},i=function(){var d=(0,B.useCollection_deprecated)(),R=d.fields;return R.filter(function(j){return w(j)})||[]},w=function(d){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(d==null?void 0:d.interface)},E=function(d,R){return d.name===R.name&&d.dataSource===R.dataSource},g=function(){var d=(0,A.useFieldSchema)(),R=(0,T.kO)(),j=R.getDataBlocks,n=(0,u.findFilterTargets)(d),P=n.targets,z=n.uid,N=j(),G=(0,o.useState)(function(){return P&&P.some(function(ne){return N.some(function(Z){return Z.uid===ne.uid})})}),Q=f()(G,2),K=Q[0],H=Q[1],q=Object.keys(P||{});(0,o.useEffect)(function(){H(P&&P.some(function(ne){return N.some(function(Z){return Z.uid===ne.uid})}))},[q.length,P,N]);var oe=(0,o.useCallback)(function(ne){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";N.forEach(function(Y){var De,ee,he=P.find(function(Te){return Te.uid===Y.uid});if(he){t().isFunction(Z)&&(Z=Z(he)),t().isFunction(k)&&(k=k(he));var be=((De=Y.service.params)===null||De===void 0?void 0:De[0])||{},Fe=((ee=Y.service.params)===null||ee===void 0||(ee=ee[1])===null||ee===void 0?void 0:ee.filters)||{};ne!==void 0?Fe[z]={$and:[r()({},Z,r()({},k,ne))]}:delete Fe[z];var _e=x([].concat(c()(Object.values(Fe).map(function(Te){return(0,C.WmO)(Te)})),[Y.defaultFilter]));Y.doFilter(l()(l()({},be),{},{page:1,filter:_e}),{filters:Fe})}})},[N,P,z]);return{isConnected:K,doFilter:oe}},v=function(d){for(;d;){if(d["x-filter-targets"])return d["x-decorator"]==="FilterFormBlockProvider";d=d.parent}return!1}},5772:function(ze,te,e){"use strict";e.d(te,{C:function(){return c},z:function(){return V}});var $=e(67294),l=e(85893),V=$.createContext(null),c=function(f){return(0,l.jsx)(V.Provider,{value:f,children:f.children})}},7686:function(ze,te,e){"use strict";e.d(te,{P:function(){return V}});var $=e(67294),l=e(5772),V=function(){return(0,$.useContext)(l.z)||{}}},53285:function(ze,te,e){"use strict";e.d(te,{Cm:function(){return $.C},P5:function(){return l.P},z_:function(){return $.z}});var $=e(5772),l=e(7686)},69962:function(ze,te,e){"use strict";e.d(te,{wI:function(){return x},YO:function(){return S},kK:function(){return M},uH:function(){return A},mg:function(){return m}});var $=e(5574),l=e.n($),V=e(9361),c=e(28459),D=e(96486),f=e.n(D),L=e(67294),r=e(97857),W=e.n(r),p={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=p;function h(b){var i;return(i=b.token)!==null&&i!==void 0&&i.colorSettings||(b.token=W()(W()({},b.token),A.token)),b}var M=h,t=function(i,w){var E=w||V.Z.defaultAlgorithm(i);return E.paddingPageHorizontal===void 0&&(E.paddingPageHorizontal=E.sizeLG),E.paddingPageVertical===void 0&&(E.paddingPageVertical=E.sizeLG),E.paddingPopupHorizontal===void 0&&(E.paddingPopupHorizontal=E.sizeLG),E.paddingPopupVertical===void 0&&(E.paddingPopupVertical=E.size),E.marginBlock===void 0&&(E.marginBlock=E.sizeLG),E.borderRadiusBlock===void 0&&(E.borderRadiusBlock=E.borderRadiusLG),E},o=function(i){return Array.isArray(i.algorithm)?i.algorithm.includes(t)||i.algorithm.push(t):i.algorithm=[i.algorithm,t].filter(Boolean),i.algorithm=i.algorithm.filter(Boolean),i},u=e(85893),B=e(3321),y=e(12174),C=e(29939),T=(0,L.memo)(function(b){var i=b.children,w=(0,C.qD)(),E=B.Z.useApp(),g=E.notification,v=(0,y.LY)();return(0,L.useEffect)(function(){v.notification=g,w.notification=g},[g]),(0,u.jsx)(u.Fragment,{children:i})});T.displayName="AppInner";var U=function(i){var w=i.children,E=i.className,g=i.style;return(0,u.jsx)(B.Z,{className:E,style:W()({height:"100%"},g),children:(0,u.jsx)(T,{children:w})})};U.displayName="AntdAppProvider";var x=U,I=(0,L.createContext)(null);I.displayName="GlobalThemeContext";var m=function(){return L.useContext(I)||{theme:{},isDarkTheme:!1}},S=function(i){var w=i.children,E=i.theme,g=L.useState(E||A),v=l()(g,2),a=v[0],d=v[1],R=(0,L.useRef)(null),j=(0,L.useRef)(null),n=(0,L.useMemo)(function(){var K=a==null?void 0:a.algorithm;return Array.isArray(K)?K.includes(V.Z.darkAlgorithm):K===V.Z.darkAlgorithm},[a==null?void 0:a.algorithm]),P=(0,L.useCallback)(function(K){j.current=K&&f().cloneDeep(K)},[]),z=(0,L.useCallback)(function(){return j.current},[]),N=(0,L.useCallback)(function(K){R.current=K&&f().cloneDeep(K)},[]),G=(0,L.useCallback)(function(){return R.current},[]),Q=(0,L.useMemo)(function(){return{theme:o(a),setTheme:d,setCurrentSettingTheme:N,getCurrentSettingTheme:G,setCurrentEditingTheme:P,getCurrentEditingTheme:z,isDarkTheme:n}},[z,G,n,P,N,a]);return(0,u.jsx)(I.Provider,{value:Q,children:(0,u.jsx)(c.ZP,{theme:M(Q.theme),children:w})})}},15503:function(ze,te,e){"use strict";e.d(te,{M:function(){return M},t:function(){return t}});var $=e(97857),l=e.n($),V=e(96695),c=e.n(V),D=e(94350),f=e(96486),L=e.n(f),r=e(67294),W=e(40868),p=e(85893),A=function(){},h=function(u,B,y){var C=void 0;return L().isFunction(u)?C=u:(C=B[u],C||console.error("".concat(y," is not registered"))),C||A};function M(o,u){var B=(0,D.useExpressionScope)(),y=(0,r.useMemo)(function(){if(!o)return A;if(L().isFunction(o))return o;var T=o.split("."),U,x=c()(T),I;try{for(x.s();!(I=x.n()).done;){var m=I.value;U=h(m,U||B,o)}}catch(S){x.e(S)}finally{x.f()}return U},[o]),C=y(u);return C}function t(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=u.displayName||o.displayName||o.name,y=function C(T){var U=(0,W.ngQ)(),x=U.dn,I=U.findComponent,m=(0,r.useMemo)(function(){var i=x.getSchemaAttribute("x-component"),w=x.getSchemaAttribute("x-decorator"),E=x.getSchemaAttribute("x-use-component-props"),g=x.getSchemaAttribute("x-use-decorator-props");if(i&&E&&I(i)===C)return E;if(w&&g&&I(w)===C)return g},[x]),S=M(m,T),b=(0,r.useMemo)(function(){return l()(l()({},T),S)},[S,T]);return(0,p.jsx)(o,l()(l()({},b),{},{children:T.children}))};return o.displayName=B,y.displayName="withSchemaProps(".concat(B,")"),y}},29392:function(ze,te,e){"use strict";e.d(te,{W:function(){return $},S:function(){return c}});var $=function(){return"nocobase-admin-menu"},l=e(67294),V=function(){var f=(0,l.useRef)("initial-scale=0.1"),L=(0,l.useRef)();(0,l.useEffect)(function(){var W=document.querySelector('meta[name="viewport"]');W?f.current=W.content:(W=document.createElement("meta"),W.name="viewport"),W&&(W.content="width=device-width, initial-scale=1, user-scalable=0",L.current=W)},[]);var r=function(){L.current&&(L.current.content=f.current)};return{metaRef:L,restore:r}};function c(){var D=V(),f=D.metaRef,L=D.restore;(0,l.useEffect)(function(){if(f.current)return document.head.insertBefore(f.current,document.head.firstChild),function(){L()}},[])}},74820:function(ze,te,e){"use strict";e.d(te,{d5:function(){return W},iX:function(){return A},nu:function(){return p}});var $=e(19632),l=e.n($),V=e(96486),c=e.n(V),D=e(67294),f=e(85893),L=(0,D.createContext)(null);L.displayName="GetMenuItemContext";var r=(0,D.createContext)(null);r.displayName="GetMenuItemsContext";var W=function(){return(0,D.useContext)(L)||{}},p=function(){return(0,D.useContext)(r)||{}},A=function(){var M=(0,D.useRef)([]),t=(0,D.useRef)(null),o=(0,D.useRef)(!1),u=(0,D.useCallback)(function(T){var U=T.limitCount;return o.current?(o.current=!1,t.current?t.current():U&&M.current.length>U?(0,f.jsx)(f.Fragment,{children:M.current.slice(0,U).map(function(x,I){return(0,f.jsx)(x,{},I)})}):(0,f.jsx)(f.Fragment,{children:M.current.map(function(x,I){return(0,f.jsx)(x,{},I)})})):null},[]),B=(0,D.useCallback)(function(T){var U=[],x=function(m){U.push(m),U.sort(function(S,b){return(S.order||0)-(b.order||0)})};return o.current=!0,t.current=function(){var I=U.filter(function(m){return m.notdelete}).map(function(m){return c().omit(m,"notdelete")});return U.length=0,U.push.apply(U,l()(I)),(0,f.jsx)(r.Provider,{value:{pushMenuItem:x},children:T()})},U},[]),y=(0,D.useCallback)(function(T){var U={},x=function(m){Object.assign(U,m)};return o.current=!0,M.current.push(function(){return(0,f.jsx)(L.Provider,{value:{collectMenuItem:x},children:T()})}),U},[]),C=(0,D.useCallback)(function(){M.current=[]},[]);return{Component:u,getMenuItems:B,getMenuItem:y,clean:C}}},58384:function(ze,te,e){"use strict";e.d(te,{a:function(){return D},v:function(){return c}});var $=e(36609),l=e(57715),V=e(35310);function c(L,r){return r?"{{t(".concat(JSON.stringify(L),", ").concat(JSON.stringify(r),")}}"):"{{t(".concat(JSON.stringify(L),")}}")}var D=$.default.createInstance(),f={};Object.keys(V.Z).forEach(function(L){f[L]=V.Z[L].resources}),D.use(l.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(ze,te,e){"use strict";e.d(te,{JO:function(){return u},OL:function(){return t},ci:function(){return h},q5:function(){return M},fm:function(){return o}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(33970),f=e(16165),L=e(91321),r=e(67294),W=e(85893),p=["type","component"],A,h=new Map;function M(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A;h.set(y.toLowerCase(),C)}function t(y){return y?h.has(y.toLowerCase()):!1}function o(y){Object.keys(y).forEach(function(C){M(C,y[C])})}Object.keys(D).forEach(function(y){y.endsWith("Outlined")&&M(y,D[y])});var u=function(C){var T=C.type,U=T===void 0?"":T,x=C.component,I=c()(C,p);if(x)return(0,W.jsx)(f.Z,l()({component:x},I));if(U&&h.has(U.toLowerCase())){var m=h.get(U.toLowerCase());return(0,W.jsx)(m,l()({},I))}return U&&A?(0,W.jsx)(A,{type:U}):null};u.createFromIconfontCN=function(y){A=(0,L.Z)(y)},u.register=function(y){o(y)};var B=null},21143:function(ze,te,e){"use strict";e.r(te),e.d(te,{ACLActionParamsContext:function(){return T.R1},ACLActionProvider:function(){return T.mE},ACLCollectionFieldProvider:function(){return T.tq},ACLCollectionProvider:function(){return T.Hh},ACLContext:function(){return T.R3},ACLMenuItemProvider:function(){return T.fJ},ACLPane:function(){return T.$M},ACLPlugin:function(){return T.pz},ACLProvider:function(){return T.Z5},ACLRolesCheckProvider:function(){return T.VV},ADMIN_SETTINGS_KEY:function(){return m.eB},ADMIN_SETTINGS_PATH:function(){return m.oz},APIClient:function(){return x.lP},APIClientContext:function(){return x._Z},APIClientProvider:function(){return x.Xb},Action:function(){return k.aUM},ActionBar:function(){return k.olz},ActionBarAssociationFilterAction:function(){return Y.cm},ActionBarProvider:function(){return k.N0i},ActionContext:function(){return k.fWn},ActionContextProvider:function(){return k.EIK},ActionDesigner:function(){return k.$Lt},ActionInitializer:function(){return Y.$M},ActionInitializerItem:function(){return Y.eq},AdminDynamicPage:function(){return Z.zf},AdminLayout:function(){return Z.lq},AdminLayoutPlugin:function(){return Z.r3},AdminProvider:function(){return Z.IA},AdminSettingsLayout:function(){return q.i9},AfterSuccess:function(){return k.$b8},AntdAppProvider:function(){return P.wI},AntdConfigPlugin:function(){return U.kT},AntdConfigProvider:function(){return U.zy},AntdSchemaComponentPlugin:function(){return k.HTy},AntdSchemaComponentProvider:function(){return k.lkv},AppComponent:function(){return m.y$},AppLangContext:function(){return U.UJ},AppendsTreeSelect:function(){return k.rDu},Application:function(){return m.Mx},ApplicationContext:function(){return m.Zz},AssignedFieldValues:function(){return k.eYL},AssociatedFields:function(){return Y.Pg},AssociationField:function(){return k.Rat},AssociationFieldMode:function(){return k.oAt},AssociationFieldModeProvider:function(){return k.E7E},AssociationFilter:function(){return Y.tr},AssociationFilterDesignerDelete:function(){return Y.nr},AssociationFilterDesignerDisplayField:function(){return Y.N2},AssociationFilterPlugin:function(){return Y.Ys},AssociationOrCollectionProvider:function(){return d.dq},AssociationProvider:function(){return d.ym},AssociationSelect:function(){return k.$SD},AsyncDataContext:function(){return S.tO},AsyncDataProvider:function(){return S.pW},AttachmentList:function(){return k.fUi},AutoComplete:function(){return k.QcG},BackButtonUsedInSubPage:function(){return k.MLy},BaseVariableProvider:function(){return ee.Nx},BlankComponent:function(){return m.X_},Block:function(){return k.gOu},BlockAssociationContext:function(){return b.WJ},BlockContext:function(){return b.Qj},BlockInitializer:function(){return Y.bn},BlockItem:function(){return k.jYG},BlockItemInitializer:function(){return Y.VD},BlockProvider:function(){return b.ZJ},BlockRequestContext:function(){return d.do},BlockRequestContext_deprecated:function(){return b.br},BlockRequestProvider:function(){return d.N4},BlockRequestProvider_deprecated:function(){return b.M0},BlockResourceContext:function(){return b.wH},BlockSchemaComponentPlugin:function(){return b.jF},BlockSchemaComponentProvider:function(){return b.UC},BlockSchemaToolbar:function(){return se.G},BlockTemplateContext:function(){return he.k0},BlockTemplateDetails:function(){return he.bs},BlockTemplatePage:function(){return he.EF},BlockTemplateProvider:function(){return he.AG},BlockTemplatesPane:function(){return he.L},ButtonEditor:function(){return k.C1I},CSSVariableProvider:function(){return a.O},CardItem:function(){return k.Ssf},Cascader:function(){return k.vTp},Checkbox:function(){return k.XZJ},ChinaRegionProvider:function(){return i.m},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},CollectionFieldInternalField:function(){return d.qL},CollectionFieldProvider:function(){return d.YT},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 k.Tt2},CollectionTemplate:function(){return d.Pl},CollectionTemplateManager:function(){return d.yM},ColorPicker:function(){return k.zH8},ColorSelect:function(){return k.Q5L},CompatibleSchemaInitializer:function(){return m.nl},CreateFilterActionInitializer:function(){return Y.nl},CreateResetActionInitializer:function(){return Y.cz},Cron:function(){return k.Pok},CronSet:function(){return k.Vm0},CurrentAppInfoContext:function(){return I.RQ},CurrentAppInfoProvider:function(){return I.Gq},CurrentUser:function(){return Te.Ih},CurrentUserContext:function(){return Te.Ec},CurrentUserProvider:function(){return Te.MF},CurrentUserSettingsMenuProvider:function(){return Te.mY},CustomRouterContextProvider:function(){return m.O6},CustomizeActionInitializer:function(){return Y.yE},DEBOUNCE_WAIT:function(){return Ae.on},DEFAULT_DATA_SOURCE_KEY:function(){return d.Ip},DEFAULT_DATA_SOURCE_TITLE:function(){return d.UC},DataBlockCollector:function(){return j.vY},DataBlockContext:function(){return d.hZ},DataBlockInitializer:function(){return Y.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 k.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 k.Lip},DatePicker:function(){return k.Mtg},DatePickerProvider:function(){return k.iNu},DefaultValueProvider:function(){return ee.yT},Designable:function(){return k.zzt},DesignableSwitch:function(){return k._bl},Details:function(){return k.POi},DetailsBlockContext:function(){return b.LR},DetailsBlockProvider:function(){return b.nw},DetailsDesigner:function(){return k.AOY},DndContext:function(){return k.LBT},DocumentTitleContext:function(){return R.PE},DocumentTitleProvider:function(){return R.C$},DragHandler:function(){return k.IWB},DraggableContext:function(){return k.LCt},DropdownVisibleContext:function(){return Te.yI},EditComponent:function(){return k.FyH},EditDefaultValue:function(){return k.Nir},EditDescription:function(){return k.q8U},EditOperator:function(){return k.HGA},EditPattern:function(){return k.QTe},EditRequired:function(){return k.JEX},EditSortField:function(){return k.fAH},EditTitle:function(){return k.$w$},EditTitleField:function(){return k.nBj},EditTooltip:function(){return k.Oct},EditValidationRules:function(){return k.zdw},Editable:function(){return k.CXR},EllipsisWithTooltip:function(){return k.BQs},ErrorFallback:function(){return k.Hj5},Expand:function(){return k.M0b},ExtendCollectionsContext:function(){return d.Xc},ExtendCollectionsProvider:function(){return d.j5},Filter:function(){return k.wn$},FilterAction:function(){return k.GzZ},FilterActionContext:function(){return k.tJZ},FilterAssociatedFields:function(){return Y.EC},FilterBlockProvider:function(){return j.XA},FilterBlockType:function(){return j.vC},FilterContext:function(){return k.fox},FilterDynamicComponent:function(){return k.VTd},FilterFormBlockProvider:function(){return b.WI},FilterLogicContext:function(){return k.XsZ},FilterParentCollectionFields:function(){return Y.d6},FixedBlock:function(){return k.AsW},FixedBlockDesignerItem:function(){return k.cLM},FixedBlockWrapper:function(){return k.m__},FlagContext:function(){return n.z_},FlagProvider:function(){return n.Cm},Form:function(){return k.l09},FormActiveFieldsProvider:function(){return b.T2},FormBlockContext:function(){return b.TC},FormBlockInitializer:function(){return pe.Jo},FormBlockProvider:function(){return b.$R},FormDialog:function(){return k.D_t},FormField:function(){return k.WiK},FormFieldContext:function(){return b.uW},FormFieldProvider:function(){return b.$1},FormItem:function(){return k.xJW},FormItemSchemaToolbar:function(){return pe.Oo},FormProvider:function(){return k.RVL},FormV2:function(){return k.Bc8},G2Plot:function(){return k.hG9},G2PlotInitializer:function(){return Y.oY},G2PlotRenderer:function(){return k.DCh},GeneralSchemaDesigner:function(){return ee.aN},GeneralSchemaItems:function(){return De.Mj},GlobalThemeProvider:function(){return P.YO},Grid:function(){return k.rjZ},GridCard:function(){return k.Cqo},GridRowContext:function(){return k.jg7},HTMLEncode:function(){return k.gsn},HeightMode:function(){return ee.j0},Icon:function(){return G.JO},IconPicker:function(){return k.$18},InitializerWithSwitch:function(){return Y.sp},Input:function(){return k.IIB},InputNumber:function(){return k.RnZ},InputReadPretty:function(){return k.mX2},InputRecordPicker:function(){return k.zDC},InternalAdminLayout:function(){return Z.Me},Json:function(){return k.Phs},List:function(){return k.aVo},LocalDataSource:function(){return d.nC},LocationSearchContext:function(){return m.xJ},Markdown:function(){return k.UGj},MarkdownReadPretty:function(){return k.yq5},MaybeCollectionProvider:function(){return b.bH},Menu:function(){return k.v2r},MenuConfigure:function(){return T.dr},NanoIDInput:function(){return k.HIW},NavigateIfNotSignIn:function(){return Te.vo},NocoBaseBuildInPlugin:function(){return K.q},OpenModeProvider:function(){return Oe.W},PMPlugin:function(){return q.Np},Page:function(){return k.T3C},PagePopups:function(){return k.d97},PageTabs:function(){return k.hGv},Pagination:function(){return k.tlE},ParentCollectionFields:function(){return Y.cd},Password:function(){return k.rop},Percent:function(){return k.gGi},PermissionContext:function(){return T.Bk},PermissionProvider:function(){return T.Wx},PinnedListPlugin:function(){return H.r1},PinnedPluginList:function(){return H.B$},PinnedPluginListContext:function(){return H.uv},PinnedPluginListProvider:function(){return H.tc},Plugin:function(){return m.Sy},PluginManager:function(){return q.Q$},PluginManagerLink:function(){return q.s0},PluginSettingsManager:function(){return m.nS},PopupContextProvider:function(){return ve.y},PopupSettingsProvider:function(){return k.DBW},PoweredBy:function(){return oe.C},Preview:function(){return k.MBS},QuickEdit:function(){return k.pGO},REGEX_OF_VARIABLE:function(){return Ae.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return Ae.Bj},Radio:function(){return k.Y8K},ReadPretty:function(){return k.iVT},ReadPrettyRecordPicker:function(){return k.ODP},RecordAssociationBlockInitializer:function(){return Y.$i},RecordAssociationDetailsBlockInitializer:function(){return Y.Mr},RecordAssociationFormBlockInitializer:function(){return Y.EK},RecordAssociationGridCardBlockInitializer:function(){return Y.zb},RecordAssociationListBlockInitializer:function(){return Y.Ok},RecordContext_deprecated:function(){return ne.rY},RecordFormBlockInitializer:function(){return pe.se},RecordIndexContext:function(){return ne.Pc},RecordIndexProvider:function(){return ne.li},RecordLink:function(){return b.hD},RecordPicker:function(){return k.lbb},RecordPickerContext:function(){return k.b7w},RecordPickerProvider:function(){return k.sUk},RecordProvider:function(){return ne.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return Y.CC},RecordSimpleProvider:function(){return ne.Qh},RefreshDataBlockRequest:function(){return k.x1j},RemoteDocumentTitlePlugin:function(){return R.uN},RemoteDocumentTitleProvider:function(){return R.yq},RemoteSchemaComponent:function(){return k.m1v},RemoteSchemaTemplateManagerPlugin:function(){return he.Wc},RemoteSchemaTemplateManagerProvider:function(){return he.Jv},RemoteSelect:function(){return k.glM},RemoveButton:function(){return k.xZD},RemoveConditionContext:function(){return k.IuH},RenderChildrenWithAssociationFilter:function(){return b.gY},RequestSettings:function(){return k.MkN},RerenderDataBlockProvider:function(){return d.sI},Resizable:function(){return xe.ez},RichText:function(){return k.Hof},RoleConfigure:function(){return T.XU},RoleResourceCollectionContext:function(){return T.O9},RoleTable:function(){return T.No},RolesResourcesActions:function(){return T.kF},RouteSchemaComponent:function(){return Z.GX},RouterContextCleaner:function(){return m.OW},RouterManager:function(){return m.k2},SNIPPET_PREFIX:function(){return m.MC},SanitizedCollectionProvider:function(){return d.Pd},SchemaComponent:function(){return k.n6},SchemaComponentContext:function(){return k.DDd},SchemaComponentOptions:function(){return k.G0E},SchemaComponentPlugin:function(){return k.a$w},SchemaComponentProvider:function(){return k.TzZ},SchemaInitializer:function(){return m.Ms},SchemaInitializerActionModal:function(){return m.HS},SchemaInitializerActionModalInternal:function(){return m.IQ},SchemaInitializerChild:function(){return m.yH},SchemaInitializerChildren:function(){return m.E0},SchemaInitializerContext:function(){return m.V4},SchemaInitializerDivider:function(){return m.qU},SchemaInitializerItem:function(){return m.lV},SchemaInitializerItemContext:function(){return m.Mm},SchemaInitializerItemGroup:function(){return m.iP},SchemaInitializerItemGroupInternal:function(){return m.IY},SchemaInitializerItemInternal:function(){return m.VG},SchemaInitializerItems:function(){return m.LU},SchemaInitializerManager:function(){return m.eN},SchemaInitializerMenu:function(){return m.tu},SchemaInitializerMenuProvider:function(){return m.kw},SchemaInitializerOpenModeSchemaItems:function(){return De.EU},SchemaInitializerPlugin:function(){return Y.dH},SchemaInitializerSelect:function(){return m.iW},SchemaInitializerSelectInternal:function(){return m.ud},SchemaInitializerSubMenu:function(){return m.eU},SchemaInitializerSubMenuInternal:function(){return m.xv},SchemaInitializerSwitch:function(){return m._n},SchemaInitializerSwitchInternal:function(){return m.wH},SchemaSettingItemContext:function(){return m.A4},SchemaSettingOpenModeSchemaItems:function(){return De.HA},SchemaSettings:function(){return m.F5},SchemaSettingsActionLinkItem:function(){return ae.s},SchemaSettingsActionModalItem:function(){return ee.Qh},SchemaSettingsBlockHeightItem:function(){return ee.qf},SchemaSettingsBlockTitleItem:function(){return ee._E},SchemaSettingsCascaderItem:function(){return ee.ns},SchemaSettingsChild:function(){return m.kY},SchemaSettingsChildren:function(){return m.dk},SchemaSettingsConnectDataBlocks:function(){return ee.FE},SchemaSettingsDataScope:function(){return ee.HF},SchemaSettingsDataTemplates:function(){return ee.ON},SchemaSettingsDateFormat:function(){return ee.yu},SchemaSettingsDefaultSortingRules:function(){return ee.y5},SchemaSettingsDefaultValue:function(){return ee.Nn},SchemaSettingsDivider:function(){return ee.Z5},SchemaSettingsDropdown:function(){return ee.cM},SchemaSettingsEnableChildCollections:function(){return ee.L3},SchemaSettingsFixed:function(){return xe.rI},SchemaSettingsFormItemTemplate:function(){return ee.vC},SchemaSettingsItem:function(){return ee.r2},SchemaSettingsItemGroup:function(){return ee.bw},SchemaSettingsLinkageRules:function(){return ee.lc},SchemaSettingsManager:function(){return m.XD},SchemaSettingsModalItem:function(){return ee.B0},SchemaSettingsNumberFormat:function(){return ee.wH},SchemaSettingsPlugin:function(){return ee.zM},SchemaSettingsPopupItem:function(){return ee.D3},SchemaSettingsProvider:function(){return ee.Rh},SchemaSettingsRemove:function(){return ee.qx},SchemaSettingsRenderEngine:function(){return ee.cK},SchemaSettingsSelectItem:function(){return ee.Qf},SchemaSettingsSortingRule:function(){return ee.wL},SchemaSettingsSubMenu:function(){return ee.m$},SchemaSettingsSwitchItem:function(){return ee.hj},SchemaSettingsTemplate:function(){return ee.Gk},SchemaSettingsWrapper:function(){return m.GC},SchemaTemplateManagerContext:function(){return he.Kb},SchemaTemplateManagerProvider:function(){return he.ns},SchemaToolbar:function(){return ee.Mf},SchemaToolbarContext:function(){return m.J1},SchemaToolbarProvider:function(){return m.V$},ScopeSelect:function(){return T.X$},SearchCollections:function(){return Y.zH},SecondConFirm:function(){return k.y00},Select:function(){return k.PhF},SelectActionInitializer:function(){return Y.w_},SelectWithTitle:function(){return v.T},SetDataLoadingMode:function(){return je.jI},SettingCenterPermissionProvider:function(){return T.P2},SettingCenterProvider:function(){return T.S3},SettingsCenterConfigure:function(){return T.H3},SettingsCenterContext:function(){return q.EV},SettingsCenterDropdown:function(){return q.zK},SettingsMenu:function(){return Te.Tx},ShowFormData:function(){return k.Cqv},SkipValidation:function(){return k.cof},Sortable:function(){return k.bts},SortableContext:function(){return k.Fop},SortableItem:function(){return k.TRI},SortableProvider:function(){return k.ORg},Space:function(){return k.TaI},StablePopover:function(){return k.qHe},StrategyActions:function(){return T.R6},SubmitActionInitializer:function(){return Y.ss},SystemSettingsContext:function(){return Fe.YO},SystemSettingsPane:function(){return Fe.a$},SystemSettingsPlugin:function(){return Fe.j8},SystemSettingsProvider:function(){return Fe.C6},Table:function(){return k.iA_},TableActionColumnInitializer:function(){return Y.VU},TableBlockContext:function(){return b.Hz},TableBlockDesigner:function(){return k.gvM},TableBlockInitializer:function(){return xe.kD},TableBlockProvider:function(){return b._0},TableColumnSchemaToolbar:function(){return xe.u6},TableField:function(){return k.SnY},TableFieldContext:function(){return b.Q6},TableFieldProvider:function(){return b.CB},TableFieldResource:function(){return b.Qy},TableSelectorContext:function(){return b.Yu},TableSelectorDesigner:function(){return k.ASv},TableSelectorInitializer:function(){return Se.S},TableSelectorParamsProvider:function(){return b.Vs},TableSelectorProvider:function(){return b.rL},TableV2:function(){return k.bwk},Tabs:function(){return k.mQc},TabsContextProvider:function(){return k.c__},Templates:function(){return k.QZ3},TestDesigner:function(){return k.L39},TimePicker:function(){return k.jII},TreeSelect:function(){return k.mPs},UnixTimestamp:function(){return k.tgM},Upload:function(){return k.gqx},Uploader:function(){return k.Qm7},Variable:function(){return k._wD},VariableInput:function(){return ee.qj},VariablePopupRecordProvider:function(){return ce.Rm},VariableScopeProvider:function(){return k.rjl},VariablesContext:function(){return Ae.cB},VariablesProvider:function(){return Ae.Uj},WithoutFormFieldResource:function(){return b.$Y},WithoutTableFieldResource:function(){return b.s},WorkflowConfig:function(){return k.Fjw},actionSettings:function(){return k.SLL},actionSettingsItems:function(){return k.sBv},allowAddNew:function(){return k.iTm},appendQueryStringToUrl:function(){return b.HQ},cache:function(){return C.cache},canMakeAssociationBlock:function(){return Y.Tc},compatOldTheme:function(){return P.kK},completeURL:function(){return b.jR},compose:function(){return m.qC},createCreateFormBlockUISchema:function(){return pe.lJ},createDesignable:function(){return k.Pls},createDetailsBlockSchema:function(){return Y.e6},createFormActionInitializers:function(){return pe.nr},createFormActionInitializers_deprecated:function(){return pe.$G},createFormBlockSchema:function(){return Y.NH},createFormBlockSettings:function(){return pe.K9},createModalSettingsItem:function(){return m.lo},createReadPrettyFormBlockSchema:function(){return Y.Uc},createRouterManager:function(){return m.w9},createSelectSchemaSettingsItem:function(){return m.NB},createStyles:function(){return be.k},createSwitchSettingsItem:function(){return m.HL},createTableBlockSchema:function(){return Y.BU},createTableBlockUISchema:function(){return xe.OO},createTextSettingsItem:function(){return m.yq},css:function(){return C.css},customFormItemInitializers:function(){return Y.Ic},customFormItemInitializers_deprecated:function(){return Y.Jn},cx:function(){return C.cx},defaultAppComponents:function(){return m.FH},defaultFieldNames:function(){return k.Oxq},defaultInputStyle:function(){return ee.ZL},defaultTheme:function(){return P.uH},editFormBlockSettings:function(){return pe.rB},fetchTemplateData:function(){return k.WLi},fieldComponentSettingsItem:function(){return d.K0},fieldSettingsFormItem:function(){return pe.dV},fillParentFields:function(){return b.Xe},filterFormItemSettings:function(){return k.$9M},findByUid:function(){return k.nCn},findFilterTargets:function(){return b.SK},findFormBlock:function(){return b.Fi},findKanbanFormItem:function(){return d.iv},findKeysByUid:function(){return k.iNG},findMenuItem:function(){return k.tD8},findParentFieldSchema:function(){return ee.PO},flush:function(){return C.flush},formActionInitializers:function(){return pe.vR},formDetailsSettings:function(){return k.pg9},formItemInitializers:function(){return pe.ex},formItemInitializers_deprecated:function(){return pe.eh},formItemSettings:function(){return k.Ofb},formSettings:function(){return k.ibf},formV1Settings:function(){return k.WyG},genStyleHook:function(){return k.l6$},getAssociationPath:function(){return b.dP},getCollectionTitle:function(){return se.A},getCurrentOptions:function(){return k.WGR},getDataSourceHeaders:function(){return d.GX},getDatePickerLabels:function(){return k.C$H},getFieldDefaultValue:function(){return ee.os},getFormValues:function(){return b.X7},getIdsWithChildren:function(){return b.Ns},getLabelFormatValue:function(){return k.cNQ},getLabelWithTooltip:function(){return ee.rB},getPageSchema:function(){return b.tj},getRegisteredStyles:function(){return C.getRegisteredStyles},getRenderContent:function(){return k.I9l},getShouldChange:function(){return ee.Vc},getStoredPopupContext:function(){return k.XQ2},getSupportFieldsByAssociation:function(){return j.x5},getSupportFieldsByForeignKey:function(){return j.zv},getURLSearchParams:function(){return ee.Uz},getURLSearchParamsChildren:function(){return ee.n9},getVariablesFromExpression:function(){return Ae.fN},gridRowColWrap:function(){return Y.BM},hasIcon:function(){return G.OL},hydrate:function(){return C.hydrate},i18n:function(){return N.a},icons:function(){return G.ci},injectGlobal:function(){return C.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return ee.TU},isAssocField:function(){return j.$f},isFileCollection:function(){return k.ZZb},isInFilterFormBlock:function(){return j.Op},isInitializersSame:function(){return m.h6},isPatternDisabled:function(){return ee.VZ},isSameCollection:function(){return j.yr},isShowFilePicker:function(){return k.elO},isSystemField:function(){return ee.Mq},isTabPage:function(){return k.CfU},isTitleField:function(){return d.Yj},isVariable:function(){return Ae.cG},itemsMerge:function(){return Y.Z_},keyframes:function(){return C.keyframes},locale:function(){return Q.Z},merge:function(){return C.merge},mergeFilter:function(){return j.EO},mockAPIClient:function(){return _e.G},navigateToTab:function(){return k.SJF},navigateWithinSelf:function(){return b.nl},normalizeContainer:function(){return m.pn},pageSettings:function(){return k._Ko},pageTabSettings:function(){return k.Mev},parseVariablesAndChangeParamsToQueryString:function(){return b._f},readPrettyFormSettings:function(){return k.i2K},recordBlockInitializers:function(){return Y.vV},recordBlockInitializers_deprecated:function(){return Y.Sq},recursiveParent:function(){return b.zA},reduceValueSize:function(){return b.ID},registerIcon:function(){return G.q5},registerIcons:function(){return G.fm},removeNullCondition:function(){return k.WmO},replaceVariableValue:function(){return b.UY},requestParentRecordData:function(){return d.H0},setDataLoadingModeSettingsItem:function(){return je.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return ee.rf},setTheDataScopeSchemaSettingsItem:function(){return ee.aP},sheet:function(){return C.sheet},splitWrapSchema:function(){return k.oBi},storePopupContext:function(){return k.hKP},subTableActionInitializers:function(){return Y.U2},subTableActionInitializers_deprecated:function(){return Y.o_},systemKeys:function(){return ee.ob},tabPaneInitializers:function(){return Y.$T},tabPaneInitializersForBulkEditFormBlock:function(){return Y.zg},tabPaneInitializersForRecordBlock:function(){return Y.d4},tabPaneInitializers_deprecated:function(){return Y.xc},tableActionColumnInitializers:function(){return xe.Rp},tableActionColumnInitializers_deprecated:function(){return xe.Xe},tableActionInitializers:function(){return xe.H1},tableActionInitializers_deprecated:function(){return xe.EG},tableBlockSettings:function(){return xe.Oe},tableColumnInitializers:function(){return xe.Ug},tableColumnInitializers_deprecated:function(){return xe.T$},tableColumnSettings:function(){return xe.FY},tableSelectorBlockSettings:function(){return Se.v},transformToFilter:function(){return j.jE},transformVariableValue:function(){return Ae.J8},tval:function(){return N.v},updateFilterTargets:function(){return b.iJ},updateFormActionInitializers:function(){return pe.SW},updateFormActionInitializers_deprecated:function(){return pe.Cw},useACLActionParamsContext:function(){return T.Hq},useACLContext:function(){return T.TR},useACLFieldWhitelist:function(){return T.Aj},useACLRoleContext:function(){return T.ov},useACLRolesCheck:function(){return T.xd},useAPIClient:function(){return x.LY},useAPITokenVariable:function(){return ee.IG},useActionAvailable:function(){return je.vn},useActionBarContext:function(){return k.DU1},useActionContext:function(){return k.XCj},useAdminSchemaUid:function(){return z.W},useApp:function(){return m.qD},useAppLangContext:function(){return U.GW},useAppSpin:function(){return m.rM},useAriaAttributeOfMenuItem:function(){return m.ne},useAssociatedFields:function(){return j.Fp},useAssociatedFormItemInitializerFields:function(){return Y.hg},useAssociatedTableColumnInitializerFields:function(){return Y.V0},useAssociationCreateActionProps:function(){return b.Yo},useAssociationFieldModeContext:function(){return k.Vpg},useAssociationFilterBlockProps:function(){return b._S},useAssociationFilterProps:function(){return b.rD},useAssociationName:function(){return d.Xo},useAssociationNames:function(){return b.P_},useAsyncData:function(){return S.w3},useAttach:function(){return k.lIL},useBackButton:function(){return k.KxP},useBaseVariable:function(){return ee.zI},useBlockAssociationContext:function(){return b.DD},useBlockContext:function(){return b.VG},useBlockHeight:function(){return k.hi9},useBlockHeightProps:function(){return b.gp},useBlockRequestContext:function(){return b.BU},useBlockResource:function(){return b.lT},useBlockTemplateContext:function(){return he.rE},useBuiltinVariables:function(){return Ae.L7},useBulkDestroyActionProps:function(){return b.ns},useCloseAction:function(){return k.p27},useCollectValuesToSubmit:function(){return b.hu},useCollection:function(){return d.Kx},useCollectionDataSourceItems:function(){return Y.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 ee.IO},useCollections:function(){return d.bX},useColumnSchema:function(){return k.z9d},useCompatOldVariables:function(){return ee.b1},useCompile:function(){return k.eJW},useComponent:function(){return k.Cor},useContextVariable:function(){return Ae.Ym},useCreateActionProps:function(){return b.cD},useCreateAssociationDetailsBlock:function(){return Y.Dc},useCreateAssociationDetailsWithoutPagination:function(){return Y.yZ},useCreateAssociationFormBlock:function(){return Y.Qr},useCreateAssociationGridCardBlock:function(){return Y.yG},useCreateAssociationListBlock:function(){return Y.R_},useCreateAssociationTableBlock:function(){return Y.Rm},useCreateEditFormBlock:function(){return pe.$R},useCreateFormBlock:function(){return pe.kQ},useCreateTableBlock:function(){return xe.Ez},useCurrentAppInfo:function(){return I._S},useCurrentDocumentTitle:function(){return R.AL},useCurrentRoleVariable:function(){return ee.KR},useCurrentRoles:function(){return Te.ih},useCurrentSchema:function(){return Y.pZ},useCurrentUserContext:function(){return Te.OP},useCurrentUserSettingsMenu:function(){return Te.t$},useCurrentUserVariable:function(){return ee.AO},useCustomizeBulkUpdateActionProps:function(){return b.UQ},useCustomizeRequestActionProps:function(){return b.xx},useCustomizeUpdateActionProps:function(){return b.X0},useDataBlock:function(){return d.eS},useDataBlockHeight:function(){return k.aZq},useDataBlockParentRecord:function(){return b.M_},useDataBlockProps:function(){return d.zh},useDataBlockRequest:function(){return d.hS},useDataBlockResource:function(){return d.wb},useDataLoadingMode:function(){return je.tU},useDataSource:function(){return d.wl},useDataSourceHeaders:function(){return d.on},useDataSourceKey:function(){return d.FC},useDataSourceManager:function(){return d.fp},useDataTemplates:function(){return ee.dD},useDatePickerContext:function(){return k.P1D},useDateVariable:function(){return ee.ds},useDatetimeVariable:function(){return ee.Ld},useDesignable:function(){return k.ngQ},useDesigner:function(){return k.ett},useDestroyActionProps:function(){return b.z2},useDetailPrintActionProps:function(){return b.wr},useDetailsBlockContext:function(){return b.nT},useDetailsBlockProps:function(){return b.BX},useDetailsDecoratorProps:function(){return je.dS},useDetailsPaginationProps:function(){return b.bF},useDetailsParentRecord:function(){return je.jM},useDetailsProps:function(){return je.os},useDetailsWithPaginationBlockParams:function(){return je.ln},useDetailsWithPaginationDecoratorProps:function(){return je.ec},useDetailsWithPaginationProps:function(){return je.tm},useDisassociateActionProps:function(){return b.ii},useDocumentTitle:function(){return R.jr},useDownloadLogs:function(){return k.ySm},useEnsureOperatorsValid:function(){return k.Zd$},useExtendCollections:function(){return d.P5},useFieldComponentName:function(){return v.W},useFieldComponentOptions:function(){return k.cLh},useFieldMode:function(){return k.baz},useFieldModeOptions:function(){return k.fde},useFieldNames:function(){return k.Xdt},useFieldProps:function(){return k.Cld},useFieldTitle:function(){return k.vH8},useFilterAPI:function(){return j.hi},useFilterActionProps:function(){return k.PLH},useFilterBlock:function(){return j.kO},useFilterBlockActionProps:function(){return b.Oy},useFilterByTk:function(){return b.C},useFilterFieldOptions:function(){return k.V8t},useFilterFieldProps:function(){return k.tMk},useFilterOptions:function(){return k.xQm},useFindComponent:function(){return k.sRe},useFixedBlock:function(){return k.frb},useFixedSchema:function(){return k.$N2},useFlag:function(){return n.P5},useFormActiveFields:function(){return b.zj},useFormBlockContext:function(){return b.bz},useFormBlockProps:function(){return b._$},useFormBlockType:function(){return b.th},useFormDataTemplates:function(){return k.U1u},useFormFieldContext:function(){return b.e$},useFormFieldProps:function(){return b.GK},useFormItemInitializerFields:function(){return Y.I_},useGetAriaLabelOfAction:function(){return k.HS$},useGetAriaLabelOfDesigner:function(){return ee.zf},useGetAriaLabelOfDrawer:function(){return k.vBu},useGetAriaLabelOfModal:function(){return k.QYZ},useGetAriaLabelOfPopover:function(){return k.t9d},useGetFilterFieldOptions:function(){return k.Kgy},useGetFilterOptions:function(){return k.aJ2},useGetSchemaInitializerMenuItems:function(){return m.bw},useGlobalTheme:function(){return P.mg},useGridContext:function(){return k.n14},useGridRowContext:function(){return k.DiB},useInheritsTableColumnInitializerFields:function(){return Y.yi},useIsAddNewForm:function(){return k.l1O},useIsAllowToSetDefaultValue:function(){return ee.SF},useIsAssociationField:function(){return k.w5o},useIsDetailBlock:function(){return b.WG},useIsFieldReadPretty:function(){return k.p3Q},useIsFileField:function(){return k.G5e},useIsFormReadPretty:function(){return k.xj2},useIsSelectFieldMode:function(){return k.rxY},useLabelUiSchema:function(){return k.Ils},useLinkActionProps:function(){return b.ee},useLinkageAction:function(){return k.zCB},useLocalVariables:function(){return Ae.Kp},useLocationNoUpdate:function(){return m.fj},useLocationSearch:function(){return m.HU},useMenuSearch:function(){return Y.jA},useNavigateNoUpdate:function(){return m.WO},useOpenModeContext:function(){return Oe.B},useOptionalFieldList:function(){return b.Lh},useParamsFromRecord:function(){return b.MM},useParentCollection:function(){return d.lb},useParentRecordCommon:function(){return Le._},useParseDataScopeFilter:function(){return ee._Y},useParseURLAndParams:function(){return b.VC},useParsedFilter:function(){return b.vs},usePickActionProps:function(){return b.St},usePlugin:function(){return m.j7},usePopupSettings:function(){return k.a4r},usePopupUtils:function(){return fe.E},useProps:function(){return k.wNf},useRecord:function(){return ne.a},useRecordCollectionDataSourceItems:function(){return Y.bQ},useRecordIndex:function(){return ne.pW},useRecordIsOwn:function(){return ne.Px},useRecordPkValue:function(){return T.Jn},useRefreshActionProps:function(){return b.Xk},useRemoveActionProps:function(){return b.PJ},useRemoveGridFormItem:function(){return Y.EY},useRequest:function(){return x.QT},useRerenderDataBlock:function(){return d.Rr},useResetBlockActionProps:function(){return b.NP},useResource:function(){return x.Wf},useRoleRecheck:function(){return T.fG},useRoleVariable:function(){return ee.bs},useRolesResourcesScopesSelectedRowKeys:function(){return T.cm},useRouter:function(){return m.tv},useRouterBasename:function(){return m.hZ},useSchemaComponentContext:function(){return k.Dmu},useSchemaInitializer:function(){return m.q_},useSchemaInitializerItem:function(){return m.UR},useSchemaInitializerMenuItems:function(){return m.hL},useSchemaInitializerRender:function(){return m.IU},useSchemaInitializerStyles:function(){return m._$},useSchemaInitializerSubMenuContext:function(){return m.vH},useSchemaOptionsContext:function(){return k.Bsl},useSchemaSettings:function(){return ee.DD},useSchemaSettingsItem:function(){return m.J$},useSchemaSettingsRender:function(){return m.mQ},useSchemaTemplate:function(){return he.zy},useSchemaTemplateManager:function(){return he.$t},useSchemaToolbar:function(){return m.Po},useSchemaToolbarRender:function(){return m.du},useSourceIdFromParentRecord:function(){return b.m},useSourceIdFromRecord:function(){return b.e0},useStyles:function(){return k.yKv},useSupportedBlocks:function(){return j.Um},useSyncFromForm:function(){return ee.F1},useSystemSettings:function(){return Fe.HX},useTableBlockContext:function(){return b.Si},useTableBlockDecoratorProps:function(){return xe.cL},useTableBlockParams:function(){return xe.lo},useTableBlockProps:function(){return xe.GK},useTableColumnInitializerFields:function(){return Y.bJ},useTableFieldContext:function(){return b.Wx},useTableFieldProps:function(){return b.oA},useTableSelectorContext:function(){return b.CL},useTableSelectorProps:function(){return b.RP},useTableSize:function(){return k.fMB},useTabsContext:function(){return k.gCg},useTitleFieldOptions:function(){return k.eT6},useToken:function(){return be.d},useUIConfigurationPermissions:function(){return T.mR},useURLAndHTMLSchema:function(){return ge.R},useURLSearchParamsCtx:function(){return ee.MD},useURLSearchParamsVariable:function(){return ee.F5},useUpdateActionProps:function(){return b.HD},useUserVariable:function(){return ee.KD},useValidateSchema:function(){return k.q4O},useVariableOptions:function(){return ee.Y5},useVariableScope:function(){return k.ymE},useVariables:function(){return Ae.OQ},useViewport:function(){return z.S},withDynamicSchemaProps:function(){return ue.t},withInitializer:function(){return m.W_}});var $=e(66607),l=e.n($),V=e(79212),c=e.n(V),D=e(37412),f=e.n(D),L=e(59542),r=e.n(L),W=e(96036),p=e.n(W),A=e(96671),h=e.n(A),M=e(70178),t=e.n(M),o=e(72540),u=e.n(o),B=e(79398),y=e(81556),C=e(97133),T=e(47646),U=e(75599),x=e(12174),I=e(80347),m=e(29939),S=e(26124),b=e(88756),i=e(84257),w=e(6145),E={};for(var g in w)["default","locale","withDynamicSchemaProps","SchemaSettingsActionLinkItem","useURLAndHTMLSchema","OpenModeProvider","useOpenModeContext","PopupContextProvider","usePopupUtils","VariablePopupRecordProvider","cache","css","cx","flush","getRegisteredStyles","hydrate","injectGlobal","keyframes","merge","sheet","ACLActionParamsContext","ACLActionProvider","ACLCollectionFieldProvider","ACLCollectionProvider","ACLContext","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","CustomRouterContextProvider","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","useGetSchemaInitializerMenuItems","useLocationNoUpdate","useLocationSearch","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","getAssociationPath","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","useDetailPrintActionProps","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","useTableFieldContext","useTableFieldProps","useTableSelectorContext","useTableSelectorProps","useUpdateActionProps","ChinaRegionProvider"].indexOf(g)<0&&(E[g]=function(X){return w[X]}.bind(0,g));e.d(te,E);var v=e(7737),a=e(20085),d=e(94804),R=e(69803),j=e(18386),n=e(53285),P=e(69962),z=e(29392),N=e(58384),G=e(82369),Q=e(35310),K=e(7825),H=e(52817),q=e(17627),oe=e(53181),ne=e(36586),Z=e(71461),k=e(40868),Y=e(63076),De=e(90810),ee=e(26386),he=e(15195),be=e(39863),Fe=e(15585),_e=e(16779),Te=e(99832),Ae=e(8281),ue=e(15503),ae=e(29245),ge=e(83954),se=e(16966),pe=e(67565),xe=e(77681),Se=e(75145),je=e(56995),Le=e(92700),Oe=e(39270),ve=e(74483),fe=e(23048),ce=e(73691)},35310:function(ze,te,e){"use strict";e.d(te,{y:function(){return $}});var $={"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"};te.Z={"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"}}},29245:function(ze,te,e){"use strict";e.d(te,{f:function(){return T},s:function(){return C}});var $=e(9783),l=e.n($),V=e(97857),c=e.n(V),D=e(57134),f=e(94350),L=e(96486),r=e.n(L),W=e(67294),p=e(26793),A=e(21143),h=e(29939),M=e(91410),t=e(6145),o=e(55642),u=e(26386),B=e(83954),y=e(85893),C=function(){var x=(0,f.useField)(),I=(0,f.useFieldSchema)(),m=(0,A.useDesignable)(),S=m.dn,b=(0,p.$)(),i=b.t,w=(0,B.R)(),E=w.urlSchema,g=w.paramsSchema,v=w.openInNewWindowSchema,a=I["x-component-props"]||{},d={url:a.url,params:a.params||[{}],openInNewWindow:a.openInNewWindow};return(0,y.jsx)(u.B0,{title:i("Edit link"),components:{ArrayItems:D.ArrayItems},schema:{type:"object",title:i("Edit link"),properties:{url:c()(c()({},E),{},{required:!0}),params:g,openInNewWindow:v}},onSubmit:function(j){var n,P=j.url,z=j.params,N=j.openInNewWindow;a.url=P,a.params=z,a.openInNewWindow=N,I["x-component-props"]=a,x.componentProps.url=P,x.componentProps.params=z,x.componentProps.openInNewWindow=N,S.emit("patch",{schema:(n={},l()(n,"x-uid",I["x-uid"]),l()(n,"x-component-props",a),n)}),S.refresh()},initialValues:d})},T=new M.F({name:"actionSettings:link",items:[{name:"editButton",Component:o.C1,useComponentProps:function(){var x=(0,h.Po)(),I=x.buttonEditorProps;return I}},{name:"editLink",Component:C},{name:"linkageRules",Component:u.lc,useVisible:function(){var x=(0,A.useCollectionRecord)();return!r().isEmpty(x==null?void 0:x.data)},useComponentProps:function(){var x=(0,t.useCollection_deprecated)(),I=x.name,m=(0,h.Po)(),S=m.linkageRulesProps;return c()(c()({},S),{},{collectionName:I})}},{name:"remove",sort:100,Component:o.xZ,useComponentProps:function(){var x=(0,h.Po)(),I=x.removeButtonProps;return I}}]})},83954:function(ze,te,e){"use strict";e.d(te,{R:function(){return u}});var $=e(68400),l=e.n($),V=e(97857),c=e.n(V),D=e(97133),f=e(94350),L=e(67294),r=e(26793),W=e(7340),p=e(36586),A=e(35115),h=e(54885),M=e(85893),t,o=function(y){return function(C){var T=(0,f.useFieldSchema)(),U=(0,W.bz)(),x=U.form,I=(0,p.a)(),m=(0,h.Y)({collectionField:{uiSchema:T},form:x,record:I,uiSchema:T,noDisabled:!0});return(0,M.jsx)(y,c()(c()({},C),{},{scope:m}))}},u=function(){var y=(0,r.$)(),C=y.t,T=(0,L.useMemo)(function(){return o(A._w.TextArea)},[]),U=(0,L.useMemo)(function(){return{title:C("URL"),type:"string","x-decorator":"FormItem","x-component":T,description:C("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[C,T]),x=(0,L.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:C("URL")},{value:"html",label:C("HTML")}]}},[C]),I=(0,L.useMemo)(function(){return{title:C("html"),type:"string","x-decorator":"FormItem","x-component":o(A._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[C]),m=(0,L.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,D.css)(t||(t=l()([`
122
+ `])))},"x-component":C,"x-component-props":{disabled:"{{ presetFieldsDisabled }}",presetFieldsDisabledIncludes:"{{presetFieldsDisabledIncludes}}"}}},x=function(){for(var m={},S=arguments.length,b=new Array(S),i=0;i<S;i++)b[i]=arguments[i];for(var w=0,E=b;w<E.length;w++){var g=E[w];U[g]&&(m[g]=U[g])}return m}},44605:function(){},53772:function(){},99899:function(ze,te,e){"use strict";e.d(te,{U:function(){return $},l:function(){return l}});function $(V){var c;if(!V)return[];var D=V.split(":"),f=D.pop(),L=(c=D[0])!==null&&c!==void 0?c:"main";return[L,f]}function l(V,c){return!V||V==="main"?c:"".concat(V,":").concat(c)}},5346:function(ze,te,e){"use strict";e.d(te,{T:function(){return f}});var $=e(5574),l=e.n($),V=e(34041),c=e(67294),D=e(85893);function f(L){var r=L.title,W=L.defaultValue,p=L.onChange,A=L.options,h=L.fieldNames,M=(0,c.useState)(!1),t=l()(M,2),o=t[0],u=t[1],B=(0,c.useRef)(null);return(0,D.jsxs)("div",{style:{alignItems:"center",display:"flex",justifyContent:"space-between"},onClick:function(C){C.stopPropagation(),u(function(T){return!T})},onMouseLeave:function(){B.current=setTimeout(function(){u(!1)},200)},children:[r,(0,D.jsx)(V.default,{open:o,"data-testid":"select-".concat(r),popupMatchSelectWidth:!1,bordered:!1,defaultValue:W,onChange:p,popupClassName:"select-popup-".concat(r.replaceAll(" ","-")),fieldNames:h,options:A,style:{textAlign:"right",minWidth:100},onMouseEnter:function(){clearTimeout(B.current)}})]})}},7737:function(ze,te,e){"use strict";e.d(te,{T:function(){return $.T},W:function(){return l.W}});var $=e(5346),l=e(56318)},56318:function(ze,te,e){"use strict";e.d(te,{W:function(){return D}});var $=e(94350),l=e(67668),V=e(38752),c=e(81230);function D(){var f,L,r,W,p=(0,c.z)(),A=p.fieldSchema,h=p.collectionField,M=(0,$.useField)(),t=(0,V.G5)(),o=(0,$.useFieldSchema)(),u=(0,l.Hy)(),B=A||o,y=h||u,C={AssociationField:"Select"},T=(B==null||(f=B["x-component-props"])===null||f===void 0?void 0:f.mode)||(M==null||(L=M.componentProps)===null||L===void 0?void 0:L.mode)||(t?"FileManager":"")||(B==null||(r=B["x-component-props"])===null||r===void 0?void 0:r.component)||(y==null||(W=y.uiSchema)===null||W===void 0?void 0:W["x-component"]);return C[T]||T}},52967:function(ze,te,e){"use strict";e.d(te,{e:function(){return l}});var $=e(67294),l=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=(0,$.useRef)(0);return(0,$.useEffect)(function(){var f=function(r){var W=r.clientY,p=Math.max(W,window.innerHeight-W);D.current=p};return window.addEventListener("mousemove",f),function(){window.removeEventListener("mousemove",f)}},[]),(0,$.useMemo)(function(){return D.current-40},c)}},20085:function(ze,te,e){"use strict";e.d(te,{O:function(){return f}});var $=e(10274),l=e(67294),V=e(69962),c=e(68230),D=function(r){var W=r.children,p=(0,c.d)(),A=p.token,h=A.colorFillTertiary,M=new $.C(A.colorFill).onBackground(A.colorFillSecondary).toHexShortString(),t=new $.C(A.colorFill).onBackground(A.colorFill).toHexShortString(),o=new $.C(A.colorFill).onBackground(A.colorFill).onBackground(A.colorFill).toHexShortString();return(0,l.useEffect)(function(){document.body.style.setProperty("--nb-spacing","".concat(A.marginLG,"px")),document.body.style.setProperty("--nb-designer-offset","".concat(A.marginXS,"px")),document.body.style.setProperty("--nb-header-height","".concat(A.sizeXXL-2,"px")),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--nb-box-bg",A.colorBgLayout),document.body.style.setProperty("--controlHeightLG","".concat(A.controlHeightLG,"px")),document.body.style.setProperty("--paddingContentVerticalSM","".concat(A.paddingContentVerticalSM,"px")),document.body.style.setProperty("--marginSM","".concat(A.marginSM,"px")),document.body.style.setProperty("--colorInfoBg",A.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",A.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",A.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",A.colorWarningBorder),document.body.style.setProperty("--colorText",A.colorText),document.body.style.setProperty("--colorPrimaryText",A.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",A.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",A.colorPrimaryTextHover),document.body.style.setProperty("--colorBgScrollTrack",h),document.body.style.setProperty("--colorBgScrollBar",M),document.body.style.setProperty("--colorBgScrollBarHover",t),document.body.style.setProperty("--colorBgScrollBarActive",o),document.body.style.setProperty("--colorSettings",A.colorSettings||V.uH.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",A.colorBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",A.colorBorderSettingsHover),document.body.style.setProperty("background-color",A.colorBgContainer)},[M,o,t,h,A.colorBgContainer,A.colorBgLayout,A.colorBgSettingsHover,A.colorBorderSettingsHover,A.colorInfoBg,A.colorInfoBorder,A.colorPrimaryText,A.colorPrimaryTextActive,A.colorPrimaryTextHover,A.colorSettings,A.colorText,A.colorWarningBg,A.colorWarningBorder,A.controlHeightLG,A.marginLG,A.marginSM,A.marginXS,A.paddingContentVerticalSM,A.sizeXXL]),W};D.displayName="CSSVariableProvider";var f=D},31959:function(ze,te,e){"use strict";e.d(te,{S:function(){return L}});var $=e(12444),l=e.n($),V=e(72004),c=e.n(V),D=e(9783),f=e.n(D),L=function(){function r(W){l()(this,r),f()(this,"name",void 0),f()(this,"group",void 0),f()(this,"title",void 0),f()(this,"description",void 0),f()(this,"order",void 0),f()(this,"default",void 0),f()(this,"sortable",void 0),f()(this,"availableTypes",void 0),f()(this,"supportDataSourceType",void 0),f()(this,"notSupportDataSourceType",void 0),f()(this,"hasDefaultValue",void 0),f()(this,"componentOptions",void 0),f()(this,"isAssociation",void 0),f()(this,"operators",void 0),f()(this,"filterable",void 0),f()(this,"titleUsable",void 0),f()(this,"hidden",void 0),this.collectionFieldInterfaceManager=W}return c()(r,[{key:"addComponentOption",value:function(p){if(!this.componentOptions){var A,h;this.componentOptions=[];var M=(A=this.default)===null||A===void 0||(A=A.uiSchema)===null||A===void 0?void 0:A["x-component"],t=(h=this.default)===null||h===void 0||(h=h.uiSchema)===null||h===void 0?void 0:h["x-component-props"];M&&(this.componentOptions=[{label:M.split(".").pop(),value:M,useProps:function(){return t||{}}}])}this.componentOptions.push(p)}}]),r}()},65050:function(ze,te,e){"use strict";e.d(te,{S:function(){return $.S},Z:function(){return r}});var $=e(31959),l=e(12444),V=e.n(l),c=e(72004),D=e.n(c),f=e(9783),L=e.n(f),r=function(){function W(p,A,h){V()(this,W),L()(this,"collectionFieldInterfaceInstances",{}),L()(this,"collectionFieldGroups",{}),L()(this,"actionList",{}),this.dataSourceManager=h,this.addFieldInterfaces(p),this.addFieldInterfaceGroups(A)}return D()(W,[{key:"addFieldInterfaces",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(t,o){var u=new o(A);return t[u.name]=u,Array.isArray(A.actionList[u.name])&&(A.actionList[u.name].forEach(function(B){u[B.type](B.data)}),A.actionList[u.name]=void 0),t},{});Object.assign(this.collectionFieldInterfaceInstances,M)}},{key:"addFieldInterfaceComponentOption",value:function(A,h){var M=this.getFieldInterface(A);if(!M){this.actionList[A]||(this.actionList[A]=[]),this.actionList[A].push({type:"addComponentOption",data:h});return}M.addComponentOption(h)}},{key:"getFieldInterface",value:function(A){return this.collectionFieldInterfaceInstances[A]}},{key:"getFieldInterfaces",value:function(A){return Object.values(this.collectionFieldInterfaceInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var t;return!((t=h.notSupportDataSourceType)!==null&&t!==void 0&&t.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]}}]),W}()},52020:function(ze,te,e){"use strict";e.d(te,{q:function(){return o},s:function(){return u}});var $=e(97857),l=e.n($),V=e(94350),c=e(73773),D=e(96486),f=e.n(D),L=e(67294),r=e(4511),W=e(7340),p=e(15503),A=e(40868),h=e(29124),M=e(67668),t=e(85893),o=function(y){var C,T=y.component,U=(0,A.eJW)(),x=(0,V.useField)(),I=(0,V.useFieldSchema)(),m=(0,M.Hy)(),S=m.uiSchema,b=m.defaultValue,i=(0,h.SF)(),w=i.isAllowToSetDefaultValue,E=(0,L.useMemo)(function(){return U(S)},[JSON.stringify(S)]),g=(0,A.Cor)(((C=I["x-component-props"])===null||C===void 0?void 0:C.component)||(E==null?void 0:E["x-component"])||"Input"),v=(0,L.useCallback)(function(j,n){x[j]=typeof x[j]=="undefined"?n:x[j]},[x]),a=(0,L.useCallback)(function(){typeof I.required=="undefined"&&(x.required=!!E.required)},[I,E]),d=(0,W.bz)(),R=(0,p.M)(E==null?void 0:E["x-use-component-props"],y);return(0,L.useEffect)(function(){d!=null&&d.field&&(d.field.added=d.field.added||new Set,d.field.added.add(I.name))}),(0,L.useEffect)(function(){if(E){if(v("content",E["x-content"]),v("title",E.title),v("description",E.description),d!=null&&d.form){var j=w()?I.default||b:void 0;j!=null&&v("initialValue",j)}if(!x.validator&&(E["x-validator"]||I["x-validator"])){var n=(0,D.concat)([],E["x-validator"]||[],I["x-validator"]||[]);x.validator=n}I["x-disabled"]===!0&&(x.disabled=!0),I["x-read-pretty"]===!0&&(x.readPretty=!0),a(),x.dataSource=E.enum;var P=U(E["x-component-props"])||{};x.componentProps=(0,c.merge)(P,x.componentProps||{},R||{})}},[E]),E?(0,t.jsx)(g,l()(l()({},y),R)):null},u=(0,V.connect)(function(B){var y=(0,V.useFieldSchema)();return(0,t.jsx)(r.SV,{FallbackComponent:A.Hj5.Modal,onError:function(T){return console.log(T)},children:(0,t.jsx)(M.YT,{name:y.name,children:(0,t.jsx)(o,l()({},B))})})});u.displayName="CollectionField"},67668:function(ze,te,e){"use strict";e.d(te,{Hy:function(){return W},YT:function(){return L},m9:function(){return r},v_:function(){return f}});var $=e(67294),l=e(94350),V=e(1836),c=e(36032),D=e(85893),f=(0,$.createContext)(null);f.displayName="CollectionFieldContext";var L=function(A){var h=A.name,M=A.children,t=A.allowNull,o=(0,l.useFieldSchema)(),u=(0,V.Kx)(),B=(0,V.d9)(),y=(0,$.useMemo)(function(){var C;if(!u)return null;var T=o==null||(C=o["x-component-props"])===null||C===void 0?void 0:C.field;return B.getCollectionField(o==null?void 0:o["x-collection-field"])||T||u.getField((T==null?void 0:T.name)||h)},[u,o,h,B]);return!y&&t?(0,D.jsx)(D.Fragment,{children:M}):y?(0,D.jsx)(f.Provider,{value:y,children:M}):(0,D.jsx)(c.z,{type:"Field",name:h})},r=function(A){return(0,D.jsx)(f.Provider,{value:null,children:A.children})},W=function(){var A=(0,$.useContext)(f);return A}},58530:function(ze,te,e){"use strict";e.d(te,{D:function(){return L}});var $=e(12444),l=e.n($),V=e(72004),c=e.n(V),D=e(9783),f=e.n(D),L=function(){function r(W){l()(this,r),f()(this,"data",void 0),f()(this,"parentRecord",void 0),f()(this,"isNew",void 0);var p=W.data,A=W.parentRecord,h=W.isNew;this.isNew=h,this.data=p,this.parentRecord=A}return c()(r,[{key:"setData",value:function(p){this.data=p}},{key:"setParentRecord",value:function(p){this.parentRecord=p}}]),r}()},49834:function(ze,te,e){"use strict";e.d(te,{E0:function(){return D},Kv:function(){return W},RA:function(){return r},nE:function(){return L},oV:function(){return f},vI:function(){return c}});var $=e(67294),l=e(58530),V=e(85893),c=(0,$.createContext)(null);c.displayName="CollectionRecordContext";var D=function(A){var h=A.isNew,M=A.record,t=A.parentRecord,o=A.children,u=(0,$.useMemo)(function(){if(t)return t instanceof l.D?t:new l.D({data:t});if(M instanceof l.D)return M.parentRecord},[t,M]),B=(0,$.useMemo)(function(){var y;return M?M instanceof l.D?(y=M,y.isNew=M.isNew||h):y=new l.D({data:M,isNew:h}):y=new l.D({isNew:h}),y.setParentRecord(u),y},[M,u,h]);return(0,V.jsx)(c.Provider,{value:B,children:o})};function f(){var p=(0,$.useContext)(c);return p}function L(){var p=f();return p==null?void 0:p.data}function r(){var p=f();return p==null?void 0:p.parentRecord}function W(){var p,A=f();return A==null||(p=A.parentRecord)===null||p===void 0?void 0:p.data}},88496:function(ze,te,e){"use strict";e.d(te,{DI:function(){return $.D},E0:function(){return l.E0},Kv:function(){return l.Kv},RA:function(){return l.RA},nE:function(){return l.nE},oV:function(){return l.oV},vI:function(){return l.vI}});var $=e(58530),l=e(49834)},373:function(ze,te,e){"use strict";e.d(te,{d:function(){return D},k:function(){return c}});var $=e(96486),l=e.n($),V=Symbol("isNewRecord"),c=function(L){return!!(L!=null&&L[V])},D=function(L){if(!(0,$.isObject)(L))throw new Error("markRecordAsNew: record must be an object");return L[V]=!0,L}},34096:function(ze,te,e){"use strict";e.d(te,{P:function(){return L}});var $=e(72004),l=e.n($),V=e(12444),c=e.n(V),D=e(9783),f=e.n(D),L=l()(function r(W){c()(this,r),f()(this,"name",void 0),f()(this,"Collection",void 0),f()(this,"title",void 0),f()(this,"color",void 0),f()(this,"order",void 0),f()(this,"default",void 0),f()(this,"events",void 0),f()(this,"configurableProperties",void 0),f()(this,"availableFieldInterfaces",void 0),f()(this,"divider",void 0),f()(this,"description",void 0),f()(this,"configureActions",void 0),f()(this,"forbidDeletion",void 0),f()(this,"supportDataSourceType",void 0),f()(this,"notSupportDataSourceType",void 0),this.collectionTemplateManager=W})},67836:function(ze,te,e){"use strict";e.d(te,{P:function(){return $.P},y:function(){return r}});var $=e(34096),l=e(12444),V=e.n(l),c=e(72004),D=e.n(c),f=e(9783),L=e.n(f),r=function(){function W(p,A){V()(this,W),L()(this,"collectionTemplateInstances",{}),this.dataSourceManager=A,this.addCollectionTemplates(p)}return D()(W,[{key:"addCollectionTemplates",value:function(){var A=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=h.reduce(function(t,o){var u=new o(A);return t[u.name]=u,t},{});return Object.assign(this.collectionTemplateInstances,M),this.dataSourceManager.getDataSources().forEach(function(t){var o=t.collectionManager.getCollections(function(u){return M[u.template]});t.collectionManager.reAddCollections(o)}),M}},{key:"getCollectionTemplate",value:function(A){return this.collectionTemplateInstances[A]}},{key:"getCollectionTemplates",value:function(A){return Object.values(this.collectionTemplateInstances).filter(function(h){if(!A||!h.supportDataSourceType&&!h.notSupportDataSourceType)return!0;if(h.supportDataSourceType){var M;return(M=h.supportDataSourceType)===null||M===void 0?void 0:M.includes(A)}if(h.notSupportDataSourceType){var t;return!((t=h.notSupportDataSourceType)!==null&&t!==void 0&&t.includes(A))}}).sort(function(h,M){return(h.order||0)-(M.order||0)})}}]),W}()},19271:function(ze,te,e){"use strict";e.d(te,{Xo:function(){return A},lb:function(){return W},ym:function(){return p}});var $=e(67294),l=e(67668),V=e(36032),c=e(35746),D=e(58837),f=e(85893),L=(0,$.createContext)(null);L.displayName="ParentCollectionContext";var r=function(M){var t=(0,D.Kx)();return(0,f.jsx)(L.Provider,{value:t,children:M.children})},W=function(){return(0,$.useContext)(L)},p=function(M){var t=M.name,o=M.children,u=(0,c.d9)(),B=u.getCollectionName(t);return B?(0,f.jsx)(D.YQ,{name:String(t).split(".")[0],children:(0,f.jsx)(r,{children:(0,f.jsx)(l.YT,{name:t,children:(0,f.jsx)(D.YQ,{name:B,children:o})})})}):(0,f.jsx)(V.z,{type:"Collection",name:t})},A=function(){var M=(0,l.Hy)();return M?"".concat(M.collectionName,".").concat(M.name):null}},5282:function(ze,te,e){"use strict";e.d(te,{F:function(){return A}});var $=e(61227),l=e.n($),V=e(12444),c=e.n(V),D=e(72004),f=e.n(D),L=e(9783),r=e.n(L),W=e(96486),p=e.n(W),A=function(){function h(M,t){c()(this,h),r()(this,"fieldsMap",void 0),r()(this,"primaryKey",void 0),this.options=M,this.collectionManager=t}return f()(h,[{key:"fields",get:function(){return this.options.fields||[]}},{key:"app",get:function(){return this.collectionManager.app}},{key:"dataSource",get:function(){return this.options.dataSource}},{key:"sourceKey",get:function(){return this.options.sourceKey}},{key:"name",get:function(){return this.options.name}},{key:"key",get:function(){return this.options.key}},{key:"title",get:function(){return this.options.title}},{key:"inherit",get:function(){return this.options.inherit}},{key:"hidden",get:function(){return this.options.hidden}},{key:"description",get:function(){return this.options.description}},{key:"duplicator",get:function(){return this.options.duplicator}},{key:"category",get:function(){return this.options.category}},{key:"targetKey",get:function(){return this.options.targetKey}},{key:"model",get:function(){return this.options.model}},{key:"createdBy",get:function(){return this.options.createdBy}},{key:"updatedBy",get:function(){return this.options.updatedBy}},{key:"logging",get:function(){return this.options.logging}},{key:"from",get:function(){return this.options.from}},{key:"rawTitle",get:function(){return this.options.rawTitle}},{key:"getPrimaryKey",value:function(){if(this.primaryKey)return this.primaryKey;if(this.options.targetKey)return this.options.targetKey;var t=this.getFields({primaryKey:!0})[0];return this.primaryKey=t==null?void 0:t.name,this.primaryKey}},{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(t,o){return this.options[t]=o,this}},{key:"getOptions",value:function(){return this.options}},{key:"getOption",value:function(t){return this.options[t]}},{key:"getFields",value:function(t){return t?(0,W.filter)(this.fields,t):this.fields}},{key:"getFieldsMap",value:function(){return this.fieldsMap||(this.fieldsMap=this.getFields().reduce(function(t,o){return t[o.name]=o,t},{})),this.fieldsMap}},{key:"getFieldByAssociationName",value:function(t){var o=this.getFieldsMap(),u=String(t).split("."),B=l()(u),y=B[0],C=B.slice(1),T=o[y];if(T){var U=T==null?void 0:T.target;if(U){var x=this.collectionManager.getCollection(U);if(x)return x.getField(C.join("."))}}}},{key:"getField",value:function(t){if(t){var o=this.getFieldsMap();if(String(t).split(".").length>1){var u=this.getFieldByAssociationName(t);return u||(typeof t=="string"&&t.startsWith("".concat(this.name,"."))?(t=t.replace("".concat(this.name,"."),""),this.getField(t)):void 0)}return o[t]}}},{key:"hasField",value:function(t){return!!this.getField(t)}},{key:"isTitleField",value:function(t){var o;return(o=this.app.dataSourceManager.collectionFieldInterfaceManager.getFieldInterface(t.interface))===null||o===void 0?void 0:o.titleUsable}},{key:"isInherited",value:function(){return this.inherits.length>0}}]),h}()},35746:function(ze,te,e){"use strict";e.d(te,{IX:function(){return L},bX:function(){return A},d9:function(){return p},xw:function(){return W}});var $=e(5574),l=e.n($),V=e(67294),c=e(44990),D=e(58861),f=e(85893),L=(0,V.createContext)(null);L.displayName="CollectionManagerContext";var r=function(M){var t=M.instance,o=M.children,u=(0,c.wl)(),B=(0,D.P5)(),y=(0,V.useMemo)(function(){return t||(u==null?void 0:u.collectionManager)},[t,u]),C=V.useState(Math.random()),T=l()(C,2),U=T[0],x=T[1];(0,V.useEffect)(function(){y.dataSource.addReloadCallback(function(){x(Math.random())})},[y]);var I=(0,V.useMemo)(function(){var m=y;return B!=null&&B.length?m.clone(B):m},[y,B,U]);return(0,f.jsx)(L.Provider,{value:I,children:o})},W=function(M){var t=M.instance,o=M.dataSource,u=M.children;return(0,f.jsx)(c.LX,{dataSource:o,children:(0,f.jsx)(r,{instance:t,children:u})})};function p(){var h=(0,V.useContext)(L);return h}var A=function(M){var t=p(),o=(0,V.useMemo)(function(){return t.getCollections(M)},[t,M]);return o}},58837:function(ze,te,e){"use strict";e.d(te,{Kx:function(){return A},Pd:function(){return p},WH:function(){return r},YQ:function(){return W},ge:function(){return h}});var $=e(97857),l=e.n($),V=e(67294),c=e(67668),D=e(36032),f=e(35746),L=e(85893),r=(0,V.createContext)(null);r.displayName="CollectionContext";var W=function(t){var o=t.name,u=t.children,B=t.allowNull,y=(0,f.d9)(),C=(0,V.useMemo)(function(){return y==null?void 0:y.getCollection(o)},[y,o]);return!C&&B?(0,L.jsx)(L.Fragment,{children:t.children}):!C&&!B?(0,L.jsx)(D.z,{type:"Collection",name:o}):(0,L.jsx)(r.Provider,{value:C,children:u})},p=function(t){return(0,L.jsx)(c.v_.Provider,{value:null,children:(0,L.jsx)(W,l()({},t))})};function A(){var M=(0,V.useContext)(r);return M}var h=function(t){var o=A(),u=(0,V.useMemo)(function(){return o.getFields(t)},[o,t]);return u}},58861:function(ze,te,e){"use strict";e.d(te,{P5:function(){return W},Xc:function(){return L},j5:function(){return r}});var $=e(19632),l=e.n($),V=e(67294),c=e(44990),D=e(35746),f=e(85893),L=(0,V.createContext)(null);L.displayName="ExtendCollectionsContext";var r=function(A){var h=A.children,M=A.collections,t=W(),o=(0,V.useMemo)(function(){return t?[].concat(l()(t),l()(M)):M},[t,M]),u=(0,c.FC)();return(0,f.jsx)(L.Provider,{value:o,children:(0,f.jsx)(D.xw,{dataSource:u,children:h})})};function W(){var p=(0,V.useContext)(L);return p}},1836:function(ze,te,e){"use strict";e.d(te,{ym:function(){return V.ym},FE:function(){return $.F},WH:function(){return l.WH},w4:function(){return x},IX:function(){return I.IX},xw:function(){return I.xw},YQ:function(){return l.YQ},Xc:function(){return m.Xc},j5:function(){return m.j5},Pd:function(){return l.Pd},Xo:function(){return V.Xo},Kx:function(){return l.Kx},ge:function(){return l.ge},d9:function(){return I.d9},bX:function(){return I.bX},P5:function(){return m.P5},lb:function(){return V.lb}});var $=e(5282),l=e(58837),V=e(19271),c=e(61227),D=e.n(c),f=e(52677),L=e.n(f),r=e(97857),W=e.n(r),p=e(12444),A=e.n(p),h=e(72004),M=e.n(h),t=e(9783),o=e.n(t),u=e(13769),B=e.n(u),y=["rawTitle","title","fields"],C=["uiSchema"],T=function(b,i){var w=b.rawTitle,E=b.title,g=b.fields,v=g===void 0?[]:g,a=B()(b,y);return W()(W()({},a),{},{title:w?E:i.i18n.t(E,{ns:"lm-collections"}),rawTitle:w||E,fields:v==null?void 0:v.map(function(d){var R=d.uiSchema,j=B()(d,C);if(R!=null&&R.title){var n=R.title;R.title=R.rawTitle?n:i.i18n.t(n,{ns:"lm-collections"}),R.rawTitle=R.rawTitle||n}return Array.isArray(R==null?void 0:R.enum)&&(R.enum=R.enum.map(function(P){return W()(W()({},P),{},{value:(P==null?void 0:P.value)===void 0?P:P.value,label:P.rawLabel?P.label:i.i18n.t(P.label,{ns:"lm-collections"}),rawLabel:P.rawLabel||P.label})})),W()({uiSchema:R},j)})})};function U(S,b,i,w){var E=new S(i,w);return b.forEach(function(g){var v=new g(i,w);Object.getOwnPropertyNames(v).forEach(function(a){var d=Object.getOwnPropertyDescriptor(v,a);d?Object.defineProperty(E,a,d):E[a]=v[a]}),Object.getOwnPropertyNames(g.prototype).forEach(function(a){a!=="constructor"&&(E.__proto__[a]=g.prototype[a])})}),E}var x=function(){function S(b,i){A()(this,S),o()(this,"collectionInstancesMap",{}),o()(this,"collectionInstancesArr",[]),this.dataSource=i,this.addCollections(b)}return M()(S,[{key:"dataSourceManager",get:function(){return this.dataSource.dataSourceManager}},{key:"app",get:function(){return this.dataSourceManager.app}},{key:"getCollectionInstance",value:function(i){var w=this.dataSource.dataSourceManager.collectionTemplateManager.getCollectionTemplate(i.template),E=(w==null?void 0:w.Collection)||$.F,g=w==null?void 0:w.transform,v=g?g(T(i,this.app),this.app):T(i,this.dataSource.dataSourceManager.app),a=W()(W()({},v),{},{dataSource:this.dataSource.key}),d=U(E,this.dataSourceManager.collectionMixins,a,this);return d}},{key:"getInstancesMap",value:function(){var i=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=w.map(function(g){return i.getCollectionInstance(g)});return E.reduce(function(g,v){return g[v.name]=v,g},{})}},{key:"addCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=this.getInstancesMap(i);this.collectionInstancesMap=W()(W()({},this.collectionInstancesMap),w),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"setCollections",value:function(i){this.collectionInstancesMap=this.getInstancesMap(i),this.collectionInstancesArr=Object.values(this.collectionInstancesMap)}},{key:"reAddCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.collectionInstancesArr,w=i.map(function(E){return E.getOptions()});this.addCollections(w)}},{key:"getCollection",value:function(i){if(i){if(L()(i)==="object")return this.getCollectionInstance(i);if(String(i).split(".").length>1){var w=this.getCollectionField(i);return w?this.getCollection(w.target):void 0}return this.collectionInstancesMap[i]}}},{key:"getCollections",value:function(i){return i?this.collectionInstancesArr.filter(i):this.collectionInstancesArr}},{key:"getCollectionName",value:function(i){var w=this.getCollection(i);return w==null?void 0:w.name}},{key:"getCollectionField",value:function(i){if(i){if(L()(i)==="object")return i;if(String(i).split(".").length<2){console.error('[@nocobase/client]: CollectionManager.getField() path "'.concat(i,'" is invalid'));return}var w=String(i).split("."),E=D()(w),g=E[0],v=E.slice(1),a=this.getCollection(g);if(a)return a.getField(v.join("."))}}},{key:"getCollectionFields",value:function(i,w){var E;return((E=this.getCollection(i))===null||E===void 0?void 0:E.getFields(w))||[]}},{key:"getFilterByTK",value:function(i,w){if(!i||!w){console.error("@nocobase/client]: CollectionManager.getFilterByTK() collectionOrAssociation or collectionRecordOrAssociationRecord is invalid");return}if(i instanceof $.F){var E=i.filterTargetKey||i.getPrimaryKey()||"id";return w[E]}if(i.includes(".")){var g=this.getCollectionField(i);if(!g){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() field "'.concat(i,'" is invalid'));return}if(g.targetKey)return w[g.targetKey]}var v=this.getCollection(i);if(!v){console.error('[@nocobase/client]: CollectionManager.getFilterByTK() collection "'.concat(i,'" is invalid'));return}var a=(v==null?void 0:v.filterTargetKey)||(v==null?void 0:v.getPrimaryKey())||"id";return w[a]}},{key:"getSourceKeyByAssociation",value:function(i){if(i){var w=this.getCollectionField(i);if(w){if(w.sourceKey)return w.sourceKey;var E=this.getCollection(i.split(".")[0]);if(E)return E.filterTargetKey||E.getPrimaryKey()||"id"}}}},{key:"clone",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new S([],this.dataSource);return w.collectionInstancesArr=this.collectionInstancesArr,w.collectionInstancesMap=this.collectionInstancesMap,w.addCollections(i),w}}]),S}(),I=e(35746),m=e(58861)},22558:function(ze,te,e){"use strict";e.d(te,{K:function(){return h}});var $=e(9783),l=e.n($),V=e(97857),c=e.n(V),D=e(94350),f=e(96486),L=e.n(f),r=e(26793),W=e(13511),p=e(67668),A=e(40868),h={name:"fieldComponent",type:"select",useVisible:function(){var t=(0,p.Hy)(),o=(0,W.fp)();if(!t)return!1;var u=o.collectionFieldInterfaceManager.getFieldInterface(t==null?void 0:t.interface);return Array.isArray(u==null?void 0:u.componentOptions)&&u.componentOptions.length>1&&u.componentOptions.filter(function(B){return!B.useVisible||B.useVisible()}).length>1},useComponentProps:function(){var t,o,u,B=(0,r.$)(),y=B.t,C=(0,D.useField)(),T=(0,D.useFieldSchema)(),U=(0,p.Hy)(),x=(0,W.fp)(),I=x.collectionFieldInterfaceManager.getFieldInterface(U==null?void 0:U.interface),m=(0,A.z9d)(),S=m.fieldSchema,b=S||T,i=(0,A.ngQ)(),w=i.dn,E=(0,A.eJW)(),g=(I==null||(t=I.componentOptions)===null||t===void 0||(t=t.filter(function(v){return!v.useVisible||v.useVisible()}))===null||t===void 0?void 0:t.map(function(v){return{label:E(v.label),value:v.value,useProps:v.useProps}}))||[];return{title:y("Field component"),options:g,value:((o=b["x-component-props"])===null||o===void 0?void 0:o.component)||((u=g[0])===null||u===void 0?void 0:u.value),onChange:function(a){var d,R,j=g.find(function(P){return P.value===a}),n=c()({component:a},(j==null||(d=j.useProps)===null||d===void 0?void 0:d.call(j))||{});L().set(b,"x-component-props",n),C.componentProps=n,w.emit("patch",{schema:(R={},l()(R,"x-uid",b["x-uid"]),l()(R,"x-component-props",n),R)})}}}}},36032:function(ze,te,e){"use strict";e.d(te,{p:function(){return C},z:function(){return B}});var $=e(97857),l=e.n($),V=e(48997),c=e(3321),D=e(59720),f=e(15867),L=e(67294),r=e(26793),W=e(40868),p=e(44990),A=e(49453),h=e(57638),M=e(1836),t=e(18243),o=e(85893),u=V.Z.Text,B=function(U){var x=U.type,I=U.name,m=U.message,S=(0,W.ngQ)(),b=S.designable,i=S.dn,w=c.Z.useApp(),E=w.modal,g=(0,r.$)(),v=g.t,a=(0,p.wl)(),d=(0,W.eJW)(),R=(0,M.Kx)(),j=(0,A.fp)(),n=(0,L.useMemo)(function(){if(x==="Data Source")return I;var N=(j==null?void 0:j.getDataSources().length)>=1&&a&&a.key!==h.ym?"".concat(d(a.displayName||a.key)," > "):"";if(x==="Collection")return"".concat(N).concat(I);var G=R?"".concat(d(R.title)||R.name||R.tableName," > "):"";return"".concat(N).concat(G).concat(I)},[]),P=(0,L.useMemo)(function(){return x==="Field"?"Field":"Block"},[x]),z=(0,L.useMemo)(function(){return I?m?"".concat(v(x),' "').concat(n,'" ').concat(m):v('The {{type}} "{{name}}" may have been deleted. Please remove this {{blockType}}.',{type:v(x).toLocaleLowerCase(),name:n,blockType:v(P).toLocaleLowerCase()}).replaceAll("&gt;",">"):"".concat(v(x)," ","name is required")},[m,n,x,v,P]);return b?x==="Field"?(0,o.jsx)(W.BQs,{ellipsis:!0,children:(0,o.jsx)(u,{type:"secondary",children:z})}):(0,o.jsx)(t.P,{children:(0,o.jsx)(D.ZP,{status:"404",subTitle:z,extra:(0,o.jsx)(f.ZP,{onClick:function(){return E.confirm(l()(l()({title:v("Delete block"),content:v("Are you sure you want to delete it?")},confirm),{},{onOk:function(){i.remove(null,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})}}))},children:v("Delete")},"Delete")})}):null},y=function(){var U=(0,r.$)(),x=U.t,I=(0,p.wl)(),m=(0,W.eJW)(),S=(0,M.Kx)(),b=(0,A.fp)(),i=(0,L.useMemo)(function(){var E=(b==null?void 0:b.getDataSources().length)>=1&&I&&I.key!==h.ym?"".concat(m(I.displayName||I.key)," > "):"";if(S)return"".concat(E).concat(S.name);var g=S?"".concat(m(S.title)||S.name||S.tableName," > "):"";return"".concat(E).concat(g).concat(S.name)},[]),w=(0,L.useMemo)(function(){return x(`The current user only has the UI configuration permission, but don't have view permission for collection "{{name}}"`,{name:i}).replaceAll("&gt;",">")},[i,x]);return(0,o.jsx)(t.P,{children:(0,o.jsx)(D.ZP,{status:"404",subTitle:w})})},C=function(){var U=(0,W.ngQ)(),x=U.designable;return x?(0,o.jsx)(y,{}):null}},88996:function(ze,te,e){"use strict";e.d(te,{i:function(){return p}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(67294),f=e(13511),L=e(35746),r=e(85893),W=["children","dataSourceManager"],p=function(h){var M=h.children,t=h.dataSourceManager,o=c()(h,W);return(0,r.jsx)(f.kv,{dataSourceManager:t,children:(0,r.jsx)(L.xw,l()(l()({},o),{},{children:M}))})}},87180:function(ze,te,e){"use strict";e.d(te,{KY:function(){return U},Rr:function(){return m},dq:function(){return T},eS:function(){return x},hZ:function(){return B},sI:function(){return C},zh:function(){return I}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(5574),f=e.n(D),L=e(67294),r=e(75667),W=e(67205),p=e(15503),A=e(40868),h=e(1836),M=e(39742),t=e(14310),o=e(85893),u=["collection","association","dataSource","children","hidden"],B=(0,L.createContext)({});B.displayName="DataBlockContext";var y=(0,L.createContext)(null),C=function(b){var i=b.children,w=L.useState(!1),E=f()(w,2),g=E[0],v=E[1],a=(0,L.useMemo)(function(){return{rerenderDataBlock:function(){v(!0),setTimeout(function(){v(!1)})}}},[]);return g?null:(0,o.jsx)(y.Provider,{value:a,children:i})},T=function(b){var i=b.collection,w=b.association,E=b.allowNull,g=E===void 0?!1:E,v=(0,L.useMemo)(function(){return w?{Component:h.ym,name:w}:{Component:h.Pd,name:i}},[i,w]);return(0,o.jsx)(v.Component,{name:v.name,allowNull:g,children:b.children})},U=(0,p.t)(function(S){var b=S,i=b.collection,w=b.association,E=b.dataSource,g=b.children,v=b.hidden,a=c()(b,u),d=(0,A.ngQ)(),R=d.dn;return v?null:(0,o.jsx)(B.Provider,{value:{dn:R,props:l()(l()({},a),{},{collection:i,association:w,dataSource:E})},children:(0,o.jsx)(h.xw,{dataSource:E,children:(0,o.jsx)(T,{collection:i,association:w,children:(0,o.jsx)(r.Hh,{children:(0,o.jsx)(t.eh,{children:(0,o.jsx)(M.N4,{children:(0,o.jsx)(W.vY,{params:S.params,children:(0,o.jsx)(C,{children:g})})})})})})})})},{displayName:"DataBlockProvider"}),x=function(){var b=(0,L.useContext)(B);if(!b)throw new Error("useDataBlock() must be used within a DataBlockProvider");return b},I=function(){var b=x();return b.props},m=function(){var b=(0,L.useContext)(y);if(!b)throw new Error("useRerenderDataBlock() must be used within a DataBlockProvider");return b}},39742:function(ze,te,e){"use strict";e.d(te,{H0:function(){return T},N4:function(){return I},do:function(){return y},hS:function(){return m}});var $=e(15009),l=e.n($),V=e(99289),c=e.n(V),D=e(97857),f=e.n(D),L=e(67294),r=e(96486),W=e.n(r),p=e(12174),A=e(4277),h=e(19530),M=e(88496),t=e(8341),o=e(87180),u=e(14310),B=e(85893),y=(0,L.createContext)(null);y.displayName="BlockRequestContext";function C(S){var b=(0,A.tU)(),i=(0,u.wb)(),w=S.action,E=S.params,g=E===void 0?{}:E,v=S.record,a=S.requestService,d=S.requestOptions,R=(0,L.useMemo)(function(){return a||function(n){var P;if(v)return Promise.resolve({data:v});if(!w)throw new Error("[nocobase]: The 'action' parameter is missing in the 'DataBlockRequestProvider' component");if(w==="get"&&W().isNil(g.filterByTk))return console.warn('[nocobase]: The "filterByTk" parameter is missing in the "DataBlockRequestProvider" component');var z=g.filterByTk===void 0?W().omit(g,"filterByTk"):g;return(P=i[w])===null||P===void 0?void 0:P.call(i,f()(f()({},z),n)).then(function(N){return N.data})}},[i,w,JSON.stringify(g),JSON.stringify(v),a]),j=(0,p.QT)(R,f()(f()({},d),{},{manual:b==="manual",ready:!!w,refreshDeps:[w,JSON.stringify(g),JSON.stringify(v),i]}));return j}function T(S){return U.apply(this,arguments)}function U(){return U=c()(l()().mark(function S(b){var i,w,E,g,v,a,d,R,j;return l()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(i=b.sourceId,w=b.association,E=b.parentRecord,g=b.api,v=b.headers,a=b.sourceKey,!E){P.next=3;break}return P.abrupt("return",Promise.resolve({data:E}));case 3:if(!(!w||!a||!i)){P.next=5;break}return P.abrupt("return",Promise.resolve({data:void 0}));case 5:return d=w.split("."),R="".concat(d[0],":get?filter[").concat(a,"]=").concat(i),P.next=9,g.request({url:R,headers:v});case 9:return j=P.sent,P.abrupt("return",j.data);case 11:case"end":return P.stop()}},S)})),U.apply(this,arguments)}function x(S){var b=S.sourceId,i=S.association,w=S.parentRecord,E=(0,p.LY)(),g=(0,o.zh)(),v=(0,t.FE)(g.dataSource),a=(0,h.U)(i);return(0,p.QT)(function(){return T({sourceId:b,association:i,parentRecord:w,api:E,headers:v,sourceKey:a})},{refreshDeps:[i,w,b]})}var I=function(b){var i,w,E=b.children,g=(0,o.zh)(),v=g.action,a=g.filterByTk,d=g.sourceId,R=g.params,j=R===void 0?{}:R,n=g.association,P=g.collection,z=g.record,N=g.parentRecord,G=g.requestOptions,Q=g.requestService,K=C({action:v,sourceId:d,record:z,association:n,collection:P,requestOptions:G,requestService:Q,params:f()(f()({},j),{},{filterByTk:a||j.filterByTk})}),H=x({sourceId:d,association:n,parentRecord:N}),q=(0,L.useMemo)(function(){var oe,ne,Z,k;return((oe=H.data)===null||oe===void 0?void 0:oe.data)&&new M.DI({isNew:!1,data:((ne=H.data)===null||ne===void 0?void 0:ne.data)instanceof M.DI?(Z=H.data)===null||Z===void 0?void 0:Z.data.data:(k=H.data)===null||k===void 0?void 0:k.data})},[(i=H.data)===null||i===void 0?void 0:i.data]);return(0,B.jsx)(y.Provider,{value:K,children:v!=="list"?(0,B.jsx)(M.E0,{isNew:v==null,record:((w=K.data)===null||w===void 0?void 0:w.data)||z,parentRecord:q||N,children:E}):(0,B.jsx)(M.E0,{isNew:!1,record:null,parentRecord:q||N,children:E})})},m=function(){var b=(0,L.useContext)(y);return b}},14310:function(ze,te,e){"use strict";e.d(te,{T1:function(){return r},eh:function(){return W},wb:function(){return p}});var $=e(67294),l=e(12174),V=e(1836),c=e(88496),D=e(8341),f=e(87180),L=e(85893),r=(0,$.createContext)(null);r.displayName="DataBlockResourceContext";var W=function(h){var M=h.children,t=(0,f.zh)(),o=(0,V.d9)(),u=t.association,B=t.collection,y=t.dataSource,C=t.sourceId,T=t.parentRecord,U=(0,l.LY)(),x=(0,D.FE)(y),I=(0,$.useMemo)(function(){return typeof B=="string"?B:B==null?void 0:B.name},[B]),m=(0,$.useMemo)(function(){if(C)return C;if(u&&T){var b=o.getSourceKeyByAssociation(u),i=T instanceof c.DI?T.data:T;return i[b]}},[u,C,T]),S=(0,$.useMemo)(function(){return u?U.resource(u,m,x,!m):U.resource(I,void 0,x)},[U,u,B,m,x]);return(0,L.jsx)(r.Provider,{value:S,children:M})};function p(){var A=(0,$.useContext)(r);if(!A)throw new Error("useDataBlockResource() must be used within a DataBlockResourceProvider");return A}},35519:function(ze,te,e){"use strict";e.d(te,{n:function(){return B},o:function(){return u}});var $=e(31996),l=e.n($),V=e(26037),c=e.n(V),D=e(15009),f=e.n(D),L=e(99289),r=e.n(L),W=e(12444),p=e.n(W),A=e(72004),h=e.n(A),M=e(9783),t=e.n(M),o=e(1836),u=function(){function y(C,T){p()(this,y),t()(this,"collectionManager",void 0),t()(this,"reloadCallbacks",[]),this.options=C,this.dataSourceManager=T,this.collectionManager=new o.w4(C.collections,this)}return h()(y,[{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(T){Object.assign(this.options,T)}},{key:"getOption",value:function(T){return this.options[T]}},{key:"addReloadCallback",value:function(T){this.reloadCallbacks.includes(T)||this.reloadCallbacks.push(T)}},{key:"removeReloadCallback",value:function(T){this.reloadCallbacks=this.reloadCallbacks.filter(function(U){return U!==T})}},{key:"reload",value:function(){var C=r()(f()().mark(function U(){var x;return f()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.getDataSource();case 2:return x=m.sent,this.setOptions(x),this.collectionManager.setCollections(x.collections||[]),this.reloadCallbacks.forEach(function(S){return S(x.collections)}),m.abrupt("return",this.options);case 7:case"end":return m.stop()}},U,this)}));function T(){return C.apply(this,arguments)}return T}()}]),y}(),B=function(y){l()(T,y);var C=c()(T);function T(){return p()(this,T),C.apply(this,arguments)}return h()(T,[{key:"getDataSource",value:function(){return{collections:this.collections}}}]),T}(u)},57638:function(ze,te,e){"use strict";e.d(te,{AK:function(){return m},UC:function(){return I},ym:function(){return x}});var $=e(97857),l=e.n($),V=e(15009),c=e.n(V),D=e(5574),f=e.n(D),L=e(99289),r=e.n(L),W=e(19632),p=e.n(W),A=e(12444),h=e.n(A),M=e(72004),t=e.n(M),o=e(9783),u=e.n(o),B=e(35519),y=e(67836),C=e(65050),T=e(96486),U=e.n(T),x="main",I='{{t("Main")}}',m=function(){function S(){var b,i=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;h()(this,S),u()(this,"dataSourceInstancesMap",{}),u()(this,"multiDataSources",[]),u()(this,"collectionMixins",[]),u()(this,"collectionTemplateManager",void 0),u()(this,"collectionFieldInterfaceManager",void 0),this.options=w,this.app=E,this.collectionTemplateManager=new y.y(w.collectionTemplates,this),this.collectionFieldInterfaceManager=new C.Z(w.fieldInterfaces,w.fieldInterfaceGroups,this),(b=this.collectionMixins).push.apply(b,p()(w.collectionMixins||[])),this.addDataSource(B.n,{key:x,displayName:I,collections:w.collections||[]}),(w.dataSources||[]).forEach(function(g){i.addDataSource(B.n,g)})}return t()(S,[{key:"addCollectionMixins",value:function(){var i=this,w,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=E.filter(function(v){return!i.collectionMixins.includes(v)});g.length&&((w=this.collectionMixins).push.apply(w,p()(g)),this.getDataSources().forEach(function(v){return v.collectionManager.reAddCollections()}))}},{key:"getDataSources",value:function(i){var w=Object.values(this.dataSourceInstancesMap);return i?U().filter(w,i):w}},{key:"getDataSource",value:function(i){return i?this.dataSourceInstancesMap[i]:this.dataSourceInstancesMap[x]}},{key:"removeDataSources",value:function(i){var w=this;i.forEach(function(E){delete w.dataSourceInstancesMap[E]})}},{key:"addDataSource",value:function(i,w){var E=new i(w,this);return this.dataSourceInstancesMap[E.key]=E,E}},{key:"addDataSources",value:function(){var b=r()(c()().mark(function w(E,g){return c()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!this.multiDataSources.some(function(d){var R=f()(d,2),j=R[0],n=R[1];return j===E&&n===g})){a.next=2;break}return a.abrupt("return");case 2:this.multiDataSources.push([E,g]);case 3:case"end":return a.stop()}},w,this)}));function i(w,E){return b.apply(this,arguments)}return i}()},{key:"getAllCollections",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=i.filterCollection,E=i.filterDataSource;return this.getDataSources(E).reduce(function(g,v){return g.push(l()(l()({},v.getOptions()),{},{collections:v.collectionManager.getCollections(w)})),g},[])}},{key:"addFieldInterfaceGroups",value:function(i){this.collectionFieldInterfaceManager.addFieldInterfaceGroups(i)}},{key:"addCollectionTemplates",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionTemplateManager.addCollectionTemplates(i)}},{key:"addFieldInterfaces",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.collectionFieldInterfaceManager.addFieldInterfaces(i)}},{key:"reload",value:function(){var b=r()(c()().mark(function w(){var E=this;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Promise.all(this.multiDataSources.map(function(){var a=r()(c()().mark(function d(R){var j,n,P,z;return c()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return j=f()(R,2),n=j[0],P=j[1],G.next=3,n();case 3:z=G.sent,z.map(function(Q){return E.addDataSource(P,Q)});case 5:case"end":return G.stop()}},d)}));return function(d){return a.apply(this,arguments)}}()));case 2:return v.abrupt("return",Promise.all(this.getDataSources().map(function(a){return a.reload()})));case 3:case"end":return v.stop()}},w,this)}));function i(){return b.apply(this,arguments)}return i}()}]),S}()},13511:function(ze,te,e){"use strict";e.d(te,{fp:function(){return D},kv:function(){return c},up:function(){return V}});var $=e(67294),l=e(85893),V=(0,$.createContext)(null);V.displayName="DataSourceManagerContext";var c=function(L){var r=L.children,W=L.dataSourceManager;return(0,l.jsx)(V.Provider,{value:W,children:r})};function D(){var f=(0,$.useContext)(V);return f}},44990:function(ze,te,e){"use strict";e.d(te,{FC:function(){return o},LX:function(){return M},NT:function(){return h},wl:function(){return t}});var $=e(5574),l=e.n($),V=e(67294),c=e(13511),D=e(36032),f=e(40868),L=e(59720),r=e(15867),W=e(50888),p=e(26793),A=e(85893),h=(0,V.createContext)(null);h.displayName="DataSourceContext";var M=function(B){var y=B.children,C=B.dataSource,T=(0,c.fp)(),U=(0,p.$)(),x=U.t,I=(0,f.Dmu)(),m=I.refresh,S=V.useState(0),b=l()(S,2),i=b[0],w=b[1],E=T==null?void 0:T.getDataSource(C);return E?E.status==="loading-failed"?(0,A.jsx)(D.z,{type:"Data Source",name:E.displayName||C,message:E.errorMessage||"loading failed"}):E.status==="loading"||E.status==="reloading"?(0,A.jsx)(f.Ssf,{children:(0,A.jsx)(L.ZP,{icon:(0,A.jsx)(W.Z,{}),title:"".concat(E.displayName||C," ").concat(x("data source")," ").concat(x("loading"),"..."),extra:(0,A.jsx)(r.ZP,{type:"primary",onClick:function(){return E.reload().then(function(){m(),w(Math.random())})},children:x("Refresh")})})}):(0,A.jsx)(h.Provider,{value:E,children:y}):(0,A.jsx)(D.z,{type:"Data Source",name:C})};function t(){var u=(0,V.useContext)(h);return u}function o(){var u=(0,V.useContext)(h);return u==null?void 0:u.key}},49453:function(ze,te,e){"use strict";e.d(te,{AK:function(){return l.AK},FC:function(){return V.FC},LX:function(){return V.LX},NT:function(){return V.NT},UC:function(){return l.UC},fp:function(){return c.fp},kv:function(){return c.kv},nC:function(){return $.n},o2:function(){return $.o},up:function(){return c.up},wl:function(){return V.wl},ym:function(){return l.ym}});var $=e(35519),l=e(57638),V=e(44990),c=e(13511)},94804:function(ze,te,e){"use strict";e.d(te,{dq:function(){return p.dq},ym:function(){return $.ym},do:function(){return W.do},N4:function(){return W.N4},m9:function(){return V.m9},FE:function(){return $.FE},WH:function(){return $.WH},zW:function(){return f.z},sb:function(){return l.s},v_:function(){return V.v_},SY:function(){return c.S},Z:function(){return c.Z},qL:function(){return l.q},YT:function(){return V.YT},Cd:function(){return z},rJ:function(){return j},lC:function(){return G},w4:function(){return $.w4},IX:function(){return $.IX},xw:function(){return $.xw},pD:function(){return f.p},YQ:function(){return $.YQ},DI:function(){return h.DI},vI:function(){return h.vI},E0:function(){return h.E0},Pl:function(){return D.P},yM:function(){return D.y},Ip:function(){return A.ym},UC:function(){return A.UC},hZ:function(){return p.hZ},KY:function(){return p.KY},T1:function(){return r.T1},eh:function(){return r.eh},o2:function(){return A.o2},i:function(){return L.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 $.Xc},j5:function(){return $.j5},nC:function(){return A.nC},sI:function(){return p.sI},Pd:function(){return $.Pd},K0:function(){return Q.K},iv:function(){return P},GX:function(){return M.GX},Yj:function(){return M.Yj},H0:function(){return W.H0},Xo:function(){return $.Xo},Kx:function(){return $.Kx},Hy:function(){return V.Hy},ge:function(){return $.ge},d9:function(){return $.d9},RA:function(){return h.RA},Kv:function(){return h.Kv},oV:function(){return h.oV},nE:function(){return h.nE},bX:function(){return $.bX},eS:function(){return p.eS},zh:function(){return p.zh},hS:function(){return W.hS},wb:function(){return r.wb},wl:function(){return A.wl},on:function(){return M.FE},FC:function(){return A.FC},fp:function(){return A.fp},P5:function(){return $.P5},lb:function(){return $.lb},Rr:function(){return p.Rr}});var $=e(1836),l=e(52020),V=e(67668),c=e(65050),D=e(67836),f=e(36032),L=e(88996),r=e(14310),W=e(39742),p=e(87180),A=e(49453),h=e(88496),M=e(8341),t=e(97857),o=e.n(t),u=e(67294);function B(K,H,q){var oe,ne=K.block,Z=K.isReadPretty,k=Z===void 0?function(ge){var se=ge.form;return se.readPretty}:Z,Y=K.filter,De=Y===void 0?function(){return!0}:Y,ee=K.getInitializerItem,he=ee===void 0?function(){return{}}:ee,be=K.getSchema,Fe=be===void 0?function(){return{}}:be,_e=q.collectionManager,Te=q.collection,Ae=q.dataSourceManager,ue=q.actionContext,ae=(oe=ue.fieldSchema)===null||oe===void 0?void 0:oe["x-action"];return Te?H.map(function(ge){var se=_e.getCollection(ge.target),pe=Ae.collectionFieldInterfaceManager.getFieldInterface(ge.interface);return{collectionField:ge,context:o()(o()({},q),{},{targetCollection:se,collectionFieldInterface:pe})}}).filter(function(ge){var se=ge.collectionField;return se.interface}).filter(function(ge){var se=ge.collectionField,pe=ge.context;return De(se,pe)}).map(function(ge){var se,pe,xe=ge.collectionField,Se=ge.context,je={type:"string",title:(xe==null||(se=xe.uiSchema)===null||se===void 0?void 0:se.title)||xe.name,name:xe.name,"x-component":"CollectionField","x-collection-field":"".concat(Te.name,".").concat(xe.name),"x-read-pretty":xe==null||(pe=xe.uiSchema)===null||pe===void 0?void 0:pe["x-read-pretty"]},Le=Fe(xe,o()(o()({},Se),{},{defaultSchema:je})),Oe=o()(o()({},je),Le||{});return{collectionField:xe,schema:Oe,context:o()(o()({},Se),{},{schema:Oe})}}).map(function(ge){var se,pe=ge.collectionField,xe=ge.context,Se={type:"item",name:pe.name,title:(pe==null||(se=pe.uiSchema)===null||se===void 0?void 0:se.title)||pe.name,Component:"CollectionFieldInitializer",schemaInitialize:function(Le){var Oe,ve;(Oe=xe.collectionFieldInterface)===null||Oe===void 0||(ve=Oe.schemaInitialize)===null||ve===void 0||ve.call(Oe,Le,{field:pe,block:ne,readPretty:k==null?void 0:k(xe),action:ae,targetCollection:xe.targetCollection})},schema:xe.schema};return{collectionField:pe,context:xe,defaultInitializerItem:Se}}).map(function(ge){var se=ge.collectionField,pe=ge.defaultInitializerItem,xe=ge.context,Se=he(se,o()(o()({},xe),{},{defaultInitializerItem:pe}));return o()(o()({},pe),Se||{})}):[]}var y=e(94350),C=e(26793),T=e(58837),U=e(44990),x=e(76157),I=e(35746),m=e(13511),S=e(40868);function b(){var K=(0,C.$)(),H=K.t,q=(0,T.Kx)(),oe=(0,m.fp)(),ne=(0,x.XC)(),Z=(0,U.wl)(),k=(0,y.useForm)(),Y=(0,y.useFieldSchema)(),De=(0,I.d9)(),ee=(0,S.eJW)();return{t:H,compile:ee,actionContext:ne,fieldSchema:Y,collection:q,dataSource:Z,form:k,collectionManager:De,dataSourceManager:oe}}var i=e(59582),w=e(85893),E=function(H){var q=b(),oe=q.t,ne=q.collection,Z=ne.getFields(),k=B(H,Z,q);return(0,w.jsx)(i.iP,{title:oe("Display fields"),children:k})},g=function(H){var q=b(),oe=q.collection,ne=q.t,Z=q.collectionManager,k=oe.getParentCollectionsName();if(!k.length)return null;var Y=k.map(function(De){var ee=oe.getParentCollectionFields(De);if(ee.length===0)return null;var he=Z.getCollection(De);return{parentCollection:he,parentCollectionFields:ee}}).filter(Boolean).map(function(De){var ee=De,he=ee.parentCollection,be=ee.parentCollectionFields,Fe=o()(o()({},q),{},{collection:he});return{type:"itemGroup",divider:!0,title:ne("Parent collection fields")+"("+q.compile(he.title)+")",children:B(H,be,Fe)}});return(0,w.jsx)(i.E0,{children:Y})},v=e(13769),a=e.n(v),d=["filterAssociationField","filterSelfField","getSchema"],R=function(H){var q=H.filterAssociationField,oe=H.filterSelfField,ne=oe===void 0?function(){return!0}:oe,Z=H.getSchema,k=a()(H,d),Y=H.context,De=Y.collection,ee=Y.t,he=Y.collectionManager,be=De.getFields(),Fe=["o2o","oho","obo","m2o"],_e=be.filter(function(Ae){return Fe.includes(Ae.interface)}).filter(function(Ae){return ne(Ae,H.context)});if(!_e.length)return null;var Te=_e.map(function(Ae){var ue=he.getCollection(Ae.target);if(!ue)return null;var ae=ue==null?void 0:ue.getAllFields();return ae.length?{associationField:Ae,associationCollection:ue,associationCollectionFields:ae}:null}).filter(Boolean).map(function(Ae){var ue,ae,ge=Ae.associationField,se=Ae.associationCollection,pe=Ae.associationCollectionFields,xe=o()(o()({},H.context),{},{collection:se}),Se=function(Le,Oe){var ve=Z(Le,Oe);return o()(o()({},ve||{}),{},{"x-read-pretty":!0,name:"".concat(ge.name,".").concat(Le.name),"x-collection-field":"".concat(De.name,".").concat(ge.name,".").concat(Le.name)})};return{type:"subMenu",name:(ue=ge.uiSchema)===null||ue===void 0?void 0:ue.title,title:(ae=ge.uiSchema)===null||ae===void 0?void 0:ae.title,children:B(o()(o()({},k),{},{filter:q,getSchema:Se}),pe,xe)}});return Te.length?(0,w.jsx)(i.iP,{title:ee("Display association fields"),children:Te}):null},j=function(H){var q=H.selfField,oe=H.parentField,ne=H.associationField,Z=H.block,k=b();return k.collection?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(E,o()(o()({block:Z},q),{},{context:o()(o()({},k),{},{collection:k.collection})})),oe&&(0,w.jsx)(g,o()(o()({block:Z},oe),{},{context:o()(o()({},k),{},{collection:k.collection})})),ne&&(0,w.jsx)(R,o()(o()({block:Z},ne),{},{context:o()(o()({},k),{},{collection:k.collection})}))]}):null},n=e(40341),P=function(H,q,oe){var ne=(0,n.nD)(H,"x-component","Kanban");return(0,n.nD)(ne,q,oe)},z=function(H){var q=(H==null?void 0:H.block)||"Form",oe={"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:FormItem","x-decorator":"FormItem"},ne={remove:n.YT};return(0,w.jsx)(j,{block:q,selfField:{filter:function(k){return!k.treeChildren},getSchema:function(k,Y){var De,ee=Y.targetCollection,he=(ee==null?void 0:ee.template)==="file",be=ee,Fe=k==null||(De=k.uiSchema)===null||De===void 0||(De=De["x-component-props"])===null||De===void 0?void 0:De.fieldNames;return o()(o()({},oe),{},{"x-component-props":he?{fieldNames:{label:"preview",value:"id"}}:be&&Fe?{fieldNames:o()(o()({},Fe),{},{label:(ee==null?void 0:ee.titleField)||Fe.label})}:{}})},getInitializerItem:function(){return o()(o()({},ne),{},{find:(H==null?void 0:H.block)==="Kanban"?P:void 0})}},parentField:{getSchema:function(){return oe},getInitializerItem:function(){return ne}},associationField:{filterSelfField:function(k){return q!=="Form"?!0:(k==null?void 0:k.interface)==="m2o"},filterAssociationField:function(k){return(k==null?void 0:k.interface)&&!["subTable"].includes(k==null?void 0:k.interface)&&!k.treeChildren},getSchema:function(){return oe},getInitializerItem:function(){return ne}}})},N=["attachment","textarea","markdown","json","richText","polygon","circle","point","lineString"],G=function(H){function q(oe){var ne=oe.fieldSchema,Z=oe.form,k=ne["x-component"]==="AssociationField.SubTable",Y=k?Z.readPretty:!0;return Y}return(0,w.jsx)(j,{block:"Table",selfField:{isReadPretty:q,filter:function(ne){return ne.interface!=="subTable"&&!ne.treeChildren},getSchema:function(ne,Z){var k,Y,De=Z.targetCollection,ee=Z.fieldSchema,he=Z.form,be=(De==null?void 0:De.template)==="file",Fe=((k=ne.uiSchema)===null||k===void 0?void 0:k["x-component"])==="Preview",_e=ee["x-component"]==="AssociationField.SubTable",Te=q({fieldSchema:ee,form:he});return{"x-component-props":be?{fieldNames:{label:"preview",value:"id"}}:Fe?{size:"small"}:{},"x-read-pretty":Te||((Y=ne.uiSchema)===null||Y===void 0?void 0:Y["x-read-pretty"]),"x-decorator":_e?N.includes(ne.interface)||be?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{find:n.p$,remove:n.pP}}},parentField:{isReadPretty:q,getSchema:function(ne,Z){var k,Y=Z.targetCollection,De=Z.fieldSchema,ee=Z.form,he=(Y==null?void 0:Y.template)==="file",be=De["x-component"]==="AssociationField.SubTable",Fe=q({fieldSchema:De,form:ee});return{"x-component-props":he?{fieldNames:{label:"preview",value:"id"}}:{},"x-read-pretty":Fe||((k=ne.uiSchema)===null||k===void 0?void 0:k["x-read-pretty"]),"x-decorator":be?N.includes(ne.interface)||he?"QuickEdit":"FormItem":null,"x-decorator-props":{labelStyle:{display:"none"}}}},getInitializerItem:function(){return{remove:n.YT}}},associationField:{filterAssociationField:function(ne){return!["subTable"].includes(ne.interface)&&!ne.treeChildren},getSchema:function(){return{}},getInitializerItem:function(){return{find:n.p$,remove:n.pP}}}})},Q=e(22558)},8341:function(ze,te,e){"use strict";e.d(te,{FE:function(){return L},GX:function(){return r},Yj:function(){return f}});var $=e(9783),l=e.n($),V=e(67294),c=e(57638),D="x-data-source",f=function(p,A){var h;return(h=p.collectionFieldInterfaceManager.getFieldInterface(A.interface))===null||h===void 0?void 0:h.titleUsable},L=function(p){var A=(0,V.useMemo)(function(){if(p&&p!==c.ym)return l()({},D,p)},[p]);return A},r=function(p){return p&&p!==c.ym?l()({},D,p):{}}},69803:function(ze,te,e){"use strict";e.d(te,{AL:function(){return S},C$:function(){return x},PE:function(){return U},jr:function(){return m},uN:function(){return b},yq:function(){return I}});var $=e(15009),l=e.n($),V=e(99289),c=e.n(V),D=e(12444),f=e.n(D),L=e(72004),r=e.n(L),W=e(31996),p=e.n(W),A=e(26037),h=e.n(A),M=e(5574),t=e.n(M),o=e(67294),u=e(64593),B=e(26793),y=e(31601),C=e(15585),T=e(85893),U=(0,o.createContext)({title:null,setTitle:function(){}});U.displayName="DocumentTitleContext";var x=function(w){var E=w.addonBefore,g=w.addonAfter,v=(0,B.$)(),a=v.t,d=(0,o.useState)(""),R=t()(d,2),j=R[0],n=R[1],P="".concat(E?" - ".concat(a(E)):"").concat(a(j||"")).concat(g?" - ".concat(a(g)):"");return(0,T.jsxs)(U.Provider,{value:{title:j,setTitle:n},children:[(0,T.jsx)(u.q,{children:(0,T.jsx)("title",{children:P})}),w.children]})},I=function(w){var E,g=(0,C.HX)();return(0,T.jsx)(x,{addonAfter:g==null||(E=g.data)===null||E===void 0||(E=E.data)===null||E===void 0?void 0:E.title,children:w.children})},m=function(){return(0,o.useContext)(U)},S=function(w){var E=m(),g=E.setTitle;(0,o.useEffect)(function(){g(w)},[])},b=function(i){p()(E,i);var w=h()(E);function E(){return f()(this,E),w.apply(this,arguments)}return r()(E,[{key:"load",value:function(){var g=c()(l()().mark(function a(){return l()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:this.app.use(I,this.options);case 1:case"end":return R.stop()}},a,this)}));function v(){return g.apply(this,arguments)}return v}()}]),E}(y.S)},67205:function(ze,te,e){"use strict";e.d(te,{XA:function(){return C},kO:function(){return U},vY:function(){return T}});var $=e(97857),l=e.n($),V=e(19632),c=e.n(V),D=e(5574),f=e.n(D),L=e(94350),r=e(96486),W=e.n(r),p=e(67294),A=e(58837),h=e(39742),M=e(4277),t=e(40868),o=e(87714),u=e(85893),B=function(x){return x.AND="$and",x.OR="$or",x}(B||{}),y=(0,p.createContext)(null);y.displayName="FilterContext";var C=function(I){var m=I.children,S=p.useState([]),b=f()(S,2),i=b[0],w=b[1];return(0,u.jsx)(y.Provider,{value:{dataBlocks:i,setDataBlocks:w},children:m})},T=function(I){var m,S=I.children,b=I.params,i=(0,A.Kx)(),w=U(),E=w.recordDataBlocks,g=(0,h.hS)(),v=(0,L.useField)(),a=(0,L.useFieldSchema)(),d=(0,o.Fp)(),R=(0,p.useRef)(null),j=(0,M.tU)(),n=v&&v.decoratorType!=="FilterFormBlockProvider"&&v.decoratorType!=="FormBlockProvider"&&v.decoratorProps.blockType!=="filter",P=(0,p.useCallback)(function(){E({uid:a["x-uid"],title:v.componentProps.title,doFilter:g.runAsync,collection:i,associatedFields:d,foreignKeyFields:i.getFields("isForeignKey"),defaultFilter:(b==null?void 0:b.filter)||{},service:g,dom:R.current,dataLoadingMode:j,clearFilter:function(N){var G,Q,K=((G=this.service.params)===null||G===void 0?void 0:G[0])||{},H=((Q=this.service.params)===null||Q===void 0||(Q=Q[1])===null||Q===void 0?void 0:Q.filters)||{};delete H[N];var q=(0,o.EO)([].concat(c()(Object.values(H).map(function(oe){return(0,t.WmO)(oe)})),[(b==null?void 0:b.filter)||{}]));this.service.run(l()(l()({},K),{},{page:1,filter:q}),{filters:H})},clearData:function(){this.service.mutate(void 0)}})},[d,i,j,v==null||(m=v.componentProps)===null||m===void 0?void 0:m.title,a,b==null?void 0:b.filter,E,g]);return(0,p.useEffect)(function(){n&&P()},[P,n]),(0,u.jsx)("div",{ref:R,children:S})},U=function(){var I=p.useContext(y),m=(0,p.useCallback)(function(){return(I==null?void 0:I.dataBlocks)||[]},[I==null?void 0:I.dataBlocks]);if(!I)return{inProvider:!1,recordDataBlocks:function(){},getDataBlocks:m,removeDataBlock:function(){}};var S=I.dataBlocks,b=I.setDataBlocks,i=function(g){var v=S.find(function(a){return a.uid===g.uid});if(v){Object.assign(v,g);return}b(function(a){return(0,r.uniqBy)([].concat(c()(a),[g]),"uid")})},w=function(g){S.every(function(v){return v.uid!==g})||b(function(v){return v.filter(function(a){return a.uid!==g})})};return{recordDataBlocks:i,getDataBlocks:m,removeDataBlock:w,inProvider:!0}}},18386:function(ze,te,e){"use strict";e.d(te,{$f:function(){return l.$f},EO:function(){return l.EO},Fp:function(){return l.Fp},Op:function(){return l.Op},Um:function(){return l.Um},XA:function(){return $.XA},hi:function(){return l.hi},jE:function(){return l.jE},kO:function(){return $.kO},vC:function(){return l.vC},vY:function(){return $.vY},x5:function(){return l.x5},yr:function(){return l.yr},zv:function(){return l.zv}});var $=e(67205),l=e(87714)},87714:function(ze,te,e){"use strict";e.d(te,{$f:function(){return w},EO:function(){return x},Fp:function(){return i},Op:function(){return v},Um:function(){return S},hi:function(){return g},jE:function(){return b},vC:function(){return U},x5:function(){return I},yr:function(){return E},zv:function(){return m}});var $=e(97857),l=e.n($),V=e(19632),c=e.n(V),D=e(5574),f=e.n(D),L=e(9783),r=e.n(L),W=e(52677),p=e.n(W),A=e(94350),h=e(68433),M=e(96486),t=e.n(M),o=e(67294),u=e(10097),B=e(6145),y=e(58837),C=e(40868),T=e(67205),U=function(a){return a[a.FORM=0]="FORM",a[a.TABLE=1]="TABLE",a[a.TREE=2]="TREE",a[a.COLLAPSE=3]="COLLAPSE",a}({}),x=function(d){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$and",j=d.filter(function(n){if(n&&p()(n)==="object"&&!Array.isArray(n))return Object.values(n).filter(function(P){return P!==void 0}).length});return j.length===0?{}:j.length===1?j[0]:r()({},R,j)},I=function(d,R){var j;return(j=R.associatedFields)===null||j===void 0?void 0:j.filter(function(n){return d==null?void 0:d.some(function(P){return P===n.target})})},m=function(d,R){var j;return(j=R.foreignKeyFields)===null||j===void 0?void 0:j.filter(function(n){return d.fields.some(function(P){return P.type!=="belongsTo"&&P.foreignKey===n.name})})},S=function(d){var R=(0,T.kO)(),j=R.getDataBlocks,n=(0,A.useFieldSchema)(),P=(0,y.Kx)(),z=(0,B.useCollectionManager_deprecated)(),N=z.getAllCollectionsInheritChain;if(d===U.FORM||d===U.COLLAPSE)return j().filter(function(G){return E(G.collection,P)});if(d===U.TABLE||d===U.TREE)return j().filter(function(G){var Q,K;return n["x-uid"]!==G.uid&&(E(G.collection,P)||((Q=I(N(P.name,P.dataSource),G))===null||Q===void 0?void 0:Q.length)||((K=m(P,G))===null||K===void 0?void 0:K.length))})},b=function(d,R,j,n){d=(0,h.flatten)(d,{breakOn:function(N){var G=N.value,Q=N.path;if(["$match","$notMatch","$anyOf","$noneOf","$childIn","$childNotIn","$dateBetween","$in","$notIn"].includes(R[Q]))return!0;var K=j("".concat(n,".").concat(Q));if(K!=null&&K.target){if(Array.isArray(G))return!0;var H=K.targetKey||"id";if(G&&G[H]!=null)return!0}return!1}});var P={$and:Object.keys(d).map(function(z){var N=t().get(d,z),G=j("".concat(n,".").concat(z));return G!=null&&G.target&&(N=(0,h.getValuesByPath)(N,G.targetKey||"id"),z="".concat(z,".").concat(G.targetKey||"id"),(G==null?void 0:G.interface)==="chinaRegion"&&(N=t().last(N))),!N&&N!==0&&N!==!1?null:r()({},z,r()({},R[z]||"$eq",N))}).filter(Boolean)};return P},i=function(){var d=(0,B.useCollection_deprecated)(),R=d.fields;return R.filter(function(j){return w(j)})||[]},w=function(d){return["o2o","oho","obo","m2o","createdBy","updatedBy","o2m","m2m","linkTo","chinaRegion","mbm"].includes(d==null?void 0:d.interface)},E=function(d,R){return d.name===R.name&&d.dataSource===R.dataSource},g=function(){var d=(0,A.useFieldSchema)(),R=(0,T.kO)(),j=R.getDataBlocks,n=(0,u.findFilterTargets)(d),P=n.targets,z=n.uid,N=j(),G=(0,o.useState)(function(){return P&&P.some(function(ne){return N.some(function(Z){return Z.uid===ne.uid})})}),Q=f()(G,2),K=Q[0],H=Q[1],q=Object.keys(P||{});(0,o.useEffect)(function(){H(P&&P.some(function(ne){return N.some(function(Z){return Z.uid===ne.uid})}))},[q.length,P,N]);var oe=(0,o.useCallback)(function(ne){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$eq";N.forEach(function(Y){var De,ee,he=P.find(function(Te){return Te.uid===Y.uid});if(he){t().isFunction(Z)&&(Z=Z(he)),t().isFunction(k)&&(k=k(he));var be=((De=Y.service.params)===null||De===void 0?void 0:De[0])||{},Fe=((ee=Y.service.params)===null||ee===void 0||(ee=ee[1])===null||ee===void 0?void 0:ee.filters)||{};ne!==void 0?Fe[z]={$and:[r()({},Z,r()({},k,ne))]}:delete Fe[z];var _e=x([].concat(c()(Object.values(Fe).map(function(Te){return(0,C.WmO)(Te)})),[Y.defaultFilter]));Y.doFilter(l()(l()({},be),{},{page:1,filter:_e}),{filters:Fe})}})},[N,P,z]);return{isConnected:K,doFilter:oe}},v=function(d){for(;d;){if(d["x-filter-targets"])return d["x-decorator"]==="FilterFormBlockProvider";d=d.parent}return!1}},5772:function(ze,te,e){"use strict";e.d(te,{C:function(){return c},z:function(){return V}});var $=e(67294),l=e(85893),V=$.createContext(null),c=function(f){return(0,l.jsx)(V.Provider,{value:f,children:f.children})}},7686:function(ze,te,e){"use strict";e.d(te,{P:function(){return V}});var $=e(67294),l=e(5772),V=function(){return(0,$.useContext)(l.z)||{}}},53285:function(ze,te,e){"use strict";e.d(te,{Cm:function(){return $.C},P5:function(){return l.P},z_:function(){return $.z}});var $=e(5772),l=e(7686)},69962:function(ze,te,e){"use strict";e.d(te,{wI:function(){return x},YO:function(){return S},kK:function(){return M},uH:function(){return A},mg:function(){return m}});var $=e(5574),l=e.n($),V=e(9361),c=e(28459),D=e(96486),f=e.n(D),L=e(67294),r=e(97857),W=e.n(r),p={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=p;function h(b){var i;return(i=b.token)!==null&&i!==void 0&&i.colorSettings||(b.token=W()(W()({},b.token),A.token)),b}var M=h,t=function(i,w){var E=w||V.Z.defaultAlgorithm(i);return E.paddingPageHorizontal===void 0&&(E.paddingPageHorizontal=E.sizeLG),E.paddingPageVertical===void 0&&(E.paddingPageVertical=E.sizeLG),E.paddingPopupHorizontal===void 0&&(E.paddingPopupHorizontal=E.sizeLG),E.paddingPopupVertical===void 0&&(E.paddingPopupVertical=E.size),E.marginBlock===void 0&&(E.marginBlock=E.sizeLG),E.borderRadiusBlock===void 0&&(E.borderRadiusBlock=E.borderRadiusLG),E},o=function(i){return Array.isArray(i.algorithm)?i.algorithm.includes(t)||i.algorithm.push(t):i.algorithm=[i.algorithm,t].filter(Boolean),i.algorithm=i.algorithm.filter(Boolean),i},u=e(85893),B=e(3321),y=e(12174),C=e(29939),T=(0,L.memo)(function(b){var i=b.children,w=(0,C.qD)(),E=B.Z.useApp(),g=E.notification,v=(0,y.LY)();return(0,L.useEffect)(function(){v.notification=g,w.notification=g},[g]),(0,u.jsx)(u.Fragment,{children:i})});T.displayName="AppInner";var U=function(i){var w=i.children,E=i.className,g=i.style;return(0,u.jsx)(B.Z,{className:E,style:W()({height:"100%"},g),children:(0,u.jsx)(T,{children:w})})};U.displayName="AntdAppProvider";var x=U,I=(0,L.createContext)(null);I.displayName="GlobalThemeContext";var m=function(){return L.useContext(I)||{theme:{},isDarkTheme:!1}},S=function(i){var w=i.children,E=i.theme,g=L.useState(E||A),v=l()(g,2),a=v[0],d=v[1],R=(0,L.useRef)(null),j=(0,L.useRef)(null),n=(0,L.useMemo)(function(){var K=a==null?void 0:a.algorithm;return Array.isArray(K)?K.includes(V.Z.darkAlgorithm):K===V.Z.darkAlgorithm},[a==null?void 0:a.algorithm]),P=(0,L.useCallback)(function(K){j.current=K&&f().cloneDeep(K)},[]),z=(0,L.useCallback)(function(){return j.current},[]),N=(0,L.useCallback)(function(K){R.current=K&&f().cloneDeep(K)},[]),G=(0,L.useCallback)(function(){return R.current},[]),Q=(0,L.useMemo)(function(){return{theme:o(a),setTheme:d,setCurrentSettingTheme:N,getCurrentSettingTheme:G,setCurrentEditingTheme:P,getCurrentEditingTheme:z,isDarkTheme:n}},[z,G,n,P,N,a]);return(0,u.jsx)(I.Provider,{value:Q,children:(0,u.jsx)(c.ZP,{theme:M(Q.theme),children:w})})}},15503:function(ze,te,e){"use strict";e.d(te,{M:function(){return M},t:function(){return t}});var $=e(97857),l=e.n($),V=e(96695),c=e.n(V),D=e(94350),f=e(96486),L=e.n(f),r=e(67294),W=e(40868),p=e(85893),A=function(){},h=function(u,B,y){var C=void 0;return L().isFunction(u)?C=u:(C=B[u],C||console.error("".concat(y," is not registered"))),C||A};function M(o,u){var B=(0,D.useExpressionScope)(),y=(0,r.useMemo)(function(){if(!o)return A;if(L().isFunction(o))return o;var T=o.split("."),U,x=c()(T),I;try{for(x.s();!(I=x.n()).done;){var m=I.value;U=h(m,U||B,o)}}catch(S){x.e(S)}finally{x.f()}return U},[o]),C=y(u);return C}function t(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=u.displayName||o.displayName||o.name,y=function C(T){var U=(0,W.ngQ)(),x=U.dn,I=U.findComponent,m=(0,r.useMemo)(function(){var i=x.getSchemaAttribute("x-component"),w=x.getSchemaAttribute("x-decorator"),E=x.getSchemaAttribute("x-use-component-props"),g=x.getSchemaAttribute("x-use-decorator-props");if(i&&E&&I(i)===C)return E;if(w&&g&&I(w)===C)return g},[x]),S=M(m,T),b=(0,r.useMemo)(function(){return l()(l()({},T),S)},[S,T]);return(0,p.jsx)(o,l()(l()({},b),{},{children:T.children}))};return o.displayName=B,y.displayName="withSchemaProps(".concat(B,")"),y}},29392:function(ze,te,e){"use strict";e.d(te,{W:function(){return $},S:function(){return c}});var $=function(){return"nocobase-admin-menu"},l=e(67294),V=function(){var f=(0,l.useRef)("initial-scale=0.1"),L=(0,l.useRef)();(0,l.useEffect)(function(){var W=document.querySelector('meta[name="viewport"]');W?f.current=W.content:(W=document.createElement("meta"),W.name="viewport"),W&&(W.content="width=device-width, initial-scale=1, user-scalable=0",L.current=W)},[]);var r=function(){L.current&&(L.current.content=f.current)};return{metaRef:L,restore:r}};function c(){var D=V(),f=D.metaRef,L=D.restore;(0,l.useEffect)(function(){if(f.current)return document.head.insertBefore(f.current,document.head.firstChild),function(){L()}},[])}},74820:function(ze,te,e){"use strict";e.d(te,{d5:function(){return W},iX:function(){return A},nu:function(){return p}});var $=e(19632),l=e.n($),V=e(96486),c=e.n(V),D=e(67294),f=e(85893),L=(0,D.createContext)(null);L.displayName="GetMenuItemContext";var r=(0,D.createContext)(null);r.displayName="GetMenuItemsContext";var W=function(){return(0,D.useContext)(L)||{}},p=function(){return(0,D.useContext)(r)||{}},A=function(){var M=(0,D.useRef)([]),t=(0,D.useRef)(null),o=(0,D.useRef)(!1),u=(0,D.useCallback)(function(T){var U=T.limitCount;return o.current?(o.current=!1,t.current?t.current():U&&M.current.length>U?(0,f.jsx)(f.Fragment,{children:M.current.slice(0,U).map(function(x,I){return(0,f.jsx)(x,{},I)})}):(0,f.jsx)(f.Fragment,{children:M.current.map(function(x,I){return(0,f.jsx)(x,{},I)})})):null},[]),B=(0,D.useCallback)(function(T){var U=[],x=function(m){U.push(m),U.sort(function(S,b){return(S.order||0)-(b.order||0)})};return o.current=!0,t.current=function(){var I=U.filter(function(m){return m.notdelete}).map(function(m){return c().omit(m,"notdelete")});return U.length=0,U.push.apply(U,l()(I)),(0,f.jsx)(r.Provider,{value:{pushMenuItem:x},children:T()})},U},[]),y=(0,D.useCallback)(function(T){var U={},x=function(m){Object.assign(U,m)};return o.current=!0,M.current.push(function(){return(0,f.jsx)(L.Provider,{value:{collectMenuItem:x},children:T()})}),U},[]),C=(0,D.useCallback)(function(){M.current=[]},[]);return{Component:u,getMenuItems:B,getMenuItem:y,clean:C}}},58384:function(ze,te,e){"use strict";e.d(te,{a:function(){return D},v:function(){return c}});var $=e(36609),l=e(57715),V=e(35310);function c(L,r){return r?"{{t(".concat(JSON.stringify(L),", ").concat(JSON.stringify(r),")}}"):"{{t(".concat(JSON.stringify(L),")}}")}var D=$.default.createInstance(),f={};Object.keys(V.Z).forEach(function(L){f[L]=V.Z[L].resources}),D.use(l.Db).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1})},82369:function(ze,te,e){"use strict";e.d(te,{JO:function(){return u},OL:function(){return t},ci:function(){return h},q5:function(){return M},fm:function(){return o}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(33970),f=e(16165),L=e(91321),r=e(67294),W=e(85893),p=["type","component"],A,h=new Map;function M(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A;h.set(y.toLowerCase(),C)}function t(y){return y?h.has(y.toLowerCase()):!1}function o(y){Object.keys(y).forEach(function(C){M(C,y[C])})}Object.keys(D).forEach(function(y){y.endsWith("Outlined")&&M(y,D[y])});var u=function(C){var T=C.type,U=T===void 0?"":T,x=C.component,I=c()(C,p);if(x)return(0,W.jsx)(f.Z,l()({component:x},I));if(U&&h.has(U.toLowerCase())){var m=h.get(U.toLowerCase());return(0,W.jsx)(m,l()({},I))}return U&&A?(0,W.jsx)(A,{type:U}):null};u.createFromIconfontCN=function(y){A=(0,L.Z)(y)},u.register=function(y){o(y)};var B=null},21143:function(ze,te,e){"use strict";e.r(te),e.d(te,{ACLActionParamsContext:function(){return T.R1},ACLActionProvider:function(){return T.mE},ACLCollectionFieldProvider:function(){return T.tq},ACLCollectionProvider:function(){return T.Hh},ACLContext:function(){return T.R3},ACLMenuItemProvider:function(){return T.fJ},ACLPane:function(){return T.$M},ACLPlugin:function(){return T.pz},ACLProvider:function(){return T.Z5},ACLRolesCheckProvider:function(){return T.VV},ADMIN_SETTINGS_KEY:function(){return m.eB},ADMIN_SETTINGS_PATH:function(){return m.oz},APIClient:function(){return x.lP},APIClientContext:function(){return x._Z},APIClientProvider:function(){return x.Xb},Action:function(){return k.aUM},ActionBar:function(){return k.olz},ActionBarAssociationFilterAction:function(){return Y.cm},ActionBarProvider:function(){return k.N0i},ActionContext:function(){return k.fWn},ActionContextProvider:function(){return k.EIK},ActionDesigner:function(){return k.$Lt},ActionInitializer:function(){return Y.$M},ActionInitializerItem:function(){return Y.eq},AdminDynamicPage:function(){return Z.zf},AdminLayout:function(){return Z.lq},AdminLayoutPlugin:function(){return Z.r3},AdminProvider:function(){return Z.IA},AdminSettingsLayout:function(){return q.i9},AfterSuccess:function(){return k.$b8},AntdAppProvider:function(){return P.wI},AntdConfigPlugin:function(){return U.kT},AntdConfigProvider:function(){return U.zy},AntdSchemaComponentPlugin:function(){return k.HTy},AntdSchemaComponentProvider:function(){return k.lkv},AppComponent:function(){return m.y$},AppLangContext:function(){return U.UJ},AppendsTreeSelect:function(){return k.rDu},Application:function(){return m.Mx},ApplicationContext:function(){return m.Zz},AssignedFieldValues:function(){return k.eYL},AssociatedFields:function(){return Y.Pg},AssociationField:function(){return k.Rat},AssociationFieldMode:function(){return k.oAt},AssociationFieldModeProvider:function(){return k.E7E},AssociationFilter:function(){return Y.tr},AssociationFilterDesignerDelete:function(){return Y.nr},AssociationFilterDesignerDisplayField:function(){return Y.N2},AssociationFilterPlugin:function(){return Y.Ys},AssociationOrCollectionProvider:function(){return d.dq},AssociationProvider:function(){return d.ym},AssociationSelect:function(){return k.$SD},AsyncDataContext:function(){return S.tO},AsyncDataProvider:function(){return S.pW},AttachmentList:function(){return k.fUi},AutoComplete:function(){return k.QcG},BackButtonUsedInSubPage:function(){return k.MLy},BaseVariableProvider:function(){return ee.Nx},BlankComponent:function(){return m.X_},Block:function(){return k.gOu},BlockAssociationContext:function(){return b.WJ},BlockContext:function(){return b.Qj},BlockInitializer:function(){return Y.bn},BlockItem:function(){return k.jYG},BlockItemInitializer:function(){return Y.VD},BlockProvider:function(){return b.ZJ},BlockRequestContext:function(){return d.do},BlockRequestContext_deprecated:function(){return b.br},BlockRequestProvider:function(){return d.N4},BlockRequestProvider_deprecated:function(){return b.M0},BlockResourceContext:function(){return b.wH},BlockSchemaComponentPlugin:function(){return b.jF},BlockSchemaComponentProvider:function(){return b.UC},BlockSchemaToolbar:function(){return se.G},BlockTemplateContext:function(){return he.k0},BlockTemplateDetails:function(){return he.bs},BlockTemplatePage:function(){return he.EF},BlockTemplateProvider:function(){return he.AG},BlockTemplatesPane:function(){return he.L},ButtonEditor:function(){return k.C1I},CSSVariableProvider:function(){return a.O},CardItem:function(){return k.Ssf},Cascader:function(){return k.vTp},Checkbox:function(){return k.XZJ},ChinaRegionProvider:function(){return i.m},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},CollectionFieldInternalField:function(){return d.qL},CollectionFieldProvider:function(){return d.YT},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 k.Tt2},CollectionTemplate:function(){return d.Pl},CollectionTemplateManager:function(){return d.yM},ColorPicker:function(){return k.zH8},ColorSelect:function(){return k.Q5L},CompatibleSchemaInitializer:function(){return m.nl},CreateFilterActionInitializer:function(){return Y.nl},CreateResetActionInitializer:function(){return Y.cz},Cron:function(){return k.Pok},CronSet:function(){return k.Vm0},CurrentAppInfoContext:function(){return I.RQ},CurrentAppInfoProvider:function(){return I.Gq},CurrentUser:function(){return Te.Ih},CurrentUserContext:function(){return Te.Ec},CurrentUserProvider:function(){return Te.MF},CurrentUserSettingsMenuProvider:function(){return Te.mY},CustomRouterContextProvider:function(){return m.O6},CustomizeActionInitializer:function(){return Y.yE},DEBOUNCE_WAIT:function(){return Ae.on},DEFAULT_DATA_SOURCE_KEY:function(){return d.Ip},DEFAULT_DATA_SOURCE_TITLE:function(){return d.UC},DataBlockCollector:function(){return j.vY},DataBlockContext:function(){return d.hZ},DataBlockInitializer:function(){return Y.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 k.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 k.Lip},DatePicker:function(){return k.Mtg},DatePickerProvider:function(){return k.iNu},DefaultValueProvider:function(){return ee.yT},Designable:function(){return k.zzt},DesignableSwitch:function(){return k._bl},Details:function(){return k.POi},DetailsBlockContext:function(){return b.LR},DetailsBlockProvider:function(){return b.nw},DetailsDesigner:function(){return k.AOY},DndContext:function(){return k.LBT},DocumentTitleContext:function(){return R.PE},DocumentTitleProvider:function(){return R.C$},DragHandler:function(){return k.IWB},DraggableContext:function(){return k.LCt},DropdownVisibleContext:function(){return Te.yI},EditComponent:function(){return k.FyH},EditDefaultValue:function(){return k.Nir},EditDescription:function(){return k.q8U},EditOperator:function(){return k.HGA},EditPattern:function(){return k.QTe},EditRequired:function(){return k.JEX},EditSortField:function(){return k.fAH},EditTitle:function(){return k.$w$},EditTitleField:function(){return k.nBj},EditTooltip:function(){return k.Oct},EditValidationRules:function(){return k.zdw},Editable:function(){return k.CXR},EllipsisWithTooltip:function(){return k.BQs},ErrorFallback:function(){return k.Hj5},Expand:function(){return k.M0b},ExtendCollectionsContext:function(){return d.Xc},ExtendCollectionsProvider:function(){return d.j5},Filter:function(){return k.wn$},FilterAction:function(){return k.GzZ},FilterActionContext:function(){return k.tJZ},FilterAssociatedFields:function(){return Y.EC},FilterBlockProvider:function(){return j.XA},FilterBlockType:function(){return j.vC},FilterContext:function(){return k.fox},FilterDynamicComponent:function(){return k.VTd},FilterFormBlockProvider:function(){return b.WI},FilterLogicContext:function(){return k.XsZ},FilterParentCollectionFields:function(){return Y.d6},FixedBlock:function(){return k.AsW},FixedBlockDesignerItem:function(){return k.cLM},FixedBlockWrapper:function(){return k.m__},FlagContext:function(){return n.z_},FlagProvider:function(){return n.Cm},Form:function(){return k.l09},FormActiveFieldsProvider:function(){return b.T2},FormBlockContext:function(){return b.TC},FormBlockInitializer:function(){return pe.Jo},FormBlockProvider:function(){return b.$R},FormDialog:function(){return k.D_t},FormField:function(){return k.WiK},FormFieldContext:function(){return b.uW},FormFieldProvider:function(){return b.$1},FormItem:function(){return k.xJW},FormItemSchemaToolbar:function(){return pe.Oo},FormProvider:function(){return k.RVL},FormV2:function(){return k.Bc8},G2Plot:function(){return k.hG9},G2PlotInitializer:function(){return Y.oY},G2PlotRenderer:function(){return k.DCh},GeneralSchemaDesigner:function(){return ee.aN},GeneralSchemaItems:function(){return De.Mj},GlobalThemeProvider:function(){return P.YO},Grid:function(){return k.rjZ},GridCard:function(){return k.Cqo},GridRowContext:function(){return k.jg7},HTMLEncode:function(){return k.gsn},HeightMode:function(){return ee.j0},Icon:function(){return G.JO},IconPicker:function(){return k.$18},InitializerWithSwitch:function(){return Y.sp},Input:function(){return k.IIB},InputNumber:function(){return k.RnZ},InputReadPretty:function(){return k.mX2},InputRecordPicker:function(){return k.zDC},InternalAdminLayout:function(){return Z.Me},Json:function(){return k.Phs},List:function(){return k.aVo},LocalDataSource:function(){return d.nC},LocationSearchContext:function(){return m.xJ},Markdown:function(){return k.UGj},MarkdownReadPretty:function(){return k.yq5},MaybeCollectionProvider:function(){return b.bH},Menu:function(){return k.v2r},MenuConfigure:function(){return T.dr},NanoIDInput:function(){return k.HIW},NavigateIfNotSignIn:function(){return Te.vo},NocoBaseBuildInPlugin:function(){return K.q},OpenModeProvider:function(){return Oe.W},PMPlugin:function(){return q.Np},Page:function(){return k.T3C},PagePopups:function(){return k.d97},PageTabs:function(){return k.hGv},Pagination:function(){return k.tlE},ParentCollectionFields:function(){return Y.cd},Password:function(){return k.rop},Percent:function(){return k.gGi},PermissionContext:function(){return T.Bk},PermissionProvider:function(){return T.Wx},PinnedListPlugin:function(){return H.r1},PinnedPluginList:function(){return H.B$},PinnedPluginListContext:function(){return H.uv},PinnedPluginListProvider:function(){return H.tc},Plugin:function(){return m.Sy},PluginManager:function(){return q.Q$},PluginManagerLink:function(){return q.s0},PluginSettingsManager:function(){return m.nS},PopupContextProvider:function(){return ve.y},PopupSettingsProvider:function(){return k.DBW},PoweredBy:function(){return oe.C},Preview:function(){return k.MBS},QuickEdit:function(){return k.pGO},REGEX_OF_VARIABLE:function(){return Ae.ts},REGEX_OF_VARIABLE_IN_EXPRESSION:function(){return Ae.Bj},Radio:function(){return k.Y8K},ReadPretty:function(){return k.iVT},ReadPrettyRecordPicker:function(){return k.ODP},RecordAssociationBlockInitializer:function(){return Y.$i},RecordAssociationDetailsBlockInitializer:function(){return Y.Mr},RecordAssociationFormBlockInitializer:function(){return Y.EK},RecordAssociationGridCardBlockInitializer:function(){return Y.zb},RecordAssociationListBlockInitializer:function(){return Y.Ok},RecordContext_deprecated:function(){return ne.rY},RecordFormBlockInitializer:function(){return pe.se},RecordIndexContext:function(){return ne.Pc},RecordIndexProvider:function(){return ne.li},RecordLink:function(){return b.hD},RecordPicker:function(){return k.lbb},RecordPickerContext:function(){return k.b7w},RecordPickerProvider:function(){return k.sUk},RecordProvider:function(){return ne.HV},RecordReadPrettyAssociationFormBlockInitializer:function(){return Y.CC},RecordSimpleProvider:function(){return ne.Qh},RefreshDataBlockRequest:function(){return k.x1j},RemoteDocumentTitlePlugin:function(){return R.uN},RemoteDocumentTitleProvider:function(){return R.yq},RemoteSchemaComponent:function(){return k.m1v},RemoteSchemaTemplateManagerPlugin:function(){return he.Wc},RemoteSchemaTemplateManagerProvider:function(){return he.Jv},RemoteSelect:function(){return k.glM},RemoveButton:function(){return k.xZD},RemoveConditionContext:function(){return k.IuH},RenderChildrenWithAssociationFilter:function(){return b.gY},RequestSettings:function(){return k.MkN},RerenderDataBlockProvider:function(){return d.sI},Resizable:function(){return xe.ez},RichText:function(){return k.Hof},RoleConfigure:function(){return T.XU},RoleResourceCollectionContext:function(){return T.O9},RoleTable:function(){return T.No},RolesResourcesActions:function(){return T.kF},RouteSchemaComponent:function(){return Z.GX},RouterContextCleaner:function(){return m.OW},RouterManager:function(){return m.k2},SNIPPET_PREFIX:function(){return m.MC},SanitizedCollectionProvider:function(){return d.Pd},SchemaComponent:function(){return k.n6},SchemaComponentContext:function(){return k.DDd},SchemaComponentOptions:function(){return k.G0E},SchemaComponentPlugin:function(){return k.a$w},SchemaComponentProvider:function(){return k.TzZ},SchemaInitializer:function(){return m.Ms},SchemaInitializerActionModal:function(){return m.HS},SchemaInitializerActionModalInternal:function(){return m.IQ},SchemaInitializerChild:function(){return m.yH},SchemaInitializerChildren:function(){return m.E0},SchemaInitializerContext:function(){return m.V4},SchemaInitializerDivider:function(){return m.qU},SchemaInitializerItem:function(){return m.lV},SchemaInitializerItemContext:function(){return m.Mm},SchemaInitializerItemGroup:function(){return m.iP},SchemaInitializerItemGroupInternal:function(){return m.IY},SchemaInitializerItemInternal:function(){return m.VG},SchemaInitializerItems:function(){return m.LU},SchemaInitializerManager:function(){return m.eN},SchemaInitializerMenu:function(){return m.tu},SchemaInitializerMenuProvider:function(){return m.kw},SchemaInitializerOpenModeSchemaItems:function(){return De.EU},SchemaInitializerPlugin:function(){return Y.dH},SchemaInitializerSelect:function(){return m.iW},SchemaInitializerSelectInternal:function(){return m.ud},SchemaInitializerSubMenu:function(){return m.eU},SchemaInitializerSubMenuInternal:function(){return m.xv},SchemaInitializerSwitch:function(){return m._n},SchemaInitializerSwitchInternal:function(){return m.wH},SchemaSettingItemContext:function(){return m.A4},SchemaSettingOpenModeSchemaItems:function(){return De.HA},SchemaSettings:function(){return m.F5},SchemaSettingsActionLinkItem:function(){return ae.s},SchemaSettingsActionModalItem:function(){return ee.Qh},SchemaSettingsBlockHeightItem:function(){return ee.qf},SchemaSettingsBlockTitleItem:function(){return ee._E},SchemaSettingsCascaderItem:function(){return ee.ns},SchemaSettingsChild:function(){return m.kY},SchemaSettingsChildren:function(){return m.dk},SchemaSettingsConnectDataBlocks:function(){return ee.FE},SchemaSettingsDataScope:function(){return ee.HF},SchemaSettingsDataTemplates:function(){return ee.ON},SchemaSettingsDateFormat:function(){return ee.yu},SchemaSettingsDefaultSortingRules:function(){return ee.y5},SchemaSettingsDefaultValue:function(){return ee.Nn},SchemaSettingsDivider:function(){return ee.Z5},SchemaSettingsDropdown:function(){return ee.cM},SchemaSettingsEnableChildCollections:function(){return ee.L3},SchemaSettingsFixed:function(){return xe.rI},SchemaSettingsFormItemTemplate:function(){return ee.vC},SchemaSettingsItem:function(){return ee.r2},SchemaSettingsItemGroup:function(){return ee.bw},SchemaSettingsLinkageRules:function(){return ee.lc},SchemaSettingsManager:function(){return m.XD},SchemaSettingsModalItem:function(){return ee.B0},SchemaSettingsNumberFormat:function(){return ee.wH},SchemaSettingsPlugin:function(){return ee.zM},SchemaSettingsPopupItem:function(){return ee.D3},SchemaSettingsProvider:function(){return ee.Rh},SchemaSettingsRemove:function(){return ee.qx},SchemaSettingsRenderEngine:function(){return ee.cK},SchemaSettingsSelectItem:function(){return ee.Qf},SchemaSettingsSortingRule:function(){return ee.wL},SchemaSettingsSubMenu:function(){return ee.m$},SchemaSettingsSwitchItem:function(){return ee.hj},SchemaSettingsTemplate:function(){return ee.Gk},SchemaSettingsWrapper:function(){return m.GC},SchemaTemplateManagerContext:function(){return he.Kb},SchemaTemplateManagerProvider:function(){return he.ns},SchemaToolbar:function(){return ee.Mf},SchemaToolbarContext:function(){return m.J1},SchemaToolbarProvider:function(){return m.V$},ScopeSelect:function(){return T.X$},SearchCollections:function(){return Y.zH},SecondConFirm:function(){return k.y00},Select:function(){return k.PhF},SelectActionInitializer:function(){return Y.w_},SelectWithTitle:function(){return v.T},SetDataLoadingMode:function(){return je.jI},SettingCenterPermissionProvider:function(){return T.P2},SettingCenterProvider:function(){return T.S3},SettingsCenterConfigure:function(){return T.H3},SettingsCenterContext:function(){return q.EV},SettingsCenterDropdown:function(){return q.zK},SettingsMenu:function(){return Te.Tx},ShowFormData:function(){return k.Cqv},SkipValidation:function(){return k.cof},Sortable:function(){return k.bts},SortableContext:function(){return k.Fop},SortableItem:function(){return k.TRI},SortableProvider:function(){return k.ORg},Space:function(){return k.TaI},StablePopover:function(){return k.qHe},StrategyActions:function(){return T.R6},SubmitActionInitializer:function(){return Y.ss},SystemSettingsContext:function(){return Fe.YO},SystemSettingsPane:function(){return Fe.a$},SystemSettingsPlugin:function(){return Fe.j8},SystemSettingsProvider:function(){return Fe.C6},Table:function(){return k.iA_},TableActionColumnInitializer:function(){return Y.VU},TableBlockContext:function(){return b.Hz},TableBlockDesigner:function(){return k.gvM},TableBlockInitializer:function(){return xe.kD},TableBlockProvider:function(){return b._0},TableColumnSchemaToolbar:function(){return xe.u6},TableField:function(){return k.SnY},TableFieldContext:function(){return b.Q6},TableFieldProvider:function(){return b.CB},TableFieldResource:function(){return b.Qy},TableSelectorContext:function(){return b.Yu},TableSelectorDesigner:function(){return k.ASv},TableSelectorInitializer:function(){return Se.S},TableSelectorParamsProvider:function(){return b.Vs},TableSelectorProvider:function(){return b.rL},TableV2:function(){return k.bwk},Tabs:function(){return k.mQc},TabsContextProvider:function(){return k.c__},Templates:function(){return k.QZ3},TestDesigner:function(){return k.L39},TimePicker:function(){return k.jII},TreeSelect:function(){return k.mPs},UnixTimestamp:function(){return k.tgM},Upload:function(){return k.gqx},Uploader:function(){return k.Qm7},Variable:function(){return k._wD},VariableInput:function(){return ee.qj},VariablePopupRecordProvider:function(){return ce.Rm},VariableScopeProvider:function(){return k.rjl},VariablesContext:function(){return Ae.cB},VariablesProvider:function(){return Ae.Uj},WithoutFormFieldResource:function(){return b.$Y},WithoutTableFieldResource:function(){return b.s},WorkflowConfig:function(){return k.Fjw},actionSettings:function(){return k.SLL},actionSettingsItems:function(){return k.sBv},allowAddNew:function(){return k.iTm},appendQueryStringToUrl:function(){return b.HQ},cache:function(){return C.cache},canMakeAssociationBlock:function(){return Y.Tc},compatOldTheme:function(){return P.kK},completeURL:function(){return b.jR},compose:function(){return m.qC},createCreateFormBlockUISchema:function(){return pe.lJ},createDesignable:function(){return k.Pls},createDetailsBlockSchema:function(){return Y.e6},createFormActionInitializers:function(){return pe.nr},createFormActionInitializers_deprecated:function(){return pe.$G},createFormBlockSchema:function(){return Y.NH},createFormBlockSettings:function(){return pe.K9},createModalSettingsItem:function(){return m.lo},createReadPrettyFormBlockSchema:function(){return Y.Uc},createRouterManager:function(){return m.w9},createSelectSchemaSettingsItem:function(){return m.NB},createStyles:function(){return be.k},createSwitchSettingsItem:function(){return m.HL},createTableBlockSchema:function(){return Y.BU},createTableBlockUISchema:function(){return xe.OO},createTextSettingsItem:function(){return m.yq},css:function(){return C.css},customFormItemInitializers:function(){return Y.Ic},customFormItemInitializers_deprecated:function(){return Y.Jn},cx:function(){return C.cx},defaultAppComponents:function(){return m.FH},defaultFieldNames:function(){return k.Oxq},defaultInputStyle:function(){return ee.ZL},defaultTheme:function(){return P.uH},editFormBlockSettings:function(){return pe.rB},fetchTemplateData:function(){return k.WLi},fieldComponentSettingsItem:function(){return d.K0},fieldSettingsFormItem:function(){return pe.dV},fillParentFields:function(){return b.Xe},filterFormItemSettings:function(){return k.$9M},findByUid:function(){return k.nCn},findFilterTargets:function(){return b.SK},findFormBlock:function(){return b.Fi},findKanbanFormItem:function(){return d.iv},findKeysByUid:function(){return k.iNG},findMenuItem:function(){return k.tD8},findParentFieldSchema:function(){return ee.PO},flush:function(){return C.flush},formActionInitializers:function(){return pe.vR},formDetailsSettings:function(){return k.pg9},formItemInitializers:function(){return pe.ex},formItemInitializers_deprecated:function(){return pe.eh},formItemSettings:function(){return k.Ofb},formSettings:function(){return k.ibf},formV1Settings:function(){return k.WyG},genStyleHook:function(){return k.l6$},getAssociationPath:function(){return b.dP},getCollectionTitle:function(){return se.A},getCurrentOptions:function(){return k.WGR},getDataSourceHeaders:function(){return d.GX},getDatePickerLabels:function(){return k.C$H},getFieldDefaultValue:function(){return ee.os},getFormValues:function(){return b.X7},getIdsWithChildren:function(){return b.Ns},getLabelFormatValue:function(){return k.cNQ},getLabelWithTooltip:function(){return ee.rB},getPageSchema:function(){return b.tj},getRegisteredStyles:function(){return C.getRegisteredStyles},getRenderContent:function(){return k.I9l},getShouldChange:function(){return ee.Vc},getStoredPopupContext:function(){return k.XQ2},getSupportFieldsByAssociation:function(){return j.x5},getSupportFieldsByForeignKey:function(){return j.zv},getURLSearchParams:function(){return ee.Uz},getURLSearchParamsChildren:function(){return ee.n9},getVariablesFromExpression:function(){return Ae.fN},gridRowColWrap:function(){return Y.BM},hasIcon:function(){return G.OL},hydrate:function(){return C.hydrate},i18n:function(){return N.a},icons:function(){return G.ci},injectGlobal:function(){return C.injectGlobal},interfacesOfUnsupportedDefaultValue:function(){return ee.TU},isAssocField:function(){return j.$f},isFileCollection:function(){return k.ZZb},isInFilterFormBlock:function(){return j.Op},isInitializersSame:function(){return m.h6},isPatternDisabled:function(){return ee.VZ},isSameCollection:function(){return j.yr},isShowFilePicker:function(){return k.elO},isSystemField:function(){return ee.Mq},isTabPage:function(){return k.CfU},isTitleField:function(){return d.Yj},isVariable:function(){return Ae.cG},itemsMerge:function(){return Y.Z_},keyframes:function(){return C.keyframes},locale:function(){return Q.Z},merge:function(){return C.merge},mergeFilter:function(){return j.EO},mockAPIClient:function(){return _e.G},navigateToTab:function(){return k.SJF},navigateWithinSelf:function(){return b.nl},normalizeContainer:function(){return m.pn},pageSettings:function(){return k._Ko},pageTabSettings:function(){return k.Mev},parseVariablesAndChangeParamsToQueryString:function(){return b._f},readPrettyFormSettings:function(){return k.i2K},recordBlockInitializers:function(){return Y.vV},recordBlockInitializers_deprecated:function(){return Y.Sq},recursiveParent:function(){return b.zA},reduceValueSize:function(){return b.ID},registerIcon:function(){return G.q5},registerIcons:function(){return G.fm},removeNullCondition:function(){return k.WmO},replaceVariableValue:function(){return b.UY},requestParentRecordData:function(){return d.H0},setDataLoadingModeSettingsItem:function(){return je.wq},setDefaultSortingRulesSchemaSettingsItem:function(){return ee.rf},setTheDataScopeSchemaSettingsItem:function(){return ee.aP},sheet:function(){return C.sheet},splitWrapSchema:function(){return k.oBi},storePopupContext:function(){return k.hKP},subTableActionInitializers:function(){return Y.U2},subTableActionInitializers_deprecated:function(){return Y.o_},systemKeys:function(){return ee.ob},tabPaneInitializers:function(){return Y.$T},tabPaneInitializersForBulkEditFormBlock:function(){return Y.zg},tabPaneInitializersForRecordBlock:function(){return Y.d4},tabPaneInitializers_deprecated:function(){return Y.xc},tableActionColumnInitializers:function(){return xe.Rp},tableActionColumnInitializers_deprecated:function(){return xe.Xe},tableActionInitializers:function(){return xe.H1},tableActionInitializers_deprecated:function(){return xe.EG},tableBlockSettings:function(){return xe.Oe},tableColumnInitializers:function(){return xe.Ug},tableColumnInitializers_deprecated:function(){return xe.T$},tableColumnSettings:function(){return xe.FY},tableSelectorBlockSettings:function(){return Se.v},transformToFilter:function(){return j.jE},transformVariableValue:function(){return Ae.J8},tval:function(){return N.v},updateFilterTargets:function(){return b.iJ},updateFormActionInitializers:function(){return pe.SW},updateFormActionInitializers_deprecated:function(){return pe.Cw},useACLActionParamsContext:function(){return T.Hq},useACLContext:function(){return T.TR},useACLFieldWhitelist:function(){return T.Aj},useACLRoleContext:function(){return T.ov},useACLRolesCheck:function(){return T.xd},useAPIClient:function(){return x.LY},useAPITokenVariable:function(){return ee.IG},useActionAvailable:function(){return je.vn},useActionBarContext:function(){return k.DU1},useActionContext:function(){return k.XCj},useAdminSchemaUid:function(){return z.W},useApp:function(){return m.qD},useAppLangContext:function(){return U.GW},useAppSpin:function(){return m.rM},useAriaAttributeOfMenuItem:function(){return m.ne},useAssociatedFields:function(){return j.Fp},useAssociatedFormItemInitializerFields:function(){return Y.hg},useAssociatedTableColumnInitializerFields:function(){return Y.V0},useAssociationCreateActionProps:function(){return b.Yo},useAssociationFieldModeContext:function(){return k.Vpg},useAssociationFilterBlockProps:function(){return b._S},useAssociationFilterProps:function(){return b.rD},useAssociationName:function(){return d.Xo},useAssociationNames:function(){return b.P_},useAsyncData:function(){return S.w3},useAttach:function(){return k.lIL},useBackButton:function(){return k.KxP},useBaseVariable:function(){return ee.zI},useBlockAssociationContext:function(){return b.DD},useBlockContext:function(){return b.VG},useBlockHeight:function(){return k.hi9},useBlockHeightProps:function(){return b.gp},useBlockRequestContext:function(){return b.BU},useBlockResource:function(){return b.lT},useBlockTemplateContext:function(){return he.rE},useBuiltinVariables:function(){return Ae.L7},useBulkDestroyActionProps:function(){return b.ns},useCloseAction:function(){return k.p27},useCollectValuesToSubmit:function(){return b.hu},useCollection:function(){return d.Kx},useCollectionDataSourceItems:function(){return Y.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 ee.IO},useCollections:function(){return d.bX},useColumnSchema:function(){return k.z9d},useCompatOldVariables:function(){return ee.b1},useCompile:function(){return k.eJW},useComponent:function(){return k.Cor},useContextVariable:function(){return Ae.Ym},useCreateActionProps:function(){return b.cD},useCreateAssociationDetailsBlock:function(){return Y.Dc},useCreateAssociationDetailsWithoutPagination:function(){return Y.yZ},useCreateAssociationFormBlock:function(){return Y.Qr},useCreateAssociationGridCardBlock:function(){return Y.yG},useCreateAssociationListBlock:function(){return Y.R_},useCreateAssociationTableBlock:function(){return Y.Rm},useCreateEditFormBlock:function(){return pe.$R},useCreateFormBlock:function(){return pe.kQ},useCreateTableBlock:function(){return xe.Ez},useCurrentAppInfo:function(){return I._S},useCurrentDocumentTitle:function(){return R.AL},useCurrentRoleVariable:function(){return ee.KR},useCurrentRoles:function(){return Te.ih},useCurrentSchema:function(){return Y.pZ},useCurrentUserContext:function(){return Te.OP},useCurrentUserSettingsMenu:function(){return Te.t$},useCurrentUserVariable:function(){return ee.AO},useCustomizeBulkUpdateActionProps:function(){return b.UQ},useCustomizeRequestActionProps:function(){return b.xx},useCustomizeUpdateActionProps:function(){return b.X0},useDataBlock:function(){return d.eS},useDataBlockHeight:function(){return k.aZq},useDataBlockParentRecord:function(){return b.M_},useDataBlockProps:function(){return d.zh},useDataBlockRequest:function(){return d.hS},useDataBlockResource:function(){return d.wb},useDataLoadingMode:function(){return je.tU},useDataSource:function(){return d.wl},useDataSourceHeaders:function(){return d.on},useDataSourceKey:function(){return d.FC},useDataSourceManager:function(){return d.fp},useDataTemplates:function(){return ee.dD},useDatePickerContext:function(){return k.P1D},useDateVariable:function(){return ee.ds},useDatetimeVariable:function(){return ee.Ld},useDesignable:function(){return k.ngQ},useDesigner:function(){return k.ett},useDestroyActionProps:function(){return b.z2},useDetailPrintActionProps:function(){return b.wr},useDetailsBlockContext:function(){return b.nT},useDetailsBlockProps:function(){return b.BX},useDetailsDecoratorProps:function(){return je.dS},useDetailsPaginationProps:function(){return b.bF},useDetailsParentRecord:function(){return je.jM},useDetailsProps:function(){return je.os},useDetailsWithPaginationBlockParams:function(){return je.ln},useDetailsWithPaginationDecoratorProps:function(){return je.ec},useDetailsWithPaginationProps:function(){return je.tm},useDisassociateActionProps:function(){return b.ii},useDocumentTitle:function(){return R.jr},useDownloadLogs:function(){return k.ySm},useEnsureOperatorsValid:function(){return k.Zd$},useExtendCollections:function(){return d.P5},useFieldComponentName:function(){return v.W},useFieldComponentOptions:function(){return k.cLh},useFieldMode:function(){return k.baz},useFieldModeOptions:function(){return k.fde},useFieldNames:function(){return k.Xdt},useFieldProps:function(){return k.Cld},useFieldTitle:function(){return k.vH8},useFilterAPI:function(){return j.hi},useFilterActionProps:function(){return k.PLH},useFilterBlock:function(){return j.kO},useFilterBlockActionProps:function(){return b.Oy},useFilterByTk:function(){return b.C},useFilterFieldOptions:function(){return k.V8t},useFilterFieldProps:function(){return k.tMk},useFilterOptions:function(){return k.xQm},useFindComponent:function(){return k.sRe},useFixedBlock:function(){return k.frb},useFixedSchema:function(){return k.$N2},useFlag:function(){return n.P5},useFormActiveFields:function(){return b.zj},useFormBlockContext:function(){return b.bz},useFormBlockProps:function(){return b._$},useFormBlockType:function(){return b.th},useFormDataTemplates:function(){return k.U1u},useFormFieldContext:function(){return b.e$},useFormFieldProps:function(){return b.GK},useFormItemInitializerFields:function(){return Y.I_},useGetAriaLabelOfAction:function(){return k.HS$},useGetAriaLabelOfDesigner:function(){return ee.zf},useGetAriaLabelOfDrawer:function(){return k.vBu},useGetAriaLabelOfModal:function(){return k.QYZ},useGetAriaLabelOfPopover:function(){return k.t9d},useGetFilterFieldOptions:function(){return k.Kgy},useGetFilterOptions:function(){return k.aJ2},useGetSchemaInitializerMenuItems:function(){return m.bw},useGlobalTheme:function(){return P.mg},useGridContext:function(){return k.n14},useGridRowContext:function(){return k.DiB},useInheritsTableColumnInitializerFields:function(){return Y.yi},useIsAddNewForm:function(){return k.l1O},useIsAllowToSetDefaultValue:function(){return ee.SF},useIsAssociationField:function(){return k.w5o},useIsDetailBlock:function(){return b.WG},useIsFieldReadPretty:function(){return k.p3Q},useIsFileField:function(){return k.G5e},useIsFormReadPretty:function(){return k.xj2},useIsSelectFieldMode:function(){return k.rxY},useLabelUiSchema:function(){return k.Ils},useLinkActionProps:function(){return b.ee},useLinkageAction:function(){return k.zCB},useLocalVariables:function(){return Ae.Kp},useLocationNoUpdate:function(){return m.fj},useLocationSearch:function(){return m.HU},useMenuSearch:function(){return Y.jA},useNavigateNoUpdate:function(){return m.WO},useOpenModeContext:function(){return Oe.B},useOptionalFieldList:function(){return b.Lh},useParamsFromRecord:function(){return b.MM},useParentCollection:function(){return d.lb},useParentRecordCommon:function(){return Le._},useParseDataScopeFilter:function(){return ee._Y},useParseURLAndParams:function(){return b.VC},useParsedFilter:function(){return b.vs},usePickActionProps:function(){return b.St},usePlugin:function(){return m.j7},usePopupSettings:function(){return k.a4r},usePopupUtils:function(){return fe.E},useProps:function(){return k.wNf},useRecord:function(){return ne.a},useRecordCollectionDataSourceItems:function(){return Y.bQ},useRecordIndex:function(){return ne.pW},useRecordIsOwn:function(){return ne.Px},useRecordPkValue:function(){return T.Jn},useRefreshActionProps:function(){return b.Xk},useRemoveActionProps:function(){return b.PJ},useRemoveGridFormItem:function(){return Y.EY},useRequest:function(){return x.QT},useRerenderDataBlock:function(){return d.Rr},useResetBlockActionProps:function(){return b.NP},useResource:function(){return x.Wf},useRoleRecheck:function(){return T.fG},useRoleVariable:function(){return ee.bs},useRolesResourcesScopesSelectedRowKeys:function(){return T.cm},useRouter:function(){return m.tv},useRouterBasename:function(){return m.hZ},useSchemaComponentContext:function(){return k.Dmu},useSchemaInitializer:function(){return m.q_},useSchemaInitializerItem:function(){return m.UR},useSchemaInitializerMenuItems:function(){return m.hL},useSchemaInitializerRender:function(){return m.IU},useSchemaInitializerStyles:function(){return m._$},useSchemaInitializerSubMenuContext:function(){return m.vH},useSchemaOptionsContext:function(){return k.Bsl},useSchemaSettings:function(){return ee.DD},useSchemaSettingsItem:function(){return m.J$},useSchemaSettingsRender:function(){return m.mQ},useSchemaTemplate:function(){return he.zy},useSchemaTemplateManager:function(){return he.$t},useSchemaToolbar:function(){return m.Po},useSchemaToolbarRender:function(){return m.du},useSourceIdFromParentRecord:function(){return b.m},useSourceIdFromRecord:function(){return b.e0},useStyles:function(){return k.yKv},useSupportedBlocks:function(){return j.Um},useSyncFromForm:function(){return ee.F1},useSystemSettings:function(){return Fe.HX},useTableBlockContext:function(){return b.Si},useTableBlockDecoratorProps:function(){return xe.cL},useTableBlockParams:function(){return xe.lo},useTableBlockProps:function(){return xe.GK},useTableColumnInitializerFields:function(){return Y.bJ},useTableFieldContext:function(){return b.Wx},useTableFieldProps:function(){return b.oA},useTableSelectorContext:function(){return b.CL},useTableSelectorProps:function(){return b.RP},useTableSize:function(){return k.fMB},useTabsContext:function(){return k.gCg},useTitleFieldOptions:function(){return k.eT6},useToken:function(){return be.d},useUIConfigurationPermissions:function(){return T.mR},useURLAndHTMLSchema:function(){return ge.R},useURLSearchParamsCtx:function(){return ee.MD},useURLSearchParamsVariable:function(){return ee.F5},useUpdateActionProps:function(){return b.HD},useUserVariable:function(){return ee.KD},useValidateSchema:function(){return k.q4O},useVariableOptions:function(){return ee.Y5},useVariableScope:function(){return k.ymE},useVariables:function(){return Ae.OQ},useViewport:function(){return z.S},withDynamicSchemaProps:function(){return ue.t},withInitializer:function(){return m.W_}});var $=e(66607),l=e.n($),V=e(79212),c=e.n(V),D=e(37412),f=e.n(D),L=e(59542),r=e.n(L),W=e(96036),p=e.n(W),A=e(96671),h=e.n(A),M=e(70178),t=e.n(M),o=e(72540),u=e.n(o),B=e(79398),y=e(81556),C=e(97133),T=e(47646),U=e(75599),x=e(12174),I=e(80347),m=e(29939),S=e(26124),b=e(88756),i=e(84257),w=e(6145),E={};for(var g in w)["default","locale","withDynamicSchemaProps","SchemaSettingsActionLinkItem","useURLAndHTMLSchema","OpenModeProvider","useOpenModeContext","PopupContextProvider","usePopupUtils","VariablePopupRecordProvider","cache","css","cx","flush","getRegisteredStyles","hydrate","injectGlobal","keyframes","merge","sheet","ACLActionParamsContext","ACLActionProvider","ACLCollectionFieldProvider","ACLCollectionProvider","ACLContext","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","CustomRouterContextProvider","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","useGetSchemaInitializerMenuItems","useLocationNoUpdate","useLocationSearch","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","getAssociationPath","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","useDetailPrintActionProps","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","useTableFieldContext","useTableFieldProps","useTableSelectorContext","useTableSelectorProps","useUpdateActionProps","ChinaRegionProvider"].indexOf(g)<0&&(E[g]=function(X){return w[X]}.bind(0,g));e.d(te,E);var v=e(7737),a=e(20085),d=e(94804),R=e(69803),j=e(18386),n=e(53285),P=e(69962),z=e(29392),N=e(58384),G=e(82369),Q=e(35310),K=e(7825),H=e(52817),q=e(17627),oe=e(53181),ne=e(36586),Z=e(71461),k=e(40868),Y=e(63076),De=e(90810),ee=e(26386),he=e(15195),be=e(39863),Fe=e(15585),_e=e(16779),Te=e(99832),Ae=e(8281),ue=e(15503),ae=e(29245),ge=e(83954),se=e(16966),pe=e(67565),xe=e(77681),Se=e(75145),je=e(56995),Le=e(92700),Oe=e(39270),ve=e(74483),fe=e(23048),ce=e(73691)},35310:function(ze,te,e){"use strict";e.d(te,{y:function(){return $}});var $={"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"};te.Z={"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"}}},29245:function(ze,te,e){"use strict";e.d(te,{f:function(){return T},s:function(){return C}});var $=e(9783),l=e.n($),V=e(97857),c=e.n(V),D=e(57134),f=e(94350),L=e(96486),r=e.n(L),W=e(67294),p=e(26793),A=e(21143),h=e(29939),M=e(91410),t=e(6145),o=e(55642),u=e(26386),B=e(83954),y=e(85893),C=function(){var x=(0,f.useField)(),I=(0,f.useFieldSchema)(),m=(0,A.useDesignable)(),S=m.dn,b=(0,p.$)(),i=b.t,w=(0,B.R)(),E=w.urlSchema,g=w.paramsSchema,v=w.openInNewWindowSchema,a=I["x-component-props"]||{},d={url:a.url,params:a.params||[{}],openInNewWindow:a.openInNewWindow};return(0,y.jsx)(u.B0,{title:i("Edit link"),components:{ArrayItems:D.ArrayItems},schema:{type:"object",title:i("Edit link"),properties:{url:c()(c()({},E),{},{required:!0}),params:g,openInNewWindow:v}},onSubmit:function(j){var n,P=j.url,z=j.params,N=j.openInNewWindow;a.url=P,a.params=z,a.openInNewWindow=N,I["x-component-props"]=a,x.componentProps.url=P,x.componentProps.params=z,x.componentProps.openInNewWindow=N,S.emit("patch",{schema:(n={},l()(n,"x-uid",I["x-uid"]),l()(n,"x-component-props",a),n)}),S.refresh()},initialValues:d})},T=new M.F({name:"actionSettings:link",items:[{name:"editButton",Component:o.C1,useComponentProps:function(){var x=(0,h.Po)(),I=x.buttonEditorProps;return I}},{name:"editLink",Component:C},{name:"linkageRules",Component:u.lc,useVisible:function(){var x=(0,A.useCollectionRecord)();return!r().isEmpty(x==null?void 0:x.data)},useComponentProps:function(){var x=(0,t.useCollection_deprecated)(),I=x.name,m=(0,h.Po)(),S=m.linkageRulesProps;return c()(c()({},S),{},{collectionName:I})}},{name:"remove",sort:100,Component:o.xZ,useComponentProps:function(){var x=(0,h.Po)(),I=x.removeButtonProps;return I}}]})},83954:function(ze,te,e){"use strict";e.d(te,{R:function(){return u}});var $=e(68400),l=e.n($),V=e(97857),c=e.n(V),D=e(97133),f=e(94350),L=e(67294),r=e(26793),W=e(7340),p=e(36586),A=e(35115),h=e(54885),M=e(85893),t,o=function(y){return function(C){var T=(0,f.useFieldSchema)(),U=(0,W.bz)(),x=U.form,I=(0,p.a)(),m=(0,h.Y)({collectionField:{uiSchema:T},form:x,record:I,uiSchema:T,noDisabled:!0});return(0,M.jsx)(y,c()(c()({},C),{},{scope:m}))}},u=function(){var y=(0,r.$)(),C=y.t,T=(0,L.useMemo)(function(){return o(A._w.TextArea)},[]),U=(0,L.useMemo)(function(){return{title:C("URL"),type:"string","x-decorator":"FormItem","x-component":T,description:C("Do not concatenate search params in the URL"),"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "html"}}'}}}}},[C,T]),x=(0,L.useMemo)(function(){return{title:'{{t("Mode")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"url",enum:[{value:"url",label:C("URL")},{value:"html",label:C("HTML")}]}},[C]),I=(0,L.useMemo)(function(){return{title:C("html"),type:"string","x-decorator":"FormItem","x-component":o(A._w.RawTextArea),"x-component-props":{rows:10},"x-reactions":{dependencies:["mode"],fulfill:{state:{hidden:'{{$deps[0] === "url"}}'}}}}},[C]),m=(0,L.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,D.css)(t||(t=l()([`
123
123
  & > .ant-space-item:first-child,
124
124
  & > .ant-space-item:last-child {
125
125
  flex-shrink: 0;
@@ -685,7 +685,7 @@ https://requirejs.org/docs/errors.html#`+ze);return l.requireType=ze,l.requireMo
685
685
  padding: 2px 7px;
686
686
  border-radius: 10px;
687
687
  }
688
- `]))))}));return(0,H.jsx)(X.BQs,{ellipsis:!0,popoverContent:wn,children:wn})};var ln=(0,l.createContext)([]);ln.displayName="VariableScopeContext";function Cn(jt){var Vt=jt.scope,Kt=Vt===void 0?[]:Vt,fn=jt.children;return(0,H.jsx)(ln.Provider,{value:Kt,children:fn})}function Qt(){return(0,l.useContext)(ln)}function Mt(){return null}Mt.Input=(0,$.connect)(_e),Mt.TextArea=(0,$.connect)(Qe,(0,$.mapReadPretty)(Qe.ReadPretty)),Mt.RawTextArea=(0,$.connect)(Se),Mt.JSON=(0,$.connect)(Le);var nn=null},88969:function(ze,te,e){"use strict";e.d(te,{m:function(){return T}});var $=e(15009),l=e.n($),V=e(19632),c=e.n(V),D=e(99289),f=e.n(D),L=e(5574),r=e.n(L),W=e(97133),p=e(38089),A=e(67294),h=e(26793),M=e(60094),t=e(9783),o=e.n(t),u=(0,M.l6)("nb-variable-select",function(U){var x=U.componentCls;return o()({},x,{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}}})}),B=u,y=e(2876),C=e(85893);function T(U){var x=U.options,I=U.setOptions,m=U.onInsert,S=U.changeOnSelect,b=S===void 0?!1:S,i=U.fieldNames,w=i===void 0?{}:i,E=U.className,g=(0,h.$)(),v=g.t,a=(0,A.useState)([]),d=r()(a,2),R=d[0],j=d[1],n=B(),P=n.wrapSSR,z=n.componentCls,N=n.hashId,G=(0,M.dQ)(),Q=G.token;function K(q){return H.apply(this,arguments)}function H(){return H=f()(l()().mark(function q(oe){var ne,Z;return l()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Z=oe[oe.length-1],!(!((ne=Z.children)!==null&&ne!==void 0&&ne.length)&&!Z.isLeaf&&Z.loadChildren)){Y.next=5;break}return Y.next=4,Z.loadChildren(Z);case 4:I(function(De){return c()(De)});case 5:case"end":return Y.stop()}},q)})),H.apply(this,arguments)}return P((0,C.jsx)(y.R,{className:(0,W.cx)("x-button",z,N,E),children:(0,C.jsx)(p.Z,{placeholder:v("Select a variable"),value:[],options:x,fieldNames:w,loadData:K,onChange:function(){var oe,ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(j(ne),!!ne.length){var k=Z[Z.length-1];(!(k!=null&&(oe=k.children)!==null&&oe!==void 0&&oe.length)&&!(k!=null&&k.loadChildren)||k!=null&&k.isLeaf)&&m(ne)}},changeOnSelect:b,onClick:function(oe){if(!(oe.detail!==2||!b))for(var ne=oe.target;ne&&ne!==oe.currentTarget;ne=ne.parentNode){var Z;Array.from((Z=ne.classList)!==null&&Z!==void 0?Z:[]).includes("ant-cascader-menu-item")&&m(R)}},popupClassName:"Cascader-popupClassName",dropdownRender:b?function(q){return(0,C.jsxs)(C.Fragment,{children:[q,(0,C.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(Q.colorBorder),color:Q.colorTextDescription},children:v("Double click to choose entire object")})]})}:null})}))}},2876:function(ze,te,e){"use strict";e.d(te,{R:function(){return f}});var $=e(97857),l=e.n($),V=e(15867),c=e(67294),D=e(85893),f=(0,c.forwardRef)(function(L,r){var W=(0,c.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,D.jsxs)(V.ZP,l()(l()({"aria-label":"variable-button",ref:r,style:W},L),{},{children:["x",L.children]}))});f.displayName="XButton"},72724:function(ze,te,e){"use strict";e.d(te,{L:function(){return M}});var $=e(97857),l=e.n($),V=e(5574),c=e.n(V),D=e(94697),f=e(94350),L=e(67294),r=e(26793),W=e(21143),p=e(84577),A=e(85893),h=function(o){var u=(0,p.ng)(),B=u.refresh,y=(0,W.useAPIClient)(),C=(0,r.$)(),T=C.t;return(0,L.useCallback)(function(U){var x,I,m,S,b,i,w,E,g=U.active,v=U.over,a=g==null||(x=g.data)===null||x===void 0||(x=x.current)===null||x===void 0?void 0:x.schema,d=v==null||(I=v.data)===null||I===void 0||(I=I.current)===null||I===void 0?void 0:I.schema,R=v==null||(m=v.data)===null||m===void 0||(m=m.current)===null||m===void 0?void 0:m.insertAdjacent,j=v==null||(S=v.data)===null||S===void 0||(S=S.current)===null||S===void 0?void 0:S.breakRemoveOn,n=v==null||(b=v.data)===null||b===void 0||(b=b.current)===null||b===void 0?void 0:b.wrapSchema,P=v==null||(i=v.data)===null||i===void 0||(i=i.current)===null||i===void 0?void 0:i.onSuccess,z=(w=v==null||(E=v.data)===null||E===void 0||(E=E.current)===null||E===void 0?void 0:E.removeParentsIfNoChildren)!==null&&w!==void 0?w:!0;if(!a||!d){o==null||o(U);return}if(a===d){o==null||o(U);return}if(a.parent===d&&R==="beforeEnd"){o==null||o(U);return}var N=(0,p.Pl)({t:T,api:y,refresh:B,current:d});if(N.loadAPIClientEvents(),a.parent===d.parent){N.insertBeforeBeginOrAfterEnd(a),o==null||o(U);return}if(R){N.insertAdjacent(R,a,{wrap:n,breakRemoveOn:j,removeParentsIfNoChildren:z,onSuccess:P}),o==null||o(U);return}},[o])},M=(0,f.observer)(function(t){var o=(0,r.$)(),u=o.t,B=(0,L.useState)(!0),y=c()(B,2),C=y[0],T=y[1],U=(0,L.useCallback)(function(I){var m,S=I.active,b=S==null||(m=S.data)===null||m===void 0||(m=m.current)===null||m===void 0?void 0:m.schema;if(T(!!b),t!=null&&t.onDragStart){var i;t==null||(i=t.onDragStart)===null||i===void 0||i.call(t,I)}},[t==null?void 0:t.onDragStart]),x=h(t==null?void 0:t.onDragEnd);return(0,A.jsxs)(D.DndContext,l()(l()({collisionDetection:D.rectIntersection},t),{},{onDragStart:U,onDragEnd:x,children:[(0,A.jsx)(D.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:C&&(0,A.jsx)("span",{style:{whiteSpace:"nowrap"},children:u("Dragging")})}),t.children]}))},{displayName:"DndContext"})},14896:function(ze,te,e){"use strict";e.r(te),e.d(te,{DndContext:function(){return $.L},DragHandler:function(){return l.IW},DraggableContext:function(){return l.LC},ShowFormData:function(){return f},Sortable:function(){return l.bt},SortableContext:function(){return l.Fo},SortableItem:function(){return l.TR},SortableProvider:function(){return l.OR},getRenderContent:function(){return L.I9}});var $=e(72724),l=e(20493),V=e(67294),c=e(94350),D=e(85893),f=(0,c.observer)(function(r){var W=r.children,p=(0,c.useForm)();return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(p.values,null,2)}),W]})}),L=e(34588)},20493:function(ze,te,e){"use strict";e.d(te,{IW:function(){return U},LC:function(){return t},bt:function(){return B},Fo:function(){return o},TR:function(){return T},OR:function(){return u}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(10274),f=e(94697),L=e(97133),r=e(94350),W=e(67294),p=e(60094),A=e(85893),h=["component","overStyle","style","children","openMode"],M=["schema","id","eid","removeParentsIfNoChildren"],t=(0,W.createContext)(null);t.displayName="DraggableContext";var o=(0,W.createContext)(null);o.displayName="SortableContext";var u=function(I){var m=I.id,S=I.data,b=I.children,i=(0,f.useDraggable)({id:m,data:S}),w=(0,f.useDroppable)({id:m,data:S});return(0,A.jsx)(o.Provider,{value:{draggable:i,droppable:w},children:b})},B=function(I){var m,S,b=I.component,i=I.overStyle,w=I.style,E=I.children,g=I.openMode,v=c()(I,h),a=(0,p.dQ)(),d=a.token,R=(0,W.useContext)(o),j=R.draggable,n=R.droppable,P=n.isOver,z=n.setNodeRef,N=l()({},w);return P&&(j==null||(m=j.active)===null||m===void 0?void 0:m.id)!==(n==null||(S=n.over)===null||S===void 0?void 0:S.id)&&(N[b==="a"?"color":"background"]=new D.C(d.colorSettings).setAlpha(.15).toHex8String(),Object.assign(N,i)),W.createElement(b||"div",l()(l()({role:"none"},v),{},{className:(0,L.cx)("nb-sortable-designer",I.className),ref:z,style:N}),E)},y=function(I){var m=C(I),S=(0,r.useFieldSchema)();return I.schema?l()(l()({},I),{},{id:m}):l()(l()({},I),{},{id:m,schema:S})},C=function(I){var m=(0,r.useField)();return I.id?I.id:m.address.toString()},T=(0,r.observer)(function(x){var I=y(x),m=I.schema,S=I.id,b=I.eid,i=I.removeParentsIfNoChildren,w=c()(I,M),E=(0,W.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:m,removeParentsIfNoChildren:i!=null?i:!0}},[m,i]);return(0,A.jsx)(u,{id:S,data:E,children:(0,A.jsx)(B,l()(l()({id:b},w),{},{children:x.children}))})},{displayName:"SortableItem"}),U=function(I){var m=(0,W.useContext)(o),S=m.draggable,b=S.attributes,i=S.listeners,w=S.setNodeRef;return(0,A.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,A.jsx)("div",l()(l()(l()({ref:w,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},i),b),{},{role:"none",children:(0,A.jsx)("span",{style:{cursor:"move",fontSize:14},children:I.children})}))})}},34588:function(ze,te,e){"use strict";e.d(te,{jC:function(){return i},od:function(){return m},I9:function(){return g},Rq:function(){return S},e7:function(){return I}});var $=e(97857),l=e.n($),V=e(15009),c=e.n(V),D=e(9783),f=e.n(D),L=e(5574),r=e.n(L),W=e(99289),p=e.n(W),A=e(52677),h=e.n(A),M=e(96750),t=e.n(M),o=e(96486),u=e.n(o),B=e(10097),y=e(76690),C=e(65565),T=e(27484),U=e.n(T);function x(){"use strict";Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"});function a(n){for(var P=[],z=0,N=n.length;z<N;z++)P.indexOf(n[z])===-1&&P.push(n[z]);return P}function d(n,P){return JSON.stringify(n)===JSON.stringify(P)}var R={},j={$is:function(P,z){return P===z},$match:function(P,z){return Array.isArray(P)&&Array.isArray(z)&&P.some(function(N){return Array.isArray(N)})?P.some(function(N){return(N==null?void 0:N.length)===z.length&&(N==null?void 0:N.every(function(G,Q){return G===z[Q]}))}):JSON.stringify(P)===JSON.stringify(z)},$eq:function(P,z){return Array.isArray(P)&&Array.isArray(z)?d(P,z):Array.isArray(P)?P.includes(z):P===z},$ne:function(P,z){return P!=z},"!==":function(P,z){return P!==z},$gt:function(P,z){return Array.isArray(P)?P.some(function(N){return N>z}):P>z},$gte:function(P,z){return P>=z},$lt:function(P,z,N){return Array.isArray(P)?P.some(function(G){return G<z}):N===void 0?P<z:P<z&&z<N},$lte:function(P,z,N){return N===void 0?P<=z:P<=z&&z<=N},$exists:function(P){return R.truthy(P)},$notEmpty:function(P){return R.truthy(P)},$empty:function(P){return Array.isArray(P)?P.some(function(z){return!R.truthy(z)}):!R.truthy(P)},$notExists:function(P){return!R.truthy(P)},"%":function(P,z){return P%z},log:function(P){return console.log(P),P},$in:function(P,z){return!z||typeof z.indexOf=="undefined"?!1:Array.isArray(P)&&Array.isArray(z)?z.some(function(N){return P.includes(N)}):z.indexOf(P)!==-1},$notIn:function(P,z){return!z||typeof z.indexOf=="undefined"?!1:z.indexOf(P)===-1},$includes:function(P,z){return!P||typeof P.indexOf=="undefined"?!1:Array.isArray(P)?P.some(function(N){return N==null?void 0:N.includes(z)}):P.indexOf(z)!==-1},$notIncludes:function(P,z){return Array.isArray(P)?!P.some(function(N){return(N||"").includes(z)}):(P=P||"",!P.includes(z))},$anyOf:function(P,z){return P.length===0?!1:Array.isArray(P)&&Array.isArray(z)&&P.some(function(N){return Array.isArray(N)})?P.some(function(N){return N.some(function(G){return z.includes(G)})}):P.some(function(N){return z.includes(N)})},$noneOf:function(P,z){return!P||(P==null?void 0:P.length)===0?!0:Array.isArray(P)&&Array.isArray(z)&&P.some(function(N){return Array.isArray(N)})?P.some(function(N){return N.every(function(G){return!z.some(function(Q){return G.includes(Q)})})}):z.some(function(N){return!P.includes(N)})},$notMatch:function(P,z){if(P.length!==z.length)return!0;for(var N=0;N<P.length;N++)if(P[N]!==z[N])return!0;return!1},$dateOn:function(P,z){return!P||!z?!1:(Array.isArray(P)||(P=[P,P]),Array.isArray(z)||(z=[z,z]),P=P.map(function(N){return U()(N)}),z=z.map(function(N){return U()(N)}),P[0].isBetween(z[0],z[1],null,"[]")&&P[1].isBetween(z[0],z[1],null,"[]"))},$dateBefore:function(P,z){return!P||!z?!1:(Array.isArray(P)||(P=[P,P]),Array.isArray(z)||(z=[z,z]),P=P.map(function(N){return U()(N)}),z=z.map(function(N){return U()(N)}),P[0].isBefore(z[0])&&P[1].isBefore(z[0]))},$dateNotBefore:function(P,z){return!j.$dateBefore(P,z)},$dateAfter:function(P,z){return!P||!z?!1:(Array.isArray(P)||(P=[P,P]),Array.isArray(z)||(z=[z,z]),P=P.map(function(N){return U()(N)}),z=z.map(function(N){return U()(N)}),P[0].isAfter(z[1])&&P[1].isAfter(z[1]))},$dateNotAfter:function(P,z){return!j.$dateAfter(P,z)},$dateBetween:function(P,z){return j.$dateOn(P,z)},$dateNotOn:function(P,z){return!j.$dateOn(P,z)},$isTruly:function(P){return Array.isArray(P)?P.some(function(z){return z===!0||z===1}):P===!0||P===1},$isFalsy:function(P){return Array.isArray(P)?P.some(function(z){return!R.truthy(z)}):!R.truthy(P)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(P,z,N){if(N<0){var G=String(P).substr(z);return G.substr(0,G.length+N)}return String(P).substr(z,N)},"+":function(){return Array.prototype.reduce.call(arguments,function(P,z){return parseFloat(P,10)+parseFloat(z,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(P,z){return parseFloat(P,10)*parseFloat(z,10)})},"-":function(P,z){return z===void 0?-P:P-z},"/":function(P,z){return P/z},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(P,z){return P.concat(z)},[])},var:function(P,z){var N=z===void 0?null:z,G=this;if(typeof P=="undefined"||P===""||P===null)return G;for(var Q=String(P).split("."),K=0;K<Q.length;K++)if(G==null||(G=G[Q[K]],G===void 0))return N;return G},missing:function(){for(var P=[],z=Array.isArray(arguments[0])?arguments[0]:arguments,N=0;N<z.length;N++){var G=z[N],Q=R.apply({var:G},this);(Q===null||Q==="")&&P.push(G)}return P},missing_some:function(P,z){var N=R.apply({missing:z},this);return z.length-N.length>=P?[]:N}};return R.is_logic=function(n){return h()(n)==="object"&&n!==null&&!Array.isArray(n)&&Object.keys(n).length===1},R.truthy=function(n){return Array.isArray(n)&&n.length===0?!1:!!n},R.get_operator=function(n){return Object.keys(n)[0]},R.get_values=function(n){return n[R.get_operator(n)]},R.apply=function(n,P){if(Array.isArray(n))return n.map(function(Z){return R.apply(Z,P)});if(!R.is_logic(n))return n;var z=R.get_operator(n),N=n[z],G,Q,K,H,q;if(Array.isArray(N)||(N=[N]),z==="if"||z=="?:"){for(G=0;G<N.length-1;G+=2)if(R.truthy(R.apply(N[G],P)))return R.apply(N[G+1],P);return N.length===G+1?R.apply(N[G],P):null}else if(z==="$and"){for(G=0;G<N.length;G+=1)if(Q=R.apply(N[G],P),!R.truthy(Q))return Q;return Q}else if(z==="or"){for(G=0;G<N.length;G+=1)if(Q=R.apply(N[G],P),R.truthy(Q))return Q;return Q}else{if(z==="filter")return H=R.apply(N[0],P),K=N[1],Array.isArray(H)?H.filter(function(Z){return R.truthy(R.apply(K,Z))}):[];if(z==="map")return H=R.apply(N[0],P),K=N[1],Array.isArray(H)?H.map(function(Z){return R.apply(K,Z)}):[];if(z==="reduce")return H=R.apply(N[0],P),K=N[1],q=typeof N[2]!="undefined"?N[2]:null,Array.isArray(H)?H.reduce(function(Z,k){return R.apply(K,{current:k,accumulator:Z})},q):q;if(z==="all"){if(H=R.apply(N[0],P),K=N[1],!Array.isArray(H)||!H.length)return!1;for(G=0;G<H.length;G+=1)if(!R.truthy(R.apply(K,H[G])))return!1;return!0}else if(z==="none"){if(H=R.apply(N[0],P),K=N[1],!Array.isArray(H)||!H.length)return!0;for(G=0;G<H.length;G+=1)if(R.truthy(R.apply(K,H[G])))return!1;return!0}else if(z==="some"){if(H=R.apply(N[0],P),K=N[1],!Array.isArray(H)||!H.length)return!1;for(G=0;G<H.length;G+=1)if(R.truthy(R.apply(K,H[G])))return!0;return!1}}if(N=N.map(function(Z){return R.apply(Z,P)}),j.hasOwnProperty(z)&&typeof j[z]=="function")return j[z].apply(P,N);if(z.indexOf(".")>0){var oe=String(z).split("."),ne=j;for(G=0;G<oe.length;G++){if(!ne.hasOwnProperty(oe[G]))throw new Error("Unrecognized operation "+z+" (failed at "+oe.slice(0,G+1).join(".")+")");ne=ne[oe[G]]}return ne.apply(P,N)}throw new Error("Unrecognized operation "+z)},R.uses_data=function(n){var P=[];if(R.is_logic(n)){var z=R.get_operator(n),N=n[z];Array.isArray(N)||(N=[N]),z==="var"?P.push(N[0]):N.forEach(function(G){P.push.apply(P,R.uses_data(G))})}return a(P)},R.add_operation=function(n,P){j[n]=P},R.rm_operation=function(n){delete j[n]},R.rule_like=function(n,P){if(P===n||P==="@")return!0;if(P==="number")return typeof n=="number";if(P==="string")return typeof n=="string";if(P==="array")return Array.isArray(n)&&!R.is_logic(n);if(R.is_logic(P)){if(R.is_logic(n)){var z=R.get_operator(P),N=R.get_operator(n);if(z==="@"||z===N)return R.rule_like(R.get_values(n,!1),R.get_values(P,!1))}return!1}if(Array.isArray(P))if(Array.isArray(n)){if(P.length!==n.length)return!1;for(var G=0;G<P.length;G+=1)if(!R.rule_like(n[G],P[G]))return!1;return!0}else return!1;return!1},R}var I=function(d,R){var j,n=/{{(.*?)}}/,P=d==null||(j=d.match)===null||j===void 0?void 0:j.call(d,n);if(P){var z=u().get(R,P[1]);return u().isFunction(z)?z():z}else return d};function m(a){if(h()(a)!=="object"||a===null)return null;for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d))return Object.prototype.toString.call(a[d])==="[object Object]"&&a[d]!==null?m(a[d]):{key:d,value:a[d]};return null}var S=function(d){var R=b(d),j=(0,o.findIndex)(R,function(P,z,N){if(P.includes("$")&&z>0)return!0}),n=R.slice(0,j);return n};function b(a){var d=[];function R(j){Object.keys(j).sort().forEach(function(n){d.push(n),j[n]&&h()(j[n])==="object"&&R(j[n])})}return R(a),d}var i=function(){var a=p()(c()().mark(function d(R){var j,n,P,z,N,G,Q;return c()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return j=R.ruleGroup,n=R.variables,P=R.localVariables,z=R.variableNameOfLeftCondition,N=Object.keys(j)[0]||"$and",G=j[N],Q=G.map(function(){var q=p()(c()().mark(function oe(ne){var Z,k,Y,De,ee,he,be,Fe,_e,Te,Ae;return c()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!("$and"in ne||"$or"in ne)){ae.next=4;break}return ae.next=3,i({ruleGroup:ne,variables:n,localVariables:P});case 3:return ae.abrupt("return",ae.sent);case 4:if(Z=m(ne),k=Z==null?void 0:Z.key,k){ae.next=8;break}return ae.abrupt("return",!0);case 8:return Y=w(S(ne),z),De=n.parseVariable(Y,P,{doNotRequest:!0}).then(function(ge){var se=ge.value;return se}),ee=(0,y.cG)(Z==null?void 0:Z.value)?[n.parseVariable(Z==null?void 0:Z.value,P).then(function(ge){var se=ge.value;return se}),De]:[Z==null?void 0:Z.value,De],ae.prev=11,he=x(),ae.next=15,Promise.all(ee);case 15:return be=ae.sent,Fe=r()(be,2),_e=Fe[0],Te=Fe[1],ae.next=21,n.getCollectionField(Y,P);case 21:return Ae=ae.sent,ae.abrupt("return",he.apply(f()({},k,[(0,C.J)(Te,{targetCollectionField:Ae}),(0,C.J)(_e,{targetCollectionField:Ae})])));case 25:throw ae.prev=25,ae.t0=ae.catch(11),ae.t0;case 28:case"end":return ae.stop()}},oe,null,[[11,25]])}));return function(oe){return q.apply(this,arguments)}}()),H.next=6,Promise.all(Q);case 6:if(Q=H.sent,N!=="$and"){H.next=11;break}return H.abrupt("return",(0,o.every)(Q,function(q){return q}));case 11:return H.abrupt("return",(0,o.some)(Q,function(q){return q}));case 12:case"end":return H.stop()}},d)}));return function(R){return a.apply(this,arguments)}}();function w(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(d,".").concat(a.join(".")," }}")}var E=function(d){var R={};return d.map(function(j){R[j.name]=j.ctx}),R};function g(a,d,R,j,n){return v.apply(this,arguments)}function v(){return v=p()(c()().mark(function a(d,R,j,n,P){var z,N,G,Q,K,H;return c()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(!(R&&d==="handlebars")){oe.next=19;break}return oe.prev=1,z=t().compile(R),N=E(n),G=j.ctxRef.current.$nDate,Q={},Object.keys(G).map(function(ne){Q[ne]=G[ne]()}),K=z(l()(l()(l()({},j.ctxRef.current),N),{},{$nDate:Q})),oe.next=10,P(K);case 10:return oe.abrupt("return",oe.sent);case 13:return oe.prev=13,oe.t0=oe.catch(1),console.log(oe.t0),oe.abrupt("return",R);case 17:oe.next=31;break;case 19:return oe.prev=19,oe.next=22,(0,B.replaceVariableValue)(R,j,n);case 22:return H=oe.sent,oe.next=25,P(H);case 25:return oe.abrupt("return",oe.sent);case 28:return oe.prev=28,oe.t1=oe.catch(19),oe.abrupt("return",R);case 31:case"end":return oe.stop()}},a,null,[[1,13],[19,28]])})),v.apply(this,arguments)}},61736:function(ze,te,e){"use strict";e.d(te,{D:function(){return l}});var $=e(67294),l=(0,$.createContext)({});l.displayName="SchemaComponentContext.Provider"},44245:function(ze,te,e){"use strict";e.d(te,{R:function(){return t}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(86201),f=e(94350),L=e(67294),r=e(47844),W=e(85893),p=["children","form"],A=["children"],h=function(u){var B=u.children,y=u.form,C=c()(u,p),T=(0,L.useContext)(f.SchemaOptionsContext),U=(0,L.useContext)(f.SchemaExpressionScopeContext),x=l()(l()({},T==null?void 0:T.scope),U),I=l()({},T==null?void 0:T.components);return(0,W.jsx)(f.FormProvider,l()(l()({},C),{},{form:y,children:(0,W.jsx)(r.G,{components:I,scope:x,children:B})}))},M=function(u){var B=u.children,y=c()(u,A),C=(0,L.useContext)(f.SchemaOptionsContext),T=(0,L.useContext)(f.SchemaExpressionScopeContext),U=l()(l()({},C==null?void 0:C.scope),T),x=l()({},C==null?void 0:C.components),I=(0,L.useMemo)(function(){return(0,D.createForm)()},[]);return(0,W.jsx)(f.FormProvider,l()(l()({},y),{},{form:I,children:(0,W.jsx)(r.G,{components:x,scope:U,children:B})}))},t=function(u){return u.form?(0,W.jsx)(h,l()({},u)):(0,W.jsx)(M,l()({},u))}},93587:function(ze,te,e){"use strict";e.d(te,{m:function(){return t}});var $=e(97857),l=e.n($),V=e(86201),c=e(57953),D=e(67294),f=e(84577),L=e(44245),r=e(93323),W=e(12174),p=function(u){var B=u.uid,y=u.type,C=y===void 0?"getJsonSchema":y,T=u.onSuccess,U={url:"/uiSchemas:".concat(C,"/").concat(B)},x=(0,W.QT)(U,{refreshDeps:[B],onSuccess:function(b){T&&T(b)}}),I=x.data,m=x.loading;return{schema:I==null?void 0:I.data,loading:m}},A=e(85893),h=function(u){return u},M=function(u){var B=u.noForm,y=u.onlyRenderProperties,C=u.hidden,T=u.scope,U=u.uid,x=u.memoized,I=x===void 0?!0:x,m=u.components,S=u.onSuccess,b=u.NotFoundPage,i=u.schemaTransform,w=i===void 0?h:i,E=u.onPageNotFind,g=(0,f.Dm)(),v=g.reset,a=y?"getProperties":"getJsonSchema",d={url:"/uiSchemas:".concat(a,"/").concat(U)},R=(0,D.useMemo)(function(){return(0,V.createForm)()},[U]),j=p({uid:U,type:a,onSuccess:function(G){S&&S(G),v&&v()}}),n=j.schema,P=j.loading,z=(0,f.Co)(b);return P||C?(0,A.jsx)("div",{style:{textAlign:"center",marginTop:20},children:(0,A.jsx)(c.Z,{})}):!n||Object.keys(n).length===0?(E&&E(),z?(0,A.jsx)(z,{}):null):B?(0,A.jsx)(r.n,{components:m,scope:T,schema:w(n||{})}):(0,A.jsx)(L.R,{form:R,children:(0,A.jsx)(r.n,{components:m,scope:T,schema:w(n||{})})})},t=(0,D.memo)(function(o){return o.uid?(0,A.jsx)(M,l()({},o)):null});t.displayName="RemoteSchemaComponent"},93323:function(ze,te,e){"use strict";e.d(te,{n:function(){return T}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(9783),f=e.n(D),L=e(94350),r=e(90105),W=e(67294),p=e(61736),A=e(47844),h=e(85893),M=["components","scope","schema","distributed"],t=["schema"],o=["memoized"];function u(U){return L.Schema.isSchemaInstance(U)?U:U!=null&&U.name?new L.Schema({type:"object",properties:f()({},U.name,U)}):new L.Schema(U)}var B=function(x){return(0,W.useMemo)(function(){return u(x)},[])},y=(0,W.memo)(function(U){var x=U.components,I=U.scope,m=U.schema,S=U.distributed,b=c()(U,M),i=(0,W.useContext)(p.D),w=(0,W.useMemo)(function(){return u(m)},[m]),E=(0,r.Z)();return(0,h.jsx)(p.D.Provider,{value:l()(l()({},i),{},{distributed:i.distributed==!1?!1:S,refresh:function(){var v;if(E(),i.distributed===!1||S===!1){var a;(a=i.refresh)===null||a===void 0||a.call(i)}(v=U.onChange)===null||v===void 0||v.call(U,w)}}),children:(0,h.jsx)(A.G,{inherit:!0,components:x,scope:I,children:(0,h.jsx)(L.RecursionField,l()(l()({},b),{},{schema:w}))})})}),C=(0,W.memo)(function(U){var x=U.schema,I=c()(U,t),m=B(x);return(0,h.jsx)(y,l()(l()({},I),{},{schema:m}))}),T=(0,W.memo)(function(U){var x=U.memoized,I=c()(U,o);return x?(0,h.jsx)(C,l()({},I)):(0,h.jsx)(y,l()({},I))})},47844:function(ze,te,e){"use strict";e.d(te,{B:function(){return f},G:function(){return L}});var $=e(97857),l=e.n($),V=e(94350),c=e(67294),D=e(85893),f=function(){var W=(0,c.useContext)(V.SchemaOptionsContext);return W||{}},L=(0,c.memo)(function(r){var W=r.children,p=f(),A=(0,c.useMemo)(function(){return l()(l()({},p.components),r.components)},[p.components,r.components]),h=(0,c.useMemo)(function(){return l()(l()({},p.scope),r.scope)},[p.scope,r.scope]),M=(0,c.useMemo)(function(){return{scope:h,components:A}},[h,A]);return(0,D.jsx)(V.SchemaOptionsContext.Provider,{value:M,children:(0,D.jsx)(V.SchemaComponentsContext.Provider,{value:A,children:(0,D.jsx)(V.ExpressionScope,{value:h,children:W})})})});L.displayName="SchemaComponentOptions"},70993:function(ze,te,e){"use strict";e.d(te,{_b:function(){return x},RV:function(){return I.R},m1:function(){return m.m},n6:function(){return S.n},G0:function(){return b.G},a$:function(){return Q},Tz:function(){return N},Bs:function(){return b.B}});var $=e(15009),l=e.n($),V=e(99289),c=e.n(V),D=e(12444),f=e.n(D),L=e(72004),r=e.n(L),W=e(31996),p=e.n(W),A=e(26037),h=e.n(A),M=e(51947),t=e(83062),o=e(15867),u=e(67294),B=e(49218),y=e(26793),C=e(40868),T=e(68230),U=e(85893),x=function(){var q=(0,C.ngQ)(),oe=q.designable,ne=q.setDesignable,Z=(0,y.$)(),k=Z.t,Y=(0,T.d)(),De=Y.token,ee={};return oe?ee.backgroundColor="var(--colorSettings)":ee.backgroundColor="transparent",(0,B.y1)("Ctrl+Shift+U",function(){return ne(!oe)},[oe]),(0,U.jsx)(t.Z,{title:k("UI Editor"),children:(0,U.jsx)(o.ZP,{"data-testid":"ui-editor-button",icon:(0,U.jsx)(M.Z,{style:{color:De.colorTextHeaderMenu}}),title:k("UI Editor"),style:ee,onClick:function(){ne(!oe)}})})},I=e(44245),m=e(93587),S=e(93323),b=e(47844),i=e(97857),w=e.n(i),E=e(5574),g=e.n(E),v=e(86201),a=e(94350),d=e(73773),R=e(90105),j=e(61736),n=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(q).concat((0,d.uid)())};a.Schema.silent(!0);var P={},z={silent:!0,compile:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=function(){if(z.silent)try{return new Function("$root","with($root) { return (".concat(q,"); }"))(oe)}catch(k){return"{{".concat(q,"}}")}else return new Function("$root","with($root) { return (".concat(q,"); }"))(oe)};return P[q]?P[q]:q.trim().startsWith("t(")?(P[q]=ne(),P[q]):ne()}};a.Schema.registerCompiler(z.compile);var N=function(q){var oe=q.designable,ne=q.onDesignableChange,Z=q.components,k=q.children,Y=(0,u.useContext)(j.D),De=(0,b.B)(),ee=(0,R.Z)(),he=(0,u.useState)((0,d.uid)()),be=g()(he,2),Fe=be[0],_e=be[1],Te=(0,u.useMemo)(function(){return q.form||(0,v.createForm)()},[Fe]),Ae=(0,y.$)(),ue=Ae.t,ae=(0,u.useMemo)(function(){return w()(w()({},q.scope),{},{t:ue,randomString:n})},[q.scope,ue,De==null?void 0:De.scope]),ge=(0,u.useState)(oe),se=g()(ge,2),pe=se[0],xe=se[1],Se=(0,u.useMemo)(function(){return typeof oe=="boolean"?oe:pe},[oe,pe,Y.designable]),je=(0,u.useMemo)(function(){return function(Oe){typeof Se!="boolean"&&xe(Oe),ne==null||ne(Oe)}},[Se,ne]),Le=(0,u.useCallback)(function(){_e((0,d.uid)())},[]);return(0,U.jsx)(j.D.Provider,{value:{scope:ae,components:Z,reset:Le,refresh:ee,designable:Se,setDesignable:je},children:(0,U.jsx)(a.FormProvider,{form:Te,children:(0,U.jsx)(b.G,{inherit:!0,scope:ae,components:Z,children:k})})})};N.displayName="SchemaComponentProvider";var G=e(31601),Q=function(H){p()(oe,H);var q=h()(oe);function oe(){return f()(this,oe),q.apply(this,arguments)}return r()(oe,[{key:"load",value:function(){var ne=c()(l()().mark(function k(){return l()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:this.addComponents();case 1:case"end":return De.stop()}},k,this)}));function Z(){return ne.apply(this,arguments)}return Z}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:x})}}]),oe}(G.S),K=null},84577:function(ze,te,e){"use strict";e.d(te,{zz:function(){return L.zz},Pl:function(){return L.Pl},oB:function(){return L.oB},lI:function(){return l},hi:function(){return C.hi},eJ:function(){return V.e},Co:function(){return f},aZ:function(){return C.aZ},ng:function(){return L.ng},et:function(){return r.e},cL:function(){return u},fd:function(){return T},Cl:function(){return A},vH:function(){return B},sR:function(){return L.sR},wN:function(){return y.w},Dm:function(){return M},fM:function(){return C.fM}});var $=e(67294),l=function(x){var I=(0,$.useRef)(null);return(0,$.useEffect)(function(){return I.current&&x!==I.current&&I.current.onUnmount(),I.current=x,x.onMount(),function(){x.onUnmount()}},[x]),x},V=e(96365),c=e(94350),D=e(96486),f=function(x,I){var m=(0,$.useContext)(c.SchemaOptionsContext),S=m.components;return x?typeof x!="string"?x:(0,D.get)(S,x)||I:I},L=e(94516),r=e(98146),W=e(97857),p=e.n(W),A=function(x){var I=(0,$.useContext)(c.SchemaOptionsContext),m=(0,$.useContext)(c.SchemaExpressionScopeContext),S=(0,$.useRef)();return S.current=m,x.toFieldProps(p()(p()({},I),{},{get scope(){return p()(p()({},I.scope),S.current)}}))},h=e(61736);function M(){return(0,$.useContext)(h.D)}var t=e(26793),o=e(6145),u=function(){var x,I=(0,o.useCollectionManager_deprecated)(),m=I.getCollectionJoinField,S=I.getCollection,b=(0,c.useFieldSchema)(),i=(0,o.useCollection_deprecated)(),w=i.getField,E=w(b.name)||m(b["x-collection-field"]),g=(0,t.$)(),v=g.t,a=((x=b["x-component-props"])===null||x===void 0?void 0:x.fieldNames)||{},d=a.label,R=(0,$.useMemo)(function(){if(!(!E||!(E!=null&&E.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(E.interface)){var j=S(E.target);if((j==null?void 0:j.template)==="file")return[{label:v("Record picker"),value:"CollectionField"},{label:v("Select"),value:"AssociationSelect"}];switch(E.interface){case"o2m":return[{label:v("Record picker"),value:"CollectionField"},{label:v("Subtable"),value:"TableField"},{label:v("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:v("Record picker"),value:"CollectionField"},{label:v("Select"),value:"AssociationSelect"}];default:return[{label:v("Record picker"),value:"CollectionField"},{label:v("Subform"),value:"FormField"},{label:v("Select"),value:"AssociationSelect"}]}}},[v,E==null?void 0:E.interface,d]);return R},B=function(){var x,I=(0,c.useField)(),m=(0,c.useFieldSchema)(),S=(0,o.useCollection_deprecated)(),b=S.getField,i=(0,o.useCollectionManager_deprecated)(),w=i.getCollectionJoinField,E=b(m.name)||w(m["x-collection-field"]),g=(0,V.e)();(0,$.useEffect)(function(){if(!(I!=null&&I.title)){var v;I.title=g(E==null||(v=E.uiSchema)===null||v===void 0?void 0:v.title)}},[E==null||(x=E.uiSchema)===null||x===void 0?void 0:x.title])},y=e(9780),C=e(18686),T=function(x){var I,m=(0,t.$)(),S=m.t,b=(0,o.useCollectionManager_deprecated)(),i=b.getCollectionJoinField,w=b.getCollection,E=(0,c.useFieldSchema)(),g=(x==null?void 0:x.fieldSchema)||E,v=(0,c.useField)(),a=(0,c.useForm)(),d=(g==null?void 0:g["x-read-pretty"])||v.readPretty||a.readPretty,R=x==null?void 0:x.fieldSchema,j=(0,o.useCollection_deprecated)(),n=j.getField,P=(x==null?void 0:x.collectionField)||n(g.name)||i(g["x-collection-field"]),z=((I=g["x-component-props"])===null||I===void 0?void 0:I.fieldNames)||{},N=z.label,G=(0,$.useMemo)(function(){if(!(!P||!(P!=null&&P.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm"].includes(P.interface)){var Q=w(P.target);if((Q==null?void 0:Q.template)==="file")return d?[{label:S("Title"),value:"Select"},{label:S("File manager"),value:"FileManager"},{label:S("Tag"),value:"Tag"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},{label:S("File manager"),value:"FileManager"}];if((Q==null?void 0:Q.template)==="tree"&&["m2m","o2m","m2o"].includes(P.interface))return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"},!R&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&["m2m","o2m"].includes(P.interface)&&{label:S("Sub-table"),value:"SubTable"},!R&&{label:S("Cascade Select"),value:"CascadeSelect"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];switch(P.interface){case"o2m":return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-table"),value:"SubTable"},!R&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"},!R&&{label:S("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"},!R&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-table"),value:"SubTable"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];default:return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}]}}},[S,P==null?void 0:P.interface,N]);return(G||[]).filter(Boolean)}},18686:function(ze,te,e){"use strict";e.d(te,{aZ:function(){return x},fM:function(){return m},hi:function(){return I}});var $=e(5574),l=e.n($),V=e(97857),c=e.n(V),D=e(94350),f=e(83204),L=e(9361),r=e(96486),W=e.n(r),p=e(67294),A=e(40868),h=e(21143),M=e(10097),t=e(1892),o=e(28561),u=function(i,w,E,g){return i?g.paddingContentHorizontalLG:E?w?g.controlPaddingHorizontal+3*g.controlPaddingHorizontalSM+22+g.paddingContentHorizontalLG:g.paddingContentHorizontalLG+12:w?g.paddingSM+g.controlHeight+g.marginXS+2*g.controlPaddingHorizontalSM+22+g.paddingContentHorizontalLG:g.controlHeight+g.marginXS+(g.paddingXXS+2)*2+g.paddingContentHorizontalLG},B=function(i){var w=L.Z.useToken(),E=w.token,g=(0,A.ngQ)(),v=g.designable,a=(0,M.useBlockHeightProps)(),d=a.heightProps,R=i||d||{},j=R.disablePageHeader,n=R.enablePageTabs,P=R.hidePageTitle,z=E.sizeXXL-2,N=v?E.controlHeight+2*E.paddingContentHorizontalLG:1*E.paddingContentHorizontalLG,G=u(j,n,P,E);return z+G+N},y=function(){var i=L.Z.useToken(),w=i.token,E=(0,A.ngQ)(),g=E.designable,v=w.paddingContentVerticalLG+w.margin+2*w.paddingContentVertical+24,a=g?w.controlHeight+2*w.paddingContentHorizontalLG:1*w.paddingContentHorizontalLG;return v+a},C=function(i){var w=(0,D.useFieldSchema)(),E=S(w),g=B(i),v=y();return E?v:g},T=["users_jobs","approvals","approvalRecords"],U=function(){var i,w,E=L.Z.useToken(),g=E.token,v=(0,M.useBlockHeightProps)(),a=v.heightProps,d=(0,t.Si)(),R=d.heightProps,j=(0,A.ngQ)(),n=j.designable,P=(0,D.useFieldSchema)(),z=R||a,N=C(z),G=(i=(0,h.useDataBlockRequest)())!==null&&i!==void 0?i:{},Q=G.data,K=(0,h.useCollection)(),H=K.name,q=(Q==null?void 0:Q.meta)||{},oe=q.count,ne=q.pageSize,Z=oe>ne,k=z.heightMode,Y=z.height,De=z.title;if(!(!(z!=null&&z.heightMode)||k===o.j.DEFAULT)){var ee=Object.keys(((w=P.parent.properties.actions)===null||w===void 0?void 0:w.properties)||{}).length>0,he=Z?g.controlHeight+g.padding+g.marginLG:g.marginLG,be=ee||n?g.controlHeight+2*g.marginLG:g.marginLG,Fe=(n&&!T.includes(H)?g.controlHeight:22)+2*g.padding+1,_e=De?g.fontSizeLG*g.lineHeightLG+g.padding*2-1:0;return k===o.j.FULL_HEIGHT?window.innerHeight-N-_e-Fe-be-he:Y-_e-be-Fe-he}},x=function(i){var w=(0,M.useBlockHeightProps)(),E=w.heightProps,g=C(),v=L.Z.useToken(),a=v.token,d=E||{},R=d.heightMode,j=d.height,n=d.title,P=n?a.fontSizeLG*a.lineHeightLG+a.padding*2-1:0;if(!(!(E!=null&&E.heightMode)||R===o.j.DEFAULT)){if(R===o.j.FULL_HEIGHT){var z=window.innerHeight-g;return i!=null&&i.removeBlockHeaderHeight&&(z=z-P),i!=null&&i.innerExtraHeight&&(z=z-i.innerExtraHeight),z}return j}},I=function(){var i=(0,D.useFieldSchema)(),w=(0,p.useMemo)(function(){return(0,M.getPageSchema)(i)},[]),E=(w==null?void 0:w["x-component-props"])||{},g=E.disablePageHeader,v=E.enablePageTabs,a=E.hidePageTitle,d=c()(c()({},i==null?void 0:i["x-component-props"]),{},{disablePageHeader:g,enablePageTabs:v,hidePageTitle:a}),R=C(d),j=d||{},n=j.heightMode,P=j.height;if(!(!(d!=null&&d.heightMode)||n===o.j.DEFAULT))return n===o.j.FULL_HEIGHT?window.innerHeight-R:P},m=function(){var i=(0,p.useState)(),w=l()(i,2),E=w[0],g=w[1],v=(0,p.useRef)(null),a=U(),d=(0,p.useCallback)((0,r.debounce)(function(){var j;if(v.current){var n=v.current.getBoundingClientRect(),P=(j=v.current.querySelector(".ant-table"))===null||j===void 0?void 0:j.getBoundingClientRect();P&&g(n.width)}},100),[a]),R=(0,p.useCallback)(function(j){v.current=j&&j.children?j.children[0]:null,d()},[d]);return(0,f.Z)("resize",d),{height:a,width:E,tableSizeRefCallback:R}},S=function b(i){return i?i["x-component"]==="Action.Container"?!0:b(i.parent):null}},96365:function(ze,te,e){"use strict";e.d(te,{e:function(){return r}});var $=e(97857),l=e.n($),V=e(52677),c=e.n(V),D=e(94350),f=e(67294),L={},r=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},A=p.noCache,h=(0,f.useContext)(D.SchemaOptionsContext),M=(0,f.useContext)(D.SchemaExpressionScopeContext);return function(t,o){var u=!1,B;if(typeof t=="string"&&t.startsWith("{{")&&(u=!0,B=t),t&&c()(t)==="object"&&!(0,f.isValidElement)(t)&&(u=!0,B=JSON.stringify(t)),Array.isArray(t)&&(u=!0),u){var y=l()(l()(l()({},h.scope),M),o);if(!B)return D.Schema.compile(t,y);try{return A?D.Schema.compile(t,y):(L[B]=L[B]||D.Schema.compile(t,y),L[B])}catch(C){return console.log("useCompile error",t,C),D.Schema.compile(t,y)}}return t}}},94516:function(ze,te,e){"use strict";e.d(te,{zz:function(){return N},Pl:function(){return d},oB:function(){return P},ng:function(){return Q},sR:function(){return G}});var $=e(5574),l=e.n($),V=e(19632),c=e.n(V),D=e(15009),f=e.n(D),L=e(99289),r=e.n(L),W=e(12444),p=e.n(W),A=e(72004),h=e.n(A),M=e(9783),t=e.n(M),o=e(97857),u=e.n(o),B=e(94350),y=e(73773),C=e(45360),T=e(50361),U=e.n(T),x=e(27361),I=e.n(x),m=e(36968),S=e.n(m),b=e(67294),i=e(26793),w=e(12174),E=e(61736);function g(K,H){if(K)return K["x-app-version"]||(K["x-app-version"]=H),Object.keys(K.properties||{}).forEach(function(q){var oe;g((oe=K.properties)===null||oe===void 0?void 0:oe[q],H)}),K}var v={i8:"1.3.30-beta"},a=e(85893);function d(K){return new N(K)}var R=function K(H){H&&(H["x-uid"]||(H["x-uid"]=(0,y.uid)()),Object.keys(H.properties||{}).forEach(function(q){K(H.properties[q])}))},j=function(H){return H},n=function(H,q){if(!(!H||!q)){for(var oe in q)if(Object.prototype.hasOwnProperty.call(q,oe)){var ne=q[oe];if(ne!==(H==null?void 0:H[oe]))return!1}return!0}},P=function(H,q){if(H["x-uid"]&&H["x-uid"]===q["x-uid"])return[null,H.toJSON()];var oe=H.toJSON(),ne=u()(u()({},oe),{},{properties:{}}),Z=null,k=function Y(De,ee){Object.keys(De||{}).forEach(function(he){var be=De[he];if(be["x-uid"]===q["x-uid"]){Z=De[he];return}else ee.properties[he]=u()(u()({},be),{},{properties:{}}),Y(be==null?void 0:be.properties,ee.properties[he])})};return k(oe.properties,ne),[ne,Z]},z=function(H){return H},N=function(){function K(H){p()(this,K),t()(this,"current",void 0),t()(this,"options",void 0),t()(this,"appVersion",void 0),t()(this,"events",{}),this.options=H,this.current=H.current,this.appVersion=H.appVersion}return h()(K,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var q=this,oe=this.options,ne=oe.api,Z=oe.t,k=Z===void 0?z:Z;if(ne){var Y=function(ee){if(!ee)return[];var he=Object.values(ee.properties).length,be=[];return ee.mapProperties(function(Fe){Fe["x-component-props"]=Fe["x-component-props"]||{},Fe["x-component-props"].width=100/he,Fe["x-uid"]&&be.push({"x-uid":Fe["x-uid"],"x-component-props":Fe["x-component-props"]})}),ee["x-uid"]&&be.length?be:[]};this.on("insertAdjacent",function(){var De=r()(f()().mark(function ee(he){var be,Fe,_e,Te,Ae,ue,ae,ge,se,pe;return f()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(Fe=he.onSuccess,_e=he.current,Te=he.position,Ae=he.schema,ue=he.wrap,ae=he.wrapped,ge=he.removed,se=[],(ae==null?void 0:ae["x-component"])==="Grid.Col"&&(se=se.concat(Y(ae.parent))),(ge==null?void 0:ge["x-component"])==="Grid.Col"&&(se=se.concat(Y(ge.parent))),q.refresh(),_e["x-uid"]){Se.next=7;break}return Se.abrupt("return");case 7:return Se.next=9,ne.request({url:"/uiSchemas:insertAdjacent/".concat(_e["x-uid"],"?position=").concat(Te),method:"post",data:{schema:g(Ae,q.appVersion),wrap:ue}});case 9:if(pe=Se.sent,!se.length){Se.next=13;break}return Se.next=13,ne.request({url:"/uiSchemas:batchPatch",method:"post",data:se});case 13:if(!(ge!=null&&ge["x-uid"])){Se.next=16;break}return Se.next=16,ne.request({url:"/uiSchemas:remove/".concat(ge["x-uid"]),method:"post"});case 16:Fe==null||Fe(pe==null||(be=pe.data)===null||be===void 0?void 0:be.data),C.ZP.success(k("Saved successfully"),.2);case 18:case"end":return Se.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("patch",function(){var De=r()(f()().mark(function ee(he){var be;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(be=he.schema,q.refresh(),be!=null&&be["x-uid"]){_e.next=4;break}return _e.abrupt("return");case 4:return _e.next=6,ne.request({url:"/uiSchemas:patch",method:"post",data:u()({},be)});case 6:C.ZP.success(k("Saved successfully"),.2);case 7:case"end":return _e.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var De=r()(f()().mark(function ee(he){var be;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(be=he.schema,q.refresh(),be!=null&&be["x-uid"]){_e.next=4;break}return _e.abrupt("return");case 4:return _e.next=6,ne.request({url:"/uiSchemas:initializeActionContext",method:"post",data:u()({},be)});case 6:case"end":return _e.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("batchPatch",function(){var De=r()(f()().mark(function ee(he){var be;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return be=he.schemas,q.refresh(),_e.next=4,ne.request({url:"/uiSchemas:batchPatch",method:"post",data:be});case 4:C.ZP.success(k("Saved successfully"),.2);case 5:case"end":return _e.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("remove",function(){var De=r()(f()().mark(function ee(he){var be,Fe;return f()().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(be=he.removed,Fe=[],(be==null?void 0:be["x-component"])==="Grid.Col"&&(Fe=Y(be.parent)),q.refresh(),be!=null&&be["x-uid"]){Te.next=6;break}return Te.abrupt("return");case 6:return Te.next=8,ne.request({url:"/uiSchemas:remove/".concat(be["x-uid"]),method:"post"});case 8:if(!Fe.length){Te.next=11;break}return Te.next=11,ne.request({url:"/uiSchemas:batchPatch",method:"post",data:Fe});case 11:C.ZP.success(k("Saved successfully"),.2);case 12:case"end":return Te.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(q){q.type||(q.type="void"),q.name||(q.name=(0,y.uid)()),this.current["x-uid"]&&R(q)}},{key:"on",value:function(q,oe){this.events[q]||(this.events[q]=[]),this.events[q].push(oe)}},{key:"emit",value:function(){var H=r()(f()().mark(function oe(ne){var Z=this,k,Y,De,ee,he,be=arguments;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(this.events[ne]){_e.next=2;break}return _e.abrupt("return");case 2:for(k=be.length,Y=new Array(k>1?k-1:0),De=1;De<k;De++)Y[De-1]=be[De];return ee=Y[0],he=Y.slice(1),_e.abrupt("return",Promise.all(this.events[ne].map(function(Te){return Te.bind(Z).apply(void 0,[u()({current:Z.current},ee)].concat(c()(he)))})));case 5:case"end":return _e.stop()}},oe,this)}));function q(oe){return H.apply(this,arguments)}return q}()},{key:"parentsIn",value:function(q){if(!q||!B.Schema.isSchemaInstance(q))return!1;for(var oe=this.current;(ne=oe)!==null&&ne!==void 0&&ne.parent;){var ne;if(oe.parent===q)return!0;oe=oe.parent}return!1}},{key:"refresh",value:function(){var q=this.options.refresh;return q==null?void 0:q()}},{key:"deepMerge",value:function(q){var oe=this,ne={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"},Z={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(q).forEach(function(k){ne[k]?(oe.current[k]=q[k],oe.updateModel(ne[k],q[k])):Z[k]?Object.keys(q[k]).forEach(function(Y){S()(oe.current,[k,Y],q[k][Y]),oe.updateModel([Z[k],Y],q[k][Y])}):oe.current[k]=q[k]}),this.emit("patch",{schema:q})}},{key:"getSchemaAttribute",value:function(q,oe){return I()(this.current,q,oe)}},{key:"shallowMerge",value:function(q){var oe=this,ne={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(q).forEach(function(Z){oe.current[Z]=q[Z],ne[Z]&&oe.updateModel(ne[Z],q[Z])}),this.emit("patch",{schema:q})}},{key:"updateModel",value:function(q,oe){var ne=function(k){S()(k,q,oe)};this.model&&ne(this.model),this.query&&this.query.take(ne)}},{key:"insertAdjacent",value:function(q,oe){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(q){case"beforeBegin":return this.insertBeforeBegin(oe,ne);case"afterBegin":return this.insertAfterBegin(oe,ne);case"beforeEnd":return this.insertBeforeEnd(oe,ne);case"afterEnd":return this.insertAfterEnd(oe,ne)}}},{key:"recursiveRemoveIfNoChildren",value:function(q,oe){if(q){for(var ne=q,Z,k=oe==null?void 0:oe.breakRemoveOn;ne;){if(typeof k=="function"){if(k(ne))break}else if(n(ne,k))break;var Y=Object.keys(ne.properties||{}).length;if(Y>0)break;ne.parent&&(Z=ne.parent.removeProperty(ne.name)),ne=ne.parent}return Z}}},{key:"remove",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=oe.breakRemoveOn,Z=oe.removeParentsIfNoChildren,k=q||this.current,Y=k.parent.removeProperty(k.name);if(Z){var De=this.recursiveRemoveIfNoChildren(k.parent,{breakRemoveOn:ne});De&&(Y=De)}return this.emit("remove",{removed:Y})}},{key:"removeWithoutEmit",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=oe.breakRemoveOn,Z=oe.removeParentsIfNoChildren,k=q||this.current,Y=k.parent.removeProperty(k.name);if(Z){var De=this.recursiveRemoveIfNoChildren(k.parent,{breakRemoveOn:ne});De&&(Y=De)}return Y}},{key:"insertBeforeBeginOrAfterEnd",value:function(q){var oe=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)&&B.Schema.isSchemaInstance(q)&&this.current.parent===q.parent){var Z=0,k=0;return this.current.parent.mapProperties(function(Y,De,ee){oe.current.name===De&&(k=ee),q.name===De&&(Z=ee)}),Z>k?this.insertBeforeBegin(q,ne):this.insertAfterEnd(q,ne)}}},{key:"insertBeforeBegin",value:function(q){var oe=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){var Z={onSuccess:ne.onSuccess},k=ne.wrap,Y=k===void 0?j:k,De=ne.breakRemoveOn,ee=ne.removeParentsIfNoChildren;if(B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),ee&&(Z.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:De}))}else q&&(q=U()(q));var he={},be=!1,Fe=0,_e=0;this.current.parent.mapProperties(function(pe,xe){xe===oe.current.name&&(_e=Fe,be=!0,++Fe),pe["x-index"]=Fe,++Fe,be&&(he[xe]=pe,oe.current.parent.removeProperty(xe))}),this.prepareProperty(q);var Te=Y(q),Ae=this.current.parent.addProperty(Te.name||(0,y.uid)(),Te);Ae["x-index"]=_e,Ae.parent=this.current.parent,this.current.parent.setProperties(he);var ue=P(Ae,q),ae=l()(ue,2),ge=ae[0],se=ae[1];this.emit("insertAdjacent",u()({position:"beforeBegin",schema:se,wrapped:Te,wrap:ge},Z))}}},{key:"insertAfterBegin",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){var ne={onSuccess:oe.onSuccess},Z=oe.wrap,k=Z===void 0?j:Z,Y=oe.breakRemoveOn,De=oe.removeParentsIfNoChildren;if(B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),De&&(ne.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:Y}))}else q&&(q=U()(q));var ee={},he=1;this.current.mapProperties(function(ae,ge){ae["x-index"]=he,++he,ee[ge]=ae}),this.current.properties={},this.prepareProperty(q);var be=k(q),Fe=this.current.addProperty(be.name||(0,y.uid)(),be);Fe["x-index"]=0,Fe.parent=this.current,this.current.setProperties(ee);var _e=P(Fe,q),Te=l()(_e,2),Ae=Te[0],ue=Te[1];this.emit("insertAdjacent",u()({position:"afterBegin",schema:ue,wrap:Ae,wrapped:be},ne))}}},{key:"insertBeforeEnd",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){delete q["x-index"];var ne={onSuccess:oe.onSuccess},Z=oe.wrap,k=Z===void 0?j:Z,Y=oe.breakRemoveOn,De=oe.removeParentsIfNoChildren;if(B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),De&&(ne.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:Y}))}else q&&(q=U()(q));this.prepareProperty(q);var ee=k(q),he=this.current.addProperty(ee.name||(0,y.uid)(),ee);he.parent=this.current;var be=P(he,q),Fe=l()(be,2),_e=Fe[0],Te=Fe[1];return this.emit("insertAdjacent",u()({position:"beforeEnd",schema:Te,wrap:_e,wrapped:ee},ne))}}},{key:"insertAfterEnd",value:function(q){var oe=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){var Z={onSuccess:ne==null?void 0:ne.onSuccess},k=ne.wrap,Y=k===void 0?j:k,De=ne.breakRemoveOn,ee=ne.removeParentsIfNoChildren,he=0,be=0,Fe=!1,_e={};if(this.current.parent.mapProperties(function(pe,xe){pe["x-index"]=he,xe===oe.current.name&&(++he,be=he,Fe=!0),++he,Fe&&xe!==oe.current.name&&(_e[xe]=pe,oe.current.parent.removeProperty(xe))}),B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),ee&&(Z.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:De})),q.parent=null}else q&&(q=U()(q));this.prepareProperty(q);var Te=Y(q),Ae=this.current.parent.addProperty(Te.name||(0,y.uid)(),Te);Ae.parent=this.current.parent,Ae["x-index"]=be,this.current.parent.setProperties(_e);var ue=P(Ae,q),ae=l()(ue,2),ge=ae[0],se=ae[1];this.emit("insertAdjacent",u()({position:"afterEnd",schema:se,wrap:ge,wrapped:Te},Z))}}}]),K}();function G(){var K=(0,b.useContext)(B.SchemaOptionsContext),H=(0,b.useMemo)(function(){return(K==null?void 0:K.components)||{}},[K]),q=function(ne){if(!ne)return null;if(typeof ne!="string")return ne;var Z=I()(H,ne);return Z||console.error('[nocobase]: Component "'.concat(ne,'" not found')),Z};return q}function Q(){var K=(0,b.useContext)(E.D),H=K.designable,q=K.setDesignable,oe=K.refresh,ne=K.reset,Z=(0,b.useContext)(B.SchemaOptionsContext),k=(0,b.useMemo)(function(){return(Z==null?void 0:Z.components)||{}},[Z]),Y=(0,b.useMemo)(function(){return function(){return(0,a.jsx)(a.Fragment,{})}},[]),De=(0,B.useField)(),ee=(0,B.useFieldSchema)(),he=(0,w.LY)(),be=(0,i.$)(),Fe=be.t,_e=(0,b.useMemo)(function(){return d({t:Fe,api:he,refresh:oe,current:ee,model:De,appVersion:v.i8})},[Fe,he,oe,ee,De]);return(0,b.useEffect)(function(){_e.loadAPIClientEvents()},[_e]),{dn:_e,designable:H,reset:ne,refresh:oe,setDesignable:q,DesignableBar:Y,findComponent:(0,b.useCallback)(function(Te){return Te?typeof Te!="string"?Te:I()(k,Te):null},[I()]),on:_e.on.bind(_e),patch:(0,b.useCallback)(function(Te,Ae){var ue=function(se){Object.keys(se).forEach(function(pe){var xe=se[pe];pe==="title"&&(De.title=xe,ee.title=xe),pe==="x-decorator-props"&&(De.decoratorProps||(De.decoratorProps={}),ee["x-decorator-props"]||(ee["x-decorator-props"]={}),Object.keys(xe).forEach(function(Se){De.decoratorProps[Se]=xe[Se],ee["x-decorator-props"][Se]=xe[Se]})),pe==="x-component-props"&&(De.componentProps||(De.componentProps={}),ee["x-component-props"]||(ee["x-component-props"]={}),Object.keys(xe).forEach(function(Se){De.componentProps[Se]=xe[Se],ee["x-component-props"][Se]=xe[Se]}))})};if(typeof Te=="string"){var ae={};return S()(ae,Te,Ae),ue(ae)}ue(Te),oe()},[_e]),shallowMerge:(0,b.useCallback)(function(Te){_e.shallowMerge(Te)},[_e]),deepMerge:(0,b.useCallback)(function(Te){_e.deepMerge(Te)},[_e]),remove:(0,b.useCallback)(function(Te,Ae){_e.remove(Te,Ae)},[_e]),insertAdjacent:(0,b.useCallback)(function(Te,Ae,ue){_e.insertAdjacent(Te,Ae,ue)},[_e]),insertBeforeBegin:(0,b.useCallback)(function(Te){_e.insertBeforeBegin(Te)},[_e]),insertAfterBegin:(0,b.useCallback)(function(Te){_e.insertAfterBegin(Te)},[_e]),insertBeforeEnd:(0,b.useCallback)(function(Te){_e.insertBeforeEnd(Te)},[_e]),insertAfterEnd:(0,b.useCallback)(function(Te){_e.insertAfterEnd(Te)},[_e])}}},98146:function(ze,te,e){"use strict";e.d(te,{e:function(){return f}});var $=e(94350),l=e(84577),V=e(67294),c=e(26386),D=function(){return null},f=function(){var r=(0,l.ng)(),W=r.designable,p=(0,$.useFieldSchema)(),A=(0,V.useMemo)(function(){return p["x-designer"]||p["x-toolbar"]?p["x-designer"]||p["x-toolbar"]:p["x-settings"]?c.Mf:D},[p]),h=(0,l.Co)(A);return W&&h||D}},9780:function(ze,te,e){"use strict";e.d(te,{w:function(){return L}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=["useProps"],f=function(){return{}},L=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=W.useProps,A=p===void 0?f:p,h=c()(W,D),M=A;typeof A!="function"&&(M=f);var t=M();return l()(l()({},h),t)}},40868:function(ze,te,e){"use strict";e.d(te,{aUM:function(){return x.aU},olz:function(){return x.ol},N0i:function(){return x.N0},fWn:function(){return x.fW},EIK:function(){return x.EI},$Lt:function(){return x.$L},$b8:function(){return x.$b},HTy:function(){return ya},lkv:function(){return zr},rDu:function(){return Ja},eYL:function(){return x.eY},Rat:function(){return wr},oAt:function(){return yr},E7E:function(){return br},$SD:function(){return vi},fUi:function(){return Wr.fU},QcG:function(){return Gl},MLy:function(){return go.M},gOu:function(){return _s},jYG:function(){return Na.j},C1I:function(){return x.C1},Ssf:function(){return Zl},vTp:function(){return Yl},XZJ:function(){return Jr},Tt2:function(){return ns},zH8:function(){return ls},Q5L:function(){return cs},Pok:function(){return pi},Vm0:function(){return ps},xI_:function(){return rs},Lip:function(){return os},Mtg:function(){return Qr.Mt},iNu:function(){return Qr.iN},zzt:function(){return Mt.zz},_bl:function(){return C._b},POi:function(){return fs},AOY:function(){return he},LBT:function(){return y.DndContext},IWB:function(){return y.DragHandler},LCt:function(){return y.DraggableContext},FyH:function(){return Y.Fy},Nir:function(){return Y.Ni},q8U:function(){return Y.q8},HGA:function(){return Y.HG},QTe:function(){return Y.QT},JEX:function(){return Y.JE},fAH:function(){return ul},$w$:function(){return Y.$w},nBj:function(){return Y.nB},Oct:function(){return Y.Oc},zdw:function(){return Y.zd},CXR:function(){return ll},BQs:function(){return Pr.BQ},Hj5:function(){return ro.H},M0b:function(){return fi},wn$:function(){return bn.wn},GzZ:function(){return bn.Gz},tJZ:function(){return bn.tJ},fox:function(){return bn.fo},VTd:function(){return bn.VT},XsZ:function(){return bn.Xs},AsW:function(){return wo},cLM:function(){return Uo},m__:function(){return Oo},l09:function(){return ne},D_t:function(){return Zi.D},WiK:function(){return zn},xJW:function(){return Y.xJ},RVL:function(){return C.RV},Bc8:function(){return yt},hG9:function(){return gi},DCh:function(){return hi},rjZ:function(){return Yr.rj},Cqo:function(){return $a},jg7:function(){return Yr.jg},gsn:function(){return Pr.gs},$18:function(){return Is},IIB:function(){return Pr.II},RnZ:function(){return Yi},mX2:function(){return Pr.mX},zDC:function(){return sr.zD},Phs:function(){return Pr.Ph},aVo:function(){return Va},UGj:function(){return el},yq5:function(){return tl},v2r:function(){return ia},HIW:function(){return Su},T3C:function(){return hr},d97:function(){return ca.d9},hGv:function(){return xr},tlE:function(){return Zs},rop:function(){return Qs},gGi:function(){return Ys},DBW:function(){return ma.D},MBS:function(){return Xs.M},pGO:function(){return eu},Y8K:function(){return yi},iVT:function(){return Pr.iV},ODP:function(){return sr.OD},lbb:function(){return sr.lb},b7w:function(){return sr.b7},sUk:function(){return sr.sU},x1j:function(){return x.x1},m1v:function(){return C.m1},glM:function(){return Ht},xZD:function(){return x.xZ},IuH:function(){return bn.Iu},MkN:function(){return x.Mk},Hof:function(){return nu},n6:function(){return C.n6},DDd:function(){return vv.D},G0E:function(){return C.G0},a$w:function(){return C.a$},TzZ:function(){return C.Tz},y00:function(){return x.y0},PhF:function(){return Ct},Cqv:function(){return y.ShowFormData},cof:function(){return x.co},bts:function(){return y.Sortable},Fop:function(){return y.SortableContext},TRI:function(){return y.SortableItem},ORg:function(){return y.SortableProvider},TaI:function(){return ou},qHe:function(){return $n.q},iA_:function(){return Rr},gvM:function(){return vu},SnY:function(){return cl},ASv:function(){return fu},bwk:function(){return Gr},mQc:function(){return Ei},c__:function(){return ka.c},QZ3:function(){return Dt},L39:function(){return Na.L},jII:function(){return dl},mPs:function(){return bu},tgM:function(){return yu},gqx:function(){return Wr.gq},Qm7:function(){return Wr.Qm},_wD:function(){return ba._w},rjl:function(){return ba.rj},Fjw:function(){return x.Fj},SLL:function(){return x.SL},sBv:function(){return x.sB},iTm:function(){return Y.iT},Pls:function(){return Mt.Pl},Oxq:function(){return wt},WLi:function(){return Ye},$9M:function(){return Y.$9},nCn:function(){return za},iNG:function(){return Ca},tD8:function(){return _i},pg9:function(){return Zn},Ofb:function(){return Y.Of},ibf:function(){return Xn},WyG:function(){return k},l6$:function(){return Re.l6},WGR:function(){return Mn},C$H:function(){return sr.C$},cNQ:function(){return sr.cN},I9l:function(){return y.getRenderContent},XQ2:function(){return $r.XQ},ZZb:function(){return Y.ZZ},elO:function(){return sr.el},CfU:function(){return Ur},SJF:function(){return Mr},_Ko:function(){return Pa},Mev:function(){return da},i2K:function(){return Yn},WmO:function(){return bn.Wm},oBi:function(){return Mt.oB},hKP:function(){return $r.hK},DU1:function(){return x.DU},XCj:function(){return x.XC},Vpg:function(){return fr},lIL:function(){return Mt.lI},KxP:function(){return go.K},hi9:function(){return Mt.hi},p27:function(){return x.p2},z9d:function(){return sl.z},eJW:function(){return Mt.eJ},Cor:function(){return Mt.Co},aZq:function(){return Mt.aZ},P1D:function(){return Qr.P1},ngQ:function(){return Mt.ng},ett:function(){return Mt.et},ySm:function(){return ro.y},Zd$:function(){return Y.Zd},cLh:function(){return Mt.cL},baz:function(){return Y.b},fde:function(){return Mt.fd},Xdt:function(){return sr.Xd},Cld:function(){return Mt.Cl},vH8:function(){return Mt.vH},PLH:function(){return bn.PL},V8t:function(){return bn.V8},tMk:function(){return bn.tM},xQm:function(){return bn.xQ},sRe:function(){return Mt.sR},frb:function(){return Bo},$N2:function(){return ko},U1u:function(){return qe},HS$:function(){return x.HS},vBu:function(){return x.vB},QYZ:function(){return x.QY},t9d:function(){return x.t9},Kgy:function(){return bn.Kg},aJ2:function(){return bn.aJ},n14:function(){return Yr.n1},DiB:function(){return Yr.Di},l1O:function(){return Y.l1},w5o:function(){return Y.w5},p3Q:function(){return Y.p3},G5e:function(){return Y.G5},xj2:function(){return Y.xj},rxY:function(){return Y.rx},Ils:function(){return sr.Il},zCB:function(){return x.zC},a4r:function(){return ma.a},wNf:function(){return Mt.wN},Dmu:function(){return Mt.Dm},Bsl:function(){return C.Bs},yKv:function(){return Hs.y},fMB:function(){return Mt.fM},gCg:function(){return ka.g},eT6:function(){return Y.eT},q4O:function(){return Y.q4},ymE:function(){return ba.ym}});var $={};e.r($),e.d($,{Action:function(){return x.aU},ActionBar:function(){return x.ol},ActionBarProvider:function(){return x.N0},ActionContext:function(){return x.fW},ActionContextProvider:function(){return x.EI},ActionDesigner:function(){return x.$L},AfterSuccess:function(){return x.$b},AntdSchemaComponentPlugin:function(){return ya},AntdSchemaComponentProvider:function(){return zr},AppendsTreeSelect:function(){return Ja},AssignedFieldValues:function(){return x.eY},AssociationField:function(){return wr},AssociationFieldMode:function(){return yr},AssociationFieldModeProvider:function(){return br},AssociationSelect:function(){return vi},AttachmentList:function(){return Wr.fU},AutoComplete:function(){return Gl},BackButtonUsedInSubPage:function(){return go.M},Block:function(){return _s},BlockItem:function(){return Na.j},ButtonEditor:function(){return x.C1},CardItem:function(){return Zl},Cascader:function(){return Yl},Checkbox:function(){return Jr},CollectionSelect:function(){return ns},ColorPicker:function(){return ls},ColorSelect:function(){return cs},Cron:function(){return pi},CronSet:function(){return ps},DataSourceCollectionCascader:function(){return rs},DataSourceSelect:function(){return os},DatePicker:function(){return Qr.Mt},DatePickerProvider:function(){return Qr.iN},Details:function(){return fs},DetailsDesigner:function(){return he},EditComponent:function(){return Y.Fy},EditDefaultValue:function(){return Y.Ni},EditDescription:function(){return Y.q8},EditOperator:function(){return Y.HG},EditPattern:function(){return Y.QT},EditRequired:function(){return Y.JE},EditSortField:function(){return ul},EditTitle:function(){return Y.$w},EditTitleField:function(){return Y.nB},EditTooltip:function(){return Y.Oc},EditValidationRules:function(){return Y.zd},Editable:function(){return ll},EllipsisWithTooltip:function(){return Pr.BQ},ErrorFallback:function(){return ro.H},Expand:function(){return fi},Filter:function(){return bn.wn},FilterAction:function(){return bn.Gz},FilterActionContext:function(){return bn.tJ},FilterContext:function(){return bn.fo},FilterDynamicComponent:function(){return bn.VT},FilterLogicContext:function(){return bn.Xs},FixedBlock:function(){return wo},FixedBlockDesignerItem:function(){return Uo},FixedBlockWrapper:function(){return Oo},Form:function(){return ne},FormDialog:function(){return Zi.D},FormField:function(){return zn},FormItem:function(){return Y.xJ},FormV2:function(){return yt},G2Plot:function(){return gi},G2PlotRenderer:function(){return hi},Grid:function(){return Yr.rj},GridCard:function(){return $a},GridRowContext:function(){return Yr.jg},HTMLEncode:function(){return Pr.gs},IconPicker:function(){return Is},Input:function(){return Pr.II},InputNumber:function(){return Yi},InputReadPretty:function(){return Pr.mX},InputRecordPicker:function(){return sr.zD},Json:function(){return Pr.Ph},List:function(){return Va},Markdown:function(){return el},MarkdownReadPretty:function(){return tl},Menu:function(){return ia},NanoIDInput:function(){return Su},Page:function(){return hr},PagePopups:function(){return ca.d9},PageTabs:function(){return xr},Pagination:function(){return Zs},Password:function(){return Qs},Percent:function(){return Ys},PopupSettingsProvider:function(){return ma.D},Preview:function(){return Xs.M},QuickEdit:function(){return eu},Radio:function(){return yi},ReadPretty:function(){return Pr.iV},ReadPrettyRecordPicker:function(){return sr.OD},RecordPicker:function(){return sr.lb},RecordPickerContext:function(){return sr.b7},RecordPickerProvider:function(){return sr.sU},RefreshDataBlockRequest:function(){return x.x1},RemoteSelect:function(){return Ht},RemoveButton:function(){return x.xZ},RemoveConditionContext:function(){return bn.Iu},RequestSettings:function(){return x.Mk},RichText:function(){return nu},SecondConFirm:function(){return x.y0},Select:function(){return Ct},SkipValidation:function(){return x.co},Space:function(){return ou},StablePopover:function(){return $n.q},Table:function(){return Rr},TableBlockDesigner:function(){return vu},TableField:function(){return cl},TableSelectorDesigner:function(){return fu},TableV2:function(){return Gr},Tabs:function(){return Ei},TabsContextProvider:function(){return ka.c},Templates:function(){return Dt},TestDesigner:function(){return Na.L},TimePicker:function(){return dl},TreeSelect:function(){return bu},UnixTimestamp:function(){return yu},Upload:function(){return Wr.gq},Uploader:function(){return Wr.Qm},Variable:function(){return ba._w},VariableScopeProvider:function(){return ba.rj},WorkflowConfig:function(){return x.Fj},actionSettings:function(){return x.SL},actionSettingsItems:function(){return x.sB},allowAddNew:function(){return Y.iT},defaultFieldNames:function(){return wt},fetchTemplateData:function(){return Ye},filterFormItemSettings:function(){return Y.$9},findByUid:function(){return za},findKeysByUid:function(){return Ca},findMenuItem:function(){return _i},formDetailsSettings:function(){return Zn},formItemSettings:function(){return Y.Of},formSettings:function(){return Xn},formV1Settings:function(){return k},genStyleHook:function(){return Re.l6},getCurrentOptions:function(){return Mn},getDatePickerLabels:function(){return sr.C$},getLabelFormatValue:function(){return sr.cN},getStoredPopupContext:function(){return $r.XQ},isFileCollection:function(){return Y.ZZ},isShowFilePicker:function(){return sr.el},isTabPage:function(){return Ur},navigateToTab:function(){return Mr},pageSettings:function(){return Pa},pageTabSettings:function(){return da},readPrettyFormSettings:function(){return Yn},removeNullCondition:function(){return bn.Wm},storePopupContext:function(){return $r.hK},useActionBarContext:function(){return x.DU},useActionContext:function(){return x.XC},useAssociationFieldModeContext:function(){return fr},useBackButton:function(){return go.K},useCloseAction:function(){return x.p2},useColumnSchema:function(){return sl.z},useDatePickerContext:function(){return Qr.P1},useDownloadLogs:function(){return ro.y},useEnsureOperatorsValid:function(){return Y.Zd},useFieldMode:function(){return Y.b},useFieldNames:function(){return sr.Xd},useFilterActionProps:function(){return bn.PL},useFilterFieldOptions:function(){return bn.V8},useFilterFieldProps:function(){return bn.tM},useFilterOptions:function(){return bn.xQ},useFixedBlock:function(){return Bo},useFixedSchema:function(){return ko},useFormDataTemplates:function(){return qe},useGetAriaLabelOfAction:function(){return x.HS},useGetAriaLabelOfDrawer:function(){return x.vB},useGetAriaLabelOfModal:function(){return x.QY},useGetAriaLabelOfPopover:function(){return x.t9},useGetFilterFieldOptions:function(){return bn.Kg},useGetFilterOptions:function(){return bn.aJ},useGridContext:function(){return Yr.n1},useGridRowContext:function(){return Yr.Di},useIsAddNewForm:function(){return Y.l1},useIsAssociationField:function(){return Y.w5},useIsFieldReadPretty:function(){return Y.p3},useIsFileField:function(){return Y.G5},useIsFormReadPretty:function(){return Y.xj},useIsSelectFieldMode:function(){return Y.rx},useLabelUiSchema:function(){return sr.Il},useLinkageAction:function(){return x.zC},usePopupSettings:function(){return ma.a},useStyles:function(){return Hs.y},useTabsContext:function(){return ka.g},useTitleFieldOptions:function(){return Y.eT},useValidateSchema:function(){return Y.q4},useVariableScope:function(){return ba.ym}});var l=e(15009),V=e.n(l),c=e(99289),D=e.n(c),f=e(12444),L=e.n(f),r=e(72004),W=e.n(r),p=e(31996),A=e.n(p),h=e(26037),M=e.n(h),t=e(97857),o=e.n(t),u=e(67294),B=e(31601),y=e(14896),C=e(70993),T=e(89127),U=function(O){return D()(V()().mark(function re(){var le,me;return V()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.prev=0,Ie.next=3,this.api.request(O);case 3:return me=Ie.sent,Ie.abrupt("return",me==null||(le=me.data)===null||le===void 0?void 0:le.data);case 7:return Ie.prev=7,Ie.t0=Ie.catch(0),Ie.abrupt("return",[]);case 10:case"end":return Ie.stop()}},re,this,[[0,7]])}))},x=e(76157),I=e(13769),m=e.n(I),S=e(57134),b=e(86201),i=e(94350),w=e(28459),E=e(57953),g=e(12174),v=e(6145),a=e(26386),d=e(64016),R=e(15195),j=e(23461),n=e(85893),P=["form","children"],z=["form","children","disabled"],N=["request","effects","initialValue","useValues"],G=function(O){var re=O.form,le=O.children,me=m()(O,P),Pe=(0,i.useField)(),Ie=(0,i.useFieldSchema)(),$e=(0,Mt.lI)(re.createVoidField(o()(o()({},Pe.props),{},{basePath:""})));return(0,n.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,n.jsx)(i.FormContext.Provider,{value:re,children:(0,n.jsx)(S.FormLayout,o()(o()({layout:"vertical"},me),{},{children:(0,n.jsx)(i.RecursionField,{basePath:$e.address,schema:Ie,onlyRenderProperties:!0})}))})})},Q=function(O){return O.children},K=function(O){var re=O.form,le=O.children,me=O.disabled,Pe=m()(O,z),Ie=(0,i.useField)(),$e=(0,i.useFieldSchema)(),Ve=(0,Mt.lI)(re.createVoidField(o()(o()({},Ie.props),{},{basePath:""}))),He=(0,Mt.Co)($e["x-component"],Q);return(0,u.useEffect)(function(){re.disabled=me||Ie.disabled},[me,Ie.disabled]),(0,n.jsx)(w.ZP,{componentDisabled:me,children:(0,n.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,n.jsx)(i.FormContext.Provider,{value:re,children:(0,n.jsx)(S.FormLayout,o()(o()({layout:"vertical"},Pe),{},{children:(0,n.jsx)(i.FieldContext.Provider,{value:Ve,children:(0,n.jsx)(He,o()(o()({},Ie.componentProps),{},{children:(0,n.jsx)(i.RecursionField,{basePath:Ve.address,schema:$e,onlyRenderProperties:!0})}))})}))})})})},H=function(O){var re=O.request,le=O.initialValue;return re||function(){return Promise.resolve({data:le})}},q=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,g.QT)(H(re),O)},oe=(0,u.createContext)(null);oe.displayName="FormBlockContext";var ne=(0,i.observer)(function(J){var O=J.request,re=J.effects,le=J.initialValue,me=J.useValues,Pe=me===void 0?q:me,Ie=m()(J,N),$e=(0,i.useFieldSchema)(),Ve=(0,i.useField)(),He=(0,u.useMemo)(function(){return(0,b.createForm)({effects:re})},[]),et=Pe({uid:$e["x-uid"],onSuccess:function(at){return D()(V()().mark(function ht(){return V()().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,He.reset();case 2:He.setValues(at==null?void 0:at.data),He.setInitialValues(at==null?void 0:at.data);case 4:case"end":return _t.stop()}},ht)}))()}},J),nt=(0,u.useContext)(oe);return(0,n.jsx)(oe.Provider,{value:{parent:nt,form:He,result:et,field:Ve,fieldSchema:$e},children:(0,n.jsx)(E.Z,{spinning:(et==null?void 0:et.loading)||!1,children:$e["x-decorator"]==="Form"?(0,n.jsx)(K,o()({form:He},Ie)):(0,n.jsx)(G,o()({form:He},Ie))})})},{displayName:"Form"});ne.Designer=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)(),Pe=(0,j.rE)(),Ie=Pe.componentNamePrefix;return(0,n.jsxs)(a.aN,{template:me,title:le||re,children:[(0,n.jsx)(d.G,{componentName:"".concat(Ie,"Form"),collectionName:re}),(0,n.jsx)(a.Z5,{}),(0,n.jsx)(a.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var Z=e(5537),k=new Z.F5({name:"FormV1Settings",items:[{name:"template",Component:d.G,useComponentProps:function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=(0,j.rE)(),me=le.componentNamePrefix;return{componentName:"".concat(me,"Form"),collectionName:re}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),Y=e(54801),De=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"FormSettings",template:me,title:le||re})},ee=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"ReadPrettyFormSettings",template:me,title:le||re})},he=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"FormDetailsSettings",template:me,title:le||re})},be=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"blockSettings:filterForm",template:me,title:le||re})},Fe=e(7340),_e=e(15503),Te=e(68230),Ae=e(68400),ue=e.n(Ae),ae=e(97133),ge=e(73773),se=e(9361),pe=e(31019),xe=e(22229),Se=e(43321),je=e(8281),Le=e(9780),Oe=e(18686),ve=e(94804),fe=e(5574),ce=e.n(fe),X=e(68433),F=e(42075),de=e(34041),Ce=e(96486),ie=e.n(Ce),ye=e(26793),Ee=e(32268),Re=e(60094),Ne=e(9783),Ke=e.n(Ne),lt=e(52677),we=e.n(lt),Qe=e(50888),ke=e(66309),Wt=e(96074),ln=e(27484),Cn=e.n(ln),Qt=e(87714),Mt=e(84577),nn=e(4340),jt=e(97937),Vt=e(32983),Kt=e(58812),fn=e(96695),At=e.n(fn),Rt=e(19632),Bt=e.n(Rt),wt={label:"label",value:"value",color:"color",options:"children"};function cn(J,O){var re=[];if(!Array.isArray(J))return re;for(var le=0;le<J.length;le++){var me=J[le][O.options];Array.isArray(me)&&re.push.apply(re,Bt()(cn(me,O))),re.push(o()({},J[le]))}return re}function Mn(J,O,re){var le=cn(O,re),me=(0,Ce.castArray)(J).map(function(Ie){return(0,X.isPlainObject)(Ie)?Ie[re.value]:Ie});function Pe(Ie){if(!Ie)return[];var $e=[],Ve=At()(me),He;try{var et=function(){var bt=He.value,at=Ie.find(function(ht){return ht[re.value]==bt})||{value:bt,label:bt&&bt.toString()};$e.push(at)};for(Ve.s();!(He=Ve.n()).done;)et()}catch(nt){Ve.e(nt)}finally{Ve.f()}return $e}return Pe(le)}var Kn=e(67668),Gn=(0,i.observer)(function(J){var O,re=o()(o()({},wt),J.fieldNames),le=(0,i.useField)(),me=(0,Kn.Hy)(),Pe=le.dataSource||J.options||(me==null?void 0:me.uiSchema.enum)||[],Ie=Mn(le.value,Pe,re);return!(0,ge.isValid)(J.value)&&!Ie.length?(0,n.jsx)("div",{}):(0,b.isArrayField)(le)&&(le==null||(O=le.value)===null||O===void 0?void 0:O.length)===0?(0,n.jsx)("div",{}):(0,n.jsx)("div",{children:(0,n.jsx)(Kt.B,{ellipsis:J.ellipsis,children:Ie.map(function($e,Ve){return(0,n.jsx)(ke.Z,{color:$e[re.color],icon:$e.icon,children:$e[re.label]},Ve)})})})},{displayName:"ReadPretty"}),oo=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],kn=["objectValue","loading","value","rawOptions","defaultValue"],wn=function(O){return!(0,ge.isValid)(O)||we()(O)==="object"&&Object.keys(O).length===0},Jn=function(O){var re=O.value,le=O.options,me=O.onChange,Pe=O.fieldNames,Ie=O.mode,$e=O.loading,Ve=O.rawOptions,He=O.defaultValue,et=m()(O,oo),nt=function(at){var ht;if(!wn(at)){var pt=(0,ge.toArr)(at).filter(function(Tt){return Tt}).map(function(Tt){return(0,X.isPlainObject)(Tt)?Tt[Pe.value]:Tt}),_t=(ht=Mn(pt,le,Pe))===null||ht===void 0?void 0:ht.map(function(Tt){return{label:Tt[Pe.label],value:Tt[Pe.value]}});return["tags","multiple"].includes(Ie)||O.multiple?_t:_t.shift()}};return(0,n.jsx)(de.default,o()({role:"button","data-testid":"select-object-".concat(Ie||"single"),value:nt(re),defaultValue:nt(He),allowClear:{clearIcon:(0,n.jsx)(nn.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:$e?(0,n.jsx)(E.Z,{}):(0,n.jsx)(Vt.Z,{image:Vt.Z.PRESENTED_IMAGE_SIMPLE}),options:le,fieldNames:Pe,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(at,ht){var pt;return((pt=ht==null?void 0:ht[Pe.label||"label"])!==null&&pt!==void 0?pt:"").includes(at)},filterSort:function(at,ht){var pt,_t;return((pt=at==null?void 0:at[Pe.label||"label"])!==null&&pt!==void 0?pt:"").toLowerCase().localeCompare(((_t=ht==null?void 0:ht[Pe.label||"label"])!==null&&_t!==void 0?_t:"").toLowerCase())},onChange:function(at){var ht=Mn((0,ge.toArr)(at).map(function(pt){return pt.value}),Ve||le,Pe);["tags","multiple"].includes(Ie)||O.multiple?me==null||me(ht):me==null||me(ht.shift()||null)},mode:Ie,tagRender:function(at){return(0,n.jsx)(ke.Z,o()(o()({role:"button","aria-label":at.label,closeIcon:(0,n.jsx)(jt.Z,{role:"button","aria-label":"icon-close-tag"})},at),{},{children:at.label}))}},et))},hn=function(O,re){var le;return((le=re==null?void 0:re.label)!==null&&le!==void 0?le:"").toLowerCase().includes((O||"").toLowerCase())},Ot=(0,i.connect)(function(J){var O=J.objectValue,re=J.loading,le=J.value,me=J.rawOptions,Pe=J.defaultValue,Ie=m()(J,kn),$e=J.multiple?"multiple":J.mode;if($e&&!["multiple","tags"].includes($e)&&($e=void 0),O)return(0,n.jsx)(Jn,o()(o()({rawOptions:me},Ie),{},{defaultValue:Pe,value:le,mode:$e,loading:re}));var Ve=function(et){return["tags","multiple"].includes(J.mode)||J.multiple?et?(0,ge.toArr)(et):void 0:et};return(0,n.jsx)(de.default,o()(o()({role:"button","data-testid":"select-".concat($e||"single"),showSearch:!0,filterOption:hn,allowClear:{clearIcon:(0,n.jsx)(nn.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:re?(0,n.jsx)(E.Z,{}):(0,n.jsx)(Vt.Z,{image:Vt.Z.PRESENTED_IMAGE_SIMPLE}),value:Ve(le),defaultValue:Ve(Pe),tagRender:function(et){return(0,n.jsx)(ke.Z,o()(o()({role:"button","aria-label":et.label,closeIcon:(0,n.jsx)(jt.Z,{role:"button","aria-label":"icon-close-tag"})},et),{},{children:et.label}))}},Ie),{},{onChange:function(et){var nt;(nt=J.onChange)===null||nt===void 0||nt.call(J,et===void 0?null:et)},mode:$e}))},(0,i.mapProps)({dataSource:"options"},function(J,O){return o()(o()({},J),{},{fieldNames:o()(o()({},wt),J.fieldNames),suffixIcon:O!=null&&O.loading||O!=null&&O.validating?(0,n.jsx)(Qe.Z,{}):J.suffixIcon})}),(0,i.mapReadPretty)(Gn)),Ct=Ot;Ct.ReadPretty=Gn;var St=Ct,$t=e(36586),zt=function(O,re){return(0,Ce.castArray)(O).filter(function(le){return le!=null}).map(function(le){return we()(le)==="object"?le[re.value]:le})},Yt=(0,i.observer)(function(J){var O=o()(o()({},wt),J.fieldNames),re=(0,i.useField)(),le=(0,i.useFieldSchema)(),me=(0,$t.a)(),Pe=(0,x.XC)(),Ie=Pe.snapshot,$e=(0,g.QT)(Ie?D()(V()().mark(function He(){return V()().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.abrupt("return",{data:me[le.name]});case 1:case"end":return nt.stop()}},He)})):o()(o()({action:"list"},J.service),{},{params:{paginate:!1,filter:Ke()({},O.value,{$in:zt(re.value,O)})}}),{refreshDeps:[J.service,re.value]}),Ve=$e.data;return(0,n.jsx)(Ct.ReadPretty,o()(o()({},J),{},{options:Ve==null?void 0:Ve.data}))},{displayName:"ReadPretty"}),Nt=e(8341),yn=e(44990),vn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource"],qt="N/A",en=(0,i.connect)(function(J){var O,re,le=J.fieldNames,me=le===void 0?{}:le,Pe=J.service,Ie=Pe===void 0?{}:Pe,$e=J.wait,Ve=$e===void 0?300:$e,He=J.value,et=J.defaultValue,nt=J.objectValue,bt=J.manual,at=bt===void 0?!0:bt,ht=J.mapOptions,pt=J.targetField,_t=J.CustomDropdownRender,Tt=J.optionFilter,Ut=J.dataSource,mn=m()(J,vn),Xt=(0,yn.FC)(),Nn=(0,Nt.FE)(Ut||Xt),jn=(0,u.useState)(!1),un=ce()(jn,2),tn=un[0],In=un[1],Dn=(0,u.useRef)(!1),Bn=(0,i.useFieldSchema)(),On=((O=Bn["x-component-props"])===null||O===void 0?void 0:O.addMode)==="quickAdd",Tn=(0,v.useCollection_deprecated)(),En=Tn.getField,So=(0,u.useRef)(null),xo=(0,v.useCollectionManager_deprecated)(),Io=xo.getCollectionJoinField,mo=xo.getInterface,so=Bn["x-collection-field"]||Bn.name,Un=En(so)||Io(so),Rn=pt||(Un==null?void 0:Un.target)&&(me==null?void 0:me.label)&&Io("".concat(Un.target,".").concat(me.label)),qn=(0,u.useMemo)(function(){if(Rn!=null&&Rn.interface){var Yo;return((Yo=mo(Rn.interface))===null||Yo===void 0||(Yo=Yo.filterable)===null||Yo===void 0?void 0:Yo.operators[0].value)||"$includes"}return"$includes"},[Rn]),fo=(0,Mt.eJ)(),Vn=(0,u.useCallback)(function(Yo){try{return Yo.filter(function(Jo){return["number","string"].includes(we()(Jo[me.value]))}).map(function(Jo){var gr,Sr,tr=fo(Jo[me.label]);if(Rn!=null&&(gr=Rn.uiSchema)!==null&&gr!==void 0&&gr.enum)if(Array.isArray(tr))tr=tr.map(function(Dr,Hr){var Lr=Rn.uiSchema.enum.find(function(wa){return wa.value===Dr});return Lr?(0,n.jsx)(ke.Z,{role:"button",color:Lr.color,style:{marginRight:3},children:(Lr==null?void 0:Lr.label)||Dr},Hr):(0,n.jsx)(ke.Z,{role:"button",children:Dr},Dr)}).reverse();else{var dr=Rn.uiSchema.enum.find(function(Dr){return Dr.value===tr});dr&&(tr=(0,n.jsx)(ke.Z,{role:"button",color:dr.color,children:dr.label}))}if((Rn==null?void 0:Rn.type)==="date"&&(tr=Cn()(tr).format("YYYY-MM-DD")),ht){var Br;return ht((Br={},Ke()(Br,me.label,tr||qt),Ke()(Br,me.value,Jo[me.value]),Br))}return o()(o()({},Jo),{},(Sr={},Ke()(Sr,me.label,tr||qt),Ke()(Sr,me.value,Jo[me.value]),Sr))}).filter(Boolean)}catch(Jo){return console.error(Jo),Yo}},[Rn==null?void 0:Rn.uiSchema,me]),no=(0,g.QT)(o()(o()({action:"list"},Ie),{},{headers:Nn,params:o()(o()({pageSize:200},Ie==null?void 0:Ie.params),{},{filter:Ie==null||(re=Ie.params)===null||re===void 0?void 0:re.filter})}),{manual:at,debounceWait:Ve}),co=no.data,po=no.run,Mo=no.loading,Wo=(0,u.useMemo)(function(){return JSON.stringify({service:Ie,fieldNames:me})},[Ie,me]),Eo=(0,u.useCallback)(function(){return So.current&&_t?(0,n.jsx)(_t,{search:So.current,callBack:function(){So.current=null,In(!1)}}):null},[So.current]);(0,u.useEffect)(function(){Dn.current&&po()},[Wo]);var No=function(){var Yo=D()(V()().mark(function Jo(gr){var Sr;return V()().wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:po({filter:(0,Qt.EO)([gr?Ke()({},me.label,Ke()({},qn,gr)):{},Ie==null||(Sr=Ie.params)===null||Sr===void 0?void 0:Sr.filter])}),So.current=gr;case 2:case"end":return dr.stop()}},Jo)}));return function(gr){return Yo.apply(this,arguments)}}(),vr=(0,u.useMemo)(function(){var Yo,Jo=He||et;if(!(co!=null&&(Yo=co.data)!==null&&Yo!==void 0&&Yo.length))return Jo!=null?Array.isArray(Jo)?Jo:[Jo]:[];var gr=Jo!=null&&(Array.isArray(Jo)?Jo:[o()(o()({},Jo),{},Ke()({},me.value,Jo[me.value]||Jo))])||[],Sr=typeof Tt=="function"?co.data.filter(Tt):co.data;return(0,Ce.uniqBy)(Sr.concat(gr!=null?gr:[]),me.value)},[He,et,co==null?void 0:co.data,me.value,Tt]),ar=function(Jo){In(Jo),So.current=null,Jo&&po(),Dn.current=!0};return(0,n.jsx)(Ct,o()(o()({open:tn,popupMatchSelectWidth:!1,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:me,onSearch:No,onDropdownVisibleChange:ar,objectValue:nt,value:He,defaultValue:et},mn),{},{loading:co?Mo:!0,options:Vn(vr),rawOptions:vr,dropdownRender:function(Jo){var gr=vr.some(function(Sr){return Sr[me.label]===So.current});return(0,n.jsx)(n.Fragment,{children:On?(0,n.jsxs)(n.Fragment,{children:[!((co==null?void 0:co.data.length)===0&&So!==null&&So!==void 0&&So.current)&&Jo,(co==null?void 0:co.data.length)>0&&(So==null?void 0:So.current)&&!gr&&(0,n.jsx)(Wt.Z,{style:{margin:0}}),!gr&&(0,n.jsx)(Eo,{})]}):Jo})}}))},(0,i.mapProps)({dataSource:"options"},function(J,O){var re,le=(0,i.useFieldSchema)();return o()(o()({},J),{},{fieldNames:o()(o()(o()(o()({},wt),J.fieldNames),O.componentProps.fieldNames),(re=le["x-component-props"])===null||re===void 0?void 0:re.fieldNames),suffixIcon:O!=null&&O.loading||O!=null&&O.validating?(0,n.jsx)(Qe.Z,{}):J.suffixIcon})}),(0,i.mapReadPretty)(Yt)),Ht=en;Ht.ReadPretty=Yt;var ft=null,qe=function(){var O=(0,i.useFieldSchema)(),re=(0,ye.$)(),le=re.t,me=(0,Fe.bz)(),Pe=me.duplicateData,Ie=(0,v.useCollectionManager_deprecated)(),$e=Ie.getCollectionJoinField;if(Pe)return Pe;var Ve=Ft(O),He=Ve.items,et=He===void 0?[]:He,nt=Ve.display,bt=nt===void 0?!0:nt;et.forEach(function(pt){try{var _t;pt.fields=(_t=pt.fields)===null||_t===void 0?void 0:_t.map(function(Tt){var Ut=$e("".concat(pt.collection,".").concat(Tt));return Ut?Tt:""}).filter(Boolean)}catch(Tt){(0,X.error)(Tt),pt.fields=[]}});var at=[{key:"none",title:le("None")}].concat(et.map(function(pt,_t){return o()(o()({key:_t},pt),{},{isLeaf:pt.dataId!==null&&pt.dataId!==void 0,titleCollectionField:(pt==null?void 0:pt.titleField)&&$e("".concat(pt.collection,".").concat(pt.titleField))})})),ht=et.find(function(pt){return pt.default});return{templates:at,display:bt,defaultTemplate:ht,enabled:et.length>0&&et.every(function(pt){return pt.dataId||pt.dataScope})}},Dt=function(O){var re=O.style,le=re===void 0?{}:re,me=O.form,Pe=(0,Re.dQ)(),Ie=Pe.token,$e=qe(),Ve=$e.templates,He=$e.display,et=$e.enabled,nt=$e.defaultTemplate,bt=(0,v.useCollectionManager_deprecated)(),at=bt.getCollectionJoinField,ht=(0,Ee.ss)(Ve),pt=(0,u.useState)((nt==null?void 0:nt.key)||"none"),_t=ce()(pt,2),Tt=_t[0],Ut=_t[1],mn=(0,u.useState)(null),Xt=ce()(mn,2),Nn=Xt[0],jn=Xt[1],un=(0,g.LY)(),tn=(0,ye.$)(),In=tn.t;(0,u.useEffect)(function(){et&&nt&&me&&(me.__template=!0,nt.key==="duplicate"&&Tn(nt.dataId,nt))},[]),(0,u.useEffect)(function(){ht!=null&&ht.some(function(So){return So.key===Tt})||On("none")},[ht]);var Dn=(0,u.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:Ie.colorFillAlter,padding:Ie.padding},le)},[le,Ie.colorFillAlter]),Bn=(0,u.useMemo)(function(){return{fontSize:Ie.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:Ie.marginXS}},[Ie.fontSize,Ie.marginXS]),On=(0,u.useCallback)(function(){var So=D()(V()().mark(function xo(Io){return V()().wrap(function(so){for(;;)switch(so.prev=so.next){case 0:Ut(Io),jn(null),me==null||me.reset();case 3:case"end":return so.stop()}},xo)}));return function(xo){return So.apply(this,arguments)}}(),[]),Tn=(0,u.useCallback)(function(){var So=D()(V()().mark(function xo(Io,mo){var so;return V()().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:so=o()(o()({},mo),{},{dataId:Io}),jn(mo),Ye(un,so,In).then(function(qn){return me&&qn&&(me.reset(),me.__template=!0,(0,X.forEach)(qn,function(fo,Vn){if(fo){var no;me.values[Vn]=fo,me==null||(no=me.setInitialValuesIn)===null||no===void 0||no.call(me,Vn,fo)}})),qn}).catch(function(qn){console.error(qn)});case 3:case"end":return Rn.stop()}},xo)}));return function(xo,Io){return So.apply(this,arguments)}}(),[]);if(!et||!He)return null;var En=ht==null?void 0:ht.find(function(So){return So.key===Tt});return(0,n.jsx)("div",{style:Dn,children:(0,n.jsxs)(F.Z,{wrap:!0,children:[(0,n.jsxs)("label",{style:Bn,children:[In("Data template"),": "]}),(0,n.jsx)(de.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:ht,fieldNames:{label:"title",value:"key"},value:Tt,onChange:On}),Tt!=="none"&&En&&(0,n.jsx)(Ht,{style:{width:220},fieldNames:{label:En==null?void 0:En.titleField,value:"id"},target:En==null?void 0:En.collection,value:Nn,objectValue:!0,service:{resource:En==null?void 0:En.collection,params:{filter:En==null?void 0:En.dataScope}},onChange:function(xo){return Tn(xo==null?void 0:xo.id,o()(o()({},xo),En))},targetField:at("".concat(En==null?void 0:En.collection,".").concat(En.titleField))})]})})};function Ft(J){var O=(0,Fe.Fi)(J);return O?ie().cloneDeep(O["x-data-templates"])||{}:{}}function Ye(J,O,re){return Me.apply(this,arguments)}function Me(){return Me=D()(V()().mark(function J(O,re,le){return V()().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(!(re.fields.length===0||!re.dataId)){Pe.next=2;break}return Pe.abrupt("return");case 2:return Pe.abrupt("return",O.resource(re.collection).get({filterByTk:re.dataId,fields:re.fields,isTemplate:!0}).then(function(Ie){var $e;return($e=Ie.data)===null||$e===void 0?void 0:$e.data}));case 3:case"end":return Pe.stop()}},J)})),Me.apply(this,arguments)}var Be=e(3192),Ze=function(){var O,re,le=(0,Oe.aZ)(),me=(0,i.useFieldSchema)(),Pe=se.Z.useToken(),Ie=Pe.token,$e=(0,Mt.ng)(),Ve=$e.designable,He=(0,Be.g)()||{},et=He.heightProps,nt=et||{},bt=nt.title,at=qe(),ht=at.display,pt=at.enabled,_t=me.reduceProperties(function(Tn,En){return En["x-component"]==="ActionBar"?En:Tn}),Tt=Object.keys((_t==null?void 0:_t.properties)||{}).length>0,Ut=me==null||(O=me.parent)===null||O===void 0||(O=O["x-decorator"])===null||O===void 0||(re=O.includes)===null||re===void 0?void 0:re.call(O,"FormBlockProvider"),mn=Tt||Ve?Ie.controlHeight+(Ut?1:2)*Ie.marginLG:Ie.marginLG,Xt=bt?Ie.fontSizeLG*Ie.lineHeightLG+Ie.padding*2-1:0,Nn=(0,ve.hS)()||{},jn=Nn.data,un=(jn==null?void 0:jn.meta)||{},tn=un.count,In=un.pageSize,Dn=tn>In,Bn=Dn?Ie.controlHeightSM+1*Ie.paddingLG:0,On=ht&&pt?Ie.controlHeight+2*Ie.padding+Ie.margin:0;return le-mn-Ie.paddingLG-Xt-Bn-On},Xe,rt,gt=["form","children"],xt=["form","children","disabled"],vt=["form","disabled"],ut=function(O){var re=O.form,le=O.children,me=m()(O,gt),Pe=(0,i.useField)(),Ie=(0,i.useFieldSchema)(),$e=(0,Mt.lI)(re.createVoidField(o()(o()({},Pe.props),{},{basePath:""}))),Ve=Ze(),He=se.Z.useToken(),et=He.token,nt=(0,Mt.ng)(),bt=nt.designable;return(0,n.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,n.jsx)(i.FormContext.Provider,{value:re,children:(0,n.jsx)(S.FormLayout,o()(o()({layout:"vertical"},me),{},{children:(0,n.jsx)("div",{className:(0,ae.css)(Xe||(Xe=ue()([`
688
+ `]))))}));return(0,H.jsx)(X.BQs,{ellipsis:!0,popoverContent:wn,children:wn})};var ln=(0,l.createContext)([]);ln.displayName="VariableScopeContext";function Cn(jt){var Vt=jt.scope,Kt=Vt===void 0?[]:Vt,fn=jt.children;return(0,H.jsx)(ln.Provider,{value:Kt,children:fn})}function Qt(){return(0,l.useContext)(ln)}function Mt(){return null}Mt.Input=(0,$.connect)(_e),Mt.TextArea=(0,$.connect)(Qe,(0,$.mapReadPretty)(Qe.ReadPretty)),Mt.RawTextArea=(0,$.connect)(Se),Mt.JSON=(0,$.connect)(Le);var nn=null},88969:function(ze,te,e){"use strict";e.d(te,{m:function(){return T}});var $=e(15009),l=e.n($),V=e(19632),c=e.n(V),D=e(99289),f=e.n(D),L=e(5574),r=e.n(L),W=e(97133),p=e(38089),A=e(67294),h=e(26793),M=e(60094),t=e(9783),o=e.n(t),u=(0,M.l6)("nb-variable-select",function(U){var x=U.componentCls;return o()({},x,{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}}})}),B=u,y=e(2876),C=e(85893);function T(U){var x=U.options,I=U.setOptions,m=U.onInsert,S=U.changeOnSelect,b=S===void 0?!1:S,i=U.fieldNames,w=i===void 0?{}:i,E=U.className,g=(0,h.$)(),v=g.t,a=(0,A.useState)([]),d=r()(a,2),R=d[0],j=d[1],n=B(),P=n.wrapSSR,z=n.componentCls,N=n.hashId,G=(0,M.dQ)(),Q=G.token;function K(q){return H.apply(this,arguments)}function H(){return H=f()(l()().mark(function q(oe){var ne,Z;return l()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Z=oe[oe.length-1],!(!((ne=Z.children)!==null&&ne!==void 0&&ne.length)&&!Z.isLeaf&&Z.loadChildren)){Y.next=5;break}return Y.next=4,Z.loadChildren(Z);case 4:I(function(De){return c()(De)});case 5:case"end":return Y.stop()}},q)})),H.apply(this,arguments)}return P((0,C.jsx)(y.R,{className:(0,W.cx)("x-button",z,N,E),children:(0,C.jsx)(p.Z,{placeholder:v("Select a variable"),value:[],options:x,fieldNames:w,loadData:K,onChange:function(){var oe,ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(j(ne),!!ne.length){var k=Z[Z.length-1];(!(k!=null&&(oe=k.children)!==null&&oe!==void 0&&oe.length)&&!(k!=null&&k.loadChildren)||k!=null&&k.isLeaf)&&m(ne)}},changeOnSelect:b,onClick:function(oe){if(!(oe.detail!==2||!b))for(var ne=oe.target;ne&&ne!==oe.currentTarget;ne=ne.parentNode){var Z;Array.from((Z=ne.classList)!==null&&Z!==void 0?Z:[]).includes("ant-cascader-menu-item")&&m(R)}},popupClassName:"Cascader-popupClassName",dropdownRender:b?function(q){return(0,C.jsxs)(C.Fragment,{children:[q,(0,C.jsx)("div",{style:{padding:"0.5em",borderTop:"1px solid ".concat(Q.colorBorder),color:Q.colorTextDescription},children:v("Double click to choose entire object")})]})}:null})}))}},2876:function(ze,te,e){"use strict";e.d(te,{R:function(){return f}});var $=e(97857),l=e.n($),V=e(15867),c=e(67294),D=e(85893),f=(0,c.forwardRef)(function(L,r){var W=(0,c.useMemo)(function(){return{fontStyle:"italic",fontFamily:"New York, Times New Roman, Times, serif"}},[]);return(0,D.jsxs)(V.ZP,l()(l()({"aria-label":"variable-button",ref:r,style:W},L),{},{children:["x",L.children]}))});f.displayName="XButton"},72724:function(ze,te,e){"use strict";e.d(te,{L:function(){return M}});var $=e(97857),l=e.n($),V=e(5574),c=e.n(V),D=e(94697),f=e(94350),L=e(67294),r=e(26793),W=e(21143),p=e(84577),A=e(85893),h=function(o){var u=(0,p.ng)(),B=u.refresh,y=(0,W.useAPIClient)(),C=(0,r.$)(),T=C.t;return(0,L.useCallback)(function(U){var x,I,m,S,b,i,w,E,g=U.active,v=U.over,a=g==null||(x=g.data)===null||x===void 0||(x=x.current)===null||x===void 0?void 0:x.schema,d=v==null||(I=v.data)===null||I===void 0||(I=I.current)===null||I===void 0?void 0:I.schema,R=v==null||(m=v.data)===null||m===void 0||(m=m.current)===null||m===void 0?void 0:m.insertAdjacent,j=v==null||(S=v.data)===null||S===void 0||(S=S.current)===null||S===void 0?void 0:S.breakRemoveOn,n=v==null||(b=v.data)===null||b===void 0||(b=b.current)===null||b===void 0?void 0:b.wrapSchema,P=v==null||(i=v.data)===null||i===void 0||(i=i.current)===null||i===void 0?void 0:i.onSuccess,z=(w=v==null||(E=v.data)===null||E===void 0||(E=E.current)===null||E===void 0?void 0:E.removeParentsIfNoChildren)!==null&&w!==void 0?w:!0;if(!a||!d){o==null||o(U);return}if(a===d){o==null||o(U);return}if(a.parent===d&&R==="beforeEnd"){o==null||o(U);return}var N=(0,p.Pl)({t:T,api:y,refresh:B,current:d});if(N.loadAPIClientEvents(),a.parent===d.parent){N.insertBeforeBeginOrAfterEnd(a),o==null||o(U);return}if(R){N.insertAdjacent(R,a,{wrap:n,breakRemoveOn:j,removeParentsIfNoChildren:z,onSuccess:P}),o==null||o(U);return}},[o])},M=(0,f.observer)(function(t){var o=(0,r.$)(),u=o.t,B=(0,L.useState)(!0),y=c()(B,2),C=y[0],T=y[1],U=(0,L.useCallback)(function(I){var m,S=I.active,b=S==null||(m=S.data)===null||m===void 0||(m=m.current)===null||m===void 0?void 0:m.schema;if(T(!!b),t!=null&&t.onDragStart){var i;t==null||(i=t.onDragStart)===null||i===void 0||i.call(t,I)}},[t==null?void 0:t.onDragStart]),x=h(t==null?void 0:t.onDragEnd);return(0,A.jsxs)(D.DndContext,l()(l()({collisionDetection:D.rectIntersection},t),{},{onDragStart:U,onDragEnd:x,children:[(0,A.jsx)(D.DragOverlay,{dropAnimation:{duration:10,easing:"cubic-bezier(0.18, 0.67, 0.6, 1.22)"},children:C&&(0,A.jsx)("span",{style:{whiteSpace:"nowrap"},children:u("Dragging")})}),t.children]}))},{displayName:"DndContext"})},14896:function(ze,te,e){"use strict";e.r(te),e.d(te,{DndContext:function(){return $.L},DragHandler:function(){return l.IW},DraggableContext:function(){return l.LC},ShowFormData:function(){return f},Sortable:function(){return l.bt},SortableContext:function(){return l.Fo},SortableItem:function(){return l.TR},SortableProvider:function(){return l.OR},getRenderContent:function(){return L.I9}});var $=e(72724),l=e(20493),V=e(67294),c=e(94350),D=e(85893),f=(0,c.observer)(function(r){var W=r.children,p=(0,c.useForm)();return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("pre",{style:{marginBottom:20},"data-testid":"form-data",children:JSON.stringify(p.values,null,2)}),W]})}),L=e(34588)},20493:function(ze,te,e){"use strict";e.d(te,{IW:function(){return U},LC:function(){return t},bt:function(){return B},Fo:function(){return o},TR:function(){return T},OR:function(){return u}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(10274),f=e(94697),L=e(97133),r=e(94350),W=e(67294),p=e(60094),A=e(85893),h=["component","overStyle","style","children","openMode"],M=["schema","id","eid","removeParentsIfNoChildren"],t=(0,W.createContext)(null);t.displayName="DraggableContext";var o=(0,W.createContext)(null);o.displayName="SortableContext";var u=function(I){var m=I.id,S=I.data,b=I.children,i=(0,f.useDraggable)({id:m,data:S}),w=(0,f.useDroppable)({id:m,data:S});return(0,A.jsx)(o.Provider,{value:{draggable:i,droppable:w},children:b})},B=function(I){var m,S,b=I.component,i=I.overStyle,w=I.style,E=I.children,g=I.openMode,v=c()(I,h),a=(0,p.dQ)(),d=a.token,R=(0,W.useContext)(o),j=R.draggable,n=R.droppable,P=n.isOver,z=n.setNodeRef,N=l()({},w);return P&&(j==null||(m=j.active)===null||m===void 0?void 0:m.id)!==(n==null||(S=n.over)===null||S===void 0?void 0:S.id)&&(N[b==="a"?"color":"background"]=new D.C(d.colorSettings).setAlpha(.15).toHex8String(),Object.assign(N,i)),W.createElement(b||"div",l()(l()({role:"none"},v),{},{className:(0,L.cx)("nb-sortable-designer",I.className),ref:z,style:N}),E)},y=function(I){var m=C(I),S=(0,r.useFieldSchema)();return I.schema?l()(l()({},I),{},{id:m}):l()(l()({},I),{},{id:m,schema:S})},C=function(I){var m=(0,r.useField)();return I.id?I.id:m.address.toString()},T=(0,r.observer)(function(x){var I=y(x),m=I.schema,S=I.id,b=I.eid,i=I.removeParentsIfNoChildren,w=c()(I,M),E=(0,W.useMemo)(function(){return{insertAdjacent:"afterEnd",schema:m,removeParentsIfNoChildren:i!=null?i:!0}},[m,i]);return(0,A.jsx)(u,{id:S,data:E,children:(0,A.jsx)(B,l()(l()({id:b},w),{},{children:x.children}))})},{displayName:"SortableItem"}),U=function(I){var m=(0,W.useContext)(o),S=m.draggable,b=S.attributes,i=S.listeners,w=S.setNodeRef;return(0,A.jsx)("div",{style:{display:"inline-block",width:14,height:14,lineHeight:"14px",textAlign:"left"},children:(0,A.jsx)("div",l()(l()(l()({ref:w,style:{position:"relative",zIndex:1,lineHeight:0,fontSize:0,display:"inline-block"}},i),b),{},{role:"none",children:(0,A.jsx)("span",{style:{cursor:"move",fontSize:14},children:I.children})}))})}},34588:function(ze,te,e){"use strict";e.d(te,{jC:function(){return i},od:function(){return m},I9:function(){return g},Rq:function(){return S},e7:function(){return I}});var $=e(97857),l=e.n($),V=e(15009),c=e.n(V),D=e(9783),f=e.n(D),L=e(5574),r=e.n(L),W=e(99289),p=e.n(W),A=e(52677),h=e.n(A),M=e(96750),t=e.n(M),o=e(96486),u=e.n(o),B=e(10097),y=e(76690),C=e(65565),T=e(27484),U=e.n(T);function x(){"use strict";Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"});function a(n){for(var P=[],z=0,N=n.length;z<N;z++)P.indexOf(n[z])===-1&&P.push(n[z]);return P}function d(n,P){return JSON.stringify(n)===JSON.stringify(P)}var R={},j={$is:function(P,z){return P===z},$match:function(P,z){return Array.isArray(P)&&Array.isArray(z)&&P.some(function(N){return Array.isArray(N)})?P.some(function(N){return(N==null?void 0:N.length)===z.length&&(N==null?void 0:N.every(function(G,Q){return G===z[Q]}))}):JSON.stringify(P)===JSON.stringify(z)},$eq:function(P,z){return Array.isArray(P)&&Array.isArray(z)?d(P,z):Array.isArray(P)?P.includes(z):P===z},$ne:function(P,z){return P!=z},"!==":function(P,z){return P!==z},$gt:function(P,z){return Array.isArray(P)?P.some(function(N){return N>z}):P>z},$gte:function(P,z){return P>=z},$lt:function(P,z,N){return Array.isArray(P)?P.some(function(G){return G<z}):N===void 0?P<z:P<z&&z<N},$lte:function(P,z,N){return N===void 0?P<=z:P<=z&&z<=N},$exists:function(P){return R.truthy(P)},$notEmpty:function(P){return R.truthy(P)},$empty:function(P){return Array.isArray(P)?P.some(function(z){return!R.truthy(z)}):!R.truthy(P)},$notExists:function(P){return!R.truthy(P)},"%":function(P,z){return P%z},log:function(P){return console.log(P),P},$in:function(P,z){return!z||typeof z.indexOf=="undefined"?!1:Array.isArray(P)&&Array.isArray(z)?z.some(function(N){return P.includes(N)}):z.indexOf(P)!==-1},$notIn:function(P,z){return!z||typeof z.indexOf=="undefined"?!1:z.indexOf(P)===-1},$includes:function(P,z){return!P||typeof P.indexOf=="undefined"?!1:Array.isArray(P)?P.some(function(N){return N==null?void 0:N.includes(z)}):P.indexOf(z)!==-1},$notIncludes:function(P,z){return Array.isArray(P)?!P.some(function(N){return(N||"").includes(z)}):(P=P||"",!P.includes(z))},$anyOf:function(P,z){return P.length===0?!1:Array.isArray(P)&&Array.isArray(z)&&P.some(function(N){return Array.isArray(N)})?P.some(function(N){return N.some(function(G){return z.includes(G)})}):P.some(function(N){return z.includes(N)})},$noneOf:function(P,z){return!P||(P==null?void 0:P.length)===0?!0:Array.isArray(P)&&Array.isArray(z)&&P.some(function(N){return Array.isArray(N)})?P.some(function(N){return N.every(function(G){return!z.some(function(Q){return G.includes(Q)})})}):z.some(function(N){return!P.includes(N)})},$notMatch:function(P,z){if(P.length!==z.length)return!0;for(var N=0;N<P.length;N++)if(P[N]!==z[N])return!0;return!1},$dateOn:function(P,z){return!P||!z?!1:(Array.isArray(P)||(P=[P,P]),Array.isArray(z)||(z=[z,z]),P=P.map(function(N){return U()(N)}),z=z.map(function(N){return U()(N)}),P[0].isBetween(z[0],z[1],null,"[]")&&P[1].isBetween(z[0],z[1],null,"[]"))},$dateBefore:function(P,z){return!P||!z?!1:(Array.isArray(P)||(P=[P,P]),Array.isArray(z)||(z=[z,z]),P=P.map(function(N){return U()(N)}),z=z.map(function(N){return U()(N)}),P[0].isBefore(z[0])&&P[1].isBefore(z[0]))},$dateNotBefore:function(P,z){return!j.$dateBefore(P,z)},$dateAfter:function(P,z){return!P||!z?!1:(Array.isArray(P)||(P=[P,P]),Array.isArray(z)||(z=[z,z]),P=P.map(function(N){return U()(N)}),z=z.map(function(N){return U()(N)}),P[0].isAfter(z[1])&&P[1].isAfter(z[1]))},$dateNotAfter:function(P,z){return!j.$dateAfter(P,z)},$dateBetween:function(P,z){return j.$dateOn(P,z)},$dateNotOn:function(P,z){return!j.$dateOn(P,z)},$isTruly:function(P){return Array.isArray(P)?P.some(function(z){return z===!0||z===1}):P===!0||P===1},$isFalsy:function(P){return Array.isArray(P)?P.some(function(z){return!R.truthy(z)}):!R.truthy(P)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(P,z,N){if(N<0){var G=String(P).substr(z);return G.substr(0,G.length+N)}return String(P).substr(z,N)},"+":function(){return Array.prototype.reduce.call(arguments,function(P,z){return parseFloat(P,10)+parseFloat(z,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(P,z){return parseFloat(P,10)*parseFloat(z,10)})},"-":function(P,z){return z===void 0?-P:P-z},"/":function(P,z){return P/z},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(P,z){return P.concat(z)},[])},var:function(P,z){var N=z===void 0?null:z,G=this;if(typeof P=="undefined"||P===""||P===null)return G;for(var Q=String(P).split("."),K=0;K<Q.length;K++)if(G==null||(G=G[Q[K]],G===void 0))return N;return G},missing:function(){for(var P=[],z=Array.isArray(arguments[0])?arguments[0]:arguments,N=0;N<z.length;N++){var G=z[N],Q=R.apply({var:G},this);(Q===null||Q==="")&&P.push(G)}return P},missing_some:function(P,z){var N=R.apply({missing:z},this);return z.length-N.length>=P?[]:N}};return R.is_logic=function(n){return h()(n)==="object"&&n!==null&&!Array.isArray(n)&&Object.keys(n).length===1},R.truthy=function(n){return Array.isArray(n)&&n.length===0?!1:!!n},R.get_operator=function(n){return Object.keys(n)[0]},R.get_values=function(n){return n[R.get_operator(n)]},R.apply=function(n,P){if(Array.isArray(n))return n.map(function(Z){return R.apply(Z,P)});if(!R.is_logic(n))return n;var z=R.get_operator(n),N=n[z],G,Q,K,H,q;if(Array.isArray(N)||(N=[N]),z==="if"||z=="?:"){for(G=0;G<N.length-1;G+=2)if(R.truthy(R.apply(N[G],P)))return R.apply(N[G+1],P);return N.length===G+1?R.apply(N[G],P):null}else if(z==="$and"){for(G=0;G<N.length;G+=1)if(Q=R.apply(N[G],P),!R.truthy(Q))return Q;return Q}else if(z==="or"){for(G=0;G<N.length;G+=1)if(Q=R.apply(N[G],P),R.truthy(Q))return Q;return Q}else{if(z==="filter")return H=R.apply(N[0],P),K=N[1],Array.isArray(H)?H.filter(function(Z){return R.truthy(R.apply(K,Z))}):[];if(z==="map")return H=R.apply(N[0],P),K=N[1],Array.isArray(H)?H.map(function(Z){return R.apply(K,Z)}):[];if(z==="reduce")return H=R.apply(N[0],P),K=N[1],q=typeof N[2]!="undefined"?N[2]:null,Array.isArray(H)?H.reduce(function(Z,k){return R.apply(K,{current:k,accumulator:Z})},q):q;if(z==="all"){if(H=R.apply(N[0],P),K=N[1],!Array.isArray(H)||!H.length)return!1;for(G=0;G<H.length;G+=1)if(!R.truthy(R.apply(K,H[G])))return!1;return!0}else if(z==="none"){if(H=R.apply(N[0],P),K=N[1],!Array.isArray(H)||!H.length)return!0;for(G=0;G<H.length;G+=1)if(R.truthy(R.apply(K,H[G])))return!1;return!0}else if(z==="some"){if(H=R.apply(N[0],P),K=N[1],!Array.isArray(H)||!H.length)return!1;for(G=0;G<H.length;G+=1)if(R.truthy(R.apply(K,H[G])))return!0;return!1}}if(N=N.map(function(Z){return R.apply(Z,P)}),j.hasOwnProperty(z)&&typeof j[z]=="function")return j[z].apply(P,N);if(z.indexOf(".")>0){var oe=String(z).split("."),ne=j;for(G=0;G<oe.length;G++){if(!ne.hasOwnProperty(oe[G]))throw new Error("Unrecognized operation "+z+" (failed at "+oe.slice(0,G+1).join(".")+")");ne=ne[oe[G]]}return ne.apply(P,N)}throw new Error("Unrecognized operation "+z)},R.uses_data=function(n){var P=[];if(R.is_logic(n)){var z=R.get_operator(n),N=n[z];Array.isArray(N)||(N=[N]),z==="var"?P.push(N[0]):N.forEach(function(G){P.push.apply(P,R.uses_data(G))})}return a(P)},R.add_operation=function(n,P){j[n]=P},R.rm_operation=function(n){delete j[n]},R.rule_like=function(n,P){if(P===n||P==="@")return!0;if(P==="number")return typeof n=="number";if(P==="string")return typeof n=="string";if(P==="array")return Array.isArray(n)&&!R.is_logic(n);if(R.is_logic(P)){if(R.is_logic(n)){var z=R.get_operator(P),N=R.get_operator(n);if(z==="@"||z===N)return R.rule_like(R.get_values(n,!1),R.get_values(P,!1))}return!1}if(Array.isArray(P))if(Array.isArray(n)){if(P.length!==n.length)return!1;for(var G=0;G<P.length;G+=1)if(!R.rule_like(n[G],P[G]))return!1;return!0}else return!1;return!1},R}var I=function(d,R){var j,n=/{{(.*?)}}/,P=d==null||(j=d.match)===null||j===void 0?void 0:j.call(d,n);if(P){var z=u().get(R,P[1]);return u().isFunction(z)?z():z}else return d};function m(a){if(h()(a)!=="object"||a===null)return null;for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d))return Object.prototype.toString.call(a[d])==="[object Object]"&&a[d]!==null?m(a[d]):{key:d,value:a[d]};return null}var S=function(d){var R=b(d),j=(0,o.findIndex)(R,function(P,z,N){if(P.includes("$")&&z>0)return!0}),n=R.slice(0,j);return n};function b(a){var d=[];function R(j){Object.keys(j).sort().forEach(function(n){d.push(n),j[n]&&h()(j[n])==="object"&&R(j[n])})}return R(a),d}var i=function(){var a=p()(c()().mark(function d(R){var j,n,P,z,N,G,Q;return c()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return j=R.ruleGroup,n=R.variables,P=R.localVariables,z=R.variableNameOfLeftCondition,N=Object.keys(j)[0]||"$and",G=j[N],Q=G.map(function(){var q=p()(c()().mark(function oe(ne){var Z,k,Y,De,ee,he,be,Fe,_e,Te,Ae;return c()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(!("$and"in ne||"$or"in ne)){ae.next=4;break}return ae.next=3,i({ruleGroup:ne,variables:n,localVariables:P});case 3:return ae.abrupt("return",ae.sent);case 4:if(Z=m(ne),k=Z==null?void 0:Z.key,k){ae.next=8;break}return ae.abrupt("return",!0);case 8:return Y=w(S(ne),z),De=n.parseVariable(Y,P,{doNotRequest:!0}).then(function(ge){var se=ge.value;return se}),ee=(0,y.cG)(Z==null?void 0:Z.value)?[n.parseVariable(Z==null?void 0:Z.value,P).then(function(ge){var se=ge.value;return se}),De]:[Z==null?void 0:Z.value,De],ae.prev=11,he=x(),ae.next=15,Promise.all(ee);case 15:return be=ae.sent,Fe=r()(be,2),_e=Fe[0],Te=Fe[1],ae.next=21,n.getCollectionField(Y,P);case 21:return Ae=ae.sent,ae.abrupt("return",he.apply(f()({},k,[(0,C.J)(Te,{targetCollectionField:Ae}),(0,C.J)(_e,{targetCollectionField:Ae})])));case 25:throw ae.prev=25,ae.t0=ae.catch(11),ae.t0;case 28:case"end":return ae.stop()}},oe,null,[[11,25]])}));return function(oe){return q.apply(this,arguments)}}()),H.next=6,Promise.all(Q);case 6:if(Q=H.sent,N!=="$and"){H.next=11;break}return H.abrupt("return",(0,o.every)(Q,function(q){return q}));case 11:return H.abrupt("return",(0,o.some)(Q,function(q){return q}));case 12:case"end":return H.stop()}},d)}));return function(R){return a.apply(this,arguments)}}();function w(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$nForm";return"{{ ".concat(d,".").concat(a.join(".")," }}")}var E=function(d){var R={};return d.map(function(j){R[j.name]=j.ctx}),R};function g(a,d,R,j,n){return v.apply(this,arguments)}function v(){return v=p()(c()().mark(function a(d,R,j,n,P){var z,N,G,Q,K,H;return c()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(!(R&&d==="handlebars")){oe.next=19;break}return oe.prev=1,z=t().compile(R),N=E(n),G=j.ctxRef.current.$nDate,Q={},Object.keys(G).map(function(ne){Q[ne]=G[ne]()}),K=z(l()(l()(l()({},j.ctxRef.current),N),{},{$nDate:Q})),oe.next=10,P(K);case 10:return oe.abrupt("return",oe.sent);case 13:return oe.prev=13,oe.t0=oe.catch(1),console.log(oe.t0),oe.abrupt("return",R);case 17:oe.next=31;break;case 19:return oe.prev=19,oe.next=22,(0,B.replaceVariableValue)(R,j,n);case 22:return H=oe.sent,oe.next=25,P(H);case 25:return oe.abrupt("return",oe.sent);case 28:return oe.prev=28,oe.t1=oe.catch(19),oe.abrupt("return",R);case 31:case"end":return oe.stop()}},a,null,[[1,13],[19,28]])})),v.apply(this,arguments)}},61736:function(ze,te,e){"use strict";e.d(te,{D:function(){return l}});var $=e(67294),l=(0,$.createContext)({});l.displayName="SchemaComponentContext.Provider"},44245:function(ze,te,e){"use strict";e.d(te,{R:function(){return t}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(86201),f=e(94350),L=e(67294),r=e(47844),W=e(85893),p=["children","form"],A=["children"],h=function(u){var B=u.children,y=u.form,C=c()(u,p),T=(0,L.useContext)(f.SchemaOptionsContext),U=(0,L.useContext)(f.SchemaExpressionScopeContext),x=l()(l()({},T==null?void 0:T.scope),U),I=l()({},T==null?void 0:T.components);return(0,W.jsx)(f.FormProvider,l()(l()({},C),{},{form:y,children:(0,W.jsx)(r.G,{components:I,scope:x,children:B})}))},M=function(u){var B=u.children,y=c()(u,A),C=(0,L.useContext)(f.SchemaOptionsContext),T=(0,L.useContext)(f.SchemaExpressionScopeContext),U=l()(l()({},C==null?void 0:C.scope),T),x=l()({},C==null?void 0:C.components),I=(0,L.useMemo)(function(){return(0,D.createForm)()},[]);return(0,W.jsx)(f.FormProvider,l()(l()({},y),{},{form:I,children:(0,W.jsx)(r.G,{components:x,scope:U,children:B})}))},t=function(u){return u.form?(0,W.jsx)(h,l()({},u)):(0,W.jsx)(M,l()({},u))}},93587:function(ze,te,e){"use strict";e.d(te,{m:function(){return t}});var $=e(97857),l=e.n($),V=e(86201),c=e(57953),D=e(67294),f=e(84577),L=e(44245),r=e(93323),W=e(12174),p=function(u){var B=u.uid,y=u.type,C=y===void 0?"getJsonSchema":y,T=u.onSuccess,U={url:"/uiSchemas:".concat(C,"/").concat(B)},x=(0,W.QT)(U,{refreshDeps:[B],onSuccess:function(b){T&&T(b)}}),I=x.data,m=x.loading;return{schema:I==null?void 0:I.data,loading:m}},A=e(85893),h=function(u){return u},M=function(u){var B=u.noForm,y=u.onlyRenderProperties,C=u.hidden,T=u.scope,U=u.uid,x=u.memoized,I=x===void 0?!0:x,m=u.components,S=u.onSuccess,b=u.NotFoundPage,i=u.schemaTransform,w=i===void 0?h:i,E=u.onPageNotFind,g=(0,f.Dm)(),v=g.reset,a=y?"getProperties":"getJsonSchema",d={url:"/uiSchemas:".concat(a,"/").concat(U)},R=(0,D.useMemo)(function(){return(0,V.createForm)()},[U]),j=p({uid:U,type:a,onSuccess:function(G){S&&S(G),v&&v()}}),n=j.schema,P=j.loading,z=(0,f.Co)(b);return P||C?(0,A.jsx)("div",{style:{textAlign:"center",marginTop:20},children:(0,A.jsx)(c.Z,{})}):!n||Object.keys(n).length===0?(E&&E(),z?(0,A.jsx)(z,{}):null):B?(0,A.jsx)(r.n,{components:m,scope:T,schema:w(n||{})}):(0,A.jsx)(L.R,{form:R,children:(0,A.jsx)(r.n,{components:m,scope:T,schema:w(n||{})})})},t=(0,D.memo)(function(o){return o.uid?(0,A.jsx)(M,l()({},o)):null});t.displayName="RemoteSchemaComponent"},93323:function(ze,te,e){"use strict";e.d(te,{n:function(){return T}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=e(9783),f=e.n(D),L=e(94350),r=e(90105),W=e(67294),p=e(61736),A=e(47844),h=e(85893),M=["components","scope","schema","distributed"],t=["schema"],o=["memoized"];function u(U){return L.Schema.isSchemaInstance(U)?U:U!=null&&U.name?new L.Schema({type:"object",properties:f()({},U.name,U)}):new L.Schema(U)}var B=function(x){return(0,W.useMemo)(function(){return u(x)},[])},y=(0,W.memo)(function(U){var x=U.components,I=U.scope,m=U.schema,S=U.distributed,b=c()(U,M),i=(0,W.useContext)(p.D),w=(0,W.useMemo)(function(){return u(m)},[m]),E=(0,r.Z)();return(0,h.jsx)(p.D.Provider,{value:l()(l()({},i),{},{distributed:i.distributed==!1?!1:S,refresh:function(){var v;if(E(),i.distributed===!1||S===!1){var a;(a=i.refresh)===null||a===void 0||a.call(i)}(v=U.onChange)===null||v===void 0||v.call(U,w)}}),children:(0,h.jsx)(A.G,{inherit:!0,components:x,scope:I,children:(0,h.jsx)(L.RecursionField,l()(l()({},b),{},{schema:w}))})})}),C=(0,W.memo)(function(U){var x=U.schema,I=c()(U,t),m=B(x);return(0,h.jsx)(y,l()(l()({},I),{},{schema:m}))}),T=(0,W.memo)(function(U){var x=U.memoized,I=c()(U,o);return x?(0,h.jsx)(C,l()({},I)):(0,h.jsx)(y,l()({},I))})},47844:function(ze,te,e){"use strict";e.d(te,{B:function(){return f},G:function(){return L}});var $=e(97857),l=e.n($),V=e(94350),c=e(67294),D=e(85893),f=function(){var W=(0,c.useContext)(V.SchemaOptionsContext);return W||{}},L=(0,c.memo)(function(r){var W=r.children,p=f(),A=(0,c.useMemo)(function(){return l()(l()({},p.components),r.components)},[p.components,r.components]),h=(0,c.useMemo)(function(){return l()(l()({},p.scope),r.scope)},[p.scope,r.scope]),M=(0,c.useMemo)(function(){return{scope:h,components:A}},[h,A]);return(0,D.jsx)(V.SchemaOptionsContext.Provider,{value:M,children:(0,D.jsx)(V.SchemaComponentsContext.Provider,{value:A,children:(0,D.jsx)(V.ExpressionScope,{value:h,children:W})})})});L.displayName="SchemaComponentOptions"},70993:function(ze,te,e){"use strict";e.d(te,{_b:function(){return x},RV:function(){return I.R},m1:function(){return m.m},n6:function(){return S.n},G0:function(){return b.G},a$:function(){return Q},Tz:function(){return N},Bs:function(){return b.B}});var $=e(15009),l=e.n($),V=e(99289),c=e.n(V),D=e(12444),f=e.n(D),L=e(72004),r=e.n(L),W=e(31996),p=e.n(W),A=e(26037),h=e.n(A),M=e(51947),t=e(83062),o=e(15867),u=e(67294),B=e(49218),y=e(26793),C=e(40868),T=e(68230),U=e(85893),x=function(){var q=(0,C.ngQ)(),oe=q.designable,ne=q.setDesignable,Z=(0,y.$)(),k=Z.t,Y=(0,T.d)(),De=Y.token,ee={};return oe?ee.backgroundColor="var(--colorSettings)":ee.backgroundColor="transparent",(0,B.y1)("Ctrl+Shift+U",function(){return ne(!oe)},[oe]),(0,U.jsx)(t.Z,{title:k("UI Editor"),children:(0,U.jsx)(o.ZP,{"data-testid":"ui-editor-button",icon:(0,U.jsx)(M.Z,{style:{color:De.colorTextHeaderMenu}}),title:k("UI Editor"),style:ee,onClick:function(){ne(!oe)}})})},I=e(44245),m=e(93587),S=e(93323),b=e(47844),i=e(97857),w=e.n(i),E=e(5574),g=e.n(E),v=e(86201),a=e(94350),d=e(73773),R=e(90105),j=e(61736),n=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(q).concat((0,d.uid)())};a.Schema.silent(!0);var P={},z={silent:!0,compile:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=function(){if(z.silent)try{return new Function("$root","with($root) { return (".concat(q,"); }"))(oe)}catch(k){return"{{".concat(q,"}}")}else return new Function("$root","with($root) { return (".concat(q,"); }"))(oe)};return P[q]?P[q]:q.trim().startsWith("t(")?(P[q]=ne(),P[q]):ne()}};a.Schema.registerCompiler(z.compile);var N=function(q){var oe=q.designable,ne=q.onDesignableChange,Z=q.components,k=q.children,Y=(0,u.useContext)(j.D),De=(0,b.B)(),ee=(0,R.Z)(),he=(0,u.useState)((0,d.uid)()),be=g()(he,2),Fe=be[0],_e=be[1],Te=(0,u.useMemo)(function(){return q.form||(0,v.createForm)()},[Fe]),Ae=(0,y.$)(),ue=Ae.t,ae=(0,u.useMemo)(function(){return w()(w()({},q.scope),{},{t:ue,randomString:n})},[q.scope,ue,De==null?void 0:De.scope]),ge=(0,u.useState)(oe),se=g()(ge,2),pe=se[0],xe=se[1],Se=(0,u.useMemo)(function(){return typeof oe=="boolean"?oe:pe},[oe,pe,Y.designable]),je=(0,u.useMemo)(function(){return function(Oe){typeof Se!="boolean"&&xe(Oe),ne==null||ne(Oe)}},[Se,ne]),Le=(0,u.useCallback)(function(){_e((0,d.uid)())},[]);return(0,U.jsx)(j.D.Provider,{value:{scope:ae,components:Z,reset:Le,refresh:ee,designable:Se,setDesignable:je},children:(0,U.jsx)(a.FormProvider,{form:Te,children:(0,U.jsx)(b.G,{inherit:!0,scope:ae,components:Z,children:k})})})};N.displayName="SchemaComponentProvider";var G=e(31601),Q=function(H){p()(oe,H);var q=h()(oe);function oe(){return f()(this,oe),q.apply(this,arguments)}return r()(oe,[{key:"load",value:function(){var ne=c()(l()().mark(function k(){return l()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:this.addComponents();case 1:case"end":return De.stop()}},k,this)}));function Z(){return ne.apply(this,arguments)}return Z}()},{key:"addComponents",value:function(){this.app.addComponents({DesignableSwitch:x})}}]),oe}(G.S),K=null},84577:function(ze,te,e){"use strict";e.d(te,{zz:function(){return L.zz},Pl:function(){return L.Pl},oB:function(){return L.oB},lI:function(){return l},hi:function(){return C.hi},eJ:function(){return V.e},Co:function(){return f},aZ:function(){return C.aZ},ng:function(){return L.ng},et:function(){return r.e},cL:function(){return u},fd:function(){return T},Cl:function(){return A},vH:function(){return B},sR:function(){return L.sR},wN:function(){return y.w},Dm:function(){return M},fM:function(){return C.fM}});var $=e(67294),l=function(x){var I=(0,$.useRef)(null);return(0,$.useEffect)(function(){return I.current&&x!==I.current&&I.current.onUnmount(),I.current=x,x.onMount(),function(){x.onUnmount()}},[x]),x},V=e(96365),c=e(94350),D=e(96486),f=function(x,I){var m=(0,$.useContext)(c.SchemaOptionsContext),S=m.components;return x?typeof x!="string"?x:(0,D.get)(S,x)||I:I},L=e(94516),r=e(98146),W=e(97857),p=e.n(W),A=function(x){var I=(0,$.useContext)(c.SchemaOptionsContext),m=(0,$.useContext)(c.SchemaExpressionScopeContext),S=(0,$.useRef)();return S.current=m,x.toFieldProps(p()(p()({},I),{},{get scope(){return p()(p()({},I.scope),S.current)}}))},h=e(61736);function M(){return(0,$.useContext)(h.D)}var t=e(26793),o=e(6145),u=function(){var x,I=(0,o.useCollectionManager_deprecated)(),m=I.getCollectionJoinField,S=I.getCollection,b=(0,c.useFieldSchema)(),i=(0,o.useCollection_deprecated)(),w=i.getField,E=w(b.name)||m(b["x-collection-field"]),g=(0,t.$)(),v=g.t,a=((x=b["x-component-props"])===null||x===void 0?void 0:x.fieldNames)||{},d=a.label,R=(0,$.useMemo)(function(){if(!(!E||!(E!=null&&E.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m"].includes(E.interface)){var j=S(E.target);if((j==null?void 0:j.template)==="file")return[{label:v("Record picker"),value:"CollectionField"},{label:v("Select"),value:"AssociationSelect"}];switch(E.interface){case"o2m":return[{label:v("Record picker"),value:"CollectionField"},{label:v("Subtable"),value:"TableField"},{label:v("Select"),value:"AssociationSelect"}];case"m2o":case"m2m":case"linkTo":return[{label:v("Record picker"),value:"CollectionField"},{label:v("Select"),value:"AssociationSelect"}];default:return[{label:v("Record picker"),value:"CollectionField"},{label:v("Subform"),value:"FormField"},{label:v("Select"),value:"AssociationSelect"}]}}},[v,E==null?void 0:E.interface,d]);return R},B=function(){var x,I=(0,c.useField)(),m=(0,c.useFieldSchema)(),S=(0,o.useCollection_deprecated)(),b=S.getField,i=(0,o.useCollectionManager_deprecated)(),w=i.getCollectionJoinField,E=b(m.name)||w(m["x-collection-field"]),g=(0,V.e)();(0,$.useEffect)(function(){if(!(I!=null&&I.title)){var v;I.title=g(E==null||(v=E.uiSchema)===null||v===void 0?void 0:v.title)}},[E==null||(x=E.uiSchema)===null||x===void 0?void 0:x.title])},y=e(9780),C=e(18686),T=function(x){var I,m=(0,t.$)(),S=m.t,b=(0,o.useCollectionManager_deprecated)(),i=b.getCollectionJoinField,w=b.getCollection,E=(0,c.useFieldSchema)(),g=(x==null?void 0:x.fieldSchema)||E,v=(0,c.useField)(),a=(0,c.useForm)(),d=(g==null?void 0:g["x-read-pretty"])||v.readPretty||a.readPretty,R=x==null?void 0:x.fieldSchema,j=(0,o.useCollection_deprecated)(),n=j.getField,P=(x==null?void 0:x.collectionField)||n(g.name)||i(g["x-collection-field"]),z=((I=g["x-component-props"])===null||I===void 0?void 0:I.fieldNames)||{},N=z.label,G=(0,$.useMemo)(function(){if(!(!P||!(P!=null&&P.interface))&&["o2o","oho","obo","o2m","linkTo","m2o","m2m","updatedBy","createdBy","mbm"].includes(P.interface)){var Q=w(P.target);if((Q==null?void 0:Q.template)==="file")return d?[{label:S("Title"),value:"Select"},{label:S("File manager"),value:"FileManager"},{label:S("Tag"),value:"Tag"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},{label:S("File manager"),value:"FileManager"}];if((Q==null?void 0:Q.template)==="tree"&&["m2m","o2m","m2o"].includes(P.interface))return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"},!R&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&["m2m","o2m"].includes(P.interface)&&{label:S("Sub-table"),value:"SubTable"},!R&&{label:S("Cascade Select"),value:"CascadeSelect"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];switch(P.interface){case"o2m":return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-table"),value:"SubTable"},!R&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"},!R&&{label:S("Sub-table"),value:"SubTable"}];case"m2m":case"mbm":return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"},!R&&{label:S("Sub-table"),value:"SubTable"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-table"),value:"SubTable"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];case"m2o":case"linkTo":return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}];default:return d?[{label:S("Title"),value:"Select"},{label:S("Tag"),value:"Tag"},!R&&{label:S("Sub-details"),value:"Nester"}]:[{label:S("Select"),value:"Select"},{label:S("Record picker"),value:"Picker"},!R&&{label:S("Sub-form"),value:"Nester"},{label:S("Sub-form(Popover)"),value:"PopoverNester"}]}}},[S,P==null?void 0:P.interface,N]);return(G||[]).filter(Boolean)}},18686:function(ze,te,e){"use strict";e.d(te,{aZ:function(){return x},fM:function(){return m},hi:function(){return I}});var $=e(5574),l=e.n($),V=e(97857),c=e.n(V),D=e(94350),f=e(83204),L=e(9361),r=e(96486),W=e.n(r),p=e(67294),A=e(40868),h=e(21143),M=e(10097),t=e(1892),o=e(28561),u=function(i,w,E,g){return i?g.paddingContentHorizontalLG:E?w?g.controlPaddingHorizontal+3*g.controlPaddingHorizontalSM+22+g.paddingContentHorizontalLG:g.paddingContentHorizontalLG+12:w?g.paddingSM+g.controlHeight+g.marginXS+2*g.controlPaddingHorizontalSM+22+g.paddingContentHorizontalLG:g.controlHeight+g.marginXS+(g.paddingXXS+2)*2+g.paddingContentHorizontalLG},B=function(i){var w=L.Z.useToken(),E=w.token,g=(0,A.ngQ)(),v=g.designable,a=(0,M.useBlockHeightProps)(),d=a.heightProps,R=i||d||{},j=R.disablePageHeader,n=R.enablePageTabs,P=R.hidePageTitle,z=E.sizeXXL-2,N=v?E.controlHeight+2*E.paddingContentHorizontalLG:1*E.paddingContentHorizontalLG,G=u(j,n,P,E);return z+G+N},y=function(){var i=L.Z.useToken(),w=i.token,E=(0,A.ngQ)(),g=E.designable,v=w.paddingContentVerticalLG+w.margin+2*w.paddingContentVertical+24,a=g?w.controlHeight+2*w.paddingContentHorizontalLG:1*w.paddingContentHorizontalLG;return v+a},C=function(i){var w=(0,D.useFieldSchema)(),E=S(w),g=B(i),v=y();return E?v:g},T=["users_jobs","approvals","approvalRecords"],U=function(){var i,w,E=L.Z.useToken(),g=E.token,v=(0,M.useBlockHeightProps)(),a=v.heightProps,d=(0,t.Si)(),R=d.heightProps,j=(0,A.ngQ)(),n=j.designable,P=(0,D.useFieldSchema)(),z=R||a,N=C(z),G=(i=(0,h.useDataBlockRequest)())!==null&&i!==void 0?i:{},Q=G.data,K=(0,h.useCollection)(),H=K.name,q=(Q==null?void 0:Q.meta)||{},oe=q.count,ne=q.pageSize,Z=oe>ne,k=z.heightMode,Y=z.height,De=z.title;if(!(!(z!=null&&z.heightMode)||k===o.j.DEFAULT)){var ee=Object.keys(((w=P.parent.properties.actions)===null||w===void 0?void 0:w.properties)||{}).length>0,he=Z?g.controlHeight+g.padding+g.marginLG:g.marginLG,be=ee||n?g.controlHeight+2*g.marginLG:g.marginLG,Fe=(n&&!T.includes(H)?g.controlHeight:22)+2*g.padding+1,_e=De?g.fontSizeLG*g.lineHeightLG+g.padding*2-1:0;return k===o.j.FULL_HEIGHT?window.innerHeight-N-_e-Fe-be-he:Y-_e-be-Fe-he}},x=function(i){var w=(0,M.useBlockHeightProps)(),E=w.heightProps,g=C(),v=L.Z.useToken(),a=v.token,d=E||{},R=d.heightMode,j=d.height,n=d.title,P=n?a.fontSizeLG*a.lineHeightLG+a.padding*2-1:0;if(!(!(E!=null&&E.heightMode)||R===o.j.DEFAULT)){if(R===o.j.FULL_HEIGHT){var z=window.innerHeight-g;return i!=null&&i.removeBlockHeaderHeight&&(z=z-P),i!=null&&i.innerExtraHeight&&(z=z-i.innerExtraHeight),z}return j}},I=function(){var i=(0,D.useFieldSchema)(),w=(0,p.useMemo)(function(){return(0,M.getPageSchema)(i)},[]),E=(w==null?void 0:w["x-component-props"])||{},g=E.disablePageHeader,v=E.enablePageTabs,a=E.hidePageTitle,d=c()(c()({},i==null?void 0:i["x-component-props"]),{},{disablePageHeader:g,enablePageTabs:v,hidePageTitle:a}),R=C(d),j=d||{},n=j.heightMode,P=j.height;if(!(!(d!=null&&d.heightMode)||n===o.j.DEFAULT))return n===o.j.FULL_HEIGHT?window.innerHeight-R:P},m=function(){var i=(0,p.useState)(),w=l()(i,2),E=w[0],g=w[1],v=(0,p.useRef)(null),a=U(),d=(0,p.useCallback)((0,r.debounce)(function(){var j;if(v.current){var n=v.current.getBoundingClientRect(),P=(j=v.current.querySelector(".ant-table"))===null||j===void 0?void 0:j.getBoundingClientRect();P&&g(n.width)}},100),[a]),R=(0,p.useCallback)(function(j){v.current=j&&j.children?j.children[0]:null,d()},[d]);return(0,f.Z)("resize",d),{height:a,width:E,tableSizeRefCallback:R}},S=function b(i){return i?i["x-component"]==="Action.Container"?!0:b(i.parent):null}},96365:function(ze,te,e){"use strict";e.d(te,{e:function(){return r}});var $=e(97857),l=e.n($),V=e(52677),c=e.n(V),D=e(94350),f=e(67294),L={},r=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{noCache:!1},A=p.noCache,h=(0,f.useContext)(D.SchemaOptionsContext),M=(0,f.useContext)(D.SchemaExpressionScopeContext);return function(t,o){var u=!1,B;if(typeof t=="string"&&t.startsWith("{{")&&(u=!0,B=t),t&&c()(t)==="object"&&!(0,f.isValidElement)(t)&&(u=!0,B=JSON.stringify(t)),Array.isArray(t)&&(u=!0),u){var y=l()(l()(l()({},h.scope),M),o);if(!B)return D.Schema.compile(t,y);try{return A?D.Schema.compile(t,y):(L[B]=L[B]||D.Schema.compile(t,y),L[B])}catch(C){return console.log("useCompile error",t,C),D.Schema.compile(t,y)}}return t}}},94516:function(ze,te,e){"use strict";e.d(te,{zz:function(){return N},Pl:function(){return d},oB:function(){return P},ng:function(){return Q},sR:function(){return G}});var $=e(5574),l=e.n($),V=e(19632),c=e.n(V),D=e(15009),f=e.n(D),L=e(99289),r=e.n(L),W=e(12444),p=e.n(W),A=e(72004),h=e.n(A),M=e(9783),t=e.n(M),o=e(97857),u=e.n(o),B=e(94350),y=e(73773),C=e(45360),T=e(50361),U=e.n(T),x=e(27361),I=e.n(x),m=e(36968),S=e.n(m),b=e(67294),i=e(26793),w=e(12174),E=e(61736);function g(K,H){if(K)return K["x-app-version"]||(K["x-app-version"]=H),Object.keys(K.properties||{}).forEach(function(q){var oe;g((oe=K.properties)===null||oe===void 0?void 0:oe[q],H)}),K}var v={i8:"1.3.31-beta"},a=e(85893);function d(K){return new N(K)}var R=function K(H){H&&(H["x-uid"]||(H["x-uid"]=(0,y.uid)()),Object.keys(H.properties||{}).forEach(function(q){K(H.properties[q])}))},j=function(H){return H},n=function(H,q){if(!(!H||!q)){for(var oe in q)if(Object.prototype.hasOwnProperty.call(q,oe)){var ne=q[oe];if(ne!==(H==null?void 0:H[oe]))return!1}return!0}},P=function(H,q){if(H["x-uid"]&&H["x-uid"]===q["x-uid"])return[null,H.toJSON()];var oe=H.toJSON(),ne=u()(u()({},oe),{},{properties:{}}),Z=null,k=function Y(De,ee){Object.keys(De||{}).forEach(function(he){var be=De[he];if(be["x-uid"]===q["x-uid"]){Z=De[he];return}else ee.properties[he]=u()(u()({},be),{},{properties:{}}),Y(be==null?void 0:be.properties,ee.properties[he])})};return k(oe.properties,ne),[ne,Z]},z=function(H){return H},N=function(){function K(H){p()(this,K),t()(this,"current",void 0),t()(this,"options",void 0),t()(this,"appVersion",void 0),t()(this,"events",{}),this.options=H,this.current=H.current,this.appVersion=H.appVersion}return h()(K,[{key:"model",get:function(){return this.options.model}},{key:"query",get:function(){return this.options.query}},{key:"loadAPIClientEvents",value:function(){var q=this,oe=this.options,ne=oe.api,Z=oe.t,k=Z===void 0?z:Z;if(ne){var Y=function(ee){if(!ee)return[];var he=Object.values(ee.properties).length,be=[];return ee.mapProperties(function(Fe){Fe["x-component-props"]=Fe["x-component-props"]||{},Fe["x-component-props"].width=100/he,Fe["x-uid"]&&be.push({"x-uid":Fe["x-uid"],"x-component-props":Fe["x-component-props"]})}),ee["x-uid"]&&be.length?be:[]};this.on("insertAdjacent",function(){var De=r()(f()().mark(function ee(he){var be,Fe,_e,Te,Ae,ue,ae,ge,se,pe;return f()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(Fe=he.onSuccess,_e=he.current,Te=he.position,Ae=he.schema,ue=he.wrap,ae=he.wrapped,ge=he.removed,se=[],(ae==null?void 0:ae["x-component"])==="Grid.Col"&&(se=se.concat(Y(ae.parent))),(ge==null?void 0:ge["x-component"])==="Grid.Col"&&(se=se.concat(Y(ge.parent))),q.refresh(),_e["x-uid"]){Se.next=7;break}return Se.abrupt("return");case 7:return Se.next=9,ne.request({url:"/uiSchemas:insertAdjacent/".concat(_e["x-uid"],"?position=").concat(Te),method:"post",data:{schema:g(Ae,q.appVersion),wrap:ue}});case 9:if(pe=Se.sent,!se.length){Se.next=13;break}return Se.next=13,ne.request({url:"/uiSchemas:batchPatch",method:"post",data:se});case 13:if(!(ge!=null&&ge["x-uid"])){Se.next=16;break}return Se.next=16,ne.request({url:"/uiSchemas:remove/".concat(ge["x-uid"]),method:"post"});case 16:Fe==null||Fe(pe==null||(be=pe.data)===null||be===void 0?void 0:be.data),C.ZP.success(k("Saved successfully"),.2);case 18:case"end":return Se.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("patch",function(){var De=r()(f()().mark(function ee(he){var be;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(be=he.schema,q.refresh(),be!=null&&be["x-uid"]){_e.next=4;break}return _e.abrupt("return");case 4:return _e.next=6,ne.request({url:"/uiSchemas:patch",method:"post",data:u()({},be)});case 6:C.ZP.success(k("Saved successfully"),.2);case 7:case"end":return _e.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("initializeActionContext",function(){var De=r()(f()().mark(function ee(he){var be;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(be=he.schema,q.refresh(),be!=null&&be["x-uid"]){_e.next=4;break}return _e.abrupt("return");case 4:return _e.next=6,ne.request({url:"/uiSchemas:initializeActionContext",method:"post",data:u()({},be)});case 6:case"end":return _e.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("batchPatch",function(){var De=r()(f()().mark(function ee(he){var be;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return be=he.schemas,q.refresh(),_e.next=4,ne.request({url:"/uiSchemas:batchPatch",method:"post",data:be});case 4:C.ZP.success(k("Saved successfully"),.2);case 5:case"end":return _e.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}()),this.on("remove",function(){var De=r()(f()().mark(function ee(he){var be,Fe;return f()().wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(be=he.removed,Fe=[],(be==null?void 0:be["x-component"])==="Grid.Col"&&(Fe=Y(be.parent)),q.refresh(),be!=null&&be["x-uid"]){Te.next=6;break}return Te.abrupt("return");case 6:return Te.next=8,ne.request({url:"/uiSchemas:remove/".concat(be["x-uid"]),method:"post"});case 8:if(!Fe.length){Te.next=11;break}return Te.next=11,ne.request({url:"/uiSchemas:batchPatch",method:"post",data:Fe});case 11:C.ZP.success(k("Saved successfully"),.2);case 12:case"end":return Te.stop()}},ee)}));return function(ee){return De.apply(this,arguments)}}())}}},{key:"prepareProperty",value:function(q){q.type||(q.type="void"),q.name||(q.name=(0,y.uid)()),this.current["x-uid"]&&R(q)}},{key:"on",value:function(q,oe){this.events[q]||(this.events[q]=[]),this.events[q].push(oe)}},{key:"emit",value:function(){var H=r()(f()().mark(function oe(ne){var Z=this,k,Y,De,ee,he,be=arguments;return f()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(this.events[ne]){_e.next=2;break}return _e.abrupt("return");case 2:for(k=be.length,Y=new Array(k>1?k-1:0),De=1;De<k;De++)Y[De-1]=be[De];return ee=Y[0],he=Y.slice(1),_e.abrupt("return",Promise.all(this.events[ne].map(function(Te){return Te.bind(Z).apply(void 0,[u()({current:Z.current},ee)].concat(c()(he)))})));case 5:case"end":return _e.stop()}},oe,this)}));function q(oe){return H.apply(this,arguments)}return q}()},{key:"parentsIn",value:function(q){if(!q||!B.Schema.isSchemaInstance(q))return!1;for(var oe=this.current;(ne=oe)!==null&&ne!==void 0&&ne.parent;){var ne;if(oe.parent===q)return!0;oe=oe.parent}return!1}},{key:"refresh",value:function(){var q=this.options.refresh;return q==null?void 0:q()}},{key:"deepMerge",value:function(q){var oe=this,ne={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"},Z={"x-decorator-props":"decoratorProps","x-component-props":"componentProps","x-data":"data"};Object.keys(q).forEach(function(k){ne[k]?(oe.current[k]=q[k],oe.updateModel(ne[k],q[k])):Z[k]?Object.keys(q[k]).forEach(function(Y){S()(oe.current,[k,Y],q[k][Y]),oe.updateModel([Z[k],Y],q[k][Y])}):oe.current[k]=q[k]}),this.emit("patch",{schema:q})}},{key:"getSchemaAttribute",value:function(q,oe){return I()(this.current,q,oe)}},{key:"shallowMerge",value:function(q){var oe=this,ne={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(q).forEach(function(Z){oe.current[Z]=q[Z],ne[Z]&&oe.updateModel(ne[Z],q[Z])}),this.emit("patch",{schema:q})}},{key:"updateModel",value:function(q,oe){var ne=function(k){S()(k,q,oe)};this.model&&ne(this.model),this.query&&this.query.take(ne)}},{key:"insertAdjacent",value:function(q,oe){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};switch(q){case"beforeBegin":return this.insertBeforeBegin(oe,ne);case"afterBegin":return this.insertAfterBegin(oe,ne);case"beforeEnd":return this.insertBeforeEnd(oe,ne);case"afterEnd":return this.insertAfterEnd(oe,ne)}}},{key:"recursiveRemoveIfNoChildren",value:function(q,oe){if(q){for(var ne=q,Z,k=oe==null?void 0:oe.breakRemoveOn;ne;){if(typeof k=="function"){if(k(ne))break}else if(n(ne,k))break;var Y=Object.keys(ne.properties||{}).length;if(Y>0)break;ne.parent&&(Z=ne.parent.removeProperty(ne.name)),ne=ne.parent}return Z}}},{key:"remove",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=oe.breakRemoveOn,Z=oe.removeParentsIfNoChildren,k=q||this.current,Y=k.parent.removeProperty(k.name);if(Z){var De=this.recursiveRemoveIfNoChildren(k.parent,{breakRemoveOn:ne});De&&(Y=De)}return this.emit("remove",{removed:Y})}},{key:"removeWithoutEmit",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=oe.breakRemoveOn,Z=oe.removeParentsIfNoChildren,k=q||this.current,Y=k.parent.removeProperty(k.name);if(Z){var De=this.recursiveRemoveIfNoChildren(k.parent,{breakRemoveOn:ne});De&&(Y=De)}return Y}},{key:"insertBeforeBeginOrAfterEnd",value:function(q){var oe=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)&&B.Schema.isSchemaInstance(q)&&this.current.parent===q.parent){var Z=0,k=0;return this.current.parent.mapProperties(function(Y,De,ee){oe.current.name===De&&(k=ee),q.name===De&&(Z=ee)}),Z>k?this.insertBeforeBegin(q,ne):this.insertAfterEnd(q,ne)}}},{key:"insertBeforeBegin",value:function(q){var oe=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){var Z={onSuccess:ne.onSuccess},k=ne.wrap,Y=k===void 0?j:k,De=ne.breakRemoveOn,ee=ne.removeParentsIfNoChildren;if(B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),ee&&(Z.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:De}))}else q&&(q=U()(q));var he={},be=!1,Fe=0,_e=0;this.current.parent.mapProperties(function(pe,xe){xe===oe.current.name&&(_e=Fe,be=!0,++Fe),pe["x-index"]=Fe,++Fe,be&&(he[xe]=pe,oe.current.parent.removeProperty(xe))}),this.prepareProperty(q);var Te=Y(q),Ae=this.current.parent.addProperty(Te.name||(0,y.uid)(),Te);Ae["x-index"]=_e,Ae.parent=this.current.parent,this.current.parent.setProperties(he);var ue=P(Ae,q),ae=l()(ue,2),ge=ae[0],se=ae[1];this.emit("insertAdjacent",u()({position:"beforeBegin",schema:se,wrapped:Te,wrap:ge},Z))}}},{key:"insertAfterBegin",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){var ne={onSuccess:oe.onSuccess},Z=oe.wrap,k=Z===void 0?j:Z,Y=oe.breakRemoveOn,De=oe.removeParentsIfNoChildren;if(B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),De&&(ne.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:Y}))}else q&&(q=U()(q));var ee={},he=1;this.current.mapProperties(function(ae,ge){ae["x-index"]=he,++he,ee[ge]=ae}),this.current.properties={},this.prepareProperty(q);var be=k(q),Fe=this.current.addProperty(be.name||(0,y.uid)(),be);Fe["x-index"]=0,Fe.parent=this.current,this.current.setProperties(ee);var _e=P(Fe,q),Te=l()(_e,2),Ae=Te[0],ue=Te[1];this.emit("insertAdjacent",u()({position:"afterBegin",schema:ue,wrap:Ae,wrapped:be},ne))}}},{key:"insertBeforeEnd",value:function(q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){delete q["x-index"];var ne={onSuccess:oe.onSuccess},Z=oe.wrap,k=Z===void 0?j:Z,Y=oe.breakRemoveOn,De=oe.removeParentsIfNoChildren;if(B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),De&&(ne.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:Y}))}else q&&(q=U()(q));this.prepareProperty(q);var ee=k(q),he=this.current.addProperty(ee.name||(0,y.uid)(),ee);he.parent=this.current;var be=P(he,q),Fe=l()(be,2),_e=Fe[0],Te=Fe[1];return this.emit("insertAdjacent",u()({position:"beforeEnd",schema:Te,wrap:_e,wrapped:ee},ne))}}},{key:"insertAfterEnd",value:function(q){var oe=this,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B.Schema.isSchemaInstance(this.current)){var Z={onSuccess:ne==null?void 0:ne.onSuccess},k=ne.wrap,Y=k===void 0?j:k,De=ne.breakRemoveOn,ee=ne.removeParentsIfNoChildren,he=0,be=0,Fe=!1,_e={};if(this.current.parent.mapProperties(function(pe,xe){pe["x-index"]=he,xe===oe.current.name&&(++he,be=he,Fe=!0),++he,Fe&&xe!==oe.current.name&&(_e[xe]=pe,oe.current.parent.removeProperty(xe))}),B.Schema.isSchemaInstance(q)){if(this.parentsIn(q)){this.emit("error",{code:"parent_is_not_allowed",schema:q});return}q.parent.removeProperty(q.name),ee&&(Z.removed=this.recursiveRemoveIfNoChildren(q.parent,{breakRemoveOn:De})),q.parent=null}else q&&(q=U()(q));this.prepareProperty(q);var Te=Y(q),Ae=this.current.parent.addProperty(Te.name||(0,y.uid)(),Te);Ae.parent=this.current.parent,Ae["x-index"]=be,this.current.parent.setProperties(_e);var ue=P(Ae,q),ae=l()(ue,2),ge=ae[0],se=ae[1];this.emit("insertAdjacent",u()({position:"afterEnd",schema:se,wrap:ge,wrapped:Te},Z))}}}]),K}();function G(){var K=(0,b.useContext)(B.SchemaOptionsContext),H=(0,b.useMemo)(function(){return(K==null?void 0:K.components)||{}},[K]),q=function(ne){if(!ne)return null;if(typeof ne!="string")return ne;var Z=I()(H,ne);return Z||console.error('[nocobase]: Component "'.concat(ne,'" not found')),Z};return q}function Q(){var K=(0,b.useContext)(E.D),H=K.designable,q=K.setDesignable,oe=K.refresh,ne=K.reset,Z=(0,b.useContext)(B.SchemaOptionsContext),k=(0,b.useMemo)(function(){return(Z==null?void 0:Z.components)||{}},[Z]),Y=(0,b.useMemo)(function(){return function(){return(0,a.jsx)(a.Fragment,{})}},[]),De=(0,B.useField)(),ee=(0,B.useFieldSchema)(),he=(0,w.LY)(),be=(0,i.$)(),Fe=be.t,_e=(0,b.useMemo)(function(){return d({t:Fe,api:he,refresh:oe,current:ee,model:De,appVersion:v.i8})},[Fe,he,oe,ee,De]);return(0,b.useEffect)(function(){_e.loadAPIClientEvents()},[_e]),{dn:_e,designable:H,reset:ne,refresh:oe,setDesignable:q,DesignableBar:Y,findComponent:(0,b.useCallback)(function(Te){return Te?typeof Te!="string"?Te:I()(k,Te):null},[I()]),on:_e.on.bind(_e),patch:(0,b.useCallback)(function(Te,Ae){var ue=function(se){Object.keys(se).forEach(function(pe){var xe=se[pe];pe==="title"&&(De.title=xe,ee.title=xe),pe==="x-decorator-props"&&(De.decoratorProps||(De.decoratorProps={}),ee["x-decorator-props"]||(ee["x-decorator-props"]={}),Object.keys(xe).forEach(function(Se){De.decoratorProps[Se]=xe[Se],ee["x-decorator-props"][Se]=xe[Se]})),pe==="x-component-props"&&(De.componentProps||(De.componentProps={}),ee["x-component-props"]||(ee["x-component-props"]={}),Object.keys(xe).forEach(function(Se){De.componentProps[Se]=xe[Se],ee["x-component-props"][Se]=xe[Se]}))})};if(typeof Te=="string"){var ae={};return S()(ae,Te,Ae),ue(ae)}ue(Te),oe()},[_e]),shallowMerge:(0,b.useCallback)(function(Te){_e.shallowMerge(Te)},[_e]),deepMerge:(0,b.useCallback)(function(Te){_e.deepMerge(Te)},[_e]),remove:(0,b.useCallback)(function(Te,Ae){_e.remove(Te,Ae)},[_e]),insertAdjacent:(0,b.useCallback)(function(Te,Ae,ue){_e.insertAdjacent(Te,Ae,ue)},[_e]),insertBeforeBegin:(0,b.useCallback)(function(Te){_e.insertBeforeBegin(Te)},[_e]),insertAfterBegin:(0,b.useCallback)(function(Te){_e.insertAfterBegin(Te)},[_e]),insertBeforeEnd:(0,b.useCallback)(function(Te){_e.insertBeforeEnd(Te)},[_e]),insertAfterEnd:(0,b.useCallback)(function(Te){_e.insertAfterEnd(Te)},[_e])}}},98146:function(ze,te,e){"use strict";e.d(te,{e:function(){return f}});var $=e(94350),l=e(84577),V=e(67294),c=e(26386),D=function(){return null},f=function(){var r=(0,l.ng)(),W=r.designable,p=(0,$.useFieldSchema)(),A=(0,V.useMemo)(function(){return p["x-designer"]||p["x-toolbar"]?p["x-designer"]||p["x-toolbar"]:p["x-settings"]?c.Mf:D},[p]),h=(0,l.Co)(A);return W&&h||D}},9780:function(ze,te,e){"use strict";e.d(te,{w:function(){return L}});var $=e(97857),l=e.n($),V=e(13769),c=e.n(V),D=["useProps"],f=function(){return{}},L=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=W.useProps,A=p===void 0?f:p,h=c()(W,D),M=A;typeof A!="function"&&(M=f);var t=M();return l()(l()({},h),t)}},40868:function(ze,te,e){"use strict";e.d(te,{aUM:function(){return x.aU},olz:function(){return x.ol},N0i:function(){return x.N0},fWn:function(){return x.fW},EIK:function(){return x.EI},$Lt:function(){return x.$L},$b8:function(){return x.$b},HTy:function(){return ya},lkv:function(){return zr},rDu:function(){return Ja},eYL:function(){return x.eY},Rat:function(){return wr},oAt:function(){return yr},E7E:function(){return br},$SD:function(){return vi},fUi:function(){return Wr.fU},QcG:function(){return Gl},MLy:function(){return go.M},gOu:function(){return _s},jYG:function(){return Na.j},C1I:function(){return x.C1},Ssf:function(){return Zl},vTp:function(){return Yl},XZJ:function(){return Jr},Tt2:function(){return ns},zH8:function(){return ls},Q5L:function(){return cs},Pok:function(){return pi},Vm0:function(){return ps},xI_:function(){return rs},Lip:function(){return os},Mtg:function(){return Qr.Mt},iNu:function(){return Qr.iN},zzt:function(){return Mt.zz},_bl:function(){return C._b},POi:function(){return fs},AOY:function(){return he},LBT:function(){return y.DndContext},IWB:function(){return y.DragHandler},LCt:function(){return y.DraggableContext},FyH:function(){return Y.Fy},Nir:function(){return Y.Ni},q8U:function(){return Y.q8},HGA:function(){return Y.HG},QTe:function(){return Y.QT},JEX:function(){return Y.JE},fAH:function(){return ul},$w$:function(){return Y.$w},nBj:function(){return Y.nB},Oct:function(){return Y.Oc},zdw:function(){return Y.zd},CXR:function(){return ll},BQs:function(){return Pr.BQ},Hj5:function(){return ro.H},M0b:function(){return fi},wn$:function(){return bn.wn},GzZ:function(){return bn.Gz},tJZ:function(){return bn.tJ},fox:function(){return bn.fo},VTd:function(){return bn.VT},XsZ:function(){return bn.Xs},AsW:function(){return wo},cLM:function(){return Uo},m__:function(){return Oo},l09:function(){return ne},D_t:function(){return Zi.D},WiK:function(){return zn},xJW:function(){return Y.xJ},RVL:function(){return C.RV},Bc8:function(){return yt},hG9:function(){return gi},DCh:function(){return hi},rjZ:function(){return Yr.rj},Cqo:function(){return $a},jg7:function(){return Yr.jg},gsn:function(){return Pr.gs},$18:function(){return Is},IIB:function(){return Pr.II},RnZ:function(){return Yi},mX2:function(){return Pr.mX},zDC:function(){return sr.zD},Phs:function(){return Pr.Ph},aVo:function(){return Va},UGj:function(){return el},yq5:function(){return tl},v2r:function(){return ia},HIW:function(){return Su},T3C:function(){return hr},d97:function(){return ca.d9},hGv:function(){return xr},tlE:function(){return Zs},rop:function(){return Qs},gGi:function(){return Ys},DBW:function(){return ma.D},MBS:function(){return Xs.M},pGO:function(){return eu},Y8K:function(){return yi},iVT:function(){return Pr.iV},ODP:function(){return sr.OD},lbb:function(){return sr.lb},b7w:function(){return sr.b7},sUk:function(){return sr.sU},x1j:function(){return x.x1},m1v:function(){return C.m1},glM:function(){return Ht},xZD:function(){return x.xZ},IuH:function(){return bn.Iu},MkN:function(){return x.Mk},Hof:function(){return nu},n6:function(){return C.n6},DDd:function(){return vv.D},G0E:function(){return C.G0},a$w:function(){return C.a$},TzZ:function(){return C.Tz},y00:function(){return x.y0},PhF:function(){return Ct},Cqv:function(){return y.ShowFormData},cof:function(){return x.co},bts:function(){return y.Sortable},Fop:function(){return y.SortableContext},TRI:function(){return y.SortableItem},ORg:function(){return y.SortableProvider},TaI:function(){return ou},qHe:function(){return $n.q},iA_:function(){return Rr},gvM:function(){return vu},SnY:function(){return cl},ASv:function(){return fu},bwk:function(){return Gr},mQc:function(){return Ei},c__:function(){return ka.c},QZ3:function(){return Dt},L39:function(){return Na.L},jII:function(){return dl},mPs:function(){return bu},tgM:function(){return yu},gqx:function(){return Wr.gq},Qm7:function(){return Wr.Qm},_wD:function(){return ba._w},rjl:function(){return ba.rj},Fjw:function(){return x.Fj},SLL:function(){return x.SL},sBv:function(){return x.sB},iTm:function(){return Y.iT},Pls:function(){return Mt.Pl},Oxq:function(){return wt},WLi:function(){return Ye},$9M:function(){return Y.$9},nCn:function(){return za},iNG:function(){return Ca},tD8:function(){return _i},pg9:function(){return Zn},Ofb:function(){return Y.Of},ibf:function(){return Xn},WyG:function(){return k},l6$:function(){return Re.l6},WGR:function(){return Mn},C$H:function(){return sr.C$},cNQ:function(){return sr.cN},I9l:function(){return y.getRenderContent},XQ2:function(){return $r.XQ},ZZb:function(){return Y.ZZ},elO:function(){return sr.el},CfU:function(){return Ur},SJF:function(){return Mr},_Ko:function(){return Pa},Mev:function(){return da},i2K:function(){return Yn},WmO:function(){return bn.Wm},oBi:function(){return Mt.oB},hKP:function(){return $r.hK},DU1:function(){return x.DU},XCj:function(){return x.XC},Vpg:function(){return fr},lIL:function(){return Mt.lI},KxP:function(){return go.K},hi9:function(){return Mt.hi},p27:function(){return x.p2},z9d:function(){return sl.z},eJW:function(){return Mt.eJ},Cor:function(){return Mt.Co},aZq:function(){return Mt.aZ},P1D:function(){return Qr.P1},ngQ:function(){return Mt.ng},ett:function(){return Mt.et},ySm:function(){return ro.y},Zd$:function(){return Y.Zd},cLh:function(){return Mt.cL},baz:function(){return Y.b},fde:function(){return Mt.fd},Xdt:function(){return sr.Xd},Cld:function(){return Mt.Cl},vH8:function(){return Mt.vH},PLH:function(){return bn.PL},V8t:function(){return bn.V8},tMk:function(){return bn.tM},xQm:function(){return bn.xQ},sRe:function(){return Mt.sR},frb:function(){return Bo},$N2:function(){return ko},U1u:function(){return qe},HS$:function(){return x.HS},vBu:function(){return x.vB},QYZ:function(){return x.QY},t9d:function(){return x.t9},Kgy:function(){return bn.Kg},aJ2:function(){return bn.aJ},n14:function(){return Yr.n1},DiB:function(){return Yr.Di},l1O:function(){return Y.l1},w5o:function(){return Y.w5},p3Q:function(){return Y.p3},G5e:function(){return Y.G5},xj2:function(){return Y.xj},rxY:function(){return Y.rx},Ils:function(){return sr.Il},zCB:function(){return x.zC},a4r:function(){return ma.a},wNf:function(){return Mt.wN},Dmu:function(){return Mt.Dm},Bsl:function(){return C.Bs},yKv:function(){return Hs.y},fMB:function(){return Mt.fM},gCg:function(){return ka.g},eT6:function(){return Y.eT},q4O:function(){return Y.q4},ymE:function(){return ba.ym}});var $={};e.r($),e.d($,{Action:function(){return x.aU},ActionBar:function(){return x.ol},ActionBarProvider:function(){return x.N0},ActionContext:function(){return x.fW},ActionContextProvider:function(){return x.EI},ActionDesigner:function(){return x.$L},AfterSuccess:function(){return x.$b},AntdSchemaComponentPlugin:function(){return ya},AntdSchemaComponentProvider:function(){return zr},AppendsTreeSelect:function(){return Ja},AssignedFieldValues:function(){return x.eY},AssociationField:function(){return wr},AssociationFieldMode:function(){return yr},AssociationFieldModeProvider:function(){return br},AssociationSelect:function(){return vi},AttachmentList:function(){return Wr.fU},AutoComplete:function(){return Gl},BackButtonUsedInSubPage:function(){return go.M},Block:function(){return _s},BlockItem:function(){return Na.j},ButtonEditor:function(){return x.C1},CardItem:function(){return Zl},Cascader:function(){return Yl},Checkbox:function(){return Jr},CollectionSelect:function(){return ns},ColorPicker:function(){return ls},ColorSelect:function(){return cs},Cron:function(){return pi},CronSet:function(){return ps},DataSourceCollectionCascader:function(){return rs},DataSourceSelect:function(){return os},DatePicker:function(){return Qr.Mt},DatePickerProvider:function(){return Qr.iN},Details:function(){return fs},DetailsDesigner:function(){return he},EditComponent:function(){return Y.Fy},EditDefaultValue:function(){return Y.Ni},EditDescription:function(){return Y.q8},EditOperator:function(){return Y.HG},EditPattern:function(){return Y.QT},EditRequired:function(){return Y.JE},EditSortField:function(){return ul},EditTitle:function(){return Y.$w},EditTitleField:function(){return Y.nB},EditTooltip:function(){return Y.Oc},EditValidationRules:function(){return Y.zd},Editable:function(){return ll},EllipsisWithTooltip:function(){return Pr.BQ},ErrorFallback:function(){return ro.H},Expand:function(){return fi},Filter:function(){return bn.wn},FilterAction:function(){return bn.Gz},FilterActionContext:function(){return bn.tJ},FilterContext:function(){return bn.fo},FilterDynamicComponent:function(){return bn.VT},FilterLogicContext:function(){return bn.Xs},FixedBlock:function(){return wo},FixedBlockDesignerItem:function(){return Uo},FixedBlockWrapper:function(){return Oo},Form:function(){return ne},FormDialog:function(){return Zi.D},FormField:function(){return zn},FormItem:function(){return Y.xJ},FormV2:function(){return yt},G2Plot:function(){return gi},G2PlotRenderer:function(){return hi},Grid:function(){return Yr.rj},GridCard:function(){return $a},GridRowContext:function(){return Yr.jg},HTMLEncode:function(){return Pr.gs},IconPicker:function(){return Is},Input:function(){return Pr.II},InputNumber:function(){return Yi},InputReadPretty:function(){return Pr.mX},InputRecordPicker:function(){return sr.zD},Json:function(){return Pr.Ph},List:function(){return Va},Markdown:function(){return el},MarkdownReadPretty:function(){return tl},Menu:function(){return ia},NanoIDInput:function(){return Su},Page:function(){return hr},PagePopups:function(){return ca.d9},PageTabs:function(){return xr},Pagination:function(){return Zs},Password:function(){return Qs},Percent:function(){return Ys},PopupSettingsProvider:function(){return ma.D},Preview:function(){return Xs.M},QuickEdit:function(){return eu},Radio:function(){return yi},ReadPretty:function(){return Pr.iV},ReadPrettyRecordPicker:function(){return sr.OD},RecordPicker:function(){return sr.lb},RecordPickerContext:function(){return sr.b7},RecordPickerProvider:function(){return sr.sU},RefreshDataBlockRequest:function(){return x.x1},RemoteSelect:function(){return Ht},RemoveButton:function(){return x.xZ},RemoveConditionContext:function(){return bn.Iu},RequestSettings:function(){return x.Mk},RichText:function(){return nu},SecondConFirm:function(){return x.y0},Select:function(){return Ct},SkipValidation:function(){return x.co},Space:function(){return ou},StablePopover:function(){return $n.q},Table:function(){return Rr},TableBlockDesigner:function(){return vu},TableField:function(){return cl},TableSelectorDesigner:function(){return fu},TableV2:function(){return Gr},Tabs:function(){return Ei},TabsContextProvider:function(){return ka.c},Templates:function(){return Dt},TestDesigner:function(){return Na.L},TimePicker:function(){return dl},TreeSelect:function(){return bu},UnixTimestamp:function(){return yu},Upload:function(){return Wr.gq},Uploader:function(){return Wr.Qm},Variable:function(){return ba._w},VariableScopeProvider:function(){return ba.rj},WorkflowConfig:function(){return x.Fj},actionSettings:function(){return x.SL},actionSettingsItems:function(){return x.sB},allowAddNew:function(){return Y.iT},defaultFieldNames:function(){return wt},fetchTemplateData:function(){return Ye},filterFormItemSettings:function(){return Y.$9},findByUid:function(){return za},findKeysByUid:function(){return Ca},findMenuItem:function(){return _i},formDetailsSettings:function(){return Zn},formItemSettings:function(){return Y.Of},formSettings:function(){return Xn},formV1Settings:function(){return k},genStyleHook:function(){return Re.l6},getCurrentOptions:function(){return Mn},getDatePickerLabels:function(){return sr.C$},getLabelFormatValue:function(){return sr.cN},getStoredPopupContext:function(){return $r.XQ},isFileCollection:function(){return Y.ZZ},isShowFilePicker:function(){return sr.el},isTabPage:function(){return Ur},navigateToTab:function(){return Mr},pageSettings:function(){return Pa},pageTabSettings:function(){return da},readPrettyFormSettings:function(){return Yn},removeNullCondition:function(){return bn.Wm},storePopupContext:function(){return $r.hK},useActionBarContext:function(){return x.DU},useActionContext:function(){return x.XC},useAssociationFieldModeContext:function(){return fr},useBackButton:function(){return go.K},useCloseAction:function(){return x.p2},useColumnSchema:function(){return sl.z},useDatePickerContext:function(){return Qr.P1},useDownloadLogs:function(){return ro.y},useEnsureOperatorsValid:function(){return Y.Zd},useFieldMode:function(){return Y.b},useFieldNames:function(){return sr.Xd},useFilterActionProps:function(){return bn.PL},useFilterFieldOptions:function(){return bn.V8},useFilterFieldProps:function(){return bn.tM},useFilterOptions:function(){return bn.xQ},useFixedBlock:function(){return Bo},useFixedSchema:function(){return ko},useFormDataTemplates:function(){return qe},useGetAriaLabelOfAction:function(){return x.HS},useGetAriaLabelOfDrawer:function(){return x.vB},useGetAriaLabelOfModal:function(){return x.QY},useGetAriaLabelOfPopover:function(){return x.t9},useGetFilterFieldOptions:function(){return bn.Kg},useGetFilterOptions:function(){return bn.aJ},useGridContext:function(){return Yr.n1},useGridRowContext:function(){return Yr.Di},useIsAddNewForm:function(){return Y.l1},useIsAssociationField:function(){return Y.w5},useIsFieldReadPretty:function(){return Y.p3},useIsFileField:function(){return Y.G5},useIsFormReadPretty:function(){return Y.xj},useIsSelectFieldMode:function(){return Y.rx},useLabelUiSchema:function(){return sr.Il},useLinkageAction:function(){return x.zC},usePopupSettings:function(){return ma.a},useStyles:function(){return Hs.y},useTabsContext:function(){return ka.g},useTitleFieldOptions:function(){return Y.eT},useValidateSchema:function(){return Y.q4},useVariableScope:function(){return ba.ym}});var l=e(15009),V=e.n(l),c=e(99289),D=e.n(c),f=e(12444),L=e.n(f),r=e(72004),W=e.n(r),p=e(31996),A=e.n(p),h=e(26037),M=e.n(h),t=e(97857),o=e.n(t),u=e(67294),B=e(31601),y=e(14896),C=e(70993),T=e(89127),U=function(O){return D()(V()().mark(function re(){var le,me;return V()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.prev=0,Ie.next=3,this.api.request(O);case 3:return me=Ie.sent,Ie.abrupt("return",me==null||(le=me.data)===null||le===void 0?void 0:le.data);case 7:return Ie.prev=7,Ie.t0=Ie.catch(0),Ie.abrupt("return",[]);case 10:case"end":return Ie.stop()}},re,this,[[0,7]])}))},x=e(76157),I=e(13769),m=e.n(I),S=e(57134),b=e(86201),i=e(94350),w=e(28459),E=e(57953),g=e(12174),v=e(6145),a=e(26386),d=e(64016),R=e(15195),j=e(23461),n=e(85893),P=["form","children"],z=["form","children","disabled"],N=["request","effects","initialValue","useValues"],G=function(O){var re=O.form,le=O.children,me=m()(O,P),Pe=(0,i.useField)(),Ie=(0,i.useFieldSchema)(),$e=(0,Mt.lI)(re.createVoidField(o()(o()({},Pe.props),{},{basePath:""})));return(0,n.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,n.jsx)(i.FormContext.Provider,{value:re,children:(0,n.jsx)(S.FormLayout,o()(o()({layout:"vertical"},me),{},{children:(0,n.jsx)(i.RecursionField,{basePath:$e.address,schema:Ie,onlyRenderProperties:!0})}))})})},Q=function(O){return O.children},K=function(O){var re=O.form,le=O.children,me=O.disabled,Pe=m()(O,z),Ie=(0,i.useField)(),$e=(0,i.useFieldSchema)(),Ve=(0,Mt.lI)(re.createVoidField(o()(o()({},Ie.props),{},{basePath:""}))),He=(0,Mt.Co)($e["x-component"],Q);return(0,u.useEffect)(function(){re.disabled=me||Ie.disabled},[me,Ie.disabled]),(0,n.jsx)(w.ZP,{componentDisabled:me,children:(0,n.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,n.jsx)(i.FormContext.Provider,{value:re,children:(0,n.jsx)(S.FormLayout,o()(o()({layout:"vertical"},Pe),{},{children:(0,n.jsx)(i.FieldContext.Provider,{value:Ve,children:(0,n.jsx)(He,o()(o()({},Ie.componentProps),{},{children:(0,n.jsx)(i.RecursionField,{basePath:Ve.address,schema:$e,onlyRenderProperties:!0})}))})}))})})})},H=function(O){var re=O.request,le=O.initialValue;return re||function(){return Promise.resolve({data:le})}},q=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,g.QT)(H(re),O)},oe=(0,u.createContext)(null);oe.displayName="FormBlockContext";var ne=(0,i.observer)(function(J){var O=J.request,re=J.effects,le=J.initialValue,me=J.useValues,Pe=me===void 0?q:me,Ie=m()(J,N),$e=(0,i.useFieldSchema)(),Ve=(0,i.useField)(),He=(0,u.useMemo)(function(){return(0,b.createForm)({effects:re})},[]),et=Pe({uid:$e["x-uid"],onSuccess:function(at){return D()(V()().mark(function ht(){return V()().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,He.reset();case 2:He.setValues(at==null?void 0:at.data),He.setInitialValues(at==null?void 0:at.data);case 4:case"end":return _t.stop()}},ht)}))()}},J),nt=(0,u.useContext)(oe);return(0,n.jsx)(oe.Provider,{value:{parent:nt,form:He,result:et,field:Ve,fieldSchema:$e},children:(0,n.jsx)(E.Z,{spinning:(et==null?void 0:et.loading)||!1,children:$e["x-decorator"]==="Form"?(0,n.jsx)(K,o()({form:He},Ie)):(0,n.jsx)(G,o()({form:He},Ie))})})},{displayName:"Form"});ne.Designer=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)(),Pe=(0,j.rE)(),Ie=Pe.componentNamePrefix;return(0,n.jsxs)(a.aN,{template:me,title:le||re,children:[(0,n.jsx)(d.G,{componentName:"".concat(Ie,"Form"),collectionName:re}),(0,n.jsx)(a.Z5,{}),(0,n.jsx)(a.qx,{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}})]})};var Z=e(5537),k=new Z.F5({name:"FormV1Settings",items:[{name:"template",Component:d.G,useComponentProps:function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=(0,j.rE)(),me=le.componentNamePrefix;return{componentName:"".concat(me,"Form"),collectionName:re}}},{name:"divider",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),Y=e(54801),De=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"FormSettings",template:me,title:le||re})},ee=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"ReadPrettyFormSettings",template:me,title:le||re})},he=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"FormDetailsSettings",template:me,title:le||re})},be=function(){var O=(0,v.useCollection_deprecated)(),re=O.name,le=O.title,me=(0,R.zy)();return(0,n.jsx)(a.aN,{schemaSettings:"blockSettings:filterForm",template:me,title:le||re})},Fe=e(7340),_e=e(15503),Te=e(68230),Ae=e(68400),ue=e.n(Ae),ae=e(97133),ge=e(73773),se=e(9361),pe=e(31019),xe=e(22229),Se=e(43321),je=e(8281),Le=e(9780),Oe=e(18686),ve=e(94804),fe=e(5574),ce=e.n(fe),X=e(68433),F=e(42075),de=e(34041),Ce=e(96486),ie=e.n(Ce),ye=e(26793),Ee=e(32268),Re=e(60094),Ne=e(9783),Ke=e.n(Ne),lt=e(52677),we=e.n(lt),Qe=e(50888),ke=e(66309),Wt=e(96074),ln=e(27484),Cn=e.n(ln),Qt=e(87714),Mt=e(84577),nn=e(4340),jt=e(97937),Vt=e(32983),Kt=e(58812),fn=e(96695),At=e.n(fn),Rt=e(19632),Bt=e.n(Rt),wt={label:"label",value:"value",color:"color",options:"children"};function cn(J,O){var re=[];if(!Array.isArray(J))return re;for(var le=0;le<J.length;le++){var me=J[le][O.options];Array.isArray(me)&&re.push.apply(re,Bt()(cn(me,O))),re.push(o()({},J[le]))}return re}function Mn(J,O,re){var le=cn(O,re),me=(0,Ce.castArray)(J).map(function(Ie){return(0,X.isPlainObject)(Ie)?Ie[re.value]:Ie});function Pe(Ie){if(!Ie)return[];var $e=[],Ve=At()(me),He;try{var et=function(){var bt=He.value,at=Ie.find(function(ht){return ht[re.value]==bt})||{value:bt,label:bt&&bt.toString()};$e.push(at)};for(Ve.s();!(He=Ve.n()).done;)et()}catch(nt){Ve.e(nt)}finally{Ve.f()}return $e}return Pe(le)}var Kn=e(67668),Gn=(0,i.observer)(function(J){var O,re=o()(o()({},wt),J.fieldNames),le=(0,i.useField)(),me=(0,Kn.Hy)(),Pe=le.dataSource||J.options||(me==null?void 0:me.uiSchema.enum)||[],Ie=Mn(le.value,Pe,re);return!(0,ge.isValid)(J.value)&&!Ie.length?(0,n.jsx)("div",{}):(0,b.isArrayField)(le)&&(le==null||(O=le.value)===null||O===void 0?void 0:O.length)===0?(0,n.jsx)("div",{}):(0,n.jsx)("div",{children:(0,n.jsx)(Kt.B,{ellipsis:J.ellipsis,children:Ie.map(function($e,Ve){return(0,n.jsx)(ke.Z,{color:$e[re.color],icon:$e.icon,children:$e[re.label]},Ve)})})})},{displayName:"ReadPretty"}),oo=["value","options","onChange","fieldNames","mode","loading","rawOptions","defaultValue"],kn=["objectValue","loading","value","rawOptions","defaultValue"],wn=function(O){return!(0,ge.isValid)(O)||we()(O)==="object"&&Object.keys(O).length===0},Jn=function(O){var re=O.value,le=O.options,me=O.onChange,Pe=O.fieldNames,Ie=O.mode,$e=O.loading,Ve=O.rawOptions,He=O.defaultValue,et=m()(O,oo),nt=function(at){var ht;if(!wn(at)){var pt=(0,ge.toArr)(at).filter(function(Tt){return Tt}).map(function(Tt){return(0,X.isPlainObject)(Tt)?Tt[Pe.value]:Tt}),_t=(ht=Mn(pt,le,Pe))===null||ht===void 0?void 0:ht.map(function(Tt){return{label:Tt[Pe.label],value:Tt[Pe.value]}});return["tags","multiple"].includes(Ie)||O.multiple?_t:_t.shift()}};return(0,n.jsx)(de.default,o()({role:"button","data-testid":"select-object-".concat(Ie||"single"),value:nt(re),defaultValue:nt(He),allowClear:{clearIcon:(0,n.jsx)(nn.Z,{role:"button","aria-label":"icon-close-select"})},labelInValue:!0,notFoundContent:$e?(0,n.jsx)(E.Z,{}):(0,n.jsx)(Vt.Z,{image:Vt.Z.PRESENTED_IMAGE_SIMPLE}),options:le,fieldNames:Pe,showSearch:!0,popupMatchSelectWidth:!1,filterOption:function(at,ht){var pt;return((pt=ht==null?void 0:ht[Pe.label||"label"])!==null&&pt!==void 0?pt:"").includes(at)},filterSort:function(at,ht){var pt,_t;return((pt=at==null?void 0:at[Pe.label||"label"])!==null&&pt!==void 0?pt:"").toLowerCase().localeCompare(((_t=ht==null?void 0:ht[Pe.label||"label"])!==null&&_t!==void 0?_t:"").toLowerCase())},onChange:function(at){var ht=Mn((0,ge.toArr)(at).map(function(pt){return pt.value}),Ve||le,Pe);["tags","multiple"].includes(Ie)||O.multiple?me==null||me(ht):me==null||me(ht.shift()||null)},mode:Ie,tagRender:function(at){return(0,n.jsx)(ke.Z,o()(o()({role:"button","aria-label":at.label,closeIcon:(0,n.jsx)(jt.Z,{role:"button","aria-label":"icon-close-tag"})},at),{},{children:at.label}))}},et))},hn=function(O,re){var le;return((le=re==null?void 0:re.label)!==null&&le!==void 0?le:"").toLowerCase().includes((O||"").toLowerCase())},Ot=(0,i.connect)(function(J){var O=J.objectValue,re=J.loading,le=J.value,me=J.rawOptions,Pe=J.defaultValue,Ie=m()(J,kn),$e=J.multiple?"multiple":J.mode;if($e&&!["multiple","tags"].includes($e)&&($e=void 0),O)return(0,n.jsx)(Jn,o()(o()({rawOptions:me},Ie),{},{defaultValue:Pe,value:le,mode:$e,loading:re}));var Ve=function(et){return["tags","multiple"].includes(J.mode)||J.multiple?et?(0,ge.toArr)(et):void 0:et};return(0,n.jsx)(de.default,o()(o()({role:"button","data-testid":"select-".concat($e||"single"),showSearch:!0,filterOption:hn,allowClear:{clearIcon:(0,n.jsx)(nn.Z,{role:"button","aria-label":"icon-close-select"})},popupMatchSelectWidth:!1,notFoundContent:re?(0,n.jsx)(E.Z,{}):(0,n.jsx)(Vt.Z,{image:Vt.Z.PRESENTED_IMAGE_SIMPLE}),value:Ve(le),defaultValue:Ve(Pe),tagRender:function(et){return(0,n.jsx)(ke.Z,o()(o()({role:"button","aria-label":et.label,closeIcon:(0,n.jsx)(jt.Z,{role:"button","aria-label":"icon-close-tag"})},et),{},{children:et.label}))}},Ie),{},{onChange:function(et){var nt;(nt=J.onChange)===null||nt===void 0||nt.call(J,et===void 0?null:et)},mode:$e}))},(0,i.mapProps)({dataSource:"options"},function(J,O){return o()(o()({},J),{},{fieldNames:o()(o()({},wt),J.fieldNames),suffixIcon:O!=null&&O.loading||O!=null&&O.validating?(0,n.jsx)(Qe.Z,{}):J.suffixIcon})}),(0,i.mapReadPretty)(Gn)),Ct=Ot;Ct.ReadPretty=Gn;var St=Ct,$t=e(36586),zt=function(O,re){return(0,Ce.castArray)(O).filter(function(le){return le!=null}).map(function(le){return we()(le)==="object"?le[re.value]:le})},Yt=(0,i.observer)(function(J){var O=o()(o()({},wt),J.fieldNames),re=(0,i.useField)(),le=(0,i.useFieldSchema)(),me=(0,$t.a)(),Pe=(0,x.XC)(),Ie=Pe.snapshot,$e=(0,g.QT)(Ie?D()(V()().mark(function He(){return V()().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.abrupt("return",{data:me[le.name]});case 1:case"end":return nt.stop()}},He)})):o()(o()({action:"list"},J.service),{},{params:{paginate:!1,filter:Ke()({},O.value,{$in:zt(re.value,O)})}}),{refreshDeps:[J.service,re.value]}),Ve=$e.data;return(0,n.jsx)(Ct.ReadPretty,o()(o()({},J),{},{options:Ve==null?void 0:Ve.data}))},{displayName:"ReadPretty"}),Nt=e(8341),yn=e(44990),vn=["fieldNames","service","wait","value","defaultValue","objectValue","manual","mapOptions","targetField","CustomDropdownRender","optionFilter","dataSource"],qt="N/A",en=(0,i.connect)(function(J){var O,re,le=J.fieldNames,me=le===void 0?{}:le,Pe=J.service,Ie=Pe===void 0?{}:Pe,$e=J.wait,Ve=$e===void 0?300:$e,He=J.value,et=J.defaultValue,nt=J.objectValue,bt=J.manual,at=bt===void 0?!0:bt,ht=J.mapOptions,pt=J.targetField,_t=J.CustomDropdownRender,Tt=J.optionFilter,Ut=J.dataSource,mn=m()(J,vn),Xt=(0,yn.FC)(),Nn=(0,Nt.FE)(Ut||Xt),jn=(0,u.useState)(!1),un=ce()(jn,2),tn=un[0],In=un[1],Dn=(0,u.useRef)(!1),Bn=(0,i.useFieldSchema)(),On=((O=Bn["x-component-props"])===null||O===void 0?void 0:O.addMode)==="quickAdd",Tn=(0,v.useCollection_deprecated)(),En=Tn.getField,So=(0,u.useRef)(null),xo=(0,v.useCollectionManager_deprecated)(),Io=xo.getCollectionJoinField,mo=xo.getInterface,so=Bn["x-collection-field"]||Bn.name,Un=En(so)||Io(so),Rn=pt||(Un==null?void 0:Un.target)&&(me==null?void 0:me.label)&&Io("".concat(Un.target,".").concat(me.label)),qn=(0,u.useMemo)(function(){if(Rn!=null&&Rn.interface){var Yo;return((Yo=mo(Rn.interface))===null||Yo===void 0||(Yo=Yo.filterable)===null||Yo===void 0?void 0:Yo.operators[0].value)||"$includes"}return"$includes"},[Rn]),fo=(0,Mt.eJ)(),Vn=(0,u.useCallback)(function(Yo){try{return Yo.filter(function(Jo){return["number","string"].includes(we()(Jo[me.value]))}).map(function(Jo){var gr,Sr,tr=fo(Jo[me.label]);if(Rn!=null&&(gr=Rn.uiSchema)!==null&&gr!==void 0&&gr.enum)if(Array.isArray(tr))tr=tr.map(function(Dr,Hr){var Lr=Rn.uiSchema.enum.find(function(wa){return wa.value===Dr});return Lr?(0,n.jsx)(ke.Z,{role:"button",color:Lr.color,style:{marginRight:3},children:(Lr==null?void 0:Lr.label)||Dr},Hr):(0,n.jsx)(ke.Z,{role:"button",children:Dr},Dr)}).reverse();else{var dr=Rn.uiSchema.enum.find(function(Dr){return Dr.value===tr});dr&&(tr=(0,n.jsx)(ke.Z,{role:"button",color:dr.color,children:dr.label}))}if((Rn==null?void 0:Rn.type)==="date"&&(tr=Cn()(tr).format("YYYY-MM-DD")),ht){var Br;return ht((Br={},Ke()(Br,me.label,tr||qt),Ke()(Br,me.value,Jo[me.value]),Br))}return o()(o()({},Jo),{},(Sr={},Ke()(Sr,me.label,tr||qt),Ke()(Sr,me.value,Jo[me.value]),Sr))}).filter(Boolean)}catch(Jo){return console.error(Jo),Yo}},[Rn==null?void 0:Rn.uiSchema,me]),no=(0,g.QT)(o()(o()({action:"list"},Ie),{},{headers:Nn,params:o()(o()({pageSize:200},Ie==null?void 0:Ie.params),{},{filter:Ie==null||(re=Ie.params)===null||re===void 0?void 0:re.filter})}),{manual:at,debounceWait:Ve}),co=no.data,po=no.run,Mo=no.loading,Wo=(0,u.useMemo)(function(){return JSON.stringify({service:Ie,fieldNames:me})},[Ie,me]),Eo=(0,u.useCallback)(function(){return So.current&&_t?(0,n.jsx)(_t,{search:So.current,callBack:function(){So.current=null,In(!1)}}):null},[So.current]);(0,u.useEffect)(function(){Dn.current&&po()},[Wo]);var No=function(){var Yo=D()(V()().mark(function Jo(gr){var Sr;return V()().wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:po({filter:(0,Qt.EO)([gr?Ke()({},me.label,Ke()({},qn,gr)):{},Ie==null||(Sr=Ie.params)===null||Sr===void 0?void 0:Sr.filter])}),So.current=gr;case 2:case"end":return dr.stop()}},Jo)}));return function(gr){return Yo.apply(this,arguments)}}(),vr=(0,u.useMemo)(function(){var Yo,Jo=He||et;if(!(co!=null&&(Yo=co.data)!==null&&Yo!==void 0&&Yo.length))return Jo!=null?Array.isArray(Jo)?Jo:[Jo]:[];var gr=Jo!=null&&(Array.isArray(Jo)?Jo:[o()(o()({},Jo),{},Ke()({},me.value,Jo[me.value]||Jo))])||[],Sr=typeof Tt=="function"?co.data.filter(Tt):co.data;return(0,Ce.uniqBy)(Sr.concat(gr!=null?gr:[]),me.value)},[He,et,co==null?void 0:co.data,me.value,Tt]),ar=function(Jo){In(Jo),So.current=null,Jo&&po(),Dn.current=!0};return(0,n.jsx)(Ct,o()(o()({open:tn,popupMatchSelectWidth:!1,autoClearSearchValue:!0,filterOption:!1,filterSort:null,fieldNames:me,onSearch:No,onDropdownVisibleChange:ar,objectValue:nt,value:He,defaultValue:et},mn),{},{loading:co?Mo:!0,options:Vn(vr),rawOptions:vr,dropdownRender:function(Jo){var gr=vr.some(function(Sr){return Sr[me.label]===So.current});return(0,n.jsx)(n.Fragment,{children:On?(0,n.jsxs)(n.Fragment,{children:[!((co==null?void 0:co.data.length)===0&&So!==null&&So!==void 0&&So.current)&&Jo,(co==null?void 0:co.data.length)>0&&(So==null?void 0:So.current)&&!gr&&(0,n.jsx)(Wt.Z,{style:{margin:0}}),!gr&&(0,n.jsx)(Eo,{})]}):Jo})}}))},(0,i.mapProps)({dataSource:"options"},function(J,O){var re,le=(0,i.useFieldSchema)();return o()(o()({},J),{},{fieldNames:o()(o()(o()(o()({},wt),J.fieldNames),O.componentProps.fieldNames),(re=le["x-component-props"])===null||re===void 0?void 0:re.fieldNames),suffixIcon:O!=null&&O.loading||O!=null&&O.validating?(0,n.jsx)(Qe.Z,{}):J.suffixIcon})}),(0,i.mapReadPretty)(Yt)),Ht=en;Ht.ReadPretty=Yt;var ft=null,qe=function(){var O=(0,i.useFieldSchema)(),re=(0,ye.$)(),le=re.t,me=(0,Fe.bz)(),Pe=me.duplicateData,Ie=(0,v.useCollectionManager_deprecated)(),$e=Ie.getCollectionJoinField;if(Pe)return Pe;var Ve=Ft(O),He=Ve.items,et=He===void 0?[]:He,nt=Ve.display,bt=nt===void 0?!0:nt;et.forEach(function(pt){try{var _t;pt.fields=(_t=pt.fields)===null||_t===void 0?void 0:_t.map(function(Tt){var Ut=$e("".concat(pt.collection,".").concat(Tt));return Ut?Tt:""}).filter(Boolean)}catch(Tt){(0,X.error)(Tt),pt.fields=[]}});var at=[{key:"none",title:le("None")}].concat(et.map(function(pt,_t){return o()(o()({key:_t},pt),{},{isLeaf:pt.dataId!==null&&pt.dataId!==void 0,titleCollectionField:(pt==null?void 0:pt.titleField)&&$e("".concat(pt.collection,".").concat(pt.titleField))})})),ht=et.find(function(pt){return pt.default});return{templates:at,display:bt,defaultTemplate:ht,enabled:et.length>0&&et.every(function(pt){return pt.dataId||pt.dataScope})}},Dt=function(O){var re=O.style,le=re===void 0?{}:re,me=O.form,Pe=(0,Re.dQ)(),Ie=Pe.token,$e=qe(),Ve=$e.templates,He=$e.display,et=$e.enabled,nt=$e.defaultTemplate,bt=(0,v.useCollectionManager_deprecated)(),at=bt.getCollectionJoinField,ht=(0,Ee.ss)(Ve),pt=(0,u.useState)((nt==null?void 0:nt.key)||"none"),_t=ce()(pt,2),Tt=_t[0],Ut=_t[1],mn=(0,u.useState)(null),Xt=ce()(mn,2),Nn=Xt[0],jn=Xt[1],un=(0,g.LY)(),tn=(0,ye.$)(),In=tn.t;(0,u.useEffect)(function(){et&&nt&&me&&(me.__template=!0,nt.key==="duplicate"&&Tn(nt.dataId,nt))},[]),(0,u.useEffect)(function(){ht!=null&&ht.some(function(So){return So.key===Tt})||On("none")},[ht]);var Dn=(0,u.useMemo)(function(){return o()({display:"flex",alignItems:"center",backgroundColor:Ie.colorFillAlter,padding:Ie.padding},le)},[le,Ie.colorFillAlter]),Bn=(0,u.useMemo)(function(){return{fontSize:Ie.fontSize,fontWeight:"bold",whiteSpace:"nowrap",marginRight:Ie.marginXS}},[Ie.fontSize,Ie.marginXS]),On=(0,u.useCallback)(function(){var So=D()(V()().mark(function xo(Io){return V()().wrap(function(so){for(;;)switch(so.prev=so.next){case 0:Ut(Io),jn(null),me==null||me.reset();case 3:case"end":return so.stop()}},xo)}));return function(xo){return So.apply(this,arguments)}}(),[]),Tn=(0,u.useCallback)(function(){var So=D()(V()().mark(function xo(Io,mo){var so;return V()().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:so=o()(o()({},mo),{},{dataId:Io}),jn(mo),Ye(un,so,In).then(function(qn){return me&&qn&&(me.reset(),me.__template=!0,(0,X.forEach)(qn,function(fo,Vn){if(fo){var no;me.values[Vn]=fo,me==null||(no=me.setInitialValuesIn)===null||no===void 0||no.call(me,Vn,fo)}})),qn}).catch(function(qn){console.error(qn)});case 3:case"end":return Rn.stop()}},xo)}));return function(xo,Io){return So.apply(this,arguments)}}(),[]);if(!et||!He)return null;var En=ht==null?void 0:ht.find(function(So){return So.key===Tt});return(0,n.jsx)("div",{style:Dn,children:(0,n.jsxs)(F.Z,{wrap:!0,children:[(0,n.jsxs)("label",{style:Bn,children:[In("Data template"),": "]}),(0,n.jsx)(de.default,{role:"button","data-testid":"select-form-data-template",popupMatchSelectWidth:!1,options:ht,fieldNames:{label:"title",value:"key"},value:Tt,onChange:On}),Tt!=="none"&&En&&(0,n.jsx)(Ht,{style:{width:220},fieldNames:{label:En==null?void 0:En.titleField,value:"id"},target:En==null?void 0:En.collection,value:Nn,objectValue:!0,service:{resource:En==null?void 0:En.collection,params:{filter:En==null?void 0:En.dataScope}},onChange:function(xo){return Tn(xo==null?void 0:xo.id,o()(o()({},xo),En))},targetField:at("".concat(En==null?void 0:En.collection,".").concat(En.titleField))})]})})};function Ft(J){var O=(0,Fe.Fi)(J);return O?ie().cloneDeep(O["x-data-templates"])||{}:{}}function Ye(J,O,re){return Me.apply(this,arguments)}function Me(){return Me=D()(V()().mark(function J(O,re,le){return V()().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(!(re.fields.length===0||!re.dataId)){Pe.next=2;break}return Pe.abrupt("return");case 2:return Pe.abrupt("return",O.resource(re.collection).get({filterByTk:re.dataId,fields:re.fields,isTemplate:!0}).then(function(Ie){var $e;return($e=Ie.data)===null||$e===void 0?void 0:$e.data}));case 3:case"end":return Pe.stop()}},J)})),Me.apply(this,arguments)}var Be=e(3192),Ze=function(){var O,re,le=(0,Oe.aZ)(),me=(0,i.useFieldSchema)(),Pe=se.Z.useToken(),Ie=Pe.token,$e=(0,Mt.ng)(),Ve=$e.designable,He=(0,Be.g)()||{},et=He.heightProps,nt=et||{},bt=nt.title,at=qe(),ht=at.display,pt=at.enabled,_t=me.reduceProperties(function(Tn,En){return En["x-component"]==="ActionBar"?En:Tn}),Tt=Object.keys((_t==null?void 0:_t.properties)||{}).length>0,Ut=me==null||(O=me.parent)===null||O===void 0||(O=O["x-decorator"])===null||O===void 0||(re=O.includes)===null||re===void 0?void 0:re.call(O,"FormBlockProvider"),mn=Tt||Ve?Ie.controlHeight+(Ut?1:2)*Ie.marginLG:Ie.marginLG,Xt=bt?Ie.fontSizeLG*Ie.lineHeightLG+Ie.padding*2-1:0,Nn=(0,ve.hS)()||{},jn=Nn.data,un=(jn==null?void 0:jn.meta)||{},tn=un.count,In=un.pageSize,Dn=tn>In,Bn=Dn?Ie.controlHeightSM+1*Ie.paddingLG:0,On=ht&&pt?Ie.controlHeight+2*Ie.padding+Ie.margin:0;return le-mn-Ie.paddingLG-Xt-Bn-On},Xe,rt,gt=["form","children"],xt=["form","children","disabled"],vt=["form","disabled"],ut=function(O){var re=O.form,le=O.children,me=m()(O,gt),Pe=(0,i.useField)(),Ie=(0,i.useFieldSchema)(),$e=(0,Mt.lI)(re.createVoidField(o()(o()({},Pe.props),{},{basePath:""}))),Ve=Ze(),He=se.Z.useToken(),et=He.token,nt=(0,Mt.ng)(),bt=nt.designable;return(0,n.jsx)(i.FieldContext.Provider,{value:void 0,children:(0,n.jsx)(i.FormContext.Provider,{value:re,children:(0,n.jsx)(S.FormLayout,o()(o()({layout:"vertical"},me),{},{children:(0,n.jsx)("div",{className:(0,ae.css)(Xe||(Xe=ue()([`
689
689
  .nb-grid-container {
690
690
  height: `,`;
691
691
  overflow-y: auto;