@useinsider/guido 3.16.0 → 3.17.0-beta.3e9d6e7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/@types/config/schemas.js +12 -6
- package/dist/components/Guido.vue.js +6 -6
- package/dist/components/Guido.vue2.js +63 -61
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +18 -0
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +67 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue2.js +55 -0
- package/dist/composables/useCustomInterfaceAppearance.js +19 -16
- package/dist/composables/useRecommendation.js +43 -35
- package/dist/composables/useStripo.js +30 -29
- package/dist/config/migrator/itemsBlockMigrator.js +1 -1
- package/dist/config/migrator/recommendationMigrator.js +6 -4
- package/dist/enums/date.js +4 -3
- package/dist/enums/extensions/recommendationBlock.js +25 -23
- package/dist/enums/recommendation.js +17 -17
- package/dist/extensions/Blocks/Items/enums/productEnums.js +45 -45
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +13 -11
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +37 -26
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +115 -87
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +132 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +198 -51
- package/dist/extensions/Blocks/Recommendation/utils/productIds.js +6 -0
- package/dist/extensions/Blocks/common-control.js +22 -19
- package/dist/guido.css +1 -1
- package/dist/node_modules/@useinsider/design-system-organisms/dist/index-Dc9AygoZ.js +526 -0
- package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +9345 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +174 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +381 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +236 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +70 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +350 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +371 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +152 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +141 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +1047 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +96050 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +2042 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +166 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +1098 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +55 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +265 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +184 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +50 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +453 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +145 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +176 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +266 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +114 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +200 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +451 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +49 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +119 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +4309 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +129 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +503 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +253 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +107 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +134 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +464 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +28 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +23 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +29 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +109 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +2339 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +16 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +17 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +188 -0
- package/dist/services/recommendationApi.js +77 -28
- package/dist/src/@types/config/schemas.d.ts +12 -0
- package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +3 -0
- package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBox.vue.d.ts +24 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +12 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +37 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +210 -10
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/productIds.d.ts +6 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +4 -1
- package/dist/src/mock/api/recommendation-strategies.d.ts +43 -0
- package/dist/src/services/recommendationApi.d.ts +4 -1
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +171 -0
- package/dist/utils/dateUtil.js +23 -10
- package/dist/utils/templatePreparation.js +37 -34
- package/package.json +2 -1
|
@@ -0,0 +1,4309 @@
|
|
|
1
|
+
import { i as he, b as be } from "./chunks/helpers.CgHNyjAJ.js";
|
|
2
|
+
import { c as cn } from "./chunks/clickOutside.qP9M0QCm.js";
|
|
3
|
+
import { InBox as un } from "./InBox.js";
|
|
4
|
+
import { InCustomDropDown as dn } from "./InCustomDropDown.js";
|
|
5
|
+
import { InIcons as pn } from "./InIcons.js";
|
|
6
|
+
import { InTooltip as fn } from "./InTooltip.js";
|
|
7
|
+
import { a as hn, g as bn } from "./chunks/_commonjsHelpers.BItOPCY9.js";
|
|
8
|
+
import { InButtonV2 as gn } from "./InButtonV2.js";
|
|
9
|
+
import { InTooltipV2 as vn } from "./InTooltipV2.js";
|
|
10
|
+
import { n as Ke } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
|
|
11
|
+
/* empty css */
|
|
12
|
+
var Ee = { exports: {} };
|
|
13
|
+
/**!
|
|
14
|
+
* Sortable 1.10.2
|
|
15
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
16
|
+
* @author owenm <owen23355@gmail.com>
|
|
17
|
+
* @license MIT
|
|
18
|
+
*/
|
|
19
|
+
function ne(t) {
|
|
20
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ne = function(n) {
|
|
21
|
+
return typeof n;
|
|
22
|
+
} : ne = function(n) {
|
|
23
|
+
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
24
|
+
}, ne(t);
|
|
25
|
+
}
|
|
26
|
+
function mn(t, n, e) {
|
|
27
|
+
return n in t ? Object.defineProperty(t, n, {
|
|
28
|
+
value: e,
|
|
29
|
+
enumerable: !0,
|
|
30
|
+
configurable: !0,
|
|
31
|
+
writable: !0
|
|
32
|
+
}) : t[n] = e, t;
|
|
33
|
+
}
|
|
34
|
+
function ht() {
|
|
35
|
+
return ht = Object.assign || function(t) {
|
|
36
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
37
|
+
var e = arguments[n];
|
|
38
|
+
for (var r in e)
|
|
39
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
}, ht.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
function St(t) {
|
|
45
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
46
|
+
var e = arguments[n] != null ? arguments[n] : {}, r = Object.keys(e);
|
|
47
|
+
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(e).filter(function(a) {
|
|
48
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
49
|
+
}))), r.forEach(function(a) {
|
|
50
|
+
mn(t, a, e[a]);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
function _n(t, n) {
|
|
56
|
+
if (t == null) return {};
|
|
57
|
+
var e = {}, r = Object.keys(t), a, i;
|
|
58
|
+
for (i = 0; i < r.length; i++)
|
|
59
|
+
a = r[i], !(n.indexOf(a) >= 0) && (e[a] = t[a]);
|
|
60
|
+
return e;
|
|
61
|
+
}
|
|
62
|
+
function wn(t, n) {
|
|
63
|
+
if (t == null) return {};
|
|
64
|
+
var e = _n(t, n), r, a;
|
|
65
|
+
if (Object.getOwnPropertySymbols) {
|
|
66
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
67
|
+
for (a = 0; a < i.length; a++)
|
|
68
|
+
r = i[a], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (e[r] = t[r]);
|
|
69
|
+
}
|
|
70
|
+
return e;
|
|
71
|
+
}
|
|
72
|
+
function yn(t) {
|
|
73
|
+
return xn(t) || Tn(t) || Cn();
|
|
74
|
+
}
|
|
75
|
+
function xn(t) {
|
|
76
|
+
if (Array.isArray(t)) {
|
|
77
|
+
for (var n = 0, e = new Array(t.length); n < t.length; n++) e[n] = t[n];
|
|
78
|
+
return e;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function Tn(t) {
|
|
82
|
+
if (Symbol.iterator in Object(t) || Object.prototype.toString.call(t) === "[object Arguments]") return Array.from(t);
|
|
83
|
+
}
|
|
84
|
+
function Cn() {
|
|
85
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
86
|
+
}
|
|
87
|
+
var Dn = "1.10.2";
|
|
88
|
+
function yt(t) {
|
|
89
|
+
if (typeof window < "u" && window.navigator)
|
|
90
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
91
|
+
}
|
|
92
|
+
var xt = yt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), zt = yt(/Edge/i), Re = yt(/firefox/i), Oe = yt(/safari/i) && !yt(/chrome/i) && !yt(/android/i), Qe = yt(/iP(ad|od|hone)/i), Sn = yt(/chrome/i) && yt(/android/i), Ze = {
|
|
93
|
+
capture: !1,
|
|
94
|
+
passive: !1
|
|
95
|
+
};
|
|
96
|
+
function P(t, n, e) {
|
|
97
|
+
t.addEventListener(n, e, !xt && Ze);
|
|
98
|
+
}
|
|
99
|
+
function $(t, n, e) {
|
|
100
|
+
t.removeEventListener(n, e, !xt && Ze);
|
|
101
|
+
}
|
|
102
|
+
function se(t, n) {
|
|
103
|
+
if (n) {
|
|
104
|
+
if (n[0] === ">" && (n = n.substring(1)), t)
|
|
105
|
+
try {
|
|
106
|
+
if (t.matches)
|
|
107
|
+
return t.matches(n);
|
|
108
|
+
if (t.msMatchesSelector)
|
|
109
|
+
return t.msMatchesSelector(n);
|
|
110
|
+
if (t.webkitMatchesSelector)
|
|
111
|
+
return t.webkitMatchesSelector(n);
|
|
112
|
+
} catch {
|
|
113
|
+
return !1;
|
|
114
|
+
}
|
|
115
|
+
return !1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function En(t) {
|
|
119
|
+
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
120
|
+
}
|
|
121
|
+
function mt(t, n, e, r) {
|
|
122
|
+
if (t) {
|
|
123
|
+
e = e || document;
|
|
124
|
+
do {
|
|
125
|
+
if (n != null && (n[0] === ">" ? t.parentNode === e && se(t, n) : se(t, n)) || r && t === e)
|
|
126
|
+
return t;
|
|
127
|
+
if (t === e) break;
|
|
128
|
+
} while (t = En(t));
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
var Le = /\s+/g;
|
|
133
|
+
function U(t, n, e) {
|
|
134
|
+
if (t && n)
|
|
135
|
+
if (t.classList)
|
|
136
|
+
t.classList[e ? "add" : "remove"](n);
|
|
137
|
+
else {
|
|
138
|
+
var r = (" " + t.className + " ").replace(Le, " ").replace(" " + n + " ", " ");
|
|
139
|
+
t.className = (r + (e ? " " + n : "")).replace(Le, " ");
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function x(t, n, e) {
|
|
143
|
+
var r = t && t.style;
|
|
144
|
+
if (r) {
|
|
145
|
+
if (e === void 0)
|
|
146
|
+
return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (e = t.currentStyle), n === void 0 ? e : e[n];
|
|
147
|
+
!(n in r) && n.indexOf("webkit") === -1 && (n = "-webkit-" + n), r[n] = e + (typeof e == "string" ? "" : "px");
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function It(t, n) {
|
|
151
|
+
var e = "";
|
|
152
|
+
if (typeof t == "string")
|
|
153
|
+
e = t;
|
|
154
|
+
else
|
|
155
|
+
do {
|
|
156
|
+
var r = x(t, "transform");
|
|
157
|
+
r && r !== "none" && (e = r + " " + e);
|
|
158
|
+
} while (!n && (t = t.parentNode));
|
|
159
|
+
var a = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
160
|
+
return a && new a(e);
|
|
161
|
+
}
|
|
162
|
+
function Je(t, n, e) {
|
|
163
|
+
if (t) {
|
|
164
|
+
var r = t.getElementsByTagName(n), a = 0, i = r.length;
|
|
165
|
+
if (e)
|
|
166
|
+
for (; a < i; a++)
|
|
167
|
+
e(r[a], a);
|
|
168
|
+
return r;
|
|
169
|
+
}
|
|
170
|
+
return [];
|
|
171
|
+
}
|
|
172
|
+
function wt() {
|
|
173
|
+
var t = document.scrollingElement;
|
|
174
|
+
return t || document.documentElement;
|
|
175
|
+
}
|
|
176
|
+
function K(t, n, e, r, a) {
|
|
177
|
+
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
178
|
+
var i, o, s, l, u, c, d;
|
|
179
|
+
if (t !== window && t !== wt() ? (i = t.getBoundingClientRect(), o = i.top, s = i.left, l = i.bottom, u = i.right, c = i.height, d = i.width) : (o = 0, s = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (n || e) && t !== window && (a = a || t.parentNode, !xt))
|
|
180
|
+
do
|
|
181
|
+
if (a && a.getBoundingClientRect && (x(a, "transform") !== "none" || e && x(a, "position") !== "static")) {
|
|
182
|
+
var h = a.getBoundingClientRect();
|
|
183
|
+
o -= h.top + parseInt(x(a, "border-top-width")), s -= h.left + parseInt(x(a, "border-left-width")), l = o + i.height, u = s + i.width;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
while (a = a.parentNode);
|
|
187
|
+
if (r && t !== window) {
|
|
188
|
+
var b = It(a || t), v = b && b.a, f = b && b.d;
|
|
189
|
+
b && (o /= f, s /= v, d /= v, c /= f, l = o + c, u = s + d);
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
top: o,
|
|
193
|
+
left: s,
|
|
194
|
+
bottom: l,
|
|
195
|
+
right: u,
|
|
196
|
+
width: d,
|
|
197
|
+
height: c
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function je(t, n, e) {
|
|
202
|
+
for (var r = Dt(t, !0), a = K(t)[n]; r; ) {
|
|
203
|
+
var i = K(r)[e], o = void 0;
|
|
204
|
+
if (o = a >= i, !o) return r;
|
|
205
|
+
if (r === wt()) break;
|
|
206
|
+
r = Dt(r, !1);
|
|
207
|
+
}
|
|
208
|
+
return !1;
|
|
209
|
+
}
|
|
210
|
+
function le(t, n, e) {
|
|
211
|
+
for (var r = 0, a = 0, i = t.children; a < i.length; ) {
|
|
212
|
+
if (i[a].style.display !== "none" && i[a] !== D.ghost && i[a] !== D.dragged && mt(i[a], e.draggable, t, !1)) {
|
|
213
|
+
if (r === n)
|
|
214
|
+
return i[a];
|
|
215
|
+
r++;
|
|
216
|
+
}
|
|
217
|
+
a++;
|
|
218
|
+
}
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
function Me(t, n) {
|
|
222
|
+
for (var e = t.lastElementChild; e && (e === D.ghost || x(e, "display") === "none" || n && !se(e, n)); )
|
|
223
|
+
e = e.previousElementSibling;
|
|
224
|
+
return e || null;
|
|
225
|
+
}
|
|
226
|
+
function G(t, n) {
|
|
227
|
+
var e = 0;
|
|
228
|
+
if (!t || !t.parentNode)
|
|
229
|
+
return -1;
|
|
230
|
+
for (; t = t.previousElementSibling; )
|
|
231
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== D.clone && (!n || se(t, n)) && e++;
|
|
232
|
+
return e;
|
|
233
|
+
}
|
|
234
|
+
function He(t) {
|
|
235
|
+
var n = 0, e = 0, r = wt();
|
|
236
|
+
if (t)
|
|
237
|
+
do {
|
|
238
|
+
var a = It(t), i = a.a, o = a.d;
|
|
239
|
+
n += t.scrollLeft * i, e += t.scrollTop * o;
|
|
240
|
+
} while (t !== r && (t = t.parentNode));
|
|
241
|
+
return [n, e];
|
|
242
|
+
}
|
|
243
|
+
function On(t, n) {
|
|
244
|
+
for (var e in t)
|
|
245
|
+
if (t.hasOwnProperty(e)) {
|
|
246
|
+
for (var r in n)
|
|
247
|
+
if (n.hasOwnProperty(r) && n[r] === t[e][r]) return Number(e);
|
|
248
|
+
}
|
|
249
|
+
return -1;
|
|
250
|
+
}
|
|
251
|
+
function Dt(t, n) {
|
|
252
|
+
if (!t || !t.getBoundingClientRect) return wt();
|
|
253
|
+
var e = t, r = !1;
|
|
254
|
+
do
|
|
255
|
+
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
256
|
+
var a = x(e);
|
|
257
|
+
if (e.clientWidth < e.scrollWidth && (a.overflowX == "auto" || a.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (a.overflowY == "auto" || a.overflowY == "scroll")) {
|
|
258
|
+
if (!e.getBoundingClientRect || e === document.body) return wt();
|
|
259
|
+
if (r || n) return e;
|
|
260
|
+
r = !0;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
while (e = e.parentNode);
|
|
264
|
+
return wt();
|
|
265
|
+
}
|
|
266
|
+
function kn(t, n) {
|
|
267
|
+
if (t && n)
|
|
268
|
+
for (var e in n)
|
|
269
|
+
n.hasOwnProperty(e) && (t[e] = n[e]);
|
|
270
|
+
return t;
|
|
271
|
+
}
|
|
272
|
+
function ge(t, n) {
|
|
273
|
+
return Math.round(t.top) === Math.round(n.top) && Math.round(t.left) === Math.round(n.left) && Math.round(t.height) === Math.round(n.height) && Math.round(t.width) === Math.round(n.width);
|
|
274
|
+
}
|
|
275
|
+
var Vt;
|
|
276
|
+
function tn(t, n) {
|
|
277
|
+
return function() {
|
|
278
|
+
if (!Vt) {
|
|
279
|
+
var e = arguments, r = this;
|
|
280
|
+
e.length === 1 ? t.call(r, e[0]) : t.apply(r, e), Vt = setTimeout(function() {
|
|
281
|
+
Vt = void 0;
|
|
282
|
+
}, n);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
function In() {
|
|
287
|
+
clearTimeout(Vt), Vt = void 0;
|
|
288
|
+
}
|
|
289
|
+
function en(t, n, e) {
|
|
290
|
+
t.scrollLeft += n, t.scrollTop += e;
|
|
291
|
+
}
|
|
292
|
+
function Ne(t) {
|
|
293
|
+
var n = window.Polymer, e = window.jQuery || window.Zepto;
|
|
294
|
+
return n && n.dom ? n.dom(t).cloneNode(!0) : e ? e(t).clone(!0)[0] : t.cloneNode(!0);
|
|
295
|
+
}
|
|
296
|
+
function Fe(t, n) {
|
|
297
|
+
x(t, "position", "absolute"), x(t, "top", n.top), x(t, "left", n.left), x(t, "width", n.width), x(t, "height", n.height);
|
|
298
|
+
}
|
|
299
|
+
function ve(t) {
|
|
300
|
+
x(t, "position", ""), x(t, "top", ""), x(t, "left", ""), x(t, "width", ""), x(t, "height", "");
|
|
301
|
+
}
|
|
302
|
+
var ot = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
303
|
+
function An() {
|
|
304
|
+
var t = [], n;
|
|
305
|
+
return {
|
|
306
|
+
captureAnimationState: function() {
|
|
307
|
+
if (t = [], !!this.options.animation) {
|
|
308
|
+
var e = [].slice.call(this.el.children);
|
|
309
|
+
e.forEach(function(r) {
|
|
310
|
+
if (!(x(r, "display") === "none" || r === D.ghost)) {
|
|
311
|
+
t.push({
|
|
312
|
+
target: r,
|
|
313
|
+
rect: K(r)
|
|
314
|
+
});
|
|
315
|
+
var a = St({}, t[t.length - 1].rect);
|
|
316
|
+
if (r.thisAnimationDuration) {
|
|
317
|
+
var i = It(r, !0);
|
|
318
|
+
i && (a.top -= i.f, a.left -= i.e);
|
|
319
|
+
}
|
|
320
|
+
r.fromRect = a;
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
addAnimationState: function(e) {
|
|
326
|
+
t.push(e);
|
|
327
|
+
},
|
|
328
|
+
removeAnimationState: function(e) {
|
|
329
|
+
t.splice(On(t, {
|
|
330
|
+
target: e
|
|
331
|
+
}), 1);
|
|
332
|
+
},
|
|
333
|
+
animateAll: function(e) {
|
|
334
|
+
var r = this;
|
|
335
|
+
if (!this.options.animation) {
|
|
336
|
+
clearTimeout(n), typeof e == "function" && e();
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
var a = !1, i = 0;
|
|
340
|
+
t.forEach(function(o) {
|
|
341
|
+
var s = 0, l = o.target, u = l.fromRect, c = K(l), d = l.prevFromRect, h = l.prevToRect, b = o.rect, v = It(l, !0);
|
|
342
|
+
v && (c.top -= v.f, c.left -= v.e), l.toRect = c, l.thisAnimationDuration && ge(d, c) && !ge(u, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
343
|
+
(b.top - c.top) / (b.left - c.left) === (u.top - c.top) / (u.left - c.left) && (s = $n(b, d, h, r.options)), ge(c, u) || (l.prevFromRect = u, l.prevToRect = c, s || (s = r.options.animation), r.animate(l, b, c, s)), s && (a = !0, i = Math.max(i, s), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
|
|
344
|
+
l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
|
|
345
|
+
}, s), l.thisAnimationDuration = s);
|
|
346
|
+
}), clearTimeout(n), a ? n = setTimeout(function() {
|
|
347
|
+
typeof e == "function" && e();
|
|
348
|
+
}, i) : typeof e == "function" && e(), t = [];
|
|
349
|
+
},
|
|
350
|
+
animate: function(e, r, a, i) {
|
|
351
|
+
if (i) {
|
|
352
|
+
x(e, "transition", ""), x(e, "transform", "");
|
|
353
|
+
var o = It(this.el), s = o && o.a, l = o && o.d, u = (r.left - a.left) / (s || 1), c = (r.top - a.top) / (l || 1);
|
|
354
|
+
e.animatingX = !!u, e.animatingY = !!c, x(e, "transform", "translate3d(" + u + "px," + c + "px,0)"), x(e, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")), x(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
355
|
+
x(e, "transition", ""), x(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
356
|
+
}, i);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function $n(t, n, e, r) {
|
|
362
|
+
return Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) / Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) * r.animation;
|
|
363
|
+
}
|
|
364
|
+
var Pt = [], me = {
|
|
365
|
+
initializeByDefault: !0
|
|
366
|
+
}, Yt = {
|
|
367
|
+
mount: function(t) {
|
|
368
|
+
for (var n in me)
|
|
369
|
+
me.hasOwnProperty(n) && !(n in t) && (t[n] = me[n]);
|
|
370
|
+
Pt.push(t);
|
|
371
|
+
},
|
|
372
|
+
pluginEvent: function(t, n, e) {
|
|
373
|
+
var r = this;
|
|
374
|
+
this.eventCanceled = !1, e.cancel = function() {
|
|
375
|
+
r.eventCanceled = !0;
|
|
376
|
+
};
|
|
377
|
+
var a = t + "Global";
|
|
378
|
+
Pt.forEach(function(i) {
|
|
379
|
+
n[i.pluginName] && (n[i.pluginName][a] && n[i.pluginName][a](St({
|
|
380
|
+
sortable: n
|
|
381
|
+
}, e)), n.options[i.pluginName] && n[i.pluginName][t] && n[i.pluginName][t](St({
|
|
382
|
+
sortable: n
|
|
383
|
+
}, e)));
|
|
384
|
+
});
|
|
385
|
+
},
|
|
386
|
+
initializePlugins: function(t, n, e, r) {
|
|
387
|
+
Pt.forEach(function(o) {
|
|
388
|
+
var s = o.pluginName;
|
|
389
|
+
if (!(!t.options[s] && !o.initializeByDefault)) {
|
|
390
|
+
var l = new o(t, n, t.options);
|
|
391
|
+
l.sortable = t, l.options = t.options, t[s] = l, ht(e, l.defaults);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
for (var a in t.options)
|
|
395
|
+
if (t.options.hasOwnProperty(a)) {
|
|
396
|
+
var i = this.modifyOption(t, a, t.options[a]);
|
|
397
|
+
typeof i < "u" && (t.options[a] = i);
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
getEventProperties: function(t, n) {
|
|
401
|
+
var e = {};
|
|
402
|
+
return Pt.forEach(function(r) {
|
|
403
|
+
typeof r.eventProperties == "function" && ht(e, r.eventProperties.call(n[r.pluginName], t));
|
|
404
|
+
}), e;
|
|
405
|
+
},
|
|
406
|
+
modifyOption: function(t, n, e) {
|
|
407
|
+
var r;
|
|
408
|
+
return Pt.forEach(function(a) {
|
|
409
|
+
t[a.pluginName] && a.optionListeners && typeof a.optionListeners[n] == "function" && (r = a.optionListeners[n].call(t[a.pluginName], e));
|
|
410
|
+
}), r;
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
function jt(t) {
|
|
414
|
+
var n = t.sortable, e = t.rootEl, r = t.name, a = t.targetEl, i = t.cloneEl, o = t.toEl, s = t.fromEl, l = t.oldIndex, u = t.newIndex, c = t.oldDraggableIndex, d = t.newDraggableIndex, h = t.originalEvent, b = t.putSortable, v = t.extraEventProperties;
|
|
415
|
+
if (n = n || e && e[ot], !!n) {
|
|
416
|
+
var f, y = n.options, T = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
417
|
+
window.CustomEvent && !xt && !zt ? f = new CustomEvent(r, {
|
|
418
|
+
bubbles: !0,
|
|
419
|
+
cancelable: !0
|
|
420
|
+
}) : (f = document.createEvent("Event"), f.initEvent(r, !0, !0)), f.to = o || e, f.from = s || e, f.item = a || e, f.clone = i, f.oldIndex = l, f.newIndex = u, f.oldDraggableIndex = c, f.newDraggableIndex = d, f.originalEvent = h, f.pullMode = b ? b.lastPutMode : void 0;
|
|
421
|
+
var C = St({}, v, Yt.getEventProperties(r, n));
|
|
422
|
+
for (var w in C)
|
|
423
|
+
f[w] = C[w];
|
|
424
|
+
e && e.dispatchEvent(f), y[T] && y[T].call(n, f);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
var ct = function(t, n) {
|
|
428
|
+
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = e.evt, a = wn(e, ["evt"]);
|
|
429
|
+
Yt.pluginEvent.bind(D)(t, n, St({
|
|
430
|
+
dragEl: _,
|
|
431
|
+
parentEl: Z,
|
|
432
|
+
ghostEl: I,
|
|
433
|
+
rootEl: q,
|
|
434
|
+
nextEl: kt,
|
|
435
|
+
lastDownEl: re,
|
|
436
|
+
cloneEl: Y,
|
|
437
|
+
cloneHidden: Ct,
|
|
438
|
+
dragStarted: Ht,
|
|
439
|
+
putSortable: rt,
|
|
440
|
+
activeSortable: D.active,
|
|
441
|
+
originalEvent: r,
|
|
442
|
+
oldIndex: Nt,
|
|
443
|
+
oldDraggableIndex: Xt,
|
|
444
|
+
newIndex: pt,
|
|
445
|
+
newDraggableIndex: Tt,
|
|
446
|
+
hideGhostForTarget: on,
|
|
447
|
+
unhideGhostForTarget: sn,
|
|
448
|
+
cloneNowHidden: function() {
|
|
449
|
+
Ct = !0;
|
|
450
|
+
},
|
|
451
|
+
cloneNowShown: function() {
|
|
452
|
+
Ct = !1;
|
|
453
|
+
},
|
|
454
|
+
dispatchSortableEvent: function(i) {
|
|
455
|
+
st({
|
|
456
|
+
sortable: n,
|
|
457
|
+
name: i,
|
|
458
|
+
originalEvent: r
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
}, a));
|
|
462
|
+
};
|
|
463
|
+
function st(t) {
|
|
464
|
+
jt(St({
|
|
465
|
+
putSortable: rt,
|
|
466
|
+
cloneEl: Y,
|
|
467
|
+
targetEl: _,
|
|
468
|
+
rootEl: q,
|
|
469
|
+
oldIndex: Nt,
|
|
470
|
+
oldDraggableIndex: Xt,
|
|
471
|
+
newIndex: pt,
|
|
472
|
+
newDraggableIndex: Tt
|
|
473
|
+
}, t));
|
|
474
|
+
}
|
|
475
|
+
var _, Z, I, q, kt, re, Y, Ct, Nt, pt, Xt, Tt, Kt, rt, Mt = !1, ce = !1, ue = [], Et, gt, _e, we, We, Ve, Ht, At, qt, Ut = !1, Qt = !1, ie, at, ye = [], ke = !1, de = [], fe = typeof document < "u", Zt = Qe, Xe = zt || xt ? "cssFloat" : "float", Mn = fe && !Sn && !Qe && "draggable" in document.createElement("div"), nn = (function() {
|
|
476
|
+
if (fe) {
|
|
477
|
+
if (xt)
|
|
478
|
+
return !1;
|
|
479
|
+
var t = document.createElement("x");
|
|
480
|
+
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
481
|
+
}
|
|
482
|
+
})(), rn = function(t, n) {
|
|
483
|
+
var e = x(t), r = parseInt(e.width) - parseInt(e.paddingLeft) - parseInt(e.paddingRight) - parseInt(e.borderLeftWidth) - parseInt(e.borderRightWidth), a = le(t, 0, n), i = le(t, 1, n), o = a && x(a), s = i && x(i), l = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + K(a).width, u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + K(i).width;
|
|
484
|
+
if (e.display === "flex")
|
|
485
|
+
return e.flexDirection === "column" || e.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
486
|
+
if (e.display === "grid")
|
|
487
|
+
return e.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
488
|
+
if (a && o.float && o.float !== "none") {
|
|
489
|
+
var c = o.float === "left" ? "left" : "right";
|
|
490
|
+
return i && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
491
|
+
}
|
|
492
|
+
return a && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || l >= r && e[Xe] === "none" || i && e[Xe] === "none" && l + u > r) ? "vertical" : "horizontal";
|
|
493
|
+
}, Nn = function(t, n, e) {
|
|
494
|
+
var r = e ? t.left : t.top, a = e ? t.right : t.bottom, i = e ? t.width : t.height, o = e ? n.left : n.top, s = e ? n.right : n.bottom, l = e ? n.width : n.height;
|
|
495
|
+
return r === o || a === s || r + i / 2 === o + l / 2;
|
|
496
|
+
}, Pn = function(t, n) {
|
|
497
|
+
var e;
|
|
498
|
+
return ue.some(function(r) {
|
|
499
|
+
if (!Me(r)) {
|
|
500
|
+
var a = K(r), i = r[ot].options.emptyInsertThreshold, o = t >= a.left - i && t <= a.right + i, s = n >= a.top - i && n <= a.bottom + i;
|
|
501
|
+
if (i && o && s)
|
|
502
|
+
return e = r;
|
|
503
|
+
}
|
|
504
|
+
}), e;
|
|
505
|
+
}, an = function(t) {
|
|
506
|
+
function n(a, i) {
|
|
507
|
+
return function(o, s, l, u) {
|
|
508
|
+
var c = o.options.group.name && s.options.group.name && o.options.group.name === s.options.group.name;
|
|
509
|
+
if (a == null && (i || c))
|
|
510
|
+
return !0;
|
|
511
|
+
if (a == null || a === !1)
|
|
512
|
+
return !1;
|
|
513
|
+
if (i && a === "clone")
|
|
514
|
+
return a;
|
|
515
|
+
if (typeof a == "function")
|
|
516
|
+
return n(a(o, s, l, u), i)(o, s, l, u);
|
|
517
|
+
var d = (i ? o : s).options.group.name;
|
|
518
|
+
return a === !0 || typeof a == "string" && a === d || a.join && a.indexOf(d) > -1;
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
var e = {}, r = t.group;
|
|
522
|
+
(!r || ne(r) != "object") && (r = {
|
|
523
|
+
name: r
|
|
524
|
+
}), e.name = r.name, e.checkPull = n(r.pull, !0), e.checkPut = n(r.put), e.revertClone = r.revertClone, t.group = e;
|
|
525
|
+
}, on = function() {
|
|
526
|
+
!nn && I && x(I, "display", "none");
|
|
527
|
+
}, sn = function() {
|
|
528
|
+
!nn && I && x(I, "display", "");
|
|
529
|
+
};
|
|
530
|
+
fe && document.addEventListener("click", function(t) {
|
|
531
|
+
if (ce)
|
|
532
|
+
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), ce = !1, !1;
|
|
533
|
+
}, !0);
|
|
534
|
+
var Ot = function(t) {
|
|
535
|
+
if (_) {
|
|
536
|
+
t = t.touches ? t.touches[0] : t;
|
|
537
|
+
var n = Pn(t.clientX, t.clientY);
|
|
538
|
+
if (n) {
|
|
539
|
+
var e = {};
|
|
540
|
+
for (var r in t)
|
|
541
|
+
t.hasOwnProperty(r) && (e[r] = t[r]);
|
|
542
|
+
e.target = e.rootEl = n, e.preventDefault = void 0, e.stopPropagation = void 0, n[ot]._onDragOver(e);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}, Bn = function(t) {
|
|
546
|
+
_ && _.parentNode[ot]._isOutsideThisEl(t.target);
|
|
547
|
+
};
|
|
548
|
+
function D(t, n) {
|
|
549
|
+
if (!(t && t.nodeType && t.nodeType === 1))
|
|
550
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
551
|
+
this.el = t, this.options = n = ht({}, n), t[ot] = this;
|
|
552
|
+
var e = {
|
|
553
|
+
group: null,
|
|
554
|
+
sort: !0,
|
|
555
|
+
disabled: !1,
|
|
556
|
+
store: null,
|
|
557
|
+
handle: null,
|
|
558
|
+
draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
|
|
559
|
+
swapThreshold: 1,
|
|
560
|
+
// percentage; 0 <= x <= 1
|
|
561
|
+
invertSwap: !1,
|
|
562
|
+
// invert always
|
|
563
|
+
invertedSwapThreshold: null,
|
|
564
|
+
// will be set to same as swapThreshold if default
|
|
565
|
+
removeCloneOnHide: !0,
|
|
566
|
+
direction: function() {
|
|
567
|
+
return rn(t, this.options);
|
|
568
|
+
},
|
|
569
|
+
ghostClass: "sortable-ghost",
|
|
570
|
+
chosenClass: "sortable-chosen",
|
|
571
|
+
dragClass: "sortable-drag",
|
|
572
|
+
ignore: "a, img",
|
|
573
|
+
filter: null,
|
|
574
|
+
preventOnFilter: !0,
|
|
575
|
+
animation: 0,
|
|
576
|
+
easing: null,
|
|
577
|
+
setData: function(i, o) {
|
|
578
|
+
i.setData("Text", o.textContent);
|
|
579
|
+
},
|
|
580
|
+
dropBubble: !1,
|
|
581
|
+
dragoverBubble: !1,
|
|
582
|
+
dataIdAttr: "data-id",
|
|
583
|
+
delay: 0,
|
|
584
|
+
delayOnTouchOnly: !1,
|
|
585
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
586
|
+
forceFallback: !1,
|
|
587
|
+
fallbackClass: "sortable-fallback",
|
|
588
|
+
fallbackOnBody: !1,
|
|
589
|
+
fallbackTolerance: 0,
|
|
590
|
+
fallbackOffset: {
|
|
591
|
+
x: 0,
|
|
592
|
+
y: 0
|
|
593
|
+
},
|
|
594
|
+
supportPointer: D.supportPointer !== !1 && "PointerEvent" in window,
|
|
595
|
+
emptyInsertThreshold: 5
|
|
596
|
+
};
|
|
597
|
+
Yt.initializePlugins(this, t, e);
|
|
598
|
+
for (var r in e)
|
|
599
|
+
!(r in n) && (n[r] = e[r]);
|
|
600
|
+
an(n);
|
|
601
|
+
for (var a in this)
|
|
602
|
+
a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
|
|
603
|
+
this.nativeDraggable = n.forceFallback ? !1 : Mn, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? P(t, "pointerdown", this._onTapStart) : (P(t, "mousedown", this._onTapStart), P(t, "touchstart", this._onTapStart)), this.nativeDraggable && (P(t, "dragover", this), P(t, "dragenter", this)), ue.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), ht(this, An());
|
|
604
|
+
}
|
|
605
|
+
D.prototype = /** @lends Sortable.prototype */
|
|
606
|
+
{
|
|
607
|
+
constructor: D,
|
|
608
|
+
_isOutsideThisEl: function(t) {
|
|
609
|
+
!this.el.contains(t) && t !== this.el && (At = null);
|
|
610
|
+
},
|
|
611
|
+
_getDirection: function(t, n) {
|
|
612
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, _) : this.options.direction;
|
|
613
|
+
},
|
|
614
|
+
_onTapStart: function(t) {
|
|
615
|
+
if (t.cancelable) {
|
|
616
|
+
var n = this, e = this.el, r = this.options, a = r.preventOnFilter, i = t.type, o = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (o || t).target, l = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, u = r.filter;
|
|
617
|
+
if (Vn(e), !_ && !(/mousedown|pointerdown/.test(i) && t.button !== 0 || r.disabled) && !l.isContentEditable && (s = mt(s, r.draggable, e, !1), !(s && s.animated) && re !== s)) {
|
|
618
|
+
if (Nt = G(s), Xt = G(s, r.draggable), typeof u == "function") {
|
|
619
|
+
if (u.call(this, t, s, this)) {
|
|
620
|
+
st({
|
|
621
|
+
sortable: n,
|
|
622
|
+
rootEl: l,
|
|
623
|
+
name: "filter",
|
|
624
|
+
targetEl: s,
|
|
625
|
+
toEl: e,
|
|
626
|
+
fromEl: e
|
|
627
|
+
}), ct("filter", n, {
|
|
628
|
+
evt: t
|
|
629
|
+
}), a && t.cancelable && t.preventDefault();
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
} else if (u && (u = u.split(",").some(function(c) {
|
|
633
|
+
if (c = mt(l, c.trim(), e, !1), c)
|
|
634
|
+
return st({
|
|
635
|
+
sortable: n,
|
|
636
|
+
rootEl: c,
|
|
637
|
+
name: "filter",
|
|
638
|
+
targetEl: s,
|
|
639
|
+
fromEl: e,
|
|
640
|
+
toEl: e
|
|
641
|
+
}), ct("filter", n, {
|
|
642
|
+
evt: t
|
|
643
|
+
}), !0;
|
|
644
|
+
}), u)) {
|
|
645
|
+
a && t.cancelable && t.preventDefault();
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
r.handle && !mt(l, r.handle, e, !1) || this._prepareDragStart(t, o, s);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
_prepareDragStart: function(t, n, e) {
|
|
653
|
+
var r = this, a = r.el, i = r.options, o = a.ownerDocument, s;
|
|
654
|
+
if (e && !_ && e.parentNode === a) {
|
|
655
|
+
var l = K(e);
|
|
656
|
+
if (q = a, _ = e, Z = _.parentNode, kt = _.nextSibling, re = e, Kt = i.group, D.dragged = _, Et = {
|
|
657
|
+
target: _,
|
|
658
|
+
clientX: (n || t).clientX,
|
|
659
|
+
clientY: (n || t).clientY
|
|
660
|
+
}, We = Et.clientX - l.left, Ve = Et.clientY - l.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, _.style["will-change"] = "all", s = function() {
|
|
661
|
+
if (ct("delayEnded", r, {
|
|
662
|
+
evt: t
|
|
663
|
+
}), D.eventCanceled) {
|
|
664
|
+
r._onDrop();
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
r._disableDelayedDragEvents(), !Re && r.nativeDraggable && (_.draggable = !0), r._triggerDragStart(t, n), st({
|
|
668
|
+
sortable: r,
|
|
669
|
+
name: "choose",
|
|
670
|
+
originalEvent: t
|
|
671
|
+
}), U(_, i.chosenClass, !0);
|
|
672
|
+
}, i.ignore.split(",").forEach(function(u) {
|
|
673
|
+
Je(_, u.trim(), Te);
|
|
674
|
+
}), P(o, "dragover", Ot), P(o, "mousemove", Ot), P(o, "touchmove", Ot), P(o, "mouseup", r._onDrop), P(o, "touchend", r._onDrop), P(o, "touchcancel", r._onDrop), Re && this.nativeDraggable && (this.options.touchStartThreshold = 4, _.draggable = !0), ct("delayStart", this, {
|
|
675
|
+
evt: t
|
|
676
|
+
}), i.delay && (!i.delayOnTouchOnly || n) && (!this.nativeDraggable || !(zt || xt))) {
|
|
677
|
+
if (D.eventCanceled) {
|
|
678
|
+
this._onDrop();
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
P(o, "mouseup", r._disableDelayedDrag), P(o, "touchend", r._disableDelayedDrag), P(o, "touchcancel", r._disableDelayedDrag), P(o, "mousemove", r._delayedDragTouchMoveHandler), P(o, "touchmove", r._delayedDragTouchMoveHandler), i.supportPointer && P(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, i.delay);
|
|
682
|
+
} else
|
|
683
|
+
s();
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
_delayedDragTouchMoveHandler: function(t) {
|
|
687
|
+
var n = t.touches ? t.touches[0] : t;
|
|
688
|
+
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
689
|
+
},
|
|
690
|
+
_disableDelayedDrag: function() {
|
|
691
|
+
_ && Te(_), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
692
|
+
},
|
|
693
|
+
_disableDelayedDragEvents: function() {
|
|
694
|
+
var t = this.el.ownerDocument;
|
|
695
|
+
$(t, "mouseup", this._disableDelayedDrag), $(t, "touchend", this._disableDelayedDrag), $(t, "touchcancel", this._disableDelayedDrag), $(t, "mousemove", this._delayedDragTouchMoveHandler), $(t, "touchmove", this._delayedDragTouchMoveHandler), $(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
696
|
+
},
|
|
697
|
+
_triggerDragStart: function(t, n) {
|
|
698
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? P(document, "pointermove", this._onTouchMove) : n ? P(document, "touchmove", this._onTouchMove) : P(document, "mousemove", this._onTouchMove) : (P(_, "dragend", this), P(q, "dragstart", this._onDragStart));
|
|
699
|
+
try {
|
|
700
|
+
document.selection ? ae(function() {
|
|
701
|
+
document.selection.empty();
|
|
702
|
+
}) : window.getSelection().removeAllRanges();
|
|
703
|
+
} catch {
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
_dragStarted: function(t, n) {
|
|
707
|
+
if (Mt = !1, q && _) {
|
|
708
|
+
ct("dragStarted", this, {
|
|
709
|
+
evt: n
|
|
710
|
+
}), this.nativeDraggable && P(document, "dragover", Bn);
|
|
711
|
+
var e = this.options;
|
|
712
|
+
!t && U(_, e.dragClass, !1), U(_, e.ghostClass, !0), D.active = this, t && this._appendGhost(), st({
|
|
713
|
+
sortable: this,
|
|
714
|
+
name: "start",
|
|
715
|
+
originalEvent: n
|
|
716
|
+
});
|
|
717
|
+
} else
|
|
718
|
+
this._nulling();
|
|
719
|
+
},
|
|
720
|
+
_emulateDragOver: function() {
|
|
721
|
+
if (gt) {
|
|
722
|
+
this._lastX = gt.clientX, this._lastY = gt.clientY, on();
|
|
723
|
+
for (var t = document.elementFromPoint(gt.clientX, gt.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(gt.clientX, gt.clientY), t !== n); )
|
|
724
|
+
n = t;
|
|
725
|
+
if (_.parentNode[ot]._isOutsideThisEl(t), n)
|
|
726
|
+
do {
|
|
727
|
+
if (n[ot]) {
|
|
728
|
+
var e = void 0;
|
|
729
|
+
if (e = n[ot]._onDragOver({
|
|
730
|
+
clientX: gt.clientX,
|
|
731
|
+
clientY: gt.clientY,
|
|
732
|
+
target: t,
|
|
733
|
+
rootEl: n
|
|
734
|
+
}), e && !this.options.dragoverBubble)
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
t = n;
|
|
738
|
+
} while (n = n.parentNode);
|
|
739
|
+
sn();
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
_onTouchMove: function(t) {
|
|
743
|
+
if (Et) {
|
|
744
|
+
var n = this.options, e = n.fallbackTolerance, r = n.fallbackOffset, a = t.touches ? t.touches[0] : t, i = I && It(I, !0), o = I && i && i.a, s = I && i && i.d, l = Zt && at && He(at), u = (a.clientX - Et.clientX + r.x) / (o || 1) + (l ? l[0] - ye[0] : 0) / (o || 1), c = (a.clientY - Et.clientY + r.y) / (s || 1) + (l ? l[1] - ye[1] : 0) / (s || 1);
|
|
745
|
+
if (!D.active && !Mt) {
|
|
746
|
+
if (e && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < e)
|
|
747
|
+
return;
|
|
748
|
+
this._onDragStart(t, !0);
|
|
749
|
+
}
|
|
750
|
+
if (I) {
|
|
751
|
+
i ? (i.e += u - (_e || 0), i.f += c - (we || 0)) : i = {
|
|
752
|
+
a: 1,
|
|
753
|
+
b: 0,
|
|
754
|
+
c: 0,
|
|
755
|
+
d: 1,
|
|
756
|
+
e: u,
|
|
757
|
+
f: c
|
|
758
|
+
};
|
|
759
|
+
var d = "matrix(".concat(i.a, ",").concat(i.b, ",").concat(i.c, ",").concat(i.d, ",").concat(i.e, ",").concat(i.f, ")");
|
|
760
|
+
x(I, "webkitTransform", d), x(I, "mozTransform", d), x(I, "msTransform", d), x(I, "transform", d), _e = u, we = c, gt = a;
|
|
761
|
+
}
|
|
762
|
+
t.cancelable && t.preventDefault();
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
_appendGhost: function() {
|
|
766
|
+
if (!I) {
|
|
767
|
+
var t = this.options.fallbackOnBody ? document.body : q, n = K(_, !0, Zt, !0, t), e = this.options;
|
|
768
|
+
if (Zt) {
|
|
769
|
+
for (at = t; x(at, "position") === "static" && x(at, "transform") === "none" && at !== document; )
|
|
770
|
+
at = at.parentNode;
|
|
771
|
+
at !== document.body && at !== document.documentElement ? (at === document && (at = wt()), n.top += at.scrollTop, n.left += at.scrollLeft) : at = wt(), ye = He(at);
|
|
772
|
+
}
|
|
773
|
+
I = _.cloneNode(!0), U(I, e.ghostClass, !1), U(I, e.fallbackClass, !0), U(I, e.dragClass, !0), x(I, "transition", ""), x(I, "transform", ""), x(I, "box-sizing", "border-box"), x(I, "margin", 0), x(I, "top", n.top), x(I, "left", n.left), x(I, "width", n.width), x(I, "height", n.height), x(I, "opacity", "0.8"), x(I, "position", Zt ? "absolute" : "fixed"), x(I, "zIndex", "100000"), x(I, "pointerEvents", "none"), D.ghost = I, t.appendChild(I), x(I, "transform-origin", We / parseInt(I.style.width) * 100 + "% " + Ve / parseInt(I.style.height) * 100 + "%");
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
_onDragStart: function(t, n) {
|
|
777
|
+
var e = this, r = t.dataTransfer, a = e.options;
|
|
778
|
+
if (ct("dragStart", this, {
|
|
779
|
+
evt: t
|
|
780
|
+
}), D.eventCanceled) {
|
|
781
|
+
this._onDrop();
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
ct("setupClone", this), D.eventCanceled || (Y = Ne(_), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), U(Y, this.options.chosenClass, !1), D.clone = Y), e.cloneId = ae(function() {
|
|
785
|
+
ct("clone", e), !D.eventCanceled && (e.options.removeCloneOnHide || q.insertBefore(Y, _), e._hideClone(), st({
|
|
786
|
+
sortable: e,
|
|
787
|
+
name: "clone"
|
|
788
|
+
}));
|
|
789
|
+
}), !n && U(_, a.dragClass, !0), n ? (ce = !0, e._loopId = setInterval(e._emulateDragOver, 50)) : ($(document, "mouseup", e._onDrop), $(document, "touchend", e._onDrop), $(document, "touchcancel", e._onDrop), r && (r.effectAllowed = "move", a.setData && a.setData.call(e, r, _)), P(document, "drop", e), x(_, "transform", "translateZ(0)")), Mt = !0, e._dragStartId = ae(e._dragStarted.bind(e, n, t)), P(document, "selectstart", e), Ht = !0, Oe && x(document.body, "user-select", "none");
|
|
790
|
+
},
|
|
791
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
792
|
+
_onDragOver: function(t) {
|
|
793
|
+
var n = this.el, e = t.target, r, a, i, o = this.options, s = o.group, l = D.active, u = Kt === s, c = o.sort, d = rt || l, h, b = this, v = !1;
|
|
794
|
+
if (ke) return;
|
|
795
|
+
function f(H, Q) {
|
|
796
|
+
ct(H, b, St({
|
|
797
|
+
evt: t,
|
|
798
|
+
isOwner: u,
|
|
799
|
+
axis: h ? "vertical" : "horizontal",
|
|
800
|
+
revert: i,
|
|
801
|
+
dragRect: r,
|
|
802
|
+
targetRect: a,
|
|
803
|
+
canSort: c,
|
|
804
|
+
fromSortable: d,
|
|
805
|
+
target: e,
|
|
806
|
+
completed: T,
|
|
807
|
+
onMove: function(lt, nt) {
|
|
808
|
+
return xe(q, n, _, r, lt, K(lt), t, nt);
|
|
809
|
+
},
|
|
810
|
+
changed: C
|
|
811
|
+
}, Q));
|
|
812
|
+
}
|
|
813
|
+
function y() {
|
|
814
|
+
f("dragOverAnimationCapture"), b.captureAnimationState(), b !== d && d.captureAnimationState();
|
|
815
|
+
}
|
|
816
|
+
function T(H) {
|
|
817
|
+
return f("dragOverCompleted", {
|
|
818
|
+
insertion: H
|
|
819
|
+
}), H && (u ? l._hideClone() : l._showClone(b), b !== d && (U(_, rt ? rt.options.ghostClass : l.options.ghostClass, !1), U(_, o.ghostClass, !0)), rt !== b && b !== D.active ? rt = b : b === D.active && rt && (rt = null), d === b && (b._ignoreWhileAnimating = e), b.animateAll(function() {
|
|
820
|
+
f("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
821
|
+
}), b !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (e === _ && !_.animated || e === n && !e.animated) && (At = null), !o.dragoverBubble && !t.rootEl && e !== document && (_.parentNode[ot]._isOutsideThisEl(t.target), !H && Ot(t)), !o.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
|
|
822
|
+
}
|
|
823
|
+
function C() {
|
|
824
|
+
pt = G(_), Tt = G(_, o.draggable), st({
|
|
825
|
+
sortable: b,
|
|
826
|
+
name: "change",
|
|
827
|
+
toEl: n,
|
|
828
|
+
newIndex: pt,
|
|
829
|
+
newDraggableIndex: Tt,
|
|
830
|
+
originalEvent: t
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), e = mt(e, o.draggable, n, !0), f("dragOver"), D.eventCanceled) return v;
|
|
834
|
+
if (_.contains(t.target) || e.animated && e.animatingX && e.animatingY || b._ignoreWhileAnimating === e)
|
|
835
|
+
return T(!1);
|
|
836
|
+
if (ce = !1, l && !o.disabled && (u ? c || (i = !q.contains(_)) : rt === this || (this.lastPutMode = Kt.checkPull(this, l, _, t)) && s.checkPut(this, l, _, t))) {
|
|
837
|
+
if (h = this._getDirection(t, e) === "vertical", r = K(_), f("dragOverValid"), D.eventCanceled) return v;
|
|
838
|
+
if (i)
|
|
839
|
+
return Z = q, y(), this._hideClone(), f("revert"), D.eventCanceled || (kt ? q.insertBefore(_, kt) : q.appendChild(_)), T(!0);
|
|
840
|
+
var w = Me(n, o.draggable);
|
|
841
|
+
if (!w || jn(t, h, this) && !w.animated) {
|
|
842
|
+
if (w === _)
|
|
843
|
+
return T(!1);
|
|
844
|
+
if (w && n === t.target && (e = w), e && (a = K(e)), xe(q, n, _, r, e, a, t, !!e) !== !1)
|
|
845
|
+
return y(), n.appendChild(_), Z = n, C(), T(!0);
|
|
846
|
+
} else if (e.parentNode === n) {
|
|
847
|
+
a = K(e);
|
|
848
|
+
var L = 0, j, R = _.parentNode !== n, M = !Nn(_.animated && _.toRect || r, e.animated && e.toRect || a, h), A = h ? "top" : "left", S = je(e, "top", "top") || je(_, "top", "top"), E = S ? S.scrollTop : void 0;
|
|
849
|
+
At !== e && (j = a[A], Ut = !1, Qt = !M && o.invertSwap || R), L = Hn(t, e, a, h, M ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Qt, At === e);
|
|
850
|
+
var B;
|
|
851
|
+
if (L !== 0) {
|
|
852
|
+
var tt = G(_);
|
|
853
|
+
do
|
|
854
|
+
tt -= L, B = Z.children[tt];
|
|
855
|
+
while (B && (x(B, "display") === "none" || B === I));
|
|
856
|
+
}
|
|
857
|
+
if (L === 0 || B === e)
|
|
858
|
+
return T(!1);
|
|
859
|
+
At = e, qt = L;
|
|
860
|
+
var et = e.nextElementSibling, z = !1;
|
|
861
|
+
z = L === 1;
|
|
862
|
+
var F = xe(q, n, _, r, e, a, t, z);
|
|
863
|
+
if (F !== !1)
|
|
864
|
+
return (F === 1 || F === -1) && (z = F === 1), ke = !0, setTimeout(Ln, 30), y(), z && !et ? n.appendChild(_) : e.parentNode.insertBefore(_, z ? et : e), S && en(S, 0, E - S.scrollTop), Z = _.parentNode, j !== void 0 && !Qt && (ie = Math.abs(j - K(e)[A])), C(), T(!0);
|
|
865
|
+
}
|
|
866
|
+
if (n.contains(_))
|
|
867
|
+
return T(!1);
|
|
868
|
+
}
|
|
869
|
+
return !1;
|
|
870
|
+
},
|
|
871
|
+
_ignoreWhileAnimating: null,
|
|
872
|
+
_offMoveEvents: function() {
|
|
873
|
+
$(document, "mousemove", this._onTouchMove), $(document, "touchmove", this._onTouchMove), $(document, "pointermove", this._onTouchMove), $(document, "dragover", Ot), $(document, "mousemove", Ot), $(document, "touchmove", Ot);
|
|
874
|
+
},
|
|
875
|
+
_offUpEvents: function() {
|
|
876
|
+
var t = this.el.ownerDocument;
|
|
877
|
+
$(t, "mouseup", this._onDrop), $(t, "touchend", this._onDrop), $(t, "pointerup", this._onDrop), $(t, "touchcancel", this._onDrop), $(document, "selectstart", this);
|
|
878
|
+
},
|
|
879
|
+
_onDrop: function(t) {
|
|
880
|
+
var n = this.el, e = this.options;
|
|
881
|
+
if (pt = G(_), Tt = G(_, e.draggable), ct("drop", this, {
|
|
882
|
+
evt: t
|
|
883
|
+
}), Z = _ && _.parentNode, pt = G(_), Tt = G(_, e.draggable), D.eventCanceled) {
|
|
884
|
+
this._nulling();
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
Mt = !1, Qt = !1, Ut = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ie(this.cloneId), Ie(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Oe && x(document.body, "user-select", ""), x(_, "transform", ""), t && (Ht && (t.cancelable && t.preventDefault(), !e.dropBubble && t.stopPropagation()), I && I.parentNode && I.parentNode.removeChild(I), (q === Z || rt && rt.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), _ && (this.nativeDraggable && $(_, "dragend", this), Te(_), _.style["will-change"] = "", Ht && !Mt && U(_, rt ? rt.options.ghostClass : this.options.ghostClass, !1), U(_, this.options.chosenClass, !1), st({
|
|
888
|
+
sortable: this,
|
|
889
|
+
name: "unchoose",
|
|
890
|
+
toEl: Z,
|
|
891
|
+
newIndex: null,
|
|
892
|
+
newDraggableIndex: null,
|
|
893
|
+
originalEvent: t
|
|
894
|
+
}), q !== Z ? (pt >= 0 && (st({
|
|
895
|
+
rootEl: Z,
|
|
896
|
+
name: "add",
|
|
897
|
+
toEl: Z,
|
|
898
|
+
fromEl: q,
|
|
899
|
+
originalEvent: t
|
|
900
|
+
}), st({
|
|
901
|
+
sortable: this,
|
|
902
|
+
name: "remove",
|
|
903
|
+
toEl: Z,
|
|
904
|
+
originalEvent: t
|
|
905
|
+
}), st({
|
|
906
|
+
rootEl: Z,
|
|
907
|
+
name: "sort",
|
|
908
|
+
toEl: Z,
|
|
909
|
+
fromEl: q,
|
|
910
|
+
originalEvent: t
|
|
911
|
+
}), st({
|
|
912
|
+
sortable: this,
|
|
913
|
+
name: "sort",
|
|
914
|
+
toEl: Z,
|
|
915
|
+
originalEvent: t
|
|
916
|
+
})), rt && rt.save()) : pt !== Nt && pt >= 0 && (st({
|
|
917
|
+
sortable: this,
|
|
918
|
+
name: "update",
|
|
919
|
+
toEl: Z,
|
|
920
|
+
originalEvent: t
|
|
921
|
+
}), st({
|
|
922
|
+
sortable: this,
|
|
923
|
+
name: "sort",
|
|
924
|
+
toEl: Z,
|
|
925
|
+
originalEvent: t
|
|
926
|
+
})), D.active && ((pt == null || pt === -1) && (pt = Nt, Tt = Xt), st({
|
|
927
|
+
sortable: this,
|
|
928
|
+
name: "end",
|
|
929
|
+
toEl: Z,
|
|
930
|
+
originalEvent: t
|
|
931
|
+
}), this.save()))), this._nulling();
|
|
932
|
+
},
|
|
933
|
+
_nulling: function() {
|
|
934
|
+
ct("nulling", this), q = _ = Z = I = kt = Y = re = Ct = Et = gt = Ht = pt = Tt = Nt = Xt = At = qt = rt = Kt = D.dragged = D.ghost = D.clone = D.active = null, de.forEach(function(t) {
|
|
935
|
+
t.checked = !0;
|
|
936
|
+
}), de.length = _e = we = 0;
|
|
937
|
+
},
|
|
938
|
+
handleEvent: function(t) {
|
|
939
|
+
switch (t.type) {
|
|
940
|
+
case "drop":
|
|
941
|
+
case "dragend":
|
|
942
|
+
this._onDrop(t);
|
|
943
|
+
break;
|
|
944
|
+
case "dragenter":
|
|
945
|
+
case "dragover":
|
|
946
|
+
_ && (this._onDragOver(t), Rn(t));
|
|
947
|
+
break;
|
|
948
|
+
case "selectstart":
|
|
949
|
+
t.preventDefault();
|
|
950
|
+
break;
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
/**
|
|
954
|
+
* Serializes the item into an array of string.
|
|
955
|
+
* @returns {String[]}
|
|
956
|
+
*/
|
|
957
|
+
toArray: function() {
|
|
958
|
+
for (var t = [], n, e = this.el.children, r = 0, a = e.length, i = this.options; r < a; r++)
|
|
959
|
+
n = e[r], mt(n, i.draggable, this.el, !1) && t.push(n.getAttribute(i.dataIdAttr) || Wn(n));
|
|
960
|
+
return t;
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
* Sorts the elements according to the array.
|
|
964
|
+
* @param {String[]} order order of the items
|
|
965
|
+
*/
|
|
966
|
+
sort: function(t) {
|
|
967
|
+
var n = {}, e = this.el;
|
|
968
|
+
this.toArray().forEach(function(r, a) {
|
|
969
|
+
var i = e.children[a];
|
|
970
|
+
mt(i, this.options.draggable, e, !1) && (n[r] = i);
|
|
971
|
+
}, this), t.forEach(function(r) {
|
|
972
|
+
n[r] && (e.removeChild(n[r]), e.appendChild(n[r]));
|
|
973
|
+
});
|
|
974
|
+
},
|
|
975
|
+
/**
|
|
976
|
+
* Save the current sorting
|
|
977
|
+
*/
|
|
978
|
+
save: function() {
|
|
979
|
+
var t = this.options.store;
|
|
980
|
+
t && t.set && t.set(this);
|
|
981
|
+
},
|
|
982
|
+
/**
|
|
983
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
984
|
+
* @param {HTMLElement} el
|
|
985
|
+
* @param {String} [selector] default: `options.draggable`
|
|
986
|
+
* @returns {HTMLElement|null}
|
|
987
|
+
*/
|
|
988
|
+
closest: function(t, n) {
|
|
989
|
+
return mt(t, n || this.options.draggable, this.el, !1);
|
|
990
|
+
},
|
|
991
|
+
/**
|
|
992
|
+
* Set/get option
|
|
993
|
+
* @param {string} name
|
|
994
|
+
* @param {*} [value]
|
|
995
|
+
* @returns {*}
|
|
996
|
+
*/
|
|
997
|
+
option: function(t, n) {
|
|
998
|
+
var e = this.options;
|
|
999
|
+
if (n === void 0)
|
|
1000
|
+
return e[t];
|
|
1001
|
+
var r = Yt.modifyOption(this, t, n);
|
|
1002
|
+
typeof r < "u" ? e[t] = r : e[t] = n, t === "group" && an(e);
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
* Destroy
|
|
1006
|
+
*/
|
|
1007
|
+
destroy: function() {
|
|
1008
|
+
ct("destroy", this);
|
|
1009
|
+
var t = this.el;
|
|
1010
|
+
t[ot] = null, $(t, "mousedown", this._onTapStart), $(t, "touchstart", this._onTapStart), $(t, "pointerdown", this._onTapStart), this.nativeDraggable && ($(t, "dragover", this), $(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
1011
|
+
n.removeAttribute("draggable");
|
|
1012
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ue.splice(ue.indexOf(this.el), 1), this.el = t = null;
|
|
1013
|
+
},
|
|
1014
|
+
_hideClone: function() {
|
|
1015
|
+
if (!Ct) {
|
|
1016
|
+
if (ct("hideClone", this), D.eventCanceled) return;
|
|
1017
|
+
x(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Ct = !0;
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
_showClone: function(t) {
|
|
1021
|
+
if (t.lastPutMode !== "clone") {
|
|
1022
|
+
this._hideClone();
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
if (Ct) {
|
|
1026
|
+
if (ct("showClone", this), D.eventCanceled) return;
|
|
1027
|
+
q.contains(_) && !this.options.group.revertClone ? q.insertBefore(Y, _) : kt ? q.insertBefore(Y, kt) : q.appendChild(Y), this.options.group.revertClone && this.animate(_, Y), x(Y, "display", ""), Ct = !1;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
function Rn(t) {
|
|
1032
|
+
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1033
|
+
}
|
|
1034
|
+
function xe(t, n, e, r, a, i, o, s) {
|
|
1035
|
+
var l, u = t[ot], c = u.options.onMove, d;
|
|
1036
|
+
return window.CustomEvent && !xt && !zt ? l = new CustomEvent("move", {
|
|
1037
|
+
bubbles: !0,
|
|
1038
|
+
cancelable: !0
|
|
1039
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = n, l.from = t, l.dragged = e, l.draggedRect = r, l.related = a || n, l.relatedRect = i || K(n), l.willInsertAfter = s, l.originalEvent = o, t.dispatchEvent(l), c && (d = c.call(u, l, o)), d;
|
|
1040
|
+
}
|
|
1041
|
+
function Te(t) {
|
|
1042
|
+
t.draggable = !1;
|
|
1043
|
+
}
|
|
1044
|
+
function Ln() {
|
|
1045
|
+
ke = !1;
|
|
1046
|
+
}
|
|
1047
|
+
function jn(t, n, e) {
|
|
1048
|
+
var r = K(Me(e.el, e.options.draggable)), a = 10;
|
|
1049
|
+
return n ? t.clientX > r.right + a || t.clientX <= r.right && t.clientY > r.bottom && t.clientX >= r.left : t.clientX > r.right && t.clientY > r.top || t.clientX <= r.right && t.clientY > r.bottom + a;
|
|
1050
|
+
}
|
|
1051
|
+
function Hn(t, n, e, r, a, i, o, s) {
|
|
1052
|
+
var l = r ? t.clientY : t.clientX, u = r ? e.height : e.width, c = r ? e.top : e.left, d = r ? e.bottom : e.right, h = !1;
|
|
1053
|
+
if (!o) {
|
|
1054
|
+
if (s && ie < u * a) {
|
|
1055
|
+
if (!Ut && (qt === 1 ? l > c + u * i / 2 : l < d - u * i / 2) && (Ut = !0), Ut)
|
|
1056
|
+
h = !0;
|
|
1057
|
+
else if (qt === 1 ? l < c + ie : l > d - ie)
|
|
1058
|
+
return -qt;
|
|
1059
|
+
} else if (l > c + u * (1 - a) / 2 && l < d - u * (1 - a) / 2)
|
|
1060
|
+
return Fn(n);
|
|
1061
|
+
}
|
|
1062
|
+
return h = h || o, h && (l < c + u * i / 2 || l > d - u * i / 2) ? l > c + u / 2 ? 1 : -1 : 0;
|
|
1063
|
+
}
|
|
1064
|
+
function Fn(t) {
|
|
1065
|
+
return G(_) < G(t) ? 1 : -1;
|
|
1066
|
+
}
|
|
1067
|
+
function Wn(t) {
|
|
1068
|
+
for (var n = t.tagName + t.className + t.src + t.href + t.textContent, e = n.length, r = 0; e--; )
|
|
1069
|
+
r += n.charCodeAt(e);
|
|
1070
|
+
return r.toString(36);
|
|
1071
|
+
}
|
|
1072
|
+
function Vn(t) {
|
|
1073
|
+
de.length = 0;
|
|
1074
|
+
for (var n = t.getElementsByTagName("input"), e = n.length; e--; ) {
|
|
1075
|
+
var r = n[e];
|
|
1076
|
+
r.checked && de.push(r);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
function ae(t) {
|
|
1080
|
+
return setTimeout(t, 0);
|
|
1081
|
+
}
|
|
1082
|
+
function Ie(t) {
|
|
1083
|
+
return clearTimeout(t);
|
|
1084
|
+
}
|
|
1085
|
+
fe && P(document, "touchmove", function(t) {
|
|
1086
|
+
(D.active || Mt) && t.cancelable && t.preventDefault();
|
|
1087
|
+
});
|
|
1088
|
+
D.utils = {
|
|
1089
|
+
on: P,
|
|
1090
|
+
off: $,
|
|
1091
|
+
css: x,
|
|
1092
|
+
find: Je,
|
|
1093
|
+
is: function(t, n) {
|
|
1094
|
+
return !!mt(t, n, t, !1);
|
|
1095
|
+
},
|
|
1096
|
+
extend: kn,
|
|
1097
|
+
throttle: tn,
|
|
1098
|
+
closest: mt,
|
|
1099
|
+
toggleClass: U,
|
|
1100
|
+
clone: Ne,
|
|
1101
|
+
index: G,
|
|
1102
|
+
nextTick: ae,
|
|
1103
|
+
cancelNextTick: Ie,
|
|
1104
|
+
detectDirection: rn,
|
|
1105
|
+
getChild: le
|
|
1106
|
+
};
|
|
1107
|
+
D.get = function(t) {
|
|
1108
|
+
return t[ot];
|
|
1109
|
+
};
|
|
1110
|
+
D.mount = function() {
|
|
1111
|
+
for (var t = arguments.length, n = new Array(t), e = 0; e < t; e++)
|
|
1112
|
+
n[e] = arguments[e];
|
|
1113
|
+
n[0].constructor === Array && (n = n[0]), n.forEach(function(r) {
|
|
1114
|
+
if (!r.prototype || !r.prototype.constructor)
|
|
1115
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));
|
|
1116
|
+
r.utils && (D.utils = St({}, D.utils, r.utils)), Yt.mount(r);
|
|
1117
|
+
});
|
|
1118
|
+
};
|
|
1119
|
+
D.create = function(t, n) {
|
|
1120
|
+
return new D(t, n);
|
|
1121
|
+
};
|
|
1122
|
+
D.version = Dn;
|
|
1123
|
+
var J = [], Ft, Ae, $e = !1, Ce, De, pe, Wt;
|
|
1124
|
+
function Xn() {
|
|
1125
|
+
function t() {
|
|
1126
|
+
this.defaults = {
|
|
1127
|
+
scroll: !0,
|
|
1128
|
+
scrollSensitivity: 30,
|
|
1129
|
+
scrollSpeed: 10,
|
|
1130
|
+
bubbleScroll: !0
|
|
1131
|
+
};
|
|
1132
|
+
for (var n in this)
|
|
1133
|
+
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
|
1134
|
+
}
|
|
1135
|
+
return t.prototype = {
|
|
1136
|
+
dragStarted: function(n) {
|
|
1137
|
+
var e = n.originalEvent;
|
|
1138
|
+
this.sortable.nativeDraggable ? P(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? P(document, "pointermove", this._handleFallbackAutoScroll) : e.touches ? P(document, "touchmove", this._handleFallbackAutoScroll) : P(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1139
|
+
},
|
|
1140
|
+
dragOverCompleted: function(n) {
|
|
1141
|
+
var e = n.originalEvent;
|
|
1142
|
+
!this.options.dragOverBubble && !e.rootEl && this._handleAutoScroll(e);
|
|
1143
|
+
},
|
|
1144
|
+
drop: function() {
|
|
1145
|
+
this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), qe(), oe(), In();
|
|
1146
|
+
},
|
|
1147
|
+
nulling: function() {
|
|
1148
|
+
pe = Ae = Ft = $e = Wt = Ce = De = null, J.length = 0;
|
|
1149
|
+
},
|
|
1150
|
+
_handleFallbackAutoScroll: function(n) {
|
|
1151
|
+
this._handleAutoScroll(n, !0);
|
|
1152
|
+
},
|
|
1153
|
+
_handleAutoScroll: function(n, e) {
|
|
1154
|
+
var r = this, a = (n.touches ? n.touches[0] : n).clientX, i = (n.touches ? n.touches[0] : n).clientY, o = document.elementFromPoint(a, i);
|
|
1155
|
+
if (pe = n, e || zt || xt || Oe) {
|
|
1156
|
+
Se(n, this.options, o, e);
|
|
1157
|
+
var s = Dt(o, !0);
|
|
1158
|
+
$e && (!Wt || a !== Ce || i !== De) && (Wt && qe(), Wt = setInterval(function() {
|
|
1159
|
+
var l = Dt(document.elementFromPoint(a, i), !0);
|
|
1160
|
+
l !== s && (s = l, oe()), Se(n, r.options, l, e);
|
|
1161
|
+
}, 10), Ce = a, De = i);
|
|
1162
|
+
} else {
|
|
1163
|
+
if (!this.options.bubbleScroll || Dt(o, !0) === wt()) {
|
|
1164
|
+
oe();
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
Se(n, this.options, Dt(o, !1), !1);
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}, ht(t, {
|
|
1171
|
+
pluginName: "scroll",
|
|
1172
|
+
initializeByDefault: !0
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
function oe() {
|
|
1176
|
+
J.forEach(function(t) {
|
|
1177
|
+
clearInterval(t.pid);
|
|
1178
|
+
}), J = [];
|
|
1179
|
+
}
|
|
1180
|
+
function qe() {
|
|
1181
|
+
clearInterval(Wt);
|
|
1182
|
+
}
|
|
1183
|
+
var Se = tn(function(t, n, e, r) {
|
|
1184
|
+
if (n.scroll) {
|
|
1185
|
+
var a = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, o = n.scrollSensitivity, s = n.scrollSpeed, l = wt(), u = !1, c;
|
|
1186
|
+
Ae !== e && (Ae = e, oe(), Ft = n.scroll, c = n.scrollFn, Ft === !0 && (Ft = Dt(e, !0)));
|
|
1187
|
+
var d = 0, h = Ft;
|
|
1188
|
+
do {
|
|
1189
|
+
var b = h, v = K(b), f = v.top, y = v.bottom, T = v.left, C = v.right, w = v.width, L = v.height, j = void 0, R = void 0, M = b.scrollWidth, A = b.scrollHeight, S = x(b), E = b.scrollLeft, B = b.scrollTop;
|
|
1190
|
+
b === l ? (j = w < M && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), R = L < A && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (j = w < M && (S.overflowX === "auto" || S.overflowX === "scroll"), R = L < A && (S.overflowY === "auto" || S.overflowY === "scroll"));
|
|
1191
|
+
var tt = j && (Math.abs(C - a) <= o && E + w < M) - (Math.abs(T - a) <= o && !!E), et = R && (Math.abs(y - i) <= o && B + L < A) - (Math.abs(f - i) <= o && !!B);
|
|
1192
|
+
if (!J[d])
|
|
1193
|
+
for (var z = 0; z <= d; z++)
|
|
1194
|
+
J[z] || (J[z] = {});
|
|
1195
|
+
(J[d].vx != tt || J[d].vy != et || J[d].el !== b) && (J[d].el = b, J[d].vx = tt, J[d].vy = et, clearInterval(J[d].pid), (tt != 0 || et != 0) && (u = !0, J[d].pid = setInterval((function() {
|
|
1196
|
+
r && this.layer === 0 && D.active._onTouchMove(pe);
|
|
1197
|
+
var F = J[this.layer].vy ? J[this.layer].vy * s : 0, H = J[this.layer].vx ? J[this.layer].vx * s : 0;
|
|
1198
|
+
typeof c == "function" && c.call(D.dragged.parentNode[ot], H, F, t, pe, J[this.layer].el) !== "continue" || en(J[this.layer].el, H, F);
|
|
1199
|
+
}).bind({
|
|
1200
|
+
layer: d
|
|
1201
|
+
}), 24))), d++;
|
|
1202
|
+
} while (n.bubbleScroll && h !== l && (h = Dt(h, !1)));
|
|
1203
|
+
$e = u;
|
|
1204
|
+
}
|
|
1205
|
+
}, 30), ln = function(t) {
|
|
1206
|
+
var n = t.originalEvent, e = t.putSortable, r = t.dragEl, a = t.activeSortable, i = t.dispatchSortableEvent, o = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
1207
|
+
if (n) {
|
|
1208
|
+
var l = e || a;
|
|
1209
|
+
o();
|
|
1210
|
+
var u = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(u.clientX, u.clientY);
|
|
1211
|
+
s(), l && !l.el.contains(c) && (i("spill"), this.onSpill({
|
|
1212
|
+
dragEl: r,
|
|
1213
|
+
putSortable: e
|
|
1214
|
+
}));
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
function Pe() {
|
|
1218
|
+
}
|
|
1219
|
+
Pe.prototype = {
|
|
1220
|
+
startIndex: null,
|
|
1221
|
+
dragStart: function(t) {
|
|
1222
|
+
var n = t.oldDraggableIndex;
|
|
1223
|
+
this.startIndex = n;
|
|
1224
|
+
},
|
|
1225
|
+
onSpill: function(t) {
|
|
1226
|
+
var n = t.dragEl, e = t.putSortable;
|
|
1227
|
+
this.sortable.captureAnimationState(), e && e.captureAnimationState();
|
|
1228
|
+
var r = le(this.sortable.el, this.startIndex, this.options);
|
|
1229
|
+
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), e && e.animateAll();
|
|
1230
|
+
},
|
|
1231
|
+
drop: ln
|
|
1232
|
+
};
|
|
1233
|
+
ht(Pe, {
|
|
1234
|
+
pluginName: "revertOnSpill"
|
|
1235
|
+
});
|
|
1236
|
+
function Be() {
|
|
1237
|
+
}
|
|
1238
|
+
Be.prototype = {
|
|
1239
|
+
onSpill: function(t) {
|
|
1240
|
+
var n = t.dragEl, e = t.putSortable, r = e || this.sortable;
|
|
1241
|
+
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1242
|
+
},
|
|
1243
|
+
drop: ln
|
|
1244
|
+
};
|
|
1245
|
+
ht(Be, {
|
|
1246
|
+
pluginName: "removeOnSpill"
|
|
1247
|
+
});
|
|
1248
|
+
var ft;
|
|
1249
|
+
function qn() {
|
|
1250
|
+
function t() {
|
|
1251
|
+
this.defaults = {
|
|
1252
|
+
swapClass: "sortable-swap-highlight"
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
return t.prototype = {
|
|
1256
|
+
dragStart: function(n) {
|
|
1257
|
+
var e = n.dragEl;
|
|
1258
|
+
ft = e;
|
|
1259
|
+
},
|
|
1260
|
+
dragOverValid: function(n) {
|
|
1261
|
+
var e = n.completed, r = n.target, a = n.onMove, i = n.activeSortable, o = n.changed, s = n.cancel;
|
|
1262
|
+
if (i.options.swap) {
|
|
1263
|
+
var l = this.sortable.el, u = this.options;
|
|
1264
|
+
if (r && r !== l) {
|
|
1265
|
+
var c = ft;
|
|
1266
|
+
a(r) !== !1 ? (U(r, u.swapClass, !0), ft = r) : ft = null, c && c !== ft && U(c, u.swapClass, !1);
|
|
1267
|
+
}
|
|
1268
|
+
o(), e(!0), s();
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
drop: function(n) {
|
|
1272
|
+
var e = n.activeSortable, r = n.putSortable, a = n.dragEl, i = r || this.sortable, o = this.options;
|
|
1273
|
+
ft && U(ft, o.swapClass, !1), ft && (o.swap || r && r.options.swap) && a !== ft && (i.captureAnimationState(), i !== e && e.captureAnimationState(), Un(a, ft), i.animateAll(), i !== e && e.animateAll());
|
|
1274
|
+
},
|
|
1275
|
+
nulling: function() {
|
|
1276
|
+
ft = null;
|
|
1277
|
+
}
|
|
1278
|
+
}, ht(t, {
|
|
1279
|
+
pluginName: "swap",
|
|
1280
|
+
eventProperties: function() {
|
|
1281
|
+
return {
|
|
1282
|
+
swapItem: ft
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
function Un(t, n) {
|
|
1288
|
+
var e = t.parentNode, r = n.parentNode, a, i;
|
|
1289
|
+
!e || !r || e.isEqualNode(n) || r.isEqualNode(t) || (a = G(t), i = G(n), e.isEqualNode(r) && a < i && i++, e.insertBefore(n, e.children[a]), r.insertBefore(t, r.children[i]));
|
|
1290
|
+
}
|
|
1291
|
+
var k = [], dt = [], Bt, vt, Rt = !1, ut = !1, $t = !1, V, Lt, Jt;
|
|
1292
|
+
function zn() {
|
|
1293
|
+
function t(n) {
|
|
1294
|
+
for (var e in this)
|
|
1295
|
+
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1296
|
+
n.options.supportPointer ? P(document, "pointerup", this._deselectMultiDrag) : (P(document, "mouseup", this._deselectMultiDrag), P(document, "touchend", this._deselectMultiDrag)), P(document, "keydown", this._checkKeyDown), P(document, "keyup", this._checkKeyUp), this.defaults = {
|
|
1297
|
+
selectedClass: "sortable-selected",
|
|
1298
|
+
multiDragKey: null,
|
|
1299
|
+
setData: function(r, a) {
|
|
1300
|
+
var i = "";
|
|
1301
|
+
k.length && vt === n ? k.forEach(function(o, s) {
|
|
1302
|
+
i += (s ? ", " : "") + o.textContent;
|
|
1303
|
+
}) : i = a.textContent, r.setData("Text", i);
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
return t.prototype = {
|
|
1308
|
+
multiDragKeyDown: !1,
|
|
1309
|
+
isMultiDrag: !1,
|
|
1310
|
+
delayStartGlobal: function(n) {
|
|
1311
|
+
var e = n.dragEl;
|
|
1312
|
+
V = e;
|
|
1313
|
+
},
|
|
1314
|
+
delayEnded: function() {
|
|
1315
|
+
this.isMultiDrag = ~k.indexOf(V);
|
|
1316
|
+
},
|
|
1317
|
+
setupClone: function(n) {
|
|
1318
|
+
var e = n.sortable, r = n.cancel;
|
|
1319
|
+
if (this.isMultiDrag) {
|
|
1320
|
+
for (var a = 0; a < k.length; a++)
|
|
1321
|
+
dt.push(Ne(k[a])), dt[a].sortableIndex = k[a].sortableIndex, dt[a].draggable = !1, dt[a].style["will-change"] = "", U(dt[a], this.options.selectedClass, !1), k[a] === V && U(dt[a], this.options.chosenClass, !1);
|
|
1322
|
+
e._hideClone(), r();
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
clone: function(n) {
|
|
1326
|
+
var e = n.sortable, r = n.rootEl, a = n.dispatchSortableEvent, i = n.cancel;
|
|
1327
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || k.length && vt === e && (Ue(!0, r), a("clone"), i()));
|
|
1328
|
+
},
|
|
1329
|
+
showClone: function(n) {
|
|
1330
|
+
var e = n.cloneNowShown, r = n.rootEl, a = n.cancel;
|
|
1331
|
+
this.isMultiDrag && (Ue(!1, r), dt.forEach(function(i) {
|
|
1332
|
+
x(i, "display", "");
|
|
1333
|
+
}), e(), Jt = !1, a());
|
|
1334
|
+
},
|
|
1335
|
+
hideClone: function(n) {
|
|
1336
|
+
var e = this, r = n.cloneNowHidden, a = n.cancel;
|
|
1337
|
+
this.isMultiDrag && (dt.forEach(function(i) {
|
|
1338
|
+
x(i, "display", "none"), e.options.removeCloneOnHide && i.parentNode && i.parentNode.removeChild(i);
|
|
1339
|
+
}), r(), Jt = !0, a());
|
|
1340
|
+
},
|
|
1341
|
+
dragStartGlobal: function(n) {
|
|
1342
|
+
!this.isMultiDrag && vt && vt.multiDrag._deselectMultiDrag(), k.forEach(function(e) {
|
|
1343
|
+
e.sortableIndex = G(e);
|
|
1344
|
+
}), k = k.sort(function(e, r) {
|
|
1345
|
+
return e.sortableIndex - r.sortableIndex;
|
|
1346
|
+
}), $t = !0;
|
|
1347
|
+
},
|
|
1348
|
+
dragStarted: function(n) {
|
|
1349
|
+
var e = this, r = n.sortable;
|
|
1350
|
+
if (this.isMultiDrag) {
|
|
1351
|
+
if (this.options.sort && (r.captureAnimationState(), this.options.animation)) {
|
|
1352
|
+
k.forEach(function(i) {
|
|
1353
|
+
i !== V && x(i, "position", "absolute");
|
|
1354
|
+
});
|
|
1355
|
+
var a = K(V, !1, !0, !0);
|
|
1356
|
+
k.forEach(function(i) {
|
|
1357
|
+
i !== V && Fe(i, a);
|
|
1358
|
+
}), ut = !0, Rt = !0;
|
|
1359
|
+
}
|
|
1360
|
+
r.animateAll(function() {
|
|
1361
|
+
ut = !1, Rt = !1, e.options.animation && k.forEach(function(i) {
|
|
1362
|
+
ve(i);
|
|
1363
|
+
}), e.options.sort && te();
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
dragOver: function(n) {
|
|
1368
|
+
var e = n.target, r = n.completed, a = n.cancel;
|
|
1369
|
+
ut && ~k.indexOf(e) && (r(!1), a());
|
|
1370
|
+
},
|
|
1371
|
+
revert: function(n) {
|
|
1372
|
+
var e = n.fromSortable, r = n.rootEl, a = n.sortable, i = n.dragRect;
|
|
1373
|
+
k.length > 1 && (k.forEach(function(o) {
|
|
1374
|
+
a.addAnimationState({
|
|
1375
|
+
target: o,
|
|
1376
|
+
rect: ut ? K(o) : i
|
|
1377
|
+
}), ve(o), o.fromRect = i, e.removeAnimationState(o);
|
|
1378
|
+
}), ut = !1, Yn(!this.options.removeCloneOnHide, r));
|
|
1379
|
+
},
|
|
1380
|
+
dragOverCompleted: function(n) {
|
|
1381
|
+
var e = n.sortable, r = n.isOwner, a = n.insertion, i = n.activeSortable, o = n.parentEl, s = n.putSortable, l = this.options;
|
|
1382
|
+
if (a) {
|
|
1383
|
+
if (r && i._hideClone(), Rt = !1, l.animation && k.length > 1 && (ut || !r && !i.options.sort && !s)) {
|
|
1384
|
+
var u = K(V, !1, !0, !0);
|
|
1385
|
+
k.forEach(function(d) {
|
|
1386
|
+
d !== V && (Fe(d, u), o.appendChild(d));
|
|
1387
|
+
}), ut = !0;
|
|
1388
|
+
}
|
|
1389
|
+
if (!r)
|
|
1390
|
+
if (ut || te(), k.length > 1) {
|
|
1391
|
+
var c = Jt;
|
|
1392
|
+
i._showClone(e), i.options.animation && !Jt && c && dt.forEach(function(d) {
|
|
1393
|
+
i.addAnimationState({
|
|
1394
|
+
target: d,
|
|
1395
|
+
rect: Lt
|
|
1396
|
+
}), d.fromRect = Lt, d.thisAnimationDuration = null;
|
|
1397
|
+
});
|
|
1398
|
+
} else
|
|
1399
|
+
i._showClone(e);
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
dragOverAnimationCapture: function(n) {
|
|
1403
|
+
var e = n.dragRect, r = n.isOwner, a = n.activeSortable;
|
|
1404
|
+
if (k.forEach(function(o) {
|
|
1405
|
+
o.thisAnimationDuration = null;
|
|
1406
|
+
}), a.options.animation && !r && a.multiDrag.isMultiDrag) {
|
|
1407
|
+
Lt = ht({}, e);
|
|
1408
|
+
var i = It(V, !0);
|
|
1409
|
+
Lt.top -= i.f, Lt.left -= i.e;
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
dragOverAnimationComplete: function() {
|
|
1413
|
+
ut && (ut = !1, te());
|
|
1414
|
+
},
|
|
1415
|
+
drop: function(n) {
|
|
1416
|
+
var e = n.originalEvent, r = n.rootEl, a = n.parentEl, i = n.sortable, o = n.dispatchSortableEvent, s = n.oldIndex, l = n.putSortable, u = l || this.sortable;
|
|
1417
|
+
if (e) {
|
|
1418
|
+
var c = this.options, d = a.children;
|
|
1419
|
+
if (!$t)
|
|
1420
|
+
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), U(V, c.selectedClass, !~k.indexOf(V)), ~k.indexOf(V))
|
|
1421
|
+
k.splice(k.indexOf(V), 1), Bt = null, jt({
|
|
1422
|
+
sortable: i,
|
|
1423
|
+
rootEl: r,
|
|
1424
|
+
name: "deselect",
|
|
1425
|
+
targetEl: V
|
|
1426
|
+
});
|
|
1427
|
+
else {
|
|
1428
|
+
if (k.push(V), jt({
|
|
1429
|
+
sortable: i,
|
|
1430
|
+
rootEl: r,
|
|
1431
|
+
name: "select",
|
|
1432
|
+
targetEl: V
|
|
1433
|
+
}), e.shiftKey && Bt && i.el.contains(Bt)) {
|
|
1434
|
+
var h = G(Bt), b = G(V);
|
|
1435
|
+
if (~h && ~b && h !== b) {
|
|
1436
|
+
var v, f;
|
|
1437
|
+
for (b > h ? (f = h, v = b) : (f = b, v = h + 1); f < v; f++)
|
|
1438
|
+
~k.indexOf(d[f]) || (U(d[f], c.selectedClass, !0), k.push(d[f]), jt({
|
|
1439
|
+
sortable: i,
|
|
1440
|
+
rootEl: r,
|
|
1441
|
+
name: "select",
|
|
1442
|
+
targetEl: d[f]
|
|
1443
|
+
}));
|
|
1444
|
+
}
|
|
1445
|
+
} else
|
|
1446
|
+
Bt = V;
|
|
1447
|
+
vt = u;
|
|
1448
|
+
}
|
|
1449
|
+
if ($t && this.isMultiDrag) {
|
|
1450
|
+
if ((a[ot].options.sort || a !== r) && k.length > 1) {
|
|
1451
|
+
var y = K(V), T = G(V, ":not(." + this.options.selectedClass + ")");
|
|
1452
|
+
if (!Rt && c.animation && (V.thisAnimationDuration = null), u.captureAnimationState(), !Rt && (c.animation && (V.fromRect = y, k.forEach(function(w) {
|
|
1453
|
+
if (w.thisAnimationDuration = null, w !== V) {
|
|
1454
|
+
var L = ut ? K(w) : y;
|
|
1455
|
+
w.fromRect = L, u.addAnimationState({
|
|
1456
|
+
target: w,
|
|
1457
|
+
rect: L
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
})), te(), k.forEach(function(w) {
|
|
1461
|
+
d[T] ? a.insertBefore(w, d[T]) : a.appendChild(w), T++;
|
|
1462
|
+
}), s === G(V))) {
|
|
1463
|
+
var C = !1;
|
|
1464
|
+
k.forEach(function(w) {
|
|
1465
|
+
if (w.sortableIndex !== G(w)) {
|
|
1466
|
+
C = !0;
|
|
1467
|
+
return;
|
|
1468
|
+
}
|
|
1469
|
+
}), C && o("update");
|
|
1470
|
+
}
|
|
1471
|
+
k.forEach(function(w) {
|
|
1472
|
+
ve(w);
|
|
1473
|
+
}), u.animateAll();
|
|
1474
|
+
}
|
|
1475
|
+
vt = u;
|
|
1476
|
+
}
|
|
1477
|
+
(r === a || l && l.lastPutMode !== "clone") && dt.forEach(function(w) {
|
|
1478
|
+
w.parentNode && w.parentNode.removeChild(w);
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
nullingGlobal: function() {
|
|
1483
|
+
this.isMultiDrag = $t = !1, dt.length = 0;
|
|
1484
|
+
},
|
|
1485
|
+
destroyGlobal: function() {
|
|
1486
|
+
this._deselectMultiDrag(), $(document, "pointerup", this._deselectMultiDrag), $(document, "mouseup", this._deselectMultiDrag), $(document, "touchend", this._deselectMultiDrag), $(document, "keydown", this._checkKeyDown), $(document, "keyup", this._checkKeyUp);
|
|
1487
|
+
},
|
|
1488
|
+
_deselectMultiDrag: function(n) {
|
|
1489
|
+
if (!(typeof $t < "u" && $t) && vt === this.sortable && !(n && mt(n.target, this.options.draggable, this.sortable.el, !1)) && !(n && n.button !== 0))
|
|
1490
|
+
for (; k.length; ) {
|
|
1491
|
+
var e = k[0];
|
|
1492
|
+
U(e, this.options.selectedClass, !1), k.shift(), jt({
|
|
1493
|
+
sortable: this.sortable,
|
|
1494
|
+
rootEl: this.sortable.el,
|
|
1495
|
+
name: "deselect",
|
|
1496
|
+
targetEl: e
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
_checkKeyDown: function(n) {
|
|
1501
|
+
n.key === this.options.multiDragKey && (this.multiDragKeyDown = !0);
|
|
1502
|
+
},
|
|
1503
|
+
_checkKeyUp: function(n) {
|
|
1504
|
+
n.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
|
|
1505
|
+
}
|
|
1506
|
+
}, ht(t, {
|
|
1507
|
+
// Static methods & properties
|
|
1508
|
+
pluginName: "multiDrag",
|
|
1509
|
+
utils: {
|
|
1510
|
+
/**
|
|
1511
|
+
* Selects the provided multi-drag item
|
|
1512
|
+
* @param {HTMLElement} el The element to be selected
|
|
1513
|
+
*/
|
|
1514
|
+
select: function(n) {
|
|
1515
|
+
var e = n.parentNode[ot];
|
|
1516
|
+
!e || !e.options.multiDrag || ~k.indexOf(n) || (vt && vt !== e && (vt.multiDrag._deselectMultiDrag(), vt = e), U(n, e.options.selectedClass, !0), k.push(n));
|
|
1517
|
+
},
|
|
1518
|
+
/**
|
|
1519
|
+
* Deselects the provided multi-drag item
|
|
1520
|
+
* @param {HTMLElement} el The element to be deselected
|
|
1521
|
+
*/
|
|
1522
|
+
deselect: function(n) {
|
|
1523
|
+
var e = n.parentNode[ot], r = k.indexOf(n);
|
|
1524
|
+
!e || !e.options.multiDrag || !~r || (U(n, e.options.selectedClass, !1), k.splice(r, 1));
|
|
1525
|
+
}
|
|
1526
|
+
},
|
|
1527
|
+
eventProperties: function() {
|
|
1528
|
+
var n = this, e = [], r = [];
|
|
1529
|
+
return k.forEach(function(a) {
|
|
1530
|
+
e.push({
|
|
1531
|
+
multiDragElement: a,
|
|
1532
|
+
index: a.sortableIndex
|
|
1533
|
+
});
|
|
1534
|
+
var i;
|
|
1535
|
+
ut && a !== V ? i = -1 : ut ? i = G(a, ":not(." + n.options.selectedClass + ")") : i = G(a), r.push({
|
|
1536
|
+
multiDragElement: a,
|
|
1537
|
+
index: i
|
|
1538
|
+
});
|
|
1539
|
+
}), {
|
|
1540
|
+
items: yn(k),
|
|
1541
|
+
clones: [].concat(dt),
|
|
1542
|
+
oldIndicies: e,
|
|
1543
|
+
newIndicies: r
|
|
1544
|
+
};
|
|
1545
|
+
},
|
|
1546
|
+
optionListeners: {
|
|
1547
|
+
multiDragKey: function(n) {
|
|
1548
|
+
return n = n.toLowerCase(), n === "ctrl" ? n = "Control" : n.length > 1 && (n = n.charAt(0).toUpperCase() + n.substr(1)), n;
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
function Yn(t, n) {
|
|
1554
|
+
k.forEach(function(e, r) {
|
|
1555
|
+
var a = n.children[e.sortableIndex + (t ? Number(r) : 0)];
|
|
1556
|
+
a ? n.insertBefore(e, a) : n.appendChild(e);
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
function Ue(t, n) {
|
|
1560
|
+
dt.forEach(function(e, r) {
|
|
1561
|
+
var a = n.children[e.sortableIndex + (t ? Number(r) : 0)];
|
|
1562
|
+
a ? n.insertBefore(e, a) : n.appendChild(e);
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
function te() {
|
|
1566
|
+
k.forEach(function(t) {
|
|
1567
|
+
t !== V && t.parentNode && t.parentNode.removeChild(t);
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
D.mount(new Xn());
|
|
1571
|
+
D.mount(Be, Pe);
|
|
1572
|
+
const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1573
|
+
__proto__: null,
|
|
1574
|
+
MultiDrag: zn,
|
|
1575
|
+
Sortable: D,
|
|
1576
|
+
Swap: qn,
|
|
1577
|
+
default: D
|
|
1578
|
+
}, Symbol.toStringTag, { value: "Module" })), Kn = /* @__PURE__ */ bn(Gn);
|
|
1579
|
+
var Qn = Ee.exports, ze;
|
|
1580
|
+
function Zn() {
|
|
1581
|
+
return ze || (ze = 1, (function(t, n) {
|
|
1582
|
+
(function(e, r) {
|
|
1583
|
+
t.exports = r(Kn);
|
|
1584
|
+
})(typeof self < "u" ? self : Qn, function(e) {
|
|
1585
|
+
return (
|
|
1586
|
+
/******/
|
|
1587
|
+
(function(r) {
|
|
1588
|
+
var a = {};
|
|
1589
|
+
function i(o) {
|
|
1590
|
+
if (a[o])
|
|
1591
|
+
return a[o].exports;
|
|
1592
|
+
var s = a[o] = {
|
|
1593
|
+
/******/
|
|
1594
|
+
i: o,
|
|
1595
|
+
/******/
|
|
1596
|
+
l: !1,
|
|
1597
|
+
/******/
|
|
1598
|
+
exports: {}
|
|
1599
|
+
/******/
|
|
1600
|
+
};
|
|
1601
|
+
return r[o].call(s.exports, s, s.exports, i), s.l = !0, s.exports;
|
|
1602
|
+
}
|
|
1603
|
+
return i.m = r, i.c = a, i.d = function(o, s, l) {
|
|
1604
|
+
i.o(o, s) || Object.defineProperty(o, s, { enumerable: !0, get: l });
|
|
1605
|
+
}, i.r = function(o) {
|
|
1606
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
|
|
1607
|
+
}, i.t = function(o, s) {
|
|
1608
|
+
if (s & 1 && (o = i(o)), s & 8 || s & 4 && typeof o == "object" && o && o.__esModule) return o;
|
|
1609
|
+
var l = /* @__PURE__ */ Object.create(null);
|
|
1610
|
+
if (i.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: o }), s & 2 && typeof o != "string") for (var u in o) i.d(l, u, (function(c) {
|
|
1611
|
+
return o[c];
|
|
1612
|
+
}).bind(null, u));
|
|
1613
|
+
return l;
|
|
1614
|
+
}, i.n = function(o) {
|
|
1615
|
+
var s = o && o.__esModule ? (
|
|
1616
|
+
/******/
|
|
1617
|
+
(function() {
|
|
1618
|
+
return o.default;
|
|
1619
|
+
})
|
|
1620
|
+
) : (
|
|
1621
|
+
/******/
|
|
1622
|
+
(function() {
|
|
1623
|
+
return o;
|
|
1624
|
+
})
|
|
1625
|
+
);
|
|
1626
|
+
return i.d(s, "a", s), s;
|
|
1627
|
+
}, i.o = function(o, s) {
|
|
1628
|
+
return Object.prototype.hasOwnProperty.call(o, s);
|
|
1629
|
+
}, i.p = "", i(i.s = "fb15");
|
|
1630
|
+
})({
|
|
1631
|
+
/***/
|
|
1632
|
+
"01f9": (
|
|
1633
|
+
/***/
|
|
1634
|
+
(function(r, a, i) {
|
|
1635
|
+
var o = i("2d00"), s = i("5ca1"), l = i("2aba"), u = i("32e9"), c = i("84f2"), d = i("41a0"), h = i("7f20"), b = i("38fd"), v = i("2b4c")("iterator"), f = !([].keys && "next" in [].keys()), y = "@@iterator", T = "keys", C = "values", w = function() {
|
|
1636
|
+
return this;
|
|
1637
|
+
};
|
|
1638
|
+
r.exports = function(L, j, R, M, A, S, E) {
|
|
1639
|
+
d(R, j, M);
|
|
1640
|
+
var B = function(m) {
|
|
1641
|
+
if (!f && m in F) return F[m];
|
|
1642
|
+
switch (m) {
|
|
1643
|
+
case T:
|
|
1644
|
+
return function() {
|
|
1645
|
+
return new R(this, m);
|
|
1646
|
+
};
|
|
1647
|
+
case C:
|
|
1648
|
+
return function() {
|
|
1649
|
+
return new R(this, m);
|
|
1650
|
+
};
|
|
1651
|
+
}
|
|
1652
|
+
return function() {
|
|
1653
|
+
return new R(this, m);
|
|
1654
|
+
};
|
|
1655
|
+
}, tt = j + " Iterator", et = A == C, z = !1, F = L.prototype, H = F[v] || F[y] || A && F[A], Q = H || B(A), lt = A ? et ? B("entries") : Q : void 0, nt = j == "Array" && F.entries || H, it, p, g;
|
|
1656
|
+
if (nt && (g = b(nt.call(new L())), g !== Object.prototype && g.next && (h(g, tt, !0), !o && typeof g[v] != "function" && u(g, v, w))), et && H && H.name !== C && (z = !0, Q = function() {
|
|
1657
|
+
return H.call(this);
|
|
1658
|
+
}), (!o || E) && (f || z || !F[v]) && u(F, v, Q), c[j] = Q, c[tt] = w, A)
|
|
1659
|
+
if (it = {
|
|
1660
|
+
values: et ? Q : B(C),
|
|
1661
|
+
keys: S ? Q : B(T),
|
|
1662
|
+
entries: lt
|
|
1663
|
+
}, E) for (p in it)
|
|
1664
|
+
p in F || l(F, p, it[p]);
|
|
1665
|
+
else s(s.P + s.F * (f || z), j, it);
|
|
1666
|
+
return it;
|
|
1667
|
+
};
|
|
1668
|
+
})
|
|
1669
|
+
),
|
|
1670
|
+
/***/
|
|
1671
|
+
"02f4": (
|
|
1672
|
+
/***/
|
|
1673
|
+
(function(r, a, i) {
|
|
1674
|
+
var o = i("4588"), s = i("be13");
|
|
1675
|
+
r.exports = function(l) {
|
|
1676
|
+
return function(u, c) {
|
|
1677
|
+
var d = String(s(u)), h = o(c), b = d.length, v, f;
|
|
1678
|
+
return h < 0 || h >= b ? l ? "" : void 0 : (v = d.charCodeAt(h), v < 55296 || v > 56319 || h + 1 === b || (f = d.charCodeAt(h + 1)) < 56320 || f > 57343 ? l ? d.charAt(h) : v : l ? d.slice(h, h + 2) : (v - 55296 << 10) + (f - 56320) + 65536);
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
})
|
|
1682
|
+
),
|
|
1683
|
+
/***/
|
|
1684
|
+
"0390": (
|
|
1685
|
+
/***/
|
|
1686
|
+
(function(r, a, i) {
|
|
1687
|
+
var o = i("02f4")(!0);
|
|
1688
|
+
r.exports = function(s, l, u) {
|
|
1689
|
+
return l + (u ? o(s, l).length : 1);
|
|
1690
|
+
};
|
|
1691
|
+
})
|
|
1692
|
+
),
|
|
1693
|
+
/***/
|
|
1694
|
+
"0bfb": (
|
|
1695
|
+
/***/
|
|
1696
|
+
(function(r, a, i) {
|
|
1697
|
+
var o = i("cb7c");
|
|
1698
|
+
r.exports = function() {
|
|
1699
|
+
var s = o(this), l = "";
|
|
1700
|
+
return s.global && (l += "g"), s.ignoreCase && (l += "i"), s.multiline && (l += "m"), s.unicode && (l += "u"), s.sticky && (l += "y"), l;
|
|
1701
|
+
};
|
|
1702
|
+
})
|
|
1703
|
+
),
|
|
1704
|
+
/***/
|
|
1705
|
+
"0d58": (
|
|
1706
|
+
/***/
|
|
1707
|
+
(function(r, a, i) {
|
|
1708
|
+
var o = i("ce10"), s = i("e11e");
|
|
1709
|
+
r.exports = Object.keys || function(l) {
|
|
1710
|
+
return o(l, s);
|
|
1711
|
+
};
|
|
1712
|
+
})
|
|
1713
|
+
),
|
|
1714
|
+
/***/
|
|
1715
|
+
1495: (
|
|
1716
|
+
/***/
|
|
1717
|
+
(function(r, a, i) {
|
|
1718
|
+
var o = i("86cc"), s = i("cb7c"), l = i("0d58");
|
|
1719
|
+
r.exports = i("9e1e") ? Object.defineProperties : function(u, c) {
|
|
1720
|
+
s(u);
|
|
1721
|
+
for (var d = l(c), h = d.length, b = 0, v; h > b; ) o.f(u, v = d[b++], c[v]);
|
|
1722
|
+
return u;
|
|
1723
|
+
};
|
|
1724
|
+
})
|
|
1725
|
+
),
|
|
1726
|
+
/***/
|
|
1727
|
+
"214f": (
|
|
1728
|
+
/***/
|
|
1729
|
+
(function(r, a, i) {
|
|
1730
|
+
i("b0c5");
|
|
1731
|
+
var o = i("2aba"), s = i("32e9"), l = i("79e5"), u = i("be13"), c = i("2b4c"), d = i("520a"), h = c("species"), b = !l(function() {
|
|
1732
|
+
var f = /./;
|
|
1733
|
+
return f.exec = function() {
|
|
1734
|
+
var y = [];
|
|
1735
|
+
return y.groups = { a: "7" }, y;
|
|
1736
|
+
}, "".replace(f, "$<a>") !== "7";
|
|
1737
|
+
}), v = (function() {
|
|
1738
|
+
var f = /(?:)/, y = f.exec;
|
|
1739
|
+
f.exec = function() {
|
|
1740
|
+
return y.apply(this, arguments);
|
|
1741
|
+
};
|
|
1742
|
+
var T = "ab".split(f);
|
|
1743
|
+
return T.length === 2 && T[0] === "a" && T[1] === "b";
|
|
1744
|
+
})();
|
|
1745
|
+
r.exports = function(f, y, T) {
|
|
1746
|
+
var C = c(f), w = !l(function() {
|
|
1747
|
+
var S = {};
|
|
1748
|
+
return S[C] = function() {
|
|
1749
|
+
return 7;
|
|
1750
|
+
}, ""[f](S) != 7;
|
|
1751
|
+
}), L = w ? !l(function() {
|
|
1752
|
+
var S = !1, E = /a/;
|
|
1753
|
+
return E.exec = function() {
|
|
1754
|
+
return S = !0, null;
|
|
1755
|
+
}, f === "split" && (E.constructor = {}, E.constructor[h] = function() {
|
|
1756
|
+
return E;
|
|
1757
|
+
}), E[C](""), !S;
|
|
1758
|
+
}) : void 0;
|
|
1759
|
+
if (!w || !L || f === "replace" && !b || f === "split" && !v) {
|
|
1760
|
+
var j = /./[C], R = T(
|
|
1761
|
+
u,
|
|
1762
|
+
C,
|
|
1763
|
+
""[f],
|
|
1764
|
+
function(S, E, B, tt, et) {
|
|
1765
|
+
return E.exec === d ? w && !et ? { done: !0, value: j.call(E, B, tt) } : { done: !0, value: S.call(B, E, tt) } : { done: !1 };
|
|
1766
|
+
}
|
|
1767
|
+
), M = R[0], A = R[1];
|
|
1768
|
+
o(String.prototype, f, M), s(
|
|
1769
|
+
RegExp.prototype,
|
|
1770
|
+
C,
|
|
1771
|
+
y == 2 ? function(S, E) {
|
|
1772
|
+
return A.call(S, this, E);
|
|
1773
|
+
} : function(S) {
|
|
1774
|
+
return A.call(S, this);
|
|
1775
|
+
}
|
|
1776
|
+
);
|
|
1777
|
+
}
|
|
1778
|
+
};
|
|
1779
|
+
})
|
|
1780
|
+
),
|
|
1781
|
+
/***/
|
|
1782
|
+
"230e": (
|
|
1783
|
+
/***/
|
|
1784
|
+
(function(r, a, i) {
|
|
1785
|
+
var o = i("d3f4"), s = i("7726").document, l = o(s) && o(s.createElement);
|
|
1786
|
+
r.exports = function(u) {
|
|
1787
|
+
return l ? s.createElement(u) : {};
|
|
1788
|
+
};
|
|
1789
|
+
})
|
|
1790
|
+
),
|
|
1791
|
+
/***/
|
|
1792
|
+
"23c6": (
|
|
1793
|
+
/***/
|
|
1794
|
+
(function(r, a, i) {
|
|
1795
|
+
var o = i("2d95"), s = i("2b4c")("toStringTag"), l = o(/* @__PURE__ */ (function() {
|
|
1796
|
+
return arguments;
|
|
1797
|
+
})()) == "Arguments", u = function(c, d) {
|
|
1798
|
+
try {
|
|
1799
|
+
return c[d];
|
|
1800
|
+
} catch {
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
r.exports = function(c) {
|
|
1804
|
+
var d, h, b;
|
|
1805
|
+
return c === void 0 ? "Undefined" : c === null ? "Null" : typeof (h = u(d = Object(c), s)) == "string" ? h : l ? o(d) : (b = o(d)) == "Object" && typeof d.callee == "function" ? "Arguments" : b;
|
|
1806
|
+
};
|
|
1807
|
+
})
|
|
1808
|
+
),
|
|
1809
|
+
/***/
|
|
1810
|
+
2621: (
|
|
1811
|
+
/***/
|
|
1812
|
+
(function(r, a) {
|
|
1813
|
+
a.f = Object.getOwnPropertySymbols;
|
|
1814
|
+
})
|
|
1815
|
+
),
|
|
1816
|
+
/***/
|
|
1817
|
+
"2aba": (
|
|
1818
|
+
/***/
|
|
1819
|
+
(function(r, a, i) {
|
|
1820
|
+
var o = i("7726"), s = i("32e9"), l = i("69a8"), u = i("ca5a")("src"), c = i("fa5b"), d = "toString", h = ("" + c).split(d);
|
|
1821
|
+
i("8378").inspectSource = function(b) {
|
|
1822
|
+
return c.call(b);
|
|
1823
|
+
}, (r.exports = function(b, v, f, y) {
|
|
1824
|
+
var T = typeof f == "function";
|
|
1825
|
+
T && (l(f, "name") || s(f, "name", v)), b[v] !== f && (T && (l(f, u) || s(f, u, b[v] ? "" + b[v] : h.join(String(v)))), b === o ? b[v] = f : y ? b[v] ? b[v] = f : s(b, v, f) : (delete b[v], s(b, v, f)));
|
|
1826
|
+
})(Function.prototype, d, function() {
|
|
1827
|
+
return typeof this == "function" && this[u] || c.call(this);
|
|
1828
|
+
});
|
|
1829
|
+
})
|
|
1830
|
+
),
|
|
1831
|
+
/***/
|
|
1832
|
+
"2aeb": (
|
|
1833
|
+
/***/
|
|
1834
|
+
(function(r, a, i) {
|
|
1835
|
+
var o = i("cb7c"), s = i("1495"), l = i("e11e"), u = i("613b")("IE_PROTO"), c = function() {
|
|
1836
|
+
}, d = "prototype", h = function() {
|
|
1837
|
+
var b = i("230e")("iframe"), v = l.length, f = "<", y = ">", T;
|
|
1838
|
+
for (b.style.display = "none", i("fab2").appendChild(b), b.src = "javascript:", T = b.contentWindow.document, T.open(), T.write(f + "script" + y + "document.F=Object" + f + "/script" + y), T.close(), h = T.F; v--; ) delete h[d][l[v]];
|
|
1839
|
+
return h();
|
|
1840
|
+
};
|
|
1841
|
+
r.exports = Object.create || function(b, v) {
|
|
1842
|
+
var f;
|
|
1843
|
+
return b !== null ? (c[d] = o(b), f = new c(), c[d] = null, f[u] = b) : f = h(), v === void 0 ? f : s(f, v);
|
|
1844
|
+
};
|
|
1845
|
+
})
|
|
1846
|
+
),
|
|
1847
|
+
/***/
|
|
1848
|
+
"2b4c": (
|
|
1849
|
+
/***/
|
|
1850
|
+
(function(r, a, i) {
|
|
1851
|
+
var o = i("5537")("wks"), s = i("ca5a"), l = i("7726").Symbol, u = typeof l == "function", c = r.exports = function(d) {
|
|
1852
|
+
return o[d] || (o[d] = u && l[d] || (u ? l : s)("Symbol." + d));
|
|
1853
|
+
};
|
|
1854
|
+
c.store = o;
|
|
1855
|
+
})
|
|
1856
|
+
),
|
|
1857
|
+
/***/
|
|
1858
|
+
"2d00": (
|
|
1859
|
+
/***/
|
|
1860
|
+
(function(r, a) {
|
|
1861
|
+
r.exports = !1;
|
|
1862
|
+
})
|
|
1863
|
+
),
|
|
1864
|
+
/***/
|
|
1865
|
+
"2d95": (
|
|
1866
|
+
/***/
|
|
1867
|
+
(function(r, a) {
|
|
1868
|
+
var i = {}.toString;
|
|
1869
|
+
r.exports = function(o) {
|
|
1870
|
+
return i.call(o).slice(8, -1);
|
|
1871
|
+
};
|
|
1872
|
+
})
|
|
1873
|
+
),
|
|
1874
|
+
/***/
|
|
1875
|
+
"2fdb": (
|
|
1876
|
+
/***/
|
|
1877
|
+
(function(r, a, i) {
|
|
1878
|
+
var o = i("5ca1"), s = i("d2c8"), l = "includes";
|
|
1879
|
+
o(o.P + o.F * i("5147")(l), "String", {
|
|
1880
|
+
includes: function(u) {
|
|
1881
|
+
return !!~s(this, u, l).indexOf(u, arguments.length > 1 ? arguments[1] : void 0);
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
})
|
|
1885
|
+
),
|
|
1886
|
+
/***/
|
|
1887
|
+
"32e9": (
|
|
1888
|
+
/***/
|
|
1889
|
+
(function(r, a, i) {
|
|
1890
|
+
var o = i("86cc"), s = i("4630");
|
|
1891
|
+
r.exports = i("9e1e") ? function(l, u, c) {
|
|
1892
|
+
return o.f(l, u, s(1, c));
|
|
1893
|
+
} : function(l, u, c) {
|
|
1894
|
+
return l[u] = c, l;
|
|
1895
|
+
};
|
|
1896
|
+
})
|
|
1897
|
+
),
|
|
1898
|
+
/***/
|
|
1899
|
+
"38fd": (
|
|
1900
|
+
/***/
|
|
1901
|
+
(function(r, a, i) {
|
|
1902
|
+
var o = i("69a8"), s = i("4bf8"), l = i("613b")("IE_PROTO"), u = Object.prototype;
|
|
1903
|
+
r.exports = Object.getPrototypeOf || function(c) {
|
|
1904
|
+
return c = s(c), o(c, l) ? c[l] : typeof c.constructor == "function" && c instanceof c.constructor ? c.constructor.prototype : c instanceof Object ? u : null;
|
|
1905
|
+
};
|
|
1906
|
+
})
|
|
1907
|
+
),
|
|
1908
|
+
/***/
|
|
1909
|
+
"41a0": (
|
|
1910
|
+
/***/
|
|
1911
|
+
(function(r, a, i) {
|
|
1912
|
+
var o = i("2aeb"), s = i("4630"), l = i("7f20"), u = {};
|
|
1913
|
+
i("32e9")(u, i("2b4c")("iterator"), function() {
|
|
1914
|
+
return this;
|
|
1915
|
+
}), r.exports = function(c, d, h) {
|
|
1916
|
+
c.prototype = o(u, { next: s(1, h) }), l(c, d + " Iterator");
|
|
1917
|
+
};
|
|
1918
|
+
})
|
|
1919
|
+
),
|
|
1920
|
+
/***/
|
|
1921
|
+
"456d": (
|
|
1922
|
+
/***/
|
|
1923
|
+
(function(r, a, i) {
|
|
1924
|
+
var o = i("4bf8"), s = i("0d58");
|
|
1925
|
+
i("5eda")("keys", function() {
|
|
1926
|
+
return function(l) {
|
|
1927
|
+
return s(o(l));
|
|
1928
|
+
};
|
|
1929
|
+
});
|
|
1930
|
+
})
|
|
1931
|
+
),
|
|
1932
|
+
/***/
|
|
1933
|
+
4588: (
|
|
1934
|
+
/***/
|
|
1935
|
+
(function(r, a) {
|
|
1936
|
+
var i = Math.ceil, o = Math.floor;
|
|
1937
|
+
r.exports = function(s) {
|
|
1938
|
+
return isNaN(s = +s) ? 0 : (s > 0 ? o : i)(s);
|
|
1939
|
+
};
|
|
1940
|
+
})
|
|
1941
|
+
),
|
|
1942
|
+
/***/
|
|
1943
|
+
4630: (
|
|
1944
|
+
/***/
|
|
1945
|
+
(function(r, a) {
|
|
1946
|
+
r.exports = function(i, o) {
|
|
1947
|
+
return {
|
|
1948
|
+
enumerable: !(i & 1),
|
|
1949
|
+
configurable: !(i & 2),
|
|
1950
|
+
writable: !(i & 4),
|
|
1951
|
+
value: o
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
})
|
|
1955
|
+
),
|
|
1956
|
+
/***/
|
|
1957
|
+
"4bf8": (
|
|
1958
|
+
/***/
|
|
1959
|
+
(function(r, a, i) {
|
|
1960
|
+
var o = i("be13");
|
|
1961
|
+
r.exports = function(s) {
|
|
1962
|
+
return Object(o(s));
|
|
1963
|
+
};
|
|
1964
|
+
})
|
|
1965
|
+
),
|
|
1966
|
+
/***/
|
|
1967
|
+
5147: (
|
|
1968
|
+
/***/
|
|
1969
|
+
(function(r, a, i) {
|
|
1970
|
+
var o = i("2b4c")("match");
|
|
1971
|
+
r.exports = function(s) {
|
|
1972
|
+
var l = /./;
|
|
1973
|
+
try {
|
|
1974
|
+
"/./"[s](l);
|
|
1975
|
+
} catch {
|
|
1976
|
+
try {
|
|
1977
|
+
return l[o] = !1, !"/./"[s](l);
|
|
1978
|
+
} catch {
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
return !0;
|
|
1982
|
+
};
|
|
1983
|
+
})
|
|
1984
|
+
),
|
|
1985
|
+
/***/
|
|
1986
|
+
"520a": (
|
|
1987
|
+
/***/
|
|
1988
|
+
(function(r, a, i) {
|
|
1989
|
+
var o = i("0bfb"), s = RegExp.prototype.exec, l = String.prototype.replace, u = s, c = "lastIndex", d = (function() {
|
|
1990
|
+
var v = /a/, f = /b*/g;
|
|
1991
|
+
return s.call(v, "a"), s.call(f, "a"), v[c] !== 0 || f[c] !== 0;
|
|
1992
|
+
})(), h = /()??/.exec("")[1] !== void 0, b = d || h;
|
|
1993
|
+
b && (u = function(v) {
|
|
1994
|
+
var f = this, y, T, C, w;
|
|
1995
|
+
return h && (T = new RegExp("^" + f.source + "$(?!\\s)", o.call(f))), d && (y = f[c]), C = s.call(f, v), d && C && (f[c] = f.global ? C.index + C[0].length : y), h && C && C.length > 1 && l.call(C[0], T, function() {
|
|
1996
|
+
for (w = 1; w < arguments.length - 2; w++)
|
|
1997
|
+
arguments[w] === void 0 && (C[w] = void 0);
|
|
1998
|
+
}), C;
|
|
1999
|
+
}), r.exports = u;
|
|
2000
|
+
})
|
|
2001
|
+
),
|
|
2002
|
+
/***/
|
|
2003
|
+
"52a7": (
|
|
2004
|
+
/***/
|
|
2005
|
+
(function(r, a) {
|
|
2006
|
+
a.f = {}.propertyIsEnumerable;
|
|
2007
|
+
})
|
|
2008
|
+
),
|
|
2009
|
+
/***/
|
|
2010
|
+
5537: (
|
|
2011
|
+
/***/
|
|
2012
|
+
(function(r, a, i) {
|
|
2013
|
+
var o = i("8378"), s = i("7726"), l = "__core-js_shared__", u = s[l] || (s[l] = {});
|
|
2014
|
+
(r.exports = function(c, d) {
|
|
2015
|
+
return u[c] || (u[c] = d !== void 0 ? d : {});
|
|
2016
|
+
})("versions", []).push({
|
|
2017
|
+
version: o.version,
|
|
2018
|
+
mode: i("2d00") ? "pure" : "global",
|
|
2019
|
+
copyright: "© 2019 Denis Pushkarev (zloirock.ru)"
|
|
2020
|
+
});
|
|
2021
|
+
})
|
|
2022
|
+
),
|
|
2023
|
+
/***/
|
|
2024
|
+
"5ca1": (
|
|
2025
|
+
/***/
|
|
2026
|
+
(function(r, a, i) {
|
|
2027
|
+
var o = i("7726"), s = i("8378"), l = i("32e9"), u = i("2aba"), c = i("9b43"), d = "prototype", h = function(b, v, f) {
|
|
2028
|
+
var y = b & h.F, T = b & h.G, C = b & h.S, w = b & h.P, L = b & h.B, j = T ? o : C ? o[v] || (o[v] = {}) : (o[v] || {})[d], R = T ? s : s[v] || (s[v] = {}), M = R[d] || (R[d] = {}), A, S, E, B;
|
|
2029
|
+
T && (f = v);
|
|
2030
|
+
for (A in f)
|
|
2031
|
+
S = !y && j && j[A] !== void 0, E = (S ? j : f)[A], B = L && S ? c(E, o) : w && typeof E == "function" ? c(Function.call, E) : E, j && u(j, A, E, b & h.U), R[A] != E && l(R, A, B), w && M[A] != E && (M[A] = E);
|
|
2032
|
+
};
|
|
2033
|
+
o.core = s, h.F = 1, h.G = 2, h.S = 4, h.P = 8, h.B = 16, h.W = 32, h.U = 64, h.R = 128, r.exports = h;
|
|
2034
|
+
})
|
|
2035
|
+
),
|
|
2036
|
+
/***/
|
|
2037
|
+
"5eda": (
|
|
2038
|
+
/***/
|
|
2039
|
+
(function(r, a, i) {
|
|
2040
|
+
var o = i("5ca1"), s = i("8378"), l = i("79e5");
|
|
2041
|
+
r.exports = function(u, c) {
|
|
2042
|
+
var d = (s.Object || {})[u] || Object[u], h = {};
|
|
2043
|
+
h[u] = c(d), o(o.S + o.F * l(function() {
|
|
2044
|
+
d(1);
|
|
2045
|
+
}), "Object", h);
|
|
2046
|
+
};
|
|
2047
|
+
})
|
|
2048
|
+
),
|
|
2049
|
+
/***/
|
|
2050
|
+
"5f1b": (
|
|
2051
|
+
/***/
|
|
2052
|
+
(function(r, a, i) {
|
|
2053
|
+
var o = i("23c6"), s = RegExp.prototype.exec;
|
|
2054
|
+
r.exports = function(l, u) {
|
|
2055
|
+
var c = l.exec;
|
|
2056
|
+
if (typeof c == "function") {
|
|
2057
|
+
var d = c.call(l, u);
|
|
2058
|
+
if (typeof d != "object")
|
|
2059
|
+
throw new TypeError("RegExp exec method returned something other than an Object or null");
|
|
2060
|
+
return d;
|
|
2061
|
+
}
|
|
2062
|
+
if (o(l) !== "RegExp")
|
|
2063
|
+
throw new TypeError("RegExp#exec called on incompatible receiver");
|
|
2064
|
+
return s.call(l, u);
|
|
2065
|
+
};
|
|
2066
|
+
})
|
|
2067
|
+
),
|
|
2068
|
+
/***/
|
|
2069
|
+
"613b": (
|
|
2070
|
+
/***/
|
|
2071
|
+
(function(r, a, i) {
|
|
2072
|
+
var o = i("5537")("keys"), s = i("ca5a");
|
|
2073
|
+
r.exports = function(l) {
|
|
2074
|
+
return o[l] || (o[l] = s(l));
|
|
2075
|
+
};
|
|
2076
|
+
})
|
|
2077
|
+
),
|
|
2078
|
+
/***/
|
|
2079
|
+
"626a": (
|
|
2080
|
+
/***/
|
|
2081
|
+
(function(r, a, i) {
|
|
2082
|
+
var o = i("2d95");
|
|
2083
|
+
r.exports = Object("z").propertyIsEnumerable(0) ? Object : function(s) {
|
|
2084
|
+
return o(s) == "String" ? s.split("") : Object(s);
|
|
2085
|
+
};
|
|
2086
|
+
})
|
|
2087
|
+
),
|
|
2088
|
+
/***/
|
|
2089
|
+
6762: (
|
|
2090
|
+
/***/
|
|
2091
|
+
(function(r, a, i) {
|
|
2092
|
+
var o = i("5ca1"), s = i("c366")(!0);
|
|
2093
|
+
o(o.P, "Array", {
|
|
2094
|
+
includes: function(l) {
|
|
2095
|
+
return s(this, l, arguments.length > 1 ? arguments[1] : void 0);
|
|
2096
|
+
}
|
|
2097
|
+
}), i("9c6c")("includes");
|
|
2098
|
+
})
|
|
2099
|
+
),
|
|
2100
|
+
/***/
|
|
2101
|
+
6821: (
|
|
2102
|
+
/***/
|
|
2103
|
+
(function(r, a, i) {
|
|
2104
|
+
var o = i("626a"), s = i("be13");
|
|
2105
|
+
r.exports = function(l) {
|
|
2106
|
+
return o(s(l));
|
|
2107
|
+
};
|
|
2108
|
+
})
|
|
2109
|
+
),
|
|
2110
|
+
/***/
|
|
2111
|
+
"69a8": (
|
|
2112
|
+
/***/
|
|
2113
|
+
(function(r, a) {
|
|
2114
|
+
var i = {}.hasOwnProperty;
|
|
2115
|
+
r.exports = function(o, s) {
|
|
2116
|
+
return i.call(o, s);
|
|
2117
|
+
};
|
|
2118
|
+
})
|
|
2119
|
+
),
|
|
2120
|
+
/***/
|
|
2121
|
+
"6a99": (
|
|
2122
|
+
/***/
|
|
2123
|
+
(function(r, a, i) {
|
|
2124
|
+
var o = i("d3f4");
|
|
2125
|
+
r.exports = function(s, l) {
|
|
2126
|
+
if (!o(s)) return s;
|
|
2127
|
+
var u, c;
|
|
2128
|
+
if (l && typeof (u = s.toString) == "function" && !o(c = u.call(s)) || typeof (u = s.valueOf) == "function" && !o(c = u.call(s)) || !l && typeof (u = s.toString) == "function" && !o(c = u.call(s))) return c;
|
|
2129
|
+
throw TypeError("Can't convert object to primitive value");
|
|
2130
|
+
};
|
|
2131
|
+
})
|
|
2132
|
+
),
|
|
2133
|
+
/***/
|
|
2134
|
+
7333: (
|
|
2135
|
+
/***/
|
|
2136
|
+
(function(r, a, i) {
|
|
2137
|
+
var o = i("0d58"), s = i("2621"), l = i("52a7"), u = i("4bf8"), c = i("626a"), d = Object.assign;
|
|
2138
|
+
r.exports = !d || i("79e5")(function() {
|
|
2139
|
+
var h = {}, b = {}, v = Symbol(), f = "abcdefghijklmnopqrst";
|
|
2140
|
+
return h[v] = 7, f.split("").forEach(function(y) {
|
|
2141
|
+
b[y] = y;
|
|
2142
|
+
}), d({}, h)[v] != 7 || Object.keys(d({}, b)).join("") != f;
|
|
2143
|
+
}) ? function(h, b) {
|
|
2144
|
+
for (var v = u(h), f = arguments.length, y = 1, T = s.f, C = l.f; f > y; )
|
|
2145
|
+
for (var w = c(arguments[y++]), L = T ? o(w).concat(T(w)) : o(w), j = L.length, R = 0, M; j > R; ) C.call(w, M = L[R++]) && (v[M] = w[M]);
|
|
2146
|
+
return v;
|
|
2147
|
+
} : d;
|
|
2148
|
+
})
|
|
2149
|
+
),
|
|
2150
|
+
/***/
|
|
2151
|
+
7726: (
|
|
2152
|
+
/***/
|
|
2153
|
+
(function(r, a) {
|
|
2154
|
+
var i = r.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")();
|
|
2155
|
+
typeof __g == "number" && (__g = i);
|
|
2156
|
+
})
|
|
2157
|
+
),
|
|
2158
|
+
/***/
|
|
2159
|
+
"77f1": (
|
|
2160
|
+
/***/
|
|
2161
|
+
(function(r, a, i) {
|
|
2162
|
+
var o = i("4588"), s = Math.max, l = Math.min;
|
|
2163
|
+
r.exports = function(u, c) {
|
|
2164
|
+
return u = o(u), u < 0 ? s(u + c, 0) : l(u, c);
|
|
2165
|
+
};
|
|
2166
|
+
})
|
|
2167
|
+
),
|
|
2168
|
+
/***/
|
|
2169
|
+
"79e5": (
|
|
2170
|
+
/***/
|
|
2171
|
+
(function(r, a) {
|
|
2172
|
+
r.exports = function(i) {
|
|
2173
|
+
try {
|
|
2174
|
+
return !!i();
|
|
2175
|
+
} catch {
|
|
2176
|
+
return !0;
|
|
2177
|
+
}
|
|
2178
|
+
};
|
|
2179
|
+
})
|
|
2180
|
+
),
|
|
2181
|
+
/***/
|
|
2182
|
+
"7f20": (
|
|
2183
|
+
/***/
|
|
2184
|
+
(function(r, a, i) {
|
|
2185
|
+
var o = i("86cc").f, s = i("69a8"), l = i("2b4c")("toStringTag");
|
|
2186
|
+
r.exports = function(u, c, d) {
|
|
2187
|
+
u && !s(u = d ? u : u.prototype, l) && o(u, l, { configurable: !0, value: c });
|
|
2188
|
+
};
|
|
2189
|
+
})
|
|
2190
|
+
),
|
|
2191
|
+
/***/
|
|
2192
|
+
8378: (
|
|
2193
|
+
/***/
|
|
2194
|
+
(function(r, a) {
|
|
2195
|
+
var i = r.exports = { version: "2.6.5" };
|
|
2196
|
+
typeof __e == "number" && (__e = i);
|
|
2197
|
+
})
|
|
2198
|
+
),
|
|
2199
|
+
/***/
|
|
2200
|
+
"84f2": (
|
|
2201
|
+
/***/
|
|
2202
|
+
(function(r, a) {
|
|
2203
|
+
r.exports = {};
|
|
2204
|
+
})
|
|
2205
|
+
),
|
|
2206
|
+
/***/
|
|
2207
|
+
"86cc": (
|
|
2208
|
+
/***/
|
|
2209
|
+
(function(r, a, i) {
|
|
2210
|
+
var o = i("cb7c"), s = i("c69a"), l = i("6a99"), u = Object.defineProperty;
|
|
2211
|
+
a.f = i("9e1e") ? Object.defineProperty : function(c, d, h) {
|
|
2212
|
+
if (o(c), d = l(d, !0), o(h), s) try {
|
|
2213
|
+
return u(c, d, h);
|
|
2214
|
+
} catch {
|
|
2215
|
+
}
|
|
2216
|
+
if ("get" in h || "set" in h) throw TypeError("Accessors not supported!");
|
|
2217
|
+
return "value" in h && (c[d] = h.value), c;
|
|
2218
|
+
};
|
|
2219
|
+
})
|
|
2220
|
+
),
|
|
2221
|
+
/***/
|
|
2222
|
+
"9b43": (
|
|
2223
|
+
/***/
|
|
2224
|
+
(function(r, a, i) {
|
|
2225
|
+
var o = i("d8e8");
|
|
2226
|
+
r.exports = function(s, l, u) {
|
|
2227
|
+
if (o(s), l === void 0) return s;
|
|
2228
|
+
switch (u) {
|
|
2229
|
+
case 1:
|
|
2230
|
+
return function(c) {
|
|
2231
|
+
return s.call(l, c);
|
|
2232
|
+
};
|
|
2233
|
+
case 2:
|
|
2234
|
+
return function(c, d) {
|
|
2235
|
+
return s.call(l, c, d);
|
|
2236
|
+
};
|
|
2237
|
+
case 3:
|
|
2238
|
+
return function(c, d, h) {
|
|
2239
|
+
return s.call(l, c, d, h);
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
return function() {
|
|
2243
|
+
return s.apply(l, arguments);
|
|
2244
|
+
};
|
|
2245
|
+
};
|
|
2246
|
+
})
|
|
2247
|
+
),
|
|
2248
|
+
/***/
|
|
2249
|
+
"9c6c": (
|
|
2250
|
+
/***/
|
|
2251
|
+
(function(r, a, i) {
|
|
2252
|
+
var o = i("2b4c")("unscopables"), s = Array.prototype;
|
|
2253
|
+
s[o] == null && i("32e9")(s, o, {}), r.exports = function(l) {
|
|
2254
|
+
s[o][l] = !0;
|
|
2255
|
+
};
|
|
2256
|
+
})
|
|
2257
|
+
),
|
|
2258
|
+
/***/
|
|
2259
|
+
"9def": (
|
|
2260
|
+
/***/
|
|
2261
|
+
(function(r, a, i) {
|
|
2262
|
+
var o = i("4588"), s = Math.min;
|
|
2263
|
+
r.exports = function(l) {
|
|
2264
|
+
return l > 0 ? s(o(l), 9007199254740991) : 0;
|
|
2265
|
+
};
|
|
2266
|
+
})
|
|
2267
|
+
),
|
|
2268
|
+
/***/
|
|
2269
|
+
"9e1e": (
|
|
2270
|
+
/***/
|
|
2271
|
+
(function(r, a, i) {
|
|
2272
|
+
r.exports = !i("79e5")(function() {
|
|
2273
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
2274
|
+
return 7;
|
|
2275
|
+
} }).a != 7;
|
|
2276
|
+
});
|
|
2277
|
+
})
|
|
2278
|
+
),
|
|
2279
|
+
/***/
|
|
2280
|
+
a352: (
|
|
2281
|
+
/***/
|
|
2282
|
+
(function(r, a) {
|
|
2283
|
+
r.exports = e;
|
|
2284
|
+
})
|
|
2285
|
+
),
|
|
2286
|
+
/***/
|
|
2287
|
+
a481: (
|
|
2288
|
+
/***/
|
|
2289
|
+
(function(r, a, i) {
|
|
2290
|
+
var o = i("cb7c"), s = i("4bf8"), l = i("9def"), u = i("4588"), c = i("0390"), d = i("5f1b"), h = Math.max, b = Math.min, v = Math.floor, f = /\$([$&`']|\d\d?|<[^>]*>)/g, y = /\$([$&`']|\d\d?)/g, T = function(C) {
|
|
2291
|
+
return C === void 0 ? C : String(C);
|
|
2292
|
+
};
|
|
2293
|
+
i("214f")("replace", 2, function(C, w, L, j) {
|
|
2294
|
+
return [
|
|
2295
|
+
// `String.prototype.replace` method
|
|
2296
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2297
|
+
function(M, A) {
|
|
2298
|
+
var S = C(this), E = M == null ? void 0 : M[w];
|
|
2299
|
+
return E !== void 0 ? E.call(M, S, A) : L.call(String(S), M, A);
|
|
2300
|
+
},
|
|
2301
|
+
// `RegExp.prototype[@@replace]` method
|
|
2302
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2303
|
+
function(M, A) {
|
|
2304
|
+
var S = j(L, M, this, A);
|
|
2305
|
+
if (S.done) return S.value;
|
|
2306
|
+
var E = o(M), B = String(this), tt = typeof A == "function";
|
|
2307
|
+
tt || (A = String(A));
|
|
2308
|
+
var et = E.global;
|
|
2309
|
+
if (et) {
|
|
2310
|
+
var z = E.unicode;
|
|
2311
|
+
E.lastIndex = 0;
|
|
2312
|
+
}
|
|
2313
|
+
for (var F = []; ; ) {
|
|
2314
|
+
var H = d(E, B);
|
|
2315
|
+
if (H === null || (F.push(H), !et)) break;
|
|
2316
|
+
var Q = String(H[0]);
|
|
2317
|
+
Q === "" && (E.lastIndex = c(B, l(E.lastIndex), z));
|
|
2318
|
+
}
|
|
2319
|
+
for (var lt = "", nt = 0, it = 0; it < F.length; it++) {
|
|
2320
|
+
H = F[it];
|
|
2321
|
+
for (var p = String(H[0]), g = h(b(u(H.index), B.length), 0), m = [], O = 1; O < H.length; O++) m.push(T(H[O]));
|
|
2322
|
+
var N = H.groups;
|
|
2323
|
+
if (tt) {
|
|
2324
|
+
var W = [p].concat(m, g, B);
|
|
2325
|
+
N !== void 0 && W.push(N);
|
|
2326
|
+
var X = String(A.apply(void 0, W));
|
|
2327
|
+
} else
|
|
2328
|
+
X = R(p, B, g, m, N, A);
|
|
2329
|
+
g >= nt && (lt += B.slice(nt, g) + X, nt = g + p.length);
|
|
2330
|
+
}
|
|
2331
|
+
return lt + B.slice(nt);
|
|
2332
|
+
}
|
|
2333
|
+
];
|
|
2334
|
+
function R(M, A, S, E, B, tt) {
|
|
2335
|
+
var et = S + M.length, z = E.length, F = y;
|
|
2336
|
+
return B !== void 0 && (B = s(B), F = f), L.call(tt, F, function(H, Q) {
|
|
2337
|
+
var lt;
|
|
2338
|
+
switch (Q.charAt(0)) {
|
|
2339
|
+
case "$":
|
|
2340
|
+
return "$";
|
|
2341
|
+
case "&":
|
|
2342
|
+
return M;
|
|
2343
|
+
case "`":
|
|
2344
|
+
return A.slice(0, S);
|
|
2345
|
+
case "'":
|
|
2346
|
+
return A.slice(et);
|
|
2347
|
+
case "<":
|
|
2348
|
+
lt = B[Q.slice(1, -1)];
|
|
2349
|
+
break;
|
|
2350
|
+
default:
|
|
2351
|
+
var nt = +Q;
|
|
2352
|
+
if (nt === 0) return H;
|
|
2353
|
+
if (nt > z) {
|
|
2354
|
+
var it = v(nt / 10);
|
|
2355
|
+
return it === 0 ? H : it <= z ? E[it - 1] === void 0 ? Q.charAt(1) : E[it - 1] + Q.charAt(1) : H;
|
|
2356
|
+
}
|
|
2357
|
+
lt = E[nt - 1];
|
|
2358
|
+
}
|
|
2359
|
+
return lt === void 0 ? "" : lt;
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2362
|
+
});
|
|
2363
|
+
})
|
|
2364
|
+
),
|
|
2365
|
+
/***/
|
|
2366
|
+
aae3: (
|
|
2367
|
+
/***/
|
|
2368
|
+
(function(r, a, i) {
|
|
2369
|
+
var o = i("d3f4"), s = i("2d95"), l = i("2b4c")("match");
|
|
2370
|
+
r.exports = function(u) {
|
|
2371
|
+
var c;
|
|
2372
|
+
return o(u) && ((c = u[l]) !== void 0 ? !!c : s(u) == "RegExp");
|
|
2373
|
+
};
|
|
2374
|
+
})
|
|
2375
|
+
),
|
|
2376
|
+
/***/
|
|
2377
|
+
ac6a: (
|
|
2378
|
+
/***/
|
|
2379
|
+
(function(r, a, i) {
|
|
2380
|
+
for (var o = i("cadf"), s = i("0d58"), l = i("2aba"), u = i("7726"), c = i("32e9"), d = i("84f2"), h = i("2b4c"), b = h("iterator"), v = h("toStringTag"), f = d.Array, y = {
|
|
2381
|
+
CSSRuleList: !0,
|
|
2382
|
+
// TODO: Not spec compliant, should be false.
|
|
2383
|
+
CSSStyleDeclaration: !1,
|
|
2384
|
+
CSSValueList: !1,
|
|
2385
|
+
ClientRectList: !1,
|
|
2386
|
+
DOMRectList: !1,
|
|
2387
|
+
DOMStringList: !1,
|
|
2388
|
+
DOMTokenList: !0,
|
|
2389
|
+
DataTransferItemList: !1,
|
|
2390
|
+
FileList: !1,
|
|
2391
|
+
HTMLAllCollection: !1,
|
|
2392
|
+
HTMLCollection: !1,
|
|
2393
|
+
HTMLFormElement: !1,
|
|
2394
|
+
HTMLSelectElement: !1,
|
|
2395
|
+
MediaList: !0,
|
|
2396
|
+
// TODO: Not spec compliant, should be false.
|
|
2397
|
+
MimeTypeArray: !1,
|
|
2398
|
+
NamedNodeMap: !1,
|
|
2399
|
+
NodeList: !0,
|
|
2400
|
+
PaintRequestList: !1,
|
|
2401
|
+
Plugin: !1,
|
|
2402
|
+
PluginArray: !1,
|
|
2403
|
+
SVGLengthList: !1,
|
|
2404
|
+
SVGNumberList: !1,
|
|
2405
|
+
SVGPathSegList: !1,
|
|
2406
|
+
SVGPointList: !1,
|
|
2407
|
+
SVGStringList: !1,
|
|
2408
|
+
SVGTransformList: !1,
|
|
2409
|
+
SourceBufferList: !1,
|
|
2410
|
+
StyleSheetList: !0,
|
|
2411
|
+
// TODO: Not spec compliant, should be false.
|
|
2412
|
+
TextTrackCueList: !1,
|
|
2413
|
+
TextTrackList: !1,
|
|
2414
|
+
TouchList: !1
|
|
2415
|
+
}, T = s(y), C = 0; C < T.length; C++) {
|
|
2416
|
+
var w = T[C], L = y[w], j = u[w], R = j && j.prototype, M;
|
|
2417
|
+
if (R && (R[b] || c(R, b, f), R[v] || c(R, v, w), d[w] = f, L))
|
|
2418
|
+
for (M in o) R[M] || l(R, M, o[M], !0);
|
|
2419
|
+
}
|
|
2420
|
+
})
|
|
2421
|
+
),
|
|
2422
|
+
/***/
|
|
2423
|
+
b0c5: (
|
|
2424
|
+
/***/
|
|
2425
|
+
(function(r, a, i) {
|
|
2426
|
+
var o = i("520a");
|
|
2427
|
+
i("5ca1")({
|
|
2428
|
+
target: "RegExp",
|
|
2429
|
+
proto: !0,
|
|
2430
|
+
forced: o !== /./.exec
|
|
2431
|
+
}, {
|
|
2432
|
+
exec: o
|
|
2433
|
+
});
|
|
2434
|
+
})
|
|
2435
|
+
),
|
|
2436
|
+
/***/
|
|
2437
|
+
be13: (
|
|
2438
|
+
/***/
|
|
2439
|
+
(function(r, a) {
|
|
2440
|
+
r.exports = function(i) {
|
|
2441
|
+
if (i == null) throw TypeError("Can't call method on " + i);
|
|
2442
|
+
return i;
|
|
2443
|
+
};
|
|
2444
|
+
})
|
|
2445
|
+
),
|
|
2446
|
+
/***/
|
|
2447
|
+
c366: (
|
|
2448
|
+
/***/
|
|
2449
|
+
(function(r, a, i) {
|
|
2450
|
+
var o = i("6821"), s = i("9def"), l = i("77f1");
|
|
2451
|
+
r.exports = function(u) {
|
|
2452
|
+
return function(c, d, h) {
|
|
2453
|
+
var b = o(c), v = s(b.length), f = l(h, v), y;
|
|
2454
|
+
if (u && d != d) {
|
|
2455
|
+
for (; v > f; )
|
|
2456
|
+
if (y = b[f++], y != y) return !0;
|
|
2457
|
+
} else for (; v > f; f++) if ((u || f in b) && b[f] === d)
|
|
2458
|
+
return u || f || 0;
|
|
2459
|
+
return !u && -1;
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
})
|
|
2463
|
+
),
|
|
2464
|
+
/***/
|
|
2465
|
+
c649: (
|
|
2466
|
+
/***/
|
|
2467
|
+
(function(r, a, i) {
|
|
2468
|
+
(function(o) {
|
|
2469
|
+
i.d(a, "c", function() {
|
|
2470
|
+
return b;
|
|
2471
|
+
}), i.d(a, "a", function() {
|
|
2472
|
+
return d;
|
|
2473
|
+
}), i.d(a, "b", function() {
|
|
2474
|
+
return l;
|
|
2475
|
+
}), i.d(a, "d", function() {
|
|
2476
|
+
return h;
|
|
2477
|
+
}), i("a481");
|
|
2478
|
+
function s() {
|
|
2479
|
+
return typeof window < "u" ? window.console : o.console;
|
|
2480
|
+
}
|
|
2481
|
+
var l = s();
|
|
2482
|
+
function u(v) {
|
|
2483
|
+
var f = /* @__PURE__ */ Object.create(null);
|
|
2484
|
+
return function(y) {
|
|
2485
|
+
var T = f[y];
|
|
2486
|
+
return T || (f[y] = v(y));
|
|
2487
|
+
};
|
|
2488
|
+
}
|
|
2489
|
+
var c = /-(\w)/g, d = u(function(v) {
|
|
2490
|
+
return v.replace(c, function(f, y) {
|
|
2491
|
+
return y ? y.toUpperCase() : "";
|
|
2492
|
+
});
|
|
2493
|
+
});
|
|
2494
|
+
function h(v) {
|
|
2495
|
+
v.parentElement !== null && v.parentElement.removeChild(v);
|
|
2496
|
+
}
|
|
2497
|
+
function b(v, f, y) {
|
|
2498
|
+
var T = y === 0 ? v.children[0] : v.children[y - 1].nextSibling;
|
|
2499
|
+
v.insertBefore(f, T);
|
|
2500
|
+
}
|
|
2501
|
+
}).call(this, i("c8ba"));
|
|
2502
|
+
})
|
|
2503
|
+
),
|
|
2504
|
+
/***/
|
|
2505
|
+
c69a: (
|
|
2506
|
+
/***/
|
|
2507
|
+
(function(r, a, i) {
|
|
2508
|
+
r.exports = !i("9e1e") && !i("79e5")(function() {
|
|
2509
|
+
return Object.defineProperty(i("230e")("div"), "a", { get: function() {
|
|
2510
|
+
return 7;
|
|
2511
|
+
} }).a != 7;
|
|
2512
|
+
});
|
|
2513
|
+
})
|
|
2514
|
+
),
|
|
2515
|
+
/***/
|
|
2516
|
+
c8ba: (
|
|
2517
|
+
/***/
|
|
2518
|
+
(function(r, a) {
|
|
2519
|
+
var i;
|
|
2520
|
+
i = /* @__PURE__ */ (function() {
|
|
2521
|
+
return this;
|
|
2522
|
+
})();
|
|
2523
|
+
try {
|
|
2524
|
+
i = i || new Function("return this")();
|
|
2525
|
+
} catch {
|
|
2526
|
+
typeof window == "object" && (i = window);
|
|
2527
|
+
}
|
|
2528
|
+
r.exports = i;
|
|
2529
|
+
})
|
|
2530
|
+
),
|
|
2531
|
+
/***/
|
|
2532
|
+
ca5a: (
|
|
2533
|
+
/***/
|
|
2534
|
+
(function(r, a) {
|
|
2535
|
+
var i = 0, o = Math.random();
|
|
2536
|
+
r.exports = function(s) {
|
|
2537
|
+
return "Symbol(".concat(s === void 0 ? "" : s, ")_", (++i + o).toString(36));
|
|
2538
|
+
};
|
|
2539
|
+
})
|
|
2540
|
+
),
|
|
2541
|
+
/***/
|
|
2542
|
+
cadf: (
|
|
2543
|
+
/***/
|
|
2544
|
+
(function(r, a, i) {
|
|
2545
|
+
var o = i("9c6c"), s = i("d53b"), l = i("84f2"), u = i("6821");
|
|
2546
|
+
r.exports = i("01f9")(Array, "Array", function(c, d) {
|
|
2547
|
+
this._t = u(c), this._i = 0, this._k = d;
|
|
2548
|
+
}, function() {
|
|
2549
|
+
var c = this._t, d = this._k, h = this._i++;
|
|
2550
|
+
return !c || h >= c.length ? (this._t = void 0, s(1)) : d == "keys" ? s(0, h) : d == "values" ? s(0, c[h]) : s(0, [h, c[h]]);
|
|
2551
|
+
}, "values"), l.Arguments = l.Array, o("keys"), o("values"), o("entries");
|
|
2552
|
+
})
|
|
2553
|
+
),
|
|
2554
|
+
/***/
|
|
2555
|
+
cb7c: (
|
|
2556
|
+
/***/
|
|
2557
|
+
(function(r, a, i) {
|
|
2558
|
+
var o = i("d3f4");
|
|
2559
|
+
r.exports = function(s) {
|
|
2560
|
+
if (!o(s)) throw TypeError(s + " is not an object!");
|
|
2561
|
+
return s;
|
|
2562
|
+
};
|
|
2563
|
+
})
|
|
2564
|
+
),
|
|
2565
|
+
/***/
|
|
2566
|
+
ce10: (
|
|
2567
|
+
/***/
|
|
2568
|
+
(function(r, a, i) {
|
|
2569
|
+
var o = i("69a8"), s = i("6821"), l = i("c366")(!1), u = i("613b")("IE_PROTO");
|
|
2570
|
+
r.exports = function(c, d) {
|
|
2571
|
+
var h = s(c), b = 0, v = [], f;
|
|
2572
|
+
for (f in h) f != u && o(h, f) && v.push(f);
|
|
2573
|
+
for (; d.length > b; ) o(h, f = d[b++]) && (~l(v, f) || v.push(f));
|
|
2574
|
+
return v;
|
|
2575
|
+
};
|
|
2576
|
+
})
|
|
2577
|
+
),
|
|
2578
|
+
/***/
|
|
2579
|
+
d2c8: (
|
|
2580
|
+
/***/
|
|
2581
|
+
(function(r, a, i) {
|
|
2582
|
+
var o = i("aae3"), s = i("be13");
|
|
2583
|
+
r.exports = function(l, u, c) {
|
|
2584
|
+
if (o(u)) throw TypeError("String#" + c + " doesn't accept regex!");
|
|
2585
|
+
return String(s(l));
|
|
2586
|
+
};
|
|
2587
|
+
})
|
|
2588
|
+
),
|
|
2589
|
+
/***/
|
|
2590
|
+
d3f4: (
|
|
2591
|
+
/***/
|
|
2592
|
+
(function(r, a) {
|
|
2593
|
+
r.exports = function(i) {
|
|
2594
|
+
return typeof i == "object" ? i !== null : typeof i == "function";
|
|
2595
|
+
};
|
|
2596
|
+
})
|
|
2597
|
+
),
|
|
2598
|
+
/***/
|
|
2599
|
+
d53b: (
|
|
2600
|
+
/***/
|
|
2601
|
+
(function(r, a) {
|
|
2602
|
+
r.exports = function(i, o) {
|
|
2603
|
+
return { value: o, done: !!i };
|
|
2604
|
+
};
|
|
2605
|
+
})
|
|
2606
|
+
),
|
|
2607
|
+
/***/
|
|
2608
|
+
d8e8: (
|
|
2609
|
+
/***/
|
|
2610
|
+
(function(r, a) {
|
|
2611
|
+
r.exports = function(i) {
|
|
2612
|
+
if (typeof i != "function") throw TypeError(i + " is not a function!");
|
|
2613
|
+
return i;
|
|
2614
|
+
};
|
|
2615
|
+
})
|
|
2616
|
+
),
|
|
2617
|
+
/***/
|
|
2618
|
+
e11e: (
|
|
2619
|
+
/***/
|
|
2620
|
+
(function(r, a) {
|
|
2621
|
+
r.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
2622
|
+
})
|
|
2623
|
+
),
|
|
2624
|
+
/***/
|
|
2625
|
+
f559: (
|
|
2626
|
+
/***/
|
|
2627
|
+
(function(r, a, i) {
|
|
2628
|
+
var o = i("5ca1"), s = i("9def"), l = i("d2c8"), u = "startsWith", c = ""[u];
|
|
2629
|
+
o(o.P + o.F * i("5147")(u), "String", {
|
|
2630
|
+
startsWith: function(d) {
|
|
2631
|
+
var h = l(this, d, u), b = s(Math.min(arguments.length > 1 ? arguments[1] : void 0, h.length)), v = String(d);
|
|
2632
|
+
return c ? c.call(h, v, b) : h.slice(b, b + v.length) === v;
|
|
2633
|
+
}
|
|
2634
|
+
});
|
|
2635
|
+
})
|
|
2636
|
+
),
|
|
2637
|
+
/***/
|
|
2638
|
+
f6fd: (
|
|
2639
|
+
/***/
|
|
2640
|
+
(function(r, a) {
|
|
2641
|
+
(function(i) {
|
|
2642
|
+
var o = "currentScript", s = i.getElementsByTagName("script");
|
|
2643
|
+
o in i || Object.defineProperty(i, o, {
|
|
2644
|
+
get: function() {
|
|
2645
|
+
try {
|
|
2646
|
+
throw new Error();
|
|
2647
|
+
} catch (c) {
|
|
2648
|
+
var l, u = (/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(c.stack) || [!1])[1];
|
|
2649
|
+
for (l in s)
|
|
2650
|
+
if (s[l].src == u || s[l].readyState == "interactive")
|
|
2651
|
+
return s[l];
|
|
2652
|
+
return null;
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
});
|
|
2656
|
+
})(document);
|
|
2657
|
+
})
|
|
2658
|
+
),
|
|
2659
|
+
/***/
|
|
2660
|
+
f751: (
|
|
2661
|
+
/***/
|
|
2662
|
+
(function(r, a, i) {
|
|
2663
|
+
var o = i("5ca1");
|
|
2664
|
+
o(o.S + o.F, "Object", { assign: i("7333") });
|
|
2665
|
+
})
|
|
2666
|
+
),
|
|
2667
|
+
/***/
|
|
2668
|
+
fa5b: (
|
|
2669
|
+
/***/
|
|
2670
|
+
(function(r, a, i) {
|
|
2671
|
+
r.exports = i("5537")("native-function-to-string", Function.toString);
|
|
2672
|
+
})
|
|
2673
|
+
),
|
|
2674
|
+
/***/
|
|
2675
|
+
fab2: (
|
|
2676
|
+
/***/
|
|
2677
|
+
(function(r, a, i) {
|
|
2678
|
+
var o = i("7726").document;
|
|
2679
|
+
r.exports = o && o.documentElement;
|
|
2680
|
+
})
|
|
2681
|
+
),
|
|
2682
|
+
/***/
|
|
2683
|
+
fb15: (
|
|
2684
|
+
/***/
|
|
2685
|
+
(function(r, a, i) {
|
|
2686
|
+
if (i.r(a), typeof window < "u") {
|
|
2687
|
+
i("f6fd");
|
|
2688
|
+
var o;
|
|
2689
|
+
(o = window.document.currentScript) && (o = o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)) && (i.p = o[1]);
|
|
2690
|
+
}
|
|
2691
|
+
i("f751"), i("f559"), i("ac6a"), i("cadf"), i("456d");
|
|
2692
|
+
function s(p) {
|
|
2693
|
+
if (Array.isArray(p)) return p;
|
|
2694
|
+
}
|
|
2695
|
+
function l(p, g) {
|
|
2696
|
+
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(p)))) {
|
|
2697
|
+
var m = [], O = !0, N = !1, W = void 0;
|
|
2698
|
+
try {
|
|
2699
|
+
for (var X = p[Symbol.iterator](), _t; !(O = (_t = X.next()).done) && (m.push(_t.value), m.length !== g); O = !0)
|
|
2700
|
+
;
|
|
2701
|
+
} catch (bt) {
|
|
2702
|
+
N = !0, W = bt;
|
|
2703
|
+
} finally {
|
|
2704
|
+
try {
|
|
2705
|
+
!O && X.return != null && X.return();
|
|
2706
|
+
} finally {
|
|
2707
|
+
if (N) throw W;
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
return m;
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
function u(p, g) {
|
|
2714
|
+
(g == null || g > p.length) && (g = p.length);
|
|
2715
|
+
for (var m = 0, O = new Array(g); m < g; m++)
|
|
2716
|
+
O[m] = p[m];
|
|
2717
|
+
return O;
|
|
2718
|
+
}
|
|
2719
|
+
function c(p, g) {
|
|
2720
|
+
if (p) {
|
|
2721
|
+
if (typeof p == "string") return u(p, g);
|
|
2722
|
+
var m = Object.prototype.toString.call(p).slice(8, -1);
|
|
2723
|
+
if (m === "Object" && p.constructor && (m = p.constructor.name), m === "Map" || m === "Set") return Array.from(p);
|
|
2724
|
+
if (m === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)) return u(p, g);
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
function d() {
|
|
2728
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2729
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2730
|
+
}
|
|
2731
|
+
function h(p, g) {
|
|
2732
|
+
return s(p) || l(p, g) || c(p, g) || d();
|
|
2733
|
+
}
|
|
2734
|
+
i("6762"), i("2fdb");
|
|
2735
|
+
function b(p) {
|
|
2736
|
+
if (Array.isArray(p)) return u(p);
|
|
2737
|
+
}
|
|
2738
|
+
function v(p) {
|
|
2739
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(p)) return Array.from(p);
|
|
2740
|
+
}
|
|
2741
|
+
function f() {
|
|
2742
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2743
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2744
|
+
}
|
|
2745
|
+
function y(p) {
|
|
2746
|
+
return b(p) || v(p) || c(p) || f();
|
|
2747
|
+
}
|
|
2748
|
+
var T = i("a352"), C = /* @__PURE__ */ i.n(T), w = i("c649");
|
|
2749
|
+
function L(p, g, m) {
|
|
2750
|
+
return m === void 0 || (p = p || {}, p[g] = m), p;
|
|
2751
|
+
}
|
|
2752
|
+
function j(p, g) {
|
|
2753
|
+
return p.map(function(m) {
|
|
2754
|
+
return m.elm;
|
|
2755
|
+
}).indexOf(g);
|
|
2756
|
+
}
|
|
2757
|
+
function R(p, g, m, O) {
|
|
2758
|
+
if (!p)
|
|
2759
|
+
return [];
|
|
2760
|
+
var N = p.map(function(_t) {
|
|
2761
|
+
return _t.elm;
|
|
2762
|
+
}), W = g.length - O, X = y(g).map(function(_t, bt) {
|
|
2763
|
+
return bt >= W ? N.length : N.indexOf(_t);
|
|
2764
|
+
});
|
|
2765
|
+
return m ? X.filter(function(_t) {
|
|
2766
|
+
return _t !== -1;
|
|
2767
|
+
}) : X;
|
|
2768
|
+
}
|
|
2769
|
+
function M(p, g) {
|
|
2770
|
+
var m = this;
|
|
2771
|
+
this.$nextTick(function() {
|
|
2772
|
+
return m.$emit(p.toLowerCase(), g);
|
|
2773
|
+
});
|
|
2774
|
+
}
|
|
2775
|
+
function A(p) {
|
|
2776
|
+
var g = this;
|
|
2777
|
+
return function(m) {
|
|
2778
|
+
g.realList !== null && g["onDrag" + p](m), M.call(g, p, m);
|
|
2779
|
+
};
|
|
2780
|
+
}
|
|
2781
|
+
function S(p) {
|
|
2782
|
+
return ["transition-group", "TransitionGroup"].includes(p);
|
|
2783
|
+
}
|
|
2784
|
+
function E(p) {
|
|
2785
|
+
if (!p || p.length !== 1)
|
|
2786
|
+
return !1;
|
|
2787
|
+
var g = h(p, 1), m = g[0].componentOptions;
|
|
2788
|
+
return m ? S(m.tag) : !1;
|
|
2789
|
+
}
|
|
2790
|
+
function B(p, g, m) {
|
|
2791
|
+
return p[m] || (g[m] ? g[m]() : void 0);
|
|
2792
|
+
}
|
|
2793
|
+
function tt(p, g, m) {
|
|
2794
|
+
var O = 0, N = 0, W = B(g, m, "header");
|
|
2795
|
+
W && (O = W.length, p = p ? [].concat(y(W), y(p)) : y(W));
|
|
2796
|
+
var X = B(g, m, "footer");
|
|
2797
|
+
return X && (N = X.length, p = p ? [].concat(y(p), y(X)) : y(X)), {
|
|
2798
|
+
children: p,
|
|
2799
|
+
headerOffset: O,
|
|
2800
|
+
footerOffset: N
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
2803
|
+
function et(p, g) {
|
|
2804
|
+
var m = null, O = function(bt, Gt) {
|
|
2805
|
+
m = L(m, bt, Gt);
|
|
2806
|
+
}, N = Object.keys(p).filter(function(bt) {
|
|
2807
|
+
return bt === "id" || bt.startsWith("data-");
|
|
2808
|
+
}).reduce(function(bt, Gt) {
|
|
2809
|
+
return bt[Gt] = p[Gt], bt;
|
|
2810
|
+
}, {});
|
|
2811
|
+
if (O("attrs", N), !g)
|
|
2812
|
+
return m;
|
|
2813
|
+
var W = g.on, X = g.props, _t = g.attrs;
|
|
2814
|
+
return O("on", W), O("props", X), Object.assign(m.attrs, _t), m;
|
|
2815
|
+
}
|
|
2816
|
+
var z = ["Start", "Add", "Remove", "Update", "End"], F = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], H = ["Move"].concat(z, F).map(function(p) {
|
|
2817
|
+
return "on" + p;
|
|
2818
|
+
}), Q = null, lt = {
|
|
2819
|
+
options: Object,
|
|
2820
|
+
list: {
|
|
2821
|
+
type: Array,
|
|
2822
|
+
required: !1,
|
|
2823
|
+
default: null
|
|
2824
|
+
},
|
|
2825
|
+
value: {
|
|
2826
|
+
type: Array,
|
|
2827
|
+
required: !1,
|
|
2828
|
+
default: null
|
|
2829
|
+
},
|
|
2830
|
+
noTransitionOnDrag: {
|
|
2831
|
+
type: Boolean,
|
|
2832
|
+
default: !1
|
|
2833
|
+
},
|
|
2834
|
+
clone: {
|
|
2835
|
+
type: Function,
|
|
2836
|
+
default: function(p) {
|
|
2837
|
+
return p;
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
element: {
|
|
2841
|
+
type: String,
|
|
2842
|
+
default: "div"
|
|
2843
|
+
},
|
|
2844
|
+
tag: {
|
|
2845
|
+
type: String,
|
|
2846
|
+
default: null
|
|
2847
|
+
},
|
|
2848
|
+
move: {
|
|
2849
|
+
type: Function,
|
|
2850
|
+
default: null
|
|
2851
|
+
},
|
|
2852
|
+
componentData: {
|
|
2853
|
+
type: Object,
|
|
2854
|
+
required: !1,
|
|
2855
|
+
default: null
|
|
2856
|
+
}
|
|
2857
|
+
}, nt = {
|
|
2858
|
+
name: "draggable",
|
|
2859
|
+
inheritAttrs: !1,
|
|
2860
|
+
props: lt,
|
|
2861
|
+
data: function() {
|
|
2862
|
+
return {
|
|
2863
|
+
transitionMode: !1,
|
|
2864
|
+
noneFunctionalComponentMode: !1
|
|
2865
|
+
};
|
|
2866
|
+
},
|
|
2867
|
+
render: function(p) {
|
|
2868
|
+
var g = this.$slots.default;
|
|
2869
|
+
this.transitionMode = E(g);
|
|
2870
|
+
var m = tt(g, this.$slots, this.$scopedSlots), O = m.children, N = m.headerOffset, W = m.footerOffset;
|
|
2871
|
+
this.headerOffset = N, this.footerOffset = W;
|
|
2872
|
+
var X = et(this.$attrs, this.componentData);
|
|
2873
|
+
return p(this.getTag(), X, O);
|
|
2874
|
+
},
|
|
2875
|
+
created: function() {
|
|
2876
|
+
this.list !== null && this.value !== null && w.b.error("Value and list props are mutually exclusive! Please set one or another."), this.element !== "div" && w.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"), this.options !== void 0 && w.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props");
|
|
2877
|
+
},
|
|
2878
|
+
mounted: function() {
|
|
2879
|
+
var p = this;
|
|
2880
|
+
if (this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase() && !this.getIsFunctional(), this.noneFunctionalComponentMode && this.transitionMode)
|
|
2881
|
+
throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));
|
|
2882
|
+
var g = {};
|
|
2883
|
+
z.forEach(function(N) {
|
|
2884
|
+
g["on" + N] = A.call(p, N);
|
|
2885
|
+
}), F.forEach(function(N) {
|
|
2886
|
+
g["on" + N] = M.bind(p, N);
|
|
2887
|
+
});
|
|
2888
|
+
var m = Object.keys(this.$attrs).reduce(function(N, W) {
|
|
2889
|
+
return N[Object(w.a)(W)] = p.$attrs[W], N;
|
|
2890
|
+
}, {}), O = Object.assign({}, this.options, m, g, {
|
|
2891
|
+
onMove: function(N, W) {
|
|
2892
|
+
return p.onDragMove(N, W);
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
!("draggable" in O) && (O.draggable = ">*"), this._sortable = new C.a(this.rootContainer, O), this.computeIndexes();
|
|
2896
|
+
},
|
|
2897
|
+
beforeDestroy: function() {
|
|
2898
|
+
this._sortable !== void 0 && this._sortable.destroy();
|
|
2899
|
+
},
|
|
2900
|
+
computed: {
|
|
2901
|
+
rootContainer: function() {
|
|
2902
|
+
return this.transitionMode ? this.$el.children[0] : this.$el;
|
|
2903
|
+
},
|
|
2904
|
+
realList: function() {
|
|
2905
|
+
return this.list ? this.list : this.value;
|
|
2906
|
+
}
|
|
2907
|
+
},
|
|
2908
|
+
watch: {
|
|
2909
|
+
options: {
|
|
2910
|
+
handler: function(p) {
|
|
2911
|
+
this.updateOptions(p);
|
|
2912
|
+
},
|
|
2913
|
+
deep: !0
|
|
2914
|
+
},
|
|
2915
|
+
$attrs: {
|
|
2916
|
+
handler: function(p) {
|
|
2917
|
+
this.updateOptions(p);
|
|
2918
|
+
},
|
|
2919
|
+
deep: !0
|
|
2920
|
+
},
|
|
2921
|
+
realList: function() {
|
|
2922
|
+
this.computeIndexes();
|
|
2923
|
+
}
|
|
2924
|
+
},
|
|
2925
|
+
methods: {
|
|
2926
|
+
getIsFunctional: function() {
|
|
2927
|
+
var p = this._vnode.fnOptions;
|
|
2928
|
+
return p && p.functional;
|
|
2929
|
+
},
|
|
2930
|
+
getTag: function() {
|
|
2931
|
+
return this.tag || this.element;
|
|
2932
|
+
},
|
|
2933
|
+
updateOptions: function(p) {
|
|
2934
|
+
for (var g in p) {
|
|
2935
|
+
var m = Object(w.a)(g);
|
|
2936
|
+
H.indexOf(m) === -1 && this._sortable.option(m, p[g]);
|
|
2937
|
+
}
|
|
2938
|
+
},
|
|
2939
|
+
getChildrenNodes: function() {
|
|
2940
|
+
if (this.noneFunctionalComponentMode)
|
|
2941
|
+
return this.$children[0].$slots.default;
|
|
2942
|
+
var p = this.$slots.default;
|
|
2943
|
+
return this.transitionMode ? p[0].child.$slots.default : p;
|
|
2944
|
+
},
|
|
2945
|
+
computeIndexes: function() {
|
|
2946
|
+
var p = this;
|
|
2947
|
+
this.$nextTick(function() {
|
|
2948
|
+
p.visibleIndexes = R(p.getChildrenNodes(), p.rootContainer.children, p.transitionMode, p.footerOffset);
|
|
2949
|
+
});
|
|
2950
|
+
},
|
|
2951
|
+
getUnderlyingVm: function(p) {
|
|
2952
|
+
var g = j(this.getChildrenNodes() || [], p);
|
|
2953
|
+
if (g === -1)
|
|
2954
|
+
return null;
|
|
2955
|
+
var m = this.realList[g];
|
|
2956
|
+
return {
|
|
2957
|
+
index: g,
|
|
2958
|
+
element: m
|
|
2959
|
+
};
|
|
2960
|
+
},
|
|
2961
|
+
getUnderlyingPotencialDraggableComponent: function(p) {
|
|
2962
|
+
var g = p.__vue__;
|
|
2963
|
+
return !g || !g.$options || !S(g.$options._componentTag) ? !("realList" in g) && g.$children.length === 1 && "realList" in g.$children[0] ? g.$children[0] : g : g.$parent;
|
|
2964
|
+
},
|
|
2965
|
+
emitChanges: function(p) {
|
|
2966
|
+
var g = this;
|
|
2967
|
+
this.$nextTick(function() {
|
|
2968
|
+
g.$emit("change", p);
|
|
2969
|
+
});
|
|
2970
|
+
},
|
|
2971
|
+
alterList: function(p) {
|
|
2972
|
+
if (this.list) {
|
|
2973
|
+
p(this.list);
|
|
2974
|
+
return;
|
|
2975
|
+
}
|
|
2976
|
+
var g = y(this.value);
|
|
2977
|
+
p(g), this.$emit("input", g);
|
|
2978
|
+
},
|
|
2979
|
+
spliceList: function() {
|
|
2980
|
+
var p = arguments, g = function(m) {
|
|
2981
|
+
return m.splice.apply(m, y(p));
|
|
2982
|
+
};
|
|
2983
|
+
this.alterList(g);
|
|
2984
|
+
},
|
|
2985
|
+
updatePosition: function(p, g) {
|
|
2986
|
+
var m = function(O) {
|
|
2987
|
+
return O.splice(g, 0, O.splice(p, 1)[0]);
|
|
2988
|
+
};
|
|
2989
|
+
this.alterList(m);
|
|
2990
|
+
},
|
|
2991
|
+
getRelatedContextFromMoveEvent: function(p) {
|
|
2992
|
+
var g = p.to, m = p.related, O = this.getUnderlyingPotencialDraggableComponent(g);
|
|
2993
|
+
if (!O)
|
|
2994
|
+
return {
|
|
2995
|
+
component: O
|
|
2996
|
+
};
|
|
2997
|
+
var N = O.realList, W = {
|
|
2998
|
+
list: N,
|
|
2999
|
+
component: O
|
|
3000
|
+
};
|
|
3001
|
+
if (g !== m && N && O.getUnderlyingVm) {
|
|
3002
|
+
var X = O.getUnderlyingVm(m);
|
|
3003
|
+
if (X)
|
|
3004
|
+
return Object.assign(X, W);
|
|
3005
|
+
}
|
|
3006
|
+
return W;
|
|
3007
|
+
},
|
|
3008
|
+
getVmIndex: function(p) {
|
|
3009
|
+
var g = this.visibleIndexes, m = g.length;
|
|
3010
|
+
return p > m - 1 ? m : g[p];
|
|
3011
|
+
},
|
|
3012
|
+
getComponent: function() {
|
|
3013
|
+
return this.$slots.default[0].componentInstance;
|
|
3014
|
+
},
|
|
3015
|
+
resetTransitionData: function(p) {
|
|
3016
|
+
if (!(!this.noTransitionOnDrag || !this.transitionMode)) {
|
|
3017
|
+
var g = this.getChildrenNodes();
|
|
3018
|
+
g[p].data = null;
|
|
3019
|
+
var m = this.getComponent();
|
|
3020
|
+
m.children = [], m.kept = void 0;
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
onDragStart: function(p) {
|
|
3024
|
+
this.context = this.getUnderlyingVm(p.item), p.item._underlying_vm_ = this.clone(this.context.element), Q = p.item;
|
|
3025
|
+
},
|
|
3026
|
+
onDragAdd: function(p) {
|
|
3027
|
+
var g = p.item._underlying_vm_;
|
|
3028
|
+
if (g !== void 0) {
|
|
3029
|
+
Object(w.d)(p.item);
|
|
3030
|
+
var m = this.getVmIndex(p.newIndex);
|
|
3031
|
+
this.spliceList(m, 0, g), this.computeIndexes();
|
|
3032
|
+
var O = {
|
|
3033
|
+
element: g,
|
|
3034
|
+
newIndex: m
|
|
3035
|
+
};
|
|
3036
|
+
this.emitChanges({
|
|
3037
|
+
added: O
|
|
3038
|
+
});
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3041
|
+
onDragRemove: function(p) {
|
|
3042
|
+
if (Object(w.c)(this.rootContainer, p.item, p.oldIndex), p.pullMode === "clone") {
|
|
3043
|
+
Object(w.d)(p.clone);
|
|
3044
|
+
return;
|
|
3045
|
+
}
|
|
3046
|
+
var g = this.context.index;
|
|
3047
|
+
this.spliceList(g, 1);
|
|
3048
|
+
var m = {
|
|
3049
|
+
element: this.context.element,
|
|
3050
|
+
oldIndex: g
|
|
3051
|
+
};
|
|
3052
|
+
this.resetTransitionData(g), this.emitChanges({
|
|
3053
|
+
removed: m
|
|
3054
|
+
});
|
|
3055
|
+
},
|
|
3056
|
+
onDragUpdate: function(p) {
|
|
3057
|
+
Object(w.d)(p.item), Object(w.c)(p.from, p.item, p.oldIndex);
|
|
3058
|
+
var g = this.context.index, m = this.getVmIndex(p.newIndex);
|
|
3059
|
+
this.updatePosition(g, m);
|
|
3060
|
+
var O = {
|
|
3061
|
+
element: this.context.element,
|
|
3062
|
+
oldIndex: g,
|
|
3063
|
+
newIndex: m
|
|
3064
|
+
};
|
|
3065
|
+
this.emitChanges({
|
|
3066
|
+
moved: O
|
|
3067
|
+
});
|
|
3068
|
+
},
|
|
3069
|
+
updateProperty: function(p, g) {
|
|
3070
|
+
p.hasOwnProperty(g) && (p[g] += this.headerOffset);
|
|
3071
|
+
},
|
|
3072
|
+
computeFutureIndex: function(p, g) {
|
|
3073
|
+
if (!p.element)
|
|
3074
|
+
return 0;
|
|
3075
|
+
var m = y(g.to.children).filter(function(X) {
|
|
3076
|
+
return X.style.display !== "none";
|
|
3077
|
+
}), O = m.indexOf(g.related), N = p.component.getVmIndex(O), W = m.indexOf(Q) !== -1;
|
|
3078
|
+
return W || !g.willInsertAfter ? N : N + 1;
|
|
3079
|
+
},
|
|
3080
|
+
onDragMove: function(p, g) {
|
|
3081
|
+
var m = this.move;
|
|
3082
|
+
if (!m || !this.realList)
|
|
3083
|
+
return !0;
|
|
3084
|
+
var O = this.getRelatedContextFromMoveEvent(p), N = this.context, W = this.computeFutureIndex(O, p);
|
|
3085
|
+
Object.assign(N, {
|
|
3086
|
+
futureIndex: W
|
|
3087
|
+
});
|
|
3088
|
+
var X = Object.assign({}, p, {
|
|
3089
|
+
relatedContext: O,
|
|
3090
|
+
draggedContext: N
|
|
3091
|
+
});
|
|
3092
|
+
return m(X, g);
|
|
3093
|
+
},
|
|
3094
|
+
onDragEnd: function() {
|
|
3095
|
+
this.computeIndexes(), Q = null;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
};
|
|
3099
|
+
typeof window < "u" && "Vue" in window && window.Vue.component("draggable", nt);
|
|
3100
|
+
var it = nt;
|
|
3101
|
+
a.default = it;
|
|
3102
|
+
})
|
|
3103
|
+
)
|
|
3104
|
+
/******/
|
|
3105
|
+
}).default
|
|
3106
|
+
);
|
|
3107
|
+
});
|
|
3108
|
+
})(Ee)), Ee.exports;
|
|
3109
|
+
}
|
|
3110
|
+
var Jn = Zn();
|
|
3111
|
+
const tr = /* @__PURE__ */ hn(Jn), er = "_in-tabs-wrapper__draggable_v01428_dxR7Q", nr = "_in-tabs-wrapper__draggable--box-style_v01428_T1Xq6", rr = "_in-tabs-wrapper__draggable-wrapper_v01428_svRcC", ir = "_left-arrow--box-style_v01428_ou-gz", ar = "_right-arrow--box-style_v01428_C1cp8", or = {
|
|
3112
|
+
"in-tabs-wrapper__draggable": "_in-tabs-wrapper__draggable_v01428_dxR7Q",
|
|
3113
|
+
inTabsWrapperDraggable: er,
|
|
3114
|
+
"in-tabs-wrapper__draggable--box-style": "_in-tabs-wrapper__draggable--box-style_v01428_T1Xq6",
|
|
3115
|
+
inTabsWrapperDraggableBoxStyle: nr,
|
|
3116
|
+
"in-tabs-wrapper__draggable-wrapper": "_in-tabs-wrapper__draggable-wrapper_v01428_svRcC",
|
|
3117
|
+
inTabsWrapperDraggableWrapper: rr,
|
|
3118
|
+
"left-arrow--box-style": "_left-arrow--box-style_v01428_ou-gz",
|
|
3119
|
+
leftArrowBoxStyle: ir,
|
|
3120
|
+
"right-arrow--box-style": "_right-arrow--box-style_v01428_C1cp8",
|
|
3121
|
+
rightArrowBoxStyle: ar
|
|
3122
|
+
}, ee = 24, sr = {
|
|
3123
|
+
name: "DraggableCarousel",
|
|
3124
|
+
components: {
|
|
3125
|
+
draggable: tr,
|
|
3126
|
+
InButtonV2: gn,
|
|
3127
|
+
InTooltipV2: vn
|
|
3128
|
+
},
|
|
3129
|
+
props: {
|
|
3130
|
+
/**
|
|
3131
|
+
* @property {array} list
|
|
3132
|
+
*/
|
|
3133
|
+
list: {
|
|
3134
|
+
type: Array,
|
|
3135
|
+
required: !0
|
|
3136
|
+
},
|
|
3137
|
+
/**
|
|
3138
|
+
* @property {boolean} addButton
|
|
3139
|
+
*/
|
|
3140
|
+
addButton: {
|
|
3141
|
+
type: Boolean,
|
|
3142
|
+
default: !1
|
|
3143
|
+
},
|
|
3144
|
+
/**
|
|
3145
|
+
* @property {boolean} boxStyle
|
|
3146
|
+
*/
|
|
3147
|
+
boxStyle: {
|
|
3148
|
+
type: Boolean,
|
|
3149
|
+
default: !1
|
|
3150
|
+
},
|
|
3151
|
+
/**
|
|
3152
|
+
* @property {string} tooltipText
|
|
3153
|
+
*/
|
|
3154
|
+
tooltipText: {
|
|
3155
|
+
type: String,
|
|
3156
|
+
default: ""
|
|
3157
|
+
},
|
|
3158
|
+
/**
|
|
3159
|
+
* @property {boolean} tooltipStatus
|
|
3160
|
+
*/
|
|
3161
|
+
tooltipStatus: {
|
|
3162
|
+
type: Boolean,
|
|
3163
|
+
default: !1
|
|
3164
|
+
},
|
|
3165
|
+
/**
|
|
3166
|
+
* @property {object} tooltipPosition
|
|
3167
|
+
*/
|
|
3168
|
+
tooltipPosition: {
|
|
3169
|
+
type: Object,
|
|
3170
|
+
default: () => ({})
|
|
3171
|
+
},
|
|
3172
|
+
/**
|
|
3173
|
+
* @property {string} triangleAlignment
|
|
3174
|
+
*/
|
|
3175
|
+
triangleAlignment: {
|
|
3176
|
+
type: String,
|
|
3177
|
+
default: "center"
|
|
3178
|
+
},
|
|
3179
|
+
/**
|
|
3180
|
+
* @property {string} trianglePosition
|
|
3181
|
+
*/
|
|
3182
|
+
trianglePosition: {
|
|
3183
|
+
type: String,
|
|
3184
|
+
default: "top"
|
|
3185
|
+
},
|
|
3186
|
+
/**
|
|
3187
|
+
* @property {string} selectedTabIndex
|
|
3188
|
+
*/
|
|
3189
|
+
selectedTabIndex: {
|
|
3190
|
+
type: Number,
|
|
3191
|
+
default: 0
|
|
3192
|
+
}
|
|
3193
|
+
},
|
|
3194
|
+
data() {
|
|
3195
|
+
return {
|
|
3196
|
+
carouselOffset: 0,
|
|
3197
|
+
containerPosition: 0,
|
|
3198
|
+
containerStart: 0,
|
|
3199
|
+
containerEnd: 0,
|
|
3200
|
+
carouselEnabled: !1,
|
|
3201
|
+
disabledButtons: !1,
|
|
3202
|
+
offsetStyle: "transform: translate3d(0, 0, 1px)",
|
|
3203
|
+
scrollOffset: 0,
|
|
3204
|
+
rightHiddenTabs: [],
|
|
3205
|
+
leftHiddenTabs: [],
|
|
3206
|
+
disableLeftArrow: !1,
|
|
3207
|
+
disableRightArrow: !1
|
|
3208
|
+
};
|
|
3209
|
+
},
|
|
3210
|
+
watch: {
|
|
3211
|
+
list: {
|
|
3212
|
+
handler() {
|
|
3213
|
+
this.$nextTick(() => {
|
|
3214
|
+
this.checkTabsWidth();
|
|
3215
|
+
});
|
|
3216
|
+
},
|
|
3217
|
+
deep: !0
|
|
3218
|
+
},
|
|
3219
|
+
carouselEnabled() {
|
|
3220
|
+
this.$emit("setCarouselStatus", this.carouselEnabled);
|
|
3221
|
+
},
|
|
3222
|
+
selectedTabIndex() {
|
|
3223
|
+
this.scrollToTab(this.selectedTabIndex);
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
mounted() {
|
|
3227
|
+
this.checkTabsWidth(), window.addEventListener("resize", this.checkTabsWidth);
|
|
3228
|
+
},
|
|
3229
|
+
methods: {
|
|
3230
|
+
/**
|
|
3231
|
+
* @return {void}
|
|
3232
|
+
*/
|
|
3233
|
+
setLeftHiddenTabs() {
|
|
3234
|
+
if (!this.carouselEnabled)
|
|
3235
|
+
return;
|
|
3236
|
+
const t = Array.from(this.$refs.draggableCarousel.$el.children).filter((n) => this.containerStart - n.getBoundingClientRect().left > ee / 2);
|
|
3237
|
+
this.disableLeftArrow = !t.length, this.leftHiddenTabs = t.map((n) => this.containerStart - n.getBoundingClientRect().left).sort((n, e) => n - e);
|
|
3238
|
+
},
|
|
3239
|
+
/**
|
|
3240
|
+
* @return {void}
|
|
3241
|
+
*/
|
|
3242
|
+
setRightHiddenTabs() {
|
|
3243
|
+
if (!this.carouselEnabled)
|
|
3244
|
+
return;
|
|
3245
|
+
this.rightHiddenTabs = Array.from(this.$refs.draggableCarousel.$el.children).filter((e) => {
|
|
3246
|
+
const r = e.getBoundingClientRect();
|
|
3247
|
+
return Math.floor(r.left + r.width + ee - this.containerEnd) > ee;
|
|
3248
|
+
}).map((e) => {
|
|
3249
|
+
const r = e.getBoundingClientRect();
|
|
3250
|
+
return r.left + r.width + ee - this.containerEnd;
|
|
3251
|
+
}).sort((e, r) => e > r), this.disableRightArrow = !this.rightHiddenTabs.length;
|
|
3252
|
+
const t = Array.from(this.$refs.draggableCarousel.$el.children).sort((e, r) => {
|
|
3253
|
+
const a = this.containerEnd - e.getBoundingClientRect().right, i = this.containerEnd - r.getBoundingClientRect().right;
|
|
3254
|
+
return a > 0 && a - i;
|
|
3255
|
+
})[0], n = Array.from(this.$refs.draggableCarousel.$el.children).indexOf(t);
|
|
3256
|
+
this.$emit("setLastVisibleItem", n);
|
|
3257
|
+
},
|
|
3258
|
+
/**
|
|
3259
|
+
* @return {void}
|
|
3260
|
+
*/
|
|
3261
|
+
nextSlide() {
|
|
3262
|
+
if (this.disabledButtons || this.disableRightArrow)
|
|
3263
|
+
return;
|
|
3264
|
+
let t;
|
|
3265
|
+
this.disableLeftArrow = !1, this.disabledButtons = !0, this.rightHiddenTabs.length ? t = this.scrollOffset + this.rightHiddenTabs[0] - 24 : t = this.scrollOffset, this.$emit("closeDropdown"), this.scrollOffset = t, this.offsetStyle = `transform: translate3d(-${t}px, 0, 1px)`, setTimeout(() => {
|
|
3266
|
+
this.refreshHiddenTabs(), this.disabledButtons = !1;
|
|
3267
|
+
}, 100);
|
|
3268
|
+
},
|
|
3269
|
+
/**
|
|
3270
|
+
* @return {void}
|
|
3271
|
+
*/
|
|
3272
|
+
prevSlide() {
|
|
3273
|
+
if (this.disabledButtons || this.disableLeftArrow)
|
|
3274
|
+
return;
|
|
3275
|
+
let t;
|
|
3276
|
+
this.disableRightArrow = !1, this.disabledButtons = !0, this.leftHiddenTabs.length ? (t = this.scrollOffset - this.leftHiddenTabs[0], t = Math.max(0, t)) : t = 0, this.$emit("closeDropdown"), this.scrollOffset = t, this.offsetStyle = `transform: translate3d(-${t}px, 0, 1px)`, setTimeout(() => {
|
|
3277
|
+
this.refreshHiddenTabs(), this.disabledButtons = !1;
|
|
3278
|
+
}, 100);
|
|
3279
|
+
},
|
|
3280
|
+
/**
|
|
3281
|
+
* @param {object|null} event
|
|
3282
|
+
* @return {void}
|
|
3283
|
+
*/
|
|
3284
|
+
refreshHiddenTabs(t = null) {
|
|
3285
|
+
if (this.$refs.draggableWrapper.scrollLeft = 0, this.setContainerEnd(), this.setLeftHiddenTabs(), this.setRightHiddenTabs(), t) {
|
|
3286
|
+
const { newIndex: n, oldIndex: e } = t;
|
|
3287
|
+
this.$emit("changeOrder", { newIndex: n, oldIndex: e });
|
|
3288
|
+
}
|
|
3289
|
+
},
|
|
3290
|
+
setContainerEnd() {
|
|
3291
|
+
this.containerPosition = this.$refs.draggableWrapper.getBoundingClientRect(), this.containerStart = this.containerPosition.left, this.containerEnd = this.containerPosition.left + this.containerPosition.width;
|
|
3292
|
+
},
|
|
3293
|
+
/**
|
|
3294
|
+
* @return {void}
|
|
3295
|
+
*/
|
|
3296
|
+
initCarousel() {
|
|
3297
|
+
var t, n, e;
|
|
3298
|
+
this.containerPosition = ((n = (t = this.$refs) == null ? void 0 : t.draggableWrapper) == null ? void 0 : n.getBoundingClientRect()) || { left: 0, width: 0 }, this.containerStart = this.containerPosition.left, this.containerEnd = this.containerPosition.left + this.containerPosition.width, (e = this.$refs) != null && e.draggableWrapper && this.refreshHiddenTabs(), this.selectedTabIndex > 0 && this.scrollToTab(this.selectedTabIndex);
|
|
3299
|
+
},
|
|
3300
|
+
/**
|
|
3301
|
+
* @return {void}
|
|
3302
|
+
*/
|
|
3303
|
+
checkTabsWidth() {
|
|
3304
|
+
if (be(this.$refs) || be(this.$refs.draggableCarousel))
|
|
3305
|
+
return;
|
|
3306
|
+
this.setCarouselOffset();
|
|
3307
|
+
const t = this.addButton ? 40 : 0;
|
|
3308
|
+
if (this.carouselEnabled = this.$refs.draggableCarousel.$el.getBoundingClientRect().width > this.$el.parentNode.getBoundingClientRect().width - (t + 100), this.carouselEnabled) {
|
|
3309
|
+
this.$nextTick(() => {
|
|
3310
|
+
this.initCarousel();
|
|
3311
|
+
});
|
|
3312
|
+
return;
|
|
3313
|
+
}
|
|
3314
|
+
this.scrollOffset = 0, this.offsetStyle = "transform: translate3d(0, 0, 1px)";
|
|
3315
|
+
},
|
|
3316
|
+
/**
|
|
3317
|
+
* @return {void}
|
|
3318
|
+
*/
|
|
3319
|
+
setCarouselOffset() {
|
|
3320
|
+
this.carouselOffset = this.$refs.carouselContainer.getBoundingClientRect().left, this.$emit("setCarouselOffset", this.carouselOffset);
|
|
3321
|
+
},
|
|
3322
|
+
/**
|
|
3323
|
+
* @return {void}
|
|
3324
|
+
*/
|
|
3325
|
+
onButtonHover() {
|
|
3326
|
+
this.$emit("onNavigationHover");
|
|
3327
|
+
},
|
|
3328
|
+
async scrollToTab(t) {
|
|
3329
|
+
if (!this.carouselEnabled || be(this.$refs.draggableCarousel))
|
|
3330
|
+
return;
|
|
3331
|
+
await this.$nextTick();
|
|
3332
|
+
const n = Array.from(this.$refs.draggableCarousel.$el.children)[t];
|
|
3333
|
+
if (!n)
|
|
3334
|
+
return;
|
|
3335
|
+
this.setContainerEnd();
|
|
3336
|
+
const e = n.getBoundingClientRect(), r = e.left, a = e.right, i = this.$refs.draggableCarousel.$el.getBoundingClientRect().left;
|
|
3337
|
+
if (r >= this.containerStart && a <= this.containerEnd)
|
|
3338
|
+
return;
|
|
3339
|
+
let o = 0;
|
|
3340
|
+
r > this.containerEnd || a > this.containerEnd ? o = Math.abs(
|
|
3341
|
+
this.containerStart - i + (a - this.containerEnd)
|
|
3342
|
+
) : r < this.containerStart && (o = Math.abs(
|
|
3343
|
+
this.containerStart - i - (this.containerStart - r)
|
|
3344
|
+
)), this.$emit("closeDropdown"), this.disabledButtons = !0, this.scrollOffset = o, this.offsetStyle = `transform: translate3d(-${o}px, 0, 1px)`, setTimeout(() => {
|
|
3345
|
+
this.refreshHiddenTabs(), this.disabledButtons = !1;
|
|
3346
|
+
}, 100);
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
};
|
|
3350
|
+
var lr = function() {
|
|
3351
|
+
var t = this, n = t._self._c;
|
|
3352
|
+
return n("in-tooltip-v2", { attrs: { id: "tabs-tooltip", text: t.tooltipText, "dynamic-position": !1, status: t.tooltipStatus, offset: { y: 8, x: 0 }, "absolute-position-status": !0, "absolute-position": t.tooltipPosition, "absolute-triangle-alignment": t.triangleAlignment, "absolute-triangle-position": t.trianglePosition } }, [n("div", { ref: "carouselContainer", staticClass: "in-tabs-wrapper__draggable d-f p-0 m-0 qa-tabs p-r", class: [
|
|
3353
|
+
t.$style["in-tabs-wrapper__draggable"],
|
|
3354
|
+
{ [t.$style["in-tabs-wrapper__draggable--box-style"]]: t.boxStyle },
|
|
3355
|
+
{ "in-tabs-wrapper__draggable_disabled": !t.carouselEnabled }
|
|
3356
|
+
], attrs: { slot: "triggerElement" }, slot: "triggerElement" }, [t.carouselEnabled ? n("in-button-v2", { class: [
|
|
3357
|
+
"left-arrow",
|
|
3358
|
+
t.$style["left-arrow"],
|
|
3359
|
+
{ [t.$style["left-arrow--box-style"]]: t.boxStyle },
|
|
3360
|
+
"px-2",
|
|
3361
|
+
"z-1"
|
|
3362
|
+
], attrs: { id: "left-arrow-btn", styling: "text", type: "secondary", "left-icon": "line-chevron-left", "disabled-status": t.disableLeftArrow, "label-text-status": !1 }, on: { click: t.prevSlide }, nativeOn: { mouseenter: function(e) {
|
|
3363
|
+
return t.onButtonHover.apply(null, arguments);
|
|
3364
|
+
} } }) : t._e(), n("div", { ref: "draggableWrapper", class: [
|
|
3365
|
+
"in-tabs-wrapper__draggable-wrapper",
|
|
3366
|
+
t.$style["in-tabs-wrapper__draggable-wrapper"],
|
|
3367
|
+
"o-h",
|
|
3368
|
+
"max-w-1",
|
|
3369
|
+
"d-f"
|
|
3370
|
+
] }, [n("draggable", { ref: "draggableCarousel", staticClass: "draggable-zone d-f", style: t.offsetStyle, attrs: { list: t.list, handle: ".handle" }, on: { start: function(e) {
|
|
3371
|
+
return t.$emit("start");
|
|
3372
|
+
}, end: (e) => t.refreshHiddenTabs(e) } }, [t._t("default")], 2)], 1), t.carouselEnabled ? n("in-button-v2", { class: [
|
|
3373
|
+
"right-arrow",
|
|
3374
|
+
t.$style["right-arrow"],
|
|
3375
|
+
{ [t.$style["right-arrow--box-style"]]: t.boxStyle },
|
|
3376
|
+
"px-2",
|
|
3377
|
+
"z-1"
|
|
3378
|
+
], attrs: { id: "right-arrow-btn", styling: "text", type: "secondary", "left-icon": "line-chevron-right", "disabled-status": t.disableRightArrow, "label-text-status": !1 }, on: { click: t.nextSlide }, nativeOn: { mouseenter: function(e) {
|
|
3379
|
+
return t.onButtonHover.apply(null, arguments);
|
|
3380
|
+
} } }) : t._e(), t._t("addTab")], 2)]);
|
|
3381
|
+
}, cr = [];
|
|
3382
|
+
const Ye = {
|
|
3383
|
+
$style: or
|
|
3384
|
+
};
|
|
3385
|
+
function ur(t) {
|
|
3386
|
+
for (var n in Ye)
|
|
3387
|
+
this[n] = Ye[n];
|
|
3388
|
+
}
|
|
3389
|
+
var dr = /* @__PURE__ */ Ke(
|
|
3390
|
+
sr,
|
|
3391
|
+
lr,
|
|
3392
|
+
cr,
|
|
3393
|
+
!1,
|
|
3394
|
+
ur
|
|
3395
|
+
);
|
|
3396
|
+
const pr = dr.exports, fr = "_in-tabs-wrapper_v01428_Qd9Ha", hr = "_in-tabs-wrapper__text_input_v01428_mhMev", br = "_in-tabs-wrapper_box-style_v01428_-QHgq", gr = "_in-tabs-wrapper__tab_v01428_5kVhE", vr = "_in-tabs-wrapper__icon_v01428_M0wG-", mr = "_in-tabs-wrapper__tab_disable_v01428_-h445", _r = "_in-tabs-wrapper__tab_selected_v01428_irU2-", wr = "_in-tabs-wrapper__dropdown_v01428_RPANV", yr = "_in-tabs-wrapper__dropdown_box_v01428_xYmvs", xr = "_in-tabs-wrapper__draggable_v01428_jCZQQ", Tr = "_in-tabs-wrapper__draggable-wrapper_v01428_c7fAy", Cr = "_in-tabs-wrapper__percentage_input_v01428_KWK5-", Dr = "_in-tabs-wrapper__percentage_v01428_RiWD2", Sr = "_in-tabs-wrapper__add_icon_v01428_uwTCN", Er = "_in-tabs-wrapper__text_input_wrapper_v01428_780iB", Or = "_flex-shrink-0_v01428_qWVZm", kr = "_option_v01428_Dsai2", Ir = "_option_active_v01428_aMvVs", Ar = "_option_active_v01428_aMvVs", $r = "_draggable-carousel__wrapper_v01428_Hzm32", Mr = {
|
|
3397
|
+
"in-tabs-wrapper": "_in-tabs-wrapper_v01428_Qd9Ha",
|
|
3398
|
+
inTabsWrapper: fr,
|
|
3399
|
+
"in-tabs-wrapper__text_input": "_in-tabs-wrapper__text_input_v01428_mhMev",
|
|
3400
|
+
inTabsWrapperTextInput: hr,
|
|
3401
|
+
"in-tabs-wrapper_box-style": "_in-tabs-wrapper_box-style_v01428_-QHgq",
|
|
3402
|
+
inTabsWrapperBoxStyle: br,
|
|
3403
|
+
"in-tabs-wrapper__tab": "_in-tabs-wrapper__tab_v01428_5kVhE",
|
|
3404
|
+
inTabsWrapperTab: gr,
|
|
3405
|
+
"in-tabs-wrapper__icon": "_in-tabs-wrapper__icon_v01428_M0wG-",
|
|
3406
|
+
inTabsWrapperIcon: vr,
|
|
3407
|
+
"in-tabs-wrapper__tab_disable": "_in-tabs-wrapper__tab_disable_v01428_-h445",
|
|
3408
|
+
inTabsWrapperTabDisable: mr,
|
|
3409
|
+
"in-tabs-wrapper__tab_selected": "_in-tabs-wrapper__tab_selected_v01428_irU2-",
|
|
3410
|
+
inTabsWrapperTabSelected: _r,
|
|
3411
|
+
"in-tabs-wrapper__dropdown": "_in-tabs-wrapper__dropdown_v01428_RPANV",
|
|
3412
|
+
inTabsWrapperDropdown: wr,
|
|
3413
|
+
"in-tabs-wrapper__dropdown_box": "_in-tabs-wrapper__dropdown_box_v01428_xYmvs",
|
|
3414
|
+
inTabsWrapperDropdownBox: yr,
|
|
3415
|
+
"in-tabs-wrapper__draggable": "_in-tabs-wrapper__draggable_v01428_jCZQQ",
|
|
3416
|
+
inTabsWrapperDraggable: xr,
|
|
3417
|
+
"in-tabs-wrapper__draggable-wrapper": "_in-tabs-wrapper__draggable-wrapper_v01428_c7fAy",
|
|
3418
|
+
inTabsWrapperDraggableWrapper: Tr,
|
|
3419
|
+
"in-tabs-wrapper__percentage_input": "_in-tabs-wrapper__percentage_input_v01428_KWK5-",
|
|
3420
|
+
inTabsWrapperPercentageInput: Cr,
|
|
3421
|
+
"in-tabs-wrapper__percentage": "_in-tabs-wrapper__percentage_v01428_RiWD2",
|
|
3422
|
+
inTabsWrapperPercentage: Dr,
|
|
3423
|
+
"in-tabs-wrapper__add_icon": "_in-tabs-wrapper__add_icon_v01428_uwTCN",
|
|
3424
|
+
inTabsWrapperAddIcon: Sr,
|
|
3425
|
+
"in-tabs-wrapper__text_input_wrapper": "_in-tabs-wrapper__text_input_wrapper_v01428_780iB",
|
|
3426
|
+
inTabsWrapperTextInputWrapper: Er,
|
|
3427
|
+
"flex-shrink-0": "_flex-shrink-0_v01428_qWVZm",
|
|
3428
|
+
flexShrink0: Or,
|
|
3429
|
+
option: kr,
|
|
3430
|
+
option_active: Ir,
|
|
3431
|
+
optionActive: Ar,
|
|
3432
|
+
"draggable-carousel__wrapper": "_draggable-carousel__wrapper_v01428_Hzm32",
|
|
3433
|
+
draggableCarouselWrapper: $r
|
|
3434
|
+
}, Nr = 0, Pr = [38, 40], Br = "router-view", Rr = "in-tabs-wrapper__tab", Lr = ".in-tabs-wrapper__tab", jr = ".in-tooltip-wrapper-v2__box", Hr = 8, Fr = 40, Wr = {
|
|
3435
|
+
directives: { clickOutside: cn },
|
|
3436
|
+
components: {
|
|
3437
|
+
DraggableCarousel: pr,
|
|
3438
|
+
InTooltip: fn,
|
|
3439
|
+
InBox: un,
|
|
3440
|
+
InCustomDropDown: dn,
|
|
3441
|
+
InIcons: pn
|
|
3442
|
+
},
|
|
3443
|
+
props: {
|
|
3444
|
+
/**
|
|
3445
|
+
* @property {array} tabsList
|
|
3446
|
+
*/
|
|
3447
|
+
tabsList: {
|
|
3448
|
+
type: Array,
|
|
3449
|
+
required: !0
|
|
3450
|
+
},
|
|
3451
|
+
/**
|
|
3452
|
+
* @property {string|number} activeTab
|
|
3453
|
+
*/
|
|
3454
|
+
activeTab: {
|
|
3455
|
+
type: [String, Number],
|
|
3456
|
+
default: ""
|
|
3457
|
+
},
|
|
3458
|
+
/**
|
|
3459
|
+
* @property {string} addTabsText
|
|
3460
|
+
*/
|
|
3461
|
+
addTabsText: {
|
|
3462
|
+
type: String,
|
|
3463
|
+
default: ""
|
|
3464
|
+
},
|
|
3465
|
+
/**
|
|
3466
|
+
* @property {boolean} useRouter
|
|
3467
|
+
*/
|
|
3468
|
+
useRouter: {
|
|
3469
|
+
type: Boolean,
|
|
3470
|
+
default: !0
|
|
3471
|
+
},
|
|
3472
|
+
/**
|
|
3473
|
+
* @property {string} withSpacing
|
|
3474
|
+
*/
|
|
3475
|
+
withSpacing: {
|
|
3476
|
+
type: String,
|
|
3477
|
+
default: ""
|
|
3478
|
+
},
|
|
3479
|
+
/**
|
|
3480
|
+
* @property {boolean} dropdownTabs
|
|
3481
|
+
*/
|
|
3482
|
+
dropdownTabs: {
|
|
3483
|
+
type: Boolean,
|
|
3484
|
+
default: !1
|
|
3485
|
+
},
|
|
3486
|
+
/**
|
|
3487
|
+
* @property {boolean} dropdownVariationTabs
|
|
3488
|
+
*/
|
|
3489
|
+
dropdownVariationTabs: {
|
|
3490
|
+
type: Boolean,
|
|
3491
|
+
default: !1
|
|
3492
|
+
},
|
|
3493
|
+
/**
|
|
3494
|
+
* @property {boolean} addNewTabActive
|
|
3495
|
+
*/
|
|
3496
|
+
addNewTabActive: {
|
|
3497
|
+
type: Boolean,
|
|
3498
|
+
default: !1
|
|
3499
|
+
},
|
|
3500
|
+
/**
|
|
3501
|
+
* @property {string} addButtonText
|
|
3502
|
+
*/
|
|
3503
|
+
addButtonText: {
|
|
3504
|
+
type: String,
|
|
3505
|
+
default: ""
|
|
3506
|
+
},
|
|
3507
|
+
/**
|
|
3508
|
+
* @property {boolean} addTabDropdownSearchStatus
|
|
3509
|
+
*/
|
|
3510
|
+
addTabDropdownSearchStatus: {
|
|
3511
|
+
type: Boolean,
|
|
3512
|
+
default: !0
|
|
3513
|
+
},
|
|
3514
|
+
/**
|
|
3515
|
+
* @property {array} addTabDropdownOptions
|
|
3516
|
+
*/
|
|
3517
|
+
addTabDropdownOptions: {
|
|
3518
|
+
type: Array,
|
|
3519
|
+
default: () => []
|
|
3520
|
+
},
|
|
3521
|
+
/**
|
|
3522
|
+
* @property {string} addNewTabFunctionality
|
|
3523
|
+
*/
|
|
3524
|
+
addNewTabFunctionality: {
|
|
3525
|
+
type: String,
|
|
3526
|
+
default: "options"
|
|
3527
|
+
},
|
|
3528
|
+
/**
|
|
3529
|
+
* @property {boolean} useEmitForRemove
|
|
3530
|
+
*/
|
|
3531
|
+
useEmitForRemove: {
|
|
3532
|
+
type: Boolean,
|
|
3533
|
+
default: !1
|
|
3534
|
+
},
|
|
3535
|
+
/**
|
|
3536
|
+
* @property {boolean} dynamicDropdownTabs
|
|
3537
|
+
*/
|
|
3538
|
+
dynamicDropdownTabs: {
|
|
3539
|
+
type: Boolean,
|
|
3540
|
+
default: !1
|
|
3541
|
+
},
|
|
3542
|
+
/**
|
|
3543
|
+
* @property {boolean} addNewTabTooltipStatus
|
|
3544
|
+
*/
|
|
3545
|
+
addNewTabTooltipStatus: {
|
|
3546
|
+
type: Boolean,
|
|
3547
|
+
default: !1
|
|
3548
|
+
},
|
|
3549
|
+
/**
|
|
3550
|
+
* @property {string} addNewTabTooltipText
|
|
3551
|
+
*/
|
|
3552
|
+
addNewTabTooltipText: {
|
|
3553
|
+
type: String,
|
|
3554
|
+
default: ""
|
|
3555
|
+
},
|
|
3556
|
+
/**
|
|
3557
|
+
* @property {boolean} draggable
|
|
3558
|
+
*/
|
|
3559
|
+
draggable: {
|
|
3560
|
+
type: Boolean,
|
|
3561
|
+
default: !1
|
|
3562
|
+
},
|
|
3563
|
+
/**
|
|
3564
|
+
* @property {boolean} preventTabSelectionOnClick
|
|
3565
|
+
*/
|
|
3566
|
+
preventTabSelectionOnClick: {
|
|
3567
|
+
type: Boolean,
|
|
3568
|
+
default: !1
|
|
3569
|
+
},
|
|
3570
|
+
/**
|
|
3571
|
+
* @property {boolean} boxStyle
|
|
3572
|
+
*/
|
|
3573
|
+
boxStyle: {
|
|
3574
|
+
type: Boolean,
|
|
3575
|
+
default: !1
|
|
3576
|
+
},
|
|
3577
|
+
/**
|
|
3578
|
+
* @property {boolean} renameOption
|
|
3579
|
+
*/
|
|
3580
|
+
renameOption: {
|
|
3581
|
+
type: Boolean,
|
|
3582
|
+
default: !1
|
|
3583
|
+
},
|
|
3584
|
+
/**
|
|
3585
|
+
* @property {boolean} removeOption
|
|
3586
|
+
*/
|
|
3587
|
+
removeOption: {
|
|
3588
|
+
type: Boolean,
|
|
3589
|
+
default: !0
|
|
3590
|
+
},
|
|
3591
|
+
/**
|
|
3592
|
+
* @property {boolean} duplicateOption
|
|
3593
|
+
*/
|
|
3594
|
+
duplicateOption: {
|
|
3595
|
+
type: Boolean,
|
|
3596
|
+
default: !1
|
|
3597
|
+
},
|
|
3598
|
+
/**
|
|
3599
|
+
* @property {boolean} isDuplicateVisible
|
|
3600
|
+
*/
|
|
3601
|
+
isDuplicateVisible: {
|
|
3602
|
+
type: Boolean,
|
|
3603
|
+
default: !1
|
|
3604
|
+
},
|
|
3605
|
+
/**
|
|
3606
|
+
* @property {boolean} isMixedMode
|
|
3607
|
+
*/
|
|
3608
|
+
isMixedMode: {
|
|
3609
|
+
type: Boolean,
|
|
3610
|
+
default: !1
|
|
3611
|
+
},
|
|
3612
|
+
/**
|
|
3613
|
+
* @property {boolean} isRenameDropdown
|
|
3614
|
+
*/
|
|
3615
|
+
isRenameDropdown: {
|
|
3616
|
+
type: Boolean,
|
|
3617
|
+
default: !1
|
|
3618
|
+
},
|
|
3619
|
+
/**
|
|
3620
|
+
* @property {boolean} removeButtonText
|
|
3621
|
+
*/
|
|
3622
|
+
removeButtonText: {
|
|
3623
|
+
type: String,
|
|
3624
|
+
default: "Remove"
|
|
3625
|
+
},
|
|
3626
|
+
/**
|
|
3627
|
+
* @property {boolean} disableDragIconClick
|
|
3628
|
+
*/
|
|
3629
|
+
disableDragIconClick: {
|
|
3630
|
+
type: Boolean,
|
|
3631
|
+
default: !0
|
|
3632
|
+
},
|
|
3633
|
+
/**
|
|
3634
|
+
* @property {number} maxTabDisplayTextLength
|
|
3635
|
+
*/
|
|
3636
|
+
maxTabDisplayTextLength: {
|
|
3637
|
+
type: Number,
|
|
3638
|
+
default: 0,
|
|
3639
|
+
validator(t) {
|
|
3640
|
+
return t >= 0;
|
|
3641
|
+
}
|
|
3642
|
+
},
|
|
3643
|
+
/**
|
|
3644
|
+
* @property {number} dropdownOffset
|
|
3645
|
+
*/
|
|
3646
|
+
dropdownOffset: {
|
|
3647
|
+
type: Number,
|
|
3648
|
+
default: 0
|
|
3649
|
+
},
|
|
3650
|
+
/**
|
|
3651
|
+
* @property {boolean} localizationOption
|
|
3652
|
+
*/
|
|
3653
|
+
localizationOption: {
|
|
3654
|
+
type: Boolean,
|
|
3655
|
+
default: !1
|
|
3656
|
+
}
|
|
3657
|
+
},
|
|
3658
|
+
data() {
|
|
3659
|
+
return {
|
|
3660
|
+
selectedTab: "",
|
|
3661
|
+
tabsListClone: [],
|
|
3662
|
+
selectedDropdown: !1,
|
|
3663
|
+
dropdownActiveTab: "",
|
|
3664
|
+
renaming: !1,
|
|
3665
|
+
carouselOffset: 0,
|
|
3666
|
+
activeDropdown: {
|
|
3667
|
+
value: "",
|
|
3668
|
+
left: 0,
|
|
3669
|
+
index: 0
|
|
3670
|
+
},
|
|
3671
|
+
activeTabIndex: 0,
|
|
3672
|
+
activeItem: 0,
|
|
3673
|
+
optionsPosition: "left",
|
|
3674
|
+
tooltipStatus: !1,
|
|
3675
|
+
tooltipText: "test tooltip",
|
|
3676
|
+
tooltipPosition: { left: "auto", right: "auto", top: "auto", bottom: "auto" },
|
|
3677
|
+
carouselEnabled: !1,
|
|
3678
|
+
triangleAlignment: "center",
|
|
3679
|
+
trianglePosition: "top",
|
|
3680
|
+
customDropDownOpen: !1
|
|
3681
|
+
};
|
|
3682
|
+
},
|
|
3683
|
+
computed: {
|
|
3684
|
+
/**
|
|
3685
|
+
* @return {boolean}
|
|
3686
|
+
*/
|
|
3687
|
+
isDropdownType() {
|
|
3688
|
+
return this.dropdownTabs || this.isRenameDropdown ? !this.useRouter && !this.dynamicDropdownTabs : !1;
|
|
3689
|
+
},
|
|
3690
|
+
/**
|
|
3691
|
+
* @return {boolean}
|
|
3692
|
+
*/
|
|
3693
|
+
isVariationType() {
|
|
3694
|
+
return this.dropdownVariationTabs && !this.useRouter;
|
|
3695
|
+
},
|
|
3696
|
+
/**
|
|
3697
|
+
* @return {number}
|
|
3698
|
+
*/
|
|
3699
|
+
selectedTabIndex() {
|
|
3700
|
+
return this.tabsListClone.findIndex(
|
|
3701
|
+
(t) => t.path === this.selectedTab || t.value === this.selectedTab
|
|
3702
|
+
);
|
|
3703
|
+
},
|
|
3704
|
+
/**
|
|
3705
|
+
* @return {array<object>}
|
|
3706
|
+
*/
|
|
3707
|
+
dropdownStatuses() {
|
|
3708
|
+
let t = {};
|
|
3709
|
+
if (this.isVariationType || this.isDropdownType) {
|
|
3710
|
+
for (let n = 0; n < this.tabsListClone.length; n++)
|
|
3711
|
+
t[n] = !1;
|
|
3712
|
+
this.selectedDropdown && (t[this.selectedTabIndex] = !0);
|
|
3713
|
+
}
|
|
3714
|
+
return t;
|
|
3715
|
+
},
|
|
3716
|
+
/**
|
|
3717
|
+
* @return {boolean}
|
|
3718
|
+
*/
|
|
3719
|
+
isOnlyTab() {
|
|
3720
|
+
return this.tabsListClone.length < 2;
|
|
3721
|
+
},
|
|
3722
|
+
/**
|
|
3723
|
+
* @return {boolean}
|
|
3724
|
+
*/
|
|
3725
|
+
isAddNewTabFunctionalityEvent() {
|
|
3726
|
+
return this.addNewTabFunctionality === "event";
|
|
3727
|
+
},
|
|
3728
|
+
/**
|
|
3729
|
+
* @return {array}
|
|
3730
|
+
*/
|
|
3731
|
+
dropdownTypeOptions() {
|
|
3732
|
+
const t = {
|
|
3733
|
+
text: "Rename",
|
|
3734
|
+
callback: this.focusTabTextInput
|
|
3735
|
+
}, n = {
|
|
3736
|
+
text: "Duplicate",
|
|
3737
|
+
callback: this.duplicateTab
|
|
3738
|
+
}, e = {
|
|
3739
|
+
text: "Disable Localization",
|
|
3740
|
+
callback: this.localizationTab
|
|
3741
|
+
}, r = [];
|
|
3742
|
+
if (this.renameOption && r.push(t), this.duplicateOption && r.push(n), this.localizationOption && r.push(e), !this.isRenameDropdown) {
|
|
3743
|
+
const a = {
|
|
3744
|
+
text: this.removeButtonText,
|
|
3745
|
+
callback: () => this.removeTab(this.activeDropdown.value)
|
|
3746
|
+
};
|
|
3747
|
+
this.isOnlyTab || r.push(a);
|
|
3748
|
+
}
|
|
3749
|
+
return r;
|
|
3750
|
+
},
|
|
3751
|
+
/**
|
|
3752
|
+
* @return {array}
|
|
3753
|
+
*/
|
|
3754
|
+
dropdownMixedModeOptions() {
|
|
3755
|
+
const t = [
|
|
3756
|
+
{
|
|
3757
|
+
text: "Rename",
|
|
3758
|
+
callback: () => {
|
|
3759
|
+
this.$emit("rename"), this.closeDropdown();
|
|
3760
|
+
}
|
|
3761
|
+
},
|
|
3762
|
+
{
|
|
3763
|
+
text: "Duplicate",
|
|
3764
|
+
callback: () => {
|
|
3765
|
+
this.duplicateTab(), this.closeDropdown();
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
], n = {
|
|
3769
|
+
text: this.removeButtonText,
|
|
3770
|
+
callback: () => this.removeTab(this.activeDropdown.value)
|
|
3771
|
+
};
|
|
3772
|
+
return !this.isOnlyTab && this.activeDropdown.index !== 0 && t.push(n), t;
|
|
3773
|
+
},
|
|
3774
|
+
/**
|
|
3775
|
+
* @return {array}
|
|
3776
|
+
*/
|
|
3777
|
+
variationTypesOptions() {
|
|
3778
|
+
const t = [], n = { text: "Rename", callback: this.focusTabTextInput }, e = {
|
|
3779
|
+
text: this.removeButtonText,
|
|
3780
|
+
callback: () => this.removeTab(this.activeDropdown.value)
|
|
3781
|
+
}, r = { text: "Duplicate", callback: this.duplicateTab }, a = { text: "Disable Localization", callback: this.localizationTab }, i = { text: "Change Percentage", callback: this.focusPercentage };
|
|
3782
|
+
return this.renameOption && t.push(n), this.removeOption && t.push(e), this.duplicateOption && t.push(r), this.localizationOption && t.push(a), this.isOnlyTab || t.push(i), t;
|
|
3783
|
+
}
|
|
3784
|
+
},
|
|
3785
|
+
watch: {
|
|
3786
|
+
tabsList() {
|
|
3787
|
+
this.tabsListClone = this.tabsList, this.refreshCarouselTabs();
|
|
3788
|
+
},
|
|
3789
|
+
activeTab() {
|
|
3790
|
+
this.selectedTab = this.activeTab, this.dropdownActiveTab = this.activeTab;
|
|
3791
|
+
}
|
|
3792
|
+
},
|
|
3793
|
+
created() {
|
|
3794
|
+
this.selectedTab = this.activeTab, this.dropdownActiveTab = this.activeTab, this.tabsListClone = this.tabsList;
|
|
3795
|
+
},
|
|
3796
|
+
mounted() {
|
|
3797
|
+
this.$el.addEventListener("keydown", (t) => {
|
|
3798
|
+
Pr.includes(t.keyCode) && t.preventDefault();
|
|
3799
|
+
}, !1);
|
|
3800
|
+
},
|
|
3801
|
+
methods: {
|
|
3802
|
+
/**
|
|
3803
|
+
* @param {object} tab
|
|
3804
|
+
* @param {boolean} isFocusedInput
|
|
3805
|
+
* @return {string}
|
|
3806
|
+
*/
|
|
3807
|
+
getVisibleTabText(t = {}, n = !1) {
|
|
3808
|
+
const { text: e = "" } = t;
|
|
3809
|
+
return n ? e : this.maxTabDisplayTextLength && e.length > this.maxTabDisplayTextLength ? e.slice(0, this.maxTabDisplayTextLength) + "..." : e;
|
|
3810
|
+
},
|
|
3811
|
+
/**
|
|
3812
|
+
* @param {string} value
|
|
3813
|
+
*/
|
|
3814
|
+
selectTab(t, n) {
|
|
3815
|
+
var e;
|
|
3816
|
+
n != null && n.disable || (e = n == null ? void 0 : n.meta) != null && e.disable || (this.$emit("click", t), !this.preventTabSelectionOnClick && (this.dropdownActiveTab = t, this.selectedTab = t));
|
|
3817
|
+
},
|
|
3818
|
+
/**
|
|
3819
|
+
* @param tab {string}
|
|
3820
|
+
* @param index {number}
|
|
3821
|
+
* @return {boolean}
|
|
3822
|
+
*/
|
|
3823
|
+
selectActiveTab(t, n) {
|
|
3824
|
+
return this.selectedTab !== "" ? t === this.selectedTab : n === Nr;
|
|
3825
|
+
},
|
|
3826
|
+
/**
|
|
3827
|
+
* @param {object} tab
|
|
3828
|
+
* @param {number} index
|
|
3829
|
+
* @return {void}
|
|
3830
|
+
*/
|
|
3831
|
+
showBox(t, n) {
|
|
3832
|
+
this.blurTooltip();
|
|
3833
|
+
const e = document.getElementsByClassName(Br), r = this.dropdownOffset !== 0 ? this.dropdownOffset : e.length ? e[0].parentElement.offsetLeft : 0;
|
|
3834
|
+
this.activeTabIndex = n, this.activeDropdown = t, this.activeDropdown.left = this.$refs[`tab_${n}`][0].getBoundingClientRect().right - this.carouselOffset - 30 - r, this.activeDropdown.index = n, this.selectedDropdown = !this.selectedDropdown, this.dynamicDropdownTabs && (this.dropdownActiveTab = t.value, this.selectedTab = this.activeTab), setTimeout(() => {
|
|
3835
|
+
this.$el.querySelector(`#dropdown_${this.activeTabIndex}`).focus();
|
|
3836
|
+
}, 50);
|
|
3837
|
+
},
|
|
3838
|
+
closeDropdown() {
|
|
3839
|
+
this.selectedDropdown = !1;
|
|
3840
|
+
},
|
|
3841
|
+
/**
|
|
3842
|
+
* @param {object} value
|
|
3843
|
+
* @return {void}
|
|
3844
|
+
*/
|
|
3845
|
+
removeTab(t) {
|
|
3846
|
+
if (this.closeDropdown(), this.useEmitForRemove) {
|
|
3847
|
+
this.$emit("removeTab", t);
|
|
3848
|
+
return;
|
|
3849
|
+
}
|
|
3850
|
+
this.tabsListClone.splice(this.selectedTabIndex, 1), this.selectedTab === t && this.selectTab(this.tabsListClone[0].value, this.tabsListClone[0]);
|
|
3851
|
+
},
|
|
3852
|
+
focusPercentage() {
|
|
3853
|
+
this.$el.querySelector(`#dropdown_percentage${this.selectedTabIndex}`).focus(), this.closeDropdown();
|
|
3854
|
+
},
|
|
3855
|
+
unFocusPercentage() {
|
|
3856
|
+
this.$el.querySelector(`#dropdown_percentage${this.selectedTabIndex}`).blur();
|
|
3857
|
+
},
|
|
3858
|
+
/**
|
|
3859
|
+
* @param {object} value
|
|
3860
|
+
* @return {void}
|
|
3861
|
+
*/
|
|
3862
|
+
addNewTab(t) {
|
|
3863
|
+
if (this.dynamicDropdownTabs && this.closeDropdown(), this.isAddNewTabFunctionalityEvent) {
|
|
3864
|
+
this.$emit("addNewTab");
|
|
3865
|
+
return;
|
|
3866
|
+
}
|
|
3867
|
+
this.refreshCarouselTabs(), this.tabsListClone.push(t), this.selectedTab = t.value;
|
|
3868
|
+
},
|
|
3869
|
+
/**
|
|
3870
|
+
* @param {string} tab
|
|
3871
|
+
* @param {string|number} value
|
|
3872
|
+
*/
|
|
3873
|
+
tabPercentageInput(t, { target: { value: n } }) {
|
|
3874
|
+
this.tabsListClone[this.selectedTabIndex].percentage = n, this.$emit("tabPercentageInput", { tab: t, value: n });
|
|
3875
|
+
},
|
|
3876
|
+
refreshCarouselTabs() {
|
|
3877
|
+
this.$refs.draggableCarousel && typeof this.$refs.draggableCarousel.refreshHiddenTabs == "function" && this.$nextTick(() => {
|
|
3878
|
+
var t, n;
|
|
3879
|
+
(n = (t = this.$refs) == null ? void 0 : t.draggableCarousel) == null || n.refreshHiddenTabs();
|
|
3880
|
+
});
|
|
3881
|
+
},
|
|
3882
|
+
/**
|
|
3883
|
+
* @return {boolean}
|
|
3884
|
+
*/
|
|
3885
|
+
isActiveTab(t) {
|
|
3886
|
+
return !(this.tabsListClone.length === 2 && t === 0);
|
|
3887
|
+
},
|
|
3888
|
+
/**
|
|
3889
|
+
* @param {number} index
|
|
3890
|
+
* @param {value} value
|
|
3891
|
+
*/
|
|
3892
|
+
sendEvent(t, n) {
|
|
3893
|
+
if (this.closeDropdown(), this.dropdownActiveTab = "", t === 0) {
|
|
3894
|
+
this.$emit("duplicate", n);
|
|
3895
|
+
return;
|
|
3896
|
+
}
|
|
3897
|
+
this.$emit("delete", n);
|
|
3898
|
+
},
|
|
3899
|
+
/**
|
|
3900
|
+
* @return {void}
|
|
3901
|
+
*/
|
|
3902
|
+
duplicateTab() {
|
|
3903
|
+
this.$emit("duplicate", this.activeDropdown.value);
|
|
3904
|
+
},
|
|
3905
|
+
/**
|
|
3906
|
+
* @return {void}
|
|
3907
|
+
*/
|
|
3908
|
+
localizationTab() {
|
|
3909
|
+
this.$emit("localization", this.activeDropdown.value);
|
|
3910
|
+
},
|
|
3911
|
+
/**
|
|
3912
|
+
* @return {void}
|
|
3913
|
+
*/
|
|
3914
|
+
focusTabTextInput() {
|
|
3915
|
+
this.renaming = !0, this.closeDropdown(), this.$nextTick(() => {
|
|
3916
|
+
this.$el.querySelector(`#dropdown_text${this.selectedTabIndex}`).focus();
|
|
3917
|
+
});
|
|
3918
|
+
},
|
|
3919
|
+
/**
|
|
3920
|
+
* @param {Event} event
|
|
3921
|
+
* @return {void}
|
|
3922
|
+
*/
|
|
3923
|
+
onEnterOrEscape(t) {
|
|
3924
|
+
t.target.blur();
|
|
3925
|
+
},
|
|
3926
|
+
/**
|
|
3927
|
+
* @return {void}
|
|
3928
|
+
*/
|
|
3929
|
+
onBlur() {
|
|
3930
|
+
this.renaming = !1, this.$nextTick(() => {
|
|
3931
|
+
this.$refs.draggableCarousel && this.$refs.draggableCarousel.refreshHiddenTabs && this.$refs.draggableCarousel.refreshHiddenTabs();
|
|
3932
|
+
});
|
|
3933
|
+
},
|
|
3934
|
+
/**
|
|
3935
|
+
* @param {string} tab
|
|
3936
|
+
* @param {string} value
|
|
3937
|
+
* @return {void}
|
|
3938
|
+
*/
|
|
3939
|
+
tabTextInputUpdate(t, { target: { value: n } }) {
|
|
3940
|
+
this.tabsListClone[this.selectedTabIndex].text = n, this.$emit("tabTextInputUpdate", { tab: t, value: n });
|
|
3941
|
+
},
|
|
3942
|
+
/**
|
|
3943
|
+
* @return {void}
|
|
3944
|
+
*/
|
|
3945
|
+
setCarouselOffset(t) {
|
|
3946
|
+
this.carouselOffset = t;
|
|
3947
|
+
},
|
|
3948
|
+
/**
|
|
3949
|
+
* @param {array} arr
|
|
3950
|
+
* @return {void}
|
|
3951
|
+
*/
|
|
3952
|
+
increaseActiveItem(t) {
|
|
3953
|
+
if (!t.length)
|
|
3954
|
+
return;
|
|
3955
|
+
this.activeItem = this.activeItem < t.length - 1 ? ++this.activeItem : 0;
|
|
3956
|
+
const n = this.$el.querySelector(".in-tabs-wrapper__dropdown_box"), e = `.option__${this.activeItem}`;
|
|
3957
|
+
this.scrollDown(this.activeItem, n, e);
|
|
3958
|
+
},
|
|
3959
|
+
/**
|
|
3960
|
+
* @param {array} arr
|
|
3961
|
+
* @return {void}
|
|
3962
|
+
*/
|
|
3963
|
+
decreaseActiveItem(t) {
|
|
3964
|
+
if (!t.length)
|
|
3965
|
+
return;
|
|
3966
|
+
this.activeItem = this.activeItem === 0 ? t.length - 1 : --this.activeItem;
|
|
3967
|
+
const n = this.$el.querySelector(".in-tabs-wrapper__dropdown_box"), e = `.option__${this.activeItem}`;
|
|
3968
|
+
this.scrollUp(this.activeItem, n, e, t);
|
|
3969
|
+
},
|
|
3970
|
+
/**
|
|
3971
|
+
* @param {number} active
|
|
3972
|
+
* @param {HTMLElement} list
|
|
3973
|
+
* @param {string} selector
|
|
3974
|
+
* @return {void}
|
|
3975
|
+
*/
|
|
3976
|
+
scrollDown(t, n, e) {
|
|
3977
|
+
const r = this.$el.querySelector(e).getBoundingClientRect().bottom, a = n.getBoundingClientRect().bottom, i = r - a;
|
|
3978
|
+
if (t > 0)
|
|
3979
|
+
if (i > 0) {
|
|
3980
|
+
n.scrollBy(0, i);
|
|
3981
|
+
return;
|
|
3982
|
+
} else
|
|
3983
|
+
return;
|
|
3984
|
+
n.scrollTop = 0;
|
|
3985
|
+
},
|
|
3986
|
+
/**
|
|
3987
|
+
* @param {number} active
|
|
3988
|
+
* @param {HTMLElement} list
|
|
3989
|
+
* @param {string} selector
|
|
3990
|
+
* @param {array} arr
|
|
3991
|
+
* @return {void}
|
|
3992
|
+
*/
|
|
3993
|
+
scrollUp(t, n, e, r) {
|
|
3994
|
+
const a = this.$el.querySelector(e).getBoundingClientRect().top, i = n.getBoundingClientRect().top, o = n.scrollHeight, s = i - a;
|
|
3995
|
+
if (t < r.length - 1)
|
|
3996
|
+
if (s > 0) {
|
|
3997
|
+
n.scrollBy(0, -s);
|
|
3998
|
+
return;
|
|
3999
|
+
} else
|
|
4000
|
+
return;
|
|
4001
|
+
n.scrollBy(0, o);
|
|
4002
|
+
},
|
|
4003
|
+
/**
|
|
4004
|
+
* @param {number} index
|
|
4005
|
+
* @return {void}
|
|
4006
|
+
*/
|
|
4007
|
+
setActiveItem(t) {
|
|
4008
|
+
this.activeItem = t;
|
|
4009
|
+
},
|
|
4010
|
+
/**
|
|
4011
|
+
* @param {boolean} status
|
|
4012
|
+
* @return {void}
|
|
4013
|
+
*/
|
|
4014
|
+
checkPosition(t) {
|
|
4015
|
+
this.customDropDownOpen = t, t && this.$nextTick(() => {
|
|
4016
|
+
this.optionsPosition = this.$refs.customDropDown.$el.getBoundingClientRect().left - this.$refs.customDropDown.$el.querySelector(".in-dropdown-wrapper__item-list-wrapper").clientWidth > 64 ? "right" : "left";
|
|
4017
|
+
});
|
|
4018
|
+
},
|
|
4019
|
+
/**
|
|
4020
|
+
* @return {void}
|
|
4021
|
+
*/
|
|
4022
|
+
onTitleClick() {
|
|
4023
|
+
!this.boxStyle && this.dynamicDropdownTabs && this.closeDropdown();
|
|
4024
|
+
},
|
|
4025
|
+
/**
|
|
4026
|
+
* @param {object} event
|
|
4027
|
+
* @return {void}
|
|
4028
|
+
*/
|
|
4029
|
+
changeOrder(t) {
|
|
4030
|
+
this.$emit("changeOrder", {
|
|
4031
|
+
...t,
|
|
4032
|
+
list: this.tabsListClone
|
|
4033
|
+
});
|
|
4034
|
+
},
|
|
4035
|
+
/**
|
|
4036
|
+
* @param {string|number} value
|
|
4037
|
+
* @return {void}
|
|
4038
|
+
*/
|
|
4039
|
+
onDragIconClick(t) {
|
|
4040
|
+
this.disableDragIconClick || (this.$emit("click", t), this.dynamicDropdownTabs && this.closeDropdown());
|
|
4041
|
+
},
|
|
4042
|
+
/**
|
|
4043
|
+
* @param {object} event
|
|
4044
|
+
* @param {object} tab
|
|
4045
|
+
* @return {void}
|
|
4046
|
+
*/
|
|
4047
|
+
async onHoverHandler(t, n, e = !1) {
|
|
4048
|
+
var r, a;
|
|
4049
|
+
e && !he(this.tooltipText) && !he(this.tooltipStatus) && !he(this.tooltipPosition) || (this.tooltipText = n.tooltipText, this.tooltipStatus = (n.iconStatus || n.disable || ((r = n.meta) == null ? void 0 : r.disable)) && !!((a = n.tooltipText) != null && a.length), await this.$nextTick(), this.setTooltipPosition(t));
|
|
4050
|
+
},
|
|
4051
|
+
/**
|
|
4052
|
+
* @return {void}
|
|
4053
|
+
*/
|
|
4054
|
+
blurTooltip() {
|
|
4055
|
+
this.tooltipText = "", this.tooltipStatus = !1, this.tooltipPosition = {};
|
|
4056
|
+
},
|
|
4057
|
+
/**
|
|
4058
|
+
* @param {object} event
|
|
4059
|
+
* @return {void}
|
|
4060
|
+
*/
|
|
4061
|
+
setTooltipPosition(t) {
|
|
4062
|
+
var n, e, r, a;
|
|
4063
|
+
let i, o, s, l;
|
|
4064
|
+
const u = t.target.classList.contains(Rr) ? t.target.getBoundingClientRect() : t.target.closest(Lr).getBoundingClientRect(), c = this.$el.getBoundingClientRect(), d = (n = this.$el.querySelector(jr)) == null ? void 0 : n.getBoundingClientRect(), h = this.carouselEnabled ? Fr : 0, b = ((a = (r = (e = this.$el) == null ? void 0 : e.querySelector(".in-tabs-wrapper__add_icon")) == null ? void 0 : r.getBoundingClientRect()) == null ? void 0 : a.width) || 40, v = this.addNewTabActive && (this.isVariationType || this.isDropdownType || this.dynamicDropdownTabs && this.isAddNewTabFunctionalityEvent) ? b : 0;
|
|
4065
|
+
i = u.left - c.left + u.width / 2 - (d == null ? void 0 : d.width) / 2;
|
|
4066
|
+
const f = i + (d == null ? void 0 : d.width) > window.innerWidth, y = u.right > c.right - h - v, T = i < 0, C = u.left < c.left, w = c.bottom + (d == null ? void 0 : d.height) + Hr > window.innerHeight;
|
|
4067
|
+
y || f ? this.triangleAlignment = "end" : C || T ? this.triangleAlignment = "start" : this.triangleAlignment = "center", y ? (o = h + v, i = !1) : !y && f && (o = c.right - u.left - u.width / 2, i = !1), C ? (i = h, o = !1) : !C && T && (i = h + u.width / 2, o = !1), w ? (this.trianglePosition = "bottom", l = "100%", s = "auto") : (this.trianglePosition = "top", s = "100%", l = "auto"), i = i ? `${Math.abs(i)}px` : "auto", o = o ? `${Math.abs(o)}px` : "auto", this.tooltipPosition = { left: i, right: o, top: s, bottom: l };
|
|
4068
|
+
},
|
|
4069
|
+
/**
|
|
4070
|
+
* @param {boolean} status
|
|
4071
|
+
* @return {void}
|
|
4072
|
+
*/
|
|
4073
|
+
setCarouselStatus(t) {
|
|
4074
|
+
this.carouselEnabled = t;
|
|
4075
|
+
},
|
|
4076
|
+
/**
|
|
4077
|
+
* @return {void}
|
|
4078
|
+
*/
|
|
4079
|
+
openCustomDropdown() {
|
|
4080
|
+
const t = this.$refs.customDropDown;
|
|
4081
|
+
t.statusList = this.customDropDownOpen, t.openList();
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
};
|
|
4085
|
+
var Vr = function() {
|
|
4086
|
+
var t = this, n = t._self._c;
|
|
4087
|
+
return n("div", { staticClass: "in-tabs-wrapper w-1", class: [
|
|
4088
|
+
t.$style["in-tabs-wrapper"],
|
|
4089
|
+
{
|
|
4090
|
+
"in-tabs-wrapper_box-style": t.boxStyle,
|
|
4091
|
+
[t.$style["in-tabs-wrapper_box-style"]]: t.boxStyle
|
|
4092
|
+
}
|
|
4093
|
+
] }, [n("div", { staticClass: "draggable-carousel__wrapper", class: [
|
|
4094
|
+
t.$style["draggable-carousel__wrapper"],
|
|
4095
|
+
{ [t.$style["draggable-carousel__wrapper--box-style"]]: t.boxStyle },
|
|
4096
|
+
t.withSpacing
|
|
4097
|
+
], on: { mouseleave: t.blurTooltip } }, [t.useRouter ? n("draggable-carousel", { staticClass: "p-0 m-0 qa-tabs", attrs: { list: t.tabsListClone, "box-style": t.boxStyle, handle: ".handle", "selected-tab-index": t.selectedTabIndex, "tooltip-status": t.tooltipStatus, "tooltip-text": t.tooltipText, "tooltip-position": t.tooltipPosition, "triangle-position": t.trianglePosition, "triangle-alignment": t.triangleAlignment }, on: { setCarouselStatus: t.setCarouselStatus, onNavigationHover: t.blurTooltip, changeOrder: t.changeOrder, start: function(e) {
|
|
4098
|
+
return t.$emit("onDragStart");
|
|
4099
|
+
} } }, t._l(t.tabsListClone, function(e, r) {
|
|
4100
|
+
return n("li", { key: r, class: [
|
|
4101
|
+
"in-tabs-wrapper__tab",
|
|
4102
|
+
t.$style["in-tabs-wrapper__tab"],
|
|
4103
|
+
{
|
|
4104
|
+
"in-tabs-wrapper__tab_disable": e.meta.disable,
|
|
4105
|
+
[t.$style["in-tabs-wrapper__tab_disable"]]: e.meta.disable,
|
|
4106
|
+
"in-tabs-wrapper__tab_selected": t.selectActiveTab(e.path, r),
|
|
4107
|
+
[t.$style["in-tabs-wrapper__tab_selected"]]: t.selectActiveTab(e.path, r)
|
|
4108
|
+
}
|
|
4109
|
+
], attrs: { disable: e.disable }, on: { mouseenter: (a) => t.onHoverHandler(a, e), mouseover: (a) => t.onHoverHandler(a, e, !0), click: function(a) {
|
|
4110
|
+
return t.selectTab(e.path, e);
|
|
4111
|
+
} } }, [t.draggable ? n("in-icons", { staticClass: "handle i-c-6 cur-g", attrs: { name: "line-drag-drop" }, on: { click: function(a) {
|
|
4112
|
+
return t.onDragIconClick(e.value);
|
|
4113
|
+
} } }) : t._e(), n("router-link", { staticClass: "d-b pb-3", attrs: { to: e.path } }, [t._v(" " + t._s(e.meta.text) + " ")]), e.iconStatus ? n("in-icons", { staticClass: "ml-1 in-tabs-wrapper__icon", class: [t.$style["in-tabs-wrapper__icon"], e.iconColor || "i-c-53"], attrs: { name: e.icon } }) : t._e()], 1);
|
|
4114
|
+
}), 0) : t.isDropdownType ? n("draggable-carousel", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: t.closeDropdown, expression: "closeDropdown" }], ref: "draggableCarousel", staticClass: "p-0 m-0 qa-tabs", attrs: { "add-button": t.addNewTabActive, "box-style": t.boxStyle, list: t.tabsListClone, handle: ".handle", "selected-tab-index": t.selectedTabIndex, "tooltip-status": t.tooltipStatus, "tooltip-text": t.tooltipText, "tooltip-position": t.tooltipPosition, "triangle-position": t.trianglePosition, "triangle-alignment": t.triangleAlignment }, on: { setCarouselStatus: t.setCarouselStatus, onNavigationHover: t.blurTooltip, setCarouselOffset: t.setCarouselOffset, closeDropdown: t.closeDropdown, changeOrder: t.changeOrder, start: function(e) {
|
|
4115
|
+
return t.$emit("onDragStart");
|
|
4116
|
+
} }, scopedSlots: t._u([{ key: "addTab", fn: function() {
|
|
4117
|
+
return [t.addNewTabActive && t.addNewTabTooltipStatus && t.isAddNewTabFunctionalityEvent ? n("in-tooltip", { staticClass: "mx-2", attrs: { text: t.addNewTabTooltipText, position: "bottom", align: "center", "with-icon": !1, "theme-dark": !0 } }, [n("div", { attrs: { slot: "element" }, slot: "element" }, [n("button", { staticClass: "cur-p in-tabs-wrapper__add_icon flex-shrink-0", class: t.$style["in-tabs-wrapper__add_icon"], on: { click: t.addNewTab } }, [n("in-icons", { class: { "mr-2": !!t.addButtonText.length }, attrs: { name: "line-plus-netural" } }), t._v(" " + t._s(t.addButtonText) + " ")], 1)])]) : t._e(), t.addNewTabActive && !t.addNewTabTooltipStatus && t.isAddNewTabFunctionalityEvent ? n("button", { staticClass: "cur-p mx-2 in-tabs-wrapper__add_icon flex-shrink-0", class: t.$style["in-tabs-wrapper__add_icon"], on: { click: t.addNewTab } }, [n("in-icons", { class: { "mr-2": !!t.addButtonText.length }, attrs: { name: "line-plus-netural" } }), t._v(" " + t._s(t.addButtonText) + " ")], 1) : !t.isAddNewTabFunctionalityEvent && t.addNewTabActive ? n("button", { staticClass: "in-tabs-wrapper__add_icon mx-2", class: t.$style["in-tabs-wrapper__add_icon"], on: { click: t.openCustomDropdown } }, [n("in-custom-drop-down", { ref: "customDropDown", staticClass: "h-4-s", class: { "mr-2": !!t.addButtonText.length }, attrs: { type: "icon", text: t.addButtonText, "open-position": t.optionsPosition, options: t.addTabDropdownOptions, "search-status": t.addTabDropdownSearchStatus }, on: { openList: t.checkPosition, click: t.addNewTab } }), t._v(" " + t._s(t.addButtonText) + " ")], 1) : t._e()];
|
|
4118
|
+
}, proxy: !0 }]) }, t._l(t.tabsListClone, function(e, r) {
|
|
4119
|
+
return n("li", { key: r, ref: `tab_${r}`, refInFor: !0, class: [
|
|
4120
|
+
"in-tabs-wrapper__tab in-tabs-wrapper__dropdown",
|
|
4121
|
+
t.$style["in-tabs-wrapper__tab"],
|
|
4122
|
+
t.$style["in-tabs-wrapper__dropdown"],
|
|
4123
|
+
{
|
|
4124
|
+
"in-tabs-wrapper__tab_disable": e.disable,
|
|
4125
|
+
[t.$style["in-tabs-wrapper__tab_disable"]]: e.disable,
|
|
4126
|
+
"in-tabs-wrapper__tab_selected": t.selectActiveTab(e.value, r),
|
|
4127
|
+
[t.$style["in-tabs-wrapper__tab_selected"]]: t.selectActiveTab(e.value, r)
|
|
4128
|
+
}
|
|
4129
|
+
], attrs: { disable: e.disable }, on: { mouseenter: (a) => t.onHoverHandler(a, e), mouseover: (a) => t.onHoverHandler(a, e, !0), click: function(a) {
|
|
4130
|
+
return t.selectTab(e.value, e);
|
|
4131
|
+
} } }, [t.draggable ? n("in-icons", { staticClass: "handle i-c-6 cur-g", attrs: { name: "line-drag-drop" }, on: { click: function(a) {
|
|
4132
|
+
return t.onDragIconClick(e.value);
|
|
4133
|
+
} } }) : t._e(), n("span", { staticClass: "in-tabs-wrapper__text_input_wrapper p-r pb-3 cur-p", class: t.$style["in-tabs-wrapper__text_input_wrapper"], on: { click: function(a) {
|
|
4134
|
+
return t.onTitleClick(e.value);
|
|
4135
|
+
} } }, [n("span", { staticClass: "opa-0" }, [t._v(t._s(t.getVisibleTabText(e, t.renaming && t.selectedTabIndex === r)))]), n("input", { staticClass: "d-i-b p-a l-0 w-1 t-a-l in-tabs-wrapper__text_input p-e-n cur-p", class: [
|
|
4136
|
+
t.$style["in-tabs-wrapper__text_input"],
|
|
4137
|
+
{
|
|
4138
|
+
"in-tabs-wrapper__text_input_invalid": e.invalid,
|
|
4139
|
+
[t.$style["in-tabs-wrapper__text_input_invalid"]]: e.invalid
|
|
4140
|
+
}
|
|
4141
|
+
], attrs: { id: `dropdown_text${r}`, type: "text", autocomplete: "off", contenteditable: t.renaming && t.selectedTabIndex === r }, domProps: { value: t.getVisibleTabText(e, t.renaming && t.selectedTabIndex === r) }, on: { blur: t.onBlur, input: function(a) {
|
|
4142
|
+
return t.tabTextInputUpdate(e.value, a);
|
|
4143
|
+
}, keyup: function(a) {
|
|
4144
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : t.onEnterOrEscape.apply(null, arguments);
|
|
4145
|
+
}, mouseover: function(a) {
|
|
4146
|
+
return t.$emit("mouseover", e.value);
|
|
4147
|
+
} } })]), e.iconStatus ? n("in-icons", { staticClass: "ml-1 in-tabs-wrapper__icon", class: [t.$style["in-tabs-wrapper__icon"], e.iconColor || "i-c-53"], attrs: { name: e.icon } }) : t._e(), n("div", { staticClass: "d-i-b p-r fl-r in-tabs-wrapper__box_wrapper", class: t.$style["in-tabs-wrapper__box_wrapper"] }, [t.dropdownTypeOptions.length ? n("in-icons", { staticClass: "i-c-2", attrs: { name: "filled-dropdown-down" }, on: { click: function(a) {
|
|
4148
|
+
return t.showBox(e, r);
|
|
4149
|
+
} } }) : t._e()], 1)], 1);
|
|
4150
|
+
}), 0) : t.dynamicDropdownTabs ? n("draggable-carousel", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: t.closeDropdown, expression: "closeDropdown" }], staticClass: "p-0 m-0 qa-tabs", attrs: { "add-button": t.addNewTabActive && t.isAddNewTabFunctionalityEvent, "box-style": t.boxStyle, list: t.tabsListClone, handle: ".handle", "selected-tab-index": t.selectedTabIndex, "tooltip-status": t.tooltipStatus, "tooltip-text": t.tooltipText, "tooltip-position": t.tooltipPosition, "triangle-position": t.trianglePosition, "triangle-alignment": t.triangleAlignment }, on: { setCarouselStatus: t.setCarouselStatus, onNavigationHover: t.blurTooltip, setCarouselOffset: t.setCarouselOffset, closeDropdown: t.closeDropdown, changeOrder: t.changeOrder, start: function(e) {
|
|
4151
|
+
return t.$emit("onDragStart");
|
|
4152
|
+
} }, scopedSlots: t._u([{ key: "addTab", fn: function() {
|
|
4153
|
+
return [t.addNewTabActive && t.isAddNewTabFunctionalityEvent ? n("button", { staticClass: "cur-p mx-2 in-tabs-wrapper__add_icon flex-shrink-0", class: t.$style["in-tabs-wrapper__add_icon"], on: { click: t.addNewTab } }, [n("in-icons", { class: { "mr-2": !!t.addButtonText.length }, attrs: { name: "line-plus-netural" } }), t._v(" " + t._s(t.addButtonText) + " ")], 1) : t._e()];
|
|
4154
|
+
}, proxy: !0 }]) }, t._l(t.tabsListClone, function(e, r) {
|
|
4155
|
+
return n("li", { key: r, ref: `tab_${r}`, refInFor: !0, class: [
|
|
4156
|
+
"in-tabs-wrapper__tab in-tabs-wrapper__dropdown",
|
|
4157
|
+
t.$style["in-tabs-wrapper__tab"],
|
|
4158
|
+
t.$style["in-tabs-wrapper__dropdown"],
|
|
4159
|
+
{
|
|
4160
|
+
"in-tabs-wrapper__tab_disable": e.disable,
|
|
4161
|
+
[t.$style["in-tabs-wrapper__tab_disable"]]: e.disable,
|
|
4162
|
+
"in-tabs-wrapper__tab_selected": t.selectActiveTab(e.value, r),
|
|
4163
|
+
[t.$style["in-tabs-wrapper__tab_selected"]]: t.selectActiveTab(e.value, r)
|
|
4164
|
+
}
|
|
4165
|
+
], attrs: { disable: e.disable }, on: { mouseenter: (a) => t.onHoverHandler(a, e), mouseover: (a) => t.onHoverHandler(a, e, !0), click: function(a) {
|
|
4166
|
+
return t.selectTab(e.value, e);
|
|
4167
|
+
} } }, [t.draggable ? n("in-icons", { staticClass: "handle i-c-6 cur-g", attrs: { name: "line-drag-drop" }, on: { click: function(a) {
|
|
4168
|
+
return t.onDragIconClick(e.value);
|
|
4169
|
+
} } }) : t._e(), n("a", { staticClass: "d-i-b pb-3 cur-p", on: { mouseover: function(a) {
|
|
4170
|
+
return t.$emit("mouseover", e.value);
|
|
4171
|
+
}, click: function(a) {
|
|
4172
|
+
return t.onTitleClick(e.value);
|
|
4173
|
+
} } }, [t._v(" " + t._s(e.text) + " ")]), e.iconStatus ? n("in-icons", { staticClass: "ml-1 in-tabs-wrapper__icon", class: [t.$style["in-tabs-wrapper__icon"], e.iconColor || "i-c-53"], attrs: { name: e.icon } }) : t._e(), n("div", { staticClass: "d-i-b p-r fl-r in-tabs-wrapper__box_wrapper", class: t.$style["in-tabs-wrapper__box_wrapper"] }, [t.isActiveTab(r) ? n("in-icons", { staticClass: "i-c-2", attrs: { name: "filled-dropdown-down" }, on: { click: function(a) {
|
|
4174
|
+
return t.showBox(e, r);
|
|
4175
|
+
} } }) : t._e()], 1)], 1);
|
|
4176
|
+
}), 0) : t.isVariationType ? n("draggable-carousel", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: t.closeDropdown, expression: "closeDropdown" }], ref: "draggableCarousel", staticClass: "p-0 m-0 qa-tabs", attrs: { "add-button": t.addNewTabActive, "box-style": t.boxStyle, list: t.tabsListClone, handle: ".handle", "selected-tab-index": t.selectedTabIndex, "tooltip-status": t.tooltipStatus, "tooltip-text": t.tooltipText, "tooltip-position": t.tooltipPosition, "triangle-position": t.trianglePosition, "triangle-alignment": t.triangleAlignment }, on: { setCarouselStatus: t.setCarouselStatus, onNavigationHover: t.blurTooltip, closeDropdown: t.closeDropdown, changeOrder: t.changeOrder, start: function(e) {
|
|
4177
|
+
return t.$emit("onDragStart");
|
|
4178
|
+
} }, scopedSlots: t._u([{ key: "addTab", fn: function() {
|
|
4179
|
+
return [t.addNewTabActive && !t.isAddNewTabFunctionalityEvent ? n("button", { staticClass: "in-tabs-wrapper__add_icon mx-2", class: t.$style["in-tabs-wrapper__add_icon"], on: { click: t.openCustomDropdown } }, [n("in-custom-drop-down", { ref: "customDropDown", staticClass: "h-4-s", class: { "mr-2": !!t.addButtonText.length }, attrs: { type: "icon", text: t.addButtonText, "open-position": t.optionsPosition, options: t.addTabDropdownOptions, "search-status": t.addTabDropdownSearchStatus }, on: { openList: t.checkPosition, click: t.addNewTab } }), t._v(" " + t._s(t.addButtonText) + " ")], 1) : t._e(), t.addNewTabActive && t.isAddNewTabFunctionalityEvent ? n("button", { staticClass: "cur-p mx-2 in-tabs-wrapper__add_icon flex-shrink-0", class: t.$style["in-tabs-wrapper__add_icon"], on: { click: t.addNewTab } }, [n("in-icons", { class: { "mr-2": !!t.addButtonText.length }, attrs: { name: "line-plus-netural" } }), t._v(" " + t._s(t.addButtonText) + " ")], 1) : t._e()];
|
|
4180
|
+
}, proxy: !0 }]) }, t._l(t.tabsListClone, function(e, r) {
|
|
4181
|
+
return n("li", { key: r, ref: `tab_${r}`, refInFor: !0, class: [
|
|
4182
|
+
"in-tabs-wrapper__tab in-tabs-wrapper__dropdown",
|
|
4183
|
+
t.$style["in-tabs-wrapper__tab"],
|
|
4184
|
+
t.$style["in-tabs-wrapper__dropdown"],
|
|
4185
|
+
{
|
|
4186
|
+
"in-tabs-wrapper__tab_disable": e.disable,
|
|
4187
|
+
[t.$style["in-tabs-wrapper__tab_disable"]]: e.disable,
|
|
4188
|
+
"in-tabs-wrapper__tab_selected": t.selectActiveTab(e.value, r),
|
|
4189
|
+
[t.$style["in-tabs-wrapper__tab_selected"]]: t.selectActiveTab(e.value, r)
|
|
4190
|
+
}
|
|
4191
|
+
], attrs: { disable: e.disable }, on: { mouseenter: (a) => t.onHoverHandler(a, e), mouseover: (a) => t.onHoverHandler(a, e, !0), click: function(a) {
|
|
4192
|
+
return t.selectTab(e.value, e);
|
|
4193
|
+
} } }, [t.draggable ? n("in-icons", { staticClass: "handle i-c-6 cur-g", attrs: { name: "line-drag-drop" }, on: { click: function(a) {
|
|
4194
|
+
return t.onDragIconClick(e.value);
|
|
4195
|
+
} } }) : t._e(), n("span", { staticClass: "in-tabs-wrapper__text_input_wrapper p-r pb-3 cur-p", class: t.$style["in-tabs-wrapper__text_input_wrapper"], on: { click: function(a) {
|
|
4196
|
+
return t.onTitleClick(e.value);
|
|
4197
|
+
} } }, [n("span", { staticClass: "opa-0" }, [t._v(t._s(t.getVisibleTabText(e, t.renaming && t.selectedTabIndex === r)))]), n("input", { staticClass: "d-i-b p-a l-0 w-1 t-a-l in-tabs-wrapper__text_input p-e-n cur-p", class: [
|
|
4198
|
+
t.$style["in-tabs-wrapper__text_input"],
|
|
4199
|
+
{
|
|
4200
|
+
"in-tabs-wrapper__text_input_invalid": e.invalid,
|
|
4201
|
+
[t.$style["in-tabs-wrapper__text_input_invalid"]]: e.invalid
|
|
4202
|
+
}
|
|
4203
|
+
], attrs: { id: `dropdown_text${r}`, type: "text", contenteditable: t.renaming && t.selectedTabIndex === r }, domProps: { value: t.getVisibleTabText(e, t.renaming && t.selectedTabIndex === r) }, on: { blur: t.onBlur, input: function(a) {
|
|
4204
|
+
return t.tabTextInputUpdate(e.value, a);
|
|
4205
|
+
}, keyup: function(a) {
|
|
4206
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : t.onEnterOrEscape.apply(null, arguments);
|
|
4207
|
+
}, mouseover: function(a) {
|
|
4208
|
+
return t.$emit("mouseover", e.value);
|
|
4209
|
+
} } })]), e.iconStatus ? n("in-icons", { staticClass: "ml-1 in-tabs-wrapper__icon", class: [t.$style["in-tabs-wrapper__icon"], e.iconColor || "i-c-53"], attrs: { name: e.icon } }) : t._e(), n("input", { staticClass: "d-i-b t-a-r pb-3 cur-p in-tabs-wrapper__percentage_input", class: [
|
|
4210
|
+
t.$style["in-tabs-wrapper__percentage_input"],
|
|
4211
|
+
{
|
|
4212
|
+
"in-tabs-wrapper__percentage_input_invalid": e.invalid,
|
|
4213
|
+
[t.$style["in-tabs-wrapper__percentage_input_invalid"]]: e.invalid
|
|
4214
|
+
}
|
|
4215
|
+
], attrs: { id: `dropdown_percentage${r}`, type: "number", contenteditable: "true", readonly: t.isOnlyTab }, domProps: { value: e.percentage }, on: { input: function(a) {
|
|
4216
|
+
return t.tabPercentageInput(e.value, a);
|
|
4217
|
+
}, keyup: function(a) {
|
|
4218
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : t.unFocusPercentage.apply(null, arguments);
|
|
4219
|
+
} } }), n("p", { staticClass: "d-i-b in-tabs-wrapper__percentage", class: t.$style["in-tabs-wrapper__percentage"] }, [t._v(" % ")]), n("div", { staticClass: "d-i-b p-r fl-r in-tabs-wrapper__box_wrapper", class: t.$style["in-tabs-wrapper__box_wrapper"] }, [t.variationTypesOptions.length ? n("in-icons", { staticClass: "i-c-2", attrs: { name: "filled-dropdown-down" }, on: { click: function(a) {
|
|
4220
|
+
return t.showBox(e, r);
|
|
4221
|
+
} } }) : t._e()], 1)], 1);
|
|
4222
|
+
}), 0) : n("draggable-carousel", { staticClass: "p-0 m-0 qa-tabs", attrs: { "box-style": t.boxStyle, list: t.tabsListClone, handle: ".handle", "selected-tab-index": t.selectedTabIndex, "tooltip-status": t.tooltipStatus, "tooltip-text": t.tooltipText, "tooltip-position": t.tooltipPosition, "triangle-position": t.trianglePosition, "triangle-alignment": t.triangleAlignment }, on: { setCarouselStatus: t.setCarouselStatus, onNavigationHover: t.blurTooltip, changeOrder: t.changeOrder, start: function(e) {
|
|
4223
|
+
return t.$emit("onDragStart");
|
|
4224
|
+
} } }, t._l(t.tabsListClone, function(e, r) {
|
|
4225
|
+
return n("li", { key: r, class: [
|
|
4226
|
+
"in-tabs-wrapper__tab p-r o-v",
|
|
4227
|
+
t.$style["in-tabs-wrapper__tab"],
|
|
4228
|
+
{
|
|
4229
|
+
"in-tabs-wrapper__tab_disable": e == null ? void 0 : e.disable,
|
|
4230
|
+
[t.$style["in-tabs-wrapper__tab_disable"]]: e == null ? void 0 : e.disable,
|
|
4231
|
+
"in-tabs-wrapper__tab_selected": t.selectActiveTab(e.value, r),
|
|
4232
|
+
[t.$style["in-tabs-wrapper__tab_selected"]]: t.selectActiveTab(e.value, r)
|
|
4233
|
+
}
|
|
4234
|
+
], attrs: { disable: e == null ? void 0 : e.disable }, on: { mouseenter: (a) => t.onHoverHandler(a, e), mouseover: (a) => t.onHoverHandler(a, e, !0), click: function(a) {
|
|
4235
|
+
return t.selectTab(e.value, e);
|
|
4236
|
+
} } }, [t.draggable ? n("in-icons", { staticClass: "handle i-c-6 cur-g", attrs: { name: "line-drag-drop" }, on: { click: function(a) {
|
|
4237
|
+
return t.onDragIconClick(e.value);
|
|
4238
|
+
} } }) : t._e(), n("a", { staticClass: "d-b pb-3 cur-p", on: { mouseover: function(a) {
|
|
4239
|
+
return t.$emit("mouseover", e.value);
|
|
4240
|
+
}, click: function(a) {
|
|
4241
|
+
return t.onTitleClick(e.value);
|
|
4242
|
+
} } }, [t._v(" " + t._s(t.getVisibleTabText(e)) + " ")]), e.iconStatus ? n("in-icons", { staticClass: "ml-1 in-tabs-wrapper__icon", class: [t.$style["in-tabs-wrapper__icon"], e.iconColor || "i-c-53"], attrs: { name: e.icon } }) : t._e()], 1);
|
|
4243
|
+
}), 0), t.isDropdownType ? [n("in-box", { directives: [{ name: "show", rawName: "v-show", value: t.dropdownStatuses[t.activeDropdown.index], expression: "dropdownStatuses[activeDropdown.index]" }], staticClass: "py-2 mt-3 min-w-10-s in-tabs-wrapper__dropdown_box", class: t.$style["in-tabs-wrapper__dropdown_box"], style: `left: ${t.activeDropdown.left}px`, attrs: { id: `dropdown_${t.activeTabIndex}`, tabindex: "0", "border-triangle": !0, "border-triangle-position": "top", "border-triangle-align": "start" }, nativeOn: { keyup: [function(e) {
|
|
4244
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]) ? null : t.increaseActiveItem(t.dropdownTypeOptions);
|
|
4245
|
+
}, function(e) {
|
|
4246
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]) ? null : t.decreaseActiveItem(t.dropdownTypeOptions);
|
|
4247
|
+
}, function(e) {
|
|
4248
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : t.dropdownTypeOptions[t.activeItem].callback();
|
|
4249
|
+
}], mouseover: function(e) {
|
|
4250
|
+
return t.blurTooltip.apply(null, arguments);
|
|
4251
|
+
} } }, t._l(t.dropdownTypeOptions, function(e, r) {
|
|
4252
|
+
return n("div", { key: `${r}dropdown`, class: [
|
|
4253
|
+
`option__${r}`,
|
|
4254
|
+
{ option_active: t.activeItem === r }
|
|
4255
|
+
], on: { mouseenter: function(a) {
|
|
4256
|
+
return t.setActiveItem(r);
|
|
4257
|
+
}, click: function(a) {
|
|
4258
|
+
return e.callback();
|
|
4259
|
+
} } }, [n("a", { staticClass: "d-b py-2 px-4" }, [t._v(t._s(e.text))])]);
|
|
4260
|
+
}), 0)] : t._e(), t.dynamicDropdownTabs ? [n("in-box", { directives: [{ name: "show", rawName: "v-show", value: t.dropdownActiveTab === t.activeDropdown.value && t.selectedDropdown, expression: "dropdownActiveTab === activeDropdown.value && selectedDropdown" }], staticClass: "py-2 mt-3 min-w-10-s in-tabs-wrapper__dropdown_box", class: t.$style["in-tabs-wrapper__dropdown_box"], style: `left: ${t.activeDropdown.left}px`, attrs: { id: `dropdown_${t.activeTabIndex}`, tabindex: "0", "border-triangle": !0, "border-triangle-position": "top", "border-triangle-align": "start" }, nativeOn: { keyup: function(e) {
|
|
4261
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : t.sendEvent(t.activeDropdown.index, t.activeDropdown.value);
|
|
4262
|
+
}, mouseover: function(e) {
|
|
4263
|
+
return t.blurTooltip.apply(null, arguments);
|
|
4264
|
+
} } }, [t.isMixedMode ? n("div", t._l(t.dropdownMixedModeOptions, function(e, r) {
|
|
4265
|
+
return n("div", { key: `${r}variation`, class: [
|
|
4266
|
+
`option__${r}`,
|
|
4267
|
+
{ option_active: t.activeItem === r }
|
|
4268
|
+
], on: { mouseenter: function(a) {
|
|
4269
|
+
return t.setActiveItem(r);
|
|
4270
|
+
}, click: function(a) {
|
|
4271
|
+
return e.callback();
|
|
4272
|
+
} } }, [n("a", { staticClass: "d-b py-2 px-4" }, [t._v(t._s(e.text))])]);
|
|
4273
|
+
}), 0) : n("div", { staticClass: "option_active", class: t.$style.option_active, on: { click: function(e) {
|
|
4274
|
+
return t.sendEvent(t.activeDropdown.index, t.activeDropdown.value);
|
|
4275
|
+
} } }, [n("a", { staticClass: "d-b py-2 px-4" }, [t._v(t._s(t.activeDropdown.eventName))])])])] : t._e(), t.isVariationType ? [n("in-box", { directives: [{ name: "show", rawName: "v-show", value: t.dropdownStatuses[t.activeDropdown.index], expression: "dropdownStatuses[activeDropdown.index]" }], staticClass: "py-2 mt-3 min-w-10-s in-tabs-wrapper__dropdown_box", class: t.$style["in-tabs-wrapper__dropdown_box"], style: `left: ${t.activeDropdown.left}px`, attrs: { id: `dropdown_${t.activeTabIndex}`, "border-triangle": !0, tabindex: "0", "border-triangle-position": "top", "border-triangle-align": "start" }, nativeOn: { keyup: [function(e) {
|
|
4276
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]) ? null : t.increaseActiveItem(t.variationTypesOptions);
|
|
4277
|
+
}, function(e) {
|
|
4278
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "up", 38, e.key, ["Up", "ArrowUp"]) ? null : t.decreaseActiveItem(t.variationTypesOptions);
|
|
4279
|
+
}, function(e) {
|
|
4280
|
+
return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : t.variationTypesOptions[t.activeItem].callback();
|
|
4281
|
+
}], mouseover: function(e) {
|
|
4282
|
+
return t.blurTooltip.apply(null, arguments);
|
|
4283
|
+
} } }, t._l(t.variationTypesOptions, function(e, r) {
|
|
4284
|
+
return n("div", { key: `${r}variation`, class: [
|
|
4285
|
+
`option__${r}`,
|
|
4286
|
+
{ option_active: t.activeItem === r }
|
|
4287
|
+
], on: { click: function(a) {
|
|
4288
|
+
return e.callback();
|
|
4289
|
+
} } }, [n("a", { staticClass: "d-b py-2 px-4" }, [t._v(t._s(e.text))])]);
|
|
4290
|
+
}), 0)] : t._e()], 2)]);
|
|
4291
|
+
}, Xr = [];
|
|
4292
|
+
const Ge = {
|
|
4293
|
+
$style: Mr
|
|
4294
|
+
};
|
|
4295
|
+
function qr(t) {
|
|
4296
|
+
for (var n in Ge)
|
|
4297
|
+
this[n] = Ge[n];
|
|
4298
|
+
}
|
|
4299
|
+
var Ur = /* @__PURE__ */ Ke(
|
|
4300
|
+
Wr,
|
|
4301
|
+
Vr,
|
|
4302
|
+
Xr,
|
|
4303
|
+
!1,
|
|
4304
|
+
qr
|
|
4305
|
+
);
|
|
4306
|
+
const ii = Ur.exports;
|
|
4307
|
+
export {
|
|
4308
|
+
ii as InTabs
|
|
4309
|
+
};
|