PageSourceSearch

https://espace-sante.pleyel-sante.fr/4968.ba76252a7235f52c.js

js pleyel-sante.fr collected 2026-10-02 01:04:05 UTC 8,395 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4968],{84968:(Y,f,o)=>{o.r(f),o.d(f,{DocumentSessionModule:()=>N});var g=o(69808),S=o(34182),d=o(4881),D=o(45642),h=o(41719),p=o(97582),v=o(92340),l=o(9545),x=o(79881),e=o(72096),b=o(42227),Z=o(78451),M=o(70659),P=o(36783),y=o(31251),C=o(47237);function T(s,c){if(1&s&&(e.TgZ(0,"div")(1,"div",10),e._uU(2),e.qZA(),e.TgZ(3,"div",11)(4,"p",12),e._uU(5,'Ceci est une session de transfert s\xe9curis\xe9e pour transmettre vos documents. Utilisez le bouton "Ajouter un document" ci-dessous pour d\xe9marrer\xa0!'),e.qZA(),e._UZ(6,"img",13),e.qZA()()),2&s){const t=e.oxw();e.xp6(2),e.hij(" Bienvenue, ",t.username,"\xa0! "),e.xp6(4),e.Q6J("src",t.logoUrl,e.LSH)}}function O(s,c){if(1&s&&(e.TgZ(0,"div",14),e._UZ(1,"ion-icon",15),e._uU(2),e.qZA()),2&s){const t=e.oxw();e.xp6(2),e.AsE(" ",t.sentDocuments.length," ",t.sentDocuments.length>1?"documents envoy\xe9s":"document envoy\xe9"," ")}}function U(s,c){if(1&s&&(e.TgZ(0,"div",25),e._uU(1),e.qZA()),2&s){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.error)}}function A(s,c){if(1&s){const t=e.EpF();
1e.TgZ(0,"div",16),e._UZ(1,"ion-icon",17),e.TgZ(2,"div",18)(3,"div",19),e._uU(4),e.TgZ(5,"span",20),e._uU(6),e.qZA()(),e._UZ(7,"ion-progress-bar",21),e.YNc(8,U,2,1,"div",22),e.qZA(),e.TgZ(9,"ion-button",23),e.NdJ("click",function(){const r=e.CHM(t).$implicit,m=e.oxw();return e.KtG(m.cancel(r))}),e._UZ(10,"ion-icon",24),e.qZA()()}if(2&s){const t=c.$implicit;e.Tol("dismissing"===t.status?"fade-through-out":""),e.xp6(4),e.hij(" ",t.name," "),e.xp6(2),e.Oqu(t.size),e.xp6(1),e.Q6J("value",t.progress),e.xp6(1),e.Q6J("ngIf",t.error)}}const w=function(){return[]},E=[{path:"",component:(()=>{class s{constructor(t,n,u,r,m,i,a,J){this.route=t,this.globalVars=n,this.navCtrl=u,this.toaster=r,this.fileService=m,this.documentSessionService=i,this.nativeService=a,this.zone=J,this.logoUrl=v.N.smLogoUrl||v.N.logoUrl,this.state=l.ZM.Loading,this.State=l.ZM,this.sendingDocuments=[],this.sentDocuments=[],this.isSessionClosed=!1,this.eventBus=null}ngOnInit(){this.load()}addDocument(t){const n={status:"uploading",name:t.name,base64:t.base64,mime:t.mime,progress:0,size:(0,x.wX)(t.base64),error:null,subscription:null,id:null},u=this.fileService.getRawProgressHandler(i=>{n.status="host-downloading",n.progress=.95,n.id=i.id},(i,a)=>{switch(i){case"progress":n.progress=.95*a;break;case"end":n.progress=.95}},"upload"),r=i=>{let a="Une erreur est survenue lors du transfert";i&&i.message&&("form.unreadable"===i.message?a="La pi\xe8ce jointe est trop volumineuse":"mimetype.disallowed"===i.message&&(a="Ce type de fichier n'est pas autoris\xe9")),n.status="error",n.progress=100,n.error=a},m=(0,x.ug)(t.base64,t.mime);setTimeout(()=>{this.sendingDocuments.push(n),this.fileService.isAllowed(t.mime)?n.subscription=this.documentSessionService.sendDocument(this.hash,n.name,m).subscribe(u,r):r({message:"mimetype.disallowed"})},300)}pick(){return(0,p.mG)(this,void 0,void 0,function*(){for(const t of yield this.fileService.pick())this.addDocument(t)})}cancel(t){t.subscription&&t.subscription.unsubscribe(),t.status="dismissing",setTimeout(()=>{this.sendingDocuments=this.sendingDocuments.filter(n=>n!==t)},400)}load(){return(0,p.mG)(this,void 0,void 0,function*(){this.state=l.ZM.Loading;const t=this.route.snapshot.paramMap.get("hash");try{if(!t)throw new Error("Empty hash");const n=yield this.documentSessionService.getSessionInfo(t).toPromise();this.hash=n.hash,this.adhNum=n.adhNum,this.username=n.userName,this.eventBus=this.documentSessionService.getEventsBus(t),this.eventBus.onmessage=u=>{this.zone.run(()=>{const r=JSON.parse(u.data);this.handleEvent(r.name,r.payload).catch(console.error)})},this.state=l.ZM.Loaded}catch(n){console.error(n),this.state=l.ZM.Error,this.httpError=n}})}handleEvent(t,n){return(0,p.mG)(this,void 0,void 0,function*(){switch(console.log(`[document-session] Received event ${t}`),t){case"ack":this.clientId=n;const u=yield this.nativeService.getDeviceInfoAsync(!1),r=`${u.model} (${u.manufacturer})`;yield this.documentSessionService.broadcastEvent(this.hash,"client-joined",JSON.stringify({id:this.clientId,name:r})).toPromise();break;case"document-downloaded":const m=parseInt(n,10),i=this.sendingDocuments.find(a=>a.id===m);if(!i)return;i.progress=1,setTimeout(()=>{i.status="dismissing",setTimeout(()=>{this.sendingDocuments=this.sendingDocuments.filter(a=>a!==i),this.sentDocuments.push(i)},400)},750);break;case"session-closed":this.isSessionClosed=!0,this.eventBus.close(),this.eventBus=null;break;default:console.error(`[document-session] Ignoring event ${t}`)}})}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(h.gz),e.Y36(b.u),e.Y36(d.SH),e.Y36(Z.M),e.Y36(M.I),e.Y36(P.N),e.Y36(y.R),e.Y36(e.R0b))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-document-session"]],decls:16,vars:8,consts:[["color","primary"],[1,"page-container"],["what","de la session de transfert","emptyTitle","Session termin\xe9e","emptyDescription","La session de transfert est termin\xe9e, vous pouvez fermer cette page",1,"fade-through",3,"state","retry","collection"],[4,"ngIf"],[1,"p-3"],["class","sent-documents-info fade-through",4,"ngIf"],["class","document fade-through",3,"class",4,"ngFor","ngForOf"],[1,"cta-footer"],["color","primary",1,"text-transform-initial",3,"disabled","click"],["slot","start","name","add-circle"],[1,"side-title","mt-3"],[1,"side-card","mt-2","d-flex","align-items-center"],[1,"text-justify","flex-grow-1","my-0"],["role","presentation",1,"flex-shink-0","ml-3",2,"max-width","60px",3,"src"],[1,"sent-documents-info","fade-through"],["name","checkmark-circle"],[1,"document","fade-through"],["name","document-outline",1,"icon-presentation"],[1,"document-details"],[1,"document-name"],[1,"text-muted"],[3,"value"],["class","text-danger mt-2 text-strong",4,"ngIf"],["color","transparent","shape","round",1,"cancel-button",3,"click"],["name","close"],[1,"text-danger","mt-2","text-strong"]],template:function(t,n){1&t&&(e.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-title"),e._uU(3," Transfert de documents "),e.qZA()()(),e.TgZ(4,"ion-content")(5,"div",1),e._UZ(6,"app-ui-state",2),e.YNc(7,T,7,2,"div",3),e.TgZ(8,"div",4),e.YNc(9,O,3,2,"div",5),e.YNc(10,A,11,6,"div",6),e.qZA()()(),e.TgZ(11,"ion-footer",7)(12,"ion-toolbar")(13,"ion-button",8),e.NdJ("click",function(){return n.pick()}),e._UZ(14,"ion-icon",9),e._uU(15," Ajouter un document "),e.qZA()()()),2&t&&(e.xp6(6),e.Q6J("state",n.state)("retry",n.load.bind(n))("collection",n.isSessionClosed?e.DdM(7,w):null),e.xp6(1),e.Q6J("ngIf",n.state===n.State.Loaded&&!n.isSessionClosed),e.xp6(2),e.Q6J("ngIf",n.sentDocuments.length>0),e.xp6(1),e.Q6J("ngForOf",n.sendingDocuments),e.xp6(3),e.Q6J("disabled",n.state!==n.State.Loaded||n.isSessionClosed))},dependencies:[g.sg,g.O5,d.YG,d.W2,d.fr,d.Gu,d.gu,d.X7,d.wd,d.sr,C._],styles:[".sent-documents-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-bottom:10px;margin-top:10px;padding:10px 16px;background:rgba(var(--ion-color-success-rgb),.1);font-weight:500;border-radius:8px;color:var(--ion-color-success-shade)}.sent-documents-info[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{width:22px;height:22px;margin-right:10px}.sent-documents[_ngcontent-%COMP%]   .document[_ngcontent-%COMP%]{transform:translateY(-90%)}.document[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:10px 16px;box-shadow:var(--ion-card-shadow);border-radius:8px;background:#fff;margin-bottom:10px}.document[_ngcontent-%COMP%]   .icon-presentation[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:16px;opacity:.7}.document[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{flex-shrink:0}.document[_ngcontent-%COMP%]   ion-button.cancel-button[_ngcontent-%COMP%]{margin-left:12px;--padding-start: 8px;--padding-end: 8px;
1--box-shadow: none}.document[_ngcontent-%COMP%]   .document-details[_ngcontent-%COMP%]{flex-grow:1}.document[_ngcontent-%COMP%]   .document-details[_ngcontent-%COMP%]   .document-name[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500;line-height:20px}"]}),s})()}];let I=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[h.Bz.forChild(E),h.Bz]}),s})(),N=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[g.ez,S.u5,d.Pc,I,D.K]}),s})()}}]);

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.