j1-template 2024.3.22 → 2024.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/{galeries.html → gallery_app.html} +4 -4
  3. data/assets/theme/bla +0 -0
  4. data/assets/theme/j1/adapter/js/amplitude.js +144 -52
  5. data/assets/theme/j1/adapter/js/gallery.js +1 -1
  6. data/assets/theme/j1/adapter/js/themes.js +41 -69
  7. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +19 -52
  8. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  9. data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +466 -396
  10. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.css +984 -0
  11. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.min.css +26 -0
  12. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.css +1627 -0
  13. data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.min.css +25 -0
  14. data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.css +1 -1
  15. data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.min.css +1 -1
  16. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.svg +54 -0
  17. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.ttf +0 -0
  18. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff +0 -0
  19. data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff2 +0 -0
  20. data/assets/theme/j1/modules/lightGallery/!v2.7.2/images/loading.gif +0 -0
  21. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/loading.gif +0 -0
  22. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/video-play.png +0 -0
  23. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/vimeo-play.png +0 -0
  24. data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/youtube-play.png +0 -0
  25. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.js +2782 -0
  26. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.min.js +26 -0
  27. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/LICENSE.md +44 -0
  28. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/README.md +37 -0
  29. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.js +890 -0
  30. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.min.js +8 -0
  31. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/lg-video.1.js +585 -0
  32. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.js +275 -0
  33. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.min.js +26 -0
  34. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.js +230 -0
  35. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.min.js +26 -0
  36. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.js +160 -0
  37. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.min.js +26 -0
  38. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.js +223 -0
  39. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.min.js +27 -0
  40. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.js +157 -0
  41. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.min.js +26 -0
  42. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.js +164 -0
  43. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.min.js +26 -0
  44. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.js +299 -0
  45. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.min.js +26 -0
  46. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.js +244 -0
  47. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.min.js +27 -0
  48. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.js +509 -0
  49. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.min.js +26 -0
  50. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.js +909 -0
  51. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.min.js +26 -0
  52. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.js +207 -0
  53. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
  54. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.js +999 -0
  55. data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.min.js +26 -0
  56. data/assets/theme/j1/modules/lightGallery/css/lg-transitions.css +3 -126
  57. data/assets/theme/j1/modules/lightGallery/css/lg-transitions.min.css +3 -10
  58. data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.css +70 -237
  59. data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.min.css +4 -10
  60. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/animation-w.png +0 -0
  61. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/customize-w.png +0 -0
  62. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/dynamic-w.png +0 -0
  63. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/facebook-icon.svg +10 -0
  64. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/googleplus-icon.svg +30 -0
  65. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/html5-w.png +0 -0
  66. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/linked-in.png +0 -0
  67. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/module-w.png +0 -0
  68. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button-hover.svg +94 -0
  69. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.png +0 -0
  70. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.svg +93 -0
  71. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/responsive-w.png +0 -0
  72. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/thumb-w.png +0 -0
  73. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/touch-w.png +0 -0
  74. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter-icon.svg +15 -0
  75. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter.png +0 -0
  76. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/video1-w.png +0 -0
  77. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom-w.png +0 -0
  78. data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom.png +0 -0
  79. data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.css +276 -0
  80. data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +17 -0
  81. data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +163 -120
  82. data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +6 -6
  83. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.0.js +495 -0
  84. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.1.js +513 -0
  85. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.0.js +553 -0
  86. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +1 -1
  87. data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.2.js +914 -0
  88. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +4 -4
  89. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +5 -5
  90. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +5 -5
  91. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.min.js +6 -6
  92. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +4 -4
  93. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +5 -5
  94. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +4 -4
  95. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.min.js +5 -6
  96. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +5 -5
  97. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +6 -6
  98. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +4 -4
  99. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.min.js +5 -5
  100. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +179 -0
  101. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.min.js +32 -0
  102. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +4 -4
  103. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +6 -6
  104. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +4 -4
  105. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.min.js +6 -7
  106. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +27 -20
  107. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +5 -5
  108. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +77 -125
  109. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +6 -6
  110. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +4 -4
  111. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +5 -5
  112. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +11 -5
  113. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +5 -5
  114. data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +13 -12
  115. data/assets/theme/j1/modules/videoPlayer/tiktoc/README.md +1 -0
  116. data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/README.md +151 -0
  117. data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/VideoJS.svg +150 -0
  118. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.css +147 -0
  119. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.min.css +5 -0
  120. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.css +113 -0
  121. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.min.css +5 -0
  122. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.css +166 -0
  123. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.min.css +5 -0
  124. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.css +72 -0
  125. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.min.css +5 -0
  126. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.css +311 -0
  127. data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.min.css +19 -0
  128. data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.css +1686 -0
  129. data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.min.css +13 -0
  130. data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.js +65226 -0
  131. data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.min.js +55 -0
  132. data/assets/theme/j1/modules/videojs/assets/README.md +1 -0
  133. data/assets/theme/j1/modules/videojs/assets/icons/speedometer-medium.svg +35 -0
  134. data/assets/theme/j1/modules/videojs/css/font/VideoJS.ttf +0 -0
  135. data/assets/theme/j1/modules/videojs/css/font/VideoJS.woff +0 -0
  136. data/assets/theme/j1/modules/videojs/css/themes/uno.css +157 -22
  137. data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
  138. data/assets/theme/j1/modules/videojs/css/videojs.css +674 -316
  139. data/assets/theme/j1/modules/videojs/css/videojs.min.css +4 -3
  140. data/assets/theme/j1/modules/videojs/js/video.js +15893 -12288
  141. data/assets/theme/j1/modules/videojs/js/video.min.js +22 -23
  142. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +31 -0
  143. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/LICENSE +19 -0
  144. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/README.md +69 -0
  145. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.css +2 -0
  146. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.min.css +2 -0
  147. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.js +339 -0
  148. data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.min.js +2 -0
  149. data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.js +0 -5
  150. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +29 -0
  151. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/LICENSE +19 -0
  152. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/README.md +90 -0
  153. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.js +120 -0
  154. data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js +2 -0
  155. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +37 -0
  156. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/LICENSE +19 -0
  157. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/README.md +61 -0
  158. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.js +94 -0
  159. data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.min.js +20 -0
  160. data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/skipbuttons/README.md +25 -11
  161. data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css +7 -6
  162. data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +22 -0
  163. data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js +1 -1
  164. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.0.js +521 -0
  165. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.1.js +605 -0
  166. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.3.js +643 -0
  167. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.4.js +583 -0
  168. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.5.js +665 -0
  169. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.6.js +642 -0
  170. data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.7.js +673 -0
  171. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.js +1 -1
  172. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.min.js +1 -1
  173. data/assets/theme/j1/modules/videojs/{js/plugins/players/vm → plugins/players/vm/js}/vimeo.js +4 -5
  174. data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +28 -0
  175. data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.0.js +395 -0
  176. data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.1.js +401 -0
  177. data/lib/j1/version.rb +1 -1
  178. data/lib/starter_web/README.md +5 -5
  179. data/lib/starter_web/_config.yml +1 -1
  180. data/lib/starter_web/_data/modules/amplitude_playlists.yml +16 -1
  181. data/lib/starter_web/_data/modules/defaults/gallery.yml +3 -3
  182. data/lib/starter_web/_data/modules/gallery.yml +83 -87
  183. data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
  184. data/lib/starter_web/_data/resources.yml +16 -12
  185. data/lib/starter_web/_data/templates/feed.xml +1 -1
  186. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +50 -30
  187. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +37 -23
  188. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  189. data/lib/starter_web/assets/video/poster/vimeo/fall_2011.jpg +0 -0
  190. data/lib/starter_web/package.json +1 -1
  191. data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +282 -0
  192. data/lib/starter_web/pages/public/tour/video_data.adoc +1 -0
  193. metadata +221 -106
  194. data/assets/data/swiper_app.2.html +0 -757
  195. data/assets/data/swiper_app.4.html +0 -769
  196. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +0 -32
  197. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +0 -31
  198. data/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.min.css +0 -21
  199. data/assets/theme/j1/modules/videojs/js/plugins/players/vm/vimeo.min.js +0 -16
  200. data/assets/theme/j1/modules/videojs/js/plugins/players/wt/api/src/WistiaPlayer.ts +0 -1617
  201. data/lib/starter_web/assets/video/poster/vimeo/stay_colorful.jpg +0 -0
  202. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/animation-w.png +0 -0
  203. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/customize-w.png +0 -0
  204. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/dynamic-w.png +0 -0
  205. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/facebook-icon.svg +0 -0
  206. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/googleplus-icon.svg +0 -0
  207. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/html5-w.png +0 -0
  208. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/linked-in.png +0 -0
  209. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/module-w.png +0 -0
  210. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button-hover.svg +0 -0
  211. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.png +0 -0
  212. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.svg +0 -0
  213. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/responsive-w.png +0 -0
  214. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/thumb-w.png +0 -0
  215. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/touch-w.png +0 -0
  216. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter-icon.svg +0 -0
  217. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter.png +0 -0
  218. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/video1-w.png +0 -0
  219. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom-w.png +0 -0
  220. /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom.png +0 -0
  221. /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.js +0 -0
  222. /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.min.js +0 -0
  223. /data/assets/theme/j1/modules/videoPlayer/dailymotion/js/{!readme → README.md} +0 -0
  224. /data/assets/theme/j1/modules/videoPlayer/tiktoc/{js/player.min.js → player.min.js} +0 -0
  225. /data/assets/theme/j1/modules/videoPlayer/vimeo/js/{!readme → README.md} +0 -0
  226. /data/assets/theme/j1/modules/videoPlayer/wistia/js/{!readme → README.md} +0 -0
  227. /data/assets/theme/j1/modules/videojs/{css → !v8.12.0/css}/font/video-js-cdn.css +0 -0
  228. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/LICENSE +0 -0
  229. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/README.md +0 -0
  230. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.min.js +0 -0
  231. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys/examples → plugins/controls/hotkeys/!examples}/example.html +0 -0
  232. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/LICENSE.md +0 -0
  233. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/README.md +0 -0
  234. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.js +0 -0
  235. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.min.js +0 -0
  236. /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.css +0 -0
  237. /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.min.css +0 -0
  238. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.js +0 -0
  239. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.min.js +0 -0
  240. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.html +0 -0
  241. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.js +0 -0
  242. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/styles.css +0 -0
  243. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/LICENSE.md +0 -0
  244. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/README.md +0 -0
  245. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.js +0 -0
  246. /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.min.js +0 -0
  247. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-controls.html +0 -0
  248. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-javascript.html +0 -0
  249. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-playlist.html +0 -0
  250. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/global-parameters.html +0 -0
  251. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/simple.html +0 -0
  252. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/switch.html +0 -0
  253. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/LICENSE +0 -0
  254. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/doc → plugins/players/dm}/README.md +0 -0
  255. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/api/LICENSE +0 -0
  256. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api/doc → plugins/players/dm/api}/README.md +0 -0
  257. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.js +0 -0
  258. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.min.js +0 -0
  259. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/icon/scalable/dailymotion.svg +0 -0
  260. /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.min.js +0 -0
  261. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/index.html +0 -0
  262. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/player/index.html +0 -0
  263. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/LICENSE +0 -0
  264. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/doc → plugins/players/vm}/README.md +0 -0
  265. /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api/doc → plugins/players/vm/api}/README.md +0 -0
  266. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.css +0 -0
  267. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.uno.css +0 -0
  268. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/player.css +0 -0
  269. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/doc → plugins/players/wt}/README.md +0 -0
  270. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api/doc/Readme.txt → plugins/players/wt/api/README.md} +0 -0
  271. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api → plugins/players/wt/api/js}/wistia.min.js +0 -0
  272. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.js +0 -0
  273. /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.min.js +0 -0
  274. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/global-parameters.html +0 -0
  275. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/simple.html +0 -0
  276. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/switch.html +0 -0
  277. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-controls.html +0 -0
  278. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-javascript.html +0 -0
  279. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-list.html +0 -0
  280. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-playlist.html +0 -0
  281. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.js +0 -0
  282. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.min.js +0 -0
  283. /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/yt/LICENSE +0 -0
  284. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/doc → plugins/players/yt}/README.md +0 -0
  285. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/api → plugins/players/yt/api/js}/youtube.min.js +0 -0
  286. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.js +0 -0
  287. /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.min.js +0 -0
@@ -0,0 +1,513 @@
1
+ /*
2
+ # -----------------------------------------------------------------------------
3
+ # ~/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js
4
+ # Provides lightGallery v2.8.3 JS code for the plugin lgThumbnail
5
+ #
6
+ # Product/Info:
7
+ # https://jekyll.one
8
+ #
9
+ # Copyright (C) 2025 Sachin Neravath
10
+ # Copyright (C) 2023-2025 Juergen Adams
11
+ #
12
+ # J1 Template is licensed under the MIT License.
13
+ # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
14
+ # lightGallery is licensed under the GPLv3 license
15
+ # See: https://github.com/sachinchoolur/lightGallery/blob/master/LICENSE
16
+ # -----------------------------------------------------------------------------
17
+ */
18
+
19
+ /*!
20
+ * lightgallery | 2.8.3 | March 1st 2025
21
+ * http://www.lightgalleryjs.com/
22
+ * Copyright (c) 2020 Sachin Neravath;
23
+ * @license GPLv3
24
+ */
25
+
26
+ (function (global, factory) {
27
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
28
+ typeof define === 'function' && define.amd ? define(factory) :
29
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.lgThumbnail = factory());
30
+ }(this, (function () { 'use strict';
31
+
32
+ /*! *****************************************************************************
33
+ Copyright (c) Microsoft Corporation.
34
+
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
+ PERFORMANCE OF THIS SOFTWARE.
45
+ ***************************************************************************** */
46
+
47
+ var __assign = function() {
48
+ __assign = Object.assign || function __assign(t) {
49
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
50
+ s = arguments[i];
51
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
52
+ }
53
+ return t;
54
+ };
55
+ return __assign.apply(this, arguments);
56
+ };
57
+
58
+ var thumbnailsSettings = {
59
+ thumbnail: true,
60
+ animateThumb: true,
61
+ currentPagerPosition: 'middle',
62
+ alignThumbnails: 'middle',
63
+ thumbWidth: 100,
64
+ thumbHeight: '80px',
65
+ thumbMargin: 5,
66
+ appendThumbnailsTo: '.lg-components',
67
+ toggleThumb: false,
68
+ enableThumbDrag: true,
69
+ enableThumbSwipe: true,
70
+ thumbnailSwipeThreshold: 10,
71
+ loadYouTubeThumbnail: true,
72
+ // youTubeThumbSize: 1, // jadams, generates: 1.jpg
73
+ youTubeThumbSize: 'maxresdefault', // jadams, generates: maxresdefault.jpg
74
+ thumbnailPluginStrings: {
75
+ toggleThumbnails: 'Toggle thumbnails',
76
+ },
77
+ };
78
+
79
+ /**
80
+ * List of lightGallery events
81
+ * All events should be documented here
82
+ * Below interfaces are used to build the website documentations
83
+ * */
84
+ var lGEvents = {
85
+ afterAppendSlide: 'lgAfterAppendSlide',
86
+ init: 'lgInit',
87
+ hasVideo: 'lgHasVideo',
88
+ containerResize: 'lgContainerResize',
89
+ updateSlides: 'lgUpdateSlides',
90
+ afterAppendSubHtml: 'lgAfterAppendSubHtml',
91
+ beforeOpen: 'lgBeforeOpen',
92
+ afterOpen: 'lgAfterOpen',
93
+ slideItemLoad: 'lgSlideItemLoad',
94
+ beforeSlide: 'lgBeforeSlide',
95
+ afterSlide: 'lgAfterSlide',
96
+ posterClick: 'lgPosterClick',
97
+ dragStart: 'lgDragStart',
98
+ dragMove: 'lgDragMove',
99
+ dragEnd: 'lgDragEnd',
100
+ beforeNextSlide: 'lgBeforeNextSlide',
101
+ beforePrevSlide: 'lgBeforePrevSlide',
102
+ beforeClose: 'lgBeforeClose',
103
+ afterClose: 'lgAfterClose',
104
+ rotateLeft: 'lgRotateLeft',
105
+ rotateRight: 'lgRotateRight',
106
+ flipHorizontal: 'lgFlipHorizontal',
107
+ flipVertical: 'lgFlipVertical',
108
+ autoplay: 'lgAutoplay',
109
+ autoplayStart: 'lgAutoplayStart',
110
+ autoplayStop: 'lgAutoplayStop',
111
+ };
112
+
113
+ var Thumbnail = /** @class */ (function () {
114
+ function Thumbnail(instance, $LG) {
115
+ this.thumbOuterWidth = 0;
116
+ this.thumbTotalWidth = 0;
117
+ this.translateX = 0;
118
+ this.thumbClickable = false;
119
+ // get lightGallery core plugin instance
120
+ this.core = instance;
121
+ this.$LG = $LG;
122
+ return this;
123
+ }
124
+ Thumbnail.prototype.init = function () {
125
+ // extend module default settings with lightGallery core settings
126
+ this.settings = __assign(__assign({}, thumbnailsSettings), this.core.settings);
127
+ this.thumbOuterWidth = 0;
128
+ this.thumbTotalWidth =
129
+ this.core.galleryItems.length *
130
+ (this.settings.thumbWidth + this.settings.thumbMargin);
131
+ // Thumbnail animation value
132
+ this.translateX = 0;
133
+ this.setAnimateThumbStyles();
134
+ if (!this.core.settings.allowMediaOverlap) {
135
+ this.settings.toggleThumb = false;
136
+ }
137
+ if (this.settings.thumbnail) {
138
+ this.build();
139
+ if (this.settings.animateThumb) {
140
+ if (this.settings.enableThumbDrag) {
141
+ this.enableThumbDrag();
142
+ }
143
+ if (this.settings.enableThumbSwipe) {
144
+ this.enableThumbSwipe();
145
+ }
146
+ this.thumbClickable = false;
147
+ }
148
+ else {
149
+ this.thumbClickable = true;
150
+ }
151
+ this.toggleThumbBar();
152
+ this.thumbKeyPress();
153
+ }
154
+ };
155
+ Thumbnail.prototype.build = function () {
156
+ var _this = this;
157
+ this.setThumbMarkup();
158
+ this.manageActiveClassOnSlideChange();
159
+ this.$lgThumb.first().on('click.lg touchend.lg', function (e) {
160
+ var $target = _this.$LG(e.target);
161
+ if (!$target.hasAttribute('data-lg-item-id')) {
162
+ return;
163
+ }
164
+ setTimeout(function () {
165
+ // In IE9 and bellow touch does not support
166
+ // Go to slide if browser does not support css transitions
167
+ if (_this.thumbClickable && !_this.core.lgBusy) {
168
+ var index = parseInt($target.attr('data-lg-item-id'));
169
+ _this.core.slide(index, false, true, false);
170
+ }
171
+ }, 50);
172
+ });
173
+ this.core.LGel.on(lGEvents.beforeSlide + ".thumb", function (event) {
174
+ var index = event.detail.index;
175
+ _this.animateThumb(index);
176
+ });
177
+ this.core.LGel.on(lGEvents.beforeOpen + ".thumb", function () {
178
+ _this.thumbOuterWidth = _this.core.outer.get().offsetWidth;
179
+ });
180
+ this.core.LGel.on(lGEvents.updateSlides + ".thumb", function () {
181
+ _this.rebuildThumbnails();
182
+ });
183
+ this.core.LGel.on(lGEvents.containerResize + ".thumb", function () {
184
+ if (!_this.core.lgOpened)
185
+ return;
186
+ setTimeout(function () {
187
+ _this.thumbOuterWidth = _this.core.outer.get().offsetWidth;
188
+ _this.animateThumb(_this.core.index);
189
+ _this.thumbOuterWidth = _this.core.outer.get().offsetWidth;
190
+ }, 50);
191
+ });
192
+ };
193
+ Thumbnail.prototype.setThumbMarkup = function () {
194
+ var thumbOuterClassNames = 'lg-thumb-outer ';
195
+ if (this.settings.alignThumbnails) {
196
+ thumbOuterClassNames += "lg-thumb-align-" + this.settings.alignThumbnails;
197
+ }
198
+ var html = "<div class=\"" + thumbOuterClassNames + "\">\n <div class=\"lg-thumb lg-group\">\n </div>\n </div>";
199
+ this.core.outer.addClass('lg-has-thumb');
200
+ if (this.settings.appendThumbnailsTo === '.lg-components') {
201
+ this.core.$lgComponents.append(html);
202
+ }
203
+ else {
204
+ this.core.outer.append(html);
205
+ }
206
+ this.$thumbOuter = this.core.outer.find('.lg-thumb-outer').first();
207
+ this.$lgThumb = this.core.outer.find('.lg-thumb').first();
208
+ if (this.settings.animateThumb) {
209
+ this.core.outer
210
+ .find('.lg-thumb')
211
+ .css('transition-duration', this.core.settings.speed + 'ms')
212
+ .css('width', this.thumbTotalWidth + 'px')
213
+ .css('position', 'relative');
214
+ }
215
+ this.setThumbItemHtml(this.core.galleryItems);
216
+ };
217
+ Thumbnail.prototype.enableThumbDrag = function () {
218
+ var _this = this;
219
+ var thumbDragUtils = {
220
+ cords: {
221
+ startX: 0,
222
+ endX: 0,
223
+ },
224
+ isMoved: false,
225
+ newTranslateX: 0,
226
+ startTime: new Date(),
227
+ endTime: new Date(),
228
+ touchMoveTime: 0,
229
+ };
230
+ var isDragging = false;
231
+ this.$thumbOuter.addClass('lg-grab');
232
+ this.core.outer
233
+ .find('.lg-thumb')
234
+ .first()
235
+ .on('mousedown.lg.thumb', function (e) {
236
+ if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
237
+ // execute only on .lg-object
238
+ e.preventDefault();
239
+ thumbDragUtils.cords.startX = e.pageX;
240
+ thumbDragUtils.startTime = new Date();
241
+ _this.thumbClickable = false;
242
+ isDragging = true;
243
+ // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
244
+ _this.core.outer.get().scrollLeft += 1;
245
+ _this.core.outer.get().scrollLeft -= 1;
246
+ // *
247
+ _this.$thumbOuter
248
+ .removeClass('lg-grab')
249
+ .addClass('lg-grabbing');
250
+ }
251
+ });
252
+ this.$LG(window).on("mousemove.lg.thumb.global" + this.core.lgId, function (e) {
253
+ if (!_this.core.lgOpened)
254
+ return;
255
+ if (isDragging) {
256
+ thumbDragUtils.cords.endX = e.pageX;
257
+ thumbDragUtils = _this.onThumbTouchMove(thumbDragUtils);
258
+ }
259
+ });
260
+ this.$LG(window).on("mouseup.lg.thumb.global" + this.core.lgId, function () {
261
+ if (!_this.core.lgOpened)
262
+ return;
263
+ if (thumbDragUtils.isMoved) {
264
+ thumbDragUtils = _this.onThumbTouchEnd(thumbDragUtils);
265
+ }
266
+ else {
267
+ _this.thumbClickable = true;
268
+ }
269
+ if (isDragging) {
270
+ isDragging = false;
271
+ _this.$thumbOuter.removeClass('lg-grabbing').addClass('lg-grab');
272
+ }
273
+ });
274
+ };
275
+ Thumbnail.prototype.enableThumbSwipe = function () {
276
+ var _this = this;
277
+ var thumbDragUtils = {
278
+ cords: {
279
+ startX: 0,
280
+ endX: 0,
281
+ },
282
+ isMoved: false,
283
+ newTranslateX: 0,
284
+ startTime: new Date(),
285
+ endTime: new Date(),
286
+ touchMoveTime: 0,
287
+ };
288
+ this.$lgThumb.on('touchstart.lg', function (e) {
289
+ if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
290
+ e.preventDefault();
291
+ thumbDragUtils.cords.startX = e.targetTouches[0].pageX;
292
+ _this.thumbClickable = false;
293
+ thumbDragUtils.startTime = new Date();
294
+ }
295
+ });
296
+ this.$lgThumb.on('touchmove.lg', function (e) {
297
+ if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
298
+ e.preventDefault();
299
+ thumbDragUtils.cords.endX = e.targetTouches[0].pageX;
300
+ thumbDragUtils = _this.onThumbTouchMove(thumbDragUtils);
301
+ }
302
+ });
303
+ this.$lgThumb.on('touchend.lg', function () {
304
+ if (thumbDragUtils.isMoved) {
305
+ thumbDragUtils = _this.onThumbTouchEnd(thumbDragUtils);
306
+ }
307
+ else {
308
+ _this.thumbClickable = true;
309
+ }
310
+ });
311
+ };
312
+ // Rebuild thumbnails
313
+ Thumbnail.prototype.rebuildThumbnails = function () {
314
+ var _this = this;
315
+ // Remove transitions
316
+ this.$thumbOuter.addClass('lg-rebuilding-thumbnails');
317
+ setTimeout(function () {
318
+ _this.thumbTotalWidth =
319
+ _this.core.galleryItems.length *
320
+ (_this.settings.thumbWidth + _this.settings.thumbMargin);
321
+ _this.$lgThumb.css('width', _this.thumbTotalWidth + 'px');
322
+ _this.$lgThumb.empty();
323
+ _this.setThumbItemHtml(_this.core.galleryItems);
324
+ _this.animateThumb(_this.core.index);
325
+ }, 50);
326
+ setTimeout(function () {
327
+ _this.$thumbOuter.removeClass('lg-rebuilding-thumbnails');
328
+ }, 200);
329
+ };
330
+ // @ts-check
331
+ Thumbnail.prototype.setTranslate = function (value) {
332
+ this.$lgThumb.css('transform', 'translate3d(-' + value + 'px, 0px, 0px)');
333
+ };
334
+ Thumbnail.prototype.getPossibleTransformX = function (left) {
335
+ if (left > this.thumbTotalWidth - this.thumbOuterWidth) {
336
+ left = this.thumbTotalWidth - this.thumbOuterWidth;
337
+ }
338
+ if (left < 0) {
339
+ left = 0;
340
+ }
341
+ return left;
342
+ };
343
+ Thumbnail.prototype.animateThumb = function (index) {
344
+ this.$lgThumb.css('transition-duration', this.core.settings.speed + 'ms');
345
+ if (this.settings.animateThumb) {
346
+ var position = 0;
347
+ switch (this.settings.currentPagerPosition) {
348
+ case 'left':
349
+ position = 0;
350
+ break;
351
+ case 'middle':
352
+ position =
353
+ this.thumbOuterWidth / 2 - this.settings.thumbWidth / 2;
354
+ break;
355
+ case 'right':
356
+ position = this.thumbOuterWidth - this.settings.thumbWidth;
357
+ }
358
+ this.translateX =
359
+ (this.settings.thumbWidth + this.settings.thumbMargin) * index -
360
+ 1 -
361
+ position;
362
+ if (this.translateX > this.thumbTotalWidth - this.thumbOuterWidth) {
363
+ this.translateX = this.thumbTotalWidth - this.thumbOuterWidth;
364
+ }
365
+ if (this.translateX < 0) {
366
+ this.translateX = 0;
367
+ }
368
+ this.setTranslate(this.translateX);
369
+ }
370
+ };
371
+ Thumbnail.prototype.onThumbTouchMove = function (thumbDragUtils) {
372
+ thumbDragUtils.newTranslateX = this.translateX;
373
+ thumbDragUtils.isMoved = true;
374
+ thumbDragUtils.touchMoveTime = new Date().valueOf();
375
+ thumbDragUtils.newTranslateX -=
376
+ thumbDragUtils.cords.endX - thumbDragUtils.cords.startX;
377
+ thumbDragUtils.newTranslateX = this.getPossibleTransformX(thumbDragUtils.newTranslateX);
378
+ // move current slide
379
+ this.setTranslate(thumbDragUtils.newTranslateX);
380
+ this.$thumbOuter.addClass('lg-dragging');
381
+ return thumbDragUtils;
382
+ };
383
+ Thumbnail.prototype.onThumbTouchEnd = function (thumbDragUtils) {
384
+ thumbDragUtils.isMoved = false;
385
+ thumbDragUtils.endTime = new Date();
386
+ this.$thumbOuter.removeClass('lg-dragging');
387
+ var touchDuration = thumbDragUtils.endTime.valueOf() -
388
+ thumbDragUtils.startTime.valueOf();
389
+ var distanceXnew = thumbDragUtils.cords.endX - thumbDragUtils.cords.startX;
390
+ var speedX = Math.abs(distanceXnew) / touchDuration;
391
+ // Some magical numbers
392
+ // Can be improved
393
+ if (speedX > 0.15 &&
394
+ thumbDragUtils.endTime.valueOf() - thumbDragUtils.touchMoveTime < 30) {
395
+ speedX += 1;
396
+ if (speedX > 2) {
397
+ speedX += 1;
398
+ }
399
+ speedX =
400
+ speedX +
401
+ speedX * (Math.abs(distanceXnew) / this.thumbOuterWidth);
402
+ this.$lgThumb.css('transition-duration', Math.min(speedX - 1, 2) + 'settings');
403
+ distanceXnew = distanceXnew * speedX;
404
+ this.translateX = this.getPossibleTransformX(this.translateX - distanceXnew);
405
+ this.setTranslate(this.translateX);
406
+ }
407
+ else {
408
+ this.translateX = thumbDragUtils.newTranslateX;
409
+ }
410
+ if (Math.abs(thumbDragUtils.cords.endX - thumbDragUtils.cords.startX) <
411
+ this.settings.thumbnailSwipeThreshold) {
412
+ this.thumbClickable = true;
413
+ }
414
+ return thumbDragUtils;
415
+ };
416
+ Thumbnail.prototype.getThumbHtml = function (thumb, index, alt) {
417
+ var slideVideoInfo = this.core.galleryItems[index].__slideVideoInfo || {};
418
+ var thumbImg;
419
+ if (slideVideoInfo.youtube) {
420
+ if (this.settings.loadYouTubeThumbnail) {
421
+ thumbImg =
422
+ '//img.youtube.com/vi/' +
423
+ slideVideoInfo.youtube[1] +
424
+ '/' +
425
+ this.settings.youTubeThumbSize +
426
+ '.jpg';
427
+ }
428
+ else {
429
+ thumbImg = thumb;
430
+ }
431
+ }
432
+ else {
433
+ thumbImg = thumb;
434
+ }
435
+ var div = document.createElement('div');
436
+ div.setAttribute('data-lg-item-id', index + '');
437
+ div.className = "lg-thumb-item " + (index === this.core.index ? 'active' : '');
438
+ div.style.cssText = "width: " + this.settings.thumbWidth + "px; height: " + this.settings.thumbHeight + "; margin-right: " + this.settings.thumbMargin + "px;";
439
+ var img = document.createElement('img');
440
+ img.alt = alt || '';
441
+ img.setAttribute('data-lg-item-id', index + '');
442
+ img.src = thumbImg;
443
+ div.appendChild(img);
444
+ return div;
445
+ };
446
+ Thumbnail.prototype.setThumbItemHtml = function (items) {
447
+ for (var i = 0; i < items.length; i++) {
448
+ var thumb = this.getThumbHtml(items[i].thumb, i, items[i].alt);
449
+ this.$lgThumb.append(thumb);
450
+ }
451
+ };
452
+ Thumbnail.prototype.setAnimateThumbStyles = function () {
453
+ if (this.settings.animateThumb) {
454
+ this.core.outer.addClass('lg-animate-thumb');
455
+ }
456
+ };
457
+ // Manage thumbnail active calss
458
+ Thumbnail.prototype.manageActiveClassOnSlideChange = function () {
459
+ var _this = this;
460
+ // manage active class for thumbnail
461
+ this.core.LGel.on(lGEvents.beforeSlide + ".thumb", function (event) {
462
+ var $thumb = _this.core.outer.find('.lg-thumb-item');
463
+ var index = event.detail.index;
464
+ $thumb.removeClass('active');
465
+ $thumb.eq(index).addClass('active');
466
+ });
467
+ };
468
+ // Toggle thumbnail bar
469
+ Thumbnail.prototype.toggleThumbBar = function () {
470
+ var _this = this;
471
+ if (this.settings.toggleThumb) {
472
+ this.core.outer.addClass('lg-can-toggle');
473
+ this.core.$toolbar.append('<button type="button" aria-label="' +
474
+ this.settings.thumbnailPluginStrings['toggleThumbnails'] +
475
+ '" class="lg-toggle-thumb lg-icon"></button>');
476
+ this.core.outer
477
+ .find('.lg-toggle-thumb')
478
+ .first()
479
+ .on('click.lg', function () {
480
+ _this.core.outer.toggleClass('lg-components-open');
481
+ });
482
+ }
483
+ };
484
+ Thumbnail.prototype.thumbKeyPress = function () {
485
+ var _this = this;
486
+ this.$LG(window).on("keydown.lg.thumb.global" + this.core.lgId, function (e) {
487
+ if (!_this.core.lgOpened || !_this.settings.toggleThumb)
488
+ return;
489
+ if (e.keyCode === 38) {
490
+ e.preventDefault();
491
+ _this.core.outer.addClass('lg-components-open');
492
+ }
493
+ else if (e.keyCode === 40) {
494
+ e.preventDefault();
495
+ _this.core.outer.removeClass('lg-components-open');
496
+ }
497
+ });
498
+ };
499
+ Thumbnail.prototype.destroy = function () {
500
+ if (this.settings.thumbnail) {
501
+ this.$LG(window).off(".lg.thumb.global" + this.core.lgId);
502
+ this.core.LGel.off('.lg.thumb');
503
+ this.core.LGel.off('.thumb');
504
+ this.$thumbOuter.remove();
505
+ this.core.outer.removeClass('lg-has-thumb');
506
+ }
507
+ };
508
+ return Thumbnail;
509
+ }());
510
+
511
+ return Thumbnail;
512
+
513
+ })));