@nocobase/client-v2 2.1.0-alpha.27 → 2.1.0-alpha.29

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.
package/es/index.mjs CHANGED
@@ -956,55 +956,55 @@ ctx.render(<JsItem />);
956
956
  .ant-pagination-item-link {
957
957
  min-width: ${l}px;
958
958
  }
959
- `},i,a.default.createElement("div",{style:o},t)):i},h=(e,t)=>t?{...e,showTotal:!1,showSizeChanger:!1,showLessItems:!0,className:p(e.className,c())}:e},5703(e,t,l){l.d(t,{n:()=>n});var o=l(504);let n=()=>(0,o.useFlowEngineContext)().app},6625(e,t,l){l.d(t,{n:()=>n});var o=l(5703);function n(e){return(0,o.n)().pm.get(e)}},1357(e,t,l){l.r(t),l.d(t,{EditFormModel:()=>e_.Y5n,linkageRulesRefresh:()=>e_.S3Z,filterFormDefaultValues:()=>e_.IBN,DisplayTimeFieldModel:()=>e_.$FU,FlowRoute:()=>e_.YmV,LinkActionModel:()=>e_.CII,RecordActionModel:()=>e_.LAC,UpdatedAtFieldInterface:()=>tR,buildRecordPickerParentItemContext:()=>e_.oM7,FormSubmitActionModel:()=>e_.u36,RootPageTabModel:()=>e_._$j,AIManager:()=>x,redirectToLegacySignin:()=>eu.BE,openViewFlow:()=>e_.gvx,toTreeSelectItems:()=>e_.Gap,InputFieldInterface:()=>tc,AppError:()=>w.uV,IconFieldInterface:()=>ta,UrlFieldInterface:()=>tB,blockHeight:()=>e_.Bum,PercentFieldInterface:()=>tC,GlobalThemeProvider:()=>y.U_,PluginSettingsTopbarActionModel:()=>e_.ESx,convertV2AdminPathToLegacy:()=>eu.Sx,UpdatedByFieldInterface:()=>tN,getDetailsItemValue:()=>e_.ROt,resolveCustomFieldOperatorList:()=>e_.eCD,DateFieldInterface:()=>t$,CreateFormModel:()=>e_.wLo,AdminLayoutComponent:()=>e_.V6y,FilterManager:()=>e_.qh$,findPrevSiblingRoute:()=>e_.Cuw,DisplayTitleFieldModel:()=>e_.mU7,useMobileLayout:()=>e_.mYX,M2MFieldInterface:()=>tv,useUIConfigurationPermissions:()=>ed.uM,SubTableFieldModel:()=>e_.mHU,AppMaintaining:()=>w.be,CreatedAtFieldInterface:()=>to,EmailFieldInterface:()=>tr,PopupSubTableActionsColumnModel:()=>e_.FaR,PopupSubTableFormSubmitActionModel:()=>e_.spd,FormBlockModel:()=>e_.F4f,MockFlowModelRepository:()=>e_.WuM,BaseApplication:()=>q,FilterBlockModel:()=>e_.v$f,FieldDeletePlaceholder:()=>e_.xIu,findNextSiblingRoute:()=>e_.Evi,DateTimeNoTzFilterFieldModel:()=>e_.e7h,icons:()=>w.Pt,CollectionSelectorFieldModel:()=>e_.Z0H,blockLinkageRules:()=>e_.aWb,CheckboxGroupFieldInterface:()=>te,defaultTheme:()=>y.zQ,FilterFormActionGroupModel:()=>e_.dv2,collectCascadeHydrationCandidate:()=>e_.qlo,ObjectNester:()=>e_.Xmd,TableJSFieldItemModel:()=>e_._e9,DetailsAssociationFieldGroupModel:()=>e_.sD1,fieldLinkageRules:()=>e_.znN,mergePaginationClassName:()=>e_.M6q,RichTextFieldModel:()=>e_.DvX,FilterFormResetActionModel:()=>e_.zUb,UnitConversion:()=>e_.VPO,AdminLayoutModel:()=>e_.pXX,UserCenterTopbarActionModel:()=>e_.ccc,RefreshActionModel:()=>e_.n6C,buildInsertRouteSchema:()=>e_.QBt,linkageSetBlockProps:()=>e_.LFq,DisplayIconFieldModel:()=>e_.xEQ,CollectionBlockModel:()=>e_.tPG,DisplayJSONFieldModel:()=>e_.qPo,PopupActionModel:()=>e_.a6D,FieldOperatorSelect:()=>e_.T8$,ActionWithoutPermission:()=>e_._TB,NanoidFieldInterface:()=>tH,O2MFieldInterface:()=>tM,OBOFieldInterface:()=>tk,NocoBaseBuildInPluginV2:()=>eY,AdminLayoutMenuModelRenderer:()=>e_.xc1,ViewActionModel:()=>e_.v8l,SubTableColumnModel:()=>e_.WHj,CheckboxFieldInterface:()=>e7,FieldModel:()=>e_.oLV,O2OFieldInterface:()=>tw,UUIDFieldInterface:()=>tO,linkageSetDetailsFieldProps:()=>e_.KAX,resolveAdminLayoutMenuLink:()=>e_.fi1,FilterFormRecordSelectFieldModel:()=>e_.ZMt,getDefaultV2AdminRedirectPath:()=>eu.uk,CollectionFieldInterfaceManager:()=>K,customVariable:()=>e_.I6c,getQuickEditFieldProps:()=>e_.YXr,ACLRolesCheckProvider:()=>ed.rR,DisplayNumberFieldModel:()=>e_.LbM,EditFormContent:()=>e_.AV5,getMobileCompactPaginationClassName:()=>e_.NYj,RecordActionGroupModel:()=>e_.gk0,PageModel:()=>e_.XK0,BulkDeleteActionModel:()=>e_.Ni4,getValueWithIndex:()=>e_.kPK,JSItemActionModel:()=>e_.ymi,FormGridModel:()=>e_.Ybt,toToolsMap:()=>M,ChildPageTabModel:()=>e_.wW_,FilterItem:()=>e_.qi_,SystemSettingsSource:()=>e_.orA,transformNestedData:()=>e_.Anr,layout:()=>e_.Zpx,createCompactSimpleItemRender:()=>e_.hHg,AssociationFieldModel:()=>e_.bPr,ADMIN_SETTINGS_PATH:()=>ee.wq,ADMIN_SETTINGS_LAYOUT_MODEL_UID:()=>e_.OaU,ApplicationContext:()=>ec,UserCenterActionItemModel:()=>e_.ngq,MainPageModel:()=>e_.qir,Application:()=>ea,DisplayURLFieldModel:()=>e_.Vrl,LayoutContent:()=>e_.A14,RichTextField:()=>e_.OsV,numberFormat:()=>e_.jqd,FilterFormActionModel:()=>e_.cNN,getAllDataModels:()=>e_.w5F,JSFieldModel:()=>e_.P0,matchesRoutePath:()=>e_.Qb_,connectFields:()=>e_.KYF,GridModel:()=>e_.QuL,getUnknownCountPaginationTotal:()=>e_.SMJ,DisplaySubItemFieldModel:()=>e_.dhL,PluginManagerPage:()=>e_.ksX,ADMIN_SETTINGS_KEY:()=>ee.w$,UnixTimestampFieldInterface:()=>tq,compatOldTheme:()=>y.Ne,JSBlockModel:()=>e_.YJB,buildMenuTitleWithIcon:()=>e_.riZ,getAdminLayoutMenuMovePositionOptions:()=>e_.B82,QUICK_EDIT_POPOVER_MAX_HEIGHT:()=>e_.i6C,PercentInput:()=>e_.er5,AdminLayoutContent:()=>e_.xtQ,DisplaySubListFieldModel:()=>e_.k9Q,CollectionActionModel:()=>e_.UZR,injectRecordPickerPopupContext:()=>e_.gaO,editMarkdownFlow:()=>e_.uMh,getMenuCreationDefaultParams:()=>e_.y8o,AdminLayoutMenuItemRenderer:()=>e_.B_2,NBColorPicker:()=>e_.qtW,DisplayCheckboxFieldModel:()=>e_.v9U,SubTableRecordAction:()=>e_.sJA,operatorComponentProps:()=>e_.KHY,transformRowsToSingleColumn:()=>e_.vbm,RemoteFlowModelRenderer:()=>e_.zCA,UpdateRecordActionModel:()=>e_.MhO,getMenuCreationUiSchema:()=>e_._IX,findSettingsByName:()=>e_.R0X,FilterContent:()=>e_.oJ5,VariableFilterItem:()=>e_.Et2,AntdAppProvider:()=>v,FilterFormJSActionModel:()=>e_.t_n,AppNotFound:()=>w.bM,DefaultToolsManager:()=>b,LinkageFilterItem:()=>e_.Ru1,UserCenterSelectItemModel:()=>e_.FKm,TextAreaWithContextSelector:()=>e_.nap,CommonItemModel:()=>e_.Uhv,IntegerFieldInterface:()=>tp,FormComponent:()=>e_.s2f,RouteRepository:()=>k,TableCustomColumnModel:()=>e_.Fts,SubPageModel:()=>e_.RLu,customAlgorithm:()=>y.ze,customizeFilterRender:()=>e_.wUQ,registerIcons:()=>w.K1,FilterFormCustomRecordSelectFieldModel:()=>e_.udY,DisplaySubTableFieldModel:()=>e_.m5p,UIEditorTopbarActionModel:()=>e_.h2d,PluginSettingsManager:()=>ee.mz,SelectFieldModel:()=>e_.CCB,UserCenterItemModel:()=>e_.np$,findFirstInternalSettingsPage:()=>e_.X2M,AddChildActionModel:()=>e_.lcp,OHOFieldInterface:()=>tS,PopupSubTableEditActionModel:()=>e_.oIl,linkageRunjs:()=>e_.Myf,RootPageModel:()=>e_.T6P,getAdminLayoutMenuVirtualPath:()=>e_.Px_,DateTimeTzPicker:()=>e_.mUg,ColorFieldInterface:()=>tl,RecordSelectFieldModel:()=>e_.BgT,resolveAdminLayoutMenuDragMoveOptionsFromEvent:()=>e_.eLO,AppSpin:()=>w.gv,PercentFieldModel:()=>e_.v6e,fixed:()=>e_.Zu2,formatNumber:()=>e_.ZVp,FormJSFieldItemModel:()=>e_.kN,JSEditableFieldModel:()=>e_.Nxx,findFirstAccessiblePageRoute:()=>e_.MMn,getCurrentV2RedirectPath:()=>eu.vi,languageCodes:()=>ey.A,useAclSnippets:()=>ed.K3,DisplayTextFieldModel:()=>e_.Tuv,PluginManager:()=>Z,ApplicationModel:()=>z,dataScope:()=>e_.fAh,buildRecordPickerPopupContextInputArgs:()=>e_.S5n,ActionModel:()=>e_.S0L,DateTimeNoTzPicker:()=>e_.pVr,recalculateGridSizes:()=>e_.aDm,DateOnlyFilterFieldModel:()=>e_.K4N,toOperatorSelectOptions:()=>e_.kA1,PhoneFieldInterface:()=>tA,QUICK_EDIT_FORM_MAX_HEIGHT:()=>e_.x_D,JsonFieldInterface:()=>th,CodeEditorExtension:()=>e_.o8y,DateTimeNoTzFieldModel:()=>e_.cPq,findOptionPathByTk:()=>e_.s5W,titleField:()=>e_.Pqd,UserCenterTextItemModel:()=>e_.ysz,FilterGroup:()=>e_.I8R,USER_CENTER_ACTION_ID:()=>e_.Bnh,diagnoseRunJS:()=>e_.fLT,DisplayHtmlFieldModel:()=>e_.vrA,useRouter:()=>ev,aclCheck:()=>e_.VGp,SubFormListFieldModel:()=>e_.sW6,JsonInput:()=>e_.fnr,FilterFormSubmitActionModel:()=>e_.y2s,getAdminLayoutMenuInitializerButton:()=>e_.Tnx,TableBlockModel:()=>e_.zDb,getMenuItems:()=>e_.gLn,BlockSceneEnum:()=>e_.PW6,FormBlockContent:()=>e_.JUj,JSFormActionModel:()=>e_.l5h,getPinnedPluginListKeys:()=>es.k,reconcileAdminLayoutMenuItems:()=>e_.tSM,FilterFormCollapseActionModel:()=>e_.D1b,useACLRoleContext:()=>ed.v6,replaceRouteParams:()=>e_.uTv,Plugin:()=>ef,ResetThemeTokenAndKeepAlgorithm:()=>e_.fCM,normalizeAdminLayoutMenuLegacyVariables:()=>e_.ux6,PinnedPluginListLite:()=>e_.Kgy,useRoleRecheck:()=>ed.N5,MobileMenuControlContext:()=>e_.Qt8,CustomWidth:()=>e_.K$V,CollectionSelectFieldInterface:()=>tt,BlockGridModel:()=>e_.LaP,NocoBaseBuildInPlugin:()=>eY,AdminLayoutRouteCoordinator:()=>e_.N9e,CollectionFieldInterface:()=>e9,filterRenderableSettings:()=>e_.Ui7,TableActionsColumnModel:()=>e_.B6V,runjs:()=>e_.ZCq,resolveAdminRouteRuntimeTarget:()=>e_.YjI,ACLContext:()=>ed.w0,buildLinkSettingSchema:()=>e_.qNx,subFormFieldLinkageRules:()=>e_.D2p,subFormLinkageSetFieldProps:()=>e_.gbJ,RouteModel:()=>e_.j0c,IdFieldInterface:()=>ts,FormCustomItemModel:()=>e_.wBN,CheckboxGroupFieldModel:()=>e_.MeX,MENU_TYPE_OPTIONS:()=>e_.o2o,AdminSettingsLayout:()=>e_.djK,TableColumnModel:()=>e_.ivU,required:()=>e_.mw3,PopupCollectionActionModel:()=>e_.YXI,FilterFormCustomItemModel:()=>e_.I6Z,MAX_MESSAGE_CHARS:()=>e_.hPI,BlankComponent:()=>w.ct,JSItemModel:()=>e_.qJ3,SkeletonFallback:()=>e_.KSc,FormActionModel:()=>e_.sEB,validation:()=>e_.Eq4,applyMobilePaginationProps:()=>e_.hOt,PopupSubTableFieldModel:()=>e_.Uk$,DeleteActionModel:()=>e_.rvE,shouldRenderIconInTitle:()=>e_.Ucr,CreatedByFieldInterface:()=>tn,CascadeSelectListFieldModel:()=>e_.W4I,NumberFieldInterface:()=>tx,DateTimeTzFieldModel:()=>e_.zqF,PLUGIN_MANAGER_SETTING_NAME:()=>e_.BmO,isFilterValueEmpty:()=>e_.tUI,BasePageTabModel:()=>e_.BpQ,pattern:()=>e_.T16,AssociationFieldGroupModel:()=>e_.mw1,DetailsBlockModel:()=>e_.PU8,JSActionModel:()=>e_.Hn2,Icon:()=>w.In,WebSocketClient:()=>F,useApp:()=>m.n,getUniqueKeyFromCollection:()=>tg,FilterFormItemModel:()=>e_.vIF,CheckboxFieldModel:()=>e_.zFh,navigateToURL:()=>e_.isP,resolveLegacySigninRedirect:()=>eu.M4,DisplayDateTimeFieldModel:()=>e_.Ra0,formatRunJSPreviewMessage:()=>e_.byO,IconFieldModel:()=>e_.rpg,ActionSceneEnum:()=>e_.s5y,JSRecordActionModel:()=>e_.uVo,SnowflakeIdFieldInterface:()=>tI,formAssignRules:()=>e_.dWc,ChildPageModel:()=>e_.JvK,resolveDefaultCustomFieldOperator:()=>e_.T9,SYSTEM_SETTINGS_SETTING_NAME:()=>e_.jmZ,TimeFieldModel:()=>e_.Fy3,ActionGroupModel:()=>e_.xdz,createDefaultCollectionBlockTitle:()=>e_.lrV,AssignFormItemModel:()=>e_.saj,toViewStack:()=>e_.Hwd,SourceCascader:()=>e_.AvD,FilterFormCustomFieldModel:()=>e_.xz3,FilterFormFieldModel:()=>e_.Mf0,LinkToFieldInterface:()=>tf,createSettingsPathMap:()=>e_.nCj,dateTimeFormat:()=>e_.LE6,useACLContext:()=>ed.bq,PasswordFieldInterface:()=>tF,InputNumberField:()=>e_.mLo,displayFieldComponent:()=>e_.kkB,CodeEditor:()=>e_.BYM,SNIPPET_PREFIX:()=>ee.tJ,MarkdownFieldInterface:()=>t_,RadioGroupFieldInterface:()=>tP,RecordPickerContent:()=>e_.vy4,M2OFieldInterface:()=>ty,actionLinkageRules:()=>e_.tQF,TableSelectModel:()=>e_.mSG,afterSuccess:()=>e_.mKE,PopupSubTableFormActionGroupModel:()=>e_.d13,matchSettingsRoute:()=>e_.CM3,InputFieldModel:()=>e_.mRH,filterVisibleSettings:()=>e_.eDc,showMessage:()=>e_.rGX,BlockModel:()=>e_.zgg,resolveAdminLayoutMenuDragMoveOptions:()=>e_.OtO,PopupSubTableRemoveActionModel:()=>e_.Ie6,GRID_FLOW_KEY:()=>e_.cEK,JSColumnModel:()=>e_.l2T,FormAssociationItemModel:()=>e_.ur8,PopupSubTableActionGroupModel:()=>e_.HJv,showNotification:()=>e_.Dsh,RouterManager:()=>eo,GRID_STEP:()=>e_._UX,FilterFormBlockModel:()=>e_.D8m,FilterFormGridModel:()=>e_.www,confirm:()=>e_.lJp,registerIcon:()=>w.pU,toRouterNavigationPath:()=>e_.Yjq,SubFormFieldModel:()=>e_.Imp,MarkdownItemModel:()=>e_.qqP,openAdminLayoutMenuLink:()=>e_.jjG,DatetimeFieldInterface:()=>ti,JSCollectionActionModel:()=>e_.dIg,addCustomAlgorithmToTheme:()=>y._l,FormAssociationFieldGroupModel:()=>e_.EcU,TableoidFieldInterface:()=>tD,linkageSetActionProps:()=>e_.mQM,setTargetDataScope:()=>e_.mp5,TextareaFieldInterface:()=>tY,CreateContent:()=>e_.G9F,linkageAssignField:()=>e_.fMK,AdminLayoutMenuItemModel:()=>e_.xFY,buildLegacySigninHref:()=>eu.LQ,AssignFormGridModel:()=>e_.dpX,createMockClient:()=>eh,CollectionActionGroupModel:()=>e_.zsf,AddNewActionModel:()=>e_.to1,DetailsGridModel:()=>e_.ql0,DateOnlyPicker:()=>e_.xkv,SelectFieldInterface:()=>tj,DateTimeFilterFieldModel:()=>e_.foc,TimeFieldInterface:()=>tE,dispatchEventDeep:()=>e_.Xig,getDefaultOperator:()=>e_.aqk,usePlugin:()=>eg.n,DetailsJSFieldItemModel:()=>e_.ODR,DataBlockModel:()=>e_.RBt,SubTableFieldInterface:()=>tL,overflowMode:()=>e_.COB,useSystemSettings:()=>e_.e6V,NumberFieldModel:()=>e_.r39,DividerItemModel:()=>e_.upH,FieldModelSelect:()=>e_.khg,DateTimeTzFilterFieldModel:()=>e_.pKk,JsonFieldModel:()=>e_.mNj,PopupSubTableFormModel:()=>e_.iT0,getMenuEditDefaultParams:()=>e_.n8$,DetailsItemModel:()=>e_.ZjK,fieldComponent:()=>e_.e7P,DisplayPasswordFieldModel:()=>e_.$T1,PinnedPluginListContext:()=>es.D,RichTextFieldInterface:()=>tT,useGlobalTheme:()=>y.my,SystemSettingsPage:()=>e_.WzN,TableAssociationFieldGroupModel:()=>e_.GJ1,dataLoadingMode:()=>e_.kbf,buildDisplayPathFromValue:()=>e_.d6j,FlowPage:()=>e_.KTk,subFormLinkageAssignField:()=>e_.zTu,EditActionModel:()=>e_.m2W,ExpandCollapseActionModel:()=>e_.hCX,createInsertMenuStep:()=>e_.FWr,MultipleSelectFieldInterface:()=>tb,buildMenuBasicSchema:()=>e_.ThI,getAdminLayoutModel:()=>e_.t_Y,PasswordFieldModel:()=>e_.dWg,aclCheckRefresh:()=>e_.Yh4,defaultOperator:()=>e_.CDb,DateOnlyFieldModel:()=>e_.s2k,getDefaultSettingsPath:()=>e_.C9C,hasIcon:()=>w.cE,joinUrlSearch:()=>e_.wqT,markCascadeHydrationDone:()=>e_.Ck8,ColorFieldModel:()=>e_.t4X,FormActionGroupModel:()=>e_.R8A,DetailsCustomItemModel:()=>e_.ivi,openView:()=>e_.e8C,InternalAdminSettingsLayout:()=>e_.Q7G,PageTabModel:()=>e_.sYw,RadioGroupFieldModel:()=>e_.wwh,AppMaintainingDialog:()=>w.tp,PluginFlowEngine:()=>e_.s$$,renderMode:()=>e_.IAc,AssignFormModel:()=>e_.Xw5,FilterActionModel:()=>e_.omq,ADMIN_LAYOUT_MODEL_UID:()=>e_.Mxl,FlowModelRepository:()=>e_.cYG,TopbarActionModel:()=>e_.k9E,getDisplayNumber:()=>e_.cm5,RouterContextCleaner:()=>w.PK,CascadeSelectInnerFieldModel:()=>e_.mzg,ClickableFieldModel:()=>e_.upW,CascadeSelectFieldModel:()=>e_.sJK,createAclSnippetAllow:()=>ed.rN,collectAssociationHydrationCandidates:()=>e_.ULH,getSimpleModePaginationClassName:()=>e_.HZo,linkageSetFieldProps:()=>e_.uFv,TextareaFieldModel:()=>e_.AMH,previewRunJS:()=>e_.zA_,FormModel:()=>e_.mOW,getTopbarPluginSettingsItems:()=>e_.XCP,VariableFieldFormModel:()=>e_.m$$,DisplayColorFieldModel:()=>e_.Ppd,detailsFieldLinkageRules:()=>e_.Dhs,RecordPickerFieldModel:()=>e_.J$w,hasOwnSettingsPage:()=>e_.lv4,useApplications:()=>e_.HWn,DisplayPercentFieldModel:()=>e_.hNf,QuickEditFormModel:()=>e_.biS,sortingRule:()=>e_.hsC,AdminSettingsLayoutModel:()=>e_.C_u,HeaderContext:()=>e_.B94,QUICK_EDIT_MARKDOWN_HEIGHT:()=>e_.vW_,sortTopLevelSettings:()=>e_.p$W,useCurrentRoleMode:()=>ed.GL,DatetimeNoTzFieldInterface:()=>tV,insertRouteSchema:()=>e_.eDQ,FormItemModel:()=>e_.JgE,refreshTargetBlocks:()=>e_.J9o,DisplayEnumFieldModel:()=>e_.VcJ});var o={};l.r(o),l.d(o,{ACLContext:()=>ed.w0,ACLRolesCheckProvider:()=>ed.rR,ADMIN_LAYOUT_MODEL_UID:()=>e_.Mxl,ADMIN_SETTINGS_KEY:()=>ee.w$,ADMIN_SETTINGS_LAYOUT_MODEL_UID:()=>e_.OaU,ADMIN_SETTINGS_PATH:()=>ee.wq,AIManager:()=>x,ActionGroupModel:()=>e_.xdz,ActionModel:()=>e_.S0L,ActionSceneEnum:()=>e_.s5y,ActionWithoutPermission:()=>e_._TB,AddChildActionModel:()=>e_.lcp,AddNewActionModel:()=>e_.to1,AdminLayoutComponent:()=>e_.V6y,AdminLayoutContent:()=>e_.xtQ,AdminLayoutMenuItemModel:()=>e_.xFY,AdminLayoutMenuItemRenderer:()=>e_.B_2,AdminLayoutMenuModelRenderer:()=>e_.xc1,AdminLayoutModel:()=>e_.pXX,AdminLayoutRouteCoordinator:()=>e_.N9e,AdminSettingsLayout:()=>e_.djK,AdminSettingsLayoutModel:()=>e_.C_u,AntdAppProvider:()=>v,AppError:()=>w.uV,AppMaintaining:()=>w.be,AppMaintainingDialog:()=>w.tp,AppNotFound:()=>w.bM,AppSpin:()=>w.gv,Application:()=>ea,ApplicationContext:()=>ec,ApplicationModel:()=>z,AssignFormGridModel:()=>e_.dpX,AssignFormItemModel:()=>e_.saj,AssignFormModel:()=>e_.Xw5,AssociationFieldGroupModel:()=>e_.mw1,AssociationFieldModel:()=>e_.bPr,BaseApplication:()=>q,BasePageTabModel:()=>e_.BpQ,BlankComponent:()=>w.ct,BlockGridModel:()=>e_.LaP,BlockModel:()=>e_.zgg,BlockSceneEnum:()=>e_.PW6,BulkDeleteActionModel:()=>e_.Ni4,CascadeSelectFieldModel:()=>e_.sJK,CascadeSelectInnerFieldModel:()=>e_.mzg,CascadeSelectListFieldModel:()=>e_.W4I,CheckboxFieldInterface:()=>e7,CheckboxFieldModel:()=>e_.zFh,CheckboxGroupFieldInterface:()=>te,CheckboxGroupFieldModel:()=>e_.MeX,ChildPageModel:()=>e_.JvK,ChildPageTabModel:()=>e_.wW_,ClickableFieldModel:()=>e_.upW,CodeEditor:()=>e_.BYM,CodeEditorExtension:()=>e_.o8y,CollectionActionGroupModel:()=>e_.zsf,CollectionActionModel:()=>e_.UZR,CollectionBlockModel:()=>e_.tPG,CollectionFieldInterface:()=>e9,CollectionFieldInterfaceManager:()=>K,CollectionSelectFieldInterface:()=>tt,CollectionSelectorFieldModel:()=>e_.Z0H,ColorFieldInterface:()=>tl,ColorFieldModel:()=>e_.t4X,CommonItemModel:()=>e_.Uhv,CreateContent:()=>e_.G9F,CreateFormModel:()=>e_.wLo,CreatedAtFieldInterface:()=>to,CreatedByFieldInterface:()=>tn,CustomWidth:()=>e_.K$V,DataBlockModel:()=>e_.RBt,DateFieldInterface:()=>t$,DateOnlyFieldModel:()=>e_.s2k,DateOnlyFilterFieldModel:()=>e_.K4N,DateOnlyPicker:()=>e_.xkv,DateTimeFilterFieldModel:()=>e_.foc,DateTimeNoTzFieldModel:()=>e_.cPq,DateTimeNoTzFilterFieldModel:()=>e_.e7h,DateTimeNoTzPicker:()=>e_.pVr,DateTimeTzFieldModel:()=>e_.zqF,DateTimeTzFilterFieldModel:()=>e_.pKk,DateTimeTzPicker:()=>e_.mUg,DatetimeFieldInterface:()=>ti,DatetimeNoTzFieldInterface:()=>tV,DefaultToolsManager:()=>b,DeleteActionModel:()=>e_.rvE,DetailsAssociationFieldGroupModel:()=>e_.sD1,DetailsBlockModel:()=>e_.PU8,DetailsCustomItemModel:()=>e_.ivi,DetailsGridModel:()=>e_.ql0,DetailsItemModel:()=>e_.ZjK,DetailsJSFieldItemModel:()=>e_.ODR,DisplayCheckboxFieldModel:()=>e_.v9U,DisplayColorFieldModel:()=>e_.Ppd,DisplayDateTimeFieldModel:()=>e_.Ra0,DisplayEnumFieldModel:()=>e_.VcJ,DisplayHtmlFieldModel:()=>e_.vrA,DisplayIconFieldModel:()=>e_.xEQ,DisplayJSONFieldModel:()=>e_.qPo,DisplayNumberFieldModel:()=>e_.LbM,DisplayPasswordFieldModel:()=>e_.$T1,DisplayPercentFieldModel:()=>e_.hNf,DisplaySubItemFieldModel:()=>e_.dhL,DisplaySubListFieldModel:()=>e_.k9Q,DisplaySubTableFieldModel:()=>e_.m5p,DisplayTextFieldModel:()=>e_.Tuv,DisplayTimeFieldModel:()=>e_.$FU,DisplayTitleFieldModel:()=>e_.mU7,DisplayURLFieldModel:()=>e_.Vrl,DividerItemModel:()=>e_.upH,EditActionModel:()=>e_.m2W,EditFormContent:()=>e_.AV5,EditFormModel:()=>e_.Y5n,EmailFieldInterface:()=>tr,ExpandCollapseActionModel:()=>e_.hCX,FieldDeletePlaceholder:()=>e_.xIu,FieldModel:()=>e_.oLV,FieldModelSelect:()=>e_.khg,FieldOperatorSelect:()=>e_.T8$,FilterActionModel:()=>e_.omq,FilterBlockModel:()=>e_.v$f,FilterContent:()=>e_.oJ5,FilterFormActionGroupModel:()=>e_.dv2,FilterFormActionModel:()=>e_.cNN,FilterFormBlockModel:()=>e_.D8m,FilterFormCollapseActionModel:()=>e_.D1b,FilterFormCustomFieldModel:()=>e_.xz3,FilterFormCustomItemModel:()=>e_.I6Z,FilterFormCustomRecordSelectFieldModel:()=>e_.udY,FilterFormFieldModel:()=>e_.Mf0,FilterFormGridModel:()=>e_.www,FilterFormItemModel:()=>e_.vIF,FilterFormJSActionModel:()=>e_.t_n,FilterFormRecordSelectFieldModel:()=>e_.ZMt,FilterFormResetActionModel:()=>e_.zUb,FilterFormSubmitActionModel:()=>e_.y2s,FilterGroup:()=>e_.I8R,FilterItem:()=>e_.qi_,FilterManager:()=>e_.qh$,FlowModelRepository:()=>e_.cYG,FlowPage:()=>e_.KTk,FlowRoute:()=>e_.YmV,FormActionGroupModel:()=>e_.R8A,FormActionModel:()=>e_.sEB,FormAssociationFieldGroupModel:()=>e_.EcU,FormAssociationItemModel:()=>e_.ur8,FormBlockContent:()=>e_.JUj,FormBlockModel:()=>e_.F4f,FormComponent:()=>e_.s2f,FormCustomItemModel:()=>e_.wBN,FormGridModel:()=>e_.Ybt,FormItemModel:()=>e_.JgE,FormJSFieldItemModel:()=>e_.kN,FormModel:()=>e_.mOW,FormSubmitActionModel:()=>e_.u36,GRID_FLOW_KEY:()=>e_.cEK,GRID_STEP:()=>e_._UX,GlobalThemeProvider:()=>y.U_,GridModel:()=>e_.QuL,HeaderContext:()=>e_.B94,Icon:()=>w.In,IconFieldInterface:()=>ta,IconFieldModel:()=>e_.rpg,IdFieldInterface:()=>ts,InputFieldInterface:()=>tc,InputFieldModel:()=>e_.mRH,InputNumberField:()=>e_.mLo,IntegerFieldInterface:()=>tp,InternalAdminSettingsLayout:()=>e_.Q7G,JSActionModel:()=>e_.Hn2,JSBlockModel:()=>e_.YJB,JSCollectionActionModel:()=>e_.dIg,JSColumnModel:()=>e_.l2T,JSEditableFieldModel:()=>e_.Nxx,JSFieldModel:()=>e_.P0,JSFormActionModel:()=>e_.l5h,JSItemActionModel:()=>e_.ymi,JSItemModel:()=>e_.qJ3,JSRecordActionModel:()=>e_.uVo,JsonFieldInterface:()=>th,JsonFieldModel:()=>e_.mNj,JsonInput:()=>e_.fnr,LayoutContent:()=>e_.A14,LinkActionModel:()=>e_.CII,LinkToFieldInterface:()=>tf,LinkageFilterItem:()=>e_.Ru1,M2MFieldInterface:()=>tv,M2OFieldInterface:()=>ty,MAX_MESSAGE_CHARS:()=>e_.hPI,MENU_TYPE_OPTIONS:()=>e_.o2o,MainPageModel:()=>e_.qir,MarkdownFieldInterface:()=>t_,MarkdownItemModel:()=>e_.qqP,MobileMenuControlContext:()=>e_.Qt8,MockFlowModelRepository:()=>e_.WuM,MultipleSelectFieldInterface:()=>tb,NBColorPicker:()=>e_.qtW,NanoidFieldInterface:()=>tH,NocoBaseBuildInPlugin:()=>eY,NocoBaseBuildInPluginV2:()=>eY,NumberFieldInterface:()=>tx,NumberFieldModel:()=>e_.r39,O2MFieldInterface:()=>tM,O2OFieldInterface:()=>tw,OBOFieldInterface:()=>tk,OHOFieldInterface:()=>tS,ObjectNester:()=>e_.Xmd,PLUGIN_MANAGER_SETTING_NAME:()=>e_.BmO,PageModel:()=>e_.XK0,PageTabModel:()=>e_.sYw,PasswordFieldInterface:()=>tF,PasswordFieldModel:()=>e_.dWg,PercentFieldInterface:()=>tC,PercentFieldModel:()=>e_.v6e,PercentInput:()=>e_.er5,PhoneFieldInterface:()=>tA,PinnedPluginListContext:()=>es.D,PinnedPluginListLite:()=>e_.Kgy,Plugin:()=>ef,PluginFlowEngine:()=>e_.s$$,PluginManager:()=>Z,PluginManagerPage:()=>e_.ksX,PluginSettingsManager:()=>ee.mz,PluginSettingsTopbarActionModel:()=>e_.ESx,PopupActionModel:()=>e_.a6D,PopupCollectionActionModel:()=>e_.YXI,PopupSubTableActionGroupModel:()=>e_.HJv,PopupSubTableActionsColumnModel:()=>e_.FaR,PopupSubTableEditActionModel:()=>e_.oIl,PopupSubTableFieldModel:()=>e_.Uk$,PopupSubTableFormActionGroupModel:()=>e_.d13,PopupSubTableFormModel:()=>e_.iT0,PopupSubTableFormSubmitActionModel:()=>e_.spd,PopupSubTableRemoveActionModel:()=>e_.Ie6,QUICK_EDIT_FORM_MAX_HEIGHT:()=>e_.x_D,QUICK_EDIT_MARKDOWN_HEIGHT:()=>e_.vW_,QUICK_EDIT_POPOVER_MAX_HEIGHT:()=>e_.i6C,QuickEditFormModel:()=>e_.biS,RadioGroupFieldInterface:()=>tP,RadioGroupFieldModel:()=>e_.wwh,RecordActionGroupModel:()=>e_.gk0,RecordActionModel:()=>e_.LAC,RecordPickerContent:()=>e_.vy4,RecordPickerFieldModel:()=>e_.J$w,RecordSelectFieldModel:()=>e_.BgT,RefreshActionModel:()=>e_.n6C,RemoteFlowModelRenderer:()=>e_.zCA,ResetThemeTokenAndKeepAlgorithm:()=>e_.fCM,RichTextField:()=>e_.OsV,RichTextFieldInterface:()=>tT,RichTextFieldModel:()=>e_.DvX,RootPageModel:()=>e_.T6P,RootPageTabModel:()=>e_._$j,RouteModel:()=>e_.j0c,RouteRepository:()=>k,RouterContextCleaner:()=>w.PK,RouterManager:()=>eo,SNIPPET_PREFIX:()=>ee.tJ,SYSTEM_SETTINGS_SETTING_NAME:()=>e_.jmZ,SelectFieldInterface:()=>tj,SelectFieldModel:()=>e_.CCB,SkeletonFallback:()=>e_.KSc,SnowflakeIdFieldInterface:()=>tI,SourceCascader:()=>e_.AvD,SubFormFieldModel:()=>e_.Imp,SubFormListFieldModel:()=>e_.sW6,SubPageModel:()=>e_.RLu,SubTableColumnModel:()=>e_.WHj,SubTableFieldInterface:()=>tL,SubTableFieldModel:()=>e_.mHU,SubTableRecordAction:()=>e_.sJA,SystemSettingsPage:()=>e_.WzN,SystemSettingsSource:()=>e_.orA,TableActionsColumnModel:()=>e_.B6V,TableAssociationFieldGroupModel:()=>e_.GJ1,TableBlockModel:()=>e_.zDb,TableColumnModel:()=>e_.ivU,TableCustomColumnModel:()=>e_.Fts,TableJSFieldItemModel:()=>e_._e9,TableSelectModel:()=>e_.mSG,TableoidFieldInterface:()=>tD,TextAreaWithContextSelector:()=>e_.nap,TextareaFieldInterface:()=>tY,TextareaFieldModel:()=>e_.AMH,TimeFieldInterface:()=>tE,TimeFieldModel:()=>e_.Fy3,TopbarActionModel:()=>e_.k9E,UIEditorTopbarActionModel:()=>e_.h2d,USER_CENTER_ACTION_ID:()=>e_.Bnh,UUIDFieldInterface:()=>tO,UnitConversion:()=>e_.VPO,UnixTimestampFieldInterface:()=>tq,UpdateRecordActionModel:()=>e_.MhO,UpdatedAtFieldInterface:()=>tR,UpdatedByFieldInterface:()=>tN,UrlFieldInterface:()=>tB,UserCenterActionItemModel:()=>e_.ngq,UserCenterItemModel:()=>e_.np$,UserCenterSelectItemModel:()=>e_.FKm,UserCenterTextItemModel:()=>e_.ysz,UserCenterTopbarActionModel:()=>e_.ccc,VariableFieldFormModel:()=>e_.m$$,VariableFilterItem:()=>e_.Et2,ViewActionModel:()=>e_.v8l,WebSocketClient:()=>F,aclCheck:()=>e_.VGp,aclCheckRefresh:()=>e_.Yh4,actionLinkageRules:()=>e_.tQF,addCustomAlgorithmToTheme:()=>y._l,afterSuccess:()=>e_.mKE,applyMobilePaginationProps:()=>e_.hOt,blockHeight:()=>e_.Bum,blockLinkageRules:()=>e_.aWb,buildDisplayPathFromValue:()=>e_.d6j,buildInsertRouteSchema:()=>e_.QBt,buildLegacySigninHref:()=>eu.LQ,buildLinkSettingSchema:()=>e_.qNx,buildMenuBasicSchema:()=>e_.ThI,buildMenuTitleWithIcon:()=>e_.riZ,buildRecordPickerParentItemContext:()=>e_.oM7,buildRecordPickerPopupContextInputArgs:()=>e_.S5n,collectAssociationHydrationCandidates:()=>e_.ULH,collectCascadeHydrationCandidate:()=>e_.qlo,compatOldTheme:()=>y.Ne,confirm:()=>e_.lJp,connectFields:()=>e_.KYF,convertV2AdminPathToLegacy:()=>eu.Sx,createAclSnippetAllow:()=>ed.rN,createCompactSimpleItemRender:()=>e_.hHg,createDefaultCollectionBlockTitle:()=>e_.lrV,createInsertMenuStep:()=>e_.FWr,createMockClient:()=>eh,createSettingsPathMap:()=>e_.nCj,customAlgorithm:()=>y.ze,customVariable:()=>e_.I6c,customizeFilterRender:()=>e_.wUQ,dataLoadingMode:()=>e_.kbf,dataScope:()=>e_.fAh,dateTimeFormat:()=>e_.LE6,defaultOperator:()=>e_.CDb,defaultTheme:()=>y.zQ,detailsFieldLinkageRules:()=>e_.Dhs,diagnoseRunJS:()=>e_.fLT,dispatchEventDeep:()=>e_.Xig,displayFieldComponent:()=>e_.kkB,editMarkdownFlow:()=>e_.uMh,fieldComponent:()=>e_.e7P,fieldLinkageRules:()=>e_.znN,filterFormDefaultValues:()=>e_.IBN,filterRenderableSettings:()=>e_.Ui7,filterVisibleSettings:()=>e_.eDc,findFirstAccessiblePageRoute:()=>e_.MMn,findFirstInternalSettingsPage:()=>e_.X2M,findNextSiblingRoute:()=>e_.Evi,findOptionPathByTk:()=>e_.s5W,findPrevSiblingRoute:()=>e_.Cuw,findSettingsByName:()=>e_.R0X,fixed:()=>e_.Zu2,formAssignRules:()=>e_.dWc,formatNumber:()=>e_.ZVp,formatRunJSPreviewMessage:()=>e_.byO,getAdminLayoutMenuInitializerButton:()=>e_.Tnx,getAdminLayoutMenuMovePositionOptions:()=>e_.B82,getAdminLayoutMenuVirtualPath:()=>e_.Px_,getAdminLayoutModel:()=>e_.t_Y,getAllDataModels:()=>e_.w5F,getCurrentV2RedirectPath:()=>eu.vi,getDefaultOperator:()=>e_.aqk,getDefaultSettingsPath:()=>e_.C9C,getDefaultV2AdminRedirectPath:()=>eu.uk,getDetailsItemValue:()=>e_.ROt,getDisplayNumber:()=>e_.cm5,getMenuCreationDefaultParams:()=>e_.y8o,getMenuCreationUiSchema:()=>e_._IX,getMenuEditDefaultParams:()=>e_.n8$,getMenuItems:()=>e_.gLn,getMobileCompactPaginationClassName:()=>e_.NYj,getPinnedPluginListKeys:()=>es.k,getQuickEditFieldProps:()=>e_.YXr,getSimpleModePaginationClassName:()=>e_.HZo,getTopbarPluginSettingsItems:()=>e_.XCP,getUniqueKeyFromCollection:()=>tg,getUnknownCountPaginationTotal:()=>e_.SMJ,getValueWithIndex:()=>e_.kPK,hasIcon:()=>w.cE,hasOwnSettingsPage:()=>e_.lv4,icons:()=>w.Pt,injectRecordPickerPopupContext:()=>e_.gaO,insertRouteSchema:()=>e_.eDQ,isFilterValueEmpty:()=>e_.tUI,joinUrlSearch:()=>e_.wqT,languageCodes:()=>ey.A,layout:()=>e_.Zpx,linkageAssignField:()=>e_.fMK,linkageRulesRefresh:()=>e_.S3Z,linkageRunjs:()=>e_.Myf,linkageSetActionProps:()=>e_.mQM,linkageSetBlockProps:()=>e_.LFq,linkageSetDetailsFieldProps:()=>e_.KAX,linkageSetFieldProps:()=>e_.uFv,markCascadeHydrationDone:()=>e_.Ck8,matchSettingsRoute:()=>e_.CM3,matchesRoutePath:()=>e_.Qb_,mergePaginationClassName:()=>e_.M6q,navigateToURL:()=>e_.isP,normalizeAdminLayoutMenuLegacyVariables:()=>e_.ux6,numberFormat:()=>e_.jqd,openAdminLayoutMenuLink:()=>e_.jjG,openView:()=>e_.e8C,openViewFlow:()=>e_.gvx,operatorComponentProps:()=>e_.KHY,overflowMode:()=>e_.COB,pattern:()=>e_.T16,previewRunJS:()=>e_.zA_,recalculateGridSizes:()=>e_.aDm,reconcileAdminLayoutMenuItems:()=>e_.tSM,redirectToLegacySignin:()=>eu.BE,refreshTargetBlocks:()=>e_.J9o,registerIcon:()=>w.pU,registerIcons:()=>w.K1,renderMode:()=>e_.IAc,replaceRouteParams:()=>e_.uTv,required:()=>e_.mw3,resolveAdminLayoutMenuDragMoveOptions:()=>e_.OtO,resolveAdminLayoutMenuDragMoveOptionsFromEvent:()=>e_.eLO,resolveAdminLayoutMenuLink:()=>e_.fi1,resolveAdminRouteRuntimeTarget:()=>e_.YjI,resolveCustomFieldOperatorList:()=>e_.eCD,resolveDefaultCustomFieldOperator:()=>e_.T9,resolveLegacySigninRedirect:()=>eu.M4,runjs:()=>e_.ZCq,setTargetDataScope:()=>e_.mp5,shouldRenderIconInTitle:()=>e_.Ucr,showMessage:()=>e_.rGX,showNotification:()=>e_.Dsh,sortTopLevelSettings:()=>e_.p$W,sortingRule:()=>e_.hsC,subFormFieldLinkageRules:()=>e_.D2p,subFormLinkageAssignField:()=>e_.zTu,subFormLinkageSetFieldProps:()=>e_.gbJ,titleField:()=>e_.Pqd,toOperatorSelectOptions:()=>e_.kA1,toRouterNavigationPath:()=>e_.Yjq,toToolsMap:()=>M,toTreeSelectItems:()=>e_.Gap,toViewStack:()=>e_.Hwd,transformNestedData:()=>e_.Anr,transformRowsToSingleColumn:()=>e_.vbm,useACLContext:()=>ed.bq,useACLRoleContext:()=>ed.v6,useAclSnippets:()=>ed.K3,useApp:()=>m.n,useApplications:()=>e_.HWn,useCurrentRoleMode:()=>ed.GL,useGlobalTheme:()=>y.my,useMobileLayout:()=>e_.mYX,usePlugin:()=>eg.n,useRoleRecheck:()=>ed.N5,useRouter:()=>ev,useSystemSettings:()=>e_.e6V,useUIConfigurationPermissions:()=>ed.uM,validation:()=>e_.Eq4});var n=l(1178),i=l(2314),r=l(504),a=l(7583),s=l(1649),d=l(6662),u=l(7843),c=l(4679),p=l(8356),m=l(5703),h=l(2793);let f=(0,s.memo)(e=>{let{children:t}=e,l=(0,m.n)(),{notification:o}=h.App.useApp();return(0,s.useLayoutEffect)(()=>{l.context.defineProperty("notification",{value:o})},[l,o]),(0,n.jsx)(n.Fragment,{children:t})});f.displayName="AppInner";let g=e=>{let{children:t,className:l,style:o}=e;return(0,n.jsx)(h.App,{className:l,style:{height:"100%",...o},children:(0,n.jsx)(f,{children:t})})};g.displayName="AntdAppProvider";let v=g;var y=l(7825),_=l(3526);class b{async listTools(e){let{data:t}=await this.app.apiClient.resource("aiTools").list({filter:e}),l=null==t?void 0:t.data;return l?l.map(e=>({...e,...this.tools.get(e.definition.name)??{}})):[]}useTools(){let e=new _.Registry;for(let[l,o]of this.tools.getEntities()){var t;e.register(l,{...(null==(t=o.useHooks)?void 0:t.call(o))??o})}return e}registerTools(e,t){this.tools.register(e,{...t})}constructor(e,t=new _.Registry){this.app=e,this.tools=t}}class x{constructor(e){this.app=e,this.toolsManager=new b(this.app)}}let M=e=>new Map(e.map(e=>[e.definition.name,e]));var w=l(5640),S=l(7520);class k{setRoutes(e){this.routes=e,this.accessibleLoaded=!0,this.emitChange()}listAccessible(){return this.routes}isAccessibleLoaded(){return this.accessibleLoaded}async refreshAccessible(){var e;let t=await this.getAPIClient().request({url:"/desktopRoutes:listAccessible",params:{tree:!0,sort:"sort"}}),l=(null==t||null==(e=t.data)?void 0:e.data)||[];return this.setRoutes(l),l}async ensureAccessibleLoaded(){return this.accessibleLoaded?this.routes:(this.accessibleLoadingPromise||(this.accessibleLoadingPromise=this.refreshAccessible().finally(()=>{this.accessibleLoadingPromise=null})),this.accessibleLoadingPromise)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}unsubscribe(e){this.subscribers.delete(e)}async createRoute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{refreshAfterMutation:l=!0}=t,o=await this.getResource("desktopRoutes").create({values:e});return l&&await this.refreshAccessible(),o}async updateRoute(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{refreshAfterMutation:o=!0}=l,n=await this.getResource("desktopRoutes").update(Array.isArray(e)?{filter:{id:{$in:e}},values:t}:{filterByTk:e,values:t});return o&&await this.refreshAccessible(),n}async deleteRoute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{refreshAfterMutation:l=!0}=t,o=await this.getResource("desktopRoutes").destroy({filterByTk:e});return l&&await this.refreshAccessible(),o}async moveRoute(e){let{refreshAfterMove:t=!0,...l}=e,o=await this.getResource("desktopRoutes").move(l);return t&&await this.refreshAccessible(),o}getRouteBySchemaUid(e){return this.findRoute(this.routes,e)}getAPIClient(){var e;if(!(null==(e=this.ctx)?void 0:e.api))throw Error("[NocoBase] RouteRepository requires context.api.");return this.ctx.api}getResource(e){return this.getAPIClient().resource(e)}emitChange(){this.subscribers.forEach(e=>{e()})}findRoute(e,t){for(let l of e){if(l.schemaUid===t)return l;if(l.children){let e=this.findRoute(l.children,t);if(e)return e}}}constructor(e){this.ctx=e,this.routes=[],this.subscribers=new Set,this.accessibleLoaded=!1,this.accessibleLoadingPromise=null}}class F{getURL(){if(!this.app)return;let e=this.app.getApiUrl();if(!e)return;let t="";if(this.getSubAppName(this.app))t=`?_app=${this.getSubAppName(this.app)}`;else{let e=(0,__rspack_external__nocobase_sdk_cafaf92c.getSubAppName)(this.app.getPublicPath());t=e?`?__appName=${e}`:""}let l=this.options.basename||"/ws";if(this.options.url){let e=new URL(this.options.url);if("localhost"===e.hostname){let o="https:"===location.protocol?"wss":"ws";return`${o}://${location.hostname}:${e.port}${l}${t}`}return`${this.options.url}${t}`}try{let o=new URL(e);return`${"https:"===o.protocol?"wss":"ws"}://${o.host}${l}${t}`}catch(e){return`${"https:"===location.protocol?"wss":"ws"}://${location.host}${l}${t}`}}get reconnectAttempts(){var e;return(null==(e=this.options)?void 0:e.reconnectAttempts)||30}get reconnectInterval(){var e;return(null==(e=this.options)?void 0:e.reconnectInterval)||1e3}get pingInterval(){var e;return(null==(e=this.options)?void 0:e.pingInterval)||3e5}get readyState(){return this._ws?this._ws.readyState:-1}createWebSocket(){return new WebSocket(this.getURL(),this.options.protocols)}connect(){let e;if(!this.enabled||(0===this._reconnectTimes&&console.log("[nocobase-ws]: connecting..."),this._reconnectTimes>=this.reconnectAttempts||this.readyState===WebSocket.OPEN))return;this._reconnectTimes++;let t=this.createWebSocket();t.onopen=()=>{for(let{type:e,listener:l,options:o}of(console.log("[nocobase-ws]: connected."),this.serverDown=!1,this._ws&&this.removeAllListeners(),this._reconnectTimes=0,this._ws=t,this.events))this._ws.addEventListener(e,l,o);e=setInterval(()=>this.send("ping"),this.pingInterval),this.connected=!0,this.emit("open",{})},t.onerror=async()=>{console.log("onerror",this.readyState,this._reconnectTimes)},t.onclose=async t=>{setTimeout(()=>this.connect(),this.reconnectInterval),console.log("onclose",this.readyState,this._reconnectTimes,this.serverDown),this.connected=!1,clearInterval(e)}}reconnect(){this._reconnectTimes=0,this.connect()}close(){if(this._ws)return this._reconnectTimes=this.reconnectAttempts,this._ws.close()}send(e){if(this._ws)return this._ws.send(e)}on(e,t,l){this.events.push({type:e,listener:t,options:l}),this._ws&&this._ws.addEventListener(e,t,l)}emit(e,t){for(let l of this.events)l.type===e&&l.listener(t)}off(e,t,l){let o=0;for(let l of this.events){if(l.type===e&&l.listener===t){this.events.splice(o,1);break}o++}this._ws&&this._ws.removeEventListener(e,t,l)}removeAllListeners(){if(this._ws)for(let{type:e,listener:t,options:l}of this.events)this._ws.removeEventListener(e,t,l)}constructor(e){if(this._reconnectTimes=0,this.events=[],this.connected=!1,this.serverDown=!1,this.lastMessage={},this.getSubAppName=e=>{let t=e.getPublicPath(),l=`^${t}_app/([^/]*)/`,o=location.pathname.match(new RegExp(l));return o?o[1]:null},!e){this.enabled=!1;return}this.options=!0===e?{}:e,this.enabled=!0,(0,i.define)(this,{serverDown:i.observable.ref,connected:i.observable.ref,lastMessage:i.observable.ref})}}function C(e){if(!e)return console.warn("Failed to mount app: mount target should not be null or undefined."),null;if("string"==typeof e){let t=document.querySelector(e);return t||console.warn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return globalThis.window.ShadowRoot&&e instanceof globalThis.window.ShadowRoot&&"closed"===e.mode&&console.warn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let A=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let o=t.reduce((e,t)=>{let[l,o]=t,i=t=>{let{children:i}=t;return(0,n.jsx)(e,{children:(0,n.jsx)(l,{...o,children:i})})};return i.displayName=`compose(${l.displayName||l.name})`,i},w.ct);return e=>t=>(0,n.jsx)(o,{children:e&&(0,n.jsx)(e,{...t})})};var P=l(1196),T=l(2113),j=l(4814),I=l(6920),L=l(7404),D=l(7516);function Y(e){e.define("react",()=>s.default),e.define("react-dom",()=>D.default),e.define("react/jsx-runtime",()=>n.default),e.define("react-router",()=>__rspack_external_react_router_65608a1a),e.define("react-router-dom",()=>p),e.define("antd",()=>h),e.define("@ant-design/icons",()=>T),e.define("@ant-design/cssinjs",()=>P),e.define("i18next",()=>__rspack_external_i18next),e.define("react-i18next",()=>u),e.define("@formily/core",()=>j),e.define("@formily/react",()=>I),e.define("@formily/reactive",()=>i),e.define("@formily/shared",()=>L),e.define("@nocobase/utils",()=>_),e.define("@nocobase/utils/client",()=>_),e.define("@nocobase/client-v2",()=>o),e.define("@nocobase/client-v2/client-v2",()=>o),e.define("@nocobase/flow-engine",()=>r)}var E=l(6104);let R=/^\/+/,N=/\/+$/,B=e=>{let t=R.exec(e);return t?e.slice(t[0].length):e},O=e=>{let t=N.exec(e);return t?e.slice(0,-t[0].length):e},H=e=>(0,__rspack_external_react_is_98317e95.isValidElementType)(e);class q{get pm(){return this.pluginManager}get disableAcl(){return this.options.disableAcl}get isWsAuthorized(){return this.wsAuthorized}defineObservableState(){(0,i.define)(this,{maintained:i.observable.ref,maintaining:i.observable.ref,error:i.observable.ref})}initializeExtendedState(){this.systemSettings=new S.o(this.apiClient)}afterManagersInitialized(){this.aiManager=new x(this)}configureContext(){}configureRuntimeAdapters(){}addCustomProviders(){}initListeners(){this.eventBus.addEventListener("auth:tokenChanged",e=>{let t=e.detail;(null==t?void 0:t.token)&&this.setTokenInWebSocket(t)}),this.eventBus.addEventListener("maintaining:end",()=>{this.apiClient.auth.token&&this.setTokenInWebSocket({token:this.apiClient.auth.token,authenticator:this.apiClient.auth.getAuthenticator()})})}setTokenInWebSocket(e){let{token:t,authenticator:l}=e;this.maintaining||this.ws.send(JSON.stringify({type:"auth:token",payload:{token:t,authenticator:l}}))}initRequireJs(){if(void 0===globalThis.window)return;let e=globalThis.window;if(e.requirejs){this.requirejs=e.requirejs;return}e.requirejs=this.requirejs=(0,E.b)(),Y(this.requirejs),e.define=this.requirejs.define}configureBaseContext(){this.flowEngine.context.defineProperty("app",{value:this}),this.flowEngine.context.defineProperty("api",{value:this.apiClient}),this.flowEngine.context.defineProperty("i18n",{value:this.i18n}),this.flowEngine.context.defineProperty("router",{get:()=>this.router.router,cache:!1}),this.flowEngine.context.defineProperty("documentTitle",{get:()=>document.title}),this.flowEngine.context.defineProperty("route",{get:()=>{},observable:!0}),this.flowEngine.context.defineProperty("location",{get:()=>location,observable:!0}),this.flowEngine.context.defineProperty("routeRepository",{value:new k(this.flowEngine.context)}),this.flowEngine.context.defineProperty("appInfo",{get:async()=>{var e;return(null==(e=(await this.apiClient.request({url:"app:getInfo"})).data)?void 0:e.data)||{}}}),this.flowEngine.context.defineProperty("pageInfo",{value:(0,i.observable)({version:void 0})}),this.flowEngine.context.defineProperty("systemSettings",{get:()=>this.systemSettings})}addBaseProviders(){this.use(u.I18nextProvider,{i18n:this.i18n}),this.use(r.FlowEngineProvider,{engine:this.flowEngine}),this.use(y.U_),this.use(v)}addFinalProviders(){this.use(r.FlowEngineGlobalsContextProvider)}addReactRouterComponents(){this.addComponents({Link:p.Link,Navigate:p.Navigate,NavLink:p.NavLink})}addRoutes(){this.router.add("not-found",{path:"*",Component:this.components.AppNotFound})}updateFavicon(e){let t=document.querySelector('link[rel="shortcut icon"]');e&&(this.favicon=e);let l=this.favicon||"/favicon/favicon.ico";t?t.href=l:((t=document.createElement("link")).rel="shortcut icon",t.href=l,document.head.appendChild(t))}setWsAuthorized(e){this.wsAuthorized=e}setMaintaining(e){this.maintaining!==e&&(this.maintaining=e,e||this.eventBus.dispatchEvent(new Event("maintaining:end")))}getOptions(){return this.options}getName(){return(0,__rspack_external__nocobase_sdk_cafaf92c.getSubAppName)(this.getPublicPath())||null}getPublicPath(){let e=this.options.publicPath||"/";return e.endsWith("/")||(e+="/"),e}getApiUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.apiClient.axios.defaults.baseURL??"";if(!t.startsWith("http://")&&!t.startsWith("https://")){let{protocol:e,host:l}=globalThis.window.location;t=`${e}//${l}${t}`}return`${O(t)}/${B(e)}`}getRouteUrl(e){return this.getPublicPath()+B(e)}getHref(e){let t=this.name;return t&&"main"!==t?`${this.getPublicPath()}apps/${t}/${B(e)}`:this.getPublicPath()+B(e)}getComposeProviders(){let e=A(...this.providers)(w.ct);return e.displayName="Providers",e}use(e,t){return this.addProvider(e,t)}addProvider(e,t){return this.providers.push([e,t])}addProviders(e){e.forEach(e=>{Array.isArray(e)?this.addProvider(e[0],e[1]):this.addProvider(e)})}getComponent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=e=>t&&console.error(e);if(!e)return void l(`getComponent called with ${e}`);if("string"==typeof e){let t=(0,a.get)(this.components,e);return t||void l(`Component ${e} not found`)}if(H(e))return e;l(`Component ${e} should be a string or a React component`)}renderComponent(e,t,l){let o=this.getComponent(e);return o?s.default.createElement(o,t,l):null}addComponent(e,t){let l=e,o=t||l.displayName||l.name;o?(0,a.set)(this.components,o,e):console.error("Component must have a displayName or pass name as second argument")}addComponents(e){Object.keys(e).forEach(t=>{this.addComponent(e[t],t)})}getRootFallback(){return this.renderComponent("AppSpin")}getRootComponent(){let e=this.model,t=this.flowEngine,l=()=>this.getRootFallback();return o=>{let{children:i}=o;return(0,s.useLayoutEffect)(()=>{e.setProps({children:i})},[i]),(0,n.jsx)(r.FlowEngineProvider,{engine:t,children:(0,n.jsx)(r.FlowModelRenderer,{fallback:l(),model:e})})}}mount(e){let t=C(e);if(t){let e=this.getRootComponent(),l=(0,d.createRoot)(t);return l.render((0,n.jsx)(e,{})),l}}createWebSocketClient(e){return new F(e.ws??!1)}getDefaultComponents(){return{AppNotFound:w.bM,AppError:w.uV,AppSpin:w.gv,AppMaintaining:w.be,AppMaintainingDialog:w.tp}}constructor(e={}){this.options=e,this.eventBus=new EventTarget,this.providers=[],this.scopes={},this.components={},this.maintained=!1,this.maintaining=!1,this.error=null,this.wsAuthorized=!1,this.apps={Component:null},this.initRequireJs(),this.defineObservableState(),this.devDynamicImport=e.devDynamicImport,this.scopes=(0,a.merge)(this.scopes,e.scopes),this.components=(0,a.merge)(this.getDefaultComponents(),e.components),this.name=this.options.name||(0,__rspack_external__nocobase_sdk_cafaf92c.getSubAppName)(e.publicPath)||"main",this.apiClient=this.createApiClient(e),this.initializeExtendedState(),this.i18n=this.createI18n(e),this.router=this.createRouterManager(e),this.pluginManager=this.createPluginManager(e),this.flowEngine=new r.FlowEngine,this.flowEngine.registerModels({ApplicationModel:z}),this.model=this.flowEngine.createModel({use:"ApplicationModel",uid:"__app_model__"}),this.context=this.flowEngine.context,this.configureRuntimeAdapters(),this.context.defineProperty("pluginManager",{get:()=>this.pluginManager}),this.configureBaseContext(),this.configureContext(),this.addBaseProviders(),this.addCustomProviders(),this.addFinalProviders(),this.addReactRouterComponents(),this.addProviders(e.providers||[]),this.ws=this.createWebSocketClient(e),this.ws.app=this,this.pluginSettingsManager=this.createPluginSettingsManager(e),this.addRoutes(),this.i18n.on("languageChanged",e=>{this.apiClient.auth.locale=e}),this.initListeners(),this.afterManagersInitialized()}}var $=new WeakMap,V=new WeakMap;class z extends r.FlowModel{get app(){return this.context.app}getProviders(){return(0,__rspack_external__swc_helpers_class_private_field_set_77a3a28f._)(this,$,(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,$)||this.app.getComposeProviders()),(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,$)}getRouter(){return(0,__rspack_external__swc_helpers_class_private_field_set_77a3a28f._)(this,V,(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,V)||this.app.router.getRouterComponent()),(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,V)}render(){return this.app.maintaining?this.renderMaintaining():this.app.error?this.renderError():this.renderContent()}renderMaintaining(){return this.app.maintained?this.app.renderComponent("AppMaintainingDialog",{app:this.app,error:this.app.error}):this.app.renderComponent("AppMaintaining",{app:this.app,error:this.app.error})}renderError(){return this.app.renderComponent("AppError",{app:this.app,error:this.app.error})}renderContent(){let e=this.app.getComponent("AppError",!1),t=this.getRouter(),l=this.getProviders(),o=(0,n.jsx)(t,{BaseLayout:l});if(!e)return o;let i=(e,t)=>{var l;console.error(e);let o=null==(l=t.componentStack)?void 0:l.trim();if(!o)return;let n=Error("React component stack");n.stack=o,console.error(n)};return(0,n.jsx)(c.ErrorBoundary,{FallbackComponent:t=>(0,n.jsx)(e,{app:this.app,...t}),onError:i,children:o})}constructor(...e){super(...e),(0,__rspack_external__swc_helpers_class_private_field_init_bfcd6df5._)(this,$,{writable:!0,value:void 0}),(0,__rspack_external__swc_helpers_class_private_field_init_bfcd6df5._)(this,V,{writable:!0,value:void 0})}}z.registerFlow({key:"appFlow",steps:{init:{async handler(e){try{await e.app.load()}catch(t){e.model.app.error=t,console.error(t)}}}}});class K{addFieldInterfaces(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.reduce((e,t)=>{let l=new t(this);return(null==l?void 0:l.name)&&(e[l.name]=l,Array.isArray(this.actionList[l.name])&&(this.actionList[l.name].forEach(e=>{var t,o;if("addComponentOption"===e.type){null==(o=l.addComponentOption)||o.call(l,e.data);return}null==(t=l.addOperator)||t.call(l,e.data)}),this.actionList[l.name]=void 0)),e},{});Object.assign(this.collectionFieldInterfaceInstances,t)}addFieldInterfaceComponentOption(e,t){var l;let o=this.getFieldInterface(e);o?null==(l=o.addComponentOption)||l.call(o,t):this.enqueueAction(e,{type:"addComponentOption",data:t})}addFieldInterfaceOperator(e,t){var l;let o=this.getFieldInterface(e);o?null==(l=o.addOperator)||l.call(o,t):this.enqueueAction(e,{type:"addOperator",data:t})}getFieldInterface(e){return this.collectionFieldInterfaceInstances[e]}getFieldInterfaces(e){return Object.values(this.collectionFieldInterfaceInstances).filter(t=>!e||!t.supportDataSourceType&&!t.notSupportDataSourceType||(t.supportDataSourceType?t.supportDataSourceType.includes(e):!t.notSupportDataSourceType||!t.notSupportDataSourceType.includes(e)))}addFieldInterfaceGroups(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this.collectionFieldGroups,e)}getFieldInterfaceGroups(){return this.collectionFieldGroups}getFieldInterfaceGroup(e){return this.collectionFieldGroups[e]}enqueueAction(e,t){this.actionList[e]||(this.actionList[e]=[]),this.actionList[e].push(t)}constructor(e){this.dataSourceManager=e,this.collectionFieldInterfaceInstances={},this.collectionFieldGroups={},this.actionList={}}}function U(e){Object.entries(e).forEach(e=>{let[t,l]=e;window.define(`${t}/client-v2`,()=>l)})}function G(e){window.define(`${e}/client-v2`,["exports",e],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(l){"__esModule"===l||l in e&&e[l]===t[l]||Object.defineProperty(e,l,{enumerable:!0,get:function(){return t[l]}})})})}function W(e,t){e.requirejs.config({waitSeconds:120,paths:t.reduce((e,t)=>(e[t.packageName]=t.url,e),{})})}function J(e,t){return function(){for(var l=arguments.length,o=Array(l),n=0;n<l;n++)o[n]=arguments[n];t(o.map((t,l)=>[e[l].name,(null==t?void 0:t.default)||t]).filter(e=>e[1]));let i=o.map((e,t)=>e?null:t).filter(e=>null!==e).map(t=>e[t].packageName);i.length>0&&console.error("[nocobase load plugin error]: These plugins do not have an `export.default` exported content or there is an error in the plugins. error plugins: \r\n%s",i.join(", \r\n"))}}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];W(e,t);let l=t.map(e=>e.packageName);return l.forEach(e=>{G(e)}),new Promise((o,n)=>{e.requirejs(l,J(t,o),n)})}async function Q(e){let{requirejs:t,pluginData:l,devDynamicImport:o}=e;if(0===l.length)return[];let n=[],i={};if(o){for await(let e of l){let t=await o(e.packageName);t&&(n.push([e.name,t.default]),i[e.packageName]=t.default)}U(i)}let r=l.filter(e=>!i[e.packageName]);if(0===r.length)return n;if(0===n.length){let e=await X(t,r);n.push(...e)}return n}class Z{async init(e){await this.initStaticPlugins(e),this.loadRemotePlugins&&await this.initRemotePlugins()}getRemotePluginsRequestUrl(){return"pm:listEnabledV2"}async initStaticPlugins(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for await(let t of e){let e=Array.isArray(t)?t[0]:t,l=Array.isArray(t)?t[1]:void 0;await this.add(e,l)}}async initRemotePlugins(){var e;let t=await this.app.apiClient.request({url:this.getRemotePluginsRequestUrl()}),l=(null==t||null==(e=t.data)?void 0:e.data)||[];for await(let[e,t]of(await Q({requirejs:this.app.requirejs,pluginData:l,devDynamicImport:this.app.devDynamicImport}))){let o=l.find(t=>t.name===e);await this.add(t,o)}}async add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this.getInstance(e,t);this.pluginInstances.set(e,l),t.name&&(this.pluginsAliases[t.name]=l),t.packageName&&(this.pluginsAliases[t.packageName]=l),await l.afterAdd()}get(e){return"string"==typeof e?this.pluginsAliases[e]:this.pluginInstances.get(e.default||e)}getInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new e(t,this.app)}async load(){for(let e of(await this.initPlugins,this.pluginInstances.values()))await e.beforeLoad();for(let e of this.pluginInstances.values())await e.load(),this.app.eventBus.dispatchEvent(new CustomEvent(`plugin:${e.options.name}:loaded`,{detail:e}))}constructor(e,t,l){this._plugins=e,this.loadRemotePlugins=t,this.app=l,this.pluginInstances=new Map,this.pluginsAliases={},this.app=l,this.initPlugins=this.init(e||[]),this.loadRemotePlugins=t}}var ee=l(3939);function et(e){let t=(0,p.useParams)(),l=(0,p.useLocation)(),o=(0,p.useMatches)(),n=e.flowEngine;(0,s.useEffect)(()=>{var e;let l=o[o.length-1];l&&(n.context._observableCache.route={name:l.id,pathname:l.pathname,path:(null==(e=l.handle)?void 0:e.path)||null,params:t})},[n.context,t,o]),(0,s.useEffect)(()=>{n.context._observableCache.location=l},[n.context,l])}function el(e){let{app:t}=e;return et(t),null}class eo{get basename(){return this.router.basename}get state(){return this.router.state}get navigate(){return this.router.navigate}resolveLoadedComponent(e){if(e)return"function"==typeof e||"string"==typeof e?e:e.default||e.Component}createRouteLazyComponent(e){let t=s.default.lazy(()=>e().then(e=>{let t=this.resolveLoadedComponent(e);if(!t)throw Error("componentLoader must resolve to a React component or component module.");return"string"==typeof t?{default:e=>this.app.renderComponent(t,e)}:{default:t}}));return function(e){return(0,n.jsx)(s.default.Suspense,{fallback:null,children:(0,n.jsx)(t,{...e})})}}getRoutesTree(){let e={};for(let[t,l]of Object.entries(this.routes))(0,a.set)(e,t.split(".").join(".children."),{...(0,a.get)(e,t.split(".").join(".children.")),...l});let t=e=>Object.values(e).reduce((e,l)=>{if(1===Object.keys(l).length&&l.children)e.push(...t(l.children));else{let{Component:o,componentLoader:n,element:i,children:r,...a}=l,d=i;n?d=s.default.createElement(this.createRouteLazyComponent(n)):o&&(d="string"==typeof o?this.app.renderComponent(o):s.default.createElement(o));let u={...a,element:d,children:r?t(r):void 0};e.push(u)}return e},[]);return t(e)}getRoutes(){return this.routes}setType(e){this.options.type=e}getBasename(){return this.options.basename}setBasename(e){this.options.basename=e}matchRoutes(e){let t=this.getRoutesTree();return(0,__rspack_external_react_router_65608a1a.matchRoutes)(t,e,this.basename)}isSkippedAuthCheckRoute(e){return(this.matchRoutes(e)||[]).some(e=>{var t;return(null==e||null==(t=e.route)?void 0:t.skipAuthCheck)===!0})}getRouterComponent(e){let{type:t="browser",...l}=this.options,o={hash:p.createHashRouter,browser:p.createBrowserRouter,memory:p.createMemoryRouter},i=this.getRoutesTree(),r=(0,s.createContext)(e=>e.children),a=()=>{let t=(0,s.useContext)(r);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(el,{app:this.app}),(0,n.jsxs)(t,{children:[(0,n.jsx)(p.Outlet,{}),e]})]})},d=()=>{throw(0,p.useRouteError)()};return this.router=o[t]([{element:(0,n.jsx)(a,{}),errorElement:(0,n.jsx)(d,{}),children:i}],l),e=>{let{BaseLayout:t=w.ct}=e;return(0,n.jsx)(r.Provider,{value:t,children:(0,n.jsx)(w.PK,{children:(0,n.jsx)(p.RouterProvider,{future:{v7_startTransition:!0},router:this.router})})})}}add(e,t){this.routes[e]={id:e,...t,handle:{path:t.path}}}get(e){return this.routes[e]}has(e){return!!this.get(e)}remove(e){delete this.routes[e]}constructor(e={},t){this.routes={},this.options=e,this.app=t,this.routes=e.routes||{}}}var en=l(2741);let ei=e=>{let{children:t}=e,{token:l}=h.theme.useToken(),o=l.colorFillTertiary,n=new en.TinyColor(l.colorFill).onBackground(l.colorFillSecondary).toHexShortString(),i=new en.TinyColor(l.colorFill).onBackground(l.colorFill).toHexShortString(),r=new en.TinyColor(l.colorFill).onBackground(l.colorFill).onBackground(l.colorFill).toHexShortString();return(0,s.useEffect)(()=>{document.body.style.setProperty("--nb-spacing",`${l.marginLG}px`),document.body.style.setProperty("--nb-designer-offset",`${l.marginXS}px`),document.body.style.setProperty("--nb-header-height",`${l.sizeXXL-2}px`),document.body.style.setProperty("--nb-box-bg",l.colorBgLayout),document.body.style.setProperty("--colorBgLayout",l.colorBgLayout),document.body.style.setProperty("--colorBgContainer",l.colorBgContainer),document.body.style.setProperty("--controlHeightLG",`${l.controlHeightLG}px`),document.body.style.setProperty("--paddingContentVerticalSM",`${l.paddingContentVerticalSM}px`),document.body.style.setProperty("--marginSM",`${l.marginSM}px`),document.body.style.setProperty("--colorInfoBg",l.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",l.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",l.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",l.colorWarningBorder),document.body.style.setProperty("--colorText",l.colorText),document.body.style.setProperty("--colorTextHeaderMenu",l.colorTextHeaderMenu),document.body.style.setProperty("--colorPrimaryText",l.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",l.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",l.colorPrimaryTextHover),document.body.style.setProperty("--colorBgSider",l.colorBgSider),document.body.style.setProperty("--colorBgSiderMenuHover",l.colorBgSiderMenuHover),document.body.style.setProperty("--colorBgSiderMenuActive",l.colorBgSiderMenuActive),document.body.style.setProperty("--colorTextSiderMenu",l.colorTextSiderMenu),document.body.style.setProperty("--colorTextSiderMenuHover",l.colorTextSiderMenuHover),document.body.style.setProperty("--colorTextSiderMenuActive",l.colorTextSiderMenuActive),document.body.style.setProperty("--colorBgScrollTrack",o),document.body.style.setProperty("--colorBgScrollBar",n),document.body.style.setProperty("--colorBgScrollBarHover",i),document.body.style.setProperty("--colorBgScrollBarActive",r),document.body.style.setProperty("--colorSettings",l.colorSettings||__rspack_external__nocobase_client_v2_105d03db.defaultTheme.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",l.colorBgSettingsHover),document.body.style.setProperty("--colorTemplateBgSettingsHover",l.colorTemplateBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",l.colorBorderSettingsHover),document.body.style.setProperty("--colorBgMenuItemSelected",l.colorBgHeaderMenuActive),document.body.style.setProperty("background-color",l.colorBgContainer)},[n,r,i,o,l.colorBgContainer,l.colorBgLayout,l.colorBgSettingsHover,l.colorTemplateBgSettingsHover,l.colorBorderSettingsHover,l.colorInfoBg,l.colorInfoBorder,l.colorPrimaryText,l.colorPrimaryTextActive,l.colorPrimaryTextHover,l.colorSettings,l.colorText,l.colorWarningBg,l.colorWarningBorder,l.controlHeightLG,l.marginLG,l.marginSM,l.marginXS,l.paddingContentVerticalSM,l.sizeXXL,l.colorTextHeaderMenu,l.colorBgSider,l.colorBgSiderMenuHover,l.colorBgSiderMenuActive,l.colorTextSiderMenu,l.colorTextSiderMenuHover,l.colorTextSiderMenuActive,l.colorBgHeaderMenuActive]),t};ei.displayName="CSSVariableProvider";let er=ei;class ea extends q{createApiClient(e){return new __rspack_external__nocobase_sdk_cafaf92c.APIClient(e.apiClient)}configureRuntimeAdapters(){this.dataSourceManager=this.flowEngine.context.dataSourceManager,this.dataSourceManager.setRequester(this.apiClient.request.bind(this.apiClient)),this.dataSourceManager.collectionFieldInterfaceManager||this.dataSourceManager.setCollectionFieldInterfaceManager(new K(this.dataSourceManager))}createI18n(e){if(e.i18n)return e.i18n;let t=(0,__rspack_external_i18next.createInstance)();return t.use(u.initReactI18next).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1}),t}createRouterManager(e){var t;let l=new eo(e.router,this);if((null==(t=e.router)?void 0:t.basename)===void 0){let e=this.getPublicPath(),t="/"===e?void 0:e.replace(/\/$/,"");t&&l.setBasename(t)}return l}createPluginManager(e){return new Z(e.plugins||[],!!e.loadRemotePlugins,this)}createPluginSettingsManager(e){return new ee.mz(this)}async load(){await this.loadWebSocket(),await this.pm.load(),await this.flowEngine.flowSettings.load(),this.updateFavicon()}async loadWebSocket(){this.eventBus.addEventListener("ws:message:authorized",()=>{this.setWsAuthorized(!0)}),this.ws.on("message",e=>{var t,l,o,n;if(!e.data)return;let i=JSON.parse(e.data);if(null==i||null==(t=i.payload)?void 0:t.refresh)return void globalThis.window.location.reload();if("notification"===i.type){let e=this.context.notification;null==(o=e[(null==(n=i.payload)?void 0:n.type)||"info"])||o.call(e,{message:null==(l=i.payload)?void 0:l.message});return}if(this.error&&"APP_RUNNING"===i.payload.code){this.maintained=!0,this.setMaintaining(!1),this.error=null,globalThis.window.location.reload();return}let r="maintaining"===i.type&&"APP_RUNNING"!==i.payload.code;if(console.log("ws:message",{maintaining:r,data:i}),r)this.setMaintaining(!0),this.error=i.payload;else{this.setMaintaining(!1),this.maintained=!0,this.error=null;let e=i.type;if(!e)return;let t=`ws:message:${e}`;this.eventBus.dispatchEvent(new CustomEvent(t,{detail:i.payload}))}}),this.ws.on("serverDown",()=>{this.maintaining=!0,this.maintained=!1}),this.ws.on("open",()=>{let e=this.apiClient.auth.token;e&&this.setTokenInWebSocket({token:e,authenticator:this.apiClient.auth.getAuthenticator()})}),this.ws.connect()}addCustomProviders(){this.use(er)}addFieldInterfaces(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.dataSourceManager.addFieldInterfaces(e)}addFieldInterfaceGroups(e){return this.dataSourceManager.addFieldInterfaceGroups(e)}addFieldInterfaceComponentOption(e,t){return this.dataSourceManager.addFieldInterfaceComponentOption(e,t)}addFieldInterfaceOperator(e,t){return this.dataSourceManager.addFieldInterfaceOperator(e,t)}}var es=l(5030),ed=l(3589),eu=l(2138);let ec=(0,s.createContext)(null);ec.displayName="ApplicationContext";class ep extends ea{constructor(e={}){super({router:{type:"memory",initialEntries:["/"]},...e}),this.apiMock=new __rspack_external_axios_mock_adapter_69845b81.default(this.apiClient.axios),this.ws=new em(e.ws||{})}}class em extends F{connect(){}close(){}send(){}on(e,t,l){this.eventBus.addEventListener(e,e=>t({data:JSON.stringify(e.detail)}),l)}emit(e,t){this.eventBus.dispatchEvent(new CustomEvent(e,{detail:t}))}off(e,t,l){this.eventBus.removeEventListener(e,t,l)}removeAllListeners(){}constructor(e){super(e),this.eventBus=new EventTarget}}function eh(e){return new ep(e)}class ef{get pluginManager(){return this.app.pluginManager}get context(){return this.app.context}get flowEngine(){return this.app.flowEngine}get engine(){return this.app.flowEngine}get pm(){return this.app.pm}get router(){return this.app.router}get pluginSettingsManager(){return this.app.pluginSettingsManager}get schemaInitializerManager(){return this.app.schemaInitializerManager}get schemaSettingsManager(){return this.app.schemaSettingsManager}get dataSourceManager(){return this.app.dataSourceManager}get ai(){return this.app.aiManager}async afterAdd(){}async beforeLoad(){}async load(){}t(e){var t;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.app.i18n.t(e,{ns:null==(t=this.options)?void 0:t.packageName,...l})}constructor(e,t){this.options=e,this.app=t,this.options=e,this.app=t}}var eg=l(6625);let ev=()=>(0,m.n)().router;var ey=l(6553),e_=l(4088),eb=l(964),ex=l(5056),eM=l(1815);let ew={"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"};class eS{atX0SecondsPastTheMinuteGt20(){return this.data.atX0SecondsPastTheMinuteGt20}atX0MinutesPastTheHourGt20(){return this.data.atX0MinutesPastTheHourGt20}commaMonthX0ThroughMonthX1(){return this.data.commaMonthX0ThroughMonthX1}commaYearX0ThroughYearX1(){return this.data.commaYearX0ThroughYearX1}use24HourTimeFormatByDefault(){return this.data.use24HourTimeFormatByDefault}anErrorOccuredWhenGeneratingTheExpressionD(){return this.data.anErrorOccuredWhenGeneratingTheExpressionD}everyMinute(){return this.data.everyMinute}everyHour(){return this.data.everyHour}atSpace(){return this.data.atSpace}everyMinuteBetweenX0AndX1(){return this.data.everyMinuteBetweenX0AndX1}at(){return this.data.at}spaceAnd(){return this.data.spaceAnd}everySecond(){return this.data.everySecond}everyX0Seconds(){return this.data.everyX0Seconds}secondsX0ThroughX1PastTheMinute(){return this.data.secondsX0ThroughX1PastTheMinute}atX0SecondsPastTheMinute(){return this.data.atX0SecondsPastTheMinute}everyX0Minutes(){return this.data.everyX0Minutes}minutesX0ThroughX1PastTheHour(){return this.data.minutesX0ThroughX1PastTheHour}atX0MinutesPastTheHour(){return this.data.atX0MinutesPastTheHour}everyX0Hours(){return this.data.everyX0Hours}betweenX0AndX1(){return this.data.betweenX0AndX1}atX0(){return this.data.atX0}commaEveryDay(){return this.data.commaEveryDay}commaEveryX0DaysOfTheWeek(){return this.data.commaEveryX0DaysOfTheWeek}commaX0ThroughX1(){return this.data.commaX0ThroughX1}commaAndX0ThroughX1(){return this.data.commaAndX0ThroughX1}first(){return this.data.first}second(){return this.data.second}third(){return this.data.third}fourth(){return this.data.fourth}fifth(){return this.data.fifth}commaOnThe(){return this.data.commaOnThe}spaceX0OfTheMonth(){return this.data.spaceX0OfTheMonth}lastDay(){return this.data.lastDay}commaOnTheLastX0OfTheMonth(){return this.data.commaOnTheLastX0OfTheMonth}commaOnlyOnX0(){return this.data.commaOnlyOnX0}commaAndOnX0(){return this.data.commaAndOnX0}commaEveryX0Months(){return this.data.commaEveryX0Months}commaOnlyInX0(){return this.data.commaOnlyInX0}commaOnTheLastDayOfTheMonth(){return this.data.commaOnTheLastDayOfTheMonth}commaOnTheLastWeekdayOfTheMonth(){return this.data.commaOnTheLastWeekdayOfTheMonth}commaDaysBeforeTheLastDayOfTheMonth(){return this.data.commaDaysBeforeTheLastDayOfTheMonth}firstWeekday(){return this.data.firstWeekday}weekdayNearestDayX0(){return this.data.weekdayNearestDayX0}commaOnTheX0OfTheMonth(){return this.data.commaOnTheX0OfTheMonth}commaEveryX0Days(){return this.data.commaEveryX0Days}commaBetweenDayX0AndX1OfTheMonth(){return this.data.commaBetweenDayX0AndX1OfTheMonth}commaOnDayX0OfTheMonth(){return this.data.commaOnDayX0OfTheMonth}commaEveryHour(){return this.data.commaEveryHour}commaEveryX0Years(){return this.data.commaEveryX0Years}commaStartingX0(){return this.data.commaStartingX0}daysOfTheWeek(){return this.data.daysOfTheWeek}monthsOfTheYear(){return this.data.monthsOfTheYear}constructor(e){this.data=e}}let ek=e=>{(__rspack_external_cronstrue.default.default?__rspack_external_cronstrue.default.default:__rspack_external_cronstrue.default).initialize({load(t){t[null==e?void 0:e.lang]=new eS(null==e?void 0:e.cronstrue)}})};class eF extends ef{async afterAdd(){let e=this.app.apiClient,t=e.auth.locale;try{var o;let n=await e.request({url:"app:getLang",params:{locale:t},headers:{"X-Role":"anonymous"}}),i=(null==n||null==(o=n.data)?void 0:o.data)||{};this.engine.context.defineProperty("locales",{value:i}),this.app.use(h.App,{component:!1}),i.lang&&(e.auth.setLocale(i.lang),this.app.i18n.changeLanguage(i.lang)),Object.keys(i.resources||{}).forEach(e=>{this.app.i18n.addResources(i.lang,e,i.resources[e]||{})}),(0,__rspack_external__formily_validator_5f6f1884.setValidateLanguage)(i.lang),ek(i);let r=ew[i.lang]||"en";await l(8817)(`./${r}`),eM.default.locale(r),window.cronLocale=i.cron}catch(e){throw e}}}let eC=["/signin","/signup","/forgot-password","/reset-password"];function eA(e,t){if(!t)return e;let l=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=RegExp(`^${l.replace(/\/?$/,"")}(\\/|$)`);return e.replace(o,"/")||e}function eP(e,t){let l=eA(e,t);return eC.some(e=>l===e||l.startsWith(`${e}/`))}function eT(e,t){let l=eA(e,t);return"/admin"===l||l.startsWith("/admin/")}let ej=(0,s.createContext)(null);ej.displayName="CurrentUserContext";let eI=e=>{let{children:t}=e,l=(0,m.n)(),o=(0,p.useLocation)(),[i,r]=(0,s.useState)(!0),[a,d]=(0,s.useState)(null),u=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{let e=!0,t=l.router.getBasename(),n=eP(o.pathname,t)||l.router.isSkippedAuthCheckRoute(o.pathname),i=eT(o.pathname,t);if(n||!i){r(!1),d(null);return}return u.current||r(!0),d(null),(async()=>{try{await l.dataSourceManager.ensureLoaded(),u.current=!0,e&&r(!1)}catch(t){if(!e)return;r(!1),d(t instanceof Error?t:Error(String(t)))}})(),()=>{e=!1}},[l,o.pathname]),a)throw a;return i?l.renderComponent("AppSpin"):(0,n.jsx)(n.Fragment,{children:t})},eL=e=>{let{children:t}=e,l=(0,m.n)(),o=(0,p.useLocation)(),[i,a]=(0,s.useState)({loading:!0}),d=(0,s.useRef)(o.pathname);d.current=o.pathname;let u=(0,s.useRef)(o);return(u.current=o,(0,s.useEffect)(()=>{let e=!0,t=eP(d.current,l.router.getBasename())||l.router.isSkippedAuthCheckRoute(d.current),o=eT(d.current,l.router.getBasename());return t||!o?void a({loading:!1}):((async()=>{var t,o;try{let o=await l.apiClient.request({url:"/auth:check",skipNotify:!0,skipAuth:!0}),n=null==o||null==(t=o.data)?void 0:t.data;if((null==n?void 0:n.id)==null)return void(0,eu.BE)(l,(0,eu.vi)(l,u.current),{replace:!0});let i=(0,r.createCollectionContextMeta)(()=>{var e,t;return(null==(t=l.flowEngine.context.dataSourceManager)||null==(e=t.getDataSource("main"))?void 0:e.getCollection("users"))||null},l.flowEngine.translate("Current user"));i.sort=1e3,l.flowEngine.context.defineProperty("user",{value:n,resolveOnServer:!0,meta:i}),e&&a({data:null==o?void 0:o.data,loading:!1})}catch(t){if((null==t||null==(o=t.response)?void 0:o.status)===401||(null==t?void 0:t.status)===401)return void(0,eu.BE)(l,(0,eu.vi)(l,u.current),{replace:!0});throw e&&a({loading:!1}),t}})(),()=>{e=!1})},[l]),i.loading)?l.renderComponent("AppSpin"):(0,n.jsx)(ej.Provider,{value:i,children:t})},eD=()=>{var e,t;let l=(0,m.n)(),o=!!(null==l||null==(t=l.apiClient)||null==(e=t.auth)?void 0:e.token);return((0,s.useEffect)(()=>{o||(0,eu.BE)(l,(0,eu.uk)(l),{replace:!0})},[l,o]),o)?(0,n.jsx)(p.Navigate,{replace:!0,to:"/admin"}):l.renderComponent("AppSpin")};class eY extends ef{async afterAdd(){await this.addPlugins()}async load(){this.addComponents(),this.addRoutes(),this.app.use(eI),this.app.use(eL),this.app.flowEngine.registerModels({AdminLayoutModel:eb.pX,AdminLayoutMenuItemModel:eb.xF,AdminSettingsLayoutModel:ex.C_}),this.app.pluginSettingsManager.addMenuItem({key:"plugin-manager",title:this.app.i18n.t("Plugin manager"),icon:"ApiOutlined",aclSnippet:"pm",sort:-200}),this.app.pluginSettingsManager.addPageTabItem({menuKey:"plugin-manager",key:"index",title:this.app.i18n.t("Plugin manager"),componentLoader:()=>Promise.resolve().then(l.bind(l,6623)),aclSnippet:"pm",sort:-200}),this.app.pluginSettingsManager.addMenuItem({key:"system-settings",title:this.app.i18n.t("System settings"),icon:"SettingOutlined",aclSnippet:"pm.system-settings.system-settings",sort:-100}),this.app.pluginSettingsManager.addPageTabItem({menuKey:"system-settings",key:"index",title:this.app.i18n.t("System settings"),componentLoader:()=>Promise.resolve().then(l.bind(l,65)),aclSnippet:"pm.system-settings.system-settings",sort:-100})}addRoutes(){this.router.add("root",{path:"/",element:(0,n.jsx)(eD,{})}),this.router.add("not-found",{path:"*",Component:w.bM}),this.router.add("admin",{path:"/admin",componentLoader:()=>Promise.resolve().then(l.bind(l,3351))}),this.router.add("admin.settings",{path:"/admin/settings",componentLoader:()=>Promise.resolve().then(l.bind(l,9652))}),this.router.add("admin.settings.route-empty",{path:"*",Component:p.Outlet}),this.router.add("admin.page",{path:"/admin/:name",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))}),this.router.add("admin.page.tab",{path:"/admin/:name/tab/:tabUid",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))}),this.router.add("admin.page.view",{path:"/admin/:name/view/*",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))}),this.router.add("admin.page.tab.view",{path:"/admin/:name/tab/:tabUid/view/*",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))})}addComponents(){}async addPlugins(){await this.app.pm.add(e_.s$$),await this.app.pm.add(eF,{name:"builtin-locale"})}}var eE=l(691),eR=l(5026);let eN=[{label:'{{t("contains")}}',value:"$includes",selected:!0},{label:'{{t("does not contain")}}',value:"$notIncludes"},{label:'{{t("is")}}',value:"$eq"},{label:'{{t("is not")}}',value:"$ne"},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eB=[{label:'{{t("is")}}',value:"$match",selected:!0,schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is not")}}',value:"$notMatch",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is any of")}}',value:"$anyOf",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$noneOf",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eO=[{label:"{{ t('is') }}",value:"$dateOn",selected:!0,schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is not') }}",value:"$dateNotOn",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is before') }}",value:"$dateBefore",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is after') }}",value:"$dateAfter",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is on or after') }}",value:"$dateNotBefore",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is on or before') }}",value:"$dateNotAfter",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is between') }}",value:"$dateBetween",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!0}}},{label:"{{ t('is empty') }}",value:"$empty",noValue:!0},{label:"{{ t('is not empty') }}",value:"$notEmpty",noValue:!0}],eH=[{label:'{{t("=")}}',value:"$eq",selected:!0},{label:'{{t("≠")}}',value:"$ne"},{label:'{{t(">")}}',value:"$gt"},{label:'{{t("≥")}}',value:"$gte"},{label:'{{t("<")}}',value:"$lt"},{label:'{{t("≤")}}',value:"$lte"},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eq=[{label:'{{t("is")}}',value:"$eq",selected:!0},{label:'{{t("is not")}}',value:"$ne"},{label:'{{t("exists")}}',value:"$exists",noValue:!0},{label:'{{t("not exists")}}',value:"$notExists",noValue:!0}],e$=[{label:'{{t("is")}}',value:"$eq",selected:!0,schema:{"x-component":"Select","x-component-props":{mode:null}}},{label:'{{t("is not")}}',value:"$ne",schema:{"x-component":"Select","x-component-props":{mode:null}}},{label:'{{t("is any of")}}',value:"$in",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$notIn",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eV=[{label:'{{t("is")}}',value:"$eq",selected:!0},{label:'{{t("is not")}}',value:"$neq"},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],ez=[{label:'{{t("Yes")}}',value:"$isTruly",selected:!0,noValue:!0,schema:{"x-component":"Select","x-component-props":{multiple:!1,options:[{label:'{{t("Yes")}}',value:!0},{label:'{{t("No")}}',value:!1}]}}},{label:'{{t("No")}}',value:"$isFalsy",noValue:!0,schema:{"x-component":"Select","x-component-props":{multiple:!1,options:[{label:'{{t("Yes")}}',value:!0},{label:'{{t("No")}}',value:!1}]}}},{label:"{{ t('is empty') }}",value:"$empty",noValue:!0},{label:"{{ t('is not empty') }}",value:"$notEmpty",noValue:!0}],eK=[{label:'{{t("is any of")}}',value:"$childIn",schema:{"x-component":"CollectionSelect","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$childNotIn",schema:{"x-component":"CollectionSelect","x-component-props":{mode:"tags"}}}],eU=[{label:'{{t("is")}}',value:"$eq",selected:!0,schema:{"x-component":"DataSourceCollectionCascader"}},{label:'{{t("is not")}}',value:"$ne",schema:{"x-component":"DataSourceCollectionCascader"}},{label:'{{t("is any of")}}',value:"$in",schema:{"x-component":"DataSourceCollectionCascader","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$notIn",schema:{"x-component":"DataSourceCollectionCascader","x-component-props":{mode:"tags"}}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eG=[{label:'{{t("contains")}}',value:"$includes",selected:!0,schema:{type:"string","x-component":"Input"}},{label:'{{t("does not contain")}}',value:"$notIncludes",schema:{type:"string","x-component":"Input"}},{label:'{{t("is")}}',value:"$eq",schema:{type:"string","x-component":"Input"}},{label:'{{t("is not")}}',value:"$ne",schema:{type:"string","x-component":"Input"}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0,schema:{type:"string","x-component":"Input"}},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0,schema:{type:"string","x-component":"Input"}}],eW={type:"boolean","x-content":'{{t("Unique")}}',"x-decorator":"FormItem","x-component":"Checkbox","x-disabled":"{{ !createMainOnly || primaryKeyOnly }}","x-reactions":[{dependencies:["primaryKey"],when:"{{$deps[0]}}",fulfill:{state:{value:!1}}}]},eJ={type:"boolean","x-content":'{{t("Primary")}}',"x-decorator":"FormItem","x-component":"Checkbox","x-disabled":"{{ !createMainOnly || primaryKeyOnly }}","x-reactions":[{dependencies:["unique"],when:"{{$deps[0]&&createMainOnly}}",fulfill:{state:{value:!1}}}]},eX={type:"boolean",title:'{{t("Auto increment")}}',"x-content":'{{t("Auto increment")}}',"x-decorator":"FormItem","x-component":"Checkbox","x-disabled":"{{ !createMainOnly }}","x-reactions":[{dependencies:["primaryKey"],when:"{{$deps[0]&&createMainOnly}}",fulfill:{state:{value:!0}}}]},eQ={type:"boolean",title:'{{t("Default value")}}',"x-content":'{{t("Automatically generate default values")}}',"x-decorator":"FormItem","x-component":"Checkbox",default:!0},eZ={type:"string",title:'{{t("Relationship type")}}',required:!0,"x-disabled":!0,"x-decorator":"FormItem","x-component":"Select",enum:[{label:"{{t('HasOne')}}",value:"hasOne"},{label:"{{t('HasMany')}}",value:"hasMany"},{label:"{{t('BelongsTo')}}",value:"belongsTo"},{label:"{{t('BelongsToMany')}}",value:"belongsToMany"}]},e0={onDelete:{type:"string",title:'{{t("ON DELETE")}}',required:!0,default:"SET NULL","x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Select",enum:[{label:"{{t('SET NULL')}}",value:"SET NULL"},{label:"{{t('RESTRICT')}}",value:"RESTRICT"},{label:"{{t('CASCADE')}}",value:"CASCADE"},{label:"{{t('NO ACTION')}}",value:"NO ACTION"}]}},e1={reverse:{type:"void","x-component":"div",properties:{autoCreateReverseField:{type:"boolean",default:!1,"x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Create inverse field in the target collection")}}',"x-reactions":[{target:"reverseField.type",when:"{{!!$self.value}}",fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0}}},{target:"reverseField.uiSchema.title",when:"{{!!$self.value}}",fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0}}},{target:"reverseField.name",when:"{{!!$self.value}}",fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0}}},e=>{let{reverseField:t}=e.form.values;e.value=!!(null==t?void 0:t.key),e.disabled=!!(null==t?void 0:t.key)}]},"reverseField.type":{...eZ,title:'{{t("Inverse relationship type")}}'},"reverseField.uiSchema.title":{type:"string",title:'{{t("Inverse field display name")}}',default:"{{record.title}}",required:!0,"x-decorator":"FormItem","x-component":"Input","x-disabled":"{{ !showReverseFieldConfig }}"},"reverseField.name":{type:"string",title:'{{t("Inverse field name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input","x-validator":"uid","x-disabled":"{{ !showReverseFieldConfig }}",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}}}},e2={"uiSchema.x-component-props.picker":{type:"string",title:'{{t("Picker")}}',"x-decorator":"FormItem","x-component":"Radio.Group",default:"date",enum:[{label:'{{t("Date")}}',value:"date"},{label:'{{t("Month")}}',value:"month"},{label:'{{t("Quarter")}}',value:"quarter"},{label:'{{t("Year")}}',value:"year"}]},"uiSchema.x-component-props.dateFormat":{type:"string",title:'{{t("Date format")}}',"x-decorator":"FormItem","x-component":"ExpiresRadio","x-decorator-props":{},"x-component-props":{className:(0,eE.css)`
959
+ `},i,a.default.createElement("div",{style:o},t)):i},h=(e,t)=>t?{...e,showTotal:!1,showSizeChanger:!1,showLessItems:!0,className:p(e.className,c())}:e},5703(e,t,l){l.d(t,{n:()=>n});var o=l(504);let n=()=>(0,o.useFlowEngineContext)().app},6625(e,t,l){l.d(t,{n:()=>n});var o=l(5703);function n(e){return(0,o.n)().pm.get(e)}},1357(e,t,l){l.r(t),l.d(t,{EditFormModel:()=>eb.Y5n,linkageRulesRefresh:()=>eb.S3Z,filterFormDefaultValues:()=>eb.IBN,DisplayTimeFieldModel:()=>eb.$FU,FlowRoute:()=>eb.YmV,LinkActionModel:()=>eb.CII,RecordActionModel:()=>eb.LAC,UpdatedAtFieldInterface:()=>tN,buildRecordPickerParentItemContext:()=>eb.oM7,FormSubmitActionModel:()=>eb.u36,RootPageTabModel:()=>eb._$j,AIManager:()=>x,redirectToLegacySignin:()=>ec.BE,openViewFlow:()=>eb.gvx,toTreeSelectItems:()=>eb.Gap,InputFieldInterface:()=>tp,AppError:()=>w.uV,IconFieldInterface:()=>ts,UrlFieldInterface:()=>tO,blockHeight:()=>eb.Bum,PercentFieldInterface:()=>tA,GlobalThemeProvider:()=>y.U_,PluginSettingsTopbarActionModel:()=>eb.ESx,convertV2AdminPathToLegacy:()=>ec.Sx,UpdatedByFieldInterface:()=>tB,getDetailsItemValue:()=>eb.ROt,resolveCustomFieldOperatorList:()=>eb.eCD,DateFieldInterface:()=>tV,CreateFormModel:()=>eb.wLo,AdminLayoutComponent:()=>eb.V6y,FilterManager:()=>eb.qh$,findPrevSiblingRoute:()=>eb.Cuw,DisplayTitleFieldModel:()=>eb.mU7,useMobileLayout:()=>eb.mYX,M2MFieldInterface:()=>ty,useUIConfigurationPermissions:()=>eu.uM,SubTableFieldModel:()=>eb.mHU,AppMaintaining:()=>w.be,CreatedAtFieldInterface:()=>tn,EmailFieldInterface:()=>ta,PopupSubTableActionsColumnModel:()=>eb.FaR,PopupSubTableFormSubmitActionModel:()=>eb.spd,FormBlockModel:()=>eb.F4f,MockFlowModelRepository:()=>eb.WuM,BaseApplication:()=>$,FilterBlockModel:()=>eb.v$f,FieldDeletePlaceholder:()=>eb.xIu,findNextSiblingRoute:()=>eb.Evi,DateTimeNoTzFilterFieldModel:()=>eb.e7h,icons:()=>w.Pt,CollectionSelectorFieldModel:()=>eb.Z0H,blockLinkageRules:()=>eb.aWb,CheckboxGroupFieldInterface:()=>tt,defaultTheme:()=>y.zQ,FilterFormActionGroupModel:()=>eb.dv2,collectCascadeHydrationCandidate:()=>eb.qlo,ObjectNester:()=>eb.Xmd,TableJSFieldItemModel:()=>eb._e9,DetailsAssociationFieldGroupModel:()=>eb.sD1,fieldLinkageRules:()=>eb.znN,mergePaginationClassName:()=>eb.M6q,RichTextFieldModel:()=>eb.DvX,FilterFormResetActionModel:()=>eb.zUb,UnitConversion:()=>eb.VPO,AdminLayoutModel:()=>eb.pXX,UserCenterTopbarActionModel:()=>eb.ccc,RefreshActionModel:()=>eb.n6C,buildInsertRouteSchema:()=>eb.QBt,linkageSetBlockProps:()=>eb.LFq,DisplayIconFieldModel:()=>eb.xEQ,CollectionBlockModel:()=>eb.tPG,DisplayJSONFieldModel:()=>eb.qPo,PopupActionModel:()=>eb.a6D,FieldOperatorSelect:()=>eb.T8$,ActionWithoutPermission:()=>eb._TB,NanoidFieldInterface:()=>tq,O2MFieldInterface:()=>tw,OBOFieldInterface:()=>tF,NocoBaseBuildInPluginV2:()=>eE,AdminLayoutMenuModelRenderer:()=>eb.xc1,ViewActionModel:()=>eb.v8l,SubTableColumnModel:()=>eb.WHj,CheckboxFieldInterface:()=>te,FieldModel:()=>eb.oLV,O2OFieldInterface:()=>tS,UUIDFieldInterface:()=>tH,linkageSetDetailsFieldProps:()=>eb.KAX,resolveAdminLayoutMenuLink:()=>eb.fi1,FilterFormRecordSelectFieldModel:()=>eb.ZMt,getDefaultV2AdminRedirectPath:()=>ec.uk,CollectionFieldInterfaceManager:()=>U,customVariable:()=>eb.I6c,getQuickEditFieldProps:()=>eb.YXr,ACLRolesCheckProvider:()=>eu.rR,DisplayNumberFieldModel:()=>eb.LbM,EditFormContent:()=>eb.AV5,getMobileCompactPaginationClassName:()=>eb.NYj,RecordActionGroupModel:()=>eb.gk0,PageModel:()=>eb.XK0,BulkDeleteActionModel:()=>eb.Ni4,getValueWithIndex:()=>eb.kPK,JSItemActionModel:()=>eb.ymi,FormGridModel:()=>eb.Ybt,toToolsMap:()=>M,ChildPageTabModel:()=>eb.wW_,FilterItem:()=>eb.qi_,SystemSettingsSource:()=>eb.orA,transformNestedData:()=>eb.Anr,layout:()=>eb.Zpx,createCompactSimpleItemRender:()=>eb.hHg,AssociationFieldModel:()=>eb.bPr,ADMIN_SETTINGS_PATH:()=>et.wq,ADMIN_SETTINGS_LAYOUT_MODEL_UID:()=>eb.OaU,ApplicationContext:()=>ep,UserCenterActionItemModel:()=>eb.ngq,MainPageModel:()=>eb.qir,Application:()=>es,DisplayURLFieldModel:()=>eb.Vrl,LayoutContent:()=>eb.A14,RichTextField:()=>eb.OsV,numberFormat:()=>eb.jqd,FilterFormActionModel:()=>eb.cNN,getAllDataModels:()=>eb.w5F,JSFieldModel:()=>eb.P0,matchesRoutePath:()=>eb.Qb_,connectFields:()=>eb.KYF,GridModel:()=>eb.QuL,getUnknownCountPaginationTotal:()=>eb.SMJ,DisplaySubItemFieldModel:()=>eb.dhL,PluginManagerPage:()=>eb.ksX,ADMIN_SETTINGS_KEY:()=>et.w$,UnixTimestampFieldInterface:()=>t$,compatOldTheme:()=>y.Ne,JSBlockModel:()=>eb.YJB,buildMenuTitleWithIcon:()=>eb.riZ,getAdminLayoutMenuMovePositionOptions:()=>eb.B82,QUICK_EDIT_POPOVER_MAX_HEIGHT:()=>eb.i6C,PercentInput:()=>eb.er5,AdminLayoutContent:()=>eb.xtQ,DisplaySubListFieldModel:()=>eb.k9Q,CollectionActionModel:()=>eb.UZR,injectRecordPickerPopupContext:()=>eb.gaO,editMarkdownFlow:()=>eb.uMh,getMenuCreationDefaultParams:()=>eb.y8o,AdminLayoutMenuItemRenderer:()=>eb.B_2,NBColorPicker:()=>eb.qtW,DisplayCheckboxFieldModel:()=>eb.v9U,SubTableRecordAction:()=>eb.sJA,operatorComponentProps:()=>eb.KHY,transformRowsToSingleColumn:()=>eb.vbm,RemoteFlowModelRenderer:()=>eb.zCA,UpdateRecordActionModel:()=>eb.MhO,getMenuCreationUiSchema:()=>eb._IX,findSettingsByName:()=>eb.R0X,FilterContent:()=>eb.oJ5,VariableFilterItem:()=>eb.Et2,AntdAppProvider:()=>v,FilterFormJSActionModel:()=>eb.t_n,AppNotFound:()=>w.bM,DefaultToolsManager:()=>b,LinkageFilterItem:()=>eb.Ru1,UserCenterSelectItemModel:()=>eb.FKm,TextAreaWithContextSelector:()=>eb.nap,CommonItemModel:()=>eb.Uhv,IntegerFieldInterface:()=>tm,FormComponent:()=>eb.s2f,RouteRepository:()=>k,TableCustomColumnModel:()=>eb.Fts,SubPageModel:()=>eb.RLu,customAlgorithm:()=>y.ze,customizeFilterRender:()=>eb.wUQ,registerIcons:()=>w.K1,FilterFormCustomRecordSelectFieldModel:()=>eb.udY,DisplaySubTableFieldModel:()=>eb.m5p,UIEditorTopbarActionModel:()=>eb.h2d,PluginSettingsManager:()=>et.mz,SelectFieldModel:()=>eb.CCB,UserCenterItemModel:()=>eb.np$,findFirstInternalSettingsPage:()=>eb.X2M,AddChildActionModel:()=>eb.lcp,OHOFieldInterface:()=>tk,PopupSubTableEditActionModel:()=>eb.oIl,linkageRunjs:()=>eb.Myf,RootPageModel:()=>eb.T6P,getAdminLayoutMenuVirtualPath:()=>eb.Px_,DateTimeTzPicker:()=>eb.mUg,ColorFieldInterface:()=>to,RecordSelectFieldModel:()=>eb.BgT,resolveAdminLayoutMenuDragMoveOptionsFromEvent:()=>eb.eLO,AppSpin:()=>w.gv,PercentFieldModel:()=>eb.v6e,fixed:()=>eb.Zu2,formatNumber:()=>eb.ZVp,FormJSFieldItemModel:()=>eb.kN,JSEditableFieldModel:()=>eb.Nxx,findFirstAccessiblePageRoute:()=>eb.MMn,getCurrentV2RedirectPath:()=>ec.vi,languageCodes:()=>e_.A,useAclSnippets:()=>eu.K3,DisplayTextFieldModel:()=>eb.Tuv,PluginManager:()=>ee,ApplicationModel:()=>K,dataScope:()=>eb.fAh,buildRecordPickerPopupContextInputArgs:()=>eb.S5n,ActionModel:()=>eb.S0L,DateTimeNoTzPicker:()=>eb.pVr,recalculateGridSizes:()=>eb.aDm,DateOnlyFilterFieldModel:()=>eb.K4N,toOperatorSelectOptions:()=>eb.kA1,PhoneFieldInterface:()=>tP,QUICK_EDIT_FORM_MAX_HEIGHT:()=>eb.x_D,JsonFieldInterface:()=>tf,CodeEditorExtension:()=>eb.o8y,DateTimeNoTzFieldModel:()=>eb.cPq,findOptionPathByTk:()=>eb.s5W,titleField:()=>eb.Pqd,UserCenterTextItemModel:()=>eb.ysz,FilterGroup:()=>eb.I8R,USER_CENTER_ACTION_ID:()=>eb.Bnh,diagnoseRunJS:()=>eb.fLT,DisplayHtmlFieldModel:()=>eb.vrA,useRouter:()=>ey,aclCheck:()=>eb.VGp,SubFormListFieldModel:()=>eb.sW6,JsonInput:()=>eb.fnr,FilterFormSubmitActionModel:()=>eb.y2s,getAdminLayoutMenuInitializerButton:()=>eb.Tnx,TableBlockModel:()=>eb.zDb,getMenuItems:()=>eb.gLn,BlockSceneEnum:()=>eb.PW6,FormBlockContent:()=>eb.JUj,JSFormActionModel:()=>eb.l5h,getPinnedPluginListKeys:()=>ed.k,reconcileAdminLayoutMenuItems:()=>eb.tSM,FilterFormCollapseActionModel:()=>eb.D1b,useACLRoleContext:()=>eu.v6,replaceRouteParams:()=>eb.uTv,Plugin:()=>eg,ResetThemeTokenAndKeepAlgorithm:()=>eb.fCM,normalizeAdminLayoutMenuLegacyVariables:()=>eb.ux6,PinnedPluginListLite:()=>eb.Kgy,useRoleRecheck:()=>eu.N5,MobileMenuControlContext:()=>eb.Qt8,CustomWidth:()=>eb.K$V,CollectionSelectFieldInterface:()=>tl,BlockGridModel:()=>eb.LaP,NocoBaseBuildInPlugin:()=>eE,AdminLayoutRouteCoordinator:()=>eb.N9e,CollectionFieldInterface:()=>e7,filterRenderableSettings:()=>eb.Ui7,TableActionsColumnModel:()=>eb.B6V,runjs:()=>eb.ZCq,resolveAdminRouteRuntimeTarget:()=>eb.YjI,ACLContext:()=>eu.w0,buildLinkSettingSchema:()=>eb.qNx,subFormFieldLinkageRules:()=>eb.D2p,subFormLinkageSetFieldProps:()=>eb.gbJ,RouteModel:()=>eb.j0c,IdFieldInterface:()=>td,FormCustomItemModel:()=>eb.wBN,CheckboxGroupFieldModel:()=>eb.MeX,MENU_TYPE_OPTIONS:()=>eb.o2o,AdminSettingsLayout:()=>eb.djK,TableColumnModel:()=>eb.ivU,required:()=>eb.mw3,PopupCollectionActionModel:()=>eb.YXI,FilterFormCustomItemModel:()=>eb.I6Z,MAX_MESSAGE_CHARS:()=>eb.hPI,BlankComponent:()=>w.ct,JSItemModel:()=>eb.qJ3,SkeletonFallback:()=>eb.KSc,FormActionModel:()=>eb.sEB,validation:()=>eb.Eq4,applyMobilePaginationProps:()=>eb.hOt,PopupSubTableFieldModel:()=>eb.Uk$,DeleteActionModel:()=>eb.rvE,shouldRenderIconInTitle:()=>eb.Ucr,CreatedByFieldInterface:()=>ti,CascadeSelectListFieldModel:()=>eb.W4I,NumberFieldInterface:()=>tM,DateTimeTzFieldModel:()=>eb.zqF,PLUGIN_MANAGER_SETTING_NAME:()=>eb.BmO,isFilterValueEmpty:()=>eb.tUI,BasePageTabModel:()=>eb.BpQ,pattern:()=>eb.T16,AssociationFieldGroupModel:()=>eb.mw1,DetailsBlockModel:()=>eb.PU8,JSActionModel:()=>eb.Hn2,Icon:()=>w.In,WebSocketClient:()=>F,useApp:()=>m.n,getUniqueKeyFromCollection:()=>tv,FilterFormItemModel:()=>eb.vIF,CheckboxFieldModel:()=>eb.zFh,navigateToURL:()=>eb.isP,resolveLegacySigninRedirect:()=>ec.M4,DisplayDateTimeFieldModel:()=>eb.Ra0,formatRunJSPreviewMessage:()=>eb.byO,IconFieldModel:()=>eb.rpg,ActionSceneEnum:()=>eb.s5y,JSRecordActionModel:()=>eb.uVo,SnowflakeIdFieldInterface:()=>tL,formAssignRules:()=>eb.dWc,ChildPageModel:()=>eb.JvK,resolveDefaultCustomFieldOperator:()=>eb.T9,SYSTEM_SETTINGS_SETTING_NAME:()=>eb.jmZ,TimeFieldModel:()=>eb.Fy3,ActionGroupModel:()=>eb.xdz,createDefaultCollectionBlockTitle:()=>eb.lrV,AssignFormItemModel:()=>eb.saj,toViewStack:()=>eb.Hwd,SourceCascader:()=>eb.AvD,FilterFormCustomFieldModel:()=>eb.xz3,FilterFormFieldModel:()=>eb.Mf0,LinkToFieldInterface:()=>tg,createSettingsPathMap:()=>eb.nCj,dateTimeFormat:()=>eb.LE6,useACLContext:()=>eu.bq,PasswordFieldInterface:()=>tC,InputNumberField:()=>eb.mLo,displayFieldComponent:()=>eb.kkB,CodeEditor:()=>eb.BYM,SNIPPET_PREFIX:()=>et.tJ,MarkdownFieldInterface:()=>tb,RadioGroupFieldInterface:()=>tT,RecordPickerContent:()=>eb.vy4,M2OFieldInterface:()=>t_,actionLinkageRules:()=>eb.tQF,TableSelectModel:()=>eb.mSG,afterSuccess:()=>eb.mKE,PopupSubTableFormActionGroupModel:()=>eb.d13,matchSettingsRoute:()=>eb.CM3,InputFieldModel:()=>eb.mRH,filterVisibleSettings:()=>eb.eDc,showMessage:()=>eb.rGX,BlockModel:()=>eb.zgg,resolveAdminLayoutMenuDragMoveOptions:()=>eb.OtO,PopupSubTableRemoveActionModel:()=>eb.Ie6,GRID_FLOW_KEY:()=>eb.cEK,JSColumnModel:()=>eb.l2T,FormAssociationItemModel:()=>eb.ur8,PopupSubTableActionGroupModel:()=>eb.HJv,showNotification:()=>eb.Dsh,RouterManager:()=>en,GRID_STEP:()=>eb._UX,FilterFormBlockModel:()=>eb.D8m,FilterFormGridModel:()=>eb.www,confirm:()=>eb.lJp,registerIcon:()=>w.pU,toRouterNavigationPath:()=>eb.Yjq,SubFormFieldModel:()=>eb.Imp,MarkdownItemModel:()=>eb.qqP,openAdminLayoutMenuLink:()=>eb.jjG,DatetimeFieldInterface:()=>tr,JSCollectionActionModel:()=>eb.dIg,addCustomAlgorithmToTheme:()=>y._l,FormAssociationFieldGroupModel:()=>eb.EcU,TableoidFieldInterface:()=>tY,linkageSetActionProps:()=>eb.mQM,setTargetDataScope:()=>eb.mp5,TextareaFieldInterface:()=>tE,CreateContent:()=>eb.G9F,linkageAssignField:()=>eb.fMK,AdminLayoutMenuItemModel:()=>eb.xFY,buildLegacySigninHref:()=>ec.LQ,AssignFormGridModel:()=>eb.dpX,createMockClient:()=>ef,CollectionActionGroupModel:()=>eb.zsf,AddNewActionModel:()=>eb.to1,DetailsGridModel:()=>eb.ql0,DateOnlyPicker:()=>eb.xkv,SelectFieldInterface:()=>tI,DateTimeFilterFieldModel:()=>eb.foc,TimeFieldInterface:()=>tR,dispatchEventDeep:()=>eb.Xig,getDefaultOperator:()=>eb.aqk,usePlugin:()=>ev.n,DetailsJSFieldItemModel:()=>eb.ODR,DataBlockModel:()=>eb.RBt,SubTableFieldInterface:()=>tD,overflowMode:()=>eb.COB,useSystemSettings:()=>eb.e6V,NumberFieldModel:()=>eb.r39,DividerItemModel:()=>eb.upH,FieldModelSelect:()=>eb.khg,DateTimeTzFilterFieldModel:()=>eb.pKk,JsonFieldModel:()=>eb.mNj,PopupSubTableFormModel:()=>eb.iT0,getMenuEditDefaultParams:()=>eb.n8$,DetailsItemModel:()=>eb.ZjK,fieldComponent:()=>eb.e7P,DisplayPasswordFieldModel:()=>eb.$T1,PinnedPluginListContext:()=>ed.D,RichTextFieldInterface:()=>tj,useGlobalTheme:()=>y.my,SystemSettingsPage:()=>eb.WzN,TableAssociationFieldGroupModel:()=>eb.GJ1,dataLoadingMode:()=>eb.kbf,buildDisplayPathFromValue:()=>eb.d6j,FlowPage:()=>eb.KTk,subFormLinkageAssignField:()=>eb.zTu,EditActionModel:()=>eb.m2W,ExpandCollapseActionModel:()=>eb.hCX,createInsertMenuStep:()=>eb.FWr,MultipleSelectFieldInterface:()=>tx,buildMenuBasicSchema:()=>eb.ThI,getAdminLayoutModel:()=>eb.t_Y,PasswordFieldModel:()=>eb.dWg,aclCheckRefresh:()=>eb.Yh4,defaultOperator:()=>eb.CDb,DateOnlyFieldModel:()=>eb.s2k,getDefaultSettingsPath:()=>eb.C9C,hasIcon:()=>w.cE,joinUrlSearch:()=>eb.wqT,markCascadeHydrationDone:()=>eb.Ck8,ColorFieldModel:()=>eb.t4X,FormActionGroupModel:()=>eb.R8A,DetailsCustomItemModel:()=>eb.ivi,openView:()=>eb.e8C,InternalAdminSettingsLayout:()=>eb.Q7G,PageTabModel:()=>eb.sYw,RadioGroupFieldModel:()=>eb.wwh,AppMaintainingDialog:()=>w.tp,PluginFlowEngine:()=>eb.s$$,renderMode:()=>eb.IAc,AssignFormModel:()=>eb.Xw5,FilterActionModel:()=>eb.omq,ADMIN_LAYOUT_MODEL_UID:()=>eb.Mxl,FlowModelRepository:()=>eb.cYG,TopbarActionModel:()=>eb.k9E,getDisplayNumber:()=>eb.cm5,RouterContextCleaner:()=>w.PK,CascadeSelectInnerFieldModel:()=>eb.mzg,ClickableFieldModel:()=>eb.upW,CascadeSelectFieldModel:()=>eb.sJK,createAclSnippetAllow:()=>eu.rN,collectAssociationHydrationCandidates:()=>eb.ULH,getSimpleModePaginationClassName:()=>eb.HZo,linkageSetFieldProps:()=>eb.uFv,TextareaFieldModel:()=>eb.AMH,previewRunJS:()=>eb.zA_,FormModel:()=>eb.mOW,getTopbarPluginSettingsItems:()=>eb.XCP,VariableFieldFormModel:()=>eb.m$$,DisplayColorFieldModel:()=>eb.Ppd,detailsFieldLinkageRules:()=>eb.Dhs,RecordPickerFieldModel:()=>eb.J$w,hasOwnSettingsPage:()=>eb.lv4,useApplications:()=>eb.HWn,DisplayPercentFieldModel:()=>eb.hNf,QuickEditFormModel:()=>eb.biS,sortingRule:()=>eb.hsC,AdminSettingsLayoutModel:()=>eb.C_u,HeaderContext:()=>eb.B94,QUICK_EDIT_MARKDOWN_HEIGHT:()=>eb.vW_,sortTopLevelSettings:()=>eb.p$W,useCurrentRoleMode:()=>eu.GL,DatetimeNoTzFieldInterface:()=>tz,insertRouteSchema:()=>eb.eDQ,FormItemModel:()=>eb.JgE,refreshTargetBlocks:()=>eb.J9o,DisplayEnumFieldModel:()=>eb.VcJ});var o={};l.r(o),l.d(o,{ACLContext:()=>eu.w0,ACLRolesCheckProvider:()=>eu.rR,ADMIN_LAYOUT_MODEL_UID:()=>eb.Mxl,ADMIN_SETTINGS_KEY:()=>et.w$,ADMIN_SETTINGS_LAYOUT_MODEL_UID:()=>eb.OaU,ADMIN_SETTINGS_PATH:()=>et.wq,AIManager:()=>x,ActionGroupModel:()=>eb.xdz,ActionModel:()=>eb.S0L,ActionSceneEnum:()=>eb.s5y,ActionWithoutPermission:()=>eb._TB,AddChildActionModel:()=>eb.lcp,AddNewActionModel:()=>eb.to1,AdminLayoutComponent:()=>eb.V6y,AdminLayoutContent:()=>eb.xtQ,AdminLayoutMenuItemModel:()=>eb.xFY,AdminLayoutMenuItemRenderer:()=>eb.B_2,AdminLayoutMenuModelRenderer:()=>eb.xc1,AdminLayoutModel:()=>eb.pXX,AdminLayoutRouteCoordinator:()=>eb.N9e,AdminSettingsLayout:()=>eb.djK,AdminSettingsLayoutModel:()=>eb.C_u,AntdAppProvider:()=>v,AppError:()=>w.uV,AppMaintaining:()=>w.be,AppMaintainingDialog:()=>w.tp,AppNotFound:()=>w.bM,AppSpin:()=>w.gv,Application:()=>es,ApplicationContext:()=>ep,ApplicationModel:()=>K,AssignFormGridModel:()=>eb.dpX,AssignFormItemModel:()=>eb.saj,AssignFormModel:()=>eb.Xw5,AssociationFieldGroupModel:()=>eb.mw1,AssociationFieldModel:()=>eb.bPr,BaseApplication:()=>$,BasePageTabModel:()=>eb.BpQ,BlankComponent:()=>w.ct,BlockGridModel:()=>eb.LaP,BlockModel:()=>eb.zgg,BlockSceneEnum:()=>eb.PW6,BulkDeleteActionModel:()=>eb.Ni4,CascadeSelectFieldModel:()=>eb.sJK,CascadeSelectInnerFieldModel:()=>eb.mzg,CascadeSelectListFieldModel:()=>eb.W4I,CheckboxFieldInterface:()=>te,CheckboxFieldModel:()=>eb.zFh,CheckboxGroupFieldInterface:()=>tt,CheckboxGroupFieldModel:()=>eb.MeX,ChildPageModel:()=>eb.JvK,ChildPageTabModel:()=>eb.wW_,ClickableFieldModel:()=>eb.upW,CodeEditor:()=>eb.BYM,CodeEditorExtension:()=>eb.o8y,CollectionActionGroupModel:()=>eb.zsf,CollectionActionModel:()=>eb.UZR,CollectionBlockModel:()=>eb.tPG,CollectionFieldInterface:()=>e7,CollectionFieldInterfaceManager:()=>U,CollectionSelectFieldInterface:()=>tl,CollectionSelectorFieldModel:()=>eb.Z0H,ColorFieldInterface:()=>to,ColorFieldModel:()=>eb.t4X,CommonItemModel:()=>eb.Uhv,CreateContent:()=>eb.G9F,CreateFormModel:()=>eb.wLo,CreatedAtFieldInterface:()=>tn,CreatedByFieldInterface:()=>ti,CustomWidth:()=>eb.K$V,DataBlockModel:()=>eb.RBt,DateFieldInterface:()=>tV,DateOnlyFieldModel:()=>eb.s2k,DateOnlyFilterFieldModel:()=>eb.K4N,DateOnlyPicker:()=>eb.xkv,DateTimeFilterFieldModel:()=>eb.foc,DateTimeNoTzFieldModel:()=>eb.cPq,DateTimeNoTzFilterFieldModel:()=>eb.e7h,DateTimeNoTzPicker:()=>eb.pVr,DateTimeTzFieldModel:()=>eb.zqF,DateTimeTzFilterFieldModel:()=>eb.pKk,DateTimeTzPicker:()=>eb.mUg,DatetimeFieldInterface:()=>tr,DatetimeNoTzFieldInterface:()=>tz,DefaultToolsManager:()=>b,DeleteActionModel:()=>eb.rvE,DetailsAssociationFieldGroupModel:()=>eb.sD1,DetailsBlockModel:()=>eb.PU8,DetailsCustomItemModel:()=>eb.ivi,DetailsGridModel:()=>eb.ql0,DetailsItemModel:()=>eb.ZjK,DetailsJSFieldItemModel:()=>eb.ODR,DisplayCheckboxFieldModel:()=>eb.v9U,DisplayColorFieldModel:()=>eb.Ppd,DisplayDateTimeFieldModel:()=>eb.Ra0,DisplayEnumFieldModel:()=>eb.VcJ,DisplayHtmlFieldModel:()=>eb.vrA,DisplayIconFieldModel:()=>eb.xEQ,DisplayJSONFieldModel:()=>eb.qPo,DisplayNumberFieldModel:()=>eb.LbM,DisplayPasswordFieldModel:()=>eb.$T1,DisplayPercentFieldModel:()=>eb.hNf,DisplaySubItemFieldModel:()=>eb.dhL,DisplaySubListFieldModel:()=>eb.k9Q,DisplaySubTableFieldModel:()=>eb.m5p,DisplayTextFieldModel:()=>eb.Tuv,DisplayTimeFieldModel:()=>eb.$FU,DisplayTitleFieldModel:()=>eb.mU7,DisplayURLFieldModel:()=>eb.Vrl,DividerItemModel:()=>eb.upH,EditActionModel:()=>eb.m2W,EditFormContent:()=>eb.AV5,EditFormModel:()=>eb.Y5n,EmailFieldInterface:()=>ta,ExpandCollapseActionModel:()=>eb.hCX,FieldDeletePlaceholder:()=>eb.xIu,FieldModel:()=>eb.oLV,FieldModelSelect:()=>eb.khg,FieldOperatorSelect:()=>eb.T8$,FilterActionModel:()=>eb.omq,FilterBlockModel:()=>eb.v$f,FilterContent:()=>eb.oJ5,FilterFormActionGroupModel:()=>eb.dv2,FilterFormActionModel:()=>eb.cNN,FilterFormBlockModel:()=>eb.D8m,FilterFormCollapseActionModel:()=>eb.D1b,FilterFormCustomFieldModel:()=>eb.xz3,FilterFormCustomItemModel:()=>eb.I6Z,FilterFormCustomRecordSelectFieldModel:()=>eb.udY,FilterFormFieldModel:()=>eb.Mf0,FilterFormGridModel:()=>eb.www,FilterFormItemModel:()=>eb.vIF,FilterFormJSActionModel:()=>eb.t_n,FilterFormRecordSelectFieldModel:()=>eb.ZMt,FilterFormResetActionModel:()=>eb.zUb,FilterFormSubmitActionModel:()=>eb.y2s,FilterGroup:()=>eb.I8R,FilterItem:()=>eb.qi_,FilterManager:()=>eb.qh$,FlowModelRepository:()=>eb.cYG,FlowPage:()=>eb.KTk,FlowRoute:()=>eb.YmV,FormActionGroupModel:()=>eb.R8A,FormActionModel:()=>eb.sEB,FormAssociationFieldGroupModel:()=>eb.EcU,FormAssociationItemModel:()=>eb.ur8,FormBlockContent:()=>eb.JUj,FormBlockModel:()=>eb.F4f,FormComponent:()=>eb.s2f,FormCustomItemModel:()=>eb.wBN,FormGridModel:()=>eb.Ybt,FormItemModel:()=>eb.JgE,FormJSFieldItemModel:()=>eb.kN,FormModel:()=>eb.mOW,FormSubmitActionModel:()=>eb.u36,GRID_FLOW_KEY:()=>eb.cEK,GRID_STEP:()=>eb._UX,GlobalThemeProvider:()=>y.U_,GridModel:()=>eb.QuL,HeaderContext:()=>eb.B94,Icon:()=>w.In,IconFieldInterface:()=>ts,IconFieldModel:()=>eb.rpg,IdFieldInterface:()=>td,InputFieldInterface:()=>tp,InputFieldModel:()=>eb.mRH,InputNumberField:()=>eb.mLo,IntegerFieldInterface:()=>tm,InternalAdminSettingsLayout:()=>eb.Q7G,JSActionModel:()=>eb.Hn2,JSBlockModel:()=>eb.YJB,JSCollectionActionModel:()=>eb.dIg,JSColumnModel:()=>eb.l2T,JSEditableFieldModel:()=>eb.Nxx,JSFieldModel:()=>eb.P0,JSFormActionModel:()=>eb.l5h,JSItemActionModel:()=>eb.ymi,JSItemModel:()=>eb.qJ3,JSRecordActionModel:()=>eb.uVo,JsonFieldInterface:()=>tf,JsonFieldModel:()=>eb.mNj,JsonInput:()=>eb.fnr,LayoutContent:()=>eb.A14,LinkActionModel:()=>eb.CII,LinkToFieldInterface:()=>tg,LinkageFilterItem:()=>eb.Ru1,M2MFieldInterface:()=>ty,M2OFieldInterface:()=>t_,MAX_MESSAGE_CHARS:()=>eb.hPI,MENU_TYPE_OPTIONS:()=>eb.o2o,MainPageModel:()=>eb.qir,MarkdownFieldInterface:()=>tb,MarkdownItemModel:()=>eb.qqP,MobileMenuControlContext:()=>eb.Qt8,MockFlowModelRepository:()=>eb.WuM,MultipleSelectFieldInterface:()=>tx,NBColorPicker:()=>eb.qtW,NanoidFieldInterface:()=>tq,NocoBaseBuildInPlugin:()=>eE,NocoBaseBuildInPluginV2:()=>eE,NumberFieldInterface:()=>tM,NumberFieldModel:()=>eb.r39,O2MFieldInterface:()=>tw,O2OFieldInterface:()=>tS,OBOFieldInterface:()=>tF,OHOFieldInterface:()=>tk,ObjectNester:()=>eb.Xmd,PLUGIN_MANAGER_SETTING_NAME:()=>eb.BmO,PageModel:()=>eb.XK0,PageTabModel:()=>eb.sYw,PasswordFieldInterface:()=>tC,PasswordFieldModel:()=>eb.dWg,PercentFieldInterface:()=>tA,PercentFieldModel:()=>eb.v6e,PercentInput:()=>eb.er5,PhoneFieldInterface:()=>tP,PinnedPluginListContext:()=>ed.D,PinnedPluginListLite:()=>eb.Kgy,Plugin:()=>eg,PluginFlowEngine:()=>eb.s$$,PluginManager:()=>ee,PluginManagerPage:()=>eb.ksX,PluginSettingsManager:()=>et.mz,PluginSettingsTopbarActionModel:()=>eb.ESx,PopupActionModel:()=>eb.a6D,PopupCollectionActionModel:()=>eb.YXI,PopupSubTableActionGroupModel:()=>eb.HJv,PopupSubTableActionsColumnModel:()=>eb.FaR,PopupSubTableEditActionModel:()=>eb.oIl,PopupSubTableFieldModel:()=>eb.Uk$,PopupSubTableFormActionGroupModel:()=>eb.d13,PopupSubTableFormModel:()=>eb.iT0,PopupSubTableFormSubmitActionModel:()=>eb.spd,PopupSubTableRemoveActionModel:()=>eb.Ie6,QUICK_EDIT_FORM_MAX_HEIGHT:()=>eb.x_D,QUICK_EDIT_MARKDOWN_HEIGHT:()=>eb.vW_,QUICK_EDIT_POPOVER_MAX_HEIGHT:()=>eb.i6C,QuickEditFormModel:()=>eb.biS,RadioGroupFieldInterface:()=>tT,RadioGroupFieldModel:()=>eb.wwh,RecordActionGroupModel:()=>eb.gk0,RecordActionModel:()=>eb.LAC,RecordPickerContent:()=>eb.vy4,RecordPickerFieldModel:()=>eb.J$w,RecordSelectFieldModel:()=>eb.BgT,RefreshActionModel:()=>eb.n6C,RemoteFlowModelRenderer:()=>eb.zCA,ResetThemeTokenAndKeepAlgorithm:()=>eb.fCM,RichTextField:()=>eb.OsV,RichTextFieldInterface:()=>tj,RichTextFieldModel:()=>eb.DvX,RootPageModel:()=>eb.T6P,RootPageTabModel:()=>eb._$j,RouteModel:()=>eb.j0c,RouteRepository:()=>k,RouterContextCleaner:()=>w.PK,RouterManager:()=>en,SNIPPET_PREFIX:()=>et.tJ,SYSTEM_SETTINGS_SETTING_NAME:()=>eb.jmZ,SelectFieldInterface:()=>tI,SelectFieldModel:()=>eb.CCB,SkeletonFallback:()=>eb.KSc,SnowflakeIdFieldInterface:()=>tL,SourceCascader:()=>eb.AvD,SubFormFieldModel:()=>eb.Imp,SubFormListFieldModel:()=>eb.sW6,SubPageModel:()=>eb.RLu,SubTableColumnModel:()=>eb.WHj,SubTableFieldInterface:()=>tD,SubTableFieldModel:()=>eb.mHU,SubTableRecordAction:()=>eb.sJA,SystemSettingsPage:()=>eb.WzN,SystemSettingsSource:()=>eb.orA,TableActionsColumnModel:()=>eb.B6V,TableAssociationFieldGroupModel:()=>eb.GJ1,TableBlockModel:()=>eb.zDb,TableColumnModel:()=>eb.ivU,TableCustomColumnModel:()=>eb.Fts,TableJSFieldItemModel:()=>eb._e9,TableSelectModel:()=>eb.mSG,TableoidFieldInterface:()=>tY,TextAreaWithContextSelector:()=>eb.nap,TextareaFieldInterface:()=>tE,TextareaFieldModel:()=>eb.AMH,TimeFieldInterface:()=>tR,TimeFieldModel:()=>eb.Fy3,TopbarActionModel:()=>eb.k9E,UIEditorTopbarActionModel:()=>eb.h2d,USER_CENTER_ACTION_ID:()=>eb.Bnh,UUIDFieldInterface:()=>tH,UnitConversion:()=>eb.VPO,UnixTimestampFieldInterface:()=>t$,UpdateRecordActionModel:()=>eb.MhO,UpdatedAtFieldInterface:()=>tN,UpdatedByFieldInterface:()=>tB,UrlFieldInterface:()=>tO,UserCenterActionItemModel:()=>eb.ngq,UserCenterItemModel:()=>eb.np$,UserCenterSelectItemModel:()=>eb.FKm,UserCenterTextItemModel:()=>eb.ysz,UserCenterTopbarActionModel:()=>eb.ccc,VariableFieldFormModel:()=>eb.m$$,VariableFilterItem:()=>eb.Et2,ViewActionModel:()=>eb.v8l,WebSocketClient:()=>F,aclCheck:()=>eb.VGp,aclCheckRefresh:()=>eb.Yh4,actionLinkageRules:()=>eb.tQF,addCustomAlgorithmToTheme:()=>y._l,afterSuccess:()=>eb.mKE,applyMobilePaginationProps:()=>eb.hOt,blockHeight:()=>eb.Bum,blockLinkageRules:()=>eb.aWb,buildDisplayPathFromValue:()=>eb.d6j,buildInsertRouteSchema:()=>eb.QBt,buildLegacySigninHref:()=>ec.LQ,buildLinkSettingSchema:()=>eb.qNx,buildMenuBasicSchema:()=>eb.ThI,buildMenuTitleWithIcon:()=>eb.riZ,buildRecordPickerParentItemContext:()=>eb.oM7,buildRecordPickerPopupContextInputArgs:()=>eb.S5n,collectAssociationHydrationCandidates:()=>eb.ULH,collectCascadeHydrationCandidate:()=>eb.qlo,compatOldTheme:()=>y.Ne,confirm:()=>eb.lJp,connectFields:()=>eb.KYF,convertV2AdminPathToLegacy:()=>ec.Sx,createAclSnippetAllow:()=>eu.rN,createCompactSimpleItemRender:()=>eb.hHg,createDefaultCollectionBlockTitle:()=>eb.lrV,createInsertMenuStep:()=>eb.FWr,createMockClient:()=>ef,createSettingsPathMap:()=>eb.nCj,customAlgorithm:()=>y.ze,customVariable:()=>eb.I6c,customizeFilterRender:()=>eb.wUQ,dataLoadingMode:()=>eb.kbf,dataScope:()=>eb.fAh,dateTimeFormat:()=>eb.LE6,defaultOperator:()=>eb.CDb,defaultTheme:()=>y.zQ,detailsFieldLinkageRules:()=>eb.Dhs,diagnoseRunJS:()=>eb.fLT,dispatchEventDeep:()=>eb.Xig,displayFieldComponent:()=>eb.kkB,editMarkdownFlow:()=>eb.uMh,fieldComponent:()=>eb.e7P,fieldLinkageRules:()=>eb.znN,filterFormDefaultValues:()=>eb.IBN,filterRenderableSettings:()=>eb.Ui7,filterVisibleSettings:()=>eb.eDc,findFirstAccessiblePageRoute:()=>eb.MMn,findFirstInternalSettingsPage:()=>eb.X2M,findNextSiblingRoute:()=>eb.Evi,findOptionPathByTk:()=>eb.s5W,findPrevSiblingRoute:()=>eb.Cuw,findSettingsByName:()=>eb.R0X,fixed:()=>eb.Zu2,formAssignRules:()=>eb.dWc,formatNumber:()=>eb.ZVp,formatRunJSPreviewMessage:()=>eb.byO,getAdminLayoutMenuInitializerButton:()=>eb.Tnx,getAdminLayoutMenuMovePositionOptions:()=>eb.B82,getAdminLayoutMenuVirtualPath:()=>eb.Px_,getAdminLayoutModel:()=>eb.t_Y,getAllDataModels:()=>eb.w5F,getCurrentV2RedirectPath:()=>ec.vi,getDefaultOperator:()=>eb.aqk,getDefaultSettingsPath:()=>eb.C9C,getDefaultV2AdminRedirectPath:()=>ec.uk,getDetailsItemValue:()=>eb.ROt,getDisplayNumber:()=>eb.cm5,getMenuCreationDefaultParams:()=>eb.y8o,getMenuCreationUiSchema:()=>eb._IX,getMenuEditDefaultParams:()=>eb.n8$,getMenuItems:()=>eb.gLn,getMobileCompactPaginationClassName:()=>eb.NYj,getPinnedPluginListKeys:()=>ed.k,getQuickEditFieldProps:()=>eb.YXr,getSimpleModePaginationClassName:()=>eb.HZo,getTopbarPluginSettingsItems:()=>eb.XCP,getUniqueKeyFromCollection:()=>tv,getUnknownCountPaginationTotal:()=>eb.SMJ,getValueWithIndex:()=>eb.kPK,hasIcon:()=>w.cE,hasOwnSettingsPage:()=>eb.lv4,icons:()=>w.Pt,injectRecordPickerPopupContext:()=>eb.gaO,insertRouteSchema:()=>eb.eDQ,isFilterValueEmpty:()=>eb.tUI,joinUrlSearch:()=>eb.wqT,languageCodes:()=>e_.A,layout:()=>eb.Zpx,linkageAssignField:()=>eb.fMK,linkageRulesRefresh:()=>eb.S3Z,linkageRunjs:()=>eb.Myf,linkageSetActionProps:()=>eb.mQM,linkageSetBlockProps:()=>eb.LFq,linkageSetDetailsFieldProps:()=>eb.KAX,linkageSetFieldProps:()=>eb.uFv,markCascadeHydrationDone:()=>eb.Ck8,matchSettingsRoute:()=>eb.CM3,matchesRoutePath:()=>eb.Qb_,mergePaginationClassName:()=>eb.M6q,navigateToURL:()=>eb.isP,normalizeAdminLayoutMenuLegacyVariables:()=>eb.ux6,numberFormat:()=>eb.jqd,openAdminLayoutMenuLink:()=>eb.jjG,openView:()=>eb.e8C,openViewFlow:()=>eb.gvx,operatorComponentProps:()=>eb.KHY,overflowMode:()=>eb.COB,pattern:()=>eb.T16,previewRunJS:()=>eb.zA_,recalculateGridSizes:()=>eb.aDm,reconcileAdminLayoutMenuItems:()=>eb.tSM,redirectToLegacySignin:()=>ec.BE,refreshTargetBlocks:()=>eb.J9o,registerIcon:()=>w.pU,registerIcons:()=>w.K1,renderMode:()=>eb.IAc,replaceRouteParams:()=>eb.uTv,required:()=>eb.mw3,resolveAdminLayoutMenuDragMoveOptions:()=>eb.OtO,resolveAdminLayoutMenuDragMoveOptionsFromEvent:()=>eb.eLO,resolveAdminLayoutMenuLink:()=>eb.fi1,resolveAdminRouteRuntimeTarget:()=>eb.YjI,resolveCustomFieldOperatorList:()=>eb.eCD,resolveDefaultCustomFieldOperator:()=>eb.T9,resolveLegacySigninRedirect:()=>ec.M4,runjs:()=>eb.ZCq,setTargetDataScope:()=>eb.mp5,shouldRenderIconInTitle:()=>eb.Ucr,showMessage:()=>eb.rGX,showNotification:()=>eb.Dsh,sortTopLevelSettings:()=>eb.p$W,sortingRule:()=>eb.hsC,subFormFieldLinkageRules:()=>eb.D2p,subFormLinkageAssignField:()=>eb.zTu,subFormLinkageSetFieldProps:()=>eb.gbJ,titleField:()=>eb.Pqd,toOperatorSelectOptions:()=>eb.kA1,toRouterNavigationPath:()=>eb.Yjq,toToolsMap:()=>M,toTreeSelectItems:()=>eb.Gap,toViewStack:()=>eb.Hwd,transformNestedData:()=>eb.Anr,transformRowsToSingleColumn:()=>eb.vbm,useACLContext:()=>eu.bq,useACLRoleContext:()=>eu.v6,useAclSnippets:()=>eu.K3,useApp:()=>m.n,useApplications:()=>eb.HWn,useCurrentRoleMode:()=>eu.GL,useGlobalTheme:()=>y.my,useMobileLayout:()=>eb.mYX,usePlugin:()=>ev.n,useRoleRecheck:()=>eu.N5,useRouter:()=>ey,useSystemSettings:()=>eb.e6V,useUIConfigurationPermissions:()=>eu.uM,validation:()=>eb.Eq4});var n=l(1178),i=l(2314),r=l(504),a=l(7583),s=l(1649),d=l(6662),u=l(7843),c=l(4679),p=l(8356),m=l(5703),h=l(2793);let f=(0,s.memo)(e=>{let{children:t}=e,l=(0,m.n)(),{notification:o}=h.App.useApp();return(0,s.useLayoutEffect)(()=>{l.context.defineProperty("notification",{value:o})},[l,o]),(0,n.jsx)(n.Fragment,{children:t})});f.displayName="AppInner";let g=e=>{let{children:t,className:l,style:o}=e;return(0,n.jsx)(h.App,{className:l,style:{height:"100%",...o},children:(0,n.jsx)(f,{children:t})})};g.displayName="AntdAppProvider";let v=g;var y=l(7825),_=l(3526);class b{async listTools(e){let{data:t}=await this.app.apiClient.resource("aiTools").list({filter:e}),l=null==t?void 0:t.data;return l?l.map(e=>({...e,...this.tools.get(e.definition.name)??{}})):[]}useTools(){let e=new _.Registry;for(let[l,o]of this.tools.getEntities()){var t;e.register(l,{...(null==(t=o.useHooks)?void 0:t.call(o))??o})}return e}registerTools(e,t){this.tools.register(e,{...t})}constructor(e,t=new _.Registry){this.app=e,this.tools=t}}class x{constructor(e){this.app=e,this.toolsManager=new b(this.app)}}let M=e=>new Map(e.map(e=>[e.definition.name,e]));var w=l(5640),S=l(7520);class k{setRoutes(e){this.routes=e,this.accessibleLoaded=!0,this.emitChange()}listAccessible(){return this.routes}isAccessibleLoaded(){return this.accessibleLoaded}async refreshAccessible(){var e;let t=await this.getAPIClient().request({url:"/desktopRoutes:listAccessible",params:{tree:!0,sort:"sort"}}),l=(null==t||null==(e=t.data)?void 0:e.data)||[];return this.setRoutes(l),l}async ensureAccessibleLoaded(){return this.accessibleLoaded?this.routes:(this.accessibleLoadingPromise||(this.accessibleLoadingPromise=this.refreshAccessible().finally(()=>{this.accessibleLoadingPromise=null})),this.accessibleLoadingPromise)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}unsubscribe(e){this.subscribers.delete(e)}async createRoute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{refreshAfterMutation:l=!0}=t,o=await this.getResource("desktopRoutes").create({values:e});return l&&await this.refreshAccessible(),o}async updateRoute(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{refreshAfterMutation:o=!0}=l,n=await this.getResource("desktopRoutes").update(Array.isArray(e)?{filter:{id:{$in:e}},values:t}:{filterByTk:e,values:t});return o&&await this.refreshAccessible(),n}async deleteRoute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{refreshAfterMutation:l=!0}=t,o=await this.getResource("desktopRoutes").destroy({filterByTk:e});return l&&await this.refreshAccessible(),o}async moveRoute(e){let{refreshAfterMove:t=!0,...l}=e,o=await this.getResource("desktopRoutes").move(l);return t&&await this.refreshAccessible(),o}getRouteBySchemaUid(e){return this.findRoute(this.routes,e)}getAPIClient(){var e;if(!(null==(e=this.ctx)?void 0:e.api))throw Error("[NocoBase] RouteRepository requires context.api.");return this.ctx.api}getResource(e){return this.getAPIClient().resource(e)}emitChange(){this.subscribers.forEach(e=>{e()})}findRoute(e,t){for(let l of e){if(l.schemaUid===t)return l;if(l.children){let e=this.findRoute(l.children,t);if(e)return e}}}constructor(e){this.ctx=e,this.routes=[],this.subscribers=new Set,this.accessibleLoaded=!1,this.accessibleLoadingPromise=null}}class F{getURL(){if(!this.app)return;let e=this.app.getApiUrl();if(!e)return;let t="";if(this.getSubAppName(this.app))t=`?_app=${this.getSubAppName(this.app)}`;else{let e=(0,__rspack_external__nocobase_sdk_cafaf92c.getSubAppName)(this.app.getPublicPath());t=e?`?__appName=${e}`:""}let l=this.options.basename||"/ws";if(this.options.url){let e=new URL(this.options.url);if("localhost"===e.hostname){let o="https:"===location.protocol?"wss":"ws";return`${o}://${location.hostname}:${e.port}${l}${t}`}return`${this.options.url}${t}`}try{let o=new URL(e);return`${"https:"===o.protocol?"wss":"ws"}://${o.host}${l}${t}`}catch(e){return`${"https:"===location.protocol?"wss":"ws"}://${location.host}${l}${t}`}}get reconnectAttempts(){var e;return(null==(e=this.options)?void 0:e.reconnectAttempts)||30}get reconnectInterval(){var e;return(null==(e=this.options)?void 0:e.reconnectInterval)||1e3}get pingInterval(){var e;return(null==(e=this.options)?void 0:e.pingInterval)||3e5}get readyState(){return this._ws?this._ws.readyState:-1}createWebSocket(){return new WebSocket(this.getURL(),this.options.protocols)}connect(){let e;if(!this.enabled||(0===this._reconnectTimes&&console.log("[nocobase-ws]: connecting..."),this._reconnectTimes>=this.reconnectAttempts||this.readyState===WebSocket.OPEN))return;this._reconnectTimes++;let t=this.createWebSocket();t.onopen=()=>{for(let{type:e,listener:l,options:o}of(console.log("[nocobase-ws]: connected."),this.serverDown=!1,this._ws&&this.removeAllListeners(),this._reconnectTimes=0,this._ws=t,this.events))this._ws.addEventListener(e,l,o);e=setInterval(()=>this.send("ping"),this.pingInterval),this.connected=!0,this.emit("open",{})},t.onerror=async()=>{console.log("onerror",this.readyState,this._reconnectTimes)},t.onclose=async t=>{setTimeout(()=>this.connect(),this.reconnectInterval),console.log("onclose",this.readyState,this._reconnectTimes,this.serverDown),this.connected=!1,clearInterval(e)}}reconnect(){this._reconnectTimes=0,this.connect()}close(){if(this._ws)return this._reconnectTimes=this.reconnectAttempts,this._ws.close()}send(e){if(this._ws)return this._ws.send(e)}on(e,t,l){this.events.push({type:e,listener:t,options:l}),this._ws&&this._ws.addEventListener(e,t,l)}emit(e,t){for(let l of this.events)l.type===e&&l.listener(t)}off(e,t,l){let o=0;for(let l of this.events){if(l.type===e&&l.listener===t){this.events.splice(o,1);break}o++}this._ws&&this._ws.removeEventListener(e,t,l)}removeAllListeners(){if(this._ws)for(let{type:e,listener:t,options:l}of this.events)this._ws.removeEventListener(e,t,l)}constructor(e){if(this._reconnectTimes=0,this.events=[],this.connected=!1,this.serverDown=!1,this.lastMessage={},this.getSubAppName=e=>{let t=e.getPublicPath(),l=`^${t}_app/([^/]*)/`,o=location.pathname.match(new RegExp(l));return o?o[1]:null},!e){this.enabled=!1;return}this.options=!0===e?{}:e,this.enabled=!0,(0,i.define)(this,{serverDown:i.observable.ref,connected:i.observable.ref,lastMessage:i.observable.ref})}}function C(e){if(!e)return console.warn("Failed to mount app: mount target should not be null or undefined."),null;if("string"==typeof e){let t=document.querySelector(e);return t||console.warn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return globalThis.window.ShadowRoot&&e instanceof globalThis.window.ShadowRoot&&"closed"===e.mode&&console.warn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let A=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let o=t.reduce((e,t)=>{let[l,o]=t,i=t=>{let{children:i}=t;return(0,n.jsx)(e,{children:(0,n.jsx)(l,{...o,children:i})})};return i.displayName=`compose(${l.displayName||l.name})`,i},w.ct);return e=>t=>(0,n.jsx)(o,{children:e&&(0,n.jsx)(e,{...t})})};var P=l(1196),T=l(2113),j=l(4814),I=l(6920),L=l(7404),D=l(1883),Y=l(7516);function E(e){e.define("react",()=>s.default),e.define("react-dom",()=>Y.default),e.define("react/jsx-runtime",()=>n.default),e.define("react-router",()=>__rspack_external_react_router_65608a1a),e.define("react-router-dom",()=>p),e.define("antd",()=>h),e.define("@ant-design/icons",()=>T),e.define("@ant-design/cssinjs",()=>P),e.define("i18next",()=>__rspack_external_i18next),e.define("react-i18next",()=>u),e.define("@formily/core",()=>j),e.define("@formily/react",()=>I),e.define("@formily/reactive",()=>i),e.define("@formily/shared",()=>L),e.define("@nocobase/utils",()=>_),e.define("@nocobase/utils/client",()=>_),e.define("@nocobase/client-v2",()=>o),e.define("@nocobase/client-v2/client-v2",()=>o),e.define("@nocobase/flow-engine",()=>r),e.define("ahooks",()=>D)}var R=l(6104);let N=/^\/+/,B=/\/+$/,O=e=>{let t=N.exec(e);return t?e.slice(t[0].length):e},H=e=>{let t=B.exec(e);return t?e.slice(0,-t[0].length):e},q=e=>(0,__rspack_external_react_is_98317e95.isValidElementType)(e);class ${get pm(){return this.pluginManager}get disableAcl(){return this.options.disableAcl}get isWsAuthorized(){return this.wsAuthorized}defineObservableState(){(0,i.define)(this,{maintained:i.observable.ref,maintaining:i.observable.ref,error:i.observable.ref})}initializeExtendedState(){this.systemSettings=new S.o(this.apiClient)}afterManagersInitialized(){this.aiManager=new x(this)}configureContext(){}configureRuntimeAdapters(){}addCustomProviders(){}initListeners(){this.eventBus.addEventListener("auth:tokenChanged",e=>{let t=e.detail;(null==t?void 0:t.token)&&this.setTokenInWebSocket(t)}),this.eventBus.addEventListener("maintaining:end",()=>{this.apiClient.auth.token&&this.setTokenInWebSocket({token:this.apiClient.auth.token,authenticator:this.apiClient.auth.getAuthenticator()})})}setTokenInWebSocket(e){let{token:t,authenticator:l}=e;this.maintaining||this.ws.send(JSON.stringify({type:"auth:token",payload:{token:t,authenticator:l}}))}initRequireJs(){if(void 0===globalThis.window)return;let e=globalThis.window;if(e.requirejs){this.requirejs=e.requirejs;return}e.requirejs=this.requirejs=(0,R.b)(),E(this.requirejs),e.define=this.requirejs.define}configureBaseContext(){this.flowEngine.context.defineProperty("app",{value:this}),this.flowEngine.context.defineProperty("api",{value:this.apiClient}),this.flowEngine.context.defineProperty("i18n",{value:this.i18n}),this.flowEngine.context.defineProperty("router",{get:()=>this.router.router,cache:!1}),this.flowEngine.context.defineProperty("documentTitle",{get:()=>document.title}),this.flowEngine.context.defineProperty("route",{get:()=>{},observable:!0}),this.flowEngine.context.defineProperty("location",{get:()=>location,observable:!0}),this.flowEngine.context.defineProperty("routeRepository",{value:new k(this.flowEngine.context)}),this.flowEngine.context.defineProperty("appInfo",{get:async()=>{var e;return(null==(e=(await this.apiClient.request({url:"app:getInfo"})).data)?void 0:e.data)||{}}}),this.flowEngine.context.defineProperty("pageInfo",{value:(0,i.observable)({version:void 0})}),this.flowEngine.context.defineProperty("systemSettings",{get:()=>this.systemSettings})}addBaseProviders(){this.use(u.I18nextProvider,{i18n:this.i18n}),this.use(r.FlowEngineProvider,{engine:this.flowEngine}),this.use(y.U_),this.use(v)}addFinalProviders(){this.use(r.FlowEngineGlobalsContextProvider)}addReactRouterComponents(){this.addComponents({Link:p.Link,Navigate:p.Navigate,NavLink:p.NavLink})}addRoutes(){this.router.add("not-found",{path:"*",Component:this.components.AppNotFound})}updateFavicon(e){let t=document.querySelector('link[rel="shortcut icon"]');e&&(this.favicon=e);let l=this.favicon||"/favicon/favicon.ico";t?t.href=l:((t=document.createElement("link")).rel="shortcut icon",t.href=l,document.head.appendChild(t))}setWsAuthorized(e){this.wsAuthorized=e}setMaintaining(e){this.maintaining!==e&&(this.maintaining=e,e||this.eventBus.dispatchEvent(new Event("maintaining:end")))}getOptions(){return this.options}getName(){return(0,__rspack_external__nocobase_sdk_cafaf92c.getSubAppName)(this.getPublicPath())||null}getPublicPath(){let e=this.options.publicPath||"/";return e.endsWith("/")||(e+="/"),e}getApiUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.apiClient.axios.defaults.baseURL??"";if(!t.startsWith("http://")&&!t.startsWith("https://")){let{protocol:e,host:l}=globalThis.window.location;t=`${e}//${l}${t}`}return`${H(t)}/${O(e)}`}getRouteUrl(e){return this.getPublicPath()+O(e)}getHref(e){let t=this.name;return t&&"main"!==t?`${this.getPublicPath()}apps/${t}/${O(e)}`:this.getPublicPath()+O(e)}getComposeProviders(){let e=A(...this.providers)(w.ct);return e.displayName="Providers",e}use(e,t){return this.addProvider(e,t)}addProvider(e,t){return this.providers.push([e,t])}addProviders(e){e.forEach(e=>{Array.isArray(e)?this.addProvider(e[0],e[1]):this.addProvider(e)})}getComponent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=e=>t&&console.error(e);if(!e)return void l(`getComponent called with ${e}`);if("string"==typeof e){let t=(0,a.get)(this.components,e);return t||void l(`Component ${e} not found`)}if(q(e))return e;l(`Component ${e} should be a string or a React component`)}renderComponent(e,t,l){let o=this.getComponent(e);return o?s.default.createElement(o,t,l):null}addComponent(e,t){let l=e,o=t||l.displayName||l.name;o?(0,a.set)(this.components,o,e):console.error("Component must have a displayName or pass name as second argument")}addComponents(e){Object.keys(e).forEach(t=>{this.addComponent(e[t],t)})}getRootFallback(){return this.renderComponent("AppSpin")}getRootComponent(){let e=this.model,t=this.flowEngine,l=()=>this.getRootFallback();return o=>{let{children:i}=o;return(0,s.useLayoutEffect)(()=>{e.setProps({children:i})},[i]),(0,n.jsx)(r.FlowEngineProvider,{engine:t,children:(0,n.jsx)(r.FlowModelRenderer,{fallback:l(),model:e})})}}mount(e){let t=C(e);if(t){let e=this.getRootComponent(),l=(0,d.createRoot)(t);return l.render((0,n.jsx)(e,{})),l}}createWebSocketClient(e){return new F(e.ws??!1)}getDefaultComponents(){return{AppNotFound:w.bM,AppError:w.uV,AppSpin:w.gv,AppMaintaining:w.be,AppMaintainingDialog:w.tp}}constructor(e={}){this.options=e,this.eventBus=new EventTarget,this.providers=[],this.scopes={},this.components={},this.maintained=!1,this.maintaining=!1,this.error=null,this.wsAuthorized=!1,this.apps={Component:null},this.initRequireJs(),this.defineObservableState(),this.devDynamicImport=e.devDynamicImport,this.scopes=(0,a.merge)(this.scopes,e.scopes),this.components=(0,a.merge)(this.getDefaultComponents(),e.components),this.name=this.options.name||(0,__rspack_external__nocobase_sdk_cafaf92c.getSubAppName)(e.publicPath)||"main",this.apiClient=this.createApiClient(e),this.initializeExtendedState(),this.i18n=this.createI18n(e),this.router=this.createRouterManager(e),this.pluginManager=this.createPluginManager(e),this.flowEngine=new r.FlowEngine,this.flowEngine.registerModels({ApplicationModel:K}),this.model=this.flowEngine.createModel({use:"ApplicationModel",uid:"__app_model__"}),this.context=this.flowEngine.context,this.configureRuntimeAdapters(),this.context.defineProperty("pluginManager",{get:()=>this.pluginManager}),this.configureBaseContext(),this.configureContext(),this.addBaseProviders(),this.addCustomProviders(),this.addFinalProviders(),this.addReactRouterComponents(),this.addProviders(e.providers||[]),this.ws=this.createWebSocketClient(e),this.ws.app=this,this.pluginSettingsManager=this.createPluginSettingsManager(e),this.addRoutes(),this.i18n.on("languageChanged",e=>{this.apiClient.auth.locale=e}),this.initListeners(),this.afterManagersInitialized()}}var V=new WeakMap,z=new WeakMap;class K extends r.FlowModel{get app(){return this.context.app}getProviders(){return(0,__rspack_external__swc_helpers_class_private_field_set_77a3a28f._)(this,V,(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,V)||this.app.getComposeProviders()),(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,V)}getRouter(){return(0,__rspack_external__swc_helpers_class_private_field_set_77a3a28f._)(this,z,(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,z)||this.app.router.getRouterComponent()),(0,__rspack_external__swc_helpers_class_private_field_get_6a9332d2._)(this,z)}render(){return this.app.maintaining?this.renderMaintaining():this.app.error?this.renderError():this.renderContent()}renderMaintaining(){return this.app.maintained?this.app.renderComponent("AppMaintainingDialog",{app:this.app,error:this.app.error}):this.app.renderComponent("AppMaintaining",{app:this.app,error:this.app.error})}renderError(){return this.app.renderComponent("AppError",{app:this.app,error:this.app.error})}renderContent(){let e=this.app.getComponent("AppError",!1),t=this.getRouter(),l=this.getProviders(),o=(0,n.jsx)(t,{BaseLayout:l});if(!e)return o;let i=(e,t)=>{var l;console.error(e);let o=null==(l=t.componentStack)?void 0:l.trim();if(!o)return;let n=Error("React component stack");n.stack=o,console.error(n)};return(0,n.jsx)(c.ErrorBoundary,{FallbackComponent:t=>(0,n.jsx)(e,{app:this.app,...t}),onError:i,children:o})}constructor(...e){super(...e),(0,__rspack_external__swc_helpers_class_private_field_init_bfcd6df5._)(this,V,{writable:!0,value:void 0}),(0,__rspack_external__swc_helpers_class_private_field_init_bfcd6df5._)(this,z,{writable:!0,value:void 0})}}K.registerFlow({key:"appFlow",steps:{init:{async handler(e){try{await e.app.load()}catch(t){e.model.app.error=t,console.error(t)}}}}});class U{addFieldInterfaces(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.reduce((e,t)=>{let l=new t(this);return(null==l?void 0:l.name)&&(e[l.name]=l,Array.isArray(this.actionList[l.name])&&(this.actionList[l.name].forEach(e=>{var t,o;if("addComponentOption"===e.type){null==(o=l.addComponentOption)||o.call(l,e.data);return}null==(t=l.addOperator)||t.call(l,e.data)}),this.actionList[l.name]=void 0)),e},{});Object.assign(this.collectionFieldInterfaceInstances,t)}addFieldInterfaceComponentOption(e,t){var l;let o=this.getFieldInterface(e);o?null==(l=o.addComponentOption)||l.call(o,t):this.enqueueAction(e,{type:"addComponentOption",data:t})}addFieldInterfaceOperator(e,t){var l;let o=this.getFieldInterface(e);o?null==(l=o.addOperator)||l.call(o,t):this.enqueueAction(e,{type:"addOperator",data:t})}getFieldInterface(e){return this.collectionFieldInterfaceInstances[e]}getFieldInterfaces(e){return Object.values(this.collectionFieldInterfaceInstances).filter(t=>!e||!t.supportDataSourceType&&!t.notSupportDataSourceType||(t.supportDataSourceType?t.supportDataSourceType.includes(e):!t.notSupportDataSourceType||!t.notSupportDataSourceType.includes(e)))}addFieldInterfaceGroups(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this.collectionFieldGroups,e)}getFieldInterfaceGroups(){return this.collectionFieldGroups}getFieldInterfaceGroup(e){return this.collectionFieldGroups[e]}enqueueAction(e,t){this.actionList[e]||(this.actionList[e]=[]),this.actionList[e].push(t)}constructor(e){this.dataSourceManager=e,this.collectionFieldInterfaceInstances={},this.collectionFieldGroups={},this.actionList={}}}function G(e){Object.entries(e).forEach(e=>{let[t,l]=e;window.define(`${t}/client-v2`,()=>l)})}function W(e){window.define(`${e}/client-v2`,["exports",e],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(l){"__esModule"===l||l in e&&e[l]===t[l]||Object.defineProperty(e,l,{enumerable:!0,get:function(){return t[l]}})})})}function J(e,t){e.requirejs.config({waitSeconds:120,paths:t.reduce((e,t)=>(e[t.packageName]=t.url,e),{})})}function X(e,t){return function(){for(var l=arguments.length,o=Array(l),n=0;n<l;n++)o[n]=arguments[n];t(o.map((t,l)=>[e[l].name,(null==t?void 0:t.default)||t]).filter(e=>e[1]));let i=o.map((e,t)=>e?null:t).filter(e=>null!==e).map(t=>e[t].packageName);i.length>0&&console.error("[nocobase load plugin error]: These plugins do not have an `export.default` exported content or there is an error in the plugins. error plugins: \r\n%s",i.join(", \r\n"))}}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];J(e,t);let l=t.map(e=>e.packageName);return l.forEach(e=>{W(e)}),new Promise((o,n)=>{e.requirejs(l,X(t,o),n)})}async function Z(e){let{requirejs:t,pluginData:l,devDynamicImport:o}=e;if(0===l.length)return[];let n=[],i={};if(o){for await(let e of l){let t=await o(e.packageName);t&&(n.push([e.name,t.default]),i[e.packageName]=t.default)}G(i)}let r=l.filter(e=>!i[e.packageName]);if(0===r.length)return n;if(0===n.length){let e=await Q(t,r);n.push(...e)}return n}class ee{async init(e){await this.initStaticPlugins(e),this.loadRemotePlugins&&await this.initRemotePlugins()}getRemotePluginsRequestUrl(){return"pm:listEnabledV2"}async initStaticPlugins(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for await(let t of e){let e=Array.isArray(t)?t[0]:t,l=Array.isArray(t)?t[1]:void 0;await this.add(e,l)}}async initRemotePlugins(){var e;let t=await this.app.apiClient.request({url:this.getRemotePluginsRequestUrl()}),l=(null==t||null==(e=t.data)?void 0:e.data)||[];for await(let[e,t]of(await Z({requirejs:this.app.requirejs,pluginData:l,devDynamicImport:this.app.devDynamicImport}))){let o=l.find(t=>t.name===e);await this.add(t,o)}}async add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this.getInstance(e,t);this.pluginInstances.set(e,l),t.name&&(this.pluginsAliases[t.name]=l),t.packageName&&(this.pluginsAliases[t.packageName]=l),await l.afterAdd()}get(e){return"string"==typeof e?this.pluginsAliases[e]:this.pluginInstances.get(e.default||e)}getInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new e(t,this.app)}async load(){for(let e of(await this.initPlugins,this.pluginInstances.values()))await e.beforeLoad();for(let e of this.pluginInstances.values())await e.load(),this.app.eventBus.dispatchEvent(new CustomEvent(`plugin:${e.options.name}:loaded`,{detail:e}))}constructor(e,t,l){this._plugins=e,this.loadRemotePlugins=t,this.app=l,this.pluginInstances=new Map,this.pluginsAliases={},this.app=l,this.initPlugins=this.init(e||[]),this.loadRemotePlugins=t}}var et=l(3939);function el(e){let t=(0,p.useParams)(),l=(0,p.useLocation)(),o=(0,p.useMatches)(),n=e.flowEngine;(0,s.useEffect)(()=>{var e;let l=o[o.length-1];l&&(n.context._observableCache.route={name:l.id,pathname:l.pathname,path:(null==(e=l.handle)?void 0:e.path)||null,params:t})},[n.context,t,o]),(0,s.useEffect)(()=>{n.context._observableCache.location=l},[n.context,l])}function eo(e){let{app:t}=e;return el(t),null}class en{get basename(){return this.router.basename}get state(){return this.router.state}get navigate(){return this.router.navigate}resolveLoadedComponent(e){if(e)return"function"==typeof e||"string"==typeof e?e:e.default||e.Component}createRouteLazyComponent(e){let t=s.default.lazy(()=>e().then(e=>{let t=this.resolveLoadedComponent(e);if(!t)throw Error("componentLoader must resolve to a React component or component module.");return"string"==typeof t?{default:e=>this.app.renderComponent(t,e)}:{default:t}}));return function(e){return(0,n.jsx)(s.default.Suspense,{fallback:null,children:(0,n.jsx)(t,{...e})})}}getRoutesTree(){let e={};for(let[t,l]of Object.entries(this.routes))(0,a.set)(e,t.split(".").join(".children."),{...(0,a.get)(e,t.split(".").join(".children.")),...l});let t=e=>Object.values(e).reduce((e,l)=>{if(1===Object.keys(l).length&&l.children)e.push(...t(l.children));else{let{Component:o,componentLoader:n,element:i,children:r,...a}=l,d=i;n?d=s.default.createElement(this.createRouteLazyComponent(n)):o&&(d="string"==typeof o?this.app.renderComponent(o):s.default.createElement(o));let u={...a,element:d,children:r?t(r):void 0};e.push(u)}return e},[]);return t(e)}getRoutes(){return this.routes}setType(e){this.options.type=e}getBasename(){return this.options.basename}setBasename(e){this.options.basename=e}matchRoutes(e){let t=this.getRoutesTree();return(0,__rspack_external_react_router_65608a1a.matchRoutes)(t,e,this.basename)}isSkippedAuthCheckRoute(e){return(this.matchRoutes(e)||[]).some(e=>{var t;return(null==e||null==(t=e.route)?void 0:t.skipAuthCheck)===!0})}getRouterComponent(e){let{type:t="browser",...l}=this.options,o={hash:p.createHashRouter,browser:p.createBrowserRouter,memory:p.createMemoryRouter},i=this.getRoutesTree(),r=(0,s.createContext)(e=>e.children),a=()=>{let t=(0,s.useContext)(r);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eo,{app:this.app}),(0,n.jsxs)(t,{children:[(0,n.jsx)(p.Outlet,{}),e]})]})},d=()=>{throw(0,p.useRouteError)()};return this.router=o[t]([{element:(0,n.jsx)(a,{}),errorElement:(0,n.jsx)(d,{}),children:i}],l),e=>{let{BaseLayout:t=w.ct}=e;return(0,n.jsx)(r.Provider,{value:t,children:(0,n.jsx)(w.PK,{children:(0,n.jsx)(p.RouterProvider,{future:{v7_startTransition:!0},router:this.router})})})}}add(e,t){this.routes[e]={id:e,...t,handle:{path:t.path}}}get(e){return this.routes[e]}has(e){return!!this.get(e)}remove(e){delete this.routes[e]}constructor(e={},t){this.routes={},this.options=e,this.app=t,this.routes=e.routes||{}}}var ei=l(2741);let er=e=>{let{children:t}=e,{token:l}=h.theme.useToken(),o=l.colorFillTertiary,n=new ei.TinyColor(l.colorFill).onBackground(l.colorFillSecondary).toHexShortString(),i=new ei.TinyColor(l.colorFill).onBackground(l.colorFill).toHexShortString(),r=new ei.TinyColor(l.colorFill).onBackground(l.colorFill).onBackground(l.colorFill).toHexShortString();return(0,s.useEffect)(()=>{document.body.style.setProperty("--nb-spacing",`${l.marginLG}px`),document.body.style.setProperty("--nb-designer-offset",`${l.marginXS}px`),document.body.style.setProperty("--nb-header-height",`${l.sizeXXL-2}px`),document.body.style.setProperty("--nb-box-bg",l.colorBgLayout),document.body.style.setProperty("--colorBgLayout",l.colorBgLayout),document.body.style.setProperty("--colorBgContainer",l.colorBgContainer),document.body.style.setProperty("--controlHeightLG",`${l.controlHeightLG}px`),document.body.style.setProperty("--paddingContentVerticalSM",`${l.paddingContentVerticalSM}px`),document.body.style.setProperty("--marginSM",`${l.marginSM}px`),document.body.style.setProperty("--colorInfoBg",l.colorInfoBg),document.body.style.setProperty("--colorInfoBorder",l.colorInfoBorder),document.body.style.setProperty("--colorWarningBg",l.colorWarningBg),document.body.style.setProperty("--colorWarningBorder",l.colorWarningBorder),document.body.style.setProperty("--colorText",l.colorText),document.body.style.setProperty("--colorTextHeaderMenu",l.colorTextHeaderMenu),document.body.style.setProperty("--colorPrimaryText",l.colorPrimaryText),document.body.style.setProperty("--colorPrimaryTextActive",l.colorPrimaryTextActive),document.body.style.setProperty("--colorPrimaryTextHover",l.colorPrimaryTextHover),document.body.style.setProperty("--colorBgSider",l.colorBgSider),document.body.style.setProperty("--colorBgSiderMenuHover",l.colorBgSiderMenuHover),document.body.style.setProperty("--colorBgSiderMenuActive",l.colorBgSiderMenuActive),document.body.style.setProperty("--colorTextSiderMenu",l.colorTextSiderMenu),document.body.style.setProperty("--colorTextSiderMenuHover",l.colorTextSiderMenuHover),document.body.style.setProperty("--colorTextSiderMenuActive",l.colorTextSiderMenuActive),document.body.style.setProperty("--colorBgScrollTrack",o),document.body.style.setProperty("--colorBgScrollBar",n),document.body.style.setProperty("--colorBgScrollBarHover",i),document.body.style.setProperty("--colorBgScrollBarActive",r),document.body.style.setProperty("--colorSettings",l.colorSettings||__rspack_external__nocobase_client_v2_105d03db.defaultTheme.token.colorSettings),document.body.style.setProperty("--colorBgSettingsHover",l.colorBgSettingsHover),document.body.style.setProperty("--colorTemplateBgSettingsHover",l.colorTemplateBgSettingsHover),document.body.style.setProperty("--colorBorderSettingsHover",l.colorBorderSettingsHover),document.body.style.setProperty("--colorBgMenuItemSelected",l.colorBgHeaderMenuActive),document.body.style.setProperty("background-color",l.colorBgContainer)},[n,r,i,o,l.colorBgContainer,l.colorBgLayout,l.colorBgSettingsHover,l.colorTemplateBgSettingsHover,l.colorBorderSettingsHover,l.colorInfoBg,l.colorInfoBorder,l.colorPrimaryText,l.colorPrimaryTextActive,l.colorPrimaryTextHover,l.colorSettings,l.colorText,l.colorWarningBg,l.colorWarningBorder,l.controlHeightLG,l.marginLG,l.marginSM,l.marginXS,l.paddingContentVerticalSM,l.sizeXXL,l.colorTextHeaderMenu,l.colorBgSider,l.colorBgSiderMenuHover,l.colorBgSiderMenuActive,l.colorTextSiderMenu,l.colorTextSiderMenuHover,l.colorTextSiderMenuActive,l.colorBgHeaderMenuActive]),t};er.displayName="CSSVariableProvider";let ea=er;class es extends ${createApiClient(e){return new __rspack_external__nocobase_sdk_cafaf92c.APIClient(e.apiClient)}configureRuntimeAdapters(){this.dataSourceManager=this.flowEngine.context.dataSourceManager,this.dataSourceManager.setRequester(this.apiClient.request.bind(this.apiClient)),this.dataSourceManager.collectionFieldInterfaceManager||this.dataSourceManager.setCollectionFieldInterfaceManager(new U(this.dataSourceManager))}createI18n(e){if(e.i18n)return e.i18n;let t=(0,__rspack_external_i18next.createInstance)();return t.use(u.initReactI18next).init({lng:"en-US",defaultNS:"client",resources:{},keySeparator:!1,nsSeparator:!1}),t}createRouterManager(e){var t;let l=new en(e.router,this);if((null==(t=e.router)?void 0:t.basename)===void 0){let e=this.getPublicPath(),t="/"===e?void 0:e.replace(/\/$/,"");t&&l.setBasename(t)}return l}createPluginManager(e){return new ee(e.plugins||[],!!e.loadRemotePlugins,this)}createPluginSettingsManager(e){return new et.mz(this)}async load(){await this.loadWebSocket(),await this.pm.load(),await this.flowEngine.flowSettings.load(),this.updateFavicon()}async loadWebSocket(){this.eventBus.addEventListener("ws:message:authorized",()=>{this.setWsAuthorized(!0)}),this.ws.on("message",e=>{var t,l,o,n;if(!e.data)return;let i=JSON.parse(e.data);if(null==i||null==(t=i.payload)?void 0:t.refresh)return void globalThis.window.location.reload();if("notification"===i.type){let e=this.context.notification;null==(o=e[(null==(n=i.payload)?void 0:n.type)||"info"])||o.call(e,{message:null==(l=i.payload)?void 0:l.message});return}if(this.error&&"APP_RUNNING"===i.payload.code){this.maintained=!0,this.setMaintaining(!1),this.error=null,globalThis.window.location.reload();return}let r="maintaining"===i.type&&"APP_RUNNING"!==i.payload.code;if(console.log("ws:message",{maintaining:r,data:i}),r)this.setMaintaining(!0),this.error=i.payload;else{this.setMaintaining(!1),this.maintained=!0,this.error=null;let e=i.type;if(!e)return;let t=`ws:message:${e}`;this.eventBus.dispatchEvent(new CustomEvent(t,{detail:i.payload}))}}),this.ws.on("serverDown",()=>{this.maintaining=!0,this.maintained=!1}),this.ws.on("open",()=>{let e=this.apiClient.auth.token;e&&this.setTokenInWebSocket({token:e,authenticator:this.apiClient.auth.getAuthenticator()})}),this.ws.connect()}addCustomProviders(){this.use(ea)}addFieldInterfaces(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.dataSourceManager.addFieldInterfaces(e)}addFieldInterfaceGroups(e){return this.dataSourceManager.addFieldInterfaceGroups(e)}addFieldInterfaceComponentOption(e,t){return this.dataSourceManager.addFieldInterfaceComponentOption(e,t)}addFieldInterfaceOperator(e,t){return this.dataSourceManager.addFieldInterfaceOperator(e,t)}}var ed=l(5030),eu=l(3589),ec=l(2138);let ep=(0,s.createContext)(null);ep.displayName="ApplicationContext";class em extends es{constructor(e={}){super({router:{type:"memory",initialEntries:["/"]},...e}),this.apiMock=new __rspack_external_axios_mock_adapter_69845b81.default(this.apiClient.axios),this.ws=new eh(e.ws||{})}}class eh extends F{connect(){}close(){}send(){}on(e,t,l){this.eventBus.addEventListener(e,e=>t({data:JSON.stringify(e.detail)}),l)}emit(e,t){this.eventBus.dispatchEvent(new CustomEvent(e,{detail:t}))}off(e,t,l){this.eventBus.removeEventListener(e,t,l)}removeAllListeners(){}constructor(e){super(e),this.eventBus=new EventTarget}}function ef(e){return new em(e)}class eg{get pluginManager(){return this.app.pluginManager}get context(){return this.app.context}get flowEngine(){return this.app.flowEngine}get engine(){return this.app.flowEngine}get pm(){return this.app.pm}get router(){return this.app.router}get pluginSettingsManager(){return this.app.pluginSettingsManager}get schemaInitializerManager(){return this.app.schemaInitializerManager}get schemaSettingsManager(){return this.app.schemaSettingsManager}get dataSourceManager(){return this.app.dataSourceManager}get ai(){return this.app.aiManager}async afterAdd(){}async beforeLoad(){}async load(){}t(e){var t;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.app.i18n.t(e,{ns:null==(t=this.options)?void 0:t.packageName,...l})}constructor(e,t){this.options=e,this.app=t,this.options=e,this.app=t}}var ev=l(6625);let ey=()=>(0,m.n)().router;var e_=l(6553),eb=l(4088),ex=l(964),eM=l(5056),ew=l(1815);let eS={"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"};class ek{atX0SecondsPastTheMinuteGt20(){return this.data.atX0SecondsPastTheMinuteGt20}atX0MinutesPastTheHourGt20(){return this.data.atX0MinutesPastTheHourGt20}commaMonthX0ThroughMonthX1(){return this.data.commaMonthX0ThroughMonthX1}commaYearX0ThroughYearX1(){return this.data.commaYearX0ThroughYearX1}use24HourTimeFormatByDefault(){return this.data.use24HourTimeFormatByDefault}anErrorOccuredWhenGeneratingTheExpressionD(){return this.data.anErrorOccuredWhenGeneratingTheExpressionD}everyMinute(){return this.data.everyMinute}everyHour(){return this.data.everyHour}atSpace(){return this.data.atSpace}everyMinuteBetweenX0AndX1(){return this.data.everyMinuteBetweenX0AndX1}at(){return this.data.at}spaceAnd(){return this.data.spaceAnd}everySecond(){return this.data.everySecond}everyX0Seconds(){return this.data.everyX0Seconds}secondsX0ThroughX1PastTheMinute(){return this.data.secondsX0ThroughX1PastTheMinute}atX0SecondsPastTheMinute(){return this.data.atX0SecondsPastTheMinute}everyX0Minutes(){return this.data.everyX0Minutes}minutesX0ThroughX1PastTheHour(){return this.data.minutesX0ThroughX1PastTheHour}atX0MinutesPastTheHour(){return this.data.atX0MinutesPastTheHour}everyX0Hours(){return this.data.everyX0Hours}betweenX0AndX1(){return this.data.betweenX0AndX1}atX0(){return this.data.atX0}commaEveryDay(){return this.data.commaEveryDay}commaEveryX0DaysOfTheWeek(){return this.data.commaEveryX0DaysOfTheWeek}commaX0ThroughX1(){return this.data.commaX0ThroughX1}commaAndX0ThroughX1(){return this.data.commaAndX0ThroughX1}first(){return this.data.first}second(){return this.data.second}third(){return this.data.third}fourth(){return this.data.fourth}fifth(){return this.data.fifth}commaOnThe(){return this.data.commaOnThe}spaceX0OfTheMonth(){return this.data.spaceX0OfTheMonth}lastDay(){return this.data.lastDay}commaOnTheLastX0OfTheMonth(){return this.data.commaOnTheLastX0OfTheMonth}commaOnlyOnX0(){return this.data.commaOnlyOnX0}commaAndOnX0(){return this.data.commaAndOnX0}commaEveryX0Months(){return this.data.commaEveryX0Months}commaOnlyInX0(){return this.data.commaOnlyInX0}commaOnTheLastDayOfTheMonth(){return this.data.commaOnTheLastDayOfTheMonth}commaOnTheLastWeekdayOfTheMonth(){return this.data.commaOnTheLastWeekdayOfTheMonth}commaDaysBeforeTheLastDayOfTheMonth(){return this.data.commaDaysBeforeTheLastDayOfTheMonth}firstWeekday(){return this.data.firstWeekday}weekdayNearestDayX0(){return this.data.weekdayNearestDayX0}commaOnTheX0OfTheMonth(){return this.data.commaOnTheX0OfTheMonth}commaEveryX0Days(){return this.data.commaEveryX0Days}commaBetweenDayX0AndX1OfTheMonth(){return this.data.commaBetweenDayX0AndX1OfTheMonth}commaOnDayX0OfTheMonth(){return this.data.commaOnDayX0OfTheMonth}commaEveryHour(){return this.data.commaEveryHour}commaEveryX0Years(){return this.data.commaEveryX0Years}commaStartingX0(){return this.data.commaStartingX0}daysOfTheWeek(){return this.data.daysOfTheWeek}monthsOfTheYear(){return this.data.monthsOfTheYear}constructor(e){this.data=e}}let eF=e=>{(__rspack_external_cronstrue.default.default?__rspack_external_cronstrue.default.default:__rspack_external_cronstrue.default).initialize({load(t){t[null==e?void 0:e.lang]=new ek(null==e?void 0:e.cronstrue)}})};class eC extends eg{async afterAdd(){let e=this.app.apiClient,t=e.auth.locale;try{var o;let n=await e.request({url:"app:getLang",params:{locale:t},headers:{"X-Role":"anonymous"}}),i=(null==n||null==(o=n.data)?void 0:o.data)||{};this.engine.context.defineProperty("locales",{value:i}),this.app.use(h.App,{component:!1}),i.lang&&(e.auth.setLocale(i.lang),this.app.i18n.changeLanguage(i.lang)),Object.keys(i.resources||{}).forEach(e=>{this.app.i18n.addResources(i.lang,e,i.resources[e]||{})}),(0,__rspack_external__formily_validator_5f6f1884.setValidateLanguage)(i.lang),eF(i);let r=eS[i.lang]||"en";await l(8817)(`./${r}`),ew.default.locale(r),window.cronLocale=i.cron}catch(e){throw e}}}let eA=["/signin","/signup","/forgot-password","/reset-password"];function eP(e,t){if(!t)return e;let l=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=RegExp(`^${l.replace(/\/?$/,"")}(\\/|$)`);return e.replace(o,"/")||e}function eT(e,t){let l=eP(e,t);return eA.some(e=>l===e||l.startsWith(`${e}/`))}function ej(e,t){let l=eP(e,t);return"/admin"===l||l.startsWith("/admin/")}let eI=(0,s.createContext)(null);eI.displayName="CurrentUserContext";let eL=e=>{let{children:t}=e,l=(0,m.n)(),o=(0,p.useLocation)(),[i,r]=(0,s.useState)(!0),[a,d]=(0,s.useState)(null),u=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{let e=!0,t=l.router.getBasename(),n=eT(o.pathname,t)||l.router.isSkippedAuthCheckRoute(o.pathname),i=ej(o.pathname,t);if(n||!i){r(!1),d(null);return}return u.current||r(!0),d(null),(async()=>{try{await l.dataSourceManager.ensureLoaded(),u.current=!0,e&&r(!1)}catch(t){if(!e)return;r(!1),d(t instanceof Error?t:Error(String(t)))}})(),()=>{e=!1}},[l,o.pathname]),a)throw a;return i?l.renderComponent("AppSpin"):(0,n.jsx)(n.Fragment,{children:t})},eD=e=>{let{children:t}=e,l=(0,m.n)(),o=(0,p.useLocation)(),[i,a]=(0,s.useState)({loading:!0}),d=(0,s.useRef)(o.pathname);d.current=o.pathname;let u=(0,s.useRef)(o);return(u.current=o,(0,s.useEffect)(()=>{let e=!0,t=eT(d.current,l.router.getBasename())||l.router.isSkippedAuthCheckRoute(d.current),o=ej(d.current,l.router.getBasename());return t||!o?void a({loading:!1}):((async()=>{var t,o;try{let o=await l.apiClient.request({url:"/auth:check",skipNotify:!0,skipAuth:!0}),n=null==o||null==(t=o.data)?void 0:t.data;if((null==n?void 0:n.id)==null)return void(0,ec.BE)(l,(0,ec.vi)(l,u.current),{replace:!0});let i=(0,r.createCollectionContextMeta)(()=>{var e,t;return(null==(t=l.flowEngine.context.dataSourceManager)||null==(e=t.getDataSource("main"))?void 0:e.getCollection("users"))||null},l.flowEngine.translate("Current user"));i.sort=1e3,l.flowEngine.context.defineProperty("user",{value:n,resolveOnServer:!0,meta:i}),e&&a({data:null==o?void 0:o.data,loading:!1})}catch(t){if((null==t||null==(o=t.response)?void 0:o.status)===401||(null==t?void 0:t.status)===401)return void(0,ec.BE)(l,(0,ec.vi)(l,u.current),{replace:!0});throw e&&a({loading:!1}),t}})(),()=>{e=!1})},[l]),i.loading)?l.renderComponent("AppSpin"):(0,n.jsx)(eI.Provider,{value:i,children:t})},eY=()=>{var e,t;let l=(0,m.n)(),o=!!(null==l||null==(t=l.apiClient)||null==(e=t.auth)?void 0:e.token);return((0,s.useEffect)(()=>{o||(0,ec.BE)(l,(0,ec.uk)(l),{replace:!0})},[l,o]),o)?(0,n.jsx)(p.Navigate,{replace:!0,to:"/admin"}):l.renderComponent("AppSpin")};class eE extends eg{async afterAdd(){await this.addPlugins()}async load(){this.addComponents(),this.addRoutes(),this.app.use(eL),this.app.use(eD),this.app.flowEngine.registerModels({AdminLayoutModel:ex.pX,AdminLayoutMenuItemModel:ex.xF,AdminSettingsLayoutModel:eM.C_}),this.app.pluginSettingsManager.addMenuItem({key:"plugin-manager",title:this.app.i18n.t("Plugin manager"),icon:"ApiOutlined",aclSnippet:"pm",sort:-200}),this.app.pluginSettingsManager.addPageTabItem({menuKey:"plugin-manager",key:"index",title:this.app.i18n.t("Plugin manager"),componentLoader:()=>Promise.resolve().then(l.bind(l,6623)),aclSnippet:"pm",sort:-200}),this.app.pluginSettingsManager.addMenuItem({key:"system-settings",title:this.app.i18n.t("System settings"),icon:"SettingOutlined",aclSnippet:"pm.system-settings.system-settings",sort:-100}),this.app.pluginSettingsManager.addPageTabItem({menuKey:"system-settings",key:"index",title:this.app.i18n.t("System settings"),componentLoader:()=>Promise.resolve().then(l.bind(l,65)),aclSnippet:"pm.system-settings.system-settings",sort:-100})}addRoutes(){this.router.add("root",{path:"/",element:(0,n.jsx)(eY,{})}),this.router.add("not-found",{path:"*",Component:w.bM}),this.router.add("admin",{path:"/admin",componentLoader:()=>Promise.resolve().then(l.bind(l,3351))}),this.router.add("admin.settings",{path:"/admin/settings",componentLoader:()=>Promise.resolve().then(l.bind(l,9652))}),this.router.add("admin.settings.route-empty",{path:"*",Component:p.Outlet}),this.router.add("admin.page",{path:"/admin/:name",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))}),this.router.add("admin.page.tab",{path:"/admin/:name/tab/:tabUid",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))}),this.router.add("admin.page.view",{path:"/admin/:name/view/*",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))}),this.router.add("admin.page.tab.view",{path:"/admin/:name/tab/:tabUid/view/*",componentLoader:()=>Promise.resolve().then(l.bind(l,2600))})}addComponents(){}async addPlugins(){await this.app.pm.add(eb.s$$),await this.app.pm.add(eC,{name:"builtin-locale"})}}var eR=l(691),eN=l(5026);let eB=[{label:'{{t("contains")}}',value:"$includes",selected:!0},{label:'{{t("does not contain")}}',value:"$notIncludes"},{label:'{{t("is")}}',value:"$eq"},{label:'{{t("is not")}}',value:"$ne"},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eO=[{label:'{{t("is")}}',value:"$match",selected:!0,schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is not")}}',value:"$notMatch",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is any of")}}',value:"$anyOf",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$noneOf",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eH=[{label:"{{ t('is') }}",value:"$dateOn",selected:!0,schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is not') }}",value:"$dateNotOn",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is before') }}",value:"$dateBefore",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is after') }}",value:"$dateAfter",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is on or after') }}",value:"$dateNotBefore",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is on or before') }}",value:"$dateNotAfter",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!1}},onlyFilterAction:!0},{label:"{{ t('is between') }}",value:"$dateBetween",schema:{"x-component":"DateFilterDynamicComponent","x-component-props":{isRange:!0}}},{label:"{{ t('is empty') }}",value:"$empty",noValue:!0},{label:"{{ t('is not empty') }}",value:"$notEmpty",noValue:!0}],eq=[{label:'{{t("=")}}',value:"$eq",selected:!0},{label:'{{t("≠")}}',value:"$ne"},{label:'{{t(">")}}',value:"$gt"},{label:'{{t("≥")}}',value:"$gte"},{label:'{{t("<")}}',value:"$lt"},{label:'{{t("≤")}}',value:"$lte"},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],e$=[{label:'{{t("is")}}',value:"$eq",selected:!0},{label:'{{t("is not")}}',value:"$ne"},{label:'{{t("exists")}}',value:"$exists",noValue:!0},{label:'{{t("not exists")}}',value:"$notExists",noValue:!0}],eV=[{label:'{{t("is")}}',value:"$eq",selected:!0,schema:{"x-component":"Select","x-component-props":{mode:null}}},{label:'{{t("is not")}}',value:"$ne",schema:{"x-component":"Select","x-component-props":{mode:null}}},{label:'{{t("is any of")}}',value:"$in",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$notIn",schema:{"x-component":"Select","x-component-props":{mode:"tags"}}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],ez=[{label:'{{t("is")}}',value:"$eq",selected:!0},{label:'{{t("is not")}}',value:"$neq"},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eK=[{label:'{{t("Yes")}}',value:"$isTruly",selected:!0,noValue:!0,schema:{"x-component":"Select","x-component-props":{multiple:!1,options:[{label:'{{t("Yes")}}',value:!0},{label:'{{t("No")}}',value:!1}]}}},{label:'{{t("No")}}',value:"$isFalsy",noValue:!0,schema:{"x-component":"Select","x-component-props":{multiple:!1,options:[{label:'{{t("Yes")}}',value:!0},{label:'{{t("No")}}',value:!1}]}}},{label:"{{ t('is empty') }}",value:"$empty",noValue:!0},{label:"{{ t('is not empty') }}",value:"$notEmpty",noValue:!0}],eU=[{label:'{{t("is any of")}}',value:"$childIn",schema:{"x-component":"CollectionSelect","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$childNotIn",schema:{"x-component":"CollectionSelect","x-component-props":{mode:"tags"}}}],eG=[{label:'{{t("is")}}',value:"$eq",selected:!0,schema:{"x-component":"DataSourceCollectionCascader"}},{label:'{{t("is not")}}',value:"$ne",schema:{"x-component":"DataSourceCollectionCascader"}},{label:'{{t("is any of")}}',value:"$in",schema:{"x-component":"DataSourceCollectionCascader","x-component-props":{mode:"tags"}}},{label:'{{t("is none of")}}',value:"$notIn",schema:{"x-component":"DataSourceCollectionCascader","x-component-props":{mode:"tags"}}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0}],eW=[{label:'{{t("contains")}}',value:"$includes",selected:!0,schema:{type:"string","x-component":"Input"}},{label:'{{t("does not contain")}}',value:"$notIncludes",schema:{type:"string","x-component":"Input"}},{label:'{{t("is")}}',value:"$eq",schema:{type:"string","x-component":"Input"}},{label:'{{t("is not")}}',value:"$ne",schema:{type:"string","x-component":"Input"}},{label:'{{t("is empty")}}',value:"$empty",noValue:!0,schema:{type:"string","x-component":"Input"}},{label:'{{t("is not empty")}}',value:"$notEmpty",noValue:!0,schema:{type:"string","x-component":"Input"}}],eJ={type:"boolean","x-content":'{{t("Unique")}}',"x-decorator":"FormItem","x-component":"Checkbox","x-disabled":"{{ !createMainOnly || primaryKeyOnly }}","x-reactions":[{dependencies:["primaryKey"],when:"{{$deps[0]}}",fulfill:{state:{value:!1}}}]},eX={type:"boolean","x-content":'{{t("Primary")}}',"x-decorator":"FormItem","x-component":"Checkbox","x-disabled":"{{ !createMainOnly || primaryKeyOnly }}","x-reactions":[{dependencies:["unique"],when:"{{$deps[0]&&createMainOnly}}",fulfill:{state:{value:!1}}}]},eQ={type:"boolean",title:'{{t("Auto increment")}}',"x-content":'{{t("Auto increment")}}',"x-decorator":"FormItem","x-component":"Checkbox","x-disabled":"{{ !createMainOnly }}","x-reactions":[{dependencies:["primaryKey"],when:"{{$deps[0]&&createMainOnly}}",fulfill:{state:{value:!0}}}]},eZ={type:"boolean",title:'{{t("Default value")}}',"x-content":'{{t("Automatically generate default values")}}',"x-decorator":"FormItem","x-component":"Checkbox",default:!0},e0={type:"string",title:'{{t("Relationship type")}}',required:!0,"x-disabled":!0,"x-decorator":"FormItem","x-component":"Select",enum:[{label:"{{t('HasOne')}}",value:"hasOne"},{label:"{{t('HasMany')}}",value:"hasMany"},{label:"{{t('BelongsTo')}}",value:"belongsTo"},{label:"{{t('BelongsToMany')}}",value:"belongsToMany"}]},e1={onDelete:{type:"string",title:'{{t("ON DELETE")}}',required:!0,default:"SET NULL","x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Select",enum:[{label:"{{t('SET NULL')}}",value:"SET NULL"},{label:"{{t('RESTRICT')}}",value:"RESTRICT"},{label:"{{t('CASCADE')}}",value:"CASCADE"},{label:"{{t('NO ACTION')}}",value:"NO ACTION"}]}},e2={reverse:{type:"void","x-component":"div",properties:{autoCreateReverseField:{type:"boolean",default:!1,"x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Create inverse field in the target collection")}}',"x-reactions":[{target:"reverseField.type",when:"{{!!$self.value}}",fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0}}},{target:"reverseField.uiSchema.title",when:"{{!!$self.value}}",fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0}}},{target:"reverseField.name",when:"{{!!$self.value}}",fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0}}},e=>{let{reverseField:t}=e.form.values;e.value=!!(null==t?void 0:t.key),e.disabled=!!(null==t?void 0:t.key)}]},"reverseField.type":{...e0,title:'{{t("Inverse relationship type")}}'},"reverseField.uiSchema.title":{type:"string",title:'{{t("Inverse field display name")}}',default:"{{record.title}}",required:!0,"x-decorator":"FormItem","x-component":"Input","x-disabled":"{{ !showReverseFieldConfig }}"},"reverseField.name":{type:"string",title:'{{t("Inverse field name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input","x-validator":"uid","x-disabled":"{{ !showReverseFieldConfig }}",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}}}},e5={"uiSchema.x-component-props.picker":{type:"string",title:'{{t("Picker")}}',"x-decorator":"FormItem","x-component":"Radio.Group",default:"date",enum:[{label:'{{t("Date")}}',value:"date"},{label:'{{t("Month")}}',value:"month"},{label:'{{t("Quarter")}}',value:"quarter"},{label:'{{t("Year")}}',value:"year"}]},"uiSchema.x-component-props.dateFormat":{type:"string",title:'{{t("Date format")}}',"x-decorator":"FormItem","x-component":"ExpiresRadio","x-decorator-props":{},"x-component-props":{className:(0,eR.css)`
960
960
  .ant-radio-wrapper {
961
961
  display: flex;
962
962
  margin: 5px 0px;
963
963
  }
964
- `,defaultValue:"dddd",formats:["MMMM Do YYYY","YYYY-MM-DD","MM/DD/YY","YYYY/MM/DD","DD/MM/YYYY"]},default:"YYYY-MM-DD",enum:[{label:(0,eR.b)({format:"MMMM Do YYYY"}),value:"MMMM Do YYYY"},{label:(0,eR.b)({format:"YYYY-MM-DD"}),value:"YYYY-MM-DD"},{label:(0,eR.b)({format:"MM/DD/YY"}),value:"MM/DD/YY"},{label:(0,eR.b)({format:"YYYY/MM/DD"}),value:"YYYY/MM/DD"},{label:(0,eR.b)({format:"DD/MM/YYYY"}),value:"DD/MM/YYYY"},{label:"custom",value:"custom"}],"x-reactions":{dependencies:["uiSchema.x-component-props.picker"],fulfill:{state:{value:"{{ getPickerFormat($deps[0])}}",componentProps:{picker:"{{$deps[0]}}"}}}}},"uiSchema.x-component-props.showTime":{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Show time")}}',"x-reactions":[`{{(field) => {
964
+ `,defaultValue:"dddd",formats:["MMMM Do YYYY","YYYY-MM-DD","MM/DD/YY","YYYY/MM/DD","DD/MM/YYYY"]},default:"YYYY-MM-DD",enum:[{label:(0,eN.b)({format:"MMMM Do YYYY"}),value:"MMMM Do YYYY"},{label:(0,eN.b)({format:"YYYY-MM-DD"}),value:"YYYY-MM-DD"},{label:(0,eN.b)({format:"MM/DD/YY"}),value:"MM/DD/YY"},{label:(0,eN.b)({format:"YYYY/MM/DD"}),value:"YYYY/MM/DD"},{label:(0,eN.b)({format:"DD/MM/YYYY"}),value:"DD/MM/YYYY"},{label:"custom",value:"custom"}],"x-reactions":{dependencies:["uiSchema.x-component-props.picker"],fulfill:{state:{value:"{{ getPickerFormat($deps[0])}}",componentProps:{picker:"{{$deps[0]}}"}}}}},"uiSchema.x-component-props.showTime":{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Show time")}}',"x-reactions":[`{{(field) => {
965
965
  field.query('..[].timeFormat').take(f => {
966
966
  f.display = field.value ? 'visible' : 'none';
967
967
  f.value='HH:mm:ss'
968
968
  });
969
- }}}`,{dependencies:["uiSchema.x-component-props.picker"],when:'{{$deps[0]==="date"}}',fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0,value:!1}}}]},"uiSchema.x-component-props.timeFormat":{type:"string",title:'{{t("Time format")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"HH:mm:ss",enum:[{label:'{{t("12 hour")}}',value:"hh:mm:ss a"},{label:'{{t("24 hour")}}',value:"HH:mm:ss"}],"x-reactions":{dependencies:["uiSchema.x-component-props.showTime"],fulfill:{state:{hidden:"{{ !$deps[0] }}"}}}}},e5={"uiSchema.x-component-props.format":{type:"string",title:'{{t("Time format")}}',"x-component":"ExpiresRadio","x-decorator":"FormItem","x-component-props":{className:(0,eE.css)`
969
+ }}}`,{dependencies:["uiSchema.x-component-props.picker"],when:'{{$deps[0]==="date"}}',fulfill:{state:{hidden:!1}},otherwise:{state:{hidden:!0,value:!1}}}]},"uiSchema.x-component-props.timeFormat":{type:"string",title:'{{t("Time format")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"HH:mm:ss",enum:[{label:'{{t("12 hour")}}',value:"hh:mm:ss a"},{label:'{{t("24 hour")}}',value:"HH:mm:ss"}],"x-reactions":{dependencies:["uiSchema.x-component-props.showTime"],fulfill:{state:{hidden:"{{ !$deps[0] }}"}}}}},e4={"uiSchema.x-component-props.format":{type:"string",title:'{{t("Time format")}}',"x-component":"ExpiresRadio","x-decorator":"FormItem","x-component-props":{className:(0,eR.css)`
970
970
  color: red;
971
971
  .ant-radio-wrapper {
972
972
  display: flex;
973
973
  margin: 5px 0px;
974
974
  }
975
- `,defaultValue:"h:mm a",formats:["hh:mm:ss a","HH:mm:ss"],timeFormat:!0},default:"HH:mm:ss",enum:[{label:(0,eR.b)({format:"hh:mm:ss a"}),value:"hh:mm:ss a"},{label:(0,eR.b)({format:"HH:mm:ss"}),value:"HH:mm:ss"},{label:"custom",value:"custom"}]}},e4={type:"array",title:'{{t("Options")}}',"x-decorator":"FormItem","x-component":"ArrayTable","x-component-props":{pagination:{pageSize:1e3}},items:{type:"object",properties:{column1:{type:"void","x-component":"ArrayTable.Column","x-component-props":{width:50,title:"",align:"center"},properties:{sort:{type:"void","x-component":"ArrayTable.SortHandle"}}},column2:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Option value")}}'},properties:{value:{type:"string",required:!0,"x-decorator":"FormItem","x-component":"Input","x-reactions":e=>{e.initialValue||e.initialized||(e.initialValue=(0,L.uid)(),e.setValue((0,L.uid)()))}}}},column3:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Option label")}}'},properties:{label:{type:"string",required:!0,"x-decorator":"FormItem","x-component":"Input"}}},column4:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Color")}}'},properties:{color:{type:"string","x-decorator":"FormItem","x-component":"ColorSelect"}}},column5:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:"",dataIndex:"operations",fixed:"right"},properties:{item:{type:"void","x-component":"FormItem",properties:{remove:{type:"void","x-component":"ArrayTable.Remove"}}}}}}},properties:{add:{type:"void","x-component":"ArrayTable.Addition","x-component-props":{randomValue:!0},title:"{{t('Add option')}}"}}},e8={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input","x-validator":"uid",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},e3={type:"void",title:'{{ t("View record") }}',"x-component":"RecordPicker.Viewer","x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},e6={type:"string",title:'{{t("Options")}}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{multiple:!0},enum:"{{collections}}"};class e9{addComponentOption(e){if(!this.componentOptions){var t,l,o,n,i,r;this.componentOptions=[];let e=null==(l=this.default)||null==(t=l.uiSchema)?void 0:t["x-component"],s=null==(n=this.default)||null==(o=n.uiSchema)?void 0:o["x-component-props"];if(e){let t=(null==(r=this.default)||null==(i=r.uiSchema)?void 0:i.type)||"string",l=(0,_.tval)(e.startsWith("Input")?(0,a.capitalize)(t):e.split(".").pop());this.componentOptions=[{label:l,value:e,useProps:()=>s||{}}]}}this.componentOptions.push(e)}getConfigureFormProperties(e){var t;let l=this.hasDefaultValue?this.getDefaultValueProperty():{};this.availableValidationOptions.push("required");let o=null==e?void 0:e.view,n=(null==e?void 0:e.template)==="sql"||(null==e?void 0:e.sql),i=o||n||!this.validationType?{}:{validation:{title:'{{ t("Validation") }}',required:!1,"x-decorator":"FormItem","x-component":"FieldValidation","x-component-props":{type:this.validationType,availableValidationOptions:[...new Set(this.availableValidationOptions)],excludeValidationOptions:[...new Set(this.excludeValidationOptions)],isAssociation:this.isAssociation}}};return{...(0,a.cloneDeep)({...e8,...null==(t=this)?void 0:t.properties}),...l,...i}}getDefaultValueProperty(){var e,t,l,o;return{defaultValue:{...(0,a.cloneDeep)(null==(t=this)||null==(e=t.default)?void 0:e.uiSchema),...null==(o=this)||null==(l=o.properties)?void 0:l.uiSchema,required:!1,title:'{{ t("Default value") }}',"x-decorator":"FormItem","x-reactions":[{dependencies:["uiSchema.x-component-props.gmt","uiSchema.x-component-props.showTime","uiSchema.x-component-props.dateFormat","uiSchema.x-component-props.timeFormat","uiSchema.x-component-props.picker","uiSchema.x-component-props.format"],fulfill:{state:{componentProps:{gmt:"{{$deps[0]}}",showTime:"{{$deps[1]}}",dateFormat:"{{$deps[2]}}",timeFormat:"{{$deps[3]}}",picker:"{{$deps[4]}}",format:"{{$deps[5]}}"}}}},{dependencies:["uiSchema.x-component-props.picker"],fulfill:{state:{value:null}}},{dependencies:["primaryKey","unique","autoIncrement","defaultToCurrentTime"],when:"{{$deps[0]||$deps[1]||$deps[2]||$deps[3]}}",fulfill:{state:{hidden:!0,value:null}},otherwise:{state:{hidden:!1}}},{dependencies:["uiSchema.enum"],fulfill:{state:{dataSource:"{{$deps[0]}}"}}}]}}}addOperator(e){(0,a.set)(this,"filterable.operators",[...this.filterable.operators||[]]),this.filterable.operators.find(t=>t.value===e.value)||this.filterable.operators.push(e)}constructor(e){this.collectionFieldInterfaceManager=e,this.availableValidationOptions=[]}}class e7 extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="checkbox",this.type="object",this.group="choices",this.order=1,this.title='{{t("Checkbox")}}',this.default={type:"boolean",uiSchema:{type:"boolean","x-component":"Checkbox"}},this.availableTypes=["boolean","integer","bigInt","bit"],this.hasDefaultValue=!0,this.properties={...e8},this.filterable={operators:ez}}}class te extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="checkboxGroup",this.type="object",this.group="choices",this.order=5,this.title='{{t("Checkbox group")}}',this.default={interface:"checkboxGroup",type:"array",defaultValue:[],uiSchema:{type:"string","x-component":"Checkbox.Group"}},this.availableTypes=["array","json"],this.hasDefaultValue=!0,this.properties={...e8,"uiSchema.enum":e4},this.filterable={operators:eB}}}class tt extends e9{schemaInitialize(e,t){let{block:l}=t,o=e["x-component-props"]=e["x-component-props"]||{};o.style={...o.style||{},width:"100%"},["Table","Kanban"].includes(l)&&(o.ellipsis=!0)}constructor(...e){super(...e),this.name="collection",this.type="string",this.group="advanced",this.order=5,this.title='{{t("Collection selector")}}',this.description='{{t("Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"CollectionSelect"}},this.availableTypes=["string"],this.hasDefaultValue=!1,this.properties={...e8,"uiSchema.enum":e6},this.filterable={operators:eU}}}class tl extends e9{constructor(...e){super(...e),this.name="color",this.type="object",this.group="basic",this.order=10,this.title='{{t("Color")}}',this.default={type:"string",uiSchema:{type:"string","x-component":"ColorPicker"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.properties={...e8},this.filterable={operators:eN}}}class to extends e9{constructor(...e){super(...e),this.name="createdAt",this.type="object",this.group="systemInfo",this.order=1,this.title='{{t("Created at")}}',this.sortable=!0,this.default={type:"date",field:"createdAt",uiSchema:{type:"datetime",title:'{{t("Created at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},this.description='{{t("Store the creation time of each record")}}',this.availableTypes=[],this.properties={...e8,...e2},this.filterable={operators:eO},this.titleUsable=!0}}class tn extends e9{schemaInitialize(e,t){let{block:l}=t;e.properties={viewer:(0,a.cloneDeep)(e3)},["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="createdBy",this.type="object",this.group="systemInfo",this.order=3,this.title='{{t("Created by")}}',this.isAssociation=!0,this.default={type:"belongsTo",target:"users",foreignKey:"createdById",uiSchema:{type:"object",title:'{{t("Created by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0}},this.availableTypes=["belongsTo"],this.properties={...e8},this.filterable={nested:!0,children:[]},this.description='{{t("Store the creation user of each record")}}'}}class ti extends e9{constructor(...e){super(...e),this.name="datetime",this.type="object",this.group="datetime",this.order=1,this.title='{{t("Datetime (with time zone)")}}',this.sortable=!0,this.default={type:"date",defaultToCurrentTime:!1,onUpdateToCurrentTime:!1,timezone:!0,uiSchema:{type:"string","x-component":"DatePicker","x-component-props":{showTime:!1,utc:!0}}},this.availableTypes=["date","string","datetime","datetimeTz"],this.hasDefaultValue=!0,this.validationType="date",this.properties={...e8,...e2,defaultToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Default value to current time")}}'},onUpdateToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Automatically update timestamp on update")}}'},"uiSchema.x-component-props.gmt":{type:"boolean",title:'{{t("GMT")}}',"x-hidden":!0,"x-component":"Checkbox","x-content":'{{t("Use the same time zone (GMT) for all users")}}',"x-decorator":"FormItem",default:!1}},this.filterable={operators:eO},this.titleUsable=!0}}class tr extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="email",this.type="object",this.group="basic",this.order=4,this.title='{{t("Email")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Input","x-validator":"email"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.validationType="string",this.availableValidationOptions=["min","max","length","email","pattern"],this.properties={...e8,unique:eW},this.filterable={operators:eN},this.titleUsable=!0}}class ta extends e9{constructor(...e){super(...e),this.name="icon",this.type="object",this.group="basic",this.order=10,this.title='{{t("Icon")}}',this.default={type:"string",uiSchema:{type:"string","x-component":"IconPicker"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.properties={...e8}}}class ts extends e9{constructor(...e){super(...e),this.name="id",this.type="object",this.group="systemInfo",this.order=0,this.title='{{t("ID")}}',this.hidden=!0,this.sortable=!0,this.default={name:"id",type:"bigInt",autoIncrement:!0,primaryKey:!0,allowNull:!1,uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},this.availableTypes=["bigInt","integer"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,default:"ID","x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":!0,"x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},this.filterable={operators:eq},this.description='{{t("Primary key, unique identifier, self growth") }}',this.titleUsable=!0}}let td=e=>e,tu=e=>{if((0,L.isArr)(e)){for(let t=0;t<e.length;t++)if((0,L.isValid)(e[t]))return!1;return!0}if(null==e?void 0:e.getCurrentContent){var t;return!(null==(t=e.getCurrentContent())?void 0:t.hasText())}return(0,L.isEmpty)(e)};(0,__rspack_external__formily_validator_5f6f1884.registerValidateRules)({username:e=>/^[^@<>"'/]{1,50}$/.test(e)||td("Must be 1-50 characters in length (excluding @<>\"'/)"),required:(e,t)=>!1===t.required?"":("string"==typeof e&&(e=e.trim()),tu(e)?t.message:"")});class tc extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}validateSchema(e){return{max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
975
+ `,defaultValue:"h:mm a",formats:["hh:mm:ss a","HH:mm:ss"],timeFormat:!0},default:"HH:mm:ss",enum:[{label:(0,eN.b)({format:"hh:mm:ss a"}),value:"hh:mm:ss a"},{label:(0,eN.b)({format:"HH:mm:ss"}),value:"HH:mm:ss"},{label:"custom",value:"custom"}]}},e8={type:"array",title:'{{t("Options")}}',"x-decorator":"FormItem","x-component":"ArrayTable","x-component-props":{pagination:{pageSize:1e3}},items:{type:"object",properties:{column1:{type:"void","x-component":"ArrayTable.Column","x-component-props":{width:50,title:"",align:"center"},properties:{sort:{type:"void","x-component":"ArrayTable.SortHandle"}}},column2:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Option value")}}'},properties:{value:{type:"string",required:!0,"x-decorator":"FormItem","x-component":"Input","x-reactions":e=>{e.initialValue||e.initialized||(e.initialValue=(0,L.uid)(),e.setValue((0,L.uid)()))}}}},column3:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Option label")}}'},properties:{label:{type:"string",required:!0,"x-decorator":"FormItem","x-component":"Input"}}},column4:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Color")}}'},properties:{color:{type:"string","x-decorator":"FormItem","x-component":"ColorSelect"}}},column5:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:"",dataIndex:"operations",fixed:"right"},properties:{item:{type:"void","x-component":"FormItem",properties:{remove:{type:"void","x-component":"ArrayTable.Remove"}}}}}}},properties:{add:{type:"void","x-component":"ArrayTable.Addition","x-component-props":{randomValue:!0},title:"{{t('Add option')}}"}}},e3={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input","x-validator":"uid",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},e6={type:"void",title:'{{ t("View record") }}',"x-component":"RecordPicker.Viewer","x-component-props":{className:"nb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{type:"void",title:'{{t("Details")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:common:addBlock",properties:{}}}}}}}},e9={type:"string",title:'{{t("Options")}}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{multiple:!0},enum:"{{collections}}"};class e7{addComponentOption(e){if(!this.componentOptions){var t,l,o,n,i,r;this.componentOptions=[];let e=null==(l=this.default)||null==(t=l.uiSchema)?void 0:t["x-component"],s=null==(n=this.default)||null==(o=n.uiSchema)?void 0:o["x-component-props"];if(e){let t=(null==(r=this.default)||null==(i=r.uiSchema)?void 0:i.type)||"string",l=(0,_.tval)(e.startsWith("Input")?(0,a.capitalize)(t):e.split(".").pop());this.componentOptions=[{label:l,value:e,useProps:()=>s||{}}]}}this.componentOptions.push(e)}getConfigureFormProperties(e){var t;let l=this.hasDefaultValue?this.getDefaultValueProperty():{};this.availableValidationOptions.push("required");let o=null==e?void 0:e.view,n=(null==e?void 0:e.template)==="sql"||(null==e?void 0:e.sql),i=o||n||!this.validationType?{}:{validation:{title:'{{ t("Validation") }}',required:!1,"x-decorator":"FormItem","x-component":"FieldValidation","x-component-props":{type:this.validationType,availableValidationOptions:[...new Set(this.availableValidationOptions)],excludeValidationOptions:[...new Set(this.excludeValidationOptions)],isAssociation:this.isAssociation}}};return{...(0,a.cloneDeep)({...e3,...null==(t=this)?void 0:t.properties}),...l,...i}}getDefaultValueProperty(){var e,t,l,o;return{defaultValue:{...(0,a.cloneDeep)(null==(t=this)||null==(e=t.default)?void 0:e.uiSchema),...null==(o=this)||null==(l=o.properties)?void 0:l.uiSchema,required:!1,title:'{{ t("Default value") }}',"x-decorator":"FormItem","x-reactions":[{dependencies:["uiSchema.x-component-props.gmt","uiSchema.x-component-props.showTime","uiSchema.x-component-props.dateFormat","uiSchema.x-component-props.timeFormat","uiSchema.x-component-props.picker","uiSchema.x-component-props.format"],fulfill:{state:{componentProps:{gmt:"{{$deps[0]}}",showTime:"{{$deps[1]}}",dateFormat:"{{$deps[2]}}",timeFormat:"{{$deps[3]}}",picker:"{{$deps[4]}}",format:"{{$deps[5]}}"}}}},{dependencies:["uiSchema.x-component-props.picker"],fulfill:{state:{value:null}}},{dependencies:["primaryKey","unique","autoIncrement","defaultToCurrentTime"],when:"{{$deps[0]||$deps[1]||$deps[2]||$deps[3]}}",fulfill:{state:{hidden:!0,value:null}},otherwise:{state:{hidden:!1}}},{dependencies:["uiSchema.enum"],fulfill:{state:{dataSource:"{{$deps[0]}}"}}}]}}}addOperator(e){(0,a.set)(this,"filterable.operators",[...this.filterable.operators||[]]),this.filterable.operators.find(t=>t.value===e.value)||this.filterable.operators.push(e)}constructor(e){this.collectionFieldInterfaceManager=e,this.availableValidationOptions=[]}}class te extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="checkbox",this.type="object",this.group="choices",this.order=1,this.title='{{t("Checkbox")}}',this.default={type:"boolean",uiSchema:{type:"boolean","x-component":"Checkbox"}},this.availableTypes=["boolean","integer","bigInt","bit"],this.hasDefaultValue=!0,this.properties={...e3},this.filterable={operators:eK}}}class tt extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="checkboxGroup",this.type="object",this.group="choices",this.order=5,this.title='{{t("Checkbox group")}}',this.default={interface:"checkboxGroup",type:"array",defaultValue:[],uiSchema:{type:"string","x-component":"Checkbox.Group"}},this.availableTypes=["array","json"],this.hasDefaultValue=!0,this.properties={...e3,"uiSchema.enum":e8},this.filterable={operators:eO}}}class tl extends e7{schemaInitialize(e,t){let{block:l}=t,o=e["x-component-props"]=e["x-component-props"]||{};o.style={...o.style||{},width:"100%"},["Table","Kanban"].includes(l)&&(o.ellipsis=!0)}constructor(...e){super(...e),this.name="collection",this.type="string",this.group="advanced",this.order=5,this.title='{{t("Collection selector")}}',this.description='{{t("Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"CollectionSelect"}},this.availableTypes=["string"],this.hasDefaultValue=!1,this.properties={...e3,"uiSchema.enum":e9},this.filterable={operators:eG}}}class to extends e7{constructor(...e){super(...e),this.name="color",this.type="object",this.group="basic",this.order=10,this.title='{{t("Color")}}',this.default={type:"string",uiSchema:{type:"string","x-component":"ColorPicker"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.properties={...e3},this.filterable={operators:eB}}}class tn extends e7{constructor(...e){super(...e),this.name="createdAt",this.type="object",this.group="systemInfo",this.order=1,this.title='{{t("Created at")}}',this.sortable=!0,this.default={type:"date",field:"createdAt",uiSchema:{type:"datetime",title:'{{t("Created at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},this.description='{{t("Store the creation time of each record")}}',this.availableTypes=[],this.properties={...e3,...e5},this.filterable={operators:eH},this.titleUsable=!0}}class ti extends e7{schemaInitialize(e,t){let{block:l}=t;e.properties={viewer:(0,a.cloneDeep)(e6)},["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="createdBy",this.type="object",this.group="systemInfo",this.order=3,this.title='{{t("Created by")}}',this.isAssociation=!0,this.default={type:"belongsTo",target:"users",foreignKey:"createdById",uiSchema:{type:"object",title:'{{t("Created by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0}},this.availableTypes=["belongsTo"],this.properties={...e3},this.filterable={nested:!0,children:[]},this.description='{{t("Store the creation user of each record")}}'}}class tr extends e7{constructor(...e){super(...e),this.name="datetime",this.type="object",this.group="datetime",this.order=1,this.title='{{t("Datetime (with time zone)")}}',this.sortable=!0,this.default={type:"date",defaultToCurrentTime:!1,onUpdateToCurrentTime:!1,timezone:!0,uiSchema:{type:"string","x-component":"DatePicker","x-component-props":{showTime:!1,utc:!0}}},this.availableTypes=["date","string","datetime","datetimeTz"],this.hasDefaultValue=!0,this.validationType="date",this.properties={...e3,...e5,defaultToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Default value to current time")}}'},onUpdateToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Automatically update timestamp on update")}}'},"uiSchema.x-component-props.gmt":{type:"boolean",title:'{{t("GMT")}}',"x-hidden":!0,"x-component":"Checkbox","x-content":'{{t("Use the same time zone (GMT) for all users")}}',"x-decorator":"FormItem",default:!1}},this.filterable={operators:eH},this.titleUsable=!0}}class ta extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="email",this.type="object",this.group="basic",this.order=4,this.title='{{t("Email")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Input","x-validator":"email"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.validationType="string",this.availableValidationOptions=["min","max","length","email","pattern"],this.properties={...e3,unique:eJ},this.filterable={operators:eB},this.titleUsable=!0}}class ts extends e7{constructor(...e){super(...e),this.name="icon",this.type="object",this.group="basic",this.order=10,this.title='{{t("Icon")}}',this.default={type:"string",uiSchema:{type:"string","x-component":"IconPicker"}},this.availableTypes=["string"],this.hasDefaultValue=!0,this.properties={...e3}}}class td extends e7{constructor(...e){super(...e),this.name="id",this.type="object",this.group="systemInfo",this.order=0,this.title='{{t("ID")}}',this.hidden=!0,this.sortable=!0,this.default={name:"id",type:"bigInt",autoIncrement:!0,primaryKey:!0,allowNull:!1,uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},this.availableTypes=["bigInt","integer"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,default:"ID","x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":!0,"x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},this.filterable={operators:e$},this.description='{{t("Primary key, unique identifier, self growth") }}',this.titleUsable=!0}}let tu=e=>e,tc=e=>{if((0,L.isArr)(e)){for(let t=0;t<e.length;t++)if((0,L.isValid)(e[t]))return!1;return!0}if(null==e?void 0:e.getCurrentContent){var t;return!(null==(t=e.getCurrentContent())?void 0:t.hasText())}return(0,L.isEmpty)(e)};(0,__rspack_external__formily_validator_5f6f1884.registerValidateRules)({username:e=>/^[^@<>"'/]{1,50}$/.test(e)||tu("Must be 1-50 characters in length (excluding @<>\"'/)"),required:(e,t)=>!1===t.required?"":("string"==typeof e&&(e=e.trim()),tc(e)?t.message:"")});class tp extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}validateSchema(e){return{max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
976
976
  const targetValue = field.query('.min').value();
977
977
  field.selfErrors =
978
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Max length must greater than min length")}' : ''
979
- }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Min length must less than max length")}' : ''}}`}}}},len:{type:"number",title:'{{ t("Length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0}},format:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("url") }}',value:"url"},{label:'{{ t("email") }}',value:"email"},{label:'{{ t("ipv6") }}',value:"ipv6"},{label:'{{ t("ipv4") }}',value:"ipv4"},{label:'{{ t("number") }}',value:"number"},{label:'{{ t("integer") }}',value:"integer"},{label:'{{ t("idcard") }}',value:"idcard"},{label:'{{ t("qq") }}',value:"qq"},{label:'{{ t("phone") }}',value:"phone"},{label:'{{ t("money") }}',value:"money"},{label:'{{ t("zh") }}',value:"zh"},{label:'{{ t("date") }}',value:"date"},{label:'{{ t("zip") }}',value:"zip"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}}}constructor(...e){super(...e),this.name="input",this.type="object",this.group="basic",this.order=1,this.title='{{t("Single line text")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier")}}',this.sortable=!0,this.default={interface:"input",type:"string",uiSchema:{type:"string","x-component":"Input"}},this.availableTypes=["string","uid"],this.hasDefaultValue=!0,this.validationType="string",this.availableValidationOptions=["min","max","length","pattern"],this.properties={...e8,trim:{type:"boolean","x-content":'{{t("Automatically remove heading and tailing spaces")}}',"x-decorator":"FormItem","x-component":"Checkbox"},layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eJ,unique:eW}}},this.filterable={operators:eN},this.titleUsable=!0}}(0,j.registerValidateFormats)({odd:/^-?\d*[13579]$/,even:/^-?\d*[02468]$/});class tp extends e9{constructor(...e){super(...e),this.name="integer",this.type="object",this.group="basic",this.order=6,this.title='{{t("Integer")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier, self growth")}}',this.sortable=!0,this.default={type:"bigInt",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"},"x-validator":"integer"}},this.availableTypes=["bigInt","integer","sort","snowflakeId"],this.hasDefaultValue=!0,this.validationType="number",this.excludeValidationOptions=["precision"],this.properties={...e8,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eJ,unique:eW}},autoIncrement:eX},this.filterable={operators:eH},this.titleUsable=!0,this.validateSchema=e=>({maximum:{type:"number",title:'{{ t("Maximum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
978
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Max length must greater than min length")}' : ''
979
+ }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Min length must less than max length")}' : ''}}`}}}},len:{type:"number",title:'{{ t("Length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0}},format:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("url") }}',value:"url"},{label:'{{ t("email") }}',value:"email"},{label:'{{ t("ipv6") }}',value:"ipv6"},{label:'{{ t("ipv4") }}',value:"ipv4"},{label:'{{ t("number") }}',value:"number"},{label:'{{ t("integer") }}',value:"integer"},{label:'{{ t("idcard") }}',value:"idcard"},{label:'{{ t("qq") }}',value:"qq"},{label:'{{ t("phone") }}',value:"phone"},{label:'{{ t("money") }}',value:"money"},{label:'{{ t("zh") }}',value:"zh"},{label:'{{ t("date") }}',value:"date"},{label:'{{ t("zip") }}',value:"zip"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}}}constructor(...e){super(...e),this.name="input",this.type="object",this.group="basic",this.order=1,this.title='{{t("Single line text")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier")}}',this.sortable=!0,this.default={interface:"input",type:"string",uiSchema:{type:"string","x-component":"Input"}},this.availableTypes=["string","uid"],this.hasDefaultValue=!0,this.validationType="string",this.availableValidationOptions=["min","max","length","pattern"],this.properties={...e3,trim:{type:"boolean","x-content":'{{t("Automatically remove heading and tailing spaces")}}',"x-decorator":"FormItem","x-component":"Checkbox"},layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eX,unique:eJ}}},this.filterable={operators:eB},this.titleUsable=!0}}(0,j.registerValidateFormats)({odd:/^-?\d*[13579]$/,even:/^-?\d*[02468]$/});class tm extends e7{constructor(...e){super(...e),this.name="integer",this.type="object",this.group="basic",this.order=6,this.title='{{t("Integer")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier, self growth")}}',this.sortable=!0,this.default={type:"bigInt",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"},"x-validator":"integer"}},this.availableTypes=["bigInt","integer","sort","snowflakeId"],this.hasDefaultValue=!0,this.validationType="number",this.excludeValidationOptions=["precision"],this.properties={...e3,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eX,unique:eJ}},autoIncrement:eQ},this.filterable={operators:eq},this.titleUsable=!0,this.validateSchema=e=>({maximum:{type:"number",title:'{{ t("Maximum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
980
980
  const targetValue = field.query('.minimum').value();
981
981
  field.selfErrors =
982
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Maximum must greater than minimum")}' : ''
983
- }}}`},minimum:{type:"number",title:'{{ t("Minimum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".maximum"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Minimum must less than maximum")}' : ''}}`}}}},format:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("Odd") }}',value:"odd"},{label:'{{ t("Even") }}',value:"even"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}})}}var tm=l(6220);(0,j.registerValidateRules)({json(e){try{return JSON.parse(e),!0}catch(e){return{type:"error",message:e.message}}}});class th extends e9{constructor(...e){super(...e),this.name="json",this.type="object",this.group="advanced",this.order=4,this.title='{{t("JSON")}}',this.sortable=!1,this.default={type:"json",uiSchema:{type:"object","x-component":"Input.JSON","x-component-props":{autoSize:{minRows:5}},default:null}},this.availableTypes=["json","array","set","jsonb","text","circle","lineString","point","polygon"],this.hasDefaultValue=!0,this.properties={...e8,jsonb:{type:"boolean",title:"JSONB","x-decorator":e=>{let{children:t}=e;return(0,n.jsx)(tm.FormLayout,{children:(0,n.jsx)(tm.FormItem,{children:t})})},"x-component":"Checkbox","x-hidden":"{{ !isDialect('postgres') }}","x-disabled":"{{ disabledJSONB }}"}}}}class tf extends e9{schemaInitialize(e,t){let{readPretty:l,block:o,targetCollection:n}=t;(null==n?void 0:n.titleField)&&e["x-component-props"]&&(e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:n.filterTargetKey||"id"},e["x-component-props"].fieldNames.label=n.titleField),["Table","Kanban"].includes(o)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}constructor(...e){super(...e),this.name="linkTo",this.type="object",this.group="relation",this.order=1,this.title='{{t("Link to")}}',this.description='{{t("Link to description")}}',this.isAssociation=!0,this.default={type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}},reverseField:{interface:"linkTo",type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}}}},this.initialize=e=>{"belongsToMany"===e.type&&(e.through||(e.through=`t_${(0,L.uid)()}`),e.foreignKey||(e.foreignKey=`f_${(0,L.uid)()}`),e.otherKey||(e.otherKey=`f_${(0,L.uid)()}`),e.sourceKey||(e.sourceKey="id"),e.targetKey||(e.targetKey="id"))},this.properties={...e8,target:{type:"string",title:'{{t("Related collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"},"uiSchema.x-component-props.multiple":{type:"boolean","x-content":'{{t("Allow linking to multiple records")}}',"x-decorator":"FormItem","x-component":"Checkbox"}},this.filterable={nested:!0,children:[]}}}function tg(e){if(null==e?void 0:e.filterTargetKey){if(Array.isArray(e.filterTargetKey)){var t;return null==e||null==(t=e.filterTargetKey)?void 0:t[0]}return null==e?void 0:e.filterTargetKey}return(null==e?void 0:e.getPrimaryKey())||"id"}class tv extends e9{schemaInitialize(e,t){var l;let{field:o,readPretty:n,block:i,targetCollection:r}=t;e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tg(r)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==r?void 0:r.titleField)||tg(r),["Table","Kanban"].includes(i)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}initialize(e){"belongsToMany"===e.type&&(e.through||(e.through=`t_${(0,L.uid)()}`),e.foreignKey||(e.foreignKey=`f_${(0,L.uid)()}`),e.otherKey||(e.otherKey=`f_${(0,L.uid)()}`),e.sourceKey||(e.sourceKey="id"),e.targetKey||(e.targetKey="id"))}constructor(...e){super(...e),this.name="m2m",this.type="object",this.group="relation",this.order=6,this.title='{{t("Many to many")}}',this.description='{{t("Many to many description")}}',this.isAssociation=!0,this.default={type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}},reverseField:{interface:"m2m",type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}}}},this.availableTypes=["belongsToMany"],this.validationType="object",this.properties={...e8,type:eZ,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"string",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{through:{type:"string",title:'{{t("Through collection")}}',description:'{{ t("Generated automatically if left blank") }}',"x-decorator":"FormItem","x-disabled":"{{ !createOnly }}","x-component":"ThroughCollection","x-component-props":{allowClear:!0}}}},col13:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"SourceKey","x-disabled":"{{ !createOnly }}"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key 1")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly||override }}"}}},col23:{type:"void","x-component":"Grid.Col",properties:{}}}},row3:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{}},col22:{type:"void","x-component":"Grid.Col",properties:{otherKey:{type:"string",title:'{{t("Foreign key 2")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly||override }}"}}},col23:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',"x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}",description:"{{t('Field values must be unique.')}}"}}}}}}},...e1},this.filterable={nested:!0,children:[]}}}class ty extends e9{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,targetCollection:r}=t;e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tg(r)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==r?void 0:r.titleField)||tg(r),["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}constructor(...e){super(...e),this.name="m2o",this.type="object",this.group="relation",this.order=5,this.title='{{t("Many to one")}}',this.description='{{t("Many to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"o2m",type:"hasMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}}}},this.availableTypes=["belongsTo"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:eZ,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}},col22:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}"}}}}}}},...e0,...e1},this.filterable={nested:!0,children:[]}}}class t_ extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}validateSchema(e){return{max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
982
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Maximum must greater than minimum")}' : ''
983
+ }}}`},minimum:{type:"number",title:'{{ t("Minimum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".maximum"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Minimum must less than maximum")}' : ''}}`}}}},format:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("Odd") }}',value:"odd"},{label:'{{ t("Even") }}',value:"even"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}})}}var th=l(6220);(0,j.registerValidateRules)({json(e){try{return JSON.parse(e),!0}catch(e){return{type:"error",message:e.message}}}});class tf extends e7{constructor(...e){super(...e),this.name="json",this.type="object",this.group="advanced",this.order=4,this.title='{{t("JSON")}}',this.sortable=!1,this.default={type:"json",uiSchema:{type:"object","x-component":"Input.JSON","x-component-props":{autoSize:{minRows:5}},default:null}},this.availableTypes=["json","array","set","jsonb","text","circle","lineString","point","polygon"],this.hasDefaultValue=!0,this.properties={...e3,jsonb:{type:"boolean",title:"JSONB","x-decorator":e=>{let{children:t}=e;return(0,n.jsx)(th.FormLayout,{children:(0,n.jsx)(th.FormItem,{children:t})})},"x-component":"Checkbox","x-hidden":"{{ !isDialect('postgres') }}","x-disabled":"{{ disabledJSONB }}"}}}}class tg extends e7{schemaInitialize(e,t){let{readPretty:l,block:o,targetCollection:n}=t;(null==n?void 0:n.titleField)&&e["x-component-props"]&&(e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:n.filterTargetKey||"id"},e["x-component-props"].fieldNames.label=n.titleField),["Table","Kanban"].includes(o)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}constructor(...e){super(...e),this.name="linkTo",this.type="object",this.group="relation",this.order=1,this.title='{{t("Link to")}}',this.description='{{t("Link to description")}}',this.isAssociation=!0,this.default={type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}},reverseField:{interface:"linkTo",type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}}}},this.initialize=e=>{"belongsToMany"===e.type&&(e.through||(e.through=`t_${(0,L.uid)()}`),e.foreignKey||(e.foreignKey=`f_${(0,L.uid)()}`),e.otherKey||(e.otherKey=`f_${(0,L.uid)()}`),e.sourceKey||(e.sourceKey="id"),e.targetKey||(e.targetKey="id"))},this.properties={...e3,target:{type:"string",title:'{{t("Related collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"},"uiSchema.x-component-props.multiple":{type:"boolean","x-content":'{{t("Allow linking to multiple records")}}',"x-decorator":"FormItem","x-component":"Checkbox"}},this.filterable={nested:!0,children:[]}}}function tv(e){if(null==e?void 0:e.filterTargetKey){if(Array.isArray(e.filterTargetKey)){var t;return null==e||null==(t=e.filterTargetKey)?void 0:t[0]}return null==e?void 0:e.filterTargetKey}return(null==e?void 0:e.getPrimaryKey())||"id"}class ty extends e7{schemaInitialize(e,t){var l;let{field:o,readPretty:n,block:i,targetCollection:r}=t;e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tv(r)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==r?void 0:r.titleField)||tv(r),["Table","Kanban"].includes(i)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}initialize(e){"belongsToMany"===e.type&&(e.through||(e.through=`t_${(0,L.uid)()}`),e.foreignKey||(e.foreignKey=`f_${(0,L.uid)()}`),e.otherKey||(e.otherKey=`f_${(0,L.uid)()}`),e.sourceKey||(e.sourceKey="id"),e.targetKey||(e.targetKey="id"))}constructor(...e){super(...e),this.name="m2m",this.type="object",this.group="relation",this.order=6,this.title='{{t("Many to many")}}',this.description='{{t("Many to many description")}}',this.isAssociation=!0,this.default={type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}},reverseField:{interface:"m2m",type:"belongsToMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}}}},this.availableTypes=["belongsToMany"],this.validationType="object",this.properties={...e3,type:e0,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"string",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{through:{type:"string",title:'{{t("Through collection")}}',description:'{{ t("Generated automatically if left blank") }}',"x-decorator":"FormItem","x-disabled":"{{ !createOnly }}","x-component":"ThroughCollection","x-component-props":{allowClear:!0}}}},col13:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"SourceKey","x-disabled":"{{ !createOnly }}"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key 1")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly||override }}"}}},col23:{type:"void","x-component":"Grid.Col",properties:{}}}},row3:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{}},col22:{type:"void","x-component":"Grid.Col",properties:{otherKey:{type:"string",title:'{{t("Foreign key 2")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly||override }}"}}},col23:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',"x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}",description:"{{t('Field values must be unique.')}}"}}}}}}},...e2},this.filterable={nested:!0,children:[]}}}class t_ extends e7{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,targetCollection:r}=t;e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tv(r)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==r?void 0:r.titleField)||tv(r),["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}constructor(...e){super(...e),this.name="m2o",this.type="object",this.group="relation",this.order=5,this.title='{{t("Many to one")}}',this.description='{{t("Many to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"o2m",type:"hasMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}}}},this.availableTypes=["belongsTo"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:e0,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}},col22:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}"}}}}}}},...e1,...e2},this.filterable={nested:!0,children:[]}}}class tb extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}validateSchema(e){return{max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
984
984
  const targetValue = field.query('.min').value();
985
985
  field.selfErrors =
986
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Max length must greater than min length")}' : ''
987
- }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Min length must less than max length")}' : ''}}`}}}}}}constructor(...e){super(...e),this.name="markdown",this.type="object",this.title='{{t("Markdown")}}',this.group="media",this.default={type:"text",uiSchema:{type:"string","x-component":"Markdown"}},this.availableTypes=["text","json","string"],this.hasDefaultValue=!0,this.properties={...e8},this.filterable={operators:eG}}}class tb extends e9{schemaInitialize(e,t){let{block:l}=t,o=e["x-component-props"]=e["x-component-props"]||{};o.style={...o.style||{},width:"100%"},["Table","Kanban"].includes(l)&&(o.ellipsis=!0)}constructor(...e){super(...e),this.name="multipleSelect",this.type="object",this.group="choices",this.order=3,this.title='{{t("Multiple select")}}',this.default={type:"array",defaultValue:[],uiSchema:{type:"array","x-component":"Select","x-component-props":{mode:"multiple"},enum:[]}},this.availableTypes=["array","json"],this.hasDefaultValue=!0,this.properties={...e8,"uiSchema.enum":e4},this.filterable={operators:eB}}}class tx extends e9{validateSchema(e){return{maximum:{type:"number",title:'{{ t("Maximum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-reactions":`{{(field) => {
986
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Max length must greater than min length")}' : ''
987
+ }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Min length must less than max length")}' : ''}}`}}}}}}constructor(...e){super(...e),this.name="markdown",this.type="object",this.title='{{t("Markdown")}}',this.group="media",this.default={type:"text",uiSchema:{type:"string","x-component":"Markdown"}},this.availableTypes=["text","json","string"],this.hasDefaultValue=!0,this.properties={...e3},this.filterable={operators:eW}}}class tx extends e7{schemaInitialize(e,t){let{block:l}=t,o=e["x-component-props"]=e["x-component-props"]||{};o.style={...o.style||{},width:"100%"},["Table","Kanban"].includes(l)&&(o.ellipsis=!0)}constructor(...e){super(...e),this.name="multipleSelect",this.type="object",this.group="choices",this.order=3,this.title='{{t("Multiple select")}}',this.default={type:"array",defaultValue:[],uiSchema:{type:"array","x-component":"Select","x-component-props":{mode:"multiple"},enum:[]}},this.availableTypes=["array","json"],this.hasDefaultValue=!0,this.properties={...e3,"uiSchema.enum":e8},this.filterable={operators:eO}}}class tM extends e7{validateSchema(e){return{maximum:{type:"number",title:'{{ t("Maximum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-reactions":`{{(field) => {
988
988
  const targetValue = field.query('.minimum').value();
989
989
  field.selfErrors =
990
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Maximum must greater than minimum")}' : ''
991
- }}}`},minimum:{type:"number",title:'{{ t("Minimum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-reactions":{dependencies:[".maximum"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Minimum must less than maximum")}' : ''}}`}}}},format:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("Integer") }}',value:"integer"},{label:'{{ t("Odd") }}',value:"odd"},{label:'{{ t("Even") }}',value:"even"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}}}constructor(...e){super(...e),this.name="number",this.type="object",this.group="basic",this.order=7,this.title='{{t("Number")}}',this.sortable=!0,this.default={type:"double",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"}}},this.availableTypes=["double","float","decimal"],this.hasDefaultValue=!0,this.validationType="number",this.excludeValidationOptions=["integer"],this.properties={type:{type:"string",title:'{{t("Data type")}}',"x-component":"Select","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}",default:"double",enum:[{label:'{{t("Double")}}',value:"double"},{label:'{{t("Float")}}',value:"float"},{label:'{{t("Decimal")}}',value:"decimal"}]},...e8,unique:eW,"uiSchema.x-component-props.step":{type:"string",title:'{{t("Precision(UI)")}}',"x-component":"Select","x-decorator":"FormItem",default:"1",enum:[{value:"1",label:"1"},{value:"0.1",label:"1.0"},{value:"0.01",label:"1.00"},{value:"0.001",label:"1.000"},{value:"0.0001",label:"1.0000"},{value:"0.00001",label:"1.00000"},{value:"0.000001",label:"1.000000"},{value:"0.0000001",label:"1.0000000"},{value:"0.00000001",label:"1.00000000"}]},precision:{type:"string",title:'{{t("Precision")}}',"x-component":"InputNumber","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}",default:10,"x-reactions":{dependencies:["type"],fulfill:{state:{visible:'{{$deps[0] === "decimal"}}'}}}},scale:{type:"string",title:'{{t("Scale")}}',"x-component":"InputNumber","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}",default:2,"x-reactions":{dependencies:["type"],fulfill:{state:{visible:'{{$deps[0] === "decimal"}}'}}}}},this.filterable={operators:eH},this.titleUsable=!0}}class tM extends e9{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,targetCollection:r}=t;e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tg(r)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==r?void 0:r.titleField)||tg(r),["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}constructor(...e){super(...e),this.name="o2m",this.type="object",this.group="relation",this.order=4,this.title='{{t("One to many")}}',this.description='{{t("One to many description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"hasMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}},reverseField:{interface:"m2o",type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["hasMany"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:eZ,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection"}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}",default:"id",enum:[{label:"ID",value:"id"}],"x-decorator":"FormItem","x-component":"SourceKey"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}}}},row3:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{}},col22:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',"x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}",description:"{{t('Field values must be unique.')}}"}}}}}}},...e0,...e1},this.filterable={nested:!0,children:[]}}}class tw extends e9{schemaInitialize(e,t){let{field:l,block:o,readPretty:n,action:i,targetCollection:r}=t;["Table","Kanban"].includes(o)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small"),e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tg(r)},e["x-component-props"].fieldNames.label=(null==r?void 0:r.titleField)||tg(r)}constructor(...e){super(...e),this.name="o2o",this.type="object",this.group="relation",this.order=3,this.title='{{t("One to one")}}',this.description='{{t("One to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"hasOne",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"obo",type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["hasOne"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:eZ,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"SourceKey"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}}}}}},"reverseField.name":{type:"string",title:'{{t("Inverse field name")}}',"x-hidden":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},this.filterable={nested:!0,children:[]}}}class tS extends e9{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,action:r,targetCollection:a}=t;["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small"),e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tg(a)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==a?void 0:a.titleField)||tg(a)}constructor(...e){super(...e),this.name="oho",this.type="object",this.group="relation",this.order=3,this.title='{{t("One to one (has one)")}}',this.description='{{t("One to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"hasOne",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"obo",type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["hasOne"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:eZ,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"SourceKey"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}}}}}},...e0,...e1},this.filterable={nested:!0,children:[]}}}class tk extends e9{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,action:r,targetCollection:a}=t;["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small"),e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tg(a)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==a?void 0:a.titleField)||tg(a)}constructor(...e){super(...e),this.name="obo",this.type="object",this.group="relation",this.order=3,this.title='{{t("One to one (belongs to)")}}',this.description='{{t("One to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"oho",type:"hasOne",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["belongsTo"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:eZ,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}},col22:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}"}}}}}}},...e0,...e1},this.filterable={nested:!0,children:[]}}}class tF extends e9{constructor(...e){super(...e),this.name="password",this.type="object",this.group="basic",this.order=9,this.title='{{t("Password")}}',this.default={type:"password",hidden:!0,uiSchema:{type:"string","x-component":"Password"}},this.availableTypes=["password","string"],this.hasDefaultValue=!0,this.validationType="string",this.availableValidationOptions=["min","max","length","pattern"],this.properties={...e8,unique:eW},this.validateSchema=e=>({max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
990
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Maximum must greater than minimum")}' : ''
991
+ }}}`},minimum:{type:"number",title:'{{ t("Minimum") }}',"x-decorator":"FormItem","x-component":"InputNumber","x-reactions":{dependencies:[".maximum"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Minimum must less than maximum")}' : ''}}`}}}},format:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("Integer") }}',value:"integer"},{label:'{{ t("Odd") }}',value:"odd"},{label:'{{ t("Even") }}',value:"even"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}}}constructor(...e){super(...e),this.name="number",this.type="object",this.group="basic",this.order=7,this.title='{{t("Number")}}',this.sortable=!0,this.default={type:"double",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"}}},this.availableTypes=["double","float","decimal"],this.hasDefaultValue=!0,this.validationType="number",this.excludeValidationOptions=["integer"],this.properties={type:{type:"string",title:'{{t("Data type")}}',"x-component":"Select","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}",default:"double",enum:[{label:'{{t("Double")}}',value:"double"},{label:'{{t("Float")}}',value:"float"},{label:'{{t("Decimal")}}',value:"decimal"}]},...e3,unique:eJ,"uiSchema.x-component-props.step":{type:"string",title:'{{t("Precision(UI)")}}',"x-component":"Select","x-decorator":"FormItem",default:"1",enum:[{value:"1",label:"1"},{value:"0.1",label:"1.0"},{value:"0.01",label:"1.00"},{value:"0.001",label:"1.000"},{value:"0.0001",label:"1.0000"},{value:"0.00001",label:"1.00000"},{value:"0.000001",label:"1.000000"},{value:"0.0000001",label:"1.0000000"},{value:"0.00000001",label:"1.00000000"}]},precision:{type:"string",title:'{{t("Precision")}}',"x-component":"InputNumber","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}",default:10,"x-reactions":{dependencies:["type"],fulfill:{state:{visible:'{{$deps[0] === "decimal"}}'}}}},scale:{type:"string",title:'{{t("Scale")}}',"x-component":"InputNumber","x-decorator":"FormItem","x-disabled":"{{ !createOnly }}",default:2,"x-reactions":{dependencies:["type"],fulfill:{state:{visible:'{{$deps[0] === "decimal"}}'}}}}},this.filterable={operators:eq},this.titleUsable=!0}}class tw extends e7{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,targetCollection:r}=t;e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tv(r)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==r?void 0:r.titleField)||tv(r),["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small")}constructor(...e){super(...e),this.name="o2m",this.type="object",this.group="relation",this.order=4,this.title='{{t("One to many")}}',this.description='{{t("One to many description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"hasMany",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!0}},reverseField:{interface:"m2o",type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["hasMany"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:e0,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection"}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}",default:"id",enum:[{label:"ID",value:"id"}],"x-decorator":"FormItem","x-component":"SourceKey"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}}}},row3:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{}},col22:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',"x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}",description:"{{t('Field values must be unique.')}}"}}}}}}},...e1,...e2},this.filterable={nested:!0,children:[]}}}class tS extends e7{schemaInitialize(e,t){let{field:l,block:o,readPretty:n,action:i,targetCollection:r}=t;["Table","Kanban"].includes(o)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small"),e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tv(r)},e["x-component-props"].fieldNames.label=(null==r?void 0:r.titleField)||tv(r)}constructor(...e){super(...e),this.name="o2o",this.type="object",this.group="relation",this.order=3,this.title='{{t("One to one")}}',this.description='{{t("One to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"hasOne",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"obo",type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["hasOne"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:e0,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"SourceKey"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}}}}}},"reverseField.name":{type:"string",title:'{{t("Inverse field name")}}',"x-hidden":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"}},this.filterable={nested:!0,children:[]}}}class tk extends e7{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,action:r,targetCollection:a}=t;["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small"),e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tv(a)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==a?void 0:a.titleField)||tv(a)}constructor(...e){super(...e),this.name="oho",this.type="object",this.group="relation",this.order=3,this.title='{{t("One to one (has one)")}}',this.description='{{t("One to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"hasOne",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"obo",type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["hasOne"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:e0,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{sourceKey:{type:"string",title:'{{t("Source key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"SourceKey"}}},col22:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}}}}}},...e1,...e2},this.filterable={nested:!0,children:[]}}}class tF extends e7{schemaInitialize(e,t){var l;let{field:o,block:n,readPretty:i,action:r,targetCollection:a}=t;["Table","Kanban"].includes(n)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0,e["x-component-props"].size="small"),e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=e["x-component-props"].fieldNames||{value:tv(a)},e["x-component-props"].fieldNames.label=(null==(l=e["x-component-props"].fieldNames)?void 0:l.label)||(null==a?void 0:a.titleField)||tv(a)}constructor(...e){super(...e),this.name="obo",this.type="object",this.group="relation",this.order=3,this.title='{{t("One to one (belongs to)")}}',this.description='{{t("One to one description")}}',this.isAssociation=!0,this.validationType="object",this.default={type:"belongsTo",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}},reverseField:{interface:"oho",type:"hasOne",uiSchema:{"x-component":"AssociationField","x-component-props":{multiple:!1}}}},this.availableTypes=["belongsTo"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":"{{ !createOnly }}","x-decorator":"FormItem","x-component":"Input",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},type:e0,grid:{type:"void","x-component":"Grid",properties:{row1:{type:"void","x-component":"Grid.Row",properties:{col11:{type:"void","x-component":"Grid.Col",properties:{source:{type:"void",title:'{{t("Source collection")}}',"x-decorator":"FormItem","x-component":"SourceCollection","x-disabled":!0}}},col12:{type:"void","x-component":"Grid.Col",properties:{target:{type:"string",title:'{{t("Target collection")}}',required:!0,"x-reactions":["{{useAsyncDataSource(loadCollections)}}"],"x-decorator":"FormItem","x-component":"Select","x-disabled":"{{ !createOnly }}"}}}}},row2:{type:"void","x-component":"Grid.Row",properties:{col21:{type:"void","x-component":"Grid.Col",properties:{foreignKey:{type:"string",title:'{{t("Foreign key")}}',required:!0,default:'{{ useNewId("f_") }}',description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}","x-decorator":"FormItem","x-component":"ForeignKey","x-validator":"uid","x-disabled":"{{ !createOnly }}"}}},col22:{type:"void","x-component":"Grid.Col",properties:{targetKey:{type:"string",title:'{{t("Target key")}}',description:"{{t('Field values must be unique.')}}","x-decorator":"FormItem","x-component":"TargetKey","x-disabled":"{{ !createOnly }}"}}}}}}},...e1,...e2},this.filterable={nested:!0,children:[]}}}class tC extends e7{constructor(...e){super(...e),this.name="password",this.type="object",this.group="basic",this.order=9,this.title='{{t("Password")}}',this.default={type:"password",hidden:!0,uiSchema:{type:"string","x-component":"Password"}},this.availableTypes=["password","string"],this.hasDefaultValue=!0,this.validationType="string",this.availableValidationOptions=["min","max","length","pattern"],this.properties={...e3,unique:eJ},this.validateSchema=e=>({max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
992
992
  const targetValue = field.query('.min').value();
993
993
  field.selfErrors =
994
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Max length must greater than min length")}' : ''
995
- }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Min length must less than max length")}' : ''}}`}}}}}),this.filterable={operators:eN}}}(0,j.registerValidateRules)({percentMode(e,t){let{maxValue:l,minValue:o}=t;return l&&e>l?{type:"error",message:`${td("The field value cannot be greater than ")}${100*l}%`}:!o||!(e<o)||{type:"error",message:`${td("The field value cannot be less than ")}${100*o}%`}},percentFormats(e,t){let{percentFormat:l}=t;return!e||"Integer"!==l||!1!==/^-?[1-9]\d*$/.test((100*e).toString())||{type:"error",message:`${td("The field value is not an integer number")}`}}});class tC extends e9{schemaInitialize(e,t){let{field:l,block:o,readPretty:n,action:i}=t,r=e["x-component-props"]=e["x-component-props"]||{};e["x-component-props"].style={...r.style||{},width:"100%"}}constructor(...e){super(...e),this.name="percent",this.type="object",this.group="basic",this.order=8,this.title='{{t("Percent")}}',this.sortable=!0,this.default={type:"float",uiSchema:{type:"string","x-component":"Percent","x-component-props":{stringMode:!0,step:"1",addonAfter:"%"}}},this.availableTypes=["float","double","decimal"],this.hasDefaultValue=!0,this.validationType="number",this.excludeValidationOptions=["integer"],this.properties={...e8,unique:eW,"uiSchema.x-component-props.step":{type:"string",title:'{{t("Precision")}}',"x-component":"Select","x-decorator":"FormItem",default:"1",enum:[{value:"1",label:"1%"},{value:"0.1",label:"1.0%"},{value:"0.01",label:"1.00%"},{value:"0.001",label:"1.000%"},{value:"0.0001",label:"1.0000%"},{value:"0.00001",label:"1.00000%"}]}},this.filterable={operators:eH},this.titleUsable=!0,this.validateSchema=e=>({maxValue:{type:"number",title:'{{ t("Maximum") }}',"x-decorator":"FormItem","x-component":"Percent","x-component-props":{addonAfter:"%"},"x-reactions":`{{(field) => {
994
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Max length must greater than min length")}' : ''
995
+ }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Min length must less than max length")}' : ''}}`}}}}}),this.filterable={operators:eB}}}(0,j.registerValidateRules)({percentMode(e,t){let{maxValue:l,minValue:o}=t;return l&&e>l?{type:"error",message:`${tu("The field value cannot be greater than ")}${100*l}%`}:!o||!(e<o)||{type:"error",message:`${tu("The field value cannot be less than ")}${100*o}%`}},percentFormats(e,t){let{percentFormat:l}=t;return!e||"Integer"!==l||!1!==/^-?[1-9]\d*$/.test((100*e).toString())||{type:"error",message:`${tu("The field value is not an integer number")}`}}});class tA extends e7{schemaInitialize(e,t){let{field:l,block:o,readPretty:n,action:i}=t,r=e["x-component-props"]=e["x-component-props"]||{};e["x-component-props"].style={...r.style||{},width:"100%"}}constructor(...e){super(...e),this.name="percent",this.type="object",this.group="basic",this.order=8,this.title='{{t("Percent")}}',this.sortable=!0,this.default={type:"float",uiSchema:{type:"string","x-component":"Percent","x-component-props":{stringMode:!0,step:"1",addonAfter:"%"}}},this.availableTypes=["float","double","decimal"],this.hasDefaultValue=!0,this.validationType="number",this.excludeValidationOptions=["integer"],this.properties={...e3,unique:eJ,"uiSchema.x-component-props.step":{type:"string",title:'{{t("Precision")}}',"x-component":"Select","x-decorator":"FormItem",default:"1",enum:[{value:"1",label:"1%"},{value:"0.1",label:"1.0%"},{value:"0.01",label:"1.00%"},{value:"0.001",label:"1.000%"},{value:"0.0001",label:"1.0000%"},{value:"0.00001",label:"1.00000%"}]}},this.filterable={operators:eq},this.titleUsable=!0,this.validateSchema=e=>({maxValue:{type:"number",title:'{{ t("Maximum") }}',"x-decorator":"FormItem","x-component":"Percent","x-component-props":{addonAfter:"%"},"x-reactions":`{{(field) => {
996
996
  const targetValue = field.query('.minimum').value();
997
997
  field.selfErrors =
998
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Maximum must greater than minimum")}' : ''
999
- }}}`},minValue:{type:"number",title:'{{ t("Minimum") }}',"x-decorator":"FormItem","x-component":"Percent","x-component-props":{addonAfter:"%"},"x-reactions":{dependencies:[".maximum"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Minimum must less than maximum")}' : ''}}`}}}},percentFormat:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("Integer") }}',value:"Integer"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}})}}class tA extends e9{constructor(...e){super(...e),this.name="phone",this.type="object",this.group="basic",this.order=3,this.title='{{t("Phone")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Input","x-component-props":{type:"tel"}}},this.availableTypes=["string"],this.validationType="string",this.availableValidationOptions=["min","max","length","pattern"],this.hasDefaultValue=!0,this.properties={...e8,unique:eW},this.filterable={operators:eN},this.titleUsable=!0}}class tP extends e9{constructor(...e){super(...e),this.name="radioGroup",this.type="object",this.group="choices",this.order=4,this.title='{{t("Radio group")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Radio.Group"}},this.availableTypes=["string","integer","boolean","integer"],this.hasDefaultValue=!0,this.properties={...e8,"uiSchema.enum":e4},this.filterable={operators:e$},this.titleUsable=!0}}class tT extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="richText",this.type="object",this.group="media",this.order=2,this.title='{{t("Rich Text")}}',this.default={interface:"richText",type:"text",uiSchema:{type:"string","x-component":"RichText"}},this.availableTypes=["text","json","string"],this.hasDefaultValue=!0,this.properties={...e8},this.validateSchema=e=>({max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
998
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Maximum must greater than minimum")}' : ''
999
+ }}}`},minValue:{type:"number",title:'{{ t("Minimum") }}',"x-decorator":"FormItem","x-component":"Percent","x-component-props":{addonAfter:"%"},"x-reactions":{dependencies:[".maximum"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Minimum must less than maximum")}' : ''}}`}}}},percentFormat:{type:"string",title:'{{ t("Format") }}',"x-decorator":"FormItem","x-component":"Select","x-component-props":{allowClear:!0},enum:[{label:'{{ t("Integer") }}',value:"Integer"}]},pattern:{type:"string",title:'{{ t("Regular expression") }}',"x-decorator":"FormItem","x-component":"Input","x-component-props":{prefix:"/",suffix:"/"}}})}}class tP extends e7{constructor(...e){super(...e),this.name="phone",this.type="object",this.group="basic",this.order=3,this.title='{{t("Phone")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Input","x-component-props":{type:"tel"}}},this.availableTypes=["string"],this.validationType="string",this.availableValidationOptions=["min","max","length","pattern"],this.hasDefaultValue=!0,this.properties={...e3,unique:eJ},this.filterable={operators:eB},this.titleUsable=!0}}class tT extends e7{constructor(...e){super(...e),this.name="radioGroup",this.type="object",this.group="choices",this.order=4,this.title='{{t("Radio group")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Radio.Group"}},this.availableTypes=["string","integer","boolean","integer"],this.hasDefaultValue=!0,this.properties={...e3,"uiSchema.enum":e8},this.filterable={operators:eV},this.titleUsable=!0}}class tj extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="richText",this.type="object",this.group="media",this.order=2,this.title='{{t("Rich Text")}}',this.default={interface:"richText",type:"text",uiSchema:{type:"string","x-component":"RichText"}},this.availableTypes=["text","json","string"],this.hasDefaultValue=!0,this.properties={...e3},this.validateSchema=e=>({max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
1000
1000
  const targetValue = field.query('.min').value();
1001
1001
  field.selfErrors =
1002
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Max length must greater than min length")}' : ''
1003
- }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Min length must less than max length")}' : ''}}`}}}}}),this.filterable={operators:eG}}}class tj extends e9{schemaInitialize(e,t){let{block:l}=t,o=e["x-component-props"]=e["x-component-props"]||{};o.style={...o.style||{},width:"100%"},["Table","Kanban"].includes(l)&&(o.ellipsis=!0)}constructor(...e){super(...e),this.name="select",this.type="object",this.group="choices",this.order=2,this.title='{{t("Single select")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Select",enum:[]}},this.availableTypes=["string","bigInt","boolean"],this.hasDefaultValue=!0,this.properties={...e8,"uiSchema.enum":e4},this.filterable={operators:e$},this.titleUsable=!0}}class tI extends e9{constructor(...e){super(...e),this.name="snowflakeId",this.type="object",this.group="advanced",this.order=0,this.title='{{t("Snowflake ID (53-bit)")}}',this.primaryKeyDescription='{{t("Primary key, distributed uniqueness, time-ordering")}}',this.hidden=!1,this.sortable=!0,this.default={type:"snowflakeId",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,separator:"0.00",step:"1"},"x-validator":"integer"}},this.availableTypes=["snowflakeId"],this.properties={...e8,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eJ,unique:eW}}},this.filterable={operators:eH},this.description='{{t("A 53-bit Snowflake ID designed to be compatible with JavaScript’s safe integer range, providing both time-ordering and uniqueness.") }}',this.titleUsable=!0}}class tL extends e9{schemaInitialize(e,t){let{field:l,readPretty:o}=t,n=`${l.collectionName}.${l.name}`;e.type="void",e["x-component"]="TableField",e.properties={block:{type:"void","x-decorator":"TableFieldProvider","x-acl-action":`${l.target}:list`,"x-decorator-props":{collection:l.target,association:n,resource:n,action:"list",params:{paginate:!1},showIndex:!0,dragSort:!1},properties:{actions:{type:"void","x-initializer":"subTable:configureActions","x-component":"TableField.ActionBar","x-component-props":{}},[l.name]:{type:"array","x-initializer":"table:configureColumns","x-component":"TableV2","x-use-component-props":"useTableFieldProps","x-component-props":{rowSelection:{type:"checkbox"}}}}}}}constructor(...e){super(...e),this.name="subTable",this.type="object",this.group="relation",this.order=2,this.title='{{t("Sub-table")}}',this.isAssociation=!0,this.default={type:"hasMany",uiSchema:{type:"void","x-component":"TableField","x-component-props":{}}},this.availableTypes=["hasMany"],this.initialize=e=>{e.target||(e.target=`t_${(0,L.uid)()}`),e.foreignKey||(e.foreignKey=`f_${(0,L.uid)()}`)},this.properties={...e8,subtable:{type:"void","x-component":"SubFieldDataSourceProvider",properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{},properties:{delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action","x-component-props":{useAction:"{{ ds.useBulkDestroyAction }}",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},create:{type:"void",title:'{{ t("Add new") }}',"x-component":"AddSubFieldAction","x-component-props":{type:"primary"}}}},children:{type:"array",title:'{{t("Fields")}}',"x-decorator":"FormItem","x-component":"Table.Array","x-component-props":{pagination:!1,expandable:{childrenColumnName:"__nochildren__"},rowKey:"name",rowSelection:{type:"checkbox"},useSelectedRowKeys:"{{ ds.useSelectedRowKeys }}",useDataSource:"{{ ds.useDataSource }}"},properties:{column1:{type:"void",title:'{{ t("Field display name") }}',"x-component":"Table.Column",properties:{"uiSchema.title":{type:"number","x-component":"Input","x-read-pretty":!0}}},column2:{type:"void",title:'{{ t("Field name") }}',"x-component":"Table.Column",properties:{name:{"x-component":"Input","x-read-pretty":!0}}},column3:{type:"void",title:'{{ t("Field interface") }}',"x-component":"Table.Column",properties:{interface:{"x-component":"Input","x-read-pretty":!0}}},column4:{type:"void",title:'{{ t("Actions") }}',"x-component":"Table.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{update:{type:"void",title:'{{ t("Edit") }}',"x-component":"EditSubFieldAction","x-component-props":{}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-component-props":{useAction:"{{ ds.useDestroyAction }}",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}}}}}}}}}}}class tD extends e9{constructor(...e){super(...e),this.name="tableoid",this.type="object",this.group="systemInfo",this.order=0,this.title='{{t("Table OID")}}',this.sortable=!0,this.default={name:"__collection",type:"virtual",uiSchema:{type:"string",title:'{{t("Table OID")}}',"x-component":"CollectionSelect","x-component-props":{isTableOid:!0},"x-read-pretty":!0}},this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":!0,"x-decorator":"FormItem","x-component":"Input"}},this.filterable={operators:eK}}}class tY extends e9{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="textarea",this.type="object",this.group="basic",this.order=2,this.title='{{t("Long text")}}',this.default={interface:"textarea",type:"text",uiSchema:{type:"string","x-component":"Input.TextArea"}},this.availableTypes=["text","json","string"],this.validationType="string",this.availableValidationOptions=["min","max","length","case","pattern"],this.hasDefaultValue=!0,this.titleUsable=!0,this.properties={...e8,trim:{type:"boolean","x-content":'{{t("Automatically remove heading and tailing spaces")}}',"x-decorator":"FormItem","x-component":"Checkbox"}},this.validateSchema=e=>({max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
1002
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Max length must greater than min length")}' : ''
1003
+ }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Min length must less than max length")}' : ''}}`}}}}}),this.filterable={operators:eW}}}class tI extends e7{schemaInitialize(e,t){let{block:l}=t,o=e["x-component-props"]=e["x-component-props"]||{};o.style={...o.style||{},width:"100%"},["Table","Kanban"].includes(l)&&(o.ellipsis=!0)}constructor(...e){super(...e),this.name="select",this.type="object",this.group="choices",this.order=2,this.title='{{t("Single select")}}',this.sortable=!0,this.default={type:"string",uiSchema:{type:"string","x-component":"Select",enum:[]}},this.availableTypes=["string","bigInt","boolean"],this.hasDefaultValue=!0,this.properties={...e3,"uiSchema.enum":e8},this.filterable={operators:eV},this.titleUsable=!0}}class tL extends e7{constructor(...e){super(...e),this.name="snowflakeId",this.type="object",this.group="advanced",this.order=0,this.title='{{t("Snowflake ID (53-bit)")}}',this.primaryKeyDescription='{{t("Primary key, distributed uniqueness, time-ordering")}}',this.hidden=!1,this.sortable=!0,this.default={type:"snowflakeId",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,separator:"0.00",step:"1"},"x-validator":"integer"}},this.availableTypes=["snowflakeId"],this.properties={...e3,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eX,unique:eJ}}},this.filterable={operators:eq},this.description='{{t("A 53-bit Snowflake ID designed to be compatible with JavaScript’s safe integer range, providing both time-ordering and uniqueness.") }}',this.titleUsable=!0}}class tD extends e7{schemaInitialize(e,t){let{field:l,readPretty:o}=t,n=`${l.collectionName}.${l.name}`;e.type="void",e["x-component"]="TableField",e.properties={block:{type:"void","x-decorator":"TableFieldProvider","x-acl-action":`${l.target}:list`,"x-decorator-props":{collection:l.target,association:n,resource:n,action:"list",params:{paginate:!1},showIndex:!0,dragSort:!1},properties:{actions:{type:"void","x-initializer":"subTable:configureActions","x-component":"TableField.ActionBar","x-component-props":{}},[l.name]:{type:"array","x-initializer":"table:configureColumns","x-component":"TableV2","x-use-component-props":"useTableFieldProps","x-component-props":{rowSelection:{type:"checkbox"}}}}}}}constructor(...e){super(...e),this.name="subTable",this.type="object",this.group="relation",this.order=2,this.title='{{t("Sub-table")}}',this.isAssociation=!0,this.default={type:"hasMany",uiSchema:{type:"void","x-component":"TableField","x-component-props":{}}},this.availableTypes=["hasMany"],this.initialize=e=>{e.target||(e.target=`t_${(0,L.uid)()}`),e.foreignKey||(e.foreignKey=`f_${(0,L.uid)()}`)},this.properties={...e3,subtable:{type:"void","x-component":"SubFieldDataSourceProvider",properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{},properties:{delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action","x-component-props":{useAction:"{{ ds.useBulkDestroyAction }}",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}},create:{type:"void",title:'{{ t("Add new") }}',"x-component":"AddSubFieldAction","x-component-props":{type:"primary"}}}},children:{type:"array",title:'{{t("Fields")}}',"x-decorator":"FormItem","x-component":"Table.Array","x-component-props":{pagination:!1,expandable:{childrenColumnName:"__nochildren__"},rowKey:"name",rowSelection:{type:"checkbox"},useSelectedRowKeys:"{{ ds.useSelectedRowKeys }}",useDataSource:"{{ ds.useDataSource }}"},properties:{column1:{type:"void",title:'{{ t("Field display name") }}',"x-component":"Table.Column",properties:{"uiSchema.title":{type:"number","x-component":"Input","x-read-pretty":!0}}},column2:{type:"void",title:'{{ t("Field name") }}',"x-component":"Table.Column",properties:{name:{"x-component":"Input","x-read-pretty":!0}}},column3:{type:"void",title:'{{ t("Field interface") }}',"x-component":"Table.Column",properties:{interface:{"x-component":"Input","x-read-pretty":!0}}},column4:{type:"void",title:'{{ t("Actions") }}',"x-component":"Table.Column",properties:{actions:{type:"void","x-component":"Space","x-component-props":{split:"|"},properties:{update:{type:"void",title:'{{ t("Edit") }}',"x-component":"EditSubFieldAction","x-component-props":{}},delete:{type:"void",title:'{{ t("Delete") }}',"x-component":"Action.Link","x-component-props":{useAction:"{{ ds.useDestroyAction }}",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}}}}}}}}}}}class tY extends e7{constructor(...e){super(...e),this.name="tableoid",this.type="object",this.group="systemInfo",this.order=0,this.title='{{t("Table OID")}}',this.sortable=!0,this.default={name:"__collection",type:"virtual",uiSchema:{type:"string",title:'{{t("Table OID")}}',"x-component":"CollectionSelect","x-component-props":{isTableOid:!0},"x-read-pretty":!0}},this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-disabled":!0,"x-decorator":"FormItem","x-component":"Input"}},this.filterable={operators:eU}}}class tE extends e7{schemaInitialize(e,t){let{block:l}=t;["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="textarea",this.type="object",this.group="basic",this.order=2,this.title='{{t("Long text")}}',this.default={interface:"textarea",type:"text",uiSchema:{type:"string","x-component":"Input.TextArea"}},this.availableTypes=["text","json","string"],this.validationType="string",this.availableValidationOptions=["min","max","length","case","pattern"],this.hasDefaultValue=!0,this.titleUsable=!0,this.properties={...e3,trim:{type:"boolean","x-content":'{{t("Automatically remove heading and tailing spaces")}}',"x-decorator":"FormItem","x-component":"Checkbox"}},this.validateSchema=e=>({max:{type:"number",title:'{{ t("Max length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":`{{(field) => {
1004
1004
  const targetValue = field.query('.min').value();
1005
1005
  field.selfErrors =
1006
- !!targetValue && !!field.value && targetValue > field.value ? '${td("Max length must greater than min length")}' : ''
1007
- }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${td("Min length must less than max length")}' : ''}}`}}}}}),this.filterable={operators:eN}}}class tE extends e9{constructor(...e){super(...e),this.name="time",this.type="object",this.group="datetime",this.order=4,this.title='{{t("Time")}}',this.sortable=!0,this.default={type:"time",uiSchema:{type:"string","x-component":"TimePicker"}},this.availableTypes=["time"],this.hasDefaultValue=!0,this.properties={...e8,...e5},this.filterable={operators:eV},this.titleUsable=!0}}class tR extends e9{constructor(...e){super(...e),this.name="updatedAt",this.type="object",this.group="systemInfo",this.order=2,this.title='{{t("Last updated at")}}',this.sortable=!0,this.default={type:"date",field:"updatedAt",uiSchema:{type:"datetime",title:'{{t("Last updated at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},this.description='{{t("Store the last update time of each record")}}',this.availableTypes=[],this.properties={...e8,...e2},this.filterable={operators:eO},this.titleUsable=!0}}class tN extends e9{schemaInitialize(e,t){let{block:l}=t;e.properties={viewer:(0,a.cloneDeep)(e3)},["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="updatedBy",this.type="object",this.group="systemInfo",this.order=4,this.title='{{t("Last updated by")}}',this.isAssociation=!0,this.default={type:"belongsTo",target:"users",foreignKey:"updatedById",uiSchema:{type:"object",title:'{{t("Last updated by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0}},this.availableTypes=["belongsTo"],this.properties={...e8},this.filterable={nested:!0,children:[]},this.description='{{t("Store the last update user of each record")}}'}}class tB extends e9{schemaInitialize(e,t){let{block:l}=t}constructor(...e){super(...e),this.name="url",this.type="string",this.group="basic",this.order=5,this.title='{{t("URL")}}',this.default={type:"text",uiSchema:{type:"string","x-component":"Input.URL"}},this.componentOptions=[{label:"URL",value:"Input.URL"},{label:"Preview",value:"Input.Preview"}],this.availableTypes=["string","text"],this.validationType="string",this.availableValidationOptions=["uri","pattern"],this.properties={...e8},this.titleUsable=!0,this.filterable={operators:eN}}}class tO extends e9{constructor(...e){super(...e),this.name="uuid",this.type="object",this.group="advanced",this.order=0,this.title='{{t("UUID")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier")}}',this.hidden=!1,this.sortable=!0,this.default={type:"uuid",uiSchema:{type:"string","x-component":"Input","x-validator":"uuid"}},this.availableTypes=["uid","uuid"],this.validationType="string",this.availableValidationOptions=["uuid","pattern"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input","x-disabled":"{{ !createOnly }}",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},autoFill:eQ,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eJ,unique:eW}}},this.filterable={operators:eN},this.titleUsable=!0}}class tH extends e9{constructor(...e){super(...e),this.name="nanoid",this.type="object",this.group="advanced",this.order=0,this.title='{{t("Nano ID")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier")}}',this.hidden=!1,this.sortable=!0,this.default={type:"nanoid",uiSchema:{type:"string","x-component":"NanoIDInput"}},this.availableTypes=["nanoid"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input","x-disabled":"{{ !createOnly }}",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},customAlphabet:{type:"string",title:'{{t("Alphabet")}}',default:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz","x-decorator":"FormItem","x-component":"Input"},size:{type:"number",title:'{{t("Length")}}',default:21,"x-decorator":"FormItem","x-component":"InputNumber"},autoFill:eQ,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eJ,unique:eW}}},this.filterable={operators:eN},this.titleUsable=!0}}class tq extends e9{constructor(...e){super(...e),this.name="unixTimestamp",this.type="object",this.group="datetime",this.order=4,this.title='{{t("Unix Timestamp")}}',this.sortable=!0,this.default={type:"unixTimestamp",accuracy:"second",timezone:!0,defaultToCurrentTime:!1,onUpdateToCurrentTime:!1,uiSchema:{type:"number","x-component":"UnixTimestamp","x-component-props":{showTime:!0}}},this.availableTypes=["unixTimestamp"],this.hasDefaultValue=!1,this.validationType="date",this.availableValidationOptions=["timestamp"],this.properties={...e8,...e2,accuracy:{type:"string",title:'{{t("Accuracy")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"second",enum:[{value:"millisecond",label:'{{t("Millisecond")}}'},{value:"second",label:'{{t("Second")}}'}]},defaultToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Default value to current time")}}'},onUpdateToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Automatically update timestamp on update")}}'}},this.filterable={operators:eO},this.titleUsable=!0}}class t$ extends e9{constructor(...e){super(...e),this.name="date",this.type="object",this.group="datetime",this.order=3,this.title='{{t("DateOnly")}}',this.sortable=!0,this.default={type:"dateOnly",uiSchema:{type:"string","x-component":"DatePicker","x-component-props":{dateOnly:!0,showTime:!1}}},this.availableTypes=["dateOnly"],this.hasDefaultValue=!0,this.validationType="date",this.properties={...e8,...e2,"uiSchema.x-component-props.showTime":{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-visible":!1}},this.filterable={operators:eO},this.titleUsable=!0}}class tV extends e9{constructor(...e){super(...e),this.name="datetimeNoTz",this.type="object",this.group="datetime",this.order=2,this.title='{{t("Datetime (without time zone)")}}',this.sortable=!0,this.default={type:"datetimeNoTz",defaultToCurrentTime:!1,onUpdateToCurrentTime:!1,timezone:!1,uiSchema:{type:"string","x-component":"DatePicker","x-component-props":{showTime:!1,utc:!1}}},this.availableTypes=["string","datetimeNoTz"],this.hasDefaultValue=!0,this.validationType="date",this.properties={...e8,...e2,defaultToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Default value to current server time")}}'},onUpdateToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Automatically update timestamp to the current server time on update")}}'},"uiSchema.x-component-props.gmt":{type:"boolean",title:'{{t("GMT")}}',"x-hidden":!0,"x-component":"Checkbox","x-content":'{{t("Use the same time zone (GMT) for all users")}}',"x-decorator":"FormItem",default:!1}},this.filterable={operators:eO},this.titleUsable=!0}}},6553(e,t,l){l.d(t,{A:()=>o});let o={"ar-EG":{label:"العربية"},"az-AZ":{label:"Azərbaycan dili"},"bg-BG":{label:"Български"},"bn-BD":{label:"Bengali"},"by-BY":{label:"Беларускі"},"ca-ES":{label:"Сatal\xe0/Espanya"},"cs-CZ":{label:"Česky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"Ελληνικά"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xf1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"فارسی"},"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:"עברית"},"hi-IN":{label:"हिन्दी"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"Հայերեն"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xcdslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"日本語"},"ka-GE":{label:"ქართული"},"kk-KZ":{label:"Қазақ тілі"},"km-KH":{label:"ភាសាខ្មែរ"},"kn-IN":{label:"ಕನ್ನಡ"},"ko-KR":{label:"한국어"},"ku-IQ":{label:"کوردی"},"lt-LT":{label:"lietuvių"},"lv-LV":{label:"Latviešu valoda"},"mk-MK":{label:"македонски јазик"},"ml-IN":{label:"മലയാളം"},"mn-MN":{label:"Монгол хэл"},"ms-MY":{label:"بهاس ملايو"},"nb-NO":{label:"Norsk bokm\xe5l"},"ne-NP":{label:"नेपाली"},"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:"Русский"},"si-LK":{label:"සිංහල"},"sk-SK":{label:"Slovenčina"},"sl-SI":{label:"Slovenščina"},"sr-RS":{label:"српски језик"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"ภาษาไทย"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xfcrk\xe7e"},"uk-UA":{label:"Українська"},"ur-PK":{label:"Oʻzbekcha"},"vi-VN":{label:"Tiếng Việt"},"zh-CN":{label:"简体中文"},"zh-HK":{label:"繁體中文(香港)"},"zh-TW":{label:"繁體中文(台湾)"}}},9652(e,t,l){l.r(t),l.d(t,{AdminSettingsLayout:()=>_,InternalAdminSettingsLayout:()=>y,default:()=>b});var o=l(1178),n=l(2113),i=l(4829),r=l(691),a=l(504),s=l(2793),d=l(1649),u=l(7843),c=l(8356),p=l(3589),m=l(3939),h=l(5703),f=l(6681),g=l(6431);function v(e){let{type:t}=e,{t:l}=(0,u.useTranslation)();return"route"===t?(0,o.jsx)(s.Result,{status:"warning",title:l("Current settings page is unavailable"),subTitle:l("The requested settings page does not exist or you do not have permission to access it.")}):(0,o.jsx)(s.Result,{status:"info",title:l("No settings pages available"),subTitle:l("No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.")})}let y=()=>{var e,t,l;let r=(0,h.n)(),a=(0,c.useNavigate)(),f=(0,c.useLocation)(),y=(0,c.useParams)(),{token:_}=s.theme.useToken(),{t:b}=(0,u.useTranslation)(),{snippets:x=[]}=(0,p.v6)(),M=(0,d.useMemo)(()=>(0,g.Ui)(r.pluginSettingsManager.getList(!1)),[r.pluginSettingsManager]),w=(0,d.useMemo)(()=>(0,g.eD)((0,g.Ui)(r.pluginSettingsManager.getList(!0))),[r.pluginSettingsManager]),S=(0,d.useMemo)(()=>w.find(e=>e.name===g.Bm)||null,[w]),k=(0,d.useMemo)(()=>(0,g.p$)(w.filter(e=>e.name!==g.Bm)),[w]),F=(0,d.useMemo)(()=>S?[S,...k]:k,[k,S]),C=(0,d.useMemo)(()=>(0,g.nC)(M),[M]),A=(0,d.useMemo)(()=>(0,g.nC)(F),[F]),P=(0,d.useMemo)(()=>(0,g.CM)(C,f.pathname),[f.pathname,C]),T=(0,d.useMemo)(()=>(0,g.CM)(A,f.pathname),[f.pathname,A]),j=(0,d.useMemo)(()=>P?M.find(e=>e.name===P.topLevelName)||P:null,[M,P]),I=(0,d.useMemo)(()=>P&&F.find(e=>e.name===P.topLevelName)||null,[F,P]),L=(0,d.useMemo)(()=>(0,g.C9)(F),[F]),D=(0,d.useMemo)(()=>((null==I?void 0:I.children)||[]).filter(e=>!e.hidden),[null==I?void 0:I.children]),Y=D.length>1&&(null==I?void 0:I.showTabs)!==!1;(0,d.useEffect)(()=>{let e=j&&"string"==typeof j.title?j.title:null==j?void 0:j.topLevelName;e&&(document.title=e)},[j]);let E=(0,d.useMemo)(()=>{let e=[];return S&&x.includes("pm")&&e.push({key:S.name,icon:S.icon||(0,o.jsx)(n.ApiOutlined,{}),label:S.label||b("Plugin manager")}),e.length&&k.length&&e.push({type:"divider"}),e.push(...(0,g.gL)(k.map(e=>({...e,children:void 0})))||[]),e},[k,S,x,b]),R=f.pathname===m.wq||f.pathname===m.wq.replace(/\/$/,"")||f.pathname===`${m.wq}index`;if(R&&L)return(0,o.jsx)(c.Navigate,{replace:!0,to:L});if(R&&!L)return(0,o.jsx)(v,{type:"home"});if(!P||!T&&!1===P.isAllow)return(0,o.jsx)(v,{type:"route"});if(P.link)return(0,o.jsx)(c.Navigate,{replace:!0,to:P.link});if(f.pathname===(null==j?void 0:j.path)&&(null==j||null==(e=j.children)?void 0:e.length)){let e=null==I||null==(l=I.children)||null==(t=l.find(e=>"index"===e.pageKey))?void 0:t.path,n=(0,g.C9)(null==I?void 0:I.children),i=e||n;if(i&&i!==f.pathname)return(0,o.jsx)(c.Navigate,{replace:!0,to:i})}return(0,o.jsxs)(s.Layout,{style:{height:"100%",minHeight:"100%",background:_.colorBgLayout,borderRadius:_.borderRadiusLG,overflow:"hidden"},children:[(0,o.jsx)(s.Layout.Sider,{width:200,style:{background:_.colorBgContainer,borderInlineEnd:`${_.lineWidth}px solid ${_.colorBorderSecondary}`},children:(0,o.jsx)(s.Menu,{selectedKeys:(null==I?void 0:I.name)?[I.name]:[],style:{height:"100%",borderInlineEnd:"none"},onClick:e=>{var t;let{key:l}=e,o=F.find(e=>e.name===l);if(!o)return;if(o.link)return void window.open(o.link,"_blank","noopener,noreferrer");let n=(null==(t=o.children)?void 0:t.length)?(0,g.C9)(o.children):o.path;n&&a(n)},items:E})}),(0,o.jsxs)(s.Layout.Content,{style:{background:_.colorBgLayout,display:"flex",flexDirection:"column",minWidth:0,overflowY:"auto",overflowX:"hidden"},children:[(0,o.jsx)(i.PageHeader,{ghost:!1,title:null==j?void 0:j.title,style:{background:_.colorBgContainer,borderBlockEnd:`${_.lineWidth}px solid ${_.colorBorderSecondary}`,paddingBottom:Y?0:_.padding},footer:Y?(0,o.jsx)(s.Menu,{mode:"horizontal",selectedKeys:[(null==T?void 0:T.name)||(null==P?void 0:P.name)],items:(0,g.gL)(D),onClick:e=>{let{key:t}=e,l=(0,g.uT)(r.pluginSettingsManager.getRoutePath(String(t)),y);f.pathname!==l&&a(l)},style:{marginLeft:-_.marginSM,borderBottom:"none"}}):null}),(0,o.jsx)("div",{style:{padding:_.paddingLG},children:(0,o.jsx)(c.Outlet,{})})]})]})},_=e=>{let t=(0,a.useFlowEngine)(),l=(0,d.useRef)(null),n=(0,d.useMemo)(()=>(0,o.jsx)(y,{...e}),[e]),i=(0,r.css)`
1006
+ !!targetValue && !!field.value && targetValue > field.value ? '${tu("Max length must greater than min length")}' : ''
1007
+ }}}`},min:{type:"number",title:'{{ t("Min length") }}',minimum:0,"x-decorator":"FormItem","x-component":"InputNumber","x-component-props":{precision:0},"x-reactions":{dependencies:[".max"],fulfill:{state:{selfErrors:`{{!!$deps[0] && !!$self.value && $deps[0] < $self.value ? '${tu("Min length must less than max length")}' : ''}}`}}}}}),this.filterable={operators:eB}}}class tR extends e7{constructor(...e){super(...e),this.name="time",this.type="object",this.group="datetime",this.order=4,this.title='{{t("Time")}}',this.sortable=!0,this.default={type:"time",uiSchema:{type:"string","x-component":"TimePicker"}},this.availableTypes=["time"],this.hasDefaultValue=!0,this.properties={...e3,...e4},this.filterable={operators:ez},this.titleUsable=!0}}class tN extends e7{constructor(...e){super(...e),this.name="updatedAt",this.type="object",this.group="systemInfo",this.order=2,this.title='{{t("Last updated at")}}',this.sortable=!0,this.default={type:"date",field:"updatedAt",uiSchema:{type:"datetime",title:'{{t("Last updated at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},this.description='{{t("Store the last update time of each record")}}',this.availableTypes=[],this.properties={...e3,...e5},this.filterable={operators:eH},this.titleUsable=!0}}class tB extends e7{schemaInitialize(e,t){let{block:l}=t;e.properties={viewer:(0,a.cloneDeep)(e6)},["Table","Kanban"].includes(l)&&(e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].ellipsis=!0)}constructor(...e){super(...e),this.name="updatedBy",this.type="object",this.group="systemInfo",this.order=4,this.title='{{t("Last updated by")}}',this.isAssociation=!0,this.default={type:"belongsTo",target:"users",foreignKey:"updatedById",uiSchema:{type:"object",title:'{{t("Last updated by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0}},this.availableTypes=["belongsTo"],this.properties={...e3},this.filterable={nested:!0,children:[]},this.description='{{t("Store the last update user of each record")}}'}}class tO extends e7{schemaInitialize(e,t){let{block:l}=t}constructor(...e){super(...e),this.name="url",this.type="string",this.group="basic",this.order=5,this.title='{{t("URL")}}',this.default={type:"text",uiSchema:{type:"string","x-component":"Input.URL"}},this.componentOptions=[{label:"URL",value:"Input.URL"},{label:"Preview",value:"Input.Preview"}],this.availableTypes=["string","text"],this.validationType="string",this.availableValidationOptions=["uri","pattern"],this.properties={...e3},this.titleUsable=!0,this.filterable={operators:eB}}}class tH extends e7{constructor(...e){super(...e),this.name="uuid",this.type="object",this.group="advanced",this.order=0,this.title='{{t("UUID")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier")}}',this.hidden=!1,this.sortable=!0,this.default={type:"uuid",uiSchema:{type:"string","x-component":"Input","x-validator":"uuid"}},this.availableTypes=["uid","uuid"],this.validationType="string",this.availableValidationOptions=["uuid","pattern"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input","x-disabled":"{{ !createOnly }}",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},autoFill:eZ,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eX,unique:eJ}}},this.filterable={operators:eB},this.titleUsable=!0}}class tq extends e7{constructor(...e){super(...e),this.name="nanoid",this.type="object",this.group="advanced",this.order=0,this.title='{{t("Nano ID")}}',this.primaryKeyDescription='{{t("Primary key, unique identifier")}}',this.hidden=!1,this.sortable=!0,this.default={type:"nanoid",uiSchema:{type:"string","x-component":"NanoIDInput"}},this.availableTypes=["nanoid"],this.properties={"uiSchema.title":{type:"string",title:'{{t("Field display name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input"},name:{type:"string",title:'{{t("Field name")}}',required:!0,"x-decorator":"FormItem","x-component":"Input","x-disabled":"{{ !createOnly }}",description:"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"},customAlphabet:{type:"string",title:'{{t("Alphabet")}}',default:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz","x-decorator":"FormItem","x-component":"Input"},size:{type:"number",title:'{{t("Length")}}',default:21,"x-decorator":"FormItem","x-component":"InputNumber"},autoFill:eZ,layout:{type:"void",title:'{{t("Index")}}',"x-component":"Space","x-decorator":"FormItem","x-decorator-props":{style:{marginBottom:"0px"}},properties:{primaryKey:eX,unique:eJ}}},this.filterable={operators:eB},this.titleUsable=!0}}class t$ extends e7{constructor(...e){super(...e),this.name="unixTimestamp",this.type="object",this.group="datetime",this.order=4,this.title='{{t("Unix Timestamp")}}',this.sortable=!0,this.default={type:"unixTimestamp",accuracy:"second",timezone:!0,defaultToCurrentTime:!1,onUpdateToCurrentTime:!1,uiSchema:{type:"number","x-component":"UnixTimestamp","x-component-props":{showTime:!0}}},this.availableTypes=["unixTimestamp"],this.hasDefaultValue=!1,this.validationType="date",this.availableValidationOptions=["timestamp"],this.properties={...e3,...e5,accuracy:{type:"string",title:'{{t("Accuracy")}}',"x-component":"Radio.Group","x-decorator":"FormItem",default:"second",enum:[{value:"millisecond",label:'{{t("Millisecond")}}'},{value:"second",label:'{{t("Second")}}'}]},defaultToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Default value to current time")}}'},onUpdateToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Automatically update timestamp on update")}}'}},this.filterable={operators:eH},this.titleUsable=!0}}class tV extends e7{constructor(...e){super(...e),this.name="date",this.type="object",this.group="datetime",this.order=3,this.title='{{t("DateOnly")}}',this.sortable=!0,this.default={type:"dateOnly",uiSchema:{type:"string","x-component":"DatePicker","x-component-props":{dateOnly:!0,showTime:!1}}},this.availableTypes=["dateOnly"],this.hasDefaultValue=!0,this.validationType="date",this.properties={...e3,...e5,"uiSchema.x-component-props.showTime":{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-visible":!1}},this.filterable={operators:eH},this.titleUsable=!0}}class tz extends e7{constructor(...e){super(...e),this.name="datetimeNoTz",this.type="object",this.group="datetime",this.order=2,this.title='{{t("Datetime (without time zone)")}}',this.sortable=!0,this.default={type:"datetimeNoTz",defaultToCurrentTime:!1,onUpdateToCurrentTime:!1,timezone:!1,uiSchema:{type:"string","x-component":"DatePicker","x-component-props":{showTime:!1,utc:!1}}},this.availableTypes=["string","datetimeNoTz"],this.hasDefaultValue=!0,this.validationType="date",this.properties={...e3,...e5,defaultToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Default value to current server time")}}'},onUpdateToCurrentTime:{type:"boolean","x-decorator":"FormItem","x-component":"Checkbox","x-content":'{{t("Automatically update timestamp to the current server time on update")}}'},"uiSchema.x-component-props.gmt":{type:"boolean",title:'{{t("GMT")}}',"x-hidden":!0,"x-component":"Checkbox","x-content":'{{t("Use the same time zone (GMT) for all users")}}',"x-decorator":"FormItem",default:!1}},this.filterable={operators:eH},this.titleUsable=!0}}},6553(e,t,l){l.d(t,{A:()=>o});let o={"ar-EG":{label:"العربية"},"az-AZ":{label:"Azərbaycan dili"},"bg-BG":{label:"Български"},"bn-BD":{label:"Bengali"},"by-BY":{label:"Беларускі"},"ca-ES":{label:"Сatal\xe0/Espanya"},"cs-CZ":{label:"Česky"},"da-DK":{label:"Dansk"},"de-DE":{label:"Deutsch"},"el-GR":{label:"Ελληνικά"},"en-GB":{label:"English(GB)"},"en-US":{label:"English"},"es-ES":{label:"Espa\xf1ol"},"et-EE":{label:"Estonian (Eesti)"},"fa-IR":{label:"فارسی"},"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:"עברית"},"hi-IN":{label:"हिन्दी"},"hr-HR":{label:"Hrvatski jezik"},"hu-HU":{label:"Magyar"},"hy-AM":{label:"Հայերեն"},"id-ID":{label:"Bahasa Indonesia"},"is-IS":{label:"\xcdslenska"},"it-IT":{label:"Italiano"},"ja-JP":{label:"日本語"},"ka-GE":{label:"ქართული"},"kk-KZ":{label:"Қазақ тілі"},"km-KH":{label:"ភាសាខ្មែរ"},"kn-IN":{label:"ಕನ್ನಡ"},"ko-KR":{label:"한국어"},"ku-IQ":{label:"کوردی"},"lt-LT":{label:"lietuvių"},"lv-LV":{label:"Latviešu valoda"},"mk-MK":{label:"македонски јазик"},"ml-IN":{label:"മലയാളം"},"mn-MN":{label:"Монгол хэл"},"ms-MY":{label:"بهاس ملايو"},"nb-NO":{label:"Norsk bokm\xe5l"},"ne-NP":{label:"नेपाली"},"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:"Русский"},"si-LK":{label:"සිංහල"},"sk-SK":{label:"Slovenčina"},"sl-SI":{label:"Slovenščina"},"sr-RS":{label:"српски језик"},"sv-SE":{label:"Svenska"},"ta-IN":{label:"Tamil"},"th-TH":{label:"ภาษาไทย"},"tk-TK":{label:"Turkmen"},"tr-TR":{label:"T\xfcrk\xe7e"},"uk-UA":{label:"Українська"},"ur-PK":{label:"Oʻzbekcha"},"vi-VN":{label:"Tiếng Việt"},"zh-CN":{label:"简体中文"},"zh-HK":{label:"繁體中文(香港)"},"zh-TW":{label:"繁體中文(台湾)"}}},9652(e,t,l){l.r(t),l.d(t,{AdminSettingsLayout:()=>_,InternalAdminSettingsLayout:()=>y,default:()=>b});var o=l(1178),n=l(2113),i=l(4829),r=l(691),a=l(504),s=l(2793),d=l(1649),u=l(7843),c=l(8356),p=l(3589),m=l(3939),h=l(5703),f=l(6681),g=l(6431);function v(e){let{type:t}=e,{t:l}=(0,u.useTranslation)();return"route"===t?(0,o.jsx)(s.Result,{status:"warning",title:l("Current settings page is unavailable"),subTitle:l("The requested settings page does not exist or you do not have permission to access it.")}):(0,o.jsx)(s.Result,{status:"info",title:l("No settings pages available"),subTitle:l("No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.")})}let y=()=>{var e,t,l;let r=(0,h.n)(),a=(0,c.useNavigate)(),f=(0,c.useLocation)(),y=(0,c.useParams)(),{token:_}=s.theme.useToken(),{t:b}=(0,u.useTranslation)(),{snippets:x=[]}=(0,p.v6)(),M=(0,d.useMemo)(()=>(0,g.Ui)(r.pluginSettingsManager.getList(!1)),[r.pluginSettingsManager]),w=(0,d.useMemo)(()=>(0,g.eD)((0,g.Ui)(r.pluginSettingsManager.getList(!0))),[r.pluginSettingsManager]),S=(0,d.useMemo)(()=>w.find(e=>e.name===g.Bm)||null,[w]),k=(0,d.useMemo)(()=>(0,g.p$)(w.filter(e=>e.name!==g.Bm)),[w]),F=(0,d.useMemo)(()=>S?[S,...k]:k,[k,S]),C=(0,d.useMemo)(()=>(0,g.nC)(M),[M]),A=(0,d.useMemo)(()=>(0,g.nC)(F),[F]),P=(0,d.useMemo)(()=>(0,g.CM)(C,f.pathname),[f.pathname,C]),T=(0,d.useMemo)(()=>(0,g.CM)(A,f.pathname),[f.pathname,A]),j=(0,d.useMemo)(()=>P?M.find(e=>e.name===P.topLevelName)||P:null,[M,P]),I=(0,d.useMemo)(()=>P&&F.find(e=>e.name===P.topLevelName)||null,[F,P]),L=(0,d.useMemo)(()=>(0,g.C9)(F),[F]),D=(0,d.useMemo)(()=>((null==I?void 0:I.children)||[]).filter(e=>!e.hidden),[null==I?void 0:I.children]),Y=D.length>1&&(null==I?void 0:I.showTabs)!==!1;(0,d.useEffect)(()=>{let e=j&&"string"==typeof j.title?j.title:null==j?void 0:j.topLevelName;e&&(document.title=e)},[j]);let E=(0,d.useMemo)(()=>{let e=[];return S&&x.includes("pm")&&e.push({key:S.name,icon:S.icon||(0,o.jsx)(n.ApiOutlined,{}),label:S.label||b("Plugin manager")}),e.length&&k.length&&e.push({type:"divider"}),e.push(...(0,g.gL)(k.map(e=>({...e,children:void 0})))||[]),e},[k,S,x,b]),R=f.pathname===m.wq||f.pathname===m.wq.replace(/\/$/,"")||f.pathname===`${m.wq}index`;if(R&&L)return(0,o.jsx)(c.Navigate,{replace:!0,to:L});if(R&&!L)return(0,o.jsx)(v,{type:"home"});if(!P||!T&&!1===P.isAllow)return(0,o.jsx)(v,{type:"route"});if(P.link)return(0,o.jsx)(c.Navigate,{replace:!0,to:P.link});if(f.pathname===(null==j?void 0:j.path)&&(null==j||null==(e=j.children)?void 0:e.length)){let e=null==I||null==(l=I.children)||null==(t=l.find(e=>"index"===e.pageKey))?void 0:t.path,n=(0,g.C9)(null==I?void 0:I.children),i=e||n;if(i&&i!==f.pathname)return(0,o.jsx)(c.Navigate,{replace:!0,to:i})}return(0,o.jsxs)(s.Layout,{style:{height:"100%",minHeight:"100%",background:_.colorBgLayout,borderRadius:_.borderRadiusLG,overflow:"hidden"},children:[(0,o.jsx)(s.Layout.Sider,{width:200,style:{background:_.colorBgContainer,borderInlineEnd:`${_.lineWidth}px solid ${_.colorBorderSecondary}`},children:(0,o.jsx)(s.Menu,{selectedKeys:(null==I?void 0:I.name)?[I.name]:[],style:{height:"100%",borderInlineEnd:"none"},onClick:e=>{var t;let{key:l}=e,o=F.find(e=>e.name===l);if(!o)return;if(o.link)return void window.open(o.link,"_blank","noopener,noreferrer");let n=(null==(t=o.children)?void 0:t.length)?(0,g.C9)(o.children):o.path;n&&a(n)},items:E})}),(0,o.jsxs)(s.Layout.Content,{style:{background:_.colorBgLayout,display:"flex",flexDirection:"column",minWidth:0,overflowY:"auto",overflowX:"hidden"},children:[(0,o.jsx)(i.PageHeader,{ghost:!1,title:null==j?void 0:j.title,style:{background:_.colorBgContainer,borderBlockEnd:`${_.lineWidth}px solid ${_.colorBorderSecondary}`,paddingBottom:Y?0:_.padding},footer:Y?(0,o.jsx)(s.Menu,{mode:"horizontal",selectedKeys:[(null==T?void 0:T.name)||(null==P?void 0:P.name)],items:(0,g.gL)(D),onClick:e=>{let{key:t}=e,l=(0,g.uT)(r.pluginSettingsManager.getRoutePath(String(t)),y);f.pathname!==l&&a(l)},style:{marginLeft:-_.marginSM,borderBottom:"none"}}):null}),(0,o.jsx)("div",{style:{padding:_.paddingLG},children:(0,o.jsx)(c.Outlet,{})})]})]})},_=e=>{let t=(0,a.useFlowEngine)(),l=(0,d.useRef)(null),n=(0,d.useMemo)(()=>(0,o.jsx)(y,{...e}),[e]),i=(0,r.css)`
1008
1008
  height: 100%;
1009
1009
  > div {
1010
1010
  height: 100%;