@ptcwebops/ptcw-design 6.4.36-beta → 6.5.0-upgrade

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 (1423) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/fef-stencil-v4.cjs.js +25 -0
  3. package/dist/cjs/fef-stencil-v4.cjs.js.map +1 -0
  4. package/dist/cjs/index-NEB64XqD.js +1521 -0
  5. package/dist/cjs/index-NEB64XqD.js.map +1 -0
  6. package/dist/cjs/index.cjs.js +6 -0
  7. package/dist/cjs/index.cjs.js.map +1 -0
  8. package/dist/cjs/loader.cjs.js +6 -17
  9. package/dist/cjs/loader.cjs.js.map +1 -0
  10. package/dist/cjs/my-component.cjs.entry.js +26 -18
  11. package/dist/cjs/my-component.entry.cjs.js.map +1 -0
  12. package/dist/collection/collection-manifest.json +4 -187
  13. package/dist/collection/components/atoms/my-component/my-component.js +96 -0
  14. package/dist/collection/components/atoms/my-component/my-component.js.map +1 -0
  15. package/dist/collection/components/atoms/my-component/my-component.stories.js +40 -0
  16. package/dist/collection/components/atoms/my-component/my-component.stories.js.map +1 -0
  17. package/dist/collection/global/global.js +10 -7
  18. package/dist/collection/global/global.js.map +1 -0
  19. package/dist/collection/index.js +11 -1
  20. package/dist/collection/index.js.map +1 -0
  21. package/dist/collection/utils/component.js +4 -3
  22. package/dist/collection/utils/component.js.map +1 -0
  23. package/dist/collection/utils/elq-lib.js +533 -534
  24. package/dist/collection/utils/elq-lib.js.map +1 -0
  25. package/dist/collection/utils/fef-logger.js +22 -23
  26. package/dist/collection/utils/fef-logger.js.map +1 -0
  27. package/dist/collection/utils/interfaces.js +12 -11
  28. package/dist/collection/utils/interfaces.js.map +1 -0
  29. package/dist/collection/utils/utils.js +310 -308
  30. package/dist/collection/utils/utils.js.map +1 -0
  31. package/dist/collection/utils/validation-messages.js +173 -170
  32. package/dist/collection/utils/validation-messages.js.map +1 -0
  33. package/dist/components/index.d.ts +33 -0
  34. package/dist/components/index.js +7 -0
  35. package/dist/components/index.js.map +1 -0
  36. package/dist/components/my-component.d.ts +11 -0
  37. package/dist/components/my-component.js +58 -0
  38. package/dist/components/my-component.js.map +1 -0
  39. package/dist/components/p-mYazRhBV.js +1329 -0
  40. package/dist/components/p-mYazRhBV.js.map +1 -0
  41. package/dist/esm/fef-stencil-v4.js +21 -0
  42. package/dist/esm/fef-stencil-v4.js.map +1 -0
  43. package/dist/esm/index-Cp34vyj8.js +1514 -0
  44. package/dist/esm/index-Cp34vyj8.js.map +1 -0
  45. package/dist/esm/index.js +5 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/loader.js +7 -16
  48. package/dist/esm/loader.js.map +1 -0
  49. package/dist/esm/my-component.entry.js +26 -16
  50. package/dist/esm/my-component.entry.js.map +1 -0
  51. package/dist/fef-stencil-v4/fef-stencil-v4.css +8 -0
  52. package/dist/fef-stencil-v4/fef-stencil-v4.esm.js +2 -0
  53. package/dist/fef-stencil-v4/fef-stencil-v4.esm.js.map +1 -0
  54. package/dist/fef-stencil-v4/index.esm.js +2 -0
  55. package/dist/fef-stencil-v4/index.esm.js.map +1 -0
  56. package/dist/fef-stencil-v4/loader.esm.js.map +1 -0
  57. package/dist/fef-stencil-v4/my-component.entry.esm.js.map +1 -0
  58. package/dist/fef-stencil-v4/p-3c43bcea.entry.js +2 -0
  59. package/dist/fef-stencil-v4/p-3c43bcea.entry.js.map +1 -0
  60. package/dist/fef-stencil-v4/p-Cp34vyj8.js +3 -0
  61. package/dist/fef-stencil-v4/p-Cp34vyj8.js.map +1 -0
  62. package/dist/types/components/atoms/my-component/my-component.d.ts +16 -0
  63. package/dist/types/components/atoms/my-component/my-component.stories.d.ts +7 -0
  64. package/dist/types/components.d.ts +18 -8137
  65. package/dist/types/global/global.d.ts +5 -4
  66. package/dist/types/index.d.ts +11 -1
  67. package/dist/types/stencil-public-runtime.d.ts +122 -29
  68. package/dist/types/utils/component.d.ts +1 -1
  69. package/dist/types/utils/elq-lib.d.ts +67 -61
  70. package/dist/types/utils/fef-logger.d.ts +10 -10
  71. package/dist/types/utils/interfaces.d.ts +34 -34
  72. package/dist/types/utils/utils.d.ts +35 -30
  73. package/dist/types/utils/validation-messages.d.ts +4 -4
  74. package/loader/cdn.js +1 -3
  75. package/loader/index.cjs.js +1 -3
  76. package/loader/index.d.ts +5 -2
  77. package/loader/index.es2017.js +1 -3
  78. package/loader/index.js +1 -3
  79. package/package.json +50 -78
  80. package/readme.md +102 -14
  81. package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
  82. package/dist/cjs/academic-form-test.cjs.entry.js +0 -82
  83. package/dist/cjs/author-listing-example.cjs.entry.js +0 -245
  84. package/dist/cjs/blog-detail-content_2.cjs.entry.js +0 -275
  85. package/dist/cjs/blog-detail-layout.cjs.entry.js +0 -69
  86. package/dist/cjs/blogs-search-section.cjs.entry.js +0 -218
  87. package/dist/cjs/bundle-example.cjs.entry.js +0 -53
  88. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +0 -63
  89. package/dist/cjs/buying-option-card.cjs.entry.js +0 -184
  90. package/dist/cjs/buying-option-cards-slider.cjs.entry.js +0 -175
  91. package/dist/cjs/component-6a178a16.js +0 -6476
  92. package/dist/cjs/core-58fa1795.js +0 -3889
  93. package/dist/cjs/dropdown-item.cjs.entry.js +0 -21
  94. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +0 -38
  95. package/dist/cjs/embedded-form.cjs.entry.js +0 -105
  96. package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -233
  97. package/dist/cjs/event-podcast-slider-example.cjs.entry.js +0 -68
  98. package/dist/cjs/featured-events-slider-example.cjs.entry.js +0 -62
  99. package/dist/cjs/featured-list.cjs.entry.js +0 -108
  100. package/dist/cjs/fl-tab-content_3.cjs.entry.js +0 -104
  101. package/dist/cjs/focus-trap.esm-8c5a8938.js +0 -1558
  102. package/dist/cjs/footer-form.cjs.entry.js +0 -64
  103. package/dist/cjs/global-418c14b4.js +0 -33
  104. package/dist/cjs/homepage-clickable-tab.cjs.entry.js +0 -60
  105. package/dist/cjs/homepage-jumbotron.cjs.entry.js +0 -128
  106. package/dist/cjs/homepage-toggled-content.cjs.entry.js +0 -154
  107. package/dist/cjs/icon-asset_2.cjs.entry.js +0 -154
  108. package/dist/cjs/index-63ddc79c.js +0 -2134
  109. package/dist/cjs/innovator-toggle-container.cjs.entry.js +0 -68
  110. package/dist/cjs/interfaces-574e6df7.js +0 -15
  111. package/dist/cjs/jumbotron-sub-menu.cjs.entry.js +0 -41
  112. package/dist/cjs/jumbotron-sub-mune.cjs.entry.js +0 -55
  113. package/dist/cjs/list-item.cjs.entry.js +0 -52
  114. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  115. package/dist/cjs/modal-form-example.cjs.entry.js +0 -109
  116. package/dist/cjs/most-popular-news.cjs.entry.js +0 -43
  117. package/dist/cjs/mousewheel-e9520f0f.js +0 -391
  118. package/dist/cjs/news-search-result.cjs.entry.js +0 -30
  119. package/dist/cjs/pagination-96df6fcc.js +0 -668
  120. package/dist/cjs/ptc-accordion-item.cjs.entry.js +0 -124
  121. package/dist/cjs/ptc-accordion.cjs.entry.js +0 -91
  122. package/dist/cjs/ptc-announcement.cjs.entry.js +0 -77
  123. package/dist/cjs/ptc-back-to-top.cjs.entry.js +0 -100
  124. package/dist/cjs/ptc-background-video.cjs.entry.js +0 -152
  125. package/dist/cjs/ptc-badge.cjs.entry.js +0 -30
  126. package/dist/cjs/ptc-bio-card.cjs.entry.js +0 -61
  127. package/dist/cjs/ptc-blue-pill-announcement-bar.cjs.entry.js +0 -23
  128. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -63
  129. package/dist/cjs/ptc-brightcov-video.cjs.entry.js +0 -24
  130. package/dist/cjs/ptc-button.cjs.entry.js +0 -117
  131. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -199
  132. package/dist/cjs/ptc-card-content.cjs.entry.js +0 -92
  133. package/dist/cjs/ptc-card_2.cjs.entry.js +0 -302
  134. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +0 -1209
  135. package/dist/cjs/ptc-checkbox-group.cjs.entry.js +0 -50
  136. package/dist/cjs/ptc-checkbox.cjs.entry.js +0 -74
  137. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -360
  138. package/dist/cjs/ptc-collapse-list.cjs.entry.js +0 -543
  139. package/dist/cjs/ptc-container.cjs.entry.js +0 -44
  140. package/dist/cjs/ptc-countdown.cjs.entry.js +0 -176
  141. package/dist/cjs/ptc-data-lookup.cjs.entry.js +0 -684
  142. package/dist/cjs/ptc-date.cjs.entry.js +0 -61
  143. package/dist/cjs/ptc-dropdown.cjs.entry.js +0 -79
  144. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +0 -141
  145. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +0 -201
  146. package/dist/cjs/ptc-embedded-quiz.cjs.entry.js +0 -299
  147. package/dist/cjs/ptc-enhanced-product-listing-card.cjs.entry.js +0 -73
  148. package/dist/cjs/ptc-featured-list.cjs.entry.js +0 -48
  149. package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +0 -381
  150. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +0 -193
  151. package/dist/cjs/ptc-filter-tag_2.cjs.entry.js +0 -429
  152. package/dist/cjs/ptc-footer.cjs.entry.js +0 -68
  153. package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +0 -5200
  154. package/dist/cjs/ptc-form-radio-button.cjs.entry.js +0 -56
  155. package/dist/cjs/ptc-form-radio-group.cjs.entry.js +0 -56
  156. package/dist/cjs/ptc-form.cjs.entry.js +0 -156
  157. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +0 -22
  158. package/dist/cjs/ptc-hero.cjs.entry.js +0 -32
  159. package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +0 -24
  160. package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +0 -204
  161. package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +0 -72
  162. package/dist/cjs/ptc-icon-card.cjs.entry.js +0 -30
  163. package/dist/cjs/ptc-icon-component.cjs.entry.js +0 -126
  164. package/dist/cjs/ptc-icon-list.cjs.entry.js +0 -34
  165. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +0 -173
  166. package/dist/cjs/ptc-image-download-strip.cjs.entry.js +0 -32
  167. package/dist/cjs/ptc-img.cjs.entry.js +0 -216
  168. package/dist/cjs/ptc-info-tile.cjs.entry.js +0 -50
  169. package/dist/cjs/ptc-inline-cta.cjs.entry.js +0 -138
  170. package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -190
  171. package/dist/cjs/ptc-link.cjs.entry.js +0 -91
  172. package/dist/cjs/ptc-list.cjs.entry.js +0 -60
  173. package/dist/cjs/ptc-media-card.cjs.entry.js +0 -171
  174. package/dist/cjs/ptc-minimized-nav.cjs.entry.js +0 -24
  175. package/dist/cjs/ptc-mobile-select.cjs.entry.js +0 -566
  176. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +0 -187
  177. package/dist/cjs/ptc-nav-card.cjs.entry.js +0 -42
  178. package/dist/cjs/ptc-nav-link.cjs.entry.js +0 -48
  179. package/dist/cjs/ptc-nav-pills.cjs.entry.js +0 -19
  180. package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +0 -70
  181. package/dist/cjs/ptc-nav-slider.cjs.entry.js +0 -115
  182. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +0 -48
  183. package/dist/cjs/ptc-nav-tile.cjs.entry.js +0 -20
  184. package/dist/cjs/ptc-news.cjs.entry.js +0 -31
  185. package/dist/cjs/ptc-office-location-card.cjs.entry.js +0 -65
  186. package/dist/cjs/ptc-office-locations.cjs.entry.js +0 -345
  187. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -34
  188. package/dist/cjs/ptc-para.cjs.entry.js +0 -139
  189. package/dist/cjs/ptc-picture.cjs.entry.js +0 -185
  190. package/dist/cjs/ptc-podcast-card.cjs.entry.js +0 -22
  191. package/dist/cjs/ptc-preferance-center-form.cjs.entry.js +0 -46
  192. package/dist/cjs/ptc-preloader.cjs.entry.js +0 -22
  193. package/dist/cjs/ptc-previous-url.cjs.entry.js +0 -31
  194. package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +0 -29
  195. package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +0 -51
  196. package/dist/cjs/ptc-pricing-block.cjs.entry.js +0 -33
  197. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +0 -532
  198. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +0 -142
  199. package/dist/cjs/ptc-product-card.cjs.entry.js +0 -61
  200. package/dist/cjs/ptc-product-category.cjs.entry.js +0 -20
  201. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -80
  202. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +0 -28
  203. package/dist/cjs/ptc-product-list.cjs.entry.js +0 -172
  204. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +0 -178
  205. package/dist/cjs/ptc-progress-bar.cjs.entry.js +0 -27
  206. package/dist/cjs/ptc-quantity-counter.cjs.entry.js +0 -99
  207. package/dist/cjs/ptc-quote.cjs.entry.js +0 -40
  208. package/dist/cjs/ptc-readmore-char.cjs.entry.js +0 -44
  209. package/dist/cjs/ptc-readmore-new.cjs.entry.js +0 -106
  210. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +0 -127
  211. package/dist/cjs/ptc-readmore.cjs.entry.js +0 -186
  212. package/dist/cjs/ptc-related-card-rail.cjs.entry.js +0 -258
  213. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +0 -65
  214. package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -135
  215. package/dist/cjs/ptc-seo-title.cjs.entry.js +0 -82
  216. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +0 -69
  217. package/dist/cjs/ptc-showcase-card.cjs.entry.js +0 -21
  218. package/dist/cjs/ptc-skeleton.cjs.entry.js +0 -32
  219. package/dist/cjs/ptc-slit-card.cjs.entry.js +0 -40
  220. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +0 -92
  221. package/dist/cjs/ptc-social-icons.cjs.entry.js +0 -33
  222. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  223. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  224. package/dist/cjs/ptc-square-card.cjs.entry.js +0 -25
  225. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +0 -54
  226. package/dist/cjs/ptc-sticky-section.cjs.entry.js +0 -70
  227. package/dist/cjs/ptc-sticky-title.cjs.entry.js +0 -50
  228. package/dist/cjs/ptc-store-card-list.cjs.entry.js +0 -105
  229. package/dist/cjs/ptc-store-card.cjs.entry.js +0 -24
  230. package/dist/cjs/ptc-subnav-card.cjs.entry.js +0 -27
  231. package/dist/cjs/ptc-subnav-v2.cjs.entry.js +0 -595
  232. package/dist/cjs/ptc-subnav.cjs.entry.js +0 -36
  233. package/dist/cjs/ptc-svg-btn.cjs.entry.js +0 -118
  234. package/dist/cjs/ptc-tab-list.cjs.entry.js +0 -274
  235. package/dist/cjs/ptc-tab.cjs.entry.js +0 -31
  236. package/dist/cjs/ptc-tabs.cjs.entry.js +0 -58
  237. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +0 -67
  238. package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +0 -121
  239. package/dist/cjs/ptc-title.cjs.entry.js +0 -161
  240. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +0 -80
  241. package/dist/cjs/ptc-tooltip-v3.cjs.entry.js +0 -119
  242. package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -113
  243. package/dist/cjs/ptc-two-column-media.cjs.entry.js +0 -26
  244. package/dist/cjs/ptc-value-led-card.cjs.entry.js +0 -21
  245. package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +0 -19
  246. package/dist/cjs/ptc-value-led-content.cjs.entry.js +0 -20
  247. package/dist/cjs/ptc-value-led-intro.cjs.entry.js +0 -20
  248. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +0 -284
  249. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +0 -35
  250. package/dist/cjs/ptc-value-prop-card.cjs.entry.js +0 -24
  251. package/dist/cjs/ptc-video-embed.cjs.entry.js +0 -84
  252. package/dist/cjs/ptc-white-paper.cjs.entry.js +0 -151
  253. package/dist/cjs/ptcw-design.cjs.js +0 -25
  254. package/dist/cjs/scrollbar-18e63a0e.js +0 -352
  255. package/dist/cjs/sequential-bundle-example.cjs.entry.js +0 -119
  256. package/dist/cjs/sequential-bundle.cjs.entry.js +0 -99
  257. package/dist/cjs/show-map-icon-c1cca913.js +0 -10
  258. package/dist/cjs/storefront-enhanced-product-list-alt-example.cjs.entry.js +0 -66
  259. package/dist/cjs/storefront-enhanced-product-list-example.cjs.entry.js +0 -66
  260. package/dist/cjs/tab-content.cjs.entry.js +0 -50
  261. package/dist/cjs/tab-header.cjs.entry.js +0 -82
  262. package/dist/cjs/utils-0ff09a53.js +0 -300
  263. package/dist/cjs/validation-messages-f1d373e7.js +0 -172
  264. package/dist/cjs/x-d5052f9b.js +0 -22
  265. package/dist/collection/components/buying-option-card/buying-option-card.css +0 -153
  266. package/dist/collection/components/buying-option-card/buying-option-card.js +0 -227
  267. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.css +0 -1171
  268. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.js +0 -170
  269. package/dist/collection/components/dropdown-item/dropdown-item.css +0 -94
  270. package/dist/collection/components/dropdown-item/dropdown-item.js +0 -61
  271. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.css +0 -115
  272. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +0 -116
  273. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.css +0 -206
  274. package/dist/collection/components/homepage-clickable-tab/homepage-clickable-tab.js +0 -173
  275. package/dist/collection/components/icon-asset/icon-asset.css +0 -186
  276. package/dist/collection/components/icon-asset/icon-asset.js +0 -264
  277. package/dist/collection/components/icon-asset/media/brands.svg +0 -1381
  278. package/dist/collection/components/icon-asset/media/designer-v6.0.7.svg +0 -765
  279. package/dist/collection/components/icon-asset/media/regular.svg +0 -463
  280. package/dist/collection/components/icon-asset/media/solid.svg +0 -3016
  281. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +0 -5
  282. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +0 -383
  283. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +0 -124
  284. package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.css +0 -232
  285. package/dist/collection/components/jumbotron-sub-menu/jumbotron-sub-menu.js +0 -65
  286. package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.css +0 -154
  287. package/dist/collection/components/jumbotron-sub-mune/jumbotron-sub-mune.js +0 -83
  288. package/dist/collection/components/list-item/list-item.css +0 -232
  289. package/dist/collection/components/list-item/list-item.js +0 -216
  290. package/dist/collection/components/max-width-container/max-width-container.css +0 -12
  291. package/dist/collection/components/max-width-container/max-width-container.js +0 -146
  292. package/dist/collection/components/my-component/my-component.js +0 -82
  293. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.css +0 -69
  294. package/dist/collection/components/organism-bundles/author-listing-example/author-listing-example.js +0 -284
  295. package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.css +0 -250
  296. package/dist/collection/components/organism-bundles/blog-detail-content/blog-detail-content.js +0 -252
  297. package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.css +0 -106
  298. package/dist/collection/components/organism-bundles/blog-detail-layout/blog-detail-layout.js +0 -74
  299. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.css +0 -104
  300. package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +0 -315
  301. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +0 -26
  302. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +0 -78
  303. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +0 -411
  304. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.js +0 -130
  305. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +0 -3
  306. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +0 -104
  307. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +0 -312
  308. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +0 -285
  309. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +0 -1168
  310. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +0 -63
  311. package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.css +0 -1203
  312. package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.js +0 -57
  313. package/dist/collection/components/organism-bundles/form/academic-form/academic-form-test.css +0 -90
  314. package/dist/collection/components/organism-bundles/form/academic-form/academic-form-test.js +0 -87
  315. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.css +0 -110
  316. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +0 -111
  317. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.css +0 -89
  318. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +0 -70
  319. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
  320. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -114
  321. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.css +0 -14
  322. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +0 -161
  323. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +0 -847
  324. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.js +0 -269
  325. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.css +0 -393
  326. package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +0 -164
  327. package/dist/collection/components/organism-bundles/most-popular-news/most-popular-news.css +0 -118
  328. package/dist/collection/components/organism-bundles/most-popular-news/most-popular-news.js +0 -50
  329. package/dist/collection/components/organism-bundles/news-search-result/news-search-result.css +0 -88
  330. package/dist/collection/components/organism-bundles/news-search-result/news-search-result.js +0 -40
  331. package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.css +0 -1142
  332. package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.js +0 -67
  333. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.css +0 -82
  334. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +0 -115
  335. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +0 -786
  336. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +0 -165
  337. package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-alt-example.js +0 -63
  338. package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.css +0 -1151
  339. package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.js +0 -63
  340. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.css +0 -173
  341. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +0 -367
  342. package/dist/collection/components/ptc-accordion/ptc-accordion.css +0 -118
  343. package/dist/collection/components/ptc-accordion/ptc-accordion.js +0 -194
  344. package/dist/collection/components/ptc-announcement/ptc-announcement.css +0 -328
  345. package/dist/collection/components/ptc-announcement/ptc-announcement.js +0 -288
  346. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.css +0 -103
  347. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +0 -137
  348. package/dist/collection/components/ptc-background-video/ptc-background-video.css +0 -262
  349. package/dist/collection/components/ptc-background-video/ptc-background-video.js +0 -411
  350. package/dist/collection/components/ptc-badge/ptc-badge.css +0 -87
  351. package/dist/collection/components/ptc-badge/ptc-badge.js +0 -87
  352. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +0 -574
  353. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +0 -174
  354. package/dist/collection/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.css +0 -95
  355. package/dist/collection/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.js +0 -46
  356. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +0 -203
  357. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +0 -173
  358. package/dist/collection/components/ptc-brightcov-video/ptc-brightcov-video.css +0 -78
  359. package/dist/collection/components/ptc-brightcov-video/ptc-brightcov-video.js +0 -46
  360. package/dist/collection/components/ptc-button/ptc-button.css +0 -717
  361. package/dist/collection/components/ptc-button/ptc-button.js +0 -530
  362. package/dist/collection/components/ptc-card/ptc-card.css +0 -1580
  363. package/dist/collection/components/ptc-card/ptc-card.js +0 -632
  364. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +0 -175
  365. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +0 -184
  366. package/dist/collection/components/ptc-card-content/ptc-card-content.css +0 -448
  367. package/dist/collection/components/ptc-card-content/ptc-card-content.js +0 -254
  368. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +0 -292
  369. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +0 -367
  370. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +0 -1169
  371. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.js +0 -246
  372. package/dist/collection/components/ptc-checkbox/ptc-checkbox.css +0 -144
  373. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +0 -201
  374. package/dist/collection/components/ptc-checkbox-group/ptc-checkbox-group.css +0 -121
  375. package/dist/collection/components/ptc-checkbox-group/ptc-checkbox-group.js +0 -90
  376. package/dist/collection/components/ptc-close-icon/ptc-close-icon.css +0 -97
  377. package/dist/collection/components/ptc-close-icon/ptc-close-icon.js +0 -18
  378. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.css +0 -336
  379. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +0 -791
  380. package/dist/collection/components/ptc-container/ptc-container.css +0 -122
  381. package/dist/collection/components/ptc-container/ptc-container.js +0 -138
  382. package/dist/collection/components/ptc-countdown/ptc-countdown.css +0 -180
  383. package/dist/collection/components/ptc-countdown/ptc-countdown.js +0 -344
  384. package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.css +0 -114
  385. package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +0 -459
  386. package/dist/collection/components/ptc-data-lookup/test/__mocks__/@material__select__component.js +0 -5
  387. package/dist/collection/components/ptc-date/ptc-date.css +0 -87
  388. package/dist/collection/components/ptc-date/ptc-date.js +0 -224
  389. package/dist/collection/components/ptc-dropdown/ptc-dropdown.css +0 -176
  390. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +0 -183
  391. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +0 -16
  392. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +0 -207
  393. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +0 -343
  394. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +0 -249
  395. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +0 -311
  396. package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.css +0 -298
  397. package/dist/collection/components/ptc-embedded-quiz/ptc-embedded-quiz.js +0 -398
  398. package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.css +0 -158
  399. package/dist/collection/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.js +0 -154
  400. package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.css +0 -59
  401. package/dist/collection/components/ptc-featured-list/fl-tab-content/fl-tab-content.js +0 -80
  402. package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.css +0 -89
  403. package/dist/collection/components/ptc-featured-list/fl-tab-header/fl-tab-header.js +0 -213
  404. package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.css +0 -83
  405. package/dist/collection/components/ptc-featured-list/fl-tab-image/fl-tab-image.js +0 -61
  406. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +0 -407
  407. package/dist/collection/components/ptc-featured-list/ptc-featured-list.js +0 -70
  408. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +0 -229
  409. package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +0 -252
  410. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +0 -646
  411. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +0 -258
  412. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.css +0 -160
  413. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +0 -160
  414. package/dist/collection/components/ptc-footer/ptc-footer-v2.css +0 -435
  415. package/dist/collection/components/ptc-footer/ptc-footer.js +0 -105
  416. package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +0 -1207
  417. package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.js +0 -331
  418. package/dist/collection/components/ptc-form-radio-button/ptc-form-radio-button.css +0 -114
  419. package/dist/collection/components/ptc-form-radio-button/ptc-form-radio-button.js +0 -139
  420. package/dist/collection/components/ptc-form-radio-group/ptc-form-radio-group.css +0 -63
  421. package/dist/collection/components/ptc-form-radio-group/ptc-form-radio-group.js +0 -101
  422. package/dist/collection/components/ptc-hero/ptc-hero.css +0 -97
  423. package/dist/collection/components/ptc-hero/ptc-hero.js +0 -89
  424. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.css +0 -138
  425. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +0 -78
  426. package/dist/collection/components/ptc-homepage-image-feature/ptc-homepage-image-feature.css +0 -140
  427. package/dist/collection/components/ptc-homepage-image-feature/ptc-homepage-image-feature.js +0 -23
  428. package/dist/collection/components/ptc-homepage-video-background/ptc-homepage-video-background.css +0 -465
  429. package/dist/collection/components/ptc-homepage-video-background/ptc-homepage-video-background.js +0 -355
  430. package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +0 -141
  431. package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +0 -104
  432. package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +0 -932
  433. package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +0 -139
  434. package/dist/collection/components/ptc-icon-component/test/__mocks__/swiper.js +0 -17
  435. package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +0 -184
  436. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +0 -164
  437. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +0 -140
  438. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +0 -308
  439. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.css +0 -113
  440. package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.js +0 -71
  441. package/dist/collection/components/ptc-img/ptc-img.css +0 -207
  442. package/dist/collection/components/ptc-img/ptc-img.js +0 -439
  443. package/dist/collection/components/ptc-info-tile/ptc-info-tile.css +0 -229
  444. package/dist/collection/components/ptc-info-tile/ptc-info-tile.js +0 -176
  445. package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.css +0 -348
  446. package/dist/collection/components/ptc-inline-cta/ptc-inline-cta.js +0 -239
  447. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +0 -1839
  448. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +0 -704
  449. package/dist/collection/components/ptc-link/ptc-link.css +0 -508
  450. package/dist/collection/components/ptc-link/ptc-link.js +0 -342
  451. package/dist/collection/components/ptc-list/ptc-list.css +0 -88
  452. package/dist/collection/components/ptc-list/ptc-list.js +0 -99
  453. package/dist/collection/components/ptc-media-card/ptc-media-card.css +0 -250
  454. package/dist/collection/components/ptc-media-card/ptc-media-card.js +0 -431
  455. package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.css +0 -188
  456. package/dist/collection/components/ptc-minimized-nav/ptc-minimized-nav.js +0 -118
  457. package/dist/collection/components/ptc-mobile-select/mobile-select/dist/mobile-select.es.js +0 -441
  458. package/dist/collection/components/ptc-mobile-select/mobile-select/dist/mobile-select.iife.js +0 -661
  459. package/dist/collection/components/ptc-mobile-select/mobile-select/dist/mobile-select.iife.min.js +0 -7
  460. package/dist/collection/components/ptc-mobile-select/mobile-select/dist/mobile-select.umd.js +0 -22
  461. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +0 -287
  462. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +0 -288
  463. package/dist/collection/components/ptc-modal/ptc-modal.css +0 -510
  464. package/dist/collection/components/ptc-modal/ptc-modal.js +0 -875
  465. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.css +0 -218
  466. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.js +0 -272
  467. package/dist/collection/components/ptc-multi-select/ptc-multi-select.css +0 -301
  468. package/dist/collection/components/ptc-multi-select/ptc-multi-select.js +0 -526
  469. package/dist/collection/components/ptc-nav-card/ptc-nav-card.css +0 -317
  470. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +0 -237
  471. package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.css +0 -85
  472. package/dist/collection/components/ptc-nav-pills/ptc-nav-pills.js +0 -18
  473. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +0 -93
  474. package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +0 -162
  475. package/dist/collection/components/ptc-nav-tile/ptc-nav-tile.css +0 -87
  476. package/dist/collection/components/ptc-nav-tile/ptc-nav-tile.js +0 -40
  477. package/dist/collection/components/ptc-news/ptc-news.css +0 -95
  478. package/dist/collection/components/ptc-news/ptc-news.js +0 -104
  479. package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.css +0 -125
  480. package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.js +0 -189
  481. package/dist/collection/components/ptc-office-locations/ptc-office-locations.css +0 -414
  482. package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +0 -482
  483. package/dist/collection/components/ptc-overlay/ptc-overlay.css +0 -210
  484. package/dist/collection/components/ptc-overlay/ptc-overlay.js +0 -131
  485. package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +0 -292
  486. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +0 -627
  487. package/dist/collection/components/ptc-para/ptc-para.css +0 -327
  488. package/dist/collection/components/ptc-para/ptc-para.js +0 -502
  489. package/dist/collection/components/ptc-picture/ptc-picture.css +0 -160
  490. package/dist/collection/components/ptc-picture/ptc-picture.js +0 -545
  491. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +0 -5838
  492. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.js +0 -78
  493. package/dist/collection/components/ptc-preferance-center-form/ptc-preferance-center-form.css +0 -81
  494. package/dist/collection/components/ptc-preferance-center-form/ptc-preferance-center-form.js +0 -45
  495. package/dist/collection/components/ptc-preloader/ptc-preloader.css +0 -147
  496. package/dist/collection/components/ptc-preloader/ptc-preloader.js +0 -62
  497. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +0 -3758
  498. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +0 -238
  499. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -105
  500. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +0 -105
  501. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.css +0 -75
  502. package/dist/collection/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +0 -158
  503. package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.css +0 -63
  504. package/dist/collection/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +0 -113
  505. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.css +0 -124
  506. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +0 -89
  507. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.css +0 -384
  508. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +0 -721
  509. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +0 -1217
  510. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +0 -279
  511. package/dist/collection/components/ptc-product-card/ptc-product-card.css +0 -393
  512. package/dist/collection/components/ptc-product-card/ptc-product-card.js +0 -182
  513. package/dist/collection/components/ptc-product-category/ptc-product-category.css +0 -430
  514. package/dist/collection/components/ptc-product-category/ptc-product-category.js +0 -42
  515. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +0 -145
  516. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +0 -185
  517. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +0 -310
  518. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +0 -172
  519. package/dist/collection/components/ptc-product-list/ptc-product-list.css +0 -83
  520. package/dist/collection/components/ptc-product-list/ptc-product-list.js +0 -272
  521. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +0 -227
  522. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +0 -399
  523. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.css +0 -73
  524. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +0 -42
  525. package/dist/collection/components/ptc-quantity-counter/ptc-quantity-counter.css +0 -160
  526. package/dist/collection/components/ptc-quantity-counter/ptc-quantity-counter.js +0 -180
  527. package/dist/collection/components/ptc-quote/ptc-quote.css +0 -273
  528. package/dist/collection/components/ptc-quote/ptc-quote.js +0 -165
  529. package/dist/collection/components/ptc-readmore/ptc-readmore.css +0 -199
  530. package/dist/collection/components/ptc-readmore/ptc-readmore.js +0 -454
  531. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +0 -318
  532. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.js +0 -173
  533. package/dist/collection/components/ptc-readmore-new/ptc-readmore-new.css +0 -78
  534. package/dist/collection/components/ptc-readmore-new/ptc-readmore-new.js +0 -229
  535. package/dist/collection/components/ptc-readmore-v2/ptc-readmore-v2.css +0 -78
  536. package/dist/collection/components/ptc-readmore-v2/ptc-readmore-v2.js +0 -170
  537. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +0 -315
  538. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.js +0 -285
  539. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.css +0 -211
  540. package/dist/collection/components/ptc-related-card-rail/ptc-related-card-rail.js +0 -328
  541. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +0 -3
  542. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +0 -65
  543. package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.css +0 -98
  544. package/dist/collection/components/ptc-scroll-button/ptc-scroll-button.js +0 -288
  545. package/dist/collection/components/ptc-search-field/ptc-search-field.css +0 -270
  546. package/dist/collection/components/ptc-search-field/ptc-search-field.js +0 -276
  547. package/dist/collection/components/ptc-select/ptc-select.css +0 -6251
  548. package/dist/collection/components/ptc-select/ptc-select.js +0 -647
  549. package/dist/collection/components/ptc-seo-title/ptc-seo-title.css +0 -677
  550. package/dist/collection/components/ptc-seo-title/ptc-seo-title.js +0 -314
  551. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.css +0 -129
  552. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +0 -119
  553. package/dist/collection/components/ptc-showcase-card/ptc-showcase-card.css +0 -94
  554. package/dist/collection/components/ptc-showcase-card/ptc-showcase-card.js +0 -60
  555. package/dist/collection/components/ptc-skeleton/ptc-skeleton.css +0 -100
  556. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +0 -144
  557. package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +0 -148
  558. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +0 -185
  559. package/dist/collection/components/ptc-social-icons/ptc-social-icons.css +0 -82
  560. package/dist/collection/components/ptc-social-icons/ptc-social-icons.js +0 -140
  561. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +0 -132
  562. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +0 -539
  563. package/dist/collection/components/ptc-social-share/ptc-social-share.css +0 -98
  564. package/dist/collection/components/ptc-social-share/ptc-social-share.js +0 -328
  565. package/dist/collection/components/ptc-spacer/ptc-spacer.css +0 -333
  566. package/dist/collection/components/ptc-spacer/ptc-spacer.js +0 -97
  567. package/dist/collection/components/ptc-span/ptc-span.css +0 -186
  568. package/dist/collection/components/ptc-span/ptc-span.js +0 -107
  569. package/dist/collection/components/ptc-square-card/ptc-square-card.css +0 -128
  570. package/dist/collection/components/ptc-square-card/ptc-square-card.js +0 -64
  571. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.css +0 -92
  572. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +0 -62
  573. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.css +0 -70
  574. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +0 -108
  575. package/dist/collection/components/ptc-sticky-title/media/logo.png +0 -0
  576. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.css +0 -183
  577. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +0 -105
  578. package/dist/collection/components/ptc-store-card/ptc-store-card.css +0 -100
  579. package/dist/collection/components/ptc-store-card/ptc-store-card.js +0 -25
  580. package/dist/collection/components/ptc-store-card-list/ptc-store-card-list.css +0 -1246
  581. package/dist/collection/components/ptc-store-card-list/ptc-store-card-list.js +0 -103
  582. package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.css +0 -411
  583. package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +0 -647
  584. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +0 -178
  585. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +0 -111
  586. package/dist/collection/components/ptc-tab-list/ptc-tab-list.css +0 -209
  587. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +0 -373
  588. package/dist/collection/components/ptc-tabs/ptc-tab.js +0 -121
  589. package/dist/collection/components/ptc-tabs/ptc-tabs.css +0 -126
  590. package/dist/collection/components/ptc-tabs/ptc-tabs.js +0 -104
  591. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.css +0 -363
  592. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +0 -230
  593. package/dist/collection/components/ptc-textfield/ptc-textfield.css +0 -3892
  594. package/dist/collection/components/ptc-textfield/ptc-textfield.js +0 -744
  595. package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +0 -136
  596. package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +0 -181
  597. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +0 -5792
  598. package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +0 -181
  599. package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.css +0 -72
  600. package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +0 -170
  601. package/dist/collection/components/ptc-title/ptc-title.css +0 -659
  602. package/dist/collection/components/ptc-title/ptc-title.js +0 -558
  603. package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +0 -283
  604. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +0 -367
  605. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +0 -388
  606. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.js +0 -243
  607. package/dist/collection/components/ptc-tooltip-v3/ptc-tooltip-v3.css +0 -193
  608. package/dist/collection/components/ptc-tooltip-v3/ptc-tooltip-v3.js +0 -307
  609. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.css +0 -69
  610. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +0 -48
  611. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.css +0 -97
  612. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.js +0 -60
  613. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.css +0 -79
  614. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.js +0 -42
  615. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.css +0 -91
  616. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.js +0 -18
  617. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.css +0 -82
  618. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.js +0 -42
  619. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.css +0 -468
  620. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +0 -385
  621. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +0 -376
  622. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +0 -100
  623. package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.css +0 -141
  624. package/dist/collection/components/ptc-value-prop-card/ptc-value-prop-card.js +0 -117
  625. package/dist/collection/components/ptc-video-embed/ptc-video-embed.css +0 -118
  626. package/dist/collection/components/ptc-video-embed/ptc-video-embed.js +0 -158
  627. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +0 -6241
  628. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +0 -261
  629. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.css +0 -172
  630. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +0 -149
  631. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.css +0 -149
  632. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +0 -181
  633. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +0 -267
  634. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +0 -172
  635. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.css +0 -144
  636. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +0 -79
  637. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.css +0 -85
  638. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +0 -151
  639. package/dist/collection/components/tab-content/tab-content.css +0 -91
  640. package/dist/collection/components/tab-content/tab-content.js +0 -96
  641. package/dist/collection/components/tab-header/tab-header.css +0 -123
  642. package/dist/collection/components/tab-header/tab-header.js +0 -189
  643. package/dist/collection/media/svg-imgs/Back-arrow.svg +0 -11
  644. package/dist/collection/media/svg-imgs/NumberOneGreenBadge.svg +0 -4
  645. package/dist/collection/media/svg-imgs/NumberThreeGreenBadge.svg +0 -4
  646. package/dist/collection/media/svg-imgs/NumberTwoGreenBadge.svg +0 -4
  647. package/dist/collection/media/svg-imgs/close.svg +0 -11
  648. package/dist/collection/media/svg-imgs/collapse.svg +0 -8
  649. package/dist/collection/media/svg-imgs/email.svg +0 -4
  650. package/dist/collection/media/svg-imgs/expand.svg +0 -8
  651. package/dist/collection/media/svg-imgs/facebook.svg +0 -3
  652. package/dist/collection/media/svg-imgs/filter.svg +0 -12
  653. package/dist/collection/media/svg-imgs/hide-map-icon.svg +0 -6
  654. package/dist/collection/media/svg-imgs/icon-info-green.svg +0 -16
  655. package/dist/collection/media/svg-imgs/icon-info.svg +0 -16
  656. package/dist/collection/media/svg-imgs/instagram.svg +0 -3
  657. package/dist/collection/media/svg-imgs/linkedin.svg +0 -5
  658. package/dist/collection/media/svg-imgs/nav-active-dotslick.svg +0 -16
  659. package/dist/collection/media/svg-imgs/phone.svg +0 -4
  660. package/dist/collection/media/svg-imgs/play-button-dark.svg +0 -20
  661. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +0 -3
  662. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +0 -3
  663. package/dist/collection/media/svg-imgs/quotation-mark.svg +0 -1
  664. package/dist/collection/media/svg-imgs/show-all.svg +0 -14
  665. package/dist/collection/media/svg-imgs/show-map-icon.svg +0 -5
  666. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +0 -18
  667. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +0 -18
  668. package/dist/collection/media/svg-imgs/union.svg +0 -3
  669. package/dist/collection/media/svg-imgs/wechat.svg +0 -3
  670. package/dist/collection/media/svg-imgs/weibo.svg +0 -3
  671. package/dist/collection/media/svg-imgs/x.svg +0 -3
  672. package/dist/collection/media/svg-imgs/yk.svg +0 -3
  673. package/dist/collection/media/svg-imgs/youtube.svg +0 -3
  674. package/dist/collection/stories/Accordian.stories.js +0 -220
  675. package/dist/collection/stories/Announcement.stories.js +0 -86
  676. package/dist/collection/stories/BackgroundImage.stories.js +0 -53
  677. package/dist/collection/stories/BluePillAnnouncementBar.stories.js +0 -20
  678. package/dist/collection/stories/Breadcrumb.stories.js +0 -64
  679. package/dist/collection/stories/Card.stories.js +0 -89
  680. package/dist/collection/stories/CardWrapper.stories.js +0 -238
  681. package/dist/collection/stories/Countdown.stories.js +0 -71
  682. package/dist/collection/stories/Date.stories.js +0 -60
  683. package/dist/collection/stories/Dropdown.stories.js +0 -44
  684. package/dist/collection/stories/DynamicCard.stories.js +0 -69
  685. package/dist/collection/stories/FilterTag.stories.js +0 -73
  686. package/dist/collection/stories/FormCheckbox.stories.js +0 -58
  687. package/dist/collection/stories/FormRadioButton.stories.js +0 -37
  688. package/dist/collection/stories/Icon.stories.js +0 -48
  689. package/dist/collection/stories/IconList.stories.js +0 -114
  690. package/dist/collection/stories/IconMinimize.stories.js +0 -41
  691. package/dist/collection/stories/InlineCta.stories.js +0 -111
  692. package/dist/collection/stories/Jumbotron.stories.js +0 -691
  693. package/dist/collection/stories/Link.stories.js +0 -119
  694. package/dist/collection/stories/ListItem.stories.js +0 -28
  695. package/dist/collection/stories/MaxWidthContainer.stories.js +0 -46
  696. package/dist/collection/stories/MobileSelect.stories.js +0 -70
  697. package/dist/collection/stories/Modal.stories.js +0 -106
  698. package/dist/collection/stories/Overlay.stories.js +0 -44
  699. package/dist/collection/stories/Pagination.stories.js +0 -102
  700. package/dist/collection/stories/Picture.stories.js +0 -140
  701. package/dist/collection/stories/PreviousUrl.stories.js +0 -80
  702. package/dist/collection/stories/Quote.stories.js +0 -107
  703. package/dist/collection/stories/ResponsiveWrapper.stories.js +0 -21
  704. package/dist/collection/stories/Select.stories.js +0 -39
  705. package/dist/collection/stories/Spacer.stories.js +0 -49
  706. package/dist/collection/stories/Span.stories.js +0 -45
  707. package/dist/collection/stories/SvgButton.stories.js +0 -34
  708. package/dist/collection/stories/Tabs.stories.js +0 -214
  709. package/dist/collection/stories/Textfield.stories.js +0 -111
  710. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  711. package/dist/collection/stories/assets/colors.svg +0 -1
  712. package/dist/collection/stories/assets/comments.svg +0 -1
  713. package/dist/collection/stories/assets/direction.svg +0 -1
  714. package/dist/collection/stories/assets/flow.svg +0 -1
  715. package/dist/collection/stories/assets/plugin.svg +0 -1
  716. package/dist/collection/stories/assets/repo.svg +0 -1
  717. package/dist/collection/stories/assets/stackalt.svg +0 -1
  718. package/dist/collection/stories/design-tokens/color/Color.stories.js +0 -96
  719. package/dist/collection/stories/design-tokens/color/Temp.stories.js +0 -98
  720. package/dist/collection/stories/design-tokens/containers/About.stories.js +0 -19
  721. package/dist/collection/stories/design-tokens/elevations/About.stories.js +0 -68
  722. package/dist/collection/stories/design-tokens/grid/About.stories.js +0 -22
  723. package/dist/collection/stories/design-tokens/motion/About.stories.js +0 -13
  724. package/dist/collection/stories/design-tokens/shape/About.stories.js +0 -69
  725. package/dist/collection/stories/design-tokens/space/About.stories.js +0 -128
  726. package/dist/collection/stories/design-tokens/typography/About.stories.js +0 -20
  727. package/dist/collection/stories/organisms/eSupport/AlertsPage/preview.stories.js +0 -57
  728. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
  729. package/dist/collection/stories/organisms/eSupport/CustomerSupportGuide/preview.stories.js +0 -117
  730. package/dist/collection/stories/organisms/eSupport/HelpCenter/preview.stories.js +0 -81
  731. package/dist/collection/stories/organisms/eSupport/OnDemandSystemScan/preview.stories.js +0 -27
  732. package/dist/collection/stories/organisms/eSupport/ProductHomePage/preview.stories.js +0 -32
  733. package/dist/collection/stories/organisms/eSupport/PublishingTroubleshooter/preview.stories.js +0 -44
  734. package/dist/collection/stories/organisms/eSupport/SuccessPaths/Cards/preview.stories.js +0 -122
  735. package/dist/collection/stories/organisms/eSupport/SuccessPaths/CloudEngagement/preview.stories.js +0 -59
  736. package/dist/collection/stories/organisms/eSupport/SuccessPaths/DetailsPage/preview.stories.js +0 -235
  737. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
  738. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
  739. package/dist/collection/stories/organisms/ptc/Academic Form/preview.stories.js +0 -22
  740. package/dist/collection/stories/organisms/ptc/All Products/preview.stories.js +0 -1616
  741. package/dist/collection/stories/organisms/ptc/Announcement/preview.stories.js +0 -58
  742. package/dist/collection/stories/organisms/ptc/Background Video/preview.stories.js +0 -58
  743. package/dist/collection/stories/organisms/ptc/Blog Author Listing/preview.stories.js +0 -32
  744. package/dist/collection/stories/organisms/ptc/Blog Content/preview.stories.js +0 -317
  745. package/dist/collection/stories/organisms/ptc/Blog Detail/preview.stories.js +0 -500
  746. package/dist/collection/stories/organisms/ptc/Blogs Listing Page/preview.stories.js +0 -368
  747. package/dist/collection/stories/organisms/ptc/Bureau New Dynamic/preview.stories.js +0 -54
  748. package/dist/collection/stories/organisms/ptc/Buying Options Cards Slider/preview.stories.js +0 -187
  749. package/dist/collection/stories/organisms/ptc/Case Studies/preview.stories.js +0 -243
  750. package/dist/collection/stories/organisms/ptc/Case Studies Detail Page/preview.stories.js +0 -456
  751. package/dist/collection/stories/organisms/ptc/Case Studies Slider/preview.stories.js +0 -384
  752. package/dist/collection/stories/organisms/ptc/Case Studies Slider New/preview.stories.js +0 -171
  753. package/dist/collection/stories/organisms/ptc/Clq Modal Quiz/preview.stories.js +0 -100
  754. package/dist/collection/stories/organisms/ptc/Contact Free Trial Form/preview.stories.js +0 -22
  755. package/dist/collection/stories/organisms/ptc/Countdown Example/preview.stories.js +0 -29
  756. package/dist/collection/stories/organisms/ptc/E Store Build Listing/preview.stories.js +0 -543
  757. package/dist/collection/stories/organisms/ptc/E Store Build Product/preview.stories.js +0 -438
  758. package/dist/collection/stories/organisms/ptc/E Store Creo Extension/preview.stories.js +0 -798
  759. package/dist/collection/stories/organisms/ptc/Eloqua Library Contact Info/preview.stories.js +0 -168
  760. package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor PCenter/preview.stories.js +0 -60
  761. package/dist/collection/stories/organisms/ptc/Eloqua Library Visitor Recipient Id/preview.stories.js +0 -59
  762. package/dist/collection/stories/organisms/ptc/Embedded Form/preview.stories.js +0 -23
  763. package/dist/collection/stories/organisms/ptc/Embedded Form Floating/preview.stories.js +0 -165
  764. package/dist/collection/stories/organisms/ptc/Event Detail/preview.stories.js +0 -16
  765. package/dist/collection/stories/organisms/ptc/Event Jumbotron/preview.stories.js +0 -470
  766. package/dist/collection/stories/organisms/ptc/Event Podcast Slider/preview.stories.js +0 -142
  767. package/dist/collection/stories/organisms/ptc/Events Listing Cards/preview.stories.js +0 -169
  768. package/dist/collection/stories/organisms/ptc/Events Listing Cards Horizontal/preview.stories.js +0 -169
  769. package/dist/collection/stories/organisms/ptc/Featured Events Slider/preview.stories.js +0 -165
  770. package/dist/collection/stories/organisms/ptc/Featured List/preview.stories.js +0 -16
  771. package/dist/collection/stories/organisms/ptc/Filter Level Theater/preview.stories.js +0 -18
  772. package/dist/collection/stories/organisms/ptc/Five Card Value Prop/preview.stories.js +0 -64
  773. package/dist/collection/stories/organisms/ptc/Footer Form/preview.stories.js +0 -18
  774. package/dist/collection/stories/organisms/ptc/Footer V2/preview.stories.js +0 -138
  775. package/dist/collection/stories/organisms/ptc/Footer V2 Cn/preview.stories.js +0 -146
  776. package/dist/collection/stories/organisms/ptc/Form Radio Button/preview.stories.js +0 -42
  777. package/dist/collection/stories/organisms/ptc/Framed Video 16 9/preview.stories.js +0 -31
  778. package/dist/collection/stories/organisms/ptc/Homepage Image Feature/preview.stories.js +0 -41
  779. package/dist/collection/stories/organisms/ptc/Homepage Jumbotron/preview.stories.js +0 -166
  780. package/dist/collection/stories/organisms/ptc/Homepage Toggled Content/preview.stories.js +0 -227
  781. package/dist/collection/stories/organisms/ptc/Hub Of Hubs/preview.stories.js +0 -417
  782. package/dist/collection/stories/organisms/ptc/Intro/preview.stories.js +0 -41
  783. package/dist/collection/stories/organisms/ptc/Jumbotron/preview.stories.js +0 -431
  784. package/dist/collection/stories/organisms/ptc/Jumbotron With Logos/preview.stories.js +0 -431
  785. package/dist/collection/stories/organisms/ptc/Large Bulleted List/preview.stories.js +0 -224
  786. package/dist/collection/stories/organisms/ptc/Large Bulleted List V2/preview.stories.js +0 -326
  787. package/dist/collection/stories/organisms/ptc/Listing Filter/preview.stories.js +0 -256
  788. package/dist/collection/stories/organisms/ptc/Main Nav Product Solutions Tab/preview.stories.js +0 -200
  789. package/dist/collection/stories/organisms/ptc/Mathcad Start Page/preview.stories.js +0 -100
  790. package/dist/collection/stories/organisms/ptc/Media Kit Speed Bump/preview.stories.js +0 -39
  791. package/dist/collection/stories/organisms/ptc/Most Popular News/preview.stories.js +0 -28
  792. package/dist/collection/stories/organisms/ptc/Mvc Form/preview.stories.js +0 -22
  793. package/dist/collection/stories/organisms/ptc/New Buttons/preview.stories.js +0 -125
  794. package/dist/collection/stories/organisms/ptc/Partners Detail/preview.stories.js +0 -151
  795. package/dist/collection/stories/organisms/ptc/Partners Listing/preview.stories.js +0 -394
  796. package/dist/collection/stories/organisms/ptc/Pdf Portal/preview.stories.js +0 -140
  797. package/dist/collection/stories/organisms/ptc/Plm On Demand 1/preview.stories.js +0 -205
  798. package/dist/collection/stories/organisms/ptc/Plm On Demand 2/preview.stories.js +0 -180
  799. package/dist/collection/stories/organisms/ptc/Podcast List/preview.stories.js +0 -175
  800. package/dist/collection/stories/organisms/ptc/Preference Center/preview.stories.js +0 -235
  801. package/dist/collection/stories/organisms/ptc/Preference Center Exit Page/preview.stories.js +0 -85
  802. package/dist/collection/stories/organisms/ptc/Preference Center Update Email/preview.stories.js +0 -54
  803. package/dist/collection/stories/organisms/ptc/Preference Center Update Personal Info/preview.stories.js +0 -59
  804. package/dist/collection/stories/organisms/ptc/Pricing Packaging Table/preview.stories.js +0 -399
  805. package/dist/collection/stories/organisms/ptc/Pricing Packaging Table Subnav/preview.stories.js +0 -179
  806. package/dist/collection/stories/organisms/ptc/Ptc 3 Card Value Prop/preview.stories.js +0 -46
  807. package/dist/collection/stories/organisms/ptc/Ptc Bio Cards/preview.stories.js +0 -741
  808. package/dist/collection/stories/organisms/ptc/Ptc Creo Start Page/preview.stories.js +0 -111
  809. package/dist/collection/stories/organisms/ptc/Ptc Editorial/preview.stories.js +0 -84
  810. package/dist/collection/stories/organisms/ptc/Ptc Form/preview.stories.js +0 -18
  811. package/dist/collection/stories/organisms/ptc/Ptc Icon Card Slider/preview.stories.js +0 -121
  812. package/dist/collection/stories/organisms/ptc/Ptc Icon Component/preview.stories.js +0 -185
  813. package/dist/collection/stories/organisms/ptc/Ptc Icon Sprites/preview.stories.js +0 -150
  814. package/dist/collection/stories/organisms/ptc/Ptc Innovator Toggle/preview.stories.js +0 -421
  815. package/dist/collection/stories/organisms/ptc/Ptc Media Cards/preview.stories.js +0 -133
  816. package/dist/collection/stories/organisms/ptc/Ptc News Detail/preview.stories.js +0 -142
  817. package/dist/collection/stories/organisms/ptc/Ptc News Detail Alternate/preview.stories.js +0 -140
  818. package/dist/collection/stories/organisms/ptc/Ptc Offices/preview.stories.js +0 -405
  819. package/dist/collection/stories/organisms/ptc/Ptc Readmore V3/preview.stories.js +0 -71
  820. package/dist/collection/stories/organisms/ptc/Ptc Showcase Card/preview.stories.js +0 -177
  821. package/dist/collection/stories/organisms/ptc/Ptc Sticky Share Icons/preview.stories.js +0 -184
  822. package/dist/collection/stories/organisms/ptc/Ptc Subnav V1/preview.stories.js +0 -149
  823. package/dist/collection/stories/organisms/ptc/Ptc Subnav V2/preview.stories.js +0 -91
  824. package/dist/collection/stories/organisms/ptc/Ptc Text Copy With Background/preview.stories.js +0 -226
  825. package/dist/collection/stories/organisms/ptc/Ptc Title Demo/preview.stories.js +0 -24
  826. package/dist/collection/stories/organisms/ptc/Ptc Tooltip V3/preview.stories.js +0 -85
  827. package/dist/collection/stories/organisms/ptc/Ptc Two Column Two Media/preview.stories.js +0 -126
  828. package/dist/collection/stories/organisms/ptc/Read More/preview.stories.js +0 -278
  829. package/dist/collection/stories/organisms/ptc/Related Cards/preview.stories.js +0 -107
  830. package/dist/collection/stories/organisms/ptc/Resource Center/preview.stories.js +0 -149
  831. package/dist/collection/stories/organisms/ptc/Search Result/preview.stories.js +0 -62
  832. package/dist/collection/stories/organisms/ptc/Search Result News/preview.stories.js +0 -72
  833. package/dist/collection/stories/organisms/ptc/Searchbar Plm On Demand/preview.stories.js +0 -62
  834. package/dist/collection/stories/organisms/ptc/Seo Test/preview.stories.js +0 -215
  835. package/dist/collection/stories/organisms/ptc/Sequential Slider/preview.stories.js +0 -38
  836. package/dist/collection/stories/organisms/ptc/Sequential Slider Mobile/preview.stories.js +0 -90
  837. package/dist/collection/stories/organisms/ptc/Shortform Agileworx/preview.stories.js +0 -22
  838. package/dist/collection/stories/organisms/ptc/Storefront Enhanced Product Listing/preview.stories.js +0 -132
  839. package/dist/collection/stories/organisms/ptc/Subnav New/preview.stories.js +0 -360
  840. package/dist/collection/stories/organisms/ptc/Success Path Details Page/preview.stories.js +0 -236
  841. package/dist/collection/stories/organisms/ptc/Three Column Text/preview.stories.js +0 -75
  842. package/dist/collection/stories/organisms/ptc/Three Up Text Cards/preview.stories.js +0 -134
  843. package/dist/collection/stories/organisms/ptc/Two Column Media/preview.stories.js +0 -181
  844. package/dist/collection/stories/organisms/ptc/Two Column With Toggle/preview.stories.js +0 -549
  845. package/dist/collection/stories/organisms/ptc/Value Led Resource/preview.stories.js +0 -479
  846. package/dist/collection/stories/organisms/ptc/Volvo Three Col/preview.stories.js +0 -115
  847. package/dist/collection/stories/organisms/ptc/Vuforia Quiz/preview.stories.js +0 -26
  848. package/dist/collection/stories/organisms/ptc/White Paper/preview.stories.js +0 -174
  849. package/dist/collection/utils/__mocks__/@material__select__component.js +0 -5
  850. package/dist/custom-elements/index.d.ts +0 -1143
  851. package/dist/custom-elements/index.js +0 -38289
  852. package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
  853. package/dist/esm/academic-form-test.entry.js +0 -78
  854. package/dist/esm/author-listing-example.entry.js +0 -241
  855. package/dist/esm/blog-detail-content_2.entry.js +0 -270
  856. package/dist/esm/blog-detail-layout.entry.js +0 -65
  857. package/dist/esm/blogs-search-section.entry.js +0 -214
  858. package/dist/esm/bundle-example.entry.js +0 -49
  859. package/dist/esm/bundle-jumbotron-example.entry.js +0 -59
  860. package/dist/esm/buying-option-card.entry.js +0 -180
  861. package/dist/esm/buying-option-cards-slider.entry.js +0 -171
  862. package/dist/esm/component-80f298b4.js +0 -6462
  863. package/dist/esm/core-9dcd68aa.js +0 -3874
  864. package/dist/esm/dropdown-item.entry.js +0 -17
  865. package/dist/esm/dynamic-box-bundle.entry.js +0 -34
  866. package/dist/esm/embedded-form.entry.js +0 -101
  867. package/dist/esm/event-jumbotron-example.entry.js +0 -229
  868. package/dist/esm/event-podcast-slider-example.entry.js +0 -64
  869. package/dist/esm/featured-events-slider-example.entry.js +0 -58
  870. package/dist/esm/featured-list.entry.js +0 -104
  871. package/dist/esm/fl-tab-content_3.entry.js +0 -98
  872. package/dist/esm/focus-trap.esm-d205300d.js +0 -1556
  873. package/dist/esm/footer-form.entry.js +0 -60
  874. package/dist/esm/global-1a5f28d5.js +0 -31
  875. package/dist/esm/homepage-clickable-tab.entry.js +0 -56
  876. package/dist/esm/homepage-jumbotron.entry.js +0 -124
  877. package/dist/esm/homepage-toggled-content.entry.js +0 -150
  878. package/dist/esm/icon-asset_2.entry.js +0 -149
  879. package/dist/esm/index-0bf594c4.js +0 -2103
  880. package/dist/esm/innovator-toggle-container.entry.js +0 -64
  881. package/dist/esm/interfaces-4caedd26.js +0 -12
  882. package/dist/esm/jumbotron-sub-menu.entry.js +0 -37
  883. package/dist/esm/jumbotron-sub-mune.entry.js +0 -51
  884. package/dist/esm/list-item.entry.js +0 -48
  885. package/dist/esm/max-width-container.entry.js +0 -50
  886. package/dist/esm/modal-form-example.entry.js +0 -105
  887. package/dist/esm/most-popular-news.entry.js +0 -39
  888. package/dist/esm/mousewheel-6b2f6590.js +0 -389
  889. package/dist/esm/news-search-result.entry.js +0 -26
  890. package/dist/esm/pagination-191217c1.js +0 -664
  891. package/dist/esm/polyfills/core-js.js +0 -11
  892. package/dist/esm/polyfills/css-shim.js +0 -1
  893. package/dist/esm/polyfills/dom.js +0 -79
  894. package/dist/esm/polyfills/es5-html-element.js +0 -1
  895. package/dist/esm/polyfills/index.js +0 -34
  896. package/dist/esm/polyfills/system.js +0 -6
  897. package/dist/esm/ptc-accordion-item.entry.js +0 -120
  898. package/dist/esm/ptc-accordion.entry.js +0 -87
  899. package/dist/esm/ptc-announcement.entry.js +0 -73
  900. package/dist/esm/ptc-back-to-top.entry.js +0 -96
  901. package/dist/esm/ptc-background-video.entry.js +0 -148
  902. package/dist/esm/ptc-badge.entry.js +0 -26
  903. package/dist/esm/ptc-bio-card.entry.js +0 -57
  904. package/dist/esm/ptc-blue-pill-announcement-bar.entry.js +0 -19
  905. package/dist/esm/ptc-breadcrumb.entry.js +0 -59
  906. package/dist/esm/ptc-brightcov-video.entry.js +0 -20
  907. package/dist/esm/ptc-button.entry.js +0 -113
  908. package/dist/esm/ptc-card-bottom_2.entry.js +0 -194
  909. package/dist/esm/ptc-card-content.entry.js +0 -88
  910. package/dist/esm/ptc-card_2.entry.js +0 -297
  911. package/dist/esm/ptc-case-studies-slider.entry.js +0 -1205
  912. package/dist/esm/ptc-checkbox-group.entry.js +0 -46
  913. package/dist/esm/ptc-checkbox.entry.js +0 -70
  914. package/dist/esm/ptc-close-icon_2.entry.js +0 -355
  915. package/dist/esm/ptc-collapse-list.entry.js +0 -539
  916. package/dist/esm/ptc-container.entry.js +0 -40
  917. package/dist/esm/ptc-countdown.entry.js +0 -172
  918. package/dist/esm/ptc-data-lookup.entry.js +0 -680
  919. package/dist/esm/ptc-date.entry.js +0 -57
  920. package/dist/esm/ptc-dropdown.entry.js +0 -75
  921. package/dist/esm/ptc-dynamic-card.entry.js +0 -137
  922. package/dist/esm/ptc-ellipsis-dropdown.entry.js +0 -197
  923. package/dist/esm/ptc-embedded-quiz.entry.js +0 -295
  924. package/dist/esm/ptc-enhanced-product-listing-card.entry.js +0 -69
  925. package/dist/esm/ptc-featured-list.entry.js +0 -44
  926. package/dist/esm/ptc-filter-dropdown_4.entry.js +0 -374
  927. package/dist/esm/ptc-filter-level-theater.entry.js +0 -189
  928. package/dist/esm/ptc-filter-tag_2.entry.js +0 -424
  929. package/dist/esm/ptc-footer.entry.js +0 -64
  930. package/dist/esm/ptc-form-checkbox_4.entry.js +0 -5193
  931. package/dist/esm/ptc-form-radio-button.entry.js +0 -52
  932. package/dist/esm/ptc-form-radio-group.entry.js +0 -52
  933. package/dist/esm/ptc-form.entry.js +0 -152
  934. package/dist/esm/ptc-hero-footer-cta.entry.js +0 -18
  935. package/dist/esm/ptc-hero.entry.js +0 -28
  936. package/dist/esm/ptc-homepage-image-feature.entry.js +0 -20
  937. package/dist/esm/ptc-homepage-video-background.entry.js +0 -200
  938. package/dist/esm/ptc-icon-card-slider-example.entry.js +0 -68
  939. package/dist/esm/ptc-icon-card.entry.js +0 -26
  940. package/dist/esm/ptc-icon-component.entry.js +0 -122
  941. package/dist/esm/ptc-icon-list.entry.js +0 -30
  942. package/dist/esm/ptc-icon-minimize.entry.js +0 -169
  943. package/dist/esm/ptc-image-download-strip.entry.js +0 -28
  944. package/dist/esm/ptc-img.entry.js +0 -212
  945. package/dist/esm/ptc-info-tile.entry.js +0 -46
  946. package/dist/esm/ptc-inline-cta.entry.js +0 -134
  947. package/dist/esm/ptc-jumbotron.entry.js +0 -186
  948. package/dist/esm/ptc-link.entry.js +0 -87
  949. package/dist/esm/ptc-list.entry.js +0 -56
  950. package/dist/esm/ptc-media-card.entry.js +0 -167
  951. package/dist/esm/ptc-minimized-nav.entry.js +0 -20
  952. package/dist/esm/ptc-mobile-select.entry.js +0 -562
  953. package/dist/esm/ptc-modal-quiz.entry.js +0 -183
  954. package/dist/esm/ptc-nav-card.entry.js +0 -38
  955. package/dist/esm/ptc-nav-link.entry.js +0 -44
  956. package/dist/esm/ptc-nav-pills.entry.js +0 -15
  957. package/dist/esm/ptc-nav-skip-to-content.entry.js +0 -66
  958. package/dist/esm/ptc-nav-slider.entry.js +0 -111
  959. package/dist/esm/ptc-nav-submenu.entry.js +0 -44
  960. package/dist/esm/ptc-nav-tile.entry.js +0 -16
  961. package/dist/esm/ptc-news.entry.js +0 -27
  962. package/dist/esm/ptc-office-location-card.entry.js +0 -61
  963. package/dist/esm/ptc-office-locations.entry.js +0 -341
  964. package/dist/esm/ptc-overlay.entry.js +0 -30
  965. package/dist/esm/ptc-para.entry.js +0 -135
  966. package/dist/esm/ptc-picture.entry.js +0 -181
  967. package/dist/esm/ptc-podcast-card.entry.js +0 -18
  968. package/dist/esm/ptc-preferance-center-form.entry.js +0 -42
  969. package/dist/esm/ptc-preloader.entry.js +0 -18
  970. package/dist/esm/ptc-previous-url.entry.js +0 -27
  971. package/dist/esm/ptc-pricing-add-on-card.entry.js +0 -25
  972. package/dist/esm/ptc-pricing-add-on-section.entry.js +0 -47
  973. package/dist/esm/ptc-pricing-block.entry.js +0 -29
  974. package/dist/esm/ptc-pricing-packaging-table.entry.js +0 -528
  975. package/dist/esm/ptc-pricing-tabs.entry.js +0 -138
  976. package/dist/esm/ptc-product-card.entry.js +0 -57
  977. package/dist/esm/ptc-product-category.entry.js +0 -16
  978. package/dist/esm/ptc-product-dropdown.entry.js +0 -76
  979. package/dist/esm/ptc-product-highlight-card.entry.js +0 -24
  980. package/dist/esm/ptc-product-list.entry.js +0 -168
  981. package/dist/esm/ptc-product-sidebar.entry.js +0 -174
  982. package/dist/esm/ptc-progress-bar.entry.js +0 -23
  983. package/dist/esm/ptc-quantity-counter.entry.js +0 -95
  984. package/dist/esm/ptc-quote.entry.js +0 -36
  985. package/dist/esm/ptc-readmore-char.entry.js +0 -40
  986. package/dist/esm/ptc-readmore-new.entry.js +0 -102
  987. package/dist/esm/ptc-readmore-v3.entry.js +0 -123
  988. package/dist/esm/ptc-readmore.entry.js +0 -182
  989. package/dist/esm/ptc-related-card-rail.entry.js +0 -254
  990. package/dist/esm/ptc-responsive-wrapper.entry.js +0 -61
  991. package/dist/esm/ptc-scroll-button.entry.js +0 -131
  992. package/dist/esm/ptc-seo-title.entry.js +0 -78
  993. package/dist/esm/ptc-shopping-cart.entry.js +0 -65
  994. package/dist/esm/ptc-showcase-card.entry.js +0 -17
  995. package/dist/esm/ptc-skeleton.entry.js +0 -28
  996. package/dist/esm/ptc-slit-card.entry.js +0 -36
  997. package/dist/esm/ptc-social-icons-footer.entry.js +0 -88
  998. package/dist/esm/ptc-social-icons.entry.js +0 -29
  999. package/dist/esm/ptc-spacer.entry.js +0 -34
  1000. package/dist/esm/ptc-span.entry.js +0 -27
  1001. package/dist/esm/ptc-square-card.entry.js +0 -21
  1002. package/dist/esm/ptc-sticky-icons.entry.js +0 -50
  1003. package/dist/esm/ptc-sticky-section.entry.js +0 -66
  1004. package/dist/esm/ptc-sticky-title.entry.js +0 -46
  1005. package/dist/esm/ptc-store-card-list.entry.js +0 -101
  1006. package/dist/esm/ptc-store-card.entry.js +0 -20
  1007. package/dist/esm/ptc-subnav-card.entry.js +0 -23
  1008. package/dist/esm/ptc-subnav-v2.entry.js +0 -591
  1009. package/dist/esm/ptc-subnav.entry.js +0 -32
  1010. package/dist/esm/ptc-svg-btn.entry.js +0 -114
  1011. package/dist/esm/ptc-tab-list.entry.js +0 -270
  1012. package/dist/esm/ptc-tab.entry.js +0 -27
  1013. package/dist/esm/ptc-tabs.entry.js +0 -54
  1014. package/dist/esm/ptc-text-copy-with-background.entry.js +0 -63
  1015. package/dist/esm/ptc-theater-video-modal.entry.js +0 -117
  1016. package/dist/esm/ptc-title.entry.js +0 -157
  1017. package/dist/esm/ptc-tooltip-v2.entry.js +0 -76
  1018. package/dist/esm/ptc-tooltip-v3.entry.js +0 -115
  1019. package/dist/esm/ptc-tooltip.entry.js +0 -109
  1020. package/dist/esm/ptc-two-column-media.entry.js +0 -22
  1021. package/dist/esm/ptc-value-led-card.entry.js +0 -17
  1022. package/dist/esm/ptc-value-led-content-highlight.entry.js +0 -15
  1023. package/dist/esm/ptc-value-led-content.entry.js +0 -16
  1024. package/dist/esm/ptc-value-led-intro.entry.js +0 -16
  1025. package/dist/esm/ptc-value-led-layout.entry.js +0 -280
  1026. package/dist/esm/ptc-value-led-speed-bump.entry.js +0 -31
  1027. package/dist/esm/ptc-value-prop-card.entry.js +0 -20
  1028. package/dist/esm/ptc-video-embed.entry.js +0 -80
  1029. package/dist/esm/ptc-white-paper.entry.js +0 -147
  1030. package/dist/esm/ptcw-design.js +0 -20
  1031. package/dist/esm/scrollbar-b41be07f.js +0 -350
  1032. package/dist/esm/sequential-bundle-example.entry.js +0 -115
  1033. package/dist/esm/sequential-bundle.entry.js +0 -95
  1034. package/dist/esm/show-map-icon-6d9dce32.js +0 -8
  1035. package/dist/esm/storefront-enhanced-product-list-alt-example.entry.js +0 -62
  1036. package/dist/esm/storefront-enhanced-product-list-example.entry.js +0 -62
  1037. package/dist/esm/tab-content.entry.js +0 -46
  1038. package/dist/esm/tab-header.entry.js +0 -78
  1039. package/dist/esm/utils-bdd0cc16.js +0 -282
  1040. package/dist/esm/validation-messages-1379b825.js +0 -169
  1041. package/dist/esm/x-cd64dee4.js +0 -18
  1042. package/dist/ptcw-design/index.esm.js +0 -0
  1043. package/dist/ptcw-design/media/brands.svg +0 -1381
  1044. package/dist/ptcw-design/media/designer-v6.0.7.svg +0 -765
  1045. package/dist/ptcw-design/media/logo.png +0 -0
  1046. package/dist/ptcw-design/media/nav-active-dotslick.svg +0 -16
  1047. package/dist/ptcw-design/media/regular.svg +0 -463
  1048. package/dist/ptcw-design/media/solid.svg +0 -3016
  1049. package/dist/ptcw-design/media/svg-with-js.min.css +0 -5
  1050. package/dist/ptcw-design/p-00c5879b.entry.js +0 -1
  1051. package/dist/ptcw-design/p-0229f63c.entry.js +0 -68
  1052. package/dist/ptcw-design/p-03a1e1a5.entry.js +0 -1
  1053. package/dist/ptcw-design/p-068b64a1.entry.js +0 -1
  1054. package/dist/ptcw-design/p-07b46e6e.entry.js +0 -1
  1055. package/dist/ptcw-design/p-0abb6e77.entry.js +0 -1
  1056. package/dist/ptcw-design/p-0b33279e.js +0 -10
  1057. package/dist/ptcw-design/p-0bb3ea9a.entry.js +0 -1
  1058. package/dist/ptcw-design/p-0dac6766.entry.js +0 -1
  1059. package/dist/ptcw-design/p-0ea22cdc.entry.js +0 -1
  1060. package/dist/ptcw-design/p-0ec2a26d.entry.js +0 -1
  1061. package/dist/ptcw-design/p-0ed4609e.entry.js +0 -1
  1062. package/dist/ptcw-design/p-0efedf59.js +0 -1
  1063. package/dist/ptcw-design/p-112455b1.js +0 -1
  1064. package/dist/ptcw-design/p-1149e673.entry.js +0 -1
  1065. package/dist/ptcw-design/p-11e86045.entry.js +0 -1
  1066. package/dist/ptcw-design/p-1238e070.entry.js +0 -1
  1067. package/dist/ptcw-design/p-14c77b5e.entry.js +0 -1
  1068. package/dist/ptcw-design/p-183ba1ca.entry.js +0 -1
  1069. package/dist/ptcw-design/p-1ab6201b.entry.js +0 -1
  1070. package/dist/ptcw-design/p-1acd3617.entry.js +0 -1
  1071. package/dist/ptcw-design/p-1b3394a7.entry.js +0 -1
  1072. package/dist/ptcw-design/p-1e4d0bb7.entry.js +0 -1
  1073. package/dist/ptcw-design/p-1e9f25fc.entry.js +0 -1
  1074. package/dist/ptcw-design/p-20dfd7bd.entry.js +0 -1
  1075. package/dist/ptcw-design/p-212cdacd.entry.js +0 -1
  1076. package/dist/ptcw-design/p-23411b93.entry.js +0 -1
  1077. package/dist/ptcw-design/p-27cd474f.entry.js +0 -1
  1078. package/dist/ptcw-design/p-290012e3.entry.js +0 -1
  1079. package/dist/ptcw-design/p-2ba77e9d.entry.js +0 -1
  1080. package/dist/ptcw-design/p-2bc4bf65.entry.js +0 -1
  1081. package/dist/ptcw-design/p-2e288e60.entry.js +0 -1
  1082. package/dist/ptcw-design/p-2efd18d8.entry.js +0 -1
  1083. package/dist/ptcw-design/p-2f4f6ccd.js +0 -1
  1084. package/dist/ptcw-design/p-2f7b6437.entry.js +0 -1
  1085. package/dist/ptcw-design/p-2f82de8f.entry.js +0 -1
  1086. package/dist/ptcw-design/p-2fd01953.entry.js +0 -1
  1087. package/dist/ptcw-design/p-2fdd81d4.entry.js +0 -1
  1088. package/dist/ptcw-design/p-315b7885.entry.js +0 -1
  1089. package/dist/ptcw-design/p-36cb30ee.js +0 -1
  1090. package/dist/ptcw-design/p-36d6e662.entry.js +0 -1
  1091. package/dist/ptcw-design/p-384548ef.entry.js +0 -1
  1092. package/dist/ptcw-design/p-39255f59.entry.js +0 -1
  1093. package/dist/ptcw-design/p-3ada2482.entry.js +0 -1
  1094. package/dist/ptcw-design/p-3b9fbbaa.js +0 -1
  1095. package/dist/ptcw-design/p-3c52fabe.entry.js +0 -1
  1096. package/dist/ptcw-design/p-3c941935.entry.js +0 -1
  1097. package/dist/ptcw-design/p-3e13b735.entry.js +0 -1
  1098. package/dist/ptcw-design/p-3e13f29c.entry.js +0 -1
  1099. package/dist/ptcw-design/p-4313edfb.entry.js +0 -1
  1100. package/dist/ptcw-design/p-43756439.entry.js +0 -1
  1101. package/dist/ptcw-design/p-47aa1583.entry.js +0 -1
  1102. package/dist/ptcw-design/p-4fd2afc0.entry.js +0 -1
  1103. package/dist/ptcw-design/p-5119fb48.entry.js +0 -1
  1104. package/dist/ptcw-design/p-522cb451.entry.js +0 -1
  1105. package/dist/ptcw-design/p-5292a000.js +0 -1
  1106. package/dist/ptcw-design/p-5344a1f4.entry.js +0 -1
  1107. package/dist/ptcw-design/p-53d2547b.entry.js +0 -1
  1108. package/dist/ptcw-design/p-54891548.entry.js +0 -1
  1109. package/dist/ptcw-design/p-561a622f.entry.js +0 -1
  1110. package/dist/ptcw-design/p-562a3e36.entry.js +0 -1
  1111. package/dist/ptcw-design/p-575c7fc0.entry.js +0 -1
  1112. package/dist/ptcw-design/p-5b00a563.entry.js +0 -1
  1113. package/dist/ptcw-design/p-5bbfd7b3.entry.js +0 -1
  1114. package/dist/ptcw-design/p-5dd9b00c.entry.js +0 -1
  1115. package/dist/ptcw-design/p-5fb671ee.entry.js +0 -1
  1116. package/dist/ptcw-design/p-61a5012d.entry.js +0 -1
  1117. package/dist/ptcw-design/p-6251a6d6.entry.js +0 -1
  1118. package/dist/ptcw-design/p-6481e853.entry.js +0 -1
  1119. package/dist/ptcw-design/p-672a349f.js +0 -336
  1120. package/dist/ptcw-design/p-674c828e.entry.js +0 -1
  1121. package/dist/ptcw-design/p-6cfb5642.entry.js +0 -1
  1122. package/dist/ptcw-design/p-6d628113.entry.js +0 -1
  1123. package/dist/ptcw-design/p-6f1cc5e5.entry.js +0 -1
  1124. package/dist/ptcw-design/p-709cc1f0.entry.js +0 -1
  1125. package/dist/ptcw-design/p-711bcdad.js +0 -1
  1126. package/dist/ptcw-design/p-73293d32.entry.js +0 -1
  1127. package/dist/ptcw-design/p-746337da.entry.js +0 -1
  1128. package/dist/ptcw-design/p-74a845fd.entry.js +0 -1
  1129. package/dist/ptcw-design/p-752159e2.entry.js +0 -1
  1130. package/dist/ptcw-design/p-75c8fceb.entry.js +0 -1
  1131. package/dist/ptcw-design/p-75d8b6ec.entry.js +0 -1
  1132. package/dist/ptcw-design/p-7777753a.entry.js +0 -1
  1133. package/dist/ptcw-design/p-7815e38b.entry.js +0 -1
  1134. package/dist/ptcw-design/p-79762cf6.entry.js +0 -1
  1135. package/dist/ptcw-design/p-79a6e764.entry.js +0 -1
  1136. package/dist/ptcw-design/p-7b89a8e1.entry.js +0 -1
  1137. package/dist/ptcw-design/p-7c6d6a5e.entry.js +0 -1
  1138. package/dist/ptcw-design/p-7f2c5da5.js +0 -1
  1139. package/dist/ptcw-design/p-804dac0c.entry.js +0 -1
  1140. package/dist/ptcw-design/p-807ad5c4.entry.js +0 -1
  1141. package/dist/ptcw-design/p-80c56c81.entry.js +0 -1
  1142. package/dist/ptcw-design/p-81736d6a.entry.js +0 -1
  1143. package/dist/ptcw-design/p-828edda6.entry.js +0 -1
  1144. package/dist/ptcw-design/p-83c3d6c9.entry.js +0 -1
  1145. package/dist/ptcw-design/p-83dabf2e.entry.js +0 -1
  1146. package/dist/ptcw-design/p-850e6e8c.entry.js +0 -1
  1147. package/dist/ptcw-design/p-87215e3a.entry.js +0 -1
  1148. package/dist/ptcw-design/p-87e4c337.entry.js +0 -1
  1149. package/dist/ptcw-design/p-89da867f.entry.js +0 -1
  1150. package/dist/ptcw-design/p-8cdcfb51.entry.js +0 -1
  1151. package/dist/ptcw-design/p-8eb36507.entry.js +0 -1
  1152. package/dist/ptcw-design/p-8efaac1b.entry.js +0 -1
  1153. package/dist/ptcw-design/p-9050ab76.entry.js +0 -1
  1154. package/dist/ptcw-design/p-908ad455.entry.js +0 -1
  1155. package/dist/ptcw-design/p-91a9f126.entry.js +0 -1
  1156. package/dist/ptcw-design/p-91e5c8d4.entry.js +0 -1
  1157. package/dist/ptcw-design/p-944c5be8.js +0 -2
  1158. package/dist/ptcw-design/p-973b06d1.entry.js +0 -1
  1159. package/dist/ptcw-design/p-973c69d8.entry.js +0 -1
  1160. package/dist/ptcw-design/p-9a28ded2.entry.js +0 -1
  1161. package/dist/ptcw-design/p-9d8a9a72.entry.js +0 -1
  1162. package/dist/ptcw-design/p-9df3c31f.entry.js +0 -1
  1163. package/dist/ptcw-design/p-9e8e2835.entry.js +0 -1
  1164. package/dist/ptcw-design/p-a1dc7ae5.entry.js +0 -1
  1165. package/dist/ptcw-design/p-a22d7ae8.entry.js +0 -1
  1166. package/dist/ptcw-design/p-a2710bbf.entry.js +0 -1
  1167. package/dist/ptcw-design/p-a318a793.entry.js +0 -1
  1168. package/dist/ptcw-design/p-a3ef1660.entry.js +0 -1
  1169. package/dist/ptcw-design/p-a81833cd.entry.js +0 -1
  1170. package/dist/ptcw-design/p-a974f98f.entry.js +0 -1
  1171. package/dist/ptcw-design/p-afb5bdb9.entry.js +0 -1
  1172. package/dist/ptcw-design/p-b0fb4c93.entry.js +0 -1
  1173. package/dist/ptcw-design/p-b1053240.entry.js +0 -1
  1174. package/dist/ptcw-design/p-b154bbdb.entry.js +0 -1
  1175. package/dist/ptcw-design/p-b1c51eb4.entry.js +0 -1
  1176. package/dist/ptcw-design/p-b293a0b1.entry.js +0 -1
  1177. package/dist/ptcw-design/p-b2fcbbd8.entry.js +0 -1
  1178. package/dist/ptcw-design/p-b6cc4c2a.entry.js +0 -1
  1179. package/dist/ptcw-design/p-b82dd7f9.entry.js +0 -1
  1180. package/dist/ptcw-design/p-bca81995.entry.js +0 -1
  1181. package/dist/ptcw-design/p-bdbf2c61.entry.js +0 -1
  1182. package/dist/ptcw-design/p-be00fb74.entry.js +0 -1
  1183. package/dist/ptcw-design/p-bf2f9183.entry.js +0 -1
  1184. package/dist/ptcw-design/p-c5417010.entry.js +0 -1
  1185. package/dist/ptcw-design/p-c7e948b2.js +0 -1
  1186. package/dist/ptcw-design/p-c80265d9.entry.js +0 -1
  1187. package/dist/ptcw-design/p-c8de7309.entry.js +0 -1
  1188. package/dist/ptcw-design/p-c9762c88.entry.js +0 -1
  1189. package/dist/ptcw-design/p-c9a73ad1.entry.js +0 -1
  1190. package/dist/ptcw-design/p-ca039722.entry.js +0 -1
  1191. package/dist/ptcw-design/p-cab0274c.entry.js +0 -1
  1192. package/dist/ptcw-design/p-ce125ef2.entry.js +0 -1
  1193. package/dist/ptcw-design/p-ce39cff2.entry.js +0 -1
  1194. package/dist/ptcw-design/p-cf0f6559.entry.js +0 -1
  1195. package/dist/ptcw-design/p-d1f57070.entry.js +0 -1
  1196. package/dist/ptcw-design/p-d3c11c68.entry.js +0 -1
  1197. package/dist/ptcw-design/p-d428ba40.entry.js +0 -1
  1198. package/dist/ptcw-design/p-d4dcba82.entry.js +0 -1
  1199. package/dist/ptcw-design/p-d6271974.entry.js +0 -1
  1200. package/dist/ptcw-design/p-d9c54a1d.js +0 -1
  1201. package/dist/ptcw-design/p-d9ec506c.entry.js +0 -1
  1202. package/dist/ptcw-design/p-dabb1b70.entry.js +0 -1
  1203. package/dist/ptcw-design/p-dadbab48.entry.js +0 -1
  1204. package/dist/ptcw-design/p-dd38bf84.entry.js +0 -1
  1205. package/dist/ptcw-design/p-de663192.entry.js +0 -1
  1206. package/dist/ptcw-design/p-e00c5964.entry.js +0 -1
  1207. package/dist/ptcw-design/p-e1373325.entry.js +0 -1
  1208. package/dist/ptcw-design/p-e1bd2c43.entry.js +0 -1
  1209. package/dist/ptcw-design/p-e249cd90.entry.js +0 -1
  1210. package/dist/ptcw-design/p-e2e33ddb.entry.js +0 -1
  1211. package/dist/ptcw-design/p-e65cbdb9.entry.js +0 -1
  1212. package/dist/ptcw-design/p-e6ebc832.entry.js +0 -1
  1213. package/dist/ptcw-design/p-e87a4ff8.entry.js +0 -1
  1214. package/dist/ptcw-design/p-e880b556.entry.js +0 -1
  1215. package/dist/ptcw-design/p-e8b51e7d.entry.js +0 -1
  1216. package/dist/ptcw-design/p-ec22d0b8.entry.js +0 -1
  1217. package/dist/ptcw-design/p-ec395ae9.entry.js +0 -1
  1218. package/dist/ptcw-design/p-ecfc8211.entry.js +0 -1
  1219. package/dist/ptcw-design/p-ed53cb3a.entry.js +0 -1
  1220. package/dist/ptcw-design/p-ed5a467e.entry.js +0 -1
  1221. package/dist/ptcw-design/p-ef55ab3c.entry.js +0 -1
  1222. package/dist/ptcw-design/p-efe8563a.entry.js +0 -1
  1223. package/dist/ptcw-design/p-f004e5de.entry.js +0 -1
  1224. package/dist/ptcw-design/p-f2006b03.entry.js +0 -1
  1225. package/dist/ptcw-design/p-f20e4230.entry.js +0 -1
  1226. package/dist/ptcw-design/p-f418ef26.entry.js +0 -1
  1227. package/dist/ptcw-design/p-f4ae5a99.entry.js +0 -1
  1228. package/dist/ptcw-design/p-f5665cfe.entry.js +0 -1
  1229. package/dist/ptcw-design/p-f5dfa530.js +0 -1
  1230. package/dist/ptcw-design/p-fb0c3eeb.entry.js +0 -1
  1231. package/dist/ptcw-design/p-fe56e336.entry.js +0 -1
  1232. package/dist/ptcw-design/p-fef688c2.entry.js +0 -1
  1233. package/dist/ptcw-design/p-ff369ed7.entry.js +0 -1
  1234. package/dist/ptcw-design/ptcw-design.css +0 -9
  1235. package/dist/ptcw-design/ptcw-design.esm.js +0 -1
  1236. package/dist/types/components/buying-option-card/buying-option-card.d.ts +0 -44
  1237. package/dist/types/components/buying-option-cards-slider/buying-option-cards-slider.d.ts +0 -11
  1238. package/dist/types/components/dropdown-item/dropdown-item.d.ts +0 -5
  1239. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +0 -10
  1240. package/dist/types/components/homepage-clickable-tab/homepage-clickable-tab.d.ts +0 -19
  1241. package/dist/types/components/icon-asset/icon-asset.d.ts +0 -45
  1242. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +0 -20
  1243. package/dist/types/components/jumbotron-sub-menu/jumbotron-sub-menu.d.ts +0 -11
  1244. package/dist/types/components/jumbotron-sub-mune/jumbotron-sub-mune.d.ts +0 -10
  1245. package/dist/types/components/list-item/list-item.d.ts +0 -20
  1246. package/dist/types/components/max-width-container/max-width-container.d.ts +0 -16
  1247. package/dist/types/components/my-component/my-component.d.ts +0 -16
  1248. package/dist/types/components/organism-bundles/author-listing-example/author-listing-example.d.ts +0 -12
  1249. package/dist/types/components/organism-bundles/blog-detail-content/blog-detail-content.d.ts +0 -32
  1250. package/dist/types/components/organism-bundles/blog-detail-layout/blog-detail-layout.d.ts +0 -10
  1251. package/dist/types/components/organism-bundles/blogs-search-section/blogs-search-section.d.ts +0 -24
  1252. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +0 -14
  1253. package/dist/types/components/organism-bundles/bundle-featured-list/featured-list.d.ts +0 -12
  1254. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +0 -5
  1255. package/dist/types/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.d.ts +0 -37
  1256. package/dist/types/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.d.ts +0 -10
  1257. package/dist/types/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.d.ts +0 -10
  1258. package/dist/types/components/organism-bundles/form/academic-form/academic-form-test.d.ts +0 -25
  1259. package/dist/types/components/organism-bundles/form/embedded-form/embedded-form.d.ts +0 -31
  1260. package/dist/types/components/organism-bundles/form/footer-form/footer-form.d.ts +0 -14
  1261. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
  1262. package/dist/types/components/organism-bundles/form/ptc-form/ptc-form.d.ts +0 -25
  1263. package/dist/types/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.d.ts +0 -34
  1264. package/dist/types/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.d.ts +0 -41
  1265. package/dist/types/components/organism-bundles/most-popular-news/most-popular-news.d.ts +0 -6
  1266. package/dist/types/components/organism-bundles/news-search-result/news-search-result.d.ts +0 -10
  1267. package/dist/types/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.d.ts +0 -10
  1268. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +0 -12
  1269. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +0 -18
  1270. package/dist/types/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-alt-example.d.ts +0 -10
  1271. package/dist/types/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.d.ts +0 -10
  1272. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +0 -68
  1273. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +0 -23
  1274. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +0 -60
  1275. package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +0 -11
  1276. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +0 -53
  1277. package/dist/types/components/ptc-badge/ptc-badge.d.ts +0 -7
  1278. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +0 -28
  1279. package/dist/types/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.d.ts +0 -4
  1280. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +0 -29
  1281. package/dist/types/components/ptc-brightcov-video/ptc-brightcov-video.d.ts +0 -6
  1282. package/dist/types/components/ptc-button/ptc-button.d.ts +0 -92
  1283. package/dist/types/components/ptc-card/ptc-card.d.ts +0 -94
  1284. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +0 -17
  1285. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +0 -20
  1286. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +0 -40
  1287. package/dist/types/components/ptc-case-studies-slider/ptc-case-studies-slider.d.ts +0 -25
  1288. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +0 -17
  1289. package/dist/types/components/ptc-checkbox-group/ptc-checkbox-group.d.ts +0 -10
  1290. package/dist/types/components/ptc-close-icon/ptc-close-icon.d.ts +0 -3
  1291. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +0 -66
  1292. package/dist/types/components/ptc-container/ptc-container.d.ts +0 -13
  1293. package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -28
  1294. package/dist/types/components/ptc-data-lookup/ptc-data-lookup.d.ts +0 -29
  1295. package/dist/types/components/ptc-date/ptc-date.d.ts +0 -46
  1296. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +0 -20
  1297. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +0 -57
  1298. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +0 -29
  1299. package/dist/types/components/ptc-embedded-quiz/ptc-embedded-quiz.d.ts +0 -35
  1300. package/dist/types/components/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.d.ts +0 -23
  1301. package/dist/types/components/ptc-featured-list/fl-tab-content/fl-tab-content.d.ts +0 -6
  1302. package/dist/types/components/ptc-featured-list/fl-tab-header/fl-tab-header.d.ts +0 -16
  1303. package/dist/types/components/ptc-featured-list/fl-tab-image/fl-tab-image.d.ts +0 -5
  1304. package/dist/types/components/ptc-featured-list/ptc-featured-list.d.ts +0 -10
  1305. package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +0 -30
  1306. package/dist/types/components/ptc-filter-level-theater/ptc-filter-level-theater.d.ts +0 -19
  1307. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +0 -23
  1308. package/dist/types/components/ptc-footer/ptc-footer.d.ts +0 -9
  1309. package/dist/types/components/ptc-form-checkbox/ptc-form-checkbox.d.ts +0 -31
  1310. package/dist/types/components/ptc-form-radio-button/ptc-form-radio-button.d.ts +0 -14
  1311. package/dist/types/components/ptc-form-radio-group/ptc-form-radio-group.d.ts +0 -16
  1312. package/dist/types/components/ptc-hero/ptc-hero.d.ts +0 -16
  1313. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +0 -6
  1314. package/dist/types/components/ptc-homepage-image-feature/ptc-homepage-image-feature.d.ts +0 -5
  1315. package/dist/types/components/ptc-homepage-video-background/ptc-homepage-video-background.d.ts +0 -75
  1316. package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +0 -12
  1317. package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +0 -23
  1318. package/dist/types/components/ptc-icon-component/test/__mocks__/swiper.d.ts +0 -12
  1319. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +0 -23
  1320. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +0 -19
  1321. package/dist/types/components/ptc-image-download-strip/ptc-image-download-strip.d.ts +0 -13
  1322. package/dist/types/components/ptc-img/ptc-img.d.ts +0 -83
  1323. package/dist/types/components/ptc-info-tile/ptc-info-tile.d.ts +0 -19
  1324. package/dist/types/components/ptc-inline-cta/ptc-inline-cta.d.ts +0 -23
  1325. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +0 -52
  1326. package/dist/types/components/ptc-link/ptc-link.d.ts +0 -66
  1327. package/dist/types/components/ptc-list/ptc-list.d.ts +0 -8
  1328. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +0 -81
  1329. package/dist/types/components/ptc-minimized-nav/ptc-minimized-nav.d.ts +0 -8
  1330. package/dist/types/components/ptc-mobile-select/mobile-select/dist/mobile-select.d.ts +0 -209
  1331. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +0 -49
  1332. package/dist/types/components/ptc-modal/ptc-modal.d.ts +0 -113
  1333. package/dist/types/components/ptc-modal-quiz/ptc-modal-quiz.d.ts +0 -38
  1334. package/dist/types/components/ptc-multi-select/ptc-multi-select.d.ts +0 -52
  1335. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +0 -47
  1336. package/dist/types/components/ptc-nav-pills/ptc-nav-pills.d.ts +0 -3
  1337. package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +0 -17
  1338. package/dist/types/components/ptc-nav-tile/ptc-nav-tile.d.ts +0 -7
  1339. package/dist/types/components/ptc-news/ptc-news.d.ts +0 -20
  1340. package/dist/types/components/ptc-office-location-card/ptc-office-location-card.d.ts +0 -16
  1341. package/dist/types/components/ptc-office-locations/ptc-office-locations.d.ts +0 -42
  1342. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +0 -21
  1343. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +0 -43
  1344. package/dist/types/components/ptc-para/ptc-para.d.ts +0 -81
  1345. package/dist/types/components/ptc-picture/ptc-picture.d.ts +0 -104
  1346. package/dist/types/components/ptc-podcast-card/ptc-podcast-card.d.ts +0 -15
  1347. package/dist/types/components/ptc-preferance-center-form/ptc-preferance-center-form.d.ts +0 -7
  1348. package/dist/types/components/ptc-preloader/ptc-preloader.d.ts +0 -5
  1349. package/dist/types/components/ptc-preloader-section/ptc-preloader-section.d.ts +0 -14
  1350. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -11
  1351. package/dist/types/components/ptc-pricing-add-on-card/ptc-pricing-add-on-card.d.ts +0 -35
  1352. package/dist/types/components/ptc-pricing-add-on-section/ptc-pricing-add-on-section.d.ts +0 -30
  1353. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +0 -8
  1354. package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +0 -115
  1355. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +0 -53
  1356. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +0 -33
  1357. package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +0 -4
  1358. package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +0 -18
  1359. package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +0 -33
  1360. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +0 -21
  1361. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +0 -40
  1362. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +0 -5
  1363. package/dist/types/components/ptc-quantity-counter/ptc-quantity-counter.d.ts +0 -20
  1364. package/dist/types/components/ptc-quote/ptc-quote.d.ts +0 -33
  1365. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +0 -72
  1366. package/dist/types/components/ptc-readmore-char/ptc-readmore-char.d.ts +0 -35
  1367. package/dist/types/components/ptc-readmore-new/ptc-readmore-new.d.ts +0 -21
  1368. package/dist/types/components/ptc-readmore-v2/ptc-readmore-v2.d.ts +0 -27
  1369. package/dist/types/components/ptc-readmore-v3/ptc-readmore-v3.d.ts +0 -27
  1370. package/dist/types/components/ptc-related-card-rail/ptc-related-card-rail.d.ts +0 -47
  1371. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +0 -8
  1372. package/dist/types/components/ptc-scroll-button/ptc-scroll-button.d.ts +0 -28
  1373. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +0 -24
  1374. package/dist/types/components/ptc-select/ptc-select.d.ts +0 -41
  1375. package/dist/types/components/ptc-seo-title/ptc-seo-title.d.ts +0 -55
  1376. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +0 -7
  1377. package/dist/types/components/ptc-showcase-card/ptc-showcase-card.d.ts +0 -5
  1378. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +0 -10
  1379. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +0 -36
  1380. package/dist/types/components/ptc-social-icons/ptc-social-icons.d.ts +0 -11
  1381. package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +0 -36
  1382. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +0 -43
  1383. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +0 -16
  1384. package/dist/types/components/ptc-span/ptc-span.d.ts +0 -20
  1385. package/dist/types/components/ptc-square-card/ptc-square-card.d.ts +0 -11
  1386. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +0 -7
  1387. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +0 -12
  1388. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +0 -10
  1389. package/dist/types/components/ptc-store-card/ptc-store-card.d.ts +0 -6
  1390. package/dist/types/components/ptc-store-card-list/ptc-store-card-list.d.ts +0 -18
  1391. package/dist/types/components/ptc-subnav-v2/ptc-subnav-v2.d.ts +0 -70
  1392. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +0 -20
  1393. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +0 -36
  1394. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +0 -9
  1395. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +0 -10
  1396. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +0 -44
  1397. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +0 -99
  1398. package/dist/types/components/ptc-theater-video/ptc-theater-video.d.ts +0 -14
  1399. package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +0 -21
  1400. package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +0 -26
  1401. package/dist/types/components/ptc-title/ptc-title.d.ts +0 -86
  1402. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +0 -63
  1403. package/dist/types/components/ptc-tooltip-v2/ptc-tooltip-v2.d.ts +0 -21
  1404. package/dist/types/components/ptc-tooltip-v3/ptc-tooltip-v3.d.ts +0 -44
  1405. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +0 -9
  1406. package/dist/types/components/ptc-value-led-card/ptc-value-led-card.d.ts +0 -5
  1407. package/dist/types/components/ptc-value-led-content/ptc-value-led-content.d.ts +0 -4
  1408. package/dist/types/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.d.ts +0 -3
  1409. package/dist/types/components/ptc-value-led-intro/ptc-value-led-intro.d.ts +0 -4
  1410. package/dist/types/components/ptc-value-led-layout/ptc-value-led-layout.d.ts +0 -33
  1411. package/dist/types/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.d.ts +0 -10
  1412. package/dist/types/components/ptc-value-prop-card/ptc-value-prop-card.d.ts +0 -23
  1413. package/dist/types/components/ptc-video-embed/ptc-video-embed.d.ts +0 -15
  1414. package/dist/types/components/ptc-white-paper/ptc-white-paper.d.ts +0 -44
  1415. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +0 -30
  1416. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +0 -19
  1417. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +0 -35
  1418. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +0 -11
  1419. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +0 -31
  1420. package/dist/types/components/tab-content/tab-content.d.ts +0 -16
  1421. package/dist/types/components/tab-header/tab-header.d.ts +0 -23
  1422. package/loader/package.json +0 -11
  1423. /package/dist/collection/components/{my-component → atoms/my-component}/my-component.css +0 -0
@@ -1,3889 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * SSR Window 4.0.2
5
- * Better handling for window object in SSR environment
6
- * https://github.com/nolimits4web/ssr-window
7
- *
8
- * Copyright 2021, Vladimir Kharlampidi
9
- *
10
- * Licensed under MIT
11
- *
12
- * Released on: December 13, 2021
13
- */
14
- /* eslint-disable no-param-reassign */
15
- function isObject$1(obj) {
16
- return (obj !== null &&
17
- typeof obj === 'object' &&
18
- 'constructor' in obj &&
19
- obj.constructor === Object);
20
- }
21
- function extend$1(target = {}, src = {}) {
22
- Object.keys(src).forEach((key) => {
23
- if (typeof target[key] === 'undefined')
24
- target[key] = src[key];
25
- else if (isObject$1(src[key]) &&
26
- isObject$1(target[key]) &&
27
- Object.keys(src[key]).length > 0) {
28
- extend$1(target[key], src[key]);
29
- }
30
- });
31
- }
32
-
33
- const ssrDocument = {
34
- body: {},
35
- addEventListener() { },
36
- removeEventListener() { },
37
- activeElement: {
38
- blur() { },
39
- nodeName: '',
40
- },
41
- querySelector() {
42
- return null;
43
- },
44
- querySelectorAll() {
45
- return [];
46
- },
47
- getElementById() {
48
- return null;
49
- },
50
- createEvent() {
51
- return {
52
- initEvent() { },
53
- };
54
- },
55
- createElement() {
56
- return {
57
- children: [],
58
- childNodes: [],
59
- style: {},
60
- setAttribute() { },
61
- getElementsByTagName() {
62
- return [];
63
- },
64
- };
65
- },
66
- createElementNS() {
67
- return {};
68
- },
69
- importNode() {
70
- return null;
71
- },
72
- location: {
73
- hash: '',
74
- host: '',
75
- hostname: '',
76
- href: '',
77
- origin: '',
78
- pathname: '',
79
- protocol: '',
80
- search: '',
81
- },
82
- };
83
- function getDocument() {
84
- const doc = typeof document !== 'undefined' ? document : {};
85
- extend$1(doc, ssrDocument);
86
- return doc;
87
- }
88
-
89
- const ssrWindow = {
90
- document: ssrDocument,
91
- navigator: {
92
- userAgent: '',
93
- },
94
- location: {
95
- hash: '',
96
- host: '',
97
- hostname: '',
98
- href: '',
99
- origin: '',
100
- pathname: '',
101
- protocol: '',
102
- search: '',
103
- },
104
- history: {
105
- replaceState() { },
106
- pushState() { },
107
- go() { },
108
- back() { },
109
- },
110
- CustomEvent: function CustomEvent() {
111
- return this;
112
- },
113
- addEventListener() { },
114
- removeEventListener() { },
115
- getComputedStyle() {
116
- return {
117
- getPropertyValue() {
118
- return '';
119
- },
120
- };
121
- },
122
- Image() { },
123
- Date() { },
124
- screen: {},
125
- setTimeout() { },
126
- clearTimeout() { },
127
- matchMedia() {
128
- return {};
129
- },
130
- requestAnimationFrame(callback) {
131
- if (typeof setTimeout === 'undefined') {
132
- callback();
133
- return null;
134
- }
135
- return setTimeout(callback, 0);
136
- },
137
- cancelAnimationFrame(id) {
138
- if (typeof setTimeout === 'undefined') {
139
- return;
140
- }
141
- clearTimeout(id);
142
- },
143
- };
144
- function getWindow() {
145
- const win = typeof window !== 'undefined' ? window : {};
146
- extend$1(win, ssrWindow);
147
- return win;
148
- }
149
-
150
- function deleteProps(obj) {
151
- const object = obj;
152
- Object.keys(object).forEach(key => {
153
- try {
154
- object[key] = null;
155
- } catch (e) {
156
- // no getter for object
157
- }
158
- try {
159
- delete object[key];
160
- } catch (e) {
161
- // something got wrong
162
- }
163
- });
164
- }
165
- function nextTick(callback, delay = 0) {
166
- return setTimeout(callback, delay);
167
- }
168
- function now() {
169
- return Date.now();
170
- }
171
- function getComputedStyle$1(el) {
172
- const window = getWindow();
173
- let style;
174
- if (window.getComputedStyle) {
175
- style = window.getComputedStyle(el, null);
176
- }
177
- if (!style && el.currentStyle) {
178
- style = el.currentStyle;
179
- }
180
- if (!style) {
181
- style = el.style;
182
- }
183
- return style;
184
- }
185
- function getTranslate(el, axis = 'x') {
186
- const window = getWindow();
187
- let matrix;
188
- let curTransform;
189
- let transformMatrix;
190
- const curStyle = getComputedStyle$1(el);
191
- if (window.WebKitCSSMatrix) {
192
- curTransform = curStyle.transform || curStyle.webkitTransform;
193
- if (curTransform.split(',').length > 6) {
194
- curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');
195
- }
196
- // Some old versions of Webkit choke when 'none' is passed; pass
197
- // empty string instead in this case
198
- transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
199
- } else {
200
- transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
201
- matrix = transformMatrix.toString().split(',');
202
- }
203
- if (axis === 'x') {
204
- // Latest Chrome and webkits Fix
205
- if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;
206
- // Crazy IE10 Matrix
207
- else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);
208
- // Normal Browsers
209
- else curTransform = parseFloat(matrix[4]);
210
- }
211
- if (axis === 'y') {
212
- // Latest Chrome and webkits Fix
213
- if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;
214
- // Crazy IE10 Matrix
215
- else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);
216
- // Normal Browsers
217
- else curTransform = parseFloat(matrix[5]);
218
- }
219
- return curTransform || 0;
220
- }
221
- function isObject(o) {
222
- return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';
223
- }
224
- function isNode(node) {
225
- // eslint-disable-next-line
226
- if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {
227
- return node instanceof HTMLElement;
228
- }
229
- return node && (node.nodeType === 1 || node.nodeType === 11);
230
- }
231
- function extend(...args) {
232
- const to = Object(args[0]);
233
- const noExtend = ['__proto__', 'constructor', 'prototype'];
234
- for (let i = 1; i < args.length; i += 1) {
235
- const nextSource = args[i];
236
- if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
237
- const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);
238
- for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
239
- const nextKey = keysArray[nextIndex];
240
- const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
241
- if (desc !== undefined && desc.enumerable) {
242
- if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
243
- if (nextSource[nextKey].__swiper__) {
244
- to[nextKey] = nextSource[nextKey];
245
- } else {
246
- extend(to[nextKey], nextSource[nextKey]);
247
- }
248
- } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {
249
- to[nextKey] = {};
250
- if (nextSource[nextKey].__swiper__) {
251
- to[nextKey] = nextSource[nextKey];
252
- } else {
253
- extend(to[nextKey], nextSource[nextKey]);
254
- }
255
- } else {
256
- to[nextKey] = nextSource[nextKey];
257
- }
258
- }
259
- }
260
- }
261
- }
262
- return to;
263
- }
264
- function setCSSProperty(el, varName, varValue) {
265
- el.style.setProperty(varName, varValue);
266
- }
267
- function animateCSSModeScroll({
268
- swiper,
269
- targetPosition,
270
- side
271
- }) {
272
- const window = getWindow();
273
- const startPosition = -swiper.translate;
274
- let startTime = null;
275
- let time;
276
- const duration = swiper.params.speed;
277
- swiper.wrapperEl.style.scrollSnapType = 'none';
278
- window.cancelAnimationFrame(swiper.cssModeFrameID);
279
- const dir = targetPosition > startPosition ? 'next' : 'prev';
280
- const isOutOfBound = (current, target) => {
281
- return dir === 'next' && current >= target || dir === 'prev' && current <= target;
282
- };
283
- const animate = () => {
284
- time = new Date().getTime();
285
- if (startTime === null) {
286
- startTime = time;
287
- }
288
- const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);
289
- const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;
290
- let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);
291
- if (isOutOfBound(currentPosition, targetPosition)) {
292
- currentPosition = targetPosition;
293
- }
294
- swiper.wrapperEl.scrollTo({
295
- [side]: currentPosition
296
- });
297
- if (isOutOfBound(currentPosition, targetPosition)) {
298
- swiper.wrapperEl.style.overflow = 'hidden';
299
- swiper.wrapperEl.style.scrollSnapType = '';
300
- setTimeout(() => {
301
- swiper.wrapperEl.style.overflow = '';
302
- swiper.wrapperEl.scrollTo({
303
- [side]: currentPosition
304
- });
305
- });
306
- window.cancelAnimationFrame(swiper.cssModeFrameID);
307
- return;
308
- }
309
- swiper.cssModeFrameID = window.requestAnimationFrame(animate);
310
- };
311
- animate();
312
- }
313
- function getSlideTransformEl(slideEl) {
314
- return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowEl && slideEl.shadowEl.querySelector('.swiper-slide-transform') || slideEl;
315
- }
316
- function elementChildren(element, selector = '') {
317
- return [...element.children].filter(el => el.matches(selector));
318
- }
319
- function createElement(tag, classes = []) {
320
- const el = document.createElement(tag);
321
- el.classList.add(...(Array.isArray(classes) ? classes : [classes]));
322
- return el;
323
- }
324
- function elementOffset(el) {
325
- const window = getWindow();
326
- const document = getDocument();
327
- const box = el.getBoundingClientRect();
328
- const body = document.body;
329
- const clientTop = el.clientTop || body.clientTop || 0;
330
- const clientLeft = el.clientLeft || body.clientLeft || 0;
331
- const scrollTop = el === window ? window.scrollY : el.scrollTop;
332
- const scrollLeft = el === window ? window.scrollX : el.scrollLeft;
333
- return {
334
- top: box.top + scrollTop - clientTop,
335
- left: box.left + scrollLeft - clientLeft
336
- };
337
- }
338
- function elementPrevAll(el, selector) {
339
- const prevEls = [];
340
- while (el.previousElementSibling) {
341
- const prev = el.previousElementSibling; // eslint-disable-line
342
- if (selector) {
343
- if (prev.matches(selector)) prevEls.push(prev);
344
- } else prevEls.push(prev);
345
- el = prev;
346
- }
347
- return prevEls;
348
- }
349
- function elementNextAll(el, selector) {
350
- const nextEls = [];
351
- while (el.nextElementSibling) {
352
- const next = el.nextElementSibling; // eslint-disable-line
353
- if (selector) {
354
- if (next.matches(selector)) nextEls.push(next);
355
- } else nextEls.push(next);
356
- el = next;
357
- }
358
- return nextEls;
359
- }
360
- function elementStyle(el, prop) {
361
- const window = getWindow();
362
- return window.getComputedStyle(el, null).getPropertyValue(prop);
363
- }
364
- function elementIndex(el) {
365
- let child = el;
366
- let i;
367
- if (child) {
368
- i = 0;
369
- // eslint-disable-next-line
370
- while ((child = child.previousSibling) !== null) {
371
- if (child.nodeType === 1) i += 1;
372
- }
373
- return i;
374
- }
375
- return undefined;
376
- }
377
- function elementParents(el, selector) {
378
- const parents = []; // eslint-disable-line
379
- let parent = el.parentElement; // eslint-disable-line
380
- while (parent) {
381
- if (selector) {
382
- if (parent.matches(selector)) parents.push(parent);
383
- } else {
384
- parents.push(parent);
385
- }
386
- parent = parent.parentElement;
387
- }
388
- return parents;
389
- }
390
- function elementTransitionEnd(el, callback) {
391
- function fireCallBack(e) {
392
- if (e.target !== el) return;
393
- callback.call(el, e);
394
- el.removeEventListener('transitionend', fireCallBack);
395
- }
396
- if (callback) {
397
- el.addEventListener('transitionend', fireCallBack);
398
- }
399
- }
400
- function elementOuterSize(el, size, includeMargins) {
401
- const window = getWindow();
402
- if (includeMargins) {
403
- return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));
404
- }
405
- return el.offsetWidth;
406
- }
407
-
408
- let support;
409
- function calcSupport() {
410
- const window = getWindow();
411
- const document = getDocument();
412
- return {
413
- smoothScroll: document.documentElement && document.documentElement.style && 'scrollBehavior' in document.documentElement.style,
414
- touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch)
415
- };
416
- }
417
- function getSupport() {
418
- if (!support) {
419
- support = calcSupport();
420
- }
421
- return support;
422
- }
423
-
424
- let deviceCached;
425
- function calcDevice({
426
- userAgent
427
- } = {}) {
428
- const support = getSupport();
429
- const window = getWindow();
430
- const platform = window.navigator.platform;
431
- const ua = userAgent || window.navigator.userAgent;
432
- const device = {
433
- ios: false,
434
- android: false
435
- };
436
- const screenWidth = window.screen.width;
437
- const screenHeight = window.screen.height;
438
- const android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // eslint-disable-line
439
- let ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
440
- const ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
441
- const iphone = !ipad && ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
442
- const windows = platform === 'Win32';
443
- let macos = platform === 'MacIntel';
444
-
445
- // iPadOs 13 fix
446
- const iPadScreens = ['1024x1366', '1366x1024', '834x1194', '1194x834', '834x1112', '1112x834', '768x1024', '1024x768', '820x1180', '1180x820', '810x1080', '1080x810'];
447
- if (!ipad && macos && support.touch && iPadScreens.indexOf(`${screenWidth}x${screenHeight}`) >= 0) {
448
- ipad = ua.match(/(Version)\/([\d.]+)/);
449
- if (!ipad) ipad = [0, 1, '13_0_0'];
450
- macos = false;
451
- }
452
-
453
- // Android
454
- if (android && !windows) {
455
- device.os = 'android';
456
- device.android = true;
457
- }
458
- if (ipad || iphone || ipod) {
459
- device.os = 'ios';
460
- device.ios = true;
461
- }
462
-
463
- // Export object
464
- return device;
465
- }
466
- function getDevice(overrides = {}) {
467
- if (!deviceCached) {
468
- deviceCached = calcDevice(overrides);
469
- }
470
- return deviceCached;
471
- }
472
-
473
- let browser;
474
- function calcBrowser() {
475
- const window = getWindow();
476
- let needPerspectiveFix = false;
477
- function isSafari() {
478
- const ua = window.navigator.userAgent.toLowerCase();
479
- return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0;
480
- }
481
- if (isSafari()) {
482
- const ua = String(window.navigator.userAgent);
483
- if (ua.includes('Version/')) {
484
- const [major, minor] = ua.split('Version/')[1].split(' ')[0].split('.').map(num => Number(num));
485
- needPerspectiveFix = major < 16 || major === 16 && minor < 2;
486
- }
487
- }
488
- return {
489
- isSafari: needPerspectiveFix || isSafari(),
490
- needPerspectiveFix,
491
- isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)
492
- };
493
- }
494
- function getBrowser() {
495
- if (!browser) {
496
- browser = calcBrowser();
497
- }
498
- return browser;
499
- }
500
-
501
- function Resize({
502
- swiper,
503
- on,
504
- emit
505
- }) {
506
- const window = getWindow();
507
- let observer = null;
508
- let animationFrame = null;
509
- const resizeHandler = () => {
510
- if (!swiper || swiper.destroyed || !swiper.initialized) return;
511
- emit('beforeResize');
512
- emit('resize');
513
- };
514
- const createObserver = () => {
515
- if (!swiper || swiper.destroyed || !swiper.initialized) return;
516
- observer = new ResizeObserver(entries => {
517
- animationFrame = window.requestAnimationFrame(() => {
518
- const {
519
- width,
520
- height
521
- } = swiper;
522
- let newWidth = width;
523
- let newHeight = height;
524
- entries.forEach(({
525
- contentBoxSize,
526
- contentRect,
527
- target
528
- }) => {
529
- if (target && target !== swiper.el) return;
530
- newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;
531
- newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;
532
- });
533
- if (newWidth !== width || newHeight !== height) {
534
- resizeHandler();
535
- }
536
- });
537
- });
538
- observer.observe(swiper.el);
539
- };
540
- const removeObserver = () => {
541
- if (animationFrame) {
542
- window.cancelAnimationFrame(animationFrame);
543
- }
544
- if (observer && observer.unobserve && swiper.el) {
545
- observer.unobserve(swiper.el);
546
- observer = null;
547
- }
548
- };
549
- const orientationChangeHandler = () => {
550
- if (!swiper || swiper.destroyed || !swiper.initialized) return;
551
- emit('orientationchange');
552
- };
553
- on('init', () => {
554
- if (swiper.params.resizeObserver && typeof window.ResizeObserver !== 'undefined') {
555
- createObserver();
556
- return;
557
- }
558
- window.addEventListener('resize', resizeHandler);
559
- window.addEventListener('orientationchange', orientationChangeHandler);
560
- });
561
- on('destroy', () => {
562
- removeObserver();
563
- window.removeEventListener('resize', resizeHandler);
564
- window.removeEventListener('orientationchange', orientationChangeHandler);
565
- });
566
- }
567
-
568
- function Observer({
569
- swiper,
570
- extendParams,
571
- on,
572
- emit
573
- }) {
574
- const observers = [];
575
- const window = getWindow();
576
- const attach = (target, options = {}) => {
577
- const ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
578
- const observer = new ObserverFunc(mutations => {
579
- // The observerUpdate event should only be triggered
580
- // once despite the number of mutations. Additional
581
- // triggers are redundant and are very costly
582
- if (swiper.__preventObserver__) return;
583
- if (mutations.length === 1) {
584
- emit('observerUpdate', mutations[0]);
585
- return;
586
- }
587
- const observerUpdate = function observerUpdate() {
588
- emit('observerUpdate', mutations[0]);
589
- };
590
- if (window.requestAnimationFrame) {
591
- window.requestAnimationFrame(observerUpdate);
592
- } else {
593
- window.setTimeout(observerUpdate, 0);
594
- }
595
- });
596
- observer.observe(target, {
597
- attributes: typeof options.attributes === 'undefined' ? true : options.attributes,
598
- childList: typeof options.childList === 'undefined' ? true : options.childList,
599
- characterData: typeof options.characterData === 'undefined' ? true : options.characterData
600
- });
601
- observers.push(observer);
602
- };
603
- const init = () => {
604
- if (!swiper.params.observer) return;
605
- if (swiper.params.observeParents) {
606
- const containerParents = elementParents(swiper.el);
607
- for (let i = 0; i < containerParents.length; i += 1) {
608
- attach(containerParents[i]);
609
- }
610
- }
611
- // Observe container
612
- attach(swiper.el, {
613
- childList: swiper.params.observeSlideChildren
614
- });
615
-
616
- // Observe wrapper
617
- attach(swiper.wrapperEl, {
618
- attributes: false
619
- });
620
- };
621
- const destroy = () => {
622
- observers.forEach(observer => {
623
- observer.disconnect();
624
- });
625
- observers.splice(0, observers.length);
626
- };
627
- extendParams({
628
- observer: false,
629
- observeParents: false,
630
- observeSlideChildren: false
631
- });
632
- on('init', init);
633
- on('destroy', destroy);
634
- }
635
-
636
- /* eslint-disable no-underscore-dangle */
637
-
638
- const eventsEmitter = {
639
- on(events, handler, priority) {
640
- const self = this;
641
- if (!self.eventsListeners || self.destroyed) return self;
642
- if (typeof handler !== 'function') return self;
643
- const method = priority ? 'unshift' : 'push';
644
- events.split(' ').forEach(event => {
645
- if (!self.eventsListeners[event]) self.eventsListeners[event] = [];
646
- self.eventsListeners[event][method](handler);
647
- });
648
- return self;
649
- },
650
- once(events, handler, priority) {
651
- const self = this;
652
- if (!self.eventsListeners || self.destroyed) return self;
653
- if (typeof handler !== 'function') return self;
654
- function onceHandler(...args) {
655
- self.off(events, onceHandler);
656
- if (onceHandler.__emitterProxy) {
657
- delete onceHandler.__emitterProxy;
658
- }
659
- handler.apply(self, args);
660
- }
661
- onceHandler.__emitterProxy = handler;
662
- return self.on(events, onceHandler, priority);
663
- },
664
- onAny(handler, priority) {
665
- const self = this;
666
- if (!self.eventsListeners || self.destroyed) return self;
667
- if (typeof handler !== 'function') return self;
668
- const method = priority ? 'unshift' : 'push';
669
- if (self.eventsAnyListeners.indexOf(handler) < 0) {
670
- self.eventsAnyListeners[method](handler);
671
- }
672
- return self;
673
- },
674
- offAny(handler) {
675
- const self = this;
676
- if (!self.eventsListeners || self.destroyed) return self;
677
- if (!self.eventsAnyListeners) return self;
678
- const index = self.eventsAnyListeners.indexOf(handler);
679
- if (index >= 0) {
680
- self.eventsAnyListeners.splice(index, 1);
681
- }
682
- return self;
683
- },
684
- off(events, handler) {
685
- const self = this;
686
- if (!self.eventsListeners || self.destroyed) return self;
687
- if (!self.eventsListeners) return self;
688
- events.split(' ').forEach(event => {
689
- if (typeof handler === 'undefined') {
690
- self.eventsListeners[event] = [];
691
- } else if (self.eventsListeners[event]) {
692
- self.eventsListeners[event].forEach((eventHandler, index) => {
693
- if (eventHandler === handler || eventHandler.__emitterProxy && eventHandler.__emitterProxy === handler) {
694
- self.eventsListeners[event].splice(index, 1);
695
- }
696
- });
697
- }
698
- });
699
- return self;
700
- },
701
- emit(...args) {
702
- const self = this;
703
- if (!self.eventsListeners || self.destroyed) return self;
704
- if (!self.eventsListeners) return self;
705
- let events;
706
- let data;
707
- let context;
708
- if (typeof args[0] === 'string' || Array.isArray(args[0])) {
709
- events = args[0];
710
- data = args.slice(1, args.length);
711
- context = self;
712
- } else {
713
- events = args[0].events;
714
- data = args[0].data;
715
- context = args[0].context || self;
716
- }
717
- data.unshift(context);
718
- const eventsArray = Array.isArray(events) ? events : events.split(' ');
719
- eventsArray.forEach(event => {
720
- if (self.eventsAnyListeners && self.eventsAnyListeners.length) {
721
- self.eventsAnyListeners.forEach(eventHandler => {
722
- eventHandler.apply(context, [event, ...data]);
723
- });
724
- }
725
- if (self.eventsListeners && self.eventsListeners[event]) {
726
- self.eventsListeners[event].forEach(eventHandler => {
727
- eventHandler.apply(context, data);
728
- });
729
- }
730
- });
731
- return self;
732
- }
733
- };
734
-
735
- function updateSize() {
736
- const swiper = this;
737
- let width;
738
- let height;
739
- const el = swiper.el;
740
- if (typeof swiper.params.width !== 'undefined' && swiper.params.width !== null) {
741
- width = swiper.params.width;
742
- } else {
743
- width = el.clientWidth;
744
- }
745
- if (typeof swiper.params.height !== 'undefined' && swiper.params.height !== null) {
746
- height = swiper.params.height;
747
- } else {
748
- height = el.clientHeight;
749
- }
750
- if (width === 0 && swiper.isHorizontal() || height === 0 && swiper.isVertical()) {
751
- return;
752
- }
753
-
754
- // Subtract paddings
755
- width = width - parseInt(elementStyle(el, 'padding-left') || 0, 10) - parseInt(elementStyle(el, 'padding-right') || 0, 10);
756
- height = height - parseInt(elementStyle(el, 'padding-top') || 0, 10) - parseInt(elementStyle(el, 'padding-bottom') || 0, 10);
757
- if (Number.isNaN(width)) width = 0;
758
- if (Number.isNaN(height)) height = 0;
759
- Object.assign(swiper, {
760
- width,
761
- height,
762
- size: swiper.isHorizontal() ? width : height
763
- });
764
- }
765
-
766
- function updateSlides() {
767
- const swiper = this;
768
- function getDirectionLabel(property) {
769
- if (swiper.isHorizontal()) {
770
- return property;
771
- }
772
- // prettier-ignore
773
- return {
774
- 'width': 'height',
775
- 'margin-top': 'margin-left',
776
- 'margin-bottom ': 'margin-right',
777
- 'margin-left': 'margin-top',
778
- 'margin-right': 'margin-bottom',
779
- 'padding-left': 'padding-top',
780
- 'padding-right': 'padding-bottom',
781
- 'marginRight': 'marginBottom'
782
- }[property];
783
- }
784
- function getDirectionPropertyValue(node, label) {
785
- return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
786
- }
787
- const params = swiper.params;
788
- const {
789
- wrapperEl,
790
- slidesEl,
791
- size: swiperSize,
792
- rtlTranslate: rtl,
793
- wrongRTL
794
- } = swiper;
795
- const isVirtual = swiper.virtual && params.virtual.enabled;
796
- const previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;
797
- const slides = elementChildren(slidesEl, `.${swiper.params.slideClass}, swiper-slide`);
798
- const slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;
799
- let snapGrid = [];
800
- const slidesGrid = [];
801
- const slidesSizesGrid = [];
802
- let offsetBefore = params.slidesOffsetBefore;
803
- if (typeof offsetBefore === 'function') {
804
- offsetBefore = params.slidesOffsetBefore.call(swiper);
805
- }
806
- let offsetAfter = params.slidesOffsetAfter;
807
- if (typeof offsetAfter === 'function') {
808
- offsetAfter = params.slidesOffsetAfter.call(swiper);
809
- }
810
- const previousSnapGridLength = swiper.snapGrid.length;
811
- const previousSlidesGridLength = swiper.slidesGrid.length;
812
- let spaceBetween = params.spaceBetween;
813
- let slidePosition = -offsetBefore;
814
- let prevSlideSize = 0;
815
- let index = 0;
816
- if (typeof swiperSize === 'undefined') {
817
- return;
818
- }
819
- if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
820
- spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiperSize;
821
- } else if (typeof spaceBetween === 'string') {
822
- spaceBetween = parseFloat(spaceBetween);
823
- }
824
- swiper.virtualSize = -spaceBetween;
825
-
826
- // reset margins
827
- slides.forEach(slideEl => {
828
- if (rtl) {
829
- slideEl.style.marginLeft = '';
830
- } else {
831
- slideEl.style.marginRight = '';
832
- }
833
- slideEl.style.marginBottom = '';
834
- slideEl.style.marginTop = '';
835
- });
836
-
837
- // reset cssMode offsets
838
- if (params.centeredSlides && params.cssMode) {
839
- setCSSProperty(wrapperEl, '--swiper-centered-offset-before', '');
840
- setCSSProperty(wrapperEl, '--swiper-centered-offset-after', '');
841
- }
842
- const gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;
843
- if (gridEnabled) {
844
- swiper.grid.initSlides(slidesLength);
845
- }
846
-
847
- // Calc slides
848
- let slideSize;
849
- const shouldResetSlideSize = params.slidesPerView === 'auto' && params.breakpoints && Object.keys(params.breakpoints).filter(key => {
850
- return typeof params.breakpoints[key].slidesPerView !== 'undefined';
851
- }).length > 0;
852
- for (let i = 0; i < slidesLength; i += 1) {
853
- slideSize = 0;
854
- let slide;
855
- if (slides[i]) slide = slides[i];
856
- if (gridEnabled) {
857
- swiper.grid.updateSlide(i, slide, slidesLength, getDirectionLabel);
858
- }
859
- if (slides[i] && elementStyle(slide, 'display') === 'none') continue; // eslint-disable-line
860
-
861
- if (params.slidesPerView === 'auto') {
862
- if (shouldResetSlideSize) {
863
- slides[i].style[getDirectionLabel('width')] = ``;
864
- }
865
- const slideStyles = getComputedStyle(slide);
866
- const currentTransform = slide.style.transform;
867
- const currentWebKitTransform = slide.style.webkitTransform;
868
- if (currentTransform) {
869
- slide.style.transform = 'none';
870
- }
871
- if (currentWebKitTransform) {
872
- slide.style.webkitTransform = 'none';
873
- }
874
- if (params.roundLengths) {
875
- slideSize = swiper.isHorizontal() ? elementOuterSize(slide, 'width', true) : elementOuterSize(slide, 'height', true);
876
- } else {
877
- // eslint-disable-next-line
878
- const width = getDirectionPropertyValue(slideStyles, 'width');
879
- const paddingLeft = getDirectionPropertyValue(slideStyles, 'padding-left');
880
- const paddingRight = getDirectionPropertyValue(slideStyles, 'padding-right');
881
- const marginLeft = getDirectionPropertyValue(slideStyles, 'margin-left');
882
- const marginRight = getDirectionPropertyValue(slideStyles, 'margin-right');
883
- const boxSizing = slideStyles.getPropertyValue('box-sizing');
884
- if (boxSizing && boxSizing === 'border-box') {
885
- slideSize = width + marginLeft + marginRight;
886
- } else {
887
- const {
888
- clientWidth,
889
- offsetWidth
890
- } = slide;
891
- slideSize = width + paddingLeft + paddingRight + marginLeft + marginRight + (offsetWidth - clientWidth);
892
- }
893
- }
894
- if (currentTransform) {
895
- slide.style.transform = currentTransform;
896
- }
897
- if (currentWebKitTransform) {
898
- slide.style.webkitTransform = currentWebKitTransform;
899
- }
900
- if (params.roundLengths) slideSize = Math.floor(slideSize);
901
- } else {
902
- slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;
903
- if (params.roundLengths) slideSize = Math.floor(slideSize);
904
- if (slides[i]) {
905
- slides[i].style[getDirectionLabel('width')] = `${slideSize}px`;
906
- }
907
- }
908
- if (slides[i]) {
909
- slides[i].swiperSlideSize = slideSize;
910
- }
911
- slidesSizesGrid.push(slideSize);
912
- if (params.centeredSlides) {
913
- slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;
914
- if (prevSlideSize === 0 && i !== 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;
915
- if (i === 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;
916
- if (Math.abs(slidePosition) < 1 / 1000) slidePosition = 0;
917
- if (params.roundLengths) slidePosition = Math.floor(slidePosition);
918
- if (index % params.slidesPerGroup === 0) snapGrid.push(slidePosition);
919
- slidesGrid.push(slidePosition);
920
- } else {
921
- if (params.roundLengths) slidePosition = Math.floor(slidePosition);
922
- if ((index - Math.min(swiper.params.slidesPerGroupSkip, index)) % swiper.params.slidesPerGroup === 0) snapGrid.push(slidePosition);
923
- slidesGrid.push(slidePosition);
924
- slidePosition = slidePosition + slideSize + spaceBetween;
925
- }
926
- swiper.virtualSize += slideSize + spaceBetween;
927
- prevSlideSize = slideSize;
928
- index += 1;
929
- }
930
- swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;
931
- if (rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {
932
- wrapperEl.style.width = `${swiper.virtualSize + spaceBetween}px`;
933
- }
934
- if (params.setWrapperSize) {
935
- wrapperEl.style[getDirectionLabel('width')] = `${swiper.virtualSize + spaceBetween}px`;
936
- }
937
- if (gridEnabled) {
938
- swiper.grid.updateWrapperSize(slideSize, snapGrid, getDirectionLabel);
939
- }
940
-
941
- // Remove last grid elements depending on width
942
- if (!params.centeredSlides) {
943
- const newSlidesGrid = [];
944
- for (let i = 0; i < snapGrid.length; i += 1) {
945
- let slidesGridItem = snapGrid[i];
946
- if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);
947
- if (snapGrid[i] <= swiper.virtualSize - swiperSize) {
948
- newSlidesGrid.push(slidesGridItem);
949
- }
950
- }
951
- snapGrid = newSlidesGrid;
952
- if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {
953
- snapGrid.push(swiper.virtualSize - swiperSize);
954
- }
955
- }
956
- if (isVirtual && params.loop) {
957
- const size = slidesSizesGrid[0] + spaceBetween;
958
- if (params.slidesPerGroup > 1) {
959
- const groups = Math.ceil((swiper.virtual.slidesBefore + swiper.virtual.slidesAfter) / params.slidesPerGroup);
960
- const groupSize = size * params.slidesPerGroup;
961
- for (let i = 0; i < groups; i += 1) {
962
- snapGrid.push(snapGrid[snapGrid.length - 1] + groupSize);
963
- }
964
- }
965
- for (let i = 0; i < swiper.virtual.slidesBefore + swiper.virtual.slidesAfter; i += 1) {
966
- if (params.slidesPerGroup === 1) {
967
- snapGrid.push(snapGrid[snapGrid.length - 1] + size);
968
- }
969
- slidesGrid.push(slidesGrid[slidesGrid.length - 1] + size);
970
- swiper.virtualSize += size;
971
- }
972
- }
973
- if (snapGrid.length === 0) snapGrid = [0];
974
- if (spaceBetween !== 0) {
975
- const key = swiper.isHorizontal() && rtl ? 'marginLeft' : getDirectionLabel('marginRight');
976
- slides.filter((_, slideIndex) => {
977
- if (!params.cssMode || params.loop) return true;
978
- if (slideIndex === slides.length - 1) {
979
- return false;
980
- }
981
- return true;
982
- }).forEach(slideEl => {
983
- slideEl.style[key] = `${spaceBetween}px`;
984
- });
985
- }
986
- if (params.centeredSlides && params.centeredSlidesBounds) {
987
- let allSlidesSize = 0;
988
- slidesSizesGrid.forEach(slideSizeValue => {
989
- allSlidesSize += slideSizeValue + (spaceBetween || 0);
990
- });
991
- allSlidesSize -= spaceBetween;
992
- const maxSnap = allSlidesSize - swiperSize;
993
- snapGrid = snapGrid.map(snap => {
994
- if (snap <= 0) return -offsetBefore;
995
- if (snap > maxSnap) return maxSnap + offsetAfter;
996
- return snap;
997
- });
998
- }
999
- if (params.centerInsufficientSlides) {
1000
- let allSlidesSize = 0;
1001
- slidesSizesGrid.forEach(slideSizeValue => {
1002
- allSlidesSize += slideSizeValue + (spaceBetween || 0);
1003
- });
1004
- allSlidesSize -= spaceBetween;
1005
- if (allSlidesSize < swiperSize) {
1006
- const allSlidesOffset = (swiperSize - allSlidesSize) / 2;
1007
- snapGrid.forEach((snap, snapIndex) => {
1008
- snapGrid[snapIndex] = snap - allSlidesOffset;
1009
- });
1010
- slidesGrid.forEach((snap, snapIndex) => {
1011
- slidesGrid[snapIndex] = snap + allSlidesOffset;
1012
- });
1013
- }
1014
- }
1015
- Object.assign(swiper, {
1016
- slides,
1017
- snapGrid,
1018
- slidesGrid,
1019
- slidesSizesGrid
1020
- });
1021
- if (params.centeredSlides && params.cssMode && !params.centeredSlidesBounds) {
1022
- setCSSProperty(wrapperEl, '--swiper-centered-offset-before', `${-snapGrid[0]}px`);
1023
- setCSSProperty(wrapperEl, '--swiper-centered-offset-after', `${swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2}px`);
1024
- const addToSnapGrid = -swiper.snapGrid[0];
1025
- const addToSlidesGrid = -swiper.slidesGrid[0];
1026
- swiper.snapGrid = swiper.snapGrid.map(v => v + addToSnapGrid);
1027
- swiper.slidesGrid = swiper.slidesGrid.map(v => v + addToSlidesGrid);
1028
- }
1029
- if (slidesLength !== previousSlidesLength) {
1030
- swiper.emit('slidesLengthChange');
1031
- }
1032
- if (snapGrid.length !== previousSnapGridLength) {
1033
- if (swiper.params.watchOverflow) swiper.checkOverflow();
1034
- swiper.emit('snapGridLengthChange');
1035
- }
1036
- if (slidesGrid.length !== previousSlidesGridLength) {
1037
- swiper.emit('slidesGridLengthChange');
1038
- }
1039
- if (params.watchSlidesProgress) {
1040
- swiper.updateSlidesOffset();
1041
- }
1042
- if (!isVirtual && !params.cssMode && (params.effect === 'slide' || params.effect === 'fade')) {
1043
- const backFaceHiddenClass = `${params.containerModifierClass}backface-hidden`;
1044
- const hasClassBackfaceClassAdded = swiper.el.classList.contains(backFaceHiddenClass);
1045
- if (slidesLength <= params.maxBackfaceHiddenSlides) {
1046
- if (!hasClassBackfaceClassAdded) swiper.el.classList.add(backFaceHiddenClass);
1047
- } else if (hasClassBackfaceClassAdded) {
1048
- swiper.el.classList.remove(backFaceHiddenClass);
1049
- }
1050
- }
1051
- }
1052
-
1053
- function updateAutoHeight(speed) {
1054
- const swiper = this;
1055
- const activeSlides = [];
1056
- const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
1057
- let newHeight = 0;
1058
- let i;
1059
- if (typeof speed === 'number') {
1060
- swiper.setTransition(speed);
1061
- } else if (speed === true) {
1062
- swiper.setTransition(swiper.params.speed);
1063
- }
1064
- const getSlideByIndex = index => {
1065
- if (isVirtual) {
1066
- return swiper.slides[swiper.getSlideIndexByData(index)];
1067
- }
1068
- return swiper.slides[index];
1069
- };
1070
- // Find slides currently in view
1071
- if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {
1072
- if (swiper.params.centeredSlides) {
1073
- (swiper.visibleSlides || []).forEach(slide => {
1074
- activeSlides.push(slide);
1075
- });
1076
- } else {
1077
- for (i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1) {
1078
- const index = swiper.activeIndex + i;
1079
- if (index > swiper.slides.length && !isVirtual) break;
1080
- activeSlides.push(getSlideByIndex(index));
1081
- }
1082
- }
1083
- } else {
1084
- activeSlides.push(getSlideByIndex(swiper.activeIndex));
1085
- }
1086
-
1087
- // Find new height from highest slide in view
1088
- for (i = 0; i < activeSlides.length; i += 1) {
1089
- if (typeof activeSlides[i] !== 'undefined') {
1090
- const height = activeSlides[i].offsetHeight;
1091
- newHeight = height > newHeight ? height : newHeight;
1092
- }
1093
- }
1094
-
1095
- // Update Height
1096
- if (newHeight || newHeight === 0) swiper.wrapperEl.style.height = `${newHeight}px`;
1097
- }
1098
-
1099
- function updateSlidesOffset() {
1100
- const swiper = this;
1101
- const slides = swiper.slides;
1102
- // eslint-disable-next-line
1103
- const minusOffset = swiper.isElement ? swiper.isHorizontal() ? swiper.wrapperEl.offsetLeft : swiper.wrapperEl.offsetTop : 0;
1104
- for (let i = 0; i < slides.length; i += 1) {
1105
- slides[i].swiperSlideOffset = (swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) - minusOffset - swiper.cssOverflowAdjustment();
1106
- }
1107
- }
1108
-
1109
- function updateSlidesProgress(translate = this && this.translate || 0) {
1110
- const swiper = this;
1111
- const params = swiper.params;
1112
- const {
1113
- slides,
1114
- rtlTranslate: rtl,
1115
- snapGrid
1116
- } = swiper;
1117
- if (slides.length === 0) return;
1118
- if (typeof slides[0].swiperSlideOffset === 'undefined') swiper.updateSlidesOffset();
1119
- let offsetCenter = -translate;
1120
- if (rtl) offsetCenter = translate;
1121
-
1122
- // Visible Slides
1123
- slides.forEach(slideEl => {
1124
- slideEl.classList.remove(params.slideVisibleClass);
1125
- });
1126
- swiper.visibleSlidesIndexes = [];
1127
- swiper.visibleSlides = [];
1128
- let spaceBetween = params.spaceBetween;
1129
- if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
1130
- spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiper.size;
1131
- } else if (typeof spaceBetween === 'string') {
1132
- spaceBetween = parseFloat(spaceBetween);
1133
- }
1134
- for (let i = 0; i < slides.length; i += 1) {
1135
- const slide = slides[i];
1136
- let slideOffset = slide.swiperSlideOffset;
1137
- if (params.cssMode && params.centeredSlides) {
1138
- slideOffset -= slides[0].swiperSlideOffset;
1139
- }
1140
- const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);
1141
- const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);
1142
- const slideBefore = -(offsetCenter - slideOffset);
1143
- const slideAfter = slideBefore + swiper.slidesSizesGrid[i];
1144
- const isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;
1145
- if (isVisible) {
1146
- swiper.visibleSlides.push(slide);
1147
- swiper.visibleSlidesIndexes.push(i);
1148
- slides[i].classList.add(params.slideVisibleClass);
1149
- }
1150
- slide.progress = rtl ? -slideProgress : slideProgress;
1151
- slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;
1152
- }
1153
- }
1154
-
1155
- function updateProgress(translate) {
1156
- const swiper = this;
1157
- if (typeof translate === 'undefined') {
1158
- const multiplier = swiper.rtlTranslate ? -1 : 1;
1159
- // eslint-disable-next-line
1160
- translate = swiper && swiper.translate && swiper.translate * multiplier || 0;
1161
- }
1162
- const params = swiper.params;
1163
- const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
1164
- let {
1165
- progress,
1166
- isBeginning,
1167
- isEnd,
1168
- progressLoop
1169
- } = swiper;
1170
- const wasBeginning = isBeginning;
1171
- const wasEnd = isEnd;
1172
- if (translatesDiff === 0) {
1173
- progress = 0;
1174
- isBeginning = true;
1175
- isEnd = true;
1176
- } else {
1177
- progress = (translate - swiper.minTranslate()) / translatesDiff;
1178
- const isBeginningRounded = Math.abs(translate - swiper.minTranslate()) < 1;
1179
- const isEndRounded = Math.abs(translate - swiper.maxTranslate()) < 1;
1180
- isBeginning = isBeginningRounded || progress <= 0;
1181
- isEnd = isEndRounded || progress >= 1;
1182
- if (isBeginningRounded) progress = 0;
1183
- if (isEndRounded) progress = 1;
1184
- }
1185
- if (params.loop) {
1186
- const firstSlideIndex = swiper.getSlideIndexByData(0);
1187
- const lastSlideIndex = swiper.getSlideIndexByData(swiper.slides.length - 1);
1188
- const firstSlideTranslate = swiper.slidesGrid[firstSlideIndex];
1189
- const lastSlideTranslate = swiper.slidesGrid[lastSlideIndex];
1190
- const translateMax = swiper.slidesGrid[swiper.slidesGrid.length - 1];
1191
- const translateAbs = Math.abs(translate);
1192
- if (translateAbs >= firstSlideTranslate) {
1193
- progressLoop = (translateAbs - firstSlideTranslate) / translateMax;
1194
- } else {
1195
- progressLoop = (translateAbs + translateMax - lastSlideTranslate) / translateMax;
1196
- }
1197
- if (progressLoop > 1) progressLoop -= 1;
1198
- }
1199
- Object.assign(swiper, {
1200
- progress,
1201
- progressLoop,
1202
- isBeginning,
1203
- isEnd
1204
- });
1205
- if (params.watchSlidesProgress || params.centeredSlides && params.autoHeight) swiper.updateSlidesProgress(translate);
1206
- if (isBeginning && !wasBeginning) {
1207
- swiper.emit('reachBeginning toEdge');
1208
- }
1209
- if (isEnd && !wasEnd) {
1210
- swiper.emit('reachEnd toEdge');
1211
- }
1212
- if (wasBeginning && !isBeginning || wasEnd && !isEnd) {
1213
- swiper.emit('fromEdge');
1214
- }
1215
- swiper.emit('progress', progress);
1216
- }
1217
-
1218
- function updateSlidesClasses() {
1219
- const swiper = this;
1220
- const {
1221
- slides,
1222
- params,
1223
- slidesEl,
1224
- activeIndex
1225
- } = swiper;
1226
- const isVirtual = swiper.virtual && params.virtual.enabled;
1227
- const getFilteredSlide = selector => {
1228
- return elementChildren(slidesEl, `.${params.slideClass}${selector}, swiper-slide${selector}`)[0];
1229
- };
1230
- slides.forEach(slideEl => {
1231
- slideEl.classList.remove(params.slideActiveClass, params.slideNextClass, params.slidePrevClass);
1232
- });
1233
- let activeSlide;
1234
- if (isVirtual) {
1235
- if (params.loop) {
1236
- let slideIndex = activeIndex - swiper.virtual.slidesBefore;
1237
- if (slideIndex < 0) slideIndex = swiper.virtual.slides.length + slideIndex;
1238
- if (slideIndex >= swiper.virtual.slides.length) slideIndex -= swiper.virtual.slides.length;
1239
- activeSlide = getFilteredSlide(`[data-swiper-slide-index="${slideIndex}"]`);
1240
- } else {
1241
- activeSlide = getFilteredSlide(`[data-swiper-slide-index="${activeIndex}"]`);
1242
- }
1243
- } else {
1244
- activeSlide = slides[activeIndex];
1245
- }
1246
- if (activeSlide) {
1247
- // Active classes
1248
- activeSlide.classList.add(params.slideActiveClass);
1249
-
1250
- // Next Slide
1251
- let nextSlide = elementNextAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];
1252
- if (params.loop && !nextSlide) {
1253
- nextSlide = slides[0];
1254
- }
1255
- if (nextSlide) {
1256
- nextSlide.classList.add(params.slideNextClass);
1257
- }
1258
- // Prev Slide
1259
- let prevSlide = elementPrevAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];
1260
- if (params.loop && !prevSlide === 0) {
1261
- prevSlide = slides[slides.length - 1];
1262
- }
1263
- if (prevSlide) {
1264
- prevSlide.classList.add(params.slidePrevClass);
1265
- }
1266
- }
1267
- swiper.emitSlidesClasses();
1268
- }
1269
-
1270
- const processLazyPreloader = (swiper, imageEl) => {
1271
- if (!swiper || swiper.destroyed || !swiper.params) return;
1272
- const slideSelector = () => swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;
1273
- const slideEl = imageEl.closest(slideSelector());
1274
- if (slideEl) {
1275
- const lazyEl = slideEl.querySelector(`.${swiper.params.lazyPreloaderClass}`);
1276
- if (lazyEl) lazyEl.remove();
1277
- }
1278
- };
1279
- const unlazy = (swiper, index) => {
1280
- if (!swiper.slides[index]) return;
1281
- const imageEl = swiper.slides[index].querySelector('[loading="lazy"]');
1282
- if (imageEl) imageEl.removeAttribute('loading');
1283
- };
1284
- const preload = swiper => {
1285
- if (!swiper || swiper.destroyed || !swiper.params) return;
1286
- let amount = swiper.params.lazyPreloadPrevNext;
1287
- const len = swiper.slides.length;
1288
- if (!len || !amount || amount < 0) return;
1289
- amount = Math.min(amount, len);
1290
- const slidesPerView = swiper.params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(swiper.params.slidesPerView);
1291
- const activeIndex = swiper.activeIndex;
1292
- if (swiper.params.grid && swiper.params.grid.rows > 1) {
1293
- const activeColumn = activeIndex;
1294
- const preloadColumns = [activeColumn - amount];
1295
- preloadColumns.push(...Array.from({
1296
- length: amount
1297
- }).map((_, i) => {
1298
- return activeColumn + slidesPerView + i;
1299
- }));
1300
- swiper.slides.forEach((slideEl, i) => {
1301
- if (preloadColumns.includes(slideEl.column)) unlazy(swiper, i);
1302
- });
1303
- return;
1304
- }
1305
- const slideIndexLastInView = activeIndex + slidesPerView - 1;
1306
- if (swiper.params.rewind || swiper.params.loop) {
1307
- for (let i = activeIndex - amount; i <= slideIndexLastInView + amount; i += 1) {
1308
- const realIndex = (i % len + len) % len;
1309
- if (realIndex < activeIndex || realIndex > slideIndexLastInView) unlazy(swiper, realIndex);
1310
- }
1311
- } else {
1312
- for (let i = Math.max(activeIndex - amount, 0); i <= Math.min(slideIndexLastInView + amount, len - 1); i += 1) {
1313
- if (i !== activeIndex && (i > slideIndexLastInView || i < activeIndex)) {
1314
- unlazy(swiper, i);
1315
- }
1316
- }
1317
- }
1318
- };
1319
-
1320
- function getActiveIndexByTranslate(swiper) {
1321
- const {
1322
- slidesGrid,
1323
- params
1324
- } = swiper;
1325
- const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;
1326
- let activeIndex;
1327
- for (let i = 0; i < slidesGrid.length; i += 1) {
1328
- if (typeof slidesGrid[i + 1] !== 'undefined') {
1329
- if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - (slidesGrid[i + 1] - slidesGrid[i]) / 2) {
1330
- activeIndex = i;
1331
- } else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) {
1332
- activeIndex = i + 1;
1333
- }
1334
- } else if (translate >= slidesGrid[i]) {
1335
- activeIndex = i;
1336
- }
1337
- }
1338
- // Normalize slideIndex
1339
- if (params.normalizeSlideIndex) {
1340
- if (activeIndex < 0 || typeof activeIndex === 'undefined') activeIndex = 0;
1341
- }
1342
- return activeIndex;
1343
- }
1344
- function updateActiveIndex(newActiveIndex) {
1345
- const swiper = this;
1346
- const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;
1347
- const {
1348
- snapGrid,
1349
- params,
1350
- activeIndex: previousIndex,
1351
- realIndex: previousRealIndex,
1352
- snapIndex: previousSnapIndex
1353
- } = swiper;
1354
- let activeIndex = newActiveIndex;
1355
- let snapIndex;
1356
- const getVirtualRealIndex = aIndex => {
1357
- let realIndex = aIndex - swiper.virtual.slidesBefore;
1358
- if (realIndex < 0) {
1359
- realIndex = swiper.virtual.slides.length + realIndex;
1360
- }
1361
- if (realIndex >= swiper.virtual.slides.length) {
1362
- realIndex -= swiper.virtual.slides.length;
1363
- }
1364
- return realIndex;
1365
- };
1366
- if (typeof activeIndex === 'undefined') {
1367
- activeIndex = getActiveIndexByTranslate(swiper);
1368
- }
1369
- if (snapGrid.indexOf(translate) >= 0) {
1370
- snapIndex = snapGrid.indexOf(translate);
1371
- } else {
1372
- const skip = Math.min(params.slidesPerGroupSkip, activeIndex);
1373
- snapIndex = skip + Math.floor((activeIndex - skip) / params.slidesPerGroup);
1374
- }
1375
- if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;
1376
- if (activeIndex === previousIndex) {
1377
- if (snapIndex !== previousSnapIndex) {
1378
- swiper.snapIndex = snapIndex;
1379
- swiper.emit('snapIndexChange');
1380
- }
1381
- if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {
1382
- swiper.realIndex = getVirtualRealIndex(activeIndex);
1383
- }
1384
- return;
1385
- }
1386
- // Get real index
1387
- let realIndex;
1388
- if (swiper.virtual && params.virtual.enabled && params.loop) {
1389
- realIndex = getVirtualRealIndex(activeIndex);
1390
- } else if (swiper.slides[activeIndex]) {
1391
- realIndex = parseInt(swiper.slides[activeIndex].getAttribute('data-swiper-slide-index') || activeIndex, 10);
1392
- } else {
1393
- realIndex = activeIndex;
1394
- }
1395
- Object.assign(swiper, {
1396
- previousSnapIndex,
1397
- snapIndex,
1398
- previousRealIndex,
1399
- realIndex,
1400
- previousIndex,
1401
- activeIndex
1402
- });
1403
- if (swiper.initialized) {
1404
- preload(swiper);
1405
- }
1406
- swiper.emit('activeIndexChange');
1407
- swiper.emit('snapIndexChange');
1408
- if (previousRealIndex !== realIndex) {
1409
- swiper.emit('realIndexChange');
1410
- }
1411
- if (swiper.initialized || swiper.params.runCallbacksOnInit) {
1412
- swiper.emit('slideChange');
1413
- }
1414
- }
1415
-
1416
- function updateClickedSlide(e) {
1417
- const swiper = this;
1418
- const params = swiper.params;
1419
- const slide = e.closest(`.${params.slideClass}, swiper-slide`);
1420
- let slideFound = false;
1421
- let slideIndex;
1422
- if (slide) {
1423
- for (let i = 0; i < swiper.slides.length; i += 1) {
1424
- if (swiper.slides[i] === slide) {
1425
- slideFound = true;
1426
- slideIndex = i;
1427
- break;
1428
- }
1429
- }
1430
- }
1431
- if (slide && slideFound) {
1432
- swiper.clickedSlide = slide;
1433
- if (swiper.virtual && swiper.params.virtual.enabled) {
1434
- swiper.clickedIndex = parseInt(slide.getAttribute('data-swiper-slide-index'), 10);
1435
- } else {
1436
- swiper.clickedIndex = slideIndex;
1437
- }
1438
- } else {
1439
- swiper.clickedSlide = undefined;
1440
- swiper.clickedIndex = undefined;
1441
- return;
1442
- }
1443
- if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) {
1444
- swiper.slideToClickedSlide();
1445
- }
1446
- }
1447
-
1448
- const update = {
1449
- updateSize,
1450
- updateSlides,
1451
- updateAutoHeight,
1452
- updateSlidesOffset,
1453
- updateSlidesProgress,
1454
- updateProgress,
1455
- updateSlidesClasses,
1456
- updateActiveIndex,
1457
- updateClickedSlide
1458
- };
1459
-
1460
- function getSwiperTranslate(axis = this.isHorizontal() ? 'x' : 'y') {
1461
- const swiper = this;
1462
- const {
1463
- params,
1464
- rtlTranslate: rtl,
1465
- translate,
1466
- wrapperEl
1467
- } = swiper;
1468
- if (params.virtualTranslate) {
1469
- return rtl ? -translate : translate;
1470
- }
1471
- if (params.cssMode) {
1472
- return translate;
1473
- }
1474
- let currentTranslate = getTranslate(wrapperEl, axis);
1475
- currentTranslate += swiper.cssOverflowAdjustment();
1476
- if (rtl) currentTranslate = -currentTranslate;
1477
- return currentTranslate || 0;
1478
- }
1479
-
1480
- function setTranslate(translate, byController) {
1481
- const swiper = this;
1482
- const {
1483
- rtlTranslate: rtl,
1484
- params,
1485
- wrapperEl,
1486
- progress
1487
- } = swiper;
1488
- let x = 0;
1489
- let y = 0;
1490
- const z = 0;
1491
- if (swiper.isHorizontal()) {
1492
- x = rtl ? -translate : translate;
1493
- } else {
1494
- y = translate;
1495
- }
1496
- if (params.roundLengths) {
1497
- x = Math.floor(x);
1498
- y = Math.floor(y);
1499
- }
1500
- swiper.previousTranslate = swiper.translate;
1501
- swiper.translate = swiper.isHorizontal() ? x : y;
1502
- if (params.cssMode) {
1503
- wrapperEl[swiper.isHorizontal() ? 'scrollLeft' : 'scrollTop'] = swiper.isHorizontal() ? -x : -y;
1504
- } else if (!params.virtualTranslate) {
1505
- if (swiper.isHorizontal()) {
1506
- x -= swiper.cssOverflowAdjustment();
1507
- } else {
1508
- y -= swiper.cssOverflowAdjustment();
1509
- }
1510
- wrapperEl.style.transform = `translate3d(${x}px, ${y}px, ${z}px)`;
1511
- }
1512
-
1513
- // Check if we need to update progress
1514
- let newProgress;
1515
- const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
1516
- if (translatesDiff === 0) {
1517
- newProgress = 0;
1518
- } else {
1519
- newProgress = (translate - swiper.minTranslate()) / translatesDiff;
1520
- }
1521
- if (newProgress !== progress) {
1522
- swiper.updateProgress(translate);
1523
- }
1524
- swiper.emit('setTranslate', swiper.translate, byController);
1525
- }
1526
-
1527
- function minTranslate() {
1528
- return -this.snapGrid[0];
1529
- }
1530
-
1531
- function maxTranslate() {
1532
- return -this.snapGrid[this.snapGrid.length - 1];
1533
- }
1534
-
1535
- function translateTo(translate = 0, speed = this.params.speed, runCallbacks = true, translateBounds = true, internal) {
1536
- const swiper = this;
1537
- const {
1538
- params,
1539
- wrapperEl
1540
- } = swiper;
1541
- if (swiper.animating && params.preventInteractionOnTransition) {
1542
- return false;
1543
- }
1544
- const minTranslate = swiper.minTranslate();
1545
- const maxTranslate = swiper.maxTranslate();
1546
- let newTranslate;
1547
- if (translateBounds && translate > minTranslate) newTranslate = minTranslate;else if (translateBounds && translate < maxTranslate) newTranslate = maxTranslate;else newTranslate = translate;
1548
-
1549
- // Update progress
1550
- swiper.updateProgress(newTranslate);
1551
- if (params.cssMode) {
1552
- const isH = swiper.isHorizontal();
1553
- if (speed === 0) {
1554
- wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = -newTranslate;
1555
- } else {
1556
- if (!swiper.support.smoothScroll) {
1557
- animateCSSModeScroll({
1558
- swiper,
1559
- targetPosition: -newTranslate,
1560
- side: isH ? 'left' : 'top'
1561
- });
1562
- return true;
1563
- }
1564
- wrapperEl.scrollTo({
1565
- [isH ? 'left' : 'top']: -newTranslate,
1566
- behavior: 'smooth'
1567
- });
1568
- }
1569
- return true;
1570
- }
1571
- if (speed === 0) {
1572
- swiper.setTransition(0);
1573
- swiper.setTranslate(newTranslate);
1574
- if (runCallbacks) {
1575
- swiper.emit('beforeTransitionStart', speed, internal);
1576
- swiper.emit('transitionEnd');
1577
- }
1578
- } else {
1579
- swiper.setTransition(speed);
1580
- swiper.setTranslate(newTranslate);
1581
- if (runCallbacks) {
1582
- swiper.emit('beforeTransitionStart', speed, internal);
1583
- swiper.emit('transitionStart');
1584
- }
1585
- if (!swiper.animating) {
1586
- swiper.animating = true;
1587
- if (!swiper.onTranslateToWrapperTransitionEnd) {
1588
- swiper.onTranslateToWrapperTransitionEnd = function transitionEnd(e) {
1589
- if (!swiper || swiper.destroyed) return;
1590
- if (e.target !== this) return;
1591
- swiper.wrapperEl.removeEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);
1592
- swiper.onTranslateToWrapperTransitionEnd = null;
1593
- delete swiper.onTranslateToWrapperTransitionEnd;
1594
- if (runCallbacks) {
1595
- swiper.emit('transitionEnd');
1596
- }
1597
- };
1598
- }
1599
- swiper.wrapperEl.addEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);
1600
- }
1601
- }
1602
- return true;
1603
- }
1604
-
1605
- const translate = {
1606
- getTranslate: getSwiperTranslate,
1607
- setTranslate,
1608
- minTranslate,
1609
- maxTranslate,
1610
- translateTo
1611
- };
1612
-
1613
- function setTransition(duration, byController) {
1614
- const swiper = this;
1615
- if (!swiper.params.cssMode) {
1616
- swiper.wrapperEl.style.transitionDuration = `${duration}ms`;
1617
- }
1618
- swiper.emit('setTransition', duration, byController);
1619
- }
1620
-
1621
- function transitionEmit({
1622
- swiper,
1623
- runCallbacks,
1624
- direction,
1625
- step
1626
- }) {
1627
- const {
1628
- activeIndex,
1629
- previousIndex
1630
- } = swiper;
1631
- let dir = direction;
1632
- if (!dir) {
1633
- if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';
1634
- }
1635
- swiper.emit(`transition${step}`);
1636
- if (runCallbacks && activeIndex !== previousIndex) {
1637
- if (dir === 'reset') {
1638
- swiper.emit(`slideResetTransition${step}`);
1639
- return;
1640
- }
1641
- swiper.emit(`slideChangeTransition${step}`);
1642
- if (dir === 'next') {
1643
- swiper.emit(`slideNextTransition${step}`);
1644
- } else {
1645
- swiper.emit(`slidePrevTransition${step}`);
1646
- }
1647
- }
1648
- }
1649
-
1650
- function transitionStart(runCallbacks = true, direction) {
1651
- const swiper = this;
1652
- const {
1653
- params
1654
- } = swiper;
1655
- if (params.cssMode) return;
1656
- if (params.autoHeight) {
1657
- swiper.updateAutoHeight();
1658
- }
1659
- transitionEmit({
1660
- swiper,
1661
- runCallbacks,
1662
- direction,
1663
- step: 'Start'
1664
- });
1665
- }
1666
-
1667
- function transitionEnd(runCallbacks = true, direction) {
1668
- const swiper = this;
1669
- const {
1670
- params
1671
- } = swiper;
1672
- swiper.animating = false;
1673
- if (params.cssMode) return;
1674
- swiper.setTransition(0);
1675
- transitionEmit({
1676
- swiper,
1677
- runCallbacks,
1678
- direction,
1679
- step: 'End'
1680
- });
1681
- }
1682
-
1683
- const transition = {
1684
- setTransition,
1685
- transitionStart,
1686
- transitionEnd
1687
- };
1688
-
1689
- function slideTo(index = 0, speed = this.params.speed, runCallbacks = true, internal, initial) {
1690
- if (typeof index === 'string') {
1691
- index = parseInt(index, 10);
1692
- }
1693
- const swiper = this;
1694
- let slideIndex = index;
1695
- if (slideIndex < 0) slideIndex = 0;
1696
- const {
1697
- params,
1698
- snapGrid,
1699
- slidesGrid,
1700
- previousIndex,
1701
- activeIndex,
1702
- rtlTranslate: rtl,
1703
- wrapperEl,
1704
- enabled
1705
- } = swiper;
1706
- if (swiper.animating && params.preventInteractionOnTransition || !enabled && !internal && !initial) {
1707
- return false;
1708
- }
1709
- const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
1710
- let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);
1711
- if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;
1712
- const translate = -snapGrid[snapIndex];
1713
- // Normalize slideIndex
1714
- if (params.normalizeSlideIndex) {
1715
- for (let i = 0; i < slidesGrid.length; i += 1) {
1716
- const normalizedTranslate = -Math.floor(translate * 100);
1717
- const normalizedGrid = Math.floor(slidesGrid[i] * 100);
1718
- const normalizedGridNext = Math.floor(slidesGrid[i + 1] * 100);
1719
- if (typeof slidesGrid[i + 1] !== 'undefined') {
1720
- if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext - (normalizedGridNext - normalizedGrid) / 2) {
1721
- slideIndex = i;
1722
- } else if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext) {
1723
- slideIndex = i + 1;
1724
- }
1725
- } else if (normalizedTranslate >= normalizedGrid) {
1726
- slideIndex = i;
1727
- }
1728
- }
1729
- }
1730
- // Directions locks
1731
- if (swiper.initialized && slideIndex !== activeIndex) {
1732
- if (!swiper.allowSlideNext && (rtl ? translate > swiper.translate && translate > swiper.minTranslate() : translate < swiper.translate && translate < swiper.minTranslate())) {
1733
- return false;
1734
- }
1735
- if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {
1736
- if ((activeIndex || 0) !== slideIndex) {
1737
- return false;
1738
- }
1739
- }
1740
- }
1741
- if (slideIndex !== (previousIndex || 0) && runCallbacks) {
1742
- swiper.emit('beforeSlideChangeStart');
1743
- }
1744
-
1745
- // Update progress
1746
- swiper.updateProgress(translate);
1747
- let direction;
1748
- if (slideIndex > activeIndex) direction = 'next';else if (slideIndex < activeIndex) direction = 'prev';else direction = 'reset';
1749
-
1750
- // Update Index
1751
- if (rtl && -translate === swiper.translate || !rtl && translate === swiper.translate) {
1752
- swiper.updateActiveIndex(slideIndex);
1753
- // Update Height
1754
- if (params.autoHeight) {
1755
- swiper.updateAutoHeight();
1756
- }
1757
- swiper.updateSlidesClasses();
1758
- if (params.effect !== 'slide') {
1759
- swiper.setTranslate(translate);
1760
- }
1761
- if (direction !== 'reset') {
1762
- swiper.transitionStart(runCallbacks, direction);
1763
- swiper.transitionEnd(runCallbacks, direction);
1764
- }
1765
- return false;
1766
- }
1767
- if (params.cssMode) {
1768
- const isH = swiper.isHorizontal();
1769
- const t = rtl ? translate : -translate;
1770
- if (speed === 0) {
1771
- const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
1772
- if (isVirtual) {
1773
- swiper.wrapperEl.style.scrollSnapType = 'none';
1774
- swiper._immediateVirtual = true;
1775
- }
1776
- if (isVirtual && !swiper._cssModeVirtualInitialSet && swiper.params.initialSlide > 0) {
1777
- swiper._cssModeVirtualInitialSet = true;
1778
- requestAnimationFrame(() => {
1779
- wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;
1780
- });
1781
- } else {
1782
- wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;
1783
- }
1784
- if (isVirtual) {
1785
- requestAnimationFrame(() => {
1786
- swiper.wrapperEl.style.scrollSnapType = '';
1787
- swiper._immediateVirtual = false;
1788
- });
1789
- }
1790
- } else {
1791
- if (!swiper.support.smoothScroll) {
1792
- animateCSSModeScroll({
1793
- swiper,
1794
- targetPosition: t,
1795
- side: isH ? 'left' : 'top'
1796
- });
1797
- return true;
1798
- }
1799
- wrapperEl.scrollTo({
1800
- [isH ? 'left' : 'top']: t,
1801
- behavior: 'smooth'
1802
- });
1803
- }
1804
- return true;
1805
- }
1806
- swiper.setTransition(speed);
1807
- swiper.setTranslate(translate);
1808
- swiper.updateActiveIndex(slideIndex);
1809
- swiper.updateSlidesClasses();
1810
- swiper.emit('beforeTransitionStart', speed, internal);
1811
- swiper.transitionStart(runCallbacks, direction);
1812
- if (speed === 0) {
1813
- swiper.transitionEnd(runCallbacks, direction);
1814
- } else if (!swiper.animating) {
1815
- swiper.animating = true;
1816
- if (!swiper.onSlideToWrapperTransitionEnd) {
1817
- swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {
1818
- if (!swiper || swiper.destroyed) return;
1819
- if (e.target !== this) return;
1820
- swiper.wrapperEl.removeEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);
1821
- swiper.onSlideToWrapperTransitionEnd = null;
1822
- delete swiper.onSlideToWrapperTransitionEnd;
1823
- swiper.transitionEnd(runCallbacks, direction);
1824
- };
1825
- }
1826
- swiper.wrapperEl.addEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);
1827
- }
1828
- return true;
1829
- }
1830
-
1831
- function slideToLoop(index = 0, speed = this.params.speed, runCallbacks = true, internal) {
1832
- if (typeof index === 'string') {
1833
- const indexAsNumber = parseInt(index, 10);
1834
- index = indexAsNumber;
1835
- }
1836
- const swiper = this;
1837
- let newIndex = index;
1838
- if (swiper.params.loop) {
1839
- if (swiper.virtual && swiper.params.virtual.enabled) {
1840
- // eslint-disable-next-line
1841
- newIndex = newIndex + swiper.virtual.slidesBefore;
1842
- } else {
1843
- newIndex = swiper.getSlideIndexByData(newIndex);
1844
- }
1845
- }
1846
- return swiper.slideTo(newIndex, speed, runCallbacks, internal);
1847
- }
1848
-
1849
- /* eslint no-unused-vars: "off" */
1850
- function slideNext(speed = this.params.speed, runCallbacks = true, internal) {
1851
- const swiper = this;
1852
- const {
1853
- enabled,
1854
- params,
1855
- animating
1856
- } = swiper;
1857
- if (!enabled) return swiper;
1858
- let perGroup = params.slidesPerGroup;
1859
- if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {
1860
- perGroup = Math.max(swiper.slidesPerViewDynamic('current', true), 1);
1861
- }
1862
- const increment = swiper.activeIndex < params.slidesPerGroupSkip ? 1 : perGroup;
1863
- const isVirtual = swiper.virtual && params.virtual.enabled;
1864
- if (params.loop) {
1865
- if (animating && !isVirtual && params.loopPreventsSliding) return false;
1866
- swiper.loopFix({
1867
- direction: 'next'
1868
- });
1869
- // eslint-disable-next-line
1870
- swiper._clientLeft = swiper.wrapperEl.clientLeft;
1871
- }
1872
- if (params.rewind && swiper.isEnd) {
1873
- return swiper.slideTo(0, speed, runCallbacks, internal);
1874
- }
1875
- return swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);
1876
- }
1877
-
1878
- /* eslint no-unused-vars: "off" */
1879
- function slidePrev(speed = this.params.speed, runCallbacks = true, internal) {
1880
- const swiper = this;
1881
- const {
1882
- params,
1883
- snapGrid,
1884
- slidesGrid,
1885
- rtlTranslate,
1886
- enabled,
1887
- animating
1888
- } = swiper;
1889
- if (!enabled) return swiper;
1890
- const isVirtual = swiper.virtual && params.virtual.enabled;
1891
- if (params.loop) {
1892
- if (animating && !isVirtual && params.loopPreventsSliding) return false;
1893
- swiper.loopFix({
1894
- direction: 'prev'
1895
- });
1896
- // eslint-disable-next-line
1897
- swiper._clientLeft = swiper.wrapperEl.clientLeft;
1898
- }
1899
- const translate = rtlTranslate ? swiper.translate : -swiper.translate;
1900
- function normalize(val) {
1901
- if (val < 0) return -Math.floor(Math.abs(val));
1902
- return Math.floor(val);
1903
- }
1904
- const normalizedTranslate = normalize(translate);
1905
- const normalizedSnapGrid = snapGrid.map(val => normalize(val));
1906
- let prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];
1907
- if (typeof prevSnap === 'undefined' && params.cssMode) {
1908
- let prevSnapIndex;
1909
- snapGrid.forEach((snap, snapIndex) => {
1910
- if (normalizedTranslate >= snap) {
1911
- // prevSnap = snap;
1912
- prevSnapIndex = snapIndex;
1913
- }
1914
- });
1915
- if (typeof prevSnapIndex !== 'undefined') {
1916
- prevSnap = snapGrid[prevSnapIndex > 0 ? prevSnapIndex - 1 : prevSnapIndex];
1917
- }
1918
- }
1919
- let prevIndex = 0;
1920
- if (typeof prevSnap !== 'undefined') {
1921
- prevIndex = slidesGrid.indexOf(prevSnap);
1922
- if (prevIndex < 0) prevIndex = swiper.activeIndex - 1;
1923
- if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {
1924
- prevIndex = prevIndex - swiper.slidesPerViewDynamic('previous', true) + 1;
1925
- prevIndex = Math.max(prevIndex, 0);
1926
- }
1927
- }
1928
- if (params.rewind && swiper.isBeginning) {
1929
- const lastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;
1930
- return swiper.slideTo(lastIndex, speed, runCallbacks, internal);
1931
- }
1932
- return swiper.slideTo(prevIndex, speed, runCallbacks, internal);
1933
- }
1934
-
1935
- /* eslint no-unused-vars: "off" */
1936
- function slideReset(speed = this.params.speed, runCallbacks = true, internal) {
1937
- const swiper = this;
1938
- return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
1939
- }
1940
-
1941
- /* eslint no-unused-vars: "off" */
1942
- function slideToClosest(speed = this.params.speed, runCallbacks = true, internal, threshold = 0.5) {
1943
- const swiper = this;
1944
- let index = swiper.activeIndex;
1945
- const skip = Math.min(swiper.params.slidesPerGroupSkip, index);
1946
- const snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);
1947
- const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;
1948
- if (translate >= swiper.snapGrid[snapIndex]) {
1949
- // The current translate is on or after the current snap index, so the choice
1950
- // is between the current index and the one after it.
1951
- const currentSnap = swiper.snapGrid[snapIndex];
1952
- const nextSnap = swiper.snapGrid[snapIndex + 1];
1953
- if (translate - currentSnap > (nextSnap - currentSnap) * threshold) {
1954
- index += swiper.params.slidesPerGroup;
1955
- }
1956
- } else {
1957
- // The current translate is before the current snap index, so the choice
1958
- // is between the current index and the one before it.
1959
- const prevSnap = swiper.snapGrid[snapIndex - 1];
1960
- const currentSnap = swiper.snapGrid[snapIndex];
1961
- if (translate - prevSnap <= (currentSnap - prevSnap) * threshold) {
1962
- index -= swiper.params.slidesPerGroup;
1963
- }
1964
- }
1965
- index = Math.max(index, 0);
1966
- index = Math.min(index, swiper.slidesGrid.length - 1);
1967
- return swiper.slideTo(index, speed, runCallbacks, internal);
1968
- }
1969
-
1970
- function slideToClickedSlide() {
1971
- const swiper = this;
1972
- const {
1973
- params,
1974
- slidesEl
1975
- } = swiper;
1976
- const slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;
1977
- let slideToIndex = swiper.clickedIndex;
1978
- let realIndex;
1979
- const slideSelector = swiper.isElement ? `swiper-slide` : `.${params.slideClass}`;
1980
- if (params.loop) {
1981
- if (swiper.animating) return;
1982
- realIndex = parseInt(swiper.clickedSlide.getAttribute('data-swiper-slide-index'), 10);
1983
- if (params.centeredSlides) {
1984
- if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 || slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {
1985
- swiper.loopFix();
1986
- slideToIndex = swiper.getSlideIndex(elementChildren(slidesEl, `${slideSelector}[data-swiper-slide-index="${realIndex}"]`)[0]);
1987
- nextTick(() => {
1988
- swiper.slideTo(slideToIndex);
1989
- });
1990
- } else {
1991
- swiper.slideTo(slideToIndex);
1992
- }
1993
- } else if (slideToIndex > swiper.slides.length - slidesPerView) {
1994
- swiper.loopFix();
1995
- slideToIndex = swiper.getSlideIndex(elementChildren(slidesEl, `${slideSelector}[data-swiper-slide-index="${realIndex}"]`)[0]);
1996
- nextTick(() => {
1997
- swiper.slideTo(slideToIndex);
1998
- });
1999
- } else {
2000
- swiper.slideTo(slideToIndex);
2001
- }
2002
- } else {
2003
- swiper.slideTo(slideToIndex);
2004
- }
2005
- }
2006
-
2007
- const slide = {
2008
- slideTo,
2009
- slideToLoop,
2010
- slideNext,
2011
- slidePrev,
2012
- slideReset,
2013
- slideToClosest,
2014
- slideToClickedSlide
2015
- };
2016
-
2017
- function loopCreate(slideRealIndex) {
2018
- const swiper = this;
2019
- const {
2020
- params,
2021
- slidesEl
2022
- } = swiper;
2023
- if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;
2024
- const slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);
2025
- slides.forEach((el, index) => {
2026
- el.setAttribute('data-swiper-slide-index', index);
2027
- });
2028
- swiper.loopFix({
2029
- slideRealIndex,
2030
- direction: params.centeredSlides ? undefined : 'next'
2031
- });
2032
- }
2033
-
2034
- function loopFix({
2035
- slideRealIndex,
2036
- slideTo = true,
2037
- direction,
2038
- setTranslate,
2039
- activeSlideIndex,
2040
- byController,
2041
- byMousewheel
2042
- } = {}) {
2043
- const swiper = this;
2044
- if (!swiper.params.loop) return;
2045
- swiper.emit('beforeLoopFix');
2046
- const {
2047
- slides,
2048
- allowSlidePrev,
2049
- allowSlideNext,
2050
- slidesEl,
2051
- params
2052
- } = swiper;
2053
- swiper.allowSlidePrev = true;
2054
- swiper.allowSlideNext = true;
2055
- if (swiper.virtual && params.virtual.enabled) {
2056
- if (slideTo) {
2057
- if (!params.centeredSlides && swiper.snapIndex === 0) {
2058
- swiper.slideTo(swiper.virtual.slides.length, 0, false, true);
2059
- } else if (params.centeredSlides && swiper.snapIndex < params.slidesPerView) {
2060
- swiper.slideTo(swiper.virtual.slides.length + swiper.snapIndex, 0, false, true);
2061
- } else if (swiper.snapIndex === swiper.snapGrid.length - 1) {
2062
- swiper.slideTo(swiper.virtual.slidesBefore, 0, false, true);
2063
- }
2064
- }
2065
- swiper.allowSlidePrev = allowSlidePrev;
2066
- swiper.allowSlideNext = allowSlideNext;
2067
- swiper.emit('loopFix');
2068
- return;
2069
- }
2070
- const slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10));
2071
- let loopedSlides = params.loopedSlides || slidesPerView;
2072
- if (loopedSlides % params.slidesPerGroup !== 0) {
2073
- loopedSlides += params.slidesPerGroup - loopedSlides % params.slidesPerGroup;
2074
- }
2075
- swiper.loopedSlides = loopedSlides;
2076
- const prependSlidesIndexes = [];
2077
- const appendSlidesIndexes = [];
2078
- let activeIndex = swiper.activeIndex;
2079
- if (typeof activeSlideIndex === 'undefined') {
2080
- activeSlideIndex = swiper.getSlideIndex(swiper.slides.filter(el => el.classList.contains(params.slideActiveClass))[0]);
2081
- } else {
2082
- activeIndex = activeSlideIndex;
2083
- }
2084
- const isNext = direction === 'next' || !direction;
2085
- const isPrev = direction === 'prev' || !direction;
2086
- let slidesPrepended = 0;
2087
- let slidesAppended = 0;
2088
- // prepend last slides before start
2089
- if (activeSlideIndex < loopedSlides) {
2090
- slidesPrepended = Math.max(loopedSlides - activeSlideIndex, params.slidesPerGroup);
2091
- for (let i = 0; i < loopedSlides - activeSlideIndex; i += 1) {
2092
- const index = i - Math.floor(i / slides.length) * slides.length;
2093
- prependSlidesIndexes.push(slides.length - index - 1);
2094
- }
2095
- } else if (activeSlideIndex /* + slidesPerView */ > swiper.slides.length - loopedSlides * 2) {
2096
- slidesAppended = Math.max(activeSlideIndex - (swiper.slides.length - loopedSlides * 2), params.slidesPerGroup);
2097
- for (let i = 0; i < slidesAppended; i += 1) {
2098
- const index = i - Math.floor(i / slides.length) * slides.length;
2099
- appendSlidesIndexes.push(index);
2100
- }
2101
- }
2102
- if (isPrev) {
2103
- prependSlidesIndexes.forEach(index => {
2104
- swiper.slides[index].swiperLoopMoveDOM = true;
2105
- slidesEl.prepend(swiper.slides[index]);
2106
- swiper.slides[index].swiperLoopMoveDOM = false;
2107
- });
2108
- }
2109
- if (isNext) {
2110
- appendSlidesIndexes.forEach(index => {
2111
- swiper.slides[index].swiperLoopMoveDOM = true;
2112
- slidesEl.append(swiper.slides[index]);
2113
- swiper.slides[index].swiperLoopMoveDOM = false;
2114
- });
2115
- }
2116
- swiper.recalcSlides();
2117
- if (params.slidesPerView === 'auto') {
2118
- swiper.updateSlides();
2119
- }
2120
- if (params.watchSlidesProgress) {
2121
- swiper.updateSlidesOffset();
2122
- }
2123
- if (slideTo) {
2124
- if (prependSlidesIndexes.length > 0 && isPrev) {
2125
- if (typeof slideRealIndex === 'undefined') {
2126
- const currentSlideTranslate = swiper.slidesGrid[activeIndex];
2127
- const newSlideTranslate = swiper.slidesGrid[activeIndex + slidesPrepended];
2128
- const diff = newSlideTranslate - currentSlideTranslate;
2129
- if (byMousewheel) {
2130
- swiper.setTranslate(swiper.translate - diff);
2131
- } else {
2132
- swiper.slideTo(activeIndex + slidesPrepended, 0, false, true);
2133
- if (setTranslate) {
2134
- swiper.touches[swiper.isHorizontal() ? 'startX' : 'startY'] += diff;
2135
- }
2136
- }
2137
- } else {
2138
- if (setTranslate) {
2139
- swiper.slideToLoop(slideRealIndex, 0, false, true);
2140
- }
2141
- }
2142
- } else if (appendSlidesIndexes.length > 0 && isNext) {
2143
- if (typeof slideRealIndex === 'undefined') {
2144
- const currentSlideTranslate = swiper.slidesGrid[activeIndex];
2145
- const newSlideTranslate = swiper.slidesGrid[activeIndex - slidesAppended];
2146
- const diff = newSlideTranslate - currentSlideTranslate;
2147
- if (byMousewheel) {
2148
- swiper.setTranslate(swiper.translate - diff);
2149
- } else {
2150
- swiper.slideTo(activeIndex - slidesAppended, 0, false, true);
2151
- if (setTranslate) {
2152
- swiper.touches[swiper.isHorizontal() ? 'startX' : 'startY'] += diff;
2153
- }
2154
- }
2155
- } else {
2156
- swiper.slideToLoop(slideRealIndex, 0, false, true);
2157
- }
2158
- }
2159
- }
2160
- swiper.allowSlidePrev = allowSlidePrev;
2161
- swiper.allowSlideNext = allowSlideNext;
2162
- if (swiper.controller && swiper.controller.control && !byController) {
2163
- const loopParams = {
2164
- slideRealIndex,
2165
- slideTo: false,
2166
- direction,
2167
- setTranslate,
2168
- activeSlideIndex,
2169
- byController: true
2170
- };
2171
- if (Array.isArray(swiper.controller.control)) {
2172
- swiper.controller.control.forEach(c => {
2173
- if (!c.destroyed && c.params.loop) c.loopFix(loopParams);
2174
- });
2175
- } else if (swiper.controller.control instanceof swiper.constructor && swiper.controller.control.params.loop) {
2176
- swiper.controller.control.loopFix(loopParams);
2177
- }
2178
- }
2179
- swiper.emit('loopFix');
2180
- }
2181
-
2182
- function loopDestroy() {
2183
- const swiper = this;
2184
- const {
2185
- params,
2186
- slidesEl
2187
- } = swiper;
2188
- if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;
2189
- swiper.recalcSlides();
2190
- const newSlidesOrder = [];
2191
- swiper.slides.forEach(slideEl => {
2192
- const index = typeof slideEl.swiperSlideIndex === 'undefined' ? slideEl.getAttribute('data-swiper-slide-index') * 1 : slideEl.swiperSlideIndex;
2193
- newSlidesOrder[index] = slideEl;
2194
- });
2195
- swiper.slides.forEach(slideEl => {
2196
- slideEl.removeAttribute('data-swiper-slide-index');
2197
- });
2198
- newSlidesOrder.forEach(slideEl => {
2199
- slidesEl.append(slideEl);
2200
- });
2201
- swiper.recalcSlides();
2202
- swiper.slideTo(swiper.realIndex, 0);
2203
- }
2204
-
2205
- const loop = {
2206
- loopCreate,
2207
- loopFix,
2208
- loopDestroy
2209
- };
2210
-
2211
- function setGrabCursor(moving) {
2212
- const swiper = this;
2213
- if (!swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
2214
- const el = swiper.params.touchEventsTarget === 'container' ? swiper.el : swiper.wrapperEl;
2215
- if (swiper.isElement) {
2216
- swiper.__preventObserver__ = true;
2217
- }
2218
- el.style.cursor = 'move';
2219
- el.style.cursor = moving ? 'grabbing' : 'grab';
2220
- if (swiper.isElement) {
2221
- requestAnimationFrame(() => {
2222
- swiper.__preventObserver__ = false;
2223
- });
2224
- }
2225
- }
2226
-
2227
- function unsetGrabCursor() {
2228
- const swiper = this;
2229
- if (swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {
2230
- return;
2231
- }
2232
- if (swiper.isElement) {
2233
- swiper.__preventObserver__ = true;
2234
- }
2235
- swiper[swiper.params.touchEventsTarget === 'container' ? 'el' : 'wrapperEl'].style.cursor = '';
2236
- if (swiper.isElement) {
2237
- requestAnimationFrame(() => {
2238
- swiper.__preventObserver__ = false;
2239
- });
2240
- }
2241
- }
2242
-
2243
- const grabCursor = {
2244
- setGrabCursor,
2245
- unsetGrabCursor
2246
- };
2247
-
2248
- // Modified from https://stackoverflow.com/questions/54520554/custom-element-getrootnode-closest-function-crossing-multiple-parent-shadowd
2249
- function closestElement(selector, base = this) {
2250
- function __closestFrom(el) {
2251
- if (!el || el === getDocument() || el === getWindow()) return null;
2252
- if (el.assignedSlot) el = el.assignedSlot;
2253
- const found = el.closest(selector);
2254
- if (!found && !el.getRootNode) {
2255
- return null;
2256
- }
2257
- return found || __closestFrom(el.getRootNode().host);
2258
- }
2259
- return __closestFrom(base);
2260
- }
2261
- function onTouchStart(event) {
2262
- const swiper = this;
2263
- const document = getDocument();
2264
- const window = getWindow();
2265
- const data = swiper.touchEventsData;
2266
- data.evCache.push(event);
2267
- const {
2268
- params,
2269
- touches,
2270
- enabled
2271
- } = swiper;
2272
- if (!enabled) return;
2273
- if (!params.simulateTouch && event.pointerType === 'mouse') return;
2274
- if (swiper.animating && params.preventInteractionOnTransition) {
2275
- return;
2276
- }
2277
- if (!swiper.animating && params.cssMode && params.loop) {
2278
- swiper.loopFix();
2279
- }
2280
- let e = event;
2281
- if (e.originalEvent) e = e.originalEvent;
2282
- let targetEl = e.target;
2283
- if (params.touchEventsTarget === 'wrapper') {
2284
- if (!swiper.wrapperEl.contains(targetEl)) return;
2285
- }
2286
- if ('which' in e && e.which === 3) return;
2287
- if ('button' in e && e.button > 0) return;
2288
- if (data.isTouched && data.isMoved) return;
2289
-
2290
- // change target el for shadow root component
2291
- const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== '';
2292
- // eslint-disable-next-line
2293
- const eventPath = event.composedPath ? event.composedPath() : event.path;
2294
- if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) {
2295
- targetEl = eventPath[0];
2296
- }
2297
- const noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : `.${params.noSwipingClass}`;
2298
- const isTargetShadow = !!(e.target && e.target.shadowRoot);
2299
-
2300
- // use closestElement for shadow root element to get the actual closest for nested shadow root element
2301
- if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, targetEl) : targetEl.closest(noSwipingSelector))) {
2302
- swiper.allowClick = true;
2303
- return;
2304
- }
2305
- if (params.swipeHandler) {
2306
- if (!targetEl.closest(params.swipeHandler)) return;
2307
- }
2308
- touches.currentX = e.pageX;
2309
- touches.currentY = e.pageY;
2310
- const startX = touches.currentX;
2311
- const startY = touches.currentY;
2312
-
2313
- // Do NOT start if iOS edge swipe is detected. Otherwise iOS app cannot swipe-to-go-back anymore
2314
-
2315
- const edgeSwipeDetection = params.edgeSwipeDetection || params.iOSEdgeSwipeDetection;
2316
- const edgeSwipeThreshold = params.edgeSwipeThreshold || params.iOSEdgeSwipeThreshold;
2317
- if (edgeSwipeDetection && (startX <= edgeSwipeThreshold || startX >= window.innerWidth - edgeSwipeThreshold)) {
2318
- if (edgeSwipeDetection === 'prevent') {
2319
- event.preventDefault();
2320
- } else {
2321
- return;
2322
- }
2323
- }
2324
- Object.assign(data, {
2325
- isTouched: true,
2326
- isMoved: false,
2327
- allowTouchCallbacks: true,
2328
- isScrolling: undefined,
2329
- startMoving: undefined
2330
- });
2331
- touches.startX = startX;
2332
- touches.startY = startY;
2333
- data.touchStartTime = now();
2334
- swiper.allowClick = true;
2335
- swiper.updateSize();
2336
- swiper.swipeDirection = undefined;
2337
- if (params.threshold > 0) data.allowThresholdMove = false;
2338
- let preventDefault = true;
2339
- if (targetEl.matches(data.focusableElements)) {
2340
- preventDefault = false;
2341
- if (targetEl.nodeName === 'SELECT') {
2342
- data.isTouched = false;
2343
- }
2344
- }
2345
- if (document.activeElement && document.activeElement.matches(data.focusableElements) && document.activeElement !== targetEl) {
2346
- document.activeElement.blur();
2347
- }
2348
- const shouldPreventDefault = preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault;
2349
- if ((params.touchStartForcePreventDefault || shouldPreventDefault) && !targetEl.isContentEditable) {
2350
- e.preventDefault();
2351
- }
2352
- if (params.freeMode && params.freeMode.enabled && swiper.freeMode && swiper.animating && !params.cssMode) {
2353
- swiper.freeMode.onTouchStart();
2354
- }
2355
- swiper.emit('touchStart', e);
2356
- }
2357
-
2358
- function onTouchMove(event) {
2359
- const document = getDocument();
2360
- const swiper = this;
2361
- const data = swiper.touchEventsData;
2362
- const {
2363
- params,
2364
- touches,
2365
- rtlTranslate: rtl,
2366
- enabled
2367
- } = swiper;
2368
- if (!enabled) return;
2369
- if (!params.simulateTouch && event.pointerType === 'mouse') return;
2370
- let e = event;
2371
- if (e.originalEvent) e = e.originalEvent;
2372
- if (!data.isTouched) {
2373
- if (data.startMoving && data.isScrolling) {
2374
- swiper.emit('touchMoveOpposite', e);
2375
- }
2376
- return;
2377
- }
2378
- const pointerIndex = data.evCache.findIndex(cachedEv => cachedEv.pointerId === e.pointerId);
2379
- if (pointerIndex >= 0) data.evCache[pointerIndex] = e;
2380
- const targetTouch = data.evCache.length > 1 ? data.evCache[0] : e;
2381
- const pageX = targetTouch.pageX;
2382
- const pageY = targetTouch.pageY;
2383
- if (e.preventedByNestedSwiper) {
2384
- touches.startX = pageX;
2385
- touches.startY = pageY;
2386
- return;
2387
- }
2388
- if (!swiper.allowTouchMove) {
2389
- if (!e.target.matches(data.focusableElements)) {
2390
- swiper.allowClick = false;
2391
- }
2392
- if (data.isTouched) {
2393
- Object.assign(touches, {
2394
- startX: pageX,
2395
- startY: pageY,
2396
- prevX: swiper.touches.currentX,
2397
- prevY: swiper.touches.currentY,
2398
- currentX: pageX,
2399
- currentY: pageY
2400
- });
2401
- data.touchStartTime = now();
2402
- }
2403
- return;
2404
- }
2405
- if (params.touchReleaseOnEdges && !params.loop) {
2406
- if (swiper.isVertical()) {
2407
- // Vertical
2408
- if (pageY < touches.startY && swiper.translate <= swiper.maxTranslate() || pageY > touches.startY && swiper.translate >= swiper.minTranslate()) {
2409
- data.isTouched = false;
2410
- data.isMoved = false;
2411
- return;
2412
- }
2413
- } else if (pageX < touches.startX && swiper.translate <= swiper.maxTranslate() || pageX > touches.startX && swiper.translate >= swiper.minTranslate()) {
2414
- return;
2415
- }
2416
- }
2417
- if (document.activeElement) {
2418
- if (e.target === document.activeElement && e.target.matches(data.focusableElements)) {
2419
- data.isMoved = true;
2420
- swiper.allowClick = false;
2421
- return;
2422
- }
2423
- }
2424
- if (data.allowTouchCallbacks) {
2425
- swiper.emit('touchMove', e);
2426
- }
2427
- if (e.targetTouches && e.targetTouches.length > 1) return;
2428
- touches.currentX = pageX;
2429
- touches.currentY = pageY;
2430
- const diffX = touches.currentX - touches.startX;
2431
- const diffY = touches.currentY - touches.startY;
2432
- if (swiper.params.threshold && Math.sqrt(diffX ** 2 + diffY ** 2) < swiper.params.threshold) return;
2433
- if (typeof data.isScrolling === 'undefined') {
2434
- let touchAngle;
2435
- if (swiper.isHorizontal() && touches.currentY === touches.startY || swiper.isVertical() && touches.currentX === touches.startX) {
2436
- data.isScrolling = false;
2437
- } else {
2438
- // eslint-disable-next-line
2439
- if (diffX * diffX + diffY * diffY >= 25) {
2440
- touchAngle = Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180 / Math.PI;
2441
- data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : 90 - touchAngle > params.touchAngle;
2442
- }
2443
- }
2444
- }
2445
- if (data.isScrolling) {
2446
- swiper.emit('touchMoveOpposite', e);
2447
- }
2448
- if (typeof data.startMoving === 'undefined') {
2449
- if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) {
2450
- data.startMoving = true;
2451
- }
2452
- }
2453
- if (data.isScrolling || swiper.zoom && swiper.params.zoom && swiper.params.zoom.enabled && data.evCache.length > 1) {
2454
- data.isTouched = false;
2455
- return;
2456
- }
2457
- if (!data.startMoving) {
2458
- return;
2459
- }
2460
- swiper.allowClick = false;
2461
- if (!params.cssMode && e.cancelable) {
2462
- e.preventDefault();
2463
- }
2464
- if (params.touchMoveStopPropagation && !params.nested) {
2465
- e.stopPropagation();
2466
- }
2467
- let diff = swiper.isHorizontal() ? diffX : diffY;
2468
- let touchesDiff = swiper.isHorizontal() ? touches.currentX - touches.previousX : touches.currentY - touches.previousY;
2469
- if (params.oneWayMovement) {
2470
- diff = Math.abs(diff) * (rtl ? 1 : -1);
2471
- touchesDiff = Math.abs(touchesDiff) * (rtl ? 1 : -1);
2472
- }
2473
- touches.diff = diff;
2474
- diff *= params.touchRatio;
2475
- if (rtl) {
2476
- diff = -diff;
2477
- touchesDiff = -touchesDiff;
2478
- }
2479
- const prevTouchesDirection = swiper.touchesDirection;
2480
- swiper.swipeDirection = diff > 0 ? 'prev' : 'next';
2481
- swiper.touchesDirection = touchesDiff > 0 ? 'prev' : 'next';
2482
- const isLoop = swiper.params.loop && !params.cssMode;
2483
- if (!data.isMoved) {
2484
- if (isLoop) {
2485
- swiper.loopFix({
2486
- direction: swiper.swipeDirection
2487
- });
2488
- }
2489
- data.startTranslate = swiper.getTranslate();
2490
- swiper.setTransition(0);
2491
- if (swiper.animating) {
2492
- const evt = new window.CustomEvent('transitionend', {
2493
- bubbles: true,
2494
- cancelable: true
2495
- });
2496
- swiper.wrapperEl.dispatchEvent(evt);
2497
- }
2498
- data.allowMomentumBounce = false;
2499
- // Grab Cursor
2500
- if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {
2501
- swiper.setGrabCursor(true);
2502
- }
2503
- swiper.emit('sliderFirstMove', e);
2504
- }
2505
- let loopFixed;
2506
- if (data.isMoved && prevTouchesDirection !== swiper.touchesDirection && isLoop && Math.abs(diff) >= 1) {
2507
- // need another loop fix
2508
- swiper.loopFix({
2509
- direction: swiper.swipeDirection,
2510
- setTranslate: true
2511
- });
2512
- loopFixed = true;
2513
- }
2514
- swiper.emit('sliderMove', e);
2515
- data.isMoved = true;
2516
- data.currentTranslate = diff + data.startTranslate;
2517
- let disableParentSwiper = true;
2518
- let resistanceRatio = params.resistanceRatio;
2519
- if (params.touchReleaseOnEdges) {
2520
- resistanceRatio = 0;
2521
- }
2522
- if (diff > 0) {
2523
- if (isLoop && !loopFixed && data.currentTranslate > (params.centeredSlides ? swiper.minTranslate() - swiper.size / 2 : swiper.minTranslate())) {
2524
- swiper.loopFix({
2525
- direction: 'prev',
2526
- setTranslate: true,
2527
- activeSlideIndex: 0
2528
- });
2529
- }
2530
- if (data.currentTranslate > swiper.minTranslate()) {
2531
- disableParentSwiper = false;
2532
- if (params.resistance) {
2533
- data.currentTranslate = swiper.minTranslate() - 1 + (-swiper.minTranslate() + data.startTranslate + diff) ** resistanceRatio;
2534
- }
2535
- }
2536
- } else if (diff < 0) {
2537
- if (isLoop && !loopFixed && data.currentTranslate < (params.centeredSlides ? swiper.maxTranslate() + swiper.size / 2 : swiper.maxTranslate())) {
2538
- swiper.loopFix({
2539
- direction: 'next',
2540
- setTranslate: true,
2541
- activeSlideIndex: swiper.slides.length - (params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10)))
2542
- });
2543
- }
2544
- if (data.currentTranslate < swiper.maxTranslate()) {
2545
- disableParentSwiper = false;
2546
- if (params.resistance) {
2547
- data.currentTranslate = swiper.maxTranslate() + 1 - (swiper.maxTranslate() - data.startTranslate - diff) ** resistanceRatio;
2548
- }
2549
- }
2550
- }
2551
- if (disableParentSwiper) {
2552
- e.preventedByNestedSwiper = true;
2553
- }
2554
-
2555
- // Directions locks
2556
- if (!swiper.allowSlideNext && swiper.swipeDirection === 'next' && data.currentTranslate < data.startTranslate) {
2557
- data.currentTranslate = data.startTranslate;
2558
- }
2559
- if (!swiper.allowSlidePrev && swiper.swipeDirection === 'prev' && data.currentTranslate > data.startTranslate) {
2560
- data.currentTranslate = data.startTranslate;
2561
- }
2562
- if (!swiper.allowSlidePrev && !swiper.allowSlideNext) {
2563
- data.currentTranslate = data.startTranslate;
2564
- }
2565
-
2566
- // Threshold
2567
- if (params.threshold > 0) {
2568
- if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {
2569
- if (!data.allowThresholdMove) {
2570
- data.allowThresholdMove = true;
2571
- touches.startX = touches.currentX;
2572
- touches.startY = touches.currentY;
2573
- data.currentTranslate = data.startTranslate;
2574
- touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;
2575
- return;
2576
- }
2577
- } else {
2578
- data.currentTranslate = data.startTranslate;
2579
- return;
2580
- }
2581
- }
2582
- if (!params.followFinger || params.cssMode) return;
2583
-
2584
- // Update active index in free mode
2585
- if (params.freeMode && params.freeMode.enabled && swiper.freeMode || params.watchSlidesProgress) {
2586
- swiper.updateActiveIndex();
2587
- swiper.updateSlidesClasses();
2588
- }
2589
- if (params.freeMode && params.freeMode.enabled && swiper.freeMode) {
2590
- swiper.freeMode.onTouchMove();
2591
- }
2592
- // Update progress
2593
- swiper.updateProgress(data.currentTranslate);
2594
- // Update translate
2595
- swiper.setTranslate(data.currentTranslate);
2596
- }
2597
-
2598
- function onTouchEnd(event) {
2599
- const swiper = this;
2600
- const data = swiper.touchEventsData;
2601
- const pointerIndex = data.evCache.findIndex(cachedEv => cachedEv.pointerId === event.pointerId);
2602
- if (pointerIndex >= 0) {
2603
- data.evCache.splice(pointerIndex, 1);
2604
- }
2605
- if (['pointercancel', 'pointerout', 'pointerleave'].includes(event.type)) {
2606
- const proceed = event.type === 'pointercancel' && (swiper.browser.isSafari || swiper.browser.isWebView);
2607
- if (!proceed) {
2608
- return;
2609
- }
2610
- }
2611
- const {
2612
- params,
2613
- touches,
2614
- rtlTranslate: rtl,
2615
- slidesGrid,
2616
- enabled
2617
- } = swiper;
2618
- if (!enabled) return;
2619
- if (!params.simulateTouch && event.pointerType === 'mouse') return;
2620
- let e = event;
2621
- if (e.originalEvent) e = e.originalEvent;
2622
- if (data.allowTouchCallbacks) {
2623
- swiper.emit('touchEnd', e);
2624
- }
2625
- data.allowTouchCallbacks = false;
2626
- if (!data.isTouched) {
2627
- if (data.isMoved && params.grabCursor) {
2628
- swiper.setGrabCursor(false);
2629
- }
2630
- data.isMoved = false;
2631
- data.startMoving = false;
2632
- return;
2633
- }
2634
- // Return Grab Cursor
2635
- if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {
2636
- swiper.setGrabCursor(false);
2637
- }
2638
-
2639
- // Time diff
2640
- const touchEndTime = now();
2641
- const timeDiff = touchEndTime - data.touchStartTime;
2642
-
2643
- // Tap, doubleTap, Click
2644
- if (swiper.allowClick) {
2645
- const pathTree = e.path || e.composedPath && e.composedPath();
2646
- swiper.updateClickedSlide(pathTree && pathTree[0] || e.target);
2647
- swiper.emit('tap click', e);
2648
- if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) {
2649
- swiper.emit('doubleTap doubleClick', e);
2650
- }
2651
- }
2652
- data.lastClickTime = now();
2653
- nextTick(() => {
2654
- if (!swiper.destroyed) swiper.allowClick = true;
2655
- });
2656
- if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 || data.currentTranslate === data.startTranslate) {
2657
- data.isTouched = false;
2658
- data.isMoved = false;
2659
- data.startMoving = false;
2660
- return;
2661
- }
2662
- data.isTouched = false;
2663
- data.isMoved = false;
2664
- data.startMoving = false;
2665
- let currentPos;
2666
- if (params.followFinger) {
2667
- currentPos = rtl ? swiper.translate : -swiper.translate;
2668
- } else {
2669
- currentPos = -data.currentTranslate;
2670
- }
2671
- if (params.cssMode) {
2672
- return;
2673
- }
2674
- if (params.freeMode && params.freeMode.enabled) {
2675
- swiper.freeMode.onTouchEnd({
2676
- currentPos
2677
- });
2678
- return;
2679
- }
2680
-
2681
- // Find current slide
2682
- let stopIndex = 0;
2683
- let groupSize = swiper.slidesSizesGrid[0];
2684
- for (let i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup) {
2685
- const increment = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
2686
- if (typeof slidesGrid[i + increment] !== 'undefined') {
2687
- if (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + increment]) {
2688
- stopIndex = i;
2689
- groupSize = slidesGrid[i + increment] - slidesGrid[i];
2690
- }
2691
- } else if (currentPos >= slidesGrid[i]) {
2692
- stopIndex = i;
2693
- groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];
2694
- }
2695
- }
2696
- let rewindFirstIndex = null;
2697
- let rewindLastIndex = null;
2698
- if (params.rewind) {
2699
- if (swiper.isBeginning) {
2700
- rewindLastIndex = params.virtual && params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;
2701
- } else if (swiper.isEnd) {
2702
- rewindFirstIndex = 0;
2703
- }
2704
- }
2705
- // Find current slide size
2706
- const ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;
2707
- const increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
2708
- if (timeDiff > params.longSwipesMs) {
2709
- // Long touches
2710
- if (!params.longSwipes) {
2711
- swiper.slideTo(swiper.activeIndex);
2712
- return;
2713
- }
2714
- if (swiper.swipeDirection === 'next') {
2715
- if (ratio >= params.longSwipesRatio) swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);else swiper.slideTo(stopIndex);
2716
- }
2717
- if (swiper.swipeDirection === 'prev') {
2718
- if (ratio > 1 - params.longSwipesRatio) {
2719
- swiper.slideTo(stopIndex + increment);
2720
- } else if (rewindLastIndex !== null && ratio < 0 && Math.abs(ratio) > params.longSwipesRatio) {
2721
- swiper.slideTo(rewindLastIndex);
2722
- } else {
2723
- swiper.slideTo(stopIndex);
2724
- }
2725
- }
2726
- } else {
2727
- // Short swipes
2728
- if (!params.shortSwipes) {
2729
- swiper.slideTo(swiper.activeIndex);
2730
- return;
2731
- }
2732
- const isNavButtonTarget = swiper.navigation && (e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);
2733
- if (!isNavButtonTarget) {
2734
- if (swiper.swipeDirection === 'next') {
2735
- swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);
2736
- }
2737
- if (swiper.swipeDirection === 'prev') {
2738
- swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);
2739
- }
2740
- } else if (e.target === swiper.navigation.nextEl) {
2741
- swiper.slideTo(stopIndex + increment);
2742
- } else {
2743
- swiper.slideTo(stopIndex);
2744
- }
2745
- }
2746
- }
2747
-
2748
- function onResize() {
2749
- const swiper = this;
2750
- const {
2751
- params,
2752
- el
2753
- } = swiper;
2754
- if (el && el.offsetWidth === 0) return;
2755
-
2756
- // Breakpoints
2757
- if (params.breakpoints) {
2758
- swiper.setBreakpoint();
2759
- }
2760
-
2761
- // Save locks
2762
- const {
2763
- allowSlideNext,
2764
- allowSlidePrev,
2765
- snapGrid
2766
- } = swiper;
2767
- const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
2768
-
2769
- // Disable locks on resize
2770
- swiper.allowSlideNext = true;
2771
- swiper.allowSlidePrev = true;
2772
- swiper.updateSize();
2773
- swiper.updateSlides();
2774
- swiper.updateSlidesClasses();
2775
- const isVirtualLoop = isVirtual && params.loop;
2776
- if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !swiper.isBeginning && !swiper.params.centeredSlides && !isVirtualLoop) {
2777
- swiper.slideTo(swiper.slides.length - 1, 0, false, true);
2778
- } else {
2779
- if (swiper.params.loop && !isVirtual) {
2780
- swiper.slideToLoop(swiper.realIndex, 0, false, true);
2781
- } else {
2782
- swiper.slideTo(swiper.activeIndex, 0, false, true);
2783
- }
2784
- }
2785
- if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
2786
- clearTimeout(swiper.autoplay.resizeTimeout);
2787
- swiper.autoplay.resizeTimeout = setTimeout(() => {
2788
- if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
2789
- swiper.autoplay.resume();
2790
- }
2791
- }, 500);
2792
- }
2793
- // Return locks after resize
2794
- swiper.allowSlidePrev = allowSlidePrev;
2795
- swiper.allowSlideNext = allowSlideNext;
2796
- if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {
2797
- swiper.checkOverflow();
2798
- }
2799
- }
2800
-
2801
- function onClick(e) {
2802
- const swiper = this;
2803
- if (!swiper.enabled) return;
2804
- if (!swiper.allowClick) {
2805
- if (swiper.params.preventClicks) e.preventDefault();
2806
- if (swiper.params.preventClicksPropagation && swiper.animating) {
2807
- e.stopPropagation();
2808
- e.stopImmediatePropagation();
2809
- }
2810
- }
2811
- }
2812
-
2813
- function onScroll() {
2814
- const swiper = this;
2815
- const {
2816
- wrapperEl,
2817
- rtlTranslate,
2818
- enabled
2819
- } = swiper;
2820
- if (!enabled) return;
2821
- swiper.previousTranslate = swiper.translate;
2822
- if (swiper.isHorizontal()) {
2823
- swiper.translate = -wrapperEl.scrollLeft;
2824
- } else {
2825
- swiper.translate = -wrapperEl.scrollTop;
2826
- }
2827
- // eslint-disable-next-line
2828
- if (swiper.translate === 0) swiper.translate = 0;
2829
- swiper.updateActiveIndex();
2830
- swiper.updateSlidesClasses();
2831
- let newProgress;
2832
- const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
2833
- if (translatesDiff === 0) {
2834
- newProgress = 0;
2835
- } else {
2836
- newProgress = (swiper.translate - swiper.minTranslate()) / translatesDiff;
2837
- }
2838
- if (newProgress !== swiper.progress) {
2839
- swiper.updateProgress(rtlTranslate ? -swiper.translate : swiper.translate);
2840
- }
2841
- swiper.emit('setTranslate', swiper.translate, false);
2842
- }
2843
-
2844
- function onLoad(e) {
2845
- const swiper = this;
2846
- processLazyPreloader(swiper, e.target);
2847
- if (swiper.params.cssMode || swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight) {
2848
- return;
2849
- }
2850
- swiper.update();
2851
- }
2852
-
2853
- let dummyEventAttached = false;
2854
- function dummyEventListener() {}
2855
- const events = (swiper, method) => {
2856
- const document = getDocument();
2857
- const {
2858
- params,
2859
- el,
2860
- wrapperEl,
2861
- device
2862
- } = swiper;
2863
- const capture = !!params.nested;
2864
- const domMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';
2865
- const swiperMethod = method;
2866
-
2867
- // Touch Events
2868
- el[domMethod]('pointerdown', swiper.onTouchStart, {
2869
- passive: false
2870
- });
2871
- document[domMethod]('pointermove', swiper.onTouchMove, {
2872
- passive: false,
2873
- capture
2874
- });
2875
- document[domMethod]('pointerup', swiper.onTouchEnd, {
2876
- passive: true
2877
- });
2878
- document[domMethod]('pointercancel', swiper.onTouchEnd, {
2879
- passive: true
2880
- });
2881
- document[domMethod]('pointerout', swiper.onTouchEnd, {
2882
- passive: true
2883
- });
2884
- document[domMethod]('pointerleave', swiper.onTouchEnd, {
2885
- passive: true
2886
- });
2887
-
2888
- // Prevent Links Clicks
2889
- if (params.preventClicks || params.preventClicksPropagation) {
2890
- el[domMethod]('click', swiper.onClick, true);
2891
- }
2892
- if (params.cssMode) {
2893
- wrapperEl[domMethod]('scroll', swiper.onScroll);
2894
- }
2895
-
2896
- // Resize handler
2897
- if (params.updateOnWindowResize) {
2898
- swiper[swiperMethod](device.ios || device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate', onResize, true);
2899
- } else {
2900
- swiper[swiperMethod]('observerUpdate', onResize, true);
2901
- }
2902
-
2903
- // Images loader
2904
- el[domMethod]('load', swiper.onLoad, {
2905
- capture: true
2906
- });
2907
- };
2908
- function attachEvents() {
2909
- const swiper = this;
2910
- const document = getDocument();
2911
- const {
2912
- params
2913
- } = swiper;
2914
- swiper.onTouchStart = onTouchStart.bind(swiper);
2915
- swiper.onTouchMove = onTouchMove.bind(swiper);
2916
- swiper.onTouchEnd = onTouchEnd.bind(swiper);
2917
- if (params.cssMode) {
2918
- swiper.onScroll = onScroll.bind(swiper);
2919
- }
2920
- swiper.onClick = onClick.bind(swiper);
2921
- swiper.onLoad = onLoad.bind(swiper);
2922
- if (!dummyEventAttached) {
2923
- document.addEventListener('touchstart', dummyEventListener);
2924
- dummyEventAttached = true;
2925
- }
2926
- events(swiper, 'on');
2927
- }
2928
- function detachEvents() {
2929
- const swiper = this;
2930
- events(swiper, 'off');
2931
- }
2932
- const events$1 = {
2933
- attachEvents,
2934
- detachEvents
2935
- };
2936
-
2937
- const isGridEnabled = (swiper, params) => {
2938
- return swiper.grid && params.grid && params.grid.rows > 1;
2939
- };
2940
- function setBreakpoint() {
2941
- const swiper = this;
2942
- const {
2943
- realIndex,
2944
- initialized,
2945
- params,
2946
- el
2947
- } = swiper;
2948
- const breakpoints = params.breakpoints;
2949
- if (!breakpoints || breakpoints && Object.keys(breakpoints).length === 0) return;
2950
-
2951
- // Get breakpoint for window width and update parameters
2952
- const breakpoint = swiper.getBreakpoint(breakpoints, swiper.params.breakpointsBase, swiper.el);
2953
- if (!breakpoint || swiper.currentBreakpoint === breakpoint) return;
2954
- const breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;
2955
- const breakpointParams = breakpointOnlyParams || swiper.originalParams;
2956
- const wasMultiRow = isGridEnabled(swiper, params);
2957
- const isMultiRow = isGridEnabled(swiper, breakpointParams);
2958
- const wasEnabled = params.enabled;
2959
- if (wasMultiRow && !isMultiRow) {
2960
- el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);
2961
- swiper.emitContainerClasses();
2962
- } else if (!wasMultiRow && isMultiRow) {
2963
- el.classList.add(`${params.containerModifierClass}grid`);
2964
- if (breakpointParams.grid.fill && breakpointParams.grid.fill === 'column' || !breakpointParams.grid.fill && params.grid.fill === 'column') {
2965
- el.classList.add(`${params.containerModifierClass}grid-column`);
2966
- }
2967
- swiper.emitContainerClasses();
2968
- }
2969
-
2970
- // Toggle navigation, pagination, scrollbar
2971
- ['navigation', 'pagination', 'scrollbar'].forEach(prop => {
2972
- if (typeof breakpointParams[prop] === 'undefined') return;
2973
- const wasModuleEnabled = params[prop] && params[prop].enabled;
2974
- const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;
2975
- if (wasModuleEnabled && !isModuleEnabled) {
2976
- swiper[prop].disable();
2977
- }
2978
- if (!wasModuleEnabled && isModuleEnabled) {
2979
- swiper[prop].enable();
2980
- }
2981
- });
2982
- const directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;
2983
- const needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);
2984
- if (directionChanged && initialized) {
2985
- swiper.changeDirection();
2986
- }
2987
- extend(swiper.params, breakpointParams);
2988
- const isEnabled = swiper.params.enabled;
2989
- Object.assign(swiper, {
2990
- allowTouchMove: swiper.params.allowTouchMove,
2991
- allowSlideNext: swiper.params.allowSlideNext,
2992
- allowSlidePrev: swiper.params.allowSlidePrev
2993
- });
2994
- if (wasEnabled && !isEnabled) {
2995
- swiper.disable();
2996
- } else if (!wasEnabled && isEnabled) {
2997
- swiper.enable();
2998
- }
2999
- swiper.currentBreakpoint = breakpoint;
3000
- swiper.emit('_beforeBreakpoint', breakpointParams);
3001
- if (needsReLoop && initialized) {
3002
- swiper.loopDestroy();
3003
- swiper.loopCreate(realIndex);
3004
- swiper.updateSlides();
3005
- }
3006
- swiper.emit('breakpoint', breakpointParams);
3007
- }
3008
-
3009
- function getBreakpoint(breakpoints, base = 'window', containerEl) {
3010
- if (!breakpoints || base === 'container' && !containerEl) return undefined;
3011
- let breakpoint = false;
3012
- const window = getWindow();
3013
- const currentHeight = base === 'window' ? window.innerHeight : containerEl.clientHeight;
3014
- const points = Object.keys(breakpoints).map(point => {
3015
- if (typeof point === 'string' && point.indexOf('@') === 0) {
3016
- const minRatio = parseFloat(point.substr(1));
3017
- const value = currentHeight * minRatio;
3018
- return {
3019
- value,
3020
- point
3021
- };
3022
- }
3023
- return {
3024
- value: point,
3025
- point
3026
- };
3027
- });
3028
- points.sort((a, b) => parseInt(a.value, 10) - parseInt(b.value, 10));
3029
- for (let i = 0; i < points.length; i += 1) {
3030
- const {
3031
- point,
3032
- value
3033
- } = points[i];
3034
- if (base === 'window') {
3035
- if (window.matchMedia(`(min-width: ${value}px)`).matches) {
3036
- breakpoint = point;
3037
- }
3038
- } else if (value <= containerEl.clientWidth) {
3039
- breakpoint = point;
3040
- }
3041
- }
3042
- return breakpoint || 'max';
3043
- }
3044
-
3045
- const breakpoints = {
3046
- setBreakpoint,
3047
- getBreakpoint
3048
- };
3049
-
3050
- function prepareClasses(entries, prefix) {
3051
- const resultClasses = [];
3052
- entries.forEach(item => {
3053
- if (typeof item === 'object') {
3054
- Object.keys(item).forEach(classNames => {
3055
- if (item[classNames]) {
3056
- resultClasses.push(prefix + classNames);
3057
- }
3058
- });
3059
- } else if (typeof item === 'string') {
3060
- resultClasses.push(prefix + item);
3061
- }
3062
- });
3063
- return resultClasses;
3064
- }
3065
- function addClasses() {
3066
- const swiper = this;
3067
- const {
3068
- classNames,
3069
- params,
3070
- rtl,
3071
- el,
3072
- device
3073
- } = swiper;
3074
- // prettier-ignore
3075
- const suffixes = prepareClasses(['initialized', params.direction, {
3076
- 'free-mode': swiper.params.freeMode && params.freeMode.enabled
3077
- }, {
3078
- 'autoheight': params.autoHeight
3079
- }, {
3080
- 'rtl': rtl
3081
- }, {
3082
- 'grid': params.grid && params.grid.rows > 1
3083
- }, {
3084
- 'grid-column': params.grid && params.grid.rows > 1 && params.grid.fill === 'column'
3085
- }, {
3086
- 'android': device.android
3087
- }, {
3088
- 'ios': device.ios
3089
- }, {
3090
- 'css-mode': params.cssMode
3091
- }, {
3092
- 'centered': params.cssMode && params.centeredSlides
3093
- }, {
3094
- 'watch-progress': params.watchSlidesProgress
3095
- }], params.containerModifierClass);
3096
- classNames.push(...suffixes);
3097
- el.classList.add(...classNames);
3098
- swiper.emitContainerClasses();
3099
- }
3100
-
3101
- function removeClasses() {
3102
- const swiper = this;
3103
- const {
3104
- el,
3105
- classNames
3106
- } = swiper;
3107
- el.classList.remove(...classNames);
3108
- swiper.emitContainerClasses();
3109
- }
3110
-
3111
- const classes = {
3112
- addClasses,
3113
- removeClasses
3114
- };
3115
-
3116
- function checkOverflow() {
3117
- const swiper = this;
3118
- const {
3119
- isLocked: wasLocked,
3120
- params
3121
- } = swiper;
3122
- const {
3123
- slidesOffsetBefore
3124
- } = params;
3125
- if (slidesOffsetBefore) {
3126
- const lastSlideIndex = swiper.slides.length - 1;
3127
- const lastSlideRightEdge = swiper.slidesGrid[lastSlideIndex] + swiper.slidesSizesGrid[lastSlideIndex] + slidesOffsetBefore * 2;
3128
- swiper.isLocked = swiper.size > lastSlideRightEdge;
3129
- } else {
3130
- swiper.isLocked = swiper.snapGrid.length === 1;
3131
- }
3132
- if (params.allowSlideNext === true) {
3133
- swiper.allowSlideNext = !swiper.isLocked;
3134
- }
3135
- if (params.allowSlidePrev === true) {
3136
- swiper.allowSlidePrev = !swiper.isLocked;
3137
- }
3138
- if (wasLocked && wasLocked !== swiper.isLocked) {
3139
- swiper.isEnd = false;
3140
- }
3141
- if (wasLocked !== swiper.isLocked) {
3142
- swiper.emit(swiper.isLocked ? 'lock' : 'unlock');
3143
- }
3144
- }
3145
- const checkOverflow$1 = {
3146
- checkOverflow
3147
- };
3148
-
3149
- const defaults = {
3150
- init: true,
3151
- direction: 'horizontal',
3152
- oneWayMovement: false,
3153
- touchEventsTarget: 'wrapper',
3154
- initialSlide: 0,
3155
- speed: 300,
3156
- cssMode: false,
3157
- updateOnWindowResize: true,
3158
- resizeObserver: true,
3159
- nested: false,
3160
- createElements: false,
3161
- enabled: true,
3162
- focusableElements: 'input, select, option, textarea, button, video, label',
3163
- // Overrides
3164
- width: null,
3165
- height: null,
3166
- //
3167
- preventInteractionOnTransition: false,
3168
- // ssr
3169
- userAgent: null,
3170
- url: null,
3171
- // To support iOS's swipe-to-go-back gesture (when being used in-app).
3172
- edgeSwipeDetection: false,
3173
- edgeSwipeThreshold: 20,
3174
- // Autoheight
3175
- autoHeight: false,
3176
- // Set wrapper width
3177
- setWrapperSize: false,
3178
- // Virtual Translate
3179
- virtualTranslate: false,
3180
- // Effects
3181
- effect: 'slide',
3182
- // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
3183
-
3184
- // Breakpoints
3185
- breakpoints: undefined,
3186
- breakpointsBase: 'window',
3187
- // Slides grid
3188
- spaceBetween: 0,
3189
- slidesPerView: 1,
3190
- slidesPerGroup: 1,
3191
- slidesPerGroupSkip: 0,
3192
- slidesPerGroupAuto: false,
3193
- centeredSlides: false,
3194
- centeredSlidesBounds: false,
3195
- slidesOffsetBefore: 0,
3196
- // in px
3197
- slidesOffsetAfter: 0,
3198
- // in px
3199
- normalizeSlideIndex: true,
3200
- centerInsufficientSlides: false,
3201
- // Disable swiper and hide navigation when container not overflow
3202
- watchOverflow: true,
3203
- // Round length
3204
- roundLengths: false,
3205
- // Touches
3206
- touchRatio: 1,
3207
- touchAngle: 45,
3208
- simulateTouch: true,
3209
- shortSwipes: true,
3210
- longSwipes: true,
3211
- longSwipesRatio: 0.5,
3212
- longSwipesMs: 300,
3213
- followFinger: true,
3214
- allowTouchMove: true,
3215
- threshold: 5,
3216
- touchMoveStopPropagation: false,
3217
- touchStartPreventDefault: true,
3218
- touchStartForcePreventDefault: false,
3219
- touchReleaseOnEdges: false,
3220
- // Unique Navigation Elements
3221
- uniqueNavElements: true,
3222
- // Resistance
3223
- resistance: true,
3224
- resistanceRatio: 0.85,
3225
- // Progress
3226
- watchSlidesProgress: false,
3227
- // Cursor
3228
- grabCursor: false,
3229
- // Clicks
3230
- preventClicks: true,
3231
- preventClicksPropagation: true,
3232
- slideToClickedSlide: false,
3233
- // loop
3234
- loop: false,
3235
- loopedSlides: null,
3236
- loopPreventsSliding: true,
3237
- // rewind
3238
- rewind: false,
3239
- // Swiping/no swiping
3240
- allowSlidePrev: true,
3241
- allowSlideNext: true,
3242
- swipeHandler: null,
3243
- // '.swipe-handler',
3244
- noSwiping: true,
3245
- noSwipingClass: 'swiper-no-swiping',
3246
- noSwipingSelector: null,
3247
- // Passive Listeners
3248
- passiveListeners: true,
3249
- maxBackfaceHiddenSlides: 10,
3250
- // NS
3251
- containerModifierClass: 'swiper-',
3252
- // NEW
3253
- slideClass: 'swiper-slide',
3254
- slideActiveClass: 'swiper-slide-active',
3255
- slideVisibleClass: 'swiper-slide-visible',
3256
- slideNextClass: 'swiper-slide-next',
3257
- slidePrevClass: 'swiper-slide-prev',
3258
- wrapperClass: 'swiper-wrapper',
3259
- lazyPreloaderClass: 'swiper-lazy-preloader',
3260
- lazyPreloadPrevNext: 0,
3261
- // Callbacks
3262
- runCallbacksOnInit: true,
3263
- // Internals
3264
- _emitClasses: false
3265
- };
3266
-
3267
- function moduleExtendParams(params, allModulesParams) {
3268
- return function extendParams(obj = {}) {
3269
- const moduleParamName = Object.keys(obj)[0];
3270
- const moduleParams = obj[moduleParamName];
3271
- if (typeof moduleParams !== 'object' || moduleParams === null) {
3272
- extend(allModulesParams, obj);
3273
- return;
3274
- }
3275
- if (['navigation', 'pagination', 'scrollbar'].indexOf(moduleParamName) >= 0 && params[moduleParamName] === true) {
3276
- params[moduleParamName] = {
3277
- auto: true
3278
- };
3279
- }
3280
- if (!(moduleParamName in params && 'enabled' in moduleParams)) {
3281
- extend(allModulesParams, obj);
3282
- return;
3283
- }
3284
- if (params[moduleParamName] === true) {
3285
- params[moduleParamName] = {
3286
- enabled: true
3287
- };
3288
- }
3289
- if (typeof params[moduleParamName] === 'object' && !('enabled' in params[moduleParamName])) {
3290
- params[moduleParamName].enabled = true;
3291
- }
3292
- if (!params[moduleParamName]) params[moduleParamName] = {
3293
- enabled: false
3294
- };
3295
- extend(allModulesParams, obj);
3296
- };
3297
- }
3298
-
3299
- /* eslint no-param-reassign: "off" */
3300
- const prototypes = {
3301
- eventsEmitter,
3302
- update,
3303
- translate,
3304
- transition,
3305
- slide,
3306
- loop,
3307
- grabCursor,
3308
- events: events$1,
3309
- breakpoints,
3310
- checkOverflow: checkOverflow$1,
3311
- classes
3312
- };
3313
- const extendedDefaults = {};
3314
- class Swiper {
3315
- constructor(...args) {
3316
- let el;
3317
- let params;
3318
- if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === 'Object') {
3319
- params = args[0];
3320
- } else {
3321
- [el, params] = args;
3322
- }
3323
- if (!params) params = {};
3324
- params = extend({}, params);
3325
- if (el && !params.el) params.el = el;
3326
- const document = getDocument();
3327
- if (params.el && typeof params.el === 'string' && document.querySelectorAll(params.el).length > 1) {
3328
- const swipers = [];
3329
- document.querySelectorAll(params.el).forEach(containerEl => {
3330
- const newParams = extend({}, params, {
3331
- el: containerEl
3332
- });
3333
- swipers.push(new Swiper(newParams));
3334
- });
3335
- // eslint-disable-next-line no-constructor-return
3336
- return swipers;
3337
- }
3338
-
3339
- // Swiper Instance
3340
- const swiper = this;
3341
- swiper.__swiper__ = true;
3342
- swiper.support = getSupport();
3343
- swiper.device = getDevice({
3344
- userAgent: params.userAgent
3345
- });
3346
- swiper.browser = getBrowser();
3347
- swiper.eventsListeners = {};
3348
- swiper.eventsAnyListeners = [];
3349
- swiper.modules = [...swiper.__modules__];
3350
- if (params.modules && Array.isArray(params.modules)) {
3351
- swiper.modules.push(...params.modules);
3352
- }
3353
- const allModulesParams = {};
3354
- swiper.modules.forEach(mod => {
3355
- mod({
3356
- params,
3357
- swiper,
3358
- extendParams: moduleExtendParams(params, allModulesParams),
3359
- on: swiper.on.bind(swiper),
3360
- once: swiper.once.bind(swiper),
3361
- off: swiper.off.bind(swiper),
3362
- emit: swiper.emit.bind(swiper)
3363
- });
3364
- });
3365
-
3366
- // Extend defaults with modules params
3367
- const swiperParams = extend({}, defaults, allModulesParams);
3368
-
3369
- // Extend defaults with passed params
3370
- swiper.params = extend({}, swiperParams, extendedDefaults, params);
3371
- swiper.originalParams = extend({}, swiper.params);
3372
- swiper.passedParams = extend({}, params);
3373
-
3374
- // add event listeners
3375
- if (swiper.params && swiper.params.on) {
3376
- Object.keys(swiper.params.on).forEach(eventName => {
3377
- swiper.on(eventName, swiper.params.on[eventName]);
3378
- });
3379
- }
3380
- if (swiper.params && swiper.params.onAny) {
3381
- swiper.onAny(swiper.params.onAny);
3382
- }
3383
-
3384
- // Extend Swiper
3385
- Object.assign(swiper, {
3386
- enabled: swiper.params.enabled,
3387
- el,
3388
- // Classes
3389
- classNames: [],
3390
- // Slides
3391
- slides: [],
3392
- slidesGrid: [],
3393
- snapGrid: [],
3394
- slidesSizesGrid: [],
3395
- // isDirection
3396
- isHorizontal() {
3397
- return swiper.params.direction === 'horizontal';
3398
- },
3399
- isVertical() {
3400
- return swiper.params.direction === 'vertical';
3401
- },
3402
- // Indexes
3403
- activeIndex: 0,
3404
- realIndex: 0,
3405
- //
3406
- isBeginning: true,
3407
- isEnd: false,
3408
- // Props
3409
- translate: 0,
3410
- previousTranslate: 0,
3411
- progress: 0,
3412
- velocity: 0,
3413
- animating: false,
3414
- cssOverflowAdjustment() {
3415
- // Returns 0 unless `translate` is > 2**23
3416
- // Should be subtracted from css values to prevent overflow
3417
- return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
3418
- },
3419
- // Locks
3420
- allowSlideNext: swiper.params.allowSlideNext,
3421
- allowSlidePrev: swiper.params.allowSlidePrev,
3422
- // Touch Events
3423
- touchEventsData: {
3424
- isTouched: undefined,
3425
- isMoved: undefined,
3426
- allowTouchCallbacks: undefined,
3427
- touchStartTime: undefined,
3428
- isScrolling: undefined,
3429
- currentTranslate: undefined,
3430
- startTranslate: undefined,
3431
- allowThresholdMove: undefined,
3432
- // Form elements to match
3433
- focusableElements: swiper.params.focusableElements,
3434
- // Last click time
3435
- lastClickTime: 0,
3436
- clickTimeout: undefined,
3437
- // Velocities
3438
- velocities: [],
3439
- allowMomentumBounce: undefined,
3440
- startMoving: undefined,
3441
- evCache: []
3442
- },
3443
- // Clicks
3444
- allowClick: true,
3445
- // Touches
3446
- allowTouchMove: swiper.params.allowTouchMove,
3447
- touches: {
3448
- startX: 0,
3449
- startY: 0,
3450
- currentX: 0,
3451
- currentY: 0,
3452
- diff: 0
3453
- },
3454
- // Images
3455
- imagesToLoad: [],
3456
- imagesLoaded: 0
3457
- });
3458
- swiper.emit('_swiper');
3459
-
3460
- // Init
3461
- if (swiper.params.init) {
3462
- swiper.init();
3463
- }
3464
-
3465
- // Return app instance
3466
- // eslint-disable-next-line no-constructor-return
3467
- return swiper;
3468
- }
3469
- getSlideIndex(slideEl) {
3470
- const {
3471
- slidesEl,
3472
- params
3473
- } = this;
3474
- const slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);
3475
- const firstSlideIndex = elementIndex(slides[0]);
3476
- return elementIndex(slideEl) - firstSlideIndex;
3477
- }
3478
- getSlideIndexByData(index) {
3479
- return this.getSlideIndex(this.slides.filter(slideEl => slideEl.getAttribute('data-swiper-slide-index') * 1 === index)[0]);
3480
- }
3481
- recalcSlides() {
3482
- const swiper = this;
3483
- const {
3484
- slidesEl,
3485
- params
3486
- } = swiper;
3487
- swiper.slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);
3488
- }
3489
- enable() {
3490
- const swiper = this;
3491
- if (swiper.enabled) return;
3492
- swiper.enabled = true;
3493
- if (swiper.params.grabCursor) {
3494
- swiper.setGrabCursor();
3495
- }
3496
- swiper.emit('enable');
3497
- }
3498
- disable() {
3499
- const swiper = this;
3500
- if (!swiper.enabled) return;
3501
- swiper.enabled = false;
3502
- if (swiper.params.grabCursor) {
3503
- swiper.unsetGrabCursor();
3504
- }
3505
- swiper.emit('disable');
3506
- }
3507
- setProgress(progress, speed) {
3508
- const swiper = this;
3509
- progress = Math.min(Math.max(progress, 0), 1);
3510
- const min = swiper.minTranslate();
3511
- const max = swiper.maxTranslate();
3512
- const current = (max - min) * progress + min;
3513
- swiper.translateTo(current, typeof speed === 'undefined' ? 0 : speed);
3514
- swiper.updateActiveIndex();
3515
- swiper.updateSlidesClasses();
3516
- }
3517
- emitContainerClasses() {
3518
- const swiper = this;
3519
- if (!swiper.params._emitClasses || !swiper.el) return;
3520
- const cls = swiper.el.className.split(' ').filter(className => {
3521
- return className.indexOf('swiper') === 0 || className.indexOf(swiper.params.containerModifierClass) === 0;
3522
- });
3523
- swiper.emit('_containerClasses', cls.join(' '));
3524
- }
3525
- getSlideClasses(slideEl) {
3526
- const swiper = this;
3527
- if (swiper.destroyed) return '';
3528
- return slideEl.className.split(' ').filter(className => {
3529
- return className.indexOf('swiper-slide') === 0 || className.indexOf(swiper.params.slideClass) === 0;
3530
- }).join(' ');
3531
- }
3532
- emitSlidesClasses() {
3533
- const swiper = this;
3534
- if (!swiper.params._emitClasses || !swiper.el) return;
3535
- const updates = [];
3536
- swiper.slides.forEach(slideEl => {
3537
- const classNames = swiper.getSlideClasses(slideEl);
3538
- updates.push({
3539
- slideEl,
3540
- classNames
3541
- });
3542
- swiper.emit('_slideClass', slideEl, classNames);
3543
- });
3544
- swiper.emit('_slideClasses', updates);
3545
- }
3546
- slidesPerViewDynamic(view = 'current', exact = false) {
3547
- const swiper = this;
3548
- const {
3549
- params,
3550
- slides,
3551
- slidesGrid,
3552
- slidesSizesGrid,
3553
- size: swiperSize,
3554
- activeIndex
3555
- } = swiper;
3556
- let spv = 1;
3557
- if (params.centeredSlides) {
3558
- let slideSize = slides[activeIndex] ? slides[activeIndex].swiperSlideSize : 0;
3559
- let breakLoop;
3560
- for (let i = activeIndex + 1; i < slides.length; i += 1) {
3561
- if (slides[i] && !breakLoop) {
3562
- slideSize += slides[i].swiperSlideSize;
3563
- spv += 1;
3564
- if (slideSize > swiperSize) breakLoop = true;
3565
- }
3566
- }
3567
- for (let i = activeIndex - 1; i >= 0; i -= 1) {
3568
- if (slides[i] && !breakLoop) {
3569
- slideSize += slides[i].swiperSlideSize;
3570
- spv += 1;
3571
- if (slideSize > swiperSize) breakLoop = true;
3572
- }
3573
- }
3574
- } else {
3575
- // eslint-disable-next-line
3576
- if (view === 'current') {
3577
- for (let i = activeIndex + 1; i < slides.length; i += 1) {
3578
- const slideInView = exact ? slidesGrid[i] + slidesSizesGrid[i] - slidesGrid[activeIndex] < swiperSize : slidesGrid[i] - slidesGrid[activeIndex] < swiperSize;
3579
- if (slideInView) {
3580
- spv += 1;
3581
- }
3582
- }
3583
- } else {
3584
- // previous
3585
- for (let i = activeIndex - 1; i >= 0; i -= 1) {
3586
- const slideInView = slidesGrid[activeIndex] - slidesGrid[i] < swiperSize;
3587
- if (slideInView) {
3588
- spv += 1;
3589
- }
3590
- }
3591
- }
3592
- }
3593
- return spv;
3594
- }
3595
- update() {
3596
- const swiper = this;
3597
- if (!swiper || swiper.destroyed) return;
3598
- const {
3599
- snapGrid,
3600
- params
3601
- } = swiper;
3602
- // Breakpoints
3603
- if (params.breakpoints) {
3604
- swiper.setBreakpoint();
3605
- }
3606
- [...swiper.el.querySelectorAll('[loading="lazy"]')].forEach(imageEl => {
3607
- if (imageEl.complete) {
3608
- processLazyPreloader(swiper, imageEl);
3609
- }
3610
- });
3611
- swiper.updateSize();
3612
- swiper.updateSlides();
3613
- swiper.updateProgress();
3614
- swiper.updateSlidesClasses();
3615
- function setTranslate() {
3616
- const translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;
3617
- const newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());
3618
- swiper.setTranslate(newTranslate);
3619
- swiper.updateActiveIndex();
3620
- swiper.updateSlidesClasses();
3621
- }
3622
- let translated;
3623
- if (params.freeMode && params.freeMode.enabled && !params.cssMode) {
3624
- setTranslate();
3625
- if (params.autoHeight) {
3626
- swiper.updateAutoHeight();
3627
- }
3628
- } else {
3629
- if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !params.centeredSlides) {
3630
- const slides = swiper.virtual && params.virtual.enabled ? swiper.virtual.slides : swiper.slides;
3631
- translated = swiper.slideTo(slides.length - 1, 0, false, true);
3632
- } else {
3633
- translated = swiper.slideTo(swiper.activeIndex, 0, false, true);
3634
- }
3635
- if (!translated) {
3636
- setTranslate();
3637
- }
3638
- }
3639
- if (params.watchOverflow && snapGrid !== swiper.snapGrid) {
3640
- swiper.checkOverflow();
3641
- }
3642
- swiper.emit('update');
3643
- }
3644
- changeDirection(newDirection, needUpdate = true) {
3645
- const swiper = this;
3646
- const currentDirection = swiper.params.direction;
3647
- if (!newDirection) {
3648
- // eslint-disable-next-line
3649
- newDirection = currentDirection === 'horizontal' ? 'vertical' : 'horizontal';
3650
- }
3651
- if (newDirection === currentDirection || newDirection !== 'horizontal' && newDirection !== 'vertical') {
3652
- return swiper;
3653
- }
3654
- swiper.el.classList.remove(`${swiper.params.containerModifierClass}${currentDirection}`);
3655
- swiper.el.classList.add(`${swiper.params.containerModifierClass}${newDirection}`);
3656
- swiper.emitContainerClasses();
3657
- swiper.params.direction = newDirection;
3658
- swiper.slides.forEach(slideEl => {
3659
- if (newDirection === 'vertical') {
3660
- slideEl.style.width = '';
3661
- } else {
3662
- slideEl.style.height = '';
3663
- }
3664
- });
3665
- swiper.emit('changeDirection');
3666
- if (needUpdate) swiper.update();
3667
- return swiper;
3668
- }
3669
- changeLanguageDirection(direction) {
3670
- const swiper = this;
3671
- if (swiper.rtl && direction === 'rtl' || !swiper.rtl && direction === 'ltr') return;
3672
- swiper.rtl = direction === 'rtl';
3673
- swiper.rtlTranslate = swiper.params.direction === 'horizontal' && swiper.rtl;
3674
- if (swiper.rtl) {
3675
- swiper.el.classList.add(`${swiper.params.containerModifierClass}rtl`);
3676
- swiper.el.dir = 'rtl';
3677
- } else {
3678
- swiper.el.classList.remove(`${swiper.params.containerModifierClass}rtl`);
3679
- swiper.el.dir = 'ltr';
3680
- }
3681
- swiper.update();
3682
- }
3683
- mount(element) {
3684
- const swiper = this;
3685
- if (swiper.mounted) return true;
3686
-
3687
- // Find el
3688
- let el = element || swiper.params.el;
3689
- if (typeof el === 'string') {
3690
- el = document.querySelector(el);
3691
- }
3692
- if (!el) {
3693
- return false;
3694
- }
3695
- el.swiper = swiper;
3696
- if (el.shadowEl) {
3697
- swiper.isElement = true;
3698
- }
3699
- const getWrapperSelector = () => {
3700
- return `.${(swiper.params.wrapperClass || '').trim().split(' ').join('.')}`;
3701
- };
3702
- const getWrapper = () => {
3703
- if (el && el.shadowRoot && el.shadowRoot.querySelector) {
3704
- const res = el.shadowRoot.querySelector(getWrapperSelector());
3705
- // Children needs to return slot items
3706
- return res;
3707
- }
3708
- return elementChildren(el, getWrapperSelector())[0];
3709
- };
3710
- // Find Wrapper
3711
- let wrapperEl = getWrapper();
3712
- if (!wrapperEl && swiper.params.createElements) {
3713
- wrapperEl = createElement('div', swiper.params.wrapperClass);
3714
- el.append(wrapperEl);
3715
- elementChildren(el, `.${swiper.params.slideClass}`).forEach(slideEl => {
3716
- wrapperEl.append(slideEl);
3717
- });
3718
- }
3719
- Object.assign(swiper, {
3720
- el,
3721
- wrapperEl,
3722
- slidesEl: swiper.isElement ? el : wrapperEl,
3723
- mounted: true,
3724
- // RTL
3725
- rtl: el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl',
3726
- rtlTranslate: swiper.params.direction === 'horizontal' && (el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl'),
3727
- wrongRTL: elementStyle(wrapperEl, 'display') === '-webkit-box'
3728
- });
3729
- return true;
3730
- }
3731
- init(el) {
3732
- const swiper = this;
3733
- if (swiper.initialized) return swiper;
3734
- const mounted = swiper.mount(el);
3735
- if (mounted === false) return swiper;
3736
- swiper.emit('beforeInit');
3737
-
3738
- // Set breakpoint
3739
- if (swiper.params.breakpoints) {
3740
- swiper.setBreakpoint();
3741
- }
3742
-
3743
- // Add Classes
3744
- swiper.addClasses();
3745
-
3746
- // Update size
3747
- swiper.updateSize();
3748
-
3749
- // Update slides
3750
- swiper.updateSlides();
3751
- if (swiper.params.watchOverflow) {
3752
- swiper.checkOverflow();
3753
- }
3754
-
3755
- // Set Grab Cursor
3756
- if (swiper.params.grabCursor && swiper.enabled) {
3757
- swiper.setGrabCursor();
3758
- }
3759
-
3760
- // Slide To Initial Slide
3761
- if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {
3762
- swiper.slideTo(swiper.params.initialSlide + swiper.virtual.slidesBefore, 0, swiper.params.runCallbacksOnInit, false, true);
3763
- } else {
3764
- swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit, false, true);
3765
- }
3766
-
3767
- // Create loop
3768
- if (swiper.params.loop) {
3769
- swiper.loopCreate();
3770
- }
3771
-
3772
- // Attach events
3773
- swiper.attachEvents();
3774
- [...swiper.el.querySelectorAll('[loading="lazy"]')].forEach(imageEl => {
3775
- if (imageEl.complete) {
3776
- processLazyPreloader(swiper, imageEl);
3777
- } else {
3778
- imageEl.addEventListener('load', e => {
3779
- processLazyPreloader(swiper, e.target);
3780
- });
3781
- }
3782
- });
3783
- preload(swiper);
3784
-
3785
- // Init Flag
3786
- swiper.initialized = true;
3787
- preload(swiper);
3788
-
3789
- // Emit
3790
- swiper.emit('init');
3791
- swiper.emit('afterInit');
3792
- return swiper;
3793
- }
3794
- destroy(deleteInstance = true, cleanStyles = true) {
3795
- const swiper = this;
3796
- const {
3797
- params,
3798
- el,
3799
- wrapperEl,
3800
- slides
3801
- } = swiper;
3802
- if (typeof swiper.params === 'undefined' || swiper.destroyed) {
3803
- return null;
3804
- }
3805
- swiper.emit('beforeDestroy');
3806
-
3807
- // Init Flag
3808
- swiper.initialized = false;
3809
-
3810
- // Detach events
3811
- swiper.detachEvents();
3812
-
3813
- // Destroy loop
3814
- if (params.loop) {
3815
- swiper.loopDestroy();
3816
- }
3817
-
3818
- // Cleanup styles
3819
- if (cleanStyles) {
3820
- swiper.removeClasses();
3821
- el.removeAttribute('style');
3822
- wrapperEl.removeAttribute('style');
3823
- if (slides && slides.length) {
3824
- slides.forEach(slideEl => {
3825
- slideEl.classList.remove(params.slideVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass);
3826
- slideEl.removeAttribute('style');
3827
- slideEl.removeAttribute('data-swiper-slide-index');
3828
- });
3829
- }
3830
- }
3831
- swiper.emit('destroy');
3832
-
3833
- // Detach emitter events
3834
- Object.keys(swiper.eventsListeners).forEach(eventName => {
3835
- swiper.off(eventName);
3836
- });
3837
- if (deleteInstance !== false) {
3838
- swiper.el.swiper = null;
3839
- deleteProps(swiper);
3840
- }
3841
- swiper.destroyed = true;
3842
- return null;
3843
- }
3844
- static extendDefaults(newDefaults) {
3845
- extend(extendedDefaults, newDefaults);
3846
- }
3847
- static get extendedDefaults() {
3848
- return extendedDefaults;
3849
- }
3850
- static get defaults() {
3851
- return defaults;
3852
- }
3853
- static installModule(mod) {
3854
- if (!Swiper.prototype.__modules__) Swiper.prototype.__modules__ = [];
3855
- const modules = Swiper.prototype.__modules__;
3856
- if (typeof mod === 'function' && modules.indexOf(mod) < 0) {
3857
- modules.push(mod);
3858
- }
3859
- }
3860
- static use(module) {
3861
- if (Array.isArray(module)) {
3862
- module.forEach(m => Swiper.installModule(m));
3863
- return Swiper;
3864
- }
3865
- Swiper.installModule(module);
3866
- return Swiper;
3867
- }
3868
- }
3869
- Object.keys(prototypes).forEach(prototypeGroup => {
3870
- Object.keys(prototypes[prototypeGroup]).forEach(protoMethod => {
3871
- Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];
3872
- });
3873
- });
3874
- Swiper.use([Resize, Observer]);
3875
-
3876
- exports.Swiper = Swiper;
3877
- exports.createElement = createElement;
3878
- exports.elementChildren = elementChildren;
3879
- exports.elementIndex = elementIndex;
3880
- exports.elementOffset = elementOffset;
3881
- exports.elementOuterSize = elementOuterSize;
3882
- exports.elementParents = elementParents;
3883
- exports.elementTransitionEnd = elementTransitionEnd;
3884
- exports.getDocument = getDocument;
3885
- exports.getSlideTransformEl = getSlideTransformEl;
3886
- exports.getWindow = getWindow;
3887
- exports.isObject = isObject;
3888
- exports.nextTick = nextTick;
3889
- exports.now = now;