@ffid-br/tailor-ui 0.8.0 → 0.9.0

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/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { jsxs as i, jsx as t, Fragment as E } from "react/jsx-runtime";
2
- import $, { useState as J, useEffect as H, useMemo as Ze, useContext as oe, createContext as Ke, useRef as X, useId as he, useSyncExternalStore as rt, useLayoutEffect as at, forwardRef as ot } from "react";
3
- import { motion as Z, useReducedMotion as pe, AnimatePresence as it } from "framer-motion";
1
+ import { jsxs as i, jsx as t, Fragment as y } from "react/jsx-runtime";
2
+ import $, { useState as J, useEffect as H, useMemo as Te, useContext as oe, createContext as Ke, useRef as X, useId as he, useSyncExternalStore as rt, useLayoutEffect as at, forwardRef as ot } from "react";
3
+ import { motion as T, useReducedMotion as pe, AnimatePresence as it } from "framer-motion";
4
4
  const h = (...e) => e.filter(Boolean).join(" "), nt = [8, 16, 24, 40, 64, 104, 168, 272, 440], ke = [0.16, 1, 0.3, 1], lt = [1, -1].flatMap((e) => [1, -1].map((r) => ({ sx: e, sy: r })));
5
5
  function me({ malha: e = !0 }) {
6
6
  return /* @__PURE__ */ i("div", { className: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true", children: [
7
7
  e && /* @__PURE__ */ t("svg", { className: "absolute left-1/2 top-1/2 h-[200vmax] w-[200vmax] -translate-x-1/2 -translate-y-1/2 stroke-white/10", viewBox: "-440 -440 880 880", children: lt.map(
8
8
  ({ sx: r, sy: a }, o) => nt.map((n, l) => /* @__PURE__ */ i($.Fragment, { children: [
9
9
  /* @__PURE__ */ t(
10
- Z.line,
10
+ T.line,
11
11
  {
12
12
  x1: 0,
13
13
  y1: a * n,
@@ -20,7 +20,7 @@ function me({ malha: e = !0 }) {
20
20
  }
21
21
  ),
22
22
  /* @__PURE__ */ t(
23
- Z.line,
23
+ T.line,
24
24
  {
25
25
  x1: r * n,
26
26
  y1: 0,
@@ -95,7 +95,7 @@ const ze = {
95
95
  required: "required"
96
96
  }, xe = { "pt-BR": ze, en: je }, At = { locale: "pt-BR", currency: "BRL", messages: ze }, He = Ke(At);
97
97
  function Yt({ locale: e = "pt-BR", currency: r = "BRL", messages: a, children: o }) {
98
- const n = Ze(() => {
98
+ const n = Te(() => {
99
99
  const l = xe[e] ?? xe[e.split("-")[0]] ?? je;
100
100
  return { locale: e, currency: r, messages: { ...l, ...a } };
101
101
  }, [e, r, a]);
@@ -108,10 +108,10 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
108
108
  /* @__PURE__ */ t("line", { className: h(e && "tailor-malha__linha"), style: e ? { animationDelay: `${n * 0.05}s` } : void 0, pathLength: 1, strokeWidth: 0.5, x1: r * o, y1: 0, x2: r * o, y2: a * V })
109
109
  ] }, `${r}${a}${o}`))
110
110
  ) }),
111
- e ? /* @__PURE__ */ i(E, { children: [
111
+ e ? /* @__PURE__ */ i(y, { children: [
112
112
  /* @__PURE__ */ t("rect", { className: "tailor-loader__ok-ponto fill-tailor-green", x: -3, y: -3, width: 6, height: 6 }),
113
113
  /* @__PURE__ */ t("polyline", { className: "tailor-loader__check stroke-tailor-green", points: De, pathLength: 1, fill: "none", strokeWidth: 4, strokeLinecap: "square", strokeLinejoin: "miter" })
114
- ] }) : /* @__PURE__ */ i(E, { children: [
114
+ ] }) : /* @__PURE__ */ i(y, { children: [
115
115
  /* @__PURE__ */ t("path", { className: "tailor-loader__rastro stroke-tailor-green", d: mt, pathLength: 1, fill: "none", strokeWidth: 2, strokeLinecap: "square", strokeLinejoin: "miter" }),
116
116
  /* @__PURE__ */ t("rect", { className: "tailor-loader__corredor fill-tailor-green", x: -3, y: -3, width: 6, height: 6 })
117
117
  ] })
@@ -119,7 +119,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
119
119
  const [o, n] = J(!1);
120
120
  if (o) return null;
121
121
  const l = (s, c) => /* @__PURE__ */ t("img", { src: s, alt: "", className: h("h-auto max-h-[89px] w-[233px] object-contain", c), onError: () => n(!0) });
122
- return a ? l(r ?? e, "") : r ? /* @__PURE__ */ i(E, { children: [
122
+ return a ? l(r ?? e, "") : r ? /* @__PURE__ */ i(y, { children: [
123
123
  l(e, "dark:hidden"),
124
124
  l(r, "hidden dark:block")
125
125
  ] }) : l(e, "");
@@ -219,7 +219,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
219
219
  return H(() => {
220
220
  c && e();
221
221
  }, [c, e]), c ? null : /* @__PURE__ */ i(
222
- Z.div,
222
+ T.div,
223
223
  {
224
224
  initial: { opacity: 1 },
225
225
  exit: { opacity: 0 },
@@ -230,7 +230,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
230
230
  ft.map(
231
231
  ({ sx: d, sy: p }, m) => ut.map((A, f) => /* @__PURE__ */ i($.Fragment, { children: [
232
232
  /* @__PURE__ */ t(
233
- Z.line,
233
+ T.line,
234
234
  {
235
235
  x1: 0,
236
236
  y1: p * A,
@@ -243,7 +243,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
243
243
  }
244
244
  ),
245
245
  /* @__PURE__ */ t(
246
- Z.line,
246
+ T.line,
247
247
  {
248
248
  x1: d * A,
249
249
  y1: 0,
@@ -258,7 +258,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
258
258
  ] }, `${m}-${A}`))
259
259
  ),
260
260
  /* @__PURE__ */ t(
261
- Z.rect,
261
+ T.rect,
262
262
  {
263
263
  x: -4,
264
264
  y: -4,
@@ -272,7 +272,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
272
272
  )
273
273
  ] }),
274
274
  /* @__PURE__ */ t(
275
- Z.div,
275
+ T.div,
276
276
  {
277
277
  "aria-hidden": "true",
278
278
  className: "tailor-intro__vinheta absolute inset-0",
@@ -283,7 +283,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
283
283
  ),
284
284
  /* @__PURE__ */ i("div", { className: "absolute left-1/2 top-[38.2%] flex w-full -translate-x-1/2 -translate-y-1/2 flex-col items-center px-[21px] text-center", children: [
285
285
  /* @__PURE__ */ t(
286
- Z.img,
286
+ T.img,
287
287
  {
288
288
  src: l,
289
289
  alt: "Tailor.ia",
@@ -294,7 +294,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
294
294
  }
295
295
  ),
296
296
  n && /* @__PURE__ */ t(
297
- Z.p,
297
+ T.p,
298
298
  {
299
299
  className: "mt-[13px] text-[26px] font-semibold leading-none text-white",
300
300
  initial: { opacity: 0 },
@@ -304,7 +304,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
304
304
  }
305
305
  ),
306
306
  r && /* @__PURE__ */ i(
307
- Z.p,
307
+ T.p,
308
308
  {
309
309
  className: "mt-[55px] flex items-center gap-[8px] text-[11px] font-medium uppercase tracking-[0.14em] text-tailor-green",
310
310
  initial: { opacity: 0 },
@@ -318,7 +318,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
318
318
  }
319
319
  ),
320
320
  a && /* @__PURE__ */ t(
321
- Z.p,
321
+ T.p,
322
322
  {
323
323
  className: `${r ? "mt-[13px]" : "mt-[55px]"} max-w-[377px] text-base leading-[1.618] text-white/75 sm:max-w-[610px] sm:text-[26px] sm:leading-[1.382]`,
324
324
  initial: { opacity: 0 },
@@ -338,7 +338,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
338
338
  }
339
339
  ),
340
340
  /* @__PURE__ */ t(
341
- Z.div,
341
+ T.div,
342
342
  {
343
343
  "aria-hidden": "true",
344
344
  className: "absolute bottom-0 left-0 right-0 h-1 origin-left bg-tailor-green",
@@ -374,7 +374,7 @@ const F = () => oe(He), ht = [5, 8, 13, 21, 34], V = 34, pt = [1, -1].flatMap((e
374
374
  if (r) return /* @__PURE__ */ t("span", { className: h("inline-flex items-center", s), children: A });
375
375
  const f = "h-[21px] w-auto max-w-[144px] object-contain";
376
376
  return /* @__PURE__ */ i("span", { className: h("inline-flex items-center gap-2", s), "aria-label": c ? e : `Tailor.ia ${e}`, children: [
377
- d === "escura" ? /* @__PURE__ */ t("img", { src: m, alt: "", className: f }) : d === "clara" ? /* @__PURE__ */ t("img", { src: p, alt: "", className: f }) : /* @__PURE__ */ i(E, { children: [
377
+ d === "escura" ? /* @__PURE__ */ t("img", { src: m, alt: "", className: f }) : d === "clara" ? /* @__PURE__ */ t("img", { src: p, alt: "", className: f }) : /* @__PURE__ */ i(y, { children: [
378
378
  /* @__PURE__ */ t("img", { src: p, alt: "", className: h(f, "dark:hidden") }),
379
379
  /* @__PURE__ */ t("img", { src: m, alt: "", className: h(f, "hidden dark:block") })
380
380
  ] }),
@@ -404,7 +404,7 @@ function rr({ ativo: e, origemRef: r }) {
404
404
  var l;
405
405
  const a = pe(), o = e ? (l = r == null ? void 0 : r.current) == null ? void 0 : l.getBoundingClientRect() : void 0, n = o ? `${o.left + o.width / 2}px ${o.top + o.height / 2}px` : "50% 50%";
406
406
  return /* @__PURE__ */ t(it, { children: e && /* @__PURE__ */ t(
407
- Z.div,
407
+ T.div,
408
408
  {
409
409
  "aria-hidden": "true",
410
410
  "data-tailor-entrar": "",
@@ -437,7 +437,7 @@ function ar() {
437
437
  window.clearTimeout(l), delete n.dataset.entrada;
438
438
  };
439
439
  }, [r, e]), a ? /* @__PURE__ */ t(
440
- Z.div,
440
+ T.div,
441
441
  {
442
442
  "aria-hidden": "true",
443
443
  "data-tailor-entrada": "",
@@ -523,9 +523,9 @@ const Ie = We, we = ue, fe = {
523
523
  G,
524
524
  o ? "justify-center px-0" : h("gap-[13px] pr-[13px]", r > 0 ? "pl-[34px]" : "pl-[13px]"),
525
525
  e.desabilitado ? h("cursor-not-allowed border-transparent font-medium opacity-60", a.fraco) : g ? h("border-tailor-green font-semibold", a.ativo) : h("border-transparent font-medium", p ? a.forte : a.texto, a.hover)
526
- ), R = /* @__PURE__ */ i(E, { children: [
526
+ ), R = /* @__PURE__ */ i(y, { children: [
527
527
  /* @__PURE__ */ t("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: /* @__PURE__ */ t(f, { className: "size-[18px] stroke-[1.5]" }) }),
528
- o ? u && /* @__PURE__ */ t("span", { "aria-hidden": "true", className: h("absolute left-1/2 top-[5px] ml-[6px] size-[8px]", x ? "bg-red-600" : a.ponto) }) : /* @__PURE__ */ i(E, { children: [
528
+ o ? u && /* @__PURE__ */ t("span", { "aria-hidden": "true", className: h("absolute left-1/2 top-[5px] ml-[6px] size-[8px]", x ? "bg-red-600" : a.ponto) }) : /* @__PURE__ */ i(y, { children: [
529
529
  /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: e.rotulo }),
530
530
  u && /* @__PURE__ */ t(
531
531
  "span",
@@ -603,30 +603,30 @@ const Ie = We, we = ue, fe = {
603
603
  H(() => {
604
604
  var z;
605
605
  if (!u) return;
606
- const S = document.activeElement;
606
+ const L = document.activeElement;
607
607
  (z = v.current) == null || z.focus();
608
608
  const O = document.body.style.overflow;
609
609
  return document.body.style.overflow = "hidden", () => {
610
610
  var j;
611
- document.body.style.overflow = O, (j = S == null ? void 0 : S.focus) == null || j.call(S);
611
+ document.body.style.overflow = O, (j = L == null ? void 0 : L.focus) == null || j.call(L);
612
612
  };
613
613
  }, [u]);
614
- const b = (S) => {
615
- if (S.key === "Escape") {
616
- S.stopPropagation(), x == null || x();
614
+ const b = (L) => {
615
+ if (L.key === "Escape") {
616
+ L.stopPropagation(), x == null || x();
617
617
  return;
618
618
  }
619
- if (S.key !== "Tab" || !v.current) return;
619
+ if (L.key !== "Tab" || !v.current) return;
620
620
  const O = Array.from(v.current.querySelectorAll(Ve));
621
621
  if (!O.length) return;
622
622
  const z = O[0], j = O[O.length - 1];
623
- S.shiftKey && document.activeElement === z ? (S.preventDefault(), j.focus()) : !S.shiftKey && document.activeElement === j && (S.preventDefault(), z.focus());
624
- }, P = h("inline-flex size-[34px] shrink-0 items-center justify-center transition-colors motion-reduce:transition-none", C.fraco, C.hover, G), B = (S) => {
625
- const O = !S && f, z = O ? !!c : !!(s || c), j = (D) => A === "escura" ? /* @__PURE__ */ t("img", { src: we, alt: "Tailor.ia", className: D }) : A === "clara" ? /* @__PURE__ */ t("img", { src: Ie, alt: "Tailor.ia", className: D }) : /* @__PURE__ */ i(E, { children: [
623
+ L.shiftKey && document.activeElement === z ? (L.preventDefault(), j.focus()) : !L.shiftKey && document.activeElement === j && (L.preventDefault(), z.focus());
624
+ }, P = h("inline-flex size-[34px] shrink-0 items-center justify-center transition-colors motion-reduce:transition-none", C.fraco, C.hover, G), B = (L) => {
625
+ const O = !L && f, z = O ? !!c : !!(s || c), j = (D) => A === "escura" ? /* @__PURE__ */ t("img", { src: we, alt: "Tailor.ia", className: D }) : A === "clara" ? /* @__PURE__ */ t("img", { src: Ie, alt: "Tailor.ia", className: D }) : /* @__PURE__ */ i(y, { children: [
626
626
  /* @__PURE__ */ t("img", { src: Ie, alt: "Tailor.ia", className: h(D, "dark:hidden") }),
627
627
  /* @__PURE__ */ t("img", { src: we, alt: "", className: h(D, "hidden dark:block") })
628
628
  ] });
629
- return /* @__PURE__ */ t(ne.Provider, { value: { tom: C, recolhido: O, gaveta: S, renderLink: N, aoNavegar: S ? x : void 0, onRecolher: g }, children: /* @__PURE__ */ i("div", { className: h("flex h-full min-h-0 flex-col", C.fundo), children: [
629
+ return /* @__PURE__ */ t(ne.Provider, { value: { tom: C, recolhido: O, gaveta: L, renderLink: N, aoNavegar: L ? x : void 0, onRecolher: g }, children: /* @__PURE__ */ i("div", { className: h("flex h-full min-h-0 flex-col", C.fundo), children: [
630
630
  /* @__PURE__ */ i(
631
631
  "div",
632
632
  {
@@ -637,7 +637,7 @@ const Ie = We, we = ue, fe = {
637
637
  ),
638
638
  children: [
639
639
  O ? n : o ?? /* @__PURE__ */ t(qe, { produto: e, superficie: A, logoClaro: r, logoEscuro: a }),
640
- S ? /* @__PURE__ */ t("button", { type: "button", onClick: x, className: P, "aria-label": "Fechar menu", children: /* @__PURE__ */ t(Y, { d: yt, className: "size-5" }) }) : g && /* @__PURE__ */ t(
640
+ L ? /* @__PURE__ */ t("button", { type: "button", onClick: x, className: P, "aria-label": "Fechar menu", children: /* @__PURE__ */ t(Y, { d: yt, className: "size-5" }) }) : g && /* @__PURE__ */ t(
641
641
  "button",
642
642
  {
643
643
  type: "button",
@@ -666,7 +666,7 @@ const Ie = We, we = ue, fe = {
666
666
  ] })
667
667
  ] }) });
668
668
  };
669
- return /* @__PURE__ */ i(E, { children: [
669
+ return /* @__PURE__ */ i(y, { children: [
670
670
  /* @__PURE__ */ t(
671
671
  "aside",
672
672
  {
@@ -728,8 +728,8 @@ const Ie = We, we = ue, fe = {
728
728
  b.preventDefault();
729
729
  const B = Array.from(R.current.querySelectorAll(Ve));
730
730
  if (!B.length) return;
731
- const S = B.indexOf(document.activeElement), O = b.key === "ArrowDown" ? 1 : -1;
732
- B[(S + O + B.length) % B.length].focus();
731
+ const L = B.indexOf(document.activeElement), O = b.key === "ArrowDown" ? 1 : -1;
732
+ B[(L + O + B.length) % B.length].focus();
733
733
  }
734
734
  }, C = /* @__PURE__ */ t("span", { className: h("inline-flex size-[34px] shrink-0 items-center justify-center overflow-hidden rounded-full font-tailor text-sm font-semibold", s.avatar), children: o ? /* @__PURE__ */ t("img", { src: o, alt: "", className: "size-full object-cover" }) : (e.trim().charAt(0) || "?").toUpperCase() }), v = (b) => h("flex h-[34px] w-full items-center gap-[13px] px-[13px] text-left font-tailor text-sm font-medium transition-colors motion-reduce:transition-none", G, b ? s.perigo : h(s.texto, s.hover));
735
735
  return /* @__PURE__ */ i("div", { ref: w, className: "relative", onKeyDown: Q, children: [
@@ -745,7 +745,7 @@ const Ie = We, we = ue, fe = {
745
745
  className: h("flex w-full items-center gap-[13px] py-[13px] text-left transition-colors motion-reduce:transition-none", s.hover, G, c ? "justify-center px-0" : "px-[21px]"),
746
746
  children: [
747
747
  C,
748
- !c && /* @__PURE__ */ i(E, { children: [
748
+ !c && /* @__PURE__ */ i(y, { children: [
749
749
  /* @__PURE__ */ i("span", { className: "min-w-0 flex-1", children: [
750
750
  /* @__PURE__ */ t("span", { className: h("block truncate font-tailor text-sm font-semibold leading-tight", s.forte), children: e }),
751
751
  r && /* @__PURE__ */ t("span", { className: h("mt-[2px] block truncate font-tailor text-[11px] leading-tight", s.fraco), children: r })
@@ -775,14 +775,14 @@ const Ie = We, we = ue, fe = {
775
775
  ] }),
776
776
  l && /* @__PURE__ */ t("div", { className: h("border-b px-[13px] py-[8px]", s.borda), children: l }),
777
777
  n.length > 0 && /* @__PURE__ */ t("div", { className: "pt-[8px]", children: n.map((b) => {
778
- const P = b.icone, B = /* @__PURE__ */ i(E, { children: [
778
+ const P = b.icone, B = /* @__PURE__ */ i(y, { children: [
779
779
  P && /* @__PURE__ */ t("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: /* @__PURE__ */ t(P, { className: "size-4 stroke-[1.5]" }) }),
780
780
  b.rotulo
781
- ] }), S = () => {
781
+ ] }), L = () => {
782
782
  var O;
783
783
  g(), (O = b.onSelect) == null || O.call(b);
784
784
  };
785
- return b.href ? /* @__PURE__ */ t("a", { href: b.href, onClick: S, className: v(b.tom === "perigo"), children: B }, b.rotulo) : /* @__PURE__ */ t("button", { type: "button", onClick: S, className: v(b.tom === "perigo"), children: B }, b.rotulo);
785
+ return b.href ? /* @__PURE__ */ t("a", { href: b.href, onClick: L, className: v(b.tom === "perigo"), children: B }, b.rotulo) : /* @__PURE__ */ t("button", { type: "button", onClick: L, className: v(b.tom === "perigo"), children: B }, b.rotulo);
786
786
  }) })
787
787
  ]
788
788
  }
@@ -818,34 +818,34 @@ const Ie = We, we = ue, fe = {
818
818
  s,
819
819
  c
820
820
  ] });
821
- }, k = "var(--tailor-mv-corpo, var(--tailor-black))", M = "var(--tailor-mv-olho, var(--tailor-white))", L = "var(--tailor-green)", se = "var(--tailor-mv-vermelho, #FF0040)", Be = "var(--tailor-white)", Bt = {
821
+ }, k = "var(--tailor-mv-corpo, var(--tailor-black))", M = "var(--tailor-mv-olho, var(--tailor-white))", S = "var(--tailor-green)", se = "var(--tailor-mv-vermelho, #FF0040)", Be = "var(--tailor-white)", Bt = {
822
822
  desk: {
823
823
  topo: 70,
824
824
  apoio: [165, 128],
825
825
  olhos: { l: 88, r: 132, y: 116 },
826
826
  corpo: /* @__PURE__ */ t("rect", { x: "55", y: "70", width: "110", height: "110", rx: "48", fill: k }),
827
827
  // mordomo: gravata-borboleta
828
- verde: /* @__PURE__ */ i(E, { children: [
829
- /* @__PURE__ */ t("path", { d: "M110 168 L94 159 V177 Z M110 168 L126 159 V177 Z", fill: L, stroke: L, strokeWidth: "3", strokeLinejoin: "round" }),
830
- /* @__PURE__ */ t("rect", { x: "105", y: "163", width: "10", height: "10", rx: "2", fill: L })
828
+ verde: /* @__PURE__ */ i(y, { children: [
829
+ /* @__PURE__ */ t("path", { d: "M110 168 L94 159 V177 Z M110 168 L126 159 V177 Z", fill: S, stroke: S, strokeWidth: "3", strokeLinejoin: "round" }),
830
+ /* @__PURE__ */ t("rect", { x: "105", y: "163", width: "10", height: "10", rx: "2", fill: S })
831
831
  ] })
832
832
  },
833
833
  pergunte: {
834
834
  topo: 60,
835
835
  apoio: [175, 118],
836
836
  olhos: { l: 88, r: 132, y: 102 },
837
- corpo: /* @__PURE__ */ i(E, { children: [
837
+ corpo: /* @__PURE__ */ i(y, { children: [
838
838
  /* @__PURE__ */ t("rect", { x: "45", y: "60", width: "130", height: "100", rx: "36", fill: k }),
839
839
  /* @__PURE__ */ t("path", { d: "M68 150 L58 184 L100 156 Z", fill: k, stroke: k, strokeWidth: "4", strokeLinejoin: "round" })
840
840
  ] }),
841
- verde: /* @__PURE__ */ t("circle", { cx: "166", cy: "64", r: "10", fill: L })
841
+ verde: /* @__PURE__ */ t("circle", { cx: "166", cy: "64", r: "10", fill: S })
842
842
  },
843
843
  pm: {
844
844
  topo: 72,
845
845
  apoio: [170, 136],
846
846
  olhos: { l: 90, r: 130, y: 122 },
847
847
  corpo: /* @__PURE__ */ t("rect", { x: "50", y: "72", width: "120", height: "108", rx: "26", fill: k }),
848
- verde: /* @__PURE__ */ t("path", { d: "M50 98 Q50 72 76 72 H144 Q170 72 170 98 Z", fill: L })
848
+ verde: /* @__PURE__ */ t("path", { d: "M50 98 Q50 72 76 72 H144 Q170 72 170 98 Z", fill: S })
849
849
  },
850
850
  diretor: {
851
851
  topo: 52,
@@ -853,28 +853,28 @@ const Ie = We, we = ue, fe = {
853
853
  olhos: { l: 92, r: 128, y: 100 },
854
854
  lente: !0,
855
855
  corpo: /* @__PURE__ */ t("rect", { x: "62", y: "52", width: "96", height: "128", rx: "44", fill: k }),
856
- verde: /* @__PURE__ */ t("path", { d: "M104 142 H116 L113 149 L120 172 L110 180 L100 172 L107 149 Z", fill: L })
856
+ verde: /* @__PURE__ */ t("path", { d: "M104 142 H116 L113 149 L120 172 L110 180 L100 172 L107 149 Z", fill: S })
857
857
  },
858
858
  sdr: {
859
859
  topo: 56,
860
860
  apoio: [170, 132],
861
861
  olhos: { l: 90, r: 132, y: 112 },
862
- corpo: /* @__PURE__ */ i(E, { children: [
862
+ corpo: /* @__PURE__ */ i(y, { children: [
863
863
  /* @__PURE__ */ t("rect", { x: "52", y: "66", width: "116", height: "114", rx: "44", fill: k }),
864
864
  /* @__PURE__ */ t("path", { d: "M50 112 A60 60 0 0 1 170 112", fill: "none", stroke: k, strokeWidth: "7" }),
865
865
  /* @__PURE__ */ t("rect", { x: "42", y: "98", width: "16", height: "30", rx: "6", fill: k }),
866
866
  /* @__PURE__ */ t("rect", { x: "162", y: "98", width: "16", height: "30", rx: "6", fill: k }),
867
867
  /* @__PURE__ */ t("path", { d: "M60 126 Q66 156 88 156", fill: "none", stroke: M, strokeWidth: "4", strokeLinecap: "round" })
868
868
  ] }),
869
- verde: /* @__PURE__ */ t("circle", { cx: "92", cy: "156", r: "7", fill: L })
869
+ verde: /* @__PURE__ */ t("circle", { cx: "92", cy: "156", r: "7", fill: S })
870
870
  },
871
871
  cred: {
872
872
  topo: 78,
873
873
  apoio: [180, 132],
874
874
  olhos: { l: 96, r: 140, y: 112 },
875
875
  corpo: /* @__PURE__ */ t("rect", { x: "40", y: "78", width: "140", height: "96", rx: "22", fill: k }),
876
- verde: /* @__PURE__ */ i(E, { children: [
877
- /* @__PURE__ */ t("rect", { x: "54", y: "134", width: "28", height: "22", rx: "4", fill: L }),
876
+ verde: /* @__PURE__ */ i(y, { children: [
877
+ /* @__PURE__ */ t("rect", { x: "54", y: "134", width: "28", height: "22", rx: "4", fill: S }),
878
878
  /* @__PURE__ */ t("path", { d: "M54 145 H82 M68 134 V156", stroke: k, strokeWidth: "2" })
879
879
  ] })
880
880
  },
@@ -883,8 +883,8 @@ const Ie = We, we = ue, fe = {
883
883
  apoio: [162, 132],
884
884
  olhos: { l: 90, r: 130, y: 106 },
885
885
  corpo: /* @__PURE__ */ t("circle", { cx: "110", cy: "128", r: "56", fill: k }),
886
- verde: /* @__PURE__ */ i(E, { children: [
887
- /* @__PURE__ */ t("path", { d: "M92 172 A18 18 0 0 1 128 172", fill: "none", stroke: L, strokeWidth: "6", strokeLinecap: "round" }),
886
+ verde: /* @__PURE__ */ i(y, { children: [
887
+ /* @__PURE__ */ t("path", { d: "M92 172 A18 18 0 0 1 128 172", fill: "none", stroke: S, strokeWidth: "6", strokeLinecap: "round" }),
888
888
  /* @__PURE__ */ t("path", { d: "M110 172 L121 160", stroke: M, strokeWidth: "3", strokeLinecap: "round" })
889
889
  ] })
890
890
  },
@@ -892,34 +892,34 @@ const Ie = We, we = ue, fe = {
892
892
  topo: 42,
893
893
  apoio: [162, 130],
894
894
  olhos: { l: 92, r: 128, y: 114 },
895
- corpo: /* @__PURE__ */ i(E, { children: [
895
+ corpo: /* @__PURE__ */ i(y, { children: [
896
896
  /* @__PURE__ */ t("rect", { x: "58", y: "70", width: "104", height: "110", rx: "40", fill: k }),
897
897
  /* @__PURE__ */ t("path", { d: "M54 78 Q58 44 110 42 Q162 44 166 78 Z", fill: k }),
898
898
  /* @__PURE__ */ t("path", { d: "M48 78 H172 Q172 88 162 88 H58 Q48 88 48 78 Z", fill: M, stroke: k, strokeWidth: "3" })
899
899
  ] }),
900
- verde: /* @__PURE__ */ t("circle", { cx: "110", cy: "60", r: "8", fill: L })
900
+ verde: /* @__PURE__ */ t("circle", { cx: "110", cy: "60", r: "8", fill: S })
901
901
  },
902
902
  flow: {
903
903
  topo: 68,
904
904
  apoio: [164, 130],
905
905
  olhos: { l: 90, r: 130, y: 108 },
906
906
  corpo: /* @__PURE__ */ t("rect", { x: "56", y: "68", width: "108", height: "112", rx: "30", fill: k }),
907
- verde: /* @__PURE__ */ i(E, { children: [
908
- /* @__PURE__ */ t("path", { d: "M84 164 H98 V152 H122 V164 H136", fill: "none", stroke: L, strokeWidth: "4" }),
909
- /* @__PURE__ */ t("rect", { x: "76", y: "159", width: "10", height: "10", fill: L }),
910
- /* @__PURE__ */ t("rect", { x: "134", y: "159", width: "10", height: "10", fill: L })
907
+ verde: /* @__PURE__ */ i(y, { children: [
908
+ /* @__PURE__ */ t("path", { d: "M84 164 H98 V152 H122 V164 H136", fill: "none", stroke: S, strokeWidth: "4" }),
909
+ /* @__PURE__ */ t("rect", { x: "76", y: "159", width: "10", height: "10", fill: S }),
910
+ /* @__PURE__ */ t("rect", { x: "134", y: "159", width: "10", height: "10", fill: S })
911
911
  ] })
912
912
  },
913
913
  bi: {
914
914
  topo: 62,
915
915
  apoio: [176, 118],
916
916
  olhos: { l: 84, r: 124, y: 100 },
917
- corpo: /* @__PURE__ */ i(E, { children: [
917
+ corpo: /* @__PURE__ */ i(y, { children: [
918
918
  /* @__PURE__ */ t("rect", { x: "44", y: "62", width: "132", height: "100", rx: "16", fill: k }),
919
919
  /* @__PURE__ */ t("rect", { x: "98", y: "158", width: "24", height: "16", fill: k }),
920
920
  /* @__PURE__ */ t("rect", { x: "76", y: "172", width: "68", height: "8", rx: "4", fill: k })
921
921
  ] }),
922
- verde: /* @__PURE__ */ i("g", { fill: L, children: [
922
+ verde: /* @__PURE__ */ i("g", { fill: S, children: [
923
923
  /* @__PURE__ */ t("rect", { x: "144", y: "132", width: "7", height: "16" }),
924
924
  /* @__PURE__ */ t("rect", { x: "154", y: "122", width: "7", height: "26" }),
925
925
  /* @__PURE__ */ t("rect", { x: "164", y: "110", width: "7", height: "38" })
@@ -930,9 +930,20 @@ const Ie = We, we = ue, fe = {
930
930
  apoio: [162, 132],
931
931
  olhos: { l: 90, r: 130, y: 112 },
932
932
  corpo: /* @__PURE__ */ t("rect", { x: "56", y: "68", width: "108", height: "112", rx: "54", fill: k }),
933
- verde: /* @__PURE__ */ t("path", { d: "M110 178 C94 168 95 157 103 157 C107 157 110 161 110 161 C110 161 113 157 117 157 C125 157 126 168 110 178 Z", fill: L })
933
+ verde: /* @__PURE__ */ t("path", { d: "M110 178 C94 168 95 157 103 157 C107 157 110 161 110 161 C110 161 113 157 117 157 C125 157 126 168 110 178 Z", fill: S })
934
+ },
935
+ cs: {
936
+ topo: 64,
937
+ apoio: [166, 130],
938
+ olhos: { l: 90, r: 130, y: 108 },
939
+ corpo: /* @__PURE__ */ t("rect", { x: "54", y: "64", width: "112", height: "116", rx: "42", fill: k }),
940
+ // sucesso do cliente: balão de conversa com o check, a conversa que resolve
941
+ verde: /* @__PURE__ */ i(y, { children: [
942
+ /* @__PURE__ */ t("path", { d: "M94 146 H126 Q131 146 131 151 V163 Q131 168 126 168 H106 L98 175 V168 H94 Q89 168 89 163 V151 Q89 146 94 146 Z", fill: S }),
943
+ /* @__PURE__ */ t("path", { d: "M102 157 L108 162 L119 151", fill: "none", stroke: k, strokeWidth: "3.5", strokeLinecap: "round", strokeLinejoin: "round" })
944
+ ] })
934
945
  }
935
- }, St = {
946
+ }, Lt = {
936
947
  neutro: ["aberto", "aberto"],
937
948
  feliz: ["feliz", "feliz"],
938
949
  piscando: ["aberto", "feliz"],
@@ -942,7 +953,7 @@ const Ie = We, we = ue, fe = {
942
953
  desconfiado: ["meio", "meio"],
943
954
  sonolento: ["fechado", "fechado"],
944
955
  tonto: ["x", "x"]
945
- }, Lt = {
956
+ }, St = {
946
957
  parado: "neutro",
947
958
  cumprimentando: "piscando",
948
959
  pensando: "desconfiado",
@@ -952,70 +963,70 @@ const Ie = We, we = ue, fe = {
952
963
  erro: "triste",
953
964
  dormindo: "sonolento"
954
965
  }, Ct = {
955
- gorro: /* @__PURE__ */ i(E, { children: [
966
+ gorro: /* @__PURE__ */ i(y, { children: [
956
967
  /* @__PURE__ */ t("path", { d: "M-36 2 L36 2 L36 -10 Q0 -60 -36 -10 Z", fill: se }),
957
968
  /* @__PURE__ */ t("path", { d: "M-36 2 Q-30 -36 6 -46 Q30 -50 40 -24", fill: se, stroke: se, strokeWidth: "2" }),
958
969
  /* @__PURE__ */ t("rect", { x: "-42", y: "-6", width: "84", height: "14", rx: "7", fill: Be, stroke: k, strokeWidth: "3" }),
959
970
  /* @__PURE__ */ t("circle", { cx: "40", cy: "-24", r: "9", fill: Be, stroke: k, strokeWidth: "3" })
960
971
  ] }),
961
- orelhas: /* @__PURE__ */ t(E, { children: [-1, 1].map((e) => /* @__PURE__ */ i("g", { transform: `rotate(${12 * e} ${22 * e} 0)`, children: [
972
+ orelhas: /* @__PURE__ */ t(y, { children: [-1, 1].map((e) => /* @__PURE__ */ i("g", { transform: `rotate(${12 * e} ${22 * e} 0)`, children: [
962
973
  /* @__PURE__ */ t("ellipse", { cx: 22 * e, cy: "-30", rx: "11", ry: "32", fill: k }),
963
974
  /* @__PURE__ */ t("ellipse", { cx: 22 * e, cy: "-30", rx: "4.5", ry: "21", fill: M })
964
975
  ] }, e)) }),
965
- festa: /* @__PURE__ */ i(E, { children: [
976
+ festa: /* @__PURE__ */ i(y, { children: [
966
977
  /* @__PURE__ */ t("path", { d: "M-22 4 L22 4 L2 -50 Z", fill: M, stroke: k, strokeWidth: "4", strokeLinejoin: "round" }),
967
978
  /* @__PURE__ */ t("path", { d: "M-12 -14 L14 -8 M-4 -34 L10 -30", stroke: k, strokeWidth: "4" }),
968
979
  /* @__PURE__ */ t("circle", { cx: "2", cy: "-52", r: "6", fill: k })
969
980
  ] }),
970
- bruxa: /* @__PURE__ */ i(E, { children: [
981
+ bruxa: /* @__PURE__ */ i(y, { children: [
971
982
  /* @__PURE__ */ t("path", { d: "M-26 0 L26 0 L12 -50 L40 -62 L2 -58 Z", fill: k, stroke: k, strokeWidth: "3", strokeLinejoin: "round" }),
972
983
  /* @__PURE__ */ t("rect", { x: "-24", y: "-12", width: "48", height: "8", fill: M }),
973
984
  /* @__PURE__ */ t("ellipse", { cx: "0", cy: "2", rx: "52", ry: "8", fill: k })
974
985
  ] }),
975
- bone: /* @__PURE__ */ i(E, { children: [
986
+ bone: /* @__PURE__ */ i(y, { children: [
976
987
  /* @__PURE__ */ t("path", { d: "M-36 6 Q-36 -30 0 -30 Q36 -30 36 6 Z", fill: M, stroke: k, strokeWidth: "4" }),
977
988
  /* @__PURE__ */ t("path", { d: "M30 2 H64 Q68 9 58 10 H30 Z", fill: M, stroke: k, strokeWidth: "4", strokeLinejoin: "round" })
978
989
  ] }),
979
- capacete: /* @__PURE__ */ i(E, { children: [
990
+ capacete: /* @__PURE__ */ i(y, { children: [
980
991
  /* @__PURE__ */ t("path", { d: "M-62 40 A62 62 0 0 1 62 40", fill: "none", stroke: k, strokeWidth: "4", strokeLinecap: "round" }),
981
992
  /* @__PURE__ */ t("path", { d: "M-40 -14 A48 48 0 0 1 -14 -30", fill: "none", stroke: k, strokeWidth: "4", strokeLinecap: "round" })
982
993
  ] }),
983
994
  coroa: /* @__PURE__ */ t("path", { d: "M-32 6 L-32 -24 L-16 -8 L0 -32 L16 -8 L32 -24 L32 6 Z", fill: M, stroke: k, strokeWidth: "4", strokeLinejoin: "round" })
984
995
  }, Nt = {
985
- presente: /* @__PURE__ */ i(E, { children: [
996
+ presente: /* @__PURE__ */ i(y, { children: [
986
997
  /* @__PURE__ */ t("rect", { x: "-6", y: "-2", width: "40", height: "34", fill: M, stroke: k, strokeWidth: "4" }),
987
998
  /* @__PURE__ */ t("path", { d: "M14 -2 V32", stroke: k, strokeWidth: "4" }),
988
- /* @__PURE__ */ t("path", { d: "M14 -2 Q2 -18 -2 -6 Z M14 -2 Q26 -18 30 -6 Z", fill: L, stroke: k, strokeWidth: "3", strokeLinejoin: "round" })
999
+ /* @__PURE__ */ t("path", { d: "M14 -2 Q2 -18 -2 -6 Z M14 -2 Q26 -18 30 -6 Z", fill: S, stroke: k, strokeWidth: "3", strokeLinejoin: "round" })
989
1000
  ] }),
990
- ovo: /* @__PURE__ */ i(E, { children: [
1001
+ ovo: /* @__PURE__ */ i(y, { children: [
991
1002
  /* @__PURE__ */ t("ellipse", { cx: "14", cy: "10", rx: "17", ry: "22", fill: M, stroke: k, strokeWidth: "4" }),
992
- /* @__PURE__ */ t("path", { d: "M-1 8 L5 2 L11 8 L17 2 L23 8 L29 2", fill: "none", stroke: L, strokeWidth: "4", strokeLinejoin: "round" })
1003
+ /* @__PURE__ */ t("path", { d: "M-1 8 L5 2 L11 8 L17 2 L23 8 L29 2", fill: "none", stroke: S, strokeWidth: "4", strokeLinejoin: "round" })
993
1004
  ] }),
994
- bolo: /* @__PURE__ */ i(E, { children: [
1005
+ bolo: /* @__PURE__ */ i(y, { children: [
995
1006
  /* @__PURE__ */ t("rect", { x: "-8", y: "2", width: "44", height: "28", fill: M, stroke: k, strokeWidth: "4" }),
996
1007
  /* @__PURE__ */ t("path", { d: "M-8 12 H36", stroke: k, strokeWidth: "4" }),
997
1008
  /* @__PURE__ */ t("rect", { x: "11", y: "-14", width: "6", height: "16", fill: k }),
998
- /* @__PURE__ */ t("path", { d: "M14 -28 Q20 -20 14 -16 Q8 -20 14 -28 Z", fill: L })
1009
+ /* @__PURE__ */ t("path", { d: "M14 -28 Q20 -20 14 -16 Q8 -20 14 -28 Z", fill: S })
999
1010
  ] }),
1000
- abobora: /* @__PURE__ */ i(E, { children: [
1011
+ abobora: /* @__PURE__ */ i(y, { children: [
1001
1012
  /* @__PURE__ */ t("ellipse", { cx: "14", cy: "12", rx: "22", ry: "18", fill: M, stroke: k, strokeWidth: "4" }),
1002
1013
  /* @__PURE__ */ t("path", { d: "M14 -6 V30 M2 -2 Q-4 12 2 27 M26 -2 Q32 12 26 27", fill: "none", stroke: k, strokeWidth: "3" }),
1003
- /* @__PURE__ */ t("path", { d: "M14 -6 Q16 -16 24 -18", fill: "none", stroke: L, strokeWidth: "5", strokeLinecap: "round" })
1014
+ /* @__PURE__ */ t("path", { d: "M14 -6 Q16 -16 24 -18", fill: "none", stroke: S, strokeWidth: "5", strokeLinecap: "round" })
1004
1015
  ] }),
1005
- bola: /* @__PURE__ */ i(E, { children: [
1016
+ bola: /* @__PURE__ */ i(y, { children: [
1006
1017
  /* @__PURE__ */ t("circle", { cx: "14", cy: "10", r: "20", fill: M, stroke: k, strokeWidth: "4" }),
1007
- /* @__PURE__ */ t("path", { d: "M14 2 L22 8 L19 17 L9 17 L6 8 Z", fill: L, stroke: k, strokeWidth: "3", strokeLinejoin: "round" })
1018
+ /* @__PURE__ */ t("path", { d: "M14 2 L22 8 L19 17 L9 17 L6 8 Z", fill: S, stroke: k, strokeWidth: "3", strokeLinejoin: "round" })
1008
1019
  ] }),
1009
- sabre: /* @__PURE__ */ i(E, { children: [
1010
- /* @__PURE__ */ t("path", { d: "M6 -4 L34 -70", stroke: L, strokeWidth: "8", strokeLinecap: "round" }),
1020
+ sabre: /* @__PURE__ */ i(y, { children: [
1021
+ /* @__PURE__ */ t("path", { d: "M6 -4 L34 -70", stroke: S, strokeWidth: "8", strokeLinecap: "round" }),
1011
1022
  /* @__PURE__ */ t("rect", { x: "-2", y: "-6", width: "12", height: "26", rx: "2", fill: k, transform: "rotate(23 4 7)" })
1012
1023
  ] }),
1013
- trofeu: /* @__PURE__ */ i(E, { children: [
1024
+ trofeu: /* @__PURE__ */ i(y, { children: [
1014
1025
  /* @__PURE__ */ t("path", { d: "M-2 -10 H30 V4 Q30 20 14 22 Q-2 20 -2 4 Z", fill: M, stroke: k, strokeWidth: "4", strokeLinejoin: "round" }),
1015
1026
  /* @__PURE__ */ t("path", { d: "M14 22 V30 M4 32 H24", stroke: k, strokeWidth: "4", strokeLinecap: "round" }),
1016
- /* @__PURE__ */ t("circle", { cx: "14", cy: "4", r: "5", fill: L })
1027
+ /* @__PURE__ */ t("circle", { cx: "14", cy: "4", r: "5", fill: S })
1017
1028
  ] })
1018
- }, Se = {
1029
+ }, Le = {
1019
1030
  natal: ["gorro", "presente"],
1020
1031
  pascoa: ["orelhas", "ovo"],
1021
1032
  aniversario: ["festa", "bolo"],
@@ -1024,10 +1035,10 @@ const Ie = We, we = ue, fe = {
1024
1035
  galaxia: ["capacete", "sabre"],
1025
1036
  premiacao: ["coroa", "trofeu"]
1026
1037
  };
1027
- function Le({ x: e, y: r, modo: a, lado: o, lente: n }) {
1038
+ function Se({ x: e, y: r, modo: a, lado: o, lente: n }) {
1028
1039
  const l = (A) => /* @__PURE__ */ t("path", { d: A, fill: "none", stroke: M, strokeWidth: "5", strokeLinecap: "round" }), s = a === "grande", c = { bravo: [r - 12, r - 1], triste: [r - 1, r - 12], meio: [r - 2, r - 2] }[a], d = e - 18 * o, p = e + 18 * o, m = r - 22;
1029
- return /* @__PURE__ */ i(E, { children: [
1030
- a === "feliz" ? l(`M${e - 10} ${r + 4} Q${e} ${r - 10} ${e + 10} ${r + 4}`) : a === "fechado" ? l(`M${e - 10} ${r} Q${e} ${r + 8} ${e + 10} ${r}`) : a === "x" ? l(`M${e - 8} ${r - 8} L${e + 8} ${r + 8} M${e + 8} ${r - 8} L${e - 8} ${r + 8}`) : /* @__PURE__ */ i(E, { children: [
1040
+ return /* @__PURE__ */ i(y, { children: [
1041
+ a === "feliz" ? l(`M${e - 10} ${r + 4} Q${e} ${r - 10} ${e + 10} ${r + 4}`) : a === "fechado" ? l(`M${e - 10} ${r} Q${e} ${r + 8} ${e + 10} ${r}`) : a === "x" ? l(`M${e - 8} ${r - 8} L${e + 8} ${r + 8} M${e + 8} ${r - 8} L${e - 8} ${r + 8}`) : /* @__PURE__ */ i(y, { children: [
1031
1042
  n ? /* @__PURE__ */ t("rect", { x: e - 13, y: r - (s ? 11 : 9), width: "26", height: s ? 22 : 18, rx: "6", fill: M }) : /* @__PURE__ */ t("circle", { cx: e, cy: r, r: s ? 17 : 14, fill: M }),
1032
1043
  /* @__PURE__ */ t("circle", { className: "tailor-mv__pupila", cx: e, cy: r + 1, r: s ? 4.5 : n ? 5 : 6.5, fill: k }),
1033
1044
  c && /* @__PURE__ */ t("path", { d: `M${d} ${m} L${p} ${m} L${p} ${c[1]} L${d} ${c[0]} Z`, fill: k })
@@ -1036,7 +1047,7 @@ function Le({ x: e, y: r, modo: a, lado: o, lente: n }) {
1036
1047
  ] });
1037
1048
  }
1038
1049
  function Ot({ agente: e, pose: r, expressao: a, tema: o, acessorio: n, objeto: l, fala: s, tamanho: c }) {
1039
- const d = Bt[e], [p, m] = St[a ?? Lt[r]], A = n ?? (o && Se[o][0]), f = l ?? (o && Se[o][1]), g = X(null);
1050
+ const d = Bt[e], [p, m] = Lt[a ?? St[r]], A = n ?? (o && Le[o][0]), f = l ?? (o && Le[o][1]), g = X(null);
1040
1051
  return H(() => {
1041
1052
  const u = g.current;
1042
1053
  if (!u || matchMedia("(prefers-reduced-motion: reduce)").matches) return;
@@ -1050,7 +1061,7 @@ function Ot({ agente: e, pose: r, expressao: a, tema: o, acessorio: n, objeto: l
1050
1061
  return addEventListener("pointermove", w), () => {
1051
1062
  removeEventListener("pointermove", w), cancelAnimationFrame(x);
1052
1063
  };
1053
- }, []), /* @__PURE__ */ i(E, { children: [
1064
+ }, []), /* @__PURE__ */ i(y, { children: [
1054
1065
  c < 48 ? null : r === "pensando" ? /* @__PURE__ */ i("span", { className: "tailor-mv__balao tailor-mv__pontos", "aria-hidden": "true", children: [
1055
1066
  /* @__PURE__ */ t("span", {}),
1056
1067
  /* @__PURE__ */ t("span", {}),
@@ -1061,14 +1072,14 @@ function Ot({ agente: e, pose: r, expressao: a, tema: o, acessorio: n, objeto: l
1061
1072
  d.corpo,
1062
1073
  /* @__PURE__ */ t("g", { className: "tailor-mv__verde", children: d.verde }),
1063
1074
  /* @__PURE__ */ i("g", { className: "tailor-mv__olhos", children: [
1064
- /* @__PURE__ */ t(Le, { x: d.olhos.l, y: d.olhos.y, modo: p, lado: 1, lente: d.lente }),
1065
- /* @__PURE__ */ t(Le, { x: d.olhos.r, y: d.olhos.y, modo: m, lado: -1, lente: d.lente }),
1075
+ /* @__PURE__ */ t(Se, { x: d.olhos.l, y: d.olhos.y, modo: p, lado: 1, lente: d.lente }),
1076
+ /* @__PURE__ */ t(Se, { x: d.olhos.r, y: d.olhos.y, modo: m, lado: -1, lente: d.lente }),
1066
1077
  d.lente && /* @__PURE__ */ t("path", { d: `M${d.olhos.l + 16} ${d.olhos.y - 2} H${d.olhos.r - 16}`, stroke: M, strokeWidth: "3" })
1067
1078
  ] }),
1068
1079
  A && /* @__PURE__ */ t("g", { transform: `translate(110 ${d.topo + 2})`, children: Ct[A] }),
1069
1080
  f && /* @__PURE__ */ t("g", { transform: `translate(${d.apoio[0] + 8} ${d.apoio[1] + 14})`, children: Nt[f] })
1070
1081
  ] }),
1071
- r === "comemorando" && /* @__PURE__ */ t("g", { className: "tailor-mv__confete", children: [[40, 20, 0], [70, 0, 0.5], [150, 10, 0.2], [180, 30, 0.9], [100, -10, 1.2], [200, 0, 0.7]].map(([u, x, w], N) => /* @__PURE__ */ t("rect", { x: u, y: x, width: "8", height: "8", fill: N % 2 ? L : k, style: { animationDelay: `${w}s` } }, N)) }),
1082
+ r === "comemorando" && /* @__PURE__ */ t("g", { className: "tailor-mv__confete", children: [[40, 20, 0], [70, 0, 0.5], [150, 10, 0.2], [180, 30, 0.9], [100, -10, 1.2], [200, 0, 0.7]].map(([u, x, w], N) => /* @__PURE__ */ t("rect", { x: u, y: x, width: "8", height: "8", fill: N % 2 ? S : k, style: { animationDelay: `${w}s` } }, N)) }),
1072
1083
  r === "dormindo" && /* @__PURE__ */ t("g", { className: "tailor-mv__zzz", children: [0, 1, 2].map((u) => /* @__PURE__ */ t("text", { x: 150 + u * 6, y: d.topo - 4, fill: k, style: { animationDelay: `${u}s` }, children: "z" }, u)) })
1073
1084
  ] })
1074
1085
  ] });
@@ -1281,7 +1292,7 @@ function sr({
1281
1292
  return /* @__PURE__ */ i("header", { className: h("tailor-ph", m), children: [
1282
1293
  /* @__PURE__ */ i("div", { className: "tailor-ph__row", children: [
1283
1294
  /* @__PURE__ */ i("div", { className: "tailor-ph__main", children: [
1284
- n && (n.href ? p({ href: n.href, className: "tailor-ph__back", children: /* @__PURE__ */ i(E, { children: [
1295
+ n && (n.href ? p({ href: n.href, className: "tailor-ph__back", children: /* @__PURE__ */ i(y, { children: [
1285
1296
  /* @__PURE__ */ t("span", { "aria-hidden": "true", children: "←" }),
1286
1297
  " ",
1287
1298
  n.label
@@ -1318,7 +1329,7 @@ function sr({
1318
1329
  d && /* @__PURE__ */ t("div", { className: "tailor-ph__below", children: d })
1319
1330
  ] });
1320
1331
  }
1321
- const Tt = {
1332
+ const Zt = {
1322
1333
  primary: "--tailor-brand-primary",
1323
1334
  primaryText: "--tailor-brand-primary-text",
1324
1335
  onPrimary: "--tailor-brand-on-primary",
@@ -1336,7 +1347,7 @@ function Oe(e) {
1336
1347
  const r = {};
1337
1348
  return Object.keys(e).forEach((a) => {
1338
1349
  const o = e[a];
1339
- o !== void 0 && o !== "" && (r[Tt[a]] = String(o));
1350
+ o !== void 0 && o !== "" && (r[Zt[a]] = String(o));
1340
1351
  }), r;
1341
1352
  }
1342
1353
  const Re = (e) => Object.entries(e).map(([r, a]) => `${r}:${a.replace(/[;{}<]/g, "")}`).join(";");
@@ -1347,9 +1358,9 @@ function cr({ theme: e, dark: r, children: a }) {
1347
1358
  a
1348
1359
  ] });
1349
1360
  }
1350
- const Zt = ["#007bff", "#6c757d"], W = (e) => e && /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(e.trim()) ? e.trim() : void 0, Me = (e) => {
1361
+ const Tt = ["#007bff", "#6c757d"], W = (e) => e && /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(e.trim()) ? e.trim() : void 0, Me = (e) => {
1351
1362
  const r = W(e);
1352
- return r && !Zt.includes(r.toLowerCase()) ? r : void 0;
1363
+ return r && !Tt.includes(r.toLowerCase()) ? r : void 0;
1353
1364
  };
1354
1365
  function Pe(e) {
1355
1366
  const r = e.length === 4 ? e.slice(1).split("").map((l) => l + l).join("") : e.slice(1), [a, o, n] = [0, 2, 4].map((l) => {
@@ -1450,55 +1461,55 @@ function Ar({
1450
1461
  stickyHeader: f = !1,
1451
1462
  className: g
1452
1463
  }) {
1453
- const { locale: u, currency: x, messages: w } = F(), [N, R] = J(d), [Q, C] = J(1), v = c ? s : N, b = Ze(() => {
1464
+ const { locale: u, currency: x, messages: w } = F(), [N, R] = J(d), [Q, C] = J(1), v = c ? s : N, b = Te(() => {
1454
1465
  if (c || !v) return r;
1455
- const y = e.find((K) => K.key === v.key);
1456
- if (!y) return r;
1457
- const T = v.direction === "asc" ? 1 : -1;
1458
- return [...r].sort((K, tt) => T * Ht(ce(y, K), ce(y, tt), u));
1459
- }, [r, e, v, c, u]), P = p ? Math.max(1, Math.ceil(b.length / p)) : 1, B = Math.min(Q, P), S = p && !m ? b.slice((B - 1) * p, B * p) : b, O = (y) => {
1460
- const T = (v == null ? void 0 : v.key) === y && v.direction === "asc" ? { key: y, direction: "desc" } : { key: y, direction: "asc" };
1461
- c ? c(T) : (R(T), C(1));
1462
- }, z = (y, T) => zt(y, T, u, x), j = (y) => y.align ?? (jt.includes(y.type ?? "text") ? "right" : "left"), D = e.some((y) => y.total !== void 0), U = m ?? (p && P > 1 ? { page: B, totalPages: P, onPageChange: C, totalRows: r.length } : void 0);
1466
+ const E = e.find((K) => K.key === v.key);
1467
+ if (!E) return r;
1468
+ const Z = v.direction === "asc" ? 1 : -1;
1469
+ return [...r].sort((K, tt) => Z * Ht(ce(E, K), ce(E, tt), u));
1470
+ }, [r, e, v, c, u]), P = p ? Math.max(1, Math.ceil(b.length / p)) : 1, B = Math.min(Q, P), L = p && !m ? b.slice((B - 1) * p, B * p) : b, O = (E) => {
1471
+ const Z = (v == null ? void 0 : v.key) === E && v.direction === "asc" ? { key: E, direction: "desc" } : { key: E, direction: "asc" };
1472
+ c ? c(Z) : (R(Z), C(1));
1473
+ }, z = (E, Z) => zt(E, Z, u, x), j = (E) => E.align ?? (jt.includes(E.type ?? "text") ? "right" : "left"), D = e.some((E) => E.total !== void 0), U = m ?? (p && P > 1 ? { page: B, totalPages: P, onPageChange: C, totalRows: r.length } : void 0);
1463
1474
  return /* @__PURE__ */ i("div", { className: h("tailor-table", g), children: [
1464
1475
  /* @__PURE__ */ t("div", { className: "tailor-table__scroll", children: /* @__PURE__ */ i("table", { "aria-busy": n || void 0, children: [
1465
1476
  /* @__PURE__ */ t("caption", { className: "tailor-table__caption", children: o }),
1466
- /* @__PURE__ */ t("thead", { className: h(f && "tailor-table__sticky"), children: /* @__PURE__ */ t("tr", { children: e.map((y) => {
1467
- const T = (v == null ? void 0 : v.key) === y.key;
1477
+ /* @__PURE__ */ t("thead", { className: h(f && "tailor-table__sticky"), children: /* @__PURE__ */ t("tr", { children: e.map((E) => {
1478
+ const Z = (v == null ? void 0 : v.key) === E.key;
1468
1479
  return /* @__PURE__ */ t(
1469
1480
  "th",
1470
1481
  {
1471
1482
  scope: "col",
1472
- style: { width: y.width },
1473
- className: `tailor-table--${j(y)}`,
1474
- "aria-sort": T ? v.direction === "asc" ? "ascending" : "descending" : void 0,
1475
- children: y.sortable ? /* @__PURE__ */ i("button", { type: "button", className: "tailor-table__sort", onClick: () => O(y.key), children: [
1476
- y.header,
1477
- /* @__PURE__ */ t("span", { className: h("tailor-table__arrow", T && "tailor-table__arrow--active"), "aria-hidden": "true", children: T && v.direction === "desc" ? "↓" : "↑" })
1478
- ] }) : y.header
1483
+ style: { width: E.width },
1484
+ className: `tailor-table--${j(E)}`,
1485
+ "aria-sort": Z ? v.direction === "asc" ? "ascending" : "descending" : void 0,
1486
+ children: E.sortable ? /* @__PURE__ */ i("button", { type: "button", className: "tailor-table__sort", onClick: () => O(E.key), children: [
1487
+ E.header,
1488
+ /* @__PURE__ */ t("span", { className: h("tailor-table__arrow", Z && "tailor-table__arrow--active"), "aria-hidden": "true", children: Z && v.direction === "desc" ? "↓" : "↑" })
1489
+ ] }) : E.header
1479
1490
  },
1480
- y.key
1491
+ E.key
1481
1492
  );
1482
1493
  }) }) }),
1483
- /* @__PURE__ */ t("tbody", { children: n ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: e.length, children: /* @__PURE__ */ t(Kt, { shape: "table", columns: e.length, lines: Math.min(p ?? 5, 8) }) }) }) : S.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: e.length, className: "tailor-table__state", children: l ?? w.empty }) }) : S.map((y, T) => /* @__PURE__ */ t(
1494
+ /* @__PURE__ */ t("tbody", { children: n ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: e.length, children: /* @__PURE__ */ t(Kt, { shape: "table", columns: e.length, lines: Math.min(p ?? 5, 8) }) }) }) : L.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: e.length, className: "tailor-table__state", children: l ?? w.empty }) }) : L.map((E, Z) => /* @__PURE__ */ t(
1484
1495
  "tr",
1485
1496
  {
1486
1497
  className: h(A && "tailor-table__clickable"),
1487
- onClick: A ? () => A(y) : void 0,
1498
+ onClick: A ? () => A(E) : void 0,
1488
1499
  onKeyDown: A ? (K) => {
1489
- K.key === "Enter" && A(y);
1500
+ K.key === "Enter" && A(E);
1490
1501
  } : void 0,
1491
1502
  tabIndex: A ? 0 : void 0,
1492
- children: e.map((K) => /* @__PURE__ */ t("td", { className: h(`tailor-table--${j(K)}`, K.type === "id" && "tailor-table__id"), children: K.cell ? K.cell(y) : z(ce(K, y), K.type) }, K.key))
1503
+ children: e.map((K) => /* @__PURE__ */ t("td", { className: h(`tailor-table--${j(K)}`, K.type === "id" && "tailor-table__id"), children: K.cell ? K.cell(E) : z(ce(K, E), K.type) }, K.key))
1493
1504
  },
1494
- a(y, T)
1505
+ a(E, Z)
1495
1506
  )) }),
1496
- D && !n && r.length > 0 && /* @__PURE__ */ t("tfoot", { children: /* @__PURE__ */ t("tr", { children: e.map((y, T) => /* @__PURE__ */ t("td", { className: `tailor-table--${j(y)}`, children: typeof y.total == "function" ? z(y.total(r), y.type) : y.total ?? (T === 0 ? w.total : null) }, y.key)) }) })
1507
+ D && !n && r.length > 0 && /* @__PURE__ */ t("tfoot", { children: /* @__PURE__ */ t("tr", { children: e.map((E, Z) => /* @__PURE__ */ t("td", { className: `tailor-table--${j(E)}`, children: typeof E.total == "function" ? z(E.total(r), E.type) : E.total ?? (Z === 0 ? w.total : null) }, E.key)) }) })
1497
1508
  ] }) }),
1498
1509
  U && /* @__PURE__ */ i("nav", { className: "tailor-table__pagination", "aria-label": w.pagination, children: [
1499
1510
  /* @__PURE__ */ i("span", { children: [
1500
1511
  w.page(U.page, U.totalPages),
1501
- U.totalRows !== void 0 && /* @__PURE__ */ i(E, { children: [
1512
+ U.totalRows !== void 0 && /* @__PURE__ */ i(y, { children: [
1502
1513
  " · ",
1503
1514
  w.rows(String(z(U.totalRows, "number")))
1504
1515
  ] })
@@ -1519,7 +1530,7 @@ function de(e, r, a = {}) {
1519
1530
  const o = ++Dt;
1520
1531
  return _ = [..._, { id: o, type: e, title: r, description: a.description, duration: a.duration ?? (e === "error" ? 8e3 : 4e3) }], et(), o;
1521
1532
  }
1522
- const Te = {
1533
+ const Ze = {
1523
1534
  success: (e, r) => de("success", e, r),
1524
1535
  error: (e, r) => de("error", e, r),
1525
1536
  info: (e, r) => de("info", e, r),
@@ -1534,7 +1545,7 @@ const Te = {
1534
1545
  function Xt({ item: e }) {
1535
1546
  const { messages: r } = F(), a = typeof e.title == "string" && e.type !== "error", [o, n] = J(!a);
1536
1547
  return H(() => {
1537
- const l = setTimeout(() => Te.dismiss(e.id), e.duration);
1548
+ const l = setTimeout(() => Ze.dismiss(e.id), e.duration);
1538
1549
  return () => clearTimeout(l);
1539
1550
  }, [e]), /* @__PURE__ */ i(
1540
1551
  "div",
@@ -1548,7 +1559,7 @@ function Xt({ item: e }) {
1548
1559
  /* @__PURE__ */ t("p", { className: "tailor-toast__title", children: a ? /* @__PURE__ */ t(ae, { texts: [e.title], once: !0, onDone: () => n(!0) }) : e.title }),
1549
1560
  e.description && /* @__PURE__ */ t("p", { className: "tailor-toast__description", children: e.description })
1550
1561
  ] }),
1551
- /* @__PURE__ */ t("button", { type: "button", className: "tailor-toast__close", "aria-label": r.dismiss, onClick: () => Te.dismiss(e.id), children: "×" }),
1562
+ /* @__PURE__ */ t("button", { type: "button", className: "tailor-toast__close", "aria-label": r.dismiss, onClick: () => Ze.dismiss(e.id), children: "×" }),
1552
1563
  /* @__PURE__ */ t("span", { className: "tailor-toast__timer", "aria-hidden": "true" })
1553
1564
  ]
1554
1565
  }
@@ -1673,6 +1684,6 @@ export {
1673
1684
  hr as sumBy,
1674
1685
  dr as themeFromWhitelabel,
1675
1686
  Oe as themeToVars,
1676
- Te as toast,
1687
+ Ze as toast,
1677
1688
  F as useTailorLocale
1678
1689
  };