@wgalleti/primevue-components 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { _ as e, a as t, f as n, l as r, n as i, o as a, r as o, t as s } from "./useFormKeyboardNav-Cv8b6Vh3.js";
1
+ import { _ as e, a as t, f as n, l as r, n as i, o as a, r as o, t as s } from "./useFormKeyboardNav-DQW9gHzu.js";
2
2
  import { a as c, n as l, t as u } from "./routeTabs-D6m8PuP6.js";
3
3
  import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createStaticVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, guardReactiveProps as S, h as C, inject as w, isRef as T, mergeModels as E, mergeProps as D, nextTick as O, normalizeClass as k, normalizeProps as A, normalizeStyle as j, onBeforeUnmount as ee, onMounted as te, onScopeDispose as ne, openBlock as M, provide as N, reactive as re, readonly as ie, ref as P, renderList as F, renderSlot as I, resolveDirective as ae, shallowRef as oe, toDisplayString as L, toRef as se, unref as R, useModel as ce, useSlots as le, vModelText as ue, vShow as z, watch as B, withCtx as V, withDirectives as H, withKeys as U, withModifiers as W } from "vue";
4
4
  import de from "primevue/datatable";
@@ -735,6 +735,7 @@ var yt = { class: "w-fk-option" }, bt = { class: "w-fk-option__label" }, xt = {
735
735
  loading: k.value,
736
736
  "show-clear": !1,
737
737
  fluid: "",
738
+ "auto-option-focus": "",
738
739
  onComplete: Ee,
739
740
  onItemSelect: De,
740
741
  "onUpdate:modelValue": Oe,
@@ -964,7 +965,7 @@ var yt = { class: "w-fk-option" }, bt = { class: "w-fk-option__label" }, xt = {
964
965
  "append-to",
965
966
  "header"
966
967
  ]),
967
- We.value ? (M(), p(Fn, {
968
+ We.value ? (M(), p(Ln, {
968
969
  key: 0,
969
970
  visible: ft.value,
970
971
  title: kt.value,
@@ -2243,7 +2244,10 @@ var cn = { class: "w-crud-form" }, ln = {
2243
2244
  c[i.field] ? (M(), h("small", jn, L(c[i.field]), 1)) : o[i.field] ? (M(), h("small", Mn, L(o[i.field]), 1)) : m("", !0)
2244
2245
  ], 6)), [[O, D(i)]])], void 0, i.field)), 128))], 4)]))), 128))]));
2245
2246
  }
2246
- }), Pn = { class: "w-crud-form-footer" }, Fn = /* @__PURE__ */ x({
2247
+ }), Pn = { class: "w-crud-form-main" }, Fn = {
2248
+ key: 0,
2249
+ class: "w-crud-form-aside"
2250
+ }, In = { class: "w-crud-form-footer" }, Ln = /* @__PURE__ */ x({
2247
2251
  __name: "WCrudFormDialog",
2248
2252
  props: {
2249
2253
  visible: { type: Boolean },
@@ -2258,7 +2262,8 @@ var cn = { class: "w-crud-form" }, ln = {
2258
2262
  },
2259
2263
  width: { default: "480px" },
2260
2264
  formColumns: { default: void 0 },
2261
- keyboardNav: { type: Boolean }
2265
+ keyboardNav: { type: Boolean },
2266
+ asideWidth: { default: void 0 }
2262
2267
  },
2263
2268
  emits: [
2264
2269
  "update:visible",
@@ -2290,11 +2295,12 @@ var cn = { class: "w-crud-form" }, ln = {
2290
2295
  default: V(() => [g("form", {
2291
2296
  ref_key: "formRef",
2292
2297
  ref: o,
2293
- class: "w-crud-form",
2298
+ class: k(["w-crud-form", { "w-crud-form--with-aside": t.$slots.aside }]),
2299
+ style: j(e.asideWidth ? { "--w-form-aside": e.asideWidth } : void 0),
2294
2300
  onSubmit: W(c, ["prevent"]),
2295
- onKeydown: r[2] ||= (...e) => R(d) && R(d)(...e)
2301
+ onKeydownCapture: r[2] ||= (...e) => R(d) && R(d)(...e)
2296
2302
  }, [
2297
- b(Nn, {
2303
+ g("div", Pn, [b(Nn, {
2298
2304
  ref_key: "rendererRef",
2299
2305
  ref: a,
2300
2306
  fields: e.fields,
@@ -2315,12 +2321,15 @@ var cn = { class: "w-crud-form" }, ln = {
2315
2321
  "is-editing",
2316
2322
  "disabled",
2317
2323
  "columns"
2318
- ]),
2319
- I(t.$slots, "after-fields", {
2324
+ ]), I(t.$slots, "after-fields", {
2320
2325
  formData: e.formData,
2321
2326
  isEditing: e.isEditing
2322
- }),
2323
- g("div", Pn, [I(t.$slots, "footer", {
2327
+ })]),
2328
+ t.$slots.aside ? (M(), h("aside", Fn, [I(t.$slots, "aside", {
2329
+ formData: e.formData,
2330
+ isEditing: e.isEditing
2331
+ })])) : m("", !0),
2332
+ g("div", In, [I(t.$slots, "footer", {
2324
2333
  saving: e.saving,
2325
2334
  disabled: e.disabled
2326
2335
  }, () => [b(R(K), {
@@ -2338,7 +2347,7 @@ var cn = { class: "w-crud-form" }, ln = {
2338
2347
  icon: "pi pi-check",
2339
2348
  loading: e.saving
2340
2349
  }, null, 8, ["label", "loading"]))])])
2341
- ], 544)]),
2350
+ ], 38)]),
2342
2351
  _: 3
2343
2352
  }, 8, [
2344
2353
  "append-to",
@@ -2351,33 +2360,33 @@ var cn = { class: "w-crud-form" }, ln = {
2351
2360
  });
2352
2361
  //#endregion
2353
2362
  //#region src/utils/csv.ts
2354
- function In(e, t) {
2363
+ function Rn(e, t) {
2355
2364
  let n = t[e.field];
2356
2365
  return e.format ? e.format(n, t) : n == null ? "" : typeof n == "boolean" ? n ? "Sim" : "Não" : String(n);
2357
2366
  }
2358
- function Ln(e, t) {
2367
+ function zn(e, t) {
2359
2368
  return e.includes("\"") || e.includes(t) || e.includes("\n") || e.includes("\r") ? `"${e.replace(/"/g, "\"\"")}"` : e;
2360
2369
  }
2361
- function Rn(e, t, n = {}) {
2370
+ function Bn(e, t, n = {}) {
2362
2371
  let r = n.separator ?? ";";
2363
- return "" + [t.map((e) => Ln(e.header, r)).join(r), ...e.map((e) => t.map((t) => Ln(In(t, e), r)).join(r))].join("\r\n");
2372
+ return "" + [t.map((e) => zn(e.header, r)).join(r), ...e.map((e) => t.map((t) => zn(Rn(t, e), r)).join(r))].join("\r\n");
2364
2373
  }
2365
- function zn(e, t = "export.csv") {
2374
+ function Vn(e, t = "export.csv") {
2366
2375
  let n = new Blob([e], { type: "text/csv;charset=utf-8;" }), r = URL.createObjectURL(n), i = document.createElement("a");
2367
2376
  i.href = r, i.download = t, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
2368
2377
  }
2369
2378
  //#endregion
2370
2379
  //#region src/components/crud/WCrudView.vue?vue&type=script&setup=true&lang.ts
2371
- var Bn = { class: "w-crud" }, Vn = {
2380
+ var Hn = { class: "w-crud" }, Un = {
2372
2381
  key: 0,
2373
2382
  class: "w-crud-header"
2374
- }, Hn = { class: "w-crud-header-content" }, Un = { class: "w-crud-title" }, Wn = {
2383
+ }, Wn = { class: "w-crud-header-content" }, Gn = { class: "w-crud-title" }, Kn = {
2375
2384
  key: 0,
2376
2385
  class: "w-crud-subtitle"
2377
- }, Gn = { class: "w-crud-header-actions" }, Kn = {
2386
+ }, qn = { class: "w-crud-header-actions" }, Jn = {
2378
2387
  key: 0,
2379
2388
  class: "w-crud-kpis"
2380
- }, qn = { class: "w-crud-kpi-content" }, Jn = { class: "w-crud-kpi-label" }, Yn = { class: "w-crud-kpi-value" }, Xn = { class: "w-crud-content-main" }, Zn = {
2389
+ }, Yn = { class: "w-crud-kpi-content" }, Xn = { class: "w-crud-kpi-label" }, Zn = { class: "w-crud-kpi-value" }, Qn = { class: "w-crud-content-main" }, $n = {
2381
2390
  key: 0,
2382
2391
  class: "w-crud-filters",
2383
2392
  style: {
@@ -2387,10 +2396,10 @@ var Bn = { class: "w-crud" }, Vn = {
2387
2396
  "align-items": "center",
2388
2397
  "margin-bottom": "0.75rem"
2389
2398
  }
2390
- }, Qn = {
2399
+ }, er = {
2391
2400
  key: 1,
2392
2401
  class: "w-crud-table"
2393
- }, $n = {
2402
+ }, tr = {
2394
2403
  key: 0,
2395
2404
  class: "w-crud-bulkbar",
2396
2405
  style: {
@@ -2403,47 +2412,47 @@ var Bn = { class: "w-crud" }, Vn = {
2403
2412
  background: "var(--p-primary-50, #eef2ff)",
2404
2413
  color: "var(--p-primary-700, #3730a3)"
2405
2414
  }
2406
- }, er = { style: {
2415
+ }, nr = { style: {
2407
2416
  "font-weight": "600",
2408
2417
  "font-size": "0.85rem",
2409
2418
  "margin-right": "auto"
2410
- } }, tr = { class: "w-crud-toolbar" }, nr = { class: "w-crud-toolbar-start" }, rr = { class: "w-crud-toolbar-end" }, ir = { style: {
2419
+ } }, rr = { class: "w-crud-toolbar" }, ir = { class: "w-crud-toolbar-start" }, ar = { class: "w-crud-toolbar-end" }, or = { style: {
2411
2420
  display: "flex",
2412
2421
  "flex-direction": "column",
2413
2422
  gap: "0.35rem",
2414
2423
  "min-width": "180px"
2415
- } }, ar = ["for"], or = {
2424
+ } }, sr = ["for"], cr = {
2416
2425
  key: 2,
2417
2426
  class: "w-crud-view-toggle"
2418
- }, sr = { class: "w-crud-actions" }, cr = {
2427
+ }, lr = { class: "w-crud-actions" }, ur = {
2419
2428
  key: 2,
2420
2429
  class: "w-crud-cards-wrap"
2421
- }, lr = { class: "w-crud-toolbar w-crud-toolbar--standalone" }, ur = { class: "w-crud-toolbar-start" }, dr = { class: "w-crud-toolbar-end" }, fr = {
2430
+ }, dr = { class: "w-crud-toolbar w-crud-toolbar--standalone" }, fr = { class: "w-crud-toolbar-start" }, pr = { class: "w-crud-toolbar-end" }, mr = {
2422
2431
  key: 1,
2423
2432
  class: "w-crud-view-toggle"
2424
- }, pr = {
2433
+ }, hr = {
2425
2434
  key: 0,
2426
2435
  class: "w-crud-cards-loading"
2427
- }, mr = [
2436
+ }, gr = [
2428
2437
  "onClick",
2429
2438
  "onDblclick",
2430
2439
  "onContextmenu"
2431
- ], hr = { class: "w-crud-card-body" }, gr = {
2440
+ ], _r = { class: "w-crud-card-body" }, vr = {
2432
2441
  key: 0,
2433
2442
  class: "w-crud-card-label"
2434
- }, _r = { class: "w-crud-card-value" }, vr = {
2443
+ }, yr = { class: "w-crud-card-value" }, br = {
2435
2444
  key: 0,
2436
2445
  class: "w-crud-card-actions"
2437
- }, yr = {
2446
+ }, xr = {
2438
2447
  key: 0,
2439
2448
  class: "w-crud-rail"
2440
- }, br = {
2449
+ }, Sr = {
2441
2450
  key: 1,
2442
2451
  class: "w-crud-rail-sep"
2443
- }, xr = {
2452
+ }, Cr = {
2444
2453
  key: 2,
2445
2454
  class: "w-crud-rail-sep"
2446
- }, Sr = /* @__PURE__ */ x({
2455
+ }, wr = /* @__PURE__ */ x({
2447
2456
  __name: "WCrudView",
2448
2457
  props: /*@__PURE__*/ E({
2449
2458
  crud: {},
@@ -2709,7 +2718,7 @@ var Bn = { class: "w-crud" }, Vn = {
2709
2718
  if (!$e.value) {
2710
2719
  $e.value = !0;
2711
2720
  try {
2712
- zn(Rn(o.csvScope === "page" ? o.crud.items.value : await o.crud.fetchAll(o.csvPageSize), xe.value), o.csvFilename);
2721
+ Vn(Bn(o.csvScope === "page" ? o.crud.items.value : await o.crud.fetchAll(o.csvPageSize), xe.value), o.csvFilename);
2713
2722
  } finally {
2714
2723
  $e.value = !1;
2715
2724
  }
@@ -2719,21 +2728,21 @@ var Bn = { class: "w-crud" }, Vn = {
2719
2728
  se(), U(), o.autoInit && o.crud.init();
2720
2729
  }), (e, n) => {
2721
2730
  let r = ae("tooltip");
2722
- return M(), h("div", Bn, [
2723
- t.showHeader ? (M(), h("div", Vn, [g("div", Hn, [g("h1", Un, L(t.title), 1), t.subtitle ? (M(), h("p", Wn, L(t.subtitle), 1)) : m("", !0)]), g("div", Gn, [I(e.$slots, "header-actions"), Pe.value && !t.actionRail ? (M(), p(R(K), {
2731
+ return M(), h("div", Hn, [
2732
+ t.showHeader ? (M(), h("div", Un, [g("div", Wn, [g("h1", Gn, L(t.title), 1), t.subtitle ? (M(), h("p", Kn, L(t.subtitle), 1)) : m("", !0)]), g("div", qn, [I(e.$slots, "header-actions"), Pe.value && !t.actionRail ? (M(), p(R(K), {
2724
2733
  key: 0,
2725
2734
  label: "Novo",
2726
2735
  icon: "pi pi-plus",
2727
2736
  onClick: n[0] ||= (e) => t.crud.openCreateDialog()
2728
2737
  })) : m("", !0)])])) : m("", !0),
2729
- I(e.$slots, "before-table", {}, () => [Ne.value.length ? (M(), h("div", Kn, [(M(!0), h(d, null, F(Ne.value, (e, t) => (M(), h("div", {
2738
+ I(e.$slots, "before-table", {}, () => [Ne.value.length ? (M(), h("div", Jn, [(M(!0), h(d, null, F(Ne.value, (e, t) => (M(), h("div", {
2730
2739
  key: t,
2731
2740
  class: "w-crud-kpi"
2732
2741
  }, [g("div", { class: k(["w-crud-kpi-icon", e.severity ? `w-crud-kpi-icon--${e.severity}` : ""]) }, [g("i", {
2733
2742
  class: k([e.icon]),
2734
2743
  style: j(e.color ? `color: ${e.color}` : "")
2735
- }, null, 6)], 2), g("div", qn, [g("div", Jn, L(e.label), 1), g("div", Yn, L(e.value), 1)])]))), 128))])) : m("", !0)]),
2736
- g("div", { class: k(["w-crud-content", { "w-crud-content--rail": t.actionRail }]) }, [g("div", Xn, [Ve.value.length ? (M(), h("div", Zn, [(M(!0), h(d, null, F(Ve.value, (e) => (M(), h(d, { key: e.field }, [(e.filter?.type || "text") === "text" ? (M(), p(R(q), {
2744
+ }, null, 6)], 2), g("div", Yn, [g("div", Xn, L(e.label), 1), g("div", Zn, L(e.value), 1)])]))), 128))])) : m("", !0)]),
2745
+ g("div", { class: k(["w-crud-content", { "w-crud-content--rail": t.actionRail }]) }, [g("div", Qn, [Ve.value.length ? (M(), h("div", $n, [(M(!0), h(d, null, F(Ve.value, (e) => (M(), h(d, { key: e.field }, [(e.filter?.type || "text") === "text" ? (M(), p(R(q), {
2737
2746
  key: 0,
2738
2747
  "model-value": t.crud.columnFilters[Ue(e)] ?? "",
2739
2748
  placeholder: e.filter?.placeholder || e.header,
@@ -2789,8 +2798,8 @@ var Bn = { class: "w-crud" }, Vn = {
2789
2798
  text: "",
2790
2799
  size: "small",
2791
2800
  onClick: n[1] ||= (e) => t.crud.clearColumnFilters()
2792
- })) : m("", !0)])) : m("", !0), O("table") ? (M(), h("div", Qn, [Q.value && t.crud.selectedItems.value.length ? (M(), h("div", $n, [
2793
- g("span", er, L(t.crud.selectedItems.value.length) + " selecionado(s) ", 1),
2801
+ })) : m("", !0)])) : m("", !0), O("table") ? (M(), h("div", er, [Q.value && t.crud.selectedItems.value.length ? (M(), h("div", tr, [
2802
+ g("span", nr, L(t.crud.selectedItems.value.length) + " selecionado(s) ", 1),
2794
2803
  I(e.$slots, "bulk-actions", {
2795
2804
  selected: t.crud.selectedItems.value,
2796
2805
  crud: t.crud
@@ -2863,7 +2872,7 @@ var Bn = { class: "w-crud" }, Vn = {
2863
2872
  onRowCollapse: n[12] ||= (e) => s("row-collapse", e.data),
2864
2873
  onCellEditComplete: Be
2865
2874
  }, _({
2866
- header: V(() => [g("div", tr, [g("div", nr, [
2875
+ header: V(() => [g("div", rr, [g("div", ir, [
2867
2876
  t.showSearch ? (M(), p(R(he), { key: 0 }, {
2868
2877
  default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
2869
2878
  "model-value": t.crud.search.value,
@@ -2875,7 +2884,7 @@ var Bn = { class: "w-crud" }, Vn = {
2875
2884
  })) : m("", !0),
2876
2885
  I(e.$slots, "toolbar-start"),
2877
2886
  I(e.$slots, "toolbar-filters")
2878
- ]), g("div", rr, [
2887
+ ]), g("div", ar, [
2879
2888
  I(e.$slots, "toolbar-actions"),
2880
2889
  t.persistState ? (M(), h(d, { key: 0 }, [H(b(R(K), {
2881
2890
  icon: "pi pi-sliders-h",
@@ -2891,7 +2900,7 @@ var Bn = { class: "w-crud" }, Vn = {
2891
2900
  ref_key: "chooser",
2892
2901
  ref: ie
2893
2902
  }, {
2894
- default: V(() => [g("div", ir, [(M(!0), h(d, null, F(be.value, (e) => (M(), h("div", {
2903
+ default: V(() => [g("div", or, [(M(!0), h(d, null, F(be.value, (e) => (M(), h("div", {
2895
2904
  key: e.field,
2896
2905
  style: {
2897
2906
  display: "flex",
@@ -2913,7 +2922,7 @@ var Bn = { class: "w-crud" }, Vn = {
2913
2922
  "font-size": "0.85rem",
2914
2923
  cursor: "pointer"
2915
2924
  }
2916
- }, L(e.header), 9, ar)]))), 128))])]),
2925
+ }, L(e.header), 9, sr)]))), 128))])]),
2917
2926
  _: 1
2918
2927
  }, 512)], 64)) : m("", !0),
2919
2928
  t.exportCsv ? H((M(), p(R(K), {
@@ -2929,7 +2938,7 @@ var Bn = { class: "w-crud" }, Vn = {
2929
2938
  void 0,
2930
2939
  { top: !0 }
2931
2940
  ]]) : m("", !0),
2932
- D.value ? (M(), h("div", or, [b(R(K), {
2941
+ D.value ? (M(), h("div", cr, [b(R(K), {
2933
2942
  icon: "pi pi-table",
2934
2943
  size: "small",
2935
2944
  text: !O("table"),
@@ -3018,7 +3027,7 @@ var Bn = { class: "w-crud" }, Vn = {
3018
3027
  "header-class": "w-crud-actions-header",
3019
3028
  style: j({ width: `${(Te.value.length + +!!R(c)["row-actions"]) * 2.5 + 1}rem` })
3020
3029
  }, {
3021
- body: V(({ data: n }) => [g("div", sr, [(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [Me(e, n) ? H((M(), p(R(K), {
3030
+ body: V(({ data: n }) => [g("div", lr, [(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [Me(e, n) ? H((M(), p(R(K), {
3022
3031
  key: 0,
3023
3032
  icon: e.icon,
3024
3033
  text: "",
@@ -3064,8 +3073,8 @@ var Bn = { class: "w-crud" }, Vn = {
3064
3073
  "context-menu",
3065
3074
  "context-menu-selection",
3066
3075
  "onPage"
3067
- ])])) : (M(), h("div", cr, [
3068
- g("div", lr, [g("div", ur, [
3076
+ ])])) : (M(), h("div", ur, [
3077
+ g("div", dr, [g("div", fr, [
3069
3078
  t.showSearch ? (M(), p(R(he), { key: 0 }, {
3070
3079
  default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
3071
3080
  "model-value": t.crud.search.value,
@@ -3077,7 +3086,7 @@ var Bn = { class: "w-crud" }, Vn = {
3077
3086
  })) : m("", !0),
3078
3087
  I(e.$slots, "toolbar-start"),
3079
3088
  I(e.$slots, "toolbar-filters")
3080
- ]), g("div", dr, [
3089
+ ]), g("div", pr, [
3081
3090
  I(e.$slots, "toolbar-actions"),
3082
3091
  t.exportCsv ? H((M(), p(R(K), {
3083
3092
  key: 0,
@@ -3092,7 +3101,7 @@ var Bn = { class: "w-crud" }, Vn = {
3092
3101
  void 0,
3093
3102
  { top: !0 }
3094
3103
  ]]) : m("", !0),
3095
- D.value ? (M(), h("div", fr, [b(R(K), {
3104
+ D.value ? (M(), h("div", mr, [b(R(K), {
3096
3105
  icon: "pi pi-table",
3097
3106
  size: "small",
3098
3107
  text: !O("table"),
@@ -3112,7 +3121,7 @@ var Bn = { class: "w-crud" }, Vn = {
3112
3121
  onClick: n[15] ||= (e) => t.crud.openCreateDialog()
3113
3122
  })) : m("", !0)
3114
3123
  ])]),
3115
- t.crud.loading.value ? (M(), h("div", pr, [...n[23] ||= [g("i", { class: "pi pi-spin pi-spinner" }, null, -1)]])) : t.crud.items.value.length ? (M(), h("div", {
3124
+ t.crud.loading.value ? (M(), h("div", hr, [...n[23] ||= [g("i", { class: "pi pi-spin pi-spinner" }, null, -1)]])) : t.crud.items.value.length ? (M(), h("div", {
3116
3125
  key: 2,
3117
3126
  class: k(["w-crud-cards", { "w-crud-cards--bare": t.cardBare }])
3118
3127
  }, [(M(!0), h(d, null, F(t.crud.items.value, (n, i) => (M(), h("div", {
@@ -3126,10 +3135,10 @@ var Bn = { class: "w-crud" }, Vn = {
3126
3135
  crud: t.crud,
3127
3136
  columns: Ce.value,
3128
3137
  index: i
3129
- }, () => [g("div", hr, [(M(!0), h(d, null, F(Ce.value, (t, r) => (M(), h("div", {
3138
+ }, () => [g("div", _r, [(M(!0), h(d, null, F(Ce.value, (t, r) => (M(), h("div", {
3130
3139
  key: t.field,
3131
3140
  class: k(["w-crud-card-row", { "w-crud-card-row--title": r === 0 }])
3132
- }, [r === 0 ? m("", !0) : (M(), h("span", gr, L(t.header), 1)), g("span", _r, [I(e.$slots, `column-${t.field}`, {
3141
+ }, [r === 0 ? m("", !0) : (M(), h("span", vr, L(t.header), 1)), g("span", yr, [I(e.$slots, `column-${t.field}`, {
3133
3142
  data: n,
3134
3143
  value: n[t.field]
3135
3144
  }, () => [b(Je, {
@@ -3140,7 +3149,7 @@ var Bn = { class: "w-crud" }, Vn = {
3140
3149
  "column",
3141
3150
  "value",
3142
3151
  "row-data"
3143
- ])])])], 2))), 128))]), Ee.value && !t.actionRail ? (M(), h("div", vr, [(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [Me(e, n) ? H((M(), p(R(K), {
3152
+ ])])])], 2))), 128))]), Ee.value && !t.actionRail ? (M(), h("div", br, [(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [Me(e, n) ? H((M(), p(R(K), {
3144
3153
  key: 0,
3145
3154
  icon: e.icon,
3146
3155
  text: "",
@@ -3162,7 +3171,7 @@ var Bn = { class: "w-crud" }, Vn = {
3162
3171
  ]]) : m("", !0)], 64))), 128)), I(e.$slots, "row-actions", {
3163
3172
  data: n,
3164
3173
  crud: t.crud
3165
- })])) : m("", !0)])], 42, mr))), 128))], 2)) : I(e.$slots, "empty", {}, () => [n[24] ||= v("<div class=\"w-crud-empty\"><div class=\"w-crud-empty-icon\"><i class=\"pi pi-inbox\"></i></div><p class=\"w-crud-empty-title\">Nenhum registro encontrado</p><p class=\"w-crud-empty-text\">Tente ajustar sua busca ou crie um novo registro</p></div>", 1)], void 0, 1),
3174
+ })])) : m("", !0)])], 42, gr))), 128))], 2)) : I(e.$slots, "empty", {}, () => [n[24] ||= v("<div class=\"w-crud-empty\"><div class=\"w-crud-empty-icon\"><i class=\"pi pi-inbox\"></i></div><p class=\"w-crud-empty-title\">Nenhum registro encontrado</p><p class=\"w-crud-empty-text\">Tente ajustar sua busca ou crie um novo registro</p></div>", 1)], void 0, 1),
3166
3175
  t.crud.items.value.length ? (M(), p(R(_e), {
3167
3176
  key: 3,
3168
3177
  rows: t.crud.pagination.pageSize,
@@ -3183,7 +3192,7 @@ var Bn = { class: "w-crud" }, Vn = {
3183
3192
  "first",
3184
3193
  "onPage"
3185
3194
  ])) : m("", !0)
3186
- ]))]), t.actionRail ? (M(), h("aside", yr, [
3195
+ ]))]), t.actionRail ? (M(), h("aside", xr, [
3187
3196
  Pe.value ? H((M(), p(R(K), {
3188
3197
  key: 0,
3189
3198
  icon: "pi pi-plus",
@@ -3195,7 +3204,7 @@ var Bn = { class: "w-crud" }, Vn = {
3195
3204
  void 0,
3196
3205
  { left: !0 }
3197
3206
  ]]) : m("", !0),
3198
- Pe.value && Te.value.length ? (M(), h("div", br)) : m("", !0),
3207
+ Pe.value && Te.value.length ? (M(), h("div", Sr)) : m("", !0),
3199
3208
  (M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [!Z.value || Me(e, Z.value) ? H((M(), p(R(K), {
3200
3209
  key: 0,
3201
3210
  icon: e.icon,
@@ -3219,7 +3228,7 @@ var Bn = { class: "w-crud" }, Vn = {
3219
3228
  selected: Z.value,
3220
3229
  crud: t.crud
3221
3230
  }),
3222
- t.showPrint || t.exportCsv ? (M(), h("div", xr)) : m("", !0),
3231
+ t.showPrint || t.exportCsv ? (M(), h("div", Cr)) : m("", !0),
3223
3232
  t.showPrint ? H((M(), p(R(K), {
3224
3233
  key: 3,
3225
3234
  icon: "pi pi-print",
@@ -3256,7 +3265,7 @@ var Bn = { class: "w-crud" }, Vn = {
3256
3265
  I(e.$slots, "form-dialog", {
3257
3266
  crud: t.crud,
3258
3267
  dialogWidth: t.dialogWidth
3259
- }, () => [b(Fn, {
3268
+ }, () => [b(Ln, {
3260
3269
  visible: t.crud.dialogVisible.value,
3261
3270
  title: t.crud.dialogTitle.value,
3262
3271
  fields: t.crud.config.form,
@@ -3319,63 +3328,63 @@ var Bn = { class: "w-crud" }, Vn = {
3319
3328
  ]);
3320
3329
  };
3321
3330
  }
3322
- }), Cr = {
3331
+ }), Tr = {
3323
3332
  key: 0,
3324
3333
  class: "w-editable-table__toolbar"
3325
- }, wr = ["disabled"], Tr = ["role"], Er = {
3334
+ }, Er = ["disabled"], Dr = ["role"], Or = {
3326
3335
  key: 0,
3327
3336
  class: "w-editable-table__group-row"
3328
- }, Dr = {
3337
+ }, kr = {
3329
3338
  key: 0,
3330
3339
  class: "w-editable-table__toggle-col"
3331
- }, Or = ["colspan"], kr = {
3340
+ }, Ar = ["colspan"], jr = {
3332
3341
  key: 1,
3333
3342
  class: "w-editable-table__action-col"
3334
- }, Ar = {
3343
+ }, Mr = {
3335
3344
  key: 0,
3336
3345
  class: "w-editable-table__toggle-col"
3337
- }, jr = {
3346
+ }, Nr = {
3338
3347
  key: 1,
3339
3348
  class: "w-editable-table__action-col"
3340
- }, Mr = { key: 0 }, Nr = ["colspan"], Pr = {
3349
+ }, Pr = { key: 0 }, Fr = ["colspan"], Ir = {
3341
3350
  key: 0,
3342
3351
  class: "w-editable-table__toggle-col",
3343
3352
  "data-card": "expander"
3344
- }, Fr = [
3353
+ }, Lr = [
3345
3354
  "aria-expanded",
3346
3355
  "aria-label",
3347
3356
  "onClick"
3348
- ], Ir = {
3357
+ ], Rr = {
3349
3358
  key: 0,
3350
3359
  class: "w-editable-table__toggle-label"
3351
- }, Lr = ["data-card"], Rr = {
3360
+ }, zr = ["data-card"], Br = {
3352
3361
  key: 0,
3353
3362
  class: "w-editable-table__card-label"
3354
- }, zr = {
3355
- key: 3,
3363
+ }, Vr = {
3364
+ key: 4,
3356
3365
  class: "w-editable-table__text"
3357
- }, Br = {
3366
+ }, Hr = {
3358
3367
  key: 1,
3359
3368
  class: "w-editable-table__action-col",
3360
3369
  "data-card": "actions"
3361
- }, Vr = ["onClick"], Hr = {
3370
+ }, Ur = ["onClick"], Wr = {
3362
3371
  key: 0,
3363
3372
  class: "w-editable-table__expansion"
3364
- }, Ur = ["colspan"], Wr = { key: 1 }, Gr = { class: "w-editable-table__footer" }, Kr = {
3373
+ }, Gr = ["colspan"], Kr = { key: 1 }, qr = { class: "w-editable-table__footer" }, Jr = {
3365
3374
  key: 0,
3366
3375
  class: "w-editable-table__toggle-col",
3367
3376
  "data-card": "hidden"
3368
- }, qr = ["data-card"], Jr = {
3377
+ }, Yr = ["data-card"], Xr = {
3369
3378
  key: 0,
3370
3379
  class: "w-editable-table__card-label"
3371
- }, Yr = {
3380
+ }, Zr = {
3372
3381
  key: 0,
3373
3382
  class: "w-editable-table__footer-label"
3374
- }, Xr = { key: 1 }, Zr = {
3383
+ }, Qr = { key: 1 }, $r = {
3375
3384
  key: 1,
3376
3385
  class: "w-editable-table__action-col",
3377
3386
  "data-card": "hidden"
3378
- }, Qr = /* @__PURE__ */ x({
3387
+ }, ei = /* @__PURE__ */ x({
3379
3388
  __name: "WEditableTable",
3380
3389
  props: {
3381
3390
  modelValue: { default: () => [] },
@@ -3490,52 +3499,52 @@ var Bn = { class: "w-crud" }, Vn = {
3490
3499
  }
3491
3500
  return e;
3492
3501
  });
3493
- return (e, n) => (M(), h("div", { class: k(["w-editable-table", { "w-editable-table--cards": c.value }]) }, [e.$slots.toolbar || e.$slots["toolbar-extra"] || t.addLabel ? (M(), h("div", Cr, [I(e.$slots, "toolbar", {}, () => [t.addLabel ? (M(), h("button", {
3502
+ return (e, n) => (M(), h("div", { class: k(["w-editable-table", { "w-editable-table--cards": c.value }]) }, [e.$slots.toolbar || e.$slots["toolbar-extra"] || t.addLabel ? (M(), h("div", Tr, [I(e.$slots, "toolbar", {}, () => [t.addLabel ? (M(), h("button", {
3494
3503
  key: 0,
3495
3504
  type: "button",
3496
3505
  class: "w-editable-table__add",
3497
3506
  disabled: t.disabled,
3498
3507
  onClick: n[0] ||= (e) => a("add")
3499
- }, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8, wr)) : m("", !0)]), I(e.$slots, "toolbar-extra")])) : m("", !0), g("table", {
3508
+ }, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8, Er)) : m("", !0)]), I(e.$slots, "toolbar-extra")])) : m("", !0), g("table", {
3500
3509
  class: "w-editable-table__table",
3501
3510
  role: c.value ? "presentation" : void 0
3502
3511
  }, [
3503
- g("thead", null, [ce.value ? (M(), h("tr", Er, [
3504
- t.expandable ? (M(), h("th", Dr)) : m("", !0),
3512
+ g("thead", null, [ce.value ? (M(), h("tr", Or, [
3513
+ t.expandable ? (M(), h("th", kr)) : m("", !0),
3505
3514
  (M(!0), h(d, null, F(le.value, (e) => (M(), h("th", {
3506
3515
  key: e.key,
3507
3516
  colspan: e.span,
3508
3517
  class: k(["w-editable-table__group", { "w-editable-table__group--label": e.label }])
3509
- }, L(e.label), 11, Or))), 128)),
3510
- t.removable ? (M(), h("th", kr)) : m("", !0)
3518
+ }, L(e.label), 11, Ar))), 128)),
3519
+ t.removable ? (M(), h("th", jr)) : m("", !0)
3511
3520
  ])) : m("", !0), g("tr", null, [
3512
- t.expandable ? (M(), h("th", Ar)) : m("", !0),
3521
+ t.expandable ? (M(), h("th", Mr)) : m("", !0),
3513
3522
  (M(!0), h(d, null, F(t.columns, (e) => (M(), h("th", {
3514
3523
  key: e.field,
3515
3524
  class: k(E(e)),
3516
3525
  style: j(D(e))
3517
3526
  }, L(e.header), 7))), 128)),
3518
- t.removable ? (M(), h("th", jr)) : m("", !0)
3527
+ t.removable ? (M(), h("th", Nr)) : m("", !0)
3519
3528
  ])]),
3520
- t.modelValue.length ? m("", !0) : (M(), h("tbody", Mr, [g("tr", null, [g("td", {
3529
+ t.modelValue.length ? m("", !0) : (M(), h("tbody", Pr, [g("tr", null, [g("td", {
3521
3530
  colspan: se.value,
3522
3531
  class: "w-editable-table__empty",
3523
3532
  "data-card": "expansion"
3524
- }, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8, Nr)])])),
3533
+ }, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8, Fr)])])),
3525
3534
  (M(!0), h(d, null, F(t.modelValue, (r, i) => (M(), h("tbody", { key: N(r, i) }, [g("tr", { class: k(["w-editable-table__row", { "w-editable-table__row--alt": i % 2 == 1 }]) }, [
3526
- t.expandable ? (M(), h("td", Pr, [g("button", {
3535
+ t.expandable ? (M(), h("td", Ir, [g("button", {
3527
3536
  type: "button",
3528
3537
  class: "w-editable-table__toggle",
3529
3538
  "aria-expanded": b(i),
3530
3539
  "aria-label": t.expansionLabel,
3531
3540
  onClick: (e) => x(i)
3532
- }, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span", Ir, L(t.expansionLabel), 1)) : m("", !0)], 8, Fr)])) : m("", !0),
3541
+ }, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span", Rr, L(t.expansionLabel), 1)) : m("", !0)], 8, Lr)])) : m("", !0),
3533
3542
  (M(!0), h(d, null, F(t.columns, (t) => (M(), h("td", {
3534
3543
  key: t.field,
3535
3544
  class: k(E(t)),
3536
3545
  style: j(D(t)),
3537
3546
  "data-card": u(t)
3538
- }, [c.value ? (M(), h("span", Rr, L(_(t)), 1)) : m("", !0), I(e.$slots, `cell-${t.field}`, {
3547
+ }, [c.value ? (M(), h("span", Br, L(_(t)), 1)) : m("", !0), I(e.$slots, `cell-${t.field}`, {
3539
3548
  row: r,
3540
3549
  index: i,
3541
3550
  value: r[t.field],
@@ -3594,51 +3603,67 @@ var Bn = { class: "w-crud" }, Vn = {
3594
3603
  "placeholder",
3595
3604
  "disabled",
3596
3605
  "onUpdate:modelValue"
3597
- ])) : (M(), h("span", zr, L(ee(t, r)), 1))])], 14, Lr))), 128)),
3598
- t.removable ? (M(), h("td", Br, [g("button", {
3606
+ ])) : t.editor === "date" ? (M(), p(Nt, {
3607
+ key: 3,
3608
+ "model-value": r[t.field],
3609
+ "min-date": t.minDate,
3610
+ "max-date": t.maxDate,
3611
+ placeholder: t.placeholder,
3612
+ disabled: O(t, r, i),
3613
+ "show-clear": !1,
3614
+ "onUpdate:modelValue": (e) => te(i, t.field, e)
3615
+ }, null, 8, [
3616
+ "model-value",
3617
+ "min-date",
3618
+ "max-date",
3619
+ "placeholder",
3620
+ "disabled",
3621
+ "onUpdate:modelValue"
3622
+ ])) : (M(), h("span", Vr, L(ee(t, r)), 1))])], 14, zr))), 128)),
3623
+ t.removable ? (M(), h("td", Hr, [g("button", {
3599
3624
  type: "button",
3600
3625
  class: "w-editable-table__remove",
3601
3626
  "aria-label": "Remover linha",
3602
3627
  onClick: (e) => ne(r, i)
3603
- }, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, Vr)])) : m("", !0)
3604
- ], 2), t.expandable && b(i) ? (M(), h("tr", Hr, [g("td", {
3628
+ }, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, Ur)])) : m("", !0)
3629
+ ], 2), t.expandable && b(i) ? (M(), h("tr", Wr, [g("td", {
3605
3630
  colspan: se.value,
3606
3631
  "data-card": "expansion"
3607
3632
  }, [I(e.$slots, "expansion", {
3608
3633
  row: r,
3609
3634
  index: i
3610
- })], 8, Ur)])) : m("", !0)]))), 128)),
3611
- re.value ? (M(), h("tfoot", Wr, [g("tr", Gr, [
3612
- t.expandable ? (M(), h("td", Kr)) : m("", !0),
3635
+ })], 8, Gr)])) : m("", !0)]))), 128)),
3636
+ re.value ? (M(), h("tfoot", Kr, [g("tr", qr, [
3637
+ t.expandable ? (M(), h("td", Jr)) : m("", !0),
3613
3638
  (M(!0), h(d, null, F(t.columns, (n) => (M(), h("td", {
3614
3639
  key: n.field,
3615
3640
  class: k(E(n)),
3616
3641
  style: j(D(n)),
3617
3642
  "data-card": n.field === oe.value ? "total-label" : ae(n) ? "read" : "hidden"
3618
- }, [c.value && ae(n) ? (M(), h("span", Jr, L(_(n)), 1)) : m("", !0), I(e.$slots, `footer-${n.field}`, {
3643
+ }, [c.value && ae(n) ? (M(), h("span", Xr, L(_(n)), 1)) : m("", !0), I(e.$slots, `footer-${n.field}`, {
3619
3644
  rows: t.modelValue,
3620
3645
  column: n
3621
- }, () => [n.field === oe.value ? (M(), h("span", Yr, L(t.footerLabel), 1)) : (M(), h("span", Xr, L(ie(n)), 1))])], 14, qr))), 128)),
3622
- t.removable ? (M(), h("td", Zr)) : m("", !0)
3646
+ }, () => [n.field === oe.value ? (M(), h("span", Zr, L(t.footerLabel), 1)) : (M(), h("span", Qr, L(ie(n)), 1))])], 14, Yr))), 128)),
3647
+ t.removable ? (M(), h("td", $r)) : m("", !0)
3623
3648
  ])])) : m("", !0)
3624
- ], 8, Tr)], 2));
3649
+ ], 8, Dr)], 2));
3625
3650
  }
3626
- }), $r = { class: "w-crud-subview" }, ei = {
3651
+ }), ti = { class: "w-crud-subview" }, ni = {
3627
3652
  key: 0,
3628
3653
  class: "w-crud-subview__header"
3629
- }, ti = { class: "w-crud-subview__heading" }, ni = {
3654
+ }, ri = { class: "w-crud-subview__heading" }, ii = {
3630
3655
  key: 0,
3631
3656
  class: "w-crud-subview__title"
3632
- }, ri = {
3657
+ }, ai = {
3633
3658
  key: 0,
3634
3659
  class: "w-crud-subview__count"
3635
- }, ii = {
3660
+ }, oi = {
3636
3661
  key: 1,
3637
3662
  class: "w-crud-subview__subtitle"
3638
- }, ai = {
3663
+ }, si = {
3639
3664
  key: 0,
3640
3665
  class: "w-crud-subview__actions"
3641
- }, oi = { class: "w-crud-subview__row-actions" }, si = ["onClick"], ci = ["onClick"], li = "__acoes", ui = /* @__PURE__ */ x({
3666
+ }, ci = { class: "w-crud-subview__row-actions" }, li = ["onClick"], ui = ["onClick"], di = "__acoes", fi = /* @__PURE__ */ x({
3642
3667
  __name: "WCrudSubview",
3643
3668
  props: {
3644
3669
  crud: {},
@@ -3664,18 +3689,18 @@ var Bn = { class: "w-crud" }, Vn = {
3664
3689
  },
3665
3690
  setup(e) {
3666
3691
  let t = e, n = le(), r = f(() => t.crud.items.value), i = f(() => t.crud.config.canCreate !== !1 && !t.disabled), a = f(() => t.crud.config.canEdit !== !1 && !t.disabled), o = f(() => t.crud.config.canDelete !== !1 && !t.disabled), s = f(() => a.value || o.value), c = f(() => s.value ? [...t.columns, {
3667
- field: li,
3692
+ field: di,
3668
3693
  header: "",
3669
3694
  width: "5rem",
3670
3695
  align: "right",
3671
3696
  card: "actions"
3672
- }] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${li}`)), u = f(() => Object.keys(n).filter((e) => e.startsWith("field-") || e.startsWith("image-")));
3697
+ }] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${di}`)), u = f(() => Object.keys(n).filter((e) => e.startsWith("field-") || e.startsWith("image-")));
3673
3698
  function d(e) {
3674
3699
  t.crud.config.onChange(e);
3675
3700
  }
3676
- return (t, n) => (M(), h("div", $r, [
3677
- e.title || t.$slots["toolbar-actions"] ? (M(), h("div", ei, [g("div", ti, [e.title ? (M(), h("h3", ni, [y(L(e.title) + " ", 1), r.value.length ? (M(), h("span", ri, L(r.value.length), 1)) : m("", !0)])) : m("", !0), e.subtitle ? (M(), h("p", ii, L(e.subtitle), 1)) : m("", !0)]), t.$slots["toolbar-actions"] ? (M(), h("div", ai, [I(t.$slots, "toolbar-actions")])) : m("", !0)])) : m("", !0),
3678
- b(Qr, {
3701
+ return (t, n) => (M(), h("div", ti, [
3702
+ e.title || t.$slots["toolbar-actions"] ? (M(), h("div", ni, [g("div", ri, [e.title ? (M(), h("h3", ii, [y(L(e.title) + " ", 1), r.value.length ? (M(), h("span", ai, L(r.value.length), 1)) : m("", !0)])) : m("", !0), e.subtitle ? (M(), h("p", oi, L(e.subtitle), 1)) : m("", !0)]), t.$slots["toolbar-actions"] ? (M(), h("div", si, [I(t.$slots, "toolbar-actions")])) : m("", !0)])) : m("", !0),
3703
+ b(ei, {
3679
3704
  "model-value": r.value,
3680
3705
  columns: c.value,
3681
3706
  expandable: e.expandable,
@@ -3689,19 +3714,19 @@ var Bn = { class: "w-crud" }, Vn = {
3689
3714
  "onUpdate:modelValue": d,
3690
3715
  onAdd: n[0] ||= (t) => e.crud.openCreateDialog()
3691
3716
  }, _({
3692
- [`cell-${li}`]: V(({ row: t, index: r }) => [g("div", oi, [a.value ? (M(), h("button", {
3717
+ [`cell-${di}`]: V(({ row: t, index: r }) => [g("div", ci, [a.value ? (M(), h("button", {
3693
3718
  key: 0,
3694
3719
  type: "button",
3695
3720
  class: "w-crud-subview__action",
3696
3721
  "aria-label": "Editar",
3697
3722
  onClick: (n) => e.crud.openEditDialog(t, r)
3698
- }, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, si)) : m("", !0), o.value ? (M(), h("button", {
3723
+ }, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, li)) : m("", !0), o.value ? (M(), h("button", {
3699
3724
  key: 1,
3700
3725
  type: "button",
3701
3726
  class: "w-crud-subview__action w-crud-subview__action--danger",
3702
3727
  "aria-label": "Excluir",
3703
3728
  onClick: (n) => e.crud.confirmDelete(t, r)
3704
- }, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ci)) : m("", !0)])]),
3729
+ }, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ui)) : m("", !0)])]),
3705
3730
  _: 2
3706
3731
  }, [
3707
3732
  t.$slots["toolbar-extra"] ? {
@@ -3735,7 +3760,7 @@ var Bn = { class: "w-crud" }, Vn = {
3735
3760
  "card-mode",
3736
3761
  "expansion-label"
3737
3762
  ]),
3738
- b(Fn, {
3763
+ b(Ln, {
3739
3764
  visible: e.crud.dialogVisible.value,
3740
3765
  title: e.crud.dialogTitle.value,
3741
3766
  fields: e.crud.config.form,
@@ -3777,7 +3802,7 @@ var Bn = { class: "w-crud" }, Vn = {
3777
3802
  ])
3778
3803
  ]));
3779
3804
  }
3780
- }), di = /* @__PURE__ */ x({
3805
+ }), pi = /* @__PURE__ */ x({
3781
3806
  __name: "WDateRange",
3782
3807
  props: {
3783
3808
  modelValue: { default: null },
@@ -3819,14 +3844,14 @@ var Bn = { class: "w-crud" }, Vn = {
3819
3844
  "disabled"
3820
3845
  ]));
3821
3846
  }
3822
- }), fi = {
3847
+ }), mi = {
3823
3848
  class: "w-fileupload",
3824
3849
  style: {
3825
3850
  display: "flex",
3826
3851
  "flex-direction": "column",
3827
3852
  gap: "0.5rem"
3828
3853
  }
3829
- }, pi = ["accept", "multiple"], mi = {
3854
+ }, hi = ["accept", "multiple"], gi = {
3830
3855
  key: 0,
3831
3856
  style: {
3832
3857
  "list-style": "none",
@@ -3836,12 +3861,12 @@ var Bn = { class: "w-crud" }, Vn = {
3836
3861
  "flex-direction": "column",
3837
3862
  gap: "0.35rem"
3838
3863
  }
3839
- }, hi = { style: {
3864
+ }, _i = { style: {
3840
3865
  flex: "1",
3841
3866
  overflow: "hidden",
3842
3867
  "text-overflow": "ellipsis",
3843
3868
  "white-space": "nowrap"
3844
- } }, gi = { style: { opacity: "0.6" } }, _i = /* @__PURE__ */ x({
3869
+ } }, vi = { style: { opacity: "0.6" } }, yi = /* @__PURE__ */ x({
3845
3870
  __name: "WFileUpload",
3846
3871
  props: {
3847
3872
  modelValue: { default: null },
@@ -3890,7 +3915,7 @@ var Bn = { class: "w-crud" }, Vn = {
3890
3915
  function l(e) {
3891
3916
  return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
3892
3917
  }
3893
- return (t, n) => (M(), h("div", fi, [
3918
+ return (t, n) => (M(), h("div", mi, [
3894
3919
  g("div", null, [b(R(K), {
3895
3920
  type: "button",
3896
3921
  label: e.chooseLabel,
@@ -3908,8 +3933,8 @@ var Bn = { class: "w-crud" }, Vn = {
3908
3933
  multiple: e.multiple,
3909
3934
  style: { display: "none" },
3910
3935
  onChange: s
3911
- }, null, 40, pi),
3912
- a.value.length ? (M(), h("ul", mi, [(M(!0), h(d, null, F(a.value, (t, r) => (M(), h("li", {
3936
+ }, null, 40, hi),
3937
+ a.value.length ? (M(), h("ul", gi, [(M(!0), h(d, null, F(a.value, (t, r) => (M(), h("li", {
3913
3938
  key: `${t.name}-${r}`,
3914
3939
  style: {
3915
3940
  display: "flex",
@@ -3922,8 +3947,8 @@ var Bn = { class: "w-crud" }, Vn = {
3922
3947
  class: "pi pi-file",
3923
3948
  style: { opacity: "0.6" }
3924
3949
  }, null, -1),
3925
- g("span", hi, L(t.name), 1),
3926
- g("span", gi, L(l(t.size)), 1),
3950
+ g("span", _i, L(t.name), 1),
3951
+ g("span", vi, L(l(t.size)), 1),
3927
3952
  b(R(K), {
3928
3953
  type: "button",
3929
3954
  icon: "pi pi-times",
@@ -3941,10 +3966,10 @@ var Bn = { class: "w-crud" }, Vn = {
3941
3966
  ]));
3942
3967
  }
3943
3968
  });
3944
- function vi(e) {
3969
+ function bi(e) {
3945
3970
  return String(e ?? "").normalize("NFD").replace(/\p{Diacritic}/gu, "").toLocaleLowerCase();
3946
3971
  }
3947
- function yi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
3972
+ function xi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
3948
3973
  let a = [], o = /* @__PURE__ */ new Map();
3949
3974
  for (let s of e ?? []) {
3950
3975
  let e = s[t];
@@ -3970,19 +3995,19 @@ function yi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, gro
3970
3995
  }
3971
3996
  return a;
3972
3997
  }
3973
- function bi(e) {
3974
- return e.children?.length ? e.children.flatMap(bi) : e.value === void 0 ? [] : [e.value];
3998
+ function Si(e) {
3999
+ return e.children?.length ? e.children.flatMap(Si) : e.value === void 0 ? [] : [e.value];
3975
4000
  }
3976
- function xi(e) {
3977
- return e.flatMap(bi);
4001
+ function Ci(e) {
4002
+ return e.flatMap(Si);
3978
4003
  }
3979
- function Si(e) {
4004
+ function wi(e) {
3980
4005
  let t = /* @__PURE__ */ new Map(), n = (e) => {
3981
4006
  t.set(e.key, e), e.children?.forEach(n);
3982
4007
  };
3983
4008
  return e.forEach(n), t;
3984
4009
  }
3985
- function Ci(e, t) {
4010
+ function Ti(e, t) {
3986
4011
  let n = new Set(t ?? []), r = {}, i = (e) => {
3987
4012
  if (!e.children?.length) {
3988
4013
  let t = e.value !== void 0 && n.has(e.value);
@@ -4012,10 +4037,10 @@ function Ci(e, t) {
4012
4037
  };
4013
4038
  return e.forEach(i), r;
4014
4039
  }
4015
- function wi(e, t, n = []) {
4016
- let r = vi(t).trim();
4040
+ function Ei(e, t, n = []) {
4041
+ let r = bi(t).trim();
4017
4042
  if (!r) return [...e];
4018
- let i = (e) => vi(e.label).includes(r) ? !0 : n.some((t) => vi(e.data?.[t]).includes(r)), a = [];
4043
+ let i = (e) => bi(e.label).includes(r) ? !0 : n.some((t) => bi(e.data?.[t]).includes(r)), a = [];
4019
4044
  for (let r of e) {
4020
4045
  if (!r.children?.length) {
4021
4046
  i(r) && a.push(r);
@@ -4025,7 +4050,7 @@ function wi(e, t, n = []) {
4025
4050
  a.push(r);
4026
4051
  continue;
4027
4052
  }
4028
- let e = wi(r.children, t, n);
4053
+ let e = Ei(r.children, t, n);
4029
4054
  e.length && a.push({
4030
4055
  ...r,
4031
4056
  children: e
@@ -4033,7 +4058,7 @@ function wi(e, t, n = []) {
4033
4058
  }
4034
4059
  return a;
4035
4060
  }
4036
- function Ti(e, t, n) {
4061
+ function Di(e, t, n) {
4037
4062
  let r = new Set(t);
4038
4063
  if (!n) return (e ?? []).filter((e) => !r.has(e));
4039
4064
  let i = [...e ?? []], a = new Set(i);
@@ -4042,19 +4067,19 @@ function Ti(e, t, n) {
4042
4067
  }
4043
4068
  //#endregion
4044
4069
  //#region src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
4045
- var Ei = {
4070
+ var Oi = {
4046
4071
  key: 0,
4047
4072
  class: "w-tree-select__head"
4048
- }, Di = {
4073
+ }, ki = {
4049
4074
  key: 0,
4050
4075
  class: "w-tree-select__count"
4051
- }, Oi = { key: 1 }, ki = {
4076
+ }, Ai = { key: 1 }, ji = {
4052
4077
  key: 2,
4053
4078
  class: "w-tree-select__actions"
4054
- }, Ai = {
4079
+ }, Mi = {
4055
4080
  key: 2,
4056
4081
  class: "w-tree-select__empty"
4057
- }, ji = /* @__PURE__ */ x({
4082
+ }, Ni = /* @__PURE__ */ x({
4058
4083
  __name: "WTreeSelect",
4059
4084
  props: {
4060
4085
  modelValue: { default: () => [] },
@@ -4095,13 +4120,13 @@ var Ei = {
4095
4120
  },
4096
4121
  emits: ["update:modelValue"],
4097
4122
  setup(e, { emit: t }) {
4098
- let n = e, r = t, i = P(""), a = P({}), o = f(() => yi(n.options, {
4123
+ let n = e, r = t, i = P(""), a = P({}), o = f(() => xi(n.options, {
4099
4124
  optionValue: n.optionValue,
4100
4125
  optionLabel: n.optionLabel,
4101
4126
  groupBy: n.groupBy,
4102
4127
  groupLabel: n.groupLabel
4103
- })), s = f(() => Si(o.value)), c = f(() => n.filter && i.value.trim().length > 0), l = f(() => c.value ? wi(o.value, i.value, n.filterFields) : o.value), u = f(() => Ci(o.value, n.modelValue)), d = f(() => xi(o.value).length), g = f(() => {
4104
- let e = new Set(xi(o.value));
4128
+ })), s = f(() => wi(o.value)), c = f(() => n.filter && i.value.trim().length > 0), l = f(() => c.value ? Ei(o.value, i.value, n.filterFields) : o.value), u = f(() => Ti(o.value, n.modelValue)), d = f(() => Ci(o.value).length), g = f(() => {
4129
+ let e = new Set(Ci(o.value));
4105
4130
  return n.modelValue.filter((t) => e.has(t)).length;
4106
4131
  }), _ = f(() => (n.showCount || n.showToggleAll) && (d.value > 0 || n.loading)), v = f(() => !n.loading && l.value.length === 0), x = f(() => c.value ? n.filterEmptyMessage : n.emptyMessage);
4107
4132
  function S(e) {
@@ -4120,10 +4145,10 @@ var Ei = {
4120
4145
  function w(e, t) {
4121
4146
  if (n.disabled) return;
4122
4147
  let i = s.value.get(e.key);
4123
- i && r("update:modelValue", Ti(n.modelValue, bi(i), t));
4148
+ i && r("update:modelValue", Di(n.modelValue, Si(i), t));
4124
4149
  }
4125
4150
  function T() {
4126
- n.disabled || r("update:modelValue", xi(o.value));
4151
+ n.disabled || r("update:modelValue", Ci(o.value));
4127
4152
  }
4128
4153
  function E() {
4129
4154
  n.disabled || r("update:modelValue", []);
@@ -4132,7 +4157,7 @@ var Ei = {
4132
4157
  I(t.$slots, "header", {
4133
4158
  selectedCount: g.value,
4134
4159
  total: d.value
4135
- }, () => [_.value ? (M(), h("div", Ei, [e.showCount ? (M(), h("span", Di, L(g.value) + " de " + L(d.value) + " selecionados ", 1)) : (M(), h("span", Oi)), e.showToggleAll ? (M(), h("div", ki, [b(R(K), {
4160
+ }, () => [_.value ? (M(), h("div", Oi, [e.showCount ? (M(), h("span", ki, L(g.value) + " de " + L(d.value) + " selecionados ", 1)) : (M(), h("span", Ai)), e.showToggleAll ? (M(), h("div", ji, [b(R(K), {
4136
4161
  type: "button",
4137
4162
  label: "Marcar todos",
4138
4163
  text: "",
@@ -4169,7 +4194,7 @@ var Ei = {
4169
4194
  ])]),
4170
4195
  _: 1
4171
4196
  })) : m("", !0),
4172
- v.value ? (M(), h("div", Ai, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
4197
+ v.value ? (M(), h("div", Mi, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
4173
4198
  key: 1,
4174
4199
  value: l.value,
4175
4200
  "selection-mode": "checkbox",
@@ -4193,9 +4218,9 @@ var Ei = {
4193
4218
  ]))
4194
4219
  ], 2));
4195
4220
  }
4196
- }), Mi = null;
4197
- function Ni() {
4198
- return Mi ||= Promise.all([
4221
+ }), Pi = null;
4222
+ function Fi() {
4223
+ return Pi ||= Promise.all([
4199
4224
  import("echarts/core"),
4200
4225
  import("echarts/charts"),
4201
4226
  import("echarts/components"),
@@ -4211,11 +4236,11 @@ function Ni() {
4211
4236
  n.TooltipComponent,
4212
4237
  r.CanvasRenderer,
4213
4238
  r.SVGRenderer
4214
- ]), e)).catch(() => (Mi = null, null)), Mi;
4239
+ ]), e)).catch(() => (Pi = null, null)), Pi;
4215
4240
  }
4216
- var Pi = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
4217
- function Fi() {
4218
- let e = Pi("--fg"), t = Pi("--fg-muted"), n = Pi("--border"), r = Pi("--surface"), i = Pi("--font-sans", "sans-serif"), a = {
4241
+ var Ii = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
4242
+ function Li() {
4243
+ let e = Ii("--fg"), t = Ii("--fg-muted"), n = Ii("--border"), r = Ii("--surface"), i = Ii("--font-sans", "sans-serif"), a = {
4219
4244
  axisLine: { lineStyle: { color: n } },
4220
4245
  axisTick: { show: !1 },
4221
4246
  axisLabel: { color: t },
@@ -4230,7 +4255,7 @@ function Fi() {
4230
4255
  4,
4231
4256
  5,
4232
4257
  6
4233
- ].map((e) => Pi(`--viz-${e}`)),
4258
+ ].map((e) => Ii(`--viz-${e}`)),
4234
4259
  backgroundColor: "transparent",
4235
4260
  textStyle: {
4236
4261
  color: e,
@@ -4280,7 +4305,7 @@ function Fi() {
4280
4305
  ] } }
4281
4306
  };
4282
4307
  }
4283
- function Ii() {
4308
+ function Ri() {
4284
4309
  let e = [
4285
4310
  "#141a22",
4286
4311
  "#5a6573",
@@ -4333,16 +4358,16 @@ function Ii() {
4333
4358
  bar: { itemStyle: { borderRadius: 0 } }
4334
4359
  };
4335
4360
  }
4336
- function Li() {
4361
+ function zi() {
4337
4362
  return {
4338
4363
  text: "",
4339
- color: Pi("--primary"),
4364
+ color: Ii("--primary"),
4340
4365
  maskColor: "transparent",
4341
4366
  spinnerRadius: 8,
4342
4367
  lineWidth: 2
4343
4368
  };
4344
4369
  }
4345
- function Ri({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
4370
+ function Bi({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
4346
4371
  return {
4347
4372
  tooltip: {
4348
4373
  trigger: "item",
@@ -4376,13 +4401,13 @@ function Ri({ data: e, format: t = (e) => String(e), centerLabel: n = "", center
4376
4401
  }
4377
4402
  //#endregion
4378
4403
  //#region src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
4379
- var zi = {
4404
+ var Vi = {
4380
4405
  key: 0,
4381
4406
  class: "w-chart__empty"
4382
- }, Bi = {
4407
+ }, Hi = {
4383
4408
  key: 1,
4384
4409
  class: "w-chart__empty"
4385
- }, Vi = /*#__PURE__*/ Wt(/* @__PURE__ */ x({
4410
+ }, Ui = /*#__PURE__*/ Wt(/* @__PURE__ */ x({
4386
4411
  __name: "WChart",
4387
4412
  props: {
4388
4413
  option: {},
@@ -4406,15 +4431,15 @@ var zi = {
4406
4431
  let t = e, n = P(null), r = oe(null), i = P(!1), a = null, o = null, s = () => {
4407
4432
  r.value && r.value.setOption(t.option, !0);
4408
4433
  }, c = () => {
4409
- r.value && (t.loading ? r.value.showLoading("default", Li()) : r.value.hideLoading());
4434
+ r.value && (t.loading ? r.value.showLoading("default", zi()) : r.value.hideLoading());
4410
4435
  }, l = async () => {
4411
- let e = await Ni();
4436
+ let e = await Fi();
4412
4437
  if (n.value) {
4413
4438
  if (!e) {
4414
4439
  i.value = !0;
4415
4440
  return;
4416
4441
  }
4417
- i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ? Ii() : Fi(), { renderer: t.print ? "svg" : t.renderer }), s(), c();
4442
+ i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ? Ri() : Li(), { renderer: t.print ? "svg" : t.renderer }), s(), c();
4418
4443
  }
4419
4444
  };
4420
4445
  return B(() => t.option, s, { deep: !0 }), B(() => t.loading, c), B([() => t.print, () => t.renderer], () => void l()), te(() => {
@@ -4424,13 +4449,13 @@ var zi = {
4424
4449
  }), (t, r) => (M(), h("div", {
4425
4450
  class: "w-chart",
4426
4451
  style: j(e.height ? { "--w-chart-h": e.height } : void 0)
4427
- }, [e.empty && !e.loading ? (M(), h("div", zi, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)], !0)])) : i.value ? (M(), h("div", Bi, [I(t.$slots, "unavailable", {}, () => [r[0] ||= y("Gráfico indisponível.", -1)], !0)])) : m("", !0), H(g("div", {
4452
+ }, [e.empty && !e.loading ? (M(), h("div", Vi, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)], !0)])) : i.value ? (M(), h("div", Hi, [I(t.$slots, "unavailable", {}, () => [r[0] ||= y("Gráfico indisponível.", -1)], !0)])) : m("", !0), H(g("div", {
4428
4453
  ref_key: "container",
4429
4454
  ref: n,
4430
4455
  class: "w-chart__canvas"
4431
4456
  }, null, 512), [[z, !e.empty && !i.value]])], 4));
4432
4457
  }
4433
- }), [["__scopeId", "data-v-fe796670"]]), Hi = /* @__PURE__ */ x({
4458
+ }), [["__scopeId", "data-v-fe796670"]]), Wi = /* @__PURE__ */ x({
4434
4459
  __name: "WStatusTag",
4435
4460
  props: {
4436
4461
  value: {},
@@ -4551,10 +4576,10 @@ var zi = {
4551
4576
  severity: r.value.severity
4552
4577
  }, null, 8, ["value", "severity"]));
4553
4578
  }
4554
- }), Ui = { class: "w-page-header" }, Wi = { class: "w-page-header-content" }, Gi = { class: "w-page-header-title" }, Ki = {
4579
+ }), Gi = { class: "w-page-header" }, Ki = { class: "w-page-header-content" }, qi = { class: "w-page-header-title" }, Ji = {
4555
4580
  key: 0,
4556
4581
  class: "w-page-header-subtitle"
4557
- }, qi = { class: "w-page-header-actions" }, Ji = /* @__PURE__ */ x({
4582
+ }, Yi = { class: "w-page-header-actions" }, Xi = /* @__PURE__ */ x({
4558
4583
  __name: "WPageHeader",
4559
4584
  props: {
4560
4585
  title: {},
@@ -4565,17 +4590,17 @@ var zi = {
4565
4590
  emits: ["action"],
4566
4591
  setup(e, { emit: t }) {
4567
4592
  let n = t;
4568
- return (t, r) => (M(), h("div", Ui, [g("div", Wi, [g("h2", Gi, L(e.title), 1), e.subtitle ? (M(), h("p", Ki, L(e.subtitle), 1)) : m("", !0)]), g("div", qi, [I(t.$slots, "actions"), e.actionLabel ? (M(), p(R(K), {
4593
+ return (t, r) => (M(), h("div", Gi, [g("div", Ki, [g("h2", qi, L(e.title), 1), e.subtitle ? (M(), h("p", Ji, L(e.subtitle), 1)) : m("", !0)]), g("div", Yi, [I(t.$slots, "actions"), e.actionLabel ? (M(), p(R(K), {
4569
4594
  key: 0,
4570
4595
  label: e.actionLabel,
4571
4596
  icon: e.actionIcon,
4572
4597
  onClick: r[0] ||= (e) => n("action")
4573
4598
  }, null, 8, ["label", "icon"])) : m("", !0)])]));
4574
4599
  }
4575
- }), Yi = { class: "w-empty-state" }, Xi = { class: "w-empty-state-icon" }, Zi = { class: "w-empty-state-title" }, Qi = {
4600
+ }), Zi = { class: "w-empty-state" }, Qi = { class: "w-empty-state-icon" }, $i = { class: "w-empty-state-title" }, ea = {
4576
4601
  key: 0,
4577
4602
  class: "w-empty-state-description"
4578
- }, $i = /* @__PURE__ */ x({
4603
+ }, ta = /* @__PURE__ */ x({
4579
4604
  __name: "WEmptyState",
4580
4605
  props: {
4581
4606
  icon: {},
@@ -4587,10 +4612,10 @@ var zi = {
4587
4612
  emits: ["action"],
4588
4613
  setup(e, { emit: t }) {
4589
4614
  let n = t;
4590
- return (t, r) => (M(), h("div", Yi, [
4591
- g("div", Xi, [g("i", { class: k(e.icon) }, null, 2)]),
4592
- g("p", Zi, L(e.title), 1),
4593
- e.description ? (M(), h("p", Qi, L(e.description), 1)) : m("", !0),
4615
+ return (t, r) => (M(), h("div", Zi, [
4616
+ g("div", Qi, [g("i", { class: k(e.icon) }, null, 2)]),
4617
+ g("p", $i, L(e.title), 1),
4618
+ e.description ? (M(), h("p", ea, L(e.description), 1)) : m("", !0),
4594
4619
  e.actionLabel ? (M(), p(R(K), {
4595
4620
  key: 1,
4596
4621
  label: e.actionLabel,
@@ -4601,10 +4626,10 @@ var zi = {
4601
4626
  }, null, 8, ["label", "icon"])) : m("", !0)
4602
4627
  ]));
4603
4628
  }
4604
- }), ea = { class: "w-detail-header" }, ta = { class: "w-detail-header-left" }, na = { class: "w-detail-header-content" }, ra = { class: "w-detail-header-title" }, ia = {
4629
+ }), na = { class: "w-detail-header" }, ra = { class: "w-detail-header-left" }, ia = { class: "w-detail-header-content" }, aa = { class: "w-detail-header-title" }, oa = {
4605
4630
  key: 0,
4606
4631
  class: "w-detail-header-subtitle"
4607
- }, aa = { class: "w-detail-header-actions" }, oa = /* @__PURE__ */ x({
4632
+ }, sa = { class: "w-detail-header-actions" }, ca = /* @__PURE__ */ x({
4608
4633
  __name: "WDetailHeader",
4609
4634
  props: {
4610
4635
  title: {},
@@ -4620,7 +4645,7 @@ var zi = {
4620
4645
  function r() {
4621
4646
  t.backTo ? n.push(typeof t.backTo == "string" ? { name: t.backTo } : t.backTo) : t.backRoute ? n.push({ name: t.backRoute }) : n.back();
4622
4647
  }
4623
- return (t, n) => (M(), h("div", ea, [g("div", ta, [
4648
+ return (t, n) => (M(), h("div", na, [g("div", ra, [
4624
4649
  b(R(K), {
4625
4650
  icon: "pi pi-arrow-left",
4626
4651
  text: "",
@@ -4631,27 +4656,27 @@ var zi = {
4631
4656
  key: 0,
4632
4657
  class: k([e.icon, "w-detail-header-icon"])
4633
4658
  }, null, 2)) : m("", !0),
4634
- g("div", na, [g("h2", ra, L(e.title), 1), e.subtitle ? (M(), h("p", ia, L(e.subtitle), 1)) : m("", !0)]),
4635
- e.status ? (M(), p(Hi, {
4659
+ g("div", ia, [g("h2", aa, L(e.title), 1), e.subtitle ? (M(), h("p", oa, L(e.subtitle), 1)) : m("", !0)]),
4660
+ e.status ? (M(), p(Wi, {
4636
4661
  key: 1,
4637
4662
  value: e.status,
4638
4663
  map: e.statusMap
4639
4664
  }, null, 8, ["value", "map"])) : m("", !0)
4640
- ]), g("div", aa, [I(t.$slots, "actions")])]));
4665
+ ]), g("div", sa, [I(t.$slots, "actions")])]));
4641
4666
  }
4642
- }), sa = {
4667
+ }), la = {
4643
4668
  key: 0,
4644
4669
  class: "w-info-card-title"
4645
- }, ca = {
4670
+ }, ua = {
4646
4671
  key: 1,
4647
4672
  class: "w-info-card-metrics"
4648
- }, la = { class: "w-info-card-metric-label" }, ua = { class: "w-info-card-metric-value" }, da = {
4673
+ }, da = { class: "w-info-card-metric-label" }, fa = { class: "w-info-card-metric-value" }, pa = {
4649
4674
  key: 0,
4650
4675
  class: "w-info-card-metric-suffix"
4651
- }, fa = {
4676
+ }, ma = {
4652
4677
  key: 2,
4653
4678
  class: "w-info-card-grid"
4654
- }, pa = { class: "w-info-card-label" }, ma = { class: "w-info-card-value" }, ha = /* @__PURE__ */ x({
4679
+ }, ha = { class: "w-info-card-label" }, ga = { class: "w-info-card-value" }, _a = /* @__PURE__ */ x({
4655
4680
  __name: "WInfoCard",
4656
4681
  props: {
4657
4682
  title: {},
@@ -4664,34 +4689,34 @@ var zi = {
4664
4689
  let n = e.value;
4665
4690
  return n == null || n === "" ? "-" : e.format === "currency" ? t(Number(n)) : e.format === "date" ? r(String(n)) : e.format === "datetime" ? r(String(n), "DD/MM/YYYY HH:mm") : e.format === "number" ? i(Number(n), e.decimals ?? 2) : String(n);
4666
4691
  }
4667
- return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3", sa, L(e.title), 1)) : m("", !0), e.variant === "metric" ? (M(), h("div", ca, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
4692
+ return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3", la, L(e.title), 1)) : m("", !0), e.variant === "metric" ? (M(), h("div", ua, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
4668
4693
  key: e.label,
4669
4694
  class: "w-info-card-metric"
4670
4695
  }, [
4671
- g("span", la, L(e.label), 1),
4672
- g("span", ua, L(a(e)), 1),
4673
- e.suffix ? (M(), h("span", da, L(e.suffix), 1)) : m("", !0)
4674
- ]))), 128))])) : (M(), h("div", fa, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
4696
+ g("span", da, L(e.label), 1),
4697
+ g("span", fa, L(a(e)), 1),
4698
+ e.suffix ? (M(), h("span", pa, L(e.suffix), 1)) : m("", !0)
4699
+ ]))), 128))])) : (M(), h("div", ma, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
4675
4700
  key: e.label,
4676
4701
  class: "w-info-card-field"
4677
- }, [g("span", pa, L(e.label), 1), g("span", ma, L(a(e)), 1)]))), 128))]))], 2));
4702
+ }, [g("span", ha, L(e.label), 1), g("span", ga, L(a(e)), 1)]))), 128))]))], 2));
4678
4703
  }
4679
- }), ga = {
4704
+ }), va = {
4680
4705
  key: 0,
4681
4706
  class: "w-kpi-card__loading"
4682
- }, _a = { class: "w-kpi-card__loading-content" }, va = { class: "w-kpi-card__header" }, ya = {
4707
+ }, ya = { class: "w-kpi-card__loading-content" }, ba = { class: "w-kpi-card__header" }, xa = {
4683
4708
  key: 0,
4684
4709
  class: "w-kpi-card__icon"
4685
- }, ba = {
4710
+ }, Sa = {
4686
4711
  key: 1,
4687
4712
  class: "w-kpi-card__trend"
4688
- }, xa = { class: "w-kpi-card__content" }, Sa = { class: "w-kpi-card__label" }, Ca = { class: "w-kpi-card__value" }, wa = {
4713
+ }, Ca = { class: "w-kpi-card__content" }, wa = { class: "w-kpi-card__label" }, Ta = { class: "w-kpi-card__value" }, Ea = {
4689
4714
  key: 0,
4690
4715
  class: "w-kpi-card__hint"
4691
- }, Ta = {
4716
+ }, Da = {
4692
4717
  key: 0,
4693
4718
  class: "w-kpi-card__footer"
4694
- }, Ea = /* @__PURE__ */ x({
4719
+ }, Oa = /* @__PURE__ */ x({
4695
4720
  __name: "WKpiCard",
4696
4721
  props: {
4697
4722
  label: {},
@@ -4703,10 +4728,10 @@ var zi = {
4703
4728
  loading: { type: Boolean }
4704
4729
  },
4705
4730
  setup(e) {
4706
- return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div", ga, [b(R(X), {
4731
+ return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div", va, [b(R(X), {
4707
4732
  shape: "circle",
4708
4733
  size: "2.75rem"
4709
- }), g("div", _a, [
4734
+ }), g("div", ya, [
4710
4735
  b(R(X), {
4711
4736
  width: "6rem",
4712
4737
  height: "0.75rem"
@@ -4720,22 +4745,22 @@ var zi = {
4720
4745
  height: "0.75rem"
4721
4746
  })
4722
4747
  ])])) : (M(), h(d, { key: 1 }, [
4723
- g("div", va, [e.icon || t.$slots.icon ? (M(), h("div", ya, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
4748
+ g("div", ba, [e.icon || t.$slots.icon ? (M(), h("div", xa, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
4724
4749
  key: 0,
4725
4750
  class: k(e.icon)
4726
- }, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div", ba, [I(t.$slots, "trend", {}, () => [e.trend ? (M(), h("span", {
4751
+ }, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div", Sa, [I(t.$slots, "trend", {}, () => [e.trend ? (M(), h("span", {
4727
4752
  key: 0,
4728
4753
  class: k(["w-kpi-card__trend-badge", e.trend.direction ? `w-kpi-card__trend-badge--${e.trend.direction}` : ""])
4729
4754
  }, L(e.trend.value), 3)) : m("", !0)])])) : m("", !0)]),
4730
- g("div", xa, [
4731
- g("p", Sa, L(e.label), 1),
4732
- g("div", Ca, [I(t.$slots, "value", {}, () => [y(L(e.value), 1)])]),
4733
- e.hint || t.$slots.hint ? (M(), h("p", wa, [I(t.$slots, "hint", {}, () => [y(L(e.hint), 1)])])) : m("", !0)
4755
+ g("div", Ca, [
4756
+ g("p", wa, L(e.label), 1),
4757
+ g("div", Ta, [I(t.$slots, "value", {}, () => [y(L(e.value), 1)])]),
4758
+ e.hint || t.$slots.hint ? (M(), h("p", Ea, [I(t.$slots, "hint", {}, () => [y(L(e.hint), 1)])])) : m("", !0)
4734
4759
  ]),
4735
- t.$slots.footer ? (M(), h("footer", Ta, [I(t.$slots, "footer")])) : m("", !0)
4760
+ t.$slots.footer ? (M(), h("footer", Da, [I(t.$slots, "footer")])) : m("", !0)
4736
4761
  ], 64))], 2));
4737
4762
  }
4738
- }), Da = /* @__PURE__ */ x({
4763
+ }), ka = /* @__PURE__ */ x({
4739
4764
  __name: "WKpiGrid",
4740
4765
  props: {
4741
4766
  items: { default: () => [] },
@@ -4751,7 +4776,7 @@ var zi = {
4751
4776
  key: n,
4752
4777
  item: e,
4753
4778
  index: n
4754
- })), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Ea, {
4779
+ })), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Oa, {
4755
4780
  key: t,
4756
4781
  label: e.label,
4757
4782
  value: e.value,
@@ -4770,16 +4795,16 @@ var zi = {
4770
4795
  "loading"
4771
4796
  ]))), 128))], 2));
4772
4797
  }
4773
- }), Oa = { class: "w-section-header__main" }, ka = {
4798
+ }), Aa = { class: "w-section-header__main" }, ja = {
4774
4799
  key: 0,
4775
4800
  class: "w-section-header__icon"
4776
- }, Aa = { class: "w-section-header__content" }, ja = { class: "w-section-header__title-row" }, Ma = { class: "w-section-header__title" }, Na = {
4801
+ }, Ma = { class: "w-section-header__content" }, Na = { class: "w-section-header__title-row" }, Pa = { class: "w-section-header__title" }, Fa = {
4777
4802
  key: 0,
4778
4803
  class: "w-section-header__subtitle"
4779
- }, Pa = {
4804
+ }, Ia = {
4780
4805
  key: 0,
4781
4806
  class: "w-section-header__actions"
4782
- }, Fa = /* @__PURE__ */ x({
4807
+ }, La = /* @__PURE__ */ x({
4783
4808
  __name: "WSectionHeader",
4784
4809
  props: {
4785
4810
  title: {},
@@ -4788,21 +4813,21 @@ var zi = {
4788
4813
  compact: { type: Boolean }
4789
4814
  },
4790
4815
  setup(e) {
4791
- return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", Oa, [e.icon || t.$slots.icon ? (M(), h("div", ka, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
4816
+ return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", Aa, [e.icon || t.$slots.icon ? (M(), h("div", ja, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
4792
4817
  key: 0,
4793
4818
  class: k(e.icon)
4794
- }, null, 2)) : m("", !0)])])) : m("", !0), g("div", Aa, [g("div", ja, [g("h3", Ma, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (M(), h("p", Na, L(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (M(), h("div", Pa, [I(t.$slots, "actions")])) : m("", !0)], 2));
4819
+ }, null, 2)) : m("", !0)])])) : m("", !0), g("div", Ma, [g("div", Na, [g("h3", Pa, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (M(), h("p", Fa, L(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (M(), h("div", Ia, [I(t.$slots, "actions")])) : m("", !0)], 2));
4795
4820
  }
4796
- }), Ia = {
4821
+ }), Ra = {
4797
4822
  key: 0,
4798
4823
  class: "w-form-section__header"
4799
- }, La = { class: "w-form-section__content" }, Ra = { class: "w-form-section__title" }, za = {
4824
+ }, za = { class: "w-form-section__content" }, Ba = { class: "w-form-section__title" }, Va = {
4800
4825
  key: 0,
4801
4826
  class: "w-form-section__description"
4802
- }, Ba = {
4827
+ }, Ha = {
4803
4828
  key: 0,
4804
4829
  class: "w-form-section__actions"
4805
- }, Va = { class: "w-form-section__body" }, Ha = /* @__PURE__ */ x({
4830
+ }, Ua = { class: "w-form-section__body" }, Wa = /* @__PURE__ */ x({
4806
4831
  __name: "WFormSection",
4807
4832
  props: {
4808
4833
  title: {},
@@ -4810,18 +4835,18 @@ var zi = {
4810
4835
  variant: {}
4811
4836
  },
4812
4837
  setup(e) {
4813
- return (t, n) => (M(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (M(), h("div", Ia, [g("div", La, [g("h3", Ra, L(e.title), 1), e.description ? (M(), h("p", za, L(e.description), 1)) : m("", !0)]), t.$slots.actions ? (M(), h("div", Ba, [I(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", Va, [I(t.$slots, "default")])], 2));
4838
+ return (t, n) => (M(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (M(), h("div", Ra, [g("div", za, [g("h3", Ba, L(e.title), 1), e.description ? (M(), h("p", Va, L(e.description), 1)) : m("", !0)]), t.$slots.actions ? (M(), h("div", Ha, [I(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", Ua, [I(t.$slots, "default")])], 2));
4814
4839
  }
4815
- }), Ua = {
4840
+ }), Ga = {
4816
4841
  key: 0,
4817
4842
  class: "w-action-bar__primary"
4818
- }, Wa = {
4843
+ }, Ka = {
4819
4844
  key: 1,
4820
4845
  class: "w-action-bar__filters"
4821
- }, Ga = {
4846
+ }, qa = {
4822
4847
  key: 2,
4823
4848
  class: "w-action-bar__secondary"
4824
- }, Ka = /* @__PURE__ */ x({
4849
+ }, Ja = /* @__PURE__ */ x({
4825
4850
  __name: "WActionBar",
4826
4851
  props: {
4827
4852
  align: { default: "between" },
@@ -4832,15 +4857,15 @@ var zi = {
4832
4857
  },
4833
4858
  setup(e) {
4834
4859
  return (t, n) => (M(), h("div", { class: k(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
4835
- t.$slots.primary || t.$slots.default ? (M(), h("div", Ua, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : m("", !0),
4836
- t.$slots.filters ? (M(), h("div", Wa, [I(t.$slots, "filters")])) : m("", !0),
4837
- t.$slots.secondary ? (M(), h("div", Ga, [I(t.$slots, "secondary")])) : m("", !0)
4860
+ t.$slots.primary || t.$slots.default ? (M(), h("div", Ga, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : m("", !0),
4861
+ t.$slots.filters ? (M(), h("div", Ka, [I(t.$slots, "filters")])) : m("", !0),
4862
+ t.$slots.secondary ? (M(), h("div", qa, [I(t.$slots, "secondary")])) : m("", !0)
4838
4863
  ], 2));
4839
4864
  }
4840
- }), qa = { class: "w-progress-flow__marker" }, Ja = { class: "w-progress-flow__content" }, Ya = { class: "w-progress-flow__label" }, Xa = {
4865
+ }), Ya = { class: "w-progress-flow__marker" }, Xa = { class: "w-progress-flow__content" }, Za = { class: "w-progress-flow__label" }, Qa = {
4841
4866
  key: 0,
4842
4867
  class: "w-progress-flow__description"
4843
- }, Za = /* @__PURE__ */ x({
4868
+ }, $a = /* @__PURE__ */ x({
4844
4869
  __name: "WProgressFlow",
4845
4870
  props: {
4846
4871
  steps: {},
@@ -4859,9 +4884,9 @@ var zi = {
4859
4884
  step: e,
4860
4885
  index: n,
4861
4886
  state: r(n)
4862
- }, () => [g("div", qa, [g("span", null, L(n + 1), 1)]), g("div", Ja, [g("p", Ya, L(e.label), 1), e.description ? (M(), h("p", Xa, L(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
4887
+ }, () => [g("div", Ya, [g("span", null, L(n + 1), 1)]), g("div", Xa, [g("p", Za, L(e.label), 1), e.description ? (M(), h("p", Qa, L(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
4863
4888
  }
4864
- }), Qa = Symbol("w-step-flow"), $a = /* @__PURE__ */ x({
4889
+ }), eo = Symbol("w-step-flow"), to = /* @__PURE__ */ x({
4865
4890
  __name: "WStepFlow",
4866
4891
  props: {
4867
4892
  modelValue: { default: 0 },
@@ -4877,7 +4902,7 @@ var zi = {
4877
4902
  function s(e) {
4878
4903
  n.disabled || r("update:modelValue", n.modelValue === e ? 0 : e);
4879
4904
  }
4880
- N(Qa, {
4905
+ N(eo, {
4881
4906
  active: i,
4882
4907
  toggle: s,
4883
4908
  disabled: a,
@@ -4905,48 +4930,48 @@ var zi = {
4905
4930
  onKeydown: l
4906
4931
  }, [I(e.$slots, "default")], 34));
4907
4932
  }
4908
- }), eo = { class: "w-step-section__rail" }, to = {
4933
+ }), no = { class: "w-step-section__rail" }, ro = {
4909
4934
  key: 0,
4910
4935
  class: "w-step-section__line"
4911
- }, no = { class: "w-step-section__body" }, ro = { class: "w-step-section__card" }, io = { class: "w-step-section__header" }, ao = [
4936
+ }, io = { class: "w-step-section__body" }, ao = { class: "w-step-section__card" }, oo = { class: "w-step-section__header" }, so = [
4912
4937
  "aria-expanded",
4913
4938
  "aria-current",
4914
4939
  "disabled"
4915
- ], oo = { class: "w-step-section__title" }, so = {
4940
+ ], co = { class: "w-step-section__title" }, lo = {
4916
4941
  key: 0,
4917
4942
  class: "w-step-section__count"
4918
- }, co = {
4943
+ }, uo = {
4919
4944
  key: 1,
4920
4945
  class: "w-step-section__summary"
4921
- }, lo = {
4946
+ }, fo = {
4922
4947
  key: 0,
4923
4948
  class: "w-step-section__actions"
4924
- }, uo = { class: "w-step-section__content" }, fo = {
4949
+ }, po = { class: "w-step-section__content" }, mo = {
4925
4950
  key: 0,
4926
4951
  class: "w-step-section__footer"
4927
- }, po = { class: "w-step-section__head" }, mo = [
4952
+ }, ho = { class: "w-step-section__head" }, go = [
4928
4953
  "aria-expanded",
4929
4954
  "aria-current",
4930
4955
  "disabled"
4931
- ], ho = {
4956
+ ], _o = {
4932
4957
  key: 0,
4933
4958
  class: "pi pi-check"
4934
- }, go = { class: "w-step-section__title" }, _o = {
4959
+ }, vo = { class: "w-step-section__title" }, yo = {
4935
4960
  key: 0,
4936
4961
  class: "w-step-section__count"
4937
- }, vo = {
4962
+ }, bo = {
4938
4963
  key: 1,
4939
4964
  class: "w-step-section__summary"
4940
- }, yo = {
4965
+ }, xo = {
4941
4966
  key: 1,
4942
4967
  class: "w-step-section__actions"
4943
- }, bo = {
4968
+ }, So = {
4944
4969
  key: 0,
4945
4970
  class: "w-step-section__panel"
4946
- }, xo = { class: "w-step-section__content" }, So = {
4971
+ }, Co = { class: "w-step-section__content" }, wo = {
4947
4972
  key: 0,
4948
4973
  class: "w-step-section__footer"
4949
- }, Co = /* @__PURE__ */ x({
4974
+ }, To = /* @__PURE__ */ x({
4950
4975
  __name: "WStepSection",
4951
4976
  props: {
4952
4977
  step: {},
@@ -4959,7 +4984,7 @@ var zi = {
4959
4984
  }
4960
4985
  },
4961
4986
  setup(e) {
4962
- let t = e, n = w(Qa, null), r = P(!0), i = f(() => n ? n.active.value === t.step : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = f(() => n?.orientation.value === "horizontal"), s = f(() => n !== null), c = f(() => o.value && n != null && t.step < n.active.value);
4987
+ let t = e, n = w(eo, null), r = P(!0), i = f(() => n ? n.active.value === t.step : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = f(() => n?.orientation.value === "horizontal"), s = f(() => n !== null), c = f(() => o.value && n != null && t.step < n.active.value);
4963
4988
  function l() {
4964
4989
  a.value || (n ? n.toggle(t.step) : r.value = !r.value);
4965
4990
  }
@@ -4969,7 +4994,7 @@ var zi = {
4969
4994
  "w-step-section--open": i.value,
4970
4995
  "w-step-section--done": c.value
4971
4996
  }])
4972
- }, [g("div", po, [
4997
+ }, [g("div", ho, [
4973
4998
  s.value ? (M(), h("span", {
4974
4999
  key: 0,
4975
5000
  class: k(["w-step-section__line", { "w-step-section__line--done": c.value || i.value }])
@@ -4988,19 +5013,19 @@ var zi = {
4988
5013
  "w-step-section__badge--done": c.value
4989
5014
  }]),
4990
5015
  "aria-hidden": "true"
4991
- }, [c.value ? (M(), h("i", ho)) : (M(), h(d, { key: 1 }, [y(L(e.step), 1)], 64))], 2),
4992
- g("h2", go, L(e.title), 1),
4993
- e.count == null ? m("", !0) : (M(), h("span", _o, L(e.count), 1)),
4994
- e.summary ? (M(), h("span", vo, L(e.summary), 1)) : m("", !0)
4995
- ], 8, mo),
4996
- t.$slots.actions ? (M(), h("div", yo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)
4997
- ]), i.value ? (M(), h("div", bo, [g("div", xo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", So, [I(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (M(), h("div", {
5016
+ }, [c.value ? (M(), h("i", _o)) : (M(), h(d, { key: 1 }, [y(L(e.step), 1)], 64))], 2),
5017
+ g("h2", vo, L(e.title), 1),
5018
+ e.count == null ? m("", !0) : (M(), h("span", yo, L(e.count), 1)),
5019
+ e.summary ? (M(), h("span", bo, L(e.summary), 1)) : m("", !0)
5020
+ ], 8, go),
5021
+ t.$slots.actions ? (M(), h("div", xo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)
5022
+ ]), i.value ? (M(), h("div", So, [g("div", Co, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", wo, [I(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (M(), h("div", {
4998
5023
  key: 0,
4999
5024
  class: k(["w-step-section", { "w-step-section--open": i.value }])
5000
- }, [g("div", eo, [g("span", {
5025
+ }, [g("div", no, [g("span", {
5001
5026
  class: k(["w-step-section__badge", { "w-step-section__badge--on": i.value }]),
5002
5027
  "aria-hidden": "true"
5003
- }, L(e.step), 3), s.value ? (M(), h("span", to)) : m("", !0)]), g("div", no, [g("div", ro, [g("div", io, [g("button", {
5028
+ }, L(e.step), 3), s.value ? (M(), h("span", ro)) : m("", !0)]), g("div", io, [g("div", ao, [g("div", oo, [g("button", {
5004
5029
  type: "button",
5005
5030
  class: "w-step-section__trigger",
5006
5031
  "aria-expanded": i.value,
@@ -5009,24 +5034,24 @@ var zi = {
5009
5034
  onClick: l
5010
5035
  }, [
5011
5036
  g("i", { class: k(["w-step-section__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]) }, null, 2),
5012
- g("h2", oo, L(e.title), 1),
5013
- e.count == null ? m("", !0) : (M(), h("span", so, L(e.count), 1)),
5014
- e.summary ? (M(), h("span", co, L(e.summary), 1)) : m("", !0)
5015
- ], 8, ao), t.$slots.actions ? (M(), h("div", lo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (M(), h(d, { key: 0 }, [g("div", uo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", fo, [I(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
5037
+ g("h2", co, L(e.title), 1),
5038
+ e.count == null ? m("", !0) : (M(), h("span", lo, L(e.count), 1)),
5039
+ e.summary ? (M(), h("span", uo, L(e.summary), 1)) : m("", !0)
5040
+ ], 8, so), t.$slots.actions ? (M(), h("div", fo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (M(), h(d, { key: 0 }, [g("div", po, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", mo, [I(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
5016
5041
  }
5017
- }), wo = { class: "w-check-list" }, To = {
5042
+ }), Eo = { class: "w-check-list" }, Do = {
5018
5043
  key: 0,
5019
5044
  class: "w-check-list__header"
5020
- }, Eo = { class: "w-check-list__title" }, Do = {
5045
+ }, Oo = { class: "w-check-list__title" }, ko = {
5021
5046
  key: 0,
5022
5047
  class: "w-check-list__count"
5023
- }, Oo = {
5048
+ }, Ao = {
5024
5049
  key: 1,
5025
5050
  class: "w-check-list__items"
5026
- }, ko = { class: "w-check-list__label" }, Ao = {
5051
+ }, jo = { class: "w-check-list__label" }, Mo = {
5027
5052
  key: 2,
5028
5053
  class: "w-check-list__empty"
5029
- }, jo = /* @__PURE__ */ x({
5054
+ }, No = /* @__PURE__ */ x({
5030
5055
  __name: "WCheckList",
5031
5056
  props: {
5032
5057
  title: {},
@@ -5046,62 +5071,62 @@ var zi = {
5046
5071
  function a(e) {
5047
5072
  return i[e] ?? i.warn;
5048
5073
  }
5049
- return (t, n) => (M(), h("div", wo, [e.title || e.showCount ? (M(), h("div", To, [g("span", Eo, L(e.title), 1), e.showCount ? (M(), h("span", Do, L(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (M(), h("ul", Oo, [(M(!0), h(d, null, F(e.items, (e, t) => (M(), h("li", {
5074
+ return (t, n) => (M(), h("div", Eo, [e.title || e.showCount ? (M(), h("div", Do, [g("span", Oo, L(e.title), 1), e.showCount ? (M(), h("span", ko, L(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (M(), h("ul", Ao, [(M(!0), h(d, null, F(e.items, (e, t) => (M(), h("li", {
5050
5075
  key: `${e.label}-${t}`,
5051
5076
  class: "w-check-list__item"
5052
- }, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", ko, L(e.label), 1)]))), 128))])) : (M(), h("div", Ao, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))]));
5077
+ }, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", jo, L(e.label), 1)]))), 128))])) : (M(), h("div", Mo, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))]));
5053
5078
  }
5054
- }), Mo = .85;
5055
- function No(e, t, n) {
5079
+ }), Po = .85;
5080
+ function Fo(e, t, n) {
5056
5081
  return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
5057
5082
  }
5058
- function Po(e, t, n, r = Mo) {
5083
+ function Io(e, t, n, r = Po) {
5059
5084
  if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
5060
5085
  let i = e.largura * r, a = e.altura * r;
5061
- return No(t, i, a) ? "completo" : No(n, i, a) ? "curto" : "oculto";
5086
+ return Fo(t, i, a) ? "completo" : Fo(n, i, a) ? "curto" : "oculto";
5062
5087
  }
5063
5088
  //#endregion
5064
5089
  //#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
5065
- var Fo = { class: "w-map-select__body" }, Io = {
5090
+ var Lo = { class: "w-map-select__body" }, Ro = {
5066
5091
  key: 0,
5067
5092
  class: "w-map-select__fallback"
5068
- }, Lo = {
5093
+ }, zo = {
5069
5094
  key: 1,
5070
5095
  class: "w-map-select__badge"
5071
- }, Ro = { class: "w-map-select__detail-nome" }, zo = {
5096
+ }, Bo = { class: "w-map-select__detail-nome" }, Vo = {
5072
5097
  key: 0,
5073
5098
  class: "w-map-select__detail-sub"
5074
- }, Bo = {
5099
+ }, Ho = {
5075
5100
  key: 0,
5076
5101
  class: "w-map-select__panel"
5077
- }, Vo = [
5102
+ }, Uo = [
5078
5103
  "aria-expanded",
5079
5104
  "aria-label",
5080
5105
  "title"
5081
- ], Ho = {
5106
+ ], Wo = {
5082
5107
  key: 0,
5083
5108
  class: "w-map-select__collapse-count"
5084
- }, Uo = { class: "w-map-select__panel-head" }, Wo = { class: "w-map-select__meta" }, Go = { class: "w-map-select__count" }, Ko = ["disabled"], qo = { class: "w-map-select__list" }, Jo = [
5109
+ }, Go = { class: "w-map-select__panel-head" }, Ko = { class: "w-map-select__meta" }, qo = { class: "w-map-select__count" }, Jo = ["disabled"], Yo = { class: "w-map-select__list" }, Xo = [
5085
5110
  "aria-pressed",
5086
5111
  "disabled",
5087
5112
  "onClick"
5088
- ], Yo = { class: "w-map-select__box" }, Xo = {
5113
+ ], Zo = { class: "w-map-select__box" }, Qo = {
5089
5114
  key: 0,
5090
5115
  class: "pi pi-check"
5091
- }, Zo = { class: "w-map-select__item-text" }, Qo = { class: "w-map-select__item-name" }, $o = {
5116
+ }, $o = { class: "w-map-select__item-text" }, es = { class: "w-map-select__item-name" }, ts = {
5092
5117
  key: 0,
5093
5118
  class: "w-map-select__item-sub"
5094
- }, es = {
5119
+ }, ns = {
5095
5120
  key: 0,
5096
5121
  class: "pi pi-exclamation-circle w-map-select__item-nogeo",
5097
5122
  title: "Talhão sem contorno cadastrado"
5098
- }, ts = {
5123
+ }, rs = {
5099
5124
  key: 1,
5100
5125
  class: "w-map-select__item-area"
5101
- }, ns = {
5126
+ }, is = {
5102
5127
  key: 0,
5103
5128
  class: "w-map-select__empty"
5104
- }, rs = { class: "w-map-select__area" }, is = { class: "w-map-select__area-unit" }, as = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", os = "O mapa não pôde ser carregado.", ss = /* @__PURE__ */ x({
5129
+ }, as = { class: "w-map-select__area" }, os = { class: "w-map-select__area-unit" }, ss = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", cs = "O mapa não pôde ser carregado.", ls = /* @__PURE__ */ x({
5105
5130
  __name: "WMapSelect",
5106
5131
  props: {
5107
5132
  modelValue: { default: () => [] },
@@ -5129,7 +5154,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5129
5154
  },
5130
5155
  badgeLabel: { default: "Satélite" },
5131
5156
  emptyMessage: { default: "Nenhum talhão encontrado" },
5132
- mapErrorMessage: { default: as },
5157
+ mapErrorMessage: { default: ss },
5133
5158
  disabled: {
5134
5159
  type: Boolean,
5135
5160
  default: !1
@@ -5167,7 +5192,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5167
5192
  type: Function,
5168
5193
  default: void 0
5169
5194
  },
5170
- labelFitScale: { default: Mo },
5195
+ labelFitScale: { default: Po },
5171
5196
  labelFullFromZoom: { default: 13 },
5172
5197
  featureDetail: { default: "none" },
5173
5198
  detailPlacement: { default: "cursor" }
@@ -5180,7 +5205,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5180
5205
  "update:collapsed"
5181
5206
  ],
5182
5207
  setup(e, { expose: t, emit: r }) {
5183
- let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage === as ? os : i.mapErrorMessage), p = P(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
5208
+ let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage === ss ? cs : i.mapErrorMessage), p = P(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
5184
5209
  function x(e) {
5185
5210
  v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
5186
5211
  }
@@ -5362,7 +5387,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5362
5387
  if (!r || !a) return;
5363
5388
  let o = je(a);
5364
5389
  if (!o) return;
5365
- let s = Me(a), c = t ? "completo" : Po(Le(n), Ie(o), s && s !== o ? Ie(s) : null, i.labelFitScale);
5390
+ let s = Me(a), c = t ? "completo" : Io(Le(n), Ie(o), s && s !== o ? Ie(s) : null, i.labelFitScale);
5366
5391
  c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
5367
5392
  });
5368
5393
  }
@@ -5492,7 +5517,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5492
5517
  "w-map-select--overlay": c.value,
5493
5518
  "w-map-select--collapsed": c.value && v.value && !e.readonly
5494
5519
  }])
5495
- }, [g("div", Fo, [g("div", {
5520
+ }, [g("div", Lo, [g("div", {
5496
5521
  class: "w-map-select__map",
5497
5522
  style: j({ "--w-map-h": e.height })
5498
5523
  }, [
@@ -5501,7 +5526,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5501
5526
  ref: z,
5502
5527
  class: "w-map-select__canvas"
5503
5528
  }, null, 512),
5504
- W.value ? (M(), h("div", Io, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, L(u.value), 1)])) : e.badgeLabel ? (M(), h("span", Lo, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(L(e.badgeLabel), 1)])) : m("", !0),
5529
+ W.value ? (M(), h("div", Ro, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, L(u.value), 1)])) : e.badgeLabel ? (M(), h("span", zo, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(L(e.badgeLabel), 1)])) : m("", !0),
5505
5530
  Y.value && e.featureDetail !== "none" ? (M(), h("div", {
5506
5531
  key: 2,
5507
5532
  class: k(["w-map-select__detail", {
@@ -5515,8 +5540,8 @@ var Fo = { class: "w-map-select__body" }, Io = {
5515
5540
  feature: Y.value,
5516
5541
  selected: E(Y.value.id),
5517
5542
  close: Ee
5518
- }, () => [g("span", Ro, L(Y.value.nome), 1), Y.value.subtitulo ? (M(), h("span", zo, L(Y.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
5519
- ], 4), e.readonly ? m("", !0) : (M(), h("div", Bo, [
5543
+ }, () => [g("span", Bo, L(Y.value.nome), 1), Y.value.subtitulo ? (M(), h("span", Vo, L(Y.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
5544
+ ], 4), e.readonly ? m("", !0) : (M(), h("div", Ho, [
5520
5545
  c.value ? (M(), h("button", {
5521
5546
  key: 0,
5522
5547
  type: "button",
@@ -5525,8 +5550,8 @@ var Fo = { class: "w-map-select__body" }, Io = {
5525
5550
  "aria-label": C.value,
5526
5551
  title: C.value,
5527
5552
  onClick: S
5528
- }, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span", Ho, L(e.modelValue.length), 1)) : m("", !0)], 8, Vo)) : m("", !0),
5529
- g("div", Uo, [b(R(he), null, {
5553
+ }, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span", Wo, L(e.modelValue.length), 1)) : m("", !0)], 8, Uo)) : m("", !0),
5554
+ g("div", Go, [b(R(he), null, {
5530
5555
  default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
5531
5556
  modelValue: ae.value,
5532
5557
  "onUpdate:modelValue": n[0] ||= (e) => ae.value = e,
@@ -5540,13 +5565,13 @@ var Fo = { class: "w-map-select__body" }, Io = {
5540
5565
  "aria-label"
5541
5566
  ])]),
5542
5567
  _: 1
5543
- }), g("div", Wo, [g("span", Go, L(re.value), 1), g("button", {
5568
+ }), g("div", Ko, [g("span", qo, L(re.value), 1), g("button", {
5544
5569
  type: "button",
5545
5570
  class: "w-map-select__clear",
5546
5571
  disabled: e.disabled || !e.modelValue.length,
5547
5572
  onClick: A
5548
- }, L(e.clearLabel), 9, Ko)])]),
5549
- g("ul", qo, [(M(!0), h(d, null, F(se.value, (n) => (M(), h("li", { key: n.id }, [I(t.$slots, "item", {
5573
+ }, L(e.clearLabel), 9, Jo)])]),
5574
+ g("ul", Yo, [(M(!0), h(d, null, F(se.value, (n) => (M(), h("li", { key: n.id }, [I(t.$slots, "item", {
5550
5575
  feature: n,
5551
5576
  selected: E(n.id)
5552
5577
  }, () => [g("button", {
@@ -5556,11 +5581,11 @@ var Fo = { class: "w-map-select__body" }, Io = {
5556
5581
  disabled: e.disabled,
5557
5582
  onClick: (e) => D(n.id)
5558
5583
  }, [
5559
- g("span", Yo, [E(n.id) ? (M(), h("i", Xo)) : m("", !0)]),
5560
- g("span", Zo, [g("span", Qo, L(n.nome), 1), n.subtitulo ? (M(), h("span", $o, L(n.subtitulo), 1)) : m("", !0)]),
5561
- n.geometria ? m("", !0) : (M(), h("i", es)),
5562
- n.area == null ? m("", !0) : (M(), h("span", ts, L(ce(n)), 1))
5563
- ], 10, Jo)])]))), 128)), se.value.length ? m("", !0) : (M(), h("li", ns, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))])
5584
+ g("span", Zo, [E(n.id) ? (M(), h("i", Qo)) : m("", !0)]),
5585
+ g("span", $o, [g("span", es, L(n.nome), 1), n.subtitulo ? (M(), h("span", ts, L(n.subtitulo), 1)) : m("", !0)]),
5586
+ n.geometria ? m("", !0) : (M(), h("i", ns)),
5587
+ n.area == null ? m("", !0) : (M(), h("span", rs, L(ce(n)), 1))
5588
+ ], 10, Xo)])]))), 128)), se.value.length ? m("", !0) : (M(), h("li", is, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))])
5564
5589
  ]))]), l.value ? (M(), h("div", {
5565
5590
  key: 0,
5566
5591
  ref_key: "footer",
@@ -5569,13 +5594,13 @@ var Fo = { class: "w-map-select__body" }, Io = {
5569
5594
  }, [I(t.$slots, "footer", {
5570
5595
  area: N.value,
5571
5596
  features: ne.value
5572
- }, () => [g("span", rs, [
5597
+ }, () => [g("span", as, [
5573
5598
  y(L(e.areaLabel) + " ", 1),
5574
5599
  g("strong", null, L(ue.value), 1),
5575
- g("span", is, L(e.areaSuffix), 1)
5600
+ g("span", os, L(e.areaSuffix), 1)
5576
5601
  ])])], 512)) : m("", !0)], 2));
5577
5602
  }
5578
- }), cs = {
5603
+ }), us = {
5579
5604
  nota: {
5580
5605
  tone: "nota",
5581
5606
  label: "Nota",
@@ -5621,7 +5646,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
5621
5646
  label: "Em aberto",
5622
5647
  icon: "pi pi-question-circle"
5623
5648
  }
5624
- }, ls = {
5649
+ }, ds = {
5625
5650
  note: "nota",
5626
5651
  info: "nota",
5627
5652
  observacao: "nota",
@@ -5648,19 +5673,19 @@ var Fo = { class: "w-map-select__body" }, Io = {
5648
5673
  help: "pergunta",
5649
5674
  duvida: "pergunta"
5650
5675
  };
5651
- function us(e) {
5676
+ function fs(e) {
5652
5677
  return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
5653
5678
  }
5654
- function ds(e) {
5655
- let t = us(e);
5656
- return cs[t] ?? cs[ls[t]] ?? null;
5679
+ function ps(e) {
5680
+ let t = fs(e);
5681
+ return us[t] ?? us[ds[t]] ?? null;
5657
5682
  }
5658
- var fs = new Ne().utils.escapeHtml;
5659
- function ps(e, t) {
5683
+ var ms = new Ne().utils.escapeHtml;
5684
+ function hs(e, t) {
5660
5685
  let n = t?.trim() || e.label;
5661
- return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${fs(n)}</p><div class="md-alert__body">`;
5686
+ return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${ms(n)}</p><div class="md-alert__body">`;
5662
5687
  }
5663
- var ms = "</div></div>", hs = {
5688
+ var gs = "</div></div>", _s = {
5664
5689
  bash: () => import("highlight.js/lib/languages/bash"),
5665
5690
  python: () => import("highlight.js/lib/languages/python"),
5666
5691
  javascript: () => import("highlight.js/lib/languages/javascript"),
@@ -5674,7 +5699,7 @@ var ms = "</div></div>", hs = {
5674
5699
  ini: () => import("highlight.js/lib/languages/ini"),
5675
5700
  markdown: () => import("highlight.js/lib/languages/markdown"),
5676
5701
  dockerfile: () => import("highlight.js/lib/languages/dockerfile")
5677
- }, gs = {
5702
+ }, vs = {
5678
5703
  sh: "bash",
5679
5704
  shell: "bash",
5680
5705
  zsh: "bash",
@@ -5702,28 +5727,28 @@ var ms = "</div></div>", hs = {
5702
5727
  postgres: "sql",
5703
5728
  postgresql: "sql",
5704
5729
  docker: "dockerfile"
5705
- }, _s = null, vs = null;
5706
- function ys() {
5707
- return _s !== null;
5730
+ }, ys = null, bs = null;
5731
+ function xs() {
5732
+ return ys !== null;
5708
5733
  }
5709
- async function bs() {
5710
- if (_s || vs) return vs ?? void 0;
5711
- vs = (async () => {
5734
+ async function Ss() {
5735
+ if (ys || bs) return bs ?? void 0;
5736
+ bs = (async () => {
5712
5737
  let e = (await import("highlight.js/lib/core")).default;
5713
- await Promise.all(Object.entries(hs).map(async ([t, n]) => {
5738
+ await Promise.all(Object.entries(_s).map(async ([t, n]) => {
5714
5739
  let r = await n();
5715
5740
  e.registerLanguage(t, r.default);
5716
- })), _s = (t, n) => e.highlight(t, { language: n }).value;
5717
- })(), await vs;
5741
+ })), ys = (t, n) => e.highlight(t, { language: n }).value;
5742
+ })(), await bs;
5718
5743
  }
5719
- function xs(e) {
5720
- let t = us(e);
5721
- return gs[t] ?? t;
5744
+ function Cs(e) {
5745
+ let t = fs(e);
5746
+ return vs[t] ?? t;
5722
5747
  }
5723
- function Ss(e) {
5724
- return us(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
5748
+ function ws(e) {
5749
+ return fs(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
5725
5750
  }
5726
- var Cs = /* @__PURE__ */ new Set([
5751
+ var Ts = /* @__PURE__ */ new Set([
5727
5752
  "detalhes",
5728
5753
  "details",
5729
5754
  "passos",
@@ -5734,8 +5759,8 @@ var Cs = /* @__PURE__ */ new Set([
5734
5759
  "tabs",
5735
5760
  "aba",
5736
5761
  "tab"
5737
- ]), ws = /^\s*([^\s]+)\s*(.*)$/;
5738
- function Ts() {
5762
+ ]), Es = /^\s*([^\s]+)\s*(.*)$/;
5763
+ function Ds() {
5739
5764
  let e = new Ne({
5740
5765
  html: !1,
5741
5766
  linkify: !0,
@@ -5747,16 +5772,16 @@ function Ts() {
5747
5772
  3,
5748
5773
  4
5749
5774
  ],
5750
- slugify: Ss,
5775
+ slugify: ws,
5751
5776
  permalink: Z.permalink.linkInsideHeader({
5752
5777
  symbol: "",
5753
5778
  class: "md-anchor",
5754
5779
  placement: "after",
5755
5780
  ariaHidden: !0
5756
5781
  })
5757
- }), Es(e), Os(e), ks(e), As(e), js(e), Ms(e), Ns(e), e;
5782
+ }), Os(e), As(e), js(e), Ms(e), Ns(e), Ps(e), Fs(e), e;
5758
5783
  }
5759
- function Es(e) {
5784
+ function Os(e) {
5760
5785
  e.core.ruler.after("block", "lz_alerta", (e) => {
5761
5786
  let t = e.tokens;
5762
5787
  for (let e = 0; e < t.length; e += 1) {
@@ -5766,9 +5791,9 @@ function Es(e) {
5766
5791
  if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
5767
5792
  let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
5768
5793
  if (!a) continue;
5769
- let o = ds(a[1]);
5794
+ let o = ps(a[1]);
5770
5795
  if (!o) continue;
5771
- let s = Ds(t, e);
5796
+ let s = ks(t, e);
5772
5797
  s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
5773
5798
  spec: o,
5774
5799
  titulo: a[2]
@@ -5777,10 +5802,10 @@ function Es(e) {
5777
5802
  return !0;
5778
5803
  }), e.renderer.rules.lz_alerta_open = (e, t) => {
5779
5804
  let n = e[t].meta;
5780
- return ps(n.spec, n.titulo);
5781
- }, e.renderer.rules.lz_alerta_close = () => ms;
5805
+ return hs(n.spec, n.titulo);
5806
+ }, e.renderer.rules.lz_alerta_close = () => gs;
5782
5807
  }
5783
- function Ds(e, t) {
5808
+ function ks(e, t) {
5784
5809
  let n = 0;
5785
5810
  for (let r = t; r < e.length; r += 1) {
5786
5811
  let t = e[r];
@@ -5789,37 +5814,37 @@ function Ds(e, t) {
5789
5814
  }
5790
5815
  return null;
5791
5816
  }
5792
- function Os(e) {
5817
+ function As(e) {
5793
5818
  let t = [];
5794
5819
  e.use(Q, "lz", {
5795
5820
  validate: (e) => {
5796
- let t = ws.exec(e);
5821
+ let t = Es.exec(e);
5797
5822
  if (!t) return !1;
5798
- let n = us(t[1]);
5799
- return Cs.has(n) || ds(n) !== null;
5823
+ let n = fs(t[1]);
5824
+ return Ts.has(n) || ps(n) !== null;
5800
5825
  },
5801
5826
  render: (e, n) => {
5802
5827
  let r = e[n];
5803
5828
  if (r.nesting !== 1) {
5804
5829
  let e = t.pop();
5805
- return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${ms}\n` : "</div>\n";
5830
+ return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${gs}\n` : "</div>\n";
5806
5831
  }
5807
- let i = ws.exec(r.info) ?? [
5832
+ let i = Es.exec(r.info) ?? [
5808
5833
  "",
5809
5834
  "",
5810
5835
  ""
5811
- ], a = us(i[1]), o = i[2]?.trim();
5812
- if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${fs(o || "Detalhes")}</summary><div class="md-details__body">`;
5836
+ ], a = fs(i[1]), o = i[2]?.trim();
5837
+ if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${ms(o || "Detalhes")}</summary><div class="md-details__body">`;
5813
5838
  if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
5814
5839
  if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
5815
5840
  if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
5816
- if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${fs(o || "Aba")}">`;
5817
- let s = ds(a);
5818
- return s ? (t.push("alerta"), ps(s, o)) : (t.push("bloco"), "<div>");
5841
+ if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${ms(o || "Aba")}">`;
5842
+ let s = ps(a);
5843
+ return s ? (t.push("alerta"), hs(s, o)) : (t.push("bloco"), "<div>");
5819
5844
  }
5820
5845
  });
5821
5846
  }
5822
- function ks(e) {
5847
+ function js(e) {
5823
5848
  e.core.ruler.after("inline", "lz_tarefas", (e) => {
5824
5849
  let t = e.tokens;
5825
5850
  for (let n = 2; n < t.length; n += 1) {
@@ -5836,26 +5861,26 @@ function ks(e) {
5836
5861
  return !0;
5837
5862
  });
5838
5863
  }
5839
- function As(e) {
5864
+ function Ms(e) {
5840
5865
  e.renderer.rules.fence = (e, t) => {
5841
- let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = xs(i), o = /title="([^"]*)"/.exec(r)?.[1];
5842
- if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${fs(n.content)}</pre>` + (o ? `<figcaption>${fs(o)}</figcaption>` : "") + "</figure>\n";
5843
- let s = _s && hs[a] ? _s(n.content, a) : fs(n.content);
5844
- return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${fs(o ?? "")}</span><span class="md-code__lang">${fs(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${fs(a)}">${s}</code></pre></div>\n`;
5866
+ let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = Cs(i), o = /title="([^"]*)"/.exec(r)?.[1];
5867
+ if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${ms(n.content)}</pre>` + (o ? `<figcaption>${ms(o)}</figcaption>` : "") + "</figure>\n";
5868
+ let s = ys && _s[a] ? ys(n.content, a) : ms(n.content);
5869
+ return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${ms(o ?? "")}</span><span class="md-code__lang">${ms(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${ms(a)}">${s}</code></pre></div>\n`;
5845
5870
  };
5846
5871
  }
5847
- function js(e) {
5872
+ function Ns(e) {
5848
5873
  let t = e.renderer.rules.table_open;
5849
5874
  e.renderer.rules.table_open = (e, n, r, i, a) => `<div class="md-table">${t ? t(e, n, r, i, a) : a.renderToken(e, n, r)}`, e.renderer.rules.table_close = (e, t, n, r, i) => `${i.renderToken(e, t, n)}</div>`;
5850
5875
  }
5851
- function Ms(e) {
5876
+ function Ps(e) {
5852
5877
  let t = e.renderer.rules.link_open;
5853
5878
  e.renderer.rules.link_open = (e, n, r, i, a) => {
5854
5879
  let o = String(e[n].attrGet("href") ?? "");
5855
5880
  return /^https?:\/\//i.test(o) && (e[n].attrSet("target", "_blank"), e[n].attrSet("rel", "noopener noreferrer"), e[n].attrJoin("class", "md-link-externo")), t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
5856
5881
  };
5857
5882
  }
5858
- function Ns(e) {
5883
+ function Fs(e) {
5859
5884
  e.core.ruler.after("inline", "lz_figuras", (e) => {
5860
5885
  let t = e.tokens;
5861
5886
  for (let e = 1; e < t.length - 1; e += 1) {
@@ -5871,17 +5896,17 @@ function Ns(e) {
5871
5896
  let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
5872
5897
  if (!e[n].meta?.figura) return o;
5873
5898
  let s = e[n].content?.trim();
5874
- return s ? `${o}<figcaption>${fs(s)}</figcaption>` : o;
5899
+ return s ? `${o}<figcaption>${ms(s)}</figcaption>` : o;
5875
5900
  };
5876
5901
  }
5877
- var Ps = null;
5878
- function Fs() {
5879
- return Ps ||= Ts(), Ps;
5902
+ var Is = null;
5903
+ function Ls() {
5904
+ return Is ||= Ds(), Is;
5880
5905
  }
5881
- function Is(e) {
5906
+ function Rs(e) {
5882
5907
  return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
5883
5908
  }
5884
- function Ls(e) {
5909
+ function zs(e) {
5885
5910
  let t = [];
5886
5911
  for (let n = 0; n < e.length; n += 1) {
5887
5912
  let r = e[n];
@@ -5891,13 +5916,13 @@ function Ls(e) {
5891
5916
  let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
5892
5917
  !a || o?.type !== "inline" || t.push({
5893
5918
  id: a,
5894
- text: Is(o),
5919
+ text: Rs(o),
5895
5920
  level: i
5896
5921
  });
5897
5922
  }
5898
5923
  return t;
5899
5924
  }
5900
- function Rs(e) {
5925
+ function Bs(e) {
5901
5926
  return Pe.sanitize(e, { ADD_ATTR: [
5902
5927
  "target",
5903
5928
  "open",
@@ -5905,16 +5930,16 @@ function Rs(e) {
5905
5930
  "disabled"
5906
5931
  ] });
5907
5932
  }
5908
- function zs(e) {
5909
- let t = Fs(), n = {}, r = t.parse(e ?? "", n);
5933
+ function Vs(e) {
5934
+ let t = Ls(), n = {}, r = t.parse(e ?? "", n);
5910
5935
  return {
5911
- html: Rs(t.renderer.render(r, t.options, n)),
5912
- headings: Ls(r)
5936
+ html: Bs(t.renderer.render(r, t.options, n)),
5937
+ headings: zs(r)
5913
5938
  };
5914
5939
  }
5915
5940
  //#endregion
5916
5941
  //#region src/utils/markdownEnhance.ts
5917
- function Bs(e) {
5942
+ function Hs(e) {
5918
5943
  e.querySelectorAll("[data-md-code]").forEach((e) => {
5919
5944
  if (e.dataset.mdPronto) return;
5920
5945
  e.dataset.mdPronto = "1";
@@ -5929,7 +5954,7 @@ function Bs(e) {
5929
5954
  }), e.appendChild(t);
5930
5955
  });
5931
5956
  }
5932
- function Vs(e) {
5957
+ function Us(e) {
5933
5958
  let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
5934
5959
  t.forEach((e) => {
5935
5960
  if (n.has(e)) return;
@@ -5940,8 +5965,8 @@ function Vs(e) {
5940
5965
  i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
5941
5966
  });
5942
5967
  }
5943
- function Hs(e) {
5944
- Vs(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
5968
+ function Ws(e) {
5969
+ Us(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
5945
5970
  if (e.dataset.mdPronto) return;
5946
5971
  let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
5947
5972
  if (!n.length) return;
@@ -5963,11 +5988,11 @@ function Hs(e) {
5963
5988
  e.prepend(r), a(0);
5964
5989
  });
5965
5990
  }
5966
- var Us = null, Ws = 0;
5967
- async function Gs() {
5968
- return Us ||= import("mermaid").then((e) => e.default), Us;
5991
+ var Gs = null, Ks = 0;
5992
+ async function qs() {
5993
+ return Gs ||= import("mermaid").then((e) => e.default), Gs;
5969
5994
  }
5970
- var Ks = /* @__PURE__ */ new Set([
5995
+ var Js = /* @__PURE__ */ new Set([
5971
5996
  "script",
5972
5997
  "iframe",
5973
5998
  "object",
@@ -5983,59 +6008,59 @@ var Ks = /* @__PURE__ */ new Set([
5983
6008
  "animate",
5984
6009
  "set"
5985
6010
  ]);
5986
- function qs(e) {
6011
+ function Ys(e) {
5987
6012
  for (let t of Array.from(e.attributes)) {
5988
6013
  let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
5989
6014
  (n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
5990
6015
  }
5991
- for (let t of Array.from(e.children)) Ks.has(t.localName.toLowerCase()) ? t.remove() : qs(t);
6016
+ for (let t of Array.from(e.children)) Js.has(t.localName.toLowerCase()) ? t.remove() : Ys(t);
5992
6017
  }
5993
- function Js(e) {
6018
+ function Xs(e) {
5994
6019
  let t = new DOMParser().parseFromString(e, "image/svg+xml");
5995
6020
  if (t.querySelector("parsererror")) return null;
5996
6021
  let n = t.documentElement;
5997
- return n.localName.toLowerCase() === "svg" ? (qs(n), n) : null;
6022
+ return n.localName.toLowerCase() === "svg" ? (Ys(n), n) : null;
5998
6023
  }
5999
- function Ys(e, t, n) {
6024
+ function Zs(e, t, n) {
6000
6025
  return e.getPropertyValue(t).trim() || n;
6001
6026
  }
6002
- function Xs(e) {
6003
- let t = getComputedStyle(document.documentElement), n = Ys(t, "--surface", "#ffffff"), r = Ys(t, "--fg", "#141a22"), i = Ys(t, "--primary", "#1f5092"), a = Ys(t, "--primary-soft", "#eef4fb"), o = Ys(t, "--border-strong", "#cdd6e2");
6027
+ function Qs(e) {
6028
+ let t = getComputedStyle(document.documentElement), n = Zs(t, "--surface", "#ffffff"), r = Zs(t, "--fg", "#141a22"), i = Zs(t, "--primary", "#1f5092"), a = Zs(t, "--primary-soft", "#eef4fb"), o = Zs(t, "--border-strong", "#cdd6e2");
6004
6029
  e.initialize({
6005
6030
  startOnLoad: !1,
6006
6031
  securityLevel: "strict",
6007
6032
  theme: "base",
6008
- fontFamily: Ys(t, "--font-sans", "inherit"),
6033
+ fontFamily: Zs(t, "--font-sans", "inherit"),
6009
6034
  flowchart: { useMaxWidth: !0 },
6010
6035
  themeVariables: {
6011
6036
  background: n,
6012
6037
  primaryColor: a,
6013
6038
  primaryTextColor: r,
6014
6039
  primaryBorderColor: i,
6015
- secondaryColor: Ys(t, "--surface-3", "#eef2f7"),
6016
- tertiaryColor: Ys(t, "--surface-2", "#f8fafc"),
6040
+ secondaryColor: Zs(t, "--surface-3", "#eef2f7"),
6041
+ tertiaryColor: Zs(t, "--surface-2", "#f8fafc"),
6017
6042
  lineColor: o,
6018
6043
  textColor: r,
6019
6044
  mainBkg: a,
6020
6045
  nodeBorder: i,
6021
- clusterBkg: Ys(t, "--surface-2", "#f8fafc"),
6046
+ clusterBkg: Zs(t, "--surface-2", "#f8fafc"),
6022
6047
  clusterBorder: o,
6023
6048
  fontSize: "13px"
6024
6049
  }
6025
6050
  });
6026
6051
  }
6027
- async function Zs(e, t = !1) {
6052
+ async function $s(e, t = !1) {
6028
6053
  let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
6029
6054
  if (!n.length) return;
6030
- let r = await Gs();
6031
- Xs(r);
6055
+ let r = await qs();
6056
+ Qs(r);
6032
6057
  for (let e of n) {
6033
6058
  let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
6034
6059
  if (t.trim()) {
6035
6060
  e.querySelector(".md-mermaid__svg")?.remove();
6036
6061
  try {
6037
- Ws += 1;
6038
- let { svg: n } = await r.render(`md-diagrama-${Ws}`, t), i = Js(n);
6062
+ Ks += 1;
6063
+ let { svg: n } = await r.render(`md-diagrama-${Ks}`, t), i = Xs(n);
6039
6064
  if (!i) {
6040
6065
  e.dataset.mdEstado = "erro";
6041
6066
  continue;
@@ -6048,15 +6073,15 @@ async function Zs(e, t = !1) {
6048
6073
  }
6049
6074
  }
6050
6075
  }
6051
- async function Qs(e) {
6052
- e && (Bs(e), Hs(e), await Zs(e));
6076
+ async function ec(e) {
6077
+ e && (Hs(e), Ws(e), await $s(e));
6053
6078
  }
6054
6079
  //#endregion
6055
6080
  //#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
6056
- var $s = {
6081
+ var tc = {
6057
6082
  key: 0,
6058
6083
  class: "w-markdown-view w-markdown-view--empty"
6059
- }, ec = ["innerHTML"], tc = /* @__PURE__ */ x({
6084
+ }, nc = ["innerHTML"], rc = /* @__PURE__ */ x({
6060
6085
  __name: "WMarkdownView",
6061
6086
  props: {
6062
6087
  source: {},
@@ -6064,42 +6089,42 @@ var $s = {
6064
6089
  },
6065
6090
  emits: ["headings"],
6066
6091
  setup(e, { emit: t }) {
6067
- let n = e, r = t, i = P(null), a = P(ys()), o = f(() => (a.value, zs(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
6068
- B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() => Qs(i.value)));
6092
+ let n = e, r = t, i = P(null), a = P(xs()), o = f(() => (a.value, Vs(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
6093
+ B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() => ec(i.value)));
6069
6094
  let l = null;
6070
6095
  function u() {
6071
- typeof MutationObserver > "u" || (l = new MutationObserver(() => void Zs(i.value, !0)), l.observe(document.documentElement, {
6096
+ typeof MutationObserver > "u" || (l = new MutationObserver(() => void $s(i.value, !0)), l.observe(document.documentElement, {
6072
6097
  attributes: !0,
6073
6098
  attributeFilter: ["class"]
6074
6099
  }));
6075
6100
  }
6076
6101
  return te(async () => {
6077
- await O(), await Qs(i.value), u(), a.value ||= (await bs(), !0);
6078
- }), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div", $s, L(e.emptyText), 1)) : (M(), h("div", {
6102
+ await O(), await ec(i.value), u(), a.value ||= (await Ss(), !0);
6103
+ }), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div", tc, L(e.emptyText), 1)) : (M(), h("div", {
6079
6104
  key: 1,
6080
6105
  ref_key: "raiz",
6081
6106
  ref: i,
6082
6107
  class: "w-markdown-view",
6083
6108
  innerHTML: s.value
6084
- }, null, 8, ec));
6109
+ }, null, 8, nc));
6085
6110
  }
6086
- }), nc = {
6111
+ }), ic = {
6087
6112
  class: "w-markdown-editor__toolbar",
6088
6113
  role: "toolbar",
6089
6114
  "aria-label": "Formatação markdown"
6090
- }, rc = [
6115
+ }, ac = [
6091
6116
  "aria-label",
6092
6117
  "title",
6093
6118
  "disabled",
6094
6119
  "onClick"
6095
- ], ic = ["aria-pressed"], ac = ["aria-pressed"], oc = {
6120
+ ], oc = ["aria-pressed"], sc = ["aria-pressed"], cc = {
6096
6121
  key: 0,
6097
6122
  class: "w-markdown-editor__ajuda"
6098
- }, sc = [
6123
+ }, lc = [
6099
6124
  "value",
6100
6125
  "disabled",
6101
6126
  "placeholder"
6102
- ], cc = /* @__PURE__ */ x({
6127
+ ], uc = /* @__PURE__ */ x({
6103
6128
  __name: "WMarkdownEditor",
6104
6129
  props: {
6105
6130
  modelValue: {},
@@ -6281,7 +6306,7 @@ var $s = {
6281
6306
  }
6282
6307
  ];
6283
6308
  return (t, n) => (M(), h("div", { class: k(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
6284
- g("div", nc, [
6309
+ g("div", ic, [
6285
6310
  (M(), h(d, null, F(ie, (t) => g("button", {
6286
6311
  key: t.label,
6287
6312
  type: "button",
@@ -6301,7 +6326,7 @@ var $s = {
6301
6326
  "w-markdown-editor__glyph--italic": t.glyph === "I"
6302
6327
  }]),
6303
6328
  "aria-hidden": "true"
6304
- }, L(t.glyph), 3))], 8, rc)), 64)),
6329
+ }, L(t.glyph), 3))], 8, ac)), 64)),
6305
6330
  g("button", {
6306
6331
  type: "button",
6307
6332
  class: k(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
@@ -6312,7 +6337,7 @@ var $s = {
6312
6337
  }, [...n[1] ||= [g("i", {
6313
6338
  class: "pi pi-question-circle",
6314
6339
  "aria-hidden": "true"
6315
- }, null, -1)]], 10, ic),
6340
+ }, null, -1)]], 10, oc),
6316
6341
  o.value ? m("", !0) : (M(), h("button", {
6317
6342
  key: 0,
6318
6343
  type: "button",
@@ -6324,9 +6349,9 @@ var $s = {
6324
6349
  }, [g("i", {
6325
6350
  class: k(a.value ? "pi pi-pencil" : "pi pi-eye"),
6326
6351
  "aria-hidden": "true"
6327
- }, null, 2)], 10, ac))
6352
+ }, null, 2)], 10, sc))
6328
6353
  ]),
6329
- N.value ? (M(), h("dl", oc, [(M(), h(d, null, F(re, (e) => (M(), h(d, { key: e.sintaxe }, [g("dt", null, L(e.sintaxe), 1), g("dd", null, L(e.efeito), 1)], 64))), 64))])) : m("", !0),
6354
+ N.value ? (M(), h("dl", cc, [(M(), h(d, null, F(re, (e) => (M(), h(d, { key: e.sintaxe }, [g("dt", null, L(e.sintaxe), 1), g("dd", null, L(e.efeito), 1)], 64))), 64))])) : m("", !0),
6330
6355
  g("div", {
6331
6356
  class: "w-markdown-editor__body",
6332
6357
  style: j({
@@ -6343,7 +6368,7 @@ var $s = {
6343
6368
  placeholder: e.placeholder,
6344
6369
  spellcheck: "false",
6345
6370
  onInput: l
6346
- }, null, 40, sc)) : m("", !0), c.value ? (M(), p(tc, {
6371
+ }, null, 40, lc)) : m("", !0), c.value ? (M(), p(rc, {
6347
6372
  key: 1,
6348
6373
  class: "w-markdown-editor__preview",
6349
6374
  source: e.modelValue,
@@ -6351,28 +6376,28 @@ var $s = {
6351
6376
  }, null, 8, ["source"])) : m("", !0)], 4)
6352
6377
  ], 2));
6353
6378
  }
6354
- }), lc = {
6379
+ }), dc = {
6355
6380
  key: 0,
6356
6381
  class: "w-md-toc",
6357
6382
  "aria-label": "Índice do documento"
6358
- }, uc = { class: "w-md-toc__titulo" }, dc = {
6383
+ }, fc = { class: "w-md-toc__titulo" }, pc = {
6359
6384
  key: 0,
6360
6385
  class: "w-md-toc__busca"
6361
- }, fc = { class: "w-md-toc__lista" }, pc = [
6386
+ }, mc = { class: "w-md-toc__lista" }, hc = [
6362
6387
  "aria-expanded",
6363
6388
  "aria-label",
6364
6389
  "onClick"
6365
- ], mc = {
6390
+ ], gc = {
6366
6391
  key: 1,
6367
6392
  class: "w-md-toc__chevron w-md-toc__chevron--vazio",
6368
6393
  "aria-hidden": "true"
6369
- }, hc = ["href", "onClick"], gc = {
6394
+ }, _c = ["href", "onClick"], vc = {
6370
6395
  key: 0,
6371
6396
  class: "w-md-toc__lista"
6372
- }, _c = ["href", "onClick"], vc = {
6397
+ }, yc = ["href", "onClick"], bc = {
6373
6398
  key: 0,
6374
6399
  class: "w-md-toc__vazio"
6375
- }, yc = /* @__PURE__ */ x({
6400
+ }, xc = /* @__PURE__ */ x({
6376
6401
  __name: "WMarkdownToc",
6377
6402
  props: {
6378
6403
  headings: {},
@@ -6428,9 +6453,9 @@ var $s = {
6428
6453
  block: "start"
6429
6454
  }));
6430
6455
  }
6431
- return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav", lc, [
6432
- g("p", uc, L(e.title), 1),
6433
- e.searchable ? (M(), h("div", dc, [i[1] ||= g("i", {
6456
+ return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav", dc, [
6457
+ g("p", fc, L(e.title), 1),
6458
+ e.searchable ? (M(), h("div", pc, [i[1] ||= g("i", {
6434
6459
  class: "pi pi-search",
6435
6460
  "aria-hidden": "true"
6436
6461
  }, null, -1), H(g("input", {
@@ -6442,7 +6467,7 @@ var $s = {
6442
6467
  g("div", {
6443
6468
  class: "w-md-toc__corpo",
6444
6469
  style: j({ maxHeight: e.maxHeight })
6445
- }, [g("ul", fc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
6470
+ }, [g("ul", mc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
6446
6471
  key: e.titulo.id,
6447
6472
  class: "w-md-toc__grupo"
6448
6473
  }, [g("div", { class: k(["w-md-toc__item w-md-toc__item--n2", { "w-md-toc__item--ativo": n.value === e.titulo.id }]) }, [e.filhos.length ? (M(), h("button", {
@@ -6455,19 +6480,19 @@ var $s = {
6455
6480
  }, [g("i", {
6456
6481
  class: k(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
6457
6482
  "aria-hidden": "true"
6458
- }, null, 2)], 8, pc)) : (M(), h("span", mc)), g("a", {
6483
+ }, null, 2)], 8, hc)) : (M(), h("span", gc)), g("a", {
6459
6484
  href: `#${e.titulo.id}`,
6460
6485
  onClick: W((t) => v(e.titulo.id), ["prevent"])
6461
- }, L(e.titulo.text), 9, hc)], 2), u(e) ? (M(), h("ul", gc, [(M(!0), h(d, null, F(e.filhos, (e) => (M(), h("li", {
6486
+ }, L(e.titulo.text), 9, _c)], 2), u(e) ? (M(), h("ul", vc, [(M(!0), h(d, null, F(e.filhos, (e) => (M(), h("li", {
6462
6487
  key: e.id,
6463
6488
  class: k(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
6464
6489
  }, [g("a", {
6465
6490
  href: `#${e.id}`,
6466
6491
  onClick: W((t) => v(e.id), ["prevent"])
6467
- }, L(e.text), 9, _c)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (M(), h("p", vc, "Nenhuma seção encontrada")) : m("", !0)], 4)
6492
+ }, L(e.text), 9, yc)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (M(), h("p", bc, "Nenhuma seção encontrada")) : m("", !0)], 4)
6468
6493
  ])) : m("", !0);
6469
6494
  }
6470
- }), bc = /* @__PURE__ */ x({
6495
+ }), Sc = /* @__PURE__ */ x({
6471
6496
  name: "WDialog",
6472
6497
  inheritAttrs: !1,
6473
6498
  __name: "WDialog",
@@ -6478,16 +6503,16 @@ var $s = {
6478
6503
  fn: V((t) => [I(e.$slots, n, A(S(t ?? {})))])
6479
6504
  }))]), 1040, ["append-to"]));
6480
6505
  }
6481
- }), xc = ["aria-label"], Sc = [
6506
+ }), Cc = ["aria-label"], wc = [
6482
6507
  "aria-selected",
6483
6508
  "tabindex",
6484
6509
  "disabled",
6485
6510
  "onClick",
6486
6511
  "onKeydown"
6487
- ], Cc = {
6512
+ ], Tc = {
6488
6513
  key: 1,
6489
6514
  class: "w-tab-bar__badge"
6490
- }, wc = /* @__PURE__ */ x({
6515
+ }, Ec = /* @__PURE__ */ x({
6491
6516
  __name: "WTabBar",
6492
6517
  props: {
6493
6518
  modelValue: {},
@@ -6536,20 +6561,20 @@ var $s = {
6536
6561
  "aria-hidden": "true"
6537
6562
  }, null, 2)) : m("", !0),
6538
6563
  g("span", null, L(t.label), 1),
6539
- t.badge !== void 0 && t.badge !== null ? (M(), h("span", Cc, L(t.badge), 1)) : m("", !0)
6540
- ], 42, Sc))), 128))], 8, xc));
6564
+ t.badge !== void 0 && t.badge !== null ? (M(), h("span", Tc, L(t.badge), 1)) : m("", !0)
6565
+ ], 42, wc))), 128))], 8, Cc));
6541
6566
  }
6542
- }), Tc = { class: "w-tab-nav" }, Ec = ["aria-label"], Dc = [
6567
+ }), Dc = { class: "w-tab-nav" }, Oc = ["aria-label"], kc = [
6543
6568
  "tabindex",
6544
6569
  "aria-selected",
6545
6570
  "onClick",
6546
6571
  "onAuxclick",
6547
6572
  "onContextmenu",
6548
6573
  "onKeydown"
6549
- ], Oc = ["title"], kc = ["aria-label", "onClick"], Ac = ["aria-label", "onClick"], jc = {
6574
+ ], Ac = ["title"], jc = ["aria-label", "onClick"], Mc = ["aria-label", "onClick"], Nc = {
6550
6575
  key: 0,
6551
6576
  class: "w-tab-nav__actions"
6552
- }, Mc = /* @__PURE__ */ x({
6577
+ }, Pc = /* @__PURE__ */ x({
6553
6578
  __name: "WTabNav",
6554
6579
  props: {
6555
6580
  tabs: {},
@@ -6646,7 +6671,7 @@ var $s = {
6646
6671
  let t = i.value[e]?.group;
6647
6672
  return !!t && t !== i.value[e - 1]?.group;
6648
6673
  }
6649
- return (t, n) => (M(), h("div", Tc, [
6674
+ return (t, n) => (M(), h("div", Dc, [
6650
6675
  g("div", {
6651
6676
  ref_key: "trilho",
6652
6677
  ref: s,
@@ -6688,7 +6713,7 @@ var $s = {
6688
6713
  }, null, 2)) : m("", !0), g("span", {
6689
6714
  class: "w-tab-nav__title",
6690
6715
  title: e.title
6691
- }, L(e.title), 9, Oc)]),
6716
+ }, L(e.title), 9, Ac)]),
6692
6717
  g("button", {
6693
6718
  type: "button",
6694
6719
  class: "w-tab-nav__menu",
@@ -6698,7 +6723,7 @@ var $s = {
6698
6723
  }, [...n[0] ||= [g("i", {
6699
6724
  class: "pi pi-ellipsis-v",
6700
6725
  "aria-hidden": "true"
6701
- }, null, -1)]], 8, kc),
6726
+ }, null, -1)]], 8, jc),
6702
6727
  e.closable ? (M(), h("button", {
6703
6728
  key: 0,
6704
6729
  type: "button",
@@ -6709,9 +6734,9 @@ var $s = {
6709
6734
  }, [...n[1] ||= [g("i", {
6710
6735
  class: "pi pi-times",
6711
6736
  "aria-hidden": "true"
6712
- }, null, -1)]], 8, Ac)) : m("", !0)
6713
- ], 46, Dc)], 64))), 128))], 8, Ec),
6714
- t.$slots.actions ? (M(), h("div", jc, [I(t.$slots, "actions")])) : m("", !0),
6737
+ }, null, -1)]], 8, Mc)) : m("", !0)
6738
+ ], 46, kc)], 64))), 128))], 8, Oc),
6739
+ t.$slots.actions ? (M(), h("div", Nc, [I(t.$slots, "actions")])) : m("", !0),
6715
6740
  b(R(ve), {
6716
6741
  ref_key: "menu",
6717
6742
  ref: _,
@@ -6719,7 +6744,7 @@ var $s = {
6719
6744
  }, null, 8, ["model"])
6720
6745
  ]));
6721
6746
  }
6722
- }), Nc = x({
6747
+ }), Fc = x({
6723
6748
  name: "WTabPane",
6724
6749
  props: {
6725
6750
  tab: {
@@ -6765,7 +6790,7 @@ var $s = {
6765
6790
  key: e.tab.remount
6766
6791
  }) : null;
6767
6792
  }
6768
- }), Pc = { class: "w-tab-viewport" }, Fc = { class: "w-tab-viewport__scroll" }, Ic = /* @__PURE__ */ x({
6793
+ }), Ic = { class: "w-tab-viewport" }, Lc = { class: "w-tab-viewport__scroll" }, Rc = /* @__PURE__ */ x({
6769
6794
  __name: "WTabViewport",
6770
6795
  props: { tabs: {} },
6771
6796
  setup(e) {
@@ -6785,12 +6810,12 @@ var $s = {
6785
6810
  return B(r, (e) => {
6786
6811
  let t = new Set(e.map((e) => e.key));
6787
6812
  for (let e of i.keys()) t.has(e) || i.delete(e);
6788
- }), (t, i) => (M(), h("div", Pc, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
6813
+ }), (t, i) => (M(), h("div", Ic, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
6789
6814
  key: `${t.key}#${t.remount}`,
6790
6815
  ref_for: !0,
6791
6816
  ref: (e) => o(t.key, e),
6792
6817
  class: "w-tab-viewport__pane"
6793
- }, [g("div", Fc, [b(R(Nc), {
6818
+ }, [g("div", Lc, [b(R(Fc), {
6794
6819
  tab: t,
6795
6820
  api: e.tabs,
6796
6821
  active: t.key === n.value,
@@ -6802,26 +6827,26 @@ var $s = {
6802
6827
  "host-el"
6803
6828
  ])])])), [[z, t.key === n.value]])), 128))]));
6804
6829
  }
6805
- }), Lc = ["aria-busy"], Rc = { class: "w-kanban-board__header" }, zc = { class: "w-kanban-board__title" }, Bc = { class: "w-kanban-board__count" }, Vc = [
6830
+ }), zc = ["aria-busy"], Bc = { class: "w-kanban-board__header" }, Vc = { class: "w-kanban-board__title" }, Hc = { class: "w-kanban-board__count" }, Uc = [
6806
6831
  "aria-label",
6807
6832
  "onDragover",
6808
6833
  "onDragleave",
6809
6834
  "onDrop"
6810
- ], Hc = {
6835
+ ], Wc = {
6811
6836
  key: 0,
6812
6837
  class: "w-kanban-board__indicator"
6813
- }, Uc = [
6838
+ }, Gc = [
6814
6839
  "draggable",
6815
6840
  "onDragstart",
6816
6841
  "onClick",
6817
6842
  "onKeydown"
6818
- ], Wc = { class: "w-kanban-board__card-fallback" }, Gc = {
6843
+ ], Kc = { class: "w-kanban-board__card-fallback" }, qc = {
6819
6844
  key: 0,
6820
6845
  class: "w-kanban-board__indicator"
6821
- }, Kc = {
6846
+ }, Jc = {
6822
6847
  key: 1,
6823
6848
  class: "w-kanban-board__empty"
6824
- }, qc = /* @__PURE__ */ x({
6849
+ }, Yc = /* @__PURE__ */ x({
6825
6850
  __name: "WKanbanBoard",
6826
6851
  props: {
6827
6852
  columns: {},
@@ -6924,7 +6949,7 @@ var $s = {
6924
6949
  key: r.value,
6925
6950
  class: k(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
6926
6951
  style: j(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
6927
- }, [g("header", Rc, [I(t.$slots, "column-header", { column: r }, () => [g("span", zc, L(r.label), 1), g("span", Bc, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), g("div", {
6952
+ }, [g("header", Bc, [I(t.$slots, "column-header", { column: r }, () => [g("span", Vc, L(r.label), 1), g("span", Hc, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), g("div", {
6928
6953
  ref_for: !0,
6929
6954
  ref: (e) => s(r.value, e),
6930
6955
  class: "w-kanban-board__list",
@@ -6938,7 +6963,7 @@ var $s = {
6938
6963
  onDragleave: (e) => b(r, e),
6939
6964
  onDrop: (e) => x(r, e)
6940
6965
  }, [
6941
- (M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div", Hc)) : m("", !0), g("div", {
6966
+ (M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div", Wc)) : m("", !0), g("div", {
6942
6967
  class: k(["w-kanban-board__card", {
6943
6968
  "w-kanban-board__card--dragging": f(e),
6944
6969
  "w-kanban-board__card--static": !u(e)
@@ -6953,13 +6978,13 @@ var $s = {
6953
6978
  }, [I(t.$slots, "card", {
6954
6979
  item: e,
6955
6980
  column: r
6956
- }, () => [g("span", Wc, L(l(e)), 1)])], 42, Uc)], 64))), 128)),
6957
- T(r, r.items.length) ? (M(), h("div", Gc)) : m("", !0),
6958
- r.items.length ? m("", !0) : (M(), h("div", Kc, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
6959
- ], 44, Vc)], 6))), 128))], 10, Lc));
6981
+ }, () => [g("span", Kc, L(l(e)), 1)])], 42, Gc)], 64))), 128)),
6982
+ T(r, r.items.length) ? (M(), h("div", qc)) : m("", !0),
6983
+ r.items.length ? m("", !0) : (M(), h("div", Jc, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
6984
+ ], 44, Uc)], 6))), 128))], 10, zc));
6960
6985
  }
6961
6986
  });
6962
6987
  //#endregion
6963
- export { _i as A, Gt as B, Ji as C, Ii as D, Fi as E, zn as F, mt as G, Nt as H, Rn as I, Je as J, vt as K, Fn as L, ui as M, Qr as N, Ri as O, Sr as P, Nn as R, $i as S, Vi as T, kt as U, Pt as V, _t as W, Fa as _, bc as a, ha as b, tc as c, Co as d, $a as f, Ha as g, Ka as h, wc as i, di as j, ji as k, ss as l, Za as m, Ic as n, yc as o, Qa as p, ht as q, Mc as r, cc as s, qc as t, jo as u, Da as v, Hi as w, oa as x, Ea as y, on as z };
6988
+ export { yi as A, Gt as B, Xi as C, Ri as D, Li as E, Vn as F, mt as G, Nt as H, Bn as I, Je as J, vt as K, Ln as L, fi as M, ei as N, Bi as O, wr as P, Nn as R, ta as S, Ui as T, kt as U, Pt as V, _t as W, La as _, Sc as a, _a as b, rc as c, To as d, to as f, Wa as g, Ja as h, Ec as i, pi as j, Ni as k, ls as l, $a as m, Rc as n, xc as o, eo as p, ht as q, Pc as r, uc as s, Yc as t, No as u, ka as v, Wi as w, ca as x, Oa as y, on as z };
6964
6989
 
6965
- //# sourceMappingURL=components-BiiT1GKD.js.map
6990
+ //# sourceMappingURL=components-DokVE_Ug.js.map