@vc-shell/framework 2.0.0-alpha.32 → 2.0.0-alpha.33-pr220.455e322
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/CHANGELOG.md +201 -193
- package/dist/ai-agent/index.js +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D0kWIlz3.js +4485 -0
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-D71wkuIU.js +22109 -0
- package/dist/chunks/{index-D2HGw9DC.js → index-CDUdOax4.js} +2 -2
- package/dist/chunks/{vendor-boolbase-Cyd7_957.js → vendor-boolbase-DYkUBG-P.js} +1 -1
- package/dist/chunks/{vendor-cheerio-DKt5ox2U.js → vendor-cheerio-DE71XQ9x.js} +1 -1
- package/dist/chunks/{vendor-cheerio-select-B8BTSEdK.js → vendor-cheerio-select-D-qK1Cpo.js} +2 -2
- package/dist/chunks/{vendor-css-select-C4b9igDP.js → vendor-css-select-DqoO1-RK.js} +2 -2
- package/dist/chunks/{vendor-dompurify-BIuh5IAZ.js → vendor-dompurify-DpIUMBYC.js} +228 -221
- package/dist/chunks/{vendor-gridstack-Dkfw452e.js → vendor-gridstack-Beau2jQ7.js} +230 -160
- package/dist/chunks/{vendor-intlify-core-base-BfDxYEHM.js → vendor-intlify-core-base-Cf8V01l9.js} +260 -260
- package/dist/chunks/{vendor-intlify-message-compiler-B2Y3gZDu.js → vendor-intlify-message-compiler-h1txdYa8.js} +2 -2
- package/dist/chunks/{vendor-intlify-shared-Drx6AmQ9.js → vendor-intlify-shared-D4BJYR57.js} +3 -3
- package/dist/chunks/{vendor-iso-639-1-ig8i9Svg.js → vendor-iso-639-1-BEjYyfKo.js} +17 -14
- package/dist/chunks/{vendor-lodash-es-BB-IQCna.js → vendor-lodash-es-CfnUOh0o.js} +364 -371
- package/dist/chunks/vendor-markdown-it-task-lists-CHKeJZfk.js +69 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-analytics-js-ufpnHxNR.js +1142 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-cfgsync-js-BmGq5cEx.js +247 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-channel-js-BdtUi1l8.js +1907 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js +8406 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-dependencies-js-DXmYt4tG.js +1441 -0
- package/dist/chunks/vendor-microsoft-applicationinsights-properties-js-CLbNzgkN.js +610 -0
- package/dist/chunks/{vendor-microsoft-applicationinsights-shims-Ds7KyOsR.js → vendor-microsoft-applicationinsights-shims-CGX8KXgN.js} +13 -12
- package/dist/chunks/vendor-microsoft-applicationinsights-web-DzgnK2Mn.js +970 -0
- package/dist/chunks/{vendor-microsoft-dynamicproto-js-CMXJqDx1.js → vendor-microsoft-dynamicproto-js-D7567TLZ.js} +15 -15
- package/dist/chunks/vendor-nevware21-ts-async-BxN_lmkD.js +271 -0
- package/dist/chunks/vendor-nevware21-ts-utils-Dr-hD3q9.js +973 -0
- package/dist/chunks/{vendor-nth-check-CuyQT_ny.js → vendor-nth-check-D0N1qpsw.js} +1 -1
- package/dist/chunks/{vendor-prettier-B0zlh-ye.js → vendor-prettier-2Sf6a5jB.js} +876 -782
- package/dist/chunks/{vendor-prosemirror-commands-Bv4ChObl.js → vendor-prosemirror-commands-BaRVaTVO.js} +2 -2
- package/dist/chunks/{vendor-prosemirror-dropcursor-kF5UKNFM.js → vendor-prosemirror-dropcursor-PuLxL9JM.js} +2 -2
- package/dist/chunks/{vendor-prosemirror-gapcursor-D3tpkzBp.js → vendor-prosemirror-gapcursor-C7MEx13L.js} +3 -3
- package/dist/chunks/{vendor-prosemirror-history-CQYKHz3u.js → vendor-prosemirror-history-_AfZxoMt.js} +2 -2
- package/dist/chunks/{vendor-prosemirror-keymap-CAfQyvJ7.js → vendor-prosemirror-keymap-tvZqK1zZ.js} +1 -1
- package/dist/chunks/{vendor-prosemirror-schema-list-BNJkECdS.js → vendor-prosemirror-schema-list-qDgvFydE.js} +1 -1
- package/dist/chunks/{vendor-prosemirror-state-IeimrELV.js → vendor-prosemirror-state-BvFA7AjG.js} +1 -1
- package/dist/chunks/{vendor-prosemirror-tables-DIAkeGRL.js → vendor-prosemirror-tables-CbmHRq4G.js} +4 -4
- package/dist/chunks/{vendor-prosemirror-transform-BUjWd5Tb.js → vendor-prosemirror-transform-DVGD47fI.js} +118 -102
- package/dist/chunks/{vendor-prosemirror-view-Chu67Jpw.js → vendor-prosemirror-view-BW4UqvjQ.js} +7 -5
- package/dist/chunks/{vendor-striptags--4dtoP3u.js → vendor-striptags-DtlgQudQ.js} +1 -1
- package/dist/chunks/{vendor-swiper-D1fVhFeH.js → vendor-swiper-BgqGfw3Y.js} +636 -563
- package/dist/chunks/{vendor-tiptap-core-BWgKs47g.js → vendor-tiptap-core-CZbeo7XQ.js} +722 -703
- package/dist/chunks/{vendor-tiptap-extension-blockquote-B1RV9c0W.js → vendor-tiptap-extension-blockquote-B8uwrgnZ.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-bold-BdAf6fWQ.js → vendor-tiptap-extension-bold-Ch9pbrZY.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-code-_cv4EOBy.js → vendor-tiptap-extension-code-CVh_mZgz.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-code-block-CT5P4x0D.js → vendor-tiptap-extension-code-block-CfoUSR2N.js} +2 -2
- package/dist/chunks/{vendor-tiptap-extension-document-C41wXth1.js → vendor-tiptap-extension-document-C4tn-v0L.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-hard-break-Ds2hA4at.js → vendor-tiptap-extension-hard-break-CbK1eM89.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-heading-DvnqoCO-.js → vendor-tiptap-extension-heading-BlkYF-RD.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-horizontal-rule-BceRNOIu.js → vendor-tiptap-extension-horizontal-rule-DjMOsQCA.js} +2 -2
- package/dist/chunks/{vendor-tiptap-extension-image-DLERQS1u.js → vendor-tiptap-extension-image-BpqLcXdw.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-italic-BGv0ktjJ.js → vendor-tiptap-extension-italic-YDdh6jEW.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-link-BAzgztbX.js → vendor-tiptap-extension-link-CETrc0Mo.js} +2 -2
- package/dist/chunks/{vendor-tiptap-extension-list-rFRwhCY_.js → vendor-tiptap-extension-list-DsiDvJxK.js} +209 -180
- package/dist/chunks/vendor-tiptap-extension-paragraph-Bcss4jc0.js +49 -0
- package/dist/chunks/vendor-tiptap-extension-placeholder-ClNjQXk_.js +1 -0
- package/dist/chunks/{vendor-tiptap-extension-strike-Cqq1i9pe.js → vendor-tiptap-extension-strike-BZiBed9b.js} +1 -1
- package/dist/chunks/vendor-tiptap-extension-table-QVjcLO_H.js +409 -0
- package/dist/chunks/vendor-tiptap-extension-table-cell-CuXZTKj8.js +1 -0
- package/dist/chunks/vendor-tiptap-extension-table-header-CuXZTKj8.js +1 -0
- package/dist/chunks/vendor-tiptap-extension-table-row-CuXZTKj8.js +1 -0
- package/dist/chunks/{vendor-tiptap-extension-text-BaLQc3hC.js → vendor-tiptap-extension-text-Wofhchrp.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-text-style-BDbT1PMb.js → vendor-tiptap-extension-text-style-Bc6nvmn0.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extension-underline-CiUEdG6D.js → vendor-tiptap-extension-underline-Bo1pXXDN.js} +1 -1
- package/dist/chunks/{vendor-tiptap-extensions-pwHVUzkb.js → vendor-tiptap-extensions-D7eaegpB.js} +6 -6
- package/dist/chunks/{vendor-tiptap-markdown-D0feGfKk.js → vendor-tiptap-markdown-18K1hcU0.js} +3 -3
- package/dist/chunks/vendor-tiptap-pm-yqZPZQMU.js +1 -0
- package/dist/chunks/{vendor-tiptap-starter-kit-BEsLVJ4Q.js → vendor-tiptap-starter-kit-ny-AoaO_.js} +17 -17
- package/dist/chunks/{vendor-tiptap-vue-3-CdIBiRMV.js → vendor-tiptap-vue-3-BNAw8onj.js} +1 -1
- package/dist/chunks/{vendor-truncate-html-DDVwXwPl.js → vendor-truncate-html-ChA1T5zy.js} +1 -1
- package/dist/chunks/{vendor-unovis-ts-D3MmJ11i.js → vendor-unovis-ts-stSsHr9j.js} +1 -1
- package/dist/chunks/{vendor-unovis-vue-CMGNLXsC.js → vendor-unovis-vue-CZWGT3-0.js} +1 -1
- package/dist/chunks/{vendor-vue-i18n-BSCeQYoP.js → vendor-vue-i18n-LO-EJStU.js} +27 -27
- package/dist/chunks/{vendor-vue3-application-insights-Cq46Q3rj.js → vendor-vue3-application-insights-CAgbt8pk.js} +2 -2
- package/dist/chunks/{vendor-vueuse-components-DRdTsx6e.js → vendor-vueuse-components-BW7i7Uhb.js} +1 -1
- package/dist/chunks/{vendor-vueuse-core-D4-2M4AW.js → vendor-vueuse-core-CEdpDfzx.js} +9 -9
- package/dist/chunks/{vendor-vueuse-shared-PQ04AyOW.js → vendor-vueuse-shared-BlCOXw5g.js} +8 -8
- package/dist/core/api/platform.d.ts +5 -5
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +1 -1
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeForm/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeForm/types.d.ts +1 -0
- package/dist/core/composables/useBladeForm/types.d.ts.map +1 -1
- package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/boolean.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/dictionary.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/strategies/regular.d.ts.map +1 -1
- package/dist/core/composables/usePlatformLocaleSync/index.d.ts +17 -0
- package/dist/core/composables/usePlatformLocaleSync/index.d.ts.map +1 -0
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +1 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/constants/index.d.ts +0 -1
- package/dist/core/constants/index.d.ts.map +1 -1
- package/dist/core/directives/index.d.ts +2 -0
- package/dist/core/directives/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +2 -2
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +1 -1
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/menu-types.d.ts.map +1 -1
- package/dist/framework.js +3164 -3965
- package/dist/index.css +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +1 -0
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/modules/assets/index.d.ts +0 -5
- package/dist/modules/assets/index.d.ts.map +1 -1
- package/dist/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/modules/assets-manager/index.d.ts +0 -6
- package/dist/modules/assets-manager/index.d.ts.map +1 -1
- package/dist/scripts/check-locales.cjs +3 -0
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts +0 -6
- package/dist/shell/_internal/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shell/_internal/notifications/components/notification-container/index.d.ts +2 -2
- package/dist/shell/_internal/notifications/composables/useInstance/index.d.ts.map +1 -1
- package/dist/shell/_internal/popup/common/vc-popup-base.vue.d.ts +1 -1
- package/dist/shell/_internal/popup/common/vc-popup-base.vue.d.ts.map +1 -1
- package/dist/shell/_internal/popup/index.d.ts +0 -4
- package/dist/shell/_internal/popup/index.d.ts.map +1 -1
- package/dist/shell/_internal/popup/types/index.d.ts +1 -1
- package/dist/shell/_internal/popup/types/index.d.ts.map +1 -1
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/ForgotPasswordPage/components/forgot-password/ForgotPassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts +2 -2
- package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +2 -2
- package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shell/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shell/components/change-password/index.d.ts +0 -5
- package/dist/shell/components/change-password/index.d.ts.map +1 -1
- package/dist/shell/components/error-interceptor/index.d.ts +0 -5
- package/dist/shell/components/error-interceptor/index.d.ts.map +1 -1
- package/dist/shell/components/language-selector/index.d.ts +0 -5
- package/dist/shell/components/language-selector/index.d.ts.map +1 -1
- package/dist/shell/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/shell/components/notification-dropdown/index.d.ts +0 -5
- package/dist/shell/components/notification-dropdown/index.d.ts.map +1 -1
- package/dist/shell/components/notification-template/index.d.ts +0 -5
- package/dist/shell/components/notification-template/index.d.ts.map +1 -1
- package/dist/shell/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shell/components/sidebar/index.d.ts +3 -3
- package/dist/shell/components/sidebar/sidebar.vue.d.ts +1 -1
- package/dist/shell/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shell/components/user-dropdown-button/index.d.ts +0 -5
- package/dist/shell/components/user-dropdown-button/index.d.ts.map +1 -1
- package/dist/shell/dashboard/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/test-helpers.d.ts +6 -18
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-image-tile/vc-image-tile.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/_internal/SelectTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +10 -27
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +5 -5
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +19 -17
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcTableAdapter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcTableAdapter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/ColumnFilter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/DataTableBody.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/Table.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableCheckbox.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/TableHead.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts +46 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts +7 -5
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +6 -7
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts +24 -11
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsReorder.d.ts +6 -9
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +18 -17
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableEditing.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableExpansion.d.ts +6 -2
- package/dist/ui/components/organisms/vc-data-table/composables/useTableExpansion.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableSort.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/keys.d.ts +2 -2
- package/dist/ui/components/organisms/vc-data-table/keys.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +28 -0
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/utils/ColumnCollector.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/utils/columnHelpers.d.ts +30 -0
- package/dist/ui/components/organisms/vc-data-table/utils/columnHelpers.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-data-table/utils/index.d.ts +1 -0
- package/dist/ui/components/organisms/vc-data-table/utils/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +4 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +9 -8
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +8 -8
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/composables/index.d.ts +2 -0
- package/dist/ui/composables/index.d.ts.map +1 -1
- package/dist/ui/composables/useBladeLoading/index.d.ts +6 -0
- package/dist/ui/composables/useBladeLoading/index.d.ts.map +1 -0
- package/dist/ui/composables/useCollapsible.d.ts.map +1 -1
- package/dist/ui/composables/useDataTablePagination.d.ts +30 -0
- package/dist/ui/composables/useDataTablePagination.d.ts.map +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +101 -93
- package/dist/ui/types/index.d.ts.map +1 -1
- package/package.json +8 -6
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CL6FKSZv.js +0 -4255
- package/dist/chunks/VcTableAdapter.vue_vue_type_style_index_0_lang-CLNfbXjd.js +0 -21113
- package/dist/chunks/vendor-markdown-it-task-lists-xwqUBSah.js +0 -72
- package/dist/chunks/vendor-microsoft-applicationinsights-analytics-js-Dvbvo5Dl.js +0 -1207
- package/dist/chunks/vendor-microsoft-applicationinsights-cfgsync-js-9wxxo7yB.js +0 -261
- package/dist/chunks/vendor-microsoft-applicationinsights-channel-js-c-UYe0ly.js +0 -1822
- package/dist/chunks/vendor-microsoft-applicationinsights-common-DgFOCv6a.js +0 -1921
- package/dist/chunks/vendor-microsoft-applicationinsights-core-js-DYtaESwI.js +0 -4276
- package/dist/chunks/vendor-microsoft-applicationinsights-dependencies-js-BoRkSVPF.js +0 -1407
- package/dist/chunks/vendor-microsoft-applicationinsights-properties-js-Ymy9TFDL.js +0 -572
- package/dist/chunks/vendor-microsoft-applicationinsights-web-gIbMmGYP.js +0 -487
- package/dist/chunks/vendor-nevware21-ts-async-CP171WHM.js +0 -261
- package/dist/chunks/vendor-nevware21-ts-utils-Dl8msUu_.js +0 -853
- package/dist/chunks/vendor-tiptap-extension-paragraph-EwqudBl5.js +0 -49
- package/dist/chunks/vendor-tiptap-extension-placeholder-D1_k7Sra.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-cell-odWoHoTv.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-header-odWoHoTv.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-row-odWoHoTv.js +0 -1
- package/dist/chunks/vendor-tiptap-extension-table-tNWQInwa.js +0 -374
- package/dist/chunks/vendor-tiptap-pm-CG4ksPkF.js +0 -1
- package/dist/core/constants/ui.d.ts +0 -50
- package/dist/core/constants/ui.d.ts.map +0 -1
- package/dist/ui/types/global-components.d.ts +0 -10
- package/dist/ui/types/global-components.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as G, onUpdated as
|
|
1
|
+
import { ref as G, onUpdated as Ee, provide as Me, watch as Fe, nextTick as $e, onMounted as Pe, onBeforeUnmount as Ce, h as k, onBeforeUpdate as je, computed as We } from "vue";
|
|
2
2
|
function he(t) {
|
|
3
3
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
4
4
|
}
|
|
@@ -64,7 +64,7 @@ const Ie = {
|
|
|
64
64
|
search: ""
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
function
|
|
67
|
+
function j() {
|
|
68
68
|
const t = typeof document < "u" ? document : {};
|
|
69
69
|
return pe(t, Ie), t;
|
|
70
70
|
}
|
|
@@ -197,13 +197,13 @@ function Oe(t) {
|
|
|
197
197
|
let l = null, a;
|
|
198
198
|
const o = e.params.speed;
|
|
199
199
|
e.wrapperEl.style.scrollSnapType = "none", s.cancelAnimationFrame(e.cssModeFrameID);
|
|
200
|
-
const d = i > r ? "next" : "prev",
|
|
200
|
+
const d = i > r ? "next" : "prev", u = (h, g) => d === "next" && h >= g || d === "prev" && h <= g, f = () => {
|
|
201
201
|
a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
|
|
202
|
-
const
|
|
203
|
-
let c = r +
|
|
204
|
-
if (
|
|
202
|
+
const h = Math.max(Math.min((a - l) / o, 1), 0), g = 0.5 - Math.cos(h * Math.PI) / 2;
|
|
203
|
+
let c = r + g * (i - r);
|
|
204
|
+
if (u(c, i) && (c = i), e.wrapperEl.scrollTo({
|
|
205
205
|
[n]: c
|
|
206
|
-
}),
|
|
206
|
+
}), u(c, i)) {
|
|
207
207
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
208
208
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
209
209
|
[n]: c
|
|
@@ -211,9 +211,9 @@ function Oe(t) {
|
|
|
211
211
|
}), s.cancelAnimationFrame(e.cssModeFrameID);
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
e.cssModeFrameID = s.requestAnimationFrame(
|
|
214
|
+
e.cssModeFrameID = s.requestAnimationFrame(f);
|
|
215
215
|
};
|
|
216
|
-
|
|
216
|
+
f();
|
|
217
217
|
}
|
|
218
218
|
function H(t, e) {
|
|
219
219
|
e === void 0 && (e = "");
|
|
@@ -247,7 +247,7 @@ function ee(t, e) {
|
|
|
247
247
|
return i.classList.add(...Array.isArray(e) ? e : Ye(e)), i;
|
|
248
248
|
}
|
|
249
249
|
function et(t) {
|
|
250
|
-
const e = _(), i =
|
|
250
|
+
const e = _(), i = j(), n = t.getBoundingClientRect(), s = i.body, r = t.clientTop || s.clientTop || 0, l = t.clientLeft || s.clientLeft || 0, a = t === e ? e.scrollY : t.scrollTop, o = t === e ? e.scrollX : t.scrollLeft;
|
|
251
251
|
return {
|
|
252
252
|
top: n.top + a - r,
|
|
253
253
|
left: n.left + o - l
|
|
@@ -280,7 +280,7 @@ function ge(t) {
|
|
|
280
280
|
return i;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ue(t, e) {
|
|
284
284
|
const i = [];
|
|
285
285
|
let n = t.parentElement;
|
|
286
286
|
for (; n; )
|
|
@@ -307,7 +307,7 @@ function we(t, e) {
|
|
|
307
307
|
}
|
|
308
308
|
let ie;
|
|
309
309
|
function nt() {
|
|
310
|
-
const t = _(), e =
|
|
310
|
+
const t = _(), e = j();
|
|
311
311
|
return {
|
|
312
312
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
313
313
|
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
@@ -325,11 +325,11 @@ function st(t) {
|
|
|
325
325
|
ios: !1,
|
|
326
326
|
android: !1
|
|
327
327
|
}, a = n.screen.width, o = n.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
328
|
-
let
|
|
329
|
-
const
|
|
328
|
+
let u = r.match(/(iPad).*OS\s([\d_]+)/);
|
|
329
|
+
const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), h = !u && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = s === "Win32";
|
|
330
330
|
let c = s === "MacIntel";
|
|
331
|
-
const
|
|
332
|
-
return !
|
|
331
|
+
const m = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
332
|
+
return !u && c && i.touch && m.indexOf(`${a}x${o}`) >= 0 && (u = r.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), c = !1), d && !g && (l.os = "android", l.android = !0), (u || h || f) && (l.os = "ios", l.ios = !0), l;
|
|
333
333
|
}
|
|
334
334
|
function Be(t) {
|
|
335
335
|
return t === void 0 && (t = {}), ne || (ne = st(t)), ne;
|
|
@@ -345,7 +345,7 @@ function rt() {
|
|
|
345
345
|
if (n()) {
|
|
346
346
|
const a = String(t.navigator.userAgent);
|
|
347
347
|
if (a.includes("Version/")) {
|
|
348
|
-
const [o, d] = a.split("Version/")[1].split(" ")[0].split(".").map((
|
|
348
|
+
const [o, d] = a.split("Version/")[1].split(" ")[0].split(".").map((u) => Number(u));
|
|
349
349
|
i = o < 16 || o === 16 && d < 2;
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -371,26 +371,26 @@ function at(t) {
|
|
|
371
371
|
const a = () => {
|
|
372
372
|
!e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
|
|
373
373
|
}, o = () => {
|
|
374
|
-
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((
|
|
374
|
+
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((f) => {
|
|
375
375
|
l = s.requestAnimationFrame(() => {
|
|
376
376
|
const {
|
|
377
|
-
width:
|
|
378
|
-
height:
|
|
377
|
+
width: h,
|
|
378
|
+
height: g
|
|
379
379
|
} = e;
|
|
380
|
-
let c =
|
|
381
|
-
|
|
380
|
+
let c = h, m = g;
|
|
381
|
+
f.forEach((S) => {
|
|
382
382
|
let {
|
|
383
383
|
contentBoxSize: v,
|
|
384
|
-
contentRect:
|
|
384
|
+
contentRect: b,
|
|
385
385
|
target: p
|
|
386
|
-
} =
|
|
387
|
-
p && p !== e.el || (c =
|
|
388
|
-
}), (c !==
|
|
386
|
+
} = S;
|
|
387
|
+
p && p !== e.el || (c = b ? b.width : (v[0] || v).inlineSize, m = b ? b.height : (v[0] || v).blockSize);
|
|
388
|
+
}), (c !== h || m !== g) && a();
|
|
389
389
|
});
|
|
390
390
|
}), r.observe(e.el));
|
|
391
391
|
}, d = () => {
|
|
392
392
|
l && s.cancelAnimationFrame(l), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
|
|
393
|
-
},
|
|
393
|
+
}, u = () => {
|
|
394
394
|
!e || e.destroyed || !e.initialized || n("orientationchange");
|
|
395
395
|
};
|
|
396
396
|
i("init", () => {
|
|
@@ -398,9 +398,9 @@ function at(t) {
|
|
|
398
398
|
o();
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
|
-
s.addEventListener("resize", a), s.addEventListener("orientationchange",
|
|
401
|
+
s.addEventListener("resize", a), s.addEventListener("orientationchange", u);
|
|
402
402
|
}), i("destroy", () => {
|
|
403
|
-
d(), s.removeEventListener("resize", a), s.removeEventListener("orientationchange",
|
|
403
|
+
d(), s.removeEventListener("resize", a), s.removeEventListener("orientationchange", u);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function lt(t) {
|
|
@@ -410,30 +410,30 @@ function lt(t) {
|
|
|
410
410
|
on: n,
|
|
411
411
|
emit: s
|
|
412
412
|
} = t;
|
|
413
|
-
const r = [], l = _(), a = function(
|
|
414
|
-
|
|
415
|
-
const
|
|
413
|
+
const r = [], l = _(), a = function(u, f) {
|
|
414
|
+
f === void 0 && (f = {});
|
|
415
|
+
const h = l.MutationObserver || l.WebkitMutationObserver, g = new h((c) => {
|
|
416
416
|
if (e.__preventObserver__) return;
|
|
417
417
|
if (c.length === 1) {
|
|
418
418
|
s("observerUpdate", c[0]);
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
const
|
|
421
|
+
const m = function() {
|
|
422
422
|
s("observerUpdate", c[0]);
|
|
423
423
|
};
|
|
424
|
-
l.requestAnimationFrame ? l.requestAnimationFrame(
|
|
424
|
+
l.requestAnimationFrame ? l.requestAnimationFrame(m) : l.setTimeout(m, 0);
|
|
425
425
|
});
|
|
426
|
-
|
|
427
|
-
attributes: typeof
|
|
428
|
-
childList: e.isElement || (typeof
|
|
429
|
-
characterData: typeof
|
|
430
|
-
}), r.push(
|
|
426
|
+
g.observe(u, {
|
|
427
|
+
attributes: typeof f.attributes > "u" ? !0 : f.attributes,
|
|
428
|
+
childList: e.isElement || (typeof f.childList > "u" ? !0 : f).childList,
|
|
429
|
+
characterData: typeof f.characterData > "u" ? !0 : f.characterData
|
|
430
|
+
}), r.push(g);
|
|
431
431
|
}, o = () => {
|
|
432
432
|
if (e.params.observer) {
|
|
433
433
|
if (e.params.observeParents) {
|
|
434
|
-
const
|
|
435
|
-
for (let
|
|
436
|
-
a(f
|
|
434
|
+
const u = ue(e.hostEl);
|
|
435
|
+
for (let f = 0; f < u.length; f += 1)
|
|
436
|
+
a(u[f]);
|
|
437
437
|
}
|
|
438
438
|
a(e.hostEl, {
|
|
439
439
|
childList: e.params.observeSlideChildren
|
|
@@ -442,8 +442,8 @@ function lt(t) {
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
}, d = () => {
|
|
445
|
-
r.forEach((
|
|
446
|
-
|
|
445
|
+
r.forEach((u) => {
|
|
446
|
+
u.disconnect();
|
|
447
447
|
}), r.splice(0, r.length);
|
|
448
448
|
};
|
|
449
449
|
i({
|
|
@@ -517,10 +517,10 @@ function dt() {
|
|
|
517
517
|
size: t.isHorizontal() ? e : i
|
|
518
518
|
}));
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function ut() {
|
|
521
521
|
const t = this;
|
|
522
|
-
function e(
|
|
523
|
-
return parseFloat(
|
|
522
|
+
function e(x, M) {
|
|
523
|
+
return parseFloat(x.getPropertyValue(t.getDirectionLabel(M)) || 0);
|
|
524
524
|
}
|
|
525
525
|
const i = t.params, {
|
|
526
526
|
wrapperEl: n,
|
|
@@ -528,30 +528,30 @@ function ft() {
|
|
|
528
528
|
size: r,
|
|
529
529
|
rtlTranslate: l,
|
|
530
530
|
wrongRTL: a
|
|
531
|
-
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length,
|
|
532
|
-
let
|
|
533
|
-
const
|
|
534
|
-
let
|
|
535
|
-
typeof
|
|
536
|
-
let
|
|
537
|
-
typeof
|
|
538
|
-
const v = t.snapGrid.length,
|
|
539
|
-
let p = i.spaceBetween, T = -
|
|
531
|
+
} = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, u = H(s, `.${t.params.slideClass}, swiper-slide`), f = o ? t.virtual.slides.length : u.length;
|
|
532
|
+
let h = [];
|
|
533
|
+
const g = [], c = [];
|
|
534
|
+
let m = i.slidesOffsetBefore;
|
|
535
|
+
typeof m == "function" && (m = i.slidesOffsetBefore.call(t));
|
|
536
|
+
let S = i.slidesOffsetAfter;
|
|
537
|
+
typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
|
|
538
|
+
const v = t.snapGrid.length, b = t.slidesGrid.length;
|
|
539
|
+
let p = i.spaceBetween, T = -m, E = 0, C = 0;
|
|
540
540
|
if (typeof r > "u")
|
|
541
541
|
return;
|
|
542
|
-
typeof p == "string" && p.indexOf("%") >= 0 ? p = parseFloat(p.replace("%", "")) / 100 * r : typeof p == "string" && (p = parseFloat(p)), t.virtualSize = -p,
|
|
543
|
-
l ?
|
|
542
|
+
typeof p == "string" && p.indexOf("%") >= 0 ? p = parseFloat(p.replace("%", "")) / 100 * r : typeof p == "string" && (p = parseFloat(p)), t.virtualSize = -p, u.forEach((x) => {
|
|
543
|
+
l ? x.style.marginLeft = "" : x.style.marginRight = "", x.style.marginBottom = "", x.style.marginTop = "";
|
|
544
544
|
}), i.centeredSlides && i.cssMode && (K(n, "--swiper-centered-offset-before", ""), K(n, "--swiper-centered-offset-after", ""));
|
|
545
545
|
const P = i.grid && i.grid.rows > 1 && t.grid;
|
|
546
|
-
P ? t.grid.initSlides(
|
|
546
|
+
P ? t.grid.initSlides(u) : t.grid && t.grid.unsetSlides();
|
|
547
547
|
let y;
|
|
548
|
-
const w = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((
|
|
549
|
-
for (let
|
|
548
|
+
const w = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((x) => typeof i.breakpoints[x].slidesPerView < "u").length > 0;
|
|
549
|
+
for (let x = 0; x < f; x += 1) {
|
|
550
550
|
y = 0;
|
|
551
551
|
let M;
|
|
552
|
-
if (
|
|
552
|
+
if (u[x] && (M = u[x]), P && t.grid.updateSlide(x, M, u), !(u[x] && W(M, "display") === "none")) {
|
|
553
553
|
if (i.slidesPerView === "auto") {
|
|
554
|
-
w && (
|
|
554
|
+
w && (u[x].style[t.getDirectionLabel("width")] = "");
|
|
555
555
|
const I = getComputedStyle(M), O = M.style.transform, B = M.style.webkitTransform;
|
|
556
556
|
if (O && (M.style.transform = "none"), B && (M.style.webkitTransform = "none"), i.roundLengths)
|
|
557
557
|
y = t.isHorizontal() ? ve(M, "width") : ve(M, "height");
|
|
@@ -569,73 +569,73 @@ function ft() {
|
|
|
569
569
|
}
|
|
570
570
|
O && (M.style.transform = O), B && (M.style.webkitTransform = B), i.roundLengths && (y = Math.floor(y));
|
|
571
571
|
} else
|
|
572
|
-
y = (r - (i.slidesPerView - 1) * p) / i.slidesPerView, i.roundLengths && (y = Math.floor(y)),
|
|
573
|
-
|
|
572
|
+
y = (r - (i.slidesPerView - 1) * p) / i.slidesPerView, i.roundLengths && (y = Math.floor(y)), u[x] && (u[x].style[t.getDirectionLabel("width")] = `${y}px`);
|
|
573
|
+
u[x] && (u[x].swiperSlideSize = y), c.push(y), i.centeredSlides ? (T = T + y / 2 + E / 2 + p, E === 0 && x !== 0 && (T = T - r / 2 - p), x === 0 && (T = T - r / 2 - p), Math.abs(T) < 1 / 1e3 && (T = 0), i.roundLengths && (T = Math.floor(T)), C % i.slidesPerGroup === 0 && h.push(T), g.push(T)) : (i.roundLengths && (T = Math.floor(T)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && h.push(T), g.push(T), T = T + y + p), t.virtualSize += y + p, E = y, C += 1;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
if (t.virtualSize = Math.max(t.virtualSize, r) +
|
|
577
|
-
const
|
|
578
|
-
for (let M = 0; M <
|
|
579
|
-
let I =
|
|
580
|
-
i.roundLengths && (I = Math.floor(I)),
|
|
576
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + S, l && a && (i.effect === "slide" || i.effect === "coverflow") && (n.style.width = `${t.virtualSize + p}px`), i.setWrapperSize && (n.style[t.getDirectionLabel("width")] = `${t.virtualSize + p}px`), P && t.grid.updateWrapperSize(y, h), !i.centeredSlides) {
|
|
577
|
+
const x = [];
|
|
578
|
+
for (let M = 0; M < h.length; M += 1) {
|
|
579
|
+
let I = h[M];
|
|
580
|
+
i.roundLengths && (I = Math.floor(I)), h[M] <= t.virtualSize - r && x.push(I);
|
|
581
581
|
}
|
|
582
|
-
|
|
582
|
+
h = x, Math.floor(t.virtualSize - r) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - r);
|
|
583
583
|
}
|
|
584
584
|
if (o && i.loop) {
|
|
585
|
-
const
|
|
585
|
+
const x = c[0] + p;
|
|
586
586
|
if (i.slidesPerGroup > 1) {
|
|
587
|
-
const M = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I =
|
|
587
|
+
const M = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), I = x * i.slidesPerGroup;
|
|
588
588
|
for (let O = 0; O < M; O += 1)
|
|
589
|
-
|
|
589
|
+
h.push(h[h.length - 1] + I);
|
|
590
590
|
}
|
|
591
591
|
for (let M = 0; M < t.virtual.slidesBefore + t.virtual.slidesAfter; M += 1)
|
|
592
|
-
i.slidesPerGroup === 1 &&
|
|
592
|
+
i.slidesPerGroup === 1 && h.push(h[h.length - 1] + x), g.push(g[g.length - 1] + x), t.virtualSize += x;
|
|
593
593
|
}
|
|
594
|
-
if (
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
M.style[
|
|
594
|
+
if (h.length === 0 && (h = [0]), p !== 0) {
|
|
595
|
+
const x = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
596
|
+
u.filter((M, I) => !i.cssMode || i.loop ? !0 : I !== u.length - 1).forEach((M) => {
|
|
597
|
+
M.style[x] = `${p}px`;
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
600
|
if (i.centeredSlides && i.centeredSlidesBounds) {
|
|
601
|
-
let
|
|
601
|
+
let x = 0;
|
|
602
602
|
c.forEach((I) => {
|
|
603
|
-
|
|
604
|
-
}),
|
|
605
|
-
const M =
|
|
606
|
-
|
|
603
|
+
x += I + (p || 0);
|
|
604
|
+
}), x -= p;
|
|
605
|
+
const M = x > r ? x - r : 0;
|
|
606
|
+
h = h.map((I) => I <= 0 ? -m : I > M ? M + S : I);
|
|
607
607
|
}
|
|
608
608
|
if (i.centerInsufficientSlides) {
|
|
609
|
-
let
|
|
609
|
+
let x = 0;
|
|
610
610
|
c.forEach((I) => {
|
|
611
|
-
|
|
612
|
-
}),
|
|
611
|
+
x += I + (p || 0);
|
|
612
|
+
}), x -= p;
|
|
613
613
|
const M = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
|
|
614
|
-
if (
|
|
615
|
-
const I = (r -
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}),
|
|
619
|
-
|
|
614
|
+
if (x + M < r) {
|
|
615
|
+
const I = (r - x - M) / 2;
|
|
616
|
+
h.forEach((O, B) => {
|
|
617
|
+
h[B] = O - I;
|
|
618
|
+
}), g.forEach((O, B) => {
|
|
619
|
+
g[B] = O + I;
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
if (Object.assign(t, {
|
|
624
|
-
slides:
|
|
625
|
-
snapGrid:
|
|
626
|
-
slidesGrid:
|
|
624
|
+
slides: u,
|
|
625
|
+
snapGrid: h,
|
|
626
|
+
slidesGrid: g,
|
|
627
627
|
slidesSizesGrid: c
|
|
628
628
|
}), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
|
|
629
|
-
K(n, "--swiper-centered-offset-before", `${-
|
|
630
|
-
const
|
|
631
|
-
t.snapGrid = t.snapGrid.map((I) => I +
|
|
629
|
+
K(n, "--swiper-centered-offset-before", `${-h[0]}px`), K(n, "--swiper-centered-offset-after", `${t.size / 2 - c[c.length - 1] / 2}px`);
|
|
630
|
+
const x = -t.snapGrid[0], M = -t.slidesGrid[0];
|
|
631
|
+
t.snapGrid = t.snapGrid.map((I) => I + x), t.slidesGrid = t.slidesGrid.map((I) => I + M);
|
|
632
632
|
}
|
|
633
|
-
if (
|
|
634
|
-
const
|
|
635
|
-
|
|
633
|
+
if (f !== d && t.emit("slidesLengthChange"), h.length !== v && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== b && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
|
|
634
|
+
const x = `${i.containerModifierClass}backface-hidden`, M = t.el.classList.contains(x);
|
|
635
|
+
f <= i.maxBackfaceHiddenSlides ? M || t.el.classList.add(x) : M && t.el.classList.remove(x);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function ft(t) {
|
|
639
639
|
const e = this, i = [], n = e.virtual && e.params.virtual.enabled;
|
|
640
640
|
let s = 0, r;
|
|
641
641
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
@@ -683,17 +683,17 @@ function pt(t) {
|
|
|
683
683
|
typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * e.size : typeof a == "string" && (a = parseFloat(a));
|
|
684
684
|
for (let o = 0; o < n.length; o += 1) {
|
|
685
685
|
const d = n[o];
|
|
686
|
-
let
|
|
687
|
-
i.cssMode && i.centeredSlides && (
|
|
688
|
-
const
|
|
689
|
-
|
|
686
|
+
let u = d.swiperSlideOffset;
|
|
687
|
+
i.cssMode && i.centeredSlides && (u -= n[0].swiperSlideOffset);
|
|
688
|
+
const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - u) / (d.swiperSlideSize + a), h = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - u) / (d.swiperSlideSize + a), g = -(l - u), c = g + e.slidesSizesGrid[o], m = g >= 0 && g <= e.size - e.slidesSizesGrid[o], S = g >= 0 && g < e.size - 1 || c > 1 && c <= e.size || g <= 0 && c >= e.size;
|
|
689
|
+
S && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), Se(d, S, i.slideVisibleClass), Se(d, m, i.slideFullyVisibleClass), d.progress = s ? -f : f, d.originalProgress = s ? -h : h;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
function mt(t) {
|
|
693
693
|
const e = this;
|
|
694
694
|
if (typeof t > "u") {
|
|
695
|
-
const
|
|
696
|
-
t = e && e.translate && e.translate *
|
|
695
|
+
const u = e.rtlTranslate ? -1 : 1;
|
|
696
|
+
t = e && e.translate && e.translate * u || 0;
|
|
697
697
|
}
|
|
698
698
|
const i = e.params, n = e.maxTranslate() - e.minTranslate();
|
|
699
699
|
let {
|
|
@@ -707,12 +707,12 @@ function mt(t) {
|
|
|
707
707
|
s = 0, r = !0, l = !0;
|
|
708
708
|
else {
|
|
709
709
|
s = (t - e.minTranslate()) / n;
|
|
710
|
-
const
|
|
711
|
-
r =
|
|
710
|
+
const u = Math.abs(t - e.minTranslate()) < 1, f = Math.abs(t - e.maxTranslate()) < 1;
|
|
711
|
+
r = u || s <= 0, l = f || s >= 1, u && (s = 0), f && (s = 1);
|
|
712
712
|
}
|
|
713
713
|
if (i.loop) {
|
|
714
|
-
const
|
|
715
|
-
|
|
714
|
+
const u = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[u], g = e.slidesGrid[f], c = e.slidesGrid[e.slidesGrid.length - 1], m = Math.abs(t);
|
|
715
|
+
m >= h ? a = (m - h) / c : a = (m + c - g) / c, a > 1 && (a -= 1);
|
|
716
716
|
}
|
|
717
717
|
Object.assign(e, {
|
|
718
718
|
progress: s,
|
|
@@ -730,18 +730,18 @@ function ht() {
|
|
|
730
730
|
params: i,
|
|
731
731
|
slidesEl: n,
|
|
732
732
|
activeIndex: s
|
|
733
|
-
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (
|
|
734
|
-
let o, d,
|
|
733
|
+
} = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) => H(n, `.${i.slideClass}${f}, swiper-slide${f}`)[0];
|
|
734
|
+
let o, d, u;
|
|
735
735
|
if (r)
|
|
736
736
|
if (i.loop) {
|
|
737
|
-
let
|
|
738
|
-
|
|
737
|
+
let f = s - t.virtual.slidesBefore;
|
|
738
|
+
f < 0 && (f = t.virtual.slides.length + f), f >= t.virtual.slides.length && (f -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${f}"]`);
|
|
739
739
|
} else
|
|
740
740
|
o = a(`[data-swiper-slide-index="${s}"]`);
|
|
741
741
|
else
|
|
742
|
-
l ? (o = e.find((
|
|
743
|
-
o && (l || (
|
|
744
|
-
re(
|
|
742
|
+
l ? (o = e.find((f) => f.column === s), u = e.find((f) => f.column === s + 1), d = e.find((f) => f.column === s - 1)) : o = e[s];
|
|
743
|
+
o && (l || (u = it(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !u && (u = e[0]), d = tt(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
|
|
744
|
+
re(f, f === o, i.slideActiveClass), re(f, f === u, i.slideNextClass), re(f, f === d, i.slidePrevClass);
|
|
745
745
|
}), t.emitSlidesClasses();
|
|
746
746
|
}
|
|
747
747
|
const Z = (t, e) => {
|
|
@@ -757,7 +757,7 @@ const Z = (t, e) => {
|
|
|
757
757
|
if (!t.slides[e]) return;
|
|
758
758
|
const i = t.slides[e].querySelector('[loading="lazy"]');
|
|
759
759
|
i && i.removeAttribute("loading");
|
|
760
|
-
},
|
|
760
|
+
}, fe = (t) => {
|
|
761
761
|
if (!t || t.destroyed || !t.params) return;
|
|
762
762
|
let e = t.params.lazyPreloadPrevNext;
|
|
763
763
|
const i = t.slides.length;
|
|
@@ -802,45 +802,45 @@ function vt(t) {
|
|
|
802
802
|
snapIndex: a
|
|
803
803
|
} = e;
|
|
804
804
|
let o = t, d;
|
|
805
|
-
const
|
|
806
|
-
let c =
|
|
805
|
+
const u = (g) => {
|
|
806
|
+
let c = g - e.virtual.slidesBefore;
|
|
807
807
|
return c < 0 && (c = e.virtual.slides.length + c), c >= e.virtual.slides.length && (c -= e.virtual.slides.length), c;
|
|
808
808
|
};
|
|
809
809
|
if (typeof o > "u" && (o = gt(e)), n.indexOf(i) >= 0)
|
|
810
810
|
d = n.indexOf(i);
|
|
811
811
|
else {
|
|
812
|
-
const
|
|
813
|
-
d =
|
|
812
|
+
const g = Math.min(s.slidesPerGroupSkip, o);
|
|
813
|
+
d = g + Math.floor((o - g) / s.slidesPerGroup);
|
|
814
814
|
}
|
|
815
815
|
if (d >= n.length && (d = n.length - 1), o === r && !e.params.loop) {
|
|
816
816
|
d !== a && (e.snapIndex = d, e.emit("snapIndexChange"));
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
if (o === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
|
|
820
|
-
e.realIndex =
|
|
820
|
+
e.realIndex = u(o);
|
|
821
821
|
return;
|
|
822
822
|
}
|
|
823
|
-
const
|
|
824
|
-
let
|
|
823
|
+
const f = e.grid && s.grid && s.grid.rows > 1;
|
|
824
|
+
let h;
|
|
825
825
|
if (e.virtual && s.virtual.enabled && s.loop)
|
|
826
|
-
|
|
827
|
-
else if (
|
|
828
|
-
const
|
|
829
|
-
let c = parseInt(
|
|
830
|
-
Number.isNaN(c) && (c = Math.max(e.slides.indexOf(
|
|
826
|
+
h = u(o);
|
|
827
|
+
else if (f) {
|
|
828
|
+
const g = e.slides.find((m) => m.column === o);
|
|
829
|
+
let c = parseInt(g.getAttribute("data-swiper-slide-index"), 10);
|
|
830
|
+
Number.isNaN(c) && (c = Math.max(e.slides.indexOf(g), 0)), h = Math.floor(c / s.grid.rows);
|
|
831
831
|
} else if (e.slides[o]) {
|
|
832
|
-
const
|
|
833
|
-
|
|
832
|
+
const g = e.slides[o].getAttribute("data-swiper-slide-index");
|
|
833
|
+
g ? h = parseInt(g, 10) : h = o;
|
|
834
834
|
} else
|
|
835
|
-
|
|
835
|
+
h = o;
|
|
836
836
|
Object.assign(e, {
|
|
837
837
|
previousSnapIndex: a,
|
|
838
838
|
snapIndex: d,
|
|
839
839
|
previousRealIndex: l,
|
|
840
|
-
realIndex:
|
|
840
|
+
realIndex: h,
|
|
841
841
|
previousIndex: r,
|
|
842
842
|
activeIndex: o
|
|
843
|
-
}), e.initialized &&
|
|
843
|
+
}), e.initialized && fe(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
844
844
|
}
|
|
845
845
|
function wt(t, e) {
|
|
846
846
|
const i = this, n = i.params;
|
|
@@ -866,8 +866,8 @@ function wt(t, e) {
|
|
|
866
866
|
}
|
|
867
867
|
var St = {
|
|
868
868
|
updateSize: dt,
|
|
869
|
-
updateSlides:
|
|
870
|
-
updateAutoHeight:
|
|
869
|
+
updateSlides: ut,
|
|
870
|
+
updateAutoHeight: ft,
|
|
871
871
|
updateSlidesOffset: ct,
|
|
872
872
|
updateSlidesProgress: pt,
|
|
873
873
|
updateProgress: mt,
|
|
@@ -900,17 +900,17 @@ function Tt(t, e) {
|
|
|
900
900
|
let a = 0, o = 0;
|
|
901
901
|
const d = 0;
|
|
902
902
|
i.isHorizontal() ? a = n ? -t : t : o = t, s.roundLengths && (a = Math.floor(a), o = Math.floor(o)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? a : o, s.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -a : -o : s.virtualTranslate || (i.isHorizontal() ? a -= i.cssOverflowAdjustment() : o -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${a}px, ${o}px, ${d}px)`);
|
|
903
|
-
let
|
|
904
|
-
const
|
|
905
|
-
|
|
903
|
+
let u;
|
|
904
|
+
const f = i.maxTranslate() - i.minTranslate();
|
|
905
|
+
f === 0 ? u = 0 : u = (t - i.minTranslate()) / f, u !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
|
|
906
906
|
}
|
|
907
907
|
function yt() {
|
|
908
908
|
return -this.snapGrid[0];
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function xt() {
|
|
911
911
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Et(t, e, i, n, s) {
|
|
914
914
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), n === void 0 && (n = !0);
|
|
915
915
|
const r = this, {
|
|
916
916
|
params: l,
|
|
@@ -919,35 +919,35 @@ function xt(t, e, i, n, s) {
|
|
|
919
919
|
if (r.animating && l.preventInteractionOnTransition)
|
|
920
920
|
return !1;
|
|
921
921
|
const o = r.minTranslate(), d = r.maxTranslate();
|
|
922
|
-
let
|
|
923
|
-
if (n && t > o ?
|
|
924
|
-
const
|
|
922
|
+
let u;
|
|
923
|
+
if (n && t > o ? u = o : n && t < d ? u = d : u = t, r.updateProgress(u), l.cssMode) {
|
|
924
|
+
const f = r.isHorizontal();
|
|
925
925
|
if (e === 0)
|
|
926
|
-
a[
|
|
926
|
+
a[f ? "scrollLeft" : "scrollTop"] = -u;
|
|
927
927
|
else {
|
|
928
928
|
if (!r.support.smoothScroll)
|
|
929
929
|
return Oe({
|
|
930
930
|
swiper: r,
|
|
931
|
-
targetPosition: -
|
|
932
|
-
side:
|
|
931
|
+
targetPosition: -u,
|
|
932
|
+
side: f ? "left" : "top"
|
|
933
933
|
}), !0;
|
|
934
934
|
a.scrollTo({
|
|
935
|
-
[
|
|
935
|
+
[f ? "left" : "top"]: -u,
|
|
936
936
|
behavior: "smooth"
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
return !0;
|
|
940
940
|
}
|
|
941
|
-
return e === 0 ? (r.setTransition(0), r.setTranslate(
|
|
942
|
-
!r || r.destroyed ||
|
|
941
|
+
return e === 0 ? (r.setTransition(0), r.setTranslate(u), i && (r.emit("beforeTransitionStart", e, s), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(u), i && (r.emit("beforeTransitionStart", e, s), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(h) {
|
|
942
|
+
!r || r.destroyed || h.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
|
|
943
943
|
}), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
|
|
944
944
|
}
|
|
945
945
|
var Mt = {
|
|
946
946
|
getTranslate: bt,
|
|
947
947
|
setTranslate: Tt,
|
|
948
948
|
minTranslate: yt,
|
|
949
|
-
maxTranslate:
|
|
950
|
-
translateTo:
|
|
949
|
+
maxTranslate: xt,
|
|
950
|
+
translateTo: Et
|
|
951
951
|
};
|
|
952
952
|
function Pt(t, e) {
|
|
953
953
|
const i = this;
|
|
@@ -1005,38 +1005,38 @@ function Lt(t, e, i, n, s) {
|
|
|
1005
1005
|
params: a,
|
|
1006
1006
|
snapGrid: o,
|
|
1007
1007
|
slidesGrid: d,
|
|
1008
|
-
previousIndex:
|
|
1009
|
-
activeIndex:
|
|
1010
|
-
rtlTranslate:
|
|
1011
|
-
wrapperEl:
|
|
1008
|
+
previousIndex: u,
|
|
1009
|
+
activeIndex: f,
|
|
1010
|
+
rtlTranslate: h,
|
|
1011
|
+
wrapperEl: g,
|
|
1012
1012
|
enabled: c
|
|
1013
1013
|
} = r;
|
|
1014
1014
|
if (!c && !n && !s || r.destroyed || r.animating && a.preventInteractionOnTransition)
|
|
1015
1015
|
return !1;
|
|
1016
1016
|
typeof e > "u" && (e = r.params.speed);
|
|
1017
|
-
const
|
|
1018
|
-
let
|
|
1019
|
-
|
|
1020
|
-
const v = -o[
|
|
1017
|
+
const m = Math.min(r.params.slidesPerGroupSkip, l);
|
|
1018
|
+
let S = m + Math.floor((l - m) / r.params.slidesPerGroup);
|
|
1019
|
+
S >= o.length && (S = o.length - 1);
|
|
1020
|
+
const v = -o[S];
|
|
1021
1021
|
if (a.normalizeSlideIndex)
|
|
1022
1022
|
for (let P = 0; P < d.length; P += 1) {
|
|
1023
|
-
const y = -Math.floor(v * 100), w = Math.floor(d[P] * 100),
|
|
1024
|
-
typeof d[P + 1] < "u" ? y >= w && y <
|
|
1023
|
+
const y = -Math.floor(v * 100), w = Math.floor(d[P] * 100), x = Math.floor(d[P + 1] * 100);
|
|
1024
|
+
typeof d[P + 1] < "u" ? y >= w && y < x - (x - w) / 2 ? l = P : y >= w && y < x && (l = P + 1) : y >= w && (l = P);
|
|
1025
1025
|
}
|
|
1026
|
-
if (r.initialized && l !==
|
|
1026
|
+
if (r.initialized && l !== f && (!r.allowSlideNext && (h ? v > r.translate && v > r.minTranslate() : v < r.translate && v < r.minTranslate()) || !r.allowSlidePrev && v > r.translate && v > r.maxTranslate() && (f || 0) !== l))
|
|
1027
1027
|
return !1;
|
|
1028
|
-
l !== (
|
|
1029
|
-
let
|
|
1030
|
-
l >
|
|
1028
|
+
l !== (u || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(v);
|
|
1029
|
+
let b;
|
|
1030
|
+
l > f ? b = "next" : l < f ? b = "prev" : b = "reset";
|
|
1031
1031
|
const p = r.virtual && r.params.virtual.enabled;
|
|
1032
|
-
if (!(p && s) && (
|
|
1033
|
-
return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(v),
|
|
1032
|
+
if (!(p && s) && (h && -v === r.translate || !h && v === r.translate))
|
|
1033
|
+
return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(v), b !== "reset" && (r.transitionStart(i, b), r.transitionEnd(i, b)), !1;
|
|
1034
1034
|
if (a.cssMode) {
|
|
1035
|
-
const P = r.isHorizontal(), y =
|
|
1035
|
+
const P = r.isHorizontal(), y = h ? v : -v;
|
|
1036
1036
|
if (e === 0)
|
|
1037
1037
|
p && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), p && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1038
|
-
|
|
1039
|
-
})) :
|
|
1038
|
+
g[P ? "scrollLeft" : "scrollTop"] = y;
|
|
1039
|
+
})) : g[P ? "scrollLeft" : "scrollTop"] = y, p && requestAnimationFrame(() => {
|
|
1040
1040
|
r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
|
|
1041
1041
|
});
|
|
1042
1042
|
else {
|
|
@@ -1046,7 +1046,7 @@ function Lt(t, e, i, n, s) {
|
|
|
1046
1046
|
targetPosition: y,
|
|
1047
1047
|
side: P ? "left" : "top"
|
|
1048
1048
|
}), !0;
|
|
1049
|
-
|
|
1049
|
+
g.scrollTo({
|
|
1050
1050
|
[P ? "left" : "top"]: y,
|
|
1051
1051
|
behavior: "smooth"
|
|
1052
1052
|
});
|
|
@@ -1054,8 +1054,8 @@ function Lt(t, e, i, n, s) {
|
|
|
1054
1054
|
return !0;
|
|
1055
1055
|
}
|
|
1056
1056
|
const C = ze().isSafari;
|
|
1057
|
-
return p && !s && C && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(v), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, n), r.transitionStart(i,
|
|
1058
|
-
!r || r.destroyed || y.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i,
|
|
1057
|
+
return p && !s && C && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(v), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, n), r.transitionStart(i, b), e === 0 ? r.transitionEnd(i, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(y) {
|
|
1058
|
+
!r || r.destroyed || y.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, b));
|
|
1059
1059
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
1060
1060
|
}
|
|
1061
1061
|
function Bt(t, e, i, n) {
|
|
@@ -1071,28 +1071,28 @@ function Bt(t, e, i, n) {
|
|
|
1071
1071
|
else {
|
|
1072
1072
|
let a;
|
|
1073
1073
|
if (r) {
|
|
1074
|
-
const
|
|
1075
|
-
a = s.slides.find((
|
|
1074
|
+
const h = l * s.params.grid.rows;
|
|
1075
|
+
a = s.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
|
|
1076
1076
|
} else
|
|
1077
1077
|
a = s.getSlideIndexByData(l);
|
|
1078
1078
|
const o = r ? Math.ceil(s.slides.length / s.params.grid.rows) : s.slides.length, {
|
|
1079
1079
|
centeredSlides: d
|
|
1080
1080
|
} = s.params;
|
|
1081
|
-
let
|
|
1082
|
-
|
|
1083
|
-
let
|
|
1084
|
-
if (d && (
|
|
1085
|
-
const
|
|
1081
|
+
let u = s.params.slidesPerView;
|
|
1082
|
+
u === "auto" ? u = s.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(s.params.slidesPerView, 10)), d && u % 2 === 0 && (u = u + 1));
|
|
1083
|
+
let f = o - a < u;
|
|
1084
|
+
if (d && (f = f || a < Math.ceil(u / 2)), n && d && s.params.slidesPerView !== "auto" && !r && (f = !1), f) {
|
|
1085
|
+
const h = d ? a < s.activeIndex ? "prev" : "next" : a - s.activeIndex - 1 < s.params.slidesPerView ? "next" : "prev";
|
|
1086
1086
|
s.loopFix({
|
|
1087
|
-
direction:
|
|
1087
|
+
direction: h,
|
|
1088
1088
|
slideTo: !0,
|
|
1089
|
-
activeSlideIndex:
|
|
1090
|
-
slideRealIndex:
|
|
1089
|
+
activeSlideIndex: h === "next" ? a + 1 : a - o + 1,
|
|
1090
|
+
slideRealIndex: h === "next" ? s.realIndex : void 0
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
1093
|
if (r) {
|
|
1094
|
-
const
|
|
1095
|
-
l = s.slides.find((
|
|
1094
|
+
const h = l * s.params.grid.rows;
|
|
1095
|
+
l = s.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
|
|
1096
1096
|
} else
|
|
1097
1097
|
l = s.getSlideIndexByData(l);
|
|
1098
1098
|
}
|
|
@@ -1135,29 +1135,29 @@ function At(t, e, i) {
|
|
|
1135
1135
|
} = n;
|
|
1136
1136
|
if (!o || n.destroyed) return n;
|
|
1137
1137
|
typeof t > "u" && (t = n.params.speed);
|
|
1138
|
-
const
|
|
1138
|
+
const u = n.virtual && s.virtual.enabled;
|
|
1139
1139
|
if (s.loop) {
|
|
1140
|
-
if (d && !
|
|
1140
|
+
if (d && !u && s.loopPreventsSliding) return !1;
|
|
1141
1141
|
n.loopFix({
|
|
1142
1142
|
direction: "prev"
|
|
1143
1143
|
}), n._clientLeft = n.wrapperEl.clientLeft;
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1145
|
+
const f = a ? n.translate : -n.translate;
|
|
1146
|
+
function h(b) {
|
|
1147
|
+
return b < 0 ? -Math.floor(Math.abs(b)) : Math.floor(b);
|
|
1148
1148
|
}
|
|
1149
|
-
const
|
|
1150
|
-
let
|
|
1151
|
-
if (typeof
|
|
1152
|
-
let
|
|
1149
|
+
const g = h(f), c = r.map((b) => h(b)), m = s.freeMode && s.freeMode.enabled;
|
|
1150
|
+
let S = r[c.indexOf(g) - 1];
|
|
1151
|
+
if (typeof S > "u" && (s.cssMode || m)) {
|
|
1152
|
+
let b;
|
|
1153
1153
|
r.forEach((p, T) => {
|
|
1154
|
-
|
|
1155
|
-
}), typeof
|
|
1154
|
+
g >= p && (b = T);
|
|
1155
|
+
}), typeof b < "u" && (S = m ? r[b] : r[b > 0 ? b - 1 : b]);
|
|
1156
1156
|
}
|
|
1157
1157
|
let v = 0;
|
|
1158
|
-
if (typeof
|
|
1159
|
-
const
|
|
1160
|
-
return n.slideTo(
|
|
1158
|
+
if (typeof S < "u" && (v = l.indexOf(S), v < 0 && (v = n.activeIndex - 1), s.slidesPerView === "auto" && s.slidesPerGroup === 1 && s.slidesPerGroupAuto && (v = v - n.slidesPerViewDynamic("previous", !0) + 1, v = Math.max(v, 0))), s.rewind && n.isBeginning) {
|
|
1159
|
+
const b = n.params.virtual && n.params.virtual.enabled && n.virtual ? n.virtual.slides.length - 1 : n.slides.length - 1;
|
|
1160
|
+
return n.slideTo(b, t, e, i);
|
|
1161
1161
|
} else if (s.loop && n.activeIndex === 0 && s.cssMode)
|
|
1162
1162
|
return requestAnimationFrame(() => {
|
|
1163
1163
|
n.slideTo(v, t, e, i);
|
|
@@ -1178,11 +1178,11 @@ function Dt(t, e, i, n) {
|
|
|
1178
1178
|
let r = s.activeIndex;
|
|
1179
1179
|
const l = Math.min(s.params.slidesPerGroupSkip, r), a = l + Math.floor((r - l) / s.params.slidesPerGroup), o = s.rtlTranslate ? s.translate : -s.translate;
|
|
1180
1180
|
if (o >= s.snapGrid[a]) {
|
|
1181
|
-
const d = s.snapGrid[a],
|
|
1182
|
-
o - d > (
|
|
1181
|
+
const d = s.snapGrid[a], u = s.snapGrid[a + 1];
|
|
1182
|
+
o - d > (u - d) * n && (r += s.params.slidesPerGroup);
|
|
1183
1183
|
} else {
|
|
1184
|
-
const d = s.snapGrid[a - 1],
|
|
1185
|
-
o - d <= (
|
|
1184
|
+
const d = s.snapGrid[a - 1], u = s.snapGrid[a];
|
|
1185
|
+
o - d <= (u - d) * n && (r -= s.params.slidesPerGroup);
|
|
1186
1186
|
}
|
|
1187
1187
|
return r = Math.max(r, 0), r = Math.min(r, s.slidesGrid.length - 1), s.slideTo(r, t, e, i);
|
|
1188
1188
|
}
|
|
@@ -1219,33 +1219,33 @@ function Vt(t, e) {
|
|
|
1219
1219
|
} = i;
|
|
1220
1220
|
if (!n.loop || i.virtual && i.params.virtual.enabled) return;
|
|
1221
1221
|
const r = () => {
|
|
1222
|
-
H(s, `.${n.slideClass}, swiper-slide`).forEach((
|
|
1223
|
-
|
|
1222
|
+
H(s, `.${n.slideClass}, swiper-slide`).forEach((g, c) => {
|
|
1223
|
+
g.setAttribute("data-swiper-slide-index", c);
|
|
1224
1224
|
});
|
|
1225
1225
|
}, l = () => {
|
|
1226
|
-
const
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
}),
|
|
1226
|
+
const h = H(s, `.${n.slideBlankClass}`);
|
|
1227
|
+
h.forEach((g) => {
|
|
1228
|
+
g.remove();
|
|
1229
|
+
}), h.length > 0 && (i.recalcSlides(), i.updateSlides());
|
|
1230
1230
|
}, a = i.grid && n.grid && n.grid.rows > 1;
|
|
1231
1231
|
n.loopAddBlankSlides && (n.slidesPerGroup > 1 || a) && l();
|
|
1232
|
-
const o = n.slidesPerGroup * (a ? n.grid.rows : 1), d = i.slides.length % o !== 0,
|
|
1233
|
-
for (let
|
|
1232
|
+
const o = n.slidesPerGroup * (a ? n.grid.rows : 1), d = i.slides.length % o !== 0, u = a && i.slides.length % n.grid.rows !== 0, f = (h) => {
|
|
1233
|
+
for (let g = 0; g < h; g += 1) {
|
|
1234
1234
|
const c = i.isElement ? ee("swiper-slide", [n.slideBlankClass]) : ee("div", [n.slideClass, n.slideBlankClass]);
|
|
1235
1235
|
i.slidesEl.append(c);
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
1238
|
if (d) {
|
|
1239
1239
|
if (n.loopAddBlankSlides) {
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1240
|
+
const h = o - i.slides.length % o;
|
|
1241
|
+
f(h), i.recalcSlides(), i.updateSlides();
|
|
1242
1242
|
} else
|
|
1243
1243
|
J("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1244
1244
|
r();
|
|
1245
|
-
} else if (
|
|
1245
|
+
} else if (u) {
|
|
1246
1246
|
if (n.loopAddBlankSlides) {
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1247
|
+
const h = n.grid.rows - i.slides.length % n.grid.rows;
|
|
1248
|
+
f(h), i.recalcSlides(), i.updateSlides();
|
|
1249
1249
|
} else
|
|
1250
1250
|
J("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1251
1251
|
r();
|
|
@@ -1272,70 +1272,70 @@ function kt(t) {
|
|
|
1272
1272
|
if (!d.params.loop) return;
|
|
1273
1273
|
d.emit("beforeLoopFix");
|
|
1274
1274
|
const {
|
|
1275
|
-
slides:
|
|
1276
|
-
allowSlidePrev:
|
|
1277
|
-
allowSlideNext:
|
|
1278
|
-
slidesEl:
|
|
1275
|
+
slides: u,
|
|
1276
|
+
allowSlidePrev: f,
|
|
1277
|
+
allowSlideNext: h,
|
|
1278
|
+
slidesEl: g,
|
|
1279
1279
|
params: c
|
|
1280
1280
|
} = d, {
|
|
1281
|
-
centeredSlides:
|
|
1282
|
-
initialSlide:
|
|
1281
|
+
centeredSlides: m,
|
|
1282
|
+
initialSlide: S
|
|
1283
1283
|
} = c;
|
|
1284
1284
|
if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && c.virtual.enabled) {
|
|
1285
|
-
i && (!c.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : c.centeredSlides && d.snapIndex < c.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev =
|
|
1285
|
+
i && (!c.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : c.centeredSlides && d.snapIndex < c.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = f, d.allowSlideNext = h, d.emit("loopFix");
|
|
1286
1286
|
return;
|
|
1287
1287
|
}
|
|
1288
1288
|
let v = c.slidesPerView;
|
|
1289
|
-
v === "auto" ? v = d.slidesPerViewDynamic() : (v = Math.ceil(parseFloat(c.slidesPerView, 10)),
|
|
1290
|
-
const
|
|
1291
|
-
let p =
|
|
1292
|
-
p %
|
|
1289
|
+
v === "auto" ? v = d.slidesPerViewDynamic() : (v = Math.ceil(parseFloat(c.slidesPerView, 10)), m && v % 2 === 0 && (v = v + 1));
|
|
1290
|
+
const b = c.slidesPerGroupAuto ? v : c.slidesPerGroup;
|
|
1291
|
+
let p = m ? Math.max(b, Math.ceil(v / 2)) : b;
|
|
1292
|
+
p % b !== 0 && (p += b - p % b), p += c.loopAdditionalSlides, d.loopedSlides = p;
|
|
1293
1293
|
const T = d.grid && c.grid && c.grid.rows > 1;
|
|
1294
|
-
|
|
1295
|
-
const
|
|
1296
|
-
let w = y ?
|
|
1297
|
-
typeof r > "u" ? r = d.getSlideIndex(
|
|
1298
|
-
const
|
|
1294
|
+
u.length < v + p || d.params.effect === "cards" && u.length < v + p * 2 ? J("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : T && c.grid.fill === "row" && J("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1295
|
+
const E = [], C = [], P = T ? Math.ceil(u.length / c.grid.rows) : u.length, y = l && P - S < v && !m;
|
|
1296
|
+
let w = y ? S : d.activeIndex;
|
|
1297
|
+
typeof r > "u" ? r = d.getSlideIndex(u.find((L) => L.classList.contains(c.slideActiveClass))) : w = r;
|
|
1298
|
+
const x = n === "next" || !n, M = n === "prev" || !n;
|
|
1299
1299
|
let I = 0, O = 0;
|
|
1300
|
-
const D = (T ?
|
|
1300
|
+
const D = (T ? u[r].column : r) + (m && typeof s > "u" ? -v / 2 + 0.5 : 0);
|
|
1301
1301
|
if (D < p) {
|
|
1302
|
-
I = Math.max(p - D,
|
|
1302
|
+
I = Math.max(p - D, b);
|
|
1303
1303
|
for (let L = 0; L < p - D; L += 1) {
|
|
1304
1304
|
const z = L - Math.floor(L / P) * P;
|
|
1305
1305
|
if (T) {
|
|
1306
1306
|
const A = P - z - 1;
|
|
1307
|
-
for (let V =
|
|
1308
|
-
|
|
1307
|
+
for (let V = u.length - 1; V >= 0; V -= 1)
|
|
1308
|
+
u[V].column === A && E.push(V);
|
|
1309
1309
|
} else
|
|
1310
|
-
|
|
1310
|
+
E.push(P - z - 1);
|
|
1311
1311
|
}
|
|
1312
1312
|
} else if (D + v > P - p) {
|
|
1313
|
-
O = Math.max(D - (P - p * 2),
|
|
1313
|
+
O = Math.max(D - (P - p * 2), b), y && (O = Math.max(O, v - P + S + 1));
|
|
1314
1314
|
for (let L = 0; L < O; L += 1) {
|
|
1315
1315
|
const z = L - Math.floor(L / P) * P;
|
|
1316
|
-
T ?
|
|
1316
|
+
T ? u.forEach((A, V) => {
|
|
1317
1317
|
A.column === z && C.push(V);
|
|
1318
1318
|
}) : C.push(z);
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1322
1322
|
d.__preventObserver__ = !1;
|
|
1323
|
-
}), d.params.effect === "cards" &&
|
|
1324
|
-
|
|
1325
|
-
}),
|
|
1326
|
-
|
|
1327
|
-
}), d.recalcSlides(), c.slidesPerView === "auto" ? d.updateSlides() : T && (
|
|
1323
|
+
}), d.params.effect === "cards" && u.length < v + p * 2 && (C.includes(r) && C.splice(C.indexOf(r), 1), E.includes(r) && E.splice(E.indexOf(r), 1)), M && E.forEach((L) => {
|
|
1324
|
+
u[L].swiperLoopMoveDOM = !0, g.prepend(u[L]), u[L].swiperLoopMoveDOM = !1;
|
|
1325
|
+
}), x && C.forEach((L) => {
|
|
1326
|
+
u[L].swiperLoopMoveDOM = !0, g.append(u[L]), u[L].swiperLoopMoveDOM = !1;
|
|
1327
|
+
}), d.recalcSlides(), c.slidesPerView === "auto" ? d.updateSlides() : T && (E.length > 0 && M || C.length > 0 && x) && d.slides.forEach((L, z) => {
|
|
1328
1328
|
d.grid.updateSlide(z, L, d.slides);
|
|
1329
1329
|
}), c.watchSlidesProgress && d.updateSlidesOffset(), i) {
|
|
1330
|
-
if (
|
|
1330
|
+
if (E.length > 0 && M) {
|
|
1331
1331
|
if (typeof e > "u") {
|
|
1332
1332
|
const L = d.slidesGrid[w], A = d.slidesGrid[w + I] - L;
|
|
1333
1333
|
o ? d.setTranslate(d.translate - A) : (d.slideTo(w + Math.ceil(I), 0, !1, !0), s && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - A, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - A));
|
|
1334
1334
|
} else if (s) {
|
|
1335
|
-
const L = T ?
|
|
1335
|
+
const L = T ? E.length / c.grid.rows : E.length;
|
|
1336
1336
|
d.slideTo(d.activeIndex + L, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
|
|
1337
1337
|
}
|
|
1338
|
-
} else if (C.length > 0 &&
|
|
1338
|
+
} else if (C.length > 0 && x)
|
|
1339
1339
|
if (typeof e > "u") {
|
|
1340
1340
|
const L = d.slidesGrid[w], A = d.slidesGrid[w - O] - L;
|
|
1341
1341
|
o ? d.setTranslate(d.translate - A) : (d.slideTo(w - O, 0, !1, !0), s && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - A, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - A));
|
|
@@ -1344,7 +1344,7 @@ function kt(t) {
|
|
|
1344
1344
|
d.slideTo(d.activeIndex - L, 0, !1, !0);
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
if (d.allowSlidePrev =
|
|
1347
|
+
if (d.allowSlidePrev = f, d.allowSlideNext = h, d.controller && d.controller.control && !a) {
|
|
1348
1348
|
const L = {
|
|
1349
1349
|
slideRealIndex: e,
|
|
1350
1350
|
direction: n,
|
|
@@ -1394,20 +1394,20 @@ function Ft(t) {
|
|
|
1394
1394
|
e.__preventObserver__ = !1;
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function $t() {
|
|
1398
1398
|
const t = this;
|
|
1399
1399
|
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1400
1400
|
t.__preventObserver__ = !1;
|
|
1401
1401
|
}));
|
|
1402
1402
|
}
|
|
1403
|
-
var
|
|
1403
|
+
var jt = {
|
|
1404
1404
|
setGrabCursor: Ft,
|
|
1405
|
-
unsetGrabCursor:
|
|
1405
|
+
unsetGrabCursor: $t
|
|
1406
1406
|
};
|
|
1407
1407
|
function Wt(t, e) {
|
|
1408
1408
|
e === void 0 && (e = this);
|
|
1409
1409
|
function i(n) {
|
|
1410
|
-
if (!n || n ===
|
|
1410
|
+
if (!n || n === j() || n === _()) return null;
|
|
1411
1411
|
n.assignedSlot && (n = n.assignedSlot);
|
|
1412
1412
|
const s = n.closest(t);
|
|
1413
1413
|
return !s && !n.getRootNode ? null : s || i(n.getRootNode().host);
|
|
@@ -1421,7 +1421,7 @@ function be(t, e, i) {
|
|
|
1421
1421
|
return r && (i <= l || i >= n.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1422
1422
|
}
|
|
1423
1423
|
function Xt(t) {
|
|
1424
|
-
const e = this, i =
|
|
1424
|
+
const e = this, i = j();
|
|
1425
1425
|
let n = t;
|
|
1426
1426
|
n.originalEvent && (n = n.originalEvent);
|
|
1427
1427
|
const s = e.touchEventsData;
|
|
@@ -1444,18 +1444,18 @@ function Xt(t) {
|
|
|
1444
1444
|
!e.animating && r.cssMode && r.loop && e.loopFix();
|
|
1445
1445
|
let o = n.target;
|
|
1446
1446
|
if (r.touchEventsTarget === "wrapper" && !Je(o, e.wrapperEl) || "which" in n && n.which === 3 || "button" in n && n.button > 0 || s.isTouched && s.isMoved) return;
|
|
1447
|
-
const d = !!r.noSwipingClass && r.noSwipingClass !== "",
|
|
1448
|
-
d && n.target && n.target.shadowRoot &&
|
|
1449
|
-
const
|
|
1450
|
-
if (r.noSwiping && (
|
|
1447
|
+
const d = !!r.noSwipingClass && r.noSwipingClass !== "", u = n.composedPath ? n.composedPath() : n.path;
|
|
1448
|
+
d && n.target && n.target.shadowRoot && u && (o = u[0]);
|
|
1449
|
+
const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, h = !!(n.target && n.target.shadowRoot);
|
|
1450
|
+
if (r.noSwiping && (h ? Wt(f, o) : o.closest(f))) {
|
|
1451
1451
|
e.allowClick = !0;
|
|
1452
1452
|
return;
|
|
1453
1453
|
}
|
|
1454
1454
|
if (r.swipeHandler && !o.closest(r.swipeHandler))
|
|
1455
1455
|
return;
|
|
1456
1456
|
l.currentX = n.pageX, l.currentY = n.pageY;
|
|
1457
|
-
const
|
|
1458
|
-
if (!be(e, n,
|
|
1457
|
+
const g = l.currentX, c = l.currentY;
|
|
1458
|
+
if (!be(e, n, g))
|
|
1459
1459
|
return;
|
|
1460
1460
|
Object.assign(s, {
|
|
1461
1461
|
isTouched: !0,
|
|
@@ -1463,14 +1463,14 @@ function Xt(t) {
|
|
|
1463
1463
|
allowTouchCallbacks: !0,
|
|
1464
1464
|
isScrolling: void 0,
|
|
1465
1465
|
startMoving: void 0
|
|
1466
|
-
}), l.startX =
|
|
1467
|
-
let
|
|
1468
|
-
o.matches(s.focusableElements) && (
|
|
1469
|
-
const
|
|
1470
|
-
(r.touchStartForcePreventDefault ||
|
|
1466
|
+
}), l.startX = g, l.startY = c, s.touchStartTime = R(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (s.allowThresholdMove = !1);
|
|
1467
|
+
let m = !0;
|
|
1468
|
+
o.matches(s.focusableElements) && (m = !1, o.nodeName === "SELECT" && (s.isTouched = !1)), i.activeElement && i.activeElement.matches(s.focusableElements) && i.activeElement !== o && (n.pointerType === "mouse" || n.pointerType !== "mouse" && !o.matches(s.focusableElements)) && i.activeElement.blur();
|
|
1469
|
+
const S = m && e.allowTouchMove && r.touchStartPreventDefault;
|
|
1470
|
+
(r.touchStartForcePreventDefault || S) && !o.isContentEditable && n.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", n);
|
|
1471
1471
|
}
|
|
1472
1472
|
function Yt(t) {
|
|
1473
|
-
const e =
|
|
1473
|
+
const e = j(), i = this, n = i.touchEventsData, {
|
|
1474
1474
|
params: s,
|
|
1475
1475
|
touches: r,
|
|
1476
1476
|
rtlTranslate: l,
|
|
@@ -1482,49 +1482,49 @@ function Yt(t) {
|
|
|
1482
1482
|
return;
|
|
1483
1483
|
let d;
|
|
1484
1484
|
if (o.type === "touchmove") {
|
|
1485
|
-
if (d = [...o.changedTouches].find((
|
|
1485
|
+
if (d = [...o.changedTouches].find((E) => E.identifier === n.touchId), !d || d.identifier !== n.touchId) return;
|
|
1486
1486
|
} else
|
|
1487
1487
|
d = o;
|
|
1488
1488
|
if (!n.isTouched) {
|
|
1489
1489
|
n.startMoving && n.isScrolling && i.emit("touchMoveOpposite", o);
|
|
1490
1490
|
return;
|
|
1491
1491
|
}
|
|
1492
|
-
const
|
|
1492
|
+
const u = d.pageX, f = d.pageY;
|
|
1493
1493
|
if (o.preventedByNestedSwiper) {
|
|
1494
|
-
r.startX =
|
|
1494
|
+
r.startX = u, r.startY = f;
|
|
1495
1495
|
return;
|
|
1496
1496
|
}
|
|
1497
1497
|
if (!i.allowTouchMove) {
|
|
1498
1498
|
o.target.matches(n.focusableElements) || (i.allowClick = !1), n.isTouched && (Object.assign(r, {
|
|
1499
|
-
startX:
|
|
1500
|
-
startY:
|
|
1501
|
-
currentX:
|
|
1502
|
-
currentY:
|
|
1499
|
+
startX: u,
|
|
1500
|
+
startY: f,
|
|
1501
|
+
currentX: u,
|
|
1502
|
+
currentY: f
|
|
1503
1503
|
}), n.touchStartTime = R());
|
|
1504
1504
|
return;
|
|
1505
1505
|
}
|
|
1506
1506
|
if (s.touchReleaseOnEdges && !s.loop)
|
|
1507
1507
|
if (i.isVertical()) {
|
|
1508
|
-
if (
|
|
1508
|
+
if (f < r.startY && i.translate <= i.maxTranslate() || f > r.startY && i.translate >= i.minTranslate()) {
|
|
1509
1509
|
n.isTouched = !1, n.isMoved = !1;
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
1512
|
} else {
|
|
1513
|
-
if (l && (
|
|
1513
|
+
if (l && (u > r.startX && -i.translate <= i.maxTranslate() || u < r.startX && -i.translate >= i.minTranslate()))
|
|
1514
1514
|
return;
|
|
1515
|
-
if (!l && (
|
|
1515
|
+
if (!l && (u < r.startX && i.translate <= i.maxTranslate() || u > r.startX && i.translate >= i.minTranslate()))
|
|
1516
1516
|
return;
|
|
1517
1517
|
}
|
|
1518
1518
|
if (e.activeElement && e.activeElement.matches(n.focusableElements) && e.activeElement !== o.target && o.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && o.target === e.activeElement && o.target.matches(n.focusableElements)) {
|
|
1519
1519
|
n.isMoved = !0, i.allowClick = !1;
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
1522
|
-
n.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX =
|
|
1523
|
-
const
|
|
1524
|
-
if (i.params.threshold && Math.sqrt(
|
|
1522
|
+
n.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = u, r.currentY = f;
|
|
1523
|
+
const h = r.currentX - r.startX, g = r.currentY - r.startY;
|
|
1524
|
+
if (i.params.threshold && Math.sqrt(h ** 2 + g ** 2) < i.params.threshold) return;
|
|
1525
1525
|
if (typeof n.isScrolling > "u") {
|
|
1526
|
-
let
|
|
1527
|
-
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? n.isScrolling = !1 :
|
|
1526
|
+
let E;
|
|
1527
|
+
i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? n.isScrolling = !1 : h * h + g * g >= 25 && (E = Math.atan2(Math.abs(g), Math.abs(h)) * 180 / Math.PI, n.isScrolling = i.isHorizontal() ? E > s.touchAngle : 90 - E > s.touchAngle);
|
|
1528
1528
|
}
|
|
1529
1529
|
if (n.isScrolling && i.emit("touchMoveOpposite", o), typeof n.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (n.startMoving = !0), n.isScrolling || o.type === "touchmove" && n.preventTouchMoveFromPointerMove) {
|
|
1530
1530
|
n.isTouched = !1;
|
|
@@ -1533,43 +1533,43 @@ function Yt(t) {
|
|
|
1533
1533
|
if (!n.startMoving)
|
|
1534
1534
|
return;
|
|
1535
1535
|
i.allowClick = !1, !s.cssMode && o.cancelable && o.preventDefault(), s.touchMoveStopPropagation && !s.nested && o.stopPropagation();
|
|
1536
|
-
let c = i.isHorizontal() ?
|
|
1537
|
-
s.oneWayMovement && (c = Math.abs(c) * (l ? 1 : -1),
|
|
1538
|
-
const
|
|
1539
|
-
i.swipeDirection = c > 0 ? "prev" : "next", i.touchesDirection =
|
|
1540
|
-
const v = i.params.loop && !s.cssMode,
|
|
1536
|
+
let c = i.isHorizontal() ? h : g, m = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
1537
|
+
s.oneWayMovement && (c = Math.abs(c) * (l ? 1 : -1), m = Math.abs(m) * (l ? 1 : -1)), r.diff = c, c *= s.touchRatio, l && (c = -c, m = -m);
|
|
1538
|
+
const S = i.touchesDirection;
|
|
1539
|
+
i.swipeDirection = c > 0 ? "prev" : "next", i.touchesDirection = m > 0 ? "prev" : "next";
|
|
1540
|
+
const v = i.params.loop && !s.cssMode, b = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
|
|
1541
1541
|
if (!n.isMoved) {
|
|
1542
|
-
if (v &&
|
|
1542
|
+
if (v && b && i.loopFix({
|
|
1543
1543
|
direction: i.swipeDirection
|
|
1544
1544
|
}), n.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
|
|
1545
|
-
const
|
|
1545
|
+
const E = new window.CustomEvent("transitionend", {
|
|
1546
1546
|
bubbles: !0,
|
|
1547
1547
|
cancelable: !0,
|
|
1548
1548
|
detail: {
|
|
1549
1549
|
bySwiperTouchMove: !0
|
|
1550
1550
|
}
|
|
1551
1551
|
});
|
|
1552
|
-
i.wrapperEl.dispatchEvent(
|
|
1552
|
+
i.wrapperEl.dispatchEvent(E);
|
|
1553
1553
|
}
|
|
1554
1554
|
n.allowMomentumBounce = !1, s.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
|
|
1555
1555
|
}
|
|
1556
|
-
if ((/* @__PURE__ */ new Date()).getTime(), s._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove &&
|
|
1556
|
+
if ((/* @__PURE__ */ new Date()).getTime(), s._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && S !== i.touchesDirection && v && b && Math.abs(c) >= 1) {
|
|
1557
1557
|
Object.assign(r, {
|
|
1558
|
-
startX:
|
|
1559
|
-
startY:
|
|
1560
|
-
currentX:
|
|
1561
|
-
currentY:
|
|
1558
|
+
startX: u,
|
|
1559
|
+
startY: f,
|
|
1560
|
+
currentX: u,
|
|
1561
|
+
currentY: f,
|
|
1562
1562
|
startTranslate: n.currentTranslate
|
|
1563
1563
|
}), n.loopSwapReset = !0, n.startTranslate = n.currentTranslate;
|
|
1564
1564
|
return;
|
|
1565
1565
|
}
|
|
1566
1566
|
i.emit("sliderMove", o), n.isMoved = !0, n.currentTranslate = c + n.startTranslate;
|
|
1567
1567
|
let p = !0, T = s.resistanceRatio;
|
|
1568
|
-
if (s.touchReleaseOnEdges && (T = 0), c > 0 ? (v &&
|
|
1568
|
+
if (s.touchReleaseOnEdges && (T = 0), c > 0 ? (v && b && n.allowThresholdMove && n.currentTranslate > (s.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (s.slidesPerView !== "auto" && i.slides.length - s.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
|
|
1569
1569
|
direction: "prev",
|
|
1570
1570
|
setTranslate: !0,
|
|
1571
1571
|
activeSlideIndex: 0
|
|
1572
|
-
}), n.currentTranslate > i.minTranslate() && (p = !1, s.resistance && (n.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + n.startTranslate + c) ** T))) : c < 0 && (v &&
|
|
1572
|
+
}), n.currentTranslate > i.minTranslate() && (p = !1, s.resistance && (n.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + n.startTranslate + c) ** T))) : c < 0 && (v && b && n.allowThresholdMove && n.currentTranslate < (s.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (s.slidesPerView !== "auto" && i.slides.length - s.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
|
|
1573
1573
|
direction: "next",
|
|
1574
1574
|
setTranslate: !0,
|
|
1575
1575
|
activeSlideIndex: i.slides.length - (s.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(s.slidesPerView, 10)))
|
|
@@ -1591,7 +1591,7 @@ function qt(t) {
|
|
|
1591
1591
|
n.originalEvent && (n = n.originalEvent);
|
|
1592
1592
|
let s;
|
|
1593
1593
|
if (n.type === "touchend" || n.type === "touchcancel") {
|
|
1594
|
-
if (s = [...n.changedTouches].find((
|
|
1594
|
+
if (s = [...n.changedTouches].find((E) => E.identifier === i.touchId), !s || s.identifier !== i.touchId) return;
|
|
1595
1595
|
} else {
|
|
1596
1596
|
if (i.touchId !== null || n.pointerId !== i.pointerId) return;
|
|
1597
1597
|
s = n;
|
|
@@ -1604,18 +1604,18 @@ function qt(t) {
|
|
|
1604
1604
|
touches: a,
|
|
1605
1605
|
rtlTranslate: o,
|
|
1606
1606
|
slidesGrid: d,
|
|
1607
|
-
enabled:
|
|
1607
|
+
enabled: u
|
|
1608
1608
|
} = e;
|
|
1609
|
-
if (!
|
|
1609
|
+
if (!u || !l.simulateTouch && n.pointerType === "mouse") return;
|
|
1610
1610
|
if (i.allowTouchCallbacks && e.emit("touchEnd", n), i.allowTouchCallbacks = !1, !i.isTouched) {
|
|
1611
1611
|
i.isMoved && l.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1615
|
-
const
|
|
1615
|
+
const f = R(), h = f - i.touchStartTime;
|
|
1616
1616
|
if (e.allowClick) {
|
|
1617
|
-
const
|
|
1618
|
-
e.updateClickedSlide(
|
|
1617
|
+
const E = n.path || n.composedPath && n.composedPath();
|
|
1618
|
+
e.updateClickedSlide(E && E[0] || n.target, E), e.emit("tap click", n), h < 300 && f - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", n);
|
|
1619
1619
|
}
|
|
1620
1620
|
if (i.lastClickTime = R(), Q(() => {
|
|
1621
1621
|
e.destroyed || (e.allowClick = !0);
|
|
@@ -1624,36 +1624,36 @@ function qt(t) {
|
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
|
|
1627
|
-
let
|
|
1628
|
-
if (l.followFinger ?
|
|
1627
|
+
let g;
|
|
1628
|
+
if (l.followFinger ? g = o ? e.translate : -e.translate : g = -i.currentTranslate, l.cssMode)
|
|
1629
1629
|
return;
|
|
1630
1630
|
if (l.freeMode && l.freeMode.enabled) {
|
|
1631
1631
|
e.freeMode.onTouchEnd({
|
|
1632
|
-
currentPos:
|
|
1632
|
+
currentPos: g
|
|
1633
1633
|
});
|
|
1634
1634
|
return;
|
|
1635
1635
|
}
|
|
1636
|
-
const c =
|
|
1637
|
-
let
|
|
1638
|
-
for (let
|
|
1639
|
-
const C =
|
|
1640
|
-
typeof d[
|
|
1636
|
+
const c = g >= -e.maxTranslate() && !e.params.loop;
|
|
1637
|
+
let m = 0, S = e.slidesSizesGrid[0];
|
|
1638
|
+
for (let E = 0; E < d.length; E += E < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
|
|
1639
|
+
const C = E < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1640
|
+
typeof d[E + C] < "u" ? (c || g >= d[E] && g < d[E + C]) && (m = E, S = d[E + C] - d[E]) : (c || g >= d[E]) && (m = E, S = d[d.length - 1] - d[d.length - 2]);
|
|
1641
1641
|
}
|
|
1642
|
-
let v = null,
|
|
1643
|
-
l.rewind && (e.isBeginning ?
|
|
1644
|
-
const p = (
|
|
1645
|
-
if (
|
|
1642
|
+
let v = null, b = null;
|
|
1643
|
+
l.rewind && (e.isBeginning ? b = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (v = 0));
|
|
1644
|
+
const p = (g - d[m]) / S, T = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
|
|
1645
|
+
if (h > l.longSwipesMs) {
|
|
1646
1646
|
if (!l.longSwipes) {
|
|
1647
1647
|
e.slideTo(e.activeIndex);
|
|
1648
1648
|
return;
|
|
1649
1649
|
}
|
|
1650
|
-
e.swipeDirection === "next" && (p >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? v :
|
|
1650
|
+
e.swipeDirection === "next" && (p >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? v : m + T) : e.slideTo(m)), e.swipeDirection === "prev" && (p > 1 - l.longSwipesRatio ? e.slideTo(m + T) : b !== null && p < 0 && Math.abs(p) > l.longSwipesRatio ? e.slideTo(b) : e.slideTo(m));
|
|
1651
1651
|
} else {
|
|
1652
1652
|
if (!l.shortSwipes) {
|
|
1653
1653
|
e.slideTo(e.activeIndex);
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
|
-
e.navigation && (n.target === e.navigation.nextEl || n.target === e.navigation.prevEl) ? n.target === e.navigation.nextEl ? e.slideTo(
|
|
1656
|
+
e.navigation && (n.target === e.navigation.nextEl || n.target === e.navigation.prevEl) ? n.target === e.navigation.nextEl ? e.slideTo(m + T) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(v !== null ? v : m + T), e.swipeDirection === "prev" && e.slideTo(b !== null ? b : m));
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
1659
|
function Te() {
|
|
@@ -1699,7 +1699,7 @@ function Qt() {
|
|
|
1699
1699
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1700
1700
|
}
|
|
1701
1701
|
const _e = (t, e) => {
|
|
1702
|
-
const i =
|
|
1702
|
+
const i = j(), {
|
|
1703
1703
|
params: n,
|
|
1704
1704
|
el: s,
|
|
1705
1705
|
wrapperEl: r,
|
|
@@ -1758,22 +1758,22 @@ function ii() {
|
|
|
1758
1758
|
el: s
|
|
1759
1759
|
} = t, r = n.breakpoints;
|
|
1760
1760
|
if (!r || r && Object.keys(r).length === 0) return;
|
|
1761
|
-
const l =
|
|
1761
|
+
const l = j(), a = n.breakpointsBase === "window" || !n.breakpointsBase ? n.breakpointsBase : "container", o = ["window", "container"].includes(n.breakpointsBase) || !n.breakpointsBase ? t.el : l.querySelector(n.breakpointsBase), d = t.getBreakpoint(r, a, o);
|
|
1762
1762
|
if (!d || t.currentBreakpoint === d) return;
|
|
1763
|
-
const
|
|
1764
|
-
|
|
1765
|
-
if (typeof
|
|
1766
|
-
const P = n[C] && n[C].enabled, y =
|
|
1763
|
+
const f = (d in r ? r[d] : void 0) || t.originalParams, h = ye(t, n), g = ye(t, f), c = t.params.grabCursor, m = f.grabCursor, S = n.enabled;
|
|
1764
|
+
h && !g ? (s.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), t.emitContainerClasses()) : !h && g && (s.classList.add(`${n.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && n.grid.fill === "column") && s.classList.add(`${n.containerModifierClass}grid-column`), t.emitContainerClasses()), c && !m ? t.unsetGrabCursor() : !c && m && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => {
|
|
1765
|
+
if (typeof f[C] > "u") return;
|
|
1766
|
+
const P = n[C] && n[C].enabled, y = f[C] && f[C].enabled;
|
|
1767
1767
|
P && !y && t[C].disable(), !P && y && t[C].enable();
|
|
1768
1768
|
});
|
|
1769
|
-
const v =
|
|
1770
|
-
v && i && t.changeDirection(), N(t.params,
|
|
1771
|
-
const T = t.params.enabled,
|
|
1769
|
+
const v = f.direction && f.direction !== n.direction, b = n.loop && (f.slidesPerView !== n.slidesPerView || v), p = n.loop;
|
|
1770
|
+
v && i && t.changeDirection(), N(t.params, f);
|
|
1771
|
+
const T = t.params.enabled, E = t.params.loop;
|
|
1772
1772
|
Object.assign(t, {
|
|
1773
1773
|
allowTouchMove: t.params.allowTouchMove,
|
|
1774
1774
|
allowSlideNext: t.params.allowSlideNext,
|
|
1775
1775
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1776
|
-
}),
|
|
1776
|
+
}), S && !T ? t.disable() : !S && T && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (b ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p && E ? (t.loopCreate(e), t.updateSlides()) : p && !E && t.loopDestroy()), t.emit("breakpoint", f);
|
|
1777
1777
|
}
|
|
1778
1778
|
function ni(t, e, i) {
|
|
1779
1779
|
if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
|
|
@@ -1868,7 +1868,7 @@ function di() {
|
|
|
1868
1868
|
t.isLocked = t.snapGrid.length === 1;
|
|
1869
1869
|
i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
1870
1870
|
}
|
|
1871
|
-
var
|
|
1871
|
+
var ui = {
|
|
1872
1872
|
checkOverflow: di
|
|
1873
1873
|
}, ce = {
|
|
1874
1874
|
init: !0,
|
|
@@ -1991,7 +1991,7 @@ var fi = {
|
|
|
1991
1991
|
// Internals
|
|
1992
1992
|
_emitClasses: !1
|
|
1993
1993
|
};
|
|
1994
|
-
function
|
|
1994
|
+
function fi(t, e) {
|
|
1995
1995
|
return function(n) {
|
|
1996
1996
|
n === void 0 && (n = {});
|
|
1997
1997
|
const s = Object.keys(n)[0], r = n[s];
|
|
@@ -2017,38 +2017,38 @@ const le = {
|
|
|
2017
2017
|
transition: Ot,
|
|
2018
2018
|
slide: Nt,
|
|
2019
2019
|
loop: Ht,
|
|
2020
|
-
grabCursor:
|
|
2020
|
+
grabCursor: jt,
|
|
2021
2021
|
events: ti,
|
|
2022
2022
|
breakpoints: si,
|
|
2023
|
-
checkOverflow:
|
|
2023
|
+
checkOverflow: ui,
|
|
2024
2024
|
classes: oi
|
|
2025
2025
|
}, oe = {};
|
|
2026
|
-
let me = class
|
|
2026
|
+
let me = class $ {
|
|
2027
2027
|
constructor() {
|
|
2028
2028
|
let e, i;
|
|
2029
2029
|
for (var n = arguments.length, s = new Array(n), r = 0; r < n; r++)
|
|
2030
2030
|
s[r] = arguments[r];
|
|
2031
2031
|
s.length === 1 && s[0].constructor && Object.prototype.toString.call(s[0]).slice(8, -1) === "Object" ? i = s[0] : [e, i] = s, i || (i = {}), i = N({}, i), e && !i.el && (i.el = e);
|
|
2032
|
-
const l =
|
|
2032
|
+
const l = j();
|
|
2033
2033
|
if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
|
|
2034
|
-
const
|
|
2035
|
-
return l.querySelectorAll(i.el).forEach((
|
|
2036
|
-
const
|
|
2037
|
-
el:
|
|
2034
|
+
const u = [];
|
|
2035
|
+
return l.querySelectorAll(i.el).forEach((f) => {
|
|
2036
|
+
const h = N({}, i, {
|
|
2037
|
+
el: f
|
|
2038
2038
|
});
|
|
2039
|
-
|
|
2040
|
-
}),
|
|
2039
|
+
u.push(new $(h));
|
|
2040
|
+
}), u;
|
|
2041
2041
|
}
|
|
2042
2042
|
const a = this;
|
|
2043
2043
|
a.__swiper__ = !0, a.support = Le(), a.device = Be({
|
|
2044
2044
|
userAgent: i.userAgent
|
|
2045
2045
|
}), a.browser = ze(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
|
|
2046
2046
|
const o = {};
|
|
2047
|
-
a.modules.forEach((
|
|
2048
|
-
|
|
2047
|
+
a.modules.forEach((u) => {
|
|
2048
|
+
u({
|
|
2049
2049
|
params: i,
|
|
2050
2050
|
swiper: a,
|
|
2051
|
-
extendParams:
|
|
2051
|
+
extendParams: fi(i, o),
|
|
2052
2052
|
on: a.on.bind(a),
|
|
2053
2053
|
once: a.once.bind(a),
|
|
2054
2054
|
off: a.off.bind(a),
|
|
@@ -2056,8 +2056,8 @@ let me = class j {
|
|
|
2056
2056
|
});
|
|
2057
2057
|
});
|
|
2058
2058
|
const d = N({}, ce, o);
|
|
2059
|
-
return a.params = N({}, d, oe, i), a.originalParams = N({}, a.params), a.passedParams = N({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((
|
|
2060
|
-
a.on(
|
|
2059
|
+
return a.params = N({}, d, oe, i), a.originalParams = N({}, a.params), a.passedParams = N({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((u) => {
|
|
2060
|
+
a.on(u, a.params.on[u]);
|
|
2061
2061
|
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2062
2062
|
enabled: a.params.enabled,
|
|
2063
2063
|
el: e,
|
|
@@ -2209,21 +2209,21 @@ let me = class j {
|
|
|
2209
2209
|
size: o,
|
|
2210
2210
|
activeIndex: d
|
|
2211
2211
|
} = n;
|
|
2212
|
-
let
|
|
2212
|
+
let u = 1;
|
|
2213
2213
|
if (typeof s.slidesPerView == "number") return s.slidesPerView;
|
|
2214
2214
|
if (s.centeredSlides) {
|
|
2215
|
-
let
|
|
2216
|
-
for (let
|
|
2217
|
-
r[
|
|
2218
|
-
for (let
|
|
2219
|
-
r[
|
|
2215
|
+
let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, h;
|
|
2216
|
+
for (let g = d + 1; g < r.length; g += 1)
|
|
2217
|
+
r[g] && !h && (f += Math.ceil(r[g].swiperSlideSize), u += 1, f > o && (h = !0));
|
|
2218
|
+
for (let g = d - 1; g >= 0; g -= 1)
|
|
2219
|
+
r[g] && !h && (f += r[g].swiperSlideSize, u += 1, f > o && (h = !0));
|
|
2220
2220
|
} else if (e === "current")
|
|
2221
|
-
for (let
|
|
2222
|
-
(i ? l[
|
|
2221
|
+
for (let f = d + 1; f < r.length; f += 1)
|
|
2222
|
+
(i ? l[f] + a[f] - l[d] < o : l[f] - l[d] < o) && (u += 1);
|
|
2223
2223
|
else
|
|
2224
|
-
for (let
|
|
2225
|
-
l[d] - l[
|
|
2226
|
-
return
|
|
2224
|
+
for (let f = d - 1; f >= 0; f -= 1)
|
|
2225
|
+
l[d] - l[f] < o && (u += 1);
|
|
2226
|
+
return u;
|
|
2227
2227
|
}
|
|
2228
2228
|
update() {
|
|
2229
2229
|
const e = this;
|
|
@@ -2295,7 +2295,7 @@ let me = class j {
|
|
|
2295
2295
|
r.complete ? Z(i, r) : r.addEventListener("load", (l) => {
|
|
2296
2296
|
Z(i, l.target);
|
|
2297
2297
|
});
|
|
2298
|
-
}),
|
|
2298
|
+
}), fe(i), i.initialized = !0, fe(i), i.emit("init"), i.emit("afterInit"), i;
|
|
2299
2299
|
}
|
|
2300
2300
|
destroy(e, i) {
|
|
2301
2301
|
e === void 0 && (e = !0), i === void 0 && (i = !0);
|
|
@@ -2321,12 +2321,12 @@ let me = class j {
|
|
|
2321
2321
|
return ce;
|
|
2322
2322
|
}
|
|
2323
2323
|
static installModule(e) {
|
|
2324
|
-
|
|
2325
|
-
const i =
|
|
2324
|
+
$.prototype.__modules__ || ($.prototype.__modules__ = []);
|
|
2325
|
+
const i = $.prototype.__modules__;
|
|
2326
2326
|
typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
|
|
2327
2327
|
}
|
|
2328
2328
|
static use(e) {
|
|
2329
|
-
return Array.isArray(e) ? (e.forEach((i) =>
|
|
2329
|
+
return Array.isArray(e) ? (e.forEach((i) => $.installModule(i)), $) : ($.installModule(e), $);
|
|
2330
2330
|
}
|
|
2331
2331
|
};
|
|
2332
2332
|
Object.keys(le).forEach((t) => {
|
|
@@ -2494,28 +2494,28 @@ function pi(t) {
|
|
|
2494
2494
|
paginationEl: o
|
|
2495
2495
|
} = t;
|
|
2496
2496
|
const d = s.filter((w) => w !== "children" && w !== "direction" && w !== "wrapperClass"), {
|
|
2497
|
-
params:
|
|
2498
|
-
pagination:
|
|
2499
|
-
navigation:
|
|
2500
|
-
scrollbar:
|
|
2497
|
+
params: u,
|
|
2498
|
+
pagination: f,
|
|
2499
|
+
navigation: h,
|
|
2500
|
+
scrollbar: g,
|
|
2501
2501
|
virtual: c,
|
|
2502
|
-
thumbs:
|
|
2502
|
+
thumbs: m
|
|
2503
2503
|
} = e;
|
|
2504
|
-
let
|
|
2505
|
-
s.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed &&
|
|
2504
|
+
let S, v, b, p, T, E, C, P;
|
|
2505
|
+
s.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && u.thumbs && (!u.thumbs.swiper || u.thumbs.swiper.destroyed) && (S = !0), s.includes("controller") && n.controller && n.controller.control && u.controller && !u.controller.control && (v = !0), s.includes("pagination") && n.pagination && (n.pagination.el || o) && (u.pagination || u.pagination === !1) && f && !f.el && (b = !0), s.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || a) && (u.scrollbar || u.scrollbar === !1) && g && !g.el && (p = !0), s.includes("navigation") && n.navigation && (n.navigation.prevEl || l) && (n.navigation.nextEl || r) && (u.navigation || u.navigation === !1) && h && !h.prevEl && !h.nextEl && (T = !0);
|
|
2506
2506
|
const y = (w) => {
|
|
2507
|
-
e[w] && (e[w].destroy(), w === "navigation" ? (e.isElement && (e[w].prevEl.remove(), e[w].nextEl.remove()),
|
|
2507
|
+
e[w] && (e[w].destroy(), w === "navigation" ? (e.isElement && (e[w].prevEl.remove(), e[w].nextEl.remove()), u[w].prevEl = void 0, u[w].nextEl = void 0, e[w].prevEl = void 0, e[w].nextEl = void 0) : (e.isElement && e[w].el.remove(), u[w].el = void 0, e[w].el = void 0));
|
|
2508
2508
|
};
|
|
2509
|
-
s.includes("loop") && e.isElement && (
|
|
2510
|
-
if (X(
|
|
2511
|
-
Object.assign(
|
|
2509
|
+
s.includes("loop") && e.isElement && (u.loop && !n.loop ? E = !0 : !u.loop && n.loop ? C = !0 : P = !0), d.forEach((w) => {
|
|
2510
|
+
if (X(u[w]) && X(n[w]))
|
|
2511
|
+
Object.assign(u[w], n[w]), (w === "navigation" || w === "pagination" || w === "scrollbar") && "enabled" in n[w] && !n[w].enabled && y(w);
|
|
2512
2512
|
else {
|
|
2513
|
-
const
|
|
2514
|
-
(
|
|
2513
|
+
const x = n[w];
|
|
2514
|
+
(x === !0 || x === !1) && (w === "navigation" || w === "pagination" || w === "scrollbar") ? x === !1 && y(w) : u[w] = n[w];
|
|
2515
2515
|
}
|
|
2516
|
-
}), d.includes("controller") && !v && e.controller && e.controller.control &&
|
|
2516
|
+
}), d.includes("controller") && !v && e.controller && e.controller.control && u.controller && u.controller.control && (e.controller.control = u.controller.control), s.includes("children") && i && c && u.virtual.enabled ? (c.slides = i, c.update(!0)) : s.includes("virtual") && c && u.virtual.enabled && (i && (c.slides = i), c.update(!0)), s.includes("children") && i && u.loop && (P = !0), S && m.init() && m.update(!0), v && (e.controller.control = u.controller.control), b && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (u.pagination.el = o), f.init(), f.render(), f.update()), p && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (u.scrollbar.el = a), g.init(), g.updateSize(), g.setTranslate()), T && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), we(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), we(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (u.navigation.nextEl = r), l && (u.navigation.prevEl = l), h.init(), h.update()), s.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), s.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), s.includes("direction") && e.changeDirection(n.direction, !1), (E || P) && e.loopDestroy(), (C || P) && e.loopCreate(), e.update();
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function xe(t, e) {
|
|
2519
2519
|
t === void 0 && (t = {});
|
|
2520
2520
|
const i = {
|
|
2521
2521
|
on: {}
|
|
@@ -2557,11 +2557,11 @@ function hi(t, e, i, n, s) {
|
|
|
2557
2557
|
return De.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
|
|
2558
2558
|
if (o in t && o in e)
|
|
2559
2559
|
if (X(t[o]) && X(e[o])) {
|
|
2560
|
-
const d = Object.keys(t[o]),
|
|
2561
|
-
d.length !==
|
|
2562
|
-
t[o][
|
|
2563
|
-
}),
|
|
2564
|
-
t[o][
|
|
2560
|
+
const d = Object.keys(t[o]), u = Object.keys(e[o]);
|
|
2561
|
+
d.length !== u.length ? l(o) : (d.forEach((f) => {
|
|
2562
|
+
t[o][f] !== e[o][f] && l(o);
|
|
2563
|
+
}), u.forEach((f) => {
|
|
2564
|
+
t[o][f] !== e[o][f] && l(o);
|
|
2565
2565
|
}));
|
|
2566
2566
|
} else t[o] !== e[o] && l(o);
|
|
2567
2567
|
}), r;
|
|
@@ -2593,9 +2593,9 @@ function de(t, e, i) {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
function vi(t, e, i) {
|
|
2595
2595
|
if (!i) return null;
|
|
2596
|
-
const n = (
|
|
2597
|
-
let
|
|
2598
|
-
return
|
|
2596
|
+
const n = (u) => {
|
|
2597
|
+
let f = u;
|
|
2598
|
+
return u < 0 ? f = e.length + u : f >= e.length && (f = f - e.length), f;
|
|
2599
2599
|
}, s = t.value.isHorizontal() ? {
|
|
2600
2600
|
[t.value.rtlTranslate ? "right" : "left"]: `${i.offset}px`
|
|
2601
2601
|
} : {
|
|
@@ -2604,17 +2604,17 @@ function vi(t, e, i) {
|
|
|
2604
2604
|
from: r,
|
|
2605
2605
|
to: l
|
|
2606
2606
|
} = i, a = t.value.params.loop ? -e.length : 0, o = t.value.params.loop ? e.length * 2 : e.length, d = [];
|
|
2607
|
-
for (let
|
|
2608
|
-
|
|
2609
|
-
return d.map((
|
|
2610
|
-
if (
|
|
2611
|
-
return k(
|
|
2612
|
-
...
|
|
2613
|
-
},
|
|
2614
|
-
if (
|
|
2615
|
-
return k(
|
|
2616
|
-
...
|
|
2617
|
-
},
|
|
2607
|
+
for (let u = a; u < o; u += 1)
|
|
2608
|
+
u >= r && u <= l && d.length < e.length && d.push(e[n(u)]);
|
|
2609
|
+
return d.map((u) => {
|
|
2610
|
+
if (u.props || (u.props = {}), u.props.style || (u.props.style = {}), u.props.swiperRef = t, u.props.style = s, u.type)
|
|
2611
|
+
return k(u.type, {
|
|
2612
|
+
...u.props
|
|
2613
|
+
}, u.children);
|
|
2614
|
+
if (u.componentOptions)
|
|
2615
|
+
return k(u.componentOptions.Ctor, {
|
|
2616
|
+
...u.props
|
|
2617
|
+
}, u.componentOptions.children);
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
const bi = {
|
|
@@ -3090,24 +3090,24 @@ const bi = {
|
|
|
3090
3090
|
const {
|
|
3091
3091
|
tag: s,
|
|
3092
3092
|
wrapperTag: r
|
|
3093
|
-
} = t, l = G("swiper"), a = G(null), o = G(!1), d = G(!1),
|
|
3093
|
+
} = t, l = G("swiper"), a = G(null), o = G(!1), d = G(!1), u = G(null), f = G(null), h = G(null), g = {
|
|
3094
3094
|
value: []
|
|
3095
3095
|
}, c = {
|
|
3096
3096
|
value: []
|
|
3097
|
-
},
|
|
3097
|
+
}, m = G(null), S = G(null), v = G(null), b = G(null), {
|
|
3098
3098
|
params: p,
|
|
3099
3099
|
passedParams: T
|
|
3100
|
-
} =
|
|
3101
|
-
de(i,
|
|
3102
|
-
const
|
|
3103
|
-
de(i,
|
|
3100
|
+
} = xe(t);
|
|
3101
|
+
de(i, g, c), h.value = T, c.value = g.value;
|
|
3102
|
+
const E = () => {
|
|
3103
|
+
de(i, g, c), o.value = !0;
|
|
3104
3104
|
};
|
|
3105
3105
|
p.onAny = function(y) {
|
|
3106
|
-
for (var w = arguments.length,
|
|
3107
|
-
|
|
3108
|
-
n(y, ...
|
|
3106
|
+
for (var w = arguments.length, x = new Array(w > 1 ? w - 1 : 0), M = 1; M < w; M++)
|
|
3107
|
+
x[M - 1] = arguments[M];
|
|
3108
|
+
n(y, ...x);
|
|
3109
3109
|
}, Object.assign(p.on, {
|
|
3110
|
-
_beforeBreakpoint:
|
|
3110
|
+
_beforeBreakpoint: E,
|
|
3111
3111
|
_containerClasses(y, w) {
|
|
3112
3112
|
l.value = w;
|
|
3113
3113
|
}
|
|
@@ -3115,72 +3115,72 @@ const bi = {
|
|
|
3115
3115
|
const C = {
|
|
3116
3116
|
...p
|
|
3117
3117
|
};
|
|
3118
|
-
if (delete C.wrapperClass,
|
|
3119
|
-
|
|
3118
|
+
if (delete C.wrapperClass, f.value = new me(C), f.value.virtual && f.value.params.virtual.enabled) {
|
|
3119
|
+
f.value.virtual.slides = g.value;
|
|
3120
3120
|
const y = {
|
|
3121
3121
|
cache: !1,
|
|
3122
|
-
slides:
|
|
3122
|
+
slides: g.value,
|
|
3123
3123
|
renderExternal: (w) => {
|
|
3124
3124
|
a.value = w;
|
|
3125
3125
|
},
|
|
3126
3126
|
renderExternalUpdate: !1
|
|
3127
3127
|
};
|
|
3128
|
-
q(
|
|
3128
|
+
q(f.value.params.virtual, y), q(f.value.originalParams.virtual, y);
|
|
3129
3129
|
}
|
|
3130
|
-
|
|
3131
|
-
!d.value &&
|
|
3130
|
+
Ee(() => {
|
|
3131
|
+
!d.value && f.value && (f.value.emitSlidesClasses(), d.value = !0);
|
|
3132
3132
|
const {
|
|
3133
3133
|
passedParams: y
|
|
3134
|
-
} =
|
|
3135
|
-
|
|
3136
|
-
swiper:
|
|
3137
|
-
slides:
|
|
3134
|
+
} = xe(t), w = hi(y, h.value, g.value, c.value, (x) => x.props && x.props.key);
|
|
3135
|
+
h.value = y, (w.length || o.value) && f.value && !f.value.destroyed && pi({
|
|
3136
|
+
swiper: f.value,
|
|
3137
|
+
slides: g.value,
|
|
3138
3138
|
passedParams: y,
|
|
3139
3139
|
changedParams: w,
|
|
3140
|
-
nextEl:
|
|
3141
|
-
prevEl:
|
|
3142
|
-
scrollbarEl:
|
|
3140
|
+
nextEl: m.value,
|
|
3141
|
+
prevEl: S.value,
|
|
3142
|
+
scrollbarEl: b.value,
|
|
3143
3143
|
paginationEl: v.value
|
|
3144
3144
|
}), o.value = !1;
|
|
3145
|
-
}), Me("swiper",
|
|
3146
|
-
|
|
3147
|
-
gi(
|
|
3145
|
+
}), Me("swiper", f), Fe(a, () => {
|
|
3146
|
+
$e(() => {
|
|
3147
|
+
gi(f.value);
|
|
3148
3148
|
});
|
|
3149
3149
|
}), Pe(() => {
|
|
3150
|
-
|
|
3151
|
-
el:
|
|
3152
|
-
nextEl:
|
|
3153
|
-
prevEl:
|
|
3150
|
+
u.value && (mi({
|
|
3151
|
+
el: u.value,
|
|
3152
|
+
nextEl: m.value,
|
|
3153
|
+
prevEl: S.value,
|
|
3154
3154
|
paginationEl: v.value,
|
|
3155
|
-
scrollbarEl:
|
|
3156
|
-
swiper:
|
|
3157
|
-
}, p), n("swiper",
|
|
3155
|
+
scrollbarEl: b.value,
|
|
3156
|
+
swiper: f.value
|
|
3157
|
+
}, p), n("swiper", f.value));
|
|
3158
3158
|
}), Ce(() => {
|
|
3159
|
-
|
|
3159
|
+
f.value && !f.value.destroyed && f.value.destroy(!0, !1);
|
|
3160
3160
|
});
|
|
3161
3161
|
function P(y) {
|
|
3162
|
-
return p.virtual ? vi(
|
|
3163
|
-
w.props || (w.props = {}), w.props.swiperRef =
|
|
3162
|
+
return p.virtual ? vi(f, y, a.value) : (y.forEach((w, x) => {
|
|
3163
|
+
w.props || (w.props = {}), w.props.swiperRef = f, w.props.swiperSlideIndex = x;
|
|
3164
3164
|
}), y);
|
|
3165
3165
|
}
|
|
3166
3166
|
return () => {
|
|
3167
3167
|
const {
|
|
3168
3168
|
slides: y,
|
|
3169
3169
|
slots: w
|
|
3170
|
-
} = de(i,
|
|
3170
|
+
} = de(i, g, c);
|
|
3171
3171
|
return k(s, {
|
|
3172
|
-
ref:
|
|
3172
|
+
ref: u,
|
|
3173
3173
|
class: ke(l.value)
|
|
3174
3174
|
}, [w["container-start"], k(r, {
|
|
3175
3175
|
class: ci(p.wrapperClass)
|
|
3176
3176
|
}, [w["wrapper-start"], P(y), w["wrapper-end"]]), Ge(t) && [k("div", {
|
|
3177
|
-
ref:
|
|
3177
|
+
ref: S,
|
|
3178
3178
|
class: "swiper-button-prev"
|
|
3179
3179
|
}), k("div", {
|
|
3180
|
-
ref:
|
|
3180
|
+
ref: m,
|
|
3181
3181
|
class: "swiper-button-next"
|
|
3182
3182
|
})], Ve(t) && k("div", {
|
|
3183
|
-
ref:
|
|
3183
|
+
ref: b,
|
|
3184
3184
|
class: "swiper-scrollbar"
|
|
3185
3185
|
}), Ne(t) && k("div", {
|
|
3186
3186
|
ref: v,
|
|
@@ -3226,14 +3226,14 @@ const bi = {
|
|
|
3226
3226
|
const {
|
|
3227
3227
|
swiperRef: s
|
|
3228
3228
|
} = t, r = G(null), l = G("swiper-slide"), a = G(!1);
|
|
3229
|
-
function o(
|
|
3230
|
-
|
|
3229
|
+
function o(f, h, g) {
|
|
3230
|
+
h === r.value && (l.value = g);
|
|
3231
3231
|
}
|
|
3232
3232
|
Pe(() => {
|
|
3233
3233
|
!s || !s.value || (s.value.on("_slideClass", o), n = !0);
|
|
3234
|
-
}),
|
|
3234
|
+
}), je(() => {
|
|
3235
3235
|
n || !s || !s.value || (s.value.on("_slideClass", o), n = !0);
|
|
3236
|
-
}),
|
|
3236
|
+
}), Ee(() => {
|
|
3237
3237
|
!r.value || !s || !s.value || (typeof t.swiperSlideIndex < "u" && (r.value.swiperSlideIndex = t.swiperSlideIndex), s.value.destroyed && l.value !== "swiper-slide" && (l.value = "swiper-slide"));
|
|
3238
3238
|
}), Ce(() => {
|
|
3239
3239
|
!s || !s.value || s.value.off("_slideClass", o);
|
|
@@ -3245,14 +3245,14 @@ const bi = {
|
|
|
3245
3245
|
isNext: l.value.indexOf("swiper-slide-next") >= 0
|
|
3246
3246
|
}));
|
|
3247
3247
|
Me("swiperSlide", d);
|
|
3248
|
-
const
|
|
3248
|
+
const u = () => {
|
|
3249
3249
|
a.value = !0;
|
|
3250
3250
|
};
|
|
3251
3251
|
return () => k(t.tag, {
|
|
3252
3252
|
class: ke(`${l.value}`),
|
|
3253
3253
|
ref: r,
|
|
3254
3254
|
"data-swiper-slide-index": typeof t.virtualIndex > "u" && s && s.value && s.value.params.loop ? t.swiperSlideIndex : t.virtualIndex,
|
|
3255
|
-
onLoadCapture:
|
|
3255
|
+
onLoadCapture: u
|
|
3256
3256
|
}, t.zoom ? k("div", {
|
|
3257
3257
|
class: "swiper-zoom-container",
|
|
3258
3258
|
"data-swiper-zoom": typeof t.zoom == "number" ? t.zoom : void 0
|
|
@@ -3270,7 +3270,7 @@ function yi(t) {
|
|
|
3270
3270
|
on: n,
|
|
3271
3271
|
emit: s
|
|
3272
3272
|
} = t;
|
|
3273
|
-
const r =
|
|
3273
|
+
const r = j(), l = _();
|
|
3274
3274
|
e.keyboard = {
|
|
3275
3275
|
enabled: !1
|
|
3276
3276
|
}, i({
|
|
@@ -3280,34 +3280,34 @@ function yi(t) {
|
|
|
3280
3280
|
pageUpDown: !0
|
|
3281
3281
|
}
|
|
3282
3282
|
});
|
|
3283
|
-
function a(
|
|
3283
|
+
function a(u) {
|
|
3284
3284
|
if (!e.enabled) return;
|
|
3285
3285
|
const {
|
|
3286
|
-
rtlTranslate:
|
|
3286
|
+
rtlTranslate: f
|
|
3287
3287
|
} = e;
|
|
3288
|
-
let
|
|
3289
|
-
|
|
3290
|
-
const
|
|
3291
|
-
if (!e.allowSlideNext && (e.isHorizontal() &&
|
|
3288
|
+
let h = u;
|
|
3289
|
+
h.originalEvent && (h = h.originalEvent);
|
|
3290
|
+
const g = h.keyCode || h.charCode, c = e.params.keyboard.pageUpDown, m = c && g === 33, S = c && g === 34, v = g === 37, b = g === 39, p = g === 38, T = g === 40;
|
|
3291
|
+
if (!e.allowSlideNext && (e.isHorizontal() && b || e.isVertical() && T || S) || !e.allowSlidePrev && (e.isHorizontal() && v || e.isVertical() && p || m))
|
|
3292
3292
|
return !1;
|
|
3293
|
-
if (!(
|
|
3294
|
-
if (e.params.keyboard.onlyInViewport && (
|
|
3295
|
-
let
|
|
3296
|
-
if (
|
|
3293
|
+
if (!(h.shiftKey || h.altKey || h.ctrlKey || h.metaKey) && !(r.activeElement && (r.activeElement.isContentEditable || r.activeElement.nodeName && (r.activeElement.nodeName.toLowerCase() === "input" || r.activeElement.nodeName.toLowerCase() === "textarea")))) {
|
|
3294
|
+
if (e.params.keyboard.onlyInViewport && (m || S || v || b || p || T)) {
|
|
3295
|
+
let E = !1;
|
|
3296
|
+
if (ue(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && ue(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
3297
3297
|
return;
|
|
3298
|
-
const C = e.el, P = C.clientWidth, y = C.clientHeight, w = l.innerWidth,
|
|
3299
|
-
|
|
3298
|
+
const C = e.el, P = C.clientWidth, y = C.clientHeight, w = l.innerWidth, x = l.innerHeight, M = et(C);
|
|
3299
|
+
f && (M.left -= C.scrollLeft);
|
|
3300
3300
|
const I = [[M.left, M.top], [M.left + P, M.top], [M.left, M.top + y], [M.left + P, M.top + y]];
|
|
3301
3301
|
for (let O = 0; O < I.length; O += 1) {
|
|
3302
3302
|
const B = I[O];
|
|
3303
|
-
if (B[0] >= 0 && B[0] <= w && B[1] >= 0 && B[1] <=
|
|
3303
|
+
if (B[0] >= 0 && B[0] <= w && B[1] >= 0 && B[1] <= x) {
|
|
3304
3304
|
if (B[0] === 0 && B[1] === 0) continue;
|
|
3305
|
-
|
|
3305
|
+
E = !0;
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
|
-
if (!
|
|
3308
|
+
if (!E) return;
|
|
3309
3309
|
}
|
|
3310
|
-
e.isHorizontal() ? ((
|
|
3310
|
+
e.isHorizontal() ? ((m || S || v || b) && (h.preventDefault ? h.preventDefault() : h.returnValue = !1), ((S || b) && !f || (m || v) && f) && e.slideNext(), ((m || v) && !f || (S || b) && f) && e.slidePrev()) : ((m || S || p || T) && (h.preventDefault ? h.preventDefault() : h.returnValue = !1), (S || T) && e.slideNext(), (m || p) && e.slidePrev()), s("keyPress", g);
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
3313
|
function o() {
|
|
@@ -3325,7 +3325,7 @@ function yi(t) {
|
|
|
3325
3325
|
disable: d
|
|
3326
3326
|
});
|
|
3327
3327
|
}
|
|
3328
|
-
function
|
|
3328
|
+
function xi(t) {
|
|
3329
3329
|
let {
|
|
3330
3330
|
swiper: e,
|
|
3331
3331
|
extendParams: i,
|
|
@@ -3350,22 +3350,22 @@ function Ei(t) {
|
|
|
3350
3350
|
};
|
|
3351
3351
|
let l, a = R(), o;
|
|
3352
3352
|
const d = [];
|
|
3353
|
-
function
|
|
3354
|
-
let P = 0, y = 0, w = 0,
|
|
3355
|
-
return "detail" in p && (y = p.detail), "wheelDelta" in p && (y = -p.wheelDelta / 120), "wheelDeltaY" in p && (y = -p.wheelDeltaY / 120), "wheelDeltaX" in p && (P = -p.wheelDeltaX / 120), "axis" in p && p.axis === p.HORIZONTAL_AXIS && (P = y, y = 0), w = P * 10,
|
|
3353
|
+
function u(p) {
|
|
3354
|
+
let P = 0, y = 0, w = 0, x = 0;
|
|
3355
|
+
return "detail" in p && (y = p.detail), "wheelDelta" in p && (y = -p.wheelDelta / 120), "wheelDeltaY" in p && (y = -p.wheelDeltaY / 120), "wheelDeltaX" in p && (P = -p.wheelDeltaX / 120), "axis" in p && p.axis === p.HORIZONTAL_AXIS && (P = y, y = 0), w = P * 10, x = y * 10, "deltaY" in p && (x = p.deltaY), "deltaX" in p && (w = p.deltaX), p.shiftKey && !w && (w = x, x = 0), (w || x) && p.deltaMode && (p.deltaMode === 1 ? (w *= 40, x *= 40) : (w *= 800, x *= 800)), w && !P && (P = w < 1 ? -1 : 1), x && !y && (y = x < 1 ? -1 : 1), {
|
|
3356
3356
|
spinX: P,
|
|
3357
3357
|
spinY: y,
|
|
3358
3358
|
pixelX: w,
|
|
3359
|
-
pixelY:
|
|
3359
|
+
pixelY: x
|
|
3360
3360
|
};
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3362
|
+
function f() {
|
|
3363
3363
|
e.enabled && (e.mouseEntered = !0);
|
|
3364
3364
|
}
|
|
3365
|
-
function
|
|
3365
|
+
function h() {
|
|
3366
3366
|
e.enabled && (e.mouseEntered = !1);
|
|
3367
3367
|
}
|
|
3368
|
-
function
|
|
3368
|
+
function g(p) {
|
|
3369
3369
|
return e.params.mousewheel.thresholdDelta && p.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && R() - a < e.params.mousewheel.thresholdTime ? !1 : p.delta >= 6 && R() - a < 60 ? !0 : (p.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), s("scroll", p.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), s("scroll", p.raw)), a = new r.Date().getTime(), !1);
|
|
3370
3370
|
}
|
|
3371
3371
|
function c(p) {
|
|
@@ -3377,8 +3377,8 @@ function Ei(t) {
|
|
|
3377
3377
|
return !0;
|
|
3378
3378
|
return !1;
|
|
3379
3379
|
}
|
|
3380
|
-
function
|
|
3381
|
-
let T = p,
|
|
3380
|
+
function m(p) {
|
|
3381
|
+
let T = p, E = !0;
|
|
3382
3382
|
if (!e.enabled || p.target.closest(`.${e.params.mousewheel.noMousewheelClass}`)) return;
|
|
3383
3383
|
const C = e.params.mousewheel;
|
|
3384
3384
|
e.params.cssMode && T.preventDefault();
|
|
@@ -3388,19 +3388,19 @@ function Ei(t) {
|
|
|
3388
3388
|
if (!e.mouseEntered && !y && !C.releaseOnEdges) return !0;
|
|
3389
3389
|
T.originalEvent && (T = T.originalEvent);
|
|
3390
3390
|
let w = 0;
|
|
3391
|
-
const
|
|
3391
|
+
const x = e.rtlTranslate ? -1 : 1, M = u(T);
|
|
3392
3392
|
if (C.forceToAxis)
|
|
3393
3393
|
if (e.isHorizontal())
|
|
3394
|
-
if (Math.abs(M.pixelX) > Math.abs(M.pixelY)) w = -M.pixelX *
|
|
3394
|
+
if (Math.abs(M.pixelX) > Math.abs(M.pixelY)) w = -M.pixelX * x;
|
|
3395
3395
|
else return !0;
|
|
3396
3396
|
else if (Math.abs(M.pixelY) > Math.abs(M.pixelX)) w = -M.pixelY;
|
|
3397
3397
|
else return !0;
|
|
3398
3398
|
else
|
|
3399
|
-
w = Math.abs(M.pixelX) > Math.abs(M.pixelY) ? -M.pixelX *
|
|
3399
|
+
w = Math.abs(M.pixelX) > Math.abs(M.pixelY) ? -M.pixelX * x : -M.pixelY;
|
|
3400
3400
|
if (w === 0) return !0;
|
|
3401
3401
|
C.invert && (w = -w);
|
|
3402
3402
|
let I = e.getTranslate() + w * C.sensitivity;
|
|
3403
|
-
if (I >= e.minTranslate() && (I = e.minTranslate()), I <= e.maxTranslate() && (I = e.maxTranslate()),
|
|
3403
|
+
if (I >= e.minTranslate() && (I = e.minTranslate()), I <= e.maxTranslate() && (I = e.maxTranslate()), E = e.params.loop ? !0 : !(I === e.minTranslate() || I === e.maxTranslate()), E && e.params.nested && T.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
|
3404
3404
|
const O = {
|
|
3405
3405
|
time: R(),
|
|
3406
3406
|
delta: Math.abs(w),
|
|
@@ -3409,7 +3409,7 @@ function Ei(t) {
|
|
|
3409
3409
|
};
|
|
3410
3410
|
d.length >= 2 && d.shift();
|
|
3411
3411
|
const B = d.length ? d[d.length - 1] : void 0;
|
|
3412
|
-
if (d.push(O), B ? (O.direction !== B.direction || O.delta > B.delta || O.time > B.time + 150) &&
|
|
3412
|
+
if (d.push(O), B ? (O.direction !== B.direction || O.delta > B.delta || O.time > B.time + 150) && g(O) : g(O), c(O))
|
|
3413
3413
|
return !0;
|
|
3414
3414
|
} else {
|
|
3415
3415
|
const O = {
|
|
@@ -3447,23 +3447,23 @@ function Ei(t) {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
return T.preventDefault ? T.preventDefault() : T.returnValue = !1, !1;
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function S(p) {
|
|
3451
3451
|
let T = e.el;
|
|
3452
|
-
e.params.mousewheel.eventsTarget !== "container" && (T = document.querySelector(e.params.mousewheel.eventsTarget)), T[p]("mouseenter",
|
|
3452
|
+
e.params.mousewheel.eventsTarget !== "container" && (T = document.querySelector(e.params.mousewheel.eventsTarget)), T[p]("mouseenter", f), T[p]("mouseleave", h), T[p]("wheel", m);
|
|
3453
3453
|
}
|
|
3454
3454
|
function v() {
|
|
3455
|
-
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel",
|
|
3455
|
+
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", m), !0) : e.mousewheel.enabled ? !1 : (S("addEventListener"), e.mousewheel.enabled = !0, !0);
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3458
|
-
return e.params.cssMode ? (e.wrapperEl.addEventListener(event,
|
|
3457
|
+
function b() {
|
|
3458
|
+
return e.params.cssMode ? (e.wrapperEl.addEventListener(event, m), !0) : e.mousewheel.enabled ? (S("removeEventListener"), e.mousewheel.enabled = !1, !0) : !1;
|
|
3459
3459
|
}
|
|
3460
3460
|
n("init", () => {
|
|
3461
|
-
!e.params.mousewheel.enabled && e.params.cssMode &&
|
|
3461
|
+
!e.params.mousewheel.enabled && e.params.cssMode && b(), e.params.mousewheel.enabled && v();
|
|
3462
3462
|
}), n("destroy", () => {
|
|
3463
|
-
e.params.cssMode && v(), e.mousewheel.enabled &&
|
|
3463
|
+
e.params.cssMode && v(), e.mousewheel.enabled && b();
|
|
3464
3464
|
}), Object.assign(e.mousewheel, {
|
|
3465
3465
|
enable: v,
|
|
3466
|
-
disable:
|
|
3466
|
+
disable: b
|
|
3467
3467
|
});
|
|
3468
3468
|
}
|
|
3469
3469
|
function wi(t, e, i, n) {
|
|
@@ -3474,7 +3474,7 @@ function wi(t, e, i, n) {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
}), i;
|
|
3476
3476
|
}
|
|
3477
|
-
function
|
|
3477
|
+
function Ei(t) {
|
|
3478
3478
|
let {
|
|
3479
3479
|
swiper: e,
|
|
3480
3480
|
extendParams: i,
|
|
@@ -3496,25 +3496,25 @@ function xi(t) {
|
|
|
3496
3496
|
prevEl: null
|
|
3497
3497
|
};
|
|
3498
3498
|
function r(c) {
|
|
3499
|
-
let
|
|
3500
|
-
return c && typeof c == "string" && e.isElement && (
|
|
3499
|
+
let m;
|
|
3500
|
+
return c && typeof c == "string" && e.isElement && (m = e.el.querySelector(c) || e.hostEl.querySelector(c), m) ? m : (c && (typeof c == "string" && (m = [...document.querySelectorAll(c)]), e.params.uniqueNavElements && typeof c == "string" && m && m.length > 1 && e.el.querySelectorAll(c).length === 1 ? m = e.el.querySelector(c) : m && m.length === 1 && (m = m[0])), c && !m ? c : m);
|
|
3501
3501
|
}
|
|
3502
|
-
function l(c,
|
|
3503
|
-
const
|
|
3502
|
+
function l(c, m) {
|
|
3503
|
+
const S = e.params.navigation;
|
|
3504
3504
|
c = F(c), c.forEach((v) => {
|
|
3505
|
-
v && (v.classList[
|
|
3505
|
+
v && (v.classList[m ? "add" : "remove"](...S.disabledClass.split(" ")), v.tagName === "BUTTON" && (v.disabled = m), e.params.watchOverflow && e.enabled && v.classList[e.isLocked ? "add" : "remove"](S.lockClass));
|
|
3506
3506
|
});
|
|
3507
3507
|
}
|
|
3508
3508
|
function a() {
|
|
3509
3509
|
const {
|
|
3510
3510
|
nextEl: c,
|
|
3511
|
-
prevEl:
|
|
3511
|
+
prevEl: m
|
|
3512
3512
|
} = e.navigation;
|
|
3513
3513
|
if (e.params.loop) {
|
|
3514
|
-
l(
|
|
3514
|
+
l(m, !1), l(c, !1);
|
|
3515
3515
|
return;
|
|
3516
3516
|
}
|
|
3517
|
-
l(
|
|
3517
|
+
l(m, e.isBeginning && !e.params.rewind), l(c, e.isEnd && !e.params.rewind);
|
|
3518
3518
|
}
|
|
3519
3519
|
function o(c) {
|
|
3520
3520
|
c.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), s("navigationPrev"));
|
|
@@ -3522,78 +3522,78 @@ function xi(t) {
|
|
|
3522
3522
|
function d(c) {
|
|
3523
3523
|
c.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), s("navigationNext"));
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function u() {
|
|
3526
3526
|
const c = e.params.navigation;
|
|
3527
3527
|
if (e.params.navigation = wi(e, e.originalParams.navigation, e.params.navigation, {
|
|
3528
3528
|
nextEl: "swiper-button-next",
|
|
3529
3529
|
prevEl: "swiper-button-prev"
|
|
3530
3530
|
}), !(c.nextEl || c.prevEl)) return;
|
|
3531
|
-
let
|
|
3531
|
+
let m = r(c.nextEl), S = r(c.prevEl);
|
|
3532
3532
|
Object.assign(e.navigation, {
|
|
3533
|
-
nextEl:
|
|
3534
|
-
prevEl:
|
|
3535
|
-
}),
|
|
3536
|
-
const v = (
|
|
3537
|
-
|
|
3533
|
+
nextEl: m,
|
|
3534
|
+
prevEl: S
|
|
3535
|
+
}), m = F(m), S = F(S);
|
|
3536
|
+
const v = (b, p) => {
|
|
3537
|
+
b && b.addEventListener("click", p === "next" ? d : o), !e.enabled && b && b.classList.add(...c.lockClass.split(" "));
|
|
3538
3538
|
};
|
|
3539
|
-
|
|
3539
|
+
m.forEach((b) => v(b, "next")), S.forEach((b) => v(b, "prev"));
|
|
3540
3540
|
}
|
|
3541
|
-
function
|
|
3541
|
+
function f() {
|
|
3542
3542
|
let {
|
|
3543
3543
|
nextEl: c,
|
|
3544
|
-
prevEl:
|
|
3544
|
+
prevEl: m
|
|
3545
3545
|
} = e.navigation;
|
|
3546
|
-
c = F(c),
|
|
3547
|
-
const
|
|
3548
|
-
v.removeEventListener("click",
|
|
3546
|
+
c = F(c), m = F(m);
|
|
3547
|
+
const S = (v, b) => {
|
|
3548
|
+
v.removeEventListener("click", b === "next" ? d : o), v.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
3549
3549
|
};
|
|
3550
|
-
c.forEach((v) =>
|
|
3550
|
+
c.forEach((v) => S(v, "next")), m.forEach((v) => S(v, "prev"));
|
|
3551
3551
|
}
|
|
3552
3552
|
n("init", () => {
|
|
3553
|
-
e.params.navigation.enabled === !1 ?
|
|
3553
|
+
e.params.navigation.enabled === !1 ? g() : (u(), a());
|
|
3554
3554
|
}), n("toEdge fromEdge lock unlock", () => {
|
|
3555
3555
|
a();
|
|
3556
3556
|
}), n("destroy", () => {
|
|
3557
|
-
|
|
3557
|
+
f();
|
|
3558
3558
|
}), n("enable disable", () => {
|
|
3559
3559
|
let {
|
|
3560
3560
|
nextEl: c,
|
|
3561
|
-
prevEl:
|
|
3561
|
+
prevEl: m
|
|
3562
3562
|
} = e.navigation;
|
|
3563
|
-
if (c = F(c),
|
|
3563
|
+
if (c = F(c), m = F(m), e.enabled) {
|
|
3564
3564
|
a();
|
|
3565
3565
|
return;
|
|
3566
3566
|
}
|
|
3567
|
-
[...c, ...
|
|
3568
|
-
}), n("click", (c,
|
|
3567
|
+
[...c, ...m].filter((S) => !!S).forEach((S) => S.classList.add(e.params.navigation.lockClass));
|
|
3568
|
+
}), n("click", (c, m) => {
|
|
3569
3569
|
let {
|
|
3570
|
-
nextEl:
|
|
3570
|
+
nextEl: S,
|
|
3571
3571
|
prevEl: v
|
|
3572
3572
|
} = e.navigation;
|
|
3573
|
-
|
|
3574
|
-
const
|
|
3575
|
-
let p = v.includes(
|
|
3573
|
+
S = F(S), v = F(v);
|
|
3574
|
+
const b = m.target;
|
|
3575
|
+
let p = v.includes(b) || S.includes(b);
|
|
3576
3576
|
if (e.isElement && !p) {
|
|
3577
|
-
const T =
|
|
3578
|
-
T && (p = T.find((
|
|
3577
|
+
const T = m.path || m.composedPath && m.composedPath();
|
|
3578
|
+
T && (p = T.find((E) => S.includes(E) || v.includes(E)));
|
|
3579
3579
|
}
|
|
3580
3580
|
if (e.params.navigation.hideOnClick && !p) {
|
|
3581
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el ===
|
|
3581
|
+
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === b || e.pagination.el.contains(b))) return;
|
|
3582
3582
|
let T;
|
|
3583
|
-
|
|
3583
|
+
S.length ? T = S[0].classList.contains(e.params.navigation.hiddenClass) : v.length && (T = v[0].classList.contains(e.params.navigation.hiddenClass)), s(T === !0 ? "navigationShow" : "navigationHide"), [...S, ...v].filter((E) => !!E).forEach((E) => E.classList.toggle(e.params.navigation.hiddenClass));
|
|
3584
3584
|
}
|
|
3585
3585
|
});
|
|
3586
|
-
const
|
|
3587
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),
|
|
3588
|
-
},
|
|
3589
|
-
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),
|
|
3586
|
+
const h = () => {
|
|
3587
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), a();
|
|
3588
|
+
}, g = () => {
|
|
3589
|
+
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), f();
|
|
3590
3590
|
};
|
|
3591
3591
|
Object.assign(e.navigation, {
|
|
3592
|
-
enable:
|
|
3593
|
-
disable:
|
|
3592
|
+
enable: h,
|
|
3593
|
+
disable: g,
|
|
3594
3594
|
update: a,
|
|
3595
|
-
init:
|
|
3596
|
-
destroy:
|
|
3595
|
+
init: u,
|
|
3596
|
+
destroy: f
|
|
3597
3597
|
});
|
|
3598
3598
|
}
|
|
3599
3599
|
function Mi(t) {
|
|
@@ -3642,72 +3642,72 @@ function Mi(t) {
|
|
|
3642
3642
|
} = o;
|
|
3643
3643
|
if (e.params.cssMode) return;
|
|
3644
3644
|
const {
|
|
3645
|
-
params:
|
|
3646
|
-
wrapperEl:
|
|
3647
|
-
rtlTranslate:
|
|
3648
|
-
snapGrid:
|
|
3645
|
+
params: u,
|
|
3646
|
+
wrapperEl: f,
|
|
3647
|
+
rtlTranslate: h,
|
|
3648
|
+
snapGrid: g,
|
|
3649
3649
|
touchEventsData: c
|
|
3650
|
-
} = e,
|
|
3650
|
+
} = e, S = R() - c.touchStartTime;
|
|
3651
3651
|
if (d < -e.minTranslate()) {
|
|
3652
3652
|
e.slideTo(e.activeIndex);
|
|
3653
3653
|
return;
|
|
3654
3654
|
}
|
|
3655
3655
|
if (d > -e.maxTranslate()) {
|
|
3656
|
-
e.slides.length <
|
|
3656
|
+
e.slides.length < g.length ? e.slideTo(g.length - 1) : e.slideTo(e.slides.length - 1);
|
|
3657
3657
|
return;
|
|
3658
3658
|
}
|
|
3659
|
-
if (
|
|
3659
|
+
if (u.freeMode.momentum) {
|
|
3660
3660
|
if (c.velocities.length > 1) {
|
|
3661
|
-
const y = c.velocities.pop(), w = c.velocities.pop(),
|
|
3662
|
-
e.velocity =
|
|
3661
|
+
const y = c.velocities.pop(), w = c.velocities.pop(), x = y.position - w.position, M = y.time - w.time;
|
|
3662
|
+
e.velocity = x / M, e.velocity /= 2, Math.abs(e.velocity) < u.freeMode.minimumVelocity && (e.velocity = 0), (M > 150 || R() - y.time > 300) && (e.velocity = 0);
|
|
3663
3663
|
} else
|
|
3664
3664
|
e.velocity = 0;
|
|
3665
|
-
e.velocity *=
|
|
3666
|
-
let v = 1e3 *
|
|
3667
|
-
const
|
|
3668
|
-
let p = e.translate +
|
|
3669
|
-
|
|
3670
|
-
let T = !1,
|
|
3671
|
-
const C = Math.abs(e.velocity) * 20 *
|
|
3665
|
+
e.velocity *= u.freeMode.momentumVelocityRatio, c.velocities.length = 0;
|
|
3666
|
+
let v = 1e3 * u.freeMode.momentumRatio;
|
|
3667
|
+
const b = e.velocity * v;
|
|
3668
|
+
let p = e.translate + b;
|
|
3669
|
+
h && (p = -p);
|
|
3670
|
+
let T = !1, E;
|
|
3671
|
+
const C = Math.abs(e.velocity) * 20 * u.freeMode.momentumBounceRatio;
|
|
3672
3672
|
let P;
|
|
3673
3673
|
if (p < e.maxTranslate())
|
|
3674
|
-
|
|
3674
|
+
u.freeMode.momentumBounce ? (p + e.maxTranslate() < -C && (p = e.maxTranslate() - C), E = e.maxTranslate(), T = !0, c.allowMomentumBounce = !0) : p = e.maxTranslate(), u.loop && u.centeredSlides && (P = !0);
|
|
3675
3675
|
else if (p > e.minTranslate())
|
|
3676
|
-
|
|
3677
|
-
else if (
|
|
3676
|
+
u.freeMode.momentumBounce ? (p - e.minTranslate() > C && (p = e.minTranslate() + C), E = e.minTranslate(), T = !0, c.allowMomentumBounce = !0) : p = e.minTranslate(), u.loop && u.centeredSlides && (P = !0);
|
|
3677
|
+
else if (u.freeMode.sticky) {
|
|
3678
3678
|
let y;
|
|
3679
|
-
for (let w = 0; w <
|
|
3680
|
-
if (
|
|
3679
|
+
for (let w = 0; w < g.length; w += 1)
|
|
3680
|
+
if (g[w] > -p) {
|
|
3681
3681
|
y = w;
|
|
3682
3682
|
break;
|
|
3683
3683
|
}
|
|
3684
|
-
Math.abs(
|
|
3684
|
+
Math.abs(g[y] - p) < Math.abs(g[y - 1] - p) || e.swipeDirection === "next" ? p = g[y] : p = g[y - 1], p = -p;
|
|
3685
3685
|
}
|
|
3686
3686
|
if (P && s("transitionEnd", () => {
|
|
3687
3687
|
e.loopFix();
|
|
3688
3688
|
}), e.velocity !== 0) {
|
|
3689
|
-
if (
|
|
3690
|
-
const y = Math.abs((
|
|
3691
|
-
y < w ? v =
|
|
3689
|
+
if (h ? v = Math.abs((-p - e.translate) / e.velocity) : v = Math.abs((p - e.translate) / e.velocity), u.freeMode.sticky) {
|
|
3690
|
+
const y = Math.abs((h ? -p : p) - e.translate), w = e.slidesSizesGrid[e.activeIndex];
|
|
3691
|
+
y < w ? v = u.speed : y < 2 * w ? v = u.speed * 1.5 : v = u.speed * 2.5;
|
|
3692
3692
|
}
|
|
3693
|
-
} else if (
|
|
3693
|
+
} else if (u.freeMode.sticky) {
|
|
3694
3694
|
e.slideToClosest();
|
|
3695
3695
|
return;
|
|
3696
3696
|
}
|
|
3697
|
-
|
|
3698
|
-
!e || e.destroyed || !c.allowMomentumBounce || (n("momentumBounce"), e.setTransition(
|
|
3699
|
-
e.setTranslate(
|
|
3697
|
+
u.freeMode.momentumBounce && T ? (e.updateProgress(E), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating = !0, te(f, () => {
|
|
3698
|
+
!e || e.destroyed || !c.allowMomentumBounce || (n("momentumBounce"), e.setTransition(u.speed), setTimeout(() => {
|
|
3699
|
+
e.setTranslate(E), te(f, () => {
|
|
3700
3700
|
!e || e.destroyed || e.transitionEnd();
|
|
3701
3701
|
});
|
|
3702
3702
|
}, 0));
|
|
3703
|
-
})) : e.velocity ? (n("_freeModeNoMomentumRelease"), e.updateProgress(p), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, te(
|
|
3703
|
+
})) : e.velocity ? (n("_freeModeNoMomentumRelease"), e.updateProgress(p), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, te(f, () => {
|
|
3704
3704
|
!e || e.destroyed || e.transitionEnd();
|
|
3705
3705
|
}))) : e.updateProgress(p), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
3706
|
-
} else if (
|
|
3706
|
+
} else if (u.freeMode.sticky) {
|
|
3707
3707
|
e.slideToClosest();
|
|
3708
3708
|
return;
|
|
3709
|
-
} else
|
|
3710
|
-
(!
|
|
3709
|
+
} else u.freeMode && n("_freeModeNoMomentumRelease");
|
|
3710
|
+
(!u.freeMode.momentum || S >= u.longSwipesMs) && (n("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
3711
3711
|
}
|
|
3712
3712
|
Object.assign(e, {
|
|
3713
3713
|
freeMode: {
|
|
@@ -3717,10 +3717,83 @@ function Mi(t) {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
});
|
|
3719
3719
|
}
|
|
3720
|
+
function Pi(t) {
|
|
3721
|
+
let {
|
|
3722
|
+
swiper: e,
|
|
3723
|
+
extendParams: i,
|
|
3724
|
+
on: n
|
|
3725
|
+
} = t;
|
|
3726
|
+
i({
|
|
3727
|
+
grid: {
|
|
3728
|
+
rows: 1,
|
|
3729
|
+
fill: "column"
|
|
3730
|
+
}
|
|
3731
|
+
});
|
|
3732
|
+
let s, r, l, a;
|
|
3733
|
+
const o = () => {
|
|
3734
|
+
let m = e.params.spaceBetween;
|
|
3735
|
+
return typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * e.size : typeof m == "string" && (m = parseFloat(m)), m;
|
|
3736
|
+
}, d = (m) => {
|
|
3737
|
+
const {
|
|
3738
|
+
slidesPerView: S
|
|
3739
|
+
} = e.params, {
|
|
3740
|
+
rows: v,
|
|
3741
|
+
fill: b
|
|
3742
|
+
} = e.params.grid, p = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : m.length;
|
|
3743
|
+
l = Math.floor(p / v), Math.floor(p / v) === p / v ? s = p : s = Math.ceil(p / v) * v, S !== "auto" && b === "row" && (s = Math.max(s, S * v)), r = s / v;
|
|
3744
|
+
}, u = () => {
|
|
3745
|
+
e.slides && e.slides.forEach((m) => {
|
|
3746
|
+
m.swiperSlideGridSet && (m.style.height = "", m.style[e.getDirectionLabel("margin-top")] = "");
|
|
3747
|
+
});
|
|
3748
|
+
}, f = (m, S, v) => {
|
|
3749
|
+
const {
|
|
3750
|
+
slidesPerGroup: b
|
|
3751
|
+
} = e.params, p = o(), {
|
|
3752
|
+
rows: T,
|
|
3753
|
+
fill: E
|
|
3754
|
+
} = e.params.grid, C = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : v.length;
|
|
3755
|
+
let P, y, w;
|
|
3756
|
+
if (E === "row" && b > 1) {
|
|
3757
|
+
const x = Math.floor(m / (b * T)), M = m - T * b * x, I = x === 0 ? b : Math.min(Math.ceil((C - x * T * b) / T), b);
|
|
3758
|
+
w = Math.floor(M / I), y = M - w * I + x * b, P = y + w * s / T, S.style.order = P;
|
|
3759
|
+
} else E === "column" ? (y = Math.floor(m / T), w = m - y * T, (y > l || y === l && w === T - 1) && (w += 1, w >= T && (w = 0, y += 1))) : (w = Math.floor(m / r), y = m - w * r);
|
|
3760
|
+
S.row = w, S.column = y, S.style.height = `calc((100% - ${(T - 1) * p}px) / ${T})`, S.style[e.getDirectionLabel("margin-top")] = w !== 0 ? p && `${p}px` : "", S.swiperSlideGridSet = !0;
|
|
3761
|
+
}, h = (m, S) => {
|
|
3762
|
+
const {
|
|
3763
|
+
centeredSlides: v,
|
|
3764
|
+
roundLengths: b
|
|
3765
|
+
} = e.params, p = o(), {
|
|
3766
|
+
rows: T
|
|
3767
|
+
} = e.params.grid;
|
|
3768
|
+
if (e.virtualSize = (m + p) * s, e.virtualSize = Math.ceil(e.virtualSize / T) - p, e.params.cssMode || (e.wrapperEl.style[e.getDirectionLabel("width")] = `${e.virtualSize + p}px`), v) {
|
|
3769
|
+
const E = [];
|
|
3770
|
+
for (let C = 0; C < S.length; C += 1) {
|
|
3771
|
+
let P = S[C];
|
|
3772
|
+
b && (P = Math.floor(P)), S[C] < e.virtualSize + S[0] && E.push(P);
|
|
3773
|
+
}
|
|
3774
|
+
S.splice(0, S.length), S.push(...E);
|
|
3775
|
+
}
|
|
3776
|
+
}, g = () => {
|
|
3777
|
+
a = e.params.grid && e.params.grid.rows > 1;
|
|
3778
|
+
}, c = () => {
|
|
3779
|
+
const {
|
|
3780
|
+
params: m,
|
|
3781
|
+
el: S
|
|
3782
|
+
} = e, v = m.grid && m.grid.rows > 1;
|
|
3783
|
+
a && !v ? (S.classList.remove(`${m.containerModifierClass}grid`, `${m.containerModifierClass}grid-column`), l = 1, e.emitContainerClasses()) : !a && v && (S.classList.add(`${m.containerModifierClass}grid`), m.grid.fill === "column" && S.classList.add(`${m.containerModifierClass}grid-column`), e.emitContainerClasses()), a = v;
|
|
3784
|
+
};
|
|
3785
|
+
n("init", g), n("update", c), e.grid = {
|
|
3786
|
+
initSlides: d,
|
|
3787
|
+
unsetSlides: u,
|
|
3788
|
+
updateSlide: f,
|
|
3789
|
+
updateWrapperSize: h
|
|
3790
|
+
};
|
|
3791
|
+
}
|
|
3720
3792
|
export {
|
|
3793
|
+
Pi as G,
|
|
3721
3794
|
yi as K,
|
|
3722
|
-
|
|
3723
|
-
|
|
3795
|
+
xi as M,
|
|
3796
|
+
Ei as N,
|
|
3724
3797
|
bi as S,
|
|
3725
3798
|
Ti as a,
|
|
3726
3799
|
Mi as f
|