@vc-shell/framework 1.0.59 → 1.0.60
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/core/composables/index.ts +0 -1
- package/core/composables/useNotifications/index.ts +2 -2
- package/core/composables/usePermissions/index.ts +1 -1
- package/core/composables/useSettings/index.ts +2 -2
- package/core/composables/useUser/index.ts +2 -2
- package/dist/framework.mjs +1124 -327
- package/dist/index.css +1 -1
- package/dist/types/core/composables/index.d.ts +0 -1
- package/dist/types/core/composables/index.d.ts.map +1 -1
- package/dist/types/core/composables/useNotifications/index.d.ts +1 -1
- package/dist/types/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/types/core/composables/useUser/index.d.ts +2 -2
- package/dist/types/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/types/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -0
- package/dist/types/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/types/shared/modules/assets/components/assets-details/index.d.ts +2 -0
- package/dist/types/shared/modules/assets/components/assets-details/index.d.ts.map +1 -1
- package/dist/types/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +3 -3
- package/dist/types/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/types/shared/modules/assets-manager/components/assets-manager/index.d.ts +6 -6
- package/dist/types/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts +12 -12
- package/dist/types/ui/components/molecules/vc-select/index.d.ts +24 -0
- package/dist/types/ui/components/molecules/vc-select/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-select/vc-select.vue.d.ts +20 -0
- package/dist/types/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts +0 -4
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +0 -4
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -1
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts +12 -0
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +7 -0
- package/dist/types/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts +6 -6
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/modules/assets/components/assets-details/assets-details.vue +60 -22
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +38 -21
- package/tailwind.config.js +0 -2
- package/ui/components/atoms/vc-button/vc-button.vue +0 -1
- package/ui/components/molecules/vc-editor/vc-editor.vue +21 -0
- package/ui/components/molecules/vc-select/vc-select.vue +39 -8
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +1 -1
- package/ui/components/organisms/vc-dynamic-property/index.ts +0 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +14 -3
- package/ui/components/organisms/vc-table/vc-table.vue +26 -52
- package/core/composables/useAutosave/index.ts +0 -55
- package/dist/types/core/composables/useAutosave/index.d.ts +0 -9
- package/dist/types/core/composables/useAutosave/index.d.ts.map +0 -1
package/dist/framework.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, resolveComponent, createBlock, createCommentVNode, ref, createElementVNode, toDisplayString as toDisplayString$1, createVNode, Transition, withCtx, withDirectives, vShow, createTextVNode, normalizeStyle, onMounted, computed, nextTick as nextTick$1, unref, createSlots, Fragment, renderList, mergeProps, h as h$2, markRaw, capitalize as capitalize$1, watch, onBeforeUnmount, getCurrentInstance, effectScope, inject, onUnmounted, shallowRef, onBeforeMount, isRef, Text as Text$1, readonly, withModifiers, vModelDynamic, customRef, getCurrentScope, onScopeDispose, onUpdated, watchEffect, shallowReadonly, toRefs, Teleport, normalizeProps, guardReactiveProps, onBeforeUpdate, resolveDynamicComponent, toRef, provide, reactive, warn as warn$3, resolveDirective } from 'vue';
|
|
2
2
|
import * as veeValidate from 'vee-validate';
|
|
3
|
-
import { useField as useField$1, Field, defineRule } from 'vee-validate';
|
|
3
|
+
import { useField as useField$1, Field, defineRule, useForm as useForm$2, useIsFormValid, useIsFormDirty } from 'vee-validate';
|
|
4
4
|
import { useRoute, useRouter } from 'vue-router';
|
|
5
5
|
|
|
6
6
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
@@ -170,11 +170,11 @@ const VcCard = _sfc_main$T;
|
|
|
170
170
|
const _hoisted_1$F = { class: "vc-checkbox__label" };
|
|
171
171
|
const _hoisted_2$y = ["checked", "disabled"];
|
|
172
172
|
const _hoisted_3$s = /* @__PURE__ */ createElementVNode("span", { class: "vc-checkbox__checkmark" }, null, -1);
|
|
173
|
-
const _hoisted_4$
|
|
173
|
+
const _hoisted_4$i = {
|
|
174
174
|
key: 0,
|
|
175
175
|
class: "tw-ml-2"
|
|
176
176
|
};
|
|
177
|
-
const _hoisted_5$
|
|
177
|
+
const _hoisted_5$e = {
|
|
178
178
|
key: 1,
|
|
179
179
|
class: "tw-text-[color:var(--checkbox-required-color)] tw-ml-1"
|
|
180
180
|
};
|
|
@@ -207,10 +207,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
207
207
|
onChange
|
|
208
208
|
}, null, 40, _hoisted_2$y),
|
|
209
209
|
_hoisted_3$s,
|
|
210
|
-
_ctx.$slots["default"] ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
210
|
+
_ctx.$slots["default"] ? (openBlock(), createElementBlock("span", _hoisted_4$i, [
|
|
211
211
|
renderSlot(_ctx.$slots, "default")
|
|
212
212
|
])) : createCommentVNode("", true),
|
|
213
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
213
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_5$e, "*")) : createCommentVNode("", true)
|
|
214
214
|
]),
|
|
215
215
|
__props.errorMessage ? renderSlot(_ctx.$slots, "error", { key: 0 }, () => [
|
|
216
216
|
createVNode(_component_VcHint, { class: "vc-checkbox__error tw-mt-1" }, {
|
|
@@ -565,7 +565,7 @@ const _hoisted_3$r = {
|
|
|
565
565
|
key: 1,
|
|
566
566
|
class: "tw-grow tw-basis-0 tw-ml-1"
|
|
567
567
|
};
|
|
568
|
-
const _hoisted_4$
|
|
568
|
+
const _hoisted_4$h = {
|
|
569
569
|
key: 0,
|
|
570
570
|
class: "tw-absolute tw-z-10 tw-bg-white tw-border tw-border-solid tw-border-[color:#eef0f2] tw-shadow-[1px_1px_8px_rgba(126,142,157,0.25)] tw-rounded-[3px] tw-text-[color:#8e9daa] tw-font-normal tw-py-1 tw-px-2 tw-ml-4"
|
|
571
571
|
};
|
|
@@ -591,7 +591,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
591
591
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => tooltipVisible.value = true),
|
|
592
592
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => tooltipVisible.value = false)
|
|
593
593
|
}, null, 8, ["icon"]),
|
|
594
|
-
tooltipVisible.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
594
|
+
tooltipVisible.value ? (openBlock(), createElementBlock("span", _hoisted_4$h, [
|
|
595
595
|
renderSlot(_ctx.$slots, "tooltip")
|
|
596
596
|
])) : createCommentVNode("", true)
|
|
597
597
|
])) : createCommentVNode("", true)
|
|
@@ -21463,7 +21463,7 @@ var ResizeObserver$1 = /** @class */ (function () {
|
|
|
21463
21463
|
};
|
|
21464
21464
|
});
|
|
21465
21465
|
|
|
21466
|
-
var index$
|
|
21466
|
+
var index$a = (function () {
|
|
21467
21467
|
// Export existing implementation if available.
|
|
21468
21468
|
if (typeof global$1.ResizeObserver !== 'undefined') {
|
|
21469
21469
|
return global$1.ResizeObserver;
|
|
@@ -21540,7 +21540,7 @@ const VAceEditor = defineComponent({
|
|
|
21540
21540
|
editor.on(x, this.$emit.bind(this, x));
|
|
21541
21541
|
}
|
|
21542
21542
|
});
|
|
21543
|
-
this._ro = new index$
|
|
21543
|
+
this._ro = new index$a(() => editor.resize());
|
|
21544
21544
|
this._ro.observe(this.$el);
|
|
21545
21545
|
this.$emit('init', editor);
|
|
21546
21546
|
},
|
|
@@ -40845,9 +40845,9 @@ function escapeHtml(rawText) {
|
|
|
40845
40845
|
.replace(/"/g, '"')
|
|
40846
40846
|
.replace(/'/g, ''');
|
|
40847
40847
|
}
|
|
40848
|
-
const hasOwnProperty$
|
|
40848
|
+
const hasOwnProperty$d = Object.prototype.hasOwnProperty;
|
|
40849
40849
|
function hasOwn(obj, key) {
|
|
40850
|
-
return hasOwnProperty$
|
|
40850
|
+
return hasOwnProperty$d.call(obj, key);
|
|
40851
40851
|
}
|
|
40852
40852
|
/* eslint-enable */
|
|
40853
40853
|
/**
|
|
@@ -46875,7 +46875,7 @@ var querystring = {};
|
|
|
46875
46875
|
// If obj.hasOwnProperty has been overridden, then calling
|
|
46876
46876
|
// obj.hasOwnProperty(prop) will break.
|
|
46877
46877
|
// See: https://github.com/joyent/node/issues/1707
|
|
46878
|
-
function hasOwnProperty$
|
|
46878
|
+
function hasOwnProperty$c(obj, prop) {
|
|
46879
46879
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
46880
46880
|
}
|
|
46881
46881
|
|
|
@@ -46918,7 +46918,7 @@ var decode = function(qs, sep, eq, options) {
|
|
|
46918
46918
|
k = decodeURIComponent(kstr);
|
|
46919
46919
|
v = decodeURIComponent(vstr);
|
|
46920
46920
|
|
|
46921
|
-
if (!hasOwnProperty$
|
|
46921
|
+
if (!hasOwnProperty$c(obj, k)) {
|
|
46922
46922
|
obj[k] = v;
|
|
46923
46923
|
} else if (Array.isArray(obj[k])) {
|
|
46924
46924
|
obj[k].push(v);
|
|
@@ -47010,14 +47010,14 @@ var browser$1 = function request (method, url, body, headers) {
|
|
|
47010
47010
|
})
|
|
47011
47011
|
};
|
|
47012
47012
|
|
|
47013
|
-
var Buffer$
|
|
47013
|
+
var Buffer$3 = require$$0.Buffer;
|
|
47014
47014
|
var Querystring = querystring;
|
|
47015
47015
|
var defaultRequest = browser$1;
|
|
47016
47016
|
|
|
47017
47017
|
const DEFAULT_URL_BASE = 'https://example.org/';
|
|
47018
47018
|
|
|
47019
47019
|
var btoa$1;
|
|
47020
|
-
if (typeof Buffer$
|
|
47020
|
+
if (typeof Buffer$3 === 'function') {
|
|
47021
47021
|
btoa$1 = btoaBuffer;
|
|
47022
47022
|
} else {
|
|
47023
47023
|
btoa$1 = window.btoa.bind(window);
|
|
@@ -47098,7 +47098,7 @@ var ERROR_RESPONSES = {
|
|
|
47098
47098
|
* @return {string}
|
|
47099
47099
|
*/
|
|
47100
47100
|
function btoaBuffer (string) {
|
|
47101
|
-
return Buffer$
|
|
47101
|
+
return Buffer$3.from(string).toString('base64')
|
|
47102
47102
|
}
|
|
47103
47103
|
|
|
47104
47104
|
/**
|
|
@@ -55170,17 +55170,17 @@ var Symbol$1 = root$1.Symbol;
|
|
|
55170
55170
|
const Symbol$2 = Symbol$1;
|
|
55171
55171
|
|
|
55172
55172
|
/** Used for built-in method references. */
|
|
55173
|
-
var objectProto$
|
|
55173
|
+
var objectProto$e = Object.prototype;
|
|
55174
55174
|
|
|
55175
55175
|
/** Used to check objects for own properties. */
|
|
55176
|
-
var hasOwnProperty$
|
|
55176
|
+
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
55177
55177
|
|
|
55178
55178
|
/**
|
|
55179
55179
|
* Used to resolve the
|
|
55180
55180
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
55181
55181
|
* of values.
|
|
55182
55182
|
*/
|
|
55183
|
-
var nativeObjectToString$1 = objectProto$
|
|
55183
|
+
var nativeObjectToString$1 = objectProto$e.toString;
|
|
55184
55184
|
|
|
55185
55185
|
/** Built-in value references. */
|
|
55186
55186
|
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
@@ -55193,7 +55193,7 @@ var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
|
55193
55193
|
* @returns {string} Returns the raw `toStringTag`.
|
|
55194
55194
|
*/
|
|
55195
55195
|
function getRawTag(value) {
|
|
55196
|
-
var isOwn = hasOwnProperty$
|
|
55196
|
+
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1),
|
|
55197
55197
|
tag = value[symToStringTag$1];
|
|
55198
55198
|
|
|
55199
55199
|
try {
|
|
@@ -55213,14 +55213,14 @@ function getRawTag(value) {
|
|
|
55213
55213
|
}
|
|
55214
55214
|
|
|
55215
55215
|
/** Used for built-in method references. */
|
|
55216
|
-
var objectProto$
|
|
55216
|
+
var objectProto$d = Object.prototype;
|
|
55217
55217
|
|
|
55218
55218
|
/**
|
|
55219
55219
|
* Used to resolve the
|
|
55220
55220
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
55221
55221
|
* of values.
|
|
55222
55222
|
*/
|
|
55223
|
-
var nativeObjectToString = objectProto$
|
|
55223
|
+
var nativeObjectToString = objectProto$d.toString;
|
|
55224
55224
|
|
|
55225
55225
|
/**
|
|
55226
55226
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -55285,7 +55285,7 @@ function isObjectLike(value) {
|
|
|
55285
55285
|
}
|
|
55286
55286
|
|
|
55287
55287
|
/** `Object#toString` result references. */
|
|
55288
|
-
var symbolTag$
|
|
55288
|
+
var symbolTag$3 = '[object Symbol]';
|
|
55289
55289
|
|
|
55290
55290
|
/**
|
|
55291
55291
|
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
@@ -55306,7 +55306,7 @@ var symbolTag$1 = '[object Symbol]';
|
|
|
55306
55306
|
*/
|
|
55307
55307
|
function isSymbol(value) {
|
|
55308
55308
|
return typeof value == 'symbol' ||
|
|
55309
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag$
|
|
55309
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag$3);
|
|
55310
55310
|
}
|
|
55311
55311
|
|
|
55312
55312
|
/**
|
|
@@ -55360,8 +55360,8 @@ const isArray$2 = isArray$1;
|
|
|
55360
55360
|
var INFINITY$1 = 1 / 0;
|
|
55361
55361
|
|
|
55362
55362
|
/** Used to convert symbols to primitives and strings. */
|
|
55363
|
-
var symbolProto$
|
|
55364
|
-
symbolToString = symbolProto$
|
|
55363
|
+
var symbolProto$2 = Symbol$2 ? Symbol$2.prototype : undefined,
|
|
55364
|
+
symbolToString = symbolProto$2 ? symbolProto$2.toString : undefined;
|
|
55365
55365
|
|
|
55366
55366
|
/**
|
|
55367
55367
|
* The base implementation of `_.toString` which doesn't convert nullish
|
|
@@ -55439,8 +55439,8 @@ function identity$1(value) {
|
|
|
55439
55439
|
|
|
55440
55440
|
/** `Object#toString` result references. */
|
|
55441
55441
|
var asyncTag = '[object AsyncFunction]',
|
|
55442
|
-
funcTag$
|
|
55443
|
-
genTag = '[object GeneratorFunction]',
|
|
55442
|
+
funcTag$2 = '[object Function]',
|
|
55443
|
+
genTag$1 = '[object GeneratorFunction]',
|
|
55444
55444
|
proxyTag = '[object Proxy]';
|
|
55445
55445
|
|
|
55446
55446
|
/**
|
|
@@ -55467,7 +55467,7 @@ function isFunction$2(value) {
|
|
|
55467
55467
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
55468
55468
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
55469
55469
|
var tag = baseGetTag(value);
|
|
55470
|
-
return tag == funcTag$
|
|
55470
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
55471
55471
|
}
|
|
55472
55472
|
|
|
55473
55473
|
/** Used to detect overreaching core-js shims. */
|
|
@@ -55528,17 +55528,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
55528
55528
|
|
|
55529
55529
|
/** Used for built-in method references. */
|
|
55530
55530
|
var funcProto = Function.prototype,
|
|
55531
|
-
objectProto$
|
|
55531
|
+
objectProto$c = Object.prototype;
|
|
55532
55532
|
|
|
55533
55533
|
/** Used to resolve the decompiled source of functions. */
|
|
55534
55534
|
var funcToString = funcProto.toString;
|
|
55535
55535
|
|
|
55536
55536
|
/** Used to check objects for own properties. */
|
|
55537
|
-
var hasOwnProperty$
|
|
55537
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
55538
55538
|
|
|
55539
55539
|
/** Used to detect if a method is native. */
|
|
55540
55540
|
var reIsNative = RegExp('^' +
|
|
55541
|
-
funcToString.call(hasOwnProperty$
|
|
55541
|
+
funcToString.call(hasOwnProperty$a).replace(reRegExpChar, '\\$&')
|
|
55542
55542
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
55543
55543
|
);
|
|
55544
55544
|
|
|
@@ -55588,6 +55588,35 @@ var WeakMap$1 = getNative(root$1, 'WeakMap');
|
|
|
55588
55588
|
|
|
55589
55589
|
const WeakMap$2 = WeakMap$1;
|
|
55590
55590
|
|
|
55591
|
+
/** Built-in value references. */
|
|
55592
|
+
var objectCreate = Object.create;
|
|
55593
|
+
|
|
55594
|
+
/**
|
|
55595
|
+
* The base implementation of `_.create` without support for assigning
|
|
55596
|
+
* properties to the created object.
|
|
55597
|
+
*
|
|
55598
|
+
* @private
|
|
55599
|
+
* @param {Object} proto The object to inherit from.
|
|
55600
|
+
* @returns {Object} Returns the new object.
|
|
55601
|
+
*/
|
|
55602
|
+
var baseCreate = (function() {
|
|
55603
|
+
function object() {}
|
|
55604
|
+
return function(proto) {
|
|
55605
|
+
if (!isObject$6(proto)) {
|
|
55606
|
+
return {};
|
|
55607
|
+
}
|
|
55608
|
+
if (objectCreate) {
|
|
55609
|
+
return objectCreate(proto);
|
|
55610
|
+
}
|
|
55611
|
+
object.prototype = proto;
|
|
55612
|
+
var result = new object;
|
|
55613
|
+
object.prototype = undefined;
|
|
55614
|
+
return result;
|
|
55615
|
+
};
|
|
55616
|
+
}());
|
|
55617
|
+
|
|
55618
|
+
const baseCreate$1 = baseCreate;
|
|
55619
|
+
|
|
55591
55620
|
/**
|
|
55592
55621
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
55593
55622
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
@@ -55608,6 +55637,25 @@ function apply(func, thisArg, args) {
|
|
|
55608
55637
|
return func.apply(thisArg, args);
|
|
55609
55638
|
}
|
|
55610
55639
|
|
|
55640
|
+
/**
|
|
55641
|
+
* Copies the values of `source` to `array`.
|
|
55642
|
+
*
|
|
55643
|
+
* @private
|
|
55644
|
+
* @param {Array} source The array to copy values from.
|
|
55645
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
55646
|
+
* @returns {Array} Returns `array`.
|
|
55647
|
+
*/
|
|
55648
|
+
function copyArray(source, array) {
|
|
55649
|
+
var index = -1,
|
|
55650
|
+
length = source.length;
|
|
55651
|
+
|
|
55652
|
+
array || (array = Array(length));
|
|
55653
|
+
while (++index < length) {
|
|
55654
|
+
array[index] = source[index];
|
|
55655
|
+
}
|
|
55656
|
+
return array;
|
|
55657
|
+
}
|
|
55658
|
+
|
|
55611
55659
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
55612
55660
|
var HOT_COUNT = 800,
|
|
55613
55661
|
HOT_SPAN = 16;
|
|
@@ -55710,6 +55758,27 @@ var setToString = shortOut(baseSetToString$1);
|
|
|
55710
55758
|
|
|
55711
55759
|
const setToString$1 = setToString;
|
|
55712
55760
|
|
|
55761
|
+
/**
|
|
55762
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
55763
|
+
* iteratee shorthands.
|
|
55764
|
+
*
|
|
55765
|
+
* @private
|
|
55766
|
+
* @param {Array} [array] The array to iterate over.
|
|
55767
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
55768
|
+
* @returns {Array} Returns `array`.
|
|
55769
|
+
*/
|
|
55770
|
+
function arrayEach(array, iteratee) {
|
|
55771
|
+
var index = -1,
|
|
55772
|
+
length = array == null ? 0 : array.length;
|
|
55773
|
+
|
|
55774
|
+
while (++index < length) {
|
|
55775
|
+
if (iteratee(array[index], index, array) === false) {
|
|
55776
|
+
break;
|
|
55777
|
+
}
|
|
55778
|
+
}
|
|
55779
|
+
return array;
|
|
55780
|
+
}
|
|
55781
|
+
|
|
55713
55782
|
/**
|
|
55714
55783
|
* The base implementation of `_.findIndex` and `_.findLastIndex` without
|
|
55715
55784
|
* support for iteratee shorthands.
|
|
@@ -55819,6 +55888,28 @@ function isIndex$1(value, length) {
|
|
|
55819
55888
|
(value > -1 && value % 1 == 0 && value < length);
|
|
55820
55889
|
}
|
|
55821
55890
|
|
|
55891
|
+
/**
|
|
55892
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
55893
|
+
* value checks.
|
|
55894
|
+
*
|
|
55895
|
+
* @private
|
|
55896
|
+
* @param {Object} object The object to modify.
|
|
55897
|
+
* @param {string} key The key of the property to assign.
|
|
55898
|
+
* @param {*} value The value to assign.
|
|
55899
|
+
*/
|
|
55900
|
+
function baseAssignValue(object, key, value) {
|
|
55901
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
55902
|
+
defineProperty$1(object, key, {
|
|
55903
|
+
'configurable': true,
|
|
55904
|
+
'enumerable': true,
|
|
55905
|
+
'value': value,
|
|
55906
|
+
'writable': true
|
|
55907
|
+
});
|
|
55908
|
+
} else {
|
|
55909
|
+
object[key] = value;
|
|
55910
|
+
}
|
|
55911
|
+
}
|
|
55912
|
+
|
|
55822
55913
|
/**
|
|
55823
55914
|
* Performs a
|
|
55824
55915
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -55855,6 +55946,66 @@ function eq$1(value, other) {
|
|
|
55855
55946
|
return value === other || (value !== value && other !== other);
|
|
55856
55947
|
}
|
|
55857
55948
|
|
|
55949
|
+
/** Used for built-in method references. */
|
|
55950
|
+
var objectProto$b = Object.prototype;
|
|
55951
|
+
|
|
55952
|
+
/** Used to check objects for own properties. */
|
|
55953
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
55954
|
+
|
|
55955
|
+
/**
|
|
55956
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
55957
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
55958
|
+
* for equality comparisons.
|
|
55959
|
+
*
|
|
55960
|
+
* @private
|
|
55961
|
+
* @param {Object} object The object to modify.
|
|
55962
|
+
* @param {string} key The key of the property to assign.
|
|
55963
|
+
* @param {*} value The value to assign.
|
|
55964
|
+
*/
|
|
55965
|
+
function assignValue(object, key, value) {
|
|
55966
|
+
var objValue = object[key];
|
|
55967
|
+
if (!(hasOwnProperty$9.call(object, key) && eq$1(objValue, value)) ||
|
|
55968
|
+
(value === undefined && !(key in object))) {
|
|
55969
|
+
baseAssignValue(object, key, value);
|
|
55970
|
+
}
|
|
55971
|
+
}
|
|
55972
|
+
|
|
55973
|
+
/**
|
|
55974
|
+
* Copies properties of `source` to `object`.
|
|
55975
|
+
*
|
|
55976
|
+
* @private
|
|
55977
|
+
* @param {Object} source The object to copy properties from.
|
|
55978
|
+
* @param {Array} props The property identifiers to copy.
|
|
55979
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
55980
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
55981
|
+
* @returns {Object} Returns `object`.
|
|
55982
|
+
*/
|
|
55983
|
+
function copyObject(source, props, object, customizer) {
|
|
55984
|
+
var isNew = !object;
|
|
55985
|
+
object || (object = {});
|
|
55986
|
+
|
|
55987
|
+
var index = -1,
|
|
55988
|
+
length = props.length;
|
|
55989
|
+
|
|
55990
|
+
while (++index < length) {
|
|
55991
|
+
var key = props[index];
|
|
55992
|
+
|
|
55993
|
+
var newValue = customizer
|
|
55994
|
+
? customizer(object[key], source[key], key, object, source)
|
|
55995
|
+
: undefined;
|
|
55996
|
+
|
|
55997
|
+
if (newValue === undefined) {
|
|
55998
|
+
newValue = source[key];
|
|
55999
|
+
}
|
|
56000
|
+
if (isNew) {
|
|
56001
|
+
baseAssignValue(object, key, newValue);
|
|
56002
|
+
} else {
|
|
56003
|
+
assignValue(object, key, newValue);
|
|
56004
|
+
}
|
|
56005
|
+
}
|
|
56006
|
+
return object;
|
|
56007
|
+
}
|
|
56008
|
+
|
|
55858
56009
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
55859
56010
|
var nativeMax = Math.max;
|
|
55860
56011
|
|
|
@@ -55964,7 +56115,7 @@ function isArrayLike(value) {
|
|
|
55964
56115
|
}
|
|
55965
56116
|
|
|
55966
56117
|
/** Used for built-in method references. */
|
|
55967
|
-
var objectProto$
|
|
56118
|
+
var objectProto$a = Object.prototype;
|
|
55968
56119
|
|
|
55969
56120
|
/**
|
|
55970
56121
|
* Checks if `value` is likely a prototype object.
|
|
@@ -55975,7 +56126,7 @@ var objectProto$8 = Object.prototype;
|
|
|
55975
56126
|
*/
|
|
55976
56127
|
function isPrototype(value) {
|
|
55977
56128
|
var Ctor = value && value.constructor,
|
|
55978
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
56129
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$a;
|
|
55979
56130
|
|
|
55980
56131
|
return value === proto;
|
|
55981
56132
|
}
|
|
@@ -56000,7 +56151,7 @@ function baseTimes(n, iteratee) {
|
|
|
56000
56151
|
}
|
|
56001
56152
|
|
|
56002
56153
|
/** `Object#toString` result references. */
|
|
56003
|
-
var argsTag$
|
|
56154
|
+
var argsTag$3 = '[object Arguments]';
|
|
56004
56155
|
|
|
56005
56156
|
/**
|
|
56006
56157
|
* The base implementation of `_.isArguments`.
|
|
@@ -56010,17 +56161,17 @@ var argsTag$2 = '[object Arguments]';
|
|
|
56010
56161
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
56011
56162
|
*/
|
|
56012
56163
|
function baseIsArguments(value) {
|
|
56013
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$
|
|
56164
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$3;
|
|
56014
56165
|
}
|
|
56015
56166
|
|
|
56016
56167
|
/** Used for built-in method references. */
|
|
56017
|
-
var objectProto$
|
|
56168
|
+
var objectProto$9 = Object.prototype;
|
|
56018
56169
|
|
|
56019
56170
|
/** Used to check objects for own properties. */
|
|
56020
|
-
var hasOwnProperty$
|
|
56171
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
56021
56172
|
|
|
56022
56173
|
/** Built-in value references. */
|
|
56023
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
56174
|
+
var propertyIsEnumerable$1 = objectProto$9.propertyIsEnumerable;
|
|
56024
56175
|
|
|
56025
56176
|
/**
|
|
56026
56177
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -56041,7 +56192,7 @@ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
|
56041
56192
|
* // => false
|
|
56042
56193
|
*/
|
|
56043
56194
|
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
56044
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
56195
|
+
return isObjectLike(value) && hasOwnProperty$8.call(value, 'callee') &&
|
|
56045
56196
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
56046
56197
|
};
|
|
56047
56198
|
|
|
@@ -56065,19 +56216,19 @@ function stubFalse() {
|
|
|
56065
56216
|
}
|
|
56066
56217
|
|
|
56067
56218
|
/** Detect free variable `exports`. */
|
|
56068
|
-
var freeExports$
|
|
56219
|
+
var freeExports$2 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
56069
56220
|
|
|
56070
56221
|
/** Detect free variable `module`. */
|
|
56071
|
-
var freeModule$
|
|
56222
|
+
var freeModule$2 = freeExports$2 && typeof module == 'object' && module && !module.nodeType && module;
|
|
56072
56223
|
|
|
56073
56224
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
56074
|
-
var moduleExports$
|
|
56225
|
+
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
56075
56226
|
|
|
56076
56227
|
/** Built-in value references. */
|
|
56077
|
-
var Buffer$
|
|
56228
|
+
var Buffer$2 = moduleExports$2 ? root$1.Buffer : undefined;
|
|
56078
56229
|
|
|
56079
56230
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
56080
|
-
var nativeIsBuffer = Buffer$
|
|
56231
|
+
var nativeIsBuffer = Buffer$2 ? Buffer$2.isBuffer : undefined;
|
|
56081
56232
|
|
|
56082
56233
|
/**
|
|
56083
56234
|
* Checks if `value` is a buffer.
|
|
@@ -56101,47 +56252,47 @@ var isBuffer = nativeIsBuffer || stubFalse;
|
|
|
56101
56252
|
const isBuffer$1 = isBuffer;
|
|
56102
56253
|
|
|
56103
56254
|
/** `Object#toString` result references. */
|
|
56104
|
-
var argsTag$
|
|
56105
|
-
arrayTag$
|
|
56106
|
-
boolTag$
|
|
56107
|
-
dateTag$
|
|
56108
|
-
errorTag$
|
|
56109
|
-
funcTag = '[object Function]',
|
|
56110
|
-
mapTag$
|
|
56111
|
-
numberTag$
|
|
56112
|
-
objectTag$
|
|
56113
|
-
regexpTag$
|
|
56114
|
-
setTag$
|
|
56115
|
-
stringTag$
|
|
56116
|
-
weakMapTag$
|
|
56117
|
-
|
|
56118
|
-
var arrayBufferTag$
|
|
56119
|
-
dataViewTag$
|
|
56120
|
-
float32Tag = '[object Float32Array]',
|
|
56121
|
-
float64Tag = '[object Float64Array]',
|
|
56122
|
-
int8Tag = '[object Int8Array]',
|
|
56123
|
-
int16Tag = '[object Int16Array]',
|
|
56124
|
-
int32Tag = '[object Int32Array]',
|
|
56125
|
-
uint8Tag = '[object Uint8Array]',
|
|
56126
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
56127
|
-
uint16Tag = '[object Uint16Array]',
|
|
56128
|
-
uint32Tag = '[object Uint32Array]';
|
|
56255
|
+
var argsTag$2 = '[object Arguments]',
|
|
56256
|
+
arrayTag$2 = '[object Array]',
|
|
56257
|
+
boolTag$3 = '[object Boolean]',
|
|
56258
|
+
dateTag$3 = '[object Date]',
|
|
56259
|
+
errorTag$2 = '[object Error]',
|
|
56260
|
+
funcTag$1 = '[object Function]',
|
|
56261
|
+
mapTag$5 = '[object Map]',
|
|
56262
|
+
numberTag$3 = '[object Number]',
|
|
56263
|
+
objectTag$3 = '[object Object]',
|
|
56264
|
+
regexpTag$3 = '[object RegExp]',
|
|
56265
|
+
setTag$5 = '[object Set]',
|
|
56266
|
+
stringTag$3 = '[object String]',
|
|
56267
|
+
weakMapTag$2 = '[object WeakMap]';
|
|
56268
|
+
|
|
56269
|
+
var arrayBufferTag$3 = '[object ArrayBuffer]',
|
|
56270
|
+
dataViewTag$4 = '[object DataView]',
|
|
56271
|
+
float32Tag$2 = '[object Float32Array]',
|
|
56272
|
+
float64Tag$2 = '[object Float64Array]',
|
|
56273
|
+
int8Tag$2 = '[object Int8Array]',
|
|
56274
|
+
int16Tag$2 = '[object Int16Array]',
|
|
56275
|
+
int32Tag$2 = '[object Int32Array]',
|
|
56276
|
+
uint8Tag$2 = '[object Uint8Array]',
|
|
56277
|
+
uint8ClampedTag$2 = '[object Uint8ClampedArray]',
|
|
56278
|
+
uint16Tag$2 = '[object Uint16Array]',
|
|
56279
|
+
uint32Tag$2 = '[object Uint32Array]';
|
|
56129
56280
|
|
|
56130
56281
|
/** Used to identify `toStringTag` values of typed arrays. */
|
|
56131
56282
|
var typedArrayTags = {};
|
|
56132
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
56133
|
-
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
56134
|
-
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
56135
|
-
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
56136
|
-
typedArrayTags[uint32Tag] = true;
|
|
56137
|
-
typedArrayTags[argsTag$
|
|
56138
|
-
typedArrayTags[arrayBufferTag$
|
|
56139
|
-
typedArrayTags[dataViewTag$
|
|
56140
|
-
typedArrayTags[errorTag$
|
|
56141
|
-
typedArrayTags[mapTag$
|
|
56142
|
-
typedArrayTags[objectTag$
|
|
56143
|
-
typedArrayTags[setTag$
|
|
56144
|
-
typedArrayTags[weakMapTag$
|
|
56283
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
|
|
56284
|
+
typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
|
|
56285
|
+
typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
|
|
56286
|
+
typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
|
|
56287
|
+
typedArrayTags[uint32Tag$2] = true;
|
|
56288
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] =
|
|
56289
|
+
typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] =
|
|
56290
|
+
typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] =
|
|
56291
|
+
typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] =
|
|
56292
|
+
typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] =
|
|
56293
|
+
typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] =
|
|
56294
|
+
typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] =
|
|
56295
|
+
typedArrayTags[weakMapTag$2] = false;
|
|
56145
56296
|
|
|
56146
56297
|
/**
|
|
56147
56298
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
@@ -56169,22 +56320,22 @@ function baseUnary(func) {
|
|
|
56169
56320
|
}
|
|
56170
56321
|
|
|
56171
56322
|
/** Detect free variable `exports`. */
|
|
56172
|
-
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
56323
|
+
var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
56173
56324
|
|
|
56174
56325
|
/** Detect free variable `module`. */
|
|
56175
|
-
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
56326
|
+
var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
|
|
56176
56327
|
|
|
56177
56328
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
56178
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
56329
|
+
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
56179
56330
|
|
|
56180
56331
|
/** Detect free variable `process` from Node.js. */
|
|
56181
|
-
var freeProcess = moduleExports && freeGlobal$1.process;
|
|
56332
|
+
var freeProcess = moduleExports$1 && freeGlobal$1.process;
|
|
56182
56333
|
|
|
56183
56334
|
/** Used to access faster Node.js helpers. */
|
|
56184
56335
|
var nodeUtil = (function() {
|
|
56185
56336
|
try {
|
|
56186
56337
|
// Use `util.types` for Node.js 10+.
|
|
56187
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
56338
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;
|
|
56188
56339
|
|
|
56189
56340
|
if (types) {
|
|
56190
56341
|
return types;
|
|
@@ -56222,10 +56373,10 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
|
|
|
56222
56373
|
const isTypedArray$1 = isTypedArray;
|
|
56223
56374
|
|
|
56224
56375
|
/** Used for built-in method references. */
|
|
56225
|
-
var objectProto$
|
|
56376
|
+
var objectProto$8 = Object.prototype;
|
|
56226
56377
|
|
|
56227
56378
|
/** Used to check objects for own properties. */
|
|
56228
|
-
var hasOwnProperty$
|
|
56379
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
56229
56380
|
|
|
56230
56381
|
/**
|
|
56231
56382
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -56245,7 +56396,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
56245
56396
|
length = result.length;
|
|
56246
56397
|
|
|
56247
56398
|
for (var key in value) {
|
|
56248
|
-
if ((inherited || hasOwnProperty$
|
|
56399
|
+
if ((inherited || hasOwnProperty$7.call(value, key)) &&
|
|
56249
56400
|
!(skipIndexes && (
|
|
56250
56401
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
56251
56402
|
key == 'length' ||
|
|
@@ -56282,10 +56433,10 @@ var nativeKeys = overArg(Object.keys, Object);
|
|
|
56282
56433
|
const nativeKeys$1 = nativeKeys;
|
|
56283
56434
|
|
|
56284
56435
|
/** Used for built-in method references. */
|
|
56285
|
-
var objectProto$
|
|
56436
|
+
var objectProto$7 = Object.prototype;
|
|
56286
56437
|
|
|
56287
56438
|
/** Used to check objects for own properties. */
|
|
56288
|
-
var hasOwnProperty$
|
|
56439
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
56289
56440
|
|
|
56290
56441
|
/**
|
|
56291
56442
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -56300,7 +56451,7 @@ function baseKeys(object) {
|
|
|
56300
56451
|
}
|
|
56301
56452
|
var result = [];
|
|
56302
56453
|
for (var key in Object(object)) {
|
|
56303
|
-
if (hasOwnProperty$
|
|
56454
|
+
if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
|
|
56304
56455
|
result.push(key);
|
|
56305
56456
|
}
|
|
56306
56457
|
}
|
|
@@ -56339,6 +56490,80 @@ function keys$1(object) {
|
|
|
56339
56490
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
56340
56491
|
}
|
|
56341
56492
|
|
|
56493
|
+
/**
|
|
56494
|
+
* This function is like
|
|
56495
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
56496
|
+
* except that it includes inherited enumerable properties.
|
|
56497
|
+
*
|
|
56498
|
+
* @private
|
|
56499
|
+
* @param {Object} object The object to query.
|
|
56500
|
+
* @returns {Array} Returns the array of property names.
|
|
56501
|
+
*/
|
|
56502
|
+
function nativeKeysIn(object) {
|
|
56503
|
+
var result = [];
|
|
56504
|
+
if (object != null) {
|
|
56505
|
+
for (var key in Object(object)) {
|
|
56506
|
+
result.push(key);
|
|
56507
|
+
}
|
|
56508
|
+
}
|
|
56509
|
+
return result;
|
|
56510
|
+
}
|
|
56511
|
+
|
|
56512
|
+
/** Used for built-in method references. */
|
|
56513
|
+
var objectProto$6 = Object.prototype;
|
|
56514
|
+
|
|
56515
|
+
/** Used to check objects for own properties. */
|
|
56516
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
56517
|
+
|
|
56518
|
+
/**
|
|
56519
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
56520
|
+
*
|
|
56521
|
+
* @private
|
|
56522
|
+
* @param {Object} object The object to query.
|
|
56523
|
+
* @returns {Array} Returns the array of property names.
|
|
56524
|
+
*/
|
|
56525
|
+
function baseKeysIn(object) {
|
|
56526
|
+
if (!isObject$6(object)) {
|
|
56527
|
+
return nativeKeysIn(object);
|
|
56528
|
+
}
|
|
56529
|
+
var isProto = isPrototype(object),
|
|
56530
|
+
result = [];
|
|
56531
|
+
|
|
56532
|
+
for (var key in object) {
|
|
56533
|
+
if (!(key == 'constructor' && (isProto || !hasOwnProperty$5.call(object, key)))) {
|
|
56534
|
+
result.push(key);
|
|
56535
|
+
}
|
|
56536
|
+
}
|
|
56537
|
+
return result;
|
|
56538
|
+
}
|
|
56539
|
+
|
|
56540
|
+
/**
|
|
56541
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
56542
|
+
*
|
|
56543
|
+
* **Note:** Non-object values are coerced to objects.
|
|
56544
|
+
*
|
|
56545
|
+
* @static
|
|
56546
|
+
* @memberOf _
|
|
56547
|
+
* @since 3.0.0
|
|
56548
|
+
* @category Object
|
|
56549
|
+
* @param {Object} object The object to query.
|
|
56550
|
+
* @returns {Array} Returns the array of property names.
|
|
56551
|
+
* @example
|
|
56552
|
+
*
|
|
56553
|
+
* function Foo() {
|
|
56554
|
+
* this.a = 1;
|
|
56555
|
+
* this.b = 2;
|
|
56556
|
+
* }
|
|
56557
|
+
*
|
|
56558
|
+
* Foo.prototype.c = 3;
|
|
56559
|
+
*
|
|
56560
|
+
* _.keysIn(new Foo);
|
|
56561
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
56562
|
+
*/
|
|
56563
|
+
function keysIn(object) {
|
|
56564
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
56565
|
+
}
|
|
56566
|
+
|
|
56342
56567
|
/** Used to match property names within property paths. */
|
|
56343
56568
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
56344
56569
|
reIsPlainProp = /^\w*$/;
|
|
@@ -56401,10 +56626,10 @@ function hashDelete(key) {
|
|
|
56401
56626
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
56402
56627
|
|
|
56403
56628
|
/** Used for built-in method references. */
|
|
56404
|
-
var objectProto$
|
|
56629
|
+
var objectProto$5 = Object.prototype;
|
|
56405
56630
|
|
|
56406
56631
|
/** Used to check objects for own properties. */
|
|
56407
|
-
var hasOwnProperty$
|
|
56632
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
56408
56633
|
|
|
56409
56634
|
/**
|
|
56410
56635
|
* Gets the hash value for `key`.
|
|
@@ -56421,14 +56646,14 @@ function hashGet(key) {
|
|
|
56421
56646
|
var result = data[key];
|
|
56422
56647
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
56423
56648
|
}
|
|
56424
|
-
return hasOwnProperty$
|
|
56649
|
+
return hasOwnProperty$4.call(data, key) ? data[key] : undefined;
|
|
56425
56650
|
}
|
|
56426
56651
|
|
|
56427
56652
|
/** Used for built-in method references. */
|
|
56428
|
-
var objectProto$
|
|
56653
|
+
var objectProto$4 = Object.prototype;
|
|
56429
56654
|
|
|
56430
56655
|
/** Used to check objects for own properties. */
|
|
56431
|
-
var hasOwnProperty$
|
|
56656
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
56432
56657
|
|
|
56433
56658
|
/**
|
|
56434
56659
|
* Checks if a hash value for `key` exists.
|
|
@@ -56441,7 +56666,7 @@ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
|
56441
56666
|
*/
|
|
56442
56667
|
function hashHas(key) {
|
|
56443
56668
|
var data = this.__data__;
|
|
56444
|
-
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$
|
|
56669
|
+
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
|
|
56445
56670
|
}
|
|
56446
56671
|
|
|
56447
56672
|
/** Used to stand-in for `undefined` hash values. */
|
|
@@ -57009,6 +57234,11 @@ function arrayPush(array, values) {
|
|
|
57009
57234
|
return array;
|
|
57010
57235
|
}
|
|
57011
57236
|
|
|
57237
|
+
/** Built-in value references. */
|
|
57238
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
57239
|
+
|
|
57240
|
+
const getPrototype$1 = getPrototype;
|
|
57241
|
+
|
|
57012
57242
|
/**
|
|
57013
57243
|
* The base implementation of `_.slice` without an iteratee call guard.
|
|
57014
57244
|
*
|
|
@@ -57142,6 +57372,64 @@ Stack.prototype.get = stackGet;
|
|
|
57142
57372
|
Stack.prototype.has = stackHas;
|
|
57143
57373
|
Stack.prototype.set = stackSet;
|
|
57144
57374
|
|
|
57375
|
+
/**
|
|
57376
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
57377
|
+
* or `customizer` functions.
|
|
57378
|
+
*
|
|
57379
|
+
* @private
|
|
57380
|
+
* @param {Object} object The destination object.
|
|
57381
|
+
* @param {Object} source The source object.
|
|
57382
|
+
* @returns {Object} Returns `object`.
|
|
57383
|
+
*/
|
|
57384
|
+
function baseAssign(object, source) {
|
|
57385
|
+
return object && copyObject(source, keys$1(source), object);
|
|
57386
|
+
}
|
|
57387
|
+
|
|
57388
|
+
/**
|
|
57389
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
57390
|
+
* or `customizer` functions.
|
|
57391
|
+
*
|
|
57392
|
+
* @private
|
|
57393
|
+
* @param {Object} object The destination object.
|
|
57394
|
+
* @param {Object} source The source object.
|
|
57395
|
+
* @returns {Object} Returns `object`.
|
|
57396
|
+
*/
|
|
57397
|
+
function baseAssignIn(object, source) {
|
|
57398
|
+
return object && copyObject(source, keysIn(source), object);
|
|
57399
|
+
}
|
|
57400
|
+
|
|
57401
|
+
/** Detect free variable `exports`. */
|
|
57402
|
+
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
57403
|
+
|
|
57404
|
+
/** Detect free variable `module`. */
|
|
57405
|
+
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
57406
|
+
|
|
57407
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
57408
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
57409
|
+
|
|
57410
|
+
/** Built-in value references. */
|
|
57411
|
+
var Buffer$1 = moduleExports ? root$1.Buffer : undefined,
|
|
57412
|
+
allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : undefined;
|
|
57413
|
+
|
|
57414
|
+
/**
|
|
57415
|
+
* Creates a clone of `buffer`.
|
|
57416
|
+
*
|
|
57417
|
+
* @private
|
|
57418
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
57419
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
57420
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
57421
|
+
*/
|
|
57422
|
+
function cloneBuffer(buffer, isDeep) {
|
|
57423
|
+
if (isDeep) {
|
|
57424
|
+
return buffer.slice();
|
|
57425
|
+
}
|
|
57426
|
+
var length = buffer.length,
|
|
57427
|
+
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
57428
|
+
|
|
57429
|
+
buffer.copy(result);
|
|
57430
|
+
return result;
|
|
57431
|
+
}
|
|
57432
|
+
|
|
57145
57433
|
/**
|
|
57146
57434
|
* A specialized version of `_.filter` for arrays without support for
|
|
57147
57435
|
* iteratee shorthands.
|
|
@@ -57189,13 +57477,13 @@ function stubArray() {
|
|
|
57189
57477
|
}
|
|
57190
57478
|
|
|
57191
57479
|
/** Used for built-in method references. */
|
|
57192
|
-
var objectProto$
|
|
57480
|
+
var objectProto$3 = Object.prototype;
|
|
57193
57481
|
|
|
57194
57482
|
/** Built-in value references. */
|
|
57195
|
-
var propertyIsEnumerable = objectProto$
|
|
57483
|
+
var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
|
|
57196
57484
|
|
|
57197
57485
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
57198
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
57486
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
57199
57487
|
|
|
57200
57488
|
/**
|
|
57201
57489
|
* Creates an array of the own enumerable symbols of `object`.
|
|
@@ -57204,18 +57492,63 @@ var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
|
57204
57492
|
* @param {Object} object The object to query.
|
|
57205
57493
|
* @returns {Array} Returns the array of symbols.
|
|
57206
57494
|
*/
|
|
57207
|
-
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
57495
|
+
var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
|
|
57208
57496
|
if (object == null) {
|
|
57209
57497
|
return [];
|
|
57210
57498
|
}
|
|
57211
57499
|
object = Object(object);
|
|
57212
|
-
return arrayFilter$1(nativeGetSymbols(object), function(symbol) {
|
|
57500
|
+
return arrayFilter$1(nativeGetSymbols$1(object), function(symbol) {
|
|
57213
57501
|
return propertyIsEnumerable.call(object, symbol);
|
|
57214
57502
|
});
|
|
57215
57503
|
};
|
|
57216
57504
|
|
|
57217
57505
|
const getSymbols$1 = getSymbols;
|
|
57218
57506
|
|
|
57507
|
+
/**
|
|
57508
|
+
* Copies own symbols of `source` to `object`.
|
|
57509
|
+
*
|
|
57510
|
+
* @private
|
|
57511
|
+
* @param {Object} source The object to copy symbols from.
|
|
57512
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
57513
|
+
* @returns {Object} Returns `object`.
|
|
57514
|
+
*/
|
|
57515
|
+
function copySymbols(source, object) {
|
|
57516
|
+
return copyObject(source, getSymbols$1(source), object);
|
|
57517
|
+
}
|
|
57518
|
+
|
|
57519
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
57520
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
57521
|
+
|
|
57522
|
+
/**
|
|
57523
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
57524
|
+
*
|
|
57525
|
+
* @private
|
|
57526
|
+
* @param {Object} object The object to query.
|
|
57527
|
+
* @returns {Array} Returns the array of symbols.
|
|
57528
|
+
*/
|
|
57529
|
+
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
57530
|
+
var result = [];
|
|
57531
|
+
while (object) {
|
|
57532
|
+
arrayPush(result, getSymbols$1(object));
|
|
57533
|
+
object = getPrototype$1(object);
|
|
57534
|
+
}
|
|
57535
|
+
return result;
|
|
57536
|
+
};
|
|
57537
|
+
|
|
57538
|
+
const getSymbolsIn$1 = getSymbolsIn;
|
|
57539
|
+
|
|
57540
|
+
/**
|
|
57541
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
57542
|
+
*
|
|
57543
|
+
* @private
|
|
57544
|
+
* @param {Object} source The object to copy symbols from.
|
|
57545
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
57546
|
+
* @returns {Object} Returns `object`.
|
|
57547
|
+
*/
|
|
57548
|
+
function copySymbolsIn(source, object) {
|
|
57549
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
57550
|
+
}
|
|
57551
|
+
|
|
57219
57552
|
/**
|
|
57220
57553
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
57221
57554
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -57243,6 +57576,18 @@ function getAllKeys(object) {
|
|
|
57243
57576
|
return baseGetAllKeys(object, keys$1, getSymbols$1);
|
|
57244
57577
|
}
|
|
57245
57578
|
|
|
57579
|
+
/**
|
|
57580
|
+
* Creates an array of own and inherited enumerable property names and
|
|
57581
|
+
* symbols of `object`.
|
|
57582
|
+
*
|
|
57583
|
+
* @private
|
|
57584
|
+
* @param {Object} object The object to query.
|
|
57585
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
57586
|
+
*/
|
|
57587
|
+
function getAllKeysIn(object) {
|
|
57588
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn$1);
|
|
57589
|
+
}
|
|
57590
|
+
|
|
57246
57591
|
/* Built-in method references that are verified to be native. */
|
|
57247
57592
|
var DataView = getNative(root$1, 'DataView');
|
|
57248
57593
|
|
|
@@ -57259,13 +57604,13 @@ var Set$1 = getNative(root$1, 'Set');
|
|
|
57259
57604
|
const Set$2 = Set$1;
|
|
57260
57605
|
|
|
57261
57606
|
/** `Object#toString` result references. */
|
|
57262
|
-
var mapTag$
|
|
57263
|
-
objectTag$
|
|
57607
|
+
var mapTag$4 = '[object Map]',
|
|
57608
|
+
objectTag$2 = '[object Object]',
|
|
57264
57609
|
promiseTag = '[object Promise]',
|
|
57265
|
-
setTag$
|
|
57266
|
-
weakMapTag = '[object WeakMap]';
|
|
57610
|
+
setTag$4 = '[object Set]',
|
|
57611
|
+
weakMapTag$1 = '[object WeakMap]';
|
|
57267
57612
|
|
|
57268
|
-
var dataViewTag$
|
|
57613
|
+
var dataViewTag$3 = '[object DataView]';
|
|
57269
57614
|
|
|
57270
57615
|
/** Used to detect maps, sets, and weakmaps. */
|
|
57271
57616
|
var dataViewCtorString = toSource(DataView$1),
|
|
@@ -57284,23 +57629,23 @@ var dataViewCtorString = toSource(DataView$1),
|
|
|
57284
57629
|
var getTag = baseGetTag;
|
|
57285
57630
|
|
|
57286
57631
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
57287
|
-
if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$
|
|
57288
|
-
(Map$2 && getTag(new Map$2) != mapTag$
|
|
57632
|
+
if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3) ||
|
|
57633
|
+
(Map$2 && getTag(new Map$2) != mapTag$4) ||
|
|
57289
57634
|
(Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
|
|
57290
|
-
(Set$2 && getTag(new Set$2) != setTag$
|
|
57291
|
-
(WeakMap$2 && getTag(new WeakMap$2) != weakMapTag)) {
|
|
57635
|
+
(Set$2 && getTag(new Set$2) != setTag$4) ||
|
|
57636
|
+
(WeakMap$2 && getTag(new WeakMap$2) != weakMapTag$1)) {
|
|
57292
57637
|
getTag = function(value) {
|
|
57293
57638
|
var result = baseGetTag(value),
|
|
57294
|
-
Ctor = result == objectTag$
|
|
57639
|
+
Ctor = result == objectTag$2 ? value.constructor : undefined,
|
|
57295
57640
|
ctorString = Ctor ? toSource(Ctor) : '';
|
|
57296
57641
|
|
|
57297
57642
|
if (ctorString) {
|
|
57298
57643
|
switch (ctorString) {
|
|
57299
|
-
case dataViewCtorString: return dataViewTag$
|
|
57300
|
-
case mapCtorString: return mapTag$
|
|
57644
|
+
case dataViewCtorString: return dataViewTag$3;
|
|
57645
|
+
case mapCtorString: return mapTag$4;
|
|
57301
57646
|
case promiseCtorString: return promiseTag;
|
|
57302
|
-
case setCtorString: return setTag$
|
|
57303
|
-
case weakMapCtorString: return weakMapTag;
|
|
57647
|
+
case setCtorString: return setTag$4;
|
|
57648
|
+
case weakMapCtorString: return weakMapTag$1;
|
|
57304
57649
|
}
|
|
57305
57650
|
}
|
|
57306
57651
|
return result;
|
|
@@ -57309,11 +57654,433 @@ if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$1)
|
|
|
57309
57654
|
|
|
57310
57655
|
const getTag$1 = getTag;
|
|
57311
57656
|
|
|
57657
|
+
/** Used for built-in method references. */
|
|
57658
|
+
var objectProto$2 = Object.prototype;
|
|
57659
|
+
|
|
57660
|
+
/** Used to check objects for own properties. */
|
|
57661
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
57662
|
+
|
|
57663
|
+
/**
|
|
57664
|
+
* Initializes an array clone.
|
|
57665
|
+
*
|
|
57666
|
+
* @private
|
|
57667
|
+
* @param {Array} array The array to clone.
|
|
57668
|
+
* @returns {Array} Returns the initialized clone.
|
|
57669
|
+
*/
|
|
57670
|
+
function initCloneArray(array) {
|
|
57671
|
+
var length = array.length,
|
|
57672
|
+
result = new array.constructor(length);
|
|
57673
|
+
|
|
57674
|
+
// Add properties assigned by `RegExp#exec`.
|
|
57675
|
+
if (length && typeof array[0] == 'string' && hasOwnProperty$2.call(array, 'index')) {
|
|
57676
|
+
result.index = array.index;
|
|
57677
|
+
result.input = array.input;
|
|
57678
|
+
}
|
|
57679
|
+
return result;
|
|
57680
|
+
}
|
|
57681
|
+
|
|
57312
57682
|
/** Built-in value references. */
|
|
57313
57683
|
var Uint8Array = root$1.Uint8Array;
|
|
57314
57684
|
|
|
57315
57685
|
const Uint8Array$1 = Uint8Array;
|
|
57316
57686
|
|
|
57687
|
+
/**
|
|
57688
|
+
* Creates a clone of `arrayBuffer`.
|
|
57689
|
+
*
|
|
57690
|
+
* @private
|
|
57691
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
57692
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
57693
|
+
*/
|
|
57694
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
57695
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
57696
|
+
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
57697
|
+
return result;
|
|
57698
|
+
}
|
|
57699
|
+
|
|
57700
|
+
/**
|
|
57701
|
+
* Creates a clone of `dataView`.
|
|
57702
|
+
*
|
|
57703
|
+
* @private
|
|
57704
|
+
* @param {Object} dataView The data view to clone.
|
|
57705
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
57706
|
+
* @returns {Object} Returns the cloned data view.
|
|
57707
|
+
*/
|
|
57708
|
+
function cloneDataView(dataView, isDeep) {
|
|
57709
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
57710
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
57711
|
+
}
|
|
57712
|
+
|
|
57713
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
57714
|
+
var reFlags = /\w*$/;
|
|
57715
|
+
|
|
57716
|
+
/**
|
|
57717
|
+
* Creates a clone of `regexp`.
|
|
57718
|
+
*
|
|
57719
|
+
* @private
|
|
57720
|
+
* @param {Object} regexp The regexp to clone.
|
|
57721
|
+
* @returns {Object} Returns the cloned regexp.
|
|
57722
|
+
*/
|
|
57723
|
+
function cloneRegExp(regexp) {
|
|
57724
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
57725
|
+
result.lastIndex = regexp.lastIndex;
|
|
57726
|
+
return result;
|
|
57727
|
+
}
|
|
57728
|
+
|
|
57729
|
+
/** Used to convert symbols to primitives and strings. */
|
|
57730
|
+
var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : undefined,
|
|
57731
|
+
symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : undefined;
|
|
57732
|
+
|
|
57733
|
+
/**
|
|
57734
|
+
* Creates a clone of the `symbol` object.
|
|
57735
|
+
*
|
|
57736
|
+
* @private
|
|
57737
|
+
* @param {Object} symbol The symbol object to clone.
|
|
57738
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
57739
|
+
*/
|
|
57740
|
+
function cloneSymbol(symbol) {
|
|
57741
|
+
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
57742
|
+
}
|
|
57743
|
+
|
|
57744
|
+
/**
|
|
57745
|
+
* Creates a clone of `typedArray`.
|
|
57746
|
+
*
|
|
57747
|
+
* @private
|
|
57748
|
+
* @param {Object} typedArray The typed array to clone.
|
|
57749
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
57750
|
+
* @returns {Object} Returns the cloned typed array.
|
|
57751
|
+
*/
|
|
57752
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
57753
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
57754
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
57755
|
+
}
|
|
57756
|
+
|
|
57757
|
+
/** `Object#toString` result references. */
|
|
57758
|
+
var boolTag$2 = '[object Boolean]',
|
|
57759
|
+
dateTag$2 = '[object Date]',
|
|
57760
|
+
mapTag$3 = '[object Map]',
|
|
57761
|
+
numberTag$2 = '[object Number]',
|
|
57762
|
+
regexpTag$2 = '[object RegExp]',
|
|
57763
|
+
setTag$3 = '[object Set]',
|
|
57764
|
+
stringTag$2 = '[object String]',
|
|
57765
|
+
symbolTag$2 = '[object Symbol]';
|
|
57766
|
+
|
|
57767
|
+
var arrayBufferTag$2 = '[object ArrayBuffer]',
|
|
57768
|
+
dataViewTag$2 = '[object DataView]',
|
|
57769
|
+
float32Tag$1 = '[object Float32Array]',
|
|
57770
|
+
float64Tag$1 = '[object Float64Array]',
|
|
57771
|
+
int8Tag$1 = '[object Int8Array]',
|
|
57772
|
+
int16Tag$1 = '[object Int16Array]',
|
|
57773
|
+
int32Tag$1 = '[object Int32Array]',
|
|
57774
|
+
uint8Tag$1 = '[object Uint8Array]',
|
|
57775
|
+
uint8ClampedTag$1 = '[object Uint8ClampedArray]',
|
|
57776
|
+
uint16Tag$1 = '[object Uint16Array]',
|
|
57777
|
+
uint32Tag$1 = '[object Uint32Array]';
|
|
57778
|
+
|
|
57779
|
+
/**
|
|
57780
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
57781
|
+
*
|
|
57782
|
+
* **Note:** This function only supports cloning values with tags of
|
|
57783
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
57784
|
+
*
|
|
57785
|
+
* @private
|
|
57786
|
+
* @param {Object} object The object to clone.
|
|
57787
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
57788
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
57789
|
+
* @returns {Object} Returns the initialized clone.
|
|
57790
|
+
*/
|
|
57791
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
57792
|
+
var Ctor = object.constructor;
|
|
57793
|
+
switch (tag) {
|
|
57794
|
+
case arrayBufferTag$2:
|
|
57795
|
+
return cloneArrayBuffer(object);
|
|
57796
|
+
|
|
57797
|
+
case boolTag$2:
|
|
57798
|
+
case dateTag$2:
|
|
57799
|
+
return new Ctor(+object);
|
|
57800
|
+
|
|
57801
|
+
case dataViewTag$2:
|
|
57802
|
+
return cloneDataView(object, isDeep);
|
|
57803
|
+
|
|
57804
|
+
case float32Tag$1: case float64Tag$1:
|
|
57805
|
+
case int8Tag$1: case int16Tag$1: case int32Tag$1:
|
|
57806
|
+
case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
|
|
57807
|
+
return cloneTypedArray(object, isDeep);
|
|
57808
|
+
|
|
57809
|
+
case mapTag$3:
|
|
57810
|
+
return new Ctor;
|
|
57811
|
+
|
|
57812
|
+
case numberTag$2:
|
|
57813
|
+
case stringTag$2:
|
|
57814
|
+
return new Ctor(object);
|
|
57815
|
+
|
|
57816
|
+
case regexpTag$2:
|
|
57817
|
+
return cloneRegExp(object);
|
|
57818
|
+
|
|
57819
|
+
case setTag$3:
|
|
57820
|
+
return new Ctor;
|
|
57821
|
+
|
|
57822
|
+
case symbolTag$2:
|
|
57823
|
+
return cloneSymbol(object);
|
|
57824
|
+
}
|
|
57825
|
+
}
|
|
57826
|
+
|
|
57827
|
+
/**
|
|
57828
|
+
* Initializes an object clone.
|
|
57829
|
+
*
|
|
57830
|
+
* @private
|
|
57831
|
+
* @param {Object} object The object to clone.
|
|
57832
|
+
* @returns {Object} Returns the initialized clone.
|
|
57833
|
+
*/
|
|
57834
|
+
function initCloneObject(object) {
|
|
57835
|
+
return (typeof object.constructor == 'function' && !isPrototype(object))
|
|
57836
|
+
? baseCreate$1(getPrototype$1(object))
|
|
57837
|
+
: {};
|
|
57838
|
+
}
|
|
57839
|
+
|
|
57840
|
+
/** `Object#toString` result references. */
|
|
57841
|
+
var mapTag$2 = '[object Map]';
|
|
57842
|
+
|
|
57843
|
+
/**
|
|
57844
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
57845
|
+
*
|
|
57846
|
+
* @private
|
|
57847
|
+
* @param {*} value The value to check.
|
|
57848
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
57849
|
+
*/
|
|
57850
|
+
function baseIsMap(value) {
|
|
57851
|
+
return isObjectLike(value) && getTag$1(value) == mapTag$2;
|
|
57852
|
+
}
|
|
57853
|
+
|
|
57854
|
+
/* Node.js helper references. */
|
|
57855
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
57856
|
+
|
|
57857
|
+
/**
|
|
57858
|
+
* Checks if `value` is classified as a `Map` object.
|
|
57859
|
+
*
|
|
57860
|
+
* @static
|
|
57861
|
+
* @memberOf _
|
|
57862
|
+
* @since 4.3.0
|
|
57863
|
+
* @category Lang
|
|
57864
|
+
* @param {*} value The value to check.
|
|
57865
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
57866
|
+
* @example
|
|
57867
|
+
*
|
|
57868
|
+
* _.isMap(new Map);
|
|
57869
|
+
* // => true
|
|
57870
|
+
*
|
|
57871
|
+
* _.isMap(new WeakMap);
|
|
57872
|
+
* // => false
|
|
57873
|
+
*/
|
|
57874
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
57875
|
+
|
|
57876
|
+
const isMap$1 = isMap;
|
|
57877
|
+
|
|
57878
|
+
/** `Object#toString` result references. */
|
|
57879
|
+
var setTag$2 = '[object Set]';
|
|
57880
|
+
|
|
57881
|
+
/**
|
|
57882
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
57883
|
+
*
|
|
57884
|
+
* @private
|
|
57885
|
+
* @param {*} value The value to check.
|
|
57886
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
57887
|
+
*/
|
|
57888
|
+
function baseIsSet(value) {
|
|
57889
|
+
return isObjectLike(value) && getTag$1(value) == setTag$2;
|
|
57890
|
+
}
|
|
57891
|
+
|
|
57892
|
+
/* Node.js helper references. */
|
|
57893
|
+
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
|
|
57894
|
+
|
|
57895
|
+
/**
|
|
57896
|
+
* Checks if `value` is classified as a `Set` object.
|
|
57897
|
+
*
|
|
57898
|
+
* @static
|
|
57899
|
+
* @memberOf _
|
|
57900
|
+
* @since 4.3.0
|
|
57901
|
+
* @category Lang
|
|
57902
|
+
* @param {*} value The value to check.
|
|
57903
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
57904
|
+
* @example
|
|
57905
|
+
*
|
|
57906
|
+
* _.isSet(new Set);
|
|
57907
|
+
* // => true
|
|
57908
|
+
*
|
|
57909
|
+
* _.isSet(new WeakSet);
|
|
57910
|
+
* // => false
|
|
57911
|
+
*/
|
|
57912
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
57913
|
+
|
|
57914
|
+
const isSet$1 = isSet;
|
|
57915
|
+
|
|
57916
|
+
/** Used to compose bitmasks for cloning. */
|
|
57917
|
+
var CLONE_DEEP_FLAG$1 = 1,
|
|
57918
|
+
CLONE_FLAT_FLAG = 2,
|
|
57919
|
+
CLONE_SYMBOLS_FLAG$1 = 4;
|
|
57920
|
+
|
|
57921
|
+
/** `Object#toString` result references. */
|
|
57922
|
+
var argsTag$1 = '[object Arguments]',
|
|
57923
|
+
arrayTag$1 = '[object Array]',
|
|
57924
|
+
boolTag$1 = '[object Boolean]',
|
|
57925
|
+
dateTag$1 = '[object Date]',
|
|
57926
|
+
errorTag$1 = '[object Error]',
|
|
57927
|
+
funcTag = '[object Function]',
|
|
57928
|
+
genTag = '[object GeneratorFunction]',
|
|
57929
|
+
mapTag$1 = '[object Map]',
|
|
57930
|
+
numberTag$1 = '[object Number]',
|
|
57931
|
+
objectTag$1 = '[object Object]',
|
|
57932
|
+
regexpTag$1 = '[object RegExp]',
|
|
57933
|
+
setTag$1 = '[object Set]',
|
|
57934
|
+
stringTag$1 = '[object String]',
|
|
57935
|
+
symbolTag$1 = '[object Symbol]',
|
|
57936
|
+
weakMapTag = '[object WeakMap]';
|
|
57937
|
+
|
|
57938
|
+
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
57939
|
+
dataViewTag$1 = '[object DataView]',
|
|
57940
|
+
float32Tag = '[object Float32Array]',
|
|
57941
|
+
float64Tag = '[object Float64Array]',
|
|
57942
|
+
int8Tag = '[object Int8Array]',
|
|
57943
|
+
int16Tag = '[object Int16Array]',
|
|
57944
|
+
int32Tag = '[object Int32Array]',
|
|
57945
|
+
uint8Tag = '[object Uint8Array]',
|
|
57946
|
+
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
57947
|
+
uint16Tag = '[object Uint16Array]',
|
|
57948
|
+
uint32Tag = '[object Uint32Array]';
|
|
57949
|
+
|
|
57950
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
57951
|
+
var cloneableTags = {};
|
|
57952
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] =
|
|
57953
|
+
cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] =
|
|
57954
|
+
cloneableTags[boolTag$1] = cloneableTags[dateTag$1] =
|
|
57955
|
+
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
|
57956
|
+
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
|
57957
|
+
cloneableTags[int32Tag] = cloneableTags[mapTag$1] =
|
|
57958
|
+
cloneableTags[numberTag$1] = cloneableTags[objectTag$1] =
|
|
57959
|
+
cloneableTags[regexpTag$1] = cloneableTags[setTag$1] =
|
|
57960
|
+
cloneableTags[stringTag$1] = cloneableTags[symbolTag$1] =
|
|
57961
|
+
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
|
57962
|
+
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
57963
|
+
cloneableTags[errorTag$1] = cloneableTags[funcTag] =
|
|
57964
|
+
cloneableTags[weakMapTag] = false;
|
|
57965
|
+
|
|
57966
|
+
/**
|
|
57967
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
57968
|
+
* traversed objects.
|
|
57969
|
+
*
|
|
57970
|
+
* @private
|
|
57971
|
+
* @param {*} value The value to clone.
|
|
57972
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
57973
|
+
* 1 - Deep clone
|
|
57974
|
+
* 2 - Flatten inherited properties
|
|
57975
|
+
* 4 - Clone symbols
|
|
57976
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
57977
|
+
* @param {string} [key] The key of `value`.
|
|
57978
|
+
* @param {Object} [object] The parent object of `value`.
|
|
57979
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
57980
|
+
* @returns {*} Returns the cloned value.
|
|
57981
|
+
*/
|
|
57982
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
57983
|
+
var result,
|
|
57984
|
+
isDeep = bitmask & CLONE_DEEP_FLAG$1,
|
|
57985
|
+
isFlat = bitmask & CLONE_FLAT_FLAG,
|
|
57986
|
+
isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
57987
|
+
|
|
57988
|
+
if (customizer) {
|
|
57989
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
57990
|
+
}
|
|
57991
|
+
if (result !== undefined) {
|
|
57992
|
+
return result;
|
|
57993
|
+
}
|
|
57994
|
+
if (!isObject$6(value)) {
|
|
57995
|
+
return value;
|
|
57996
|
+
}
|
|
57997
|
+
var isArr = isArray$2(value);
|
|
57998
|
+
if (isArr) {
|
|
57999
|
+
result = initCloneArray(value);
|
|
58000
|
+
if (!isDeep) {
|
|
58001
|
+
return copyArray(value, result);
|
|
58002
|
+
}
|
|
58003
|
+
} else {
|
|
58004
|
+
var tag = getTag$1(value),
|
|
58005
|
+
isFunc = tag == funcTag || tag == genTag;
|
|
58006
|
+
|
|
58007
|
+
if (isBuffer$1(value)) {
|
|
58008
|
+
return cloneBuffer(value, isDeep);
|
|
58009
|
+
}
|
|
58010
|
+
if (tag == objectTag$1 || tag == argsTag$1 || (isFunc && !object)) {
|
|
58011
|
+
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
|
58012
|
+
if (!isDeep) {
|
|
58013
|
+
return isFlat
|
|
58014
|
+
? copySymbolsIn(value, baseAssignIn(result, value))
|
|
58015
|
+
: copySymbols(value, baseAssign(result, value));
|
|
58016
|
+
}
|
|
58017
|
+
} else {
|
|
58018
|
+
if (!cloneableTags[tag]) {
|
|
58019
|
+
return object ? value : {};
|
|
58020
|
+
}
|
|
58021
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
58022
|
+
}
|
|
58023
|
+
}
|
|
58024
|
+
// Check for circular references and return its corresponding clone.
|
|
58025
|
+
stack || (stack = new Stack);
|
|
58026
|
+
var stacked = stack.get(value);
|
|
58027
|
+
if (stacked) {
|
|
58028
|
+
return stacked;
|
|
58029
|
+
}
|
|
58030
|
+
stack.set(value, result);
|
|
58031
|
+
|
|
58032
|
+
if (isSet$1(value)) {
|
|
58033
|
+
value.forEach(function(subValue) {
|
|
58034
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
58035
|
+
});
|
|
58036
|
+
} else if (isMap$1(value)) {
|
|
58037
|
+
value.forEach(function(subValue, key) {
|
|
58038
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
58039
|
+
});
|
|
58040
|
+
}
|
|
58041
|
+
|
|
58042
|
+
var keysFunc = isFull
|
|
58043
|
+
? (isFlat ? getAllKeysIn : getAllKeys)
|
|
58044
|
+
: (isFlat ? keysIn : keys$1);
|
|
58045
|
+
|
|
58046
|
+
var props = isArr ? undefined : keysFunc(value);
|
|
58047
|
+
arrayEach(props || value, function(subValue, key) {
|
|
58048
|
+
if (props) {
|
|
58049
|
+
key = subValue;
|
|
58050
|
+
subValue = value[key];
|
|
58051
|
+
}
|
|
58052
|
+
// Recursively populate clone (susceptible to call stack limits).
|
|
58053
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
58054
|
+
});
|
|
58055
|
+
return result;
|
|
58056
|
+
}
|
|
58057
|
+
|
|
58058
|
+
/** Used to compose bitmasks for cloning. */
|
|
58059
|
+
var CLONE_DEEP_FLAG = 1,
|
|
58060
|
+
CLONE_SYMBOLS_FLAG = 4;
|
|
58061
|
+
|
|
58062
|
+
/**
|
|
58063
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
58064
|
+
*
|
|
58065
|
+
* @static
|
|
58066
|
+
* @memberOf _
|
|
58067
|
+
* @since 1.0.0
|
|
58068
|
+
* @category Lang
|
|
58069
|
+
* @param {*} value The value to recursively clone.
|
|
58070
|
+
* @returns {*} Returns the deep cloned value.
|
|
58071
|
+
* @see _.clone
|
|
58072
|
+
* @example
|
|
58073
|
+
*
|
|
58074
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
58075
|
+
*
|
|
58076
|
+
* var deep = _.cloneDeep(objects);
|
|
58077
|
+
* console.log(deep[0] === objects[0]);
|
|
58078
|
+
* // => false
|
|
58079
|
+
*/
|
|
58080
|
+
function cloneDeep(value) {
|
|
58081
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
58082
|
+
}
|
|
58083
|
+
|
|
57317
58084
|
/** Used to stand-in for `undefined` hash values. */
|
|
57318
58085
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
57319
58086
|
|
|
@@ -58706,7 +59473,7 @@ function remove$1(array, predicate) {
|
|
|
58706
59473
|
const notificationsClient = new PushNotificationClient();
|
|
58707
59474
|
const notifications = ref([]);
|
|
58708
59475
|
const popupNotifications = ref([]);
|
|
58709
|
-
const index$
|
|
59476
|
+
const index$9 = () => {
|
|
58710
59477
|
const { getAccessToken } = useUser();
|
|
58711
59478
|
async function loadFromHistory(take = 10) {
|
|
58712
59479
|
const token = await getAccessToken();
|
|
@@ -58789,7 +59556,7 @@ const uiSettings = ref({
|
|
|
58789
59556
|
logo: void 0,
|
|
58790
59557
|
title: void 0
|
|
58791
59558
|
});
|
|
58792
|
-
const index$
|
|
59559
|
+
const index$8 = () => {
|
|
58793
59560
|
const { getAccessToken } = useUser();
|
|
58794
59561
|
async function getApiClient() {
|
|
58795
59562
|
const client = new SettingClient();
|
|
@@ -58849,47 +59616,6 @@ const usePermissions = () => {
|
|
|
58849
59616
|
};
|
|
58850
59617
|
};
|
|
58851
59618
|
|
|
58852
|
-
const index$8 = (data, modified, defaultName) => {
|
|
58853
|
-
const rawValue = computed(() => isRef(data) ? unref(data) : data);
|
|
58854
|
-
const isModified = computed(() => isRef(modified) ? unref(modified) : modified);
|
|
58855
|
-
const savedValue = ref();
|
|
58856
|
-
const isSaving = ref(false);
|
|
58857
|
-
watch(isModified, () => {
|
|
58858
|
-
if (isModified.value) {
|
|
58859
|
-
isSaving.value = true;
|
|
58860
|
-
} else {
|
|
58861
|
-
isSaving.value = false;
|
|
58862
|
-
resetAutosaved();
|
|
58863
|
-
}
|
|
58864
|
-
});
|
|
58865
|
-
watch(
|
|
58866
|
-
[rawValue, isSaving],
|
|
58867
|
-
() => {
|
|
58868
|
-
if (isSaving.value) {
|
|
58869
|
-
saveToStorage();
|
|
58870
|
-
}
|
|
58871
|
-
},
|
|
58872
|
-
{ deep: true }
|
|
58873
|
-
);
|
|
58874
|
-
function saveToStorage() {
|
|
58875
|
-
localStorage.setItem(defaultName, JSON.stringify(rawValue.value));
|
|
58876
|
-
}
|
|
58877
|
-
function loadAutosaved() {
|
|
58878
|
-
const savedData = JSON.parse(localStorage.getItem(defaultName));
|
|
58879
|
-
if (savedData) {
|
|
58880
|
-
savedValue.value = savedData;
|
|
58881
|
-
}
|
|
58882
|
-
}
|
|
58883
|
-
function resetAutosaved() {
|
|
58884
|
-
localStorage.removeItem(defaultName);
|
|
58885
|
-
}
|
|
58886
|
-
return {
|
|
58887
|
-
savedValue: computed(() => savedValue.value),
|
|
58888
|
-
loadAutosaved,
|
|
58889
|
-
resetAutosaved
|
|
58890
|
-
};
|
|
58891
|
-
};
|
|
58892
|
-
|
|
58893
59619
|
function useAsync(innerAction) {
|
|
58894
59620
|
const loading = ref(false);
|
|
58895
59621
|
async function action(payload) {
|
|
@@ -59253,7 +59979,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
59253
59979
|
} : void 0
|
|
59254
59980
|
]), 1032, ["required"])) : createCommentVNode("", true),
|
|
59255
59981
|
createVNode(unref(QuillEditor), {
|
|
59256
|
-
class: "quill-editor tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-b-[var(--editor-border-radius)] tw-h-[200px]",
|
|
59982
|
+
class: normalizeClass(["quill-editor tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-b-[var(--editor-border-radius)] tw-h-[200px]", { "tw-bg-[#fafafa] tw-text-[#424242] tw-cursor-default": __props.disabled }]),
|
|
59257
59983
|
content: content.value,
|
|
59258
59984
|
"onUpdate:content": [
|
|
59259
59985
|
_cache[0] || (_cache[0] = ($event) => content.value = $event),
|
|
@@ -59264,7 +59990,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
59264
59990
|
modules,
|
|
59265
59991
|
"content-type": "html",
|
|
59266
59992
|
"read-only": __props.disabled
|
|
59267
|
-
}, null, 8, ["content", "read-only"]),
|
|
59993
|
+
}, null, 8, ["class", "content", "read-only"]),
|
|
59268
59994
|
__props.errorMessage ? renderSlot(_ctx.$slots, "error", { key: 1 }, () => [
|
|
59269
59995
|
createVNode(_component_VcHint, { class: "vc-editor__error !tw-text-[color:var(--editor-border-color-error)] tw-mt-1" }, {
|
|
59270
59996
|
default: withCtx(() => [
|
|
@@ -59298,8 +60024,8 @@ const VcForm = _Form;
|
|
|
59298
60024
|
const _hoisted_1$u = { class: "tw-flex tw-flex-col tw-flex-1" };
|
|
59299
60025
|
const _hoisted_2$s = ["onDrop", "onDragover", "onDragleave"];
|
|
59300
60026
|
const _hoisted_3$o = { class: "tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4" };
|
|
59301
|
-
const _hoisted_4$
|
|
59302
|
-
const _hoisted_5$
|
|
60027
|
+
const _hoisted_4$g = /* @__PURE__ */ createElementVNode("span", null, "Drag and drop file here or", -1);
|
|
60028
|
+
const _hoisted_5$d = /* @__PURE__ */ createElementVNode("br", null, null, -1);
|
|
59303
60029
|
const _hoisted_6$a = ["accept", "multiple", "name"];
|
|
59304
60030
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
59305
60031
|
__name: "vc-file-upload",
|
|
@@ -59382,9 +60108,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
59382
60108
|
size: "xxl"
|
|
59383
60109
|
}),
|
|
59384
60110
|
createElementVNode("div", _hoisted_3$o, [
|
|
59385
|
-
_hoisted_4$
|
|
60111
|
+
_hoisted_4$g,
|
|
59386
60112
|
createTextVNode(" "),
|
|
59387
|
-
_hoisted_5$
|
|
60113
|
+
_hoisted_5$d,
|
|
59388
60114
|
createVNode(_component_VcLink, { onClick: toggleUploader }, {
|
|
59389
60115
|
default: withCtx(() => [
|
|
59390
60116
|
createTextVNode("browse your files")
|
|
@@ -59426,8 +60152,8 @@ const _hoisted_3$n = {
|
|
|
59426
60152
|
key: 0,
|
|
59427
60153
|
class: "tw-flex tw-items-center tw-flex-nowrap tw-pr-3"
|
|
59428
60154
|
};
|
|
59429
|
-
const _hoisted_4$
|
|
59430
|
-
const _hoisted_5$
|
|
60155
|
+
const _hoisted_4$f = { class: "tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-relative" };
|
|
60156
|
+
const _hoisted_5$c = { class: "vc-input__field-wrapper" };
|
|
59431
60157
|
const _hoisted_6$9 = { class: "tw-flex tw-flex-nowrap tw-flex-auto tw-h-full" };
|
|
59432
60158
|
const _hoisted_7$8 = {
|
|
59433
60159
|
key: 0,
|
|
@@ -59561,8 +60287,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
59561
60287
|
_ctx.$slots["prepend"] ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
|
|
59562
60288
|
renderSlot(_ctx.$slots, "prepend")
|
|
59563
60289
|
])) : createCommentVNode("", true),
|
|
59564
|
-
createElementVNode("div", _hoisted_4$
|
|
59565
|
-
createElementVNode("div", _hoisted_5$
|
|
60290
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
60291
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
59566
60292
|
createElementVNode("div", _hoisted_6$9, [
|
|
59567
60293
|
_ctx.$slots["prepend-inner"] ? (openBlock(), createElementBlock("div", _hoisted_7$8, [
|
|
59568
60294
|
renderSlot(_ctx.$slots, "prepend-inner")
|
|
@@ -60556,7 +61282,7 @@ const VcPagination = _sfc_main$t;
|
|
|
60556
61282
|
const _hoisted_1$p = { class: "vc-rating" };
|
|
60557
61283
|
const _hoisted_2$o = ["innerHTML"];
|
|
60558
61284
|
const _hoisted_3$m = { class: "vc-rating__rating" };
|
|
60559
|
-
const _hoisted_4$
|
|
61285
|
+
const _hoisted_4$e = {
|
|
60560
61286
|
key: 2,
|
|
60561
61287
|
class: "vc-rating__placeholder"
|
|
60562
61288
|
};
|
|
@@ -60615,7 +61341,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
60615
61341
|
createElementVNode("span", _hoisted_3$m, toDisplayString$1(__props.rating) + "/" + toDisplayString$1(__props.max), 1),
|
|
60616
61342
|
renderSlot(_ctx.$slots, "details")
|
|
60617
61343
|
], 64))
|
|
60618
|
-
], 64)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
61344
|
+
], 64)) : (openBlock(), createElementBlock("span", _hoisted_4$e))
|
|
60619
61345
|
]);
|
|
60620
61346
|
};
|
|
60621
61347
|
}
|
|
@@ -61421,11 +62147,11 @@ function useFloating(reference, floating, options) {
|
|
|
61421
62147
|
const _hoisted_1$o = ["innerHTML"];
|
|
61422
62148
|
const _hoisted_2$n = { class: "tw-flex tw-flex-nowrap tw-items-start tw-relative" };
|
|
61423
62149
|
const _hoisted_3$l = { class: "tw-relative tw-flex tw-flex-auto tw-text-left tw-max-w-full" };
|
|
61424
|
-
const _hoisted_4$
|
|
62150
|
+
const _hoisted_4$d = {
|
|
61425
62151
|
key: 0,
|
|
61426
62152
|
class: "tw-flex tw-items-center tw-flex-nowrap tw-pr-3"
|
|
61427
62153
|
};
|
|
61428
|
-
const _hoisted_5$
|
|
62154
|
+
const _hoisted_5$b = { class: "tw-relative tw-flex tw-flex-auto tw-overflow-x-clip" };
|
|
61429
62155
|
const _hoisted_6$8 = { class: "tw-truncate vc-select__field-wrapper tw-relative tw-box-border tw-border tw-border-solid tw-border-[color:var(--select-border-color)] tw-rounded-[var(--select-border-radius)] tw-bg-[color:var(--select-background-color)] tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-items-stretch" };
|
|
61430
62156
|
const _hoisted_7$7 = { class: "tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-relative" };
|
|
61431
62157
|
const _hoisted_8$5 = { class: "tw-flex tw-flex-nowrap tw-flex-auto tw-h-full tw-px-3" };
|
|
@@ -61500,6 +62226,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61500
62226
|
options: { type: [Function, Array], default: () => [] },
|
|
61501
62227
|
optionValue: { type: [Function, String, null], default: "id" },
|
|
61502
62228
|
optionLabel: { type: [Function, String, null], default: "title" },
|
|
62229
|
+
displayValue: null,
|
|
62230
|
+
displayLabel: null,
|
|
61503
62231
|
emitValue: { type: Boolean, default: true },
|
|
61504
62232
|
debounce: { default: 500 },
|
|
61505
62233
|
placeholder: { default: "Click to select..." },
|
|
@@ -61625,8 +62353,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61625
62353
|
const hasNextPage = computed(() => {
|
|
61626
62354
|
return optionsList.value.length < totalItems.value;
|
|
61627
62355
|
});
|
|
61628
|
-
const getOptionValue = computed(() => getPropValueFn(props.optionValue, "
|
|
61629
|
-
const getOptionLabel = computed(() => getPropValueFn(props.optionLabel, "
|
|
62356
|
+
const getOptionValue = computed(() => getPropValueFn(props.optionValue, "id"));
|
|
62357
|
+
const getOptionLabel = computed(() => getPropValueFn(props.optionLabel, "title"));
|
|
62358
|
+
const getDisplayValue = computed(() => getPropValueFn(props.displayValue, "id"));
|
|
62359
|
+
const getDisplayLabel = computed(() => getPropValueFn(props.displayLabel, "title"));
|
|
61630
62360
|
const innerValue = computed(() => {
|
|
61631
62361
|
const mapNull = props.mapOptions === true && props.multiple !== true;
|
|
61632
62362
|
const val = props.modelValue !== void 0 && (props.modelValue !== null || mapNull === true) ? props.multiple === true && Array.isArray(props.modelValue) ? props.modelValue : [props.modelValue] : [];
|
|
@@ -61654,14 +62384,16 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61654
62384
|
}));
|
|
61655
62385
|
});
|
|
61656
62386
|
const hasValue = computed(() => fieldValueIsFilled(innerValue.value));
|
|
61657
|
-
const innerOptionsValue = computed(
|
|
62387
|
+
const innerOptionsValue = computed(
|
|
62388
|
+
() => innerValue.value.map((opt) => getOptionValue.value(opt) || getDisplayValue.value(opt))
|
|
62389
|
+
);
|
|
61658
62390
|
const optionScope = computed(() => {
|
|
61659
62391
|
return optionsTemp.value.map((opt, i) => {
|
|
61660
62392
|
return {
|
|
61661
62393
|
index: i,
|
|
61662
62394
|
opt,
|
|
61663
62395
|
selected: isOptionSelected(opt) === true,
|
|
61664
|
-
label: getOptionLabel.value(opt),
|
|
62396
|
+
label: getOptionLabel.value(opt) || getDisplayLabel.value(opt),
|
|
61665
62397
|
toggleOption
|
|
61666
62398
|
};
|
|
61667
62399
|
});
|
|
@@ -61678,7 +62410,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61678
62410
|
return typeof val === "function" ? val : (opt) => opt !== null && typeof opt === "object" && val in opt ? opt[val] : opt;
|
|
61679
62411
|
}
|
|
61680
62412
|
function getOption(value, valueCache) {
|
|
61681
|
-
const fn = (opt) => isEqual$1(getOptionValue.value(opt), value);
|
|
62413
|
+
const fn = (opt) => isEqual$1(getOptionValue.value(opt), value) || isEqual$1(getDisplayValue.value(opt), value);
|
|
61682
62414
|
return defaultValue.value.find(fn) || optionsList.value.find(fn) || valueCache.find(fn) || value;
|
|
61683
62415
|
}
|
|
61684
62416
|
function fieldValueIsFilled(val) {
|
|
@@ -61699,7 +62431,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61699
62431
|
}
|
|
61700
62432
|
}
|
|
61701
62433
|
function isOptionSelected(opt) {
|
|
61702
|
-
const val = getOptionValue.value(opt);
|
|
62434
|
+
const val = getOptionValue.value(opt) || getDisplayValue.value(opt);
|
|
61703
62435
|
return innerOptionsValue.value.find((v) => isEqual$1(v, val)) !== void 0;
|
|
61704
62436
|
}
|
|
61705
62437
|
function closeDropdown() {
|
|
@@ -61761,7 +62493,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61761
62493
|
if (opt === void 0) {
|
|
61762
62494
|
return;
|
|
61763
62495
|
}
|
|
61764
|
-
const optValue = getOptionValue.value(opt);
|
|
62496
|
+
const optValue = getOptionValue.value(opt) || getDisplayValue.value(opt);
|
|
61765
62497
|
if (props.multiple !== true) {
|
|
61766
62498
|
if (innerValue.value.length === 0 || isEqual$1(getOptionValue.value(innerValue.value[0]), optValue) !== true) {
|
|
61767
62499
|
emit("update:modelValue", props.emitValue === true ? optValue : opt);
|
|
@@ -61823,6 +62555,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61823
62555
|
}
|
|
61824
62556
|
}
|
|
61825
62557
|
function onReset() {
|
|
62558
|
+
if (props.multiple) {
|
|
62559
|
+
emit("update:modelValue", []);
|
|
62560
|
+
return;
|
|
62561
|
+
}
|
|
61826
62562
|
emit("update:modelValue", null);
|
|
61827
62563
|
}
|
|
61828
62564
|
return (_ctx, _cache) => {
|
|
@@ -61861,10 +62597,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61861
62597
|
}, [
|
|
61862
62598
|
renderSlot(_ctx.$slots, "control", { toggleHandler: toggleDropdown }, () => [
|
|
61863
62599
|
createElementVNode("div", _hoisted_3$l, [
|
|
61864
|
-
_ctx.$slots["prepend"] ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
62600
|
+
_ctx.$slots["prepend"] ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
|
|
61865
62601
|
renderSlot(_ctx.$slots, "prepend")
|
|
61866
62602
|
])) : createCommentVNode("", true),
|
|
61867
|
-
createElementVNode("div", _hoisted_5$
|
|
62603
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
61868
62604
|
createElementVNode("div", _hoisted_6$8, [
|
|
61869
62605
|
createElementVNode("div", _hoisted_7$7, [
|
|
61870
62606
|
createElementVNode("div", _hoisted_8$5, [
|
|
@@ -61887,7 +62623,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
61887
62623
|
class: "tw-flex tw-items-center"
|
|
61888
62624
|
}), [
|
|
61889
62625
|
__props.multiple ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
61890
|
-
createElementVNode("span", null, toDisplayString$1(unref(
|
|
62626
|
+
createElementVNode("span", null, toDisplayString$1(unref(getDisplayLabel)(item.opt)), 1),
|
|
61891
62627
|
!__props.disabled ? (openBlock(), createBlock(unref(VcIcon), {
|
|
61892
62628
|
key: 0,
|
|
61893
62629
|
class: "tw-text-[#a9bfd2] tw-ml-2 tw-cursor-pointer hover:tw-text-[color:var(--select-clear-color-hover)]",
|
|
@@ -68809,8 +69545,8 @@ const navigation_min = '';
|
|
|
68809
69545
|
const _hoisted_1$n = { class: "vc-slider tw-relative" };
|
|
68810
69546
|
const _hoisted_2$m = { class: "vc-slider__prev tw-left-0" };
|
|
68811
69547
|
const _hoisted_3$k = { class: "vc-slider__btn" };
|
|
68812
|
-
const _hoisted_4$
|
|
68813
|
-
const _hoisted_5$
|
|
69548
|
+
const _hoisted_4$c = { class: "vc-slider__next tw-right-0" };
|
|
69549
|
+
const _hoisted_5$a = { class: "vc-slider__btn" };
|
|
68814
69550
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
68815
69551
|
__name: "vc-slider",
|
|
68816
69552
|
props: {
|
|
@@ -68865,9 +69601,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
68865
69601
|
])
|
|
68866
69602
|
], true)
|
|
68867
69603
|
]),
|
|
68868
|
-
createElementVNode("div", _hoisted_4$
|
|
69604
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
68869
69605
|
renderSlot(_ctx.$slots, "nextBtn", {}, () => [
|
|
68870
|
-
createElementVNode("div", _hoisted_5$
|
|
69606
|
+
createElementVNode("div", _hoisted_5$a, [
|
|
68871
69607
|
createVNode(_component_VcIcon, { icon: "fas fa-chevron-right" })
|
|
68872
69608
|
])
|
|
68873
69609
|
], true)
|
|
@@ -68974,11 +69710,11 @@ const _hoisted_3$i = {
|
|
|
68974
69710
|
key: 0,
|
|
68975
69711
|
class: "tw-text-[color:var(--app-bar-product-name-color)] tw-text-[length:var(--app-bar-product-name-size)] tw-font-medium"
|
|
68976
69712
|
};
|
|
68977
|
-
const _hoisted_4$
|
|
69713
|
+
const _hoisted_4$b = {
|
|
68978
69714
|
key: 0,
|
|
68979
69715
|
class: "tw-overflow-ellipsis tw-overflow-hidden tw-whitespace-nowrap tw-text-2xl tw-leading-header tw-ml-2"
|
|
68980
69716
|
};
|
|
68981
|
-
const _hoisted_5$
|
|
69717
|
+
const _hoisted_5$9 = { class: "tw-ml-2 tw-text-lg" };
|
|
68982
69718
|
const _hoisted_6$7 = /* @__PURE__ */ createElementVNode("div", { class: "tw-grow tw-basis-0" }, null, -1);
|
|
68983
69719
|
const _hoisted_7$6 = { class: "tw-flex tw-h-full tw-box-border" };
|
|
68984
69720
|
const _hoisted_8$4 = ["title", "onClick"];
|
|
@@ -69006,7 +69742,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
69006
69742
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_3$i, toDisplayString$1(__props.title), 1)) : createCommentVNode("", true)
|
|
69007
69743
|
], 64)) : createCommentVNode("", true),
|
|
69008
69744
|
_ctx.$isMobile.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
69009
|
-
__props.blades.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
69745
|
+
__props.blades.length === 1 ? (openBlock(), createElementBlock("div", _hoisted_4$b, toDisplayString$1(__props.blades[0].title), 1)) : __props.blades.length > 1 ? (openBlock(), createBlock(_component_VcLink, {
|
|
69010
69746
|
key: 1,
|
|
69011
69747
|
class: "tw-ml-3",
|
|
69012
69748
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("backlink:click"))
|
|
@@ -69016,7 +69752,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
69016
69752
|
icon: "fas fa-chevron-left",
|
|
69017
69753
|
size: "s"
|
|
69018
69754
|
}),
|
|
69019
|
-
createElementVNode("span", _hoisted_5$
|
|
69755
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString$1(_ctx.$t("Back")), 1)
|
|
69020
69756
|
]),
|
|
69021
69757
|
_: 1
|
|
69022
69758
|
})) : createCommentVNode("", true)
|
|
@@ -69404,11 +70140,11 @@ const _hoisted_2$f = {
|
|
|
69404
70140
|
class: "tw-text-[color:var(--blade-header-icon-color)] tw-mr-3"
|
|
69405
70141
|
};
|
|
69406
70142
|
const _hoisted_3$f = { class: "tw-overflow-hidden tw-grow tw-basis-0" };
|
|
69407
|
-
const _hoisted_4$
|
|
70143
|
+
const _hoisted_4$a = {
|
|
69408
70144
|
key: 0,
|
|
69409
70145
|
class: "tw-text-[color:var(--blade-header-subtitle-color)] tw-text-xs tw-mt-1"
|
|
69410
70146
|
};
|
|
69411
|
-
const _hoisted_5$
|
|
70147
|
+
const _hoisted_5$8 = { key: 1 };
|
|
69412
70148
|
const _hoisted_6$6 = {
|
|
69413
70149
|
key: 2,
|
|
69414
70150
|
class: "tw-flex tw-items-center"
|
|
@@ -69455,9 +70191,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
69455
70191
|
"!tw-text-[length:var(--blade-header-title-font-size)] tw-font-medium": !__props.subtitle
|
|
69456
70192
|
}])
|
|
69457
70193
|
}, toDisplayString$1(__props.title), 3),
|
|
69458
|
-
__props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
70194
|
+
__props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_4$a, toDisplayString$1(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
69459
70195
|
]),
|
|
69460
|
-
_ctx.$slots["actions"] ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
70196
|
+
_ctx.$slots["actions"] ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
69461
70197
|
renderSlot(_ctx.$slots, "actions")
|
|
69462
70198
|
])) : createCommentVNode("", true),
|
|
69463
70199
|
!_ctx.$isMobile.value ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
@@ -71722,11 +72458,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
71722
72458
|
optionsGetter: null,
|
|
71723
72459
|
setter: null,
|
|
71724
72460
|
culture: { default: "en-US" },
|
|
71725
|
-
disabled: { type: Boolean }
|
|
72461
|
+
disabled: { type: Boolean },
|
|
72462
|
+
displayedValueLabel: null
|
|
71726
72463
|
},
|
|
71727
72464
|
setup(__props) {
|
|
71728
72465
|
const props = __props;
|
|
71729
|
-
const { locale, te, t } = useI18n();
|
|
72466
|
+
const { locale, te, t } = useI18n$1();
|
|
71730
72467
|
const rules = {};
|
|
71731
72468
|
const items = ref([]);
|
|
71732
72469
|
const handleDisplayProperty = computed(() => {
|
|
@@ -71831,10 +72568,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
71831
72568
|
disabled: __props.disabled,
|
|
71832
72569
|
"option-label": "alias",
|
|
71833
72570
|
"option-value": "id",
|
|
72571
|
+
"display-label": __props.displayedValueLabel.label,
|
|
72572
|
+
"display-value": __props.displayedValueLabel.value,
|
|
71834
72573
|
multiple: true,
|
|
71835
|
-
"emit-value": false
|
|
71836
|
-
|
|
71837
|
-
}), null, 16, ["error", "error-message", "label", "modelValue", "onUpdate:modelValue", "required", "disabled"])
|
|
72574
|
+
"emit-value": false
|
|
72575
|
+
}), null, 16, ["error", "error-message", "label", "modelValue", "onUpdate:modelValue", "required", "disabled", "display-label", "display-value"])
|
|
71838
72576
|
]),
|
|
71839
72577
|
_: 1
|
|
71840
72578
|
}, 8, ["name", "modelValue", "label"])) : __props.property.valueType === "ShortText" && __props.property.multivalue && (__props.property.dictionary || __props.property.isDictionary) ? (openBlock(), createBlock(unref(Field), {
|
|
@@ -71860,12 +72598,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
71860
72598
|
options: items.value,
|
|
71861
72599
|
"option-label": "alias",
|
|
71862
72600
|
"option-value": "id",
|
|
72601
|
+
"display-label": __props.displayedValueLabel.label,
|
|
72602
|
+
"display-value": __props.displayedValueLabel.value,
|
|
71863
72603
|
onSearch,
|
|
71864
72604
|
onClose,
|
|
71865
72605
|
multiple: __props.property.multivalue,
|
|
71866
|
-
"emit-value": false
|
|
71867
|
-
|
|
71868
|
-
}), null, 16, ["error", "error-message", "label", "modelValue", "onUpdate:modelValue", "required", "disabled", "options", "multiple"])
|
|
72606
|
+
"emit-value": false
|
|
72607
|
+
}), null, 16, ["error", "error-message", "label", "modelValue", "onUpdate:modelValue", "required", "disabled", "options", "display-label", "display-value", "multiple"])
|
|
71869
72608
|
]),
|
|
71870
72609
|
_: 1
|
|
71871
72610
|
}, 8, ["name", "label", "modelValue"])) : __props.property.valueType === "ShortText" ? (openBlock(), createBlock(unref(Field), {
|
|
@@ -71916,8 +72655,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
71916
72655
|
options: items.value,
|
|
71917
72656
|
"option-value": "id",
|
|
71918
72657
|
"option-label": unref(handleDisplayProperty),
|
|
72658
|
+
"display-label": __props.displayedValueLabel.label,
|
|
72659
|
+
"display-value": __props.displayedValueLabel.value,
|
|
71919
72660
|
multiple: ""
|
|
71920
|
-
}), null, 16, ["label", "modelValue", "onUpdate:modelValue", "required", "disabled", "error", "error-message", "options", "option-label"])
|
|
72661
|
+
}), null, 16, ["label", "modelValue", "onUpdate:modelValue", "required", "disabled", "error", "error-message", "options", "option-label", "display-label", "display-value"])
|
|
71921
72662
|
]),
|
|
71922
72663
|
_: 1
|
|
71923
72664
|
}, 8, ["name", "modelValue", "label"])) : __props.property.valueType === "Number" ? (openBlock(), createBlock(unref(Field), {
|
|
@@ -72076,8 +72817,8 @@ const VcDynamicProperty = _sfc_main$f;
|
|
|
72076
72817
|
const _hoisted_1$d = { class: "vc-gallery-item__overlay" };
|
|
72077
72818
|
const _hoisted_2$d = { class: "tw-flex" };
|
|
72078
72819
|
const _hoisted_3$d = ["title"];
|
|
72079
|
-
const _hoisted_4$
|
|
72080
|
-
const _hoisted_5$
|
|
72820
|
+
const _hoisted_4$9 = { class: "tw-flex tw-grow tw-basis-0 tw-items-center tw-justify-around" };
|
|
72821
|
+
const _hoisted_5$7 = /* @__PURE__ */ createElementVNode("div", { class: "tw-mt-2" }, "Fullscreen", -1);
|
|
72081
72822
|
const _hoisted_6$5 = /* @__PURE__ */ createElementVNode("div", { class: "tw-mt-2" }, "Edit", -1);
|
|
72082
72823
|
const _hoisted_7$5 = /* @__PURE__ */ createElementVNode("div", { class: "tw-mt-2" }, "Delete", -1);
|
|
72083
72824
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
@@ -72127,7 +72868,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
72127
72868
|
title: __props.image["name"]
|
|
72128
72869
|
}, toDisplayString$1(__props.image["name"]), 9, _hoisted_3$d)
|
|
72129
72870
|
]),
|
|
72130
|
-
createElementVNode("div", _hoisted_4$
|
|
72871
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
72131
72872
|
__props.actions && __props.actions.preview ? (openBlock(), createElementBlock("div", {
|
|
72132
72873
|
key: 0,
|
|
72133
72874
|
class: "vc-gallery-item__button",
|
|
@@ -72137,7 +72878,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
72137
72878
|
class: "vc-gallery-item__button-icon",
|
|
72138
72879
|
icon: "fas fa-eye"
|
|
72139
72880
|
}),
|
|
72140
|
-
_hoisted_5$
|
|
72881
|
+
_hoisted_5$7
|
|
72141
72882
|
])) : createCommentVNode("", true),
|
|
72142
72883
|
!__props.readonly && __props.actions && __props.actions.edit ? (openBlock(), createElementBlock("div", {
|
|
72143
72884
|
key: 1,
|
|
@@ -72175,7 +72916,7 @@ const vcGalleryItem_vue_vue_type_style_index_0_lang = '';
|
|
|
72175
72916
|
const _hoisted_1$c = /* @__PURE__ */ createElementVNode("span", null, ")", -1);
|
|
72176
72917
|
const _hoisted_2$c = { class: "tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center" };
|
|
72177
72918
|
const _hoisted_3$c = { class: "tw-box-border p-5 tw-grow tw-basis-0 tw-w-full" };
|
|
72178
|
-
const _hoisted_4$
|
|
72919
|
+
const _hoisted_4$8 = { class: "tw-p-4 tw-pb-[40px] tw-max-w-full tw-overflow-x-auto tw-box-border tw-shrink tw-flex" };
|
|
72179
72920
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
72180
72921
|
__name: "vc-gallery-preview",
|
|
72181
72922
|
props: {
|
|
@@ -72243,7 +72984,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
72243
72984
|
})
|
|
72244
72985
|
])) : createCommentVNode("", true)
|
|
72245
72986
|
]),
|
|
72246
|
-
createElementVNode("div", _hoisted_4$
|
|
72987
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
72247
72988
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.images, (item, i) => {
|
|
72248
72989
|
return openBlock(), createElementBlock("div", {
|
|
72249
72990
|
key: i,
|
|
@@ -72536,8 +73277,8 @@ const VcLoginForm = _sfc_main$b;
|
|
|
72536
73277
|
const _hoisted_1$9 = { class: "vc-popup__wrapper" };
|
|
72537
73278
|
const _hoisted_2$9 = { class: "vc-popup__inner" };
|
|
72538
73279
|
const _hoisted_3$9 = { class: "vc-popup__header" };
|
|
72539
|
-
const _hoisted_4$
|
|
72540
|
-
const _hoisted_5$
|
|
73280
|
+
const _hoisted_4$7 = { class: "tw-truncate tw-grow tw-basis-0" };
|
|
73281
|
+
const _hoisted_5$6 = { class: "vc-popup__content tw-grow tw-basis-0" };
|
|
72541
73282
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
72542
73283
|
__name: "vc-popup",
|
|
72543
73284
|
props: {
|
|
@@ -72555,7 +73296,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
72555
73296
|
createElementVNode("div", _hoisted_1$9, [
|
|
72556
73297
|
createElementVNode("div", _hoisted_2$9, [
|
|
72557
73298
|
createElementVNode("div", _hoisted_3$9, [
|
|
72558
|
-
createElementVNode("div", _hoisted_4$
|
|
73299
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
72559
73300
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
72560
73301
|
createTextVNode(toDisplayString$1(__props.title), 1)
|
|
72561
73302
|
])
|
|
@@ -72567,7 +73308,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
72567
73308
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
72568
73309
|
})) : createCommentVNode("", true)
|
|
72569
73310
|
]),
|
|
72570
|
-
createElementVNode("div", _hoisted_5$
|
|
73311
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
72571
73312
|
renderSlot(_ctx.$slots, "default")
|
|
72572
73313
|
])
|
|
72573
73314
|
])
|
|
@@ -72611,7 +73352,7 @@ const _hoisted_3$7 = {
|
|
|
72611
73352
|
key: 1,
|
|
72612
73353
|
class: "tw-ml-[10px] tw-rounded-[10px] tw-bg-white tw-text-[#43b0e6] tw-h-[20px] tw-min-w-[20px] tw-leading-[20px] tw-text-center tw-font-medium"
|
|
72613
73354
|
};
|
|
72614
|
-
const _hoisted_4$
|
|
73355
|
+
const _hoisted_4$6 = ["onClick"];
|
|
72615
73356
|
const __default__ = defineComponent({
|
|
72616
73357
|
inheritAttrs: false
|
|
72617
73358
|
});
|
|
@@ -72710,7 +73451,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
72710
73451
|
}),
|
|
72711
73452
|
renderSlot(_ctx.$slots, "default", { closePanel })
|
|
72712
73453
|
])
|
|
72713
|
-
], 10, _hoisted_4$
|
|
73454
|
+
], 10, _hoisted_4$6)) : createCommentVNode("", true)
|
|
72714
73455
|
]))
|
|
72715
73456
|
]);
|
|
72716
73457
|
};
|
|
@@ -72725,11 +73466,11 @@ const _hoisted_1$6 = {
|
|
|
72725
73466
|
};
|
|
72726
73467
|
const _hoisted_2$6 = { class: "tw-mt-1 tw-text-lg" };
|
|
72727
73468
|
const _hoisted_3$6 = { class: "tw-flex-shrink-0 tw-w-full" };
|
|
72728
|
-
const _hoisted_4$
|
|
73469
|
+
const _hoisted_4$5 = {
|
|
72729
73470
|
key: 1,
|
|
72730
73471
|
class: "tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"
|
|
72731
73472
|
};
|
|
72732
|
-
const _hoisted_5$
|
|
73473
|
+
const _hoisted_5$5 = { class: "vc-table-mobile__item-action-text" };
|
|
72733
73474
|
const _hoisted_6$4 = { class: "tw-mt-1 tw-text-lg" };
|
|
72734
73475
|
const _hoisted_7$4 = /* @__PURE__ */ createElementVNode("div", { class: "tw-mt-1 tw-text-lg" }, "More", -1);
|
|
72735
73476
|
const _hoisted_8$3 = { class: "tw-absolute tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-bg-[rgba(107,121,135,0.15)] tw-flex tw-items-center tw-justify-center tw-z-[99]" };
|
|
@@ -72848,7 +73589,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
72848
73589
|
createElementVNode("div", _hoisted_3$6, [
|
|
72849
73590
|
renderSlot(_ctx.$slots, "default")
|
|
72850
73591
|
]),
|
|
72851
|
-
unref(rightSwipeActions) && unref(rightSwipeActions).length ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
73592
|
+
unref(rightSwipeActions) && unref(rightSwipeActions).length ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
72852
73593
|
createElementVNode("div", {
|
|
72853
73594
|
class: normalizeClass(["tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white", [`vc-table-mobile__item-action_${unref(rightSwipeActions)[0].variant}`]]),
|
|
72854
73595
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(rightSwipeActions)[0].clickHandler(__props.item), ["stop"]))
|
|
@@ -72856,7 +73597,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
72856
73597
|
createVNode(unref(VcIcon), {
|
|
72857
73598
|
icon: unref(rightSwipeActions)[0].icon
|
|
72858
73599
|
}, null, 8, ["icon"]),
|
|
72859
|
-
createElementVNode("div", _hoisted_5$
|
|
73600
|
+
createElementVNode("div", _hoisted_5$5, toDisplayString$1(unref(rightSwipeActions)[0].title), 1)
|
|
72860
73601
|
], 2),
|
|
72861
73602
|
unref(rightSwipeActions).length === 2 ? (openBlock(), createElementBlock("div", {
|
|
72862
73603
|
key: 0,
|
|
@@ -78600,11 +79341,11 @@ const _hoisted_3$5 = {
|
|
|
78600
79341
|
key: 1,
|
|
78601
79342
|
class: "tw-text-[#a5a5a5]"
|
|
78602
79343
|
};
|
|
78603
|
-
const _hoisted_4$
|
|
79344
|
+
const _hoisted_4$4 = {
|
|
78604
79345
|
key: 2,
|
|
78605
79346
|
class: "tw-text-[#a5a5a5]"
|
|
78606
79347
|
};
|
|
78607
|
-
const _hoisted_5$
|
|
79348
|
+
const _hoisted_5$4 = {
|
|
78608
79349
|
key: 5,
|
|
78609
79350
|
class: "tw-flex tw-justify-center"
|
|
78610
79351
|
};
|
|
@@ -78642,7 +79383,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
78642
79383
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
78643
79384
|
createTextVNode("N/A")
|
|
78644
79385
|
], 64))
|
|
78645
|
-
])) : __props.cell.type === "date" || __props.cell.type === "time" || __props.cell.type === "date-time" ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
79386
|
+
])) : __props.cell.type === "date" || __props.cell.type === "time" || __props.cell.type === "date-time" ? (openBlock(), createElementBlock("span", _hoisted_4$4, [
|
|
78646
79387
|
unref(value) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
78647
79388
|
__props.cell.format ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
78648
79389
|
createTextVNode(toDisplayString$1(unref(hooks)(unref(value)).locale(unref(locale)).format(__props.cell.format)), 1)
|
|
@@ -78672,7 +79413,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
78672
79413
|
createTextVNode(toDisplayString$1(unref(value)), 1)
|
|
78673
79414
|
]),
|
|
78674
79415
|
_: 1
|
|
78675
|
-
})) : __props.cell.type === "status-icon" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
79416
|
+
})) : __props.cell.type === "status-icon" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
78676
79417
|
createVNode(unref(VcStatusIcon), { status: unref(value) }, null, 8, ["status"])
|
|
78677
79418
|
])) : __props.cell.type === "number" ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString$1(Number(unref(value)).toFixed(0)), 1)) : __props.cell.type === "link" ? (openBlock(), createBlock(unref(VcLink), { key: 7 }, {
|
|
78678
79419
|
default: withCtx(() => [
|
|
@@ -78779,11 +79520,11 @@ const _hoisted_3$3 = {
|
|
|
78779
79520
|
key: 0,
|
|
78780
79521
|
class: "tw-mr-3"
|
|
78781
79522
|
};
|
|
78782
|
-
const _hoisted_4$
|
|
79523
|
+
const _hoisted_4$3 = {
|
|
78783
79524
|
key: 1,
|
|
78784
79525
|
class: "tw-ml-3"
|
|
78785
79526
|
};
|
|
78786
|
-
const _hoisted_5$
|
|
79527
|
+
const _hoisted_5$3 = { class: "tw-flex tw-relative tw-overflow-hidden tw-grow" };
|
|
78787
79528
|
const _hoisted_6$2 = { key: 0 };
|
|
78788
79529
|
const _hoisted_7$2 = {
|
|
78789
79530
|
key: 0,
|
|
@@ -78792,7 +79533,7 @@ const _hoisted_7$2 = {
|
|
|
78792
79533
|
const _hoisted_8$2 = { class: "vc-table__header-row" };
|
|
78793
79534
|
const _hoisted_9$2 = {
|
|
78794
79535
|
key: 0,
|
|
78795
|
-
class: "tw-h-[42px] tw-w-[50px] tw-max-w-[
|
|
79536
|
+
class: "tw-h-[42px] tw-w-[50px] tw-max-w-[28px] tw-min-w-[28px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border tw-sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]"
|
|
78796
79537
|
};
|
|
78797
79538
|
const _hoisted_10$1 = { class: "tw-flex tw-justify-center tw-items-center" };
|
|
78798
79539
|
const _hoisted_11$1 = /* @__PURE__ */ createElementVNode("div", { class: "tw-w-3 tw-top-0 tw-bottom-0 tw-absolute tw-right-0 tw-flex tw-justify-end" }, [
|
|
@@ -78800,7 +79541,7 @@ const _hoisted_11$1 = /* @__PURE__ */ createElementVNode("div", { class: "tw-w-3
|
|
|
78800
79541
|
], -1);
|
|
78801
79542
|
const _hoisted_12$1 = {
|
|
78802
79543
|
key: 1,
|
|
78803
|
-
class: "tw-h-[42px] tw-w-[
|
|
79544
|
+
class: "tw-h-[42px] tw-w-[21px] tw-max-w-[21px] tw-min-w-[21px] tw-bg-[#f9f9f9] tw-m-w-[70px] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border tw-sticky tw-top-0 tw-select-none tw-z-[1]"
|
|
78804
79545
|
};
|
|
78805
79546
|
const _hoisted_13$1 = /* @__PURE__ */ createElementVNode("div", { class: "tw-w-3 tw-top-0 tw-bottom-0 tw-absolute tw-right-0 tw-flex tw-justify-end" }, [
|
|
78806
79547
|
/* @__PURE__ */ createElementVNode("div", { class: "tw-w-px tw-bg-[#e5e7eb] tw-h-full" })
|
|
@@ -78834,29 +79575,31 @@ const _hoisted_24 = {
|
|
|
78834
79575
|
};
|
|
78835
79576
|
const _hoisted_25 = ["onClick", "onDragstart", "onDragover"];
|
|
78836
79577
|
const _hoisted_26 = { class: "tw-flex tw-justify-center tw-items-center" };
|
|
78837
|
-
const _hoisted_27 = { class: "
|
|
78838
|
-
const _hoisted_28 =
|
|
78839
|
-
const _hoisted_29 =
|
|
78840
|
-
const _hoisted_30 = ["
|
|
78841
|
-
const _hoisted_31 =
|
|
78842
|
-
const _hoisted_32 =
|
|
79578
|
+
const _hoisted_27 = /* @__PURE__ */ createElementVNode("div", { class: "tw-w-px tw-top-0 tw-bottom-0 tw-absolute tw-right-0 tw-bg-[#e5e7eb]" }, null, -1);
|
|
79579
|
+
const _hoisted_28 = { class: "vc-table__body-actions-container tw-relative tw-flex tw-justify-center tw-items-center tw-group" };
|
|
79580
|
+
const _hoisted_29 = ["onClick", "disabled"];
|
|
79581
|
+
const _hoisted_30 = { class: "tw-flex tw-items-start tw-flex-col tw-text-[#3f3f3f] tw-font-normal not-italic tw-text-base tw-leading-[20px] tw-gap-[25px]" };
|
|
79582
|
+
const _hoisted_31 = ["onClick"];
|
|
79583
|
+
const _hoisted_32 = { class: "tw-not-italic tw-font-normal tw-text-base tw-leading-[20px] tw-text-[#3f3f3f] tw-ml-[7px]" };
|
|
79584
|
+
const _hoisted_33 = /* @__PURE__ */ createElementVNode("div", {
|
|
78843
79585
|
class: "vc-table__body-tooltip-arrow",
|
|
78844
79586
|
"data-popper-arrow": ""
|
|
78845
79587
|
}, null, -1);
|
|
78846
|
-
const
|
|
78847
|
-
const
|
|
79588
|
+
const _hoisted_34 = /* @__PURE__ */ createElementVNode("div", { class: "tw-w-px tw-top-0 tw-bottom-0 tw-absolute tw-right-0 tw-bg-[#e5e7eb]" }, null, -1);
|
|
79589
|
+
const _hoisted_35 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
|
|
79590
|
+
const _hoisted_36 = {
|
|
78848
79591
|
key: 0,
|
|
78849
79592
|
class: "tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"
|
|
78850
79593
|
};
|
|
78851
|
-
const
|
|
78852
|
-
const
|
|
78853
|
-
const
|
|
79594
|
+
const _hoisted_37 = ["src"];
|
|
79595
|
+
const _hoisted_38 = { class: "tw-m-4 vc-table__empty-text" };
|
|
79596
|
+
const _hoisted_39 = {
|
|
78854
79597
|
key: 0,
|
|
78855
79598
|
class: "tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"
|
|
78856
79599
|
};
|
|
78857
|
-
const
|
|
78858
|
-
const
|
|
78859
|
-
const
|
|
79600
|
+
const _hoisted_40 = ["src"];
|
|
79601
|
+
const _hoisted_41 = { class: "tw-m-4 tw-text-xl tw-font-medium" };
|
|
79602
|
+
const _hoisted_42 = { class: "tw-bg-[#fbfdfe] tw-border-t tw-border-solid tw-border-[#eaedf3] tw-flex-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4" };
|
|
78860
79603
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
78861
79604
|
__name: "vc-table",
|
|
78862
79605
|
props: {
|
|
@@ -78968,7 +79711,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
78968
79711
|
_selected = props.items;
|
|
78969
79712
|
}
|
|
78970
79713
|
selection.value = _selected;
|
|
78971
|
-
emit("selectionChanged", selection.value);
|
|
78972
79714
|
}
|
|
78973
79715
|
});
|
|
78974
79716
|
const filteredCols = computed(() => {
|
|
@@ -78983,9 +79725,17 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
78983
79725
|
(newVal) => {
|
|
78984
79726
|
scrollContainer.value?.scrollTop();
|
|
78985
79727
|
calculateActions(newVal);
|
|
79728
|
+
selection.value = selection.value.filter((selection2) => newVal.includes(selection2));
|
|
78986
79729
|
},
|
|
78987
79730
|
{ deep: true, immediate: true }
|
|
78988
79731
|
);
|
|
79732
|
+
watch(
|
|
79733
|
+
() => selection.value,
|
|
79734
|
+
(newVal) => {
|
|
79735
|
+
emit("selectionChanged", newVal);
|
|
79736
|
+
},
|
|
79737
|
+
{ deep: true }
|
|
79738
|
+
);
|
|
78989
79739
|
watch(
|
|
78990
79740
|
() => props.columns,
|
|
78991
79741
|
(newVal) => {
|
|
@@ -79006,7 +79756,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79006
79756
|
} else {
|
|
79007
79757
|
selection.value.push(clear);
|
|
79008
79758
|
}
|
|
79009
|
-
emit("selectionChanged", selection.value);
|
|
79010
79759
|
}
|
|
79011
79760
|
function setTooltipRefs(el, id) {
|
|
79012
79761
|
if (el) {
|
|
@@ -79358,7 +80107,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79358
80107
|
modelValue: __props.searchValue,
|
|
79359
80108
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("search:change", $event))
|
|
79360
80109
|
}, null, 8, ["placeholder", "modelValue"]),
|
|
79361
|
-
_ctx.$isDesktop.value && _ctx.$slots["filters"] ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
80110
|
+
_ctx.$isDesktop.value && _ctx.$slots["filters"] ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
79362
80111
|
createVNode(_sfc_main$8, {
|
|
79363
80112
|
title: _ctx.$t("Filters"),
|
|
79364
80113
|
counter: __props.activeFilterCount,
|
|
@@ -79372,7 +80121,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79372
80121
|
])) : createCommentVNode("", true)
|
|
79373
80122
|
])
|
|
79374
80123
|
]) : createCommentVNode("", true),
|
|
79375
|
-
createElementVNode("div", _hoisted_5$
|
|
80124
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
79376
80125
|
createVNode(_component_VcLoading, { active: __props.loading }, null, 8, ["active"]),
|
|
79377
80126
|
__props.items && __props.items.length ? (openBlock(), createBlock(_sfc_main$Q, {
|
|
79378
80127
|
key: 0,
|
|
@@ -79492,7 +80241,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79492
80241
|
return openBlock(), createElementBlock("tr", {
|
|
79493
80242
|
key: typeof item === "object" && "id" in item && item.id || itemIndex,
|
|
79494
80243
|
class: normalizeClass(["vc-table__body-row tw-h-[60px] tw-bg-white hover:tw-bg-[#dfeef9] tw-cursor-pointer", {
|
|
79495
|
-
"tw-bg-[#
|
|
80244
|
+
"!tw-bg-[#F9F9F9]": itemIndex % 2 === 1,
|
|
79496
80245
|
"!tw-bg-[#dfeef9] hover:tw-bg-[#dfeef9]": typeof item === "object" && "id" in item && item.id ? __props.selectedItemId === item.id : false
|
|
79497
80246
|
}]),
|
|
79498
80247
|
onClick: ($event) => _ctx.$emit("itemClick", item),
|
|
@@ -79506,7 +80255,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79506
80255
|
}, [
|
|
79507
80256
|
__props.multiselect && typeof item === "object" ? (openBlock(), createElementBlock("td", {
|
|
79508
80257
|
key: 0,
|
|
79509
|
-
class: "tw-w-[50px] tw-max-w-[
|
|
80258
|
+
class: "tw-w-[50px] tw-max-w-[28px] tw-min-w-[28px] tw-relative",
|
|
79510
80259
|
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
79511
80260
|
}, ["stop"]))
|
|
79512
80261
|
}, [
|
|
@@ -79515,17 +80264,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79515
80264
|
"onUpdate:modelValue": ($event) => rowCheckbox(item),
|
|
79516
80265
|
"model-value": isSelected(item)
|
|
79517
80266
|
}, null, 8, ["onUpdate:modelValue", "model-value"])
|
|
79518
|
-
])
|
|
80267
|
+
]),
|
|
80268
|
+
_hoisted_27
|
|
79519
80269
|
])) : createCommentVNode("", true),
|
|
79520
80270
|
__props.itemActionBuilder && typeof item === "object" ? (openBlock(), createElementBlock("td", {
|
|
79521
80271
|
key: 1,
|
|
79522
|
-
class: "tw-box-border tw-overflow-visible tw-
|
|
80272
|
+
class: "tw-box-border tw-overflow-visible tw-w-[21px] tw-max-w-[21px] tw-min-w-[21px] tw-relative",
|
|
79523
80273
|
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
79524
80274
|
}, ["stop"]))
|
|
79525
80275
|
}, [
|
|
79526
|
-
createElementVNode("div",
|
|
80276
|
+
createElementVNode("div", _hoisted_28, [
|
|
79527
80277
|
createElementVNode("button", {
|
|
79528
|
-
class: "tw-text-[#41afe6] tw-cursor-pointer tw-border-none tw-bg-transparent disabled:tw-text-[gray] tw-w-
|
|
80278
|
+
class: "tw-text-[#41afe6] tw-cursor-pointer tw-border-none tw-bg-transparent disabled:tw-text-[gray] tw-w-full group-hover:tw-text-[#319ed4]",
|
|
79529
80279
|
onClick: withModifiers(($event) => showActions(item, item.id), ["stop"]),
|
|
79530
80280
|
ref_for: true,
|
|
79531
80281
|
ref: (el) => setActionToggleRefs(el, item.id),
|
|
@@ -79536,7 +80286,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79536
80286
|
icon: "fas fa-ellipsis-v",
|
|
79537
80287
|
size: "m"
|
|
79538
80288
|
})
|
|
79539
|
-
], 8,
|
|
80289
|
+
], 8, _hoisted_29),
|
|
79540
80290
|
withDirectives(createElementVNode("div", {
|
|
79541
80291
|
class: "vc-table__body-tooltip tw-bg-white tw-rounded-[4px] tw-p-[15px] tw-z-[1] tw-absolute tw-right-0 tw-drop-shadow-[1px_3px_14px_rgba(111,122,131,0.25)]",
|
|
79542
80292
|
onMouseleave: closeActions,
|
|
@@ -79544,7 +80294,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79544
80294
|
ref: (el) => setTooltipRefs(el, item.id),
|
|
79545
80295
|
role: "tooltip"
|
|
79546
80296
|
}, [
|
|
79547
|
-
createElementVNode("div",
|
|
80297
|
+
createElementVNode("div", _hoisted_30, [
|
|
79548
80298
|
(openBlock(true), createElementBlock(Fragment, null, renderList(itemActions.value[itemIndex], (itemAction, i) => {
|
|
79549
80299
|
return openBlock(), createElementBlock("div", {
|
|
79550
80300
|
key: i,
|
|
@@ -79558,15 +80308,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79558
80308
|
icon: itemAction.icon,
|
|
79559
80309
|
size: "m"
|
|
79560
80310
|
}, null, 8, ["icon"]),
|
|
79561
|
-
createElementVNode("div",
|
|
79562
|
-
], 10,
|
|
80311
|
+
createElementVNode("div", _hoisted_32, toDisplayString$1(itemAction.title), 1)
|
|
80312
|
+
], 10, _hoisted_31);
|
|
79563
80313
|
}), 128))
|
|
79564
80314
|
]),
|
|
79565
|
-
|
|
80315
|
+
_hoisted_33
|
|
79566
80316
|
], 544), [
|
|
79567
80317
|
[vShow, selectedRow.value === item.id]
|
|
79568
80318
|
])
|
|
79569
|
-
])
|
|
80319
|
+
]),
|
|
80320
|
+
_hoisted_34
|
|
79570
80321
|
])) : createCommentVNode("", true),
|
|
79571
80322
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredCols), (cell) => {
|
|
79572
80323
|
return openBlock(), createElementBlock("td", {
|
|
@@ -79586,7 +80337,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79586
80337
|
])
|
|
79587
80338
|
], 6);
|
|
79588
80339
|
}), 128)),
|
|
79589
|
-
|
|
80340
|
+
_hoisted_35
|
|
79590
80341
|
], 42, _hoisted_25);
|
|
79591
80342
|
}), 128))
|
|
79592
80343
|
])) : createCommentVNode("", true)
|
|
@@ -79595,12 +80346,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79595
80346
|
_: 3
|
|
79596
80347
|
}, 8, ["usePtr"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
79597
80348
|
__props.searchValue || __props.searchValue === "" || __props.activeFilterCount ? renderSlot(_ctx.$slots, "notfound", { key: 0 }, () => [
|
|
79598
|
-
__props.notfound ? (openBlock(), createElementBlock("div",
|
|
80349
|
+
__props.notfound ? (openBlock(), createElementBlock("div", _hoisted_36, [
|
|
79599
80350
|
__props.notfound.image ? (openBlock(), createElementBlock("img", {
|
|
79600
80351
|
key: 0,
|
|
79601
80352
|
src: __props.notfound.image
|
|
79602
|
-
}, null, 8,
|
|
79603
|
-
createElementVNode("div",
|
|
80353
|
+
}, null, 8, _hoisted_37)) : createCommentVNode("", true),
|
|
80354
|
+
createElementVNode("div", _hoisted_38, toDisplayString$1(__props.notfound.text), 1),
|
|
79604
80355
|
__props.notfound.action ? (openBlock(), createBlock(_component_VcButton, {
|
|
79605
80356
|
key: 1,
|
|
79606
80357
|
onClick: __props.notfound.clickHandler
|
|
@@ -79612,12 +80363,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79612
80363
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
79613
80364
|
])) : createCommentVNode("", true)
|
|
79614
80365
|
]) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
79615
|
-
__props.empty ? (openBlock(), createElementBlock("div",
|
|
80366
|
+
__props.empty ? (openBlock(), createElementBlock("div", _hoisted_39, [
|
|
79616
80367
|
__props.empty.image ? (openBlock(), createElementBlock("img", {
|
|
79617
80368
|
key: 0,
|
|
79618
80369
|
src: __props.empty.image
|
|
79619
|
-
}, null, 8,
|
|
79620
|
-
createElementVNode("div",
|
|
80370
|
+
}, null, 8, _hoisted_40)) : createCommentVNode("", true),
|
|
80371
|
+
createElementVNode("div", _hoisted_41, toDisplayString$1(__props.empty.text), 1),
|
|
79621
80372
|
__props.empty.action ? (openBlock(), createBlock(_component_VcButton, {
|
|
79622
80373
|
key: 1,
|
|
79623
80374
|
onClick: __props.empty.clickHandler
|
|
@@ -79632,7 +80383,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
79632
80383
|
], 64))
|
|
79633
80384
|
]),
|
|
79634
80385
|
(_ctx.$slots["footer"] || __props.footer) && __props.items && __props.items.length ? renderSlot(_ctx.$slots, "footer", { key: 1 }, () => [
|
|
79635
|
-
createElementVNode("div",
|
|
80386
|
+
createElementVNode("div", _hoisted_42, [
|
|
79636
80387
|
createVNode(_component_VcPagination, {
|
|
79637
80388
|
expanded: __props.expanded,
|
|
79638
80389
|
pages: __props.pages,
|
|
@@ -101245,8 +101996,10 @@ function readableSize(bytes, decimals = 2) {
|
|
|
101245
101996
|
}
|
|
101246
101997
|
|
|
101247
101998
|
const _hoisted_1$2 = { class: "tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]" };
|
|
101248
|
-
const _hoisted_2$2 = { class: "assets-details__content tw-grow tw-basis-0" };
|
|
101999
|
+
const _hoisted_2$2 = { class: "assets-details__content tw-grow tw-basis-0 tw-w-full" };
|
|
101249
102000
|
const _hoisted_3$2 = { class: "tw-p-4" };
|
|
102001
|
+
const _hoisted_4$2 = { class: "tw-flex tw-flex-row tw-justify-stretch tw-truncate" };
|
|
102002
|
+
const _hoisted_5$2 = { class: "tw-truncate" };
|
|
101250
102003
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
101251
102004
|
__name: "assets-details",
|
|
101252
102005
|
props: {
|
|
@@ -101257,9 +102010,25 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101257
102010
|
emits: ["close:blade"],
|
|
101258
102011
|
setup(__props, { emit }) {
|
|
101259
102012
|
const props = __props;
|
|
102013
|
+
useForm$2({ validateOnMount: false });
|
|
102014
|
+
const isValid = useIsFormValid();
|
|
102015
|
+
const isDirty = useIsFormDirty();
|
|
101260
102016
|
const { t } = useI18n$1();
|
|
101261
102017
|
const defaultAsset = ref({ ...props.options?.asset });
|
|
101262
|
-
const
|
|
102018
|
+
const readonly = computed(() => props.options.disabled);
|
|
102019
|
+
const assetNameClean = computed({
|
|
102020
|
+
get() {
|
|
102021
|
+
return defaultAsset.value.name.split(".").shift();
|
|
102022
|
+
},
|
|
102023
|
+
set(value) {
|
|
102024
|
+
const fileExtension = defaultAsset.value.name.split(".").pop();
|
|
102025
|
+
defaultAsset.value.name = value + "." + fileExtension;
|
|
102026
|
+
}
|
|
102027
|
+
});
|
|
102028
|
+
const isDisabled = computed(() => {
|
|
102029
|
+
return !isDirty.value || !isValid.value;
|
|
102030
|
+
});
|
|
102031
|
+
const bladeToolbar = ref([
|
|
101263
102032
|
{
|
|
101264
102033
|
id: "save",
|
|
101265
102034
|
title: t("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),
|
|
@@ -101269,7 +102038,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101269
102038
|
props.options?.assetEditHandler(defaultAsset.value);
|
|
101270
102039
|
emit("close:blade");
|
|
101271
102040
|
}
|
|
101272
|
-
}
|
|
102041
|
+
},
|
|
102042
|
+
disabled: computed(() => isDisabled.value || readonly.value)
|
|
101273
102043
|
},
|
|
101274
102044
|
{
|
|
101275
102045
|
id: "delete",
|
|
@@ -101280,9 +102050,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101280
102050
|
props.options?.assetRemoveHandler(defaultAsset.value);
|
|
101281
102051
|
emit("close:blade");
|
|
101282
102052
|
}
|
|
101283
|
-
}
|
|
102053
|
+
},
|
|
102054
|
+
disabled: computed(() => readonly.value)
|
|
101284
102055
|
}
|
|
101285
|
-
];
|
|
102056
|
+
]);
|
|
101286
102057
|
const assetType = computed(() => defaultAsset.value?.typeId);
|
|
101287
102058
|
function copyLink(link) {
|
|
101288
102059
|
if (link.charAt(0) === "/") {
|
|
@@ -101307,7 +102078,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101307
102078
|
subtitle: _ctx.$t("ASSETS.PAGES.DETAILS.SUBTITLE"),
|
|
101308
102079
|
expanded: __props.expanded,
|
|
101309
102080
|
closable: __props.closable,
|
|
101310
|
-
toolbarItems: bladeToolbar,
|
|
102081
|
+
toolbarItems: bladeToolbar.value,
|
|
101311
102082
|
onClose: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("close:blade"))
|
|
101312
102083
|
}, {
|
|
101313
102084
|
default: withCtx(() => [
|
|
@@ -101324,11 +102095,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101324
102095
|
key: 0,
|
|
101325
102096
|
src: defaultAsset.value.url,
|
|
101326
102097
|
size: "xl",
|
|
101327
|
-
bordered: true
|
|
102098
|
+
bordered: true,
|
|
102099
|
+
class: "tw-shrink-0"
|
|
101328
102100
|
}, null, 8, ["src"])) : (openBlock(), createBlock(_component_VcIcon, {
|
|
101329
102101
|
key: 1,
|
|
101330
102102
|
icon: unref(getFileThumbnail)(defaultAsset.value.name),
|
|
101331
|
-
class: "tw-text-[#a9bfd2] tw-text-[128px]"
|
|
102103
|
+
class: "tw-text-[#a9bfd2] tw-text-[128px] tw-shrink-0"
|
|
101332
102104
|
}, null, 8, ["icon"])),
|
|
101333
102105
|
createVNode(_component_VcCol, { class: "tw-ml-6" }, {
|
|
101334
102106
|
default: withCtx(() => [
|
|
@@ -101368,7 +102140,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101368
102140
|
]),
|
|
101369
102141
|
_: 1
|
|
101370
102142
|
}),
|
|
101371
|
-
createVNode(_component_VcCol,
|
|
102143
|
+
createVNode(_component_VcCol, { class: "tw-w-full" }, {
|
|
101372
102144
|
default: withCtx(() => [
|
|
101373
102145
|
createVNode(_component_VcLabel, null, {
|
|
101374
102146
|
default: withCtx(() => [
|
|
@@ -101376,28 +102148,27 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101376
102148
|
]),
|
|
101377
102149
|
_: 1
|
|
101378
102150
|
}),
|
|
101379
|
-
|
|
101380
|
-
|
|
102151
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
102152
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
101381
102153
|
createVNode(_component_VcLink, {
|
|
101382
|
-
class: "vc-link tw-text-s tw-
|
|
102154
|
+
class: "vc-link tw-text-s tw-truncate tw-w-full",
|
|
101383
102155
|
onClick: _cache[0] || (_cache[0] = ($event) => openLink(defaultAsset.value.url))
|
|
101384
102156
|
}, {
|
|
101385
102157
|
default: withCtx(() => [
|
|
101386
|
-
createTextVNode(toDisplayString$1(
|
|
102158
|
+
createTextVNode(toDisplayString$1(props.options?.asset.name), 1)
|
|
101387
102159
|
]),
|
|
101388
102160
|
_: 1
|
|
101389
|
-
}),
|
|
101390
|
-
createVNode(_component_VcButton, {
|
|
101391
|
-
icon: "far fa-copy",
|
|
101392
|
-
size: "m",
|
|
101393
|
-
class: "tw-ml-2",
|
|
101394
|
-
variant: "onlytext",
|
|
101395
|
-
onClick: _cache[1] || (_cache[1] = ($event) => copyLink(defaultAsset.value.url)),
|
|
101396
|
-
title: "Copy link"
|
|
101397
102161
|
})
|
|
101398
102162
|
]),
|
|
101399
|
-
|
|
101400
|
-
|
|
102163
|
+
createVNode(_component_VcButton, {
|
|
102164
|
+
icon: "far fa-copy",
|
|
102165
|
+
size: "m",
|
|
102166
|
+
class: "tw-ml-2",
|
|
102167
|
+
variant: "onlytext",
|
|
102168
|
+
onClick: _cache[1] || (_cache[1] = ($event) => copyLink(defaultAsset.value.url)),
|
|
102169
|
+
title: "Copy link"
|
|
102170
|
+
})
|
|
102171
|
+
])
|
|
101401
102172
|
]),
|
|
101402
102173
|
_: 1
|
|
101403
102174
|
})
|
|
@@ -101410,15 +102181,31 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101410
102181
|
]),
|
|
101411
102182
|
_: 1
|
|
101412
102183
|
}),
|
|
101413
|
-
createVNode(unref(
|
|
101414
|
-
class: "tw-mb-4",
|
|
102184
|
+
createVNode(unref(Field), {
|
|
101415
102185
|
label: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
|
|
101416
|
-
|
|
101417
|
-
|
|
101418
|
-
|
|
101419
|
-
|
|
101420
|
-
|
|
101421
|
-
|
|
102186
|
+
name: "asset_name",
|
|
102187
|
+
rules: "required",
|
|
102188
|
+
modelValue: defaultAsset.value.name
|
|
102189
|
+
}, {
|
|
102190
|
+
default: withCtx(({ errorMessage, handleChange, errors }) => [
|
|
102191
|
+
createVNode(unref(VcInput), {
|
|
102192
|
+
class: "tw-mb-4",
|
|
102193
|
+
label: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),
|
|
102194
|
+
modelValue: unref(assetNameClean),
|
|
102195
|
+
"onUpdate:modelValue": [
|
|
102196
|
+
_cache[2] || (_cache[2] = ($event) => isRef(assetNameClean) ? assetNameClean.value = $event : null),
|
|
102197
|
+
handleChange
|
|
102198
|
+
],
|
|
102199
|
+
clearable: "",
|
|
102200
|
+
required: "",
|
|
102201
|
+
error: !!errors.length,
|
|
102202
|
+
"error-message": errorMessage,
|
|
102203
|
+
placeholder: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER"),
|
|
102204
|
+
disabled: unref(readonly)
|
|
102205
|
+
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "error", "error-message", "placeholder", "disabled"])
|
|
102206
|
+
]),
|
|
102207
|
+
_: 1
|
|
102208
|
+
}, 8, ["label", "modelValue"]),
|
|
101422
102209
|
unref(assetType) === "Image" ? (openBlock(), createBlock(unref(VcInput), {
|
|
101423
102210
|
key: 0,
|
|
101424
102211
|
class: "tw-mb-4",
|
|
@@ -101428,16 +102215,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101428
102215
|
clearable: "",
|
|
101429
102216
|
placeholder: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER"),
|
|
101430
102217
|
tooltip: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP"),
|
|
101431
|
-
|
|
101432
|
-
}, null, 8, ["label", "modelValue", "placeholder", "tooltip"])) : createCommentVNode("", true),
|
|
102218
|
+
disabled: unref(readonly)
|
|
102219
|
+
}, null, 8, ["label", "modelValue", "placeholder", "tooltip", "disabled"])) : createCommentVNode("", true),
|
|
101433
102220
|
createVNode(unref(VcTextarea), {
|
|
101434
102221
|
class: "tw-mb-4",
|
|
101435
102222
|
label: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE"),
|
|
101436
102223
|
modelValue: defaultAsset.value.description,
|
|
101437
102224
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => defaultAsset.value.description = $event),
|
|
101438
102225
|
placeholder: _ctx.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER"),
|
|
101439
|
-
|
|
101440
|
-
}, null, 8, ["label", "modelValue", "placeholder"])
|
|
102226
|
+
disabled: unref(readonly)
|
|
102227
|
+
}, null, 8, ["label", "modelValue", "placeholder", "disabled"])
|
|
101441
102228
|
]),
|
|
101442
102229
|
_: 1
|
|
101443
102230
|
})
|
|
@@ -101449,7 +102236,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
101449
102236
|
])
|
|
101450
102237
|
]),
|
|
101451
102238
|
_: 1
|
|
101452
|
-
}, 8, ["title", "subtitle", "expanded", "closable"]);
|
|
102239
|
+
}, 8, ["title", "subtitle", "expanded", "closable", "toolbarItems"]);
|
|
101453
102240
|
};
|
|
101454
102241
|
}
|
|
101455
102242
|
});
|
|
@@ -101876,6 +102663,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101876
102663
|
const uploader = ref();
|
|
101877
102664
|
const loading = ref(false);
|
|
101878
102665
|
const selectedItems = ref([]);
|
|
102666
|
+
const readonly = computed(() => props.options.disabled);
|
|
102667
|
+
let assetsCopy;
|
|
102668
|
+
const modified = ref(false);
|
|
101879
102669
|
const bladeToolbar = ref([
|
|
101880
102670
|
{
|
|
101881
102671
|
id: "save",
|
|
@@ -101883,7 +102673,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101883
102673
|
icon: "fas fa-save",
|
|
101884
102674
|
clickHandler() {
|
|
101885
102675
|
emit("close:blade");
|
|
101886
|
-
}
|
|
102676
|
+
},
|
|
102677
|
+
disabled: computed(() => !modified.value || readonly.value)
|
|
101887
102678
|
},
|
|
101888
102679
|
{
|
|
101889
102680
|
id: "add",
|
|
@@ -101891,7 +102682,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101891
102682
|
icon: "fas fa-plus",
|
|
101892
102683
|
clickHandler() {
|
|
101893
102684
|
toggleUploader();
|
|
101894
|
-
}
|
|
102685
|
+
},
|
|
102686
|
+
disabled: computed(() => readonly.value)
|
|
101895
102687
|
},
|
|
101896
102688
|
{
|
|
101897
102689
|
id: "delete",
|
|
@@ -101899,11 +102691,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101899
102691
|
icon: "fas fa-trash",
|
|
101900
102692
|
clickHandler() {
|
|
101901
102693
|
if (props.options.assetsRemoveHandler && typeof props.options.assetsRemoveHandler === "function") {
|
|
101902
|
-
props.options.assetsRemoveHandler(selectedItems.value);
|
|
101903
|
-
defaultAssets.value = defaultAssets.value.filter((asset) => !selectedItems.value.includes(asset));
|
|
102694
|
+
defaultAssets.value = props.options.assetsRemoveHandler(selectedItems.value);
|
|
101904
102695
|
}
|
|
101905
102696
|
},
|
|
101906
|
-
disabled: computed(() => !selectedItems.value.length)
|
|
102697
|
+
disabled: computed(() => !selectedItems.value.length || readonly.value)
|
|
101907
102698
|
}
|
|
101908
102699
|
]);
|
|
101909
102700
|
const columns = ref([
|
|
@@ -101939,31 +102730,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101939
102730
|
type: "date-ago"
|
|
101940
102731
|
}
|
|
101941
102732
|
]);
|
|
102733
|
+
watch(
|
|
102734
|
+
() => defaultAssets.value,
|
|
102735
|
+
(newVal) => {
|
|
102736
|
+
modified.value = !isEqual$1(newVal, assetsCopy);
|
|
102737
|
+
},
|
|
102738
|
+
{ deep: true }
|
|
102739
|
+
);
|
|
101942
102740
|
onMounted(() => {
|
|
101943
102741
|
defaultAssets.value = props.options?.assets;
|
|
102742
|
+
assetsCopy = cloneDeep(props.options?.assets);
|
|
101944
102743
|
});
|
|
101945
102744
|
function sortAssets(event) {
|
|
101946
|
-
if (props.options.assetsEditHandler && typeof props.options.assetsEditHandler === "function") {
|
|
102745
|
+
if (props.options.assetsEditHandler && typeof props.options.assetsEditHandler === "function" && event.dragIndex !== event.dropIndex) {
|
|
101947
102746
|
const sorted = event.value.map((item, index) => {
|
|
101948
102747
|
item.sortOrder = index;
|
|
101949
102748
|
return item;
|
|
101950
102749
|
});
|
|
101951
|
-
defaultAssets.value = sorted;
|
|
101952
|
-
props.options.assetsEditHandler(sorted);
|
|
102750
|
+
defaultAssets.value = props.options.assetsEditHandler(sorted);
|
|
101953
102751
|
}
|
|
101954
102752
|
}
|
|
101955
102753
|
function dragOver() {
|
|
101956
|
-
if (!
|
|
102754
|
+
if (!readonly.value) {
|
|
101957
102755
|
isDragging.value = true;
|
|
101958
102756
|
}
|
|
101959
102757
|
}
|
|
101960
102758
|
function dragLeave() {
|
|
101961
|
-
if (!
|
|
102759
|
+
if (!readonly.value) {
|
|
101962
102760
|
isDragging.value = false;
|
|
101963
102761
|
}
|
|
101964
102762
|
}
|
|
101965
102763
|
async function onDrop(event) {
|
|
101966
|
-
if (!
|
|
102764
|
+
if (!readonly.value) {
|
|
101967
102765
|
const fileList = event.dataTransfer?.files;
|
|
101968
102766
|
if (fileList && fileList.length) {
|
|
101969
102767
|
await upload(fileList);
|
|
@@ -101979,7 +102777,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101979
102777
|
if (files && files.length) {
|
|
101980
102778
|
try {
|
|
101981
102779
|
loading.value = true;
|
|
101982
|
-
await props.options.assetsUploadHandler(files);
|
|
102780
|
+
defaultAssets.value = await props.options.assetsUploadHandler(files);
|
|
101983
102781
|
} finally {
|
|
101984
102782
|
loading.value = false;
|
|
101985
102783
|
}
|
|
@@ -101997,6 +102795,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101997
102795
|
component: shallowRef(_sfc_main$3),
|
|
101998
102796
|
bladeOptions: {
|
|
101999
102797
|
asset: unref(item),
|
|
102798
|
+
disabled: readonly.value,
|
|
102000
102799
|
assetEditHandler: (asset) => {
|
|
102001
102800
|
const mutated = defaultAssets.value.map((x) => {
|
|
102002
102801
|
if (x.id === asset.id || x.url === asset.url) {
|
|
@@ -102005,12 +102804,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102005
102804
|
return x;
|
|
102006
102805
|
});
|
|
102007
102806
|
if (props.options.assetsEditHandler && typeof props.options.assetsEditHandler === "function") {
|
|
102008
|
-
defaultAssets.value = mutated;
|
|
102009
|
-
props.options.assetsEditHandler(mutated);
|
|
102807
|
+
defaultAssets.value = props.options.assetsEditHandler(mutated);
|
|
102010
102808
|
}
|
|
102011
102809
|
},
|
|
102012
102810
|
assetRemoveHandler: (asset) => {
|
|
102013
|
-
props.options.assetsRemoveHandler([asset]);
|
|
102811
|
+
defaultAssets.value = props.options.assetsRemoveHandler([asset]);
|
|
102014
102812
|
}
|
|
102015
102813
|
}
|
|
102016
102814
|
});
|
|
@@ -102033,8 +102831,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102033
102831
|
variant: "danger",
|
|
102034
102832
|
leftActions: true,
|
|
102035
102833
|
clickHandler(item) {
|
|
102036
|
-
props.options.assetsRemoveHandler([item]);
|
|
102037
|
-
defaultAssets.value = defaultAssets.value.filter((asset) => asset !== item);
|
|
102834
|
+
defaultAssets.value = props.options.assetsRemoveHandler([item]);
|
|
102038
102835
|
selectedItems.value = [];
|
|
102039
102836
|
}
|
|
102040
102837
|
});
|
|
@@ -102071,12 +102868,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102071
102868
|
columns: columns.value,
|
|
102072
102869
|
expanded: __props.expanded,
|
|
102073
102870
|
stateKey: "assets_manager",
|
|
102074
|
-
reorderableRows:
|
|
102871
|
+
reorderableRows: !unref(readonly),
|
|
102075
102872
|
items: defaultAssets.value,
|
|
102076
102873
|
header: false,
|
|
102077
102874
|
footer: false,
|
|
102078
|
-
itemActionBuilder: actionBuilder,
|
|
102079
|
-
multiselect:
|
|
102875
|
+
itemActionBuilder: !unref(readonly) && actionBuilder,
|
|
102876
|
+
multiselect: !unref(readonly),
|
|
102080
102877
|
class: "tw-h-full tw-w-full",
|
|
102081
102878
|
onItemClick,
|
|
102082
102879
|
"onRow:reorder": sortAssets,
|
|
@@ -102169,7 +102966,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102169
102966
|
])
|
|
102170
102967
|
]),
|
|
102171
102968
|
_: 1
|
|
102172
|
-
}, 8, ["columns", "expanded", "items"])
|
|
102969
|
+
}, 8, ["columns", "expanded", "reorderableRows", "items", "itemActionBuilder", "multiselect"])
|
|
102173
102970
|
], 40, _hoisted_1),
|
|
102174
102971
|
createElementVNode("input", {
|
|
102175
102972
|
ref_key: "uploader",
|
|
@@ -102284,4 +103081,4 @@ const index = {
|
|
|
102284
103081
|
}
|
|
102285
103082
|
};
|
|
102286
103083
|
|
|
102287
|
-
export { AccountState, ApiException, AppDescriptor, ApplicationUser, ApplicationUserLogin, ApplicationUserUserState, AppsClient, AssetsDetails, AssetsManager, AuthApiBase, AuthorizationClient, Body, ChangeLogClient, ChangeLogSearchCriteria, ChangeLogSearchResult, ChangePasswordRequest, ChangedEntitiesRequest, ChangedEntitiesResponse, ChangedEntity, Claim, ClaimsIdentity, DiagnosticsClient, DynamicObjectProperty, DynamicObjectPropertyValueType, DynamicPropertiesClient, DynamicProperty, DynamicPropertyDictionaryItem, DynamicPropertyDictionaryItemName, DynamicPropertyDictionaryItemSearchCriteria, DynamicPropertyDictionaryItemSearchResult, DynamicPropertyName, DynamicPropertyObjectValue, DynamicPropertyObjectValueValueType, DynamicPropertySearchCriteria, DynamicPropertySearchResult, DynamicPropertyValueType, DynamicPropertyValueType2, EntryState, ExternalSignInClient, IdentityError, IdentityResult, Job, JobsClient, JsonElement, JsonElementValueKind, JsonValueKind, LastModifiedResponse, License, LoginRequest, ModuleAutoInstallPushNotification, ModuleDescriptor, ModuleIdentity, ModulePushNotification, ModulesClient, OAuthAppSearchCriteria, OAuthAppSearchResult, OAuthAppsClient, ObjectSettingEntry, ObjectSettingEntryValueType, OpenIddictApplicationDescriptor, OpenIddictResponse, OperationLog, OperationLogOperationType, Permission, PermissionScope, ProgressMessage, ProgressMessageLevel, ProgressMessageLevel2, PushNotification, PushNotificationClient, PushNotificationSearchCriteria, PushNotificationSearchResult, ResetPasswordConfirmRequest, Role, RoleSearchCriteria, RoleSearchResult, SecurityClient, SecurityResult, SemanticVersion, SettingClient, SettingValueType, SignInResult, SortDirection, SortInfo, SortInfoSortDirection, StringIdentityUserRole, SystemInfo, UserApiKey, UserDetail, UserLockedResult, UserSearchCriteria, UserSearchResult, ValidatePasswordResetTokenRequest, VcApp, VcAppSwitcher, VcBadge, VcBlade, VcBladeNavigation, VcBreadcrumbs, VcButton, VcCard, VcCheckbox, VcCodeEditor, VcCol, VcContainer, VcDynamicProperty, VcEditor, VcFileUpload, VcForm, VcGallery, VcHint, VcIcon, VcImage, VcInfoRow, VcInput, VcInputCurrency, VcLabel, VcLink, VcLoading, VcLoginForm, VcNotification, VcPagination, VcPopup, VcProgress, VcRating, VcRow, VcSelect, VcSlider, VcStatus, VcStatusIcon, VcSwitch, VcTable, VcTextarea, VcWidget, after, index$6 as autofocus, before, camelToSnake, vClickOutside as clickOutside, createAppModule, createModule, index as default, fileWeight, i18n, index$5 as loading, mindimensions, hooks as moment, index$7 as permissions, useApiClient, index$3 as useAppSwitcher, useAsync, index$
|
|
103084
|
+
export { AccountState, ApiException, AppDescriptor, ApplicationUser, ApplicationUserLogin, ApplicationUserUserState, AppsClient, AssetsDetails, AssetsManager, AuthApiBase, AuthorizationClient, Body, ChangeLogClient, ChangeLogSearchCriteria, ChangeLogSearchResult, ChangePasswordRequest, ChangedEntitiesRequest, ChangedEntitiesResponse, ChangedEntity, Claim, ClaimsIdentity, DiagnosticsClient, DynamicObjectProperty, DynamicObjectPropertyValueType, DynamicPropertiesClient, DynamicProperty, DynamicPropertyDictionaryItem, DynamicPropertyDictionaryItemName, DynamicPropertyDictionaryItemSearchCriteria, DynamicPropertyDictionaryItemSearchResult, DynamicPropertyName, DynamicPropertyObjectValue, DynamicPropertyObjectValueValueType, DynamicPropertySearchCriteria, DynamicPropertySearchResult, DynamicPropertyValueType, DynamicPropertyValueType2, EntryState, ExternalSignInClient, IdentityError, IdentityResult, Job, JobsClient, JsonElement, JsonElementValueKind, JsonValueKind, LastModifiedResponse, License, LoginRequest, ModuleAutoInstallPushNotification, ModuleDescriptor, ModuleIdentity, ModulePushNotification, ModulesClient, OAuthAppSearchCriteria, OAuthAppSearchResult, OAuthAppsClient, ObjectSettingEntry, ObjectSettingEntryValueType, OpenIddictApplicationDescriptor, OpenIddictResponse, OperationLog, OperationLogOperationType, Permission, PermissionScope, ProgressMessage, ProgressMessageLevel, ProgressMessageLevel2, PushNotification, PushNotificationClient, PushNotificationSearchCriteria, PushNotificationSearchResult, ResetPasswordConfirmRequest, Role, RoleSearchCriteria, RoleSearchResult, SecurityClient, SecurityResult, SemanticVersion, SettingClient, SettingValueType, SignInResult, SortDirection, SortInfo, SortInfoSortDirection, StringIdentityUserRole, SystemInfo, UserApiKey, UserDetail, UserLockedResult, UserSearchCriteria, UserSearchResult, ValidatePasswordResetTokenRequest, VcApp, VcAppSwitcher, VcBadge, VcBlade, VcBladeNavigation, VcBreadcrumbs, VcButton, VcCard, VcCheckbox, VcCodeEditor, VcCol, VcContainer, VcDynamicProperty, VcEditor, VcFileUpload, VcForm, VcGallery, VcHint, VcIcon, VcImage, VcInfoRow, VcInput, VcInputCurrency, VcLabel, VcLink, VcLoading, VcLoginForm, VcNotification, VcPagination, VcPopup, VcProgress, VcRating, VcRow, VcSelect, VcSlider, VcStatus, VcStatusIcon, VcSwitch, VcTable, VcTextarea, VcWidget, after, index$6 as autofocus, before, camelToSnake, vClickOutside as clickOutside, createAppModule, createModule, index as default, fileWeight, i18n, index$5 as loading, mindimensions, hooks as moment, index$7 as permissions, useApiClient, index$3 as useAppSwitcher, useAsync, index$2 as useBladeNavigation, useForm, useFunctions, useI18n, useLoading, index$9 as useNotifications, usePermissions, index$8 as useSettings, useUser };
|