PageSourceSearch

https://esign.msbdocs.com/msb/8153.ace5640c21e74327.js

js msbdocs.com collected 2026-10-01 14:42:39 UTC 11,417 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmsb=self.webpackChunkmsb||[]).push([[8153,7796],{38153:(I,R,s)=>{s.r(R),s.d(R,{SalesforceDocumentsComponent:()=>t.H});var t=s(52312)},52312:(I,R,s)=>{s.d(R,{H:()=>u});var t=s(54438),h=s(50605),p=s(96697),l=s(97796),c=s(96106),f=s(32265),S=s(44506),E=s(84290),C=s(28526),g=s(17345);const O=()=>({"align-items-center text-center":!0}),M=m=>({"h-100":m});function v(m,i){if(1&m){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.deselectAll())}),t.EFF(1),t.nI1(2,"i18n"),t.k0s()}2&m&&(t.R7$(),t.JRh(t.bMT(2,1,"deselectAllLbl")))}function D(m,i){if(1&m){const e=t.RV6();t.j41(0,"button",9),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.fetchDocsToDocumentUploaderStore())}),t.EFF(1),t.nI1(2,"i18n"),t.k0s()}if(2&m){const e=t.XpG();t.Y8G("disabled",!e.object.values(e.selectedRows).length),t.R7$(),t.Lme("",t.bMT(2,3,"addDocumentsLbl")," (",e.object.values(e.selectedRows).length,")")}}function a(m,i){if(1&m&&(t.j41(0,"div",7),t.nrm(1,"ui-no-data-image",10),t.k0s()),2&m){const e=t.XpG();t.R7$(),t.Y8G("actions",e.actions)("imgSrc",e.imgSrc)("label",e.message)}}let u=(()=>{class m{constructor(e,n,o,T,b,r,d){this.spinner=e,this.i18n=n,this.service=o,this.rootService=T,this.toast=b,this.store=r,this.externalDocumentService=d,this.table=(0,t.vPA)({rows:[],columns:[]}),this.selectedRows={},this.allowMultipleSelection=(0,t.vPA)(!1),this.object=Object,this.clearSelection=!1,this.isMobileView=!1,this.imgSrc="./assets/images/Empty_State_Images/No_Document_Temp.svg",this.message=this.i18n.transform("cancelBtnMsg")+" "+this.i18n.transform("docTemplatesTabLbl"),this.documentsToDisplay=[],this.isTableResponseReady=!1}ngOnInit(){this.spinner.show(),this.initSubscriptions()}onRowClick(e){this.selectedRows[e.id]?delete this.selectedRows[e.id]:(this.allowMultipleSelection()||(this.selectedRows=[]),this.selectedRows[e.id]??=e,this.selectedRow=e)}deselectAll(){this.uiTable&&this.uiTable.clearSelectedRows(),this.selectedRows={},this.clearSelection=!0,setTimeout(()=>{this.clearSelection=!1})}fetchDocsToDocumentUploaderStore(){this.dialogRef.close(),this.spinner.show();const e=this.documentsToDisplay.filter(o=>o.id===this.selectedRow.id)[0],n={externalFileId:e.id,docSource:"SALESFORCE",fileName:e.title,externalEntityType:"file",externalActorId:e.documentURI.split("/services")[0]};this.externalDocumentService.getDocuments(n).pipe((0,p.s)(1)).subscribe(o=>{this.spinner.hide(),o&&this.store.dispatch((0,l.FT)({documents:o}))})}initColumns(){return[{key:"id",value:"Id",sort:!1},{key:"fileName",value:"Name",sort:!1},{key:"fileSize",value:"File Size",sort:!1},{key:"type",value:"Type",sort:!1},{key:"buttons",value:"",sort:!1}]}initTable(e){this.table.set({columns:this.initColumns(),rows:this.initRows(e)})}initRows(e){return e.map(n=>({data:{id:n.id,fileName:n.title,fileSize:n.fileSize,type:n.externalSource}}))}initSubscriptions(){this.spinner.show(),this.store.select(l.BM).pipe((0,p.s)(1)).subscribe(e=>{this.spinner.hide(),this.documentsToDisplay=e,this.isTableResponseReady=!0,this.initTable(this.documentsToDisplay.map(n=>({id:n.id,fileSize:Math.round((n.fileSize||0)/1024)+" Kb",title:n.title,externalSource:n.externalSource})))})}static{this.\u0275fac=function(n){return new(n||m)(t.rXU(c.Dx),t.rXU(f.$Z),t.rXU(S.D),t.rXU(E.u8),t.rXU(c.fw),t.rXU(C.il),t.rXU(g.R))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["ui-salesforce-documents"]],viewQuery:function(n,o){if(1&n&&t.GBs(h.O,5),2&n){let T;t.mGM(T=t.lsd())&&(o.uiTable=T.first)}},inputs:{externalId:"externalId"},decls:8,vars:14,consts:[["uiTable",""],[1,"d-flex","flex-column","justify-content-center","w-100","bg-white",3,"ngClass"],[1,"w-100"],[1,"mx-2","w-100",3,"onRowClick","ngClass","rows","columns","checkboxSelection","selectionAllowed","pagination","multiple"],[1,"d-flex","justify-content-center","align-items-center","h-10"],["class","ui-btn-secondary-fill mx-1","data-automation-id","existingDocumetDialogBoxClickCancelDocument",3,"click",4,"ngIf"],["class","ui-btn-primary-fill mx-1","data-automation-id","existingDocumetDialogBoxClickAddDocument",3,"disabled","click",4,"ngIf"],[1,"d-flex","flex-column","align-items-center","justify-content-center","h-100"],["data-automation-id","existingDocumetDialogBoxClickCancelDocument",1,"ui-btn-secondary-fill","mx-1",3,"click"],["data-automation-id","existingDocumetDialogBoxClickAddDocument",1,"ui-btn-primary-fill","mx-1",3,"click","disabled"],[3,"actions","imgSrc","label"]],template:function(n,o){if(1&n){const T=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"ui-table",3,0),t.bIt("onRowClick",function(r){return t.eBV(T),t.Njj(o.onRowClick(r))}),t.k0s()(),t.j41(4,"div",4),t.DNE(5,v,3,3,"button",5)(6,D,3,5,"button",6),t.k0s(),t.DNE(7,a,2,3,"div",7),t.k0s()}2&n&&(t.Y8G("ngClass",t.lJ4(11,O)),t.R7$(2),t.Y8G("ngClass",t.eq3(12,M,o.table().rows.length))("rows",o.table().rows)("columns",o.table().columns)("checkboxSelection",!1)("selectionAllowed",!0)("pagination",!1)("multiple",o.allowMultipleSelection()),t.R7$(3),t.Y8G("ngIf",o.object.values(o.selectedRows).length),t.R7$(),t.Y8G("ngIf",o.table().rows&&o.table().rows.length),t.R7$(),t.vxM(!o.isTableResponseReady||o.table().rows&&o.table().rows.length?-1:7))},encapsulation:2})}}return m})()},97796:(I,R,s)=>{s.d(R,{Ck:()=>v,XD:()=>t.XD,ER:()=>t.ER,DX:()=>t.DX,Nn:()=>t.Nn,Rb:()=>t.Rb,nW:()=>t.nW,a6:()=>t.a6,Yq:()=>t.Yq,vq:()=>D.vq,St:()=>D.St,TM:()=>D.TM,HK:()=>D.HK,m7:()=>D.m7,cb:()=>t.cb,x3:()=>t.x3,mT:()=>D.mT,Nu:()=>D.Nu,HI:()=>t.HI,yM:()=>t.yM,Wc:()=>t.Wc,hA:()=>D.hA,ji:()=>t.ji,zB:()=>D.zB,AP:()=>t.AP,_U:()=>t._U,jK:()=>D.jK,BM:()=>a.BM,sI:()=>a.sI,Cw:()=>t.Cw,dx:()=>t.dx,o_:()=>a.o_,Gn:()=>t.Gn,tH:()=>t.tH,ib:()=>t.ib,Ws:()=>t.Ws,FT:()=>t.FT,dk:()=>t.dk,Br:()=>t.Br,g1:()=>t.g1,bp:()=>a.bp,zi:()=>a.zi,lU:()=>t.lU,uO:()=>t.uO,OO:()=>a.OO,jl:()=>a.jl});var t=s(96254),h=s(25558),p=s(96354),l=s(55069),c=s(35446),f=s(7476),S=s(6273),E=s(54438),C=s(84290),g=s(96106),O=s(32265),M=s(44506);let v=(()=>
1{class u{constructor(i,e,n,o,T,b){this.actions$=i,this.rootService=e,this.toast=n,this.i18n=o,this.spinner=T,this.service=b,this.deleteDocumentEffect$=(0,l.EH)(()=>this.actions$.pipe((0,l.gp)(t.nW),(0,h.n)(r=>this.service.deleteMyDocument(r.docId).pipe((0,p.T)(d=>this.deleteMyDocumentsResponse(d)))))),this.mergeDocumentEffect$=(0,l.EH)(()=>this.actions$.pipe((0,l.gp)(t.Cw),(0,h.n)(r=>(this.spinner.show(),this.service.mergeDocuments(r.mergedName,r.documentIds).pipe((0,p.T)(d=>this.mergeDocumentsResponse(d,r.documentIds))))))),this.getMyDocumentsEffect$=(0,l.EH)(()=>this.actions$.pipe((0,l.gp)(t.HI),(0,h.n)(r=>this.rootService.getMyDocuments().pipe((0,p.T)(d=>this.setMyDocumentsResponse(d)))))),this.getIntegrationDocumentsEffect$=(0,l.EH)(()=>this.actions$.pipe((0,l.gp)(t.cb),(0,h.n)(r=>(this.spinner.show(),this.service.getIntegrationDocumentDetails(r.integrationType,r.externalId).pipe((0,p.T)(d=>this.setIntegrationDocumentsResponse(d))))))),this.stampPapersEffect$=(0,l.EH)(()=>this.actions$.pipe((0,l.gp)(t.ji),(0,h.n)(r=>(this.spinner.show(),this.service.getStampPapers(r.params).pipe((0,p.T)(d=>this.setStampPaperResponse(d))))))),this.stampPaperDetailsEffect$=(0,l.
1EH)(()=>this.actions$.pipe((0,l.gp)(t.Wc),(0,h.n)(r=>(this.spinner.show(),this.service.stampPapersDetails(r.params,r.advanceSearchBody).pipe((0,p.T)(d=>this.setStampPaperDetailsResponse(d))))))),this.letterHeadEffect$=(0,l.EH)(()=>this.actions$.pipe((0,l.gp)(t.x3),(0,h.n)(r=>this.service.getDocumentTemplates(r.params).pipe((0,p.T)(d=>this.setLetterHeadResponse(d))))))}setStampPaperResponse(i){if(this.spinner.hide(),i.code===c.BL.SUCCESS){const e=[];return i.data?.length&&i.data.forEach(n=>{n.stampPaperInfos.forEach(o=>{e.push({...o,stampPaperState:n.stampPaperState,stampPaperDenomination:n.stampPaperDenomination})})}),(0,t._U)({stampPapers:e})}return this.apiFailures("Unable to fetch stamp papers.")}setStampPaperDetailsResponse(i){if(this.spinner.hide(),i.code===c.BL.SUCCESS||i.code===c.BL.NO_RECORD_FOUND){const e=[];return i.data?.content?.length&&i.data?.content.forEach(n=>{e.push(n)}),(0,t.AP)({stampPapersDetails:e})}return this.apiFailures("Unable to fetch stamp papers.")}setLetterHeadResponse(i){return i.code===c.BL.SUCCESS?(0,t.g1)({letterHeads:i.data.docTemplateDTOList.docTemplateDTO}):this.apiFailures("Unable to fetch letterhead.")}setIntegrationDocumentsResponse(i){return this.spinner.hide(),i.code===c.BL.SUCCESS?(0,t.Br)({integrationDocuments:(i.data?.documents||[]).map(e=>{const n=e.originType?.toLocaleLowerCase();return e.title=e.title+"."+(c.sh.INTEGRATION_PDF_TYPE[n||""]||e.originType?.toLocaleLowerCase()),e})||[]}):(0,t.XD)()}setMyDocumentsResponse(i){if(i.code===c.BL.SUCCESS){const e=(i.data?.documents||[]).filter(n=>n.status===S.B9.UPLOAD&&n.uploadType!==S.fX.LETTER_HEAD)||[];return(0,t.yM)({myDocuments:e})}return(0,t.yM)({myDocuments:[]})}deleteMyDocumentsResponse(i){return i.code===c.BL.SUCCESS?(this.toast.show(this.i18n.transform("DOCUMENT_DELETED"),f.lm.SUCCESS),(0,t.a6)({myDocuments:i.data.documents})):this.apiFailures("Unable to delete document.")}mergeDocumentsResponse(i,e){return this.spinner.hide(),i.code===c.BL.SUCCESS?(this.toast.show(this.i18n.transform("documentsMergeSuccess"),f.lm.SUCCESS),i.data?.docInfoList?.length?(0,t.dx)({mergedDocument:i.data.docInfoList[0],docIds:e}):this.apiFailures("Unable to Merge Documents.")):this.apiFailures(i.message)}apiFailures(i){return this.toast.show(i,f.lm.ERROR),(0,t.XD)()}static{this.\u0275fac=function(e){return new(e||u)(E.KVO(l.En),E.KVO(C.u8),E.KVO(g.fw),E.KVO(O.$Z),E.KVO(g.Dx),E.KVO(M.D))}}static{this.\u0275prov=E.jDH({token:u,factory:u.\u0275fac})}}return u})();var D=s(38300),a=s(95883)},17345:(I,R,s)=>{s.d(R,{R:()=>M});var t=s(30786),h=s(7673),p=s(99437),l=s(96354),c=s(35446),f=s(7476),S=s(54438),E=s(30027),C=s(96106),g=s(32265),O=s(11394);let M=(()=>{class v{constructor(a,u,m,i){this.ajax=a,this.toast=u,this.i18n=m,this.rootService=i}getDocuments(a){return this.ajax.post(c.sh.uiAjaxApiCalls.DOC_UPLOAD,a).pipe((0,t.p)(u=>(0,h.of)(this.handleApiResponse(u))),(0,p.W)(()=>(this.toast.show(this.i18n.transform("internalErrorMsg"),f.lm.ERROR),(0,h.of)([]))))}getDocumentTemplate(a){return this.ajax.post(c.sh.uiAjaxApiCalls.UPLOAD_DOC_TEMPLATE,a).pipe((0,l.T)(u=>u.code===c.BL.SUCCESS&&u.data.documentTemplate?this.rootService.mapDocumentTemplates([u.data.documentTemplate])[0]||null:(this.toast.show(this.i18n.transform("internalErrorMsg"),f.lm.ERROR),null)),(0,p.W)(()=>(this.toast.show(this.i18n.transform("internalErrorMsg"),f.lm.ERROR),(0,h.of)(null))))}setDefaultProps(a){return a.map(u=>({...u,resumedEPakDoc:!1}))}handleApiResponse(a){switch(a.code){case c.BL.SUCCESS:return a.data?.docInfoList?.length?this.setDefaultProps(a.data.docInfoList):(this.toast.show(this.i18n.transform("documentNotAvailable"),f.lm.ERROR),[]);case c.BL.DOCUMENT_EXTENSION_NOT_ENABLED:this.toast.show(this.i18n.transform("documentNotConfiguredLbl"),f.lm.ERROR);break;case c.BL.INVALID_CHARACTER_IN_FILENAME:this.toast.show(this.i18n.transform("INVALID_CHARACTER_IN_FILENAME"),f.lm.ERROR);break;default:this.toast.show(this.i18n.transform("documentNotAvailable"),f.lm.ERROR)}return[]}static{this.\u0275fac=function(u){return new(u||v)(S.KVO(E._f),S.KVO(C.fw),S.KVO(g.$Z),S.KVO(O.u))}}static{this.\u0275prov=S.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},50605:(I,R,s)=>{s.d(R,{O:()=>h.O}),s(11464);var h=s(97561)}}]);

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.