@opens/widget-ui 1.0.2 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, pushScopeId as Vo, popScopeId as Wo, nextTick as Ge, createElementBlock as S, openBlock as g, normalizeClass as I, renderSlot as q, normalizeProps as Go, guardReactiveProps as Zo, resolveComponent as Ee, createBlock as E, mergeProps as ao, withCtx as _, createVNode as N, ref as W, createApp as Uo, h as Xo, toDisplayString as Z, withScopeId as Qo, withKeys as $t, normalizeStyle as Oe, createElementVNode as C, createCommentVNode as R, Fragment as ve, computed as p, toValue as ht, reactive as Yo, watch as je, unref as A, useSlots as Be, createTextVNode as M, onMounted as Ko, onBeforeUnmount as lo, renderList as Ce, resolveDynamicComponent as uo, Comment as Tt, Text as Bt, isRef as Jo, createSlots as yt, Transition as en } from "vue";
1
+ import { defineComponent as U, pushScopeId as Vo, popScopeId as Wo, nextTick as Ge, createElementBlock as S, openBlock as g, normalizeClass as I, renderSlot as q, normalizeProps as Go, guardReactiveProps as Zo, resolveComponent as Ee, createBlock as E, mergeProps as ao, withCtx as _, createVNode as N, ref as W, createApp as Uo, h as Xo, toDisplayString as Z, withScopeId as Qo, withKeys as $t, normalizeStyle as Oe, createElementVNode as C, createCommentVNode as R, Fragment as ve, computed as p, toValue as ht, reactive as Yo, watch as je, unref as A, useSlots as Te, createTextVNode as M, onMounted as Ko, onBeforeUnmount as lo, renderList as Ce, resolveDynamicComponent as uo, Comment as Bt, Text as Tt, isRef as Jo, createSlots as yt, Transition as en } from "vue";
2
2
  const tn = ["top", "right", "bottom", "left"], Pt = ["start", "end"], Ot = /* @__PURE__ */ tn.reduce((e, t) => e.concat(t, t + "-" + Pt[0], t + "-" + Pt[1]), []), He = Math.min, $e = Math.max, on = {
3
3
  left: "right",
4
4
  right: "left",
@@ -172,7 +172,7 @@ const pn = async (e, t, o) => {
172
172
  } = s[b], {
173
173
  x: w,
174
174
  y: k,
175
- data: T,
175
+ data: B,
176
176
  reset: L
177
177
  } = await m({
178
178
  x: c,
@@ -192,7 +192,7 @@ const pn = async (e, t, o) => {
192
192
  ...h,
193
193
  [f]: {
194
194
  ...h[f],
195
- ...T
195
+ ...B
196
196
  }
197
197
  }, L && v <= 50 && (v++, typeof L == "object" && (L.placement && (y = L.placement), L.rects && (u = L.rects === !0 ? await a.getElementRects({
198
198
  reference: e,
@@ -237,7 +237,7 @@ async function Ke(e, t) {
237
237
  y: i,
238
238
  width: a.floating.width,
239
239
  height: a.floating.height
240
- } : a.reference, k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), T = await (r.isElement == null ? void 0 : r.isElement(k)) ? await (r.getScale == null ? void 0 : r.getScale(k)) || {
240
+ } : a.reference, k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), B = await (r.isElement == null ? void 0 : r.isElement(k)) ? await (r.getScale == null ? void 0 : r.getScale(k)) || {
241
241
  x: 1,
242
242
  y: 1
243
243
  } : {
@@ -250,10 +250,10 @@ async function Ke(e, t) {
250
250
  strategy: l
251
251
  }) : w);
252
252
  return {
253
- top: (m.top - L.top + v.top) / T.y,
254
- bottom: (L.bottom - m.bottom + v.bottom) / T.y,
255
- left: (m.left - L.left + v.left) / T.x,
256
- right: (L.right - m.right + v.right) / T.x
253
+ top: (m.top - L.top + v.top) / B.y,
254
+ bottom: (L.bottom - m.bottom + v.bottom) / B.y,
255
+ left: (m.left - L.left + v.left) / B.x,
256
+ right: (L.right - m.right + v.right) / B.x
257
257
  };
258
258
  }
259
259
  const fn = (e) => ({
@@ -277,10 +277,10 @@ const fn = (e) => ({
277
277
  const d = fo(c), y = {
278
278
  x: o,
279
279
  y: n
280
- }, h = kt(i), v = _t(h), b = await a.getDimensions(u), f = h === "y", m = f ? "top" : "left", w = f ? "bottom" : "right", k = f ? "clientHeight" : "clientWidth", T = r.reference[v] + r.reference[h] - y[h] - r.floating[v], L = y[h] - r.reference[h], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
280
+ }, h = kt(i), v = _t(h), b = await a.getDimensions(u), f = h === "y", m = f ? "top" : "left", w = f ? "bottom" : "right", k = f ? "clientHeight" : "clientWidth", B = r.reference[v] + r.reference[h] - y[h] - r.floating[v], L = y[h] - r.reference[h], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
281
281
  let x = P ? P[k] : 0;
282
282
  (!x || !await (a.isElement == null ? void 0 : a.isElement(P))) && (x = s.floating[k] || r.floating[v]);
283
- const B = T / 2 - L / 2, F = x / 2 - b[v] / 2 - 1, z = He(d[m], F), V = He(d[w], F), $ = z, H = x - b[v] - V, D = x / 2 - b[v] / 2 + B, ee = mt($, D, H), G = !l.arrow && se(i) != null && D !== ee && r.reference[v] / 2 - (D < $ ? z : V) - b[v] / 2 < 0, X = G ? D < $ ? D - $ : D - H : 0;
283
+ const T = B / 2 - L / 2, F = x / 2 - b[v] / 2 - 1, z = He(d[m], F), V = He(d[w], F), $ = z, H = x - b[v] - V, D = x / 2 - b[v] / 2 + T, ee = mt($, D, H), G = !l.arrow && se(i) != null && D !== ee && r.reference[v] / 2 - (D < $ ? z : V) - b[v] / 2 < 0, X = G ? D < $ ? D - $ : D - H : 0;
284
284
  return {
285
285
  [h]: y[h] + X,
286
286
  data: {
@@ -325,9 +325,9 @@ const yn = function(e) {
325
325
  placement: b[0]
326
326
  }
327
327
  };
328
- const T = [f[de(w)], f[k[0]], f[k[1]]], L = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
328
+ const B = [f[de(w)], f[k[0]], f[k[1]]], L = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
329
329
  placement: w,
330
- overflows: T
330
+ overflows: B
331
331
  }], P = b[m + 1];
332
332
  if (P)
333
333
  return {
@@ -389,13 +389,13 @@ const yn = function(e) {
389
389
  } = _e(e, t);
390
390
  if ((o = r.arrow) != null && o.alignmentOffset)
391
391
  return {};
392
- const m = de(i), w = pe(s), k = de(s) === s, T = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), L = y || (k || !b ? [Ue(s)] : sn(s)), P = v !== "none";
393
- !y && P && L.push(...cn(s, b, v, T));
394
- const x = [s, ...L], B = await Ke(t, f), F = [];
392
+ const m = de(i), w = pe(s), k = de(s) === s, B = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), L = y || (k || !b ? [Ue(s)] : sn(s)), P = v !== "none";
393
+ !y && P && L.push(...cn(s, b, v, B));
394
+ const x = [s, ...L], T = await Ke(t, f), F = [];
395
395
  let z = ((n = r.flip) == null ? void 0 : n.overflows) || [];
396
- if (c && F.push(B[m]), d) {
397
- const D = po(i, a, T);
398
- F.push(B[D[0]], B[D[1]]);
396
+ if (c && F.push(T[m]), d) {
397
+ const D = po(i, a, B);
398
+ F.push(T[D[0]], T[D[1]]);
399
399
  }
400
400
  if (z = [...z, {
401
401
  placement: i,
@@ -573,15 +573,15 @@ const wn = function(e) {
573
573
  } = r.floating;
574
574
  let f, m;
575
575
  d === "top" || d === "bottom" ? (f = d, m = y === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = d, f = y === "end" ? "top" : "bottom");
576
- const w = b - c.top - c.bottom, k = v - c.left - c.right, T = He(b - c[f], w), L = He(v - c[m], k), P = !t.middlewareData.shift;
577
- let x = T, B = L;
578
- if ((o = t.middlewareData.shift) != null && o.enabled.x && (B = k), (n = t.middlewareData.shift) != null && n.enabled.y && (x = w), P && !y) {
576
+ const w = b - c.top - c.bottom, k = v - c.left - c.right, B = He(b - c[f], w), L = He(v - c[m], k), P = !t.middlewareData.shift;
577
+ let x = B, T = L;
578
+ if ((o = t.middlewareData.shift) != null && o.enabled.x && (T = k), (n = t.middlewareData.shift) != null && n.enabled.y && (x = w), P && !y) {
579
579
  const z = $e(c.left, 0), V = $e(c.right, 0), $ = $e(c.top, 0), H = $e(c.bottom, 0);
580
- h ? B = v - 2 * (z !== 0 || V !== 0 ? z + V : $e(c.left, c.right)) : x = b - 2 * ($ !== 0 || H !== 0 ? $ + H : $e(c.top, c.bottom));
580
+ h ? T = v - 2 * (z !== 0 || V !== 0 ? z + V : $e(c.left, c.right)) : x = b - 2 * ($ !== 0 || H !== 0 ? $ + H : $e(c.top, c.bottom));
581
581
  }
582
582
  await l({
583
583
  ...t,
584
- availableWidth: B,
584
+ availableWidth: T,
585
585
  availableHeight: x
586
586
  });
587
587
  const F = await a.getDimensions(s.floating);
@@ -671,8 +671,8 @@ function Fe(e, t, o, n) {
671
671
  const b = ie(s), f = n && ye(n) ? ie(n) : n;
672
672
  let m = b.frameElement;
673
673
  for (; m && n && f !== b; ) {
674
- const w = Ae(m), k = m.getBoundingClientRect(), T = getComputedStyle(m);
675
- k.x += (m.clientLeft + parseFloat(T.paddingLeft)) * w.x, k.y += (m.clientTop + parseFloat(T.paddingTop)) * w.y, d *= w.x, y *= w.y, h *= w.x, v *= w.y, d += k.x, y += k.y, m = ie(m).frameElement;
674
+ const w = Ae(m), k = m.getBoundingClientRect(), B = getComputedStyle(m);
675
+ k.x += (m.clientLeft + parseFloat(B.paddingLeft)) * w.x, k.y += (m.clientTop + parseFloat(B.paddingTop)) * w.y, d *= w.x, y *= w.y, h *= w.x, v *= w.y, d += k.x, y += k.y, m = ie(m).frameElement;
676
676
  }
677
677
  }
678
678
  return { width: h, height: v, top: y, right: d + h, bottom: y + v, left: d, x: d, y };
@@ -1524,7 +1524,7 @@ if (typeof document < "u" && typeof window < "u") {
1524
1524
  document.addEventListener("touchstart", (t) => Gt(t, !0), e), document.addEventListener("touchend", (t) => Zt(t, !0), e);
1525
1525
  } else
1526
1526
  window.addEventListener("mousedown", (e) => Gt(e, !1), !0), window.addEventListener("click", (e) => Zt(e, !1), !0);
1527
- window.addEventListener("resize", Tn);
1527
+ window.addEventListener("resize", Bn);
1528
1528
  }
1529
1529
  function Gt(e, t) {
1530
1530
  if (ae.autoHideOnMousedown)
@@ -1574,7 +1574,7 @@ function Sn(e, t) {
1574
1574
  }
1575
1575
  return e.autoHide;
1576
1576
  }
1577
- function Tn() {
1577
+ function Bn() {
1578
1578
  for (let e = 0; e < re.length; e++)
1579
1579
  re[e].$_computePosition();
1580
1580
  }
@@ -1588,7 +1588,7 @@ function Ve(e, t, o, n, i, r, a, s) {
1588
1588
  const l = ((a - i) * (t - r) - (s - r) * (e - i)) / ((s - r) * (o - e) - (a - i) * (n - t)), u = ((o - e) * (t - r) - (n - t) * (e - i)) / ((s - r) * (o - e) - (a - i) * (n - t));
1589
1589
  return l >= 0 && l <= 1 && u >= 0 && u <= 1;
1590
1590
  }
1591
- const Bn = {
1591
+ const Tn = {
1592
1592
  extends: Ao()
1593
1593
  }, tt = (e, t) => {
1594
1594
  const o = e.__vccOpts || e;
@@ -1606,7 +1606,7 @@ function Pn(e, t, o, n, i, r) {
1606
1606
  q(e.$slots, "default", Go(Zo(e.slotData)))
1607
1607
  ], 2);
1608
1608
  }
1609
- const On = /* @__PURE__ */ tt(Bn, [["render", Pn]]);
1609
+ const On = /* @__PURE__ */ tt(Tn, [["render", Pn]]);
1610
1610
  function Rn() {
1611
1611
  var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1612
1612
  if (t > 0)
@@ -1783,7 +1783,7 @@ function jn(e, t, o, n, i, r) {
1783
1783
  ], 4)
1784
1784
  ], 46, Hn);
1785
1785
  }
1786
- const To = /* @__PURE__ */ tt(En, [["render", jn]]), Bo = {
1786
+ const Bo = /* @__PURE__ */ tt(En, [["render", jn]]), To = {
1787
1787
  methods: {
1788
1788
  show(...e) {
1789
1789
  return this.$refs.popper.show(...e);
@@ -1806,10 +1806,10 @@ const qn = U({
1806
1806
  name: "VPopperWrapper",
1807
1807
  components: {
1808
1808
  Popper: On,
1809
- PopperContent: To
1809
+ PopperContent: Bo
1810
1810
  },
1811
1811
  mixins: [
1812
- Bo,
1812
+ To,
1813
1813
  So("finalTheme")
1814
1814
  ],
1815
1815
  props: {
@@ -2077,10 +2077,10 @@ const Ct = /* @__PURE__ */ tt(qn, [["render", Vn]]), Wn = {
2077
2077
  name: "VTooltipDirective",
2078
2078
  components: {
2079
2079
  Popper: Ao(),
2080
- PopperContent: To
2080
+ PopperContent: Bo
2081
2081
  },
2082
2082
  mixins: [
2083
- Bo
2083
+ To
2084
2084
  ],
2085
2085
  inheritAttrs: !1,
2086
2086
  props: {
@@ -2410,7 +2410,7 @@ function ui(e, t) {
2410
2410
  };
2411
2411
  const te = X ? D ? `Quase lá, ${D}.` : "Quase lá." : D ? `Olá, ${D}.` : "Olá.", le = H.required ? `Informe seu ${H.alias} para continuar.` : `Gostaria de deixar seu ${H.alias}?`;
2412
2412
  return { eyebrow: ee, title: te, subtitle: le };
2413
- }, k = p(() => w(r.value)), T = ($) => $ === "email" ? "email" : $ === "phone" ? "tel" : "text", L = ($) => $ === "email" ? "email" : $ === "phone" ? "call" : ke($) ? "person" : $ === "order" ? "receipt" : "badge", P = ($) => $.required ? `${$.alias} *` : $.alias, x = ($) => ke($.name) ? "Seu nome" : $.name === "phone" ? "Seu telefone" : $.name === "email" ? "Seu e-mail" : $.name === "cpf" ? "000.000.000-00" : $.alias, B = ($) => {
2413
+ }, k = p(() => w(r.value)), B = ($) => $ === "email" ? "email" : $ === "phone" ? "tel" : "text", L = ($) => $ === "email" ? "email" : $ === "phone" ? "call" : ke($) ? "person" : $ === "order" ? "receipt" : "badge", P = ($) => $.required ? `${$.alias} *` : $.alias, x = ($) => ke($.name) ? "Seu nome" : $.name === "phone" ? "Seu telefone" : $.name === "email" ? "Seu e-mail" : $.name === "cpf" ? "000.000.000-00" : $.alias, T = ($) => {
2414
2414
  if ($ === "phone") return o;
2415
2415
  if ($ === "cpf") return n;
2416
2416
  }, F = () => {
@@ -2437,8 +2437,8 @@ function ui(e, t) {
2437
2437
  introFor: w,
2438
2438
  fieldLabel: P,
2439
2439
  fieldPlaceholder: x,
2440
- fieldType: T,
2441
- fieldMask: B,
2440
+ fieldType: B,
2441
+ fieldMask: T,
2442
2442
  fieldIcon: L,
2443
2443
  goBack: () => {
2444
2444
  if (r.value > 0) {
@@ -2610,7 +2610,7 @@ const di = /* @__PURE__ */ U({
2610
2610
  },
2611
2611
  emits: ["update:modelValue", "keyup-enter"],
2612
2612
  setup(e, { expose: t, emit: o }) {
2613
- const n = e, i = o, r = p(() => Be());
2613
+ const n = e, i = o, r = p(() => Te());
2614
2614
  function a(f) {
2615
2615
  return !!r.value[f];
2616
2616
  }
@@ -2716,7 +2716,7 @@ const ne = /* @__PURE__ */ U({
2716
2716
  q(r.$slots, "default")
2717
2717
  ], 2));
2718
2718
  }
2719
- }), yi = ["disabled"], mi = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, Te = /* @__PURE__ */ U({
2719
+ }), yi = ["disabled"], mi = { class: "yu-flex yu-items-center yu-justify-center yu-gap-2" }, Be = /* @__PURE__ */ U({
2720
2720
  __name: "app-button",
2721
2721
  props: {
2722
2722
  small: Boolean,
@@ -2736,7 +2736,7 @@ const ne = /* @__PURE__ */ U({
2736
2736
  },
2737
2737
  emits: ["click"],
2738
2738
  setup(e) {
2739
- const t = e, o = p(() => Be());
2739
+ const t = e, o = p(() => Te());
2740
2740
  function n(h) {
2741
2741
  return !!o.value[h];
2742
2742
  }
@@ -2799,37 +2799,37 @@ const ne = /* @__PURE__ */ U({
2799
2799
  },
2800
2800
  emits: ["update:modelValue"],
2801
2801
  setup(e, { expose: t, emit: o }) {
2802
- const n = e, i = o, r = Be(), a = W(null), s = W(null), l = W(0), u = W(0), c = W(!1);
2802
+ const n = e, i = o, r = Te(), a = W(null), s = W(null), l = W(0), u = W(0), c = W(!1);
2803
2803
  let d = null;
2804
- const y = p(() => Math.max(n.modelValue, 0)), h = () => (r.default?.() ?? []).flatMap((x) => x.type === Tt || x.type === Bt ? [] : x.type === ve ? (x.children ?? []).filter(
2805
- (B) => !!B && typeof B == "object" && B.type !== Tt && B.type !== Bt
2804
+ const y = p(() => Math.max(n.modelValue, 0)), h = () => (r.default?.() ?? []).flatMap((x) => x.type === Bt || x.type === Tt ? [] : x.type === ve ? (x.children ?? []).filter(
2805
+ (T) => !!T && typeof T == "object" && T.type !== Bt && T.type !== Tt
2806
2806
  ) : [x]), v = (x) => {
2807
- const B = Math.abs(x - y.value);
2808
- return B === 0 ? "is-active" : B === 1 ? "is-adjacent" : "is-far";
2807
+ const T = Math.abs(x - y.value);
2808
+ return T === 0 ? "is-active" : T === 1 ? "is-adjacent" : "is-far";
2809
2809
  }, b = (x) => {
2810
- const B = s.value?.childElementCount || h().length, F = Math.min(Math.max(x, 0), Math.max(B - 1, 0));
2810
+ const T = s.value?.childElementCount || h().length, F = Math.min(Math.max(x, 0), Math.max(T - 1, 0));
2811
2811
  F !== n.modelValue && i("update:modelValue", F);
2812
2812
  }, f = () => {
2813
2813
  const x = a.value;
2814
2814
  x && (x.scrollLeft && (x.scrollLeft = 0), x.scrollTop && (x.scrollTop = 0));
2815
2815
  }, m = () => {
2816
- const x = a.value, B = s.value;
2817
- if (!x || !B) return;
2816
+ const x = a.value, T = s.value;
2817
+ if (!x || !T) return;
2818
2818
  f();
2819
- const F = [...B.children], z = parseFloat(getComputedStyle(B).gap) || 0, V = parseFloat(getComputedStyle(x).scrollPaddingTop) || 0, $ = (G) => n.vertical ? G.offsetHeight : G.offsetWidth, H = F[y.value] ? $(F[y.value]) : 0, D = n.vertical && n.fill ? Math.max((x.clientHeight - H) / 2, 0) : V, ee = F.slice(0, y.value).reduce((G, X) => G + $(X) + z, 0);
2819
+ const F = [...T.children], z = parseFloat(getComputedStyle(T).gap) || 0, V = parseFloat(getComputedStyle(x).scrollPaddingTop) || 0, $ = (G) => n.vertical ? G.offsetHeight : G.offsetWidth, H = F[y.value] ? $(F[y.value]) : 0, D = n.vertical && n.fill ? Math.max((x.clientHeight - H) / 2, 0) : V, ee = F.slice(0, y.value).reduce((G, X) => G + $(X) + z, 0);
2820
2820
  l.value = D - ee, u.value = n.vertical && !n.fill ? H + V * 2 : 0, c.value = !0;
2821
2821
  }, w = () => {
2822
2822
  d?.disconnect();
2823
- const x = a.value, B = s.value;
2824
- if (!(!x || !B) && (m(), !(typeof ResizeObserver > "u"))) {
2823
+ const x = a.value, T = s.value;
2824
+ if (!(!x || !T) && (m(), !(typeof ResizeObserver > "u"))) {
2825
2825
  if (d = new ResizeObserver(m), d.observe(x), n.vertical)
2826
- for (const F of B.children) d.observe(F);
2826
+ for (const F of T.children) d.observe(F);
2827
2827
  x.removeEventListener("scroll", f), x.addEventListener("scroll", f, { passive: !0 });
2828
2828
  }
2829
2829
  }, k = p(() => [
2830
2830
  n.vertical ? "yu-carousel--vertical" : "yu-carousel--horizontal",
2831
2831
  { "is-ready": c.value, "yu-carousel--fill": n.fill }
2832
- ]), T = p(() => n.vertical ? "yu-flex-col yu-items-stretch" : "yu-flex-row yu-items-center"), L = p(() => {
2832
+ ]), B = p(() => n.vertical ? "yu-flex-col yu-items-stretch" : "yu-flex-row yu-items-center"), L = p(() => {
2833
2833
  if (!(!n.vertical || n.fill || !u.value))
2834
2834
  return { height: `${u.value}px` };
2835
2835
  }), P = p(() => {
@@ -2849,7 +2849,7 @@ const ne = /* @__PURE__ */ U({
2849
2849
  next: () => b(y.value + 1),
2850
2850
  prev: () => b(y.value - 1),
2851
2851
  goTo: b
2852
- }), (x, B) => (g(), S("div", {
2852
+ }), (x, T) => (g(), S("div", {
2853
2853
  class: I(["yu-relative yu-w-full yu-overflow-hidden", k.value]),
2854
2854
  ref_key: "rootRef",
2855
2855
  ref: a,
@@ -2857,7 +2857,7 @@ const ne = /* @__PURE__ */ U({
2857
2857
  style: Oe(L.value)
2858
2858
  }, [
2859
2859
  C("div", {
2860
- class: I(["yu-carousel-track yu-flex", T.value]),
2860
+ class: I(["yu-carousel-track yu-flex", B.value]),
2861
2861
  ref_key: "trackRef",
2862
2862
  ref: s,
2863
2863
  style: Oe(P.value)
@@ -3005,7 +3005,7 @@ const ne = /* @__PURE__ */ U({
3005
3005
  default: _(() => [
3006
3006
  N(Ho, {
3007
3007
  modelValue: A(l)[w.name],
3008
- "onUpdate:modelValue": (T) => A(l)[w.name] = T,
3008
+ "onUpdate:modelValue": (B) => A(l)[w.name] = B,
3009
3009
  "mask-function": A(v)(w.name),
3010
3010
  placeholder: A(y)(w),
3011
3011
  type: A(h)(w.name),
@@ -3017,7 +3017,7 @@ const ne = /* @__PURE__ */ U({
3017
3017
  ]),
3018
3018
  _: 2
3019
3019
  }, 1032, ["modelValue", "onUpdate:modelValue", "mask-function", "placeholder", "type", "onKeyupEnter"]),
3020
- N(Te, {
3020
+ N(Be, {
3021
3021
  fluid: "",
3022
3022
  disabled: !A(c)(k),
3023
3023
  onClick: A(u)
@@ -3058,7 +3058,7 @@ const ne = /* @__PURE__ */ U({
3058
3058
  tertiary: Boolean
3059
3059
  },
3060
3060
  setup(e) {
3061
- const t = e, o = p(() => Be());
3061
+ const t = e, o = p(() => Te());
3062
3062
  function n(u) {
3063
3063
  return !!o.value[u];
3064
3064
  }
@@ -3081,10 +3081,10 @@ const ne = /* @__PURE__ */ U({
3081
3081
  ], 2)
3082
3082
  ], 2));
3083
3083
  }
3084
- }), Ci = { class: "yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-y-auto" }, Si = { class: "yu-flex yu-flex-col yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto" }, Ti = {
3084
+ }), Ci = { class: "yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-y-auto" }, Si = { class: "yu-flex yu-flex-col yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto" }, Bi = {
3085
3085
  key: 0,
3086
3086
  class: "yu-w-full yu-h-12"
3087
- }, Bi = {
3087
+ }, Ti = {
3088
3088
  key: 0,
3089
3089
  class: "yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7"
3090
3090
  }, Pi = ["src"], Oi = {
@@ -3183,7 +3183,7 @@ const ne = /* @__PURE__ */ U({
3183
3183
  ], r = (a) => `https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${a === "operator" ? "operator" : "user"}`;
3184
3184
  return (a, s) => (g(), S("div", Ci, [
3185
3185
  C("div", Si, [
3186
- n.value ? R("", !0) : (g(), S("div", Ti)),
3186
+ n.value ? R("", !0) : (g(), S("div", Bi)),
3187
3187
  (g(), S(ve, null, Ce(i, (l, u) => N(Io, {
3188
3188
  key: u,
3189
3189
  primary: l.from === "operator",
@@ -3219,7 +3219,7 @@ const ne = /* @__PURE__ */ U({
3219
3219
  l.from !== "system" ? {
3220
3220
  name: "avatar",
3221
3221
  fn: _(() => [
3222
- i[u + 1]?.from !== l.from ? (g(), S("div", Bi, [
3222
+ i[u + 1]?.from !== l.from ? (g(), S("div", Ti, [
3223
3223
  C("img", {
3224
3224
  class: "yu-rounded-full yu-w-full yu-h-full yu-object-contain",
3225
3225
  src: r(l.from)
@@ -3253,7 +3253,7 @@ const ne = /* @__PURE__ */ U({
3253
3253
  placeholder: "Escreva uma mensagem..."
3254
3254
  }, null, -1)),
3255
3255
  C("div", Li, [
3256
- N(Te, {
3256
+ N(Be, {
3257
3257
  icon: "",
3258
3258
  ghost: "",
3259
3259
  small: ""
@@ -3268,7 +3268,7 @@ const ne = /* @__PURE__ */ U({
3268
3268
  ]),
3269
3269
  _: 1
3270
3270
  }),
3271
- N(Te, {
3271
+ N(Be, {
3272
3272
  icon: "",
3273
3273
  small: ""
3274
3274
  }, {
@@ -3353,7 +3353,7 @@ const ne = /* @__PURE__ */ U({
3353
3353
  _: 1
3354
3354
  }),
3355
3355
  a.value.length ? (g(), S("div", Hi, [
3356
- (g(!0), S(ve, null, Ce(a.value.slice(0, 3), (c) => (g(), E(Te, {
3356
+ (g(!0), S(ve, null, Ce(a.value.slice(0, 3), (c) => (g(), E(Be, {
3357
3357
  class: "hover:yu-translate-x-1 yu-max-w-[25rem]",
3358
3358
  key: c.id,
3359
3359
  outline: "",
@@ -3387,7 +3387,7 @@ const ne = /* @__PURE__ */ U({
3387
3387
  class: "yu-flex yu-flex-col yu-items-center yu-gap-2",
3388
3388
  key: c.id
3389
3389
  }, [
3390
- N(Te, {
3390
+ N(Be, {
3391
3391
  outline: "",
3392
3392
  icon: "",
3393
3393
  onClick: (d) => n("edge-click", c)
@@ -3437,7 +3437,7 @@ const ne = /* @__PURE__ */ U({
3437
3437
  },
3438
3438
  emits: ["update:modelValue", "keyup-enter"],
3439
3439
  setup(e, { expose: t, emit: o }) {
3440
- const n = e, i = o, r = p(() => Be());
3440
+ const n = e, i = o, r = p(() => Te());
3441
3441
  function a(P) {
3442
3442
  return !!r.value[P];
3443
3443
  }
@@ -3465,10 +3465,10 @@ const ne = /* @__PURE__ */ U({
3465
3465
  function d() {
3466
3466
  return !(l.value || s.value);
3467
3467
  }
3468
- const { height: y, textSize: h, width: v } = Eo(n), b = p(() => n.invalid ? "yu-border-red-500 focus-within:yu-border-red-500" : n.valid ? "yu-border-green-500 focus-within:yu-border-green-500" : "yu-border-gray-200 focus-within:!yu-border-primary/40 hover:yu-border-gray-300"), f = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), m = p(() => n.small && d() ? "yu-translate-y-[7px]" : n.small && !d() ? "yu-translate-y-0" : d() ? "yu-translate-y-[11px]" : "yu-translate-y-0"), w = p(() => a("icon") || n.loading ? "yu-pl-[34px]" : "yu-pl-3"), k = p(() => n.block ? "yu-rounded-none" : n.round ? "yu-rounded-full" : "yu-rounded-lg"), T = p(() => n.disabled || n.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
3468
+ const { height: y, textSize: h, width: v } = Eo(n), b = p(() => n.invalid ? "yu-border-red-500 focus-within:yu-border-red-500" : n.valid ? "yu-border-green-500 focus-within:yu-border-green-500" : "yu-border-gray-200 focus-within:!yu-border-primary/40 hover:yu-border-gray-300"), f = p(() => n.invalid ? "yu-text-red-500" : n.valid ? "yu-text-green-500" : "yu-text-gray-500"), m = p(() => n.small && d() ? "yu-translate-y-[7px]" : n.small && !d() ? "yu-translate-y-0" : d() ? "yu-translate-y-[11px]" : "yu-translate-y-0"), w = p(() => a("icon") || n.loading ? "yu-pl-[34px]" : "yu-pl-3"), k = p(() => n.block ? "yu-rounded-none" : n.round ? "yu-rounded-full" : "yu-rounded-lg"), B = p(() => n.disabled || n.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
3469
3469
  function L(P) {
3470
- const B = P.target.value;
3471
- s.value = n.maskFunction ? c(B) : B, i("update:modelValue", s.value);
3470
+ const T = P.target.value;
3471
+ s.value = n.maskFunction ? c(T) : T, i("update:modelValue", s.value);
3472
3472
  }
3473
3473
  return t({
3474
3474
  focus: l,
@@ -3495,7 +3495,7 @@ const ne = /* @__PURE__ */ U({
3495
3495
  _: 3
3496
3496
  })) : R("", !0),
3497
3497
  C("label", {
3498
- class: I(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent", [k.value, T.value, A(y), b.value]]),
3498
+ class: I(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent", [k.value, B.value, A(y), b.value]]),
3499
3499
  "data-testid": "app-text-input"
3500
3500
  }, [
3501
3501
  C("div", Ii, [
@@ -3540,9 +3540,9 @@ const ne = /* @__PURE__ */ U({
3540
3540
  disabled: e.disabled || e.loading,
3541
3541
  maxlength: e.maxLength,
3542
3542
  onInput: L,
3543
- onFocus: x[0] || (x[0] = (B) => l.value = !0),
3544
- onBlur: x[1] || (x[1] = (B) => l.value = !1),
3545
- onKeyup: x[2] || (x[2] = $t((B) => i("keyup-enter"), ["enter"]))
3543
+ onFocus: x[0] || (x[0] = (T) => l.value = !0),
3544
+ onBlur: x[1] || (x[1] = (T) => l.value = !1),
3545
+ onKeyup: x[2] || (x[2] = $t((T) => i("keyup-enter"), ["enter"]))
3546
3546
  }, null, 42, ji),
3547
3547
  C("div", qi, [
3548
3548
  e.maxLength ? (g(), E(j, {
@@ -3559,7 +3559,7 @@ const ne = /* @__PURE__ */ U({
3559
3559
  class: "yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",
3560
3560
  type: "button",
3561
3561
  tabindex: "-1",
3562
- onClick: x[3] || (x[3] = (B) => u.value = !u.value)
3562
+ onClick: x[3] || (x[3] = (T) => u.value = !u.value)
3563
3563
  }, [
3564
3564
  N(ne, {
3565
3565
  small: "",
@@ -3662,7 +3662,7 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3662
3662
  }, w = () => {
3663
3663
  n("back"), u();
3664
3664
  };
3665
- return (k, T) => (g(), S("div", {
3665
+ return (k, B) => (g(), S("div", {
3666
3666
  class: I(["yu-flex yu-flex-col yu-bg-white yu-overflow-hidden yu-relative", [b.value]])
3667
3667
  }, [
3668
3668
  C("div", Xi, [
@@ -3702,10 +3702,10 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3702
3702
  type: "button",
3703
3703
  "aria-label": "Fechar",
3704
3704
  "data-testid": "app-widget-close",
3705
- onClick: T[0] || (T[0] = (L) => n("close"))
3705
+ onClick: B[0] || (B[0] = (L) => n("close"))
3706
3706
  }, [
3707
3707
  N(ne, { gray: "" }, {
3708
- default: _(() => [...T[1] || (T[1] = [
3708
+ default: _(() => [...B[1] || (B[1] = [
3709
3709
  M("close", -1)
3710
3710
  ])]),
3711
3711
  _: 1
@@ -3732,7 +3732,7 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3732
3732
  small: "",
3733
3733
  gray: ""
3734
3734
  }, {
3735
- default: _(() => [...T[2] || (T[2] = [
3735
+ default: _(() => [...B[2] || (B[2] = [
3736
3736
  M("chevron_left", -1)
3737
3737
  ])]),
3738
3738
  _: 1
@@ -3743,7 +3743,7 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3743
3743
  medium: "",
3744
3744
  gray: ""
3745
3745
  }, {
3746
- default: _(() => [...T[3] || (T[3] = [
3746
+ default: _(() => [...B[3] || (B[3] = [
3747
3747
  M("Voltar", -1)
3748
3748
  ])]),
3749
3749
  _: 1
@@ -3775,7 +3775,7 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3775
3775
  class: "!yu-text-xxs",
3776
3776
  gray: ""
3777
3777
  }, {
3778
- default: _(() => [...T[4] || (T[4] = [
3778
+ default: _(() => [...B[4] || (B[4] = [
3779
3779
  M("Powered By", -1),
3780
3780
  C("b", { class: "yu-ml-1" }, "Opens", -1)
3781
3781
  ])]),
@@ -3785,9 +3785,10 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3785
3785
  ], 2));
3786
3786
  }
3787
3787
  }), rr = /* @__PURE__ */ St(ir, [["__scopeId", "data-v-ffab5770"]]), sr = ["disabled"], ar = ["src"], lr = /* @__PURE__ */ U({
3788
- __name: "app-activator",
3788
+ __name: "app-anchor",
3789
3789
  props: {
3790
3790
  small: Boolean,
3791
+ large: Boolean,
3791
3792
  logo: {
3792
3793
  type: String,
3793
3794
  default: ""
@@ -3799,15 +3800,15 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3799
3800
  },
3800
3801
  emits: ["click"],
3801
3802
  setup(e) {
3802
- const t = e, o = p(() => Be());
3803
+ const t = e, o = p(() => Te());
3803
3804
  function n(u) {
3804
3805
  return !!o.value[u];
3805
3806
  }
3806
- const i = p(() => n("default")), r = p(() => t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100" : "yu-bg-gradient-to-br yu-from-primary-500 yu-to-secondary-500 yu-text-white"), a = p(() => i.value ? t.small ? "yu-h-12 yu-w-fit yu-px-3 yu-gap-2" : "yu-h-14 yu-w-fit yu-px-4 yu-gap-2" : t.small ? "yu-w-12 yu-h-12 yu-p-0" : "yu-w-14 yu-h-14 yu-p-0"), s = p(() => t.small ? "yu-w-6 yu-h-6" : "yu-w-7 yu-h-7"), l = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
3807
+ const i = p(() => n("default")), r = p(() => t.outline ? "yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300" : t.ghost ? "yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100" : "yu-bg-gradient-to-br yu-from-primary-500 yu-to-secondary-500 yu-text-white"), a = p(() => i.value ? t.small ? "yu-h-12 yu-w-fit yu-px-3 yu-gap-2" : t.large ? "yu-h-16 yu-w-fit yu-px-5 yu-gap-3" : "yu-h-14 yu-w-fit yu-px-4 yu-gap-2" : t.small ? "yu-w-12 yu-h-12 yu-p-0" : t.large ? "yu-w-16 yu-h-16 yu-p-0" : "yu-w-14 yu-h-14 yu-p-0"), s = p(() => t.small ? "yu-w-6 yu-h-6" : t.large ? "yu-w-8 yu-h-8" : "yu-w-7 yu-h-7"), l = p(() => t.disabled || t.loading ? "yu-opacity-50 yu-pointer-events-none" : "");
3807
3808
  return (u, c) => (g(), S("button", {
3808
3809
  class: I(["yu-rounded-full yu-inline-flex yu-items-center yu-justify-center yu-cursor-pointer yu-overflow-hidden yu-transition-all yu-border yu-border-transparent hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80 disabled:yu-opacity-50 disabled:yu-pointer-events-none", [a.value, r.value, l.value]]),
3809
3810
  type: "button",
3810
- "data-testid": "app-activator",
3811
+ "data-testid": "app-anchor",
3811
3812
  disabled: e.disabled || e.loading,
3812
3813
  onClick: c[0] || (c[0] = (d) => u.$emit("click", d))
3813
3814
  }, [
@@ -3815,30 +3816,31 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
3815
3816
  key: 0,
3816
3817
  class: "yu-animate-spin",
3817
3818
  outlined: "",
3818
- large: ""
3819
+ large: !e.small && !e.large,
3820
+ "extra-large": e.large
3819
3821
  }, {
3820
3822
  default: _(() => [...c[1] || (c[1] = [
3821
3823
  M("progress_activity", -1)
3822
3824
  ])]),
3823
3825
  _: 1
3824
- })) : e.logo ? (g(), S("img", {
3826
+ }, 8, ["large", "extra-large"])) : e.logo ? (g(), S("img", {
3825
3827
  key: 1,
3826
3828
  class: I(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0", s.value]),
3827
3829
  src: e.logo,
3828
3830
  alt: "",
3829
- "data-testid": "app-activator-logo"
3831
+ "data-testid": "app-anchor-logo"
3830
3832
  }, null, 10, ar)) : R("", !0),
3831
3833
  i.value ? (g(), E(j, {
3832
3834
  key: 2,
3833
3835
  class: "!yu-text-inherit yu-whitespace-nowrap",
3834
- small: "",
3835
- "data-testid": "app-activator-label"
3836
+ small: !e.large,
3837
+ "data-testid": "app-anchor-label"
3836
3838
  }, {
3837
3839
  default: _(() => [
3838
3840
  q(u.$slots, "default")
3839
3841
  ]),
3840
3842
  _: 3
3841
- })) : R("", !0)
3843
+ }, 8, ["small"])) : R("", !0)
3842
3844
  ], 10, sr));
3843
3845
  }
3844
3846
  }), hr = {
@@ -4089,12 +4091,12 @@ const Ui = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAA
4089
4091
  }
4090
4092
  }, yr = xt, mr = (e) => pr.rules.find((t) => t.id === e), gr = {
4091
4093
  install: (e) => {
4092
- e.use(si), e.component("AppIdentificationPage", No), e.component("AppServicePage", Do), e.component("AppScreenPage", jo), e.component("AppFormTextInput", Ho), e.component("AppTextInput", Vi), e.component("AppMessage", Io), e.component("AppWidget", rr), e.component("AppActivator", lr), e.component("AppButton", Te), e.component("AppCarousel", Fo), e.component("AppGroup", ge), e.component("AppIcon", ne), e.component("AppText", j);
4094
+ e.use(si), e.component("AppIdentificationPage", No), e.component("AppServicePage", Do), e.component("AppScreenPage", jo), e.component("AppFormTextInput", Ho), e.component("AppTextInput", Vi), e.component("AppMessage", Io), e.component("AppWidget", rr), e.component("AppAnchor", lr), e.component("AppButton", Be), e.component("AppCarousel", Fo), e.component("AppGroup", ge), e.component("AppIcon", ne), e.component("AppText", j);
4093
4095
  }
4094
4096
  };
4095
4097
  export {
4096
- lr as AppActivator,
4097
- Te as AppButton,
4098
+ lr as AppAnchor,
4099
+ Be as AppButton,
4098
4100
  Fo as AppCarousel,
4099
4101
  Ho as AppFormTextInput,
4100
4102
  ge as AppGroup,