@luizleon/sf.prefeiturasp.vuecomponents 6.0.32 → 6.0.34

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.
@@ -210,7 +210,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
210
210
  _: 1
211
211
  }, 8, ["text", "class"]));
212
212
  }
213
- }), Xe = /* @__PURE__ */ Je(Rs, [["__scopeId", "data-v-75c3c2ce"]]), Ns = { class: "sf-tab-navigation" }, js = ["data-active"], Hs = ["href", "onClick"], Mp = /* @__PURE__ */ ie({
213
+ }), Xe = /* @__PURE__ */ Je(Rs, [["__scopeId", "data-v-75c3c2ce"]]), Ns = { class: "sf-tab-navigation" }, js = ["data-active"], Hs = ["href", "onClick"], Dp = /* @__PURE__ */ ie({
214
214
  __name: "TabNavigation",
215
215
  props: {
216
216
  tabs: {}
@@ -516,7 +516,7 @@ const Wa = /* @__PURE__ */ Je($s, [["render", Os]]), Bs = ["data-size"], Ms = ["
516
516
  ], 6)) : F("", !0)
517
517
  ]));
518
518
  }
519
- }), qs = ["data-icon"], Dp = /* @__PURE__ */ ie({
519
+ }), qs = ["data-icon"], Rp = /* @__PURE__ */ ie({
520
520
  __name: "Message",
521
521
  props: {
522
522
  color: { default: "info" },
@@ -3893,7 +3893,7 @@ const qc = { class: "panel-menu-wrapper select-none" }, Yc = ["data-active", "on
3893
3893
  ]);
3894
3894
  };
3895
3895
  }
3896
- }), Rp = /* @__PURE__ */ Je(ou, [["__scopeId", "data-v-c92c6de2"]]);
3896
+ }), Np = /* @__PURE__ */ Je(ou, [["__scopeId", "data-v-c92c6de2"]]);
3897
3897
  function Or(t) {
3898
3898
  let e = t instanceof HTMLElement ? t : null;
3899
3899
  for (; e && e.getBoundingClientRect; ) {
@@ -4026,7 +4026,7 @@ const ci = /* @__PURE__ */ ie({
4026
4026
  G(n.$slots, "default", {}, void 0, !0)
4027
4027
  ], 2));
4028
4028
  }
4029
- }), Np = /* @__PURE__ */ Je(iu, [["__scopeId", "data-v-32e5acfa"]]), ui = Symbol();
4029
+ }), jp = /* @__PURE__ */ Je(iu, [["__scopeId", "data-v-32e5acfa"]]), ui = Symbol();
4030
4030
  function su() {
4031
4031
  return Cs(ui);
4032
4032
  }
@@ -4097,7 +4097,7 @@ const Zt = () => su(), lu = { class: "body" }, cu = { class: "my-3 name" }, uu =
4097
4097
  ], 512)
4098
4098
  ]));
4099
4099
  }
4100
- }), jp = /* @__PURE__ */ Je(mu, [["__scopeId", "data-v-ff672b03"]]);
4100
+ }), Hp = /* @__PURE__ */ Je(mu, [["__scopeId", "data-v-ff672b03"]]);
4101
4101
  class st {
4102
4102
  /**
4103
4103
  * https://www.w3.org/TR/mediaqueries-4/#valdef-media-pointer-coarse
@@ -4482,341 +4482,8 @@ const fu = { key: 0 }, pu = { class: "logout" }, hu = { class: "email" }, gu = {
4482
4482
  onClick: r
4483
4483
  }, null, 2));
4484
4484
  }
4485
- }), Fu = {
4486
- key: 0,
4487
- class: "mb-3"
4488
- }, zu = { class: "flex align-items-center flex-wrap gap-3" }, Uu = ["innerHTML"], Vu = { class: "flex flex-grow-1 gap-2 justify-content-end" }, Wu = /* @__PURE__ */ ie({
4489
- __name: "ConfirmPopover",
4490
- emits: ["onOpen"],
4491
- setup(t, { emit: e }) {
4492
- const n = R(), r = () => {
4493
- a?.detail.resolve(!0), a = null, n.value?.Hide();
4494
- }, o = () => {
4495
- a?.detail.resolve(!1), a = null, n.value?.Hide();
4496
- };
4497
- let a = null;
4498
- document.addEventListener("sfconfirm:popup", (i) => {
4499
- a = i, n.value?.Show(i);
4500
- });
4501
- const l = () => {
4502
- a?.detail.resolve(!1);
4503
- }, s = e;
4504
- return (i, c) => (_(), ne(ci, {
4505
- ref_key: "popover",
4506
- ref: n,
4507
- onOnShow: c[0] || (c[0] = (u) => s("onOpen")),
4508
- onOnHide: l
4509
- }, {
4510
- default: le(() => [
4511
- G(i.$slots, "content", Ct(_t({ resolve: r, reject: o })), () => [
4512
- $(a)?.detail.options?.title ? (_(), x("div", Fu, [
4513
- b("b", null, K($(a)?.detail.options.title), 1)
4514
- ])) : F("", !0),
4515
- b("div", zu, [
4516
- b("div", {
4517
- innerHTML: $(a)?.detail.options?.text
4518
- }, null, 8, Uu),
4519
- b("div", Vu, [
4520
- q($(kn), {
4521
- name: "botao-confirmar",
4522
- size: "sm",
4523
- color: $(a)?.detail.options?.confirmColor,
4524
- onClick: r
4525
- }, {
4526
- default: le(() => [
4527
- Ye(K($(a)?.detail.options?.confirmLabel), 1)
4528
- ]),
4529
- _: 1
4530
- }, 8, ["color"]),
4531
- q($(kn), {
4532
- size: "sm",
4533
- name: "botao-cancelar",
4534
- color: $(a)?.detail.options?.rejectColor,
4535
- onClick: o
4536
- }, {
4537
- default: le(() => [
4538
- Ye(K($(a)?.detail.options?.rejectLabel), 1)
4539
- ]),
4540
- _: 1
4541
- }, 8, ["color"])
4542
- ])
4543
- ])
4544
- ])
4545
- ]),
4546
- _: 3
4547
- }, 512));
4548
- }
4549
- }), Ku = /* @__PURE__ */ ie({
4550
- __name: "LoginLogout",
4551
- emits: ["login"],
4552
- setup(t, { emit: e }) {
4553
- const n = Wt(), { LogoutAsync: r } = Zt(), o = e;
4554
- return (a, l) => $(n).isAuthenticated ? (_(), ne(Xe, {
4555
- key: 0,
4556
- button: !0,
4557
- size: "sm",
4558
- icon: "logout",
4559
- tooltip: "Sair",
4560
- onClick: $(r)
4561
- }, null, 8, ["onClick"])) : (_(), ne(Xe, {
4562
- key: 1,
4563
- button: !0,
4564
- size: "sm",
4565
- icon: "login",
4566
- tooltip: "Entrar",
4567
- onClick: l[0] || (l[0] = (s) => o("login"))
4568
- }));
4569
- }
4570
- }), Gu = { class: "nav-menu-header" }, qu = { class: "nav-menu-inner-close" }, Yu = { class: "main-content" }, Xu = { class: "page-title" }, Zu = { class: "action" }, Ju = { id: "content" }, Qu = {
4571
- key: 0,
4572
- id: "logging-out"
4573
- }, ed = { class: "info-fazenda" }, td = { class: "font-bold" }, nd = { class: "info-endereco text-muted" }, rd = { class: "footer-right" }, od = /* @__PURE__ */ ie({
4574
- __name: "Main",
4575
- props: {
4576
- auth: {},
4577
- public: { type: Boolean }
4578
- },
4579
- emits: ["login"],
4580
- setup(t, { emit: e }) {
4581
- const n = t, {
4582
- navMenuWidth: r,
4583
- isMenuOpened: o,
4584
- pageTitle: a,
4585
- scrollY: l,
4586
- ToggleMenu: s,
4587
- isDarkMode: i,
4588
- ToggleTheme: c,
4589
- CloseMenu: u,
4590
- isLoggingOut: m,
4591
- mainRef: f,
4592
- mainWidth: p
4593
- } = Zt(), w = R(null), g = () => {
4594
- if (!w.value || !o.value) return !1;
4595
- w.value.offsetWidth !== r && u();
4596
- };
4597
- $t(() => {
4598
- if (Es().afterEach(() => {
4599
- g();
4600
- }), f.value) {
4601
- let S = null;
4602
- As(f, (L) => {
4603
- io(() => {
4604
- S && clearTimeout(S), S = setTimeout(() => {
4605
- p.value = L[0].contentRect.width;
4606
- }, 10);
4607
- }), p.value = L[0].contentRect.width;
4608
- }), p.value = f.value.clientWidth;
4609
- }
4610
- });
4611
- const y = e;
4612
- return (v, S) => (_(), x("main", {
4613
- ref_key: "mainRef",
4614
- ref: f,
4615
- class: j({
4616
- disabled: $(m),
4617
- "nav-menu-visible": $(o)
4618
- })
4619
- }, [
4620
- b("aside", {
4621
- id: "nav-menu",
4622
- ref_key: "navMenuRef",
4623
- ref: w,
4624
- class: j({ "nav-menu-hidden": !$(o) })
4625
- }, [
4626
- b("div", Gu, [
4627
- S[1] || (S[1] = b("span", null, "Menu", -1)),
4628
- b("div", qu, [
4629
- q(Xe, {
4630
- button: !0,
4631
- icon: "close",
4632
- onClick: $(s)
4633
- }, null, 8, ["onClick"])
4634
- ])
4635
- ]),
4636
- G(v.$slots, "nav-menu", {}, void 0, !0)
4637
- ], 2),
4638
- b("div", Yu, [
4639
- b("div", {
4640
- id: "top-bar",
4641
- class: j({ "shadow-bottom": $(l) > 72 })
4642
- }, [
4643
- q(Xe, {
4644
- button: !0,
4645
- icon: $(o) ? "menu_open" : "menu",
4646
- tooltip: "Menu",
4647
- onClick: $(s)
4648
- }, null, 8, ["icon", "onClick"]),
4649
- b("div", Xu, K($(m) ? "Saindo..." : $(a)), 1),
4650
- S[2] || (S[2] = b("span", { class: "sep" }, null, -1)),
4651
- b("div", Zu, [
4652
- q(Xe, {
4653
- button: !0,
4654
- size: "sm",
4655
- icon: $(i) ? "light_mode" : "dark_mode",
4656
- tooltip: $(i) ? "Modo claro" : "Modo escuro",
4657
- onClick: $(c)
4658
- }, null, 8, ["icon", "tooltip", "onClick"]),
4659
- q(ju),
4660
- G(v.$slots, "top-bar-account", {}, () => [
4661
- q(Mu)
4662
- ], !0),
4663
- n.public ? F("", !0) : (_(), ne(Ku, {
4664
- key: 0,
4665
- onLogin: S[0] || (S[0] = (L) => y("login"))
4666
- }))
4667
- ])
4668
- ], 2),
4669
- b("div", Ju, [
4670
- $(m) ? (_(), x("div", Qu, [
4671
- q(Wa)
4672
- ])) : G(v.$slots, "content", { key: 1 }, void 0, !0)
4673
- ])
4674
- ]),
4675
- b("footer", null, [
4676
- G(v.$slots, "footer", {}, () => [
4677
- S[5] || (S[5] = b("div", { class: "logo-fazenda" }, null, -1)),
4678
- b("div", ed, [
4679
- b("span", td, [
4680
- G(v.$slots, "footer-nome-fazenda", {}, () => [
4681
- S[3] || (S[3] = Ye(" SECRETARIA MUNICIPAL DA FAZENDA ", -1))
4682
- ], !0)
4683
- ]),
4684
- b("span", nd, [
4685
- G(v.$slots, "footer-endereco-fazenda", {}, () => [
4686
- S[4] || (S[4] = Ye(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ", -1))
4687
- ], !0)
4688
- ])
4689
- ]),
4690
- b("div", rd, [
4691
- G(v.$slots, "footer-right", {}, void 0, !0)
4692
- ])
4693
- ], !0)
4694
- ]),
4695
- q(Hu),
4696
- q(Wu)
4697
- ], 2));
4698
- }
4699
- }), Hp = /* @__PURE__ */ Je(od, [["__scopeId", "data-v-82561d28"]]), Fp = /* @__PURE__ */ ie({
4700
- __name: "PageTitle",
4701
- props: {
4702
- title: {}
4703
- },
4704
- setup(t) {
4705
- const { pageTitle: e } = Zt(), n = t;
4706
- return Ss(() => {
4707
- document.title = n.title, e.value = n.title;
4708
- }), (r, o) => null;
4709
- }
4710
- }), ad = { class: "sf-tabs" }, id = ["onClick", "onKeydown"], sd = ["id", "aria-selected", "tabindex", "aria-controls", "disabled"], ld = ["id", "aria-labelledby", "aria-hidden"], zp = /* @__PURE__ */ ie({
4711
- __name: "Tabs",
4712
- props: /* @__PURE__ */ Ts({
4713
- tabs: {},
4714
- dense: { type: Boolean }
4715
- }, {
4716
- activeTab: {
4717
- default: 0
4718
- },
4719
- activeTabModifiers: {}
4720
- }),
4721
- emits: ["update:activeTab"],
4722
- setup(t) {
4723
- const e = t, n = xs(t, "activeTab");
4724
- let r = n.value;
4725
- qt(
4726
- () => n.value,
4727
- (f) => {
4728
- f !== r && l(f);
4729
- }
4730
- );
4731
- const o = Z(() => e.tabs.length - 1);
4732
- let a = null;
4733
- const l = (f) => {
4734
- e.tabs[f].disabled || (a && clearTimeout(a), a = window.setTimeout(() => {
4735
- a = null, r = f, n.value = f, s(f);
4736
- }, 100));
4737
- }, s = (f) => {
4738
- const p = document.getElementById(c(f));
4739
- p && (p.focus(), p.scrollIntoView({ inline: "center" }));
4740
- }, i = (f, p) => {
4741
- if (f.repeat)
4742
- return;
4743
- const w = o.value, g = (y, v) => {
4744
- let S = y;
4745
- for (let L = 0; L <= w; L++)
4746
- if (S = (S + v + e.tabs.length) % e.tabs.length, !e.tabs[S].disabled)
4747
- return S;
4748
- return -1;
4749
- };
4750
- if (f.key === "ArrowRight") {
4751
- f.preventDefault();
4752
- const y = g(p, 1);
4753
- l(y);
4754
- return;
4755
- }
4756
- if (f.key === "ArrowLeft") {
4757
- f.preventDefault();
4758
- const y = g(p, -1);
4759
- l(y);
4760
- return;
4761
- }
4762
- if (f.key === "Home") {
4763
- f.preventDefault();
4764
- const y = g(-1, 1);
4765
- l(y);
4766
- return;
4767
- }
4768
- if (f.key === "End") {
4769
- f.preventDefault();
4770
- const y = g(w, -1);
4771
- l(y);
4772
- return;
4773
- }
4774
- }, c = (f) => `sf-tab-${f}`, u = (f) => `sf-tabpanel-${f}`, m = () => {
4775
- if (e.tabs[n.value]?.disabled) {
4776
- const f = e.tabs.findIndex((p) => !p.disabled);
4777
- n.value = f !== -1 ? f : -1;
4778
- }
4779
- };
4780
- return $t(() => {
4781
- m();
4782
- }), (f, p) => (_(), x("div", ad, [
4783
- b("ul", {
4784
- role: "tablist",
4785
- "aria-orientation": "horizontal",
4786
- class: j({ dense: e.dense })
4787
- }, [
4788
- (_(!0), x(ke, null, At(e.tabs, (w, g) => (_(), x("li", {
4789
- key: c(g),
4790
- onClick: (y) => l(g),
4791
- onKeydown: (y) => i(y, g)
4792
- }, [
4793
- b("button", {
4794
- role: "tab",
4795
- id: c(g),
4796
- "aria-selected": !w.disabled && g === n.value,
4797
- tabindex: g === n.value ? 0 : -1,
4798
- "aria-controls": u(g),
4799
- disabled: w.disabled
4800
- }, K(w.text), 9, sd)
4801
- ], 40, id))), 128))
4802
- ], 2),
4803
- (_(!0), x(ke, null, At(e.tabs, (w, g) => (_(), x("div", {
4804
- key: u(g),
4805
- id: u(g),
4806
- role: "tabpanel",
4807
- "aria-labelledby": c(g),
4808
- "aria-hidden": !w.disabled && g !== n.value,
4809
- class: j(["tab-content", { hidden: g !== n.value }])
4810
- }, [
4811
- !w.disabled && g === n.value ? G(f.$slots, "tabpanel", M({
4812
- key: 0,
4813
- ref_for: !0
4814
- }, { tab: w, activeTab: n.value, Activate: l })) : F("", !0)
4815
- ], 10, ld))), 128))
4816
- ]));
4817
- }
4818
4485
  });
4819
- class cd {
4486
+ class Fu {
4820
4487
  get storedTheme() {
4821
4488
  return localStorage.getItem("color-scheme");
4822
4489
  }
@@ -4845,7 +4512,7 @@ class cd {
4845
4512
  localStorage.removeItem("color-scheme");
4846
4513
  }
4847
4514
  }
4848
- const un = new cd();
4515
+ const un = new Fu();
4849
4516
  /*!
4850
4517
  * sweetalert2 v11.26.3
4851
4518
  * Released under the MIT License.
@@ -4854,32 +4521,32 @@ function di(t, e, n) {
4854
4521
  if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : n;
4855
4522
  throw new TypeError("Private element is not present on this object");
4856
4523
  }
4857
- function ud(t, e) {
4524
+ function zu(t, e) {
4858
4525
  if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
4859
4526
  }
4860
4527
  function wa(t, e) {
4861
4528
  return t.get(di(t, e));
4862
4529
  }
4863
- function dd(t, e, n) {
4864
- ud(t, e), e.set(t, n);
4530
+ function Uu(t, e, n) {
4531
+ zu(t, e), e.set(t, n);
4865
4532
  }
4866
- function md(t, e, n) {
4533
+ function Vu(t, e, n) {
4867
4534
  return t.set(di(t, e), n), n;
4868
4535
  }
4869
- const fd = 100, E = {}, pd = () => {
4536
+ const Wu = 100, E = {}, Ku = () => {
4870
4537
  E.previousActiveElement instanceof HTMLElement ? (E.previousActiveElement.focus(), E.previousActiveElement = null) : document.body && document.body.focus();
4871
- }, hd = (t) => new Promise((e) => {
4538
+ }, Gu = (t) => new Promise((e) => {
4872
4539
  if (!t)
4873
4540
  return e();
4874
4541
  const n = window.scrollX, r = window.scrollY;
4875
4542
  E.restoreFocusTimeout = setTimeout(() => {
4876
- pd(), e();
4877
- }, fd), window.scrollTo(n, r);
4878
- }), mi = "swal2-", gd = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error", "draggable", "dragging"], h = gd.reduce(
4543
+ Ku(), e();
4544
+ }, Wu), window.scrollTo(n, r);
4545
+ }), mi = "swal2-", qu = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error", "draggable", "dragging"], h = qu.reduce(
4879
4546
  (t, e) => (t[e] = mi + e, t),
4880
4547
  /** @type {SwalClasses} */
4881
4548
  {}
4882
- ), vd = ["success", "warning", "info", "question", "error"], ir = vd.reduce(
4549
+ ), Yu = ["success", "warning", "info", "question", "error"], ir = Yu.reduce(
4883
4550
  (t, e) => (t[e] = mi + e, t),
4884
4551
  /** @type {SwalIcons} */
4885
4552
  {}
@@ -4887,14 +4554,14 @@ const fd = 100, E = {}, pd = () => {
4887
4554
  console.warn(`${fi} ${typeof t == "object" ? t.join(" ") : t}`);
4888
4555
  }, Lt = (t) => {
4889
4556
  console.error(`${fi} ${t}`);
4890
- }, ya = [], bd = (t) => {
4557
+ }, ya = [], Xu = (t) => {
4891
4558
  ya.includes(t) || (ya.push(t), Ce(t));
4892
4559
  }, pi = (t, e = null) => {
4893
- bd(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
4560
+ Xu(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
4894
4561
  }, vr = (t) => typeof t == "function" ? t() : t, fo = (t) => t && typeof t.toPromise == "function", Ln = (t) => fo(t) ? t.toPromise() : Promise.resolve(t), po = (t) => t && Promise.resolve(t) === t, xe = () => document.body.querySelector(`.${h.container}`), On = (t) => {
4895
4562
  const e = xe();
4896
4563
  return e ? e.querySelector(t) : null;
4897
- }, $e = (t) => On(`.${t}`), z = () => $e(h.popup), Jt = () => $e(h.icon), wd = () => $e(h["icon-content"]), hi = () => $e(h.title), ho = () => $e(h["html-container"]), gi = () => $e(h.image), go = () => $e(h["progress-steps"]), br = () => $e(h["validation-message"]), Ze = () => (
4564
+ }, $e = (t) => On(`.${t}`), z = () => $e(h.popup), Jt = () => $e(h.icon), Zu = () => $e(h["icon-content"]), hi = () => $e(h.title), ho = () => $e(h["html-container"]), gi = () => $e(h.image), go = () => $e(h["progress-steps"]), br = () => $e(h["validation-message"]), Ze = () => (
4898
4565
  /** @type {HTMLButtonElement} */
4899
4566
  On(`.${h.actions} .${h.confirm}`)
4900
4567
  ), Qt = () => (
@@ -4903,7 +4570,7 @@ const fd = 100, E = {}, pd = () => {
4903
4570
  ), Ot = () => (
4904
4571
  /** @type {HTMLButtonElement} */
4905
4572
  On(`.${h.actions} .${h.deny}`)
4906
- ), yd = () => $e(h["input-label"]), en = () => On(`.${h.loader}`), Bn = () => $e(h.actions), vi = () => $e(h.footer), wr = () => $e(h["timer-progress-bar"]), vo = () => $e(h.close), kd = `
4573
+ ), Ju = () => $e(h["input-label"]), en = () => On(`.${h.loader}`), Bn = () => $e(h.actions), vi = () => $e(h.footer), wr = () => $e(h["timer-progress-bar"]), vo = () => $e(h.close), Qu = `
4907
4574
  a[href],
4908
4575
  area[href],
4909
4576
  input:not([disabled]),
@@ -4925,12 +4592,12 @@ const fd = 100, E = {}, pd = () => {
4925
4592
  const e = t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(e).sort((a, l) => {
4926
4593
  const s = parseInt(a.getAttribute("tabindex") || "0"), i = parseInt(l.getAttribute("tabindex") || "0");
4927
4594
  return s > i ? 1 : s < i ? -1 : 0;
4928
- }), r = t.querySelectorAll(kd), o = Array.from(r).filter((a) => a.getAttribute("tabindex") !== "-1");
4595
+ }), r = t.querySelectorAll(Qu), o = Array.from(r).filter((a) => a.getAttribute("tabindex") !== "-1");
4929
4596
  return [...new Set(n.concat(o))].filter((a) => Ae(a));
4930
4597
  }, wo = () => lt(document.body, h.shown) && !lt(document.body, h["toast-shown"]) && !lt(document.body, h["no-backdrop"]), yr = () => {
4931
4598
  const t = z();
4932
4599
  return t ? lt(t, h.toast) : !1;
4933
- }, Cd = () => {
4600
+ }, ed = () => {
4934
4601
  const t = z();
4935
4602
  return t ? t.hasAttribute("data-loading") : !1;
4936
4603
  }, Le = (t, e) => {
@@ -4952,12 +4619,12 @@ const fd = 100, E = {}, pd = () => {
4952
4619
  if (!t.classList.contains(n[r]))
4953
4620
  return !1;
4954
4621
  return !0;
4955
- }, _d = (t, e) => {
4622
+ }, td = (t, e) => {
4956
4623
  Array.from(t.classList).forEach((n) => {
4957
4624
  !Object.values(h).includes(n) && !Object.values(ir).includes(n) && !Object.values(e.showClass || {}).includes(n) && t.classList.remove(n);
4958
4625
  });
4959
4626
  }, Pe = (t, e, n) => {
4960
- if (_d(t, e), !e.customClass)
4627
+ if (td(t, e), !e.customClass)
4961
4628
  return;
4962
4629
  const r = e.customClass[
4963
4630
  /** @type {keyof SweetAlertCustomClass} */
@@ -5027,7 +4694,7 @@ const fd = 100, E = {}, pd = () => {
5027
4694
  o && o.style.setProperty(n, r);
5028
4695
  }, Mn = (t, e, n = "flex") => {
5029
4696
  e ? ce(t, n) : ve(t);
5030
- }, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Sd = () => !Ae(Ze()) && !Ae(Ot()) && !Ae(Qt()), Jr = (t) => t.scrollHeight > t.clientHeight, xd = (t, e) => {
4697
+ }, Ae = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), nd = () => !Ae(Ze()) && !Ae(Ot()) && !Ae(Qt()), Jr = (t) => t.scrollHeight > t.clientHeight, rd = (t, e) => {
5031
4698
  let n = t;
5032
4699
  for (; n && n !== e; ) {
5033
4700
  if (Jr(n))
@@ -5043,7 +4710,7 @@ const fd = 100, E = {}, pd = () => {
5043
4710
  n && Ae(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
5044
4711
  n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
5045
4712
  }, 10));
5046
- }, Td = () => {
4713
+ }, od = () => {
5047
4714
  const t = wr();
5048
4715
  if (!t)
5049
4716
  return;
@@ -5051,7 +4718,7 @@ const fd = 100, E = {}, pd = () => {
5051
4718
  t.style.removeProperty("transition"), t.style.width = "100%";
5052
4719
  const n = parseInt(window.getComputedStyle(t).width), r = e / n * 100;
5053
4720
  t.style.width = `${r}%`;
5054
- }, Id = () => typeof window > "u" || typeof document > "u", Ad = `
4721
+ }, ad = () => typeof window > "u" || typeof document > "u", id = `
5055
4722
  <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
5056
4723
  <button type="button" class="${h.close}"></button>
5057
4724
  <ul class="${h["progress-steps"]}"></ul>
@@ -5084,52 +4751,52 @@ const fd = 100, E = {}, pd = () => {
5084
4751
  <div class="${h["timer-progress-bar"]}"></div>
5085
4752
  </div>
5086
4753
  </div>
5087
- `.replace(/(^|\n)\s*/g, ""), Ed = () => {
4754
+ `.replace(/(^|\n)\s*/g, ""), sd = () => {
5088
4755
  const t = xe();
5089
4756
  return t ? (t.remove(), De([document.documentElement, document.body], [h["no-backdrop"], h["toast-shown"], h["has-column"]]), !0) : !1;
5090
4757
  }, kt = () => {
5091
4758
  E.currentInstance.resetValidationMessage();
5092
- }, Pd = () => {
4759
+ }, ld = () => {
5093
4760
  const t = z(), e = gt(t, h.input), n = gt(t, h.file), r = t.querySelector(`.${h.range} input`), o = t.querySelector(`.${h.range} output`), a = gt(t, h.select), l = t.querySelector(`.${h.checkbox} input`), s = gt(t, h.textarea);
5094
4761
  e.oninput = kt, n.onchange = kt, a.onchange = kt, l.onchange = kt, s.oninput = kt, r.oninput = () => {
5095
4762
  kt(), o.value = r.value;
5096
4763
  }, r.onchange = () => {
5097
4764
  kt(), o.value = r.value;
5098
4765
  };
5099
- }, $d = (t) => typeof t == "string" ? document.querySelector(t) : t, Ld = (t) => {
4766
+ }, cd = (t) => typeof t == "string" ? document.querySelector(t) : t, ud = (t) => {
5100
4767
  const e = z();
5101
4768
  e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true");
5102
- }, Od = (t) => {
4769
+ }, dd = (t) => {
5103
4770
  window.getComputedStyle(t).direction === "rtl" && U(xe(), h.rtl);
5104
- }, Bd = (t) => {
5105
- const e = Ed();
5106
- if (Id()) {
4771
+ }, md = (t) => {
4772
+ const e = sd();
4773
+ if (ad()) {
5107
4774
  Lt("SweetAlert2 requires document to initialize");
5108
4775
  return;
5109
4776
  }
5110
4777
  const n = document.createElement("div");
5111
- n.className = h.container, e && U(n, h["no-transition"]), Le(n, Ad), n.dataset.swal2Theme = t.theme;
5112
- const r = $d(t.target);
5113
- r.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), Ld(t), Od(r), Pd();
4778
+ n.className = h.container, e && U(n, h["no-transition"]), Le(n, id), n.dataset.swal2Theme = t.theme;
4779
+ const r = cd(t.target);
4780
+ r.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), ud(t), dd(r), ld();
5114
4781
  }, Co = (t, e) => {
5115
- t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Md(t, e) : t && Le(e, t);
5116
- }, Md = (t, e) => {
5117
- t.jquery ? Dd(e, t) : Le(e, t.toString());
5118
- }, Dd = (t, e) => {
4782
+ t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? fd(t, e) : t && Le(e, t);
4783
+ }, fd = (t, e) => {
4784
+ t.jquery ? pd(e, t) : Le(e, t.toString());
4785
+ }, pd = (t, e) => {
5119
4786
  if (t.textContent = "", 0 in e)
5120
4787
  for (let n = 0; n in e; n++)
5121
4788
  t.appendChild(e[n].cloneNode(!0));
5122
4789
  else
5123
4790
  t.appendChild(e.cloneNode(!0));
5124
- }, Rd = (t, e) => {
4791
+ }, hd = (t, e) => {
5125
4792
  const n = Bn(), r = en();
5126
- !n || !r || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ve(n) : ce(n), Pe(n, e, "actions"), Nd(n, r, e), Le(r, e.loaderHtml || ""), Pe(r, e, "loader"));
4793
+ !n || !r || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? ve(n) : ce(n), Pe(n, e, "actions"), gd(n, r, e), Le(r, e.loaderHtml || ""), Pe(r, e, "loader"));
5127
4794
  };
5128
- function Nd(t, e, n) {
4795
+ function gd(t, e, n) {
5129
4796
  const r = Ze(), o = Ot(), a = Qt();
5130
- !r || !o || !a || (Dr(r, "confirm", n), Dr(o, "deny", n), Dr(a, "cancel", n), jd(r, o, a, n), n.reverseButtons && (n.toast ? (t.insertBefore(a, r), t.insertBefore(o, r)) : (t.insertBefore(a, e), t.insertBefore(o, e), t.insertBefore(r, e))));
4797
+ !r || !o || !a || (Dr(r, "confirm", n), Dr(o, "deny", n), Dr(a, "cancel", n), vd(r, o, a, n), n.reverseButtons && (n.toast ? (t.insertBefore(a, r), t.insertBefore(o, r)) : (t.insertBefore(a, e), t.insertBefore(o, e), t.insertBefore(r, e))));
5131
4798
  }
5132
- function jd(t, e, n, r) {
4799
+ function vd(t, e, n, r) {
5133
4800
  if (!r.buttonsStyling) {
5134
4801
  De([t, e, n], h.styled);
5135
4802
  return;
@@ -5150,36 +4817,36 @@ function Dr(t, e, n) {
5150
4817
  );
5151
4818
  Mn(t, n[`show${r}Button`], "inline-block"), Le(t, n[`${e}ButtonText`] || ""), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`] || ""), t.className = h[e], Pe(t, n, `${e}Button`);
5152
4819
  }
5153
- const Hd = (t, e) => {
4820
+ const bd = (t, e) => {
5154
4821
  const n = vo();
5155
4822
  n && (Le(n, e.closeButtonHtml || ""), Pe(n, e, "closeButton"), Mn(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel || ""));
5156
- }, Fd = (t, e) => {
4823
+ }, wd = (t, e) => {
5157
4824
  const n = xe();
5158
- n && (zd(n, e.backdrop), Ud(n, e.position), Vd(n, e.grow), Pe(n, e, "container"));
4825
+ n && (yd(n, e.backdrop), kd(n, e.position), Cd(n, e.grow), Pe(n, e, "container"));
5159
4826
  };
5160
- function zd(t, e) {
4827
+ function yd(t, e) {
5161
4828
  typeof e == "string" ? t.style.background = e : e || U([document.documentElement, document.body], h["no-backdrop"]);
5162
4829
  }
5163
- function Ud(t, e) {
4830
+ function kd(t, e) {
5164
4831
  e && (e in h ? U(t, h[e]) : (Ce('The "position" parameter is not valid, defaulting to "center"'), U(t, h.center)));
5165
4832
  }
5166
- function Vd(t, e) {
4833
+ function Cd(t, e) {
5167
4834
  e && U(t, h[`grow-${e}`]);
5168
4835
  }
5169
4836
  var Y = {
5170
4837
  innerParams: /* @__PURE__ */ new WeakMap(),
5171
4838
  domCache: /* @__PURE__ */ new WeakMap()
5172
4839
  };
5173
- const Wd = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Kd = (t, e) => {
4840
+ const _d = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Sd = (t, e) => {
5174
4841
  const n = z();
5175
4842
  if (!n)
5176
4843
  return;
5177
4844
  const r = Y.innerParams.get(t), o = !r || e.input !== r.input;
5178
- Wd.forEach((a) => {
4845
+ _d.forEach((a) => {
5179
4846
  const l = gt(n, h[a]);
5180
- l && (Yd(a, e.inputAttributes), l.className = h[a], o && ve(l));
5181
- }), e.input && (o && Gd(e), Xd(e));
5182
- }, Gd = (t) => {
4847
+ l && (Id(a, e.inputAttributes), l.className = h[a], o && ve(l));
4848
+ }), e.input && (o && xd(e), Ad(e));
4849
+ }, xd = (t) => {
5183
4850
  if (!t.input)
5184
4851
  return;
5185
4852
  if (!re[t.input]) {
@@ -5193,22 +4860,22 @@ const Wd = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
5193
4860
  ce(e), t.inputAutoFocus && setTimeout(() => {
5194
4861
  bi(n);
5195
4862
  });
5196
- }, qd = (t) => {
4863
+ }, Td = (t) => {
5197
4864
  for (let e = 0; e < t.attributes.length; e++) {
5198
4865
  const n = t.attributes[e].name;
5199
4866
  ["id", "type", "value", "style"].includes(n) || t.removeAttribute(n);
5200
4867
  }
5201
- }, Yd = (t, e) => {
4868
+ }, Id = (t, e) => {
5202
4869
  const n = z();
5203
4870
  if (!n)
5204
4871
  return;
5205
4872
  const r = kr(n, t);
5206
4873
  if (r) {
5207
- qd(r);
4874
+ Td(r);
5208
4875
  for (const o in e)
5209
4876
  r.setAttribute(o, e[o]);
5210
4877
  }
5211
- }, Xd = (t) => {
4878
+ }, Ad = (t) => {
5212
4879
  if (!t.input)
5213
4880
  return;
5214
4881
  const e = ki(t.input);
@@ -5269,13 +4936,13 @@ re.textarea = (t, e) => {
5269
4936
  }
5270
4937
  }), t;
5271
4938
  };
5272
- const Zd = (t, e) => {
4939
+ const Ed = (t, e) => {
5273
4940
  const n = ho();
5274
- n && (yo(n), Pe(n, e, "htmlContainer"), e.html ? (Co(e.html, n), ce(n, "block")) : e.text ? (n.textContent = e.text, ce(n, "block")) : ve(n), Kd(t, e));
5275
- }, Jd = (t, e) => {
4941
+ n && (yo(n), Pe(n, e, "htmlContainer"), e.html ? (Co(e.html, n), ce(n, "block")) : e.text ? (n.textContent = e.text, ce(n, "block")) : ve(n), Sd(t, e));
4942
+ }, Pd = (t, e) => {
5276
4943
  const n = vi();
5277
4944
  n && (yo(n), Mn(n, !!e.footer, "block"), e.footer && Co(e.footer, n), Pe(n, e, "footer"));
5278
- }, Qd = (t, e) => {
4945
+ }, $d = (t, e) => {
5279
4946
  const n = Y.innerParams.get(t), r = Jt();
5280
4947
  if (!r)
5281
4948
  return;
@@ -5295,7 +4962,7 @@ const Zd = (t, e) => {
5295
4962
  }, Ca = (t, e) => {
5296
4963
  for (const [n, r] of Object.entries(ir))
5297
4964
  e.icon !== n && De(t, r);
5298
- U(t, e.icon && ir[e.icon]), nm(t, e), Ci(), Pe(t, e, "icon");
4965
+ U(t, e.icon && ir[e.icon]), Bd(t, e), Ci(), Pe(t, e, "icon");
5299
4966
  }, Ci = () => {
5300
4967
  const t = z();
5301
4968
  if (!t)
@@ -5303,13 +4970,13 @@ const Zd = (t, e) => {
5303
4970
  const e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
5304
4971
  for (let r = 0; r < n.length; r++)
5305
4972
  n[r].style.backgroundColor = e;
5306
- }, em = (t) => `
4973
+ }, Ld = (t) => `
5307
4974
  ${t.animation ? '<div class="swal2-success-circular-line-left"></div>' : ""}
5308
4975
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
5309
4976
  <div class="swal2-success-ring"></div>
5310
4977
  ${t.animation ? '<div class="swal2-success-fix"></div>' : ""}
5311
4978
  ${t.animation ? '<div class="swal2-success-circular-line-right"></div>' : ""}
5312
- `, tm = `
4979
+ `, Od = `
5313
4980
  <span class="swal2-x-mark">
5314
4981
  <span class="swal2-x-mark-line-left"></span>
5315
4982
  <span class="swal2-x-mark-line-right"></span>
@@ -5318,19 +4985,19 @@ const Zd = (t, e) => {
5318
4985
  if (!e.icon && !e.iconHtml)
5319
4986
  return;
5320
4987
  let n = t.innerHTML, r = "";
5321
- e.iconHtml ? r = Sa(e.iconHtml) : e.icon === "success" ? (r = em(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? r = tm : e.icon && (r = Sa({
4988
+ e.iconHtml ? r = Sa(e.iconHtml) : e.icon === "success" ? (r = Ld(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? r = Od : e.icon && (r = Sa({
5322
4989
  question: "?",
5323
4990
  warning: "!",
5324
4991
  info: "i"
5325
4992
  }[e.icon])), n.trim() !== r.trim() && Le(t, r);
5326
- }, nm = (t, e) => {
4993
+ }, Bd = (t, e) => {
5327
4994
  if (e.iconColor) {
5328
4995
  t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
5329
4996
  for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
5330
4997
  ka(t, n, "background-color", e.iconColor);
5331
4998
  ka(t, ".swal2-success-ring", "border-color", e.iconColor);
5332
4999
  }
5333
- }, Sa = (t) => `<div class="${h["icon-content"]}">${t}</div>`, rm = (t, e) => {
5000
+ }, Sa = (t) => `<div class="${h["icon-content"]}">${t}</div>`, Md = (t, e) => {
5334
5001
  const n = gi();
5335
5002
  if (n) {
5336
5003
  if (!e.imageUrl) {
@@ -5341,9 +5008,9 @@ const Zd = (t, e) => {
5341
5008
  }
5342
5009
  };
5343
5010
  let So = !1, _i = 0, Si = 0, xi = 0, Ti = 0;
5344
- const om = (t) => {
5011
+ const Dd = (t) => {
5345
5012
  t.addEventListener("mousedown", lr), document.body.addEventListener("mousemove", cr), t.addEventListener("mouseup", ur), t.addEventListener("touchstart", lr), document.body.addEventListener("touchmove", cr), t.addEventListener("touchend", ur);
5346
- }, am = (t) => {
5013
+ }, Rd = (t) => {
5347
5014
  t.removeEventListener("mousedown", lr), document.body.removeEventListener("mousemove", cr), t.removeEventListener("mouseup", ur), t.removeEventListener("touchstart", lr), document.body.removeEventListener("touchmove", cr), t.removeEventListener("touchend", ur);
5348
5015
  }, lr = (t) => {
5349
5016
  const e = z();
@@ -5377,7 +5044,7 @@ const om = (t) => {
5377
5044
  clientX: e,
5378
5045
  clientY: n
5379
5046
  };
5380
- }, im = (t, e) => {
5047
+ }, Nd = (t, e) => {
5381
5048
  const n = xe(), r = z();
5382
5049
  if (!(!n || !r)) {
5383
5050
  if (e.toast) {
@@ -5386,12 +5053,12 @@ const om = (t) => {
5386
5053
  o && r.insertBefore(o, Jt());
5387
5054
  } else
5388
5055
  Tt(r, "width", e.width);
5389
- Tt(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), ve(br()), sm(r, e), e.draggable && !e.toast ? (U(r, h.draggable), om(r)) : (De(r, h.draggable), am(r));
5056
+ Tt(r, "padding", e.padding), e.color && (r.style.color = e.color), e.background && (r.style.background = e.background), ve(br()), jd(r, e), e.draggable && !e.toast ? (U(r, h.draggable), Dd(r)) : (De(r, h.draggable), Rd(r));
5390
5057
  }
5391
- }, sm = (t, e) => {
5058
+ }, jd = (t, e) => {
5392
5059
  const n = e.showClass || {};
5393
5060
  t.className = `${h.popup} ${Ae(t) ? n.popup : ""}`, e.toast ? (U([document.documentElement, document.body], h["toast-shown"]), U(t, h.toast)) : U(t, h.modal), Pe(t, e, "popup"), typeof e.customClass == "string" && U(t, e.customClass), e.icon && U(t, h[`icon-${e.icon}`]);
5394
- }, lm = (t, e) => {
5061
+ }, Hd = (t, e) => {
5395
5062
  const n = go();
5396
5063
  if (!n)
5397
5064
  return;
@@ -5404,32 +5071,32 @@ const om = (t) => {
5404
5071
  return;
5405
5072
  }
5406
5073
  ce(n), n.textContent = "", o >= r.length && Ce("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), r.forEach((a, l) => {
5407
- const s = cm(a);
5074
+ const s = Fd(a);
5408
5075
  if (n.appendChild(s), l === o && U(s, h["active-progress-step"]), l !== r.length - 1) {
5409
- const i = um(e);
5076
+ const i = zd(e);
5410
5077
  n.appendChild(i);
5411
5078
  }
5412
5079
  });
5413
- }, cm = (t) => {
5080
+ }, Fd = (t) => {
5414
5081
  const e = document.createElement("li");
5415
5082
  return U(e, h["progress-step"]), Le(e, t), e;
5416
- }, um = (t) => {
5083
+ }, zd = (t) => {
5417
5084
  const e = document.createElement("li");
5418
5085
  return U(e, h["progress-step-line"]), t.progressStepsDistance && Tt(e, "width", t.progressStepsDistance), e;
5419
- }, dm = (t, e) => {
5086
+ }, Ud = (t, e) => {
5420
5087
  const n = hi();
5421
5088
  n && (yo(n), Mn(n, !!(e.title || e.titleText), "block"), e.title && Co(e.title, n), e.titleText && (n.innerText = e.titleText), Pe(n, e, "title"));
5422
5089
  }, Ai = (t, e) => {
5423
- im(t, e), Fd(t, e), lm(t, e), Qd(t, e), rm(t, e), dm(t, e), Hd(t, e), Zd(t, e), Rd(t, e), Jd(t, e);
5090
+ Nd(t, e), wd(t, e), Hd(t, e), $d(t, e), Md(t, e), Ud(t, e), bd(t, e), Ed(t, e), hd(t, e), Pd(t, e);
5424
5091
  const n = z();
5425
5092
  typeof e.didRender == "function" && n && e.didRender(n), E.eventEmitter.emit("didRender", n);
5426
- }, mm = () => Ae(z()), Ei = () => {
5093
+ }, Vd = () => Ae(z()), Ei = () => {
5427
5094
  var t;
5428
5095
  return (t = Ze()) === null || t === void 0 ? void 0 : t.click();
5429
- }, fm = () => {
5096
+ }, Wd = () => {
5430
5097
  var t;
5431
5098
  return (t = Ot()) === null || t === void 0 ? void 0 : t.click();
5432
- }, pm = () => {
5099
+ }, Kd = () => {
5433
5100
  var t;
5434
5101
  return (t = Qt()) === null || t === void 0 ? void 0 : t.click();
5435
5102
  }, tn = Object.freeze({
@@ -5442,8 +5109,8 @@ const om = (t) => {
5442
5109
  t.keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, {
5443
5110
  capture: t.keydownListenerCapture
5444
5111
  }), t.keydownHandlerAdded = !1);
5445
- }, hm = (t, e, n) => {
5446
- Pi(t), e.toast || (t.keydownHandler = (r) => vm(e, r, n), t.keydownTarget = e.keydownListenerCapture ? window : z(), t.keydownListenerCapture = e.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
5112
+ }, Gd = (t, e, n) => {
5113
+ Pi(t), e.toast || (t.keydownHandler = (r) => Yd(e, r, n), t.keydownTarget = e.keydownListenerCapture ? window : z(), t.keydownListenerCapture = e.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
5447
5114
  capture: t.keydownListenerCapture
5448
5115
  }), t.keydownHandlerAdded = !0);
5449
5116
  }, Qr = (t, e) => {
@@ -5454,9 +5121,9 @@ const om = (t) => {
5454
5121
  return;
5455
5122
  }
5456
5123
  (n = z()) === null || n === void 0 || n.focus();
5457
- }, $i = ["ArrowRight", "ArrowDown"], gm = ["ArrowLeft", "ArrowUp"], vm = (t, e, n) => {
5458
- t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? bm(e, t) : e.key === "Tab" ? wm(e) : [...$i, ...gm].includes(e.key) ? ym(e.key) : e.key === "Escape" && km(e, t, n)));
5459
- }, bm = (t, e) => {
5124
+ }, $i = ["ArrowRight", "ArrowDown"], qd = ["ArrowLeft", "ArrowUp"], Yd = (t, e, n) => {
5125
+ t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Xd(e, t) : e.key === "Tab" ? Zd(e) : [...$i, ...qd].includes(e.key) ? Jd(e.key) : e.key === "Escape" && Qd(e, t, n)));
5126
+ }, Xd = (t, e) => {
5460
5127
  if (!vr(e.allowEnterKey))
5461
5128
  return;
5462
5129
  const n = kr(z(), e.input);
@@ -5465,7 +5132,7 @@ const om = (t) => {
5465
5132
  return;
5466
5133
  Ei(), t.preventDefault();
5467
5134
  }
5468
- }, wm = (t) => {
5135
+ }, Zd = (t) => {
5469
5136
  const e = t.target, n = bo();
5470
5137
  let r = -1;
5471
5138
  for (let o = 0; o < n.length; o++)
@@ -5474,7 +5141,7 @@ const om = (t) => {
5474
5141
  break;
5475
5142
  }
5476
5143
  t.shiftKey ? Qr(r, -1) : Qr(r, 1), t.stopPropagation(), t.preventDefault();
5477
- }, ym = (t) => {
5144
+ }, Jd = (t) => {
5478
5145
  const e = Bn(), n = Ze(), r = Ot(), o = Qt();
5479
5146
  if (!e || !n || !r || !o)
5480
5147
  return;
@@ -5492,14 +5159,14 @@ const om = (t) => {
5492
5159
  }
5493
5160
  s instanceof HTMLButtonElement && s.focus();
5494
5161
  }
5495
- }, km = (t, e, n) => {
5162
+ }, Qd = (t, e, n) => {
5496
5163
  t.preventDefault(), vr(e.allowEscapeKey) && n(tn.esc);
5497
5164
  };
5498
5165
  var Yt = {
5499
5166
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
5500
5167
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
5501
5168
  };
5502
- const Cm = () => {
5169
+ const em = () => {
5503
5170
  const t = xe();
5504
5171
  Array.from(document.body.children).forEach((n) => {
5505
5172
  n.contains(t) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
@@ -5508,57 +5175,57 @@ const Cm = () => {
5508
5175
  Array.from(document.body.children).forEach((e) => {
5509
5176
  e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden") || ""), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
5510
5177
  });
5511
- }, Oi = typeof window < "u" && !!window.GestureEvent, _m = () => {
5178
+ }, Oi = typeof window < "u" && !!window.GestureEvent, tm = () => {
5512
5179
  if (Oi && !lt(document.body, h.iosfix)) {
5513
5180
  const t = document.body.scrollTop;
5514
- document.body.style.top = `${t * -1}px`, U(document.body, h.iosfix), Sm();
5181
+ document.body.style.top = `${t * -1}px`, U(document.body, h.iosfix), nm();
5515
5182
  }
5516
- }, Sm = () => {
5183
+ }, nm = () => {
5517
5184
  const t = xe();
5518
5185
  if (!t)
5519
5186
  return;
5520
5187
  let e;
5521
5188
  t.ontouchstart = (n) => {
5522
- e = xm(n);
5189
+ e = rm(n);
5523
5190
  }, t.ontouchmove = (n) => {
5524
5191
  e && (n.preventDefault(), n.stopPropagation());
5525
5192
  };
5526
- }, xm = (t) => {
5193
+ }, rm = (t) => {
5527
5194
  const e = t.target, n = xe(), r = ho();
5528
- return !n || !r || Tm(t) || Im(t) ? !1 : e === n || !Jr(n) && e instanceof HTMLElement && !xd(e, r) && // #2823
5195
+ return !n || !r || om(t) || am(t) ? !1 : e === n || !Jr(n) && e instanceof HTMLElement && !rd(e, r) && // #2823
5529
5196
  e.tagName !== "INPUT" && // #1603
5530
5197
  e.tagName !== "TEXTAREA" && // #2266
5531
5198
  !(Jr(r) && // #1944
5532
5199
  r.contains(e));
5533
- }, Tm = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", Im = (t) => t.touches && t.touches.length > 1, Am = () => {
5200
+ }, om = (t) => t.touches && t.touches.length && t.touches[0].touchType === "stylus", am = (t) => t.touches && t.touches.length > 1, im = () => {
5534
5201
  if (lt(document.body, h.iosfix)) {
5535
5202
  const t = parseInt(document.body.style.top, 10);
5536
5203
  De(document.body, h.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
5537
5204
  }
5538
- }, Em = () => {
5205
+ }, sm = () => {
5539
5206
  const t = document.createElement("div");
5540
5207
  t.className = h["scrollbar-measure"], document.body.appendChild(t);
5541
5208
  const e = t.getBoundingClientRect().width - t.clientWidth;
5542
5209
  return document.body.removeChild(t), e;
5543
5210
  };
5544
5211
  let Kt = null;
5545
- const Pm = (t) => {
5546
- Kt === null && (document.body.scrollHeight > window.innerHeight || t === "scroll") && (Kt = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Kt + Em()}px`);
5547
- }, $m = () => {
5212
+ const lm = (t) => {
5213
+ Kt === null && (document.body.scrollHeight > window.innerHeight || t === "scroll") && (Kt = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Kt + sm()}px`);
5214
+ }, cm = () => {
5548
5215
  Kt !== null && (document.body.style.paddingRight = `${Kt}px`, Kt = null);
5549
5216
  };
5550
5217
  function Bi(t, e, n, r) {
5551
- yr() ? xa(t, r) : (hd(n).then(() => xa(t, r)), Pi(E)), Oi ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), wo() && ($m(), Am(), Li()), Lm();
5218
+ yr() ? xa(t, r) : (Gu(n).then(() => xa(t, r)), Pi(E)), Oi ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), wo() && (cm(), im(), Li()), um();
5552
5219
  }
5553
- function Lm() {
5220
+ function um() {
5554
5221
  De([document.documentElement, document.body], [h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]);
5555
5222
  }
5556
5223
  function vt(t) {
5557
- t = Bm(t);
5558
- const e = Yt.swalPromiseResolve.get(this), n = Om(this);
5224
+ t = mm(t);
5225
+ const e = Yt.swalPromiseResolve.get(this), n = dm(this);
5559
5226
  this.isAwaitingPromise ? t.isDismissed || (Rn(this), e(t)) : n && e(t);
5560
5227
  }
5561
- const Om = (t) => {
5228
+ const dm = (t) => {
5562
5229
  const e = z();
5563
5230
  if (!e)
5564
5231
  return !1;
@@ -5567,7 +5234,7 @@ const Om = (t) => {
5567
5234
  return !1;
5568
5235
  De(e, n.showClass.popup), U(e, n.hideClass.popup);
5569
5236
  const r = xe();
5570
- return De(r, n.showClass.backdrop), U(r, n.hideClass.backdrop), Mm(t, e, n), !0;
5237
+ return De(r, n.showClass.backdrop), U(r, n.hideClass.backdrop), fm(t, e, n), !0;
5571
5238
  };
5572
5239
  function Mi(t) {
5573
5240
  const e = Yt.swalPromiseReject.get(this);
@@ -5575,7 +5242,7 @@ function Mi(t) {
5575
5242
  }
5576
5243
  const Rn = (t) => {
5577
5244
  t.isAwaitingPromise && (delete t.isAwaitingPromise, Y.innerParams.get(t) || t._destroy());
5578
- }, Bm = (t) => typeof t > "u" ? {
5245
+ }, mm = (t) => typeof t > "u" ? {
5579
5246
  isConfirmed: !1,
5580
5247
  isDenied: !1,
5581
5248
  isDismissed: !0
@@ -5583,11 +5250,11 @@ const Rn = (t) => {
5583
5250
  isConfirmed: !1,
5584
5251
  isDenied: !1,
5585
5252
  isDismissed: !1
5586
- }, t), Mm = (t, e, n) => {
5253
+ }, t), fm = (t, e, n) => {
5587
5254
  var r;
5588
5255
  const o = xe(), a = yi(e);
5589
- typeof n.willClose == "function" && n.willClose(e), (r = E.eventEmitter) === null || r === void 0 || r.emit("willClose", e), a ? Dm(t, e, o, n.returnFocus, n.didClose) : Bi(t, o, n.returnFocus, n.didClose);
5590
- }, Dm = (t, e, n, r, o) => {
5256
+ typeof n.willClose == "function" && n.willClose(e), (r = E.eventEmitter) === null || r === void 0 || r.emit("willClose", e), a ? pm(t, e, o, n.returnFocus, n.didClose) : Bi(t, o, n.returnFocus, n.didClose);
5257
+ }, pm = (t, e, n, r, o) => {
5591
5258
  E.swalCloseEventFinishedCallback = Bi.bind(null, t, n, r, o);
5592
5259
  const a = function(l) {
5593
5260
  if (l.target === e) {
@@ -5606,37 +5273,37 @@ const Rn = (t) => {
5606
5273
  if (e || new Pt(), e = z(), !e)
5607
5274
  return;
5608
5275
  const n = en();
5609
- yr() ? ve(Jt()) : Rm(e, t), ce(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
5610
- }, Rm = (t, e) => {
5276
+ yr() ? ve(Jt()) : hm(e, t), ce(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
5277
+ }, hm = (t, e) => {
5611
5278
  const n = Bn(), r = en();
5612
5279
  !n || !r || (!e && Ae(Ze()) && (e = Ze()), ce(n), e && (ve(e), r.setAttribute("data-button-to-replace", e.className), n.insertBefore(r, e)), U([t, n], h.loading));
5613
- }, Nm = (t, e) => {
5614
- e.input === "select" || e.input === "radio" ? Um(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (fo(e.inputValue) || po(e.inputValue)) && (Xt(Ze()), Vm(t, e));
5615
- }, jm = (t, e) => {
5280
+ }, gm = (t, e) => {
5281
+ e.input === "select" || e.input === "radio" ? km(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (fo(e.inputValue) || po(e.inputValue)) && (Xt(Ze()), Cm(t, e));
5282
+ }, vm = (t, e) => {
5616
5283
  const n = t.getInput();
5617
5284
  if (!n)
5618
5285
  return null;
5619
5286
  switch (e.input) {
5620
5287
  case "checkbox":
5621
- return Hm(n);
5288
+ return bm(n);
5622
5289
  case "radio":
5623
- return Fm(n);
5290
+ return wm(n);
5624
5291
  case "file":
5625
- return zm(n);
5292
+ return ym(n);
5626
5293
  default:
5627
5294
  return e.inputAutoTrim ? n.value.trim() : n.value;
5628
5295
  }
5629
- }, Hm = (t) => t.checked ? 1 : 0, Fm = (t) => t.checked ? t.value : null, zm = (t) => t.files && t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Um = (t, e) => {
5296
+ }, bm = (t) => t.checked ? 1 : 0, wm = (t) => t.checked ? t.value : null, ym = (t) => t.files && t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, km = (t, e) => {
5630
5297
  const n = z();
5631
5298
  if (!n)
5632
5299
  return;
5633
5300
  const r = (o) => {
5634
- e.input === "select" ? Wm(n, dr(o), e) : e.input === "radio" && Km(n, dr(o), e);
5301
+ e.input === "select" ? _m(n, dr(o), e) : e.input === "radio" && Sm(n, dr(o), e);
5635
5302
  };
5636
5303
  fo(e.inputOptions) || po(e.inputOptions) ? (Xt(Ze()), Ln(e.inputOptions).then((o) => {
5637
5304
  t.hideLoading(), r(o);
5638
5305
  })) : typeof e.inputOptions == "object" ? r(e.inputOptions) : Lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
5639
- }, Vm = (t, e) => {
5306
+ }, Cm = (t, e) => {
5640
5307
  const n = t.getInput();
5641
5308
  n && (ve(n), Ln(e.inputValue).then((r) => {
5642
5309
  n.value = e.input === "number" ? `${parseFloat(r) || 0}` : `${r}`, ce(n), n.focus(), t.hideLoading();
@@ -5644,7 +5311,7 @@ const Rn = (t) => {
5644
5311
  Lt(`Error in inputValue promise: ${r}`), n.value = "", ce(n), n.focus(), t.hideLoading();
5645
5312
  }));
5646
5313
  };
5647
- function Wm(t, e, n) {
5314
+ function _m(t, e, n) {
5648
5315
  const r = gt(t, h.select);
5649
5316
  if (!r)
5650
5317
  return;
@@ -5661,7 +5328,7 @@ function Wm(t, e, n) {
5661
5328
  o(r, s, l);
5662
5329
  }), r.focus();
5663
5330
  }
5664
- function Km(t, e, n) {
5331
+ function Sm(t, e, n) {
5665
5332
  const r = gt(t, h.radio);
5666
5333
  if (!r)
5667
5334
  return;
@@ -5683,13 +5350,13 @@ const dr = (t) => {
5683
5350
  let r = t[n];
5684
5351
  typeof r == "object" && (r = dr(r)), e.push([n, r]);
5685
5352
  }), e;
5686
- }, Di = (t, e) => !!e && e.toString() === t.toString(), Gm = (t) => {
5353
+ }, Di = (t, e) => !!e && e.toString() === t.toString(), xm = (t) => {
5687
5354
  const e = Y.innerParams.get(t);
5688
5355
  t.disableButtons(), e.input ? Ri(t, "confirm") : To(t, !0);
5689
- }, qm = (t) => {
5356
+ }, Tm = (t) => {
5690
5357
  const e = Y.innerParams.get(t);
5691
5358
  t.disableButtons(), e.returnInputValueOnDeny ? Ri(t, "deny") : xo(t, !1);
5692
- }, Ym = (t, e) => {
5359
+ }, Im = (t, e) => {
5693
5360
  t.disableButtons(), e(tn.cancel);
5694
5361
  }, Ri = (t, e) => {
5695
5362
  const n = Y.innerParams.get(t);
@@ -5697,9 +5364,9 @@ const dr = (t) => {
5697
5364
  Lt(`The "input" parameter is needed to be set when using returnInputValueOn${mo(e)}`);
5698
5365
  return;
5699
5366
  }
5700
- const r = t.getInput(), o = jm(t, n);
5701
- n.inputValidator ? Xm(t, o, e) : r && !r.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || r.validationMessage)) : e === "deny" ? xo(t, o) : To(t, o);
5702
- }, Xm = (t, e, n) => {
5367
+ const r = t.getInput(), o = vm(t, n);
5368
+ n.inputValidator ? Am(t, o, e) : r && !r.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || r.validationMessage)) : e === "deny" ? xo(t, o) : To(t, o);
5369
+ }, Am = (t, e, n) => {
5703
5370
  const r = Y.innerParams.get(t);
5704
5371
  t.disableInput(), Promise.resolve().then(() => Ln(r.inputValidator(e, r.validationMessage))).then((a) => {
5705
5372
  t.enableButtons(), t.enableInput(), a ? t.showValidationMessage(a) : n === "deny" ? xo(t, e) : To(t, e);
@@ -5742,11 +5409,11 @@ function mr() {
5742
5409
  if (!t)
5743
5410
  return;
5744
5411
  const e = Y.domCache.get(this);
5745
- ve(e.loader), yr() ? t.icon && ce(Jt()) : Zm(e), De([e.popup, e.actions], h.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
5412
+ ve(e.loader), yr() ? t.icon && ce(Jt()) : Em(e), De([e.popup, e.actions], h.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
5746
5413
  }
5747
- const Zm = (t) => {
5414
+ const Em = (t) => {
5748
5415
  const e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));
5749
- e.length ? ce(e[0], "inline-block") : Sd() && ve(t.actions);
5416
+ e.length ? ce(e[0], "inline-block") : nd() && ve(t.actions);
5750
5417
  };
5751
5418
  function ji() {
5752
5419
  const t = Y.innerParams.get(this), e = Y.domCache.get(this);
@@ -5885,19 +5552,19 @@ const Gt = {
5885
5552
  didDestroy: void 0,
5886
5553
  scrollbarPadding: !0,
5887
5554
  topLayer: !1
5888
- }, Jm = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], Qm = {
5555
+ }, Pm = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], $m = {
5889
5556
  allowEnterKey: void 0
5890
- }, ef = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], qi = (t) => Object.prototype.hasOwnProperty.call(Gt, t), Yi = (t) => Jm.indexOf(t) !== -1, Xi = (t) => Qm[t], tf = (t) => {
5557
+ }, Lm = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], qi = (t) => Object.prototype.hasOwnProperty.call(Gt, t), Yi = (t) => Pm.indexOf(t) !== -1, Xi = (t) => $m[t], Om = (t) => {
5891
5558
  qi(t) || Ce(`Unknown parameter "${t}"`);
5892
- }, nf = (t) => {
5893
- ef.includes(t) && Ce(`The parameter "${t}" is incompatible with toasts`);
5894
- }, rf = (t) => {
5559
+ }, Bm = (t) => {
5560
+ Lm.includes(t) && Ce(`The parameter "${t}" is incompatible with toasts`);
5561
+ }, Mm = (t) => {
5895
5562
  const e = Xi(t);
5896
5563
  e && pi(t, e);
5897
5564
  }, Zi = (t) => {
5898
5565
  t.backdrop === !1 && t.allowOutsideClick && Ce('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), t.theme && !["light", "dark", "auto", "minimal", "borderless", "bootstrap-4", "bootstrap-4-light", "bootstrap-4-dark", "bootstrap-5", "bootstrap-5-light", "bootstrap-5-dark", "material-ui", "material-ui-light", "material-ui-dark", "embed-iframe", "bulma", "bulma-light", "bulma-dark"].includes(t.theme) && Ce(`Invalid theme "${t.theme}"`);
5899
5566
  for (const e in t)
5900
- tf(e), t.toast && nf(e), rf(e);
5567
+ Om(e), t.toast && Bm(e), Mm(e);
5901
5568
  };
5902
5569
  function Ji(t) {
5903
5570
  const e = xe(), n = z(), r = Y.innerParams.get(this);
@@ -5905,7 +5572,7 @@ function Ji(t) {
5905
5572
  Ce("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
5906
5573
  return;
5907
5574
  }
5908
- const o = of(t), a = Object.assign({}, r, o);
5575
+ const o = Dm(t), a = Object.assign({}, r, o);
5909
5576
  Zi(a), e.dataset.swal2Theme = a.theme, Ai(this, a), Y.innerParams.set(this, a), Object.defineProperties(this, {
5910
5577
  params: {
5911
5578
  value: Object.assign({}, this.params, t),
@@ -5914,7 +5581,7 @@ function Ji(t) {
5914
5581
  }
5915
5582
  });
5916
5583
  }
5917
- const of = (t) => {
5584
+ const Dm = (t) => {
5918
5585
  const e = {};
5919
5586
  return Object.keys(t).forEach((n) => {
5920
5587
  Yi(n) ? e[n] = t[n] : Ce(`Invalid parameter to update: ${n}`);
@@ -5926,9 +5593,9 @@ function Qi() {
5926
5593
  es(this);
5927
5594
  return;
5928
5595
  }
5929
- t.popup && E.swalCloseEventFinishedCallback && (E.swalCloseEventFinishedCallback(), delete E.swalCloseEventFinishedCallback), typeof e.didDestroy == "function" && e.didDestroy(), E.eventEmitter.emit("didDestroy"), af(this);
5596
+ t.popup && E.swalCloseEventFinishedCallback && (E.swalCloseEventFinishedCallback(), delete E.swalCloseEventFinishedCallback), typeof e.didDestroy == "function" && e.didDestroy(), E.eventEmitter.emit("didDestroy"), Rm(this);
5930
5597
  }
5931
- const af = (t) => {
5598
+ const Rm = (t) => {
5932
5599
  es(t), delete t.params, delete E.keydownHandler, delete E.keydownTarget, delete E.currentInstance;
5933
5600
  }, es = (t) => {
5934
5601
  t.isAwaitingPromise ? (Rr(Y, t), t.isAwaitingPromise = !0) : (Rr(Yt, t), Rr(Y, t), delete t.isAwaitingPromise, delete t.disableButtons, delete t.enableButtons, delete t.getInput, delete t.disableInput, delete t.enableInput, delete t.hideLoading, delete t.disableLoading, delete t.showValidationMessage, delete t.resetValidationMessage, delete t.close, delete t.closePopup, delete t.closeModal, delete t.closeToast, delete t.rejectPromise, delete t.update, delete t._destroy);
@@ -5936,7 +5603,7 @@ const af = (t) => {
5936
5603
  for (const n in t)
5937
5604
  t[n].delete(e);
5938
5605
  };
5939
- var sf = /* @__PURE__ */ Object.freeze({
5606
+ var Nm = /* @__PURE__ */ Object.freeze({
5940
5607
  __proto__: null,
5941
5608
  _destroy: Qi,
5942
5609
  close: vt,
@@ -5956,29 +5623,29 @@ var sf = /* @__PURE__ */ Object.freeze({
5956
5623
  showValidationMessage: Ki,
5957
5624
  update: Ji
5958
5625
  });
5959
- const lf = (t, e, n) => {
5960
- t.toast ? cf(t, e, n) : (df(e), mf(e), ff(t, e, n));
5961
- }, cf = (t, e, n) => {
5626
+ const jm = (t, e, n) => {
5627
+ t.toast ? Hm(t, e, n) : (zm(e), Um(e), Vm(t, e, n));
5628
+ }, Hm = (t, e, n) => {
5962
5629
  e.popup.onclick = () => {
5963
- t && (uf(t) || t.timer || t.input) || n(tn.close);
5630
+ t && (Fm(t) || t.timer || t.input) || n(tn.close);
5964
5631
  };
5965
- }, uf = (t) => !!(t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton);
5632
+ }, Fm = (t) => !!(t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton);
5966
5633
  let fr = !1;
5967
- const df = (t) => {
5634
+ const zm = (t) => {
5968
5635
  t.popup.onmousedown = () => {
5969
5636
  t.container.onmouseup = function(e) {
5970
5637
  t.container.onmouseup = () => {
5971
5638
  }, e.target === t.container && (fr = !0);
5972
5639
  };
5973
5640
  };
5974
- }, mf = (t) => {
5641
+ }, Um = (t) => {
5975
5642
  t.container.onmousedown = (e) => {
5976
5643
  e.target === t.container && e.preventDefault(), t.popup.onmouseup = function(n) {
5977
5644
  t.popup.onmouseup = () => {
5978
5645
  }, (n.target === t.popup || n.target instanceof HTMLElement && t.popup.contains(n.target)) && (fr = !0);
5979
5646
  };
5980
5647
  };
5981
- }, ff = (t, e, n) => {
5648
+ }, Vm = (t, e, n) => {
5982
5649
  e.container.onclick = (r) => {
5983
5650
  if (fr) {
5984
5651
  fr = !1;
@@ -5986,17 +5653,17 @@ const df = (t) => {
5986
5653
  }
5987
5654
  r.target === e.container && vr(t.allowOutsideClick) && n(tn.backdrop);
5988
5655
  };
5989
- }, pf = (t) => typeof t == "object" && t.jquery, Ia = (t) => t instanceof Element || pf(t), hf = (t) => {
5656
+ }, Wm = (t) => typeof t == "object" && t.jquery, Ia = (t) => t instanceof Element || Wm(t), Km = (t) => {
5990
5657
  const e = {};
5991
5658
  return typeof t[0] == "object" && !Ia(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, r) => {
5992
5659
  const o = t[r];
5993
5660
  typeof o == "string" || Ia(o) ? e[n] = o : o !== void 0 && Lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`);
5994
5661
  }), e;
5995
5662
  };
5996
- function gf(...t) {
5663
+ function Gm(...t) {
5997
5664
  return new this(...t);
5998
5665
  }
5999
- function vf(t) {
5666
+ function qm(t) {
6000
5667
  class e extends this {
6001
5668
  _main(r, o) {
6002
5669
  return super._main(r, Object.assign({}, t, o));
@@ -6004,29 +5671,29 @@ function vf(t) {
6004
5671
  }
6005
5672
  return e;
6006
5673
  }
6007
- const bf = () => E.timeout && E.timeout.getTimerLeft(), ts = () => {
5674
+ const Ym = () => E.timeout && E.timeout.getTimerLeft(), ts = () => {
6008
5675
  if (E.timeout)
6009
- return Td(), E.timeout.stop();
5676
+ return od(), E.timeout.stop();
6010
5677
  }, ns = () => {
6011
5678
  if (E.timeout) {
6012
5679
  const t = E.timeout.start();
6013
5680
  return ko(t), t;
6014
5681
  }
6015
- }, wf = () => {
5682
+ }, Xm = () => {
6016
5683
  const t = E.timeout;
6017
5684
  return t && (t.running ? ts() : ns());
6018
- }, yf = (t) => {
5685
+ }, Zm = (t) => {
6019
5686
  if (E.timeout) {
6020
5687
  const e = E.timeout.increase(t);
6021
5688
  return ko(e, !0), e;
6022
5689
  }
6023
- }, kf = () => !!(E.timeout && E.timeout.isRunning());
5690
+ }, Jm = () => !!(E.timeout && E.timeout.isRunning());
6024
5691
  let Aa = !1;
6025
5692
  const eo = {};
6026
- function Cf(t = "data-swal-template") {
6027
- eo[t] = this, Aa || (document.body.addEventListener("click", _f), Aa = !0);
5693
+ function Qm(t = "data-swal-template") {
5694
+ eo[t] = this, Aa || (document.body.addEventListener("click", ef), Aa = !0);
6028
5695
  }
6029
- const _f = (t) => {
5696
+ const ef = (t) => {
6030
5697
  for (let e = t.target; e && e !== document; e = e.parentNode)
6031
5698
  for (const n in eo) {
6032
5699
  const r = e.getAttribute(n);
@@ -6038,7 +5705,7 @@ const _f = (t) => {
6038
5705
  }
6039
5706
  }
6040
5707
  };
6041
- class Sf {
5708
+ class tf {
6042
5709
  constructor() {
6043
5710
  this.events = {};
6044
5711
  }
@@ -6103,27 +5770,27 @@ class Sf {
6103
5770
  this.events = {};
6104
5771
  }
6105
5772
  }
6106
- E.eventEmitter = new Sf();
6107
- const xf = (t, e) => {
5773
+ E.eventEmitter = new tf();
5774
+ const nf = (t, e) => {
6108
5775
  E.eventEmitter.on(t, e);
6109
- }, Tf = (t, e) => {
5776
+ }, rf = (t, e) => {
6110
5777
  E.eventEmitter.once(t, e);
6111
- }, If = (t, e) => {
5778
+ }, of = (t, e) => {
6112
5779
  if (!t) {
6113
5780
  E.eventEmitter.reset();
6114
5781
  return;
6115
5782
  }
6116
5783
  e ? E.eventEmitter.removeListener(t, e) : E.eventEmitter.removeAllListeners(t);
6117
5784
  };
6118
- var Af = /* @__PURE__ */ Object.freeze({
5785
+ var af = /* @__PURE__ */ Object.freeze({
6119
5786
  __proto__: null,
6120
- argsToParams: hf,
6121
- bindClickHandler: Cf,
6122
- clickCancel: pm,
5787
+ argsToParams: Km,
5788
+ bindClickHandler: Qm,
5789
+ clickCancel: Kd,
6123
5790
  clickConfirm: Ei,
6124
- clickDeny: fm,
5791
+ clickDeny: Wd,
6125
5792
  enableLoading: Xt,
6126
- fire: gf,
5793
+ fire: Gm,
6127
5794
  getActions: Bn,
6128
5795
  getCancelButton: Qt,
6129
5796
  getCloseButton: vo,
@@ -6134,33 +5801,33 @@ var Af = /* @__PURE__ */ Object.freeze({
6134
5801
  getFooter: vi,
6135
5802
  getHtmlContainer: ho,
6136
5803
  getIcon: Jt,
6137
- getIconContent: wd,
5804
+ getIconContent: Zu,
6138
5805
  getImage: gi,
6139
- getInputLabel: yd,
5806
+ getInputLabel: Ju,
6140
5807
  getLoader: en,
6141
5808
  getPopup: z,
6142
5809
  getProgressSteps: go,
6143
- getTimerLeft: bf,
5810
+ getTimerLeft: Ym,
6144
5811
  getTimerProgressBar: wr,
6145
5812
  getTitle: hi,
6146
5813
  getValidationMessage: br,
6147
- increaseTimer: yf,
5814
+ increaseTimer: Zm,
6148
5815
  isDeprecatedParameter: Xi,
6149
- isLoading: Cd,
6150
- isTimerRunning: kf,
5816
+ isLoading: ed,
5817
+ isTimerRunning: Jm,
6151
5818
  isUpdatableParameter: Yi,
6152
5819
  isValidParameter: qi,
6153
- isVisible: mm,
6154
- mixin: vf,
6155
- off: If,
6156
- on: xf,
6157
- once: Tf,
5820
+ isVisible: Vd,
5821
+ mixin: qm,
5822
+ off: of,
5823
+ on: nf,
5824
+ once: rf,
6158
5825
  resumeTimer: ns,
6159
5826
  showLoading: Xt,
6160
5827
  stopTimer: ts,
6161
- toggleTimer: wf
5828
+ toggleTimer: Xm
6162
5829
  });
6163
- class Ef {
5830
+ class sf {
6164
5831
  /**
6165
5832
  * @param {() => void} callback
6166
5833
  * @param {number} delay
@@ -6201,7 +5868,7 @@ class Ef {
6201
5868
  return this.running;
6202
5869
  }
6203
5870
  }
6204
- const rs = ["swal-title", "swal-html", "swal-footer"], Pf = (t) => {
5871
+ const rs = ["swal-title", "swal-html", "swal-footer"], lf = (t) => {
6205
5872
  const e = typeof t.template == "string" ? (
6206
5873
  /** @type {HTMLTemplateElement} */
6207
5874
  document.querySelector(t.template)
@@ -6209,8 +5876,8 @@ const rs = ["swal-title", "swal-html", "swal-footer"], Pf = (t) => {
6209
5876
  if (!e)
6210
5877
  return {};
6211
5878
  const n = e.content;
6212
- return Nf(n), Object.assign($f(n), Lf(n), Of(n), Bf(n), Mf(n), Df(n), Rf(n, rs));
6213
- }, $f = (t) => {
5879
+ return gf(n), Object.assign(cf(n), uf(n), df(n), mf(n), ff(n), pf(n), hf(n, rs));
5880
+ }, cf = (t) => {
6214
5881
  const e = {};
6215
5882
  return Array.from(t.querySelectorAll("swal-param")).forEach((r) => {
6216
5883
  Et(r, ["name", "value"]);
@@ -6220,7 +5887,7 @@ const rs = ["swal-title", "swal-html", "swal-footer"], Pf = (t) => {
6220
5887
  ), a = r.getAttribute("value");
6221
5888
  !o || !a || (typeof Gt[o] == "boolean" ? e[o] = a !== "false" : typeof Gt[o] == "object" ? e[o] = JSON.parse(a) : e[o] = a);
6222
5889
  }), e;
6223
- }, Lf = (t) => {
5890
+ }, uf = (t) => {
6224
5891
  const e = {};
6225
5892
  return Array.from(t.querySelectorAll("swal-function-param")).forEach((r) => {
6226
5893
  const o = (
@@ -6229,20 +5896,20 @@ const rs = ["swal-title", "swal-html", "swal-footer"], Pf = (t) => {
6229
5896
  ), a = r.getAttribute("value");
6230
5897
  !o || !a || (e[o] = new Function(`return ${a}`)());
6231
5898
  }), e;
6232
- }, Of = (t) => {
5899
+ }, df = (t) => {
6233
5900
  const e = {};
6234
5901
  return Array.from(t.querySelectorAll("swal-button")).forEach((r) => {
6235
5902
  Et(r, ["type", "color", "aria-label"]);
6236
5903
  const o = r.getAttribute("type");
6237
5904
  !o || !["confirm", "cancel", "deny"].includes(o) || (e[`${o}ButtonText`] = r.innerHTML, e[`show${mo(o)}Button`] = !0, r.hasAttribute("color") && (e[`${o}ButtonColor`] = r.getAttribute("color")), r.hasAttribute("aria-label") && (e[`${o}ButtonAriaLabel`] = r.getAttribute("aria-label")));
6238
5905
  }), e;
6239
- }, Bf = (t) => {
5906
+ }, mf = (t) => {
6240
5907
  const e = {}, n = t.querySelector("swal-image");
6241
5908
  return n && (Et(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt") || void 0)), e;
6242
- }, Mf = (t) => {
5909
+ }, ff = (t) => {
6243
5910
  const e = {}, n = t.querySelector("swal-icon");
6244
5911
  return n && (Et(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
6245
- }, Df = (t) => {
5912
+ }, pf = (t) => {
6246
5913
  const e = {}, n = t.querySelector("swal-input");
6247
5914
  n && (Et(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
6248
5915
  const r = Array.from(t.querySelectorAll("swal-input-option"));
@@ -6254,14 +5921,14 @@ const rs = ["swal-title", "swal-html", "swal-footer"], Pf = (t) => {
6254
5921
  const l = o.innerHTML;
6255
5922
  e.inputOptions[a] = l;
6256
5923
  })), e;
6257
- }, Rf = (t, e) => {
5924
+ }, hf = (t, e) => {
6258
5925
  const n = {};
6259
5926
  for (const r in e) {
6260
5927
  const o = e[r], a = t.querySelector(o);
6261
5928
  a && (Et(a, []), n[o.replace(/^swal-/, "")] = a.innerHTML.trim());
6262
5929
  }
6263
5930
  return n;
6264
- }, Nf = (t) => {
5931
+ }, gf = (t) => {
6265
5932
  const e = rs.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
6266
5933
  Array.from(t.children).forEach((n) => {
6267
5934
  const r = n.tagName.toLowerCase();
@@ -6271,26 +5938,26 @@ const rs = ["swal-title", "swal-html", "swal-footer"], Pf = (t) => {
6271
5938
  Array.from(t.attributes).forEach((n) => {
6272
5939
  e.indexOf(n.name) === -1 && Ce([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`, `${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`]);
6273
5940
  });
6274
- }, os = 10, jf = (t) => {
5941
+ }, os = 10, vf = (t) => {
6275
5942
  const e = xe(), n = z();
6276
5943
  typeof t.willOpen == "function" && t.willOpen(n), E.eventEmitter.emit("willOpen", n);
6277
5944
  const o = window.getComputedStyle(document.body).overflowY;
6278
- zf(e, n, t), setTimeout(() => {
6279
- Hf(e, n);
6280
- }, os), wo() && (Ff(e, t.scrollbarPadding, o), Cm()), !yr() && !E.previousActiveElement && (E.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), E.eventEmitter.emit("didOpen", n);
5945
+ yf(e, n, t), setTimeout(() => {
5946
+ bf(e, n);
5947
+ }, os), wo() && (wf(e, t.scrollbarPadding, o), em()), !yr() && !E.previousActiveElement && (E.previousActiveElement = document.activeElement), typeof t.didOpen == "function" && setTimeout(() => t.didOpen(n)), E.eventEmitter.emit("didOpen", n);
6281
5948
  }, pr = (t) => {
6282
5949
  const e = z();
6283
5950
  if (t.target !== e)
6284
5951
  return;
6285
5952
  const n = xe();
6286
5953
  e.removeEventListener("animationend", pr), e.removeEventListener("transitionend", pr), n.style.overflowY = "auto", De(n, h["no-transition"]);
6287
- }, Hf = (t, e) => {
5954
+ }, bf = (t, e) => {
6288
5955
  yi(e) ? (t.style.overflowY = "hidden", e.addEventListener("animationend", pr), e.addEventListener("transitionend", pr)) : t.style.overflowY = "auto";
6289
- }, Ff = (t, e, n) => {
6290
- _m(), e && n !== "hidden" && Pm(n), setTimeout(() => {
5956
+ }, wf = (t, e, n) => {
5957
+ tm(), e && n !== "hidden" && lm(n), setTimeout(() => {
6291
5958
  t.scrollTop = 0;
6292
5959
  });
6293
- }, zf = (t, e, n) => {
5960
+ }, yf = (t, e, n) => {
6294
5961
  U(t, n.showClass.backdrop), n.animation ? (e.style.setProperty("opacity", "0", "important"), ce(e, "grid"), setTimeout(() => {
6295
5962
  U(e, n.showClass.popup), e.style.removeProperty("opacity");
6296
5963
  }, os)) : ce(e, "grid"), U([document.documentElement, document.body], h.shown), n.heightAuto && n.backdrop && !n.toast && U([document.documentElement, document.body], h["height-auto"]);
@@ -6309,17 +5976,17 @@ var Ea = {
6309
5976
  */
6310
5977
  url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
6311
5978
  };
6312
- function Uf(t) {
5979
+ function kf(t) {
6313
5980
  t.inputValidator || (t.input === "email" && (t.inputValidator = Ea.email), t.input === "url" && (t.inputValidator = Ea.url));
6314
5981
  }
6315
- function Vf(t) {
5982
+ function Cf(t) {
6316
5983
  (!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (Ce('Target parameter is not valid, defaulting to "body"'), t.target = "body");
6317
5984
  }
6318
- function Wf(t) {
6319
- Uf(t), t.showLoaderOnConfirm && !t.preConfirm && Ce(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
5985
+ function _f(t) {
5986
+ kf(t), t.showLoaderOnConfirm && !t.preConfirm && Ce(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
6320
5987
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
6321
- https://sweetalert2.github.io/#ajax-request`), Vf(t), typeof t.title == "string" && (t.title = t.title.split(`
6322
- `).join("<br />")), Bd(t);
5988
+ https://sweetalert2.github.io/#ajax-request`), Cf(t), typeof t.title == "string" && (t.title = t.title.split(`
5989
+ `).join("<br />")), md(t);
6323
5990
  }
6324
5991
  let Ge;
6325
5992
  var Zn = /* @__PURE__ */ new WeakMap();
@@ -6329,11 +5996,11 @@ class oe {
6329
5996
  * @this {SweetAlert}
6330
5997
  */
6331
5998
  constructor(...e) {
6332
- if (dd(this, Zn, void 0), typeof window > "u")
5999
+ if (Uu(this, Zn, void 0), typeof window > "u")
6333
6000
  return;
6334
6001
  Ge = this;
6335
6002
  const n = Object.freeze(this.constructor.argsToParams(e));
6336
- this.params = n, this.isAwaitingPromise = !1, md(Zn, this, this._main(Ge.params));
6003
+ this.params = n, this.isAwaitingPromise = !1, Vu(Zn, this, this._main(Ge.params));
6337
6004
  }
6338
6005
  _main(e, n = {}) {
6339
6006
  if (Zi(Object.assign({}, n, e)), E.currentInstance) {
@@ -6345,10 +6012,10 @@ class oe {
6345
6012
  }), wo() && Li();
6346
6013
  }
6347
6014
  E.currentInstance = Ge;
6348
- const r = Gf(e, n);
6349
- Wf(r), Object.freeze(r), E.timeout && (E.timeout.stop(), delete E.timeout), clearTimeout(E.restoreFocusTimeout);
6350
- const o = qf(Ge);
6351
- return Ai(Ge, r), Y.innerParams.set(Ge, r), Kf(Ge, o, r);
6015
+ const r = xf(e, n);
6016
+ _f(r), Object.freeze(r), E.timeout && (E.timeout.stop(), delete E.timeout), clearTimeout(E.restoreFocusTimeout);
6017
+ const o = Tf(Ge);
6018
+ return Ai(Ge, r), Y.innerParams.set(Ge, r), Sf(Ge, o, r);
6352
6019
  }
6353
6020
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
6354
6021
  then(e) {
@@ -6358,7 +6025,7 @@ class oe {
6358
6025
  return wa(Zn, this).finally(e);
6359
6026
  }
6360
6027
  }
6361
- const Kf = (t, e, n) => new Promise((r, o) => {
6028
+ const Sf = (t, e, n) => new Promise((r, o) => {
6362
6029
  const a = (l) => {
6363
6030
  t.close({
6364
6031
  isDismissed: !0,
@@ -6368,22 +6035,22 @@ const Kf = (t, e, n) => new Promise((r, o) => {
6368
6035
  });
6369
6036
  };
6370
6037
  Yt.swalPromiseResolve.set(t, r), Yt.swalPromiseReject.set(t, o), e.confirmButton.onclick = () => {
6371
- Gm(t);
6038
+ xm(t);
6372
6039
  }, e.denyButton.onclick = () => {
6373
- qm(t);
6040
+ Tm(t);
6374
6041
  }, e.cancelButton.onclick = () => {
6375
- Ym(t, a);
6042
+ Im(t, a);
6376
6043
  }, e.closeButton.onclick = () => {
6377
6044
  a(tn.close);
6378
- }, lf(n, e, a), hm(E, n, a), Nm(t, n), jf(n), Yf(E, n, a), Xf(e, n), setTimeout(() => {
6045
+ }, jm(n, e, a), Gd(E, n, a), gm(t, n), vf(n), If(E, n, a), Af(e, n), setTimeout(() => {
6379
6046
  e.container.scrollTop = 0;
6380
6047
  });
6381
- }), Gf = (t, e) => {
6382
- const n = Pf(t), r = Object.assign({}, Gt, e, n, t);
6048
+ }), xf = (t, e) => {
6049
+ const n = lf(t), r = Object.assign({}, Gt, e, n, t);
6383
6050
  return r.showClass = Object.assign({}, Gt.showClass, r.showClass), r.hideClass = Object.assign({}, Gt.hideClass, r.hideClass), r.animation === !1 && (r.showClass = {
6384
6051
  backdrop: "swal2-noanimation"
6385
6052
  }, r.hideClass = {}), r;
6386
- }, qf = (t) => {
6053
+ }, Tf = (t) => {
6387
6054
  const e = {
6388
6055
  popup: z(),
6389
6056
  container: xe(),
@@ -6397,28 +6064,28 @@ const Kf = (t, e, n) => new Promise((r, o) => {
6397
6064
  progressSteps: go()
6398
6065
  };
6399
6066
  return Y.domCache.set(t, e), e;
6400
- }, Yf = (t, e, n) => {
6067
+ }, If = (t, e, n) => {
6401
6068
  const r = wr();
6402
- ve(r), e.timer && (t.timeout = new Ef(() => {
6069
+ ve(r), e.timer && (t.timeout = new sf(() => {
6403
6070
  n("timer"), delete t.timeout;
6404
6071
  }, e.timer), e.timerProgressBar && (ce(r), Pe(r, e, "timerProgressBar"), setTimeout(() => {
6405
6072
  t.timeout && t.timeout.running && ko(e.timer);
6406
6073
  })));
6407
- }, Xf = (t, e) => {
6074
+ }, Af = (t, e) => {
6408
6075
  if (!e.toast) {
6409
6076
  if (!vr(e.allowEnterKey)) {
6410
- pi("allowEnterKey"), Qf();
6077
+ pi("allowEnterKey"), $f();
6411
6078
  return;
6412
6079
  }
6413
- Zf(t) || Jf(t, e) || Qr(-1, 1);
6080
+ Ef(t) || Pf(t, e) || Qr(-1, 1);
6414
6081
  }
6415
- }, Zf = (t) => {
6082
+ }, Ef = (t) => {
6416
6083
  const e = Array.from(t.popup.querySelectorAll("[autofocus]"));
6417
6084
  for (const n of e)
6418
6085
  if (n instanceof HTMLElement && Ae(n))
6419
6086
  return n.focus(), !0;
6420
6087
  return !1;
6421
- }, Jf = (t, e) => e.focusDeny && Ae(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Ae(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Ae(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, Qf = () => {
6088
+ }, Pf = (t, e) => e.focusDeny && Ae(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Ae(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Ae(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, $f = () => {
6422
6089
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
6423
6090
  };
6424
6091
  oe.prototype.disableButtons = Ui;
@@ -6437,8 +6104,8 @@ oe.prototype.closeToast = vt;
6437
6104
  oe.prototype.rejectPromise = Mi;
6438
6105
  oe.prototype.update = Ji;
6439
6106
  oe.prototype._destroy = Qi;
6440
- Object.assign(oe, Af);
6441
- Object.keys(sf).forEach((t) => {
6107
+ Object.assign(oe, af);
6108
+ Object.keys(Nm).forEach((t) => {
6442
6109
  oe[t] = function(...e) {
6443
6110
  return Ge && Ge[t] ? Ge[t](...e) : null;
6444
6111
  };
@@ -6460,9 +6127,9 @@ typeof document < "u" && (function(t, e) {
6460
6127
  const {
6461
6128
  entries: as,
6462
6129
  setPrototypeOf: Pa,
6463
- isFrozen: ep,
6464
- getPrototypeOf: tp,
6465
- getOwnPropertyDescriptor: np
6130
+ isFrozen: Lf,
6131
+ getPrototypeOf: Of,
6132
+ getOwnPropertyDescriptor: Bf
6466
6133
  } = Object;
6467
6134
  let {
6468
6135
  freeze: _e,
@@ -6488,7 +6155,7 @@ no || (no = function(e) {
6488
6155
  r[o - 1] = arguments[o];
6489
6156
  return new e(...r);
6490
6157
  });
6491
- const Jn = Se(Array.prototype.forEach), rp = Se(Array.prototype.lastIndexOf), $a = Se(Array.prototype.pop), dn = Se(Array.prototype.push), op = Se(Array.prototype.splice), tr = Se(String.prototype.toLowerCase), Nr = Se(String.prototype.toString), jr = Se(String.prototype.match), mn = Se(String.prototype.replace), ap = Se(String.prototype.indexOf), ip = Se(String.prototype.trim), Ee = Se(Object.prototype.hasOwnProperty), we = Se(RegExp.prototype.test), fn = sp(TypeError);
6158
+ const Jn = Se(Array.prototype.forEach), Mf = Se(Array.prototype.lastIndexOf), $a = Se(Array.prototype.pop), dn = Se(Array.prototype.push), Df = Se(Array.prototype.splice), tr = Se(String.prototype.toLowerCase), Nr = Se(String.prototype.toString), jr = Se(String.prototype.match), mn = Se(String.prototype.replace), Rf = Se(String.prototype.indexOf), Nf = Se(String.prototype.trim), Ee = Se(Object.prototype.hasOwnProperty), we = Se(RegExp.prototype.test), fn = jf(TypeError);
6492
6159
  function Se(t) {
6493
6160
  return function(e) {
6494
6161
  e instanceof RegExp && (e.lastIndex = 0);
@@ -6497,7 +6164,7 @@ function Se(t) {
6497
6164
  return to(t, e, r);
6498
6165
  };
6499
6166
  }
6500
- function sp(t) {
6167
+ function jf(t) {
6501
6168
  return function() {
6502
6169
  for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
6503
6170
  n[r] = arguments[r];
@@ -6512,13 +6179,13 @@ function D(t, e) {
6512
6179
  let o = e[r];
6513
6180
  if (typeof o == "string") {
6514
6181
  const a = n(o);
6515
- a !== o && (ep(e) || (e[r] = a), o = a);
6182
+ a !== o && (Lf(e) || (e[r] = a), o = a);
6516
6183
  }
6517
6184
  t[o] = !0;
6518
6185
  }
6519
6186
  return t;
6520
6187
  }
6521
- function lp(t) {
6188
+ function Hf(t) {
6522
6189
  for (let e = 0; e < t.length; e++)
6523
6190
  Ee(t, e) || (t[e] = null);
6524
6191
  return t;
@@ -6526,44 +6193,44 @@ function lp(t) {
6526
6193
  function Ke(t) {
6527
6194
  const e = er(null);
6528
6195
  for (const [n, r] of as(t))
6529
- Ee(t, n) && (Array.isArray(r) ? e[n] = lp(r) : r && typeof r == "object" && r.constructor === Object ? e[n] = Ke(r) : e[n] = r);
6196
+ Ee(t, n) && (Array.isArray(r) ? e[n] = Hf(r) : r && typeof r == "object" && r.constructor === Object ? e[n] = Ke(r) : e[n] = r);
6530
6197
  return e;
6531
6198
  }
6532
6199
  function pn(t, e) {
6533
6200
  for (; t !== null; ) {
6534
- const r = np(t, e);
6201
+ const r = Bf(t, e);
6535
6202
  if (r) {
6536
6203
  if (r.get)
6537
6204
  return Se(r.get);
6538
6205
  if (typeof r.value == "function")
6539
6206
  return Se(r.value);
6540
6207
  }
6541
- t = tp(t);
6208
+ t = Of(t);
6542
6209
  }
6543
6210
  function n() {
6544
6211
  return null;
6545
6212
  }
6546
6213
  return n;
6547
6214
  }
6548
- const La = _e(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Hr = _e(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Fr = _e(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), cp = _e(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), zr = _e(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), up = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Oa = _e(["#text"]), Ba = _e(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ur = _e(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ma = _e(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), dp = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), mp = Re(/<%[\w\W]*|[\w\W]*%>/gm), fp = Re(/\$\{[\w\W]*/gm), pp = Re(/^data-[\-\w.\u00B7-\uFFFF]+$/), hp = Re(/^aria-[\-\w]+$/), is = Re(
6215
+ const La = _e(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Hr = _e(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Fr = _e(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ff = _e(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), zr = _e(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), zf = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Oa = _e(["#text"]), Ba = _e(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ur = _e(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ma = _e(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Uf = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Vf = Re(/<%[\w\W]*|[\w\W]*%>/gm), Wf = Re(/\$\{[\w\W]*/gm), Kf = Re(/^data-[\-\w.\u00B7-\uFFFF]+$/), Gf = Re(/^aria-[\-\w]+$/), is = Re(
6549
6216
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
6550
6217
  // eslint-disable-line no-useless-escape
6551
- ), gp = Re(/^(?:\w+script|data):/i), vp = Re(
6218
+ ), qf = Re(/^(?:\w+script|data):/i), Yf = Re(
6552
6219
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
6553
6220
  // eslint-disable-line no-control-regex
6554
- ), ss = Re(/^html$/i), bp = Re(/^[a-z][.\w]*(-[.\w]+)+$/i);
6221
+ ), ss = Re(/^html$/i), Xf = Re(/^[a-z][.\w]*(-[.\w]+)+$/i);
6555
6222
  var Da = /* @__PURE__ */ Object.freeze({
6556
6223
  __proto__: null,
6557
- ARIA_ATTR: hp,
6558
- ATTR_WHITESPACE: vp,
6559
- CUSTOM_ELEMENT: bp,
6560
- DATA_ATTR: pp,
6224
+ ARIA_ATTR: Gf,
6225
+ ATTR_WHITESPACE: Yf,
6226
+ CUSTOM_ELEMENT: Xf,
6227
+ DATA_ATTR: Kf,
6561
6228
  DOCTYPE_NAME: ss,
6562
- ERB_EXPR: mp,
6229
+ ERB_EXPR: Vf,
6563
6230
  IS_ALLOWED_URI: is,
6564
- IS_SCRIPT_OR_DATA: gp,
6565
- MUSTACHE_EXPR: dp,
6566
- TMPLIT_EXPR: fp
6231
+ IS_SCRIPT_OR_DATA: qf,
6232
+ MUSTACHE_EXPR: Uf,
6233
+ TMPLIT_EXPR: Wf
6567
6234
  });
6568
6235
  const hn = {
6569
6236
  element: 1,
@@ -6572,9 +6239,9 @@ const hn = {
6572
6239
  progressingInstruction: 7,
6573
6240
  comment: 8,
6574
6241
  document: 9
6575
- }, wp = function() {
6242
+ }, Zf = function() {
6576
6243
  return typeof window > "u" ? null : window;
6577
- }, yp = function(e, n) {
6244
+ }, Jf = function(e, n) {
6578
6245
  if (typeof e != "object" || typeof e.createPolicy != "function")
6579
6246
  return null;
6580
6247
  let r = null;
@@ -6607,7 +6274,7 @@ const hn = {
6607
6274
  };
6608
6275
  };
6609
6276
  function ls() {
6610
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wp();
6277
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Zf();
6611
6278
  const e = (A) => ls(A);
6612
6279
  if (e.version = "3.3.3", e.removed = [], !t || !t.document || t.document.nodeType !== hn.document || !t.Element)
6613
6280
  return e.isSupported = !1, e;
@@ -6718,10 +6385,10 @@ function ls() {
6718
6385
  throw fn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
6719
6386
  C = d.TRUSTED_TYPES_POLICY, I = C.createHTML("");
6720
6387
  } else
6721
- C === void 0 && (C = yp(p, o)), C !== null && typeof I == "string" && (I = C.createHTML(""));
6388
+ C === void 0 && (C = Jf(p, o)), C !== null && typeof I == "string" && (I = C.createHTML(""));
6722
6389
  _e && _e(d), Ht = d;
6723
6390
  }
6724
- }, Oo = D({}, [...Hr, ...Fr, ...cp]), Bo = D({}, [...zr, ...up]), vs = function(d) {
6391
+ }, Oo = D({}, [...Hr, ...Fr, ...Ff]), Bo = D({}, [...zr, ...zf]), vs = function(d) {
6725
6392
  let k = L(d);
6726
6393
  (!k || !k.tagName) && (k = {
6727
6394
  namespaceURI: jt,
@@ -6850,7 +6517,7 @@ function ls() {
6850
6517
  ) return !1;
6851
6518
  } else if (!Sr[k]) {
6852
6519
  if (!we(Me, mn(T, et, ""))) {
6853
- if (!((k === "src" || k === "xlink:href" || k === "href") && d !== "script" && ap(T, "data:") === 0 && Eo[d])) {
6520
+ if (!((k === "src" || k === "xlink:href" || k === "href") && d !== "script" && Rf(T, "data:") === 0 && Eo[d])) {
6854
6521
  if (!(jn && !we(Qe, mn(T, et, "")))) {
6855
6522
  if (T)
6856
6523
  return !1;
@@ -6885,7 +6552,7 @@ function ls() {
6885
6552
  namespaceURI: Te,
6886
6553
  value: at
6887
6554
  } = he, Ft = se(ae), Er = at;
6888
- let de = ae === "value" ? Er : ip(Er);
6555
+ let de = ae === "value" ? Er : Nf(Er);
6889
6556
  if (T.attrName = Ft, T.attrValue = de, T.keepAttr = !0, T.forceKeepAttr = void 0, ot(P.uponSanitizeAttribute, d, T), de = T.attrValue, zn && (Ft === "id" || Ft === "name") && (yt(ae, d), de = Cr + de), Mt && we(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, de)) {
6890
6557
  yt(ae, d);
6891
6558
  continue;
@@ -6918,380 +6585,714 @@ function ls() {
6918
6585
  de = C.createHTML(de);
6919
6586
  break;
6920
6587
  }
6921
- case "TrustedScriptURL": {
6922
- de = C.createScriptURL(de);
6923
- break;
6588
+ case "TrustedScriptURL": {
6589
+ de = C.createScriptURL(de);
6590
+ break;
6591
+ }
6592
+ }
6593
+ if (de !== Er)
6594
+ try {
6595
+ Te ? d.setAttributeNS(Te, ae, de) : d.setAttribute(ae, de), Ar(d) ? We(d) : $a(e.removed);
6596
+ } catch {
6597
+ yt(ae, d);
6598
+ }
6599
+ }
6600
+ ot(P.afterSanitizeAttributes, d, null);
6601
+ }, bs = function A(d) {
6602
+ let k = null;
6603
+ const T = Do(d);
6604
+ for (ot(P.beforeSanitizeShadowDOM, d, null); k = T.nextNode(); )
6605
+ ot(P.uponSanitizeShadowNode, k, null), No(k), Fo(k), k.content instanceof a && A(k.content);
6606
+ ot(P.afterSanitizeShadowDOM, d, null);
6607
+ };
6608
+ return e.sanitize = function(A) {
6609
+ let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, T = null, Q = null, he = null;
6610
+ if (xr = !A, xr && (A = "<!-->"), typeof A != "string" && !Ro(A))
6611
+ if (typeof A.toString == "function") {
6612
+ if (A = A.toString(), typeof A != "string")
6613
+ throw fn("dirty is not a string, aborting");
6614
+ } else
6615
+ throw fn("toString is not a function");
6616
+ if (!e.isSupported)
6617
+ return A;
6618
+ if (rn || Ir(d), e.removed = [], typeof A == "string" && (sn = !1), sn) {
6619
+ if (A.nodeName) {
6620
+ const at = se(A.nodeName);
6621
+ if (!V[at] || dt[at])
6622
+ throw fn("root node is forbidden and cannot be sanitized in-place");
6623
+ }
6624
+ } else if (A instanceof s)
6625
+ k = Mo("<!---->"), T = k.ownerDocument.importNode(A, !0), T.nodeType === hn.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? k = T : k.appendChild(T);
6626
+ else {
6627
+ if (!ft && !mt && !nt && // eslint-disable-next-line unicorn/prefer-includes
6628
+ A.indexOf("<") === -1)
6629
+ return C && Rt ? C.createHTML(A) : A;
6630
+ if (k = Mo(A), !k)
6631
+ return ft ? null : Rt ? I : "";
6632
+ }
6633
+ k && on && We(k.firstChild);
6634
+ const ae = Do(sn ? A : k);
6635
+ for (; Q = ae.nextNode(); )
6636
+ No(Q), Fo(Q), Q.content instanceof a && bs(Q.content);
6637
+ if (sn)
6638
+ return A;
6639
+ if (ft) {
6640
+ if (Dt)
6641
+ for (he = Oe.call(k.ownerDocument); k.firstChild; )
6642
+ he.appendChild(k.firstChild);
6643
+ else
6644
+ he = k;
6645
+ return (te.shadowroot || te.shadowrootmode) && (he = Be.call(r, he, !0)), he;
6646
+ }
6647
+ let Te = nt ? k.outerHTML : k.innerHTML;
6648
+ return nt && V["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && we(ss, k.ownerDocument.doctype.name) && (Te = "<!DOCTYPE " + k.ownerDocument.doctype.name + `>
6649
+ ` + Te), mt && Jn([W, pe, be], (at) => {
6650
+ Te = mn(Te, at, " ");
6651
+ }), C && Rt ? C.createHTML(Te) : Te;
6652
+ }, e.setConfig = function() {
6653
+ let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6654
+ Ir(A), rn = !0;
6655
+ }, e.clearConfig = function() {
6656
+ Ht = null, rn = !1;
6657
+ }, e.isValidAttribute = function(A, d, k) {
6658
+ Ht || Ir({});
6659
+ const T = se(A), Q = se(d);
6660
+ return jo(T, Q, k);
6661
+ }, e.addHook = function(A, d) {
6662
+ typeof d == "function" && dn(P[A], d);
6663
+ }, e.removeHook = function(A, d) {
6664
+ if (d !== void 0) {
6665
+ const k = Mf(P[A], d);
6666
+ return k === -1 ? void 0 : Df(P[A], k, 1)[0];
6667
+ }
6668
+ return $a(P[A]);
6669
+ }, e.removeHooks = function(A) {
6670
+ P[A] = [];
6671
+ }, e.removeAllHooks = function() {
6672
+ P = Ra();
6673
+ }, e;
6674
+ }
6675
+ var Io = ls();
6676
+ const Qf = (t) => !(!t || !(t instanceof HTMLElement));
6677
+ class cs {
6678
+ get IsVisible() {
6679
+ return Pt.isVisible();
6680
+ }
6681
+ /** @deprecated Use ConfirmWithOptionsAsync instead. */
6682
+ async CreateConfirmAsync(e) {
6683
+ return this.ConfirmWithOptionsAsync(e);
6684
+ }
6685
+ /**
6686
+ * Exibe um confirm com as opções informadas.
6687
+ * @param options
6688
+ * @returns
6689
+ */
6690
+ async ConfirmWithOptionsAsync(e) {
6691
+ return e.confirmLabel ??= "sim", e.rejectLabel ??= "não", e.confirmColor ??= "primary", e.rejectColor ??= "primary", Qf(e.target) ? this.CreatePopoverAsync(e).then((n) => n === !0) : new Promise((n) => {
6692
+ Pt.fire({
6693
+ showCancelButton: !0,
6694
+ allowEscapeKey: !1,
6695
+ allowOutsideClick: !1,
6696
+ icon: "question",
6697
+ title: e.title,
6698
+ html: Io.sanitize(e.text),
6699
+ confirmButtonText: e.confirmLabel,
6700
+ cancelButtonText: e.rejectLabel,
6701
+ confirmButtonColor: `var(--${e.confirmColor}-color)`,
6702
+ cancelButtonColor: `var(--${e.rejectColor}-color)`
6703
+ }).then((r) => {
6704
+ n(r.isConfirmed === !0);
6705
+ });
6706
+ });
6707
+ }
6708
+ /**
6709
+ * Exibe um confirm simples com as opções padrões
6710
+ *
6711
+ * @param message Mensagem do confirm
6712
+ * @param target Elemento HTML ao qual o confirm será alinhado (exibido como popover). Se não for informado, o confirm será exibido como um dialog centralizado.
6713
+ * @returns Retorna uma promise que resolve para true se o usuário confirmou, ou false se rejeitou
6714
+ */
6715
+ async ConfirmAsync(e, n) {
6716
+ return this.ConfirmWithOptionsAsync({
6717
+ text: e,
6718
+ target: n
6719
+ });
6720
+ }
6721
+ async CreatePopoverAsync(e) {
6722
+ let n;
6723
+ const r = new Promise((a) => {
6724
+ n = a;
6725
+ }), o = new CustomEvent(
6726
+ "sfconfirm:popup",
6727
+ {
6728
+ detail: {
6729
+ target: e.target ?? document.body,
6730
+ options: e,
6731
+ resolve: n
6732
+ },
6733
+ bubbles: !0,
6734
+ cancelable: !0,
6735
+ composed: !0
6736
+ }
6737
+ );
6738
+ return document.dispatchEvent(o), r;
6739
+ }
6740
+ }
6741
+ const ep = () => new cs(), Fp = () => new cs();
6742
+ function tp(t) {
6743
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6744
+ }
6745
+ var nr = { exports: {} }, np = nr.exports, Na;
6746
+ function rp() {
6747
+ return Na || (Na = 1, (function(t) {
6748
+ (function(e, n) {
6749
+ t.exports ? t.exports = n() : e.log = n();
6750
+ })(np, function() {
6751
+ var e = function() {
6752
+ }, n = "undefined", r = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), o = [
6753
+ "trace",
6754
+ "debug",
6755
+ "info",
6756
+ "warn",
6757
+ "error"
6758
+ ], a = {}, l = null;
6759
+ function s(g, y) {
6760
+ var v = g[y];
6761
+ if (typeof v.bind == "function")
6762
+ return v.bind(g);
6763
+ try {
6764
+ return Function.prototype.bind.call(v, g);
6765
+ } catch {
6766
+ return function() {
6767
+ return Function.prototype.apply.apply(v, [g, arguments]);
6768
+ };
6769
+ }
6770
+ }
6771
+ function i() {
6772
+ console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
6773
+ }
6774
+ function c(g) {
6775
+ return g === "debug" && (g = "log"), typeof console === n ? !1 : g === "trace" && r ? i : console[g] !== void 0 ? s(console, g) : console.log !== void 0 ? s(console, "log") : e;
6776
+ }
6777
+ function u() {
6778
+ for (var g = this.getLevel(), y = 0; y < o.length; y++) {
6779
+ var v = o[y];
6780
+ this[v] = y < g ? e : this.methodFactory(v, g, this.name);
6781
+ }
6782
+ if (this.log = this.debug, typeof console === n && g < this.levels.SILENT)
6783
+ return "No console available for logging";
6784
+ }
6785
+ function m(g) {
6786
+ return function() {
6787
+ typeof console !== n && (u.call(this), this[g].apply(this, arguments));
6788
+ };
6789
+ }
6790
+ function f(g, y, v) {
6791
+ return c(g) || m.apply(this, arguments);
6792
+ }
6793
+ function p(g, y) {
6794
+ var v = this, S, L, C, I = "loglevel";
6795
+ typeof g == "string" ? I += ":" + g : typeof g == "symbol" && (I = void 0);
6796
+ function ee(P) {
6797
+ var W = (o[P] || "silent").toUpperCase();
6798
+ if (!(typeof window === n || !I)) {
6799
+ try {
6800
+ window.localStorage[I] = W;
6801
+ return;
6802
+ } catch {
6803
+ }
6804
+ try {
6805
+ window.document.cookie = encodeURIComponent(I) + "=" + W + ";";
6806
+ } catch {
6807
+ }
6808
+ }
6809
+ }
6810
+ function ue() {
6811
+ var P;
6812
+ if (!(typeof window === n || !I)) {
6813
+ try {
6814
+ P = window.localStorage[I];
6815
+ } catch {
6816
+ }
6817
+ if (typeof P === n)
6818
+ try {
6819
+ var W = window.document.cookie, pe = encodeURIComponent(I), be = W.indexOf(pe + "=");
6820
+ be !== -1 && (P = /^([^;]+)/.exec(
6821
+ W.slice(be + pe.length + 1)
6822
+ )[1]);
6823
+ } catch {
6824
+ }
6825
+ return v.levels[P] === void 0 && (P = void 0), P;
6826
+ }
6827
+ }
6828
+ function Oe() {
6829
+ if (!(typeof window === n || !I)) {
6830
+ try {
6831
+ window.localStorage.removeItem(I);
6832
+ } catch {
6833
+ }
6834
+ try {
6835
+ window.document.cookie = encodeURIComponent(I) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
6836
+ } catch {
6837
+ }
6924
6838
  }
6925
6839
  }
6926
- if (de !== Er)
6927
- try {
6928
- Te ? d.setAttributeNS(Te, ae, de) : d.setAttribute(ae, de), Ar(d) ? We(d) : $a(e.removed);
6929
- } catch {
6930
- yt(ae, d);
6840
+ function fe(P) {
6841
+ var W = P;
6842
+ if (typeof W == "string" && v.levels[W.toUpperCase()] !== void 0 && (W = v.levels[W.toUpperCase()]), typeof W == "number" && W >= 0 && W <= v.levels.SILENT)
6843
+ return W;
6844
+ throw new TypeError("log.setLevel() called with invalid level: " + P);
6931
6845
  }
6932
- }
6933
- ot(P.afterSanitizeAttributes, d, null);
6934
- }, bs = function A(d) {
6935
- let k = null;
6936
- const T = Do(d);
6937
- for (ot(P.beforeSanitizeShadowDOM, d, null); k = T.nextNode(); )
6938
- ot(P.uponSanitizeShadowNode, k, null), No(k), Fo(k), k.content instanceof a && A(k.content);
6939
- ot(P.afterSanitizeShadowDOM, d, null);
6940
- };
6941
- return e.sanitize = function(A) {
6942
- let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, T = null, Q = null, he = null;
6943
- if (xr = !A, xr && (A = "<!-->"), typeof A != "string" && !Ro(A))
6944
- if (typeof A.toString == "function") {
6945
- if (A = A.toString(), typeof A != "string")
6946
- throw fn("dirty is not a string, aborting");
6947
- } else
6948
- throw fn("toString is not a function");
6949
- if (!e.isSupported)
6950
- return A;
6951
- if (rn || Ir(d), e.removed = [], typeof A == "string" && (sn = !1), sn) {
6952
- if (A.nodeName) {
6953
- const at = se(A.nodeName);
6954
- if (!V[at] || dt[at])
6955
- throw fn("root node is forbidden and cannot be sanitized in-place");
6846
+ v.name = g, v.levels = {
6847
+ TRACE: 0,
6848
+ DEBUG: 1,
6849
+ INFO: 2,
6850
+ WARN: 3,
6851
+ ERROR: 4,
6852
+ SILENT: 5
6853
+ }, v.methodFactory = y || f, v.getLevel = function() {
6854
+ return C ?? L ?? S;
6855
+ }, v.setLevel = function(P, W) {
6856
+ return C = fe(P), W !== !1 && ee(C), u.call(v);
6857
+ }, v.setDefaultLevel = function(P) {
6858
+ L = fe(P), ue() || v.setLevel(P, !1);
6859
+ }, v.resetLevel = function() {
6860
+ C = null, Oe(), u.call(v);
6861
+ }, v.enableAll = function(P) {
6862
+ v.setLevel(v.levels.TRACE, P);
6863
+ }, v.disableAll = function(P) {
6864
+ v.setLevel(v.levels.SILENT, P);
6865
+ }, v.rebuild = function() {
6866
+ if (l !== v && (S = fe(l.getLevel())), u.call(v), l === v)
6867
+ for (var P in a)
6868
+ a[P].rebuild();
6869
+ }, S = fe(
6870
+ l ? l.getLevel() : "WARN"
6871
+ );
6872
+ var Be = ue();
6873
+ Be != null && (C = fe(Be)), u.call(v);
6956
6874
  }
6957
- } else if (A instanceof s)
6958
- k = Mo("<!---->"), T = k.ownerDocument.importNode(A, !0), T.nodeType === hn.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? k = T : k.appendChild(T);
6959
- else {
6960
- if (!ft && !mt && !nt && // eslint-disable-next-line unicorn/prefer-includes
6961
- A.indexOf("<") === -1)
6962
- return C && Rt ? C.createHTML(A) : A;
6963
- if (k = Mo(A), !k)
6964
- return ft ? null : Rt ? I : "";
6965
- }
6966
- k && on && We(k.firstChild);
6967
- const ae = Do(sn ? A : k);
6968
- for (; Q = ae.nextNode(); )
6969
- No(Q), Fo(Q), Q.content instanceof a && bs(Q.content);
6970
- if (sn)
6971
- return A;
6972
- if (ft) {
6973
- if (Dt)
6974
- for (he = Oe.call(k.ownerDocument); k.firstChild; )
6975
- he.appendChild(k.firstChild);
6976
- else
6977
- he = k;
6978
- return (te.shadowroot || te.shadowrootmode) && (he = Be.call(r, he, !0)), he;
6979
- }
6980
- let Te = nt ? k.outerHTML : k.innerHTML;
6981
- return nt && V["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && we(ss, k.ownerDocument.doctype.name) && (Te = "<!DOCTYPE " + k.ownerDocument.doctype.name + `>
6982
- ` + Te), mt && Jn([W, pe, be], (at) => {
6983
- Te = mn(Te, at, " ");
6984
- }), C && Rt ? C.createHTML(Te) : Te;
6985
- }, e.setConfig = function() {
6986
- let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6987
- Ir(A), rn = !0;
6988
- }, e.clearConfig = function() {
6989
- Ht = null, rn = !1;
6990
- }, e.isValidAttribute = function(A, d, k) {
6991
- Ht || Ir({});
6992
- const T = se(A), Q = se(d);
6993
- return jo(T, Q, k);
6994
- }, e.addHook = function(A, d) {
6995
- typeof d == "function" && dn(P[A], d);
6996
- }, e.removeHook = function(A, d) {
6997
- if (d !== void 0) {
6998
- const k = rp(P[A], d);
6999
- return k === -1 ? void 0 : op(P[A], k, 1)[0];
7000
- }
7001
- return $a(P[A]);
7002
- }, e.removeHooks = function(A) {
7003
- P[A] = [];
7004
- }, e.removeAllHooks = function() {
7005
- P = Ra();
7006
- }, e;
6875
+ l = new p(), l.getLogger = function(y) {
6876
+ if (typeof y != "symbol" && typeof y != "string" || y === "")
6877
+ throw new TypeError("You must supply a name when creating a logger.");
6878
+ var v = a[y];
6879
+ return v || (v = a[y] = new p(
6880
+ y,
6881
+ l.methodFactory
6882
+ )), v;
6883
+ };
6884
+ var w = typeof window !== n ? window.log : void 0;
6885
+ return l.noConflict = function() {
6886
+ return typeof window !== n && window.log === l && (window.log = w), l;
6887
+ }, l.getLoggers = function() {
6888
+ return a;
6889
+ }, l.default = l, l;
6890
+ });
6891
+ })(nr)), nr.exports;
7007
6892
  }
7008
- var Io = ls();
7009
- const kp = (t) => !(!t || !(t instanceof HTMLElement));
7010
- class cs {
7011
- get IsVisible() {
7012
- return Pt.isVisible();
6893
+ var op = rp();
6894
+ const rr = /* @__PURE__ */ tp(op), zp = (t, e = {}) => {
6895
+ rr.setDefaultLevel(
6896
+ e.enableLogging ? rr.levels.DEBUG : rr.levels.SILENT
6897
+ );
6898
+ const n = 240;
6899
+ document.documentElement.style.setProperty(
6900
+ "--nav-menu-width",
6901
+ `${n}px`
6902
+ );
6903
+ const r = R(!0), o = R(0), a = R(!1), l = R(!1), s = R(""), i = R(null), c = R(0);
6904
+ t.provide(ui, {
6905
+ navMenuWidth: n,
6906
+ isMenuOpened: r,
6907
+ ToggleMenu: () => {
6908
+ r.value = !r.value;
6909
+ },
6910
+ OpenMenu: () => {
6911
+ r.value = !0;
6912
+ },
6913
+ CloseMenu: () => {
6914
+ r.value = !1;
6915
+ },
6916
+ scrollY: o,
6917
+ pageTitle: s,
6918
+ isDarkMode: a,
6919
+ ToggleTheme: () => un.Toggle(),
6920
+ EnableDarkMode: () => un.EnableDarkMode(),
6921
+ EnableLightMode: () => un.EnableLightMode(),
6922
+ ClearStoredTheme: () => un.ClearStoredTheme(),
6923
+ LogoutAsync: async (m) => {
6924
+ const f = ep(), { oidc: p } = Wt();
6925
+ await f.ConfirmWithOptionsAsync({
6926
+ text: "Deseja sair da sua conta?",
6927
+ target: m.currentTarget,
6928
+ confirmColor: "error"
6929
+ }) && (ro("Saindo..."), l.value = !0, await new Promise((g) => setTimeout(g, 1e3)), p.logout({ redirectUri: window.location.origin }).catch(() => {
6930
+ l.value = !1, Ha();
6931
+ }));
6932
+ },
6933
+ LogoutWithoutConfirmation: async () => {
6934
+ const { oidc: m } = Wt();
6935
+ ro("Saindo..."), l.value = !0, await new Promise((f) => setTimeout(f, 1e3)), m.logout({ redirectUri: window.location.origin }).catch(() => {
6936
+ l.value = !1, Ha();
6937
+ });
6938
+ },
6939
+ Login: () => {
6940
+ const { oidc: m } = Wt();
6941
+ m.login();
6942
+ },
6943
+ isLoggingOut: l,
6944
+ mainRef: i,
6945
+ mainWidth: c,
6946
+ isMainXs: Z(() => c.value <= 384),
6947
+ isMainSm: Z(() => c.value > 384),
6948
+ isMainMd: Z(() => c.value > 768),
6949
+ isMainLg: Z(() => c.value > 992),
6950
+ isMainXl: Z(() => c.value > 1280),
6951
+ isMain2Xl: Z(() => c.value > 1536),
6952
+ isMain3Xl: Z(() => c.value > 1920)
6953
+ }), new MutationObserver(() => {
6954
+ a.value = document.documentElement.classList.contains("dark");
6955
+ }).observe(document.documentElement, {
6956
+ attributes: !0,
6957
+ attributeFilter: ["class"]
6958
+ }), document.addEventListener("scroll", () => {
6959
+ o.value = document.documentElement.scrollTop;
6960
+ }), un.SetInitialTheme();
6961
+ }, ap = rr, ip = {
6962
+ key: 0,
6963
+ class: "mb-3"
6964
+ }, sp = { class: "flex align-items-center flex-wrap gap-3" }, lp = ["innerHTML"], cp = { class: "flex flex-grow-1 gap-2 justify-content-end" }, up = /* @__PURE__ */ ie({
6965
+ __name: "ConfirmPopover",
6966
+ emits: ["onOpen"],
6967
+ setup(t, { emit: e }) {
6968
+ const n = R(), r = () => {
6969
+ a?.detail.resolve(!0), a = null, n.value?.Hide();
6970
+ }, o = () => {
6971
+ a?.detail.resolve(!1), a = null, n.value?.Hide();
6972
+ };
6973
+ let a = null;
6974
+ document.addEventListener("sfconfirm:popup", (i) => {
6975
+ a = i, n.value?.Show(i);
6976
+ });
6977
+ const l = () => {
6978
+ a?.detail.resolve(!1);
6979
+ }, s = e;
6980
+ return (i, c) => (_(), ne(ci, {
6981
+ ref_key: "popover",
6982
+ ref: n,
6983
+ onOnShow: c[0] || (c[0] = (u) => s("onOpen")),
6984
+ onOnHide: l
6985
+ }, {
6986
+ default: le(() => [
6987
+ G(i.$slots, "content", Ct(_t({ resolve: r, reject: o })), () => [
6988
+ $(a)?.detail.options?.title ? (_(), x("div", ip, [
6989
+ b("b", null, K($(a)?.detail.options.title), 1)
6990
+ ])) : F("", !0),
6991
+ b("div", sp, [
6992
+ b("div", {
6993
+ innerHTML: $(a)?.detail.options?.text
6994
+ }, null, 8, lp),
6995
+ b("div", cp, [
6996
+ q($(kn), {
6997
+ name: "botao-confirmar",
6998
+ size: "sm",
6999
+ color: $(a)?.detail.options?.confirmColor,
7000
+ onClick: r
7001
+ }, {
7002
+ default: le(() => [
7003
+ Ye(K($(a)?.detail.options?.confirmLabel), 1)
7004
+ ]),
7005
+ _: 1
7006
+ }, 8, ["color"]),
7007
+ q($(kn), {
7008
+ size: "sm",
7009
+ name: "botao-cancelar",
7010
+ color: $(a)?.detail.options?.rejectColor,
7011
+ onClick: o
7012
+ }, {
7013
+ default: le(() => [
7014
+ Ye(K($(a)?.detail.options?.rejectLabel), 1)
7015
+ ]),
7016
+ _: 1
7017
+ }, 8, ["color"])
7018
+ ])
7019
+ ])
7020
+ ])
7021
+ ]),
7022
+ _: 3
7023
+ }, 512));
7013
7024
  }
7014
- /** @deprecated Use ConfirmWithOptionsAsync instead. */
7015
- async CreateConfirmAsync(e) {
7016
- return this.ConfirmWithOptionsAsync(e);
7025
+ }), dp = /* @__PURE__ */ ie({
7026
+ __name: "LoginLogout",
7027
+ emits: ["login"],
7028
+ setup(t, { emit: e }) {
7029
+ const n = Wt(), { LogoutAsync: r } = Zt(), o = e;
7030
+ return (a, l) => $(n).isAuthenticated ? (_(), ne(Xe, {
7031
+ key: 0,
7032
+ button: !0,
7033
+ size: "sm",
7034
+ icon: "logout",
7035
+ tooltip: "Sair",
7036
+ onClick: $(r)
7037
+ }, null, 8, ["onClick"])) : (_(), ne(Xe, {
7038
+ key: 1,
7039
+ button: !0,
7040
+ size: "sm",
7041
+ icon: "login",
7042
+ tooltip: "Entrar",
7043
+ onClick: l[0] || (l[0] = (s) => o("login"))
7044
+ }));
7017
7045
  }
7018
- /**
7019
- * Exibe um confirm com as opções informadas.
7020
- * @param options
7021
- * @returns
7022
- */
7023
- async ConfirmWithOptionsAsync(e) {
7024
- return e.confirmLabel ??= "sim", e.rejectLabel ??= "não", e.confirmColor ??= "primary", e.rejectColor ??= "primary", kp(e.target) ? this.CreatePopoverAsync(e).then((n) => n === !0) : new Promise((n) => {
7025
- Pt.fire({
7026
- showCancelButton: !0,
7027
- allowEscapeKey: !1,
7028
- allowOutsideClick: !1,
7029
- icon: "question",
7030
- title: e.title,
7031
- html: Io.sanitize(e.text),
7032
- confirmButtonText: e.confirmLabel,
7033
- cancelButtonText: e.rejectLabel,
7034
- confirmButtonColor: `var(--${e.confirmColor}-color)`,
7035
- cancelButtonColor: `var(--${e.rejectColor}-color)`
7036
- }).then((r) => {
7037
- n(r.isConfirmed === !0);
7038
- });
7046
+ }), mp = { class: "nav-menu-header" }, fp = { class: "nav-menu-inner-close" }, pp = { class: "main-content" }, hp = { class: "page-title" }, gp = { class: "action" }, vp = { id: "content" }, bp = {
7047
+ key: 0,
7048
+ id: "logging-out"
7049
+ }, wp = { class: "info-fazenda" }, yp = { class: "font-bold" }, kp = { class: "info-endereco text-muted" }, Cp = { class: "footer-right" }, _p = /* @__PURE__ */ ie({
7050
+ __name: "Main",
7051
+ props: {
7052
+ auth: {},
7053
+ public: { type: Boolean }
7054
+ },
7055
+ emits: ["login"],
7056
+ setup(t, { emit: e }) {
7057
+ const n = t, {
7058
+ navMenuWidth: r,
7059
+ isMenuOpened: o,
7060
+ pageTitle: a,
7061
+ scrollY: l,
7062
+ ToggleMenu: s,
7063
+ isDarkMode: i,
7064
+ ToggleTheme: c,
7065
+ CloseMenu: u,
7066
+ isLoggingOut: m,
7067
+ mainRef: f,
7068
+ mainWidth: p
7069
+ } = Zt(), w = R(null), g = () => {
7070
+ if (!w.value || !o.value) return !1;
7071
+ w.value.offsetWidth !== r && (ap.debug("[sf.prefeiturasp.vuecomponets] Menu fechado dinamicamente."), u());
7072
+ };
7073
+ $t(() => {
7074
+ const v = Es();
7075
+ if (g(), v.afterEach(() => {
7076
+ g();
7077
+ }), f.value) {
7078
+ let S = null;
7079
+ As(f, (L) => {
7080
+ io(() => {
7081
+ S && clearTimeout(S), S = setTimeout(() => {
7082
+ p.value = L[0].contentRect.width;
7083
+ }, 10);
7084
+ }), p.value = L[0].contentRect.width;
7085
+ }), p.value = f.value.clientWidth;
7086
+ }
7039
7087
  });
7088
+ const y = e;
7089
+ return (v, S) => (_(), x("main", {
7090
+ ref_key: "mainRef",
7091
+ ref: f,
7092
+ class: j({
7093
+ disabled: $(m),
7094
+ "nav-menu-visible": $(o)
7095
+ })
7096
+ }, [
7097
+ b("aside", {
7098
+ id: "nav-menu",
7099
+ ref_key: "navMenuRef",
7100
+ ref: w,
7101
+ class: j({ "nav-menu-hidden": !$(o) })
7102
+ }, [
7103
+ b("div", mp, [
7104
+ S[1] || (S[1] = b("span", null, "Menu", -1)),
7105
+ b("div", fp, [
7106
+ q(Xe, {
7107
+ button: !0,
7108
+ icon: "close",
7109
+ onClick: $(s)
7110
+ }, null, 8, ["onClick"])
7111
+ ])
7112
+ ]),
7113
+ G(v.$slots, "nav-menu", {}, void 0, !0)
7114
+ ], 2),
7115
+ b("div", pp, [
7116
+ b("div", {
7117
+ id: "top-bar",
7118
+ class: j({ "shadow-bottom": $(l) > 72 })
7119
+ }, [
7120
+ q(Xe, {
7121
+ button: !0,
7122
+ icon: $(o) ? "menu_open" : "menu",
7123
+ tooltip: "Menu",
7124
+ onClick: $(s)
7125
+ }, null, 8, ["icon", "onClick"]),
7126
+ b("div", hp, K($(m) ? "Saindo..." : $(a)), 1),
7127
+ S[2] || (S[2] = b("span", { class: "sep" }, null, -1)),
7128
+ b("div", gp, [
7129
+ q(Xe, {
7130
+ button: !0,
7131
+ size: "sm",
7132
+ icon: $(i) ? "light_mode" : "dark_mode",
7133
+ tooltip: $(i) ? "Modo claro" : "Modo escuro",
7134
+ onClick: $(c)
7135
+ }, null, 8, ["icon", "tooltip", "onClick"]),
7136
+ q(ju),
7137
+ G(v.$slots, "top-bar-account", {}, () => [
7138
+ q(Mu)
7139
+ ], !0),
7140
+ n.public ? F("", !0) : (_(), ne(dp, {
7141
+ key: 0,
7142
+ onLogin: S[0] || (S[0] = (L) => y("login"))
7143
+ }))
7144
+ ])
7145
+ ], 2),
7146
+ b("div", vp, [
7147
+ $(m) ? (_(), x("div", bp, [
7148
+ q(Wa)
7149
+ ])) : G(v.$slots, "content", { key: 1 }, void 0, !0)
7150
+ ])
7151
+ ]),
7152
+ b("footer", null, [
7153
+ G(v.$slots, "footer", {}, () => [
7154
+ S[5] || (S[5] = b("div", { class: "logo-fazenda" }, null, -1)),
7155
+ b("div", wp, [
7156
+ b("span", yp, [
7157
+ G(v.$slots, "footer-nome-fazenda", {}, () => [
7158
+ S[3] || (S[3] = Ye(" SECRETARIA MUNICIPAL DA FAZENDA ", -1))
7159
+ ], !0)
7160
+ ]),
7161
+ b("span", kp, [
7162
+ G(v.$slots, "footer-endereco-fazenda", {}, () => [
7163
+ S[4] || (S[4] = Ye(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ", -1))
7164
+ ], !0)
7165
+ ])
7166
+ ]),
7167
+ b("div", Cp, [
7168
+ G(v.$slots, "footer-right", {}, void 0, !0)
7169
+ ])
7170
+ ], !0)
7171
+ ]),
7172
+ q(Hu),
7173
+ q(up)
7174
+ ], 2));
7040
7175
  }
7041
- /**
7042
- * Exibe um confirm simples com as opções padrões
7043
- *
7044
- * @param message Mensagem do confirm
7045
- * @param target Elemento HTML ao qual o confirm será alinhado (exibido como popover). Se não for informado, o confirm será exibido como um dialog centralizado.
7046
- * @returns Retorna uma promise que resolve para true se o usuário confirmou, ou false se rejeitou
7047
- */
7048
- async ConfirmAsync(e, n) {
7049
- return this.ConfirmWithOptionsAsync({
7050
- text: e,
7051
- target: n
7052
- });
7176
+ }), Up = /* @__PURE__ */ Je(_p, [["__scopeId", "data-v-c2bb8158"]]), Vp = /* @__PURE__ */ ie({
7177
+ __name: "PageTitle",
7178
+ props: {
7179
+ title: {}
7180
+ },
7181
+ setup(t) {
7182
+ const { pageTitle: e } = Zt(), n = t;
7183
+ return Ss(() => {
7184
+ document.title = n.title, e.value = n.title;
7185
+ }), (r, o) => null;
7053
7186
  }
7054
- async CreatePopoverAsync(e) {
7055
- let n;
7056
- const r = new Promise((a) => {
7057
- n = a;
7058
- }), o = new CustomEvent(
7059
- "sfconfirm:popup",
7060
- {
7061
- detail: {
7062
- target: e.target ?? document.body,
7063
- options: e,
7064
- resolve: n
7065
- },
7066
- bubbles: !0,
7067
- cancelable: !0,
7068
- composed: !0
7187
+ }), Sp = { class: "sf-tabs" }, xp = ["onClick", "onKeydown"], Tp = ["id", "aria-selected", "tabindex", "aria-controls", "disabled"], Ip = ["id", "aria-labelledby", "aria-hidden"], Wp = /* @__PURE__ */ ie({
7188
+ __name: "Tabs",
7189
+ props: /* @__PURE__ */ Ts({
7190
+ tabs: {},
7191
+ dense: { type: Boolean }
7192
+ }, {
7193
+ activeTab: {
7194
+ default: 0
7195
+ },
7196
+ activeTabModifiers: {}
7197
+ }),
7198
+ emits: ["update:activeTab"],
7199
+ setup(t) {
7200
+ const e = t, n = xs(t, "activeTab");
7201
+ let r = n.value;
7202
+ qt(
7203
+ () => n.value,
7204
+ (f) => {
7205
+ f !== r && l(f);
7069
7206
  }
7070
7207
  );
7071
- return document.dispatchEvent(o), r;
7072
- }
7073
- }
7074
- const Cp = () => new cs(), Up = () => new cs();
7075
- function _p(t) {
7076
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7077
- }
7078
- var nr = { exports: {} }, Sp = nr.exports, Na;
7079
- function xp() {
7080
- return Na || (Na = 1, (function(t) {
7081
- (function(e, n) {
7082
- t.exports ? t.exports = n() : e.log = n();
7083
- })(Sp, function() {
7084
- var e = function() {
7085
- }, n = "undefined", r = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), o = [
7086
- "trace",
7087
- "debug",
7088
- "info",
7089
- "warn",
7090
- "error"
7091
- ], a = {}, l = null;
7092
- function s(g, y) {
7093
- var v = g[y];
7094
- if (typeof v.bind == "function")
7095
- return v.bind(g);
7096
- try {
7097
- return Function.prototype.bind.call(v, g);
7098
- } catch {
7099
- return function() {
7100
- return Function.prototype.apply.apply(v, [g, arguments]);
7101
- };
7102
- }
7103
- }
7104
- function i() {
7105
- console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
7106
- }
7107
- function c(g) {
7108
- return g === "debug" && (g = "log"), typeof console === n ? !1 : g === "trace" && r ? i : console[g] !== void 0 ? s(console, g) : console.log !== void 0 ? s(console, "log") : e;
7208
+ const o = Z(() => e.tabs.length - 1);
7209
+ let a = null;
7210
+ const l = (f) => {
7211
+ e.tabs[f].disabled || (a && clearTimeout(a), a = window.setTimeout(() => {
7212
+ a = null, r = f, n.value = f, s(f);
7213
+ }, 100));
7214
+ }, s = (f) => {
7215
+ const p = document.getElementById(c(f));
7216
+ p && (p.focus(), p.scrollIntoView({ inline: "center" }));
7217
+ }, i = (f, p) => {
7218
+ if (f.repeat)
7219
+ return;
7220
+ const w = o.value, g = (y, v) => {
7221
+ let S = y;
7222
+ for (let L = 0; L <= w; L++)
7223
+ if (S = (S + v + e.tabs.length) % e.tabs.length, !e.tabs[S].disabled)
7224
+ return S;
7225
+ return -1;
7226
+ };
7227
+ if (f.key === "ArrowRight") {
7228
+ f.preventDefault();
7229
+ const y = g(p, 1);
7230
+ l(y);
7231
+ return;
7109
7232
  }
7110
- function u() {
7111
- for (var g = this.getLevel(), y = 0; y < o.length; y++) {
7112
- var v = o[y];
7113
- this[v] = y < g ? e : this.methodFactory(v, g, this.name);
7114
- }
7115
- if (this.log = this.debug, typeof console === n && g < this.levels.SILENT)
7116
- return "No console available for logging";
7233
+ if (f.key === "ArrowLeft") {
7234
+ f.preventDefault();
7235
+ const y = g(p, -1);
7236
+ l(y);
7237
+ return;
7117
7238
  }
7118
- function m(g) {
7119
- return function() {
7120
- typeof console !== n && (u.call(this), this[g].apply(this, arguments));
7121
- };
7239
+ if (f.key === "Home") {
7240
+ f.preventDefault();
7241
+ const y = g(-1, 1);
7242
+ l(y);
7243
+ return;
7122
7244
  }
7123
- function f(g, y, v) {
7124
- return c(g) || m.apply(this, arguments);
7245
+ if (f.key === "End") {
7246
+ f.preventDefault();
7247
+ const y = g(w, -1);
7248
+ l(y);
7249
+ return;
7125
7250
  }
7126
- function p(g, y) {
7127
- var v = this, S, L, C, I = "loglevel";
7128
- typeof g == "string" ? I += ":" + g : typeof g == "symbol" && (I = void 0);
7129
- function ee(P) {
7130
- var W = (o[P] || "silent").toUpperCase();
7131
- if (!(typeof window === n || !I)) {
7132
- try {
7133
- window.localStorage[I] = W;
7134
- return;
7135
- } catch {
7136
- }
7137
- try {
7138
- window.document.cookie = encodeURIComponent(I) + "=" + W + ";";
7139
- } catch {
7140
- }
7141
- }
7142
- }
7143
- function ue() {
7144
- var P;
7145
- if (!(typeof window === n || !I)) {
7146
- try {
7147
- P = window.localStorage[I];
7148
- } catch {
7149
- }
7150
- if (typeof P === n)
7151
- try {
7152
- var W = window.document.cookie, pe = encodeURIComponent(I), be = W.indexOf(pe + "=");
7153
- be !== -1 && (P = /^([^;]+)/.exec(
7154
- W.slice(be + pe.length + 1)
7155
- )[1]);
7156
- } catch {
7157
- }
7158
- return v.levels[P] === void 0 && (P = void 0), P;
7159
- }
7160
- }
7161
- function Oe() {
7162
- if (!(typeof window === n || !I)) {
7163
- try {
7164
- window.localStorage.removeItem(I);
7165
- } catch {
7166
- }
7167
- try {
7168
- window.document.cookie = encodeURIComponent(I) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
7169
- } catch {
7170
- }
7171
- }
7172
- }
7173
- function fe(P) {
7174
- var W = P;
7175
- if (typeof W == "string" && v.levels[W.toUpperCase()] !== void 0 && (W = v.levels[W.toUpperCase()]), typeof W == "number" && W >= 0 && W <= v.levels.SILENT)
7176
- return W;
7177
- throw new TypeError("log.setLevel() called with invalid level: " + P);
7178
- }
7179
- v.name = g, v.levels = {
7180
- TRACE: 0,
7181
- DEBUG: 1,
7182
- INFO: 2,
7183
- WARN: 3,
7184
- ERROR: 4,
7185
- SILENT: 5
7186
- }, v.methodFactory = y || f, v.getLevel = function() {
7187
- return C ?? L ?? S;
7188
- }, v.setLevel = function(P, W) {
7189
- return C = fe(P), W !== !1 && ee(C), u.call(v);
7190
- }, v.setDefaultLevel = function(P) {
7191
- L = fe(P), ue() || v.setLevel(P, !1);
7192
- }, v.resetLevel = function() {
7193
- C = null, Oe(), u.call(v);
7194
- }, v.enableAll = function(P) {
7195
- v.setLevel(v.levels.TRACE, P);
7196
- }, v.disableAll = function(P) {
7197
- v.setLevel(v.levels.SILENT, P);
7198
- }, v.rebuild = function() {
7199
- if (l !== v && (S = fe(l.getLevel())), u.call(v), l === v)
7200
- for (var P in a)
7201
- a[P].rebuild();
7202
- }, S = fe(
7203
- l ? l.getLevel() : "WARN"
7204
- );
7205
- var Be = ue();
7206
- Be != null && (C = fe(Be)), u.call(v);
7251
+ }, c = (f) => `sf-tab-${f}`, u = (f) => `sf-tabpanel-${f}`, m = () => {
7252
+ if (e.tabs[n.value]?.disabled) {
7253
+ const f = e.tabs.findIndex((p) => !p.disabled);
7254
+ n.value = f !== -1 ? f : -1;
7207
7255
  }
7208
- l = new p(), l.getLogger = function(y) {
7209
- if (typeof y != "symbol" && typeof y != "string" || y === "")
7210
- throw new TypeError("You must supply a name when creating a logger.");
7211
- var v = a[y];
7212
- return v || (v = a[y] = new p(
7213
- y,
7214
- l.methodFactory
7215
- )), v;
7216
- };
7217
- var w = typeof window !== n ? window.log : void 0;
7218
- return l.noConflict = function() {
7219
- return typeof window !== n && window.log === l && (window.log = w), l;
7220
- }, l.getLoggers = function() {
7221
- return a;
7222
- }, l.default = l, l;
7223
- });
7224
- })(nr)), nr.exports;
7225
- }
7226
- var Tp = xp();
7227
- const rr = /* @__PURE__ */ _p(Tp), Vp = (t, e = {}) => {
7228
- rr.setDefaultLevel(
7229
- e.enableLogging ? rr.levels.DEBUG : rr.levels.SILENT
7230
- );
7231
- const n = 240;
7232
- document.documentElement.style.setProperty(
7233
- "--nav-menu-width",
7234
- `${n}px`
7235
- );
7236
- const r = R(!0), o = R(0), a = R(!1), l = R(!1), s = R(""), i = R(null), c = R(0);
7237
- t.provide(ui, {
7238
- navMenuWidth: n,
7239
- isMenuOpened: r,
7240
- ToggleMenu: () => {
7241
- r.value = !r.value;
7242
- },
7243
- OpenMenu: () => {
7244
- r.value = !0;
7245
- },
7246
- CloseMenu: () => {
7247
- r.value = !1;
7248
- },
7249
- scrollY: o,
7250
- pageTitle: s,
7251
- isDarkMode: a,
7252
- ToggleTheme: () => un.Toggle(),
7253
- EnableDarkMode: () => un.EnableDarkMode(),
7254
- EnableLightMode: () => un.EnableLightMode(),
7255
- ClearStoredTheme: () => un.ClearStoredTheme(),
7256
- LogoutAsync: async (m) => {
7257
- const f = Cp(), { oidc: p } = Wt();
7258
- await f.ConfirmWithOptionsAsync({
7259
- text: "Deseja sair da sua conta?",
7260
- target: m.currentTarget,
7261
- confirmColor: "error"
7262
- }) && (ro("Saindo..."), l.value = !0, await new Promise((g) => setTimeout(g, 1e3)), p.logout({ redirectUri: window.location.origin }).catch(() => {
7263
- l.value = !1, Ha();
7264
- }));
7265
- },
7266
- LogoutWithoutConfirmation: async () => {
7267
- const { oidc: m } = Wt();
7268
- ro("Saindo..."), l.value = !0, await new Promise((f) => setTimeout(f, 1e3)), m.logout({ redirectUri: window.location.origin }).catch(() => {
7269
- l.value = !1, Ha();
7270
- });
7271
- },
7272
- Login: () => {
7273
- const { oidc: m } = Wt();
7274
- m.login();
7275
- },
7276
- isLoggingOut: l,
7277
- mainRef: i,
7278
- mainWidth: c,
7279
- isMainXs: Z(() => c.value <= 384),
7280
- isMainSm: Z(() => c.value > 384),
7281
- isMainMd: Z(() => c.value > 768),
7282
- isMainLg: Z(() => c.value > 992),
7283
- isMainXl: Z(() => c.value > 1280),
7284
- isMain2Xl: Z(() => c.value > 1536),
7285
- isMain3Xl: Z(() => c.value > 1920)
7286
- }), new MutationObserver(() => {
7287
- a.value = document.documentElement.classList.contains("dark");
7288
- }).observe(document.documentElement, {
7289
- attributes: !0,
7290
- attributeFilter: ["class"]
7291
- }), document.addEventListener("scroll", () => {
7292
- o.value = document.documentElement.scrollTop;
7293
- }), un.SetInitialTheme();
7294
- }, Wp = rr;
7256
+ };
7257
+ return $t(() => {
7258
+ m();
7259
+ }), (f, p) => (_(), x("div", Sp, [
7260
+ b("ul", {
7261
+ role: "tablist",
7262
+ "aria-orientation": "horizontal",
7263
+ class: j({ dense: e.dense })
7264
+ }, [
7265
+ (_(!0), x(ke, null, At(e.tabs, (w, g) => (_(), x("li", {
7266
+ key: c(g),
7267
+ onClick: (y) => l(g),
7268
+ onKeydown: (y) => i(y, g)
7269
+ }, [
7270
+ b("button", {
7271
+ role: "tab",
7272
+ id: c(g),
7273
+ "aria-selected": !w.disabled && g === n.value,
7274
+ tabindex: g === n.value ? 0 : -1,
7275
+ "aria-controls": u(g),
7276
+ disabled: w.disabled
7277
+ }, K(w.text), 9, Tp)
7278
+ ], 40, xp))), 128))
7279
+ ], 2),
7280
+ (_(!0), x(ke, null, At(e.tabs, (w, g) => (_(), x("div", {
7281
+ key: u(g),
7282
+ id: u(g),
7283
+ role: "tabpanel",
7284
+ "aria-labelledby": c(g),
7285
+ "aria-hidden": !w.disabled && g !== n.value,
7286
+ class: j(["tab-content", { hidden: g !== n.value }])
7287
+ }, [
7288
+ !w.disabled && g === n.value ? G(f.$slots, "tabpanel", M({
7289
+ key: 0,
7290
+ ref_for: !0
7291
+ }, { tab: w, activeTab: n.value, Activate: l })) : F("", !0)
7292
+ ], 10, Ip))), 128))
7293
+ ]));
7294
+ }
7295
+ });
7295
7296
  class us extends Error {
7296
7297
  constructor(e = []) {
7297
7298
  const n = Array.isArray(e) ? e : [e];
@@ -7299,7 +7300,7 @@ class us extends Error {
7299
7300
  }
7300
7301
  errors = [];
7301
7302
  }
7302
- class Ip {
7303
+ class Ap {
7303
7304
  constructor(e = null) {
7304
7305
  this._value = e, this._httpStatusCode = 200;
7305
7306
  }
@@ -7383,7 +7384,7 @@ class ds {
7383
7384
  });
7384
7385
  }
7385
7386
  }
7386
- const Ap = () => new ds(), Kp = () => new ds();
7387
+ const Ep = () => new ds(), Kp = () => new ds();
7387
7388
  window.addEventListener("error", function(t) {
7388
7389
  return Ao(t.error) || console.error(t.error || t.message), t.preventDefault(), !1;
7389
7390
  });
@@ -7402,7 +7403,7 @@ const Gp = (t) => {
7402
7403
  return !0;
7403
7404
  } catch {
7404
7405
  }
7405
- return t instanceof us || t instanceof Ip ? (Ap().AlertErrorAsync(t.errors), !0) : !1;
7406
+ return t instanceof us || t instanceof Ap ? (Ep().AlertErrorAsync(t.errors), !0) : !1;
7406
7407
  }, Ut = (t) => t === "light" ? "rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;" : "none", ja = {
7407
7408
  surface: {
7408
7409
  0: "var(--surface-0-color)",
@@ -8317,7 +8318,7 @@ Promise.prototype.TrackStateWith || (Promise.prototype.TrackStateWith = async fu
8317
8318
  t.value = !1;
8318
8319
  }
8319
8320
  });
8320
- class Ep {
8321
+ class Pp {
8321
8322
  current = null;
8322
8323
  resolve = null;
8323
8324
  /**
@@ -8369,7 +8370,7 @@ class Ep {
8369
8370
  this.resolve && this.resolve(), this.current && this.current.classList.remove("visible");
8370
8371
  }
8371
8372
  }
8372
- const Pp = new Ep(), Jp = () => Pp;
8373
+ const $p = new Pp(), Jp = () => $p;
8373
8374
  function Ha() {
8374
8375
  document.documentElement.removeAttribute("data-app-message"), document.documentElement.classList.add("app-mounted");
8375
8376
  }
@@ -8389,38 +8390,38 @@ async function Qp() {
8389
8390
  }
8390
8391
  export {
8391
8392
  us as AppError,
8392
- Ip as AppResult,
8393
+ Ap as AppResult,
8393
8394
  Xp as BaseAppState,
8394
8395
  Zp as EnsureUniqueRouteNames,
8395
8396
  Qp as GetEnvironmentAsync,
8396
8397
  Ha as RemovePreloader,
8397
8398
  ro as RestorePreloader,
8398
8399
  kn as SfButton,
8399
- Np as SfContent,
8400
+ jp as SfContent,
8400
8401
  Gs as SfDrawer,
8401
8402
  Br as SfHelpButton,
8402
8403
  Xe as SfIcon,
8403
8404
  zs as SfLoadingCircle,
8404
- jp as SfLogin,
8405
- Hp as SfMain,
8405
+ Hp as SfLogin,
8406
+ Up as SfMain,
8406
8407
  Mu as SfMainTopBarAccount,
8407
- Dp as SfMessage,
8408
- Rp as SfNavMenu,
8409
- Fp as SfPageTitle,
8408
+ Rp as SfMessage,
8409
+ Np as SfNavMenu,
8410
+ Vp as SfPageTitle,
8410
8411
  ci as SfPopover,
8411
- Mp as SfTabNavigation,
8412
- zp as SfTabs,
8412
+ Dp as SfTabNavigation,
8413
+ Wp as SfTabs,
8413
8414
  Ps as SfTooltip,
8414
- Ap as UseAlert,
8415
+ Ep as UseAlert,
8415
8416
  Kp as UseAlertService,
8416
8417
  Zt as UseAppInject,
8417
- Cp as UseConfirm,
8418
- Up as UseConfirmService,
8418
+ ep as UseConfirm,
8419
+ Fp as UseConfirmService,
8419
8420
  Jp as UseSimpleToast,
8420
8421
  Yp as User,
8421
8422
  st as Utilities,
8422
- Wp as _logger,
8423
- Vp as configSF,
8423
+ ap as _logger,
8424
+ zp as configSF,
8424
8425
  Gp as globalErrorHandler,
8425
8426
  qp as themePreset
8426
8427
  };