-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.8ac0267e1c958235.js
1 lines (1 loc) · 8.46 KB
/
common.8ac0267e1c958235.js
1
"use strict";(self.webpackChunkph_encyclopedia=self.webpackChunkph_encyclopedia||[]).push([[76],{6987:(P,C,i)=>{i.r(C),i.d(C,{DepartmentsModule:()=>B});var m=i(7945),c=function(e){return e.EMERGENCY="er",e.GENERAL_SURGERY="surg",e.INTERNAL_MEDICINE="intern",e.ORTHOPEDY="ortho",e.CARDIOLOGY="cardio",e.NEUROLOGY="neuro",e.TRAUMATOLOGY="trauma",e.INFECTIOUS_DISEASES="infect",e.ONCOLOGY="onco",e.OTORHINOLARYNGOLOGY="ent",e}(c||{}),d=i(177),l=i(5596),R=i(3239),E=i(1997),t=i(4438);let g=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[d.MD,l.Hu,E.w,R.Fg]})}return e})(),f=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[d.MD,g]})}return e})();var x=i(1626),u=i(6354),N=i(5558),O=i(983),U=i(2810);const y=(e,a)=>a.id;function M(e,a){if(1&e&&t.nrm(0,"img",4),2&e){const n=t.XpG();t.Mz_("src","assets/icons/ph_icon_",n.diagnose.icon_index,".png",t.B4B)}}function L(e,a){if(1&e&&t.nrm(0,"img",4),2&e){const n=t.XpG();t.Mz_("src","assets/icons/",n.diagnose.big_icon_path,"",t.B4B)}}function F(e,a){if(1&e&&(t.j41(0,"li",23),t.nrm(1,"img",24),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&e){const n=a.$implicit;t.R7$(),t.Mz_("src","assets/icons/ph_icon_",n.icon_index,".png",t.B4B),t.R7$(2),t.SpI(" ",n.name," ")}}function v(e,a){if(1&e&&(t.j41(0,"ul",21),t.Z7z(1,F,4,3,"li",23,y),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Dyx(n.examinations)}}function T(e,a){1&e&&(t.j41(0,"span"),t.EFF(1,"Cannot be examined."),t.k0s())}function S(e,a){if(1&e&&(t.j41(0,"div",23),t.nrm(1,"img",25),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Mz_("src","assets/icons/ph_icon_",n.treatment.icon_index,".png",t.B4B),t.R7$(2),t.SpI(" ",n.treatment.name," ")}}function j(e,a){1&e&&(t.j41(0,"span"),t.EFF(1,"Cannot be treated."),t.k0s())}function I(e,a){if(1&e&&(t.j41(0,"mat-card",10)(1,"mat-card-content",11)(2,"div",12),t.EFF(3,"Symptom"),t.k0s(),t.j41(4,"section",13)(5,"div",3),t.nrm(6,"img",14),t.k0s(),t.j41(7,"div",15)(8,"span",16),t.EFF(9),t.k0s(),t.j41(10,"span",17),t.EFF(11),t.k0s()()(),t.j41(12,"section",18),t.nrm(13,"mat-divider"),t.j41(14,"span",19),t.EFF(15,"Examinations"),t.k0s(),t.j41(16,"div",20),t.DNE(17,v,3,0,"ul",21)(18,T,2,0,"span"),t.k0s()(),t.j41(19,"section",22),t.nrm(20,"mat-divider"),t.j41(21,"span",19),t.EFF(22,"Treatments"),t.k0s(),t.j41(23,"div",20),t.DNE(24,S,4,3,"div",23)(25,j,2,0,"span"),t.k0s()()()()),2&e){const n=a.$implicit;t.R7$(6),t.Mz_("src","assets/icons/ph_icon_",n.icon_index,".png",t.B4B),t.R7$(3),t.SpI(" ",n.name," "),t.R7$(2),t.Lme(" Probability: ",n.probability,"% - Hazard: ",n.hazard," "),t.R7$(6),t.vxM(n.examinations.length?17:18),t.R7$(7),t.vxM(n.treatment?24:25)}}function $(e,a){if(1&e&&(t.j41(0,"mat-list",9),t.Z7z(1,I,26,7,"mat-card",10,t.Vm6),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Dyx(n.diagnose.symptoms)}}let D=(()=>{class e{constructor(){this.occurenceI18N={OCCURRENCE_COMMON:"Common",OCCURRENCE_UNCOMMON:"Uncommon",OCCURRENCE_RARE:"Rare",OCCURRENCE_SL_COMMON:"Common",OCCURRENCE_SL_UNCOMMON:"Uncommon",OCCURRENCE_SL_UNLIKELY:"Unlikely",OCCURRENCE_SL_RARE:"Rare",OCCURRENCE_SL_PRETTYRARE:"Pretty Rare",OCCURRENCE_SL_VERYRARE:"Very Rare",OCCURRENCE_SL_ULTRARARE:"Ultra Rare",OCCURRENCE_SL_UNIQUE:"Unique",OCCURRENCE_SL_ULTRAUNIQUE:"Ultra Unique"},this.occurenceColour={OCCURRENCE_COMMON:"text-green-500",OCCURRENCE_UNCOMMON:"text-emerald-500",OCCURRENCE_RARE:"text-blue-500",OCCURRENCE_SL_COMMON:"text-green-500",OCCURRENCE_SL_UNCOMMON:"text-emerald-500",OCCURRENCE_SL_UNLIKELY:"text-emerald-800",OCCURRENCE_SL_RARE:"text-blue-500",OCCURRENCE_SL_PRETTYRARE:"text-blue-800",OCCURRENCE_SL_VERYRARE:"text-violet-500",OCCURRENCE_SL_ULTRARARE:"text-violet-800",OCCURRENCE_SL_UNIQUE:"text-fuchsia-500",OCCURRENCE_SL_ULTRAUNIQUE:"text-fuchsia-800"}}static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["ph-encyclopedia-diagnose-card"]],inputs:{diagnose:"diagnose"},standalone:!1,decls:15,vars:7,consts:[[1,"h-full"],[1,"rounded-t","bg-red-700"],[1,"flex","flex-row","space-x-1","pb-4","justify-between"],[1,"w-10"],["fallbackSrc","",1,"object-contain",3,"src"],[1,"flex","flex-1","items-center","text-base","text-white","font-medium"],[1,"flex","flex-col","mt-2","space-y-2"],[1,"text-sm","text-left","font-medium",3,"ngClass"],[1,"text-sm","text-ellipsis","text-justify","text-gray-600"],[1,"space-y-2"],["appearance","outlined"],[1,"flex","flex-col","space-y-1"],[1,"text-red-900","font-bold","text-base"],[1,"flex","flex-1","space-x-1"],["fallbackSrc","",1,"object-contain","symptom-filter",3,"src"],[1,"flex","flex-col","text-red-700"],[1,"text-sm","font-medium"],[1,"text-xs"],[1,"flex","flex-col","text-green-700"],[1,"font-medium","text-base","pt-2"],[1,"text-sm"],[1,"-space-y-2"],[1,"flex","flex-col","text-blue-700"],[1,"flex","flex-row","items-center"],["fallbackSrc","",1,"rounded-full","h-8","w-8","examination-filter",3,"src"],["fallbackSrc","",1,"rounded-full","h-8","w-8","treatment-filter",3,"src"]],template:function(o,s){1&o&&(t.j41(0,"mat-card",0)(1,"mat-card-header",1)(2,"div",2)(3,"div",3),t.DNE(4,M,1,2,"img",4)(5,L,1,2,"img",4),t.k0s(),t.j41(6,"span",5),t.EFF(7),t.k0s()()(),t.j41(8,"mat-card-content")(9,"section",6)(10,"div",7),t.EFF(11),t.k0s(),t.j41(12,"div",8),t.EFF(13),t.k0s(),t.DNE(14,$,3,0,"mat-list",9),t.k0s()()()),2&o&&(t.R7$(4),t.vxM("BASE"===s.diagnose.type?4:5),t.R7$(3),t.SpI(" ",s.diagnose.name," "),t.R7$(3),t.Y8G("ngClass",s.occurenceColour[s.diagnose.occurrence]),t.R7$(),t.Lme(" Occurence: ",s.occurenceI18N[s.diagnose.occurrence]," | Insurance: $",s.diagnose.insurance," "),t.R7$(2),t.SpI(" ",s.diagnose.description," "),t.R7$(),t.vxM(s.diagnose.symptoms?14:-1))},dependencies:[d.YU,l.RN,l.m2,l.MM,E.q,R.jt,U.$],encapsulation:2})}return e})();const G=(e,a)=>a.id;function A(e,a){1&e&&t.nrm(0,"ph-encyclopedia-diagnose-card",4),2&e&&t.Y8G("diagnose",a.$implicit)}function Y(e,a){if(1&e&&(t.j41(0,"section",0)(1,"span",1),t.EFF(2),t.k0s(),t.j41(3,"div",2),t.EFF(4),t.k0s()(),t.j41(5,"section",3),t.Z7z(6,A,1,1,"ph-encyclopedia-diagnose-card",4,G),t.k0s()),2&e){const n=a,o=t.XpG();t.R7$(2),t.JRh(o.dptTitles[n.dptCode]),t.R7$(2),t.SpI(" Total diagnoses: ",n.diagnoses.length," "),t.R7$(2),t.Dyx(n.diagnoses)}}const k={er:"Emergency",surg:"General Surgery",intern:"Internal Medicine",ortho:"Orthopedy",cardio:"Cardiology",neuro:"Neurology",trauma:"Traumatology",infect:"Infectious Diseases",onco:"Oncology",ent:"Otorhinolaryngology"};let r=(()=>{class e{constructor(){this.http=(0,t.WQX)(x.Qq),this.activatedRoute=(0,t.WQX)(m.nX),this.dptTitles=k,this.dptCode=this.activatedRoute.data.pipe((0,u.T)(n=>n.dptCode)),this.diagnoses$=this.dptCode.pipe((0,N.n)(n=>n?this.fetchDiagnoses(n):O.w))}httpEndpoint(n){return this.http.get(`assets/diagnoses/diagnoses_${n}.json`)}fetchDiagnoses(n){return this.httpEndpoint(n).pipe((0,u.T)(o=>({dptCode:n,diagnoses:Object.values(o).sort((s,p)=>s.name.localeCompare(p.name))})))}static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["ph-encyclopedia-department-page"]],standalone:!1,decls:2,vars:3,consts:[[1,"mb-2","flex","flex-col"],[1,"font-medium","text-2xl","text-red-900"],[1,"text-lg","text-red-900"],[1,"grid","grid-cols-1","md:grid-cols-2","2xl:grid-cols-5","gap-4"],[1,"col-span-1",3,"diagnose"]],template:function(o,s){if(1&o&&(t.DNE(0,Y,8,2),t.nI1(1,"async")),2&o){let p;t.vxM((p=t.bMT(1,1,s.diagnoses$))?0:-1,p)}},dependencies:[D,d.Jj],encapsulation:2})}return e})();const b=[{path:"emergency",component:r,pathMatch:"full",data:{dptCode:c.EMERGENCY}},{path:"general_surgery",component:r,pathMatch:"full",data:{dptCode:c.GENERAL_SURGERY}},{path:"internal_medicine",component:r,pathMatch:"full",data:{dptCode:c.INTERNAL_MEDICINE}},{path:"orthopedics",component:r,pathMatch:"full",data:{dptCode:c.ORTHOPEDY}},{path:"cardiology",component:r,pathMatch:"full",data:{dptCode:c.CARDIOLOGY}},{path:"neurology",component:r,pathMatch:"full",data:{dptCode:c.NEUROLOGY}},{path:"traumatology",component:r,pathMatch:"full",data:{dptCode:c.TRAUMATOLOGY}},{path:"infectious_diseases",component:r,pathMatch:"full",data:{dptCode:c.INFECTIOUS_DISEASES}},{path:"oncology",component:r,pathMatch:"full",data:{dptCode:c.ONCOLOGY}},{path:"otorhinolaryngology",component:r,pathMatch:"full",data:{dptCode:c.OTORHINOLARYNGOLOGY}}];let B=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[f,m.iI.forChild(b),m.iI]})}return e})()}}]);