PageSourceSearch

https://www.symbility.net/ux/site/chunk-UHG6R5T7.js

js symbility.net collected 2026-10-04 14:23:00 UTC 14,028 bytes, 1 lines download raw bytes

1import{a as te}from"./chunk-L46KQRUV.js";import{a as Kt,b as Zt}from"./chunk-7AO2OKJN.js";import{b as St}from"./chunk-4PJC4IEL.js";import{d as M}from"./chunk-6WVNDNRB.js";import{$a as Y,$p as Nt,A as V,Ac as k,Dn as v,E as U,Ec as nt,En as Pt,Fa as a,Fc as at,Gt as Wt,Hr as Ut,Ia as p,Kn as wt,La as W,Lc as ot,Ma as A,Mc as rt,Mv as Yt,Nq as Ot,Oc as st,Or as Qt,Ov as Xt,Pa as $,Rq as Rt,Sb as m,Sp as Et,Sq as Tt,Sy as Jt,Tb as l,Tc as mt,Ub as et,Uc as ct,Ud as vt,Un as _t,Va as B,Vd as Dt,Vt as D,Wd as Ct,Xa as E,Yr as zt,Za as G,Zc as O,Zd as bt,Zr as Ht,_a as q,_d as yt,a as T,ab as f,bb as r,bd as lt,ca as S,cb as o,da as Q,db as X,dq as jt,dr as Ft,hb as J,he as At,id as ut,ja as b,jd as pt,ka as y,kb as x,ku as $t,lb as I,lo as Bt,ma as h,mn as It,n as F,nc as it,nd as dt,oa as z,od as ht,ov as Gt,p as d,pa as H,pb as K,qb as Z,qd as ft,r as L,rb as tt,rd as gt,t as _,tv as qt,ub as N,v as C,wb as s,xb as c,xh as g,xn as Mt,xq as kt,xr as Lt,yb as j,yg as xt,zr as Vt}from"./chunk-3E76HBY3.js";var pe=["assignmentMenu"];function de(i,P){if(i&1){let t=J();r(0,"button",16),x("click",function(){let n=z(t).$implicit,u=I();return H(u.onAssignmentClick(n))}),r(1,"mat-icon"),s(2),o(),s(3),m(4,"translate"),o()}if(i&2){let t=P.$implicit;a(2),c(t.selected?"check":""),a(),j("",et(4,2,t.labelID,t.labelParams)," ")}}function he(i,P){if(i&1&&(r(0,"div",8)(1,"div",9),s(2),m(3,"translate"),m(4,"symColon"),o(),r(5,"div")(6,"a",17),s(7),o(),r(8,"a",18),s(9),o()()()),i&2){let t=I();a(2),c(l(4,7,l(3,5,"claims.documents.document.fieldAttachedBy"))),a(4),f("symBladeRouterLink",t.attachedByUserLink),a(),c(t.attachedByUserName),a(),f("symBladeRouterLink",t.attachedByParticipantLink),a(),c(t.attachedByParticipantName)}}function fe(i,P){if(i&1&&(r(0,"div",15)(1,"div",19),s(2),m(3,"translate"),o(),X(4,"sym-documentation-sharing-picker",20),o()),i&2){let t=I();a(2),c(l(3,5,"claims.documents.document.fieldShare")),a(2),f("documentationObjectType",t.DocumentationObjectType.Document)("sharingData",t.sharingDto)("claimDtoExt",t.claimDtoExt)("objectCreatorUserID",t.claimAttachment.CreatorUserID)}}var ee=(()=>{class i extends Et{get documentName(){return this.claimAttachment.Name}get documentAttachedCompanyName(){let t=this.claimDtoExt.findParticipant(this.claimAttachment.CreatorParticipantID);return t==null?"":t.CompanyName}get documentSize(){return this.claimAttachment.AttachmentSize}get hasCreatorUserID(){return this.claimAttachment.CreatorUserID!=null}get attachedByUserLink(){return`claims/${this.claimDtoExt.Claim.ClaimID}/claim-users/${this.claimAttachment.CreatorUserID}`}get attachedByUserName(){if(this.claimAttachment.CreatorUserID==null)return"";let t=this.claimDtoExt.getUser(this.claimAttachment.CreatorUserID);return[t.Title,t.FirstName,t.LastName].join(" ")}get attachedByParticipantLink(){return`participants/${this.claimAttachment.CreatorParticipantID}/participant-details`}get attachedByParticipantName(){if(this.claimAttachment.CreatorParticipantID==null)return"";let t=this.claimDtoExt.findParticipant(this.claimAttachment.CreatorParticipantID);return t!=null?t.CompanyName:""}get documentUploadDate(){return this.claimAttachment.CreationDate}get documentUploaded(){return this.claimAttachment.Uploaded}get documentAvailable(){let t=this.claimAttachment.ScanStatus==g.ScanInfected||this.appConfiguration.getBoolValue("DocumentScanning/MandatoryScan")&&this.claimAttachment.ScanStatus!=g.ScanClean;return this.claimAttachment.Uploaded&&(!t||this.claimAttachment.ScanStatus==g.None)}get documentScanStatusMessage(){return this.claimAttachment.ScanStatus==g.ScanPending?this.getDocumentScanStatusMessage("claims.documentation.scanning.pending"):this.claimAttachment.ScanStatus==g.ScanInfected?this.getDocumentScanStatusMessage("claims.documentation.scanning.infected"):this.claimAttachment.ScanStatus==g.ScanAbandoned?this.getDocumentScanStatusMessage("claims.documentation.scanning.abandoned"):""}get documentHRef(){return this.claimAttachment.BytesUrl}get claimParticipants(){return this.claimDtoExt.RelatedParticipants}constructor(t,e,n,u,w,re,se,me,ce,le){super(se,"claims.documents.document.title"),this.activatedRoute=t,this.bladeService=e,this.claimService=n,this.documentService=u,this.formBuilder=w,this.questionnaireService=re,this.appConfiguration=me,this.translateService=ce,this.windowService=le,this.class=!0,this.DocumentationObjectType=Kt,this.viewHeaderActionSections=[],this.showShareWarning=!1,this.isContractorQuoteDocument=!1,this.isDirty=!1,this.triggerQuestionnaireSave=!1}ngOnInit(){this.subscriptions.push(this.activatedRoute.data.subscribe(t=>{this.claimDtoExt=t.claimDtoExt,this.claimAttachment=t.claimAttachment,this.permissions=t.documentDto.Permissions,this.sharingDto=t.sharingDto,this.initializeAssignmentActions(),this.updateTitle(),this.prepareViewHeaderActions(),this.buildForm(),this.subscriptions.push(this.form.valueChanges.subscribe(()=>this.triggerDirty()))}),this.claimDtoExt.change$.pipe(U(t=>t.any([xt.ClaimParticipants]))).subscribe(()=>this.prepareViewHeaderActions()),this.activatedRoute.params.subscribe(t=>{this.triggerQuestionnaireSave=k(t.saveQuestionnaire),this.isContractorQuoteDocument=k(t.quote)}))}onAssignmentClick(t){if(t.function!=null){let e=t.function();L(e)?this.subscriptions.push(e.subscribe(()=>{this.initializeAssignmentActions()})):this.initializeAssignmentActions()}}onOpenDocumentClick(){this.documentAvailable&&(this.windowService.nativeWindow.location.href=this.documentHRef)}onNameBlur(){this.form.value.documentName!=null&&this.form.value.documentName==""&&this.form.controls.documentName.reset()}updateTitle(){let t=this.claimAttachment.Extension!=""?"."+this.claimAttachment.Extension:"",e=this.isDirty?this.form.value.documentName??"":this.claimAttachment.Name;this.title=e+t}triggerDirty(){this.updateTitle(),V(1).subscribe(()=>this.isDirty=this.form.dirty)}initializeAssignmentActions(){this.assignmentViewActions=this.documentService.getAvailableAssignmentSubactions(this.claimDtoExt,this.claimAttachment)}prepareViewHeaderActions(){this.viewHeaderActionSections=[{primary:!0,actions:[{labelID:"cancel",primary:!0,visible:()=>this.isDirty,function:()=>this.onCancel()},{labelID:"save",primary:!0,visible:()=>this.isDirty,function:()=>this.onSave()}]},{actions:[{labelID:"claims.documentation.changeAssignment",primary:!1,disabled:!1,visible:this.isAssignmentChangeVisible(),matMenuTriggerFor:this.assignmentMenu},{labelID:"delete",primary:!1,disabled:!1,visible:()=>this.permissions.Delete.Visible,function:()=>this.onDelete()}]}]}isAssignmentChangeVisible(){return this.permissions!=null&&this.permissions.ChangeAssignment.Enabled==!0&&this.assignmentViewActions!=null&&this.assignmentViewActions.length>1}onCancel(){this.form.reset()}onSave(){this.form.disable(),d(!1).pipe(S(()=>
1{if(!this.form.controls.documentName.dirty)return d(!1);let e=this.getModifiedClaimAttachment();return this.documentService.putDocument(this.claimAttachment.ClaimID,e).pipe(_(()=>!0))}),S(e=>this.form.controls.documentShareWith==null||!this.form.controls.documentShareWith.dirty?d(e):this.documentService.share(this.claimAttachment.ClaimID,this.claimAttachment.ClaimAttachmentID,this.form.controls.documentShareWith.value).pipe(_(()=>!0))),S(e=>e?this.claimService.refreshClaim(this.claimDtoExt.Claim.ClaimID):d(null)),It({connectEagerly:!0}),Q(this.destroyed$)).subscribe(()=>this.closeBlade())}onDelete(){this.form.disable(),this.subscriptions.push(this.documentService.onDelete(this.claimAttachment,this.isContractorQuoteDocument).subscribe(()=>{this.claimService.refreshClaim(this.claimDtoExt.Claim.ClaimID),this.saveQuestionnaire(),this.closeBlade()})),this.form.reset()}closeBlade(){this.bladeService.closeCurrent()}buildForm(){this.form=this.formBuilder.group({documentName:new O({value:this.documentName,disabled:!this.permissions.Rename.Enabled},{nonNullable:!0})}),this.permissions.Sharing.Visible&&this.sharingDto!=null&&this.form.addControl("documentShareWith",new O({value:this.sharingDto.ShareInfo,disabled:!this.permissions.Sharing.Editable},{nonNullable:!0}))}getModifiedClaimAttachment(){let t=T({},this.claimAttachment);return t.Name=this.form.value.documentName??"",t}saveQuestionnaire(){this.triggerQuestionnaireSave&&this.questionnaireService.triggerQuestionnaireSave()}getDocumentScanStatusMessage(t){let e="";return this.translateService.get(t).subscribe(n=>e=n),e}static{this.\u0275fac=function(e){return new(e||i)(p(Mt),p(Nt),p(jt),p(D),p(ht),p(Wt),p(Ft),p(wt),p(vt),p(Pt))}}static{this.\u0275cmp=W({type:i,selectors:[["ng-component"]],viewQuery:function(e,n){if(e&1&&K(pe,7),e&2){let u;Z(u=tt())&&(n.assignmentMenu=u.first)}},hostVars:2,hostBindings:function(e,n){e&2&&N("document-component",n.class)},standalone:!1,features:[$],decls:40,vars:33,consts:[["assignmentMenu","matMenu"],["symIDPrefix","document",3,"actionSections"],[1,"menu-color-primary"],["mat-menu-item",""],[3,"formGroup"],["fxLayout","column","fxLayoutAlign","space-between"],["floatLabel","always",1,"field"],["matInput","","type","text","formControlName","documentName","maxlength","255","trim","blur",3,"blur"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","30px",1,"field"],[1,"label"],[1,"value"],["fxLayoutAlign","center",1,"open-document-container"],["mat-raised-button","","color","primary","symID","document.open-document",3,"click","disabled"],["fxLayoutAlign","center"],[1,"document-scan-message"],[1,"field","share-options"],["mat-menu-item","",3,"click"],[1,"attached-by-user",3,"symBladeRouterLink"],[1,"attached-by-participant",3,"symBladeRouterLink"],[1,"title"],["formControlName","documentShareWith","symID","document-share",3,"documentationObjectType","sharingData","claimDtoExt","objectCreatorUserID"]],template:function(e,n){e&1&&(r(0,"sym-view-header",1)(1,"sym-view-header-title"),s(2),o(),r(3,"mat-menu",2,0),q(5,de,5,5,"button",3,G),o()(),r(7,"form",4)(8,"div",5)(9,"mat-form-field",6)(10,"mat-label"),s(11),m(12,"translate"),o(),r(13,"input",7),x("blur",function(){return n.onNameBlur()}),o()(),r(14,"div",8)(15,"div",9),s(16),m(17,"translate"),m(18,"symColon"),o(),r(19,"div",10),s(20),m(21,"symFileSize"),m(22,"symTranslate"),o()(),B(23,he,10,9,"div",8),r(24,"div",8)(25,"div",9),s(26),m(27,"translate"),m(28,"symColon"),o(),r(29,"div",10),s(30),m(31,"symFullDateTime"),o()(),r(32,"div",11)(33,"button",12),x("click",function(){return n.onOpenDocumentClick()}),s(34),m(35,"translate"),o()(),r(36,"div",13)(37,"p",14),s(38),o()(),B(39,fe,5,7,"div",15),o()()),e&2&&(f("actionSections",n.viewHeaderActionSections),a(2),c(n.title),a(3),Y(n.assignmentViewActions),a(2),f("formGroup",n.form),a(4),c(l(12,15,"claims.documents.document.fieldName")),a(5),c(l(18,19,l(17,17,"claims.documents.document.fieldSize"))),a(4),c(l(22,23,l(21,21,n.documentSize))),a(3),E(n.hasCreatorUserID?23:-1),a(3),c(l(28,27,l(27,25,"claims.documents.document.fieldUploadDate"))),a(4),c(l(31,29,n.documentUploadDate)),a(3),f("disabled",!n.documentAvailable),a(),c(l(35,31,"claims.documents.document.openFile")),a(3),N("hidden",n.documentAvailable),a(),j(" ",n.documentScanStatusMessage," "),a(),E(n.permissions.Sharing.Visible?39:-1))},dependencies:[Bt,kt,Tt,Rt,Ot,Vt,Lt,Zt,nt,at,ot,lt,st,mt,ct,dt,bt,pt,ut,Ut,Xt,Yt,zt,Ht,Qt,$t,Dt],styles:["form[_ngcontent-%COMP%]{font-size:14px;line-height:1.25;padding:24px}form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}form[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;font-weight:700;margin-bottom:10px;text-transform:uppercase;white-space:nowrap}form[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:28px;margin:auto 0;max-width:80px;min-width:80px}form[_ngcontent-%COMP%]   .open-document-container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}form[_ngcontent-%COMP%]   mat-slide-toggle[_ngcontent-%COMP%]{display:block;margin-bottom:5px;margin-top:5px}form[_ngcontent-%COMP%]   a.attached-by-user[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]   a.attached-by-participant[_ngcontent-%COMP%]{display:block;font-style:italic}form[_ngcontent-%COMP%]   p.document-scan-message[_ngcontent-%COMP%]{font-style:italic;margin-bottom:0}.hidden[_ngcontent-%COMP%]{display:none}"]})}}return i})();var ie=(()=>{class i{constructor(t,e){this.claimResolve=t,this.errorDialogService=e}resolve(t){let e=t.params.claimAttachmentID;return this.claimResolve.resolve(t).pipe(C(n=>{let u=n.ClaimAttachments.find(w=>w.ClaimAttachmentID==e);return u!=null?d(u):(this.errorDialogService.displayI18nErrorMessage("claims.documents.document.insufficientPermissions"),F)}))}static{this.\u0275fac=function(e){return new(e||i)(h(M),h(_t))}}static{this.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ne=(()=>{class i{constructor(t,e){this.claimResolve=t,this.documentService=e}resolve(t){let e=t.params.claimAttachmentID;return this.claimResolve.resolve(t).pipe(C(n=>this.documentService.getDocumentDto(n.Claim.ClaimID,e)))}static{this.\u0275fac=function(e){return new(e||i)(h(M),h(D))}}static{this.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ae=(()=>{class i{constructor(t,e){this.claimResolve=t,this.documentService=e}resolve(t){let e=t.params.claimAttachmentID;return this.claimResolve.resolve(t).pipe(C(n=>this.documentService.getDocumentShareDto(n.Claim.ClaimID,e)))}static{this.\u0275fac=function(e){return new(e||i)(h(M),h(D))}}static{this.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ge=[{path:":claimAttachmentID",component:ee,resolve:{claimAttachment:ie,documentDto:ne,sharingDto:ae}}],oe=(()=>
1{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=A({type:i})}static{this.\u0275inj=y({imports:[v.forChild(ge),v]})}}return i})();var vi=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=A({type:i})}static{this.\u0275inj=y({imports:[Gt,it,te,oe,qt,rt,At.forChild(),ft,St,yt,gt,v,Jt,Ct]})}}return i})();export{vi as DocumentsModule};

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.