@orbe-agro/client-core 3.3.7 → 3.3.9
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/lib/@ecme/components/shared/DataTable.js +16 -16
- package/dist/lib/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/Board.js +185 -103
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/Board.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCard.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +47 -53
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.js +52 -34
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardTitle.js +63 -109
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/BoardTitle.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/ScrumBoardHeader.js +30 -30
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/ScrumBoardHeader.js.map +1 -1
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +240 -119
- package/dist/lib/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/PrecoDia/submenu.precoDia.js +16 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/PrecoDia/submenu.precoDia.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/{certidaoDePenhor.js → submenu.certidaoDePenhor.js} +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/submenu.certidaoDePenhor.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/{submenu.adm.js → submenu.contratoCompraGraos.js} +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/submenu.contratoCompraGraos.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/{submenu.adm.js → submenu.vendaGraos.js} +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/submenu.vendaGraos.js.map +1 -0
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/categoria.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/categoria.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/formularioBase.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/formularioBase.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/grupoAtendimento.submenu.js +3 -3
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/grupoAtendimento.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/processo.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/processo.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/subcategoria.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/subcategoria.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/tipoProcesso.submenu.js +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/flux/config/tipoProcesso.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/originacao/config/preContrato.submenu.js +3 -3
- package/dist/lib/base/configs/navigation.config/submenu/originacao/config/preContrato.submenu.js.map +1 -1
- package/dist/lib/base/configs/navigation.config/submenu/originacao/originacao.submenu.js +7 -5
- package/dist/lib/base/configs/navigation.config/submenu/originacao/originacao.submenu.js.map +1 -1
- package/dist/lib/base/utils/config.js +7 -0
- package/dist/lib/base/utils/config.js.map +1 -0
- package/dist/lib/types/@ecme/components/shared/DataTable.d.ts +1 -0
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/Board.d.ts +32 -0
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/BoardCard.d.ts +0 -2
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.d.ts +4 -3
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/BoardColumn.d.ts +2 -0
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/ScrumBoardHeader.d.ts +9 -2
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.d.ts +29 -2
- package/dist/lib/types/@ecme/views/concepts/projects/ScrumBoard/types.d.ts +3 -0
- package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/PrecoDia/submenu.precoDia.d.ts +3 -0
- package/dist/lib/types/base/utils/config.d.ts +3 -0
- package/package.json +1 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/certidaoDePenhor.js.map +0 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/submenu.adm.js.map +0 -1
- package/dist/lib/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/submenu.adm.js.map +0 -1
- /package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/certidaoDePenhor/{certidaoDePenhor.d.ts → submenu.certidaoDePenhor.d.ts} +0 -0
- /package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/compraDeGraos/{submenu.adm.d.ts → submenu.contratoCompraGraos.d.ts} +0 -0
- /package/dist/lib/types/base/configs/navigation.config/modules.submenu/originacao/vendaDeGraos/{submenu.adm.d.ts → submenu.vendaGraos.d.ts} +0 -0
|
@@ -1,102 +1,134 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useScrumBoardStore as
|
|
1
|
+
import { jsx as e, Fragment as g, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as L, useRef as de, useEffect as oe } from "react";
|
|
3
|
+
import { useScrumBoardStore as he } from "../store/scrumBoardStore.js";
|
|
4
4
|
import "../../../../../components/ui/Spinner/index.js";
|
|
5
|
-
import { Avatar as
|
|
5
|
+
import { Avatar as y } from "../../../../../components/ui/Avatar/index.js";
|
|
6
6
|
import "../../../../../components/ui/Tooltip/index.js";
|
|
7
7
|
import "../../../../../components/ui/Card/index.js";
|
|
8
8
|
import "../../../../../components/ui/Button/index.js";
|
|
9
9
|
import "../../../../../components/ui/Input/index.js";
|
|
10
|
-
import { Dropdown as
|
|
10
|
+
import { Dropdown as f } from "../../../../../components/ui/Dropdown/index.js";
|
|
11
11
|
import "../../../../../components/ui/CloseButton/index.js";
|
|
12
12
|
import "../../../../../components/ui/Tag/index.js";
|
|
13
|
-
import { Tabs as
|
|
13
|
+
import { Tabs as B } from "../../../../../components/ui/Tabs/index.js";
|
|
14
14
|
import "../../../../../components/ui/Badge/index.js";
|
|
15
15
|
import "../../../../../components/ui/ScrollBar/index.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { TbPlus as
|
|
21
|
-
import
|
|
22
|
-
import { createUID as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
import pe from "../../../../../assets/svg/NoMedia.js";
|
|
17
|
+
import fe from "../../../../../components/shared/UsersAvatarGroup.js";
|
|
18
|
+
import ue from "dayjs";
|
|
19
|
+
import u from "lodash/cloneDeep";
|
|
20
|
+
import { TbPlus as E, TbDownload as xe, TbTrash as ve } from "react-icons/tb";
|
|
21
|
+
import Ne from "lodash/isEmpty";
|
|
22
|
+
import { createUID as be, taskLabelColors as S, labelList as ge } from "../utils.js";
|
|
23
|
+
import { useNavigate as ye } from "react-router-dom";
|
|
24
|
+
import C from "../../../../../components/ui/Tooltip/Tooltip.js";
|
|
25
|
+
import n from "../../../../../components/ui/Button/Button.js";
|
|
26
|
+
import ke from "../../../../../components/ui/Spinner/Spinner.js";
|
|
27
|
+
import Ce from "../../../../../components/ui/CloseButton/CloseButton.js";
|
|
28
|
+
import we from "../../../../../components/ui/ScrollBar/ScrollBar.js";
|
|
29
|
+
import k from "../../../../../components/ui/Tag/Tag.js";
|
|
30
|
+
import ze from "../../../../../components/ui/Badge/Badge.js";
|
|
31
|
+
import Ae from "../../../../../components/ui/Input/Input.js";
|
|
32
|
+
import je from "../../../../../components/ui/Card/Card.js";
|
|
33
|
+
const { TabNav: I, TabList: Te, TabContent: P } = B, Me = (d) => ({
|
|
34
|
+
id: be(10),
|
|
34
35
|
name: "Angelina Gotelli",
|
|
35
36
|
src: "/img/avatars/thumb-1.jpg",
|
|
36
|
-
message:
|
|
37
|
+
message: d,
|
|
37
38
|
date: /* @__PURE__ */ new Date()
|
|
38
|
-
}),
|
|
39
|
-
|
|
39
|
+
}), Le = () => /* @__PURE__ */ e(C, { title: "Add More", wrapperClass: "flex", children: /* @__PURE__ */ e(
|
|
40
|
+
n,
|
|
40
41
|
{
|
|
41
|
-
icon: /* @__PURE__ */ e(
|
|
42
|
+
icon: /* @__PURE__ */ e(E, {}),
|
|
42
43
|
customColorClass: () => "border-2 border-dashed hover:ring-0 h-[30px] w-[30px] text-sm",
|
|
43
44
|
size: "sm",
|
|
44
45
|
shape: "circle"
|
|
45
46
|
}
|
|
46
|
-
) }),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
) }), dr = ({
|
|
48
|
+
onTicketClose: d,
|
|
49
|
+
showAssignedTo: U = !0,
|
|
50
|
+
showLabels: Y = !0,
|
|
51
|
+
showDueDate: G = !0,
|
|
52
|
+
showDescription: K = !0,
|
|
53
|
+
showUserInitiator: R = !0,
|
|
54
|
+
showUserResponder: $ = !0,
|
|
55
|
+
showStatus: F = !0,
|
|
56
|
+
showActionsTicket: W = !0,
|
|
57
|
+
showCloseTicket: q = !0,
|
|
58
|
+
showChangeButton: H = !0,
|
|
59
|
+
showAceitarButton: J = !0,
|
|
60
|
+
showConcluirButton: Q = !0,
|
|
61
|
+
showTransferirButton: X = !0,
|
|
62
|
+
showCancelarButton: Z = !0,
|
|
63
|
+
showEditarButton: _ = !0,
|
|
64
|
+
descriptionTitle: V = "Descrição",
|
|
65
|
+
dueDateTitle: D = "Data",
|
|
66
|
+
userInitiatorTitle: O = "Participante 1",
|
|
67
|
+
userResponderTitle: ee = "Participante 2",
|
|
68
|
+
statusTitle: re = "Status",
|
|
69
|
+
onOpenDialog: c,
|
|
70
|
+
goView: x,
|
|
71
|
+
columns: o
|
|
72
|
+
}) => {
|
|
73
|
+
var A, j, T, M;
|
|
74
|
+
const te = ye(), { updateColumns: ae, ticketId: w, boardMembers: v } = he(), [t, h] = L({}), [se, z] = L(!1), p = de(null), ie = async () => {
|
|
75
|
+
z(!0);
|
|
50
76
|
let r = {};
|
|
51
|
-
for (const s in
|
|
52
|
-
if (Object.hasOwnProperty.call(
|
|
53
|
-
const
|
|
54
|
-
|
|
77
|
+
for (const s in o)
|
|
78
|
+
if (Object.hasOwnProperty.call(o, s)) {
|
|
79
|
+
const l = o[s].find((b) => b.id === w);
|
|
80
|
+
l && (r = l);
|
|
55
81
|
}
|
|
56
|
-
|
|
82
|
+
h(r), z(!1);
|
|
57
83
|
};
|
|
58
|
-
|
|
59
|
-
|
|
84
|
+
oe(() => {
|
|
85
|
+
Ne(t) ? ie() : le();
|
|
60
86
|
}, [t, t]);
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
const r =
|
|
64
|
-
i == null || i.push(s),
|
|
65
|
-
...
|
|
87
|
+
const ce = () => {
|
|
88
|
+
if (p.current) {
|
|
89
|
+
const r = p.current.value, s = Me(r), i = u(t.comments);
|
|
90
|
+
i == null || i.push(s), h((l) => ({
|
|
91
|
+
...l,
|
|
66
92
|
comments: i
|
|
67
|
-
})),
|
|
93
|
+
})), p.current.value = "";
|
|
68
94
|
}
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
const r =
|
|
95
|
+
}, m = () => {
|
|
96
|
+
d == null || d();
|
|
97
|
+
}, le = () => {
|
|
98
|
+
const r = u(o);
|
|
73
99
|
for (const s in r)
|
|
74
|
-
Object.hasOwnProperty.call(r, s) && r[s].forEach((
|
|
75
|
-
|
|
100
|
+
Object.hasOwnProperty.call(r, s) && r[s].forEach((l, b) => {
|
|
101
|
+
l.id === w && (r[s][b] = t);
|
|
76
102
|
});
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
const s =
|
|
80
|
-
i == null || i.push(s),
|
|
81
|
-
...
|
|
103
|
+
ae(r);
|
|
104
|
+
}, ne = (r) => {
|
|
105
|
+
const s = v.find((l) => l.id === r), i = u(t.members);
|
|
106
|
+
i == null || i.push(s), h((l) => ({
|
|
107
|
+
...l,
|
|
82
108
|
members: i
|
|
83
109
|
}));
|
|
84
|
-
},
|
|
85
|
-
const s =
|
|
86
|
-
s == null || s.push(r),
|
|
110
|
+
}, me = (r) => {
|
|
111
|
+
const s = u(t.labels);
|
|
112
|
+
s == null || s.push(r), h((i) => ({ ...i, labels: s }));
|
|
113
|
+
}, N = {
|
|
114
|
+
NOVO: "dark:bg-green-200 dark:text-gray-900",
|
|
115
|
+
CONCLUIDO: "dark:bg-green-200 dark:text-gray-900",
|
|
116
|
+
CANCELADO: "bg-rose-200 dark:bg-rose-200 dark:text-gray-900"
|
|
117
|
+
}, Se = (r) => {
|
|
118
|
+
te(r);
|
|
87
119
|
};
|
|
88
|
-
return /* @__PURE__ */ e(
|
|
120
|
+
return /* @__PURE__ */ e(g, { children: se ? /* @__PURE__ */ e("div", { className: "flex justify-center items-center min-h-[300px]", children: /* @__PURE__ */ e(ke, { size: 40 }) }) : /* @__PURE__ */ a(g, { children: [
|
|
89
121
|
/* @__PURE__ */ e("div", { className: "flex gap-2 mb-10", children: /* @__PURE__ */ e("div", { className: "w-full", children: /* @__PURE__ */ a("div", { className: "flex justify-between", children: [
|
|
90
122
|
/* @__PURE__ */ e("h4", { children: t.name }),
|
|
91
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
123
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(Ce, { onClick: m }) })
|
|
92
124
|
] }) }) }),
|
|
93
|
-
/* @__PURE__ */ a(
|
|
125
|
+
/* @__PURE__ */ a(we, { className: "max-h-[700px] overflow-y-auto", children: [
|
|
94
126
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-6", children: [
|
|
95
|
-
/* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
127
|
+
U && /* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
96
128
|
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: "Assigned to:" }),
|
|
97
129
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
98
130
|
/* @__PURE__ */ e(
|
|
99
|
-
|
|
131
|
+
fe,
|
|
100
132
|
{
|
|
101
133
|
className: "gap-1",
|
|
102
134
|
avatarProps: {
|
|
@@ -107,23 +139,23 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
107
139
|
users: t.members
|
|
108
140
|
}
|
|
109
141
|
),
|
|
110
|
-
|
|
111
|
-
|
|
142
|
+
v.length !== ((A = t.members) == null ? void 0 : A.length) && /* @__PURE__ */ e(
|
|
143
|
+
f,
|
|
112
144
|
{
|
|
113
|
-
renderTitle: /* @__PURE__ */ e(
|
|
114
|
-
children:
|
|
145
|
+
renderTitle: /* @__PURE__ */ e(Le, {}),
|
|
146
|
+
children: v.map(
|
|
115
147
|
(r) => {
|
|
116
148
|
var s;
|
|
117
149
|
return !((s = t.members) != null && s.some(
|
|
118
150
|
(i) => i.id === r.id
|
|
119
151
|
)) && /* @__PURE__ */ e(
|
|
120
|
-
|
|
152
|
+
f.Item,
|
|
121
153
|
{
|
|
122
154
|
eventKey: r.id,
|
|
123
|
-
onSelect:
|
|
155
|
+
onSelect: ne,
|
|
124
156
|
children: /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
125
157
|
/* @__PURE__ */ e(
|
|
126
|
-
|
|
158
|
+
y,
|
|
127
159
|
{
|
|
128
160
|
shape: "circle",
|
|
129
161
|
size: 22,
|
|
@@ -141,44 +173,44 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
141
173
|
)
|
|
142
174
|
] })
|
|
143
175
|
] }),
|
|
144
|
-
/* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
176
|
+
Y && /* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
145
177
|
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: "Label:" }),
|
|
146
178
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
|
|
147
|
-
(
|
|
148
|
-
|
|
179
|
+
(j = t.labels) == null ? void 0 : j.map((r) => /* @__PURE__ */ e(
|
|
180
|
+
k,
|
|
149
181
|
{
|
|
150
|
-
className:
|
|
182
|
+
className: S[r],
|
|
151
183
|
children: r
|
|
152
184
|
},
|
|
153
185
|
r
|
|
154
186
|
)),
|
|
155
187
|
/* @__PURE__ */ e(
|
|
156
|
-
|
|
188
|
+
f,
|
|
157
189
|
{
|
|
158
190
|
renderTitle: /* @__PURE__ */ e(
|
|
159
|
-
|
|
191
|
+
k,
|
|
160
192
|
{
|
|
161
193
|
className: "border-dashed cursor-pointer border-2 bg-transparent dark:bg-transparent border-gray-300 dark:border-gray-500 hover:border-primary hover:text-primary",
|
|
162
|
-
prefix: /* @__PURE__ */ e(
|
|
194
|
+
prefix: /* @__PURE__ */ e(E, {}),
|
|
163
195
|
children: "Add Label"
|
|
164
196
|
}
|
|
165
197
|
),
|
|
166
198
|
placement: "bottom-end",
|
|
167
|
-
children:
|
|
199
|
+
children: ge.map(
|
|
168
200
|
(r) => {
|
|
169
201
|
var s;
|
|
170
202
|
return !((s = t.labels) != null && s.includes(
|
|
171
203
|
r
|
|
172
204
|
)) && /* @__PURE__ */ e(
|
|
173
|
-
|
|
205
|
+
f.Item,
|
|
174
206
|
{
|
|
175
207
|
eventKey: r,
|
|
176
|
-
onSelect:
|
|
208
|
+
onSelect: me,
|
|
177
209
|
children: /* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
178
210
|
/* @__PURE__ */ e(
|
|
179
|
-
|
|
211
|
+
ze,
|
|
180
212
|
{
|
|
181
|
-
innerClass: `${
|
|
213
|
+
innerClass: `${S[r]}`
|
|
182
214
|
}
|
|
183
215
|
),
|
|
184
216
|
/* @__PURE__ */ e("span", { className: "ml-2 rtl:mr-2", children: r })
|
|
@@ -192,32 +224,48 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
192
224
|
)
|
|
193
225
|
] })
|
|
194
226
|
] }),
|
|
195
|
-
/* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
196
|
-
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children:
|
|
197
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children:
|
|
198
|
-
|
|
199
|
-
|
|
227
|
+
R && /* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
228
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: O }),
|
|
229
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: t.userInitiator })
|
|
230
|
+
] }),
|
|
231
|
+
$ && /* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
232
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: ee }),
|
|
233
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: t.userResponder })
|
|
234
|
+
] }),
|
|
235
|
+
G && /* @__PURE__ */ a("div", { className: "flex items-center min-h-[30px]", children: [
|
|
236
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: D }),
|
|
237
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: t.dueDate })
|
|
200
238
|
] }),
|
|
201
|
-
|
|
202
|
-
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children:
|
|
239
|
+
K && /* @__PURE__ */ a("div", { className: "flex", children: [
|
|
240
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: V }),
|
|
203
241
|
/* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ e("p", { children: t.description }) })
|
|
242
|
+
] }),
|
|
243
|
+
F && /* @__PURE__ */ a("div", { className: "flex", children: [
|
|
244
|
+
/* @__PURE__ */ e("div", { className: "font-semibold text-gray-900 dark:text-gray-100 min-w-[150px]", children: re }),
|
|
245
|
+
/* @__PURE__ */ e("div", { className: "flex", children: /* @__PURE__ */ e(
|
|
246
|
+
k,
|
|
247
|
+
{
|
|
248
|
+
className: `${(N == null ? void 0 : N[t.status]) ?? "default-color"}`,
|
|
249
|
+
children: t.status
|
|
250
|
+
}
|
|
251
|
+
) })
|
|
204
252
|
] })
|
|
205
253
|
] }),
|
|
206
|
-
/* @__PURE__ */ a(
|
|
207
|
-
/* @__PURE__ */ a(
|
|
208
|
-
/* @__PURE__ */ e(
|
|
209
|
-
/* @__PURE__ */ e(
|
|
254
|
+
t.attachments && t.attachments.length > 0 && /* @__PURE__ */ a(B, { className: "mt-6", defaultValue: "comments", children: [
|
|
255
|
+
/* @__PURE__ */ a(Te, { children: [
|
|
256
|
+
/* @__PURE__ */ e(I, { value: "comments", children: "Comments" }),
|
|
257
|
+
/* @__PURE__ */ e(I, { value: "attachments", children: "Attachments" })
|
|
210
258
|
] }),
|
|
211
259
|
/* @__PURE__ */ a("div", { className: "p-4", children: [
|
|
212
|
-
/* @__PURE__ */ e(
|
|
213
|
-
t.comments && ((
|
|
260
|
+
/* @__PURE__ */ e(P, { value: "comments", children: /* @__PURE__ */ a("div", { className: "w-full", children: [
|
|
261
|
+
t.comments && ((T = t == null ? void 0 : t.comments) == null ? void 0 : T.length) > 0 && /* @__PURE__ */ e(g, { children: t.comments.map(
|
|
214
262
|
(r) => /* @__PURE__ */ a(
|
|
215
263
|
"div",
|
|
216
264
|
{
|
|
217
265
|
className: "mb-3 flex",
|
|
218
266
|
children: [
|
|
219
267
|
/* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e(
|
|
220
|
-
|
|
268
|
+
y,
|
|
221
269
|
{
|
|
222
270
|
shape: "circle",
|
|
223
271
|
src: r.src
|
|
@@ -231,7 +279,7 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
231
279
|
"|",
|
|
232
280
|
" "
|
|
233
281
|
] }),
|
|
234
|
-
/* @__PURE__ */ e("span", { children:
|
|
282
|
+
/* @__PURE__ */ e("span", { children: ue(
|
|
235
283
|
r.date
|
|
236
284
|
).format(
|
|
237
285
|
"DD MMMM YYYY"
|
|
@@ -246,7 +294,7 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
246
294
|
) }),
|
|
247
295
|
/* @__PURE__ */ a("div", { className: "mb-3 flex gap-2", children: [
|
|
248
296
|
/* @__PURE__ */ e(
|
|
249
|
-
|
|
297
|
+
y,
|
|
250
298
|
{
|
|
251
299
|
shape: "circle",
|
|
252
300
|
src: "/img/avatars/thumb-1.jpg"
|
|
@@ -254,9 +302,9 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
254
302
|
),
|
|
255
303
|
/* @__PURE__ */ a("div", { className: "w-full relative", children: [
|
|
256
304
|
/* @__PURE__ */ e(
|
|
257
|
-
|
|
305
|
+
Ae,
|
|
258
306
|
{
|
|
259
|
-
ref:
|
|
307
|
+
ref: p,
|
|
260
308
|
textArea: !0,
|
|
261
309
|
placeholder: "Write comment"
|
|
262
310
|
}
|
|
@@ -265,16 +313,16 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
265
313
|
"div",
|
|
266
314
|
{
|
|
267
315
|
className: "cursor-pointer font-semibold text-primary ",
|
|
268
|
-
onClick: () =>
|
|
316
|
+
onClick: () => ce(),
|
|
269
317
|
children: "Send"
|
|
270
318
|
}
|
|
271
319
|
) })
|
|
272
320
|
] })
|
|
273
321
|
] })
|
|
274
322
|
] }) }),
|
|
275
|
-
/* @__PURE__ */ e(
|
|
323
|
+
/* @__PURE__ */ e(P, { value: "attachments", children: t.attachments && ((M = t == null ? void 0 : t.attachments) == null ? void 0 : M.length) > 0 ? /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4 mt-2", children: t.attachments.map(
|
|
276
324
|
(r) => /* @__PURE__ */ a(
|
|
277
|
-
|
|
325
|
+
je,
|
|
278
326
|
{
|
|
279
327
|
bodyClass: "px-3 pt-3 pb-1",
|
|
280
328
|
className: "bg-gray-100 dark:bg-gray-700 shadow-none",
|
|
@@ -294,20 +342,20 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
294
342
|
/* @__PURE__ */ e("span", { className: "text-xs", children: r.size })
|
|
295
343
|
] }),
|
|
296
344
|
/* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
297
|
-
/* @__PURE__ */ e(
|
|
298
|
-
|
|
345
|
+
/* @__PURE__ */ e(C, { title: "Download", children: /* @__PURE__ */ e(
|
|
346
|
+
n,
|
|
299
347
|
{
|
|
300
348
|
variant: "plain",
|
|
301
349
|
size: "xs",
|
|
302
|
-
icon: /* @__PURE__ */ e(
|
|
350
|
+
icon: /* @__PURE__ */ e(xe, {})
|
|
303
351
|
}
|
|
304
352
|
) }),
|
|
305
|
-
/* @__PURE__ */ e(
|
|
306
|
-
|
|
353
|
+
/* @__PURE__ */ e(C, { title: "Delete", children: /* @__PURE__ */ e(
|
|
354
|
+
n,
|
|
307
355
|
{
|
|
308
356
|
variant: "plain",
|
|
309
357
|
size: "xs",
|
|
310
|
-
icon: /* @__PURE__ */ e(
|
|
358
|
+
icon: /* @__PURE__ */ e(ve, {})
|
|
311
359
|
}
|
|
312
360
|
) })
|
|
313
361
|
] })
|
|
@@ -317,36 +365,109 @@ const { TabNav: z, TabList: te, TabContent: S } = L, se = (l) => ({
|
|
|
317
365
|
r.id
|
|
318
366
|
)
|
|
319
367
|
) }) : /* @__PURE__ */ a("div", { className: "flex flex-col gap-2 items-center justify-center", children: [
|
|
320
|
-
/* @__PURE__ */ e(
|
|
368
|
+
/* @__PURE__ */ e(
|
|
369
|
+
pe,
|
|
370
|
+
{
|
|
371
|
+
height: 150,
|
|
372
|
+
width: 150
|
|
373
|
+
}
|
|
374
|
+
),
|
|
321
375
|
/* @__PURE__ */ e("p", { className: "font-semibold", children: "No attachments" })
|
|
322
376
|
] }) })
|
|
323
377
|
] })
|
|
324
378
|
] })
|
|
325
379
|
] }),
|
|
326
|
-
/* @__PURE__ */ a("div", { className: "text-right mt-4", children: [
|
|
327
|
-
/* @__PURE__ */ e(
|
|
328
|
-
|
|
380
|
+
W && /* @__PURE__ */ a("div", { className: "text-right mt-4", children: [
|
|
381
|
+
q && /* @__PURE__ */ e(
|
|
382
|
+
n,
|
|
329
383
|
{
|
|
330
384
|
className: "mr-2 rtl:ml-2",
|
|
331
385
|
size: "sm",
|
|
332
386
|
variant: "plain",
|
|
333
|
-
onClick: () =>
|
|
387
|
+
onClick: () => m(),
|
|
334
388
|
children: "Cancel"
|
|
335
389
|
}
|
|
336
390
|
),
|
|
337
|
-
/* @__PURE__ */ e(
|
|
338
|
-
|
|
391
|
+
H && /* @__PURE__ */ e(
|
|
392
|
+
n,
|
|
339
393
|
{
|
|
340
394
|
variant: "solid",
|
|
341
395
|
size: "sm",
|
|
342
|
-
onClick: () =>
|
|
396
|
+
onClick: () => m(),
|
|
343
397
|
children: "Change"
|
|
344
398
|
}
|
|
399
|
+
),
|
|
400
|
+
_ && /* @__PURE__ */ e(
|
|
401
|
+
n,
|
|
402
|
+
{
|
|
403
|
+
variant: "solid",
|
|
404
|
+
size: "sm",
|
|
405
|
+
onClick: () => {
|
|
406
|
+
m(), x == null || x(Number(t.id));
|
|
407
|
+
},
|
|
408
|
+
children: "Visualizar"
|
|
409
|
+
}
|
|
410
|
+
),
|
|
411
|
+
J && /* @__PURE__ */ e(
|
|
412
|
+
n,
|
|
413
|
+
{
|
|
414
|
+
variant: "solid",
|
|
415
|
+
size: "sm",
|
|
416
|
+
onClick: () => {
|
|
417
|
+
m(), c == null || c(
|
|
418
|
+
"aceitar",
|
|
419
|
+
Number(t.id)
|
|
420
|
+
);
|
|
421
|
+
},
|
|
422
|
+
children: "Aceitar"
|
|
423
|
+
}
|
|
424
|
+
),
|
|
425
|
+
Q && /* @__PURE__ */ e(
|
|
426
|
+
n,
|
|
427
|
+
{
|
|
428
|
+
variant: "solid",
|
|
429
|
+
size: "sm",
|
|
430
|
+
onClick: () => {
|
|
431
|
+
m(), c == null || c(
|
|
432
|
+
"concluir",
|
|
433
|
+
Number(t.id)
|
|
434
|
+
);
|
|
435
|
+
},
|
|
436
|
+
children: "Concluir"
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
Z && /* @__PURE__ */ e(
|
|
440
|
+
n,
|
|
441
|
+
{
|
|
442
|
+
variant: "solid",
|
|
443
|
+
size: "sm",
|
|
444
|
+
onClick: () => {
|
|
445
|
+
m(), c == null || c(
|
|
446
|
+
"cancelar",
|
|
447
|
+
Number(t.id)
|
|
448
|
+
);
|
|
449
|
+
},
|
|
450
|
+
children: "Cancelar"
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
X && /* @__PURE__ */ e(
|
|
454
|
+
n,
|
|
455
|
+
{
|
|
456
|
+
variant: "solid",
|
|
457
|
+
size: "sm",
|
|
458
|
+
onClick: () => {
|
|
459
|
+
m(), c == null || c(
|
|
460
|
+
"transferir",
|
|
461
|
+
Number(t.id)
|
|
462
|
+
);
|
|
463
|
+
},
|
|
464
|
+
children: "Transferir"
|
|
465
|
+
}
|
|
345
466
|
)
|
|
346
467
|
] })
|
|
347
468
|
] }) });
|
|
348
469
|
};
|
|
349
470
|
export {
|
|
350
|
-
|
|
471
|
+
dr as default
|
|
351
472
|
};
|
|
352
473
|
//# sourceMappingURL=TicketContent.js.map
|