@thibezer/ui-components-kit 2.24.1 → 2.25.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.
Files changed (154) hide show
  1. package/CHANGELOG.md +83 -1
  2. package/dist/botao.cjs +12 -1
  3. package/dist/botao.js +162 -3
  4. package/dist/camadas.cjs +311 -1
  5. package/dist/camadas.js +3244 -148
  6. package/dist/campo-texto.cjs +16 -1
  7. package/dist/campo-texto.js +308 -7
  8. package/dist/canvas.cjs +22 -22
  9. package/dist/canvas.js +230 -233
  10. package/dist/card.cjs +20 -1
  11. package/dist/card.js +145 -2
  12. package/dist/components/ui-canvas-prancha/index.d.ts +1 -1
  13. package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +26 -0
  14. package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +9 -0
  15. package/dist/components/ui-canvas-prancha/ui-canvas-prancha.d.ts +2 -2
  16. package/dist/components/ui-editor-prancha/editor-barra.d.ts +19 -0
  17. package/dist/components/ui-editor-prancha/editor-modos.d.ts +35 -0
  18. package/dist/components/ui-editor-prancha/editor-tipos.d.ts +4 -0
  19. package/dist/components/ui-editor-prancha/index.d.ts +1 -0
  20. package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +63 -7
  21. package/dist/core/alvo-digitavel.d.ts +3 -0
  22. package/dist/core.cjs +1 -1
  23. package/dist/core.js +43 -54
  24. package/dist/{cores-utils-BrdynxRd.js → cores-utils-DMyqWvZh.js} +2 -2
  25. package/dist/cores.cjs +32 -1
  26. package/dist/cores.js +300 -13
  27. package/dist/custom-elements.json +11945 -11071
  28. package/dist/data.cjs +28 -1
  29. package/dist/data.js +286 -99
  30. package/dist/{feature_caixa-2Sxv3tGa.js → feature_caixa-BVc5LenS.js} +42 -42
  31. package/dist/{feature_desenho-BVHivWIB.js → feature_desenho-CC8Mp5Gp.js} +2 -2
  32. package/dist/feedback.cjs +52 -1
  33. package/dist/feedback.js +655 -25
  34. package/dist/forms.cjs +66 -1
  35. package/dist/forms.js +1216 -39
  36. package/dist/{geometria-px-DUs5FgLE.js → geometria-px-DHMPUsxC.js} +47 -47
  37. package/dist/index.cjs +67 -1
  38. package/dist/index.js +1476 -274
  39. package/dist/kit-base-BmkPi5Rz.cjs +2 -0
  40. package/dist/kit-base-CBXA66aM.js +1084 -0
  41. package/dist/mapa.cjs +5 -5
  42. package/dist/mapa.js +16 -17
  43. package/dist/modal.cjs +18 -1
  44. package/dist/modal.js +235 -29
  45. package/dist/motor.js +49 -49
  46. package/dist/prancha-nucleo.cjs +3 -1
  47. package/dist/prancha-nucleo.js +3120 -277
  48. package/dist/prancha.cjs +38 -1
  49. package/dist/prancha.js +3470 -228
  50. package/dist/register.cjs +1 -1
  51. package/dist/register.js +3 -20
  52. package/dist/seletor-mapa-base.cjs +13 -13
  53. package/dist/seletor-mapa-base.js +3 -5
  54. package/dist/tabela.cjs +142 -1
  55. package/dist/tabela.js +3773 -92
  56. package/dist/tipos-elementos.d.ts +7 -3
  57. package/dist/tipos-vue.d.ts +6 -3
  58. package/dist/tools.cjs +16 -1
  59. package/dist/tools.js +1564 -26
  60. package/dist/{ui-seletor-cor-Cd8jkzXG.js → ui-seletor-cor-CPjA9vhZ.js} +8 -9
  61. package/dist/ui-seletor-cor-D_ifitEN.cjs +83 -0
  62. package/dist/utils-ClVgqVyJ.cjs +1 -0
  63. package/dist/utils-DrHoxxmf.js +83 -0
  64. package/package.json +43 -2
  65. package/dist/acessibilidade-CSzX-DkG.cjs +0 -1
  66. package/dist/acessibilidade-CUlSXc2X.js +0 -38
  67. package/dist/altura-controle-ukMRPckR.cjs +0 -1
  68. package/dist/altura-controle-vxQiXG4q.js +0 -62
  69. package/dist/alvo-digitavel-CzCvNVQ3.js +0 -23
  70. package/dist/alvo-digitavel-DbH0hYFf.cjs +0 -1
  71. package/dist/degrade-CIxvOTUv.cjs +0 -1
  72. package/dist/degrade-gDa5sW__.js +0 -119
  73. package/dist/feature_caixa-CnYPKVFS.cjs +0 -1
  74. package/dist/feature_caixa-DCs9ZeSk.js +0 -1038
  75. package/dist/feature_historico-BAIYk1Me.cjs +0 -3
  76. package/dist/feature_historico-C4h9y5fu.js +0 -3039
  77. package/dist/form-atalhos-7JTYvumA.cjs +0 -1
  78. package/dist/form-atalhos-DDTlpgaB.js +0 -203
  79. package/dist/form-erros-CwPz7Jr4.cjs +0 -1
  80. package/dist/form-erros-DT5HklfD.js +0 -184
  81. package/dist/form-submissao-C-SPRKgT.js +0 -61
  82. package/dist/form-submissao-DxKO5MHI.cjs +0 -1
  83. package/dist/form-validacao-BlQFxUVj.js +0 -104
  84. package/dist/form-validacao-DIeyQVH5.cjs +0 -1
  85. package/dist/geometria-px-DKrWq_XY.js +0 -639
  86. package/dist/leaflet-CEPcxGWV.cjs +0 -1
  87. package/dist/leaflet-DOq10gfg.js +0 -84
  88. package/dist/leaflet-loader-94z5VsdY.cjs +0 -2
  89. package/dist/leaflet-loader-Cjcdgj5R.js +0 -21
  90. package/dist/listener-bag-D5omxZ9h.cjs +0 -1
  91. package/dist/listener-bag-DQgv7OON.js +0 -34
  92. package/dist/motor-By2te6PZ.js +0 -1400
  93. package/dist/motor-CkMxd378.cjs +0 -1
  94. package/dist/opcoes-CupvWVIm.js +0 -24
  95. package/dist/opcoes-vdAUY5OI.cjs +0 -1
  96. package/dist/parts-CaoQiCfI.js +0 -7
  97. package/dist/parts-vQa2873h.cjs +0 -1
  98. package/dist/prancha-paleta-BZ-9QDgh.js +0 -5276
  99. package/dist/prancha-paleta-Bb24vP71.cjs +0 -17
  100. package/dist/ssr-safe-5cWfJP-s.js +0 -10
  101. package/dist/ssr-safe-CiHD1adl.cjs +0 -1
  102. package/dist/svg-seguro-ChVJ2L2z.js +0 -74
  103. package/dist/svg-seguro-J2RM1Ssf.cjs +0 -1
  104. package/dist/ui-badge-DE58YSBY.cjs +0 -28
  105. package/dist/ui-badge-KgmI3jOD.js +0 -201
  106. package/dist/ui-botao-Dz8YvmiA.cjs +0 -12
  107. package/dist/ui-botao-zLkcMMyP.js +0 -168
  108. package/dist/ui-bus-CUd99VJi.js +0 -177
  109. package/dist/ui-bus-XqBLlTYQ.cjs +0 -1
  110. package/dist/ui-camadas-DoHPnbQm.js +0 -3133
  111. package/dist/ui-camadas-Vx7wYD4D.cjs +0 -311
  112. package/dist/ui-campo-texto-Dliyt9qr.cjs +0 -16
  113. package/dist/ui-campo-texto-btevggO3.js +0 -379
  114. package/dist/ui-card-7IEYbCN0.js +0 -150
  115. package/dist/ui-card-Bx8EyzYY.cjs +0 -20
  116. package/dist/ui-card-C-EJoKnm.js +0 -150
  117. package/dist/ui-card-DFnRp9bl.js +0 -146
  118. package/dist/ui-card-DrWVJQKw.cjs +0 -20
  119. package/dist/ui-card-DsIjHMmG.cjs +0 -20
  120. package/dist/ui-controle-cores-B1w_Yl69.cjs +0 -32
  121. package/dist/ui-controle-cores-BRjMvmMn.js +0 -291
  122. package/dist/ui-controle-cores-BcH9k2Fa.js +0 -292
  123. package/dist/ui-controle-cores-CvSTP6gJ.cjs +0 -32
  124. package/dist/ui-editor-prancha-CIngI6yI.js +0 -2886
  125. package/dist/ui-editor-prancha-DorSe6sC.cjs +0 -31
  126. package/dist/ui-linha-2kY7TNUJ.cjs +0 -38
  127. package/dist/ui-linha-B4mBRm1x.cjs +0 -61
  128. package/dist/ui-linha-DTEIIww4.js +0 -1167
  129. package/dist/ui-linha-KFF86FW5.js +0 -752
  130. package/dist/ui-modal-BrXzVZ65.js +0 -216
  131. package/dist/ui-modal-lARKzEVZ.cjs +0 -18
  132. package/dist/ui-paleta-ferramentas-Bu6JaT0s.js +0 -1245
  133. package/dist/ui-paleta-ferramentas-D3Jhwt26.cjs +0 -21
  134. package/dist/ui-paleta-ferramentas-DebHYiwd.js +0 -1615
  135. package/dist/ui-paleta-ferramentas-Dgejtluh.js +0 -1423
  136. package/dist/ui-paleta-ferramentas-hzyo8wBt.cjs +0 -22
  137. package/dist/ui-paleta-ferramentas-jWuICjW8.cjs +0 -22
  138. package/dist/ui-seletor-cor-0RLjcME6.cjs +0 -83
  139. package/dist/ui-seletor-cor-CMuuW-Ym.cjs +0 -83
  140. package/dist/ui-seletor-cor-DFIQ1sin.js +0 -405
  141. package/dist/ui-skeleton-BLEV6h3k.js +0 -653
  142. package/dist/ui-skeleton-B_XTaGrX.cjs +0 -52
  143. package/dist/ui-switch-BXIDwC-Y.cjs +0 -66
  144. package/dist/ui-switch-Ctxk-jKS.js +0 -1212
  145. package/dist/ui-tabela-CXxqbwXv.cjs +0 -7
  146. package/dist/ui-tabela-Cd0vOwnT.js +0 -1459
  147. package/dist/ui-tabela-propriedades-C5cIF5ES.js +0 -3779
  148. package/dist/ui-tabela-propriedades-CJyo568n.js +0 -3517
  149. package/dist/ui-tabela-propriedades-D96Djx-q.cjs +0 -136
  150. package/dist/ui-tabela-propriedades-Wa34hfIr.cjs +0 -142
  151. package/dist/ui-tabela-propriedades-ahQhQauu.js +0 -2329
  152. package/dist/ui-tabela-propriedades-w9JWhjHy.cjs +0 -142
  153. package/dist/zero-js-triggers-CJT988bR.js +0 -83
  154. package/dist/zero-js-triggers-CgM9IIQB.cjs +0 -1
package/dist/feedback.js CHANGED
@@ -1,28 +1,658 @@
1
+ var $ = Object.defineProperty;
2
+ var B = (r, s, t) => s in r ? $(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
3
+ var o = (r, s, t) => B(r, typeof s != "symbol" ? s + "" : s, t);
1
4
  /* empty css */
2
- import { U as e, a as s, b as t, r as l } from "./ui-modal-BrXzVZ65.js";
3
- import { confirmarAcao as U, confirmarDescarteSeSujo as i } from "./modal.js";
4
- import { I as p, U as m, a as n, b as D, c as T, d as f, e as S, f as b, g as d, h as g, i as u, j as v, k as A, l as E, o as M, r as k } from "./ui-skeleton-BLEV6h3k.js";
5
+ import { S as y, A as w, L as _, g as v, d as m, U as O } from "./kit-base-CBXA66aM.js";
6
+ import { UIDialog as ct, UIModal as dt, aplicarInertForaDoModal as ht, confirmarAcao as pt, confirmarDescarteSeSujo as bt, removerInertForaDoModal as mt } from "./modal.js";
7
+ const H = ':host{display:block;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif)}.ui-drawer__backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:calc(var(--ui-z-drawer, 700) - 1);opacity:0;pointer-events:none;transition:opacity .25s ease}:host([aberto]) .ui-drawer__backdrop,:host([open]) .ui-drawer__backdrop{opacity:1;pointer-events:auto}.ui-drawer__painel{position:fixed;z-index:var(--ui-z-drawer, 700);background:var(--ui-degrade-interno, var(--ui-drawer-fundo, var(--ui-fundo-card, var(--ui-cor-fundo-card, #18181c))));border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));box-shadow:var(--ui-sombra-lg, 0 16px 40px rgba(0, 0, 0, .7));display:flex;flex-direction:column;opacity:0;visibility:hidden;pointer-events:none;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .2s ease,visibility .2s ease;box-sizing:border-box;color:var(--ui-cor-texto, #e1e1e6)}:host(:not([posicao])) .ui-drawer__painel,:host([posicao="direita"]) .ui-drawer__painel,:host([position="right"]) .ui-drawer__painel{top:0;right:0;bottom:0;width:var(--ui-drawer-largura, 480px);max-width:92vw;height:100vh;transform:translate(100%);border-left:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16))}:host([aberto]:not([posicao])) .ui-drawer__painel,:host([open]:not([posicao])) .ui-drawer__painel,:host([aberto][posicao="direita"]) .ui-drawer__painel,:host([open][posicao="direita"]) .ui-drawer__painel,:host([aberto][position="right"]) .ui-drawer__painel,:host([open][position="right"]) .ui-drawer__painel{transform:translate(0);opacity:1;visibility:visible;pointer-events:auto}:host([posicao="esquerda"]) .ui-drawer__painel,:host([position="left"]) .ui-drawer__painel{top:0;left:0;bottom:0;width:var(--ui-drawer-largura, 480px);max-width:92vw;height:100vh;transform:translate(-100%);border-right:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16))}:host([aberto][posicao="esquerda"]) .ui-drawer__painel,:host([open][posicao="esquerda"]) .ui-drawer__painel,:host([aberto][position="left"]) .ui-drawer__painel,:host([open][position="left"]) .ui-drawer__painel{transform:translate(0);opacity:1;visibility:visible;pointer-events:auto}:host([posicao="baixo"]) .ui-drawer__painel,:host([position="bottom"]) .ui-drawer__painel{bottom:0;left:0;right:0;width:100vw;max-height:85vh;transform:translateY(100%);border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-top-left-radius:14px;border-top-right-radius:14px}:host([aberto][posicao="baixo"]) .ui-drawer__painel,:host([open][posicao="baixo"]) .ui-drawer__painel,:host([aberto][position="bottom"]) .ui-drawer__painel,:host([open][position="bottom"]) .ui-drawer__painel{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto}:host([posicao="cima"]) .ui-drawer__painel,:host([position="top"]) .ui-drawer__painel{top:0;left:0;right:0;width:100vw;max-height:85vh;transform:translateY(-100%);border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));border-bottom-left-radius:14px;border-bottom-right-radius:14px}:host([aberto][posicao="cima"]) .ui-drawer__painel,:host([open][posicao="cima"]) .ui-drawer__painel,:host([aberto][position="top"]) .ui-drawer__painel,:host([open][position="top"]) .ui-drawer__painel{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto}.ui-drawer__header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));flex-shrink:0}.ui-drawer__titulo-container{display:flex;flex-direction:column;gap:2px}.ui-drawer__titulo{margin:0;font-size:16px;font-weight:600;color:var(--ui-cor-texto, #ffffff)}.ui-drawer__descricao{margin:0;font-size:13px;color:var(--ui-cor-texto-secundario, #888899)}.ui-drawer__close{background:transparent;border:none;color:var(--ui-cor-texto-secundario, #888899);font-size:16px;cursor:pointer;padding:6px;border-radius:6px;line-height:1;display:flex;align-items:center;justify-content:center;transition:color .15s ease,background-color .15s ease}.ui-drawer__close svg,.ui-drawer__close ::slotted(svg){shape-rendering:geometricPrecision}.ui-drawer__close:hover{color:var(--ui-cor-texto, #ffffff);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-drawer__close:focus-visible{outline:none;box-shadow:0 0 0 2px var(--ui-cor-primaria, #00E08A)}.ui-drawer__body{padding:20px;overflow-y:auto;flex:1;box-sizing:border-box}.ui-drawer__footer{padding:14px 20px;border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));display:flex;align-items:center;justify-content:flex-end;gap:10px;background:var(--ui-drawer-rodape-fundo, var(--ui-cor-fundo-recuado, rgba(0, 0, 0, .15)));flex-shrink:0}@starting-style{:host([aberto]:not([posicao])) .ui-drawer__painel,:host([open]:not([posicao])) .ui-drawer__painel,:host([aberto][posicao="direita"]) .ui-drawer__painel,:host([open][posicao="direita"]) .ui-drawer__painel{transform:translate(100%);opacity:0}:host([aberto][posicao="esquerda"]) .ui-drawer__painel,:host([open][posicao="esquerda"]) .ui-drawer__painel{transform:translate(-100%);opacity:0}:host([aberto][posicao="baixo"]) .ui-drawer__painel,:host([open][posicao="baixo"]) .ui-drawer__painel{transform:translateY(100%);opacity:0}:host([aberto]) .ui-drawer__backdrop,:host([open]) .ui-drawer__backdrop{opacity:0}}:host(.degrade),:host(.ui-degrade),:host(.gradiente),:host(.ui-gradiente),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])){--ui-fundo-card: var(--ui-gradiente-card)}', S = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), ui-campo-texto, ui-botao, ui-botao-primario, ui-checkbox, ui-switch, ui-lista-flutuante, ui-radio, ui-select, ui-segmented';
8
+ function q(r, s) {
9
+ let t = Array.from(r.querySelectorAll(S));
10
+ t = t.filter((a) => {
11
+ try {
12
+ return window.getComputedStyle(a).display !== "none";
13
+ } catch {
14
+ return !0;
15
+ }
16
+ });
17
+ const i = r.querySelectorAll("slot"), e = [];
18
+ return i.forEach((a) => {
19
+ a.assignedElements({ flatten: !0 }).forEach((l) => {
20
+ l instanceof HTMLElement && (l.matches(S) && e.push(l), e.push(...Array.from(l.querySelectorAll(S))));
21
+ });
22
+ }), [...t, ...e].filter((a) => !a.hasAttribute("disabled") && a.getAttribute("aria-hidden") !== "true");
23
+ }
24
+ function F(r) {
25
+ if (typeof document > "u") return !0;
26
+ const s = Array.from(
27
+ document.querySelectorAll("ui-drawer[aberto], ui-drawer[open], ui-sheet[aberto], ui-sheet[open]")
28
+ );
29
+ return s[s.length - 1] === r;
30
+ }
31
+ function G(r, s, t, i) {
32
+ if (s.length === 0) {
33
+ r.preventDefault();
34
+ return;
35
+ }
36
+ const e = s[0], a = s[s.length - 1], n = t.getRootNode(), l = n == null ? void 0 : n.activeElement;
37
+ r.shiftKey ? (l === e || !t.contains(l) && !i.contains(l)) && (r.preventDefault(), a.focus()) : (l === a || !t.contains(l) && !i.contains(l)) && (r.preventDefault(), e.focus());
38
+ }
39
+ function U() {
40
+ if (typeof document > "u") return;
41
+ document.querySelectorAll(
42
+ "ui-modal[aberto], ui-modal[open], ui-dialog[aberto], ui-dialog[open], ui-drawer[aberto], ui-drawer[open], ui-sheet[aberto], ui-sheet[open]"
43
+ ).length > 0 ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
44
+ }
45
+ class g extends y {
46
+ constructor() {
47
+ super();
48
+ o(this, "backdropElement");
49
+ o(this, "painelElement");
50
+ o(this, "tituloElement");
51
+ o(this, "descricaoElement");
52
+ o(this, "closeElement");
53
+ o(this, "listeners", new _());
54
+ o(this, "_elementoGatilho", null);
55
+ o(this, "_focables", []);
56
+ o(this, "handleSlotChange", () => {
57
+ this.syncState();
58
+ });
59
+ o(this, "handleBackdropClick", (t) => {
60
+ t.stopPropagation(), this.hasAttribute("estatico") || this.hasAttribute("static") || this.fechar();
61
+ });
62
+ o(this, "handleCloseClick", (t) => {
63
+ t.stopPropagation(), this.fechar();
64
+ });
65
+ o(this, "handleKeyDown", (t) => {
66
+ this.aberto && F(this) && (t.key === "Escape" ? this.hasAttribute("estatico") || this.hasAttribute("static") || (this.fechar(), t.stopImmediatePropagation()) : t.key === "Tab" && (this._focables = q(this.shadowRoot), G(t, this._focables, this, this.shadowRoot)));
67
+ });
68
+ const t = this.attachShadow({ mode: "open" });
69
+ t.innerHTML = `
70
+ <style>${H}</style>
71
+ <div class="ui-drawer__backdrop" part="fundo"></div>
72
+ <aside class="ui-drawer__painel" part="painel" role="dialog" aria-modal="true" tabindex="-1">
73
+ <div class="ui-drawer__header" part="cabecalho">
74
+ <div class="ui-drawer__titulo-container">
75
+ <h3 class="ui-drawer__titulo" part="titulo"></h3>
76
+ <p class="ui-drawer__descricao" part="descricao" style="display: none;"></p>
77
+ </div>
78
+ <button type="button" class="ui-drawer__close" part="fechar" aria-label="Fechar painel lateral" title="Fechar">✕</button>
79
+ </div>
80
+ <div class="ui-drawer__body" part="corpo">
81
+ <slot></slot>
82
+ </div>
83
+ <div class="ui-drawer__footer" part="rodape">
84
+ <slot name="rodape"></slot>
85
+ <slot name="footer"></slot>
86
+ </div>
87
+ </aside>
88
+ `, this.backdropElement = t.querySelector(".ui-drawer__backdrop"), this.painelElement = t.querySelector(".ui-drawer__painel"), this.tituloElement = t.querySelector(".ui-drawer__titulo"), this.descricaoElement = t.querySelector(".ui-drawer__descricao"), this.closeElement = t.querySelector(".ui-drawer__close");
89
+ }
90
+ static get observedAttributes() {
91
+ return [
92
+ "aberto",
93
+ "open",
94
+ "posicao",
95
+ "position",
96
+ "titulo",
97
+ "title",
98
+ "descricao",
99
+ "description",
100
+ "largura",
101
+ "width",
102
+ "estatico",
103
+ "static",
104
+ ...w
105
+ ];
106
+ }
107
+ connectedCallback() {
108
+ this.listeners.cleanup(), this.listeners.add(this.backdropElement, "click", this.handleBackdropClick), this.listeners.add(this.closeElement, "click", this.handleCloseClick), this.listeners.add(window, "keydown", this.handleKeyDown), this.shadowRoot.querySelectorAll("slot").forEach((i) => {
109
+ this.listeners.add(i, "slotchange", this.handleSlotChange);
110
+ }), this.syncState();
111
+ }
112
+ disconnectedCallback() {
113
+ this.listeners.cleanup(), g.atualizarScrollLock();
114
+ }
115
+ attributeChangedCallback(t, i, e) {
116
+ (t === "aberto" || t === "open") && e !== null && (document.activeElement && document.activeElement !== document.body && (this._elementoGatilho = document.activeElement), setTimeout(() => {
117
+ this._focables = q(this.shadowRoot), this._focables.length > 0 ? this._focables[0].focus() : this.painelElement.focus();
118
+ }, 0)), this.syncState();
119
+ }
120
+ get aberto() {
121
+ return this.hasAttribute("aberto") || this.hasAttribute("open");
122
+ }
123
+ set aberto(t) {
124
+ t ? this.setAttribute("aberto", "") : (this.removeAttribute("aberto"), this.removeAttribute("open")), this.syncState();
125
+ }
126
+ get posicao() {
127
+ const t = (this.getAttribute("posicao") || this.getAttribute("position") || "direita").toLowerCase();
128
+ return t === "esquerda" || t === "left" ? "esquerda" : t === "baixo" || t === "bottom" ? "baixo" : t === "cima" || t === "top" ? "cima" : "direita";
129
+ }
130
+ set posicao(t) {
131
+ this.setAttribute("posicao", t);
132
+ }
133
+ abrir() {
134
+ this.aberto || (document.activeElement && document.activeElement !== document.body && (this._elementoGatilho = document.activeElement), this.aberto = !0, this.dispatchEvent(
135
+ new CustomEvent("ui-abrir", {
136
+ bubbles: !0,
137
+ composed: !0
138
+ })
139
+ ), setTimeout(() => {
140
+ this._focables = q(this.shadowRoot), this._focables.length > 0 ? this._focables[0].focus() : this.painelElement.focus();
141
+ }, 0));
142
+ }
143
+ fechar() {
144
+ this.aberto && (this.aberto = !1, this.dispatchEvent(
145
+ new CustomEvent("ui-fechar", {
146
+ bubbles: !0,
147
+ composed: !0
148
+ })
149
+ ), this._elementoGatilho && (this._elementoGatilho.focus(), this._elementoGatilho = null));
150
+ }
151
+ alternar() {
152
+ this.aberto ? this.fechar() : this.abrir();
153
+ }
154
+ syncState() {
155
+ var l, c;
156
+ const t = this.aberto, i = this.getAttribute("titulo") || this.getAttribute("title") || "", e = this.getAttribute("descricao") || this.getAttribute("description") || "", a = this.getAttribute("largura") || this.getAttribute("width"), n = (l = this.shadowRoot) == null ? void 0 : l.querySelector(".ui-drawer__footer");
157
+ if (this.painelElement.setAttribute("aria-hidden", String(!t)), v(this, this.painelElement), i ? (this.tituloElement.textContent = i, this.tituloElement.style.display = "block") : this.tituloElement.style.display = "none", e ? (this.descricaoElement.textContent = e, this.descricaoElement.style.display = "block") : this.descricaoElement.style.display = "none", a ? this.style.setProperty("--ui-drawer-largura", isNaN(Number(a)) ? a : `${a}px`) : this.style.removeProperty("--ui-drawer-largura"), n) {
158
+ const u = Array.from(((c = this.shadowRoot) == null ? void 0 : c.querySelectorAll('slot[name="rodape"], slot[name="footer"]')) || []).some((b) => b.assignedNodes({ flatten: !0 }).some((f) => f.nodeType === Node.ELEMENT_NODE || f.textContent && f.textContent.trim() !== "")) || this.querySelector('[slot="rodape"], [slot="footer"]') !== null;
159
+ n.style.display = u ? "flex" : "none";
160
+ }
161
+ g.atualizarScrollLock();
162
+ }
163
+ static atualizarScrollLock() {
164
+ U();
165
+ }
166
+ }
167
+ class j extends g {
168
+ }
169
+ class Y extends g {
170
+ }
171
+ class X extends g {
172
+ }
173
+ m("ui-drawer", g);
174
+ m("ui-sheet", j);
175
+ m("ui-painel-lateral", Y);
176
+ m("ui-gaveta", X);
177
+ const Q = ':host{display:block;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif)}.ui-alerta{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-radius:var(--ui-raio-borda, 8px);border:1px solid transparent;background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e))));color:var(--ui-cor-texto, #e1e1e6);box-sizing:border-box;position:relative;transition:opacity .2s ease,transform .2s ease;line-height:1.4}.ui-alerta__icone{display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px;line-height:1}.ui-alerta__icone svg,.ui-alerta__icone ::slotted(svg),.ui-alerta__icone ::slotted(ui-icone){shape-rendering:geometricPrecision}.ui-alerta__conteudo{flex:1}.ui-alerta__titulo{font-size:14px;font-weight:600;margin:0 0 2px;line-height:1.2}.ui-alerta__mensagem{font-size:13px;margin:0;opacity:.9}.ui-alerta__close{background:transparent;border:none;color:currentColor;opacity:.7;font-size:14px;cursor:pointer;padding:2px 6px;border-radius:var(--ui-raio-sm, 4px);line-height:1;flex-shrink:0;margin-top:-2px;margin-right:-4px;transition:opacity .15s ease,background-color .15s ease}.ui-alerta__close:hover{opacity:1;background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 15%,transparent)}.ui-alerta--sucesso{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-sucesso, color-mix(in srgb, var(--ui-cor-texto-sucesso, #00E08A) 12%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-sucesso, #00E08A) 30%,transparent);color:var(--ui-cor-texto-sucesso, #00E08A)}.ui-alerta--sucesso .ui-alerta__mensagem{color:var(--ui-cor-texto, #e1e1e6)}.ui-alerta--erro{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-erro, color-mix(in srgb, var(--ui-cor-texto-erro, #ff5555) 12%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 30%,transparent);color:var(--ui-cor-texto-erro, #ff5555)}.ui-alerta--erro .ui-alerta__mensagem{color:var(--ui-cor-texto, #e1e1e6)}.ui-alerta--alerta{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-alerta, color-mix(in srgb, var(--ui-cor-texto-alerta, #ffb86c) 12%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-alerta, #ffb86c) 30%,transparent);color:var(--ui-cor-texto-alerta, #ffb86c)}.ui-alerta--alerta .ui-alerta__mensagem{color:var(--ui-cor-texto, #e1e1e6)}.ui-alerta--info{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-info, color-mix(in srgb, var(--ui-cor-texto-info, #33b5ff) 12%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-info, #33b5ff) 30%,transparent);color:var(--ui-cor-texto-info, #33b5ff)}.ui-alerta--info .ui-alerta__mensagem{color:var(--ui-cor-texto, #e1e1e6)}.ui-alerta__acoes{display:flex;align-items:center;flex-shrink:0;margin-left:4px}.ui-alerta__botao-acao{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,transparent);border:1px solid color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 16%,transparent);color:inherit;font-family:inherit;font-size:12px;font-weight:600;padding:4px 10px;border-radius:5px;cursor:pointer;line-height:1;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,transform .1s ease}.ui-alerta__botao-acao:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 18%,transparent);border-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 30%,transparent)}.ui-alerta__botao-acao:active{transform:scale(.96)}.ui-alerta__botao-acao:focus-visible{outline:none;box-shadow:0 0 0 2px var(--ui-cor-fundo, #0b0b0d),0 0 0 4px var(--ui-cor-primaria, #00E08A)}.ui-alerta__botao-acao--primario{background:color-mix(in srgb,var(--ui-cor-texto-sucesso, #00E08A) 15%,transparent);border-color:color-mix(in srgb,var(--ui-cor-texto-sucesso, #00E08A) 35%,transparent);color:var(--ui-cor-primaria, #00E08A)}.ui-alerta__botao-acao--primario:hover{background:color-mix(in srgb,var(--ui-cor-texto-sucesso, #00E08A) 25%,transparent);border-color:color-mix(in srgb,var(--ui-cor-texto-sucesso, #00E08A) 50%,transparent)}.ui-alerta__botao-acao--destrutivo{background:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 15%,transparent);border-color:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 35%,transparent);color:var(--ui-cor-texto-erro, #ff5555)}.ui-alerta__botao-acao--destrutivo:hover{background:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 25%,transparent);border-color:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 50%,transparent)}:host(ui-toast){display:block;width:100%;box-sizing:border-box;pointer-events:auto;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s ease}.ui-toast__banner{box-shadow:var(--ui-sombra-lg, 0 10px 30px rgba(0, 0, 0, .3)),0 0 0 1px var(--ui-cor-borda, rgba(255, 255, 255, .1));animation:ui-toast-slide .3s cubic-bezier(.16,1,.3,1);position:relative;overflow:hidden;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.ui-toast__banner.ui-alerta--sucesso{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-sucesso, color-mix(in srgb, color-mix(in srgb, var(--ui-cor-fundo-elevado, #1a1a1e) 88%, var(--ui-cor-texto-sucesso, #00E08A) 12%) 60%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-sucesso, #00E08A) 40%,transparent)}.ui-toast__banner.ui-alerta--erro{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-erro, color-mix(in srgb, color-mix(in srgb, var(--ui-cor-fundo-elevado, #1a1a1e) 88%, var(--ui-cor-texto-erro, #ff5555) 12%) 60%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 40%,transparent)}.ui-toast__banner.ui-alerta--alerta{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-alerta, color-mix(in srgb, color-mix(in srgb, var(--ui-cor-fundo-elevado, #1a1a1e) 88%, var(--ui-cor-texto-alerta, #ffb86c) 12%) 60%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-alerta, #ffb86c) 40%,transparent)}.ui-toast__banner.ui-alerta--info{background:var(--ui-degrade-interno, var(--ui-alerta-fundo, var(--ui-fundo-info, color-mix(in srgb, color-mix(in srgb, var(--ui-cor-fundo-elevado, #1a1a1e) 88%, var(--ui-cor-texto-info, #33b5ff) 12%) 60%, transparent))));border-color:color-mix(in srgb,var(--ui-cor-texto-info, #33b5ff) 40%,transparent)}.ui-toast__progresso{position:absolute;bottom:0;left:0;right:0;height:2px;background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,transparent);overflow:hidden}.ui-toast__progresso-barra{width:100%;height:100%;background:currentColor;opacity:.7;transform-origin:left;animation:ui-toast-timer linear forwards}:host(ui-toast:hover) .ui-toast__progresso-barra,:host(ui-toast:focus-within) .ui-toast__progresso-barra{animation-play-state:paused}@keyframes ui-toast-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes ui-toast-slide{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@starting-style{:host(ui-toast){opacity:0;transform:translateY(12px) scale(.96)}}:host(.squarecircle) .ui-alerta,:host(.squarecircles) .ui-alerta,:host(.ui-squarecircle) .ui-alerta,:host(.ui-squarecircles) .ui-alerta,:host([formato="squarecircle"]) .ui-alerta,:host([formato="squarecircles"]) .ui-alerta,:host([formato="squircle"]) .ui-alerta{border-radius:var(--ui-raio-lg, 10px)}:host(.degrade),:host(.ui-degrade),:host(.gradiente),:host(.ui-gradiente),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])){--ui-fundo-elevado: var(--ui-gradiente-elevado);--ui-fundo-sucesso: var(--ui-gradiente-sucesso);--ui-fundo-erro: var(--ui-gradiente-erro);--ui-fundo-alerta: var(--ui-gradiente-alerta);--ui-fundo-info: var(--ui-gradiente-info)}', N = {
178
+ sucesso: '<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>',
179
+ erro: '<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',
180
+ alerta: '<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',
181
+ info: '<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>'
182
+ };
183
+ class M extends y {
184
+ constructor() {
185
+ super();
186
+ o(this, "alertaElement");
187
+ o(this, "iconeElement");
188
+ o(this, "tituloElement");
189
+ o(this, "mensagemElement");
190
+ o(this, "mensagemTextoElement");
191
+ o(this, "closeElement");
192
+ o(this, "acoesElement");
193
+ o(this, "botaoAcaoElement");
194
+ o(this, "progressoContainer");
195
+ o(this, "progressoBarra");
196
+ o(this, "listeners", new _());
197
+ const t = this.attachShadow({ mode: "open" });
198
+ t.innerHTML = `
199
+ <style>${Q}</style>
200
+ <div class="ui-alerta" part="base" role="alert">
201
+ <span class="ui-alerta__icone" part="icone"></span>
202
+ <div class="ui-alerta__conteudo" part="conteudo">
203
+ <h4 class="ui-alerta__titulo" part="titulo" style="display: none;"></h4>
204
+ <p class="ui-alerta__mensagem" part="mensagem">
205
+ <span class="ui-alerta__mensagem-texto" style="display: none;"></span>
206
+ <slot></slot>
207
+ </p>
208
+ </div>
209
+ <div class="ui-alerta__acoes" style="display: none;">
210
+ <button type="button" class="ui-alerta__botao-acao" part="acao"></button>
211
+ </div>
212
+ <button class="ui-alerta__close" part="fechar" type="button" aria-label="Fechar alerta" style="display: none;" title="Fechar">✕</button>
213
+ <div class="ui-toast__progresso" part="progresso" style="display: none;">
214
+ <div class="ui-toast__progresso-barra"></div>
215
+ </div>
216
+ </div>
217
+ `, this.alertaElement = t.querySelector(".ui-alerta"), this.iconeElement = t.querySelector(".ui-alerta__icone"), this.tituloElement = t.querySelector(".ui-alerta__titulo"), this.mensagemElement = t.querySelector(".ui-alerta__mensagem"), this.mensagemTextoElement = t.querySelector(".ui-alerta__mensagem-texto"), this.closeElement = t.querySelector(".ui-alerta__close"), this.acoesElement = t.querySelector(".ui-alerta__acoes"), this.botaoAcaoElement = t.querySelector(".ui-alerta__botao-acao"), this.progressoContainer = t.querySelector(".ui-toast__progresso"), this.progressoBarra = t.querySelector(".ui-toast__progresso-barra");
218
+ }
219
+ static get observedAttributes() {
220
+ return [
221
+ "tipo",
222
+ "variante",
223
+ "variant",
224
+ "titulo",
225
+ "title",
226
+ "mensagem",
227
+ "fechavel",
228
+ "dismissible",
229
+ ...w
230
+ ];
231
+ }
232
+ connectedCallback() {
233
+ this.listeners.cleanup(), this.listeners.add(this.closeElement, "click", () => this.fechar()), this.syncState();
234
+ }
235
+ disconnectedCallback() {
236
+ this.listeners.cleanup();
237
+ }
238
+ attributeChangedCallback(t, i, e) {
239
+ this.syncState();
240
+ }
241
+ fechar() {
242
+ this.dispatchEvent(
243
+ new CustomEvent("ui-fechar", {
244
+ bubbles: !0,
245
+ composed: !0
246
+ })
247
+ ), this.remove();
248
+ }
249
+ syncState() {
250
+ const t = this.getAttribute("tipo") || this.getAttribute("variante") || this.getAttribute("variant") || "info", i = this.getAttribute("titulo") || this.getAttribute("title"), e = this.getAttribute("mensagem"), a = this.hasAttribute("fechavel") || this.hasAttribute("dismissible");
251
+ this.alertaElement.className = `ui-alerta ui-alerta--${t}`, v(this, this.alertaElement);
252
+ const n = N[t] || N.info;
253
+ this.iconeElement.innerHTML = n, i ? (this.tituloElement.textContent = i, this.tituloElement.style.display = "block") : (this.tituloElement.style.display = "none", this.tituloElement.textContent = ""), e ? (this.mensagemTextoElement.textContent = e, this.mensagemTextoElement.style.display = "inline") : (this.mensagemTextoElement.style.display = "none", this.mensagemTextoElement.textContent = ""), a ? this.closeElement.style.display = "block" : this.closeElement.style.display = "none";
254
+ }
255
+ }
256
+ m("ui-alerta", M);
257
+ class k extends M {
258
+ constructor() {
259
+ super(...arguments);
260
+ o(this, "timerId", null);
261
+ o(this, "tempoRestante", 4e3);
262
+ o(this, "inicioTimestamp", 0);
263
+ o(this, "isPausado", !1);
264
+ o(this, "acaoConfig");
265
+ o(this, "containerRef", null);
266
+ o(this, "handleAcaoClick", (t) => {
267
+ var i, e, a;
268
+ t.stopPropagation(), (i = this.acaoConfig) != null && i.onClick && this.acaoConfig.onClick(t), this.dispatchEvent(
269
+ new CustomEvent("ui-toast-acao", {
270
+ detail: {
271
+ rotulo: (e = this.acaoConfig) == null ? void 0 : e.rotulo,
272
+ tipo: (a = this.acaoConfig) == null ? void 0 : a.tipo
273
+ },
274
+ bubbles: !0,
275
+ composed: !0
276
+ })
277
+ ), this.fechar();
278
+ });
279
+ o(this, "pausarTimer", () => {
280
+ if (this.isPausado || this.tempoRestante <= 0) return;
281
+ this.isPausado = !0, this.timerId && (clearTimeout(this.timerId), this.timerId = null);
282
+ const t = Date.now() - this.inicioTimestamp;
283
+ this.tempoRestante = Math.max(0, this.tempoRestante - t), this.progressoBarra.style.animationPlayState = "paused";
284
+ });
285
+ o(this, "retomarTimer", () => {
286
+ !this.isPausado || this.tempoRestante <= 0 || (this.isPausado = !1, this.progressoBarra.style.animationPlayState = "running", this.iniciarTimer(Math.max(this.tempoRestante, 300)));
287
+ });
288
+ }
289
+ configurarAcao(t) {
290
+ this.acaoConfig = t, this.botaoAcaoElement.textContent = t.rotulo, this.acoesElement.style.display = "flex";
291
+ const i = t.tipo || "primario";
292
+ this.botaoAcaoElement.className = `ui-alerta__botao-acao ui-alerta__botao-acao--${i}`;
293
+ }
294
+ connectedCallback() {
295
+ super.connectedCallback(), this.containerRef = this.parentElement, this.alertaElement.classList.add("ui-toast__banner"), this.acaoConfig && this.listeners.add(this.botaoAcaoElement, "click", this.handleAcaoClick);
296
+ const t = this.getAttribute("duracao") || this.getAttribute("duration") || "4000", i = parseInt(t, 10);
297
+ this.tempoRestante = isNaN(i) ? 4e3 : i, this.tempoRestante > 0 ? (this.progressoContainer.style.display = "block", this.progressoBarra.style.animationDuration = `${this.tempoRestante}ms`, this.getAttribute("pausar-no-hover") !== "false" && (this.listeners.add(this, "mouseenter", this.pausarTimer), this.listeners.add(this, "mouseleave", this.retomarTimer), this.listeners.add(this, "focusin", this.pausarTimer), this.listeners.add(this, "focusout", this.retomarTimer)), this.iniciarTimer(this.tempoRestante)) : this.progressoContainer.style.display = "none";
298
+ }
299
+ fechar() {
300
+ const t = this.parentElement || this.containerRef;
301
+ super.fechar(), t && t.id.startsWith("ui-toast-container-") && t.children.length === 0 && t.remove();
302
+ }
303
+ disconnectedCallback() {
304
+ super.disconnectedCallback(), this.timerId && (clearTimeout(this.timerId), this.timerId = null), this.containerRef && this.containerRef.id.startsWith("ui-toast-container-") && this.containerRef.children.length === 0 && (this.containerRef.remove(), this.containerRef = null);
305
+ }
306
+ iniciarTimer(t) {
307
+ this.timerId && clearTimeout(this.timerId), this.inicioTimestamp = Date.now(), this.timerId = setTimeout(() => {
308
+ this.fechar();
309
+ }, t);
310
+ }
311
+ static obterContainer(t) {
312
+ const i = `ui-toast-container-${t}`;
313
+ let e = document.getElementById(i);
314
+ return e || (e = document.createElement("div"), e.id = i, e.style.position = "fixed", e.style.setProperty("z-index", "var(--ui-z-toast, 1100)"), e.style.display = "flex", e.style.gap = "10px", e.style.maxWidth = "400px", e.style.width = "calc(100vw - 32px)", e.style.pointerEvents = "none", e.style.boxSizing = "border-box", e.style.transition = "all 0.2s ease", t === "top-right" ? (e.style.top = "20px", e.style.right = "20px", e.style.flexDirection = "column") : t === "top-left" ? (e.style.top = "20px", e.style.left = "20px", e.style.flexDirection = "column") : t === "bottom-left" ? (e.style.bottom = "20px", e.style.left = "20px", e.style.flexDirection = "column-reverse") : t === "top-center" ? (e.style.top = "20px", e.style.left = "50%", e.style.transform = "translateX(-50%)", e.style.flexDirection = "column") : t === "bottom-center" ? (e.style.bottom = "20px", e.style.left = "50%", e.style.transform = "translateX(-50%)", e.style.flexDirection = "column-reverse") : (e.style.bottom = "20px", e.style.right = "20px", e.style.flexDirection = "column-reverse"), document.body.appendChild(e)), e;
315
+ }
316
+ // Utilitário estático para disparo imperativo de Toasts de qualquer lugar no código
317
+ static notificar(t) {
318
+ if (typeof document > "u") return null;
319
+ const i = t.posicao || "bottom-right", e = document.createElement("ui-toast");
320
+ return t.tipo && e.setAttribute("tipo", t.tipo), t.titulo && e.setAttribute("titulo", t.titulo), t.mensagem && e.setAttribute("mensagem", t.mensagem), t.duracao !== void 0 && e.setAttribute("duracao", String(t.duracao)), t.pausarNoHover === !1 && e.setAttribute("pausar-no-hover", "false"), e.setAttribute("posicao", i), t.fechavel !== !1 && e.setAttribute("fechavel", ""), t.acao && e.configurarAcao(t.acao), k.obterContainer(i).appendChild(e), e;
321
+ }
322
+ }
323
+ m("ui-toast", k);
324
+ function W() {
325
+ O.registrarProvedorToast((r) => {
326
+ k.notificar(r);
327
+ });
328
+ }
329
+ W();
330
+ const K = ':host{display:inline-flex;position:relative;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;--ui-tooltip-texto-distancia: 260px;--ui-tooltip-seta-espaco: 70px}.ui-tooltip__bubble{position:fixed;z-index:var(--ui-z-tooltip, 1200);padding:6px 10px;border-radius:6px;font-size:11px;font-weight:500;background:var(--ui-degrade-interno, var(--ui-tooltip-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1e1e24))));color:var(--ui-cor-texto, #e1e1e6);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));box-shadow:var(--ui-sombra-md, 0 4px 16px rgba(0, 0, 0, .5));white-space:normal;max-width:var(--ui-tooltip-texto-distancia, 260px);width:max-content;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease;line-height:1.35;box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0}.ui-tooltip__bubble[popover]{margin:0;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));background:var(--ui-degrade-interno, var(--ui-tooltip-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1e1e24))));color:var(--ui-cor-texto, #e1e1e6);padding:6px 10px;overflow:visible;max-width:var(--ui-tooltip-texto-distancia, 260px);width:max-content;white-space:normal}.ui-tooltip__texto{display:inline-block;max-width:100%}.ui-tooltip__arrow{position:absolute;width:0;height:0;border-style:solid}.ui-tooltip--topo .ui-tooltip__arrow{bottom:-5px;left:50%;transform:translate(-50%);border-width:5px 5px 0 5px;border-color:var(--ui-cor-fundo-elevado, #1e1e24) transparent transparent transparent}.ui-tooltip--baixo .ui-tooltip__arrow{top:-5px;left:50%;transform:translate(-50%);border-width:0 5px 5px 5px;border-color:transparent transparent var(--ui-cor-fundo-elevado, #1e1e24) transparent}.ui-tooltip--esquerda .ui-tooltip__arrow{right:-5px;top:50%;transform:translateY(-50%);border-width:5px 0 5px 5px;border-color:transparent transparent transparent var(--ui-cor-fundo-elevado, #1e1e24)}.ui-tooltip--direita .ui-tooltip__arrow{left:-5px;top:50%;transform:translateY(-50%);border-width:5px 5px 5px 0;border-color:transparent var(--ui-cor-fundo-elevado, #1e1e24) transparent transparent}.ui-tooltip--visivel .ui-tooltip__bubble{opacity:1;visibility:visible;pointer-events:auto;transform:scale(1)}@starting-style{.ui-tooltip--visivel .ui-tooltip__bubble,.ui-tooltip__bubble:popover-open{opacity:0;transform:scale(.94)}}:host(.degrade),:host(.ui-degrade),:host(.gradiente),:host(.ui-gradiente),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])){--ui-fundo-elevado: var(--ui-gradiente-elevado)}', x = 8, z = 8, D = {
331
+ topo: "topo",
332
+ top: "topo",
333
+ baixo: "baixo",
334
+ bottom: "baixo",
335
+ esquerda: "esquerda",
336
+ left: "esquerda",
337
+ direita: "direita",
338
+ right: "direita"
339
+ };
340
+ function L(r) {
341
+ const s = (r ?? "").trim().toLowerCase();
342
+ return Object.prototype.hasOwnProperty.call(D, s) ? D[s] : "topo";
343
+ }
344
+ const p = (r) => Number.isFinite(r) ? r : 0;
345
+ function V(r, s, t, i) {
346
+ const e = p(s.width), a = p(s.height), n = p(r.left) + p(r.width) / 2, l = p(r.top) + p(r.height) / 2;
347
+ let c = 0, d = 0;
348
+ t === "topo" ? (c = p(r.top) - a - x, d = n - e / 2) : t === "baixo" ? (c = p(r.bottom) + x, d = n - e / 2) : t === "esquerda" ? (c = l - a / 2, d = p(r.left) - e - x) : (c = l - a / 2, d = p(r.right) + x);
349
+ const u = (b, h, f) => Math.max(z, Math.min(b, p(f) - h - z));
350
+ return {
351
+ top: Math.round(u(c, a, i.altura)),
352
+ left: Math.round(u(d, e, i.largura))
353
+ };
354
+ }
355
+ function R(r) {
356
+ return r instanceof DOMException && r.name === "InvalidStateError";
357
+ }
358
+ function J(r) {
359
+ const s = r;
360
+ if (typeof s.showPopover == "function")
361
+ try {
362
+ s.showPopover();
363
+ } catch (t) {
364
+ R(t) || console.warn("[ui-tooltip] Não foi possível abrir o balão como popover:", t);
365
+ }
366
+ }
367
+ function Z(r) {
368
+ const s = r;
369
+ if (typeof s.hidePopover == "function")
370
+ try {
371
+ s.hidePopover();
372
+ } catch (t) {
373
+ R(t) || console.warn("[ui-tooltip] Não foi possível fechar o balão como popover:", t);
374
+ }
375
+ }
376
+ const tt = 120;
377
+ class I extends y {
378
+ constructor() {
379
+ super();
380
+ o(this, "containerElement");
381
+ o(this, "bubbleElement");
382
+ /** Ouvintes do host: valem enquanto o elemento está conectado. */
383
+ o(this, "ouvintesHost", new _());
384
+ /** Ouvintes globais (documento/janela): valem só enquanto o balão está aberto. */
385
+ o(this, "ouvintesAberto", new _());
386
+ o(this, "_timerOcultar", null);
387
+ o(this, "_quadro", null);
388
+ /** Gatilho que recebeu `aria-description` deste tooltip (para remover depois). */
389
+ o(this, "_gatilhoDescrito", null);
390
+ o(this, "posicionarBubble", () => {
391
+ if (!this.aberto) return;
392
+ const t = L(this.getAttribute("posicao") || this.getAttribute("position")), { top: i, left: e } = V(
393
+ this.getBoundingClientRect(),
394
+ this.bubbleElement.getBoundingClientRect(),
395
+ t,
396
+ { largura: window.innerWidth, altura: window.innerHeight }
397
+ );
398
+ this.bubbleElement.style.top = `${i}px`, this.bubbleElement.style.left = `${e}px`;
399
+ });
400
+ o(this, "handleMouseEnter", () => {
401
+ const t = this.lerGatilho();
402
+ (t === "hover" || t === "passar-mouse") && (this.cancelarOcultar(), this.mostrar());
403
+ });
404
+ o(this, "handleMouseLeave", () => {
405
+ const t = this.lerGatilho();
406
+ (t === "hover" || t === "passar-mouse") && (this.cancelarOcultar(), this._timerOcultar = setTimeout(() => {
407
+ this._timerOcultar = null, this.ocultar();
408
+ }, tt));
409
+ });
410
+ /**
411
+ * Escape fecha o tooltip sem mover o foco (WCAG 1.4.13). Ouvido na captura e interrompido,
412
+ * para que dentro de um modal o primeiro Escape feche só o tooltip.
413
+ */
414
+ o(this, "handleEscape", (t) => {
415
+ t.key !== "Escape" || !this.aberto || (t.stopPropagation(), this.cancelarOcultar(), this.ocultar());
416
+ });
417
+ /** O clique do gatilho continua chegando aos ancestrais: o "clicar fora" já ignora cliques dentro do host. */
418
+ o(this, "handleClick", () => {
419
+ const t = typeof window.matchMedia == "function" && window.matchMedia("(pointer: coarse)").matches, i = this.lerGatilho();
420
+ (i === "clique" || i === "click" || t) && (this.aberto = !this.aberto);
421
+ });
422
+ o(this, "handleClickOutside", (t) => {
423
+ t.composedPath().includes(this) || this.ocultar();
424
+ });
425
+ const t = this.attachShadow({ mode: "open" });
426
+ t.innerHTML = `
427
+ <style>${K}</style>
428
+ <div class="ui-tooltip ui-tooltip--topo">
429
+ <slot></slot>
430
+ <div class="ui-tooltip__bubble" part="balao" role="tooltip" popover="manual">
431
+ <span class="ui-tooltip__texto" part="texto"></span>
432
+ <slot name="conteudo"></slot>
433
+ <span class="ui-tooltip__arrow" part="seta"></span>
434
+ </div>
435
+ </div>
436
+ `, this.containerElement = t.querySelector(".ui-tooltip"), this.bubbleElement = t.querySelector(".ui-tooltip__bubble"), t.querySelectorAll("slot").forEach((i) => i.addEventListener("slotchange", () => this.sincronizarDescricao()));
437
+ }
438
+ static get observedAttributes() {
439
+ return [
440
+ "texto",
441
+ "text",
442
+ "posicao",
443
+ "position",
444
+ "gatilho",
445
+ "trigger",
446
+ "aberto",
447
+ "open",
448
+ "disabled",
449
+ ...w
450
+ ];
451
+ }
452
+ connectedCallback() {
453
+ this.ouvintesHost.cleanup(), this.ouvintesHost.add(this, "mouseenter", this.handleMouseEnter), this.ouvintesHost.add(this, "mouseleave", this.handleMouseLeave), this.ouvintesHost.add(this, "focusin", this.handleMouseEnter), this.ouvintesHost.add(this, "focusout", this.handleMouseLeave), this.ouvintesHost.add(this, "click", this.handleClick), this.syncState();
454
+ }
455
+ disconnectedCallback() {
456
+ this.ouvintesHost.cleanup(), this.ouvintesAberto.cleanup(), this.cancelarOcultar(), this.cancelarQuadro(), this.removerDescricao(), this.ocultar();
457
+ }
458
+ attributeChangedCallback(t, i, e) {
459
+ this.syncState();
460
+ }
461
+ get aberto() {
462
+ return this.hasAttribute("aberto") || this.hasAttribute("open");
463
+ }
464
+ set aberto(t) {
465
+ t ? this.setAttribute("aberto", "") : (this.removeAttribute("aberto"), this.removeAttribute("open")), this.syncState();
466
+ }
467
+ get disabled() {
468
+ return this.hasAttribute("disabled");
469
+ }
470
+ set disabled(t) {
471
+ t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled"), this.syncState();
472
+ }
473
+ mostrar() {
474
+ this.disabled || (this.aberto = !0);
475
+ }
476
+ ocultar() {
477
+ this.aberto = !1;
478
+ }
479
+ lerGatilho() {
480
+ return this.getAttribute("gatilho") || this.getAttribute("trigger") || "hover";
481
+ }
482
+ cancelarQuadro() {
483
+ this._quadro !== null && (cancelAnimationFrame(this._quadro), this._quadro = null);
484
+ }
485
+ syncState() {
486
+ var n;
487
+ const t = this.aberto && !this.disabled, i = L(this.getAttribute("posicao") || this.getAttribute("position")), e = this.getAttribute("texto") || this.getAttribute("text") || "", a = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".ui-tooltip__texto");
488
+ this.containerElement.className = `ui-tooltip ui-tooltip--${i}`, v(this, this.bubbleElement), a && (a.textContent = e, a.style.display = e ? "inline" : "none"), this.sincronizarDescricao(), t ? this.abrirBalao() : this.fecharBalao();
489
+ }
490
+ abrirBalao() {
491
+ this.ouvintesAberto.size === 0 && (this.ouvintesAberto.add(document, "click", this.handleClickOutside), this.ouvintesAberto.add(document, "keydown", this.handleEscape, !0), this.ouvintesAberto.add(window, "scroll", this.posicionarBubble, { capture: !0, passive: !0 }), this.ouvintesAberto.add(window, "resize", this.posicionarBubble, { passive: !0 })), J(this.bubbleElement), this.containerElement.classList.add("ui-tooltip--visivel"), this.cancelarQuadro(), this._quadro = requestAnimationFrame(() => {
492
+ this._quadro = null, this.posicionarBubble();
493
+ });
494
+ }
495
+ fecharBalao() {
496
+ this.ouvintesAberto.cleanup(), this.cancelarQuadro(), Z(this.bubbleElement), this.containerElement.classList.remove("ui-tooltip--visivel");
497
+ }
498
+ cancelarOcultar() {
499
+ this._timerOcultar && (clearTimeout(this._timerOcultar), this._timerOcultar = null);
500
+ }
501
+ /**
502
+ * O balão vive no Shadow DOM, fora do alcance de `aria-describedby` do gatilho (light DOM).
503
+ * O texto é exposto como `aria-description` no gatilho, sem sobrescrever uma descrição do consumidor.
504
+ */
505
+ sincronizarDescricao() {
506
+ var a;
507
+ if (!this.isConnected) {
508
+ this.removerDescricao();
509
+ return;
510
+ }
511
+ const t = Array.from(this.children).find((n) => !n.hasAttribute("slot")), i = (this.getAttribute("texto") || this.getAttribute("text") || ((a = this.querySelector('[slot="conteudo"]')) == null ? void 0 : a.textContent) || "").replace(/\s+/g, " ").trim();
512
+ this._gatilhoDescrito && this._gatilhoDescrito !== t && this.removerDescricao(), !(!t || this._gatilhoDescrito !== t && (t.hasAttribute("aria-describedby") || t.hasAttribute("aria-description"))) && (i && !this.disabled ? (t.setAttribute("aria-description", i), this._gatilhoDescrito = t) : this.removerDescricao());
513
+ }
514
+ removerDescricao() {
515
+ var t;
516
+ (t = this._gatilhoDescrito) == null || t.removeAttribute("aria-description"), this._gatilhoDescrito = null;
517
+ }
518
+ }
519
+ class et extends I {
520
+ }
521
+ m("ui-tooltip", I);
522
+ m("ui-popover", et);
523
+ const it = ':host{display:block;box-sizing:border-box}:host([inline]){display:inline-block}.ui-skeleton{background:var(--ui-degrade-interno, var(--ui-skeleton-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1e1e24))));border-radius:var(--ui-raio-borda, 6px);position:relative;overflow:hidden;box-sizing:border-box}.ui-skeleton:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(90deg,#fff0,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 7%,transparent),#fff0);background-size:200% 100%;background-repeat:no-repeat;animation:ui-skeleton-shimmer 1.6s ease-in-out infinite}@keyframes ui-skeleton-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.ui-skeleton--pulso{animation:ui-skeleton-pulse 1.8s ease-in-out infinite}.ui-skeleton--pulso:after{display:none}@keyframes ui-skeleton-pulse{0%,to{opacity:1}50%{opacity:.45}}.ui-skeleton--estatico{animation:none}.ui-skeleton--estatico:after{display:none}.ui-skeleton--texto{height:1.1em;border-radius:var(--ui-raio-sm, 4px)}.ui-skeleton--circular{border-radius:50%!important;aspect-ratio:1;width:var(--ui-skeleton-largura, 40px);height:var(--ui-skeleton-altura, 40px)}.ui-skeleton--retangular{border-radius:var(--ui-raio-borda, 6px);min-height:20px}.ui-skeleton__linhas{display:flex;flex-direction:column;gap:8px;width:100%}.ui-skeleton__linhas .ui-skeleton{width:100%}.ui-skeleton__linhas .ui-skeleton:last-child:not(:first-child){width:65%}.ui-skeleton--card{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--ui-raio-borda, 10px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));background:var(--ui-degrade-interno, var(--ui-skeleton-fundo, var(--ui-fundo-card, var(--ui-cor-fundo-card, #18181c))));animation:none}.ui-skeleton--card:after{display:none}.ui-skeleton__card-media{width:100%;height:120px;border-radius:6px}.ui-skeleton__card-header{display:flex;align-items:center;gap:10px}.ui-skeleton__card-avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0}.ui-skeleton__card-title{width:50%;height:16px}@media (prefers-reduced-motion: reduce){.ui-skeleton{animation:none!important;opacity:.7}.ui-skeleton:after{display:none!important}}:host(.degrade),:host(.ui-degrade),:host(.gradiente),:host(.ui-gradiente),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])){--ui-fundo-elevado: var(--ui-gradiente-elevado);--ui-fundo-card: var(--ui-gradiente-card)}', ot = 100;
524
+ class P extends y {
525
+ constructor() {
526
+ super();
527
+ o(this, "rootElement");
528
+ /** O que este componente escreveu em aria-hidden / role (para não sobrescrever o consumidor). */
529
+ o(this, "_ocultoAuto", !1);
530
+ o(this, "_papelAuto", !1);
531
+ o(this, "_sincronizando", !1);
532
+ const t = this.attachShadow({ mode: "open" });
533
+ t.innerHTML = `
534
+ <style>${it}</style>
535
+ <div class="ui-skeleton-container"></div>
536
+ `, this.rootElement = t.querySelector(".ui-skeleton-container");
537
+ }
538
+ static get observedAttributes() {
539
+ return [
540
+ "variante",
541
+ "variant",
542
+ "largura",
543
+ "width",
544
+ "altura",
545
+ "height",
546
+ "raio",
547
+ "radius",
548
+ "linhas",
549
+ "lines",
550
+ "count",
551
+ "animado",
552
+ "animated",
553
+ "aria-label",
554
+ ...w
555
+ ];
556
+ }
557
+ connectedCallback() {
558
+ this.sincronizarAcessibilidade(), this.syncState();
559
+ }
560
+ attributeChangedCallback(t, i, e) {
561
+ this._sincronizando || (this.sincronizarAcessibilidade(), this.syncState());
562
+ }
563
+ /**
564
+ * Decorativo por padrão (`aria-hidden`). Com `aria-label` vira uma região de status anunciável
565
+ * ("Carregando tabela"). O que o consumidor definiu em aria-hidden/role é preservado.
566
+ */
567
+ sincronizarAcessibilidade() {
568
+ this._sincronizando = !0;
569
+ const t = !!this.getAttribute("aria-label"), i = this.hasAttribute("aria-hidden") && !this._ocultoAuto;
570
+ t ? (this._ocultoAuto && this.removeAttribute("aria-hidden"), this._ocultoAuto = !1, this.hasAttribute("role") || (this.setAttribute("role", "status"), this._papelAuto = !0)) : (this._papelAuto && this.removeAttribute("role"), this._papelAuto = !1, i || (this.setAttribute("aria-hidden", "true"), this._ocultoAuto = !0)), this._sincronizando = !1;
571
+ }
572
+ get variante() {
573
+ const t = (this.getAttribute("variante") || this.getAttribute("variant") || "texto").toLowerCase();
574
+ return t === "circulo" || t === "circular" ? "circular" : t === "retangulo" || t === "retangular" ? "retangular" : t === "card" ? "card" : "texto";
575
+ }
576
+ set variante(t) {
577
+ this.setAttribute("variante", t);
578
+ }
579
+ get animado() {
580
+ const t = (this.getAttribute("animado") || this.getAttribute("animated") || "shimmer").toLowerCase();
581
+ return t === "pulse" || t === "pulso" ? "pulso" : t === "none" || t === "nenhum" || t === "estatico" ? "nenhum" : "shimmer";
582
+ }
583
+ set animado(t) {
584
+ this.setAttribute("animado", t);
585
+ }
586
+ get linhas() {
587
+ const t = parseInt(this.getAttribute("linhas") || this.getAttribute("lines") || this.getAttribute("count") || "1", 10);
588
+ return isNaN(t) || t < 1 ? 1 : Math.min(t, ot);
589
+ }
590
+ set linhas(t) {
591
+ this.setAttribute("linhas", String(t));
592
+ }
593
+ syncState() {
594
+ const t = this.variante, i = this.animado, e = this.getAttribute("largura") || this.getAttribute("width"), a = this.getAttribute("altura") || this.getAttribute("height"), n = this.getAttribute("raio") || this.getAttribute("radius"), l = this.linhas;
595
+ this.rootElement.innerHTML = "";
596
+ const c = i === "pulso" ? "ui-skeleton--pulso" : i === "nenhum" ? "ui-skeleton--estatico" : "";
597
+ if (t === "card") {
598
+ const u = document.createElement("div");
599
+ u.className = "ui-skeleton ui-skeleton--card", u.setAttribute("part", "base");
600
+ const b = document.createElement("div");
601
+ b.className = `ui-skeleton ui-skeleton__card-media ${c}`, b.setAttribute("part", "midia");
602
+ const h = document.createElement("div");
603
+ h.className = "ui-skeleton__card-header";
604
+ const f = document.createElement("div");
605
+ f.className = `ui-skeleton ui-skeleton__card-avatar ${c}`, f.setAttribute("part", "avatar");
606
+ const A = document.createElement("div");
607
+ A.className = `ui-skeleton ui-skeleton__card-title ${c}`, A.setAttribute("part", "titulo"), h.appendChild(f), h.appendChild(A);
608
+ const E = document.createElement("div");
609
+ E.className = "ui-skeleton__linhas";
610
+ for (let T = 0; T < 2; T++) {
611
+ const C = document.createElement("div");
612
+ C.className = `ui-skeleton ui-skeleton--texto ${c}`, C.setAttribute("part", "linha"), E.appendChild(C);
613
+ }
614
+ u.appendChild(b), u.appendChild(h), u.appendChild(E), this.rootElement.appendChild(u), v(this, this.rootElement);
615
+ return;
616
+ }
617
+ if (l > 1 && t === "texto") {
618
+ const u = document.createElement("div");
619
+ u.className = "ui-skeleton__linhas", u.setAttribute("part", "base");
620
+ for (let b = 0; b < l; b++) {
621
+ const h = document.createElement("div");
622
+ h.className = `ui-skeleton ui-skeleton--texto ${c}`, h.setAttribute("part", "linha"), a && (h.style.height = isNaN(Number(a)) ? a : `${a}px`), n && (h.style.borderRadius = isNaN(Number(n)) ? n : `${n}px`), u.appendChild(h);
623
+ }
624
+ e && (u.style.width = isNaN(Number(e)) ? e : `${e}px`), this.rootElement.appendChild(u), v(this, this.rootElement);
625
+ return;
626
+ }
627
+ const d = document.createElement("div");
628
+ d.className = `ui-skeleton ui-skeleton--${t} ${c}`.trim(), d.setAttribute("part", "base"), e && (d.style.width = isNaN(Number(e)) ? e : `${e}px`), a && (d.style.height = isNaN(Number(a)) ? a : `${a}px`), n && (d.style.borderRadius = isNaN(Number(n)) ? n : `${n}px`), this.rootElement.appendChild(d), v(this, this.rootElement);
629
+ }
630
+ }
631
+ class rt extends P {
632
+ }
633
+ m("ui-skeleton", P);
634
+ m("ui-esqueleto", rt);
5
635
  export {
6
- p as ICONES_ALERTA,
7
- m as UIAlerta,
8
- e as UIDialog,
9
- n as UIDrawer,
10
- D as UIEsqueleto,
11
- T as UIGaveta,
12
- s as UIModal,
13
- f as UIPainelLateral,
14
- S as UIPopover,
15
- b as UISheet,
16
- d as UISkeleton,
17
- g as UIToast,
18
- u as UITooltip,
19
- t as aplicarInertForaDoModal,
20
- v as atualizarScrollLockDrawer,
21
- U as confirmarAcao,
22
- i as confirmarDescarteSeSujo,
23
- A as gerenciarTabTrap,
24
- E as isTopMostDrawer,
25
- M as obterElementosFocaveis,
26
- k as registrarToastNoBus,
27
- l as removerInertForaDoModal
636
+ N as ICONES_ALERTA,
637
+ M as UIAlerta,
638
+ ct as UIDialog,
639
+ g as UIDrawer,
640
+ rt as UIEsqueleto,
641
+ X as UIGaveta,
642
+ dt as UIModal,
643
+ Y as UIPainelLateral,
644
+ et as UIPopover,
645
+ j as UISheet,
646
+ P as UISkeleton,
647
+ k as UIToast,
648
+ I as UITooltip,
649
+ ht as aplicarInertForaDoModal,
650
+ U as atualizarScrollLockDrawer,
651
+ pt as confirmarAcao,
652
+ bt as confirmarDescarteSeSujo,
653
+ G as gerenciarTabTrap,
654
+ F as isTopMostDrawer,
655
+ q as obterElementosFocaveis,
656
+ W as registrarToastNoBus,
657
+ mt as removerInertForaDoModal
28
658
  };