1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8987],{48710:(A,O,c)=>{c.d(O,{C:()=>k});var S=c(10467),s=c(54438),x=c(94092),D=c(66831),_=c(17782),h=c(5430),T=c(84579),E=c(60177),P=c(91018),f=c(71255);function v(m,I){if(1&m&&(s.j41(0,"h4"),s.EFF(1),s.k0s()),2&m){const r=s.XpG(3);s.R7$(),s.JRh(r.errorMessage)}}function e(m,I){if(1&m&&(s.j41(0,"h4"),s.EFF(1),s.k0s()),2&m){const r=s.XpG(3);s.R7$(),s.JRh(r.successMessage)}}function u(m,I){if(1&m&&(s.j41(0,"div",6),s.DNE(1,v,2,1,"h4",7)(2,e,2,1,"h4",7),s.k0s()),2&m){const r=s.XpG(2);s.R7$(),s.Y8G("ngIf",r.errorMessage),s.R7$(),s.Y8G("ngIf",r.successMessage)}}function M(m,I){1&m&&s.nrm(0,"mat-progress-bar",8)}function b(m,I){if(1&m){const r=s.RV6();s.j41(0,"wb-document-sign-renderer",9),s.mxI("signatureResponseChange",function(l){s.eBV(r);const C=s.XpG(2);return s.DH7(C.signatureResponse,l)||(C.signatureResponse=l),s.Njj(l)}),s.bIt("sign",function(l){s.eBV(r);const C=s.XpG(2);return s.Njj(C.onSign(l))})("cancel",function(){s.eBV(r);const l=s.XpG(2);return s.Njj(l.onCancel())}),s.k0s()}if(2&m){const r=s.XpG(2);s.Y8G("documentTemplate",r.documentTemplate)("documentSignRequest",r.documentSignRequest),s.R50("signatureResponse",r.signatureResponse),s.Y8G("autoPopulateSignature",!0)("goToNext",!0)("offset",180)}}function G(m,I){if(1&m&&(s.DNE(0,u,3,2,"div",1)(1,M,1,0,"mat-progress-bar",2),s.j41(2,"div",3),s.EFF(3),s.j41(4,"span",4),s.EFF(5),s.k0s()(),s.DNE(6,b,1,6,"wb-document-sign-renderer",5)),2&m){const r=s.XpG();s.Y8G("ngIf",r.showMessages()),s.R7$(),s.Y8G("ngIf",r.refreshing),s.R7$(2),s.Lme(" ",r.documentTemplate.name," - ",r.documentSignRequest.signers[0].name," "),s.R7$(2),s.Lme("Signing Document ",r.currIndex," of ",r.totalCnt,""),s.R7$(),s.Y8G("ngIf",!r.showMessages()&&!r.refreshing)}}let k=(()=>{class m extends x.$G{constructor(r,g,l){super(r),this.documentSignService=g,this.userService=l,this.requestIds=[],this.done=new s.bkB,this.currIndex=0,this.signedResponses=[]}ngOnInit(){var r=this;return(0,S.A)(function*(){console.log("requestIds",r.requestIds),r.totalCnt=r.requestIds.length,r.next()})()}next(){var r=this;return(0,S.A)(function*(){const g=r.requestIds.shift();if(!g)return r.appService.notify(new D.Yn(null)),void r.done.emit(r.signedResponses);r.currIndex++,r.refreshing=!0,setTimeout((0,S.A)(function*(){const l=yield r.documentSignService.getRequest(g);l.success?(r.documentSignRequest=new _.ivA(l.data),r.documentTemplate=yield r.documentSignService.getByTemplateId(r.documentSignRequest.templateId),r.documentSignService.getSignatureUrl(r.documentSignRequest).then(C=>{C.success||(r.errorMessage=C.msg||"an unexpected error occurred"),r.documentSignRequest=new _.ivA(C.data.request),r.initialized=!0})):(r.errorMessage=`Document sign request ID ${g} does not exist`,r.initialized=!0),r.refreshing=!1}))})()}onSign(r){this.documentSignService.signRequest(r,null,!0).then(g=>{const l=this.getSignatureId(r=g.data);this.signedResponses.push({documentSignRequestId:r.id,signatureId:l,signatureRequestId:r.signatureRequestId}),this.next()})}onCancel(){this.appService.notify(new D.Yn(null)),this.done.emit(this.signedResponses)}getSignatureId(r){let g;return r&&r.signers&&r.signers.forEach(l=>{l.email.toLowerCase()===this.userService.user.username&&(g=l.signatureId)}),g}showMessages(){return this.errorMessage||this.successMessage}static{this.\u0275fac=function(g){return new(g||m)(s.rXU(h.d3),s.rXU(h.Wk),s.rXU(h.DL))}}static{this.\u0275cmp=s.VBU({type:m,selectors:[["wb-document-bulk-sign"]],inputs:{requestIds:"requestIds"},outputs:{done:"done"},features:[s.Vt3],decls:2,vars:1,consts:[[3,"initialized"],["class","center mgn t3 semibold",4,"ngIf"],["mode","indeterminate",4,"ngIf"],[1,"bulk-header"],[1,"right"],[3,"documentTemplate","documentSignRequest","signatureResponse","autoPopulateSignature","goToNext","offset","signatureResponseChange","sign","cancel",4,"ngIf"],[1,"center","mgn","t3","semibold"],[4,"ngIf"],["mode","indeterminate"],[3,"signatureResponseChange","sign","cancel","documentTemplate","documentSignRequest","signatureResponse","autoPopulateSignature","goToNext","offset"]],template:function(g,l){1&g&&(s.j41(0,"wb-page",0),s.DNE(1,G,7,7,"ng-template"),s.k0s()),2&g&&s.Y8G("initialized",l.initialized)},dependencies:[T.oM,E.bT,P.H,f.f],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ng
1content-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}.bulk-header[_ngcontent-%COMP%]{padding:1rem;background-color:#f8f9fd}"]})}}return m})()},28987:(A,O,c)=>{c.r(O),c.d(O,{DocumentsModule:()=>we});var S=c(19757),s=c(5224),x=c(60274),D=c(64825),_=c(70084),h=c(10467),T=c(22677),E=c(40121),P=c(25599),f=c(17782),v=c(58811),e=c(54438),u=c(5430),M=c(60177),b=c(91018),G=c(23052);function k(n,d){if(1&n&&(e.qex(0),e.nrm(1,"wb-documents-library",2),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("viewConfig",t.config)}}function m(n,d){if(1&n&&e.DNE(0,k,2,1,"ng-container",1),2&n){const t=e.XpG();e.Y8G("ngIf",t.config)}}let I=(()=>{class n extends E.Y{constructor(t,o,i){super(t),this.accountModelService=o,this.userService=i}ngOnInit(){setTimeout(()=>{P.T.EnableFullWidth=!0}),this.subscribeToModel(this.accountModelService,t=>{t&&(this.accounts=t.map(o=>f.xa1.create(o,this.userService.user)).slice(0,1),super.ngOnInit())})}getConfig(){var t=this;return(0,h.A)(function*(){return{view:T._N.Account,manageMode:!0,account:t.accounts.length>0?t.accounts.find(i=>i.id===t.accountModelService.selectedAccount.id):t.accountModelService.selectedAccount,accounts:t.accounts,assetInvestorDocumentsOnly:!0,hideWelcomeBanner:!1,libraryName:"My Documents",fullPage:!0,embedded:!1,showPreviewPanel:!0,showAllSubItem:!0,showSettings:!0,routes:{root:v.qh.Documents,category:v.qh.DocumentsCategory,categoryDocument:v.qh.DocumentsCategoryDocument,documentView:v.qh.DocumentView}}})()}ngOnDestroy(){P.T.EnableFullWidth=!1,super.ngOnDestroy()}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(u.d3),e.rXU(u.UF),e.rXU(u.DL))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["wb-my-documents-view"]],features:[e.Vt3],decls:2,vars:1,consts:[[3,"initialized"],[4,"ngIf"],[3,"viewConfig"]],template:function(o,i){1&o&&(e.j41(0,"wb-page",0),e.DNE(1,m,1,1,"ng-template"),e.k0s()),2&o&&e.Y8G("initialized",!0)},dependencies:[M.bT,b.H,G.X],encapsulation:2})}}return n})();var r=c(94092),g=c(62578),l=c(31586);function C(n,d){if(1&n&&e.nrm(0,"wb-document-preview",4),2&n){const t=e.XpG(2);e.Y8G("document",t.document)("manageMode",!1)("hasHeader",!0)("showFullImage",!0)}}function B(n,d){1&n&&(e.j41(0,"div",5)(1,"h4"),e.EFF(2,"Document not found"),e.k0s()())}function V(n,d){if(1&n&&(e.nrm(0,"wb-breadcrumb",2),e.DNE(1,C,1,4,"wb-document-preview",3)(2,B,3,0,"ng-template",null,0,e.C5r)),2&n){const t=e.sdS(3),o=e.XpG();e.Y8G("items",o.breadcrumbs)("large",!0),e.R7$(),e.Y8G("ngIf",o.document)("ngIfElse",t)}}let $=(()=>{class n extends r.$G{constructor(t,o,i){super(t),this.documentCategoryService=o,this.accountModelService=i}ngOnInit(){var t=this;setTimeout(()=>{P.T.EnableFullWidth=!0}),this.subscribeToModel(this.accountModelService,function(){var o=(0,h.A)(function*(i){i&&(yield t.load())});return function(i){return o.apply(this,arguments)}}())}ngOnDestroy(){P.T.EnableFullWidth=!1,super.ngOnDestroy()}load(){var t=this;return(0,h.A)(function*(){const o=t.appService.routerService.params("id"),i=t.accountModelService.selectedAccount.id,a=yield t.documentCategoryService.getByAccountId(i),p=f.Zo8.findDocumentInfo(a,o);p?t.document=p.document:t.notFound=!0,t.buildBreadcrumbs(a,p&&p.category)})()}buildBreadcrumbs(t,o){this.breadcrumbs=this.document?[{name:this.document.name,active:!0}]:[];let i=o;for(;i;)this.breadcrumbs.unshift({name:i.name,route:v.qh.DocumentsCategory,routeParams:{categoryId:i.id}}),i=i.parentCategoryId&&f.Zo8.findCategory(t,i.parentCategoryId);this.breadcrumbs.unshift({name:"Documents",route:v.qh.Documents,top:!0})}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(u.d3),e.rXU(u.jU),e.rXU(u.UF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["wb-document-view"]],features:[e.Vt3],decls:2,vars:1,consts:[["notFoundTemplate",""],[3,"initialized"],[3,"items","large"],[3,"document","manageMode","hasHeader","showFullImage",4,"ngIf","ngIfElse"],[3,"document","manageMode","hasHeader","showFullImage"],[1,"center","mgn","t2"]],template:function(o,i){1&o&&(e.j41(0,"wb-page",1),e.DNE(1,V,4,4,"ng-template"),e.k0s()),2&o&&e.Y8G("initialized",!!i.document||i.notFound)},dependencies:[M.bT,b.H,g.D,l.F],encapsulation:2})}}return n})();var Y=c(66831),F=c(93738),N=c(5566);const L=["sizerRefElement"];function W(n,d){if(1&n){const t=e.RV6();e.j41(0,"wb-pdf-viewer",7),e.bIt("loaded",function(i){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onPDFLoaded(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("document",t.document)("showAll",!1)("page",t.page)("hideNav",!0)}}
1function H(n,d){if(1&n&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.xc7("transform","rotate("+t.watermarkPosition.angle+"deg)")("bottom",t.watermarkPosition.y,"px")("left",t.watermarkPosition.x,"px"),e.R7$(),e.JRh(t.watermark)}}function K(n,d){1&n&&e.nrm(0,"div",9)}function J(n,d){if(1&n&&(e.qex(0),e.j41(1,"div",3),e.DNE(2,W,1,4,"wb-pdf-viewer",4)(3,H,2,7,"div",5)(4,K,1,0,"div",6),e.k0s(),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.xc7("width",t.resolution.width,"px"),e.R7$(),e.Y8G("ngIf",!t.refreshing),e.R7$(),e.Y8G("ngIf",t.watermarkPosition&&t.loaded),e.R7$(),e.Y8G("ngIf",t.loaded)}}let Q=(()=>{class n extends r.$G{constructor(t,o,i,a){super(t),this.routerService=o,this.documentService=i,this.platformUI=a,this.subscribeToScreenshotEvent()}ngOnInit(){var t=this;return(0,h.A)(function*(){t.page=1;const o=t.routerService.params("id"),i=yield t.documentService.getByIds([o]);if(i.length>0){t.document=i[0],t.watermark=t.routerService.params("watermark");const a=t.routerService.params("width"),p=t.routerService.params("height");t.resolution=a&&p?{width:parseInt(a),height:parseInt(p)}:{width:f.Qje.width,height:f.Qje.height},t.watermark&&!t.watermarkPosition&&t.setWatermarkPosition(),console.log(t.watermark)}})()}ngAfterViewInit(){this.watermark&&setTimeout(()=>{this.setWatermarkPosition()})}setWatermarkPosition(){const t=this.platformUI.getTextWidth(this.watermark,this.sizerRefElement.nativeElement),o=Math.sqrt(Math.pow(this.resolution.width,2)+Math.pow(this.resolution.height,2)),p=-1*(90-Math.acos(this.resolution.height/o)*(180/Math.PI)),w=Math.max(o-t,0)/2,y=Math.pow(w,2),U=Math.pow(this.resolution.width,2)/(Math.pow(this.resolution.width,2)+Math.pow(this.resolution.height,2)),Se=Math.sqrt(U*y),be=Math.sqrt((1-U)*y);this.watermarkPosition={x:Se,y:be,angle:p},console.log(t,o,this.watermarkPosition)}subscribeToScreenshotEvent(){this.subscribeEvent(Y.KH,t=>{this.document?t.data.page<=this.pdfDocument.numPages?(t.data.callback&&(this.onPDFLoadedCallback=()=>{t.data.callback({success:!0,totalPages:this.pdfDocument.numPages})}),this.page=t.data.page,this.refreshing=!0,setTimeout(()=>{this.refreshing=!1})):t.data.callback&&t.data.callback({success:!1,totalPages:this.pdfDocument.numPages}):t.data.callback({success:!1,totalPages:0})})}onPDFLoaded(t){var o=this;return(0,h.A)(function*(){o.pdfDocument=t,o.loaded=!0,o.refreshing=!1,o.onPDFLoadedCallback&&setTimeout(()=>{o.onPDFLoadedCallback(),o.onPDFLoadedCallback=null},2e3)})()}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(u.d3),e.rXU(u.HM),e.rXU(u.DK),e.rXU(F.W))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["wb-document-print"]],viewQuery:function(o,i){if(1&o&&e.GBs(L,7),2&o){let a;e.mGM(a=e.lsd())&&(i.sizerRefElement=a.first)}},features:[e.Vt3],decls:4,vars:1,consts:[["sizerRefElement",""],[4,"ngIf"],[1,"watermark-sizer"],[1,"dpi-wrapper"],[3,"document","showAll","page","hideNav","loaded",4,"ngIf"],["class","watermark",3,"transform","bottom","left",4,"ngIf"],["class","wealthblock-document-html-to-pdf-selector",4,"ngIf"],[3,"loaded","document","showAll","page","hideNav"],[1,"watermark"],[1,"wealthblock-document-html-to-pdf-selector"]],template:function(o,i){1&o&&(e.DNE(0,J,5,5,"ng-container",1),e.j41(1,"div",2),e.nrm(2,"span",null,0),e.k0s()),2&o&&e.Y8G("ngIf",!!i.document)},dependencies:[M.bT,N.I],styles:[".dpi-wrapper[_ngcontent-%COMP%]{margin:auto;position:relative}.watermark[_ngcontent-%COMP%]{transform-origin:bottom left;color:#0003;font-size:22px;position:absolute;pointer-events:none;white-space:nowrap;z-index:9999}.watermark-sizer[_ngcontent-%COMP%]{font-size:22px}"]})}}return n})();var Z=c(66593),q=c(89659),X=c(71255);function ee(n,d){if(1&n&&(e.j41(0,"h3",5),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.errorMessage)}}function te(n,d){1&n&&e.nrm(0,"div",6)}function ne(n,d){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",1)(2,"wb-document-sign-renderer",2),e.bIt("pdfLoaded",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.pdfLoaded=!0)}),e.k0s(),e.DNE(3,ee,2,1,"h3",3)(4,te,1,0,"div",4),e.k0s(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(),e.xc7("width",t.width,"px"),e.R7$(),e.Y8G("documentTemplate",t.documentTemplate)("documentSignRequest",t.documentSignRequest)("singlePage",t.currentPage)("isSignerPreview",t.isSignerPreview)("readonly",!0)("viewOnly",!0)("showAudit",!0)("offset",90),e.R7$(),e.Y8G("ngIf",t.errorMessage),e.R7$(),e.Y8G("ngIf",t.pdfLoaded)}}let oe=(()=>{class n extends r.$G{constructor(t,o,i){super(t),this.documentSignService=o,this.routerService=i,this.currentPage=1}ngOnInit(){var t=this;return(0,h.A)(function*(){const o=t.routerService.params("requestId"),i=t.routerService.params("all"),a=t.routerService.params("page"),p=t.routerService.params("width");
1if(t.width=p?parseInt(p):f.Qje.width,i?t.currentPage=null:a&&(t.currentPage=parseInt(a)),o){const w=yield t.documentSignService.getRequest(o);if(w.success)return t.documentSignRequest=new f.ivA(w.data),t.documentSignRequest.anyHasSigned()||(t.isSignerPreview=!0),t.documentTemplate=yield t.documentSignService.getByTemplateId(t.documentSignRequest.templateId),void(t.initialized=!0)}t.errorMessage=`Document sign request ID ${o} does not exist`,t.initialized=!0})()}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(u.d3),e.rXU(u.Wk),e.rXU(u.HM))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["wb-document-sign-viewer"]],features:[e.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[1,"dpi-wrapper"],[3,"pdfLoaded","documentTemplate","documentSignRequest","singlePage","isSignerPreview","readonly","viewOnly","showAudit","offset"],["class","center",4,"ngIf"],["class","wealthblock-sign-html-to-pdf-selector",4,"ngIf"],[1,"center"],[1,"wealthblock-sign-html-to-pdf-selector"]],template:function(o,i){1&o&&e.DNE(0,ne,5,12,"ng-container",0),2&o&&e.Y8G("ngIf",i.initialized)},dependencies:[M.bT,X.f],styles:[".dpi-wrapper[_ngcontent-%COMP%]{margin:auto}"]})}}return n})();var z=c(99213),ie=c(20962),R=c(99053),se=c(48710);function re(n,d){if(1&n&&(e.j41(0,"h4"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.errorMessage)}}function ce(n,d){if(1&n&&e.nrm(0,"img",9),2&n){const t=e.XpG(4);e.Y8G("src",t.platformService.getLogo(),e.B4B)}}function ae(n,d){if(1&n&&(e.j41(0,"mat-card"),e.DNE(1,ce,1,1,"img",5),e.j41(2,"h3"),e.EFF(3),e.k0s(),e.j41(4,"div",6)(5,"div",7)(6,"mat-icon"),e.EFF(7,"check_circle"),e.k0s(),e.EFF(8," Document was signed "),e.k0s(),e.nrm(9,"div",8),e.j41(10,"div",7)(11,"mat-icon"),e.EFF(12,"check_circle"),e.k0s(),e.EFF(13," Sender has been notified "),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.platformService.config.logo),e.R7$(2),e.JRh(t.successMessage)}}function ue(n,d){if(1&n&&(e.j41(0,"div",4),e.DNE(1,re,2,1,"h4",3)(2,ae,14,2,"mat-card",3),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.errorMessage),e.R7$(),e.Y8G("ngIf",t.successMessage)}}function me(n,d){if(1&n){const t=e.RV6();e.j41(0,"wb-document-bulk-sign",12),e.bIt("done",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.onAllSigned())}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("requestIds",t.requestIds)}}function de(n,d){if(1&n){const t=e.RV6();e.j41(0,"wb-document-sign-renderer",13),e.bIt("sign",function(i){e.eBV(t);const a=e.XpG(3);return e.Njj(a.onSign(i))})("cancel",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.onCancel())}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("documentTemplate",t.documentTemplate)("documentSignRequest",t.documentSignRequest)("hideCancel",t.hideCancel)("offset",140)}}function ge(n,d){if(1&n&&(e.j41(0,"div"),e.DNE(1,me,1,1,"wb-document-bulk-sign",10)(2,de,1,4,"wb-document-sign-renderer",11),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!!t.requestIds),e.R7$(),e.Y8G("ngIf",!!t.documentSignRequest)}}function le(n,d){if(1&n&&(e.j41(0,"div",1),e.DNE(1,ue,3,2,"div",2)(2,ge,3,2,"div",3),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.showMessages()),e.R7$(),e.Y8G("ngIf",!t.showMessages())}}let j=(()=>{class n extends r.$G{constructor(t,o,i,a,p,w,y){super(t),this.documentSignService=o,this.routerService=i,this.platformService=a,this.accountModelService=p,this.userService=w,this.platformUI=y,this.signed=new e.bkB,this.taskComplete=new e.bkB}ngOnInit(){var t=this;return(0,h.A)(function*(){if(t.requestId||(t.requestId=t.routerService.params("requestId")),!t.requestId&&!t.envelopeId&&(t.envelopeId=t.routerService.params("envelopeId")),t.redirect=t.routerService.params("redirect"),t.hideCancel=!t.redirect,!t.requestId&&!t.envelopeId)return t.errorMessage="Document sign request ID or envelope ID is required",void(t.initialized=!0);if(t.requestId){const o=yield t.documentSignService.getRequest(t.requestId);o.success?(t.documentSignRequest=new f.ivA(o.data),t.documentTemplate=yield t.documentSignService.getByTemplateId(t.documentSignRequest.templateId),t.documentSignService.getSignatureUrl(t.documentSignRequest).then(i=>{i.success||(t.errorMessage=i.msg||"an unexpected error occurred",setTimeout(()=>{t.goBack()},2e3)),t.initialized=!0})):(t.errorMessage=`Document sign request ID ${t.requestId} does not exist`,t.initialized=!0)}else if(t.envelopeId){let o=yield t.documentSignService.getForAccount(t.accountModelService.selectedAccount.id);if(o=o.filter(i=>i.envelopeId===t.envelopeId),t.initialized=!0,0===o.length)return void(t.errorMessage=`No document sign requests found for envelope ID ${t.envelopeId}`);if(o=o.filter(i=>i.canSign(t.userService.user.username)),0===o.length)return void(t.errorMessage="There are no documents left for you to sign in this envelope");t.requestIds=o.map(i=>i.id)}})()}onSign(t){this.documentSignService.signRequest(t,null).then(o=>{const i=this.getSignatureId(t=o.data);this.signed.emit({documentSignRequestId:t.id,signatureId:i,signatureRequestId:t.signatureRequestId}),this.onAllSigned()})}
1onAllSigned(){this.successMessage="Thank you. All documents have been successfully signed.",this.goBack()}getSignatureId(t){let o;return t&&t.signers&&t.signers.forEach(i=>{i.email.toLowerCase()===this.userService.user.username&&(o=i.signatureId)}),o}onCancel(){this.goBack()}goBack(){this.redirect&&this.platformUI.redirect(this.redirect)}showMessages(){return this.errorMessage||this.successMessage}isTaskComplete(){return Promise.resolve({complete:!1})}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(u.d3),e.rXU(u.Wk),e.rXU(u.HM),e.rXU(u.fP),e.rXU(u.UF),e.rXU(u.DL),e.rXU(F.W))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["wb-document-sign-inline"]],inputs:{requestId:"requestId",envelopeId:"envelopeId",templateId:"templateId",signers:"signers"},outputs:{signed:"signed",taskComplete:"taskComplete"},features:[e.Vt3],decls:2,vars:1,consts:[[3,"initialized"],[1,"container-page"],["class","center mgn t3 semibold",4,"ngIf"],[4,"ngIf"],[1,"center","mgn","t3","semibold"],["class","logo",3,"src",4,"ngIf"],[1,"success-timeline"],[1,"step"],[1,"spacer"],[1,"logo",3,"src"],[3,"requestIds","done",4,"ngIf"],[3,"documentTemplate","documentSignRequest","hideCancel","offset","sign","cancel",4,"ngIf"],[3,"done","requestIds"],[3,"sign","cancel","documentTemplate","documentSignRequest","hideCancel","offset"]],template:function(o,i){1&o&&(e.j41(0,"wb-page",0),e.DNE(1,le,3,2,"ng-template"),e.k0s()),2&o&&e.Y8G("initialized",i.initialized)},dependencies:[z.An,ie._m,M.bT,R.cF,b.H,X.f,se.C],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}.container-page[_ngcontent-%COMP%]{max-width:1200px;margin:auto}mat-card[_ngcontent-%COMP%]{margin-top:4rem}.logo[_ngcontent-%COMP%]{display:block;max-height:62px;max-width:200px;margin:40px auto 50px!important}h3[_ngcontent-%COMP%]{line-height:3rem}.success-timeline[_ngcontent-%COMP%]{margin-top:3rem;margin-bottom:4rem!important;color:#100016;font-weight:500}.success-timeline[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.5rem;color:#100016;position:relative;top:7px;margin-right:.5rem}.success-timeline[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{position:relative;top:-4px;border-bottom:2px solid #edeef0;display:none;width:75px;margin:0 2rem}.success-timeline[_ngcontent-%COMP%] .step[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width: 600px){.success-timeline[_ngcontent-%COMP%] .step[_ngcontent-%COMP%], .success-timeline[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{display:inline-block}}"]})}}return n})();var pe=c(64396);function _e(n,d){if(1&n&&(e.j41(0,"h3",5),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.errorMessage)}}function he(n,d){if(1&n&&(e.j41(0,"div",6)(1,"div",7)(2,"div")(3,"h3"),e.EFF(4,"Current Template"),e.k0s(),e.j41(5,"a",8),e.EFF(6," Edit Template "),e.j41(7,"mat-icon"),e.EFF(8,"arrow_forward_ios"),e.k0s()()(),e.j41(9,"p"),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.nrm(12,"wb-document-sign-builder",9),e.k0s(),e.j41(13,"div",10)(14,"div")(15,"h3"),e.EFF(16,"Sent Document"),e.k0s()(),e.j41(17,"p"),e.EFF(18),e.nI1(19,"date"),e.k0s(),e.nrm(20,"wb-document-sign-builder",9),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(5),e.Y8G("navigate",t.getEditTemplateRoute()),e.R7$(5),e.SpI("Last edited on ",e.i5U(11,10,t.lastEdited,"MM/dd/yyyy 'at' hh:mm a"),""),e.R7$(2),e.Y8G("documentTemplate",t.currentTemplate)("symbol",t.documentSignRequest.assetSymbol)("readonly",!0),e.R7$(6),e.Lme("Sent to ",t.signerEmail," on ",e.i5U(19,13,t.requestDate,"MM/dd
1/yyyy 'at' hh:mm a"),""),e.R7$(2),e.Y8G("documentTemplate",t.requestTemplate)("symbol",t.documentSignRequest.assetSymbol)("readonly",!0)}}function fe(n,d){if(1&n&&(e.qex(0),e.j41(1,"div",1)(2,"h2"),e.EFF(3,"Version History"),e.k0s(),e.nrm(4,"wb-breadcrumb",2),e.k0s(),e.DNE(5,_e,2,1,"h3",3)(6,he,21,16,"div",4),e.bVm()),2&n){const t=e.XpG();e.R7$(4),e.Y8G("items",t.breadcrumbItems),e.R7$(),e.Y8G("ngIf",t.errorMessage),e.R7$(),e.Y8G("ngIf",!t.errorMessage)}}const Ie=D.iI.forChild([{path:"analyzer",component:Z.P,canActivate:[_.q_]},{path:"esign/builder",component:q.Q,canActivate:[_.q_]},{path:"esign/builder/:templateId",component:q.Q,canActivate:[_.q_]},{path:"esign/request/:requestId",component:oe,canActivate:[_.q_]},{path:"esign/request/:requestId/version",component:(()=>{class n extends r.$G{constructor(t,o,i,a){super(t),this.documentSignService=o,this.routerService=i,this.platformUI=a,this.Route=v.qh}ngOnInit(){var t=this;return(0,h.A)(function*(){const o=t.routerService.params("requestId"),i=yield t.documentSignService.getRequest(o);if(i.success){t.documentSignRequest=new f.ivA(i.data),t.signerEmail=t.documentSignRequest.signers[0].email,t.requestDate=new Date(t.documentSignRequest._ts),t.currentTemplate=yield t.documentSignService.getByTemplateId(t.documentSignRequest.templateId),t.lastEdited=new Date(t.currentTemplate._tsu||t.currentTemplate._ts);const a=yield t.documentSignService.getRequestData(t.documentSignRequest.id);a.success?t.requestTemplate={...t.currentTemplate,...a.data.template}:t.errorMessage=a.msg||`Document sign request data for ID ${o} does not exist`}else t.errorMessage=i.msg||`Document sign request for ID ${o} does not exist`;t.breadcrumbItems=[{name:"Account Documents",onClick:()=>t.platformUI.goBack()},{name:"E-Sign Version"}],t.initialized=!0})()}getEditTemplateRoute(){return[v.qh.ESignBuilderTemplate,this.documentSignRequest.assetSymbol?{templateId:this.currentTemplate.templateId,symbol:this.documentSignRequest.assetSymbol}:{templateId:this.currentTemplate.templateId}]}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(u.d3),e.rXU(u.Wk),e.rXU(u.HM),e.rXU(F.W))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["wb-document-sign-version"]],features:[e.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[1,"clearfix","header"],[3,"items"],["class","center",4,"ngIf"],["class","row",4,"ngIf"],[1,"center"],[1,"row"],[1,"col","s6","current"],[3,"navigate"],[3,"documentTemplate","symbol","readonly"],[1,"col","s6","request"]],template:function(o,i){1&o&&e.DNE(0,fe,7,3,"ng-container",0),2&o&&e.Y8G("ngIf",i.initialized)},dependencies:[z.An,M.bT,R.cF,R.TX,R.xx,g.D,pe.$,M.vh],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}.header[_ngcontent-%COMP%]{margin-bottom:1rem}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .header[_ngcontent-%COMP%] wb-breadcrumb[_ngcontent-%COMP%]{float:left}wb-breadcrumb[_ngcontent-%COMP%]{margin-left:2rem;position:relative;top:14px}.row[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:inline;font-weight:700}.row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-left:3rem}.row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:.5rem;position:relative;top:2.3px;font-size:1.5rem}.row[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.5rem;color:#737f8b;margin:.8rem 0 2rem}.current[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#100016}.request[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#100001}"]})}}return n})(),canActivate:[_.q_]},{path:"esign/request/:requestId/sign",component:j,canActivate:[_.q_]},{path:"esign/envelope/:envelopeId/sign",component:j,canActivate:[_.q_]},{path:"print/:id",component:Q,canActivate:[_.q_]},{path:"view/:id",component:$,canActivate:[_.q_]},{matcher:n=>n.lookup?["",":categoryId",":categoryId/:documentId"]:0===n.length?{consumed:[],posParams:{}}:1===n.length?{consumed:n,posParams:{categoryId:n[0]}}:2===n.length?{consumed:n,posParams:{categoryId:n[0],documentId:n[1]}}:null,component:I,canActivate:[_.q_]}]);var Pe=c(94821);let we=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[S.Gg,s.u,x.E,Pe.c,Ie]})}}return n})()}}]);
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.