eatopia-ds 0.0.94 → 0.0.942

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.
Files changed (55) hide show
  1. package/build/index.js +43 -20
  2. package/build/index.js.map +1 -1
  3. package/build/index10.js +2 -2
  4. package/build/index11.js +4 -4
  5. package/build/index12.js +1 -1
  6. package/build/index13.js +473 -6
  7. package/build/index13.js.map +1 -1
  8. package/build/index14.js +212 -0
  9. package/build/index14.js.map +1 -0
  10. package/build/{index21.js → index15.js} +4 -4
  11. package/build/{index21.js.map → index15.js.map} +1 -1
  12. package/build/index16.js +129 -17
  13. package/build/index16.js.map +1 -1
  14. package/build/index17.js +89 -128
  15. package/build/index17.js.map +1 -1
  16. package/build/index18.js +79 -50
  17. package/build/index18.js.map +1 -1
  18. package/build/index19.js +6 -209
  19. package/build/index19.js.map +1 -1
  20. package/build/index2.js +1 -1
  21. package/build/index22.js +17 -2
  22. package/build/index22.js.map +1 -1
  23. package/build/index23.js +57 -26
  24. package/build/index23.js.map +1 -1
  25. package/build/index24.js +442 -602
  26. package/build/index24.js.map +1 -1
  27. package/build/index25.js +217 -2
  28. package/build/index25.js.map +1 -1
  29. package/build/index26.js +2 -2
  30. package/build/index27.js +23 -22
  31. package/build/index27.js.map +1 -1
  32. package/build/index28.js +599 -19
  33. package/build/index28.js.map +1 -1
  34. package/build/index29.js +2 -39
  35. package/build/index29.js.map +1 -1
  36. package/build/index3.js +1 -1
  37. package/build/index30.js +2 -18
  38. package/build/index30.js.map +1 -1
  39. package/build/index31.js +24 -216
  40. package/build/index31.js.map +1 -1
  41. package/build/index32.js +21 -68
  42. package/build/index32.js.map +1 -1
  43. package/build/index33.js +39 -57
  44. package/build/index33.js.map +1 -1
  45. package/build/index34.js +17 -392
  46. package/build/index34.js.map +1 -1
  47. package/build/index4.js +1 -1
  48. package/build/index5.js +2 -2
  49. package/build/index6.js +1 -1
  50. package/build/index7.js +2 -2
  51. package/build/index8.js +1 -1
  52. package/build/index9.js +1 -1
  53. package/package.json +7 -1
  54. package/build/index20.js +0 -447
  55. package/build/index20.js.map +0 -1
package/build/index.js CHANGED
@@ -1,25 +1,48 @@
1
1
  import { Button as t } from "./index2.js";
2
- import { Header as f } from "./index3.js";
3
- import { Logo as m } from "./index4.js";
4
- import { List as x } from "./index5.js";
5
- import { QuantidadeInput as u } from "./index6.js";
6
- import { EstoqueCard as n } from "./index7.js";
7
- import { UnitSelect as i } from "./index8.js";
8
- import { OrderForm as F } from "./index9.js";
9
- import { OrderModal as O } from "./index10.js";
10
- import { default as c } from "./index11.js";
11
- import { default as q } from "./index12.js";
2
+ import { Header as a } from "./index3.js";
3
+ import { Logo as p } from "./index4.js";
4
+ import { List as n } from "./index5.js";
5
+ import { QuantidadeInput as x } from "./index6.js";
6
+ import { EstoqueCard as d } from "./index7.js";
7
+ import { UnitSelect as s } from "./index8.js";
8
+ import { OrderForm as C } from "./index9.js";
9
+ import { OrderModal as M } from "./index10.js";
10
+ import { default as h } from "./index11.js";
11
+ import { default as k } from "./index12.js";
12
+ import { default as D } from "./index13.js";
13
+ import { default as F } from "./index14.js";
14
+ import { default as O } from "./index15.js";
15
+ import { default as T } from "./index16.js";
16
+ import { Icon as q, availableIcons as v, createIcon as w, useIcon as B } from "./index17.js";
17
+ import { AlertIcon as Q, ArrowUpIcon as j, ChartIcon as y, CloseIcon as z, DotIcon as G, ExclamationCircleIcon as J, ShoppingCartIcon as K, TrashIcon as N, TruckIcon as P } from "./index18.js";
12
18
  export {
19
+ Q as AlertIcon,
20
+ j as ArrowUpIcon,
13
21
  t as Button,
14
- c as Cart,
15
- q as CartFab,
16
- n as EstoqueCard,
17
- f as Header,
18
- x as List,
19
- m as Logo,
20
- F as OrderForm,
21
- O as OrderModal,
22
- u as QuantidadeInput,
23
- i as UnitSelect
22
+ h as Cart,
23
+ F as CartDesktop,
24
+ k as CartFab,
25
+ D as CartMobile,
26
+ O as CartModal,
27
+ y as ChartIcon,
28
+ z as CloseIcon,
29
+ G as DotIcon,
30
+ d as EstoqueCard,
31
+ J as ExclamationCircleIcon,
32
+ a as Header,
33
+ q as Icon,
34
+ n as List,
35
+ p as Logo,
36
+ T as Modal,
37
+ C as OrderForm,
38
+ M as OrderModal,
39
+ x as QuantidadeInput,
40
+ K as ShoppingCartIcon,
41
+ N as TrashIcon,
42
+ P as TruckIcon,
43
+ s as UnitSelect,
44
+ v as availableIcons,
45
+ w as createIcon,
46
+ B as useIcon
24
47
  };
25
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
package/build/index10.js CHANGED
@@ -1,6 +1,6 @@
1
- import { j as r } from "./index13.js";
1
+ import { j as r } from "./index19.js";
2
2
  import { OrderForm as a } from "./index9.js";
3
- import p from "./index17.js";
3
+ import p from "./index16.js";
4
4
  function c({
5
5
  isOpen: i,
6
6
  onClose: t,
package/build/index11.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as s } from "./index13.js";
1
+ import { j as s } from "./index19.js";
2
2
  import { useState as d, useEffect as C } from "react";
3
- import g from "./index19.js";
3
+ import g from "./index14.js";
4
4
  import E from "./index12.js";
5
- import F from "./index20.js";
6
- import L from "./index21.js";
5
+ import F from "./index13.js";
6
+ import L from "./index15.js";
7
7
  const B = ({
8
8
  cart: e,
9
9
  onUpdateQuantity: i,
package/build/index12.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as r } from "./index13.js";
1
+ import { j as r } from "./index19.js";
2
2
  import l from "react";
3
3
  const e = {
4
4
  fab: {
package/build/index13.js CHANGED
@@ -1,9 +1,476 @@
1
- import { __module as e } from "./index22.js";
2
- import { __require as r } from "./index23.js";
3
- import { __require as o } from "./index24.js";
4
- process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
- var m = e.exports;
1
+ import { j as e } from "./index19.js";
2
+ import { useState as m } from "react";
3
+ import H from "./index23.js";
4
+ import { styles as t } from "./index24.js";
5
+ import { ShoppingCartIcon as P, CloseIcon as G } from "./index18.js";
6
+ const J = ({
7
+ cart: r,
8
+ onUpdateQuantity: x,
9
+ onRemoveItem: y,
10
+ onRemoveSupplier: j,
11
+ onEmptyCart: q,
12
+ onCancelOrder: p,
13
+ onConfirmOrder: v,
14
+ onUpdateResponsible: f,
15
+ onDownloadPDF: g
16
+ }) => {
17
+ var T, V;
18
+ const [C, b] = m(!1), [I, E] = m(
19
+ new Set(r.suppliers.map((s) => s.supplierId))
20
+ ), [a, B] = m(null), [n, u] = m("cart"), [c, S] = m(
21
+ r.responsible || ""
22
+ ), d = (s) => new Intl.NumberFormat("pt-BR", {
23
+ style: "currency",
24
+ currency: "BRL"
25
+ }).format(s), L = (s) => new Date(s).toLocaleDateString("pt-BR", {
26
+ weekday: "long",
27
+ day: "2-digit",
28
+ month: "2-digit",
29
+ year: "numeric"
30
+ }), D = (s) => {
31
+ const i = new Set(I);
32
+ i.has(s) ? i.delete(s) : i.add(s), E(i);
33
+ }, w = (s, i, l) => {
34
+ l > 0 && (x == null || x(s, i, l));
35
+ }, F = (s, i, l) => {
36
+ B({ supplierId: s, itemIndex: i });
37
+ }, z = () => {
38
+ a && (y == null || y(a.supplierId, a.itemIndex), B(null));
39
+ }, M = () => {
40
+ n === "cart" ? u("confirm") : n === "confirm" && (v == null || v(), u("completed"));
41
+ }, N = () => {
42
+ g == null || g();
43
+ }, R = () => {
44
+ b(!0);
45
+ }, k = () => {
46
+ b(!1), u("cart"), p == null || p();
47
+ }, h = {
48
+ items: r.suppliers.reduce(
49
+ (s, i) => s + i.items.reduce((l, o) => l + o.quantity, 0),
50
+ 0
51
+ ),
52
+ suppliers: r.suppliers.length,
53
+ totalPrice: r.totalGeralEstimado
54
+ };
55
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
56
+ !C && h.items > 0 && /* @__PURE__ */ e.jsxs("button", { style: t.fabButton, onClick: R, children: [
57
+ /* @__PURE__ */ e.jsx("span", { style: t.fabBadge, children: h.items > 99 ? "99+" : h.items }),
58
+ /* @__PURE__ */ e.jsx("span", { style: t.fabIcon, children: /* @__PURE__ */ e.jsx(P, { width: 24, height: 24, color: "white" }) }),
59
+ /* @__PURE__ */ e.jsxs("span", { style: t.fabLabel, children: [
60
+ h.suppliers,
61
+ " fornecedor(es)",
62
+ /* @__PURE__ */ e.jsx("br", {}),
63
+ "Total R$",
64
+ " ",
65
+ h.totalPrice.toLocaleString("pt-BR", {
66
+ minimumFractionDigits: 2,
67
+ maximumFractionDigits: 2
68
+ })
69
+ ] })
70
+ ] }),
71
+ C && /* @__PURE__ */ e.jsx("div", { style: t.overlay, children: /* @__PURE__ */ e.jsxs("div", { style: t.container, children: [
72
+ /* @__PURE__ */ e.jsxs("div", { style: t.header, children: [
73
+ /* @__PURE__ */ e.jsx("h2", { style: t.headerTitle, children: "Carrinho de Compras" }),
74
+ /* @__PURE__ */ e.jsx("button", { onClick: k, style: t.closeButton, children: /* @__PURE__ */ e.jsx(G, { width: 24, height: 24, color: "white" }) })
75
+ ] }),
76
+ /* @__PURE__ */ e.jsxs("div", { style: t.content, children: [
77
+ n === "cart" && /* @__PURE__ */ e.jsx("div", { style: t.contentInner, children: r.suppliers.map((s) => {
78
+ const i = I.has(
79
+ s.supplierId
80
+ );
81
+ return /* @__PURE__ */ e.jsxs(
82
+ "div",
83
+ {
84
+ style: { ...t.supplierCard, marginBottom: "1rem" },
85
+ children: [
86
+ /* @__PURE__ */ e.jsxs(
87
+ "div",
88
+ {
89
+ style: t.supplierHeader,
90
+ onClick: () => D(s.supplierId),
91
+ children: [
92
+ /* @__PURE__ */ e.jsxs("div", { style: t.supplierHeaderContent, children: [
93
+ /* @__PURE__ */ e.jsx(
94
+ "svg",
95
+ {
96
+ width: "20",
97
+ height: "20",
98
+ fill: "none",
99
+ stroke: "currentColor",
100
+ viewBox: "0 0 24 24",
101
+ style: {
102
+ color: "#4b5563",
103
+ transform: i ? "rotate(180deg)" : "none",
104
+ transition: "transform 0.2s"
105
+ },
106
+ children: /* @__PURE__ */ e.jsx(
107
+ "path",
108
+ {
109
+ strokeLinecap: "round",
110
+ strokeLinejoin: "round",
111
+ strokeWidth: 2,
112
+ d: "M19 9l-7 7-7-7"
113
+ }
114
+ )
115
+ }
116
+ ),
117
+ /* @__PURE__ */ e.jsxs("div", { style: t.supplierHeaderInfo, children: [
118
+ /* @__PURE__ */ e.jsx("div", { style: t.supplierName, children: s.supplierName }),
119
+ /* @__PURE__ */ e.jsxs("div", { style: t.supplierMeta, children: [
120
+ s.items.length,
121
+ " ",
122
+ s.items.length === 1 ? "Item" : "Itens",
123
+ " ",
124
+ "• Mínimo:",
125
+ " ",
126
+ d(s.minimumOrder.required)
127
+ ] })
128
+ ] })
129
+ ] }),
130
+ /* @__PURE__ */ e.jsx(
131
+ "button",
132
+ {
133
+ onClick: (l) => {
134
+ l.stopPropagation(), confirm(
135
+ "Deseja excluir todos os itens deste fornecedor?"
136
+ ) && (j == null || j(s.supplierId));
137
+ },
138
+ style: t.removeSupplierButton,
139
+ children: /* @__PURE__ */ e.jsx(
140
+ "svg",
141
+ {
142
+ width: "20",
143
+ height: "20",
144
+ fill: "currentColor",
145
+ viewBox: "0 0 20 20",
146
+ children: /* @__PURE__ */ e.jsx(
147
+ "path",
148
+ {
149
+ fillRule: "evenodd",
150
+ d: "M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",
151
+ clipRule: "evenodd"
152
+ }
153
+ )
154
+ }
155
+ )
156
+ }
157
+ )
158
+ ]
159
+ }
160
+ ),
161
+ i && /* @__PURE__ */ e.jsxs("div", { style: t.supplierItems, children: [
162
+ s.items.map((l, o) => /* @__PURE__ */ e.jsxs(
163
+ "div",
164
+ {
165
+ style: {
166
+ ...t.item,
167
+ marginBottom: o === s.items.length - 1 ? 0 : "1rem",
168
+ borderBottom: o === s.items.length - 1 ? "none" : "1px solid #f3f4f6"
169
+ },
170
+ children: [
171
+ /* @__PURE__ */ e.jsxs("div", { style: t.itemHeader, children: [
172
+ /* @__PURE__ */ e.jsxs("div", { style: t.itemInfo, children: [
173
+ /* @__PURE__ */ e.jsx("div", { style: t.itemName, children: l.item }),
174
+ /* @__PURE__ */ e.jsx("div", { style: t.itemBrand, children: l.brand }),
175
+ /* @__PURE__ */ e.jsx("div", { style: t.itemPackaging, children: l.packaging })
176
+ ] }),
177
+ /* @__PURE__ */ e.jsx(
178
+ "button",
179
+ {
180
+ onClick: () => F(
181
+ s.supplierId,
182
+ o,
183
+ l.item
184
+ ),
185
+ style: t.removeItemButton,
186
+ children: /* @__PURE__ */ e.jsx(
187
+ "svg",
188
+ {
189
+ width: "20",
190
+ height: "20",
191
+ fill: "currentColor",
192
+ viewBox: "0 0 20 20",
193
+ children: /* @__PURE__ */ e.jsx(
194
+ "path",
195
+ {
196
+ fillRule: "evenodd",
197
+ d: "M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",
198
+ clipRule: "evenodd"
199
+ }
200
+ )
201
+ }
202
+ )
203
+ }
204
+ )
205
+ ] }),
206
+ /* @__PURE__ */ e.jsxs("div", { style: t.itemUnitValue, children: [
207
+ "Valor Un: ",
208
+ d(l.unitValue)
209
+ ] }),
210
+ /* @__PURE__ */ e.jsx("div", { style: { marginBottom: "0.75rem" }, children: /* @__PURE__ */ e.jsx(
211
+ H,
212
+ {
213
+ value: l.quantity,
214
+ onDecrease: () => w(
215
+ s.supplierId,
216
+ o,
217
+ l.quantity - 1
218
+ ),
219
+ onIncrease: () => w(
220
+ s.supplierId,
221
+ o,
222
+ l.quantity + 1
223
+ )
224
+ }
225
+ ) }),
226
+ /* @__PURE__ */ e.jsxs(
227
+ "div",
228
+ {
229
+ style: {
230
+ ...t.itemTotals,
231
+ display: "flex",
232
+ flexDirection: "column"
233
+ },
234
+ children: [
235
+ /* @__PURE__ */ e.jsxs("div", { children: [
236
+ "Total: ",
237
+ l.totalWeight,
238
+ "KG"
239
+ ] }),
240
+ /* @__PURE__ */ e.jsxs("div", { style: t.itemTotalValue, children: [
241
+ "Total: ",
242
+ d(l.totalValue)
243
+ ] })
244
+ ]
245
+ }
246
+ )
247
+ ]
248
+ },
249
+ o
250
+ )),
251
+ /* @__PURE__ */ e.jsxs("div", { style: t.supplierSummary, children: [
252
+ /* @__PURE__ */ e.jsxs("div", { style: t.deliveryInfo, children: [
253
+ "Previsão de Entrega:",
254
+ " ",
255
+ L(s.delivery.estimatedDate)
256
+ ] }),
257
+ /* @__PURE__ */ e.jsxs("div", { style: t.supplierTotal, children: [
258
+ /* @__PURE__ */ e.jsx("span", { children: "Total Estimado Fornecedor:" }),
259
+ /* @__PURE__ */ e.jsx("span", { style: t.supplierTotalValue, children: d(
260
+ s.totalEstimadoFornecedor
261
+ ) })
262
+ ] }),
263
+ s.minimumOrder.status === "pending" && /* @__PURE__ */ e.jsxs("div", { style: t.minimumOrderWarning, children: [
264
+ /* @__PURE__ */ e.jsx(
265
+ "svg",
266
+ {
267
+ width: "20",
268
+ height: "20",
269
+ fill: "currentColor",
270
+ viewBox: "0 0 20 20",
271
+ children: /* @__PURE__ */ e.jsx(
272
+ "path",
273
+ {
274
+ fillRule: "evenodd",
275
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
276
+ clipRule: "evenodd"
277
+ }
278
+ )
279
+ }
280
+ ),
281
+ /* @__PURE__ */ e.jsxs("span", { children: [
282
+ "Faltam",
283
+ " ",
284
+ d(
285
+ s.minimumOrder.missing
286
+ ),
287
+ " ",
288
+ "para completar o pedido mínimo."
289
+ ] })
290
+ ] })
291
+ ] })
292
+ ] })
293
+ ]
294
+ },
295
+ s.supplierId
296
+ );
297
+ }) }),
298
+ n === "confirm" && /* @__PURE__ */ e.jsxs("div", { style: t.contentInner, children: [
299
+ /* @__PURE__ */ e.jsxs("div", { style: t.summaryCard, children: [
300
+ /* @__PURE__ */ e.jsx("div", { style: t.summaryTitle, children: "Resumo de valores" }),
301
+ r.suppliers.map((s) => /* @__PURE__ */ e.jsxs("div", { style: t.summaryItem, children: [
302
+ s.supplierName,
303
+ " / ",
304
+ s.items.length,
305
+ " ",
306
+ s.items.length === 1 ? "item" : "itens",
307
+ " ",
308
+ d(s.totalEstimadoFornecedor)
309
+ ] }, s.supplierId)),
310
+ /* @__PURE__ */ e.jsx("div", { style: t.summaryDivider, children: /* @__PURE__ */ e.jsxs("div", { style: t.summaryTotal, children: [
311
+ /* @__PURE__ */ e.jsx("span", { children: "Total Estimado Geral:" }),
312
+ /* @__PURE__ */ e.jsx("span", { style: t.summaryTotalValue, children: d(r.totalGeralEstimado) })
313
+ ] }) })
314
+ ] }),
315
+ /* @__PURE__ */ e.jsxs("div", { style: t.responsibleField, children: [
316
+ /* @__PURE__ */ e.jsx("label", { style: t.responsibleLabel, children: "Responsável pelo pedido:" }),
317
+ /* @__PURE__ */ e.jsx(
318
+ "input",
319
+ {
320
+ type: "text",
321
+ value: c,
322
+ onChange: (s) => {
323
+ S(s.target.value), f == null || f(s.target.value);
324
+ },
325
+ placeholder: "Digite seu nome",
326
+ style: {
327
+ ...t.responsibleInput,
328
+ borderColor: c ? "#ff5724" : "#d1d5db"
329
+ }
330
+ }
331
+ )
332
+ ] }),
333
+ /* @__PURE__ */ e.jsx("div", { style: t.datetimeDisplay, children: (/* @__PURE__ */ new Date()).toLocaleString("pt-BR") })
334
+ ] }),
335
+ n === "completed" && /* @__PURE__ */ e.jsxs("div", { style: t.contentInner, children: [
336
+ /* @__PURE__ */ e.jsxs("div", { style: t.successBanner, children: [
337
+ /* @__PURE__ */ e.jsx(
338
+ "svg",
339
+ {
340
+ width: "32",
341
+ height: "32",
342
+ fill: "currentColor",
343
+ viewBox: "0 0 20 20",
344
+ children: /* @__PURE__ */ e.jsx(
345
+ "path",
346
+ {
347
+ fillRule: "evenodd",
348
+ d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
349
+ clipRule: "evenodd"
350
+ }
351
+ )
352
+ }
353
+ ),
354
+ /* @__PURE__ */ e.jsx("div", { style: t.successBannerTitle, children: "Pedido Confirmado" })
355
+ ] }),
356
+ /* @__PURE__ */ e.jsxs("div", { style: t.orderInfoCard, children: [
357
+ /* @__PURE__ */ e.jsxs("div", { style: t.orderInfoRow, children: [
358
+ /* @__PURE__ */ e.jsx("span", { style: t.orderInfoLabel, children: "Pedido N°" }),
359
+ " ",
360
+ /* @__PURE__ */ e.jsx("span", { style: t.orderNumber, children: "133102" })
361
+ ] }),
362
+ /* @__PURE__ */ e.jsxs("div", { style: t.orderInfoRow, children: [
363
+ /* @__PURE__ */ e.jsx("span", { style: t.orderInfoLabel, children: "Responsável:" }),
364
+ " ",
365
+ /* @__PURE__ */ e.jsx("span", { style: t.orderInfoValue, children: c })
366
+ ] })
367
+ ] })
368
+ ] })
369
+ ] }),
370
+ /* @__PURE__ */ e.jsxs("div", { style: t.footer, children: [
371
+ n === "cart" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
372
+ /* @__PURE__ */ e.jsxs("div", { style: t.footerTotalSection, children: [
373
+ /* @__PURE__ */ e.jsx("div", { style: t.footerTotalLabel, children: "Total Estimado Geral:" }),
374
+ /* @__PURE__ */ e.jsx("div", { style: t.footerTotalValue, children: d(r.totalGeralEstimado) })
375
+ ] }),
376
+ /* @__PURE__ */ e.jsx(
377
+ "button",
378
+ {
379
+ onClick: M,
380
+ style: t.footerButtonContinue,
381
+ children: "Continuar"
382
+ }
383
+ )
384
+ ] }),
385
+ n === "confirm" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
386
+ /* @__PURE__ */ e.jsx(
387
+ "button",
388
+ {
389
+ onClick: () => u("cart"),
390
+ style: {
391
+ ...t.footerButton,
392
+ ...t.footerButtonSecondary
393
+ },
394
+ children: "Voltar"
395
+ }
396
+ ),
397
+ /* @__PURE__ */ e.jsx(
398
+ "button",
399
+ {
400
+ onClick: M,
401
+ disabled: !c.trim(),
402
+ style: {
403
+ ...t.footerButton,
404
+ ...t.footerButtonPrimary,
405
+ ...c.trim() ? {} : t.footerButtonDisabled
406
+ },
407
+ children: "Confirmar Pedido"
408
+ }
409
+ )
410
+ ] }),
411
+ n === "completed" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
412
+ /* @__PURE__ */ e.jsx(
413
+ "button",
414
+ {
415
+ onClick: k,
416
+ style: {
417
+ ...t.footerButton,
418
+ ...t.footerButtonSecondary
419
+ },
420
+ children: "Fechar"
421
+ }
422
+ ),
423
+ /* @__PURE__ */ e.jsx(
424
+ "button",
425
+ {
426
+ onClick: N,
427
+ style: {
428
+ ...t.footerButton,
429
+ ...t.footerButtonPrimary
430
+ },
431
+ children: "Fazer download PDF"
432
+ }
433
+ )
434
+ ] })
435
+ ] }),
436
+ a && /* @__PURE__ */ e.jsx("div", { style: t.deleteModalOverlay, children: /* @__PURE__ */ e.jsxs("div", { style: t.deleteModal, children: [
437
+ /* @__PURE__ */ e.jsxs("h3", { style: t.deleteModalTitle, children: [
438
+ "Deseja excluir o item",
439
+ " ",
440
+ (V = (T = r.suppliers.find(
441
+ (s) => s.supplierId === a.supplierId
442
+ )) == null ? void 0 : T.items[a.itemIndex]) == null ? void 0 : V.item,
443
+ "?"
444
+ ] }),
445
+ /* @__PURE__ */ e.jsxs("div", { style: t.deleteModalButtons, children: [
446
+ /* @__PURE__ */ e.jsx(
447
+ "button",
448
+ {
449
+ onClick: () => B(null),
450
+ style: {
451
+ ...t.deleteModalButton,
452
+ ...t.deleteModalButtonCancel
453
+ },
454
+ children: "Cancelar"
455
+ }
456
+ ),
457
+ /* @__PURE__ */ e.jsx(
458
+ "button",
459
+ {
460
+ onClick: z,
461
+ style: {
462
+ ...t.deleteModalButton,
463
+ ...t.deleteModalButtonConfirm
464
+ },
465
+ children: "Excluir"
466
+ }
467
+ )
468
+ ] })
469
+ ] }) })
470
+ ] }) })
471
+ ] });
472
+ };
6
473
  export {
7
- m as j
474
+ J as default
8
475
  };
9
476
  //# sourceMappingURL=index13.js.map