@luizleon/sf.prefeiturasp.vuecomponents 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es.js CHANGED
@@ -531,8 +531,8 @@ const Hr = ["disabled", "tabindex"], jr = ["data-color"], Ht = /* @__PURE__ */ N
531
531
  }, We = () => {
532
532
  M.currentInstance.resetValidationMessage();
533
533
  }, ds = () => {
534
- const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select), w = t.querySelector(`.${l.checkbox} input`), L = $e(t, l.textarea);
535
- e.oninput = We, n.onchange = We, c.onchange = We, w.onchange = We, L.oninput = We, o.oninput = () => {
534
+ const t = V(), e = $e(t, l.input), n = $e(t, l.file), o = t.querySelector(`.${l.range} input`), i = t.querySelector(`.${l.range} output`), c = $e(t, l.select), w = t.querySelector(`.${l.checkbox} input`), S = $e(t, l.textarea);
535
+ e.oninput = We, n.onchange = We, c.onchange = We, w.onchange = We, S.oninput = We, o.oninput = () => {
536
536
  We(), i.value = o.value;
537
537
  }, o.onchange = () => {
538
538
  We(), o.nextSibling.value = o.value;
@@ -619,8 +619,8 @@ const Cs = (t, e) => {
619
619
  }, Es = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Ts = (t, e) => {
620
620
  const n = V(), o = D.innerParams.get(t), i = !o || e.input !== o.input;
621
621
  Es.forEach((c) => {
622
- const w = l[c], L = $e(n, w);
623
- Is(c, e.inputAttributes), L.className = w, i && ie(L);
622
+ const w = l[c], S = $e(n, w);
623
+ Is(c, e.inputAttributes), S.className = w, i && ie(S);
624
624
  }), e.input && (i && Ss(e), Ps(e));
625
625
  }, Ss = (t) => {
626
626
  if (!ge[t.input])
@@ -1003,26 +1003,26 @@ const ii = () => {
1003
1003
  });
1004
1004
  }, Ti = {
1005
1005
  select: (t, e, n) => {
1006
- const o = $e(t, l.select), i = (c, w, L) => {
1006
+ const o = $e(t, l.select), i = (c, w, S) => {
1007
1007
  const u = document.createElement("option");
1008
- u.value = L, re(u, w), u.selected = co(L, n.inputValue), c.appendChild(u);
1008
+ u.value = S, re(u, w), u.selected = co(S, n.inputValue), c.appendChild(u);
1009
1009
  };
1010
1010
  e.forEach((c) => {
1011
- const w = c[0], L = c[1];
1012
- if (Array.isArray(L)) {
1011
+ const w = c[0], S = c[1];
1012
+ if (Array.isArray(S)) {
1013
1013
  const u = document.createElement("optgroup");
1014
- u.label = w, u.disabled = !1, o.appendChild(u), L.forEach((F) => i(u, F[1], F[0]));
1014
+ u.label = w, u.disabled = !1, o.appendChild(u), S.forEach((F) => i(u, F[1], F[0]));
1015
1015
  } else
1016
- i(o, L, w);
1016
+ i(o, S, w);
1017
1017
  }), o.focus();
1018
1018
  },
1019
1019
  radio: (t, e, n) => {
1020
1020
  const o = $e(t, l.radio);
1021
1021
  e.forEach((c) => {
1022
- const w = c[0], L = c[1], u = document.createElement("input"), F = document.createElement("label");
1022
+ const w = c[0], S = c[1], u = document.createElement("input"), F = document.createElement("label");
1023
1023
  u.type = "radio", u.name = l.radio, u.value = w, co(w, n.inputValue) && (u.checked = !0);
1024
1024
  const W = document.createElement("span");
1025
- re(W, L), W.className = l.label, F.appendChild(u), F.appendChild(W), o.appendChild(F);
1025
+ re(W, S), W.className = l.label, F.appendChild(u), F.appendChild(W), o.appendChild(F);
1026
1026
  });
1027
1027
  const i = o.querySelectorAll("input");
1028
1028
  i.length && i[0].focus();
@@ -1637,7 +1637,7 @@ const Ka = function() {
1637
1637
  };
1638
1638
  function dr() {
1639
1639
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ka();
1640
- const e = (S) => dr(S);
1640
+ const e = (L) => dr(L);
1641
1641
  if (e.version = "3.0.6", e.removed = [], !t || !t.document || t.document.nodeType !== 9)
1642
1642
  return e.isSupported = !1, e;
1643
1643
  let {
@@ -1646,7 +1646,7 @@ function dr() {
1646
1646
  const o = n, i = o.currentScript, {
1647
1647
  DocumentFragment: c,
1648
1648
  HTMLTemplateElement: w,
1649
- Node: L,
1649
+ Node: S,
1650
1650
  Element: u,
1651
1651
  NodeFilter: F,
1652
1652
  NamedNodeMap: W = t.NamedNodeMap || t.MozNamedAttrMap,
@@ -1655,8 +1655,8 @@ function dr() {
1655
1655
  trustedTypes: z
1656
1656
  } = t, Fe = u.prototype, Je = Dt(Fe, "cloneNode"), ve = Dt(Fe, "nextSibling"), Xe = Dt(Fe, "childNodes"), de = Dt(Fe, "parentNode");
1657
1657
  if (typeof w == "function") {
1658
- const S = n.createElement("template");
1659
- S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
1658
+ const L = n.createElement("template");
1659
+ L.content && L.content.ownerDocument && (n = L.content.ownerDocument);
1660
1660
  }
1661
1661
  let N, ye = "";
1662
1662
  const {
@@ -1825,7 +1825,7 @@ function dr() {
1825
1825
  }, Ar = function(s) {
1826
1826
  return s instanceof Y && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof W) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
1827
1827
  }, Gn = function(s) {
1828
- return typeof L == "function" && s instanceof L;
1828
+ return typeof S == "function" && s instanceof S;
1829
1829
  }, Me = function(s, v, T) {
1830
1830
  k[s] && Ut(k[s], (K) => {
1831
1831
  K.call(e, v, T, tt);
@@ -1938,44 +1938,44 @@ function dr() {
1938
1938
  }
1939
1939
  }
1940
1940
  Me("afterSanitizeAttributes", s, null);
1941
- }, _r = function S(s) {
1941
+ }, _r = function L(s) {
1942
1942
  let v = null;
1943
1943
  const T = Kn(s);
1944
1944
  for (Me("beforeSanitizeShadowDOM", s, null); v = T.nextNode(); )
1945
- Me("uponSanitizeShadowNode", v, null), !Yn(v) && (v.content instanceof c && S(v.content), Zn(v));
1945
+ Me("uponSanitizeShadowNode", v, null), !Yn(v) && (v.content instanceof c && L(v.content), Zn(v));
1946
1946
  Me("afterSanitizeShadowDOM", s, null);
1947
1947
  };
1948
- return e.sanitize = function(S) {
1948
+ return e.sanitize = function(L) {
1949
1949
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, T = null, K = null, ne = null;
1950
- if (en = !S, en && (S = "<!-->"), typeof S != "string" && !Gn(S))
1951
- if (typeof S.toString == "function") {
1952
- if (S = S.toString(), typeof S != "string")
1950
+ if (en = !L, en && (L = "<!-->"), typeof L != "string" && !Gn(L))
1951
+ if (typeof L.toString == "function") {
1952
+ if (L = L.toString(), typeof L != "string")
1953
1953
  throw yt("dirty is not a string, aborting");
1954
1954
  } else
1955
1955
  throw yt("toString is not a function");
1956
1956
  if (!e.isSupported)
1957
- return S;
1958
- if ($ || nn(s), e.removed = [], typeof S == "string" && (mt = !1), mt) {
1959
- if (S.nodeName) {
1960
- const Ve = Q(S.nodeName);
1957
+ return L;
1958
+ if ($ || nn(s), e.removed = [], typeof L == "string" && (mt = !1), mt) {
1959
+ if (L.nodeName) {
1960
+ const Ve = Q(L.nodeName);
1961
1961
  if (!P[Ve] || g[Ve])
1962
1962
  throw yt("root node is forbidden and cannot be sanitized in-place");
1963
1963
  }
1964
- } else if (S instanceof L)
1965
- v = qn("<!---->"), T = v.ownerDocument.importNode(S, !0), T.nodeType === 1 && T.nodeName === "BODY" || T.nodeName === "HTML" ? v = T : v.appendChild(T);
1964
+ } else if (L instanceof S)
1965
+ v = qn("<!---->"), T = v.ownerDocument.importNode(L, !0), T.nodeType === 1 && T.nodeName === "BODY" || T.nodeName === "HTML" ? v = T : v.appendChild(T);
1966
1966
  else {
1967
1967
  if (!le && !C && !R && // eslint-disable-next-line unicorn/prefer-includes
1968
- S.indexOf("<") === -1)
1969
- return N && Pe ? N.createHTML(S) : S;
1970
- if (v = qn(S), !v)
1968
+ L.indexOf("<") === -1)
1969
+ return N && Pe ? N.createHTML(L) : L;
1970
+ if (v = qn(L), !v)
1971
1971
  return le ? null : Pe ? ye : "";
1972
1972
  }
1973
1973
  v && he && ze(v.firstChild);
1974
- const oe = Kn(mt ? S : v);
1974
+ const oe = Kn(mt ? L : v);
1975
1975
  for (; K = oe.nextNode(); )
1976
1976
  Yn(K) || (K.content instanceof c && _r(K.content), Zn(K));
1977
1977
  if (mt)
1978
- return S;
1978
+ return L;
1979
1979
  if (le) {
1980
1980
  if (ee)
1981
1981
  for (ne = A.call(v.ownerDocument); v.firstChild; )
@@ -1990,21 +1990,21 @@ function dr() {
1990
1990
  pe = vt(pe, Ve, " ");
1991
1991
  }), N && Pe ? N.createHTML(pe) : pe;
1992
1992
  }, e.setConfig = function() {
1993
- let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1994
- nn(S), $ = !0;
1993
+ let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1994
+ nn(L), $ = !0;
1995
1995
  }, e.clearConfig = function() {
1996
1996
  tt = null, $ = !1;
1997
- }, e.isValidAttribute = function(S, s, v) {
1997
+ }, e.isValidAttribute = function(L, s, v) {
1998
1998
  tt || nn({});
1999
- const T = Q(S), K = Q(s);
1999
+ const T = Q(L), K = Q(s);
2000
2000
  return Jn(T, K, v);
2001
- }, e.addHook = function(S, s) {
2002
- typeof s == "function" && (k[S] = k[S] || [], bt(k[S], s));
2003
- }, e.removeHook = function(S) {
2004
- if (k[S])
2005
- return go(k[S]);
2006
- }, e.removeHooks = function(S) {
2007
- k[S] && (k[S] = []);
2001
+ }, e.addHook = function(L, s) {
2002
+ typeof s == "function" && (k[L] = k[L] || [], bt(k[L], s));
2003
+ }, e.removeHook = function(L) {
2004
+ if (k[L])
2005
+ return go(k[L]);
2006
+ }, e.removeHooks = function(L) {
2007
+ k[L] && (k[L] = []);
2008
2008
  }, e.removeAllHooks = function() {
2009
2009
  k = {};
2010
2010
  }, e;
@@ -2065,7 +2065,7 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
2065
2065
  const W = u.split(" ").filter((ae) => ae.length > 0).map((ae) => ae[0].toUpperCase()), Y = Math.min(2, W.length);
2066
2066
  return F = W.slice(0, Y).join(""), F.length > 0 ? F : "?";
2067
2067
  }
2068
- const L = Sr(() => {
2068
+ const S = Sr(() => {
2069
2069
  const u = o.value[0], F = u === "?" ? 0 : (u.charCodeAt(0) - 64) % 19;
2070
2070
  return Math.max(F, 0);
2071
2071
  });
@@ -2073,7 +2073,7 @@ const Ja = new Ya(), Xa = () => Ja, Za = ["data-cor"], Qa = /* @__PURE__ */ Ne({
2073
2073
  o.value = w();
2074
2074
  }), (u, F) => (X(), Ae("div", {
2075
2075
  id: "sf-header-avatar",
2076
- "data-cor": L.value,
2076
+ "data-cor": S.value,
2077
2077
  onClick: c
2078
2078
  }, Vt(o.value), 9, Za));
2079
2079
  }
@@ -2127,7 +2127,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2127
2127
  (...o) => qe(An).Toggle && qe(An).Toggle(...o))
2128
2128
  }, cc));
2129
2129
  }
2130
- }), uc = { id: "sf-layout" }, dc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), fc = { class: "title" }, hc = { class: "sf-layout-nav-header" }, pc = /* @__PURE__ */ j("span", null, "Menu", -1), mc = { class: "sf-layout-nav-content" }, gc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), bc = { id: "sf-layout-content" }, Jc = /* @__PURE__ */ Ne({
2130
+ }), uc = { id: "sf-layout" }, dc = /* @__PURE__ */ j("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), fc = { class: "title" }, hc = { class: "sf-layout-nav-header" }, pc = /* @__PURE__ */ j("span", null, "Menu", -1), mc = { class: "sf-layout-nav-content" }, gc = /* @__PURE__ */ j("section", { id: "sf-layout-page-title" }, null, -1), bc = { id: "sf-layout-content" }, Xc = /* @__PURE__ */ Ne({
2131
2131
  __name: "Layout",
2132
2132
  emits: ["mounted", "logout"],
2133
2133
  setup(t, { emit: e }) {
@@ -2144,7 +2144,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2144
2144
  "sf-layout-menu-toggler",
2145
2145
  { invert: qe(n).IsVisible }
2146
2146
  ]),
2147
- onClick: w[0] || (w[0] = (L) => qe(n).Toggle())
2147
+ onClick: w[0] || (w[0] = (S) => qe(n).Toggle())
2148
2148
  }, [
2149
2149
  dc,
2150
2150
  wt(sc)
@@ -2164,7 +2164,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2164
2164
  wt(Ht, {
2165
2165
  icone: "close",
2166
2166
  button: "",
2167
- onClick: w[1] || (w[1] = (L) => qe(n).Close())
2167
+ onClick: w[1] || (w[1] = (S) => qe(n).Close())
2168
2168
  })
2169
2169
  ]),
2170
2170
  j("div", mc, [
@@ -2181,7 +2181,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2181
2181
  ], 2)
2182
2182
  ]));
2183
2183
  }
2184
- }), vc = ["href", "data-active", "onClick"], yc = { class: "sf-navmenulink-text" }, Xc = /* @__PURE__ */ Ne({
2184
+ }), vc = ["href", "data-active", "onClick"], yc = { class: "sf-navmenulink-text" }, Zc = /* @__PURE__ */ Ne({
2185
2185
  __name: "NavMenuLink",
2186
2186
  props: {
2187
2187
  href: {},
@@ -2193,8 +2193,8 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2193
2193
  const e = t, n = To();
2194
2194
  function o(i, c) {
2195
2195
  i.preventDefault();
2196
- const L = i.target.closest(".sf-layout-nav-content");
2197
- c(), L && L.clientWidth + 10 > document.body.clientWidth && n.Close();
2196
+ const S = i.target.closest(".sf-layout-nav-content");
2197
+ c(), S && S.clientWidth + 10 > document.body.clientWidth && n.Close();
2198
2198
  }
2199
2199
  return (i, c) => {
2200
2200
  const w = Co("router-link");
@@ -2202,10 +2202,10 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2202
2202
  to: e.href,
2203
2203
  custom: ""
2204
2204
  }, {
2205
- default: Eo(({ href: L, navigate: u, isExactActive: F, isActive: W }) => [
2205
+ default: Eo(({ href: S, navigate: u, isExactActive: F, isActive: W }) => [
2206
2206
  j("a", {
2207
2207
  class: "sf-navmenulink",
2208
- href: L,
2208
+ href: S,
2209
2209
  "data-active": e.exact ? F : W,
2210
2210
  onClick: (Y) => o(Y, u)
2211
2211
  }, [
@@ -2240,7 +2240,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2240
2240
  onClick: i
2241
2241
  }, null, 2));
2242
2242
  }
2243
- }), Zc = /* @__PURE__ */ Ne({
2243
+ }), Qc = /* @__PURE__ */ Ne({
2244
2244
  __name: "Content",
2245
2245
  props: {
2246
2246
  class: {},
@@ -2263,7 +2263,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2263
2263
  function c() {
2264
2264
  return new st("sf-content-footer").AddClass("sf-content-no-padding", e.disableFooterPadding).Build();
2265
2265
  }
2266
- return (w, L) => (X(), Ae("div", {
2266
+ return (w, S) => (X(), Ae("div", {
2267
2267
  class: ke(n()),
2268
2268
  style: _n(e.style)
2269
2269
  }, [
@@ -2315,31 +2315,31 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2315
2315
  })
2316
2316
  ], -1), Tc = [
2317
2317
  Ec
2318
- ], Qc = /* @__PURE__ */ Ne({
2318
+ ], el = /* @__PURE__ */ Ne({
2319
2319
  __name: "TabNavigation",
2320
2320
  props: {
2321
2321
  tabs: {}
2322
2322
  },
2323
2323
  setup(t) {
2324
2324
  const e = t, n = it(null), o = new ResizeObserver((u) => {
2325
- L();
2325
+ S();
2326
2326
  }), i = it(!1), c = it(!1);
2327
2327
  function w(u = !1) {
2328
2328
  const F = n.value.clientWidth;
2329
2329
  n.value.scrollLeft += u ? -F : F;
2330
2330
  }
2331
- function L() {
2331
+ function S() {
2332
2332
  const u = n.value.scrollWidth - n.value.clientWidth;
2333
2333
  i.value = n.value.scrollLeft > 10, c.value = n.value.scrollLeft < u - 10;
2334
2334
  }
2335
2335
  return Wt(() => {
2336
- n.value.addEventListener("scroll", L), o.observe(n.value);
2336
+ n.value.addEventListener("scroll", S), o.observe(n.value);
2337
2337
  }), Ir(() => {
2338
2338
  var u;
2339
2339
  try {
2340
2340
  (u = n.value) == null || u.removeEventListener(
2341
2341
  "scroll",
2342
- L
2342
+ S
2343
2343
  ), o.unobserve(n.value), o.disconnect();
2344
2344
  } catch {
2345
2345
  }
@@ -2383,7 +2383,7 @@ const An = (() => new ic())(), ac = /* @__PURE__ */ Lr('<svg xmlns="http://www.w
2383
2383
  ]);
2384
2384
  };
2385
2385
  }
2386
- }), Sc = ["id", "name", "disabled", "data-color", "form", "type"], Lc = { class: "sf-button-label" }, el = /* @__PURE__ */ Ne({
2386
+ }), Sc = ["id", "name", "disabled", "data-color", "form", "type"], Lc = { class: "sf-button-label" }, tl = /* @__PURE__ */ Ne({
2387
2387
  __name: "Button",
2388
2388
  props: {
2389
2389
  icon: {},
@@ -2486,8 +2486,8 @@ function Mc(t, e, n) {
2486
2486
  return (e + n) * 3 / 4 - n;
2487
2487
  }
2488
2488
  function Uc(t) {
2489
- var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), w = 0, L = i > 0 ? o - 4 : o, u;
2490
- for (u = 0; u < L; u += 4)
2489
+ var e, n = fr(t), o = n[0], i = n[1], c = new Oc(Mc(t, o, i)), w = 0, S = i > 0 ? o - 4 : o, u;
2490
+ for (u = 0; u < S; u += 4)
2491
2491
  e = Ce[t.charCodeAt(u)] << 18 | Ce[t.charCodeAt(u + 1)] << 12 | Ce[t.charCodeAt(u + 2)] << 6 | Ce[t.charCodeAt(u + 3)], c[w++] = e >> 16 & 255, c[w++] = e >> 8 & 255, c[w++] = e & 255;
2492
2492
  return i === 2 && (e = Ce[t.charCodeAt(u)] << 2 | Ce[t.charCodeAt(u + 1)] >> 4, c[w++] = e & 255), i === 1 && (e = Ce[t.charCodeAt(u)] << 10 | Ce[t.charCodeAt(u + 1)] << 4 | Ce[t.charCodeAt(u + 2)] >> 2, c[w++] = e >> 8 & 255, c[w++] = e & 255), c;
2493
2493
  }
@@ -2500,8 +2500,8 @@ function Nc(t, e, n) {
2500
2500
  return i.join("");
2501
2501
  }
2502
2502
  function $c(t) {
2503
- for (var e, n = t.length, o = n % 3, i = [], c = 16383, w = 0, L = n - o; w < L; w += c)
2504
- i.push(Nc(t, w, w + c > L ? L : w + c));
2503
+ for (var e, n = t.length, o = n % 3, i = [], c = 16383, w = 0, S = n - o; w < S; w += c)
2504
+ i.push(Nc(t, w, w + c > S ? S : w + c));
2505
2505
  return o === 1 ? (e = t[n - 1], i.push(
2506
2506
  Re[e >> 2] + Re[e << 4 & 63] + "=="
2507
2507
  )) : o === 2 && (e = (t[n - 2] << 8) + t[n - 1], i.push(
@@ -2527,7 +2527,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2527
2527
  o.JS_SHA256_NO_WINDOW && (n = !1);
2528
2528
  var i = !n && typeof self == "object", c = !o.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
2529
2529
  c ? o = Ic : i && (o = self);
2530
- var w = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, L = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", u = "0123456789abcdef".split(""), F = [-2147483648, 8388608, 32768, 128], W = [24, 16, 8, 0], Y = [
2530
+ var w = !o.JS_SHA256_NO_COMMON_JS && !0 && t.exports, S = !o.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", u = "0123456789abcdef".split(""), F = [-2147483648, 8388608, 32768, 128], W = [24, 16, 8, 0], Y = [
2531
2531
  1116352408,
2532
2532
  1899447441,
2533
2533
  3049323471,
@@ -2595,7 +2595,7 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2595
2595
  ], ae = ["hex", "array", "digest", "arrayBuffer"], z = [];
2596
2596
  (o.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(f) {
2597
2597
  return Object.prototype.toString.call(f) === "[object Array]";
2598
- }), L && (o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(f) {
2598
+ }), S && (o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(f) {
2599
2599
  return typeof f == "object" && f.buffer && f.buffer.constructor === ArrayBuffer;
2600
2600
  });
2601
2601
  var Fe = function(f, A) {
@@ -2654,9 +2654,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2654
2654
  if (I === "object") {
2655
2655
  if (f === null)
2656
2656
  throw new Error(e);
2657
- if (L && f.constructor === ArrayBuffer)
2657
+ if (S && f.constructor === ArrayBuffer)
2658
2658
  f = new Uint8Array(f);
2659
- else if (!Array.isArray(f) && (!L || !ArrayBuffer.isView(f)))
2659
+ else if (!Array.isArray(f) && (!S || !ArrayBuffer.isView(f)))
2660
2660
  throw new Error(e);
2661
2661
  } else
2662
2662
  throw new Error(e);
@@ -2738,9 +2738,9 @@ const Hc = {}, jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2738
2738
  } else if (k === "object") {
2739
2739
  if (f === null)
2740
2740
  throw new Error(e);
2741
- if (L && f.constructor === ArrayBuffer)
2741
+ if (S && f.constructor === ArrayBuffer)
2742
2742
  f = new Uint8Array(f);
2743
- else if (!Array.isArray(f) && (!L || !ArrayBuffer.isView(f)))
2743
+ else if (!Array.isArray(f) && (!S || !ArrayBuffer.isView(f)))
2744
2744
  throw new Error(e);
2745
2745
  } else
2746
2746
  throw new Error(e);
@@ -2822,8 +2822,8 @@ function pr(t) {
2822
2822
  enable: !0,
2823
2823
  callbackList: [],
2824
2824
  interval: 5
2825
- }, w = document.getElementsByTagName("script"), L = 0; L < w.length; L++)
2826
- (w[L].src.indexOf("keycloak.js") !== -1 || w[L].src.indexOf("keycloak.min.js") !== -1) && w[L].src.indexOf("version=") !== -1 && (e.iframeVersion = w[L].src.substring(w[L].src.indexOf("version=") + 8).split("&")[0]);
2825
+ }, w = document.getElementsByTagName("script"), S = 0; S < w.length; S++)
2826
+ (w[S].src.indexOf("keycloak.js") !== -1 || w[S].src.indexOf("keycloak.min.js") !== -1) && w[S].src.indexOf("version=") !== -1 && (e.iframeVersion = w[S].src.substring(w[S].src.indexOf("version=") + 8).split("&")[0]);
2827
2827
  var u = !0, F = fe(console.info), W = fe(console.warn);
2828
2828
  e.init = function(r) {
2829
2829
  if (e.didInitialize)
@@ -3573,22 +3573,29 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
3573
3573
  };
3574
3574
  }
3575
3575
  }
3576
- function Kc(t) {
3577
- const e = new pr(t), n = {}, o = (w, L, u) => {
3578
- e.init(w).then(async (F) => {
3579
- F && await i(), L();
3580
- }).catch((F) => {
3581
- u(F);
3582
- });
3576
+ async function Kc() {
3577
+ const t = "silent-login.html", e = await fetch(location.origin + "/" + t).then(async (n) => n.status !== 200 ? !1 : (await n.text()).includes("silent-login-iframe-result")).catch(() => !1);
3578
+ return e || (console.warn(
3579
+ `Arquivo ${t} não localizado no projeto ou não possui o conteúdo correto!`
3580
+ ), document.body.innerHTML = `<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">O arquivo '${t}' não foi encontrado.</div>`), e;
3581
+ }
3582
+ function Gc(t) {
3583
+ const e = new pr(t), n = {}, o = async (w = {}, S) => {
3584
+ if (await Kc())
3585
+ return e.init(w).then(async (F) => {
3586
+ F && await i(), S && typeof S == "function" && S();
3587
+ }).catch((F) => {
3588
+ console.error(F), document.body.innerHTML = '<div style="padding: 3rem; display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; font-size: 1.5rem;">Não foi possível conectar no servidor de autenticação.</div>';
3589
+ });
3583
3590
  }, i = async () => {
3584
3591
  const w = await e.loadUserInfo();
3585
- n.email = w.email ?? "", n.emailVerified = w.email_verified === !0, n.firstName = w.given_name ?? "", n.lastName = w.family_name ?? "", n.name = w.name ?? "", n.sub = w.sub ?? "", n.username = w.preferred_username ?? "", n.roles = [...w.role ?? []], n.groups = [...w.group ?? []], n.IsInRole = (L) => n.roles.includes(L), sessionStorage.setItem("name", n.name);
3592
+ n.email = w.email ?? "", n.emailVerified = w.email_verified === !0, n.firstName = w.given_name ?? "", n.lastName = w.family_name ?? "", n.name = w.name ?? "", n.sub = w.sub ?? "", n.username = w.preferred_username ?? "", n.roles = [...w.role ?? []], n.groups = [...w.group ?? []], n.IsInRole = (S) => n.roles.includes(S), sessionStorage.setItem("name", n.name);
3586
3593
  };
3587
3594
  return {
3588
3595
  Instance: e,
3589
3596
  User: n,
3590
- CallLogin: o,
3591
- CallLogout: () => {
3597
+ Init: o,
3598
+ Logout: () => {
3592
3599
  e.logout({
3593
3600
  redirectUri: location.origin
3594
3601
  }).then(() => {
@@ -3597,8 +3604,8 @@ function Kc(t) {
3597
3604
  }
3598
3605
  };
3599
3606
  }
3600
- const tl = (t) => Kc(t);
3601
- class nl {
3607
+ const nl = (t) => Gc(t);
3608
+ class ol {
3602
3609
  constructor(e = null) {
3603
3610
  nt(this, "errors", []);
3604
3611
  nt(this, "_value", null);
@@ -3648,16 +3655,16 @@ class nl {
3648
3655
  })();
3649
3656
  An.SetInitialTheme();
3650
3657
  export {
3651
- nl as AppResult,
3658
+ ol as AppResult,
3652
3659
  So as Cor,
3653
- el as SfButton,
3654
- Zc as SfContent,
3660
+ tl as SfButton,
3661
+ Qc as SfContent,
3655
3662
  Ht as SfIcon,
3656
- Jc as SfLayout,
3657
- Xc as SfNavMenuLink,
3658
- Qc as SfTabNavigation,
3663
+ Xc as SfLayout,
3664
+ Zc as SfNavMenuLink,
3665
+ el as SfTabNavigation,
3659
3666
  kt as Tamanho,
3660
- tl as UseAuthService,
3667
+ nl as UseAuthService,
3661
3668
  Xa as UseDialogService,
3662
3669
  To as UseNavMenuService
3663
3670
  };