PageSourceSearch

https://www.cbomeco.com/224.0e07606c691cdcbf.js

js cbomeco.com collected 2026-09-24 14:40:28 UTC 13,514 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[224],{60224:(se,f,i)=>{i.r(f),i.d(f,{UserEditMedicalModule:()=>te});var M=i(97144),g=i(38132),b=i(10467),R=i(60152),I=i(573),T=i(45312),j=i(13961),C=i(25615),G=i(1460),U=i(69915),D=i(68010),e=i(73664),l=i(2615),E=i(94474),$=i(36229),s=i(89417),y=i(91029),F=i(13443),v=i(72200),S=i(82765),p=i(25084),x=i(33746),u=i(23620),Y=i(44112),N=i(49255),k=i(24237),P=i(68264),A=i(6688),X=i(68018);const O=a=>({"fixed-actions":a});function J(a,r){1&a&&(e.j41(0,"div",9)(1,"h1",10),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&a&&(e.R7$(2),e.JRh(e.bMT(3,1,"module.injuries.injuries")))}function _(a,r){1&a&&e.nrm(0,"app-general-injuries-view")}function B(a,r){1&a&&(e.j41(0,"div",9)(1,"h1",10),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&a&&(e.R7$(2),e.SpI("",e.bMT(3,1,"global.inscription.medical_data")," "))}function V(a,r){1&a&&e.nrm(0,"app-alerts",11)}function z(a,r){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"global.validator.required")))}function Z(a,r){if(1&a&&(e.j41(0,"mat-error",27),e.DNE(1,z,3,3,"span",6),e.k0s()),2&a){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.medicalForm.get("documentNumber").hasError("required"))}}function L(a,r){if(1&a&&(e.j41(0,"a",43),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG(3);e.Y8G("href",t.getMedicalUrl(t.document),e.B4B),e.R7$(),e.JRh(t.document.name||e.bMT(2,2,"global.common.medical-document-info"))}}function W(a,r){if(1&a&&e.nrm(0,"img",44),2&a){const t=e.XpG(3);e.Y8G("src",t.getMedicalUrl(t.document),e.B4B)}}function H(a,r){if(1&a){const t=e.RV6();e.j41(0,"app-button-link",40),e.bIt("buttonAction",function(){l.eBV(t);const n=e.XpG(3);return l.Njj(n.deleteImage(n.document))}),e.k0s()}2&a&&e.Y8G("value","global.button.remove")}function K(a,r){if(1&a){const t=e.RV6();e.j41(0,"form",13),e.bIt("ngSubmit",function(){l.eBV(t);const n=e.XpG(2);return l.Njj(n.submitForm(n.medicalForm))}),e.j41(1,"div",14)(2,"div",15)(3,"mat-form-field",16)(4,"mat-label"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"textarea",17),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",15)(10,"mat-form-field",16)(11,"mat-label"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"textarea",18),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",15)(17,"mat-form-field",16)(18,"mat-label"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",19),e.nI1(22,"translate"),e.k0s()(),e.j41(23,"div",15)(24,"mat-form-field",16)(25,"mat-label"),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"textarea",20),e.nI1(29,"translate"),e.k0s()(),e.j41(30,"div",15)(31,"mat-form-field",16)(32,"mat-label"),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"textarea",21),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",22)(38,"mat-form-field",23)(39,"mat-label"),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.nrm(42,"input",24),e.nI1(43,"translate"),e.nrm(44,"mat-datepicker-toggle",25)(45,"mat-datepicker",26,0),e.j41(47,"mat-error",27),e.nrm(48,"app-date-errors",28),e.k0s()(),e.j41(49,"mat-form-field",23)(50,"mat-label"),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.nrm(53,"input",29),e.nI1(54,"translate"),e.nrm(55,"mat-datepicker-toggle",25)(56,"mat-datepicker",26,1),e.j41(58,"mat-error",27),e.nrm(59,"app-date-errors",30),e.k0s()(),e.j41(60,"mat-checkbox",31),e.EFF(61),e.nI1(62,"translate"),e.k0s()(),e.j41(63,"div",32)(64,"mat-form-field",23)(65,"mat-label"),e.EFF(66),e.nI1(67,"translate"),e.k0s(),e.nrm(68,"input",33),e.nI1(69,"translate"),e.DNE(70,Z,2,1,"mat-error",34),e.k0s(),e.j41(71,"div",35),e.DNE(72,L,3,4,"a",36)(73,W,1,1,"img",37),e.j41(74,"div",38),e.DNE(75,H,1,1,"app-button-link",39),e.j41(76,"app-button-link",40),e.bIt("buttonAction",function(){l.eBV(t);const n=e.XpG(2);return l.Njj(n.selectImage(n.document,"main"))}),e.k0s()()()()(),e.j41(77,"div",41),e.nrm(78,"app-button-main",42),e.k0s()()}if(2&a){const t=e.sdS(46),o=e.sdS(57),n=e.XpG(2);e.Y8G("formGroup",n.medicalForm),e.R7$(5),e.JRh(e.bMT(6,37,"global.common.medical_observations")),e.R7$(2),e.Y8G("placeholder",e.bMT(8,39,"global.common.medical_observations")),e.R7$(5),e.JRh(e.bMT(13,41,"global.placeholder.injuries")),e.R7$(2),e.Y8G("placeholder",e.bMT(15,43,"global.placeholder.injuries")),e.R7$(5),e.JRh(e.bMT(20,45,"global.placeholder.allergies")),e.R7$(2),e.Y8G("placeholder",e.bMT(22,47,"global.placeholder.allergies")),e.R7$(5),e.JRh(e.bMT(27,49,"global.placeholder.nutrition")),e.R7$(2),e.Y8G("placeholder",e.bMT(29,51,"global.placeholder.nutrition")),e.R7$(5),e.JRh(e.bMT(34,53,"global.placeholder.psicology")),e.R7$(2),e.Y8G("placeholder",e.bMT(36,55,"global.placeholder.psicology")),e.R7$(5),e.JRh(e.bMT(41,57,"global.placeholder.recondate")),e.R7$(2),e.Y8G("matDatepicker",t)("placeholder",e.bMT(43,59,"global.placeholder.recondate")),e.R7$(2),e.Y8G("for",t),e.R7$(),e.Y8G("touchUi",!1),e.R7$(3),e.Y8G("fGroup",n.medicalForm),e.R7$(3),e.JRh(e.bMT(52,61,"global.placeholder.end-recondate")),e.R7$(2),e.Y8G("matDatepicker",o)("placeholder",e.bMT(54,63,"global.placeholder.end-recondate")),e.R7$(2),e.Y8G("for",o),e.R7$(),e.Y8G("touchUi",!1),e.R7$(3),e.Y8G("fGroup",n.medicalForm),e.R7$(2),e.JRh(e.bMT(62,65,"global.placeholder.privatePolicy")),e.R7$(5),e.JRh(e.bMT(67,67,"global.placeholder.document")),e.R7$(2),e.Y8G("placeholder",e.bMT(69,69,"global.placeholder.document"))("formControlName","documentNumber"),e.R7$(2),e.Y8G("ngIf",n.medicalForm.get("documentNumber").touched||n.isSubmitted),e.R7$(2),e.Y8G("ngIf",n.document.url&&(null==n.document.documentType||"pdf"==n.document.documentType)),e.R7$(),e.Y8G("ngIf",n.document.url&&null!=n.document.documentType&&"pdf"!=n.document.documentType),e.R7$(2),e.Y8G("ngIf",n.document.url),e.R7$(),e.Y8G("value","module.user.add_document"),e.R7$(),e.Y8G("ngClass",e.eq3(71,O,"admin"==n.pageType)),e.R7$(),e.Y8G("isMain",!0)("isDisabled",n.submit)("value",n.submit?"global.button.saving":"global.button.save")("size","small")}}function Q(a,r){if(1&a&&(e.j41(0,"div",4),e.DNE(1,K,79,73,"form",12),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.canEditProfile)}}const w=[{path:"",component:(()=>{class a{authService;modalService;clubService;globalVars;appService;imageDialog;apiUserService;fb;activatedRoute;userService;medicalForm;canEditProfile=!1;userToRead;user;loaded=!1;submit=!1;save=!1;pageType;isActiveInjuries=!0;document={url:null,id:-1,number:""};b64Regex=/^data:[A-Za-z0-9@]{0,30}\/(jpg|jpeg|png|pdf);base64,(?:[A-Za-z0-9+\/]{4}
1)*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/i;subscription=new j.yU;constructor(t,o,n,d,c,ae,ne,ie,oe,re){this.authService=t,this.modalService=o,this.clubService=n,this.globalVars=d,this.appService=c,this.imageDialog=ae,this.apiUserService=ne,this.fb=ie,this.activatedRoute=oe,this.userService=re,this.subscription.add(this.activatedRoute.data.subscribe(m=>{m.pos&&(this.userToRead=m.pos),this.userService.setActualPos(this.userToRead),this.subscription.add(this.activatedRoute.queryParams.subscribe(le=>{this.userToRead=le.pos||0,this.userService.setActualPos(this.userToRead)})),m.page&&(this.pageType=m.page),"admin"!=this.pageType&&(this.globalVars.navbarTop.backLink=!0,this.globalVars.navbarTop.customLink=null,this.appService.broadcast("changeTitleAppNav",{title:"global.navbar.navtabs.medical"}))}))}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){var t=this;return(0,b.A)(function*(){let o=t.clubService.getClubData().clubModules;t.userToRead=t.userService.getActualPos(),null!=o&&(t.isActiveInjuries=null!=o.injuries&&"active"==o.injuries),t.user=yield t.apiUserService.getPublicUserInfoNew(t.userService.getUsername(),t.clubService.getClubId(),"false","false","false","false","false","true").toPromise(),t.user=t.user[0],(t.authService.isClubAdministrator()||t.user.id==t.authService.getMe().id||t.authService.isCoordinatorClub()||t.authService.isTutorOf(t.user.id))&&(t.canEditProfile=!0),t.medicalForm=t.fb.group({allergies:[t.user.userMedical?t.user.userMedical.allergies:null],privatePolicy:[t.user.userMedical?t.user.userMedical.privatePolicy:null],observations:[t.user.userMedical?t.user.userMedical.observations:null],injuries:[t.user.userMedical?t.user.userMedical.injuries:null],nutrition:[t.user.userMedical?t.user.userMedical.nutrition:null],psicology:[t.user.userMedical?t.user.userMedical.psicology:null],sanitaryDocument:[t.user.userMedical?t.user.userMedical.sanitaryDocument:null],reconDate:[t.user.userMedical?t.user.userMedical.reconDate:null],finalReconDate:[t.user.userMedical?t.user.userMedical.finalReconDate:null],documentNumber:[t.user.userMedical&&t.user.userMedical.document?t.user.userMedical.document.identificationDocument:null]}),null!=t.user.userMedical&&null!=t.user.userMedical.document&&(t.document=t.user.userMedical.document,t.document.url=t.user.userMedical.document.imageDocument),t.loaded=!0})()}submitForm({value:t,valid:o}){this.save=!1,o&&(this.submit=!0,t&&(t.document=this.document,t.document.identificationDocument=t.documentNumber,this.document.url&&(t.document.imageDocument=this.document.url),delete t.identificationDocument),this.apiUserService.editUserMedical(this.user.id,t).subscribe(n=>{n&&(this.submit=!1),this.save=!0}))}selectImage(t,o){var n=this;return(0,b.A)(function*(){let d=yield n.modalService.openModal({component:I.y,modalSize:"lg",data:{data:{fileTypes:["jpg","pdf"],title:"module.shared.files_import.select_file",message:"module.shared.files_import.select_image_size_message",maxSize:1572864}},options:{}});if(d.data){const c=d.data;""===c.base64?"main"===o?delete t.url:"aux"===o&&delete t.urlAux:"main"===o?(t.imageDocument=null,t.url=c.base64,t.name=c.name,t.documentType=c.extension):"aux"===o&&(t.imageDocumentAux=null,t.urlAux=c.base64)}})()}getMedicalUrl(t){return this.b64Regex.test(t.url)?t.url.replace("unsafe",""):T.c.api.URL+"/documentation/"+t.url+"?type="+t.documentType}deleteImage(t){t.url=null,t.imageDocument=null,t.name=null}static \u0275fac=function(o){return new(o||a)(e.rXU(D.u),e.rXU(E.M),e.rXU(R.X),e.rXU(C.Y),e.rXU(U.d),e.rXU($.h),e.rXU(G.K),e.rXU(s.ok),e.rXU(y.nX),e.rXU(F.D))};static \u0275cmp=e.VBU({type:a,selectors:[["app-user-edit-medical"]],standalone:!1,decls:8,vars:5,consts:[["reconDate",""],["finalReconDate",""],[1,"dashboard","public-dashboard","white"],["id","user-edit-basics",1,"content"],[1,"main-content"],["class","subsection-header",4,"ngIf"],[4,"ngIf"],["dismissable","true","type","success","mensaje","Se han guardado los cambios.",4,"ngIf"],["class","main-content",4,"ngIf"],[1,"subsection-header"],[1,"title"],["dismissable","true","type","success","mensaje","Se han guardado los cambios."],["class","row-layout",3,"formGroup","ngSubmit",4,"ngIf"],[1,"row-layout",3,"ngSubmit","formGroup"],[1,"form-column","no-margin"],[1,"form-row-outlined","area-row"],["appearance","outline",1,"field-textarea"],["matInput","","formControlName","observations",3,"placeholder"],["matInput","","formControlName","injuries",3,"placeholder"],["matInput","","formControlName","allergies",3,"placeholder"],["matInput","","formControlName","nutrition",3,"placeholder"],["matInput","","formControlName","psicology",3,"placeholder"],[1,"form-row-outlined","triple"],["appearance","outline"],["id","reconDate","matInput","","formControlName","reconDate",3,"matDatepicker","placeholder"],["matSuffix","",3,"for"],["disabled","false",3,"touchUi"],["align","start"],["controlName","reconDate",3,"fGroup"],["id","finalReconDate","matInput","","formControlName","finalReconDate",3,"matDatepicker","placeholder"],["controlName","finalReconDate",3,"fGroup"],["formControlName","privatePolicy"],[1,"form-row-outlined","document-row"],["matInput","","type","string",3,"placeholder","formControlName"],["align","start",4,"ngIf"],[1,"document-img-col"],["class","link","target","new","download","",3,"href",4,"ngIf"],["class","document-img",3,"src",4,"ngIf"],[1,"img-actions"],[3,"value","buttonAction",4,"ngIf"],[3,"buttonAction","value"],[1,"actions-right",3,"ngClass"],["type","submit",3,"isMain","isDisabled","value","size"],["target","new","download","",1,"link",3,"href"],[1,"document-img",3,"src"]],template:function(o,n){1&o&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.DNE(3,J,4,3,"div",5)(4,_,1,0,"app-general-injuries-view",6)(5,B,4,3,"div",5)(6,V,1,0,"app-alerts",7)(7,Q,2,1,"div",8),e.k0s()()()),2&o&&(e.R7$(3),e.Y8G("ngIf",n.isActiveInjuries),e.R7$(),e.Y8G("ngIf",n.isActiveInjuries),e.R7$(),e.Y8G("ngIf","admin"==n.pageType&&n.canEditProfile),e.R7$(),e.Y8G("ngIf",n.save),e.R7$(),e.Y8G("ngIf",n.loaded))},dependencies:[v.YU,v.bT,S.So,p.Vh,p.bZ,p.bU,x.fg,u.j,u.M,u.b,u.g,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,Y.F,N.Z,k.q,P.W,A.H,X.D9],styles:[".dashboard[_ngcontent-%COMP%]{padding-bottom:200px}.document-img[_ngcontent-%COMP%]{max-height:150px;object-fit:contain}.document-img-col[_ngcontent-%COMP%]{margin-top:var(--module)}.document-img-col[_ngcontent-%COMP%]   .img-actions[_ngcontent-%COMP%]{margin-top:var(--module);display:flex}.document-img-col[_ngcontent-%COMP%]   .img-actions[_ngcontent-%COMP%]   app-button-link[_ngcontent-%COMP%]{margin-right:6px}.center-vertical[_ngcontent-%COMP%]{justify-content:center}#user-edit-basics.content[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{width:100%}"]})}return a})()}];let h=(()=>{class a{static \u0275fac=function(o){return new(o||a)};static \u0275mod=e.$C({type:a});static \u0275inj=l.G2t({imports:[g.iI.forChild(w),g.iI]})}return a})();var q=i(36891),ee=i(35745);let te=(()=>{class a{static \u0275fac=function(o){return new(o||a)};static \u0275mod=e.$C({type:a});static \u0275inj=l.G2t({imports:[M.d,q.F,h,ee.C,h]})}return a})()}}]);

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.