@avakhula/ui 0.0.234 → 0.0.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as G, createElementBlock as ne, normalizeStyle as wn, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, renderSlot as Te, createVNode as ge, Transition as wr, withCtx as ye, withDirectives as Re, vShow as Ke, createBlock as ke, resolveDynamicComponent as Or, mergeProps as St, Fragment as
|
|
1
|
+
import { openBlock as G, createElementBlock as ne, normalizeStyle as wn, normalizeClass as ve, resolveComponent as fe, createElementVNode as ae, renderSlot as Te, createVNode as ge, Transition as wr, withCtx as ye, withDirectives as Re, vShow as Ke, createBlock as ke, resolveDynamicComponent as Or, mergeProps as St, Fragment as et, renderList as Ft, createCommentVNode as he, toDisplayString as $e, withModifiers as it, resolveDirective as On, createSlots as So, Teleport as ca, createTextVNode as Ge, createApp as fa, vModelDynamic as To, withKeys as _t, pushScopeId as $i, popScopeId as wi, vModelText as xo, defineComponent as ha, onMounted as pa, onBeforeUnmount as ga, ref as Bi, watch as ei, nextTick as ji, h as ma, createStaticVNode as va } from "vue";
|
|
2
2
|
const Ae = (t, n) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
4
|
for (const [i, o] of n)
|
|
@@ -257,7 +257,7 @@ function Na(t, n, e, i, o, r) {
|
|
|
257
257
|
name: "_token",
|
|
258
258
|
value: r.token
|
|
259
259
|
}, null, 8, xa),
|
|
260
|
-
(G(!0), ne(
|
|
260
|
+
(G(!0), ne(et, null, Ft(Object.keys(e.postOptions), (s, l) => (G(), ne("input", {
|
|
261
261
|
key: l,
|
|
262
262
|
type: "hidden",
|
|
263
263
|
name: s,
|
|
@@ -819,7 +819,7 @@ function dl(t, n, e, i, o, r) {
|
|
|
819
819
|
ge(l, {
|
|
820
820
|
class: "close-button",
|
|
821
821
|
kind: "ghost",
|
|
822
|
-
onClick:
|
|
822
|
+
onClick: it(r.close, ["prevent"])
|
|
823
823
|
}, {
|
|
824
824
|
default: ye(() => [
|
|
825
825
|
ge(s, { name: "close-outline" })
|
|
@@ -997,7 +997,7 @@ function Cl(t, n, e, i, o, r) {
|
|
|
997
997
|
class: ve(["dropdown-trigger", r.triggerClasses]),
|
|
998
998
|
ref: "dropdown",
|
|
999
999
|
onKeydown: n[0] || (n[0] = (...l) => r.onKeydown && r.onKeydown(...l)),
|
|
1000
|
-
onClick: n[1] || (n[1] =
|
|
1000
|
+
onClick: n[1] || (n[1] = it((...l) => r.toggle && r.toggle(...l), ["prevent", "stop"]))
|
|
1001
1001
|
}, [
|
|
1002
1002
|
Te(t.$slots, "trigger", { isOpened: o.isOpenedState }, void 0, !0)
|
|
1003
1003
|
], 34)) : he("", !0),
|
|
@@ -1466,7 +1466,7 @@ const Vl = {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
function Kl(t, n, e, i, o, r) {
|
|
1468
1468
|
const s = fe("ib-icon"), l = fe("ib-icon-button"), c = On("outside");
|
|
1469
|
-
return G(), ne(
|
|
1469
|
+
return G(), ne(et, null, [
|
|
1470
1470
|
r.hasTrigger ? (G(), ne("div", {
|
|
1471
1471
|
key: 0,
|
|
1472
1472
|
class: "modal-trigger",
|
|
@@ -1583,7 +1583,7 @@ function Zl(t, n, e, i, o, r) {
|
|
|
1583
1583
|
], 10, Wl)
|
|
1584
1584
|
]),
|
|
1585
1585
|
body: ye(() => [
|
|
1586
|
-
(G(!0), ne(
|
|
1586
|
+
(G(!0), ne(et, null, Ft(e.tabs.tabs, (f, h) => (G(), ke(l, {
|
|
1587
1587
|
key: h,
|
|
1588
1588
|
checked: f.id === e.selectedTab,
|
|
1589
1589
|
href: r.createHref(f.id),
|
|
@@ -1665,7 +1665,7 @@ function is(t, n, e, i, o, r) {
|
|
|
1665
1665
|
const s = fe("ib-tab-dropdown");
|
|
1666
1666
|
return G(), ne("div", Ql, [
|
|
1667
1667
|
ae("ul", es, [
|
|
1668
|
-
(G(!0), ne(
|
|
1668
|
+
(G(!0), ne(et, null, Ft(o.tabs, (l, c) => (G(), ne("li", {
|
|
1669
1669
|
class: "tab-item",
|
|
1670
1670
|
key: c
|
|
1671
1671
|
}, [
|
|
@@ -2071,7 +2071,7 @@ function ws(t, n, e, i, o, r) {
|
|
|
2071
2071
|
const s = fe("ib-icon"), l = fe("ib-tooltip"), c = fe("ib-icon-button"), f = fe("ib-dropdown-item"), h = fe("ib-dropdown-list");
|
|
2072
2072
|
return G(), ne("nav", vs, [
|
|
2073
2073
|
ae("ul", ys, [
|
|
2074
|
-
(G(!0), ne(
|
|
2074
|
+
(G(!0), ne(et, null, Ft(e.items, (d, a) => (G(), ne("li", {
|
|
2075
2075
|
class: ve(["breadcrumb-item", a === r.last ? "active" : ""]),
|
|
2076
2076
|
"aria-current": "page",
|
|
2077
2077
|
key: a
|
|
@@ -2099,7 +2099,7 @@ function ws(t, n, e, i, o, r) {
|
|
|
2099
2099
|
})
|
|
2100
2100
|
]),
|
|
2101
2101
|
body: ye(() => [
|
|
2102
|
-
(G(!0), ne(
|
|
2102
|
+
(G(!0), ne(et, null, Ft(r.setItemsContextMenu, (u, b) => (G(), ke(f, { key: b }, {
|
|
2103
2103
|
default: ye(() => [
|
|
2104
2104
|
ae("a", {
|
|
2105
2105
|
class: "context-breadcrums",
|
|
@@ -2405,7 +2405,7 @@ function As(t, n, e, i, o, r) {
|
|
|
2405
2405
|
type: "button",
|
|
2406
2406
|
disabled: e.readonly || e.disabled,
|
|
2407
2407
|
"help-text": o.showPassword ? e.hidePasswordMessage : e.showPasswordMessage,
|
|
2408
|
-
onClick:
|
|
2408
|
+
onClick: it(r.toggleShowPassword, ["prevent"])
|
|
2409
2409
|
}, {
|
|
2410
2410
|
default: ye(() => [
|
|
2411
2411
|
ge(l, {
|
|
@@ -2552,7 +2552,7 @@ function qs(t, n, e, i, o, r) {
|
|
|
2552
2552
|
ae("label", St(r.attrs, {
|
|
2553
2553
|
for: e.id,
|
|
2554
2554
|
tabindex: e.disabled | e.disableFocus ? -1 : 0,
|
|
2555
|
-
onKeypress: n[1] || (n[1] =
|
|
2555
|
+
onKeypress: n[1] || (n[1] = it((...c) => r.onChange && r.onChange(...c), ["prevent"]))
|
|
2556
2556
|
}), [
|
|
2557
2557
|
ae("input", {
|
|
2558
2558
|
tabindex: "-1",
|
|
@@ -2676,47 +2676,50 @@ const Fs = {
|
|
|
2676
2676
|
};
|
|
2677
2677
|
function Ys(t, n, e, i, o, r) {
|
|
2678
2678
|
const s = fe("ib-icon"), l = fe("ib-tooltip");
|
|
2679
|
-
return G(), ne(
|
|
2680
|
-
|
|
2681
|
-
"
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2679
|
+
return G(), ne(et, null, [
|
|
2680
|
+
Ge(" {} "),
|
|
2681
|
+
ae("label", {
|
|
2682
|
+
role: "switch",
|
|
2683
|
+
"aria-checked": o.checked,
|
|
2684
|
+
tabindex: e.disabled ? -1 : 0,
|
|
2685
|
+
class: ve(r.classes),
|
|
2686
|
+
onKeypress: [
|
|
2687
|
+
n[2] || (n[2] = _t(it((...c) => r.onChange && r.onChange(...c), ["prevent"]), ["space"])),
|
|
2688
|
+
n[3] || (n[3] = _t(it((...c) => r.onChange && r.onChange(...c), ["prevent"]), ["enter"]))
|
|
2689
|
+
]
|
|
2690
|
+
}, [
|
|
2691
|
+
ae("div", Vs, [
|
|
2692
|
+
ae("div", Us, [
|
|
2693
|
+
ae("input", {
|
|
2694
|
+
tabindex: "-1",
|
|
2695
|
+
type: "checkbox",
|
|
2696
|
+
value: "1",
|
|
2697
|
+
name: e.name,
|
|
2698
|
+
checked: o.checked,
|
|
2699
|
+
id: e.id,
|
|
2700
|
+
disabled: e.disabled,
|
|
2701
|
+
onClick: n[0] || (n[0] = (...c) => r.onChange && r.onChange(...c)),
|
|
2702
|
+
onInput: n[1] || (n[1] = it(() => {
|
|
2703
|
+
}, ["stop"]))
|
|
2704
|
+
}, null, 40, zs),
|
|
2705
|
+
Ks,
|
|
2706
|
+
ge(s, {
|
|
2707
|
+
class: "checked-icon",
|
|
2708
|
+
name: "checkmark"
|
|
2709
|
+
}),
|
|
2710
|
+
ge(s, {
|
|
2711
|
+
class: "unchecked-icon",
|
|
2712
|
+
name: "close"
|
|
2713
|
+
})
|
|
2714
|
+
], 512)
|
|
2715
|
+
], 512),
|
|
2716
|
+
e.label.length ? (G(), ne("span", Gs, $e(e.label), 1)) : he("", !0),
|
|
2717
|
+
e.helpMessage.length ? (G(), ke(l, {
|
|
2718
|
+
key: 1,
|
|
2719
|
+
text: o.checked ? e.helpMessage : e.helpMessageOff.length ? e.helpMessageOff : e.helpMessage
|
|
2720
|
+
}, null, 8, ["text"])) : he("", !0)
|
|
2721
|
+
], 42, Hs)
|
|
2722
|
+
], 64);
|
|
2720
2723
|
}
|
|
2721
2724
|
const Ws = /* @__PURE__ */ Ae(Fs, [["render", Ys]]);
|
|
2722
2725
|
function qo(t) {
|
|
@@ -2822,32 +2825,13 @@ const Zs = {
|
|
|
2822
2825
|
return null;
|
|
2823
2826
|
} else
|
|
2824
2827
|
return !1;
|
|
2825
|
-
return t.checked ? t.isIndeterminate ? null : !
|
|
2828
|
+
return t.checked ? !0 : t.isIndeterminate ? null : !1;
|
|
2826
2829
|
}
|
|
2827
2830
|
},
|
|
2828
2831
|
computed: {
|
|
2829
2832
|
component() {
|
|
2830
2833
|
return this.isMultiple && this.isToggle ? Ws : jo;
|
|
2831
2834
|
},
|
|
2832
|
-
// isChecked() {
|
|
2833
|
-
// if(this.hasChildren) {
|
|
2834
|
-
// if (!this.childrenSelectedCount) {
|
|
2835
|
-
// return false;
|
|
2836
|
-
// } else if (
|
|
2837
|
-
// this.childrenSelectedCount > 0 &&
|
|
2838
|
-
// this.countOfAllChildren > this.childrenSelectedCount
|
|
2839
|
-
// ) {
|
|
2840
|
-
// return null; //null will trigger indeterminate stage
|
|
2841
|
-
// }
|
|
2842
|
-
// }
|
|
2843
|
-
// if (!this.option.checked) {
|
|
2844
|
-
// return false;
|
|
2845
|
-
// }
|
|
2846
|
-
// if (this.option.isIndeterminate) {
|
|
2847
|
-
// return null; //null will trigger indeterminate stage
|
|
2848
|
-
// }
|
|
2849
|
-
// return true;
|
|
2850
|
-
// },
|
|
2851
2835
|
hasChildren() {
|
|
2852
2836
|
return !!(this.option.children && this.option.children.length);
|
|
2853
2837
|
},
|
|
@@ -2907,7 +2891,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2907
2891
|
"aria-selected": r.isChecked(e.option),
|
|
2908
2892
|
"aria-label": e.option.title,
|
|
2909
2893
|
id: "option-" + r.id,
|
|
2910
|
-
onKeydown: n[3] || (n[3] =
|
|
2894
|
+
onKeydown: n[3] || (n[3] = it((...d) => r.onKeydown && r.onKeydown(...d), ["self"])),
|
|
2911
2895
|
onFocus: n[4] || (n[4] = (d) => t.$emit("onFocus", `option-${r.id}`))
|
|
2912
2896
|
}, [
|
|
2913
2897
|
Re(ge(l, {
|
|
@@ -2924,7 +2908,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2924
2908
|
[Ke, r.hasVisibleChildren]
|
|
2925
2909
|
]),
|
|
2926
2910
|
ae("div", {
|
|
2927
|
-
onClick: n[1] || (n[1] =
|
|
2911
|
+
onClick: n[1] || (n[1] = it((...d) => r.onChange && r.onChange(...d), ["prevent"])),
|
|
2928
2912
|
class: ve({
|
|
2929
2913
|
disabled: e.option.isDisabled,
|
|
2930
2914
|
"tree-select-option-label": !0,
|
|
@@ -2960,10 +2944,10 @@ function ru(t, n, e, i, o, r) {
|
|
|
2960
2944
|
Ge($e(e.option.title) + " ", 1),
|
|
2961
2945
|
ge(s, {
|
|
2962
2946
|
name: "star",
|
|
2963
|
-
onClick: n[0] || (n[0] =
|
|
2947
|
+
onClick: n[0] || (n[0] = it((d) => t.$emit("toggle-bookmark", e.option), ["stop", "prevent"]))
|
|
2964
2948
|
})
|
|
2965
2949
|
]))
|
|
2966
|
-
], 2)) : e.htmlTitle ? (G(), ne(
|
|
2950
|
+
], 2)) : e.htmlTitle ? (G(), ne(et, { key: 1 }, [
|
|
2967
2951
|
r.hasChildren ? (G(), ne("span", {
|
|
2968
2952
|
key: 1,
|
|
2969
2953
|
class: "option-label",
|
|
@@ -2977,7 +2961,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
2977
2961
|
], 2),
|
|
2978
2962
|
r.hasChildren ? Re((G(), ke(f, { key: 0 }, {
|
|
2979
2963
|
default: ye(() => [
|
|
2980
|
-
(G(!0), ne(
|
|
2964
|
+
(G(!0), ne(et, null, Ft(e.option.children, (d) => Re((G(), ke(c, {
|
|
2981
2965
|
key: d.value,
|
|
2982
2966
|
option: d,
|
|
2983
2967
|
name: e.name,
|
|
@@ -3002,7 +2986,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3002
2986
|
]);
|
|
3003
2987
|
}
|
|
3004
2988
|
const iu = /* @__PURE__ */ Ae(Zs, [["render", ru]]);
|
|
3005
|
-
var
|
|
2989
|
+
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3006
2990
|
function Er(t) {
|
|
3007
2991
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3008
2992
|
}
|
|
@@ -3016,7 +3000,7 @@ var Fo = { exports: {} };
|
|
|
3016
3000
|
(function(t, n) {
|
|
3017
3001
|
(function(e, i) {
|
|
3018
3002
|
t.exports = i();
|
|
3019
|
-
})(
|
|
3003
|
+
})(tt, function() {
|
|
3020
3004
|
class e {
|
|
3021
3005
|
constructor(r, s = !0, l = [], c = 5e3) {
|
|
3022
3006
|
this.ctx = r, this.iframes = s, this.exclude = l, this.iframesTimeout = c;
|
|
@@ -3747,7 +3731,7 @@ const lu = {
|
|
|
3747
3731
|
this.actualOptions = [], this.allOptionsIsChecked = !1, this.selected = [], this.$emit("update:modelValue", null);
|
|
3748
3732
|
},
|
|
3749
3733
|
clearValue() {
|
|
3750
|
-
|
|
3734
|
+
this.clear(), this.setPreparedValues();
|
|
3751
3735
|
},
|
|
3752
3736
|
prepare(t) {
|
|
3753
3737
|
return new Promise((n) => {
|
|
@@ -3922,7 +3906,7 @@ const lu = {
|
|
|
3922
3906
|
};
|
|
3923
3907
|
function du(t, n, e, i, o, r) {
|
|
3924
3908
|
const s = fe("ib-alert"), l = fe("ib-icon"), c = fe("ib-icon-button"), f = fe("select-option"), h = fe("list"), d = fe("ib-input"), a = fe("ib-dropdown");
|
|
3925
|
-
return G(), ne(
|
|
3909
|
+
return G(), ne(et, null, [
|
|
3926
3910
|
e.errorMessage ? (G(), ke(s, {
|
|
3927
3911
|
key: 0,
|
|
3928
3912
|
class: "tree-select-error"
|
|
@@ -3963,7 +3947,7 @@ function du(t, n, e, i, o, r) {
|
|
|
3963
3947
|
class: ve({ "has-hierarchy": r.hasHierarchy })
|
|
3964
3948
|
}, {
|
|
3965
3949
|
default: ye(() => [
|
|
3966
|
-
(G(!0), ne(
|
|
3950
|
+
(G(!0), ne(et, null, Ft(o.actualBookmarkedOptions, (u) => (G(), ke(f, {
|
|
3967
3951
|
key: "bookmark" + u.id,
|
|
3968
3952
|
option: u,
|
|
3969
3953
|
"parent-auto-check": !1,
|
|
@@ -4019,7 +4003,7 @@ function du(t, n, e, i, o, r) {
|
|
|
4019
4003
|
"only-end-nodes": e.onlyEndNodes,
|
|
4020
4004
|
"show-input": e.showInputs
|
|
4021
4005
|
}, null, 8, ["option", "name", "parent-auto-check", "is-multiple", "onCheck", "onToggleBookmark", "uid", "only-end-nodes", "show-input"])) : he("", !0),
|
|
4022
|
-
r.requiredDependencyNotFilled ? he("", !0) : (G(), ne(
|
|
4006
|
+
r.requiredDependencyNotFilled ? he("", !0) : (G(), ne(et, { key: 3 }, [
|
|
4023
4007
|
e.allOptions && e.isMultiple && r.visibleOptionsCount && !r.requiredDependencyNotFilled ? (G(), ke(f, {
|
|
4024
4008
|
key: 0,
|
|
4025
4009
|
option: {
|
|
@@ -4042,7 +4026,7 @@ function du(t, n, e, i, o, r) {
|
|
|
4042
4026
|
onCheck: r.manageAll,
|
|
4043
4027
|
onOnFocus: n[9] || (n[9] = (u) => o.focusedOptionId = u)
|
|
4044
4028
|
}, null, 8, ["option", "is-toggle", "name", "is-multiple", "uid", "only-end-nodes", "show-input", "onCheck"])) : he("", !0),
|
|
4045
|
-
(G(!0), ne(
|
|
4029
|
+
(G(!0), ne(et, null, Ft(o.actualOptions, (u) => Te(t.$slots, o.actualName, {
|
|
4046
4030
|
key: e.name + u.value,
|
|
4047
4031
|
option: u,
|
|
4048
4032
|
parentAutoCheck: e.parentAutoCheck,
|
|
@@ -4098,7 +4082,7 @@ function du(t, n, e, i, o, r) {
|
|
|
4098
4082
|
"tree-choice-error": e.errorMessage
|
|
4099
4083
|
}]),
|
|
4100
4084
|
ref: "combobox",
|
|
4101
|
-
onClick: n[0] || (n[0] =
|
|
4085
|
+
onClick: n[0] || (n[0] = it(() => {
|
|
4102
4086
|
}, ["prevent"])),
|
|
4103
4087
|
onBlur: n[1] || (n[1] = (...b) => r.onBlur && r.onBlur(...b)),
|
|
4104
4088
|
onKeyup: [
|
|
@@ -4121,12 +4105,12 @@ function du(t, n, e, i, o, r) {
|
|
|
4121
4105
|
key: 0,
|
|
4122
4106
|
kind: "ghost",
|
|
4123
4107
|
class: "button-clear",
|
|
4124
|
-
onClick:
|
|
4125
|
-
onKeypress: n[4] || (n[4] = _t(
|
|
4108
|
+
onClick: it(r.clearValue, ["prevent"]),
|
|
4109
|
+
onKeypress: n[4] || (n[4] = _t(it(() => {
|
|
4126
4110
|
}, ["stop", "prevent"]), ["enter"])),
|
|
4127
|
-
onKeydown: n[5] || (n[5] = _t(
|
|
4111
|
+
onKeydown: n[5] || (n[5] = _t(it(() => {
|
|
4128
4112
|
}, ["stop", "prevent"]), ["enter"])),
|
|
4129
|
-
onKeyup: _t(
|
|
4113
|
+
onKeyup: _t(it(r.clearValue, ["prevent"]), ["enter"]),
|
|
4130
4114
|
"help-text": e.clearButtonMessage
|
|
4131
4115
|
}, {
|
|
4132
4116
|
default: ye(() => [
|
|
@@ -4323,7 +4307,7 @@ function Ou(t, n, e, i, o, r) {
|
|
|
4323
4307
|
"label-select": e.labelSelect
|
|
4324
4308
|
}, null, 8, ["onSelect", "value", "label-select"]),
|
|
4325
4309
|
ae("div", yu, [
|
|
4326
|
-
e.showPaginationInput ? (G(), ne(
|
|
4310
|
+
e.showPaginationInput ? (G(), ne(et, { key: 0 }, [
|
|
4327
4311
|
ge(l, null, {
|
|
4328
4312
|
default: ye(() => [
|
|
4329
4313
|
Ge($e(e.labelInput), 1)
|
|
@@ -4356,7 +4340,7 @@ function Ou(t, n, e, i, o, r) {
|
|
|
4356
4340
|
_: 1
|
|
4357
4341
|
}, 8, ["disabled"]),
|
|
4358
4342
|
ae("ul", $u, [
|
|
4359
|
-
(G(!0), ne(
|
|
4343
|
+
(G(!0), ne(et, null, Ft(r.countPagePagination, (a, u) => Re((G(), ne("li", {
|
|
4360
4344
|
key: u,
|
|
4361
4345
|
class: ve(["pagination-item", {
|
|
4362
4346
|
active: u + 1 === o.currentPage,
|
|
@@ -4714,7 +4698,7 @@ function nd(t, n, e, i, o, r) {
|
|
|
4714
4698
|
class: ve(r.classes),
|
|
4715
4699
|
for: e.id,
|
|
4716
4700
|
"aria-checked": o.checked,
|
|
4717
|
-
onClick: n[2] || (n[2] =
|
|
4701
|
+
onClick: n[2] || (n[2] = it((...c) => r.onClick && r.onClick(...c), ["prevent"]))
|
|
4718
4702
|
}, [
|
|
4719
4703
|
ae("input", {
|
|
4720
4704
|
type: "radio",
|
|
@@ -4724,7 +4708,7 @@ function nd(t, n, e, i, o, r) {
|
|
|
4724
4708
|
checked: o.checked,
|
|
4725
4709
|
disabled: e.disabled,
|
|
4726
4710
|
ref: "radio",
|
|
4727
|
-
onInput: n[0] || (n[0] =
|
|
4711
|
+
onInput: n[0] || (n[0] = it(() => {
|
|
4728
4712
|
}, ["stop"])),
|
|
4729
4713
|
onChange: n[1] || (n[1] = (...c) => r.onChange && r.onChange(...c))
|
|
4730
4714
|
}, null, 40, Qu),
|
|
@@ -4757,11 +4741,11 @@ const rd = {
|
|
|
4757
4741
|
};
|
|
4758
4742
|
function ud(t, n, e, i, o, r) {
|
|
4759
4743
|
return G(), ne("div", id, [
|
|
4760
|
-
e.characterLength ? e.characterLimit > e.characterLength ? (G(), ne(
|
|
4744
|
+
e.characterLength ? e.characterLimit > e.characterLength ? (G(), ne(et, { key: 1 }, [
|
|
4761
4745
|
ae("p", ad, $e(e.characterLimit - e.characterLength), 1),
|
|
4762
4746
|
Ge(" / "),
|
|
4763
4747
|
ae("p", ld, $e(e.characterLimit), 1)
|
|
4764
|
-
], 64)) : e.characterLimit === e.characterLength ? (G(), ne(
|
|
4748
|
+
], 64)) : e.characterLimit === e.characterLength ? (G(), ne(et, { key: 2 }, [
|
|
4765
4749
|
Ge("0")
|
|
4766
4750
|
], 64)) : (G(), ne("p", sd, $e(e.characterLimit - e.characterLength), 1)) : (G(), ne("p", od, "Max " + $e(e.characterLimit), 1))
|
|
4767
4751
|
]);
|
|
@@ -5338,7 +5322,7 @@ function yd(t, n) {
|
|
|
5338
5322
|
config: ft(ft({}, _n), Je.defaultConfig),
|
|
5339
5323
|
l10n: zn
|
|
5340
5324
|
};
|
|
5341
|
-
e.parseDate = gi({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = a, e._positionCalendar = te, e.changeMonth = A, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = _e, e._createElement = Fe, e.createDay = T, e.destroy = Y, e.isEnabled = Z, e.jumpToDate = m, e.updateValue = pt, e.open = Ie, e.redraw = ie, e.set =
|
|
5325
|
+
e.parseDate = gi({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = a, e._positionCalendar = te, e.changeMonth = A, e.changeYear = V, e.clear = B, e.close = j, e.onMouseOver = _e, e._createElement = Fe, e.createDay = T, e.destroy = Y, e.isEnabled = Z, e.jumpToDate = m, e.updateValue = pt, e.open = Ie, e.redraw = ie, e.set = nt, e.setDate = qe, e.toggle = tn;
|
|
5342
5326
|
function i() {
|
|
5343
5327
|
e.utils = {
|
|
5344
5328
|
getDaysInMonth: function(I, L) {
|
|
@@ -5990,7 +5974,7 @@ function yd(t, n) {
|
|
|
5990
5974
|
var rn = se();
|
|
5991
5975
|
if (rn === void 0)
|
|
5992
5976
|
return;
|
|
5993
|
-
var
|
|
5977
|
+
var rt = window.document.body.offsetWidth, Sn = Math.max(0, rt / 2 - X / 2), Tn = ".flatpickr-calendar.centerMost:before", xn = ".flatpickr-calendar.centerMost:after", An = rn.cssRules.length, Nn = "{left:" + me.left + "px;right:auto;}";
|
|
5994
5978
|
mt(e.calendarContainer, "rightMost", !1), mt(e.calendarContainer, "centerMost", !0), rn.insertRule(Tn + "," + xn + Nn, An), e.calendarContainer.style.left = Sn + "px", e.calendarContainer.style.right = "auto";
|
|
5995
5979
|
}
|
|
5996
5980
|
}
|
|
@@ -6060,7 +6044,7 @@ function yd(t, n) {
|
|
|
6060
6044
|
}
|
|
6061
6045
|
]
|
|
6062
6046
|
};
|
|
6063
|
-
function
|
|
6047
|
+
function nt(I, L) {
|
|
6064
6048
|
if (I !== null && typeof I == "object") {
|
|
6065
6049
|
Object.assign(e.config, I);
|
|
6066
6050
|
for (var z in I)
|
|
@@ -6257,7 +6241,7 @@ var Ko = { exports: {} };
|
|
|
6257
6241
|
(function(t, n) {
|
|
6258
6242
|
(function(e, i) {
|
|
6259
6243
|
t.exports = i();
|
|
6260
|
-
})(
|
|
6244
|
+
})(tt, function() {
|
|
6261
6245
|
/*! *****************************************************************************
|
|
6262
6246
|
Copyright (c) Microsoft Corporation.
|
|
6263
6247
|
|
|
@@ -10165,12 +10149,12 @@ function Kf(t, n, e, i, o, r) {
|
|
|
10165
10149
|
placeholder: r.sortedCountries.length ? r.sortedCountries[0].name : "",
|
|
10166
10150
|
type: "text",
|
|
10167
10151
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.searchQuery = l),
|
|
10168
|
-
onClick: n[1] || (n[1] =
|
|
10152
|
+
onClick: n[1] || (n[1] = it(() => {
|
|
10169
10153
|
}, ["stop"]))
|
|
10170
10154
|
}, null, 8, Hf)), [
|
|
10171
10155
|
[xo, o.searchQuery]
|
|
10172
10156
|
]) : he("", !0),
|
|
10173
|
-
(G(!0), ne(
|
|
10157
|
+
(G(!0), ne(et, null, Ft(r.sortedCountries, (l, c) => (G(), ne("li", {
|
|
10174
10158
|
role: "option",
|
|
10175
10159
|
class: ve(["vti__dropdown-item", r.getItemClass(c, l.iso2)]),
|
|
10176
10160
|
key: l.iso2 + (l.preferred ? "-preferred" : ""),
|
|
@@ -10278,7 +10262,7 @@ const Yf = {
|
|
|
10278
10262
|
};
|
|
10279
10263
|
function Wf(t, n, e, i, o, r) {
|
|
10280
10264
|
const s = fe("ib-alert"), l = fe("ib-icon"), c = fe("vue-tel-input"), f = On("outside");
|
|
10281
|
-
return G(), ne(
|
|
10265
|
+
return G(), ne(et, null, [
|
|
10282
10266
|
e.errorMessage.length ? (G(), ke(s, {
|
|
10283
10267
|
key: 0,
|
|
10284
10268
|
class: "ib-phone-error-message"
|
|
@@ -10322,7 +10306,7 @@ var ta = { exports: {} };
|
|
|
10322
10306
|
(function(t, n) {
|
|
10323
10307
|
(function(i, o) {
|
|
10324
10308
|
t.exports = o();
|
|
10325
|
-
})(typeof self < "u" ? self :
|
|
10309
|
+
})(typeof self < "u" ? self : tt, function() {
|
|
10326
10310
|
return (
|
|
10327
10311
|
/******/
|
|
10328
10312
|
function(e) {
|
|
@@ -13205,12 +13189,12 @@ var ta = { exports: {} };
|
|
|
13205
13189
|
if (_e.length !== 0) {
|
|
13206
13190
|
var Ee = J.quill.getSelection();
|
|
13207
13191
|
if (!(Ee == null || !J.quill.hasFocus())) {
|
|
13208
|
-
var Ie = J.quill.getLine(Ee.index), Me = s(Ie, 2), Ye = Me[0], ze = Me[1], Q = J.quill.getLeaf(Ee.index), te = s(Q, 2), se = te[0], ue = te[1], ie = Ee.length === 0 ? [se, ue] : J.quill.getLeaf(Ee.index + Ee.length), xe = s(ie, 2), we = xe[0], Se = xe[1],
|
|
13192
|
+
var Ie = J.quill.getLine(Ee.index), Me = s(Ie, 2), Ye = Me[0], ze = Me[1], Q = J.quill.getLeaf(Ee.index), te = s(Q, 2), se = te[0], ue = te[1], ie = Ee.length === 0 ? [se, ue] : J.quill.getLeaf(Ee.index + Ee.length), xe = s(ie, 2), we = xe[0], Se = xe[1], nt = se instanceof $.default.Text ? se.value().slice(0, ue) : "", We = we instanceof $.default.Text ? we.value().slice(Se) : "", qe = {
|
|
13209
13193
|
collapsed: Ee.length === 0,
|
|
13210
13194
|
empty: Ee.length === 0 && Ye.length() <= 1,
|
|
13211
13195
|
format: J.quill.getFormat(Ee),
|
|
13212
13196
|
offset: ze,
|
|
13213
|
-
prefix:
|
|
13197
|
+
prefix: nt,
|
|
13214
13198
|
suffix: We
|
|
13215
13199
|
}, It = _e.some(function(De) {
|
|
13216
13200
|
if (De.collapsed != null && De.collapsed !== qe.collapsed || De.empty != null && De.empty !== qe.empty || De.offset != null && De.offset !== qe.offset)
|
|
@@ -15634,7 +15618,7 @@ var ta = { exports: {} };
|
|
|
15634
15618
|
function Q(te, se) {
|
|
15635
15619
|
var ue = [], ie = !0, xe = !1, we = void 0;
|
|
15636
15620
|
try {
|
|
15637
|
-
for (var Se = te[Symbol.iterator](),
|
|
15621
|
+
for (var Se = te[Symbol.iterator](), nt; !(ie = (nt = Se.next()).done) && (ue.push(nt.value), !(se && ue.length === se)); ie = !0)
|
|
15638
15622
|
;
|
|
15639
15623
|
} catch (We) {
|
|
15640
15624
|
xe = !0, we = We;
|
|
@@ -15696,8 +15680,8 @@ var ta = { exports: {} };
|
|
|
15696
15680
|
M(this, te);
|
|
15697
15681
|
var ie = q(this, (te.__proto__ || Object.getPrototypeOf(te)).call(this, se, ue));
|
|
15698
15682
|
return ie.quill.root.addEventListener("paste", ie.onPaste.bind(ie)), ie.container = ie.quill.addContainer("ql-clipboard"), ie.container.setAttribute("contenteditable", !0), ie.container.setAttribute("tabindex", -1), ie.matchers = [], U.concat(ie.options.matchers).forEach(function(xe) {
|
|
15699
|
-
var we = s(xe, 2), Se = we[0],
|
|
15700
|
-
!ue.matchVisual &&
|
|
15683
|
+
var we = s(xe, 2), Se = we[0], nt = we[1];
|
|
15684
|
+
!ue.matchVisual && nt === Me || ie.addMatcher(Se, nt);
|
|
15701
15685
|
}), ie;
|
|
15702
15686
|
}
|
|
15703
15687
|
return l(te, [{
|
|
@@ -15715,7 +15699,7 @@ var ta = { exports: {} };
|
|
|
15715
15699
|
var xe = this.container.innerText;
|
|
15716
15700
|
return this.container.innerHTML = "", new d.default().insert(xe, x({}, E.default.blotName, ie[E.default.blotName]));
|
|
15717
15701
|
}
|
|
15718
|
-
var we = this.prepareMatching(), Se = s(we, 2),
|
|
15702
|
+
var we = this.prepareMatching(), Se = s(we, 2), nt = Se[0], We = Se[1], qe = V(this.container, nt, We);
|
|
15719
15703
|
return H(qe, `
|
|
15720
15704
|
`) && qe.ops[qe.ops.length - 1].attributes == null && (qe = qe.compose(new d.default().retain(qe.length() - 1).delete(1))), W.log("convert", this.container.innerHTML, qe), this.container.innerHTML = "", qe;
|
|
15721
15705
|
}
|
|
@@ -15746,8 +15730,8 @@ var ta = { exports: {} };
|
|
|
15746
15730
|
value: function() {
|
|
15747
15731
|
var ue = this, ie = [], xe = [];
|
|
15748
15732
|
return this.matchers.forEach(function(we) {
|
|
15749
|
-
var Se = s(we, 2),
|
|
15750
|
-
switch (
|
|
15733
|
+
var Se = s(we, 2), nt = Se[0], We = Se[1];
|
|
15734
|
+
switch (nt) {
|
|
15751
15735
|
case Node.TEXT_NODE:
|
|
15752
15736
|
xe.push(We);
|
|
15753
15737
|
break;
|
|
@@ -15755,7 +15739,7 @@ var ta = { exports: {} };
|
|
|
15755
15739
|
ie.push(We);
|
|
15756
15740
|
break;
|
|
15757
15741
|
default:
|
|
15758
|
-
[].forEach.call(ue.container.querySelectorAll(
|
|
15742
|
+
[].forEach.call(ue.container.querySelectorAll(nt), function(qe) {
|
|
15759
15743
|
qe[oe] = qe[oe] || [], qe[oe].push(We);
|
|
15760
15744
|
});
|
|
15761
15745
|
break;
|
|
@@ -17969,7 +17953,7 @@ _r.exports;
|
|
|
17969
17953
|
(function(t, n) {
|
|
17970
17954
|
var e = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, r = "[object Arguments]", s = "[object Array]", l = "[object Boolean]", c = "[object Date]", f = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", a = "[object Map]", u = "[object Number]", b = "[object Object]", v = "[object Promise]", y = "[object RegExp]", g = "[object Set]", m = "[object String]", $ = "[object Symbol]", p = "[object WeakMap]", w = "[object ArrayBuffer]", T = "[object DataView]", E = "[object Float32Array]", S = "[object Float64Array]", P = "[object Int8Array]", C = "[object Int16Array]", O = "[object Int32Array]", k = "[object Uint8Array]", x = "[object Uint8ClampedArray]", M = "[object Uint16Array]", q = "[object Uint32Array]", K = /[\\^$.*+?()[\]{}|]/g, W = /\w*$/, oe = /^\[object .+?Constructor\]$/, U = /^(?:0|[1-9]\d*)$/, R = {};
|
|
17971
17955
|
R[r] = R[s] = R[w] = R[T] = R[l] = R[c] = R[E] = R[S] = R[P] = R[C] = R[O] = R[a] = R[u] = R[b] = R[y] = R[g] = R[m] = R[$] = R[k] = R[x] = R[M] = R[q] = !0, R[f] = R[h] = R[p] = !1;
|
|
17972
|
-
var A = typeof
|
|
17956
|
+
var A = typeof tt == "object" && tt && tt.Object === Object && tt, B = typeof self == "object" && self && self.Object === Object && self, j = A || B || Function("return this")(), Y = n && !n.nodeType && n, H = Y && !0 && t && !t.nodeType && t, D = H && H.exports === Y;
|
|
17973
17957
|
function V(_, N) {
|
|
17974
17958
|
return _.set(N[0], N[1]), _;
|
|
17975
17959
|
}
|
|
@@ -18029,7 +18013,7 @@ _r.exports;
|
|
|
18029
18013
|
var Q = Array.prototype, te = Function.prototype, se = Object.prototype, ue = j["__core-js_shared__"], ie = function() {
|
|
18030
18014
|
var _ = /[^.]+$/.exec(ue && ue.keys && ue.keys.IE_PROTO || "");
|
|
18031
18015
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
18032
|
-
}(), xe = te.toString, we = se.hasOwnProperty, Se = se.toString,
|
|
18016
|
+
}(), xe = te.toString, we = se.hasOwnProperty, Se = se.toString, nt = RegExp(
|
|
18033
18017
|
"^" + xe.call(we).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18034
18018
|
), We = D ? j.Buffer : void 0, qe = j.Symbol, It = j.Uint8Array, De = Ye(Object.getPrototypeOf, Object), ht = Object.create, en = se.propertyIsEnumerable, Cn = Q.splice, tn = Object.getOwnPropertySymbols, He = We ? We.isBuffer : void 0, Zt = Ye(Object.keys, Object), Pt = Tt(j, "DataView"), Ht = Tt(j, "Map"), st = Tt(j, "Promise"), Mt = Tt(j, "Set"), pt = Tt(j, "WeakMap"), Vt = Tt(Object, "create"), nn = gt(Pt), I = gt(Ht), L = gt(st), z = gt(Mt), X = gt(pt), le = qe ? qe.prototype : void 0, de = le ? le.valueOf : void 0;
|
|
18035
18019
|
function Ce(_) {
|
|
@@ -18091,7 +18075,7 @@ _r.exports;
|
|
|
18091
18075
|
return ee < 0 ? F.push([_, N]) : F[ee][1] = N, this;
|
|
18092
18076
|
}
|
|
18093
18077
|
Ue.prototype.clear = ot, Ue.prototype.delete = Ut, Ue.prototype.get = Dt, Ue.prototype.has = En, Ue.prototype.set = rn;
|
|
18094
|
-
function
|
|
18078
|
+
function rt(_) {
|
|
18095
18079
|
var N = -1, F = _ ? _.length : 0;
|
|
18096
18080
|
for (this.clear(); ++N < F; ) {
|
|
18097
18081
|
var ee = _[N];
|
|
@@ -18117,7 +18101,7 @@ _r.exports;
|
|
|
18117
18101
|
function Nn(_, N) {
|
|
18118
18102
|
return an(this, _).set(_, N), this;
|
|
18119
18103
|
}
|
|
18120
|
-
|
|
18104
|
+
rt.prototype.clear = Sn, rt.prototype.delete = Tn, rt.prototype.get = xn, rt.prototype.has = An, rt.prototype.set = Nn;
|
|
18121
18105
|
function ut(_) {
|
|
18122
18106
|
this.__data__ = new Ue(_);
|
|
18123
18107
|
}
|
|
@@ -18139,7 +18123,7 @@ _r.exports;
|
|
|
18139
18123
|
var ee = F.__data__;
|
|
18140
18124
|
if (!Ht || ee.length < e - 1)
|
|
18141
18125
|
return ee.push([_, N]), this;
|
|
18142
|
-
F = this.__data__ = new
|
|
18126
|
+
F = this.__data__ = new rt(ee);
|
|
18143
18127
|
}
|
|
18144
18128
|
return F.set(_, N), this;
|
|
18145
18129
|
}
|
|
@@ -18211,7 +18195,7 @@ _r.exports;
|
|
|
18211
18195
|
function Br(_) {
|
|
18212
18196
|
if (!Bt(_) || Zr(_))
|
|
18213
18197
|
return !1;
|
|
18214
|
-
var N = Rn(_) || Ie(_) ?
|
|
18198
|
+
var N = Rn(_) || Ie(_) ? nt : oe;
|
|
18215
18199
|
return N.test(gt(_));
|
|
18216
18200
|
}
|
|
18217
18201
|
function jr(_) {
|
|
@@ -18415,7 +18399,7 @@ $r.exports;
|
|
|
18415
18399
|
(function(t, n) {
|
|
18416
18400
|
var e = 200, i = "__lodash_hash_undefined__", o = 1, r = 2, s = 9007199254740991, l = "[object Arguments]", c = "[object Array]", f = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", a = "[object Error]", u = "[object Function]", b = "[object GeneratorFunction]", v = "[object Map]", y = "[object Number]", g = "[object Null]", m = "[object Object]", $ = "[object Promise]", p = "[object Proxy]", w = "[object RegExp]", T = "[object Set]", E = "[object String]", S = "[object Symbol]", P = "[object Undefined]", C = "[object WeakMap]", O = "[object ArrayBuffer]", k = "[object DataView]", x = "[object Float32Array]", M = "[object Float64Array]", q = "[object Int8Array]", K = "[object Int16Array]", W = "[object Int32Array]", oe = "[object Uint8Array]", U = "[object Uint8ClampedArray]", R = "[object Uint16Array]", A = "[object Uint32Array]", B = /[\\^$.*+?()[\]{}|]/g, j = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, H = {};
|
|
18417
18401
|
H[x] = H[M] = H[q] = H[K] = H[W] = H[oe] = H[U] = H[R] = H[A] = !0, H[l] = H[c] = H[O] = H[h] = H[k] = H[d] = H[a] = H[u] = H[v] = H[y] = H[m] = H[w] = H[T] = H[E] = H[C] = !1;
|
|
18418
|
-
var D = typeof
|
|
18402
|
+
var D = typeof tt == "object" && tt && tt.Object === Object && tt, V = typeof self == "object" && self && self.Object === Object && self, Z = D || V || Function("return this")(), J = n && !n.nodeType && n, re = J && !0 && t && !t.nodeType && t, ce = re && re.exports === J, _e = ce && D.process, Ee = function() {
|
|
18419
18403
|
try {
|
|
18420
18404
|
return _e && _e.binding && _e.binding("util");
|
|
18421
18405
|
} catch {
|
|
@@ -18472,7 +18456,7 @@ $r.exports;
|
|
|
18472
18456
|
F[++N] = ee;
|
|
18473
18457
|
}), F;
|
|
18474
18458
|
}
|
|
18475
|
-
var Se = Array.prototype,
|
|
18459
|
+
var Se = Array.prototype, nt = Function.prototype, We = Object.prototype, qe = Z["__core-js_shared__"], It = nt.toString, De = We.hasOwnProperty, ht = function() {
|
|
18476
18460
|
var _ = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
18477
18461
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
18478
18462
|
}(), en = We.toString, Cn = RegExp(
|
|
@@ -18509,7 +18493,7 @@ $r.exports;
|
|
|
18509
18493
|
return this.size += this.has(_) ? 0 : 1, F[_] = le && N === void 0 ? i : N, this;
|
|
18510
18494
|
}
|
|
18511
18495
|
Ue.prototype.clear = ot, Ue.prototype.delete = Ut, Ue.prototype.get = Dt, Ue.prototype.has = En, Ue.prototype.set = rn;
|
|
18512
|
-
function
|
|
18496
|
+
function rt(_) {
|
|
18513
18497
|
var N = -1, F = _ == null ? 0 : _.length;
|
|
18514
18498
|
for (this.clear(); ++N < F; ) {
|
|
18515
18499
|
var ee = _[N];
|
|
@@ -18537,7 +18521,7 @@ $r.exports;
|
|
|
18537
18521
|
var F = this.__data__, ee = gn(F, _);
|
|
18538
18522
|
return ee < 0 ? (++this.size, F.push([_, N])) : F[ee][1] = N, this;
|
|
18539
18523
|
}
|
|
18540
|
-
|
|
18524
|
+
rt.prototype.clear = Sn, rt.prototype.delete = Tn, rt.prototype.get = xn, rt.prototype.has = An, rt.prototype.set = Nn;
|
|
18541
18525
|
function ut(_) {
|
|
18542
18526
|
var N = -1, F = _ == null ? 0 : _.length;
|
|
18543
18527
|
for (this.clear(); ++N < F; ) {
|
|
@@ -18548,7 +18532,7 @@ $r.exports;
|
|
|
18548
18532
|
function In() {
|
|
18549
18533
|
this.size = 0, this.__data__ = {
|
|
18550
18534
|
hash: new Ue(),
|
|
18551
|
-
map: new (I ||
|
|
18535
|
+
map: new (I || rt)(),
|
|
18552
18536
|
string: new Ue()
|
|
18553
18537
|
};
|
|
18554
18538
|
}
|
|
@@ -18580,11 +18564,11 @@ $r.exports;
|
|
|
18580
18564
|
}
|
|
18581
18565
|
hn.prototype.add = hn.prototype.push = Zn, hn.prototype.has = pn;
|
|
18582
18566
|
function Lt(_) {
|
|
18583
|
-
var N = this.__data__ = new
|
|
18567
|
+
var N = this.__data__ = new rt(_);
|
|
18584
18568
|
this.size = N.size;
|
|
18585
18569
|
}
|
|
18586
18570
|
function Pn() {
|
|
18587
|
-
this.__data__ = new
|
|
18571
|
+
this.__data__ = new rt(), this.size = 0;
|
|
18588
18572
|
}
|
|
18589
18573
|
function Dr(_) {
|
|
18590
18574
|
var N = this.__data__, F = N.delete(_);
|
|
@@ -18598,7 +18582,7 @@ $r.exports;
|
|
|
18598
18582
|
}
|
|
18599
18583
|
function Br(_, N) {
|
|
18600
18584
|
var F = this.__data__;
|
|
18601
|
-
if (F instanceof
|
|
18585
|
+
if (F instanceof rt) {
|
|
18602
18586
|
var ee = F.__data__;
|
|
18603
18587
|
if (!I || ee.length < e - 1)
|
|
18604
18588
|
return ee.push([_, N]), this.size = ++F.size, this;
|
|
@@ -18888,7 +18872,7 @@ $r.exports;
|
|
|
18888
18872
|
}
|
|
18889
18873
|
t.exports = Jr;
|
|
18890
18874
|
})($r, $r.exports);
|
|
18891
|
-
var sa = $r.exports, Di = {}, ua =
|
|
18875
|
+
var sa = $r.exports, Di = {}, ua = tt && tt.__importDefault || function(t) {
|
|
18892
18876
|
return t && t.__esModule ? t : { default: t };
|
|
18893
18877
|
};
|
|
18894
18878
|
Object.defineProperty(Di, "__esModule", { value: !0 });
|
|
@@ -18943,7 +18927,7 @@ function oh() {
|
|
|
18943
18927
|
if (wo)
|
|
18944
18928
|
return fr;
|
|
18945
18929
|
wo = 1;
|
|
18946
|
-
var t =
|
|
18930
|
+
var t = tt && tt.__importDefault || function(i) {
|
|
18947
18931
|
return i && i.__esModule ? i : { default: i };
|
|
18948
18932
|
};
|
|
18949
18933
|
Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
@@ -18990,7 +18974,7 @@ function da() {
|
|
|
18990
18974
|
if (Oo)
|
|
18991
18975
|
return cr;
|
|
18992
18976
|
Oo = 1;
|
|
18993
|
-
var t =
|
|
18977
|
+
var t = tt && tt.__importDefault || function(i) {
|
|
18994
18978
|
return i && i.__esModule ? i : { default: i };
|
|
18995
18979
|
};
|
|
18996
18980
|
Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
@@ -19006,7 +18990,7 @@ function da() {
|
|
|
19006
18990
|
i.length = r;
|
|
19007
18991
|
}(e || (e = {})), cr.default = e, cr;
|
|
19008
18992
|
}
|
|
19009
|
-
var Wn =
|
|
18993
|
+
var Wn = tt && tt.__importDefault || function(t) {
|
|
19010
18994
|
return t && t.__esModule ? t : { default: t };
|
|
19011
18995
|
}, hr = Wn(nh), ah = Wn(la), hi = Wn(sa), qn = Wn(Di), lt = Wn(da()), lh = String.fromCharCode(0), sh = (
|
|
19012
18996
|
/** @class */
|
package/dist/index.umd.cjs
CHANGED
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
top: ${a-p-f/2+u+12}px!important`;break;case"rightCenter":l=l+`left: ${d+5}px!important;
|
|
19
19
|
top: ${a+u-p/2-f/2}px!important;`;break;case"rightBottom":l=l+`left: ${d+5}px!important;
|
|
20
20
|
top: ${a+u-f/2-12}px!important`;break;default:l=l+`left: ${r+s/2-h/2}px!important;
|
|
21
|
-
top: ${o-p+u-5}px!important`;break}return l}getClassList(n){return n?hr[n]:hr.topCenter}}const Vt=new Ni,jl=(t,n)=>{var a;Vt.getTooltipContainer()&&Vt.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Vt.createTooltip(t,o,e)},Vl=(t,n)=>{const e=Vt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Vt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Vt.destroyTooltip(n)},xi=(t,n)=>{t.__tooltip_create=()=>jl(t,n),t.__tooltip_destroy=e=>Vl(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},Ai=t=>{Vt.destroyTooltip(),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},yr={mounted(t,n){xi(t,n)},updated(t,n){Ai(t),xi(t,n)},beforeUnmount(t){Ai(t)}},d1="",ql={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:Rl,sortingTypesView:Ll,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:yr},components:{IbIcon:Le,IbIconButton:ut,IbToggleTip:wi}},Fl={class:"sorting-wrapper"},Hl=["name"],zl=["aria-label"];function Ul(t,n,e,o,a,r){var p;const d=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",Fl,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=u=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.tooltipContent,e.tooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(d,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=u=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,Hl)]),_:1},8,["onClick"]))],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...u)=>r.clickHandler&&r.clickHandler(...u)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(f,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,zl)),[[h,e.tooltipText,e.tooltipPosition]])])}const Kl=_e(ql,[["render",Ul],["__scopeId","data-v-fa3095d2"]]),c1="",Gl={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:gr,IbDropdownList:Rn,IbTooltip:jt}},Yl={"aria-label":"breadcrumb"},Wl={class:"breadcrumb"},Zl=["href"],Jl={key:1},Xl=["href"];function Ql(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",Yl,[i.createElementVNode("ul",Wl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(u,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",l===r.last?"active":""]),"aria-current":"page",key:l},[l!==r.last&&l>e.items.length-4||l===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:u.url},i.toDisplayString(u.title),9,Zl)):i.createCommentVNode("",!0),l===r.last?(i.openBlock(),i.createElementBlock("p",Jl,i.toDisplayString(u.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&l===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(f,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(d,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(c,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:c.url},i.toDisplayString(c.title),9,Xl)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),l!==r.last&&l>e.items.length-5||l===0?(i.openBlock(),i.createBlock(d,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const es=_e(Gl,[["render",Ql],["__scopeId","data-v-5ef772a9"]]),u1="",ts={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le,IbTooltip:jt}},ns=["for"],rs={key:0,class:"required"};function is(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",rs,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(f,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(d,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,ns)}const dn=_e(ts,[["render",is],["__scopeId","data-v-3e867259"]]),vr={text:"text",password:"password",email:"email",number:"number"},f1="",os={name:"IbInput",props:{type:{type:String,default:vr.text,validator:t=>Object.keys(vr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return ht()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Bn.bottom},settingsHorizontalPosition:{type:String,default:sn.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue)},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Dn({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===vr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},as=["aria-invalid","readonly","disabled","id"],ls={class:"settings-wrapper"};function ss(t,n,e,o,a,r){var p,u;const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=l=>a.actualValue=l),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=l=>r.onInput(l)),onBlur:n[2]||(n[2]=l=>r.onBlur(l)),onFocus:n[3]||(n[3]=l=>r.onFocus(l))}),null,16,as),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(f,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(u=a.actualValue)==null?void 0:u.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(f,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",ls,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const br=_e(os,[["render",ss],["__scopeId","data-v-7d710724"]]),h1="",ds={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return ht()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked)}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Dn({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},cs=["aria-checked"],us=["for","tabindex"],fs=["name","id","value","checked","disabled","required"],hs={class:"ib-checkbox-body"},ps={key:0,class:"required"},ms={class:"ib-checkbox-input"},gs={key:1,class:"ib-checkbox-label"},ys={key:0,class:"required"};function vs(t,n,e,o,a,r){var s;const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(this.$attrs.class),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onKeypress:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))}),[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,checked:a.checked,disabled:e.disabled,required:e.required,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f))},null,8,fs),i.createElementVNode("div",hs,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",ps,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",ms,[i.withDirectives(i.createVNode(d,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(d,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",gs,[e.required?(i.openBlock(),i.createElementBlock("span",ys,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,us)],10,cs)}const _r=_e(ds,[["render",vs]]),p1="",bs={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>ht()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("input",this.checked)}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:jt}},_s=["aria-checked","tabindex"],$s={class:"toggle-wrapper",ref:"wrapper"},ws={class:"toggle",ref:"toggle"},ks=["name","checked","id","disabled"],Cs=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Os={key:0,class:"toggle-label"};function Es(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["enter"]))]},[i.createElementVNode("div",$s,[i.createElementVNode("div",ws,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,ks),Cs,i.createVNode(d,{class:"checked-icon",name:"checkmark"}),i.createVNode(d,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",Os,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,_s)}const Di=_e(bs,[["render",Es]]);function Ii(t){return t.scrollHeight>t.clientHeight}const m1="",Ss={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{Ii(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===ki&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===Ha&&(this.option.isChildrenVisible=!0),t.keyCode===Fa&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?t.isIndeterminate?null:!0:!1}},computed:{component(){return this.isMultiple&&this.isToggle?Di:_r},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:mr,IbIconButton:ut},directives:{Tooltip:yr}},Ts=["aria-selected","aria-label","id"],Ns={key:0,class:"option-label"},xs={key:1,class:"option-label"},As=["innerHTML"],Ds=["innerHTML"],Is={key:2,class:"option-label"};function Ms(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("select-option"),h=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...u)=>r.onKeydown&&r.onKeydown(...u),["self"])),onFocus:n[4]||(n[4]=u=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(d,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",xs,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Ns,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(d,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(u=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,Ds)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,As))],64)):(i.openBlock(),i.createElementBlock("span",Is,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,u=>i.withDirectives((i.openBlock(),i.createBlock(f,{key:u.value,option:u,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=l=>t.$emit("toggle-bookmark",l)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,u.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Ts)),[[p,a.showTooltip?e.option.title:""]])])}const Ps=_e(Ss,[["render",Ms]]);var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mi={exports:{}};/*!***************************************************
|
|
21
|
+
top: ${o-p+u-5}px!important`;break}return l}getClassList(n){return n?hr[n]:hr.topCenter}}const Vt=new Ni,jl=(t,n)=>{var a;Vt.getTooltipContainer()&&Vt.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Vt.createTooltip(t,o,e)},Vl=(t,n)=>{const e=Vt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Vt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Vt.destroyTooltip(n)},xi=(t,n)=>{t.__tooltip_create=()=>jl(t,n),t.__tooltip_destroy=e=>Vl(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},Ai=t=>{Vt.destroyTooltip(),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},yr={mounted(t,n){xi(t,n)},updated(t,n){Ai(t),xi(t,n)},beforeUnmount(t){Ai(t)}},d1="",ql={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:Rl,sortingTypesView:Ll,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:yr},components:{IbIcon:Le,IbIconButton:ut,IbToggleTip:wi}},Fl={class:"sorting-wrapper"},Hl=["name"],zl=["aria-label"];function Ul(t,n,e,o,a,r){var p;const d=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",Fl,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=u=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.tooltipContent,e.tooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(d,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=u=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,Hl)]),_:1},8,["onClick"]))],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...u)=>r.clickHandler&&r.clickHandler(...u)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(f,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,zl)),[[h,e.tooltipText,e.tooltipPosition]])])}const Kl=_e(ql,[["render",Ul],["__scopeId","data-v-fa3095d2"]]),c1="",Gl={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:gr,IbDropdownList:Rn,IbTooltip:jt}},Yl={"aria-label":"breadcrumb"},Wl={class:"breadcrumb"},Zl=["href"],Jl={key:1},Xl=["href"];function Ql(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",Yl,[i.createElementVNode("ul",Wl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(u,l)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",l===r.last?"active":""]),"aria-current":"page",key:l},[l!==r.last&&l>e.items.length-4||l===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:u.url},i.toDisplayString(u.title),9,Zl)):i.createCommentVNode("",!0),l===r.last?(i.openBlock(),i.createElementBlock("p",Jl,i.toDisplayString(u.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&l===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(f,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(d,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(c,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:c.url},i.toDisplayString(c.title),9,Xl)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),l!==r.last&&l>e.items.length-5||l===0?(i.openBlock(),i.createBlock(d,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const es=_e(Gl,[["render",Ql],["__scopeId","data-v-5ef772a9"]]),u1="",ts={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le,IbTooltip:jt}},ns=["for"],rs={key:0,class:"required"};function is(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",rs,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(f,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(d,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,ns)}const dn=_e(ts,[["render",is],["__scopeId","data-v-3e867259"]]),vr={text:"text",password:"password",email:"email",number:"number"},f1="",os={name:"IbInput",props:{type:{type:String,default:vr.text,validator:t=>Object.keys(vr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return ht()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Bn.bottom},settingsHorizontalPosition:{type:String,default:sn.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue)},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Dn({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===vr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},as=["aria-invalid","readonly","disabled","id"],ls={class:"settings-wrapper"};function ss(t,n,e,o,a,r){var p,u;const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=l=>a.actualValue=l),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=l=>r.onInput(l)),onBlur:n[2]||(n[2]=l=>r.onBlur(l)),onFocus:n[3]||(n[3]=l=>r.onFocus(l))}),null,16,as),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(f,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(u=a.actualValue)==null?void 0:u.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(f,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",ls,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const br=_e(os,[["render",ss],["__scopeId","data-v-7d710724"]]),h1="",ds={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return ht()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked)}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Dn({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},cs=["aria-checked"],us=["for","tabindex"],fs=["name","id","value","checked","disabled","required"],hs={class:"ib-checkbox-body"},ps={key:0,class:"required"},ms={class:"ib-checkbox-input"},gs={key:1,class:"ib-checkbox-label"},ys={key:0,class:"required"};function vs(t,n,e,o,a,r){var s;const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(this.$attrs.class),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onKeypress:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]))}),[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,checked:a.checked,disabled:e.disabled,required:e.required,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f))},null,8,fs),i.createElementVNode("div",hs,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",ps,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",ms,[i.withDirectives(i.createVNode(d,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(d,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",gs,[e.required?(i.openBlock(),i.createElementBlock("span",ys,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,us)],10,cs)}const _r=_e(ds,[["render",vs]]),p1="",bs={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>ht()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("input",this.checked)}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:jt}},_s=["aria-checked","tabindex"],$s={class:"toggle-wrapper",ref:"wrapper"},ws={class:"toggle",ref:"toggle"},ks=["name","checked","id","disabled"],Cs=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Os={key:0,class:"toggle-label"};function Es(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createTextVNode(" {} "),i.createElementVNode("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"]),["enter"]))]},[i.createElementVNode("div",$s,[i.createElementVNode("div",ws,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...f)=>r.onChange&&r.onChange(...f)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,ks),Cs,i.createVNode(d,{class:"checked-icon",name:"checkmark"}),i.createVNode(d,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",Os,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,_s)],64)}const Di=_e(bs,[["render",Es]]);function Ii(t){return t.scrollHeight>t.clientHeight}const m1="",Ss={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{Ii(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===ki&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===Ha&&(this.option.isChildrenVisible=!0),t.keyCode===Fa&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?Di:_r},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:mr,IbIconButton:ut},directives:{Tooltip:yr}},Ts=["aria-selected","aria-label","id"],Ns={key:0,class:"option-label"},xs={key:1,class:"option-label"},As=["innerHTML"],Ds=["innerHTML"],Is={key:2,class:"option-label"};function Ms(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=i.resolveComponent("select-option"),h=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...u)=>r.onKeydown&&r.onKeydown(...u),["self"])),onFocus:n[4]||(n[4]=u=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(d,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",xs,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Ns,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(d,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(u=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,Ds)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,As))],64)):(i.openBlock(),i.createElementBlock("span",Is,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,u=>i.withDirectives((i.openBlock(),i.createBlock(f,{key:u.value,option:u,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=l=>t.$emit("toggle-bookmark",l)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,u.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Ts)),[[p,a.showTooltip?e.option.title:""]])])}const Ps=_e(Ss,[["render",Ms]]);var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mi={exports:{}};/*!***************************************************
|
|
22
22
|
* mark.js v8.11.1
|
|
23
23
|
* https://markjs.io/
|
|
24
24
|
* Copyright (c) 2014–2018, Julian Kühnel
|
|
25
25
|
* Released under the MIT license https://git.io/vwTVl
|
|
26
|
-
*****************************************************/(function(t,n){(function(e,o){t.exports=o()})(qe,function(){class e{constructor(r,d=!0,s=[],f=5e3){this.ctx=r,this.iframes=d,this.exclude=s,this.iframesTimeout=f}static matches(r,d){const s=typeof d=="string"?[d]:d,f=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(f){let h=!1;return s.every(p=>!f.call(r,p)||(h=!0,!1)),h}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(f=>f.contains(d)).length>0;r.indexOf(d)!==-1||s||r.push(d)}),r}getIframeContents(r,d,s=()=>{}){let f;try{const h=r.contentWindow;if(f=h.document,!h||!f)throw new Error("iframe inaccessible")}catch{s()}f&&d(f)}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 f=!1,h=null;const p=()=>{if(!f){f=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,d,s))}catch{s()}}};r.addEventListener("load",p),h=setTimeout(p,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,f=>{s++,this.waitForIframes(f.querySelector("html"),()=>{--s||d()})},f=>{f||d()})}forEachIframe(r,d,s,f=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,u=0;h=Array.prototype.slice.call(h);const l=()=>{--p<=0&&f(u)};p||l(),h.forEach(c=>{e.matches(c,this.exclude)?l():this.onIframeReady(c,_=>{d(c)&&(u++,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 f=r.compareDocumentPosition(s),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(f&h&&(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,f){let h=!1,p=!1;return f.forEach((u,l)=>{u.val===s&&(h=l,p=u.handled)}),this.compareNodeIframe(r,d,s)?(h!==!1||p?h===!1||p||(f[h].handled=!0):f.push({val:s,handled:!0}),!0):(h===!1&&f.push({val:s,handled:!1}),!1)}handleOpenIframes(r,d,s,f){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(d,s,f)})})}iterateThroughNodes(r,d,s,f,h){const p=this.createIterator(d,r,f);let u,l,c=[],_=[],v=()=>({prevNode:l,node:u}=this.getIteratorNode(p),u);for(;v();)this.iframes&&this.forEachIframe(d,b=>this.checkIframeFilter(u,l,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),f)}),_.push(u);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(c,r,s,f),h()}forEachNode(r,d,s,f=()=>{}){const h=this.getContexts();let p=h.length;p||f(),h.forEach(u=>{const l=()=>{this.iterateThroughNodes(r,u,d,s,()=>{--p<=0&&f()})};this.iframes?this.waitForIframes(u,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",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in d)if(d.hasOwnProperty(h)){const p=d[h],u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);u!==""&&l!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(u)}|${this.escapeStr(l)})`,`gm${s}`),f+`(${this.processSynomyms(u)}|${this.processSynomyms(l)})`+f))}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,f)=>{let h=f.charAt(s+1);return/[(|)\\]/.test(h)||h===""?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 f=[];return r.split("").forEach(h=>{s.every(p=>{if(p.indexOf(h)!==-1){if(f.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${d}`),`[${p}]`),f.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,f=typeof s=="string"?s:s.value,h=typeof s=="string"?[]:s.limiters,p="";switch(h.forEach(u=>{p+=`|${this.escapeStr(u)}`}),f){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(d))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let d=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(f=>{f.trim()&&d.indexOf(f)===-1&&d.push(f)}):s.trim()&&d.indexOf(s)===-1&&d.push(s)}),{keywords:d.sort((s,f)=>f.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((f,h)=>f.start-h.start).forEach(f=>{let{start:h,end:p,valid:u}=this.callNoMatchOnInvalidRanges(f,s);u&&(f.start=h,f.length=p-h,d.push(f),s=p)}),d}callNoMatchOnInvalidRanges(r,d){let s,f,h=!1;return r&&r.start!==void 0?(f=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&f-d>0&&f-s>0?h=!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:f,valid:h}}checkWhitespaceRanges(r,d,s){let f,h=!0,p=s.length,u=d-p,l=parseInt(r.start,10)-u;return(f=(l=l>p?p:l)+parseInt(r.length,10))>p&&(f=p,this.log(`End range automatically set to the max value of ${p}`)),l<0||f-l<0||l>p||f>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(l,f).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:l,end:f,valid:h}}getTextNodes(r){let d="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,f=>{s.push({start:d.length,end:(d+=f.textContent).length,node:f})},f=>this.matchesExclude(f.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 f=this.opt.element?this.opt.element:"mark",h=r.splitText(d),p=h.splitText(s-d);let u=document.createElement(f);return u.setAttribute("data-markjs","true"),this.opt.className&&u.setAttribute("class",this.opt.className),u.textContent=h.textContent,h.parentNode.replaceChild(u,h),p}wrapRangeInMappedTextNode(r,d,s,f,h){r.nodes.every((p,u)=>{const l=r.nodes[u+1];if(l===void 0||l.start>d){if(!f(p.node))return!1;const c=d-p.start,_=(s>p.end?p.end:s)-p.start,v=r.value.substr(0,p.start),b=r.value.substr(_+p.start);if(p.node=this.wrapRangeInTextNode(p.node,c,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=u&&(r.nodes[y].start>0&&y!==u&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,h(p.node.previousSibling,p.start),!(s>p.end))return!1;d=p.end}return!0})}wrapMatches(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{u.nodes.forEach(l=>{let c;for(l=l.node;(c=r.exec(l.textContent))!==null&&c[p]!=="";){if(!s(c[p],l))continue;let _=c.index;if(p!==0)for(let v=1;v<p;v++)_+=c[v].length;l=this.wrapRangeInTextNode(l,_,_+c[p].length),f(l.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{let l;for(;(l=r.exec(u.value))!==null&&l[p]!=="";){let c=l.index;if(p!==0)for(let v=1;v<p;v++)c+=l[v].length;const _=c+l[p].length;this.wrapRangeInMappedTextNode(u,c,_,v=>s(l[p],v),(v,b)=>{r.lastIndex=b,f(v)})}h()})}wrapRangeFromIndex(r,d,s,f){this.getTextNodes(h=>{const p=h.value.length;r.forEach((u,l)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(u,p,h.value);v&&this.wrapRangeInMappedTextNode(h,c,_,b=>d(b,u,h.value.substring(c,_),l),b=>{s(b,u)})}),f()})}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,f="wrapMatches";const h=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),this[f](r,this.opt.ignoreGroups,(p,u)=>this.opt.filter(u,p,s),h,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,d){this.opt=d;let s=0,f="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),u=this.opt.caseSensitive?"":"i",l=c=>{let _=new RegExp(this.createRegExp(c),`gm${u}`),v=0;this.log(`Searching with expression "${_}"`),this[f](_,1,(b,g)=>this.opt.filter(g,c,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),h[p-1]===c?this.opt.done(s):l(h[h.indexOf(c)+1])})};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),p===0?this.opt.done(s):l(h[0])}markRanges(r,d){this.opt=d;let s=0,f=this.checkRanges(r);f&&f.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(f)),this.wrapRangeFromIndex(f,(h,p,u,l)=>this.opt.filter(h,p,u,l),(h,p)=>{s++,this.opt.each(h,p)},()=>{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 f=e.matches(s,d),h=this.matchesExclude(s);return!f||h?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}})})(Mi);var Bs=Mi.exports;const Ls=jn(Bs),g1="",Rs={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],props:{classList:[String,Array],placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return ht()}},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 ht()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","update:modelValue"],watch:{value(t){this.val=t,this.setPreparedValues()},modelValue(t){this.val=t,this.actualOptions=[],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 Ls(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,n,e,o,a,r,d,s;return this.defaultFilter=f=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,f,h),h&&this.marker.mark(h)},{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:[],isOpen:!1,allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(n=this.LANG_COMPONENTS)==null?void 0:n.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(d=this.LANG_COMPONENTS)==null?void 0:d.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),...this.strings},dependencyValue:null}},methods:{onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},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){let n=t||this.options;return this.alphabetSort&&(n=n.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(n).then(([e,o])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.actualOptions=[],this.allOptionsIsChecked=!1,this.selected=[],this.$emit("update:modelValue",null)},clearValue(){console.log("test"),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(([f,h])=>{d.children=f,Object.assign(e,h),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&&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("update:modelValue",Object.keys(this.selected)),this.$emit("input",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("update:modelValue",Object.keys(this.selected)),this.$emit("input",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)},onClose(){this.isOpen=!1,this.filter("",this.actualOptions),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.$emit("blur")}},computed:{hasTrigger(){return!!this.$slots.trigger},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},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:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln,IbInput:br,List:mr,"select-option":Ps},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},js={key:0,class:"tree-select-empty"},Vs={key:1,class:"tree-select-default-empty tree-select-empty"};function qs(t,n,e,o,a,r){const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),u=i.resolveComponent("ib-input"),l=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0,class:"tree-select-error"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["tree-select",e.classList])},[i.createVNode(l,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:e.vertical,ref:"dropdown",onClose:r.onClose,onOpen:n[11]||(n[11]=c=>a.isOpen=!0)},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle(r.treeDropPos)},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=c=>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[7]||(n[7]=c=>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,c=>(i.openBlock(),i.createBlock(h,{key:"bookmark"+c.id,option:c,"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(u,{key:3,class:"tree-search",ref:"search","show-icon":!0,value:a.filterString,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=c=>r.filter(c,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",js,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",Vs,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(h,{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&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(h,{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,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=c=>a.focusedOptionId=c)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,c=>i.renderSlot(t.$slots,a.actualName,{key:e.name+c.value,option:c,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(h,{option:c,"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,onOnFocus:n[10]||(n[10]=_=>a.focusedOptionId=_)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[i.vShow,c.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:c})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":c,"has-clear-button":!e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox",onClick:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"])),onBlur:n[1]||(n[1]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[2]||(n[2]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[3]||(n[3]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[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))],42,["aria-label","aria-activedescendant"]),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:0,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),onKeypress:n[4]||(n[4]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[5]||(n[5]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:i.withKeys(i.withModifiers(r.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(s,{name:c?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose"])],2)],64)}const Pi=_e(Rs,[["render",qs]]),y1="",Fs={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:dn,IbSelect:Pi}},Hs={class:"report-limit-selector"};function zs(t,n,e,o,a,r){const d=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",Hs,[i.createVNode(d,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{classList:"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 Bi=_e(Fs,[["render",zs]]),v1="",Us={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:br,IbLabel:dn,IbLimitSelector:Bi,IbTooltip:jt}},Ks={class:"report-controls"},Gs={class:"repot-pagination"},Ys={class:"pagination-input"},Ws={class:"row-count"},Zs={class:"pagination-wrapper"},Js=["onClick"];function Xs(t,n,e,o,a,r){const d=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),f=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Ks,[i.createVNode(d,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",Gs,[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",Ys,[i.createVNode(f,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Ws,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(u,{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(h,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",Zs,[(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,Js)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(u,{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(h,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Qs=_e(Us,[["render",Xs]]),cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},b1="",ed={props:{states:{type:String,default:cn.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===cn.SUCCESS?"checkmark-circle":this.states===cn.FAILED||this.states===cn.CANCELING||this.states===cn.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Li=t=>(i.pushScopeId("data-v-b64f2af0"),t=t(),i.popScopeId(),t),td={class:"ib-progress-bar-wrapper"},nd=["aria-valuenow"],rd=[Li(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],id=Li(()=>i.createElementVNode("div",null,null,-1));function od(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",td,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},rd,12,nd),id],2),i.withDirectives(i.createVNode(d,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const ad=_e(ed,[["render",od],["__scopeId","data-v-b64f2af0"]]),ld={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
26
|
+
*****************************************************/(function(t,n){(function(e,o){t.exports=o()})(qe,function(){class e{constructor(r,d=!0,s=[],f=5e3){this.ctx=r,this.iframes=d,this.exclude=s,this.iframesTimeout=f}static matches(r,d){const s=typeof d=="string"?[d]:d,f=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(f){let h=!1;return s.every(p=>!f.call(r,p)||(h=!0,!1)),h}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(f=>f.contains(d)).length>0;r.indexOf(d)!==-1||s||r.push(d)}),r}getIframeContents(r,d,s=()=>{}){let f;try{const h=r.contentWindow;if(f=h.document,!h||!f)throw new Error("iframe inaccessible")}catch{s()}f&&d(f)}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 f=!1,h=null;const p=()=>{if(!f){f=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,d,s))}catch{s()}}};r.addEventListener("load",p),h=setTimeout(p,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,f=>{s++,this.waitForIframes(f.querySelector("html"),()=>{--s||d()})},f=>{f||d()})}forEachIframe(r,d,s,f=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,u=0;h=Array.prototype.slice.call(h);const l=()=>{--p<=0&&f(u)};p||l(),h.forEach(c=>{e.matches(c,this.exclude)?l():this.onIframeReady(c,_=>{d(c)&&(u++,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 f=r.compareDocumentPosition(s),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(f&h&&(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,f){let h=!1,p=!1;return f.forEach((u,l)=>{u.val===s&&(h=l,p=u.handled)}),this.compareNodeIframe(r,d,s)?(h!==!1||p?h===!1||p||(f[h].handled=!0):f.push({val:s,handled:!0}),!0):(h===!1&&f.push({val:s,handled:!1}),!1)}handleOpenIframes(r,d,s,f){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(d,s,f)})})}iterateThroughNodes(r,d,s,f,h){const p=this.createIterator(d,r,f);let u,l,c=[],_=[],v=()=>({prevNode:l,node:u}=this.getIteratorNode(p),u);for(;v();)this.iframes&&this.forEachIframe(d,b=>this.checkIframeFilter(u,l,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),f)}),_.push(u);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(c,r,s,f),h()}forEachNode(r,d,s,f=()=>{}){const h=this.getContexts();let p=h.length;p||f(),h.forEach(u=>{const l=()=>{this.iterateThroughNodes(r,u,d,s,()=>{--p<=0&&f()})};this.iframes?this.waitForIframes(u,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",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in d)if(d.hasOwnProperty(h)){const p=d[h],u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);u!==""&&l!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(u)}|${this.escapeStr(l)})`,`gm${s}`),f+`(${this.processSynomyms(u)}|${this.processSynomyms(l)})`+f))}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,f)=>{let h=f.charAt(s+1);return/[(|)\\]/.test(h)||h===""?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 f=[];return r.split("").forEach(h=>{s.every(p=>{if(p.indexOf(h)!==-1){if(f.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${d}`),`[${p}]`),f.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,f=typeof s=="string"?s:s.value,h=typeof s=="string"?[]:s.limiters,p="";switch(h.forEach(u=>{p+=`|${this.escapeStr(u)}`}),f){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(d))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let d=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(f=>{f.trim()&&d.indexOf(f)===-1&&d.push(f)}):s.trim()&&d.indexOf(s)===-1&&d.push(s)}),{keywords:d.sort((s,f)=>f.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((f,h)=>f.start-h.start).forEach(f=>{let{start:h,end:p,valid:u}=this.callNoMatchOnInvalidRanges(f,s);u&&(f.start=h,f.length=p-h,d.push(f),s=p)}),d}callNoMatchOnInvalidRanges(r,d){let s,f,h=!1;return r&&r.start!==void 0?(f=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&f-d>0&&f-s>0?h=!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:f,valid:h}}checkWhitespaceRanges(r,d,s){let f,h=!0,p=s.length,u=d-p,l=parseInt(r.start,10)-u;return(f=(l=l>p?p:l)+parseInt(r.length,10))>p&&(f=p,this.log(`End range automatically set to the max value of ${p}`)),l<0||f-l<0||l>p||f>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(l,f).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:l,end:f,valid:h}}getTextNodes(r){let d="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,f=>{s.push({start:d.length,end:(d+=f.textContent).length,node:f})},f=>this.matchesExclude(f.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 f=this.opt.element?this.opt.element:"mark",h=r.splitText(d),p=h.splitText(s-d);let u=document.createElement(f);return u.setAttribute("data-markjs","true"),this.opt.className&&u.setAttribute("class",this.opt.className),u.textContent=h.textContent,h.parentNode.replaceChild(u,h),p}wrapRangeInMappedTextNode(r,d,s,f,h){r.nodes.every((p,u)=>{const l=r.nodes[u+1];if(l===void 0||l.start>d){if(!f(p.node))return!1;const c=d-p.start,_=(s>p.end?p.end:s)-p.start,v=r.value.substr(0,p.start),b=r.value.substr(_+p.start);if(p.node=this.wrapRangeInTextNode(p.node,c,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=u&&(r.nodes[y].start>0&&y!==u&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,h(p.node.previousSibling,p.start),!(s>p.end))return!1;d=p.end}return!0})}wrapMatches(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{u.nodes.forEach(l=>{let c;for(l=l.node;(c=r.exec(l.textContent))!==null&&c[p]!=="";){if(!s(c[p],l))continue;let _=c.index;if(p!==0)for(let v=1;v<p;v++)_+=c[v].length;l=this.wrapRangeInTextNode(l,_,_+c[p].length),f(l.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{let l;for(;(l=r.exec(u.value))!==null&&l[p]!=="";){let c=l.index;if(p!==0)for(let v=1;v<p;v++)c+=l[v].length;const _=c+l[p].length;this.wrapRangeInMappedTextNode(u,c,_,v=>s(l[p],v),(v,b)=>{r.lastIndex=b,f(v)})}h()})}wrapRangeFromIndex(r,d,s,f){this.getTextNodes(h=>{const p=h.value.length;r.forEach((u,l)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(u,p,h.value);v&&this.wrapRangeInMappedTextNode(h,c,_,b=>d(b,u,h.value.substring(c,_),l),b=>{s(b,u)})}),f()})}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,f="wrapMatches";const h=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),this[f](r,this.opt.ignoreGroups,(p,u)=>this.opt.filter(u,p,s),h,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,d){this.opt=d;let s=0,f="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),u=this.opt.caseSensitive?"":"i",l=c=>{let _=new RegExp(this.createRegExp(c),`gm${u}`),v=0;this.log(`Searching with expression "${_}"`),this[f](_,1,(b,g)=>this.opt.filter(g,c,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),h[p-1]===c?this.opt.done(s):l(h[h.indexOf(c)+1])})};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),p===0?this.opt.done(s):l(h[0])}markRanges(r,d){this.opt=d;let s=0,f=this.checkRanges(r);f&&f.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(f)),this.wrapRangeFromIndex(f,(h,p,u,l)=>this.opt.filter(h,p,u,l),(h,p)=>{s++,this.opt.each(h,p)},()=>{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 f=e.matches(s,d),h=this.matchesExclude(s);return!f||h?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}})})(Mi);var Bs=Mi.exports;const Ls=jn(Bs),g1="",Rs={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],props:{classList:[String,Array],placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return ht()}},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 ht()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},vertical:{type:String},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","update:modelValue"],watch:{value(t){this.val=t,this.setPreparedValues()},modelValue(t){this.val=t,this.actualOptions=[],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 Ls(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,n,e,o,a,r,d,s;return this.defaultFilter=f=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,f,h),h&&this.marker.mark(h)},{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:[],isOpen:!1,allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(n=this.LANG_COMPONENTS)==null?void 0:n.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(d=this.LANG_COMPONENTS)==null?void 0:d.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),...this.strings},dependencyValue:null}},methods:{onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},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){let n=t||this.options;return this.alphabetSort&&(n=n.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(n).then(([e,o])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.actualOptions=[],this.allOptionsIsChecked=!1,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(([f,h])=>{d.children=f,Object.assign(e,h),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&&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("update:modelValue",Object.keys(this.selected)),this.$emit("input",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("update:modelValue",Object.keys(this.selected)),this.$emit("input",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)},onClose(){this.isOpen=!1,this.filter("",this.actualOptions),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.$emit("blur")}},computed:{hasTrigger(){return!!this.$slots.trigger},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},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:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln,IbInput:br,List:mr,"select-option":Ps},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},js={key:0,class:"tree-select-empty"},Vs={key:1,class:"tree-select-default-empty tree-select-empty"};function qs(t,n,e,o,a,r){const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),u=i.resolveComponent("ib-input"),l=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0,class:"tree-select-error"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["tree-select",e.classList])},[i.createVNode(l,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:e.vertical,ref:"dropdown",onClose:r.onClose,onOpen:n[11]||(n[11]=c=>a.isOpen=!0)},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle(r.treeDropPos)},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=c=>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[7]||(n[7]=c=>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,c=>(i.openBlock(),i.createBlock(h,{key:"bookmark"+c.id,option:c,"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(u,{key:3,class:"tree-search",ref:"search","show-icon":!0,value:a.filterString,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=c=>r.filter(c,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",js,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",Vs,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(h,{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&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(h,{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,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=c=>a.focusedOptionId=c)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,c=>i.renderSlot(t.$slots,a.actualName,{key:e.name+c.value,option:c,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(h,{option:c,"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,onOnFocus:n[10]||(n[10]=_=>a.focusedOptionId=_)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[i.vShow,c.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:c})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":c,"has-clear-button":!e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox",onClick:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"])),onBlur:n[1]||(n[1]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[2]||(n[2]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[3]||(n[3]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[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))],42,["aria-label","aria-activedescendant"]),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:0,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),onKeypress:n[4]||(n[4]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[5]||(n[5]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:i.withKeys(i.withModifiers(r.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(s,{name:c?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose"])],2)],64)}const Pi=_e(Rs,[["render",qs]]),y1="",Fs={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:dn,IbSelect:Pi}},Hs={class:"report-limit-selector"};function zs(t,n,e,o,a,r){const d=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",Hs,[i.createVNode(d,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{classList:"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 Bi=_e(Fs,[["render",zs]]),v1="",Us={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:br,IbLabel:dn,IbLimitSelector:Bi,IbTooltip:jt}},Ks={class:"report-controls"},Gs={class:"repot-pagination"},Ys={class:"pagination-input"},Ws={class:"row-count"},Zs={class:"pagination-wrapper"},Js=["onClick"];function Xs(t,n,e,o,a,r){const d=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),f=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Ks,[i.createVNode(d,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",Gs,[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",Ys,[i.createVNode(f,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Ws,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(u,{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(h,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",Zs,[(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,Js)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(u,{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(h,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const Qs=_e(Us,[["render",Xs]]),cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},b1="",ed={props:{states:{type:String,default:cn.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===cn.SUCCESS?"checkmark-circle":this.states===cn.FAILED||this.states===cn.CANCELING||this.states===cn.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Li=t=>(i.pushScopeId("data-v-b64f2af0"),t=t(),i.popScopeId(),t),td={class:"ib-progress-bar-wrapper"},nd=["aria-valuenow"],rd=[Li(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],id=Li(()=>i.createElementVNode("div",null,null,-1));function od(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",td,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},rd,12,nd),id],2),i.withDirectives(i.createVNode(d,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const ad=_e(ed,[["render",od],["__scopeId","data-v-b64f2af0"]]),ld={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
27
27
|
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
28
28
|
</svg>
|
|
29
29
|
`,success:`
|
package/package.json
CHANGED
|
@@ -280,15 +280,15 @@ export default {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
if (
|
|
284
|
-
return
|
|
283
|
+
if (option.checked) {
|
|
284
|
+
return true;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
if (option.isIndeterminate) {
|
|
288
288
|
return null; //null will trigger indeterminate stage
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
return
|
|
291
|
+
return false;
|
|
292
292
|
},
|
|
293
293
|
},
|
|
294
294
|
computed: {
|
|
@@ -296,28 +296,6 @@ export default {
|
|
|
296
296
|
if (this.isMultiple && this.isToggle) return Toggle;
|
|
297
297
|
else return Checkbox;
|
|
298
298
|
},
|
|
299
|
-
// isChecked() {
|
|
300
|
-
// if(this.hasChildren) {
|
|
301
|
-
// if (!this.childrenSelectedCount) {
|
|
302
|
-
// return false;
|
|
303
|
-
// } else if (
|
|
304
|
-
// this.childrenSelectedCount > 0 &&
|
|
305
|
-
// this.countOfAllChildren > this.childrenSelectedCount
|
|
306
|
-
// ) {
|
|
307
|
-
// return null; //null will trigger indeterminate stage
|
|
308
|
-
// }
|
|
309
|
-
// }
|
|
310
|
-
|
|
311
|
-
// if (!this.option.checked) {
|
|
312
|
-
// return false;
|
|
313
|
-
// }
|
|
314
|
-
|
|
315
|
-
// if (this.option.isIndeterminate) {
|
|
316
|
-
// return null; //null will trigger indeterminate stage
|
|
317
|
-
// }
|
|
318
|
-
|
|
319
|
-
// return true;
|
|
320
|
-
// },
|
|
321
299
|
hasChildren() {
|
|
322
300
|
return Boolean(this.option.children && this.option.children.length);
|
|
323
301
|
},
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
</span>
|
|
47
47
|
</template>
|
|
48
48
|
</div>
|
|
49
|
-
|
|
50
49
|
<ib-icon-button
|
|
51
50
|
v-if="showClearButton"
|
|
52
51
|
kind="ghost"
|
|
@@ -661,8 +660,6 @@ export default {
|
|
|
661
660
|
this.$emit("update:modelValue", null);
|
|
662
661
|
},
|
|
663
662
|
clearValue() {
|
|
664
|
-
console.log('test')
|
|
665
|
-
|
|
666
663
|
this.clear();
|
|
667
664
|
this.setPreparedValues();
|
|
668
665
|
},
|
|
@@ -742,29 +739,29 @@ export default {
|
|
|
742
739
|
let visibleOptionsCount = 0;
|
|
743
740
|
|
|
744
741
|
options.forEach(option => {
|
|
745
|
-
|
|
742
|
+
let isVisible = option.initiallyVisible && option.title && option.title.toString().toLowerCase().includes(filterString) && !this.actualBookmarkedOptions[option.id];
|
|
746
743
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
744
|
+
if (option.children && option.children.length) {
|
|
745
|
+
let visibleChildrenCount = this.filterFunc(option.children, filterString);
|
|
746
|
+
visibleOptionsCount += visibleChildrenCount;
|
|
750
747
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
748
|
+
if (visibleChildrenCount) {
|
|
749
|
+
option.isChildrenVisible = !!filterString || Boolean(Object.keys(this.actualBookmarkedOptions).length);
|
|
750
|
+
option.isDisabled = visibleChildrenCount < option.children.length && !this.isBookmarkable;
|
|
751
|
+
}
|
|
755
752
|
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
753
|
+
if (!isVisible) {
|
|
754
|
+
isVisible = !!visibleChildrenCount;
|
|
755
|
+
} else if (!visibleChildrenCount) {
|
|
756
|
+
isVisible = false;
|
|
761
757
|
}
|
|
758
|
+
}
|
|
762
759
|
|
|
763
|
-
|
|
760
|
+
option.visible = isVisible;
|
|
764
761
|
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
762
|
+
if (isVisible) {
|
|
763
|
+
visibleOptionsCount++;
|
|
764
|
+
}
|
|
768
765
|
});
|
|
769
766
|
return visibleOptionsCount;
|
|
770
767
|
},
|