j1-template 2023.9.2 → 2023.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (739) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_collection.html +1 -1
  3. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +1 -1
  4. data/_includes/themes/j1/layouts/content_generator_page.html +1 -1
  5. data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
  6. data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
  7. data/_includes/themes/j1/layouts/layout_metadata_generator.html +1 -1
  8. data/_includes/themes/j1/layouts/layout_module_generator.html +1 -1
  9. data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -1
  10. data/_includes/themes/j1/modules/attics/generator.html +1 -1
  11. data/_includes/themes/j1/modules/navigator/generator.html +1 -1
  12. data/_includes/themes/j1/modules/searcher/generator.html +1 -1
  13. data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +1 -1
  14. data/_includes/themes/j1/procedures/blocks/footer/boxes/about_box.proc +1 -1
  15. data/_includes/themes/j1/procedures/blocks/footer/boxes/contacts_box.proc +1 -1
  16. data/_includes/themes/j1/procedures/blocks/footer/boxes/issue.proc +1 -1
  17. data/_includes/themes/j1/procedures/blocks/footer/boxes/legal_statements.proc +1 -1
  18. data/_includes/themes/j1/procedures/blocks/footer/boxes/links_box.proc +1 -1
  19. data/_includes/themes/j1/procedures/blocks/footer/boxes/news_box.proc +1 -1
  20. data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +1 -1
  21. data/_includes/themes/j1/procedures/blocks/get_wave.proc +1 -1
  22. data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
  23. data/_includes/themes/j1/procedures/collections/pager.proc +1 -1
  24. data/_includes/themes/j1/procedures/global/attributes_loader.proc +1 -1
  25. data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +1 -1
  26. data/_includes/themes/j1/procedures/global/collect_page_options.proc +1 -1
  27. data/_includes/themes/j1/procedures/global/create_bs_button.proc +1 -1
  28. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -1
  29. data/_includes/themes/j1/procedures/global/date-german.proc +1 -1
  30. data/_includes/themes/j1/procedures/global/get_category.proc +1 -1
  31. data/_includes/themes/j1/procedures/global/get_category_item.proc +1 -1
  32. data/_includes/themes/j1/procedures/global/get_documents_dir.proc +1 -1
  33. data/_includes/themes/j1/procedures/global/get_page_path.proc +1 -1
  34. data/_includes/themes/j1/procedures/global/get_page_url.proc +1 -1
  35. data/_includes/themes/j1/procedures/global/select_color.proc +1 -1
  36. data/_includes/themes/j1/procedures/global/select_font_size.proc +1 -1
  37. data/_includes/themes/j1/procedures/global/select_icon_size.proc +1 -1
  38. data/_includes/themes/j1/procedures/global/select_location.proc +1 -1
  39. data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +1 -1
  40. data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +1 -1
  41. data/_includes/themes/j1/procedures/global/set_image_block.proc +1 -1
  42. data/_includes/themes/j1/procedures/global/setup.proc +1 -1
  43. data/_includes/themes/j1/procedures/layouts/content_writer.proc +1 -1
  44. data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
  45. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  46. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +1 -1
  47. data/_includes/themes/j1/procedures/posts/collate_calendar.proc +1 -1
  48. data/_includes/themes/j1/procedures/posts/collate_list.proc +1 -1
  49. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
  50. data/_includes/themes/j1/procedures/posts/create_ad_block.proc +1 -1
  51. data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
  52. data/_includes/themes/j1/procedures/posts/pager.proc +1 -1
  53. data/_layouts/_home.html +1 -1
  54. data/_layouts/autopage_category.html +1 -1
  55. data/_layouts/autopage_collection.html +1 -1
  56. data/_layouts/autopage_collections_tags.html +1 -1
  57. data/_layouts/autopage_tags.html +1 -1
  58. data/_layouts/collection.html +1 -1
  59. data/_layouts/compress.html +1 -1
  60. data/_layouts/default.html +1 -1
  61. data/_layouts/home.html +1 -1
  62. data/_layouts/news_panel_posts.html +1 -1
  63. data/_layouts/page.html +1 -1
  64. data/_layouts/post.html +1 -1
  65. data/_layouts/raw.html +1 -1
  66. data/apps/public/cc/cc.yml +1 -1
  67. data/assets/data/authclient.html +2 -2
  68. data/assets/data/banner.html +5 -5
  69. data/assets/data/carousel.json +1 -1
  70. data/assets/data/cookieconsent.html +2 -2
  71. data/assets/data/fab.html +2 -2
  72. data/assets/data/footer.html +2 -2
  73. data/assets/data/galeries.html +240 -0
  74. data/assets/data/gallery_customizer.html +2 -2
  75. data/assets/data/iso-639-language-codes-flags.json +1 -1
  76. data/assets/data/iso-639-language-codes.json +1 -1
  77. data/assets/data/j1_config.json +1 -1
  78. data/assets/data/masonry.html +99 -86
  79. data/assets/data/masterslider.html +2 -2
  80. data/assets/data/mdi_icons.json +1 -1
  81. data/assets/data/mdil_icons.json +1 -1
  82. data/assets/data/menu.html +2 -2
  83. data/assets/data/mmenu.html +2 -2
  84. data/assets/data/mmenu_sidebar.html +2 -2
  85. data/assets/data/mmenu_toc.html +2 -2
  86. data/assets/data/panel.html +2 -2
  87. data/assets/data/particles.yml +1 -1
  88. data/assets/data/private.json +1 -1
  89. data/assets/data/quicklinks.html +2 -2
  90. data/assets/data/rtext_resizer.html +2 -2
  91. data/assets/data/slick.html +2 -2
  92. data/assets/data/speak2me.html +2 -2
  93. data/assets/data/themes.bootswatch.json +1 -1
  94. data/assets/data/themes.json +1 -1
  95. data/assets/data/translator.html +2 -2
  96. data/assets/error_pages/HTTP204.html +1 -1
  97. data/assets/error_pages/HTTP400.html +1 -1
  98. data/assets/error_pages/HTTP401.html +1 -1
  99. data/assets/error_pages/HTTP403.html +1 -1
  100. data/assets/error_pages/HTTP404.html +1 -1
  101. data/assets/error_pages/HTTP444.html +1 -1
  102. data/assets/error_pages/HTTP445.html +1 -1
  103. data/assets/error_pages/HTTP446.html +1 -1
  104. data/assets/error_pages/HTTP447.html +1 -1
  105. data/assets/error_pages/HTTP448.html +1 -1
  106. data/assets/error_pages/HTTP500.html +1 -1
  107. data/assets/error_pages/HTTP501.html +1 -1
  108. data/assets/error_pages/HTTP502.html +1 -1
  109. data/assets/error_pages/HTTP503.html +1 -1
  110. data/assets/themes/j1/adapter/js/advertising.js +2 -2
  111. data/assets/themes/j1/adapter/js/algolia.js +2 -2
  112. data/assets/themes/j1/adapter/js/analytics.js +2 -2
  113. data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
  114. data/assets/themes/j1/adapter/js/attic.js +2 -2
  115. data/assets/themes/j1/adapter/js/bmd.js +2 -2
  116. data/assets/themes/j1/adapter/js/carousel.js +2 -2
  117. data/assets/themes/j1/adapter/js/clipboard.js +2 -2
  118. data/assets/themes/j1/adapter/js/comments.js +2 -2
  119. data/assets/themes/j1/adapter/js/cookieConsent.js +1 -1
  120. data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
  121. data/assets/themes/j1/adapter/js/customModule.js +2 -2
  122. data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
  123. data/assets/themes/j1/adapter/js/fab.js +2 -2
  124. data/assets/themes/j1/adapter/js/framer.js +2 -2
  125. data/assets/themes/j1/adapter/js/gallery.js +325 -0
  126. data/assets/themes/j1/adapter/js/iconPicker.js +2 -2
  127. data/assets/themes/j1/adapter/js/j1.js +2 -2
  128. data/assets/themes/j1/adapter/js/lazyLoader.js +2 -2
  129. data/assets/themes/j1/adapter/js/{justifiedGallery.js → lightGallery.js} +54 -48
  130. data/assets/themes/j1/adapter/js/lightbox.js +2 -2
  131. data/assets/themes/j1/adapter/js/logger.js +2 -2
  132. data/assets/themes/j1/adapter/js/lunr.js +2 -2
  133. data/assets/themes/j1/adapter/js/masonry.js +80 -13
  134. data/assets/themes/j1/adapter/js/masterslider.js +2 -2
  135. data/assets/themes/j1/adapter/js/mmenu.js +2 -2
  136. data/assets/themes/j1/adapter/js/navigator.js +2 -2
  137. data/assets/themes/j1/adapter/js/particles.js +2 -2
  138. data/assets/themes/j1/adapter/js/rangeSlider.js +2 -2
  139. data/assets/themes/j1/adapter/js/rouge.js +2 -2
  140. data/assets/themes/j1/adapter/js/rtable.js +2 -2
  141. data/assets/themes/j1/adapter/js/rtextResizer.js +2 -2
  142. data/assets/themes/j1/adapter/js/scroller.js +2 -2
  143. data/assets/themes/j1/adapter/js/slick.js +1 -1
  144. data/assets/themes/j1/adapter/js/speak2me.js +2 -2
  145. data/assets/themes/j1/adapter/js/themeToggler.js +2 -2
  146. data/assets/themes/j1/adapter/js/themer.js +2 -2
  147. data/assets/themes/j1/adapter/js/toccer.js +2 -2
  148. data/assets/themes/j1/adapter/js/translator.js +1 -1
  149. data/assets/themes/j1/adapter/js/waves.js +2 -2
  150. data/assets/themes/j1/core/country-flags/css/theme/uno.css +1 -1
  151. data/assets/themes/j1/core/country-flags/css/theme/uno.min.css +1 -1
  152. data/assets/themes/j1/core/css/animate.css +2 -2
  153. data/assets/themes/j1/core/css/icon-fonts/fontawesome.css +2 -2
  154. data/assets/themes/j1/core/css/icon-fonts/iconify.css +5 -5
  155. data/assets/themes/j1/core/css/icon-fonts/mdi.css +9 -9
  156. data/assets/themes/j1/core/css/icon-fonts/mdib.css +7 -7
  157. data/assets/themes/j1/core/css/icon-fonts/mdil.css +10 -10
  158. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1 -1
  159. data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +30 -30
  160. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +107 -100
  161. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  162. data/assets/themes/j1/core/css/vendor.css +10 -10
  163. data/assets/themes/j1/core/js/template.js +159 -19
  164. data/assets/themes/j1/core/js/template.min.js +6 -6
  165. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  166. data/assets/themes/j1/modules/backstretch/js/backstretch.js +1 -1
  167. data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
  168. data/assets/themes/j1/modules/bmd/js/bmd.js +1 -1
  169. data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
  170. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +2118 -2696
  171. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js.map +1 -0
  172. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +3 -3
  173. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -1
  174. data/assets/themes/j1/modules/carousel/css/carousel.css +1 -1
  175. data/assets/themes/j1/modules/carousel/css/carousel.min.css +1 -1
  176. data/assets/themes/j1/modules/carousel/css/carousel_transitions.css +1 -1
  177. data/assets/themes/j1/modules/carousel/css/carousel_transitions.min.css +1 -1
  178. data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
  179. data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
  180. data/assets/themes/j1/modules/clipboard/css/theme/uno.css +1 -1
  181. data/assets/themes/j1/modules/clipboard/css/theme/uno.min.css +1 -1
  182. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css +1 -1
  183. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css +1 -1
  184. data/assets/themes/j1/modules/dropdowns/js/cash.js +1 -1
  185. data/assets/themes/j1/modules/dropdowns/js/cash.min.js +1 -1
  186. data/assets/themes/j1/modules/dropdowns/js/dropdowns.js +1 -1
  187. data/assets/themes/j1/modules/dropdowns/js/dropdowns.min.js +1 -1
  188. data/assets/themes/j1/modules/fab/js/cash.js +1 -1
  189. data/assets/themes/j1/modules/fab/js/cash.min.js +1 -1
  190. data/assets/themes/j1/modules/fab/js/fab.js +1 -1
  191. data/assets/themes/j1/modules/fab/js/fab.min.js +1 -1
  192. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.css +1 -1
  193. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.min.css +1 -1
  194. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.js +1 -1
  195. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.min.js +1 -1
  196. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.min.js +0 -1
  197. data/assets/themes/j1/modules/iframeResizer/js/resizer.min.js +0 -1
  198. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.js +1 -1
  199. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.min.js +1 -1
  200. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.js +1 -1
  201. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.min.js +1 -1
  202. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
  203. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
  204. data/assets/themes/j1/modules/lightGallery/css/lg-transitions.css +984 -0
  205. data/assets/themes/j1/modules/lightGallery/css/lg-transitions.min.css +26 -0
  206. data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.css +1627 -0
  207. data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.min.css +25 -0
  208. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-autoplay.css +67 -0
  209. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-comments.css +157 -0
  210. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-fullscreen.css +32 -0
  211. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-medium-zoom.css +40 -0
  212. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-pager.css +115 -0
  213. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-rotate.css +74 -0
  214. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-share.css +168 -0
  215. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-thumbnail.css +133 -0
  216. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-video.css +169 -0
  217. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-zoom.css +141 -0
  218. data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.css +109 -0
  219. data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.min.css +19 -0
  220. data/assets/themes/j1/modules/lightGallery/{css/fonts → fonts}/lg.svg +35 -28
  221. data/assets/themes/j1/modules/lightGallery/fonts/lg.ttf +0 -0
  222. data/assets/themes/j1/modules/lightGallery/fonts/lg.woff +0 -0
  223. data/assets/themes/j1/modules/lightGallery/fonts/lg.woff2 +0 -0
  224. data/assets/themes/j1/modules/lightGallery/img/loading.gif +0 -0
  225. data/assets/themes/j1/modules/lightGallery/js/lightgallery.js +2759 -0
  226. data/assets/themes/j1/modules/lightGallery/js/lightgallery.min.js +25 -0
  227. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.js +275 -0
  228. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +26 -0
  229. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.js +230 -0
  230. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.min.js +26 -0
  231. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +160 -0
  232. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +26 -0
  233. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.js +223 -0
  234. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.min.js +27 -0
  235. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +157 -0
  236. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +26 -0
  237. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.js +164 -0
  238. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.min.js +26 -0
  239. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.js +299 -0
  240. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +26 -0
  241. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.js +244 -0
  242. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.min.js +27 -0
  243. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +509 -0
  244. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +26 -0
  245. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js +585 -0
  246. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js +27 -0
  247. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +207 -0
  248. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
  249. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.js +999 -0
  250. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +26 -0
  251. data/assets/themes/j1/modules/lightbox/css/lightbox.css +1 -1
  252. data/assets/themes/j1/modules/lightbox/css/lightbox.min.css +1 -1
  253. data/assets/themes/j1/modules/lightbox/css/theme/uno.css +1 -1
  254. data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -1
  255. data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
  256. data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
  257. data/assets/themes/j1/modules/lunr/js/j1.js +1 -1
  258. data/assets/themes/j1/modules/lunr/js/j1.min.js +1 -1
  259. data/assets/themes/j1/modules/masonry/js/utils/images_loaded.js +439 -0
  260. data/assets/themes/j1/modules/masonry/js/utils/images_loaded.min.js +12 -0
  261. data/assets/themes/j1/modules/masterslider/css/theme/uno.css +1 -1
  262. data/assets/themes/j1/modules/masterslider/css/theme/uno.min.css +1 -1
  263. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +1 -1
  264. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
  265. data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +1 -1
  266. data/assets/themes/j1/modules/mmenuLight/js/mmenu.min.js +1 -1
  267. data/assets/themes/j1/modules/mmenuLight/js/mmenu.polyfills.js +118 -0
  268. data/assets/themes/j1/modules/particles/skies/cavern1.png +0 -0
  269. data/assets/themes/j1/modules/particles/skies/cavern2.png +0 -0
  270. data/assets/themes/j1/modules/particles/skies/chrome.png +0 -0
  271. data/assets/themes/j1/modules/particles/skies/deep-space.jpg +0 -0
  272. data/assets/themes/j1/modules/particles/skies/deepblue.png +0 -0
  273. data/assets/themes/j1/modules/particles/skies/fire.png +0 -0
  274. data/assets/themes/j1/modules/particles/skies/fog.png +0 -0
  275. data/assets/themes/j1/modules/particles/skies/sky1.png +0 -0
  276. data/assets/themes/j1/modules/particles/skies/sky2.png +0 -0
  277. data/assets/themes/j1/modules/particles/skies/sky3.png +0 -0
  278. data/assets/themes/j1/modules/particles/skies/sky4.png +0 -0
  279. data/assets/themes/j1/modules/particles/skies/sky5.png +0 -0
  280. data/assets/themes/j1/modules/particles/skies/space1.png +0 -0
  281. data/assets/themes/j1/modules/particles/skies/space2.png +0 -0
  282. data/assets/themes/j1/modules/particles/skies/space3.png +0 -0
  283. data/assets/themes/j1/modules/particles/skies/starfield.png +0 -0
  284. data/assets/themes/j1/modules/particles/skies/sunorbit.png +0 -0
  285. data/assets/themes/j1/modules/particles/skies/sunset.png +0 -0
  286. data/assets/themes/j1/modules/particles/skies/toxic.png +0 -0
  287. data/assets/themes/j1/modules/particles/skies/underwater1.png +0 -0
  288. data/assets/themes/j1/modules/particles/skies/underwater2.png +0 -0
  289. data/assets/themes/j1/modules/particles/skies/underwater3.png +0 -0
  290. data/assets/themes/j1/modules/particles/skies/wtf.png +0 -0
  291. data/assets/themes/j1/modules/particles/sprites/slime.png +0 -0
  292. data/assets/themes/j1/modules/particles/sprites/slimeeyes.png +0 -0
  293. data/assets/themes/j1/modules/particles/sprites/snake.png +0 -0
  294. data/assets/themes/j1/modules/particles/sprites/snowflakes.png +0 -0
  295. data/assets/themes/j1/modules/particles/sprites/snowflakes_large.png +0 -0
  296. data/assets/themes/j1/modules/popper/js/popper.min.js +0 -1
  297. data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.css +1 -1
  298. data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.min.css +1 -1
  299. data/assets/themes/j1/modules/rouge/css/base16/theme.css +1 -1
  300. data/assets/themes/j1/modules/rouge/css/base16/theme.min.css +1 -1
  301. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.css +1 -1
  302. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.min.css +1 -1
  303. data/assets/themes/j1/modules/rouge/css/base16.light/theme.css +1 -1
  304. data/assets/themes/j1/modules/rouge/css/base16.light/theme.min.css +1 -1
  305. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.css +1 -1
  306. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.min.css +1 -1
  307. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.css +1 -1
  308. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.min.css +1 -1
  309. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.css +1 -1
  310. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.min.css +1 -1
  311. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.css +1 -1
  312. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.min.css +1 -1
  313. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.css +1 -1
  314. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.min.css +1 -1
  315. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.css +1 -1
  316. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.min.css +1 -1
  317. data/assets/themes/j1/modules/rouge/css/colorful/theme.css +1 -1
  318. data/assets/themes/j1/modules/rouge/css/colorful/theme.min.css +1 -1
  319. data/assets/themes/j1/modules/rouge/css/github/theme.css +1 -1
  320. data/assets/themes/j1/modules/rouge/css/github/theme.min.css +1 -1
  321. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.css +1 -1
  322. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.min.css +1 -1
  323. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.css +1 -1
  324. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.min.css +1 -1
  325. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.css +1 -1
  326. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.min.css +1 -1
  327. data/assets/themes/j1/modules/rouge/css/igorpro/theme.css +1 -1
  328. data/assets/themes/j1/modules/rouge/css/igorpro/theme.min.css +1 -1
  329. data/assets/themes/j1/modules/rouge/css/molokai/theme.css +1 -1
  330. data/assets/themes/j1/modules/rouge/css/molokai/theme.min.css +1 -1
  331. data/assets/themes/j1/modules/rouge/css/monokai/theme.css +1 -1
  332. data/assets/themes/j1/modules/rouge/css/monokai/theme.min.css +1 -1
  333. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.css +1 -1
  334. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.min.css +1 -1
  335. data/assets/themes/j1/modules/rouge/css/pastie/theme.css +1 -1
  336. data/assets/themes/j1/modules/rouge/css/pastie/theme.min.css +1 -1
  337. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.css +1 -1
  338. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.min.css +1 -1
  339. data/assets/themes/j1/modules/rouge/css/themes.txt +1 -1
  340. data/assets/themes/j1/modules/rouge/css/tulip/theme.css +1 -1
  341. data/assets/themes/j1/modules/rouge/css/tulip/theme.min.css +1 -1
  342. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.css +1 -1
  343. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.min.css +1 -1
  344. data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +1 -1
  345. data/assets/themes/j1/modules/rouge/css/uno.light/theme.min.css +1 -1
  346. data/assets/themes/j1/modules/rouge/js/select.js +1 -1
  347. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +1 -1
  348. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +1 -1
  349. data/assets/themes/j1/modules/rtable/js/rtable.js +1 -1
  350. data/assets/themes/j1/modules/rtable/js/rtable.min.js +1 -1
  351. data/assets/themes/j1/modules/scroller/css/theme/uno.css +1 -1
  352. data/assets/themes/j1/modules/scroller/css/theme/uno.min.css +1 -1
  353. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  354. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +1 -1
  355. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +1 -1
  356. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js +0 -1
  357. data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +1 -1
  358. data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
  359. data/assets/themes/j1/modules/spinner/css/spin.css +1 -1
  360. data/assets/themes/j1/modules/spinner/css/spin.min.css +1 -1
  361. data/assets/themes/j1/modules/spinner/js/spin.js +1 -1
  362. data/assets/themes/j1/modules/spinner/js/spin.min.js +1 -1
  363. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
  364. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
  365. data/assets/themes/j1/modules/translator/css/translator.css +1 -1
  366. data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
  367. data/assets/themes/j1/modules/videojs/css/themes/city.css +74 -74
  368. data/assets/themes/j1/modules/videojs/css/themes/city.min.css +3 -4
  369. data/assets/themes/j1/modules/videojs/css/themes/fantasy.css +3 -3
  370. data/assets/themes/j1/modules/videojs/css/themes/fantasy.min.css +3 -4
  371. data/assets/themes/j1/modules/videojs/css/themes/forest.css +4 -3
  372. data/assets/themes/j1/modules/videojs/css/themes/forest.min.css +3 -4
  373. data/assets/themes/j1/modules/videojs/css/themes/sea.css +2 -2
  374. data/assets/themes/j1/modules/videojs/css/themes/sea.min.css +3 -4
  375. data/assets/themes/j1/modules/videojs/css/themes/uno.css +151 -0
  376. data/assets/themes/j1/modules/videojs/css/themes/uno.min.css +17 -0
  377. data/assets/themes/j1/modules/videojs/css/video-js.css +12 -0
  378. data/assets/themes/j1/modules/videojs/css/video-js.min.css +12 -0
  379. data/assets/themes/j1/modules/videojs/js/plugins/dm/LICENSE +19 -0
  380. data/assets/themes/j1/modules/videojs/js/plugins/dm/README.md +94 -0
  381. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/README.md +7 -0
  382. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.min.js +29 -0
  383. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.player.min.js +80 -0
  384. data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.js +603 -0
  385. data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.min.js +16 -0
  386. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-controls.html +18 -0
  387. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-javascript.html +27 -0
  388. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-playlist.html +19 -0
  389. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/global-parameters.html +28 -0
  390. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/simple.html +20 -0
  391. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/switch.html +37 -0
  392. data/assets/themes/j1/modules/videojs/js/plugins/vm/LICENSE +21 -0
  393. data/assets/themes/j1/modules/videojs/js/plugins/vm/README.md +15 -0
  394. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/README.md +1818 -0
  395. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/player.min.js +23 -0
  396. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.js +3562 -0
  397. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.min.js +35 -0
  398. data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/index.html +33 -0
  399. data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/player/index.html +37 -0
  400. data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.js +521 -0
  401. data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.min.js +15 -0
  402. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/Readme.txt +20 -0
  403. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/WistiaPlayer.ts +1617 -0
  404. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/wistia.min.js +2 -0
  405. data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.js +383 -0
  406. data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.min.js +18 -0
  407. data/assets/themes/j1/modules/videojs/js/plugins/yt/README.md +115 -0
  408. data/assets/themes/j1/modules/videojs/js/plugins/yt/api/youtube.min.js +20 -0
  409. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/global-parameters.html +32 -0
  410. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/simple.html +20 -0
  411. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/switch.html +37 -0
  412. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-controls.html +18 -0
  413. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-javascript.html +27 -0
  414. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-list.html +19 -0
  415. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-playlist.html +19 -0
  416. data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.js +832 -0
  417. data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.min.js +16 -0
  418. data/assets/themes/j1/modules/videojs/js/video.js +40610 -32915
  419. data/assets/themes/j1/modules/videojs/js/video.min.js +33 -20
  420. data/lib/j1/version.rb +1 -1
  421. data/lib/j1_app/j1_auth_manager/auth_manager.rb +1 -1
  422. data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +1 -1
  423. data/lib/j1_app/omniauth/strategies/github.rb +1 -1
  424. data/lib/starter_web/Gemfile +3 -3
  425. data/lib/starter_web/README.md +5 -5
  426. data/lib/starter_web/_config.yml +2 -2
  427. data/lib/starter_web/_data/_defaults/categories.yml +1 -1
  428. data/lib/starter_web/_data/_defaults/colors.yml +1 -1
  429. data/lib/starter_web/_data/_defaults/font_sizes.yml +1 -1
  430. data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
  431. data/lib/starter_web/_data/_defaults/private.yml +1 -1
  432. data/lib/starter_web/_data/_defaults/resources.yml +1 -1
  433. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -1
  434. data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +1 -1
  435. data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +1 -1
  436. data/lib/starter_web/_data/blocks/banner.yml +1 -1
  437. data/lib/starter_web/_data/blocks/defaults/banner.yml +1 -1
  438. data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
  439. data/lib/starter_web/_data/blocks/defaults/panel.yml +1 -1
  440. data/lib/starter_web/_data/blocks/footer.yml +2 -2
  441. data/lib/starter_web/_data/blocks/panel.yml +1 -1
  442. data/lib/starter_web/_data/categories.yml +1 -1
  443. data/lib/starter_web/_data/colors.yml +1 -1
  444. data/lib/starter_web/_data/font_sizes.yml +1 -1
  445. data/lib/starter_web/_data/j1_config.yml +1 -1
  446. data/lib/starter_web/_data/layouts/collection.yml +1 -1
  447. data/lib/starter_web/_data/layouts/default.yml +1 -1
  448. data/lib/starter_web/_data/layouts/home.yml +1 -1
  449. data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -1
  450. data/lib/starter_web/_data/layouts/page.yml +1 -1
  451. data/lib/starter_web/_data/layouts/post.yml +1 -1
  452. data/lib/starter_web/_data/layouts/raw.yml +1 -1
  453. data/lib/starter_web/_data/modules/advertising.yml +2 -2
  454. data/lib/starter_web/_data/modules/analytics.yml +1 -1
  455. data/lib/starter_web/_data/modules/attics.yml +1 -1
  456. data/lib/starter_web/_data/modules/authentication.yml +1 -1
  457. data/lib/starter_web/_data/modules/blog_navigator.yml +1 -1
  458. data/lib/starter_web/_data/modules/carousel.yml +1 -1
  459. data/lib/starter_web/_data/modules/comments.yml +1 -1
  460. data/lib/starter_web/_data/modules/cookieconsent.yml +1 -1
  461. data/lib/starter_web/_data/modules/cookies.yml +1 -1
  462. data/lib/starter_web/_data/modules/defaults/advertising.yml +1 -1
  463. data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -1
  464. data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
  465. data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -1
  466. data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +1 -1
  467. data/lib/starter_web/_data/modules/defaults/carousel.yml +1 -1
  468. data/lib/starter_web/_data/modules/defaults/comments.yml +1 -1
  469. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +1 -1
  470. data/lib/starter_web/_data/modules/defaults/cookies.yml +1 -1
  471. data/lib/starter_web/_data/modules/defaults/dropdowns.yml +1 -1
  472. data/lib/starter_web/_data/modules/defaults/fab.yml +1 -1
  473. data/lib/starter_web/_data/modules/defaults/framer.yml +1 -1
  474. data/lib/starter_web/_data/modules/defaults/{justifiedGallery.yml → gallery.yml} +18 -28
  475. data/lib/starter_web/_data/modules/defaults/iconPicker.yml +1 -1
  476. data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +1 -1
  477. data/lib/starter_web/_data/modules/defaults/lightGallery.yml +8 -6
  478. data/lib/starter_web/_data/modules/defaults/lightbox.yml +1 -1
  479. data/lib/starter_web/_data/modules/defaults/log4javascript.yml +1 -1
  480. data/lib/starter_web/_data/modules/defaults/log4r.yml +1 -1
  481. data/lib/starter_web/_data/modules/defaults/lunr.yml +1 -1
  482. data/lib/starter_web/_data/modules/defaults/masonry.yml +53 -13
  483. data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
  484. data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
  485. data/lib/starter_web/_data/modules/defaults/particles.yml +1 -1
  486. data/lib/starter_web/_data/modules/defaults/rangeSlider.yml +1 -1
  487. data/lib/starter_web/_data/modules/defaults/rtable.yml +1 -1
  488. data/lib/starter_web/_data/modules/defaults/scroller.yml +1 -1
  489. data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
  490. data/lib/starter_web/_data/modules/defaults/speak2me.yml +1 -1
  491. data/lib/starter_web/_data/modules/defaults/theme_toggler.yml +1 -1
  492. data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
  493. data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
  494. data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
  495. data/lib/starter_web/_data/modules/defaults/waves.yml +1 -1
  496. data/lib/starter_web/_data/modules/dropdowns.yml +1 -1
  497. data/lib/starter_web/_data/modules/fab.yml +1 -1
  498. data/lib/starter_web/_data/modules/framer.yml +1 -1
  499. data/lib/starter_web/_data/modules/gallery.yml +874 -0
  500. data/lib/starter_web/_data/modules/iconPicker.yml +1 -1
  501. data/lib/starter_web/_data/modules/lazyLoader.yml +1 -1
  502. data/lib/starter_web/_data/modules/lightGallery.yml +8 -5
  503. data/lib/starter_web/_data/modules/lightbox.yml +1 -1
  504. data/lib/starter_web/_data/modules/log4javascript.yml +1 -1
  505. data/lib/starter_web/_data/modules/log4r.yml +1 -1
  506. data/lib/starter_web/_data/modules/lunr.yml +1 -1
  507. data/lib/starter_web/_data/modules/masonry.yml +401 -87
  508. data/lib/starter_web/_data/modules/masterslider.yml +1 -1
  509. data/lib/starter_web/_data/modules/navigator.yml +1 -1
  510. data/lib/starter_web/_data/modules/navigator_menu.yml +18 -4
  511. data/lib/starter_web/_data/modules/nbinteract.yml +1 -1
  512. data/lib/starter_web/_data/modules/particles.yml +1 -1
  513. data/lib/starter_web/_data/modules/rangeSlider.yml +1 -1
  514. data/lib/starter_web/_data/modules/rtable.yml +1 -1
  515. data/lib/starter_web/_data/modules/scroller.yml +1 -1
  516. data/lib/starter_web/_data/modules/slick.yml +1 -1
  517. data/lib/starter_web/_data/modules/speak2me.yml +1 -1
  518. data/lib/starter_web/_data/modules/theme_toggler.yml +1 -1
  519. data/lib/starter_web/_data/modules/themer.yml +1 -1
  520. data/lib/starter_web/_data/modules/toccer.yml +1 -1
  521. data/lib/starter_web/_data/modules/translator.yml +1 -1
  522. data/lib/starter_web/_data/modules/waves.yml +1 -1
  523. data/lib/starter_web/_data/plugins/defaults/feed.yml +1 -1
  524. data/lib/starter_web/_data/plugins/defaults/paginator.yml +1 -1
  525. data/lib/starter_web/_data/plugins/defaults/seo-tags.yml +1 -1
  526. data/lib/starter_web/_data/plugins/defaults/sitemap.yml +1 -1
  527. data/lib/starter_web/_data/plugins/feed.yml +1 -1
  528. data/lib/starter_web/_data/plugins/paginator.yml +1 -1
  529. data/lib/starter_web/_data/plugins/seo-tags.yml +1 -1
  530. data/lib/starter_web/_data/plugins/sitemap.yml +1 -1
  531. data/lib/starter_web/_data/private.yml +1 -1
  532. data/lib/starter_web/_data/resources.yml +190 -118
  533. data/lib/starter_web/_data/templates/feed.xml +2 -2
  534. data/lib/starter_web/_data/templates/robots.txt +1 -1
  535. data/lib/starter_web/_data/templates/seo-tags.html +1 -1
  536. data/lib/starter_web/_data/templates/sitemap.xml +1 -1
  537. data/lib/starter_web/_data/utilities/defaults/util_srv.yml +1 -1
  538. data/lib/starter_web/_data/utilities/util_srv.yml +1 -1
  539. data/lib/starter_web/_includes/custom/static/bs5_accordion.html +1 -1
  540. data/lib/starter_web/_includes/custom/templates/bs5_accordion.html +1 -1
  541. data/lib/starter_web/_includes/custom/templates/collection_panel.html +1 -1
  542. data/lib/starter_web/_includes/custom/templates/custom_header.html +1 -1
  543. data/lib/starter_web/_includes/custom/templates/people_panel.html +1 -1
  544. data/lib/starter_web/_includes/google/static/google_ad__your-slot-id.html +1 -1
  545. data/lib/starter_web/_includes/google/templates/google_ads.html +1 -1
  546. data/lib/starter_web/_plugins/asciidoctor/admonition-block-answer.rb +3 -2
  547. data/lib/starter_web/_plugins/asciidoctor/admonition-block-question.rb +7 -6
  548. data/lib/starter_web/_plugins/asciidoctor/banner.rb +8 -5
  549. data/lib/starter_web/_plugins/asciidoctor/callout.rb +10 -8
  550. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +14 -8
  551. data/lib/starter_web/_plugins/asciidoctor/conum.rb +3 -1
  552. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +83 -0
  553. data/lib/starter_web/_plugins/asciidoctor/fab-icon-inline.rb +8 -5
  554. data/lib/starter_web/_plugins/asciidoctor/fas-icon-inline.rb +8 -5
  555. data/lib/starter_web/_plugins/asciidoctor/flag-icon-inline.rb +8 -5
  556. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +50 -44
  557. data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +56 -52
  558. data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +52 -47
  559. data/lib/starter_web/_plugins/asciidoctor/iconify-icon-inline.rb +8 -5
  560. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +88 -82
  561. data/lib/starter_web/_plugins/asciidoctor/lorem_inline.rb +5 -4
  562. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +13 -7
  563. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +54 -48
  564. data/lib/starter_web/_plugins/asciidoctor/mdi-icon-inline.rb +2 -1
  565. data/lib/starter_web/_plugins/asciidoctor/mdib-icon-inline.rb +2 -1
  566. data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +2 -1
  567. data/lib/starter_web/_plugins/asciidoctor/panel.rb +9 -5
  568. data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +4 -3
  569. data/lib/starter_web/_plugins/asciidoctor/range-slider-block.rb +49 -44
  570. data/lib/starter_web/_plugins/asciidoctor/shout-block.rb +6 -7
  571. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +12 -6
  572. data/lib/starter_web/_plugins/asciidoctor/textbook-block.rb +9 -5
  573. data/lib/starter_web/_plugins/asciidoctor/twitter-emoji-inline.rb +4 -1
  574. data/lib/starter_web/_plugins/asciidoctor/video-block.rb +65 -0
  575. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +82 -0
  576. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +82 -0
  577. data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +87 -0
  578. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +95 -0
  579. data/lib/starter_web/_plugins/filter/debug.rb +1 -1
  580. data/lib/starter_web/_plugins/filter/encodeBase64.rb +1 -1
  581. data/lib/starter_web/_plugins/filter/encryptAES.rb +1 -1
  582. data/lib/starter_web/_plugins/filter/filters.rb +1 -1
  583. data/lib/starter_web/_plugins/filter/liquify.rb +1 -1
  584. data/lib/starter_web/_plugins/filter/minifyJS.rb +1 -1
  585. data/lib/starter_web/_plugins/filter/minifyJSON.rb +1 -1
  586. data/lib/starter_web/_plugins/filter/prettify.rb +1 -1
  587. data/lib/starter_web/_plugins/filter/xml_prettify.rb +1 -1
  588. data/lib/starter_web/_plugins/helper/symlink_watcher.rb +1 -1
  589. data/lib/starter_web/_plugins/i18n/date.rb +1 -1
  590. data/lib/starter_web/_plugins/index/lunr.rb +2 -2
  591. data/lib/starter_web/_plugins/seo/j1-feed.rb +1 -1
  592. data/lib/starter_web/_plugins/seo/j1-seo-tags.rb +1 -1
  593. data/lib/starter_web/_plugins/seo/j1-sitemap.rb +1 -1
  594. data/lib/starter_web/assets/images/icons/videojs/videojs-logo.png +0 -0
  595. data/lib/starter_web/assets/images/icons/videojs/videojs-poster.png +0 -0
  596. data/lib/starter_web/assets/videos/gallery/_video_james_carpool_caraoke_poster.jpg +0 -0
  597. data/lib/starter_web/assets/videos/gallery/html5/video1-poster.jpg +0 -0
  598. data/lib/starter_web/assets/videos/gallery/html5/video1.subtitles.vtt +39 -0
  599. data/lib/starter_web/assets/videos/gallery/html5/video2-poster.jpg +0 -0
  600. data/lib/starter_web/assets/videos/gallery/html5/303/237video2-poster.jpg +0 -0
  601. data/lib/starter_web/assets/videos/gallery/video1-poster.1920..jpg +0 -0
  602. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.1920.jpg +0 -0
  603. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.jpg +0 -0
  604. data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
  605. data/lib/starter_web/assets/videos/gallery/video_james_carpool_caraoke_poster.jpg +0 -0
  606. data/lib/starter_web/config.ru +1 -1
  607. data/lib/starter_web/dot.gitattributes +1 -1
  608. data/lib/starter_web/dot.nojekyll +1 -1
  609. data/lib/starter_web/package.json +1 -1
  610. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +5 -0
  611. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +3 -0
  612. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +1 -0
  613. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +11 -7
  614. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +27 -11
  615. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +3 -0
  616. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +12 -7
  617. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +14 -7
  618. data/lib/starter_web/pages/public/features/general.adoc +12 -1
  619. data/lib/starter_web/pages/public/features/template.adoc +37 -38
  620. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +4 -3
  621. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +2 -3
  622. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +2 -2
  623. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +2 -2
  624. data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +6 -5
  625. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -0
  626. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +4 -0
  627. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +6 -5
  628. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +2 -0
  629. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +7 -2
  630. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +7 -2
  631. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +12 -3
  632. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +4 -2
  633. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +49 -40
  634. data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +264 -64
  635. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +5 -2
  636. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +1 -0
  637. data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -1
  638. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
  639. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
  640. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -39
  641. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
  642. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +3 -2
  643. data/lib/starter_web/pages/public/plans/plans.adoc +14 -5
  644. data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +69 -0
  645. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/readme +0 -0
  646. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +1 -1
  647. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  648. data/lib/starter_web/utilsrv/package.json +1 -1
  649. data/lib/starter_web/utilsrv/server.js +1 -1
  650. metadata +170 -94
  651. data/assets/data/galleries.json +0 -156
  652. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +0 -360
  653. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.js +0 -1694
  654. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.min.js +0 -19
  655. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.map +0 -1
  656. data/assets/themes/j1/modules/iframeResizer/js/resizer.map +0 -1
  657. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.css +0 -110
  658. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -110
  659. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/theme/uno.css +0 -23
  660. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -1229
  661. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.js +0 -1229
  662. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -8
  663. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/.csslintrc +0 -20
  664. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/justifiedGallery.less +0 -113
  665. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.css +0 -110
  666. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.min.css +0 -110
  667. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.js +0 -1245
  668. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.min.js +0 -7
  669. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.css +0 -110
  670. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.min.css +0 -110
  671. data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.css +0 -58
  672. data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
  673. data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.css +0 -778
  674. data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.min.css +0 -5
  675. data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.css +0 -981
  676. data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.min.css +0 -5
  677. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.eot +0 -0
  678. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.ttf +0 -0
  679. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.woff +0 -0
  680. data/assets/themes/j1/modules/lightGallery/css/themes/uno.css +0 -262
  681. data/assets/themes/j1/modules/lightGallery/css/themes/uno.min.css +0 -15
  682. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.js +0 -1375
  683. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.min.js +0 -5
  684. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +0 -1362
  685. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.min.js +0 -4
  686. data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.js +0 -206
  687. data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.min.js +0 -5
  688. data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.js +0 -126
  689. data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js +0 -5
  690. data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.js +0 -101
  691. data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js +0 -5
  692. data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.js +0 -105
  693. data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js +0 -5
  694. data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.js +0 -107
  695. data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.min.js +0 -5
  696. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +0 -486
  697. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +0 -7
  698. data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.js +0 -527
  699. data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.min.js +0 -5
  700. data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js.map +0 -1
  701. data/assets/themes/j1/modules/popper/js/popper.min.js.map +0 -1
  702. data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.js +0 -2337
  703. data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.min.js +0 -1
  704. data/assets/themes/j1/modules/rangeSlider/js/9.1.0/nouislider.js +0 -2534
  705. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js.map +0 -1
  706. data/assets/themes/j1/modules/themeSwitcher/js/_unsued/switcher.1.js +0 -454
  707. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.js +0 -4
  708. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.min.js +0 -4
  709. data/assets/themes/j1/modules/vimeo/player/js/player.js +0 -2138
  710. data/assets/themes/j1/modules/vimeo/player/js/player.js.map +0 -1
  711. data/assets/themes/j1/modules/vimeo/player/js/player.min.js +0 -2
  712. data/assets/themes/j1/modules/vimeo/player/js/player.min.js.map +0 -1
  713. data/lib/starter_web/_data/modules/justifiedGallery.yml +0 -556
  714. data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
  715. data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
  716. /data/assets/themes/j1/modules/backstretch/{LICENSE-MIT → LICENSE} +0 -0
  717. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/animation-w.png +0 -0
  718. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/customize-w.png +0 -0
  719. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/dynamic-w.png +0 -0
  720. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/facebook-icon.svg +0 -0
  721. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/googleplus-icon.svg +0 -0
  722. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/html5-w.png +0 -0
  723. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/linked-in.png +0 -0
  724. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/module-w.png +0 -0
  725. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/play-button.png +0 -0
  726. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/responsive-w.png +0 -0
  727. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/thumb-w.png +0 -0
  728. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/touch-w.png +0 -0
  729. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter-icon.svg +0 -0
  730. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter.png +0 -0
  731. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/video1-w.png +0 -0
  732. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom-w.png +0 -0
  733. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom.png +0 -0
  734. /data/assets/themes/j1/modules/lightGallery/{css/img → images}/loading.gif +0 -0
  735. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/video-play.png +0 -0
  736. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/vimeo-play.png +0 -0
  737. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/youtube-play.png +0 -0
  738. /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.js +0 -0
  739. /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.min.js +0 -0
@@ -1,2138 +0,0 @@
1
- /*! @vimeo/player v2.10.1 | (c) 2020 Vimeo | MIT License | https://github.com/vimeo/player.js */
2
- (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
- typeof define === 'function' && define.amd ? define(factory) :
5
- (global = global || self, (global.Vimeo = global.Vimeo || {}, global.Vimeo.Player = factory()));
6
- }(this, (function () { 'use strict';
7
-
8
- function _classCallCheck(instance, Constructor) {
9
- if (!(instance instanceof Constructor)) {
10
- throw new TypeError("Cannot call a class as a function");
11
- }
12
- }
13
-
14
- function _defineProperties(target, props) {
15
- for (var i = 0; i < props.length; i++) {
16
- var descriptor = props[i];
17
- descriptor.enumerable = descriptor.enumerable || false;
18
- descriptor.configurable = true;
19
- if ("value" in descriptor) descriptor.writable = true;
20
- Object.defineProperty(target, descriptor.key, descriptor);
21
- }
22
- }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) {
25
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
26
- if (staticProps) _defineProperties(Constructor, staticProps);
27
- return Constructor;
28
- }
29
-
30
- /**
31
- * @module lib/functions
32
- */
33
-
34
- /**
35
- * Check to see this is a node environment.
36
- * @type {Boolean}
37
- */
38
-
39
- /* global global */
40
- var isNode = typeof global !== 'undefined' && {}.toString.call(global) === '[object global]';
41
- /**
42
- * Get the name of the method for a given getter or setter.
43
- *
44
- * @param {string} prop The name of the property.
45
- * @param {string} type Either “get” or “set”.
46
- * @return {string}
47
- */
48
-
49
- function getMethodName(prop, type) {
50
- if (prop.indexOf(type.toLowerCase()) === 0) {
51
- return prop;
52
- }
53
-
54
- return "".concat(type.toLowerCase()).concat(prop.substr(0, 1).toUpperCase()).concat(prop.substr(1));
55
- }
56
- /**
57
- * Check to see if the object is a DOM Element.
58
- *
59
- * @param {*} element The object to check.
60
- * @return {boolean}
61
- */
62
-
63
- function isDomElement(element) {
64
- return Boolean(element && element.nodeType === 1 && 'nodeName' in element && element.ownerDocument && element.ownerDocument.defaultView);
65
- }
66
- /**
67
- * Check to see whether the value is a number.
68
- *
69
- * @see http://dl.dropboxusercontent.com/u/35146/js/tests/isNumber.html
70
- * @param {*} value The value to check.
71
- * @param {boolean} integer Check if the value is an integer.
72
- * @return {boolean}
73
- */
74
-
75
- function isInteger(value) {
76
- // eslint-disable-next-line eqeqeq
77
- return !isNaN(parseFloat(value)) && isFinite(value) && Math.floor(value) == value;
78
- }
79
- /**
80
- * Check to see if the URL is a Vimeo url.
81
- *
82
- * @param {string} url The url string.
83
- * @return {boolean}
84
- */
85
-
86
- function isVimeoUrl(url) {
87
- return /^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(url);
88
- }
89
- /**
90
- * Get the Vimeo URL from an element.
91
- * The element must have either a data-vimeo-id or data-vimeo-url attribute.
92
- *
93
- * @param {object} oEmbedParameters The oEmbed parameters.
94
- * @return {string}
95
- */
96
-
97
- function getVimeoUrl() {
98
- var oEmbedParameters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
99
- var id = oEmbedParameters.id;
100
- var url = oEmbedParameters.url;
101
- var idOrUrl = id || url;
102
-
103
- if (!idOrUrl) {
104
- throw new Error('An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.');
105
- }
106
-
107
- if (isInteger(idOrUrl)) {
108
- return "https://vimeo.com/".concat(idOrUrl);
109
- }
110
-
111
- if (isVimeoUrl(idOrUrl)) {
112
- return idOrUrl.replace('http:', 'https:');
113
- }
114
-
115
- if (id) {
116
- throw new TypeError("\u201C".concat(id, "\u201D is not a valid video id."));
117
- }
118
-
119
- throw new TypeError("\u201C".concat(idOrUrl, "\u201D is not a vimeo.com url."));
120
- }
121
-
122
- var arrayIndexOfSupport = typeof Array.prototype.indexOf !== 'undefined';
123
- var postMessageSupport = typeof window !== 'undefined' && typeof window.postMessage !== 'undefined';
124
-
125
- if (!isNode && (!arrayIndexOfSupport || !postMessageSupport)) {
126
- throw new Error('Sorry, the Vimeo Player API is not available in this browser.');
127
- }
128
-
129
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
130
-
131
- function createCommonjsModule(fn, module) {
132
- return module = { exports: {} }, fn(module, module.exports), module.exports;
133
- }
134
-
135
- /*!
136
- * weakmap-polyfill v2.0.1 - ECMAScript6 WeakMap polyfill
137
- * https://github.com/polygonplanet/weakmap-polyfill
138
- * Copyright (c) 2015-2020 Polygon Planet <polygon.planet.aqua@gmail.com>
139
- * @license MIT
140
- */
141
- (function (self) {
142
-
143
- if (self.WeakMap) {
144
- return;
145
- }
146
-
147
- var hasOwnProperty = Object.prototype.hasOwnProperty;
148
-
149
- var defineProperty = function (object, name, value) {
150
- if (Object.defineProperty) {
151
- Object.defineProperty(object, name, {
152
- configurable: true,
153
- writable: true,
154
- value: value
155
- });
156
- } else {
157
- object[name] = value;
158
- }
159
- };
160
-
161
- self.WeakMap = function () {
162
- // ECMA-262 23.3 WeakMap Objects
163
- function WeakMap() {
164
- if (this === void 0) {
165
- throw new TypeError("Constructor WeakMap requires 'new'");
166
- }
167
-
168
- defineProperty(this, '_id', genId('_WeakMap')); // ECMA-262 23.3.1.1 WeakMap([iterable])
169
-
170
- if (arguments.length > 0) {
171
- // Currently, WeakMap `iterable` argument is not supported
172
- throw new TypeError('WeakMap iterable is not supported');
173
- }
174
- } // ECMA-262 23.3.3.2 WeakMap.prototype.delete(key)
175
-
176
-
177
- defineProperty(WeakMap.prototype, 'delete', function (key) {
178
- checkInstance(this, 'delete');
179
-
180
- if (!isObject(key)) {
181
- return false;
182
- }
183
-
184
- var entry = key[this._id];
185
-
186
- if (entry && entry[0] === key) {
187
- delete key[this._id];
188
- return true;
189
- }
190
-
191
- return false;
192
- }); // ECMA-262 23.3.3.3 WeakMap.prototype.get(key)
193
-
194
- defineProperty(WeakMap.prototype, 'get', function (key) {
195
- checkInstance(this, 'get');
196
-
197
- if (!isObject(key)) {
198
- return void 0;
199
- }
200
-
201
- var entry = key[this._id];
202
-
203
- if (entry && entry[0] === key) {
204
- return entry[1];
205
- }
206
-
207
- return void 0;
208
- }); // ECMA-262 23.3.3.4 WeakMap.prototype.has(key)
209
-
210
- defineProperty(WeakMap.prototype, 'has', function (key) {
211
- checkInstance(this, 'has');
212
-
213
- if (!isObject(key)) {
214
- return false;
215
- }
216
-
217
- var entry = key[this._id];
218
-
219
- if (entry && entry[0] === key) {
220
- return true;
221
- }
222
-
223
- return false;
224
- }); // ECMA-262 23.3.3.5 WeakMap.prototype.set(key, value)
225
-
226
- defineProperty(WeakMap.prototype, 'set', function (key, value) {
227
- checkInstance(this, 'set');
228
-
229
- if (!isObject(key)) {
230
- throw new TypeError('Invalid value used as weak map key');
231
- }
232
-
233
- var entry = key[this._id];
234
-
235
- if (entry && entry[0] === key) {
236
- entry[1] = value;
237
- return this;
238
- }
239
-
240
- defineProperty(key, this._id, [key, value]);
241
- return this;
242
- });
243
-
244
- function checkInstance(x, methodName) {
245
- if (!isObject(x) || !hasOwnProperty.call(x, '_id')) {
246
- throw new TypeError(methodName + ' method called on incompatible receiver ' + typeof x);
247
- }
248
- }
249
-
250
- function genId(prefix) {
251
- return prefix + '_' + rand() + '.' + rand();
252
- }
253
-
254
- function rand() {
255
- return Math.random().toString().substring(2);
256
- }
257
-
258
- defineProperty(WeakMap, '_polyfill', true);
259
- return WeakMap;
260
- }();
261
-
262
- function isObject(x) {
263
- return Object(x) === x;
264
- }
265
- })(typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof commonjsGlobal !== 'undefined' ? commonjsGlobal : commonjsGlobal);
266
-
267
- var npo_src = createCommonjsModule(function (module) {
268
- /*! Native Promise Only
269
- v0.8.1 (c) Kyle Simpson
270
- MIT License: http://getify.mit-license.org
271
- */
272
- (function UMD(name, context, definition) {
273
- // special form of UMD for polyfilling across evironments
274
- context[name] = context[name] || definition();
275
-
276
- if ( module.exports) {
277
- module.exports = context[name];
278
- }
279
- })("Promise", typeof commonjsGlobal != "undefined" ? commonjsGlobal : commonjsGlobal, function DEF() {
280
-
281
- var builtInProp,
282
- cycle,
283
- scheduling_queue,
284
- ToString = Object.prototype.toString,
285
- timer = typeof setImmediate != "undefined" ? function timer(fn) {
286
- return setImmediate(fn);
287
- } : setTimeout; // dammit, IE8.
288
-
289
- try {
290
- Object.defineProperty({}, "x", {});
291
-
292
- builtInProp = function builtInProp(obj, name, val, config) {
293
- return Object.defineProperty(obj, name, {
294
- value: val,
295
- writable: true,
296
- configurable: config !== false
297
- });
298
- };
299
- } catch (err) {
300
- builtInProp = function builtInProp(obj, name, val) {
301
- obj[name] = val;
302
- return obj;
303
- };
304
- } // Note: using a queue instead of array for efficiency
305
-
306
-
307
- scheduling_queue = function Queue() {
308
- var first, last, item;
309
-
310
- function Item(fn, self) {
311
- this.fn = fn;
312
- this.self = self;
313
- this.next = void 0;
314
- }
315
-
316
- return {
317
- add: function add(fn, self) {
318
- item = new Item(fn, self);
319
-
320
- if (last) {
321
- last.next = item;
322
- } else {
323
- first = item;
324
- }
325
-
326
- last = item;
327
- item = void 0;
328
- },
329
- drain: function drain() {
330
- var f = first;
331
- first = last = cycle = void 0;
332
-
333
- while (f) {
334
- f.fn.call(f.self);
335
- f = f.next;
336
- }
337
- }
338
- };
339
- }();
340
-
341
- function schedule(fn, self) {
342
- scheduling_queue.add(fn, self);
343
-
344
- if (!cycle) {
345
- cycle = timer(scheduling_queue.drain);
346
- }
347
- } // promise duck typing
348
-
349
-
350
- function isThenable(o) {
351
- var _then,
352
- o_type = typeof o;
353
-
354
- if (o != null && (o_type == "object" || o_type == "function")) {
355
- _then = o.then;
356
- }
357
-
358
- return typeof _then == "function" ? _then : false;
359
- }
360
-
361
- function notify() {
362
- for (var i = 0; i < this.chain.length; i++) {
363
- notifyIsolated(this, this.state === 1 ? this.chain[i].success : this.chain[i].failure, this.chain[i]);
364
- }
365
-
366
- this.chain.length = 0;
367
- } // NOTE: This is a separate function to isolate
368
- // the `try..catch` so that other code can be
369
- // optimized better
370
-
371
-
372
- function notifyIsolated(self, cb, chain) {
373
- var ret, _then;
374
-
375
- try {
376
- if (cb === false) {
377
- chain.reject(self.msg);
378
- } else {
379
- if (cb === true) {
380
- ret = self.msg;
381
- } else {
382
- ret = cb.call(void 0, self.msg);
383
- }
384
-
385
- if (ret === chain.promise) {
386
- chain.reject(TypeError("Promise-chain cycle"));
387
- } else if (_then = isThenable(ret)) {
388
- _then.call(ret, chain.resolve, chain.reject);
389
- } else {
390
- chain.resolve(ret);
391
- }
392
- }
393
- } catch (err) {
394
- chain.reject(err);
395
- }
396
- }
397
-
398
- function resolve(msg) {
399
- var _then,
400
- self = this; // already triggered?
401
-
402
-
403
- if (self.triggered) {
404
- return;
405
- }
406
-
407
- self.triggered = true; // unwrap
408
-
409
- if (self.def) {
410
- self = self.def;
411
- }
412
-
413
- try {
414
- if (_then = isThenable(msg)) {
415
- schedule(function () {
416
- var def_wrapper = new MakeDefWrapper(self);
417
-
418
- try {
419
- _then.call(msg, function $resolve$() {
420
- resolve.apply(def_wrapper, arguments);
421
- }, function $reject$() {
422
- reject.apply(def_wrapper, arguments);
423
- });
424
- } catch (err) {
425
- reject.call(def_wrapper, err);
426
- }
427
- });
428
- } else {
429
- self.msg = msg;
430
- self.state = 1;
431
-
432
- if (self.chain.length > 0) {
433
- schedule(notify, self);
434
- }
435
- }
436
- } catch (err) {
437
- reject.call(new MakeDefWrapper(self), err);
438
- }
439
- }
440
-
441
- function reject(msg) {
442
- var self = this; // already triggered?
443
-
444
- if (self.triggered) {
445
- return;
446
- }
447
-
448
- self.triggered = true; // unwrap
449
-
450
- if (self.def) {
451
- self = self.def;
452
- }
453
-
454
- self.msg = msg;
455
- self.state = 2;
456
-
457
- if (self.chain.length > 0) {
458
- schedule(notify, self);
459
- }
460
- }
461
-
462
- function iteratePromises(Constructor, arr, resolver, rejecter) {
463
- for (var idx = 0; idx < arr.length; idx++) {
464
- (function IIFE(idx) {
465
- Constructor.resolve(arr[idx]).then(function $resolver$(msg) {
466
- resolver(idx, msg);
467
- }, rejecter);
468
- })(idx);
469
- }
470
- }
471
-
472
- function MakeDefWrapper(self) {
473
- this.def = self;
474
- this.triggered = false;
475
- }
476
-
477
- function MakeDef(self) {
478
- this.promise = self;
479
- this.state = 0;
480
- this.triggered = false;
481
- this.chain = [];
482
- this.msg = void 0;
483
- }
484
-
485
- function Promise(executor) {
486
- if (typeof executor != "function") {
487
- throw TypeError("Not a function");
488
- }
489
-
490
- if (this.__NPO__ !== 0) {
491
- throw TypeError("Not a promise");
492
- } // instance shadowing the inherited "brand"
493
- // to signal an already "initialized" promise
494
-
495
-
496
- this.__NPO__ = 1;
497
- var def = new MakeDef(this);
498
-
499
- this["then"] = function then(success, failure) {
500
- var o = {
501
- success: typeof success == "function" ? success : true,
502
- failure: typeof failure == "function" ? failure : false
503
- }; // Note: `then(..)` itself can be borrowed to be used against
504
- // a different promise constructor for making the chained promise,
505
- // by substituting a different `this` binding.
506
-
507
- o.promise = new this.constructor(function extractChain(resolve, reject) {
508
- if (typeof resolve != "function" || typeof reject != "function") {
509
- throw TypeError("Not a function");
510
- }
511
-
512
- o.resolve = resolve;
513
- o.reject = reject;
514
- });
515
- def.chain.push(o);
516
-
517
- if (def.state !== 0) {
518
- schedule(notify, def);
519
- }
520
-
521
- return o.promise;
522
- };
523
-
524
- this["catch"] = function $catch$(failure) {
525
- return this.then(void 0, failure);
526
- };
527
-
528
- try {
529
- executor.call(void 0, function publicResolve(msg) {
530
- resolve.call(def, msg);
531
- }, function publicReject(msg) {
532
- reject.call(def, msg);
533
- });
534
- } catch (err) {
535
- reject.call(def, err);
536
- }
537
- }
538
-
539
- var PromisePrototype = builtInProp({}, "constructor", Promise,
540
- /*configurable=*/
541
- false); // Note: Android 4 cannot use `Object.defineProperty(..)` here
542
-
543
- Promise.prototype = PromisePrototype; // built-in "brand" to signal an "uninitialized" promise
544
-
545
- builtInProp(PromisePrototype, "__NPO__", 0,
546
- /*configurable=*/
547
- false);
548
- builtInProp(Promise, "resolve", function Promise$resolve(msg) {
549
- var Constructor = this; // spec mandated checks
550
- // note: best "isPromise" check that's practical for now
551
-
552
- if (msg && typeof msg == "object" && msg.__NPO__ === 1) {
553
- return msg;
554
- }
555
-
556
- return new Constructor(function executor(resolve, reject) {
557
- if (typeof resolve != "function" || typeof reject != "function") {
558
- throw TypeError("Not a function");
559
- }
560
-
561
- resolve(msg);
562
- });
563
- });
564
- builtInProp(Promise, "reject", function Promise$reject(msg) {
565
- return new this(function executor(resolve, reject) {
566
- if (typeof resolve != "function" || typeof reject != "function") {
567
- throw TypeError("Not a function");
568
- }
569
-
570
- reject(msg);
571
- });
572
- });
573
- builtInProp(Promise, "all", function Promise$all(arr) {
574
- var Constructor = this; // spec mandated checks
575
-
576
- if (ToString.call(arr) != "[object Array]") {
577
- return Constructor.reject(TypeError("Not an array"));
578
- }
579
-
580
- if (arr.length === 0) {
581
- return Constructor.resolve([]);
582
- }
583
-
584
- return new Constructor(function executor(resolve, reject) {
585
- if (typeof resolve != "function" || typeof reject != "function") {
586
- throw TypeError("Not a function");
587
- }
588
-
589
- var len = arr.length,
590
- msgs = Array(len),
591
- count = 0;
592
- iteratePromises(Constructor, arr, function resolver(idx, msg) {
593
- msgs[idx] = msg;
594
-
595
- if (++count === len) {
596
- resolve(msgs);
597
- }
598
- }, reject);
599
- });
600
- });
601
- builtInProp(Promise, "race", function Promise$race(arr) {
602
- var Constructor = this; // spec mandated checks
603
-
604
- if (ToString.call(arr) != "[object Array]") {
605
- return Constructor.reject(TypeError("Not an array"));
606
- }
607
-
608
- return new Constructor(function executor(resolve, reject) {
609
- if (typeof resolve != "function" || typeof reject != "function") {
610
- throw TypeError("Not a function");
611
- }
612
-
613
- iteratePromises(Constructor, arr, function resolver(idx, msg) {
614
- resolve(msg);
615
- }, reject);
616
- });
617
- });
618
- return Promise;
619
- });
620
- });
621
-
622
- /**
623
- * @module lib/callbacks
624
- */
625
- var callbackMap = new WeakMap();
626
- /**
627
- * Store a callback for a method or event for a player.
628
- *
629
- * @param {Player} player The player object.
630
- * @param {string} name The method or event name.
631
- * @param {(function(this:Player, *): void|{resolve: function, reject: function})} callback
632
- * The callback to call or an object with resolve and reject functions for a promise.
633
- * @return {void}
634
- */
635
-
636
- function storeCallback(player, name, callback) {
637
- var playerCallbacks = callbackMap.get(player.element) || {};
638
-
639
- if (!(name in playerCallbacks)) {
640
- playerCallbacks[name] = [];
641
- }
642
-
643
- playerCallbacks[name].push(callback);
644
- callbackMap.set(player.element, playerCallbacks);
645
- }
646
- /**
647
- * Get the callbacks for a player and event or method.
648
- *
649
- * @param {Player} player The player object.
650
- * @param {string} name The method or event name
651
- * @return {function[]}
652
- */
653
-
654
- function getCallbacks(player, name) {
655
- var playerCallbacks = callbackMap.get(player.element) || {};
656
- return playerCallbacks[name] || [];
657
- }
658
- /**
659
- * Remove a stored callback for a method or event for a player.
660
- *
661
- * @param {Player} player The player object.
662
- * @param {string} name The method or event name
663
- * @param {function} [callback] The specific callback to remove.
664
- * @return {boolean} Was this the last callback?
665
- */
666
-
667
- function removeCallback(player, name, callback) {
668
- var playerCallbacks = callbackMap.get(player.element) || {};
669
-
670
- if (!playerCallbacks[name]) {
671
- return true;
672
- } // If no callback is passed, remove all callbacks for the event
673
-
674
-
675
- if (!callback) {
676
- playerCallbacks[name] = [];
677
- callbackMap.set(player.element, playerCallbacks);
678
- return true;
679
- }
680
-
681
- var index = playerCallbacks[name].indexOf(callback);
682
-
683
- if (index !== -1) {
684
- playerCallbacks[name].splice(index, 1);
685
- }
686
-
687
- callbackMap.set(player.element, playerCallbacks);
688
- return playerCallbacks[name] && playerCallbacks[name].length === 0;
689
- }
690
- /**
691
- * Return the first stored callback for a player and event or method.
692
- *
693
- * @param {Player} player The player object.
694
- * @param {string} name The method or event name.
695
- * @return {function} The callback, or false if there were none
696
- */
697
-
698
- function shiftCallbacks(player, name) {
699
- var playerCallbacks = getCallbacks(player, name);
700
-
701
- if (playerCallbacks.length < 1) {
702
- return false;
703
- }
704
-
705
- var callback = playerCallbacks.shift();
706
- removeCallback(player, name, callback);
707
- return callback;
708
- }
709
- /**
710
- * Move callbacks associated with an element to another element.
711
- *
712
- * @param {HTMLElement} oldElement The old element.
713
- * @param {HTMLElement} newElement The new element.
714
- * @return {void}
715
- */
716
-
717
- function swapCallbacks(oldElement, newElement) {
718
- var playerCallbacks = callbackMap.get(oldElement);
719
- callbackMap.set(newElement, playerCallbacks);
720
- callbackMap.delete(oldElement);
721
- }
722
-
723
- /**
724
- * @module lib/embed
725
- */
726
- var oEmbedParameters = ['autopause', 'autoplay', 'background', 'byline', 'color', 'controls', 'dnt', 'height', 'id', 'loop', 'maxheight', 'maxwidth', 'muted', 'playsinline', 'portrait', 'responsive', 'speed', 'texttrack', 'title', 'transparent', 'url', 'width'];
727
- /**
728
- * Get the 'data-vimeo'-prefixed attributes from an element as an object.
729
- *
730
- * @param {HTMLElement} element The element.
731
- * @param {Object} [defaults={}] The default values to use.
732
- * @return {Object<string, string>}
733
- */
734
-
735
- function getOEmbedParameters(element) {
736
- var defaults = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
737
- return oEmbedParameters.reduce(function (params, param) {
738
- var value = element.getAttribute("data-vimeo-".concat(param));
739
-
740
- if (value || value === '') {
741
- params[param] = value === '' ? 1 : value;
742
- }
743
-
744
- return params;
745
- }, defaults);
746
- }
747
- /**
748
- * Create an embed from oEmbed data inside an element.
749
- *
750
- * @param {object} data The oEmbed data.
751
- * @param {HTMLElement} element The element to put the iframe in.
752
- * @return {HTMLIFrameElement} The iframe embed.
753
- */
754
-
755
- function createEmbed(_ref, element) {
756
- var html = _ref.html;
757
-
758
- if (!element) {
759
- throw new TypeError('An element must be provided');
760
- }
761
-
762
- if (element.getAttribute('data-vimeo-initialized') !== null) {
763
- return element.querySelector('iframe');
764
- }
765
-
766
- var div = document.createElement('div');
767
- div.innerHTML = html;
768
- element.appendChild(div.firstChild);
769
- element.setAttribute('data-vimeo-initialized', 'true');
770
- return element.querySelector('iframe');
771
- }
772
- /**
773
- * Make an oEmbed call for the specified URL.
774
- *
775
- * @param {string} videoUrl The vimeo.com url for the video.
776
- * @param {Object} [params] Parameters to pass to oEmbed.
777
- * @param {HTMLElement} element The element.
778
- * @return {Promise}
779
- */
780
-
781
- function getOEmbedData(videoUrl) {
782
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
783
- var element = arguments.length > 2 ? arguments[2] : undefined;
784
- return new Promise(function (resolve, reject) {
785
- if (!isVimeoUrl(videoUrl)) {
786
- throw new TypeError("\u201C".concat(videoUrl, "\u201D is not a vimeo.com url."));
787
- }
788
-
789
- var url = "https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(videoUrl));
790
-
791
- for (var param in params) {
792
- if (params.hasOwnProperty(param)) {
793
- url += "&".concat(param, "=").concat(encodeURIComponent(params[param]));
794
- }
795
- }
796
-
797
- var xhr = 'XDomainRequest' in window ? new XDomainRequest() : new XMLHttpRequest();
798
- xhr.open('GET', url, true);
799
-
800
- xhr.onload = function () {
801
- if (xhr.status === 404) {
802
- reject(new Error("\u201C".concat(videoUrl, "\u201D was not found.")));
803
- return;
804
- }
805
-
806
- if (xhr.status === 403) {
807
- reject(new Error("\u201C".concat(videoUrl, "\u201D is not embeddable.")));
808
- return;
809
- }
810
-
811
- try {
812
- var json = JSON.parse(xhr.responseText); // Check api response for 403 on oembed
813
-
814
- if (json.domain_status_code === 403) {
815
- // We still want to create the embed to give users visual feedback
816
- createEmbed(json, element);
817
- reject(new Error("\u201C".concat(videoUrl, "\u201D is not embeddable.")));
818
- return;
819
- }
820
-
821
- resolve(json);
822
- } catch (error) {
823
- reject(error);
824
- }
825
- };
826
-
827
- xhr.onerror = function () {
828
- var status = xhr.status ? " (".concat(xhr.status, ")") : '';
829
- reject(new Error("There was an error fetching the embed code from Vimeo".concat(status, ".")));
830
- };
831
-
832
- xhr.send();
833
- });
834
- }
835
- /**
836
- * Initialize all embeds within a specific element
837
- *
838
- * @param {HTMLElement} [parent=document] The parent element.
839
- * @return {void}
840
- */
841
-
842
- function initializeEmbeds() {
843
- var parent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
844
- var elements = [].slice.call(parent.querySelectorAll('[data-vimeo-id], [data-vimeo-url]'));
845
-
846
- var handleError = function handleError(error) {
847
- if ('console' in window && console.error) {
848
- console.error("There was an error creating an embed: ".concat(error));
849
- }
850
- };
851
-
852
- elements.forEach(function (element) {
853
- try {
854
- // Skip any that have data-vimeo-defer
855
- if (element.getAttribute('data-vimeo-defer') !== null) {
856
- return;
857
- }
858
-
859
- var params = getOEmbedParameters(element);
860
- var url = getVimeoUrl(params);
861
- getOEmbedData(url, params, element).then(function (data) {
862
- return createEmbed(data, element);
863
- }).catch(handleError);
864
- } catch (error) {
865
- handleError(error);
866
- }
867
- });
868
- }
869
- /**
870
- * Resize embeds when messaged by the player.
871
- *
872
- * @param {HTMLElement} [parent=document] The parent element.
873
- * @return {void}
874
- */
875
-
876
- function resizeEmbeds() {
877
- var parent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
878
-
879
- // Prevent execution if users include the player.js script multiple times.
880
- if (window.VimeoPlayerResizeEmbeds_) {
881
- return;
882
- }
883
-
884
- window.VimeoPlayerResizeEmbeds_ = true;
885
-
886
- var onMessage = function onMessage(event) {
887
- if (!isVimeoUrl(event.origin)) {
888
- return;
889
- } // 'spacechange' is fired only on embeds with cards
890
-
891
-
892
- if (!event.data || event.data.event !== 'spacechange') {
893
- return;
894
- }
895
-
896
- var iframes = parent.querySelectorAll('iframe');
897
-
898
- for (var i = 0; i < iframes.length; i++) {
899
- if (iframes[i].contentWindow !== event.source) {
900
- continue;
901
- } // Change padding-bottom of the enclosing div to accommodate
902
- // card carousel without distorting aspect ratio
903
-
904
-
905
- var space = iframes[i].parentElement;
906
- space.style.paddingBottom = "".concat(event.data.data[0].bottom, "px");
907
- break;
908
- }
909
- };
910
-
911
- window.addEventListener('message', onMessage);
912
- }
913
-
914
- /**
915
- * @module lib/postmessage
916
- */
917
- /**
918
- * Parse a message received from postMessage.
919
- *
920
- * @param {*} data The data received from postMessage.
921
- * @return {object}
922
- */
923
-
924
- function parseMessageData(data) {
925
- if (typeof data === 'string') {
926
- try {
927
- data = JSON.parse(data);
928
- } catch (error) {
929
- // If the message cannot be parsed, throw the error as a warning
930
- console.warn(error);
931
- return {};
932
- }
933
- }
934
-
935
- return data;
936
- }
937
- /**
938
- * Post a message to the specified target.
939
- *
940
- * @param {Player} player The player object to use.
941
- * @param {string} method The API method to call.
942
- * @param {object} params The parameters to send to the player.
943
- * @return {void}
944
- */
945
-
946
- function postMessage(player, method, params) {
947
- if (!player.element.contentWindow || !player.element.contentWindow.postMessage) {
948
- return;
949
- }
950
-
951
- var message = {
952
- method: method
953
- };
954
-
955
- if (params !== undefined) {
956
- message.value = params;
957
- } // IE 8 and 9 do not support passing messages, so stringify them
958
-
959
-
960
- var ieVersion = parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/, '$1'));
961
-
962
- if (ieVersion >= 8 && ieVersion < 10) {
963
- message = JSON.stringify(message);
964
- }
965
-
966
- player.element.contentWindow.postMessage(message, player.origin);
967
- }
968
- /**
969
- * Parse the data received from a message event.
970
- *
971
- * @param {Player} player The player that received the message.
972
- * @param {(Object|string)} data The message data. Strings will be parsed into JSON.
973
- * @return {void}
974
- */
975
-
976
- function processData(player, data) {
977
- data = parseMessageData(data);
978
- var callbacks = [];
979
- var param;
980
-
981
- if (data.event) {
982
- if (data.event === 'error') {
983
- var promises = getCallbacks(player, data.data.method);
984
- promises.forEach(function (promise) {
985
- var error = new Error(data.data.message);
986
- error.name = data.data.name;
987
- promise.reject(error);
988
- removeCallback(player, data.data.method, promise);
989
- });
990
- }
991
-
992
- callbacks = getCallbacks(player, "event:".concat(data.event));
993
- param = data.data;
994
- } else if (data.method) {
995
- var callback = shiftCallbacks(player, data.method);
996
-
997
- if (callback) {
998
- callbacks.push(callback);
999
- param = data.value;
1000
- }
1001
- }
1002
-
1003
- callbacks.forEach(function (callback) {
1004
- try {
1005
- if (typeof callback === 'function') {
1006
- callback.call(player, param);
1007
- return;
1008
- }
1009
-
1010
- callback.resolve(param);
1011
- } catch (e) {// empty
1012
- }
1013
- });
1014
- }
1015
-
1016
- var playerMap = new WeakMap();
1017
- var readyMap = new WeakMap();
1018
-
1019
- var Player =
1020
- /*#__PURE__*/
1021
- function () {
1022
- /**
1023
- * Create a Player.
1024
- *
1025
- * @param {(HTMLIFrameElement|HTMLElement|string|jQuery)} element A reference to the Vimeo
1026
- * player iframe, and id, or a jQuery object.
1027
- * @param {object} [options] oEmbed parameters to use when creating an embed in the element.
1028
- * @return {Player}
1029
- */
1030
- function Player(element) {
1031
- var _this = this;
1032
-
1033
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1034
-
1035
- _classCallCheck(this, Player);
1036
-
1037
- /* global jQuery */
1038
- if (window.jQuery && element instanceof jQuery) {
1039
- if (element.length > 1 && window.console && console.warn) {
1040
- console.warn('A jQuery object with multiple elements was passed, using the first element.');
1041
- }
1042
-
1043
- element = element[0];
1044
- } // Find an element by ID
1045
-
1046
-
1047
- if (typeof document !== 'undefined' && typeof element === 'string') {
1048
- element = document.getElementById(element);
1049
- } // Not an element!
1050
-
1051
-
1052
- if (!isDomElement(element)) {
1053
- throw new TypeError('You must pass either a valid element or a valid id.');
1054
- } // Already initialized an embed in this div, so grab the iframe
1055
-
1056
-
1057
- if (element.nodeName !== 'IFRAME') {
1058
- var iframe = element.querySelector('iframe');
1059
-
1060
- if (iframe) {
1061
- element = iframe;
1062
- }
1063
- } // iframe url is not a Vimeo url
1064
-
1065
-
1066
- if (element.nodeName === 'IFRAME' && !isVimeoUrl(element.getAttribute('src') || '')) {
1067
- throw new Error('The player element passed isn’t a Vimeo embed.');
1068
- } // If there is already a player object in the map, return that
1069
-
1070
-
1071
- if (playerMap.has(element)) {
1072
- return playerMap.get(element);
1073
- }
1074
-
1075
- this._window = element.ownerDocument.defaultView;
1076
- this.element = element;
1077
- this.origin = '*';
1078
- var readyPromise = new npo_src(function (resolve, reject) {
1079
- _this._onMessage = function (event) {
1080
- if (!isVimeoUrl(event.origin) || _this.element.contentWindow !== event.source) {
1081
- return;
1082
- }
1083
-
1084
- if (_this.origin === '*') {
1085
- _this.origin = event.origin;
1086
- }
1087
-
1088
- var data = parseMessageData(event.data);
1089
- var isError = data && data.event === 'error';
1090
- var isReadyError = isError && data.data && data.data.method === 'ready';
1091
-
1092
- if (isReadyError) {
1093
- var error = new Error(data.data.message);
1094
- error.name = data.data.name;
1095
- reject(error);
1096
- return;
1097
- }
1098
-
1099
- var isReadyEvent = data && data.event === 'ready';
1100
- var isPingResponse = data && data.method === 'ping';
1101
-
1102
- if (isReadyEvent || isPingResponse) {
1103
- _this.element.setAttribute('data-ready', 'true');
1104
-
1105
- resolve();
1106
- return;
1107
- }
1108
-
1109
- processData(_this, data);
1110
- };
1111
-
1112
- _this._window.addEventListener('message', _this._onMessage);
1113
-
1114
- if (_this.element.nodeName !== 'IFRAME') {
1115
- var params = getOEmbedParameters(element, options);
1116
- var url = getVimeoUrl(params);
1117
- getOEmbedData(url, params, element).then(function (data) {
1118
- var iframe = createEmbed(data, element); // Overwrite element with the new iframe,
1119
- // but store reference to the original element
1120
-
1121
- _this.element = iframe;
1122
- _this._originalElement = element;
1123
- swapCallbacks(element, iframe);
1124
- playerMap.set(_this.element, _this);
1125
- return data;
1126
- }).catch(reject);
1127
- }
1128
- }); // Store a copy of this Player in the map
1129
-
1130
- readyMap.set(this, readyPromise);
1131
- playerMap.set(this.element, this); // Send a ping to the iframe so the ready promise will be resolved if
1132
- // the player is already ready.
1133
-
1134
- if (this.element.nodeName === 'IFRAME') {
1135
- postMessage(this, 'ping');
1136
- }
1137
-
1138
- return this;
1139
- }
1140
- /**
1141
- * Get a promise for a method.
1142
- *
1143
- * @param {string} name The API method to call.
1144
- * @param {Object} [args={}] Arguments to send via postMessage.
1145
- * @return {Promise}
1146
- */
1147
-
1148
-
1149
- _createClass(Player, [{
1150
- key: "callMethod",
1151
- value: function callMethod(name) {
1152
- var _this2 = this;
1153
-
1154
- var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1155
- return new npo_src(function (resolve, reject) {
1156
- // We are storing the resolve/reject handlers to call later, so we
1157
- // can’t return here.
1158
- // eslint-disable-next-line promise/always-return
1159
- return _this2.ready().then(function () {
1160
- storeCallback(_this2, name, {
1161
- resolve: resolve,
1162
- reject: reject
1163
- });
1164
- postMessage(_this2, name, args);
1165
- }).catch(reject);
1166
- });
1167
- }
1168
- /**
1169
- * Get a promise for the value of a player property.
1170
- *
1171
- * @param {string} name The property name
1172
- * @return {Promise}
1173
- */
1174
-
1175
- }, {
1176
- key: "get",
1177
- value: function get(name) {
1178
- var _this3 = this;
1179
-
1180
- return new npo_src(function (resolve, reject) {
1181
- name = getMethodName(name, 'get'); // We are storing the resolve/reject handlers to call later, so we
1182
- // can’t return here.
1183
- // eslint-disable-next-line promise/always-return
1184
-
1185
- return _this3.ready().then(function () {
1186
- storeCallback(_this3, name, {
1187
- resolve: resolve,
1188
- reject: reject
1189
- });
1190
- postMessage(_this3, name);
1191
- }).catch(reject);
1192
- });
1193
- }
1194
- /**
1195
- * Get a promise for setting the value of a player property.
1196
- *
1197
- * @param {string} name The API method to call.
1198
- * @param {mixed} value The value to set.
1199
- * @return {Promise}
1200
- */
1201
-
1202
- }, {
1203
- key: "set",
1204
- value: function set(name, value) {
1205
- var _this4 = this;
1206
-
1207
- return new npo_src(function (resolve, reject) {
1208
- name = getMethodName(name, 'set');
1209
-
1210
- if (value === undefined || value === null) {
1211
- throw new TypeError('There must be a value to set.');
1212
- } // We are storing the resolve/reject handlers to call later, so we
1213
- // can’t return here.
1214
- // eslint-disable-next-line promise/always-return
1215
-
1216
-
1217
- return _this4.ready().then(function () {
1218
- storeCallback(_this4, name, {
1219
- resolve: resolve,
1220
- reject: reject
1221
- });
1222
- postMessage(_this4, name, value);
1223
- }).catch(reject);
1224
- });
1225
- }
1226
- /**
1227
- * Add an event listener for the specified event. Will call the
1228
- * callback with a single parameter, `data`, that contains the data for
1229
- * that event.
1230
- *
1231
- * @param {string} eventName The name of the event.
1232
- * @param {function(*)} callback The function to call when the event fires.
1233
- * @return {void}
1234
- */
1235
-
1236
- }, {
1237
- key: "on",
1238
- value: function on(eventName, callback) {
1239
- if (!eventName) {
1240
- throw new TypeError('You must pass an event name.');
1241
- }
1242
-
1243
- if (!callback) {
1244
- throw new TypeError('You must pass a callback function.');
1245
- }
1246
-
1247
- if (typeof callback !== 'function') {
1248
- throw new TypeError('The callback must be a function.');
1249
- }
1250
-
1251
- var callbacks = getCallbacks(this, "event:".concat(eventName));
1252
-
1253
- if (callbacks.length === 0) {
1254
- this.callMethod('addEventListener', eventName).catch(function () {// Ignore the error. There will be an error event fired that
1255
- // will trigger the error callback if they are listening.
1256
- });
1257
- }
1258
-
1259
- storeCallback(this, "event:".concat(eventName), callback);
1260
- }
1261
- /**
1262
- * Remove an event listener for the specified event. Will remove all
1263
- * listeners for that event if a `callback` isn’t passed, or only that
1264
- * specific callback if it is passed.
1265
- *
1266
- * @param {string} eventName The name of the event.
1267
- * @param {function} [callback] The specific callback to remove.
1268
- * @return {void}
1269
- */
1270
-
1271
- }, {
1272
- key: "off",
1273
- value: function off(eventName, callback) {
1274
- if (!eventName) {
1275
- throw new TypeError('You must pass an event name.');
1276
- }
1277
-
1278
- if (callback && typeof callback !== 'function') {
1279
- throw new TypeError('The callback must be a function.');
1280
- }
1281
-
1282
- var lastCallback = removeCallback(this, "event:".concat(eventName), callback); // If there are no callbacks left, remove the listener
1283
-
1284
- if (lastCallback) {
1285
- this.callMethod('removeEventListener', eventName).catch(function (e) {// Ignore the error. There will be an error event fired that
1286
- // will trigger the error callback if they are listening.
1287
- });
1288
- }
1289
- }
1290
- /**
1291
- * A promise to load a new video.
1292
- *
1293
- * @promise LoadVideoPromise
1294
- * @fulfill {number} The video with this id successfully loaded.
1295
- * @reject {TypeError} The id was not a number.
1296
- */
1297
-
1298
- /**
1299
- * Load a new video into this embed. The promise will be resolved if
1300
- * the video is successfully loaded, or it will be rejected if it could
1301
- * not be loaded.
1302
- *
1303
- * @param {number|object} options The id of the video or an object with embed options.
1304
- * @return {LoadVideoPromise}
1305
- */
1306
-
1307
- }, {
1308
- key: "loadVideo",
1309
- value: function loadVideo(options) {
1310
- return this.callMethod('loadVideo', options);
1311
- }
1312
- /**
1313
- * A promise to perform an action when the Player is ready.
1314
- *
1315
- * @todo document errors
1316
- * @promise LoadVideoPromise
1317
- * @fulfill {void}
1318
- */
1319
-
1320
- /**
1321
- * Trigger a function when the player iframe has initialized. You do not
1322
- * need to wait for `ready` to trigger to begin adding event listeners
1323
- * or calling other methods.
1324
- *
1325
- * @return {ReadyPromise}
1326
- */
1327
-
1328
- }, {
1329
- key: "ready",
1330
- value: function ready() {
1331
- var readyPromise = readyMap.get(this) || new npo_src(function (resolve, reject) {
1332
- reject(new Error('Unknown player. Probably unloaded.'));
1333
- });
1334
- return npo_src.resolve(readyPromise);
1335
- }
1336
- /**
1337
- * A promise to add a cue point to the player.
1338
- *
1339
- * @promise AddCuePointPromise
1340
- * @fulfill {string} The id of the cue point to use for removeCuePoint.
1341
- * @reject {RangeError} the time was less than 0 or greater than the
1342
- * video’s duration.
1343
- * @reject {UnsupportedError} Cue points are not supported with the current
1344
- * player or browser.
1345
- */
1346
-
1347
- /**
1348
- * Add a cue point to the player.
1349
- *
1350
- * @param {number} time The time for the cue point.
1351
- * @param {object} [data] Arbitrary data to be returned with the cue point.
1352
- * @return {AddCuePointPromise}
1353
- */
1354
-
1355
- }, {
1356
- key: "addCuePoint",
1357
- value: function addCuePoint(time) {
1358
- var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1359
- return this.callMethod('addCuePoint', {
1360
- time: time,
1361
- data: data
1362
- });
1363
- }
1364
- /**
1365
- * A promise to remove a cue point from the player.
1366
- *
1367
- * @promise AddCuePointPromise
1368
- * @fulfill {string} The id of the cue point that was removed.
1369
- * @reject {InvalidCuePoint} The cue point with the specified id was not
1370
- * found.
1371
- * @reject {UnsupportedError} Cue points are not supported with the current
1372
- * player or browser.
1373
- */
1374
-
1375
- /**
1376
- * Remove a cue point from the video.
1377
- *
1378
- * @param {string} id The id of the cue point to remove.
1379
- * @return {RemoveCuePointPromise}
1380
- */
1381
-
1382
- }, {
1383
- key: "removeCuePoint",
1384
- value: function removeCuePoint(id) {
1385
- return this.callMethod('removeCuePoint', id);
1386
- }
1387
- /**
1388
- * A representation of a text track on a video.
1389
- *
1390
- * @typedef {Object} VimeoTextTrack
1391
- * @property {string} language The ISO language code.
1392
- * @property {string} kind The kind of track it is (captions or subtitles).
1393
- * @property {string} label The human‐readable label for the track.
1394
- */
1395
-
1396
- /**
1397
- * A promise to enable a text track.
1398
- *
1399
- * @promise EnableTextTrackPromise
1400
- * @fulfill {VimeoTextTrack} The text track that was enabled.
1401
- * @reject {InvalidTrackLanguageError} No track was available with the
1402
- * specified language.
1403
- * @reject {InvalidTrackError} No track was available with the specified
1404
- * language and kind.
1405
- */
1406
-
1407
- /**
1408
- * Enable the text track with the specified language, and optionally the
1409
- * specified kind (captions or subtitles).
1410
- *
1411
- * When set via the API, the track language will not change the viewer’s
1412
- * stored preference.
1413
- *
1414
- * @param {string} language The two‐letter language code.
1415
- * @param {string} [kind] The kind of track to enable (captions or subtitles).
1416
- * @return {EnableTextTrackPromise}
1417
- */
1418
-
1419
- }, {
1420
- key: "enableTextTrack",
1421
- value: function enableTextTrack(language, kind) {
1422
- if (!language) {
1423
- throw new TypeError('You must pass a language.');
1424
- }
1425
-
1426
- return this.callMethod('enableTextTrack', {
1427
- language: language,
1428
- kind: kind
1429
- });
1430
- }
1431
- /**
1432
- * A promise to disable the active text track.
1433
- *
1434
- * @promise DisableTextTrackPromise
1435
- * @fulfill {void} The track was disabled.
1436
- */
1437
-
1438
- /**
1439
- * Disable the currently-active text track.
1440
- *
1441
- * @return {DisableTextTrackPromise}
1442
- */
1443
-
1444
- }, {
1445
- key: "disableTextTrack",
1446
- value: function disableTextTrack() {
1447
- return this.callMethod('disableTextTrack');
1448
- }
1449
- /**
1450
- * A promise to pause the video.
1451
- *
1452
- * @promise PausePromise
1453
- * @fulfill {void} The video was paused.
1454
- */
1455
-
1456
- /**
1457
- * Pause the video if it’s playing.
1458
- *
1459
- * @return {PausePromise}
1460
- */
1461
-
1462
- }, {
1463
- key: "pause",
1464
- value: function pause() {
1465
- return this.callMethod('pause');
1466
- }
1467
- /**
1468
- * A promise to play the video.
1469
- *
1470
- * @promise PlayPromise
1471
- * @fulfill {void} The video was played.
1472
- */
1473
-
1474
- /**
1475
- * Play the video if it’s paused. **Note:** on iOS and some other
1476
- * mobile devices, you cannot programmatically trigger play. Once the
1477
- * viewer has tapped on the play button in the player, however, you
1478
- * will be able to use this function.
1479
- *
1480
- * @return {PlayPromise}
1481
- */
1482
-
1483
- }, {
1484
- key: "play",
1485
- value: function play() {
1486
- return this.callMethod('play');
1487
- }
1488
- /**
1489
- * A promise to unload the video.
1490
- *
1491
- * @promise UnloadPromise
1492
- * @fulfill {void} The video was unloaded.
1493
- */
1494
-
1495
- /**
1496
- * Return the player to its initial state.
1497
- *
1498
- * @return {UnloadPromise}
1499
- */
1500
-
1501
- }, {
1502
- key: "unload",
1503
- value: function unload() {
1504
- return this.callMethod('unload');
1505
- }
1506
- /**
1507
- * Cleanup the player and remove it from the DOM
1508
- *
1509
- * It won't be usable and a new one should be constructed
1510
- * in order to do any operations.
1511
- *
1512
- * @return {Promise}
1513
- */
1514
-
1515
- }, {
1516
- key: "destroy",
1517
- value: function destroy() {
1518
- var _this5 = this;
1519
-
1520
- return new npo_src(function (resolve) {
1521
- readyMap.delete(_this5);
1522
- playerMap.delete(_this5.element);
1523
-
1524
- if (_this5._originalElement) {
1525
- playerMap.delete(_this5._originalElement);
1526
-
1527
- _this5._originalElement.removeAttribute('data-vimeo-initialized');
1528
- }
1529
-
1530
- if (_this5.element && _this5.element.nodeName === 'IFRAME' && _this5.element.parentNode) {
1531
- _this5.element.parentNode.removeChild(_this5.element);
1532
- }
1533
-
1534
- _this5._window.removeEventListener('message', _this5._onMessage);
1535
-
1536
- resolve();
1537
- });
1538
- }
1539
- /**
1540
- * A promise to get the autopause behavior of the video.
1541
- *
1542
- * @promise GetAutopausePromise
1543
- * @fulfill {boolean} Whether autopause is turned on or off.
1544
- * @reject {UnsupportedError} Autopause is not supported with the current
1545
- * player or browser.
1546
- */
1547
-
1548
- /**
1549
- * Get the autopause behavior for this player.
1550
- *
1551
- * @return {GetAutopausePromise}
1552
- */
1553
-
1554
- }, {
1555
- key: "getAutopause",
1556
- value: function getAutopause() {
1557
- return this.get('autopause');
1558
- }
1559
- /**
1560
- * A promise to set the autopause behavior of the video.
1561
- *
1562
- * @promise SetAutopausePromise
1563
- * @fulfill {boolean} Whether autopause is turned on or off.
1564
- * @reject {UnsupportedError} Autopause is not supported with the current
1565
- * player or browser.
1566
- */
1567
-
1568
- /**
1569
- * Enable or disable the autopause behavior of this player.
1570
- *
1571
- * By default, when another video is played in the same browser, this
1572
- * player will automatically pause. Unless you have a specific reason
1573
- * for doing so, we recommend that you leave autopause set to the
1574
- * default (`true`).
1575
- *
1576
- * @param {boolean} autopause
1577
- * @return {SetAutopausePromise}
1578
- */
1579
-
1580
- }, {
1581
- key: "setAutopause",
1582
- value: function setAutopause(autopause) {
1583
- return this.set('autopause', autopause);
1584
- }
1585
- /**
1586
- * A promise to get the buffered property of the video.
1587
- *
1588
- * @promise GetBufferedPromise
1589
- * @fulfill {Array} Buffered Timeranges converted to an Array.
1590
- */
1591
-
1592
- /**
1593
- * Get the buffered property of the video.
1594
- *
1595
- * @return {GetBufferedPromise}
1596
- */
1597
-
1598
- }, {
1599
- key: "getBuffered",
1600
- value: function getBuffered() {
1601
- return this.get('buffered');
1602
- }
1603
- /**
1604
- * A promise to get the color of the player.
1605
- *
1606
- * @promise GetColorPromise
1607
- * @fulfill {string} The hex color of the player.
1608
- */
1609
-
1610
- /**
1611
- * Get the color for this player.
1612
- *
1613
- * @return {GetColorPromise}
1614
- */
1615
-
1616
- }, {
1617
- key: "getColor",
1618
- value: function getColor() {
1619
- return this.get('color');
1620
- }
1621
- /**
1622
- * A promise to set the color of the player.
1623
- *
1624
- * @promise SetColorPromise
1625
- * @fulfill {string} The color was successfully set.
1626
- * @reject {TypeError} The string was not a valid hex or rgb color.
1627
- * @reject {ContrastError} The color was set, but the contrast is
1628
- * outside of the acceptable range.
1629
- * @reject {EmbedSettingsError} The owner of the player has chosen to
1630
- * use a specific color.
1631
- */
1632
-
1633
- /**
1634
- * Set the color of this player to a hex or rgb string. Setting the
1635
- * color may fail if the owner of the video has set their embed
1636
- * preferences to force a specific color.
1637
- *
1638
- * @param {string} color The hex or rgb color string to set.
1639
- * @return {SetColorPromise}
1640
- */
1641
-
1642
- }, {
1643
- key: "setColor",
1644
- value: function setColor(color) {
1645
- return this.set('color', color);
1646
- }
1647
- /**
1648
- * A representation of a cue point.
1649
- *
1650
- * @typedef {Object} VimeoCuePoint
1651
- * @property {number} time The time of the cue point.
1652
- * @property {object} data The data passed when adding the cue point.
1653
- * @property {string} id The unique id for use with removeCuePoint.
1654
- */
1655
-
1656
- /**
1657
- * A promise to get the cue points of a video.
1658
- *
1659
- * @promise GetCuePointsPromise
1660
- * @fulfill {VimeoCuePoint[]} The cue points added to the video.
1661
- * @reject {UnsupportedError} Cue points are not supported with the current
1662
- * player or browser.
1663
- */
1664
-
1665
- /**
1666
- * Get an array of the cue points added to the video.
1667
- *
1668
- * @return {GetCuePointsPromise}
1669
- */
1670
-
1671
- }, {
1672
- key: "getCuePoints",
1673
- value: function getCuePoints() {
1674
- return this.get('cuePoints');
1675
- }
1676
- /**
1677
- * A promise to get the current time of the video.
1678
- *
1679
- * @promise GetCurrentTimePromise
1680
- * @fulfill {number} The current time in seconds.
1681
- */
1682
-
1683
- /**
1684
- * Get the current playback position in seconds.
1685
- *
1686
- * @return {GetCurrentTimePromise}
1687
- */
1688
-
1689
- }, {
1690
- key: "getCurrentTime",
1691
- value: function getCurrentTime() {
1692
- return this.get('currentTime');
1693
- }
1694
- /**
1695
- * A promise to set the current time of the video.
1696
- *
1697
- * @promise SetCurrentTimePromise
1698
- * @fulfill {number} The actual current time that was set.
1699
- * @reject {RangeError} the time was less than 0 or greater than the
1700
- * video’s duration.
1701
- */
1702
-
1703
- /**
1704
- * Set the current playback position in seconds. If the player was
1705
- * paused, it will remain paused. Likewise, if the player was playing,
1706
- * it will resume playing once the video has buffered.
1707
- *
1708
- * You can provide an accurate time and the player will attempt to seek
1709
- * to as close to that time as possible. The exact time will be the
1710
- * fulfilled value of the promise.
1711
- *
1712
- * @param {number} currentTime
1713
- * @return {SetCurrentTimePromise}
1714
- */
1715
-
1716
- }, {
1717
- key: "setCurrentTime",
1718
- value: function setCurrentTime(currentTime) {
1719
- return this.set('currentTime', currentTime);
1720
- }
1721
- /**
1722
- * A promise to get the duration of the video.
1723
- *
1724
- * @promise GetDurationPromise
1725
- * @fulfill {number} The duration in seconds.
1726
- */
1727
-
1728
- /**
1729
- * Get the duration of the video in seconds. It will be rounded to the
1730
- * nearest second before playback begins, and to the nearest thousandth
1731
- * of a second after playback begins.
1732
- *
1733
- * @return {GetDurationPromise}
1734
- */
1735
-
1736
- }, {
1737
- key: "getDuration",
1738
- value: function getDuration() {
1739
- return this.get('duration');
1740
- }
1741
- /**
1742
- * A promise to get the ended state of the video.
1743
- *
1744
- * @promise GetEndedPromise
1745
- * @fulfill {boolean} Whether or not the video has ended.
1746
- */
1747
-
1748
- /**
1749
- * Get the ended state of the video. The video has ended if
1750
- * `currentTime === duration`.
1751
- *
1752
- * @return {GetEndedPromise}
1753
- */
1754
-
1755
- }, {
1756
- key: "getEnded",
1757
- value: function getEnded() {
1758
- return this.get('ended');
1759
- }
1760
- /**
1761
- * A promise to get the loop state of the player.
1762
- *
1763
- * @promise GetLoopPromise
1764
- * @fulfill {boolean} Whether or not the player is set to loop.
1765
- */
1766
-
1767
- /**
1768
- * Get the loop state of the player.
1769
- *
1770
- * @return {GetLoopPromise}
1771
- */
1772
-
1773
- }, {
1774
- key: "getLoop",
1775
- value: function getLoop() {
1776
- return this.get('loop');
1777
- }
1778
- /**
1779
- * A promise to set the loop state of the player.
1780
- *
1781
- * @promise SetLoopPromise
1782
- * @fulfill {boolean} The loop state that was set.
1783
- */
1784
-
1785
- /**
1786
- * Set the loop state of the player. When set to `true`, the player
1787
- * will start over immediately once playback ends.
1788
- *
1789
- * @param {boolean} loop
1790
- * @return {SetLoopPromise}
1791
- */
1792
-
1793
- }, {
1794
- key: "setLoop",
1795
- value: function setLoop(loop) {
1796
- return this.set('loop', loop);
1797
- }
1798
- /**
1799
- * A promise to set the muted state of the player.
1800
- *
1801
- * @promise SetMutedPromise
1802
- * @fulfill {boolean} The muted state that was set.
1803
- */
1804
-
1805
- /**
1806
- * Set the muted state of the player. When set to `true`, the player
1807
- * volume will be muted.
1808
- *
1809
- * @param {boolean} muted
1810
- * @return {SetMutedPromise}
1811
- */
1812
-
1813
- }, {
1814
- key: "setMuted",
1815
- value: function setMuted(muted) {
1816
- return this.set('muted', muted);
1817
- }
1818
- /**
1819
- * A promise to get the muted state of the player.
1820
- *
1821
- * @promise GetMutedPromise
1822
- * @fulfill {boolean} Whether or not the player is muted.
1823
- */
1824
-
1825
- /**
1826
- * Get the muted state of the player.
1827
- *
1828
- * @return {GetMutedPromise}
1829
- */
1830
-
1831
- }, {
1832
- key: "getMuted",
1833
- value: function getMuted() {
1834
- return this.get('muted');
1835
- }
1836
- /**
1837
- * A promise to get the paused state of the player.
1838
- *
1839
- * @promise GetLoopPromise
1840
- * @fulfill {boolean} Whether or not the video is paused.
1841
- */
1842
-
1843
- /**
1844
- * Get the paused state of the player.
1845
- *
1846
- * @return {GetLoopPromise}
1847
- */
1848
-
1849
- }, {
1850
- key: "getPaused",
1851
- value: function getPaused() {
1852
- return this.get('paused');
1853
- }
1854
- /**
1855
- * A promise to get the playback rate of the player.
1856
- *
1857
- * @promise GetPlaybackRatePromise
1858
- * @fulfill {number} The playback rate of the player on a scale from 0.5 to 2.
1859
- */
1860
-
1861
- /**
1862
- * Get the playback rate of the player on a scale from `0.5` to `2`.
1863
- *
1864
- * @return {GetPlaybackRatePromise}
1865
- */
1866
-
1867
- }, {
1868
- key: "getPlaybackRate",
1869
- value: function getPlaybackRate() {
1870
- return this.get('playbackRate');
1871
- }
1872
- /**
1873
- * A promise to set the playbackrate of the player.
1874
- *
1875
- * @promise SetPlaybackRatePromise
1876
- * @fulfill {number} The playback rate was set.
1877
- * @reject {RangeError} The playback rate was less than 0.5 or greater than 2.
1878
- */
1879
-
1880
- /**
1881
- * Set the playback rate of the player on a scale from `0.5` to `2`. When set
1882
- * via the API, the playback rate will not be synchronized to other
1883
- * players or stored as the viewer's preference.
1884
- *
1885
- * @param {number} playbackRate
1886
- * @return {SetPlaybackRatePromise}
1887
- */
1888
-
1889
- }, {
1890
- key: "setPlaybackRate",
1891
- value: function setPlaybackRate(playbackRate) {
1892
- return this.set('playbackRate', playbackRate);
1893
- }
1894
- /**
1895
- * A promise to get the played property of the video.
1896
- *
1897
- * @promise GetPlayedPromise
1898
- * @fulfill {Array} Played Timeranges converted to an Array.
1899
- */
1900
-
1901
- /**
1902
- * Get the played property of the video.
1903
- *
1904
- * @return {GetPlayedPromise}
1905
- */
1906
-
1907
- }, {
1908
- key: "getPlayed",
1909
- value: function getPlayed() {
1910
- return this.get('played');
1911
- }
1912
- /**
1913
- * A promise to get the seekable property of the video.
1914
- *
1915
- * @promise GetSeekablePromise
1916
- * @fulfill {Array} Seekable Timeranges converted to an Array.
1917
- */
1918
-
1919
- /**
1920
- * Get the seekable property of the video.
1921
- *
1922
- * @return {GetSeekablePromise}
1923
- */
1924
-
1925
- }, {
1926
- key: "getSeekable",
1927
- value: function getSeekable() {
1928
- return this.get('seekable');
1929
- }
1930
- /**
1931
- * A promise to get the seeking property of the player.
1932
- *
1933
- * @promise GetSeekingPromise
1934
- * @fulfill {boolean} Whether or not the player is currently seeking.
1935
- */
1936
-
1937
- /**
1938
- * Get if the player is currently seeking.
1939
- *
1940
- * @return {GetSeekingPromise}
1941
- */
1942
-
1943
- }, {
1944
- key: "getSeeking",
1945
- value: function getSeeking() {
1946
- return this.get('seeking');
1947
- }
1948
- /**
1949
- * A promise to get the text tracks of a video.
1950
- *
1951
- * @promise GetTextTracksPromise
1952
- * @fulfill {VimeoTextTrack[]} The text tracks associated with the video.
1953
- */
1954
-
1955
- /**
1956
- * Get an array of the text tracks that exist for the video.
1957
- *
1958
- * @return {GetTextTracksPromise}
1959
- */
1960
-
1961
- }, {
1962
- key: "getTextTracks",
1963
- value: function getTextTracks() {
1964
- return this.get('textTracks');
1965
- }
1966
- /**
1967
- * A promise to get the embed code for the video.
1968
- *
1969
- * @promise GetVideoEmbedCodePromise
1970
- * @fulfill {string} The `<iframe>` embed code for the video.
1971
- */
1972
-
1973
- /**
1974
- * Get the `<iframe>` embed code for the video.
1975
- *
1976
- * @return {GetVideoEmbedCodePromise}
1977
- */
1978
-
1979
- }, {
1980
- key: "getVideoEmbedCode",
1981
- value: function getVideoEmbedCode() {
1982
- return this.get('videoEmbedCode');
1983
- }
1984
- /**
1985
- * A promise to get the id of the video.
1986
- *
1987
- * @promise GetVideoIdPromise
1988
- * @fulfill {number} The id of the video.
1989
- */
1990
-
1991
- /**
1992
- * Get the id of the video.
1993
- *
1994
- * @return {GetVideoIdPromise}
1995
- */
1996
-
1997
- }, {
1998
- key: "getVideoId",
1999
- value: function getVideoId() {
2000
- return this.get('videoId');
2001
- }
2002
- /**
2003
- * A promise to get the title of the video.
2004
- *
2005
- * @promise GetVideoTitlePromise
2006
- * @fulfill {number} The title of the video.
2007
- */
2008
-
2009
- /**
2010
- * Get the title of the video.
2011
- *
2012
- * @return {GetVideoTitlePromise}
2013
- */
2014
-
2015
- }, {
2016
- key: "getVideoTitle",
2017
- value: function getVideoTitle() {
2018
- return this.get('videoTitle');
2019
- }
2020
- /**
2021
- * A promise to get the native width of the video.
2022
- *
2023
- * @promise GetVideoWidthPromise
2024
- * @fulfill {number} The native width of the video.
2025
- */
2026
-
2027
- /**
2028
- * Get the native width of the currently‐playing video. The width of
2029
- * the highest‐resolution available will be used before playback begins.
2030
- *
2031
- * @return {GetVideoWidthPromise}
2032
- */
2033
-
2034
- }, {
2035
- key: "getVideoWidth",
2036
- value: function getVideoWidth() {
2037
- return this.get('videoWidth');
2038
- }
2039
- /**
2040
- * A promise to get the native height of the video.
2041
- *
2042
- * @promise GetVideoHeightPromise
2043
- * @fulfill {number} The native height of the video.
2044
- */
2045
-
2046
- /**
2047
- * Get the native height of the currently‐playing video. The height of
2048
- * the highest‐resolution available will be used before playback begins.
2049
- *
2050
- * @return {GetVideoHeightPromise}
2051
- */
2052
-
2053
- }, {
2054
- key: "getVideoHeight",
2055
- value: function getVideoHeight() {
2056
- return this.get('videoHeight');
2057
- }
2058
- /**
2059
- * A promise to get the vimeo.com url for the video.
2060
- *
2061
- * @promise GetVideoUrlPromise
2062
- * @fulfill {number} The vimeo.com url for the video.
2063
- * @reject {PrivacyError} The url isn’t available because of the video’s privacy setting.
2064
- */
2065
-
2066
- /**
2067
- * Get the vimeo.com url for the video.
2068
- *
2069
- * @return {GetVideoUrlPromise}
2070
- */
2071
-
2072
- }, {
2073
- key: "getVideoUrl",
2074
- value: function getVideoUrl() {
2075
- return this.get('videoUrl');
2076
- }
2077
- /**
2078
- * A promise to get the volume level of the player.
2079
- *
2080
- * @promise GetVolumePromise
2081
- * @fulfill {number} The volume level of the player on a scale from 0 to 1.
2082
- */
2083
-
2084
- /**
2085
- * Get the current volume level of the player on a scale from `0` to `1`.
2086
- *
2087
- * Most mobile devices do not support an independent volume from the
2088
- * system volume. In those cases, this method will always return `1`.
2089
- *
2090
- * @return {GetVolumePromise}
2091
- */
2092
-
2093
- }, {
2094
- key: "getVolume",
2095
- value: function getVolume() {
2096
- return this.get('volume');
2097
- }
2098
- /**
2099
- * A promise to set the volume level of the player.
2100
- *
2101
- * @promise SetVolumePromise
2102
- * @fulfill {number} The volume was set.
2103
- * @reject {RangeError} The volume was less than 0 or greater than 1.
2104
- */
2105
-
2106
- /**
2107
- * Set the volume of the player on a scale from `0` to `1`. When set
2108
- * via the API, the volume level will not be synchronized to other
2109
- * players or stored as the viewer’s preference.
2110
- *
2111
- * Most mobile devices do not support setting the volume. An error will
2112
- * *not* be triggered in that situation.
2113
- *
2114
- * @param {number} volume
2115
- * @return {SetVolumePromise}
2116
- */
2117
-
2118
- }, {
2119
- key: "setVolume",
2120
- value: function setVolume(volume) {
2121
- return this.set('volume', volume);
2122
- }
2123
- }]);
2124
-
2125
- return Player;
2126
- }(); // Setup embed only if this is not a node environment
2127
-
2128
-
2129
- if (!isNode) {
2130
- initializeEmbeds();
2131
- resizeEmbeds();
2132
- }
2133
-
2134
- return Player;
2135
-
2136
- })));
2137
-
2138
- //# sourceMappingURL=player.js.map