eatopia-ds 0.0.93 → 0.0.941

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