card 1.96.2 → 1.96.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/config/initializers/patches.rb +1 -1
  4. data/db/migrate_core_cards/20130823192433_add_style_cards.rb +1 -1
  5. data/db/migrate_core_cards/20170314175313_add_notification_event_card.rb +2 -3
  6. data/db/migrate_core_cards/data/1.11_help_text.json +16 -16
  7. data/db/migrate_core_cards/data/1.13_config_text.json +2 -2
  8. data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +12 -12
  9. data/db/migrate_core_cards/data/bootstrap_layout.json +1 -1
  10. data/db/seed/new/card_actions.yml +799 -799
  11. data/db/seed/new/card_acts.yml +2 -2
  12. data/db/seed/new/cards.yml +1610 -1610
  13. data/db/seed/new/schema_migrations.yml +8 -10
  14. data/db/seed/test/fixtures/card_actions.yml +1789 -1789
  15. data/db/seed/test/fixtures/card_acts.yml +447 -447
  16. data/db/seed/test/fixtures/card_changes.yml +66 -66
  17. data/db/seed/test/fixtures/card_references.yml +575 -575
  18. data/db/seed/test/fixtures/cards.yml +2612 -2612
  19. data/db/seed/test/seed.rb +2 -1
  20. data/lib/card/format/error.rb +12 -6
  21. data/lib/card/model/save_helper.rb +2 -1
  22. data/lib/card/query.rb +1 -1
  23. data/lib/card/set.rb +22 -12
  24. data/lib/card/view/cache.rb +3 -3
  25. data/lib/cardio.rb +3 -1
  26. data/mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb +1 -1
  27. data/mod/basic_formats/set/all/base.rb +16 -2
  28. data/mod/basic_formats/set/all/json.rb +16 -14
  29. data/mod/bootstrap/lib/stylesheets/style_bootstrap_cards.scss +54 -4
  30. data/mod/bootstrap/vendor/bootstrap/Gemfile +3 -3
  31. data/mod/bootstrap/vendor/bootstrap/Gemfile.lock +15 -15
  32. data/mod/bootstrap/vendor/bootstrap/README.md +36 -30
  33. data/mod/bootstrap/vendor/bootstrap/_config.yml +12 -30
  34. data/mod/bootstrap/vendor/bootstrap/build/build-plugins.js +81 -0
  35. data/mod/bootstrap/vendor/bootstrap/build/generate-sri.js +2 -2
  36. data/mod/bootstrap/vendor/bootstrap/build/workbox.config.json +1 -1
  37. data/mod/bootstrap/vendor/bootstrap/build/workbox.js +1 -1
  38. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.css +1 -1
  39. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.css.map +1 -1
  40. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.min.css +1 -1
  41. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-grid.min.css.map +1 -1
  42. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.css +5 -4
  43. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.css.map +1 -1
  44. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.min.css +2 -2
  45. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-reboot.min.css.map +1 -1
  46. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css +145 -96
  47. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css.map +1 -1
  48. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css +2 -2
  49. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css.map +1 -1
  50. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.js +123 -106
  51. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.js.map +1 -1
  52. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.min.js +2 -2
  53. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -1
  54. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.js +123 -106
  55. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.js.map +1 -1
  56. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.min.js +2 -2
  57. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.min.js.map +1 -1
  58. data/mod/bootstrap/vendor/bootstrap/js/dist/alert.js +160 -134
  59. data/mod/bootstrap/vendor/bootstrap/js/dist/alert.js.map +1 -1
  60. data/mod/bootstrap/vendor/bootstrap/js/dist/button.js +150 -125
  61. data/mod/bootstrap/vendor/bootstrap/js/dist/button.js.map +1 -1
  62. data/mod/bootstrap/vendor/bootstrap/js/dist/carousel.js +465 -406
  63. data/mod/bootstrap/vendor/bootstrap/js/dist/carousel.js.map +1 -1
  64. data/mod/bootstrap/vendor/bootstrap/js/dist/collapse.js +338 -274
  65. data/mod/bootstrap/vendor/bootstrap/js/dist/collapse.js.map +1 -1
  66. data/mod/bootstrap/vendor/bootstrap/js/dist/dropdown.js +442 -379
  67. data/mod/bootstrap/vendor/bootstrap/js/dist/dropdown.js.map +1 -1
  68. data/mod/bootstrap/vendor/bootstrap/js/dist/index.js +1 -1
  69. data/mod/bootstrap/vendor/bootstrap/js/dist/index.js.map +1 -1
  70. data/mod/bootstrap/vendor/bootstrap/js/dist/modal.js +503 -454
  71. data/mod/bootstrap/vendor/bootstrap/js/dist/modal.js.map +1 -1
  72. data/mod/bootstrap/vendor/bootstrap/js/dist/popover.js +224 -164
  73. data/mod/bootstrap/vendor/bootstrap/js/dist/popover.js.map +1 -1
  74. data/mod/bootstrap/vendor/bootstrap/js/dist/scrollspy.js +308 -248
  75. data/mod/bootstrap/vendor/bootstrap/js/dist/scrollspy.js.map +1 -1
  76. data/mod/bootstrap/vendor/bootstrap/js/dist/tab.js +218 -191
  77. data/mod/bootstrap/vendor/bootstrap/js/dist/tab.js.map +1 -1
  78. data/mod/bootstrap/vendor/bootstrap/js/dist/tooltip.js +584 -524
  79. data/mod/bootstrap/vendor/bootstrap/js/dist/tooltip.js.map +1 -1
  80. data/mod/bootstrap/vendor/bootstrap/js/dist/util.js +130 -118
  81. data/mod/bootstrap/vendor/bootstrap/js/dist/util.js.map +1 -1
  82. data/mod/bootstrap/vendor/bootstrap/js/src/alert.js +3 -3
  83. data/mod/bootstrap/vendor/bootstrap/js/src/button.js +7 -7
  84. data/mod/bootstrap/vendor/bootstrap/js/src/carousel.js +16 -13
  85. data/mod/bootstrap/vendor/bootstrap/js/src/collapse.js +25 -21
  86. data/mod/bootstrap/vendor/bootstrap/js/src/dropdown.js +16 -9
  87. data/mod/bootstrap/vendor/bootstrap/js/src/index.js +1 -1
  88. data/mod/bootstrap/vendor/bootstrap/js/src/modal.js +30 -30
  89. data/mod/bootstrap/vendor/bootstrap/js/src/popover.js +2 -2
  90. data/mod/bootstrap/vendor/bootstrap/js/src/scrollspy.js +12 -9
  91. data/mod/bootstrap/vendor/bootstrap/js/src/tab.js +5 -4
  92. data/mod/bootstrap/vendor/bootstrap/js/src/tooltip.js +11 -9
  93. data/mod/bootstrap/vendor/bootstrap/js/src/util.js +2 -3
  94. data/mod/bootstrap/vendor/bootstrap/js/tests/index.html +4 -4
  95. data/mod/bootstrap/vendor/bootstrap/js/tests/karma-bundle.conf.js +2 -2
  96. data/mod/bootstrap/vendor/bootstrap/js/tests/karma.conf.js +7 -2
  97. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/alert.js +1 -0
  98. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/button.js +1 -0
  99. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/carousel.js +1 -0
  100. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/collapse.js +1 -0
  101. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/dropdown.js +69 -0
  102. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/modal.js +3 -43
  103. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/popover.js +1 -0
  104. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/scrollspy.js +1 -0
  105. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tab.js +1 -0
  106. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tooltip.js +24 -40
  107. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/util.js +5 -1
  108. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/alert.html +1 -1
  109. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/button.html +1 -1
  110. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/carousel.html +1 -2
  111. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/collapse.html +15 -1
  112. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/dropdown.html +2 -2
  113. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/modal.html +8 -8
  114. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/popover.html +2 -2
  115. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/scrollspy.html +1 -2
  116. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tab.html +3 -2
  117. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tooltip.html +35 -23
  118. data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.nuspec +5 -1
  119. data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.sass.nuspec +5 -1
  120. data/mod/bootstrap/vendor/bootstrap/package-lock.json +5397 -7292
  121. data/mod/bootstrap/vendor/bootstrap/package.js +1 -1
  122. data/mod/bootstrap/vendor/bootstrap/package.json +63 -64
  123. data/mod/bootstrap/vendor/bootstrap/scss/_buttons.scss +0 -1
  124. data/mod/bootstrap/vendor/bootstrap/scss/_carousel.scss +1 -1
  125. data/mod/bootstrap/vendor/bootstrap/scss/_close.scss +8 -7
  126. data/mod/bootstrap/vendor/bootstrap/scss/_custom-forms.scss +32 -20
  127. data/mod/bootstrap/vendor/bootstrap/scss/_forms.scss +13 -15
  128. data/mod/bootstrap/vendor/bootstrap/scss/_functions.scss +1 -1
  129. data/mod/bootstrap/vendor/bootstrap/scss/_input-group.scss +22 -7
  130. data/mod/bootstrap/vendor/bootstrap/scss/_modal.scss +18 -6
  131. data/mod/bootstrap/vendor/bootstrap/scss/_navbar.scss +2 -2
  132. data/mod/bootstrap/vendor/bootstrap/scss/_reboot.scss +5 -2
  133. data/mod/bootstrap/vendor/bootstrap/scss/_tables.scss +0 -1
  134. data/mod/bootstrap/vendor/bootstrap/scss/_variables.scss +88 -65
  135. data/mod/bootstrap/vendor/bootstrap/scss/bootstrap-grid.scss +1 -1
  136. data/mod/bootstrap/vendor/bootstrap/scss/bootstrap-reboot.scss +1 -1
  137. data/mod/bootstrap/vendor/bootstrap/scss/bootstrap.scss +1 -1
  138. data/mod/bootstrap/vendor/bootstrap/scss/mixins/_breakpoints.scss +1 -1
  139. data/mod/bootstrap/vendor/bootstrap/scss/mixins/_forms.scss +7 -7
  140. data/mod/bootstrap/vendor/bootstrap/scss/mixins/_hover.scss +1 -1
  141. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/breakpoints.yml +0 -0
  142. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/browser-bugs.yml +5 -5
  143. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/browser-features.yml +0 -0
  144. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/colors.yml +0 -0
  145. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/examples.yml +0 -0
  146. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/grays.yml +0 -0
  147. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/nav.yml +0 -0
  148. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/theme-colors.yml +0 -0
  149. data/mod/bootstrap/vendor/bootstrap/{_data → site/_data}/translations.yml +0 -0
  150. data/mod/bootstrap/vendor/bootstrap/site/_includes/ads.html +1 -0
  151. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/bugify.html +0 -0
  152. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout-danger-async-methods.md +0 -0
  153. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout-info-mediaqueries-breakpoints.md +0 -0
  154. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout-warning-color-assistive-technologies.md +0 -0
  155. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/callout.html +0 -0
  156. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/docs-navbar.html +1 -4
  157. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/docs-sidebar.html +0 -0
  158. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/example.html +0 -0
  159. data/mod/bootstrap/vendor/bootstrap/site/_includes/favicons.html +9 -0
  160. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/footer.html +0 -0
  161. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/header.html +5 -7
  162. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/bootstrap.svg +0 -0
  163. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/download.svg +0 -0
  164. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/github.svg +0 -0
  165. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/import.svg +0 -0
  166. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/lightning.svg +0 -0
  167. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/menu.svg +0 -0
  168. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/slack.svg +0 -0
  169. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/icons/twitter.svg +0 -0
  170. data/mod/bootstrap/vendor/bootstrap/site/_includes/scripts.html +26 -0
  171. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/skippy.html +0 -0
  172. data/mod/bootstrap/vendor/bootstrap/{_includes → site/_includes}/social.html +0 -0
  173. data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/default.html +0 -0
  174. data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/docs.html +0 -0
  175. data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/examples.html +0 -0
  176. data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/home.html +0 -0
  177. data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/redirect.html +1 -1
  178. data/mod/bootstrap/vendor/bootstrap/{_layouts → site/_layouts}/simple.html +0 -0
  179. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/brand.md +5 -5
  180. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/license.md +0 -0
  181. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/overview.md +0 -0
  182. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/about/translations.md +0 -0
  183. data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/brand/bootstrap-outline.svg +4 -0
  184. data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/brand/bootstrap-punchout.svg +4 -0
  185. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/brand/bootstrap-social-logo.png +0 -0
  186. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/brand/bootstrap-social.png +0 -0
  187. data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/brand/bootstrap-solid.svg +4 -0
  188. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/css/docs.min.css +0 -0
  189. data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/css/docs.min.css.map +1 -0
  190. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/bootstrap-stack.png +0 -0
  191. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/bootstrap-themes.png +0 -0
  192. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/android-chrome-192x192.png +0 -0
  193. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/android-chrome-512x512.png +0 -0
  194. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/apple-touch-icon.png +0 -0
  195. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/browserconfig.xml +1 -1
  196. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/favicon-16x16.png +0 -0
  197. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/favicon-32x32.png +0 -0
  198. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/manifest.json +2 -2
  199. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-144x144.png +0 -0
  200. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-150x150.png +0 -0
  201. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-310x150.png +0 -0
  202. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-310x310.png +0 -0
  203. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/img/favicons/mstile-70x70.png +0 -0
  204. data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/assets/img/favicons/safari-pinned-tab.svg +4 -0
  205. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/docs.min.js +0 -0
  206. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/application.js +0 -0
  207. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/ie-emulation-modes-warning.js +0 -0
  208. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/pwa.js +0 -0
  209. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/src/search.js +0 -0
  210. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/anchor.min.js +0 -0
  211. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/clipboard.min.js +0 -0
  212. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/holder.min.js +0 -0
  213. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/jquery-slim.min.js +0 -0
  214. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/js/vendor/popper.min.js +0 -0
  215. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_ads.scss +0 -0
  216. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_algolia.scss +0 -0
  217. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_anchor.scss +0 -0
  218. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_brand.scss +0 -0
  219. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_browser-bugs.scss +0 -0
  220. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_buttons.scss +0 -0
  221. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_callouts.scss +0 -0
  222. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_clipboard-js.scss +0 -0
  223. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_colors.scss +0 -0
  224. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_component-examples.scss +0 -0
  225. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_content.scss +0 -0
  226. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_examples.scss +0 -0
  227. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_footer.scss +0 -0
  228. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_masthead.scss +0 -0
  229. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_nav.scss +0 -0
  230. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_sidebar.scss +0 -0
  231. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_skiplink.scss +0 -0
  232. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_syntax.scss +0 -0
  233. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/_variables.scss +0 -0
  234. data/mod/bootstrap/vendor/bootstrap/{assets → site/docs/4.1/assets}/scss/docs.scss +3 -3
  235. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/browser-bugs.md +0 -0
  236. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/alerts.md +0 -0
  237. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/badge.md +0 -0
  238. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/breadcrumb.md +0 -0
  239. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/button-group.md +0 -0
  240. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/buttons.md +0 -0
  241. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/card.md +2 -2
  242. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/carousel.md +0 -0
  243. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/collapse.md +0 -0
  244. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/dropdowns.md +3 -2
  245. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/forms.md +17 -17
  246. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/input-group.md +27 -27
  247. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/jumbotron.md +0 -0
  248. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/list-group.md +0 -0
  249. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/modal.md +0 -0
  250. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/navbar.md +3 -3
  251. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/navs.md +0 -0
  252. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/pagination.md +0 -0
  253. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/popovers.md +2 -2
  254. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/progress.md +0 -0
  255. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/scrollspy.md +0 -0
  256. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/components/tooltips.md +11 -0
  257. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/code.md +0 -0
  258. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/figures.md +0 -0
  259. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/images.md +0 -0
  260. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/reboot.md +0 -0
  261. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/tables.md +16 -5
  262. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/content/typography.md +0 -0
  263. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/album/album.css +0 -2
  264. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/album/index.html +15 -15
  265. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/blog/blog.css +0 -5
  266. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/blog/index.html +7 -7
  267. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/carousel/carousel.css +0 -0
  268. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/carousel/index.html +5 -5
  269. data/mod/bootstrap/vendor/bootstrap/site/docs/4.1/examples/checkout/form-validation.css +5 -0
  270. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/checkout/index.html +6 -6
  271. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/cover/cover.css +0 -0
  272. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/cover/index.html +4 -4
  273. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/dashboard/dashboard.css +0 -7
  274. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/dashboard/index.html +4 -4
  275. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/floating-labels/floating-labels.css +23 -0
  276. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/floating-labels/index.html +2 -2
  277. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/grid/grid.css +0 -0
  278. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/grid/index.html +9 -9
  279. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/index.html +0 -0
  280. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/jumbotron/index.html +4 -4
  281. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/jumbotron/jumbotron.css +0 -0
  282. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-bottom/index.html +4 -4
  283. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-fixed/index.html +4 -4
  284. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-fixed/navbar-top-fixed.css +0 -0
  285. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-static/index.html +4 -4
  286. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbar-static/navbar-top.css +0 -0
  287. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbars/index.html +4 -4
  288. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/navbars/navbar.css +0 -0
  289. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/offcanvas/index.html +10 -10
  290. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/offcanvas/offcanvas.css +0 -4
  291. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/offcanvas/offcanvas.js +0 -0
  292. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/pricing/index.html +10 -10
  293. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/pricing/pricing.css +0 -5
  294. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/product/index.html +15 -15
  295. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/product/product.css +0 -5
  296. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/album.png +0 -0
  297. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/blog.png +0 -0
  298. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/carousel.png +0 -0
  299. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/checkout.png +0 -0
  300. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/cover.png +0 -0
  301. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/dashboard.png +0 -0
  302. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/floating-labels.png +0 -0
  303. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/grid.png +0 -0
  304. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/jumbotron.png +0 -0
  305. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbar-bottom.png +0 -0
  306. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbar-fixed.png +0 -0
  307. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbar-static.png +0 -0
  308. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/navbars.png +0 -0
  309. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/offcanvas.png +0 -0
  310. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/pricing.png +0 -0
  311. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/product.png +0 -0
  312. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/sign-in.png +0 -0
  313. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/starter-template.png +0 -0
  314. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/sticky-footer-navbar.png +0 -0
  315. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/screenshots/sticky-footer.png +0 -0
  316. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sign-in/index.html +2 -2
  317. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sign-in/signin.css +0 -0
  318. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/starter-template/index.html +4 -4
  319. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/starter-template/starter-template.css +0 -0
  320. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer-navbar/index.html +4 -4
  321. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer-navbar/sticky-footer-navbar.css +0 -0
  322. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer/index.html +1 -1
  323. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/sticky-footer/sticky-footer.css +0 -0
  324. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/tooltip-viewport/index.html +4 -4
  325. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/tooltip-viewport/tooltip-viewport.css +0 -0
  326. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/examples/tooltip-viewport/tooltip-viewport.js +0 -0
  327. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/extend/approach.md +0 -0
  328. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/extend/icons.md +1 -1
  329. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/extend/index.md +0 -0
  330. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/accessibility.md +0 -0
  331. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/best-practices.md +0 -0
  332. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/browsers-devices.md +0 -0
  333. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/build-tools.md +1 -1
  334. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/contents.md +12 -8
  335. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/download.md +0 -0
  336. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/introduction.md +2 -0
  337. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/javascript.md +3 -1
  338. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/theming.md +16 -16
  339. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/getting-started/webpack.md +1 -6
  340. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/grid.md +1 -1
  341. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/media-object.md +0 -0
  342. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/overview.md +0 -0
  343. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/layout/utilities-for-layout.md +0 -0
  344. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/migration.md +0 -0
  345. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/borders.md +0 -0
  346. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/clearfix.md +0 -0
  347. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/close-icon.md +0 -0
  348. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/colors.md +1 -1
  349. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/display.md +0 -0
  350. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/embed.md +0 -0
  351. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/flex.md +0 -0
  352. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/float.md +0 -0
  353. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/image-replacement.md +1 -1
  354. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/position.md +0 -0
  355. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/screenreaders.md +0 -0
  356. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/shadows.md +1 -1
  357. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/sizing.md +0 -0
  358. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/spacing.md +0 -0
  359. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/text.md +0 -0
  360. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/vertical-align.md +0 -0
  361. data/mod/bootstrap/vendor/bootstrap/{docs → site/docs}/4.1/utilities/visibility.md +1 -1
  362. data/mod/bootstrap/vendor/bootstrap/{favicon.ico → site/favicon.ico} +0 -0
  363. data/mod/bootstrap/vendor/bootstrap/{index.html → site/index.html} +2 -2
  364. data/mod/bootstrap/vendor/bootstrap/{robots.txt → site/robots.txt} +0 -0
  365. data/mod/bootstrap/vendor/bootstrap/{sw.js → site/sw.js} +1 -1
  366. data/mod/carrierwave/lib/carrier_wave/file_card_uploader.rb +1 -1
  367. data/mod/carrierwave/set/abstract/attachment/upload_cache.rb +5 -8
  368. data/mod/carrierwave/template/type/file/file_chooser.haml +1 -1
  369. data/mod/core/set/abstract/code_file.rb +4 -0
  370. data/mod/core/set/all/haml.rb +2 -2
  371. data/mod/follow/spec/set/all/notify_spec.rb +2 -1
  372. data/mod/google_analytics/set/all/google_analytics.rb +5 -3
  373. data/mod/item/set/all/bar.haml +6 -3
  374. data/mod/item/set/all/bar.rb +27 -12
  375. data/mod/item/set/all/box.haml +4 -3
  376. data/mod/item/set/all/box.rb +1 -1
  377. data/mod/item/set/all/expanded_bar.haml +8 -6
  378. data/mod/item/spec/set/all/bar_spec.rb +3 -3
  379. data/mod/machines/lib/javascript/decko_filter.js.coffee +5 -1
  380. data/mod/machines/lib/stylesheets/style_cards.scss +16 -24
  381. data/mod/pointer/set/abstract/01_paging.rb +4 -4
  382. data/mod/pointer/set/abstract/02_pointer/options_api.rb +10 -12
  383. data/mod/prosemirror_editor/db/migrate_core_cards/20160804112548_add_prosemirror_cards.rb +1 -1
  384. data/mod/search/set/abstract/search.rb +9 -6
  385. data/mod/search/set/abstract/wql_search.rb +20 -5
  386. data/mod/search/set/self/search.rb +1 -1
  387. data/mod/standard/set/all/error.rb +15 -0
  388. data/mod/standard/set/all/rich_html/content.rb +30 -21
  389. data/mod/standard/set/all/rich_html/content/labeled.haml +4 -0
  390. data/mod/standard/set/all/rich_html/error.rb +11 -12
  391. data/mod/standard/set/all/rich_html/title.rb +1 -1
  392. data/mod/standard/spec/content/chunk/include_spec.rb +1 -1
  393. data/mod/standard/spec/set/all/error_spec.rb +1 -1
  394. data/mod/standard/spec/set/type/email_template/email_config_spec.rb +10 -9
  395. data/mod/standard/spec/set/type/uri_spec.rb +7 -7
  396. data/mod/tinymce_editor/db/migrate_core_cards/20160804112560_add_tinymce_cards.rb +1 -1
  397. data/mod/utility/set/abstract/bs_badge/labeled_badge.haml +1 -1
  398. data/mod/utility/set/abstract/media/media_snippet.haml +1 -2
  399. metadata +231 -230
  400. data/mod/bootstrap/vendor/bootstrap/_includes/ads.html +0 -1
  401. data/mod/bootstrap/vendor/bootstrap/_includes/favicons.html +0 -9
  402. data/mod/bootstrap/vendor/bootstrap/_includes/scripts.html +0 -26
  403. data/mod/bootstrap/vendor/bootstrap/assets/brand/bootstrap-outline.svg +0 -6
  404. data/mod/bootstrap/vendor/bootstrap/assets/brand/bootstrap-punchout.svg +0 -6
  405. data/mod/bootstrap/vendor/bootstrap/assets/brand/bootstrap-solid.svg +0 -6
  406. data/mod/bootstrap/vendor/bootstrap/assets/css/docs.min.css.map +0 -1
  407. data/mod/bootstrap/vendor/bootstrap/assets/img/favicons/safari-pinned-tab.svg +0 -20
  408. data/mod/bootstrap/vendor/bootstrap/build/upload-preview.sh +0 -13
  409. data/mod/bootstrap/vendor/bootstrap/docs/4.1/examples/checkout/form-validation.css +0 -11
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/carousel.js"],"names":["Carousel","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","ARROW_LEFT_KEYCODE","ARROW_RIGHT_KEYCODE","TOUCHEVENT_COMPAT_WAIT","Default","interval","keyboard","slide","pause","wrap","DefaultType","Direction","NEXT","PREV","LEFT","RIGHT","Event","SLIDE","SLID","KEYDOWN","MOUSEENTER","MOUSELEAVE","TOUCHEND","LOAD_DATA_API","CLICK_DATA_API","ClassName","CAROUSEL","ACTIVE","ITEM","Selector","ACTIVE_ITEM","NEXT_PREV","INDICATORS","DATA_SLIDE","DATA_RIDE","element","config","_items","_interval","_activeElement","_isPaused","_isSliding","touchTimeout","_config","_getConfig","_element","_indicatorsElement","find","_addEventListeners","next","_slide","nextWhenVisible","document","hidden","is","css","prev","event","Util","triggerTransitionEnd","cycle","clearInterval","setInterval","visibilityState","bind","to","index","activeIndex","_getItemIndex","length","one","direction","dispose","off","removeData","typeCheckConfig","on","_keydown","documentElement","clearTimeout","setTimeout","test","target","tagName","which","preventDefault","makeArray","parent","indexOf","_getItemByDirection","activeElement","isNextDirection","isPrevDirection","lastItemIndex","isGoingToWrap","delta","itemIndex","_triggerSlideEvent","relatedTarget","eventDirectionName","targetIndex","fromIndex","slideEvent","from","trigger","_setActiveIndicatorElement","removeClass","nextIndicator","children","addClass","activeElementIndex","nextElement","nextElementIndex","isCycling","Boolean","directionalClassName","orderClassName","hasClass","isDefaultPrevented","slidEvent","reflow","transitionDuration","getTransitionDurationFromElement","TRANSITION_END","emulateTransitionEnd","_jQueryInterface","each","data","action","TypeError","_dataApiClickHandler","selector","getSelectorFromElement","slideIndex","getAttribute","call","window","$carousel","Constructor","noConflict"],"mappings":";;;;;;;;AAGA;;;;;;AAOA,IAAMA,WAAY,UAACC,CAAD,EAAO;AACvB;;;;;AAMA,MAAMC,OAAyB,UAA/B;AACA,MAAMC,UAAyB,OAA/B;AACA,MAAMC,WAAyB,aAA/B;AACA,MAAMC,kBAA6BD,QAAnC;AACA,MAAME,eAAyB,WAA/B;AACA,MAAMC,qBAAyBN,EAAEO,EAAF,CAAKN,IAAL,CAA/B;AACA,MAAMO,qBAAyB,EAA/B,CAbuB,CAaW;;AAClC,MAAMC,sBAAyB,EAA/B,CAduB,CAcW;;AAClC,MAAMC,yBAAyB,GAA/B,CAfuB,CAeY;;AAEnC,MAAMC,UAAU;AACdC,cAAW,IADG;AAEdC,cAAW,IAFG;AAGdC,WAAW,KAHG;AAIdC,WAAW,OAJ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+BE,SAA/B,EAA0CA,UAAUV,IAAV,EAA1C;AACD,KAHD;AAID,GALD;AAOA;;;;;;AAMAtI,IAAEO,EAAF,CAAKN,IAAL,IAAaF,SAASqI,gBAAtB;AACApI,IAAEO,EAAF,CAAKN,IAAL,EAAWgJ,WAAX,GAAyBlJ,QAAzB;;AACAC,IAAEO,EAAF,CAAKN,IAAL,EAAWiJ,UAAX,GAAwB,YAAY;AAClClJ,MAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;AACA,WAAOP,SAASqI,gBAAhB;AACD,GAHD;;AAKA,SAAOrI,QAAP;AACD,CAxfgB,CAwfdC,CAxfc,CAAjB","sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.1): carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Carousel = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'carousel'\n const VERSION = '4.1.1'\n const DATA_KEY = 'bs.carousel'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const ARROW_LEFT_KEYCODE = 37 // KeyboardEvent.which value for left arrow key\n const ARROW_RIGHT_KEYCODE = 39 // KeyboardEvent.which value for right arrow key\n const TOUCHEVENT_COMPAT_WAIT = 500 // Time for mouse compat events to fire after touch\n\n const Default = {\n interval : 5000,\n keyboard : true,\n slide : false,\n pause : 'hover',\n wrap : true\n }\n\n const DefaultType = {\n interval : '(number|boolean)',\n keyboard : 'boolean',\n slide : '(boolean|string)',\n pause : '(string|boolean)',\n wrap : 'boolean'\n }\n\n const Direction = {\n NEXT : 'next',\n PREV : 'prev',\n LEFT : 'left',\n RIGHT : 'right'\n }\n\n const Event = {\n SLIDE : `slide${EVENT_KEY}`,\n SLID : `slid${EVENT_KEY}`,\n KEYDOWN : `keydown${EVENT_KEY}`,\n MOUSEENTER : `mouseenter${EVENT_KEY}`,\n MOUSELEAVE : `mouseleave${EVENT_KEY}`,\n TOUCHEND : `touchend${EVENT_KEY}`,\n LOAD_DATA_API : `load${EVENT_KEY}${DATA_API_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n CAROUSEL : 'carousel',\n ACTIVE : 'active',\n SLIDE : 'slide',\n RIGHT : 'carousel-item-right',\n LEFT : 'carousel-item-left',\n NEXT : 'carousel-item-next',\n PREV : 'carousel-item-prev',\n ITEM : 'carousel-item'\n }\n\n const Selector = {\n ACTIVE : '.active',\n ACTIVE_ITEM : '.active.carousel-item',\n ITEM : '.carousel-item',\n NEXT_PREV : '.carousel-item-next, .carousel-item-prev',\n INDICATORS : '.carousel-indicators',\n DATA_SLIDE : '[data-slide], [data-slide-to]',\n DATA_RIDE : '[data-ride=\"carousel\"]'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Carousel {\n constructor(element, config) {\n this._items = null\n this._interval = null\n this._activeElement = null\n\n this._isPaused = false\n this._isSliding = false\n\n this.touchTimeout = null\n\n this._config = this._getConfig(config)\n this._element = $(element)[0]\n this._indicatorsElement = $(this._element).find(Selector.INDICATORS)[0]\n\n this._addEventListeners()\n }\n\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n\n next() {\n if (!this._isSliding) {\n this._slide(Direction.NEXT)\n }\n }\n\n nextWhenVisible() {\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden &&\n ($(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden')) {\n this.next()\n }\n }\n\n prev() {\n if (!this._isSliding) {\n this._slide(Direction.PREV)\n }\n }\n\n pause(event) {\n if (!event) {\n this._isPaused = true\n }\n\n if ($(this._element).find(Selector.NEXT_PREV)[0]) {\n Util.triggerTransitionEnd(this._element)\n this.cycle(true)\n }\n\n clearInterval(this._interval)\n this._interval = null\n }\n\n cycle(event) {\n if (!event) {\n this._isPaused = false\n }\n\n if (this._interval) {\n clearInterval(this._interval)\n this._interval = null\n }\n\n if (this._config.interval && !this._isPaused) {\n this._interval = setInterval(\n (document.visibilityState ? this.nextWhenVisible : this.next).bind(this),\n this._config.interval\n )\n }\n }\n\n to(index) {\n this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]\n\n const activeIndex = this._getItemIndex(this._activeElement)\n\n if (index > this._items.length - 1 || index < 0) {\n return\n }\n\n if (this._isSliding) {\n $(this._element).one(Event.SLID, () => this.to(index))\n return\n }\n\n if (activeIndex === index) {\n this.pause()\n this.cycle()\n return\n }\n\n const direction = index > activeIndex\n ? Direction.NEXT\n : Direction.PREV\n\n this._slide(direction, this._items[index])\n }\n\n dispose() {\n $(this._element).off(EVENT_KEY)\n $.removeData(this._element, DATA_KEY)\n\n this._items = null\n this._config = null\n this._element = null\n this._interval = null\n this._isPaused = null\n this._isSliding = null\n this._activeElement = null\n this._indicatorsElement = null\n }\n\n // Private\n\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _addEventListeners() {\n if (this._config.keyboard) {\n $(this._element)\n .on(Event.KEYDOWN, (event) => this._keydown(event))\n }\n\n if (this._config.pause === 'hover') {\n $(this._element)\n .on(Event.MOUSEENTER, (event) => this.pause(event))\n .on(Event.MOUSELEAVE, (event) => this.cycle(event))\n if ('ontouchstart' in document.documentElement) {\n // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n $(this._element).on(Event.TOUCHEND, () => {\n this.pause()\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout)\n }\n this.touchTimeout = setTimeout((event) => this.cycle(event), TOUCHEVENT_COMPAT_WAIT + this._config.interval)\n })\n }\n }\n }\n\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return\n }\n\n switch (event.which) {\n case ARROW_LEFT_KEYCODE:\n event.preventDefault()\n this.prev()\n break\n case ARROW_RIGHT_KEYCODE:\n event.preventDefault()\n this.next()\n break\n default:\n }\n }\n\n _getItemIndex(element) {\n this._items = $.makeArray($(element).parent().find(Selector.ITEM))\n return this._items.indexOf(element)\n }\n\n _getItemByDirection(direction, activeElement) {\n const isNextDirection = direction === Direction.NEXT\n const isPrevDirection = direction === Direction.PREV\n const activeIndex = this._getItemIndex(activeElement)\n const lastItemIndex = this._items.length - 1\n const isGoingToWrap = isPrevDirection && activeIndex === 0 ||\n isNextDirection && activeIndex === lastItemIndex\n\n if (isGoingToWrap && !this._config.wrap) {\n return activeElement\n }\n\n const delta = direction === Direction.PREV ? -1 : 1\n const itemIndex = (activeIndex + delta) % this._items.length\n\n return itemIndex === -1\n ? this._items[this._items.length - 1] : this._items[itemIndex]\n }\n\n _triggerSlideEvent(relatedTarget, eventDirectionName) {\n const targetIndex = this._getItemIndex(relatedTarget)\n const fromIndex = this._getItemIndex($(this._element).find(Selector.ACTIVE_ITEM)[0])\n const slideEvent = $.Event(Event.SLIDE, {\n relatedTarget,\n direction: eventDirectionName,\n from: fromIndex,\n to: targetIndex\n })\n\n $(this._element).trigger(slideEvent)\n\n return slideEvent\n }\n\n _setActiveIndicatorElement(element) {\n if (this._indicatorsElement) {\n $(this._indicatorsElement)\n .find(Selector.ACTIVE)\n .removeClass(ClassName.ACTIVE)\n\n const nextIndicator = this._indicatorsElement.children[\n this._getItemIndex(element)\n ]\n\n if (nextIndicator) {\n $(nextIndicator).addClass(ClassName.ACTIVE)\n }\n }\n }\n\n _slide(direction, element) {\n const activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]\n const activeElementIndex = this._getItemIndex(activeElement)\n const nextElement = element || activeElement &&\n this._getItemByDirection(direction, activeElement)\n const nextElementIndex = this._getItemIndex(nextElement)\n const isCycling = Boolean(this._interval)\n\n let directionalClassName\n let orderClassName\n let eventDirectionName\n\n if (direction === Direction.NEXT) {\n directionalClassName = ClassName.LEFT\n orderClassName = ClassName.NEXT\n eventDirectionName = Direction.LEFT\n } else {\n directionalClassName = ClassName.RIGHT\n orderClassName = ClassName.PREV\n eventDirectionName = Direction.RIGHT\n }\n\n if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) {\n this._isSliding = false\n return\n }\n\n const slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName)\n if (slideEvent.isDefaultPrevented()) {\n return\n }\n\n if (!activeElement || !nextElement) {\n // Some weirdness is happening, so we bail\n return\n }\n\n this._isSliding = true\n\n if (isCycling) {\n this.pause()\n }\n\n this._setActiveIndicatorElement(nextElement)\n\n const slidEvent = $.Event(Event.SLID, {\n relatedTarget: nextElement,\n direction: eventDirectionName,\n from: activeElementIndex,\n to: nextElementIndex\n })\n\n if ($(this._element).hasClass(ClassName.SLIDE)) {\n $(nextElement).addClass(orderClassName)\n\n Util.reflow(nextElement)\n\n $(activeElement).addClass(directionalClassName)\n $(nextElement).addClass(directionalClassName)\n\n const transitionDuration = Util.getTransitionDurationFromElement(activeElement)\n\n $(activeElement)\n .one(Util.TRANSITION_END, () => {\n $(nextElement)\n .removeClass(`${directionalClassName} ${orderClassName}`)\n .addClass(ClassName.ACTIVE)\n\n $(activeElement).removeClass(`${ClassName.ACTIVE} ${orderClassName} ${directionalClassName}`)\n\n this._isSliding = false\n\n setTimeout(() => $(this._element).trigger(slidEvent), 0)\n })\n .emulateTransitionEnd(transitionDuration)\n } else {\n $(activeElement).removeClass(ClassName.ACTIVE)\n $(nextElement).addClass(ClassName.ACTIVE)\n\n this._isSliding = false\n $(this._element).trigger(slidEvent)\n }\n\n if (isCycling) {\n this.cycle()\n }\n }\n\n // Static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n let _config = {\n ...Default,\n ...$(this).data()\n }\n\n if (typeof config === 'object') {\n _config = {\n ..._config,\n ...config\n }\n }\n\n const action = typeof config === 'string' ? config : _config.slide\n\n if (!data) {\n data = new Carousel(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'number') {\n data.to(config)\n } else if (typeof action === 'string') {\n if (typeof data[action] === 'undefined') {\n throw new TypeError(`No method named \"${action}\"`)\n }\n data[action]()\n } else if (_config.interval) {\n data.pause()\n data.cycle()\n }\n })\n }\n\n static _dataApiClickHandler(event) {\n const selector = Util.getSelectorFromElement(this)\n\n if (!selector) {\n return\n }\n\n const target = $(selector)[0]\n\n if (!target || !$(target).hasClass(ClassName.CAROUSEL)) {\n return\n }\n\n const config = {\n ...$(target).data(),\n ...$(this).data()\n }\n const slideIndex = this.getAttribute('data-slide-to')\n\n if (slideIndex) {\n config.interval = false\n }\n\n Carousel._jQueryInterface.call($(target), config)\n\n if (slideIndex) {\n $(target).data(DATA_KEY).to(slideIndex)\n }\n\n event.preventDefault()\n }\n }\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler)\n\n $(window).on(Event.LOAD_DATA_API, () => {\n $(Selector.DATA_RIDE).each(function () {\n const $carousel = $(this)\n Carousel._jQueryInterface.call($carousel, $carousel.data())\n })\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Carousel._jQueryInterface\n $.fn[NAME].Constructor = Carousel\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Carousel._jQueryInterface\n }\n\n return Carousel\n})($)\n\nexport default Carousel\n"],"file":"carousel.js"}
1
+ {"version":3,"file":"carousel.js","sources":["../src/carousel.js"],"sourcesContent":["import $ from 'jquery'\nimport Util from './util'\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.1.3): carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst Carousel = (($) => {\n /**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\n const NAME = 'carousel'\n const VERSION = '4.1.3'\n const DATA_KEY = 'bs.carousel'\n const EVENT_KEY = `.${DATA_KEY}`\n const DATA_API_KEY = '.data-api'\n const JQUERY_NO_CONFLICT = $.fn[NAME]\n const ARROW_LEFT_KEYCODE = 37 // KeyboardEvent.which value for left arrow key\n const ARROW_RIGHT_KEYCODE = 39 // KeyboardEvent.which value for right arrow key\n const TOUCHEVENT_COMPAT_WAIT = 500 // Time for mouse compat events to fire after touch\n\n const Default = {\n interval : 5000,\n keyboard : true,\n slide : false,\n pause : 'hover',\n wrap : true\n }\n\n const DefaultType = {\n interval : '(number|boolean)',\n keyboard : 'boolean',\n slide : '(boolean|string)',\n pause : '(string|boolean)',\n wrap : 'boolean'\n }\n\n const Direction = {\n NEXT : 'next',\n PREV : 'prev',\n LEFT : 'left',\n RIGHT : 'right'\n }\n\n const Event = {\n SLIDE : `slide${EVENT_KEY}`,\n SLID : `slid${EVENT_KEY}`,\n KEYDOWN : `keydown${EVENT_KEY}`,\n MOUSEENTER : `mouseenter${EVENT_KEY}`,\n MOUSELEAVE : `mouseleave${EVENT_KEY}`,\n TOUCHEND : `touchend${EVENT_KEY}`,\n LOAD_DATA_API : `load${EVENT_KEY}${DATA_API_KEY}`,\n CLICK_DATA_API : `click${EVENT_KEY}${DATA_API_KEY}`\n }\n\n const ClassName = {\n CAROUSEL : 'carousel',\n ACTIVE : 'active',\n SLIDE : 'slide',\n RIGHT : 'carousel-item-right',\n LEFT : 'carousel-item-left',\n NEXT : 'carousel-item-next',\n PREV : 'carousel-item-prev',\n ITEM : 'carousel-item'\n }\n\n const Selector = {\n ACTIVE : '.active',\n ACTIVE_ITEM : '.active.carousel-item',\n ITEM : '.carousel-item',\n NEXT_PREV : '.carousel-item-next, .carousel-item-prev',\n INDICATORS : '.carousel-indicators',\n DATA_SLIDE : '[data-slide], [data-slide-to]',\n DATA_RIDE : '[data-ride=\"carousel\"]'\n }\n\n /**\n * ------------------------------------------------------------------------\n * Class Definition\n * ------------------------------------------------------------------------\n */\n\n class Carousel {\n constructor(element, config) {\n this._items = null\n this._interval = null\n this._activeElement = null\n\n this._isPaused = false\n this._isSliding = false\n\n this.touchTimeout = null\n\n this._config = this._getConfig(config)\n this._element = $(element)[0]\n this._indicatorsElement = this._element.querySelector(Selector.INDICATORS)\n\n this._addEventListeners()\n }\n\n // Getters\n\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n\n next() {\n if (!this._isSliding) {\n this._slide(Direction.NEXT)\n }\n }\n\n nextWhenVisible() {\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden &&\n ($(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden')) {\n this.next()\n }\n }\n\n prev() {\n if (!this._isSliding) {\n this._slide(Direction.PREV)\n }\n }\n\n pause(event) {\n if (!event) {\n this._isPaused = true\n }\n\n if (this._element.querySelector(Selector.NEXT_PREV)) {\n Util.triggerTransitionEnd(this._element)\n this.cycle(true)\n }\n\n clearInterval(this._interval)\n this._interval = null\n }\n\n cycle(event) {\n if (!event) {\n this._isPaused = false\n }\n\n if (this._interval) {\n clearInterval(this._interval)\n this._interval = null\n }\n\n if (this._config.interval && !this._isPaused) {\n this._interval = setInterval(\n (document.visibilityState ? this.nextWhenVisible : this.next).bind(this),\n this._config.interval\n )\n }\n }\n\n to(index) {\n this._activeElement = this._element.querySelector(Selector.ACTIVE_ITEM)\n\n const activeIndex = this._getItemIndex(this._activeElement)\n\n if (index > this._items.length - 1 || index < 0) {\n return\n }\n\n if (this._isSliding) {\n $(this._element).one(Event.SLID, () => this.to(index))\n return\n }\n\n if (activeIndex === index) {\n this.pause()\n this.cycle()\n return\n }\n\n const direction = index > activeIndex\n ? Direction.NEXT\n : Direction.PREV\n\n this._slide(direction, this._items[index])\n }\n\n dispose() {\n $(this._element).off(EVENT_KEY)\n $.removeData(this._element, DATA_KEY)\n\n this._items = null\n this._config = null\n this._element = null\n this._interval = null\n this._isPaused = null\n this._isSliding = null\n this._activeElement = null\n this._indicatorsElement = null\n }\n\n // Private\n\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _addEventListeners() {\n if (this._config.keyboard) {\n $(this._element)\n .on(Event.KEYDOWN, (event) => this._keydown(event))\n }\n\n if (this._config.pause === 'hover') {\n $(this._element)\n .on(Event.MOUSEENTER, (event) => this.pause(event))\n .on(Event.MOUSELEAVE, (event) => this.cycle(event))\n if ('ontouchstart' in document.documentElement) {\n // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n $(this._element).on(Event.TOUCHEND, () => {\n this.pause()\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout)\n }\n this.touchTimeout = setTimeout((event) => this.cycle(event), TOUCHEVENT_COMPAT_WAIT + this._config.interval)\n })\n }\n }\n }\n\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return\n }\n\n switch (event.which) {\n case ARROW_LEFT_KEYCODE:\n event.preventDefault()\n this.prev()\n break\n case ARROW_RIGHT_KEYCODE:\n event.preventDefault()\n this.next()\n break\n default:\n }\n }\n\n _getItemIndex(element) {\n this._items = element && element.parentNode\n ? [].slice.call(element.parentNode.querySelectorAll(Selector.ITEM))\n : []\n return this._items.indexOf(element)\n }\n\n _getItemByDirection(direction, activeElement) {\n const isNextDirection = direction === Direction.NEXT\n const isPrevDirection = direction === Direction.PREV\n const activeIndex = this._getItemIndex(activeElement)\n const lastItemIndex = this._items.length - 1\n const isGoingToWrap = isPrevDirection && activeIndex === 0 ||\n isNextDirection && activeIndex === lastItemIndex\n\n if (isGoingToWrap && !this._config.wrap) {\n return activeElement\n }\n\n const delta = direction === Direction.PREV ? -1 : 1\n const itemIndex = (activeIndex + delta) % this._items.length\n\n return itemIndex === -1\n ? this._items[this._items.length - 1] : this._items[itemIndex]\n }\n\n _triggerSlideEvent(relatedTarget, eventDirectionName) {\n const targetIndex = this._getItemIndex(relatedTarget)\n const fromIndex = this._getItemIndex(this._element.querySelector(Selector.ACTIVE_ITEM))\n const slideEvent = $.Event(Event.SLIDE, {\n relatedTarget,\n direction: eventDirectionName,\n from: fromIndex,\n to: targetIndex\n })\n\n $(this._element).trigger(slideEvent)\n\n return slideEvent\n }\n\n _setActiveIndicatorElement(element) {\n if (this._indicatorsElement) {\n const indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector.ACTIVE))\n $(indicators)\n .removeClass(ClassName.ACTIVE)\n\n const nextIndicator = this._indicatorsElement.children[\n this._getItemIndex(element)\n ]\n\n if (nextIndicator) {\n $(nextIndicator).addClass(ClassName.ACTIVE)\n }\n }\n }\n\n _slide(direction, element) {\n const activeElement = this._element.querySelector(Selector.ACTIVE_ITEM)\n const activeElementIndex = this._getItemIndex(activeElement)\n const nextElement = element || activeElement &&\n this._getItemByDirection(direction, activeElement)\n const nextElementIndex = this._getItemIndex(nextElement)\n const isCycling = Boolean(this._interval)\n\n let directionalClassName\n let orderClassName\n let eventDirectionName\n\n if (direction === Direction.NEXT) {\n directionalClassName = ClassName.LEFT\n orderClassName = ClassName.NEXT\n eventDirectionName = Direction.LEFT\n } else {\n directionalClassName = ClassName.RIGHT\n orderClassName = ClassName.PREV\n eventDirectionName = Direction.RIGHT\n }\n\n if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) {\n this._isSliding = false\n return\n }\n\n const slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName)\n if (slideEvent.isDefaultPrevented()) {\n return\n }\n\n if (!activeElement || !nextElement) {\n // Some weirdness is happening, so we bail\n return\n }\n\n this._isSliding = true\n\n if (isCycling) {\n this.pause()\n }\n\n this._setActiveIndicatorElement(nextElement)\n\n const slidEvent = $.Event(Event.SLID, {\n relatedTarget: nextElement,\n direction: eventDirectionName,\n from: activeElementIndex,\n to: nextElementIndex\n })\n\n if ($(this._element).hasClass(ClassName.SLIDE)) {\n $(nextElement).addClass(orderClassName)\n\n Util.reflow(nextElement)\n\n $(activeElement).addClass(directionalClassName)\n $(nextElement).addClass(directionalClassName)\n\n const transitionDuration = Util.getTransitionDurationFromElement(activeElement)\n\n $(activeElement)\n .one(Util.TRANSITION_END, () => {\n $(nextElement)\n .removeClass(`${directionalClassName} ${orderClassName}`)\n .addClass(ClassName.ACTIVE)\n\n $(activeElement).removeClass(`${ClassName.ACTIVE} ${orderClassName} ${directionalClassName}`)\n\n this._isSliding = false\n\n setTimeout(() => $(this._element).trigger(slidEvent), 0)\n })\n .emulateTransitionEnd(transitionDuration)\n } else {\n $(activeElement).removeClass(ClassName.ACTIVE)\n $(nextElement).addClass(ClassName.ACTIVE)\n\n this._isSliding = false\n $(this._element).trigger(slidEvent)\n }\n\n if (isCycling) {\n this.cycle()\n }\n }\n\n // Static\n\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n let _config = {\n ...Default,\n ...$(this).data()\n }\n\n if (typeof config === 'object') {\n _config = {\n ..._config,\n ...config\n }\n }\n\n const action = typeof config === 'string' ? config : _config.slide\n\n if (!data) {\n data = new Carousel(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'number') {\n data.to(config)\n } else if (typeof action === 'string') {\n if (typeof data[action] === 'undefined') {\n throw new TypeError(`No method named \"${action}\"`)\n }\n data[action]()\n } else if (_config.interval) {\n data.pause()\n data.cycle()\n }\n })\n }\n\n static _dataApiClickHandler(event) {\n const selector = Util.getSelectorFromElement(this)\n\n if (!selector) {\n return\n }\n\n const target = $(selector)[0]\n\n if (!target || !$(target).hasClass(ClassName.CAROUSEL)) {\n return\n }\n\n const config = {\n ...$(target).data(),\n ...$(this).data()\n }\n const slideIndex = this.getAttribute('data-slide-to')\n\n if (slideIndex) {\n config.interval = false\n }\n\n Carousel._jQueryInterface.call($(target), config)\n\n if (slideIndex) {\n $(target).data(DATA_KEY).to(slideIndex)\n }\n\n event.preventDefault()\n }\n }\n\n /**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n\n $(document)\n .on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler)\n\n $(window).on(Event.LOAD_DATA_API, () => {\n const carousels = [].slice.call(document.querySelectorAll(Selector.DATA_RIDE))\n for (let i = 0, len = carousels.length; i < len; i++) {\n const $carousel = $(carousels[i])\n Carousel._jQueryInterface.call($carousel, $carousel.data())\n }\n })\n\n /**\n * ------------------------------------------------------------------------\n * jQuery\n * ------------------------------------------------------------------------\n */\n\n $.fn[NAME] = Carousel._jQueryInterface\n $.fn[NAME].Constructor = Carousel\n $.fn[NAME].noConflict = function () {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Carousel._jQueryInterface\n }\n\n return Carousel\n})($)\n\nexport default Carousel\n"],"names":["Carousel","$","NAME","VERSION","DATA_KEY","EVENT_KEY","DATA_API_KEY","JQUERY_NO_CONFLICT","fn","ARROW_LEFT_KEYCODE","ARROW_RIGHT_KEYCODE","TOUCHEVENT_COMPAT_WAIT","Default","interval","keyboard","slide","pause","wrap","DefaultType","Direction","NEXT","PREV","LEFT","RIGHT","Event","SLIDE","SLID","KEYDOWN","MOUSEENTER","MOUSELEAVE","TOUCHEND","LOAD_DATA_API","CLICK_DATA_API","ClassName","CAROUSEL","ACTIVE","ITEM","Selector","ACTIVE_ITEM","NEXT_PREV","INDICATORS","DATA_SLIDE","DATA_RIDE","element","config","_items","_interval","_activeElement","_isPaused","_isSliding","touchTimeout","_config","_getConfig","_element","_indicatorsElement","querySelector","_addEventListeners","next","_slide","nextWhenVisible","document","hidden","is","css","prev","event","Util","triggerTransitionEnd","cycle","clearInterval","setInterval","visibilityState","bind","to","index","activeIndex","_getItemIndex","length","one","direction","dispose","off","removeData","typeCheckConfig","on","_keydown","documentElement","clearTimeout","setTimeout","test","target","tagName","which","preventDefault","parentNode","slice","call","querySelectorAll","indexOf","_getItemByDirection","activeElement","isNextDirection","isPrevDirection","lastItemIndex","isGoingToWrap","delta","itemIndex","_triggerSlideEvent","relatedTarget","eventDirectionName","targetIndex","fromIndex","slideEvent","from","trigger","_setActiveIndicatorElement","indicators","removeClass","nextIndicator","children","addClass","activeElementIndex","nextElement","nextElementIndex","isCycling","Boolean","directionalClassName","orderClassName","hasClass","isDefaultPrevented","slidEvent","reflow","transitionDuration","getTransitionDurationFromElement","TRANSITION_END","emulateTransitionEnd","_jQueryInterface","each","data","action","TypeError","_dataApiClickHandler","selector","getSelectorFromElement","slideIndex","getAttribute","window","carousels","i","len","$carousel","Constructor","noConflict"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGA;;;;;;;EAOA,IAAMA,WAAY,UAACC,IAAD,EAAO;EACvB;;;;;EAMA,MAAMC,OAAyB,UAA/B;EACA,MAAMC,UAAyB,OAA/B;EACA,MAAMC,WAAyB,aAA/B;EACA,MAAMC,kBAA6BD,QAAnC;EACA,MAAME,eAAyB,WAA/B;EACA,MAAMC,qBAAyBN,KAAEO,EAAF,CAAKN,IAAL,CAA/B;EACA,MAAMO,qBAAyB,EAA/B,CAbuB;;EAcvB,MAAMC,sBAAyB,EAA/B,CAduB;;EAevB,MAAMC,yBAAyB,GAA/B,CAfuB;;EAiBvB,MAAMC,UAAU;EACdC,cAAW,IADG;EAEdC,cAAW,IAFG;EAGdC,WAAW,KAHG;EAIdC,WAAW,OAJG;EAKdC,UAAW;EALG,GA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D,EAAsD;EACpD,UAAME,YAAYrJ,KAAEkJ,UAAUC,CAAV,CAAF,CAAlB;;EACApJ,eAASwI,gBAAT,CAA0BxC,IAA1B,CAA+BsD,SAA/B,EAA0CA,UAAUZ,IAAV,EAA1C;EACD;EACF,GAND;EAQA;;;;;;EAMAzI,OAAEO,EAAF,CAAKN,IAAL,IAAaF,SAASwI,gBAAtB;EACAvI,OAAEO,EAAF,CAAKN,IAAL,EAAWqJ,WAAX,GAAyBvJ,QAAzB;;EACAC,OAAEO,EAAF,CAAKN,IAAL,EAAWsJ,UAAX,GAAwB,YAAY;EAClCvJ,SAAEO,EAAF,CAAKN,IAAL,IAAaK,kBAAb;EACA,WAAOP,SAASwI,gBAAhB;EACD,GAHD;;EAKA,SAAOxI,QAAP;EACD,CA3fgB,CA2fdC,CA3fc,CAAjB;;;;;;;;"}
@@ -1,367 +1,431 @@
1
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
3
+ typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
4
+ (global.Collapse = factory(global.jQuery,global.Util));
5
+ }(this, (function ($,Util) { 'use strict';
6
+
7
+ $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
8
+ Util = Util && Util.hasOwnProperty('default') ? Util['default'] : Util;
9
+
10
+ function _defineProperties(target, props) {
11
+ for (var i = 0; i < props.length; i++) {
12
+ var descriptor = props[i];
13
+ descriptor.enumerable = descriptor.enumerable || false;
14
+ descriptor.configurable = true;
15
+ if ("value" in descriptor) descriptor.writable = true;
16
+ Object.defineProperty(target, descriptor.key, descriptor);
17
+ }
18
+ }
19
+
20
+ function _createClass(Constructor, protoProps, staticProps) {
21
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
22
+ if (staticProps) _defineProperties(Constructor, staticProps);
23
+ return Constructor;
24
+ }
25
+
26
+ function _defineProperty(obj, key, value) {
27
+ if (key in obj) {
28
+ Object.defineProperty(obj, key, {
29
+ value: value,
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true
33
+ });
34
+ } else {
35
+ obj[key] = value;
36
+ }
2
37
 
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38
+ return obj;
39
+ }
4
40
 
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
41
+ function _objectSpread(target) {
42
+ for (var i = 1; i < arguments.length; i++) {
43
+ var source = arguments[i] != null ? arguments[i] : {};
44
+ var ownKeys = Object.keys(source);
6
45
 
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
46
+ if (typeof Object.getOwnPropertySymbols === 'function') {
47
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
48
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
49
+ }));
50
+ }
51
+
52
+ ownKeys.forEach(function (key) {
53
+ _defineProperty(target, key, source[key]);
54
+ });
55
+ }
56
+
57
+ return target;
58
+ }
8
59
 
9
- /**
10
- * --------------------------------------------------------------------------
11
- * Bootstrap (v4.1.1): collapse.js
12
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
13
- * --------------------------------------------------------------------------
14
- */
15
- var Collapse = function ($) {
16
60
  /**
17
- * ------------------------------------------------------------------------
18
- * Constants
19
- * ------------------------------------------------------------------------
61
+ * --------------------------------------------------------------------------
62
+ * Bootstrap (v4.1.3): collapse.js
63
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
64
+ * --------------------------------------------------------------------------
20
65
  */
21
- var NAME = 'collapse';
22
- var VERSION = '4.1.1';
23
- var DATA_KEY = 'bs.collapse';
24
- var EVENT_KEY = "." + DATA_KEY;
25
- var DATA_API_KEY = '.data-api';
26
- var JQUERY_NO_CONFLICT = $.fn[NAME];
27
- var Default = {
28
- toggle: true,
29
- parent: ''
30
- };
31
- var DefaultType = {
32
- toggle: 'boolean',
33
- parent: '(string|element)'
34
- };
35
- var Event = {
36
- SHOW: "show" + EVENT_KEY,
37
- SHOWN: "shown" + EVENT_KEY,
38
- HIDE: "hide" + EVENT_KEY,
39
- HIDDEN: "hidden" + EVENT_KEY,
40
- CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
41
- };
42
- var ClassName = {
43
- SHOW: 'show',
44
- COLLAPSE: 'collapse',
45
- COLLAPSING: 'collapsing',
46
- COLLAPSED: 'collapsed'
47
- };
48
- var Dimension = {
49
- WIDTH: 'width',
50
- HEIGHT: 'height'
51
- };
52
- var Selector = {
53
- ACTIVES: '.show, .collapsing',
54
- DATA_TOGGLE: '[data-toggle="collapse"]'
66
+
67
+ var Collapse = function ($$$1) {
55
68
  /**
56
69
  * ------------------------------------------------------------------------
57
- * Class Definition
70
+ * Constants
58
71
  * ------------------------------------------------------------------------
59
72
  */
73
+ var NAME = 'collapse';
74
+ var VERSION = '4.1.3';
75
+ var DATA_KEY = 'bs.collapse';
76
+ var EVENT_KEY = "." + DATA_KEY;
77
+ var DATA_API_KEY = '.data-api';
78
+ var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
79
+ var Default = {
80
+ toggle: true,
81
+ parent: ''
82
+ };
83
+ var DefaultType = {
84
+ toggle: 'boolean',
85
+ parent: '(string|element)'
86
+ };
87
+ var Event = {
88
+ SHOW: "show" + EVENT_KEY,
89
+ SHOWN: "shown" + EVENT_KEY,
90
+ HIDE: "hide" + EVENT_KEY,
91
+ HIDDEN: "hidden" + EVENT_KEY,
92
+ CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
93
+ };
94
+ var ClassName = {
95
+ SHOW: 'show',
96
+ COLLAPSE: 'collapse',
97
+ COLLAPSING: 'collapsing',
98
+ COLLAPSED: 'collapsed'
99
+ };
100
+ var Dimension = {
101
+ WIDTH: 'width',
102
+ HEIGHT: 'height'
103
+ };
104
+ var Selector = {
105
+ ACTIVES: '.show, .collapsing',
106
+ DATA_TOGGLE: '[data-toggle="collapse"]'
107
+ /**
108
+ * ------------------------------------------------------------------------
109
+ * Class Definition
110
+ * ------------------------------------------------------------------------
111
+ */
60
112
 
61
- };
62
-
63
- var Collapse =
64
- /*#__PURE__*/
65
- function () {
66
- function Collapse(element, config) {
67
- this._isTransitioning = false;
68
- this._element = element;
69
- this._config = this._getConfig(config);
70
- this._triggerArray = $.makeArray($("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
71
- var tabToggles = $(Selector.DATA_TOGGLE);
113
+ };
72
114
 
73
- for (var i = 0; i < tabToggles.length; i++) {
74
- var elem = tabToggles[i];
75
- var selector = Util.getSelectorFromElement(elem);
115
+ var Collapse =
116
+ /*#__PURE__*/
117
+ function () {
118
+ function Collapse(element, config) {
119
+ this._isTransitioning = false;
120
+ this._element = element;
121
+ this._config = this._getConfig(config);
122
+ this._triggerArray = $$$1.makeArray(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
123
+ var toggleList = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
124
+
125
+ for (var i = 0, len = toggleList.length; i < len; i++) {
126
+ var elem = toggleList[i];
127
+ var selector = Util.getSelectorFromElement(elem);
128
+ var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
129
+ return foundElem === element;
130
+ });
131
+
132
+ if (selector !== null && filterElement.length > 0) {
133
+ this._selector = selector;
134
+
135
+ this._triggerArray.push(elem);
136
+ }
137
+ }
76
138
 
77
- if (selector !== null && $(selector).filter(element).length > 0) {
78
- this._selector = selector;
139
+ this._parent = this._config.parent ? this._getParent() : null;
79
140
 
80
- this._triggerArray.push(elem);
141
+ if (!this._config.parent) {
142
+ this._addAriaAndCollapsedClass(this._element, this._triggerArray);
81
143
  }
82
- }
83
144
 
84
- this._parent = this._config.parent ? this._getParent() : null;
145
+ if (this._config.toggle) {
146
+ this.toggle();
147
+ }
148
+ } // Getters
85
149
 
86
- if (!this._config.parent) {
87
- this._addAriaAndCollapsedClass(this._element, this._triggerArray);
88
- }
89
150
 
90
- if (this._config.toggle) {
91
- this.toggle();
92
- }
93
- } // Getters
151
+ var _proto = Collapse.prototype;
94
152
 
153
+ // Public
154
+ _proto.toggle = function toggle() {
155
+ if ($$$1(this._element).hasClass(ClassName.SHOW)) {
156
+ this.hide();
157
+ } else {
158
+ this.show();
159
+ }
160
+ };
95
161
 
96
- var _proto = Collapse.prototype;
162
+ _proto.show = function show() {
163
+ var _this = this;
97
164
 
98
- // Public
99
- _proto.toggle = function toggle() {
100
- if ($(this._element).hasClass(ClassName.SHOW)) {
101
- this.hide();
102
- } else {
103
- this.show();
104
- }
105
- };
165
+ if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
166
+ return;
167
+ }
106
168
 
107
- _proto.show = function show() {
108
- var _this = this;
169
+ var actives;
170
+ var activesData;
109
171
 
110
- if (this._isTransitioning || $(this._element).hasClass(ClassName.SHOW)) {
111
- return;
112
- }
172
+ if (this._parent) {
173
+ actives = [].slice.call(this._parent.querySelectorAll(Selector.ACTIVES)).filter(function (elem) {
174
+ return elem.getAttribute('data-parent') === _this._config.parent;
175
+ });
113
176
 
114
- var actives;
115
- var activesData;
177
+ if (actives.length === 0) {
178
+ actives = null;
179
+ }
180
+ }
116
181
 
117
- if (this._parent) {
118
- actives = $.makeArray($(this._parent).find(Selector.ACTIVES).filter("[data-parent=\"" + this._config.parent + "\"]"));
182
+ if (actives) {
183
+ activesData = $$$1(actives).not(this._selector).data(DATA_KEY);
119
184
 
120
- if (actives.length === 0) {
121
- actives = null;
185
+ if (activesData && activesData._isTransitioning) {
186
+ return;
187
+ }
122
188
  }
123
- }
124
189
 
125
- if (actives) {
126
- activesData = $(actives).not(this._selector).data(DATA_KEY);
190
+ var startEvent = $$$1.Event(Event.SHOW);
191
+ $$$1(this._element).trigger(startEvent);
127
192
 
128
- if (activesData && activesData._isTransitioning) {
193
+ if (startEvent.isDefaultPrevented()) {
129
194
  return;
130
195
  }
131
- }
132
-
133
- var startEvent = $.Event(Event.SHOW);
134
- $(this._element).trigger(startEvent);
135
-
136
- if (startEvent.isDefaultPrevented()) {
137
- return;
138
- }
139
196
 
140
- if (actives) {
141
- Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide');
197
+ if (actives) {
198
+ Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide');
142
199
 
143
- if (!activesData) {
144
- $(actives).data(DATA_KEY, null);
200
+ if (!activesData) {
201
+ $$$1(actives).data(DATA_KEY, null);
202
+ }
145
203
  }
146
- }
147
204
 
148
- var dimension = this._getDimension();
205
+ var dimension = this._getDimension();
149
206
 
150
- $(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
151
- this._element.style[dimension] = 0;
207
+ $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
208
+ this._element.style[dimension] = 0;
152
209
 
153
- if (this._triggerArray.length > 0) {
154
- $(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
155
- }
210
+ if (this._triggerArray.length) {
211
+ $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
212
+ }
156
213
 
157
- this.setTransitioning(true);
214
+ this.setTransitioning(true);
158
215
 
159
- var complete = function complete() {
160
- $(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
161
- _this._element.style[dimension] = '';
216
+ var complete = function complete() {
217
+ $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
218
+ _this._element.style[dimension] = '';
162
219
 
163
- _this.setTransitioning(false);
220
+ _this.setTransitioning(false);
164
221
 
165
- $(_this._element).trigger(Event.SHOWN);
166
- };
222
+ $$$1(_this._element).trigger(Event.SHOWN);
223
+ };
167
224
 
168
- var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
169
- var scrollSize = "scroll" + capitalizedDimension;
170
- var transitionDuration = Util.getTransitionDurationFromElement(this._element);
171
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
172
- this._element.style[dimension] = this._element[scrollSize] + "px";
173
- };
225
+ var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
226
+ var scrollSize = "scroll" + capitalizedDimension;
227
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
228
+ $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
229
+ this._element.style[dimension] = this._element[scrollSize] + "px";
230
+ };
174
231
 
175
- _proto.hide = function hide() {
176
- var _this2 = this;
232
+ _proto.hide = function hide() {
233
+ var _this2 = this;
177
234
 
178
- if (this._isTransitioning || !$(this._element).hasClass(ClassName.SHOW)) {
179
- return;
180
- }
235
+ if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) {
236
+ return;
237
+ }
181
238
 
182
- var startEvent = $.Event(Event.HIDE);
183
- $(this._element).trigger(startEvent);
239
+ var startEvent = $$$1.Event(Event.HIDE);
240
+ $$$1(this._element).trigger(startEvent);
184
241
 
185
- if (startEvent.isDefaultPrevented()) {
186
- return;
187
- }
242
+ if (startEvent.isDefaultPrevented()) {
243
+ return;
244
+ }
188
245
 
189
- var dimension = this._getDimension();
246
+ var dimension = this._getDimension();
190
247
 
191
- this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
192
- Util.reflow(this._element);
193
- $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
248
+ this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
249
+ Util.reflow(this._element);
250
+ $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
251
+ var triggerArrayLength = this._triggerArray.length;
194
252
 
195
- if (this._triggerArray.length > 0) {
196
- for (var i = 0; i < this._triggerArray.length; i++) {
197
- var trigger = this._triggerArray[i];
198
- var selector = Util.getSelectorFromElement(trigger);
253
+ if (triggerArrayLength > 0) {
254
+ for (var i = 0; i < triggerArrayLength; i++) {
255
+ var trigger = this._triggerArray[i];
256
+ var selector = Util.getSelectorFromElement(trigger);
199
257
 
200
- if (selector !== null) {
201
- var $elem = $(selector);
258
+ if (selector !== null) {
259
+ var $elem = $$$1([].slice.call(document.querySelectorAll(selector)));
202
260
 
203
- if (!$elem.hasClass(ClassName.SHOW)) {
204
- $(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
261
+ if (!$elem.hasClass(ClassName.SHOW)) {
262
+ $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
263
+ }
205
264
  }
206
265
  }
207
266
  }
208
- }
209
267
 
210
- this.setTransitioning(true);
268
+ this.setTransitioning(true);
211
269
 
212
- var complete = function complete() {
213
- _this2.setTransitioning(false);
270
+ var complete = function complete() {
271
+ _this2.setTransitioning(false);
214
272
 
215
- $(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
216
- };
273
+ $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
274
+ };
217
275
 
218
- this._element.style[dimension] = '';
219
- var transitionDuration = Util.getTransitionDurationFromElement(this._element);
220
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
221
- };
276
+ this._element.style[dimension] = '';
277
+ var transitionDuration = Util.getTransitionDurationFromElement(this._element);
278
+ $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
279
+ };
222
280
 
223
- _proto.setTransitioning = function setTransitioning(isTransitioning) {
224
- this._isTransitioning = isTransitioning;
225
- };
281
+ _proto.setTransitioning = function setTransitioning(isTransitioning) {
282
+ this._isTransitioning = isTransitioning;
283
+ };
226
284
 
227
- _proto.dispose = function dispose() {
228
- $.removeData(this._element, DATA_KEY);
229
- this._config = null;
230
- this._parent = null;
231
- this._element = null;
232
- this._triggerArray = null;
233
- this._isTransitioning = null;
234
- }; // Private
285
+ _proto.dispose = function dispose() {
286
+ $$$1.removeData(this._element, DATA_KEY);
287
+ this._config = null;
288
+ this._parent = null;
289
+ this._element = null;
290
+ this._triggerArray = null;
291
+ this._isTransitioning = null;
292
+ }; // Private
235
293
 
236
294
 
237
- _proto._getConfig = function _getConfig(config) {
238
- config = _objectSpread({}, Default, config);
239
- config.toggle = Boolean(config.toggle); // Coerce string values
295
+ _proto._getConfig = function _getConfig(config) {
296
+ config = _objectSpread({}, Default, config);
297
+ config.toggle = Boolean(config.toggle); // Coerce string values
240
298
 
241
- Util.typeCheckConfig(NAME, config, DefaultType);
242
- return config;
243
- };
299
+ Util.typeCheckConfig(NAME, config, DefaultType);
300
+ return config;
301
+ };
244
302
 
245
- _proto._getDimension = function _getDimension() {
246
- var hasWidth = $(this._element).hasClass(Dimension.WIDTH);
247
- return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
248
- };
303
+ _proto._getDimension = function _getDimension() {
304
+ var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH);
305
+ return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
306
+ };
249
307
 
250
- _proto._getParent = function _getParent() {
251
- var _this3 = this;
308
+ _proto._getParent = function _getParent() {
309
+ var _this3 = this;
252
310
 
253
- var parent = null;
311
+ var parent = null;
254
312
 
255
- if (Util.isElement(this._config.parent)) {
256
- parent = this._config.parent; // It's a jQuery object
313
+ if (Util.isElement(this._config.parent)) {
314
+ parent = this._config.parent; // It's a jQuery object
257
315
 
258
- if (typeof this._config.parent.jquery !== 'undefined') {
259
- parent = this._config.parent[0];
316
+ if (typeof this._config.parent.jquery !== 'undefined') {
317
+ parent = this._config.parent[0];
318
+ }
319
+ } else {
320
+ parent = document.querySelector(this._config.parent);
260
321
  }
261
- } else {
262
- parent = $(this._config.parent)[0];
263
- }
264
322
 
265
- var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
266
- $(parent).find(selector).each(function (i, element) {
267
- _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
268
- });
269
- return parent;
270
- };
323
+ var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
324
+ var children = [].slice.call(parent.querySelectorAll(selector));
325
+ $$$1(children).each(function (i, element) {
326
+ _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
327
+ });
328
+ return parent;
329
+ };
271
330
 
272
- _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
273
- if (element) {
274
- var isOpen = $(element).hasClass(ClassName.SHOW);
331
+ _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
332
+ if (element) {
333
+ var isOpen = $$$1(element).hasClass(ClassName.SHOW);
275
334
 
276
- if (triggerArray.length > 0) {
277
- $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
335
+ if (triggerArray.length) {
336
+ $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
337
+ }
278
338
  }
279
- }
280
- }; // Static
339
+ }; // Static
281
340
 
282
341
 
283
- Collapse._getTargetFromElement = function _getTargetFromElement(element) {
284
- var selector = Util.getSelectorFromElement(element);
285
- return selector ? $(selector)[0] : null;
286
- };
342
+ Collapse._getTargetFromElement = function _getTargetFromElement(element) {
343
+ var selector = Util.getSelectorFromElement(element);
344
+ return selector ? document.querySelector(selector) : null;
345
+ };
287
346
 
288
- Collapse._jQueryInterface = function _jQueryInterface(config) {
289
- return this.each(function () {
290
- var $this = $(this);
291
- var data = $this.data(DATA_KEY);
347
+ Collapse._jQueryInterface = function _jQueryInterface(config) {
348
+ return this.each(function () {
349
+ var $this = $$$1(this);
350
+ var data = $this.data(DATA_KEY);
292
351
 
293
- var _config = _objectSpread({}, Default, $this.data(), typeof config === 'object' && config ? config : {});
352
+ var _config = _objectSpread({}, Default, $this.data(), typeof config === 'object' && config ? config : {});
294
353
 
295
- if (!data && _config.toggle && /show|hide/.test(config)) {
296
- _config.toggle = false;
297
- }
354
+ if (!data && _config.toggle && /show|hide/.test(config)) {
355
+ _config.toggle = false;
356
+ }
298
357
 
299
- if (!data) {
300
- data = new Collapse(this, _config);
301
- $this.data(DATA_KEY, data);
302
- }
358
+ if (!data) {
359
+ data = new Collapse(this, _config);
360
+ $this.data(DATA_KEY, data);
361
+ }
362
+
363
+ if (typeof config === 'string') {
364
+ if (typeof data[config] === 'undefined') {
365
+ throw new TypeError("No method named \"" + config + "\"");
366
+ }
303
367
 
304
- if (typeof config === 'string') {
305
- if (typeof data[config] === 'undefined') {
306
- throw new TypeError("No method named \"" + config + "\"");
368
+ data[config]();
307
369
  }
370
+ });
371
+ };
308
372
 
309
- data[config]();
373
+ _createClass(Collapse, null, [{
374
+ key: "VERSION",
375
+ get: function get() {
376
+ return VERSION;
310
377
  }
311
- });
312
- };
313
-
314
- _createClass(Collapse, null, [{
315
- key: "VERSION",
316
- get: function get() {
317
- return VERSION;
318
- }
319
- }, {
320
- key: "Default",
321
- get: function get() {
322
- return Default;
323
- }
324
- }]);
378
+ }, {
379
+ key: "Default",
380
+ get: function get() {
381
+ return Default;
382
+ }
383
+ }]);
325
384
 
326
- return Collapse;
327
- }();
328
- /**
329
- * ------------------------------------------------------------------------
330
- * Data Api implementation
331
- * ------------------------------------------------------------------------
332
- */
385
+ return Collapse;
386
+ }();
387
+ /**
388
+ * ------------------------------------------------------------------------
389
+ * Data Api implementation
390
+ * ------------------------------------------------------------------------
391
+ */
333
392
 
334
393
 
335
- $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
336
- // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
337
- if (event.currentTarget.tagName === 'A') {
338
- event.preventDefault();
339
- }
394
+ $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
395
+ // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
396
+ if (event.currentTarget.tagName === 'A') {
397
+ event.preventDefault();
398
+ }
340
399
 
341
- var $trigger = $(this);
342
- var selector = Util.getSelectorFromElement(this);
343
- $(selector).each(function () {
344
- var $target = $(this);
345
- var data = $target.data(DATA_KEY);
346
- var config = data ? 'toggle' : $trigger.data();
400
+ var $trigger = $$$1(this);
401
+ var selector = Util.getSelectorFromElement(this);
402
+ var selectors = [].slice.call(document.querySelectorAll(selector));
403
+ $$$1(selectors).each(function () {
404
+ var $target = $$$1(this);
405
+ var data = $target.data(DATA_KEY);
406
+ var config = data ? 'toggle' : $trigger.data();
347
407
 
348
- Collapse._jQueryInterface.call($target, config);
408
+ Collapse._jQueryInterface.call($target, config);
409
+ });
349
410
  });
350
- });
351
- /**
352
- * ------------------------------------------------------------------------
353
- * jQuery
354
- * ------------------------------------------------------------------------
355
- */
411
+ /**
412
+ * ------------------------------------------------------------------------
413
+ * jQuery
414
+ * ------------------------------------------------------------------------
415
+ */
416
+
417
+ $$$1.fn[NAME] = Collapse._jQueryInterface;
418
+ $$$1.fn[NAME].Constructor = Collapse;
356
419
 
357
- $.fn[NAME] = Collapse._jQueryInterface;
358
- $.fn[NAME].Constructor = Collapse;
420
+ $$$1.fn[NAME].noConflict = function () {
421
+ $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
422
+ return Collapse._jQueryInterface;
423
+ };
359
424
 
360
- $.fn[NAME].noConflict = function () {
361
- $.fn[NAME] = JQUERY_NO_CONFLICT;
362
- return Collapse._jQueryInterface;
363
- };
425
+ return Collapse;
426
+ }($);
364
427
 
365
428
  return Collapse;
366
- }($);
367
- //# sourceMappingURL=collapse.js.map
429
+
430
+ })));
431
+ //# sourceMappingURL=collapse.js.map