@adyen/bento-vue2 1.58.0 → 1.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/assets/accordion-item.css +1 -1
  2. package/dist/assets/action-bar.css +1 -1
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/calendar.css +1 -1
  5. package/dist/assets/card.css +1 -1
  6. package/dist/assets/data-grid.css +1 -1
  7. package/dist/assets/date-range-picker.css +1 -1
  8. package/dist/assets/dialog-page.css +1 -1
  9. package/dist/assets/file-uploader.css +1 -1
  10. package/dist/assets/filter-bar.css +1 -1
  11. package/dist/assets/inspector.css +1 -1
  12. package/dist/assets/menu.css +1 -1
  13. package/dist/assets/modal-fullscreen.css +1 -1
  14. package/dist/assets/popover.css +1 -1
  15. package/dist/assets/sidepanel.css +1 -1
  16. package/dist/chunks/{calendar.C7onA58P.js → calendar.C4vFYvsY.js} +3 -3
  17. package/dist/chunks/{calendar.C7onA58P.js.map → calendar.C4vFYvsY.js.map} +1 -1
  18. package/dist/chunks/{data-grid.Dl3xh62_.js → data-grid.BS_x1UJr.js} +2 -2
  19. package/dist/chunks/{data-grid.Dl3xh62_.js.map → data-grid.BS_x1UJr.js.map} +1 -1
  20. package/dist/chunks/{date-picker.DgF85qSC.js → date-picker.mm_Z28Ef.js} +2 -2
  21. package/dist/chunks/{date-picker.DgF85qSC.js.map → date-picker.mm_Z28Ef.js.map} +1 -1
  22. package/dist/chunks/{date-range-picker.CAQY6v7g.js → date-range-picker.Cx4vdGUZ.js} +388 -389
  23. package/dist/chunks/date-range-picker.Cx4vdGUZ.js.map +1 -0
  24. package/dist/chunks/{filter-bar.CcsUi7Xg.js → filter-bar.CJOZfPv2.js} +854 -826
  25. package/dist/chunks/filter-bar.CJOZfPv2.js.map +1 -0
  26. package/dist/data-grid.js +1 -1
  27. package/dist/date-picker.js +2 -2
  28. package/dist/date-range-picker.js +2 -2
  29. package/dist/filter-bar.js +1 -1
  30. package/dist/index.js +5 -5
  31. package/dist/internal.js +1 -1
  32. package/dist/web-types.json +1 -1
  33. package/package.json +6 -6
  34. package/dist/chunks/date-range-picker.CAQY6v7g.js.map +0 -1
  35. package/dist/chunks/filter-bar.CcsUi7Xg.js.map +0 -1
@@ -1,51 +1,51 @@
1
- import { defineComponent as $, useSlots as ie, useAttrs as Ke, computed as r, ref as x, watch as z, nextTick as Te, toRef as w, onBeforeUpdate as ue, provide as Pe, reactive as Ze, onMounted as Ie } from "vue";
2
- import { B as me, I as Qe, b as Xe } from "./popover.CuOrBXcF.js";
1
+ import { defineComponent as $, useSlots as re, useAttrs as Ze, computed as r, ref as L, watch as W, nextTick as Pe, toRef as w, onBeforeUpdate as ue, provide as Ie, reactive as Qe, onMounted as Ee } from "vue";
2
+ import { B as Fe, I as Xe, b as et } from "./popover.CuOrBXcF.js";
3
3
  import { u as G } from "./i18n.BQkEbtPM.js";
4
- import { g as pe } from "./generate-uid.NJ8tVoha.js";
5
- import { u as et } from "./use-click-outside.BnhTgpSt.js";
4
+ import { g as fe } from "./generate-uid.NJ8tVoha.js";
5
+ import { u as tt } from "./use-click-outside.BnhTgpSt.js";
6
6
  import "./index.Cl4_42j5.js";
7
- import { C as tt } from "./cross-small.CZqsjZDz.js";
7
+ import { C as lt } from "./cross-small.CZqsjZDz.js";
8
8
  import { n as U } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
- import { B as Ee, a as Fe } from "./base-button.-gx_u8Bd.js";
10
- import { B as se, d as fe } from "./typography.J1v_SPG3.js";
9
+ import { B as Le, a as he } from "./base-button.-gx_u8Bd.js";
10
+ import { B as ie, d as be } from "./typography.J1v_SPG3.js";
11
11
  import { u as xe } from "./use-has-slot.C9lQZ6nz.js";
12
- import { u as Le } from "./aria-label.CaUURpnB.js";
13
- import { g as Re } from "./get-slot-text.BQS5Olxm.js";
14
- import { B as lt, a as at } from "./tooltip.Bm5S2goP.js";
15
- import { B as nt } from "./directive.Cbdox5VL.js";
16
- import { B as Oe } from "./teleport.BV6zrDjA.js";
17
- import { B as ot } from "./radio-group.9jAj6AKb.js";
12
+ import { u as Re } from "./aria-label.CaUURpnB.js";
13
+ import { g as Oe } from "./get-slot-text.BQS5Olxm.js";
14
+ import { B as at, a as nt } from "./tooltip.Bm5S2goP.js";
15
+ import { B as ot } from "./directive.Cbdox5VL.js";
16
+ import { B as Ue } from "./teleport.BV6zrDjA.js";
17
+ import { B as st } from "./radio-group.9jAj6AKb.js";
18
18
  import { t as le } from "./chip.BeK9uqmW.js";
19
- import { B as be } from "./input-field.CP8Qui6G.js";
20
- import { B as ve, b as te } from "./search-bar.Cs60bUZc.js";
21
- import { i as st } from "./index.oJzeCMPe.js";
22
- import { F as Ue } from "./fixed-scroller.D0a6q8_i.js";
19
+ import { B as ve } from "./input-field.CP8Qui6G.js";
20
+ import { B as _e, b as te } from "./search-bar.Cs60bUZc.js";
21
+ import { i as it } from "./index.oJzeCMPe.js";
22
+ import { F as $e } from "./fixed-scroller.D0a6q8_i.js";
23
23
  import { B as rt } from "./modal.bgya0ObK.js";
24
- import { g as it } from "./base-modal.D4x_tmYO.js";
25
- import { B as ut } from "./button.BuD-IsW5.js";
26
- import { u as $e, B as ct } from "./dropdown.C01pOog2.js";
27
- import { g as dt } from "./focus-trap.DiqwA-bw.js";
28
- import { a as pt, C as ft } from "./chevron-up.CSVyoaTy.js";
24
+ import { g as ut } from "./base-modal.D4x_tmYO.js";
25
+ import { B as ct } from "./button.BuD-IsW5.js";
26
+ import { u as ke, B as dt } from "./dropdown.C01pOog2.js";
27
+ import { g as pt } from "./focus-trap.DiqwA-bw.js";
28
+ import { a as ft, C as bt } from "./chevron-up.CSVyoaTy.js";
29
29
  /* empty css */
30
- import { B as _e } from "./divider.Cc4JFWG_.js";
31
- import { c as he, b as bt } from "./use-cached-selected-values.BrkzIuaE.js";
32
- import { L as ke } from "./listbox-option-tag.DDmqT1rs.js";
33
- import { B as vt } from "./payment-method.Cx4nPDtE.js";
34
- import { u as _t } from "./use-country-items.HFnjuDsG.js";
35
- import { B as yt } from "./avatar.BgwjpLQO.js";
36
- import { D as mt, B as Ft, i as ce, b as ht } from "./date-range-picker.CAQY6v7g.js";
37
- import { g as Ve } from "./get-date-locale.BN8xEjY0.js";
38
- import { a as St, i as gt } from "./calendar.C7onA58P.js";
30
+ import { B as ye } from "./divider.Cc4JFWG_.js";
31
+ import { c as Se, b as vt } from "./use-cached-selected-values.BrkzIuaE.js";
32
+ import { L as we } from "./listbox-option-tag.DDmqT1rs.js";
33
+ import { B as _t } from "./payment-method.Cx4nPDtE.js";
34
+ import { u as yt } from "./use-country-items.HFnjuDsG.js";
35
+ import { B as mt } from "./avatar.BgwjpLQO.js";
36
+ import { D as Ft, B as ht, i as de, b as St } from "./date-range-picker.Cx4vdGUZ.js";
37
+ import { g as Ne } from "./get-date-locale.BN8xEjY0.js";
38
+ import { a as gt, i as Ct } from "./calendar.C4vFYvsY.js";
39
39
  import { f as Q } from "./date.dYFFEunA.js";
40
40
  import { B as Bt } from "./button-actions.V0te_IrY.js";
41
- import { D as Se } from "./date-input.BqBdAO1E.js";
42
- import { B as Ct } from "./date-picker.DgF85qSC.js";
43
- import { R as Dt } from "./refresh.Bc9FzGjJ.js";
44
- import { u as At } from "./use-bento-toast-controller.Cn_2Eogn.js";
41
+ import { D as ge } from "./date-input.BqBdAO1E.js";
42
+ import { B as Dt } from "./date-picker.mm_Z28Ef.js";
43
+ import { R as At } from "./refresh.Bc9FzGjJ.js";
44
+ import { u as Tt } from "./use-bento-toast-controller.Cn_2Eogn.js";
45
45
  import "../assets/filter-bar.css";
46
- var v = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE = "update", a))(v || {}), oe = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE_FILTER_VALUES = "update:filter-values", a))(oe || {}), Y = /* @__PURE__ */ ((a) => (a.BOOLEAN = "BentoBooleanFilter", a.RANGE = "BentoRangeFilter", a.INPUT = "BentoInputFilter", a.INPUT_DROPDOWN = "BentoInputWithDropdownFilter", a.SELECT = "BentoSelectFilter", a.SELECT_AVATAR = "BentoSelectAvatarFilter", a.SELECT_COUNTRY = "BentoSelectCountryFilter", a.SELECT_CURRENCY = "BentoSelectCurrencyFilter", a.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", a.SELECT_TAG = "BentoSelectTagFilter", a.DATE = "BentoDateFilter", a.DATE_RANGE = "BentoDateRangeFilter", a))(Y || {});
47
- const Tt = {}, Pt = /* @__PURE__ */ $({
48
- ...Tt,
46
+ var b = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE = "update", a))(b || {}), se = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.UPDATE_FILTER_VALUES = "update:filter-values", a))(se || {}), Y = /* @__PURE__ */ ((a) => (a.BOOLEAN = "BentoBooleanFilter", a.RANGE = "BentoRangeFilter", a.INPUT = "BentoInputFilter", a.INPUT_DROPDOWN = "BentoInputWithDropdownFilter", a.SELECT = "BentoSelectFilter", a.SELECT_AVATAR = "BentoSelectAvatarFilter", a.SELECT_COUNTRY = "BentoSelectCountryFilter", a.SELECT_CURRENCY = "BentoSelectCurrencyFilter", a.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", a.SELECT_TAG = "BentoSelectTagFilter", a.DATE = "BentoDateFilter", a.DATE_RANGE = "BentoDateRangeFilter", a))(Y || {});
47
+ const Pt = {}, It = /* @__PURE__ */ $({
48
+ ...Pt,
49
49
  __name: "filter-bar-button",
50
50
  props: {
51
51
  /**
@@ -78,41 +78,41 @@ const Tt = {}, Pt = /* @__PURE__ */ $({
78
78
  },
79
79
  emits: ["click"],
80
80
  setup(a, { emit: e }) {
81
- const t = a, l = ie(), n = Ke(), o = xe(l), s = r(() => l.default ? Re(l)("default") : null), u = r(() => !o("default") && o("iconLeft")), i = Le({ ariaLabel: s }), d = x(null), y = r(() => {
82
- var A;
81
+ const t = a, l = re(), n = Ze(), s = xe(l), i = r(() => l.default ? Oe(l)("default") : null), d = r(() => !s("default") && s("iconLeft")), u = Re({ ariaLabel: i }), f = L(null), p = r(() => {
82
+ var _;
83
83
  return {
84
- "aria-controls": (A = n["aria-controls"]) == null ? void 0 : A.toString()
84
+ "aria-controls": (_ = n["aria-controls"]) == null ? void 0 : _.toString()
85
85
  };
86
- }), h = r(
86
+ }), F = r(
87
87
  () => (t.appliedFiltersCount || t.secondaryLabel || t.isPersistentFilter) && !t.noAppliedStateStyles
88
- ), F = r(() => ({
89
- "b-filter-bar-button--applied": h.value,
90
- "b-filter-bar-button--filter-open": t.isFilterOpen && !h.value,
91
- "b-filter-bar-button--filter-open-applied": t.isFilterOpen && h.value,
88
+ ), h = r(() => ({
89
+ "b-filter-bar-button--applied": F.value,
90
+ "b-filter-bar-button--filter-open": t.isFilterOpen && !F.value,
91
+ "b-filter-bar-button--filter-open-applied": t.isFilterOpen && F.value,
92
92
  "b-filter-bar-button--with-secondary-label": t.secondaryLabel,
93
93
  "b-filter-bar-button--with-counter": t.appliedFiltersCount,
94
- "b-filter-bar-button--icon-only": u.value
94
+ "b-filter-bar-button--icon-only": d.value
95
95
  }));
96
- return { __sfc: !0, props: t, emit: e, slots: l, attrs: n, hasSlot: o, labelSlot: s, isIconOnly: u, computedAriaLabel: i, filterBarButtonRef: d, ariaAttributes: y, isAppliedFilter: h, conditionalClasses: F, onClickButton: (A) => {
97
- A.preventDefault(), t.disabled || e("click", A);
98
- }, BaseButton: Ee, BentoTypography: se };
96
+ return { __sfc: !0, props: t, emit: e, slots: l, attrs: n, hasSlot: s, labelSlot: i, isIconOnly: d, computedAriaLabel: u, filterBarButtonRef: f, ariaAttributes: p, isAppliedFilter: F, conditionalClasses: h, onClickButton: (_) => {
97
+ _.preventDefault(), t.disabled || e("click", _);
98
+ }, BaseButton: Le, BentoTypography: ie };
99
99
  }
100
100
  });
101
- var It = function() {
101
+ var Et = function() {
102
102
  var e = this, t = e._self._c, l = e._self._setupProxy;
103
103
  return t(l.BaseButton, { ref: "filterBarButtonRef", staticClass: "b-filter-bar-button", class: l.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": l.computedAriaLabel, "aria-controls": l.ariaAttributes["aria-controls"], type: "button" }, on: { click: l.onClickButton }, scopedSlots: e._u([{ key: "iconRight", fn: function() {
104
104
  return [e.appliedFiltersCount && !l.isIconOnly ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.appliedFiltersCount) + " ")]) : e._e()];
105
105
  }, proxy: !0 }]) }, [t("div", { staticClass: "b-filter-bar-button__container" }, [l.hasSlot("iconLeft") ? [e._t("iconLeft")] : e._e(), t("div", { staticClass: "b-filter-bar-button__label-container" }, [t(l.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [t("span", [e._t("default")], 2), e.secondaryLabel && !l.isIconOnly ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(":")]) : e._e()], 1), e.secondaryLabel && !l.isIconOnly ? t(l.BentoTypography, { staticClass: "b-filter-bar-button__secondary-label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.secondaryLabel) + " ")]) : e._e()], 1)], 2)]);
106
- }, Et = [], xt = /* @__PURE__ */ U(
107
- Pt,
106
+ }, Lt = [], xt = /* @__PURE__ */ U(
108
107
  It,
109
108
  Et,
109
+ Lt,
110
110
  !1,
111
111
  null,
112
112
  "a64471d2"
113
113
  );
114
- const ye = xt.exports, Lt = {}, Rt = /* @__PURE__ */ $({
115
- ...Lt,
114
+ const me = xt.exports, Rt = {}, Ot = /* @__PURE__ */ $({
115
+ ...Rt,
116
116
  __name: "filter-bar-button-group",
117
117
  props: {
118
118
  isActive: { type: Boolean, default: !1 },
@@ -126,20 +126,20 @@ const ye = xt.exports, Lt = {}, Rt = /* @__PURE__ */ $({
126
126
  return { __sfc: !0, props: e, conditionalClasses: t };
127
127
  }
128
128
  });
129
- var Ot = function() {
129
+ var Ut = function() {
130
130
  var e = this, t = e._self._c, l = e._self._setupProxy;
131
131
  return t("div", { staticClass: "b-filter-bar-button-group", class: l.conditionalClasses }, [e._t("default")], 2);
132
- }, Ut = [], $t = /* @__PURE__ */ U(
133
- Rt,
132
+ }, $t = [], kt = /* @__PURE__ */ U(
134
133
  Ot,
135
134
  Ut,
135
+ $t,
136
136
  !1,
137
137
  null,
138
138
  "803bca9f"
139
139
  );
140
- const kt = $t.exports;
141
- var W = /* @__PURE__ */ ((a) => (a.APPLY = "apply", a.CLEAR = "clear", a.OPEN = "open", a.CLOSE = "close", a.RESET = "reset", a))(W || {});
142
- const Vt = {
140
+ const wt = kt.exports;
141
+ var q = /* @__PURE__ */ ((a) => (a.APPLY = "apply", a.CLEAR = "clear", a.OPEN = "open", a.CLOSE = "close", a.RESET = "reset", a.CANCEL = "cancel", a))(q || {});
142
+ const Nt = {
143
143
  "en-US": {
144
144
  apply: "Apply",
145
145
  clear: "Clear",
@@ -159,17 +159,17 @@ const Vt = {
159
159
  clear: "Limpar",
160
160
  reset: "Reiniciar"
161
161
  }
162
- }, wt = $({
163
- i18n: { messages: Vt },
162
+ }, Vt = $({
163
+ i18n: { messages: Nt },
164
164
  name: "bento-base-filter",
165
165
  components: {
166
- BentoPopover: me,
167
- BentoTeleport: Oe,
168
- FilterBarButton: ye,
169
- FilterBarButtonGroup: kt,
170
- CrossSmallIcon: tt
166
+ BentoPopover: Fe,
167
+ BentoTeleport: Ue,
168
+ FilterBarButton: me,
169
+ FilterBarButtonGroup: wt,
170
+ CrossSmallIcon: lt
171
171
  },
172
- directives: { BentoClickOutsideDirective: nt, BentoTooltipDirective: lt },
172
+ directives: { BentoClickOutsideDirective: ot, BentoTooltipDirective: at },
173
173
  props: {
174
174
  /**
175
175
  * Total count of applied filters
@@ -224,7 +224,7 @@ const Vt = {
224
224
  /**
225
225
  * Sets the size of the container to fit its content
226
226
  */
227
- fitContent: me.props.fitContent,
227
+ fitContent: Fe.props.fitContent,
228
228
  /**
229
229
  * Attaches a `BentoTooltip` if present. Text showed in the tooltip on hover.
230
230
  */
@@ -242,116 +242,120 @@ const Vt = {
242
242
  }
243
243
  },
244
244
  emits: [
245
- W.APPLY,
246
- W.CLEAR,
247
- W.OPEN,
248
- W.CLOSE,
249
- W.RESET
245
+ q.APPLY,
246
+ q.CLEAR,
247
+ q.OPEN,
248
+ q.CLOSE,
249
+ q.RESET,
250
+ q.CANCEL
250
251
  ],
251
252
  setup(a, { emit: e }) {
252
- const { t } = G(), l = pe("base-filter-popover"), n = x(!1), o = x(null), s = x(null), u = r(() => a.defaultValue !== null), i = r(() => u.value ? JSON.stringify(a.value) !== JSON.stringify(a.defaultValue) : a.appliedFiltersCount || a.buttonSecondaryLabel), d = r(
253
- () => u.value ? t("filterButton", {
253
+ const { t } = G(), l = fe("base-filter-popover"), n = L(!1), s = L(null), i = L(null), d = r(() => a.defaultValue !== null), u = r(() => d.value ? JSON.stringify(a.value) !== JSON.stringify(a.defaultValue) : a.appliedFiltersCount || a.buttonSecondaryLabel), f = r(
254
+ () => d.value ? t("filterButton", {
254
255
  function: a.label
255
- }) : h.value
256
- ), y = r(
257
- () => u.value ? t("resetFilter", {
258
- function: h.value
256
+ }) : F.value
257
+ ), p = r(
258
+ () => d.value ? t("resetFilter", {
259
+ function: F.value
259
260
  }) : t("clearFilter", {
260
- function: h.value
261
+ function: F.value
261
262
  })
262
- ), h = r(() => a.buttonLabel || a.label), F = async () => {
263
- var b, D;
264
- await Te(), (D = (b = o.value) == null ? void 0 : b.$el) == null || D.focus();
263
+ ), F = r(() => a.buttonLabel || a.label), h = async () => {
264
+ var A, P;
265
+ await Pe(), (P = (A = s.value) == null ? void 0 : A.$el) == null || P.focus();
266
+ }, T = () => {
267
+ n.value && (n.value = !1, h(), e(q.CLOSE));
268
+ }, _ = () => {
269
+ d.value ? e(q.RESET) : e(q.CLEAR), h();
270
+ }, R = () => {
271
+ T(), _();
265
272
  }, C = () => {
266
- n.value && (n.value = !1, F(), e(W.CLOSE));
267
- }, A = () => {
268
- u.value ? e(W.RESET) : e(W.CLEAR), F();
269
- }, L = () => {
270
- C(), A();
271
- }, g = () => C(), R = () => {
272
- n.value ? C() : (n.value = !0, e(W.OPEN));
273
- }, P = () => {
274
- C(), e(W.APPLY);
275
- }, B = r(() => [
273
+ n.value ? T() : (n.value = !0, e(q.OPEN));
274
+ }, O = () => {
275
+ T(), e(q.APPLY);
276
+ }, I = () => {
277
+ T(), e(q.CANCEL);
278
+ }, S = () => I(), v = r(() => [
276
279
  {
277
280
  title: t("apply"),
278
- event: P,
281
+ event: O,
279
282
  disabled: a.disableApplyButton
280
283
  },
281
284
  {
282
- title: u.value ? t("reset") : t("clear"),
283
- event: L,
285
+ title: d.value ? t("reset") : t("clear"),
286
+ event: R,
284
287
  disabled: a.disableSecondaryButton
285
288
  }
286
289
  ]);
287
- return z(
290
+ return W(
288
291
  () => n.value,
289
- (b, D) => {
290
- var I, k;
291
- !b && D && (k = (I = o.value) == null ? void 0 : I.filterBarButtonRef) != null && k.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
292
+ (A, P) => {
293
+ var k, D;
294
+ !A && P && (D = (k = s.value) == null ? void 0 : k.filterBarButtonRef) != null && D.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
292
295
  }
293
- ), et(s, g, { ignore: [o] }), {
296
+ ), tt(i, S, { ignore: [s] }), {
294
297
  // Values
295
- actions: B,
298
+ actions: v,
296
299
  popoverId: l,
297
300
  isFilterOpen: n,
298
- isPersistentFilter: u,
299
- isValueChanged: i,
300
- computedAriaLabel: d,
301
- computedButtonText: h,
302
- computedClearButtonLabel: y,
301
+ isPersistentFilter: d,
302
+ isValueChanged: u,
303
+ computedAriaLabel: f,
304
+ computedButtonText: F,
305
+ computedClearButtonLabel: p,
303
306
  // Enums
304
- BentoTooltipPosition: at,
307
+ BentoTooltipPosition: nt,
305
308
  // Events
306
- onClickFilter: R,
307
- onClickApply: P,
308
- onClickSecondaryAction: L,
309
- onClickOutside: g,
310
- closePopover: C,
311
- resetFilter: A,
309
+ onCancel: I,
310
+ onClickFilter: C,
311
+ onClickApply: O,
312
+ onClickSecondaryAction: R,
313
+ onClickOutside: S,
314
+ closePopover: T,
315
+ resetFilter: _,
312
316
  // Refs
313
- filterButtonRef: o,
314
- popoverRef: s
317
+ filterButtonRef: s,
318
+ popoverRef: i
315
319
  };
316
320
  }
317
321
  });
318
- var Nt = function() {
322
+ var Mt = function() {
319
323
  var e = this, t = e._self._c;
320
324
  return e._self._setupProxy, e.onlySlot ? t("div", [e._t("default")], 2) : t("div", { staticClass: "b-base-filter" }, [t("filter-bar-button-group", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: e.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], attrs: { "is-active": e.isFilterOpen, "skip-grouping": !e.isValueChanged } }, [t("filter-bar-button", { ref: "filterButtonRef", attrs: { "aria-label": e.computedAriaLabel, "aria-controls": e.isFilterOpen ? e.popoverId : null, "applied-filters-count": e.appliedFiltersCount, disabled: e.disabled, "is-persistent-filter": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.onClickFilter, keydown: function(l) {
321
325
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
322
326
  } } }, [e._v(" " + e._s(e.computedButtonText) + " ")]), e.isValueChanged ? t("filter-bar-button", { attrs: { "applied-filters-count": e.appliedFiltersCount, disabled: e.disabled, "is-persistent-filter": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.resetFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
323
327
  return [t("cross-small-icon", { attrs: { "svg-title": e.computedClearButtonLabel } })];
324
328
  }, proxy: !0 }], null, !1, 3850482025) }) : e._e()], 1), e.filterButtonRef ? t("bento-teleport", [e.filterButtonRef ? t("bento-popover", { ref: "popoverRef", staticClass: "b-base-filter__popover", attrs: { id: e.popoverId, divider: "", open: e.isFilterOpen, actions: e.controlled ? null : e.actions, "actions-layout": "space-between", "target-element": e.filterButtonRef, title: e.controlled ? null : e.label, "fit-content": e.fitContent, position: "bottom-start", "without-space": e.controlled, "fallback-position": ["bottom-end"] } }, [t("div", { on: { keydown: function(l) {
325
- return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
329
+ return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onCancel.apply(null, arguments);
326
330
  } } }, [e._t("default")], 2)]) : e._e()], 1) : e._e()], 1);
327
- }, Mt = [], Ht = /* @__PURE__ */ U(
328
- wt,
329
- Nt,
331
+ }, Ht = [], jt = /* @__PURE__ */ U(
332
+ Vt,
330
333
  Mt,
334
+ Ht,
331
335
  !1,
332
336
  null,
333
- "2f95c4ee"
337
+ "3c5ec13d"
334
338
  );
335
- const X = Ht.exports, jt = (a) => a instanceof Array, ge = (a) => jt(a) ? a.length === 0 || a.every((e) => e === "") : !a, Be = (a, e) => JSON.stringify(a) === JSON.stringify(e), K = (a, e) => {
336
- const t = x(a.value);
337
- z(
339
+ const X = jt.exports, qt = (a) => a instanceof Array, Ce = (a) => qt(a) ? a.length === 0 || a.every((e) => e === "") : !a, Be = (a, e) => JSON.stringify(a) === JSON.stringify(e), K = (a, e) => {
340
+ const t = L(a.value);
341
+ W(
338
342
  () => a.value,
339
343
  () => {
340
344
  t.value = a.value;
341
345
  }
342
346
  );
343
- const l = r(() => ge(a.value)), n = r(
347
+ const l = r(() => Ce(a.value)), n = r(
344
348
  () => e.value !== null ? Be(e.value, a.value) : l.value
345
- ), o = r(() => Be(t.value, a.value) || ge(t.value) && l.value);
349
+ ), s = r(() => Be(t.value, a.value) || Ce(t.value) && l.value);
346
350
  return {
347
351
  internalFilterValue: t,
348
352
  isSecondaryButtonDisabled: n,
349
- isApplyButtonDisabled: o
353
+ isApplyButtonDisabled: s
350
354
  };
351
- }, qt = {
355
+ }, Jt = {
352
356
  name: "bento-input-filter"
353
- }, Jt = /* @__PURE__ */ $({
354
- ...qt,
357
+ }, Yt = /* @__PURE__ */ $({
358
+ ...Jt,
355
359
  props: {
356
360
  defaultValue: { default: null },
357
361
  disabled: { type: Boolean, default: !1 },
@@ -363,61 +367,61 @@ const X = Ht.exports, jt = (a) => a instanceof Array, ge = (a) => jt(a) ? a.leng
363
367
  },
364
368
  emits: ["input", "update"],
365
369
  setup(a, { emit: e }) {
366
- var I, k;
367
- const t = a, l = x(null), n = x((k = (I = t == null ? void 0 : t.options) == null ? void 0 : I.dropdown) == null ? void 0 : k.value), o = r(
370
+ var P, k;
371
+ const t = a, l = L(null), n = L((k = (P = t == null ? void 0 : t.options) == null ? void 0 : P.dropdown) == null ? void 0 : k.value), s = r(
368
372
  () => {
369
- var T, N;
370
- return ((T = t == null ? void 0 : t.options) == null ? void 0 : T.variant) === "dropdown" && ((N = t == null ? void 0 : t.options) == null ? void 0 : N.dropdown) !== void 0;
373
+ var D, N;
374
+ return ((D = t == null ? void 0 : t.options) == null ? void 0 : D.variant) === "dropdown" && ((N = t == null ? void 0 : t.options) == null ? void 0 : N.dropdown) !== void 0;
371
375
  }
372
- ), s = r(
376
+ ), i = r(
373
377
  () => {
374
- var T;
375
- return o.value ? { ...(T = t == null ? void 0 : t.options) == null ? void 0 : T.dropdown, value: n.value } : void 0;
378
+ var D;
379
+ return s.value ? { ...(D = t == null ? void 0 : t.options) == null ? void 0 : D.dropdown, value: n.value } : void 0;
376
380
  }
377
- ), u = r(() => {
378
- var T;
379
- return ((T = t == null ? void 0 : t.options) == null ? void 0 : T.variant) === "dropdown" ? "dropdown" : "default";
380
- }), i = r(
381
+ ), d = r(() => {
382
+ var D;
383
+ return ((D = t == null ? void 0 : t.options) == null ? void 0 : D.variant) === "dropdown" ? "dropdown" : "default";
384
+ }), u = r(
381
385
  () => {
382
- var T;
383
- return o.value ? (T = t.value) == null ? void 0 : T.inputValue : t == null ? void 0 : t.value;
386
+ var D;
387
+ return s.value ? (D = t.value) == null ? void 0 : D.inputValue : t == null ? void 0 : t.value;
384
388
  }
385
- ), { internalFilterValue: d, isSecondaryButtonDisabled: y, isApplyButtonDisabled: h } = K(
386
- i,
389
+ ), { internalFilterValue: f, isSecondaryButtonDisabled: p, isApplyButtonDisabled: F } = K(
390
+ u,
387
391
  w(t, "defaultValue")
388
- ), F = r(() => t.label), C = r(() => le(i.value, 12)), A = r(() => ({
392
+ ), h = r(() => t.label), T = r(() => le(u.value, 12)), _ = r(() => ({
389
393
  "b-input-filter--only-slot": t.onlySlot
390
394
  }));
391
395
  ue(() => {
392
- d.value === "" && (d.value = null);
393
- }), z(l, () => {
394
- var T;
395
- (T = l.value) == null || T.focusInput();
396
+ f.value === "" && (f.value = null);
397
+ }), W(l, () => {
398
+ var D;
399
+ (D = l.value) == null || D.focusInput();
396
400
  });
397
- const L = () => {
398
- d.value = i.value;
399
- }, g = () => {
400
- !d.value && t.defaultValue !== null && (d.value = t.defaultValue), e("update", {
401
+ const R = () => {
402
+ f.value = u.value;
403
+ }, C = () => {
404
+ !f.value && t.defaultValue !== null && (f.value = t.defaultValue), e("update", {
401
405
  ...t,
402
- value: o.value ? {
403
- inputValue: d.value,
406
+ value: s.value ? {
407
+ inputValue: f.value,
404
408
  dropdownValue: n.value
405
- } : d.value
409
+ } : f.value
406
410
  });
407
- }, R = () => e("update", { ...t, value: t.defaultValue }), P = () => {
408
- d.value = null, g();
409
- }, B = () => {
410
- e("input", { ...t, value: d.value });
411
- }, b = (T) => {
412
- d.value = T;
413
- }, D = (T) => {
414
- n.value = T;
411
+ }, O = () => e("update", { ...t, value: t.defaultValue }), I = () => {
412
+ f.value = null, C();
413
+ }, S = () => {
414
+ e("input", { ...t, value: f.value });
415
+ }, v = (D) => {
416
+ f.value = D;
417
+ }, A = (D) => {
418
+ n.value = D;
415
419
  };
416
- return Pe(Qe, o.value), z(
420
+ return Ie(Xe, s.value), W(
417
421
  () => t.options,
418
422
  () => {
419
- var T, N, j;
420
- ((T = t.options) != null && T.dropdown || (N = t.options) != null && N.dropdownPosition || (j = t.options) != null && j.variant) && fe(
423
+ var D, N, H;
424
+ ((D = t.options) != null && D.dropdown || (N = t.options) != null && N.dropdownPosition || (H = t.options) != null && H.variant) && be(
421
425
  'BentoInputFilter "options" property',
422
426
  `BentoInputFilter "options" no longer supports "dropdown", "dropdownPosition" or "variant" attributes.
423
427
  Use the "BentoFilterItemType.INPUT_DROPDOWN" instead of "BentoFilterItemType.INPUT"
@@ -433,27 +437,27 @@ const X = Ht.exports, jt = (a) => a instanceof Array, ge = (a) => jt(a) ? a.leng
433
437
  );
434
438
  },
435
439
  { immediate: !0 }
436
- ), { __sfc: !0, props: t, emit: e, inputTextRef: l, dropdownValue: n, isDropdownVariant: o, dropdownProp: s, inputVariant: u, valueProp: i, internalFilterValue: d, isSecondaryButtonDisabled: y, isApplyButtonDisabled: h, buttonLabel: F, buttonSecondaryLabel: C, conditionalClasses: A, openFilter: L, updateFilter: g, resetFilter: R, clearFilter: P, onInput: B, setInternalFilterValue: b, onDropdownInput: D, BentoBaseFilter: X, BentoInputField: be };
440
+ ), { __sfc: !0, props: t, emit: e, inputTextRef: l, dropdownValue: n, isDropdownVariant: s, dropdownProp: i, inputVariant: d, valueProp: u, internalFilterValue: f, isSecondaryButtonDisabled: p, isApplyButtonDisabled: F, buttonLabel: h, buttonSecondaryLabel: T, conditionalClasses: _, openFilter: R, updateFilter: C, resetFilter: O, clearFilter: I, onInput: S, setInternalFilterValue: v, onDropdownInput: A, BentoBaseFilter: X, BentoInputField: ve };
437
441
  }
438
442
  });
439
- var Yt = function() {
440
- var n, o, s, u;
443
+ var Wt = function() {
444
+ var n, s, i, d;
441
445
  var e = this, t = e._self._c, l = e._self._setupProxy;
442
- return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": l.isDropdownVariant, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (o = e.options) == null ? void 0 : o.tooltipText }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: l.conditionalClasses, on: { keydown: function(i) {
443
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
444
- }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownProp, "dropdown-position": (s = e.options) == null ? void 0 : s.dropdownPosition, placeholder: (u = e.options) == null ? void 0 : u.placeholder, variant: l.inputVariant, value: l.internalFilterValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
445
- }, Wt = [], zt = /* @__PURE__ */ U(
446
- Jt,
446
+ return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": l.isDropdownVariant, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (s = e.options) == null ? void 0 : s.tooltipText }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: l.conditionalClasses, on: { keydown: function(u) {
447
+ return !u.type.indexOf("key") && e._k(u.keyCode, "enter", 13, u.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
448
+ }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownProp, "dropdown-position": (i = e.options) == null ? void 0 : i.dropdownPosition, placeholder: (d = e.options) == null ? void 0 : d.placeholder, variant: l.inputVariant, value: l.internalFilterValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
449
+ }, zt = [], Gt = /* @__PURE__ */ U(
447
450
  Yt,
448
451
  Wt,
452
+ zt,
449
453
  !1,
450
454
  null,
451
455
  "641bf14b"
452
456
  );
453
- const we = zt.exports, Gt = {
457
+ const Ve = Gt.exports, Kt = {
454
458
  name: "bento-input-with-dropdown-filter"
455
- }, Kt = /* @__PURE__ */ $({
456
- ...Gt,
459
+ }, Zt = /* @__PURE__ */ $({
460
+ ...Kt,
457
461
  props: {
458
462
  disabled: { type: Boolean },
459
463
  defaultValue: { default: void 0 },
@@ -463,76 +467,76 @@ const we = zt.exports, Gt = {
463
467
  options: { default: void 0 },
464
468
  value: { default: void 0 }
465
469
  },
466
- emits: [v.INPUT, v.UPDATE],
470
+ emits: [b.INPUT, b.UPDATE],
467
471
  setup(a, { emit: e }) {
468
- const t = a, l = x(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(w(t, "value"), w(t, "defaultValue")), u = r(() => t.label), i = r(() => {
469
- var b;
470
- return le((b = t.value) == null ? void 0 : b.inputValue, 12);
471
- }), d = r(
472
+ const t = a, l = L(null), { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: i } = K(w(t, "value"), w(t, "defaultValue")), d = r(() => t.label), u = r(() => {
473
+ var v;
474
+ return le((v = t.value) == null ? void 0 : v.inputValue, 12);
475
+ }), f = r(
472
476
  () => {
473
- var b, D, I;
474
- return ((b = n.value) == null ? void 0 : b.dropdownValue) ?? ((I = (D = t.options) == null ? void 0 : D.dropdown) == null ? void 0 : I.value);
477
+ var v, A, P;
478
+ return ((v = n.value) == null ? void 0 : v.dropdownValue) ?? ((P = (A = t.options) == null ? void 0 : A.dropdown) == null ? void 0 : P.value);
475
479
  }
476
- ), y = r(() => {
477
- var b;
480
+ ), p = r(() => {
481
+ var v;
478
482
  return {
479
- ...((b = t.options) == null ? void 0 : b.dropdown) || {},
480
- value: d.value
483
+ ...((v = t.options) == null ? void 0 : v.dropdown) || {},
484
+ value: f.value
481
485
  };
482
- }), h = r(() => ({
486
+ }), F = r(() => ({
483
487
  "b-input-with-dropdown-filter--only-slot": t.onlySlot
484
- })), F = r(() => {
485
- var D;
486
- return !(!!((D = n.value) != null && D.inputValue) && !!d.value) || s.value;
488
+ })), h = r(() => {
489
+ var A;
490
+ return !(!!((A = n.value) != null && A.inputValue) && !!f.value) || i.value;
487
491
  });
488
492
  ue(() => {
489
- var b;
490
- ((b = n.value) == null ? void 0 : b.inputValue) === "" && (n.value = { ...n.value, inputValue: void 0 });
491
- }), z(l, () => {
492
- var b;
493
- (b = l.value) == null || b.focusInput();
493
+ var v;
494
+ ((v = n.value) == null ? void 0 : v.inputValue) === "" && (n.value = { ...n.value, inputValue: void 0 });
495
+ }), W(l, () => {
496
+ var v;
497
+ (v = l.value) == null || v.focusInput();
494
498
  });
495
- const C = () => {
499
+ const T = () => {
496
500
  n.value = t.value;
497
- }, A = () => {
498
- var b;
499
- !((b = n.value) != null && b.inputValue) && t.defaultValue !== null && (n.value = { ...t.defaultValue }), e(v.UPDATE, {
501
+ }, _ = () => {
502
+ var v;
503
+ !((v = n.value) != null && v.inputValue) && t.defaultValue !== null && (n.value = { ...t.defaultValue }), e(b.UPDATE, {
500
504
  ...t,
501
505
  value: n.value
502
506
  });
503
- }, L = () => e(v.UPDATE, { ...t, value: t.defaultValue }), g = () => {
504
- n.value = null, A();
505
- }, R = () => {
506
- e(v.INPUT, { ...t, value: n.value });
507
- }, P = (b) => {
508
- n.value = { dropdownValue: d.value, inputValue: b };
509
- }, B = (b) => {
510
- n.value = { ...n.value, dropdownValue: b };
507
+ }, R = () => e(b.UPDATE, { ...t, value: t.defaultValue }), C = () => {
508
+ n.value = null, _();
509
+ }, O = () => {
510
+ e(b.INPUT, { ...t, value: n.value });
511
+ }, I = (v) => {
512
+ n.value = { dropdownValue: f.value, inputValue: v };
513
+ }, S = (v) => {
514
+ n.value = { ...n.value, dropdownValue: v };
511
515
  };
512
- return Pe(Xe, !0), { __sfc: !0, props: t, emit: e, inputTextRef: l, internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s, buttonLabel: u, buttonSecondaryLabel: i, dropdownSelection: d, dropdownOptions: y, conditionalClasses: h, shouldDisableApply: F, openFilter: C, updateFilter: A, resetFilter: L, clearFilter: g, onInput: R, setInternalFilterValue: P, onDropdownInput: B, BentoBaseFilter: X, BentoInputField: be };
516
+ return Ie(et, !0), { __sfc: !0, props: t, emit: e, inputTextRef: l, internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: i, buttonLabel: d, buttonSecondaryLabel: u, dropdownSelection: f, dropdownOptions: p, conditionalClasses: F, shouldDisableApply: h, openFilter: T, updateFilter: _, resetFilter: R, clearFilter: C, onInput: O, setInternalFilterValue: I, onDropdownInput: S, BentoBaseFilter: X, BentoInputField: ve };
513
517
  }
514
518
  });
515
- var Zt = function() {
516
- var n, o, s, u;
519
+ var Qt = function() {
520
+ var n, s, i, d;
517
521
  var e = this, t = e._self._c, l = e._self._setupProxy;
518
- return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.shouldDisableApply, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (o = e.options) == null ? void 0 : o.tooltipText }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-with-dropdown-filter", class: l.conditionalClasses, on: { keydown: function(i) {
519
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
520
- }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownOptions, "dropdown-position": (s = e.options) == null ? void 0 : s.dropdownPosition, variant: "dropdown", value: (u = l.internalFilterValue) == null ? void 0 : u.inputValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
521
- }, Qt = [], Xt = /* @__PURE__ */ U(
522
- Kt,
522
+ return t(l.BentoBaseFilter, e._b({ attrs: { "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, "disable-apply-button": l.shouldDisableApply, "disable-secondary-button": l.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (s = e.options) == null ? void 0 : s.tooltipText }, on: { apply: l.updateFilter, clear: l.clearFilter, open: l.openFilter, reset: l.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-with-dropdown-filter", class: l.conditionalClasses, on: { keydown: function(u) {
523
+ return !u.type.indexOf("key") && e._k(u.keyCode, "enter", 13, u.key, "Enter") ? null : l.updateFilter.apply(null, arguments);
524
+ }, input: l.onInput } }, [t(l.BentoInputField, { ref: "inputTextRef", attrs: { dropdown: l.dropdownOptions, "dropdown-position": (i = e.options) == null ? void 0 : i.dropdownPosition, variant: "dropdown", value: (d = l.internalFilterValue) == null ? void 0 : d.inputValue }, on: { input: l.setInternalFilterValue, "dropdown-input": l.onDropdownInput } })], 1)]);
525
+ }, Xt = [], el = /* @__PURE__ */ U(
523
526
  Zt,
524
527
  Qt,
528
+ Xt,
525
529
  !1,
526
530
  null,
527
531
  "dda28e03"
528
532
  );
529
- const Ne = Xt.exports, el = $({
533
+ const Me = el.exports, tl = $({
530
534
  name: "bento-date-filter",
531
535
  components: {
532
536
  BentoBaseFilter: X,
533
- BentoDatePicker: Ct,
534
- BentoDivider: _e,
535
- Calendar: St
537
+ BentoDatePicker: Dt,
538
+ BentoDivider: ye,
539
+ Calendar: gt
536
540
  },
537
541
  props: {
538
542
  /**
@@ -575,58 +579,58 @@ const Ne = Xt.exports, el = $({
575
579
  */
576
580
  value: { type: Date, default: void 0 }
577
581
  },
578
- emits: [v.INPUT, v.UPDATE],
582
+ emits: [b.INPUT, b.UPDATE],
579
583
  setup(a, { emit: e }) {
580
- const { locale: t } = G(void 0, !0), l = Ve(), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(
584
+ const { locale: t } = G(void 0, !0), l = Ne(), { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: i } = K(
581
585
  w(a, "value"),
582
586
  w(a, "defaultValue")
583
- ), u = r(
587
+ ), d = r(
584
588
  () => a.value ? Q(a.value, "dd MMM, yyyy", {
585
589
  locale: l[t.value.substring(0, 2)] || l.enUS
586
590
  }) : null
587
- ), i = r(() => a.label), d = r(() => u.value), y = () => {
588
- e(v.UPDATE, { ...a, value: n.value });
589
- }, h = () => {
590
- n.value = null, y();
591
+ ), u = r(() => a.label), f = r(() => d.value), p = () => {
592
+ e(b.UPDATE, { ...a, value: n.value });
591
593
  }, F = () => {
592
- n.value = a.defaultValue, y();
593
- }, C = () => {
594
+ n.value = null, p();
595
+ }, h = () => {
596
+ n.value = a.defaultValue, p();
597
+ }, T = () => {
594
598
  n.value = a.value;
595
- }, A = (g) => {
596
- n.value = g, e(v.INPUT, { ...a, value: n.value });
599
+ }, _ = (C) => {
600
+ n.value = C, e(b.INPUT, { ...a, value: n.value });
597
601
  };
598
602
  return {
599
603
  // Values
600
604
  internalFilterValue: n,
601
- isApplyButtonDisabled: s,
602
- isSecondaryButtonDisabled: o,
603
- buttonLabel: i,
604
- buttonSecondaryLabel: d,
605
+ isApplyButtonDisabled: i,
606
+ isSecondaryButtonDisabled: s,
607
+ buttonLabel: u,
608
+ buttonSecondaryLabel: f,
605
609
  // Events
606
- clearFilter: h,
607
- onDateSelected: A,
608
- openFilter: C,
609
- updateFilter: y,
610
- resetFilter: F,
611
- onDateInputSelected: (g) => {
612
- n.value = g, A(g), y();
610
+ clearFilter: F,
611
+ onDateSelected: _,
612
+ openFilter: T,
613
+ updateFilter: p,
614
+ resetFilter: h,
615
+ onDateInputSelected: (C) => {
616
+ n.value = C, _(C), p();
613
617
  }
614
618
  };
615
619
  }
616
620
  });
617
- var tl = function() {
618
- var l, n, o, s, u, i, d, y;
621
+ var ll = function() {
622
+ var l, n, s, i, d, u, f, p;
619
623
  var e = this, t = e._self._c;
620
- return e._self._setupProxy, t("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, disabled: e.disabled, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (o = e.options) == null ? void 0 : o.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, variant: (u = e.options) == null ? void 0 : u.variant }, on: { input: e.onDateInputSelected } }) : [t("bento-divider", { staticClass: "b-date-filter__divider" }), t("div", { staticClass: "b-date-filter" }, [t("calendar", { attrs: { "first-day-of-week": (i = e.options) == null ? void 0 : i.firstDayOfWeek, "is-date-disabled": (d = e.options) == null ? void 0 : d.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue, variant: (y = e.options) == null ? void 0 : y.variant }, on: { input: e.onDateSelected } })], 1)]], 2);
621
- }, ll = [], al = /* @__PURE__ */ U(
622
- el,
624
+ return e._self._setupProxy, t("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, disabled: e.disabled, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (s = e.options) == null ? void 0 : s.firstDayOfWeek, "is-date-disabled": (i = e.options) == null ? void 0 : i.isDateDisabled, variant: (d = e.options) == null ? void 0 : d.variant }, on: { input: e.onDateInputSelected } }) : [t("bento-divider", { staticClass: "b-date-filter__divider" }), t("div", { staticClass: "b-date-filter" }, [t("calendar", { attrs: { "first-day-of-week": (u = e.options) == null ? void 0 : u.firstDayOfWeek, "is-date-disabled": (f = e.options) == null ? void 0 : f.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue, variant: (p = e.options) == null ? void 0 : p.variant }, on: { input: e.onDateSelected } })], 1)]], 2);
625
+ }, al = [], nl = /* @__PURE__ */ U(
623
626
  tl,
624
627
  ll,
628
+ al,
625
629
  !1,
626
630
  null,
627
631
  "572e723d"
628
632
  );
629
- const Me = al.exports, nl = {
633
+ const He = nl.exports, ol = {
630
634
  "en-US": {
631
635
  apply: "Apply",
632
636
  clear: "Clear",
@@ -642,16 +646,16 @@ const Me = al.exports, nl = {
642
646
  clear: "Limpar",
643
647
  reset: "Reiniciar"
644
648
  }
645
- }, ol = $({
646
- i18n: { messages: nl },
649
+ }, sl = $({
650
+ i18n: { messages: ol },
647
651
  name: "bento-date-range-filter",
648
652
  components: {
649
653
  BentoBaseFilter: X,
650
654
  BentoButtonActions: Bt,
651
- BentoDateRangePicker: Ft,
652
- BentoTypography: se,
653
- BentoDivider: _e,
654
- DateRangePickerCalendar: mt
655
+ BentoDateRangePicker: ht,
656
+ BentoTypography: ie,
657
+ BentoDivider: ye,
658
+ DateRangePickerCalendar: Ft
655
659
  },
656
660
  props: {
657
661
  /**
@@ -703,128 +707,152 @@ const Me = al.exports, nl = {
703
707
  default: () => ({ startDate: void 0, endDate: void 0 })
704
708
  }
705
709
  },
706
- emits: [v.INPUT, v.UPDATE],
710
+ emits: [b.INPUT, b.UPDATE],
707
711
  setup(a, { emit: e }) {
708
- var J, S, _, m;
709
- const { locale: t, t: l } = G(), n = Ve(), { internalFilterValue: o, isSecondaryButtonDisabled: s, isApplyButtonDisabled: u } = K(
712
+ var m, E, V, M;
713
+ const { locale: t, t: l } = G(), n = Ne(), { internalFilterValue: s, isSecondaryButtonDisabled: i, isApplyButtonDisabled: d } = K(
710
714
  w(a, "value"),
711
715
  w(a, "defaultValue")
712
- ), i = x(!1), d = (c) => c ? Q(c, Se.NUMERIC_DATE_YEAR_FIRST, {
716
+ ), u = L(!1), f = r(() => {
717
+ var o;
718
+ return ((o = a == null ? void 0 : a.options) == null ? void 0 : o.quickSelectRanges) && a.options.quickSelectRanges.map((c) => {
719
+ const B = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
720
+ return {
721
+ ...c,
722
+ data: {
723
+ ...c.data,
724
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
725
+ timeDifference: B
726
+ }
727
+ };
728
+ });
729
+ }), p = (o) => o ? Q(o, ge.NUMERIC_DATE_YEAR_FIRST, {
713
730
  locale: n[t.value.substring(0, 2)] || n.enUS
714
- }) : void 0, y = (c) => c ? Q(c, Se.HOUR_MINUTE_SECONDS, {
731
+ }) : void 0, F = (o) => o ? Q(o, ge.HOUR_MINUTE_SECONDS, {
715
732
  locale: n[t.value.substring(0, 2)] || n.enUS
716
- }) : "", h = x(null), F = x(!1), C = Ze({
717
- startDate: d((J = a.value) == null ? void 0 : J.startDate),
718
- endDate: d((S = a.value) == null ? void 0 : S.endDate),
719
- startTime: y((_ = a.value) == null ? void 0 : _.startDate),
720
- endTime: y((m = a.value) == null ? void 0 : m.endDate)
733
+ }) : "", h = L(null), T = L(!1), _ = Qe({
734
+ startDate: p((m = a.value) == null ? void 0 : m.startDate),
735
+ endDate: p((E = a.value) == null ? void 0 : E.endDate),
736
+ startTime: F((V = a.value) == null ? void 0 : V.startDate),
737
+ endTime: F((M = a.value) == null ? void 0 : M.endDate)
721
738
  });
722
- function A(c) {
723
- return (c == null ? void 0 : c.length) !== void 0;
739
+ W(
740
+ () => a.value,
741
+ () => {
742
+ var o, c, B, x;
743
+ _.startDate = p((o = a.value) == null ? void 0 : o.startDate), _.endDate = p((c = a.value) == null ? void 0 : c.endDate), _.startTime = F((B = a.value) == null ? void 0 : B.startDate), _.endTime = F((x = a.value) == null ? void 0 : x.endDate);
744
+ }
745
+ );
746
+ function R(o) {
747
+ return (o == null ? void 0 : o.length) !== void 0;
724
748
  }
725
- const L = r(() => {
726
- var c, V, M, p, f, E, O, q, Z;
727
- if (!((c = a.value) != null && c.startDate) && !a.value.endDate)
749
+ const C = (o) => {
750
+ var c, B, x, j, Z, ne;
751
+ if (!o || !(o != null && o.startDate) && !o.endDate)
728
752
  return null;
729
- if (A((V = a.options) == null ? void 0 : V.quickSelectRanges) && ((p = (M = a.options) == null ? void 0 : M.quickSelectRanges) == null ? void 0 : p.length) > 0) {
730
- const ne = (E = (f = a.options) == null ? void 0 : f.quickSelectRanges) == null ? void 0 : E.find(({ value: re, data: H }) => {
731
- if (o.value.range)
732
- return re === o.value.range;
733
- if (!(H != null && H.endDate))
734
- ce(H == null ? void 0 : H.startDate, o.value.startDate) && ht(o.value.endDate);
735
- else
736
- return ce(H == null ? void 0 : H.startDate, o.value.startDate) && ce(H == null ? void 0 : H.endDate, o.value.endDate);
737
- });
738
- if (ne)
739
- return ne.label;
753
+ if (R((c = a.options) == null ? void 0 : c.quickSelectRanges) && ((x = (B = a.options) == null ? void 0 : B.quickSelectRanges) == null ? void 0 : x.length) > 0) {
754
+ const oe = (Z = (j = a.options) == null ? void 0 : j.quickSelectRanges) == null ? void 0 : Z.find(({ value: ce, data: J }) => o ? o.range ? ce === o.range : !o.startDate || !o.endDate ? !1 : J != null && J.endDate ? de(J == null ? void 0 : J.startDate, o.startDate) && de(J == null ? void 0 : J.endDate, o.endDate) : de(J == null ? void 0 : J.startDate, o.startDate) && St(o.endDate) : !1);
755
+ if (oe)
756
+ return oe.label;
740
757
  }
741
- return gt((O = a.value) == null ? void 0 : O.startDate, (q = a.value) == null ? void 0 : q.endDate) && ((Z = a == null ? void 0 : a.options) != null && Z.allowTimeInput) ? `${Q(a.value.startDate, "dd MMM, yyyy HH:mm:ss", {
758
+ return !o.startDate || !o.endDate ? null : Ct(o.startDate, o.endDate) && ((ne = a == null ? void 0 : a.options) != null && ne.allowTimeInput) ? `${Q(o.startDate, "dd MMM, yyyy HH:mm:ss", {
742
759
  locale: n[t.value.substring(0, 2)] || n.enUS
743
- })} - ${Q(a.value.endDate, "HH:mm:ss", {
760
+ })} - ${Q(o.endDate, "HH:mm:ss", {
744
761
  locale: n[t.value.substring(0, 2)] || n.enUS
745
- })}` : `${Q(a.value.startDate, "dd MMM, yyyy", {
762
+ })}` : `${Q(o.startDate, "dd MMM, yyyy", {
746
763
  locale: n[t.value.substring(0, 2)] || n.enUS
747
- })} - ${Q(a.value.endDate, "dd MMM, yyyy", {
764
+ })} - ${Q(o.endDate, "dd MMM, yyyy", {
748
765
  locale: n[t.value.substring(0, 2)] || n.enUS
749
766
  })}`;
750
- }), g = r(() => a.label), R = () => {
767
+ }, O = L(C(a.value)), I = r(() => a.label), S = () => {
751
768
  h.value.closePopover();
752
- const { onlySlot: c, ...V } = a;
753
- e(v.UPDATE, { ...V, value: o.value });
769
+ const { onlySlot: o, ...c } = a;
770
+ e(b.UPDATE, { ...c, value: s.value });
771
+ }, v = () => {
772
+ s.value = void 0, S();
773
+ }, A = () => {
774
+ s.value = a.defaultValue, S();
754
775
  }, P = () => {
755
- o.value = void 0, R();
756
- }, B = () => {
757
- o.value = a.defaultValue, R();
758
- }, b = () => {
759
- o.value = a.value;
760
- }, D = (c) => {
761
- i.value = !1, o.value = c, C.startDate = d(c.startDate), C.endDate = d(c.endDate), e(v.INPUT, { ...a, value: o.value });
762
- }, I = (c) => {
763
- c != null && c.startDate && (c != null && c.endDate) && (o.value = c, C.startDate = d(c.startDate), C.endDate = d(c.endDate), e(v.INPUT, { ...a, value: o.value }));
764
- }, k = (c) => {
765
- D(c), e(v.INPUT, { ...a, value: o.value });
766
- }, T = r(
776
+ s.value = a.value;
777
+ }, k = () => {
778
+ var o, c, B, x;
779
+ s.value = a.value, u.value = !1, _.startDate = p((o = a.value) == null ? void 0 : o.startDate), _.endDate = p((c = a.value) == null ? void 0 : c.endDate), _.startTime = F((B = a.value) == null ? void 0 : B.startDate), _.endTime = F((x = a.value) == null ? void 0 : x.endDate);
780
+ }, D = (o) => {
781
+ u.value = !1, s.value = o, _.startDate = p(o.startDate), _.endDate = p(o.endDate), e(b.INPUT, { ...a, value: s.value });
782
+ }, N = (o) => {
783
+ o != null && o.startDate && (o != null && o.endDate) && (s.value = o, _.startDate = p(o.startDate), _.endDate = p(o.endDate), e(b.INPUT, { ...a, value: s.value }));
784
+ }, H = (o) => {
785
+ D(o), e(b.INPUT, { ...a, value: s.value });
786
+ }, z = r(
767
787
  () => [
768
788
  {
769
789
  title: l("apply"),
770
- event: R,
771
- disabled: i.value || F.value || u.value
790
+ event: S,
791
+ disabled: u.value || T.value || d.value
772
792
  },
773
793
  {
774
794
  title: a.defaultValue ? l("reset") : l("clear"),
775
- event: a.defaultValue ? B : P,
776
- disabled: F.value && s.value
795
+ event: a.defaultValue ? A : v,
796
+ disabled: T.value && i.value
777
797
  }
778
798
  ]
779
- );
780
- return {
799
+ ), g = () => {
800
+ T.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(b.INPUT, { ...a, value: s.value });
801
+ }, y = (o) => {
802
+ T.value = !1, o.startTime && (_.startTime = o.startTime), o.endTime && (_.endTime = o.endTime);
803
+ };
804
+ return W(
805
+ () => a.value,
806
+ (o) => {
807
+ O.value = C(o);
808
+ },
809
+ { deep: !0 }
810
+ ), {
781
811
  // Refs
782
812
  baseFilter: h,
783
813
  // Values
784
- actions: T,
785
- formData: C,
786
- internalFilterValue: o,
787
- isApplyButtonDisabled: u,
788
- isSecondaryButtonDisabled: s,
789
- isSelectingDate: i,
790
- buttonLabel: g,
791
- buttonSecondaryLabel: L,
814
+ actions: z,
815
+ formData: _,
816
+ internalFilterValue: s,
817
+ isApplyButtonDisabled: d,
818
+ isSecondaryButtonDisabled: i,
819
+ isSelectingDate: u,
820
+ buttonLabel: I,
821
+ buttonSecondaryLabel: O,
822
+ adjustedQuickSelectRanges: f,
792
823
  // Events
824
+ onCancel: k,
793
825
  onDateSelected: D,
794
- openFilter: b,
795
- clearFilter: P,
796
- resetFilter: B,
797
- updateFilter: R,
798
- onDatePickerRangeError: () => {
799
- F.value = !0, o.value = { startDate: void 0, endDate: void 0 }, e(v.INPUT, { ...a, value: o.value });
800
- },
801
- onDatePickerRangeFormDateInputUpdate: (c) => {
802
- F.value = !1, c.startTime && (C.startTime = c.startTime), c.endTime && (C.endTime = c.endTime);
803
- },
804
- onDateInputSelected: k,
805
- onRangeSelectorInput: I
826
+ openFilter: P,
827
+ clearFilter: v,
828
+ resetFilter: A,
829
+ updateFilter: S,
830
+ onDatePickerRangeError: g,
831
+ onDatePickerRangeFormDateInputUpdate: y,
832
+ onDateInputSelected: H,
833
+ onRangeSelectorInput: N
806
834
  };
807
835
  }
808
836
  });
809
- var sl = function() {
810
- var l, n, o, s, u, i, d, y, h, F, C, A, L, g, R, P, B, b, D;
837
+ var il = function() {
838
+ var l, n, s, i, d, u, f, p, F, h, T, _, R, C, O, I, S, v;
811
839
  var e = this, t = e._self._c;
812
- return e._self._setupProxy, t("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, disabled: e.disabled, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { open: e.openFilter, clear: e.clearFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-range-picker", { attrs: { "allow-time-input": (o = e.options) == null ? void 0 : o.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (s = e.options) == null ? void 0 : s.firstDayOfWeek, "is-date-disabled": (u = e.options) == null ? void 0 : u.isDateDisabled, "number-of-months": (i = e.options) == null ? void 0 : i.numberOfMonths, "quick-select-ranges": (d = e.options) == null ? void 0 : d.quickSelectRanges, variant: (y = e.options) == null ? void 0 : y.variant }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (h = e.options) == null ? void 0 : h.allowTimeInput, "first-day-of-week": (F = e.options) == null ? void 0 : F.firstDayOfWeek, "is-date-disabled": (C = e.options) == null ? void 0 : C.isDateDisabled, granularities: (A = e.options) == null ? void 0 : A.granularities, "max-range": (L = e.options) == null ? void 0 : L.maxRange, min: (g = e.options) == null ? void 0 : g.min, max: (R = e.options) == null ? void 0 : R.max, "number-of-months": (P = e.options) == null ? void 0 : P.numberOfMonths, "quick-select-ranges": (B = e.options) == null ? void 0 : B.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (b = e.options) == null ? void 0 : b.showEndDateOnOpen, variant: (D = e.options) == null ? void 0 : D.variant }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(I) {
840
+ return e._self._setupProxy, t("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, disabled: e.disabled, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { open: e.openFilter, clear: e.clearFilter, reset: e.resetFilter, cancel: e.onCancel } }, [e.onlySlot ? t("bento-date-range-picker", { attrs: { "allow-time-input": (s = e.options) == null ? void 0 : s.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (i = e.options) == null ? void 0 : i.firstDayOfWeek, "is-date-disabled": (d = e.options) == null ? void 0 : d.isDateDisabled, "number-of-months": (u = e.options) == null ? void 0 : u.numberOfMonths, "quick-select-ranges": (f = e.options) == null ? void 0 : f.quickSelectRanges, variant: (p = e.options) == null ? void 0 : p.variant }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (F = e.options) == null ? void 0 : F.allowTimeInput, "first-day-of-week": (h = e.options) == null ? void 0 : h.firstDayOfWeek, "is-date-disabled": (T = e.options) == null ? void 0 : T.isDateDisabled, granularities: (_ = e.options) == null ? void 0 : _.granularities, "max-range": (R = e.options) == null ? void 0 : R.maxRange, min: (C = e.options) == null ? void 0 : C.min, max: (O = e.options) == null ? void 0 : O.max, "number-of-months": (I = e.options) == null ? void 0 : I.numberOfMonths, "quick-select-ranges": e.adjustedQuickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (S = e.options) == null ? void 0 : S.showEndDateOnOpen, variant: (v = e.options) == null ? void 0 : v.variant }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(A) {
813
841
  e.isSelectingDate = !0;
814
842
  } }, scopedSlots: e._u([{ key: "title", fn: function() {
815
843
  return [t("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
816
844
  }, proxy: !0 }, { key: "actions", fn: function() {
817
845
  return [t("bento-divider", { staticClass: "b-date-range-filter__divider" }), t("bento-button-actions", { staticClass: "b-date-range-filter__actions", attrs: { actions: e.actions, layout: "space-between" } })];
818
846
  }, proxy: !0 }]) })], 1)]], 2);
819
- }, rl = [], il = /* @__PURE__ */ U(
820
- ol,
847
+ }, rl = [], ul = /* @__PURE__ */ U(
821
848
  sl,
849
+ il,
822
850
  rl,
823
851
  !1,
824
852
  null,
825
- "8b8d207a"
853
+ "08f85fff"
826
854
  );
827
- const He = il.exports, ul = {
855
+ const je = ul.exports, cl = {
828
856
  "en-US": {
829
857
  all: "All",
830
858
  noFiltersMatchThisSearch: "No filters match this search",
@@ -836,10 +864,10 @@ const He = il.exports, ul = {
836
864
  "pt-BR": {
837
865
  all: "Todos"
838
866
  }
839
- }, cl = {
840
- i18n: { messages: ul }
841
- }, dl = /* @__PURE__ */ $({
842
- ...cl,
867
+ }, dl = {
868
+ i18n: { messages: cl }
869
+ }, pl = /* @__PURE__ */ $({
870
+ ...dl,
843
871
  __name: "select-filter-button",
844
872
  props: {
845
873
  /**
@@ -892,111 +920,111 @@ const He = il.exports, ul = {
892
920
  },
893
921
  emits: ["input", "update"],
894
922
  setup(a, { emit: e }) {
895
- var J, S;
896
- const t = a, l = ie(), { t: n } = G(), o = x(""), s = w(t, "options"), u = x(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: i, setCachedValues: d, resetCache: y } = he(
897
- u,
923
+ var z, g;
924
+ const t = a, l = re(), { t: n } = G(), s = L(""), i = w(t, "options"), d = L(t.options.listboxItems ?? []), { cachedSelectedListboxOptions: u, setCachedValues: f, resetCache: p } = Se(
925
+ d,
898
926
  w(t, "value"),
899
- w(s.value, "multiple")
900
- ), { cachedSelectedListboxOptions: h } = he(
901
- u,
927
+ w(i.value, "multiple")
928
+ ), { cachedSelectedListboxOptions: F } = Se(
929
+ d,
902
930
  w(t, "defaultValue"),
903
- w(s.value, "multiple")
904
- ), { internalFilterValue: F, isSecondaryButtonDisabled: C, isApplyButtonDisabled: A } = K(i, h);
905
- z(s, () => {
906
- u.value = s.value.listboxItems ?? [];
931
+ w(i.value, "multiple")
932
+ ), { internalFilterValue: h, isSecondaryButtonDisabled: T, isApplyButtonDisabled: _ } = K(u, F);
933
+ W(i, () => {
934
+ d.value = i.value.listboxItems ?? [];
907
935
  });
908
- const L = $e(
909
- o,
910
- u,
911
- (S = (J = t.options) == null ? void 0 : J.search) == null ? void 0 : S.searchEvent
912
- ), g = r(() => n("noFiltersMatchThisSearch")), R = r(() => t.label), P = r(() => {
913
- var c, V, M, p;
914
- const _ = !((c = t == null ? void 0 : t.options) != null && c.multiple) && (t == null ? void 0 : t.value), m = ((M = ((V = t == null ? void 0 : t.options) == null ? void 0 : V.multiple) && t.value) == null ? void 0 : M.length) === 1;
915
- if (_ || m) {
916
- let E = (p = t.options.listboxItems.flatMap((O) => O.items ? O.items : O).find(
917
- ({ value: O }) => {
918
- var q;
919
- return Array.isArray(t.value) ? (q = t == null ? void 0 : t.value) == null ? void 0 : q.includes(O) : O === t.value;
936
+ const R = ke(
937
+ s,
938
+ d,
939
+ (g = (z = t.options) == null ? void 0 : z.search) == null ? void 0 : g.searchEvent
940
+ ), C = r(() => n("noFiltersMatchThisSearch")), O = r(() => t.label), I = r(() => {
941
+ var E, V, M, o;
942
+ const y = !((E = t == null ? void 0 : t.options) != null && E.multiple) && (t == null ? void 0 : t.value), m = ((M = ((V = t == null ? void 0 : t.options) == null ? void 0 : V.multiple) && t.value) == null ? void 0 : M.length) === 1;
943
+ if (y || m) {
944
+ let B = (o = t.options.listboxItems.flatMap((x) => x.items ? x.items : x).find(
945
+ ({ value: x }) => {
946
+ var j;
947
+ return Array.isArray(t.value) ? (j = t == null ? void 0 : t.value) == null ? void 0 : j.includes(x) : x === t.value;
920
948
  }
921
- )) == null ? void 0 : p.label;
922
- return !E && t.value && (E = t.value[0]), le(E, 12);
949
+ )) == null ? void 0 : o.label;
950
+ return !B && t.value && (B = t.value[0]), le(B, 12);
923
951
  }
924
952
  return null;
925
- }), B = r(() => pe(`filter-listbox-${t.field}`)), b = (_) => {
926
- F.value = _;
927
- const { onlySlot: m, ...c } = t;
953
+ }), S = r(() => fe(`filter-listbox-${t.field}`)), v = (y) => {
954
+ h.value = y;
955
+ const { onlySlot: m, ...E } = t;
928
956
  if (t.options.multiple) {
929
- const M = _.length ? F.value.map(({ value: p }) => p) : null;
930
- e(v.INPUT, { ...c, value: M });
957
+ const M = y.length ? h.value.map(({ value: o }) => o) : null;
958
+ e(b.INPUT, { ...E, value: M });
931
959
  return;
932
960
  }
933
- const V = _.length ? _[0].value : null;
934
- e(v.INPUT, { ...c, value: V });
935
- }, D = () => {
936
- var V, M, p;
937
- const { onlySlot: _, ...m } = t;
961
+ const V = y.length ? y[0].value : null;
962
+ e(b.INPUT, { ...E, value: V });
963
+ }, A = () => {
964
+ var V, M, o;
965
+ const { onlySlot: y, ...m } = t;
938
966
  if (t.options.multiple) {
939
- F.value && ((V = F.value) == null ? void 0 : V.length) === 0 && (F.value = t.defaultValue !== null ? h.value : void 0);
940
- const f = (M = F.value) != null && M.length ? (p = F.value) == null ? void 0 : p.map(({ value: E }) => E) : null;
941
- e(v.UPDATE, {
967
+ h.value && ((V = h.value) == null ? void 0 : V.length) === 0 && (h.value = t.defaultValue !== null ? F.value : void 0);
968
+ const c = (M = h.value) != null && M.length ? (o = h.value) == null ? void 0 : o.map(({ value: B }) => B) : null;
969
+ e(b.UPDATE, {
942
970
  ...m,
943
- value: f
971
+ value: c
944
972
  });
945
973
  return;
946
974
  }
947
- const c = F.value.length ? F.value[0].value : void 0;
948
- e(v.UPDATE, { ...m, value: c });
949
- }, I = () => {
950
- F.value = i.value;
975
+ const E = h.value.length ? h.value[0].value : void 0;
976
+ e(b.UPDATE, { ...m, value: E });
977
+ }, P = () => {
978
+ h.value = u.value;
951
979
  }, k = () => {
952
- o.value && (o.value = "");
953
- }, T = () => {
954
- d(h.value), F.value = h.value, D();
980
+ s.value && (s.value = "");
981
+ }, D = () => {
982
+ f(F.value), h.value = F.value, A();
955
983
  }, N = () => {
956
- y(), F.value = [], D();
957
- }, j = r(() => {
958
- var c, V;
984
+ p(), h.value = [], A();
985
+ }, H = r(() => {
986
+ var E, V;
959
987
  if (t.value == null || !t.options.multiple)
960
988
  return null;
961
- const _ = (c = t.options.listboxItems) == null ? void 0 : c.reduce((M, p) => {
962
- var f;
963
- return M += (f = p == null ? void 0 : p.items) != null && f.length ? p.items.length : 1, M;
989
+ const y = (E = t.options.listboxItems) == null ? void 0 : E.reduce((M, o) => {
990
+ var c;
991
+ return M += (c = o == null ? void 0 : o.items) != null && c.length ? o.items.length : 1, M;
964
992
  }, 0), m = (V = t.value) == null ? void 0 : V.length;
965
- return m === 1 ? null : m === _ ? n("all") : m;
993
+ return m === 1 ? null : m === y ? n("all") : m;
966
994
  });
967
- return { __sfc: !0, slots: l, emit: e, props: t, t: n, searchTerm: o, optionsRef: s, itemsRef: u, cachedSelectedListboxOptions: i, setCachedValues: d, resetCache: y, cachedDefaultSelectedListboxOptions: h, internalFilterValue: F, isSecondaryButtonDisabled: C, isApplyButtonDisabled: A, filteredItems: L, noResultsMessage: g, buttonLabel: R, buttonSecondaryLabel: P, listboxFilterId: B, onOptionSelected: b, updateFilter: D, openFilter: I, closeFilter: k, resetFilter: T, clearFilter: N, appliedFiltersCount: j, BentoSearchBar: ve, BentoDivider: _e, BentoListbox: bt, BentoBaseFilter: X };
995
+ return { __sfc: !0, slots: l, emit: e, props: t, t: n, searchTerm: s, optionsRef: i, itemsRef: d, cachedSelectedListboxOptions: u, setCachedValues: f, resetCache: p, cachedDefaultSelectedListboxOptions: F, internalFilterValue: h, isSecondaryButtonDisabled: T, isApplyButtonDisabled: _, filteredItems: R, noResultsMessage: C, buttonLabel: O, buttonSecondaryLabel: I, listboxFilterId: S, onOptionSelected: v, updateFilter: A, openFilter: P, closeFilter: k, resetFilter: D, clearFilter: N, appliedFiltersCount: H, BentoSearchBar: _e, BentoDivider: ye, BentoListbox: vt, BentoBaseFilter: X };
968
996
  }
969
997
  });
970
- var pl = function() {
971
- var n, o, s, u, i, d, y, h, F, C, A, L, g, R, P, B;
998
+ var fl = function() {
999
+ var n, s, i, d, u, f, p, F, h, T, _, R, C, O, I, S;
972
1000
  var e = this, t = e._self._c, l = e._self._setupProxy;
973
- return t(l.BentoBaseFilter, { attrs: { "applied-filters-count": l.appliedFiltersCount, "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, disabled: e.disabled, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": !1, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (o = e.options) == null ? void 0 : o.tooltipText, value: e.value }, on: { apply: l.updateFilter, clear: l.clearFilter, reset: l.resetFilter, open: l.openFilter, close: l.closeFilter } }, [t("div", { staticClass: "b-select-filter-button__search-bar" }, [t(l.BentoSearchBar, { attrs: { "debounce-time": (u = (s = e.options) == null ? void 0 : s.search) == null ? void 0 : u.debounceTime, value: l.searchTerm, "input-field-aria-label": l.t("searchFilter", { filter: e.label.toLocaleLowerCase() }) }, on: { input: function(b) {
974
- l.searchTerm = b;
975
- } } })], 1), t("div", { staticClass: "b-select-filter-button__divider" }, [t(l.BentoDivider)], 1), t(l.BentoListbox, { staticClass: "b-select-filter-button__wrapper", attrs: { id: l.listboxFilterId, "aria-label": e.label, "component-loading": (i = e.options) == null ? void 0 : i.loading, "empty-state": (d = e.options) == null ? void 0 : d.emptyState, "has-more-items": (h = (y = e.options) == null ? void 0 : y.lazy) == null ? void 0 : h.hasMoreItems, items: l.filteredItems, "is-option-disabled": (F = e.options) == null ? void 0 : F.isOptionDisabled, "lazy-load-type": (A = (C = e.options) == null ? void 0 : C.lazy) == null ? void 0 : A.lazyLoadType, loading: (g = (L = e.options) == null ? void 0 : L.lazy) == null ? void 0 : g.loading, multiple: (R = e.options) == null ? void 0 : R.multiple, "static-categories": (P = e.options) == null ? void 0 : P.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "selected-value": l.internalFilterValue, "virtual-scroll": (B = e.options) == null ? void 0 : B.virtualScroll }, on: { select: l.onOptionSelected, "space-pressed": l.onOptionSelected, "enter-pressed": l.onOptionSelected, "show-more": function(b) {
976
- var D, I;
977
- (I = (D = e.options) == null ? void 0 : D.lazy) == null || I.showMoreEvent();
978
- } }, scopedSlots: e._u([e._l(l.slots, function(b, D) {
979
- return { key: D, fn: function(I) {
980
- return [e._t(D, null, null, I)];
1001
+ return t(l.BentoBaseFilter, { attrs: { "applied-filters-count": l.appliedFiltersCount, "button-label": l.buttonLabel, "button-secondary-label": l.buttonSecondaryLabel, disabled: e.disabled, "disable-apply-button": l.isApplyButtonDisabled, "disable-secondary-button": l.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": !1, "tooltip-position": (n = e.options) == null ? void 0 : n.tooltipPosition, "tooltip-text": (s = e.options) == null ? void 0 : s.tooltipText, value: e.value }, on: { apply: l.updateFilter, clear: l.clearFilter, reset: l.resetFilter, open: l.openFilter, close: l.closeFilter } }, [t("div", { staticClass: "b-select-filter-button__search-bar" }, [t(l.BentoSearchBar, { attrs: { "debounce-time": (d = (i = e.options) == null ? void 0 : i.search) == null ? void 0 : d.debounceTime, value: l.searchTerm, "input-field-aria-label": l.t("searchFilter", { filter: e.label.toLocaleLowerCase() }) }, on: { input: function(v) {
1002
+ l.searchTerm = v;
1003
+ } } })], 1), t("div", { staticClass: "b-select-filter-button__divider" }, [t(l.BentoDivider)], 1), t(l.BentoListbox, { staticClass: "b-select-filter-button__wrapper", attrs: { id: l.listboxFilterId, "aria-label": e.label, "component-loading": (u = e.options) == null ? void 0 : u.loading, "empty-state": (f = e.options) == null ? void 0 : f.emptyState, "has-more-items": (F = (p = e.options) == null ? void 0 : p.lazy) == null ? void 0 : F.hasMoreItems, items: l.filteredItems, "is-option-disabled": (h = e.options) == null ? void 0 : h.isOptionDisabled, "lazy-load-type": (_ = (T = e.options) == null ? void 0 : T.lazy) == null ? void 0 : _.lazyLoadType, loading: (C = (R = e.options) == null ? void 0 : R.lazy) == null ? void 0 : C.loading, multiple: (O = e.options) == null ? void 0 : O.multiple, "static-categories": (I = e.options) == null ? void 0 : I.staticCategories, "no-results-message": l.noResultsMessage, searching: !!l.searchTerm, "selected-value": l.internalFilterValue, "virtual-scroll": (S = e.options) == null ? void 0 : S.virtualScroll }, on: { select: l.onOptionSelected, "space-pressed": l.onOptionSelected, "enter-pressed": l.onOptionSelected, "show-more": function(v) {
1004
+ var A, P;
1005
+ (P = (A = e.options) == null ? void 0 : A.lazy) == null || P.showMoreEvent();
1006
+ } }, scopedSlots: e._u([e._l(l.slots, function(v, A) {
1007
+ return { key: A, fn: function(P) {
1008
+ return [e._t(A, null, null, P)];
981
1009
  } };
982
1010
  })], null, !0) })], 1);
983
- }, fl = [], bl = /* @__PURE__ */ U(
984
- dl,
1011
+ }, bl = [], vl = /* @__PURE__ */ U(
985
1012
  pl,
986
1013
  fl,
1014
+ bl,
987
1015
  !1,
988
1016
  null,
989
1017
  "375f98b8"
990
1018
  );
991
- const vl = bl.exports, _l = {
1019
+ const _l = vl.exports, yl = {
992
1020
  "en-US": {
993
1021
  noFiltersMatchThisSearch: "No filters match this search"
994
1022
  }
995
- }, yl = {
996
- i18n: { messages: _l },
1023
+ }, ml = {
1024
+ i18n: { messages: yl },
997
1025
  name: "select-filter-dropdown"
998
- }, ml = /* @__PURE__ */ $({
999
- ...yl,
1026
+ }, Fl = /* @__PURE__ */ $({
1027
+ ...ml,
1000
1028
  props: {
1001
1029
  /**
1002
1030
  * Disables the filter from being interacted with.
@@ -1049,35 +1077,35 @@ const vl = bl.exports, _l = {
1049
1077
  },
1050
1078
  emits: ["input", "update"],
1051
1079
  setup(a, { emit: e }) {
1052
- const t = a, { t: l } = G(), n = ie(), { internalFilterValue: o } = K(w(t, "value"), w(t, "defaultValue")), s = w(t, "options"), u = x(t.options.listboxItems);
1053
- z(s, () => {
1054
- u.value = s.value.listboxItems;
1080
+ const t = a, { t: l } = G(), n = re(), { internalFilterValue: s } = K(w(t, "value"), w(t, "defaultValue")), i = w(t, "options"), d = L(t.options.listboxItems);
1081
+ W(i, () => {
1082
+ d.value = i.value.listboxItems;
1055
1083
  });
1056
- const i = r(() => l("noFiltersMatchThisSearch"));
1057
- return { __sfc: !0, t: l, slots: n, emit: e, props: t, internalFilterValue: o, optionsRef: s, itemsRef: u, noResultsMessage: i, onOptionSelected: (y) => {
1058
- o.value = y;
1059
- const { onlySlot: h, ...F } = t;
1060
- e(v.INPUT, { ...F, value: o.value });
1061
- }, BentoDropdown: ct };
1084
+ const u = r(() => l("noFiltersMatchThisSearch"));
1085
+ return { __sfc: !0, t: l, slots: n, emit: e, props: t, internalFilterValue: s, optionsRef: i, itemsRef: d, noResultsMessage: u, onOptionSelected: (p) => {
1086
+ s.value = p;
1087
+ const { onlySlot: F, ...h } = t;
1088
+ e(b.INPUT, { ...h, value: s.value });
1089
+ }, BentoDropdown: dt };
1062
1090
  }
1063
1091
  });
1064
- var Fl = function() {
1065
- var n, o, s, u, i;
1092
+ var hl = function() {
1093
+ var n, s, i, d, u;
1066
1094
  var e = this, t = e._self._c, l = e._self._setupProxy;
1067
- return t(l.BentoDropdown, { attrs: { value: l.internalFilterValue, items: e.options.listboxItems, search: (n = e.options) == null ? void 0 : n.search, multiple: (o = e.options) == null ? void 0 : o.multiple, "static-categories": (s = e.options) == null ? void 0 : s.staticCategories, "no-results-message": l.noResultsMessage, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "component-loading": (u = e.options) == null ? void 0 : u.loading, "empty-state": (i = e.options) == null ? void 0 : i.emptyState, disabled: e.disabled }, on: { input: l.onOptionSelected }, scopedSlots: e._u([e._l(l.slots, function(d, y) {
1068
- return { key: y, fn: function(h) {
1069
- return [e._t(y, null, null, h)];
1095
+ return t(l.BentoDropdown, { attrs: { value: l.internalFilterValue, items: e.options.listboxItems, search: (n = e.options) == null ? void 0 : n.search, multiple: (s = e.options) == null ? void 0 : s.multiple, "static-categories": (i = e.options) == null ? void 0 : i.staticCategories, "no-results-message": l.noResultsMessage, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "component-loading": (d = e.options) == null ? void 0 : d.loading, "empty-state": (u = e.options) == null ? void 0 : u.emptyState, disabled: e.disabled }, on: { input: l.onOptionSelected }, scopedSlots: e._u([e._l(l.slots, function(f, p) {
1096
+ return { key: p, fn: function(F) {
1097
+ return [e._t(p, null, null, F)];
1070
1098
  } };
1071
1099
  })], null, !0) });
1072
- }, hl = [], Sl = /* @__PURE__ */ U(
1073
- ml,
1100
+ }, Sl = [], gl = /* @__PURE__ */ U(
1074
1101
  Fl,
1075
1102
  hl,
1103
+ Sl,
1076
1104
  !1,
1077
1105
  null,
1078
1106
  null
1079
1107
  );
1080
- const gl = Sl.exports, ae = {
1108
+ const Cl = gl.exports, ae = {
1081
1109
  /**
1082
1110
  * Disables the filter from being interacted with.
1083
1111
  */
@@ -1128,48 +1156,48 @@ const gl = Sl.exports, ae = {
1128
1156
  type: [String, Number, Array],
1129
1157
  default: void 0
1130
1158
  }
1131
- }, Bl = {}, Cl = /* @__PURE__ */ $({
1159
+ }, Bl = {}, Dl = /* @__PURE__ */ $({
1132
1160
  ...Bl,
1133
1161
  __name: "select-filter",
1134
1162
  props: ae,
1135
1163
  emits: ["input", "update"],
1136
1164
  setup(a, { emit: e }) {
1137
- const t = a, l = ie(), n = (s) => e("input", s), o = (s) => e("update", s);
1138
- return Ie(() => {
1139
- var s;
1140
- (s = t == null ? void 0 : t.options) != null && s.messages && fe(
1165
+ const t = a, l = re(), n = (i) => e("input", i), s = (i) => e("update", i);
1166
+ return Ee(() => {
1167
+ var i;
1168
+ (i = t == null ? void 0 : t.options) != null && i.messages && be(
1141
1169
  'BentoFilterBar filter of type "BentoFilterItemType.SELECT" options message property',
1142
1170
  `Please remove the "options.messages" property from this filter, it is not required any more for persistent filters.
1143
1171
  This will be the default behavior in the v2 and "options.messages" will be removed.`,
1144
1172
  "2.0.0"
1145
1173
  );
1146
- }), { __sfc: !0, slots: l, emit: e, props: t, onInput: n, onUpdate: o, SelectFilterButton: vl, SelectFilterDropdown: gl };
1174
+ }), { __sfc: !0, slots: l, emit: e, props: t, onInput: n, onUpdate: s, SelectFilterButton: _l, SelectFilterDropdown: Cl };
1147
1175
  }
1148
1176
  });
1149
- var Dl = function() {
1177
+ var Al = function() {
1150
1178
  var e = this, t = e._self._c, l = e._self._setupProxy;
1151
- return e.onlySlot ? t(l.SelectFilterDropdown, { attrs: { disabled: e.disabled, "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: l.onInput, update: l.onUpdate }, scopedSlots: e._u([e._l(l.slots, function(n, o) {
1152
- return { key: o, fn: function(s) {
1153
- return [e._t(o, null, null, s)];
1179
+ return e.onlySlot ? t(l.SelectFilterDropdown, { attrs: { disabled: e.disabled, "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: l.onInput, update: l.onUpdate }, scopedSlots: e._u([e._l(l.slots, function(n, s) {
1180
+ return { key: s, fn: function(i) {
1181
+ return [e._t(s, null, null, i)];
1154
1182
  } };
1155
- })], null, !0) }) : t(l.SelectFilterButton, { attrs: { disabled: e.disabled, "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: l.onInput, update: l.onUpdate }, scopedSlots: e._u([e._l(l.slots, function(n, o) {
1156
- return { key: o, fn: function(s) {
1157
- return [e._t(o, null, null, s)];
1183
+ })], null, !0) }) : t(l.SelectFilterButton, { attrs: { disabled: e.disabled, "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: l.onInput, update: l.onUpdate }, scopedSlots: e._u([e._l(l.slots, function(n, s) {
1184
+ return { key: s, fn: function(i) {
1185
+ return [e._t(s, null, null, i)];
1158
1186
  } };
1159
1187
  })], null, !0) });
1160
- }, Al = [], Tl = /* @__PURE__ */ U(
1161
- Cl,
1188
+ }, Tl = [], Pl = /* @__PURE__ */ U(
1162
1189
  Dl,
1163
1190
  Al,
1191
+ Tl,
1164
1192
  !1,
1165
1193
  null,
1166
1194
  null
1167
1195
  );
1168
- const ee = Tl.exports, Pl = $({
1196
+ const ee = Pl.exports, Il = $({
1169
1197
  name: "bento-select-avatar-filter",
1170
1198
  components: {
1171
1199
  BentoSelectFilter: ee,
1172
- BentoAvatar: yt
1200
+ BentoAvatar: mt
1173
1201
  },
1174
1202
  props: {
1175
1203
  ...ae,
@@ -1184,34 +1212,34 @@ const ee = Tl.exports, Pl = $({
1184
1212
  default: void 0
1185
1213
  }
1186
1214
  },
1187
- emits: [v.INPUT, v.UPDATE],
1215
+ emits: [b.INPUT, b.UPDATE],
1188
1216
  setup(a, { emit: e }) {
1189
1217
  return {
1190
1218
  // Enums
1191
- BentoFilterEvent: v,
1219
+ BentoFilterEvent: b,
1192
1220
  // Methods
1193
- onUpdate: (l) => e(v.UPDATE, l)
1221
+ onUpdate: (l) => e(b.UPDATE, l)
1194
1222
  };
1195
1223
  }
1196
1224
  });
1197
- var Il = function() {
1225
+ var El = function() {
1198
1226
  var e = this, t = e._self._c;
1199
1227
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function({ label: l, data: n }) {
1200
1228
  return [t("bento-avatar", { attrs: { username: l, src: n } })];
1201
1229
  } }]) }, "bento-select-filter", e.$props, !1));
1202
- }, El = [], xl = /* @__PURE__ */ U(
1203
- Pl,
1230
+ }, Ll = [], xl = /* @__PURE__ */ U(
1204
1231
  Il,
1205
1232
  El,
1233
+ Ll,
1206
1234
  !1,
1207
1235
  null,
1208
1236
  null
1209
1237
  );
1210
- const je = xl.exports, Ll = $({
1238
+ const qe = xl.exports, Rl = $({
1211
1239
  name: "bento-select-country-filter",
1212
1240
  components: {
1213
1241
  BentoSelectFilter: ee,
1214
- ListboxOptionTag: ke
1242
+ ListboxOptionTag: we
1215
1243
  },
1216
1244
  props: {
1217
1245
  ...ae,
@@ -1226,35 +1254,35 @@ const je = xl.exports, Ll = $({
1226
1254
  default: void 0
1227
1255
  }
1228
1256
  },
1229
- emits: [v.INPUT, v.UPDATE],
1257
+ emits: [b.INPUT, b.UPDATE],
1230
1258
  setup(a, { emit: e }) {
1231
1259
  return {
1232
1260
  // Enums
1233
- BentoFilterEvent: v,
1261
+ BentoFilterEvent: b,
1234
1262
  // Methods
1235
1263
  onUpdate: (l) => {
1236
- e(v.UPDATE, l);
1264
+ e(b.UPDATE, l);
1237
1265
  }
1238
1266
  };
1239
1267
  }
1240
1268
  });
1241
- var Rl = function() {
1269
+ var Ol = function() {
1242
1270
  var e = this, t = e._self._c;
1243
1271
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function(l) {
1244
1272
  return [t("listbox-option-tag", { attrs: { option: l } })];
1245
1273
  } }]) }, "bento-select-filter", e.$props, !1));
1246
- }, Ol = [], Ul = /* @__PURE__ */ U(
1247
- Ll,
1274
+ }, Ul = [], $l = /* @__PURE__ */ U(
1248
1275
  Rl,
1249
1276
  Ol,
1277
+ Ul,
1250
1278
  !1,
1251
1279
  null,
1252
1280
  null
1253
1281
  );
1254
- const qe = Ul.exports, $l = {
1282
+ const Je = $l.exports, kl = {
1255
1283
  name: "bento-select-country-filter"
1256
- }, kl = /* @__PURE__ */ $({
1257
- ...$l,
1284
+ }, wl = /* @__PURE__ */ $({
1285
+ ...kl,
1258
1286
  props: {
1259
1287
  ...ae,
1260
1288
  /**
@@ -1269,41 +1297,41 @@ const qe = Ul.exports, $l = {
1269
1297
  default: void 0
1270
1298
  }
1271
1299
  },
1272
- emits: [v.INPUT, v.UPDATE],
1300
+ emits: [b.INPUT, b.UPDATE],
1273
1301
  setup(a, { emit: e }) {
1274
- const t = a, l = x(t.options.variant), n = x(t.options.listboxItems);
1275
- z([() => t.options.variant, () => t.options.listboxItems], () => {
1302
+ const t = a, l = L(t.options.variant), n = L(t.options.listboxItems);
1303
+ W([() => t.options.variant, () => t.options.listboxItems], () => {
1276
1304
  l.value = t.options.variant, n.value = t.options.listboxItems;
1277
1305
  });
1278
- const o = (i) => e(v.UPDATE, i), s = _t(l, n), u = r(() => ({
1306
+ const s = (u) => e(b.UPDATE, u), i = yt(l, n), d = r(() => ({
1279
1307
  ...t != null && t.options ? t.options : {},
1280
- listboxItems: s.value
1308
+ listboxItems: i.value
1281
1309
  }));
1282
- return (!l.value || l.value === "custom") && fe(
1310
+ return (!l.value || l.value === "custom") && be(
1283
1311
  'BentoSelectCountryFilter type with `options.variant==="custom"`',
1284
1312
  "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
1285
1313
  "2.0.0"
1286
- ), { __sfc: !0, props: t, emit: e, variant: l, listboxItems: n, onUpdate: o, countryItems: s, countryOptions: u, BentoFilterEvent: v, BentoTypography: se, BentoSelectFilter: ee };
1314
+ ), { __sfc: !0, props: t, emit: e, variant: l, listboxItems: n, onUpdate: s, countryItems: i, countryOptions: d, BentoFilterEvent: b, BentoTypography: ie, BentoSelectFilter: ee };
1287
1315
  }
1288
1316
  });
1289
- var Vl = function() {
1317
+ var Nl = function() {
1290
1318
  var e = this, t = e._self._c, l = e._self._setupProxy;
1291
1319
  return t(l.BentoSelectFilter, e._b({ attrs: { field: e.field, label: e.label, options: l.countryOptions }, on: { update: l.onUpdate, input: (n) => e.$emit(l.BentoFilterEvent.INPUT, n) }, scopedSlots: e._u([{ key: "default", fn: function({ label: n }) {
1292
1320
  return [t(l.BentoTypography, { attrs: { el: "span" } }, [e._v(e._s(n))])];
1293
1321
  } }]) }, "bento-select-filter", l.props, !1));
1294
- }, wl = [], Nl = /* @__PURE__ */ U(
1295
- kl,
1296
- Vl,
1322
+ }, Vl = [], Ml = /* @__PURE__ */ U(
1297
1323
  wl,
1324
+ Nl,
1325
+ Vl,
1298
1326
  !1,
1299
1327
  null,
1300
1328
  null
1301
1329
  );
1302
- const Je = Nl.exports, Ml = $({
1330
+ const Ye = Ml.exports, Hl = $({
1303
1331
  name: "bento-select-payment-method-filter",
1304
1332
  components: {
1305
1333
  BentoSelectFilter: ee,
1306
- BentoPaymentMethod: vt
1334
+ BentoPaymentMethod: _t
1307
1335
  },
1308
1336
  props: {
1309
1337
  ...ae,
@@ -1318,34 +1346,34 @@ const Je = Nl.exports, Ml = $({
1318
1346
  default: void 0
1319
1347
  }
1320
1348
  },
1321
- emits: [v.INPUT, v.UPDATE],
1349
+ emits: [b.INPUT, b.UPDATE],
1322
1350
  setup(a, { emit: e }) {
1323
1351
  return {
1324
1352
  // Enums
1325
- BentoFilterEvent: v,
1353
+ BentoFilterEvent: b,
1326
1354
  // Methods
1327
- onUpdate: (l) => e(v.UPDATE, l)
1355
+ onUpdate: (l) => e(b.UPDATE, l)
1328
1356
  };
1329
1357
  }
1330
1358
  });
1331
- var Hl = function() {
1359
+ var jl = function() {
1332
1360
  var e = this, t = e._self._c;
1333
1361
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function({ value: l, label: n }) {
1334
1362
  return [t("bento-payment-method", { attrs: { type: l, label: n } })];
1335
1363
  } }]) }, "bento-select-filter", e.$props, !1));
1336
- }, jl = [], ql = /* @__PURE__ */ U(
1337
- Ml,
1364
+ }, ql = [], Jl = /* @__PURE__ */ U(
1338
1365
  Hl,
1339
1366
  jl,
1367
+ ql,
1340
1368
  !1,
1341
1369
  null,
1342
1370
  null
1343
1371
  );
1344
- const Ye = ql.exports, Jl = $({
1372
+ const We = Jl.exports, Yl = $({
1345
1373
  name: "bento-select-country-filter",
1346
1374
  components: {
1347
1375
  BentoSelectFilter: ee,
1348
- ListboxOptionTag: ke
1376
+ ListboxOptionTag: we
1349
1377
  },
1350
1378
  props: {
1351
1379
  ...ae,
@@ -1360,12 +1388,12 @@ const Ye = ql.exports, Jl = $({
1360
1388
  default: void 0
1361
1389
  }
1362
1390
  },
1363
- emits: [v.INPUT, v.UPDATE],
1391
+ emits: [b.INPUT, b.UPDATE],
1364
1392
  setup(a, { emit: e }) {
1365
- const t = (o) => e(v.UPDATE, o), l = r(
1393
+ const t = (s) => e(b.UPDATE, s), l = r(
1366
1394
  () => {
1367
- var o, s;
1368
- return (s = (o = a == null ? void 0 : a.options) == null ? void 0 : o.listboxItems) == null ? void 0 : s.map(({ label: u, value: i, variant: d }) => ({ label: u, value: i, data: d }));
1395
+ var s, i;
1396
+ return (i = (s = a == null ? void 0 : a.options) == null ? void 0 : s.listboxItems) == null ? void 0 : i.map(({ label: d, value: u, variant: f }) => ({ label: d, value: u, data: f }));
1369
1397
  }
1370
1398
  );
1371
1399
  return {
@@ -1377,24 +1405,24 @@ const Ye = ql.exports, Jl = $({
1377
1405
  // Methods
1378
1406
  onUpdate: t,
1379
1407
  // Enums
1380
- BentoFilterEvent: v
1408
+ BentoFilterEvent: b
1381
1409
  };
1382
1410
  }
1383
1411
  });
1384
- var Yl = function() {
1412
+ var Wl = function() {
1385
1413
  var e = this, t = e._self._c;
1386
1414
  return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (l) => e.$emit(e.BentoFilterEvent.INPUT, l) }, scopedSlots: e._u([{ key: "default", fn: function({ label: l, data: n }) {
1387
1415
  return [t("listbox-option-tag", { attrs: { option: { value: l, data: n, label: "" } } })];
1388
1416
  } }]) }, "bento-select-filter", e.$props, !1));
1389
- }, Wl = [], zl = /* @__PURE__ */ U(
1390
- Jl,
1417
+ }, zl = [], Gl = /* @__PURE__ */ U(
1391
1418
  Yl,
1392
1419
  Wl,
1420
+ zl,
1393
1421
  !1,
1394
1422
  null,
1395
1423
  null
1396
1424
  );
1397
- const We = zl.exports, Gl = {
1425
+ const ze = Gl.exports, Kl = {
1398
1426
  "en-US": {
1399
1427
  no: "No",
1400
1428
  yes: "Yes"
@@ -1407,10 +1435,10 @@ const We = zl.exports, Gl = {
1407
1435
  no: "Não",
1408
1436
  yes: "Sim"
1409
1437
  }
1410
- }, Kl = $({
1438
+ }, Zl = $({
1411
1439
  name: "bento-boolean-filter",
1412
- i18n: { messages: Gl },
1413
- components: { BentoBaseFilter: X, BentoRadioGroup: ot },
1440
+ i18n: { messages: Kl },
1441
+ components: { BentoBaseFilter: X, BentoRadioGroup: st },
1414
1442
  props: {
1415
1443
  /**
1416
1444
  * Disables the filter from being interacted with.
@@ -1451,12 +1479,12 @@ const We = zl.exports, Gl = {
1451
1479
  default: void 0
1452
1480
  }
1453
1481
  },
1454
- emits: [v.INPUT, v.UPDATE],
1482
+ emits: [b.INPUT, b.UPDATE],
1455
1483
  setup(a, { emit: e }) {
1456
- const { t } = G(), l = (B) => typeof B == "boolean" ? B == null ? void 0 : B.toString() : B, n = (B) => {
1457
- var b, D, I, k;
1458
- return ((D = (b = a == null ? void 0 : a.options) == null ? void 0 : b.positiveOption) == null ? void 0 : D.value) !== void 0 && ((k = (I = a == null ? void 0 : a.options) == null ? void 0 : I.negativeOption) == null ? void 0 : k.value) !== void 0 && typeof a.options.positiveOption.value == "boolean" && typeof a.options.negativeOption.value == "boolean" && typeof B == "string" ? B === "true" : B;
1459
- }, o = r(() => l(a.defaultValue)), s = r(() => l(a.value)), u = r(() => a.options && a.options.positiveOption && a.options.negativeOption ? [
1484
+ const { t } = G(), l = (S) => typeof S == "boolean" ? S == null ? void 0 : S.toString() : S, n = (S) => {
1485
+ var v, A, P, k;
1486
+ return ((A = (v = a == null ? void 0 : a.options) == null ? void 0 : v.positiveOption) == null ? void 0 : A.value) !== void 0 && ((k = (P = a == null ? void 0 : a.options) == null ? void 0 : P.negativeOption) == null ? void 0 : k.value) !== void 0 && typeof a.options.positiveOption.value == "boolean" && typeof a.options.negativeOption.value == "boolean" && typeof S == "string" ? S === "true" : S;
1487
+ }, s = r(() => l(a.defaultValue)), i = r(() => l(a.value)), d = r(() => a.options && a.options.positiveOption && a.options.negativeOption ? [
1460
1488
  {
1461
1489
  ...a.options.positiveOption,
1462
1490
  value: l(a.options.positiveOption.value)
@@ -1468,78 +1496,78 @@ const We = zl.exports, Gl = {
1468
1496
  ] : [
1469
1497
  { value: "yes", label: t("yes") },
1470
1498
  { value: "no", label: t("no") }
1471
- ]), { internalFilterValue: i, isSecondaryButtonDisabled: d, isApplyButtonDisabled: y } = K(
1472
- s,
1473
- o
1474
- ), h = r(() => a.label), F = r(
1499
+ ]), { internalFilterValue: u, isSecondaryButtonDisabled: f, isApplyButtonDisabled: p } = K(
1500
+ i,
1501
+ s
1502
+ ), F = r(() => a.label), h = r(
1475
1503
  () => {
1476
- var B;
1477
- return le((B = u.value.find(({ value: b }) => b === s.value)) == null ? void 0 : B.label, 12);
1504
+ var S;
1505
+ return le((S = d.value.find(({ value: v }) => v === i.value)) == null ? void 0 : S.label, 12);
1478
1506
  }
1479
- ), C = r(() => ({
1507
+ ), T = r(() => ({
1480
1508
  "b-boolean-filter--only-slot": a.onlySlot
1481
1509
  }));
1482
1510
  ue(() => {
1483
- i.value || (i.value = null);
1511
+ u.value || (u.value = null);
1484
1512
  });
1485
- const A = (B) => {
1486
- i.value = B, e(v.INPUT, {
1513
+ const _ = (S) => {
1514
+ u.value = S, e(b.INPUT, {
1487
1515
  ...a,
1488
- value: n(i.value)
1516
+ value: n(u.value)
1489
1517
  });
1490
- }, L = () => {
1491
- i.value = s.value;
1492
- }, g = () => {
1493
- e(v.UPDATE, {
1518
+ }, R = () => {
1519
+ u.value = i.value;
1520
+ }, C = () => {
1521
+ e(b.UPDATE, {
1494
1522
  ...a,
1495
- value: n(i.value)
1523
+ value: n(u.value)
1496
1524
  });
1497
1525
  };
1498
1526
  return {
1499
1527
  // Values
1500
- items: u,
1501
- conditionalClasses: C,
1502
- buttonLabel: h,
1503
- buttonSecondaryLabel: F,
1504
- internalFilterValue: i,
1505
- isApplyButtonDisabled: y,
1506
- isSecondaryButtonDisabled: d,
1507
- translatedValue: s,
1508
- translatedDefaultValue: o,
1528
+ items: d,
1529
+ conditionalClasses: T,
1530
+ buttonLabel: F,
1531
+ buttonSecondaryLabel: h,
1532
+ internalFilterValue: u,
1533
+ isApplyButtonDisabled: p,
1534
+ isSecondaryButtonDisabled: f,
1535
+ translatedValue: i,
1536
+ translatedDefaultValue: s,
1509
1537
  // Events
1510
- onInput: A,
1511
- updateFilter: g,
1538
+ onInput: _,
1539
+ updateFilter: C,
1512
1540
  clearFilter: () => {
1513
- i.value = null, g();
1541
+ u.value = null, C();
1514
1542
  },
1515
- openFilter: L,
1516
- resetFilter: () => e(v.UPDATE, { ...a, value: a.defaultValue })
1543
+ openFilter: R,
1544
+ resetFilter: () => e(b.UPDATE, { ...a, value: a.defaultValue })
1517
1545
  };
1518
1546
  }
1519
1547
  });
1520
- var Zl = function() {
1548
+ var Ql = function() {
1521
1549
  var l, n;
1522
1550
  var e = this, t = e._self._c;
1523
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { value: e.translatedValue, "default-value": e.translatedDefaultValue, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(o) {
1524
- return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1551
+ return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { value: e.translatedValue, "default-value": e.translatedDefaultValue, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(s) {
1552
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1525
1553
  } } }, [t("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
1526
- }, Ql = [], Xl = /* @__PURE__ */ U(
1527
- Kl,
1554
+ }, Xl = [], ea = /* @__PURE__ */ U(
1528
1555
  Zl,
1529
1556
  Ql,
1557
+ Xl,
1530
1558
  !1,
1531
1559
  null,
1532
1560
  "3d4b2818"
1533
1561
  );
1534
- const ze = Xl.exports, ea = {
1562
+ const Ge = ea.exports, ta = {
1535
1563
  "en-US": {
1536
1564
  from: "From",
1537
1565
  to: "To"
1538
1566
  }
1539
- }, ta = $({
1567
+ }, la = $({
1540
1568
  name: "bento-range-filter",
1541
- i18n: { messages: ea },
1542
- components: { BentoBaseFilter: X, BentoInputField: be },
1569
+ i18n: { messages: ta },
1570
+ components: { BentoBaseFilter: X, BentoInputField: ve },
1543
1571
  props: {
1544
1572
  /**
1545
1573
  * Disables the filter from being interacted with.
@@ -1575,31 +1603,31 @@ const ze = Xl.exports, ea = {
1575
1603
  */
1576
1604
  options: { type: Object, default: void 0 }
1577
1605
  },
1578
- emits: [v.INPUT, v.UPDATE],
1606
+ emits: [b.INPUT, b.UPDATE],
1579
1607
  setup(a, { emit: e }) {
1580
- const { t } = G(), l = x(null), { internalFilterValue: n, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = K(
1608
+ const { t } = G(), l = L(null), { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: i } = K(
1581
1609
  w(a, "value"),
1582
1610
  w(a, "defaultValue")
1583
- ), u = r(() => {
1584
- var I, k, T, N, j, J, S, _;
1585
- if (!((I = a.value) != null && I[0]) && !((k = a.value) != null && k[1]))
1611
+ ), d = r(() => {
1612
+ var P, k, D, N, H, z, g, y;
1613
+ if (!((P = a.value) != null && P[0]) && !((k = a.value) != null && k[1]))
1586
1614
  return null;
1587
- let P = "";
1588
- (T = a.value) != null && T[0] ? (N = a.value) != null && N[1] || (P = "≥") : P = "≤";
1589
- const B = (j = a.value) != null && j[0] ? `${le(a.value[0], 5)}` : "", b = (J = a.value) != null && J[0] && ((S = a.value) != null && S[1]) ? " - " : "", D = (_ = a.value) != null && _[1] ? `${le(a.value[1], 5)}` : "";
1590
- return `${P}${B}${b}${D}`;
1591
- }), i = r(() => a.label), d = r(() => u.value), y = r(() => ({
1615
+ let I = "";
1616
+ (D = a.value) != null && D[0] ? (N = a.value) != null && N[1] || (I = "≥") : I = "≤";
1617
+ const S = (H = a.value) != null && H[0] ? `${le(a.value[0], 5)}` : "", v = (z = a.value) != null && z[0] && ((g = a.value) != null && g[1]) ? " - " : "", A = (y = a.value) != null && y[1] ? `${le(a.value[1], 5)}` : "";
1618
+ return `${I}${S}${v}${A}`;
1619
+ }), u = r(() => a.label), f = r(() => d.value), p = r(() => ({
1592
1620
  "b-range-filter--only-slot": a.onlySlot
1593
- })), h = () => {
1594
- n.value = a.value, Te(() => l.value.focusInput());
1595
- }, F = () => {
1596
- e(v.INPUT, { ...a, value: n.value });
1597
- }, C = (P) => {
1598
- n.value = [P, n.value[1]], F();
1599
- }, A = (P) => {
1600
- n.value = [n.value[0], P], F();
1601
- }, L = () => {
1602
- n.value.some((P) => P) || (n.value = a.defaultValue !== null ? a.defaultValue : void 0), e(v.UPDATE, {
1621
+ })), F = () => {
1622
+ n.value = a.value, Pe(() => l.value.focusInput());
1623
+ }, h = () => {
1624
+ e(b.INPUT, { ...a, value: n.value });
1625
+ }, T = (I) => {
1626
+ n.value = [I, n.value[1]], h();
1627
+ }, _ = (I) => {
1628
+ n.value = [n.value[0], I], h();
1629
+ }, R = () => {
1630
+ n.value.some((I) => I) || (n.value = a.defaultValue !== null ? a.defaultValue : void 0), e(b.UPDATE, {
1603
1631
  ...a,
1604
1632
  value: n.value
1605
1633
  });
@@ -1607,64 +1635,64 @@ const ze = Xl.exports, ea = {
1607
1635
  return {
1608
1636
  // Values
1609
1637
  inputTextRef: l,
1610
- conditionalClasses: y,
1638
+ conditionalClasses: p,
1611
1639
  internalFilterValue: n,
1612
- isApplyButtonDisabled: s,
1613
- isSecondaryButtonDisabled: o,
1614
- buttonLabel: i,
1615
- buttonSecondaryLabel: d,
1640
+ isApplyButtonDisabled: i,
1641
+ isSecondaryButtonDisabled: s,
1642
+ buttonLabel: u,
1643
+ buttonSecondaryLabel: f,
1616
1644
  // Events
1617
- updateFrom: C,
1618
- updateTo: A,
1619
- updateFilter: L,
1645
+ updateFrom: T,
1646
+ updateTo: _,
1647
+ updateFilter: R,
1620
1648
  clearFilter: () => {
1621
- n.value = ["", ""], L();
1649
+ n.value = ["", ""], R();
1622
1650
  },
1623
- openFilter: h,
1624
- resetFilter: () => e(v.UPDATE, { ...a, value: a.defaultValue }),
1651
+ openFilter: F,
1652
+ resetFilter: () => e(b.UPDATE, { ...a, value: a.defaultValue }),
1625
1653
  // Translations
1626
1654
  t
1627
1655
  };
1628
1656
  }
1629
1657
  });
1630
- var la = function() {
1658
+ var aa = function() {
1631
1659
  var l, n;
1632
1660
  var e = this, t = e._self._c;
1633
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(o) {
1634
- return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1661
+ return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot, "tooltip-position": (l = e.options) == null ? void 0 : l.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(s) {
1662
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1635
1663
  } } }, [t("bento-input-field", { ref: "inputTextRef", attrs: { value: e.internalFilterValue ? e.internalFilterValue[0] : "", type: "number", "aria-label": e.t("from").toString() }, on: { input: e.updateFrom } }, [e._v(" " + e._s(e.t("from")) + " ")]), t("bento-input-field", { staticClass: "b-range-filter__input-field", attrs: { value: e.internalFilterValue ? e.internalFilterValue[1] : "", type: "number", "aria-label": e.t("to") }, on: { input: e.updateTo } }, [e._v(" " + e._s(e.t("to")) + " ")])], 1)]);
1636
- }, aa = [], na = /* @__PURE__ */ U(
1637
- ta,
1664
+ }, na = [], oa = /* @__PURE__ */ U(
1638
1665
  la,
1639
1666
  aa,
1667
+ na,
1640
1668
  !1,
1641
1669
  null,
1642
1670
  "4e327bc7"
1643
1671
  );
1644
- const Ge = na.exports, Ce = 430, De = 700;
1645
- function oa(a, e) {
1646
- const t = x("div"), l = x(!1), n = x(0), o = r(() => !(n.value < Ce && e.value.small === "multi-line"));
1647
- function s() {
1672
+ const Ke = oa.exports, De = 430, Ae = 700;
1673
+ function sa(a, e) {
1674
+ const t = L("div"), l = L(!1), n = L(0), s = r(() => !(n.value < De && e.value.small === "multi-line"));
1675
+ function i() {
1648
1676
  l.value = !1, t.value = "div";
1649
1677
  }
1650
- function u() {
1651
- l.value = !0, t.value = Ue;
1678
+ function d() {
1679
+ l.value = !0, t.value = $e;
1652
1680
  }
1653
- function i() {
1654
- n.value > De || n.value < De && n.value >= Ce && e.value.medium === "multi-line" ? s() : u();
1681
+ function u() {
1682
+ n.value > Ae || n.value < Ae && n.value >= De && e.value.medium === "multi-line" ? i() : d();
1655
1683
  }
1656
- return z(() => e.value, i), st(a, (d) => {
1657
- n.value = d[0].contentRect.width, i();
1684
+ return W(() => e.value, u), it(a, (f) => {
1685
+ n.value = f[0].contentRect.width, u();
1658
1686
  }), {
1659
1687
  screenLayoutComponent: t,
1660
- showSearchbarInsideContainer: o,
1688
+ showSearchbarInsideContainer: s,
1661
1689
  isOneLineLayout: l
1662
1690
  };
1663
1691
  }
1664
- var de = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(de || {});
1665
- const sa = $({
1692
+ var pe = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(pe || {});
1693
+ const ia = $({
1666
1694
  name: "base-filter-button",
1667
- components: { BaseButton: Ee, BentoTypography: se, ChevronUpIcon: ft, ChevronDownIcon: pt },
1695
+ components: { BaseButton: Le, BentoTypography: ie, ChevronUpIcon: bt, ChevronDownIcon: ft },
1668
1696
  props: {
1669
1697
  /**
1670
1698
  * The number of applies values within the filter.
@@ -1689,29 +1717,29 @@ const sa = $({
1689
1717
  */
1690
1718
  bold: { type: Boolean, default: !1 }
1691
1719
  },
1692
- emits: [Fe.CLICK],
1720
+ emits: [he.CLICK],
1693
1721
  setup(a, { slots: e, emit: t, attrs: l }) {
1694
- const n = r(() => e.default ? Re(e)("default") : null), o = Le({ ariaLabel: n }), s = x(null), u = r(() => {
1695
- var y;
1722
+ const n = r(() => e.default ? Oe(e)("default") : null), s = Re({ ariaLabel: n }), i = L(null), d = r(() => {
1723
+ var p;
1696
1724
  return {
1697
- "aria-controls": (y = l["aria-controls"]) == null ? void 0 : y.toString()
1725
+ "aria-controls": (p = l["aria-controls"]) == null ? void 0 : p.toString()
1698
1726
  };
1699
- }), i = r(() => ({
1727
+ }), u = r(() => ({
1700
1728
  "b-base-filter-button--with-chevron": a.hasChevron,
1701
1729
  "b-base-filter-button--filter-open": a.isFilterOpen
1702
1730
  }));
1703
1731
  return {
1704
1732
  // Values
1705
- ariaAttributes: u,
1706
- computedAriaLabel: o,
1707
- conditionalClasses: i,
1733
+ ariaAttributes: d,
1734
+ computedAriaLabel: s,
1735
+ conditionalClasses: u,
1708
1736
  // Methods
1709
1737
  onClickButton: () => {
1710
- a.disabled || t(Fe.CLICK);
1738
+ a.disabled || t(he.CLICK);
1711
1739
  },
1712
1740
  hasSlot: xe(e),
1713
1741
  // Refs
1714
- baseFilterButtonRef: s
1742
+ baseFilterButtonRef: i
1715
1743
  };
1716
1744
  }
1717
1745
  });
@@ -1720,17 +1748,17 @@ var ra = function() {
1720
1748
  return e._self._setupProxy, t("base-button", { ref: "baseFilterButtonRef", staticClass: "b-base-filter-button", class: e.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": e.computedAriaLabel, "aria-controls": e.ariaAttributes["aria-controls"], type: "button" }, on: { click: e.onClickButton }, scopedSlots: e._u([e.hasChevron ? { key: "iconRight", fn: function() {
1721
1749
  return [e.isFilterOpen ? t("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : t("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
1722
1750
  }, proxy: !0 } : null], null, !0) }, [t("div", { staticClass: "b-base-filter-button__default-container" }, [t("div", { staticClass: "b-base-filter-button__label-container" }, [t("bento-typography", { staticClass: "b-base-filter-button__label", attrs: { el: "span", variant: "body", stronger: e.bold } }, [e._t("default")], 2)], 1), e.amountAppliedValues && !e.hasChevron ? t("div", { staticClass: "b-base-filter-button__counter-wrapper" }, [t("bento-typography", { staticClass: "b-base-filter-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.amountAppliedValues) + " ")])], 1) : e._e()])]);
1723
- }, ia = [], ua = /* @__PURE__ */ U(
1724
- sa,
1725
- ra,
1751
+ }, ua = [], ca = /* @__PURE__ */ U(
1726
1752
  ia,
1753
+ ra,
1754
+ ua,
1727
1755
  !1,
1728
1756
  null,
1729
1757
  "66b170d4"
1730
1758
  );
1731
- const ca = ua.exports, da = $({
1759
+ const da = ca.exports, pa = $({
1732
1760
  name: "all-filters-modal-button",
1733
- components: { BaseFilterButton: ca },
1761
+ components: { BaseFilterButton: da },
1734
1762
  props: {
1735
1763
  /**
1736
1764
  * Button label to be displayed
@@ -1762,36 +1790,36 @@ const ca = ua.exports, da = $({
1762
1790
  };
1763
1791
  }
1764
1792
  });
1765
- var pa = function() {
1793
+ var fa = function() {
1766
1794
  var e = this, t = e._self._c;
1767
1795
  return e._self._setupProxy, t("base-filter-button", { staticClass: "b-all-filters-modal-button", class: e.conditionalClasses, attrs: { "amount-applied-values": e.appliedFiltersCount, "is-filter-open": e.isFilterOpen, disabled: e.disabled }, on: { click: e.onClick } }, [e._v(" " + e._s(e.label) + " ")]);
1768
- }, fa = [], ba = /* @__PURE__ */ U(
1769
- da,
1796
+ }, ba = [], va = /* @__PURE__ */ U(
1770
1797
  pa,
1771
1798
  fa,
1799
+ ba,
1772
1800
  !1,
1773
1801
  null,
1774
1802
  "4c415ac7"
1775
1803
  );
1776
- const va = ba.exports;
1777
- let Ae = 0;
1778
- const _a = {
1804
+ const _a = va.exports;
1805
+ let Te = 0;
1806
+ const ya = {
1779
1807
  beforeCreate() {
1780
- this.uuid = Ae.toString(), Ae += 1;
1808
+ this.uuid = Te.toString(), Te += 1;
1781
1809
  }
1782
1810
  };
1783
- var ya = function() {
1811
+ var ma = function() {
1784
1812
  var e = this, t = e._self._c;
1785
1813
  return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M12.6465 4.58337C12.32 3.42912 11.2588 2.58337 10 2.58337C8.74122 2.58337 7.67998 3.42912 7.35352 4.58337H1.25V6.08337H7.35352C7.67998 7.23763 8.74122 8.08337 10 8.08337C11.2588 8.08337 12.32 7.23763 12.6465 6.08337H14.75V4.58337H12.6465ZM11.25 5.33337C11.25 6.02373 10.6904 6.58337 10 6.58337C9.30964 6.58337 8.75 6.02373 8.75 5.33337C8.75 4.64302 9.30964 4.08337 10 4.08337C10.6904 4.08337 11.25 4.64302 11.25 5.33337Z" } }), t("path", { attrs: { fill: "#00112C", d: "M4 7.91687C5.25878 7.91687 6.32002 8.76262 6.64648 9.91687H14.75V11.4169H6.64648C6.32002 12.5711 5.25878 13.4169 4 13.4169C2.48122 13.4169 1.25 12.1857 1.25 10.6669C1.25 9.14809 2.48122 7.91687 4 7.91687ZM5.25 10.6669C5.25 9.97651 4.69036 9.41687 4 9.41687C3.30964 9.41687 2.75 9.97651 2.75 10.6669C2.75 11.3572 3.30964 11.9169 4 11.9169C4.69036 11.9169 5.25 11.3572 5.25 10.6669Z" } })]);
1786
- }, ma = [], Fa = /* @__PURE__ */ U(
1787
- _a,
1814
+ }, Fa = [], ha = /* @__PURE__ */ U(
1788
1815
  ya,
1789
1816
  ma,
1817
+ Fa,
1790
1818
  !1,
1791
1819
  null,
1792
1820
  null
1793
1821
  );
1794
- const ha = Fa.exports, Sa = {
1822
+ const Sa = ha.exports, ga = {
1795
1823
  "en-US": {
1796
1824
  activeFilters: "Active filters",
1797
1825
  all: "All",
@@ -1816,29 +1844,29 @@ const ha = Fa.exports, Sa = {
1816
1844
  clear: "Limpar",
1817
1845
  clearAll: "Limpar tudo"
1818
1846
  }
1819
- }, ga = $({
1820
- i18n: { messages: Sa },
1847
+ }, Ca = $({
1848
+ i18n: { messages: ga },
1821
1849
  name: "all-filters-modal",
1822
1850
  components: {
1823
- AllFiltersModalButton: va,
1824
- BentoBooleanFilter: ze,
1825
- BentoButton: ut,
1826
- BentoDateFilter: Me,
1827
- BentoDateRangeFilter: He,
1828
- BentoInputFilter: we,
1829
- BentoInputWithDropdownFilter: Ne,
1851
+ AllFiltersModalButton: _a,
1852
+ BentoBooleanFilter: Ge,
1853
+ BentoButton: ct,
1854
+ BentoDateFilter: He,
1855
+ BentoDateRangeFilter: je,
1856
+ BentoInputFilter: Ve,
1857
+ BentoInputWithDropdownFilter: Me,
1830
1858
  BentoModal: rt,
1831
- BentoRangeFilter: Ge,
1832
- BentoSearchBar: ve,
1833
- BentoSelectAvatarFilter: je,
1834
- BentoSelectCurrencyFilter: qe,
1835
- BentoSelectCountryFilter: Je,
1859
+ BentoRangeFilter: Ke,
1860
+ BentoSearchBar: _e,
1861
+ BentoSelectAvatarFilter: qe,
1862
+ BentoSelectCurrencyFilter: Je,
1863
+ BentoSelectCountryFilter: Ye,
1836
1864
  BentoSelectFilter: ee,
1837
- BentoSelectPaymentMethodFilter: Ye,
1838
- BentoSelectTagFilter: We,
1839
- BentoTypography: se,
1840
- FilterBarButton: ye,
1841
- SlidersIcon: ha
1865
+ BentoSelectPaymentMethodFilter: We,
1866
+ BentoSelectTagFilter: ze,
1867
+ BentoTypography: ie,
1868
+ FilterBarButton: me,
1869
+ SlidersIcon: Sa
1842
1870
  },
1843
1871
  props: {
1844
1872
  /**
@@ -1866,184 +1894,184 @@ const ha = Fa.exports, Sa = {
1866
1894
  default: () => []
1867
1895
  }
1868
1896
  },
1869
- emits: [de.INPUT],
1897
+ emits: [pe.INPUT],
1870
1898
  setup(a, { emit: e }) {
1871
- const t = x(a.value), l = pe("all-filters-modal"), n = x([]), o = x(!1), s = x(0), u = x(null), i = x(""), { t: d } = G(), y = $e(i, w(t, "value")), h = x({});
1899
+ const t = L(a.value), l = fe("all-filters-modal"), n = L([]), s = L(!1), i = L(0), d = L(null), u = L(""), { t: f } = G(), p = ke(u, w(t, "value")), F = L({});
1872
1900
  ue(() => {
1873
- h.value = [];
1874
- }), z(
1901
+ F.value = [];
1902
+ }), W(
1875
1903
  () => a.value,
1876
1904
  () => {
1877
- o.value ? t.value = a.value.map((p, f) => ({ ...p, value: t.value[f].value })) : t.value = a.value;
1905
+ s.value ? t.value = a.value.map((o, c) => ({ ...o, value: t.value[c].value })) : t.value = a.value;
1878
1906
  }
1879
1907
  );
1880
- const F = (p) => p.sort((f, E) => f.label > E.label ? 1 : E.label > f.label ? -1 : 0), C = r(
1881
- () => F(
1882
- y.value.filter(
1883
- (p) => {
1884
- var f, E;
1885
- return Array.isArray(p.value) ? ((f = p.value) == null ? void 0 : f.length) && ((E = p.value) == null ? void 0 : E.find((O) => O !== "")) : p.value;
1908
+ const h = (o) => o.sort((c, B) => c.label > B.label ? 1 : B.label > c.label ? -1 : 0), T = r(
1909
+ () => h(
1910
+ p.value.filter(
1911
+ (o) => {
1912
+ var c, B;
1913
+ return Array.isArray(o.value) ? ((c = o.value) == null ? void 0 : c.length) && ((B = o.value) == null ? void 0 : B.find((x) => x !== "")) : o.value;
1886
1914
  }
1887
1915
  )
1888
1916
  )
1889
- ), A = r(
1890
- () => F(
1891
- y.value.filter(
1892
- (p) => {
1893
- var f, E;
1894
- return Array.isArray(p.value) ? ((f = p.value) == null ? void 0 : f.length) === 0 || ((E = p.value) == null ? void 0 : E.every((O) => O === "")) : !p.value;
1917
+ ), _ = r(
1918
+ () => h(
1919
+ p.value.filter(
1920
+ (o) => {
1921
+ var c, B;
1922
+ return Array.isArray(o.value) ? ((c = o.value) == null ? void 0 : c.length) === 0 || ((B = o.value) == null ? void 0 : B.every((x) => x === "")) : !o.value;
1895
1923
  }
1896
1924
  )
1897
1925
  )
1898
- ), L = r(() => {
1899
- var p;
1900
- return i.value && ((p = y.value) == null ? void 0 : p.length) === 0;
1901
- }), g = r(() => t.value[s.value]), R = () => {
1902
- const p = C.value.length ? C.value[0] : A.value[0], f = t.value.findIndex(
1903
- (E) => E.label === p.label && E.field === p.field
1926
+ ), R = r(() => {
1927
+ var o;
1928
+ return u.value && ((o = p.value) == null ? void 0 : o.length) === 0;
1929
+ }), C = r(() => t.value[i.value]), O = () => {
1930
+ const o = T.value.length ? T.value[0] : _.value[0], c = t.value.findIndex(
1931
+ (B) => B.label === o.label && B.field === o.field
1904
1932
  );
1905
- s.value = f;
1933
+ i.value = c;
1906
1934
  };
1907
- Ie(() => {
1908
- R();
1935
+ Ee(() => {
1936
+ O();
1909
1937
  });
1910
- const P = (p) => p.map((f) => {
1911
- var E, O, q, Z, ne, re;
1912
- switch (f.type) {
1938
+ const I = (o) => o.map((c) => {
1939
+ var B, x, j, Z, ne, oe;
1940
+ switch (c.type) {
1913
1941
  case Y.SELECT:
1914
1942
  case Y.SELECT_AVATAR:
1915
1943
  case Y.SELECT_COUNTRY:
1916
1944
  case Y.SELECT_CURRENCY:
1917
1945
  case Y.SELECT_PAYMENT_METHOD:
1918
1946
  case Y.SELECT_TAG:
1919
- switch ((E = f.options) == null ? void 0 : E.multiple) {
1947
+ switch ((B = c.options) == null ? void 0 : B.multiple) {
1920
1948
  case !0:
1921
1949
  return {
1922
- label: f.label,
1923
- field: f.field,
1924
- count: (O = f.value) != null && O.length ? (q = f.value) == null ? void 0 : q.length : null
1950
+ label: c.label,
1951
+ field: c.field,
1952
+ count: (x = c.value) != null && x.length ? (j = c.value) == null ? void 0 : j.length : null
1925
1953
  };
1926
1954
  default:
1927
1955
  return {
1928
- label: f.label,
1929
- field: f.field,
1930
- count: f.value == null ? null : 1
1956
+ label: c.label,
1957
+ field: c.field,
1958
+ count: c.value == null ? null : 1
1931
1959
  };
1932
1960
  }
1933
1961
  case Y.DATE_RANGE:
1934
1962
  return {
1935
- label: f.label,
1936
- field: f.field,
1937
- count: ((Z = f.value) == null ? void 0 : Z.startDate) != null && ((ne = f.value) == null ? void 0 : ne.endDate) != null ? 1 : null
1963
+ label: c.label,
1964
+ field: c.field,
1965
+ count: ((Z = c.value) == null ? void 0 : Z.startDate) != null && ((ne = c.value) == null ? void 0 : ne.endDate) != null ? 1 : null
1938
1966
  };
1939
1967
  case Y.RANGE:
1940
1968
  return {
1941
- label: f.label,
1942
- field: f.field,
1943
- count: (re = f.value) != null && re.find((H) => H !== "") ? 1 : null
1969
+ label: c.label,
1970
+ field: c.field,
1971
+ count: (oe = c.value) != null && oe.find((ce) => ce !== "") ? 1 : null
1944
1972
  };
1945
1973
  case Y.INPUT:
1946
1974
  case Y.BOOLEAN:
1947
1975
  case Y.DATE:
1948
1976
  default:
1949
1977
  return {
1950
- label: f.label,
1951
- field: f.field,
1952
- count: f.value != null ? 1 : null
1978
+ label: c.label,
1979
+ field: c.field,
1980
+ count: c.value != null ? 1 : null
1953
1981
  };
1954
1982
  }
1955
- }), B = r(
1983
+ }), S = r(
1956
1984
  () => {
1957
- var p;
1958
- return Array.isArray(g.value.value) ? ((p = g.value) == null ? void 0 : p.value.length) && g.value.value.find((f) => f !== "") : !!t.value[s.value].value;
1985
+ var o;
1986
+ return Array.isArray(C.value.value) ? ((o = C.value) == null ? void 0 : o.value.length) && C.value.value.find((c) => c !== "") : !!t.value[i.value].value;
1959
1987
  }
1960
- ), b = r(
1988
+ ), v = r(
1961
1989
  () => {
1962
- var p;
1963
- return (p = P(a.value)) == null ? void 0 : p.filter(({ count: f }) => !!f).length;
1990
+ var o;
1991
+ return (o = I(a.value)) == null ? void 0 : o.filter(({ count: c }) => !!c).length;
1964
1992
  }
1965
- ), D = () => {
1966
- o.value ? o.value = !1 : o.value = !0;
1967
- }, I = (p) => {
1968
- var E, O, q;
1969
- const f = P(t.value).find((Z) => Z.field === p.field).count;
1970
- return p.type.includes("BentoSelect") && ((E = p.options) != null && E.multiple) && f === ((q = (O = p.options) == null ? void 0 : O.listboxItems) == null ? void 0 : q.length) ? d("all") : f;
1971
- }, k = (p, f) => {
1972
- s.value = t.value.findIndex(
1973
- (E) => E.label === p && E.field === f
1993
+ ), A = () => {
1994
+ s.value ? s.value = !1 : s.value = !0;
1995
+ }, P = (o) => {
1996
+ var B, x, j;
1997
+ const c = I(t.value).find((Z) => Z.field === o.field).count;
1998
+ return o.type.includes("BentoSelect") && ((B = o.options) != null && B.multiple) && c === ((j = (x = o.options) == null ? void 0 : x.listboxItems) == null ? void 0 : j.length) ? f("all") : c;
1999
+ }, k = (o, c) => {
2000
+ i.value = t.value.findIndex(
2001
+ (B) => B.label === o && B.field === c
1974
2002
  );
1975
- }, T = () => {
1976
- i.value = "";
2003
+ }, D = () => {
2004
+ u.value = "";
1977
2005
  }, N = () => {
1978
- o.value = !1, t.value = a.value, T(), R();
1979
- }, j = (p) => {
1980
- const f = t.value.map(({ value: E, ...O }, q) => q === s.value ? { value: p.value, ...O } : { value: E, ...O });
1981
- t.value = f;
1982
- }, J = () => {
1983
- j({
1984
- field: g.value.field,
1985
- label: g.value.label,
1986
- type: g.value.type,
2006
+ s.value = !1, t.value = a.value, D(), O();
2007
+ }, H = (o) => {
2008
+ const c = t.value.map(({ value: B, ...x }, j) => j === i.value ? { value: o.value, ...x } : { value: B, ...x });
2009
+ t.value = c;
2010
+ }, z = () => {
2011
+ H({
2012
+ field: C.value.field,
2013
+ label: C.value.label,
2014
+ type: C.value.type,
1987
2015
  value: void 0
1988
2016
  });
1989
- }, S = () => {
1990
- t.value = a.value.map(({ value: p, ...f }) => ({
1991
- ...f,
2017
+ }, g = () => {
2018
+ t.value = a.value.map(({ value: o, ...c }) => ({
2019
+ ...c,
1992
2020
  value: void 0
1993
2021
  }));
1994
- }, _ = () => {
1995
- e(de.INPUT, t.value), o.value = !1;
2022
+ }, y = () => {
2023
+ e(pe.INPUT, t.value), s.value = !1;
1996
2024
  }, m = r(
1997
2025
  () => JSON.stringify(t.value) === JSON.stringify(a.value)
1998
- ), c = r(() => [
2026
+ ), E = r(() => [
1999
2027
  {
2000
- title: d("applyAll"),
2028
+ title: f("applyAll"),
2001
2029
  disabled: m.value,
2002
- event: _
2030
+ event: y
2003
2031
  },
2004
2032
  {
2005
- title: d("cancel"),
2033
+ title: f("cancel"),
2006
2034
  event: N
2007
2035
  },
2008
2036
  {
2009
- title: d("clearAll"),
2010
- disabled: !b.value,
2011
- event: S
2037
+ title: f("clearAll"),
2038
+ disabled: !v.value,
2039
+ event: g
2012
2040
  }
2013
2041
  ]);
2014
2042
  return {
2015
2043
  // Enums
2016
- BentoModalEvent: it,
2044
+ BentoModalEvent: ut,
2017
2045
  // Values
2018
2046
  allFiltersModalUniqueId: l,
2019
2047
  allFiltersModalFiltersSection: n,
2020
- allFiltersModalFilterButtons: h,
2021
- numberOfActiveFilters: b,
2022
- isEmptyResultForSearchFilter: L,
2023
- isModalOpen: o,
2024
- isClearButtonEnabled: B,
2025
- activeFilters: C,
2026
- otherFilters: A,
2027
- modalActions: c,
2028
- selectedFilter: g,
2029
- selectedFilterRef: u,
2030
- searchTerm: i,
2048
+ allFiltersModalFilterButtons: F,
2049
+ numberOfActiveFilters: v,
2050
+ isEmptyResultForSearchFilter: R,
2051
+ isModalOpen: s,
2052
+ isClearButtonEnabled: S,
2053
+ activeFilters: T,
2054
+ otherFilters: _,
2055
+ modalActions: E,
2056
+ selectedFilter: C,
2057
+ selectedFilterRef: d,
2058
+ searchTerm: u,
2031
2059
  // Methods
2032
- onClickAllFiltersModal: D,
2033
- getFilterCount: I,
2060
+ onClickAllFiltersModal: A,
2061
+ getFilterCount: P,
2034
2062
  cancel: N,
2035
2063
  selectFilter: k,
2036
- clearFilter: J,
2037
- updateFilter: j,
2038
- onSearchbarClear: T,
2064
+ clearFilter: z,
2065
+ updateFilter: H,
2066
+ onSearchbarClear: D,
2039
2067
  onKeydownRight: () => {
2040
- dt(1, u.value.$el).focus();
2068
+ pt(1, d.value.$el).focus();
2041
2069
  },
2042
2070
  onKeydownLeft: () => {
2043
- h.value[g.value.label].$el.focus();
2071
+ F.value[C.value.label].$el.focus();
2044
2072
  },
2045
2073
  // Translations
2046
- t: d
2074
+ t: f
2047
2075
  };
2048
2076
  }
2049
2077
  });
@@ -2072,15 +2100,15 @@ var Ba = function() {
2072
2100
  return !l.type.indexOf("key") && e._k(l.keyCode, "left", 37, l.key, ["Left", "ArrowLeft"]) || "button" in l && l.button !== 0 ? null : e.onKeydownLeft.apply(null, arguments);
2073
2101
  } } }, [t("div", { staticClass: "b-all-filters-modal__selected-filter-text" }, [t("bento-typography", { attrs: { el: "div", variant: "title", medium: "" } }, [e._v(e._s(e.selectedFilter.label))]), e.selectedFilter.description ? t("bento-typography", { attrs: { el: "div", variant: "body", wide: "" } }, [e._v(" " + e._s(e.selectedFilter.description) + " ")]) : e._e()], 1), t("div", { staticClass: "b-all-filters-modal__selected-filter-component" }, [t(e.selectedFilter.type, { key: e.selectedFilter.field, ref: "selectedFilterRef", tag: "component", attrs: { field: e.selectedFilter.field, label: e.selectedFilter.label, options: e.selectedFilter.options, value: e.selectedFilter.value, "default-value": e.selectedFilter.defaultValue, "only-slot": !0 }, on: { input: e.updateFilter } })], 1), t("div", { staticClass: "b-all-filters-modal__clear-button" }, [t("bento-button", { attrs: { variant: "secondary", disabled: !e.isClearButtonEnabled }, on: { click: e.clearFilter } }, [e._v(e._s(e.t("clear")))])], 1)])];
2074
2102
  }, proxy: !0 }]) })], 1);
2075
- }, Ca = [], Da = /* @__PURE__ */ U(
2076
- ga,
2077
- Ba,
2103
+ }, Da = [], Aa = /* @__PURE__ */ U(
2078
2104
  Ca,
2105
+ Ba,
2106
+ Da,
2079
2107
  !1,
2080
2108
  null,
2081
2109
  "20df0a7f"
2082
2110
  );
2083
- const Aa = Da.exports, Ta = {
2111
+ const Ta = Aa.exports, Pa = {
2084
2112
  "en-US": {
2085
2113
  clearFilters: "Clear filters",
2086
2114
  filtersHaveBeenCleared: "Filters have been cleared.",
@@ -2101,27 +2129,27 @@ const Aa = Da.exports, Ta = {
2101
2129
  resetFilters: "Redefinir filtros",
2102
2130
  undo: "Desfazer"
2103
2131
  }
2104
- }, Pa = {
2105
- i18n: { messages: Ta },
2132
+ }, Ia = {
2133
+ i18n: { messages: Pa },
2106
2134
  name: "bento-filter-bar",
2107
2135
  components: {
2108
- BentoBooleanFilter: ze,
2109
- BentoDateFilter: Me,
2110
- BentoDateRangeFilter: He,
2111
- BentoInputFilter: we,
2112
- BentoInputWithDropdownFilter: Ne,
2113
- BentoRangeFilter: Ge,
2114
- BentoSelectAvatarFilter: je,
2115
- BentoSelectCountryFilter: Je,
2116
- BentoSelectCurrencyFilter: qe,
2136
+ BentoBooleanFilter: Ge,
2137
+ BentoDateFilter: He,
2138
+ BentoDateRangeFilter: je,
2139
+ BentoInputFilter: Ve,
2140
+ BentoInputWithDropdownFilter: Me,
2141
+ BentoRangeFilter: Ke,
2142
+ BentoSelectAvatarFilter: qe,
2143
+ BentoSelectCountryFilter: Ye,
2144
+ BentoSelectCurrencyFilter: Je,
2117
2145
  BentoSelectFilter: ee,
2118
- BentoSelectPaymentMethodFilter: Ye,
2119
- BentoSelectTagFilter: We,
2120
- BentoTeleport: Oe,
2121
- FixedScroller: Ue
2146
+ BentoSelectPaymentMethodFilter: We,
2147
+ BentoSelectTagFilter: ze,
2148
+ BentoTeleport: Ue,
2149
+ FixedScroller: $e
2122
2150
  }
2123
- }, Ia = /* @__PURE__ */ $({
2124
- ...Pa,
2151
+ }, Ea = /* @__PURE__ */ $({
2152
+ ...Ia,
2125
2153
  props: {
2126
2154
  config: { default: () => [] },
2127
2155
  filterValues: { default: () => [] },
@@ -2135,103 +2163,103 @@ const Aa = Da.exports, Ta = {
2135
2163
  value: { default: () => [] }
2136
2164
  },
2137
2165
  emits: [
2138
- oe.INPUT,
2139
- oe.UPDATE_FILTER_VALUES,
2166
+ se.INPUT,
2167
+ se.UPDATE_FILTER_VALUES,
2140
2168
  te.CLEAR,
2141
2169
  te.INPUT,
2142
2170
  te.UPDATE
2143
2171
  ],
2144
2172
  setup(a, { expose: e, emit: t }) {
2145
- const l = a, { t: n } = G(), o = x(null), s = r(
2173
+ const l = a, { t: n } = G(), s = L(null), i = r(
2146
2174
  () => {
2147
- var S, _;
2148
- return (_ = ((S = l.config) == null ? void 0 : S.length) > 0 ? l.config : l.value) == null ? void 0 : _.map((m) => {
2175
+ var g, y;
2176
+ return (y = ((g = l.config) == null ? void 0 : g.length) > 0 ? l.config : l.value) == null ? void 0 : y.map((m) => {
2149
2177
  var V;
2150
- let c = (V = l.filterValues.find(({ field: M }) => M === m.field)) == null ? void 0 : V.value;
2151
- return c === void 0 && (c = (m == null ? void 0 : m.value) === void 0 && (m == null ? void 0 : m.defaultValue) !== void 0 ? m == null ? void 0 : m.defaultValue : m == null ? void 0 : m.value), { ...m, value: c !== void 0 ? c : m == null ? void 0 : m.value };
2178
+ let E = (V = l.filterValues.find(({ field: M }) => M === m.field)) == null ? void 0 : V.value;
2179
+ return E === void 0 && (E = (m == null ? void 0 : m.value) === void 0 && (m == null ? void 0 : m.defaultValue) !== void 0 ? m == null ? void 0 : m.defaultValue : m == null ? void 0 : m.value), { ...m, value: E !== void 0 ? E : m == null ? void 0 : m.value };
2152
2180
  });
2153
2181
  }
2154
- ), { addToast: u } = At(), { screenLayoutComponent: i, showSearchbarInsideContainer: d, isOneLineLayout: y } = oa(
2155
- o,
2182
+ ), { addToast: d } = Tt(), { screenLayoutComponent: u, showSearchbarInsideContainer: f, isOneLineLayout: p } = sa(
2183
+ s,
2156
2184
  w(l, "containerSizeLayout")
2157
- ), h = r(() => ({
2158
- "b-filter-bar__fixed-scroller": y.value,
2159
- "b-filter-bar__container": !y.value
2185
+ ), F = r(() => ({
2186
+ "b-filter-bar__fixed-scroller": p.value,
2187
+ "b-filter-bar__container": !p.value
2160
2188
  // Multi-line
2161
- })), F = r(() => ({
2162
- "b-filter-bar__scroller-content": y.value,
2163
- "b-filter-bar__filters": !y.value
2189
+ })), h = r(() => ({
2190
+ "b-filter-bar__scroller-content": p.value,
2191
+ "b-filter-bar__filters": !p.value
2164
2192
  // Multi-line
2165
- })), C = r(() => {
2166
- var S;
2167
- return ((S = l.search) == null ? void 0 : S.inputFieldAriaLabel) || n("searchBar");
2168
- }), A = r(() => {
2193
+ })), T = r(() => {
2194
+ var g;
2195
+ return ((g = l.search) == null ? void 0 : g.inputFieldAriaLabel) || n("searchBar");
2196
+ }), _ = r(() => {
2169
2197
  if (!l.search)
2170
2198
  return;
2171
- const { hint: S, inputFieldAriaLabel: _, debounceTime: m, placeholder: c } = l.search;
2172
- return { hint: S, inputFieldAriaLabel: _, debounceTime: m, placeholder: c };
2173
- }), L = r(() => s.value.some(
2174
- ({ visible: _ }) => _ != null
2175
- ) ? s.value.some(({ visible: _ }) => !_) : !1), g = r(
2176
- () => s.value.filter(({ defaultValue: S }) => S !== void 0)
2177
- ), R = r(() => s.value.some(
2178
- ({ visible: _ }) => _ != null
2179
- ) ? s.value.filter(
2180
- ({ defaultValue: _, visible: m, value: c }) => (
2199
+ const { hint: g, inputFieldAriaLabel: y, debounceTime: m, placeholder: E } = l.search;
2200
+ return { hint: g, inputFieldAriaLabel: y, debounceTime: m, placeholder: E };
2201
+ }), R = r(() => i.value.some(
2202
+ ({ visible: y }) => y != null
2203
+ ) ? i.value.some(({ visible: y }) => !y) : !1), C = r(
2204
+ () => i.value.filter(({ defaultValue: g }) => g !== void 0)
2205
+ ), O = r(() => i.value.some(
2206
+ ({ visible: y }) => y != null
2207
+ ) ? i.value.filter(
2208
+ ({ defaultValue: y, visible: m, value: E }) => (
2181
2209
  // eslint-disable-next-line eqeqeq
2182
- _ === void 0 && m || l.showAppliedHiddenFilters && c != null
2210
+ y === void 0 && m || l.showAppliedHiddenFilters && E != null
2183
2211
  )
2184
- ) : s.value.filter(
2185
- ({ defaultValue: _, value: m }) => (
2212
+ ) : i.value.filter(
2213
+ ({ defaultValue: y, value: m }) => (
2186
2214
  // eslint-disable-next-line eqeqeq
2187
- _ === void 0 || l.showAppliedHiddenFilters && m != null
2215
+ y === void 0 || l.showAppliedHiddenFilters && m != null
2188
2216
  )
2189
- )), P = r(() => l.searchTerm != null), B = r(
2190
- () => s.value.filter(({ defaultValue: S }) => S == null).some(({ value: S }) => S != null)
2191
- ), b = r(() => g.value.length === 0 && B.value), D = r(() => g.value.length === 0 ? !1 : !s.value.filter(({ defaultValue: _ }) => _ !== void 0 || _ !== null).every(({ value: _, defaultValue: m }) => JSON.stringify(_) === JSON.stringify(m)) || B.value), I = (S) => {
2192
- t(oe.INPUT, S), t(
2193
- oe.UPDATE_FILTER_VALUES,
2194
- S == null ? void 0 : S.filter(({ value: _ }) => _ !== null || _ !== void 0).map(({ field: _, value: m }) => ({ field: _, value: m }))
2217
+ )), I = r(() => l.searchTerm != null), S = r(
2218
+ () => i.value.filter(({ defaultValue: g }) => g == null).some(({ value: g }) => g != null)
2219
+ ), v = r(() => C.value.length === 0 && S.value), A = r(() => C.value.length === 0 ? !1 : !i.value.filter(({ defaultValue: y }) => y !== void 0 || y !== null).every(({ value: y, defaultValue: m }) => JSON.stringify(y) === JSON.stringify(m)) || S.value), P = (g) => {
2220
+ t(se.INPUT, g), t(
2221
+ se.UPDATE_FILTER_VALUES,
2222
+ g == null ? void 0 : g.filter(({ value: y }) => y !== null || y !== void 0).map(({ field: y, value: m }) => ({ field: y, value: m }))
2195
2223
  );
2196
- }, k = (S) => {
2197
- const _ = s.value.findIndex(
2198
- (c) => c.field === S.field
2199
- ), m = s.value.slice();
2200
- m[_].value = S.value, I(m);
2201
- }, T = () => {
2202
- const S = s.value.slice(), _ = s.value.map(({ value: m, ...c }) => ({
2203
- ...c,
2224
+ }, k = (g) => {
2225
+ const y = i.value.findIndex(
2226
+ (E) => E.field === g.field
2227
+ ), m = i.value.slice();
2228
+ m[y].value = g.value, P(m);
2229
+ }, D = () => {
2230
+ const g = i.value.slice(), y = i.value.map(({ value: m, ...E }) => ({
2231
+ ...E,
2204
2232
  value: void 0
2205
2233
  }));
2206
- u({
2234
+ d({
2207
2235
  text: n("filtersHaveBeenCleared"),
2208
2236
  action: {
2209
- handler: () => I(S),
2237
+ handler: () => P(g),
2210
2238
  text: n("undo")
2211
2239
  }
2212
- }), I(_);
2240
+ }), P(y);
2213
2241
  }, N = () => {
2214
- const S = s.value.slice(), _ = s.value.map(({ defaultValue: m, ...c }) => ({
2215
- ...c,
2242
+ const g = i.value.slice(), y = i.value.map(({ defaultValue: m, ...E }) => ({
2243
+ ...E,
2216
2244
  defaultValue: m,
2217
2245
  value: m
2218
2246
  }));
2219
- u({
2247
+ d({
2220
2248
  text: n("filtersHaveBeenReset"),
2221
2249
  action: {
2222
- handler: () => I(S),
2250
+ handler: () => P(g),
2223
2251
  text: n("undo")
2224
2252
  }
2225
- }), I(_);
2226
- }, j = (S) => {
2227
- t(te.INPUT, S), t(te.UPDATE, S);
2228
- }, J = () => {
2253
+ }), P(y);
2254
+ }, H = (g) => {
2255
+ t(te.INPUT, g), t(te.UPDATE, g);
2256
+ }, z = () => {
2229
2257
  t(te.CLEAR);
2230
2258
  };
2231
- return e({ isClearAllVisible: b, clearAllFilters: T, isResetAllVisible: D, resetAllFilters: N }), { __sfc: !0, props: l, emit: t, t: n, filterBarRef: o, valueAndFilterValuesPropsMerged: s, addToast: u, screenLayoutComponent: i, showSearchbarInsideContainer: d, isOneLineLayout: y, containerConditionalClasses: h, contentConditionalClasses: F, searchBarAriaLabel: C, searchBarProps: A, hasHiddenFilters: L, persistentFilters: g, regularFilters: R, isSearchBarEnabled: P, hasActiveFilters: B, isClearAllVisible: b, isResetAllVisible: D, updateAllFilters: I, updateFilterHandler: k, clearAllFilters: T, resetAllFilters: N, onSearchbarInput: j, onSearchbarClear: J, FilterBarButton: ye, BentoSearchBar: ve, AllFiltersModal: Aa, RefreshIcon: Dt };
2259
+ return e({ isClearAllVisible: v, clearAllFilters: D, isResetAllVisible: A, resetAllFilters: N }), { __sfc: !0, props: l, emit: t, t: n, filterBarRef: s, valueAndFilterValuesPropsMerged: i, addToast: d, screenLayoutComponent: u, showSearchbarInsideContainer: f, isOneLineLayout: p, containerConditionalClasses: F, contentConditionalClasses: h, searchBarAriaLabel: T, searchBarProps: _, hasHiddenFilters: R, persistentFilters: C, regularFilters: O, isSearchBarEnabled: I, hasActiveFilters: S, isClearAllVisible: v, isResetAllVisible: A, updateAllFilters: P, updateFilterHandler: k, clearAllFilters: D, resetAllFilters: N, onSearchbarInput: H, onSearchbarClear: z, FilterBarButton: me, BentoSearchBar: _e, AllFiltersModal: Ta, RefreshIcon: At };
2232
2260
  }
2233
2261
  });
2234
- var Ea = function() {
2262
+ var La = function() {
2235
2263
  var e = this, t = e._self._c, l = e._self._setupProxy;
2236
2264
  return t("div", { ref: "filterBarRef", staticClass: "b-filter-bar" }, [!l.showSearchbarInsideContainer && l.isSearchBarEnabled ? t("div", { staticClass: "b-filter-bar__search-external-container" }, [t(l.BentoSearchBar, e._b({ staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": l.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: l.onSearchbarInput, clear: l.onSearchbarClear } }, "bento-search-bar", l.searchBarProps, !1))], 1) : e._e(), t(l.screenLayoutComponent, { tag: "component", class: l.containerConditionalClasses, attrs: { condensed: "" } }, [t("div", { class: l.contentConditionalClasses }, [l.showSearchbarInsideContainer && l.isSearchBarEnabled ? t("div", [t(l.BentoSearchBar, e._b({ staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": l.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: l.onSearchbarInput, clear: l.onSearchbarClear } }, "bento-search-bar", l.searchBarProps, !1))], 1) : e._e(), l.persistentFilters.length ? e._l(l.persistentFilters, function(n) {
2237
2265
  return t(n.type, { key: n.field, tag: "component", attrs: { field: n.field, label: n.label, disabled: n == null ? void 0 : n.disabled, options: n.options, value: n.value, "default-value": n.defaultValue }, on: { update: l.updateFilterHandler } });
@@ -2242,19 +2270,19 @@ var Ea = function() {
2242
2270
  }, proxy: !0 }], null, !1, 4046500904) }, [e._v(" " + e._s(l.t("clearFilters")) + " ")]) : e._e(), l.isResetAllVisible ? t(l.FilterBarButton, { staticClass: "b-filter-bar__reset-all", on: { click: l.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2243
2271
  return [t(l.RefreshIcon, { attrs: { "aria-hidden": "true" } })];
2244
2272
  }, proxy: !0 }], null, !1, 4046500904) }, [e._v(" " + e._s(l.t("resetFilters")) + " ")]) : e._e()], 2)])], 1);
2245
- }, xa = [], La = /* @__PURE__ */ U(
2246
- Ia,
2273
+ }, xa = [], Ra = /* @__PURE__ */ U(
2247
2274
  Ea,
2275
+ La,
2248
2276
  xa,
2249
2277
  !1,
2250
2278
  null,
2251
2279
  "7e269195"
2252
2280
  );
2253
- const Cn = La.exports;
2281
+ const Dn = Ra.exports;
2254
2282
  export {
2255
- Cn as B,
2256
- v as a,
2257
- oe as b,
2283
+ Dn as B,
2284
+ b as a,
2285
+ se as b,
2258
2286
  Y as c
2259
2287
  };
2260
- //# sourceMappingURL=filter-bar.CcsUi7Xg.js.map
2288
+ //# sourceMappingURL=filter-bar.CJOZfPv2.js.map