@useinsider/guido 3.17.0-beta.3e9d6e7 → 3.17.0-beta.3ff6ea0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +0 -1
  2. package/dist/@types/config/schemas.js +6 -12
  3. package/dist/components/Guido.vue.js +6 -6
  4. package/dist/components/Guido.vue2.js +61 -63
  5. package/dist/composables/useCustomInterfaceAppearance.js +16 -19
  6. package/dist/composables/useRecommendation.js +34 -41
  7. package/dist/composables/useStripo.js +14 -14
  8. package/dist/config/migrator/index.js +9 -8
  9. package/dist/config/migrator/recommendation/compositionMapper.js +20 -20
  10. package/dist/config/migrator/recommendation/extractors.js +29 -24
  11. package/dist/config/migrator/recommendation/htmlBuilder.js +116 -130
  12. package/dist/config/migrator/recommendationMigrator.js +16 -15
  13. package/dist/config/migrator/recommendationTitleMigrator.js +119 -0
  14. package/dist/enums/date.js +3 -4
  15. package/dist/enums/extensions/recommendationBlock.js +23 -25
  16. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +1 -1
  17. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  18. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +20 -21
  19. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +34 -28
  20. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +306 -238
  21. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +95 -122
  22. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -0
  23. package/dist/extensions/Blocks/Recommendation/controls/title/index.js +44 -0
  24. package/dist/extensions/Blocks/Recommendation/extension.js +31 -29
  25. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +23 -4
  26. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +53 -199
  27. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +3 -3
  28. package/dist/extensions/Blocks/Recommendation/templates/titleRows.js +33 -0
  29. package/dist/extensions/Blocks/Recommendation/templates/utils.js +85 -107
  30. package/dist/extensions/Blocks/common-control.js +19 -22
  31. package/dist/guido.css +1 -1
  32. package/dist/services/recommendationApi.js +28 -77
  33. package/dist/src/@types/config/schemas.d.ts +0 -12
  34. package/dist/src/composables/useConfig.d.ts +0 -2
  35. package/dist/src/composables/useRecommendation.d.ts +0 -1
  36. package/dist/src/config/migrator/recommendation/extractors.d.ts +8 -0
  37. package/dist/src/config/migrator/recommendationTitleMigrator.d.ts +5 -0
  38. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -2
  39. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +2 -1
  40. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +7 -0
  41. package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +1 -0
  42. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
  43. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +10 -0
  44. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +10 -0
  45. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +1 -0
  46. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +3 -12
  47. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +1 -0
  48. package/dist/src/extensions/Blocks/Recommendation/controls/title/index.d.ts +86 -0
  49. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +10 -210
  50. package/dist/src/extensions/Blocks/Recommendation/templates/titleRows.d.ts +13 -0
  51. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +0 -6
  52. package/dist/src/extensions/Blocks/common-control.d.ts +1 -4
  53. package/dist/src/services/recommendationApi.d.ts +1 -4
  54. package/dist/src/stores/config.d.ts +0 -18
  55. package/dist/static/styles/customEditorStyle.css.js +3 -1
  56. package/dist/utils/dateUtil.js +10 -23
  57. package/dist/utils/templatePreparation.js +34 -37
  58. package/package.json +1 -2
  59. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +0 -18
  60. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +0 -67
  61. package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue.js +0 -20
  62. package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue2.js +0 -55
  63. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +0 -132
  64. package/dist/node_modules/@useinsider/design-system-organisms/dist/index-Dc9AygoZ.js +0 -526
  65. package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +0 -9345
  66. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +0 -174
  67. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +0 -381
  68. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +0 -236
  69. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +0 -70
  70. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +0 -350
  71. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +0 -371
  72. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +0 -152
  73. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +0 -141
  74. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +0 -1047
  75. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +0 -96050
  76. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +0 -2042
  77. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +0 -166
  78. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +0 -1098
  79. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +0 -55
  80. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +0 -265
  81. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +0 -184
  82. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +0 -50
  83. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +0 -453
  84. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +0 -145
  85. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +0 -176
  86. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +0 -266
  87. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +0 -114
  88. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +0 -200
  89. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +0 -451
  90. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +0 -49
  91. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +0 -119
  92. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +0 -4309
  93. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +0 -129
  94. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +0 -503
  95. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +0 -253
  96. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +0 -107
  97. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +0 -134
  98. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +0 -464
  99. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +0 -28
  100. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +0 -23
  101. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +0 -29
  102. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +0 -109
  103. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +0 -2339
  104. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +0 -16
  105. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +0 -17
  106. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +0 -188
  107. package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +0 -3
  108. package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBox.vue.d.ts +0 -24
  109. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -37
  110. package/dist/src/mock/api/recommendation-strategies.d.ts +0 -43
  111. package/dist/static/styles/components/recommendation-strategy.css.js +0 -171
@@ -1,2339 +0,0 @@
1
- import { i as g, j as z, m as ee, s as oe, n as Fo, b as qo, p as Uo } from "./helpers.CgHNyjAJ.js";
2
- import { a as Xo, c as J } from "./_commonjsHelpers.BItOPCY9.js";
3
- import { c as Go } from "./clickOutside.qP9M0QCm.js";
4
- import { n as et } from "./_plugin-vue2_normalizer.WQT2Fc8L.js";
5
- import { InIcons as xe } from "../InIcons.js";
6
- import { InCheckBox as fe } from "../InCheckBox.js";
7
- import { InBox as Ko } from "../InBox.js";
8
- import { InButtonV2 as Qo } from "../InButtonV2.js";
9
- import { InLoading as Yo } from "../InLoading.js";
10
- import { InTextInput as Jo } from "../InTextInput.js";
11
- import { InInfoBox as Zo } from "../InInfoBox.js";
12
- import { l as tn } from "./localLocalesMixin.DYMhydo2.js";
13
- import { ref as xt } from "vue";
14
- /* empty css */
15
- var ft = { exports: {} }, ne;
16
- function en() {
17
- return ne || (ne = 1, (function(t, o) {
18
- var i = 200, s = "__lodash_hash_undefined__", l = 9007199254740991, a = "[object Arguments]", p = "[object Array]", u = "[object Boolean]", _ = "[object Date]", c = "[object Error]", h = "[object Function]", x = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", w = "[object Object]", b = "[object Promise]", B = "[object RegExp]", $ = "[object Set]", F = "[object String]", wt = "[object Symbol]", nt = "[object WeakMap]", bt = "[object ArrayBuffer]", q = "[object DataView]", gt = "[object Float32Array]", yt = "[object Float64Array]", Ct = "[object Int8Array]", St = "[object Int16Array]", Ot = "[object Int32Array]", Bt = "[object Uint8Array]", $t = "[object Uint8ClampedArray]", Pt = "[object Uint16Array]", Tt = "[object Uint32Array]", we = /[\\^$.*+?()[\]{}|]/g, be = /\w*$/, ge = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, v = {};
19
- v[a] = v[p] = v[bt] = v[q] = v[u] = v[_] = v[gt] = v[yt] = v[Ct] = v[St] = v[Ot] = v[f] = v[m] = v[w] = v[B] = v[$] = v[F] = v[wt] = v[Bt] = v[$t] = v[Pt] = v[Tt] = !0, v[c] = v[h] = v[nt] = !1;
20
- var Ce = typeof J == "object" && J && J.Object === Object && J, Se = typeof self == "object" && self && self.Object === Object && self, T = Ce || Se || Function("return this")(), Dt = o && !o.nodeType && o, It = Dt && !0 && t && !t.nodeType && t, Oe = It && It.exports === Dt;
21
- function Be(e, n) {
22
- return e.set(n[0], n[1]), e;
23
- }
24
- function $e(e, n) {
25
- return e.add(n), e;
26
- }
27
- function Pe(e, n) {
28
- for (var r = -1, d = e ? e.length : 0; ++r < d && n(e[r], r, e) !== !1; )
29
- ;
30
- return e;
31
- }
32
- function Te(e, n) {
33
- for (var r = -1, d = n.length, C = e.length; ++r < d; )
34
- e[C + r] = n[r];
35
- return e;
36
- }
37
- function Vt(e, n, r, d) {
38
- for (var C = -1, S = e ? e.length : 0; ++C < S; )
39
- r = n(r, e[C], C, e);
40
- return r;
41
- }
42
- function De(e, n) {
43
- for (var r = -1, d = Array(e); ++r < e; )
44
- d[r] = n(r);
45
- return d;
46
- }
47
- function Ie(e, n) {
48
- return e == null ? void 0 : e[n];
49
- }
50
- function kt(e) {
51
- var n = !1;
52
- if (e != null && typeof e.toString != "function")
53
- try {
54
- n = !!(e + "");
55
- } catch {
56
- }
57
- return n;
58
- }
59
- function At(e) {
60
- var n = -1, r = Array(e.size);
61
- return e.forEach(function(d, C) {
62
- r[++n] = [C, d];
63
- }), r;
64
- }
65
- function it(e, n) {
66
- return function(r) {
67
- return e(n(r));
68
- };
69
- }
70
- function Lt(e) {
71
- var n = -1, r = Array(e.size);
72
- return e.forEach(function(d) {
73
- r[++n] = d;
74
- }), r;
75
- }
76
- var Ve = Array.prototype, ke = Function.prototype, U = Object.prototype, rt = T["__core-js_shared__"], Et = (function() {
77
- var e = /[^.]+$/.exec(rt && rt.keys && rt.keys.IE_PROTO || "");
78
- return e ? "Symbol(src)_1." + e : "";
79
- })(), jt = ke.toString, V = U.hasOwnProperty, X = U.toString, Ae = RegExp(
80
- "^" + jt.call(V).replace(we, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
81
- ), Mt = Oe ? T.Buffer : void 0, Nt = T.Symbol, Wt = T.Uint8Array, Le = it(Object.getPrototypeOf, Object), Ee = Object.create, je = U.propertyIsEnumerable, Me = Ve.splice, Rt = Object.getOwnPropertySymbols, Ne = Mt ? Mt.isBuffer : void 0, We = it(Object.keys, Object), st = N(T, "DataView"), R = N(T, "Map"), lt = N(T, "Promise"), at = N(T, "Set"), dt = N(T, "WeakMap"), H = N(Object, "create"), Re = E(st), He = E(R), ze = E(lt), Fe = E(at), qe = E(dt), Ht = Nt ? Nt.prototype : void 0, zt = Ht ? Ht.valueOf : void 0;
82
- function A(e) {
83
- var n = -1, r = e ? e.length : 0;
84
- for (this.clear(); ++n < r; ) {
85
- var d = e[n];
86
- this.set(d[0], d[1]);
87
- }
88
- }
89
- function Ue() {
90
- this.__data__ = H ? H(null) : {};
91
- }
92
- function Xe(e) {
93
- return this.has(e) && delete this.__data__[e];
94
- }
95
- function Ge(e) {
96
- var n = this.__data__;
97
- if (H) {
98
- var r = n[e];
99
- return r === s ? void 0 : r;
100
- }
101
- return V.call(n, e) ? n[e] : void 0;
102
- }
103
- function Ke(e) {
104
- var n = this.__data__;
105
- return H ? n[e] !== void 0 : V.call(n, e);
106
- }
107
- function Qe(e, n) {
108
- var r = this.__data__;
109
- return r[e] = H && n === void 0 ? s : n, this;
110
- }
111
- A.prototype.clear = Ue, A.prototype.delete = Xe, A.prototype.get = Ge, A.prototype.has = Ke, A.prototype.set = Qe;
112
- function D(e) {
113
- var n = -1, r = e ? e.length : 0;
114
- for (this.clear(); ++n < r; ) {
115
- var d = e[n];
116
- this.set(d[0], d[1]);
117
- }
118
- }
119
- function Ye() {
120
- this.__data__ = [];
121
- }
122
- function Je(e) {
123
- var n = this.__data__, r = G(n, e);
124
- if (r < 0)
125
- return !1;
126
- var d = n.length - 1;
127
- return r == d ? n.pop() : Me.call(n, r, 1), !0;
128
- }
129
- function Ze(e) {
130
- var n = this.__data__, r = G(n, e);
131
- return r < 0 ? void 0 : n[r][1];
132
- }
133
- function to(e) {
134
- return G(this.__data__, e) > -1;
135
- }
136
- function eo(e, n) {
137
- var r = this.__data__, d = G(r, e);
138
- return d < 0 ? r.push([e, n]) : r[d][1] = n, this;
139
- }
140
- D.prototype.clear = Ye, D.prototype.delete = Je, D.prototype.get = Ze, D.prototype.has = to, D.prototype.set = eo;
141
- function j(e) {
142
- var n = -1, r = e ? e.length : 0;
143
- for (this.clear(); ++n < r; ) {
144
- var d = e[n];
145
- this.set(d[0], d[1]);
146
- }
147
- }
148
- function oo() {
149
- this.__data__ = {
150
- hash: new A(),
151
- map: new (R || D)(),
152
- string: new A()
153
- };
154
- }
155
- function no(e) {
156
- return K(this, e).delete(e);
157
- }
158
- function io(e) {
159
- return K(this, e).get(e);
160
- }
161
- function ro(e) {
162
- return K(this, e).has(e);
163
- }
164
- function so(e, n) {
165
- return K(this, e).set(e, n), this;
166
- }
167
- j.prototype.clear = oo, j.prototype.delete = no, j.prototype.get = io, j.prototype.has = ro, j.prototype.set = so;
168
- function M(e) {
169
- this.__data__ = new D(e);
170
- }
171
- function lo() {
172
- this.__data__ = new D();
173
- }
174
- function ao(e) {
175
- return this.__data__.delete(e);
176
- }
177
- function po(e) {
178
- return this.__data__.get(e);
179
- }
180
- function co(e) {
181
- return this.__data__.has(e);
182
- }
183
- function ho(e, n) {
184
- var r = this.__data__;
185
- if (r instanceof D) {
186
- var d = r.__data__;
187
- if (!R || d.length < i - 1)
188
- return d.push([e, n]), this;
189
- r = this.__data__ = new j(d);
190
- }
191
- return r.set(e, n), this;
192
- }
193
- M.prototype.clear = lo, M.prototype.delete = ao, M.prototype.get = po, M.prototype.has = co, M.prototype.set = ho;
194
- function uo(e, n) {
195
- var r = ht(e) || jo(e) ? De(e.length, String) : [], d = r.length, C = !!d;
196
- for (var S in e)
197
- V.call(e, S) && !(C && (S == "length" || ko(S, d))) && r.push(S);
198
- return r;
199
- }
200
- function Ft(e, n, r) {
201
- var d = e[n];
202
- (!(V.call(e, n) && Gt(d, r)) || r === void 0 && !(n in e)) && (e[n] = r);
203
- }
204
- function G(e, n) {
205
- for (var r = e.length; r--; )
206
- if (Gt(e[r][0], n))
207
- return r;
208
- return -1;
209
- }
210
- function _o(e, n) {
211
- return e && qt(n, ut(n), e);
212
- }
213
- function pt(e, n, r, d, C, S, I) {
214
- var O;
215
- if (d && (O = S ? d(e, C, S, I) : d(e)), O !== void 0)
216
- return O;
217
- if (!Q(e))
218
- return e;
219
- var Yt = ht(e);
220
- if (Yt) {
221
- if (O = Do(e), !n)
222
- return $o(e, O);
223
- } else {
224
- var W = L(e), Jt = W == h || W == x;
225
- if (No(e))
226
- return bo(e, n);
227
- if (W == w || W == a || Jt && !S) {
228
- if (kt(e))
229
- return S ? e : {};
230
- if (O = Io(Jt ? {} : e), !n)
231
- return Po(e, _o(O, e));
232
- } else {
233
- if (!v[W])
234
- return S ? e : {};
235
- O = Vo(e, W, pt, n);
236
- }
237
- }
238
- I || (I = new M());
239
- var Zt = I.get(e);
240
- if (Zt)
241
- return Zt;
242
- if (I.set(e, O), !Yt)
243
- var te = r ? To(e) : ut(e);
244
- return Pe(te || e, function(_t, Y) {
245
- te && (Y = _t, _t = e[Y]), Ft(O, Y, pt(_t, n, r, d, Y, e, I));
246
- }), O;
247
- }
248
- function xo(e) {
249
- return Q(e) ? Ee(e) : {};
250
- }
251
- function fo(e, n, r) {
252
- var d = n(e);
253
- return ht(e) ? d : Te(d, r(e));
254
- }
255
- function mo(e) {
256
- return X.call(e);
257
- }
258
- function vo(e) {
259
- if (!Q(e) || Lo(e))
260
- return !1;
261
- var n = Qt(e) || kt(e) ? Ae : ge;
262
- return n.test(E(e));
263
- }
264
- function wo(e) {
265
- if (!Xt(e))
266
- return We(e);
267
- var n = [];
268
- for (var r in Object(e))
269
- V.call(e, r) && r != "constructor" && n.push(r);
270
- return n;
271
- }
272
- function bo(e, n) {
273
- if (n)
274
- return e.slice();
275
- var r = new e.constructor(e.length);
276
- return e.copy(r), r;
277
- }
278
- function ct(e) {
279
- var n = new e.constructor(e.byteLength);
280
- return new Wt(n).set(new Wt(e)), n;
281
- }
282
- function go(e, n) {
283
- var r = n ? ct(e.buffer) : e.buffer;
284
- return new e.constructor(r, e.byteOffset, e.byteLength);
285
- }
286
- function yo(e, n, r) {
287
- var d = n ? r(At(e), !0) : At(e);
288
- return Vt(d, Be, new e.constructor());
289
- }
290
- function Co(e) {
291
- var n = new e.constructor(e.source, be.exec(e));
292
- return n.lastIndex = e.lastIndex, n;
293
- }
294
- function So(e, n, r) {
295
- var d = n ? r(Lt(e), !0) : Lt(e);
296
- return Vt(d, $e, new e.constructor());
297
- }
298
- function Oo(e) {
299
- return zt ? Object(zt.call(e)) : {};
300
- }
301
- function Bo(e, n) {
302
- var r = n ? ct(e.buffer) : e.buffer;
303
- return new e.constructor(r, e.byteOffset, e.length);
304
- }
305
- function $o(e, n) {
306
- var r = -1, d = e.length;
307
- for (n || (n = Array(d)); ++r < d; )
308
- n[r] = e[r];
309
- return n;
310
- }
311
- function qt(e, n, r, d) {
312
- r || (r = {});
313
- for (var C = -1, S = n.length; ++C < S; ) {
314
- var I = n[C], O = void 0;
315
- Ft(r, I, O === void 0 ? e[I] : O);
316
- }
317
- return r;
318
- }
319
- function Po(e, n) {
320
- return qt(e, Ut(e), n);
321
- }
322
- function To(e) {
323
- return fo(e, ut, Ut);
324
- }
325
- function K(e, n) {
326
- var r = e.__data__;
327
- return Ao(n) ? r[typeof n == "string" ? "string" : "hash"] : r.map;
328
- }
329
- function N(e, n) {
330
- var r = Ie(e, n);
331
- return vo(r) ? r : void 0;
332
- }
333
- var Ut = Rt ? it(Rt, Object) : Ho, L = mo;
334
- (st && L(new st(new ArrayBuffer(1))) != q || R && L(new R()) != f || lt && L(lt.resolve()) != b || at && L(new at()) != $ || dt && L(new dt()) != nt) && (L = function(e) {
335
- var n = X.call(e), r = n == w ? e.constructor : void 0, d = r ? E(r) : void 0;
336
- if (d)
337
- switch (d) {
338
- case Re:
339
- return q;
340
- case He:
341
- return f;
342
- case ze:
343
- return b;
344
- case Fe:
345
- return $;
346
- case qe:
347
- return nt;
348
- }
349
- return n;
350
- });
351
- function Do(e) {
352
- var n = e.length, r = e.constructor(n);
353
- return n && typeof e[0] == "string" && V.call(e, "index") && (r.index = e.index, r.input = e.input), r;
354
- }
355
- function Io(e) {
356
- return typeof e.constructor == "function" && !Xt(e) ? xo(Le(e)) : {};
357
- }
358
- function Vo(e, n, r, d) {
359
- var C = e.constructor;
360
- switch (n) {
361
- case bt:
362
- return ct(e);
363
- case u:
364
- case _:
365
- return new C(+e);
366
- case q:
367
- return go(e, d);
368
- case gt:
369
- case yt:
370
- case Ct:
371
- case St:
372
- case Ot:
373
- case Bt:
374
- case $t:
375
- case Pt:
376
- case Tt:
377
- return Bo(e, d);
378
- case f:
379
- return yo(e, d, r);
380
- case m:
381
- case F:
382
- return new C(e);
383
- case B:
384
- return Co(e);
385
- case $:
386
- return So(e, d, r);
387
- case wt:
388
- return Oo(e);
389
- }
390
- }
391
- function ko(e, n) {
392
- return n = n ?? l, !!n && (typeof e == "number" || ye.test(e)) && e > -1 && e % 1 == 0 && e < n;
393
- }
394
- function Ao(e) {
395
- var n = typeof e;
396
- return n == "string" || n == "number" || n == "symbol" || n == "boolean" ? e !== "__proto__" : e === null;
397
- }
398
- function Lo(e) {
399
- return !!Et && Et in e;
400
- }
401
- function Xt(e) {
402
- var n = e && e.constructor, r = typeof n == "function" && n.prototype || U;
403
- return e === r;
404
- }
405
- function E(e) {
406
- if (e != null) {
407
- try {
408
- return jt.call(e);
409
- } catch {
410
- }
411
- try {
412
- return e + "";
413
- } catch {
414
- }
415
- }
416
- return "";
417
- }
418
- function Eo(e) {
419
- return pt(e, !0, !0);
420
- }
421
- function Gt(e, n) {
422
- return e === n || e !== e && n !== n;
423
- }
424
- function jo(e) {
425
- return Mo(e) && V.call(e, "callee") && (!je.call(e, "callee") || X.call(e) == a);
426
- }
427
- var ht = Array.isArray;
428
- function Kt(e) {
429
- return e != null && Wo(e.length) && !Qt(e);
430
- }
431
- function Mo(e) {
432
- return Ro(e) && Kt(e);
433
- }
434
- var No = Ne || zo;
435
- function Qt(e) {
436
- var n = Q(e) ? X.call(e) : "";
437
- return n == h || n == x;
438
- }
439
- function Wo(e) {
440
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
441
- }
442
- function Q(e) {
443
- var n = typeof e;
444
- return !!e && (n == "object" || n == "function");
445
- }
446
- function Ro(e) {
447
- return !!e && typeof e == "object";
448
- }
449
- function ut(e) {
450
- return Kt(e) ? uo(e) : wo(e);
451
- }
452
- function Ho() {
453
- return [];
454
- }
455
- function zo() {
456
- return !1;
457
- }
458
- t.exports = Eo;
459
- })(ft, ft.exports)), ft.exports;
460
- }
461
- var on = en();
462
- const k = /* @__PURE__ */ Xo(on), nn = "_in-dropdown-box__wrapper_v01428_QgrFG", rn = "_in-dropdown-box_v01428_wvo-8", sn = "_in-dropdown-box__custom-scrollbar_v01428_v-Gs5", ln = "_in-dropdown-box__search-container_v01428_n51--", an = "_in-dropdown-box__search-container-border_v01428_3JG1F", dn = "_in-dropdown-box__add-value_v01428_I5MPC", pn = "_in-dropdown-box__items-list_v01428_D0s9n", cn = "_in-dropdown-box__child-container_v01428_xRdGr", hn = "_in-dropdown-box__border_v01428_-ute-", un = "_in-dropdown-box__button_v01428_olprB", _n = "_in-dropdown-box__container_v01428_cXLYd", xn = "_in-dropdown-box__loading_v01428_ukQ5s", fn = "_in-dropdown-box__loading-text_v01428_zZSma", mn = "_in-dropdown-box__wrapper_longest-item_v01428_RdQ-J", vn = "_in-dropdown-box__wrapper_auto-width_v01428_TT-6P", wn = "_in-dropdown-box__wrapper_bottom-left_v01428_fl0fP", bn = "_in-dropdown-box__wrapper_bottom-right_v01428_oFuqW", gn = "_in-dropdown-box__wrapper_top-left_v01428_Pq772", yn = "_in-dropdown-box__wrapper_top-right_v01428_xqm5r", Cn = "_in-dropdown-box__category-text_v01428_wgfKD", Sn = "_in-dropdown-box__option-text_v01428_IzYU5", On = "_in-dropdown-box__option-description_v01428_-O6i-", Bn = "_in-dropdown-box__option-description--truncated_v01428_lSWBN", $n = "_in-dropdown-box__option-text-areas_v01428_OKZSz", Pn = "_in-dropdown-box__option-right-text_v01428_Cj8-S", Tn = "_in-dropdown-box__empty-list_v01428_aLzfP", Dn = "_in-dropdown-box__empty-icon_v01428_G2wyt", In = "_in-dropdown-box__empty-list-text_v01428_N6ybp", Vn = "_in-dropdown-box__option_v01428_xNGgF", kn = "_in-dropdown-box__option-area-wrapper_v01428_8lh19", An = "_in-dropdown-box__option-left-area_v01428_At3HO", Ln = "_in-dropdown-box__option--left-icon_v01428_BNbN3", En = "_in-dropdown-box__option--left-slot_v01428_1iiOp", jn = "_in-dropdown-box__option--left-html_v01428_tQCNv", Mn = "_in-dropdown-box__option--right-icon_v01428_ADTox", Nn = "_in-dropdown-box__option-disable_v01428_S0mAk", Wn = "_in-dropdown-box__option-active_v01428_lkjD8", Rn = "_in-dropdown-box__option-hovered_v01428_6dAdT", Hn = "_in-dropdown-box__option-targeted_v01428_bjTPq", zn = "_in-check-box-wrapper_v01428_Hj6-Q", Fn = "_in-dropdown-box__state-wrapper_v01428_uxO1b", qn = "_in-dropdown-box__state-wrapper_warning_v01428_509Ve", Un = "_in-dropdown-box__state-wrapper_error_v01428_R349S", Xn = "_in-dropdown-box__state-icon_v01428_0xSK2", Gn = "_in-dropdown-box__state-icon--warning_v01428_9jOM0", Kn = "_in-dropdown-box__state-icon--error_v01428_pd-Dm", Qn = "_in-dropdown-box__state-message_v01428_t83tH", ot = {
463
- "in-dropdown-box__wrapper": "_in-dropdown-box__wrapper_v01428_QgrFG",
464
- inDropdownBoxWrapper: nn,
465
- "in-dropdown-box": "_in-dropdown-box_v01428_wvo-8",
466
- inDropdownBox: rn,
467
- "in-dropdown-box__custom-scrollbar": "_in-dropdown-box__custom-scrollbar_v01428_v-Gs5",
468
- inDropdownBoxCustomScrollbar: sn,
469
- "in-dropdown-box__search-container": "_in-dropdown-box__search-container_v01428_n51--",
470
- inDropdownBoxSearchContainer: ln,
471
- "in-dropdown-box__search-container-border": "_in-dropdown-box__search-container-border_v01428_3JG1F",
472
- inDropdownBoxSearchContainerBorder: an,
473
- "in-dropdown-box__add-value": "_in-dropdown-box__add-value_v01428_I5MPC",
474
- inDropdownBoxAddValue: dn,
475
- "in-dropdown-box__items-list": "_in-dropdown-box__items-list_v01428_D0s9n",
476
- inDropdownBoxItemsList: pn,
477
- "in-dropdown-box__child-container": "_in-dropdown-box__child-container_v01428_xRdGr",
478
- inDropdownBoxChildContainer: cn,
479
- "in-dropdown-box__border": "_in-dropdown-box__border_v01428_-ute-",
480
- inDropdownBoxBorder: hn,
481
- "in-dropdown-box__button": "_in-dropdown-box__button_v01428_olprB",
482
- inDropdownBoxButton: un,
483
- "in-dropdown-box__container": "_in-dropdown-box__container_v01428_cXLYd",
484
- inDropdownBoxContainer: _n,
485
- "in-dropdown-box__loading": "_in-dropdown-box__loading_v01428_ukQ5s",
486
- inDropdownBoxLoading: xn,
487
- "in-dropdown-box__loading-text": "_in-dropdown-box__loading-text_v01428_zZSma",
488
- inDropdownBoxLoadingText: fn,
489
- "in-dropdown-box__wrapper_longest-item": "_in-dropdown-box__wrapper_longest-item_v01428_RdQ-J",
490
- inDropdownBoxWrapperLongestItem: mn,
491
- "in-dropdown-box__wrapper_auto-width": "_in-dropdown-box__wrapper_auto-width_v01428_TT-6P",
492
- inDropdownBoxWrapperAutoWidth: vn,
493
- "in-dropdown-box__wrapper_bottom-left": "_in-dropdown-box__wrapper_bottom-left_v01428_fl0fP",
494
- inDropdownBoxWrapperBottomLeft: wn,
495
- "in-dropdown-box__wrapper_bottom-right": "_in-dropdown-box__wrapper_bottom-right_v01428_oFuqW",
496
- inDropdownBoxWrapperBottomRight: bn,
497
- "in-dropdown-box__wrapper_top-left": "_in-dropdown-box__wrapper_top-left_v01428_Pq772",
498
- inDropdownBoxWrapperTopLeft: gn,
499
- "in-dropdown-box__wrapper_top-right": "_in-dropdown-box__wrapper_top-right_v01428_xqm5r",
500
- inDropdownBoxWrapperTopRight: yn,
501
- "in-dropdown-box__category-text": "_in-dropdown-box__category-text_v01428_wgfKD",
502
- inDropdownBoxCategoryText: Cn,
503
- "in-dropdown-box__option-text": "_in-dropdown-box__option-text_v01428_IzYU5",
504
- inDropdownBoxOptionText: Sn,
505
- "in-dropdown-box__option-description": "_in-dropdown-box__option-description_v01428_-O6i-",
506
- inDropdownBoxOptionDescription: On,
507
- "in-dropdown-box__option-description--truncated": "_in-dropdown-box__option-description--truncated_v01428_lSWBN",
508
- inDropdownBoxOptionDescriptionTruncated: Bn,
509
- "in-dropdown-box__option-text-areas": "_in-dropdown-box__option-text-areas_v01428_OKZSz",
510
- inDropdownBoxOptionTextAreas: $n,
511
- "in-dropdown-box__option-right-text": "_in-dropdown-box__option-right-text_v01428_Cj8-S",
512
- inDropdownBoxOptionRightText: Pn,
513
- "in-dropdown-box__empty-list": "_in-dropdown-box__empty-list_v01428_aLzfP",
514
- inDropdownBoxEmptyList: Tn,
515
- "in-dropdown-box__empty-icon": "_in-dropdown-box__empty-icon_v01428_G2wyt",
516
- inDropdownBoxEmptyIcon: Dn,
517
- "in-dropdown-box__empty-list-text": "_in-dropdown-box__empty-list-text_v01428_N6ybp",
518
- inDropdownBoxEmptyListText: In,
519
- "in-dropdown-box__option": "_in-dropdown-box__option_v01428_xNGgF",
520
- inDropdownBoxOption: Vn,
521
- "in-dropdown-box__option-area-wrapper": "_in-dropdown-box__option-area-wrapper_v01428_8lh19",
522
- inDropdownBoxOptionAreaWrapper: kn,
523
- "in-dropdown-box__option-left-area": "_in-dropdown-box__option-left-area_v01428_At3HO",
524
- inDropdownBoxOptionLeftArea: An,
525
- "in-dropdown-box__option--left-icon": "_in-dropdown-box__option--left-icon_v01428_BNbN3",
526
- inDropdownBoxOptionLeftIcon: Ln,
527
- "in-dropdown-box__option--left-slot": "_in-dropdown-box__option--left-slot_v01428_1iiOp",
528
- inDropdownBoxOptionLeftSlot: En,
529
- "in-dropdown-box__option--left-html": "_in-dropdown-box__option--left-html_v01428_tQCNv",
530
- inDropdownBoxOptionLeftHtml: jn,
531
- "in-dropdown-box__option--right-icon": "_in-dropdown-box__option--right-icon_v01428_ADTox",
532
- inDropdownBoxOptionRightIcon: Mn,
533
- "in-dropdown-box__option-disable": "_in-dropdown-box__option-disable_v01428_S0mAk",
534
- inDropdownBoxOptionDisable: Nn,
535
- "in-dropdown-box__option-active": "_in-dropdown-box__option-active_v01428_lkjD8",
536
- inDropdownBoxOptionActive: Wn,
537
- "in-dropdown-box__option-hovered": "_in-dropdown-box__option-hovered_v01428_6dAdT",
538
- inDropdownBoxOptionHovered: Rn,
539
- "in-dropdown-box__option-targeted": "_in-dropdown-box__option-targeted_v01428_bjTPq",
540
- inDropdownBoxOptionTargeted: Hn,
541
- "in-check-box-wrapper": "_in-check-box-wrapper_v01428_Hj6-Q",
542
- inCheckBoxWrapper: zn,
543
- "in-dropdown-box__state-wrapper": "_in-dropdown-box__state-wrapper_v01428_uxO1b",
544
- inDropdownBoxStateWrapper: Fn,
545
- "in-dropdown-box__state-wrapper_warning": "_in-dropdown-box__state-wrapper_warning_v01428_509Ve",
546
- inDropdownBoxStateWrapperWarning: qn,
547
- "in-dropdown-box__state-wrapper_error": "_in-dropdown-box__state-wrapper_error_v01428_R349S",
548
- inDropdownBoxStateWrapperError: Un,
549
- "in-dropdown-box__state-icon": "_in-dropdown-box__state-icon_v01428_0xSK2",
550
- inDropdownBoxStateIcon: Xn,
551
- "in-dropdown-box__state-icon--warning": "_in-dropdown-box__state-icon--warning_v01428_9jOM0",
552
- inDropdownBoxStateIconWarning: Gn,
553
- "in-dropdown-box__state-icon--error": "_in-dropdown-box__state-icon--error_v01428_pd-Dm",
554
- inDropdownBoxStateIconError: Kn,
555
- "in-dropdown-box__state-message": "_in-dropdown-box__state-message_v01428_t83tH",
556
- inDropdownBoxStateMessage: Qn
557
- }, Yn = {
558
- /**
559
- * @property {string} categoryText
560
- */
561
- props: {
562
- categoryText: {
563
- type: String,
564
- required: !0
565
- }
566
- }
567
- };
568
- var Jn = function() {
569
- var t = this, o = t._self._c;
570
- return o("div", [o("p", { staticClass: "in-dropdown-box__category-text", class: t.$style["in-dropdown-box__category-text"] }, [t._v(" " + t._s(t.categoryText) + " ")]), t._t("default")], 2);
571
- }, Zn = [];
572
- const ie = {
573
- $style: ot
574
- };
575
- function ti(t) {
576
- for (var o in ie)
577
- this[o] = ie[o];
578
- }
579
- var ei = /* @__PURE__ */ et(
580
- Yn,
581
- Jn,
582
- Zn,
583
- !1,
584
- ti
585
- );
586
- const oi = ei.exports, ni = {
587
- components: {
588
- InCheckBox: fe,
589
- InIcons: xe
590
- },
591
- props: {
592
- /**
593
- * @property {object} item
594
- */
595
- item: {
596
- type: Object,
597
- required: !0
598
- },
599
- /**
600
- * @property {string|number} hoveredValue
601
- */
602
- hoveredValue: {
603
- type: String | Number,
604
- default: ""
605
- },
606
- /**
607
- * @property {array} preSelectedValues
608
- */
609
- preSelectedValues: {
610
- type: Array,
611
- required: !0
612
- },
613
- /**
614
- * @property {string} selectionType
615
- */
616
- selectionType: {
617
- type: String,
618
- default: "single"
619
- },
620
- /**
621
- * @property {string} isTargetedOption
622
- */
623
- isTargetedOption: {
624
- type: Boolean,
625
- default: !1
626
- },
627
- /**
628
- * @property {boolean} isChildTargetedOption
629
- */
630
- isChildTargetedOption: {
631
- type: Boolean,
632
- default: !1
633
- },
634
- /**
635
- * @property {boolean} isChild
636
- */
637
- isChild: {
638
- type: Boolean,
639
- default: !1
640
- },
641
- /**
642
- * @property {boolean} isWrappedDescription
643
- */
644
- isWrappedDescription: {
645
- type: Boolean,
646
- default: !1
647
- },
648
- /**
649
- * @property {boolean} fullOptionMatchEnabled
650
- */
651
- fullOptionMatchEnabled: {
652
- type: Boolean,
653
- default: !1
654
- },
655
- preventXss: { type: Boolean, default: !1 }
656
- },
657
- data() {
658
- return {
659
- width: null
660
- };
661
- },
662
- computed: {
663
- /**
664
- * @return {boolean}
665
- */
666
- renderRightArea() {
667
- return this.optionContains(this.item, "iconRight") || this.optionContains(this.item, "rightSlotComponent") || this.optionContains(this.item, "rightSlotHtml") || this.optionContains(this.item, "rightText") || this.optionContains(this.item, "children");
668
- },
669
- /**
670
- * @return {array}
671
- */
672
- purePreSelectedValues() {
673
- return this.preSelectedValues.map((t) => ({
674
- value: t == null ? void 0 : t.value,
675
- isConstant: t == null ? void 0 : t.isConstant
676
- }));
677
- },
678
- /**
679
- * @return {boolean}
680
- */
681
- isOptionSelected() {
682
- return this.purePreSelectedValues.some(({ value: t, isConstant: o }) => t === this.item.value && o === this.item.isConstant);
683
- },
684
- /**
685
- * @return {boolean}
686
- */
687
- isMultipleSelection() {
688
- return this.selectionType === "multiple";
689
- }
690
- },
691
- watch: {
692
- /**
693
- * @param {boolean} status
694
- */
695
- isTargetedOption(t) {
696
- this.$nextTick(() => {
697
- t && this.$emit("targetOptionValue", this.item);
698
- });
699
- },
700
- /**
701
- * @param {boolean} status
702
- */
703
- isChildTargetedOption: {
704
- handler(t) {
705
- this.$nextTick(() => {
706
- t && this.$emit("targetChildOptionValue", this.item);
707
- });
708
- },
709
- immediate: !0
710
- }
711
- },
712
- mounted() {
713
- this.$nextTick(() => {
714
- this.optionContains(this.item, "text") && this.calculateTextMaxWidth(this.item);
715
- });
716
- },
717
- methods: {
718
- preventXSS: Uo,
719
- getItemType(t) {
720
- return this.optionContains(t, "isLink") ? "a" : "div";
721
- },
722
- /**
723
- * @param {object} option
724
- * @param {string} key
725
- * @return {boolean}
726
- */
727
- optionContains(t, o) {
728
- if (t[o] === null)
729
- return !1;
730
- switch (typeof t[o]) {
731
- case "undefined":
732
- return !1;
733
- case "string":
734
- return t[o] !== "";
735
- case "object":
736
- return Object.keys(t[o]).length > 0;
737
- case "number":
738
- return !0;
739
- case "boolean":
740
- return t[o];
741
- default:
742
- return !1;
743
- }
744
- },
745
- /**
746
- * @param {string} color
747
- * @return {object}
748
- */
749
- optionIconFillColor(t) {
750
- return t && t.includes("#") ? { fill: `${t}` } : { fill: `#${t}` };
751
- },
752
- /**
753
- * @param {object} option
754
- * @return {string}
755
- */
756
- iconRightClass(t) {
757
- return this.optionContains(t, "children") ? "mr-1" : "mr-2";
758
- },
759
- /**
760
- * @param {object} option
761
- */
762
- handleMouseClick(t) {
763
- this.optionContains(t, "disable") || this.isEveryChildDisabled(t) || this.$emit("optionClick", t);
764
- },
765
- /**
766
- * @param {object} option
767
- */
768
- handleOptionMouseEnter(t) {
769
- if (this.$emit("mouseEnterValue", t), this.optionContains(t, "infoBoxProps")) {
770
- this.$emit("openInfoBox", {
771
- props: t.infoBoxProps,
772
- value: t.value,
773
- text: t.text
774
- });
775
- return;
776
- } else
777
- this.$emit("closeInfoBox");
778
- this.optionContains(t, "children") && this.prepareChildrenBox(t);
779
- },
780
- /**
781
- * @param {array} children
782
- */
783
- prepareChildrenBox({ children: t }) {
784
- this.$emit("fillChildrenOptions", t);
785
- },
786
- /**
787
- * @param {string} divider
788
- * @return {string}
789
- */
790
- optionDividerClass({ divider: t }) {
791
- switch (t) {
792
- case "solid":
793
- return "bor-b-s-s";
794
- case "dashed":
795
- return "bor-b-s-das";
796
- case "dotted":
797
- return "bor-b-s-dot";
798
- default:
799
- return "";
800
- }
801
- },
802
- /**
803
- * Checks if every child is disabled in the option object.
804
- * @param {object} option
805
- * @return {boolean}
806
- */
807
- isEveryChildDisabled(t) {
808
- var o;
809
- return (o = t.children) == null ? void 0 : o.every((i) => this.optionContains(i, "disable"));
810
- },
811
- /**
812
- * @param {object} option
813
- * @return {string}
814
- */
815
- optionClasses(t) {
816
- var o, i;
817
- let s = [], l = [];
818
- const a = this.isMultipleSelection && t.children && t.children.some((c) => {
819
- var h, x;
820
- return (h = this.preSelectedValues) != null && h.length ? (x = c == null ? void 0 : c.children) != null && x.length ? c.children.some(
821
- (f) => this.purePreSelectedValues.some(({ value: m, isConstant: w }) => m === f.value && w === f.isConstant)
822
- ) : this.purePreSelectedValues.some(({ value: f, isConstant: m }) => f === c.value && m === c.isConstant) : !1;
823
- }), p = !this.isMultipleSelection && t.children && t.children.some(
824
- (c) => {
825
- var h, x, f, m;
826
- return (h = this.preSelectedValues) != null && h.length ? (x = c == null ? void 0 : c.children) != null && x.length ? c.children.some(
827
- (w) => {
828
- var b, B;
829
- return ((b = this.purePreSelectedValues[0]) == null ? void 0 : b.value) === w.value && ((B = this.purePreSelectedValues[0]) == null ? void 0 : B.isConstant) === w.isConstant;
830
- }
831
- ) : ((f = this.purePreSelectedValues[0]) == null ? void 0 : f.value) === c.value && ((m = this.purePreSelectedValues[0]) == null ? void 0 : m.isConstant) === c.isConstant : !1;
832
- }
833
- ), u = this.isTargetedOption || this.isChildTargetedOption, _ = this.hoveredValue === (t.value || t.text);
834
- return this.optionContains(t, "disable") && (s.push("in-dropdown-box__option-disable", "cur-na"), l.push(this.$style["in-dropdown-box__option-disable"])), this.renderRightArea || s.push("pr-2"), this.optionContains(t, "children") ? (a || p) && (s.push("in-dropdown-box__option-active"), l.push(this.$style["in-dropdown-box__option-active"])) : this.isMultipleSelection ? this.purePreSelectedValues.some(
835
- ({ value: c, isConstant: h }) => c === t.value && h === t.isConstant
836
- ) && (s.push("in-dropdown-box__option-active"), l.push(this.$style["in-dropdown-box__option-active"])) : ((o = this.purePreSelectedValues[0]) == null ? void 0 : o.value) === t.value && ((i = this.purePreSelectedValues[0]) == null ? void 0 : i.isConstant) === t.isConstant && (s.push("in-dropdown-box__option-active"), l.push(this.$style["in-dropdown-box__option-active"])), u && (s.push("in-dropdown-box__option-targeted"), l.push(this.$style["in-dropdown-box__option-targeted"])), (u || _) && !this.optionContains(t, "disable") && !a && !p && (s.push("in-dropdown-box__option-hovered"), l.push(this.$style["in-dropdown-box__option-hovered"])), [...s, ...l].join(" ").trim();
837
- },
838
- /**
839
- * @param {object} option
840
- * @return {object}
841
- */
842
- calculateTextMaxWidth(t) {
843
- var o, i, s, l, a, p, u, _, c;
844
- if (typeof this.$el > "u")
845
- return;
846
- let h = 0;
847
- if (this.optionContains(t, "leftSlotComponent") || this.optionContains(t, "leftSlotHtml") || this.optionContains(t, "iconLeft")) {
848
- const w = (o = this.$el) == null ? void 0 : o.querySelector(".in-dropdown-box__option--left-icon"), b = w == null ? void 0 : w.getBoundingClientRect(), B = (s = (i = this.$el) == null ? void 0 : i.querySelector(
849
- ".in-dropdown-box__option--left-slot"
850
- )) == null ? void 0 : s.getBoundingClientRect(), $ = (a = (l = this.$el) == null ? void 0 : l.querySelector(
851
- ".in-dropdown-box__option--left-html"
852
- )) == null ? void 0 : a.getBoundingClientRect(), F = ((b == null ? void 0 : b.width) || 0) + ((B == null ? void 0 : B.width) || 0) + (($ == null ? void 0 : $.width) || 0) + 32;
853
- h += F;
854
- }
855
- if (this.optionContains(t, "rightSlotComponent") || this.optionContains(t, "rightSlotHtml") || this.optionContains(t, "iconRight") || this.optionContains(t, "children")) {
856
- const w = (u = (p = this.$el) == null ? void 0 : p.querySelector(
857
- ".in-dropdown-box__option-right-area"
858
- )) == null ? void 0 : u.getBoundingClientRect(), b = (w == null ? void 0 : w.width) + 8;
859
- h += b;
860
- }
861
- const x = (_ = this.$el) == null ? void 0 : _.getBoundingClientRect(), f = x == null ? void 0 : x.width, m = (f / ((c = this.$el) == null ? void 0 : c.offsetWidth) || 1).toFixed(2);
862
- return h === 0 ? {} : (this.width = (f - h) / m, { maxWidth: `${(f - h) / m}px` });
863
- }
864
- }
865
- };
866
- var ii = function() {
867
- var t = this, o = t._self._c;
868
- return o("div", { staticClass: "in-dropdown-box__wrapper", class: [t.$style["in-dropdown-box__wrapper"], `in-dropdown-box-item-${t.item.order}${t.isChild ? "-child" : ""}`], style: {
869
- display: t.optionContains(t.item, "display") ? "none" : "block"
870
- } }, [t.optionContains(t.item, "divider") ? o("div", { staticClass: "in-dropdown-box__border", class: [t.optionDividerClass(t.item), t.$style["in-dropdown-box__border"]] }) : t._e(), t.optionContains(t.item, "text") ? o(t.getItemType(t.item), { tag: "component", staticClass: "in-dropdown-box__option", class: [t.$style["in-dropdown-box__option"], t.optionClasses(t.item)], attrs: { "data-attr-value": t.item.value || t.item.text, href: t.item.url || null, target: t.item.target || "_blank", tabindex: t.isTargetedOption ? 2 : -1 }, on: { mouseenter: function(i) {
871
- return t.handleOptionMouseEnter(t.item);
872
- }, click: function(i) {
873
- return t.handleMouseClick(t.item);
874
- } } }, [o("div", { staticClass: "in-dropdown-box__option-area-wrapper", class: t.$style["in-dropdown-box__option-area-wrapper"] }, [o("div", { staticClass: "in-dropdown-box__option-left-area d-f a-i-c", class: t.$style["in-dropdown-box__option-left-area"], style: t.optionContains(t.item, "leftSize") ? { width: t.item.leftSize } : {} }, [t.isMultipleSelection && !t.optionContains(t.item, "children") ? o("in-check-box", { staticClass: "min-w-a p-e-n", attrs: { id: `check-box-${t.item.value}`, disable: t.optionContains(t.item, "disable"), name: t.item.value, checked: t.isOptionSelected, label: "" } }) : t._e(), t.optionContains(t.item, "iconLeft") && !t.optionContains(t.item, "leftSlotComponent") ? o("in-icons", { staticClass: "in-dropdown-box__option--left-icon min-w-4-s", class: [t.$style["in-dropdown-box__option--left-icon"], t.item.iconLeftClass], style: t.optionIconFillColor(t.item.iconLeftColor), attrs: { name: t.item.iconLeft } }) : t._e(), t.optionContains(t.item, "leftSlotComponent") ? o(t.item.leftSlotComponent, t._b({ tag: "component", staticClass: "in-dropdown-box__option--left-slot", class: t.$style["in-dropdown-box__option--left-slot"] }, "component", t.item.leftSlotProps, !1)) : t._e(), t.optionContains(t.item, "leftSlotHtml") ? o("div", { staticClass: "in-dropdown-box__option--left-html", class: [t.$style["in-dropdown-box__option--left-html"], t.item.leftSlotClass], domProps: { innerHTML: t._s(t.preventXss ? t.preventXSS(t.item.leftSlotHtml) : t.item.leftSlotHtml) } }) : t._e(), o("div", { staticClass: "in-dropdown-box__option-text-areas", class: t.$style["in-dropdown-box__option-text-areas"], style: [t.calculateTextMaxWidth(t.item), t.optionContains(t.item, "leftTextSize") ? { width: t.item.leftTextSize } : {}], attrs: { "max-width": `${t.width}px` } }, [o("div", { staticClass: "in-dropdown-box__option-text", class: [t.item.textColor || "t-c-1"], attrs: { title: t.item.text } }, [t._v(" " + t._s(t.item.text) + " ")]), t.optionContains(t.item, "description") ? o("span", { staticClass: "in-dropdown-box__option-description", class: [
875
- t.$style["in-dropdown-box__option-description"],
876
- {
877
- "in-dropdown-box__option-description--truncated": !t.isWrappedDescription,
878
- [t.$style["in-dropdown-box__option-description--truncated"]]: !t.isWrappedDescription
879
- }
880
- ], attrs: { title: t.item.description } }, [t._v(" " + t._s(t.item.description) + " ")]) : t._e()])], 1), t.renderRightArea ? o("div", { staticClass: "in-dropdown-box__option-right-area d-f a-i-c j-c-f-e", style: t.optionContains(t.item, "rightSize") ? { width: t.item.rightSize } : {} }, [t.optionContains(t.item, "rightSlotComponent") ? o(t.item.rightSlotComponent, t._b({ tag: "component", staticClass: "in-dropdown-box__option--right-slot w-s-n-w", class: t.$style["in-dropdown-box__option--right-slot"] }, "component", t.item.rightSlotProps, !1)) : t._e(), t.optionContains(t.item, "rightSlotHtml") ? o("div", { staticClass: "in-dropdown-box__option--right-slot", class: [
881
- t.item.rightSlotClass,
882
- t.$style["in-dropdown-box__option--right-slot"]
883
- ], domProps: { innerHTML: t._s(t.preventXss ? t.preventXSS(t.item.rightSlotHtml) : t.item.rightSlotHtml) } }) : t._e(), t.optionContains(t.item, "rightText") ? o("span", { staticClass: "in-dropdown-box__option-right-text", class: t.$style["in-dropdown-box__option-right-text"], style: t.optionContains(t.item, "rightTextSize") ? { width: t.item.rightTextSize } : {}, attrs: { title: t.item.rightText } }, [t._v(" " + t._s(t.item.rightText) + " ")]) : t._e(), t.optionContains(t.item, "iconRight") && !t.optionContains(t.item, "rightSlotComponent") ? o("in-icons", { class: t.iconRightClass(t.item), style: t.optionIconFillColor(t.item.iconRightColor), attrs: { name: t.item.iconRight } }) : t._e(), t.optionContains(t.item, "children") ? o("in-icons", { staticClass: "in-dropdown-box__option--right-icon min-w-4-s", class: t.$style["in-dropdown-box__option--right-icon"], attrs: { name: "line-chevron-right" } }) : t._e()], 1) : t._e()])]) : t._e()], 1);
884
- }, ri = [];
885
- const re = {
886
- $style: ot
887
- };
888
- function si(t) {
889
- for (var o in re)
890
- this[o] = re[o];
891
- }
892
- var li = /* @__PURE__ */ et(
893
- ni,
894
- ii,
895
- ri,
896
- !1,
897
- si
898
- );
899
- const ai = li.exports, di = {
900
- components: {
901
- DropdownCategoryText: oi,
902
- DropdownItem: ai
903
- },
904
- props: {
905
- /**
906
- * @property {string|number|boolean} option
907
- */
908
- option: {
909
- type: String | Number | Boolean,
910
- required: !0
911
- },
912
- /**
913
- * @property {number} index
914
- */
915
- index: {
916
- type: Number,
917
- default: 0
918
- },
919
- /**
920
- * @property {array} preSelectedValues
921
- */
922
- preSelectedValues: {
923
- type: Array,
924
- required: !0
925
- },
926
- /**
927
- * @property {string|number} hoveredValue
928
- */
929
- hoveredValue: {
930
- type: String | Number,
931
- default: ""
932
- },
933
- /**
934
- * @property {string} selectionType
935
- */
936
- selectionType: {
937
- type: String,
938
- default: "single"
939
- },
940
- /**
941
- * @property {number} targetedOptionIndex
942
- */
943
- targetedOptionIndex: {
944
- type: Number,
945
- default: -1
946
- },
947
- /**
948
- * @property {number} targetedChildOptionIndex
949
- */
950
- targetedChildOptionIndex: {
951
- type: Number,
952
- default: -1
953
- },
954
- /**
955
- * @property {boolean} isChild
956
- */
957
- isChild: {
958
- type: Boolean,
959
- default: !1
960
- },
961
- /**
962
- * @property {boolean} isWrappedDescription
963
- */
964
- isWrappedDescription: {
965
- type: Boolean,
966
- default: !1
967
- },
968
- preventXss: { type: Boolean, default: !1 }
969
- },
970
- computed: {
971
- /**
972
- * @return {array}
973
- */
974
- filteredChildOptions() {
975
- return this.option.children ? this.option.children.filter((t) => !t.hidden) : [];
976
- }
977
- },
978
- methods: {
979
- /**
980
- * @param {object} option
981
- * @param {string} key
982
- * @return {boolean}
983
- */
984
- optionContains(t, o) {
985
- if (t[o] === null)
986
- return !1;
987
- switch (typeof t[o]) {
988
- case "undefined":
989
- return !1;
990
- case "string":
991
- return t[o] !== "";
992
- case "object":
993
- return Object.keys(t[o]).length > 0;
994
- case "number":
995
- return !0;
996
- case "boolean":
997
- return t[o];
998
- default:
999
- return !1;
1000
- }
1001
- }
1002
- }
1003
- };
1004
- var pi = function() {
1005
- var t = this, o = t._self._c;
1006
- return o("div", { staticClass: "in-dropdown-box__wrapper", class: t.$style["in-dropdown-box__wrapper"] }, [t.optionContains(t.option, "categoryText") ? o("dropdown-category-text", { attrs: { "category-text": t.option.categoryText } }, [t.optionContains(t.option, "children") ? o("div", t._l(t.filteredChildOptions, function(i, s) {
1007
- return o("dropdown-item", { key: `${i.value}_${s}`, staticClass: "px-0", attrs: { item: i, "hovered-value": t.hoveredValue, "pre-selected-values": t.preSelectedValues, "selection-type": t.selectionType, "is-targeted-option": t.targetedOptionIndex === i.order, "is-child-targeted-option": t.targetedChildOptionIndex === i.order, "is-child": t.isChild, "is-wrapped-description": t.isWrappedDescription, "prevent-xss": t.preventXss }, on: { closeInfoBox: function(l) {
1008
- return t.$emit("closeInfoBox");
1009
- }, openInfoBox: (l) => t.$emit("openInfoBox", l), fillChildrenOptions: (l) => t.$emit("fillChildrenOptions", l), mouseEnterValue: (l) => t.$emit("mouseEnterValue", l), targetOptionValue: (l) => t.$emit("targetOptionValue", l), targetChildOptionValue: (l) => t.$emit("targetChildOptionValue", l), optionClick: (l) => t.$emit("optionClick", l) } });
1010
- }), 1) : t._e()]) : o("dropdown-item", { attrs: { item: t.option, "hovered-value": t.hoveredValue, "pre-selected-values": t.preSelectedValues, "selection-type": t.selectionType, "is-targeted-option": t.targetedOptionIndex === t.option.order, "is-child-targeted-option": t.targetedChildOptionIndex === t.option.order, "is-child": t.isChild, "is-wrapped-description": t.isWrappedDescription, "prevent-xss": t.preventXss }, on: { closeInfoBox: function(i) {
1011
- return t.$emit("closeInfoBox");
1012
- }, openInfoBox: (i) => t.$emit("openInfoBox", i), fillChildrenOptions: (i) => t.$emit("fillChildrenOptions", i), mouseEnterValue: (i) => t.$emit("mouseEnterValue", i), targetOptionValue: (i) => t.$emit("targetOptionValue", i), targetChildOptionValue: (i) => t.$emit("targetChildOptionValue", i), optionClick: (i) => t.$emit("optionClick", i) } }), t._t("leftSlot")], 2);
1013
- }, ci = [];
1014
- const se = {
1015
- $style: ot
1016
- };
1017
- function hi(t) {
1018
- for (var o in se)
1019
- this[o] = se[o];
1020
- }
1021
- var ui = /* @__PURE__ */ et(
1022
- di,
1023
- pi,
1024
- ci,
1025
- !1,
1026
- hi
1027
- );
1028
- const _i = ui.exports, xi = {
1029
- tolerance: 2,
1030
- direction: "down"
1031
- };
1032
- function fi(t = {}) {
1033
- const o = { ...xi, ...t }, i = xt(!1), s = xt(0), l = xt(!1), a = (c) => {
1034
- const h = c.scrollHeight - c.scrollTop - c.offsetHeight;
1035
- return h <= 0 || h < o.tolerance;
1036
- }, p = (c) => c.scrollTop <= o.tolerance, u = (c) => o.direction === "down" ? a(c) : o.direction === "up" ? p(c) : a(c) || p(c), _ = (c) => o.direction === "down" ? c > s.value : o.direction === "up" ? c < s.value : !0;
1037
- return {
1038
- wasAtScrollEnd: i,
1039
- lastScrollTop: s,
1040
- isAtEnd: l,
1041
- isEndOfScroll: u,
1042
- isScrollingInDirection: _,
1043
- onScroll: (c) => {
1044
- const h = c.target, x = h.scrollTop, f = _(x), m = u(h);
1045
- let w = !1;
1046
- return m && f && !i.value && (w = !0, typeof o.onScrollEnd == "function" && o.onScrollEnd(c)), i.value = m, s.value = x, l.value = m, w;
1047
- },
1048
- reset: () => {
1049
- i.value = !1, s.value = 0, l.value = !1;
1050
- }
1051
- };
1052
- }
1053
- const le = "top", ae = "bottom", mt = "left", mi = "right", y = "auto", Z = "scroll", vi = "hidden", vt = "100%", tt = "0px", me = "bottom left", ve = "bottom right", wi = "top left", bi = "top right", de = [me, ve, wi, bi], gi = /[\p{Number}]+/gu, yi = /[\p{Letter}\p{Mark}]+/gu, pe = Object.freeze({ All: "all", Number: "number", Text: "text" }), ce = { text: gi, number: yi }, he = 8, P = {
1054
- ArrowLeft: 37,
1055
- ArrowUp: 38,
1056
- ArrowRight: 39,
1057
- ArrowDown: 40,
1058
- Enter: 13,
1059
- Space: 32
1060
- }, ue = [
1061
- P.ArrowUp,
1062
- P.ArrowDown
1063
- ], Ci = {
1064
- name: "InDropdownMenu",
1065
- directives: { clickOutside: Go },
1066
- components: {
1067
- InCheckBox: fe,
1068
- DropdownOption: _i,
1069
- InBox: Ko,
1070
- InButtonV2: Qo,
1071
- InIcons: xe,
1072
- InLoading: Yo,
1073
- InTextInput: Jo,
1074
- InInfoBox: Zo
1075
- },
1076
- mixins: [tn],
1077
- props: {
1078
- /**
1079
- * @property {boolean} status
1080
- */
1081
- status: {
1082
- type: Boolean,
1083
- default: !1
1084
- },
1085
- /**
1086
- * @property {boolean} selectAllOptionStatus
1087
- */
1088
- selectAllOptionStatus: {
1089
- type: Boolean,
1090
- default: !0
1091
- },
1092
- /**
1093
- * @property {string} selectionType
1094
- */
1095
- selectionType: {
1096
- type: String,
1097
- default: "single"
1098
- },
1099
- /**
1100
- * @property {boolean} searchStatus
1101
- */
1102
- searchStatus: {
1103
- type: Boolean,
1104
- default: !1
1105
- },
1106
- /**
1107
- * @property {array} options
1108
- */
1109
- options: {
1110
- type: Array,
1111
- required: !0
1112
- },
1113
- /**
1114
- * @property {array} preSelectedValues
1115
- */
1116
- preSelectedValues: {
1117
- type: Array,
1118
- default: () => []
1119
- },
1120
- /**
1121
- * @property {string} id
1122
- */
1123
- id: {
1124
- type: String,
1125
- required: !0
1126
- },
1127
- /**
1128
- * @property {string} boxWidth
1129
- */
1130
- boxWidth: {
1131
- type: String,
1132
- default: "basedOnField"
1133
- },
1134
- /**
1135
- * @property {string} createButtonLabel
1136
- */
1137
- createButtonLabel: {
1138
- type: String,
1139
- default: ""
1140
- },
1141
- /**
1142
- * @property {number|string} minCharacterLimit
1143
- */
1144
- minCharacterLimit: {
1145
- type: Number | String,
1146
- default: 1
1147
- },
1148
- /**
1149
- * @property {number|string} maxCharacterLimit
1150
- */
1151
- maxCharacterLimit: {
1152
- type: Number | String,
1153
- default: 10
1154
- },
1155
- /**
1156
- * @property {boolean} createOptionStatus
1157
- */
1158
- createOptionStatus: {
1159
- type: Boolean,
1160
- default: !1
1161
- },
1162
- /**
1163
- * @property {boolean} buttonStatus
1164
- */
1165
- buttonStatus: {
1166
- type: Boolean,
1167
- default: !1
1168
- },
1169
- /**
1170
- * @property {string} buttonIcon
1171
- */
1172
- buttonIcon: {
1173
- type: String,
1174
- default: ""
1175
- },
1176
- /**
1177
- * @property {string} buttonLabel
1178
- */
1179
- buttonLabel: {
1180
- type: String,
1181
- default: ""
1182
- },
1183
- /**
1184
- * @property {boolean} loadingState
1185
- */
1186
- loadingState: {
1187
- type: Boolean,
1188
- default: !1
1189
- },
1190
- /**
1191
- * @property {boolean} dynamicPosition
1192
- */
1193
- dynamicPosition: {
1194
- type: Boolean,
1195
- default: !1
1196
- },
1197
- /**
1198
- * @property {boolean} dynamicChildPosition
1199
- */
1200
- dynamicChildPosition: {
1201
- type: Boolean,
1202
- default: !0
1203
- },
1204
- /**
1205
- * @property {number} bottomOffsetForDynamicPosition
1206
- */
1207
- bottomOffsetForDynamicPosition: {
1208
- type: Number,
1209
- default: 0
1210
- },
1211
- /**
1212
- * @property {number} fetchPage
1213
- */
1214
- fetchPage: {
1215
- type: Number,
1216
- default: 1
1217
- },
1218
- /**
1219
- * @property {string} staticPosition
1220
- */
1221
- staticPosition: {
1222
- type: String,
1223
- default: me,
1224
- validator(t) {
1225
- return de.includes(t);
1226
- }
1227
- },
1228
- /**
1229
- * @property {string} staticChildPosition
1230
- */
1231
- staticChildPosition: {
1232
- type: String,
1233
- default: ve,
1234
- validator(t) {
1235
- return de.includes(t);
1236
- }
1237
- },
1238
- /**
1239
- * @property {number} maxHeight
1240
- */
1241
- maxHeight: {
1242
- type: Number,
1243
- default: 240
1244
- },
1245
- /**
1246
- * @property {number} maxChildHeight
1247
- */
1248
- maxChildHeight: {
1249
- type: Number,
1250
- default: 480
1251
- },
1252
- /**
1253
- * @property {string|RegExp} optionValidationType
1254
- */
1255
- optionValidationType: {
1256
- type: [String, RegExp],
1257
- default: pe.All
1258
- },
1259
- /**
1260
- * @property {string} optionValidationText
1261
- */
1262
- optionValidationText: {
1263
- type: String,
1264
- default: "Enter a valid value to continue."
1265
- },
1266
- /**
1267
- * @property {string} characterLimitValidationText
1268
- */
1269
- characterLimitValidationText: {
1270
- type: String,
1271
- default: "Enter a value between 1 and 10 characters to continue."
1272
- },
1273
- /**
1274
- * @property {string} sameValueExistsValidationText
1275
- */
1276
- sameValueExistsValidationText: {
1277
- type: String,
1278
- default: "Same values exists. Enter a different value."
1279
- },
1280
- /**
1281
- * @property {boolean} canSelectOption
1282
- */
1283
- canSelectOption: {
1284
- type: Boolean,
1285
- default: !0
1286
- },
1287
- /**
1288
- * @property {boolean} lazyLoad
1289
- */
1290
- lazyLoad: {
1291
- type: Boolean,
1292
- default: !1
1293
- },
1294
- /**
1295
- * @property {boolean} lazyLoadSearch
1296
- */
1297
- lazyLoadSearch: {
1298
- type: Boolean,
1299
- default: !1
1300
- },
1301
- /**
1302
- * @property {boolean} hasLimit
1303
- */
1304
- hasLimit: {
1305
- type: Boolean,
1306
- default: !1
1307
- },
1308
- /**
1309
- * @property {string} externalSearch
1310
- */
1311
- externalSearch: {
1312
- type: String,
1313
- default: ""
1314
- },
1315
- /**
1316
- * @property {number} searchTabIndex
1317
- */
1318
- searchTabIndex: {
1319
- type: Number,
1320
- default: 0
1321
- },
1322
- /**
1323
- * Temporary solution. Logical conflicts with InRichTextInput
1324
- * @property {boolean} preventFocus
1325
- */
1326
- preventFocus: {
1327
- type: Boolean,
1328
- default: !1
1329
- },
1330
- /**
1331
- * @property {boolean} isWrappedDescription
1332
- */
1333
- isWrappedDescription: {
1334
- type: Boolean,
1335
- default: !1
1336
- },
1337
- preventXss: { type: Boolean, default: !1 },
1338
- /**
1339
- * @property {boolean} allowAddAllCases
1340
- */
1341
- allowAddAllCases: {
1342
- type: Boolean,
1343
- default: !0
1344
- },
1345
- /**
1346
- * @property {string} state
1347
- */
1348
- state: {
1349
- type: String,
1350
- default: "default"
1351
- },
1352
- /**
1353
- * @property {string} stateMessage
1354
- */
1355
- stateMessage: {
1356
- type: String,
1357
- default: ""
1358
- }
1359
- },
1360
- setup(t, { emit: o }) {
1361
- return {
1362
- scrollEvent: fi({
1363
- onScrollEnd: () => {
1364
- o("endScroll", t.fetchPage);
1365
- }
1366
- }).onScroll
1367
- };
1368
- },
1369
- data() {
1370
- return {
1371
- optionsClone: this.options,
1372
- statusClone: this.status,
1373
- preSelectedValuesClone: this.preSelectedValues,
1374
- childOptions: [],
1375
- topPosition: tt,
1376
- bottomPosition: y,
1377
- leftPosition: vt,
1378
- rightPosition: y,
1379
- boxLeftPosition: y,
1380
- boxRightPosition: y,
1381
- boxTopPosition: tt,
1382
- boxBottomPosition: y,
1383
- hoveredValue: "",
1384
- customScrollBarClass: "",
1385
- showInfoBox: !1,
1386
- infoBoxState: {
1387
- id: "",
1388
- theme: "",
1389
- variant: "",
1390
- titleText: "",
1391
- descriptionText: "",
1392
- slot: null,
1393
- slotProps: {},
1394
- buttonOptions: []
1395
- },
1396
- yAlign: ae,
1397
- xAlign: mt,
1398
- scrollArea: document,
1399
- addOptionText: "",
1400
- invalidOption: !1,
1401
- invalidMessage: "",
1402
- searchableContent: "",
1403
- convertedOptions: [],
1404
- convertedOptionsClone: [],
1405
- newSelectedItems: [],
1406
- targetedOption: -1,
1407
- targetedChildOption: -1,
1408
- globalOptionIndex: 0,
1409
- targetOption: {},
1410
- targetChildOption: {},
1411
- componentElement: null
1412
- };
1413
- },
1414
- computed: {
1415
- dropDownLabel() {
1416
- return this.selectedValuesWithAllOptions.length ? (this.localLocales.unselectAll || "Unselect All ({count})").replace("{count}", this.selectedValuesWithAllOptions.length) : this.localLocales.selectAll || "Select All";
1417
- },
1418
- /**
1419
- * @return {array}
1420
- */
1421
- clonedOptionsWithSelected() {
1422
- return this.lazyLoad && this.preSelectedValues.length ? [
1423
- ...this.optionsClone,
1424
- { ...this.preSelectedValues[0], display: "none" }
1425
- ] : this.optionsClone;
1426
- },
1427
- /**
1428
- * @return {boolean}
1429
- */
1430
- indeterminateStatus() {
1431
- return this.selectedValuesWithAllOptions.length > 0 && this.selectedValuesWithAllOptions.length < this.selectableOptions.length;
1432
- },
1433
- /**
1434
- * @return {boolean}
1435
- */
1436
- childMenuOpened() {
1437
- return this.childOptions.length > 0;
1438
- },
1439
- /**
1440
- * @return {array}
1441
- */
1442
- selectableOptions() {
1443
- let t = [];
1444
- return this.options.forEach((o) => {
1445
- var i;
1446
- o.children === void 0 && o.value && !o.disable ? t.push(o) : (i = o.children) == null || i.forEach((s) => {
1447
- var l;
1448
- s.children === void 0 && s.value && !s.disable ? t.push(s) : (l = s.children) == null || l.forEach((a) => {
1449
- a.value && !a.disable && t.push(a);
1450
- });
1451
- });
1452
- }), t;
1453
- },
1454
- /**
1455
- * @return {string|array}
1456
- */
1457
- basedOnWidthClass() {
1458
- return this.boxWidth === "basedOnLongestItem" ? this.searchStatus ? "max-w-22-s" : [
1459
- "in-dropdown-box__wrapper_longest-item",
1460
- this.$style["in-dropdown-box__wrapper_longest-item"]
1461
- ] : !this.searchStatus && this.selectionType === "single" ? [
1462
- this.$style["in-dropdown-box__wrapper_auto-width"]
1463
- ] : "w-1";
1464
- },
1465
- /**
1466
- * @return {array}
1467
- */
1468
- filteredOptionsList() {
1469
- return this.setOrders(this.optionsList.filter((t) => !t.hidden));
1470
- },
1471
- /**
1472
- * @return {array}
1473
- */
1474
- filteredChildOptions() {
1475
- return this.childOptions.filter((t) => !t.hidden);
1476
- },
1477
- /**
1478
- * @return {boolean}
1479
- */
1480
- noSearchResult() {
1481
- return this.lazyLoadSearch || this.options.length > 0 && this.optionsList.length === 0;
1482
- },
1483
- /**
1484
- * @return {boolean}
1485
- */
1486
- noDataToShow() {
1487
- return !this.lazyLoadSearch && this.options.length === 0;
1488
- },
1489
- /**
1490
- * @return {array}
1491
- */
1492
- positionClass() {
1493
- const t = `in-dropdown-box__wrapper_${this.yAlign}-${this.xAlign}`;
1494
- return [
1495
- t,
1496
- this.$style[t]
1497
- ];
1498
- },
1499
- /**
1500
- * @return {string}
1501
- */
1502
- heightStyle() {
1503
- return `max-height: ${this.maxHeight}px`;
1504
- },
1505
- /**
1506
- * @return {boolean}
1507
- */
1508
- validOptionType() {
1509
- return this.optionValidationType === pe.All ? !0 : Object.keys(ce).includes(this.optionValidationType) ? !this.addOptionText.match(ce[this.optionValidationType]) : !!this.addOptionText.match(this.optionValidationType);
1510
- },
1511
- /**
1512
- * @return {boolean}
1513
- */
1514
- validCharacterLimit() {
1515
- return this.addOptionText.trim().length >= +this.minCharacterLimit && this.addOptionText.trim().length <= +this.maxCharacterLimit;
1516
- },
1517
- /**
1518
- * @return {array}
1519
- */
1520
- flattenedOptions() {
1521
- const t = k(this.options);
1522
- return z(t, "children");
1523
- },
1524
- /**
1525
- * @return {boolean}
1526
- */
1527
- isToCreateNewOptionExist() {
1528
- return this.allowAddAllCases ? this.flattenedOptions.some(
1529
- (t) => t.text === this.addOptionText.trim()
1530
- ) : this.flattenedOptions.some(
1531
- (t) => {
1532
- var o;
1533
- return ((o = t.text) == null ? void 0 : o.toLowerCase()) === this.addOptionText.toLowerCase().trim();
1534
- }
1535
- );
1536
- },
1537
- /**
1538
- * @return {array}
1539
- */
1540
- optionsList() {
1541
- var t;
1542
- return (t = this.searchableContent) != null && t.length && !this.lazyLoad ? this.convertedOptionsClone : this.clonedOptionsWithSelected;
1543
- },
1544
- /**
1545
- * @return {array}
1546
- */
1547
- purePreSelectedValues() {
1548
- return this.preSelectedValuesClone.map((t) => t == null ? void 0 : t.value);
1549
- },
1550
- /**
1551
- * Since Preselected values are only consist value and text.
1552
- * This instance returns the preselected values with all options.
1553
- * @return {Array}
1554
- */
1555
- selectedValuesWithAllOptions() {
1556
- const t = k(this.optionsList);
1557
- return z(t, "children").filter((o) => o.value && !o.categoryText && !o.disable && this.purePreSelectedValues.includes(o.value));
1558
- },
1559
- /**
1560
- * Required for disabling chips in the multi select.
1561
- * @return {Array}
1562
- */
1563
- selectedDisabledValues() {
1564
- const t = k(this.clonedOptionsWithSelected);
1565
- return z(t, "children").filter((o) => o.value && !o.categoryText && o.disable && this.purePreSelectedValues.includes(o.value));
1566
- },
1567
- /**
1568
- * @return {boolean}
1569
- */
1570
- showSelectionOptions() {
1571
- return this.selectionType === "multiple" && this.selectAllOptionStatus && !this.loadingState && !this.lazyLoad && !this.noSearchResult && !this.noDataToShow && !this.hasLimit;
1572
- },
1573
- /**
1574
- * @return {string}
1575
- */
1576
- searchAddPlaceHolder() {
1577
- return this.searchStatus && this.createOptionStatus ? this.localLocales.searchAddPlaceholder || "Search or Add value" : this.searchStatus ? this.localLocales.searchPlaceholder || "Search" : this.createOptionStatus ? this.localLocales.addPlaceholder || "Add value" : "";
1578
- },
1579
- /**
1580
- * @return {boolean}
1581
- */
1582
- errorState() {
1583
- return this.state === "error";
1584
- },
1585
- /**
1586
- * @return {boolean}
1587
- */
1588
- warningState() {
1589
- return this.state === "warning";
1590
- }
1591
- },
1592
- watch: {
1593
- options() {
1594
- this.setScrollEvent(), this.convertOptions(), this.handleDynamicPosition(), this.orderOptions();
1595
- },
1596
- preSelectedValues() {
1597
- this.preSelectedValuesClone = this.preSelectedValues, this.updateChildrenBox(this.options), this.setDisabledStatus(), this.addOptionText && !this.lazyLoad && this.searchOption({ target: { value: this.addOptionText } });
1598
- },
1599
- selectedDisabledValues() {
1600
- this.$emit("selectedDisabledValues", this.selectedDisabledValues);
1601
- },
1602
- status() {
1603
- this.statusClone = this.status, this.setScrollEvent(), this.status && this.searchStatus && this.searchOption({ target: { value: "" } }), this.status && this.orderOptions(), this.resetTargetedOptions(-1), this.closeChildrenBox(), this.status && this.$nextTick(() => {
1604
- this.setComponentElement();
1605
- const t = this.searchStatus || this.createOptionStatus ? this.$refs.searchField.$refs.textInput : this.$refs.dropdownBoxContent;
1606
- this.setFocus(t);
1607
- }), this.status || (this.newSelectedItems = []), this.dynamicPosition && (this.status ? this.initDynamicPositioning() : this.killDynamicPositioning());
1608
- },
1609
- staticPosition() {
1610
- this.handleStaticPosition();
1611
- },
1612
- dynamicPosition() {
1613
- this.dynamicPosition ? this.initDynamicPositioning() : (this.killDynamicPositioning(), this.handleStaticPosition());
1614
- },
1615
- loadingState() {
1616
- this.handleDynamicPosition();
1617
- },
1618
- searchStatus() {
1619
- this.convertOptions();
1620
- },
1621
- externalSearch() {
1622
- this.searchableContent = this.externalSearch, this.convertOptions(), this.searchOption({ target: { value: this.externalSearch } });
1623
- }
1624
- },
1625
- mounted() {
1626
- this.initComponent();
1627
- },
1628
- methods: {
1629
- /**
1630
- * @return {void}
1631
- */
1632
- initComponent() {
1633
- navigator.userAgent.includes("Mac OS X") || (this.customScrollBarClass = [
1634
- "in-dropdown-box__custom-scrollbar",
1635
- this.$style["in-dropdown-box__custom-scrollbar"]
1636
- ]), this.status && (this.setComponentElement(), this.setKeydownListeners()), this.convertOptions(), this.setScrollEvent(), this.dynamicPosition && this.status && this.handleDynamicPosition(), this.handleStaticPosition(), setTimeout(() => {
1637
- this.orderOptions();
1638
- }, 100);
1639
- },
1640
- /**
1641
- * @return {void}
1642
- */
1643
- setScrollEvent() {
1644
- setTimeout(() => {
1645
- this.$refs.dropdownBoxContent && (this.$refs.dropdownBoxContent.removeEventListener("scroll", this.scrollEvent), this.$refs.dropdownBoxContent.addEventListener("scroll", this.scrollEvent));
1646
- }, 5);
1647
- },
1648
- /**
1649
- * @return {void}
1650
- */
1651
- setDisabledStatus() {
1652
- this.options.forEach((t) => {
1653
- this.optionsClone.map((o) => (o.value === t.value && (o.disable = t.disable), o));
1654
- });
1655
- },
1656
- /**
1657
- * @return {void}
1658
- */
1659
- setKeydownListeners() {
1660
- var t;
1661
- g(this.componentElement) || (t = this.componentElement) == null || t.addEventListener("keydown", (o) => {
1662
- ue.includes(o.keyCode) && o.preventDefault();
1663
- }, !1);
1664
- },
1665
- /**
1666
- * @param {array} arr
1667
- * @return {array}
1668
- */
1669
- setOrders(t) {
1670
- return this.globalOptionIndex = 0, this.setUniqueIndex(t);
1671
- },
1672
- /**
1673
- * @param {array} arr
1674
- * @param {number} depth
1675
- * @return {array}
1676
- */
1677
- setUniqueIndex(t = [], o = 0) {
1678
- let i = 0;
1679
- return t.map((s) => (s.hidden || s.divider || s.disable || (s.categoryText || (s.order = o ? i++ : this.globalOptionIndex++), s.categoryText && this.setUniqueIndex(s.children), s.children && !s.categoryText && this.setUniqueIndex(s.children, 1)), s));
1680
- },
1681
- /**
1682
- * @return {void}
1683
- */
1684
- triggerPrevNavigation() {
1685
- if (this.childMenuOpened) {
1686
- this.previousChildItem();
1687
- return;
1688
- }
1689
- this.previousItem();
1690
- },
1691
- /**
1692
- * @return {void}
1693
- */
1694
- triggerNextNavigation() {
1695
- if (this.childMenuOpened) {
1696
- this.nextChildItem();
1697
- return;
1698
- }
1699
- this.nextItem();
1700
- },
1701
- /**
1702
- * @return {void}
1703
- */
1704
- previousItem() {
1705
- if (this.targetedOption <= 0) {
1706
- this.targetedOption = this.globalOptionIndex - 1, this.scrollUp();
1707
- return;
1708
- }
1709
- this.targetedOption--, this.scrollUp();
1710
- },
1711
- /**
1712
- * @return {void}
1713
- */
1714
- nextItem() {
1715
- if (this.targetedOption >= this.globalOptionIndex - 1) {
1716
- this.targetedOption = 0, this.scrollDown();
1717
- return;
1718
- }
1719
- this.targetedOption++, this.scrollDown();
1720
- },
1721
- /**
1722
- * @return {void}
1723
- */
1724
- previousChildItem() {
1725
- const { children: t = [] } = this.targetOption;
1726
- if (this.targetedChildOption <= 0) {
1727
- this.targetedChildOption = t.length - 1, this.scrollUp();
1728
- return;
1729
- }
1730
- this.targetedChildOption--, this.scrollUp();
1731
- },
1732
- /**
1733
- * @return {void}
1734
- */
1735
- nextChildItem() {
1736
- const { children: t = [] } = this.targetOption;
1737
- if (this.targetedChildOption >= t.length - 1) {
1738
- this.targetedChildOption = 0, this.scrollDown();
1739
- return;
1740
- }
1741
- this.targetedChildOption++, this.scrollDown();
1742
- },
1743
- /**
1744
- * @return {void}
1745
- */
1746
- triggerChildMenu() {
1747
- if (this.childMenuOpened) {
1748
- this.closeChildrenBox();
1749
- return;
1750
- }
1751
- this.hoveredValue = this.targetOption.value || this.targetOption.text, this.calculateChildrenBoxPosition(), this.targetedChildOption = 0;
1752
- const { children: t = [] } = this.targetOption;
1753
- g(t) || this.fillChildrenOptions(t);
1754
- },
1755
- /**
1756
- * @param {object} event
1757
- * @return {void}
1758
- */
1759
- handleKeyDown(t) {
1760
- if (!g(this.filteredOptionsList))
1761
- switch (t.keyCode) {
1762
- case P.ArrowUp:
1763
- this.triggerPrevNavigation();
1764
- break;
1765
- case P.ArrowDown:
1766
- this.triggerNextNavigation();
1767
- break;
1768
- case P.ArrowLeft:
1769
- this.triggerChildMenu();
1770
- break;
1771
- case P.ArrowRight:
1772
- this.triggerChildMenu();
1773
- break;
1774
- case P.Enter:
1775
- this.optionClickHandler(this.childMenuOpened ? this.targetChildOption : this.targetOption);
1776
- break;
1777
- case P.Space:
1778
- this.optionClickHandler(this.childMenuOpened ? this.targetChildOption : this.targetOption);
1779
- break;
1780
- }
1781
- },
1782
- /**
1783
- * @return {void}
1784
- */
1785
- scrollDown() {
1786
- var t, o;
1787
- let i = this.childMenuOpened ? this.targetedChildOption : this.targetedOption;
1788
- i = i >= 0 ? i : 0;
1789
- const s = this.childMenuOpened ? this.$refs.dropdownChildBoxContent.$el : this.$refs.dropdownBoxContent, l = this.childMenuOpened ? this.filteredChildOptions : this.filteredOptionsList, a = `.in-dropdown-box-item-${i}${this.childMenuOpened ? "-child" : ""}`, p = g(this.componentElement) ? "" : (o = (t = this.componentElement) == null ? void 0 : t.querySelector(a)) == null ? void 0 : o.getBoundingClientRect().bottom, u = s.getBoundingClientRect().bottom, _ = p - u, c = i === l.length - 1;
1790
- if (p) {
1791
- if (i > 0) {
1792
- c && (s.scrollBy(0, s.scrollHeight), this.$nextTick(() => {
1793
- this.scrollEvent({ target: s });
1794
- })), _ > 0 && !c && s.scrollBy(0, _);
1795
- return;
1796
- }
1797
- s.scrollTop = 0;
1798
- }
1799
- },
1800
- /**
1801
- * @return {void}
1802
- */
1803
- scrollUp() {
1804
- var t, o;
1805
- let i = this.childMenuOpened ? this.targetedChildOption : this.targetedOption;
1806
- i = i >= 0 ? i : 0;
1807
- const s = this.childMenuOpened ? this.$refs.dropdownChildBoxContent.$el : this.$refs.dropdownBoxContent, l = `.in-dropdown-box-item-${i}${this.childMenuOpened ? "-child" : ""}`, a = g(this.componentElement) ? "" : (o = (t = this.componentElement) == null ? void 0 : t.querySelector(l)) == null ? void 0 : o.getBoundingClientRect().top, p = s.getBoundingClientRect().top, u = s.scrollHeight, _ = document.querySelector(".in-dropdown-box__category-text"), c = _ ? _.clientHeight : 0, h = p - a + c, { children: x = [] } = this.targetOption, f = this.childMenuOpened ? x.length : this.globalOptionIndex;
1808
- if (a) {
1809
- if (i < f - 1) {
1810
- h > 0 && s.scrollBy(0, -h);
1811
- return;
1812
- }
1813
- s.scrollBy(0, u);
1814
- }
1815
- },
1816
- closeDropdownBox() {
1817
- this.invalidOption = !1, this.resetTargetedOptions(-1), this.$emit("clickOutside");
1818
- },
1819
- /**
1820
- * @param {array} children
1821
- * @param {boolean} sorting
1822
- */
1823
- fillChildrenOptions(t, o = !0) {
1824
- o && (t = t.sort((i, s) => this.purePreSelectedValues.includes(s.value) ? 1 : this.purePreSelectedValues.includes(i.value) ? -1 : 0)), this.childOptions = t;
1825
- },
1826
- /**
1827
- * @param {object} option
1828
- */
1829
- setMouseEnterValue(t = {}) {
1830
- var o;
1831
- const i = t.value || t.text, s = t.order;
1832
- i !== this.hoveredValue && ((o = t == null ? void 0 : t.children) != null && o.every((l) => l.disabled) || (this.childOptions = [], this.hoveredValue = Fo(i) ? String(i[0]) : String(i), this.calculateChildrenBoxPosition(), this.targetedOption = qo(s) ? -1 : t.order));
1833
- },
1834
- async calculateChildrenBoxPosition() {
1835
- var t, o;
1836
- if (g(this.componentElement))
1837
- return;
1838
- await this.$nextTick();
1839
- const i = (t = this.componentElement) == null ? void 0 : t.querySelector("#children-box"), s = (o = this.componentElement) == null ? void 0 : o.querySelectorAll("[data-attr-value]"), l = Array.from(s).find((p) => Array.from(p.attributes).find((u) => u.name === "data-attr-value" && u.value === this.hoveredValue)), a = this.getChildrenBoxPosition(i, l, "childrenBox");
1840
- g(a) || (this.topPosition = a.top, this.bottomPosition = a.bottom, this.leftPosition = a.left, this.rightPosition = a.right);
1841
- },
1842
- /**
1843
- * @param {string} value
1844
- * @param {boolean} thirdLevel
1845
- * @return {void}
1846
- */
1847
- async calculateInfoBoxPosition(t, o = !1) {
1848
- var i;
1849
- if (g(this.componentElement))
1850
- return;
1851
- await this.$nextTick();
1852
- const s = this.$refs.infoBox.$el, l = (i = this.componentElement) == null ? void 0 : i.querySelectorAll("[data-attr-value]"), a = Array.from(l).find((u) => Array.from(u.attributes).find((_) => _.name === "data-attr-value" && String(_.value) === String(t))), p = this.getChildrenBoxPosition(s, a, "infoBox", o);
1853
- g(p) || (this.boxTopPosition = p.top, this.boxBottomPosition = p.bottom, this.boxLeftPosition = p.left, this.boxRightPosition = p.right);
1854
- },
1855
- /**
1856
- * @param {object} event
1857
- */
1858
- focusLost(t) {
1859
- var o;
1860
- (o = t.relatedTarget) != null && o.closest(".in-info-box") || (this.childOptions = []);
1861
- },
1862
- /**
1863
- * @param {object} event
1864
- */
1865
- searchOption(t) {
1866
- if (ue.includes(t.keyCode) && !g(this.filteredOptionsList) && (this.setFocus(this.$refs.dropdownBoxContent), t.keyCode === P.ArrowUp && this.triggerPrevNavigation(), t.keyCode === P.ArrowDown && this.triggerNextNavigation()), this.setAddOptionValue(t.target.value), !this.searchStatus && !this.externalSearch || (this.searchableContent = t.target.value, this.$emit("search", t.target.value), this.lazyLoad))
1867
- return;
1868
- const o = ee(t.target.value);
1869
- if (this.closeChildrenBox(), this.$nextTick(() => {
1870
- this.handleDynamicPosition();
1871
- }), !o) {
1872
- this.optionsClone = this.options;
1873
- return;
1874
- }
1875
- let i = k(this.convertedOptions);
1876
- i.forEach((l) => {
1877
- l.value && (l.disable = l.disable || !this.canSelectOption && !this.checkSelectedItem(l.value)), l.children && l.children.forEach((a) => {
1878
- a.value && (a.disable = a.disable || !this.canSelectOption && !this.checkSelectedItem(a.value)), a.children && a.children.forEach((p) => {
1879
- p.value && (p.disable = p.disable || !this.canSelectOption && !this.checkSelectedItem(p.value));
1880
- });
1881
- });
1882
- });
1883
- const s = this.splitCommaSeparatedValues(t.target.value);
1884
- if (s.length > 1) {
1885
- let l = [];
1886
- const a = /* @__PURE__ */ new Set();
1887
- s.forEach((p) => {
1888
- const u = ee(p.trim());
1889
- u && oe(
1890
- i,
1891
- ["text", "description"],
1892
- u,
1893
- "divider",
1894
- "hidden"
1895
- ).forEach((_) => {
1896
- const c = _.value || _.text;
1897
- a.has(c) || (a.add(c), l.push(_));
1898
- });
1899
- }), this.convertedOptionsClone = l;
1900
- } else
1901
- this.convertedOptionsClone = oe(i, ["text", "description"], o, "divider", "hidden");
1902
- },
1903
- /**
1904
- * Split input by comma separators (including variants with spaces)
1905
- * @param {string} input
1906
- * @return {array}
1907
- */
1908
- splitCommaSeparatedValues(t) {
1909
- return !t || typeof t != "string" ? [] : t.split(/\s*,\s*/);
1910
- },
1911
- closeChildrenBox() {
1912
- this.targetedChildOption = -1, this.targetChildOption = {}, this.childOptions = [], this.hoveredValue = "", this.showInfoBox = !1;
1913
- },
1914
- /**
1915
- * @param {object} params
1916
- * @param {boolean} thirdLevel
1917
- */
1918
- openInfoBox(t, o = !1) {
1919
- this.infoBoxState = t.props, this.showInfoBox = !0, this.calculateInfoBoxPosition(t.value || t.text, o);
1920
- },
1921
- handleDynamicPosition() {
1922
- var t;
1923
- if (!this.dynamicPosition)
1924
- return;
1925
- this.childMenuOpened && this.calculateChildrenBoxPosition();
1926
- const o = this.getDynamicPosition(this.componentElement, (t = this.componentElement) == null ? void 0 : t.parentNode);
1927
- this.xAlign = o.left ? mt : mi, this.yAlign = o.bottom ? ae : le;
1928
- },
1929
- handleStaticPosition() {
1930
- if (this.dynamicPosition)
1931
- return;
1932
- const t = this.staticPosition.split(" "), o = t[0], i = t[1];
1933
- this.yAlign = o, this.xAlign = i;
1934
- },
1935
- getStaticChildPosition() {
1936
- const t = this.staticChildPosition.split(" "), o = t[0] === le, i = t[1] === mt;
1937
- return {
1938
- left: i,
1939
- right: !i,
1940
- bottom: !o,
1941
- top: o
1942
- };
1943
- },
1944
- /**
1945
- * @param {Element|null} target
1946
- * @param {Element|null} parent
1947
- * @param {boolean} nested
1948
- * @return {object}
1949
- */
1950
- getDynamicPosition(t, o, i = !1) {
1951
- if (g(t) || g(o))
1952
- return {};
1953
- const s = window.innerWidth, l = window.innerHeight, a = t.clientHeight, p = t.clientWidth, u = o.getBoundingClientRect(), _ = i ? u.right : u.left, c = i ? u.top : u.bottom, h = _ + p < s, x = c + a < l - this.bottomOffsetForDynamicPosition;
1954
- return {
1955
- left: h,
1956
- right: !h,
1957
- bottom: x,
1958
- top: !x
1959
- };
1960
- },
1961
- /**
1962
- * @param {object} target
1963
- * @param {object} parent
1964
- * @return {object}
1965
- */
1966
- getChildrenDynamicPosition(t, o) {
1967
- if (g(t) || g(o))
1968
- return {};
1969
- const i = t.clientHeight, s = t.clientWidth, l = o.getBoundingClientRect(), a = this.getOverflowParent(o);
1970
- let p;
1971
- a && a instanceof Element ? p = a.getBoundingClientRect() : p = {
1972
- left: 0,
1973
- right: window.innerWidth,
1974
- top: 0,
1975
- bottom: window.innerHeight - this.bottomOffsetForDynamicPosition
1976
- };
1977
- const u = l.left - p.left, _ = p.right - l.right, c = l.top - p.top, h = p.bottom - l.bottom, x = u >= s, f = _ >= s, m = c >= i, w = h >= i;
1978
- return {
1979
- left: x,
1980
- right: f,
1981
- top: m,
1982
- bottom: w
1983
- };
1984
- },
1985
- /**
1986
- * @param {object} target
1987
- * @param {object} parent
1988
- * @return {boolean}
1989
- */
1990
- checkLeftSpace(t, o = !1) {
1991
- const i = o ? o.getBoundingClientRect() : {};
1992
- return Object.keys(i).length ? i.left - ((t == null ? void 0 : t.clientWidth) || 0) > 0 : !1;
1993
- },
1994
- /**
1995
- * @param {object} target
1996
- * @param {object} anchor
1997
- * @param {object} offset
1998
- * @param {boolean} thirdLevel
1999
- * @return {object}
2000
- */
2001
- getChildrenBoxPosition(t, o = !1, i = "childrenBox", s = !1) {
2002
- var l, a;
2003
- const p = this.dynamicChildPosition ? this.getChildrenDynamicPosition(t, o) : this.getStaticChildPosition();
2004
- if (g(p))
2005
- return {};
2006
- let u, _, c, h;
2007
- const x = (l = this.componentElement) == null ? void 0 : l.getBoundingClientRect(), f = o ? o.getBoundingClientRect() : {}, m = ((x == null ? void 0 : x.height) / ((a = this.componentElement) == null ? void 0 : a.offsetHeight) || 1).toFixed(2), w = i === "infoBox";
2008
- let b = w ? 4 : 8;
2009
- s ? (!p.left && !p.right ? (c = y, h = tt) : p.right ? (c = `${(f.right - x.left) / m}px`, h = y) : (c = y, h = `${(x.right - f.left) / m}px`), !p.top && !p.bottom ? (u = (f.top - x.top) / m, _ = y) : p.bottom ? (u = (f.top - x.top - b) / m, _ = y) : (b = w ? 1 : b, u = y, _ = (x.bottom - f.bottom - b) / m)) : (!p.left && !p.right ? (c = y, h = tt) : p.left ? (c = y, h = vt) : (c = vt, h = y), !p.top && !p.bottom || p.bottom ? (u = (f.top - x.top - b) / m, _ = y) : (b = w ? 1 : b, u = y, _ = (x.bottom - f.bottom - b) / m));
2010
- const B = ($) => typeof $ == "number" ? `${$}px` : $;
2011
- return {
2012
- top: B(u),
2013
- bottom: B(_),
2014
- left: B(c),
2015
- right: B(h)
2016
- };
2017
- },
2018
- /**
2019
- * @param {object} element
2020
- * @return {object}
2021
- */
2022
- isScrollable(t) {
2023
- const o = t.scrollHeight > t.clientHeight, i = window.getComputedStyle(t).overflowY, s = [y, Z].includes(i);
2024
- return o && s;
2025
- },
2026
- /**
2027
- * @param {object} element
2028
- * @return {object}
2029
- */
2030
- isOverflowParent(t) {
2031
- const o = window.getComputedStyle(t).overflow;
2032
- return [y, Z, vi].includes(o);
2033
- },
2034
- /**
2035
- * @param {object} element
2036
- * @return {object}
2037
- */
2038
- getScrollableParent(t) {
2039
- const o = t.nodeType === he;
2040
- return !t || o || t === document ? document : this.isScrollable(t) ? t : this.getScrollableParent(t.parentNode);
2041
- },
2042
- /**
2043
- * @param {object} element
2044
- * @return {object}
2045
- */
2046
- getOverflowParent(t) {
2047
- const o = (t == null ? void 0 : t.nodeType) === he;
2048
- return !t || o || t === document ? document : this.isOverflowParent(t) ? t : this.getOverflowParent(t.parentNode);
2049
- },
2050
- initDynamicPositioning() {
2051
- this.$nextTick(() => {
2052
- this.handleDynamicPosition(), this.scrollArea = this.getScrollableParent(this.$el), this.scrollArea.addEventListener(Z, this.handleDynamicPosition), this.overflowParent = this.getOverflowParent(this.$el), window.addEventListener("resize", this.handleDynamicPosition);
2053
- });
2054
- },
2055
- killDynamicPositioning() {
2056
- this.scrollArea.removeEventListener(Z, this.handleDynamicPosition), window.removeEventListener("resize", this.handleDynamicPosition);
2057
- },
2058
- addOptionHandler() {
2059
- const t = this.splitCommaSeparatedValues(this.addOptionText);
2060
- if (t.length > 1) {
2061
- const o = t.map((i) => i.trim()).filter((i) => i);
2062
- this.$emit("addMultipleValue", o), this.addOptionText = "", this.searchOption({ target: { value: "" } });
2063
- } else {
2064
- const o = [
2065
- { message: this.optionValidationText, invalid: !this.validOptionType },
2066
- { message: this.characterLimitValidationText, invalid: !this.validCharacterLimit },
2067
- { message: this.sameValueExistsValidationText, invalid: this.isToCreateNewOptionExist }
2068
- ].filter((i) => i.invalid);
2069
- this.invalidMessage = o.length ? o[0].message : "", this.invalidOption = !this.validOptionType || !this.validCharacterLimit || this.isToCreateNewOptionExist, this.invalidOption || (this.$emit("addOption", this.addOptionText.trim()), this.addOptionText = "", this.searchOption({ target: { value: "" } }));
2070
- }
2071
- this.handleDynamicPosition();
2072
- },
2073
- /**
2074
- * @param {string} value
2075
- */
2076
- setAddOptionValue(t) {
2077
- this.addOptionText = t, this.invalidOption = !1;
2078
- },
2079
- /**
2080
- * @return {void}
2081
- */
2082
- secondaryButtonClickHandler() {
2083
- this.$emit("secondaryButtonClick");
2084
- },
2085
- /**
2086
- * @return {void}
2087
- */
2088
- emptyValueInputHandler() {
2089
- this.invalidMessage = "Please do not attempt to create empty values", this.invalidOption = !0;
2090
- },
2091
- /**
2092
- * @return {void}
2093
- */
2094
- onCheckBoxClick() {
2095
- if (!this.selectedValuesWithAllOptions.length) {
2096
- this.selectAllOptions();
2097
- return;
2098
- }
2099
- this.resetAllOptions();
2100
- },
2101
- /**
2102
- * @return {void}
2103
- */
2104
- selectAllOptions() {
2105
- if (!this.canSelectOption)
2106
- return;
2107
- this.newSelectedItems = [];
2108
- const t = k(this.optionsList);
2109
- z(t, "children").forEach((o) => {
2110
- o.value && !o.categoryText && !o.disable && !this.purePreSelectedValues.includes(o.value) && this.preSelectedValuesClone.push({ text: o.text, value: o.value });
2111
- }), this.optionsList.forEach((o) => {
2112
- o.categoryText && o.children ? o.children.forEach((i) => {
2113
- i.children && this.purePreSelectedValues.includes(i.value) && this.preSelectedValuesClone.splice(
2114
- this.purePreSelectedValues.indexOf(i.value),
2115
- 1
2116
- );
2117
- }) : o.children && this.purePreSelectedValues.includes(o.value) && this.preSelectedValuesClone.splice(this.purePreSelectedValues.indexOf(o.value), 1);
2118
- }), this.$emit("selectAllOptions", this.preSelectedValuesClone);
2119
- },
2120
- /**
2121
- * @return {void}
2122
- */
2123
- resetAllOptions() {
2124
- const t = k(this.optionsList), o = z(t, "children");
2125
- this.newSelectedItems = [], o.forEach((i) => {
2126
- i.value && !i.disable && this.purePreSelectedValues.includes(i.value) && this.preSelectedValuesClone.splice(
2127
- this.purePreSelectedValues.indexOf(i.value),
2128
- 1
2129
- );
2130
- }), this.$emit("resetAllOptions", this.preSelectedValuesClone);
2131
- },
2132
- /**
2133
- * @return {void}
2134
- */
2135
- orderOptions() {
2136
- let t = k(this.options);
2137
- this.selectionType === "multiple" && (this.sortOptions(t), t.forEach((o) => {
2138
- o.children && this.sortOptions(o.children);
2139
- })), this.optionsClone = t;
2140
- },
2141
- /**
2142
- * @param {string} value
2143
- * @return {void}
2144
- */
2145
- checkSelectedItem(t) {
2146
- return this.purePreSelectedValues.includes(t);
2147
- },
2148
- /**
2149
- * @param {string} value
2150
- * @return {void}
2151
- */
2152
- checkNewSelectedItem(t) {
2153
- return this.newSelectedItems.includes(t);
2154
- },
2155
- /**
2156
- * @param {object} option
2157
- * @return {boolean}
2158
- */
2159
- checkAllChildrenSelection(t) {
2160
- return t.children ? t.children.some((o) => o.children ? this.checkAllChildrenSelection(o) : this.checkSelectedItem(o.value) && !this.checkNewSelectedItem(o.value) && !o.disable) : this.checkSelectedItem(t.value) && !this.checkNewSelectedItem(t.value) && !t.disable;
2161
- },
2162
- /**
2163
- * @param {array} arr
2164
- * @return {array}
2165
- */
2166
- sortOptions(t) {
2167
- const o = Object.values(t).map((i) => i.value);
2168
- return t.sort((i, s) => this.checkSelectedItem(i.value) && !this.checkNewSelectedItem(i.value) ? -1 : this.checkSelectedItem(s.value) && !this.checkNewSelectedItem(s.value) ? 1 : 0).sort((i, s) => {
2169
- if (this.checkAllChildrenSelection(i) && this.checkAllChildrenSelection(s))
2170
- return o.indexOf(i.value) < o.indexOf(s.value) ? -1 : 1;
2171
- });
2172
- },
2173
- /**
2174
- * @return {void}
2175
- */
2176
- convertOptions() {
2177
- if (!this.searchStatus && !this.externalSearch)
2178
- return;
2179
- const t = k(this.options), o = [];
2180
- t.forEach((i) => {
2181
- if (i.children && i.text && !i.categoryText && (i.categoryText = i.text.toUpperCase()), i.categoryText && i.children.some((s) => s.children)) {
2182
- const s = {
2183
- categoryText: i.categoryText.toUpperCase(),
2184
- children: []
2185
- }, l = [];
2186
- i.children.slice().reverse().forEach((a) => {
2187
- a.children ? (a.categoryText = `${i.categoryText.toUpperCase()} / ${a.text.toUpperCase()}`, l.unshift(a)) : s.children.unshift(a);
2188
- }), s.children.length > 0 && l.unshift(s), o.push(...l);
2189
- } else
2190
- o.push(i);
2191
- }), this.convertedOptions = o;
2192
- },
2193
- /**
2194
- * @param {object} option
2195
- * @return {object}
2196
- */
2197
- optionClickHandler(t) {
2198
- g(t) || (this.newSelectedItems.push(t.value), this.hoveredValue = "", this.$emit("optionClick", t));
2199
- },
2200
- /**
2201
- * @param {object} option
2202
- * @return {object}
2203
- */
2204
- targetOptionValue(t) {
2205
- this.targetOption = t, g(this.targetOption.children) || (this.targetOption.children = this.targetOption.children.filter((o) => !o.hidden && !o.divider));
2206
- },
2207
- /**
2208
- * @param {object} option
2209
- * @return {object}
2210
- */
2211
- targetChildOptionValue(t) {
2212
- this.targetChildOption = t, g(this.targetChildOption.children) || (this.targetChildOption.children = this.targetChildOption.children.filter((o) => !o.hidden && !o.divider));
2213
- },
2214
- /**
2215
- * @param {number} value
2216
- * @return {object}
2217
- */
2218
- resetTargetedOptions(t = -1) {
2219
- this.targetedOption = t, this.targetedChildOption = t, this.targetOption = {}, this.targetChildOption = {};
2220
- },
2221
- /**
2222
- * @param {array} arr
2223
- * @return {void}
2224
- */
2225
- updateChildrenBox(t) {
2226
- var o;
2227
- if (!this.childMenuOpened)
2228
- return;
2229
- const i = t.filter((l) => l.children);
2230
- i.forEach((l) => {
2231
- l.children && this.updateChildrenBox(l.children);
2232
- });
2233
- const s = (o = i.filter((l) => l.children.map((a) => a.value).every((a) => this.childOptions.map((p) => p.value).includes(a)))[0]) == null ? void 0 : o.children;
2234
- s && this.fillChildrenOptions(s, !1);
2235
- },
2236
- /**
2237
- * @param {object} focusTarget
2238
- * @return {void}
2239
- */
2240
- setFocus(t = {}) {
2241
- g(t) || this.preventFocus || t.focus({ focusVisible: !0 });
2242
- },
2243
- setComponentElement() {
2244
- var t;
2245
- this.componentElement = (t = this.$refs.dropdownBox) == null ? void 0 : t.$el;
2246
- }
2247
- }
2248
- };
2249
- var Si = function() {
2250
- var t = this, o = t._self._c;
2251
- return t.statusClone ? o("in-box", { directives: [{ name: "click-outside", rawName: "v-click-outside.parentCheck", value: t.closeDropdownBox, expression: "closeDropdownBox", modifiers: { parentCheck: !0 } }], ref: "dropdownBox", staticClass: "in-dropdown-box__wrapper in-dropdown-box__container", class: [
2252
- t.$style["in-dropdown-box__wrapper"],
2253
- t.$style["in-dropdown-box__container"],
2254
- t.basedOnWidthClass,
2255
- t.positionClass
2256
- ], style: t.heightStyle, attrs: { border: "bor-w-0 bor-s-n" } }, [t.stateMessage && (t.warningState || t.errorState) ? o("div", { staticClass: "in-dropdown-box__state-wrapper", class: [
2257
- t.$style["in-dropdown-box__state-wrapper"],
2258
- {
2259
- "in-dropdown-box__state-wrapper_warning": t.warningState,
2260
- [t.$style["in-dropdown-box__state-wrapper_warning"]]: t.warningState
2261
- },
2262
- {
2263
- "in-dropdown-box__state-wrapper_error": t.errorState,
2264
- [t.$style["in-dropdown-box__state-wrapper_error"]]: t.errorState
2265
- }
2266
- ] }, [t.warningState || t.errorState ? o("in-icons", { staticClass: "in-dropdown-box__state-icon", class: [
2267
- t.$style["in-dropdown-box__state-icon"],
2268
- {
2269
- "in-dropdown-box__state-icon--warning": t.warningState,
2270
- [t.$style["in-dropdown-box__state-icon--warning"]]: t.warningState
2271
- },
2272
- {
2273
- "in-dropdown-box__state-icon--error": t.errorState,
2274
- [t.$style["in-dropdown-box__state-icon--error"]]: t.errorState
2275
- }
2276
- ], attrs: { name: t.warningState ? "filled-caution-triangle-colored" : "filled-error-box-colored", size: "16" } }) : t._e(), o("p", { staticClass: "in-dropdown-box__state-message", class: t.$style["in-dropdown-box__state-message"] }, [t._v(" " + t._s(t.stateMessage) + " ")])], 1) : t._e(), t.searchStatus || t.createOptionStatus ? o("div", { staticClass: "in-dropdown-box__search-container", class: [
2277
- t.$style["in-dropdown-box__search-container"],
2278
- {
2279
- "in-dropdown-box__search-container-border": t.createOptionStatus,
2280
- [t.$style["in-dropdown-box__search-container-border"]]: t.createOptionStatus
2281
- }
2282
- ] }, [o("in-text-input", { ref: "searchField", attrs: { id: "dropdownBox", name: "dropdownBox", placeholder: t.searchAddPlaceHolder, "icon-name": "line-menu-search", "icon-position": "right", "tab-index": t.searchTabIndex, small: !0, value: t.addOptionText, "with-icon": !0, "with-label": !1, invalid: t.invalidOption, "invalid-message": t.invalidMessage }, on: { emptyValueInput: t.emptyValueInputHandler }, nativeOn: { keyup: function(i) {
2283
- return t.searchOption.apply(null, arguments);
2284
- } } }), t.createOptionStatus ? o("div", { staticClass: "in-dropdown-box__add-value", class: t.$style["in-dropdown-box__add-value"] }, [o("in-button-v2", { staticClass: "mr-2", attrs: { id: "createButton", styling: "text", type: "primary", "left-icon": "line-plus-netural", "label-text": t.createButtonLabel }, on: { click: t.addOptionHandler } })], 1) : t._e()], 1) : t._e(), t.loadingState ? o("div", { staticClass: "in-dropdown-box__loading", class: t.$style["in-dropdown-box__loading"] }, [o("in-loading", { attrs: { "color-class": "in-dropdown-box__empty-icon" } }), o("p", { staticClass: "in-dropdown-box__loading-text", class: t.$style["in-dropdown-box__loading-text"] }, [t._v(" " + t._s(t.localLocales.loading || "LOADING...") + " ")])], 1) : t._e(), t.noSearchResult && !t.loadingState && !t.externalSearch ? o("div", { staticClass: "in-dropdown-box__empty-list", class: t.$style["in-dropdown-box__empty-list"] }, [o("in-icons", { staticClass: "in-dropdown-box__empty-icon", class: t.$style["in-dropdown-box__empty-icon"], attrs: { name: "line-architect-predefined-segments-channel-actions-40", size: "40" } }), o("p", { staticClass: "in-dropdown-box__empty-list-text", class: t.$style["in-dropdown-box__empty-list-text"] }, [t._v(" " + t._s(t.localLocales.noSearchResult || "No Search Result") + " ")])], 1) : t._e(), t.noDataToShow && !t.loadingState ? o("div", { staticClass: "in-dropdown-box__empty-list", class: t.$style["in-dropdown-box__empty-list"] }, [o("in-icons", { staticClass: "in-dropdown-box__empty-icon", class: t.$style["in-dropdown-box__empty-icon"], attrs: { name: "line-dropdown-empty", size: "40" } }), o("p", { staticClass: "in-dropdown-box__empty-list-text", class: t.$style["in-dropdown-box__empty-list-text"] }, [t._v(" " + t._s(t.localLocales.noData || "No Data to Show") + " ")])], 1) : t._e(), !t.loadingState && !t.noSearchResult && t.filteredOptionsList.length ? o("div", { ref: "dropdownBoxContent", staticClass: "in-dropdown-box in-dropdown-box__items-list", class: [
2285
- t.$style["in-dropdown-box"],
2286
- t.$style["in-dropdown-box__items-list"],
2287
- t.customScrollBarClass
2288
- ], attrs: { tabindex: "3" }, on: { mouseleave: t.closeChildrenBox, keydown: function(i) {
2289
- return i.preventDefault(), (() => {
2290
- }).apply(null, arguments);
2291
- }, keyup: function(i) {
2292
- return i.preventDefault(), t.handleKeyDown.apply(null, arguments);
2293
- } } }, [t._l(t.filteredOptionsList, function(i, s) {
2294
- return o("div", { key: s }, [o("dropdown-option", { attrs: { option: i, index: s, order: i.order, "pre-selected-values": t.preSelectedValuesClone, "hovered-value": t.hoveredValue, "selection-type": t.selectionType, "targeted-option-index": t.targetedOption, "is-wrapped-description": t.isWrappedDescription, "prevent-xss": t.preventXss }, on: { closeInfoBox: function(l) {
2295
- t.showInfoBox = !1;
2296
- }, mouseEnterValue: t.setMouseEnterValue, fillChildrenOptions: t.fillChildrenOptions, openInfoBox: t.openInfoBox, targetOptionValue: t.targetOptionValue, optionClick: t.optionClickHandler } })], 1);
2297
- }), t.childMenuOpened ? o("in-box", { ref: "dropdownChildBoxContent", staticClass: "in-dropdown-box in-dropdown-box__child-container", class: [
2298
- t.$style["in-dropdown-box"],
2299
- t.$style["in-dropdown-box__child-container"]
2300
- ], style: {
2301
- top: t.topPosition,
2302
- bottom: t.bottomPosition,
2303
- left: t.leftPosition,
2304
- right: t.rightPosition,
2305
- maxHeight: `${t.maxChildHeight || t.maxHeight}px`
2306
- }, attrs: { id: "children-box", border: "bor-w-0 bor-s-n" }, nativeOn: { mouseleave: function(i) {
2307
- return t.focusLost.apply(null, arguments);
2308
- } } }, t._l(t.filteredChildOptions, function(i, s) {
2309
- return o("div", { key: s }, [o("dropdown-option", { attrs: { option: i, "pre-selected-values": t.preSelectedValuesClone, "selection-type": t.selectionType, "targeted-child-option-index": t.targetedChildOption, "is-child": !0, "is-wrapped-description": t.isWrappedDescription, "prevent-xss": t.preventXss }, on: { closeInfoBox: function(l) {
2310
- t.showInfoBox = !1;
2311
- }, openInfoBox: (l) => t.openInfoBox(l, !0), targetChildOptionValue: t.targetChildOptionValue, optionClick: t.optionClickHandler } })], 1);
2312
- }), 0) : t._e(), t.showInfoBox ? o("in-info-box", t._b({ ref: "infoBox", staticClass: "p-a z-3", class: t.infoBoxState.className, style: {
2313
- top: t.boxTopPosition,
2314
- bottom: t.boxBottomPosition,
2315
- left: t.boxLeftPosition,
2316
- right: t.boxRightPosition
2317
- }, on: { click: (i) => t.$emit("infoBoxButtonClick", i), clickIcon: (i) => t.$emit("infoBoxClickIcon", i) }, nativeOn: { mouseleave: function(i) {
2318
- t.showInfoBox = !1;
2319
- } } }, "in-info-box", t.infoBoxState, !1), [t.infoBoxState.slot ? [o(t.infoBoxState.slot, t._b({ tag: "component" }, "component", t.infoBoxState.slotProps, !1))] : t._e(), t._t("dropdownMenuInfoBox", null, { data: t.infoBoxState })], 2) : t._e()], 2) : t._e(), t.showSelectionOptions ? o("div", { staticClass: "in-dropdown-box__button", class: t.$style["in-dropdown-box__button"] }, [o("in-check-box", { attrs: { id: "selectAll", name: "selectAll", checked: t.selectedValuesWithAllOptions.length === t.selectableOptions.length, label: t.dropDownLabel, indeterminate: t.indeterminateStatus }, on: { click: t.onCheckBoxClick } })], 1) : t._e(), t.buttonStatus ? o("div", { staticClass: "in-dropdown-box__button", class: t.$style["in-dropdown-box__button"] }, [o("in-button-v2", { attrs: { id: "secondaryButton", styling: "text", type: "primary", "label-text": t.buttonLabel, "left-icon": t.buttonIcon }, on: { click: t.secondaryButtonClickHandler } })], 1) : t._e()]) : t._e();
2320
- }, Oi = [];
2321
- const _e = {
2322
- $style: ot
2323
- };
2324
- function Bi(t) {
2325
- for (var o in _e)
2326
- this[o] = _e[o];
2327
- }
2328
- var $i = /* @__PURE__ */ et(
2329
- Ci,
2330
- Si,
2331
- Oi,
2332
- !1,
2333
- Bi
2334
- );
2335
- const Hi = $i.exports;
2336
- export {
2337
- Hi as I,
2338
- k as c
2339
- };