@zenpatient-org/healthspan-marketing-ui 0.1.15 → 0.1.17

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.
Files changed (148) hide show
  1. package/dist/components/Benefit/Benefit.d.ts +8 -0
  2. package/dist/components/Benefit/index.d.ts +2 -0
  3. package/dist/components/Button/Button.es.js +33 -31
  4. package/dist/components/Callback/Callback.cjs.js +1 -1
  5. package/dist/components/Callback/Callback.es.js +16 -8
  6. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +19 -0
  7. package/dist/components/ComplexTooltip/index.d.ts +1 -0
  8. package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
  9. package/dist/components/ContentTabs/ContentTabs.d.ts +1 -1
  10. package/dist/components/ContentTabs/ContentTabs.es.js +13 -4
  11. package/dist/components/Cursor/Cursor.d.ts +6 -0
  12. package/dist/components/Cursor/components/ClientCursor.d.ts +3 -0
  13. package/dist/components/Cursor/components/ServerCursor.d.ts +3 -0
  14. package/dist/components/Cursor/index.d.ts +1 -0
  15. package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
  16. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
  17. package/dist/components/FilterMenu/FilterMenu.es.js +82 -38
  18. package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
  19. package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +2 -2
  20. package/dist/components/HighlightedTitle/HighlightedTitle.es.js +33 -17
  21. package/dist/components/IconButton/IconButton.cjs.js +1 -1
  22. package/dist/components/IconButton/IconButton.es.js +16 -19
  23. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  24. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +3 -0
  25. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +80 -46
  26. package/dist/components/Label/Label.cjs.js +1 -1
  27. package/dist/components/Label/Label.d.ts +1 -1
  28. package/dist/components/Label/Label.es.js +15 -9
  29. package/dist/components/Label/types.d.ts +1 -0
  30. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -0
  31. package/dist/components/ProductGallery/ProductGallery.d.ts +8 -0
  32. package/dist/components/ProductGallery/ProductGallery.es.js +96 -0
  33. package/dist/components/ProductGallery/index.d.ts +2 -0
  34. package/dist/components/ProductGallery/productGallery.module.css.cjs.js +1 -0
  35. package/dist/components/ProductGallery/productGallery.module.css.es.js +27 -0
  36. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  37. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +2 -11
  38. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +67 -20
  39. package/dist/components/ProductGalleryCard/index.d.ts +1 -0
  40. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
  41. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +12 -10
  42. package/dist/components/ProductGalleryCard/types.d.ts +11 -0
  43. package/dist/components/ProductListing/ProductListing.d.ts +19 -0
  44. package/dist/components/ProductListing/index.d.ts +1 -0
  45. package/dist/components/ProgramCard/ProgramCard.d.ts +13 -0
  46. package/dist/components/ProgramCard/index.d.ts +1 -0
  47. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -0
  48. package/dist/components/ProgressButton/ProgressButton.es.js +63 -0
  49. package/dist/components/ProgressButton/progressButton.module.css.cjs.js +1 -0
  50. package/dist/components/ProgressButton/progressButton.module.css.es.js +21 -0
  51. package/dist/components/ProgressButton/types.d.ts +1 -1
  52. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  53. package/dist/components/Tabs/Tabs.d.ts +4 -2
  54. package/dist/components/Tabs/Tabs.es.js +17 -15
  55. package/dist/components/Tabs/TabsWithFade.cjs.js +1 -0
  56. package/dist/components/Tabs/TabsWithFade.d.ts +9 -0
  57. package/dist/components/Tabs/TabsWithFade.es.js +43 -0
  58. package/dist/components/Tabs/index.d.ts +2 -0
  59. package/dist/components/Tabs/tabs.module.css.cjs.js +1 -1
  60. package/dist/components/Tabs/tabs.module.css.es.js +23 -15
  61. package/dist/components/Tag/Tag.d.ts +1 -1
  62. package/dist/components/Tag/Tag.es.js +10 -1
  63. package/dist/components/TextButton/TextButton.cjs.js +1 -0
  64. package/dist/components/TextButton/TextButton.es.js +39 -0
  65. package/dist/components/TextButton/textButton.module.css.cjs.js +1 -0
  66. package/dist/components/TextButton/textButton.module.css.es.js +19 -0
  67. package/dist/components/TypeBadge/TypeBadge.d.ts +1 -1
  68. package/dist/components/Typography/Typography.d.ts +1 -1
  69. package/dist/components/Typography/Typography.es.js +14 -1
  70. package/dist/components/index.d.ts +8 -1
  71. package/dist/healthspan-marketing-ui.css +1 -1
  72. package/dist/index.cjs.js +1 -1
  73. package/dist/index.es.js +48 -36
  74. package/dist/modules/Comparison/Comparison.d.ts +1 -1
  75. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -1
  76. package/dist/modules/Comparison/types.d.ts +2 -2
  77. package/dist/modules/FeaturedIn/FeaturedIn.d.ts +21 -0
  78. package/dist/modules/FeaturedIn/index.d.ts +1 -0
  79. package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +1 -1
  80. package/dist/modules/FollowTheScience/FollowTheScience.d.ts +10 -0
  81. package/dist/modules/FollowTheScience/index.d.ts +1 -0
  82. package/dist/modules/HowItWorks/HowItWorks.d.ts +11 -0
  83. package/dist/modules/HowItWorks/components/Content/Content.d.ts +10 -0
  84. package/dist/modules/HowItWorks/components/Content/index.d.ts +1 -0
  85. package/dist/modules/HowItWorks/index.d.ts +1 -0
  86. package/dist/modules/OptimalHealth/OptimalHealth.d.ts +11 -0
  87. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +7 -0
  88. package/dist/modules/OptimalHealth/components/ClockImages/hooks.d.ts +1 -0
  89. package/dist/modules/OptimalHealth/components/ClockImages/index.d.ts +1 -0
  90. package/dist/modules/OptimalHealth/index.d.ts +1 -0
  91. package/dist/modules/OptimalHealth/types.d.ts +12 -0
  92. package/dist/modules/OurProcess/OurProcess.d.ts +12 -0
  93. package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +9 -0
  94. package/dist/modules/OurProcess/components/StepCards/index.d.ts +1 -0
  95. package/dist/modules/OurProcess/index.d.ts +1 -0
  96. package/dist/modules/OurProcess/types.d.ts +5 -0
  97. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -0
  98. package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +3 -0
  99. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +53 -0
  100. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -0
  101. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +10 -0
  102. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +46 -0
  103. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/index.d.ts +1 -0
  104. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -0
  105. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +9 -0
  106. package/dist/modules/ProductsDisplay/components/index.d.ts +1 -0
  107. package/dist/modules/ProductsDisplay/index.d.ts +1 -0
  108. package/dist/modules/ProductsDisplay/productsDisplay.module.css.cjs.js +1 -0
  109. package/dist/modules/ProductsDisplay/productsDisplay.module.css.es.js +11 -0
  110. package/dist/modules/ProductsDisplay/types.d.ts +11 -0
  111. package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -0
  112. package/dist/modules/ProductsDisplay/useProductsData.d.ts +15 -0
  113. package/dist/modules/ProductsDisplay/useProductsData.es.js +26 -0
  114. package/dist/modules/Studies/Studies.d.ts +1 -1
  115. package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +7 -0
  116. package/dist/modules/TargetedPrograms/index.d.ts +1 -0
  117. package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
  118. package/dist/modules/TotalCare/TotalCare.d.ts +2 -2
  119. package/dist/modules/TotalCare/TotalCare.es.js +38 -19
  120. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  121. package/dist/modules/YourProtocol/YourProtocol.d.ts +1 -1
  122. package/dist/modules/YourProtocol/YourProtocol.es.js +20 -6
  123. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
  124. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +48 -22
  125. package/dist/modules/index.d.ts +1 -0
  126. package/dist/node_modules/swiper/modules/navigation.cjs.js +1 -0
  127. package/dist/node_modules/swiper/modules/navigation.es.js +127 -0
  128. package/dist/node_modules/swiper/shared/create-element-if-not-defined.cjs.js +1 -0
  129. package/dist/node_modules/swiper/shared/create-element-if-not-defined.es.js +12 -0
  130. package/dist/node_modules/swiper/shared/ssr-window.esm.cjs.js +1 -0
  131. package/dist/node_modules/swiper/shared/ssr-window.esm.es.js +135 -0
  132. package/dist/node_modules/swiper/shared/swiper-core.cjs.js +1 -0
  133. package/dist/node_modules/swiper/shared/swiper-core.es.js +2028 -0
  134. package/dist/node_modules/swiper/shared/update-on-virtual-data.cjs.js +1 -0
  135. package/dist/node_modules/swiper/shared/update-on-virtual-data.es.js +62 -0
  136. package/dist/node_modules/swiper/shared/update-swiper.cjs.js +1 -0
  137. package/dist/node_modules/swiper/shared/update-swiper.es.js +192 -0
  138. package/dist/node_modules/swiper/shared/utils.cjs.js +1 -0
  139. package/dist/node_modules/swiper/shared/utils.es.js +186 -0
  140. package/dist/node_modules/swiper/swiper-react.cjs.js +1 -0
  141. package/dist/node_modules/swiper/swiper-react.es.js +242 -0
  142. package/dist/utils/index.d.ts +1 -0
  143. package/dist/utils/useSwiper.cjs.js +1 -0
  144. package/dist/utils/useSwiper.d.ts +22 -0
  145. package/dist/utils/useSwiper.es.js +48 -0
  146. package/dist/utils.cjs.js +1 -1
  147. package/dist/utils.es.js +8 -6
  148. package/package.json +7 -2
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./update-swiper.cjs.js"),p=require("./swiper-core.cjs.js");function d(t,i){t===void 0&&(t={}),i===void 0&&(i=!0);const n={on:{}},f={},e={};o.e(n,p.d),n._emitClasses=!0,n.init=!1;const s={},l=o.p.map(a=>a.replace(/_/,"")),r=Object.assign({},t);return Object.keys(r).forEach(a=>{typeof t[a]>"u"||(l.indexOf(a)>=0?o.i(t[a])?(n[a]={},e[a]={},o.e(n[a],t[a]),o.e(e[a],t[a])):(n[a]=t[a],e[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?i?f[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:s[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{n[a]===!0&&(n[a]={}),n[a]===!1&&delete n[a]}),{params:n,passedParams:e,rest:s,events:f}}function m(t,i){let{el:n,nextEl:f,prevEl:e,paginationEl:s,scrollbarEl:l,swiper:r}=t;o.n(i)&&f&&e&&(r.params.navigation.nextEl=f,r.originalParams.navigation.nextEl=f,r.params.navigation.prevEl=e,r.originalParams.navigation.prevEl=e),o.a(i)&&s&&(r.params.pagination.el=s,r.originalParams.pagination.el=s),o.b(i)&&l&&(r.params.scrollbar.el=l,r.originalParams.scrollbar.el=l),r.init(n)}function h(t,i,n,f,e){const s=[];if(!i)return s;const l=a=>{s.indexOf(a)<0&&s.push(a)};if(n&&f){const a=f.map(e),u=n.map(e);a.join("")!==u.join("")&&l("children"),f.length!==n.length&&l("children")}return o.p.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in i)if(o.i(t[a])&&o.i(i[a])){const u=Object.keys(t[a]),g=Object.keys(i[a]);u.length!==g.length?l(a):(u.forEach(c=>{t[a][c]!==i[a][c]&&l(a)}),g.forEach(c=>{t[a][c]!==i[a][c]&&l(a)}))}else t[a]!==i[a]&&l(a)}),s}const v=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};exports.a=h;exports.g=d;exports.m=m;exports.u=v;
@@ -0,0 +1,62 @@
1
+ import { e as u, p, i as g, n as m, a as h, b as v } from "./update-swiper.es.js";
2
+ import { d as x } from "./swiper-core.es.js";
3
+ function _(n, i) {
4
+ n === void 0 && (n = {}), i === void 0 && (i = !0);
5
+ const t = {
6
+ on: {}
7
+ }, o = {}, r = {};
8
+ u(t, x), t._emitClasses = !0, t.init = !1;
9
+ const e = {}, s = p.map((a) => a.replace(/_/, "")), l = Object.assign({}, n);
10
+ return Object.keys(l).forEach((a) => {
11
+ typeof n[a] > "u" || (s.indexOf(a) >= 0 ? g(n[a]) ? (t[a] = {}, r[a] = {}, u(t[a], n[a]), u(r[a], n[a])) : (t[a] = n[a], r[a] = n[a]) : a.search(/on[A-Z]/) === 0 && typeof n[a] == "function" ? i ? o[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : t.on[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : e[a] = n[a]);
12
+ }), ["navigation", "pagination", "scrollbar"].forEach((a) => {
13
+ t[a] === !0 && (t[a] = {}), t[a] === !1 && delete t[a];
14
+ }), {
15
+ params: t,
16
+ passedParams: r,
17
+ rest: e,
18
+ events: o
19
+ };
20
+ }
21
+ function b(n, i) {
22
+ let {
23
+ el: t,
24
+ nextEl: o,
25
+ prevEl: r,
26
+ paginationEl: e,
27
+ scrollbarEl: s,
28
+ swiper: l
29
+ } = n;
30
+ m(i) && o && r && (l.params.navigation.nextEl = o, l.originalParams.navigation.nextEl = o, l.params.navigation.prevEl = r, l.originalParams.navigation.prevEl = r), h(i) && e && (l.params.pagination.el = e, l.originalParams.pagination.el = e), v(i) && s && (l.params.scrollbar.el = s, l.originalParams.scrollbar.el = s), l.init(t);
31
+ }
32
+ function C(n, i, t, o, r) {
33
+ const e = [];
34
+ if (!i) return e;
35
+ const s = (a) => {
36
+ e.indexOf(a) < 0 && e.push(a);
37
+ };
38
+ if (t && o) {
39
+ const a = o.map(r), c = t.map(r);
40
+ a.join("") !== c.join("") && s("children"), o.length !== t.length && s("children");
41
+ }
42
+ return p.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
43
+ if (a in n && a in i)
44
+ if (g(n[a]) && g(i[a])) {
45
+ const c = Object.keys(n[a]), d = Object.keys(i[a]);
46
+ c.length !== d.length ? s(a) : (c.forEach((f) => {
47
+ n[a][f] !== i[a][f] && s(a);
48
+ }), d.forEach((f) => {
49
+ n[a][f] !== i[a][f] && s(a);
50
+ }));
51
+ } else n[a] !== i[a] && s(a);
52
+ }), e;
53
+ }
54
+ const S = (n) => {
55
+ !n || n.destroyed || !n.params.virtual || n.params.virtual && !n.params.virtual.enabled || (n.updateSlides(), n.updateProgress(), n.updateSlidesClasses(), n.emit("_virtualUpdated"), n.parallax && n.params.parallax && n.params.parallax.enabled && n.parallax.setTranslate());
56
+ };
57
+ export {
58
+ C as a,
59
+ _ as g,
60
+ b as m,
61
+ S as u
62
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./utils.cjs.js"),B=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function g(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function T(t,i){const r=["__proto__","constructor","prototype"];Object.keys(i).filter(e=>r.indexOf(e)<0).forEach(e=>{typeof t[e]>"u"?t[e]=i[e]:g(i[e])&&g(t[e])&&Object.keys(i[e]).length>0?i[e].__swiper__?t[e]=i[e]:T(t[e],i[e]):t[e]=i[e]})}function I(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function M(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function N(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function A(t){t===void 0&&(t="");const i=t.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return i.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}function L(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function D(t){let{swiper:i,slides:r,passedParams:e,changedParams:o,nextEl:s,prevEl:a,scrollbarEl:d,paginationEl:c}=t;const h=o.filter(n=>n!=="children"&&n!=="direction"&&n!=="wrapperClass"),{params:l,pagination:p,navigation:f,scrollbar:v,virtual:u,thumbs:E}=i;let S,_,P,C,x,m,O,b;o.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&!e.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(S=!0),o.includes("controller")&&e.controller&&e.controller.control&&l.controller&&!l.controller.control&&(_=!0),o.includes("pagination")&&e.pagination&&(e.pagination.el||c)&&(l.pagination||l.pagination===!1)&&p&&!p.el&&(P=!0),o.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||d)&&(l.scrollbar||l.scrollbar===!1)&&v&&!v.el&&(C=!0),o.includes("navigation")&&e.navigation&&(e.navigation.prevEl||a)&&(e.navigation.nextEl||s)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(x=!0);const j=n=>{i[n]&&(i[n].destroy(),n==="navigation"?(i.isElement&&(i[n].prevEl.remove(),i[n].nextEl.remove()),l[n].prevEl=void 0,l[n].nextEl=void 0,i[n].prevEl=void 0,i[n].nextEl=void 0):(i.isElement&&i[n].el.remove(),l[n].el=void 0,i[n].el=void 0))};o.includes("loop")&&i.isElement&&(l.loop&&!e.loop?m=!0:!l.loop&&e.loop?O=!0:b=!0),h.forEach(n=>{if(g(l[n])&&g(e[n]))Object.assign(l[n],e[n]),(n==="navigation"||n==="pagination"||n==="scrollbar")&&"enabled"in e[n]&&!e[n].enabled&&j(n);else{const w=e[n];(w===!0||w===!1)&&(n==="navigation"||n==="pagination"||n==="scrollbar")?w===!1&&j(n):l[n]=e[n]}}),h.includes("controller")&&!_&&i.controller&&i.controller.control&&l.controller&&l.controller.control&&(i.controller.control=l.controller.control),o.includes("children")&&r&&u&&l.virtual.enabled?(u.slides=r,u.update(!0)):o.includes("virtual")&&u&&l.virtual.enabled&&(r&&(u.slides=r),u.update(!0)),o.includes("children")&&r&&l.loop&&(b=!0),S&&E.init()&&E.update(!0),_&&(i.controller.control=l.controller.control),P&&(i.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),i.el.appendChild(c)),c&&(l.pagination.el=c),p.init(),p.render(),p.update()),C&&(i.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),i.el.appendChild(d)),d&&(l.scrollbar.el=d),v.init(),v.updateSize(),v.setTranslate()),x&&(i.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),z.s(s,i.hostEl.constructor.nextButtonSvg),s.part.add("button-next"),i.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),z.s(a,i.hostEl.constructor.prevButtonSvg),a.part.add("button-prev"),i.el.appendChild(a))),s&&(l.navigation.nextEl=s),a&&(l.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(i.allowSlideNext=e.allowSlideNext),o.includes("allowSlidePrev")&&(i.allowSlidePrev=e.allowSlidePrev),o.includes("direction")&&i.changeDirection(e.direction,!1),(m||b)&&i.loopDestroy(),(O||b)&&i.loopCreate(),i.update()}exports.a=M;exports.b=N;exports.d=A;exports.e=T;exports.i=g;exports.n=I;exports.p=B;exports.u=D;exports.w=L;
@@ -0,0 +1,192 @@
1
+ import { s as z } from "./utils.es.js";
2
+ const B = [
3
+ "eventsPrefix",
4
+ "injectStyles",
5
+ "injectStylesUrls",
6
+ "modules",
7
+ "init",
8
+ "_direction",
9
+ "oneWayMovement",
10
+ "swiperElementNodeName",
11
+ "touchEventsTarget",
12
+ "initialSlide",
13
+ "_speed",
14
+ "cssMode",
15
+ "updateOnWindowResize",
16
+ "resizeObserver",
17
+ "nested",
18
+ "focusableElements",
19
+ "_enabled",
20
+ "_width",
21
+ "_height",
22
+ "preventInteractionOnTransition",
23
+ "userAgent",
24
+ "url",
25
+ "_edgeSwipeDetection",
26
+ "_edgeSwipeThreshold",
27
+ "_freeMode",
28
+ "_autoHeight",
29
+ "setWrapperSize",
30
+ "virtualTranslate",
31
+ "_effect",
32
+ "breakpoints",
33
+ "breakpointsBase",
34
+ "_spaceBetween",
35
+ "_slidesPerView",
36
+ "maxBackfaceHiddenSlides",
37
+ "_grid",
38
+ "_slidesPerGroup",
39
+ "_slidesPerGroupSkip",
40
+ "_slidesPerGroupAuto",
41
+ "_centeredSlides",
42
+ "_centeredSlidesBounds",
43
+ "_slidesOffsetBefore",
44
+ "_slidesOffsetAfter",
45
+ "normalizeSlideIndex",
46
+ "_centerInsufficientSlides",
47
+ "_watchOverflow",
48
+ "roundLengths",
49
+ "touchRatio",
50
+ "touchAngle",
51
+ "simulateTouch",
52
+ "_shortSwipes",
53
+ "_longSwipes",
54
+ "longSwipesRatio",
55
+ "longSwipesMs",
56
+ "_followFinger",
57
+ "allowTouchMove",
58
+ "_threshold",
59
+ "touchMoveStopPropagation",
60
+ "touchStartPreventDefault",
61
+ "touchStartForcePreventDefault",
62
+ "touchReleaseOnEdges",
63
+ "uniqueNavElements",
64
+ "_resistance",
65
+ "_resistanceRatio",
66
+ "_watchSlidesProgress",
67
+ "_grabCursor",
68
+ "preventClicks",
69
+ "preventClicksPropagation",
70
+ "_slideToClickedSlide",
71
+ "_loop",
72
+ "loopAdditionalSlides",
73
+ "loopAddBlankSlides",
74
+ "loopPreventsSliding",
75
+ "_rewind",
76
+ "_allowSlidePrev",
77
+ "_allowSlideNext",
78
+ "_swipeHandler",
79
+ "_noSwiping",
80
+ "noSwipingClass",
81
+ "noSwipingSelector",
82
+ "passiveListeners",
83
+ "containerModifierClass",
84
+ "slideClass",
85
+ "slideActiveClass",
86
+ "slideVisibleClass",
87
+ "slideFullyVisibleClass",
88
+ "slideNextClass",
89
+ "slidePrevClass",
90
+ "slideBlankClass",
91
+ "wrapperClass",
92
+ "lazyPreloaderClass",
93
+ "lazyPreloadPrevNext",
94
+ "runCallbacksOnInit",
95
+ "observer",
96
+ "observeParents",
97
+ "observeSlideChildren",
98
+ // modules
99
+ "a11y",
100
+ "_autoplay",
101
+ "_controller",
102
+ "coverflowEffect",
103
+ "cubeEffect",
104
+ "fadeEffect",
105
+ "flipEffect",
106
+ "creativeEffect",
107
+ "cardsEffect",
108
+ "hashNavigation",
109
+ "history",
110
+ "keyboard",
111
+ "mousewheel",
112
+ "_navigation",
113
+ "_pagination",
114
+ "parallax",
115
+ "_scrollbar",
116
+ "_thumbs",
117
+ "virtual",
118
+ "zoom",
119
+ "control"
120
+ ];
121
+ function b(t) {
122
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
123
+ }
124
+ function I(t, i) {
125
+ const r = ["__proto__", "constructor", "prototype"];
126
+ Object.keys(i).filter((e) => r.indexOf(e) < 0).forEach((e) => {
127
+ typeof t[e] > "u" ? t[e] = i[e] : b(i[e]) && b(t[e]) && Object.keys(i[e]).length > 0 ? i[e].__swiper__ ? t[e] = i[e] : I(t[e], i[e]) : t[e] = i[e];
128
+ });
129
+ }
130
+ function M(t) {
131
+ return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
132
+ }
133
+ function L(t) {
134
+ return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
135
+ }
136
+ function N(t) {
137
+ return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
138
+ }
139
+ function A(t) {
140
+ t === void 0 && (t = "");
141
+ const i = t.split(" ").map((e) => e.trim()).filter((e) => !!e), r = [];
142
+ return i.forEach((e) => {
143
+ r.indexOf(e) < 0 && r.push(e);
144
+ }), r.join(" ");
145
+ }
146
+ function D(t) {
147
+ return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
148
+ }
149
+ function R(t) {
150
+ let {
151
+ swiper: i,
152
+ slides: r,
153
+ passedParams: e,
154
+ changedParams: o,
155
+ nextEl: s,
156
+ prevEl: a,
157
+ scrollbarEl: d,
158
+ paginationEl: c
159
+ } = t;
160
+ const h = o.filter((n) => n !== "children" && n !== "direction" && n !== "wrapperClass"), {
161
+ params: l,
162
+ pagination: p,
163
+ navigation: f,
164
+ scrollbar: v,
165
+ virtual: u,
166
+ thumbs: E
167
+ } = i;
168
+ let S, _, x, C, P, m, O, g;
169
+ o.includes("thumbs") && e.thumbs && e.thumbs.swiper && !e.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (S = !0), o.includes("controller") && e.controller && e.controller.control && l.controller && !l.controller.control && (_ = !0), o.includes("pagination") && e.pagination && (e.pagination.el || c) && (l.pagination || l.pagination === !1) && p && !p.el && (x = !0), o.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || d) && (l.scrollbar || l.scrollbar === !1) && v && !v.el && (C = !0), o.includes("navigation") && e.navigation && (e.navigation.prevEl || a) && (e.navigation.nextEl || s) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (P = !0);
170
+ const j = (n) => {
171
+ i[n] && (i[n].destroy(), n === "navigation" ? (i.isElement && (i[n].prevEl.remove(), i[n].nextEl.remove()), l[n].prevEl = void 0, l[n].nextEl = void 0, i[n].prevEl = void 0, i[n].nextEl = void 0) : (i.isElement && i[n].el.remove(), l[n].el = void 0, i[n].el = void 0));
172
+ };
173
+ o.includes("loop") && i.isElement && (l.loop && !e.loop ? m = !0 : !l.loop && e.loop ? O = !0 : g = !0), h.forEach((n) => {
174
+ if (b(l[n]) && b(e[n]))
175
+ Object.assign(l[n], e[n]), (n === "navigation" || n === "pagination" || n === "scrollbar") && "enabled" in e[n] && !e[n].enabled && j(n);
176
+ else {
177
+ const w = e[n];
178
+ (w === !0 || w === !1) && (n === "navigation" || n === "pagination" || n === "scrollbar") ? w === !1 && j(n) : l[n] = e[n];
179
+ }
180
+ }), h.includes("controller") && !_ && i.controller && i.controller.control && l.controller && l.controller.control && (i.controller.control = l.controller.control), o.includes("children") && r && u && l.virtual.enabled ? (u.slides = r, u.update(!0)) : o.includes("virtual") && u && l.virtual.enabled && (r && (u.slides = r), u.update(!0)), o.includes("children") && r && l.loop && (g = !0), S && E.init() && E.update(!0), _ && (i.controller.control = l.controller.control), x && (i.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), i.el.appendChild(c)), c && (l.pagination.el = c), p.init(), p.render(), p.update()), C && (i.isElement && (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-scrollbar"), d.part.add("scrollbar"), i.el.appendChild(d)), d && (l.scrollbar.el = d), v.init(), v.updateSize(), v.setTranslate()), P && (i.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), z(s, i.hostEl.constructor.nextButtonSvg), s.part.add("button-next"), i.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), z(a, i.hostEl.constructor.prevButtonSvg), a.part.add("button-prev"), i.el.appendChild(a))), s && (l.navigation.nextEl = s), a && (l.navigation.prevEl = a), f.init(), f.update()), o.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), o.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), o.includes("direction") && i.changeDirection(e.direction, !1), (m || g) && i.loopDestroy(), (O || g) && i.loopCreate(), i.update();
181
+ }
182
+ export {
183
+ L as a,
184
+ N as b,
185
+ A as d,
186
+ I as e,
187
+ b as i,
188
+ M as n,
189
+ B as p,
190
+ R as u,
191
+ D as w
192
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./ssr-window.esm.cjs.js");function g(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function S(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function T(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function E(){return Date.now()}function M(e){const t=a.a();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function b(e,t){t===void 0&&(t="x");const r=a.a();let n,o,s;const l=M(e);return r.WebKitCSSMatrix?(o=l.transform||l.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(i=>i.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(o==="none"?"":o)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?o=s.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),t==="y"&&(r.WebKitCSSMatrix?o=s.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function u(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function x(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const n=r<0||arguments.length<=r?void 0:arguments[r];if(n!=null&&!x(n)){const o=Object.keys(Object(n)).filter(s=>t.indexOf(s)<0);for(let s=0,l=o.length;s<l;s+=1){const i=o[s],f=Object.getOwnPropertyDescriptor(n,i);f!==void 0&&f.enumerable&&(u(e[i])&&u(n[i])?n[i].__swiper__?e[i]=n[i]:p(e[i],n[i]):!u(e[i])&&u(n[i])?(e[i]={},n[i].__swiper__?e[i]=n[i]:p(e[i],n[i])):e[i]=n[i])}}}return e}function v(e,t,r){e.style.setProperty(t,r)}function C(e){let{swiper:t,targetPosition:r,side:n}=e;const o=a.a(),s=-t.translate;let l=null,i;const f=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const h=r>s?"next":"prev",y=(m,d)=>h==="next"&&m>=d||h==="prev"&&m<=d,w=()=>{i=new Date().getTime(),l===null&&(l=i);const m=Math.max(Math.min((i-l)/f,1),0),d=.5-Math.cos(m*Math.PI)/2;let c=s+d*(r-s);if(y(c,r)&&(c=r),t.wrapperEl.scrollTo({[n]:c}),y(c,r)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:c})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(w)};w()}function O(e,t){t===void 0&&(t="");const r=a.a(),n=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(o=>o.matches(t)):n}function P(e,t){const r=[t];for(;r.length>0;){const n=r.shift();if(e===n)return!0;r.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function j(e,t){const r=a.a();let n=t.contains(e);return!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=P(e,t))),n}function _(e){try{console.warn(e);return}catch{}}function F(e,t){t===void 0&&(t=[]);const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:g(t)),r}function H(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function L(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function A(e,t){return a.a().getComputedStyle(e,null).getPropertyValue(t)}function I(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function k(e,t){const r=[];let n=e.parentElement;for(;n;)r.push(n),n=n.parentElement;return r}function W(e,t,r){const n=a.a();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function D(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function K(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}exports.a=v;exports.b=k;exports.c=F;exports.e=O;exports.f=E;exports.h=W;exports.i=I;exports.j=g;exports.k=b;exports.m=D;exports.n=T;exports.o=u;exports.q=A;exports.r=L;exports.s=K;exports.t=H;exports.u=C;exports.v=_;exports.w=j;exports.x=p;exports.y=S;
@@ -0,0 +1,186 @@
1
+ import { a } from "./ssr-window.esm.es.js";
2
+ function g(e) {
3
+ return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
4
+ }
5
+ function x(e) {
6
+ const t = e;
7
+ Object.keys(t).forEach((r) => {
8
+ try {
9
+ t[r] = null;
10
+ } catch {
11
+ }
12
+ try {
13
+ delete t[r];
14
+ } catch {
15
+ }
16
+ });
17
+ }
18
+ function b(e, t) {
19
+ return t === void 0 && (t = 0), setTimeout(e, t);
20
+ }
21
+ function v() {
22
+ return Date.now();
23
+ }
24
+ function S(e) {
25
+ const t = a();
26
+ let r;
27
+ return t.getComputedStyle && (r = t.getComputedStyle(e, null)), !r && e.currentStyle && (r = e.currentStyle), r || (r = e.style), r;
28
+ }
29
+ function C(e, t) {
30
+ t === void 0 && (t = "x");
31
+ const r = a();
32
+ let n, o, s;
33
+ const l = S(e);
34
+ return r.WebKitCSSMatrix ? (o = l.transform || l.webkitTransform, o.split(",").length > 6 && (o = o.split(", ").map((i) => i.replace(",", ".")).join(", ")), s = new r.WebKitCSSMatrix(o === "none" ? "" : o)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = s.toString().split(",")), t === "x" && (r.WebKitCSSMatrix ? o = s.m41 : n.length === 16 ? o = parseFloat(n[12]) : o = parseFloat(n[4])), t === "y" && (r.WebKitCSSMatrix ? o = s.m42 : n.length === 16 ? o = parseFloat(n[13]) : o = parseFloat(n[5])), o || 0;
35
+ }
36
+ function d(e) {
37
+ return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
38
+ }
39
+ function T(e) {
40
+ return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
41
+ }
42
+ function y() {
43
+ const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
44
+ for (let r = 1; r < arguments.length; r += 1) {
45
+ const n = r < 0 || arguments.length <= r ? void 0 : arguments[r];
46
+ if (n != null && !T(n)) {
47
+ const o = Object.keys(Object(n)).filter((s) => t.indexOf(s) < 0);
48
+ for (let s = 0, l = o.length; s < l; s += 1) {
49
+ const i = o[s], u = Object.getOwnPropertyDescriptor(n, i);
50
+ u !== void 0 && u.enumerable && (d(e[i]) && d(n[i]) ? n[i].__swiper__ ? e[i] = n[i] : y(e[i], n[i]) : !d(e[i]) && d(n[i]) ? (e[i] = {}, n[i].__swiper__ ? e[i] = n[i] : y(e[i], n[i])) : e[i] = n[i]);
51
+ }
52
+ }
53
+ }
54
+ return e;
55
+ }
56
+ function O(e, t, r) {
57
+ e.style.setProperty(t, r);
58
+ }
59
+ function P(e) {
60
+ let {
61
+ swiper: t,
62
+ targetPosition: r,
63
+ side: n
64
+ } = e;
65
+ const o = a(), s = -t.translate;
66
+ let l = null, i;
67
+ const u = t.params.speed;
68
+ t.wrapperEl.style.scrollSnapType = "none", o.cancelAnimationFrame(t.cssModeFrameID);
69
+ const p = r > s ? "next" : "prev", h = (f, m) => p === "next" && f >= m || p === "prev" && f <= m, w = () => {
70
+ i = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = i);
71
+ const f = Math.max(Math.min((i - l) / u, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
72
+ let c = s + m * (r - s);
73
+ if (h(c, r) && (c = r), t.wrapperEl.scrollTo({
74
+ [n]: c
75
+ }), h(c, r)) {
76
+ t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
77
+ t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
78
+ [n]: c
79
+ });
80
+ }), o.cancelAnimationFrame(t.cssModeFrameID);
81
+ return;
82
+ }
83
+ t.cssModeFrameID = o.requestAnimationFrame(w);
84
+ };
85
+ w();
86
+ }
87
+ function j(e, t) {
88
+ t === void 0 && (t = "");
89
+ const r = a(), n = [...e.children];
90
+ return r.HTMLSlotElement && e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((o) => o.matches(t)) : n;
91
+ }
92
+ function E(e, t) {
93
+ const r = [t];
94
+ for (; r.length > 0; ) {
95
+ const n = r.shift();
96
+ if (e === n)
97
+ return !0;
98
+ r.push(...n.children, ...n.shadowRoot ? n.shadowRoot.children : [], ...n.assignedElements ? n.assignedElements() : []);
99
+ }
100
+ }
101
+ function F(e, t) {
102
+ const r = a();
103
+ let n = t.contains(e);
104
+ return !n && r.HTMLSlotElement && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n || (n = E(e, t))), n;
105
+ }
106
+ function H(e) {
107
+ try {
108
+ console.warn(e);
109
+ return;
110
+ } catch {
111
+ }
112
+ }
113
+ function L(e, t) {
114
+ t === void 0 && (t = []);
115
+ const r = document.createElement(e);
116
+ return r.classList.add(...Array.isArray(t) ? t : g(t)), r;
117
+ }
118
+ function _(e, t) {
119
+ const r = [];
120
+ for (; e.previousElementSibling; ) {
121
+ const n = e.previousElementSibling;
122
+ t ? n.matches(t) && r.push(n) : r.push(n), e = n;
123
+ }
124
+ return r;
125
+ }
126
+ function A(e, t) {
127
+ const r = [];
128
+ for (; e.nextElementSibling; ) {
129
+ const n = e.nextElementSibling;
130
+ t ? n.matches(t) && r.push(n) : r.push(n), e = n;
131
+ }
132
+ return r;
133
+ }
134
+ function I(e, t) {
135
+ return a().getComputedStyle(e, null).getPropertyValue(t);
136
+ }
137
+ function k(e) {
138
+ let t = e, r;
139
+ if (t) {
140
+ for (r = 0; (t = t.previousSibling) !== null; )
141
+ t.nodeType === 1 && (r += 1);
142
+ return r;
143
+ }
144
+ }
145
+ function W(e, t) {
146
+ const r = [];
147
+ let n = e.parentElement;
148
+ for (; n; )
149
+ r.push(n), n = n.parentElement;
150
+ return r;
151
+ }
152
+ function D(e, t, r) {
153
+ const n = a();
154
+ return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
155
+ }
156
+ function K(e) {
157
+ return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
158
+ }
159
+ function V(e, t) {
160
+ t === void 0 && (t = ""), typeof trustedTypes < "u" ? e.innerHTML = trustedTypes.createPolicy("html", {
161
+ createHTML: (r) => r
162
+ }).createHTML(t) : e.innerHTML = t;
163
+ }
164
+ export {
165
+ O as a,
166
+ W as b,
167
+ L as c,
168
+ j as e,
169
+ v as f,
170
+ D as h,
171
+ k as i,
172
+ g as j,
173
+ C as k,
174
+ K as m,
175
+ b as n,
176
+ d as o,
177
+ I as q,
178
+ A as r,
179
+ V as s,
180
+ _ as t,
181
+ P as u,
182
+ H as v,
183
+ F as w,
184
+ y as x,
185
+ x as y
186
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./shared/swiper-core.cjs.js"),I=require("./shared/update-on-virtual-data.cjs.js"),d=require("./shared/update-swiper.cjs.js");function T(){return T=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},T.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(l=>t.push(l)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",B)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:k,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;