@avakhula/ui 0.0.22 → 0.0.23
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 +89 -90
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Pagination/Pagination.vue +7 -4
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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,
|
|
@@ -3798,10 +3798,7 @@ const Zs = {
|
|
|
3798
3798
|
IbLimitSelector: Ws,
|
|
3799
3799
|
IbTooltip: sn
|
|
3800
3800
|
}
|
|
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"];
|
|
3801
|
+
}, Js = { class: "report-controls" }, Qs = { class: "repot-pagination" }, Xs = { class: "pagination-input" }, eu = { class: "row-count" }, tu = { class: "pagination-wrapper" }, nu = ["onClick"];
|
|
3805
3802
|
function ru(t, n, e, i, o, r) {
|
|
3806
3803
|
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
3804
|
return W(), re("div", Js, [
|
|
@@ -3811,19 +3808,21 @@ function ru(t, n, e, i, o, r) {
|
|
|
3811
3808
|
"label-select": e.labelSelect
|
|
3812
3809
|
}, null, 8, ["onSelect", "value", "label-select"]),
|
|
3813
3810
|
le("div", Qs, [
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3811
|
+
e.showPaginationInput ? (W(), re(at, { key: 0 }, [
|
|
3812
|
+
ve(l, null, {
|
|
3813
|
+
default: be(() => [
|
|
3814
|
+
Ge(Ce(e.labelInput), 1)
|
|
3815
|
+
]),
|
|
3816
|
+
_: 1
|
|
3817
|
+
}),
|
|
3818
|
+
le("div", Xs, [
|
|
3819
|
+
ve(d, {
|
|
3820
|
+
type: "number",
|
|
3821
|
+
debounce: 500,
|
|
3822
|
+
onInput: r.onInput
|
|
3823
|
+
}, null, 8, ["onInput"])
|
|
3824
|
+
])
|
|
3825
|
+
], 64)) : he("", !0),
|
|
3827
3826
|
le("div", eu, Ce(r.setCountOfRows + " of " + e.countRows), 1),
|
|
3828
3827
|
ve(c, {
|
|
3829
3828
|
kind: "tertiary",
|
|
@@ -3842,7 +3841,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3842
3841
|
_: 1
|
|
3843
3842
|
}, 8, ["disabled"]),
|
|
3844
3843
|
le("ul", tu, [
|
|
3845
|
-
(W(!0), re(
|
|
3844
|
+
(W(!0), re(at, null, jt(r.countPagePagination, (a, u) => Ve((W(), re("li", {
|
|
3846
3845
|
key: u,
|
|
3847
3846
|
class: $e(["pagination-item", {
|
|
3848
3847
|
active: u + 1 === o.currentPage,
|
|
@@ -4193,11 +4192,11 @@ const xu = {
|
|
|
4193
4192
|
};
|
|
4194
4193
|
function Pu(t, n, e, i, o, r) {
|
|
4195
4194
|
return W(), re("div", Au, [
|
|
4196
|
-
e.characterLength ? e.characterLimit > e.characterLength ? (W(), re(
|
|
4195
|
+
e.characterLength ? e.characterLimit > e.characterLength ? (W(), re(at, { key: 1 }, [
|
|
4197
4196
|
le("p", Nu, Ce(e.characterLimit - e.characterLength), 1),
|
|
4198
4197
|
Ge(" / "),
|
|
4199
4198
|
le("p", Iu, Ce(e.characterLimit), 1)
|
|
4200
|
-
], 64)) : e.characterLimit === e.characterLength ? (W(), re(
|
|
4199
|
+
], 64)) : e.characterLimit === e.characterLength ? (W(), re(at, { key: 2 }, [
|
|
4201
4200
|
Ge("0")
|
|
4202
4201
|
], 64)) : (W(), re("p", Du, Ce(e.characterLimit - e.characterLength), 1)) : (W(), re("p", Tu, "Max " + Ce(e.characterLimit), 1))
|
|
4203
4202
|
]);
|
|
@@ -4752,15 +4751,15 @@ typeof Object.assign != "function" && (Object.assign = function(t) {
|
|
|
4752
4751
|
}
|
|
4753
4752
|
return t;
|
|
4754
4753
|
});
|
|
4755
|
-
var
|
|
4756
|
-
return
|
|
4754
|
+
var ct = globalThis && globalThis.__assign || function() {
|
|
4755
|
+
return ct = Object.assign || function(t) {
|
|
4757
4756
|
for (var n, e = 1, i = arguments.length; e < i; e++) {
|
|
4758
4757
|
n = arguments[e];
|
|
4759
4758
|
for (var o in n)
|
|
4760
4759
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
4761
4760
|
}
|
|
4762
4761
|
return t;
|
|
4763
|
-
},
|
|
4762
|
+
}, ct.apply(this, arguments);
|
|
4764
4763
|
}, Bi = globalThis && globalThis.__spreadArrays || function() {
|
|
4765
4764
|
for (var t = 0, n = 0, e = arguments.length; n < e; n++)
|
|
4766
4765
|
t += arguments[n].length;
|
|
@@ -4771,7 +4770,7 @@ var dt = globalThis && globalThis.__assign || function() {
|
|
|
4771
4770
|
}, Hu = 300;
|
|
4772
4771
|
function Vu(t, n) {
|
|
4773
4772
|
var e = {
|
|
4774
|
-
config:
|
|
4773
|
+
config: ct(ct({}, yn), Je.defaultConfig),
|
|
4775
4774
|
l10n: qn
|
|
4776
4775
|
};
|
|
4777
4776
|
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 +5033,7 @@ function Vu(t, n) {
|
|
|
5034
5033
|
set: function(I) {
|
|
5035
5034
|
e.__hideNextMonthArrow !== I && (gt(e.nextMonthNav, "flatpickr-disabled", I), e.__hideNextMonthArrow = I);
|
|
5036
5035
|
}
|
|
5037
|
-
}), e.currentYearElement = e.yearElements[0],
|
|
5036
|
+
}), e.currentYearElement = e.yearElements[0], lt(), e.monthNav;
|
|
5038
5037
|
}
|
|
5039
5038
|
function Y() {
|
|
5040
5039
|
e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
|
|
@@ -5087,7 +5086,7 @@ function Vu(t, n) {
|
|
|
5087
5086
|
function T(I, L) {
|
|
5088
5087
|
L === void 0 && (L = !0);
|
|
5089
5088
|
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"),
|
|
5089
|
+
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
5090
|
}
|
|
5092
5091
|
function B(I, L) {
|
|
5093
5092
|
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 +5330,7 @@ function Vu(t, n) {
|
|
|
5331
5330
|
"static",
|
|
5332
5331
|
"enableSeconds",
|
|
5333
5332
|
"disableMobile"
|
|
5334
|
-
], L =
|
|
5333
|
+
], L = ct(ct({}, JSON.parse(JSON.stringify(t.dataset || {}))), n), z = {};
|
|
5335
5334
|
e.config.parseDate = L.parseDate, e.config.formatDate = L.formatDate, Object.defineProperty(e.config, "enable", {
|
|
5336
5335
|
get: function() {
|
|
5337
5336
|
return e.config._enable;
|
|
@@ -5401,8 +5400,8 @@ function Vu(t, n) {
|
|
|
5401
5400
|
return e.config.wrap ? t.querySelector("[data-input]") : t;
|
|
5402
5401
|
}
|
|
5403
5402
|
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 =
|
|
5405
|
-
var I =
|
|
5403
|
+
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() + ")";
|
|
5404
|
+
var I = ct(ct({}, n), JSON.parse(JSON.stringify(t.dataset || {})));
|
|
5406
5405
|
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
5406
|
}
|
|
5408
5407
|
function te(I) {
|
|
@@ -5410,8 +5409,8 @@ function Vu(t, n) {
|
|
|
5410
5409
|
return void e.config.position(e, I);
|
|
5411
5410
|
if (e.calendarContainer !== void 0) {
|
|
5412
5411
|
Fe("onPreCalendarPosition");
|
|
5413
|
-
var L = I || e._positionElement, z = Array.prototype.reduce.call(e.calendarContainer.children, function(
|
|
5414
|
-
return
|
|
5412
|
+
var L = I || e._positionElement, z = Array.prototype.reduce.call(e.calendarContainer.children, function(st, xn) {
|
|
5413
|
+
return st + xn.offsetHeight;
|
|
5415
5414
|
}, 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
5415
|
if (gt(e.calendarContainer, "arrowTop", !pe), gt(e.calendarContainer, "arrowBottom", pe), !e.config.inline) {
|
|
5417
5416
|
var Re = window.pageXOffset + ge.left, Ue = !1, rt = !1;
|
|
@@ -5452,7 +5451,7 @@ function Vu(t, n) {
|
|
|
5452
5451
|
return document.head.appendChild(I), I.sheet;
|
|
5453
5452
|
}
|
|
5454
5453
|
function ie() {
|
|
5455
|
-
e.config.noCalendar || e.isMobile || (A(),
|
|
5454
|
+
e.config.noCalendar || e.isMobile || (A(), lt(), k());
|
|
5456
5455
|
}
|
|
5457
5456
|
function xe() {
|
|
5458
5457
|
e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
|
|
@@ -5477,7 +5476,7 @@ function Vu(t, n) {
|
|
|
5477
5476
|
var ge = e.currentYear !== ae.getFullYear();
|
|
5478
5477
|
e.currentYear = ae.getFullYear(), e.currentMonth = ae.getMonth(), ge && (Fe("onYearChange"), A()), Fe("onMonthChange");
|
|
5479
5478
|
}
|
|
5480
|
-
if (
|
|
5479
|
+
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
5480
|
var De = e.config.mode === "single" && !e.config.enableTime, pe = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
|
|
5482
5481
|
(De || pe) && xe();
|
|
5483
5482
|
}
|
|
@@ -5612,7 +5611,7 @@ function Vu(t, n) {
|
|
|
5612
5611
|
function qt(I) {
|
|
5613
5612
|
return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : Ot(I, e.selectedDates[0]) >= 0 && Ot(I, e.selectedDates[1]) <= 0;
|
|
5614
5613
|
}
|
|
5615
|
-
function
|
|
5614
|
+
function lt() {
|
|
5616
5615
|
e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(I, L) {
|
|
5617
5616
|
var z = new Date(e.currentYear, e.currentMonth, 1);
|
|
5618
5617
|
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 +5669,14 @@ var Je = function(t, n) {
|
|
|
5670
5669
|
};
|
|
5671
5670
|
Je.defaultConfig = {};
|
|
5672
5671
|
Je.l10ns = {
|
|
5673
|
-
en:
|
|
5674
|
-
default:
|
|
5672
|
+
en: ct({}, qn),
|
|
5673
|
+
default: ct({}, qn)
|
|
5675
5674
|
};
|
|
5676
5675
|
Je.localize = function(t) {
|
|
5677
|
-
Je.l10ns.default =
|
|
5676
|
+
Je.l10ns.default = ct(ct({}, Je.l10ns.default), t);
|
|
5678
5677
|
};
|
|
5679
5678
|
Je.setDefaults = function(t) {
|
|
5680
|
-
Je.defaultConfig =
|
|
5679
|
+
Je.defaultConfig = ct(ct({}, Je.defaultConfig), t);
|
|
5681
5680
|
};
|
|
5682
5681
|
Je.parseDate = ci({});
|
|
5683
5682
|
Je.formatDate = Do({});
|
|
@@ -9606,7 +9605,7 @@ function mf(t, n, e, i, o, r) {
|
|
|
9606
9605
|
}, null, 8, hf)), [
|
|
9607
9606
|
[_o, o.searchQuery]
|
|
9608
9607
|
]) : he("", !0),
|
|
9609
|
-
(W(!0), re(
|
|
9608
|
+
(W(!0), re(at, null, jt(r.sortedCountries, (l, d) => (W(), re("li", {
|
|
9610
9609
|
role: "option",
|
|
9611
9610
|
class: $e(["vti__dropdown-item", r.getItemClass(d, l.iso2)]),
|
|
9612
9611
|
key: l.iso2 + (l.preferred ? "-preferred" : ""),
|
|
@@ -9714,7 +9713,7 @@ const bf = {
|
|
|
9714
9713
|
};
|
|
9715
9714
|
function $f(t, n, e, i, o, r) {
|
|
9716
9715
|
const s = fe("ib-alert"), l = fe("ib-icon"), d = fe("vue-tel-input"), h = $r("outside");
|
|
9717
|
-
return W(), re(
|
|
9716
|
+
return W(), re(at, null, [
|
|
9718
9717
|
e.errorMessage.length ? (W(), _e(s, {
|
|
9719
9718
|
key: 0,
|
|
9720
9719
|
class: "ib-phone-error-message"
|
|
@@ -17467,7 +17466,7 @@ mr.exports;
|
|
|
17467
17466
|
return b ? "Symbol(src)_1." + b : "";
|
|
17468
17467
|
}(), xe = te.toString, we = se.hasOwnProperty, Se = se.toString, tt = RegExp(
|
|
17469
17468
|
"^" + 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"),
|
|
17469
|
+
), 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
17470
|
function ke(b) {
|
|
17472
17471
|
var N = -1, F = b ? b.length : 0;
|
|
17473
17472
|
for (this.clear(); ++N < F; ) {
|
|
@@ -17554,7 +17553,7 @@ mr.exports;
|
|
|
17554
17553
|
return rn(this, b).set(b, N), this;
|
|
17555
17554
|
}
|
|
17556
17555
|
nt.prototype.clear = On, nt.prototype.delete = kn, nt.prototype.get = Cn, nt.prototype.has = En, nt.prototype.set = Sn;
|
|
17557
|
-
function
|
|
17556
|
+
function st(b) {
|
|
17558
17557
|
this.__data__ = new Ue(b);
|
|
17559
17558
|
}
|
|
17560
17559
|
function xn() {
|
|
@@ -17579,7 +17578,7 @@ mr.exports;
|
|
|
17579
17578
|
}
|
|
17580
17579
|
return F.set(b, N), this;
|
|
17581
17580
|
}
|
|
17582
|
-
|
|
17581
|
+
st.prototype.clear = xn, st.prototype.delete = xr, st.prototype.get = Ar, st.prototype.has = Tr, st.prototype.set = Nr;
|
|
17583
17582
|
function dn(b, N) {
|
|
17584
17583
|
var F = In(b) || hn(b) ? ye(b.length, String) : [], ee = F.length, Te = !!ee;
|
|
17585
17584
|
for (var me in b)
|
|
@@ -17610,13 +17609,13 @@ mr.exports;
|
|
|
17610
17609
|
if (Be = Vr(b), !N)
|
|
17611
17610
|
return qr(b, Be);
|
|
17612
17611
|
} else {
|
|
17613
|
-
var He = Ut(b),
|
|
17612
|
+
var He = Ut(b), ut = He == f || He == c;
|
|
17614
17613
|
if (Qn(b))
|
|
17615
17614
|
return fn(b, N);
|
|
17616
|
-
if (He == $ || He == r ||
|
|
17615
|
+
if (He == $ || He == r || ut && !me) {
|
|
17617
17616
|
if (Ie(b))
|
|
17618
17617
|
return me ? b : {};
|
|
17619
|
-
if (Be = Mt(
|
|
17618
|
+
if (Be = Mt(ut ? {} : b), !N)
|
|
17620
17619
|
return Fr(b, Pt(Be, b));
|
|
17621
17620
|
} else {
|
|
17622
17621
|
if (!R[He])
|
|
@@ -17624,14 +17623,14 @@ mr.exports;
|
|
|
17624
17623
|
Be = Ur(b, He, An, N);
|
|
17625
17624
|
}
|
|
17626
17625
|
}
|
|
17627
|
-
Le || (Le = new
|
|
17626
|
+
Le || (Le = new st());
|
|
17628
17627
|
var mt = Le.get(b);
|
|
17629
17628
|
if (mt)
|
|
17630
17629
|
return mt;
|
|
17631
17630
|
if (Le.set(b, Be), !Ze)
|
|
17632
17631
|
var Qe = F ? Hr(b) : Pn(b);
|
|
17633
|
-
return J(Qe || b, function(
|
|
17634
|
-
Qe && (it =
|
|
17632
|
+
return J(Qe || b, function(dt, it) {
|
|
17633
|
+
Qe && (it = dt, dt = b[it]), Kn(Be, it, An(dt, N, F, ee, it, b, Le));
|
|
17635
17634
|
}), Be;
|
|
17636
17635
|
}
|
|
17637
17636
|
function Ir(b) {
|
|
@@ -17720,7 +17719,7 @@ mr.exports;
|
|
|
17720
17719
|
return Mr(F) ? F : void 0;
|
|
17721
17720
|
}
|
|
17722
17721
|
var Vt = Xt ? Ke(Xt, Object) : Wr, Ut = Pr;
|
|
17723
|
-
(Nt && Ut(new Nt(new ArrayBuffer(1))) != x || qt && Ut(new qt()) != a ||
|
|
17722
|
+
(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
17723
|
var N = Se.call(b), F = N == $ ? b.constructor : void 0, ee = F ? pt(F) : void 0;
|
|
17725
17724
|
if (ee)
|
|
17726
17725
|
switch (ee) {
|
|
@@ -17913,7 +17912,7 @@ yr.exports;
|
|
|
17913
17912
|
return b ? "Symbol(src)_1." + b : "";
|
|
17914
17913
|
}(), Qt = We.toString, _n = RegExp(
|
|
17915
17914
|
"^" + 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,
|
|
17915
|
+
), 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
17916
|
function Ue(b) {
|
|
17918
17917
|
var N = -1, F = b == null ? 0 : b.length;
|
|
17919
17918
|
for (this.clear(); ++N < F; ) {
|
|
@@ -17974,7 +17973,7 @@ yr.exports;
|
|
|
17974
17973
|
return ee < 0 ? (++this.size, F.push([b, N])) : F[ee][1] = N, this;
|
|
17975
17974
|
}
|
|
17976
17975
|
nt.prototype.clear = On, nt.prototype.delete = kn, nt.prototype.get = Cn, nt.prototype.has = En, nt.prototype.set = Sn;
|
|
17977
|
-
function
|
|
17976
|
+
function st(b) {
|
|
17978
17977
|
var N = -1, F = b == null ? 0 : b.length;
|
|
17979
17978
|
for (this.clear(); ++N < F; ) {
|
|
17980
17979
|
var ee = b[N];
|
|
@@ -18002,10 +18001,10 @@ yr.exports;
|
|
|
18002
18001
|
var F = St(this, b), ee = F.size;
|
|
18003
18002
|
return F.set(b, N), this.size += F.size == ee ? 0 : 1, this;
|
|
18004
18003
|
}
|
|
18005
|
-
|
|
18004
|
+
st.prototype.clear = xn, st.prototype.delete = xr, st.prototype.get = Ar, st.prototype.has = Tr, st.prototype.set = Nr;
|
|
18006
18005
|
function dn(b) {
|
|
18007
18006
|
var N = -1, F = b == null ? 0 : b.length;
|
|
18008
|
-
for (this.__data__ = new
|
|
18007
|
+
for (this.__data__ = new st(); ++N < F; )
|
|
18009
18008
|
this.add(b[N]);
|
|
18010
18009
|
}
|
|
18011
18010
|
function Kn(b) {
|
|
@@ -18038,7 +18037,7 @@ yr.exports;
|
|
|
18038
18037
|
var ee = F.__data__;
|
|
18039
18038
|
if (!I || ee.length < e - 1)
|
|
18040
18039
|
return ee.push([b, N]), this.size = ++F.size, this;
|
|
18041
|
-
F = this.__data__ = new
|
|
18040
|
+
F = this.__data__ = new st(ee);
|
|
18042
18041
|
}
|
|
18043
18042
|
return F.set(b, N), this.size = F.size, this;
|
|
18044
18043
|
}
|
|
@@ -18064,7 +18063,7 @@ yr.exports;
|
|
|
18064
18063
|
return hn(b) ? ee : Ke(ee, F(b));
|
|
18065
18064
|
}
|
|
18066
18065
|
function nn(b) {
|
|
18067
|
-
return b == null ? b === void 0 ? D : g :
|
|
18066
|
+
return b == null ? b === void 0 ? D : g : lt && lt in Object(b) ? Ut(b) : Wn(b);
|
|
18068
18067
|
}
|
|
18069
18068
|
function Gn(b) {
|
|
18070
18069
|
return Lt(b) && nn(b) == l;
|
|
@@ -18075,18 +18074,18 @@ yr.exports;
|
|
|
18075
18074
|
function Rr(b, N, F, ee, Te, me) {
|
|
18076
18075
|
var Le = hn(b), Be = hn(N), Ze = Le ? d : Mt(b), He = Be ? d : Mt(N);
|
|
18077
18076
|
Ze = Ze == l ? v : Ze, He = He == l ? v : He;
|
|
18078
|
-
var
|
|
18077
|
+
var ut = Ze == v, mt = He == v, Qe = Ze == He;
|
|
18079
18078
|
if (Qe && pn(b)) {
|
|
18080
18079
|
if (!pn(N))
|
|
18081
18080
|
return !1;
|
|
18082
|
-
Le = !0,
|
|
18081
|
+
Le = !0, ut = !1;
|
|
18083
18082
|
}
|
|
18084
|
-
if (Qe && !
|
|
18083
|
+
if (Qe && !ut)
|
|
18085
18084
|
return me || (me = new Pt()), Le || er(b) ? Nn(b, N, F, ee, Te, me) : Fr(b, N, Ze, F, ee, Te, me);
|
|
18086
18085
|
if (!(F & o)) {
|
|
18087
|
-
var
|
|
18088
|
-
if (
|
|
18089
|
-
var Yt =
|
|
18086
|
+
var dt = ut && Me.call(b, "__wrapped__"), it = mt && Me.call(N, "__wrapped__");
|
|
18087
|
+
if (dt || it) {
|
|
18088
|
+
var Yt = dt ? b.value() : b, zt = it ? N.value() : N;
|
|
18090
18089
|
return me || (me = new Pt()), Te(Yt, zt, F, ee, me);
|
|
18091
18090
|
}
|
|
18092
18091
|
}
|
|
@@ -18116,11 +18115,11 @@ yr.exports;
|
|
|
18116
18115
|
var He = me.get(b);
|
|
18117
18116
|
if (He && me.get(N))
|
|
18118
18117
|
return He == N;
|
|
18119
|
-
var
|
|
18120
|
-
for (me.set(b, N), me.set(N, b); ++
|
|
18121
|
-
var
|
|
18118
|
+
var ut = -1, mt = !0, Qe = F & r ? new dn() : void 0;
|
|
18119
|
+
for (me.set(b, N), me.set(N, b); ++ut < Be; ) {
|
|
18120
|
+
var dt = b[ut], it = N[ut];
|
|
18122
18121
|
if (ee)
|
|
18123
|
-
var Yt = Le ? ee(it,
|
|
18122
|
+
var Yt = Le ? ee(it, dt, ut, N, b, me) : ee(dt, it, ut, b, N, me);
|
|
18124
18123
|
if (Yt !== void 0) {
|
|
18125
18124
|
if (Yt)
|
|
18126
18125
|
continue;
|
|
@@ -18129,13 +18128,13 @@ yr.exports;
|
|
|
18129
18128
|
}
|
|
18130
18129
|
if (Qe) {
|
|
18131
18130
|
if (!ze(N, function(zt, on) {
|
|
18132
|
-
if (!se(Qe, on) && (
|
|
18131
|
+
if (!se(Qe, on) && (dt === zt || Te(dt, zt, F, ee, me)))
|
|
18133
18132
|
return Qe.push(on);
|
|
18134
18133
|
})) {
|
|
18135
18134
|
mt = !1;
|
|
18136
18135
|
break;
|
|
18137
18136
|
}
|
|
18138
|
-
} else if (!(
|
|
18137
|
+
} else if (!(dt === it || Te(dt, it, F, ee, me))) {
|
|
18139
18138
|
mt = !1;
|
|
18140
18139
|
break;
|
|
18141
18140
|
}
|
|
@@ -18169,8 +18168,8 @@ yr.exports;
|
|
|
18169
18168
|
if (He)
|
|
18170
18169
|
return He == N;
|
|
18171
18170
|
ee |= r, Le.set(b, N);
|
|
18172
|
-
var
|
|
18173
|
-
return Le.delete(b),
|
|
18171
|
+
var ut = Nn(Be(b), Be(N), ee, Te, me, Le);
|
|
18172
|
+
return Le.delete(b), ut;
|
|
18174
18173
|
case S:
|
|
18175
18174
|
if (Re)
|
|
18176
18175
|
return Re.call(b) == Re.call(N);
|
|
@@ -18178,17 +18177,17 @@ yr.exports;
|
|
|
18178
18177
|
return !1;
|
|
18179
18178
|
}
|
|
18180
18179
|
function Hr(b, N, F, ee, Te, me) {
|
|
18181
|
-
var Le = F & o, Be = rn(b), Ze = Be.length, He = rn(N),
|
|
18182
|
-
if (Ze !=
|
|
18180
|
+
var Le = F & o, Be = rn(b), Ze = Be.length, He = rn(N), ut = He.length;
|
|
18181
|
+
if (Ze != ut && !Le)
|
|
18183
18182
|
return !1;
|
|
18184
18183
|
for (var mt = Ze; mt--; ) {
|
|
18185
18184
|
var Qe = Be[mt];
|
|
18186
18185
|
if (!(Le ? Qe in N : Me.call(N, Qe)))
|
|
18187
18186
|
return !1;
|
|
18188
18187
|
}
|
|
18189
|
-
var
|
|
18190
|
-
if (
|
|
18191
|
-
return
|
|
18188
|
+
var dt = me.get(b);
|
|
18189
|
+
if (dt && me.get(N))
|
|
18190
|
+
return dt == N;
|
|
18192
18191
|
var it = !0;
|
|
18193
18192
|
me.set(b, N), me.set(N, b);
|
|
18194
18193
|
for (var Yt = Le; ++mt < Ze; ) {
|
|
@@ -18220,14 +18219,14 @@ yr.exports;
|
|
|
18220
18219
|
return Br(F) ? F : void 0;
|
|
18221
18220
|
}
|
|
18222
18221
|
function Ut(b) {
|
|
18223
|
-
var N = Me.call(b,
|
|
18222
|
+
var N = Me.call(b, lt), F = b[lt];
|
|
18224
18223
|
try {
|
|
18225
|
-
b[
|
|
18224
|
+
b[lt] = void 0;
|
|
18226
18225
|
var ee = !0;
|
|
18227
18226
|
} catch {
|
|
18228
18227
|
}
|
|
18229
18228
|
var Te = Qt.call(b);
|
|
18230
|
-
return ee && (N ? b[
|
|
18229
|
+
return ee && (N ? b[lt] = F : delete b[lt]), Te;
|
|
18231
18230
|
}
|
|
18232
18231
|
var Vr = It ? function(b) {
|
|
18233
18232
|
return b == null ? [] : (b = Object(b), Pe(It(b), function(N) {
|
package/dist/index.umd.cjs
CHANGED
|
@@ -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,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={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
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
></ib-limit-selector>
|
|
8
8
|
|
|
9
9
|
<div class="repot-pagination">
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
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>
|