import{a as ge}from"./chunk-I5K7GPAI.js";import{a as te,b as ne,d as le}from"./chunk-O2WVXTHR.js";import{a as ie}from"./chunk-T7RLVMCF.js";import"./chunk-FH4KR5HL.js";import{b as p}from"./chunk-ZBRKSVZT.js";import{a as m}from"./chunk-PLS4K4KY.js";import"./chunk-JN2ZUHXX.js";import"./chunk-NLCRYDJ4.js";import"./chunk-RB5TOXJE.js";import"./chunk-7GYHTWED.js";import{a as se}from"./chunk-AYO4TCFG.js";import"./chunk-XOY5UTVP.js";import{a as oe}from"./chunk-25WJNSQA.js";import{b as Z}from"./chunk-5DQKN4SL.js";import"./chunk-G7OJYPNY.js";import{a as ce}from"./chunk-PWALQELY.js";import"./chunk-3GSDFESG.js";import"./chunk-7QEXVS2A.js";import{a as ee}from"./chunk-D4RZOGGF.js";import"./chunk-H6QPU4XN.js";import"./chunk-IMWNGRKR.js";import"./chunk-5WJM4RWS.js";import{a as re,b as ae,c as de}from"./chunk-UZB7YFT6.js";import{a as fe}from"./chunk-HXEFMD5A.js";import"./chunk-KCLQIV7M.js";import"./chunk-5KCUTXXV.js";import{a as ue}from"./chunk-JUDWAYYT.js";import"./chunk-4IRXRL4C.js";import"./chunk-LAJI7RPC.js";import{a as K}from"./chunk-WFZJP5WR.js";import"./chunk-F6KLNSUK.js";import{b as me,c as pe,d as he}from"./chunk-YOJ4KGSB.js";import"./chunk-CO3X7TQN.js";import{a as X}from"./chunk-VSFNMVXJ.js";import"./chunk-WQ6DP4JQ.js";import{Ib as $,Mb as Q,Ob as x,P as j,T as W,a as De,c as T,nb as k,rb as V,s as D,v as N,y as C}from"./chunk-YSQLW2JA.js";import{eb as q,fb as H,ma as w,pa as O,ud as J}from"./chunk-NVJ2ZZFT.js";import{$f as Y,Aa as f,Ba as z,Dc as c,Fb as L,Mg as G,Nc as l,Ng as A,Pd as b,Qf as E,Rd as v,Te as U,ab as g,af as S,bb as I,cd as B,dd as y,g as Te,ha as F,hd as o,wc as P,ya as u,zc as R}from"./chunk-SKPDQO4E.js";var Ie=`<div class="h-100">
  <side-navigation #sideNavigation>
    <ng-template side-navigation-nav>
      <div *ngIf="permissionIdentityDetails" class="fast-search my-3">
        <label class="report-form-label">
          <cds-icon shape="fast_search"></cds-icon>
          {{'IDENTITY.FILTER_TITLE_FAST_SEARCH_CREDENTIAL' | translate}}
        </label>
        <armon-search-text-input [(ngModel)]="credentialData" [minLength]="3"
          (ngModelChange)="onCredentialDataEntered($event)" placeholder="CREDENTIAL.TITLE_DATA">
        </armon-search-text-input>
      </div>
      <armon-identity-filter [currentFilter]="identityFilter" [enableDetailSearch]="permissionIdentityDetails"
        (filterChanged)="onFilterChanged($event)" (filterDetailChanged)="onDetailFilterChanged($event)">
      </armon-identity-filter>
    </ng-template>
    <ng-template side-navigation-content>
      <div class="row my-3">
        <div class="col-xl-12 d-flex align-items-center">
          <button class="btn btn-sm btn-primary" (click)="onAddIdentityButtonClicked()"
            *ngIf="permissionAddIdentity">{{'IDENTITY.ADD' | translate:languageService.userTranslate}}</button>
          <button nz-dropdown [nzDropdownMenu]="menuPrint" class="btn btn-success btn-sm ms-auto">
            {{'BUTTON.DOWNLOAD' | translate}}
            <cds-icon shape="angle" direction="down"></cds-icon>
          </button>
          <nz-dropdown-menu #menuPrint="nzDropdownMenu">
            <ul nz-menu>
              <li nz-menu-item (click)="onGetExcelClicked($event)">{{'BUTTON.EXCEL'|translate}}</li>
              <li nz-menu-item (click)="onGetPDFClicked($event)">{{'BUTTON.PDF'|translate}}</li>
            </ul>
          </nz-dropdown-menu>
        </div>
      </div>
      <div class="row" [@listAnimationFast]="identities.length">
        <div class="col-xxxl-4 col-xl-6 col-lg-6 col-md-12" *ngFor="let identity of identities">
          <armon-identity-basic [identity]="identity" (identityUpdated)="onIdentityUpdated($event)"
            [enabledNotificationJobTypes]="enabledNotificationJobTypes"
            [checkMobileDeviceMismatchOnLogin]="checkMobileDeviceMismatchOnLogin">
          </armon-identity-basic>
        </div>
      </div>
      <div class="row" *ngIf="identities.length > 0">
        <div class="col-12 mb-3">
          <armon-pagination [paginationResponse]="paginationResponse" (pageChanged)="pageChanged($event)">
          </armon-pagination>
        </div>
      </div>
    </ng-template>
  </side-navigation>
</div>`;var ye=`.justify-content-center{-webkit-box-pack:center;-moz-box-pack:center;-webkit-flex-pack:center;-ms-flex-pack:center;-moz-justify-content:center;-webkit-justify-content:center;justify-content:center}.justify-content-flex-end{-webkit-box-pack:end;-moz-box-pack:end;-webkit-flex-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;-webkit-justify-content:flex-end;justify-content:flex-end}.card-footer{padding:.28rem .7rem}.alert{font-size:.756rem}@media screen and (min-width: 992px){.modal-xxl{max-width:1640px}}@media screen and (min-width: 1200px){.modal-xxxl{max-width:1860px}}.modal-fs{max-width:none;position:absolute;margin:auto;inset:16px;height:100vh;display:flex}.btn-link{text-decoration:none}.btn-link:hover{text-decoration:underline}.invalid-feedback{margin-top:0!important;font-size:.672rem!important}.fast-search{padding:.35rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;background-color:#4451870d;border:1px solid rgba(68,81,135,.2);color:#445187}
`;var h=Te(De());var be=`<div class="card mb-3">
  <!-- mhs-10 card-body -->
  <div class="card-body cursor-pointer hover-secondary rounded-top rounded-top-2" (click)="onDetailClicked($event)">
    <!-- mb-3 row -->
    <div class="row">
      <div class="col-12 d-flex">
        <armon-captionlines *ngIf="identity.userCaptions" [captionlines]="identity.userCaptions" [showBorder]="false">
        </armon-captionlines>
        <div class="d-flex flex-column ms-auto align-items-end" *ngIf="identity.isDisabled || identity.hasForbiddance">
          <armon-icon-label [colorCode]="7" *ngIf="identity.hasForbiddance" class="me-0">
            <ng-template icon-label-icon>
              <cds-icon shape="no-access" solid size="sm"></cds-icon>
            </ng-template>
            <ng-template icon-label-content>
              <span>{{'USER_CAPTION.USER_FORBIDDEN'|translate}}</span>
            </ng-template>
          </armon-icon-label>
          <armon-icon-label [colorCode]="4" *ngIf="identity.isDisabled" class="mt-2 me-0">
            <ng-template icon-label-icon>
              <cds-icon shape="user" solid size="sm"></cds-icon>
            </ng-template>
            <ng-template icon-label-content>
              <span>{{'IDENTITYSTATUS.PASSIVE'|translate}}</span>
            </ng-template>
          </armon-icon-label>
        </div>
      </div>
    </div>
    <!-- <div class="row">
      <div class="col-12 d-flex flex-column b-t-1 py-2">
        <span class="text-sm text-black-50" *ngIf="identity.organizationUnitNames">{{'IDENTITY.TITLE_ORGANIZATION_UNITS'|translate}}</span>
        <span class="text-sm" *ngIf="identity.organizationUnitNames">{{identity.organizationUnitNames}}</span>
        <span class="text-sm text-black-50" *ngIf="identity.userGroupNames">{{'IDENTITY.TITLE_USER_GROUP'|translate}}</span>
        <span class="text-sm" *ngIf="identity.userGroupNames">{{identity.userGroupNames}}</span>
      </div>
    </div> -->
  </div>
  <div class="card-footer" *ngIf="visibleButtons.length > 0 || identity.isAnonymized">
    <ng-container *ngIf="!identity.isAnonymized && visibleButtons.length > 0">
      <button class="btn btn-sm btn-link" *ngFor="let button of visibleButtons"
        (click)="onFooterButtonClicked($event, button.event)">{{button.text | translate}}</button>
      <button nz-dropdown [nzDropdownMenu]="menuSub" class="btn btn-link btn-sm me-2" *ngIf="hiddenButtons.length > 0"
        [nzClickHide]="true">
        <cds-icon shape="ellipsis-horizontal"></cds-icon>
      </button>
      <nz-dropdown-menu #menuSub="nzDropdownMenu">
        <ul nz-menu>
          <li nz-menu-item *ngFor="let button of hiddenButtons" (click)="onFooterButtonClicked($event, button.event)">
            {{button.text | translate}}</li>
        </ul>
      </nz-dropdown-menu>
    </ng-container>
    <ng-container *ngIf="identity.isAnonymized">
      <span class="text-xs text-italic">
        <cds-icon shape="eraser" solid class="cds-icon-12 color-gray me-1"></cds-icon>
        {{'IDENTITY.ANONYMIZED'|translate:languageService.userTranslate}}
      </span>
    </ng-container>
  </div>
</div>`;var ve=`.card-footer{padding:.28rem .7rem}.alert{font-size:.756rem}@media screen and (min-width: 992px){.modal-xxl{max-width:1640px}}@media screen and (min-width: 1200px){.modal-xxxl{max-width:1860px}}.modal-fs{max-width:none;position:absolute;margin:auto;inset:16px;height:100vh;display:flex}.btn-link{text-decoration:none}.btn-link:hover{text-decoration:underline}.invalid-feedback{margin-top:0!important;font-size:.672rem!important}.justify-content-center{-webkit-box-pack:center;-moz-box-pack:center;-webkit-flex-pack:center;-ms-flex-pack:center;-moz-justify-content:center;-webkit-justify-content:center;justify-content:center}.justify-content-flex-end{-webkit-box-pack:end;-moz-box-pack:end;-webkit-flex-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;-webkit-justify-content:flex-end;justify-content:flex-end}.identityImage{margin-top:5px;width:48px!important;height:48px!important;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;box-shadow:0 0 2px #999}.identityImageEmpty{background:#ebebeb;color:#fff}.identityImageArea{position:relative}.identityImageArea .identityImageEdit{display:none}.identityImageArea:hover .identityImageEdit{display:flex}.identityImageEdit{position:absolute;top:0;align-items:center;justify-content:center;background:#0a2a5a;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;height:48px;width:48px;color:#fff;opacity:.7;margin-top:5px;cursor:pointer}.identityInfo>p{margin-top:4px}.passive{box-shadow:0 .125rem #c82602}
`;var xe=function(d,e,t,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(d,e,t,i);else for(var a=d.length-1;a>=0;a--)(r=d[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},_=class extends ge{identityService;modalService;routingService;authService;sessionService;drawerService;interactionService;languageService;identityThumbnail;permissionEdit;identityUpdated=new F;identity;enabledNotificationJobTypes;checkMobileDeviceMismatchOnLogin;constructor(e,t,i,s,n,r,a,M){super(s),this.identityService=e,this.modalService=t,this.routingService=i,this.authService=s,this.sessionService=n,this.drawerService=r,this.interactionService=a,this.languageService=M}ngOnInit(){this.initializeButtons()}initializeButtons(){let e=this.identityService.getOrganizationUnitIds(this.identity);this.permissionEdit=this.authService.checkPermission(o.IDENTITY.getEdit(),e),(this.permissionEdit||this.authService.checkPermission([o.IDENTITY.getReadDetailed(),o.IDENTITY.getCredentialWrite()],e))&&(this.identity.isDisabled==!1||this.authService.checkPermission(o.SYSTEM.getViewAllPassive(),e))&&this.addButton("BUTTON.EDIT",this.onEditButtonClicked),this.addButton("BUTTON.SHOW_ACCESS_LOGS",this.onShowReportButtonClicked,o.ACCESSLOG.getReportDetailed(),e),this.identity.hasUserAccount&&this.addButton("IDENTITY.CHANGE_PASSWORD",this.onChangePasswordButtonClicked,o.IDENTITY.getUserAccount(),e),this.checkMobileDeviceMismatchOnLogin&&this.addButton("IDENTITY.ALLOW_NEW_MOBILE_DEVICES",this.onAllowNewMobileDevicesButtonClicked,o.IDENTITY.getUserAccount(),e),this.permissionEdit&&this.addButton("IDENTITY.EDIT_PHOTOS",this.onEditPhotosClicked),this.permissionEdit&&(this.addButton("FORBIDDEN_IDENTITY.ADD_RECORD",this.onAddForbiddenRecordClicked,o.IDENTITY.getForbiddenView()),this.addButton("FORBIDDEN_IDENTITY.USER_LIST",this.onListUserForbiddenRecordsClicked,o.IDENTITY.getForbiddenView())),(this.permissionEdit||this.authService.checkPermission([o.IDENTITY.getReadDetailed(),o.IDENTITY.getCredentialWrite()],e))&&this.addButton("BUTTON.ACTION_HISTORY_EDIT",this.onActionHistoryButtonClicked),this.permissionEdit&&this.authService.checkPermission(o.ACCESSLOG.getInsertManualLog())&&this.addButton("ACCESSCONTROLPOINT.ADD_MANUAL_RECORD",this.onAddManualLogButtonClicked),this.authService.checkPermission([o.IDENTITY.getAccessNotifications(),o.ACCESSLOG.getReportSummary(),o.IDENTITY.getReadBasic()],e)&&this.enabledNotificationJobTypes.findIndex(t=>t.type==w.IdentityAccess)>-1&&this.addButton("MYACCOUNT.NOTIFICATION_ADD_TRIGGER_ACCESS",this.onAddAccessNotificationClicked),this.sessionService.hasModule(Y.PACS)&&this.authService.checkPermission([o.PPERMISSION.getWrite(),o.IDENTITY.getReadBasic()])&&this.enabledNotificationJobTypes.findIndex(t=>t.userPacsNotification==!0)>-1&&this.addButton("MYACCOUNT.NOTIFICATION_ADD_TRIGGER_PACS",this.onAddPACSNotificationClicked)}onEditButtonClicked(){this.modalService.open(p,{settings:{size:"xl",scrollable:!0,centered:!1},props:{identity:this.identity}}).result.then(e=>{this.identityUpdated.emit(e)}).catch(e=>{})}onShowReportButtonClicked(){this.routingService.gotoUserAccessLogs(this.identity.id)}onChangePasswordButtonClicked(){this.modalService.open(te,{settings:{size:"md"},props:{userId:this.identity.id,fullname:this.identity.fullname}}).result.then(e=>{}).catch(e=>{})}onAllowNewMobileDevicesButtonClicked(){this.interactionService.showDialog("IDENTITY.ALLOW_NEW_MOBILE_DEVICES","IDENTITY.ALLOW_NEW_MOBILE_DEVICES_CONFIRMATION",null,null,!0,"BUTTON.YES","",!1,()=>{this.identityService.deleteMobileDevices(this.identity.id).subscribe(()=>{this.interactionService.showMessage("IDENTITY.ALLOW_NEW_MOBILE_DEVICES_SUCCESS",null,l.Success)})})}onEditPhotosClicked(e){this.modalService.open(ie,{settings:{size:"lg"},props:{identityId:this.identity.id,title:this.identity.fullname}}).result.then(t=>{this.identityUpdated.emit(null)}).catch(t=>{})}onActionHistoryButtonClicked(){this.modalService.open(ne,{settings:{size:"lg",scrollable:!0},props:{userId:this.identity.id}}).result.then(e=>{}).catch(e=>{})}onAddManualLogButtonClicked(){this.modalService.open(ce,{settings:{size:"md",centered:!0},props:{userId:this.identity.id}}).result.then(e=>{}).catch(e=>{})}onAddAccessNotificationClicked(){setTimeout(()=>{let e=j.getEmptyModel(w.IdentityAccess);e.receiverFilter||(e.receiverFilter=O.getEmptyModel()),e.receiverFilter.userIds=[this.sessionService.currentUserId],e.settings.targetUserId=this.identity.id,this.modalService.open(se,{settings:{size:"lg",scrollable:!0},props:{notificationJob:e}}).result.then(t=>{}).catch(t=>{})},300)}onAddPACSNotificationClicked(){setTimeout(()=>{this.modalService.open($,{settings:{size:"lg",scrollable:!0},props:{availableTypes:W.filter(e=>e.userPacsNotification==!0&&this.enabledNotificationJobTypes.findIndex(t=>t.type==+e.type)>-1),typeSelectionText:"SCHEDULEDJOBS.TYPE_SELECTION_PACS_DIRECTION",typeSelectedFunction:e=>(e.settings.notification.receiverFilter||(e.settings.notification.receiverFilter=O.getEmptyModel()),e.settings.notification.receiverFilter.userIds=[this.sessionService.currentUserId],e.settings.subjectedEmployees.userIds=[this.identity.id],e)}}).result.then(e=>{}).catch(e=>{})},300)}onDetailClicked(e){this.drawerService.create({nzContent:le,nzClosable:!1,nzWidth:P(),nzContentParams:{identityId:this.identity.id}}).afterClose.subscribe(i=>{i&&i.result.then(s=>{this.identityUpdated.emit(null)}).catch(s=>{})})}onAddForbiddenRecordClicked(){let e=J.getEmptyModel();e.userId=this.identity.id,this.modalService.open(oe,{settings:{size:"md"},props:{record:e}}).result.then(t=>{this.identityUpdated.emit(null)}).catch(t=>{})}onListUserForbiddenRecordsClicked(){this.routingService.gotoManageForbiddenIdentities(this.identity.id)}static ctorParameters=()=>[{type:k},{type:v},{type:Q},{type:x},{type:b},{type:Z},{type:E},{type:S}];static propDecorators={identityUpdated:[{type:z}],identity:[{type:f}],enabledNotificationJobTypes:[{type:f}],checkMobileDeviceMismatchOnLogin:[{type:f}]}};_=xe([u({selector:"armon-identity-basic",template:be,standalone:!0,imports:[I,K,de,re,ae,g,C,N,D,y],styles:[ve]})],_);var _e=function(d,e,t,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(d,e,t,i);else for(var a=d.length-1;a>=0;a--)(r=d[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},Se=class{interactionService;identityService;sessionService;modalService;route;authService;settingsService;languageService;translate;identities=[];identityFilter;identityDetailFilter;detailMode=!1;detailModeResult=!1;waitingSearch;permissionAddIdentity;permissionIdentityDetails;paginationResponse=new A;paginationRequest=new G;enabledNotificationJobTypes;checkMobileDeviceMismatchOnLogin;credentialData;constructor(e,t,i,s,n,r,a,M,Ee){this.interactionService=e,this.identityService=t,this.sessionService=i,this.modalService=s,this.route=n,this.authService=r,this.settingsService=a,this.languageService=M,this.translate=Ee}get hasFilter(){return this.identityFilter!==null&&this.identityFilter!==void 0&&this.identityFilter.hasFilter}ngOnInit(){this.paginationRequest.take=R.REQUEST_ITEM_GRID_LIMIT,this.checkPermissions(),this.identityFilter||this.createFilter(),this.route.queryParams.subscribe(e=>{if(e&&e[T.OrganizationUnitId]&&e[T.OrganizationUnitId]!=""){let t=new q;t.id=e[T.OrganizationUnitId],t.includeDescendants=!1,this.identityFilter.organizationUnits=[t],this.identityFilter.organizationUnitIds=[t.id],this.identityFilter.filterOrganizationUnitMembersHierarchically=!1}this.getOrganizationSettings()})}ngAfterViewInit(){}getOrganizationSettings(){this.settingsService.getOrganizationSettings().subscribe(e=>{this.enabledNotificationJobTypes=e.notification.enabledTypeDefs,this.checkMobileDeviceMismatchOnLogin=e.checkMobileDeviceMismatchOnLogin,this.fetchIdentities(!1)})}onAddIdentityButtonClicked(){this.modalService.open(p,{settings:{size:"xl",scrollable:!0,centered:!1},props:{identityId:null}}).result.then(e=>{e&&this.fetchIdentities(!1)}).catch(e=>{})}onCredentialDataEntered(e){this.credentialData===null||this.credentialData===void 0||this.credentialData.length===0||this.identityService.findIdentityByCredential(this.credentialData).subscribe({next:t=>{switch(t.existance){case m.NotExists:this.interactionService.showMessage("IDENTITY.CREDENTIAL_NOT_FOUND",null,l.Warning);break;case m.Visitor:t.visitorInfo?this.interactionService.showMessage("IDENTITY.CREDENTIAL_IN_USE_BY_VISITOR_NAME",null,l.Warning,{name:t.visitorInfo}):this.interactionService.showMessage("IDENTITY.CREDENTIAL_IN_USE_BY_VISITOR",null,l.Warning);break;case m.Member:this.modalService.open(p,{settings:{size:"xl",scrollable:!0,centered:!1},props:{identity:t.member}}).result.then(i=>{}).catch(i=>{});break;case m.NotPermitted:default:this.interactionService.showMessage("IDENTITY.CREDENTIAL_IN_USE_NOT_EDITABLE",null,l.Warning);break}},error:t=>{}})}onFilterChanged(e){this.detailMode=!1,this.identityFilter=e,this.fetchIdentities(!1)}onDetailFilterChanged(e){this.detailMode=!0,this.identityDetailFilter=e,this.fetchIdentities(!1)}onFilterClosed(){this.waitingSearch=!1}onOpenFilterRequested(e){this.waitingSearch=!0}onShowMoreClicked(e){this.fetchIdentities(!0)}onIdentityUpdated(e){this.fetchIdentities(!0)}checkPermissions(){this.permissionAddIdentity=this.authService.checkPermission(o.IDENTITY.getCreate()),this.permissionIdentityDetails=this.authService.checkPermission(o.IDENTITY.getReadDetailed())}fetchIdentities(e=!1){this.identities=[],this.detailMode?(this.identityDetailFilter.skip=e?this.paginationRequest.skip:0,this.identityDetailFilter.take=this.paginationRequest.take,this.identityService.searchIdentitiesExact(this.identityDetailFilter).subscribe(t=>{this.identities=t.items;let i=new A;i.take=t.take,i.skip=t.skip,i.total=t.total,this.paginationResponse=i,this.detailModeResult=!0})):(this.identityFilter||this.createFilter(),this.identityFilter.skip=e?this.paginationRequest.skip:0,this.identityFilter.take=this.paginationRequest.take,this.identityService.searchIdentities(this.identityFilter).subscribe(t=>{this.identities=t.items;let i=new A;i.take=t.take,i.skip=t.skip,i.total=t.total,this.paginationResponse=i,this.detailModeResult=!1}))}onGetExcelClicked(e){this.detailModeResult?this.identityService.searchIdentitiesExactAsExcel(this.identityDetailFilter).subscribe(t=>{this.translate.get(["PAGES.MANAGE_IDENTITY"],this.languageService.userTranslate).subscribe(i=>{h.default.saveAs(t,i["PAGES.MANAGE_IDENTITY"]+" "+c.local().toLocaleString(c.DATETIME_MED)+".xlsx")})}):(this.identityFilter||this.createFilter(),this.identityService.searchIdentitiesAsExcel(this.identityFilter).subscribe(t=>{this.translate.get(["PAGES.MANAGE_IDENTITY"],this.languageService.userTranslate).subscribe(i=>{h.default.saveAs(t,i["PAGES.MANAGE_IDENTITY"]+" "+c.local().toLocaleString(c.DATETIME_MED)+".xlsx")})}))}onGetPDFClicked(e){this.detailModeResult?this.identityService.searchIdentitiesExactAsPdf(this.identityDetailFilter).subscribe(t=>{this.translate.get(["PAGES.MANAGE_IDENTITY"],this.languageService.userTranslate).subscribe(i=>{h.default.saveAs(t,i["PAGES.MANAGE_IDENTITY"]+" "+c.local().toLocaleString(c.DATETIME_MED)+".pdf")})}):(this.identityFilter||this.createFilter(),this.identityService.searchIdentitiesAsPdf(this.identityFilter).subscribe(t=>{this.translate.get(["PAGES.MANAGE_IDENTITY"],this.languageService.userTranslate).subscribe(i=>{h.default.saveAs(t,i["PAGES.MANAGE_IDENTITY"]+" "+c.local().toLocaleString(c.DATETIME_MED)+".pdf")})}))}createFilter(){this.identityFilter=H.getEmptyModel(),this.identityFilter.skip=0,this.identityFilter.take=R.REQUEST_ITEM_GRID_LIMIT}pageChanged(e){this.paginationRequest.skip=e.skip,this.paginationRequest.take=e.take,this.fetchIdentities(!0)}static ctorParameters=()=>[{type:E},{type:k},{type:b},{type:v},{type:L},{type:x},{type:V},{type:S},{type:B}]};Se=_e([u({selector:"armon-manage-identities",template:Ie,animations:ee,standalone:!0,imports:[he,me,I,ue,U,fe,pe,C,N,D,g,_,X,y],styles:[ye]})],Se);export{Se as ManageIdentitiesComponent};
