@wikicasa-dev/components 1.2.18 → 1.2.20
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.vue_vue_type_script_setup_true_lang-BKT74JOA.cjs +1 -0
- package/dist/{BaseAutocomplete.vue_vue_type_script_setup_true_lang-CVOeKK-H.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang-CyKiFL9U.js} +80 -68
- package/dist/{CheckboxGroup.vue_vue_type_script_setup_true_lang-B28hp87l.js → CheckboxGroup.vue_vue_type_script_setup_true_lang-B7br31oI.js} +27 -26
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-r0BQC_c8.cjs +1 -0
- package/dist/ObjectUtils-B1Dk4qsM.js +12 -0
- package/dist/ObjectUtils-C5gq8MtL.cjs +1 -0
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-i2Sb9Y22.cjs +5 -0
- package/dist/{SwiperCarousel.vue_vue_type_style_index_0_lang-DUANcQKT.js → SwiperCarousel.vue_vue_type_style_index_0_lang-wAOLSjLf.js} +25 -24
- package/dist/{index-6DJ6N4f8.js → index-BgbVfPBC.js} +2 -2
- package/dist/{index-Dz30IWWY.cjs → index-zWmFcQq_.cjs} +1 -1
- package/dist/js.cookie-BMVAK0Pe.cjs +1 -0
- package/dist/js.cookie-BaTT4o7s.js +101 -0
- package/dist/lib/UIKit/BaseAutocomplete.cjs +1 -1
- package/dist/lib/UIKit/BaseAutocomplete.js +1 -1
- package/dist/lib/UIKit/BaseBtModal.cjs +1 -1
- package/dist/lib/UIKit/BaseBtModal.js +43 -35
- package/dist/lib/UIKit/BasePagination.cjs +1 -1
- package/dist/lib/UIKit/BasePagination.js +52 -39
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.cjs +1 -1
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/lib/components/carousel/SwiperCarousel.cjs +1 -1
- package/dist/lib/components/carousel/SwiperCarousel.js +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/BaseAutocomplete.vue_vue_type_script_setup_true_lang-LiuIZMOu.cjs +0 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BkB2KUyO.cjs +0 -1
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-CQsYG4_e.cjs +0 -5
- package/dist/poppins/poppins-v13-latin-300.eot +0 -0
- package/dist/poppins/poppins-v13-latin-300.svg +0 -321
- package/dist/poppins/poppins-v13-latin-300.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-300.woff +0 -0
- package/dist/poppins/poppins-v13-latin-300.woff2 +0 -0
- package/dist/poppins/poppins-v13-latin-500.eot +0 -0
- package/dist/poppins/poppins-v13-latin-500.svg +0 -323
- package/dist/poppins/poppins-v13-latin-500.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-500.woff +0 -0
- package/dist/poppins/poppins-v13-latin-500.woff2 +0 -0
- package/dist/poppins/poppins-v13-latin-600.eot +0 -0
- package/dist/poppins/poppins-v13-latin-600.svg +0 -322
- package/dist/poppins/poppins-v13-latin-600.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-600.woff +0 -0
- package/dist/poppins/poppins-v13-latin-600.woff2 +0 -0
- package/dist/poppins/poppins-v13-latin-regular.eot +0 -0
- package/dist/poppins/poppins-v13-latin-regular.svg +0 -323
- package/dist/poppins/poppins-v13-latin-regular.ttf +0 -0
- package/dist/poppins/poppins-v13-latin-regular.woff +0 -0
- package/dist/poppins/poppins-v13-latin-regular.woff2 +0 -0
- package/dist/utilities-CBCDB5EB.js +0 -1558
- package/dist/utilities-gwVlEyWn.cjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),S=require("./lib/UIKit/BaseInput.cjs"),I=require("./BaseDropDown.vue_vue_type_script_setup_true_lang-BdoYFj6h.cjs");require("./js.cookie-BMVAK0Pe.cjs");const M=require("./SelectItem.vue_vue_type_script_setup_true_lang-3ie26G8n.cjs"),q=require("./lib/composables/useKeyboardController.cjs");function D(u,p){return(...k)=>new Promise((l,r)=>{u.id&&clearTimeout(u.id),u.id=setTimeout(()=>{try{const i=p(...k);l(i)}catch(i){r(i)}},u.delay)})}const O=["innerHTML"],T=t.defineComponent({__name:"BaseAutocomplete",props:t.mergeModels({border:{type:Boolean,default:!0},isValid:{default:null},theme:{default:""},label:{default:""},disableCb:{type:Boolean,default:!1},onInputChangeCb:{},onOptionSelectedCb:{default:null},manualClose:{type:Boolean,default:!1},keepState:{default:null}},{modelValue:{default(){return{id:"",label:""}}},modelModifiers:{}}),emits:t.mergeModels(["dropdownClosed","changedValue","click"],["update:modelValue"]),setup(u,{expose:p,emit:k}){const l=u,r=t.useModel(u,"modelValue"),i=k,s=t.ref(""),n=t.ref([]),f=t.ref(null),c=t.ref(!1),o=t.ref(!1),m=t.ref(null),C=t.computed(()=>n.value.length);t.onBeforeMount(()=>{s.value=r.value?.label||"",f.value=D({delay:300},l.onInputChangeCb)});const{activeIdx:v,selectedIdx:h}=q.useKeyboardController({optionsLength:C,isDropdownOpen:o,disableSpaceHandler:!0}),g=t.computed(()=>{switch(l.theme){case"bordered":return"";case"all-bordered":return"uikit-rounded "+(o.value&&"uikit-rounded-b-none");case"all-bordered-thick":return"uikit-rounded-xl !uikit-h-[60px] "+(o.value&&"uikit-rounded-b-none");default:return""}}),y=t.computed(()=>{switch(l.theme){case"bordered":return"";case"all-bordered":return"uikit-border uikit-border-w-lavender uikit-border-solid uikit-rounded "+(o.value?"uikit-border-b-0 uikit-rounded-b-none":"");case"all-bordered-thick":return"uikit-rounded-xl !uikit-h-[60px]"+(o.value&&"uikit-rounded-b-none");default:return""}}),$=t.computed(()=>{let e="uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";switch(l.theme){case"bordered":return"before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";case"all-bordered":return e;case"all-bordered-thick":return e;default:return""}}),_=async e=>{if(s.value!==e&&(i("changedValue",e),s.value=e,!!l.onInputChangeCb)){if(r.value&&!e&&(r.value.label="",o.value=!1),!e||c.value){n.value=[],c.value=!1,h.value=-1,v.value=-1,await f.value(null);return}l.disableCb||(n.value=await f.value(e),n.value.length&&(o.value=!0))}},w=(e,a)=>{l.onOptionSelectedCb&&l.onOptionSelectedCb(e),c.value=!0,s.value=e.label,r.value=e,o.value=!1,h.value=a},B=()=>{n.value.length&&l.keepState!=="closed"&&(o.value=!0)};return t.watch(r,(e,a)=>{e!==a&&(s.value=e?.label||"")}),t.watch(h,e=>{if(e===-1)return;const a=n.value[e];c.value&&a.label===r.value?.label||w(a,e)}),t.watch(()=>l.manualClose,e=>{e&&(c.value&&(n.value=[]),i("dropdownClosed"))}),p({select:()=>{m.value?.select()}}),(e,a)=>(t.openBlock(),t.createBlock(I._sfc_main,{class:t.normalizeClass(e.$attrs["root-classes"]),"data-cy":`ac_${e.$attrs.id}`,"dropdown-element":"ul","dropdown-classes":[{"bordered-dropdown":e.theme==="bordered"},{"all-bordered-dropdown":e.theme==="all-bordered"},{"all-bordered-dropdown thick":e.theme==="all-bordered-thick"},{"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs":!e.theme},$.value,"!uikit-max-h-[210px] uikit-z-10",e.$attrs["dropdown-classes"]],"open-dropdown":o.value,"keep-state":n.value.length?"":"closed","onUpdate:dropdownState":a[0]||(a[0]=d=>o.value=d),onClick:a[1]||(a[1]=d=>{i("click"),B()})},{btn_slot:t.withCtx(()=>[t.createVNode(S,{id:`ac_input_${e.$attrs.id}`,ref_key:"baseInput",ref:m,"data-cy":`ac_input_${e.$attrs.id}`,"label-text":e.label,"model-value":r.value?.label||"","is-valid":e.isValid,disabled:e.$attrs.disabled,placeholder:e.$attrs.placeholder,"with-left-icon":!!e.$slots.lefticon,"with-right-icon":!!e.$slots.righticon,border:!e.theme,radius:!e.theme||e.theme==="bordered","input-class":[g.value,e.$attrs["input-classes"]],"fieldset-classes":[y.value,e.$attrs["fieldset-classes"]],"keep-floating-label":!!s.value,"onUpdate:modelValue":_},{leftIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"lefticon")]),righticon:t.withCtx(({handleClean:d})=>[t.renderSlot(e.$slots,"righticon",{handleClean:d})]),_:3},8,["id","data-cy","label-text","model-value","is-valid","disabled","placeholder","with-left-icon","with-right-icon","border","radius","input-class","fieldset-classes","keep-floating-label"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(d,b)=>(t.openBlock(),t.createBlock(M._sfc_main,{key:b,active:t.unref(v)===b,class:"uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",onClick:V=>w(d,b),onMouseover:V=>v.value=b},{default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:d.label},null,8,O)]),_:2},1032,["active","onClick","onMouseover"]))),128))]),_:3},8,["class","data-cy","dropdown-classes","open-dropdown","keep-state"]))}});exports._sfc_main=T;
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { defineComponent as z, mergeModels as
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { useKeyboardController as
|
|
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
|
+
import q from "./lib/UIKit/BaseInput.js";
|
|
3
|
+
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang-t-jias47.js";
|
|
4
|
+
import "./js.cookie-BaTT4o7s.js";
|
|
5
|
+
import { _ as J } from "./SelectItem.vue_vue_type_script_setup_true_lang-BOLdDTLM.js";
|
|
6
|
+
import { useKeyboardController as Q } from "./lib/composables/useKeyboardController.js";
|
|
7
|
+
function R(i, k) {
|
|
8
|
+
return (...m) => new Promise((t, a) => {
|
|
9
|
+
i.id && clearTimeout(i.id), i.id = setTimeout(() => {
|
|
10
|
+
try {
|
|
11
|
+
const n = k(...m);
|
|
12
|
+
t(n);
|
|
13
|
+
} catch (n) {
|
|
14
|
+
a(n);
|
|
15
|
+
}
|
|
16
|
+
}, i.delay);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
7
19
|
const X = ["innerHTML"], oe = /* @__PURE__ */ z({
|
|
8
20
|
__name: "BaseAutocomplete",
|
|
9
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ V({
|
|
10
22
|
border: { type: Boolean, default: !0 },
|
|
11
23
|
isValid: { default: null },
|
|
12
24
|
theme: { default: "" },
|
|
@@ -24,41 +36,41 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ z({
|
|
|
24
36
|
},
|
|
25
37
|
modelModifiers: {}
|
|
26
38
|
}),
|
|
27
|
-
emits: /* @__PURE__ */
|
|
28
|
-
setup(
|
|
29
|
-
const
|
|
39
|
+
emits: /* @__PURE__ */ V(["dropdownClosed", "changedValue", "click"], ["update:modelValue"]),
|
|
40
|
+
setup(i, { expose: k, emit: m }) {
|
|
41
|
+
const t = i, a = E(i, "modelValue"), n = m, d = s(""), r = s([]), v = s(null), c = s(!1), l = s(!1), $ = s(null), M = f(() => r.value.length);
|
|
30
42
|
N(() => {
|
|
31
|
-
|
|
43
|
+
d.value = a.value?.label || "", v.value = R({ delay: 300 }, t.onInputChangeCb);
|
|
32
44
|
});
|
|
33
|
-
const { activeIdx:
|
|
45
|
+
const { activeIdx: h, selectedIdx: w } = Q({
|
|
34
46
|
optionsLength: M,
|
|
35
|
-
isDropdownOpen:
|
|
47
|
+
isDropdownOpen: l,
|
|
36
48
|
disableSpaceHandler: !0
|
|
37
|
-
}), I =
|
|
38
|
-
switch (
|
|
49
|
+
}), I = f(() => {
|
|
50
|
+
switch (t.theme) {
|
|
39
51
|
case "bordered":
|
|
40
52
|
return "";
|
|
41
53
|
case "all-bordered":
|
|
42
|
-
return "uikit-rounded " + (
|
|
54
|
+
return "uikit-rounded " + (l.value && "uikit-rounded-b-none");
|
|
43
55
|
case "all-bordered-thick":
|
|
44
|
-
return "uikit-rounded-xl !uikit-h-[60px] " + (
|
|
56
|
+
return "uikit-rounded-xl !uikit-h-[60px] " + (l.value && "uikit-rounded-b-none");
|
|
45
57
|
default:
|
|
46
58
|
return "";
|
|
47
59
|
}
|
|
48
|
-
}), O =
|
|
49
|
-
switch (
|
|
60
|
+
}), O = f(() => {
|
|
61
|
+
switch (t.theme) {
|
|
50
62
|
case "bordered":
|
|
51
63
|
return "";
|
|
52
64
|
case "all-bordered":
|
|
53
|
-
return "uikit-border uikit-border-w-lavender uikit-border-solid uikit-rounded " + (
|
|
65
|
+
return "uikit-border uikit-border-w-lavender uikit-border-solid uikit-rounded " + (l.value ? "uikit-border-b-0 uikit-rounded-b-none" : "");
|
|
54
66
|
case "all-bordered-thick":
|
|
55
|
-
return "uikit-rounded-xl !uikit-h-[60px]" + (
|
|
67
|
+
return "uikit-rounded-xl !uikit-h-[60px]" + (l.value && "uikit-rounded-b-none");
|
|
56
68
|
default:
|
|
57
69
|
return "";
|
|
58
70
|
}
|
|
59
|
-
}),
|
|
71
|
+
}), T = f(() => {
|
|
60
72
|
let e = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
|
|
61
|
-
switch (
|
|
73
|
+
switch (t.theme) {
|
|
62
74
|
case "bordered":
|
|
63
75
|
return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
|
|
64
76
|
case "all-bordered":
|
|
@@ -68,36 +80,36 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ z({
|
|
|
68
80
|
default:
|
|
69
81
|
return "";
|
|
70
82
|
}
|
|
71
|
-
}),
|
|
72
|
-
if (
|
|
73
|
-
if (
|
|
74
|
-
|
|
83
|
+
}), L = async (e) => {
|
|
84
|
+
if (d.value !== e && (n("changedValue", e), d.value = e, !!t.onInputChangeCb)) {
|
|
85
|
+
if (a.value && !e && (a.value.label = "", l.value = !1), !e || c.value) {
|
|
86
|
+
r.value = [], c.value = !1, w.value = -1, h.value = -1, await v.value(null);
|
|
75
87
|
return;
|
|
76
88
|
}
|
|
77
|
-
|
|
89
|
+
t.disableCb || (r.value = await v.value(e), r.value.length && (l.value = !0));
|
|
78
90
|
}
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
91
|
+
}, y = (e, o) => {
|
|
92
|
+
t.onOptionSelectedCb && t.onOptionSelectedCb(e), c.value = !0, d.value = e.label, a.value = e, l.value = !1, w.value = o;
|
|
93
|
+
}, D = () => {
|
|
94
|
+
r.value.length && t.keepState !== "closed" && (l.value = !0);
|
|
83
95
|
};
|
|
84
|
-
return
|
|
85
|
-
e !==
|
|
86
|
-
}),
|
|
96
|
+
return C(a, (e, o) => {
|
|
97
|
+
e !== o && (d.value = e?.label || "");
|
|
98
|
+
}), C(w, (e) => {
|
|
87
99
|
if (e === -1)
|
|
88
100
|
return;
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
}),
|
|
92
|
-
() =>
|
|
101
|
+
const o = r.value[e];
|
|
102
|
+
c.value && o.label === a.value?.label || y(o, e);
|
|
103
|
+
}), C(
|
|
104
|
+
() => t.manualClose,
|
|
93
105
|
(e) => {
|
|
94
|
-
e && (
|
|
106
|
+
e && (c.value && (r.value = []), n("dropdownClosed"));
|
|
95
107
|
}
|
|
96
|
-
),
|
|
108
|
+
), k({
|
|
97
109
|
select: () => {
|
|
98
|
-
|
|
110
|
+
$.value?.select();
|
|
99
111
|
}
|
|
100
|
-
}), (e,
|
|
112
|
+
}), (e, o) => (g(), S(G, {
|
|
101
113
|
class: U(e.$attrs["root-classes"]),
|
|
102
114
|
"data-cy": `ac_${e.$attrs.id}`,
|
|
103
115
|
"dropdown-element": "ul",
|
|
@@ -108,25 +120,25 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ z({
|
|
|
108
120
|
{
|
|
109
121
|
"uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !e.theme
|
|
110
122
|
},
|
|
111
|
-
|
|
123
|
+
T.value,
|
|
112
124
|
"!uikit-max-h-[210px] uikit-z-10",
|
|
113
125
|
e.$attrs["dropdown-classes"]
|
|
114
126
|
],
|
|
115
|
-
"open-dropdown":
|
|
116
|
-
"keep-state":
|
|
117
|
-
"onUpdate:dropdownState":
|
|
118
|
-
onClick:
|
|
119
|
-
|
|
127
|
+
"open-dropdown": l.value,
|
|
128
|
+
"keep-state": r.value.length ? "" : "closed",
|
|
129
|
+
"onUpdate:dropdownState": o[0] || (o[0] = (u) => l.value = u),
|
|
130
|
+
onClick: o[1] || (o[1] = (u) => {
|
|
131
|
+
n("click"), D();
|
|
120
132
|
})
|
|
121
133
|
}, {
|
|
122
|
-
btn_slot:
|
|
123
|
-
A(
|
|
134
|
+
btn_slot: b(() => [
|
|
135
|
+
A(q, {
|
|
124
136
|
id: `ac_input_${e.$attrs.id}`,
|
|
125
137
|
ref_key: "baseInput",
|
|
126
|
-
ref:
|
|
138
|
+
ref: $,
|
|
127
139
|
"data-cy": `ac_input_${e.$attrs.id}`,
|
|
128
140
|
"label-text": e.label,
|
|
129
|
-
"model-value":
|
|
141
|
+
"model-value": a.value?.label || "",
|
|
130
142
|
"is-valid": e.isValid,
|
|
131
143
|
disabled: e.$attrs.disabled,
|
|
132
144
|
placeholder: e.$attrs.placeholder,
|
|
@@ -136,29 +148,29 @@ const X = ["innerHTML"], oe = /* @__PURE__ */ z({
|
|
|
136
148
|
radius: !e.theme || e.theme === "bordered",
|
|
137
149
|
"input-class": [I.value, e.$attrs["input-classes"]],
|
|
138
150
|
"fieldset-classes": [O.value, e.$attrs["fieldset-classes"]],
|
|
139
|
-
"keep-floating-label": !!
|
|
140
|
-
"onUpdate:modelValue":
|
|
151
|
+
"keep-floating-label": !!d.value,
|
|
152
|
+
"onUpdate:modelValue": L
|
|
141
153
|
}, {
|
|
142
|
-
leftIcon:
|
|
143
|
-
|
|
154
|
+
leftIcon: b(() => [
|
|
155
|
+
B(e.$slots, "lefticon")
|
|
144
156
|
]),
|
|
145
|
-
righticon:
|
|
146
|
-
|
|
157
|
+
righticon: b(({ handleClean: u }) => [
|
|
158
|
+
B(e.$slots, "righticon", { handleClean: u })
|
|
147
159
|
]),
|
|
148
160
|
_: 3
|
|
149
161
|
}, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "border", "radius", "input-class", "fieldset-classes", "keep-floating-label"])
|
|
150
162
|
]),
|
|
151
|
-
default:
|
|
152
|
-
(
|
|
153
|
-
key:
|
|
154
|
-
active:
|
|
163
|
+
default: b(() => [
|
|
164
|
+
(g(!0), F(K, null, P(r.value, (u, p) => (g(), S(J, {
|
|
165
|
+
key: p,
|
|
166
|
+
active: W(h) === p,
|
|
155
167
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
156
|
-
onClick: (
|
|
157
|
-
onMouseover: (
|
|
168
|
+
onClick: (H) => y(u, p),
|
|
169
|
+
onMouseover: (H) => h.value = p
|
|
158
170
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
161
|
-
innerHTML:
|
|
171
|
+
default: b(() => [
|
|
172
|
+
j("span", {
|
|
173
|
+
innerHTML: u.label
|
|
162
174
|
}, null, 8, X)
|
|
163
175
|
]),
|
|
164
176
|
_: 2
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as v, useAttrs as y, reactive as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as v, useAttrs as y, reactive as C, computed as d, watch as g, onBeforeMount as V, openBlock as u, createElementBlock as k, normalizeClass as B, renderSlot as $, Fragment as A, renderList as K, createBlock as w, unref as E, createCommentVNode as L } from "vue";
|
|
2
|
+
import { i as R } from "./ObjectUtils-B1Dk4qsM.js";
|
|
3
|
+
import "./js.cookie-BaTT4o7s.js";
|
|
4
|
+
import G from "./lib/UIKit/Checkbox/CheckboxBtn.js";
|
|
5
|
+
const I = (a = "") => !a || !a.trim() ? "" : (a = a.trim(), a.replace(" ", "-").toLowerCase()), _ = ["id", "data-cy"], q = /* @__PURE__ */ v({
|
|
5
6
|
inheritAttrs: !1,
|
|
6
7
|
__name: "CheckboxGroup",
|
|
7
8
|
props: {
|
|
@@ -14,32 +15,32 @@ const _ = ["id", "data-cy"], S = /* @__PURE__ */ v({
|
|
|
14
15
|
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
15
16
|
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
16
17
|
getKey: { default() {
|
|
17
|
-
return (
|
|
18
|
+
return (a) => a.id;
|
|
18
19
|
} }
|
|
19
20
|
},
|
|
20
21
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
21
|
-
setup(
|
|
22
|
-
const f = y(), t =
|
|
22
|
+
setup(a, { emit: b }) {
|
|
23
|
+
const f = y(), t = a, o = b, s = C({
|
|
23
24
|
checkedValuesObj: {}
|
|
24
|
-
}),
|
|
25
|
+
}), l = d(() => {
|
|
25
26
|
for (const e in t.valuesObj) {
|
|
26
27
|
const c = t.valuesObj[e];
|
|
27
28
|
if (c.reset)
|
|
28
29
|
return c;
|
|
29
30
|
}
|
|
30
31
|
return null;
|
|
31
|
-
}),
|
|
32
|
+
}), m = d(
|
|
32
33
|
() => Object.keys(t.valuesObj).length
|
|
33
|
-
),
|
|
34
|
+
), i = d(
|
|
34
35
|
() => Object.values(s.checkedValuesObj).reduce(
|
|
35
36
|
(e, c) => c.checked ? e + 1 : e,
|
|
36
37
|
0
|
|
37
38
|
)
|
|
38
39
|
);
|
|
39
|
-
|
|
40
|
+
g(
|
|
40
41
|
() => t.reset,
|
|
41
42
|
(e) => {
|
|
42
|
-
e && (
|
|
43
|
+
e && (h(), o("resetted"));
|
|
43
44
|
}
|
|
44
45
|
), V(() => {
|
|
45
46
|
for (const e in t.valuesObj) {
|
|
@@ -47,17 +48,17 @@ const _ = ["id", "data-cy"], S = /* @__PURE__ */ v({
|
|
|
47
48
|
c.checked = !!c.checked, s.checkedValuesObj[e] = c;
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
|
-
const
|
|
51
|
+
const h = () => {
|
|
51
52
|
for (const e in s.checkedValuesObj)
|
|
52
53
|
s.checkedValuesObj[e].checked = !1;
|
|
53
|
-
}, n = (e) => s.checkedValuesObj[t.getKey(e)].checked,
|
|
54
|
+
}, n = (e) => s.checkedValuesObj[t.getKey(e)].checked, p = (e) => {
|
|
54
55
|
s.checkedValuesObj[e.id].checked = !n(e);
|
|
55
56
|
}, j = (e) => {
|
|
56
|
-
if (!(!t.valuesObj ||
|
|
57
|
-
if (t.valuesObj[e.id].reset && e.checked ?
|
|
57
|
+
if (!(!t.valuesObj || R(t.valuesObj))) {
|
|
58
|
+
if (t.valuesObj[e.id].reset && e.checked ? h() : 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 && i.value === m.value - 1)
|
|
58
59
|
for (const c in s.checkedValuesObj)
|
|
59
60
|
s.checkedValuesObj[c].checked = !!s.checkedValuesObj[c].reset;
|
|
60
|
-
t.autoCheckResetEmpty &&
|
|
61
|
+
t.autoCheckResetEmpty && l.value && !i.value && (s.checkedValuesObj[t.getKey(l.value)].checked = !0), o(
|
|
61
62
|
"update:modelValue",
|
|
62
63
|
Object.values(s.checkedValuesObj).filter(
|
|
63
64
|
(c) => c.checked
|
|
@@ -65,29 +66,29 @@ const _ = ["id", "data-cy"], S = /* @__PURE__ */ v({
|
|
|
65
66
|
), o("checkedGroup", f["group-id"] || "");
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
|
-
return (e, c) => (u(),
|
|
69
|
+
return (e, c) => (u(), k("div", {
|
|
69
70
|
id: e.$attrs["group-id"] || "",
|
|
70
71
|
class: B(["checkbox-group-container", e.$attrs.class || ""]),
|
|
71
72
|
"data-cy": e.$attrs["data-cy"] || ""
|
|
72
73
|
}, [
|
|
73
74
|
$(e.$slots, "checkboxElement", {
|
|
74
75
|
isActive: n,
|
|
75
|
-
handleChange:
|
|
76
|
+
handleChange: p
|
|
76
77
|
}, () => [
|
|
77
|
-
e.valuesObj ? (u(!0),
|
|
78
|
-
id: e.getKey(
|
|
78
|
+
e.valuesObj ? (u(!0), k(A, { key: 0 }, K(e.valuesObj, (r, z, O) => (u(), w(G, {
|
|
79
|
+
id: e.getKey(r),
|
|
79
80
|
key: O,
|
|
80
|
-
"data-cy": `checkbox_${E(
|
|
81
|
-
label:
|
|
81
|
+
"data-cy": `checkbox_${E(I)(`${r.label}`)}`,
|
|
82
|
+
label: r.label,
|
|
82
83
|
inline: e.formCheckInline,
|
|
83
84
|
"wrapper-margin-y": e.$attrs["checkbox-padding-y"],
|
|
84
|
-
"model-value": n(
|
|
85
|
+
"model-value": n(r),
|
|
85
86
|
onChange: j
|
|
86
|
-
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) :
|
|
87
|
+
}, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : L("", !0)
|
|
87
88
|
])
|
|
88
89
|
], 10, _));
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
92
|
export {
|
|
92
|
-
|
|
93
|
+
q as _
|
|
93
94
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),m=require("./ObjectUtils-C5gq8MtL.cjs");require("./js.cookie-BMVAK0Pe.cjs");const O=require("./lib/UIKit/Checkbox/CheckboxBtn.cjs"),v=(l="")=>!l||!l.trim()?"":(l=l.trim(),l.replace(" ","-").toLowerCase()),y=["id","data-cy"],C=t.defineComponent({inheritAttrs:!1,__name:"CheckboxGroup",props:{valuesObj:{default(){return{}}},formCheckInline:{type:Boolean,default:!1},customClass:{default:""},reset:{type:Boolean,default:!1},autoCheckResetAll:{type:Boolean,default:!1},autoCheckResetEmpty:{type:Boolean,default:!1},getKey:{default(){return l=>l.id}}},emits:["resetted","update:modelValue","checkedGroup"],setup(l,{emit:k}){const h=t.useAttrs(),c=l,n=k,a=t.reactive({checkedValuesObj:{}}),r=t.computed(()=>{for(const e in c.valuesObj){const s=c.valuesObj[e];if(s.reset)return s}return null}),b=t.computed(()=>Object.keys(c.valuesObj).length),d=t.computed(()=>Object.values(a.checkedValuesObj).reduce((e,s)=>s.checked?e+1:e,0));t.watch(()=>c.reset,e=>{e&&(i(),n("resetted"))}),t.onBeforeMount(()=>{for(const e in c.valuesObj){const s=c.valuesObj[e];s.checked=!!s.checked,a.checkedValuesObj[e]=s}});const i=()=>{for(const e in a.checkedValuesObj)a.checkedValuesObj[e].checked=!1},u=e=>a.checkedValuesObj[c.getKey(e)].checked,f=e=>{a.checkedValuesObj[e.id].checked=!u(e)},p=e=>{if(!(!c.valuesObj||m.i(c.valuesObj))){if(c.valuesObj[e.id].reset&&e.checked?i():r.value&&!c.valuesObj[e.id].reset&&(a.checkedValuesObj[c.getKey(r.value)].checked=!1),a.checkedValuesObj[e.id].checked=!!e.checked,c.autoCheckResetAll&&r.value&&d.value===b.value-1)for(const s in a.checkedValuesObj)a.checkedValuesObj[s].checked=!!a.checkedValuesObj[s].reset;c.autoCheckResetEmpty&&r.value&&!d.value&&(a.checkedValuesObj[c.getKey(r.value)].checked=!0),n("update:modelValue",Object.values(a.checkedValuesObj).filter(s=>s.checked)),n("checkedGroup",h["group-id"]||"")}};return(e,s)=>(t.openBlock(),t.createElementBlock("div",{id:e.$attrs["group-id"]||"",class:t.normalizeClass(["checkbox-group-container",e.$attrs.class||""]),"data-cy":e.$attrs["data-cy"]||""},[t.renderSlot(e.$slots,"checkboxElement",{isActive:u,handleChange:f},()=>[e.valuesObj?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valuesObj,(o,g,j)=>(t.openBlock(),t.createBlock(O,{id:e.getKey(o),key:j,"data-cy":`checkbox_${t.unref(v)(`${o.label}`)}`,label:o.label,inline:e.formCheckInline,"wrapper-margin-y":e.$attrs["checkbox-padding-y"],"model-value":u(o),onChange:p},null,8,["id","data-cy","label","inline","wrapper-margin-y","model-value"]))),128)):t.createCommentVNode("",!0)])],10,y))}});exports._sfc_main=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function c(t,r){if(t)for(const i in t)r[i]=t[i]}function e(t){return!t||!Object.keys(t).length}exports.i=e;exports.r=c;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),ue=require("swiper"),he=require("./ObjectUtils-C5gq8MtL.cjs");require("./js.cookie-BMVAK0Pe.cjs");function me(r){return r!==null&&typeof r=="object"&&"constructor"in r&&r.constructor===Object}function te(r,e){r===void 0&&(r={}),e===void 0&&(e={}),Object.keys(e).forEach(u=>{typeof r[u]>"u"?r[u]=e[u]:me(e[u])&&me(r[u])&&Object.keys(e[u]).length>0&&te(r[u],e[u])})}const pe={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function fe(){const r=typeof document<"u"?document:{};return te(r,pe),r}const we={document:pe,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(r){return typeof setTimeout>"u"?(r(),null):setTimeout(r,0)},cancelAnimationFrame(r){typeof setTimeout>"u"||clearTimeout(r)}};function D(){const r=typeof window<"u"?window:{};return te(r,we),r}function Ee(r){return r===void 0&&(r=""),r.trim().split(" ").filter(e=>!!e.trim())}function ve(r,e){return e===void 0&&(e=0),setTimeout(r,e)}function ye(){return Date.now()}function be(r){const e=D();let u;return e.getComputedStyle&&(u=e.getComputedStyle(r,null)),!u&&r.currentStyle&&(u=r.currentStyle),u||(u=r.style),u}function de(r,e){e===void 0&&(e="x");const u=D();let l,v,d;const h=be(r);return u.WebKitCSSMatrix?(v=h.transform||h.webkitTransform,v.split(",").length>6&&(v=v.split(", ").map(b=>b.replace(",",".")).join(", ")),d=new u.WebKitCSSMatrix(v==="none"?"":v)):(d=h.MozTransform||h.OTransform||h.MsTransform||h.msTransform||h.transform||h.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=d.toString().split(",")),e==="x"&&(u.WebKitCSSMatrix?v=d.m41:l.length===16?v=parseFloat(l[12]):v=parseFloat(l[4])),e==="y"&&(u.WebKitCSSMatrix?v=d.m42:l.length===16?v=parseFloat(l[13]):v=parseFloat(l[5])),v||0}function Ce(r){return typeof r=="object"&&r!==null&&r.constructor&&Object.prototype.toString.call(r).slice(8,-1)==="Object"}function _(r,e){return e===void 0&&(e=""),[...r.children].filter(u=>u.matches(e))}function Se(r,e){e===void 0&&(e=[]);const u=document.createElement(r);return u.classList.add(...Array.isArray(e)?e:Ee(e)),u}function ee(r){const e=D(),u=fe(),l=r.getBoundingClientRect(),v=u.body,d=r.clientTop||v.clientTop||0,h=r.clientLeft||v.clientLeft||0,b=r===e?e.scrollY:r.scrollTop,$=r===e?e.scrollX:r.scrollLeft;return{top:l.top+b-d,left:l.left+$-h}}function ze(r){let e=r,u;if(e){for(u=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(u+=1);return u}}function j(r,e){const u=[];let l=r.parentElement;for(;l;)e?l.matches(e)&&u.push(l):u.push(l),l=l.parentElement;return u}function xe(r,e){function u(l){l.target===r&&(e.call(r,l),r.removeEventListener("transitionend",u))}e&&r.addEventListener("transitionend",u)}function Xe(r,e,u){const l=D();return u?r[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(r,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(r,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):r.offsetWidth}function Ye(r){return(Array.isArray(r)?r:[r]).filter(e=>!!e)}function ge(r){let{swiper:e,extendParams:u,on:l,emit:v}=r;const d=D();u({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let h=1,b=!1,$,O;const p=[],t={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},i={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let q=1;Object.defineProperty(e.zoom,"scale",{get(){return q},set(n){if(q!==n){const a=t.imageEl,o=t.slideEl;v("zoomChange",n,a,o)}q=n}});function B(){if(p.length<2)return 1;const n=p[0].pageX,a=p[0].pageY,o=p[1].pageX,E=p[1].pageY;return Math.sqrt((o-n)**2+(E-a)**2)}function M(){const n=e.params.zoom,a=t.imageWrapEl.getAttribute("data-swiper-zoom")||n.maxRatio;if(n.limitToOriginalSize&&t.imageEl&&t.imageEl.naturalWidth){const o=t.imageEl.naturalWidth/t.imageEl.offsetWidth;return Math.min(o,a)}return a}function G(){if(p.length<2)return{x:null,y:null};const n=t.imageEl.getBoundingClientRect();return[(p[0].pageX+(p[1].pageX-p[0].pageX)/2-n.x-d.scrollX)/h,(p[0].pageY+(p[1].pageY-p[0].pageY)/2-n.y-d.scrollY)/h]}function R(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function k(n){const a=R();return!!(n.target.matches(a)||e.slides.filter(o=>o.contains(n.target)).length>0)}function c(n){const a=`.${e.params.zoom.containerClass}`;return!!(n.target.matches(a)||[...e.hostEl.querySelectorAll(a)].filter(o=>o.contains(n.target)).length>0)}function g(n){if(n.pointerType==="mouse"&&p.splice(0,p.length),!k(n))return;const a=e.params.zoom;if($=!1,O=!1,p.push(n),!(p.length<2)){if($=!0,t.scaleStart=B(),!t.slideEl){t.slideEl=n.target.closest(`.${e.params.slideClass}, swiper-slide`),t.slideEl||(t.slideEl=e.slides[e.activeIndex]);let o=t.slideEl.querySelector(`.${a.containerClass}`);if(o&&(o=o.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),t.imageEl=o,o?t.imageWrapEl=j(t.imageEl,`.${a.containerClass}`)[0]:t.imageWrapEl=void 0,!t.imageWrapEl){t.imageEl=void 0;return}t.maxRatio=M()}if(t.imageEl){const[o,E]=G();t.originX=o,t.originY=E,t.imageEl.style.transitionDuration="0ms"}b=!0}}function m(n){if(!k(n))return;const a=e.params.zoom,o=e.zoom,E=p.findIndex(S=>S.pointerId===n.pointerId);E>=0&&(p[E]=n),!(p.length<2)&&(O=!0,t.scaleMove=B(),t.imageEl&&(o.scale=t.scaleMove/t.scaleStart*h,o.scale>t.maxRatio&&(o.scale=t.maxRatio-1+(o.scale-t.maxRatio+1)**.5),o.scale<a.minRatio&&(o.scale=a.minRatio+1-(a.minRatio-o.scale+1)**.5),t.imageEl.style.transform=`translate3d(0,0,0) scale(${o.scale})`))}function w(n){if(!k(n)||n.pointerType==="mouse"&&n.type==="pointerout")return;const a=e.params.zoom,o=e.zoom,E=p.findIndex(S=>S.pointerId===n.pointerId);E>=0&&p.splice(E,1),!(!$||!O)&&($=!1,O=!1,t.imageEl&&(o.scale=Math.max(Math.min(o.scale,t.maxRatio),a.minRatio),t.imageEl.style.transitionDuration=`${e.params.speed}ms`,t.imageEl.style.transform=`translate3d(0,0,0) scale(${o.scale})`,h=o.scale,b=!1,o.scale>1&&t.slideEl?t.slideEl.classList.add(`${a.zoomedSlideClass}`):o.scale<=1&&t.slideEl&&t.slideEl.classList.remove(`${a.zoomedSlideClass}`),o.scale===1&&(t.originX=0,t.originY=0,t.slideEl=void 0)))}function C(n){const a=e.device;if(!t.imageEl||i.isTouched)return;a.android&&n.cancelable&&n.preventDefault(),i.isTouched=!0;const o=p.length>0?p[0]:n;i.touchesStart.x=o.pageX,i.touchesStart.y=o.pageY}function V(n){if(!k(n)||!c(n))return;const a=e.zoom;if(!t.imageEl||!i.isTouched||!t.slideEl)return;i.isMoved||(i.width=t.imageEl.offsetWidth,i.height=t.imageEl.offsetHeight,i.startX=de(t.imageWrapEl,"x")||0,i.startY=de(t.imageWrapEl,"y")||0,t.slideWidth=t.slideEl.offsetWidth,t.slideHeight=t.slideEl.offsetHeight,t.imageWrapEl.style.transitionDuration="0ms");const o=i.width*a.scale,E=i.height*a.scale;if(o<t.slideWidth&&E<t.slideHeight)return;if(i.minX=Math.min(t.slideWidth/2-o/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-E/2,0),i.maxY=-i.minY,i.touchesCurrent.x=p.length>0?p[0].pageX:n.pageX,i.touchesCurrent.y=p.length>0?p[0].pageY:n.pageY,Math.max(Math.abs(i.touchesCurrent.x-i.touchesStart.x),Math.abs(i.touchesCurrent.y-i.touchesStart.y))>5&&(e.allowClick=!1),!i.isMoved&&!b){if(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x)){i.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y)){i.isTouched=!1;return}}n.cancelable&&n.preventDefault(),n.stopPropagation(),i.isMoved=!0;const P=(a.scale-h)/(t.maxRatio-e.params.zoom.minRatio),{originX:T,originY:L}=t;i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX+P*(i.width-T*2),i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY+P*(i.height-L*2),i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=i.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=i.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(i.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(i.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(i.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(i.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=i.touchesCurrent.x,f.prevPositionY=i.touchesCurrent.y,f.prevTime=Date.now(),t.imageWrapEl.style.transform=`translate3d(${i.currentX}px, ${i.currentY}px,0)`}function K(){const n=e.zoom;if(!t.imageEl)return;if(!i.isTouched||!i.isMoved){i.isTouched=!1,i.isMoved=!1;return}i.isTouched=!1,i.isMoved=!1;let a=300,o=300;const E=f.x*a,S=i.currentX+E,P=f.y*o,T=i.currentY+P;f.x!==0&&(a=Math.abs((S-i.currentX)/f.x)),f.y!==0&&(o=Math.abs((T-i.currentY)/f.y));const L=Math.max(a,o);i.currentX=S,i.currentY=T;const N=i.width*n.scale,Y=i.height*n.scale;i.minX=Math.min(t.slideWidth/2-N/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-Y/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.imageWrapEl.style.transitionDuration=`${L}ms`,t.imageWrapEl.style.transform=`translate3d(${i.currentX}px, ${i.currentY}px,0)`}function y(){const n=e.zoom;t.slideEl&&e.activeIndex!==e.slides.indexOf(t.slideEl)&&(t.imageEl&&(t.imageEl.style.transform="translate3d(0,0,0) scale(1)"),t.imageWrapEl&&(t.imageWrapEl.style.transform="translate3d(0,0,0)"),t.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),n.scale=1,h=1,t.slideEl=void 0,t.imageEl=void 0,t.imageWrapEl=void 0,t.originX=0,t.originY=0)}function z(n){const a=e.zoom,o=e.params.zoom;if(!t.slideEl){n&&n.target&&(t.slideEl=n.target.closest(`.${e.params.slideClass}, swiper-slide`)),t.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?t.slideEl=_(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:t.slideEl=e.slides[e.activeIndex]);let A=t.slideEl.querySelector(`.${o.containerClass}`);A&&(A=A.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),t.imageEl=A,A?t.imageWrapEl=j(t.imageEl,`.${o.containerClass}`)[0]:t.imageWrapEl=void 0}if(!t.imageEl||!t.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),t.slideEl.classList.add(`${o.zoomedSlideClass}`);let E,S,P,T,L,N,Y,W,se,ae,oe,le,H,F,Z,U,J,Q;typeof i.touchesStart.x>"u"&&n?(E=n.pageX,S=n.pageY):(E=i.touchesStart.x,S=i.touchesStart.y);const I=typeof n=="number"?n:null;h===1&&I&&(E=void 0,S=void 0);const ce=M();a.scale=I||ce,h=I||ce,n&&!(h===1&&I)?(J=t.slideEl.offsetWidth,Q=t.slideEl.offsetHeight,P=ee(t.slideEl).left+d.scrollX,T=ee(t.slideEl).top+d.scrollY,L=P+J/2-E,N=T+Q/2-S,se=t.imageEl.offsetWidth,ae=t.imageEl.offsetHeight,oe=se*a.scale,le=ae*a.scale,H=Math.min(J/2-oe/2,0),F=Math.min(Q/2-le/2,0),Z=-H,U=-F,Y=L*a.scale,W=N*a.scale,Y<H&&(Y=H),Y>Z&&(Y=Z),W<F&&(W=F),W>U&&(W=U)):(Y=0,W=0),I&&a.scale===1&&(t.originX=0,t.originY=0),t.imageWrapEl.style.transitionDuration="300ms",t.imageWrapEl.style.transform=`translate3d(${Y}px, ${W}px,0)`,t.imageEl.style.transitionDuration="300ms",t.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`}function x(){const n=e.zoom,a=e.params.zoom;if(!t.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?t.slideEl=_(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:t.slideEl=e.slides[e.activeIndex];let o=t.slideEl.querySelector(`.${a.containerClass}`);o&&(o=o.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),t.imageEl=o,o?t.imageWrapEl=j(t.imageEl,`.${a.containerClass}`)[0]:t.imageWrapEl=void 0}!t.imageEl||!t.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),n.scale=1,h=1,t.imageWrapEl.style.transitionDuration="300ms",t.imageWrapEl.style.transform="translate3d(0,0,0)",t.imageEl.style.transitionDuration="300ms",t.imageEl.style.transform="translate3d(0,0,0) scale(1)",t.slideEl.classList.remove(`${a.zoomedSlideClass}`),t.slideEl=void 0,t.originX=0,t.originY=0)}function X(n){const a=e.zoom;a.scale&&a.scale!==1?x():z(n)}function ie(){const n=e.params.passiveListeners?{passive:!0,capture:!1}:!1,a=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:n,activeListenerWithCapture:a}}function re(){const n=e.zoom;if(n.enabled)return;n.enabled=!0;const{passiveListener:a,activeListenerWithCapture:o}=ie();e.wrapperEl.addEventListener("pointerdown",g,a),e.wrapperEl.addEventListener("pointermove",m,o),["pointerup","pointercancel","pointerout"].forEach(E=>{e.wrapperEl.addEventListener(E,w,a)}),e.wrapperEl.addEventListener("pointermove",V,o)}function ne(){const n=e.zoom;if(!n.enabled)return;n.enabled=!1;const{passiveListener:a,activeListenerWithCapture:o}=ie();e.wrapperEl.removeEventListener("pointerdown",g,a),e.wrapperEl.removeEventListener("pointermove",m,o),["pointerup","pointercancel","pointerout"].forEach(E=>{e.wrapperEl.removeEventListener(E,w,a)}),e.wrapperEl.removeEventListener("pointermove",V,o)}l("init",()=>{e.params.zoom.enabled&&re()}),l("destroy",()=>{ne()}),l("touchStart",(n,a)=>{e.zoom.enabled&&C(a)}),l("touchEnd",(n,a)=>{e.zoom.enabled&&K()}),l("doubleTap",(n,a)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&X(a)}),l("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&y()}),l("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&y()}),Object.assign(e.zoom,{enable:re,disable:ne,in:z,out:x,toggle:X})}const $e=["id"],Me=["id","data-cy"],Pe=["data-idx","loading","alt","width","height","onLoad"],Te=["id"],We=["loading","alt"],Oe=s.defineComponent({inheritAttrs:!1,__name:"SwiperCarousel",props:{id:{},swiperOptions:{},thumbSwiperOptions:{},lazyLoadImages:{type:Boolean,default:!0},backgroundImage:{type:Boolean,default:!1},images:{},artDirection:{},shiftFirstImage:{type:Boolean,default:!1}},emits:["moved","click","firstSlideLoaded"],setup(r,{expose:e,emit:u}){const l=r,v=u,d=s.reactive({swiperParams:{modules:[ge]},swiper:null,initCarousel:!1}),h=s.ref(),b=s.computed(()=>l.swiperOptions?.slidesPerView||1),$=s.computed(()=>l.thumbSwiperOptions?.slidesPerView||1),O=s.computed(()=>!!l.swiperOptions?.keyboard),p=s.computed(()=>{const c=l.swiperOptions;return c?!!c.navigation:!1}),t=s.computed(()=>{const c=l.swiperOptions;return c?!!c.pagination:!1}),i=s.computed(()=>{const c=l.swiperOptions;return c?!!c.autoplay:!1}),f=s.computed(()=>l.swiperOptions?.effect||"slider"),q=()=>{l.swiperOptions&&he.r(l.swiperOptions,d.swiperParams)},B=(c,g=-1)=>{if(!c.images)return{src:c.src||""};let m="",w="",C="";if(l.artDirection){for(const y in l.artDirection){const{mq:z,width:x}=l.artDirection[y];x&&(C+=C?`,${z} ${parseInt(x)}px`:`${z} ${parseInt(x)}px`)}w=c.images.reduce((y,z,x)=>{const X=Object.values(l.artDirection)[x];return!X||!X.width||(y+=y?`, ${z.storagePath} ${X.width}`:`${z.storagePath} ${X.width}`),y},""),m=c.images[0].storagePath}else{let y=c.images;c.images.length>3?y=c.images.slice(2,5):l.shiftFirstImage&&(y[0]=y[1]),w=y.reduce((z,x,X)=>(X===0&&(m=`${x.storagePath}`),X>0&&(z+=", "),`${z}${x.storagePath} ${X+1}x`),"")}const V=m,K=w;return typeof b.value=="number"&&g>b.value?(m="",w="",{sizes:C,"data-src":V,"data-srcset":K}):{src:m,srcset:w,sizes:C}},M=[],G=c=>{if(typeof b.value=="string")return;const g=M[c];if(g&&!g.src&&(g.src=g.dataset.src||"",g.srcset=g.dataset.srcset||""),c<b.value||c+1>=(l.images??[]).length)return;const m=M[c+1];m&&!m.src&&(m.src=m?.dataset.src||"",m.srcset=m?.dataset.srcset||"")};e({moveTo(c,g=0,m=!0){d.swiper&&d.swiper.slideTo(c,g,m)}});const R=s.ref(null),k=c=>{c===0&&M&&M[c]&&s.nextTick(()=>{R.value?.setAttribute("data-first-slide-loaded","true"),v("firstSlideLoaded")})};return s.onMounted(async()=>{if(q(),O.value){const{Keyboard:m}=await Promise.resolve().then(()=>require("./index-zWmFcQq_.cjs"));d.swiperParams.modules?.push(m),d.swiperParams.keyboard=l.swiperOptions.keyboard}if(t.value){const{Pagination:m}=await Promise.resolve().then(()=>require("./index-zWmFcQq_.cjs"));d.swiperParams.modules?.push(m),await Promise.resolve().then(()=>require("./pagination-Dyvby5gX.cjs")),d.swiperParams.pagination={el:".swiper-pagination",renderFraction:(w,C)=>`<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]">
|
|
2
|
+
<span data-cy="swiper-pagination-current" class="${w}"></span>
|
|
3
|
+
/
|
|
4
|
+
<span data-cy="swiper-pagination-total" class="${C}"></span>
|
|
5
|
+
</div>`,...typeof d.swiperParams.pagination=="boolean"?{}:d.swiperParams.pagination}}if(p.value){const{Navigation:m}=await Promise.resolve().then(()=>require("./index-zWmFcQq_.cjs"));d.swiperParams.modules?.push(m),await Promise.resolve().then(()=>require("./navigation-Dyvby5gX.cjs"));const w={...l.swiperOptions.navigation.nextEl??{nextEl:".swiper-button-next"},...l.swiperOptions.navigation.prevEl??{prevEl:".swiper-button-prev"}};d.swiperParams.navigation={...typeof l.swiperOptions.navigation=="object"?l.swiperOptions.navigation:{},...w}}if(i.value){const{Autoplay:m}=await Promise.resolve().then(()=>require("./index-zWmFcQq_.cjs"));d.swiperParams.modules?.push(m),await Promise.resolve().then(()=>require("./autoplay-Dyvby5gX.cjs")),d.swiperParams.autoplay=l.swiperOptions.autoplay}const c={...d.swiperParams,on:{slideChange:m=>{G(m.activeIndex),v("moved",{activeIndex:m.activeIndex})}}};let g=null;if(l.thumbSwiperOptions){const{Thumbs:m,FreeMode:w,Controller:C}=await Promise.resolve().then(()=>require("./index-zWmFcQq_.cjs"));d.swiperParams.modules?.push(m),d.swiperParams.modules?.push(C),await Promise.resolve().then(()=>require("./thumbs-Dyvby5gX.cjs")),await Promise.resolve().then(()=>require("./free-mode-Dyvby5gX.cjs")),await Promise.resolve().then(()=>require("./controller-Dyvby5gX.cjs")),g=new ue.Swiper(`#thumb_${l.id}`,{...l.thumbSwiperOptions,modules:[w]}),c.thumbs={swiper:g}}c.lazyPreloadPrevNext=1,d.swiper=new ue.Swiper(`#${l.id}`,c),h.value?.classList.remove("tw-hidden")}),(c,g)=>(s.openBlock(),s.createElementBlock("div",{id:`root-${c.id}`,ref_key:"root",ref:R,class:s.normalizeClass(["swiper-carousel-root",c.$attrs["root-classes"]])},[s.createElementVNode("div",{id:c.id,"data-cy":c.$attrs["data-cy"],class:s.normalizeClass(["swiper",c.$attrs["swiper-classes"]])},[s.createElementVNode("div",{ref_key:"swiperWrapper",ref:h,class:s.normalizeClass(["swiper-wrapper",[c.$attrs["swiper-wrapper-classes"],f.value==="none"&&"no-transition"]]),onClick:g[0]||(g[0]=m=>v("click"))},[s.renderSlot(c.$slots,"swiper_slide",{},()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.images,(m,w)=>(s.openBlock(),s.createElementBlock("div",{key:`swiper_${c.id}_${w}`,class:s.normalizeClass(["swiper-slide",c.$attrs["swiper-slide-classes"]])},[s.createElementVNode("div",{class:s.normalizeClass(["swiper-zoom-container",c.$attrs["swiper-zoom-container-classes"]])},[c.backgroundImage?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("img",s.mergeProps({key:0,ref_for:!0,ref:C=>{M.push(C)},class:["disable-select",[c.$attrs["slide-img-classes"]||m.classes]],"data-idx":`${c.id}-slide-img-${w}`},B(m,w),{loading:c.lazyLoadImages||w>=b.value?"lazy":void 0,alt:m.alt,itemprop:"image",width:m.width,height:m.height,onLoad:C=>k(w)}),null,16,Pe))],2)],2))),128))])],2),t.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass([c.$attrs["swiper-pagination-classes"],"swiper-pagination [&.swiper-pagination-fraction]:tw-flex [&.swiper-pagination-fraction]:tw-justify-center"]),onClick:g[1]||(g[1]=s.withModifiers(()=>{},["stop"]))},null,2)):s.createCommentVNode("",!0),p.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"swiper-button-prev","data-cy":"swiper-button-prev",onClick:g[2]||(g[2]=s.withModifiers(()=>{},["stop"]))}),s.createElementVNode("div",{class:"swiper-button-next","data-cy":"swiper-button-next",onClick:g[3]||(g[3]=s.withModifiers(()=>{},["stop"]))})],64)):s.createCommentVNode("",!0)],10,Me),c.thumbSwiperOptions?(s.openBlock(),s.createElementBlock("div",{key:0,id:`thumb_${c.id}`,thumbsSlider:"",class:s.normalizeClass(["swiper",c.$attrs["thumb-swiper-classes"]])},[s.createElementVNode("div",{class:s.normalizeClass(["swiper-wrapper",c.$attrs["thumb-swiper-wrapper-classes"]])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.images,(m,w)=>(s.openBlock(),s.createElementBlock("div",{key:`thumb_${c.id}_${w}`,class:s.normalizeClass(["swiper-slide",c.$attrs["thumb-img-wrapper-classes"]])},[s.createElementVNode("img",s.mergeProps({class:c.$attrs["thumb-img-classes"]},B(m),{loading:w>=$.value?"lazy":void 0,alt:m.alt}),null,16,We)],2))),128))],2)],10,Te)):s.createCommentVNode("",!0)],10,$e))}});exports.Zoom=ge;exports._sfc_main=Oe;exports.createElement=Se;exports.elementChildren=_;exports.elementIndex=ze;exports.elementOffset=ee;exports.elementOuterSize=Xe;exports.elementParents=j;exports.elementTransitionEnd=xe;exports.getDocument=fe;exports.getWindow=D;exports.isObject=Ce;exports.makeElementsArray=Ye;exports.nextTick=ve;exports.now=ye;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
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 se, nextTick as $e } from "vue";
|
|
2
2
|
import { Swiper as ve } from "swiper";
|
|
3
|
-
import {
|
|
3
|
+
import { r as Me } from "./ObjectUtils-B1Dk4qsM.js";
|
|
4
|
+
import "./js.cookie-BaTT4o7s.js";
|
|
4
5
|
function Ee(r) {
|
|
5
6
|
return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
|
|
6
7
|
}
|
|
@@ -133,10 +134,10 @@ function B() {
|
|
|
133
134
|
function Pe(r) {
|
|
134
135
|
return r === void 0 && (r = ""), r.trim().split(" ").filter((e) => !!e.trim());
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
+
function Be(r, e) {
|
|
137
138
|
return e === void 0 && (e = 0), setTimeout(r, e);
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
+
function Ve() {
|
|
140
141
|
return Date.now();
|
|
141
142
|
}
|
|
142
143
|
function Le(r) {
|
|
@@ -151,13 +152,13 @@ function ye(r, e) {
|
|
|
151
152
|
const g = Le(r);
|
|
152
153
|
return u.WebKitCSSMatrix ? (v = g.transform || g.webkitTransform, v.split(",").length > 6 && (v = v.split(", ").map((y) => y.replace(",", ".")).join(", ")), d = new u.WebKitCSSMatrix(v === "none" ? "" : v)) : (d = g.MozTransform || g.OTransform || g.MsTransform || g.msTransform || g.transform || g.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), o = d.toString().split(",")), e === "x" && (u.WebKitCSSMatrix ? v = d.m41 : o.length === 16 ? v = parseFloat(o[12]) : v = parseFloat(o[4])), e === "y" && (u.WebKitCSSMatrix ? v = d.m42 : o.length === 16 ? v = parseFloat(o[13]) : v = parseFloat(o[5])), v || 0;
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function Ne(r) {
|
|
155
156
|
return typeof r == "object" && r !== null && r.constructor && Object.prototype.toString.call(r).slice(8, -1) === "Object";
|
|
156
157
|
}
|
|
157
158
|
function be(r, e) {
|
|
158
159
|
return e === void 0 && (e = ""), [...r.children].filter((u) => u.matches(e));
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
+
function Ge(r, e) {
|
|
161
162
|
e === void 0 && (e = []);
|
|
162
163
|
const u = document.createElement(r);
|
|
163
164
|
return u.classList.add(...Array.isArray(e) ? e : Pe(e)), u;
|
|
@@ -169,7 +170,7 @@ function Se(r) {
|
|
|
169
170
|
left: o.left + T - g
|
|
170
171
|
};
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
+
function Ke(r) {
|
|
173
174
|
let e = r, u;
|
|
174
175
|
if (e) {
|
|
175
176
|
for (u = 0; (e = e.previousSibling) !== null; )
|
|
@@ -184,17 +185,17 @@ function ne(r, e) {
|
|
|
184
185
|
e ? o.matches(e) && u.push(o) : u.push(o), o = o.parentElement;
|
|
185
186
|
return u;
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function Ze(r, e) {
|
|
188
189
|
function u(o) {
|
|
189
190
|
o.target === r && (e.call(r, o), r.removeEventListener("transitionend", u));
|
|
190
191
|
}
|
|
191
192
|
e && r.addEventListener("transitionend", u);
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function Je(r, e, u) {
|
|
194
195
|
const o = B();
|
|
195
196
|
return u ? r[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(o.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(o.getComputedStyle(r, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom")) : r.offsetWidth;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function Qe(r) {
|
|
198
199
|
return (Array.isArray(r) ? r : [r]).filter((e) => !!e);
|
|
199
200
|
}
|
|
200
201
|
function Oe(r) {
|
|
@@ -477,7 +478,7 @@ function Oe(r) {
|
|
|
477
478
|
toggle: z
|
|
478
479
|
});
|
|
479
480
|
}
|
|
480
|
-
const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "width", "height", "onLoad"], Re = ["id"], Ae = ["loading", "alt"],
|
|
481
|
+
const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "width", "height", "onLoad"], Re = ["id"], Ae = ["loading", "alt"], Ue = /* @__PURE__ */ Ce({
|
|
481
482
|
inheritAttrs: !1,
|
|
482
483
|
__name: "SwiperCarousel",
|
|
483
484
|
props: {
|
|
@@ -549,11 +550,11 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
549
550
|
};
|
|
550
551
|
return Xe(async () => {
|
|
551
552
|
if (H(), I.value) {
|
|
552
|
-
const { Keyboard: c } = await import("./index-
|
|
553
|
+
const { Keyboard: c } = await import("./index-BgbVfPBC.js");
|
|
553
554
|
d.swiperParams.modules?.push(c), d.swiperParams.keyboard = o.swiperOptions.keyboard;
|
|
554
555
|
}
|
|
555
556
|
if (t.value) {
|
|
556
|
-
const { Pagination: c } = await import("./index-
|
|
557
|
+
const { Pagination: c } = await import("./index-BgbVfPBC.js");
|
|
557
558
|
d.swiperParams.modules?.push(c), await import("./pagination-l0sNRNKZ.js"), d.swiperParams.pagination = {
|
|
558
559
|
el: ".swiper-pagination",
|
|
559
560
|
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]">
|
|
@@ -565,7 +566,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
565
566
|
};
|
|
566
567
|
}
|
|
567
568
|
if (m.value) {
|
|
568
|
-
const { Navigation: c } = await import("./index-
|
|
569
|
+
const { Navigation: c } = await import("./index-BgbVfPBC.js");
|
|
569
570
|
d.swiperParams.modules?.push(c), await import("./navigation-l0sNRNKZ.js");
|
|
570
571
|
const h = {
|
|
571
572
|
...o.swiperOptions.navigation.nextEl ?? {
|
|
@@ -581,7 +582,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
581
582
|
};
|
|
582
583
|
}
|
|
583
584
|
if (i.value) {
|
|
584
|
-
const { Autoplay: c } = await import("./index-
|
|
585
|
+
const { Autoplay: c } = await import("./index-BgbVfPBC.js");
|
|
585
586
|
d.swiperParams.modules?.push(c), await import("./autoplay-l0sNRNKZ.js"), d.swiperParams.autoplay = o.swiperOptions.autoplay;
|
|
586
587
|
}
|
|
587
588
|
const l = {
|
|
@@ -594,7 +595,7 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
594
595
|
};
|
|
595
596
|
let f = null;
|
|
596
597
|
if (o.thumbSwiperOptions) {
|
|
597
|
-
const { Thumbs: c, FreeMode: h, Controller: b } = await import("./index-
|
|
598
|
+
const { Thumbs: c, FreeMode: h, Controller: b } = await import("./index-BgbVfPBC.js");
|
|
598
599
|
d.swiperParams.modules?.push(c), d.swiperParams.modules?.push(b), await import("./thumbs-l0sNRNKZ.js"), await import("./free-mode-l0sNRNKZ.js"), await import("./controller-l0sNRNKZ.js"), f = new ve(`#thumb_${o.id}`, {
|
|
599
600
|
...o.thumbSwiperOptions,
|
|
600
601
|
modules: [h]
|
|
@@ -699,18 +700,18 @@ const De = ["id"], ke = ["id", "data-cy"], Ie = ["data-idx", "loading", "alt", "
|
|
|
699
700
|
});
|
|
700
701
|
export {
|
|
701
702
|
Oe as Z,
|
|
702
|
-
|
|
703
|
+
Ue as _,
|
|
703
704
|
B as a,
|
|
704
705
|
Se as b,
|
|
705
706
|
be as c,
|
|
706
|
-
|
|
707
|
+
Ge as d,
|
|
707
708
|
ne as e,
|
|
708
|
-
|
|
709
|
+
Je as f,
|
|
709
710
|
Te as g,
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
711
|
+
Ke as h,
|
|
712
|
+
Ze as i,
|
|
713
|
+
Ne as j,
|
|
714
|
+
Ve as k,
|
|
715
|
+
Qe as m,
|
|
716
|
+
Be as n
|
|
716
717
|
};
|
|
@@ -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-wAOLSjLf.js";
|
|
2
|
+
import { Z as ce } from "./SwiperCarousel.vue_vue_type_style_index_0_lang-wAOLSjLf.js";
|
|
3
3
|
function te(k) {
|
|
4
4
|
let {
|
|
5
5
|
swiper: e,
|