fge-auth-component 5.2.6 → 5.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1043,26 +1043,26 @@ function Gl(t, e, n = {}, o, r, a) {
1043
1043
  return function() {
1044
1044
  ya(o);
1045
1045
  const F = Array.from(arguments), re = [], Q = [];
1046
- function X(z) {
1047
- re.push(z);
1046
+ function $(K) {
1047
+ re.push(K);
1048
1048
  }
1049
- function ce(z) {
1050
- Q.push(z);
1049
+ function ce(K) {
1050
+ Q.push(K);
1051
1051
  }
1052
1052
  sr(h, {
1053
1053
  args: F,
1054
1054
  name: T,
1055
1055
  store: E,
1056
- after: X,
1056
+ after: $,
1057
1057
  onError: ce
1058
1058
  });
1059
1059
  let le;
1060
1060
  try {
1061
1061
  le = P.apply(this && this.$id === t ? this : E, F);
1062
- } catch (z) {
1063
- throw sr(Q, z), z;
1062
+ } catch (K) {
1063
+ throw sr(Q, K), K;
1064
1064
  }
1065
- return le instanceof Promise ? le.then((z) => (sr(re, z), z)).catch((z) => (sr(Q, z), Promise.reject(z))) : (sr(re, le), le);
1065
+ return le instanceof Promise ? le.then((K) => (sr(re, K), K)).catch((K) => (sr(Q, K), Promise.reject(K))) : (sr(re, le), le);
1066
1066
  };
1067
1067
  }
1068
1068
  const b = /* @__PURE__ */ On({
@@ -1344,7 +1344,7 @@ function Bh(t) {
1344
1344
  function kh(t) {
1345
1345
  var o, r;
1346
1346
  const n = (((o = ui()) == null ? void 0 : o.trim()) || void 0) ?? ((r = t.token) == null ? void 0 : r.trim()) ?? void 0;
1347
- return Bh(t) ? i2(t) ? { action: "sync-only", accessToken: n } : { action: "fetch-profile", accessToken: n } : { action: "none" };
1347
+ return i2(t) ? { action: "sync-only", accessToken: n } : { action: "fetch-profile", accessToken: n };
1348
1348
  }
1349
1349
  let dr = null;
1350
1350
  function Oh(t) {
@@ -3149,47 +3149,47 @@ const bp = () => {
3149
3149
  }, E = async (I) => {
3150
3150
  var G, se, R, ne, te, j;
3151
3151
  let ee = I;
3152
- const { cookieKey: ue, cookieValue: q } = g(I.usuario), Y = q ?? l.value;
3153
- if (q && (l.value = q), a.value) {
3152
+ const { cookieKey: ue, cookieValue: z } = g(I.usuario), W = z ?? l.value;
3153
+ if (z && (l.value = z), a.value) {
3154
3154
  const { usuario: fe, ...Ne } = ee;
3155
3155
  ee = {
3156
3156
  numeroDocumento: fe,
3157
- deviceId: Y,
3157
+ deviceId: W,
3158
3158
  ...Ne
3159
3159
  };
3160
3160
  }
3161
- const W = await op({
3161
+ const X = await op({
3162
3162
  ...ee,
3163
- codigoDispositivo: Y || void 0,
3163
+ codigoDispositivo: W || void 0,
3164
3164
  aplicacion: u.value,
3165
3165
  verificarSiFuncionario: p.value
3166
3166
  });
3167
- if (typeof ((G = W.response) == null ? void 0 : G.mediosVerificados) == "object")
3168
- return W.response;
3167
+ if (typeof ((G = X.response) == null ? void 0 : G.mediosVerificados) == "object")
3168
+ return X.response;
3169
3169
  if (a.value) {
3170
- if (((R = (se = W.response) == null ? void 0 : se.data) == null ? void 0 : R.mediosVerificados.length) > 0)
3171
- return W;
3170
+ if (((R = (se = X.response) == null ? void 0 : se.data) == null ? void 0 : R.mediosVerificados.length) > 0)
3171
+ return X;
3172
3172
  if (Un()) {
3173
- const fe = (ne = W.response) == null ? void 0 : ne.accessToken;
3173
+ const fe = (ne = X.response) == null ? void 0 : ne.accessToken;
3174
3174
  fe && (un(fe), n.value = {
3175
3175
  ...n.value,
3176
3176
  token: fe
3177
3177
  });
3178
3178
  const Ne = await An();
3179
- ce(Ne, (te = W.response) == null ? void 0 : te.accessToken, (j = W.response) == null ? void 0 : j.tokenRefresh);
3179
+ ce(Ne, (te = X.response) == null ? void 0 : te.accessToken, (j = X.response) == null ? void 0 : j.tokenRefresh);
3180
3180
  } else {
3181
3181
  const fe = await An();
3182
3182
  ce(fe);
3183
3183
  }
3184
3184
  } else
3185
- Q(W.response);
3186
- return q && Y && ue && await Le({
3185
+ Q(X.response);
3186
+ return z && W && ue && await Le({
3187
3187
  usuario: ue,
3188
- value: Y
3189
- }), a.value ? W : W.response;
3188
+ value: W
3189
+ }), a.value ? X : X.response;
3190
3190
  }, L = async (I, ee, ue) => {
3191
- var Y, W;
3192
- const q = await ap(
3191
+ var W, X;
3192
+ const z = await ap(
3193
3193
  I,
3194
3194
  ee,
3195
3195
  l.value,
@@ -3197,9 +3197,9 @@ const bp = () => {
3197
3197
  );
3198
3198
  if (a.value) {
3199
3199
  const G = await An();
3200
- Un() ? ce(G, (Y = q.response) == null ? void 0 : Y.accessToken, (W = q.response) == null ? void 0 : W.tokenRefresh) : ce(G);
3200
+ Un() ? ce(G, (W = z.response) == null ? void 0 : W.accessToken, (X = z.response) == null ? void 0 : X.tokenRefresh) : ce(G);
3201
3201
  }
3202
- return q.response;
3202
+ return z.response;
3203
3203
  }, x = async (I) => {
3204
3204
  const ee = f(I.usuario), ue = await up({
3205
3205
  ...I,
@@ -3212,19 +3212,19 @@ const bp = () => {
3212
3212
  value: ee
3213
3213
  });
3214
3214
  }, T = async (I) => {
3215
- var q, Y, W;
3215
+ var z, W, X;
3216
3216
  const ee = f(I.numeroDocumento), ue = await Ap({
3217
3217
  ...I,
3218
3218
  deviceId: ee
3219
3219
  });
3220
3220
  if (Un()) {
3221
- const G = (q = ue.response) == null ? void 0 : q.accessToken;
3221
+ const G = (z = ue.response) == null ? void 0 : z.accessToken;
3222
3222
  G && (un(G), n.value = {
3223
3223
  ...n.value,
3224
3224
  token: G
3225
3225
  });
3226
3226
  const se = await An();
3227
- ce(se, (Y = ue.response) == null ? void 0 : Y.accessToken, (W = ue.response) == null ? void 0 : W.tokenRefresh);
3227
+ ce(se, (W = ue.response) == null ? void 0 : W.accessToken, (X = ue.response) == null ? void 0 : X.tokenRefresh);
3228
3228
  } else {
3229
3229
  const G = await An();
3230
3230
  ce(G);
@@ -3234,7 +3234,7 @@ const bp = () => {
3234
3234
  value: ee
3235
3235
  });
3236
3236
  }, P = async (I) => {
3237
- var q, Y, W;
3237
+ var z, W, X;
3238
3238
  const ee = f(I.numeroDocumento), ue = await hp({
3239
3239
  usuarioId: I.usuarioId,
3240
3240
  challengeId: I.challengeId,
@@ -3243,13 +3243,13 @@ const bp = () => {
3243
3243
  esDispositivoConfianza: I.esDispositivoConfianza ?? !1
3244
3244
  });
3245
3245
  if (Un()) {
3246
- const G = (q = ue.response) == null ? void 0 : q.accessToken;
3246
+ const G = (z = ue.response) == null ? void 0 : z.accessToken;
3247
3247
  G && (un(G), n.value = {
3248
3248
  ...n.value,
3249
3249
  token: G
3250
3250
  });
3251
3251
  const se = await An();
3252
- ce(se, (Y = ue.response) == null ? void 0 : Y.accessToken, (W = ue.response) == null ? void 0 : W.tokenRefresh);
3252
+ ce(se, (W = ue.response) == null ? void 0 : W.accessToken, (X = ue.response) == null ? void 0 : X.tokenRefresh);
3253
3253
  } else {
3254
3254
  const G = await An();
3255
3255
  ce(G);
@@ -3271,7 +3271,7 @@ const bp = () => {
3271
3271
  value: ee
3272
3272
  });
3273
3273
  }, re = async (I) => {
3274
- var q, Y, W;
3274
+ var z, W, X;
3275
3275
  const ee = a.value ? I.numeroDocumento : I.usuario, ue = f(ee);
3276
3276
  if (a.value) {
3277
3277
  const G = await x2({
@@ -3280,13 +3280,13 @@ const bp = () => {
3280
3280
  deviceId: ue
3281
3281
  });
3282
3282
  if (Un()) {
3283
- const se = (q = G.response) == null ? void 0 : q.accessToken;
3283
+ const se = (z = G.response) == null ? void 0 : z.accessToken;
3284
3284
  se && (un(se), n.value = {
3285
3285
  ...n.value,
3286
3286
  token: se
3287
3287
  });
3288
3288
  const R = await An();
3289
- ce(R, (Y = G.response) == null ? void 0 : Y.accessToken, (W = G.response) == null ? void 0 : W.tokenRefresh);
3289
+ ce(R, (W = G.response) == null ? void 0 : W.accessToken, (X = G.response) == null ? void 0 : X.tokenRefresh);
3290
3290
  } else {
3291
3291
  const se = await An();
3292
3292
  ce(se);
@@ -3309,7 +3309,7 @@ const bp = () => {
3309
3309
  var R, ne, te, j, fe, Ne, lt, ct;
3310
3310
  const ue = I.accessToken || I.token;
3311
3311
  ue && un(ue);
3312
- const q = (R = I.usuario) != null && R.whatsapp && Number(I.usuario.whatsapp) === 1 ? 1 : void 0, Y = (ne = I.usuario) != null && ne.telegram && Number(I.usuario.telegram) === 1 ? 1 : void 0, W = (te = I.usuario) != null && te.emailValidado && Number(I.usuario.emailValidado) === 1 ? 1 : void 0, G = (j = I.usuario) != null && j.sms && Number(I.usuario.sms) === 1 ? 1 : void 0, se = (fe = I.usuario) != null && fe.fotoRuta ? `${h.value}/personas/fotosegip/${I.usuario.fotoRuta}?rand=${Math.random() * 100}` : (Ne = n.value.user) == null ? void 0 : Ne.fotoUrl;
3312
+ const z = (R = I.usuario) != null && R.whatsapp && Number(I.usuario.whatsapp) === 1 ? 1 : void 0, W = (ne = I.usuario) != null && ne.telegram && Number(I.usuario.telegram) === 1 ? 1 : void 0, X = (te = I.usuario) != null && te.emailValidado && Number(I.usuario.emailValidado) === 1 ? 1 : void 0, G = (j = I.usuario) != null && j.sms && Number(I.usuario.sms) === 1 ? 1 : void 0, se = (fe = I.usuario) != null && fe.fotoRuta ? `${h.value}/personas/fotosegip/${I.usuario.fotoRuta}?rand=${Math.random() * 100}` : (Ne = n.value.user) == null ? void 0 : Ne.fotoUrl;
3313
3313
  n.value = {
3314
3314
  token: ue,
3315
3315
  refreshToken: I.tokenRefresh,
@@ -3318,10 +3318,10 @@ const bp = () => {
3318
3318
  ...I.usuario,
3319
3319
  nombreCompleto: (ct = (lt = I == null ? void 0 : I.usuario) == null ? void 0 : lt.nombreCompleto) == null ? void 0 : ct.toLowerCase(),
3320
3320
  ...se ? { fotoUrl: se } : {},
3321
- whatsapp: q,
3322
- telegram: Y,
3321
+ whatsapp: z,
3322
+ telegram: W,
3323
3323
  sms: G,
3324
- emailValidado: W
3324
+ emailValidado: X
3325
3325
  },
3326
3326
  isNvAuth: !1,
3327
3327
  isAuth: !0,
@@ -3338,7 +3338,7 @@ const bp = () => {
3338
3338
  I.tokenRefresh,
3339
3339
  h1(n.value)
3340
3340
  );
3341
- }, X = (I) => {
3341
+ }, $ = (I) => {
3342
3342
  const ee = (I == null ? void 0 : I.accessToken) || (I == null ? void 0 : I.token), ue = I == null ? void 0 : I.tokenRefresh;
3343
3343
  if (!ee || !ue)
3344
3344
  throw new sl();
@@ -3347,26 +3347,26 @@ const bp = () => {
3347
3347
  return;
3348
3348
  }
3349
3349
  un(ee);
3350
- const q = jl(n.value.user);
3350
+ const z = jl(n.value.user);
3351
3351
  n.value = {
3352
3352
  ...n.value,
3353
3353
  token: ee,
3354
3354
  refreshToken: ue,
3355
- ...q ? { isAuth: !0 } : {}
3355
+ ...z ? { isAuth: !0 } : {}
3356
3356
  }, !xo && !a.value && m1(
3357
3357
  ee,
3358
3358
  ue,
3359
3359
  h1(n.value)
3360
3360
  );
3361
3361
  }, ce = (I, ee, ue) => {
3362
- var q, Y, W, G, se;
3362
+ var z, W, X, G, se;
3363
3363
  ee && un(ee), n.value = {
3364
3364
  token: ee,
3365
3365
  refreshToken: ue,
3366
3366
  ...I,
3367
3367
  funcionario: {
3368
3368
  ...I.funcionario,
3369
- funcionarioId: ((q = I.funcionario) == null ? void 0 : q.id) ?? 0,
3369
+ funcionarioId: ((z = I.funcionario) == null ? void 0 : z.id) ?? 0,
3370
3370
  estado: 0,
3371
3371
  latitud: void 0,
3372
3372
  longitud: void 0,
@@ -3379,8 +3379,8 @@ const bp = () => {
3379
3379
  sinControlAsistencia: 0,
3380
3380
  conInamovilidad: 0,
3381
3381
  usuarioId: I.id ?? 0,
3382
- division: ((Y = I.funcionario) == null ? void 0 : Y.divisionNombre) ?? "",
3383
- cargo: (W = I.funcionario) == null ? void 0 : W.cargoNombre,
3382
+ division: ((W = I.funcionario) == null ? void 0 : W.divisionNombre) ?? "",
3383
+ cargo: (X = I.funcionario) == null ? void 0 : X.cargoNombre,
3384
3384
  cargoId: 0,
3385
3385
  divisionId: 0,
3386
3386
  oficinaId: 0,
@@ -3396,7 +3396,7 @@ const bp = () => {
3396
3396
  departamentoId: 0
3397
3397
  },
3398
3398
  user: (() => {
3399
- var lt, ct, Lt, ln, cn, $, Ce, Be, pe, Fe, K, ze, bt, nt, Ue, Me, Xn, $r, Yr;
3399
+ var lt, ct, Lt, ln, cn, Y, Ce, Be, pe, Fe, q, ze, bt, nt, Ue, Me, Xn, $r, Yr;
3400
3400
  let R, ne, te, j, fe = "";
3401
3401
  I.usuarioMediosVerificados && I.usuarioMediosVerificados.length > 0 && I.usuarioMediosVerificados.forEach(($n) => {
3402
3402
  $n.medio === 1 ? (R = 1, $n.default && (fe = "whatsapp")) : $n.medio === 2 ? (ne = 1, $n.default && (fe = "telegram")) : $n.medio === 3 ? (te = 1, $n.default && (fe = "email")) : $n.medio === 5 && (j = 1, $n.default && (fe = "sms"));
@@ -3406,12 +3406,12 @@ const bp = () => {
3406
3406
  id: I.id ?? 0,
3407
3407
  ci: ((ln = I.perfilPersona) == null ? void 0 : ln.ci) ?? "",
3408
3408
  nombre: ((cn = I.perfilPersona) == null ? void 0 : cn.nombre) ?? "",
3409
- paterno: (($ = I.perfilPersona) == null ? void 0 : $.paterno) ?? "",
3409
+ paterno: ((Y = I.perfilPersona) == null ? void 0 : Y.paterno) ?? "",
3410
3410
  profesion: ((Ce = I.perfilPersona) == null ? void 0 : Ce.profesion) ?? "",
3411
3411
  materno: ((Be = I.perfilPersona) == null ? void 0 : Be.materno) ?? "",
3412
3412
  perfilPersonaId: ((pe = I.perfilPersona) == null ? void 0 : pe.id) ?? 0,
3413
3413
  personaId: ((Fe = I.perfilPersona) == null ? void 0 : Fe.id) ?? 0,
3414
- msPersonaId: ((K = I.perfilPersona) == null ? void 0 : K.msPersonaId) ?? 0,
3414
+ msPersonaId: ((q = I.perfilPersona) == null ? void 0 : q.msPersonaId) ?? 0,
3415
3415
  nacimiento: Ne ?? "",
3416
3416
  sexo: ((ze = I.perfilPersona) == null ? void 0 : ze.sexo) ?? "",
3417
3417
  direccion: ((bt = I.perfilPersona) == null ? void 0 : bt.direccion) ?? "",
@@ -3443,7 +3443,7 @@ const bp = () => {
3443
3443
  forzarActivar2FA: I.forzarActivar2FA,
3444
3444
  cambiarPassword: I.cambiarPassword
3445
3445
  };
3446
- }, le = () => mh(), z = (I) => {
3446
+ }, le = () => mh(), K = (I) => {
3447
3447
  if (!(I.type !== "tokens-updated" || !I.token && !I.refreshToken)) {
3448
3448
  xo = !0;
3449
3449
  try {
@@ -3481,7 +3481,7 @@ const bp = () => {
3481
3481
  }
3482
3482
  return;
3483
3483
  }
3484
- z(I);
3484
+ K(I);
3485
3485
  }
3486
3486
  }));
3487
3487
  }, he = (I) => {
@@ -3521,9 +3521,9 @@ const bp = () => {
3521
3521
  value: ee,
3522
3522
  days: ue = 7
3523
3523
  }) => {
3524
- const q = B(I);
3525
- q && ru({
3526
- name: q,
3524
+ const z = B(I);
3525
+ z && ru({
3526
+ name: z,
3527
3527
  value: ee,
3528
3528
  days: ue,
3529
3529
  domain: vh()
@@ -3532,9 +3532,9 @@ const bp = () => {
3532
3532
  newBaseURL: I,
3533
3533
  newBaseURLAuthNv: ee,
3534
3534
  newIsRegister: ue,
3535
- newWebSocketUrl: q,
3536
- newWebSocketToken: Y,
3537
- newAplicacion: W,
3535
+ newWebSocketUrl: z,
3536
+ newWebSocketToken: W,
3537
+ newAplicacion: X,
3538
3538
  newRrhhUrl: G,
3539
3539
  verificarSiFuncionario: se,
3540
3540
  telegramBot: R,
@@ -3542,11 +3542,9 @@ const bp = () => {
3542
3542
  enableChangePasswordMsg: te,
3543
3543
  enableForceChangePassword: j
3544
3544
  }) => {
3545
- r.value = I, u.value = W, s.value = ue || !1, i.value = q || "", A.value = Y || "", a.value = ee || "", l.value = le(), h.value = G, p.value = se || !1, d.value = R, v.value = ne || "0.0.1", C.value = !!te, w.value = !!j, ae(), ee && we();
3545
+ r.value = I, u.value = X, s.value = ue || !1, i.value = z || "", A.value = W || "", a.value = ee || "", l.value = le(), h.value = G, p.value = se || !1, d.value = R, v.value = ne || "0.0.1", C.value = !!te, w.value = !!j, ae(), ee && we();
3546
3546
  }, we = () => a.value ? ea || (ea = (async () => {
3547
3547
  const I = ta, ee = kh(n.value);
3548
- if (ee.action === "none")
3549
- return;
3550
3548
  if (ee.action === "sync-only") {
3551
3549
  if (I !== ta)
3552
3550
  return;
@@ -3558,24 +3556,24 @@ const bp = () => {
3558
3556
  };
3559
3557
  return;
3560
3558
  }
3561
- const ue = !i2(n.value);
3559
+ const ue = Bh(n.value), z = !i2(n.value);
3562
3560
  ee.accessToken && (un(ee.accessToken), n.value = {
3563
3561
  ...n.value,
3564
3562
  token: ee.accessToken
3565
3563
  });
3566
3564
  try {
3567
- const q = await An();
3565
+ const W = await An();
3568
3566
  if (I !== ta)
3569
3567
  return;
3570
3568
  if (Un() && ee.accessToken) {
3571
- ce(q, ee.accessToken, n.value.refreshToken);
3569
+ ce(W, ee.accessToken, n.value.refreshToken);
3572
3570
  return;
3573
3571
  }
3574
- ce(q);
3575
- } catch (q) {
3572
+ ce(W);
3573
+ } catch (W) {
3576
3574
  if (I !== ta)
3577
3575
  return;
3578
- ue && _d(q) && he();
3576
+ _d(W) && (ue || n.value.isAuth) && z && he();
3579
3577
  }
3580
3578
  })().finally(() => {
3581
3579
  ea = null;
@@ -3630,8 +3628,8 @@ const bp = () => {
3630
3628
  onRefreshToken: async () => {
3631
3629
  if (!a.value)
3632
3630
  return Oh(async () => {
3633
- var q, Y, W, G;
3634
- const I = ((q = n.value.token) == null ? void 0 : q.trim()) ?? "", ee = ((Y = n.value.refreshToken) == null ? void 0 : Y.trim()) ?? "";
3631
+ var z, W, X, G;
3632
+ const I = ((z = n.value.token) == null ? void 0 : z.trim()) ?? "", ee = ((W = n.value.refreshToken) == null ? void 0 : W.trim()) ?? "";
3635
3633
  if (!ee)
3636
3634
  throw new S1();
3637
3635
  const ue = await F4();
@@ -3649,7 +3647,7 @@ const bp = () => {
3649
3647
  throw new sl();
3650
3648
  }
3651
3649
  try {
3652
- const se = ((W = n.value.token) == null ? void 0 : W.trim()) ?? "", R = ((G = n.value.refreshToken) == null ? void 0 : G.trim()) ?? "";
3650
+ const se = ((X = n.value.token) == null ? void 0 : X.trim()) ?? "", R = ((G = n.value.refreshToken) == null ? void 0 : G.trim()) ?? "";
3653
3651
  if (!R)
3654
3652
  throw new S1();
3655
3653
  const te = (await wp({
@@ -3658,7 +3656,7 @@ const bp = () => {
3658
3656
  })).response, j = (te == null ? void 0 : te.accessToken) || (te == null ? void 0 : te.token), fe = te == null ? void 0 : te.tokenRefresh;
3659
3657
  if (!j || !fe)
3660
3658
  throw new sl();
3661
- X(te);
3659
+ $(te);
3662
3660
  } finally {
3663
3661
  R4(ue.owner);
3664
3662
  }
@@ -5562,12 +5560,12 @@ const Lm = (t) => ({
5562
5560
  }, p = wu(r), v = yu(p), C = await s.getDimensions(u), w = p === "y", B = w ? "top" : "left", g = w ? "bottom" : "right", f = w ? "clientHeight" : "clientWidth", y = a.reference[v] + a.reference[p] - h[p] - a.floating[v], b = h[p] - a.reference[p], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
5563
5561
  let E = S ? S[f] : 0;
5564
5562
  (!E || !await (s.isElement == null ? void 0 : s.isElement(S))) && (E = i.floating[f] || a.floating[v]);
5565
- const L = y / 2 - b / 2, x = E / 2 - C[v] / 2 - 1, T = Tn(d[B], x), P = Tn(d[g], x), F = T, re = E - C[v] - P, Q = E / 2 - C[v] / 2 + L, X = hc(F, Q, re), ce = !l.arrow && Zr(r) != null && Q !== X && a.reference[v] / 2 - (Q < F ? T : P) - C[v] / 2 < 0, le = ce ? Q < F ? Q - F : Q - re : 0;
5563
+ const L = y / 2 - b / 2, x = E / 2 - C[v] / 2 - 1, T = Tn(d[B], x), P = Tn(d[g], x), F = T, re = E - C[v] - P, Q = E / 2 - C[v] / 2 + L, $ = hc(F, Q, re), ce = !l.arrow && Zr(r) != null && Q !== $ && a.reference[v] / 2 - (Q < F ? T : P) - C[v] / 2 < 0, le = ce ? Q < F ? Q - F : Q - re : 0;
5566
5564
  return {
5567
5565
  [p]: h[p] + le,
5568
5566
  data: {
5569
- [p]: X,
5570
- centerOffset: Q - X - le,
5567
+ [p]: $,
5568
+ centerOffset: Q - $ - le,
5571
5569
  ...ce && {
5572
5570
  alignmentOffset: le
5573
5571
  }
@@ -5612,31 +5610,31 @@ const Lm = (t) => ({
5612
5610
  overflows: x
5613
5611
  }], !x.every((Q) => Q <= 0)) {
5614
5612
  var P, F;
5615
- const Q = (((P = a.flip) == null ? void 0 : P.index) || 0) + 1, X = E[Q];
5616
- if (X)
5613
+ const Q = (((P = a.flip) == null ? void 0 : P.index) || 0) + 1, $ = E[Q];
5614
+ if ($)
5617
5615
  return {
5618
5616
  data: {
5619
5617
  index: Q,
5620
5618
  overflows: T
5621
5619
  },
5622
5620
  reset: {
5623
- placement: X
5621
+ placement: $
5624
5622
  }
5625
5623
  };
5626
- let ce = (F = T.filter((le) => le.overflows[0] <= 0).sort((le, z) => le.overflows[1] - z.overflows[1])[0]) == null ? void 0 : F.placement;
5624
+ let ce = (F = T.filter((le) => le.overflows[0] <= 0).sort((le, K) => le.overflows[1] - K.overflows[1])[0]) == null ? void 0 : F.placement;
5627
5625
  if (!ce)
5628
5626
  switch (p) {
5629
5627
  case "bestFit": {
5630
5628
  var re;
5631
- const le = (re = T.filter((z) => {
5629
+ const le = (re = T.filter((K) => {
5632
5630
  if (S) {
5633
- const ae = Eo(z.placement);
5631
+ const ae = Eo(K.placement);
5634
5632
  return ae === g || // Create a bias to the `y` side axis due to horizontal
5635
5633
  // reading directions favoring greater width.
5636
5634
  ae === "y";
5637
5635
  }
5638
5636
  return !0;
5639
- }).map((z) => [z.placement, z.overflows.filter((ae) => ae > 0).reduce((ae, he) => ae + he, 0)]).sort((z, ae) => z[1] - ae[1])[0]) == null ? void 0 : re[0];
5637
+ }).map((K) => [K.placement, K.overflows.filter((ae) => ae > 0).reduce((ae, he) => ae + he, 0)]).sort((K, ae) => K[1] - ae[1])[0]) == null ? void 0 : re[0];
5640
5638
  le && (ce = le);
5641
5639
  break;
5642
5640
  }
@@ -8757,10 +8755,10 @@ const X7 = { style: { border: "0px", clip: "rect(0px, 0px, 0px, 0px)", "clip-pat
8757
8755
  re.value = I.copy();
8758
8756
  }
8759
8757
  const {
8760
- fullCalendarLabel: X,
8758
+ fullCalendarLabel: $,
8761
8759
  headingValue: ce,
8762
8760
  isDateDisabled: le,
8763
- isDateUnavailable: z,
8761
+ isDateUnavailable: K,
8764
8762
  isNextButtonDisabled: ae,
8765
8763
  isPrevButtonDisabled: he,
8766
8764
  weekdays: De,
@@ -8791,7 +8789,7 @@ const X7 = { style: { border: "0px", clip: "rect(0px, 0px, 0px, 0px)", "clip-pat
8791
8789
  } = q7({
8792
8790
  date: P,
8793
8791
  isDateDisabled: le,
8794
- isDateUnavailable: z
8792
+ isDateUnavailable: K
8795
8793
  });
8796
8794
  Ve(P, (I) => {
8797
8795
  if (Array.isArray(I) && I.length) {
@@ -8826,7 +8824,7 @@ const X7 = { style: { border: "0px", clip: "rect(0px, 0px, 0px, 0px)", "clip-pat
8826
8824
  return Ge(() => {
8827
8825
  i.value && B6(x.value);
8828
8826
  }), Y7({
8829
- isDateUnavailable: z,
8827
+ isDateUnavailable: K,
8830
8828
  dir: T,
8831
8829
  isDateDisabled: le,
8832
8830
  locale: r,
@@ -8843,7 +8841,7 @@ const X7 = { style: { border: "0px", clip: "rect(0px, 0px, 0px, 0px)", "clip-pat
8843
8841
  numberOfMonths: C,
8844
8842
  readonly: s,
8845
8843
  preventDeselect: w,
8846
- fullCalendarLabel: X,
8844
+ fullCalendarLabel: $,
8847
8845
  headingValue: ce,
8848
8846
  isInvalid: Ee,
8849
8847
  isDateSelected: pt,
@@ -8861,7 +8859,7 @@ const X7 = { style: { border: "0px", clip: "rect(0px, 0px, 0px, 0px)", "clip-pat
8861
8859
  as: I.as,
8862
8860
  "as-child": I.asChild,
8863
8861
  role: "application",
8864
- "aria-label": c(X),
8862
+ "aria-label": c($),
8865
8863
  "data-readonly": c(s) ? "" : void 0,
8866
8864
  "data-disabled": c(a) ? "" : void 0,
8867
8865
  "data-invalid": c(Ee) ? "" : void 0,
@@ -8877,7 +8875,7 @@ const X7 = { style: { border: "0px", clip: "rect(0px, 0px, 0px, 0px)", "clip-pat
8877
8875
  fixedWeeks: c(d)
8878
8876
  }),
8879
8877
  m("div", X7, [
8880
- m("div", $7, ye(c(X)), 1)
8878
+ m("div", $7, ye(c($)), 1)
8881
8879
  ])
8882
8880
  ]),
8883
8881
  _: 3
@@ -9422,7 +9420,7 @@ const Lf = {
9422
9420
  l6({
9423
9421
  ...v.value,
9424
9422
  apply: ({ elements: T, rects: P, availableWidth: F, availableHeight: re }) => {
9425
- const { width: Q, height: X } = P.reference, ce = T.floating.style;
9423
+ const { width: Q, height: $ } = P.reference, ce = T.floating.style;
9426
9424
  ce.setProperty(
9427
9425
  "--radix-popper-available-width",
9428
9426
  `${F}px`
@@ -9434,7 +9432,7 @@ const Lf = {
9434
9432
  `${Q}px`
9435
9433
  ), ce.setProperty(
9436
9434
  "--radix-popper-anchor-height",
9437
- `${X}px`
9435
+ `${$}px`
9438
9436
  );
9439
9437
  }
9440
9438
  }),
@@ -9997,8 +9995,8 @@ const [Z8, H8] = it("RovingFocusGroup"), _f = /* @__PURE__ */ U({
9997
9995
  if (T.code === "Space" || (P && (T.key === "Tab" && T.preventDefault(), !F && re && y(T.key)), T.target !== g.value) || !T7.includes(T.key))
9998
9996
  return;
9999
9997
  T.preventDefault();
10000
- const X = f.value;
10001
- Df.includes(T.key) && X.reverse(), I7(X);
9998
+ const $ = f.value;
9999
+ Df.includes(T.key) && $.reverse(), I7($);
10002
10000
  }
10003
10001
  function L(T) {
10004
10002
  var P, F;
@@ -10437,7 +10435,7 @@ const n9 = ["id", "value", "name", "disabled", "required"], [o9, r9] = it("DateF
10437
10435
  setup(t, { expose: e, emit: n }) {
10438
10436
  const o = t, r = n, { locale: a, disabled: s, readonly: i, isDateUnavailable: l, granularity: u, defaultValue: A, dir: d } = yt(o), h = Ef(o.locale), p = er(d), { primitiveElement: v, currentElement: C } = _a(), w = M(/* @__PURE__ */ new Set());
10439
10437
  Ge(() => {
10440
- SA(C.value).forEach((z) => w.value.add(z));
10438
+ SA(C.value).forEach((K) => w.value.add(K));
10441
10439
  });
10442
10440
  const B = Ot(o, "modelValue", r, {
10443
10441
  defaultValue: A.value,
@@ -10451,8 +10449,8 @@ const n9 = ["id", "value", "name", "disabled", "required"], [o9, r9] = it("DateF
10451
10449
  defaultValue: o.defaultPlaceholder ?? g.copy(),
10452
10450
  passive: o.placeholder === void 0
10453
10451
  }), y = N(() => o.granularity ? fc(f.value) ? o.granularity : "day" : fc(f.value) ? "minute" : "day"), b = N(() => {
10454
- var z;
10455
- return B.value ? !!((z = l.value) != null && z.call(l, B.value) || o.minValue && mr(B.value, o.minValue) || o.maxValue && mr(o.maxValue, B.value)) : !1;
10452
+ var K;
10453
+ return B.value ? !!((K = l.value) != null && K.call(l, B.value) || o.minValue && mr(B.value, o.minValue) || o.maxValue && mr(o.maxValue, B.value)) : !1;
10456
10454
  }), S = Y8(y.value), E = M(B.value ? { ...EA({ value: B.value, formatter: h }) } : { ...S }), L = N(() => t9({
10457
10455
  granularity: y.value,
10458
10456
  dateRef: f.value,
@@ -10461,32 +10459,32 @@ const n9 = ["id", "value", "name", "disabled", "required"], [o9, r9] = it("DateF
10461
10459
  hourCycle: o.hourCycle,
10462
10460
  segmentValues: E.value,
10463
10461
  locale: a
10464
- })), x = N(() => L.value.arr), T = N(() => x.value.filter(({ part: z }) => z !== "literal"));
10465
- Ve(a, (z) => {
10466
- h.getLocale() !== z && (h.setLocale(z), ge(() => {
10462
+ })), x = N(() => L.value.arr), T = N(() => x.value.filter(({ part: K }) => K !== "literal"));
10463
+ Ve(a, (K) => {
10464
+ h.getLocale() !== K && (h.setLocale(K), ge(() => {
10467
10465
  w.value.clear(), SA(C.value).forEach((ae) => w.value.add(ae));
10468
10466
  }));
10469
- }), Ve(B, (z) => {
10470
- !mA(z) && f.value.compare(z) !== 0 && (f.value = z.copy());
10471
- }), Ve([B, a], ([z]) => {
10472
- mA(z) ? Object.values(E.value).every((ae) => ae !== null) && z === void 0 && (E.value = { ...S }) : E.value = { ...EA({ value: z, formatter: h }) };
10467
+ }), Ve(B, (K) => {
10468
+ !mA(K) && f.value.compare(K) !== 0 && (f.value = K.copy());
10469
+ }), Ve([B, a], ([K]) => {
10470
+ mA(K) ? Object.values(E.value).every((ae) => ae !== null) && K === void 0 && (E.value = { ...S }) : E.value = { ...EA({ value: K, formatter: h }) };
10473
10471
  });
10474
- const P = M(null), F = N(() => Array.from(w.value).findIndex((z) => {
10472
+ const P = M(null), F = N(() => Array.from(w.value).findIndex((K) => {
10475
10473
  var ae;
10476
- return z.getAttribute("data-radix-vue-date-field-segment") === ((ae = P.value) == null ? void 0 : ae.getAttribute("data-radix-vue-date-field-segment"));
10474
+ return K.getAttribute("data-radix-vue-date-field-segment") === ((ae = P.value) == null ? void 0 : ae.getAttribute("data-radix-vue-date-field-segment"));
10477
10475
  })), re = N(() => {
10478
- const z = p.value === "rtl" ? -1 : 1;
10479
- return (z < 0 ? F.value < 0 : F.value > w.value.size - 1) ? null : Array.from(w.value)[F.value + z];
10476
+ const K = p.value === "rtl" ? -1 : 1;
10477
+ return (K < 0 ? F.value < 0 : F.value > w.value.size - 1) ? null : Array.from(w.value)[F.value + K];
10480
10478
  }), Q = N(() => {
10481
- const z = p.value === "rtl" ? -1 : 1;
10482
- return (z > 0 ? F.value < 0 : F.value > w.value.size - 1) ? null : Array.from(w.value)[F.value - z];
10483
- }), X = Ua();
10484
- function ce(z) {
10479
+ const K = p.value === "rtl" ? -1 : 1;
10480
+ return (K > 0 ? F.value < 0 : F.value > w.value.size - 1) ? null : Array.from(w.value)[F.value - K];
10481
+ }), $ = Ua();
10482
+ function ce(K) {
10485
10483
  var ae, he;
10486
- ao(z.key) && (z.key === X.ARROW_LEFT && ((ae = Q.value) == null || ae.focus()), z.key === X.ARROW_RIGHT && ((he = re.value) == null || he.focus()));
10484
+ ao(K.key) && (K.key === $.ARROW_LEFT && ((ae = Q.value) == null || ae.focus()), K.key === $.ARROW_RIGHT && ((he = re.value) == null || he.focus()));
10487
10485
  }
10488
- function le(z) {
10489
- P.value = z;
10486
+ function le(K) {
10487
+ P.value = K;
10490
10488
  }
10491
10489
  return r9({
10492
10490
  isDateUnavailable: l.value,
@@ -10503,14 +10501,14 @@ const n9 = ["id", "value", "name", "disabled", "required"], [o9, r9] = it("DateF
10503
10501
  elements: w,
10504
10502
  setFocusedElement: le,
10505
10503
  focusNext() {
10506
- var z;
10507
- (z = re.value) == null || z.focus();
10504
+ var K;
10505
+ (K = re.value) == null || K.focus();
10508
10506
  }
10509
10507
  }), e({
10510
10508
  /** Helper to set the focused element inside the DateField */
10511
10509
  setFocusedElement: le
10512
- }), (z, ae) => (D(), H(tt, null, [
10513
- k(c(Re), de(z.$attrs, {
10510
+ }), (K, ae) => (D(), H(tt, null, [
10511
+ k(c(Re), de(K.$attrs, {
10514
10512
  ref_key: "primitiveElement",
10515
10513
  ref: v,
10516
10514
  role: "group",
@@ -10522,7 +10520,7 @@ const n9 = ["id", "value", "name", "disabled", "required"], [o9, r9] = it("DateF
10522
10520
  onKeydown: yn(ce, ["left", "right"])
10523
10521
  }), {
10524
10522
  default: O(() => [
10525
- J(z.$slots, "default", {
10523
+ J(K.$slots, "default", {
10526
10524
  modelValue: c(B),
10527
10525
  segments: x.value,
10528
10526
  isInvalid: b.value
@@ -10531,14 +10529,14 @@ const n9 = ["id", "value", "name", "disabled", "required"], [o9, r9] = it("DateF
10531
10529
  _: 3
10532
10530
  }, 16, ["aria-disabled", "data-disabled", "data-readonly", "data-invalid", "dir"]),
10533
10531
  m("input", {
10534
- id: z.id,
10532
+ id: K.id,
10535
10533
  type: "text",
10536
10534
  tabindex: "-1",
10537
10535
  "aria-hidden": "true",
10538
10536
  value: c(B) ? c(B).toString() : "",
10539
- name: z.name,
10537
+ name: K.name,
10540
10538
  disabled: c(s),
10541
- required: z.required,
10539
+ required: K.required,
10542
10540
  style: {
10543
10541
  transform: "translateX(-100%)",
10544
10542
  position: "absolute",
@@ -11228,7 +11226,7 @@ const v9 = /* @__PURE__ */ U({
11228
11226
  })), Q = Ot(n, "placeholder", o, {
11229
11227
  defaultValue: n.defaultPlaceholder ?? re.value.copy(),
11230
11228
  passive: n.placeholder === void 0
11231
- }), X = Ot(n, "open", o, {
11229
+ }), $ = Ot(n, "open", o, {
11232
11230
  defaultValue: C.value,
11233
11231
  passive: n.open === void 0
11234
11232
  }), ce = M();
@@ -11250,7 +11248,7 @@ const v9 = /* @__PURE__ */ U({
11250
11248
  placeholder: Q,
11251
11249
  defaultOpen: C,
11252
11250
  modal: w,
11253
- open: X,
11251
+ open: $,
11254
11252
  id: B,
11255
11253
  name: g,
11256
11254
  required: f,
@@ -11267,9 +11265,9 @@ const v9 = /* @__PURE__ */ U({
11267
11265
  onPlaceholderChange(le) {
11268
11266
  Q.value = le.copy();
11269
11267
  }
11270
- }), (le, z) => (D(), Z(c(H9), {
11271
- open: c(X),
11272
- "onUpdate:open": z[0] || (z[0] = (ae) => vt(X) ? X.value = ae : null),
11268
+ }), (le, K) => (D(), Z(c(H9), {
11269
+ open: c($),
11270
+ "onUpdate:open": K[0] || (K[0] = (ae) => vt($) ? $.value = ae : null),
11273
11271
  "default-open": c(C),
11274
11272
  modal: c(w)
11275
11273
  }, {
@@ -18967,7 +18965,7 @@ function Qi(t = "fge") {
18967
18965
  abrirTelegramDialog: T = !0,
18968
18966
  tiempoVigencia: P
18969
18967
  }) => {
18970
- var re, Q, X, ce, le, z;
18968
+ var re, Q, $, ce, le, K;
18971
18969
  const F = {
18972
18970
  contacto: r.value,
18973
18971
  medio: l.value,
@@ -18990,7 +18988,7 @@ function Qi(t = "fge") {
18990
18988
  ), ae;
18991
18989
  {
18992
18990
  const he = ((Q = (re = ae.response) == null ? void 0 : re.data) == null ? void 0 : Q.tiempoVigencia) || P;
18993
- l.value !== "telegram" && p(l.value, he), ((ce = (X = ae.response) == null ? void 0 : X.data) == null ? void 0 : ce.medioActualizado) === !0 || (l.value === "telegram" && T ? ge(() => {
18991
+ l.value !== "telegram" && p(l.value, he), ((ce = ($ = ae.response) == null ? void 0 : $.data) == null ? void 0 : ce.medioActualizado) === !0 || (l.value === "telegram" && T ? ge(() => {
18994
18992
  b();
18995
18993
  }) : oe.success(
18996
18994
  `<p class="toast-title">Operación exitosa</p><p class="toast-description">${ae.message || "Mensaje enviado"}!</p>`,
@@ -19021,7 +19019,7 @@ function Qi(t = "fge") {
19021
19019
  closeOnClick: !1,
19022
19020
  dangerouslyHTMLString: !0
19023
19021
  }
19024
- ) : !(((z = (le = he.response) == null ? void 0 : le.data) == null ? void 0 : z.medioActualizado) === !0) && T && ge(() => {
19022
+ ) : !(((K = (le = he.response) == null ? void 0 : le.data) == null ? void 0 : K.medioActualizado) === !0) && T && ge(() => {
19025
19023
  b();
19026
19024
  }), ge(() => {
19027
19025
  var De;
@@ -19117,8 +19115,8 @@ function vw() {
19117
19115
  {
19118
19116
  ci: qe().required().label("Cédula de identidad"),
19119
19117
  nombres: qe().required().label("Nombre"),
19120
- paterno: qe().when("materno", ([X]) => X ? qe().notRequired() : qe().required().label("Apellido paterno o materno")),
19121
- materno: qe().when("paterno", ([X]) => X ? qe().notRequired() : qe().required().label("Apellido paterno o materno")),
19118
+ paterno: qe().when("materno", ([$]) => $ ? qe().notRequired() : qe().required().label("Apellido paterno o materno")),
19119
+ materno: qe().when("paterno", ([$]) => $ ? qe().notRequired() : qe().required().label("Apellido paterno o materno")),
19122
19120
  fechaNacimiento: l4().required().label("Fecha de nacimiento")
19123
19121
  },
19124
19122
  [["materno", "paterno"]]
@@ -19197,18 +19195,18 @@ function vw() {
19197
19195
  r.value === 2 && (b("codigoContacto", void 0), h.value = null, p.value = null);
19198
19196
  }
19199
19197
  );
19200
- const L = w(async (X) => {
19201
- var le, z, ae;
19198
+ const L = w(async ($) => {
19199
+ var le, K, ae;
19202
19200
  n.setLoading(!0);
19203
19201
  const ce = /* @__PURE__ */ new Date(
19204
- `${X.fechaNacimiento.month}-${X.fechaNacimiento.day}-${X.fechaNacimiento.year}`
19202
+ `${$.fechaNacimiento.month}-${$.fechaNacimiento.day}-${$.fechaNacimiento.year}`
19205
19203
  );
19206
19204
  try {
19207
19205
  const he = {
19208
- ci: X.ci,
19209
- nombres: (le = X.nombres) == null ? void 0 : le.trim(),
19210
- paterno: (z = X.paterno) == null ? void 0 : z.trim(),
19211
- materno: (ae = X.materno) == null ? void 0 : ae.trim(),
19206
+ ci: $.ci,
19207
+ nombres: (le = $.nombres) == null ? void 0 : le.trim(),
19208
+ paterno: (K = $.paterno) == null ? void 0 : K.trim(),
19209
+ materno: (ae = $.materno) == null ? void 0 : ae.trim(),
19212
19210
  fechaNacimiento: ce,
19213
19211
  aplicacion: e.aplicacion
19214
19212
  }, De = await hw(he);
@@ -19231,9 +19229,9 @@ function vw() {
19231
19229
  } finally {
19232
19230
  n.setLoading(!1);
19233
19231
  }
19234
- }), x = async ({ medio: X, contacto: ce }) => {
19232
+ }), x = async ({ medio: $, contacto: ce }) => {
19235
19233
  var De, Ie, Oe, Le, wt, we, Ee, pt;
19236
- if (X === "email") {
19234
+ if ($ === "email") {
19237
19235
  if (!C.email) {
19238
19236
  S("email", "Email es requerido para verificar");
19239
19237
  return;
@@ -19241,21 +19239,21 @@ function vw() {
19241
19239
  const { valid: Ze } = await f("email");
19242
19240
  if (!Ze || v.verificadoEmail) return;
19243
19241
  }
19244
- const z = X === "telegram", ae = X === "whatsapp", he = X === "sms";
19245
- if (z || ae || he) {
19246
- if (z && v.verificadoTelegram || ae && v.verificadoWhatsapp || he && v.verificadoSms) return;
19242
+ const K = $ === "telegram", ae = $ === "whatsapp", he = $ === "sms";
19243
+ if (K || ae || he) {
19244
+ if (K && v.verificadoTelegram || ae && v.verificadoWhatsapp || he && v.verificadoSms) return;
19247
19245
  const { valid: Ze } = await f("celular");
19248
19246
  if (!Ze) return;
19249
19247
  }
19250
19248
  try {
19251
- n.setLoading(!0), l.value = X, i.value = ce;
19252
- const Ze = await P(z);
19249
+ n.setLoading(!0), l.value = $, i.value = ce;
19250
+ const Ze = await P(K);
19253
19251
  if (Ze != null && Ze.error) {
19254
19252
  n.setLoading(!1);
19255
19253
  return;
19256
19254
  }
19257
19255
  if (((Ie = (De = Ze == null ? void 0 : Ze.response) == null ? void 0 : De.data) == null ? void 0 : Ie.medioActualizado) === !0) {
19258
- X === "whatsapp" ? v.verificadoWhatsapp = !0 : X === "telegram" ? v.verificadoTelegram = !0 : X === "email" ? v.verificadoEmail = !0 : X === "sms" && (v.verificadoSms = !0), oe.success(
19256
+ $ === "whatsapp" ? v.verificadoWhatsapp = !0 : $ === "telegram" ? v.verificadoTelegram = !0 : $ === "email" ? v.verificadoEmail = !0 : $ === "sms" && (v.verificadoSms = !0), oe.success(
19259
19257
  `<p class="toast-title">Operación exitosa</p><p class="toast-description">${Ze.message || "Medio verificado exitosamente"}</p>`,
19260
19258
  {
19261
19259
  autoClose: 5e3,
@@ -19268,10 +19266,10 @@ function vw() {
19268
19266
  return;
19269
19267
  }
19270
19268
  const I = ((Le = (Oe = Ze == null ? void 0 : Ze.response) == null ? void 0 : Oe.data) == null ? void 0 : Le.mensajeServicio) || null, ee = ((we = (wt = Ze == null ? void 0 : Ze.response) == null ? void 0 : wt.data) == null ? void 0 : we.tiempoVigencia) || null, ue = ((pt = (Ee = Ze == null ? void 0 : Ze.response) == null ? void 0 : Ee.data) == null ? void 0 : pt.url) || null;
19271
- I && (h.value = I), (X === "email" || X === "whatsapp" || X === "sms") && ee && ge(() => {
19272
- var q;
19273
- (q = s.value) == null || q.reInit(ee);
19274
- }), X === "telegram" && ue && (p.value = ue), z && await new Promise((q) => setTimeout(q, 100)), r.value = 2, n.setLoading(!1);
19269
+ I && (h.value = I), ($ === "email" || $ === "whatsapp" || $ === "sms") && ee && ge(() => {
19270
+ var z;
19271
+ (z = s.value) == null || z.reInit(ee);
19272
+ }), $ === "telegram" && ue && (p.value = ue), K && await new Promise((z) => setTimeout(z, 100)), r.value = 2, n.setLoading(!1);
19275
19273
  } catch (Ze) {
19276
19274
  n.setLoading(!1), oe.error(
19277
19275
  `<p class="toast-title">Error</p><p class="toast-description">${Ze.message}</p>`,
@@ -19286,8 +19284,8 @@ function vw() {
19286
19284
  }
19287
19285
  }, T = async () => {
19288
19286
  try {
19289
- const { valid: X } = await f("codigoContacto");
19290
- if (!X)
19287
+ const { valid: $ } = await f("codigoContacto");
19288
+ if (!$)
19291
19289
  return;
19292
19290
  const ce = await gw({
19293
19291
  code_confirmacion: C.codigoContacto,
@@ -19304,9 +19302,9 @@ function vw() {
19304
19302
  dangerouslyHTMLString: !0
19305
19303
  }
19306
19304
  ), l.value === "email" ? v.verificadoEmail = !0 : l.value === "whatsapp" ? v.verificadoWhatsapp = !0 : l.value === "telegram" ? v.verificadoTelegram = !0 : l.value === "sms" && (v.verificadoSms = !0), r.value = r.value - 1, b("codigoContacto", void 0), l.value = void 0, i.value = null;
19307
- } catch (X) {
19305
+ } catch ($) {
19308
19306
  oe.error(
19309
- `<p class="toast-title">Error</p><p class="toast-description">${X.message}</p>`,
19307
+ `<p class="toast-title">Error</p><p class="toast-description">${$.message}</p>`,
19310
19308
  {
19311
19309
  autoClose: 5e3,
19312
19310
  hideProgressBar: !0,
@@ -19316,16 +19314,16 @@ function vw() {
19316
19314
  }
19317
19315
  );
19318
19316
  }
19319
- }, P = async (X = !1) => await A({
19317
+ }, P = async ($ = !1) => await A({
19320
19318
  callbackApi: mw,
19321
19319
  code: C.codigoRegistro,
19322
- abrirTelegramDialog: X,
19320
+ abrirTelegramDialog: $,
19323
19321
  counterTime: 120
19324
19322
  }), F = () => {
19325
19323
  r.value = 1, b("codigoContacto", void 0), h.value = null, p.value = null;
19326
19324
  }, re = () => {
19327
19325
  r.value = 0, y();
19328
- }, Q = w(async (X) => {
19326
+ }, Q = w(async ($) => {
19329
19327
  var ce, le;
19330
19328
  if (!v.verificadoTelegram && !v.verificadoEmail && !v.verificadoSms) {
19331
19329
  oe.error(
@@ -19342,14 +19340,14 @@ function vw() {
19342
19340
  }
19343
19341
  n.setLoading(!0);
19344
19342
  try {
19345
- const z = /* @__PURE__ */ new Date(
19346
- `${X.fechaNacimiento.month}-${X.fechaNacimiento.day}-${X.fechaNacimiento.year}`
19343
+ const K = /* @__PURE__ */ new Date(
19344
+ `${$.fechaNacimiento.month}-${$.fechaNacimiento.day}-${$.fechaNacimiento.year}`
19347
19345
  ), ae = {
19348
- ...X,
19349
- email: (ce = X.email) == null ? void 0 : ce.trim(),
19350
- direccion: (le = X.direccion) == null ? void 0 : le.trim(),
19346
+ ...$,
19347
+ email: (ce = $.email) == null ? void 0 : ce.trim(),
19348
+ direccion: (le = $.direccion) == null ? void 0 : le.trim(),
19351
19349
  aplicacion: e.aplicacion,
19352
- fechaNacimiento: z
19350
+ fechaNacimiento: K
19353
19351
  }, he = await pw(ae);
19354
19352
  oe.success(
19355
19353
  `<p class="toast-title">¡Registro completado!</p><p class="toast-description">${he.message}</p>`,
@@ -19363,13 +19361,13 @@ function vw() {
19363
19361
  ), n.setLoading(!1), setTimeout(() => {
19364
19362
  e.goLoginPage();
19365
19363
  }, 2e3);
19366
- } catch (z) {
19367
- if (z.response && Array.isArray(z.response)) {
19368
- Ft({ error: z.response, setErrors: g });
19364
+ } catch (K) {
19365
+ if (K.response && Array.isArray(K.response)) {
19366
+ Ft({ error: K.response, setErrors: g });
19369
19367
  return;
19370
19368
  }
19371
- z.message && oe.error(
19372
- `<p class="toast-title">Error</p><p class="toast-description">${z.message}</p>`,
19369
+ K.message && oe.error(
19370
+ `<p class="toast-title">Error</p><p class="toast-description">${K.message}</p>`,
19373
19371
  {
19374
19372
  autoClose: 5e3,
19375
19373
  hideProgressBar: !0,
@@ -19548,8 +19546,8 @@ const yw = {
19548
19546
  r("update:modelValue", T);
19549
19547
  const P = Math.min(x.length, o.length - 1);
19550
19548
  ge(() => {
19551
- var F, re, Q, X;
19552
- P < o.length ? ((F = i.value[P]) == null || F.focus(), (re = i.value[P]) == null || re.select()) : ((Q = i.value[o.length - 1]) == null || Q.focus(), (X = i.value[o.length - 1]) == null || X.select());
19549
+ var F, re, Q, $;
19550
+ P < o.length ? ((F = i.value[P]) == null || F.focus(), (re = i.value[P]) == null || re.select()) : ((Q = i.value[o.length - 1]) == null || Q.focus(), ($ = i.value[o.length - 1]) == null || $.select());
19553
19551
  });
19554
19552
  }
19555
19553
  }
@@ -25699,46 +25697,46 @@ function VB(t) {
25699
25697
  jt().shape({
25700
25698
  code: qe().required("Debe ingresar un código de verificación").matches($o, "El código debe contener solo letras y números").label("Código")
25701
25699
  })
25702
- ], x = M(0), T = N(() => L[x.value]), { handleSubmit: P, values: F, errors: re, setErrors: Q, resetForm: X, setFieldValue: ce } = ii({
25700
+ ], x = M(0), T = N(() => L[x.value]), { handleSubmit: P, values: F, errors: re, setErrors: Q, resetForm: $, setFieldValue: ce } = ii({
25703
25701
  validationSchema: T,
25704
25702
  keepValuesOnUnmount: !0
25705
- }), { value: le } = Kl("usuarioId"), { value: z } = Kl("esDispositivoConfianza", void 0, {
25703
+ }), { value: le } = Kl("usuarioId"), { value: K } = Kl("esDispositivoConfianza", void 0, {
25706
25704
  initialValue: !1
25707
- }), ae = ($) => e.resolveDeviceIdFromCookie($ ?? F.usuario ?? ""), he = {
25705
+ }), ae = (Y) => e.resolveDeviceIdFromCookie(Y ?? F.usuario ?? ""), he = {
25708
25706
  [Ae.WHATSAPP]: "verificadoWhatsapp",
25709
25707
  [Ae.TELEGRAM]: "verificadoTelegram",
25710
25708
  [Ae.EMAIL]: "verificadoEmail",
25711
25709
  [Ae.ROMA]: "verificadoRoma",
25712
25710
  [Ae.SMS]: "verificadoSms"
25713
- }, De = ($) => ({
25711
+ }, De = (Y) => ({
25714
25712
  1: Ae.ROMA,
25715
25713
  2: Ae.TELEGRAM,
25716
25714
  3: Ae.EMAIL,
25717
25715
  4: Ae.WHATSAPP,
25718
25716
  5: Ae.SMS
25719
- })[$] ?? $, Ie = ($) => ({
25717
+ })[Y] ?? Y, Ie = (Y) => ({
25720
25718
  [Ae.ROMA]: 1,
25721
25719
  [Ae.TELEGRAM]: 2,
25722
25720
  [Ae.EMAIL]: 3,
25723
25721
  [Ae.WHATSAPP]: 4,
25724
25722
  [Ae.SMS]: 5
25725
- })[$] ?? $, Oe = ($, Ce) => {
25726
- const Be = he[$];
25723
+ })[Y] ?? Y, Oe = (Y, Ce) => {
25724
+ const Be = he[Y];
25727
25725
  Be && (d[Be] = Ce);
25728
25726
  }, Le = () => {
25729
- Object.keys(d).forEach(($) => {
25730
- d[$] = !1;
25727
+ Object.keys(d).forEach((Y) => {
25728
+ d[Y] = !1;
25731
25729
  });
25732
- }, wt = ($, Ce) => {
25730
+ }, wt = (Y, Ce) => {
25733
25731
  Le();
25734
- const Be = $.map((pe) => Number(pe == null ? void 0 : pe.medio)).filter((pe) => !Number.isNaN(pe)).map((pe) => Ce ? De(pe) : pe);
25735
- p.value = [...new Set(Be)], $.forEach((pe) => {
25732
+ const Be = Y.map((pe) => Number(pe == null ? void 0 : pe.medio)).filter((pe) => !Number.isNaN(pe)).map((pe) => Ce ? De(pe) : pe);
25733
+ p.value = [...new Set(Be)], Y.forEach((pe) => {
25736
25734
  const Fe = Number(pe == null ? void 0 : pe.medio);
25737
25735
  if (Number.isNaN(Fe)) return;
25738
- const K = Ce ? De(Fe) : Fe;
25739
- Oe(K, !!(pe != null && pe.verificado));
25736
+ const q = Ce ? De(Fe) : Fe;
25737
+ Oe(q, !!(pe != null && pe.verificado));
25740
25738
  });
25741
- }, we = ($) => {
25739
+ }, we = (Y) => {
25742
25740
  Le();
25743
25741
  const Ce = {
25744
25742
  verificadoWhatsapp: Ae.WHATSAPP,
@@ -25746,19 +25744,19 @@ function VB(t) {
25746
25744
  verificadoEmail: Ae.EMAIL,
25747
25745
  verificadoRoma: Ae.ROMA,
25748
25746
  verificadoSms: Ae.SMS
25749
- }, Be = Object.entries($).filter(([, pe]) => pe != null).map(([pe]) => Ce[pe]);
25750
- p.value = [...new Set(Be)], Object.entries($).forEach(([pe, Fe]) => {
25747
+ }, Be = Object.entries(Y).filter(([, pe]) => pe != null).map(([pe]) => Ce[pe]);
25748
+ p.value = [...new Set(Be)], Object.entries(Y).forEach(([pe, Fe]) => {
25751
25749
  Fe != null && (d[pe] = !!Fe);
25752
25750
  });
25753
- }, Ee = P(async ($) => {
25754
- var Ce, Be, pe, Fe, K, ze, bt, nt;
25751
+ }, Ee = P(async (Y) => {
25752
+ var Ce, Be, pe, Fe, q, ze, bt, nt;
25755
25753
  n.setLoading(!0), u.value = "", A.value = "";
25756
25754
  try {
25757
- const Ue = ae($.usuario), Me = await e.onLogin({
25758
- ...$,
25755
+ const Ue = ae(Y.usuario), Me = await e.onLogin({
25756
+ ...Y,
25759
25757
  codigoDispositivo: Ue
25760
25758
  });
25761
- e.apiBaseURLAuthNv ? ((Be = (Ce = Me == null ? void 0 : Me.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.mediosVerificados.length) > 0 ? (x.value = x.value + 1, i.value = (Fe = (pe = Me == null ? void 0 : Me.response) == null ? void 0 : pe.data) == null ? void 0 : Fe.usuario, le.value = (ze = (K = Me == null ? void 0 : Me.response) == null ? void 0 : K.data) == null ? void 0 : ze.usuarioId, l.value = Me == null ? void 0 : Me.message, r.value = !0, wt((nt = (bt = Me == null ? void 0 : Me.response) == null ? void 0 : bt.data) == null ? void 0 : nt.mediosVerificados, !0), v.value = !1, h.value = !0, w.value = !1, u.value = "", A.value = "", ge(() => {
25759
+ e.apiBaseURLAuthNv ? ((Be = (Ce = Me == null ? void 0 : Me.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.mediosVerificados.length) > 0 ? (x.value = x.value + 1, i.value = (Fe = (pe = Me == null ? void 0 : Me.response) == null ? void 0 : pe.data) == null ? void 0 : Fe.usuario, le.value = (ze = (q = Me == null ? void 0 : Me.response) == null ? void 0 : q.data) == null ? void 0 : ze.usuarioId, l.value = Me == null ? void 0 : Me.message, r.value = !0, wt((nt = (bt = Me == null ? void 0 : Me.response) == null ? void 0 : bt.data) == null ? void 0 : nt.mediosVerificados, !0), v.value = !1, h.value = !0, w.value = !1, u.value = "", A.value = "", ge(() => {
25762
25760
  var Xn, $r, Yr;
25763
25761
  (Yr = s.value) == null || Yr.reInit((($r = (Xn = Me == null ? void 0 : Me.response) == null ? void 0 : Xn.data) == null ? void 0 : $r.tiempoVigencia) ?? 120);
25764
25762
  }), te()) : (r.value = !1, t("onLogin")) : Me != null && Me.usuarioId && (Me != null && Me.factor2FA) ? (x.value = x.value + 1, i.value = Me.contacto, Array.isArray(Me.mediosVerificados) ? wt(Me.mediosVerificados, !1) : we(Me.mediosVerificados ?? {}), l.value = Me.message, u.value = "", A.value = "", v.value = !1, h.value = !0, w.value = !1, le.value = Me.usuarioId, ge(() => {
@@ -25780,16 +25778,16 @@ function VB(t) {
25780
25778
  } finally {
25781
25779
  n.setLoading(!1);
25782
25780
  }
25783
- }), pt = async ({ medio: $ }) => {
25781
+ }), pt = async ({ medio: Y }) => {
25784
25782
  var Ce, Be, pe, Fe;
25785
25783
  try {
25786
25784
  n.setLoading(!0);
25787
- const K = await lp({
25788
- medio: Number($),
25785
+ const q = await lp({
25786
+ medio: Number(Y),
25789
25787
  usuarioId: le.value
25790
25788
  });
25791
- if (((Be = (Ce = K == null ? void 0 : K.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25792
- switch ($) {
25789
+ if (((Be = (Ce = q == null ? void 0 : q.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25790
+ switch (Y) {
25793
25791
  case Ae.WHATSAPP:
25794
25792
  d.verificadoWhatsapp = !0;
25795
25793
  break;
@@ -25806,7 +25804,7 @@ function VB(t) {
25806
25804
  v.value = !0, h.value = !0, ge(() => {
25807
25805
  ce("medio", void 0);
25808
25806
  }), oe.success(
25809
- `<p class="toast-title">Operación exitosa</p><p class="toast-description">${K.message || "Medio verificado exitosamente"}</p>`,
25807
+ `<p class="toast-title">Operación exitosa</p><p class="toast-description">${q.message || "Medio verificado exitosamente"}</p>`,
25810
25808
  {
25811
25809
  autoClose: 5e3,
25812
25810
  hideProgressBar: !0,
@@ -25817,28 +25815,28 @@ function VB(t) {
25817
25815
  ), n.setLoading(!1);
25818
25816
  return;
25819
25817
  }
25820
- l.value = K.message, v.value = !1, h.value = !1, w.value = !0, (pe = K == null ? void 0 : K.response) != null && pe.data && !(K != null && K.error) ? (u.value = K.response.data.mensajeServicio ?? "", A.value = K.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25818
+ l.value = q.message, v.value = !1, h.value = !1, w.value = !0, (pe = q == null ? void 0 : q.response) != null && pe.data && !(q != null && q.error) ? (u.value = q.response.data.mensajeServicio ?? "", A.value = q.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25821
25819
  var ze;
25822
- (ze = s.value) == null || ze.reInit((K.minutos ?? 2) * 60);
25820
+ (ze = s.value) == null || ze.reInit((q.minutos ?? 2) * 60);
25823
25821
  });
25824
- } catch (K) {
25825
- throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = K == null ? void 0 : K.data) == null ? void 0 : Fe.message) || (K == null ? void 0 : K.message) || "intente nuevamente"}`), n.setLoading(!1), K;
25822
+ } catch (q) {
25823
+ throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = q == null ? void 0 : q.data) == null ? void 0 : Fe.message) || (q == null ? void 0 : q.message) || "intente nuevamente"}`), n.setLoading(!1), q;
25826
25824
  } finally {
25827
25825
  n.setLoading(!1);
25828
25826
  }
25829
- }, Ze = async ({ medio: $ }) => {
25827
+ }, Ze = async ({ medio: Y }) => {
25830
25828
  var Ce, Be, pe, Fe;
25831
25829
  try {
25832
25830
  n.setLoading(!0);
25833
- const K = await P2({
25834
- medio: Ie(Number($)),
25831
+ const q = await P2({
25832
+ medio: Ie(Number(Y)),
25835
25833
  usuarioId: le.value
25836
25834
  });
25837
- if (((Be = (Ce = K == null ? void 0 : K.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25838
- Oe($, !0), v.value = !0, h.value = !0, ge(() => {
25835
+ if (((Be = (Ce = q == null ? void 0 : q.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25836
+ Oe(Y, !0), v.value = !0, h.value = !0, ge(() => {
25839
25837
  ce("medio", void 0);
25840
25838
  }), oe.success(
25841
- `<p class="toast-title">Operación exitosa</p><p class="toast-description">${K.message || "Medio verificado exitosamente"}</p>`,
25839
+ `<p class="toast-title">Operación exitosa</p><p class="toast-description">${q.message || "Medio verificado exitosamente"}</p>`,
25842
25840
  {
25843
25841
  autoClose: 5e3,
25844
25842
  hideProgressBar: !0,
@@ -25849,28 +25847,28 @@ function VB(t) {
25849
25847
  ), n.setLoading(!1);
25850
25848
  return;
25851
25849
  }
25852
- l.value = K.message, v.value = !1, h.value = !1, w.value = !0, (pe = K == null ? void 0 : K.response) != null && pe.data && !(K != null && K.error) ? (u.value = K.response.data.mensajeServicio ?? "", A.value = K.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25850
+ l.value = q.message, v.value = !1, h.value = !1, w.value = !0, (pe = q == null ? void 0 : q.response) != null && pe.data && !(q != null && q.error) ? (u.value = q.response.data.mensajeServicio ?? "", A.value = q.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25853
25851
  var ze;
25854
- (ze = s.value) == null || ze.reInit((K.minutos ?? 2) * 60);
25852
+ (ze = s.value) == null || ze.reInit((q.minutos ?? 2) * 60);
25855
25853
  });
25856
- } catch (K) {
25857
- throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = K == null ? void 0 : K.data) == null ? void 0 : Fe.message) || (K == null ? void 0 : K.message) || "intente nuevamente"}`), n.setLoading(!1), K;
25854
+ } catch (q) {
25855
+ throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = q == null ? void 0 : q.data) == null ? void 0 : Fe.message) || (q == null ? void 0 : q.message) || "intente nuevamente"}`), n.setLoading(!1), q;
25858
25856
  } finally {
25859
25857
  n.setLoading(!1);
25860
25858
  }
25861
- }, I = async ({ medio: $ }) => {
25859
+ }, I = async ({ medio: Y }) => {
25862
25860
  var Ce, Be, pe, Fe;
25863
25861
  try {
25864
25862
  n.setLoading(!0);
25865
- const K = await L2({
25866
- medio: Number($),
25863
+ const q = await L2({
25864
+ medio: Number(Y),
25867
25865
  usuarioId: le.value,
25868
25866
  deviceId: ae(F.usuario),
25869
25867
  isLogin: !0,
25870
25868
  aplicacion: e.aplicacion
25871
25869
  });
25872
- if (((Be = (Ce = K == null ? void 0 : K.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25873
- switch ($) {
25870
+ if (((Be = (Ce = q == null ? void 0 : q.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25871
+ switch (Y) {
25874
25872
  case Ae.WHATSAPP:
25875
25873
  d.verificadoWhatsapp = !0;
25876
25874
  break;
@@ -25887,7 +25885,7 @@ function VB(t) {
25887
25885
  v.value = !0, h.value = !0, ge(() => {
25888
25886
  ce("medio", void 0);
25889
25887
  }), oe.success(
25890
- `<p class="toast-title">Operación exitosa</p><p class="toast-description">${K.message || "Medio verificado exitosamente"}</p>`,
25888
+ `<p class="toast-title">Operación exitosa</p><p class="toast-description">${q.message || "Medio verificado exitosamente"}</p>`,
25891
25889
  {
25892
25890
  autoClose: 5e3,
25893
25891
  hideProgressBar: !0,
@@ -25898,31 +25896,31 @@ function VB(t) {
25898
25896
  ), n.setLoading(!1);
25899
25897
  return;
25900
25898
  }
25901
- l.value = K.message, v.value = !1, h.value = !1, w.value = !0, (pe = K == null ? void 0 : K.response) != null && pe.data && !(K != null && K.error) ? (u.value = K.response.data.mensajeServicio ?? "", A.value = K.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25899
+ l.value = q.message, v.value = !1, h.value = !1, w.value = !0, (pe = q == null ? void 0 : q.response) != null && pe.data && !(q != null && q.error) ? (u.value = q.response.data.mensajeServicio ?? "", A.value = q.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25902
25900
  var ze;
25903
- (ze = s.value) == null || ze.reInit((K.minutos ?? 2) * 60);
25901
+ (ze = s.value) == null || ze.reInit((q.minutos ?? 2) * 60);
25904
25902
  });
25905
- } catch (K) {
25906
- throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = K == null ? void 0 : K.data) == null ? void 0 : Fe.message) || (K == null ? void 0 : K.message) || "intente nuevamente"}`), n.setLoading(!1), K;
25903
+ } catch (q) {
25904
+ throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = q == null ? void 0 : q.data) == null ? void 0 : Fe.message) || (q == null ? void 0 : q.message) || "intente nuevamente"}`), n.setLoading(!1), q;
25907
25905
  } finally {
25908
25906
  n.setLoading(!1);
25909
25907
  }
25910
- }, ee = async ({ medio: $ }) => {
25908
+ }, ee = async ({ medio: Y }) => {
25911
25909
  var Ce, Be, pe, Fe;
25912
25910
  try {
25913
25911
  n.setLoading(!0);
25914
- const K = await R2({
25915
- medio: Ie(Number($)),
25912
+ const q = await R2({
25913
+ medio: Ie(Number(Y)),
25916
25914
  usuarioId: le.value,
25917
25915
  deviceId: ae(F.usuario),
25918
25916
  isLogin: !0,
25919
25917
  aplicacion: e.aplicacion
25920
25918
  });
25921
- if (((Be = (Ce = K == null ? void 0 : K.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25922
- Oe($, !0), v.value = !0, h.value = !0, ge(() => {
25919
+ if (((Be = (Ce = q == null ? void 0 : q.response) == null ? void 0 : Ce.data) == null ? void 0 : Be.medioActualizado) === !0) {
25920
+ Oe(Y, !0), v.value = !0, h.value = !0, ge(() => {
25923
25921
  ce("medio", void 0);
25924
25922
  }), oe.success(
25925
- `<p class="toast-title">Operación exitosa</p><p class="toast-description">${K.message || "Medio verificado exitosamente"}</p>`,
25923
+ `<p class="toast-title">Operación exitosa</p><p class="toast-description">${q.message || "Medio verificado exitosamente"}</p>`,
25926
25924
  {
25927
25925
  autoClose: 5e3,
25928
25926
  hideProgressBar: !0,
@@ -25933,75 +25931,75 @@ function VB(t) {
25933
25931
  ), n.setLoading(!1);
25934
25932
  return;
25935
25933
  }
25936
- l.value = K.message, v.value = !1, h.value = !1, w.value = !0, (pe = K == null ? void 0 : K.response) != null && pe.data && !(K != null && K.error) ? (u.value = K.response.data.mensajeServicio ?? "", A.value = K.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25934
+ l.value = q.message, v.value = !1, h.value = !1, w.value = !0, (pe = q == null ? void 0 : q.response) != null && pe.data && !(q != null && q.error) ? (u.value = q.response.data.mensajeServicio ?? "", A.value = q.response.data.url ?? "") : (u.value = "", A.value = ""), ge(() => {
25937
25935
  var ze;
25938
- (ze = s.value) == null || ze.reInit((K.minutos ?? 2) * 60);
25936
+ (ze = s.value) == null || ze.reInit((q.minutos ?? 2) * 60);
25939
25937
  });
25940
- } catch (K) {
25941
- throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = K == null ? void 0 : K.data) == null ? void 0 : Fe.message) || (K == null ? void 0 : K.message) || "intente nuevamente"}`), n.setLoading(!1), K;
25938
+ } catch (q) {
25939
+ throw u.value = "", A.value = "", oe.error(`Error al enviar código: ${((Fe = q == null ? void 0 : q.data) == null ? void 0 : Fe.message) || (q == null ? void 0 : q.message) || "intente nuevamente"}`), n.setLoading(!1), q;
25942
25940
  } finally {
25943
25941
  n.setLoading(!1);
25944
25942
  }
25945
- }, ue = P(async ($) => {
25943
+ }, ue = P(async (Y) => {
25946
25944
  try {
25947
25945
  n.setLoading(!0), await e.on2AuthNuevoServicioLogin({
25948
- medio: e.apiBaseURLAuthNv ? Ie(Number($.medio)) : Number($.medio),
25946
+ medio: e.apiBaseURLAuthNv ? Ie(Number(Y.medio)) : Number(Y.medio),
25949
25947
  usuarioId: le.value,
25950
- codigo: $.code,
25948
+ codigo: Y.code,
25951
25949
  aplicacion: e.aplicacion,
25952
- codigoDispositivo: ae($.usuario),
25953
- esDispositivoConfianza: $.esDispositivoConfianza,
25954
- usuario: $.usuario
25955
- }), B.value = !1, q(), W(), t("onLogin");
25950
+ codigoDispositivo: ae(Y.usuario),
25951
+ esDispositivoConfianza: Y.esDispositivoConfianza,
25952
+ usuario: Y.usuario
25953
+ }), B.value = !1, z(), X(), t("onLogin");
25956
25954
  } catch (Ce) {
25957
25955
  Ft({ error: Ce, setErrors: Q });
25958
25956
  } finally {
25959
25957
  n.setLoading(!1);
25960
25958
  }
25961
- }), q = () => {
25959
+ }), z = () => {
25962
25960
  y.value && (globalThis.clearTimeout(y.value), y.value = void 0);
25963
- }, Y = () => {
25964
- b && (b(), b = null), S && (S(), S = null), o.clearTemporaryToken();
25965
25961
  }, W = () => {
25966
- Y(), o.disconnect();
25962
+ b && (b(), b = null), S && (S(), S = null), o.clearTemporaryToken();
25963
+ }, X = () => {
25964
+ W(), o.disconnect();
25967
25965
  }, G = async () => {
25968
- const $ = i.value ?? F.usuario ?? "", Ce = ae(String($));
25966
+ const Y = i.value ?? F.usuario ?? "", Ce = ae(String(Y));
25969
25967
  e.apiBaseURLAuthNv ? await e.onConfirmarPushLoginNv({
25970
25968
  usuarioId: Number(le.value),
25971
25969
  challengeId: g.value,
25972
25970
  aplicacion: e.aplicacion,
25973
25971
  deviceId: Ce,
25974
25972
  esDispositivoConfianza: F.esDispositivoConfianza ?? !1,
25975
- numeroDocumento: String($)
25973
+ numeroDocumento: String(Y)
25976
25974
  }) : await e.onConfirmarPushLogin({
25977
25975
  usuarioId: Number(le.value),
25978
25976
  challengeId: g.value,
25979
25977
  aplicacion: e.aplicacion,
25980
25978
  codigoDispositivo: Ce,
25981
25979
  esDispositivoConfianza: F.esDispositivoConfianza ?? !1,
25982
- usuario: String($)
25983
- }), B.value = !1, W(), t("onLogin");
25984
- }, se = ($) => $ === 3 || $ === 4 || $ === 5 || $ === 6, R = ($) => {
25980
+ usuario: String(Y)
25981
+ }), B.value = !1, X(), t("onLogin");
25982
+ }, se = (Y) => Y === 3 || Y === 4 || Y === 5 || Y === 6, R = (Y) => {
25985
25983
  if (y.value) return;
25986
25984
  const Ce = () => {
25987
- if (!B.value || g.value !== $) {
25988
- q();
25985
+ if (!B.value || g.value !== Y) {
25986
+ z();
25989
25987
  return;
25990
25988
  }
25991
25989
  const Be = {
25992
- challengeId: $,
25990
+ challengeId: Y,
25993
25991
  usuarioId: Number(le.value),
25994
25992
  aplicacion: e.aplicacion
25995
25993
  };
25996
25994
  (e.apiBaseURLAuthNv ? fp(Be) : mp(Be)).then((Fe) => {
25997
25995
  var ze, bt;
25998
- const K = Number((bt = (ze = Fe == null ? void 0 : Fe.response) == null ? void 0 : ze.data) == null ? void 0 : bt.estado);
25999
- if (K === 2) {
26000
- q(), W(), G();
25996
+ const q = Number((bt = (ze = Fe == null ? void 0 : Fe.response) == null ? void 0 : ze.data) == null ? void 0 : bt.estado);
25997
+ if (q === 2) {
25998
+ z(), X(), G();
26001
25999
  return;
26002
26000
  }
26003
- if (se(K)) {
26004
- q(), W(), oe.error("La solicitud de inicio de sesión fue rechazada, expirada o ya utilizada."), Ne();
26001
+ if (se(q)) {
26002
+ z(), X(), oe.error("La solicitud de inicio de sesión fue rechazada, expirada o ya utilizada."), Ne();
26005
26003
  return;
26006
26004
  }
26007
26005
  y.value = globalThis.setTimeout(
@@ -26009,26 +26007,26 @@ function VB(t) {
26009
26007
  Math.max(f.value, 1) * 1e3
26010
26008
  );
26011
26009
  }).catch(() => {
26012
- q(), W(), Ne();
26010
+ z(), X(), Ne();
26013
26011
  });
26014
26012
  };
26015
26013
  y.value = globalThis.setTimeout(
26016
26014
  Ce,
26017
26015
  Math.max(f.value, 1) * 1e3
26018
26016
  );
26019
- }, ne = ($) => {
26017
+ }, ne = (Y) => {
26020
26018
  const { connect: Ce, subscribe: Be, isConfigured: pe, socket: Fe } = o;
26021
26019
  if (!pe()) return !1;
26022
- let K = !1;
26020
+ let q = !1;
26023
26021
  const ze = () => {
26024
- K || !B.value || g.value !== $ || (K = !0, W(), R($));
26022
+ q || !B.value || g.value !== Y || (q = !0, X(), R(Y));
26025
26023
  };
26026
26024
  Ce(), b = Be((nt) => {
26027
- if (nt && "type" in nt && nt.type === "PUSH_CHALLENGE_APPROVED" && nt.challengeId === $) {
26028
- q(), W(), G();
26025
+ if (nt && "type" in nt && nt.type === "PUSH_CHALLENGE_APPROVED" && nt.challengeId === Y) {
26026
+ z(), X(), G();
26029
26027
  return;
26030
26028
  }
26031
- nt && "type" in nt && nt.type === "PUSH_CHALLENGE_REJECTED" && (!("challengeId" in nt) || !nt.challengeId || nt.challengeId === $) && (q(), W(), oe.error("La solicitud de inicio de sesión fue rechazada."), Ne());
26029
+ nt && "type" in nt && nt.type === "PUSH_CHALLENGE_REJECTED" && (!("challengeId" in nt) || !nt.challengeId || nt.challengeId === Y) && (z(), X(), oe.error("La solicitud de inicio de sesión fue rechazada."), Ne());
26032
26030
  });
26033
26031
  const bt = Fe.value;
26034
26032
  if (bt) {
@@ -26039,47 +26037,47 @@ function VB(t) {
26039
26037
  }
26040
26038
  return globalThis.setTimeout(() => {
26041
26039
  var nt;
26042
- !B.value || g.value !== $ || (nt = Fe.value) != null && nt.connected || ze();
26040
+ !B.value || g.value !== Y || (nt = Fe.value) != null && nt.connected || ze();
26043
26041
  }, Math.max(f.value, 1) * 1e3), !0;
26044
26042
  }, te = () => {
26045
- const $ = {
26043
+ const Y = {
26046
26044
  usuarioId: Number(le.value),
26047
26045
  aplicacion: e.aplicacion,
26048
26046
  deviceId: ae(F.usuario)
26049
26047
  };
26050
- (e.apiBaseURLAuthNv ? dp($) : pp($)).then((Be) => {
26051
- var K;
26052
- const pe = ((K = Be == null ? void 0 : Be.response) == null ? void 0 : K.data) ?? {}, Fe = pe == null ? void 0 : pe.challengeId;
26048
+ (e.apiBaseURLAuthNv ? dp(Y) : pp(Y)).then((Be) => {
26049
+ var q;
26050
+ const pe = ((q = Be == null ? void 0 : Be.response) == null ? void 0 : q.data) ?? {}, Fe = pe == null ? void 0 : pe.challengeId;
26053
26051
  Fe && (o.setTemporaryToken(String((pe == null ? void 0 : pe.wsToken) ?? "")), g.value = Fe, f.value = Number((pe == null ? void 0 : pe.pollingIntervalSugerido) ?? 3), B.value = !0, ge(() => {
26054
26052
  var ze;
26055
26053
  (ze = s.value) == null || ze.reInit(Number((pe == null ? void 0 : pe.tiempoVigencia) ?? 60));
26056
26054
  }), !ne(Fe) && R(Fe));
26057
26055
  }).catch(() => {
26058
26056
  });
26059
- }, j = async ($, Ce, Be) => {
26057
+ }, j = async (Y, Ce, Be) => {
26060
26058
  n.setLoading(!0);
26061
26059
  try {
26062
- await e.onAutorizarQrNv($, Ce, Be), r.value = !1, t("onLogin");
26060
+ await e.onAutorizarQrNv(Y, Ce, Be), r.value = !1, t("onLogin");
26063
26061
  } catch (pe) {
26064
26062
  pe.status === 403 && (r.value = !0), Ft({ error: pe, setErrors: Q }), t("onError");
26065
26063
  } finally {
26066
26064
  n.setLoading(!1);
26067
26065
  }
26068
- }, fe = P(async ($) => {
26066
+ }, fe = P(async (Y) => {
26069
26067
  try {
26070
26068
  n.setLoading(!0), e.apiBaseURLAuthNv ? (await e.on2AuthLoginNv({
26071
- otp: Number($.code),
26072
- numeroDocumento: $.usuario,
26073
- deviceId: ae($.usuario),
26069
+ otp: Number(Y.code),
26070
+ numeroDocumento: Y.usuario,
26071
+ deviceId: ae(Y.usuario),
26074
26072
  aplicacion: e.aplicacion,
26075
- dispositivoConfianza: $.esDispositivoConfianza
26073
+ dispositivoConfianza: Y.esDispositivoConfianza
26076
26074
  }), t("onLogin")) : (await e.on2AuthLogin({
26077
- code: Number($.code),
26075
+ code: Number(Y.code),
26078
26076
  usuarioId: le.value,
26079
- aplicacion: $.aplicacion,
26080
- codigoDispositivo: ae($.usuario),
26081
- esDispositivoConfianza: $.esDispositivoConfianza,
26082
- usuario: $.usuario
26077
+ aplicacion: Y.aplicacion,
26078
+ codigoDispositivo: ae(Y.usuario),
26079
+ esDispositivoConfianza: Y.esDispositivoConfianza,
26080
+ usuario: Y.usuario
26083
26081
  // codigoDispositivo: values?.codigoDispositivo ? values?.codigoDispositivo : undefined,
26084
26082
  }), t("onLogin"));
26085
26083
  } catch (Ce) {
@@ -26088,17 +26086,17 @@ function VB(t) {
26088
26086
  n.setLoading(!1);
26089
26087
  }
26090
26088
  }), Ne = () => {
26091
- q(), W(), x.value = 0, X(), w.value = !1, B.value = !1, g.value = "", u.value = "", A.value = "";
26089
+ z(), X(), x.value = 0, $(), w.value = !1, B.value = !1, g.value = "", u.value = "", A.value = "";
26092
26090
  }, lt = () => {
26093
- q(), W(), B.value = !1;
26094
- }, ct = ($) => {
26095
- const Ce = he[$];
26091
+ z(), X(), B.value = !1;
26092
+ }, ct = (Y) => {
26093
+ const Ce = he[Y];
26096
26094
  return Ce ? d[Ce] : void 0;
26097
26095
  }, Lt = async () => {
26098
26096
  if (F.medio) {
26099
- const $ = Number(F.medio), Ce = ct($);
26097
+ const Y = Number(F.medio), Ce = ct(Y);
26100
26098
  try {
26101
- Ce === !1 ? e.apiBaseURLAuthNv ? await Ze({ medio: $ }) : await pt({ medio: $ }) : e.apiBaseURLAuthNv ? await ee({ medio: $ }) : await I({ medio: $ });
26099
+ Ce === !1 ? e.apiBaseURLAuthNv ? await Ze({ medio: Y }) : await pt({ medio: Y }) : e.apiBaseURLAuthNv ? await ee({ medio: Y }) : await I({ medio: Y });
26102
26100
  } catch (Be) {
26103
26101
  throw Be;
26104
26102
  }
@@ -26116,7 +26114,7 @@ function VB(t) {
26116
26114
  steps: E,
26117
26115
  currentStep: x,
26118
26116
  usuarioId: le,
26119
- esDispositivoConfianza: z,
26117
+ esDispositivoConfianza: K,
26120
26118
  errors: re,
26121
26119
  iconColor: ln,
26122
26120
  onAutorizarNv: j,
@@ -26128,11 +26126,11 @@ function VB(t) {
26128
26126
  loginCiudadania: async () => {
26129
26127
  n.setLoading(!0);
26130
26128
  try {
26131
- const $ = await a();
26132
- $ && (await e.onLoginCiudadania($.data), t("onLogin"));
26133
- } catch ($) {
26129
+ const Y = await a();
26130
+ Y && (await e.onLoginCiudadania(Y.data), t("onLogin"));
26131
+ } catch (Y) {
26134
26132
  oe.error(
26135
- `<p class="toast-title">Error</p><p class="toast-description">${($ == null ? void 0 : $.message) || "Ha ocurrido un error al intentar logearse con CD"}</p>`,
26133
+ `<p class="toast-title">Error</p><p class="toast-description">${(Y == null ? void 0 : Y.message) || "Ha ocurrido un error al intentar logearse con CD"}</p>`,
26136
26134
  {
26137
26135
  autoClose: 5e3,
26138
26136
  hideProgressBar: !0,
@@ -26335,14 +26333,14 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26335
26333
  if (!i) {
26336
26334
  i = !0;
26337
26335
  try {
26338
- const Y = await rp(n.aplicacion, n.deviceId);
26339
- if (!Y) throw new Error("Error al cargar QR");
26340
- const { qrImage: W, expiresIn: G } = Y;
26341
- r.value = `${W}`, l++, l < 5 ? setTimeout(() => {
26336
+ const W = await rp(n.aplicacion, n.deviceId);
26337
+ if (!W) throw new Error("Error al cargar QR");
26338
+ const { qrImage: X, expiresIn: G } = W;
26339
+ r.value = `${X}`, l++, l < 5 ? setTimeout(() => {
26342
26340
  A();
26343
26341
  }, G * 1e3) : u.value = !0;
26344
- } catch (Y) {
26345
- console.error("Error cargando QR:", Y);
26342
+ } catch (W) {
26343
+ console.error("Error cargando QR:", W);
26346
26344
  } finally {
26347
26345
  i = !1;
26348
26346
  }
@@ -26352,8 +26350,8 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26352
26350
  Ge(() => {
26353
26351
  if (!a.value && n.apiBaseURLAuthNv) {
26354
26352
  A();
26355
- const { connect: Y, subscribe: W, isConfigured: G } = Jc();
26356
- G() && (Y(), d = W(async (se) => {
26353
+ const { connect: W, subscribe: X, isConfigured: G } = Jc();
26354
+ G() && (W(), d = X(async (se) => {
26357
26355
  (se == null ? void 0 : se.type) !== "PUSH_CHALLENGE_APPROVED" && se != null && se.token && (se == null ? void 0 : se.sessionId) != null && (se == null ? void 0 : se.usuarioId) != null && (d && d(), d = null, await re(se.token, se.sessionId, se.usuarioId));
26358
26356
  }));
26359
26357
  }
@@ -26368,13 +26366,13 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26368
26366
  u.value = !1, l = 0, A();
26369
26367
  }, v = M(!1), C = M(null), w = () => {
26370
26368
  C.value = null;
26371
- }, B = async (Y) => {
26369
+ }, B = async (W) => {
26372
26370
  if (!v.value) {
26373
26371
  v.value = !0;
26374
26372
  try {
26375
- C.value = Y;
26376
- const W = f(Y);
26377
- Ze.value = "", I.value = "", W === !1 ? (n.apiBaseURLAuthNv ? await Le({ medio: Y }) : await Ie({ medio: Y }), we.value = !0) : (n.apiBaseURLAuthNv ? await wt({ medio: Y }) : await Oe({ medio: Y }), we.value = !1);
26373
+ C.value = W;
26374
+ const X = f(W);
26375
+ Ze.value = "", I.value = "", X === !1 ? (n.apiBaseURLAuthNv ? await Le({ medio: W }) : await Ie({ medio: W }), we.value = !0) : (n.apiBaseURLAuthNv ? await wt({ medio: W }) : await Oe({ medio: W }), we.value = !1);
26378
26376
  } finally {
26379
26377
  v.value = !1;
26380
26378
  }
@@ -26386,9 +26384,9 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26386
26384
  [Ae.ROMA]: "verificadoRoma",
26387
26385
  [Ae.SMS]: "verificadoSms"
26388
26386
  };
26389
- function f(Y) {
26390
- const W = g[Y];
26391
- return W ? z[W] : void 0;
26387
+ function f(W) {
26388
+ const X = g[W];
26389
+ return X ? K[X] : void 0;
26392
26390
  }
26393
26391
  const {
26394
26392
  esDispositivoConfianza: y,
@@ -26402,10 +26400,10 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26402
26400
  on2AuthLogin: F,
26403
26401
  onAutorizarNv: re,
26404
26402
  goLoginPage: Q,
26405
- dejarFlujoPushParaOtrosMedios: X,
26403
+ dejarFlujoPushParaOtrosMedios: $,
26406
26404
  onEnviarMensaje: ce,
26407
26405
  loginCiudadania: le,
26408
- mediosVerificados: z,
26406
+ mediosVerificados: K,
26409
26407
  mediosDisponibles: ae,
26410
26408
  mostrarMedios: he,
26411
26409
  mostrarBotonOpciones: De,
@@ -26436,12 +26434,12 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26436
26434
  label: "SMS",
26437
26435
  icon: Ki
26438
26436
  }
26439
- }, q = N(() => ae.value.filter((Y) => Y in ue).map((Y) => ({
26440
- id: Y,
26441
- label: ue[Y].label,
26442
- icon: ue[Y].icon
26437
+ }, z = N(() => ae.value.filter((W) => W in ue).map((W) => ({
26438
+ id: W,
26439
+ label: ue[W].label,
26440
+ icon: ue[W].icon
26443
26441
  })));
26444
- return (Y, W) => (D(), H(tt, null, [
26442
+ return (W, X) => (D(), H(tt, null, [
26445
26443
  k(Gu),
26446
26444
  m("div", zB, [
26447
26445
  k(Pi, {
@@ -26507,21 +26505,21 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26507
26505
  m("button", {
26508
26506
  title: "Iniciar sesión",
26509
26507
  class: "fge-auth-primary-button w-full",
26510
- onClick: W[0] || (W[0] = //@ts-ignore
26508
+ onClick: X[0] || (X[0] = //@ts-ignore
26511
26509
  (...G) => c(P) && c(P)(...G))
26512
26510
  }, pk),
26513
26511
  m("div", mk, [
26514
26512
  m("button", {
26515
26513
  class: "fge-link-secondary-button",
26516
26514
  title: "Recuperar contraseña",
26517
- onClick: W[1] || (W[1] = //@ts-ignore
26515
+ onClick: X[1] || (X[1] = //@ts-ignore
26518
26516
  (...G) => c(n).goRecuperarCont && c(n).goRecuperarCont(...G))
26519
26517
  }, vk),
26520
26518
  !c(n).apiBaseURLAuthNv && c(n).isRegister ? (D(), H("button", {
26521
26519
  key: 0,
26522
26520
  class: "fge-link-primary-button",
26523
26521
  title: "Registrarse",
26524
- onClick: W[2] || (W[2] = //@ts-ignore
26522
+ onClick: X[2] || (X[2] = //@ts-ignore
26525
26523
  (...G) => c(n).goRegistrarPage && c(n).goRegistrarPage(...G))
26526
26524
  }, wk)) : me("", !0)
26527
26525
  ]),
@@ -26529,7 +26527,7 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26529
26527
  m("button", {
26530
26528
  title: "Iniciar sesión con ciudadanía digital",
26531
26529
  class: "fge-green-button",
26532
- onClick: W[3] || (W[3] = //@ts-ignore
26530
+ onClick: X[3] || (X[3] = //@ts-ignore
26533
26531
  (...G) => c(le) && c(le)(...G))
26534
26532
  }, Ek)
26535
26533
  ])
@@ -26548,9 +26546,9 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26548
26546
  showCode: !0,
26549
26547
  "reenviar-mensaje": c(ee) ? c(ce) : void 0,
26550
26548
  mostrarReenviar: c(ee),
26551
- isTelegram: C.value === c(Ae).TELEGRAM && !c(z).verificadoTelegram,
26549
+ isTelegram: C.value === c(Ae).TELEGRAM && !c(K).verificadoTelegram,
26552
26550
  refCounter: c(b),
26553
- "onUpdate:refCounter": W[6] || (W[6] = (G) => vt(b) ? b.value = G : null),
26551
+ "onUpdate:refCounter": X[6] || (X[6] = (G) => vt(b) ? b.value = G : null),
26554
26552
  onFinishCount: h
26555
26553
  }, {
26556
26554
  inputs: O(() => [
@@ -26573,7 +26571,7 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26573
26571
  }
26574
26572
  }), {
26575
26573
  default: O(() => [
26576
- (D(!0), H(tt, null, zt(q.value, (se) => (D(), Z(c(Sr), {
26574
+ (D(!0), H(tt, null, zt(z.value, (se) => (D(), Z(c(Sr), {
26577
26575
  id: `medio-${se.id}`,
26578
26576
  key: se.id,
26579
26577
  class: "radio-button",
@@ -26609,8 +26607,8 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26609
26607
  m("button", {
26610
26608
  class: "fge-link-primary-button",
26611
26609
  title: "Seleccionar",
26612
- onClick: W[4] || (W[4] = (G) => {
26613
- c(X)(), he.value = !0;
26610
+ onClick: X[4] || (X[4] = (G) => {
26611
+ c($)(), he.value = !0;
26614
26612
  })
26615
26613
  }, xk)
26616
26614
  ]))
@@ -26623,7 +26621,7 @@ const j3 = { render: KB }, ht = (t) => (Do("data-v-d5010470"), t = t(), To(), t)
26623
26621
  k(c(h8), {
26624
26622
  class: "checkbox-box",
26625
26623
  checked: c(y),
26626
- "onUpdate:checked": W[5] || (W[5] = (G) => vt(y) ? y.value = G : null)
26624
+ "onUpdate:checked": X[5] || (X[5] = (G) => vt(y) ? y.value = G : null)
26627
26625
  }, {
26628
26626
  default: O(() => [
26629
26627
  k(c(p8), null, {
@@ -26732,53 +26730,53 @@ function $k() {
26732
26730
  [Ae.EMAIL]: "verificadoEmail",
26733
26731
  [Ae.ROMA]: "verificadoRoma",
26734
26732
  [Ae.SMS]: "verificadoSms"
26735
- }, X = (q) => ({
26733
+ }, $ = (z) => ({
26736
26734
  1: Ae.ROMA,
26737
26735
  2: Ae.TELEGRAM,
26738
26736
  3: Ae.EMAIL,
26739
26737
  4: Ae.WHATSAPP,
26740
26738
  5: Ae.SMS
26741
- })[q] ?? q, ce = (q) => ({
26739
+ })[z] ?? z, ce = (z) => ({
26742
26740
  [Ae.ROMA]: 1,
26743
26741
  [Ae.TELEGRAM]: 2,
26744
26742
  [Ae.EMAIL]: 3,
26745
26743
  [Ae.WHATSAPP]: 4,
26746
26744
  [Ae.SMS]: 5
26747
- })[q] ?? q, le = (q, Y) => {
26748
- const W = Q[q];
26749
- W && (s[W] = Y);
26750
- }, z = () => {
26751
- Object.keys(s).forEach((q) => {
26752
- s[q] = !1;
26745
+ })[z] ?? z, le = (z, W) => {
26746
+ const X = Q[z];
26747
+ X && (s[X] = W);
26748
+ }, K = () => {
26749
+ Object.keys(s).forEach((z) => {
26750
+ s[z] = !1;
26753
26751
  });
26754
- }, ae = (q, Y) => {
26755
- z();
26756
- const W = q.map((G) => Number(G == null ? void 0 : G.medio)).filter((G) => !Number.isNaN(G)).map((G) => X(G));
26757
- l.value = [...new Set(W)], q.forEach((G) => {
26752
+ }, ae = (z, W) => {
26753
+ K();
26754
+ const X = z.map((G) => Number(G == null ? void 0 : G.medio)).filter((G) => !Number.isNaN(G)).map((G) => $(G));
26755
+ l.value = [...new Set(X)], z.forEach((G) => {
26758
26756
  const se = Number(G == null ? void 0 : G.medio);
26759
26757
  if (Number.isNaN(se)) return;
26760
- const R = X(se);
26758
+ const R = $(se);
26761
26759
  le(R, !!(G != null && G.verificado));
26762
26760
  });
26763
- }, he = (q) => {
26764
- const Y = Q[q];
26765
- return Y ? s[Y] : void 0;
26761
+ }, he = (z) => {
26762
+ const W = Q[z];
26763
+ return W ? s[W] : void 0;
26766
26764
  }, De = async () => {
26767
26765
  if (!x.medio) return;
26768
- const q = Number(x.medio), Y = he(q);
26766
+ const z = Number(x.medio), W = he(z);
26769
26767
  try {
26770
- e.setLoading(!0), Y === !1 ? (t.apiBaseURLAuthNv ? await pt({ medio: q }) : await Ze({ medio: q }), A.value = !0) : (t.apiBaseURLAuthNv ? await Oe({ medio: q, login: !1 }) : await Le({ medio: q, login: !1 }), A.value = !1), d.value = !0;
26771
- } catch (W) {
26772
- Ft({ error: W, setErrors: P });
26768
+ e.setLoading(!0), W === !1 ? (t.apiBaseURLAuthNv ? await pt({ medio: z }) : await Ze({ medio: z }), A.value = !0) : (t.apiBaseURLAuthNv ? await Oe({ medio: z, login: !1 }) : await Le({ medio: z, login: !1 }), A.value = !1), d.value = !0;
26769
+ } catch (X) {
26770
+ Ft({ error: X, setErrors: P });
26773
26771
  } finally {
26774
26772
  e.setLoading(!1);
26775
26773
  }
26776
26774
  }, Ie = L(async () => {
26777
- var q, Y, W, G, se, R, ne;
26775
+ var z, W, X, G, se, R, ne;
26778
26776
  try {
26779
26777
  e.setLoading(!0);
26780
26778
  const te = await wt();
26781
- n.value = n.value + 1, d.value = !1, w.value = (q = te.response) == null ? void 0 : q.contacto, h.value = ((W = (Y = te.response) == null ? void 0 : Y.data) == null ? void 0 : W.usuarioId) ?? 0, v.value = ((se = (G = te == null ? void 0 : te.response) == null ? void 0 : G.data) == null ? void 0 : se.mediosVerificados) || [], ae(v.value, !0), B.value = te.message, ge(() => {
26779
+ n.value = n.value + 1, d.value = !1, w.value = (z = te.response) == null ? void 0 : z.contacto, h.value = ((X = (W = te.response) == null ? void 0 : W.data) == null ? void 0 : X.usuarioId) ?? 0, v.value = ((se = (G = te == null ? void 0 : te.response) == null ? void 0 : G.data) == null ? void 0 : se.mediosVerificados) || [], ae(v.value, !0), B.value = te.message, ge(() => {
26782
26780
  var fe, Ne, lt;
26783
26781
  (lt = C.value) == null || lt.reInit(((Ne = (fe = te == null ? void 0 : te.response) == null ? void 0 : fe.data) == null ? void 0 : Ne.tiempoVigencia) ?? 2);
26784
26782
  });
@@ -26792,45 +26790,45 @@ function $k() {
26792
26790
  e.setLoading(!1);
26793
26791
  }
26794
26792
  }), Oe = async ({
26795
- medio: q,
26796
- login: Y = !0
26793
+ medio: z,
26794
+ login: W = !0
26797
26795
  }) => {
26798
- var W, G, se, R, ne, te;
26796
+ var X, G, se, R, ne, te;
26799
26797
  try {
26800
26798
  e.setLoading(!0);
26801
26799
  const j = await R2({
26802
- medio: ce(Number(q)),
26800
+ medio: ce(Number(z)),
26803
26801
  usuarioId: h.value,
26804
26802
  deviceId: t.deviceId,
26805
- isLogin: Y,
26803
+ isLogin: W,
26806
26804
  aplicacion: t.aplicacion
26807
26805
  });
26808
- B.value = j.message, u.value = !1, i.value = !1, d.value = !0, (G = (W = j == null ? void 0 : j.response) == null ? void 0 : W.data) != null && G.mensajeServicio && (g.value = j.response.data.mensajeServicio), (R = (se = j == null ? void 0 : j.response) == null ? void 0 : se.data) != null && R.url && (f.value = j.response.data.url);
26806
+ B.value = j.message, u.value = !1, i.value = !1, d.value = !0, (G = (X = j == null ? void 0 : j.response) == null ? void 0 : X.data) != null && G.mensajeServicio && (g.value = j.response.data.mensajeServicio), (R = (se = j == null ? void 0 : j.response) == null ? void 0 : se.data) != null && R.url && (f.value = j.response.data.url);
26809
26807
  let fe = 120;
26810
26808
  (te = (ne = j == null ? void 0 : j.response) == null ? void 0 : ne.data) != null && te.tiempoVigencia ? fe = j.response.data.tiempoVigencia : (j == null ? void 0 : j.minutos) !== void 0 && (j == null ? void 0 : j.minutos) !== null && (fe = j.minutos > 60 ? j.minutos : j.minutos * 60, fe > 600 && (fe = 120)), ge(() => {
26811
26809
  var Ne;
26812
26810
  (Ne = C.value) == null || Ne.reInit(fe);
26813
26811
  });
26814
26812
  } catch (j) {
26815
- oe.error(`Error al enviar código por ${q}: ${(j == null ? void 0 : j.message) || "intente nuevamente"}`);
26813
+ oe.error(`Error al enviar código por ${z}: ${(j == null ? void 0 : j.message) || "intente nuevamente"}`);
26816
26814
  } finally {
26817
26815
  e.setLoading(!1);
26818
26816
  }
26819
26817
  }, Le = async ({
26820
- medio: q,
26821
- login: Y = !0
26818
+ medio: z,
26819
+ login: W = !0
26822
26820
  }) => {
26823
- var W, G, se, R, ne, te;
26821
+ var X, G, se, R, ne, te;
26824
26822
  try {
26825
26823
  e.setLoading(!0);
26826
26824
  const j = await L2({
26827
- medio: Number(q),
26825
+ medio: Number(z),
26828
26826
  usuarioId: h.value,
26829
26827
  deviceId: t.deviceId,
26830
- isLogin: Y,
26828
+ isLogin: W,
26831
26829
  aplicacion: t.aplicacion
26832
26830
  });
26833
- B.value = j.message, u.value = !1, i.value = !1, d.value = !0, (G = (W = j == null ? void 0 : j.response) == null ? void 0 : W.data) != null && G.mensajeServicio && (g.value = j.response.data.mensajeServicio), (R = (se = j == null ? void 0 : j.response) == null ? void 0 : se.data) != null && R.url && (f.value = j.response.data.url);
26831
+ B.value = j.message, u.value = !1, i.value = !1, d.value = !0, (G = (X = j == null ? void 0 : j.response) == null ? void 0 : X.data) != null && G.mensajeServicio && (g.value = j.response.data.mensajeServicio), (R = (se = j == null ? void 0 : j.response) == null ? void 0 : se.data) != null && R.url && (f.value = j.response.data.url);
26834
26832
  let fe = 120;
26835
26833
  (te = (ne = j == null ? void 0 : j.response) == null ? void 0 : ne.data) != null && te.tiempoVigencia ? fe = j.response.data.tiempoVigencia : (j == null ? void 0 : j.minutos) !== void 0 && (j == null ? void 0 : j.minutos) !== null && (fe = j.minutos > 60 ? j.minutos : j.minutos * 60, fe > 600 && (fe = 120)), ge(() => {
26836
26834
  var Ne;
@@ -26845,65 +26843,65 @@ function $k() {
26845
26843
  deviceId: t.deviceId,
26846
26844
  aplicacion: t.aplicacion,
26847
26845
  numeroDocumento: x.usuario
26848
- }), we = L(async (q) => {
26846
+ }), we = L(async (z) => {
26849
26847
  try {
26850
26848
  e.setLoading(!0);
26851
- const Y = await jk(
26852
- q.usuario,
26849
+ const W = await jk(
26850
+ z.usuario,
26853
26851
  t.aplicacion,
26854
- Number(q.code),
26852
+ Number(z.code),
26855
26853
  !1
26856
- ).then((W) => W.response);
26857
- o.value = Y == null ? void 0 : Y.data.usuarioId, n.value = n.value + 1;
26858
- } catch (Y) {
26859
- Ft({ error: Y, setErrors: P });
26854
+ ).then((X) => X.response);
26855
+ o.value = W == null ? void 0 : W.data.usuarioId, n.value = n.value + 1;
26856
+ } catch (W) {
26857
+ Ft({ error: W, setErrors: P });
26860
26858
  } finally {
26861
26859
  e.setLoading(!1);
26862
26860
  }
26863
- }), Ee = L(async (q) => {
26861
+ }), Ee = L(async (z) => {
26864
26862
  try {
26865
26863
  e.setLoading(!0);
26866
- const Y = p.value ?? Number(q.medio ?? 0);
26867
- if (!Y) {
26864
+ const W = p.value ?? Number(z.medio ?? 0);
26865
+ if (!W) {
26868
26866
  oe.error("Debe seleccionar un medio de verificación");
26869
26867
  return;
26870
26868
  }
26871
26869
  if (t.apiBaseURLAuthNv) {
26872
- const W = await x2({
26870
+ const X = await x2({
26873
26871
  usuarioId: h.value,
26874
- medio: ce(Y),
26875
- codigo: q.code,
26872
+ medio: ce(W),
26873
+ codigo: z.code,
26876
26874
  aplicacion: t.aplicacion,
26877
26875
  deviceId: t.deviceId,
26878
26876
  isLogin: !1
26879
26877
  }).then((G) => G.response);
26880
- o.value = W == null ? void 0 : W.data.usuarioId;
26878
+ o.value = X == null ? void 0 : X.data.usuarioId;
26881
26879
  } else {
26882
- const W = await ip({
26880
+ const X = await ip({
26883
26881
  usuarioId: h.value,
26884
- medio: Y,
26885
- codigo: q.code,
26882
+ medio: W,
26883
+ codigo: z.code,
26886
26884
  aplicacion: t.aplicacion,
26887
26885
  codigoDispositivo: t.deviceId,
26888
26886
  isLogin: !1
26889
26887
  }).then((G) => G.response);
26890
- o.value = W == null ? void 0 : W.data.usuarioId;
26888
+ o.value = X == null ? void 0 : X.data.usuarioId;
26891
26889
  }
26892
26890
  n.value = n.value + 1;
26893
- } catch (Y) {
26894
- Ft({ error: Y, setErrors: P });
26891
+ } catch (W) {
26892
+ Ft({ error: W, setErrors: P });
26895
26893
  } finally {
26896
26894
  e.setLoading(!1);
26897
26895
  }
26898
- }), pt = async ({ medio: q }) => {
26899
- var Y, W, G, se;
26896
+ }), pt = async ({ medio: z }) => {
26897
+ var W, X, G, se;
26900
26898
  try {
26901
- e.setLoading(!0), p.value = q;
26899
+ e.setLoading(!0), p.value = z;
26902
26900
  const R = await P2({
26903
- medio: ce(Number(q)),
26901
+ medio: ce(Number(z)),
26904
26902
  usuarioId: h.value
26905
- }), ne = ((W = (Y = R == null ? void 0 : R.response) == null ? void 0 : Y.data) == null ? void 0 : W.medioActualizado) === !0;
26906
- B.value = R.message, u.value = !1, i.value = !1, d.value = !0, g.value = R.response.data.mensajeServicio ?? "", f.value = R.response.data.url ?? "", q === Ae.TELEGRAM && !ne && ge(() => {
26903
+ }), ne = ((X = (W = R == null ? void 0 : R.response) == null ? void 0 : W.data) == null ? void 0 : X.medioActualizado) === !0;
26904
+ B.value = R.message, u.value = !1, i.value = !1, d.value = !0, g.value = R.response.data.mensajeServicio ?? "", f.value = R.response.data.url ?? "", z === Ae.TELEGRAM && !ne && ge(() => {
26907
26905
  y.value = !0;
26908
26906
  });
26909
26907
  let te = 120;
@@ -26912,19 +26910,19 @@ function $k() {
26912
26910
  (j = C.value) == null || j.reInit(te);
26913
26911
  });
26914
26912
  } catch (R) {
26915
- oe.error(`Error al enviar código por ${q}: ${(R == null ? void 0 : R.message) || "intente nuevamente"}`);
26913
+ oe.error(`Error al enviar código por ${z}: ${(R == null ? void 0 : R.message) || "intente nuevamente"}`);
26916
26914
  } finally {
26917
26915
  e.setLoading(!1);
26918
26916
  }
26919
- }, Ze = async ({ medio: q }) => {
26920
- var Y, W, G, se;
26917
+ }, Ze = async ({ medio: z }) => {
26918
+ var W, X, G, se;
26921
26919
  try {
26922
- e.setLoading(!0), p.value = q;
26920
+ e.setLoading(!0), p.value = z;
26923
26921
  const R = await sp({
26924
- medio: Number(q),
26922
+ medio: Number(z),
26925
26923
  usuarioId: h.value
26926
- }), ne = ((W = (Y = R == null ? void 0 : R.response) == null ? void 0 : Y.data) == null ? void 0 : W.medioActualizado) === !0;
26927
- B.value = R.message, u.value = !1, i.value = !1, d.value = !0, q === Ae.TELEGRAM && !ne && ge(() => {
26924
+ }), ne = ((X = (W = R == null ? void 0 : R.response) == null ? void 0 : W.data) == null ? void 0 : X.medioActualizado) === !0;
26925
+ B.value = R.message, u.value = !1, i.value = !1, d.value = !0, z === Ae.TELEGRAM && !ne && ge(() => {
26928
26926
  y.value = !0;
26929
26927
  });
26930
26928
  let te = 120;
@@ -26937,24 +26935,24 @@ function $k() {
26937
26935
  } finally {
26938
26936
  e.setLoading(!1);
26939
26937
  }
26940
- }, I = L(async (q) => {
26938
+ }, I = L(async (z) => {
26941
26939
  try {
26942
26940
  e.setLoading(!0);
26943
- let Y;
26944
- o.value && (t.apiBaseURLAuthNv ? Y = await Wk(
26941
+ let W;
26942
+ o.value && (t.apiBaseURLAuthNv ? W = await Wk(
26945
26943
  o.value,
26946
26944
  t.aplicacion,
26947
- Number(q.code),
26948
- q.password,
26949
- q.repetirPassword
26950
- ) : Y = await Jk(
26945
+ Number(z.code),
26946
+ z.password,
26947
+ z.repetirPassword
26948
+ ) : W = await Jk(
26951
26949
  o.value,
26952
26950
  t.aplicacion,
26953
- Number(q.code),
26954
- q.password,
26955
- q.repetirPassword
26951
+ Number(z.code),
26952
+ z.password,
26953
+ z.repetirPassword
26956
26954
  )), oe.success(
26957
- `<p class="toast-title">Operación exitosa</p><p class="toast-description"> ${Y == null ? void 0 : Y.message}</p>`,
26955
+ `<p class="toast-title">Operación exitosa</p><p class="toast-description"> ${W == null ? void 0 : W.message}</p>`,
26958
26956
  {
26959
26957
  autoClose: 5e3,
26960
26958
  hideProgressBar: !0,
@@ -26963,8 +26961,8 @@ function $k() {
26963
26961
  dangerouslyHTMLString: !0
26964
26962
  }
26965
26963
  ), e.setLoading(!1), t.goLoginPage();
26966
- } catch (Y) {
26967
- Ft({ error: Y, setErrors: P }), e.setLoading(!1);
26964
+ } catch (W) {
26965
+ Ft({ error: W, setErrors: P }), e.setLoading(!1);
26968
26966
  }
26969
26967
  }), ee = () => {
26970
26968
  t.goLoginPage();
@@ -27084,17 +27082,17 @@ const Yk = { class: "fge-right-container" }, Gk = { class: "auth-form-container"
27084
27082
  id: De,
27085
27083
  label: re[De].label,
27086
27084
  icon: re[De].icon
27087
- }))), X = M(!1), ce = M(null), le = () => {
27085
+ }))), $ = M(!1), ce = M(null), le = () => {
27088
27086
  w.value = !0;
27089
- }, z = async (De) => {
27090
- if (!X.value) {
27091
- X.value = !0;
27087
+ }, K = async (De) => {
27088
+ if (!$.value) {
27089
+ $.value = !0;
27092
27090
  try {
27093
27091
  ce.value = De;
27094
27092
  const Ie = he(De);
27095
27093
  B.value = "", g.value = "", Ie === !1 ? (e.apiBaseURLAuthNv ? await E({ medio: De }) : await L({ medio: De }), f.value = !0) : (e.apiBaseURLAuthNv ? await b({ medio: De, login: !1 }) : await S({ medio: De, login: !1 }), f.value = !1);
27096
27094
  } finally {
27097
- X.value = !1;
27095
+ $.value = !1;
27098
27096
  }
27099
27097
  }
27100
27098
  }, ae = {
@@ -27181,7 +27179,7 @@ const Yk = { class: "fge-right-container" }, Gk = { class: "auth-form-container"
27181
27179
  "model-value": Oe.value,
27182
27180
  class: "radio-button-group",
27183
27181
  "onUpdate:modelValue": (Le) => {
27184
- Oe.onChange(Le), z(Number(Le));
27182
+ Oe.onChange(Le), K(Number(Le));
27185
27183
  }
27186
27184
  }), {
27187
27185
  default: O(() => [
@@ -27594,7 +27592,7 @@ function A1() {
27594
27592
  verificadoTelegram: !1,
27595
27593
  verificadoWhatsapp: !1,
27596
27594
  verificadoSms: !1
27597
- }), { values: X, handleSubmit: ce, errors: le, setErrors: z, setFieldValue: ae, validateField: he, setValues: De } = ii({
27595
+ }), { values: $, handleSubmit: ce, errors: le, setErrors: K, setFieldValue: ae, validateField: he, setValues: De } = ii({
27598
27596
  validationSchema: re,
27599
27597
  keepValuesOnUnmount: !0
27600
27598
  });
@@ -27607,20 +27605,20 @@ function A1() {
27607
27605
  medio: ((fe = o.userState.user) == null ? void 0 : fe.notificacionDefault) || void 0
27608
27606
  }), o.userState.user && (Q.verificadoWhatsapp = o.userState.user.whatsapp === 1, Q.verificadoTelegram = o.userState.user.telegram === 1, Q.verificadoEmail = o.userState.user.emailValidado === 1, Q.verificadoSms = o.userState.user.sms === 1);
27609
27607
  }), Ve(
27610
- () => X.celular,
27608
+ () => $.celular,
27611
27609
  (R) => {
27612
27610
  var ne, te;
27613
27611
  if (R !== ((te = (ne = o.userState.user) == null ? void 0 : ne.celular) == null ? void 0 : te.toString()) && (Q.verificadoTelegram || Q.verificadoWhatsapp || Q.verificadoSms)) {
27614
27612
  Q.verificadoTelegram = !1, Q.verificadoWhatsapp = !1, Q.verificadoSms = !1;
27615
- const j = X.medio;
27613
+ const j = $.medio;
27616
27614
  (j === "whatsapp" || j === "telegram" || j === "sms") && ae("medio", void 0);
27617
27615
  }
27618
27616
  }
27619
27617
  ), Ve(
27620
- () => X.email,
27618
+ () => $.email,
27621
27619
  (R) => {
27622
27620
  var ne;
27623
- R !== ((ne = o.userState.user) == null ? void 0 : ne.email) && Q.verificadoEmail && (Q.verificadoEmail = !1, X.medio === "email" && ae("medio", void 0));
27621
+ R !== ((ne = o.userState.user) == null ? void 0 : ne.email) && Q.verificadoEmail && (Q.verificadoEmail = !1, $.medio === "email" && ae("medio", void 0));
27624
27622
  }
27625
27623
  ), Ve(
27626
27624
  () => o.userState.user,
@@ -27636,12 +27634,12 @@ function A1() {
27636
27634
  const Ne = (te = (ne = o.userState.user) == null ? void 0 : ne.celular) == null ? void 0 : te.toString(), lt = (j = o.userState.user) == null ? void 0 : j.email, ct = (fe = o.userState.user) == null ? void 0 : fe.notificacionDefault, Lt = R.celular && R.celular !== Ne, ln = R.email && R.email !== lt;
27637
27635
  let cn = R.medio || void 0;
27638
27636
  Lt && (ct === "whatsapp" || ct === "telegram" || ct === "sms") && (cn = void 0), ln && ct === "email" && (cn = void 0);
27639
- const $ = {
27637
+ const Y = {
27640
27638
  notificacionDefault: cn,
27641
27639
  direccion: R.direccion || void 0
27642
27640
  };
27643
- Lt && ($.celular = R.celular), ln && ($.email = R.email);
27644
- const Ce = await ED($), Be = {
27641
+ Lt && (Y.celular = R.celular), ln && (Y.email = R.email);
27642
+ const Ce = await ED(Y), Be = {
27645
27643
  notificacionDefault: cn,
27646
27644
  direccion: R.direccion
27647
27645
  };
@@ -27678,7 +27676,7 @@ function A1() {
27678
27676
  return;
27679
27677
  }
27680
27678
  const ne = await wD({
27681
- code_confirmacion: X.codigo,
27679
+ code_confirmacion: $.codigo,
27682
27680
  medio: l.value
27683
27681
  });
27684
27682
  if (!ne) {
@@ -27697,8 +27695,8 @@ function A1() {
27697
27695
  ), l.value === "email" ? Q.verificadoEmail = !0 : l.value === "whatsapp" ? Q.verificadoWhatsapp = !0 : l.value === "telegram" ? Q.verificadoTelegram = !0 : l.value === "sms" && (Q.verificadoSms = !0);
27698
27696
  const te = l.value;
27699
27697
  o.updateUserData({
27700
- email: X.email || void 0,
27701
- celular: X.celular,
27698
+ email: $.email || void 0,
27699
+ celular: $.celular,
27702
27700
  whatsapp: Q.verificadoWhatsapp ? 1 : void 0,
27703
27701
  telegram: Q.verificadoTelegram ? 1 : void 0,
27704
27702
  sms: Q.verificadoSms ? 1 : void 0,
@@ -27706,12 +27704,12 @@ function A1() {
27706
27704
  notificacionDefault: te
27707
27705
  }), ae("medio", te), l.value === "whatsapp" && (b.value = !1), l.value === "telegram" && (S.value = !1), l.value === "email" && (E.value = !1), l.value === "sms" && (L.value = !1), ue(), ae("codigo", void 0), l.value = void 0, i.value = null;
27708
27706
  } catch (R) {
27709
- Ft({ error: R, setErrors: z });
27707
+ Ft({ error: R, setErrors: K });
27710
27708
  } finally {
27711
27709
  y.value = !1;
27712
27710
  }
27713
27711
  }, Le = async ({ medio: R, contacto: ne }) => {
27714
- var ct, Lt, ln, cn, $, Ce, Be, pe, Fe, K, ze, bt, nt;
27712
+ var ct, Lt, ln, cn, Y, Ce, Be, pe, Fe, q, ze, bt, nt;
27715
27713
  const te = R === "email";
27716
27714
  if (te) {
27717
27715
  const { valid: Ue } = await he("email");
@@ -27727,7 +27725,7 @@ function A1() {
27727
27725
  if (lt > 0 && !j) {
27728
27726
  l.value = R, i.value = ne, x.value && (B.value = x.value), ge(() => {
27729
27727
  s.value && s.value.reInit(lt);
27730
- }), q();
27728
+ }), z();
27731
27729
  return;
27732
27730
  }
27733
27731
  fe && (b.value = !0), j && (S.value = !0), te && (E.value = !0), Ne && (L.value = !0);
@@ -27744,7 +27742,7 @@ function A1() {
27744
27742
  o.updateUserData({
27745
27743
  whatsapp: R === "whatsapp" ? 1 : (ln = o.userState.user) == null ? void 0 : ln.whatsapp,
27746
27744
  telegram: R === "telegram" ? 1 : (cn = o.userState.user) == null ? void 0 : cn.telegram,
27747
- sms: R === "sms" ? 1 : ($ = o.userState.user) == null ? void 0 : $.sms,
27745
+ sms: R === "sms" ? 1 : (Y = o.userState.user) == null ? void 0 : Y.sms,
27748
27746
  emailValidado: R === "email" ? 1 : (Ce = o.userState.user) == null ? void 0 : Ce.emailValidado,
27749
27747
  notificacionDefault: Me
27750
27748
  }), ae("medio", Me), oe.success(
@@ -27766,10 +27764,10 @@ function A1() {
27766
27764
  }), ae("medio", "telegram"), S.value = !1;
27767
27765
  return;
27768
27766
  }
27769
- x.value = ((Fe = (pe = Ue == null ? void 0 : Ue.response) == null ? void 0 : pe.data) == null ? void 0 : Fe.mensajeServicio) || null, T.value = ((ze = (K = Ue == null ? void 0 : Ue.response) == null ? void 0 : K.data) == null ? void 0 : ze.tiempoVigencia) || null, P.value = ((nt = (bt = Ue == null ? void 0 : Ue.response) == null ? void 0 : bt.data) == null ? void 0 : nt.url) || null, x.value && (B.value = x.value), (R === "email" || R === "whatsapp" || R === "sms") && T.value && ge(() => {
27767
+ x.value = ((Fe = (pe = Ue == null ? void 0 : Ue.response) == null ? void 0 : pe.data) == null ? void 0 : Fe.mensajeServicio) || null, T.value = ((ze = (q = Ue == null ? void 0 : Ue.response) == null ? void 0 : q.data) == null ? void 0 : ze.tiempoVigencia) || null, P.value = ((nt = (bt = Ue == null ? void 0 : Ue.response) == null ? void 0 : bt.data) == null ? void 0 : nt.url) || null, x.value && (B.value = x.value), (R === "email" || R === "whatsapp" || R === "sms") && T.value && ge(() => {
27770
27768
  var Me;
27771
27769
  (Me = s.value) == null || Me.reInit(T.value);
27772
- }), R === "telegram" && P.value && (g.value = P.value), q();
27770
+ }), R === "telegram" && P.value && (g.value = P.value), z();
27773
27771
  } catch (Ue) {
27774
27772
  oe.error(
27775
27773
  `<p class="toast-title">Error</p><p class="toast-description">${Ue.message}</p>`,
@@ -27819,7 +27817,7 @@ function A1() {
27819
27817
  days: 1
27820
27818
  }), ue();
27821
27819
  } catch (te) {
27822
- Ft({ error: te, setErrors: z });
27820
+ Ft({ error: te, setErrors: K });
27823
27821
  } finally {
27824
27822
  y.value = !1;
27825
27823
  }
@@ -27869,7 +27867,7 @@ function A1() {
27869
27867
  fotoRuta: (R = lt.response) == null ? void 0 : R.foto
27870
27868
  });
27871
27869
  } catch (ne) {
27872
- Ft({ error: ne.response, setErrors: z });
27870
+ Ft({ error: ne.response, setErrors: K });
27873
27871
  } finally {
27874
27872
  y.value = !1, a.value = void 0;
27875
27873
  }
@@ -27924,7 +27922,7 @@ function A1() {
27924
27922
  }
27925
27923
  }, ue = () => {
27926
27924
  oo.value = 0, b.value = !1, S.value = !1, E.value = !1, L.value = !1, x.value = null, T.value = null, P.value = null, B.value = null, g.value = null;
27927
- }, q = () => {
27925
+ }, z = () => {
27928
27926
  if (oo.value = 1, l.value && T.value) {
27929
27927
  const R = l.value === "whatsapp" ? h.value : l.value === "telegram" ? p.value : v.value;
27930
27928
  R > 0 && s.value ? ge(() => {
@@ -27935,9 +27933,9 @@ function A1() {
27935
27933
  (ne = s.value) == null || ne.reInit(T.value);
27936
27934
  });
27937
27935
  }
27938
- }, Y = () => {
27936
+ }, W = () => {
27939
27937
  oo.value = 3;
27940
- }, W = (R) => {
27938
+ }, X = (R) => {
27941
27939
  e.value = !!R, n.value = "forzar", oo.value = 2;
27942
27940
  }, G = () => oo.value = 4;
27943
27941
  return Ve(oo, (R, ne) => {
@@ -27947,7 +27945,7 @@ function A1() {
27947
27945
  user: (se = o == null ? void 0 : o.userState) == null ? void 0 : se.user,
27948
27946
  userState: o == null ? void 0 : o.userState,
27949
27947
  mode: n,
27950
- values: X,
27948
+ values: $,
27951
27949
  mediosVerificados: Q,
27952
27950
  currentContacto: i,
27953
27951
  currentStep: oo,
@@ -27964,10 +27962,10 @@ function A1() {
27964
27962
  onEnviarMensaje: wt,
27965
27963
  onEnviarCodigoAlBackend: Oe,
27966
27964
  onEnviarCodigoAlUsuario: Le,
27967
- cambiarPass: W,
27965
+ cambiarPass: X,
27968
27966
  goToActiveMediosStep: G,
27969
27967
  goProfileStep: ue,
27970
- goEnable2FA: Y,
27968
+ goEnable2FA: W,
27971
27969
  mediosHabilitados2FA: Fo,
27972
27970
  mediosHabilitadoDefault: Ql,
27973
27971
  onAssignMedio2FaOption: ee,
@@ -28315,10 +28313,10 @@ const ID = { render: TD }, MD = /* @__PURE__ */ m("button", { class: "auth-hide-
28315
28313
  onAcceptImageUpdateClick: F,
28316
28314
  tiempoRestanteWhatsapp: re,
28317
28315
  tiempoRestanteTelegram: Q,
28318
- tiempoRestanteEmail: X,
28316
+ tiempoRestanteEmail: $,
28319
28317
  tiempoRestanteSms: ce,
28320
28318
  isLoadingWhatsapp: le,
28321
- isLoadingTelegram: z,
28319
+ isLoadingTelegram: K,
28322
28320
  isLoadingEmail: ae,
28323
28321
  isLoadingSms: he,
28324
28322
  message2Fa: De,
@@ -28446,16 +28444,16 @@ const ID = { render: TD }, MD = /* @__PURE__ */ m("button", { class: "auth-hide-
28446
28444
  k(c(uo), { "as-child": "" }, {
28447
28445
  default: O(() => [
28448
28446
  m("div", {
28449
- onClick: we[2] || (we[2] = (pt) => !c(z) && c(b)({ medio: "telegram", contacto: c(a).celular })),
28447
+ onClick: we[2] || (we[2] = (pt) => !c(K) && c(b)({ medio: "telegram", contacto: c(a).celular })),
28450
28448
  class: "auth-radio-group-item fge-gray-button-option w-full",
28451
- style: mt({ cursor: c(z) ? "not-allowed" : "pointer", opacity: c(z) ? 0.6 : 1 })
28449
+ style: mt({ cursor: c(K) ? "not-allowed" : "pointer", opacity: c(K) ? 0.6 : 1 })
28452
28450
  }, [
28453
28451
  m("button", {
28454
28452
  class: "btn-whatsapp",
28455
- style: mt({ cursor: c(z) ? "not-allowed" : "pointer" }),
28456
- disabled: c(z)
28453
+ style: mt({ cursor: c(K) ? "not-allowed" : "pointer" }),
28454
+ disabled: c(K)
28457
28455
  }, [
28458
- c(z) ? (D(), H("i", mT)) : (D(), Z(c(Oa), {
28456
+ c(K) ? (D(), H("i", mT)) : (D(), Z(c(Oa), {
28459
28457
  key: 1,
28460
28458
  class: _e({
28461
28459
  "auth-svg-primary": c(s).verificadoTelegram,
@@ -28466,7 +28464,7 @@ const ID = { render: TD }, MD = /* @__PURE__ */ m("button", { class: "auth-hide-
28466
28464
  m("label", {
28467
28465
  class: "fge-text-gray",
28468
28466
  for: "r2",
28469
- style: mt({ cursor: c(z) ? "not-allowed" : "pointer", whiteSpace: "nowrap" })
28467
+ style: mt({ cursor: c(K) ? "not-allowed" : "pointer", whiteSpace: "nowrap" })
28470
28468
  }, [
28471
28469
  Se(" Telegram "),
28472
28470
  c(Q) > 0 ? (D(), H("span", gT, " (" + ye(c(Q)) + " seg.) ", 1)) : me("", !0)
@@ -28625,7 +28623,7 @@ const ID = { render: TD }, MD = /* @__PURE__ */ m("button", { class: "auth-hide-
28625
28623
  style: mt({ cursor: c(ae) ? "not-allowed" : "pointer", whiteSpace: "nowrap" })
28626
28624
  }, [
28627
28625
  Se(" Email "),
28628
- c(X) > 0 ? (D(), H("span", TT, " (" + ye(c(X)) + " seg.) ", 1)) : me("", !0)
28626
+ c($) > 0 ? (D(), H("span", TT, " (" + ye(c($)) + " seg.) ", 1)) : me("", !0)
28629
28627
  ], 4)
28630
28628
  ], 4)
28631
28629
  ]),
@@ -28907,7 +28905,7 @@ const ID = { render: TD }, MD = /* @__PURE__ */ m("button", { class: "auth-hide-
28907
28905
  onClick: we[14] || (we[14] = (Ee) => c(b)({ medio: "email", contacto: c(a).email }))
28908
28906
  }, [
28909
28907
  Se(" validar correo electrónico "),
28910
- c(X) > 0 ? (D(), H("span", iI, " (" + ye(c(X)) + " seg.) ", 1)) : me("", !0)
28908
+ c($) > 0 ? (D(), H("span", iI, " (" + ye(c($)) + " seg.) ", 1)) : me("", !0)
28911
28909
  ]))
28912
28910
  ]),
28913
28911
  lI,
@@ -29923,12 +29921,12 @@ const eP = { render: GM }, tl = (t) => (Do("data-v-6cedda83"), t = t(), To(), t)
29923
29921
  m("div", EP, [
29924
29922
  k(c(V7), { class: "avatar-container" }, {
29925
29923
  default: O(() => {
29926
- var Q, X;
29924
+ var Q, $;
29927
29925
  return [
29928
29926
  k(c(H7), {
29929
29927
  class: "avatar-image",
29930
29928
  src: (Q = c(o).userState.user) == null ? void 0 : Q.fotoUrl,
29931
- alt: `Foto de ${(X = c(o).userState.user) == null ? void 0 : X.nombreCompleto}`
29929
+ alt: `Foto de ${($ = c(o).userState.user) == null ? void 0 : $.nombreCompleto}`
29932
29930
  }, null, 8, ["src", "alt"]),
29933
29931
  k(c(Q7), {
29934
29932
  class: "avatar-fallback",