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