@wgalleti/primevue-components 0.27.0 → 0.28.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.
@@ -3319,46 +3319,63 @@ var Bn = { class: "w-crud" }, Vn = {
3319
3319
  ]);
3320
3320
  };
3321
3321
  }
3322
- }), Cr = { class: "w-editable-table" }, wr = {
3322
+ }), Cr = {
3323
3323
  key: 0,
3324
3324
  class: "w-editable-table__toolbar"
3325
- }, Tr = ["disabled"], Er = { class: "w-editable-table__table" }, Dr = {
3325
+ }, wr = ["disabled"], Tr = ["role"], Er = {
3326
3326
  key: 0,
3327
3327
  class: "w-editable-table__group-row"
3328
- }, Or = {
3328
+ }, Dr = {
3329
3329
  key: 0,
3330
3330
  class: "w-editable-table__toggle-col"
3331
- }, kr = ["colspan"], Ar = {
3331
+ }, Or = ["colspan"], kr = {
3332
3332
  key: 1,
3333
3333
  class: "w-editable-table__action-col"
3334
- }, jr = {
3334
+ }, Ar = {
3335
3335
  key: 0,
3336
3336
  class: "w-editable-table__toggle-col"
3337
- }, Mr = {
3337
+ }, jr = {
3338
3338
  key: 1,
3339
3339
  class: "w-editable-table__action-col"
3340
- }, Nr = { key: 0 }, Pr = ["colspan"], Fr = {
3340
+ }, Mr = { key: 0 }, Nr = ["colspan"], Pr = {
3341
3341
  key: 0,
3342
- class: "w-editable-table__toggle-col"
3343
- }, Ir = ["aria-expanded", "onClick"], Lr = {
3342
+ class: "w-editable-table__toggle-col",
3343
+ "data-card": "expander"
3344
+ }, Fr = [
3345
+ "aria-expanded",
3346
+ "aria-label",
3347
+ "onClick"
3348
+ ], Ir = {
3349
+ key: 0,
3350
+ class: "w-editable-table__toggle-label"
3351
+ }, Lr = ["data-card"], Rr = {
3352
+ key: 0,
3353
+ class: "w-editable-table__card-label"
3354
+ }, zr = {
3344
3355
  key: 3,
3345
3356
  class: "w-editable-table__text"
3346
- }, Rr = {
3357
+ }, Br = {
3347
3358
  key: 1,
3348
- class: "w-editable-table__action-col"
3349
- }, zr = ["onClick"], Br = {
3359
+ class: "w-editable-table__action-col",
3360
+ "data-card": "actions"
3361
+ }, Vr = ["onClick"], Hr = {
3350
3362
  key: 0,
3351
3363
  class: "w-editable-table__expansion"
3352
- }, Vr = ["colspan"], Hr = { key: 1 }, Ur = { class: "w-editable-table__footer" }, Wr = {
3364
+ }, Ur = ["colspan"], Wr = { key: 1 }, Gr = { class: "w-editable-table__footer" }, Kr = {
3353
3365
  key: 0,
3354
- class: "w-editable-table__toggle-col"
3355
- }, Gr = {
3366
+ class: "w-editable-table__toggle-col",
3367
+ "data-card": "hidden"
3368
+ }, qr = ["data-card"], Jr = {
3369
+ key: 0,
3370
+ class: "w-editable-table__card-label"
3371
+ }, Yr = {
3356
3372
  key: 0,
3357
3373
  class: "w-editable-table__footer-label"
3358
- }, Kr = { key: 1 }, qr = {
3374
+ }, Xr = { key: 1 }, Zr = {
3359
3375
  key: 1,
3360
- class: "w-editable-table__action-col"
3361
- }, Jr = /* @__PURE__ */ x({
3376
+ class: "w-editable-table__action-col",
3377
+ "data-card": "hidden"
3378
+ }, Qr = /* @__PURE__ */ x({
3362
3379
  __name: "WEditableTable",
3363
3380
  props: {
3364
3381
  modelValue: { default: () => [] },
@@ -3378,42 +3395,51 @@ var Bn = { class: "w-crud" }, Vn = {
3378
3395
  type: Boolean,
3379
3396
  default: !1
3380
3397
  },
3381
- rowKey: {}
3398
+ rowKey: {},
3399
+ cardMode: { default: "auto" },
3400
+ expansionLabel: { default: "Detalhes" }
3382
3401
  },
3383
3402
  emits: [
3384
3403
  "update:modelValue",
3385
3404
  "add",
3386
3405
  "remove"
3387
3406
  ],
3388
- setup(e, { emit: t }) {
3389
- let r = e, i = t, { formatNumber: a } = n(), o = P(/* @__PURE__ */ new Set());
3390
- function s(e) {
3391
- return o.value.has(e);
3407
+ setup(t, { emit: r }) {
3408
+ let i = t, a = r, { formatNumber: o } = n(), { isRetrato: s } = e(), c = f(() => i.cardMode === "always" || i.cardMode !== "never" && s.value), l = f(() => i.columns.find((e) => e.card === "title")?.field ?? i.columns[0]?.field);
3409
+ function u(e) {
3410
+ return e.card ? e.card : e.field === l.value ? "title" : "field";
3392
3411
  }
3393
- function c(e) {
3394
- let t = new Set(o.value);
3395
- t.has(e) ? t.delete(e) : t.add(e), o.value = t;
3412
+ function _(e) {
3413
+ return e.group ? `${e.group} · ${e.header}` : e.header;
3396
3414
  }
3397
- function l(e) {
3415
+ let v = P(/* @__PURE__ */ new Set());
3416
+ function b(e) {
3417
+ return v.value.has(e);
3418
+ }
3419
+ function x(e) {
3420
+ let t = new Set(v.value);
3421
+ t.has(e) ? t.delete(e) : t.add(e), v.value = t;
3422
+ }
3423
+ function S(e) {
3398
3424
  let t = e.options;
3399
3425
  return t ? T(t) ? t.value : t : [];
3400
3426
  }
3401
- function u(e) {
3427
+ function C(e) {
3402
3428
  return e.align ? e.align : e.editor === "number" ? "right" : "left";
3403
3429
  }
3404
- function _(e) {
3430
+ function w(e) {
3405
3431
  return e.editor === "number" || e.footer === "sum" || e.decimals != null;
3406
3432
  }
3407
- function v(e) {
3408
- return [`w-editable-table__cell--${u(e)}`, ..._(e) ? ["w-editable-table__cell--num"] : []];
3433
+ function E(e) {
3434
+ return [`w-editable-table__cell--${C(e)}`, ...w(e) ? ["w-editable-table__cell--num"] : []];
3409
3435
  }
3410
- function b(e) {
3411
- if (e.width != null) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
3436
+ function D(e) {
3437
+ if (!(c.value || e.width == null)) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
3412
3438
  }
3413
- function x(e, t, n) {
3414
- return r.disabled ? !0 : typeof e.disabled == "function" ? e.disabled(t, n) : !!e.disabled;
3439
+ function O(e, t, n) {
3440
+ return i.disabled ? !0 : typeof e.disabled == "function" ? e.disabled(t, n) : !!e.disabled;
3415
3441
  }
3416
- function S(e) {
3442
+ function A(e) {
3417
3443
  if (typeof e == "number") return Number.isFinite(e) ? e : 0;
3418
3444
  if (typeof e == "string" && e.trim()) {
3419
3445
  let t = Number(e.replace(/\./g, "").replace(",", "."));
@@ -3421,37 +3447,40 @@ var Bn = { class: "w-crud" }, Vn = {
3421
3447
  }
3422
3448
  return 0;
3423
3449
  }
3424
- function C(e, t) {
3450
+ function ee(e, t) {
3425
3451
  let n = t[e.field];
3426
- return e.format ? e.format(n, t) : n == null || n === "" ? "—" : _(e) ? `${a(S(n), e.decimals ?? 2)}${e.suffix ?? ""}` : `${String(n)}${e.suffix ?? ""}`;
3452
+ return e.format ? e.format(n, t) : n == null || n === "" ? "—" : w(e) ? `${o(A(n), e.decimals ?? 2)}${e.suffix ?? ""}` : `${String(n)}${e.suffix ?? ""}`;
3427
3453
  }
3428
- function w(e, t, n) {
3429
- let a = r.modelValue.map((r, i) => i === e ? {
3454
+ function te(e, t, n) {
3455
+ let r = i.modelValue.map((r, i) => i === e ? {
3430
3456
  ...r,
3431
3457
  [t]: n
3432
3458
  } : r);
3433
- i("update:modelValue", a);
3459
+ a("update:modelValue", r);
3434
3460
  }
3435
- function E(e, t) {
3436
- i("update:modelValue", r.modelValue.filter((e, n) => n !== t)), o.value = /* @__PURE__ */ new Set(), i("remove", e, t);
3461
+ function ne(e, t) {
3462
+ a("update:modelValue", i.modelValue.filter((e, n) => n !== t)), v.value = /* @__PURE__ */ new Set(), a("remove", e, t);
3437
3463
  }
3438
- function D(e, t) {
3439
- if (r.rowKey) {
3440
- let t = e[r.rowKey];
3464
+ function N(e, t) {
3465
+ if (i.rowKey) {
3466
+ let t = e[i.rowKey];
3441
3467
  if (typeof t == "string" || typeof t == "number") return t;
3442
3468
  }
3443
3469
  return t;
3444
3470
  }
3445
- let O = f(() => r.columns.some((e) => typeof e.footer == "function" || e.footer === "sum"));
3446
- function A(e) {
3447
- if (typeof e.footer == "function") return e.footer(r.modelValue);
3471
+ let re = f(() => i.columns.some((e) => typeof e.footer == "function" || e.footer === "sum"));
3472
+ function ie(e) {
3473
+ if (typeof e.footer == "function") return e.footer(i.modelValue);
3448
3474
  if (e.footer !== "sum") return "";
3449
- let t = r.modelValue.reduce((t, n) => t + S(n[e.field]), 0);
3450
- return `${a(t, e.decimals ?? 2)}${e.suffix ?? ""}`;
3475
+ let t = i.modelValue.reduce((t, n) => t + A(n[e.field]), 0);
3476
+ return `${o(t, e.decimals ?? 2)}${e.suffix ?? ""}`;
3477
+ }
3478
+ function ae(e) {
3479
+ return typeof e.footer == "function" || e.footer === "sum";
3451
3480
  }
3452
- let ee = f(() => r.columns.find((e) => !e.footer || e.footer === "none")?.field ?? null), te = f(() => r.columns.length + +!!r.expandable + +!!r.removable), ne = f(() => r.columns.some((e) => e.group)), N = f(() => {
3481
+ let oe = f(() => i.columns.find((e) => !e.footer || e.footer === "none")?.field ?? null), se = f(() => i.columns.length + +!!i.expandable + +!!i.removable), ce = f(() => i.columns.some((e) => e.group)), le = f(() => {
3453
3482
  let e = [];
3454
- for (let t of r.columns) {
3483
+ for (let t of i.columns) {
3455
3484
  let n = t.group ?? "", r = e[e.length - 1];
3456
3485
  r && n && r.label === n ? r.span += 1 : e.push({
3457
3486
  label: n,
@@ -3461,65 +3490,70 @@ var Bn = { class: "w-crud" }, Vn = {
3461
3490
  }
3462
3491
  return e;
3463
3492
  });
3464
- return (t, n) => (M(), h("div", Cr, [t.$slots.toolbar || t.$slots["toolbar-extra"] || e.addLabel ? (M(), h("div", wr, [I(t.$slots, "toolbar", {}, () => [e.addLabel ? (M(), h("button", {
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", {
3465
3494
  key: 0,
3466
3495
  type: "button",
3467
3496
  class: "w-editable-table__add",
3468
- disabled: e.disabled,
3469
- onClick: n[0] ||= (e) => i("add")
3470
- }, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(e.addLabel), 1)], 8, Tr)) : m("", !0)]), I(t.$slots, "toolbar-extra")])) : m("", !0), g("table", Er, [
3471
- g("thead", null, [ne.value ? (M(), h("tr", Dr, [
3472
- e.expandable ? (M(), h("th", Or)) : m("", !0),
3473
- (M(!0), h(d, null, F(N.value, (e) => (M(), h("th", {
3497
+ disabled: t.disabled,
3498
+ 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", {
3500
+ class: "w-editable-table__table",
3501
+ role: c.value ? "presentation" : void 0
3502
+ }, [
3503
+ g("thead", null, [ce.value ? (M(), h("tr", Er, [
3504
+ t.expandable ? (M(), h("th", Dr)) : m("", !0),
3505
+ (M(!0), h(d, null, F(le.value, (e) => (M(), h("th", {
3474
3506
  key: e.key,
3475
3507
  colspan: e.span,
3476
3508
  class: k(["w-editable-table__group", { "w-editable-table__group--label": e.label }])
3477
- }, L(e.label), 11, kr))), 128)),
3478
- e.removable ? (M(), h("th", Ar)) : m("", !0)
3509
+ }, L(e.label), 11, Or))), 128)),
3510
+ t.removable ? (M(), h("th", kr)) : m("", !0)
3479
3511
  ])) : m("", !0), g("tr", null, [
3480
- e.expandable ? (M(), h("th", jr)) : m("", !0),
3481
- (M(!0), h(d, null, F(e.columns, (e) => (M(), h("th", {
3512
+ t.expandable ? (M(), h("th", Ar)) : m("", !0),
3513
+ (M(!0), h(d, null, F(t.columns, (e) => (M(), h("th", {
3482
3514
  key: e.field,
3483
- class: k(v(e)),
3484
- style: j(b(e))
3515
+ class: k(E(e)),
3516
+ style: j(D(e))
3485
3517
  }, L(e.header), 7))), 128)),
3486
- e.removable ? (M(), h("th", Mr)) : m("", !0)
3518
+ t.removable ? (M(), h("th", jr)) : m("", !0)
3487
3519
  ])]),
3488
- e.modelValue.length ? m("", !0) : (M(), h("tbody", Nr, [g("tr", null, [g("td", {
3489
- colspan: te.value,
3490
- class: "w-editable-table__empty"
3491
- }, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])], 8, Pr)])])),
3492
- (M(!0), h(d, null, F(e.modelValue, (r, i) => (M(), h("tbody", { key: D(r, i) }, [g("tr", { class: k(["w-editable-table__row", { "w-editable-table__row--alt": i % 2 == 1 }]) }, [
3493
- e.expandable ? (M(), h("td", Fr, [g("button", {
3520
+ t.modelValue.length ? m("", !0) : (M(), h("tbody", Mr, [g("tr", null, [g("td", {
3521
+ colspan: se.value,
3522
+ class: "w-editable-table__empty",
3523
+ "data-card": "expansion"
3524
+ }, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8, Nr)])])),
3525
+ (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", {
3494
3527
  type: "button",
3495
3528
  class: "w-editable-table__toggle",
3496
- "aria-expanded": s(i),
3497
- "aria-label": "Detalhes da linha",
3498
- onClick: (e) => c(i)
3499
- }, [g("i", { class: k(s(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2)], 8, Ir)])) : m("", !0),
3500
- (M(!0), h(d, null, F(e.columns, (e) => (M(), h("td", {
3501
- key: e.field,
3502
- class: k(v(e)),
3503
- style: j(b(e))
3504
- }, [I(t.$slots, `cell-${e.field}`, {
3529
+ "aria-expanded": b(i),
3530
+ "aria-label": t.expansionLabel,
3531
+ 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),
3533
+ (M(!0), h(d, null, F(t.columns, (t) => (M(), h("td", {
3534
+ key: t.field,
3535
+ class: k(E(t)),
3536
+ style: j(D(t)),
3537
+ "data-card": u(t)
3538
+ }, [c.value ? (M(), h("span", Rr, L(_(t)), 1)) : m("", !0), I(e.$slots, `cell-${t.field}`, {
3505
3539
  row: r,
3506
3540
  index: i,
3507
- value: r[e.field],
3508
- column: e
3509
- }, () => [e.editor === "number" ? (M(), p(R(fe), {
3541
+ value: r[t.field],
3542
+ column: t
3543
+ }, () => [t.editor === "number" ? (M(), p(R(fe), {
3510
3544
  key: 0,
3511
- "model-value": r[e.field],
3545
+ "model-value": r[t.field],
3512
3546
  fluid: "",
3513
3547
  locale: "pt-BR",
3514
- min: e.min,
3515
- max: e.max,
3516
- "min-fraction-digits": e.decimals == null ? void 0 : e.decimals,
3517
- "max-fraction-digits": e.decimals == null ? void 0 : e.decimals,
3518
- suffix: e.suffix,
3519
- placeholder: e.placeholder,
3520
- disabled: x(e, r, i),
3548
+ min: t.min,
3549
+ max: t.max,
3550
+ "min-fraction-digits": t.decimals == null ? void 0 : t.decimals,
3551
+ "max-fraction-digits": t.decimals == null ? void 0 : t.decimals,
3552
+ suffix: t.suffix,
3553
+ placeholder: t.placeholder,
3554
+ disabled: O(t, r, i),
3521
3555
  "input-class": "w-editable-table__num",
3522
- "onUpdate:modelValue": (t) => w(i, e.field, t)
3556
+ "onUpdate:modelValue": (e) => te(i, t.field, e)
3523
3557
  }, null, 8, [
3524
3558
  "model-value",
3525
3559
  "min",
@@ -3530,28 +3564,28 @@ var Bn = { class: "w-crud" }, Vn = {
3530
3564
  "placeholder",
3531
3565
  "disabled",
3532
3566
  "onUpdate:modelValue"
3533
- ])) : e.editor === "text" ? (M(), p(R(q), {
3567
+ ])) : t.editor === "text" ? (M(), p(R(q), {
3534
3568
  key: 1,
3535
- "model-value": r[e.field],
3569
+ "model-value": r[t.field],
3536
3570
  fluid: "",
3537
- placeholder: e.placeholder,
3538
- disabled: x(e, r, i),
3539
- "onUpdate:modelValue": (t) => w(i, e.field, t)
3571
+ placeholder: t.placeholder,
3572
+ disabled: O(t, r, i),
3573
+ "onUpdate:modelValue": (e) => te(i, t.field, e)
3540
3574
  }, null, 8, [
3541
3575
  "model-value",
3542
3576
  "placeholder",
3543
3577
  "disabled",
3544
3578
  "onUpdate:modelValue"
3545
- ])) : e.editor === "select" ? (M(), p(R(J), {
3579
+ ])) : t.editor === "select" ? (M(), p(R(J), {
3546
3580
  key: 2,
3547
- "model-value": r[e.field],
3581
+ "model-value": r[t.field],
3548
3582
  fluid: "",
3549
- options: l(e),
3550
- "option-label": e.optionLabel || "label",
3551
- "option-value": e.optionValue || "value",
3552
- placeholder: e.placeholder,
3553
- disabled: x(e, r, i),
3554
- "onUpdate:modelValue": (t) => w(i, e.field, t)
3583
+ options: S(t),
3584
+ "option-label": t.optionLabel || "label",
3585
+ "option-value": t.optionValue || "value",
3586
+ placeholder: t.placeholder,
3587
+ disabled: O(t, r, i),
3588
+ "onUpdate:modelValue": (e) => te(i, t.field, e)
3555
3589
  }, null, 8, [
3556
3590
  "model-value",
3557
3591
  "options",
@@ -3560,47 +3594,51 @@ var Bn = { class: "w-crud" }, Vn = {
3560
3594
  "placeholder",
3561
3595
  "disabled",
3562
3596
  "onUpdate:modelValue"
3563
- ])) : (M(), h("span", Lr, L(C(e, r)), 1))])], 6))), 128)),
3564
- e.removable ? (M(), h("td", Rr, [g("button", {
3597
+ ])) : (M(), h("span", zr, L(ee(t, r)), 1))])], 14, Lr))), 128)),
3598
+ t.removable ? (M(), h("td", Br, [g("button", {
3565
3599
  type: "button",
3566
3600
  class: "w-editable-table__remove",
3567
3601
  "aria-label": "Remover linha",
3568
- onClick: (e) => E(r, i)
3569
- }, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, zr)])) : m("", !0)
3570
- ], 2), e.expandable && s(i) ? (M(), h("tr", Br, [g("td", { colspan: te.value }, [I(t.$slots, "expansion", {
3602
+ 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", {
3605
+ colspan: se.value,
3606
+ "data-card": "expansion"
3607
+ }, [I(e.$slots, "expansion", {
3571
3608
  row: r,
3572
3609
  index: i
3573
- })], 8, Vr)])) : m("", !0)]))), 128)),
3574
- O.value ? (M(), h("tfoot", Hr, [g("tr", Ur, [
3575
- e.expandable ? (M(), h("td", Wr)) : m("", !0),
3576
- (M(!0), h(d, null, F(e.columns, (n) => (M(), h("td", {
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),
3613
+ (M(!0), h(d, null, F(t.columns, (n) => (M(), h("td", {
3577
3614
  key: n.field,
3578
- class: k(v(n)),
3579
- style: j(b(n))
3580
- }, [I(t.$slots, `footer-${n.field}`, {
3581
- rows: e.modelValue,
3615
+ class: k(E(n)),
3616
+ style: j(D(n)),
3617
+ "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}`, {
3619
+ rows: t.modelValue,
3582
3620
  column: n
3583
- }, () => [n.field === ee.value ? (M(), h("span", Gr, L(e.footerLabel), 1)) : (M(), h("span", Kr, L(A(n)), 1))])], 6))), 128)),
3584
- e.removable ? (M(), h("td", qr)) : m("", !0)
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)
3585
3623
  ])])) : m("", !0)
3586
- ])]));
3624
+ ], 8, Tr)], 2));
3587
3625
  }
3588
- }), Yr = { class: "w-crud-subview" }, Xr = {
3626
+ }), $r = { class: "w-crud-subview" }, ei = {
3589
3627
  key: 0,
3590
3628
  class: "w-crud-subview__header"
3591
- }, Zr = { class: "w-crud-subview__heading" }, Qr = {
3629
+ }, ti = { class: "w-crud-subview__heading" }, ni = {
3592
3630
  key: 0,
3593
3631
  class: "w-crud-subview__title"
3594
- }, $r = {
3632
+ }, ri = {
3595
3633
  key: 0,
3596
3634
  class: "w-crud-subview__count"
3597
- }, ei = {
3635
+ }, ii = {
3598
3636
  key: 1,
3599
3637
  class: "w-crud-subview__subtitle"
3600
- }, ti = {
3638
+ }, ai = {
3601
3639
  key: 0,
3602
3640
  class: "w-crud-subview__actions"
3603
- }, ni = { class: "w-crud-subview__row-actions" }, ri = ["onClick"], ii = ["onClick"], ai = "__acoes", oi = /* @__PURE__ */ x({
3641
+ }, oi = { class: "w-crud-subview__row-actions" }, si = ["onClick"], ci = ["onClick"], li = "__acoes", ui = /* @__PURE__ */ x({
3604
3642
  __name: "WCrudSubview",
3605
3643
  props: {
3606
3644
  crud: {},
@@ -3620,21 +3658,24 @@ var Bn = { class: "w-crud" }, Vn = {
3620
3658
  dialogWidth: { default: "520px" },
3621
3659
  formColumns: {},
3622
3660
  footerLabel: {},
3623
- rowKey: {}
3661
+ rowKey: {},
3662
+ cardMode: {},
3663
+ expansionLabel: {}
3624
3664
  },
3625
3665
  setup(e) {
3626
3666
  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, {
3627
- field: ai,
3667
+ field: li,
3628
3668
  header: "",
3629
3669
  width: "5rem",
3630
- align: "right"
3631
- }] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${ai}`)), u = f(() => Object.keys(n).filter((e) => e.startsWith("field-") || e.startsWith("image-")));
3670
+ align: "right",
3671
+ 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-")));
3632
3673
  function d(e) {
3633
3674
  t.crud.config.onChange(e);
3634
3675
  }
3635
- return (t, n) => (M(), h("div", Yr, [
3636
- e.title || t.$slots["toolbar-actions"] ? (M(), h("div", Xr, [g("div", Zr, [e.title ? (M(), h("h3", Qr, [y(L(e.title) + " ", 1), r.value.length ? (M(), h("span", $r, L(r.value.length), 1)) : m("", !0)])) : m("", !0), e.subtitle ? (M(), h("p", ei, L(e.subtitle), 1)) : m("", !0)]), t.$slots["toolbar-actions"] ? (M(), h("div", ti, [I(t.$slots, "toolbar-actions")])) : m("", !0)])) : m("", !0),
3637
- b(Jr, {
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, {
3638
3679
  "model-value": r.value,
3639
3680
  columns: c.value,
3640
3681
  expandable: e.expandable,
@@ -3643,22 +3684,24 @@ var Bn = { class: "w-crud" }, Vn = {
3643
3684
  "empty-message": e.emptyMessage ?? e.crud.labels.emptyMessage,
3644
3685
  "footer-label": e.footerLabel,
3645
3686
  "row-key": e.rowKey,
3687
+ "card-mode": e.cardMode,
3688
+ "expansion-label": e.expansionLabel,
3646
3689
  "onUpdate:modelValue": d,
3647
3690
  onAdd: n[0] ||= (t) => e.crud.openCreateDialog()
3648
3691
  }, _({
3649
- [`cell-${ai}`]: V(({ row: t, index: r }) => [g("div", ni, [a.value ? (M(), h("button", {
3692
+ [`cell-${li}`]: V(({ row: t, index: r }) => [g("div", oi, [a.value ? (M(), h("button", {
3650
3693
  key: 0,
3651
3694
  type: "button",
3652
3695
  class: "w-crud-subview__action",
3653
3696
  "aria-label": "Editar",
3654
3697
  onClick: (n) => e.crud.openEditDialog(t, r)
3655
- }, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, ri)) : m("", !0), o.value ? (M(), h("button", {
3698
+ }, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, si)) : m("", !0), o.value ? (M(), h("button", {
3656
3699
  key: 1,
3657
3700
  type: "button",
3658
3701
  class: "w-crud-subview__action w-crud-subview__action--danger",
3659
3702
  "aria-label": "Excluir",
3660
3703
  onClick: (n) => e.crud.confirmDelete(t, r)
3661
- }, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ii)) : m("", !0)])]),
3704
+ }, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ci)) : m("", !0)])]),
3662
3705
  _: 2
3663
3706
  }, [
3664
3707
  t.$slots["toolbar-extra"] ? {
@@ -3688,7 +3731,9 @@ var Bn = { class: "w-crud" }, Vn = {
3688
3731
  "add-label",
3689
3732
  "empty-message",
3690
3733
  "footer-label",
3691
- "row-key"
3734
+ "row-key",
3735
+ "card-mode",
3736
+ "expansion-label"
3692
3737
  ]),
3693
3738
  b(Fn, {
3694
3739
  visible: e.crud.dialogVisible.value,
@@ -3732,7 +3777,7 @@ var Bn = { class: "w-crud" }, Vn = {
3732
3777
  ])
3733
3778
  ]));
3734
3779
  }
3735
- }), si = /* @__PURE__ */ x({
3780
+ }), di = /* @__PURE__ */ x({
3736
3781
  __name: "WDateRange",
3737
3782
  props: {
3738
3783
  modelValue: { default: null },
@@ -3774,14 +3819,14 @@ var Bn = { class: "w-crud" }, Vn = {
3774
3819
  "disabled"
3775
3820
  ]));
3776
3821
  }
3777
- }), ci = {
3822
+ }), fi = {
3778
3823
  class: "w-fileupload",
3779
3824
  style: {
3780
3825
  display: "flex",
3781
3826
  "flex-direction": "column",
3782
3827
  gap: "0.5rem"
3783
3828
  }
3784
- }, li = ["accept", "multiple"], ui = {
3829
+ }, pi = ["accept", "multiple"], mi = {
3785
3830
  key: 0,
3786
3831
  style: {
3787
3832
  "list-style": "none",
@@ -3791,12 +3836,12 @@ var Bn = { class: "w-crud" }, Vn = {
3791
3836
  "flex-direction": "column",
3792
3837
  gap: "0.35rem"
3793
3838
  }
3794
- }, di = { style: {
3839
+ }, hi = { style: {
3795
3840
  flex: "1",
3796
3841
  overflow: "hidden",
3797
3842
  "text-overflow": "ellipsis",
3798
3843
  "white-space": "nowrap"
3799
- } }, fi = { style: { opacity: "0.6" } }, pi = /* @__PURE__ */ x({
3844
+ } }, gi = { style: { opacity: "0.6" } }, _i = /* @__PURE__ */ x({
3800
3845
  __name: "WFileUpload",
3801
3846
  props: {
3802
3847
  modelValue: { default: null },
@@ -3845,7 +3890,7 @@ var Bn = { class: "w-crud" }, Vn = {
3845
3890
  function l(e) {
3846
3891
  return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
3847
3892
  }
3848
- return (t, n) => (M(), h("div", ci, [
3893
+ return (t, n) => (M(), h("div", fi, [
3849
3894
  g("div", null, [b(R(K), {
3850
3895
  type: "button",
3851
3896
  label: e.chooseLabel,
@@ -3863,8 +3908,8 @@ var Bn = { class: "w-crud" }, Vn = {
3863
3908
  multiple: e.multiple,
3864
3909
  style: { display: "none" },
3865
3910
  onChange: s
3866
- }, null, 40, li),
3867
- a.value.length ? (M(), h("ul", ui, [(M(!0), h(d, null, F(a.value, (t, r) => (M(), h("li", {
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", {
3868
3913
  key: `${t.name}-${r}`,
3869
3914
  style: {
3870
3915
  display: "flex",
@@ -3877,8 +3922,8 @@ var Bn = { class: "w-crud" }, Vn = {
3877
3922
  class: "pi pi-file",
3878
3923
  style: { opacity: "0.6" }
3879
3924
  }, null, -1),
3880
- g("span", di, L(t.name), 1),
3881
- g("span", fi, L(l(t.size)), 1),
3925
+ g("span", hi, L(t.name), 1),
3926
+ g("span", gi, L(l(t.size)), 1),
3882
3927
  b(R(K), {
3883
3928
  type: "button",
3884
3929
  icon: "pi pi-times",
@@ -3896,10 +3941,10 @@ var Bn = { class: "w-crud" }, Vn = {
3896
3941
  ]));
3897
3942
  }
3898
3943
  });
3899
- function mi(e) {
3944
+ function vi(e) {
3900
3945
  return String(e ?? "").normalize("NFD").replace(/\p{Diacritic}/gu, "").toLocaleLowerCase();
3901
3946
  }
3902
- function hi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
3947
+ function yi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
3903
3948
  let a = [], o = /* @__PURE__ */ new Map();
3904
3949
  for (let s of e ?? []) {
3905
3950
  let e = s[t];
@@ -3925,19 +3970,19 @@ function hi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, gro
3925
3970
  }
3926
3971
  return a;
3927
3972
  }
3928
- function gi(e) {
3929
- return e.children?.length ? e.children.flatMap(gi) : e.value === void 0 ? [] : [e.value];
3973
+ function bi(e) {
3974
+ return e.children?.length ? e.children.flatMap(bi) : e.value === void 0 ? [] : [e.value];
3930
3975
  }
3931
- function _i(e) {
3932
- return e.flatMap(gi);
3976
+ function xi(e) {
3977
+ return e.flatMap(bi);
3933
3978
  }
3934
- function vi(e) {
3979
+ function Si(e) {
3935
3980
  let t = /* @__PURE__ */ new Map(), n = (e) => {
3936
3981
  t.set(e.key, e), e.children?.forEach(n);
3937
3982
  };
3938
3983
  return e.forEach(n), t;
3939
3984
  }
3940
- function yi(e, t) {
3985
+ function Ci(e, t) {
3941
3986
  let n = new Set(t ?? []), r = {}, i = (e) => {
3942
3987
  if (!e.children?.length) {
3943
3988
  let t = e.value !== void 0 && n.has(e.value);
@@ -3967,10 +4012,10 @@ function yi(e, t) {
3967
4012
  };
3968
4013
  return e.forEach(i), r;
3969
4014
  }
3970
- function bi(e, t, n = []) {
3971
- let r = mi(t).trim();
4015
+ function wi(e, t, n = []) {
4016
+ let r = vi(t).trim();
3972
4017
  if (!r) return [...e];
3973
- let i = (e) => mi(e.label).includes(r) ? !0 : n.some((t) => mi(e.data?.[t]).includes(r)), a = [];
4018
+ let i = (e) => vi(e.label).includes(r) ? !0 : n.some((t) => vi(e.data?.[t]).includes(r)), a = [];
3974
4019
  for (let r of e) {
3975
4020
  if (!r.children?.length) {
3976
4021
  i(r) && a.push(r);
@@ -3980,7 +4025,7 @@ function bi(e, t, n = []) {
3980
4025
  a.push(r);
3981
4026
  continue;
3982
4027
  }
3983
- let e = bi(r.children, t, n);
4028
+ let e = wi(r.children, t, n);
3984
4029
  e.length && a.push({
3985
4030
  ...r,
3986
4031
  children: e
@@ -3988,7 +4033,7 @@ function bi(e, t, n = []) {
3988
4033
  }
3989
4034
  return a;
3990
4035
  }
3991
- function xi(e, t, n) {
4036
+ function Ti(e, t, n) {
3992
4037
  let r = new Set(t);
3993
4038
  if (!n) return (e ?? []).filter((e) => !r.has(e));
3994
4039
  let i = [...e ?? []], a = new Set(i);
@@ -3997,19 +4042,19 @@ function xi(e, t, n) {
3997
4042
  }
3998
4043
  //#endregion
3999
4044
  //#region src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
4000
- var Si = {
4045
+ var Ei = {
4001
4046
  key: 0,
4002
4047
  class: "w-tree-select__head"
4003
- }, Ci = {
4048
+ }, Di = {
4004
4049
  key: 0,
4005
4050
  class: "w-tree-select__count"
4006
- }, wi = { key: 1 }, Ti = {
4051
+ }, Oi = { key: 1 }, ki = {
4007
4052
  key: 2,
4008
4053
  class: "w-tree-select__actions"
4009
- }, Ei = {
4054
+ }, Ai = {
4010
4055
  key: 2,
4011
4056
  class: "w-tree-select__empty"
4012
- }, Di = /* @__PURE__ */ x({
4057
+ }, ji = /* @__PURE__ */ x({
4013
4058
  __name: "WTreeSelect",
4014
4059
  props: {
4015
4060
  modelValue: { default: () => [] },
@@ -4050,13 +4095,13 @@ var Si = {
4050
4095
  },
4051
4096
  emits: ["update:modelValue"],
4052
4097
  setup(e, { emit: t }) {
4053
- let n = e, r = t, i = P(""), a = P({}), o = f(() => hi(n.options, {
4098
+ let n = e, r = t, i = P(""), a = P({}), o = f(() => yi(n.options, {
4054
4099
  optionValue: n.optionValue,
4055
4100
  optionLabel: n.optionLabel,
4056
4101
  groupBy: n.groupBy,
4057
4102
  groupLabel: n.groupLabel
4058
- })), s = f(() => vi(o.value)), c = f(() => n.filter && i.value.trim().length > 0), l = f(() => c.value ? bi(o.value, i.value, n.filterFields) : o.value), u = f(() => yi(o.value, n.modelValue)), d = f(() => _i(o.value).length), g = f(() => {
4059
- let e = new Set(_i(o.value));
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));
4060
4105
  return n.modelValue.filter((t) => e.has(t)).length;
4061
4106
  }), _ = 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);
4062
4107
  function S(e) {
@@ -4075,10 +4120,10 @@ var Si = {
4075
4120
  function w(e, t) {
4076
4121
  if (n.disabled) return;
4077
4122
  let i = s.value.get(e.key);
4078
- i && r("update:modelValue", xi(n.modelValue, gi(i), t));
4123
+ i && r("update:modelValue", Ti(n.modelValue, bi(i), t));
4079
4124
  }
4080
4125
  function T() {
4081
- n.disabled || r("update:modelValue", _i(o.value));
4126
+ n.disabled || r("update:modelValue", xi(o.value));
4082
4127
  }
4083
4128
  function E() {
4084
4129
  n.disabled || r("update:modelValue", []);
@@ -4087,7 +4132,7 @@ var Si = {
4087
4132
  I(t.$slots, "header", {
4088
4133
  selectedCount: g.value,
4089
4134
  total: d.value
4090
- }, () => [_.value ? (M(), h("div", Si, [e.showCount ? (M(), h("span", Ci, L(g.value) + " de " + L(d.value) + " selecionados ", 1)) : (M(), h("span", wi)), e.showToggleAll ? (M(), h("div", Ti, [b(R(K), {
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), {
4091
4136
  type: "button",
4092
4137
  label: "Marcar todos",
4093
4138
  text: "",
@@ -4124,7 +4169,7 @@ var Si = {
4124
4169
  ])]),
4125
4170
  _: 1
4126
4171
  })) : m("", !0),
4127
- v.value ? (M(), h("div", Ei, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
4172
+ v.value ? (M(), h("div", Ai, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
4128
4173
  key: 1,
4129
4174
  value: l.value,
4130
4175
  "selection-mode": "checkbox",
@@ -4148,9 +4193,9 @@ var Si = {
4148
4193
  ]))
4149
4194
  ], 2));
4150
4195
  }
4151
- }), Oi = null;
4152
- function ki() {
4153
- return Oi ||= Promise.all([
4196
+ }), Mi = null;
4197
+ function Ni() {
4198
+ return Mi ||= Promise.all([
4154
4199
  import("echarts/core"),
4155
4200
  import("echarts/charts"),
4156
4201
  import("echarts/components"),
@@ -4166,11 +4211,11 @@ function ki() {
4166
4211
  n.TooltipComponent,
4167
4212
  r.CanvasRenderer,
4168
4213
  r.SVGRenderer
4169
- ]), e)).catch(() => (Oi = null, null)), Oi;
4214
+ ]), e)).catch(() => (Mi = null, null)), Mi;
4170
4215
  }
4171
- var Ai = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
4172
- function ji() {
4173
- let e = Ai("--fg"), t = Ai("--fg-muted"), n = Ai("--border"), r = Ai("--surface"), i = Ai("--font-sans", "sans-serif"), a = {
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 = {
4174
4219
  axisLine: { lineStyle: { color: n } },
4175
4220
  axisTick: { show: !1 },
4176
4221
  axisLabel: { color: t },
@@ -4185,7 +4230,7 @@ function ji() {
4185
4230
  4,
4186
4231
  5,
4187
4232
  6
4188
- ].map((e) => Ai(`--viz-${e}`)),
4233
+ ].map((e) => Pi(`--viz-${e}`)),
4189
4234
  backgroundColor: "transparent",
4190
4235
  textStyle: {
4191
4236
  color: e,
@@ -4235,7 +4280,7 @@ function ji() {
4235
4280
  ] } }
4236
4281
  };
4237
4282
  }
4238
- function Mi() {
4283
+ function Ii() {
4239
4284
  let e = [
4240
4285
  "#141a22",
4241
4286
  "#5a6573",
@@ -4288,16 +4333,16 @@ function Mi() {
4288
4333
  bar: { itemStyle: { borderRadius: 0 } }
4289
4334
  };
4290
4335
  }
4291
- function Ni() {
4336
+ function Li() {
4292
4337
  return {
4293
4338
  text: "",
4294
- color: Ai("--primary"),
4339
+ color: Pi("--primary"),
4295
4340
  maskColor: "transparent",
4296
4341
  spinnerRadius: 8,
4297
4342
  lineWidth: 2
4298
4343
  };
4299
4344
  }
4300
- function Pi({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
4345
+ function Ri({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
4301
4346
  return {
4302
4347
  tooltip: {
4303
4348
  trigger: "item",
@@ -4331,13 +4376,13 @@ function Pi({ data: e, format: t = (e) => String(e), centerLabel: n = "", center
4331
4376
  }
4332
4377
  //#endregion
4333
4378
  //#region src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
4334
- var Fi = {
4379
+ var zi = {
4335
4380
  key: 0,
4336
4381
  class: "w-chart__empty"
4337
- }, Ii = {
4382
+ }, Bi = {
4338
4383
  key: 1,
4339
4384
  class: "w-chart__empty"
4340
- }, Li = /*#__PURE__*/ Wt(/* @__PURE__ */ x({
4385
+ }, Vi = /*#__PURE__*/ Wt(/* @__PURE__ */ x({
4341
4386
  __name: "WChart",
4342
4387
  props: {
4343
4388
  option: {},
@@ -4361,15 +4406,15 @@ var Fi = {
4361
4406
  let t = e, n = P(null), r = oe(null), i = P(!1), a = null, o = null, s = () => {
4362
4407
  r.value && r.value.setOption(t.option, !0);
4363
4408
  }, c = () => {
4364
- r.value && (t.loading ? r.value.showLoading("default", Ni()) : r.value.hideLoading());
4409
+ r.value && (t.loading ? r.value.showLoading("default", Li()) : r.value.hideLoading());
4365
4410
  }, l = async () => {
4366
- let e = await ki();
4411
+ let e = await Ni();
4367
4412
  if (n.value) {
4368
4413
  if (!e) {
4369
4414
  i.value = !0;
4370
4415
  return;
4371
4416
  }
4372
- i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ? Mi() : ji(), { renderer: t.print ? "svg" : t.renderer }), s(), c();
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();
4373
4418
  }
4374
4419
  };
4375
4420
  return B(() => t.option, s, { deep: !0 }), B(() => t.loading, c), B([() => t.print, () => t.renderer], () => void l()), te(() => {
@@ -4379,13 +4424,13 @@ var Fi = {
4379
4424
  }), (t, r) => (M(), h("div", {
4380
4425
  class: "w-chart",
4381
4426
  style: j(e.height ? { "--w-chart-h": e.height } : void 0)
4382
- }, [e.empty && !e.loading ? (M(), h("div", Fi, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)], !0)])) : i.value ? (M(), h("div", Ii, [I(t.$slots, "unavailable", {}, () => [r[0] ||= y("Gráfico indisponível.", -1)], !0)])) : m("", !0), H(g("div", {
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", {
4383
4428
  ref_key: "container",
4384
4429
  ref: n,
4385
4430
  class: "w-chart__canvas"
4386
4431
  }, null, 512), [[z, !e.empty && !i.value]])], 4));
4387
4432
  }
4388
- }), [["__scopeId", "data-v-fe796670"]]), Ri = /* @__PURE__ */ x({
4433
+ }), [["__scopeId", "data-v-fe796670"]]), Hi = /* @__PURE__ */ x({
4389
4434
  __name: "WStatusTag",
4390
4435
  props: {
4391
4436
  value: {},
@@ -4506,10 +4551,10 @@ var Fi = {
4506
4551
  severity: r.value.severity
4507
4552
  }, null, 8, ["value", "severity"]));
4508
4553
  }
4509
- }), zi = { class: "w-page-header" }, Bi = { class: "w-page-header-content" }, Vi = { class: "w-page-header-title" }, Hi = {
4554
+ }), Ui = { class: "w-page-header" }, Wi = { class: "w-page-header-content" }, Gi = { class: "w-page-header-title" }, Ki = {
4510
4555
  key: 0,
4511
4556
  class: "w-page-header-subtitle"
4512
- }, Ui = { class: "w-page-header-actions" }, Wi = /* @__PURE__ */ x({
4557
+ }, qi = { class: "w-page-header-actions" }, Ji = /* @__PURE__ */ x({
4513
4558
  __name: "WPageHeader",
4514
4559
  props: {
4515
4560
  title: {},
@@ -4520,17 +4565,17 @@ var Fi = {
4520
4565
  emits: ["action"],
4521
4566
  setup(e, { emit: t }) {
4522
4567
  let n = t;
4523
- return (t, r) => (M(), h("div", zi, [g("div", Bi, [g("h2", Vi, L(e.title), 1), e.subtitle ? (M(), h("p", Hi, L(e.subtitle), 1)) : m("", !0)]), g("div", Ui, [I(t.$slots, "actions"), e.actionLabel ? (M(), p(R(K), {
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), {
4524
4569
  key: 0,
4525
4570
  label: e.actionLabel,
4526
4571
  icon: e.actionIcon,
4527
4572
  onClick: r[0] ||= (e) => n("action")
4528
4573
  }, null, 8, ["label", "icon"])) : m("", !0)])]));
4529
4574
  }
4530
- }), Gi = { class: "w-empty-state" }, Ki = { class: "w-empty-state-icon" }, qi = { class: "w-empty-state-title" }, Ji = {
4575
+ }), Yi = { class: "w-empty-state" }, Xi = { class: "w-empty-state-icon" }, Zi = { class: "w-empty-state-title" }, Qi = {
4531
4576
  key: 0,
4532
4577
  class: "w-empty-state-description"
4533
- }, Yi = /* @__PURE__ */ x({
4578
+ }, $i = /* @__PURE__ */ x({
4534
4579
  __name: "WEmptyState",
4535
4580
  props: {
4536
4581
  icon: {},
@@ -4542,10 +4587,10 @@ var Fi = {
4542
4587
  emits: ["action"],
4543
4588
  setup(e, { emit: t }) {
4544
4589
  let n = t;
4545
- return (t, r) => (M(), h("div", Gi, [
4546
- g("div", Ki, [g("i", { class: k(e.icon) }, null, 2)]),
4547
- g("p", qi, L(e.title), 1),
4548
- e.description ? (M(), h("p", Ji, L(e.description), 1)) : m("", !0),
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),
4549
4594
  e.actionLabel ? (M(), p(R(K), {
4550
4595
  key: 1,
4551
4596
  label: e.actionLabel,
@@ -4556,10 +4601,10 @@ var Fi = {
4556
4601
  }, null, 8, ["label", "icon"])) : m("", !0)
4557
4602
  ]));
4558
4603
  }
4559
- }), Xi = { class: "w-detail-header" }, Zi = { class: "w-detail-header-left" }, Qi = { class: "w-detail-header-content" }, $i = { class: "w-detail-header-title" }, ea = {
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 = {
4560
4605
  key: 0,
4561
4606
  class: "w-detail-header-subtitle"
4562
- }, ta = { class: "w-detail-header-actions" }, na = /* @__PURE__ */ x({
4607
+ }, aa = { class: "w-detail-header-actions" }, oa = /* @__PURE__ */ x({
4563
4608
  __name: "WDetailHeader",
4564
4609
  props: {
4565
4610
  title: {},
@@ -4575,7 +4620,7 @@ var Fi = {
4575
4620
  function r() {
4576
4621
  t.backTo ? n.push(typeof t.backTo == "string" ? { name: t.backTo } : t.backTo) : t.backRoute ? n.push({ name: t.backRoute }) : n.back();
4577
4622
  }
4578
- return (t, n) => (M(), h("div", Xi, [g("div", Zi, [
4623
+ return (t, n) => (M(), h("div", ea, [g("div", ta, [
4579
4624
  b(R(K), {
4580
4625
  icon: "pi pi-arrow-left",
4581
4626
  text: "",
@@ -4586,27 +4631,27 @@ var Fi = {
4586
4631
  key: 0,
4587
4632
  class: k([e.icon, "w-detail-header-icon"])
4588
4633
  }, null, 2)) : m("", !0),
4589
- g("div", Qi, [g("h2", $i, L(e.title), 1), e.subtitle ? (M(), h("p", ea, L(e.subtitle), 1)) : m("", !0)]),
4590
- e.status ? (M(), p(Ri, {
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, {
4591
4636
  key: 1,
4592
4637
  value: e.status,
4593
4638
  map: e.statusMap
4594
4639
  }, null, 8, ["value", "map"])) : m("", !0)
4595
- ]), g("div", ta, [I(t.$slots, "actions")])]));
4640
+ ]), g("div", aa, [I(t.$slots, "actions")])]));
4596
4641
  }
4597
- }), ra = {
4642
+ }), sa = {
4598
4643
  key: 0,
4599
4644
  class: "w-info-card-title"
4600
- }, ia = {
4645
+ }, ca = {
4601
4646
  key: 1,
4602
4647
  class: "w-info-card-metrics"
4603
- }, aa = { class: "w-info-card-metric-label" }, oa = { class: "w-info-card-metric-value" }, sa = {
4648
+ }, la = { class: "w-info-card-metric-label" }, ua = { class: "w-info-card-metric-value" }, da = {
4604
4649
  key: 0,
4605
4650
  class: "w-info-card-metric-suffix"
4606
- }, ca = {
4651
+ }, fa = {
4607
4652
  key: 2,
4608
4653
  class: "w-info-card-grid"
4609
- }, la = { class: "w-info-card-label" }, ua = { class: "w-info-card-value" }, da = /* @__PURE__ */ x({
4654
+ }, pa = { class: "w-info-card-label" }, ma = { class: "w-info-card-value" }, ha = /* @__PURE__ */ x({
4610
4655
  __name: "WInfoCard",
4611
4656
  props: {
4612
4657
  title: {},
@@ -4619,34 +4664,34 @@ var Fi = {
4619
4664
  let n = e.value;
4620
4665
  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);
4621
4666
  }
4622
- return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3", ra, L(e.title), 1)) : m("", !0), e.variant === "metric" ? (M(), h("div", ia, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
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", {
4623
4668
  key: e.label,
4624
4669
  class: "w-info-card-metric"
4625
4670
  }, [
4626
- g("span", aa, L(e.label), 1),
4627
- g("span", oa, L(a(e)), 1),
4628
- e.suffix ? (M(), h("span", sa, L(e.suffix), 1)) : m("", !0)
4629
- ]))), 128))])) : (M(), h("div", ca, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
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", {
4630
4675
  key: e.label,
4631
4676
  class: "w-info-card-field"
4632
- }, [g("span", la, L(e.label), 1), g("span", ua, L(a(e)), 1)]))), 128))]))], 2));
4677
+ }, [g("span", pa, L(e.label), 1), g("span", ma, L(a(e)), 1)]))), 128))]))], 2));
4633
4678
  }
4634
- }), fa = {
4679
+ }), ga = {
4635
4680
  key: 0,
4636
4681
  class: "w-kpi-card__loading"
4637
- }, pa = { class: "w-kpi-card__loading-content" }, ma = { class: "w-kpi-card__header" }, ha = {
4682
+ }, _a = { class: "w-kpi-card__loading-content" }, va = { class: "w-kpi-card__header" }, ya = {
4638
4683
  key: 0,
4639
4684
  class: "w-kpi-card__icon"
4640
- }, ga = {
4685
+ }, ba = {
4641
4686
  key: 1,
4642
4687
  class: "w-kpi-card__trend"
4643
- }, _a = { class: "w-kpi-card__content" }, va = { class: "w-kpi-card__label" }, ya = { class: "w-kpi-card__value" }, ba = {
4688
+ }, xa = { class: "w-kpi-card__content" }, Sa = { class: "w-kpi-card__label" }, Ca = { class: "w-kpi-card__value" }, wa = {
4644
4689
  key: 0,
4645
4690
  class: "w-kpi-card__hint"
4646
- }, xa = {
4691
+ }, Ta = {
4647
4692
  key: 0,
4648
4693
  class: "w-kpi-card__footer"
4649
- }, Sa = /* @__PURE__ */ x({
4694
+ }, Ea = /* @__PURE__ */ x({
4650
4695
  __name: "WKpiCard",
4651
4696
  props: {
4652
4697
  label: {},
@@ -4658,10 +4703,10 @@ var Fi = {
4658
4703
  loading: { type: Boolean }
4659
4704
  },
4660
4705
  setup(e) {
4661
- return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div", fa, [b(R(X), {
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), {
4662
4707
  shape: "circle",
4663
4708
  size: "2.75rem"
4664
- }), g("div", pa, [
4709
+ }), g("div", _a, [
4665
4710
  b(R(X), {
4666
4711
  width: "6rem",
4667
4712
  height: "0.75rem"
@@ -4675,22 +4720,22 @@ var Fi = {
4675
4720
  height: "0.75rem"
4676
4721
  })
4677
4722
  ])])) : (M(), h(d, { key: 1 }, [
4678
- g("div", ma, [e.icon || t.$slots.icon ? (M(), h("div", ha, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
4723
+ g("div", va, [e.icon || t.$slots.icon ? (M(), h("div", ya, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
4679
4724
  key: 0,
4680
4725
  class: k(e.icon)
4681
- }, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div", ga, [I(t.$slots, "trend", {}, () => [e.trend ? (M(), h("span", {
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", {
4682
4727
  key: 0,
4683
4728
  class: k(["w-kpi-card__trend-badge", e.trend.direction ? `w-kpi-card__trend-badge--${e.trend.direction}` : ""])
4684
4729
  }, L(e.trend.value), 3)) : m("", !0)])])) : m("", !0)]),
4685
- g("div", _a, [
4686
- g("p", va, L(e.label), 1),
4687
- g("div", ya, [I(t.$slots, "value", {}, () => [y(L(e.value), 1)])]),
4688
- e.hint || t.$slots.hint ? (M(), h("p", ba, [I(t.$slots, "hint", {}, () => [y(L(e.hint), 1)])])) : 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)
4689
4734
  ]),
4690
- t.$slots.footer ? (M(), h("footer", xa, [I(t.$slots, "footer")])) : m("", !0)
4735
+ t.$slots.footer ? (M(), h("footer", Ta, [I(t.$slots, "footer")])) : m("", !0)
4691
4736
  ], 64))], 2));
4692
4737
  }
4693
- }), Ca = /* @__PURE__ */ x({
4738
+ }), Da = /* @__PURE__ */ x({
4694
4739
  __name: "WKpiGrid",
4695
4740
  props: {
4696
4741
  items: { default: () => [] },
@@ -4706,7 +4751,7 @@ var Fi = {
4706
4751
  key: n,
4707
4752
  item: e,
4708
4753
  index: n
4709
- })), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Sa, {
4754
+ })), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Ea, {
4710
4755
  key: t,
4711
4756
  label: e.label,
4712
4757
  value: e.value,
@@ -4725,16 +4770,16 @@ var Fi = {
4725
4770
  "loading"
4726
4771
  ]))), 128))], 2));
4727
4772
  }
4728
- }), wa = { class: "w-section-header__main" }, Ta = {
4773
+ }), Oa = { class: "w-section-header__main" }, ka = {
4729
4774
  key: 0,
4730
4775
  class: "w-section-header__icon"
4731
- }, Ea = { class: "w-section-header__content" }, Da = { class: "w-section-header__title-row" }, Oa = { class: "w-section-header__title" }, ka = {
4776
+ }, Aa = { class: "w-section-header__content" }, ja = { class: "w-section-header__title-row" }, Ma = { class: "w-section-header__title" }, Na = {
4732
4777
  key: 0,
4733
4778
  class: "w-section-header__subtitle"
4734
- }, Aa = {
4779
+ }, Pa = {
4735
4780
  key: 0,
4736
4781
  class: "w-section-header__actions"
4737
- }, ja = /* @__PURE__ */ x({
4782
+ }, Fa = /* @__PURE__ */ x({
4738
4783
  __name: "WSectionHeader",
4739
4784
  props: {
4740
4785
  title: {},
@@ -4743,21 +4788,21 @@ var Fi = {
4743
4788
  compact: { type: Boolean }
4744
4789
  },
4745
4790
  setup(e) {
4746
- return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", wa, [e.icon || t.$slots.icon ? (M(), h("div", Ta, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
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", {
4747
4792
  key: 0,
4748
4793
  class: k(e.icon)
4749
- }, null, 2)) : m("", !0)])])) : m("", !0), g("div", Ea, [g("div", Da, [g("h3", Oa, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (M(), h("p", ka, L(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (M(), h("div", Aa, [I(t.$slots, "actions")])) : m("", !0)], 2));
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));
4750
4795
  }
4751
- }), Ma = {
4796
+ }), Ia = {
4752
4797
  key: 0,
4753
4798
  class: "w-form-section__header"
4754
- }, Na = { class: "w-form-section__content" }, Pa = { class: "w-form-section__title" }, Fa = {
4799
+ }, La = { class: "w-form-section__content" }, Ra = { class: "w-form-section__title" }, za = {
4755
4800
  key: 0,
4756
4801
  class: "w-form-section__description"
4757
- }, Ia = {
4802
+ }, Ba = {
4758
4803
  key: 0,
4759
4804
  class: "w-form-section__actions"
4760
- }, La = { class: "w-form-section__body" }, Ra = /* @__PURE__ */ x({
4805
+ }, Va = { class: "w-form-section__body" }, Ha = /* @__PURE__ */ x({
4761
4806
  __name: "WFormSection",
4762
4807
  props: {
4763
4808
  title: {},
@@ -4765,18 +4810,18 @@ var Fi = {
4765
4810
  variant: {}
4766
4811
  },
4767
4812
  setup(e) {
4768
- 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", Ma, [g("div", Na, [g("h3", Pa, L(e.title), 1), e.description ? (M(), h("p", Fa, L(e.description), 1)) : m("", !0)]), t.$slots.actions ? (M(), h("div", Ia, [I(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", La, [I(t.$slots, "default")])], 2));
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));
4769
4814
  }
4770
- }), za = {
4815
+ }), Ua = {
4771
4816
  key: 0,
4772
4817
  class: "w-action-bar__primary"
4773
- }, Ba = {
4818
+ }, Wa = {
4774
4819
  key: 1,
4775
4820
  class: "w-action-bar__filters"
4776
- }, Va = {
4821
+ }, Ga = {
4777
4822
  key: 2,
4778
4823
  class: "w-action-bar__secondary"
4779
- }, Ha = /* @__PURE__ */ x({
4824
+ }, Ka = /* @__PURE__ */ x({
4780
4825
  __name: "WActionBar",
4781
4826
  props: {
4782
4827
  align: { default: "between" },
@@ -4787,15 +4832,15 @@ var Fi = {
4787
4832
  },
4788
4833
  setup(e) {
4789
4834
  return (t, n) => (M(), h("div", { class: k(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
4790
- t.$slots.primary || t.$slots.default ? (M(), h("div", za, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : m("", !0),
4791
- t.$slots.filters ? (M(), h("div", Ba, [I(t.$slots, "filters")])) : m("", !0),
4792
- t.$slots.secondary ? (M(), h("div", Va, [I(t.$slots, "secondary")])) : m("", !0)
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)
4793
4838
  ], 2));
4794
4839
  }
4795
- }), Ua = { class: "w-progress-flow__marker" }, Wa = { class: "w-progress-flow__content" }, Ga = { class: "w-progress-flow__label" }, Ka = {
4840
+ }), qa = { class: "w-progress-flow__marker" }, Ja = { class: "w-progress-flow__content" }, Ya = { class: "w-progress-flow__label" }, Xa = {
4796
4841
  key: 0,
4797
4842
  class: "w-progress-flow__description"
4798
- }, qa = /* @__PURE__ */ x({
4843
+ }, Za = /* @__PURE__ */ x({
4799
4844
  __name: "WProgressFlow",
4800
4845
  props: {
4801
4846
  steps: {},
@@ -4814,9 +4859,9 @@ var Fi = {
4814
4859
  step: e,
4815
4860
  index: n,
4816
4861
  state: r(n)
4817
- }, () => [g("div", Ua, [g("span", null, L(n + 1), 1)]), g("div", Wa, [g("p", Ga, L(e.label), 1), e.description ? (M(), h("p", Ka, L(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
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));
4818
4863
  }
4819
- }), Ja = Symbol("w-step-flow"), Ya = /* @__PURE__ */ x({
4864
+ }), Qa = Symbol("w-step-flow"), $a = /* @__PURE__ */ x({
4820
4865
  __name: "WStepFlow",
4821
4866
  props: {
4822
4867
  modelValue: { default: 0 },
@@ -4832,7 +4877,7 @@ var Fi = {
4832
4877
  function s(e) {
4833
4878
  n.disabled || r("update:modelValue", n.modelValue === e ? 0 : e);
4834
4879
  }
4835
- N(Ja, {
4880
+ N(Qa, {
4836
4881
  active: i,
4837
4882
  toggle: s,
4838
4883
  disabled: a,
@@ -4860,48 +4905,48 @@ var Fi = {
4860
4905
  onKeydown: l
4861
4906
  }, [I(e.$slots, "default")], 34));
4862
4907
  }
4863
- }), Xa = { class: "w-step-section__rail" }, Za = {
4908
+ }), eo = { class: "w-step-section__rail" }, to = {
4864
4909
  key: 0,
4865
4910
  class: "w-step-section__line"
4866
- }, Qa = { class: "w-step-section__body" }, $a = { class: "w-step-section__card" }, eo = { class: "w-step-section__header" }, to = [
4911
+ }, no = { class: "w-step-section__body" }, ro = { class: "w-step-section__card" }, io = { class: "w-step-section__header" }, ao = [
4867
4912
  "aria-expanded",
4868
4913
  "aria-current",
4869
4914
  "disabled"
4870
- ], no = { class: "w-step-section__title" }, ro = {
4915
+ ], oo = { class: "w-step-section__title" }, so = {
4871
4916
  key: 0,
4872
4917
  class: "w-step-section__count"
4873
- }, io = {
4918
+ }, co = {
4874
4919
  key: 1,
4875
4920
  class: "w-step-section__summary"
4876
- }, ao = {
4921
+ }, lo = {
4877
4922
  key: 0,
4878
4923
  class: "w-step-section__actions"
4879
- }, oo = { class: "w-step-section__content" }, so = {
4924
+ }, uo = { class: "w-step-section__content" }, fo = {
4880
4925
  key: 0,
4881
4926
  class: "w-step-section__footer"
4882
- }, co = { class: "w-step-section__head" }, lo = [
4927
+ }, po = { class: "w-step-section__head" }, mo = [
4883
4928
  "aria-expanded",
4884
4929
  "aria-current",
4885
4930
  "disabled"
4886
- ], uo = {
4931
+ ], ho = {
4887
4932
  key: 0,
4888
4933
  class: "pi pi-check"
4889
- }, fo = { class: "w-step-section__title" }, po = {
4934
+ }, go = { class: "w-step-section__title" }, _o = {
4890
4935
  key: 0,
4891
4936
  class: "w-step-section__count"
4892
- }, mo = {
4937
+ }, vo = {
4893
4938
  key: 1,
4894
4939
  class: "w-step-section__summary"
4895
- }, ho = {
4940
+ }, yo = {
4896
4941
  key: 1,
4897
4942
  class: "w-step-section__actions"
4898
- }, go = {
4943
+ }, bo = {
4899
4944
  key: 0,
4900
4945
  class: "w-step-section__panel"
4901
- }, _o = { class: "w-step-section__content" }, vo = {
4946
+ }, xo = { class: "w-step-section__content" }, So = {
4902
4947
  key: 0,
4903
4948
  class: "w-step-section__footer"
4904
- }, yo = /* @__PURE__ */ x({
4949
+ }, Co = /* @__PURE__ */ x({
4905
4950
  __name: "WStepSection",
4906
4951
  props: {
4907
4952
  step: {},
@@ -4914,7 +4959,7 @@ var Fi = {
4914
4959
  }
4915
4960
  },
4916
4961
  setup(e) {
4917
- let t = e, n = w(Ja, 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);
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);
4918
4963
  function l() {
4919
4964
  a.value || (n ? n.toggle(t.step) : r.value = !r.value);
4920
4965
  }
@@ -4924,7 +4969,7 @@ var Fi = {
4924
4969
  "w-step-section--open": i.value,
4925
4970
  "w-step-section--done": c.value
4926
4971
  }])
4927
- }, [g("div", co, [
4972
+ }, [g("div", po, [
4928
4973
  s.value ? (M(), h("span", {
4929
4974
  key: 0,
4930
4975
  class: k(["w-step-section__line", { "w-step-section__line--done": c.value || i.value }])
@@ -4943,19 +4988,19 @@ var Fi = {
4943
4988
  "w-step-section__badge--done": c.value
4944
4989
  }]),
4945
4990
  "aria-hidden": "true"
4946
- }, [c.value ? (M(), h("i", uo)) : (M(), h(d, { key: 1 }, [y(L(e.step), 1)], 64))], 2),
4947
- g("h2", fo, L(e.title), 1),
4948
- e.count == null ? m("", !0) : (M(), h("span", po, L(e.count), 1)),
4949
- e.summary ? (M(), h("span", mo, L(e.summary), 1)) : m("", !0)
4950
- ], 8, lo),
4951
- t.$slots.actions ? (M(), h("div", ho, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)
4952
- ]), i.value ? (M(), h("div", go, [g("div", _o, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", vo, [I(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (M(), h("div", {
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", {
4953
4998
  key: 0,
4954
4999
  class: k(["w-step-section", { "w-step-section--open": i.value }])
4955
- }, [g("div", Xa, [g("span", {
5000
+ }, [g("div", eo, [g("span", {
4956
5001
  class: k(["w-step-section__badge", { "w-step-section__badge--on": i.value }]),
4957
5002
  "aria-hidden": "true"
4958
- }, L(e.step), 3), s.value ? (M(), h("span", Za)) : m("", !0)]), g("div", Qa, [g("div", $a, [g("div", eo, [g("button", {
5003
+ }, L(e.step), 3), s.value ? (M(), h("span", to)) : m("", !0)]), g("div", no, [g("div", ro, [g("div", io, [g("button", {
4959
5004
  type: "button",
4960
5005
  class: "w-step-section__trigger",
4961
5006
  "aria-expanded": i.value,
@@ -4964,24 +5009,24 @@ var Fi = {
4964
5009
  onClick: l
4965
5010
  }, [
4966
5011
  g("i", { class: k(["w-step-section__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]) }, null, 2),
4967
- g("h2", no, L(e.title), 1),
4968
- e.count == null ? m("", !0) : (M(), h("span", ro, L(e.count), 1)),
4969
- e.summary ? (M(), h("span", io, L(e.summary), 1)) : m("", !0)
4970
- ], 8, to), t.$slots.actions ? (M(), h("div", ao, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (M(), h(d, { key: 0 }, [g("div", oo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", so, [I(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 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));
4971
5016
  }
4972
- }), bo = { class: "w-check-list" }, xo = {
5017
+ }), wo = { class: "w-check-list" }, To = {
4973
5018
  key: 0,
4974
5019
  class: "w-check-list__header"
4975
- }, So = { class: "w-check-list__title" }, Co = {
5020
+ }, Eo = { class: "w-check-list__title" }, Do = {
4976
5021
  key: 0,
4977
5022
  class: "w-check-list__count"
4978
- }, wo = {
5023
+ }, Oo = {
4979
5024
  key: 1,
4980
5025
  class: "w-check-list__items"
4981
- }, To = { class: "w-check-list__label" }, Eo = {
5026
+ }, ko = { class: "w-check-list__label" }, Ao = {
4982
5027
  key: 2,
4983
5028
  class: "w-check-list__empty"
4984
- }, Do = /* @__PURE__ */ x({
5029
+ }, jo = /* @__PURE__ */ x({
4985
5030
  __name: "WCheckList",
4986
5031
  props: {
4987
5032
  title: {},
@@ -5001,62 +5046,62 @@ var Fi = {
5001
5046
  function a(e) {
5002
5047
  return i[e] ?? i.warn;
5003
5048
  }
5004
- return (t, n) => (M(), h("div", bo, [e.title || e.showCount ? (M(), h("div", xo, [g("span", So, L(e.title), 1), e.showCount ? (M(), h("span", Co, L(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (M(), h("ul", wo, [(M(!0), h(d, null, F(e.items, (e, t) => (M(), h("li", {
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", {
5005
5050
  key: `${e.label}-${t}`,
5006
5051
  class: "w-check-list__item"
5007
- }, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", To, L(e.label), 1)]))), 128))])) : (M(), h("div", Eo, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))]));
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)])]))]));
5008
5053
  }
5009
- }), Oo = .85;
5010
- function ko(e, t, n) {
5054
+ }), Mo = .85;
5055
+ function No(e, t, n) {
5011
5056
  return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
5012
5057
  }
5013
- function Ao(e, t, n, r = Oo) {
5058
+ function Po(e, t, n, r = Mo) {
5014
5059
  if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
5015
5060
  let i = e.largura * r, a = e.altura * r;
5016
- return ko(t, i, a) ? "completo" : ko(n, i, a) ? "curto" : "oculto";
5061
+ return No(t, i, a) ? "completo" : No(n, i, a) ? "curto" : "oculto";
5017
5062
  }
5018
5063
  //#endregion
5019
5064
  //#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
5020
- var jo = { class: "w-map-select__body" }, Mo = {
5065
+ var Fo = { class: "w-map-select__body" }, Io = {
5021
5066
  key: 0,
5022
5067
  class: "w-map-select__fallback"
5023
- }, No = {
5068
+ }, Lo = {
5024
5069
  key: 1,
5025
5070
  class: "w-map-select__badge"
5026
- }, Po = { class: "w-map-select__detail-nome" }, Fo = {
5071
+ }, Ro = { class: "w-map-select__detail-nome" }, zo = {
5027
5072
  key: 0,
5028
5073
  class: "w-map-select__detail-sub"
5029
- }, Io = {
5074
+ }, Bo = {
5030
5075
  key: 0,
5031
5076
  class: "w-map-select__panel"
5032
- }, Lo = [
5077
+ }, Vo = [
5033
5078
  "aria-expanded",
5034
5079
  "aria-label",
5035
5080
  "title"
5036
- ], Ro = {
5081
+ ], Ho = {
5037
5082
  key: 0,
5038
5083
  class: "w-map-select__collapse-count"
5039
- }, zo = { class: "w-map-select__panel-head" }, Bo = { class: "w-map-select__meta" }, Vo = { class: "w-map-select__count" }, Ho = ["disabled"], Uo = { class: "w-map-select__list" }, Wo = [
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 = [
5040
5085
  "aria-pressed",
5041
5086
  "disabled",
5042
5087
  "onClick"
5043
- ], Go = { class: "w-map-select__box" }, Ko = {
5088
+ ], Yo = { class: "w-map-select__box" }, Xo = {
5044
5089
  key: 0,
5045
5090
  class: "pi pi-check"
5046
- }, qo = { class: "w-map-select__item-text" }, Jo = { class: "w-map-select__item-name" }, Yo = {
5091
+ }, Zo = { class: "w-map-select__item-text" }, Qo = { class: "w-map-select__item-name" }, $o = {
5047
5092
  key: 0,
5048
5093
  class: "w-map-select__item-sub"
5049
- }, Xo = {
5094
+ }, es = {
5050
5095
  key: 0,
5051
5096
  class: "pi pi-exclamation-circle w-map-select__item-nogeo",
5052
5097
  title: "Talhão sem contorno cadastrado"
5053
- }, Zo = {
5098
+ }, ts = {
5054
5099
  key: 1,
5055
5100
  class: "w-map-select__item-area"
5056
- }, Qo = {
5101
+ }, ns = {
5057
5102
  key: 0,
5058
5103
  class: "w-map-select__empty"
5059
- }, $o = { class: "w-map-select__area" }, es = { class: "w-map-select__area-unit" }, ts = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", ns = "O mapa não pôde ser carregado.", rs = /* @__PURE__ */ x({
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({
5060
5105
  __name: "WMapSelect",
5061
5106
  props: {
5062
5107
  modelValue: { default: () => [] },
@@ -5084,7 +5129,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5084
5129
  },
5085
5130
  badgeLabel: { default: "Satélite" },
5086
5131
  emptyMessage: { default: "Nenhum talhão encontrado" },
5087
- mapErrorMessage: { default: ts },
5132
+ mapErrorMessage: { default: as },
5088
5133
  disabled: {
5089
5134
  type: Boolean,
5090
5135
  default: !1
@@ -5122,7 +5167,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5122
5167
  type: Function,
5123
5168
  default: void 0
5124
5169
  },
5125
- labelFitScale: { default: Oo },
5170
+ labelFitScale: { default: Mo },
5126
5171
  labelFullFromZoom: { default: 13 },
5127
5172
  featureDetail: { default: "none" },
5128
5173
  detailPlacement: { default: "cursor" }
@@ -5135,7 +5180,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5135
5180
  "update:collapsed"
5136
5181
  ],
5137
5182
  setup(e, { expose: t, emit: r }) {
5138
- 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 === ts ? ns : i.mapErrorMessage), p = P(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
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);
5139
5184
  function x(e) {
5140
5185
  v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
5141
5186
  }
@@ -5317,7 +5362,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5317
5362
  if (!r || !a) return;
5318
5363
  let o = je(a);
5319
5364
  if (!o) return;
5320
- let s = Me(a), c = t ? "completo" : Ao(Le(n), Ie(o), s && s !== o ? Ie(s) : null, i.labelFitScale);
5365
+ let s = Me(a), c = t ? "completo" : Po(Le(n), Ie(o), s && s !== o ? Ie(s) : null, i.labelFitScale);
5321
5366
  c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
5322
5367
  });
5323
5368
  }
@@ -5447,7 +5492,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5447
5492
  "w-map-select--overlay": c.value,
5448
5493
  "w-map-select--collapsed": c.value && v.value && !e.readonly
5449
5494
  }])
5450
- }, [g("div", jo, [g("div", {
5495
+ }, [g("div", Fo, [g("div", {
5451
5496
  class: "w-map-select__map",
5452
5497
  style: j({ "--w-map-h": e.height })
5453
5498
  }, [
@@ -5456,7 +5501,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5456
5501
  ref: z,
5457
5502
  class: "w-map-select__canvas"
5458
5503
  }, null, 512),
5459
- W.value ? (M(), h("div", Mo, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, L(u.value), 1)])) : e.badgeLabel ? (M(), h("span", No, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(L(e.badgeLabel), 1)])) : m("", !0),
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),
5460
5505
  Y.value && e.featureDetail !== "none" ? (M(), h("div", {
5461
5506
  key: 2,
5462
5507
  class: k(["w-map-select__detail", {
@@ -5470,8 +5515,8 @@ var jo = { class: "w-map-select__body" }, Mo = {
5470
5515
  feature: Y.value,
5471
5516
  selected: E(Y.value.id),
5472
5517
  close: Ee
5473
- }, () => [g("span", Po, L(Y.value.nome), 1), Y.value.subtitulo ? (M(), h("span", Fo, L(Y.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
5474
- ], 4), e.readonly ? m("", !0) : (M(), h("div", Io, [
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, [
5475
5520
  c.value ? (M(), h("button", {
5476
5521
  key: 0,
5477
5522
  type: "button",
@@ -5480,8 +5525,8 @@ var jo = { class: "w-map-select__body" }, Mo = {
5480
5525
  "aria-label": C.value,
5481
5526
  title: C.value,
5482
5527
  onClick: S
5483
- }, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span", Ro, L(e.modelValue.length), 1)) : m("", !0)], 8, Lo)) : m("", !0),
5484
- g("div", zo, [b(R(he), null, {
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, {
5485
5530
  default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
5486
5531
  modelValue: ae.value,
5487
5532
  "onUpdate:modelValue": n[0] ||= (e) => ae.value = e,
@@ -5495,13 +5540,13 @@ var jo = { class: "w-map-select__body" }, Mo = {
5495
5540
  "aria-label"
5496
5541
  ])]),
5497
5542
  _: 1
5498
- }), g("div", Bo, [g("span", Vo, L(re.value), 1), g("button", {
5543
+ }), g("div", Wo, [g("span", Go, L(re.value), 1), g("button", {
5499
5544
  type: "button",
5500
5545
  class: "w-map-select__clear",
5501
5546
  disabled: e.disabled || !e.modelValue.length,
5502
5547
  onClick: A
5503
- }, L(e.clearLabel), 9, Ho)])]),
5504
- g("ul", Uo, [(M(!0), h(d, null, F(se.value, (n) => (M(), h("li", { key: n.id }, [I(t.$slots, "item", {
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", {
5505
5550
  feature: n,
5506
5551
  selected: E(n.id)
5507
5552
  }, () => [g("button", {
@@ -5511,11 +5556,11 @@ var jo = { class: "w-map-select__body" }, Mo = {
5511
5556
  disabled: e.disabled,
5512
5557
  onClick: (e) => D(n.id)
5513
5558
  }, [
5514
- g("span", Go, [E(n.id) ? (M(), h("i", Ko)) : m("", !0)]),
5515
- g("span", qo, [g("span", Jo, L(n.nome), 1), n.subtitulo ? (M(), h("span", Yo, L(n.subtitulo), 1)) : m("", !0)]),
5516
- n.geometria ? m("", !0) : (M(), h("i", Xo)),
5517
- n.area == null ? m("", !0) : (M(), h("span", Zo, L(ce(n)), 1))
5518
- ], 10, Wo)])]))), 128)), se.value.length ? m("", !0) : (M(), h("li", Qo, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))])
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)])]))])
5519
5564
  ]))]), l.value ? (M(), h("div", {
5520
5565
  key: 0,
5521
5566
  ref_key: "footer",
@@ -5524,13 +5569,13 @@ var jo = { class: "w-map-select__body" }, Mo = {
5524
5569
  }, [I(t.$slots, "footer", {
5525
5570
  area: N.value,
5526
5571
  features: ne.value
5527
- }, () => [g("span", $o, [
5572
+ }, () => [g("span", rs, [
5528
5573
  y(L(e.areaLabel) + " ", 1),
5529
5574
  g("strong", null, L(ue.value), 1),
5530
- g("span", es, L(e.areaSuffix), 1)
5575
+ g("span", is, L(e.areaSuffix), 1)
5531
5576
  ])])], 512)) : m("", !0)], 2));
5532
5577
  }
5533
- }), is = {
5578
+ }), cs = {
5534
5579
  nota: {
5535
5580
  tone: "nota",
5536
5581
  label: "Nota",
@@ -5576,7 +5621,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
5576
5621
  label: "Em aberto",
5577
5622
  icon: "pi pi-question-circle"
5578
5623
  }
5579
- }, as = {
5624
+ }, ls = {
5580
5625
  note: "nota",
5581
5626
  info: "nota",
5582
5627
  observacao: "nota",
@@ -5603,19 +5648,19 @@ var jo = { class: "w-map-select__body" }, Mo = {
5603
5648
  help: "pergunta",
5604
5649
  duvida: "pergunta"
5605
5650
  };
5606
- function os(e) {
5651
+ function us(e) {
5607
5652
  return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
5608
5653
  }
5609
- function ss(e) {
5610
- let t = os(e);
5611
- return is[t] ?? is[as[t]] ?? null;
5654
+ function ds(e) {
5655
+ let t = us(e);
5656
+ return cs[t] ?? cs[ls[t]] ?? null;
5612
5657
  }
5613
- var cs = new Ne().utils.escapeHtml;
5614
- function ls(e, t) {
5658
+ var fs = new Ne().utils.escapeHtml;
5659
+ function ps(e, t) {
5615
5660
  let n = t?.trim() || e.label;
5616
- return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${cs(n)}</p><div class="md-alert__body">`;
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">`;
5617
5662
  }
5618
- var us = "</div></div>", ds = {
5663
+ var ms = "</div></div>", hs = {
5619
5664
  bash: () => import("highlight.js/lib/languages/bash"),
5620
5665
  python: () => import("highlight.js/lib/languages/python"),
5621
5666
  javascript: () => import("highlight.js/lib/languages/javascript"),
@@ -5629,7 +5674,7 @@ var us = "</div></div>", ds = {
5629
5674
  ini: () => import("highlight.js/lib/languages/ini"),
5630
5675
  markdown: () => import("highlight.js/lib/languages/markdown"),
5631
5676
  dockerfile: () => import("highlight.js/lib/languages/dockerfile")
5632
- }, fs = {
5677
+ }, gs = {
5633
5678
  sh: "bash",
5634
5679
  shell: "bash",
5635
5680
  zsh: "bash",
@@ -5657,28 +5702,28 @@ var us = "</div></div>", ds = {
5657
5702
  postgres: "sql",
5658
5703
  postgresql: "sql",
5659
5704
  docker: "dockerfile"
5660
- }, ps = null, ms = null;
5661
- function hs() {
5662
- return ps !== null;
5705
+ }, _s = null, vs = null;
5706
+ function ys() {
5707
+ return _s !== null;
5663
5708
  }
5664
- async function gs() {
5665
- if (ps || ms) return ms ?? void 0;
5666
- ms = (async () => {
5709
+ async function bs() {
5710
+ if (_s || vs) return vs ?? void 0;
5711
+ vs = (async () => {
5667
5712
  let e = (await import("highlight.js/lib/core")).default;
5668
- await Promise.all(Object.entries(ds).map(async ([t, n]) => {
5713
+ await Promise.all(Object.entries(hs).map(async ([t, n]) => {
5669
5714
  let r = await n();
5670
5715
  e.registerLanguage(t, r.default);
5671
- })), ps = (t, n) => e.highlight(t, { language: n }).value;
5672
- })(), await ms;
5716
+ })), _s = (t, n) => e.highlight(t, { language: n }).value;
5717
+ })(), await vs;
5673
5718
  }
5674
- function _s(e) {
5675
- let t = os(e);
5676
- return fs[t] ?? t;
5719
+ function xs(e) {
5720
+ let t = us(e);
5721
+ return gs[t] ?? t;
5677
5722
  }
5678
- function vs(e) {
5679
- return os(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
5723
+ function Ss(e) {
5724
+ return us(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
5680
5725
  }
5681
- var ys = /* @__PURE__ */ new Set([
5726
+ var Cs = /* @__PURE__ */ new Set([
5682
5727
  "detalhes",
5683
5728
  "details",
5684
5729
  "passos",
@@ -5689,8 +5734,8 @@ var ys = /* @__PURE__ */ new Set([
5689
5734
  "tabs",
5690
5735
  "aba",
5691
5736
  "tab"
5692
- ]), bs = /^\s*([^\s]+)\s*(.*)$/;
5693
- function xs() {
5737
+ ]), ws = /^\s*([^\s]+)\s*(.*)$/;
5738
+ function Ts() {
5694
5739
  let e = new Ne({
5695
5740
  html: !1,
5696
5741
  linkify: !0,
@@ -5702,16 +5747,16 @@ function xs() {
5702
5747
  3,
5703
5748
  4
5704
5749
  ],
5705
- slugify: vs,
5750
+ slugify: Ss,
5706
5751
  permalink: Z.permalink.linkInsideHeader({
5707
5752
  symbol: "",
5708
5753
  class: "md-anchor",
5709
5754
  placement: "after",
5710
5755
  ariaHidden: !0
5711
5756
  })
5712
- }), Ss(e), ws(e), Ts(e), Es(e), Ds(e), Os(e), ks(e), e;
5757
+ }), Es(e), Os(e), ks(e), As(e), js(e), Ms(e), Ns(e), e;
5713
5758
  }
5714
- function Ss(e) {
5759
+ function Es(e) {
5715
5760
  e.core.ruler.after("block", "lz_alerta", (e) => {
5716
5761
  let t = e.tokens;
5717
5762
  for (let e = 0; e < t.length; e += 1) {
@@ -5721,9 +5766,9 @@ function Ss(e) {
5721
5766
  if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
5722
5767
  let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
5723
5768
  if (!a) continue;
5724
- let o = ss(a[1]);
5769
+ let o = ds(a[1]);
5725
5770
  if (!o) continue;
5726
- let s = Cs(t, e);
5771
+ let s = Ds(t, e);
5727
5772
  s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
5728
5773
  spec: o,
5729
5774
  titulo: a[2]
@@ -5732,10 +5777,10 @@ function Ss(e) {
5732
5777
  return !0;
5733
5778
  }), e.renderer.rules.lz_alerta_open = (e, t) => {
5734
5779
  let n = e[t].meta;
5735
- return ls(n.spec, n.titulo);
5736
- }, e.renderer.rules.lz_alerta_close = () => us;
5780
+ return ps(n.spec, n.titulo);
5781
+ }, e.renderer.rules.lz_alerta_close = () => ms;
5737
5782
  }
5738
- function Cs(e, t) {
5783
+ function Ds(e, t) {
5739
5784
  let n = 0;
5740
5785
  for (let r = t; r < e.length; r += 1) {
5741
5786
  let t = e[r];
@@ -5744,37 +5789,37 @@ function Cs(e, t) {
5744
5789
  }
5745
5790
  return null;
5746
5791
  }
5747
- function ws(e) {
5792
+ function Os(e) {
5748
5793
  let t = [];
5749
5794
  e.use(Q, "lz", {
5750
5795
  validate: (e) => {
5751
- let t = bs.exec(e);
5796
+ let t = ws.exec(e);
5752
5797
  if (!t) return !1;
5753
- let n = os(t[1]);
5754
- return ys.has(n) || ss(n) !== null;
5798
+ let n = us(t[1]);
5799
+ return Cs.has(n) || ds(n) !== null;
5755
5800
  },
5756
5801
  render: (e, n) => {
5757
5802
  let r = e[n];
5758
5803
  if (r.nesting !== 1) {
5759
5804
  let e = t.pop();
5760
- return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${us}\n` : "</div>\n";
5805
+ return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${ms}\n` : "</div>\n";
5761
5806
  }
5762
- let i = bs.exec(r.info) ?? [
5807
+ let i = ws.exec(r.info) ?? [
5763
5808
  "",
5764
5809
  "",
5765
5810
  ""
5766
- ], a = os(i[1]), o = i[2]?.trim();
5767
- if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${cs(o || "Detalhes")}</summary><div class="md-details__body">`;
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">`;
5768
5813
  if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
5769
5814
  if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
5770
5815
  if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
5771
- if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${cs(o || "Aba")}">`;
5772
- let s = ss(a);
5773
- return s ? (t.push("alerta"), ls(s, o)) : (t.push("bloco"), "<div>");
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>");
5774
5819
  }
5775
5820
  });
5776
5821
  }
5777
- function Ts(e) {
5822
+ function ks(e) {
5778
5823
  e.core.ruler.after("inline", "lz_tarefas", (e) => {
5779
5824
  let t = e.tokens;
5780
5825
  for (let n = 2; n < t.length; n += 1) {
@@ -5791,26 +5836,26 @@ function Ts(e) {
5791
5836
  return !0;
5792
5837
  });
5793
5838
  }
5794
- function Es(e) {
5839
+ function As(e) {
5795
5840
  e.renderer.rules.fence = (e, t) => {
5796
- let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = _s(i), o = /title="([^"]*)"/.exec(r)?.[1];
5797
- if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${cs(n.content)}</pre>` + (o ? `<figcaption>${cs(o)}</figcaption>` : "") + "</figure>\n";
5798
- let s = ps && ds[a] ? ps(n.content, a) : cs(n.content);
5799
- return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${cs(o ?? "")}</span><span class="md-code__lang">${cs(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${cs(a)}">${s}</code></pre></div>\n`;
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`;
5800
5845
  };
5801
5846
  }
5802
- function Ds(e) {
5847
+ function js(e) {
5803
5848
  let t = e.renderer.rules.table_open;
5804
5849
  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>`;
5805
5850
  }
5806
- function Os(e) {
5851
+ function Ms(e) {
5807
5852
  let t = e.renderer.rules.link_open;
5808
5853
  e.renderer.rules.link_open = (e, n, r, i, a) => {
5809
5854
  let o = String(e[n].attrGet("href") ?? "");
5810
5855
  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);
5811
5856
  };
5812
5857
  }
5813
- function ks(e) {
5858
+ function Ns(e) {
5814
5859
  e.core.ruler.after("inline", "lz_figuras", (e) => {
5815
5860
  let t = e.tokens;
5816
5861
  for (let e = 1; e < t.length - 1; e += 1) {
@@ -5826,17 +5871,17 @@ function ks(e) {
5826
5871
  let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
5827
5872
  if (!e[n].meta?.figura) return o;
5828
5873
  let s = e[n].content?.trim();
5829
- return s ? `${o}<figcaption>${cs(s)}</figcaption>` : o;
5874
+ return s ? `${o}<figcaption>${fs(s)}</figcaption>` : o;
5830
5875
  };
5831
5876
  }
5832
- var As = null;
5833
- function js() {
5834
- return As ||= xs(), As;
5877
+ var Ps = null;
5878
+ function Fs() {
5879
+ return Ps ||= Ts(), Ps;
5835
5880
  }
5836
- function Ms(e) {
5881
+ function Is(e) {
5837
5882
  return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
5838
5883
  }
5839
- function Ns(e) {
5884
+ function Ls(e) {
5840
5885
  let t = [];
5841
5886
  for (let n = 0; n < e.length; n += 1) {
5842
5887
  let r = e[n];
@@ -5846,13 +5891,13 @@ function Ns(e) {
5846
5891
  let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
5847
5892
  !a || o?.type !== "inline" || t.push({
5848
5893
  id: a,
5849
- text: Ms(o),
5894
+ text: Is(o),
5850
5895
  level: i
5851
5896
  });
5852
5897
  }
5853
5898
  return t;
5854
5899
  }
5855
- function Ps(e) {
5900
+ function Rs(e) {
5856
5901
  return Pe.sanitize(e, { ADD_ATTR: [
5857
5902
  "target",
5858
5903
  "open",
@@ -5860,16 +5905,16 @@ function Ps(e) {
5860
5905
  "disabled"
5861
5906
  ] });
5862
5907
  }
5863
- function Fs(e) {
5864
- let t = js(), n = {}, r = t.parse(e ?? "", n);
5908
+ function zs(e) {
5909
+ let t = Fs(), n = {}, r = t.parse(e ?? "", n);
5865
5910
  return {
5866
- html: Ps(t.renderer.render(r, t.options, n)),
5867
- headings: Ns(r)
5911
+ html: Rs(t.renderer.render(r, t.options, n)),
5912
+ headings: Ls(r)
5868
5913
  };
5869
5914
  }
5870
5915
  //#endregion
5871
5916
  //#region src/utils/markdownEnhance.ts
5872
- function Is(e) {
5917
+ function Bs(e) {
5873
5918
  e.querySelectorAll("[data-md-code]").forEach((e) => {
5874
5919
  if (e.dataset.mdPronto) return;
5875
5920
  e.dataset.mdPronto = "1";
@@ -5884,7 +5929,7 @@ function Is(e) {
5884
5929
  }), e.appendChild(t);
5885
5930
  });
5886
5931
  }
5887
- function Ls(e) {
5932
+ function Vs(e) {
5888
5933
  let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
5889
5934
  t.forEach((e) => {
5890
5935
  if (n.has(e)) return;
@@ -5895,8 +5940,8 @@ function Ls(e) {
5895
5940
  i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
5896
5941
  });
5897
5942
  }
5898
- function Rs(e) {
5899
- Ls(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
5943
+ function Hs(e) {
5944
+ Vs(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
5900
5945
  if (e.dataset.mdPronto) return;
5901
5946
  let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
5902
5947
  if (!n.length) return;
@@ -5918,11 +5963,11 @@ function Rs(e) {
5918
5963
  e.prepend(r), a(0);
5919
5964
  });
5920
5965
  }
5921
- var zs = null, Bs = 0;
5922
- async function Vs() {
5923
- return zs ||= import("mermaid").then((e) => e.default), zs;
5966
+ var Us = null, Ws = 0;
5967
+ async function Gs() {
5968
+ return Us ||= import("mermaid").then((e) => e.default), Us;
5924
5969
  }
5925
- var Hs = /* @__PURE__ */ new Set([
5970
+ var Ks = /* @__PURE__ */ new Set([
5926
5971
  "script",
5927
5972
  "iframe",
5928
5973
  "object",
@@ -5938,59 +5983,59 @@ var Hs = /* @__PURE__ */ new Set([
5938
5983
  "animate",
5939
5984
  "set"
5940
5985
  ]);
5941
- function Us(e) {
5986
+ function qs(e) {
5942
5987
  for (let t of Array.from(e.attributes)) {
5943
5988
  let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
5944
5989
  (n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
5945
5990
  }
5946
- for (let t of Array.from(e.children)) Hs.has(t.localName.toLowerCase()) ? t.remove() : Us(t);
5991
+ for (let t of Array.from(e.children)) Ks.has(t.localName.toLowerCase()) ? t.remove() : qs(t);
5947
5992
  }
5948
- function Ws(e) {
5993
+ function Js(e) {
5949
5994
  let t = new DOMParser().parseFromString(e, "image/svg+xml");
5950
5995
  if (t.querySelector("parsererror")) return null;
5951
5996
  let n = t.documentElement;
5952
- return n.localName.toLowerCase() === "svg" ? (Us(n), n) : null;
5997
+ return n.localName.toLowerCase() === "svg" ? (qs(n), n) : null;
5953
5998
  }
5954
- function Gs(e, t, n) {
5999
+ function Ys(e, t, n) {
5955
6000
  return e.getPropertyValue(t).trim() || n;
5956
6001
  }
5957
- function Ks(e) {
5958
- let t = getComputedStyle(document.documentElement), n = Gs(t, "--surface", "#ffffff"), r = Gs(t, "--fg", "#141a22"), i = Gs(t, "--primary", "#1f5092"), a = Gs(t, "--primary-soft", "#eef4fb"), o = Gs(t, "--border-strong", "#cdd6e2");
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");
5959
6004
  e.initialize({
5960
6005
  startOnLoad: !1,
5961
6006
  securityLevel: "strict",
5962
6007
  theme: "base",
5963
- fontFamily: Gs(t, "--font-sans", "inherit"),
6008
+ fontFamily: Ys(t, "--font-sans", "inherit"),
5964
6009
  flowchart: { useMaxWidth: !0 },
5965
6010
  themeVariables: {
5966
6011
  background: n,
5967
6012
  primaryColor: a,
5968
6013
  primaryTextColor: r,
5969
6014
  primaryBorderColor: i,
5970
- secondaryColor: Gs(t, "--surface-3", "#eef2f7"),
5971
- tertiaryColor: Gs(t, "--surface-2", "#f8fafc"),
6015
+ secondaryColor: Ys(t, "--surface-3", "#eef2f7"),
6016
+ tertiaryColor: Ys(t, "--surface-2", "#f8fafc"),
5972
6017
  lineColor: o,
5973
6018
  textColor: r,
5974
6019
  mainBkg: a,
5975
6020
  nodeBorder: i,
5976
- clusterBkg: Gs(t, "--surface-2", "#f8fafc"),
6021
+ clusterBkg: Ys(t, "--surface-2", "#f8fafc"),
5977
6022
  clusterBorder: o,
5978
6023
  fontSize: "13px"
5979
6024
  }
5980
6025
  });
5981
6026
  }
5982
- async function qs(e, t = !1) {
6027
+ async function Zs(e, t = !1) {
5983
6028
  let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
5984
6029
  if (!n.length) return;
5985
- let r = await Vs();
5986
- Ks(r);
6030
+ let r = await Gs();
6031
+ Xs(r);
5987
6032
  for (let e of n) {
5988
6033
  let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
5989
6034
  if (t.trim()) {
5990
6035
  e.querySelector(".md-mermaid__svg")?.remove();
5991
6036
  try {
5992
- Bs += 1;
5993
- let { svg: n } = await r.render(`md-diagrama-${Bs}`, t), i = Ws(n);
6037
+ Ws += 1;
6038
+ let { svg: n } = await r.render(`md-diagrama-${Ws}`, t), i = Js(n);
5994
6039
  if (!i) {
5995
6040
  e.dataset.mdEstado = "erro";
5996
6041
  continue;
@@ -6003,15 +6048,15 @@ async function qs(e, t = !1) {
6003
6048
  }
6004
6049
  }
6005
6050
  }
6006
- async function Js(e) {
6007
- e && (Is(e), Rs(e), await qs(e));
6051
+ async function Qs(e) {
6052
+ e && (Bs(e), Hs(e), await Zs(e));
6008
6053
  }
6009
6054
  //#endregion
6010
6055
  //#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
6011
- var Ys = {
6056
+ var $s = {
6012
6057
  key: 0,
6013
6058
  class: "w-markdown-view w-markdown-view--empty"
6014
- }, Xs = ["innerHTML"], Zs = /* @__PURE__ */ x({
6059
+ }, ec = ["innerHTML"], tc = /* @__PURE__ */ x({
6015
6060
  __name: "WMarkdownView",
6016
6061
  props: {
6017
6062
  source: {},
@@ -6019,42 +6064,42 @@ var Ys = {
6019
6064
  },
6020
6065
  emits: ["headings"],
6021
6066
  setup(e, { emit: t }) {
6022
- let n = e, r = t, i = P(null), a = P(hs()), o = f(() => (a.value, Fs(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
6023
- B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() => Js(i.value)));
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)));
6024
6069
  let l = null;
6025
6070
  function u() {
6026
- typeof MutationObserver > "u" || (l = new MutationObserver(() => void qs(i.value, !0)), l.observe(document.documentElement, {
6071
+ typeof MutationObserver > "u" || (l = new MutationObserver(() => void Zs(i.value, !0)), l.observe(document.documentElement, {
6027
6072
  attributes: !0,
6028
6073
  attributeFilter: ["class"]
6029
6074
  }));
6030
6075
  }
6031
6076
  return te(async () => {
6032
- await O(), await Js(i.value), u(), a.value ||= (await gs(), !0);
6033
- }), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div", Ys, L(e.emptyText), 1)) : (M(), h("div", {
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", {
6034
6079
  key: 1,
6035
6080
  ref_key: "raiz",
6036
6081
  ref: i,
6037
6082
  class: "w-markdown-view",
6038
6083
  innerHTML: s.value
6039
- }, null, 8, Xs));
6084
+ }, null, 8, ec));
6040
6085
  }
6041
- }), Qs = {
6086
+ }), nc = {
6042
6087
  class: "w-markdown-editor__toolbar",
6043
6088
  role: "toolbar",
6044
6089
  "aria-label": "Formatação markdown"
6045
- }, $s = [
6090
+ }, rc = [
6046
6091
  "aria-label",
6047
6092
  "title",
6048
6093
  "disabled",
6049
6094
  "onClick"
6050
- ], ec = ["aria-pressed"], tc = ["aria-pressed"], nc = {
6095
+ ], ic = ["aria-pressed"], ac = ["aria-pressed"], oc = {
6051
6096
  key: 0,
6052
6097
  class: "w-markdown-editor__ajuda"
6053
- }, rc = [
6098
+ }, sc = [
6054
6099
  "value",
6055
6100
  "disabled",
6056
6101
  "placeholder"
6057
- ], ic = /* @__PURE__ */ x({
6102
+ ], cc = /* @__PURE__ */ x({
6058
6103
  __name: "WMarkdownEditor",
6059
6104
  props: {
6060
6105
  modelValue: {},
@@ -6236,7 +6281,7 @@ var Ys = {
6236
6281
  }
6237
6282
  ];
6238
6283
  return (t, n) => (M(), h("div", { class: k(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
6239
- g("div", Qs, [
6284
+ g("div", nc, [
6240
6285
  (M(), h(d, null, F(ie, (t) => g("button", {
6241
6286
  key: t.label,
6242
6287
  type: "button",
@@ -6256,7 +6301,7 @@ var Ys = {
6256
6301
  "w-markdown-editor__glyph--italic": t.glyph === "I"
6257
6302
  }]),
6258
6303
  "aria-hidden": "true"
6259
- }, L(t.glyph), 3))], 8, $s)), 64)),
6304
+ }, L(t.glyph), 3))], 8, rc)), 64)),
6260
6305
  g("button", {
6261
6306
  type: "button",
6262
6307
  class: k(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
@@ -6267,7 +6312,7 @@ var Ys = {
6267
6312
  }, [...n[1] ||= [g("i", {
6268
6313
  class: "pi pi-question-circle",
6269
6314
  "aria-hidden": "true"
6270
- }, null, -1)]], 10, ec),
6315
+ }, null, -1)]], 10, ic),
6271
6316
  o.value ? m("", !0) : (M(), h("button", {
6272
6317
  key: 0,
6273
6318
  type: "button",
@@ -6279,9 +6324,9 @@ var Ys = {
6279
6324
  }, [g("i", {
6280
6325
  class: k(a.value ? "pi pi-pencil" : "pi pi-eye"),
6281
6326
  "aria-hidden": "true"
6282
- }, null, 2)], 10, tc))
6327
+ }, null, 2)], 10, ac))
6283
6328
  ]),
6284
- N.value ? (M(), h("dl", nc, [(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),
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),
6285
6330
  g("div", {
6286
6331
  class: "w-markdown-editor__body",
6287
6332
  style: j({
@@ -6298,7 +6343,7 @@ var Ys = {
6298
6343
  placeholder: e.placeholder,
6299
6344
  spellcheck: "false",
6300
6345
  onInput: l
6301
- }, null, 40, rc)) : m("", !0), c.value ? (M(), p(Zs, {
6346
+ }, null, 40, sc)) : m("", !0), c.value ? (M(), p(tc, {
6302
6347
  key: 1,
6303
6348
  class: "w-markdown-editor__preview",
6304
6349
  source: e.modelValue,
@@ -6306,28 +6351,28 @@ var Ys = {
6306
6351
  }, null, 8, ["source"])) : m("", !0)], 4)
6307
6352
  ], 2));
6308
6353
  }
6309
- }), ac = {
6354
+ }), lc = {
6310
6355
  key: 0,
6311
6356
  class: "w-md-toc",
6312
6357
  "aria-label": "Índice do documento"
6313
- }, oc = { class: "w-md-toc__titulo" }, sc = {
6358
+ }, uc = { class: "w-md-toc__titulo" }, dc = {
6314
6359
  key: 0,
6315
6360
  class: "w-md-toc__busca"
6316
- }, cc = { class: "w-md-toc__lista" }, lc = [
6361
+ }, fc = { class: "w-md-toc__lista" }, pc = [
6317
6362
  "aria-expanded",
6318
6363
  "aria-label",
6319
6364
  "onClick"
6320
- ], uc = {
6365
+ ], mc = {
6321
6366
  key: 1,
6322
6367
  class: "w-md-toc__chevron w-md-toc__chevron--vazio",
6323
6368
  "aria-hidden": "true"
6324
- }, dc = ["href", "onClick"], fc = {
6369
+ }, hc = ["href", "onClick"], gc = {
6325
6370
  key: 0,
6326
6371
  class: "w-md-toc__lista"
6327
- }, pc = ["href", "onClick"], mc = {
6372
+ }, _c = ["href", "onClick"], vc = {
6328
6373
  key: 0,
6329
6374
  class: "w-md-toc__vazio"
6330
- }, hc = /* @__PURE__ */ x({
6375
+ }, yc = /* @__PURE__ */ x({
6331
6376
  __name: "WMarkdownToc",
6332
6377
  props: {
6333
6378
  headings: {},
@@ -6383,9 +6428,9 @@ var Ys = {
6383
6428
  block: "start"
6384
6429
  }));
6385
6430
  }
6386
- return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav", ac, [
6387
- g("p", oc, L(e.title), 1),
6388
- e.searchable ? (M(), h("div", sc, [i[1] ||= g("i", {
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", {
6389
6434
  class: "pi pi-search",
6390
6435
  "aria-hidden": "true"
6391
6436
  }, null, -1), H(g("input", {
@@ -6397,7 +6442,7 @@ var Ys = {
6397
6442
  g("div", {
6398
6443
  class: "w-md-toc__corpo",
6399
6444
  style: j({ maxHeight: e.maxHeight })
6400
- }, [g("ul", cc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
6445
+ }, [g("ul", fc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
6401
6446
  key: e.titulo.id,
6402
6447
  class: "w-md-toc__grupo"
6403
6448
  }, [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", {
@@ -6410,19 +6455,19 @@ var Ys = {
6410
6455
  }, [g("i", {
6411
6456
  class: k(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
6412
6457
  "aria-hidden": "true"
6413
- }, null, 2)], 8, lc)) : (M(), h("span", uc)), g("a", {
6458
+ }, null, 2)], 8, pc)) : (M(), h("span", mc)), g("a", {
6414
6459
  href: `#${e.titulo.id}`,
6415
6460
  onClick: W((t) => v(e.titulo.id), ["prevent"])
6416
- }, L(e.titulo.text), 9, dc)], 2), u(e) ? (M(), h("ul", fc, [(M(!0), h(d, null, F(e.filhos, (e) => (M(), h("li", {
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", {
6417
6462
  key: e.id,
6418
6463
  class: k(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
6419
6464
  }, [g("a", {
6420
6465
  href: `#${e.id}`,
6421
6466
  onClick: W((t) => v(e.id), ["prevent"])
6422
- }, L(e.text), 9, pc)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (M(), h("p", mc, "Nenhuma seção encontrada")) : m("", !0)], 4)
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)
6423
6468
  ])) : m("", !0);
6424
6469
  }
6425
- }), gc = /* @__PURE__ */ x({
6470
+ }), bc = /* @__PURE__ */ x({
6426
6471
  name: "WDialog",
6427
6472
  inheritAttrs: !1,
6428
6473
  __name: "WDialog",
@@ -6433,16 +6478,16 @@ var Ys = {
6433
6478
  fn: V((t) => [I(e.$slots, n, A(S(t ?? {})))])
6434
6479
  }))]), 1040, ["append-to"]));
6435
6480
  }
6436
- }), _c = ["aria-label"], vc = [
6481
+ }), xc = ["aria-label"], Sc = [
6437
6482
  "aria-selected",
6438
6483
  "tabindex",
6439
6484
  "disabled",
6440
6485
  "onClick",
6441
6486
  "onKeydown"
6442
- ], yc = {
6487
+ ], Cc = {
6443
6488
  key: 1,
6444
6489
  class: "w-tab-bar__badge"
6445
- }, bc = /* @__PURE__ */ x({
6490
+ }, wc = /* @__PURE__ */ x({
6446
6491
  __name: "WTabBar",
6447
6492
  props: {
6448
6493
  modelValue: {},
@@ -6491,20 +6536,20 @@ var Ys = {
6491
6536
  "aria-hidden": "true"
6492
6537
  }, null, 2)) : m("", !0),
6493
6538
  g("span", null, L(t.label), 1),
6494
- t.badge !== void 0 && t.badge !== null ? (M(), h("span", yc, L(t.badge), 1)) : m("", !0)
6495
- ], 42, vc))), 128))], 8, _c));
6539
+ t.badge !== void 0 && t.badge !== null ? (M(), h("span", Cc, L(t.badge), 1)) : m("", !0)
6540
+ ], 42, Sc))), 128))], 8, xc));
6496
6541
  }
6497
- }), xc = { class: "w-tab-nav" }, Sc = ["aria-label"], Cc = [
6542
+ }), Tc = { class: "w-tab-nav" }, Ec = ["aria-label"], Dc = [
6498
6543
  "tabindex",
6499
6544
  "aria-selected",
6500
6545
  "onClick",
6501
6546
  "onAuxclick",
6502
6547
  "onContextmenu",
6503
6548
  "onKeydown"
6504
- ], wc = ["title"], Tc = ["aria-label", "onClick"], Ec = ["aria-label", "onClick"], Dc = {
6549
+ ], Oc = ["title"], kc = ["aria-label", "onClick"], Ac = ["aria-label", "onClick"], jc = {
6505
6550
  key: 0,
6506
6551
  class: "w-tab-nav__actions"
6507
- }, Oc = /* @__PURE__ */ x({
6552
+ }, Mc = /* @__PURE__ */ x({
6508
6553
  __name: "WTabNav",
6509
6554
  props: {
6510
6555
  tabs: {},
@@ -6601,7 +6646,7 @@ var Ys = {
6601
6646
  let t = i.value[e]?.group;
6602
6647
  return !!t && t !== i.value[e - 1]?.group;
6603
6648
  }
6604
- return (t, n) => (M(), h("div", xc, [
6649
+ return (t, n) => (M(), h("div", Tc, [
6605
6650
  g("div", {
6606
6651
  ref_key: "trilho",
6607
6652
  ref: s,
@@ -6643,7 +6688,7 @@ var Ys = {
6643
6688
  }, null, 2)) : m("", !0), g("span", {
6644
6689
  class: "w-tab-nav__title",
6645
6690
  title: e.title
6646
- }, L(e.title), 9, wc)]),
6691
+ }, L(e.title), 9, Oc)]),
6647
6692
  g("button", {
6648
6693
  type: "button",
6649
6694
  class: "w-tab-nav__menu",
@@ -6653,7 +6698,7 @@ var Ys = {
6653
6698
  }, [...n[0] ||= [g("i", {
6654
6699
  class: "pi pi-ellipsis-v",
6655
6700
  "aria-hidden": "true"
6656
- }, null, -1)]], 8, Tc),
6701
+ }, null, -1)]], 8, kc),
6657
6702
  e.closable ? (M(), h("button", {
6658
6703
  key: 0,
6659
6704
  type: "button",
@@ -6664,9 +6709,9 @@ var Ys = {
6664
6709
  }, [...n[1] ||= [g("i", {
6665
6710
  class: "pi pi-times",
6666
6711
  "aria-hidden": "true"
6667
- }, null, -1)]], 8, Ec)) : m("", !0)
6668
- ], 46, Cc)], 64))), 128))], 8, Sc),
6669
- t.$slots.actions ? (M(), h("div", Dc, [I(t.$slots, "actions")])) : m("", !0),
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),
6670
6715
  b(R(ve), {
6671
6716
  ref_key: "menu",
6672
6717
  ref: _,
@@ -6674,7 +6719,7 @@ var Ys = {
6674
6719
  }, null, 8, ["model"])
6675
6720
  ]));
6676
6721
  }
6677
- }), kc = x({
6722
+ }), Nc = x({
6678
6723
  name: "WTabPane",
6679
6724
  props: {
6680
6725
  tab: {
@@ -6720,7 +6765,7 @@ var Ys = {
6720
6765
  key: e.tab.remount
6721
6766
  }) : null;
6722
6767
  }
6723
- }), Ac = { class: "w-tab-viewport" }, jc = { class: "w-tab-viewport__scroll" }, Mc = /* @__PURE__ */ x({
6768
+ }), Pc = { class: "w-tab-viewport" }, Fc = { class: "w-tab-viewport__scroll" }, Ic = /* @__PURE__ */ x({
6724
6769
  __name: "WTabViewport",
6725
6770
  props: { tabs: {} },
6726
6771
  setup(e) {
@@ -6740,12 +6785,12 @@ var Ys = {
6740
6785
  return B(r, (e) => {
6741
6786
  let t = new Set(e.map((e) => e.key));
6742
6787
  for (let e of i.keys()) t.has(e) || i.delete(e);
6743
- }), (t, i) => (M(), h("div", Ac, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
6788
+ }), (t, i) => (M(), h("div", Pc, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
6744
6789
  key: `${t.key}#${t.remount}`,
6745
6790
  ref_for: !0,
6746
6791
  ref: (e) => o(t.key, e),
6747
6792
  class: "w-tab-viewport__pane"
6748
- }, [g("div", jc, [b(R(kc), {
6793
+ }, [g("div", Fc, [b(R(Nc), {
6749
6794
  tab: t,
6750
6795
  api: e.tabs,
6751
6796
  active: t.key === n.value,
@@ -6757,26 +6802,26 @@ var Ys = {
6757
6802
  "host-el"
6758
6803
  ])])])), [[z, t.key === n.value]])), 128))]));
6759
6804
  }
6760
- }), Nc = ["aria-busy"], Pc = { class: "w-kanban-board__header" }, Fc = { class: "w-kanban-board__title" }, Ic = { class: "w-kanban-board__count" }, Lc = [
6805
+ }), Lc = ["aria-busy"], Rc = { class: "w-kanban-board__header" }, zc = { class: "w-kanban-board__title" }, Bc = { class: "w-kanban-board__count" }, Vc = [
6761
6806
  "aria-label",
6762
6807
  "onDragover",
6763
6808
  "onDragleave",
6764
6809
  "onDrop"
6765
- ], Rc = {
6810
+ ], Hc = {
6766
6811
  key: 0,
6767
6812
  class: "w-kanban-board__indicator"
6768
- }, zc = [
6813
+ }, Uc = [
6769
6814
  "draggable",
6770
6815
  "onDragstart",
6771
6816
  "onClick",
6772
6817
  "onKeydown"
6773
- ], Bc = { class: "w-kanban-board__card-fallback" }, Vc = {
6818
+ ], Wc = { class: "w-kanban-board__card-fallback" }, Gc = {
6774
6819
  key: 0,
6775
6820
  class: "w-kanban-board__indicator"
6776
- }, Hc = {
6821
+ }, Kc = {
6777
6822
  key: 1,
6778
6823
  class: "w-kanban-board__empty"
6779
- }, Uc = /* @__PURE__ */ x({
6824
+ }, qc = /* @__PURE__ */ x({
6780
6825
  __name: "WKanbanBoard",
6781
6826
  props: {
6782
6827
  columns: {},
@@ -6879,7 +6924,7 @@ var Ys = {
6879
6924
  key: r.value,
6880
6925
  class: k(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
6881
6926
  style: j(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
6882
- }, [g("header", Pc, [I(t.$slots, "column-header", { column: r }, () => [g("span", Fc, L(r.label), 1), g("span", Ic, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), g("div", {
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", {
6883
6928
  ref_for: !0,
6884
6929
  ref: (e) => s(r.value, e),
6885
6930
  class: "w-kanban-board__list",
@@ -6893,7 +6938,7 @@ var Ys = {
6893
6938
  onDragleave: (e) => b(r, e),
6894
6939
  onDrop: (e) => x(r, e)
6895
6940
  }, [
6896
- (M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div", Rc)) : m("", !0), g("div", {
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", {
6897
6942
  class: k(["w-kanban-board__card", {
6898
6943
  "w-kanban-board__card--dragging": f(e),
6899
6944
  "w-kanban-board__card--static": !u(e)
@@ -6908,13 +6953,13 @@ var Ys = {
6908
6953
  }, [I(t.$slots, "card", {
6909
6954
  item: e,
6910
6955
  column: r
6911
- }, () => [g("span", Bc, L(l(e)), 1)])], 42, zc)], 64))), 128)),
6912
- T(r, r.items.length) ? (M(), h("div", Vc)) : m("", !0),
6913
- r.items.length ? m("", !0) : (M(), h("div", Hc, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
6914
- ], 44, Lc)], 6))), 128))], 10, Nc));
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));
6915
6960
  }
6916
6961
  });
6917
6962
  //#endregion
6918
- export { pi as A, Gt as B, Wi as C, Mi as D, ji as E, zn as F, mt as G, Nt as H, Rn as I, Je as J, vt as K, Fn as L, oi as M, Jr as N, Pi as O, Sr as P, Nn as R, Yi as S, Li as T, kt as U, Pt as V, _t as W, ja as _, gc as a, da as b, Zs as c, yo as d, Ya as f, Ra as g, Ha as h, bc as i, si as j, Di as k, rs as l, qa as m, Mc as n, hc as o, Ja as p, ht as q, Oc as r, ic as s, Uc as t, Do as u, Ca as v, Ri as w, na as x, Sa as y, on as z };
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 };
6919
6964
 
6920
- //# sourceMappingURL=components-IFeCNSdg.js.map
6965
+ //# sourceMappingURL=components-BiiT1GKD.js.map