PageSourceSearch

https://mobile.my-care-plan.com/chunk-XF5R2IFD.js

js my-care-plan.com collected 2026-10-01 16:30:49 UTC 2,642 bytes, 1 lines download raw bytes

1import{a as V}from"./chunk-4RXFJI67.js";import{d as u}from"./chunk-RCUDUYYY.js";import{A as d}from"./chunk-QBKSJLGR.js";import{Ic as R,Nc as p,Rb as P,Vb as s,Xc as m,Ze as E,_e as O,f as L,ja as c,n as M,tc as a}from"./chunk-CQ5D4WCL.js";import{B as D,Bc as l,Ga as A,Gb as n,Ha as I,M as C,Mb as w,S as h,Sb as U,_ as y,ka as f,kc as v,lc as N,mc as b,na as T,uc as j,v as k,x as _,z as F,zc as x}from"./chunk-G2MBAB6T.js";F();function J(S,t){if(S&1){let e=j();N(0,"app-document-view",1),x("redirect",function(){A(e);let o=l();return I(o.onRedirect())}),b()}if(S&2){let e=l();v("task",e.task)("document",e.document)}}var G=class g{constructor(t,e,i,o,r,q,B){this.redirectService=t,this.translateService=e,this.appointmentApiService=i,this.documentApiService=o,this.configService=r,this.router=q,this.apiLinkPipe=B}ngOnInit(){this.redirectService.activeTask().pipe(h(({actions:t})=>t&&t[0]?.type===R.SIGN_DOCUMENT),y(0),h(()=>this.router.url.includes("signature-data")),O(this)).subscribe(t=>{this.init(t)})}init(t){this.document=void 0,this.task=t,this.configService.setTitle(this.task?.todo?.category?.title??""),this.task?.todo?.source&&(this.task.todo.source.appointment_id?this.appointmentApiService.get(this.task.todo.source.appointment_id).subscribe(e=>{this.task.clinicUuid=e.clinicUuid,this.initDocument()}):this.task.todo.source.clinic_id&&(this.task.clinicUuid=this.task.todo.source.clinic_id,this.initDocument()))}initDocument(){this.documentApiService.getClinicDocumentTypes(this.task.clinicUuid,[P.SIGN_DOCUMENT]).pipe(T(t=>{this.task.documentType=t.find(e=>e.id===Number(this.task.todo.actions[0].value[0]))?.name}),f(()=>this.translateService.getCurrentLanguageProperties()),f(t=>{let e=t?.id,i=this.task.clinicUuid??"",o=this.task.documentType??"",r=this.documentApiService.getDocumentApiLink(i,o,e);return C([D(r),this.apiLinkPipe.transform(r),this.documentApiService.getDocument(i,o,e)])})).subscribe(([t,e,{fileName:i}])=>this.document={link:t,src:e,fileName:i})}onRedirect(){this.redirectService.navigate([this.redirectService.getBaseUrl()+"/signature-create"],{queryParams:{documentName:this.document?.fileName}})}static{this.\u0275fac=function(e){return new(e||g)(n(u),n(s),n(m),n(p),n(d),n(c),n(a))}}static{this.\u0275cmp=w({type:g,selectors:[["app-signature-data"]],decls:1,vars:1,consts:[[3,"task","document","redirect",4,"ngIf"],[3,"redirect","task","document"]],template:function(e,i){e&1&&U(0,J,1,2,"app-document-view",0),e&2&&v("ngIf",i.task&&i.document)},dependencies:[M,L,V],styles:["[_nghost-%COMP%]{height:100%}"]})}};G=k([E(),_("design:paramtypes",[u,s,m,p,d,c,a])],G);export{G as SignatureDataComponent};

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.