PageSourceSearch

https://app.bimedoc.com/7176.64f64826065d8191.js

js bimedoc.com collected 2026-10-06 17:43:19 UTC 33,685 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbimedoc_app=self.webpackChunkbimedoc_app||[]).push([[7176],{57425:(R,x,a)=>{a.d(x,{N:()=>_});var g=a(5e3);let _=(()=>{class d{}return d.\u0275fac=function(e){return new(e||d)},d.\u0275mod=g.oAB({type:d}),d.\u0275inj=g.cJS({}),d})()},37176:(R,x,a)=>{a.r(x),a.d(x,{ScreeningsModule:()=>Pn});var g=a(69808),_=a(99826),d=a(44409),p=a(77446),e=a(5e3),F=a(98613),H=a(78372),$=a(71884),l=a(93075),f=a(90066),S=a(68396),T=a(99120),z=a(47517),y=a(25049),M=a(57261),A=a(48966),b=a(67322),J=a(12806),Q=a(98833),E=a(81456),m=a(92181),K=a(69287),C=a(47423),N=a(87238),Z=a(33514),X=a(4128),W=a(63900),V=a(54744),q=a(37051),I=a(1712),ee=a(65795);const ne=function(){return["fal","circle-plus"]};function te(t,i){if(1&t&&e._UZ(0,"bi-button",7),2&t){e.oxw(2);const n=e.MAs(2);e.Q6J("icon",e.DdM(2,ne))("matMenuTriggerFor",n)}}function oe(t,i){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"bimedoc-documents-dashboard-table",8),e.NdJ("updateDoneEmitter",function(){e.CHM(n);const r=e.oxw(2);return r.fetchScreeningDocuments(r.screeningManager)}),e.qZA(),e.TgZ(2,"button",9),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).genericModalRef.close()}),e.TgZ(3,"span"),e._uU(4,"Fermer"),e.qZA()(),e.BQk()}if(2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("documentsList",n.documents)("patient",n.patient),e.xp6(1),e.Q6J("autofocus",!1)}}function ie(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"div",10),e._UZ(2,"img",11),e.TgZ(3,"div",12)(4,"div",13)(5,"span"),e._uU(6,"Aucun document associ\xe9"),e.qZA()(),e._UZ(7,"bi-button",14),e.qZA()(),e.BQk()),2&t){e.oxw(2);const n=e.MAs(2);e.xp6(7),e.Q6J("matMenuTriggerFor",n)}}function re(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"div",4)(2,"div",5),e.YNc(3,te,1,3,"bi-button",6),e.qZA(),e.YNc(4,oe,5,3,"ng-container",3),e.YNc(5,ie,8,1,"ng-container",3),e.qZA(),e.BQk()),2&t){const n=e.oxw();e.xp6(3),e.Q6J("ngIf",n.documents.length>0),e.xp6(1),e.Q6J("ngIf",n.documents.length>0),e.xp6(1),e.Q6J("ngIf",n.documents.length<=0)}}function ae(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){const s=e.CHM(n).$implicit,c=e.oxw();return c.downloadScreeningDocument([s],c.screeningManager)}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&t){const n=i.$implicit,o=e.oxw();let r;e.Q6J("autofocus",!1),e.xp6(2),e.Oqu(null==(r=o.ScreeningDocumentMetadataMap.get(n))?null:r.title)}}function se(t,i){if(1&t){const n=e.EpF();e.ynx(0),e._UZ(1,"div",16),e.TgZ(2,"button",15),e.NdJ("click",function(){e.CHM(n);const r=e.oxw();return r.downloadScreeningDocument(null==r.screeningManager.actions?null:r.screeningManager.actions.documents,r.screeningManager)}),e.TgZ(3,"span"),e._uU(4,"G\xe9n\xe9rez les documents de synth\xe8ses"),e.qZA()(),e.BQk()}2&t&&(e.xp6(2),e.Q6J("autofocus",!1))}let k=(()=>{class t{constructor(n,o,r){this.apiService=n,this.documentService=o,this.snackBar=r,this.genericModalRef=null,this.loading=!1,this.documents=[],this.patient=null,this.ScreeningDocumentMetadataMap=f.iM,this.subscriptions=[]}ngOnInit(){this.loading=!0,this.fetchPatientObject(this.screeningManager.patient_info.id),this.fetchScreeningDocuments(this.screeningManager)}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}fetchPatientObject(n){this.subscriptions.push(this.apiService.getPatient(n).subscribe({next:o=>{this.patient=o},error:o=>{this.snackBar.open("Erreur lors de la r\xe9cup\xe9ration des donn\xe9es du patient","Fermer",{duration:5e3})}}))}fetchScreeningDocuments(n){this.loading=!0,this.subscriptions.push(this.documentService.listPatientDocuments(n.patient_info.id,T.j,null,n.category.keyword,n.id).subscribe({next:o=>{this.documents=o.results,this.loading=!1},error:o=>{this.loading=!1,this.snackBar.open("Erreur lors de la r\xe9cup\xe9ration des documents","Fermer",{duration:5e3})}}))}downloadScreeningDocument(n,o){const r=[];this.loading=!0;for(const s of n){const c=this.ScreeningDocumentMetadataMap.get(s);if(null==c?void 0:c.generateFromBackend){const h=this.getSubDocument(s,o),v=this.documentService.persistPdfDocument("/screening/manager/",o.id,s,{category_keyword:o.category.keyword,template_keyword:s},h,"screening",o.category.keyword,o.patient_info.id,(0,V.lV)(c.title));
1r.push(v)}}this.subscriptions.push((0,X.D)(r).pipe((0,W.w)(s=>(this.snackBar.open("Les document ont bien \xe9t\xe9 g\xe9n\xe9r\xe9s.","Fermer",{duration:5e3}),this.documentService.listPatientDocuments(o.patient_info.id,T.j,null,o.category.keyword,o.id)))).subscribe({next:s=>{this.documents=s.results,this.loading=!1},error:s=>{this.loading=!1,this.snackBar.open("Erreur lors de la r\xe9cup\xe9ration des documents","Fermer",{duration:5e3})}}))}getSubDocument(n,o){const r=f.XK.get(n);return r?{template_keyword:r,data:{category_keyword:o.category.keyword}}:null}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(q.s),e.Y36(I.S),e.Y36(M.ux))},t.\u0275cmp=e.Xpm({type:t,selectors:[["bimedoc-screenings-documents-modal"]],inputs:{genericModalRef:"genericModalRef",screeningManager:"screeningManager"},decls:5,vars:3,consts:[[4,"fetchDataLoading"],["availableDocumentsMenu",""],["mat-menu-item","",3,"autofocus","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"screening-document-modal-content"],[1,"d-flex","justify-content-end"],["class","my-2","mat-raised-button","","type","tertiary","class","bi-btn me-2","color","primary","label","G\xe9n\xe9rer un nouveau document",3,"icon","matMenuTriggerFor",4,"ngIf"],["mat-raised-button","","type","tertiary","color","primary","label","G\xe9n\xe9rer un nouveau document",1,"bi-btn","me-2",3,"icon","matMenuTriggerFor"],[3,"documentsList","patient","updateDoneEmitter"],["mat-raised-button","","color","primary",1,"mt-2",3,"autofocus","click"],[1,"d-flex","flex-column","justify-content-center","align-items-center","py-5"],["src","../../../../../../assets/img/folder.svg"],[1,"d-flex","flex-column","ms-4"],[1,"my-3","bi-subtitle"],["mat-raised-button","","type","primary","color","primary","label","G\xe9n\xe9rer un nouveau document",1,"bi-btn","me-2",3,"matMenuTriggerFor"],["mat-menu-item","",3,"autofocus","click"],[1,"bi-divider","mt-2","mb-2"]],template:function(n,o){1&n&&(e.YNc(0,re,6,3,"ng-container",0),e.TgZ(1,"mat-menu",null,1),e.YNc(3,ae,3,2,"button",2),e.YNc(4,se,5,1,"ng-container",3),e.qZA()),2&n&&(e.Q6J("fetchDataLoading",o.loading),e.xp6(3),e.Q6J("ngForOf",null==o.screeningManager.actions?null:o.screeningManager.actions.documents),e.xp6(1),e.Q6J("ngIf","caregiver"!==o.screeningManager.category.keyword))},directives:[Z.D,g.O5,E.r,m.p6,ee.h,C.lW,m.VK,g.sg,m.OP],styles:[".screening-document-modal-content[_ngcontent-%COMP%]{max-height:calc(90vh - 60px);height:auto;width:100%;overflow-x:hidden;overflow-y:scroll;padding:10px 20px 20px}"]}),t})();var ce=a(59374),le=a(9892),u=a(32075),ge=a(27210),ue=a(24173),me=a(48144),de=a(57360);function pe(t,i){1&t&&(e.TgZ(0,"th",11),e._uU(1,"D\xc9PISTAGE"),e.qZA())}function fe(t,i){if(1&t&&(e.TgZ(0,"td",12)(1,"bimedoc-status-colored-label",13),e._uU(2),e.qZA()()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("textColor",n.category.color)("bgColor",n.category.color),e.xp6(1),e.hij(" ",n.category.short_label," ")}}function _e(t,i){1&t&&(e.TgZ(0,"th",11),e._uU(1,"PATIENT"),e.qZA())}const he=function(){return["fal","venus"]};function be(t,i){1&t&&e._UZ(0,"fa-icon",19),2&t&&e.Q6J("icon",e.DdM(1,he))}const ve=function(){return["fal","mars"]};function xe(t,i){1&t&&e._UZ(0,"fa-icon",20),2&t&&e.Q6J("icon",e.DdM(1,ve))}const Ce=function(t,i){return{"bi-table-patient-link":t,"bi-table-patient-buffer":i}};function Se(t,i){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"div",15),e.NdJ("click",function(){e.CHM(n);const r=e.oxw().$implicit,s=e.oxw(2);return"buffer"!=r.patient_info.source?s.navigateToPatientFolder(r.patient_info.id):null}),e.YNc(2,be,1,2,"fa-icon",16),e.YNc(3,xe,1,2,"fa-icon",17),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"titlecase"),e.ALo(7,"titlecase"),e.ALo(8,"titlecase"),e.qZA()(),e.TgZ(9,"div",18)(10,"span"),e._uU(11),e.ALo(12,"formatDate"),e.ALo(13,"age"),e.qZA()(),e.BQk()}if(2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngClass",e.WLB(18,Ce,"buffer"!==n.patient_info.source,"buffer"===n.patient_info.source)),e.xp6(1),e.Q6J("ngIf","f"==n.patient_info.gender),e.xp6(1),e.Q6J("ngIf","m"==n.patient_info.gender),e.xp6(2),e.lnq("",e.lcZ(6,8,n.patient_info.first_name)," ",e.lcZ(7,10,n.patient_info.last_name)," ",e.lcZ(8,12,n.patient_info.last_name_birth),""),e.xp6(6),e.AsE("",e.lcZ(12,14,n.patient_info.date_birth)," (",e.lcZ(13,16,n.patient_info.date_birth)," ans)")}}function Te(t,i){if(1&t&&(e.TgZ(0,"td",12),e.YNc(1,Se,14,21,"ng-container",14),e.qZA()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("ngIf",n.patient_info)}}function ye(t,i){1&t&&(e.TgZ(0,"th",11),e._uU(1,"R\xc9SULTAT"),e.qZA())}function Me(t,i){if(1&t&&(e.TgZ(0,"td",12),e._uU(1),e.qZA()),2&t){const n=i.$implicit;e.xp6(1),e.hij(" ",n.result_summary||"-"," ")}}function Ze(t,i){1&t&&(e.TgZ(0,"th",11),e._uU(1,"R\xc9ALISATION"),e.qZA())}function De(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"div",21)(2,"span"),e._uU(3),e.ALo(4,"formatDate"),e.qZA()(),e.TgZ(5,"div",22)(6,"span"),e._uU(7),e.ALo(8,"formatHour"),e.qZA()(),e.BQk()),2&t){const n=e.oxw().$implicit;
1e.xp6(3),e.Oqu(e.lcZ(4,2,n.date_registration)),e.xp6(4),e.Oqu(e.lcZ(8,4,n.date_registration))}}function Fe(t,i){1&t&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2,"-"),e.qZA(),e.BQk())}function Ae(t,i){if(1&t&&(e.TgZ(0,"td",12),e.YNc(1,De,9,6,"ng-container",14),e.YNc(2,Fe,3,0,"ng-container",14),e.qZA()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("ngIf",n.date_registration),e.xp6(1),e.Q6J("ngIf",!n.date_registration)}}function Je(t,i){1&t&&(e.TgZ(0,"th",11),e._uU(1,"ACTIONS"),e.qZA())}const Qe=function(){return["fal","download"]};function Ee(t,i){if(1&t&&(e.TgZ(0,"button",30),e._UZ(1,"fa-icon",24),e.TgZ(2,"span"),e._uU(3,"T\xe9l\xe9charger"),e.qZA()()),2&t){e.oxw();const n=e.MAs(11);e.Q6J("autofocus",!1)("matMenuTriggerFor",n),e.xp6(1),e.Q6J("icon",e.DdM(3,Qe))}}function Ne(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){const s=e.CHM(n).$implicit,c=e.oxw().$implicit;return e.oxw(2).downloadScreeningDocument(s,c)}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&t){const n=i.$implicit,o=e.oxw(3);let r;e.Q6J("autofocus",!1),e.xp6(2),e.Oqu(null==(r=o.ScreeningDocumentMetadataMap.get(n))?null:r.title)}}const Ie=function(){return["fal","file-alt"]};function ke(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(n);const r=e.oxw().$implicit;return e.oxw(2).openScreeningDocumentsModal(r)}),e._UZ(1,"fa-icon",24),e.TgZ(2,"span"),e._uU(3,"Documents"),e.qZA()()}2&t&&(e.Q6J("autofocus",!1),e.xp6(1),e.Q6J("icon",e.DdM(2,Ie)))}const Oe=function(){return["fal","pencil"]},Ue=function(){return["fal","eye"]};function Pe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"td",12)(1,"button",23),e.NdJ("click",function(){const s=e.CHM(n).$implicit,c=e.oxw(2);return c.openScreeningModal(s,c.ScreeningFormOpenMode.UPDATE)}),e._UZ(2,"fa-icon",24),e.TgZ(3,"span"),e._uU(4,"Modifier"),e.qZA()(),e.TgZ(5,"button",25),e.NdJ("click",function(){const s=e.CHM(n).$implicit,c=e.oxw(2);return c.openScreeningModal(s,c.ScreeningFormOpenMode.PREVIEW)}),e._UZ(6,"fa-icon",24),e.TgZ(7,"span"),e._uU(8,"Voir"),e.qZA()(),e.YNc(9,Ee,4,4,"button",26),e.TgZ(10,"mat-menu",null,27),e.YNc(12,Ne,3,2,"button",28),e.qZA(),e.YNc(13,ke,4,3,"button",29),e.qZA()}if(2&t){const n=i.$implicit,o=e.oxw(2);e.xp6(1),e.Q6J("autofocus",!1),e.xp6(1),e.Q6J("icon",e.DdM(7,Oe)),e.xp6(3),e.Q6J("autofocus",!1),e.xp6(1),e.Q6J("icon",e.DdM(8,Ue)),e.xp6(3),e.Q6J("ngIf",(null==n.actions||null==n.actions.documents?null:n.actions.documents.length)>0&&!o.canHavePatientFiles(n)),e.xp6(3),e.Q6J("ngForOf",null==n.actions?null:n.actions.documents),e.xp6(1),e.Q6J("ngIf",(null==n.actions||null==n.actions.documents?null:n.actions.documents.length)>0&&o.canHavePatientFiles(n))}}function we(t,i){1&t&&e._UZ(0,"tr",33)}function Ye(t,i){1&t&&e._UZ(0,"tr",34)}function Be(t,i){if(1&t&&(e.TgZ(0,"table",1),e.ynx(1,2),e.YNc(2,pe,2,0,"th",3),e.YNc(3,fe,3,3,"td",4),e.BQk(),e.ynx(4,5),e.YNc(5,_e,2,0,"th",3),e.YNc(6,Te,2,1,"td",4),e.BQk(),e.ynx(7,6),e.YNc(8,ye,2,0,"th",3),e.YNc(9,Me,2,1,"td",4),e.BQk(),e.ynx(10,7),e.YNc(11,Ze,2,0,"th",3),e.YNc(12,Ae,3,2,"td",4),e.BQk(),e.ynx(13,8),e.YNc(14,Je,2,0,"th",3),e.YNc(15,Pe,14,9,"td",4),e.BQk(),e.YNc(16,we,1,0,"tr",9),e.YNc(17,Ye,1,0,"tr",10),e.qZA()),2&t){const n=e.oxw();e.Q6J("dataSource",n.screeningManagers),e.xp6(16),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns)}}let O=(()=>{class t{constructor(n,o,r,s,c,h){this.modalService=n,this.router=o,this.screeningService=r,this.documentService=s,this.snackBar=c,this.dialog=h,this.updateDoneEmitter=new e.vpe,this.preventActionWhenLoading=!1,this.subscriptions=[],this.ScreeningDocumentMetadataMap=f.iM,this.ScreeningFormOpenMode=f.l1,this.displayedColumns=["screening_category","patient","result_summary","date_registration","actions"]}ngOnInit(){}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}canHavePatientFiles(n){var o;return null===(o=n.actions)||void 0===o?void 0:o.documents.some(r=>{var s;return null===(s=this.ScreeningDocumentMetadataMap.get(r))||void 0===s?void 0:s.generateFromBackend})}navigateToPatientFolder(n){n&&this.router.navigate(["/interface/patients/"+n+"/history"])}openScreeningModal(n,o){const r=this.screeningService.retrieveScreening(n.category.keyword,n.id).subscribe({next:s=>{const c=this.dialog.open(S.Q,Object.assign(Object.assign({},f.Pb),{data:{category:n.category,openMode:o,screeningData:s}}));if(o===f.l1.UPDATE){const h=c.afterClosed().subscribe(v=>{(null==v?void 0:v.hasSaved)&&this.updateDoneEmitter.emit()});this.subscriptions.push(h)}},error:s=>{this.snackMessage("Erreur lors de la r\xe9cup\xe9ration des donn\xe9es de d\xe9pistage")}});this.subscriptions.push(r)}downloadScreeningDocument(n,o){const r=this.ScreeningDocumentMetadataMap.get(n);if(!(null==r?void 0:r.generateFromBackend)){const s=this.screeningService.retrieveScreening(o.category.keyword,o.id).subscribe({next:c=>{this.screeningService.downloadScreeningDocument(n,c)},error:c=>{this.snackMessage("Erreur lors de la r\xe9cup\xe9ration des donn\xe9es de d\xe9pistage")}});this.subscriptions.push(s)}}openScreeningDocumentsModal(n){this.modalService.openGenericModal("Documents associ\xe9s",k,{screeningManager:n},{width:"75vw"})}snackMessage(n){this.snackBar.open(n,"Fermer",{duration:5e3})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(ce.Z),e.Y36(_.F0),e.Y36(y.E),e.Y36(I.S),e.Y36(M.ux),e.Y36(A.uw))},t.\u0275cmp=e.Xpm({type:t,selectors:[["bimedoc-screenings-dashboard-table"]],inputs:{screeningManagers:"screeningManagers"},outputs:{updateDoneEmitter:"updateDoneEmitter"},decls:1,vars:1,consts:[["mat-table","","class","w-100 bi-no-background",3,"dataSource",4,"preventActionWhenLoading"],["mat-table","",1,"w-100","bi-no-background",3,"dataSource"],["matColumnDef","screening_category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","patient"],["matColumnDef","result_summary"],["matColumnDef","date_registration"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","bi-box-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[3,"textColor","bgColor"],[4,"ngIf"],[3,"ngClass","click"],["class","me-2 fa-lg bi-icon-secondary",3,"icon",4,"ngIf"],["class","me-2 fa-lg bi-icon-green",3,"icon",4,"ngIf"],[1,"bi-screening-sublabel"],[1,"me-2","fa-lg","bi-icon-secondary",3,"icon"],[1,"me-2","fa-lg","bi-icon-green",3,"icon"],[1,"bi-text-grey"],[1,"bi-screening-sublabel","me-2"],["mat-button","","color","primary",3,"autofocus","click"],[1,"me-2",3,"icon"],["mat-button","","color","primary",1,"ms-2",3,"autofocus","click"],["mat-button","","color","primary",3,"autofocus","matMenuTriggerFor",4,"ngIf"],["availableDocumentsMenu",""],["mat-menu-item","",3,"autofocus","click",4,"ngFor","ngForOf"],["mat-button","","matTooltip","G\xe9rer les documents associ\xe9s \xe0 ce d\xe9pistage","color","primary",3,"autofocus","click",4,"ngIf"],["mat-button","","color","primary",3,"autofocus","matMenuTriggerFor"],["mat-menu-item","",3,"autofocus","click"],["mat-button","","matTooltip","G\xe9rer les documents associ\xe9s \xe0 ce d\xe9pistage","color","primary",3,"autofocus","click"],["mat-header-row",""],["mat-row","",1,"bi-box-row"]],template:function(n,o){1&n&&e.YNc(0,Be,18,3,"table",0),2&n&&e.Q6J("preventActionWhenLoading",o.preventActionWhenLoading)},directives:[le.f,u.BZ,u.w1,u.fO,u.ge,u.Dz,u.ev,ge.R,g.O5,g.mk,J.BN,C.lW,m.p6,m.VK,g.sg,m.OP,N.gM,u.as,u.XQ,u.nj,u.Gk],pipes:[g.rS,ue.i,me.C,de.O],styles:['div.bi-screening-sublabel[_ngcontent-%COMP%]{height:auto;width:-moz-fit-content;width:fit-content}div.bi-screening-sublabel[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:"MainFontRegular",var(--bmdc-fonts-selection);font-size:var(--bmdc-mobile-size)!important;color:var(--bmdc-grey-text)!important}[_nghost-%COMP%]   td.mat-cell[_ngcontent-%COMP%]{padding:16px 0}[_nghost-%COMP%]   th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:24px}[_nghost-%COMP%]   th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:24px}[_nghost-%COMP%]   .mat-table[_ngcontent-%COMP%]{border-spacing:0 15px!important}[_nghost-%COMP%]     th.mat-header-cell{border-bottom-color:transparent}[_nghost-%COMP%]     tr.mat-header-row{height:auto}']}),t})();var Le=a(8309);const je=["screeningFilterCheckbox"],Ge=function(){return["fal","qrcode"]};function Re(t,i){if(1&t&&e._UZ(0,"bi-button",24),2&t){e.oxw();const n=e.MAs(12);e.Q6J("icon",e.DdM(2,Ge))("matMenuTriggerFor",n)}}
1function He(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",25),e._uU(1),e.TgZ(2,"mat-menu",null,26)(4,"button",27),e.NdJ("click",function(){const s=e.CHM(n).$implicit;return e.oxw().generateScreeningQrcode(s)}),e._uU(5," T\xe9l\xe9charger le QR code "),e.qZA(),e.TgZ(6,"button",28),e.NdJ("click",function(){return e.CHM(n),e.oxw().openCopyScreeningQrcodeLinkMessage()}),e._uU(7," Partager le lien du QR "),e.qZA()()()}if(2&t){const n=i.$implicit,o=e.MAs(3),r=e.oxw();e.Q6J("matMenuTriggerFor",o),e.xp6(1),e.hij(" ",n.label," "),e.xp6(5),e.Q6J("cdkCopyToClipboard",r.screeningFastPassQrcodeLink(n.keyword))}}function $e(t,i){if(1&t&&(e.TgZ(0,"button",29)(1,"div",30)(2,"span"),e._uU(3,"Filtres"),e.qZA(),e._UZ(4,"div",31),e.qZA()()),2&t){const n=e.oxw(),o=e.MAs(16);e.Q6J("autofocus",!1)("matMenuTriggerFor",o),e.xp6(4),e.Q6J("ngClass","bi-bubble")("innerText",n.screeningFiltersCount)}}function ze(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"div",null,32)(2,"mat-checkbox",33,34),e.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){return e.CHM(n),e.oxw().onScreeningCategoryFilterSelect(r)}),e._uU(4),e.qZA()()}if(2&t){const n=i.$implicit;e.xp6(2),e.Q6J("value",n.keyword),e.xp6(2),e.hij("",n.label," ")}}function Ke(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(n).$implicit;return e.oxw().openScreeningModal(s)}),e._uU(1),e.qZA()}if(2&t){const n=i.$implicit;e.xp6(1),e.hij(" ",n.label," ")}}function Xe(t,i){if(1&t){const n=e.EpF();e.ynx(0),e.TgZ(1,"bimedoc-screenings-dashboard-table",36),e.NdJ("updateDoneEmitter",function(){return e.CHM(n),e.oxw(2).fetchScreenings()}),e.qZA(),e.BQk()}if(2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("screeningManagers",n.screeningManagers)}}function We(t,i){1&t&&e._UZ(0,"img",42)}function Ve(t,i){1&t&&e._UZ(0,"img",43)}function qe(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1,"R\xe9alisez vos d\xe9pistages ici"),e.qZA())}function en(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1,"Aucun r\xe9sultat"),e.qZA())}function nn(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"div",37),e.YNc(2,We,1,0,"img",38),e.YNc(3,Ve,1,0,"img",39),e.TgZ(4,"div",40)(5,"div",41),e.YNc(6,qe,2,0,"span",35),e.YNc(7,en,2,0,"span",35),e.qZA()()(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!(n.searchTerm.value||null!=n.screeningFilters&&null!=n.screeningFilters.value&&n.screeningFilters.value.length)),e.xp6(1),e.Q6J("ngIf",n.searchTerm.value||(null==n.screeningFilters||null==n.screeningFilters.value?null:n.screeningFilters.value.length)),e.xp6(3),e.Q6J("ngIf",!(n.searchTerm.value||null!=n.screeningFilters&&null!=n.screeningFilters.value&&n.screeningFilters.value.length)),e.xp6(1),e.Q6J("ngIf",n.searchTerm.value||(null==n.screeningFilters||null==n.screeningFilters.value?null:n.screeningFilters.value.length))}}function tn(t,i){if(1&t&&(e.ynx(0),e.YNc(1,Xe,2,1,"ng-container",35),e.YNc(2,nn,8,4,"ng-container",35),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.screeningManagers.length>0),e.xp6(1),e.Q6J("ngIf",n.screeningManagers.length<=0)}}const on=function(){return["fal","search"]},rn=function(){return["fal","trash"]},an=function(){return[20,50,100]};let U=(()=>{class t{constructor(n,o,r,s,c){this.pdfService=n,this.userService=o,this.screeningService=r,this.snackBar=s,this.dialog=c,this.loading=!1,this.availableScreeningCategories=[],this.availableFastPassScreeningCategories=[],this.screeningFiltersCount=0,this.screeningFilters=new l.Oe([]),this.searchTerm=new l.NI(null),this.pageInfo=T.j,this.screeningManagers=[],this.subscriptions=[],this.fetchAvailableCategories(),this.fetchScreenings()}ngOnInit(){this.subscribeToSearchChange()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}openScreeningModal(n,o){const r=this.dialog.open(S.Q,Object.assign(Object.assign({},f.Pb),{data:Object.assign({category:n,openMode:f.l1.CREATE},o&&{patient:o})}));this.subscriptions.push(r.afterClosed().subscribe(s=>{(null==s?void 0:s.hasSaved)&&this.fetchScreenings()}))}fetchAvailableCategories(){this.loading=!0,this.screeningService.listScreeningCategories().subscribe({next:n=>{this.availableScreeningCategories=n.results.sort((o,r)=>o.label.localeCompare(r.label)),this.availableFastPassScreeningCategories=n.results.reduce((o,r)=>(r.has_fastpass_access&&o.push(r),o),[]).sort((o,r)=>o.label.localeCompare(r.label)),this.loading=!1},error:n=>{this.snackBar.open("Erreur lors de la r\xe9cup\xe9ration des cat\xe9gories de d\xe9pistage","Fermer",{duration:5e3}),this.loading=!1}})}fetchScreenings(){this.loading=!0,this.screeningService.listScreenings(this.pageInfo,this.searchTerm.value,this.screeningFilters.value).subscribe({next:n=>{this.screeningManagers=n.results,this.pageInfo.length=n.count,this.loading=!1},error:n=>{this.snackBar.open("Erreur lors de la r\xe9cup\xe9ration des d\xe9pistages","Fermer",{duration:5e3}),this.screeningManagers=[],this.loading=!1}})}subscribeToSearchChange(){this.subscriptions.push(this.searchTerm.valueChanges.pipe((0,H.b)(1e3),(0,$.x)()).subscribe(n=>{this.fetchScreenings()}))}onScreeningCategoryFilterSelect(n){const o=this.screeningFilters;n.source.checked?o.push(new l.NI(n.source.value)):o.controls.forEac
1h((r,s)=>{r.value==n.source.value&&o.removeAt(s)})}resetCategoryFilter(){this.screeningFilterCheckboxes.forEach(n=>{n.checked=!1}),this.screeningFilters.clear(),this.applyFilters()}applyFilters(){this.screeningFiltersCount=this.screeningFilters.length,this.fetchScreenings()}changePage(n){const{pageIndex:o,pageSize:r}=n;this.pageInfo.pageIndex=o,this.pageInfo.pageSize=r,this.fetchScreenings()}generateScreeningQrcode(n){const o=this.screeningFastPassQrcodeLink(n.keyword);this.pdfService.generateScreeningFastPassPdf(n,o)}screeningFastPassQrcodeLink(n){return this.getFrontEndAppUrl()+"/application/fast-pass/"+n+"/"+this.userService.pharmacy.id}openCopyScreeningQrcodeLinkMessage(){this.snackBar.open("Le lien d'acc\xe8s au d\xe9pistage pour le patient a \xe9t\xe9 copi\xe9 dans le presse-papier","Fermer",{duration:5e3})}getFrontEndAppUrl(){const n=window.location.href.split("/");return window.location.href.includes("localhost")?"http://"+n[2]:"https://"+n[2]}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(z.R),e.Y36(F.K),e.Y36(y.E),e.Y36(M.ux),e.Y36(A.uw))},t.\u0275cmp=e.Xpm({type:t,selectors:[["bimedoc-screenings-dashboard"]],viewQuery:function(n,o){if(1&n&&e.Gf(je,5),2&n){let r;e.iGM(r=e.CRH())&&(o.screeningFilterCheckboxes=r)}},decls:36,vars:20,consts:[[2,"margin-bottom","100px"],[1,"d-flex","flex-wrap","justify-content-between","align-items-center"],[2,"max-width","400px"],["matPrefix","",1,"me-2",3,"icon"],["matInput","","placeholder","Nom, Pr\xe9nom, IPP","autocomplete","off",3,"formControl"],[1,"d-flex","flex-wrap","justify-content-end"],["type","tertiary","color","primary","label","Pr\xe9-formulaires patient","class","me-2",3,"icon","matMenuTriggerFor",4,"ngIf"],["qrcodeScreeningMenu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary",3,"autofocus","matMenuTriggerFor",4,"ngIf"],["filterScreeningMenu",""],[1,"mx-3","my-3"],[1,"bi-sub-menu"],[1,"d-flex","mt-3","flex-column","align-items-stretch"],[4,"ngFor","ngForOf"],[1,"mt-3","d-flex"],["mat-raised-button","","color","primary",1,"me-2",3,"click"],["mat-stroked-button","","matTooltip","Supprimer les filtres","matTooltipPosition","above",1,"bi-btn-square",3,"click"],[1,"bi-icon-warning","fa-lg",3,"icon"],["mat-raised-button","","color","primary",1,"ms-2",3,"autofocus","disabled","matMenuTriggerFor"],["doScreeningMenu",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"fetchDataLoading"],[1,"bi-no-background",3,"length","pageSize","pageIndex","pageSizeOptions","showFirstLastButtons","page"],["type","tertiary","color","primary","label","Pr\xe9-formulaires patient",1,"me-2",3,"icon","matMenuTriggerFor"],["mat-menu-item","",3,"matMenuTriggerFor"],["qrcodeScreeningMenuActionChoices",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"cdkCopyToClipboard","click"],["mat-stroked-button","","color","primary",3,"autofocus","matMenuTriggerFor"],[1,"d-flex","align-items-center"],[1,"bi-task-icon","d-flex","justify-content-center","align-items-center","ms-2",3,"ngClass","innerText"],["checkBoxes",""],["color","primary",3,"value","click","change"],["screeningFilterCheckbox",""],[4,"ngIf"],[3,"screeningManagers","updateDoneEmitter"],[1,"d-flex","justify-content-center","align-items-center","pt-5"],["src","../../../../assets/img/doctor_woman.svg",4,"ngIf"],["src","../../../../assets/img/folder.svg",4,"ngIf"],[1,"d-flex","flex-column","ms-4"],[1,"bi-subtitle"],["src","../../../../assets/img/doctor_woman.svg"],["src","../../../../assets/img/folder.svg"]],template:function(n,o){if(1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field")(4,"mat-label"),e._UZ(5,"fa-icon",3),e.TgZ(6,"span"),e._uU(7,"Rechercher un patient"),e.qZA()(),e._UZ(8,"input",4),e.qZA()(),e.TgZ(9,"div",5),e.YNc(10,Re,1,3,"bi-button",6),e.TgZ(11,"mat-menu",null,7),e.YNc(13,He,8,3,"button",8),e.qZA(),e.YNc(14,$e,5,4,"button",9),e.TgZ(15,"mat-menu",null,10)(17,"div",11)(18,"div",12)(19,"span"),e._uU(20,"Type de d\xe9pistage"),e.qZA()(),e.TgZ(21,"div",13),e.YNc(22,ze,5,2,"div",14),e.qZA(),e.TgZ(23,"div",15)(24,"button",16),e.NdJ("click",function(){return o.applyFilters()}),e._uU(25," Filtrer les r\xe9sultats "),e.qZA(),e.TgZ(26,"button",17),e.NdJ("click",function(){return o.resetCategoryFilter()}),e._UZ(27,"fa-icon",18),e.qZA()()()(),e.TgZ(28,"button",19)(29,"span"),e._uU(30,"R\xe9aliser un d\xe9pistage"),e.qZA()(),e.TgZ(31,"mat-menu",null,20),e.YNc(33,Ke,2,1,"button",21),e.qZA()()(),e.YNc(34,tn,3,2,"ng-container",22),e.TgZ(35,"mat-paginator-fr",23),e.NdJ("page",function(s){return o.changePage(s)}),e.qZA()()),2&n){const r=e.MAs(32);e.xp6(5),e.Q6J("icon",e.DdM(17,on)),e.xp6(3),e.Q6J("formControl",o.searchTerm),e.xp6(2),e.Q6J("ngIf",o.availableFastPassScreeningCategories.length>0),e.xp6(3),e.Q6J("ngForOf",o.availableFastPassScreeningCategories),e.xp6(1),e.Q6J("ngIf",o.availableScreeningCategories.length>1),e.xp6(8),e.Q6J("ngForOf",o.availableScreeningCategories),e.xp6(
15),e.Q6J("icon",e.DdM(18,rn)),e.xp6(1),e.Q6J("autofocus",!1)("disabled",0===o.availableScreeningCategories.length)("matMenuTriggerFor",r),e.xp6(5),e.Q6J("ngForOf",o.availableScreeningCategories),e.xp6(1),e.Q6J("fetchDataLoading",o.loading),e.xp6(1),e.Q6J("length",o.pageInfo.length)("pageSize",o.pageInfo.pageSize)("pageIndex",o.pageInfo.pageIndex)("pageSizeOptions",e.DdM(19,an))("showFirstLastButtons",!0)}},directives:[b.KE,b.hX,J.BN,b.qo,Q.Nt,l.Fj,l.JJ,l.oH,g.O5,E.r,m.p6,m.VK,g.sg,m.OP,K.i3,C.lW,g.mk,p.oG,N.gM,Z.D,O,Le.n],styles:[""]}),t})(),P=(()=>{class t{constructor(n){this.router=n}ngOnInit(){}redirectToBilling(){this.router.navigate([this.redirectionLink])}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.F0))},t.\u0275cmp=e.Xpm({type:t,selectors:[["bimedoc-screenings-no-access"]],inputs:{redirectionLink:"redirectionLink"},decls:11,vars:0,consts:[[1,"d-flex","justify-content-center","align-items-center","pt-5"],["src","../../../../assets/img/doctor_woman.svg"],[1,"d-flex","flex-column","ms-4"],[1,"bi-subtitle"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"img",1),e.TgZ(2,"div",2)(3,"div",3)(4,"span"),e._uU(5,"R\xe9alisez des d\xe9pistages"),e.qZA()(),e.TgZ(6,"span"),e._uU(7,"Passez \xe0 un plan Standard ou Premium pour acc\xe9der aux d\xe9pistages"),e.qZA(),e.TgZ(8,"div",4)(9,"button",5),e.NdJ("click",function(){return o.redirectToBilling()}),e._uU(10," Souscrire \xe0 un abonnement "),e.qZA()()()())},directives:[C.lW],styles:[""]}),t})();function sn(t,i){1&t&&(e.ynx(0),e._UZ(1,"bimedoc-screenings-dashboard"),e.BQk())}function cn(t,i){1&t&&(e.ynx(0),e._UZ(1,"bimedoc-screenings-no-access",1),e.BQk())}function ln(t,i){1&t&&(e.ynx(0),e._UZ(1,"bimedoc-screenings-no-access",2),e.BQk())}const gn=[{path:"",component:(()=>{class t{constructor(n){this.userService=n,this.dataTestId="page-screenings"}ngOnInit(){}get hasScreening(){var n,o;return null===(o=null===(n=this.userService)||void 0===n?void 0:n.pharmacy)||void 0===o?void 0:o.has_screening}get isFreemium(){var n,o;return null===(o=null===(n=this.userService)||void 0===n?void 0:n.pharmacy)||void 0===o?void 0:o.is_freemium}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(F.K))},t.\u0275cmp=e.Xpm({type:t,selectors:[["bimedoc-screenings"]],hostVars:1,hostBindings:function(n,o){2&n&&e.uIk("data-testid",o.dataTestId)},decls:3,vars:3,consts:[[4,"ngIf"],["redirectionLink","/interface-light/settings/billing"],["redirectionLink","/interface/settings/billing"]],template:function(n,o){1&n&&(e.YNc(0,sn,2,0,"ng-container",0),e.YNc(1,cn,2,0,"ng-container",0),e.YNc(2,ln,2,0,"ng-container",0)),2&n&&(e.Q6J("ngIf",o.hasScreening),e.xp6(1),e.Q6J("ngIf",!o.hasScreening&&o.isFreemium),e.xp6(1),e.Q6J("ngIf",!o.hasScreening&&!o.isFreemium))},directives:[g.O5,U,P],styles:[""]}),t})()}];let un=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[_.Bz.forChild(gn)]]}),t})();a(39347),a(15254),a(75798),a(62686),a(30964),a(31009),a(16815),a(39775),a(77079),a(12377);var Sn=a(39201),Tn=a(6167),yn=a(16117),Y=a(41201);function Mn(t,i){if(1&t&&(e.TgZ(0,"div")(1,"mat-checkbox",2),e._uU(2),e.qZA()()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("formControlName",n.formControlName),e.xp6(1),e.hij(" ",n.label," ")}}let B=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["screening-caregiver-teenager-subform"]],inputs:{formGroup:"formGroup",formItems:"formItems"},decls:2,vars:2,consts:[[1,"w-100","d-flex","gap-8","flex-wrap","mb-4",3,"formGroup"],[4,"ngFor","ngForOf"],["color","primary",3,"formControlName"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Mn,3,2,"div",1),e.qZA()),2&n&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngForOf",o.formItems))},directives:[l.JL,l.sg,g.sg,p.oG,l.JJ,l.u],styles:[""]}),t})();function Zn(t,i){if(1&t&&(e.TgZ(0,"div")(1,"mat-checkbox",2),e._uU(2),e.qZA()()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("formControlName",n.formControlName),e.xp6(1),e.hij(" ",n.label," ")}}let L=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["screening-caregiver-senior-subform"]],inputs:{formGroup:"formGroup",formItems:"formItems"},decls:2,vars:2,consts:[[1,"w-100","d-flex","gap-8","flex-wrap","mb
1-4",3,"formGroup"],[4,"ngFor","ngForOf"],["color","primary",3,"formControlName"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Zn,3,2,"div",1),e.qZA()),2&n&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngForOf",o.formItems))},directives:[l.JL,l.sg,g.sg,p.oG,l.JJ,l.u],styles:[""]}),t})();function Dn(t,i){if(1&t&&(e.TgZ(0,"div")(1,"mat-checkbox",2),e._uU(2),e.qZA()()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("formControlName",n.formControlName),e.xp6(1),e.hij(" ",n.label," ")}}let j=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["screening-caregiver-adult-subform"]],inputs:{formGroup:"formGroup",formItems:"formItems"},decls:2,vars:2,consts:[[1,"w-100","d-flex","gap-8","flex-wrap","mb-4",3,"formGroup"],[4,"ngFor","ngForOf"],["color","primary",3,"formControlName"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Dn,3,2,"div",1),e.qZA()),2&n&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngForOf",o.formItems))},directives:[l.JL,l.sg,g.sg,p.oG,l.JJ,l.u],styles:[""]}),t})();a(80416),a(29411);var Jn=a(14705),Qn=a(85365),En=a(57425),Nn=a(74107),In=a(90508),G=a(79814),kn=a(74404),D=a(53251),On=a(63338),Un=a(74533);let Pn=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[y.E,yn.F],imports:[[g.ez,_.Bz,d._t,p.p9,un,Sn.DocumentsModule,Jn.m,Tn.V,Qn.I,En.N]]}),t})();e.B6R(Y.H,[l.JL,l.sg,b.KE,Nn.gD,l.JJ,l.u,l.Q7,In.ey,b.TO,g.O5,B,j,L,G.VQ,G.U0,p.oG,kn.r,D.SP,D.sW,g.sg,D.uX,Z.D,On.X,Q.Nt,Un.IC,l.Fj],[])}}]);

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.