2024-09-02 10:12:20 +02:00

1 line
40 KiB
JavaScript

"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[995],{61714:(O,M,a)=>{a.d(M,{A:()=>D});var l=a(10467),m=a(67336),F=a(54438),v=a(21413),d=a(84412),u=a(27468),f=a(33570),x=a(66664),W=a(45197),N=a(15113);class T{constructor(){this.items=[],this.observList$=[]}get isEmpty(){return 0===this.items.length}get isEmpty4Save(){return 0===this.observList$.length}_register(h,t,r,i,e,o,n){let s=null,g=null;Array.isArray(i)?(s=i[0],i.length>1&&(g=i[1])):s=i;const E={baseEntityList:t,baseEntityWrapper:r,filterKeyField:s,masterField4Filter:g,callBack:e,errorCallBack:o,completeCallBack:n,mode:h};return this.items.push(E),r&&(r.hierarchyLevel++,r.editModeDefault=1),t&&t.hierarchyLevel++,E}register(h,t,r,i,e,o){return this._register(3,h,t,r,i,e,o)}register4Load(h,t,r,i,e,o){return this._register(1,h,t,r,i,e,o)}register4Save(h,t,r,i,e,o){return this._register(2,h,t,r,i,e,o)}prepareObservables(h,t){this.items.forEach(r=>{r.mode&t&&h.push(new v.B)})}prepareObservables4SaveAutonome(h,t,r){if(this.observList$=[],this.prepareObservables(this.observList$,t),0===this.observList$.length)return;const i=new v.B;h.push(i),(0,u.p)(this.observList$).subscribe(()=>{r&&r(),i.next()},e=>i.error(e),()=>{i.complete()})}new(){this.items.forEach(h=>h.baseEntityList?h.baseEntityList.clear():h.baseEntityWrapper.new())}clear(h=!1){this.items.forEach(t=>{t.baseEntityList?t.baseEntityList.clear():t.baseEntityWrapper.entity&&t.baseEntityWrapper.entity.clear(h)})}cancel(){this.items.forEach(h=>{h.baseEntityList?h.baseEntityList.clear():(h.baseEntityWrapper.resetEditMode(),h.baseEntityWrapper.entity&&h.baseEntityWrapper.entity.clear())})}changed(){return this.items.some(h=>h.baseEntityList?h.baseEntityList.changed:h.baseEntityWrapper.entityWasChanged)}isValidInput(){return this.items.every(h=>h.baseEntityList?h.baseEntityList.isValidInput:h.baseEntityWrapper.isValidInput)}load(h,t,r=0,i=null){this.items.filter(e=>1&e.mode).forEach((e,o)=>{const n=o+r;h.entityId?!e.baseEntityList||i&&i!==e.baseEntityList?e.baseEntityWrapper&&(!i||i===e.baseEntityWrapper)&&e.baseEntityWrapper.load(h.entity[e.filterKeyField??"entityId"],s=>{console.log("!! next load detail No."+n+": "+(e.baseEntityList?e.baseEntityList.translate.instant(e.baseEntityList._listName):e.baseEntityWrapper.entity.typeName)),e.callBack&&e.callBack(s),t&&t[n].next()},s=>{e.errorCallBack&&e.errorCallBack(s),t&&t[n].error(s)},()=>{console.log("!! complete load detail No."+n+": "+(e.baseEntityList?e.baseEntityList.translate.instant(e.baseEntityList._listName):e.baseEntityWrapper.entity.typeName)),e.completeCallBack&&e.completeCallBack(),t&&t[n].complete()}):(e.filterKeyField&&e.baseEntityList.filter&&(e.baseEntityList.filter[e.filterKeyField]=h.entity[e.masterField4Filter??"entityId"]),e.baseEntityList.load(s=>{console.log("!! next load detail No."+n+": "+(e.baseEntityList?e.baseEntityList.translate.instant(e.baseEntityList._listName):e.baseEntityWrapper.entity.typeName)),e.callBack&&e.callBack(s),t&&t[n].next()},s=>{e.errorCallBack&&e.errorCallBack(s),t&&t[n].error(s)},()=>{console.log("!! complete load detail No."+n+": "+(e.baseEntityList?e.baseEntityList.translate.instant(e.baseEntityList._listName):e.baseEntityWrapper.entity.typeName)),e.completeCallBack&&e.completeCallBack(),t&&t[n].complete()})):(e.baseEntityList?e.baseEntityList.clear():e.baseEntityWrapper.new(),t&&t[n].next(),t&&t[n].complete())})}itemSave(h,t,r,i,e){t.baseEntityList?(t.baseEntityList.items.forEach(o=>{o.isNew()&&(o[t.filterKeyField]=h.entity[t.masterField4Filter??"entityId"])}),t.baseEntityList.save(()=>{t.callBack&&t.callBack(t.baseEntityList.items),r&&r()},o=>{t.errorCallBack&&t.errorCallBack(t.baseEntityList.items),i&&i(o)},()=>{t.completeCallBack&&t.completeCallBack(),e&&e()})):(t.baseEntityWrapper.isNew&&(t.baseEntityWrapper.entity[t.filterKeyField]=h.entity[t.masterField4Filter??"entityId"]),t.baseEntityWrapper.save(()=>{t.callBack&&t.callBack(t.baseEntityWrapper.entity),r&&r()},o=>{t.errorCallBack&&t.errorCallBack(t.baseEntityWrapper.entity),i&&i(o)},()=>{t.completeCallBack&&t.completeCallBack(),e&&e()}))}batchSave(h){this.save(h,this.observList$,0)}save(h,t,r){this.items.filter(i=>2&i.mode).forEach((i,e)=>{const o=e+r;h.entityId?this.itemSave(h,i,()=>{console.log("!! next save detail No."+o+": "+(i.baseEntityList?i.baseEntityList.translate.instant(i.baseEntityList._listName):i.baseEntityWrapper.entity.typeName)),t[o].next()},n=>t[o].error(n),()=>{console.log("!! complete save detail No."+o+": "+(i.baseEntityList?i.baseEntityList.translate.instant(i.baseEntityList._listName):i.baseEntityWrapper.entity.typeName)),t[o].complete()}):(i.baseEntityList?i.baseEntityList.clear():i.baseEntityWrapper.new(),t[o].next(),t[o].complete())})}}var S=function(y){return y[y.Load=0]="Load",y[y.New=1]="New",y[y.Save=2]="Save",y}(S||{});let D=(()=>{class y{static#t=this.EN_ViewMode=0;static#e=this.EN_NewMode=2;static#i=this.EN_EditMode=1;static#s=this.EN_KeyEditMode=3;static#n=this.EN_Idle=4;get entityIsLoading(){return this.entityIsLoading$.value}set entityIsLoading(t){const r=this.entityIsLoading;(!t&&r||t&&!r)&&this.entityIsLoading$.next(t),this.appLogsService.dlog("--- Loading",this.entity.typeName+": "+this.entity.entityId+" == "+t),!t&&r&&this.entityLoaded$.next()}get keyDownListenerStopped(){return this._keyDownListenerStopped||this.detailItems.items.some(t=>t.baseEntityList?t.baseEntityList.focusedEntityShadowed?.keyDownListenerStopped:t.baseEntityWrapper.keyDownListenerStopped)}set keyDownListenerStopped(t){this._keyDownListenerStopped=t}get editModeDefault(){return this._editModeDefault}set editModeDefault(t){null!=t&&(this._editModeDefault=t,this.resetEditMode())}get editMode(){return this._editMode}set editMode(t){this.editMode!==t&&setTimeout(()=>{this.editModeDirectly=t,this.entityWasChanged=!1,this.inNotViewMode&&this.setFocus4Form(this.detailFormHTMLId?this.detailFormHTMLId:"form_"+this.entity.typeName)},0)}set editModeDirectly(t){this._editMode=t,this.appLogsService.dlog("--- Editmode",this.entity.typeName+": "+this.entityId+" == "+t)}get entitytitle(){const t=this.entity?.entitytitle;return this.translate.translateString(t)}constructor(t,r,i,e){this.TEntity=t,this.delayEntityChange=500,this.delaySetEditModeCallback=500,this.delayToReloadedEntity=2e3,this.loadedDataExpiresInMs=0,this.syncEntityListWhenSave=!0,this.syncEntityListWhenLoad=!0,this._lastChangedTime=0,this.entityLoaded$=new v.B,this.entityIsLoading$=new d.t(!1),this.indexInList4New=-1,this._keyDownListenerStopped=!1,this.hierarchyLevel=0,this.confirmationsOn=!0,this.dontShowErrors=!1,this._editModeDefault=y.EN_ViewMode,this._lastLoadedEntityId=0,this._editMode=this.editModeDefault,this.canNew=!0,this.canEdit=!0,this.canCancel=!0,this.canDelete=!0,this.dontLoadEntity=!1,this.dontCheckSaveButton=!1,this.dontUpdateEntityDirectly=!1,this.dontInsertEntityDirectly=!1,this.detailItems=new T,this._wasChanged=!1,this.doFormChange=o=>{(!this.onFormChange||!this.onFormChange(o))&&this.changed(o)},this.appLogsService=i??(0,F.WQX)(x.w),this.repositoryService=e??(0,F.WQX)(W.U),this.translate=this.appLogsService.translate,null!=r&&(this._editModeDefault=r,this._editMode=r),setTimeout(()=>{this.entityWasChanged=!1},0),this._entity=new t}get isNew(){return!this.entity||0===this.entity.entityId||this.entity.insertWithIds()&&this.entity.entityId<0}get inViewMode(){return this.editModeDefault!==y.EN_ViewMode&&!this.inNewMode||this.editMode===y.EN_ViewMode}get inNotViewMode(){return this.editMode===y.EN_EditMode||this.editMode===y.EN_KeyEditMode||this.editMode===y.EN_NewMode}get inNewKeyEditMode(){return this.editMode===y.EN_KeyEditMode||this.editMode===y.EN_NewMode}get inNewEditMode(){return this.editMode===y.EN_EditMode||this.editMode===y.EN_NewMode}get inEditMode(){return this.editMode===y.EN_EditMode}get inNewMode(){return this.editMode===y.EN_NewMode}get inKeyEditMode(){return this.editMode===y.EN_KeyEditMode}resetEditMode(){0===this.hierarchyLevel&&this.isNew&&0!==this.editModeDefault||(this.editMode=this.editModeDefault)}set entityWasLoaded(t){this.entityIsLoading=!t,t&&(this.entityWasChanged=!1)}set entityWasChanged(t){this.entity&&(this.appLogsService.dlog("--- "+this.entity.typeName+" CHANGED: ",t," after ",(0,N.tB)()-this._lastChangedTime),(!t||(0,N.tB)()-this._lastChangedTime>this.delayEntityChange)&&(setTimeout(()=>this.entity.entityChanged=t),this._wasChanged=t),this._lastChangedTime=(0,N.tB)())}get entityWasChanged(){return this.entity?.entityChanged||this.detailItems.changed()||!!this.isEntityChangedCallBack&&this.isEntityChangedCallBack(this.entity)}get isValidInput(){return this.entity?.isValidInput()&&this.detailItems.isValidInput()&&(!this.isEntityValidCallBack||this.isEntityValidCallBack(this.entity))}get detailForm(){return this._detailForm}set detailForm(t){this._detailForm=t,this._detailForm&&(this.detailForm.valueChanges.subscribe(r=>this.doFormChange(r)),this.updateRequired())}updateRequired(){this.detailForm&&setTimeout(()=>{this.detailForm?.control&&this.detailForm.control.markAllAsTouched()})}get entity(){return this._entity}set entity(t){this.entityWasLoaded=!1,this._entity=t,this.entityWasLoaded=!0}set entityId(t){(!this.entity||!this.entity.isRealObject())&&(this._entity=new this.TEntity),this.load(t)}get entityId(){return this.entity?this.entity.entityId:null}unsubscribe(t){t?.unsubscribe(),t=null}load(t,r,i,e){this.entity.entityId=t,this.loginSubscriptionLoad||0!==this.hierarchyLevel?this.loginSubscriptionLoad&&this.unsubscribe(this.loginSubscriptionLoad):this.loginSubscriptionLoad=this.repositoryService.authService.loginAction$.subscribe(n=>{n.result?this.load(t,r,i,e):this.unsubscribe(this.loginSubscriptionLoad)});const o=[new v.B];this.detailItems.prepareObservables(o,1),(0,u.p)(o).subscribe(()=>{this.entityWasLoaded=!0,this.resetEditMode(),0===this.hierarchyLevel&&(this.appLogsService.dlog("------- master loaded <"+this.entity.typeName+" "+this.entity.entityId+">"),this.unsubscribe(this.loginSubscriptionLoad)),r&&r(this.entity),this.loadedCallBack&&this.loadedCallBack(this.entity),this.entityId&&this.entityList?.updateListItem(this.entity)},n=>{this.cancelDelayedEditsubscription(),this.entityIsLoading=!1,0===this.hierarchyLevel&&this.appLogsService.error("---!!! master error <"+this.entity.typeName+" "+this.entity.entityId+">:",{error:n});const s=(0,N.$5)(n);s!==f.DA&&(this.dontShowErrors||this.errorMessageBox(this.translate.instant("core.error.loading",{value:this.entitytitle}),s),i&&i(n),this.errorCallBack&&this.errorCallBack(n),this.unsubscribe(this.loginSubscriptionLoad)),e&&e(),this.completeCallBack&&this.completeCallBack()},()=>{this.entityWasLoaded=!0,0===this.hierarchyLevel&&this.appLogsService.dlog("------- master loaded completed <"+this.entity.typeName+" "+this.entity.entityId+">"),e&&e(),this.completeCallBack&&this.completeCallBack()}),this.entityWasLoaded=!1,this.dontLoadEntity&&this.entityList?this.entityList.items.length>0&&this.entityId?(this.entity.assign(this.entityList.getItemById(this.entity.entityId)),o[0].next(),this.detailItems.load(this,o,1),o[0].complete()):(this.clear(),o[0].complete()):this.entity.load(this.repositoryService,n=>{this.synchroniseEntityList(S.Load),o[0].next()},n=>{this.hierarchyLevel>0?(o[0].next(),o[0].complete()):o[0].error(n)},()=>{this.detailItems.load(this,o,1),o[0].complete()})}changed(t){return this.entityWasChanged=!0,this._wasChanged}isFormValidInput(){return(this.onCheckFormValidInput&&this.onCheckFormValidInput(this.detailForm)||!this.detailForm||this.detailForm&&!this.detailForm.invalid)&&this.isValidInput}enabledSaveButton(){return this.isFormValidInput()&&this.inNotViewMode&&(this.entityWasChanged||this.dontCheckSaveButton)}enabledDeleteButton(){return this.canDelete&&(!this.isNew||this.dontUpdateEntityDirectly)&&!this.entityIsLoading&&this.inViewMode}enabledNewButton(){return this.canNew&&!this.entityIsLoading&&this.inViewMode}enabledEditButton(){return this.canEdit&&(!this.isNew||this.dontInsertEntityDirectly)&&!this.entityIsLoading&&this.inViewMode}enabledCancelButton(){return this.canCancel&&(this.editModeDefault===y.EN_ViewMode&&this.inNotViewMode||this.editModeDefault!==y.EN_ViewMode&&(this.inEditMode&&this.entityWasChanged||this.inNewMode&&(!this.entityList||this.entityList.focusedItem||this.entityWasChanged)))&&!this.entityIsLoading}enabledCopyButton(){return this.canNew&&(!this.isNew||this.dontInsertEntityDirectly)&&!this.entityIsLoading&&this.inViewMode}saveExcludingFields(t,r,i,e,o){var n=this;return(0,l.A)(function*(){n.entity.excludeFieldFromUpdate(t),n.save(r,i,()=>{n.entity.includeFieldForUpdate(t),e&&e()},o)})()}saveAsync(){var t=this;return(0,l.A)(function*(){return new Promise((r,i)=>t.save(null,()=>r(!1),()=>r(!0)))})()}saveAnywayAsync(){var t=this;return(0,l.A)(function*(){return new Promise((r,i)=>t.saveAnyway(null,()=>r(!1),()=>r(!0)))})()}saveAnyway(t,r,i,e){this.entity&&this.save(t,r,i,e,!0)}save(t,r,i,e,o=!1){var n=this;return(0,l.A)(function*(){if(n.entity&&(o||n.enabledSaveButton())){const s=[new v.B],g=n.isNew;let E=0;const c=n.beforeSaveCallBack&&!!(1&(E=yield n.beforeSaveCallBack(n.entity)));if(c||n.detailItems.prepareObservables4SaveAutonome(s,2,()=>n.saveEntity(s[0],e)),(0,u.p)(s).subscribe(()=>{n.unsubscribe(n.loginSubscriptionSave),n.resetEditMode(),n.synchroniseEntityList(g?S.New:S.Save)||n._cancel(),t&&t(n.entity),n.appLogsService.dlog("------- master saved <"+n.entity.typeName+" "+n.entity.entityId+">"),n.entityList?.updateListItem(n.entity),n.entityWasChanged=!1},L=>{n.entityWasChanged=!0,n.appLogsService.error("---!!! master error <"+n.entity.typeName+">:",{error:L});const b=(0,N.$5)(L);b!==f.DA&&(n.dontShowErrors||n.errorMessageBox(n.translate.instant("core.error.saving",{value:n.entitytitle}),b),r&&r(L),n.unsubscribe(n.loginSubscriptionSave)),i&&i()},()=>{n.appLogsService.dlog("------- master saved completed <"+n.entity.typeName+" "+n.entity.entityId+">"),i&&i()}),c)return void(2&E?s[0].error({errMsg:f.DA}):(s[0].next(),s[0].complete()));n.loginSubscriptionSave||0!==n.hierarchyLevel?n.loginSubscriptionSave&&n.unsubscribe(n.loginSubscriptionSave):n.loginSubscriptionSave=n.repositoryService.authService.loginAction$.subscribe(L=>{L.result?n.save(t,r,i,e):n.unsubscribe(n.loginSubscriptionSave)});const A=s[0];if(!n.detailItems.isEmpty4Save&&n.isNew){const L=new v.B;n.saveEntity(L,e),L.subscribe({next:()=>{n.detailItems.batchSave(n)},error:b=>{A.error(b)}})}else n.detailItems.batchSave(n),n.detailItems.isEmpty4Save&&n.saveEntity(A,e)}else n.hierarchyLevel>0&&t&&t(n.entity),n.appLogsService.dlog("!! completed saving main"+n.entity.typeName),i&&i(),n.resetEditMode()})()}saveEntity(t,r){!r&&this.entityList&&(this.isNew&&this.dontInsertEntityDirectly||!this.isNew&&this.dontUpdateEntityDirectly)?(0===this.entity.entityId&&(this.entity.entityId=this.entityList.items.reduce((i,e)=>i<e.entityId?i:e.entityId,0)-1),this.entityWasChanged=!0,this.appLogsService.dlog("!! next saving main: "+this.entity.typeName),t.next(),this.appLogsService.dlog("!! completed saving main: "+this.entity.typeName),t.complete()):this.entity.save(this.repositoryService,i=>{this.appLogsService.dlog("!! next saving main: "+this.entity.typeName),t.next()},i=>t.error(i),()=>{this.appLogsService.dlog("!! completed saving main: "+this.entity.typeName),t.complete()},r)}synchroniseEntityList(t,r){return r||(r=this.entityList),!(!r||!(t!==S.New&&t!==S.Save||this.syncEntityListWhenSave)||t===S.Load&&!this.syncEntityListWhenLoad||(t!==S.Load&&r.reloadAfterItemUpdate?(r.load(),r.focusedItemId=this.entity.entityId):r.updateListItem(this.entity,this.indexInList4New,t===S.New),0))}clear(t=!1){this.entity.clear(t),this.detailItems.clear(t)}cancelWithSave(t,r,i){this.cancel(r,i,null,null,t)}cancel(t,r,i,e,o){this.confirmationsOn&&this.enabledSaveButton()&&this.entityWasChanged?this.confirmMessageBoxYesNoCancel(this.translate.instant("core.msgbox.header.cancel",{value:this.entitytitle}),this.translate.instant("core.msgbox.body.cancel",{value:this.entitytitle}),()=>{o?o():this.save(t,r,i,e)},()=>{t&&t(this.entity),this._cancel(null,r)}):setTimeout(()=>this._cancel(t,r))}_cancel(t,r){if(this.entityWasChanged||this.isNew)if(this.isNew)this._lastLoadedEntityId?this.entityId=this._lastLoadedEntityId:(this.detailItems.cancel(),this.entity.clear(),0===this.hierarchyLevel&&0!==this.editModeDefault&&this.new());else if(this.entity)return this.reloadAnyway(i=>{this.resetEditMode(),t&&t(this.entity)},r),!0;return this.resetEditMode(),t&&t(this.entity),!0}deleteAsync(){var t=this;return(0,l.A)(function*(){return new Promise((r,i)=>t.save(()=>r(!0),()=>r(!1)))})()}delete(t,r){var i=this;return(0,l.A)(function*(){if(!i.confirmationsOn)return i._delete(t,r);i.confirmMessageBoxYesNo(i.translate.instant("core.msgbox.header.delete",{value:i.entitytitle}),i.translate.instant("core.msgbox.body.delete",{value:i.entitytitle}),()=>i._delete(t,r),1)})()}_delete(t,r){var i=this;return(0,l.A)(function*(){if(i.entity&&i.enabledDeleteButton()){let o,e=0;if(i.beforeDeleteCallBack&&1&(e=yield i.beforeDeleteCallBack(i.entity)))return void(2&e?r&&r({errMsg:f.DA}):t&&t(i.entity));if(0===i.hierarchyLevel&&(o=i.repositoryService.authService.loginAction$.subscribe(n=>{n.result&&(o?.unsubscribe(),i._delete(t,r))})),!i.dontUpdateEntityDirectly)return i.entity.delete(i.repositoryService,n=>{i.resetEditMode(),i.entityList&&i.entityList.deleteListItem(i.entity,!1),t&&t(n)},n=>{i.appLogsService.error("---!!! delete error <"+i.entity.typeName+">:",{error:n});const s=(0,N.$5)(n);!i.dontShowErrors&&s!==f.DA&&i.errorMessageBox(i.translate.instant("core.error.deleting",{value:i.entitytitle}),s),s!==f.DA&&r&&r(n)});i.resetEditMode(),i.entityList&&i.entityList.deleteListItem(i.entity,!0)}else t&&t(i.entity)})()}editKey(t=!1,r){return this._edit(y.EN_KeyEditMode,t,r)}edit(t=!1,r){return this._edit(y.EN_EditMode,t,r)}_edit(t,r=!1,i){return this.enabledEditButton()?(this.appLogsService.dlog("--- Edit, since last loading expired ms",(0,N.tB)()-(this.entity.lastLoaded||0)),this.loadedDataExpiresInMs&&(0,N.tB)()-(this.entity.lastLoaded||0)>this.loadedDataExpiresInMs?this.reload(()=>this._setEditMode(r,t,i)):this._setEditMode(r,t,i),this.entity):null}_setEditMode(t,r,i){t?(this.editModeDirectly=r,i&&i(this.entity)):(this.editMode=r,setTimeout(()=>{i&&i(this.entity)},this.delaySetEditModeCallback))}delayedEdit(t,r){t===this.entityId?r?r():this.edit():this.delayedEditsubscription||(this.delayedEditsubscription=this.entityLoaded$.subscribe(()=>{this.cancelDelayedEditsubscription(),r?r():this.edit()}))}cancelDelayedEditsubscription(){this.delayedEditsubscription?.unsubscribe(),this.delayedEditsubscription=null}setfocus4ElementsOf(t,r){const i=r?.getElementsByTagName(t);let e=null;if(i){for(let o=0;o<i.length;o++){const n=i[o];if(!n.disabled&&!n.hidden&&n.autofocus&&(e||(e=n),n.required&&!n.value)){e=n;break}}setTimeout(()=>{e?.focus()},300)}return!!e}setFocus4Form(t){setTimeout(()=>{const r=document.getElementById(t);this.setfocus4ElementsOf("input",r)||this.setfocus4ElementsOf("button",r)})}_NewCopy(t){return this.editMode===this.editModeDefault||this.editMode===y.EN_NewMode?(this._lastLoadedEntityId=this.entityId,this.editMode=y.EN_NewMode,t||(this.entityId=0),this.beforeNewCallBack&&this.beforeNewCallBack(this.entity),t&&(this.entity.entityId=0),t&&setTimeout(()=>this.entity.entityChanged=!0,0),this.detailItems.new(),this.updateRequired(),this.entity):null}new(){return this._NewCopy(!1)}copy(){return this._NewCopy(!0)}loadDetails(t){this.detailItems&&this.detailItems.load(this,null,0,t)}reloadAnyway(t,r,i){this.entity.lastLoaded=0,this.reload(t,r,i)}reload(t,r,i){const e=this.delayToReloadedEntity;(0,N.tB)()-(this.entity.lastLoaded||0)>e?(this.appLogsService.dlog(`--- Reload for ${this.entity.entitytitle} is executed: since last loading expired ${(0,N.tB)()-(this.entity.lastLoaded||0)} > ${e}`),this.load(this.entityId,t,r,i)):(this.appLogsService.dlog(`--- Reload is ignored: since last loading expired ${(0,N.tB)()-(this.entity.lastLoaded||0)} <= ${e}`),this.entityWasLoaded=!0,t&&t(this.entity),i&&i())}hardReload(t,r,i){const e=this.dontLoadEntity;this.dontLoadEntity=!1,this.load(this.entityId,o=>{this.dontLoadEntity=e,t&&t(o)},r,i)}shortcutsHandler(t,r=null,i=null,e=null,o=null){if(!this.keyDownListenerStopped)if(!t.ctrlKey||t.shiftKey||t.altKey){if(!t.ctrlKey&&!t.shiftKey&&!t.altKey&&t.which===m._f)return t.stopPropagation(),i?i():this.cancel(),!1}else switch(t.which){case m.E:return t.stopPropagation(),o?o():this.edit(),!1;case m.S:return t.stopPropagation(),r?r():this.save(),!1;case m.N:return t.stopPropagation(),e?e():this.new(),!1}return!0}showMessageBox(t){return this.keyDownListenerStopped=!0,this.appLogsService.showMessageBox(t,()=>this.keyDownListenerStopped=!1)}informationMessageBox(t,r,i){return this.keyDownListenerStopped=!0,this.appLogsService.informationMessageBox(t,r,()=>{this.keyDownListenerStopped=!1,i&&i()})}errorMessageBox(t,r,i){return this.keyDownListenerStopped=!0,this.appLogsService.errorMessageBox(t,r,()=>{this.keyDownListenerStopped=!1,i&&i()})}warningMessageBox(t,r,i){return this.keyDownListenerStopped=!0,this.appLogsService.warningMessageBox(t,r,()=>{this.keyDownListenerStopped=!1,i&&i()})}confirmMessageBoxYesNo(t,r,i,e=0){return this.keyDownListenerStopped=!0,this.appLogsService.confirmMessageBoxYesNo(t,r,i,()=>this.keyDownListenerStopped=!1,e)}confirmMessageBoxYesNoCancel(t,r,i,e,o=0){return this.keyDownListenerStopped=!0,this.appLogsService.confirmMessageBoxYesNoCancel(t,r,i,e,()=>this.keyDownListenerStopped=!1,o)}}return y})()},31981:(O,M,a)=>{a.d(M,{H:()=>d,n:()=>v});var l=a(44703),m=a(23462),F=a(47094);class v extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.Department}get entitytitle(){return this.entityId?`Abteilung "${this.departmentName}"`:"Neue Abteilung"}get entityId(){return this.departmentId}set entityId(f){this.departmentId=f}insertWithIds(){return!0}}class d extends F.${}},97910:(O,M,a)=>{a.d(M,{o:()=>v,q:()=>d});var l=a(44703),m=a(23462),F=a(47094);class v extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.WebAppToWebAppRole}get entityId(){return this.webAppToWebAppRoleId}set entityId(f){this.webAppToWebAppRoleId=f}}class d extends F.${}},23462:(O,M,a)=>{a.d(M,{M:()=>m});var l=a(57764);class m extends l.H{}},47094:(O,M,a)=>{a.d(M,{$:()=>F});var l=a(15113);class m{constructor(d="",u){this.filterPrefix="",this.alwaysUsefilterPrefix=!1,this.useObjectFilter=!0,this.dontConsiderFields=",filterPrefix,alwaysUsefilterPrefix,dontConsiderFields,useObjectFilter,onPrepare,dontResetFields,",this.dontResetFields="",this.filterReset(),u&&Object.assign(this,u),this.filterPrefix=d}isFieldEmpty(d){let u;const f=this[d];if(u=!(f||"boolean"==typeof f&&!1===f),!u)if(f instanceof Array)u=0===f.length;else switch(typeof f){case"number":u=0===f;break;case"string":u="*"===f}return u}initField(d){this.isFieldEmpty(d)||(this[d]instanceof Array?this[d]=[]:"string"==typeof this[d]?Object.assign(this,{[d]:""}):this[d]=null)}isServiceField(d){return(","+this.dontConsiderFields+",").indexOf(","+d+",")>-1}isFixedField(d){return(","+this.dontResetFields+",").indexOf(","+d+",")>-1}getFilterURL(){const d=Object.assign({},this);this.doPrepare&&this.doPrepare(d);let u="";for(const f in d)if(!d.isServiceField(f)&&d.propertyIsEnumerable(f)&&!d.isFieldEmpty(f)){let x="";const W=d[f];W instanceof Array?W.length>0&&(x=W.join()):x=l.Z(W),x&&(u+=`&${f}=${x}`)}return u.length&&(u=u.substring(1)),u.length?u=d.filterPrefix+"?"+u:d.alwaysUsefilterPrefix&&(u=d.filterPrefix),u}getFilter(){const d=Object.assign({},this);return this.doPrepare&&this.doPrepare(d),delete d.alwaysUsefilterPrefix,delete d.filterPrefix,delete d.useObjectFilter,delete d.dontConsiderFields,delete d.dontResetFields,d}doPrepare(d){for(const u in this)if(!this.isServiceField(u)&&this.propertyIsEnumerable(u)&&!this.isFieldEmpty(u)){const f=d[u];"string"==typeof f&&(d[u]=f.trim())}this.onPrepare&&this.onPrepare(d)}filterReset(){for(const d in this)!this.isServiceField(d)&&!this.isFixedField(d)&&this.propertyIsEnumerable(d)&&this.initField(d)}}class F extends m{}},51631:(O,M,a)=>{a.d(M,{T:()=>m});var l=a(61714);class m extends l.A{}},99589:(O,M,a)=>{a.d(M,{J:()=>t});var l=a(60177),m=a(51631),F=a(44703),v=a(54438),d=a(10467),u=a(57764),f=a(61714),x=a(21413),W=a(40605),N=a(27468),P=a(45197),C=a(37085),T=a(33570),S=a(15113),D=a(66664),y=a(67336);let h=(()=>{class r{static#t=this.delayDoItemSelect=500;static#e=this.delayDoItemFocus=500;static#i=this.dalayFocusLastItem=500;static#s=this.dalayFocusFirstItem=1250;get isLoading(){return this._isLoading}set isLoading(e){const o=this._isLoading;this._isLoading=e,o&&!e&&this.entityListLoaded$.next()}get hierarchyLevel(){return this._hierarchyLevel}set hierarchyLevel(e){this._hierarchyLevel=e,this.focusedEntityShadowed&&(this.focusedEntityShadowed.hierarchyLevel=e)}constructor(e,o,n,s,g,E,c){this.TEntity=e,this._listName=o,this.routing=n,this.filter=s,this.reloadAfterItemUpdate=!1,this.alwaysFocused=!0,this.afterLoadFocusFirstItem=!1,this.batchInsert=!0,this.focusedItemGridIndex=-1,this.useFocusedGridIndex=!0,this.confirmationsOn=!1,this.dontShowErrors=!0,this.isConnectedWithSortedGrid=!0,this.deletedItems=[],this.shouldBeNotEmpty=!1,this.entityListLoaded$=new x.B,this._isLoading=!1,this.updateItemIfWasNotFoundInList=!1,this._hierarchyLevel=0,this._focusedTimer=null,this._selectedTimer=null,this._selectedItemIds=[],this._focusedItemId=0,this._items=[],this._reloadAnyway=!1,this.lastElement=-1,this.appLogsService=g??(0,v.WQX)(D.w),this.repositoryService=E??(0,v.WQX)(P.U),this.uiNotificationsService=c??(0,v.WQX)(C.u),this.translate=this.appLogsService.translate}get items(){return this._items}set items(e){this._items=e,this.deletedItems=[],this.approveFocusedSelectedItems()}get selectedItemIds(){return this._selectedItemIds}set selectedItemIds(e){this._selectedItemIds=e,this._selectedTimer&&this._selectedTimer.unsubscribe(),this._selectedTimer=(0,W.Y)(r.delayDoItemSelect).subscribe(()=>{this._selectedTimer?.unsubscribe(),this.doSelect(e)})}get focusedItemId(){return this._focusedItemId}set focusedItemId(e){Array.isArray(e)&&(e=e.length>0?e[0]:0),(!e||"number"!=typeof e)&&(e=0),(this._focusedItemId!==e||this._reloadAnyway||!e)&&(this._focusedItemId=e,this._focusedTimer&&this._focusedTimer.unsubscribe(),this._focusedTimer=(0,W.Y)(r.delayDoItemFocus).subscribe(()=>{this._focusedTimer?.unsubscribe(),this.doFocus(e)}))}get focusedItem(){return this.focusedItemId?this.getItemById(this.focusedItemId):null}get changed(){return this.deletedItems.length>0||this.items.some(e=>e.entityChanged)}get isValidInput(){return(!this.shouldBeNotEmpty||this.items.length>0)&&this.items.every(e=>e.isValidInput)}approveFocusedSelectedItems(e=0){const o=this.focusedItem;this._reloadAnyway=!0,o?this.focusedItemId=this.focusedItemId:0!==e?this.focusedItemId=e:this.alwaysFocused?this.focusFirstItem():this.focusedItemId=0,0===this.items.length?this.clearSelected():this.selectedItemIds=this.selectedItemIds.filter(n=>null!==this.getItemById(n))}focusFirstItem(e,o=r.dalayFocusFirstItem){const n=this.useFocusedGridIndex?this.focusedItemGridIndex:this.focusedItemId;this.useFocusedGridIndex&&(o=0),setTimeout(()=>{this.items&&this.items.length>0?n===(this.useFocusedGridIndex?this.focusedItemGridIndex:this.focusedItemId)&&(this.useFocusedGridIndex?this.focusedItemGridIndex=0:this.focusedItemId=this.items[0].entityId):this.focusedItemId=0,e&&e(this.items)},o)}focusLastItem(e,o=r.dalayFocusLastItem){const n=this.useFocusedGridIndex?this.focusedItemGridIndex:this.focusedItemId;this.useFocusedGridIndex&&(o=0),setTimeout(()=>{this.items&&this.items.length>0?n===(this.useFocusedGridIndex?this.focusedItemGridIndex:this.focusedItemId)&&(this.useFocusedGridIndex?this.focusedItemGridIndex=this.items.length-1:this.focusedItemId=this.items[this.items.length-1].entityId):this.focusedItemId=0,e&&e(this.items)},o)}gridUpDownProcessing(e){switch(e.event.keyCode){case y.yZ:this.focusFirstItem(null,100),e.event.stopPropagation();break;case y.Kp:this.focusLastItem(null,100),e.event.stopPropagation()}}getItemById(e){return this.items?this.items.find(o=>o.entityId===e):null}getItemIndex(e){return this.items.findIndex("number"==typeof e?o=>o.entityId===e:e instanceof u.H?o=>o===e||e?.entityId&&(o?.entityId===e?.entityId||e.insertWithIds()&&-o?.entityId===e?.entityId):o=>o===e)}get focusedItemIndex(){return this.getItemIndex(this.focusedItem)}isDeleted(e,o=!1){const n=this.deletedItems.indexOf(e);return o&&n>-1&&this.deletedItems.splice(n,1),n>-1}setTriggerItem(e,o){o?(e.entityChanged=!0,this.isDeleted(e,!0)):(e.isNew()||this.deletedItems.push(e),e.entityChanged=!1)}clearSelected(){this.selectedItemIds=[]}clearFocused(){this.focusedItemId=0}clear(){this.items=[]}createFocusedShadowEntity(e){return this.focusedEntityShadowed=new f.A(this.TEntity,e),this.focusedEntityShadowed.entityList=this,this.focusedEntityShadowed.hierarchyLevel=this.hierarchyLevel,this.focusedEntityShadowed}load(e,o,n){if(this.filter&&this.filter.useObjectFilter)return this.loadWithObjFilter(e,o,n);this.loadWithURLFilter(e,o,n)}loadWithObjFilter(e,o,n){return this._load(this.repositoryService.getDataByObjFilter(this.routing+(this.filter.filterPrefix?"/"+this.filter.filterPrefix:""),this.filter.getFilter()),e,o,n)}loadWithURLFilter(e,o,n){return this._load(this.repositoryService.getDataByURLFilter(this.routing,this.filter?this.filter.getFilterURL():""),e,o,n)}_load(e,o,n,s){let g;this.loginSubscriptionLoad||0!==this.hierarchyLevel?this.loginSubscriptionLoad&&this.unsubscribe(this.loginSubscriptionLoad):this.loginSubscriptionLoad=this.repositoryService.authService.loginAction$.subscribe(A=>{A.result?this._load(e,o,n,s):this.unsubscribe(this.loginSubscriptionLoad)}),this.isLoading=!0,this.uiNotificationsService&&(g=this.uiNotificationsService.showMessage(this.translate.instant("core.msg.loading",{value:this.translate.instant(this._listName)})));const E=this.filter?Object.assign({},this.filter):null;let c=this.afterLoadFocusFirstItem;return e.subscribe(A=>{try{if(this.unsubscribe(this.loginSubscriptionLoad),!(0,S.n4)(E,this.filter))return!1;const L=[];A&&A.map(b=>L.push(new this.TEntity(b))),this.focusedEntityShadowed&&(this.focusedEntityShadowed.entityWasLoaded=!1),this.items=L,this.uiNotificationsService&&this.uiNotificationsService.showMessage(this.translate.instant("core.msg.loaded",{value:this.translate.instant(this._listName),count:this.items.length}),g),this.afterLoadFocusFirstItem?this.focusFirstItem(()=>{o&&o(this.items),s&&s()}):o&&o(this.items)}catch(L){c=!1;const b=this.translate.instant("core.error.loading",{value:this.translate.instant(this._listName)}),B=(0,S.$5)(L);B!==T.DA?(this.uiNotificationsService&&this.uiNotificationsService.showMessage(`${b}: ${B}`,g),this.dontShowErrors||this.appLogsService.errorMessageBox(b,B),this.unsubscribe(this.loginSubscriptionLoad)):this.uiNotificationsService.stopMessage(g),n&&n({errMsg:B===T.DA?T.DA:`${b}: ${B}`,entity:this})}finally{s&&!c&&s(),this.isLoading=!1}},A=>{this.uiNotificationsService&&this.uiNotificationsService.showMessage(this.translate.instant("core.error.loading",{value:this.translate.instant(this._listName)}),g,6e3),n&&n(A),s&&s(),this.isLoading=!1}),!0}updateListItem(e,o=this.lastElement,n=!1){if(!e?.isEmpty()&&0!==e.entityId){if(!n){let g;if(g=this.getItemIndex(e),g<0&&this.updateItemIfWasNotFoundInList&&(g=this.focusedItemIndex),g<this.items.length&&g>-1)return this.items[g]!==e&&this.items[g].assign(e),this.focusedItemId!==e.entityId&&(this.focusedItemId=e.entityId),e.entityId}const s=new this.TEntity(e);if(s)return o<0||this.items.length<=o?this.items.push(s):this.items.splice(o,0,s),this.focusedItemId=s.entityId,s.entityId}return-1}deleteListItem(e,o=!0,n=!1){if(!e)return!1;const s=this.getItemIndex(e);return s>-1?(o&&e instanceof u.H&&!e.isNew()&&this.deletedItems.push(this.items[s]),this.items.splice(s,1),this.isConnectedWithSortedGrid?0===this.items?.length&&this.approveFocusedSelectedItems():setTimeout(()=>this.approveFocusedSelectedItems(0===this.items.length?0:this.items[s-(s>=this.items.length?1:0)].entityId)),!0):(n&&!(e instanceof u.H&&e.isNew())&&this.deletedItems.push(e),!1)}deleteAll(e=!0){for(let o=this.items.length-1;o>=0;o--){const n=this.items[o];e&&!n.isNew()&&this.deletedItems.push(n)}this.items.splice(0)}doSelect(e){}doFocus(e){const o=this.focusedEntityShadowed?.entityId??0,n=this._reloadAnyway;this._reloadAnyway=!1,this.focusedEntityShadowed&&!this.focusedRoutingCallBack&&(this.focusedEntityShadowed.entityId!==e||n)&&(this.focusedEntityShadowed.entityId=e),this.focusedRoutingCallBack&&setTimeout(()=>{this.focusedRoutingCallBack(this.focusedItem)}),this.focusedCallBack&&(o!==e||n)&&setTimeout(()=>{this.focusedCallBack(this.focusedItem)})}saveAsync(){var e=this;return(0,d.A)(function*(){return new Promise((o,n)=>e.save(null,()=>o(!1),()=>o(!0)))})()}unsubscribe(e){e?.unsubscribe(),e=null}save(e,o,n){var s=this;return(0,d.A)(function*(){let g=0;if(s.beforeSaveCallBack&&(g=yield s.beforeSaveCallBack(s.items)),1===g)return e&&e(),n&&n(),void(s.savedCallBack&&s.savedCallBack());if(3===g)return void(o&&o({errMsg:T.DA}));const c=[],A=[],L=[];let B,b=0;if(s.deletedItems.forEach(()=>c.push(new x.B)),s.items.forEach(p=>{if(p.entityChanged)if(p.isNew())if(s.batchInsert){const I=new s.TEntity(p);I.entityId=0,A.push(I.deleteFields())}else c.push(new x.B);else L.push(p.deleteFields())}),A.length>0&&c.push(new x.B),L.length>0&&c.push(new x.B),0===c.length)return e&&e(),s.savedCallBack&&s.savedCallBack(),void(n&&n());!s.loginSubscriptionSave&&0===s.hierarchyLevel&&s.repositoryService.authService.user.isAdmin?s.loginSubscriptionSave=s.repositoryService.authService.loginAction$.subscribe(p=>{p.result?(s.appLogsService.dlog("!!! - relogin - resave list",p),s.save(e,o,n)):s.unsubscribe(s.loginSubscriptionSave)}):s.loginSubscriptionSave&&s.unsubscribe(s.loginSubscriptionSave),s.uiNotificationsService&&(B=s.uiNotificationsService.showMessage(s.translate.instant("core.msg.saving",{value:s.translate.instant(s._listName)}))),(0,N.p)(c).subscribe(()=>{s.unsubscribe(s.loginSubscriptionSave),s.appLogsService.dlog("++ next save list <"+s.translate.instant(s._listName)+">"),s.items=s.items.slice(),s.uiNotificationsService&&s.uiNotificationsService.showMessage(s.translate.instant("core.msg.saved",{value:s.translate.instant(s._listName)}),B),e&&e(),s.savedCallBack&&s.savedCallBack()},p=>{s.deletedItems=s.deletedItems.filter(j=>j),s.appLogsService.error("!! error save list <"+s.translate.instant(s._listName)+">: ",{error:p});const I=s.translate.instant("core.error.saving",{value:s.translate.instant(s._listName)}),w=(0,S.$5)(p);w!==T.DA?(s.uiNotificationsService&&s.uiNotificationsService.showMessage(`${I}: ${w}`,B),s.dontShowErrors||s.appLogsService.errorMessageBox(I,w),s.unsubscribe(s.loginSubscriptionSave)):s.uiNotificationsService.stopMessage(B),o&&o({errMsg:w===T.DA?T.DA:`${I}: ${w}`,entity:s})},()=>{s.appLogsService.dlog("++ complete save list <"+s.translate.instant(s._listName)+">"),s.deletedItems=s.deletedItems.filter(p=>p),n&&n()});for(let p=0;p<s.deletedItems.length;p++){const I=p;s.deletedItems[I]&&s.deletedItems[I].delete(s.repositoryService,()=>{s.deletedItems[I]=null,c[I].next()},w=>c[I].error(w),()=>c[I].complete())}b=s.deletedItems.length;let R=s.routing.toLowerCase();if("/all"===R.slice(-4)&&(R=R.slice(0,R.length-4)),R+="/list",s.batchInsert){if(A.length>0){const p=b;s.repositoryService.postData(R,A).subscribe(I=>{s._items.splice(0,s._items.length,...s.items.filter(w=>!(w.isNew()&&w.entityChanged)).concat(I.map(w=>new s.TEntity(w)))),s.appLogsService.dlog("--- next insert list <"+s.translate.instant(s._listName)+">",p,s.items),c[p].next()},I=>c[p].error(I),()=>{s.appLogsService.dlog("--- complete insert list <"+s.translate.instant(s._listName)+">",p),c[p].complete()}),b++}}else s.items.forEach((p,I)=>{if(p.isNew()&&p.entityChanged){const w=b;p.save(s.repositoryService,j=>{const V=c[w];s.afterInsertCallBack?s.afterInsertCallBack(j,()=>{V.next(),V.complete()}):V.next()},j=>c[w].error(j),()=>{s.afterInsertCallBack||c[w].complete()}),b++}});if(L.length>0){const p=b;s.repositoryService.putData(R,L).subscribe(()=>{s.items.forEach(I=>{I.entityChanged&&(I.entityChanged=!1)}),s.appLogsService.dlog("--- next update list <"+s.translate.instant(s._listName)+">",p),c[p].next()},I=>c[p].error(I),()=>{s.appLogsService.dlog("--- complete update list <"+s.translate.instant(s._listName)+">",p),c[p].complete()})}})()}getId4NewItem(){return this.items.reduce((e,o)=>e<o.entityId?e:o.entityId,0)-1}newItem(e,o){const n=new this.TEntity(e);return null!=o&&(n.entityChanged=o),n.entityId=this.getId4NewItem(),this.items.push(n),n}match2KeysArray(e,o,n,s){let g=!1;for(let E=this.items.length-1;E>=0;E--){const c=this.items[E];-1===n.indexOf(c[s])&&(this.deleteListItem(c),g=!0)}return n.forEach(E=>{if(!this.items.find(c=>c[s]===E)){const c=new this.TEntity;c[o]=e[o],c[s]=E,c.entityChanged=!0,this.items.push(c),g=!0}}),g}match2array(e,o,n,s){return this.match2KeysArray(e,o,e[n],s)}onFocusedRowChanging(e){this.focusedEntityShadowed&&this.focusedEntityShadowed.entityIsLoading&&(e.cancel=!0)}}return r})();class t extends h{createFocusedShadowEntity(i){const e=new m.T(this.TEntity,i);return this.focusedEntityShadowed=e,this.focusedEntityShadowed.entityList=this,this.focusedEntityShadowed.hierarchyLevel=this.hierarchyLevel,e}getExportFilename4List(i="",e="",o="",n=!0){const s=(0,S.hK)(F.B_+"_"+(""!==i?i+"_":"")+(n?this.translate.instant(this._listName):"")+(""!==o?"_"+o+"_":"")+(0,l.Yq)(new Date,"_yyyyMMdd",v.qyG)+(""!==e?"_"+e:""));return console.log(s),s}}},96995:(O,M,a)=>{a.d(M,{D:()=>h});var l=a(44703),m=a(23462);class F extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.CostCentre}get entityId(){return this.costCentreId}set entityId(r){this.costCentreId=r}}var v=a(31981);class d extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.DocumentArt}get entityId(){return this.documentArtId}set entityId(r){this.documentArtId=r}}class u extends m.M{get entityId(){return this.id}set entityId(r){this.id=r}}class f extends u{constructor(){super(...arguments),this.typeName=l.Hv.EmployeeAttribute}get entityId(){return this.employeeAttributeId}set entityId(r){this.employeeAttributeId=r}}class x extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.EmployeeStatus}get entityId(){return this.employeeStatusId}set entityId(r){this.employeeStatusId=r}}class W extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.Project}get entityId(){return this.projectId}set entityId(r){this.projectId=r}}class N extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.Rang}get entityId(){return this.rangId}set entityId(r){this.rangId=r}}class P extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.WebApp}get entityId(){return this.webAppId}set entityId(r){this.webAppId=r}}var C=a(97910);class T extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.WebAppRole}get entityId(){return this.webAppRoleId}set entityId(r){this.webAppRoleId=r}}class S extends m.M{constructor(){super(...arguments),this.typeName=l.Hv.Subsidiary}get entityId(){return this.subsidiaryId}set entityId(r){this.subsidiaryId=r}}var D=a(99589),y=a(54438);let h=(()=>{class t{constructor(){this.costCentreList=new D.J(F,"Kostenstellenliste",l.Hv.CostCentre+"/all"),this.departmentList=new D.J(v.n,"Abteilungsliste",l.Hv.Department+"/all"),this.documentArtList=new D.J(d,"Dokumentartenliste",l.Hv.DocumentArt+"/all"),this.employeeStatusList=new D.J(x,"Mitarbeiterstatusliste",l.Hv.EmployeeStatus+"/all"),this.projectList=new D.J(W,"Projektliste",l.Hv.Project+"/all"),this.rangList=new D.J(N,"Rangenliste",l.Hv.Rang+"/all"),this.webAppList=new D.J(P,"Web Applikationen Liste",l.Hv.WebApp+"/all"),this.roleList=new D.J(T,"Rolenliste",l.Hv.WebAppRole+"/all"),this.employeeAttributeList=new D.J(f,"Merkmalliste",l.Hv.EmployeeAttribute+"/all"),this.webAppFilter=new C.q("WebAppFilter"),this.subsidiaryList=new D.J(S,"Subsidiary",l.Hv.Subsidiary+"/all"),this.showIds=!1}loadData(i){this.costCentreList.load(null,null,i),this.departmentList.load(null,null,i),this.documentArtList.load(null,null,i),this.employeeStatusList.load(null,null,i),this.projectList.load(null,null,i),this.rangList.load(null,null,i),this.webAppList.load(null,null,i),this.roleList.load(null,null,i),this.employeeAttributeList.load(null,null,i),this.subsidiaryList.load(null,null,i)}static#t=this.\u0275fac=function(e){return new(e||t)};static#e=this.\u0275prov=y.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()}}]);