@imj_media/tareas 1.4.0 → 1.4.2

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.
package/dist/tareas.es.js CHANGED
@@ -54,15 +54,15 @@ const h = {
54
54
  black_dark: "#131313"
55
55
  }
56
56
  }, bt = () => {
57
- const [a, e] = N(null);
57
+ const [r, e] = N(null);
58
58
  return {
59
59
  //Properties
60
- position: a,
60
+ position: r,
61
61
  //Methods
62
62
  setElementPosition: (o) => {
63
63
  var p;
64
64
  let i = (p = o.current) == null ? void 0 : p.getBoundingClientRect(), c = (i == null ? void 0 : i.x) + ((i == null ? void 0 : i.width) ?? 0), l = (i == null ? void 0 : i.y) + (i == null ? void 0 : i.height);
65
- e(a ? null : { x: c ?? 0, y: l ?? 0 });
65
+ e(r ? null : { x: c ?? 0, y: l ?? 0 });
66
66
  },
67
67
  getChildrenSize: (o) => {
68
68
  var i;
@@ -73,10 +73,10 @@ const h = {
73
73
  }
74
74
  };
75
75
  }, Pe = ({
76
- children: a,
76
+ children: r,
77
77
  filterChildren: e
78
78
  }) => {
79
- const { position: n, setElementPosition: r } = bt(), s = Z(null), o = ({ children: i }) => {
79
+ const { position: n, setElementPosition: a } = bt(), s = Z(null), o = ({ children: i }) => {
80
80
  const [c, l] = N();
81
81
  return M(() => {
82
82
  var p, d;
@@ -115,23 +115,23 @@ const h = {
115
115
  className: "tw-hidden",
116
116
  id: "filter-button",
117
117
  onClick: () => {
118
- r(s);
118
+ a(s);
119
119
  }
120
120
  }
121
121
  ),
122
- /* @__PURE__ */ t(o, { children: a })
122
+ /* @__PURE__ */ t(o, { children: r })
123
123
  ] });
124
- }, Ft = (a) => {
124
+ }, Ft = (r) => {
125
125
  let e = {};
126
- return Object.entries(a).forEach(([n, r]) => {
126
+ return Object.entries(r).forEach(([n, a]) => {
127
127
  if (n.includes(".")) {
128
128
  let [s, o] = n.split(".");
129
- e[s] = e[s] || {}, e[s][o] = r;
129
+ e[s] = e[s] || {}, e[s][o] = a;
130
130
  } else
131
- e[n] = r;
131
+ e[n] = a;
132
132
  }), e;
133
- }, Lt = nt({}), je = ({ children: a }) => {
134
- const [e, n] = N({}), [r, s] = N({}), [o, i] = N([]), [c, l] = N(""), p = ({ name: g, value: m }) => {
133
+ }, Lt = nt({}), je = ({ children: r }) => {
134
+ const [e, n] = N({}), [a, s] = N({}), [o, i] = N([]), [c, l] = N(""), p = ({ name: g, value: m }) => {
135
135
  function x(b) {
136
136
  return !isNaN(b) && b !== null && b !== "" ? parseFloat(b) : null;
137
137
  }
@@ -160,7 +160,7 @@ const h = {
160
160
  4: "Dificil",
161
161
  5: "Muy dificil"
162
162
  })[g], k = () => {
163
- let g = Ft(r);
163
+ let g = Ft(a);
164
164
  g.difficulty && (g.difficulty = _(g.difficulty)), n(g);
165
165
  };
166
166
  return /* @__PURE__ */ t(
@@ -176,28 +176,28 @@ const h = {
176
176
  updateFilters: p,
177
177
  cleanFilters: d,
178
178
  applyFilters: k,
179
- initialFilters: r,
179
+ initialFilters: a,
180
180
  selectPath: l
181
181
  },
182
- children: a
182
+ children: r
183
183
  }
184
184
  );
185
185
  }, V = () => lt(Lt);
186
- function Se(a, e = 300, n = { leading: !1, trailing: !0 }) {
187
- let r, s = null;
186
+ function Ae(r, e = 300, n = { leading: !1, trailing: !0 }) {
187
+ let a, s = null;
188
188
  return function(...o) {
189
189
  const i = Date.now(), c = n.leading && !s;
190
- clearTimeout(r), c && a(...o), s = i, r = setTimeout(() => {
191
- n.trailing && (!n.leading || i - s >= e) && (a(...o), s = null);
190
+ clearTimeout(a), c && r(...o), s = i, a = setTimeout(() => {
191
+ n.trailing && (!n.leading || i - s >= e) && (r(...o), s = null);
192
192
  }, e);
193
193
  };
194
194
  }
195
195
  const G = ({
196
- imageUrl: a = "https://www.uv.unach.mx/assets/img/prueba/directorio/userM.png",
196
+ imageUrl: r = "https://www.uv.unach.mx/assets/img/prueba/directorio/userM.png",
197
197
  alt: e = "avatar",
198
198
  size: n = "s"
199
199
  }) => {
200
- const r = {
200
+ const a = {
201
201
  xs: "tw-w-[24px] tw-h-[24px] tw-min-w-[24px] tw-min-h-[24px]",
202
202
  s: "tw-w-[28px] tw-h-[28px] tw-min-w-[28px] tw-min-h-[28px]",
203
203
  m: "tw-w-[32px] tw-h-[32px] tw-min-w-[32px] tw-min-h-[32px]",
@@ -208,16 +208,16 @@ const G = ({
208
208
  return /* @__PURE__ */ t(
209
209
  "img",
210
210
  {
211
- src: a === "" ? "https://www.uv.unach.mx/assets/img/prueba/directorio/userM.png" : a,
211
+ src: r === "" ? "https://www.uv.unach.mx/assets/img/prueba/directorio/userM.png" : r,
212
212
  alt: e ?? "avatar",
213
- className: `${r} tw-rounded-full tw-bg-containers tw-border-2 tw-border-white`
213
+ className: `${a} tw-rounded-full tw-bg-containers tw-border-2 tw-border-white`
214
214
  }
215
215
  );
216
- }, Ae = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='uuid-870f9847-3249-4f3d-96c6-7627dd5f9e7b'%20data-name='Iconos'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cdefs%3e%3cstyle%3e%20.uuid-4d76d382-032b-400f-b22d-b6e7be4cfaae%20{%20fill:%20none;%20stroke:%20%23252525;%20stroke-linecap:%20round;%20stroke-linejoin:%20round;%20stroke-width:%204px;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='uuid-4d76d382-032b-400f-b22d-b6e7be4cfaae'%20cx='19.79'%20cy='19.79'%20r='13.54'/%3e%3cline%20class='uuid-4d76d382-032b-400f-b22d-b6e7be4cfaae'%20x1='41.67'%20y1='41.67'%20x2='29.17'%20y2='29.17'/%3e%3c/svg%3e", It = ({
217
- options: a,
216
+ }, Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='uuid-870f9847-3249-4f3d-96c6-7627dd5f9e7b'%20data-name='Iconos'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cdefs%3e%3cstyle%3e%20.uuid-4d76d382-032b-400f-b22d-b6e7be4cfaae%20{%20fill:%20none;%20stroke:%20%23252525;%20stroke-linecap:%20round;%20stroke-linejoin:%20round;%20stroke-width:%204px;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='uuid-4d76d382-032b-400f-b22d-b6e7be4cfaae'%20cx='19.79'%20cy='19.79'%20r='13.54'/%3e%3cline%20class='uuid-4d76d382-032b-400f-b22d-b6e7be4cfaae'%20x1='41.67'%20y1='41.67'%20x2='29.17'%20y2='29.17'/%3e%3c/svg%3e", It = ({
217
+ options: r,
218
218
  onselect: e
219
219
  }) => {
220
- const [n, r] = N(null), s = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15), o = [...a].filter(
220
+ const [n, a] = N(null), s = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15), o = [...r].filter(
221
221
  (i) => i.name.toLowerCase().includes((n == null ? void 0 : n.toLowerCase()) ?? "")
222
222
  );
223
223
  return /* @__PURE__ */ w("div", { className: "tw-h-fit tw-w-full tw-min-w-max", children: [
@@ -227,13 +227,13 @@ const G = ({
227
227
  {
228
228
  id: s,
229
229
  value: n ?? "",
230
- onChange: (i) => r(i.target.value),
230
+ onChange: (i) => a(i.target.value),
231
231
  type: "text",
232
232
  className: "tw-w-full tw-h-[32px] tw-bg-bg-card tw-border-cards tw-rounded-lg tw-p-2",
233
233
  placeholder: "Buscar"
234
234
  }
235
235
  ),
236
- /* @__PURE__ */ t("div", { className: "tw-absolute tw-right-[8px]", children: /* @__PURE__ */ t("img", { src: Ae, alt: "Icono", className: "tw-w-[12px] tw-h-[12px]" }) })
236
+ /* @__PURE__ */ t("div", { className: "tw-absolute tw-right-[8px]", children: /* @__PURE__ */ t("img", { src: Se, alt: "Icono", className: "tw-w-[12px] tw-h-[12px]" }) })
237
237
  ] }),
238
238
  /* @__PURE__ */ t("div", { className: "tw-bg-bg-card tw-border-cards tw-rounded-lg tw-p-2 tw-flex tw-flex-col tw-gap-s tw-overflow-y-auto tw-max-h-[120px] tw-min-w-max", children: o.map((i) => /* @__PURE__ */ w(
239
239
  "button",
@@ -249,14 +249,14 @@ const G = ({
249
249
  }
250
250
  )) })
251
251
  ] });
252
- }, Me = ({ error: a, options: e, onSelect: n, initialValue: r }) => {
253
- const [s, o] = N(!1), [i, c] = N((r == null ? void 0 : r.name) ?? null);
252
+ }, Me = ({ error: r, options: e, onSelect: n, initialValue: a }) => {
253
+ const [s, o] = N(!1), [i, c] = N((a == null ? void 0 : a.name) ?? null);
254
254
  return M(() => {
255
- r && c(r);
256
- }, [r]), /* @__PURE__ */ w("div", { className: "tw-relative", children: [
257
- /* @__PURE__ */ w("div", { onBlur: () => o(!1), onClick: () => o(!s), className: `tw-z-[1] tw-cursor-pointer tw-w-full tw-bg-bg-card ${a ? "tw-shadow-danger-regular tw-border-2 tw-border-danger-regular" : "tw-shadow-input"} tw-h-[30px] tw-rounded-md tw-flex tw-justify-between tw-items-center tw-pl-2 ${a ? "tw-text-danger-regular" : i ? "tw-text-texts-subtext" : "tw-text-texts-placeholder"}`, children: [
255
+ a && c(a);
256
+ }, [a]), /* @__PURE__ */ w("div", { className: "tw-relative", children: [
257
+ /* @__PURE__ */ w("div", { onBlur: () => o(!1), onClick: () => o(!s), className: `tw-z-[1] tw-cursor-pointer tw-w-full tw-bg-bg-card ${r ? "tw-shadow-danger-regular tw-border-2 tw-border-danger-regular" : "tw-shadow-input"} tw-h-[30px] tw-rounded-md tw-flex tw-justify-between tw-items-center tw-pl-2 ${r ? "tw-text-danger-regular" : i ? "tw-text-texts-subtext" : "tw-text-texts-placeholder"}`, children: [
258
258
  /* @__PURE__ */ t("p", { children: (i == null ? void 0 : i.name) ?? "Selecciona una opción" }),
259
- /* @__PURE__ */ t(F, { icon: "angle_down_outline", color: a ? h.danger.regular : h.texts.placeholder })
259
+ /* @__PURE__ */ t(F, { icon: "angle_down_outline", color: r ? h.danger.regular : h.texts.placeholder })
260
260
  ] }),
261
261
  s && /* @__PURE__ */ t("div", { className: "absolute tw-w-full tw-shadow-md tw-rounded-lg tw-z-[10]", children: /* @__PURE__ */ t(
262
262
  It,
@@ -269,7 +269,7 @@ const G = ({
269
269
  ) })
270
270
  ] });
271
271
  }, $e = () => {
272
- const { fields: a, updateFilters: e, cleanFilters: n, applyFilters: r, initialFilters: s } = V();
272
+ const { fields: r, updateFilters: e, cleanFilters: n, applyFilters: a, initialFilters: s } = V();
273
273
  return /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-l tw-min-w-[250px] tw-z-[100]", children: [
274
274
  /* @__PURE__ */ w("div", { className: "tw-flex tw-justify-between tw-items-center", children: [
275
275
  /* @__PURE__ */ t("p", { className: "tw-text-texts tw-text-2xl", children: "Filtros" }),
@@ -282,7 +282,7 @@ const G = ({
282
282
  }
283
283
  )
284
284
  ] }),
285
- /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-m", children: a == null ? void 0 : a.map((o, i) => {
285
+ /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-m", children: r == null ? void 0 : r.map((o, i) => {
286
286
  var c;
287
287
  return /* @__PURE__ */ w("div", { style: { zIndex: 10 - i }, children: [
288
288
  /* @__PURE__ */ t("p", { className: "tw-text-xl z-[1]", children: o.label }),
@@ -306,7 +306,7 @@ const G = ({
306
306
  type: o.type,
307
307
  value: s == null ? void 0 : s[o == null ? void 0 : o.id],
308
308
  name: o.label.toLowerCase().replace(/ /g, "_"),
309
- onChange: Se(
309
+ onChange: Ae(
310
310
  (l) => {
311
311
  var p, d;
312
312
  return e({
@@ -324,34 +324,34 @@ const G = ({
324
324
  "button",
325
325
  {
326
326
  className: "tw-bg-primary-regular hover:tw-bg-primary-dark tw-text-white tw-rounded-md tw-py-s tw-text-xl",
327
- onClick: r,
327
+ onClick: a,
328
328
  children: "Filtrar"
329
329
  }
330
330
  )
331
331
  ] });
332
- }, J = (a) => {
333
- const e = (r) => Object.prototype.toString.call(r) === "[object Object]", n = (r) => r.attributes ? {
334
- id: r.id,
335
- ...r.attributes
336
- } : r;
337
- if (Array.isArray(a))
338
- return a.map((r) => J(r));
339
- if (e(a)) {
340
- Array.isArray(a.data) ? a = [...a.data] : e(a.data) ? a = n({ ...a.data }) : a.data === null ? a = null : a = n(a);
341
- for (const r in a)
342
- a[r] = J(a[r]);
343
- return a;
332
+ }, J = (r) => {
333
+ const e = (a) => Object.prototype.toString.call(a) === "[object Object]", n = (a) => a.attributes ? {
334
+ id: a.id,
335
+ ...a.attributes
336
+ } : a;
337
+ if (Array.isArray(r))
338
+ return r.map((a) => J(a));
339
+ if (e(r)) {
340
+ Array.isArray(r.data) ? r = [...r.data] : e(r.data) ? r = n({ ...r.data }) : r.data === null ? r = null : r = n(r);
341
+ for (const a in r)
342
+ r[a] = J(r[a]);
343
+ return r;
344
344
  }
345
- return a;
345
+ return r;
346
346
  };
347
347
  class Ee {
348
348
  static toCampaignTasks(e) {
349
- var r, s, o, i, c, l, p, d, _, k, g, m;
349
+ var a, s, o, i, c, l, p, d, _, k, g, m;
350
350
  let n = [];
351
351
  return e != null && e.responsable && n.push({
352
352
  id: e.responsable.id,
353
353
  name: e.responsable.nombre,
354
- image: (c = (i = (o = (s = (r = e.responsable) == null ? void 0 : r.userOBP) == null ? void 0 : s.imagen) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url
354
+ image: (c = (i = (o = (s = (a = e.responsable) == null ? void 0 : a.userOBP) == null ? void 0 : s.imagen) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url
355
355
  }), (l = e == null ? void 0 : e.equipo) != null && l.miembros && e.equipo.miembros.forEach((x) => {
356
356
  var y, b, v, q;
357
357
  n != null && n.find((P) => P.id === x.idUser.id) || x.idUser && n.push({
@@ -390,23 +390,23 @@ class Ee {
390
390
  };
391
391
  }
392
392
  }
393
- const De = async ({ filters: a, tasks_api: e, project: n }) => {
393
+ const De = async ({ filters: r, tasks_api: e, project: n }) => {
394
394
  try {
395
- const r = await e.get("/api/listado_tareas_flujo", {
395
+ const a = await e.get("/api/listado_tareas_flujo", {
396
396
  params: {
397
- ...a,
397
+ ...r,
398
398
  project: {
399
399
  id: n
400
400
  },
401
401
  includeAllTasks: !0
402
402
  }
403
403
  });
404
- return J(r.data.tareas).map(Ee.toCampaignTasks);
405
- } catch (r) {
406
- console.log(r);
404
+ return J(a.data.tareas).map(Ee.toCampaignTasks);
405
+ } catch (a) {
406
+ console.log(a);
407
407
  }
408
- }, Bt = nt({}), Re = ({ children: a, user: e, url: n, mode: r }) => {
409
- const s = r === "prod" ? "https://services.imjmedia.com.mx" : "https://devobp.imjmedia.com.mx", o = Et.create({
408
+ }, Bt = nt({}), Re = ({ children: r, user: e, url: n, mode: a }) => {
409
+ const s = a === "prod" ? "https://services.imjmedia.com.mx" : "https://devobp.imjmedia.com.mx", o = Et.create({
410
410
  baseURL: n,
411
411
  headers: {
412
412
  Authorization: `Bearer ${e.accessToken}`
@@ -422,11 +422,11 @@ const De = async ({ filters: a, tasks_api: e, project: n }) => {
422
422
  getOBPUrlApi: i,
423
423
  getImageOBP: c
424
424
  },
425
- children: a
425
+ children: r
426
426
  }
427
427
  );
428
- }, Q = () => lt(Bt), Qt = nt({}), ze = ({ children: a, user: e, url: n }) => {
429
- const r = Et.create({
428
+ }, Q = () => lt(Bt), Qt = nt({}), ze = ({ children: r, user: e, url: n }) => {
429
+ const a = Et.create({
430
430
  baseURL: n,
431
431
  headers: {
432
432
  Authorization: `Bearer ${e.accessToken}`
@@ -440,14 +440,14 @@ const De = async ({ filters: a, tasks_api: e, project: n }) => {
440
440
  //properties
441
441
  user: e,
442
442
  //methods
443
- tasks_api: r
443
+ tasks_api: a
444
444
  },
445
- children: a
445
+ children: r
446
446
  }
447
447
  );
448
- }, U = () => lt(Qt), Ot = nt({}), Ut = ({ children: a, project: e }) => {
448
+ }, U = () => lt(Qt), Ot = nt({}), Ut = ({ children: r, project: e }) => {
449
449
  var b;
450
- const [n, r] = N([]), [s, o] = N(!1), [i, c] = N([]), { tasks_api: l } = Q(), { filters: p } = V(), { user: d } = U(), [_, k] = N({
450
+ const [n, a] = N([]), [s, o] = N(!1), [i, c] = N([]), { tasks_api: l } = Q(), { filters: p } = V(), { user: d } = U(), [_, k] = N({
451
451
  owner: {
452
452
  user: d.id,
453
453
  config: ((b = p == null ? void 0 : p.owner) == null ? void 0 : b.config) ?? "yo_y_mis_equipos"
@@ -490,7 +490,7 @@ const De = async ({ filters: a, tasks_api: e, project: n }) => {
490
490
  });
491
491
  }
492
492
  }), m = (v) => {
493
- r((q) => [...q, v]);
493
+ a((q) => [...q, v]);
494
494
  }, x = (v) => {
495
495
  c((q) => q.includes(v) ? q.filter((P) => P !== v) : [...q, v]);
496
496
  }, y = e ?? null;
@@ -510,7 +510,7 @@ const De = async ({ filters: a, tasks_api: e, project: n }) => {
510
510
  filters: p,
511
511
  setIsRefetching: o
512
512
  },
513
- children: a
513
+ children: r
514
514
  }
515
515
  );
516
516
  }, ot = () => lt(Ot), Ke = () => /* @__PURE__ */ w("div", { className: "tw-bg-gray-200 tw-h-[150px] tw-w-full tw-animate-pulse tw-rounded-md tw-flex tw-flex-col tw-gap-[50px] tw-p-4", children: [
@@ -523,8 +523,8 @@ const De = async ({ filters: a, tasks_api: e, project: n }) => {
523
523
  /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-[30px] tw-bg-gray-300" }),
524
524
  /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-[30px] tw-bg-gray-300" })
525
525
  ] })
526
- ] }), Wt = nt(null), Le = ({ children: a }) => {
527
- const [e, n] = N({ message: "", type: "success" }), r = (s, o) => {
526
+ ] }), Wt = nt(null), Le = ({ children: r }) => {
527
+ const [e, n] = N({ message: "", type: "success" }), a = (s, o) => {
528
528
  n({ message: s, type: o }), setTimeout(() => n({ message: "", type: "success" }), 3e3);
529
529
  };
530
530
  return /* @__PURE__ */ t(
@@ -532,10 +532,10 @@ const De = async ({ filters: a, tasks_api: e, project: n }) => {
532
532
  {
533
533
  value: {
534
534
  toast: e,
535
- showSuccess: (s) => r(s, "success"),
536
- showError: (s) => r(s, "error")
535
+ showSuccess: (s) => a(s, "success"),
536
+ showError: (s) => a(s, "error")
537
537
  },
538
- children: a
538
+ children: r
539
539
  }
540
540
  );
541
541
  }, yt = () => lt(Wt);
@@ -549,10 +549,10 @@ class Ht {
549
549
  }
550
550
  }
551
551
  const Ie = async ({
552
- tasks_api: a
552
+ tasks_api: r
553
553
  }) => {
554
554
  try {
555
- const e = await a.get("/api/motivos", {
555
+ const e = await r.get("/api/motivos", {
556
556
  params: {
557
557
  populate: {
558
558
  categoria: { fields: ["id", "nombre", "tipo"] }
@@ -568,15 +568,15 @@ const Ie = async ({
568
568
  } catch (e) {
569
569
  throw console.log("Error al obtener los motivos de atraso", e), `Error al obtener los motivos de atraso: ${e}`;
570
570
  }
571
- }, Vt = ({ enabled: a = !1 } = {}) => {
572
- const { tasks_api: e } = Q(), { user: n } = U(), r = st(), { showSuccess: s, showError: o } = yt(), { filters: i, path: c } = V(), { data: l, isLoading: p } = it({
571
+ }, Vt = ({ enabled: r = !1 } = {}) => {
572
+ const { tasks_api: e } = Q(), { user: n } = U(), a = st(), { showSuccess: s, showError: o } = yt(), { filters: i, path: c } = V(), { data: l, isLoading: p } = it({
573
573
  queryKey: ["atraso_reasons"],
574
574
  queryFn: () => Ie({
575
575
  tasks_api: e
576
576
  }),
577
577
  staleTime: 1e3 * 60 * 60 * 24,
578
578
  // mantiene los datos por 24 horas
579
- enabled: a
579
+ enabled: r
580
580
  // Ahora la query se ejecutará solo cuando enabled sea true
581
581
  }), d = async () => {
582
582
  const P = await e.get("/api/motivos", {
@@ -591,7 +591,7 @@ const Ie = async ({
591
591
  return J(P.data).map(Ht.toAtrasoReasons);
592
592
  }, _ = async ({
593
593
  taskId: P,
594
- motivoId: A,
594
+ motivoId: S,
595
595
  projectID: E
596
596
  }) => {
597
597
  try {
@@ -599,7 +599,7 @@ const Ie = async ({
599
599
  data: {
600
600
  inicio: /* @__PURE__ */ new Date(),
601
601
  fin: null,
602
- motivo: A,
602
+ motivo: S,
603
603
  proyecto: E,
604
604
  tarea: P,
605
605
  creada_por: n == null ? void 0 : n.id
@@ -611,8 +611,8 @@ const Ie = async ({
611
611
  }, k = async (P) => {
612
612
  try {
613
613
  return (await e.delete(`/api/atrasos/${P}`)).data;
614
- } catch (A) {
615
- console.log("error", A);
614
+ } catch (S) {
615
+ console.log("error", S);
616
616
  }
617
617
  }, g = async (P) => {
618
618
  try {
@@ -621,15 +621,15 @@ const Ie = async ({
621
621
  fin: /* @__PURE__ */ new Date()
622
622
  }
623
623
  })).data;
624
- } catch (A) {
625
- console.log("error", A);
624
+ } catch (S) {
625
+ console.log("error", S);
626
626
  }
627
627
  }, m = async ({
628
628
  taskId: P,
629
- projectID: A,
629
+ projectID: S,
630
630
  motivo: E
631
631
  }) => {
632
- await b({ taskId: P, motivoId: E, projectID: A });
632
+ await b({ taskId: P, motivoId: E, projectID: S });
633
633
  }, x = async (P) => {
634
634
  await v(P);
635
635
  }, y = async (P) => {
@@ -637,7 +637,7 @@ const Ie = async ({
637
637
  }, { mutateAsync: b } = X({
638
638
  mutationFn: _,
639
639
  onSuccess: () => {
640
- s("Atraso registrado correctamente"), c === "kanban-general" && (r.invalidateQueries({ queryKey: ["to_do_tasks", i] }), r.invalidateQueries({ queryKey: ["working_tasks", i] })), c === "kanban-campania" && r.invalidateQueries({ queryKey: ["tasksProject"] });
640
+ s("Atraso registrado correctamente"), c === "kanban-general" && (a.invalidateQueries({ queryKey: ["to_do_tasks", i] }), a.invalidateQueries({ queryKey: ["working_tasks", i] })), c === "kanban-campania" && a.invalidateQueries({ queryKey: ["tasksProject"] });
641
641
  },
642
642
  onError: () => {
643
643
  o("Error al registrar el atraso");
@@ -645,13 +645,13 @@ const Ie = async ({
645
645
  }), { mutateAsync: v } = X({
646
646
  mutationFn: k,
647
647
  onSuccess: () => {
648
- s("Atraso eliminado correctamente"), c === "kanban-general" && (r.invalidateQueries({
648
+ s("Atraso eliminado correctamente"), c === "kanban-general" && (a.invalidateQueries({
649
649
  queryKey: ["to_do_tasks"]
650
- }), r.invalidateQueries({
650
+ }), a.invalidateQueries({
651
651
  queryKey: ["working_tasks"]
652
- }), r.invalidateQueries({
652
+ }), a.invalidateQueries({
653
653
  queryKey: ["done_tasks"]
654
- })), c === "kanban-campania" && r.invalidateQueries({
654
+ })), c === "kanban-campania" && a.invalidateQueries({
655
655
  queryKey: ["tasksProject"]
656
656
  });
657
657
  },
@@ -675,34 +675,34 @@ const Ie = async ({
675
675
  deleteAtraso: x,
676
676
  finalizarAtraso: y
677
677
  };
678
- }, at = () => {
679
- const { tasks_api: a } = Q(), { user: e } = U(), { filters: n, path: r } = V(), s = st(), { projectID: o } = ot(), { showSuccess: i, showError: c } = yt(), { finalizarAtraso: l } = Vt({ enabled: !1 }), p = async ({ id: f }) => (await a.put(`/api/tareas/${f}`, {
678
+ }, rt = () => {
679
+ const { tasks_api: r } = Q(), { user: e } = U(), { filters: n, path: a } = V(), s = st(), { projectID: o } = ot(), { showSuccess: i, showError: c } = yt(), { finalizarAtraso: l } = Vt({ enabled: !1 }), p = async ({ id: f }) => (await r.put(`/api/tareas/${f}`, {
680
680
  data: {
681
681
  estatus: 1,
682
682
  responsable: e == null ? void 0 : e.id,
683
683
  updated_by: e == null ? void 0 : e.id
684
684
  }
685
- })).data, d = async ({ id: f }) => (await a.put(`/api/tareas/${f}`, {
685
+ })).data, d = async ({ id: f }) => (await r.put(`/api/tareas/${f}`, {
686
686
  data: {
687
687
  estatus: 0,
688
688
  responsable: e == null ? void 0 : e.id,
689
689
  updated_by: e == null ? void 0 : e.id
690
690
  }
691
691
  })).data, _ = async ({ id: f, idAtraso: C }) => {
692
- const j = await a.post("/api/terminarTarea", {
692
+ const j = await r.post("/api/terminarTarea", {
693
693
  id_task: f,
694
694
  ended_at: (/* @__PURE__ */ new Date()).toISOString(),
695
695
  id_user: e == null ? void 0 : e.id
696
696
  });
697
697
  return await l(C), j.data;
698
- }, k = async ({ id: f, repeats: C }) => (await a.put(`/api/tareas/${f}`, {
698
+ }, k = async ({ id: f, repeats: C }) => (await r.put(`/api/tareas/${f}`, {
699
699
  data: {
700
700
  repeticiones_realizadas: C,
701
701
  updated_by: e == null ? void 0 : e.id
702
702
  }
703
703
  })).data, g = async ({ id: f, motiveId: C }) => {
704
704
  try {
705
- const j = await a.post("/api/pausarTarea", {
705
+ const j = await r.post("/api/pausarTarea", {
706
706
  taskId: f,
707
707
  userId: e == null ? void 0 : e.id,
708
708
  motivoId: C
@@ -713,7 +713,7 @@ const Ie = async ({
713
713
  }
714
714
  }, m = async ({ id: f }) => {
715
715
  try {
716
- const C = await a.post("/api/reanudarTarea", {
716
+ const C = await r.post("/api/reanudarTarea", {
717
717
  taskId: f
718
718
  });
719
719
  return i("Tarea reanudada correctamente"), C.data;
@@ -732,12 +732,12 @@ const Ie = async ({
732
732
  ...z,
733
733
  responsable: null,
734
734
  equipo: C
735
- }), (await a.put(`/api/tareas/${f}`, {
735
+ }), (await r.put(`/api/tareas/${f}`, {
736
736
  data: z
737
737
  })).data;
738
738
  }, y = async ({ id: f, data: C, user: j }) => {
739
739
  try {
740
- return (await a.put(`/api/tareas/${f}`, {
740
+ return (await r.put(`/api/tareas/${f}`, {
741
741
  data: {
742
742
  ...C,
743
743
  updated_by: j == null ? void 0 : j.id
@@ -759,7 +759,7 @@ const Ie = async ({
759
759
  "kanban-campania": "tasksProject"
760
760
  };
761
761
  try {
762
- r === "kanban-general" && (s.invalidateQueries({ queryKey: [f[r], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), r === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
762
+ a === "kanban-general" && (s.invalidateQueries({ queryKey: [f[a], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), a === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
763
763
  queryKey: ["tasksProject", n, o]
764
764
  }));
765
765
  } catch (C) {
@@ -780,7 +780,7 @@ const Ie = async ({
780
780
  "kanban-campania": "tasksProject"
781
781
  };
782
782
  try {
783
- r === "kanban-general" && (s.invalidateQueries({ queryKey: [f[r], n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), r === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
783
+ a === "kanban-general" && (s.invalidateQueries({ queryKey: [f[a], n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), a === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
784
784
  queryKey: ["tasksProject", n, o]
785
785
  }));
786
786
  } catch (C) {
@@ -793,7 +793,7 @@ const Ie = async ({
793
793
  onMutate: async () => {
794
794
  await s.cancelQueries({ queryKey: ["working_tasks"] }), await s.cancelQueries({ queryKey: ["to_do_tasks"] });
795
795
  }
796
- }), { mutateAsync: A } = X({
796
+ }), { mutateAsync: S } = X({
797
797
  mutationFn: _,
798
798
  onSuccess: () => {
799
799
  const f = {
@@ -801,9 +801,9 @@ const Ie = async ({
801
801
  "kanban-campania": "tasksProject"
802
802
  };
803
803
  try {
804
- s.setQueryData([f[r], n], (C) => {
804
+ s.setQueryData([f[a], n], (C) => {
805
805
  console.log({ oldData: C });
806
- }), r === "kanban-general" && (s.invalidateQueries({ queryKey: [f[r], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), r === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
806
+ }), a === "kanban-general" && (s.invalidateQueries({ queryKey: [f[a], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), a === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
807
807
  queryKey: ["tasksProject", n, o]
808
808
  }));
809
809
  } catch (C) {
@@ -824,7 +824,7 @@ const Ie = async ({
824
824
  "kanban-campania": "tasksProject"
825
825
  };
826
826
  try {
827
- r === "kanban-general" && (s.invalidateQueries({ queryKey: [f[r], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), r === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
827
+ a === "kanban-general" && (s.invalidateQueries({ queryKey: [f[a], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), a === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
828
828
  queryKey: ["tasksProject", n, o]
829
829
  }));
830
830
  } catch (C) {
@@ -845,7 +845,7 @@ const Ie = async ({
845
845
  "kanban-campania": "tasksProject"
846
846
  };
847
847
  try {
848
- r === "kanban-general" && (s.invalidateQueries({ queryKey: [f[r], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), r === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
848
+ a === "kanban-general" && (s.invalidateQueries({ queryKey: [f[a], n] }), s.invalidateQueries({ queryKey: ["done_tasks", n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), a === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
849
849
  queryKey: ["tasksProject", n, o]
850
850
  }));
851
851
  } catch (C) {
@@ -866,7 +866,7 @@ const Ie = async ({
866
866
  "kanban-campania": "tasksProject"
867
867
  };
868
868
  try {
869
- r === "kanban-general" && (s.invalidateQueries({ queryKey: [f[r], n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), r === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
869
+ a === "kanban-general" && (s.invalidateQueries({ queryKey: [f[a], n] }), s.invalidateQueries({ queryKey: ["working_tasks", n] })), a === "kanban-campania" && (s.invalidateQueries({ queryKey: ["tasksProject"] }), s.invalidateQueries({
870
870
  queryKey: ["tasksProject", n, o]
871
871
  }));
872
872
  } catch (C) {
@@ -889,7 +889,7 @@ const Ie = async ({
889
889
  },
890
890
  startWorking: b,
891
891
  completeTask: async ({ id: f, idAtraso: C }) => {
892
- await A({ id: f, idAtraso: C });
892
+ await S({ id: f, idAtraso: C });
893
893
  },
894
894
  reasignResponsible: async ({ id: f, idNewResponsible: C, typeOfSelect: j }) => {
895
895
  await T({ id: f, idNewResponsible: C, typeOfSelect: j });
@@ -903,23 +903,23 @@ const Ie = async ({
903
903
  postPauseTask: g,
904
904
  postReanudeTask: m
905
905
  };
906
- }, Be = ({ id: a, idAtraso: e }) => {
907
- const [n, r] = N(!1), { completeTask: s } = at();
906
+ }, Be = ({ id: r, idAtraso: e }) => {
907
+ const [n, a] = N(!1), { completeTask: s } = rt();
908
908
  return { checked: n, checkTask: () => {
909
- r(!n), s({ id: a, idAtraso: e });
909
+ a(!n), s({ id: r, idAtraso: e });
910
910
  } };
911
- }, Yt = ({ id: a, nameRequiredTask: e, statusRequiredTask: n, status: r, idAtraso: s }) => {
912
- const { checked: o, checkTask: i } = Be({ id: a, idAtraso: s });
911
+ }, Yt = ({ id: r, nameRequiredTask: e, statusRequiredTask: n, status: a, idAtraso: s }) => {
912
+ const { checked: o, checkTask: i } = Be({ id: r, idAtraso: s });
913
913
  let c = Math.random().toString();
914
914
  return /* @__PURE__ */ w(I, { children: [
915
- r === 2 && /* @__PURE__ */ t(
915
+ a === 2 && /* @__PURE__ */ t(
916
916
  "div",
917
917
  {
918
918
  className: "tw-bg-success-regular tw-rounded-full tw-flex tw-items-center tw-justify-center tw-mx-[2px] tw-transition-all",
919
919
  children: /* @__PURE__ */ t(F, { icon: "circle_checked", color: "white", strokeWidth: 4, size: "xs" })
920
920
  }
921
921
  ),
922
- e !== "" && n === 2 || !e ? r === 1 ? /* @__PURE__ */ t(
922
+ e !== "" && n === 2 || !e ? a === 1 ? /* @__PURE__ */ t(
923
923
  "label",
924
924
  {
925
925
  htmlFor: c,
@@ -970,7 +970,7 @@ const Ie = async ({
970
970
  }
971
971
  )
972
972
  ] });
973
- }, Pt = ({ trigger: a, user: e, showUser: n = !0 }) => /* @__PURE__ */ t(H, { dispatch: a, children: n && /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-2 tw-bg-bg-card tw-w-fit tw-h-fit tw-p-2 tw-rounded-lg tw-border-containers", children: [
973
+ }, Pt = ({ trigger: r, user: e, showUser: n = !0 }) => /* @__PURE__ */ t(H, { dispatch: r, children: n && /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-2 tw-bg-bg-card tw-w-fit tw-h-fit tw-p-2 tw-rounded-lg tw-border-containers", children: [
974
974
  /* @__PURE__ */ t(G, { imageUrl: e.image ?? "", alt: e.name }),
975
975
  /* @__PURE__ */ t("p", { className: "tw-text-s tw-font-bold tw-text-texts-subtext", children: e.name })
976
976
  ] }) });
@@ -984,22 +984,22 @@ class Qe {
984
984
  }
985
985
  }
986
986
  const Oe = () => {
987
- const { tasks_api: a } = Q();
987
+ const { tasks_api: r } = Q();
988
988
  return { teams: it({
989
989
  queryKey: ["teams", "all"],
990
990
  queryFn: async () => {
991
- const n = await a.get("/api/equipos");
991
+ const n = await r.get("/api/equipos");
992
992
  return J(n.data).map(Qe.toDomain);
993
993
  }
994
994
  }) };
995
995
  };
996
996
  class Ue {
997
997
  static toUsers(e) {
998
- var n, r, s;
998
+ var n, a, s;
999
999
  return {
1000
1000
  id: e.id,
1001
1001
  name: e.nombre,
1002
- image: (s = (r = (n = e.imagen) == null ? void 0 : n.formats) == null ? void 0 : r.thumbnail) == null ? void 0 : s.url,
1002
+ image: (s = (a = (n = e.imagen) == null ? void 0 : n.formats) == null ? void 0 : a.thumbnail) == null ? void 0 : s.url,
1003
1003
  tasksUser: {
1004
1004
  email: e.tasksUser.email,
1005
1005
  id: e.tasksUser.id,
@@ -1009,52 +1009,54 @@ class Ue {
1009
1009
  }
1010
1010
  }
1011
1011
  const We = async ({
1012
- tasks_api: a
1012
+ tasks_api: r
1013
1013
  }) => {
1014
1014
  try {
1015
- const e = await a.get("/api/allOBPUsers");
1015
+ const e = await r.get(
1016
+ "/api/getAllOBPusersMembers"
1017
+ );
1016
1018
  return J(e.data).map(Ue.toUsers);
1017
1019
  } catch (e) {
1018
1020
  throw console.log("Error al obtener los usuarios comerciales", e), `Error al obtener los usuarios comerciales: ${e}`;
1019
1021
  }
1020
1022
  }, He = () => {
1021
- const { tasks_api: a } = Q();
1023
+ const { tasks_api: r } = Q();
1022
1024
  return {
1023
1025
  users: it({
1024
1026
  queryKey: ["users"],
1025
- queryFn: () => We({ tasks_api: a }),
1027
+ queryFn: () => We({ tasks_api: r }),
1026
1028
  staleTime: 1e3 * 60 * 60 * 24
1027
1029
  })
1028
1030
  };
1029
- }, vt = (a) => new Intl.DateTimeFormat("es-MX", { month: "long" }).format(a);
1030
- function Ve(a) {
1031
- const e = ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], n = new Date(a).getDay();
1031
+ }, vt = (r) => new Intl.DateTimeFormat("es-MX", { month: "long" }).format(r);
1032
+ function Ve(r) {
1033
+ const e = ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], n = new Date(r).getDay();
1032
1034
  return e[n];
1033
1035
  }
1034
- const jt = (a) => {
1035
- let e = a || /* @__PURE__ */ new Date(), n = e.getDate(), r = vt(e.getMonth()).slice(0, 3), s = e.getFullYear().toString().slice(-2), o = Ve(e).slice(0, 3);
1036
- return `${o.charAt(0).toUpperCase() + o.slice(1)} ${n} ${r.charAt(0).toUpperCase() + r.slice(1)} ${s}`;
1037
- }, Nt = (a, e) => ({
1038
- ...a,
1039
- image: a.image ? `${e}${a.image}` : ""
1036
+ const jt = (r) => {
1037
+ let e = r || /* @__PURE__ */ new Date(), n = e.getDate(), a = vt(e.getMonth()).slice(0, 3), s = e.getFullYear().toString().slice(-2), o = Ve(e).slice(0, 3);
1038
+ return `${o.charAt(0).toUpperCase() + o.slice(1)} ${n} ${a.charAt(0).toUpperCase() + a.slice(1)} ${s}`;
1039
+ }, Nt = (r, e) => ({
1040
+ ...r,
1041
+ image: r.image ? `${e}${r.image}` : ""
1040
1042
  }), Gt = ({
1041
- users: a,
1043
+ users: r,
1042
1044
  onClick: e,
1043
1045
  responsible: n,
1044
- role: r
1046
+ role: a
1045
1047
  }) => {
1046
- const { getOBPUrlApi: s } = Q(), o = `button-assign-users-${Math.random().toString(36).substring(2, 15)}`, { setElementPosition: i, position: c, clearPosition: l } = bt(), p = Z(null), d = "Project Manager", _ = () => n ? null : a.length > 3 && /* @__PURE__ */ t(
1048
+ const { getOBPUrlApi: s } = Q(), o = `button-assign-users-${Math.random().toString(36).substring(2, 15)}`, { setElementPosition: i, position: c, clearPosition: l } = bt(), p = Z(null), d = "Project Manager", _ = () => n ? null : r.length > 3 && /* @__PURE__ */ t(
1047
1049
  H,
1048
1050
  {
1049
- dispatch: /* @__PURE__ */ t("div", { className: "tw-w-[28px] tw-h-[28px] tw-rounded-full tw-bg-primary-regular tw-flex tw-items-center tw-justify-center tw-border-2 tw-border-white tw-ml-[-8px]", children: /* @__PURE__ */ t("p", { className: "tw-text-s tw-font-bold tw-text-white ", children: `+${a.length - 3}` }) }),
1050
- children: /* @__PURE__ */ t("div", { className: "tw-bg-bg-card tw-w-fit tw-h-fit tw-p-2 tw-rounded-lg tw-border-containers", children: a == null ? void 0 : a.slice(3).map((x, y) => /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-2 ", children: [
1051
+ dispatch: /* @__PURE__ */ t("div", { className: "tw-w-[28px] tw-h-[28px] tw-rounded-full tw-bg-primary-regular tw-flex tw-items-center tw-justify-center tw-border-2 tw-border-white tw-ml-[-8px]", children: /* @__PURE__ */ t("p", { className: "tw-text-s tw-font-bold tw-text-white ", children: `+${r.length - 3}` }) }),
1052
+ children: /* @__PURE__ */ t("div", { className: "tw-bg-bg-card tw-w-fit tw-h-fit tw-p-2 tw-rounded-lg tw-border-containers", children: r == null ? void 0 : r.slice(3).map((x, y) => /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-2 ", children: [
1051
1053
  /* @__PURE__ */ t(G, { imageUrl: x.image ?? "", alt: x.name }, y),
1052
1054
  /* @__PURE__ */ t("p", { className: "tw-text-s tw-font-bold tw-text-texts-subtext", children: x.name })
1053
1055
  ] }, y)) })
1054
1056
  }
1055
1057
  ), k = () => {
1056
1058
  if (n) {
1057
- let x = a.find(
1059
+ let x = r.find(
1058
1060
  (y) => y.id === n
1059
1061
  );
1060
1062
  return /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
@@ -1073,7 +1075,7 @@ const jt = (a) => {
1073
1075
  }
1074
1076
  ) });
1075
1077
  }
1076
- return (a == null ? void 0 : a.length) > 0 && a.slice(0, 3).map((x, y) => /* @__PURE__ */ t("div", { className: `${y === 0 ? "" : "tw-ml-[-8px]"}`, children: /* @__PURE__ */ t(
1078
+ return (r == null ? void 0 : r.length) > 0 && r.slice(0, 3).map((x, y) => /* @__PURE__ */ t("div", { className: `${y === 0 ? "" : "tw-ml-[-8px]"}`, children: /* @__PURE__ */ t(
1077
1079
  Pt,
1078
1080
  {
1079
1081
  trigger: /* @__PURE__ */ t(G, { imageUrl: x.image, alt: x.name }, y),
@@ -1090,7 +1092,7 @@ const jt = (a) => {
1090
1092
  children: x
1091
1093
  }
1092
1094
  );
1093
- if (a.length === 0)
1095
+ if (r.length === 0)
1094
1096
  return /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(F, { icon: "user", size: "xs", strokeWidth: 3 }) });
1095
1097
  const m = () => {
1096
1098
  var E;
@@ -1099,7 +1101,7 @@ const jt = (a) => {
1099
1101
  var T, $;
1100
1102
  p.current && y(((c == null ? void 0 : c.x) ?? 0) - ((($ = (T = p.current) == null ? void 0 : T.getBoundingClientRect()) == null ? void 0 : $.width) ?? 0));
1101
1103
  }, [p == null ? void 0 : p.current, c == null ? void 0 : c.x]);
1102
- const A = () => {
1104
+ const S = () => {
1103
1105
  const T = [
1104
1106
  // { id: 'team', label: 'Equipo' },
1105
1107
  { id: "responsible", label: "Responsable" }
@@ -1113,7 +1115,7 @@ const jt = (a) => {
1113
1115
  }
1114
1116
  )) });
1115
1117
  };
1116
- return r !== d ? null : (c == null ? void 0 : c.x) && ct.createPortal(
1118
+ return a !== d ? null : (c == null ? void 0 : c.x) && ct.createPortal(
1117
1119
  /* @__PURE__ */ t(
1118
1120
  "div",
1119
1121
  {
@@ -1126,7 +1128,7 @@ const jt = (a) => {
1126
1128
  className: "tw-flex tw-flex-col tw-gap-m tw-bg-bg-card tw-border-cards tw-rounded-lg tw-p-2 tw-max-h-[200px] tw-overflow-y-hidden",
1127
1129
  style: { boxShadow: "0px 2px 16px 0px rgba(0, 0, 0, 0.25)" },
1128
1130
  children: [
1129
- /* @__PURE__ */ t(A, {}),
1131
+ /* @__PURE__ */ t(S, {}),
1130
1132
  /* @__PURE__ */ t(
1131
1133
  It,
1132
1134
  {
@@ -1164,12 +1166,12 @@ const jt = (a) => {
1164
1166
  ),
1165
1167
  /* @__PURE__ */ t(m, {})
1166
1168
  ] });
1167
- }, Jt = ({ priority: a, id: e, withLabel: n = !1 }) => {
1169
+ }, Jt = ({ priority: r, id: e, withLabel: n = !1 }) => {
1168
1170
  var k, g, m, x, y;
1169
- const { updatingTask: r } = at(), s = Math.random().toString(36), [o, i] = N(null), { user: c } = U(), [l, p] = N(a);
1171
+ const { updatingTask: a } = rt(), s = Math.random().toString(36), [o, i] = N(null), { user: c } = U(), [l, p] = N(r);
1170
1172
  M(() => {
1171
- p(a);
1172
- }, [a]);
1173
+ p(r);
1174
+ }, [r]);
1173
1175
  const d = {
1174
1176
  0: { title: "Normal", color: h.primary.regular },
1175
1177
  1: { title: "Baja", color: h.success.regular },
@@ -1178,17 +1180,17 @@ const jt = (a) => {
1178
1180
  }, _ = () => {
1179
1181
  if (!o) return null;
1180
1182
  const b = ({ priorityTask: v, text: q }) => {
1181
- var P, A;
1183
+ var P, S;
1182
1184
  return /* @__PURE__ */ w(
1183
1185
  "button",
1184
1186
  {
1185
1187
  onClick: async () => {
1186
- i(null), await r({ id: e, data: { prioridad: v }, user: c == null ? void 0 : c.id }), p(v);
1188
+ i(null), await a({ id: e, data: { prioridad: v }, user: c == null ? void 0 : c.id }), p(v);
1187
1189
  },
1188
1190
  className: "tw-flex tw-gap-m tw-items-center tw-px-l tw-py-s hover:tw-bg-primary-light",
1189
1191
  children: [
1190
1192
  /* @__PURE__ */ t(F, { icon: "flag", size: "xs", strokeWidth: 4, color: (P = d[v ?? 0]) == null ? void 0 : P.color }),
1191
- /* @__PURE__ */ t("p", { className: "tw-text-sm", style: { color: (A = d[v ?? 0]) == null ? void 0 : A.color }, children: q })
1193
+ /* @__PURE__ */ t("p", { className: "tw-text-sm", style: { color: (S = d[v ?? 0]) == null ? void 0 : S.color }, children: q })
1192
1194
  ]
1193
1195
  }
1194
1196
  );
@@ -1259,11 +1261,11 @@ const jt = (a) => {
1259
1261
  /* @__PURE__ */ t(_, {})
1260
1262
  ] });
1261
1263
  };
1262
- function Ye({ items: a }) {
1263
- var r;
1264
+ function Ye({ items: r }) {
1265
+ var a;
1264
1266
  const [e, n] = N(1);
1265
1267
  return /* @__PURE__ */ w(I, { children: [
1266
- /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-mb-2 tw-border-b tw-border-neutral-100 tw-bg-white tw-mt-4", children: a.map((s, o) => /* @__PURE__ */ t(
1268
+ /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-mb-2 tw-border-b tw-border-neutral-100 tw-bg-white tw-mt-4", children: r.map((s, o) => /* @__PURE__ */ t(
1267
1269
  "div",
1268
1270
  {
1269
1271
  className: `tw-border-r tw-border-neutral-100 tw-pr-3 ${o !== 0 ? "tw-px-3" : ""}`,
@@ -1280,13 +1282,13 @@ function Ye({ items: a }) {
1280
1282
  },
1281
1283
  s.id
1282
1284
  )) }),
1283
- /* @__PURE__ */ t("div", { className: "tw-pt-4 tw-flex-1 tw-overflow-y-auto tw-bg-white", children: (r = a.find((s) => s.id === e)) == null ? void 0 : r.component })
1285
+ /* @__PURE__ */ t("div", { className: "tw-pt-4 tw-flex-1 tw-overflow-y-auto tw-bg-white", children: (a = r.find((s) => s.id === e)) == null ? void 0 : a.component })
1284
1286
  ] });
1285
1287
  }
1286
- function Ge({ comment: a }) {
1288
+ function Ge({ comment: r }) {
1287
1289
  var s, o, i, c, l;
1288
- const { getImageOBP: e } = Q(), n = (c = (i = (o = (s = a == null ? void 0 : a.autor) == null ? void 0 : s.imagen) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url;
1289
- function r(p) {
1290
+ const { getImageOBP: e } = Q(), n = (c = (i = (o = (s = r == null ? void 0 : r.autor) == null ? void 0 : s.imagen) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url;
1291
+ function a(p) {
1290
1292
  const d = de(p);
1291
1293
  return ue(d, { locale: xt, addSuffix: !0 });
1292
1294
  }
@@ -1294,16 +1296,16 @@ function Ge({ comment: a }) {
1294
1296
  /* @__PURE__ */ t(G, { size: "xxl", imageUrl: n ? e(n) : "", alt: "@shadcn" }),
1295
1297
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-1", children: [
1296
1298
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-row tw-gap-2", children: [
1297
- /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-neutral-900 tw-font-medium", children: (l = a == null ? void 0 : a.autor) == null ? void 0 : l.nombre }),
1298
- /* @__PURE__ */ t("span", { className: "tw-text-base tw-text-neutral-600 tw-font-normal tw-mt-[2px]", children: r(a == null ? void 0 : a.createdAt) })
1299
+ /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-neutral-900 tw-font-medium", children: (l = r == null ? void 0 : r.autor) == null ? void 0 : l.nombre }),
1300
+ /* @__PURE__ */ t("span", { className: "tw-text-base tw-text-neutral-600 tw-font-normal tw-mt-[2px]", children: a(r == null ? void 0 : r.createdAt) })
1299
1301
  ] }),
1300
- /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-neutral-600 tw-font-normal", children: a == null ? void 0 : a.comentario })
1302
+ /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-neutral-600 tw-font-normal", children: r == null ? void 0 : r.comentario })
1301
1303
  ] })
1302
1304
  ] }) });
1303
1305
  }
1304
- function Je({ currentUser: a, data: e, taskId: n, onNewComment: r }) {
1306
+ function Je({ currentUser: r, data: e, taskId: n, onNewComment: a }) {
1305
1307
  var g, m, x;
1306
- const { tasks_api: s, getImageOBP: o } = Q(), { register: i, handleSubmit: c, reset: l } = Kt(), [p, d] = N([]), _ = (x = (m = (g = a == null ? void 0 : a.imagen) == null ? void 0 : g.formats) == null ? void 0 : m.thumbnail) == null ? void 0 : x.url;
1308
+ const { tasks_api: s, getImageOBP: o } = Q(), { register: i, handleSubmit: c, reset: l } = Kt(), [p, d] = N([]), _ = (x = (m = (g = r == null ? void 0 : r.imagen) == null ? void 0 : g.formats) == null ? void 0 : m.thumbnail) == null ? void 0 : x.url;
1307
1309
  return M(() => {
1308
1310
  if (e != null && e.comentarios) {
1309
1311
  const y = [...e.comentarios].sort(
@@ -1319,21 +1321,21 @@ function Je({ currentUser: a, data: e, taskId: n, onNewComment: r }) {
1319
1321
  try {
1320
1322
  const b = {
1321
1323
  autor: {
1322
- id: a == null ? void 0 : a.id,
1323
- email: a == null ? void 0 : a.email,
1324
- nombre: a == null ? void 0 : a.nombre,
1325
- imagen: a == null ? void 0 : a.imagen
1324
+ id: r == null ? void 0 : r.id,
1325
+ email: r == null ? void 0 : r.email,
1326
+ nombre: r == null ? void 0 : r.nombre,
1327
+ imagen: r == null ? void 0 : r.imagen
1326
1328
  },
1327
1329
  comentario: y == null ? void 0 : y.comment,
1328
1330
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
1329
1331
  };
1330
1332
  await s.post("/api/comentarios", {
1331
1333
  data: {
1332
- autor: a == null ? void 0 : a.id,
1334
+ autor: r == null ? void 0 : r.id,
1333
1335
  comentario: y.comment,
1334
1336
  tarea: n
1335
1337
  }
1336
- }), r(!0), d((v) => [b, ...v]), l();
1338
+ }), a(!0), d((v) => [b, ...v]), l();
1337
1339
  } catch (b) {
1338
1340
  console.error("Error al agregar comentario:", b);
1339
1341
  }
@@ -1356,7 +1358,7 @@ function Je({ currentUser: a, data: e, taskId: n, onNewComment: r }) {
1356
1358
  p && p.map((y, b) => /* @__PURE__ */ t(Ge, { comment: y }, b))
1357
1359
  ] });
1358
1360
  }
1359
- function Xe({ data: a }) {
1361
+ function Xe({ data: r }) {
1360
1362
  const e = {
1361
1363
  0: {
1362
1364
  color: "tw-bg-gray-400",
@@ -1374,13 +1376,13 @@ function Xe({ data: a }) {
1374
1376
  color: "tw-bg-success-regular",
1375
1377
  label: "Finalizada"
1376
1378
  }
1377
- }, n = (r) => r ? Rt(new Date(r), "d MMM", { locale: xt }) : "";
1379
+ }, n = (a) => a ? Rt(new Date(a), "d MMM", { locale: xt }) : "";
1378
1380
  return /* @__PURE__ */ w("div", { children: [
1379
1381
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-row tw-items-center tw-gap-4", children: [
1380
1382
  /* @__PURE__ */ t(pe, { className: "tw-text-2xl tw-font-medium tw-text-neutral-900", children: "Tareas dependientes" }),
1381
- /* @__PURE__ */ t("span", { className: "tw-text-lg tw-font-normal tw-text-neutral-600 tw-bg-[#E1EBF9] tw-w-10 tw-h-10 tw-rounded-full tw-flex tw-items-center tw-justify-center tw-text-primary", children: a == null ? void 0 : a.length })
1383
+ /* @__PURE__ */ t("span", { className: "tw-text-lg tw-font-normal tw-text-neutral-600 tw-bg-[#E1EBF9] tw-w-10 tw-h-10 tw-rounded-full tw-flex tw-items-center tw-justify-center tw-text-primary", children: r == null ? void 0 : r.length })
1382
1384
  ] }),
1383
- /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-2 tw-border tw-border-neutral-200 tw-rounded-lg tw-mt-3", children: a == null ? void 0 : a.map((r) => {
1385
+ /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-2 tw-border tw-border-neutral-200 tw-rounded-lg tw-mt-3", children: r == null ? void 0 : r.map((a) => {
1384
1386
  var s, o, i, c, l;
1385
1387
  return /* @__PURE__ */ w(
1386
1388
  "div",
@@ -1388,28 +1390,28 @@ function Xe({ data: a }) {
1388
1390
  className: "tw-flex tw-flex-row tw-w-full tw-items-center tw-justify-between tw-gap-s tw-border-b tw-border-neutral-200 tw-py-1 tw-px-2",
1389
1391
  children: [
1390
1392
  /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-2", children: [
1391
- /* @__PURE__ */ t(G, { imageUrl: (c = (i = (o = (s = r.responsable) == null ? void 0 : s.image) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url }),
1392
- /* @__PURE__ */ t("p", { className: "tw-text-sm tw-font-normal tw-w-[400px] tw-text-nowrap tw-text-ellipsis tw-overflow-hidden", children: r == null ? void 0 : r.texto_corto })
1393
+ /* @__PURE__ */ t(G, { imageUrl: (c = (i = (o = (s = a.responsable) == null ? void 0 : s.image) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url }),
1394
+ /* @__PURE__ */ t("p", { className: "tw-text-sm tw-font-normal tw-w-[400px] tw-text-nowrap tw-text-ellipsis tw-overflow-hidden", children: a == null ? void 0 : a.texto_corto })
1393
1395
  ] }),
1394
1396
  /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-1", children: [
1395
- /* @__PURE__ */ t("p", { className: "tw-text-sm tw-font-normal", children: n(r == null ? void 0 : r.createdAt) }),
1397
+ /* @__PURE__ */ t("p", { className: "tw-text-sm tw-font-normal", children: n(a == null ? void 0 : a.createdAt) }),
1396
1398
  /* @__PURE__ */ t(
1397
1399
  "div",
1398
1400
  {
1399
- className: `tw-w-4 tw-h-4 tw-bg-gray-400 tw-block tw-rounded-full ${((l = e[r == null ? void 0 : r.estatus]) == null ? void 0 : l.color) ?? "tw-bg-gray-400"}`
1401
+ className: `tw-w-4 tw-h-4 tw-bg-gray-400 tw-block tw-rounded-full ${((l = e[a == null ? void 0 : a.estatus]) == null ? void 0 : l.color) ?? "tw-bg-gray-400"}`
1400
1402
  }
1401
1403
  )
1402
1404
  ] })
1403
1405
  ]
1404
1406
  },
1405
- r.id
1407
+ a.id
1406
1408
  );
1407
1409
  }) })
1408
1410
  ] });
1409
1411
  }
1410
- function Ze({ id: a, texto_largo: e, user_id: n }) {
1411
- const [r, s] = N(e), { updatingTask: o } = at(), i = async () => {
1412
- await o({ id: a, data: { texto_largo: r }, user: n });
1412
+ function Ze({ id: r, texto_largo: e, user_id: n }) {
1413
+ const [a, s] = N(e), { updatingTask: o } = rt(), i = async () => {
1414
+ await o({ id: r, data: { texto_largo: a }, user: n });
1413
1415
  };
1414
1416
  return M(() => {
1415
1417
  s(e);
@@ -1418,7 +1420,7 @@ function Ze({ id: a, texto_largo: e, user_id: n }) {
1418
1420
  /* @__PURE__ */ t(
1419
1421
  zt,
1420
1422
  {
1421
- value: r,
1423
+ value: a,
1422
1424
  onChange: (c) => s(c.target.value),
1423
1425
  onBlur: i,
1424
1426
  autoComplete: "off",
@@ -1428,11 +1430,11 @@ function Ze({ id: a, texto_largo: e, user_id: n }) {
1428
1430
  )
1429
1431
  ] });
1430
1432
  }
1431
- function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1432
- var b, v, q, P, A, E, T, $, B, W;
1433
- const [r, s] = N(null), [o, i] = N(!1), [c, l] = N(!1), [p, d] = N(null), _ = (P = (q = (v = (b = r == null ? void 0 : r.responsable) == null ? void 0 : b.imagen) == null ? void 0 : v.formats) == null ? void 0 : q.thumbnail) == null ? void 0 : P.url, { tasks_api: k, getImageOBP: g } = Q(), { user: m } = U();
1433
+ function Xt({ isOpen: r, setIsOpen: e, taskId: n }) {
1434
+ var b, v, q, P, S, E, T, $, B, W;
1435
+ const [a, s] = N(null), [o, i] = N(!1), [c, l] = N(!1), [p, d] = N(null), _ = (P = (q = (v = (b = a == null ? void 0 : a.responsable) == null ? void 0 : b.imagen) == null ? void 0 : v.formats) == null ? void 0 : q.thumbnail) == null ? void 0 : P.url, { tasks_api: k, getImageOBP: g } = Q(), { user: m } = U();
1434
1436
  M(() => {
1435
- if (a && n || o) {
1437
+ if (r && n || o) {
1436
1438
  const u = async () => {
1437
1439
  const R = await k.get(`/api/detalleTarea/${n}`);
1438
1440
  s(R == null ? void 0 : R.data);
@@ -1445,7 +1447,7 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1445
1447
  };
1446
1448
  u(), D();
1447
1449
  }
1448
- }, [a, n, o]);
1450
+ }, [r, n, o]);
1449
1451
  const x = (u) => u ? Rt(u, "d MMM yyyy, h:mmaaa", {
1450
1452
  locale: xt
1451
1453
  }) : "Fecha no disponible", y = [
@@ -1457,7 +1459,7 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1457
1459
  {
1458
1460
  taskId: n,
1459
1461
  currentUser: p,
1460
- data: r,
1462
+ data: a,
1461
1463
  onNewComment: i
1462
1464
  }
1463
1465
  )
@@ -1465,26 +1467,26 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1465
1467
  {
1466
1468
  id: 2,
1467
1469
  label: "Dependencias",
1468
- component: /* @__PURE__ */ t(Xe, { data: r == null ? void 0 : r.ids_t_dependientes })
1470
+ component: /* @__PURE__ */ t(Xe, { data: a == null ? void 0 : a.ids_t_dependientes })
1469
1471
  }
1470
1472
  ];
1471
- return a && ct.createPortal(
1473
+ return r && ct.createPortal(
1472
1474
  /* @__PURE__ */ w(I, { children: [
1473
1475
  /* @__PURE__ */ t(
1474
1476
  "div",
1475
1477
  {
1476
- className: `tw-fixed tw-inset-0 tw-bg-transparent tw-bg-opacity-50 tw-flex tw-justify-center tw-items-center tw-z-20 ${a ? "tw-pointer-events-auto tw-block" : "tw-pointer-events-none tw-hidden"}`,
1478
+ className: `tw-fixed tw-inset-0 tw-bg-transparent tw-bg-opacity-50 tw-flex tw-justify-center tw-items-center tw-z-20 ${r ? "tw-pointer-events-auto tw-block" : "tw-pointer-events-none tw-hidden"}`,
1477
1479
  onClick: () => e(!1)
1478
1480
  }
1479
1481
  ),
1480
1482
  /* @__PURE__ */ t(
1481
1483
  "section",
1482
1484
  {
1483
- className: `tw-fixed tw-top-0 tw-bottom-0 tw-bg-white tw-bg-opacity-50 tw-flex tw-justify-center tw-items-center tw-w-[55rem] tw-h-screen tw-z-50 tw-overflow-hidden tw-transition-all tw-ease-in-out tw-duration-500 tw-shadow-2xl ${a ? "tw-right-0 tw-pointer-events-auto tw-block" : "tw-right-[-100%] tw-pointer-events-none tw-hidden"}`,
1485
+ className: `tw-fixed tw-top-0 tw-bottom-0 tw-bg-white tw-bg-opacity-50 tw-flex tw-justify-center tw-items-center tw-w-[55rem] tw-h-screen tw-z-50 tw-overflow-hidden tw-transition-all tw-ease-in-out tw-duration-500 tw-shadow-2xl ${r ? "tw-right-0 tw-pointer-events-auto tw-block" : "tw-right-[-100%] tw-pointer-events-none tw-hidden"}`,
1484
1486
  children: /* @__PURE__ */ w("div", { className: "tw-flex tw-w-full tw-h-full tw-flex-col tw-overflow-y-scroll tw-bg-white tw-border-none tw-shadow-xl tw-px-6 tw-py-10", children: [
1485
1487
  /* @__PURE__ */ w("div", { className: "tw-w-full tw-flex tw-items-center tw-flex-row tw-justify-between tw-pb-4 tw-gap-10 tw-border-none", children: [
1486
1488
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-row tw-items-start tw-gap-2 tw-relative", children: [
1487
- ((A = r == null ? void 0 : r.id_t_requerida) == null ? void 0 : A.id) && /* @__PURE__ */ w(I, { children: [
1489
+ ((S = a == null ? void 0 : a.id_t_requerida) == null ? void 0 : S.id) && /* @__PURE__ */ w(I, { children: [
1488
1490
  /* @__PURE__ */ t(
1489
1491
  "div",
1490
1492
  {
@@ -1510,14 +1512,14 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1510
1512
  className: "tw-p-l tw-max-w-[400px] tw-absolute tw-w-fit tw-bg-warning-light tw-rounded-lg tw-border-l-[5px] tw-border-warning-regular tw-text-warning-dark tw-text-xs tw-flex tw-flex-col tw-gap-m",
1511
1513
  children: [
1512
1514
  /* @__PURE__ */ t("p", { className: "tw-font-bold", children: "Requiere completar su tarea requerida:" }),
1513
- /* @__PURE__ */ t("p", { className: "tw-text-2xl tw-text-neutral-600 tw-font-normal", children: (E = r == null ? void 0 : r.id_t_requerida) == null ? void 0 : E.texto_corto })
1515
+ /* @__PURE__ */ t("p", { className: "tw-text-2xl tw-text-neutral-600 tw-font-normal", children: (E = a == null ? void 0 : a.id_t_requerida) == null ? void 0 : E.texto_corto })
1514
1516
  ]
1515
1517
  }
1516
1518
  )
1517
1519
  ] }),
1518
1520
  /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-items-center tw-gap-2", children: /* @__PURE__ */ w("h3", { className: "tw-text-3xl tw-font-semibold tw-text-neutral-900", children: [
1519
- r == null ? void 0 : r.texto_corto,
1520
- (r == null ? void 0 : r.atraso) && /* @__PURE__ */ t($t, { content: (T = r == null ? void 0 : r.atraso) == null ? void 0 : T.motivo, position: "bottom", children: /* @__PURE__ */ t("button", { className: "tw-inline-block tw-align-middle tw-ml-2 tw-h-fit", children: /* @__PURE__ */ t(F, { icon: "exclamation_triangle", color: h.warning.dark, style: { width: "20px", height: "20px" } }) }) })
1521
+ a == null ? void 0 : a.texto_corto,
1522
+ (a == null ? void 0 : a.atraso) && /* @__PURE__ */ t($t, { content: (T = a == null ? void 0 : a.atraso) == null ? void 0 : T.motivo, position: "bottom", children: /* @__PURE__ */ t("button", { className: "tw-inline-block tw-align-middle tw-ml-2 tw-h-fit", children: /* @__PURE__ */ t(F, { icon: "exclamation_triangle", color: h.warning.dark, style: { width: "20px", height: "20px" } }) }) })
1521
1523
  ] }) })
1522
1524
  ] }),
1523
1525
  /* @__PURE__ */ t(
@@ -1532,11 +1534,11 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1532
1534
  )
1533
1535
  ] }),
1534
1536
  /* @__PURE__ */ t("div", { className: "tw-w-full tw-flex tw-flex-row tw-justify-between tw-mt-6", children: /* @__PURE__ */ w("span", { className: "tw-text-black-black_light tw-font-medium tw-text-xl", children: [
1535
- r == null ? void 0 : r.campania,
1537
+ a == null ? void 0 : a.campania,
1536
1538
  " / ",
1537
- r == null ? void 0 : r.nombre_medio
1539
+ a == null ? void 0 : a.nombre_medio
1538
1540
  ] }) }),
1539
- /* @__PURE__ */ t(Ze, { id: n, texto_largo: r == null ? void 0 : r.texto_largo, user_id: m.id }),
1541
+ /* @__PURE__ */ t(Ze, { id: n, texto_largo: a == null ? void 0 : a.texto_largo, user_id: m.id }),
1540
1542
  /* @__PURE__ */ t(
1541
1543
  me,
1542
1544
  {
@@ -1549,7 +1551,7 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1549
1551
  /* @__PURE__ */ t(xe, { className: "tw-border-none", children: /* @__PURE__ */ w("div", { className: "tw-w-full tw-grid tw-grid-cols-3 tw-gap-xy-details tw-p-4", children: [
1550
1552
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1551
1553
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Responsable" }),
1552
- ($ = r == null ? void 0 : r.responsable) != null && $.nombre ? /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-row tw-gap-2 tw-items-center", children: [
1554
+ ($ = a == null ? void 0 : a.responsable) != null && $.nombre ? /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-row tw-gap-2 tw-items-center", children: [
1553
1555
  /* @__PURE__ */ t(
1554
1556
  G,
1555
1557
  {
@@ -1558,40 +1560,40 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1558
1560
  alt: "@shadcn"
1559
1561
  }
1560
1562
  ),
1561
- /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: (B = r == null ? void 0 : r.responsable) == null ? void 0 : B.nombre })
1563
+ /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: (B = a == null ? void 0 : a.responsable) == null ? void 0 : B.nombre })
1562
1564
  ] }) : /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: "Sin responsable" })
1563
1565
  ] }),
1564
1566
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1565
1567
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Equipo asignado" }),
1566
- /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-gap-2", children: /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: ((W = r == null ? void 0 : r.equipo) == null ? void 0 : W.nombre) ?? "Sin equipo" }) })
1568
+ /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-gap-2", children: /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: ((W = a == null ? void 0 : a.equipo) == null ? void 0 : W.nombre) ?? "Sin equipo" }) })
1567
1569
  ] }),
1568
1570
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1569
1571
  /* @__PURE__ */ t("span", { className: "tw-text-xl tw-text-neutral-900 tw-font-medium", children: "Prioridad" }),
1570
- /* @__PURE__ */ t(Jt, { priority: parseInt(r == null ? void 0 : r.prioridad) || 0, id: n, withLabel: !0 })
1572
+ /* @__PURE__ */ t(Jt, { priority: parseInt(a == null ? void 0 : a.prioridad) || 0, id: n, withLabel: !0 })
1571
1573
  ] }),
1572
1574
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1573
1575
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Lista" }),
1574
- /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-gap-2", children: /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: (r == null ? void 0 : r.lista) ?? "Sin lista" }) })
1576
+ /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-row tw-gap-2", children: /* @__PURE__ */ t("span", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: (a == null ? void 0 : a.lista) ?? "Sin lista" }) })
1575
1577
  ] }),
1576
1578
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1577
1579
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Fecha estimada de inicio" }),
1578
- /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(r == null ? void 0 : r.f_inicio_estimada) })
1580
+ /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(a == null ? void 0 : a.f_inicio_estimada) })
1579
1581
  ] }),
1580
1582
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1581
1583
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Fecha estimada de fin" }),
1582
- /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(r == null ? void 0 : r.f_fin_estimada) })
1584
+ /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(a == null ? void 0 : a.f_fin_estimada) })
1583
1585
  ] }),
1584
1586
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1585
1587
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Fecha de fin" }),
1586
- /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(r == null ? void 0 : r.ffin) })
1588
+ /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(a == null ? void 0 : a.ffin) })
1587
1589
  ] }),
1588
1590
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1589
1591
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Creado" }),
1590
- /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(r == null ? void 0 : r.createdAt) })
1592
+ /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(a == null ? void 0 : a.createdAt) })
1591
1593
  ] }),
1592
1594
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-w-auto tw-gap-2", children: [
1593
1595
  /* @__PURE__ */ t("span", { className: "tw-font-sans tw-font-semibold tw-text-[1.4rem] tw-leading-[100%] tw-tracking-normal tw-bg-black", children: "Última modificación" }),
1594
- /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(r == null ? void 0 : r.updatedAt) })
1596
+ /* @__PURE__ */ t("p", { className: "tw-text-lg tw-text-neutral-600 tw-font-normal", children: x(a == null ? void 0 : a.updatedAt) })
1595
1597
  ] })
1596
1598
  ] }) })
1597
1599
  ] })
@@ -1605,11 +1607,11 @@ function Xt({ isOpen: a, setIsOpen: e, taskId: n }) {
1605
1607
  document.body
1606
1608
  );
1607
1609
  }
1608
- const ta = ({
1609
- children: a,
1610
+ const tr = ({
1611
+ children: r,
1610
1612
  actionsRef: e,
1611
1613
  newPosition: n,
1612
- className: r
1614
+ className: a
1613
1615
  }) => {
1614
1616
  const [s, o] = N(), [i, c] = N(!1);
1615
1617
  return M(() => {
@@ -1633,7 +1635,7 @@ const ta = ({
1633
1635
  tw-transition-all tw-duration-200 tw-ease-in-out
1634
1636
  tw-pointer-events-auto
1635
1637
  ${i ? "tw-opacity-100" : "tw-opacity-0 tw-invisible"}
1636
- ${r}
1638
+ ${a}
1637
1639
  `,
1638
1640
  style: {
1639
1641
  top: `${n == null ? void 0 : n.y}px`,
@@ -1641,22 +1643,22 @@ const ta = ({
1641
1643
  zIndex: 1,
1642
1644
  transform: i ? "translateY(0)" : "translateY(8px)"
1643
1645
  },
1644
- children: a
1646
+ children: r
1645
1647
  }
1646
1648
  ),
1647
1649
  document.body
1648
1650
  );
1649
1651
  }, Zt = ({
1650
- status: a,
1652
+ status: r,
1651
1653
  nameRequiredTask: e,
1652
1654
  statusRequiredTask: n,
1653
- id: r,
1655
+ id: a,
1654
1656
  statusLateTask: s = null,
1655
1657
  projectID: o,
1656
1658
  atrasoId: i,
1657
1659
  categoria: c
1658
1660
  }) => {
1659
- const { setElementPosition: l, position: p } = bt(), d = Z(null), { startWorking: _, completeTask: k, startTask: g } = at(), m = Z(!1), [x, y] = N(!1), [b, v] = N(null), [q, P] = N("first"), A = e !== "" && n === 2, [E, T] = N(null), {
1661
+ const { setElementPosition: l, position: p } = bt(), d = Z(null), { startWorking: _, completeTask: k, startTask: g } = rt(), m = Z(!1), [x, y] = N(!1), [b, v] = N(null), [q, P] = N("first"), S = e !== "" && n === 2, [E, T] = N(null), {
1660
1662
  atrasoReasons: $,
1661
1663
  isLoading: B,
1662
1664
  createAtraso: W,
@@ -1666,10 +1668,10 @@ const ta = ({
1666
1668
  s && P("third");
1667
1669
  }, []);
1668
1670
  const f = (K) => {
1669
- P(K), K === "second" && a === 0 && v("Trabajando");
1671
+ P(K), K === "second" && r === 0 && v("Trabajando");
1670
1672
  }, C = () => {
1671
1673
  const K = [];
1672
- return a === 0 && K.push({
1674
+ return r === 0 && K.push({
1673
1675
  name: "Mover a trabajando",
1674
1676
  icon: "arrow_right",
1675
1677
  iconReverse: !1,
@@ -1677,7 +1679,7 @@ const ta = ({
1677
1679
  f("second");
1678
1680
  },
1679
1681
  disabled: !1
1680
- }), a === 1 && K.push(
1682
+ }), r === 1 && K.push(
1681
1683
  {
1682
1684
  name: "Mover a completada",
1683
1685
  icon: "arrow_right",
@@ -1704,12 +1706,12 @@ const ta = ({
1704
1706
  iconReverse: !1,
1705
1707
  onClick: () => f("third"),
1706
1708
  disabled: !1
1707
- }), m != null && m.current ? /* @__PURE__ */ t("div", { className: "tw-w-max tw-h-fit tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-flex tw-items-center tw-gap-2 tw-hover:bg-primary-light tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: /* @__PURE__ */ t("p", { className: "tw-text-sm tw-font-normal tw-text-primary-pastel tw-font-regular", children: "Moviendo..." }) }) : /* @__PURE__ */ t("div", { className: "tw-w-max tw-h-fit tw-flex tw-flex-col tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-gap-3 tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: K.map(({ name: L, icon: S, onClick: O, disabled: wt, iconReverse: dt }, ut) => /* @__PURE__ */ w(
1709
+ }), m != null && m.current ? /* @__PURE__ */ t("div", { className: "tw-w-max tw-h-fit tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-flex tw-items-center tw-gap-2 tw-hover:bg-primary-light tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: /* @__PURE__ */ t("p", { className: "tw-text-sm tw-font-normal tw-text-primary-pastel tw-font-regular", children: "Moviendo..." }) }) : /* @__PURE__ */ t("div", { className: "tw-w-max tw-h-fit tw-flex tw-flex-col tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-gap-3 tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: K.map(({ name: L, icon: A, onClick: O, disabled: wt, iconReverse: dt }, ut) => /* @__PURE__ */ w(
1708
1710
  "button",
1709
1711
  {
1710
1712
  onClick: O,
1711
1713
  className: `
1712
- ${S && dt ? "tw-flex-row-reverse" : ""}
1714
+ ${A && dt ? "tw-flex-row-reverse" : ""}
1713
1715
  tw-flex tw-items-center tw-justify-between tw-transition-colors tw-duration-200 tw-pl-3 tw-pr-10 tw-rounded-md
1714
1716
  tw-text-[14px] tw-text-texts-placeholder tw-font-regular tw-text-left tw-border tw-gap-2
1715
1717
  hover:tw-bg-[#e1ebf9] hover:tw-text-primary-dark tw-font-normal tw-font-sans
@@ -1718,10 +1720,10 @@ const ta = ({
1718
1720
  `,
1719
1721
  children: [
1720
1722
  L,
1721
- S && /* @__PURE__ */ t(
1723
+ A && /* @__PURE__ */ t(
1722
1724
  F,
1723
1725
  {
1724
- icon: S,
1726
+ icon: A,
1725
1727
  size: "xs",
1726
1728
  strokeWidth: 4,
1727
1729
  color: h.primary.regular,
@@ -1733,7 +1735,7 @@ const ta = ({
1733
1735
  ut
1734
1736
  )) });
1735
1737
  }, j = () => /* @__PURE__ */ w("div", { className: "tw-w-max tw-h-fit tw-flex tw-flex-col tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-gap-3 tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: [
1736
- (a === 0 ? ["Trabajando"] : ["Completadas"]).map((L, S) => /* @__PURE__ */ t(
1738
+ (r === 0 ? ["Trabajando"] : ["Completadas"]).map((L, A) => /* @__PURE__ */ t(
1737
1739
  "button",
1738
1740
  {
1739
1741
  onClick: () => {
@@ -1754,14 +1756,14 @@ const ta = ({
1754
1756
  `,
1755
1757
  children: L
1756
1758
  },
1757
- S
1759
+ A
1758
1760
  )),
1759
1761
  /* @__PURE__ */ t(
1760
1762
  "button",
1761
1763
  {
1762
1764
  className: "tw-w-full tw-h-fit tw-bg-texts-enfasis tw-rounded-lg tw-p-1",
1763
1765
  onClick: () => {
1764
- m.current = !0, b === "Trabajando" ? _({ id: r }) : b === "Por hacer" ? g({ id: r }) : k({ id: r, idAtraso: i });
1766
+ m.current = !0, b === "Trabajando" ? _({ id: a }) : b === "Por hacer" ? g({ id: a }) : k({ id: a, idAtraso: i });
1765
1767
  },
1766
1768
  children: /* @__PURE__ */ t("p", { className: "tw-text-[12px] tw-font-normal tw-text-white", children: "Mover" })
1767
1769
  }
@@ -1770,25 +1772,25 @@ const ta = ({
1770
1772
  var L;
1771
1773
  if (B)
1772
1774
  return /* @__PURE__ */ t("div", { children: "Cargando motivos..." });
1773
- const K = ($ == null ? void 0 : $.map((S) => {
1775
+ const K = ($ == null ? void 0 : $.map((A) => {
1774
1776
  var O;
1775
1777
  return {
1776
- id: S == null ? void 0 : S.id,
1777
- nombre: S == null ? void 0 : S.motivo_imj,
1778
- categoria: (O = S == null ? void 0 : S.categoria) == null ? void 0 : O.nombre
1778
+ id: A == null ? void 0 : A.id,
1779
+ nombre: A == null ? void 0 : A.motivo_imj,
1780
+ categoria: (O = A == null ? void 0 : A.categoria) == null ? void 0 : O.nombre
1779
1781
  };
1780
- }).filter((S) => S.categoria === (c == null ? void 0 : c.nombre))) || [];
1782
+ }).filter((A) => A.categoria === (c == null ? void 0 : c.nombre))) || [];
1781
1783
  return K.length > 0 ? /* @__PURE__ */ w("div", { className: "tw-w-[288px] tw-h-fit tw-flex tw-flex-col tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-gap-3 tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: [
1782
1784
  !E && !i ? /* @__PURE__ */ w(I, { children: [
1783
1785
  /* @__PURE__ */ t("p", { className: "tw-text-[14px] tw-text-black-black_regular tw-font-semibold tw-text-left tw-mb-[11px]", children: "Atraso de tarea" }),
1784
1786
  /* @__PURE__ */ t(
1785
- ea,
1787
+ er,
1786
1788
  {
1787
1789
  isOpen: !0,
1788
1790
  options: K,
1789
- onSelect: (S, O) => R({
1791
+ onSelect: (A, O) => R({
1790
1792
  id: O,
1791
- nombre: S
1793
+ nombre: A
1792
1794
  })
1793
1795
  }
1794
1796
  )
@@ -1822,7 +1824,7 @@ const ta = ({
1822
1824
  ] })
1823
1825
  ] }) : /* @__PURE__ */ t("div", { className: "tw-w-[288px] tw-h-fit tw-flex tw-flex-col tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-gap-3 tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: "No hay motivos de atraso para ésta tarea" });
1824
1826
  }, Y = () => /* @__PURE__ */ w("div", { className: "tw-w-max tw-h-fit tw-flex tw-flex-col tw-bg-bg-card tw-rounded-lg tw-p-l tw-shadow-lg tw-gap-3 tw-transition-all tw-duration-200 tw-ease-in-out tw-translate-x-0", children: [
1825
- ["Por hacer"].map((L, S) => /* @__PURE__ */ t(
1827
+ ["Por hacer"].map((L, A) => /* @__PURE__ */ t(
1826
1828
  "button",
1827
1829
  {
1828
1830
  onClick: () => {
@@ -1843,14 +1845,14 @@ const ta = ({
1843
1845
  `,
1844
1846
  children: L
1845
1847
  },
1846
- S
1848
+ A
1847
1849
  )),
1848
1850
  /* @__PURE__ */ t(
1849
1851
  "button",
1850
1852
  {
1851
1853
  className: "tw-w-full tw-h-fit tw-bg-texts-enfasis tw-rounded-lg tw-p-1",
1852
1854
  onClick: () => {
1853
- m.current = !0, g({ id: r });
1855
+ m.current = !0, g({ id: a });
1854
1856
  },
1855
1857
  children: /* @__PURE__ */ t("p", { className: "tw-text-[12px] tw-font-normal tw-text-white", children: "Mover" })
1856
1858
  }
@@ -1868,7 +1870,7 @@ const ta = ({
1868
1870
  if (D)
1869
1871
  try {
1870
1872
  await W({
1871
- taskId: r,
1873
+ taskId: a,
1872
1874
  projectID: o,
1873
1875
  motivo: (D == null ? void 0 : D.id) ?? null
1874
1876
  }), y(!1);
@@ -1877,7 +1879,7 @@ const ta = ({
1877
1879
  }
1878
1880
  };
1879
1881
  return /* @__PURE__ */ w(I, { children: [
1880
- (A && n === 2 || !e) && /* @__PURE__ */ t(
1882
+ (S && n === 2 || !e) && /* @__PURE__ */ t(
1881
1883
  "button",
1882
1884
  {
1883
1885
  ref: d,
@@ -1888,7 +1890,7 @@ const ta = ({
1888
1890
  children: /* @__PURE__ */ t("span", { className: "tw-rotate-90", children: /* @__PURE__ */ t(F, { icon: "elipsis", size: "xs" }) })
1889
1891
  }
1890
1892
  ),
1891
- x && /* @__PURE__ */ t(ta, { actionsRef: d, newPosition: p, children: /* @__PURE__ */ t(
1893
+ x && /* @__PURE__ */ t(tr, { actionsRef: d, newPosition: p, children: /* @__PURE__ */ t(
1892
1894
  "div",
1893
1895
  {
1894
1896
  className: `
@@ -1899,18 +1901,18 @@ const ta = ({
1899
1901
  }
1900
1902
  ) })
1901
1903
  ] });
1902
- }, ea = ({
1903
- isOpen: a,
1904
+ }, er = ({
1905
+ isOpen: r,
1904
1906
  onClose: e,
1905
1907
  options: n,
1906
- onSelect: r,
1908
+ onSelect: a,
1907
1909
  placeholderDropdown: s = "Seleccione una opción",
1908
1910
  placeholderInput: o = "Buscar"
1909
1911
  }) => {
1910
1912
  const [i, c] = N(!1), [l, p] = N(""), [d, _] = N(
1911
1913
  null
1912
1914
  );
1913
- if (!a) return null;
1915
+ if (!r) return null;
1914
1916
  const k = n.filter(
1915
1917
  (g) => typeof g == "string" ? g.toLowerCase().includes(l.toLowerCase()) : g.nombre.toLowerCase().includes(l.toLowerCase())
1916
1918
  );
@@ -2001,7 +2003,7 @@ const ta = ({
2001
2003
  tw-cursor-pointer tw-rounded-md tw-transition-all tw-duration-200 tw-ease-in-out
2002
2004
  hover:tw-bg-blue-blue_medium hover:tw-text-primary-dark ${g.nombre === d ? "tw-text-primary-dark tw-bg-blue-blue_medium" : "tw-text-gray-gray_medium"}`,
2003
2005
  onClick: (x) => {
2004
- x.preventDefault(), r(
2006
+ x.preventDefault(), a(
2005
2007
  g,
2006
2008
  typeof g == "string" ? null : g.id,
2007
2009
  m
@@ -2028,7 +2030,7 @@ const ta = ({
2028
2030
  )
2029
2031
  ] });
2030
2032
  };
2031
- class aa {
2033
+ class rr {
2032
2034
  static toPauseReasons(e) {
2033
2035
  return {
2034
2036
  id: e.id,
@@ -2036,34 +2038,34 @@ class aa {
2036
2038
  };
2037
2039
  }
2038
2040
  }
2039
- const ra = async ({
2040
- tasks_api: a
2041
+ const ar = async ({
2042
+ tasks_api: r
2041
2043
  }) => {
2042
2044
  try {
2043
- const e = await a.get("/api/motivos");
2044
- return J(e.data).map(aa.toPauseReasons);
2045
+ const e = await r.get("/api/motivos");
2046
+ return J(e.data).map(rr.toPauseReasons);
2045
2047
  } catch (e) {
2046
2048
  throw console.log("Error al obtener los usuarios comerciales", e), `Error al obtener los usuarios comerciales: ${e}`;
2047
2049
  }
2048
- }, sa = () => {
2049
- const { tasks_api: a } = Q();
2050
+ }, sr = () => {
2051
+ const { tasks_api: r } = Q();
2050
2052
  return { pauseReasons: it({
2051
2053
  queryKey: ["pause_task_reasons"],
2052
- queryFn: () => ra({
2053
- tasks_api: a
2054
+ queryFn: () => ar({
2055
+ tasks_api: r
2054
2056
  }),
2055
2057
  staleTime: 1e3 * 60 * 60 * 24
2056
2058
  // mantains the data for 24 hours
2057
2059
  }) };
2058
2060
  };
2059
- class na {
2061
+ class nr {
2060
2062
  static toKanbanTasks(e) {
2061
- var r, s, o, i, c, l, p, d, _, k, g;
2063
+ var a, s, o, i, c, l, p, d, _, k, g;
2062
2064
  let n = [];
2063
2065
  return e != null && e.responsable && n.push({
2064
2066
  id: e.responsable.id,
2065
2067
  name: e.responsable.nombre,
2066
- image: (c = (i = (o = (s = (r = e.responsable) == null ? void 0 : r.userOBP) == null ? void 0 : s.imagen) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url
2068
+ image: (c = (i = (o = (s = (a = e.responsable) == null ? void 0 : a.userOBP) == null ? void 0 : s.imagen) == null ? void 0 : o.formats) == null ? void 0 : i.thumbnail) == null ? void 0 : c.url
2067
2069
  }), (l = e == null ? void 0 : e.equipo) != null && l.miembros && e.equipo.miembros.forEach((m) => {
2068
2070
  var x, y, b, v;
2069
2071
  n != null && n.find((q) => q.id === m.idUser.id) || m.idUser && n.push({
@@ -2095,30 +2097,30 @@ class na {
2095
2097
  };
2096
2098
  }
2097
2099
  }
2098
- const _t = async ({ filters: a, tasks_api: e }) => {
2100
+ const _t = async ({ filters: r, tasks_api: e }) => {
2099
2101
  try {
2100
- return (await e.get("/api/listado_tareas?populate=*", { params: a })).data.tareas.map(J).map(na.toKanbanTasks);
2102
+ return (await e.get("/api/listado_tareas?populate=*", { params: r })).data.tareas.map(J).map(nr.toKanbanTasks);
2101
2103
  } catch (n) {
2102
2104
  throw console.log({ error: n }), `Error al obtener las tareas: ${n}`;
2103
2105
  }
2104
- }, kt = (a) => {
2106
+ }, kt = (r) => {
2105
2107
  var e;
2106
- if (a != null && a.hasNextPage) {
2107
- const n = (e = a == null ? void 0 : a.data) == null ? void 0 : e.pages[a.data.pages.length - 1];
2108
- (n == null ? void 0 : n.length) === 30 && (a == null || a.fetchNextPage());
2108
+ if (r != null && r.hasNextPage) {
2109
+ const n = (e = r == null ? void 0 : r.data) == null ? void 0 : e.pages[r.data.pages.length - 1];
2110
+ (n == null ? void 0 : n.length) === 30 && (r == null || r.fetchNextPage());
2109
2111
  }
2110
- }, rt = (a) => ({
2112
+ }, at = (r) => ({
2111
2113
  pagination: {
2112
- page: a,
2114
+ page: r,
2113
2115
  pageSize: 30,
2114
2116
  withCount: !0
2115
2117
  }
2116
2118
  }), te = () => {
2117
2119
  var p;
2118
- const a = st(), { tasks_api: e } = Q(), { user: n } = U(), { filters: r } = V(), [s, o] = N(0), [i, c] = N({
2120
+ const r = st(), { tasks_api: e } = Q(), { user: n } = U(), { filters: a } = V(), [s, o] = N(0), [i, c] = N({
2119
2121
  owner: {
2120
2122
  user: n.id,
2121
- config: ((p = r == null ? void 0 : r.owner) == null ? void 0 : p.config) ?? "yo_y_mis_equipos",
2123
+ config: ((p = a == null ? void 0 : a.owner) == null ? void 0 : p.config) ?? "yo_y_mis_equipos",
2122
2124
  role: n.role
2123
2125
  },
2124
2126
  status: "por_hacer"
@@ -2129,7 +2131,7 @@ const _t = async ({ filters: a, tasks_api: e }) => {
2129
2131
  filters: {
2130
2132
  ...i,
2131
2133
  status: "por_hacer",
2132
- ...rt(d)
2134
+ ...at(d)
2133
2135
  },
2134
2136
  tasks_api: e
2135
2137
  }),
@@ -2139,17 +2141,17 @@ const _t = async ({ filters: a, tasks_api: e }) => {
2139
2141
  });
2140
2142
  return M(() => {
2141
2143
  var d;
2142
- Object.keys(r).length > 0 && c({
2143
- ...r,
2144
+ Object.keys(a).length > 0 && c({
2145
+ ...a,
2144
2146
  owner: {
2145
2147
  user: n.id,
2146
- config: ((d = r == null ? void 0 : r.owner) == null ? void 0 : d.config) ?? "yo_y_mis_equipos",
2148
+ config: ((d = a == null ? void 0 : a.owner) == null ? void 0 : d.config) ?? "yo_y_mis_equipos",
2147
2149
  role: n.role
2148
2150
  },
2149
2151
  status: "por_hacer"
2150
2152
  });
2151
- }, [r]), M(() => {
2152
- a.invalidateQueries({
2153
+ }, [a]), M(() => {
2154
+ r.invalidateQueries({
2153
2155
  queryKey: ["to_do_tasks", i]
2154
2156
  });
2155
2157
  }, [i]), M(() => {
@@ -2158,7 +2160,7 @@ const _t = async ({ filters: a, tasks_api: e }) => {
2158
2160
  params: {
2159
2161
  ...i,
2160
2162
  status: "por_hacer",
2161
- ...rt(1),
2163
+ ...at(1),
2162
2164
  tasks_api: e,
2163
2165
  justCount: !0
2164
2166
  }
@@ -2171,12 +2173,12 @@ const _t = async ({ filters: a, tasks_api: e }) => {
2171
2173
  total: s,
2172
2174
  filtersToSend: i
2173
2175
  };
2174
- }, ee = ({ idTask: a, setOpen: e, paused: n }) => {
2175
- const r = st(), { toDoTasks: s, filtersToSend: o } = te(), [i, c] = N(!1), { control: l, watch: p } = Kt(), { tasksProject: d } = ot(), { postPauseTask: _, postReanudeTask: k } = at(), { pauseReasons: g } = sa(), m = async () => {
2176
+ }, ee = ({ idTask: r, setOpen: e, paused: n }) => {
2177
+ const a = st(), { toDoTasks: s, filtersToSend: o } = te(), [i, c] = N(!1), { control: l, watch: p } = Kt(), { tasksProject: d } = ot(), { postPauseTask: _, postReanudeTask: k } = rt(), { pauseReasons: g } = sr(), m = async () => {
2176
2178
  try {
2177
- if (e(!1), await _({ id: a, motiveId: p("pauseReason") }), await r.invalidateQueries({
2179
+ if (e(!1), await _({ id: r, motiveId: p("pauseReason") }), await a.invalidateQueries({
2178
2180
  queryKey: ["to_do_tasks", o]
2179
- }), await r.invalidateQueries({
2181
+ }), await a.invalidateQueries({
2180
2182
  queryKey: ["tasksProject"]
2181
2183
  }), s && typeof s.refetch == "function" || d && typeof d.refetch == "function") {
2182
2184
  const y = await s.refetch(), b = await d.refetch();
@@ -2187,9 +2189,9 @@ const _t = async ({ filters: a, tasks_api: e }) => {
2187
2189
  }
2188
2190
  }, x = async () => {
2189
2191
  try {
2190
- if (e(!1), await k({ id: a }), await r.invalidateQueries({
2192
+ if (e(!1), await k({ id: r }), await a.invalidateQueries({
2191
2193
  queryKey: ["to_do_tasks", o]
2192
- }), await r.invalidateQueries({
2194
+ }), await a.invalidateQueries({
2193
2195
  queryKey: ["tasksProject"]
2194
2196
  }), s && typeof s.refetch == "function" || d && typeof d.refetch == "function") {
2195
2197
  const y = await s.refetch(), b = await d.refetch();
@@ -2268,9 +2270,9 @@ const _t = async ({ filters: a, tasks_api: e }) => {
2268
2270
  ] })
2269
2271
  ] }) });
2270
2272
  };
2271
- function ae({ trigger: a, children: e, open: n, setOpen: r }) {
2272
- return /* @__PURE__ */ w(ke, { open: n, onOpenChange: r, children: [
2273
- /* @__PURE__ */ t(Ce, { children: a }),
2273
+ function re({ trigger: r, children: e, open: n, setOpen: a }) {
2274
+ return /* @__PURE__ */ w(ke, { open: n, onOpenChange: a, children: [
2275
+ /* @__PURE__ */ t(Ce, { children: r }),
2274
2276
  /* @__PURE__ */ t(
2275
2277
  Te,
2276
2278
  {
@@ -2281,11 +2283,11 @@ function ae({ trigger: a, children: e, open: n, setOpen: r }) {
2281
2283
  )
2282
2284
  ] });
2283
2285
  }
2284
- const la = ({
2285
- id: a,
2286
+ const lr = ({
2287
+ id: r,
2286
2288
  task: e,
2287
2289
  endDate: n,
2288
- users: r,
2290
+ users: a,
2289
2291
  willBePaused: s,
2290
2292
  nameProject: o,
2291
2293
  comments: i,
@@ -2304,12 +2306,12 @@ const la = ({
2304
2306
  categoria: q
2305
2307
  }) => {
2306
2308
  var et, K, L;
2307
- const [P, A] = N(!1), [E, T] = N(!1), { reasignResponsible: $, updateUnitys: B } = at(), { getOBPUrlApi: W } = Q(), [u, D] = N(m ?? 0), R = !!(g && m === g), f = !g || g === 1, C = k === 0, { user: j } = U(), z = () => /* @__PURE__ */ w("div", { className: "tw-flex tw-justify-between tw-items-center tw-w-full tw-h-fit tw-relative", children: [
2309
+ const [P, S] = N(!1), [E, T] = N(!1), { reasignResponsible: $, updateUnitys: B } = rt(), { getOBPUrlApi: W } = Q(), [u, D] = N(m ?? 0), R = !!(g && m === g), f = !g || g === 1, C = k === 0, { user: j } = U(), z = () => /* @__PURE__ */ w("div", { className: "tw-flex tw-justify-between tw-items-center tw-w-full tw-h-fit tw-relative", children: [
2308
2310
  /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-row tw-items-start tw-gap-[8px] tw-w-[calc(100%-32px)]", children: [
2309
2311
  k < 2 && (R || f || C) && /* @__PURE__ */ t(
2310
2312
  Yt,
2311
2313
  {
2312
- id: a,
2314
+ id: r,
2313
2315
  nameRequiredTask: d ?? "",
2314
2316
  statusRequiredTask: _ ?? 0,
2315
2317
  status: k,
@@ -2320,7 +2322,7 @@ const la = ({
2320
2322
  "p",
2321
2323
  {
2322
2324
  className: "tw-overflow-hidden tw-text-ellipsis tw-w-full tw-text-nowrap tw-text-[1.6rem] tw-font-medium tw-text-neutral-900",
2323
- onClick: () => A(!0),
2325
+ onClick: () => S(!0),
2324
2326
  children: e
2325
2327
  }
2326
2328
  )
@@ -2328,7 +2330,7 @@ const la = ({
2328
2330
  (R || f || C) && k !== 2 && /* @__PURE__ */ t(
2329
2331
  Zt,
2330
2332
  {
2331
- id: a,
2333
+ id: r,
2332
2334
  nameRequiredTask: d,
2333
2335
  status: k,
2334
2336
  statusRequiredTask: _,
@@ -2343,8 +2345,8 @@ const la = ({
2343
2345
  2: { title: "Media", color: h.warning.regular },
2344
2346
  3: { title: "Difícil", color: h.danger.regular },
2345
2347
  4: { title: "Muy difícil", color: h.danger.dark }
2346
- }, tt = (S) => {
2347
- D((O) => S === "minus" ? Math.max(0, O - 1) : Math.min(g, O + 1));
2348
+ }, tt = (A) => {
2349
+ D((O) => A === "minus" ? Math.max(0, O - 1) : Math.min(g, O + 1));
2348
2350
  };
2349
2351
  return /* @__PURE__ */ w(I, { children: [
2350
2352
  /* @__PURE__ */ w("div", { className: "tw-bg-white tw-border-cards tw-max-w-[350px] tw-rounded-lg tw-relative tw-h-fit tw-p-[12px_12px] hover:tw-border-active hover:tw-bg-primary-light tw-cursor-pointer tw-transition-all tw-duration-300 hover:tw-border hover:tw-border-blue-500", children: [
@@ -2360,18 +2362,18 @@ const la = ({
2360
2362
  {
2361
2363
  responsible: p,
2362
2364
  role: j == null ? void 0 : j.role,
2363
- users: r.filter((S) => p ? S.id === p : !0).map((S) => Nt(S, W())),
2364
- onClick: async (S, O) => {
2365
+ users: a.filter((A) => p ? A.id === p : !0).map((A) => Nt(A, W())),
2366
+ onClick: async (A, O) => {
2365
2367
  await $({
2366
- idNewResponsible: S,
2367
- id: a,
2368
+ idNewResponsible: A,
2369
+ id: r,
2368
2370
  typeOfSelect: O
2369
2371
  });
2370
2372
  }
2371
2373
  }
2372
2374
  ),
2373
2375
  s && /* @__PURE__ */ t(
2374
- ae,
2376
+ re,
2375
2377
  {
2376
2378
  open: E,
2377
2379
  setOpen: T,
@@ -2394,7 +2396,7 @@ const la = ({
2394
2396
  children: /* @__PURE__ */ t(
2395
2397
  ee,
2396
2398
  {
2397
- idTask: a,
2399
+ idTask: r,
2398
2400
  setOpen: T,
2399
2401
  paused: y
2400
2402
  }
@@ -2436,7 +2438,7 @@ const la = ({
2436
2438
  )
2437
2439
  }
2438
2440
  ),
2439
- /* @__PURE__ */ t(Jt, { priority: c, id: a }),
2441
+ /* @__PURE__ */ t(Jt, { priority: c, id: r }),
2440
2442
  !g || g && k === 0 && /* @__PURE__ */ w(I, { children: [
2441
2443
  /* @__PURE__ */ t(
2442
2444
  F,
@@ -2492,7 +2494,7 @@ const la = ({
2492
2494
  {
2493
2495
  className: "tw-text-xs tw-bg-primary-medium tw-rounded-md tw-py-s tw-px-m tw-text-primary-regular tw-ml-[4px]",
2494
2496
  onClick: () => {
2495
- B({ repeats: u, id: a });
2497
+ B({ repeats: u, id: r });
2496
2498
  },
2497
2499
  children: "Agregar"
2498
2500
  }
@@ -2503,7 +2505,7 @@ const la = ({
2503
2505
  i > 0 && /* @__PURE__ */ t("div", { className: "tw-border-t tw-border-gray-200 tw-mt-4 tw-pt-2", children: /* @__PURE__ */ w(
2504
2506
  "button",
2505
2507
  {
2506
- onClick: () => A(!0),
2508
+ onClick: () => S(!0),
2507
2509
  className: "tw-flex tw-items-center tw-gap-2",
2508
2510
  children: [
2509
2511
  /* @__PURE__ */ t(F, { icon: "comment", size: "xs", strokeWidth: 4 }),
@@ -2512,9 +2514,9 @@ const la = ({
2512
2514
  }
2513
2515
  ) })
2514
2516
  ] }),
2515
- /* @__PURE__ */ t(Xt, { taskId: a, isOpen: P, setIsOpen: A })
2517
+ /* @__PURE__ */ t(Xt, { taskId: r, isOpen: P, setIsOpen: S })
2516
2518
  ] });
2517
- }, mt = ({ title: a, tasks: e, loadNextPage: n, isFetching: r, total: s }) => {
2519
+ }, mt = ({ title: r, tasks: e, loadNextPage: n, isFetching: a, total: s }) => {
2518
2520
  const o = Z(null), i = Z(null), c = Z(!1);
2519
2521
  M(() => {
2520
2522
  var d;
@@ -2535,10 +2537,10 @@ const la = ({
2535
2537
  "Por hacer": "tw-border-texts-placeholder",
2536
2538
  Trabajando: "tw-border-primary-regular",
2537
2539
  Completadas: "tw-border-success-regular"
2538
- }[a]}`,
2540
+ }[r]}`,
2539
2541
  children: [
2540
2542
  /* @__PURE__ */ w("div", { className: "tw-flex tw-justify-between tw-items-center", children: [
2541
- /* @__PURE__ */ t("div", { className: "tw-flex tw-items-center tw-gap-[8px]", children: /* @__PURE__ */ t("p", { className: "tw-text-2xl", children: a }) }),
2543
+ /* @__PURE__ */ t("div", { className: "tw-flex tw-items-center tw-gap-[8px]", children: /* @__PURE__ */ t("p", { className: "tw-text-2xl", children: r }) }),
2542
2544
  /* @__PURE__ */ t("div", { className: "tw-flex tw-items-center tw-gap-[8px]", children: /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-[4px]", children: [
2543
2545
  /* @__PURE__ */ t(
2544
2546
  F,
@@ -2559,15 +2561,15 @@ const la = ({
2559
2561
  className: "tw-flex tw-flex-col tw-gap-[12px] tw-max-w-[350px] tw-overflow-y-auto tw-scrollbar-none tw-pt-4 tw-pb-[200px] tw-h-full hover:tw-bg-gray-100 focus:tw-bg-gray-200 hover:tw-border-gray-300 focus:tw-border-gray-400 focus:tw-outline-none",
2560
2562
  onScroll: l,
2561
2563
  children: [
2562
- e == null ? void 0 : e.map((d) => /* @__PURE__ */ t(la, { ...d }, d.id)),
2563
- r ? /* @__PURE__ */ t(Ke, {}) : /* @__PURE__ */ t("p", { className: "tw-text-center tw-text-gray-500 tw-text-2xl", children: "No hay más tareas por mostrar..." })
2564
+ e == null ? void 0 : e.map((d) => /* @__PURE__ */ t(lr, { ...d }, d.id)),
2565
+ a ? /* @__PURE__ */ t(Ke, {}) : /* @__PURE__ */ t("p", { className: "tw-text-center tw-text-gray-500 tw-text-2xl", children: "No hay más tareas por mostrar..." })
2564
2566
  ]
2565
2567
  }
2566
2568
  )
2567
2569
  ]
2568
2570
  }
2569
2571
  );
2570
- }, St = [
2572
+ }, At = [
2571
2573
  {
2572
2574
  label: "Tipo de dependencia",
2573
2575
  type: "select",
@@ -2618,8 +2620,8 @@ const la = ({
2618
2620
  name: "Muy dificil"
2619
2621
  }]
2620
2622
  }
2621
- ], oa = () => {
2622
- const { user: a } = U(), [e, n] = N([...St]), r = [{
2623
+ ], or = () => {
2624
+ const { user: r } = U(), [e, n] = N([...At]), a = [{
2623
2625
  roles: ["Project Manager", "Manager", "Operation Manager"],
2624
2626
  id: "owner.config",
2625
2627
  filters: [
@@ -2627,9 +2629,9 @@ const la = ({
2627
2629
  ]
2628
2630
  }];
2629
2631
  return M(() => {
2630
- const s = [...St];
2631
- r.forEach((c) => {
2632
- if (c.roles.includes(a.role)) {
2632
+ const s = [...At];
2633
+ a.forEach((c) => {
2634
+ if (c.roles.includes(r.role)) {
2633
2635
  const l = s.find((p) => p.id === c.id);
2634
2636
  l && (l.options.some((d) => d.id === "todas") || (l.options = [
2635
2637
  { id: "todas", name: "Todas las tareas" },
@@ -2639,19 +2641,19 @@ const la = ({
2639
2641
  });
2640
2642
  const o = JSON.stringify(e), i = JSON.stringify(s);
2641
2643
  o !== i && n(s);
2642
- }, [a.role]), {
2644
+ }, [r.role]), {
2643
2645
  filters: e
2644
2646
  };
2645
- }, ia = () => {
2647
+ }, ir = () => {
2646
2648
  var o;
2647
- const { defineFields: a } = V(), { tasksProject: e } = ot(), { filters: n } = oa();
2649
+ const { defineFields: r } = V(), { tasksProject: e } = ot(), { filters: n } = or();
2648
2650
  M(() => {
2649
2651
  (async () => {
2650
2652
  let c = [...n];
2651
- a(c);
2653
+ r(c);
2652
2654
  })();
2653
2655
  }, []);
2654
- let r = (o = e == null ? void 0 : e.data) == null ? void 0 : o.filter((i) => {
2656
+ let a = (o = e == null ? void 0 : e.data) == null ? void 0 : o.filter((i) => {
2655
2657
  var c;
2656
2658
  return ((c = i == null ? void 0 : i.tasks) == null ? void 0 : c.length) === 0;
2657
2659
  }).reduce((i, c) => (i[c.status] = i[c.status] || [], i[c.status].push(c), i), {});
@@ -2660,34 +2662,34 @@ const la = ({
2660
2662
  return /* @__PURE__ */ t(
2661
2663
  mt,
2662
2664
  {
2663
- total: ((l = r == null ? void 0 : r[c]) == null ? void 0 : l.length) ?? 0,
2665
+ total: ((l = a == null ? void 0 : a[c]) == null ? void 0 : l.length) ?? 0,
2664
2666
  title: i,
2665
- tasks: (r == null ? void 0 : r[c]) ?? [],
2667
+ tasks: (a == null ? void 0 : a[c]) ?? [],
2666
2668
  isFetching: e == null ? void 0 : e.isFetching,
2667
2669
  isLoadingData: e == null ? void 0 : e.isLoading
2668
2670
  }
2669
2671
  );
2670
2672
  }) });
2671
- }, ca = () => {
2672
- var r, s;
2673
- const { toDoTasks: a, total: e } = te(), n = [...((s = (r = a == null ? void 0 : a.data) == null ? void 0 : r.pages) == null ? void 0 : s.flat()) ?? []];
2673
+ }, cr = () => {
2674
+ var a, s;
2675
+ const { toDoTasks: r, total: e } = te(), n = [...((s = (a = r == null ? void 0 : r.data) == null ? void 0 : a.pages) == null ? void 0 : s.flat()) ?? []];
2674
2676
  return /* @__PURE__ */ t(
2675
2677
  mt,
2676
2678
  {
2677
2679
  total: e,
2678
2680
  title: "Por hacer",
2679
2681
  tasks: n,
2680
- loadNextPage: () => kt(a),
2681
- isFetching: a == null ? void 0 : a.isFetching,
2682
- isLoadingData: a == null ? void 0 : a.isLoading
2682
+ loadNextPage: () => kt(r),
2683
+ isFetching: r == null ? void 0 : r.isFetching,
2684
+ isLoadingData: r == null ? void 0 : r.isLoading
2683
2685
  }
2684
2686
  );
2685
- }, wa = () => {
2687
+ }, wr = () => {
2686
2688
  var p;
2687
- const a = st(), { tasks_api: e } = Q(), { user: n } = U(), { filters: r } = V(), [s, o] = N(0), [i, c] = N({
2689
+ const r = st(), { tasks_api: e } = Q(), { user: n } = U(), { filters: a } = V(), [s, o] = N(0), [i, c] = N({
2688
2690
  owner: {
2689
2691
  user: n.id,
2690
- config: ((p = r == null ? void 0 : r.owner) == null ? void 0 : p.config) ?? "yo_y_mis_equipos",
2692
+ config: ((p = a == null ? void 0 : a.owner) == null ? void 0 : p.config) ?? "yo_y_mis_equipos",
2691
2693
  role: n.role
2692
2694
  },
2693
2695
  status: "trabajando"
@@ -2698,7 +2700,7 @@ const la = ({
2698
2700
  filters: {
2699
2701
  ...i,
2700
2702
  status: "trabajando",
2701
- ...rt(d)
2703
+ ...at(d)
2702
2704
  },
2703
2705
  tasks_api: e
2704
2706
  }),
@@ -2708,17 +2710,17 @@ const la = ({
2708
2710
  });
2709
2711
  return M(() => {
2710
2712
  var d;
2711
- Object.keys(r).length > 0 && c({
2712
- ...r,
2713
+ Object.keys(a).length > 0 && c({
2714
+ ...a,
2713
2715
  owner: {
2714
2716
  user: n.id,
2715
- config: ((d = r == null ? void 0 : r.owner) == null ? void 0 : d.config) ?? "yo_y_mis_equipos",
2717
+ config: ((d = a == null ? void 0 : a.owner) == null ? void 0 : d.config) ?? "yo_y_mis_equipos",
2716
2718
  role: n.role
2717
2719
  },
2718
2720
  status: "trabajando"
2719
2721
  });
2720
- }, [r]), M(() => {
2721
- a.invalidateQueries({
2722
+ }, [a]), M(() => {
2723
+ r.invalidateQueries({
2722
2724
  queryKey: ["working_tasks", i]
2723
2725
  });
2724
2726
  }, [i]), M(() => {
@@ -2727,7 +2729,7 @@ const la = ({
2727
2729
  params: {
2728
2730
  ...i,
2729
2731
  status: "trabajando",
2730
- ...rt(1),
2732
+ ...at(1),
2731
2733
  tasks_api: e,
2732
2734
  justCount: !0
2733
2735
  }
@@ -2739,25 +2741,25 @@ const la = ({
2739
2741
  workingTasks: l,
2740
2742
  total: s
2741
2743
  };
2742
- }, da = () => {
2743
- var r, s;
2744
- const { workingTasks: a, total: e } = wa(), n = [...((s = (r = a == null ? void 0 : a.data) == null ? void 0 : r.pages) == null ? void 0 : s.flat()) ?? []];
2744
+ }, dr = () => {
2745
+ var a, s;
2746
+ const { workingTasks: r, total: e } = wr(), n = [...((s = (a = r == null ? void 0 : r.data) == null ? void 0 : a.pages) == null ? void 0 : s.flat()) ?? []];
2745
2747
  return /* @__PURE__ */ t(
2746
2748
  mt,
2747
2749
  {
2748
2750
  total: e,
2749
2751
  title: "Trabajando",
2750
2752
  tasks: n,
2751
- loadNextPage: () => kt(a),
2752
- isFetching: a == null ? void 0 : a.isFetching
2753
+ loadNextPage: () => kt(r),
2754
+ isFetching: r == null ? void 0 : r.isFetching
2753
2755
  }
2754
2756
  );
2755
- }, ua = () => {
2757
+ }, ur = () => {
2756
2758
  var p;
2757
- const a = st(), { user: e } = U(), { tasks_api: n } = Q(), { filters: r } = V(), [s, o] = N(0), [i, c] = N({
2759
+ const r = st(), { user: e } = U(), { tasks_api: n } = Q(), { filters: a } = V(), [s, o] = N(0), [i, c] = N({
2758
2760
  owner: {
2759
2761
  user: e.id,
2760
- config: ((p = r == null ? void 0 : r.owner) == null ? void 0 : p.config) ?? "yo_y_mis_equipos",
2762
+ config: ((p = a == null ? void 0 : a.owner) == null ? void 0 : p.config) ?? "yo_y_mis_equipos",
2761
2763
  role: e.role
2762
2764
  },
2763
2765
  status: "completadas"
@@ -2768,7 +2770,7 @@ const la = ({
2768
2770
  filters: {
2769
2771
  ...i,
2770
2772
  status: "completadas",
2771
- ...rt(d)
2773
+ ...at(d)
2772
2774
  },
2773
2775
  tasks_api: n
2774
2776
  }),
@@ -2778,17 +2780,17 @@ const la = ({
2778
2780
  });
2779
2781
  return M(() => {
2780
2782
  var d;
2781
- Object.keys(r).length > 0 && c({
2782
- ...r,
2783
+ Object.keys(a).length > 0 && c({
2784
+ ...a,
2783
2785
  owner: {
2784
2786
  user: e.id,
2785
- config: ((d = r == null ? void 0 : r.owner) == null ? void 0 : d.config) ?? "yo_y_mis_equipos",
2787
+ config: ((d = a == null ? void 0 : a.owner) == null ? void 0 : d.config) ?? "yo_y_mis_equipos",
2786
2788
  role: e.role
2787
2789
  },
2788
2790
  status: "completadas"
2789
2791
  });
2790
- }, [r]), M(() => {
2791
- a.invalidateQueries({
2792
+ }, [a]), M(() => {
2793
+ r.invalidateQueries({
2792
2794
  queryKey: ["done_tasks", i]
2793
2795
  });
2794
2796
  }, [i]), M(() => {
@@ -2797,7 +2799,7 @@ const la = ({
2797
2799
  params: {
2798
2800
  ...i,
2799
2801
  status: "completadas",
2800
- ...rt(1),
2802
+ ...at(1),
2801
2803
  justCount: !0,
2802
2804
  tasks_api: n
2803
2805
  }
@@ -2809,16 +2811,16 @@ const la = ({
2809
2811
  doneTasks: l,
2810
2812
  total: s
2811
2813
  };
2812
- }, pa = () => {
2813
- var r, s;
2814
- const { doneTasks: a, total: e } = ua(), n = [...((s = (r = a == null ? void 0 : a.data) == null ? void 0 : r.pages) == null ? void 0 : s.flat()) ?? []];
2814
+ }, pr = () => {
2815
+ var a, s;
2816
+ const { doneTasks: r, total: e } = ur(), n = [...((s = (a = r == null ? void 0 : r.data) == null ? void 0 : a.pages) == null ? void 0 : s.flat()) ?? []];
2815
2817
  return /* @__PURE__ */ t(
2816
2818
  mt,
2817
2819
  {
2818
2820
  title: "Completadas",
2819
2821
  tasks: n,
2820
- loadNextPage: () => kt(a),
2821
- isFetching: a == null ? void 0 : a.isFetching,
2822
+ loadNextPage: () => kt(r),
2823
+ isFetching: r == null ? void 0 : r.isFetching,
2822
2824
  total: e
2823
2825
  }
2824
2826
  );
@@ -2831,15 +2833,15 @@ class pt {
2831
2833
  };
2832
2834
  }
2833
2835
  }
2834
- const ma = () => {
2835
- const { tasks_api: a } = Q(), { filters: e } = V(), { user: n } = U();
2836
+ const mr = () => {
2837
+ const { tasks_api: r } = Q(), { filters: e } = V(), { user: n } = U();
2836
2838
  return {
2837
2839
  //methods
2838
2840
  getSalesmanAndProjects: async () => {
2839
2841
  var l;
2840
2842
  const [i, c] = await Promise.all([
2841
- a.get("/api/obtener-comerciales"),
2842
- a.get("/api/listado_tareas", {
2843
+ r.get("/api/obtener-comerciales"),
2844
+ r.get("/api/listado_tareas", {
2843
2845
  params: {
2844
2846
  ...e,
2845
2847
  owner: {
@@ -2858,7 +2860,7 @@ const ma = () => {
2858
2860
  },
2859
2861
  getProjects: async () => {
2860
2862
  var c;
2861
- return (await a.get("/api/listado_tareas", {
2863
+ return (await r.get("/api/listado_tareas", {
2862
2864
  params: {
2863
2865
  ...e,
2864
2866
  owner: {
@@ -2870,9 +2872,9 @@ const ma = () => {
2870
2872
  }
2871
2873
  })).data.map(pt.toSalesmanUsers);
2872
2874
  },
2873
- getSalesmans: async () => (await a.get("/api/obtener-comerciales")).data.map(pt.toSalesmanUsers)
2875
+ getSalesmans: async () => (await r.get("/api/obtener-comerciales")).data.map(pt.toSalesmanUsers)
2874
2876
  };
2875
- }, At = [
2877
+ }, St = [
2876
2878
  {
2877
2879
  label: "Tipo de dependencia",
2878
2880
  type: "select",
@@ -2958,8 +2960,8 @@ const ma = () => {
2958
2960
  id: "ejecutivo",
2959
2961
  options: []
2960
2962
  }
2961
- ], ga = () => {
2962
- const { user: a } = U(), [e, n] = N([...At]), r = [{
2963
+ ], gr = () => {
2964
+ const { user: r } = U(), [e, n] = N([...St]), a = [{
2963
2965
  roles: ["Project Manager", "Manager", "Operation Manager"],
2964
2966
  id: "owner.config",
2965
2967
  filters: [
@@ -2967,9 +2969,9 @@ const ma = () => {
2967
2969
  ]
2968
2970
  }];
2969
2971
  return M(() => {
2970
- const s = [...At];
2971
- r.forEach((c) => {
2972
- if (c.roles.includes(a.role)) {
2972
+ const s = [...St];
2973
+ a.forEach((c) => {
2974
+ if (c.roles.includes(r.role)) {
2973
2975
  const l = s.find((p) => p.id === c.id);
2974
2976
  l && (l.options.some((d) => d.id === "todas") || (l.options = [
2975
2977
  { id: "todas", name: "Todas las tareas" },
@@ -2979,41 +2981,41 @@ const ma = () => {
2979
2981
  });
2980
2982
  const o = JSON.stringify(e), i = JSON.stringify(s);
2981
2983
  o !== i && n(s);
2982
- }, [a.role]), {
2984
+ }, [r.role]), {
2983
2985
  filters: e
2984
2986
  };
2985
- }, ha = () => {
2986
- const { defineFields: a } = V(), { getSalesmanAndProjects: e } = ma(), { filters: n } = ga();
2987
+ }, hr = () => {
2988
+ const { defineFields: r } = V(), { getSalesmanAndProjects: e } = mr(), { filters: n } = gr();
2987
2989
  return M(() => {
2988
2990
  (async () => {
2989
2991
  let s = [...n], { salesmanUsers: o, projects: i } = await e();
2990
- a(
2992
+ r(
2991
2993
  s.map((c) => (c.id === "project.id" && (c.options = i), c.id === "salesman.id" && (c.options = o), c))
2992
2994
  );
2993
2995
  })();
2994
2996
  }, []), /* @__PURE__ */ w("div", { className: "tw-flex tw-gap-4 tw-w-full tw-h-full tw-min-h-[100%] tw-relative", children: [
2995
- /* @__PURE__ */ t(ca, {}),
2996
- /* @__PURE__ */ t(da, {}),
2997
- /* @__PURE__ */ t(pa, {})
2997
+ /* @__PURE__ */ t(cr, {}),
2998
+ /* @__PURE__ */ t(dr, {}),
2999
+ /* @__PURE__ */ t(pr, {})
2998
3000
  ] });
2999
- }, re = nt({}), xa = ({ children: a }) => {
3000
- const [e, n] = N([]), r = (s) => {
3001
+ }, ae = nt({}), xr = ({ children: r }) => {
3002
+ const [e, n] = N([]), a = (s) => {
3001
3003
  n((o) => o.includes(s) ? o.filter((i) => i !== s) : [...o, s]);
3002
3004
  };
3003
3005
  return /* @__PURE__ */ t(
3004
- re.Provider,
3006
+ ae.Provider,
3005
3007
  {
3006
3008
  value: {
3007
3009
  //properties
3008
3010
  selectedTasks: e,
3009
3011
  //methods
3010
- selectTask: r
3012
+ selectTask: a
3011
3013
  },
3012
- children: a
3014
+ children: r
3013
3015
  }
3014
3016
  );
3015
- }, fa = () => lt(re), se = () => {
3016
- const a = () => /* @__PURE__ */ w("div", { className: "tw-w-full tw-flex tw-gap-m", children: [
3017
+ }, fr = () => lt(ae), se = () => {
3018
+ const r = () => /* @__PURE__ */ w("div", { className: "tw-w-full tw-flex tw-gap-m", children: [
3017
3019
  /* @__PURE__ */ t("div", { className: "tw-w-[30px] tw-h-[30px] tw-min-w-[30px] tw-min-h-[30px] tw-bg-gray-200 tw-rounded-full tw-animate-pulse" }),
3018
3020
  /* @__PURE__ */ t("div", { className: "tw-w-[30%] tw-h-[30px] tw-bg-gray-200 tw-rounded-md tw-animate-pulse" }),
3019
3021
  /* @__PURE__ */ t("div", { className: "tw-w-[30px] tw-h-[30px] tw-min-w-[30px] tw-min-h-[30px] tw-bg-gray-200 tw-rounded-lg tw-animate-pulse" }),
@@ -3026,23 +3028,23 @@ const ma = () => {
3026
3028
  /* @__PURE__ */ t("div", { className: "tw-w-[30px] tw-h-[30px] tw-min-w-[30px] tw-min-h-[30px] tw-bg-gray-200 tw-rounded-lg tw-animate-pulse" })
3027
3029
  ] });
3028
3030
  return /* @__PURE__ */ w("div", { className: "tw-flex tw-flex-col tw-gap-m", children: [
3029
- /* @__PURE__ */ t(a, {}),
3031
+ /* @__PURE__ */ t(r, {}),
3030
3032
  /* @__PURE__ */ w("div", { className: "tw-pl-5 tw-flex tw-flex-col tw-gap-m", children: [
3031
- /* @__PURE__ */ t(a, {}),
3032
- /* @__PURE__ */ t("div", { className: "tw-pl-5", children: /* @__PURE__ */ t(a, {}) })
3033
+ /* @__PURE__ */ t(r, {}),
3034
+ /* @__PURE__ */ t("div", { className: "tw-pl-5", children: /* @__PURE__ */ t(r, {}) })
3033
3035
  ] }),
3034
- /* @__PURE__ */ t(a, {}),
3036
+ /* @__PURE__ */ t(r, {}),
3035
3037
  /* @__PURE__ */ w("div", { className: "tw-pl-5 tw-flex tw-flex-col tw-gap-m", children: [
3036
- /* @__PURE__ */ t(a, {}),
3037
- /* @__PURE__ */ t("div", { className: "tw-pl-5", children: /* @__PURE__ */ t(a, {}) })
3038
+ /* @__PURE__ */ t(r, {}),
3039
+ /* @__PURE__ */ t("div", { className: "tw-pl-5", children: /* @__PURE__ */ t(r, {}) })
3038
3040
  ] })
3039
3041
  ] });
3040
- }, ne = ({ startDate: a, endDate: e }) => /* @__PURE__ */ w(I, { children: [
3042
+ }, ne = ({ startDate: r, endDate: e }) => /* @__PURE__ */ w(I, { children: [
3041
3043
  /* @__PURE__ */ w("div", { className: "tw-gap-s tw-bg-gray-100 tw-rounded-md tw-h-[30px] tw-w-fit tw-flex tw-justify-center tw-items-center tw-px-xxxl", children: [
3042
3044
  /* @__PURE__ */ t(F, { icon: "calendar", size: "xs", strokeWidth: 4, color: h.texts.subtext }),
3043
3045
  /* @__PURE__ */ w("p", { className: "tw-text-lg", children: [
3044
3046
  " ",
3045
- jt(a)
3047
+ jt(r)
3046
3048
  ] })
3047
3049
  ] }),
3048
3050
  /* @__PURE__ */ t(F, { icon: "arrow_right", size: "xs", strokeWidth: 4, color: h.texts.DEFAULT }),
@@ -3054,10 +3056,10 @@ const ma = () => {
3054
3056
  ] })
3055
3057
  ] })
3056
3058
  ] }), le = ({
3057
- id: a,
3059
+ id: r,
3058
3060
  priority: e,
3059
3061
  difficulty: n,
3060
- endDate: r,
3062
+ endDate: a,
3061
3063
  atraso: s
3062
3064
  }) => {
3063
3065
  var p, d, _;
@@ -3251,21 +3253,21 @@ const ma = () => {
3251
3253
  }
3252
3254
  ),
3253
3255
  /* @__PURE__ */ t(F, { icon: "calendar", size: "xs", strokeWidth: 3, color: h.texts.subtext }),
3254
- /* @__PURE__ */ t("p", { className: "tw-text-xl tw-font-regular tw-text-texts-subtext", children: `${r.getDate()} ${vt(r.getMonth()).slice(0, 3)}` })
3256
+ /* @__PURE__ */ t("p", { className: "tw-text-xl tw-font-regular tw-text-texts-subtext", children: `${a.getDate()} ${vt(a.getMonth()).slice(0, 3)}` })
3255
3257
  ] })
3256
3258
  ] });
3257
- }, ba = ({ id: a }) => {
3258
- const { selectedTasks: e, selectTask: n } = fa();
3259
+ }, br = ({ id: r }) => {
3260
+ const { selectedTasks: e, selectTask: n } = fr();
3259
3261
  return /* @__PURE__ */ w(I, { children: [
3260
3262
  /* @__PURE__ */ t(
3261
3263
  "label",
3262
3264
  {
3263
3265
  className: "tw-cursor-pointer tw-w-[20px] tw-h-[20px] tw-border-2 tw-border-gray-200 tw-rounded-md tw-flex tw-justify-center tw-items-center",
3264
- htmlFor: a.toString(),
3266
+ htmlFor: r.toString(),
3265
3267
  children: /* @__PURE__ */ t(
3266
3268
  "span",
3267
3269
  {
3268
- className: `${e.includes(a) ? "tw-opacity-100" : "tw-opacity-0"} tw-transition-opacity tw-duration-500`,
3270
+ className: `${e.includes(r) ? "tw-opacity-100" : "tw-opacity-0"} tw-transition-opacity tw-duration-500`,
3269
3271
  children: /* @__PURE__ */ t(
3270
3272
  F,
3271
3273
  {
@@ -3283,46 +3285,46 @@ const ma = () => {
3283
3285
  "input",
3284
3286
  {
3285
3287
  className: "tw-hidden",
3286
- id: a.toString(),
3288
+ id: r.toString(),
3287
3289
  type: "checkbox",
3288
- onChange: () => n(a)
3290
+ onChange: () => n(r)
3289
3291
  }
3290
3292
  )
3291
3293
  ] });
3292
- }, oe = ({ task: a }) => /* @__PURE__ */ t(
3294
+ }, oe = ({ task: r }) => /* @__PURE__ */ t(
3293
3295
  H,
3294
3296
  {
3295
- dispatch: /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-texts-subtext tw-max-w-[400px] tw-truncate", children: a }),
3296
- children: /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-texts-subtext tw-p-2 tw-max-w-[400px]", children: a })
3297
+ dispatch: /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-texts-subtext tw-max-w-[400px] tw-truncate", children: r }),
3298
+ children: /* @__PURE__ */ t("p", { className: "tw-text-xl tw-text-texts-subtext tw-p-2 tw-max-w-[400px]", children: r })
3297
3299
  }
3298
- ), ya = ({ id: a }) => {
3300
+ ), yr = ({ id: r }) => {
3299
3301
  var k, g, m, x, y;
3300
- const [e, n] = N(!1), [r, s] = N(!1), { tasksProject: o } = ot(), { reasignResponsible: i } = at(), { getOBPUrlApi: c } = Q(), l = (k = o == null ? void 0 : o.data) == null ? void 0 : k.find((b) => b.id === a), [p, d] = N(null), { user: _ } = U();
3302
+ const [e, n] = N(!1), [a, s] = N(!1), { tasksProject: o } = ot(), { reasignResponsible: i } = rt(), { getOBPUrlApi: c } = Q(), l = (k = o == null ? void 0 : o.data) == null ? void 0 : k.find((b) => b.id === r), [p, d] = N(null), { user: _ } = U();
3301
3303
  return /* @__PURE__ */ w(I, { children: [
3302
3304
  /* @__PURE__ */ t("div", { className: "tw-border-b tw-border-gray-200 tw-pb-3", children: /* @__PURE__ */ w(
3303
3305
  "div",
3304
3306
  {
3305
3307
  className: "tw-ml-[30px] tw-mb-3 tw-mt-1 tw-p-2 tw-flex tw-flex-wrap tw-items-center tw-gap-xl tw-rounded-md hover:tw-bg-gray-100",
3306
3308
  onMouseEnter: () => {
3307
- d(a);
3309
+ d(r);
3308
3310
  },
3309
3311
  onMouseLeave: () => d(null),
3310
3312
  onClick: () => s(!0),
3311
3313
  children: [
3312
- !(l != null && l.nameRequiredTask) || (l == null ? void 0 : l.nameRequiredTask) !== "" && (l == null ? void 0 : l.statusRequiredTask) === 2 && /* @__PURE__ */ t(ba, { id: a }),
3314
+ !(l != null && l.nameRequiredTask) || (l == null ? void 0 : l.nameRequiredTask) !== "" && (l == null ? void 0 : l.statusRequiredTask) === 2 && /* @__PURE__ */ t(br, { id: r }),
3313
3315
  /* @__PURE__ */ t(
3314
3316
  Yt,
3315
3317
  {
3316
- id: a,
3318
+ id: r,
3317
3319
  idAtraso: (g = l == null ? void 0 : l.atraso) == null ? void 0 : g.atrasoId,
3318
3320
  nameRequiredTask: (l == null ? void 0 : l.nameRequiredTask) ?? "",
3319
3321
  status: l == null ? void 0 : l.status,
3320
3322
  statusRequiredTask: (l == null ? void 0 : l.statusRequiredTask) ?? 0
3321
3323
  },
3322
- a
3324
+ r
3323
3325
  ),
3324
3326
  (l == null ? void 0 : l.willBePaused) && /* @__PURE__ */ t(
3325
- ae,
3327
+ re,
3326
3328
  {
3327
3329
  open: e,
3328
3330
  setOpen: n,
@@ -3361,7 +3363,7 @@ const ma = () => {
3361
3363
  var q;
3362
3364
  await i({
3363
3365
  idNewResponsible: (q = b == null ? void 0 : b.tasksUser) == null ? void 0 : q.id,
3364
- id: a,
3366
+ id: r,
3365
3367
  typeOfSelect: v
3366
3368
  });
3367
3369
  },
@@ -3373,7 +3375,7 @@ const ma = () => {
3373
3375
  /* @__PURE__ */ t(
3374
3376
  le,
3375
3377
  {
3376
- id: a,
3378
+ id: r,
3377
3379
  priority: l == null ? void 0 : l.priority,
3378
3380
  difficulty: l.difficulty,
3379
3381
  endDate: l == null ? void 0 : l.endDate,
@@ -3381,7 +3383,7 @@ const ma = () => {
3381
3383
  }
3382
3384
  ),
3383
3385
  /* @__PURE__ */ t(ne, { startDate: l == null ? void 0 : l.startDate, endDate: l == null ? void 0 : l.endDate }),
3384
- p === a && /* @__PURE__ */ w("div", { className: "tw-h-[30px] tw-bg-silver-silver_dark tw-rounded-md tw-flex tw-justify-center tw-items-center tw-gap-2 tw-p-[4px] tw-rounded-[12px]", children: [
3386
+ p === r && /* @__PURE__ */ w("div", { className: "tw-h-[30px] tw-bg-silver-silver_dark tw-rounded-md tw-flex tw-justify-center tw-items-center tw-gap-2 tw-p-[4px] tw-rounded-[12px]", children: [
3385
3387
  /* @__PURE__ */ t(
3386
3388
  H,
3387
3389
  {
@@ -3417,7 +3419,7 @@ const ma = () => {
3417
3419
  children: /* @__PURE__ */ t(
3418
3420
  Zt,
3419
3421
  {
3420
- id: a,
3422
+ id: r,
3421
3423
  nameRequiredTask: l.nameRequiredTask,
3422
3424
  status: l.status,
3423
3425
  statusRequiredTask: l.statusRequiredTask,
@@ -3432,11 +3434,11 @@ const ma = () => {
3432
3434
  ]
3433
3435
  }
3434
3436
  ) }),
3435
- /* @__PURE__ */ t(Xt, { taskId: a, isOpen: r, setIsOpen: s })
3437
+ /* @__PURE__ */ t(Xt, { taskId: r, isOpen: a, setIsOpen: s })
3436
3438
  ] });
3437
- }, ie = ({ id: a }) => {
3439
+ }, ie = ({ id: r }) => {
3438
3440
  var c, l, p, d, _, k;
3439
- const { tasksProject: e, openTasks: n, openTask: r } = ot(), s = (c = e == null ? void 0 : e.data) == null ? void 0 : c.find((g) => g.id === a), i = (() => {
3441
+ const { tasksProject: e, openTasks: n, openTask: a } = ot(), s = (c = e == null ? void 0 : e.data) == null ? void 0 : c.find((g) => g.id === r), i = (() => {
3440
3442
  var x;
3441
3443
  const g = e == null ? void 0 : e.data, m = [];
3442
3444
  return (x = s == null ? void 0 : s.tasks) == null || x.forEach((y) => {
@@ -3449,12 +3451,12 @@ const ma = () => {
3449
3451
  "div",
3450
3452
  {
3451
3453
  className: "tw-flex tw-items-center tw-gap-m tw-flex-wrap hover:tw-bg-silver-silver_light tw-p-2 tw-rounded-md tw-cursor-pointer",
3452
- onClick: () => r(a),
3454
+ onClick: () => a(r),
3453
3455
  children: [
3454
3456
  /* @__PURE__ */ t(
3455
3457
  "button",
3456
3458
  {
3457
- className: `${n.includes(a) ? "" : "tw--rotate-90"} tw-transition-all tw-duration-300`,
3459
+ className: `${n.includes(r) ? "" : "tw--rotate-90"} tw-transition-all tw-duration-300`,
3458
3460
  children: /* @__PURE__ */ t(F, { icon: "angle_down_outline", color: h.texts.subtext })
3459
3461
  }
3460
3462
  ),
@@ -3463,7 +3465,7 @@ const ma = () => {
3463
3465
  /* @__PURE__ */ t(
3464
3466
  le,
3465
3467
  {
3466
- id: a,
3468
+ id: r,
3467
3469
  priority: s == null ? void 0 : s.priority,
3468
3470
  difficulty: s == null ? void 0 : s.difficulty,
3469
3471
  endDate: s == null ? void 0 : s.endDate,
@@ -3478,19 +3480,19 @@ const ma = () => {
3478
3480
  ]
3479
3481
  }
3480
3482
  ),
3481
- n.includes(a) && /* @__PURE__ */ t("div", { className: "tw-ml-[30px]", children: ((_ = s == null ? void 0 : s.tasks) == null ? void 0 : _.length) > 0 ? (k = s == null ? void 0 : s.tasks) == null ? void 0 : k.map((g) => /* @__PURE__ */ t(ie, { id: g == null ? void 0 : g.id })) : /* @__PURE__ */ t(ya, { id: s == null ? void 0 : s.id }) })
3483
+ n.includes(r) && /* @__PURE__ */ t("div", { className: "tw-ml-[30px]", children: ((_ = s == null ? void 0 : s.tasks) == null ? void 0 : _.length) > 0 ? (k = s == null ? void 0 : s.tasks) == null ? void 0 : k.map((g) => /* @__PURE__ */ t(ie, { id: g == null ? void 0 : g.id })) : /* @__PURE__ */ t(yr, { id: s == null ? void 0 : s.id }) })
3482
3484
  ] }) : null;
3483
- }, va = () => {
3484
- var r;
3485
- const { tasksProject: a, projectID: e } = ot();
3486
- if (a != null && a.isFetching || a != null && a.isLoading) return /* @__PURE__ */ t(se, {});
3487
- let n = [...(r = a == null ? void 0 : a.data) == null ? void 0 : r.filter((s) => s.isPrincipalTask)];
3488
- return /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-m", children: /* @__PURE__ */ t(xa, { project: e, children: n == null ? void 0 : n.sort((s, o) => s.orden - o.orden).map((s) => /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-m tw-border-b tw-border-gray-200 tw-pb-m ", children: /* @__PURE__ */ t(ie, { id: s.id }) })) }) });
3489
- }, Na = ({
3490
- setPath: a,
3485
+ }, vr = () => {
3486
+ var a;
3487
+ const { tasksProject: r, projectID: e } = ot();
3488
+ if (r != null && r.isFetching || r != null && r.isLoading) return /* @__PURE__ */ t(se, {});
3489
+ let n = [...(a = r == null ? void 0 : r.data) == null ? void 0 : a.filter((s) => s.isPrincipalTask)];
3490
+ return /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-m", children: /* @__PURE__ */ t(xr, { project: e, children: n == null ? void 0 : n.sort((s, o) => s.orden - o.orden).map((s) => /* @__PURE__ */ t("div", { className: "tw-flex tw-flex-col tw-gap-m tw-border-b tw-border-gray-200 tw-pb-m ", children: /* @__PURE__ */ t(ie, { id: s.id }) })) }) });
3491
+ }, Nr = ({
3492
+ setPath: r,
3491
3493
  setProject: e
3492
3494
  }) => {
3493
- const [n, r] = N([]), [s, o] = N(!0), [i, c] = N(0), [l, p] = N(10), [d, _] = N(0), [k, g] = N("nombre"), { filters: m, defineFields: x } = V(), { tasks_api: y, getImageOBP: b } = Q(), { user: v } = U(), q = async (u, D) => {
3495
+ const [n, a] = N([]), [s, o] = N(!0), [i, c] = N(0), [l, p] = N(10), [d, _] = N(0), [k, g] = N("nombre"), { filters: m, defineFields: x } = V(), { tasks_api: y, getImageOBP: b } = Q(), { user: v } = U(), q = async (u, D) => {
3494
3496
  var R, f, C;
3495
3497
  try {
3496
3498
  o(!0);
@@ -3513,7 +3515,7 @@ const ma = () => {
3513
3515
  ...j
3514
3516
  }
3515
3517
  }), Y = J(z == null ? void 0 : z.data);
3516
- r(Y), _((C = (f = z == null ? void 0 : z.data) == null ? void 0 : f.meta) == null ? void 0 : C.total);
3518
+ a(Y), _((C = (f = z == null ? void 0 : z.data) == null ? void 0 : f.meta) == null ? void 0 : C.total);
3517
3519
  } catch (j) {
3518
3520
  console.error("Error fetching data en Lista Campaña:", j);
3519
3521
  } finally {
@@ -3539,7 +3541,7 @@ const ma = () => {
3539
3541
  const u = Math.floor(i / l) + 1;
3540
3542
  q(u, l);
3541
3543
  }, [i, l, k, m]);
3542
- const A = (u) => {
3544
+ const S = (u) => {
3543
3545
  c(u.first), p(u.rows);
3544
3546
  }, E = [
3545
3547
  { label: "5 filas", value: 5 },
@@ -3550,7 +3552,7 @@ const ma = () => {
3550
3552
  { label: "50 filas", value: 50 }
3551
3553
  ], T = (u) => {
3552
3554
  const D = parseInt(u.target.value, 10);
3553
- p(D), A({ first: 0, rows: D });
3555
+ p(D), S({ first: 0, rows: D });
3554
3556
  }, $ = (u) => {
3555
3557
  g((D) => D === u ? `${u}:desc` : u);
3556
3558
  }, B = (u) => k === u ? "↑↓" : k === `${u}:desc` ? "↓↑" : "↑↓", W = (u) => ({
@@ -3726,7 +3728,7 @@ const ma = () => {
3726
3728
  }
3727
3729
  ) }),
3728
3730
  /* @__PURE__ */ t("tbody", { children: n == null ? void 0 : n.map((u, D) => {
3729
- var R, f, C, j, z, Y, tt, et, K, L, S, O, wt, dt, ut, Ct, Tt, qt;
3731
+ var R, f, C, j, z, Y, tt, et, K, L, A, O, wt, dt, ut, Ct, Tt, qt;
3730
3732
  return /* @__PURE__ */ w(
3731
3733
  "tr",
3732
3734
  {
@@ -3739,7 +3741,7 @@ const ma = () => {
3739
3741
  e({
3740
3742
  id: u == null ? void 0 : u.id,
3741
3743
  project: u == null ? void 0 : u.nombre
3742
- }), a("kanban-campania");
3744
+ }), r("kanban-campania");
3743
3745
  },
3744
3746
  onMouseEnter: (gt) => {
3745
3747
  gt.currentTarget.style.backgroundColor = "#E1EBF9";
@@ -3853,7 +3855,7 @@ const ma = () => {
3853
3855
  G,
3854
3856
  {
3855
3857
  imageUrl: (et = (tt = (Y = (z = (j = u == null ? void 0 : u.campania) == null ? void 0 : j.responsable) == null ? void 0 : z.imagen) == null ? void 0 : Y.formats) == null ? void 0 : tt.thumbnail) != null && et.url ? b(
3856
- (wt = (O = (S = (L = (K = u == null ? void 0 : u.campania) == null ? void 0 : K.responsable) == null ? void 0 : L.imagen) == null ? void 0 : S.formats) == null ? void 0 : O.thumbnail) == null ? void 0 : wt.url
3858
+ (wt = (O = (A = (L = (K = u == null ? void 0 : u.campania) == null ? void 0 : K.responsable) == null ? void 0 : L.imagen) == null ? void 0 : A.formats) == null ? void 0 : O.thumbnail) == null ? void 0 : wt.url
3857
3859
  ) : "",
3858
3860
  alt: (Ct = (ut = (dt = u == null ? void 0 : u.campania) == null ? void 0 : dt.responsable) == null ? void 0 : ut.nombre) == null ? void 0 : Ct.charAt(
3859
3861
  0
@@ -3895,7 +3897,7 @@ const ma = () => {
3895
3897
  rows: l,
3896
3898
  totalRecords: d,
3897
3899
  rowsPerPageOptions: [5, 10, 20, 50],
3898
- onPageChange: A,
3900
+ onPageChange: S,
3899
3901
  className: "tw-flex tw-justify-center tw-items-center tw-w-full tw-p-2 tw-gap-1 tw-rounded-lg",
3900
3902
  style: {
3901
3903
  display: "flex",
@@ -3998,52 +4000,52 @@ const ma = () => {
3998
4000
  ] }) })
3999
4001
  }
4000
4002
  );
4001
- }, _a = ({ path: a, tab: e, setPath: n, project: r, setProject: s }) => {
4003
+ }, _r = ({ path: r, tab: e, setPath: n, project: a, setProject: s }) => {
4002
4004
  const o = {
4003
- "kanban-general": { kanban: /* @__PURE__ */ t(ha, {}) },
4005
+ "kanban-general": { kanban: /* @__PURE__ */ t(hr, {}) },
4004
4006
  "lista-campanias": {
4005
- lista: /* @__PURE__ */ t(Na, { setPath: n, setProject: s }),
4007
+ lista: /* @__PURE__ */ t(Nr, { setPath: n, setProject: s }),
4006
4008
  gantt: /* @__PURE__ */ t("div", { children: "gantt-campanias" })
4007
4009
  },
4008
4010
  "kanban-campania": {
4009
- kanban: /* @__PURE__ */ t(ia, {}),
4010
- lista: /* @__PURE__ */ t(va, {}),
4011
+ kanban: /* @__PURE__ */ t(ir, {}),
4012
+ lista: /* @__PURE__ */ t(vr, {}),
4011
4013
  gantt: /* @__PURE__ */ t("div", { children: "kanban-campania-gantt" })
4012
4014
  }
4013
4015
  };
4014
- return a === "kanban-campania" ? /* @__PURE__ */ t(Ut, { project: r == null ? void 0 : r.id, children: o[a][e] }) : o[a][e];
4015
- }, ka = ({ label: a, active: e, onClick: n, disabled: r }) => r ? /* @__PURE__ */ t(
4016
+ return r === "kanban-campania" ? /* @__PURE__ */ t(Ut, { project: a == null ? void 0 : a.id, children: o[r][e] }) : o[r][e];
4017
+ }, kr = ({ label: r, active: e, onClick: n, disabled: a }) => a ? /* @__PURE__ */ t(
4016
4018
  H,
4017
4019
  {
4018
- dispatch: /* @__PURE__ */ t("button", { className: "tw-text-texts-placeholder tw-text-xl tw-font-semibold tw-cursor-help", children: a }),
4020
+ dispatch: /* @__PURE__ */ t("button", { className: "tw-text-texts-placeholder tw-text-xl tw-font-semibold tw-cursor-help", children: r }),
4019
4021
  children: /* @__PURE__ */ t("div", { className: "tw-flex tw-items-center tw-justify-center tw-px-3 tw-py-2 tw-bg-bg-card tw-rounded-lg tw-border tw-border-border-card", children: /* @__PURE__ */ t("p", { className: "tw-text-texts-placeholder tw-text-lg tw-font-semibold", children: "Espéralo muy pronto..." }) })
4020
4022
  }
4021
4023
  ) : /* @__PURE__ */ t(
4022
4024
  "button",
4023
4025
  {
4024
- disabled: r,
4026
+ disabled: a,
4025
4027
  onClick: n,
4026
- className: `${e ? "tw-text-texts-enfasis tw-border-b-2 tw-border-texts-enfasis tw-text-blue-600" : ""} tw-text-xl tw-font-semibold ${r ? "tw-cursor-not-allowed tw-text-texts-placeholder tw-text-lg" : "tw-text-texts-subtext"}`,
4027
- children: a
4028
+ className: `${e ? "tw-text-texts-enfasis tw-border-b-2 tw-border-texts-enfasis tw-text-blue-600" : ""} tw-text-xl tw-font-semibold ${a ? "tw-cursor-not-allowed tw-text-texts-placeholder tw-text-lg" : "tw-text-texts-subtext"}`,
4029
+ children: r
4028
4030
  }
4029
- ), Ca = ({ tabs: a, renderItem: e, initialTab: n }) => {
4030
- const [r, s] = N(n ?? a[0].toLowerCase());
4031
+ ), Cr = ({ tabs: r, renderItem: e, initialTab: n }) => {
4032
+ const [a, s] = N(n ?? r[0].toLowerCase());
4031
4033
  M(() => {
4032
4034
  n && s(n);
4033
4035
  }, [n]);
4034
4036
  const o = (i) => {
4035
4037
  s(i), e(i);
4036
4038
  };
4037
- return /* @__PURE__ */ t("div", { className: "tw-flex", children: a.map((i, c) => /* @__PURE__ */ t(
4039
+ return /* @__PURE__ */ t("div", { className: "tw-flex", children: r.map((i, c) => /* @__PURE__ */ t(
4038
4040
  "div",
4039
4041
  {
4040
4042
  className: `${c === 0 ? "tw-border-l-2" : ""} tw-border-r-2 tw-border-gray-200 tw-px-m`,
4041
4043
  children: /* @__PURE__ */ t(
4042
- ka,
4044
+ kr,
4043
4045
  {
4044
4046
  onClick: () => o(i.toLowerCase()),
4045
4047
  label: i,
4046
- active: i.toLowerCase() === r,
4048
+ active: i.toLowerCase() === a,
4047
4049
  disabled: ["gantt"].includes(i.toLowerCase())
4048
4050
  },
4049
4051
  c
@@ -4051,33 +4053,33 @@ const ma = () => {
4051
4053
  }
4052
4054
  )) });
4053
4055
  };
4054
- function Ta() {
4055
- const { toast: a } = yt();
4056
- return a.message ? /* @__PURE__ */ t(
4056
+ function Tr() {
4057
+ const { toast: r } = yt();
4058
+ return r.message ? /* @__PURE__ */ t(
4057
4059
  "div",
4058
4060
  {
4059
- className: `tw-fixed tw-top-[10%] tw-right-10 tw-z-50 tw-w-[300px] tw-h-[30px] tw-text-lg tw-bg-black tw-rounded-md tw-shadow-md ${a.type === "success" ? "tw-bg-success-medium" : "tw-bg-danger-medium"} tw-flex tw-items-center`,
4061
+ className: `tw-fixed tw-top-[10%] tw-right-10 tw-z-50 tw-w-[300px] tw-h-[30px] tw-text-lg tw-bg-black tw-rounded-md tw-shadow-md ${r.type === "success" ? "tw-bg-success-medium" : "tw-bg-danger-medium"} tw-flex tw-items-center`,
4060
4062
  children: /* @__PURE__ */ w("div", { className: "relative tw-w-full tw-h-full tw-flex tw-items-center", children: [
4061
4063
  /* @__PURE__ */ t(
4062
4064
  "div",
4063
4065
  {
4064
- className: `tw-w-[5px] tw-h-full ${a.type === "success" ? "tw-bg-success-dark" : "tw-bg-danger-regular"} tw-rounded-full tw-absolute tw-left-0`
4066
+ className: `tw-w-[5px] tw-h-full ${r.type === "success" ? "tw-bg-success-dark" : "tw-bg-danger-regular"} tw-rounded-full tw-absolute tw-left-0`
4065
4067
  }
4066
4068
  ),
4067
4069
  /* @__PURE__ */ w("div", { className: "tw-flex tw-items-center tw-gap-2 tw-pl-4", children: [
4068
4070
  /* @__PURE__ */ t(
4069
4071
  F,
4070
4072
  {
4071
- icon: a.type === "success" ? "circle_checked" : "circle_x",
4072
- className: `tw-text-${a.type === "success" ? "success-dark" : "danger-dark"}`,
4073
- color: a.type === "success" ? "#368156" : "#DC2626"
4073
+ icon: r.type === "success" ? "circle_checked" : "circle_x",
4074
+ className: `tw-text-${r.type === "success" ? "success-dark" : "danger-dark"}`,
4075
+ color: r.type === "success" ? "#368156" : "#DC2626"
4074
4076
  }
4075
4077
  ),
4076
4078
  /* @__PURE__ */ t(
4077
4079
  "p",
4078
4080
  {
4079
- className: `${a.type === "success" ? "tw-text-success-dark" : "tw-text-danger-dark"} tw-font-semibold tw-text-xl`,
4080
- children: a.message
4081
+ className: `${r.type === "success" ? "tw-text-success-dark" : "tw-text-danger-dark"} tw-font-semibold tw-text-xl`,
4082
+ children: r.message
4081
4083
  }
4082
4084
  )
4083
4085
  ] })
@@ -4085,9 +4087,9 @@ function Ta() {
4085
4087
  }
4086
4088
  ) : null;
4087
4089
  }
4088
- const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(Le, { children: [
4090
+ const qr = ({ path: r }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(Le, { children: [
4089
4091
  /* @__PURE__ */ t(() => {
4090
- const { selectPath: n, updateFilters: r, applyFilters: s, filters: o } = V(), [i, c] = N("kanban"), [l, p] = N(a), [d, _] = N({
4092
+ const { selectPath: n, updateFilters: a, applyFilters: s, filters: o } = V(), [i, c] = N("kanban"), [l, p] = N(r), [d, _] = N({
4091
4093
  id: 1704,
4092
4094
  project: "Kanban de Campania"
4093
4095
  }), [k, g] = N([
@@ -4098,9 +4100,9 @@ const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(
4098
4100
  M(() => {
4099
4101
  var T;
4100
4102
  c(l === "lista-campanias" ? "lista" : "kanban"), n(l), x(((T = k.find(($) => $.path === l)) == null ? void 0 : T.search) ?? "");
4101
- }, [a, l]), M(() => {
4103
+ }, [r, l]), M(() => {
4102
4104
  var T;
4103
- ((T = A()) == null ? void 0 : T.trim()) === "" && r({
4105
+ ((T = S()) == null ? void 0 : T.trim()) === "" && a({
4104
4106
  name: l === "lista-campanias" ? "search" : "taskName",
4105
4107
  value: null
4106
4108
  }), s();
@@ -4114,7 +4116,7 @@ const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(
4114
4116
  }, q = ["lista-campanias", "kanban-campania"], P = {
4115
4117
  "lista-campanias": ["lista", "gantt"],
4116
4118
  "kanban-campania": ["kanban", "lista", "gantt"]
4117
- }, A = () => {
4119
+ }, S = () => {
4118
4120
  var T;
4119
4121
  return ((T = k.find(($) => $.path === l)) == null ? void 0 : T.search) ?? "";
4120
4122
  }, E = (T) => {
@@ -4124,7 +4126,7 @@ const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(
4124
4126
  };
4125
4127
  return M(() => {
4126
4128
  const T = setTimeout(() => {
4127
- r({
4129
+ a({
4128
4130
  name: l === "lista-campanias" ? "search" : "taskName",
4129
4131
  value: m == null ? void 0 : m.trim()
4130
4132
  }), E(m);
@@ -4154,7 +4156,7 @@ const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(
4154
4156
  ),
4155
4157
  /* @__PURE__ */ t("h2", { className: "tw-text-texts tw-font-sans tw-text-[1.6rem] tw-font-semibold ", children: b(l) }),
4156
4158
  q.includes(l) && /* @__PURE__ */ t(
4157
- Ca,
4159
+ Cr,
4158
4160
  {
4159
4161
  tabs: P[l],
4160
4162
  renderItem: (T) => {
@@ -4194,7 +4196,7 @@ const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(
4194
4196
  ] })
4195
4197
  ] }),
4196
4198
  /* @__PURE__ */ t("div", { className: "tw-overflow-y-auto tw-scrollbar-none tw-max-h-[100%] tw-h-full", children: /* @__PURE__ */ t(Ut, { project: d.id, children: /* @__PURE__ */ t(
4197
- _a,
4199
+ _r,
4198
4200
  {
4199
4201
  path: l,
4200
4202
  tab: i,
@@ -4205,25 +4207,25 @@ const qa = ({ path: a }) => /* @__PURE__ */ t(je, { children: /* @__PURE__ */ w(
4205
4207
  ) }) })
4206
4208
  ] });
4207
4209
  }, {}),
4208
- /* @__PURE__ */ t(Ta, {})
4209
- ] }) }), Fa = () => /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-full tw-min-h-[100%] tw-relative", children: /* @__PURE__ */ t("div", { className: "tw-flex tw-justify-center tw-items-center tw-h-full", children: /* @__PURE__ */ w("div", { className: "tw-text-2xl tw-font-bold tw-flex tw-flex-col tw-items-center", children: [
4210
+ /* @__PURE__ */ t(Tr, {})
4211
+ ] }) }), Fr = () => /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-full tw-min-h-[100%] tw-relative", children: /* @__PURE__ */ t("div", { className: "tw-flex tw-justify-center tw-items-center tw-h-full", children: /* @__PURE__ */ w("div", { className: "tw-text-2xl tw-font-bold tw-flex tw-flex-col tw-items-center", children: [
4210
4212
  /* @__PURE__ */ t("div", { className: "tw-w-10 tw-h-10 tw-bg-primary-regular tw-rounded-full tw-animate-pulse" }),
4211
4213
  /* @__PURE__ */ t("p", { className: "tw-text-l tw-text-texts-enfasis", children: "un momento..." }),
4212
4214
  /* @__PURE__ */ t("p", { className: "tw-text-sm tw-text-texts-placeholder", children: "estamos buscando tu usuario" })
4213
- ] }) }) }), Pa = () => /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-full tw-min-h-[100%] tw-relative", children: /* @__PURE__ */ t("div", { className: "tw-flex tw-justify-center tw-items-center tw-h-full", children: /* @__PURE__ */ w("div", { className: "tw-text-2xl tw-font-bold tw-flex tw-flex-col tw-items-center", children: [
4215
+ ] }) }) }), Pr = () => /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-full tw-min-h-[100%] tw-relative", children: /* @__PURE__ */ t("div", { className: "tw-flex tw-justify-center tw-items-center tw-h-full", children: /* @__PURE__ */ w("div", { className: "tw-text-2xl tw-font-bold tw-flex tw-flex-col tw-items-center", children: [
4214
4216
  /* @__PURE__ */ t("div", { className: "tw-w-10 tw-h-10 tw-bg-primary-regular tw-rounded-full tw-animate-pulse" }),
4215
4217
  /* @__PURE__ */ t("p", { className: "tw-text-l tw-text-texts-enfasis", children: "No encontramos tu acceso" }),
4216
4218
  /* @__PURE__ */ t("p", { className: "tw-text-sm tw-text-texts-placeholder", children: "por favor, contacta al administrador" })
4217
- ] }) }) }), Qa = ({ path: a, user: e, url: n, mode: r }) => {
4219
+ ] }) }) }), Qr = ({ path: r, user: e, url: n, mode: a }) => {
4218
4220
  const s = new ce();
4219
- if (!e) return /* @__PURE__ */ t(Fa, {});
4220
- if (!e.accessToken) return /* @__PURE__ */ t(Pa, {});
4221
- let o = { user: e, url: n, mode: r };
4221
+ if (!e) return /* @__PURE__ */ t(Fr, {});
4222
+ if (!e.accessToken) return /* @__PURE__ */ t(Pr, {});
4223
+ let o = { user: e, url: n, mode: a };
4222
4224
  return /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(ze, { ...o, children: /* @__PURE__ */ t(Re, { ...o, children: /* @__PURE__ */ t("div", { className: "tw-w-full tw-h-full tw-min-h-[100%] tw-relative", children: /* @__PURE__ */ w(we, { client: s, children: [
4223
- /* @__PURE__ */ t(qa, { path: a }),
4225
+ /* @__PURE__ */ t(qr, { path: r }),
4224
4226
  " "
4225
4227
  ] }) }) }) }) });
4226
4228
  };
4227
4229
  export {
4228
- Qa as AppTasks
4230
+ Qr as AppTasks
4229
4231
  };