PageSourceSearch

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

js my-care-plan.com collected 2026-09-24 13:07:39 UTC 2,440 bytes, 1 lines download raw bytes

1import{a as U}from"./chunk-JLO5TD5N.js";import{d as a}from"./chunk-JBQ3SQYQ.js";import{f as x,g as P}from"./chunk-IELZJEER.js";import{Sb as o,Yc as s,f as F,n as A,qc as c}from"./chunk-G7JQUX5M.js";import{D as v,F as h,Fc as I,H as M,Kc as w,Mc as d,O as f,Pa as _,Qa as S,Rb as n,Xb as T,bc as D,ha as g,ra as k,ua as p,vc as u,wc as C,xc as y}from"./chunk-GRSQHQHU.js";M();function N(l,i){if(l&1){let e=I();C(0,"app-document-view",1),w("redirect",function(){_(e);let m=d();return S(m.onRedirect())}),y()}if(l&2){let e=d();u("task",e.task)("document",e.document)}}var t,b=(t=class{constructor(i,e,r,m){this.formDocumentApiService=i,this.translateService=e,this.apiLinkPipe=r,this.redirectTaskService=m,this.languageId$=this.translateService.getCurrentLanguageProperties().pipe(f(L=>L?.id),k(1))}ngOnInit(){this.initActiveTask()}initActiveTask(){this.redirectTaskService.currentTask$.pipe(g(0),P(this)).subscribe(i=>{this.initFormDocument(i)})}initFormDocument(i){this.task=i,this.languageId$.pipe(p(e=>this.formDocumentApiService.getClinicFormDocument(i.clinicUuid,i.actions[0].value[0],e))).subscribe({next:e=>{e.questionnaire?this.navigateToQuestionnaire(e):e.attachment&&this.initDocument(e.attachment)},error:()=>{this.redirectTaskService.navigate([this.redirectTaskService.getBaseQuestionnaireUrl(),"unavailable"])}})}initDocument(i){this.languageId$.pipe(p(e=>this.apiLinkPipe.transform(this.formDocumentApiService.getFormDocumentApiLink(this.task.clinicUuid,this.task.actions[0].value[0],e)))).subscribe(e=>{this.document={src:e,link:i.href,fileName:i.fileName}})}navigateToQuestionnaire(i){this.redirectTaskService.navigate([this.redirectTaskService.getBaseQuestionnaireUrl(),"main",i.questionnaire.id],{queryParams:{appointmentId:this.task.todo.source.appointment_id,clinicUuid:this.task.clinicUuid}})}onRedirect(){this.redirectTaskService.navigate([this.redirectTaskService.getBaseUrl()+"/form-document/sign"],{queryParams:{documentName:this.document?.fileName}})}},t.\u0275fac=function(e){return new(e||t)(n(s),n(o),n(c),n(a))},t.\u0275cmp=T({type:t,selectors:[["app-form-document"]],decls:1,vars:1,consts:[[3,"task","document","redirect",4,"ngIf"],[3,"redirect","task","document"]],template:function(e,r){e&1&&D(0,N,1,2,"app-document-view",0),e&2&&u("ngIf",r.task&&r.document)},dependencies:[A,F,U],styles:["[_nghost-%COMP%]{height:100%}"]}),t);b=v([x(),h("design:paramtypes",[s,o,c,a])],b);export{b as FormDocumentComponent};

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.