@wikicasa-dev/components 2.6.10 → 3.0.0-alpha.0
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/AccessibleSelect.js +4 -0
- package/dist/BaseAccordion.js +4 -0
- package/dist/BaseAccordionBtn.js +4 -0
- package/dist/BaseAccordionContent.js +4 -0
- package/dist/BaseAccordionItem.js +4 -0
- package/dist/BaseAlert.js +4 -0
- package/dist/BaseAutocomplete.js +4 -0
- package/dist/BaseBadge.js +4 -0
- package/dist/BaseBreadcrumb.js +4 -0
- package/dist/BaseButton.js +4 -0
- package/dist/BaseCard.js +38 -0
- package/dist/BaseComplexToggle.js +107 -0
- package/dist/BaseDropDown.js +4 -0
- package/dist/BaseFloatingLabel.js +41 -0
- package/dist/BaseIcon.js +28 -0
- package/dist/BaseInput.js +212 -0
- package/dist/BaseModal.js +4 -0
- package/dist/BasePagination.js +4 -0
- package/dist/BasePaper.js +14 -0
- package/dist/BaseShimmerLoader.js +22 -0
- package/dist/{UIKit/BaseSlider.vue.js → BaseSlider.js} +52 -49
- package/dist/BaseSnackbar.js +82 -0
- package/dist/BaseTab.js +4 -0
- package/dist/BaseTabList.js +4 -0
- package/dist/BaseTabPanel.js +4 -0
- package/dist/BaseTabView.js +4 -0
- package/dist/BaseTextarea.js +128 -0
- package/dist/BaseToggle.js +43 -0
- package/dist/BaseTooltip.js +42 -0
- package/dist/BaseUploadFile.js +4 -0
- package/dist/CheckboxBtn.js +76 -0
- package/dist/CheckboxGroup.js +4 -0
- package/dist/DoughnutChart.js +4 -0
- package/dist/IntersectionObservable.js +4 -0
- package/dist/IntersectionObserver.js +4 -0
- package/dist/LineChart.js +4 -0
- package/dist/RadioButton.js +4 -0
- package/dist/RadioGroup.js +4 -0
- package/dist/SelectItem.js +4 -0
- package/dist/ShimmerMultiLine.js +4 -0
- package/dist/{UIKit/Slider/SimpleSlider.vue.js → SimpleSlider.js} +30 -29
- package/dist/StaticSpinner.js +28 -0
- package/dist/SwiperCarousel.js +5 -0
- package/dist/{components/carousel/SwiperSlide.js → SwiperSlide.js} +3 -3
- package/dist/UIKit/AccessibleSelect.vue.d.ts +55 -0
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +32 -0
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +34 -0
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +30 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +60 -0
- package/dist/UIKit/BaseAlert.vue.d.ts +26 -0
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +48 -0
- package/dist/UIKit/BaseBadge.vue.d.ts +22 -0
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +35 -0
- package/dist/UIKit/BaseButton.vue.d.ts +46 -0
- package/dist/UIKit/BaseCard.vue.d.ts +29 -0
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +47 -0
- package/dist/UIKit/BaseDropDown.vue.d.ts +81 -0
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +17 -0
- package/dist/UIKit/BaseIcon.vue.d.ts +11 -0
- package/dist/UIKit/BaseInput.vue.d.ts +68 -0
- package/dist/UIKit/BaseModal.vue.d.ts +63 -0
- package/dist/UIKit/{BasePagination.d.ts → BasePagination.vue.d.ts} +5 -13
- package/dist/UIKit/BasePaper.vue.d.ts +2 -0
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +38 -0
- package/dist/UIKit/{BaseSlider.d.ts → BaseSlider.vue.d.ts} +7 -6
- package/dist/UIKit/BaseSnackbar.vue.d.ts +24 -0
- package/dist/UIKit/{BaseTextarea.d.ts → BaseTextarea.vue.d.ts} +10 -10
- package/dist/UIKit/BaseToggle.vue.d.ts +32 -0
- package/dist/UIKit/BaseTooltip.vue.d.ts +38 -0
- package/dist/UIKit/BaseUploadFile.vue.d.ts +42 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +53 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +71 -0
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +27 -0
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +54 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +21 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +63 -0
- package/dist/UIKit/Slider/{SimpleSlider.d.ts → SimpleSlider.vue.d.ts} +6 -6
- package/dist/UIKit/StaticSpinner.vue.d.ts +6 -0
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +23 -0
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +14 -0
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +24 -0
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +27 -0
- package/dist/UIKit/types.d.ts +52 -10
- package/dist/assets/BaseAlert.css +1 -0
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -0
- package/dist/assets/BaseComplexToggle.css +1 -0
- package/dist/assets/BaseFloatingLabel.css +1 -0
- package/dist/assets/BaseIcon.css +1 -0
- package/dist/assets/BaseInput.css +1 -0
- package/dist/assets/BaseModal.css +1 -0
- package/dist/assets/BasePaper.css +1 -0
- package/dist/assets/BaseShimmerLoader.css +1 -1
- package/dist/assets/BaseSlider.css +1 -0
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -0
- package/dist/assets/BaseToggle.css +1 -0
- package/dist/assets/BaseTooltip.css +1 -0
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/SimpleSlider.css +1 -1
- package/dist/assets/StaticSpinner.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -0
- package/dist/chart/DoughnutChart.vue.d.ts +7 -0
- package/dist/chart/LineChart.vue.d.ts +19 -0
- package/dist/chart/composables/useChartjsModules.d.ts +10 -0
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.QU1FSgY0.js +246 -0
- package/dist/chunks/ArrowIcon.Bq6Xr3uH.js +28 -0
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js +32 -0
- package/dist/chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DEk3SXLJ.js +60 -0
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Qp_TWYFE.js +34 -0
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.BJB5DnDs.js +143 -0
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +19 -0
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.S_XFg2zV.js +202 -0
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.DvAI34Oa.js +19 -0
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BrzeVW2_.js +58 -0
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.DHwyd5Gb.js +66 -0
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.OKB0gEpo.js +137 -0
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.a2qGyPhV.js +150 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DdFMVFIO.js +164 -0
- package/dist/{UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CxrS-Vq6.js +43 -0
- package/dist/chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js +24 -0
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGTsSVEG.js +105 -0
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.BL98w2D8.js +71 -0
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.B_9CFhd2.js +111 -0
- package/dist/chunks/CloseIcon.BZ4U3aiI.js +38 -0
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js +27 -0
- package/dist/chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js +24 -0
- package/dist/chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js +52 -0
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +42 -0
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.CxVJji0G.js +58 -0
- package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BNKSEicl.js +62 -0
- package/dist/chunks/SelectItem.vue_vue_type_script_setup_true_lang.jB3LVM3c.js +41 -0
- package/dist/chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CPUobRgG.js +29 -0
- package/dist/chunks/SwiperCarousel.BheiaKKw.js +748 -0
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
- package/dist/chunks/index.BJP9rQkU.js +887 -0
- package/dist/chunks/polyline.DjpLdMaW.js +5256 -0
- package/dist/chunks/useBreakpoints.BXk8Xcw3.js +5189 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +29 -0
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +57 -0
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +57 -0
- package/dist/components/carousel/SwiperSlide.vue.d.ts +17 -0
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/index.d.ts +45 -67
- package/dist/index.js +85 -150
- package/dist/useChartjsModules.js +48 -0
- package/dist/utils.js +3 -3
- package/package.json +38 -71
- package/dist/UIKit/AccessibleSelect.d.ts +0 -64
- package/dist/UIKit/AccessibleSelect.js +0 -5
- package/dist/UIKit/AccessibleSelect.vue.js +0 -206
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +0 -15
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +0 -22
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +0 -12
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +0 -21
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +0 -14
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +0 -24
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +0 -14
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +0 -22
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +0 -38
- package/dist/UIKit/Accordion/BaseAccordion.js +0 -4
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +0 -37
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +0 -33
- package/dist/UIKit/Accordion/BaseAccordionItem.js +0 -5
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +0 -82
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +0 -75
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +0 -5
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +0 -227
- package/dist/UIKit/BaseAlert.d.ts +0 -22
- package/dist/UIKit/BaseAlert.js +0 -5
- package/dist/UIKit/BaseAlert.vue.js +0 -19
- package/dist/UIKit/BaseAutocomplete.d.ts +0 -62
- package/dist/UIKit/BaseAutocomplete.js +0 -5
- package/dist/UIKit/BaseAutocomplete.vue.js +0 -195
- package/dist/UIKit/BaseBadge.d.ts +0 -18
- package/dist/UIKit/BaseBadge.js +0 -5
- package/dist/UIKit/BaseBadge.vue.js +0 -18
- package/dist/UIKit/BaseBreadcrumb.d.ts +0 -32
- package/dist/UIKit/BaseBreadcrumb.js +0 -4
- package/dist/UIKit/BaseBreadcrumb.vue.js +0 -57
- package/dist/UIKit/BaseButton.d.ts +0 -75
- package/dist/UIKit/BaseButton.js +0 -4
- package/dist/UIKit/BaseButton.vue.js +0 -88
- package/dist/UIKit/BaseComplexToggle.d.ts +0 -54
- package/dist/UIKit/BaseComplexToggle.js +0 -7
- package/dist/UIKit/BaseComplexToggle.vue.js +0 -106
- package/dist/UIKit/BaseDropDown.d.ts +0 -88
- package/dist/UIKit/BaseDropDown.js +0 -5
- package/dist/UIKit/BaseDropDown.vue.js +0 -152
- package/dist/UIKit/BaseFloatingLabel.d.ts +0 -24
- package/dist/UIKit/BaseFloatingLabel.js +0 -7
- package/dist/UIKit/BaseFloatingLabel.vue.js +0 -40
- package/dist/UIKit/BaseInput.d.ts +0 -63
- package/dist/UIKit/BaseInput.js +0 -7
- package/dist/UIKit/BaseInput.vue.js +0 -211
- package/dist/UIKit/BaseModal.d.ts +0 -65
- package/dist/UIKit/BaseModal.js +0 -5
- package/dist/UIKit/BaseModal.vue.js +0 -170
- package/dist/UIKit/BasePagination.js +0 -4
- package/dist/UIKit/BasePagination.vue.js +0 -228
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +0 -30
- package/dist/UIKit/BaseSelect/SelectItem.js +0 -4
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +0 -42
- package/dist/UIKit/BaseSlider.js +0 -7
- package/dist/UIKit/BaseSnackbar.d.ts +0 -64
- package/dist/UIKit/BaseSnackbar.js +0 -5
- package/dist/UIKit/BaseSnackbar.vue.js +0 -147
- package/dist/UIKit/BaseTextarea.js +0 -7
- package/dist/UIKit/BaseTextarea.vue.js +0 -127
- package/dist/UIKit/BaseToggle.d.ts +0 -28
- package/dist/UIKit/BaseToggle.js +0 -4
- package/dist/UIKit/BaseToggle.vue.js +0 -39
- package/dist/UIKit/BaseTooltip.d.ts +0 -35
- package/dist/UIKit/BaseTooltip.js +0 -7
- package/dist/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/UIKit/BaseUploadFile.d.ts +0 -38
- package/dist/UIKit/BaseUploadFile.js +0 -4
- package/dist/UIKit/BaseUploadFile.vue.js +0 -71
- package/dist/UIKit/Card/BaseCard.d.ts +0 -25
- package/dist/UIKit/Card/BaseCard.js +0 -5
- package/dist/UIKit/Card/BaseCard.vue.js +0 -37
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +0 -13
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +0 -12
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +0 -13
- package/dist/UIKit/Card/CardImagePrimitive.js +0 -4
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +0 -16
- package/dist/UIKit/Card/CardRootPrimitive.d.ts +0 -20
- package/dist/UIKit/Card/CardRootPrimitive.js +0 -5
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +0 -27
- package/dist/UIKit/Card/type.d.ts +0 -3
- package/dist/UIKit/Card/type.js +0 -4
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +0 -52
- package/dist/UIKit/Checkbox/CheckboxBtn.js +0 -5
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +0 -82
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +0 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.js +0 -4
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +0 -117
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +0 -41
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +0 -78
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +0 -31
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +0 -35
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +0 -26
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +0 -35
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.d.ts +0 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +0 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +0 -16
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +0 -25
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +0 -4
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +0 -32
- package/dist/UIKit/Radio/RadioButton.d.ts +0 -38
- package/dist/UIKit/Radio/RadioButton.js +0 -4
- package/dist/UIKit/Radio/RadioButton.vue.js +0 -60
- package/dist/UIKit/Radio/RadioGroup.d.ts +0 -64
- package/dist/UIKit/Radio/RadioGroup.js +0 -4
- package/dist/UIKit/Radio/RadioGroup.vue.js +0 -64
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +0 -38
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +0 -48
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +0 -17
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +0 -5
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +0 -45
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +0 -22
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +0 -4
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +0 -31
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +0 -15
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +0 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +0 -11
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +0 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +0 -31
- package/dist/UIKit/Slider/SimpleSlider.js +0 -7
- package/dist/UIKit/StaticSpinner.d.ts +0 -7
- package/dist/UIKit/StaticSpinner.js +0 -7
- package/dist/UIKit/StaticSpinner.vue.js +0 -27
- package/dist/UIKit/Tab/BaseTab.d.ts +0 -19
- package/dist/UIKit/Tab/BaseTab.js +0 -4
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -14
- package/dist/UIKit/Tab/BaseTabList.js +0 -4
- package/dist/UIKit/Tab/BaseTabList.vue.js +0 -45
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +0 -20
- package/dist/UIKit/Tab/BaseTabPanel.js +0 -4
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +0 -25
- package/dist/UIKit/Tab/BaseTabView.d.ts +0 -49
- package/dist/UIKit/Tab/BaseTabView.js +0 -4
- package/dist/UIKit/Tab/BaseTabView.vue.js +0 -106
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +0 -29
- package/dist/UIKit/Tab/v2/BaseTabs.js +0 -5
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +0 -39
- package/dist/UIKit/Tab/v2/BaseTabsContent.d.ts +0 -14
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +0 -24
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.d.ts +0 -16
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +0 -5
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +0 -34
- package/dist/UIKit/Tab/v2/BaseTabsList.d.ts +0 -14
- package/dist/UIKit/Tab/v2/BaseTabsList.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +0 -23
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.d.ts +0 -25
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +0 -31
- package/dist/UIKit/types.js +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/assets/AccessibleSelect.css +0 -1
- package/dist/assets/BaseAccordionItem.css +0 -1
- package/dist/assets/BaseAutocomplete.css +0 -1
- package/dist/assets/BaseComplexToggle2.css +0 -1
- package/dist/assets/BaseDropDown.css +0 -1
- package/dist/assets/BaseFloatingLabel2.css +0 -1
- package/dist/assets/BaseInput2.css +0 -1
- package/dist/assets/BaseSlider2.css +0 -1
- package/dist/assets/BaseTabs.css +0 -1
- package/dist/assets/BaseTabsIndicator.css +0 -1
- package/dist/assets/BaseTextarea2.css +0 -1
- package/dist/assets/BaseTooltip2.css +0 -1
- package/dist/assets/ClearableAutocomplete.css +0 -1
- package/dist/assets/RadioButtonItem.css +0 -1
- package/dist/assets/SwiperCarousel2.css +0 -1
- package/dist/assets/SwiperRootPrimitive.css +0 -1
- package/dist/assets/SwiperRootPrimitive2.css +0 -1
- package/dist/assets/SwiperSlideImagePrimitive.css +0 -1
- package/dist/assets/baseAlert.css +0 -1
- package/dist/assets/baseCard.css +0 -1
- package/dist/assets/baseComplexToggle.css +0 -1
- package/dist/assets/baseFloatingLabel.css +0 -1
- package/dist/assets/baseInput.css +0 -1
- package/dist/assets/baseModal.css +0 -1
- package/dist/assets/baseSlider.css +0 -1
- package/dist/assets/baseSpinner.css +0 -1
- package/dist/assets/baseTextarea.css +0 -1
- package/dist/assets/baseTooltip.css +0 -1
- package/dist/assets/swiper-free-mode.css +0 -1
- package/dist/assets/swiper-navigation.css +0 -1
- package/dist/assets/swiper-pagination.css +0 -1
- package/dist/assets/swiper-swiper.css +0 -1
- package/dist/assets/swiper-thumbs.css +0 -0
- package/dist/assets/swiper-zoom.css +0 -1
- package/dist/assets/tailwind.css +0 -1
- package/dist/chart/DoughnutChart.d.ts +0 -8
- package/dist/chart/DoughnutChart.js +0 -4
- package/dist/chart/DoughnutChart.vue.js +0 -26
- package/dist/chart/LineChart.d.ts +0 -11
- package/dist/chart/LineChart.js +0 -4
- package/dist/chart/LineChart.vue.js +0 -30
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +0 -22
- package/dist/components/IntersectionObserver/IntersectionObservable.js +0 -4
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
- package/dist/components/IntersectionObserver/IntersectionObserver.d.ts +0 -52
- package/dist/components/IntersectionObserver/IntersectionObserver.js +0 -4
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +0 -50
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +0 -21
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +0 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +0 -39
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +0 -22
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +0 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +0 -31
- package/dist/components/IntersectionObserver/v2/types.d.ts +0 -4
- package/dist/components/IntersectionObserver/v2/types.js +0 -6
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.d.ts +0 -9
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +0 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +0 -39
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.d.ts +0 -9
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +0 -5
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +0 -34
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +0 -20
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +0 -4
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +0 -21
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.d.ts +0 -51
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +0 -11
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +0 -113
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.d.ts +0 -18
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +0 -5
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +0 -40
- package/dist/components/carousel/SwiperCarousel.d.ts +0 -50
- package/dist/components/carousel/SwiperCarousel.js +0 -8
- package/dist/components/carousel/SwiperCarousel.vue.js +0 -231
- package/dist/components/carousel/SwiperSlide.d.ts +0 -13
- package/dist/composables/mock.d.ts +0 -25
- package/dist/composables/mock.js +0 -49
- package/dist/lazyModules/ChartJs/Chart.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Chart.js +0 -4
- package/dist/lazyModules/ChartJs/DoughnutChart/core.d.ts +0 -2
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +0 -6
- package/dist/lazyModules/ChartJs/LineChart/cartesian.d.ts +0 -2
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +0 -6
- package/dist/lazyModules/ChartJs/LineChart/core.d.ts +0 -2
- package/dist/lazyModules/ChartJs/LineChart/core.js +0 -6
- package/dist/lazyModules/ChartJs/Plugins/Legend.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +0 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.d.ts +0 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +0 -3
- package/dist/lazyModules/ChartJs/Plugins/Title.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Plugins/Title.js +0 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +0 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Autoplay/factory.js +0 -9
- package/dist/lazyModules/Swiper/Autoplay/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Autoplay/index.js +0 -6
- package/dist/lazyModules/Swiper/Controller/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Controller/factory.js +0 -7
- package/dist/lazyModules/Swiper/Controller/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Controller/index.js +0 -6
- package/dist/lazyModules/Swiper/FreeMode/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/FreeMode/factory.js +0 -9
- package/dist/lazyModules/Swiper/FreeMode/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/FreeMode/index.js +0 -6
- package/dist/lazyModules/Swiper/Keyboard/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Keyboard/factory.js +0 -9
- package/dist/lazyModules/Swiper/Keyboard/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Keyboard/index.js +0 -6
- package/dist/lazyModules/Swiper/Navigation/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Navigation/factory.js +0 -9
- package/dist/lazyModules/Swiper/Navigation/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Navigation/index.js +0 -6
- package/dist/lazyModules/Swiper/Pagination/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Pagination/factory.js +0 -7
- package/dist/lazyModules/Swiper/Pagination/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Pagination/index.js +0 -6
- package/dist/lazyModules/Swiper/Thumbs/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Thumbs/factory.js +0 -7
- package/dist/lazyModules/Swiper/Thumbs/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Thumbs/index.js +0 -6
- package/dist/lazyModules/Swiper/Zoom/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Zoom/factory.js +0 -9
- package/dist/lazyModules/Swiper/Zoom/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Zoom/index.js +0 -6
- package/dist/lazyModules/Swiper/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/factory.js +0 -13
- package/dist/lazyModules/Swiper/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/index.js +0 -5
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
- package/dist/lazyModules/Swiper/types.d.ts +0 -5
- package/dist/lazyModules/Swiper/types.js +0 -1
- package/dist/lazyModules/VueChartJs/Doughnut/factory.d.ts +0 -7
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +0 -12
- package/dist/lazyModules/VueChartJs/Doughnut/index.d.ts +0 -3
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +0 -5
- package/dist/lazyModules/VueChartJs/Line/factory.d.ts +0 -7
- package/dist/lazyModules/VueChartJs/Line/factory.js +0 -14
- package/dist/lazyModules/VueChartJs/Line/index.d.ts +0 -3
- package/dist/lazyModules/VueChartJs/Line/index.js +0 -5
- package/dist/types/index.d.ts +0 -33
- package/dist/types/index.js +0 -1
- /package/dist/{composables/useFloatingLabel.js → useFloatingLabel.js} +0 -0
- /package/dist/{composables/useValidator.js → useValidator.js} +0 -0
|
@@ -0,0 +1,887 @@
|
|
|
1
|
+
import { g as F, a as W, e as V, b as X, c as _, d as Y, m as P, f as Z, h as G, n as J, i as q, j as Q, k as R } from "./SwiperCarousel.BheiaKKw.js";
|
|
2
|
+
import { Z as ce } from "./SwiperCarousel.BheiaKKw.js";
|
|
3
|
+
function te(k) {
|
|
4
|
+
let {
|
|
5
|
+
swiper: e,
|
|
6
|
+
extendParams: A,
|
|
7
|
+
on: f,
|
|
8
|
+
emit: v
|
|
9
|
+
} = k;
|
|
10
|
+
const m = F(), x = W();
|
|
11
|
+
e.keyboard = {
|
|
12
|
+
enabled: !1
|
|
13
|
+
}, A({
|
|
14
|
+
keyboard: {
|
|
15
|
+
enabled: !1,
|
|
16
|
+
onlyInViewport: !0,
|
|
17
|
+
pageUpDown: !0
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
function w(i) {
|
|
21
|
+
if (!e.enabled) return;
|
|
22
|
+
const {
|
|
23
|
+
rtlTranslate: p
|
|
24
|
+
} = e;
|
|
25
|
+
let l = i;
|
|
26
|
+
l.originalEvent && (l = l.originalEvent);
|
|
27
|
+
const u = l.keyCode || l.charCode, n = e.params.keyboard.pageUpDown, s = n && u === 33, r = n && u === 34, o = u === 37, t = u === 39, a = u === 38, d = u === 40;
|
|
28
|
+
if (!e.allowSlideNext && (e.isHorizontal() && t || e.isVertical() && d || r) || !e.allowSlidePrev && (e.isHorizontal() && o || e.isVertical() && a || s))
|
|
29
|
+
return !1;
|
|
30
|
+
if (!(l.shiftKey || l.altKey || l.ctrlKey || l.metaKey) && !(m.activeElement && m.activeElement.nodeName && (m.activeElement.nodeName.toLowerCase() === "input" || m.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
|
31
|
+
if (e.params.keyboard.onlyInViewport && (s || r || o || t || a || d)) {
|
|
32
|
+
let g = !1;
|
|
33
|
+
if (V(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && V(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
34
|
+
return;
|
|
35
|
+
const T = e.el, D = T.clientWidth, E = T.clientHeight, h = x.innerWidth, M = x.innerHeight, b = X(T);
|
|
36
|
+
p && (b.left -= T.scrollLeft);
|
|
37
|
+
const B = [[b.left, b.top], [b.left + D, b.top], [b.left, b.top + E], [b.left + D, b.top + E]];
|
|
38
|
+
for (let L = 0; L < B.length; L += 1) {
|
|
39
|
+
const S = B[L];
|
|
40
|
+
if (S[0] >= 0 && S[0] <= h && S[1] >= 0 && S[1] <= M) {
|
|
41
|
+
if (S[0] === 0 && S[1] === 0) continue;
|
|
42
|
+
g = !0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!g) return;
|
|
46
|
+
}
|
|
47
|
+
e.isHorizontal() ? ((s || r || o || t) && (l.preventDefault ? l.preventDefault() : l.returnValue = !1), ((r || t) && !p || (s || o) && p) && e.slideNext(), ((s || o) && !p || (r || t) && p) && e.slidePrev()) : ((s || r || a || d) && (l.preventDefault ? l.preventDefault() : l.returnValue = !1), (r || d) && e.slideNext(), (s || a) && e.slidePrev()), v("keyPress", u);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function y() {
|
|
51
|
+
e.keyboard.enabled || (m.addEventListener("keydown", w), e.keyboard.enabled = !0);
|
|
52
|
+
}
|
|
53
|
+
function c() {
|
|
54
|
+
e.keyboard.enabled && (m.removeEventListener("keydown", w), e.keyboard.enabled = !1);
|
|
55
|
+
}
|
|
56
|
+
f("init", () => {
|
|
57
|
+
e.params.keyboard.enabled && y();
|
|
58
|
+
}), f("destroy", () => {
|
|
59
|
+
e.keyboard.enabled && c();
|
|
60
|
+
}), Object.assign(e.keyboard, {
|
|
61
|
+
enable: y,
|
|
62
|
+
disable: c
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function U(k, e, A, f) {
|
|
66
|
+
return k.params.createElements && Object.keys(f).forEach((v) => {
|
|
67
|
+
if (!A[v] && A.auto === !0) {
|
|
68
|
+
let m = _(k.el, `.${f[v]}`)[0];
|
|
69
|
+
m || (m = Y("div", f[v]), m.className = f[v], k.el.append(m)), A[v] = m, e[v] = m;
|
|
70
|
+
}
|
|
71
|
+
}), A;
|
|
72
|
+
}
|
|
73
|
+
function ae(k) {
|
|
74
|
+
let {
|
|
75
|
+
swiper: e,
|
|
76
|
+
extendParams: A,
|
|
77
|
+
on: f,
|
|
78
|
+
emit: v
|
|
79
|
+
} = k;
|
|
80
|
+
A({
|
|
81
|
+
navigation: {
|
|
82
|
+
nextEl: null,
|
|
83
|
+
prevEl: null,
|
|
84
|
+
hideOnClick: !1,
|
|
85
|
+
disabledClass: "swiper-button-disabled",
|
|
86
|
+
hiddenClass: "swiper-button-hidden",
|
|
87
|
+
lockClass: "swiper-button-lock",
|
|
88
|
+
navigationDisabledClass: "swiper-navigation-disabled"
|
|
89
|
+
}
|
|
90
|
+
}), e.navigation = {
|
|
91
|
+
nextEl: null,
|
|
92
|
+
prevEl: null
|
|
93
|
+
};
|
|
94
|
+
function m(n) {
|
|
95
|
+
let s;
|
|
96
|
+
return n && typeof n == "string" && e.isElement && (s = e.el.querySelector(n) || e.hostEl.querySelector(n), s) ? s : (n && (typeof n == "string" && (s = [...document.querySelectorAll(n)]), e.params.uniqueNavElements && typeof n == "string" && s && s.length > 1 && e.el.querySelectorAll(n).length === 1 ? s = e.el.querySelector(n) : s && s.length === 1 && (s = s[0])), n && !s ? n : s);
|
|
97
|
+
}
|
|
98
|
+
function x(n, s) {
|
|
99
|
+
const r = e.params.navigation;
|
|
100
|
+
n = P(n), n.forEach((o) => {
|
|
101
|
+
o && (o.classList[s ? "add" : "remove"](...r.disabledClass.split(" ")), o.tagName === "BUTTON" && (o.disabled = s), e.params.watchOverflow && e.enabled && o.classList[e.isLocked ? "add" : "remove"](r.lockClass));
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function w() {
|
|
105
|
+
const {
|
|
106
|
+
nextEl: n,
|
|
107
|
+
prevEl: s
|
|
108
|
+
} = e.navigation;
|
|
109
|
+
if (e.params.loop) {
|
|
110
|
+
x(s, !1), x(n, !1);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
x(s, e.isBeginning && !e.params.rewind), x(n, e.isEnd && !e.params.rewind);
|
|
114
|
+
}
|
|
115
|
+
function y(n) {
|
|
116
|
+
n.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), v("navigationPrev"));
|
|
117
|
+
}
|
|
118
|
+
function c(n) {
|
|
119
|
+
n.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), v("navigationNext"));
|
|
120
|
+
}
|
|
121
|
+
function i() {
|
|
122
|
+
const n = e.params.navigation;
|
|
123
|
+
if (e.params.navigation = U(e, e.originalParams.navigation, e.params.navigation, {
|
|
124
|
+
nextEl: "swiper-button-next",
|
|
125
|
+
prevEl: "swiper-button-prev"
|
|
126
|
+
}), !(n.nextEl || n.prevEl)) return;
|
|
127
|
+
let s = m(n.nextEl), r = m(n.prevEl);
|
|
128
|
+
Object.assign(e.navigation, {
|
|
129
|
+
nextEl: s,
|
|
130
|
+
prevEl: r
|
|
131
|
+
}), s = P(s), r = P(r);
|
|
132
|
+
const o = (t, a) => {
|
|
133
|
+
t && t.addEventListener("click", a === "next" ? c : y), !e.enabled && t && t.classList.add(...n.lockClass.split(" "));
|
|
134
|
+
};
|
|
135
|
+
s.forEach((t) => o(t, "next")), r.forEach((t) => o(t, "prev"));
|
|
136
|
+
}
|
|
137
|
+
function p() {
|
|
138
|
+
let {
|
|
139
|
+
nextEl: n,
|
|
140
|
+
prevEl: s
|
|
141
|
+
} = e.navigation;
|
|
142
|
+
n = P(n), s = P(s);
|
|
143
|
+
const r = (o, t) => {
|
|
144
|
+
o.removeEventListener("click", t === "next" ? c : y), o.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
145
|
+
};
|
|
146
|
+
n.forEach((o) => r(o, "next")), s.forEach((o) => r(o, "prev"));
|
|
147
|
+
}
|
|
148
|
+
f("init", () => {
|
|
149
|
+
e.params.navigation.enabled === !1 ? u() : (i(), w());
|
|
150
|
+
}), f("toEdge fromEdge lock unlock", () => {
|
|
151
|
+
w();
|
|
152
|
+
}), f("destroy", () => {
|
|
153
|
+
p();
|
|
154
|
+
}), f("enable disable", () => {
|
|
155
|
+
let {
|
|
156
|
+
nextEl: n,
|
|
157
|
+
prevEl: s
|
|
158
|
+
} = e.navigation;
|
|
159
|
+
if (n = P(n), s = P(s), e.enabled) {
|
|
160
|
+
w();
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
[...n, ...s].filter((r) => !!r).forEach((r) => r.classList.add(e.params.navigation.lockClass));
|
|
164
|
+
}), f("click", (n, s) => {
|
|
165
|
+
let {
|
|
166
|
+
nextEl: r,
|
|
167
|
+
prevEl: o
|
|
168
|
+
} = e.navigation;
|
|
169
|
+
r = P(r), o = P(o);
|
|
170
|
+
const t = s.target;
|
|
171
|
+
let a = o.includes(t) || r.includes(t);
|
|
172
|
+
if (e.isElement && !a) {
|
|
173
|
+
const d = s.path || s.composedPath && s.composedPath();
|
|
174
|
+
d && (a = d.find((g) => r.includes(g) || o.includes(g)));
|
|
175
|
+
}
|
|
176
|
+
if (e.params.navigation.hideOnClick && !a) {
|
|
177
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === t || e.pagination.el.contains(t))) return;
|
|
178
|
+
let d;
|
|
179
|
+
r.length ? d = r[0].classList.contains(e.params.navigation.hiddenClass) : o.length && (d = o[0].classList.contains(e.params.navigation.hiddenClass)), v(d === !0 ? "navigationShow" : "navigationHide"), [...r, ...o].filter((g) => !!g).forEach((g) => g.classList.toggle(e.params.navigation.hiddenClass));
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
const l = () => {
|
|
183
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), i(), w();
|
|
184
|
+
}, u = () => {
|
|
185
|
+
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
|
|
186
|
+
};
|
|
187
|
+
Object.assign(e.navigation, {
|
|
188
|
+
enable: l,
|
|
189
|
+
disable: u,
|
|
190
|
+
update: w,
|
|
191
|
+
init: i,
|
|
192
|
+
destroy: p
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
function H(k) {
|
|
196
|
+
return k === void 0 && (k = ""), `.${k.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
197
|
+
}
|
|
198
|
+
function ie(k) {
|
|
199
|
+
let {
|
|
200
|
+
swiper: e,
|
|
201
|
+
extendParams: A,
|
|
202
|
+
on: f,
|
|
203
|
+
emit: v
|
|
204
|
+
} = k;
|
|
205
|
+
const m = "swiper-pagination";
|
|
206
|
+
A({
|
|
207
|
+
pagination: {
|
|
208
|
+
el: null,
|
|
209
|
+
bulletElement: "span",
|
|
210
|
+
clickable: !1,
|
|
211
|
+
hideOnClick: !1,
|
|
212
|
+
renderBullet: null,
|
|
213
|
+
renderProgressbar: null,
|
|
214
|
+
renderFraction: null,
|
|
215
|
+
renderCustom: null,
|
|
216
|
+
progressbarOpposite: !1,
|
|
217
|
+
type: "bullets",
|
|
218
|
+
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
219
|
+
dynamicBullets: !1,
|
|
220
|
+
dynamicMainBullets: 1,
|
|
221
|
+
formatFractionCurrent: (t) => t,
|
|
222
|
+
formatFractionTotal: (t) => t,
|
|
223
|
+
bulletClass: `${m}-bullet`,
|
|
224
|
+
bulletActiveClass: `${m}-bullet-active`,
|
|
225
|
+
modifierClass: `${m}-`,
|
|
226
|
+
currentClass: `${m}-current`,
|
|
227
|
+
totalClass: `${m}-total`,
|
|
228
|
+
hiddenClass: `${m}-hidden`,
|
|
229
|
+
progressbarFillClass: `${m}-progressbar-fill`,
|
|
230
|
+
progressbarOppositeClass: `${m}-progressbar-opposite`,
|
|
231
|
+
clickableClass: `${m}-clickable`,
|
|
232
|
+
lockClass: `${m}-lock`,
|
|
233
|
+
horizontalClass: `${m}-horizontal`,
|
|
234
|
+
verticalClass: `${m}-vertical`,
|
|
235
|
+
paginationDisabledClass: `${m}-disabled`
|
|
236
|
+
}
|
|
237
|
+
}), e.pagination = {
|
|
238
|
+
el: null,
|
|
239
|
+
bullets: []
|
|
240
|
+
};
|
|
241
|
+
let x, w = 0;
|
|
242
|
+
function y() {
|
|
243
|
+
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
244
|
+
}
|
|
245
|
+
function c(t, a) {
|
|
246
|
+
const {
|
|
247
|
+
bulletActiveClass: d
|
|
248
|
+
} = e.params.pagination;
|
|
249
|
+
t && (t = t[`${a === "prev" ? "previous" : "next"}ElementSibling`], t && (t.classList.add(`${d}-${a}`), t = t[`${a === "prev" ? "previous" : "next"}ElementSibling`], t && t.classList.add(`${d}-${a}-${a}`)));
|
|
250
|
+
}
|
|
251
|
+
function i(t, a, d) {
|
|
252
|
+
if (t = t % d, a = a % d, a === t + 1)
|
|
253
|
+
return "next";
|
|
254
|
+
if (a === t - 1)
|
|
255
|
+
return "previous";
|
|
256
|
+
}
|
|
257
|
+
function p(t) {
|
|
258
|
+
const a = t.target.closest(H(e.params.pagination.bulletClass));
|
|
259
|
+
if (!a)
|
|
260
|
+
return;
|
|
261
|
+
t.preventDefault();
|
|
262
|
+
const d = G(a) * e.params.slidesPerGroup;
|
|
263
|
+
if (e.params.loop) {
|
|
264
|
+
if (e.realIndex === d) return;
|
|
265
|
+
const g = i(e.realIndex, d, e.slides.length);
|
|
266
|
+
g === "next" ? e.slideNext() : g === "previous" ? e.slidePrev() : e.slideToLoop(d);
|
|
267
|
+
} else
|
|
268
|
+
e.slideTo(d);
|
|
269
|
+
}
|
|
270
|
+
function l() {
|
|
271
|
+
const t = e.rtl, a = e.params.pagination;
|
|
272
|
+
if (y()) return;
|
|
273
|
+
let d = e.pagination.el;
|
|
274
|
+
d = P(d);
|
|
275
|
+
let g, T;
|
|
276
|
+
const D = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, E = e.params.loop ? Math.ceil(D / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
277
|
+
if (e.params.loop ? (T = e.previousRealIndex || 0, g = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (g = e.snapIndex, T = e.previousSnapIndex) : (T = e.previousIndex || 0, g = e.activeIndex || 0), a.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
278
|
+
const h = e.pagination.bullets;
|
|
279
|
+
let M, b, B;
|
|
280
|
+
if (a.dynamicBullets && (x = Z(h[0], e.isHorizontal() ? "width" : "height"), d.forEach((L) => {
|
|
281
|
+
L.style[e.isHorizontal() ? "width" : "height"] = `${x * (a.dynamicMainBullets + 4)}px`;
|
|
282
|
+
}), a.dynamicMainBullets > 1 && T !== void 0 && (w += g - (T || 0), w > a.dynamicMainBullets - 1 ? w = a.dynamicMainBullets - 1 : w < 0 && (w = 0)), M = Math.max(g - w, 0), b = M + (Math.min(h.length, a.dynamicMainBullets) - 1), B = (b + M) / 2), h.forEach((L) => {
|
|
283
|
+
const S = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((I) => `${a.bulletActiveClass}${I}`)].map((I) => typeof I == "string" && I.includes(" ") ? I.split(" ") : I).flat();
|
|
284
|
+
L.classList.remove(...S);
|
|
285
|
+
}), d.length > 1)
|
|
286
|
+
h.forEach((L) => {
|
|
287
|
+
const S = G(L);
|
|
288
|
+
S === g ? L.classList.add(...a.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), a.dynamicBullets && (S >= M && S <= b && L.classList.add(...`${a.bulletActiveClass}-main`.split(" ")), S === M && c(L, "prev"), S === b && c(L, "next"));
|
|
289
|
+
});
|
|
290
|
+
else {
|
|
291
|
+
const L = h[g];
|
|
292
|
+
if (L && L.classList.add(...a.bulletActiveClass.split(" ")), e.isElement && h.forEach((S, I) => {
|
|
293
|
+
S.setAttribute("part", I === g ? "bullet-active" : "bullet");
|
|
294
|
+
}), a.dynamicBullets) {
|
|
295
|
+
const S = h[M], I = h[b];
|
|
296
|
+
for (let N = M; N <= b; N += 1)
|
|
297
|
+
h[N] && h[N].classList.add(...`${a.bulletActiveClass}-main`.split(" "));
|
|
298
|
+
c(S, "prev"), c(I, "next");
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (a.dynamicBullets) {
|
|
302
|
+
const L = Math.min(h.length, a.dynamicMainBullets + 4), S = (x * L - x) / 2 - B * x, I = t ? "right" : "left";
|
|
303
|
+
h.forEach((N) => {
|
|
304
|
+
N.style[e.isHorizontal() ? I : "top"] = `${S}px`;
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
d.forEach((h, M) => {
|
|
309
|
+
if (a.type === "fraction" && (h.querySelectorAll(H(a.currentClass)).forEach((b) => {
|
|
310
|
+
b.textContent = a.formatFractionCurrent(g + 1);
|
|
311
|
+
}), h.querySelectorAll(H(a.totalClass)).forEach((b) => {
|
|
312
|
+
b.textContent = a.formatFractionTotal(E);
|
|
313
|
+
})), a.type === "progressbar") {
|
|
314
|
+
let b;
|
|
315
|
+
a.progressbarOpposite ? b = e.isHorizontal() ? "vertical" : "horizontal" : b = e.isHorizontal() ? "horizontal" : "vertical";
|
|
316
|
+
const B = (g + 1) / E;
|
|
317
|
+
let L = 1, S = 1;
|
|
318
|
+
b === "horizontal" ? L = B : S = B, h.querySelectorAll(H(a.progressbarFillClass)).forEach((I) => {
|
|
319
|
+
I.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${S})`, I.style.transitionDuration = `${e.params.speed}ms`;
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
a.type === "custom" && a.renderCustom ? (h.innerHTML = a.renderCustom(e, g + 1, E), M === 0 && v("paginationRender", h)) : (M === 0 && v("paginationRender", h), v("paginationUpdate", h)), e.params.watchOverflow && e.enabled && h.classList[e.isLocked ? "add" : "remove"](a.lockClass);
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function u() {
|
|
326
|
+
const t = e.params.pagination;
|
|
327
|
+
if (y()) return;
|
|
328
|
+
const a = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
|
|
329
|
+
let d = e.pagination.el;
|
|
330
|
+
d = P(d);
|
|
331
|
+
let g = "";
|
|
332
|
+
if (t.type === "bullets") {
|
|
333
|
+
let T = e.params.loop ? Math.ceil(a / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
334
|
+
e.params.freeMode && e.params.freeMode.enabled && T > a && (T = a);
|
|
335
|
+
for (let D = 0; D < T; D += 1)
|
|
336
|
+
t.renderBullet ? g += t.renderBullet.call(e, D, t.bulletClass) : g += `<${t.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${t.bulletClass}"></${t.bulletElement}>`;
|
|
337
|
+
}
|
|
338
|
+
t.type === "fraction" && (t.renderFraction ? g = t.renderFraction.call(e, t.currentClass, t.totalClass) : g = `<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`), t.type === "progressbar" && (t.renderProgressbar ? g = t.renderProgressbar.call(e, t.progressbarFillClass) : g = `<span class="${t.progressbarFillClass}"></span>`), e.pagination.bullets = [], d.forEach((T) => {
|
|
339
|
+
t.type !== "custom" && (T.innerHTML = g || ""), t.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(H(t.bulletClass)));
|
|
340
|
+
}), t.type !== "custom" && v("paginationRender", d[0]);
|
|
341
|
+
}
|
|
342
|
+
function n() {
|
|
343
|
+
e.params.pagination = U(e, e.originalParams.pagination, e.params.pagination, {
|
|
344
|
+
el: "swiper-pagination"
|
|
345
|
+
});
|
|
346
|
+
const t = e.params.pagination;
|
|
347
|
+
if (!t.el) return;
|
|
348
|
+
let a;
|
|
349
|
+
typeof t.el == "string" && e.isElement && (a = e.el.querySelector(t.el)), !a && typeof t.el == "string" && (a = [...document.querySelectorAll(t.el)]), a || (a = t.el), !(!a || a.length === 0) && (e.params.uniqueNavElements && typeof t.el == "string" && Array.isArray(a) && a.length > 1 && (a = [...e.el.querySelectorAll(t.el)], a.length > 1 && (a = a.find((d) => V(d, ".swiper")[0] === e.el))), Array.isArray(a) && a.length === 1 && (a = a[0]), Object.assign(e.pagination, {
|
|
350
|
+
el: a
|
|
351
|
+
}), a = P(a), a.forEach((d) => {
|
|
352
|
+
t.type === "bullets" && t.clickable && d.classList.add(...(t.clickableClass || "").split(" ")), d.classList.add(t.modifierClass + t.type), d.classList.add(e.isHorizontal() ? t.horizontalClass : t.verticalClass), t.type === "bullets" && t.dynamicBullets && (d.classList.add(`${t.modifierClass}${t.type}-dynamic`), w = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), t.type === "progressbar" && t.progressbarOpposite && d.classList.add(t.progressbarOppositeClass), t.clickable && d.addEventListener("click", p), e.enabled || d.classList.add(t.lockClass);
|
|
353
|
+
}));
|
|
354
|
+
}
|
|
355
|
+
function s() {
|
|
356
|
+
const t = e.params.pagination;
|
|
357
|
+
if (y()) return;
|
|
358
|
+
let a = e.pagination.el;
|
|
359
|
+
a && (a = P(a), a.forEach((d) => {
|
|
360
|
+
d.classList.remove(t.hiddenClass), d.classList.remove(t.modifierClass + t.type), d.classList.remove(e.isHorizontal() ? t.horizontalClass : t.verticalClass), t.clickable && (d.classList.remove(...(t.clickableClass || "").split(" ")), d.removeEventListener("click", p));
|
|
361
|
+
})), e.pagination.bullets && e.pagination.bullets.forEach((d) => d.classList.remove(...t.bulletActiveClass.split(" ")));
|
|
362
|
+
}
|
|
363
|
+
f("changeDirection", () => {
|
|
364
|
+
if (!e.pagination || !e.pagination.el) return;
|
|
365
|
+
const t = e.params.pagination;
|
|
366
|
+
let {
|
|
367
|
+
el: a
|
|
368
|
+
} = e.pagination;
|
|
369
|
+
a = P(a), a.forEach((d) => {
|
|
370
|
+
d.classList.remove(t.horizontalClass, t.verticalClass), d.classList.add(e.isHorizontal() ? t.horizontalClass : t.verticalClass);
|
|
371
|
+
});
|
|
372
|
+
}), f("init", () => {
|
|
373
|
+
e.params.pagination.enabled === !1 ? o() : (n(), u(), l());
|
|
374
|
+
}), f("activeIndexChange", () => {
|
|
375
|
+
typeof e.snapIndex > "u" && l();
|
|
376
|
+
}), f("snapIndexChange", () => {
|
|
377
|
+
l();
|
|
378
|
+
}), f("snapGridLengthChange", () => {
|
|
379
|
+
u(), l();
|
|
380
|
+
}), f("destroy", () => {
|
|
381
|
+
s();
|
|
382
|
+
}), f("enable disable", () => {
|
|
383
|
+
let {
|
|
384
|
+
el: t
|
|
385
|
+
} = e.pagination;
|
|
386
|
+
t && (t = P(t), t.forEach((a) => a.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
387
|
+
}), f("lock unlock", () => {
|
|
388
|
+
l();
|
|
389
|
+
}), f("click", (t, a) => {
|
|
390
|
+
const d = a.target, g = P(e.pagination.el);
|
|
391
|
+
if (e.params.pagination.el && e.params.pagination.hideOnClick && g && g.length > 0 && !d.classList.contains(e.params.pagination.bulletClass)) {
|
|
392
|
+
if (e.navigation && (e.navigation.nextEl && d === e.navigation.nextEl || e.navigation.prevEl && d === e.navigation.prevEl)) return;
|
|
393
|
+
const T = g[0].classList.contains(e.params.pagination.hiddenClass);
|
|
394
|
+
v(T === !0 ? "paginationShow" : "paginationHide"), g.forEach((D) => D.classList.toggle(e.params.pagination.hiddenClass));
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
const r = () => {
|
|
398
|
+
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
399
|
+
let {
|
|
400
|
+
el: t
|
|
401
|
+
} = e.pagination;
|
|
402
|
+
t && (t = P(t), t.forEach((a) => a.classList.remove(e.params.pagination.paginationDisabledClass))), n(), u(), l();
|
|
403
|
+
}, o = () => {
|
|
404
|
+
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
405
|
+
let {
|
|
406
|
+
el: t
|
|
407
|
+
} = e.pagination;
|
|
408
|
+
t && (t = P(t), t.forEach((a) => a.classList.add(e.params.pagination.paginationDisabledClass))), s();
|
|
409
|
+
};
|
|
410
|
+
Object.assign(e.pagination, {
|
|
411
|
+
enable: r,
|
|
412
|
+
disable: o,
|
|
413
|
+
render: u,
|
|
414
|
+
update: l,
|
|
415
|
+
init: n,
|
|
416
|
+
destroy: s
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
function se(k) {
|
|
420
|
+
let {
|
|
421
|
+
swiper: e,
|
|
422
|
+
extendParams: A,
|
|
423
|
+
on: f
|
|
424
|
+
} = k;
|
|
425
|
+
A({
|
|
426
|
+
controller: {
|
|
427
|
+
control: void 0,
|
|
428
|
+
inverse: !1,
|
|
429
|
+
by: "slide"
|
|
430
|
+
// or 'container'
|
|
431
|
+
}
|
|
432
|
+
}), e.controller = {
|
|
433
|
+
control: void 0
|
|
434
|
+
};
|
|
435
|
+
function v(c, i) {
|
|
436
|
+
const p = /* @__PURE__ */ function() {
|
|
437
|
+
let s, r, o;
|
|
438
|
+
return (t, a) => {
|
|
439
|
+
for (r = -1, s = t.length; s - r > 1; )
|
|
440
|
+
o = s + r >> 1, t[o] <= a ? r = o : s = o;
|
|
441
|
+
return s;
|
|
442
|
+
};
|
|
443
|
+
}();
|
|
444
|
+
this.x = c, this.y = i, this.lastIndex = c.length - 1;
|
|
445
|
+
let l, u;
|
|
446
|
+
return this.interpolate = function(s) {
|
|
447
|
+
return s ? (u = p(this.x, s), l = u - 1, (s - this.x[l]) * (this.y[u] - this.y[l]) / (this.x[u] - this.x[l]) + this.y[l]) : 0;
|
|
448
|
+
}, this;
|
|
449
|
+
}
|
|
450
|
+
function m(c) {
|
|
451
|
+
e.controller.spline = e.params.loop ? new v(e.slidesGrid, c.slidesGrid) : new v(e.snapGrid, c.snapGrid);
|
|
452
|
+
}
|
|
453
|
+
function x(c, i) {
|
|
454
|
+
const p = e.controller.control;
|
|
455
|
+
let l, u;
|
|
456
|
+
const n = e.constructor;
|
|
457
|
+
function s(r) {
|
|
458
|
+
if (r.destroyed) return;
|
|
459
|
+
const o = e.rtlTranslate ? -e.translate : e.translate;
|
|
460
|
+
e.params.controller.by === "slide" && (m(r), u = -e.controller.spline.interpolate(-o)), (!u || e.params.controller.by === "container") && (l = (r.maxTranslate() - r.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(l) || !Number.isFinite(l)) && (l = 1), u = (o - e.minTranslate()) * l + r.minTranslate()), e.params.controller.inverse && (u = r.maxTranslate() - u), r.updateProgress(u), r.setTranslate(u, e), r.updateActiveIndex(), r.updateSlidesClasses();
|
|
461
|
+
}
|
|
462
|
+
if (Array.isArray(p))
|
|
463
|
+
for (let r = 0; r < p.length; r += 1)
|
|
464
|
+
p[r] !== i && p[r] instanceof n && s(p[r]);
|
|
465
|
+
else p instanceof n && i !== p && s(p);
|
|
466
|
+
}
|
|
467
|
+
function w(c, i) {
|
|
468
|
+
const p = e.constructor, l = e.controller.control;
|
|
469
|
+
let u;
|
|
470
|
+
function n(s) {
|
|
471
|
+
s.destroyed || (s.setTransition(c, e), c !== 0 && (s.transitionStart(), s.params.autoHeight && J(() => {
|
|
472
|
+
s.updateAutoHeight();
|
|
473
|
+
}), q(s.wrapperEl, () => {
|
|
474
|
+
l && s.transitionEnd();
|
|
475
|
+
})));
|
|
476
|
+
}
|
|
477
|
+
if (Array.isArray(l))
|
|
478
|
+
for (u = 0; u < l.length; u += 1)
|
|
479
|
+
l[u] !== i && l[u] instanceof p && n(l[u]);
|
|
480
|
+
else l instanceof p && i !== l && n(l);
|
|
481
|
+
}
|
|
482
|
+
function y() {
|
|
483
|
+
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
|
|
484
|
+
}
|
|
485
|
+
f("beforeInit", () => {
|
|
486
|
+
if (typeof window < "u" && // eslint-disable-line
|
|
487
|
+
(typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
|
|
488
|
+
(typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((i) => {
|
|
489
|
+
if (e.controller.control || (e.controller.control = []), i && i.swiper)
|
|
490
|
+
e.controller.control.push(i.swiper);
|
|
491
|
+
else if (i) {
|
|
492
|
+
const p = `${e.params.eventsPrefix}init`, l = (u) => {
|
|
493
|
+
e.controller.control.push(u.detail[0]), e.update(), i.removeEventListener(p, l);
|
|
494
|
+
};
|
|
495
|
+
i.addEventListener(p, l);
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
e.controller.control = e.params.controller.control;
|
|
501
|
+
}), f("update", () => {
|
|
502
|
+
y();
|
|
503
|
+
}), f("resize", () => {
|
|
504
|
+
y();
|
|
505
|
+
}), f("observerUpdate", () => {
|
|
506
|
+
y();
|
|
507
|
+
}), f("setTranslate", (c, i, p) => {
|
|
508
|
+
!e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(i, p);
|
|
509
|
+
}), f("setTransition", (c, i, p) => {
|
|
510
|
+
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(i, p);
|
|
511
|
+
}), Object.assign(e.controller, {
|
|
512
|
+
setTranslate: x,
|
|
513
|
+
setTransition: w
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
function ne(k) {
|
|
517
|
+
let {
|
|
518
|
+
swiper: e,
|
|
519
|
+
extendParams: A,
|
|
520
|
+
on: f,
|
|
521
|
+
emit: v,
|
|
522
|
+
params: m
|
|
523
|
+
} = k;
|
|
524
|
+
e.autoplay = {
|
|
525
|
+
running: !1,
|
|
526
|
+
paused: !1,
|
|
527
|
+
timeLeft: 0
|
|
528
|
+
}, A({
|
|
529
|
+
autoplay: {
|
|
530
|
+
enabled: !1,
|
|
531
|
+
delay: 3e3,
|
|
532
|
+
waitForTransition: !0,
|
|
533
|
+
disableOnInteraction: !1,
|
|
534
|
+
stopOnLastSlide: !1,
|
|
535
|
+
reverseDirection: !1,
|
|
536
|
+
pauseOnMouseEnter: !1
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
let x, w, y = m && m.autoplay ? m.autoplay.delay : 3e3, c = m && m.autoplay ? m.autoplay.delay : 3e3, i, p = (/* @__PURE__ */ new Date()).getTime(), l, u, n, s, r, o, t;
|
|
540
|
+
function a(C) {
|
|
541
|
+
!e || e.destroyed || !e.wrapperEl || C.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", a), !(t || C.detail && C.detail.bySwiperTouchMove) && M());
|
|
542
|
+
}
|
|
543
|
+
const d = () => {
|
|
544
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
545
|
+
e.autoplay.paused ? l = !0 : l && (c = i, l = !1);
|
|
546
|
+
const C = e.autoplay.paused ? i : p + c - (/* @__PURE__ */ new Date()).getTime();
|
|
547
|
+
e.autoplay.timeLeft = C, v("autoplayTimeLeft", C, C / y), w = requestAnimationFrame(() => {
|
|
548
|
+
d();
|
|
549
|
+
});
|
|
550
|
+
}, g = () => {
|
|
551
|
+
let C;
|
|
552
|
+
return e.virtual && e.params.virtual.enabled ? C = e.slides.find((O) => O.classList.contains("swiper-slide-active")) : C = e.slides[e.activeIndex], C ? parseInt(C.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
553
|
+
}, T = (C) => {
|
|
554
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
555
|
+
cancelAnimationFrame(w), d();
|
|
556
|
+
let $ = typeof C > "u" ? e.params.autoplay.delay : C;
|
|
557
|
+
y = e.params.autoplay.delay, c = e.params.autoplay.delay;
|
|
558
|
+
const O = g();
|
|
559
|
+
!Number.isNaN(O) && O > 0 && typeof C > "u" && ($ = O, y = O, c = O), i = $;
|
|
560
|
+
const z = e.params.speed, j = () => {
|
|
561
|
+
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(z, !0, !0), v("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, z, !0, !0), v("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(z, !0, !0), v("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, z, !0, !0), v("autoplay")), e.params.cssMode && (p = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
562
|
+
T();
|
|
563
|
+
})));
|
|
564
|
+
};
|
|
565
|
+
return $ > 0 ? (clearTimeout(x), x = setTimeout(() => {
|
|
566
|
+
j();
|
|
567
|
+
}, $)) : requestAnimationFrame(() => {
|
|
568
|
+
j();
|
|
569
|
+
}), $;
|
|
570
|
+
}, D = () => {
|
|
571
|
+
p = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), v("autoplayStart");
|
|
572
|
+
}, E = () => {
|
|
573
|
+
e.autoplay.running = !1, clearTimeout(x), cancelAnimationFrame(w), v("autoplayStop");
|
|
574
|
+
}, h = (C, $) => {
|
|
575
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
576
|
+
clearTimeout(x), C || (o = !0);
|
|
577
|
+
const O = () => {
|
|
578
|
+
v("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", a) : M();
|
|
579
|
+
};
|
|
580
|
+
if (e.autoplay.paused = !0, $) {
|
|
581
|
+
r && (i = e.params.autoplay.delay), r = !1, O();
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
i = (i || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - p), !(e.isEnd && i < 0 && !e.params.loop) && (i < 0 && (i = 0), O());
|
|
585
|
+
}, M = () => {
|
|
586
|
+
e.isEnd && i < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (p = (/* @__PURE__ */ new Date()).getTime(), o ? (o = !1, T(i)) : T(), e.autoplay.paused = !1, v("autoplayResume"));
|
|
587
|
+
}, b = () => {
|
|
588
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
589
|
+
const C = F();
|
|
590
|
+
C.visibilityState === "hidden" && (o = !0, h(!0)), C.visibilityState === "visible" && M();
|
|
591
|
+
}, B = (C) => {
|
|
592
|
+
C.pointerType === "mouse" && (o = !0, t = !0, !(e.animating || e.autoplay.paused) && h(!0));
|
|
593
|
+
}, L = (C) => {
|
|
594
|
+
C.pointerType === "mouse" && (t = !1, e.autoplay.paused && M());
|
|
595
|
+
}, S = () => {
|
|
596
|
+
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", B), e.el.addEventListener("pointerleave", L));
|
|
597
|
+
}, I = () => {
|
|
598
|
+
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", B), e.el.removeEventListener("pointerleave", L));
|
|
599
|
+
}, N = () => {
|
|
600
|
+
F().addEventListener("visibilitychange", b);
|
|
601
|
+
}, K = () => {
|
|
602
|
+
F().removeEventListener("visibilitychange", b);
|
|
603
|
+
};
|
|
604
|
+
f("init", () => {
|
|
605
|
+
e.params.autoplay.enabled && (S(), N(), D());
|
|
606
|
+
}), f("destroy", () => {
|
|
607
|
+
I(), K(), e.autoplay.running && E();
|
|
608
|
+
}), f("_freeModeStaticRelease", () => {
|
|
609
|
+
(n || o) && M();
|
|
610
|
+
}), f("_freeModeNoMomentumRelease", () => {
|
|
611
|
+
e.params.autoplay.disableOnInteraction ? E() : h(!0, !0);
|
|
612
|
+
}), f("beforeTransitionStart", (C, $, O) => {
|
|
613
|
+
e.destroyed || !e.autoplay.running || (O || !e.params.autoplay.disableOnInteraction ? h(!0, !0) : E());
|
|
614
|
+
}), f("sliderFirstMove", () => {
|
|
615
|
+
if (!(e.destroyed || !e.autoplay.running)) {
|
|
616
|
+
if (e.params.autoplay.disableOnInteraction) {
|
|
617
|
+
E();
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
u = !0, n = !1, o = !1, s = setTimeout(() => {
|
|
621
|
+
o = !0, n = !0, h(!0);
|
|
622
|
+
}, 200);
|
|
623
|
+
}
|
|
624
|
+
}), f("touchEnd", () => {
|
|
625
|
+
if (!(e.destroyed || !e.autoplay.running || !u)) {
|
|
626
|
+
if (clearTimeout(s), clearTimeout(x), e.params.autoplay.disableOnInteraction) {
|
|
627
|
+
n = !1, u = !1;
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
n && e.params.cssMode && M(), n = !1, u = !1;
|
|
631
|
+
}
|
|
632
|
+
}), f("slideChange", () => {
|
|
633
|
+
e.destroyed || !e.autoplay.running || (r = !0);
|
|
634
|
+
}), Object.assign(e.autoplay, {
|
|
635
|
+
start: D,
|
|
636
|
+
stop: E,
|
|
637
|
+
pause: h,
|
|
638
|
+
resume: M
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
function re(k) {
|
|
642
|
+
let {
|
|
643
|
+
swiper: e,
|
|
644
|
+
extendParams: A,
|
|
645
|
+
on: f
|
|
646
|
+
} = k;
|
|
647
|
+
A({
|
|
648
|
+
thumbs: {
|
|
649
|
+
swiper: null,
|
|
650
|
+
multipleActiveThumbs: !0,
|
|
651
|
+
autoScrollOffset: 0,
|
|
652
|
+
slideThumbActiveClass: "swiper-slide-thumb-active",
|
|
653
|
+
thumbsContainerClass: "swiper-thumbs"
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
let v = !1, m = !1;
|
|
657
|
+
e.thumbs = {
|
|
658
|
+
swiper: null
|
|
659
|
+
};
|
|
660
|
+
function x() {
|
|
661
|
+
const c = e.thumbs.swiper;
|
|
662
|
+
if (!c || c.destroyed) return;
|
|
663
|
+
const i = c.clickedIndex, p = c.clickedSlide;
|
|
664
|
+
if (p && p.classList.contains(e.params.thumbs.slideThumbActiveClass) || typeof i > "u" || i === null) return;
|
|
665
|
+
let l;
|
|
666
|
+
c.params.loop ? l = parseInt(c.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : l = i, e.params.loop ? e.slideToLoop(l) : e.slideTo(l);
|
|
667
|
+
}
|
|
668
|
+
function w() {
|
|
669
|
+
const {
|
|
670
|
+
thumbs: c
|
|
671
|
+
} = e.params;
|
|
672
|
+
if (v) return !1;
|
|
673
|
+
v = !0;
|
|
674
|
+
const i = e.constructor;
|
|
675
|
+
if (c.swiper instanceof i) {
|
|
676
|
+
if (c.swiper.destroyed)
|
|
677
|
+
return v = !1, !1;
|
|
678
|
+
e.thumbs.swiper = c.swiper, Object.assign(e.thumbs.swiper.originalParams, {
|
|
679
|
+
watchSlidesProgress: !0,
|
|
680
|
+
slideToClickedSlide: !1
|
|
681
|
+
}), Object.assign(e.thumbs.swiper.params, {
|
|
682
|
+
watchSlidesProgress: !0,
|
|
683
|
+
slideToClickedSlide: !1
|
|
684
|
+
}), e.thumbs.swiper.update();
|
|
685
|
+
} else if (Q(c.swiper)) {
|
|
686
|
+
const p = Object.assign({}, c.swiper);
|
|
687
|
+
Object.assign(p, {
|
|
688
|
+
watchSlidesProgress: !0,
|
|
689
|
+
slideToClickedSlide: !1
|
|
690
|
+
}), e.thumbs.swiper = new i(p), m = !0;
|
|
691
|
+
}
|
|
692
|
+
return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", x), !0;
|
|
693
|
+
}
|
|
694
|
+
function y(c) {
|
|
695
|
+
const i = e.thumbs.swiper;
|
|
696
|
+
if (!i || i.destroyed) return;
|
|
697
|
+
const p = i.params.slidesPerView === "auto" ? i.slidesPerViewDynamic() : i.params.slidesPerView;
|
|
698
|
+
let l = 1;
|
|
699
|
+
const u = e.params.thumbs.slideThumbActiveClass;
|
|
700
|
+
if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (l = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (l = 1), l = Math.floor(l), i.slides.forEach((r) => r.classList.remove(u)), i.params.loop || i.params.virtual && i.params.virtual.enabled)
|
|
701
|
+
for (let r = 0; r < l; r += 1)
|
|
702
|
+
_(i.slidesEl, `[data-swiper-slide-index="${e.realIndex + r}"]`).forEach((o) => {
|
|
703
|
+
o.classList.add(u);
|
|
704
|
+
});
|
|
705
|
+
else
|
|
706
|
+
for (let r = 0; r < l; r += 1)
|
|
707
|
+
i.slides[e.realIndex + r] && i.slides[e.realIndex + r].classList.add(u);
|
|
708
|
+
const n = e.params.thumbs.autoScrollOffset, s = n && !i.params.loop;
|
|
709
|
+
if (e.realIndex !== i.realIndex || s) {
|
|
710
|
+
const r = i.activeIndex;
|
|
711
|
+
let o, t;
|
|
712
|
+
if (i.params.loop) {
|
|
713
|
+
const a = i.slides.find((d) => d.getAttribute("data-swiper-slide-index") === `${e.realIndex}`);
|
|
714
|
+
o = i.slides.indexOf(a), t = e.activeIndex > e.previousIndex ? "next" : "prev";
|
|
715
|
+
} else
|
|
716
|
+
o = e.realIndex, t = o > e.previousIndex ? "next" : "prev";
|
|
717
|
+
s && (o += t === "next" ? n : -1 * n), i.visibleSlidesIndexes && i.visibleSlidesIndexes.indexOf(o) < 0 && (i.params.centeredSlides ? o > r ? o = o - Math.floor(p / 2) + 1 : o = o + Math.floor(p / 2) - 1 : o > r && i.params.slidesPerGroup, i.slideTo(o, c ? 0 : void 0));
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
f("beforeInit", () => {
|
|
721
|
+
const {
|
|
722
|
+
thumbs: c
|
|
723
|
+
} = e.params;
|
|
724
|
+
if (!(!c || !c.swiper))
|
|
725
|
+
if (typeof c.swiper == "string" || c.swiper instanceof HTMLElement) {
|
|
726
|
+
const i = F(), p = () => {
|
|
727
|
+
const u = typeof c.swiper == "string" ? i.querySelector(c.swiper) : c.swiper;
|
|
728
|
+
if (u && u.swiper)
|
|
729
|
+
c.swiper = u.swiper, w(), y(!0);
|
|
730
|
+
else if (u) {
|
|
731
|
+
const n = `${e.params.eventsPrefix}init`, s = (r) => {
|
|
732
|
+
c.swiper = r.detail[0], u.removeEventListener(n, s), w(), y(!0), c.swiper.update(), e.update();
|
|
733
|
+
};
|
|
734
|
+
u.addEventListener(n, s);
|
|
735
|
+
}
|
|
736
|
+
return u;
|
|
737
|
+
}, l = () => {
|
|
738
|
+
if (e.destroyed) return;
|
|
739
|
+
p() || requestAnimationFrame(l);
|
|
740
|
+
};
|
|
741
|
+
requestAnimationFrame(l);
|
|
742
|
+
} else
|
|
743
|
+
w(), y(!0);
|
|
744
|
+
}), f("slideChange update resize observerUpdate", () => {
|
|
745
|
+
y();
|
|
746
|
+
}), f("setTransition", (c, i) => {
|
|
747
|
+
const p = e.thumbs.swiper;
|
|
748
|
+
!p || p.destroyed || p.setTransition(i);
|
|
749
|
+
}), f("beforeDestroy", () => {
|
|
750
|
+
const c = e.thumbs.swiper;
|
|
751
|
+
!c || c.destroyed || m && c.destroy();
|
|
752
|
+
}), Object.assign(e.thumbs, {
|
|
753
|
+
init: w,
|
|
754
|
+
update: y
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
function le(k) {
|
|
758
|
+
let {
|
|
759
|
+
swiper: e,
|
|
760
|
+
extendParams: A,
|
|
761
|
+
emit: f,
|
|
762
|
+
once: v
|
|
763
|
+
} = k;
|
|
764
|
+
A({
|
|
765
|
+
freeMode: {
|
|
766
|
+
enabled: !1,
|
|
767
|
+
momentum: !0,
|
|
768
|
+
momentumRatio: 1,
|
|
769
|
+
momentumBounce: !0,
|
|
770
|
+
momentumBounceRatio: 1,
|
|
771
|
+
momentumVelocityRatio: 1,
|
|
772
|
+
sticky: !1,
|
|
773
|
+
minimumVelocity: 0.02
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
function m() {
|
|
777
|
+
if (e.params.cssMode) return;
|
|
778
|
+
const y = e.getTranslate();
|
|
779
|
+
e.setTranslate(y), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
|
|
780
|
+
currentPos: e.rtl ? e.translate : -e.translate
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
function x() {
|
|
784
|
+
if (e.params.cssMode) return;
|
|
785
|
+
const {
|
|
786
|
+
touchEventsData: y,
|
|
787
|
+
touches: c
|
|
788
|
+
} = e;
|
|
789
|
+
y.velocities.length === 0 && y.velocities.push({
|
|
790
|
+
position: c[e.isHorizontal() ? "startX" : "startY"],
|
|
791
|
+
time: y.touchStartTime
|
|
792
|
+
}), y.velocities.push({
|
|
793
|
+
position: c[e.isHorizontal() ? "currentX" : "currentY"],
|
|
794
|
+
time: R()
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
function w(y) {
|
|
798
|
+
let {
|
|
799
|
+
currentPos: c
|
|
800
|
+
} = y;
|
|
801
|
+
if (e.params.cssMode) return;
|
|
802
|
+
const {
|
|
803
|
+
params: i,
|
|
804
|
+
wrapperEl: p,
|
|
805
|
+
rtlTranslate: l,
|
|
806
|
+
snapGrid: u,
|
|
807
|
+
touchEventsData: n
|
|
808
|
+
} = e, r = R() - n.touchStartTime;
|
|
809
|
+
if (c < -e.minTranslate()) {
|
|
810
|
+
e.slideTo(e.activeIndex);
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
if (c > -e.maxTranslate()) {
|
|
814
|
+
e.slides.length < u.length ? e.slideTo(u.length - 1) : e.slideTo(e.slides.length - 1);
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
817
|
+
if (i.freeMode.momentum) {
|
|
818
|
+
if (n.velocities.length > 1) {
|
|
819
|
+
const E = n.velocities.pop(), h = n.velocities.pop(), M = E.position - h.position, b = E.time - h.time;
|
|
820
|
+
e.velocity = M / b, e.velocity /= 2, Math.abs(e.velocity) < i.freeMode.minimumVelocity && (e.velocity = 0), (b > 150 || R() - E.time > 300) && (e.velocity = 0);
|
|
821
|
+
} else
|
|
822
|
+
e.velocity = 0;
|
|
823
|
+
e.velocity *= i.freeMode.momentumVelocityRatio, n.velocities.length = 0;
|
|
824
|
+
let o = 1e3 * i.freeMode.momentumRatio;
|
|
825
|
+
const t = e.velocity * o;
|
|
826
|
+
let a = e.translate + t;
|
|
827
|
+
l && (a = -a);
|
|
828
|
+
let d = !1, g;
|
|
829
|
+
const T = Math.abs(e.velocity) * 20 * i.freeMode.momentumBounceRatio;
|
|
830
|
+
let D;
|
|
831
|
+
if (a < e.maxTranslate())
|
|
832
|
+
i.freeMode.momentumBounce ? (a + e.maxTranslate() < -T && (a = e.maxTranslate() - T), g = e.maxTranslate(), d = !0, n.allowMomentumBounce = !0) : a = e.maxTranslate(), i.loop && i.centeredSlides && (D = !0);
|
|
833
|
+
else if (a > e.minTranslate())
|
|
834
|
+
i.freeMode.momentumBounce ? (a - e.minTranslate() > T && (a = e.minTranslate() + T), g = e.minTranslate(), d = !0, n.allowMomentumBounce = !0) : a = e.minTranslate(), i.loop && i.centeredSlides && (D = !0);
|
|
835
|
+
else if (i.freeMode.sticky) {
|
|
836
|
+
let E;
|
|
837
|
+
for (let h = 0; h < u.length; h += 1)
|
|
838
|
+
if (u[h] > -a) {
|
|
839
|
+
E = h;
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
Math.abs(u[E] - a) < Math.abs(u[E - 1] - a) || e.swipeDirection === "next" ? a = u[E] : a = u[E - 1], a = -a;
|
|
843
|
+
}
|
|
844
|
+
if (D && v("transitionEnd", () => {
|
|
845
|
+
e.loopFix();
|
|
846
|
+
}), e.velocity !== 0) {
|
|
847
|
+
if (l ? o = Math.abs((-a - e.translate) / e.velocity) : o = Math.abs((a - e.translate) / e.velocity), i.freeMode.sticky) {
|
|
848
|
+
const E = Math.abs((l ? -a : a) - e.translate), h = e.slidesSizesGrid[e.activeIndex];
|
|
849
|
+
E < h ? o = i.speed : E < 2 * h ? o = i.speed * 1.5 : o = i.speed * 2.5;
|
|
850
|
+
}
|
|
851
|
+
} else if (i.freeMode.sticky) {
|
|
852
|
+
e.slideToClosest();
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
i.freeMode.momentumBounce && d ? (e.updateProgress(g), e.setTransition(o), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating = !0, q(p, () => {
|
|
856
|
+
!e || e.destroyed || !n.allowMomentumBounce || (f("momentumBounce"), e.setTransition(i.speed), setTimeout(() => {
|
|
857
|
+
e.setTranslate(g), q(p, () => {
|
|
858
|
+
!e || e.destroyed || e.transitionEnd();
|
|
859
|
+
});
|
|
860
|
+
}, 0));
|
|
861
|
+
})) : e.velocity ? (f("_freeModeNoMomentumRelease"), e.updateProgress(a), e.setTransition(o), e.setTranslate(a), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, q(p, () => {
|
|
862
|
+
!e || e.destroyed || e.transitionEnd();
|
|
863
|
+
}))) : e.updateProgress(a), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
864
|
+
} else if (i.freeMode.sticky) {
|
|
865
|
+
e.slideToClosest();
|
|
866
|
+
return;
|
|
867
|
+
} else i.freeMode && f("_freeModeNoMomentumRelease");
|
|
868
|
+
(!i.freeMode.momentum || r >= i.longSwipesMs) && (f("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
869
|
+
}
|
|
870
|
+
Object.assign(e, {
|
|
871
|
+
freeMode: {
|
|
872
|
+
onTouchStart: m,
|
|
873
|
+
onTouchMove: x,
|
|
874
|
+
onTouchEnd: w
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
export {
|
|
879
|
+
ne as Autoplay,
|
|
880
|
+
se as Controller,
|
|
881
|
+
le as FreeMode,
|
|
882
|
+
te as Keyboard,
|
|
883
|
+
ae as Navigation,
|
|
884
|
+
ie as Pagination,
|
|
885
|
+
re as Thumbs,
|
|
886
|
+
ce as Zoom
|
|
887
|
+
};
|