@wikicasa-dev/components 1.2.51 → 1.2.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/RadioGroup.js +2 -64
- package/dist/SwiperCarousel.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +16 -0
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +60 -33
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ct4_y9HP.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.3aynnDI5.js} +1 -1
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js +100 -0
- package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DqQlcQd2.js +55 -0
- package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.C_fZeeSF.js → SwiperCarousel.vue_vue_type_style_index_0_lang.CBBHq8Cf.js} +6 -6
- package/dist/chunks/{index.CAhFeT_E.js → index.JiJftlAR.js} +2 -2
- package/dist/chunks/js.cookie.BQua9eWh.js +101 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.Cer4uTE3.js +0 -93
- package/dist/chunks/js.cookie.BaTT4o7s.js +0 -101
package/dist/BaseAutocomplete.js
CHANGED
package/dist/BaseModal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './assets/BaseModal.css';
|
|
2
2
|
import { defineComponent as b, resolveComponent as n, openBlock as d, createBlock as r, Teleport as f, createElementVNode as e, normalizeClass as o, withModifiers as h, withCtx as y, createVNode as C, createCommentVNode as c, renderSlot as a, createElementBlock as w } from "vue";
|
|
3
|
-
import "./chunks/js.cookie.
|
|
3
|
+
import "./chunks/js.cookie.BQua9eWh.js";
|
|
4
4
|
import { _ as M } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BrJbAMJ8.js";
|
|
5
5
|
import { l as v } from "./chunks/CloseIcon.DiRdm5zi.js";
|
|
6
6
|
import { useBreakpoints as g } from "./useBreakpoints.js";
|
package/dist/BasePagination.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c from "./BaseIcon.js";
|
|
2
|
-
import "./chunks/js.cookie.
|
|
2
|
+
import "./chunks/js.cookie.BQua9eWh.js";
|
|
3
3
|
import { defineComponent as h, resolveComponent as d, openBlock as r, createElementBlock as n, createVNode as k, createCommentVNode as o, Fragment as l, renderList as g, toDisplayString as s, createElementVNode as f } from "vue";
|
|
4
4
|
import { _ as v } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
5
|
function p(i, t = !1) {
|
package/dist/CheckboxGroup.js
CHANGED
package/dist/RadioGroup.js
CHANGED
|
@@ -1,66 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as o, resolveComponent as r, openBlock as a, createElementBlock as l, normalizeClass as d, renderSlot as u, Fragment as c, renderList as h, createBlock as p } from "vue";
|
|
3
|
-
import { _ as m } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
-
const f = o({
|
|
5
|
-
name: "RadioGroup",
|
|
6
|
-
components: { RadioButton: n },
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
props: {
|
|
9
|
-
initialValue: { type: Object },
|
|
10
|
-
radioValues: {
|
|
11
|
-
type: Array
|
|
12
|
-
},
|
|
13
|
-
resetRadio: { type: Boolean, default: !1 }
|
|
14
|
-
},
|
|
15
|
-
emits: ["resetted", "update:modelValue"],
|
|
16
|
-
data() {
|
|
17
|
-
return {
|
|
18
|
-
selectedValue: null
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
watch: {
|
|
22
|
-
resetRadio(e) {
|
|
23
|
-
e && (this.reset(), this.$emit("resetted"));
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
created() {
|
|
27
|
-
this.initialValue && this.handleChange(this.initialValue);
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
handleChange(e) {
|
|
31
|
-
this.selectedValue = e, this.$emit("update:modelValue", e);
|
|
32
|
-
},
|
|
33
|
-
reset() {
|
|
34
|
-
this.selectedValue = null;
|
|
35
|
-
},
|
|
36
|
-
isActive(e) {
|
|
37
|
-
return this.selectedValue ? this.selectedValue.id === e.id : !1;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}), V = ["data-cy"];
|
|
41
|
-
function C(e, $, b, g, y, k) {
|
|
42
|
-
const s = r("radio-button");
|
|
43
|
-
return a(), l("div", {
|
|
44
|
-
class: d(["radio-group-container", e.$attrs.class || ""]),
|
|
45
|
-
"data-cy": e.$attrs["data-cy"] || ""
|
|
46
|
-
}, [
|
|
47
|
-
u(e.$slots, "radio_element", {
|
|
48
|
-
handleClick: e.handleChange,
|
|
49
|
-
activeValue: e.selectedValue,
|
|
50
|
-
reset: e.reset,
|
|
51
|
-
isActive: e.isActive
|
|
52
|
-
}, () => [
|
|
53
|
-
(a(!0), l(c, null, h(e.radioValues, (t, i) => (a(), p(s, {
|
|
54
|
-
id: t.id,
|
|
55
|
-
key: i,
|
|
56
|
-
label: `${t.label}`,
|
|
57
|
-
"is-checked": t.label === e.selectedValue?.label,
|
|
58
|
-
onChange: e.handleChange
|
|
59
|
-
}, null, 8, ["id", "label", "is-checked", "onChange"]))), 128))
|
|
60
|
-
])
|
|
61
|
-
], 10, V);
|
|
62
|
-
}
|
|
63
|
-
const R = /* @__PURE__ */ m(f, [["render", C]]);
|
|
1
|
+
import { _ as f } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DqQlcQd2.js";
|
|
64
2
|
export {
|
|
65
|
-
|
|
3
|
+
f as default
|
|
66
4
|
};
|
package/dist/SwiperCarousel.js
CHANGED
|
@@ -6,6 +6,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
reset?: boolean | undefined;
|
|
7
7
|
autoCheckResetAll?: boolean | undefined;
|
|
8
8
|
autoCheckResetEmpty?: boolean | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* If true, the reset button could be unchecked
|
|
11
|
+
*/
|
|
12
|
+
manualToggleResetButton?: boolean | undefined;
|
|
9
13
|
getKey?: GetterIdType | undefined;
|
|
10
14
|
}>, {
|
|
11
15
|
valuesObj(): {};
|
|
@@ -14,6 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
18
|
reset: boolean;
|
|
15
19
|
autoCheckResetAll: boolean;
|
|
16
20
|
autoCheckResetEmpty: boolean;
|
|
21
|
+
manualToggleResetButton: boolean;
|
|
17
22
|
getKey(): (checkBtn: CheckboxButtonType) => string | number;
|
|
18
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
24
|
"update:modelValue": (args_0: CheckboxButtonType[]) => void;
|
|
@@ -26,6 +31,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
31
|
reset?: boolean | undefined;
|
|
27
32
|
autoCheckResetAll?: boolean | undefined;
|
|
28
33
|
autoCheckResetEmpty?: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* If true, the reset button could be unchecked
|
|
36
|
+
*/
|
|
37
|
+
manualToggleResetButton?: boolean | undefined;
|
|
29
38
|
getKey?: GetterIdType | undefined;
|
|
30
39
|
}>, {
|
|
31
40
|
valuesObj(): {};
|
|
@@ -34,6 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
43
|
reset: boolean;
|
|
35
44
|
autoCheckResetAll: boolean;
|
|
36
45
|
autoCheckResetEmpty: boolean;
|
|
46
|
+
manualToggleResetButton: boolean;
|
|
37
47
|
getKey(): (checkBtn: CheckboxButtonType) => string | number;
|
|
38
48
|
}>>> & {
|
|
39
49
|
"onUpdate:modelValue"?: ((args_0: CheckboxButtonType[]) => any) | undefined;
|
|
@@ -46,6 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
56
|
customClass: string;
|
|
47
57
|
autoCheckResetAll: boolean;
|
|
48
58
|
autoCheckResetEmpty: boolean;
|
|
59
|
+
manualToggleResetButton: boolean;
|
|
49
60
|
getKey: GetterIdType;
|
|
50
61
|
}, {}>, {
|
|
51
62
|
default?(_: {
|
|
@@ -53,6 +64,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
53
64
|
handleChange: (checkboxValue: CheckboxButtonType) => void;
|
|
54
65
|
checkboxesData: Record<string, CheckboxButtonType>;
|
|
55
66
|
}): any;
|
|
67
|
+
checkbox_elements?(_: {
|
|
68
|
+
isActive: (elem: CheckboxButtonType) => boolean;
|
|
69
|
+
handleChange: (checkboxValue: CheckboxButtonType) => void;
|
|
70
|
+
checkboxesData: Record<string, CheckboxButtonType>;
|
|
71
|
+
}): any;
|
|
56
72
|
}>;
|
|
57
73
|
export default _default;
|
|
58
74
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,37 +1,64 @@
|
|
|
1
1
|
import { RadioButtonType } from "@wikicasa-dev/types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "resetted")[], "update:modelValue" | "resetted", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
initialValue: {
|
|
22
|
-
type: () => RadioButtonType;
|
|
23
|
-
};
|
|
24
|
-
radioValues: {
|
|
25
|
-
type: () => RadioButtonType[];
|
|
26
|
-
};
|
|
27
|
-
resetRadio: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
}>> & {
|
|
32
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
onResetted?: ((...args: any[]) => any) | undefined;
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
initialValue?: RadioButtonType | undefined;
|
|
4
|
+
radioValues?: RadioButtonType[] | undefined;
|
|
5
|
+
resetRadio?: boolean | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
resetRadio: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (args_0: RadioButtonType) => void;
|
|
10
|
+
resetted: () => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
initialValue?: RadioButtonType | undefined;
|
|
13
|
+
radioValues?: RadioButtonType[] | undefined;
|
|
14
|
+
resetRadio?: boolean | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
resetRadio: boolean;
|
|
17
|
+
}>>> & {
|
|
18
|
+
"onUpdate:modelValue"?: ((args_0: RadioButtonType) => any) | undefined;
|
|
19
|
+
onResetted?: (() => any) | undefined;
|
|
34
20
|
}, {
|
|
35
21
|
resetRadio: boolean;
|
|
36
|
-
}, {}
|
|
22
|
+
}, {}>, {
|
|
23
|
+
default?(_: {
|
|
24
|
+
handleClick: (elem: RadioButtonType) => void;
|
|
25
|
+
activeValue: {
|
|
26
|
+
id?: string | number | null | undefined;
|
|
27
|
+
label: string | number;
|
|
28
|
+
} | null;
|
|
29
|
+
reset: () => void;
|
|
30
|
+
isActive: (elem: RadioButtonType) => boolean;
|
|
31
|
+
}): any;
|
|
32
|
+
radio_elements?(_: {
|
|
33
|
+
handleClick: (elem: RadioButtonType) => void;
|
|
34
|
+
activeValue: {
|
|
35
|
+
id?: string | number | null | undefined;
|
|
36
|
+
label: string | number;
|
|
37
|
+
} | null;
|
|
38
|
+
reset: () => void;
|
|
39
|
+
isActive: (elem: RadioButtonType) => boolean;
|
|
40
|
+
}): any;
|
|
41
|
+
}>;
|
|
37
42
|
export default _default;
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
+
default: D[K];
|
|
55
|
+
}> : P[K];
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as V, useModel as E, ref as s, computed as f, onBeforeMount as N, watch as C, openBlock as g, createBlock as S, normalizeClass as U, withCtx as b, createVNode as A, renderSlot as B, createElementBlock as F, Fragment as K, renderList as P, unref as W, createElementVNode as j } from "vue";
|
|
2
2
|
import q from "../BaseInput.js";
|
|
3
3
|
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.C4VH7V0e.js";
|
|
4
|
-
import "./js.cookie.
|
|
4
|
+
import "./js.cookie.BQua9eWh.js";
|
|
5
5
|
import { _ as J } from "./SelectItem.vue_vue_type_script_setup_true_lang.BOLdDTLM.js";
|
|
6
6
|
import { useKeyboardController as Q } from "../useKeyboardController.js";
|
|
7
7
|
function R(i, k) {
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as O, useAttrs as v, reactive as g, computed as d, watch as y, onBeforeMount as C, renderSlot as k, createElementVNode as V, normalizeClass as B, openBlock as b, createElementBlock as $, Fragment as R, renderList as A, createBlock as K, unref as w, createCommentVNode as E } from "vue";
|
|
2
|
+
import { i as L } from "./ObjectUtils.B1Dk4qsM.js";
|
|
3
|
+
import "./js.cookie.BQua9eWh.js";
|
|
4
|
+
import G from "../CheckboxBtn.js";
|
|
5
|
+
const D = (l = "") => !l || !l.trim() ? "" : (l = l.trim(), l.replace(" ", "-").toLowerCase()), I = ["id", "data-cy"], S = /* @__PURE__ */ O({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "CheckboxGroup",
|
|
8
|
+
props: {
|
|
9
|
+
valuesObj: { default() {
|
|
10
|
+
return {};
|
|
11
|
+
} },
|
|
12
|
+
formCheckInline: { type: Boolean, default: !1 },
|
|
13
|
+
customClass: { default: "" },
|
|
14
|
+
reset: { type: Boolean, default: !1 },
|
|
15
|
+
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
16
|
+
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
17
|
+
manualToggleResetButton: { type: Boolean, default: !1 },
|
|
18
|
+
getKey: { default() {
|
|
19
|
+
return (l) => l.id;
|
|
20
|
+
} }
|
|
21
|
+
},
|
|
22
|
+
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
23
|
+
setup(l, { emit: f }) {
|
|
24
|
+
const m = v(), t = l, o = f, s = g({
|
|
25
|
+
checkedValuesObj: {}
|
|
26
|
+
}), c = d(() => {
|
|
27
|
+
for (const e in t.valuesObj) {
|
|
28
|
+
const a = t.valuesObj[e];
|
|
29
|
+
if (a.reset)
|
|
30
|
+
return a;
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
}), p = d(
|
|
34
|
+
() => Object.keys(t.valuesObj).length
|
|
35
|
+
), h = d(
|
|
36
|
+
() => Object.values(s.checkedValuesObj).reduce(
|
|
37
|
+
(e, a) => a.checked ? e + 1 : e,
|
|
38
|
+
0
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
y(
|
|
42
|
+
() => t.reset,
|
|
43
|
+
(e) => {
|
|
44
|
+
e && (i(), o("update:modelValue", []), o("resetted"));
|
|
45
|
+
}
|
|
46
|
+
), C(() => {
|
|
47
|
+
for (const e in t.valuesObj) {
|
|
48
|
+
const a = t.valuesObj[e];
|
|
49
|
+
a.checked = !!a.checked, s.checkedValuesObj[e] = a;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const i = () => {
|
|
53
|
+
for (const e in s.checkedValuesObj)
|
|
54
|
+
s.checkedValuesObj[e].checked = !1;
|
|
55
|
+
}, n = (e) => s.checkedValuesObj[t.getKey(e)].checked, u = (e) => {
|
|
56
|
+
if (!(!t.valuesObj || L(t.valuesObj))) {
|
|
57
|
+
if (t.valuesObj[e.id].reset && e.checked ? i() : c.value && !t.valuesObj[e.id].reset && (s.checkedValuesObj[t.getKey(c.value)].checked = !1), s.checkedValuesObj[e.id].checked = !!e.checked, t.autoCheckResetAll && c.value && h.value === p.value - 1)
|
|
58
|
+
for (const a in s.checkedValuesObj)
|
|
59
|
+
s.checkedValuesObj[a].checked = !!s.checkedValuesObj[a].reset;
|
|
60
|
+
t.autoCheckResetEmpty && c.value && !h.value && (!t.manualToggleResetButton || !t.valuesObj[e.id].reset) && (s.checkedValuesObj[t.getKey(c.value)].checked = !0), o(
|
|
61
|
+
"update:modelValue",
|
|
62
|
+
Object.values(s.checkedValuesObj).filter(
|
|
63
|
+
(a) => a.checked
|
|
64
|
+
)
|
|
65
|
+
), o("checkedGroup", m["group-id"] || "");
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return (e, a) => k(e.$slots, "default", {
|
|
69
|
+
isActive: n,
|
|
70
|
+
handleChange: u,
|
|
71
|
+
checkboxesData: e.valuesObj
|
|
72
|
+
}, () => [
|
|
73
|
+
V("div", {
|
|
74
|
+
id: e.$attrs["group-id"] || "",
|
|
75
|
+
class: B(["checkbox-group-container", e.$attrs.class || ""]),
|
|
76
|
+
"data-cy": e.$attrs["data-cy"] || ""
|
|
77
|
+
}, [
|
|
78
|
+
k(e.$slots, "checkbox_elements", {
|
|
79
|
+
isActive: n,
|
|
80
|
+
handleChange: u,
|
|
81
|
+
checkboxesData: e.valuesObj
|
|
82
|
+
}, () => [
|
|
83
|
+
e.valuesObj ? (b(!0), $(R, { key: 0 }, A(e.valuesObj, (r, N, j) => (b(), K(G, {
|
|
84
|
+
id: e.getKey(r),
|
|
85
|
+
key: j,
|
|
86
|
+
"data-cy": `checkbox_${w(D)(`${r.label}`)}`,
|
|
87
|
+
label: r.label,
|
|
88
|
+
inline: e.formCheckInline,
|
|
89
|
+
"wrapper-margin-y": e.$attrs["checkbox-padding-y"],
|
|
90
|
+
"model-value": n(r),
|
|
91
|
+
onChange: u
|
|
92
|
+
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : E("", !0)
|
|
93
|
+
])
|
|
94
|
+
], 10, I)
|
|
95
|
+
]);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export {
|
|
99
|
+
S as _
|
|
100
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent as p, ref as f, watch as h, onBeforeMount as v, renderSlot as i, createElementVNode as V, normalizeClass as k, openBlock as u, createElementBlock as B, Fragment as C, renderList as b, createBlock as y } from "vue";
|
|
2
|
+
import _ from "../RadioButton.js";
|
|
3
|
+
const $ = ["data-cy"], E = /* @__PURE__ */ p({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "RadioGroup",
|
|
6
|
+
props: {
|
|
7
|
+
initialValue: {},
|
|
8
|
+
radioValues: {},
|
|
9
|
+
resetRadio: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
emits: ["resetted", "update:modelValue"],
|
|
12
|
+
setup(d, { emit: c }) {
|
|
13
|
+
const l = d, r = c, a = f(null), t = (e) => {
|
|
14
|
+
a.value = e, r("update:modelValue", e);
|
|
15
|
+
}, n = () => {
|
|
16
|
+
a.value = null;
|
|
17
|
+
}, s = (e) => a.value ? a.value.id === e.id : !1;
|
|
18
|
+
return h(
|
|
19
|
+
() => l.resetRadio,
|
|
20
|
+
(e) => {
|
|
21
|
+
e && (n(), r("resetted"));
|
|
22
|
+
}
|
|
23
|
+
), v(() => {
|
|
24
|
+
l.initialValue && t(l.initialValue);
|
|
25
|
+
}), (e, g) => i(e.$slots, "default", {
|
|
26
|
+
handleClick: t,
|
|
27
|
+
activeValue: a.value,
|
|
28
|
+
reset: n,
|
|
29
|
+
isActive: s
|
|
30
|
+
}, () => [
|
|
31
|
+
V("div", {
|
|
32
|
+
class: k(["radio-group-container", e.$attrs.class || ""]),
|
|
33
|
+
"data-cy": e.$attrs["data-cy"] || ""
|
|
34
|
+
}, [
|
|
35
|
+
i(e.$slots, "radio_elements", {
|
|
36
|
+
handleClick: t,
|
|
37
|
+
activeValue: a.value,
|
|
38
|
+
reset: n,
|
|
39
|
+
isActive: s
|
|
40
|
+
}, () => [
|
|
41
|
+
(u(!0), B(C, null, b(e.radioValues, (o, m) => (u(), y(_, {
|
|
42
|
+
id: o.id,
|
|
43
|
+
key: m,
|
|
44
|
+
label: `${o.label}`,
|
|
45
|
+
"is-checked": o.label === a.value?.label,
|
|
46
|
+
onChange: t
|
|
47
|
+
}, null, 8, ["id", "label", "is-checked"]))), 128))
|
|
48
|
+
])
|
|
49
|
+
], 10, $)
|
|
50
|
+
]);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
E as _
|
|
55
|
+
};
|
|
@@ -2,7 +2,7 @@ import '../assets/SwiperCarousel.css';
|
|
|
2
2
|
import { defineComponent as Ce, reactive as ze, ref as ge, computed as D, onMounted as Xe, openBlock as Y, createElementBlock as $, normalizeClass as M, createElementVNode as k, renderSlot as Ye, Fragment as re, renderList as he, mergeProps as we, createCommentVNode as J, withModifiers as ne, nextTick as $e } from "vue";
|
|
3
3
|
import { Swiper as ve } from "swiper";
|
|
4
4
|
import { r as Me } from "./ObjectUtils.B1Dk4qsM.js";
|
|
5
|
-
import "./js.cookie.
|
|
5
|
+
import "./js.cookie.BQua9eWh.js";
|
|
6
6
|
function Ee(r) {
|
|
7
7
|
return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
|
|
8
8
|
}
|
|
@@ -551,11 +551,11 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
551
551
|
};
|
|
552
552
|
return Xe(async () => {
|
|
553
553
|
if (H(), I.value) {
|
|
554
|
-
const { Keyboard: c } = await import("./index.
|
|
554
|
+
const { Keyboard: c } = await import("./index.JiJftlAR.js");
|
|
555
555
|
d.swiperParams.modules?.push(c), d.swiperParams.keyboard = o.swiperOptions.keyboard;
|
|
556
556
|
}
|
|
557
557
|
if (t.value) {
|
|
558
|
-
const { Pagination: c } = await import("./index.
|
|
558
|
+
const { Pagination: c } = await import("./index.JiJftlAR.js");
|
|
559
559
|
d.swiperParams.modules?.push(c), d.swiperParams.pagination = {
|
|
560
560
|
el: ".swiper-pagination",
|
|
561
561
|
renderFraction: (h, b) => `<div class="tw-rounded-xs tw-border-w-black tw-border tw-border-solid tw-px-3 tw-bg-white tw-pt-[3px] tw-pb-[3px]">
|
|
@@ -567,7 +567,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
if (m.value) {
|
|
570
|
-
const { Navigation: c } = await import("./index.
|
|
570
|
+
const { Navigation: c } = await import("./index.JiJftlAR.js");
|
|
571
571
|
d.swiperParams.modules?.push(c);
|
|
572
572
|
const h = {
|
|
573
573
|
...o.swiperOptions.navigation.nextEl ?? {
|
|
@@ -583,7 +583,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
585
|
if (i.value) {
|
|
586
|
-
const { Autoplay: c } = await import("./index.
|
|
586
|
+
const { Autoplay: c } = await import("./index.JiJftlAR.js");
|
|
587
587
|
d.swiperParams.modules?.push(c), d.swiperParams.autoplay = o.swiperOptions.autoplay;
|
|
588
588
|
}
|
|
589
589
|
const l = {
|
|
@@ -596,7 +596,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
596
596
|
};
|
|
597
597
|
let f = null;
|
|
598
598
|
if (o.thumbSwiperOptions) {
|
|
599
|
-
const { Thumbs: c, FreeMode: h, Controller: b } = await import("./index.
|
|
599
|
+
const { Thumbs: c, FreeMode: h, Controller: b } = await import("./index.JiJftlAR.js");
|
|
600
600
|
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(b), f = new ve(`#thumb_${o.id}`, {
|
|
601
601
|
...o.thumbSwiperOptions,
|
|
602
602
|
modules: [h]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as N, a as W, e as R, b as X, c as G, d as Y, m as D, f as Z, h as j, n as J, i as F, j as Q, k as q } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.
|
|
2
|
-
import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.
|
|
1
|
+
import { g as N, a as W, e as R, b as X, c as G, d as Y, m as D, f as Z, h as j, n as J, i as F, j as Q, k as q } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.CBBHq8Cf.js";
|
|
2
|
+
import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang.CBBHq8Cf.js";
|
|
3
3
|
function te(k) {
|
|
4
4
|
let {
|
|
5
5
|
swiper: e,
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
let g;
|
|
2
|
+
const h = new Uint8Array(16);
|
|
3
|
+
function s() {
|
|
4
|
+
if (!g && (g = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !g))
|
|
5
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
+
return g(h);
|
|
7
|
+
}
|
|
8
|
+
const o = [];
|
|
9
|
+
for (let n = 0; n < 256; ++n)
|
|
10
|
+
o.push((n + 256).toString(16).slice(1));
|
|
11
|
+
function x(n, e = 0) {
|
|
12
|
+
return o[n[e + 0]] + o[n[e + 1]] + o[n[e + 2]] + o[n[e + 3]] + "-" + o[n[e + 4]] + o[n[e + 5]] + "-" + o[n[e + 6]] + o[n[e + 7]] + "-" + o[n[e + 8]] + o[n[e + 9]] + "-" + o[n[e + 10]] + o[n[e + 11]] + o[n[e + 12]] + o[n[e + 13]] + o[n[e + 14]] + o[n[e + 15]];
|
|
13
|
+
}
|
|
14
|
+
const C = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), U = {
|
|
15
|
+
randomUUID: C
|
|
16
|
+
};
|
|
17
|
+
function a(n, e, c) {
|
|
18
|
+
if (U.randomUUID && !e && !n)
|
|
19
|
+
return U.randomUUID();
|
|
20
|
+
n = n || {};
|
|
21
|
+
const i = n.random || (n.rng || s)();
|
|
22
|
+
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, e) {
|
|
23
|
+
c = c || 0;
|
|
24
|
+
for (let r = 0; r < 16; ++r)
|
|
25
|
+
e[c + r] = i[r];
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
return x(i);
|
|
29
|
+
}
|
|
30
|
+
a();
|
|
31
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
32
|
+
function l(n) {
|
|
33
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
34
|
+
var c = arguments[e];
|
|
35
|
+
for (var i in c)
|
|
36
|
+
n[i] = c[i];
|
|
37
|
+
}
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
var I = {
|
|
41
|
+
read: function(n) {
|
|
42
|
+
return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
43
|
+
},
|
|
44
|
+
write: function(n) {
|
|
45
|
+
return encodeURIComponent(n).replace(
|
|
46
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
47
|
+
decodeURIComponent
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function v(n, e) {
|
|
52
|
+
function c(r, p, t) {
|
|
53
|
+
if (!(typeof document > "u")) {
|
|
54
|
+
t = l({}, e, t), typeof t.expires == "number" && (t.expires = new Date(Date.now() + t.expires * 864e5)), t.expires && (t.expires = t.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
55
|
+
var d = "";
|
|
56
|
+
for (var u in t)
|
|
57
|
+
t[u] && (d += "; " + u, t[u] !== !0 && (d += "=" + t[u].split(";")[0]));
|
|
58
|
+
return document.cookie = r + "=" + n.write(p, r) + d;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function i(r) {
|
|
62
|
+
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
63
|
+
for (var p = document.cookie ? document.cookie.split("; ") : [], t = {}, d = 0; d < p.length; d++) {
|
|
64
|
+
var u = p[d].split("="), y = u.slice(1).join("=");
|
|
65
|
+
try {
|
|
66
|
+
var m = decodeURIComponent(u[0]);
|
|
67
|
+
if (t[m] = n.read(y, m), r === m)
|
|
68
|
+
break;
|
|
69
|
+
} catch {
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return r ? t[r] : t;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return Object.create(
|
|
76
|
+
{
|
|
77
|
+
set: c,
|
|
78
|
+
get: i,
|
|
79
|
+
remove: function(r, p) {
|
|
80
|
+
c(
|
|
81
|
+
r,
|
|
82
|
+
"",
|
|
83
|
+
l({}, p, {
|
|
84
|
+
expires: -1
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
},
|
|
88
|
+
withAttributes: function(r) {
|
|
89
|
+
return v(this.converter, l({}, this.attributes, r));
|
|
90
|
+
},
|
|
91
|
+
withConverter: function(r) {
|
|
92
|
+
return v(l({}, this.converter, r), this.attributes);
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
attributes: { value: Object.freeze(e) },
|
|
97
|
+
converter: { value: Object.freeze(n) }
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
v(I, { path: "/" });
|
package/dist/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_
|
|
|
5
5
|
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.B6RfqbZ9.js";
|
|
6
6
|
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.BOLdDTLM.js";
|
|
7
7
|
import { default as B } from "./CheckboxBtn.js";
|
|
8
|
-
import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.
|
|
8
|
+
import { _ as n } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js";
|
|
9
9
|
import { default as c } from "./RadioButton.js";
|
|
10
|
-
import {
|
|
10
|
+
import { _ as b } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DqQlcQd2.js";
|
|
11
11
|
import { _ as A } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.lyHlWiC5.js";
|
|
12
12
|
import { _ as C } from "./chunks/BaseAlert.vue_vue_type_script_setup_true_lang.HqYdk4yE.js";
|
|
13
|
-
import { _ as T } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.
|
|
13
|
+
import { _ as T } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.3aynnDI5.js";
|
|
14
14
|
import { _ as w } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
|
|
15
15
|
import { _ as k } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BrJbAMJ8.js";
|
|
16
16
|
import { _ as F } from "./chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js";
|
|
@@ -31,7 +31,7 @@ import { default as te } from "./BaseUploadFile.js";
|
|
|
31
31
|
import { default as fe } from "./BaseModal.js";
|
|
32
32
|
import { _ as me } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
|
|
33
33
|
import { _ as le } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
|
|
34
|
-
import { _ as Be } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.
|
|
34
|
+
import { _ as Be } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.CBBHq8Cf.js";
|
|
35
35
|
import { default as ne } from "./SwiperSlide.js";
|
|
36
36
|
import { useValidator as ce } from "./useValidator.js";
|
|
37
37
|
export {
|
package/package.json
CHANGED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, useAttrs as v, reactive as y, computed as n, watch as C, onBeforeMount as g, openBlock as u, createElementBlock as b, normalizeClass as V, renderSlot as B, Fragment as $, renderList as A, createBlock as K, unref as w, createCommentVNode as L } from "vue";
|
|
2
|
-
import { i as R } from "./ObjectUtils.B1Dk4qsM.js";
|
|
3
|
-
import "./js.cookie.BaTT4o7s.js";
|
|
4
|
-
import E from "../CheckboxBtn.js";
|
|
5
|
-
const G = (c = "") => !c || !c.trim() ? "" : (c = c.trim(), c.replace(" ", "-").toLowerCase()), I = ["id", "data-cy"], S = /* @__PURE__ */ O({
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "CheckboxGroup",
|
|
8
|
-
props: {
|
|
9
|
-
valuesObj: { default() {
|
|
10
|
-
return {};
|
|
11
|
-
} },
|
|
12
|
-
formCheckInline: { type: Boolean, default: !1 },
|
|
13
|
-
customClass: { default: "" },
|
|
14
|
-
reset: { type: Boolean, default: !1 },
|
|
15
|
-
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
16
|
-
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
17
|
-
getKey: { default() {
|
|
18
|
-
return (c) => c.id;
|
|
19
|
-
} }
|
|
20
|
-
},
|
|
21
|
-
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
22
|
-
setup(c, { emit: f }) {
|
|
23
|
-
const p = v(), t = c, r = f, s = y({
|
|
24
|
-
checkedValuesObj: {}
|
|
25
|
-
}), l = n(() => {
|
|
26
|
-
for (const e in t.valuesObj) {
|
|
27
|
-
const a = t.valuesObj[e];
|
|
28
|
-
if (a.reset)
|
|
29
|
-
return a;
|
|
30
|
-
}
|
|
31
|
-
return null;
|
|
32
|
-
}), m = n(
|
|
33
|
-
() => Object.keys(t.valuesObj).length
|
|
34
|
-
), d = n(
|
|
35
|
-
() => Object.values(s.checkedValuesObj).reduce(
|
|
36
|
-
(e, a) => a.checked ? e + 1 : e,
|
|
37
|
-
0
|
|
38
|
-
)
|
|
39
|
-
);
|
|
40
|
-
C(
|
|
41
|
-
() => t.reset,
|
|
42
|
-
(e) => {
|
|
43
|
-
e && (i(), r("update:modelValue", []), r("resetted"));
|
|
44
|
-
}
|
|
45
|
-
), g(() => {
|
|
46
|
-
for (const e in t.valuesObj) {
|
|
47
|
-
const a = t.valuesObj[e];
|
|
48
|
-
a.checked = !!a.checked, s.checkedValuesObj[e] = a;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
const i = () => {
|
|
52
|
-
for (const e in s.checkedValuesObj)
|
|
53
|
-
s.checkedValuesObj[e].checked = !1;
|
|
54
|
-
}, h = (e) => s.checkedValuesObj[t.getKey(e)].checked, k = (e) => {
|
|
55
|
-
if (!(!t.valuesObj || R(t.valuesObj))) {
|
|
56
|
-
if (t.valuesObj[e.id].reset && e.checked ? i() : l.value && !t.valuesObj[e.id].reset && (s.checkedValuesObj[t.getKey(l.value)].checked = !1), s.checkedValuesObj[e.id].checked = !!e.checked, t.autoCheckResetAll && l.value && d.value === m.value - 1)
|
|
57
|
-
for (const a in s.checkedValuesObj)
|
|
58
|
-
s.checkedValuesObj[a].checked = !!s.checkedValuesObj[a].reset;
|
|
59
|
-
t.autoCheckResetEmpty && l.value && !d.value && (s.checkedValuesObj[t.getKey(l.value)].checked = !0), r(
|
|
60
|
-
"update:modelValue",
|
|
61
|
-
Object.values(s.checkedValuesObj).filter(
|
|
62
|
-
(a) => a.checked
|
|
63
|
-
)
|
|
64
|
-
), r("checkedGroup", p["group-id"] || "");
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
return (e, a) => (u(), b("div", {
|
|
68
|
-
id: e.$attrs["group-id"] || "",
|
|
69
|
-
class: V(["checkbox-group-container", e.$attrs.class || ""]),
|
|
70
|
-
"data-cy": e.$attrs["data-cy"] || ""
|
|
71
|
-
}, [
|
|
72
|
-
B(e.$slots, "default", {
|
|
73
|
-
isActive: h,
|
|
74
|
-
handleChange: k,
|
|
75
|
-
checkboxesData: e.valuesObj
|
|
76
|
-
}, () => [
|
|
77
|
-
e.valuesObj ? (u(!0), b($, { key: 0 }, A(e.valuesObj, (o, z, j) => (u(), K(E, {
|
|
78
|
-
id: e.getKey(o),
|
|
79
|
-
key: j,
|
|
80
|
-
"data-cy": `checkbox_${w(G)(`${o.label}`)}`,
|
|
81
|
-
label: o.label,
|
|
82
|
-
inline: e.formCheckInline,
|
|
83
|
-
"wrapper-margin-y": e.$attrs["checkbox-padding-y"],
|
|
84
|
-
"model-value": h(o),
|
|
85
|
-
onChange: k
|
|
86
|
-
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : L("", !0)
|
|
87
|
-
])
|
|
88
|
-
], 10, I));
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
export {
|
|
92
|
-
S as _
|
|
93
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
let g;
|
|
2
|
-
const h = new Uint8Array(16);
|
|
3
|
-
function s() {
|
|
4
|
-
if (!g && (g = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !g))
|
|
5
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
-
return g(h);
|
|
7
|
-
}
|
|
8
|
-
const r = [];
|
|
9
|
-
for (let e = 0; e < 256; ++e)
|
|
10
|
-
r.push((e + 256).toString(16).slice(1));
|
|
11
|
-
function x(e, n = 0) {
|
|
12
|
-
return (r[e[n + 0]] + r[e[n + 1]] + r[e[n + 2]] + r[e[n + 3]] + "-" + r[e[n + 4]] + r[e[n + 5]] + "-" + r[e[n + 6]] + r[e[n + 7]] + "-" + r[e[n + 8]] + r[e[n + 9]] + "-" + r[e[n + 10]] + r[e[n + 11]] + r[e[n + 12]] + r[e[n + 13]] + r[e[n + 14]] + r[e[n + 15]]).toLowerCase();
|
|
13
|
-
}
|
|
14
|
-
const C = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), U = {
|
|
15
|
-
randomUUID: C
|
|
16
|
-
};
|
|
17
|
-
function a(e, n, c) {
|
|
18
|
-
if (U.randomUUID && !n && !e)
|
|
19
|
-
return U.randomUUID();
|
|
20
|
-
e = e || {};
|
|
21
|
-
const i = e.random || (e.rng || s)();
|
|
22
|
-
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, n) {
|
|
23
|
-
c = c || 0;
|
|
24
|
-
for (let o = 0; o < 16; ++o)
|
|
25
|
-
n[c + o] = i[o];
|
|
26
|
-
return n;
|
|
27
|
-
}
|
|
28
|
-
return x(i);
|
|
29
|
-
}
|
|
30
|
-
a();
|
|
31
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
32
|
-
function l(e) {
|
|
33
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
34
|
-
var c = arguments[n];
|
|
35
|
-
for (var i in c)
|
|
36
|
-
e[i] = c[i];
|
|
37
|
-
}
|
|
38
|
-
return e;
|
|
39
|
-
}
|
|
40
|
-
var I = {
|
|
41
|
-
read: function(e) {
|
|
42
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
43
|
-
},
|
|
44
|
-
write: function(e) {
|
|
45
|
-
return encodeURIComponent(e).replace(
|
|
46
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
47
|
-
decodeURIComponent
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
function v(e, n) {
|
|
52
|
-
function c(o, p, t) {
|
|
53
|
-
if (!(typeof document > "u")) {
|
|
54
|
-
t = l({}, n, t), typeof t.expires == "number" && (t.expires = new Date(Date.now() + t.expires * 864e5)), t.expires && (t.expires = t.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
55
|
-
var d = "";
|
|
56
|
-
for (var u in t)
|
|
57
|
-
t[u] && (d += "; " + u, t[u] !== !0 && (d += "=" + t[u].split(";")[0]));
|
|
58
|
-
return document.cookie = o + "=" + e.write(p, o) + d;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function i(o) {
|
|
62
|
-
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
63
|
-
for (var p = document.cookie ? document.cookie.split("; ") : [], t = {}, d = 0; d < p.length; d++) {
|
|
64
|
-
var u = p[d].split("="), y = u.slice(1).join("=");
|
|
65
|
-
try {
|
|
66
|
-
var m = decodeURIComponent(u[0]);
|
|
67
|
-
if (t[m] = e.read(y, m), o === m)
|
|
68
|
-
break;
|
|
69
|
-
} catch {
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return o ? t[o] : t;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return Object.create(
|
|
76
|
-
{
|
|
77
|
-
set: c,
|
|
78
|
-
get: i,
|
|
79
|
-
remove: function(o, p) {
|
|
80
|
-
c(
|
|
81
|
-
o,
|
|
82
|
-
"",
|
|
83
|
-
l({}, p, {
|
|
84
|
-
expires: -1
|
|
85
|
-
})
|
|
86
|
-
);
|
|
87
|
-
},
|
|
88
|
-
withAttributes: function(o) {
|
|
89
|
-
return v(this.converter, l({}, this.attributes, o));
|
|
90
|
-
},
|
|
91
|
-
withConverter: function(o) {
|
|
92
|
-
return v(l({}, this.converter, o), this.attributes);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
attributes: { value: Object.freeze(n) },
|
|
97
|
-
converter: { value: Object.freeze(e) }
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
v(I, { path: "/" });
|