eatopia-ds 0.0.955 → 0.0.956

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/build/index10.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { j as t } from "./index24.js";
2
- import Ue, { useState as j, useEffect as $, useMemo as P } from "react";
3
- import { StockLeadTime as Ve } from "./index18.js";
4
- import { calculateConsumptionForecast as ve, calculateTotalConsumptionForRange as Oe } from "./index21.js";
5
- import { AlertIcon as Ye } from "./index23.js";
2
+ import Ye, { useState as j, useEffect as $, useMemo as P } from "react";
3
+ import { StockLeadTime as Oe } from "./index18.js";
4
+ import { calculateConsumptionForecast as ve, calculateTotalConsumptionForRange as Ae } from "./index21.js";
5
+ import { AlertIcon as $e } from "./index23.js";
6
6
  const je = [1, 2, 3, 7, 10, 15, 30, 60, 90], x = (n) => {
7
7
  const m = n.getFullYear(), q = String(n.getMonth() + 1).padStart(2, "0"), u = String(n.getDate()).padStart(2, "0");
8
8
  return `${m}-${q}-${u}`;
9
9
  }, k = (n) => {
10
10
  const m = n.split("-").map(Number);
11
11
  return m.length !== 3 || m.some(Number.isNaN) ? /* @__PURE__ */ new Date(NaN) : new Date(m[0], m[1] - 1, m[2]);
12
- }, Ae = () => {
12
+ }, Qe = () => {
13
13
  const n = /* @__PURE__ */ new Date();
14
14
  return n.setDate(n.getDate() + 1), n.setHours(0, 0, 0, 0), x(n);
15
15
  }, W = () => {
@@ -17,9 +17,9 @@ const je = [1, 2, 3, 7, 10, 15, 30, 60, 90], x = (n) => {
17
17
  return n.setDate(n.getDate() + 1), n.setHours(0, 0, 0, 0), n;
18
18
  }, L = (n) => n <= 0 ? 7 : je.reduce(
19
19
  (m, q) => Math.abs(q - n) < Math.abs(m - n) ? q : m
20
- ), $e = 42, ke = {
20
+ ), Ge = 42, ke = {
21
21
  position: "relative",
22
- height: `${$e}px`,
22
+ height: `${Ge}px`,
23
23
  border: "1.5px solid #e2e8f0",
24
24
  borderRadius: "10px",
25
25
  backgroundColor: "#f8fafc",
@@ -87,7 +87,7 @@ const je = [1, 2, 3, 7, 10, 15, 30, 60, 90], x = (n) => {
87
87
  )
88
88
  }
89
89
  )
90
- ] }), Qe = (n) => /* @__PURE__ */ t.jsx("div", { style: ke, children: /* @__PURE__ */ t.jsx(
90
+ ] }), Ke = (n) => /* @__PURE__ */ t.jsx("div", { style: ke, children: /* @__PURE__ */ t.jsx(
91
91
  "input",
92
92
  {
93
93
  type: "date",
@@ -95,14 +95,14 @@ const je = [1, 2, 3, 7, 10, 15, 30, 60, 90], x = (n) => {
95
95
  style: { ...qe, padding: "0 14px" }
96
96
  }
97
97
  ) });
98
- function rt({
98
+ function it({
99
99
  data: n,
100
100
  onSubmit: m,
101
101
  onCancel: q,
102
102
  timelineData: u,
103
- fornecedoresOptions: Ge,
104
- marcasOptions: Ke,
105
- embalagensOptions: Ze,
103
+ fornecedoresOptions: Ze,
104
+ marcasOptions: Je,
105
+ embalagensOptions: Xe,
106
106
  dailyConsumptionAverages: y,
107
107
  showSuggestionBar: we = !0,
108
108
  showLegendTimeline: Ce = !1,
@@ -110,10 +110,12 @@ function rt({
110
110
  initialQtdDays: v,
111
111
  stockLeadTimeZoomOnly: Fe = !1,
112
112
  stockLeadTimeMinNavigationDays: Te,
113
- pendingOrderNumber: Ie
113
+ pendingOrderQty: Ie,
114
+ pendingOrderDate: Se,
115
+ pendingOrderNumber: Ee
114
116
  }) {
115
- var ne, oe, re, se, ie, ae, le, de, ce, ue, fe, ge, pe, me, xe, ye;
116
- Ue.useEffect(() => {
117
+ var ne, oe, re, se, ie, ae, le, ce, de, ue, fe, ge, pe, me, xe, ye;
118
+ Ye.useEffect(() => {
117
119
  const e = document.createElement("style");
118
120
  return e.textContent = `
119
121
  .order-form-quantity-input::-webkit-outer-spin-button,
@@ -128,10 +130,10 @@ function rt({
128
130
  document.head.removeChild(e);
129
131
  };
130
132
  }, []);
131
- const [w, Se] = j(!1);
133
+ const [w, Be] = j(!1);
132
134
  $(() => {
133
135
  const e = () => {
134
- Se(window.innerWidth <= 768);
136
+ Be(window.innerWidth <= 768);
135
137
  };
136
138
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
137
139
  }, []);
@@ -139,54 +141,54 @@ function rt({
139
141
  if (!(u != null && u.timeline)) return 0;
140
142
  const { restockSuggestionStart: e, restockSuggestionEnd: r } = u.timeline;
141
143
  if (!e || !r) return 0;
142
- const s = new Date(e), a = new Date(r).getTime() - s.getTime(), d = Math.ceil(a / (1e3 * 60 * 60 * 24));
143
- return d > 0 ? d : 0;
144
+ const s = new Date(e), a = new Date(r).getTime() - s.getTime(), c = Math.ceil(a / (1e3 * 60 * 60 * 24));
145
+ return c > 0 ? c : 0;
144
146
  }, R = () => {
145
147
  var i;
146
148
  const e = W(), r = (i = u == null ? void 0 : u.timeline) == null ? void 0 : i.stockEndDate;
147
149
  if (!r) return x(e);
148
150
  const s = k(r);
149
151
  return isNaN(s.getTime()) || s < e ? x(e) : x(s);
150
- }, Ee = () => {
152
+ }, Me = () => {
151
153
  const e = W();
152
154
  if (!T) return R();
153
155
  const r = k(T);
154
156
  return isNaN(r.getTime()) ? R() : r < e ? x(e) : x(r);
155
- }, Be = () => L(Q()), Me = () => v != null && v > 0 ? L(v) : Be(), g = (() => {
156
- var i, a, d;
157
+ }, De = () => L(Q()), Pe = () => v != null && v > 0 ? L(v) : De(), g = (() => {
158
+ var i, a, c;
157
159
  const e = (i = n == null ? void 0 : n.fornecedores) == null ? void 0 : i[0];
158
160
  if (!e) return null;
159
161
  const r = Q();
160
162
  if (!y || r <= 0) {
161
- const f = (a = e.marcas) == null ? void 0 : a[0], c = (d = f == null ? void 0 : f.embalagens) == null ? void 0 : d[0];
162
- return f && c ? {
163
+ const f = (a = e.marcas) == null ? void 0 : a[0], d = (c = f == null ? void 0 : f.embalagens) == null ? void 0 : c[0];
164
+ return f && d ? {
163
165
  marca: f.nome,
164
- embalagem: c.label,
166
+ embalagem: d.label,
165
167
  quantidade: (n == null ? void 0 : n.qtdPedido) > 0 ? n.qtdPedido : 0,
166
- valorUnitario: c.valor_unitario
168
+ valorUnitario: d.valor_unitario
167
169
  } : null;
168
170
  }
169
171
  let s = null;
170
172
  for (const f of e.marcas || [])
171
- for (const c of f.embalagens || []) {
172
- const p = c.quantidade_fornecedor;
173
+ for (const d of f.embalagens || []) {
174
+ const p = d.quantidade_fornecedor;
173
175
  if (!(p <= 0))
174
176
  for (let E = 1; E <= 100; E++) {
175
- const be = E * p, Y = ve({
177
+ const be = E * p, O = ve({
176
178
  dailyAverages: y,
177
179
  startDate: /* @__PURE__ */ new Date(),
178
180
  totalQuantity: be
179
181
  });
180
- if (Y.totalDays >= r) {
181
- const he = E * c.valor_unitario * p, A = Y.totalDays - r;
182
+ if (O.totalDays >= r) {
183
+ const he = E * d.valor_unitario * p, A = O.totalDays - r;
182
184
  (!s || A < s.daysDifference || A === s.daysDifference && he < s.totalValue) && (s = {
183
185
  marca: f.nome,
184
- embalagem: c.label,
186
+ embalagem: d.label,
185
187
  quantidade: E,
186
- valorUnitario: c.valor_unitario,
188
+ valorUnitario: d.valor_unitario,
187
189
  totalKg: be,
188
190
  totalValue: he,
189
- days: Y.totalDays,
191
+ days: O.totalDays,
190
192
  daysDifference: A
191
193
  });
192
194
  }
@@ -198,48 +200,48 @@ function rt({
198
200
  quantidade: s.quantidade,
199
201
  valorUnitario: s.valorUnitario
200
202
  } : null;
201
- })(), De = () => {
202
- var i, a, d;
203
+ })(), We = () => {
204
+ var i, a, c;
203
205
  if (g)
204
206
  return g.valorUnitario;
205
207
  const e = (i = n == null ? void 0 : n.fornecedores) == null ? void 0 : i[0];
206
208
  if (!e) return 0;
207
209
  const r = (a = e.marcas) == null ? void 0 : a[0];
208
210
  if (!r) return 0;
209
- const s = (d = r.embalagens) == null ? void 0 : d[0];
211
+ const s = (c = r.embalagens) == null ? void 0 : c[0];
210
212
  return (s == null ? void 0 : s.valor_unitario) ?? 0;
211
- }, z = n.unidade_medida ?? "kg", Pe = ((ne = n.ultima_compra) == null ? void 0 : ne.unidade) ?? n.unidade_medida ?? "kg", [l, G] = j({
213
+ }, z = n.unidade_medida ?? "kg", Le = ((ne = n.ultima_compra) == null ? void 0 : ne.unidade) ?? n.unidade_medida ?? "kg", [l, G] = j({
212
214
  ...n,
213
215
  qtdPedido: (g == null ? void 0 : g.quantidade) ?? (n == null ? void 0 : n.qtdPedido) ?? 0,
214
- valorTotal: (n == null ? void 0 : n.valorTotal) ?? ((g == null ? void 0 : g.quantidade) ?? (n == null ? void 0 : n.qtdPedido) ?? 0) * De()
215
- }), [We, K] = j(
216
+ valorTotal: (n == null ? void 0 : n.valorTotal) ?? ((g == null ? void 0 : g.quantidade) ?? (n == null ? void 0 : n.qtdPedido) ?? 0) * We()
217
+ }), [Ne, K] = j(
216
218
  ((re = (oe = n == null ? void 0 : n.fornecedores) == null ? void 0 : oe[0]) == null ? void 0 : re.nome) ?? ""
217
219
  ), [C, B] = j(
218
220
  (g == null ? void 0 : g.marca) ?? ((le = (ae = (ie = (se = n == null ? void 0 : n.fornecedores) == null ? void 0 : se[0]) == null ? void 0 : ie.marcas) == null ? void 0 : ae[0]) == null ? void 0 : le.nome) ?? ""
219
221
  ), [I, M] = j(
220
- (g == null ? void 0 : g.embalagem) ?? ((pe = (ge = (fe = (ue = (ce = (de = n == null ? void 0 : n.fornecedores) == null ? void 0 : de[0]) == null ? void 0 : ce.marcas) == null ? void 0 : ue[0]) == null ? void 0 : fe.embalagens) == null ? void 0 : ge[0]) == null ? void 0 : pe.label) ?? ""
222
+ (g == null ? void 0 : g.embalagem) ?? ((pe = (ge = (fe = (ue = (de = (ce = n == null ? void 0 : n.fornecedores) == null ? void 0 : ce[0]) == null ? void 0 : de.marcas) == null ? void 0 : ue[0]) == null ? void 0 : fe.embalagens) == null ? void 0 : ge[0]) == null ? void 0 : pe.label) ?? ""
221
223
  ), [H, Z] = j(
222
- Ee
223
- ), [_, J] = j(Me);
224
+ Me
225
+ ), [_, J] = j(Pe);
224
226
  $(() => {
225
- var a, d, f;
227
+ var a, c, f;
226
228
  const e = W();
227
229
  let r;
228
230
  if (T) {
229
- const c = k(T);
230
- r = isNaN(c.getTime()) ? R() : c < e ? x(e) : x(c);
231
+ const d = k(T);
232
+ r = isNaN(d.getTime()) ? R() : d < e ? x(e) : x(d);
231
233
  } else {
232
- const c = (a = u == null ? void 0 : u.timeline) == null ? void 0 : a.stockEndDate;
233
- if (c) {
234
- const p = k(c);
234
+ const d = (a = u == null ? void 0 : u.timeline) == null ? void 0 : a.stockEndDate;
235
+ if (d) {
236
+ const p = k(d);
235
237
  r = isNaN(p.getTime()) || p < e ? x(e) : x(p);
236
238
  } else
237
239
  r = x(e);
238
240
  }
239
241
  let s = 0;
240
- if ((d = u == null ? void 0 : u.timeline) != null && d.restockSuggestionStart && ((f = u == null ? void 0 : u.timeline) != null && f.restockSuggestionEnd)) {
241
- const c = k(u.timeline.restockSuggestionStart), p = k(u.timeline.restockSuggestionEnd);
242
- !isNaN(c.getTime()) && !isNaN(p.getTime()) && (s = Math.ceil((p.getTime() - c.getTime()) / (1e3 * 60 * 60 * 24)) || 0);
242
+ if ((c = u == null ? void 0 : u.timeline) != null && c.restockSuggestionStart && ((f = u == null ? void 0 : u.timeline) != null && f.restockSuggestionEnd)) {
243
+ const d = k(u.timeline.restockSuggestionStart), p = k(u.timeline.restockSuggestionEnd);
244
+ !isNaN(d.getTime()) && !isNaN(p.getTime()) && (s = Math.ceil((p.getTime() - d.getTime()) / (1e3 * 60 * 60 * 24)) || 0);
243
245
  }
244
246
  const i = v != null && v > 0 ? L(v) : L(s);
245
247
  Z(r), J(i);
@@ -252,19 +254,19 @@ function rt({
252
254
  const a = (s = e.marcas) == null ? void 0 : s[0];
253
255
  if (a) {
254
256
  B(a.nome);
255
- const d = (i = a.embalagens) == null ? void 0 : i[0];
256
- d && M(d.label);
257
+ const c = (i = a.embalagens) == null ? void 0 : i[0];
258
+ c && M(c.label);
257
259
  }
258
260
  }
259
261
  }, [n, g]);
260
262
  const D = P(() => {
261
- var a, d, f;
263
+ var a, c, f;
262
264
  const e = (a = l.fornecedores) == null ? void 0 : a[0];
263
265
  if (!e) return 0;
264
- const r = (d = e.marcas) == null ? void 0 : d.find((c) => c.nome === C);
266
+ const r = (c = e.marcas) == null ? void 0 : c.find((d) => d.nome === C);
265
267
  if (!r) return 0;
266
268
  const s = (f = r.embalagens) == null ? void 0 : f.find(
267
- (c) => c.label === I
269
+ (d) => d.label === I
268
270
  ), i = (s == null ? void 0 : s.quantidade_fornecedor) ?? 0;
269
271
  return l.qtdPedido * i;
270
272
  }, [
@@ -281,7 +283,7 @@ function rt({
281
283
  const e = W(), r = k(H);
282
284
  if (isNaN(r.getTime())) return 0;
283
285
  const s = r < e ? e : r;
284
- return Oe(
286
+ return Ae(
285
287
  y,
286
288
  s,
287
289
  _
@@ -302,8 +304,8 @@ function rt({
302
304
  var s, i, a;
303
305
  const e = (s = l.fornecedores) == null ? void 0 : s[0];
304
306
  if (!e) return null;
305
- const r = (i = e.marcas) == null ? void 0 : i.find((d) => d.nome === C);
306
- return r ? ((a = r.embalagens) == null ? void 0 : a.find((d) => d.label === I)) ?? null : null;
307
+ const r = (i = e.marcas) == null ? void 0 : i.find((c) => c.nome === C);
308
+ return r ? ((a = r.embalagens) == null ? void 0 : a.find((c) => c.label === I)) ?? null : null;
307
309
  }, V = () => {
308
310
  var e;
309
311
  return ((e = ee()) == null ? void 0 : e.valor_unitario) ?? 0;
@@ -323,57 +325,57 @@ function rt({
323
325
  qtdPedido: e,
324
326
  valorTotal: s
325
327
  }));
326
- }, O = (e) => {
327
- var d, f, c;
328
+ }, Y = (e) => {
329
+ var c, f, d;
328
330
  M(e);
329
- const r = (d = l.fornecedores) == null ? void 0 : d[0];
331
+ const r = (c = l.fornecedores) == null ? void 0 : c[0];
330
332
  if (!r) return;
331
333
  const s = (f = r.marcas) == null ? void 0 : f.find((p) => p.nome === C);
332
334
  if (!s) return;
333
- const i = (c = s.embalagens) == null ? void 0 : c.find((p) => p.label === e);
335
+ const i = (d = s.embalagens) == null ? void 0 : d.find((p) => p.label === e);
334
336
  if (!i) return;
335
337
  const a = l.qtdPedido * (i.valor_unitario ?? 0);
336
338
  G((p) => ({
337
339
  ...p,
338
340
  valorTotal: a
339
341
  }));
340
- }, Le = () => {
342
+ }, Re = () => {
341
343
  var r;
342
344
  const e = (r = l.fornecedores) == null ? void 0 : r[0];
343
345
  return e ? e.marcas || [] : [];
344
- }, Ne = () => {
346
+ }, ze = () => {
345
347
  var s, i;
346
348
  const e = (s = l.fornecedores) == null ? void 0 : s[0];
347
349
  if (!e) return [];
348
350
  const r = (i = e.marcas) == null ? void 0 : i.find((a) => a.nome === C);
349
351
  return r ? r.embalagens || [] : [];
350
- }, Re = (e) => {
351
- var a, d;
352
+ }, He = (e) => {
353
+ var a, c;
352
354
  B(e);
353
355
  const r = (a = l.fornecedores) == null ? void 0 : a[0];
354
356
  if (!r) return;
355
- const s = (d = r.marcas) == null ? void 0 : d.find((f) => f.nome === e);
357
+ const s = (c = r.marcas) == null ? void 0 : c.find((f) => f.nome === e);
356
358
  if (!s || !s.embalagens || s.embalagens.length === 0) return;
357
359
  const i = s.embalagens[0];
358
- O(i.label);
359
- }, ze = (e) => {
360
- var a, d, f;
360
+ Y(i.label);
361
+ }, _e = (e) => {
362
+ var a, c, f;
361
363
  K(e);
362
364
  const r = (a = l.fornecedores) == null ? void 0 : a.find(
363
- (c) => c.nome === e
365
+ (d) => d.nome === e
364
366
  );
365
367
  if (!r) return;
366
- const s = (d = r.marcas) == null ? void 0 : d[0];
368
+ const s = (c = r.marcas) == null ? void 0 : c[0];
367
369
  if (!s) {
368
370
  B(""), M("");
369
371
  return;
370
372
  }
371
373
  B(s.nome);
372
374
  const i = (f = s.embalagens) == null ? void 0 : f[0];
373
- i ? O(i.label) : M("");
374
- }, He = (e) => {
375
+ i ? Y(i.label) : M("");
376
+ }, Ue = (e) => {
375
377
  e.preventDefault(), m(l);
376
- }, _e = () => {
378
+ }, Ve = () => {
377
379
  const e = h();
378
380
  if (e <= 0 || b <= 0) return;
379
381
  const r = Math.ceil(b / e);
@@ -587,7 +589,7 @@ function rt({
587
589
  backgroundColor: "#DC2626"
588
590
  }
589
591
  };
590
- return /* @__PURE__ */ t.jsxs("form", { onSubmit: He, style: o.container, children: [
592
+ return /* @__PURE__ */ t.jsxs("form", { onSubmit: Ue, style: o.container, children: [
591
593
  /* @__PURE__ */ t.jsxs("div", { style: o.header, children: [
592
594
  /* @__PURE__ */ t.jsx("h2", { style: o.itemTitle, children: l.nome }),
593
595
  /* @__PURE__ */ t.jsx("div", { style: o.valorUnitario, children: /* @__PURE__ */ t.jsx(
@@ -617,14 +619,14 @@ function rt({
617
619
  children: [
618
620
  /* @__PURE__ */ t.jsxs("div", { style: o.infoRow, children: [
619
621
  /* @__PURE__ */ t.jsxs("div", { style: o.infoText, children: [
620
- /* @__PURE__ */ t.jsx(Ye, { width: 20, height: 20 }),
622
+ /* @__PURE__ */ t.jsx($e, { width: 20, height: 20 }),
621
623
  "Última compra ",
622
624
  (me = l.ultima_compra) == null ? void 0 : me.data
623
625
  ] }),
624
626
  /* @__PURE__ */ t.jsxs("div", { style: o.infoValue, children: [
625
627
  Number(((xe = l.ultima_compra) == null ? void 0 : xe.quantidade) ?? 0).toFixed(2),
626
628
  " ",
627
- Pe.toUpperCase()
629
+ Le.toUpperCase()
628
630
  ] })
629
631
  ] }),
630
632
  /* @__PURE__ */ t.jsxs("div", { style: o.formGrid, children: [
@@ -633,8 +635,8 @@ function rt({
633
635
  /* @__PURE__ */ t.jsx(
634
636
  N,
635
637
  {
636
- value: We,
637
- onChange: (e) => ze(e.target.value),
638
+ value: Ne,
639
+ onChange: (e) => _e(e.target.value),
638
640
  children: (ye = l.fornecedores) == null ? void 0 : ye.map((e) => /* @__PURE__ */ t.jsx("option", { value: e.nome, children: e.nome }, e.nome))
639
641
  }
640
642
  )
@@ -645,8 +647,8 @@ function rt({
645
647
  N,
646
648
  {
647
649
  value: C,
648
- onChange: (e) => Re(e.target.value),
649
- children: Le().map((e) => /* @__PURE__ */ t.jsx("option", { value: e.nome, children: e.nome }, e.nome))
650
+ onChange: (e) => He(e.target.value),
651
+ children: Re().map((e) => /* @__PURE__ */ t.jsx("option", { value: e.nome, children: e.nome }, e.nome))
650
652
  }
651
653
  )
652
654
  ] }),
@@ -656,14 +658,14 @@ function rt({
656
658
  N,
657
659
  {
658
660
  value: I,
659
- onChange: (e) => O(e.target.value),
660
- children: Ne().map((e) => /* @__PURE__ */ t.jsx("option", { value: e.label, children: e.label }, e.label))
661
+ onChange: (e) => Y(e.target.value),
662
+ children: ze().map((e) => /* @__PURE__ */ t.jsx("option", { value: e.label, children: e.label }, e.label))
661
663
  }
662
664
  )
663
665
  ] })
664
666
  ] }),
665
667
  X && /* @__PURE__ */ t.jsx("div", { style: { marginTop: "8px", marginBottom: "8px" }, children: /* @__PURE__ */ t.jsx(
666
- Ve,
668
+ Oe,
667
669
  {
668
670
  data: X,
669
671
  controls: !0,
@@ -672,9 +674,9 @@ function rt({
672
674
  size: "sm",
673
675
  showSuggestionBar: we,
674
676
  unitLabel: z,
675
- pendingOrderQty: 10,
676
- pendingOrderNumber: Ie ?? "88421",
677
- pendingOrderDate: `${(/* @__PURE__ */ new Date()).getFullYear()}-05-01`,
677
+ pendingOrderQty: Ie,
678
+ pendingOrderDate: Se,
679
+ pendingOrderNumber: Ee,
678
680
  onAddSuggestedWeight: (e) => S(e),
679
681
  selectedQty: D,
680
682
  selectedQtyDays: F,
@@ -695,10 +697,10 @@ function rt({
695
697
  /* @__PURE__ */ t.jsxs("div", { style: o.formField, children: [
696
698
  /* @__PURE__ */ t.jsx("label", { style: o.label, children: "Data inicial" }),
697
699
  /* @__PURE__ */ t.jsx(
698
- Qe,
700
+ Ke,
699
701
  {
700
702
  value: H,
701
- min: Ae(),
703
+ min: Qe(),
702
704
  onChange: (e) => Z(e.target.value),
703
705
  "aria-label": "Data inicial"
704
706
  }
@@ -770,7 +772,7 @@ function rt({
770
772
  "button",
771
773
  {
772
774
  type: "button",
773
- onClick: _e,
775
+ onClick: Ve,
774
776
  disabled: b <= 0 || h() <= 0,
775
777
  style: {
776
778
  display: "flex",
@@ -1015,6 +1017,6 @@ function rt({
1015
1017
  ] });
1016
1018
  }
1017
1019
  export {
1018
- rt as OrderForm
1020
+ it as OrderForm
1019
1021
  };
1020
1022
  //# sourceMappingURL=index10.js.map