@avakhula/ui 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openBlock as W, createElementBlock as re, normalizeStyle as Un, normalizeClass as $e, createBlock as _e, resolveDynamicComponent as br, mergeProps as Et, withCtx as be, renderSlot as Ne, withDirectives as Ve, createElementVNode as le, Fragment as ct, renderList as jt, vShow as Ye, createCommentVNode as he, Transition as mi, resolveComponent as fe, toDisplayString as Ce, createVNode as ve, withModifiers as $t, resolveDirective as $r, createSlots as mo, Teleport as Xo, createTextVNode as Ge, vModelDynamic as yo, withKeys as mn, pushScopeId as bo, popScopeId as $o, vModelText as _o, defineComponent as ea, onMounted as ta, onBeforeUnmount as na, ref as Ii, watch as Jr, nextTick as Di, h as ra, createStaticVNode as ia } from "vue";
1
+ import { openBlock as W, createElementBlock as re, normalizeStyle as Un, normalizeClass as $e, createBlock as _e, resolveDynamicComponent as br, mergeProps as Et, withCtx as be, renderSlot as Ne, withDirectives as Ve, createElementVNode as le, Fragment as at, renderList as jt, vShow as Ye, createCommentVNode as he, Transition as mi, resolveComponent as fe, toDisplayString as Ce, createVNode as ve, withModifiers as $t, resolveDirective as $r, createSlots as mo, Teleport as Xo, createTextVNode as Ge, vModelDynamic as yo, withKeys as mn, pushScopeId as bo, popScopeId as $o, vModelText as _o, defineComponent as ea, onMounted as ta, onBeforeUnmount as na, ref as Ii, watch as Jr, nextTick as Di, h as ra, createStaticVNode as ia } from "vue";
2
2
  const Ae = (t, n) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [i, o] of n)
@@ -153,7 +153,7 @@ function ha(t, n, e, i, o, r) {
153
153
  name: "_token",
154
154
  value: r.token
155
155
  }, null, 8, ca),
156
- (W(!0), re(ct, null, jt(Object.keys(e.postOptions), (s, l) => (W(), re("input", {
156
+ (W(!0), re(at, null, jt(Object.keys(e.postOptions), (s, l) => (W(), re("input", {
157
157
  key: l,
158
158
  type: "hidden",
159
159
  name: s,
@@ -1316,7 +1316,7 @@ const kl = {
1316
1316
  };
1317
1317
  function xl(t, n, e, i, o, r) {
1318
1318
  const s = fe("ib-icon"), l = fe("ib-icon-button"), d = $r("outside");
1319
- return W(), re(ct, null, [
1319
+ return W(), re(at, null, [
1320
1320
  r.hasTrigger ? (W(), re("div", {
1321
1321
  key: 0,
1322
1322
  class: "modal-trigger",
@@ -1430,7 +1430,7 @@ function Il(t, n, e, i, o, r) {
1430
1430
  ], 10, Nl)
1431
1431
  ]),
1432
1432
  body: be(() => [
1433
- (W(!0), re(ct, null, jt(e.tabs.tabs, (h, f) => (W(), _e(l, {
1433
+ (W(!0), re(at, null, jt(e.tabs.tabs, (h, f) => (W(), _e(l, {
1434
1434
  key: f,
1435
1435
  checked: h.id === e.selectedTab,
1436
1436
  href: r.createHref(h.id),
@@ -1511,7 +1511,7 @@ function ql(t, n, e, i, o, r) {
1511
1511
  const s = fe("ib-tab-dropdown");
1512
1512
  return W(), re("div", Ml, [
1513
1513
  le("ul", Ll, [
1514
- (W(!0), re(ct, null, jt(o.tabs, (l, d) => (W(), re("li", {
1514
+ (W(!0), re(at, null, jt(o.tabs, (l, d) => (W(), re("li", {
1515
1515
  class: "tab-item",
1516
1516
  key: d
1517
1517
  }, [
@@ -1744,7 +1744,7 @@ function rs(t, n, e, i, o, r) {
1744
1744
  const s = fe("ib-icon"), l = fe("ib-tooltip"), d = fe("ib-icon-button"), h = fe("ib-dropdown-item"), f = fe("ib-dropdown-list");
1745
1745
  return W(), re("nav", Ql, [
1746
1746
  le("ul", Xl, [
1747
- (W(!0), re(ct, null, jt(e.items, (c, a) => (W(), re("li", {
1747
+ (W(!0), re(at, null, jt(e.items, (c, a) => (W(), re("li", {
1748
1748
  class: $e(["breadcrumb-item", a === r.last ? "active" : ""]),
1749
1749
  "aria-current": "page",
1750
1750
  key: a
@@ -1772,7 +1772,7 @@ function rs(t, n, e, i, o, r) {
1772
1772
  })
1773
1773
  ]),
1774
1774
  body: be(() => [
1775
- (W(!0), re(ct, null, jt(r.setItemsContextMenu, (u, $) => (W(), _e(h, { key: $ }, {
1775
+ (W(!0), re(at, null, jt(r.setItemsContextMenu, (u, $) => (W(), _e(h, { key: $ }, {
1776
1776
  default: be(() => [
1777
1777
  le("a", {
1778
1778
  class: "context-breadcrums",
@@ -2528,7 +2528,7 @@ function Ls(t, n, e, i, o, r) {
2528
2528
  onClick: n[0] || (n[0] = $t((c) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
2529
2529
  })
2530
2530
  ]))
2531
- ], 2)) : e.htmlTitle ? (W(), re(ct, { key: 1 }, [
2531
+ ], 2)) : e.htmlTitle ? (W(), re(at, { key: 1 }, [
2532
2532
  r.hasChildren ? (W(), re("span", {
2533
2533
  key: 1,
2534
2534
  class: "option-label",
@@ -2542,7 +2542,7 @@ function Ls(t, n, e, i, o, r) {
2542
2542
  ], 2),
2543
2543
  r.hasChildren ? Ve((W(), _e(f, { key: 1 }, {
2544
2544
  default: be(() => [
2545
- (W(!0), re(ct, null, jt(e.option.children, (c) => Ve((W(), _e(h, {
2545
+ (W(!0), re(at, null, jt(e.option.children, (c) => Ve((W(), _e(h, {
2546
2546
  key: c.value,
2547
2547
  option: c,
2548
2548
  name: e.name,
@@ -3466,7 +3466,7 @@ function Us(t, n, e, i, o, r) {
3466
3466
  class: $e({ "has-hierarchy": r.hasHierarchy })
3467
3467
  }, {
3468
3468
  default: be(() => [
3469
- (W(!0), re(ct, null, jt(o.actualBookmarkedOptions, (a) => (W(), _e(d, {
3469
+ (W(!0), re(at, null, jt(o.actualBookmarkedOptions, (a) => (W(), _e(d, {
3470
3470
  key: "bookmark" + a.id,
3471
3471
  option: a,
3472
3472
  "parent-auto-check": !1,
@@ -3518,7 +3518,7 @@ function Us(t, n, e, i, o, r) {
3518
3518
  "only-end-nodes": e.onlyEndNodes,
3519
3519
  "show-input": e.showInputs
3520
3520
  }, null, 8, ["option", "name", "parent-auto-check", "is-multiple", "onCheck", "onToggleBookmark", "uid", "only-end-nodes", "show-input"])) : he("", !0),
3521
- r.requiredDependencyNotFilled ? he("", !0) : (W(), re(ct, { key: 3 }, [
3521
+ r.requiredDependencyNotFilled ? he("", !0) : (W(), re(at, { key: 3 }, [
3522
3522
  e.allOptions && e.isMultiple && o.countVisibleChildren && !r.requiredDependencyNotFilled ? (W(), _e(d, {
3523
3523
  key: 0,
3524
3524
  option: {
@@ -3540,7 +3540,7 @@ function Us(t, n, e, i, o, r) {
3540
3540
  "only-end-nodes": e.onlyEndNodes,
3541
3541
  "show-input": e.showInputs
3542
3542
  }, null, 8, ["option", "is-toggle", "name", "is-multiple", "onCheck", "uid", "only-end-nodes", "show-input"])) : he("", !0),
3543
- (W(!0), re(ct, null, jt(o.actualOptions, (a) => Ne(t.$slots, o.actualName, {
3543
+ (W(!0), re(at, null, jt(o.actualOptions, (a) => Ne(t.$slots, o.actualName, {
3544
3544
  key: a.value,
3545
3545
  option: a,
3546
3546
  parentAutoCheck: e.parentAutoCheck,
@@ -3703,8 +3703,7 @@ const Zs = {
3703
3703
  type: String
3704
3704
  },
3705
3705
  labelInput: {
3706
- type: String,
3707
- required: !0
3706
+ type: String
3708
3707
  },
3709
3708
  labelSelect: {
3710
3709
  type: String,
@@ -3798,10 +3797,7 @@ const Zs = {
3798
3797
  IbLimitSelector: Ws,
3799
3798
  IbTooltip: sn
3800
3799
  }
3801
- }, Js = { class: "report-controls" }, Qs = { class: "repot-pagination" }, Xs = {
3802
- key: 0,
3803
- class: "pagination-input"
3804
- }, eu = { class: "row-count" }, tu = { class: "pagination-wrapper" }, nu = ["onClick"];
3800
+ }, Js = { class: "report-controls" }, Qs = { class: "repot-pagination" }, Xs = { class: "pagination-input" }, eu = { class: "row-count" }, tu = { class: "pagination-wrapper" }, nu = ["onClick"];
3805
3801
  function ru(t, n, e, i, o, r) {
3806
3802
  const s = fe("ib-limit-selector"), l = fe("ib-label"), d = fe("ib-input"), h = fe("ib-icon"), f = fe("ib-tooltip"), c = fe("ib-icon-button");
3807
3803
  return W(), re("div", Js, [
@@ -3811,19 +3807,21 @@ function ru(t, n, e, i, o, r) {
3811
3807
  "label-select": e.labelSelect
3812
3808
  }, null, 8, ["onSelect", "value", "label-select"]),
3813
3809
  le("div", Qs, [
3814
- ve(l, null, {
3815
- default: be(() => [
3816
- Ge(Ce(e.labelInput), 1)
3817
- ]),
3818
- _: 1
3819
- }),
3820
- e.showPaginationInput ? (W(), re("div", Xs, [
3821
- ve(d, {
3822
- type: "number",
3823
- debounce: 500,
3824
- onInput: r.onInput
3825
- }, null, 8, ["onInput"])
3826
- ])) : he("", !0),
3810
+ e.showPaginationInput ? (W(), re(at, { key: 0 }, [
3811
+ ve(l, null, {
3812
+ default: be(() => [
3813
+ Ge(Ce(e.labelInput), 1)
3814
+ ]),
3815
+ _: 1
3816
+ }),
3817
+ le("div", Xs, [
3818
+ ve(d, {
3819
+ type: "number",
3820
+ debounce: 500,
3821
+ onInput: r.onInput
3822
+ }, null, 8, ["onInput"])
3823
+ ])
3824
+ ], 64)) : he("", !0),
3827
3825
  le("div", eu, Ce(r.setCountOfRows + " of " + e.countRows), 1),
3828
3826
  ve(c, {
3829
3827
  kind: "tertiary",
@@ -3842,7 +3840,7 @@ function ru(t, n, e, i, o, r) {
3842
3840
  _: 1
3843
3841
  }, 8, ["disabled"]),
3844
3842
  le("ul", tu, [
3845
- (W(!0), re(ct, null, jt(r.countPagePagination, (a, u) => Ve((W(), re("li", {
3843
+ (W(!0), re(at, null, jt(r.countPagePagination, (a, u) => Ve((W(), re("li", {
3846
3844
  key: u,
3847
3845
  class: $e(["pagination-item", {
3848
3846
  active: u + 1 === o.currentPage,
@@ -4193,11 +4191,11 @@ const xu = {
4193
4191
  };
4194
4192
  function Pu(t, n, e, i, o, r) {
4195
4193
  return W(), re("div", Au, [
4196
- e.characterLength ? e.characterLimit > e.characterLength ? (W(), re(ct, { key: 1 }, [
4194
+ e.characterLength ? e.characterLimit > e.characterLength ? (W(), re(at, { key: 1 }, [
4197
4195
  le("p", Nu, Ce(e.characterLimit - e.characterLength), 1),
4198
4196
  Ge(" / "),
4199
4197
  le("p", Iu, Ce(e.characterLimit), 1)
4200
- ], 64)) : e.characterLimit === e.characterLength ? (W(), re(ct, { key: 2 }, [
4198
+ ], 64)) : e.characterLimit === e.characterLength ? (W(), re(at, { key: 2 }, [
4201
4199
  Ge("0")
4202
4200
  ], 64)) : (W(), re("p", Du, Ce(e.characterLimit - e.characterLength), 1)) : (W(), re("p", Tu, "Max " + Ce(e.characterLimit), 1))
4203
4201
  ]);
@@ -4752,15 +4750,15 @@ typeof Object.assign != "function" && (Object.assign = function(t) {
4752
4750
  }
4753
4751
  return t;
4754
4752
  });
4755
- var dt = globalThis && globalThis.__assign || function() {
4756
- return dt = Object.assign || function(t) {
4753
+ var ct = globalThis && globalThis.__assign || function() {
4754
+ return ct = Object.assign || function(t) {
4757
4755
  for (var n, e = 1, i = arguments.length; e < i; e++) {
4758
4756
  n = arguments[e];
4759
4757
  for (var o in n)
4760
4758
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
4761
4759
  }
4762
4760
  return t;
4763
- }, dt.apply(this, arguments);
4761
+ }, ct.apply(this, arguments);
4764
4762
  }, Bi = globalThis && globalThis.__spreadArrays || function() {
4765
4763
  for (var t = 0, n = 0, e = arguments.length; n < e; n++)
4766
4764
  t += arguments[n].length;
@@ -4771,7 +4769,7 @@ var dt = globalThis && globalThis.__assign || function() {
4771
4769
  }, Hu = 300;
4772
4770
  function Vu(t, n) {
4773
4771
  var e = {
4774
- config: dt(dt({}, yn), Je.defaultConfig),
4772
+ config: ct(ct({}, yn), Je.defaultConfig),
4775
4773
  l10n: qn
4776
4774
  };
4777
4775
  e.parseDate = ci({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = m, e._setHoursFromDate = a, e._positionCalendar = te, e.changeMonth = T, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = ye, e._createElement = qe, e.createDay = x, e.destroy = G, e.isEnabled = Z, e.jumpToDate = v, e.updateValue = ht, e.open = Ie, e.redraw = ie, e.set = tt, e.setDate = je, e.toggle = Xt;
@@ -5034,7 +5032,7 @@ function Vu(t, n) {
5034
5032
  set: function(I) {
5035
5033
  e.__hideNextMonthArrow !== I && (gt(e.nextMonthNav, "flatpickr-disabled", I), e.__hideNextMonthArrow = I);
5036
5034
  }
5037
- }), e.currentYearElement = e.yearElements[0], at(), e.monthNav;
5035
+ }), e.currentYearElement = e.yearElements[0], lt(), e.monthNav;
5038
5036
  }
5039
5037
  function Y() {
5040
5038
  e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
@@ -5087,7 +5085,7 @@ function Vu(t, n) {
5087
5085
  function T(I, L) {
5088
5086
  L === void 0 && (L = !0);
5089
5087
  var z = L ? I : I - e.currentMonth;
5090
- z < 0 && e._hidePrevMonthArrow === !0 || z > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += z, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Fe("onYearChange"), A()), k(), Fe("onMonthChange"), at());
5088
+ z < 0 && e._hidePrevMonthArrow === !0 || z > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += z, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Fe("onYearChange"), A()), k(), Fe("onMonthChange"), lt());
5091
5089
  }
5092
5090
  function B(I, L) {
5093
5091
  if (I === void 0 && (I = !0), L === void 0 && (L = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, L === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
@@ -5331,7 +5329,7 @@ function Vu(t, n) {
5331
5329
  "static",
5332
5330
  "enableSeconds",
5333
5331
  "disableMobile"
5334
- ], L = dt(dt({}, JSON.parse(JSON.stringify(t.dataset || {}))), n), z = {};
5332
+ ], L = ct(ct({}, JSON.parse(JSON.stringify(t.dataset || {}))), n), z = {};
5335
5333
  e.config.parseDate = L.parseDate, e.config.formatDate = L.formatDate, Object.defineProperty(e.config, "enable", {
5336
5334
  get: function() {
5337
5335
  return e.config._enable;
@@ -5401,8 +5399,8 @@ function Vu(t, n) {
5401
5399
  return e.config.wrap ? t.querySelector("[data-input]") : t;
5402
5400
  }
5403
5401
  function X() {
5404
- typeof e.config.locale != "object" && typeof Je.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = dt(dt({}, Je.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? Je.l10ns[e.config.locale] : void 0), ln.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", ln.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", ln.M = "(" + e.l10n.months.shorthand.join("|") + ")", ln.F = "(" + e.l10n.months.longhand.join("|") + ")", ln.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
5405
- var I = dt(dt({}, n), JSON.parse(JSON.stringify(t.dataset || {})));
5402
+ typeof e.config.locale != "object" && typeof Je.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = ct(ct({}, Je.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? Je.l10ns[e.config.locale] : void 0), ln.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", ln.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", ln.M = "(" + e.l10n.months.shorthand.join("|") + ")", ln.F = "(" + e.l10n.months.longhand.join("|") + ")", ln.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
5403
+ var I = ct(ct({}, n), JSON.parse(JSON.stringify(t.dataset || {})));
5406
5404
  I.time_24hr === void 0 && Je.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = Do(e), e.parseDate = ci({ config: e.config, l10n: e.l10n });
5407
5405
  }
5408
5406
  function te(I) {
@@ -5410,8 +5408,8 @@ function Vu(t, n) {
5410
5408
  return void e.config.position(e, I);
5411
5409
  if (e.calendarContainer !== void 0) {
5412
5410
  Fe("onPreCalendarPosition");
5413
- var L = I || e._positionElement, z = Array.prototype.reduce.call(e.calendarContainer.children, function(lt, xn) {
5414
- return lt + xn.offsetHeight;
5411
+ var L = I || e._positionElement, z = Array.prototype.reduce.call(e.calendarContainer.children, function(st, xn) {
5412
+ return st + xn.offsetHeight;
5415
5413
  }, 0), Q = e.calendarContainer.offsetWidth, ae = e.config.position.split(" "), de = ae[0], ke = ae.length > 1 ? ae[1] : null, ge = L.getBoundingClientRect(), De = window.innerHeight - ge.bottom, pe = de === "above" || de !== "below" && De < z && ge.top > z, Oe = window.pageYOffset + ge.top + (pe ? -z - 2 : L.offsetHeight + 2);
5416
5414
  if (gt(e.calendarContainer, "arrowTop", !pe), gt(e.calendarContainer, "arrowBottom", pe), !e.config.inline) {
5417
5415
  var Re = window.pageXOffset + ge.left, Ue = !1, rt = !1;
@@ -5452,7 +5450,7 @@ function Vu(t, n) {
5452
5450
  return document.head.appendChild(I), I.sheet;
5453
5451
  }
5454
5452
  function ie() {
5455
- e.config.noCalendar || e.isMobile || (A(), at(), k());
5453
+ e.config.noCalendar || e.isMobile || (A(), lt(), k());
5456
5454
  }
5457
5455
  function xe() {
5458
5456
  e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
@@ -5477,7 +5475,7 @@ function Vu(t, n) {
5477
5475
  var ge = e.currentYear !== ae.getFullYear();
5478
5476
  e.currentYear = ae.getFullYear(), e.currentMonth = ae.getMonth(), ge && (Fe("onYearChange"), A()), Fe("onMonthChange");
5479
5477
  }
5480
- if (at(), k(), ht(), !de && e.config.mode !== "range" && e.config.showMonths === 1 ? E(Q) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
5478
+ if (lt(), k(), ht(), !de && e.config.mode !== "range" && e.config.showMonths === 1 ? E(Q) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
5481
5479
  var De = e.config.mode === "single" && !e.config.enableTime, pe = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
5482
5480
  (De || pe) && xe();
5483
5481
  }
@@ -5612,7 +5610,7 @@ function Vu(t, n) {
5612
5610
  function qt(I) {
5613
5611
  return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : Ot(I, e.selectedDates[0]) >= 0 && Ot(I, e.selectedDates[1]) <= 0;
5614
5612
  }
5615
- function at() {
5613
+ function lt() {
5616
5614
  e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(I, L) {
5617
5615
  var z = new Date(e.currentYear, e.currentMonth, 1);
5618
5616
  z.setMonth(e.currentMonth + L), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[L].textContent = hr(z.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = z.getMonth().toString(), I.value = z.getFullYear().toString();
@@ -5670,14 +5668,14 @@ var Je = function(t, n) {
5670
5668
  };
5671
5669
  Je.defaultConfig = {};
5672
5670
  Je.l10ns = {
5673
- en: dt({}, qn),
5674
- default: dt({}, qn)
5671
+ en: ct({}, qn),
5672
+ default: ct({}, qn)
5675
5673
  };
5676
5674
  Je.localize = function(t) {
5677
- Je.l10ns.default = dt(dt({}, Je.l10ns.default), t);
5675
+ Je.l10ns.default = ct(ct({}, Je.l10ns.default), t);
5678
5676
  };
5679
5677
  Je.setDefaults = function(t) {
5680
- Je.defaultConfig = dt(dt({}, Je.defaultConfig), t);
5678
+ Je.defaultConfig = ct(ct({}, Je.defaultConfig), t);
5681
5679
  };
5682
5680
  Je.parseDate = ci({});
5683
5681
  Je.formatDate = Do({});
@@ -9606,7 +9604,7 @@ function mf(t, n, e, i, o, r) {
9606
9604
  }, null, 8, hf)), [
9607
9605
  [_o, o.searchQuery]
9608
9606
  ]) : he("", !0),
9609
- (W(!0), re(ct, null, jt(r.sortedCountries, (l, d) => (W(), re("li", {
9607
+ (W(!0), re(at, null, jt(r.sortedCountries, (l, d) => (W(), re("li", {
9610
9608
  role: "option",
9611
9609
  class: $e(["vti__dropdown-item", r.getItemClass(d, l.iso2)]),
9612
9610
  key: l.iso2 + (l.preferred ? "-preferred" : ""),
@@ -9714,7 +9712,7 @@ const bf = {
9714
9712
  };
9715
9713
  function $f(t, n, e, i, o, r) {
9716
9714
  const s = fe("ib-alert"), l = fe("ib-icon"), d = fe("vue-tel-input"), h = $r("outside");
9717
- return W(), re(ct, null, [
9715
+ return W(), re(at, null, [
9718
9716
  e.errorMessage.length ? (W(), _e(s, {
9719
9717
  key: 0,
9720
9718
  class: "ib-phone-error-message"
@@ -17467,7 +17465,7 @@ mr.exports;
17467
17465
  return b ? "Symbol(src)_1." + b : "";
17468
17466
  }(), xe = te.toString, we = se.hasOwnProperty, Se = se.toString, tt = RegExp(
17469
17467
  "^" + xe.call(we).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
17470
- ), We = M ? j.Buffer : void 0, je = j.Symbol, Tt = j.Uint8Array, Me = Ke(Object.getPrototypeOf, Object), ft = Object.create, Qt = se.propertyIsEnumerable, _n = X.splice, Xt = Object.getOwnPropertySymbols, Fe = We ? We.isBuffer : void 0, Gt = Ke(Object.keys, Object), Nt = St(j, "DataView"), qt = St(j, "Map"), at = St(j, "Promise"), It = St(j, "Set"), ht = St(j, "WeakMap"), Ft = St(Object, "create"), en = pt(Nt), I = pt(qt), L = pt(at), z = pt(It), Q = pt(ht), ae = je ? je.prototype : void 0, de = ae ? ae.valueOf : void 0;
17468
+ ), We = M ? j.Buffer : void 0, je = j.Symbol, Tt = j.Uint8Array, Me = Ke(Object.getPrototypeOf, Object), ft = Object.create, Qt = se.propertyIsEnumerable, _n = X.splice, Xt = Object.getOwnPropertySymbols, Fe = We ? We.isBuffer : void 0, Gt = Ke(Object.keys, Object), Nt = St(j, "DataView"), qt = St(j, "Map"), lt = St(j, "Promise"), It = St(j, "Set"), ht = St(j, "WeakMap"), Ft = St(Object, "create"), en = pt(Nt), I = pt(qt), L = pt(lt), z = pt(It), Q = pt(ht), ae = je ? je.prototype : void 0, de = ae ? ae.valueOf : void 0;
17471
17469
  function ke(b) {
17472
17470
  var N = -1, F = b ? b.length : 0;
17473
17471
  for (this.clear(); ++N < F; ) {
@@ -17554,7 +17552,7 @@ mr.exports;
17554
17552
  return rn(this, b).set(b, N), this;
17555
17553
  }
17556
17554
  nt.prototype.clear = On, nt.prototype.delete = kn, nt.prototype.get = Cn, nt.prototype.has = En, nt.prototype.set = Sn;
17557
- function lt(b) {
17555
+ function st(b) {
17558
17556
  this.__data__ = new Ue(b);
17559
17557
  }
17560
17558
  function xn() {
@@ -17579,7 +17577,7 @@ mr.exports;
17579
17577
  }
17580
17578
  return F.set(b, N), this;
17581
17579
  }
17582
- lt.prototype.clear = xn, lt.prototype.delete = xr, lt.prototype.get = Ar, lt.prototype.has = Tr, lt.prototype.set = Nr;
17580
+ st.prototype.clear = xn, st.prototype.delete = xr, st.prototype.get = Ar, st.prototype.has = Tr, st.prototype.set = Nr;
17583
17581
  function dn(b, N) {
17584
17582
  var F = In(b) || hn(b) ? ye(b.length, String) : [], ee = F.length, Te = !!ee;
17585
17583
  for (var me in b)
@@ -17610,13 +17608,13 @@ mr.exports;
17610
17608
  if (Be = Vr(b), !N)
17611
17609
  return qr(b, Be);
17612
17610
  } else {
17613
- var He = Ut(b), st = He == f || He == c;
17611
+ var He = Ut(b), ut = He == f || He == c;
17614
17612
  if (Qn(b))
17615
17613
  return fn(b, N);
17616
- if (He == $ || He == r || st && !me) {
17614
+ if (He == $ || He == r || ut && !me) {
17617
17615
  if (Ie(b))
17618
17616
  return me ? b : {};
17619
- if (Be = Mt(st ? {} : b), !N)
17617
+ if (Be = Mt(ut ? {} : b), !N)
17620
17618
  return Fr(b, Pt(Be, b));
17621
17619
  } else {
17622
17620
  if (!R[He])
@@ -17624,14 +17622,14 @@ mr.exports;
17624
17622
  Be = Ur(b, He, An, N);
17625
17623
  }
17626
17624
  }
17627
- Le || (Le = new lt());
17625
+ Le || (Le = new st());
17628
17626
  var mt = Le.get(b);
17629
17627
  if (mt)
17630
17628
  return mt;
17631
17629
  if (Le.set(b, Be), !Ze)
17632
17630
  var Qe = F ? Hr(b) : Pn(b);
17633
- return J(Qe || b, function(ut, it) {
17634
- Qe && (it = ut, ut = b[it]), Kn(Be, it, An(ut, N, F, ee, it, b, Le));
17631
+ return J(Qe || b, function(dt, it) {
17632
+ Qe && (it = dt, dt = b[it]), Kn(Be, it, An(dt, N, F, ee, it, b, Le));
17635
17633
  }), Be;
17636
17634
  }
17637
17635
  function Ir(b) {
@@ -17720,7 +17718,7 @@ mr.exports;
17720
17718
  return Mr(F) ? F : void 0;
17721
17719
  }
17722
17720
  var Vt = Xt ? Ke(Xt, Object) : Wr, Ut = Pr;
17723
- (Nt && Ut(new Nt(new ArrayBuffer(1))) != x || qt && Ut(new qt()) != a || at && Ut(at.resolve()) != m || It && Ut(new It()) != g || ht && Ut(new ht()) != p) && (Ut = function(b) {
17721
+ (Nt && Ut(new Nt(new ArrayBuffer(1))) != x || qt && Ut(new qt()) != a || lt && Ut(lt.resolve()) != m || It && Ut(new It()) != g || ht && Ut(new ht()) != p) && (Ut = function(b) {
17724
17722
  var N = Se.call(b), F = N == $ ? b.constructor : void 0, ee = F ? pt(F) : void 0;
17725
17723
  if (ee)
17726
17724
  switch (ee) {
@@ -17913,7 +17911,7 @@ yr.exports;
17913
17911
  return b ? "Symbol(src)_1." + b : "";
17914
17912
  }(), Qt = We.toString, _n = RegExp(
17915
17913
  "^" + Tt.call(Me).replace(B, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
17916
- ), Xt = ce ? Z.Buffer : void 0, Fe = Z.Symbol, Gt = Z.Uint8Array, Nt = We.propertyIsEnumerable, qt = Se.splice, at = Fe ? Fe.toStringTag : void 0, It = Object.getOwnPropertySymbols, ht = Xt ? Xt.isBuffer : void 0, Ft = xe(Object.keys, Object), en = Vt(Z, "DataView"), I = Vt(Z, "Map"), L = Vt(Z, "Promise"), z = Vt(Z, "Set"), Q = Vt(Z, "WeakMap"), ae = Vt(Object, "create"), de = pt(en), ke = pt(I), ge = pt(L), De = pt(z), pe = pt(Q), Oe = Fe ? Fe.prototype : void 0, Re = Oe ? Oe.valueOf : void 0;
17914
+ ), Xt = ce ? Z.Buffer : void 0, Fe = Z.Symbol, Gt = Z.Uint8Array, Nt = We.propertyIsEnumerable, qt = Se.splice, lt = Fe ? Fe.toStringTag : void 0, It = Object.getOwnPropertySymbols, ht = Xt ? Xt.isBuffer : void 0, Ft = xe(Object.keys, Object), en = Vt(Z, "DataView"), I = Vt(Z, "Map"), L = Vt(Z, "Promise"), z = Vt(Z, "Set"), Q = Vt(Z, "WeakMap"), ae = Vt(Object, "create"), de = pt(en), ke = pt(I), ge = pt(L), De = pt(z), pe = pt(Q), Oe = Fe ? Fe.prototype : void 0, Re = Oe ? Oe.valueOf : void 0;
17917
17915
  function Ue(b) {
17918
17916
  var N = -1, F = b == null ? 0 : b.length;
17919
17917
  for (this.clear(); ++N < F; ) {
@@ -17974,7 +17972,7 @@ yr.exports;
17974
17972
  return ee < 0 ? (++this.size, F.push([b, N])) : F[ee][1] = N, this;
17975
17973
  }
17976
17974
  nt.prototype.clear = On, nt.prototype.delete = kn, nt.prototype.get = Cn, nt.prototype.has = En, nt.prototype.set = Sn;
17977
- function lt(b) {
17975
+ function st(b) {
17978
17976
  var N = -1, F = b == null ? 0 : b.length;
17979
17977
  for (this.clear(); ++N < F; ) {
17980
17978
  var ee = b[N];
@@ -18002,10 +18000,10 @@ yr.exports;
18002
18000
  var F = St(this, b), ee = F.size;
18003
18001
  return F.set(b, N), this.size += F.size == ee ? 0 : 1, this;
18004
18002
  }
18005
- lt.prototype.clear = xn, lt.prototype.delete = xr, lt.prototype.get = Ar, lt.prototype.has = Tr, lt.prototype.set = Nr;
18003
+ st.prototype.clear = xn, st.prototype.delete = xr, st.prototype.get = Ar, st.prototype.has = Tr, st.prototype.set = Nr;
18006
18004
  function dn(b) {
18007
18005
  var N = -1, F = b == null ? 0 : b.length;
18008
- for (this.__data__ = new lt(); ++N < F; )
18006
+ for (this.__data__ = new st(); ++N < F; )
18009
18007
  this.add(b[N]);
18010
18008
  }
18011
18009
  function Kn(b) {
@@ -18038,7 +18036,7 @@ yr.exports;
18038
18036
  var ee = F.__data__;
18039
18037
  if (!I || ee.length < e - 1)
18040
18038
  return ee.push([b, N]), this.size = ++F.size, this;
18041
- F = this.__data__ = new lt(ee);
18039
+ F = this.__data__ = new st(ee);
18042
18040
  }
18043
18041
  return F.set(b, N), this.size = F.size, this;
18044
18042
  }
@@ -18064,7 +18062,7 @@ yr.exports;
18064
18062
  return hn(b) ? ee : Ke(ee, F(b));
18065
18063
  }
18066
18064
  function nn(b) {
18067
- return b == null ? b === void 0 ? D : g : at && at in Object(b) ? Ut(b) : Wn(b);
18065
+ return b == null ? b === void 0 ? D : g : lt && lt in Object(b) ? Ut(b) : Wn(b);
18068
18066
  }
18069
18067
  function Gn(b) {
18070
18068
  return Lt(b) && nn(b) == l;
@@ -18075,18 +18073,18 @@ yr.exports;
18075
18073
  function Rr(b, N, F, ee, Te, me) {
18076
18074
  var Le = hn(b), Be = hn(N), Ze = Le ? d : Mt(b), He = Be ? d : Mt(N);
18077
18075
  Ze = Ze == l ? v : Ze, He = He == l ? v : He;
18078
- var st = Ze == v, mt = He == v, Qe = Ze == He;
18076
+ var ut = Ze == v, mt = He == v, Qe = Ze == He;
18079
18077
  if (Qe && pn(b)) {
18080
18078
  if (!pn(N))
18081
18079
  return !1;
18082
- Le = !0, st = !1;
18080
+ Le = !0, ut = !1;
18083
18081
  }
18084
- if (Qe && !st)
18082
+ if (Qe && !ut)
18085
18083
  return me || (me = new Pt()), Le || er(b) ? Nn(b, N, F, ee, Te, me) : Fr(b, N, Ze, F, ee, Te, me);
18086
18084
  if (!(F & o)) {
18087
- var ut = st && Me.call(b, "__wrapped__"), it = mt && Me.call(N, "__wrapped__");
18088
- if (ut || it) {
18089
- var Yt = ut ? b.value() : b, zt = it ? N.value() : N;
18085
+ var dt = ut && Me.call(b, "__wrapped__"), it = mt && Me.call(N, "__wrapped__");
18086
+ if (dt || it) {
18087
+ var Yt = dt ? b.value() : b, zt = it ? N.value() : N;
18090
18088
  return me || (me = new Pt()), Te(Yt, zt, F, ee, me);
18091
18089
  }
18092
18090
  }
@@ -18116,11 +18114,11 @@ yr.exports;
18116
18114
  var He = me.get(b);
18117
18115
  if (He && me.get(N))
18118
18116
  return He == N;
18119
- var st = -1, mt = !0, Qe = F & r ? new dn() : void 0;
18120
- for (me.set(b, N), me.set(N, b); ++st < Be; ) {
18121
- var ut = b[st], it = N[st];
18117
+ var ut = -1, mt = !0, Qe = F & r ? new dn() : void 0;
18118
+ for (me.set(b, N), me.set(N, b); ++ut < Be; ) {
18119
+ var dt = b[ut], it = N[ut];
18122
18120
  if (ee)
18123
- var Yt = Le ? ee(it, ut, st, N, b, me) : ee(ut, it, st, b, N, me);
18121
+ var Yt = Le ? ee(it, dt, ut, N, b, me) : ee(dt, it, ut, b, N, me);
18124
18122
  if (Yt !== void 0) {
18125
18123
  if (Yt)
18126
18124
  continue;
@@ -18129,13 +18127,13 @@ yr.exports;
18129
18127
  }
18130
18128
  if (Qe) {
18131
18129
  if (!ze(N, function(zt, on) {
18132
- if (!se(Qe, on) && (ut === zt || Te(ut, zt, F, ee, me)))
18130
+ if (!se(Qe, on) && (dt === zt || Te(dt, zt, F, ee, me)))
18133
18131
  return Qe.push(on);
18134
18132
  })) {
18135
18133
  mt = !1;
18136
18134
  break;
18137
18135
  }
18138
- } else if (!(ut === it || Te(ut, it, F, ee, me))) {
18136
+ } else if (!(dt === it || Te(dt, it, F, ee, me))) {
18139
18137
  mt = !1;
18140
18138
  break;
18141
18139
  }
@@ -18169,8 +18167,8 @@ yr.exports;
18169
18167
  if (He)
18170
18168
  return He == N;
18171
18169
  ee |= r, Le.set(b, N);
18172
- var st = Nn(Be(b), Be(N), ee, Te, me, Le);
18173
- return Le.delete(b), st;
18170
+ var ut = Nn(Be(b), Be(N), ee, Te, me, Le);
18171
+ return Le.delete(b), ut;
18174
18172
  case S:
18175
18173
  if (Re)
18176
18174
  return Re.call(b) == Re.call(N);
@@ -18178,17 +18176,17 @@ yr.exports;
18178
18176
  return !1;
18179
18177
  }
18180
18178
  function Hr(b, N, F, ee, Te, me) {
18181
- var Le = F & o, Be = rn(b), Ze = Be.length, He = rn(N), st = He.length;
18182
- if (Ze != st && !Le)
18179
+ var Le = F & o, Be = rn(b), Ze = Be.length, He = rn(N), ut = He.length;
18180
+ if (Ze != ut && !Le)
18183
18181
  return !1;
18184
18182
  for (var mt = Ze; mt--; ) {
18185
18183
  var Qe = Be[mt];
18186
18184
  if (!(Le ? Qe in N : Me.call(N, Qe)))
18187
18185
  return !1;
18188
18186
  }
18189
- var ut = me.get(b);
18190
- if (ut && me.get(N))
18191
- return ut == N;
18187
+ var dt = me.get(b);
18188
+ if (dt && me.get(N))
18189
+ return dt == N;
18192
18190
  var it = !0;
18193
18191
  me.set(b, N), me.set(N, b);
18194
18192
  for (var Yt = Le; ++mt < Ze; ) {
@@ -18220,14 +18218,14 @@ yr.exports;
18220
18218
  return Br(F) ? F : void 0;
18221
18219
  }
18222
18220
  function Ut(b) {
18223
- var N = Me.call(b, at), F = b[at];
18221
+ var N = Me.call(b, lt), F = b[lt];
18224
18222
  try {
18225
- b[at] = void 0;
18223
+ b[lt] = void 0;
18226
18224
  var ee = !0;
18227
18225
  } catch {
18228
18226
  }
18229
18227
  var Te = Qt.call(b);
18230
- return ee && (N ? b[at] = F : delete b[at]), Te;
18228
+ return ee && (N ? b[lt] = F : delete b[lt]), Te;
18231
18229
  }
18232
18230
  var Vr = It ? function(b) {
18233
18231
  return b == null ? [] : (b = Object(b), Pe(It(b), function(N) {
@@ -3,7 +3,7 @@
3
3
  * https://markjs.io/
4
4
  * Copyright (c) 2014–2018, Julian Kühnel
5
5
  * Released under the MIT license https://git.io/vwTVl
6
- *****************************************************/(function(t,n){(function(e,o){t.exports=o()})(Ve,function(){class e{constructor(r,d=!0,s=[],u=5e3){this.ctx=r,this.iframes=d,this.exclude=s,this.iframesTimeout=u}static matches(r,d){const s=typeof d=="string"?[d]:d,u=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(u){let p=!1;return s.every(h=>!u.call(r,h)||(p=!0,!1)),p}return!1}getContexts(){let r=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(d=>{const s=r.filter(u=>u.contains(d)).length>0;r.indexOf(d)!==-1||s||r.push(d)}),r}getIframeContents(r,d,s=()=>{}){let u;try{const p=r.contentWindow;if(u=p.document,!p||!u)throw new Error("iframe inaccessible")}catch{s()}u&&d(u)}isIframeBlank(r){const d="about:blank",s=r.getAttribute("src").trim();return r.contentWindow.location.href===d&&s!==d&&s}observeIframeLoad(r,d,s){let u=!1,p=null;const h=()=>{if(!u){u=!0,clearTimeout(p);try{this.isIframeBlank(r)||(r.removeEventListener("load",h),this.getIframeContents(r,d,s))}catch{s()}}};r.addEventListener("load",h),p=setTimeout(h,this.iframesTimeout)}onIframeReady(r,d,s){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,d,s):this.getIframeContents(r,d,s):this.observeIframeLoad(r,d,s)}catch{s()}}waitForIframes(r,d){let s=0;this.forEachIframe(r,()=>!0,u=>{s++,this.waitForIframes(u.querySelector("html"),()=>{--s||d()})},u=>{u||d()})}forEachIframe(r,d,s,u=()=>{}){let p=r.querySelectorAll("iframe"),h=p.length,f=0;p=Array.prototype.slice.call(p);const l=()=>{--h<=0&&u(f)};h||l(),p.forEach(c=>{e.matches(c,this.exclude)?l():this.onIframeReady(c,_=>{d(c)&&(f++,s(_)),l()},l)})}createIterator(r,d,s){return document.createNodeIterator(r,d,s,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,d,s){const u=r.compareDocumentPosition(s),p=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&p&&(d===null||d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const d=r.previousNode();return{prevNode:d,node:(d===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,d,s,u){let p=!1,h=!1;return u.forEach((f,l)=>{f.val===s&&(p=l,h=f.handled)}),this.compareNodeIframe(r,d,s)?(p!==!1||h?p===!1||h||(u[p].handled=!0):u.push({val:s,handled:!0}),!0):(p===!1&&u.push({val:s,handled:!1}),!1)}handleOpenIframes(r,d,s,u){r.forEach(p=>{p.handled||this.getIframeContents(p.val,h=>{this.createInstanceOnIframe(h).forEachNode(d,s,u)})})}iterateThroughNodes(r,d,s,u,p){const h=this.createIterator(d,r,u);let f,l,c=[],_=[],v=()=>({prevNode:l,node:f}=this.getIteratorNode(h),f);for(;v();)this.iframes&&this.forEachIframe(d,b=>this.checkIframeFilter(f,l,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),u)}),_.push(f);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(c,r,s,u),p()}forEachNode(r,d,s,u=()=>{}){const p=this.getContexts();let h=p.length;h||u(),p.forEach(f=>{const l=()=>{this.iterateThroughNodes(r,f,d,s,()=>{--h<=0&&u()})};this.iframes?this.waitForIframes(f,l):l()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const d=window.navigator.userAgent;(d.indexOf("MSIE")>-1||d.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(r){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},r)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(r,d="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[d]=="function"&&s[d](`mark.js: ${r}`)}escapeStr(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(r){return this.opt.wildcards!=="disabled"&&(r=this.setupWildcardsRegExp(r)),r=this.escapeStr(r),Object.keys(this.opt.synonyms).length&&(r=this.createSynonymsRegExp(r)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),this.opt.diacritics&&(r=this.createDiacriticsRegExp(r)),r=this.createMergedBlanksRegExp(r),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.createJoinersRegExp(r)),this.opt.wildcards!=="disabled"&&(r=this.createWildcardsRegExp(r)),r=this.createAccuracyRegExp(r)}createSynonymsRegExp(r){const d=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let p in d)if(d.hasOwnProperty(p)){const h=d[p],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h);f!==""&&l!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(l)})`,`gm${s}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(l)})`+u))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,d=>d.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,d=>d.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let d=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(d,s,u)=>{let p=u.charAt(s+1);return/[(|)\\]/.test(p)||p===""?d:d+"\0"})}createJoinersRegExp(r){let d=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&d.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?r.split(/\u0000+/).join(`[${d.join("")}]*`):r}createDiacriticsRegExp(r){const d=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let u=[];return r.split("").forEach(p=>{s.every(h=>{if(h.indexOf(p)!==-1){if(u.indexOf(h)>-1)return!1;r=r.replace(new RegExp(`[${h}]`,`gm${d}`),`[${h}]`),u.push(h)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,u=typeof s=="string"?s:s.value,p=typeof s=="string"?[]:s.limiters,h="";switch(p.forEach(f=>{h+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${r})`;case"complementary":return`()([^${h="\\s"+(h||this.escapeStr(d))}]*${r}[^${h}]*)`;case"exactly":return`(^|\\s${h})(${r})(?=$|\\s${h})`}}getSeparatedKeywords(r){let d=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(u=>{u.trim()&&d.indexOf(u)===-1&&d.push(u)}):s.trim()&&d.indexOf(s)===-1&&d.push(s)}),{keywords:d.sort((s,u)=>u.length-s.length),length:d.length}}isNumeric(r){return Number(parseFloat(r))==r}checkRanges(r){if(!Array.isArray(r)||Object.prototype.toString.call(r[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(r),[];const d=[];let s=0;return r.sort((u,p)=>u.start-p.start).forEach(u=>{let{start:p,end:h,valid:f}=this.callNoMatchOnInvalidRanges(u,s);f&&(u.start=p,u.length=h-p,d.push(u),s=h)}),d}callNoMatchOnInvalidRanges(r,d){let s,u,p=!1;return r&&r.start!==void 0?(u=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&u-d>0&&u-s>0?p=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(r)}`),this.opt.noMatch(r))):(this.log(`Ignoring invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)),{start:s,end:u,valid:p}}checkWhitespaceRanges(r,d,s){let u,p=!0,h=s.length,f=d-h,l=parseInt(r.start,10)-f;return(u=(l=l>h?h:l)+parseInt(r.length,10))>h&&(u=h,this.log(`End range automatically set to the max value of ${h}`)),l<0||u-l<0||l>h||u>h?(p=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(l,u).replace(/\s+/g,"")===""&&(p=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:l,end:u,valid:p}}getTextNodes(r){let d="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{s.push({start:d.length,end:(d+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:d,nodes:s})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,d,s){const u=this.opt.element?this.opt.element:"mark",p=r.splitText(d),h=p.splitText(s-d);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=p.textContent,p.parentNode.replaceChild(f,p),h}wrapRangeInMappedTextNode(r,d,s,u,p){r.nodes.every((h,f)=>{const l=r.nodes[f+1];if(l===void 0||l.start>d){if(!u(h.node))return!1;const c=d-h.start,_=(s>h.end?h.end:s)-h.start,v=r.value.substr(0,h.start),b=r.value.substr(_+h.start);if(h.node=this.wrapRangeInTextNode(h.node,c,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=f&&(r.nodes[y].start>0&&y!==f&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,p(h.node.previousSibling,h.start),!(s>h.end))return!1;d=h.end}return!0})}wrapMatches(r,d,s,u,p){const h=d===0?0:d+1;this.getTextNodes(f=>{f.nodes.forEach(l=>{let c;for(l=l.node;(c=r.exec(l.textContent))!==null&&c[h]!=="";){if(!s(c[h],l))continue;let _=c.index;if(h!==0)for(let v=1;v<h;v++)_+=c[v].length;l=this.wrapRangeInTextNode(l,_,_+c[h].length),u(l.previousSibling),r.lastIndex=0}}),p()})}wrapMatchesAcrossElements(r,d,s,u,p){const h=d===0?0:d+1;this.getTextNodes(f=>{let l;for(;(l=r.exec(f.value))!==null&&l[h]!=="";){let c=l.index;if(h!==0)for(let v=1;v<h;v++)c+=l[v].length;const _=c+l[h].length;this.wrapRangeInMappedTextNode(f,c,_,v=>s(l[h],v),(v,b)=>{r.lastIndex=b,u(v)})}p()})}wrapRangeFromIndex(r,d,s,u){this.getTextNodes(p=>{const h=p.value.length;r.forEach((f,l)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(f,h,p.value);v&&this.wrapRangeInMappedTextNode(p,c,_,b=>d(b,f,p.value.substring(c,_),l),b=>{s(b,f)})}),u()})}unwrapMatches(r){const d=r.parentNode;let s=document.createDocumentFragment();for(;r.firstChild;)s.appendChild(r.removeChild(r.firstChild));d.replaceChild(s,r),this.ie?this.normalizeTextNode(d):d.normalize()}normalizeTextNode(r){if(r){if(r.nodeType===3)for(;r.nextSibling&&r.nextSibling.nodeType===3;)r.nodeValue+=r.nextSibling.nodeValue,r.parentNode.removeChild(r.nextSibling);else this.normalizeTextNode(r.firstChild);this.normalizeTextNode(r.nextSibling)}}markRegExp(r,d){this.opt=d,this.log(`Searching with expression "${r}"`);let s=0,u="wrapMatches";const p=h=>{s++,this.opt.each(h)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](r,this.opt.ignoreGroups,(h,f)=>this.opt.filter(f,h,s),p,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,d){this.opt=d;let s=0,u="wrapMatches";const{keywords:p,length:h}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),f=this.opt.caseSensitive?"":"i",l=c=>{let _=new RegExp(this.createRegExp(c),`gm${f}`),v=0;this.log(`Searching with expression "${_}"`),this[u](_,1,(b,g)=>this.opt.filter(g,c,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),p[h-1]===c?this.opt.done(s):l(p[p.indexOf(c)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),h===0?this.opt.done(s):l(p[0])}markRanges(r,d){this.opt=d;let s=0,u=this.checkRanges(r);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(p,h,f,l)=>this.opt.filter(p,h,f,l),(p,h)=>{s++,this.opt.each(p,h)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(r){this.opt=r;let d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+=`.${this.opt.className}`),this.log(`Removal selector "${d}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const u=e.matches(s,d),p=this.matchesExclude(s);return!u||p?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(d,s)=>(r.mark(d,s),this),this.markRegExp=(d,s)=>(r.markRegExp(d,s),this),this.markRanges=(d,s)=>(r.markRanges(d,s),this),this.unmark=d=>(r.unmark(d),this),this}})})(ki);var gs=ki.exports;const ys=Bn(gs),jh="",vs={name:"IbTreeSelect",props:{placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return Dt()}},options:{default(){return[]}},modelValue:{type:[Number,String,Array]},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:!0},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return Dt()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},watch:{value(t){this.val=t,this.setPreparedValues()},modelValue(t){this.val=t,this.setPreparedValues()},val(t){this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options(){let t=!0;if(typeof this.options=="function")t=!1;else{const n=[],e=this.options;Array.prototype.forEach.call(e,o=>{o.id!==void 0&&n.push(o.id)}),t=JSON.stringify(n)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=n}(this.isInitialized&&!t||this.isWatching)&&this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new ys(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){return this.defaultFilter=t=>{this.marker.unmark();const n=this.filterString.toLowerCase().trim();this.countVisibleChildren=this.filterFunc.call(this,t,n),n&&this.marker.mark(n)},{val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,optionsIdsWatch:[],isLoading:!1,actualName:this.isMultiple?this.name+"[]":this.name,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],allOptionsIsChecked:!0,countVisibleChildren:0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,actualStrings:{searchPlaceholder:"Search placeholder",emptyTitle:"Empty title",selectAllOptions:"All Options",allSelected:"All selected",loading:"loading",selectedCount:"Selected {selected} of {all} items",buttonTitle:"Button title",requiredDependencyNotFilled:"Required dependency are not filled",...this.strings},dependencyValue:null}},methods:{startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",n=>{this.clear(),this.dependencyValue=n,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})}))},filter(t,n){this.filterString=t,this.$emit("search",{search:this.filterString}),this.defaultFilter(n)},setPreparedValues(t){return this.prepare(t||this.options).then(([n,e])=>{this.actualOptions=n,this.allOptionsIsChecked=this.checkIfOptionsChecked(n),this.countVisibleChildren=n.length,this.isInitialized=!0,this.selected=e,this.setBookmarkedOptions(n)})},clear(){this.actualOptions=[],this.allOptionsIsChecked=!1,this.countVisibleChildren=0,this.selected=[],this.$emit("update:modelValue",null)},clearValue(){this.clear(),this.setPreparedValues()},prepare(t){return new Promise(n=>{const e={},o=[];let a=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),a=a.then(t)):a=a.then(()=>t),a.then(r=>(this.isLoading=!1,r.forEach(d=>{d.initiallyVisible=typeof d.visible>"u"?!0:d.visible,d.visible=d.initiallyVisible,d.isDisabled=!1,d.checked=this.isMultiple?this.val!==null&&this.val.findIndex(s=>d.id==s)>-1:this.val!==null&&this.val==d.id,d.checked&&(!this.onlyEndNodes||!d.children)&&(e[d.id]=d),d.children&&(this.hasTreeChildren=!0,d.isChildrenVisible=!1),o.push(new Promise(s=>{d.children?this.prepare(d.children).then(([u,p])=>{d.children=u,Object.assign(e,p),s(d)}):s(d)}))}),Promise.all(o).then(d=>{n([d,e])}))).catch(r=>{throw this.isLoading=!1,r})})},filterFunc(t,n){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let r=this.filterFunc(o.children,n);e+=r,r&&(o.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=r<o.children.length&&!this.isBookmarkable),a?r||(a=!1):a=!!r}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(n=>n.checked)},registerCheck(t,n,e){if(n)if(t.checked=!0,this.isMultiple)this.onlyEndNodes&&t.children&&t.children.length||(this.selected[t.id]=t,this.$emit("input",Object.keys(this.selected)),this.$emit("update:modelValue",Object.keys(this.selected)));else{const o=Object.keys(this.selected)[0];o&&(this.selected[o].checked=!1),this.selected={[t.id]:t},this.change()}else delete this.selected[t.id],t.checked=!1,this.$emit("input",Object.keys(this.selected)),this.$emit("update:modelValue",Object.keys(this.selected));this.toggleDuplicateOptions(this.actualOptions,t.id,n),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,n,e){for(let o of t)o.id===n&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,n,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,n){t.forEach(e=>{n(e),e.children&&e.children.length&&this.traverseTree(e.children,n)})},getArrayOptions(t){let n=[];for(let e of t)n.push(e),e.children&&(n=n.concat(this.getArrayOptions(e.children)));return n},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(n=>{n.children&&n.children.length?this.setBookmarkedOptions(n.children):this.initBookmarks.includes(n.id)&&(this.actualBookmarkedOptions[n.id]=n)}),this.filter(this.filterString,t)}},computed:{hasTrigger(){return!!this.$slots.trigger},hasEmptyMessage(){return!!this.$slots.emptyMessage},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.selectedKeys.length<this.optionsCount?this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.actualStrings.allSelected:this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let n of this.arrayOfOptions)(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&t.push(n.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,n=>{(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&n.visible&&t.push(n.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbIconButton:ut,IbIcon:Le,IbDropdown:Pn,IbInput:mr,List:fr,"select-option":ms},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},bs={class:"tree-select"},$s={key:0,class:"tree-select-empty"},_s={key:1,class:"tree-select-default-empty tree-select-empty"};function ws(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),u=i.resolveComponent("select-option"),p=i.resolveComponent("list"),h=i.resolveComponent("ib-input"),f=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",bs,[i.createVNode(f,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:e.vertical,ref:"dropdown"},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle({width:"auto",position:"absolute",left:-a.size.left+"px",right:-a.size.right+"px"})},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[1]||(n[1]=l=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[2]||(n[2]=l=>r.startResizing("right"))},null,32)):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(),i.createBlock(p,{key:2,class:i.normalizeClass({"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualBookmarkedOptions,l=>(i.openBlock(),i.createBlock(u,{key:"bookmark"+l.id,option:l,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128))]),_:1},8,["class"])):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(h,{key:3,class:"tree-search","show-icon":!0,value:a.filterString,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[3]||(n[3]=l=>r.filter(l,a.actualOptions))},null,8,["value","placeholder"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!a.countVisibleChildren&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",$s,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!a.countVisibleChildren?(i.openBlock(),i.createElementBlock("div",_s,i.toDisplayString(a.actualStrings.emptyTitle),1)):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:"tree-select-empty"},i.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[i.vShow,r.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(i.openBlock(),i.createBlock(u,{key:2,option:{title:t.lang("none","select"),id:null,checked:r.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):i.createCommentVNode("",!0),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[e.allOptions&&e.isMultiple&&a.countVisibleChildren&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(u,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:r.visibleOptionsCount<r.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,onCheck:r.manageAll,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","is-toggle","name","is-multiple","onCheck","uid","only-end-nodes","show-input"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,l=>i.renderSlot(t.$slots,a.actualName,{key:l.value,option:l,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(u,{option:l,"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]),[[i.vShow,l.visible]])])),128))],64))]),_:3},8,["class"])],6)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(()=>[i.renderSlot(t.$slots,"trigger",{selectedCount:r.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:i.withCtx(({isOpened:l})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":l,"has-clear-button":!e.showClearButton}]),onClick:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"])),"aria-label":e.ariaLabel,"aria-expanded":l},[e.htmlOptionTitle?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass({placeholder:!r.selectStatus}),innerHTML:r.selectStatus||e.placeholder},null,10,["innerHTML"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass({placeholder:!r.selectStatus})},i.toDisplayString(r.selectStatus||e.placeholder),3))],10,["aria-label","aria-expanded"]),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(d,{name:l?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])]),key:"1"}]),1032,["disabled","is-resizable","vertical"])])}const Ci=_e(vs,[["render",ws]]),qh="",ks={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:ln,IbSelect:Ci}},Cs={class:"report-limit-selector"};function Os(t,n,e,o,a,r){const d=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",Cs,[i.createVNode(d,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{class:"report-limit-selector-select",value:e.value,options:r.prepareOptions,"is-multiple":!1,"show-clear-button":!1,onInput:r.selectItem},null,8,["value","options","onInput"])])}const Oi=_e(ks,[["render",Os]]),Vh="",Es={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String,required:!0},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:mr,IbLabel:ln,IbLimitSelector:Oi,IbTooltip:At}},Ss={class:"report-controls"},xs={class:"repot-pagination"},Ns={key:0,class:"pagination-input"},Ts={class:"row-count"},As={class:"pagination-wrapper"},Ds=["onClick"];function Is(t,n,e,o,a,r){const d=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),u=i.resolveComponent("ib-input"),p=i.resolveComponent("ib-icon"),h=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Ss,[i.createVNode(d,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",xs,[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),e.showPaginationInput?(i.openBlock(),i.createElementBlock("div",Ns,[i.createVNode(u,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])):i.createCommentVNode("",!0),i.createElementVNode("div",Ts,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=l=>r.onSelect(a.currentPage-1))},{default:i.withCtx(()=>[i.createVNode(p,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(h,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",As,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(l,c)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:c,class:i.normalizeClass(["pagination-item",{active:c+1===a.currentPage,"dots-left":a.indexSpaceLeft===c+1,"dots-right":a.indexSpaceRight===c+1}]),onClick:_=>r.onSelect(c+1)},[i.createElementVNode("button",null,i.toDisplayString(c+1),1)],10,Ds)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=l=>r.onSelect(a.currentPage+1))},{default:i.withCtx(()=>[i.createVNode(p,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(h,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Ps=_e(Es,[["render",Is]]),Ln={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELED:"canceled"},Fh="",Ms={props:{states:{type:String,default:Ln.PROGRESS},progress:{type:[String,Number],default:0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===Ln.SUCCESS?"checkmark-circle":this.states===Ln.FAILED||this.states===Ln.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Ei=t=>(i.pushScopeId("data-v-abce14de"),t=t(),i.popScopeId(),t),Bs={class:"ib-progress-bar-wrapper"},Ls=[Ei(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],Rs=Ei(()=>i.createElementVNode("div",null,null,-1));function js(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Bs,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",style:i.normalizeStyle({width:e.progress+"%"})},Ls,4),Rs],2),i.withDirectives(i.createVNode(d,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const qs=_e(Ms,[["render",js],["__scopeId","data-v-abce14de"]]),Vs={new:`<svg width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg">
6
+ *****************************************************/(function(t,n){(function(e,o){t.exports=o()})(Ve,function(){class e{constructor(r,d=!0,s=[],u=5e3){this.ctx=r,this.iframes=d,this.exclude=s,this.iframesTimeout=u}static matches(r,d){const s=typeof d=="string"?[d]:d,u=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(u){let p=!1;return s.every(h=>!u.call(r,h)||(p=!0,!1)),p}return!1}getContexts(){let r=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(d=>{const s=r.filter(u=>u.contains(d)).length>0;r.indexOf(d)!==-1||s||r.push(d)}),r}getIframeContents(r,d,s=()=>{}){let u;try{const p=r.contentWindow;if(u=p.document,!p||!u)throw new Error("iframe inaccessible")}catch{s()}u&&d(u)}isIframeBlank(r){const d="about:blank",s=r.getAttribute("src").trim();return r.contentWindow.location.href===d&&s!==d&&s}observeIframeLoad(r,d,s){let u=!1,p=null;const h=()=>{if(!u){u=!0,clearTimeout(p);try{this.isIframeBlank(r)||(r.removeEventListener("load",h),this.getIframeContents(r,d,s))}catch{s()}}};r.addEventListener("load",h),p=setTimeout(h,this.iframesTimeout)}onIframeReady(r,d,s){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,d,s):this.getIframeContents(r,d,s):this.observeIframeLoad(r,d,s)}catch{s()}}waitForIframes(r,d){let s=0;this.forEachIframe(r,()=>!0,u=>{s++,this.waitForIframes(u.querySelector("html"),()=>{--s||d()})},u=>{u||d()})}forEachIframe(r,d,s,u=()=>{}){let p=r.querySelectorAll("iframe"),h=p.length,f=0;p=Array.prototype.slice.call(p);const l=()=>{--h<=0&&u(f)};h||l(),p.forEach(c=>{e.matches(c,this.exclude)?l():this.onIframeReady(c,_=>{d(c)&&(f++,s(_)),l()},l)})}createIterator(r,d,s){return document.createNodeIterator(r,d,s,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,d,s){const u=r.compareDocumentPosition(s),p=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&p&&(d===null||d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const d=r.previousNode();return{prevNode:d,node:(d===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,d,s,u){let p=!1,h=!1;return u.forEach((f,l)=>{f.val===s&&(p=l,h=f.handled)}),this.compareNodeIframe(r,d,s)?(p!==!1||h?p===!1||h||(u[p].handled=!0):u.push({val:s,handled:!0}),!0):(p===!1&&u.push({val:s,handled:!1}),!1)}handleOpenIframes(r,d,s,u){r.forEach(p=>{p.handled||this.getIframeContents(p.val,h=>{this.createInstanceOnIframe(h).forEachNode(d,s,u)})})}iterateThroughNodes(r,d,s,u,p){const h=this.createIterator(d,r,u);let f,l,c=[],_=[],v=()=>({prevNode:l,node:f}=this.getIteratorNode(h),f);for(;v();)this.iframes&&this.forEachIframe(d,b=>this.checkIframeFilter(f,l,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),u)}),_.push(f);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(c,r,s,u),p()}forEachNode(r,d,s,u=()=>{}){const p=this.getContexts();let h=p.length;h||u(),p.forEach(f=>{const l=()=>{this.iterateThroughNodes(r,f,d,s,()=>{--h<=0&&u()})};this.iframes?this.waitForIframes(f,l):l()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const d=window.navigator.userAgent;(d.indexOf("MSIE")>-1||d.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(r){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},r)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(r,d="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[d]=="function"&&s[d](`mark.js: ${r}`)}escapeStr(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(r){return this.opt.wildcards!=="disabled"&&(r=this.setupWildcardsRegExp(r)),r=this.escapeStr(r),Object.keys(this.opt.synonyms).length&&(r=this.createSynonymsRegExp(r)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),this.opt.diacritics&&(r=this.createDiacriticsRegExp(r)),r=this.createMergedBlanksRegExp(r),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.createJoinersRegExp(r)),this.opt.wildcards!=="disabled"&&(r=this.createWildcardsRegExp(r)),r=this.createAccuracyRegExp(r)}createSynonymsRegExp(r){const d=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let p in d)if(d.hasOwnProperty(p)){const h=d[p],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h);f!==""&&l!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(l)})`,`gm${s}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(l)})`+u))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,d=>d.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,d=>d.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let d=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(d,s,u)=>{let p=u.charAt(s+1);return/[(|)\\]/.test(p)||p===""?d:d+"\0"})}createJoinersRegExp(r){let d=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&d.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?r.split(/\u0000+/).join(`[${d.join("")}]*`):r}createDiacriticsRegExp(r){const d=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let u=[];return r.split("").forEach(p=>{s.every(h=>{if(h.indexOf(p)!==-1){if(u.indexOf(h)>-1)return!1;r=r.replace(new RegExp(`[${h}]`,`gm${d}`),`[${h}]`),u.push(h)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,u=typeof s=="string"?s:s.value,p=typeof s=="string"?[]:s.limiters,h="";switch(p.forEach(f=>{h+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${r})`;case"complementary":return`()([^${h="\\s"+(h||this.escapeStr(d))}]*${r}[^${h}]*)`;case"exactly":return`(^|\\s${h})(${r})(?=$|\\s${h})`}}getSeparatedKeywords(r){let d=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(u=>{u.trim()&&d.indexOf(u)===-1&&d.push(u)}):s.trim()&&d.indexOf(s)===-1&&d.push(s)}),{keywords:d.sort((s,u)=>u.length-s.length),length:d.length}}isNumeric(r){return Number(parseFloat(r))==r}checkRanges(r){if(!Array.isArray(r)||Object.prototype.toString.call(r[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(r),[];const d=[];let s=0;return r.sort((u,p)=>u.start-p.start).forEach(u=>{let{start:p,end:h,valid:f}=this.callNoMatchOnInvalidRanges(u,s);f&&(u.start=p,u.length=h-p,d.push(u),s=h)}),d}callNoMatchOnInvalidRanges(r,d){let s,u,p=!1;return r&&r.start!==void 0?(u=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&u-d>0&&u-s>0?p=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(r)}`),this.opt.noMatch(r))):(this.log(`Ignoring invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)),{start:s,end:u,valid:p}}checkWhitespaceRanges(r,d,s){let u,p=!0,h=s.length,f=d-h,l=parseInt(r.start,10)-f;return(u=(l=l>h?h:l)+parseInt(r.length,10))>h&&(u=h,this.log(`End range automatically set to the max value of ${h}`)),l<0||u-l<0||l>h||u>h?(p=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(l,u).replace(/\s+/g,"")===""&&(p=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:l,end:u,valid:p}}getTextNodes(r){let d="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{s.push({start:d.length,end:(d+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:d,nodes:s})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,d,s){const u=this.opt.element?this.opt.element:"mark",p=r.splitText(d),h=p.splitText(s-d);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=p.textContent,p.parentNode.replaceChild(f,p),h}wrapRangeInMappedTextNode(r,d,s,u,p){r.nodes.every((h,f)=>{const l=r.nodes[f+1];if(l===void 0||l.start>d){if(!u(h.node))return!1;const c=d-h.start,_=(s>h.end?h.end:s)-h.start,v=r.value.substr(0,h.start),b=r.value.substr(_+h.start);if(h.node=this.wrapRangeInTextNode(h.node,c,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=f&&(r.nodes[y].start>0&&y!==f&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,p(h.node.previousSibling,h.start),!(s>h.end))return!1;d=h.end}return!0})}wrapMatches(r,d,s,u,p){const h=d===0?0:d+1;this.getTextNodes(f=>{f.nodes.forEach(l=>{let c;for(l=l.node;(c=r.exec(l.textContent))!==null&&c[h]!=="";){if(!s(c[h],l))continue;let _=c.index;if(h!==0)for(let v=1;v<h;v++)_+=c[v].length;l=this.wrapRangeInTextNode(l,_,_+c[h].length),u(l.previousSibling),r.lastIndex=0}}),p()})}wrapMatchesAcrossElements(r,d,s,u,p){const h=d===0?0:d+1;this.getTextNodes(f=>{let l;for(;(l=r.exec(f.value))!==null&&l[h]!=="";){let c=l.index;if(h!==0)for(let v=1;v<h;v++)c+=l[v].length;const _=c+l[h].length;this.wrapRangeInMappedTextNode(f,c,_,v=>s(l[h],v),(v,b)=>{r.lastIndex=b,u(v)})}p()})}wrapRangeFromIndex(r,d,s,u){this.getTextNodes(p=>{const h=p.value.length;r.forEach((f,l)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(f,h,p.value);v&&this.wrapRangeInMappedTextNode(p,c,_,b=>d(b,f,p.value.substring(c,_),l),b=>{s(b,f)})}),u()})}unwrapMatches(r){const d=r.parentNode;let s=document.createDocumentFragment();for(;r.firstChild;)s.appendChild(r.removeChild(r.firstChild));d.replaceChild(s,r),this.ie?this.normalizeTextNode(d):d.normalize()}normalizeTextNode(r){if(r){if(r.nodeType===3)for(;r.nextSibling&&r.nextSibling.nodeType===3;)r.nodeValue+=r.nextSibling.nodeValue,r.parentNode.removeChild(r.nextSibling);else this.normalizeTextNode(r.firstChild);this.normalizeTextNode(r.nextSibling)}}markRegExp(r,d){this.opt=d,this.log(`Searching with expression "${r}"`);let s=0,u="wrapMatches";const p=h=>{s++,this.opt.each(h)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](r,this.opt.ignoreGroups,(h,f)=>this.opt.filter(f,h,s),p,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,d){this.opt=d;let s=0,u="wrapMatches";const{keywords:p,length:h}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),f=this.opt.caseSensitive?"":"i",l=c=>{let _=new RegExp(this.createRegExp(c),`gm${f}`),v=0;this.log(`Searching with expression "${_}"`),this[u](_,1,(b,g)=>this.opt.filter(g,c,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),p[h-1]===c?this.opt.done(s):l(p[p.indexOf(c)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),h===0?this.opt.done(s):l(p[0])}markRanges(r,d){this.opt=d;let s=0,u=this.checkRanges(r);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(p,h,f,l)=>this.opt.filter(p,h,f,l),(p,h)=>{s++,this.opt.each(p,h)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(r){this.opt=r;let d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+=`.${this.opt.className}`),this.log(`Removal selector "${d}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const u=e.matches(s,d),p=this.matchesExclude(s);return!u||p?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(d,s)=>(r.mark(d,s),this),this.markRegExp=(d,s)=>(r.markRegExp(d,s),this),this.markRanges=(d,s)=>(r.markRanges(d,s),this),this.unmark=d=>(r.unmark(d),this),this}})})(ki);var gs=ki.exports;const ys=Bn(gs),jh="",vs={name:"IbTreeSelect",props:{placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return Dt()}},options:{default(){return[]}},modelValue:{type:[Number,String,Array]},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:!0},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return Dt()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},watch:{value(t){this.val=t,this.setPreparedValues()},modelValue(t){this.val=t,this.setPreparedValues()},val(t){this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options(){let t=!0;if(typeof this.options=="function")t=!1;else{const n=[],e=this.options;Array.prototype.forEach.call(e,o=>{o.id!==void 0&&n.push(o.id)}),t=JSON.stringify(n)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=n}(this.isInitialized&&!t||this.isWatching)&&this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new ys(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){return this.defaultFilter=t=>{this.marker.unmark();const n=this.filterString.toLowerCase().trim();this.countVisibleChildren=this.filterFunc.call(this,t,n),n&&this.marker.mark(n)},{val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,optionsIdsWatch:[],isLoading:!1,actualName:this.isMultiple?this.name+"[]":this.name,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],allOptionsIsChecked:!0,countVisibleChildren:0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,actualStrings:{searchPlaceholder:"Search placeholder",emptyTitle:"Empty title",selectAllOptions:"All Options",allSelected:"All selected",loading:"loading",selectedCount:"Selected {selected} of {all} items",buttonTitle:"Button title",requiredDependencyNotFilled:"Required dependency are not filled",...this.strings},dependencyValue:null}},methods:{startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",n=>{this.clear(),this.dependencyValue=n,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})}))},filter(t,n){this.filterString=t,this.$emit("search",{search:this.filterString}),this.defaultFilter(n)},setPreparedValues(t){return this.prepare(t||this.options).then(([n,e])=>{this.actualOptions=n,this.allOptionsIsChecked=this.checkIfOptionsChecked(n),this.countVisibleChildren=n.length,this.isInitialized=!0,this.selected=e,this.setBookmarkedOptions(n)})},clear(){this.actualOptions=[],this.allOptionsIsChecked=!1,this.countVisibleChildren=0,this.selected=[],this.$emit("update:modelValue",null)},clearValue(){this.clear(),this.setPreparedValues()},prepare(t){return new Promise(n=>{const e={},o=[];let a=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),a=a.then(t)):a=a.then(()=>t),a.then(r=>(this.isLoading=!1,r.forEach(d=>{d.initiallyVisible=typeof d.visible>"u"?!0:d.visible,d.visible=d.initiallyVisible,d.isDisabled=!1,d.checked=this.isMultiple?this.val!==null&&this.val.findIndex(s=>d.id==s)>-1:this.val!==null&&this.val==d.id,d.checked&&(!this.onlyEndNodes||!d.children)&&(e[d.id]=d),d.children&&(this.hasTreeChildren=!0,d.isChildrenVisible=!1),o.push(new Promise(s=>{d.children?this.prepare(d.children).then(([u,p])=>{d.children=u,Object.assign(e,p),s(d)}):s(d)}))}),Promise.all(o).then(d=>{n([d,e])}))).catch(r=>{throw this.isLoading=!1,r})})},filterFunc(t,n){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let r=this.filterFunc(o.children,n);e+=r,r&&(o.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=r<o.children.length&&!this.isBookmarkable),a?r||(a=!1):a=!!r}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(n=>n.checked)},registerCheck(t,n,e){if(n)if(t.checked=!0,this.isMultiple)this.onlyEndNodes&&t.children&&t.children.length||(this.selected[t.id]=t,this.$emit("input",Object.keys(this.selected)),this.$emit("update:modelValue",Object.keys(this.selected)));else{const o=Object.keys(this.selected)[0];o&&(this.selected[o].checked=!1),this.selected={[t.id]:t},this.change()}else delete this.selected[t.id],t.checked=!1,this.$emit("input",Object.keys(this.selected)),this.$emit("update:modelValue",Object.keys(this.selected));this.toggleDuplicateOptions(this.actualOptions,t.id,n),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,n,e){for(let o of t)o.id===n&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,n,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,n){t.forEach(e=>{n(e),e.children&&e.children.length&&this.traverseTree(e.children,n)})},getArrayOptions(t){let n=[];for(let e of t)n.push(e),e.children&&(n=n.concat(this.getArrayOptions(e.children)));return n},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(n=>{n.children&&n.children.length?this.setBookmarkedOptions(n.children):this.initBookmarks.includes(n.id)&&(this.actualBookmarkedOptions[n.id]=n)}),this.filter(this.filterString,t)}},computed:{hasTrigger(){return!!this.$slots.trigger},hasEmptyMessage(){return!!this.$slots.emptyMessage},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.selectedKeys.length<this.optionsCount?this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.actualStrings.allSelected:this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let n of this.arrayOfOptions)(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&t.push(n.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,n=>{(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&n.visible&&t.push(n.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbIconButton:ut,IbIcon:Le,IbDropdown:Pn,IbInput:mr,List:fr,"select-option":ms},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},bs={class:"tree-select"},$s={key:0,class:"tree-select-empty"},_s={key:1,class:"tree-select-default-empty tree-select-empty"};function ws(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),u=i.resolveComponent("select-option"),p=i.resolveComponent("list"),h=i.resolveComponent("ib-input"),f=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",bs,[i.createVNode(f,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:e.vertical,ref:"dropdown"},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle({width:"auto",position:"absolute",left:-a.size.left+"px",right:-a.size.right+"px"})},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[1]||(n[1]=l=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[2]||(n[2]=l=>r.startResizing("right"))},null,32)):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(),i.createBlock(p,{key:2,class:i.normalizeClass({"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualBookmarkedOptions,l=>(i.openBlock(),i.createBlock(u,{key:"bookmark"+l.id,option:l,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128))]),_:1},8,["class"])):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(h,{key:3,class:"tree-search","show-icon":!0,value:a.filterString,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[3]||(n[3]=l=>r.filter(l,a.actualOptions))},null,8,["value","placeholder"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!a.countVisibleChildren&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",$s,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!a.countVisibleChildren?(i.openBlock(),i.createElementBlock("div",_s,i.toDisplayString(a.actualStrings.emptyTitle),1)):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:"tree-select-empty"},i.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[i.vShow,r.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(i.openBlock(),i.createBlock(u,{key:2,option:{title:t.lang("none","select"),id:null,checked:r.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):i.createCommentVNode("",!0),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[e.allOptions&&e.isMultiple&&a.countVisibleChildren&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(u,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:r.visibleOptionsCount<r.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,onCheck:r.manageAll,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","is-toggle","name","is-multiple","onCheck","uid","only-end-nodes","show-input"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,l=>i.renderSlot(t.$slots,a.actualName,{key:l.value,option:l,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(u,{option:l,"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]),[[i.vShow,l.visible]])])),128))],64))]),_:3},8,["class"])],6)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(()=>[i.renderSlot(t.$slots,"trigger",{selectedCount:r.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:i.withCtx(({isOpened:l})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":l,"has-clear-button":!e.showClearButton}]),onClick:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"])),"aria-label":e.ariaLabel,"aria-expanded":l},[e.htmlOptionTitle?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass({placeholder:!r.selectStatus}),innerHTML:r.selectStatus||e.placeholder},null,10,["innerHTML"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass({placeholder:!r.selectStatus})},i.toDisplayString(r.selectStatus||e.placeholder),3))],10,["aria-label","aria-expanded"]),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(d,{name:l?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])]),key:"1"}]),1032,["disabled","is-resizable","vertical"])])}const Ci=_e(vs,[["render",ws]]),qh="",ks={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:ln,IbSelect:Ci}},Cs={class:"report-limit-selector"};function Os(t,n,e,o,a,r){const d=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",Cs,[i.createVNode(d,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{class:"report-limit-selector-select",value:e.value,options:r.prepareOptions,"is-multiple":!1,"show-clear-button":!1,onInput:r.selectItem},null,8,["value","options","onInput"])])}const Oi=_e(ks,[["render",Os]]),Vh="",Es={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:mr,IbLabel:ln,IbLimitSelector:Oi,IbTooltip:At}},Ss={class:"report-controls"},xs={class:"repot-pagination"},Ns={class:"pagination-input"},Ts={class:"row-count"},As={class:"pagination-wrapper"},Ds=["onClick"];function Is(t,n,e,o,a,r){const d=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),u=i.resolveComponent("ib-input"),p=i.resolveComponent("ib-icon"),h=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Ss,[i.createVNode(d,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",xs,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",Ns,[i.createVNode(u,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Ts,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=l=>r.onSelect(a.currentPage-1))},{default:i.withCtx(()=>[i.createVNode(p,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(h,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",As,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(l,c)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:c,class:i.normalizeClass(["pagination-item",{active:c+1===a.currentPage,"dots-left":a.indexSpaceLeft===c+1,"dots-right":a.indexSpaceRight===c+1}]),onClick:_=>r.onSelect(c+1)},[i.createElementVNode("button",null,i.toDisplayString(c+1),1)],10,Ds)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=l=>r.onSelect(a.currentPage+1))},{default:i.withCtx(()=>[i.createVNode(p,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(h,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Ps=_e(Es,[["render",Is]]),Ln={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELED:"canceled"},Fh="",Ms={props:{states:{type:String,default:Ln.PROGRESS},progress:{type:[String,Number],default:0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===Ln.SUCCESS?"checkmark-circle":this.states===Ln.FAILED||this.states===Ln.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Ei=t=>(i.pushScopeId("data-v-abce14de"),t=t(),i.popScopeId(),t),Bs={class:"ib-progress-bar-wrapper"},Ls=[Ei(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],Rs=Ei(()=>i.createElementVNode("div",null,null,-1));function js(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Bs,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",style:i.normalizeStyle({width:e.progress+"%"})},Ls,4),Rs],2),i.withDirectives(i.createVNode(d,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const qs=_e(Ms,[["render",js],["__scopeId","data-v-abce14de"]]),Vs={new:`<svg width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg">
7
7
  <circle cx="4.5" cy="4.5" r="4" fill="#0369E8"/>
8
8
  </svg>
9
9
  `,success:`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -7,10 +7,13 @@
7
7
  ></ib-limit-selector>
8
8
 
9
9
  <div class="repot-pagination">
10
- <ib-label>{{ labelInput }}</ib-label>
11
- <div class="pagination-input" v-if="showPaginationInput">
12
- <ib-input type="number" :debounce="500" @input="onInput"></ib-input>
13
- </div>
10
+ <template v-if="showPaginationInput">
11
+ <ib-label>{{ labelInput }}</ib-label>
12
+ <div class="pagination-input">
13
+ <ib-input type="number" :debounce="500" @input="onInput"></ib-input>
14
+ </div>
15
+ </template>
16
+
14
17
  <div class="row-count">
15
18
  {{ setCountOfRows + " of " + countRows }}
16
19
  </div>
@@ -76,7 +79,6 @@ export default {
76
79
  },
77
80
  labelInput: {
78
81
  type: String,
79
- required: true,
80
82
  },
81
83
  labelSelect: {
82
84
  type: String,