PageSourceSearch

https://clemencia-bolivar.gov.co/chunk-UYY4T5TX.js

js clemencia-bolivar.gov.co collected 2026-09-25 11:33:13 UTC 27,765 bytes, 1 lines download raw bytes

1import{a as Ie}from"./chunk-BRKH7PNC.js";import"./chunk-3QAEEWMF.js";import{a as Ee}from"./chunk-ZJSFACC7.js";import"./chunk-E27X3RNS.js";import"./chunk-KDJDYPVP.js";import"./chunk-RZT2WZMC.js";import{a as Ce,b as be,c as Se,d as we}from"./chunk-IUD3Z7EH.js";import{b as he,c as ve,e as xe}from"./chunk-KCPIJL6W.js";import"./chunk-64ZEVU2M.js";import"./chunk-TRSIHZNG.js";import"./chunk-UNSAKLS7.js";import"./chunk-JS6I5FQ5.js";import"./chunk-UTO46H5S.js";import"./chunk-2ZZOJFT2.js";import{a as te}from"./chunk-JWSAKKVQ.js";import{a as K}from"./chunk-LT72JKOL.js";import{a as ye}from"./chunk-YQLRE4E3.js";import"./chunk-YWAL7HVF.js";import"./chunk-VBIRK3HD.js";import"./chunk-YFREARA7.js";import"./chunk-AGCAGPAP.js";import{a as Ve}from"./chunk-AHQSOXDD.js";import{a as ee}from"./chunk-XBBEU2YL.js";import"./chunk-I7CB4NGY.js";import"./chunk-JZMNR7QN.js";import"./chunk-LH7AKJBU.js";import"./chunk-M7VQHQXJ.js";import{b as Y,d as J}from"./chunk-BAGWPQZV.js";import{A as ue,D as ge,b as ie,c as ne,g as oe,h as re,j as le,l as ae,m as me,o as se,s as de,t as ce,u as _e,x as pe,z as fe}from"./chunk-TZ2MW36L.js";import{a as $}from"./chunk-WZBVDNS6.js";import{a as Z}from"./chunk-3KOQRKYT.js";import{t as X}from"./chunk-MTKRVMUJ.js";import{c as Q}from"./chunk-SHTGYNA2.js";import{i as G,k as z,u as H}from"./chunk-4YERUHPX.js";import{Db as S,Ib as w,Jb as d,Mb as F,Ob as U,Pa as R,Qa as T,Sb as y,Tb as c,Ub as E,Xa as a,Ya as b,Yb as g,Zb as h,_b as v,ac as j,cc as O,da as k,ib as _,k as N,mb as s,na as p,oa as f,v as B,vb as I,wb as M,xb as r,yb as o,zb as x}from"./chunk-DQGQ5ICO.js";import{a as A,e as Pe}from"./chunk-4IDNTCH7.js";var Te=Pe(Ve());var De=(t,n)=>n.identificationTypeID,q=(t,n)=>n.id,We=(t,n)=>n.Id,Le=t=>({"btn-save":!0,"disabled-button":t});function Ne(t,n){if(t&1&&x(0,"img",11),t&2){let e=d(2);s("src",e.user.image,T)}}function Fe(t,n){if(t&1&&(r(0,"div",12),c(1),o()),t&2){let e=d(2);a(),E(e.user.firstsLetter)}}function Ue(t,n){if(t&1&&x(0,"p",13),t&2){let e=d(2);s("innerHtml",e.model.description,R)}}function qe(t,n){if(t&1&&(r(0,"a",14),c(1," Personaliza tu perfil de Autenticaci\xF3n digital "),o()),t&2){let e=d(2);U("href","",e.autenticatorGovCoURI,"/Personalizacion/Manage?login_hint=",e.user.email,"&clientId=",e.clientIdAND,"",T)}}function Ae(t,n){if(t&1&&(r(0,"a",14),c(1," Personaliza tu perfil de Autenticaci\xF3n digital "),o()),t&2){let e=d(2);U("href","",e.autenticatorGovCoURI,"/Personalizacion/Manage?login_hint=CC,",e.user.identification,"&clientId=",e.clientIdAND,"",T)}}function Be(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar tu primer nombre"),o())}function ke(t,n){if(t&1&&(r(0,"div",43),_(1,Be,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("name"))==null||e.errors==null?null:e.errors.required)}}function Re(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar tus nombres y apellidos"),o())}function je(t,n){if(t&1&&(r(0,"div",43),_(1,Re,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("lastname"))==null||e.errors==null?null:e.errors.required)}}function Oe(t,n){if(t&1&&(r(0,"option",22),c(1),o()),t&2){let e=n.$implicit;s("ngValue",e),a(),E(e.name)}}function Ge(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar el tipo de documento"),o())}function ze(t,n){if(t&1&&(r(0,"div",43),_(1,Ge,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("identificationType"))==null||e.errors==null?null:e.errors.required)}}function He(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar tu n\xFAmero de documento"),o())}function Ye(t,n){if(t&1&&(r(0,"div",43),_(1,He,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("identification"))==null||e.errors==null?null:e.errors.required)}}function Je(t,n){if(t&1&&(r(0,"option",22),c(1),o()),t&2){let e=n.$implicit;s("ngValue",e),a(),E(e.name)}}function Ke(t,n){t&1&&(r(0,"span"),c(1,"Debes seleccionar un pa\xEDs"),o())}function Qe(t,n){if(t&1&&(r(0,"div",43),_(1,Ke,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("country"))==null||e.errors==null?null:e.errors.required)}}function Xe(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar la ciudad"),o())}function Ze(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar por lo menos 2 caracteres"),x(2,"br"),o())}function $e(t,n){if(t&1){let e=S();r(0,"div")(1,"label"),c(2,"Municipio / Ciudad *"),o(),r(3,"input",44),v("ngModelChange",function(i){p(e);let m=d(3);return h(m.model.city,i)||(m.model.city=i),f(i)}),o(),r(4,"div"),_(5,Xe,2,0,"span",26)(6,Ze,3,0,"span",26),o()()}if(t&2){let e,l;d();let i=y(1),m=d(2);a(3),g("ngModel",m.model.city),a(2),s("ngIf",(e=i.form.get("city"))==null||e.errors==null?null:e.errors.required),a(),s("ngIf",(l=i.form.get("city"))==null||l.errors==null?null:l.errors.minlength)}}function et(t,n){if(t&1&&(r(0,"option",22),c(1),o()),t&2){let e=n.$implicit;s("ngValue",e),a(),E(e.name)}}function tt(t,n){t&1&&(r(0,"span"),c(1,"Debes seleccionar un departamento"),o())}function it(t,n){if(t&1&&(r(0,"div",43),_(1,tt,2,0,"span",26),o()),t&2){let e;d(2);let l=y(1);a(),s("ngIf",(e=l.form.get("department"))==null||e.errors==null?null:e.errors.required)}}function nt(t,n){if(t&1){let e=S();r(0,"div")(1,"label"),c(2,"Departamento*:"),o(),r(3,"select",45),v("ngModelChange",function(i){p(e);let m=d(3);return h(m.model.department,i)||(m.model.department=i),f(i)}),w("change",function(){p(e);let i=d(3);return f(i.onchangeDepartamento(i.model.department))}),r(4,"option",25),c(5,"Seleccionar"),o(),I(6,et,2,2,"option",22,q),o(),_(8,it,2,1,"div",17),o()}if(t&2){let e;d();let l=y(1),i=d(2);a(3),g("ngModel",i.model.department),s("required",!0),a(3),M(i.model.departments),a(2),s("ngIf",((e=l.form.get("department"))==null?null:e.invalid)&&l.submitted)}}function ot(t,n){if(t&1&&(r(0,"option",22),c(1),o()),t&2){let e=n.$implicit;s("ngValue",e),a(),E(e.name)}}function rt(t,n){t&1&&(r(0,"span"),c(1,"Debes seleccionar un municipio"),o())}function lt(t,n){if(t&1&&(r(0,"div",43),_(1,rt,2,0,"span",26),o()),t&2){let e;d(2);let l=y(1);a(),s("ngIf",(e=l.form.get("location"))==null||e.errors==null?null:e.errors.required)}}function at(t,n){if(t&1){let e=S();r(0,"div")(1,"label"),c(2,"Municipio*:"),o(),r(3,"select",46),v("ngModelChange",function(i){p(e);let m=d(3);return h(m.model.location,i)||(m.model.location=i),f(i)}),r(4,"option",25),c(5,"Seleccionar"),o(),I(6,ot,2,2,"option",22,q),o(),_(8,lt,2,1,"div",17),o()}if(t&2){let e;d();let l=y(1),i=d(2);a(3),g("ngModel",i.model.location),s("required",!0),a(3),M(i.model.locations),a(2),s("ngIf",((e=l.form.get("location"))==null?null:e.invalid)&&l.submitted)}}function mt(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar la vereda o municipio"),o())}function st(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar la vereda o municipio"),x(2,"br"),o())}function dt(t,n){if(t&1&&(r(0,"div",43),_(1,mt,2,0,"span",26)(2,st,3,0,"span",26),o()),t&2){let e,l;d(2);let i=y(1);a(),s("ngIf",(e=i.form.get("neighborhood"))==null||e.errors==null?null:e.errors.required),a(),s("ngIf",(l=i.form.get("neighborhood"))==null||l.errors==null?null:l.errors.minlength)}}function ct(t,n){if(t&1){let e=S();r(0,"div")(1,"label"),c(2,"Vereda / Municipio "),r(3,"span"),c(4,"*"),o()(),r(5,"input",47),v("ngModelChange",function(i){p(e);let m=d(3);return h(m.model.neighborhood,i)||(m.model.neighborhood=i),f(i)}),o(),x(6,"div",48),_(7,dt,3,2,"div",17),o()}if(t&2){let e;d();let l=y(1),i=d(2);a(5),g("ngModel",i.model.neighborhood),a(2),s("ngIf",((e=l.form.get("neighborhood"))==null?null:e.invalid)&&
1(!((e=l.form.get("neighborhood"))!=null&&e.pristine)||l.submitted))}}function _t(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar tu direci\xF3n"),o())}function pt(t,n){if(t&1&&(r(0,"div",43),_(1,_t,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("address"))==null||e.errors==null?null:e.errors.required)}}function ft(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar tu n\xFAmero de tel\xE9fono"),o())}function ut(t,n){if(t&1&&(r(0,"div",43),_(1,ft,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("phone"))==null||e.errors==null?null:e.errors.required)}}function gt(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar el g\xE9nero"),o())}function ht(t,n){if(t&1&&(r(0,"div",43),_(1,gt,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("genderID"))==null||e.errors==null?null:e.errors.required)}}function vt(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar la fecha de nacimiento"),o())}function xt(t,n){if(t&1&&(r(0,"div",43),_(1,vt,2,0,"span",26),o()),t&2){let e;d();let l=y(1);a(),s("ngIf",(e=l.form.get("birthDate"))==null||e.errors==null?null:e.errors.required)}}function yt(t,n){if(t&1){let e=S();r(0,"li",50)(1,"div",51)(2,"div",52)(3,"input",56),v("ngModelChange",function(i){let m=p(e).$implicit;return h(m.Active,i)||(m.Active=i),f(i)}),o(),x(4,"label",57),o(),r(5,"label",58),c(6),o(),x(7,"br"),o()()}if(t&2){let e=n.$implicit;a(3),F("id",e.Id),g("ngModel",e.Active),a(),F("for",e.Id),a(),s("for",e.Id),a(),E(e.Name)}}function Ct(t,n){if(t&1){let e=S();r(0,"div")(1,"label"),c(2,"Notificaciones"),o(),r(3,"ul",49),I(4,yt,8,5,"li",50,We),r(6,"li",50)(7,"div",51)(8,"div",52)(9,"input",53),v("ngModelChange",function(i){p(e);let m=d(3);return h(m.model.enabledNewsletter,i)||(m.model.enabledNewsletter=i),f(i)}),o(),x(10,"label",54),o(),r(11,"label",55),c(12,"Recibir correo de newsletter"),o(),x(13,"br"),o()()()()}if(t&2){let e=d(3);a(4),M(e.notifications),a(5),g("ngModel",e.model.enabledNewsletter)}}function bt(t,n){t&1&&(r(0,"span"),c(1,"Debes ingresar una contrase\xF1a"),o())}function St(t,n){t&1&&(r(0,"span"),c(1,"Debes por lo menos ingresar 6 caracteres"),o())}function wt(t,n){if(t&1&&(r(0,"div",43),_(1,bt,2,0,"span",26)(2,St,2,0,"span",26),o()),t&2){let e,l;d(3);let i=y(1);a(),s("ngIf",(e=i.form.get("password"))==null||e.errors==null?null:e.errors.required),a(),s("ngIf",(l=i.form.get("password"))==null||l.errors==null?null:l.errors.minlength)}}
1function Et(t,n){t&1&&(r(0,"span"),c(1,"Las contrase\xF1as no coinciden"),o())}function It(t,n){if(t&1&&(r(0,"div",43),_(1,Et,2,0,"span",26),o()),t&2){let e;d(3);let l=y(1);a(),s("ngIf",(e=l.form.get("confirmpassword"))==null||e.errors==null?null:e.errors.compareTo)}}function Mt(t,n){if(t&1){let e=S();r(0,"div")(1,"label"),c(2,"Nueva contrase\xF1a"),o(),r(3,"input",59),v("ngModelChange",function(i){p(e);let m=d(4);return h(m.model.password,i)||(m.model.password=i),f(i)}),o(),_(4,wt,3,2,"div",17),r(5,"label"),c(6,"Repetir contrase\xF1a"),o(),r(7,"input",60),v("ngModelChange",function(i){p(e);let m=d(4);return h(m.model.confirmpassword,i)||(m.model.confirmpassword=i),f(i)}),o(),_(8,It,2,1,"div",17),o()}if(t&2){let e,l;d(2);let i=y(1),m=d(2);a(3),g("ngModel",m.model.password),a(),s("ngIf",((e=i.form.get("password"))==null?null:e.invalid)&&i.submitted),a(3),g("ngModel",m.model.confirmpassword),a(),s("ngIf",((l=i.form.get("confirmpassword"))==null?null:l.invalid)&&i.submitted)}}function Tt(t,n){if(t&1){let e=S();r(0,"div")(1,"div"),x(2,"br")(3,"hr")(4,"br"),r(5,"a",9),w("click",function(){p(e);let i=d(3);return f(i.enabledPassword=!i.enabledPassword)}),c(6,"Cambiar contrase\xF1a"),o(),x(7,"br")(8,"br"),_(9,Mt,9,4,"div",26),o()()}if(t&2){let e=d(3);a(9),s("ngIf",e.enabledPassword)}}function Pt(t,n){if(t&1){let e=S();r(0,"a",61),w("click",function(){p(e);let i=d(3);return f(i.unsubscribe())}),c(1,"darse de baja"),o()}}function Vt(t,n){if(t&1){let e=S();r(0,"form",15,0),w("ngSubmit",function(){p(e);let i=y(1),m=d(2);return f(m.send(i))}),r(2,"div")(3,"label"),c(4,"Nombre *"),o(),r(5,"input",16),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.name,i)||(m.model.name=i),f(i)}),o(),_(6,ke,2,1,"div",17),o(),r(7,"div")(8,"label"),c(9,"Segundo nombre "),o(),r(10,"input",18),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.secondname,i)||(m.model.secondname=i),f(i)}),o()(),r(11,"div")(12,"label"),c(13,"Apellido *"),o(),r(14,"input",19),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.lastname,i)||(m.model.lastname=i),f(i)}),o(),_(15,je,2,1,"div",17),o(),r(16,"div")(17,"label"),c(18,"Segundo apellido "),o(),r(19,"input",20),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.secondlastname,i)||(m.model.secondlastname=i),f(i)}),o()(),r(20,"div")(21,"label"),c(22,"Tipo de documento*:"),o(),r(23,"select",21),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.identificationType,i)||(m.model.identificationType=i),f(i)}),I(24,Oe,2,2,"option",22,De),o(),_(26,ze,2,1,"div",17),o(),r(27,"div")(28,"label"),c(29,"Documento *"),o(),r(30,"input",23),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.identification,i)||(m.model.identification=i),f(i)}),o(),_(31,Ye,2,1,"div",17),o(),r(32,"div")(33,"label"),c(34,"Pa\xEDs*:"),o(),r(35,"select",24),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.country,i)||(m.model.country=i),f(i)}),w("change",function(){p(e);let i=d(2);return f(i.onchangePais(i.model.country))}),r(36,"option",25),c(37,"Seleccionar"),o(),I(38,Je,2,2,"option",22,q),o(),_(40,Qe,2,1,"div",17),o(),_(41,$e,7,3,"div",26)(42,nt,9,3,"div",26)(43,at,9,3,"div",26)(44,ct,8,2,"div",26),r(45,"div")(46,"label"),c(47,"Direci\xF3n*"),o(),r(48,"textarea",27),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.address,i)||(m.model.address=i),f(i)}),o(),_(49,pt,2,1,"div",17),o(),r(50,"div")(51,"label"),c(52,"Tel\xE9fono*"),o(),r(53,"input",28),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.phone,i)||(m.model.phone=i),f(i)}),o(),_(54,ut,2,1,"div",17),o(),x(55,"br")(56,"br"),r(57,"div")(58,"label"),c(59,"G\xE9nero *"),o(),r(60,"div",29)(61,"div",30)(62,"input",31),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.genderID,i)||(m.model.genderID=i),f(i)}),o(),r(63,"label",32),c(64,"Femenino"),o()(),r(65,"div",30)(66,"input",33),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.genderID,i)||(m.model.genderID=i),f(i)}),o(),r(67,"label",34),c(68,"Masculino"),o()(),r(69,"div",30)(70,"input",35),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.genderID,i)||(m.model.genderID=i),f(i)}),o(),r(71,"label",36),c(72,"Otro"),o()()(),_(73,ht,2,1,"div",17),o(),r(74,"div")(75,"label"),c(76,"Fecha de nacimiento *"),o(),r(77,"input",37),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.birthDate,i)||(m.model.birthDate=i),f(i)}),o(),_(78,xt,2,1,"div",17),o(),x(79,"br"),r(80,"div")(81,"label"),c(82,"Biograf\xEDa"),o(),x(83,"ngx-editor-menu",38),r(84,"ngx-editor",39),v("ngModelChange",function(i){p(e);let m=d(2);return h(m.model.description,i)||(m.model.description=i),f(i)}),o()(),r(85,"div"),x(86,"br")(87,"hr")(88,"br"),r(89,"a",9),w("click",function(){p(e);let i=d(2);return f(i.enabledNotification=!i.enabledNotification)}),c(90,"Configurar notificaciones"),o(),x(91,"br")(92,"br"),_(93,Ct,14,1,"div",26),o(),_(94,Tt,10,1,"div",26),x(95,"input",40),r(96,"input",41),w("click",function(){p(e);let i=d(2);return f(i.edit=!i.edit)}),o(),_(97,Pt,2,0,"a",42),x(98,"br"),o()}if(t&2){let e,l,i,m,P,V,D,W,L,C=y(1),u=d(2);a(5),s("chars","chars"),g("ngModel",u.model.name),a(),s("ngIf",((e=C.form.get("name"))==null?null:e.invalid)&&C.submitted),a(4),s("chars","chars"),g("ngModel",u.model.secondname),a(4),s("chars","chars"),g("ngModel",u.model.lastname),a(),s("ngIf",((l=C.form.get("lastname"))==null?null:l.invalid)&&C.submitted),a(4),s("chars","chars"),g("ngModel",u.model.secondlastname),a(4),g("ngModel",u.model.identificationType),s("required",!0)("compareWith",u.compareIdentificationType),a(),M(u.model.identificationTypes),a(2),s("ngIf",((i=C.form.get("identificationType"))==null?null:i.invalid)&&C.submitted),a(4),s("chars","numbers"),g("ngModel",u.model.identification),a(),s("ngIf",((m=C.form.get("identification"))==null?null:m.invalid)&&C.submitted),a(4),g("ngModel",u.model.country),s("required",!0),a(3),M(u.model.countries),a(2),s("ngIf",((P=C.form.get("country"))==null?null:P.invali
1d)&&C.submitted),a(),s("ngIf",u.model.country.id!==1),a(),s("ngIf",u.model.country.id===1),a(),s("ngIf",u.model.country.id===1),a(),s("ngIf",u.model.country.id===1),a(4),g("ngModel",u.model.address),a(),s("ngIf",((V=C.form.get("address"))==null?null:V.invalid)&&C.submitted),a(4),s("chars","numbers"),g("ngModel",u.model.phone),a(),s("ngIf",((D=C.form.get("phone"))==null?null:D.invalid)&&C.submitted),a(8),g("ngModel",u.model.genderID),a(4),g("ngModel",u.model.genderID),a(4),g("ngModel",u.model.genderID),a(3),s("ngIf",((W=C.form.get("genderID"))==null?null:W.invalid)&&C.submitted),a(4),g("ngModel",u.model.birthDate),a(),s("ngIf",((L=C.form.get("birthDate"))==null?null:L.invalid)&&C.submitted),a(5),s("editor",u.editor)("toolbar",u.toolbar),a(),s("editor",u.editor),g("ngModel",u.model.description),s("placeholder",""),a(9),s("ngIf",u.enabledNotification),a(),s("ngIf",u.user.hasPassword),a(),s("ngClass",O(44,Le,u.formIsBusy)),a(2),s("ngIf",!u.user.isAuthorize)}}function Dt(t,n){if(t&1){let e=S();r(0,"section",3)(1,"article",2)(2,"div",4),_(3,Ne,1,1,"img",5)(4,Fe,2,1,"div",6),o(),r(5,"h2"),c(6),o(),_(7,Ue,1,1,"p",7)(8,qe,2,4,"a",8)(9,Ae,2,4,"a",8),x(10,"br")(11,"br"),r(12,"a",9),w("click",function(){p(e);let i=d();return f(i.edit=!i.edit)}),c(13," Edita tu perfil "),o(),x(14,"br")(15,"br")(16,"br")(17,"br"),_(18,Vt,99,46,"form",10),o()()}if(t&2){let e=d();a(3),s("ngIf",e.user.image),a(),s("ngIf",!e.user.image),a(2),E(e.user.fullName),a(),s("ngIf",!e.edit),a(),s("ngIf",e.user.loa=="loa:1"),a(),s("ngIf",e.user.loa=="loa:2"),a(9),s("ngIf",e.edit)}}var Me=class t{constructor(n,e,l,i,m,P,V,D,W,L,C,u){this.actRoute=n;this.userService=e;this.authService=l;this.eventEmitterService=i;this.router=m;this.modalService=P;this.settingService=V;this.helperService=D;this.identificationTypeService=W;this.locationService=L;this.portalMainService=C;this.appService=u;this.user=this.authService.user,this.autenticatorGovCoURI=this.settingService.settings.general.autenticatorGovCoURI,this.clientIdAND=this.settingService.settings.general.clientIdAND}model={};notifications=[];user;formIsBusy=!1;edit=!1;enabledPassword=!1;autenticatorGovCoURI;clientIdAND;enabledNotification=!1;editor=new we;toolbar=[["bold","italic"],["underline","strike"],["align_left","align_center","align_right","align_justify"],["format_clear"],["ordered_list","bullet_list"],["code"]];ngOnInit(){this.activate()}activate(){let n=this.actRoute.snapshot.params.alias;n?this.userService.getByFriendlyName(n).subscribe({next:e=>this.setGetUser(e),error:e=>this.errorGetUser(e)}):(this.user.name?this.startUser():this.eventEmitterService.startUser.subscribe(()=>this.startUser()),this.eventEmitterService.startErrorUser.subscribe(()=>this.startErrorUser()),this.eventEmitterService.logOff.subscribe(()=>this.logOff()))}send(n){this.model.birthDate=document.getElementById("date-birthdate").value,n.valid&&!this.formIsBusy&&(this.formIsBusy=!0,this.model.description&&(this.model.attributes||(this.model.attributes=[]),this.model.attributes.push({name:"AboutMe",value:this.model.description})),this.model.enabledNotifications=this.notifications.filter(e=>e.Active).map(e=>e.Id),this.userService.updateById(this.model).subscribe({next:e=>this.setUpdate(e),error:e=>this.errorUpdate(e),complete:()=>this.formIsBusy=!1}))}logOff(){this.router.navigate(["/"])}unsubscribe(){this.modalService.showConfirm(this.settingService.settings.resources["User.ConfirmDisable"]).subscribe(n=>{n&&this.userService.unsubscribe(this.user.friendlyName).subscribe({next:e=>this.setUnsubscribe(e),error:e=>this.errorUnsubscribe(e)})})}startUser(){this.userService.getByFriendlyName(this.user.friendlyName).subscribe({next:n=>this.setGetUser(n),error:n=>this.errorGetUser(n)})}startErrorUser(){this.router.navigate(["/"])}setUpdate(n){var e=A({},this.user);e.name=this.model.name,e.firstsLetter=this.appService.getFirstsLetters(e.name),this.authService.user=e,this.helperService.freezeObject(this.authService.user),this.edit=!1,this.model.password=null,this.model.confirmpassword=null,this.enabledPassword=!1,this.modalService.showAlert(this.settingService.settings.resources["User.UpdateData"])}setUnsubscribe(n){localStorage.removeItem("token"),this.authService.user={},this.user={},this.eventEmitterService.logOff.emit(!0)}setGetUser(n){if(this.model.email=n.email,this.model.identificationType={identificationTypeID:n.identificationTypeId||2,name:""},this.model.identification=n.identification,this.model.secondname=n.secondname,this.model.lastname=n.lastname,this.model.secondlastname=n.secondlastname,this.model.address=n.address,this.model.phone=n.phone,this.model.loa=n.loa,this.model.country={id:n.countryId},this.model.department={id:n.departmentId},this.model.location={id:n.locationId},this.model.name=n.name,this.model.friendlyName=n.friendlyName,this.model.fileID=n.fileID,this.model.firstsLetter=this.appService.getFirstsLetters(n.name),this.model.image=n.image,this.model.userID=n.userID,this.model.neighborhood=n.neighborhood,B([this.identificationTypeService.getAll(),this.locationService.getRoot()]).subscribe({next:i=>{console.log("forkJoin data:",i),this.model.identificationTypes=i[0],this.model.countries=i[1],this.model.identificationType=this.model.identificationTypes.find(m=>String(m.identificationTypeID)===String(this.model.identificationType.identificationTypeID))||this.model.identificationType,this.model.country=this.model.countries.find(m=>String(m.id)===String(this.model.country.id))||this.model.country,this.onchangePais(this.model.country),console.log("identificationTypes:",this.model.identificationTypes)},error:i=>{console.error("forkJoin error:",i)}}),n.genderID!=null&&(this.model.genderID=n.genderID.toString()),n.birthDate!=null&&(this.model.birthDate=(0,Te.default)(n.birthDate,"YYYY/MM/DD HH:mm:ss").format("YYYY-MM-DD")),this.model.enabledNewsletter=n.enabledNewsletter,n.attributes&&n.attributes.length){var e=n.attributes.filter(i=>i.name==="AboutMe");e&&(this.model.description=e[0].value)}this.portalMainService.seo.title=n.name;for(var l=0;l<this.settingService.settings.notifications.toTurnOff.length;l++)this.notifications.push({Id:this.settingService.settings.notifications.toTurnOff[l].Id,Name:this.settingService.settings.notifications.toTurnOff[l].Name,Active:n.enabledNotifications.indexOf(this.settingService.settings.notifications.toTurnOff[l].Id)>-1})}errorUpdate(n){this.edit=!1,this.helperService.handlerException(n)}errorUnsubscribe(n){}errorGetUser(n){this.router.navigateByUrl("pagina-no-encontrada")}onchangePais(n){return n&&Number(n.id)===1&&this.locationService.getChildrens(n.id).subscribe({next:e=>
1{this.getSecondLevelLocation(e),this.model.department=this.model.departments.find(l=>String(l.id)===String(this.model.department.id))||this.model.department,this.onchangeDepartamento(this.model.department)},error:e=>this.errorSecondLevelLocation(e)}),N(!0)}errorSecondLevelLocation(n){}getSecondLevelLocation(n){this.model.departments=n}onchangeDepartamento(n){return n&&n.id&&this.locationService.getChildrens(n.id).subscribe({next:e=>this.getThirdLevelLocation(e),error:e=>this.errorThirdLevelLocation(e)}),N(!0)}errorThirdLevelLocation(n){}getThirdLevelLocation(n){this.model.locations=n,this.model.location=this.model.locations.find(e=>String(e.id)===String(this.model.location.id))||this.model.location}compareIdentificationType(n,e){return n&&e&&n.identificationTypeID===e.identificationTypeID}static \u0275fac=function(e){return new(e||t)(b(Y),b(K),b(te),b(Z),b(J),b(X),b(Q),b($),b(he),b(ve),b(xe),b(ee))};static \u0275cmp=k({type:t,selectors:[["app-profile"]],standalone:!0,features:[j],decls:3,vars:1,consts:[["form","ngForm"],["class","perfil-content",4,"ngIf"],[1,"content_all"],[1,"perfil-content"],[1,"user-img"],["alt","Imagen",3,"src",4,"ngIf"],["class","no-img",4,"ngIf"],[3,"innerHtml",4,"ngIf"],["class","btn-edit",3,"href",4,"ngIf"],[1,"btn-edit",3,"click"],["novalidate","","name","form",3,"ngSubmit",4,"ngIf"],["alt","Imagen",3,"src"],[1,"no-img"],[3,"innerHtml"],[1,"btn-edit",3,"href"],["novalidate","","name","form",3,"ngSubmit"],["autocomplete","off","appChars","","required","","maxlength","100","name","name","placeholder","Primer nombre","type","text",3,"ngModelChange","chars","ngModel"],["class","error",4,"ngIf"],["autocomplete","off","appChars","","maxlength","100","name","secondname","placeholder","Segundo nombre","type","text",3,"ngModelChange","chars","ngModel"],["autocomplete","off","appChars","","required","","maxlength","100","name","lastname","placeholder","Primer apellido","type","text",3,"ngModelChange","chars","ngModel"],["autocomplete","off","appChars","","maxlength","100","name","secondlastname","placeholder","Segundo apellido","type","text",3,"ngModelChange","chars","ngModel"],["name","identificationType",3,"ngModelChange","ngModel","required","compareWith"],[3,"ngValue"],["appChars","","autocomplete","off","required","","maxlength","100","type","text","name","identification","placeholder","Documento",3,"ngModelChange","chars","ngModel"],["name","country",3,"ngModelChange","change","ngModel","required"],["value","","disabled","","selected",""],[4,"ngIf"],["placeholder","Ej. Cra 34 # 23 - 45 Apto 501","required","","maxlength","250","name","address",1,"areaFix",3,"ngModelChange","ngModel"],["autocomplete","off","appChars","","required","","maxlength","100","name","phone","placeholder","Tel\xE9fono","type","text",3,"ngModelChange","chars","ngModel"],[1,"wrapRadios"],[1,"wrapRadios-col"],["type","radio","value","1","name","genderID","id","genre-1","required","",3,"ngModelChange","ngModel"],["for","genre-1"],["type","radio","value","0","name","genderID","id","genre-0","required","",3,"ngModelChange","ngModel"],["for","genre-0"],["type","radio","value","2","name","genderID","id","genre-2","required","",3,"ngModelChange","ngModel"],["for","genre-2"],["id","date-birthdate","readonly","","appDateTime","","autocomplete","off","required","","type","text","name","birthDate","placeholder","Fecha de nacimiento",3,"ngModelChange","ngModel"],[3,"editor","toolbar"],["name","description","outputFormat","html",3,"ngModelChange","editor","ngModel","placeholder"],["type","submit","value","Guardar",3,"ngClass"],["type","button","value","Cancelar",1,"btn-save",3,"click"],["class","drop-out-btn",3,"click",4,"ngIf"],[1,"error"],["autocomplete","off","placeholder","Ej. Santiago de Chile","type","text","maxlength","50","minlength","2","required","","name","city",3,"ngModelChange","ngModel"],["name","department",3,"ngModelChange","change","ngModel","required"],["name","location",3,"ngModelChange","ngModel","required"],["required","","autocomplete","off","placeholder","Ej. Chico","type","text","maxlength","50","minlength","2","name","neighborhood",3,"ngModelChange","ngModel"],[2,"height","6px"],[1,"n
1oti-list"],[2,"list-style","none"],[1,"switch-box"],[1,"onoffswitch"],["type","checkbox","name","enabledNewsletter","id","inp-newsleter",1,"onoffswitch-checkbox",2,"float","left",3,"ngModelChange","ngModel"],["for","inp-newsleter",1,"onoffswitch-label","fixswitch"],["for","inp-newsleter",2,"margin","16px 0 0 7px","float","left"],["type","checkbox","name","onoffswitch",1,"onoffswitch-checkbox",3,"ngModelChange","ngModel","id"],[1,"onoffswitch-label","fixswitch",3,"for"],[2,"margin","16px 0 0 7px","float","left",3,"for"],["autocomplete","off","required","","type","password","minlength","6","maxlength","50","name","password","placeholder","Contrase\xF1a",3,"ngModelChange","ngModel"],["autocomplete","off","compare-to","model.password","type","password","name","confirmpassword","placeholder","Confirmar contrase\xF1a",3,"ngModelChange","ngModel"],[1,"drop-out-btn",3,"click"]],template:function(e,l){e&1&&(_(0,Dt,19,7,"section",1),r(1,"section",2),x(2,"app-comments"),o()),e&2&&s("ngIf",l.user.name)},dependencies:[H,G,z,ge,me,ce,_e,ne,ie,de,se,oe,re,pe,fe,ue,ae,le,Ee,ye,Ie,Se,Ce,be]})};export{Me as ProfileComponent};

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.