PageSourceSearch

https://secure.banquedeluxembourg.com/chunk-IDRXUW45.js

js banquedeluxembourg.com collected 2026-10-02 11:29:51 UTC 42,553 bytes, 4 lines download raw bytes

1import{a as Q}from"./chunk-UY5K37IQ.js";import{a as Ie}from"./chunk-MN5B2FSC.js";import{a as Ne}from"./chunk-KRLSAGQQ.js";import{_a as H,w as we}from"./chunk-44Q2B6LW.js";import"./chunk-ZP6URRRD.js";import{d as Be}from"./chunk-5MCB5N7V.js";import"./chunk-O4ZFMJ6G.js";import"./chunk-IZ4YHJMQ.js";import"./chunk-75FB5FOK.js";import"./chunk-N5G3Q7PA.js";import"./chunk-55FPCMVS.js";import{a as ye}from"./chunk-FFNBESOY.js";import"./chunk-XRL3XAKP.js";import"./chunk-J6J6LIWE.js";import{a as Te,c as ve}from"./chunk-MCFLXYMN.js";import{B as j}from"./chunk-GNVIEGL5.js";import"./chunk-OLYSFPUH.js";import"./chunk-CVSDB6GK.js";import"./chunk-2OQCJELN.js";import"./chunk-22GORKST.js";import{e as ke}from"./chunk-VOAZQWXP.js";import{c as Ce,d as De}from"./chunk-LK4YKUUU.js";import"./chunk-5WIPZZTK.js";import"./chunk-2O6RDBQV.js";import"./chunk-WV3U3LJ5.js";import{a as V}from"./chunk-ALPSYVII.js";import{a as ee,c as oe,d as le}from"./chunk-DCD2V4JR.js";import{c as X,d as Ee}from"./chunk-UMHCVQL5.js";import{N as J,m as b,za as _e}from"./chunk-JUF2FHZF.js";import{b as z,c as M,d as A}from"./chunk-ERVKW22D.js";import"./chunk-MAXHUZHI.js";import{N as he,Sa as ge,Ta as Se,Y as x,_ as ne,cb as be,ib as fe,m as me,o as Y,pb as K,sb as Z,t as ue}from"./chunk-FNOROUKX.js";import{$b as c,$c as T,D as de,Db as G,Ga as I,H as R,La as q,Rc as pe,Sb as f,Ub as _,Wb as L,Xb as P,Yb as U,Zb as a,Zc as s,_b as d,_c as p,aa as w,ac as r,bc as E,cc as y,dc as S,f as re,ib as ce,jc as O,kb as o,kc as k,na as g,nc as m,oc as ie,pc as h,tc as W,uc as C,vc as D,wa as B,xa as N,zb as v}from"./chunk-WO7VCCB3.js";import"./chunk-OCFTQM76.js";import"./chunk-JXRZMLLS.js";var Re=["esignIframe"];function Ge(i,u){if(i&1){let e=O();d(0,"bdl-bds-button",16),s(1,"translate"),m("clickButton",function(){B(e);let t=h();return N(t.onSign())}),c(),d(2,"bdl-bds-button",16),s(3,"translate"),m("clickButton",function(){B(e);let t=h();return N(t.onConfirmClose())}),c()}i&2&&(a("content",p(1,2,"ACTION_BUTTONS.SIGN")),o(2),a("content",p(3,4,"ACTION_BUTTONS.REJECT")))}function Le(i,u){if(i&1&&r(0,"iframe",18),i&2){let e=h(3);a("title",e.workflowDocumentName)("src",e.document(),ce)}}function Pe(i,u){if(i&1&&f(0,Le,1,2,"iframe",18),i&2){let e=h(2);_(e.document()?0:-1)}}function Ue(i,u){i&1&&r(0,"iframe",17,0)}function We(i,u){if(i&1&&f(0,Pe,1,1)(1,Ue,2,0,"iframe",17),i&2){let e=h();_(e.displayEsign()?1:0)}}function ze(i,u){i&1&&(r(0,"bdl-bds-motion",20),s(1,"cdn")),i&2&&a("path",p(1,1,"/motion/generic/spinners/bdl-spinner-primary.json"))}function Ve(i,u){i&1&&r(0,"bnxt-data-documents-shimmer")}function je(i,u){if(i&1&&(d(0,"bdl-bds-grid-layout",15)(1,"bdl-bds-grid-layout-item",14)(2,"bdl-bds-stack",19),f(3,ze,2,3,"bdl-bds-motion",20),f(4,Ve,1,0,"bnxt-data-documents-shimmer"),r(5,"bdl-bds-paragraph",21),s(6,"translate"),c()()()),i&2){let e=h();o(3),_(e.isBT?-1:3),o(),_(e.isBT?4:-1),o(),a("content",e.isIframeLoading()?"":p(6,3,"DOCUMENTS.E_SIGN.FULL_SHEET.DOCUMENT_LOADING"))}}var te=(()=>{class i extends ke{constructor(){super(),this.isLoading=I(!0),this.isIframeLoading=I(!0),this.document=I(null),this.displayEsign=I(!1),this.displayHeaderButtons=I(!0),this.displaySettingsService=g(Ee),this.workflowsService=g(Q),this.sanitizer=g(he),this.pageSheetRef=g(fe),this.bannerProgressService=g(Ce),this.toastService=g(Z),this.translateService=g(z),this.configService=g(_e),this.setMessages({confirmClose:"DOCUMENTS.E_SIGN.FULL_SHEET.BANNER.MESSAGES.REJECT.CONFIRM",submit:{error:{heading:"DOCUMENTS.E_SIGN.FULL_SHEET.BANNER.SIGN.ERROR_HEADING",content:"DOCUMENTS.E_SIGN.FULL_SHEET.BANNER.SIGN.ERROR_CONTENT",part1:this.bannerProgressService.getGenericErrorMessagePart1(),part2:this.bannerProgressService.getGenericErrorMessagePart2(),part3:this.bannerProgressService.getGenericErrorMessagePart3()},inProgress:"DOCUMENTS.E_SIGN.FULL_SHEET.BANNER.MESSAGES.SIGN.IN_PROGRESS"},opening:{error:{heading:"GENERIC_OPENING_ERROR_MESSAGE_HEADING",content:"GENERIC_OPENING_ERROR_MESSAGE_CONTENT",part1:this.bannerProgressService.getGenericErrorMessagePart1(),part2:this.bannerProgressService.getGenericErrorMessagePart2(),part3:this.bannerProgressService.getGenericErrorMessagePart3()}
1,inProgress:"GENERIC_OPENING_IN_PROGRESS_MESSAGE"}}),this.forceConfirmClose=!0,this.isDarkTheme=ne(this.displaySettingsService.isDarkTheme$),this.isBTTheme=ne(this.displaySettingsService.isTransatlantiqueTheme$)}ngOnInit(){super.ngOnInit(),this.isBT=this.configService.isBTx(),this.setDisplayHeaderButtons(),this.startOpeningFlow()}doOpeningActions(){this.workflowsService.getDocumentByWorkflowId(this.workflowId).pipe(x(this.destroyRef),R(e=>this.onError(e)),w(e=>{let n=`${URL.createObjectURL(e)}#toolbar=0`,t=this.sanitizer.bypassSecurityTrustResourceUrl(n);this.document.set(t),this.isLoading.set(!1),this.markSubmitFlowAsSuccess()})).subscribe()}onClosePageSheet(){this.getWorkflows(this.workflowStatus),this.pageSheetRef.close()}onClose(){this.workflowsService.rejectWorkflowById(this.workflowId).pipe(x(this.destroyRef),R(e=>{throw this.pageSheetRef.close(),this.showRejectErrorToast(),e}),w(()=>{this.getWorkflows(this.workflowStatus),this.pageSheetRef.close(),this.markSubmitFlowAsSuccess(),this.showRejectSuccessToast()})).subscribe()}doSubmit(){this.displayEsign.set(!0),this.isIframeLoading.set(!0),this.isLoading.set(!0),this.displayHeaderButtons.set(!1),this.signingProcess()}onSign(){this.polling(),this.startSubmitFlow()}onConfirmClose(){this.askCloseConfirm()}polling(){de(5e3).pipe(x(this.destroyRef),w(()=>{this.workflowsService.getWorkflows(this.spaceId,b.Signed).subscribe(e=>{e.some(t=>t.id===this.workflowId)&&this.pageSheetRef.close()})})).subscribe()}signingProcess(){this.workflowsService.getIframeByWorkflowId(this.workflowId).pipe(x(this.destroyRef),R(e=>(this.isIframeLoading.set(!1),this.isLoading.set(!1),this.onError(e))),w(e=>{this.isIframeLoading.set(!1),this.isLoading.set(!1),setTimeout(()=>{this.insertHtmlInIframe(e.content),this.markSubmitFlowAsSuccess()},100)})).subscribe()}insertHtmlInIframe(e){if(this.displayEsign()&&this.esignIframe&&e){let n=this.esignIframe.nativeElement,t=n.contentDocument||n.contentWindow?.document;t&&(t.open(),t.write(e),t.close())}}setDisplayHeaderButtons(){this.displayHeaderButtons.set(this.workflowStatus===b.Created||this.workflowStatus===b.Sealed)}showRejectSuccessToast(){this.toastService.show({content:this.translateService.instant("DOCUMENTS.E_SIGN.REJECT.SUCCESS"),styles:"success",iconLeading:"check-circle",verticalOffset:this.isMobile?le:oe,autoWidth:!0,showDuration:J.shortDuration})}showRejectErrorToast(){this.toastService.show({content:this.translateService.instant("DOCUMENTS.E_SIGN.REJECT.ERROR"),styles:"error",iconLeading:"exclamation-circle",verticalOffset:this.isMobile?le:oe,autoWidth:!0,showDuration:J.longDuration})}getWorkflows(e){this.workflowsService.getWorkflows(this.spaceId,e).subscribe()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=v({type:i,selectors:[["bnxt-e-sign-display-document-full-sheet"]],viewQuery:function(n,t){if(n&1&&W(Re,5),n&2){let l;C(l=D())&&(t.esignIframe=l.first)}},inputs:{workflowId:"workflowId",workflowDocumentName:"workflowDocumentName",workflowStatus:"workflowStatus",spaceId:"spaceId"},features:[G],decls:17,vars:4,consts:[["esignIframe",""],["themeHandler","",1,"view-blunxt-documents-sheet-electronic-signature__sheet__header"],["no-padding","",3,"fluid"],["position","top"],["slot","leading-section"],["size","md","outlined","",3,"clickButton"],["slot","icon","icon","times"],["slot","main-section"],["type","h5","font-weight","bold","styles","secondary-500",3,"content"],["slot","trailing-section"],["themeHandler","",1,"view-blunxt-documents-sheet-electronic-signature__sheet__body"],["full-height","","footer","","id","scrollspy-container"],["slot","main-content"],["align-vertical","center"],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","center","align-vertical","center","centered",""],["padding-top-6","","align-vertical","center"],["size","md","styles","default","bordered","","margin-right-2","",3,"clickButton","content"],["data-testid","iframe-cosy","title","cosy",1,"esign-iframe"],["data-testid","iframe-document","width","100%","height","840px",3,"title","src"],["direction","column","align-items","center","justify-content","center","spacing","2"],["autoplay","","loop","","size","8x",3,"path"],["type","body-1","styles","secondary-500","font-weight","bold",3,"content"]],template:function(n,t){n&1&&(d(0,"div",1)(1,"bdl-bds-container",2)(2,"bdl-bds-app-bar",3)(3,"div",4)(4,"bdl-bds-button",5),m("clickButton",function(){return t.onClosePageSheet()}),r(5,"bdl-bds-icon",6),c()(),d(6,"div",7),r(7,"bdl-bds-heading",8),c(),d(8,"div",9),f(9,Ge,4,6),c()()()(),d(10,"div",10)(11,"bdl-bds-grid-main",11)(12,"bdl-bds-container",12)(13,"bdl-bds-grid-layout",13)(14,"bdl-bds-grid-layout-item",14),f(15,We,2,1)(16,je,7,5,"bdl-bds-grid-layout",15),c()()()()()),n&2&&(o(),a("fluid",!1),o(6),a("content",t.workflowDocumentName),o(2),_(t.displayHeaderButtons()?9:-1),o(6),_(t.isLoading()?16:15))}
1,dependencies:[H,ye,Be,De,A,Ie,M,ee],styles:[`.view-blunxt-documents-sheet-electronic-signature__sheet__header[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100vw;z-index:9000;padding:16px;border-bottom:1px solid var(--color-quaternary-600)}.view-blunxt-documents-sheet-electronic-signature__sheet__body[_ngcontent-%COMP%]{flex:1 1 auto;padding-top:73px;overflow:hidden;height:100vh}.view-blunxt-documents-sheet-electronic-signature__sheet__header.theme--dark[_ngcontent-%COMP%]{border-bottom-color:#3c3c3c;background-color:#16181a}.view-blunxt-documents-sheet-electronic-signature__sheet__body.theme--dark[_ngcontent-%COMP%]{background-color:#07090b}.esign-iframe[_ngcontent-%COMP%]{width:80vw;height:90vh}
2/*# sourceMappingURL=e-sign-display-document-full-sheet.component-MT4UMB5O.css.map */`]})}}return i})();var xe=(()=>{class i{constructor(){this.pageSheetService=g(K)}openVisualizeAndSignFullSheet(e){this.pageSheetService.open(te,{id:"e-sign-display-document-full-sheet",initialState:{workflowId:e.id,workflowDocumentName:e.name,workflowStatus:e.status,spaceId:this.spaceId}})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=v({type:i,selectors:[["bnxt-e-sign-document-card"]],inputs:{workflow:"workflow",spaceId:"spaceId"},decls:22,vars:17,consts:[["margin-bottom-2",""],["xlg-12","","lg-12","","animation",""],["level","0"],["clickable","","no-padding","","hover","",3,"click"],["slot","card-content"],["type","hover"],[2,"display","flex","align-items","center","flex-direction","row","padding","16px 24px"],[2,"display","flex","align-items","flex-start","flex-direction","column","flex","0 1 50%","justify-content","center","height","100%","padding-right","48px"],["font-type","body2","font-weight","bold","styles","secondary-500","text-align","left",3,"content"],[2,"display","flex","flex-direction","column","flex","0 0 calc(20% - 48px)","justify-content","center","align-items","flex-start","height","100%","padding-right","48px","min-width","100px","white-space","nowrap"],["text-align","left","font-type","body2","styles","tertiary-500","margin-bottom-1","",3,"content"],["font-type","body2","styles","secondary-500","font-weight","semi-bold",3,"content"],[2,"display","flex","flex-direction","column","flex","0 0 calc(25% - 48px)","justify-content","center","align-items","flex-start","height","100%","padding-right","48px","white-space","nowrap"],["font-type","body2","text-align","left","styles","tertiary-500","margin-bottom-1","",3,"content"],["font-type","body2","styles","secondary-500","font-weight","semi-bold","text-align","left",3,"content"],[2,"display","flex","flex-direction","column","flex","auto","justify-content","flex-end","align-items","flex-end","height","100%"],["size","sm",3,"clickButton","content"]],template:function(n,t){n&1&&(E(0,"bdl-bds-grid-layout",0)(1,"bdl-bds-grid-layout-item",1)(2,"bdl-bds-elevation",2)(3,"bdl-bds-card",3),ie("click",function(){return t.openVisualizeAndSignFullSheet(t.workflow)}),E(4,"div",4)(5,"bdl-bds-hover-animation",5)(6,"div",6)(7,"div",7),S(8,"bdl-bds-typography",8),s(9,"titlecase"),y(),E(10,"div",9),S(11,"bdl-bds-typography",10),s(12,"translate"),S(13,"bdl-bds-typography",11),s(14,"date"),y(),E(15,"div",12),S(16,"bdl-bds-typography",13),s(17,"translate"),S(18,"bdl-bds-typography",14),y(),E(19,"div",15)(20,"bdl-bds-button",16),s(21,"translate"),ie("clickButton",function(){return t.openVisualizeAndSignFullSheet(t.workflow)}),y()()()()()()()()()),n&2&&(o(8),k("content",p(9,6,t.workflow.name)),o(3),k("content",p(12,8,"DOCUMENTS.E_SIGN.CARD.CREATED_AT")),o(2),k("content",T(14,10,t.workflow.audit.creation_date,"dd/MM/yyyy")),o(3),k("content",p(17,13,"DOCUMENTS.E_SIGN.CARD.PORTFOLIO")),o(2),k("content",t.workflow.bp_name),o(2),k("content",p(21,15,"DOCUMENTS.E_SIGN.CARD.BUTTON.VISUALIZE_AND_SIGN")))},dependencies:[ue,V,j,A,me,Y,M],encapsulation:2})}}return i})();var Ae=(()=>{class i{constructor(){this.workflowStatus=b.Sealed,this.shouldDisplaySignedDocuments=this.workflowStatus===b.Signed}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=v({type:i,selectors:[["bnxt-e-sign-no-documents"]],inputs:{workflowStatus:"workflowStatus"},decls:16,vars:13,consts:[["align-center",""],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","center","centered",""],["margin-bottom-6","","active-item","document-onhold","styles","default","position","top","text-only","","shrink","","font-weight","semi-bold","lowercase","","size","xlg","expand-underline",""],["no-padding",""],["slot","card-content"],["padding-top-9","","padding-bottom-7","","padding-right-9","","padding-left-9","",3,"padding-top-6","padding-right-6","padding-left-6"],["xlg-7","","lg-7","","md-8","","sm-5",""],["direction","column","justify-content","center","align-items","flex-start","spacing","6",2,"width","fit-content","height","100%"],["direction","column","justify-content","flex-start","align-items","flex-start","spacing","1"],["font-type","h5","font-weight","bold",3,"content"],["font-type","h6","font-weight","semi-bold","text-align","left",3,"content"],["align-vertical","to
2p","xlg-5","","lg-5","","md-4","","sm-3",""],["autoplay","",3,"path"]],template:function(n,t){n&1&&(E(0,"bdl-bds-grid-layout",0)(1,"bdl-bds-grid-layout-item",1),S(2,"bdl-bds-navigation",2),E(3,"bdl-bds-card",3)(4,"div",4)(5,"bdl-bds-grid-layout",5)(6,"bdl-bds-grid-layout-item",6)(7,"bdl-bds-stack",7)(8,"bdl-bds-stack",8),S(9,"bdl-bds-typography",9),s(10,"translate"),S(11,"bdl-bds-typography",10),s(12,"translate"),y()()(),E(13,"bdl-bds-grid-layout-item",11),S(14,"bdl-bds-motion",12),s(15,"cdn"),y()()()()()()),n&2&&(o(5),k("padding-top-6",!1)("padding-right-6",!1)("padding-left-6",!1),o(4),k("content",p(10,6,t.shouldDisplaySignedDocuments?"DOCUMENTS.E_SIGN.NO_DUCMENTS.TO_SIGN":"DOCUMENTS.E_SIGN.NO_DUCMENTS.SIGNED")),o(2),k("content",p(12,8,t.shouldDisplaySignedDocuments?"DOCUMENTS.E_SIGN.NO_DUCMENTS.TO_SIGN_WILL_BE_HERE":"DOCUMENTS.E_SIGN.NO_DUCMENTS.SIGNED_WILL_BE_HERE")),o(3),k("path",T(15,10,"/motion/tuto-accounts.json",!0)))},dependencies:[V,j,A,ee,M],encapsulation:2})}}return i})();var Qe=()=>[0,1,2,3,4];function Je(i,u){i&1&&(E(0,"bdl-bds-grid-layout",3)(1,"bdl-bds-grid-layout-item",4)(2,"div",5)(3,"div",6),S(4,"bdl-bds-loader-skeleton",7),y(),E(5,"div",8),S(6,"bdl-bds-loader-skeleton",9)(7,"bdl-bds-loader-skeleton",7),y(),E(8,"div",10),S(9,"bdl-bds-loader-skeleton",9)(10,"bdl-bds-loader-skeleton",7),y(),E(11,"div",11),S(12,"bdl-bds-loader-skeleton",12),y()()()())}var Me=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=v({type:i,selectors:[["bnxt-e-sign-shimmer"]],decls:5,vars:1,consts:[["align-center",""],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","center","centered",""],["margin-bottom-6","","active-item","document-onhold","styles","default","position","top","text-only","","shrink","","font-weight","semi-bold","lowercase","","size","xlg","expand-underline",""],["align-center","","margin-bottom-2","",1,"account-item-loader"],["xlg-12","","lg-12","","animation",""],[2,"display","flex","align-items","center","flex-direction","row","padding","8px 0px 8px 8px"],[2,"display","flex","align-items","flex-start","flex-direction","column","flex","0 0 45%","justify-content","center","height","100%","padding-right","48px","white-space","nowrap"],["shimmer","","shape","card"],[2,"display","flex","flex-direction","column","flex","0 0 calc(25% - 48px)","justify-content","center","align-items","flex-start","height","100%","padding-right","48px","min-width","100px"],["shimmer","","shape","card","margin-bottom-1",""],[2,"display","flex","flex-direction","column","flex","0 0 calc(25% - 48px)","justify-content","center","align-items","flex-start","height","100%","padding-right","48px"],[2,"display","flex","flex-direction","column","flex","auto","justify-content","flex-end","align-items","flex-end","height","100%"],["shimmer","","shape","card","size","4x",2,"display","inline-block"]],template:function(n,t){n&1&&(E(0,"bdl-bds-grid-layout",0)(1,"bdl-bds-grid-layout-item",1),S(2,"bdl-bds-navigation",2),P(3,Je,13,0,"bdl-bds-grid-layout",3,L),y()()),n&2&&(o(3),U(pe(0,Qe)))},dependencies:[H],encapsulation:2})}}return i})();var $e=["popoverBpFilter"],qe=["popoverDatePickerCreation"],Ye=["popoverDatePickerSign"],Ke=["popoverSignedAndRejected"],Ze=["selectionControlsBpFilter"],Xe=["datePickerCreation"],et=["datePickerSigned"],tt=["chipGroup"],it=["chipBothStatus"];function nt(i,u){if(i&1){let e=O();d(0,"bdl-bds-button",58),m("clickButton",function(){B(e);let t=h();return N(t.cleanAllFilters())}),r(1,"bdl-bds-icon",59),c()}}function ot(i,u){if(i&1&&r(0,"bdl-bds-icon",66),i&2){let e=h().$implicit;a("id",e.id)}}function lt(i,u){if(i&1&&r(0,"bdl-bds-icon",67),i&2){let e=h().$implicit;a("id",e.id)}}function st(i,u){if(i&1){let e=O();d(0,"tr",60),m("click",function(){let t=B(e).$implicit,l=h();return N(l.openDisplayDocumentFullSheet(t))}),d(1,"td")(2,"bdl-bds-checkbox",61),m("clickCheckbox",function(){let t=B(e).$implicit,l=h();return N(l.onClickCheckbox(t))}),c()(),d(3,"td")(4,"div",62),r(5,"bdl-bds-typography",63),s(6,"date"),c()(),d(7,"td"),r(8,"bdl-bds-typography",63),s(9,"date"),c(),d(10,"td")(11,"bdl-bds-stack",64),r(12,"bdl-bds-tooltip",65),s(13,"translate"),s(14,"translate"),f(15,ot,1,1,"bdl-bds-icon",66),f(16,lt,1,1,"bdl-bds-icon",67),c()(),d(17,"td")(18,"bdl-bds-stack",68),r(19,"bdl-bds-typography",69)(20,"bdl-bds-typography",63),c()(),d(21,"td")(22,"bdl-bds-button",70),m("click",function(t){let l=
2B(e).$implicit,F=h();return N(F.downloadDocument(t,l))}),r(23,"bdl-bds-icon",44),c()()()}if(i&2){let e=u.$implicit;o(2),a("selected",e.isSelected),o(3),a("content",T(6,9,e.audit.creation_date,"dd/MM/yyyy")),o(3),a("content",T(9,12,e.audit.last_modified_date,"dd/MM/yyyy")),o(4),a("selector",e.id)("text",e.status==="SIGNED"?p(13,15,"DOCUMENTS.E_SIGN.TABLE.TOOLTIP.SIGNED"):p(14,17,"DOCUMENTS.E_SIGN.TABLE.TOOLTIP.REJECTED")),o(3),_(e.status==="SIGNED"?15:-1),o(),_(e.status==="REJECTED"?16:-1),o(3),a("content",e.name),o(),a("content",e.bp_name)}}var Oe=(()=>{class i extends X{constructor(){super(...arguments),this.displayedWorkflows=[],this.isLoading=I(!0),this.isAllCheckBoxSelected=!1,this.isAllCheckBoxIndeterminate=!1,this.isFilterEnabled=!1,this.isBpFilterSelected=!1,this.isCreationDateSelected=!1,this.isSignDateSelected=!1,this.isSignedAndRejectedSelected=!1,this.isValidateBpFilterEnabled=!1,this.isCleanAllFilterEnable=!1,this.ascending=!1,this.isBothStatusAreSelectedToFilter=!0,this.documentSelectedCount=0,this.bpList=[],this.now=Date.now(),this.pageSheetService=g(K),this.workflowService=g(Q),this.fileSaverService=g(Te),this.translateService=g(z),this.toastService=g(Z),this.fileService=g(ve)}ngOnInit(){super.ngOnInit(),this.initTable()}ngAfterViewInit(){this.chipGroup.initializeSelectedChip([this.chipBothStatus],"BOTH"),this.selectionControlsBpFilter.nativeElement.addEventListener("click",this.onClickSelectionControlsBpFilter.bind(this))}onClickDownload(){this.displayedWorkflows.forEach(e=>{e.isSelected&&this.workflowService.getDocumentByWorkflowId(e.id).pipe(x(this.destroyRef),w(n=>{this.fileSaverService.save(n,e.name)})).subscribe()})}onClickCheckboxAll(){this.isAllCheckBoxSelected=!this.isAllCheckBoxSelected,this.isAllCheckBoxIndeterminate=!1,this.updateSelectedStatus(),this.calculateDownloadBadge()}onClickSelectionControlsBpFilter(){this.isValidateBpFilterEnabled=this.bpList.some(e=>e.selected)}onClickCheckbox(e){e.isSelected=!e.isSelected,this.calculateDownloadBadge(),this.calculateCheckBoxAll()}openDisplayDocumentFullSheet(e){this.pageSheetService.open(te,{id:"e-sign-display-document-full-sheet",initialState:{workflowId:e.id,workflowDocumentName:e.name,workflowStatus:e.status,spaceId:this.spaceId}})}downloadDocument(e,n){e.stopPropagation(),this.workflowService.getDocumentByWorkflowId(n.id).pipe(x(this.destroyRef),R(t=>{throw this.toastService.show({content:this.translateService.instant("DOCUMENTS.SINGLE_DOCUMENT_DOWNLOAD_ERROR_MSG"),styles:be.Error,showDuration:J.longDuration}),t}),w(t=>this.fileService.downloadBlob(t,n.name))).subscribe()}validateBpFilter(){this.isBpFilterSelected=!0,this.popoverBpFilter.nativeElement.closePopover(),this.calculateFlagToEnableFilterButton()}validateCreationDate(){this.creationDateBegin=null,this.creationDateEnd=null,this.datePickerCreation.nativeElement.beginDate&&(this.creationDateBegin=this.datePickerCreation.nativeElement.beginDate.toDate()),this.datePickerCreation.nativeElement.endDate&&(this.creationDateEnd=this.datePickerCreation.nativeElement.endDate.toDate()),this.isCreationDateSelected=!0,this.popoverDatePickerCreation.nativeElement.closePopover(),this.calculateFlagToEnableFilterButton()}validateSignedDate(){this.signDateBegin=null,this.signDateEnd=null,this.datePickerSigned.nativeElement.beginDate&&(this.signDateBegin=this.datePickerSigned.nativeElement.beginDate.toDate()),this.datePickerSigned.nativeElement.endDate&&(this.signDateEnd=this.datePickerSigned.nativeElement.endDate.toDate()),this.isSignDateSelected=!0,this.popoverDatePickerSign.nativeElement.closePopover(),this.calculateFlagToEnableFilterButton()}validateSignAndRejectFilter(){this.isSignedAndRejectedSelected=!0,this.chipGroup.value===b.Rejected&&(this.isBothStatusAreSelectedToFilter=!1,this.selectedFilterStatus=b.Rejected),this.chipGroup.value===b.Signed&&(this.isBothStatusAreSelectedToFilter=!1,this.selectedFilterStatus=b.Signed),(this.chipGroup.value==="BOTH"||this.chipGroup.value===void 0)&&(this.isBothStatusAreSelectedToFilter=!0),this.calculateFlagToEnableFilterButton(),this.popoverSignedAndRejected.nativeElement.closePopover()}cleanAllFilters(){this.cleanCreationDate(),this.cleanSignDate(),this.cleanBpFilter(),this.cleanSignedAndRejectedFilter(),this.isCleanAllFilterEnable=!1,this.initTable()}cleanSignedAndRejectedFilter(){this.chipGroup.initializeSelectedChip([this.chipBothStatus],"BOTH"),this.isBothStatusAreSelectedToFilter=!0,this.isSignedAndRejectedSelected=!1,this.calculateFlagToEnableFilterButton()}cleanCreationDate(){this.datePickerCreation.nativeElement.reset(),this.isCreationDateSelected=!1,this.calculateFlagToEnableFilterButton()}cleanSignDate(){this.datePickerSigned.nativeElement.reset(),this.isSignDateSelected=!1,this.calculateFlagToEnableFilterButton()}cleanBpFilter(){this.isValidateBpFilterEnabled=!1,this.isBpFilterSelected=!1,this.selectionControlsBpFilter.nativeElement.clearData(),this.calculateFlagToEnableFilterButton()}filterDocuments(){this.isFilterEnabled=!1,this.isCleanAllFilterEnable=!0,this.displayedWorkflows=this.workflows,this.displayedWorkflows=this.displayedWorkflows.filter(e=>{let n=!0,t=!0,l=!0,F=!0;return this.isBpFilterSelected&&(n=this.bpList.some(ae=>e.bp_name===ae.label&&ae.selected)),this.isCreationDateSelected&&(t=this.filterWorkflowByDate(e.audit.creation_date,this.creationDateBegin,this.creationDateEnd)),this.isSignDateSelected&&(l=this.filterWorkflowByDate(e.audit.last_modified_date,this.signDateBegin,this.signDateEnd)),F=this.isBothStatusAreSelectedToFilter?!0:e.status===this.selectedFilterStatus,n&&t&&l&&F})}sortByName(){this.calculateAscending(),this.displayedWorkflows.sort((e,n)=>this.ascending?e.name.localeCompare(n.name):n.name.localeCompare(e.name))}sortByCreationDate(e){e!==void 0?this.ascending=e:this.calculateAscending(),this.displayedWorkflows.sort((n,t)=>this.ascending?new Date(n.audit.creation_date).getTime()-new Date(t.audit.creation_date).getTime():new Date(t.audit.creation_date).getTime()-new Date(n.audit.creation_date).getTime())}sortByLastModifiedDate(){this.calculateAscending(),this.displayedWorkflows.sort((e,n)=>this.ascending?new Date(e.audit.last_modified_date).getTime()-new Date(n.audit.last_modified_date).getTime():new Date(n.audit.last_modified_date).getTime()-new Date(e.audit.last_modified_date).getTime())}sortByStatus(){this.calculateAscending(),this.displayedWorkflows.sort((e,n)=>this.ascending?e.status.localeCompare(n.status):n.status.localeCompare(e.status))}filterWorkflowByDate(e,n,t){let l=new Date(e);return t?this.isDateBetween(l,n,t):this.areSameDay(l,n)}areSameDay(e,n){return e.getFullYear()===n.getFullYear()&&e.getMonth()===n.getMonth()&&e.getDate()===n.getDate()}isDateBetween(e,n,t){return e.getTime()>=n.getTime()&&e.getTime()<=t.getTime()}calculateAscending(){this.ascending=!this.ascending}calculateFlagToEnableFilterButton(){this.isFilterEnabled=this.isBpFilterSelected||this.isCreationDateSelected||this.isSignDateSelected||this.isSignedAndRejectedSelected}calculateDownloadBadge(){let e=0;this.displayedWorkflows.forEach(n=>
2{n.isSelected&&e++}),this.documentSelectedCount=e}calculateCheckBoxAll(){this.isAllCheckBoxIndeterminate=this.documentSelectedCount<this.displayedWorkflows.length||this.documentSelectedCount>0,this.isAllCheckBoxSelected=this.documentSelectedCount===this.displayedWorkflows.length}initTable(){this.displayedWorkflows=this.workflows,this.displayedWorkflows.forEach(e=>{e.isSelected=!1,this.bpList.some(n=>n.label===e.bp_name)||this.bpList.push({key:e.bp_name,id:e.bp_name,label:e.bp_name,selected:!1})}),this.sortByCreationDate(!1)}updateSelectedStatus(){this.displayedWorkflows.forEach(e=>{e.isSelected=this.isAllCheckBoxSelected})}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=q(i)))(t||i)}})()}static{this.\u0275cmp=v({type:i,selectors:[["bnxt-e-sign-table"]],viewQuery:function(n,t){if(n&1&&W($e,5)(qe,5)(Ye,5)(Ke,5)(Ze,5)(Xe,5)(et,5)(tt,5)(it,5),n&2){let l;C(l=D())&&(t.popoverBpFilter=l.first),C(l=D())&&(t.popoverDatePickerCreation=l.first),C(l=D())&&(t.popoverDatePickerSign=l.first),C(l=D())&&(t.popoverSignedAndRejected=l.first),C(l=D())&&(t.selectionControlsBpFilter=l.first),C(l=D())&&(t.datePickerCreation=l.first),C(l=D())&&(t.datePickerSigned=l.first),C(l=D())&&(t.chipGroup=l.first),C(l=D())&&(t.chipBothStatus=l.first)}},inputs:{workflows:"workflows",spaceId:"spaceId"},features:[G],decls:124,vars:114,consts:[["popoverDatePickerCreation",""],["datePickerCreation",""],["popoverDatePickerSign",""],["datePickerSigned",""],["popoverBpFilter",""],["selectionControlsBpFilter",""],["popoverSignedAndRejected",""],["chipGroup",""],["chipBothStatus",""],["justify-content","space-between","slot","header",2,"width","100%"],["carousel-styles","default",1,"e-sign-table-header-filter"],["id","date-creation","size","sm","icon-position","right",3,"content","styles","outlined"],["slot","icon","icon","chevron-down","styles","default","size","sm"],["selector","date-creation","trigger","click","elevation-style","light","elevation-level","2","close-on-click-outside","","placement","bottom center"],["slot","content"],["direction","column","align-items","center","spacing","4"],["font-type","h6","font-weight","bold",3,"content"],["locale","fr","auto-show","","button-styles","success","is-ranged","","elevation-level","0",3,"maxDate"],["align-items","center","justify-content","center","spacing","2",2,"width","100%"],["size","sm","outlined","",3,"clickButton","content"],["data-testid","cd-f-date-picker","size","sm",3,"clickButton","content"],["id","date-signed","size","sm","margin-left-2","","icon-position","right",3,"content","styles","outlined"],["selector","date-signed","trigger","click","elevation-style","light","elevation-level","2","close-on-click-outside","","placement","bottom center"],["size","sm",3,"clickButton","content"],["data-testid","e-sign-table-portfolio-filter","margin-left-2","","id","wallet","size","sm","icon-position","right",3,"content","styles","outlined"],["selector","wallet","trigger","click","elevation-style","light","elevation-level","2","close-on-click-outside","","placement","bottom center"],["direction","column","spacing","3"],["direction","row","spacing","2","align-items","flex-start",2,"width","432px","margin","0 -16px"],["direction","column","spacing","2","align-items","flex-start",2,"height","304px","min-height","304px","overflow","hidden","width","100%"],["data-testid","checkbox-portfolio-filter","type","checkbox",1,"main-selection-controls",3,"data"],["data-testid","e-sign-portfolio-filter-erase","size","sm","outlined","",3,"clickButton","content","disabled"],["data-testid","e-sign-portfolio-filter-validate","size","sm",3,"clickButton","content","disabled"],["margin-left-2","","id","signature","size","sm","icon-position","right",3,"content","styles","outlined"],["selector","signature","trigger","click","elevation-style","light","elevation-level","2","close-on-click-outside","","placement","bottom center"],["spacing","2"],["bdlBdsChipGroupItem","","input-name","signed_denied_0","leading-type","radio","size","sm","value","BOTH",3,"label"],["data-testid","sr-f-chip-signed","bdlBdsChipGroupItem","","input-name","signed_1","leading-type","radio","size","sm","value","SIGNED",3,"label"],["data-testid","sr-f-chip-rejected","bdlBdsChipGroupItem","","input-name","denied_2","leading-type","radio","size","sm","value","REJECTED",3,"label"],["data-testid","sr-f-button-confirm","size","sm",3,"clickButton","content"],["slot","search-btn"],["margin-right-1","","margin-left-2","","styles","success","size","sm",3,"clickButton","content","disabled"],["margin-right-1","","margin-left-2","","styles","error","size","sm"],["data-testid","e-sign-download-button-badge","size","sm","styles","success","rounded","",3,"visible","text"],["size","sm","auto-size","","outlined","",3,"clickButton","content","disabled"],["slot","icon","icon","download"],[2,"width","100%"],["bg-color","tertiary-700",2,"width","72px"],["data-testid","e-sign-table-checkbox-all","input-name","checkbox-all",2,"height","24px","display","block","margin","8px 0",3,"clickCheckbox","indeterminate","selected"],["clickable-cell","","bg-color","tertiary-700"],[2,"padding","12px 0",3,"click"],["data-testid","e-sign-table-created-at","font-type","body2","styles","white","font-weight","bold",3,"content"],["styles","white","icon","sort"],["data-testid","e-sign-table-sign-at","font-type","body2","styles","white","font-weight","bold",3,"content"],["font-type","body2","styles","white","font-weight","bold",3,"content"],["bg-color","tertiary-700"],["clickable-row",""],["slot","footer",2,"display","flex","align-items","center","justify-content","center","width","100%","padding","16px 0"],["text-only","","size","md"],["margin-right-1","","margin-left-2","","styles","error","size","sm",3,"clickButton"],["slot","icon","icon","times"],["clickable-row","",3,"click"],["input-name","checkbox-cell-0",2,"height","24px","display","block","margin","8px 0",3,"clickCheckbox","selected"],[2,"padding","12px 0"],["font-type","body1","styles","secondary-500",3,"content"],["justify-content","center","align-items","center","spacing","1"],["placement","top","styles","secondary",3,"selector","text"],["size","3x","icon","check-circle","styles","success",3,"id"],["size","3x","icon","times-circle","styles","error",3,"id"],["direction","column","align-items","flex-start","spacing","1"],["font-type","body1","styles","secondary-500","font-weight","semi-bold",3,"content"],["outlined","","size","sm",3,"click"]],template:function(n,t){n&1&&(d(0,"bdl-bds-light-table")(1,"bdl-bds-stack",9)(2,"div")(3,"bdl-bds-view-search-v2",10)(4,"bdl-bds-button",11),s(5,"date"),s(6,"date"),s(7,"translate"),r(8,"bdl-bds-icon",12),c(),d(9,"bdl-bds-popover",13,0)(11,"div",14)(12,"bdl-bds-stack",15),r(13,"bdl-bds-typography",16),s(14,"translate"),r(15,"bdl-bds-date-picker",17,1),s(17,"date"),d(18,"bdl-bds-stack",18)(19,"bdl-bds-button",19),s(20,"translate"),m("clickButton",function(){return t.cleanCreationDate()}),c(),d(21,"bdl-bds-button",20),s(22,"translate"),m("clickButton",function(){return t.validateCreationDate()}),c()()()()(),d(23,"bdl-bds-button",21),s(24,"date"),s(25,"date"),s(26,"translate"),r(27,"bdl-bds-icon",12),c(),d(28,"bdl-bds-popover",22,2)(30,"div",14)(31,"bdl-bds-stack",15),r(32,"bdl-bds-typography",16),s(33,"translate"),r(34,"bdl-bds-date-picker",17,3),s(36,"date"),d(37,"bdl-bds-stack",18)(38,"bdl-bds-button",19),s(39,"translate"),m("clickButton",function(){return t.cleanSignDate()}),c(),d(40,"bdl-bds-button",23),s(41,"translate"),m("clickButton",function(){return t.validateSignedDate()}),c()()()()(),d(42,"bdl-bds-button",24),s(43,"translate"),r(44,"bdl-bds-icon",12),c(),d(45,"bdl-bds-popover",25,4)(47,"div",14)(48,"bdl-bds-stack",15),r(49,"bdl-bds-typography",16),s(50,"translate"),d(51,"bdl-bds-stack",26)(52,"bdl-bds-stack",27)(53,"bdl-bds-stack",28),r(54,"bdl-bds-selection-controls",29,5),c()(),d(56,"bdl-bds-stack",18)(57,"bdl-bds-button",30),s(58,"translate"),m("clickButton",function(){return t.cleanBpFilter()}),c(),d(59,"bdl-bds-button",31),s(60,"translate"),m("clickButton",function(){return t.validateBpFilter()}),c()()()()()(),d(61,"bdl-bds-button",32),s(62,"translate"),s(63,"translate"),s(64,"translate"),r(65,"bdl-bds-icon",12),c(),d(66,"bdl-bds-popover",33,6)(68,"div",14)(69,"bdl-bds-stack",15),r(70,"bdl-bds-typography",16),s(71,"translate"),d(72,"bdl-bds-chip-group-ng-v2",null,7)(74,"bdl-bds-stack",34),r(75,"bdl-bds-chip",35,8),s(77,"translate"),r(78,"bdl-bds-chip",36),s(79,"translate"),r(80,"bdl-bds-chip",37),s(81,"translate"),c()(),d(82,"bdl-bds-stack",18)(83,"bdl-bds-button",38),s(84,"translate"),m("clickButton",function(){return t.validateSignAndRejectFilter()}),c()()()()(),d(85,"div",39)(86,"bdl-bds-button",40),s(87,"translate"),m("clickButton",function(){return t.filterDocuments()}),c()(),f(88,nt,2,0,"bdl-bds-button",41),c()(),d(89,"bdl-bds-positioned-badge",42)(90,"bdl-bds-button",43),s(91,"translate"),m("clickButton",function(){return t.onClickDownload()}),r(92,"bdl-bds-icon",44),c()()(),d(93,"table",45)(94,"thead")(95,"tr")(96,"th",46)(97,"bdl-bds-checkbox",47),m("clickCheckbox",function(){return t.onClickCheckboxAll()}),c()(),d(98,"th",48)(99,"bdl-bds-stack",49),m("click",function(){return t.sortByCreationDate()}),r(100,"bdl-bds-typography",50),s(101,"translate"),r(102,"bdl-bds-icon",51),c()(),d(103,"th",48)(104,"bdl-bds-stack",49),m("click",function(){return t.sortByLastModifiedDate()}),r(105,"bdl-bds-typography",52),s(106,"translate"),r(107,"bdl-bds-icon",51),c()(),d(108,"th",48)(109,"bdl-bds-stack",49),m("click",function(){return t.sortByStatus()}),r(110,"bdl-bds-typography",53),s(111,"translate"),r(112,"bdl-bds-icon",51),c()(),d(113,"th",48)(114,"bdl-bds-stack",49),m("click",function(){return t.sortByName()}),r(115,"bdl-bds-typography",53),s(116,"translate"),r(117,"bdl-bds-icon",51),c()(),r(118,"th",54),c()(),d(119,"tbody"),P(120,st,24,19,"tr",55,L),c()(),d(122,"div",56),r(123,"bdl-bds-pagination",57),c()()),n&2&&(o(4),a("content",t.isCreationDateSelected?T(5,44,t.creationDateBegin,"dd/MM/yyyy")+(t.creationDateEnd?" - "+T(6,47,t.creationDateEnd,"dd/MM/yyyy"):""):p(
27,50,"DOCUMENTS.DATA_TABLE.E_SIGN.HEADERS.DATE_CREATION"))("styles",t.isCreationDateSelected?"primary":"default")("outlined",!t.isCreationDateSelected),o(9),a("content",p(14,52,"DOCUMENTS.DATA_TABLE.E_SIGN.HEADERS.DATE_CREATION")),o(2),a("maxDate",T(17,54,t.now,"yyyy-MM-dd")),o(4),a("content",p(20,57,"ACTION_BUTTONS.ERASE")),o(2),a("content",p(22,59,"ACTION_BUTTONS.VALIDATE")),o(2),a("content",t.isSignDateSelected?T(24,61,t.signDateBegin,"dd/MM/yyyy")+(t.signDateEnd?" - "+T(25,64,t.signDateEnd,"dd/MM/yyyy"):""):p(26,67,"DOCUMENTS.DATA_TABLE.ESIGN.HEADERS.DATE_SIGNED"))("styles",t.isSignDateSelected?"primary":"default")("outlined",!t.isSignDateSelected),o(9),a("content",p(33,69,"DOCUMENTS.DATA_TABLE.ESIGN.HEADERS.DATE_SIGNED")),o(2),a("maxDate",T(36,71,t.now,"yyyy-MM-dd")),o(4),a("content",p(39,74,"ACTION_BUTTONS.ERASE")),o(2),a("content",p(41,76,"ACTION_BUTTONS.VALIDATE")),o(2),a("content",t.isBpFilterSelected?t.bpList[0].label:p(43,78,"DOCUMENTS.E_SIGN.CARD.PORTFOLIO"))("styles",t.isBpFilterSelected?"primary":"default")("outlined",!t.isBpFilterSelected),o(7),a("content",p(50,80,"DOCUMENTS.E_SIGN.CARD.PORTFOLIO")),o(5),a("data",t.bpList),o(3),a("content",p(58,82,"ACTION_BUTTONS.ERASE"))("disabled",!t.isValidateBpFilterEnabled),o(2),a("content",p(60,84,"ACTION_BUTTONS.VALIDATE"))("disabled",!t.isValidateBpFilterEnabled),o(2),a("content",t.isBothStatusAreSelectedToFilter?p(62,86,"DOCUMENTS.DATA_TABLE.E_SIGN.FILTER.SIGNED_AND_REJECTED"):t.selectedFilterStatus==="REJECTED"?p(63,88,"DOCUMENTS.DATA_TABLE.E_SIGN.FILTER.REJECTED"):p(64,90,"DOCUMENTS.DATA_TABLE.E_SIGN.FILTER.SIGNED"))("styles",t.isBothStatusAreSelectedToFilter?"default":"primary")("outlined",t.isBothStatusAreSelectedToFilter),o(9),a("content",p(71,92,"DOCUMENTS.E_SIGN.TABLE.STATUS")),o(5),a("label",p(77,94,"DOCUMENTS.DATA_TABLE.E_SIGN.FILTER.SIGNED_AND_REJECTED")),o(3),a("label",p(79,96,"DOCUMENTS.DATA_TABLE.E_SIGN.FILTER.SIGNED")),o(2),a("label",p(81,98,"DOCUMENTS.DATA_TABLE.E_SIGN.FILTER.REJECTED")),o(3),a("content",p(84,100,"ACTION_BUTTONS.VALIDATE")),o(3),a("content",p(87,102,"ACTION_BUTTONS.FILTER"))("disabled",!t.isFilterEnabled),o(2),_(t.isCleanAllFilterEnable?88:-1),o(),a("visible",t.documentSelectedCount!==0)("text",t.documentSelectedCount),o(),a("content",t.documentSelectedCount===0?"":p(91,104,"ACTION_BUTTONS.DOWNLOAD"))("disabled",t.documentSelectedCount===0),o(7),a("indeterminate",t.isAllCheckBoxIndeterminate)("selected",t.isAllCheckBoxSelected),o(3),a("content",p(101,106,"DOCUMENTS.E_SIGN.CARD.CREATED_AT")),o(5),a("content",p(106,108,"DOCUMENTS.E_SIGN.CARD.SIGN_AT")),o(5),a("content",p(111,110,"DOCUMENTS.E_SIGN.TABLE.STATUS")),o(5),a("content",p(116,112,"DOCUMENTS.E_SIGN.CARD.DOCUMENT")),o(5),U(t.displayedWorkflows))},dependencies:[H,Se,ge,we,A,Y,M],styles:[`.e-sign-table-header-filter[_ngcontent-%COMP%]{display:flex}.main-selection-controls[_ngcontent-%COMP%], .selection-controls__item[_ngcontent-%COMP%], .selection-controls[_ngcontent-%COMP%]{width:100%}
3/*# sourceMappingURL=e-sign-table.component-OJOFU4GQ.css.map */`]})}}return i})();var at=["nav"];function rt(i,u){if(i&1&&r(0,"bnxt-e-sign-table",6),i&2){let e=h(4);a("workflows",e.workflows())("spaceId",e.spaceId())}}function dt(i,u){if(i&1&&r(0,"bnxt-e-sign-document-card",7),i&2){let e=u.$implicit,n=h(5);a("workflow",e)("spaceId",n.spaceId())}}function ct(i,u){if(i&1&&P(0,dt,1,2,"bnxt-e-sign-document-card",7,L),i&2){let e=h(4);U(e.workflows())}}function pt(i,u){if(i&1&&(d(0,"bdl-bds-grid-layout-item",4),r(1,"bdl-bds-navigation",5),f(2,rt,1,2,"bnxt-e-sign-table",6)(3,ct,2,0),c()),i&2){let e=h(3);o(2),_(e.isSigned?2:3)}}function mt(i,u){i&1&&r(0,"bnxt-e-sign-no-documents")}function ut(i,u){if(i&1&&f(0,pt,4,1,"bdl-bds-grid-layout-item",4)(1,mt,1,0,"bnxt-e-sign-no-documents"),i&2){let e=h(2);_(e.workflows().length!==0?0:1)}}function ht(i,u){if(i&1){let e=O();d(0,"bdl-bds-grid-layout-item",3)(1,"bnxt-sa-generic-error",8),m("retryBtnClick",function(){B(e);let t=h(2);return N(t.onRetry())}),c()()}}function gt(i,u){if(i&1&&f(0,ut,2,1)(1,ht,2,0,"bdl-bds-grid-layout-item",3),i&2){let e=h();_(e.isError()?1:0)}}function St(i,u){i&1&&r(0,"bnxt-e-sign-shimmer")}var zi=(()=>{class i extends X{constructor(){super(...arguments),this.firstNavItem="e-sign-waiting",this.secondNavItem="e-sign-done",this.navItems=[],this.tab$=new re(this.firstNavItem),this.currentStatus=b.Sealed,this.isSigned=!1,this.spaceId=I(null),this.translateService=g(z),this.workflowsService=g(Q)}ngOnInit(){this.workflows=this.workflowsService.workflows.asReadonly(),this.isLoading=this.workflowsService.isLoading.asReadonly(),this.isError=this.workflowsService.isError.asReadonly(),this.initializeNavigation()}ngAfterViewInit(){this.setupNavigation(),this.getWorkflows(this.currentStatus)}setupNavigation(){this.nav.first?.nativeElement.setActiveItem(this.tab$.value)}initializeNavigation(){this.navItems=[{id:this.firstNavItem,text:this.translateService.instant("DOCUMENTS.E_SIGN.NAVIGATION.WAITING"),status:b.Sealed},{id:this.secondNavItem,text:this.translateService.instant("DOCUMENTS.E_SIGN.NAVIGATION.DONE"),status:b.Signed}],this.whenSpaceLoaded().pipe(x(this.destroyRef),w(e=>this.spaceId.set(e.id))).subscribe()}onNavigationItemClicked(e){this.tab$.value!=e.detail.id&&(this.nav.first.nativeElement.setActiveItem(e.detail.id),this.tab$.next(e.detail.id),this.currentStatus=e.detail.status,this.isSigned=e.detail.status===b.Signed,this.getWorkflows(e.detail.status))}onRetry(){this.getWorkflows(this.currentStatus)}getWorkflows(e){this.workflowsService.getWorkflows(this.spaceId(),e).subscribe()}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=q(i)))(t||i)}})()}static{this.\u0275cmp=v({type:i,selectors:[["bnxt-e-sign-documents"]],viewQuery:function(n,t){if(n&1&&W(at,5),n&2){let l;C(l=D())&&(t.nav=l)}},features:[G],decls:5,vars:2,consts:[["nav",""],["xlg-12","","lg-12","","md-12",""],["styles","default","position","top","text-only","","shrink","","font-weight","semi-bold","lowercase","","size","xlg","expand-underline","",3,"clickNavItem","items"],["xlg-12","","lg-12","","md-12","","margin-top-5",""],["xlg-12","","lg-12","","md-12","","sm-8","","align-content","center","centered",""],["margin-bottom-6","","active-item","document-onhold","styles","default","position","top","textOnly","","shrink","","font-weight","semi-bold","lowercase","","size","xlg","expandUnderline",""],[3,"workflows","spaceId"],[3,"workflow","spaceId"],[3,"retryBtnClick"]],template:function(n,t){n&1&&(d(0,"bdl-bds-grid-layout-item",1)(1,"bdl-bds-navigation",2,0),m("clickNavItem",function(F){return t.onNavigationItemClicked(F)}),c()(),f(3,gt,2,1)(4,St,1,0,"bnxt-e-sign-shimmer")),n&2&&(o(),a("items",t.navItems),o(2),_(t.isLoading()?4:3))},dependencies:[V,j,A,Me,xe,Ae,Oe,Ne],encapsulation:2})}}return i})();export{zi as ESignDocumentsComponent};
4//# sourceMappingURL=chunk-IDRXUW45.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.