@oiz/stzh-components 0.0.1-pretest → 1.5.0-alpha

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 (959) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -56
  3. package/dist/cjs/{animation-utils-c816beac.js → animation-utils-cfa35ce7.js} +37 -37
  4. package/dist/cjs/{app-globals-83a6c2d3.js → app-globals-3b6f75bd.js} +44 -42
  5. package/dist/cjs/{arrow-70a32014.js → arrow-3c3b0ae5.js} +3 -3
  6. package/dist/cjs/{date-adapter-2ffd8eaf.js → date-adapter-2a78f6f8.js} +85 -85
  7. package/dist/cjs/{date-utils-898a50be.js → date-utils-bb50c91f.js} +156 -156
  8. package/dist/cjs/{event-utils-4d7d610a.js → event-utils-9b64c792.js} +13 -13
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{media-utils-f1720906.js → media-utils-8cfc8591.js} +19 -19
  11. package/dist/cjs/{string-utils-223b03e2.js → string-utils-a867b99d.js} +12 -12
  12. package/dist/cjs/stzh-accordion-item.cjs.entry.js +170 -170
  13. package/dist/cjs/stzh-accordion.cjs.entry.js +63 -63
  14. package/dist/cjs/stzh-actions.cjs.entry.js +42 -42
  15. package/dist/cjs/stzh-appnav.cjs.entry.js +39 -39
  16. package/dist/cjs/stzh-appointments.cjs.entry.js +260 -260
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +146 -146
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +291 -291
  19. package/dist/cjs/stzh-cell.cjs.entry.js +24 -24
  20. package/dist/cjs/stzh-checkbox.cjs.entry.js +123 -123
  21. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +155 -157
  22. package/dist/cjs/stzh-chip-select.cjs.entry.js +55 -55
  23. package/dist/cjs/stzh-chip.cjs.entry.js +90 -90
  24. package/dist/cjs/stzh-components.cjs.js +2 -2
  25. package/dist/cjs/stzh-container.cjs.entry.js +8 -8
  26. package/dist/cjs/stzh-cspace.cjs.entry.js +12 -12
  27. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +92 -92
  28. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +12 -12
  29. package/dist/cjs/stzh-datatable.cjs.entry.js +201 -201
  30. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +456 -458
  31. package/dist/cjs/stzh-dialog.cjs.entry.js +180 -180
  32. package/dist/cjs/stzh-dropdown.cjs.entry.js +479 -452
  33. package/dist/cjs/stzh-fieldset.cjs.entry.js +24 -24
  34. package/dist/cjs/stzh-figure.cjs.entry.js +19 -19
  35. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +167 -167
  36. package/dist/cjs/stzh-footer.cjs.entry.js +56 -56
  37. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +132 -132
  38. package/dist/cjs/stzh-header.cjs.entry.js +151 -151
  39. package/dist/cjs/stzh-heading.cjs.entry.js +21 -21
  40. package/dist/cjs/stzh-hr.cjs.entry.js +12 -12
  41. package/dist/cjs/stzh-hspace.cjs.entry.js +30 -30
  42. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +9 -9
  43. package/dist/cjs/{stzh-input-description-9ed61d1d.js → stzh-input-description-9802abc2.js} +15 -15
  44. package/dist/cjs/stzh-input.cjs.entry.js +187 -182
  45. package/dist/cjs/stzh-link.cjs.entry.js +95 -95
  46. package/dist/cjs/stzh-list-item.cjs.entry.js +15 -15
  47. package/dist/cjs/stzh-list.cjs.entry.js +15 -15
  48. package/dist/cjs/stzh-loader.cjs.entry.js +20 -20
  49. package/dist/cjs/stzh-loadingbar.cjs.entry.js +22 -22
  50. package/dist/cjs/stzh-menu_2.cjs.entry.js +81 -81
  51. package/dist/cjs/stzh-message.cjs.entry.js +72 -72
  52. package/dist/cjs/stzh-metanav.cjs.entry.js +26 -26
  53. package/dist/cjs/stzh-overlay.cjs.entry.js +88 -88
  54. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +26 -26
  55. package/dist/cjs/stzh-pagetitle.cjs.entry.js +61 -61
  56. package/dist/cjs/stzh-popover.cjs.entry.js +349 -349
  57. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +13 -13
  58. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +46 -46
  59. package/dist/cjs/stzh-progressbar.cjs.entry.js +114 -114
  60. package/dist/cjs/stzh-readspeaker.cjs.entry.js +47 -47
  61. package/dist/cjs/stzh-row.cjs.entry.js +29 -29
  62. package/dist/cjs/stzh-saptcha.cjs.entry.js +70 -70
  63. package/dist/cjs/stzh-section.cjs.entry.js +13 -13
  64. package/dist/cjs/stzh-servicecard-list.cjs.entry.js +62 -45
  65. package/dist/cjs/stzh-servicecard.cjs.entry.js +224 -202
  66. package/dist/cjs/stzh-skiplink.cjs.entry.js +16 -16
  67. package/dist/cjs/stzh-sortable.cjs.entry.js +3485 -2712
  68. package/dist/cjs/stzh-status.cjs.entry.js +25 -25
  69. package/dist/cjs/stzh-table.cjs.entry.js +132 -132
  70. package/dist/cjs/stzh-toggle.cjs.entry.js +123 -123
  71. package/dist/cjs/stzh-tooltip.cjs.entry.js +310 -310
  72. package/dist/cjs/stzh-upload.cjs.entry.js +475 -442
  73. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +71 -71
  74. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +95 -95
  75. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +171 -171
  76. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +10 -10
  77. package/dist/cjs/stzh-vspace.cjs.entry.js +30 -30
  78. package/dist/cjs/{translation-utils-2dbbce94.js → translation-utils-73073e44.js} +54 -54
  79. package/dist/cjs/utils-8dc66449.js +76 -0
  80. package/dist/collection/assets/favicons/browserconfig.xml +9 -9
  81. package/dist/collection/assets/favicons/site.webmanifest +19 -19
  82. package/dist/collection/assets/fonts.css +39 -39
  83. package/dist/collection/assets/i18n/de.json +154 -154
  84. package/dist/collection/assets/i18n/en.json +154 -154
  85. package/dist/collection/assets/icons/mono/alarm-bell.svg +3 -3
  86. package/dist/collection/assets/icons/mono/angle-down.svg +3 -3
  87. package/dist/collection/assets/icons/mono/angle-left.svg +3 -3
  88. package/dist/collection/assets/icons/mono/angle-right.svg +3 -3
  89. package/dist/collection/assets/icons/mono/angle-up.svg +3 -3
  90. package/dist/collection/assets/icons/mono/archive-box.svg +3 -3
  91. package/dist/collection/assets/icons/mono/arrow-down.svg +3 -3
  92. package/dist/collection/assets/icons/mono/arrow-left-circle.svg +4 -4
  93. package/dist/collection/assets/icons/mono/arrow-left.svg +3 -3
  94. package/dist/collection/assets/icons/mono/arrow-right-long.svg +3 -3
  95. package/dist/collection/assets/icons/mono/arrow-right.svg +3 -3
  96. package/dist/collection/assets/icons/mono/arrow-up.svg +3 -3
  97. package/dist/collection/assets/icons/mono/bulleted-list.svg +3 -3
  98. package/dist/collection/assets/icons/mono/calendar.svg +3 -3
  99. package/dist/collection/assets/icons/mono/cart.svg +3 -3
  100. package/dist/collection/assets/icons/mono/checkmark-circle.svg +3 -3
  101. package/dist/collection/assets/icons/mono/checkmark.svg +3 -3
  102. package/dist/collection/assets/icons/mono/clock.svg +3 -3
  103. package/dist/collection/assets/icons/mono/close-circle.svg +3 -3
  104. package/dist/collection/assets/icons/mono/close.svg +3 -3
  105. package/dist/collection/assets/icons/mono/compass-direction.svg +3 -3
  106. package/dist/collection/assets/icons/mono/compass-north.svg +4 -4
  107. package/dist/collection/assets/icons/mono/construction.svg +3 -3
  108. package/dist/collection/assets/icons/mono/copy.svg +3 -3
  109. package/dist/collection/assets/icons/mono/delete.svg +3 -3
  110. package/dist/collection/assets/icons/mono/download.svg +3 -3
  111. package/dist/collection/assets/icons/mono/drag.svg +10 -10
  112. package/dist/collection/assets/icons/mono/edit.svg +3 -3
  113. package/dist/collection/assets/icons/mono/email-check.svg +10 -10
  114. package/dist/collection/assets/icons/mono/expand.svg +3 -3
  115. package/dist/collection/assets/icons/mono/external-link.svg +4 -4
  116. package/dist/collection/assets/icons/mono/facebook-comment.svg +3 -3
  117. package/dist/collection/assets/icons/mono/facebook.svg +10 -10
  118. package/dist/collection/assets/icons/mono/file.svg +3 -3
  119. package/dist/collection/assets/icons/mono/filtering.svg +3 -3
  120. package/dist/collection/assets/icons/mono/flag.svg +10 -10
  121. package/dist/collection/assets/icons/mono/focus.svg +3 -3
  122. package/dist/collection/assets/icons/mono/gear.svg +3 -3
  123. package/dist/collection/assets/icons/mono/heart.svg +10 -10
  124. package/dist/collection/assets/icons/mono/home.svg +10 -10
  125. package/dist/collection/assets/icons/mono/important-warning.svg +3 -3
  126. package/dist/collection/assets/icons/mono/info-help.svg +3 -3
  127. package/dist/collection/assets/icons/mono/instagram.svg +3 -3
  128. package/dist/collection/assets/icons/mono/like-hand.svg +10 -10
  129. package/dist/collection/assets/icons/mono/linkedin.svg +5 -5
  130. package/dist/collection/assets/icons/mono/list-expanded.svg +4 -4
  131. package/dist/collection/assets/icons/mono/list-shrinked.svg +3 -3
  132. package/dist/collection/assets/icons/mono/lock.svg +10 -10
  133. package/dist/collection/assets/icons/mono/mail.svg +10 -10
  134. package/dist/collection/assets/icons/mono/map.svg +3 -3
  135. package/dist/collection/assets/icons/mono/menu.svg +3 -3
  136. package/dist/collection/assets/icons/mono/minus.svg +3 -3
  137. package/dist/collection/assets/icons/mono/more-horizontal.svg +5 -5
  138. package/dist/collection/assets/icons/mono/more-vertical.svg +5 -5
  139. package/dist/collection/assets/icons/mono/paper-clip.svg +10 -10
  140. package/dist/collection/assets/icons/mono/phone.svg +10 -10
  141. package/dist/collection/assets/icons/mono/pin-location.svg +10 -10
  142. package/dist/collection/assets/icons/mono/pin.svg +11 -11
  143. package/dist/collection/assets/icons/mono/play-1.svg +4 -4
  144. package/dist/collection/assets/icons/mono/play-button.svg +11 -11
  145. package/dist/collection/assets/icons/mono/play.svg +10 -10
  146. package/dist/collection/assets/icons/mono/plus.svg +3 -3
  147. package/dist/collection/assets/icons/mono/portfolio-grid.svg +11 -11
  148. package/dist/collection/assets/icons/mono/print.svg +10 -10
  149. package/dist/collection/assets/icons/mono/question-help.svg +3 -3
  150. package/dist/collection/assets/icons/mono/read-mail.svg +10 -10
  151. package/dist/collection/assets/icons/mono/reload.svg +10 -10
  152. package/dist/collection/assets/icons/mono/reset-time.svg +10 -10
  153. package/dist/collection/assets/icons/mono/reset.svg +10 -10
  154. package/dist/collection/assets/icons/mono/resize.svg +8 -8
  155. package/dist/collection/assets/icons/mono/rss.svg +12 -12
  156. package/dist/collection/assets/icons/mono/search.svg +3 -3
  157. package/dist/collection/assets/icons/mono/services.svg +6 -6
  158. package/dist/collection/assets/icons/mono/share.svg +3 -3
  159. package/dist/collection/assets/icons/mono/shrink.svg +3 -3
  160. package/dist/collection/assets/icons/mono/silent-mode.svg +3 -3
  161. package/dist/collection/assets/icons/mono/social-media.svg +23 -23
  162. package/dist/collection/assets/icons/mono/star-filled.svg +3 -3
  163. package/dist/collection/assets/icons/mono/star.svg +3 -3
  164. package/dist/collection/assets/icons/mono/subtitle.svg +3 -3
  165. package/dist/collection/assets/icons/mono/team.svg +10 -10
  166. package/dist/collection/assets/icons/mono/text-message.svg +6 -6
  167. package/dist/collection/assets/icons/mono/thermometer.svg +10 -10
  168. package/dist/collection/assets/icons/mono/transcript.svg +3 -3
  169. package/dist/collection/assets/icons/mono/twitter-reply.svg +3 -3
  170. package/dist/collection/assets/icons/mono/twitter-retweet.svg +3 -3
  171. package/dist/collection/assets/icons/mono/twitter.svg +10 -10
  172. package/dist/collection/assets/icons/mono/unlock.svg +10 -10
  173. package/dist/collection/assets/icons/mono/user.svg +3 -3
  174. package/dist/collection/assets/icons/mono/view-hidden.svg +3 -3
  175. package/dist/collection/assets/icons/mono/view.svg +4 -4
  176. package/dist/collection/assets/icons/mono/volume-medium.svg +3 -3
  177. package/dist/collection/assets/icons/mono/warning-big.svg +4 -4
  178. package/dist/collection/assets/icons/mono/warning.svg +3 -3
  179. package/dist/collection/assets/icons/mono/web-Link.svg +3 -3
  180. package/dist/collection/assets/icons/mono/wifi-signal.svg +3 -3
  181. package/dist/collection/assets/icons/mono/world-globe.svg +10 -10
  182. package/dist/collection/assets/icons/mono/xing.svg +11 -11
  183. package/dist/collection/assets/polyfills/ie11CustomProperties.min.js +8 -8
  184. package/dist/collection/assets/polyfills/intersection-observer.min.js +7 -7
  185. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
  186. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
  187. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
  188. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
  189. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
  190. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
  191. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
  192. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
  193. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
  194. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
  195. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
  196. package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
  197. package/dist/collection/components/stzh-accordion/stzh-accordion.js +156 -156
  198. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +52 -52
  199. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +429 -429
  200. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +45 -45
  201. package/dist/collection/components/stzh-actions/stzh-actions.js +98 -98
  202. package/dist/collection/components/stzh-actions/stzh-actions.stories.js +66 -66
  203. package/dist/collection/components/stzh-appnav/stzh-appnav.js +112 -112
  204. package/dist/collection/components/stzh-appnav/stzh-appnav.stories.js +53 -53
  205. package/dist/collection/components/stzh-appointments/stzh-appointments.js +515 -515
  206. package/dist/collection/components/stzh-appointments/stzh-appointments.localization.js +1 -1
  207. package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +186 -186
  208. package/dist/collection/components/stzh-badge/stzh-badge.js +47 -47
  209. package/dist/collection/components/stzh-badge/stzh-badge.stories.js +36 -36
  210. package/dist/collection/components/stzh-button/stzh-button.js +516 -516
  211. package/dist/collection/components/stzh-button/stzh-button.stories.js +66 -66
  212. package/dist/collection/components/stzh-calendar/stzh-calendar-day.js +22 -22
  213. package/dist/collection/components/stzh-calendar/stzh-calendar-month.js +21 -21
  214. package/dist/collection/components/stzh-calendar/stzh-calendar.js +463 -463
  215. package/dist/collection/components/stzh-calendar/stzh-calendar.localization.js +1 -1
  216. package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +37 -37
  217. package/dist/collection/components/stzh-cell/stzh-cell.js +179 -179
  218. package/dist/collection/components/stzh-cell/stzh-cell.stories.js +39 -39
  219. package/dist/collection/components/stzh-checkbox/assets/check.svg +3 -3
  220. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +459 -459
  221. package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +38 -38
  222. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +448 -450
  223. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +39 -39
  224. package/dist/collection/components/stzh-chip/stzh-chip.js +407 -407
  225. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +64 -64
  226. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +158 -158
  227. package/dist/collection/components/stzh-chip-select/stzh-chip-select.stories.js +69 -69
  228. package/dist/collection/components/stzh-container/stzh-container.js +21 -21
  229. package/dist/collection/components/stzh-container/stzh-container.stories.js +35 -35
  230. package/dist/collection/components/stzh-cspace/stzh-cspace.css +6 -0
  231. package/dist/collection/components/stzh-cspace/stzh-cspace.js +24 -24
  232. package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +34 -34
  233. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +24 -24
  234. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +149 -149
  235. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +358 -358
  236. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.js +1 -1
  237. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +63 -63
  238. package/dist/collection/components/stzh-datatable/stzh-datatable.js +413 -413
  239. package/dist/collection/components/stzh-datatable/stzh-datatable.localization.js +1 -1
  240. package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +63 -63
  241. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +586 -586
  242. package/dist/collection/components/stzh-datepicker/stzh-datepicker.localization.js +1 -1
  243. package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +39 -39
  244. package/dist/collection/components/stzh-dialog/stzh-dialog.css +9 -1
  245. package/dist/collection/components/stzh-dialog/stzh-dialog.js +480 -480
  246. package/dist/collection/components/stzh-dialog/stzh-dialog.localization.js +1 -1
  247. package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +85 -75
  248. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +2 -4
  249. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1514 -1436
  250. package/dist/collection/components/stzh-dropdown/stzh-dropdown.localization.js +1 -1
  251. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +3437 -109
  252. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +120 -120
  253. package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +55 -55
  254. package/dist/collection/components/stzh-figure/stzh-figure.js +76 -76
  255. package/dist/collection/components/stzh-figure/stzh-figure.stories.js +36 -36
  256. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +253 -253
  257. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +27 -27
  258. package/dist/collection/components/stzh-footer/stzh-footer.js +147 -147
  259. package/dist/collection/components/stzh-footer/stzh-footer.localization.js +1 -1
  260. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +49 -49
  261. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +319 -319
  262. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.localization.js +1 -1
  263. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +49 -49
  264. package/dist/collection/components/stzh-header/stzh-header.js +267 -267
  265. package/dist/collection/components/stzh-header/stzh-header.stories.js +178 -178
  266. package/dist/collection/components/stzh-heading/stzh-heading.js +99 -99
  267. package/dist/collection/components/stzh-heading/stzh-heading.stories.js +37 -37
  268. package/dist/collection/components/stzh-hr/stzh-hr.js +25 -25
  269. package/dist/collection/components/stzh-hr/stzh-hr.stories.js +23 -23
  270. package/dist/collection/components/stzh-hspace/stzh-hspace.js +246 -246
  271. package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +73 -73
  272. package/dist/collection/components/stzh-icon/stzh-icon.js +76 -76
  273. package/dist/collection/components/stzh-icon/stzh-icon.stories.js +37 -37
  274. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
  275. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.js +19 -19
  276. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.stories.js +46 -46
  277. package/dist/collection/components/stzh-input/stzh-input-description.js +8 -8
  278. package/dist/collection/components/stzh-input/stzh-input.css +13 -4
  279. package/dist/collection/components/stzh-input/stzh-input.js +799 -724
  280. package/dist/collection/components/stzh-input/stzh-input.stories.js +116 -116
  281. package/dist/collection/components/stzh-link/stzh-link.js +427 -427
  282. package/dist/collection/components/stzh-link/stzh-link.stories.js +67 -67
  283. package/dist/collection/components/stzh-list/stzh-list.js +52 -52
  284. package/dist/collection/components/stzh-list/stzh-list.stories.js +42 -42
  285. package/dist/collection/components/stzh-list-item/assets/checkmark.svg +3 -3
  286. package/dist/collection/components/stzh-list-item/stzh-list-item.js +26 -26
  287. package/dist/collection/components/stzh-loader/stzh-loader.js +93 -93
  288. package/dist/collection/components/stzh-loader/stzh-loader.stories.js +36 -36
  289. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +94 -94
  290. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +34 -34
  291. package/dist/collection/components/stzh-menu/stzh-menu.js +21 -21
  292. package/dist/collection/components/stzh-menu/stzh-menu.stories.js +69 -69
  293. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +296 -296
  294. package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +52 -52
  295. package/dist/collection/components/stzh-message/stzh-message.js +287 -287
  296. package/dist/collection/components/stzh-message/stzh-message.localization.js +1 -1
  297. package/dist/collection/components/stzh-message/stzh-message.stories.js +40 -40
  298. package/dist/collection/components/stzh-metanav/stzh-metanav.js +41 -41
  299. package/dist/collection/components/stzh-metanav/stzh-metanav.stories.js +39 -39
  300. package/dist/collection/components/stzh-overlay/stzh-overlay.js +239 -239
  301. package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +50 -50
  302. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +41 -41
  303. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +43 -43
  304. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +76 -76
  305. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +107 -107
  306. package/dist/collection/components/stzh-popover/stzh-popover.js +673 -673
  307. package/dist/collection/components/stzh-popover/stzh-popover.localization.js +1 -1
  308. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +67 -67
  309. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +569 -578
  310. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +25 -25
  311. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +28 -28
  312. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +272 -272
  313. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +164 -164
  314. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +250 -250
  315. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +36 -36
  316. package/dist/collection/components/stzh-radio/stzh-radio.js +458 -458
  317. package/dist/collection/components/stzh-radio/stzh-radio.stories.js +38 -38
  318. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +477 -477
  319. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +39 -39
  320. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +114 -114
  321. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +50 -50
  322. package/dist/collection/components/stzh-richtext/stzh-richtext.js +90 -90
  323. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +79 -79
  324. package/dist/collection/components/stzh-row/stzh-row.js +207 -207
  325. package/dist/collection/components/stzh-row/stzh-row.stories.js +90 -90
  326. package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +221 -221
  327. package/dist/collection/components/stzh-saptcha/stzh-saptcha.localization.js +1 -1
  328. package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +34 -34
  329. package/dist/collection/components/stzh-section/stzh-section.js +50 -50
  330. package/dist/collection/components/stzh-section/stzh-section.stories.js +100 -100
  331. package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +4 -4
  332. package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +614 -592
  333. package/dist/collection/components/stzh-servicecard/stzh-servicecard.localization.js +1 -1
  334. package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +73 -73
  335. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +196 -153
  336. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.localization.js +1 -1
  337. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +116 -115
  338. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +106 -106
  339. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +53 -53
  340. package/dist/collection/components/stzh-sortable/stzh-sortable.js +530 -501
  341. package/dist/collection/components/stzh-sortable/stzh-sortable.localization.js +1 -1
  342. package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +34 -34
  343. package/dist/collection/components/stzh-status/stzh-status.js +115 -115
  344. package/dist/collection/components/stzh-status/stzh-status.stories.js +34 -34
  345. package/dist/collection/components/stzh-table/stzh-table.js +215 -215
  346. package/dist/collection/components/stzh-table/stzh-table.stories.js +89 -89
  347. package/dist/collection/components/stzh-text/stzh-text.js +232 -232
  348. package/dist/collection/components/stzh-text/stzh-text.stories.js +43 -43
  349. package/dist/collection/components/stzh-toggle/stzh-toggle.js +479 -479
  350. package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +38 -38
  351. package/dist/collection/components/stzh-tooltip/assets/arrow.svg +3 -3
  352. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +667 -667
  353. package/dist/collection/components/stzh-tooltip/stzh-tooltip.localization.js +1 -1
  354. package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +63 -63
  355. package/dist/collection/components/stzh-upload/stzh-upload.css +3 -0
  356. package/dist/collection/components/stzh-upload/stzh-upload.js +1391 -1358
  357. package/dist/collection/components/stzh-upload/stzh-upload.localization.js +1 -1
  358. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +71 -69
  359. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +229 -229
  360. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +36 -36
  361. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +236 -236
  362. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.js +1 -1
  363. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +52 -52
  364. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +292 -292
  365. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js +1 -1
  366. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +53 -53
  367. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +23 -23
  368. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +45 -45
  369. package/dist/collection/components/stzh-vspace/stzh-vspace.js +246 -246
  370. package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +73 -73
  371. package/dist/collection/global/js/helpers/autofocus.js +22 -20
  372. package/dist/collection/global/js/helpers/scrollbar-width.js +20 -20
  373. package/dist/collection/global/js/script.js +17 -17
  374. package/dist/collection/index.js +7 -7
  375. package/dist/collection/libraries/sortable.js +3791 -0
  376. package/dist/collection/pages/egov.stories.js +262 -262
  377. package/dist/collection/pages/example.stories.js +170 -170
  378. package/dist/collection/pages/meinkonto.stories.js +660 -660
  379. package/dist/collection/patterns/appointments.stories.js +43 -43
  380. package/dist/collection/patterns/processingscreen.stories.js +43 -43
  381. package/dist/collection/utils/animation-utils.js +51 -51
  382. package/dist/collection/utils/date-adapter.js +86 -86
  383. package/dist/collection/utils/date-utils.js +196 -196
  384. package/dist/collection/utils/decorators.js +15 -15
  385. package/dist/collection/utils/event-utils.js +14 -14
  386. package/dist/collection/utils/h.js +109 -109
  387. package/dist/collection/utils/media-utils.js +20 -20
  388. package/dist/collection/utils/string-utils.js +13 -13
  389. package/dist/collection/utils/test-utils.js +27 -27
  390. package/dist/collection/utils/translation-utils.js +55 -55
  391. package/dist/collection/utils/utils.js +80 -41
  392. package/dist/components/animation-utils.js +37 -37
  393. package/dist/components/arrow.js +3 -3
  394. package/dist/components/date-adapter.js +85 -85
  395. package/dist/components/event-utils.js +13 -13
  396. package/dist/components/index.js +43 -41
  397. package/dist/components/media-utils.js +19 -19
  398. package/dist/components/string-utils.js +12 -12
  399. package/dist/components/stzh-accordion-item.js +192 -192
  400. package/dist/components/stzh-accordion.js +81 -81
  401. package/dist/components/stzh-actions.js +58 -58
  402. package/dist/components/stzh-appnav.js +56 -56
  403. package/dist/components/stzh-appointments.js +343 -343
  404. package/dist/components/stzh-badge2.js +26 -26
  405. package/dist/components/stzh-button2.js +155 -155
  406. package/dist/components/stzh-calendar2.js +475 -475
  407. package/dist/components/stzh-cell.js +47 -47
  408. package/dist/components/stzh-checkbox.js +159 -159
  409. package/dist/components/stzh-checkboxgroup.js +190 -192
  410. package/dist/components/stzh-chip-select.js +93 -93
  411. package/dist/components/stzh-chip2.js +122 -122
  412. package/dist/components/stzh-container.js +22 -22
  413. package/dist/components/stzh-cspace.js +26 -26
  414. package/dist/components/stzh-datamessagelist-item.js +156 -156
  415. package/dist/components/stzh-datamessagelist.js +26 -26
  416. package/dist/components/stzh-datatable.js +255 -255
  417. package/dist/components/stzh-datepicker2.js +206 -206
  418. package/dist/components/stzh-dialog.js +215 -215
  419. package/dist/components/stzh-dropdown2.js +546 -516
  420. package/dist/components/stzh-fieldset.js +48 -48
  421. package/dist/components/stzh-figure.js +35 -35
  422. package/dist/components/stzh-flyingfocus.js +188 -188
  423. package/dist/components/stzh-footer.js +88 -88
  424. package/dist/components/stzh-ghettobox2.js +124 -124
  425. package/dist/components/stzh-header.js +174 -174
  426. package/dist/components/stzh-heading2.js +39 -39
  427. package/dist/components/stzh-hr.js +26 -26
  428. package/dist/components/stzh-hspace.js +54 -54
  429. package/dist/components/stzh-icon-sprite.js +23 -23
  430. package/dist/components/stzh-icon2.js +41 -41
  431. package/dist/components/stzh-input-description.js +15 -15
  432. package/dist/components/stzh-input2.js +249 -240
  433. package/dist/components/stzh-link2.js +134 -134
  434. package/dist/components/stzh-list-item.js +30 -30
  435. package/dist/components/stzh-list.js +32 -32
  436. package/dist/components/stzh-loader.js +38 -38
  437. package/dist/components/stzh-loadingbar.js +40 -40
  438. package/dist/components/stzh-menu-item2.js +106 -106
  439. package/dist/components/stzh-menu2.js +22 -22
  440. package/dist/components/stzh-message.js +100 -100
  441. package/dist/components/stzh-metanav.js +40 -40
  442. package/dist/components/stzh-overlay.js +108 -108
  443. package/dist/components/stzh-page-skiplinks.js +40 -40
  444. package/dist/components/stzh-pagetitle.js +74 -74
  445. package/dist/components/stzh-popover2.js +376 -376
  446. package/dist/components/stzh-portal-mitwirken.js +27 -27
  447. package/dist/components/stzh-progressbar-item2.js +74 -74
  448. package/dist/components/stzh-progressbar.js +146 -146
  449. package/dist/components/stzh-radio2.js +156 -156
  450. package/dist/components/stzh-radiogroup2.js +200 -202
  451. package/dist/components/stzh-readspeaker.js +63 -63
  452. package/dist/components/stzh-richtext2.js +57 -57
  453. package/dist/components/stzh-row.js +53 -53
  454. package/dist/components/stzh-saptcha.js +116 -116
  455. package/dist/components/stzh-section.js +29 -29
  456. package/dist/components/stzh-servicecard-list.js +102 -84
  457. package/dist/components/stzh-servicecard.js +286 -264
  458. package/dist/components/stzh-skiplink.js +35 -35
  459. package/dist/components/stzh-sortable2.js +3510 -2736
  460. package/dist/components/stzh-status2.js +44 -44
  461. package/dist/components/stzh-table.js +153 -153
  462. package/dist/components/stzh-text2.js +57 -57
  463. package/dist/components/stzh-toggle.js +160 -160
  464. package/dist/components/stzh-tooltip2.js +340 -340
  465. package/dist/components/stzh-upload.js +537 -504
  466. package/dist/components/stzh-vbz-linechip2.js +96 -96
  467. package/dist/components/stzh-vbz-majorticker.js +139 -139
  468. package/dist/components/stzh-vbz-ticker.js +214 -214
  469. package/dist/components/stzh-visuallyhidden.js +24 -24
  470. package/dist/components/stzh-vspace.js +54 -54
  471. package/dist/components/translation-utils.js +54 -54
  472. package/dist/components/utils.js +70 -31
  473. package/dist/esm/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +37 -37
  474. package/dist/esm/{app-globals-137e106c.js → app-globals-c42494e9.js} +44 -42
  475. package/dist/esm/{arrow-18769ca6.js → arrow-86a679c7.js} +3 -3
  476. package/dist/esm/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +85 -85
  477. package/dist/esm/{date-utils-282e96fe.js → date-utils-be83fff1.js} +156 -156
  478. package/dist/esm/{event-utils-68b64805.js → event-utils-7a709e21.js} +13 -13
  479. package/dist/esm/loader.js +2 -2
  480. package/dist/esm/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +19 -19
  481. package/dist/esm/polyfills/core-js.js +0 -0
  482. package/dist/esm/polyfills/dom.js +0 -0
  483. package/dist/esm/polyfills/es5-html-element.js +0 -0
  484. package/dist/esm/polyfills/index.js +0 -0
  485. package/dist/esm/polyfills/system.js +0 -0
  486. package/dist/esm/{string-utils-33181845.js → string-utils-f98ee4e8.js} +12 -12
  487. package/dist/esm/stzh-accordion-item.entry.js +170 -170
  488. package/dist/esm/stzh-accordion.entry.js +63 -63
  489. package/dist/esm/stzh-actions.entry.js +42 -42
  490. package/dist/esm/stzh-appnav.entry.js +39 -39
  491. package/dist/esm/stzh-appointments.entry.js +260 -260
  492. package/dist/esm/stzh-badge_3.entry.js +146 -146
  493. package/dist/esm/stzh-calendar.entry.js +291 -291
  494. package/dist/esm/stzh-cell.entry.js +24 -24
  495. package/dist/esm/stzh-checkbox.entry.js +123 -123
  496. package/dist/esm/stzh-checkboxgroup.entry.js +155 -157
  497. package/dist/esm/stzh-chip-select.entry.js +55 -55
  498. package/dist/esm/stzh-chip.entry.js +90 -90
  499. package/dist/esm/stzh-components.js +2 -2
  500. package/dist/esm/stzh-container.entry.js +8 -8
  501. package/dist/esm/stzh-cspace.entry.js +12 -12
  502. package/dist/esm/stzh-datamessagelist-item.entry.js +92 -92
  503. package/dist/esm/stzh-datamessagelist.entry.js +12 -12
  504. package/dist/esm/stzh-datatable.entry.js +201 -201
  505. package/dist/esm/stzh-datepicker_4.entry.js +456 -458
  506. package/dist/esm/stzh-dialog.entry.js +180 -180
  507. package/dist/esm/stzh-dropdown.entry.js +479 -452
  508. package/dist/esm/stzh-fieldset.entry.js +24 -24
  509. package/dist/esm/stzh-figure.entry.js +19 -19
  510. package/dist/esm/stzh-flyingfocus.entry.js +167 -167
  511. package/dist/esm/stzh-footer.entry.js +56 -56
  512. package/dist/esm/stzh-ghettobox_2.entry.js +132 -132
  513. package/dist/esm/stzh-header.entry.js +151 -151
  514. package/dist/esm/stzh-heading.entry.js +21 -21
  515. package/dist/esm/stzh-hr.entry.js +12 -12
  516. package/dist/esm/stzh-hspace.entry.js +30 -30
  517. package/dist/esm/stzh-icon-sprite.entry.js +9 -9
  518. package/dist/esm/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +15 -15
  519. package/dist/esm/stzh-input.entry.js +187 -182
  520. package/dist/esm/stzh-link.entry.js +95 -95
  521. package/dist/esm/stzh-list-item.entry.js +15 -15
  522. package/dist/esm/stzh-list.entry.js +15 -15
  523. package/dist/esm/stzh-loader.entry.js +20 -20
  524. package/dist/esm/stzh-loadingbar.entry.js +22 -22
  525. package/dist/esm/stzh-menu_2.entry.js +81 -81
  526. package/dist/esm/stzh-message.entry.js +72 -72
  527. package/dist/esm/stzh-metanav.entry.js +26 -26
  528. package/dist/esm/stzh-overlay.entry.js +88 -88
  529. package/dist/esm/stzh-page-skiplinks.entry.js +26 -26
  530. package/dist/esm/stzh-pagetitle.entry.js +61 -61
  531. package/dist/esm/stzh-popover.entry.js +349 -349
  532. package/dist/esm/stzh-portal-mitwirken.entry.js +13 -13
  533. package/dist/esm/stzh-progressbar-item.entry.js +46 -46
  534. package/dist/esm/stzh-progressbar.entry.js +114 -114
  535. package/dist/esm/stzh-readspeaker.entry.js +47 -47
  536. package/dist/esm/stzh-row.entry.js +29 -29
  537. package/dist/esm/stzh-saptcha.entry.js +70 -70
  538. package/dist/esm/stzh-section.entry.js +13 -13
  539. package/dist/esm/stzh-servicecard-list.entry.js +62 -45
  540. package/dist/esm/stzh-servicecard.entry.js +224 -202
  541. package/dist/esm/stzh-skiplink.entry.js +16 -16
  542. package/dist/esm/stzh-sortable.entry.js +3485 -2712
  543. package/dist/esm/stzh-status.entry.js +25 -25
  544. package/dist/esm/stzh-table.entry.js +132 -132
  545. package/dist/esm/stzh-toggle.entry.js +123 -123
  546. package/dist/esm/stzh-tooltip.entry.js +310 -310
  547. package/dist/esm/stzh-upload.entry.js +475 -442
  548. package/dist/esm/stzh-vbz-linechip.entry.js +71 -71
  549. package/dist/esm/stzh-vbz-majorticker.entry.js +95 -95
  550. package/dist/esm/stzh-vbz-ticker.entry.js +171 -171
  551. package/dist/esm/stzh-visuallyhidden.entry.js +10 -10
  552. package/dist/esm/stzh-vspace.entry.js +30 -30
  553. package/dist/esm/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +54 -54
  554. package/dist/esm/utils-68a28fce.js +72 -0
  555. package/dist/esm-es5/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +0 -0
  556. package/dist/esm-es5/app-globals-c42494e9.js +1 -0
  557. package/dist/esm-es5/{arrow-18769ca6.js → arrow-86a679c7.js} +0 -0
  558. package/dist/esm-es5/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +0 -0
  559. package/dist/esm-es5/{date-utils-282e96fe.js → date-utils-be83fff1.js} +0 -0
  560. package/dist/esm-es5/{event-utils-68b64805.js → event-utils-7a709e21.js} +0 -0
  561. package/dist/esm-es5/loader.js +1 -1
  562. package/dist/esm-es5/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +0 -0
  563. package/dist/esm-es5/{string-utils-33181845.js → string-utils-f98ee4e8.js} +0 -0
  564. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  565. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  566. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  567. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  568. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  569. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  570. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  571. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  572. package/dist/esm-es5/stzh-components.js +1 -1
  573. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  574. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  575. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  576. package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
  577. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  578. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  579. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  580. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  581. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  582. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  583. package/dist/esm-es5/stzh-header.entry.js +1 -1
  584. package/dist/esm-es5/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +0 -0
  585. package/dist/esm-es5/stzh-input.entry.js +1 -1
  586. package/dist/esm-es5/stzh-link.entry.js +1 -1
  587. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  588. package/dist/esm-es5/stzh-message.entry.js +1 -1
  589. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  590. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  591. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  592. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  593. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  594. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  595. package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -1
  596. package/dist/esm-es5/stzh-servicecard.entry.js +1 -1
  597. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  598. package/dist/esm-es5/stzh-table.entry.js +1 -1
  599. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  600. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  601. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  602. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  603. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  604. package/dist/esm-es5/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +0 -0
  605. package/dist/esm-es5/utils-68a28fce.js +1 -0
  606. package/dist/stzh-components/assets/favicons/browserconfig.xml +9 -9
  607. package/dist/stzh-components/assets/favicons/site.webmanifest +19 -19
  608. package/dist/stzh-components/assets/fonts.css +39 -39
  609. package/dist/stzh-components/assets/i18n/de.json +154 -154
  610. package/dist/stzh-components/assets/i18n/en.json +154 -154
  611. package/dist/stzh-components/assets/icons/mono/alarm-bell.svg +3 -3
  612. package/dist/stzh-components/assets/icons/mono/angle-down.svg +3 -3
  613. package/dist/stzh-components/assets/icons/mono/angle-left.svg +3 -3
  614. package/dist/stzh-components/assets/icons/mono/angle-right.svg +3 -3
  615. package/dist/stzh-components/assets/icons/mono/angle-up.svg +3 -3
  616. package/dist/stzh-components/assets/icons/mono/archive-box.svg +3 -3
  617. package/dist/stzh-components/assets/icons/mono/arrow-down.svg +3 -3
  618. package/dist/stzh-components/assets/icons/mono/arrow-left-circle.svg +4 -4
  619. package/dist/stzh-components/assets/icons/mono/arrow-left.svg +3 -3
  620. package/dist/stzh-components/assets/icons/mono/arrow-right-long.svg +3 -3
  621. package/dist/stzh-components/assets/icons/mono/arrow-right.svg +3 -3
  622. package/dist/stzh-components/assets/icons/mono/arrow-up.svg +3 -3
  623. package/dist/stzh-components/assets/icons/mono/bulleted-list.svg +3 -3
  624. package/dist/stzh-components/assets/icons/mono/calendar.svg +3 -3
  625. package/dist/stzh-components/assets/icons/mono/cart.svg +3 -3
  626. package/dist/stzh-components/assets/icons/mono/checkmark-circle.svg +3 -3
  627. package/dist/stzh-components/assets/icons/mono/checkmark.svg +3 -3
  628. package/dist/stzh-components/assets/icons/mono/clock.svg +3 -3
  629. package/dist/stzh-components/assets/icons/mono/close-circle.svg +3 -3
  630. package/dist/stzh-components/assets/icons/mono/close.svg +3 -3
  631. package/dist/stzh-components/assets/icons/mono/compass-direction.svg +3 -3
  632. package/dist/stzh-components/assets/icons/mono/compass-north.svg +4 -4
  633. package/dist/stzh-components/assets/icons/mono/construction.svg +3 -3
  634. package/dist/stzh-components/assets/icons/mono/copy.svg +3 -3
  635. package/dist/stzh-components/assets/icons/mono/delete.svg +3 -3
  636. package/dist/stzh-components/assets/icons/mono/download.svg +3 -3
  637. package/dist/stzh-components/assets/icons/mono/drag.svg +10 -10
  638. package/dist/stzh-components/assets/icons/mono/edit.svg +3 -3
  639. package/dist/stzh-components/assets/icons/mono/email-check.svg +10 -10
  640. package/dist/stzh-components/assets/icons/mono/expand.svg +3 -3
  641. package/dist/stzh-components/assets/icons/mono/external-link.svg +4 -4
  642. package/dist/stzh-components/assets/icons/mono/facebook-comment.svg +3 -3
  643. package/dist/stzh-components/assets/icons/mono/facebook.svg +10 -10
  644. package/dist/stzh-components/assets/icons/mono/file.svg +3 -3
  645. package/dist/stzh-components/assets/icons/mono/filtering.svg +3 -3
  646. package/dist/stzh-components/assets/icons/mono/flag.svg +10 -10
  647. package/dist/stzh-components/assets/icons/mono/focus.svg +3 -3
  648. package/dist/stzh-components/assets/icons/mono/gear.svg +3 -3
  649. package/dist/stzh-components/assets/icons/mono/heart.svg +10 -10
  650. package/dist/stzh-components/assets/icons/mono/home.svg +10 -10
  651. package/dist/stzh-components/assets/icons/mono/important-warning.svg +3 -3
  652. package/dist/stzh-components/assets/icons/mono/info-help.svg +3 -3
  653. package/dist/stzh-components/assets/icons/mono/instagram.svg +3 -3
  654. package/dist/stzh-components/assets/icons/mono/like-hand.svg +10 -10
  655. package/dist/stzh-components/assets/icons/mono/linkedin.svg +5 -5
  656. package/dist/stzh-components/assets/icons/mono/list-expanded.svg +4 -4
  657. package/dist/stzh-components/assets/icons/mono/list-shrinked.svg +3 -3
  658. package/dist/stzh-components/assets/icons/mono/lock.svg +10 -10
  659. package/dist/stzh-components/assets/icons/mono/mail.svg +10 -10
  660. package/dist/stzh-components/assets/icons/mono/map.svg +3 -3
  661. package/dist/stzh-components/assets/icons/mono/menu.svg +3 -3
  662. package/dist/stzh-components/assets/icons/mono/minus.svg +3 -3
  663. package/dist/stzh-components/assets/icons/mono/more-horizontal.svg +5 -5
  664. package/dist/stzh-components/assets/icons/mono/more-vertical.svg +5 -5
  665. package/dist/stzh-components/assets/icons/mono/paper-clip.svg +10 -10
  666. package/dist/stzh-components/assets/icons/mono/phone.svg +10 -10
  667. package/dist/stzh-components/assets/icons/mono/pin-location.svg +10 -10
  668. package/dist/stzh-components/assets/icons/mono/pin.svg +11 -11
  669. package/dist/stzh-components/assets/icons/mono/play-1.svg +4 -4
  670. package/dist/stzh-components/assets/icons/mono/play-button.svg +11 -11
  671. package/dist/stzh-components/assets/icons/mono/play.svg +10 -10
  672. package/dist/stzh-components/assets/icons/mono/plus.svg +3 -3
  673. package/dist/stzh-components/assets/icons/mono/portfolio-grid.svg +11 -11
  674. package/dist/stzh-components/assets/icons/mono/print.svg +10 -10
  675. package/dist/stzh-components/assets/icons/mono/question-help.svg +3 -3
  676. package/dist/stzh-components/assets/icons/mono/read-mail.svg +10 -10
  677. package/dist/stzh-components/assets/icons/mono/reload.svg +10 -10
  678. package/dist/stzh-components/assets/icons/mono/reset-time.svg +10 -10
  679. package/dist/stzh-components/assets/icons/mono/reset.svg +10 -10
  680. package/dist/stzh-components/assets/icons/mono/resize.svg +8 -8
  681. package/dist/stzh-components/assets/icons/mono/rss.svg +12 -12
  682. package/dist/stzh-components/assets/icons/mono/search.svg +3 -3
  683. package/dist/stzh-components/assets/icons/mono/services.svg +6 -6
  684. package/dist/stzh-components/assets/icons/mono/share.svg +3 -3
  685. package/dist/stzh-components/assets/icons/mono/shrink.svg +3 -3
  686. package/dist/stzh-components/assets/icons/mono/silent-mode.svg +3 -3
  687. package/dist/stzh-components/assets/icons/mono/social-media.svg +23 -23
  688. package/dist/stzh-components/assets/icons/mono/star-filled.svg +3 -3
  689. package/dist/stzh-components/assets/icons/mono/star.svg +3 -3
  690. package/dist/stzh-components/assets/icons/mono/subtitle.svg +3 -3
  691. package/dist/stzh-components/assets/icons/mono/team.svg +10 -10
  692. package/dist/stzh-components/assets/icons/mono/text-message.svg +6 -6
  693. package/dist/stzh-components/assets/icons/mono/thermometer.svg +10 -10
  694. package/dist/stzh-components/assets/icons/mono/transcript.svg +3 -3
  695. package/dist/stzh-components/assets/icons/mono/twitter-reply.svg +3 -3
  696. package/dist/stzh-components/assets/icons/mono/twitter-retweet.svg +3 -3
  697. package/dist/stzh-components/assets/icons/mono/twitter.svg +10 -10
  698. package/dist/stzh-components/assets/icons/mono/unlock.svg +10 -10
  699. package/dist/stzh-components/assets/icons/mono/user.svg +3 -3
  700. package/dist/stzh-components/assets/icons/mono/view-hidden.svg +3 -3
  701. package/dist/stzh-components/assets/icons/mono/view.svg +4 -4
  702. package/dist/stzh-components/assets/icons/mono/volume-medium.svg +3 -3
  703. package/dist/stzh-components/assets/icons/mono/warning-big.svg +4 -4
  704. package/dist/stzh-components/assets/icons/mono/warning.svg +3 -3
  705. package/dist/stzh-components/assets/icons/mono/web-Link.svg +3 -3
  706. package/dist/stzh-components/assets/icons/mono/wifi-signal.svg +3 -3
  707. package/dist/stzh-components/assets/icons/mono/world-globe.svg +10 -10
  708. package/dist/stzh-components/assets/icons/mono/xing.svg +11 -11
  709. package/dist/stzh-components/assets/polyfills/ie11CustomProperties.min.js +8 -8
  710. package/dist/stzh-components/assets/polyfills/intersection-observer.min.js +7 -7
  711. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
  712. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
  713. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
  714. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
  715. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
  716. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
  717. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
  718. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
  719. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
  720. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
  721. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
  722. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
  723. package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
  724. package/dist/stzh-components/{p-59bdb14a.system.entry.js → p-006135ed.system.entry.js} +1 -1
  725. package/dist/stzh-components/p-0230004d.system.js +1 -0
  726. package/dist/stzh-components/{p-f0422b6c.entry.js → p-03e2634c.entry.js} +1 -1
  727. package/dist/stzh-components/{p-25afa99e.entry.js → p-04d7b18f.entry.js} +1 -1
  728. package/dist/stzh-components/{p-73d51acc.system.entry.js → p-07772cd7.system.entry.js} +1 -1
  729. package/dist/stzh-components/p-08d4ed80.entry.js +1 -0
  730. package/dist/stzh-components/{p-3e3e4bfd.system.js → p-11816251.system.js} +0 -0
  731. package/dist/stzh-components/{p-d790a367.entry.js → p-11d0c8f3.entry.js} +1 -1
  732. package/dist/stzh-components/{p-bb900d9f.entry.js → p-14d728f0.entry.js} +1 -1
  733. package/dist/stzh-components/{p-f481f21d.system.js → p-176db2fe.system.js} +0 -0
  734. package/dist/stzh-components/{p-c2218965.system.entry.js → p-1c88ceff.system.entry.js} +1 -1
  735. package/dist/stzh-components/{p-9fe34fe8.system.js → p-1e4b4d71.system.js} +0 -0
  736. package/dist/stzh-components/{p-160c6e5f.system.entry.js → p-1f15a4e0.system.entry.js} +1 -1
  737. package/dist/stzh-components/p-1f57d28e.js +1 -0
  738. package/dist/stzh-components/{p-1a40a6e4.js → p-25a09313.js} +0 -0
  739. package/dist/stzh-components/{p-320aedf7.js → p-2a5855f8.js} +0 -0
  740. package/dist/stzh-components/p-2b11d549.system.entry.js +1 -0
  741. package/dist/stzh-components/{p-99195f5a.system.js → p-309d2b66.system.js} +0 -0
  742. package/dist/stzh-components/{p-bf5b6523.entry.js → p-32988d74.entry.js} +1 -1
  743. package/dist/stzh-components/{p-8ba6ca80.js → p-32b78d65.js} +0 -0
  744. package/dist/stzh-components/{p-1e2ee622.system.entry.js → p-33946fed.system.entry.js} +1 -1
  745. package/dist/stzh-components/{p-b06cc533.entry.js → p-33d75303.entry.js} +1 -1
  746. package/dist/stzh-components/{p-22f948e2.entry.js → p-34190502.entry.js} +1 -1
  747. package/dist/stzh-components/{p-45d4e9b4.system.entry.js → p-346e26f2.system.entry.js} +1 -1
  748. package/dist/stzh-components/{p-b24040ff.system.entry.js → p-370b82e7.system.entry.js} +1 -1
  749. package/dist/stzh-components/{p-740dd50f.entry.js → p-3c799247.entry.js} +1 -1
  750. package/dist/stzh-components/p-3ebd2c03.js +1 -0
  751. package/dist/stzh-components/{p-b3b05b6c.entry.js → p-3ed69b16.entry.js} +1 -1
  752. package/dist/stzh-components/{p-22fba26d.entry.js → p-409c0d50.entry.js} +1 -1
  753. package/dist/stzh-components/{p-3410ef5a.system.entry.js → p-48bbcc26.system.entry.js} +1 -1
  754. package/dist/stzh-components/{p-af47430b.system.entry.js → p-4a398453.system.entry.js} +1 -1
  755. package/dist/stzh-components/p-4c61dcad.js +4 -4
  756. package/dist/stzh-components/{p-a499fa98.system.entry.js → p-4e9bfeb8.system.entry.js} +1 -1
  757. package/dist/stzh-components/{p-4c68fa45.system.js → p-5318ba20.system.js} +0 -0
  758. package/dist/stzh-components/{p-3eb7b6b4.entry.js → p-586cae98.entry.js} +1 -1
  759. package/dist/stzh-components/{p-3afe13ac.system.entry.js → p-58ffc722.system.entry.js} +1 -1
  760. package/dist/stzh-components/p-5e0cccc9.system.entry.js +1 -0
  761. package/dist/stzh-components/{p-3ca5c2e6.system.entry.js → p-5ea652ae.system.entry.js} +1 -1
  762. package/dist/stzh-components/{p-5f20178b.system.js → p-6267a327.system.js} +0 -0
  763. package/dist/stzh-components/{p-ac9e6d17.system.entry.js → p-68a8b7b7.system.entry.js} +1 -1
  764. package/dist/stzh-components/{p-1aaa5112.system.entry.js → p-6c3b2508.system.entry.js} +1 -1
  765. package/dist/stzh-components/{p-4b69a3e8.system.entry.js → p-6edd58a4.system.entry.js} +1 -1
  766. package/dist/stzh-components/{p-c3ac1bdc.system.entry.js → p-6fc271d0.system.entry.js} +1 -1
  767. package/dist/stzh-components/{p-7c6f9cb3.entry.js → p-73194e28.entry.js} +1 -1
  768. package/dist/stzh-components/{p-81d9f3e0.js → p-77a00e55.js} +0 -0
  769. package/dist/stzh-components/p-7921db30.system.entry.js +1 -0
  770. package/dist/stzh-components/p-79bfc485.entry.js +1 -0
  771. package/dist/stzh-components/{p-79770abe.system.entry.js → p-7a6e347d.system.entry.js} +2 -2
  772. package/dist/stzh-components/{p-cd29b7ca.entry.js → p-7bb1bd3b.entry.js} +1 -1
  773. package/dist/stzh-components/{p-649164c7.entry.js → p-7d098987.entry.js} +1 -1
  774. package/dist/stzh-components/{p-b9e4095d.entry.js → p-7d2237ca.entry.js} +1 -1
  775. package/dist/stzh-components/{p-927901f5.system.entry.js → p-7d62dfeb.system.entry.js} +1 -1
  776. package/dist/stzh-components/{p-efb9fa47.system.entry.js → p-87ab53c4.system.entry.js} +1 -1
  777. package/dist/stzh-components/{p-1f3e6fad.system.entry.js → p-88a4f756.system.entry.js} +1 -1
  778. package/dist/stzh-components/{p-b1976630.entry.js → p-8a60addb.entry.js} +1 -1
  779. package/dist/stzh-components/{p-ab2727e6.entry.js → p-8bd3ba06.entry.js} +1 -1
  780. package/dist/stzh-components/{p-a8c3af68.system.entry.js → p-8db4279d.system.entry.js} +1 -1
  781. package/dist/stzh-components/{p-e1b64b8a.system.entry.js → p-90a10825.system.entry.js} +1 -1
  782. package/dist/stzh-components/{p-0c2b5907.js → p-9111e257.js} +0 -0
  783. package/dist/stzh-components/{p-67eac0a0.entry.js → p-95a297aa.entry.js} +1 -1
  784. package/dist/stzh-components/{p-a42a7524.entry.js → p-95eb03b2.entry.js} +1 -1
  785. package/dist/stzh-components/p-983f6070.entry.js +1 -0
  786. package/dist/stzh-components/{p-d2f660e1.system.js → p-9c0494a6.system.js} +0 -0
  787. package/dist/stzh-components/{p-582cf0f1.system.js → p-a408bfba.system.js} +0 -0
  788. package/dist/stzh-components/p-a7253852.entry.js +1 -0
  789. package/dist/stzh-components/{p-c51a61cb.system.entry.js → p-a760352a.system.entry.js} +1 -1
  790. package/dist/stzh-components/{p-e00139a1.entry.js → p-a86c6487.entry.js} +1 -1
  791. package/dist/stzh-components/p-aaa2e48f.system.js +1 -0
  792. package/dist/stzh-components/p-b281b653.entry.js +8 -0
  793. package/dist/stzh-components/p-b35b0270.entry.js +1 -0
  794. package/dist/stzh-components/{p-17258518.entry.js → p-b3b5ee7e.entry.js} +1 -1
  795. package/dist/stzh-components/p-b4fc71ff.system.entry.js +1 -0
  796. package/dist/stzh-components/{p-bb91feeb.entry.js → p-bb2e1dda.entry.js} +1 -1
  797. package/dist/stzh-components/{p-301841e3.entry.js → p-bdba7714.entry.js} +1 -1
  798. package/dist/stzh-components/p-c581e798.system.entry.js +1 -0
  799. package/dist/stzh-components/p-c7c17bb7.system.entry.js +7 -0
  800. package/dist/stzh-components/{p-da8218fa.system.entry.js → p-c863ffd0.system.entry.js} +1 -1
  801. package/dist/stzh-components/{p-649621fc.js → p-c8bcceac.js} +0 -0
  802. package/dist/stzh-components/{p-ffa293cf.entry.js → p-cf162e67.entry.js} +1 -1
  803. package/dist/stzh-components/{p-a7454367.js → p-cf6003d6.js} +0 -0
  804. package/dist/stzh-components/{p-4b8893d1.entry.js → p-d8471675.entry.js} +1 -1
  805. package/dist/stzh-components/{p-0433fff9.system.entry.js → p-da063c7e.system.entry.js} +1 -1
  806. package/dist/stzh-components/{p-0e9e4c68.entry.js → p-debb00e6.entry.js} +1 -1
  807. package/dist/stzh-components/{p-e69a66bb.js → p-df2bb358.js} +0 -0
  808. package/dist/stzh-components/p-e12db90a.entry.js +1 -0
  809. package/dist/stzh-components/{p-a5b616bb.system.entry.js → p-e2ce48f1.system.entry.js} +1 -1
  810. package/dist/stzh-components/{p-08cc711a.system.entry.js → p-e972a44f.system.entry.js} +1 -1
  811. package/dist/stzh-components/{p-6113bb25.entry.js → p-ec3d4dd4.entry.js} +1 -1
  812. package/dist/stzh-components/p-ee5ceac4.entry.js +1 -0
  813. package/dist/stzh-components/{p-648695c2.js → p-ee7a68db.js} +0 -0
  814. package/dist/stzh-components/p-ef5d4167.js +1 -1
  815. package/dist/stzh-components/p-f0ca6848.system.entry.js +1 -0
  816. package/dist/stzh-components/{p-63bf05f1.system.entry.js → p-f1a58a7c.system.entry.js} +1 -1
  817. package/dist/stzh-components/{p-afa7061e.entry.js → p-f2050d1e.entry.js} +1 -1
  818. package/dist/stzh-components/{p-a7785d9b.system.js → p-f58c28ad.system.js} +0 -0
  819. package/dist/stzh-components/{p-75f1b800.entry.js → p-f610f725.entry.js} +1 -1
  820. package/dist/stzh-components/p-faf20030.system.js +1 -0
  821. package/dist/stzh-components/{p-4e9e606f.entry.js → p-fba76dba.entry.js} +1 -1
  822. package/dist/stzh-components/{p-ab864a8a.system.entry.js → p-fc9c4fc3.system.entry.js} +1 -1
  823. package/dist/stzh-components/{p-6d23fb4d.system.entry.js → p-fce0e218.system.entry.js} +1 -1
  824. package/dist/stzh-components/{p-efd78d08.system.entry.js → p-fd16e20e.system.entry.js} +1 -1
  825. package/dist/stzh-components/stzh-components.css +1 -1
  826. package/dist/stzh-components/stzh-components.esm.js +1 -1
  827. package/dist/stzh-components/stzh-components.js +1 -1
  828. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +11 -11
  829. package/dist/types/components/stzh-badge/stzh-badge.d.ts +8 -8
  830. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +14 -14
  831. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +21 -21
  832. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +7 -7
  833. package/dist/types/components/stzh-cell/stzh-cell.d.ts +21 -21
  834. package/dist/types/components/stzh-container/stzh-container.d.ts +6 -6
  835. package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +6 -6
  836. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +4 -4
  837. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +4 -4
  838. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +5 -5
  839. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +4 -4
  840. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +7 -7
  841. package/dist/types/components/stzh-fieldset/stzh-fieldset.d.ts +15 -15
  842. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +9 -9
  843. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +5 -5
  844. package/dist/types/components/stzh-heading/stzh-heading.d.ts +13 -13
  845. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +25 -25
  846. package/dist/types/components/stzh-icon/stzh-icon.d.ts +15 -15
  847. package/dist/types/components/stzh-icon-sprite/stzh-icon-sprite.d.ts +3 -3
  848. package/dist/types/components/stzh-input/stzh-input-description.d.ts +11 -11
  849. package/dist/types/components/stzh-menu/stzh-menu.d.ts +6 -6
  850. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +4 -4
  851. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +4 -4
  852. package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +8 -8
  853. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +22 -22
  854. package/dist/types/components/stzh-row/stzh-row.d.ts +23 -23
  855. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +7 -7
  856. package/dist/types/components/stzh-section/stzh-section.d.ts +8 -8
  857. package/dist/types/components/stzh-servicecard/stzh-servicecard.localization.d.ts +8 -8
  858. package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.localization.d.ts +5 -5
  859. package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +16 -16
  860. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +8 -8
  861. package/dist/types/components/stzh-text/stzh-text.d.ts +23 -23
  862. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +4 -4
  863. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +16 -16
  864. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +4 -4
  865. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +15 -15
  866. package/dist/types/components/stzh-visuallyhidden/stzh-visuallyhidden.d.ts +6 -6
  867. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +25 -25
  868. package/dist/types/components.d.ts +68 -2
  869. package/dist/types/index.d.ts +428 -427
  870. package/dist/types/utils/animation-utils.d.ts +10 -10
  871. package/dist/types/utils/date-adapter.d.ts +8 -8
  872. package/dist/types/utils/date-utils.d.ts +61 -61
  873. package/dist/types/utils/event-utils.d.ts +1 -1
  874. package/dist/types/utils/h.d.ts +18 -18
  875. package/dist/types/utils/media-utils.d.ts +3 -3
  876. package/dist/types/utils/string-utils.d.ts +2 -2
  877. package/dist/types/utils/test-utils.d.ts +9 -9
  878. package/dist/types/utils/translation-utils.d.ts +40 -40
  879. package/dist/types/utils/utils.d.ts +5 -3
  880. package/dist/vscode-data.json +84 -61
  881. package/package.json +1 -1
  882. package/dist/cjs/utils-e84f4a8d.js +0 -36
  883. package/dist/esm/utils-c5d68020.js +0 -33
  884. package/dist/esm-es5/app-globals-137e106c.js +0 -1
  885. package/dist/esm-es5/utils-c5d68020.js +0 -1
  886. package/dist/stzh-components/p-323fdc2f.entry.js +0 -1
  887. package/dist/stzh-components/p-3da37219.entry.js +0 -8
  888. package/dist/stzh-components/p-42430cdf.js +0 -1
  889. package/dist/stzh-components/p-4476344d.js +0 -1
  890. package/dist/stzh-components/p-58b8d309.system.entry.js +0 -1
  891. package/dist/stzh-components/p-5977373f.system.js +0 -1
  892. package/dist/stzh-components/p-87140179.system.entry.js +0 -1
  893. package/dist/stzh-components/p-91e9ccfa.entry.js +0 -1
  894. package/dist/stzh-components/p-95a3c962.system.entry.js +0 -1
  895. package/dist/stzh-components/p-9be4e960.entry.js +0 -1
  896. package/dist/stzh-components/p-adaf8b15.entry.js +0 -1
  897. package/dist/stzh-components/p-af819e4e.system.js +0 -1
  898. package/dist/stzh-components/p-b56c83a4.entry.js +0 -1
  899. package/dist/stzh-components/p-d1821750.system.entry.js +0 -1
  900. package/dist/stzh-components/p-d7b5770c.entry.js +0 -1
  901. package/dist/stzh-components/p-d8819b74.system.entry.js +0 -1
  902. package/dist/stzh-components/p-e029f6c5.system.entry.js +0 -1
  903. package/dist/stzh-components/p-e3769e97.system.js +0 -1
  904. package/dist/stzh-components/p-ebf73698.entry.js +0 -1
  905. package/dist/stzh-components/p-f8bb1bed.system.entry.js +0 -7
  906. package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +0 -15
  907. package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -44
  908. package/dist/types/components/stzh-actions/stzh-actions.d.ts +0 -16
  909. package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +0 -17
  910. package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +0 -73
  911. package/dist/types/components/stzh-button/stzh-button.d.ts +0 -59
  912. package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +0 -76
  913. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +0 -55
  914. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +0 -62
  915. package/dist/types/components/stzh-chip/stzh-chip.d.ts +0 -47
  916. package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +0 -23
  917. package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +0 -6
  918. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +0 -44
  919. package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +0 -49
  920. package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +0 -93
  921. package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +0 -59
  922. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +0 -150
  923. package/dist/types/components/stzh-figure/stzh-figure.d.ts +0 -13
  924. package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +0 -39
  925. package/dist/types/components/stzh-footer/stzh-footer.d.ts +0 -21
  926. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +0 -49
  927. package/dist/types/components/stzh-header/stzh-header.d.ts +0 -57
  928. package/dist/types/components/stzh-hr/stzh-hr.d.ts +0 -7
  929. package/dist/types/components/stzh-input/stzh-input.d.ts +0 -95
  930. package/dist/types/components/stzh-link/stzh-link.d.ts +0 -50
  931. package/dist/types/components/stzh-list/stzh-list.d.ts +0 -9
  932. package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +0 -7
  933. package/dist/types/components/stzh-loader/stzh-loader.d.ts +0 -13
  934. package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +0 -12
  935. package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +0 -35
  936. package/dist/types/components/stzh-message/stzh-message.d.ts +0 -36
  937. package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +0 -11
  938. package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +0 -34
  939. package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +0 -11
  940. package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +0 -11
  941. package/dist/types/components/stzh-popover/stzh-popover.d.ts +0 -73
  942. package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +0 -42
  943. package/dist/types/components/stzh-radio/stzh-radio.d.ts +0 -55
  944. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +0 -64
  945. package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +0 -18
  946. package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +0 -14
  947. package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +0 -28
  948. package/dist/types/components/stzh-servicecard/stzh-servicecard.d.ts +0 -72
  949. package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.d.ts +0 -23
  950. package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +0 -52
  951. package/dist/types/components/stzh-status/stzh-status.d.ts +0 -14
  952. package/dist/types/components/stzh-table/stzh-table.d.ts +0 -33
  953. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +0 -57
  954. package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +0 -78
  955. package/dist/types/components/stzh-upload/stzh-upload.d.ts +0 -207
  956. package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +0 -27
  957. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +0 -34
  958. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +0 -54
  959. package/dist/types/types/svg.d.ts +0 -4
@@ -1,1241 +1,1241 @@
1
- ReadSpeaker.ui = function () {
2
- var a = null, f = [], p = [], x = !1, v = function (h) {
3
- h = h || window.event;
4
- h.returnValue = !1;
5
- if (h = h.originalEvent)h.cancelBubble = !0, h.returnValue = !1;
6
- h && h.preventDefault && h.preventDefault();
7
- h && h.stopPropagation && h.stopPropagation()
8
- }, n = function () {
9
- rspkr.log("[rspkr.ui] Attempting to add click events.");
10
- var h = $rs.get("." + rspkr.ui.rsbtnClass + " a.rsbtn_play"), a = null;
11
- $rs.isArray(h) || (h = [h]);
12
- for (var b = 0, c = h.length; b < c; b++)if ($rs.unregEvent(h[b], "click", ReadSpeakerDefer.clickhandler), a = h[b] ? $rs.getAttr(h[b],
13
- "data-rsevent-id") : "_bogus_", rspkr.l.f.eq.store[a] && rspkr.l.f.eq.store[a].click)rspkr.log("[rspkr.ui] Click event already existed on " + h[b], 2); else {
14
- $rs.regEvent(h[b], "click", function (g) {
15
- v(g);
16
- window.readpage(this)
17
- });
18
- rspkr.ui.addFocusHandler(h[b], !0, h[b].parentNode);
19
- rspkr.log("[rspkr.ui] Added click event to: " + h[b], 1);
20
- try {
21
- $rs.getAttr(h[b], "role") || $rs.setAttr(h[b], "role", "button")
22
- } catch (f) {
23
- rspkr.log("[rspkr.ui] Could not add role attribute.", 2)
24
- }
25
- }
26
- }, y = function () {
27
- rspkr.log("[rspkr.ui] Initiating global callbacks");
28
- rspkr.ui.rsbtnClass = rspkr.cfg.item("ui.rsbtnClass") || "rsbtn";
29
- window.readpage = function (h, b) {
30
- rspkr.ui.initrun && rspkr.ui.showPlayer(h, b)
31
- };
32
- window.rshlexit = function (h) {
33
- rspkr.HL.chunking && rspkr.HL.chunking.destroy();
34
- (void 0 === h || "false" === h) && a.stop();
35
- setTimeout(function () {
36
- rspkr.c.dispatchEvent("onAfterSyncExit", window)
37
- }, 1E3)
38
- };
39
- window.rshlinit = l().sync.init;
40
- window.rshlsetContent = l().sync.setContent;
41
- window.rshlsetId = l().sync.setId;
42
- window.rshlsync = function (h, b) {
43
- for (var a = h.split(","), c = b.split(","), g = 0, j =
44
- h.length; g < j; g++)l().sync.execute(a[g], c[g])
45
- };
46
- window.rshlcontinue = function () {
47
- function h(g) {
48
- if (!rspkr.HL.chunking.entracte.src) {
49
- var g = encodeURIComponent(decodeURIComponent(rs.cfg.getPhrase(g))), a = {}, b;
50
- for (b in rspkr.c.data.params)rspkr.c.data.params.hasOwnProperty(b) && (a[b] = rspkr.c.data.params[b]);
51
- b = rspkr.Common.data.selectedText;
52
- var c = rspkr.Common.data.selectedHTML;
53
- rspkr.Common.data.selectedText = g;
54
- rspkr.Common.data.selectedHTML = "";
55
- a.text = g;
56
- a.output = "audio";
57
- g = rspkr.c.buildReadSpeakerCall(a);
58
- rspkr.HL.chunking.entracte.src =
59
- g;
60
- rspkr.Common.data.selectedText = b;
61
- rspkr.Common.data.selectedHTML = c
62
- }
63
- rspkr.HL.chunking.entracte.volume = parseFloat((rspkr.st.get("hlvol") || 100) / 100);
64
- rspkr.HL.chunking.entracte.play()
65
- }
66
-
67
- if (rspkr.HL.chunking) {
68
- rspkr.log("[rspkr.ui.rshlcontinue]");
69
- rspkr.HL.chunking.chunkEnded = !0;
70
- var b = $rs.get("#sync" + rspkr.HL.html5.synclist[rspkr.HL.html5.synclist.length - 1][2]), b = $rs.offset(b);
71
- if (rspkr.HL.chunking.continueHref) {
72
- var a = rspkr.cfg.item("cb.chunking.pause", void 0, !0);
73
- if (-1 == rspkr.HL.chunking.continueTime)if (rspkr.log("[rspkr.ui.rshlcontinue] Waiting for user interaction"),
74
- rs.ui.getActivePlayer().pause(), $rs.addClass(rspkr.ui.getActivePlayer().getContainer(), "rsautopaused"), h("chunkcontinue"), a && "function" == typeof a)rspkr.log("[rspkr.ui.rshlcontinue] Running custom callback", 3), a(); else {
75
- rspkr.log("[rspkr.ui.rshlcontinue] Showing default continue button");
76
- a = document.createElement("div");
77
- a.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
78
- $rs.addClass(a, rspkr.ui.rsbtnClass + " rspopup rsresume");
79
- var c = $rs.findIn(a, "a");
80
- c.removeAttribute("href");
81
- $rs.regEvent(c, "click",
82
- function () {
83
- rspkr.c.dispatchEvent("onChunkResume", window)
84
- });
85
- $rs.findIn(c, ".rsbtn_text").innerHTML = "<span>" + rs.cfg.getPhrase("chunkbutton") + "</span>";
86
- document.body.appendChild(a);
87
- a.style.display = "block";
88
- b.left += 15;
89
- c = b.left + $rs.width(a) - $rs.width(window);
90
- 0 < c && (b.left -= c);
91
- a.style.left = b.left + "px";
92
- a.style.top = b.top + 15 + "px"
93
- } else 0 == rspkr.HL.chunking.continueTime ? (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay"), rspkr.c.dispatchEvent("onChunkResume", window)) : isNaN(rspkr.HL.chunking.continueTime) ? rspkr.log("[rshlcontinue] Invalid time parameter!",
94
- 3) : (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay with " + rspkr.HL.chunking.continueTime + " seconds delay"), 5 <= rspkr.HL.chunking.continueTime && h("chunkwait"), a && "function" == typeof a && a(rspkr.HL.chunking.continueTime), rspkr.HL.chunking.stall = !0, setTimeout(function () {
95
- rspkr.HL.chunking.stall = !1
96
- }, 1E3 * rspkr.HL.chunking.continueTime), rspkr.HL.chunking.timer = setTimeout(function () {
97
- rspkr.c.dispatchEvent("onChunkResume", window)
98
- }, 1E3 * rspkr.HL.chunking.continueTime))
99
- } else rspkr.log("[rshlcontinue] No continue href found!")
100
- }
101
- };
102
- var h = rspkr.c.data.browser;
103
- h && (/iphone|ipad|ios|android/i.test(h.OS) || "android" == h.name.toLowerCase()) ? $rs.regEvent(document.body, "touchend", function (h) {
104
- rspkr.c.data.setSelectedText(h);
105
- return!0
106
- }) : ($rs.regEvent(document.body, "mousedown", function (h) {
107
- rspkr.ui.setPointerPos(h);
108
- return!0
109
- }), $rs.regEvent(document.body, "mouseup", function (a) {
110
- "opera" === h.name.toLowerCase() ? setTimeout(function () {
111
- rspkr.c.data.setSelectedText(a)
112
- }, 50) : rspkr.c.data.setSelectedText(a);
113
- return!0
114
- }), $rs.regEvent(window, "mouseup", function (a) {
115
- "opera" ===
116
- h.name.toLowerCase() ? setTimeout(function () {
117
- rspkr.c.data.setSelectedText(a)
118
- }, 50) : rspkr.c.data.setSelectedText(a);
119
- return!0
120
- }), $rs.regEvent(document.body, "keydown", rspkr.ui.setPointerPos), $rs.regEvent(document.body, "keyup", function (h) {
121
- rspkr.c.data.setSelectedText(h);
122
- return!0
123
- }))
124
- }, q = function () {
125
- document.removeEventListener ? document.removeEventListener("click", window.ReadSpeakerDefer.clickhandler, !1) : document.detachEvent && document.detachEvent("onclick", window.ReadSpeakerDefer.clickhandler);
126
- if (ReadSpeakerDefer.deferred) {
127
- var h =
128
- ReadSpeakerDefer.deferred, a = null;
129
- if ("a" != h.tagName.toLowerCase()) {
130
- for (a = h; "body" != a.tagName.toLowerCase() && !(a = a.parentNode, "a" == a.tagName.toLowerCase()););
131
- h = a
132
- }
133
- ReadSpeakerDefer.isRSLink(h) && (rspkr.log("[rspkr.ui] Activating deferred element: " + h), $rs.removeClass(h.parentNode, "rsdeferred"), rspkr.ui.showPlayer(h));
134
- ReadSpeakerDefer.deferred = null
135
- }
136
- }, w = null, e = function () {
137
- w && $rs.isVisible(w) && (rspkr.log("[rspkr.ui.updateFocus] " + w.outerHTML), t(w))
138
- }, t = function (h) {
139
- $rs.focus && ("function" == typeof $rs.focus &&
140
- h) && $rs.focus(h)
141
- }, b = function (h) {
142
- if ("iconon" == rspkr.st.get("hlicon") && !x) {
143
- var a = p.push(new k) - 1;
144
- p[a].id = a;
145
- p[a].show(h);
146
- x = !0
147
- }
148
- }, c = function () {
149
- "iconon" == rspkr.st.get("hlicon") && x && (p.pop().hide(), x = !1)
150
- }, k = function () {
151
- var h = 0, a = 0, b = null, c = 52, f = null, g = null, j = null, e = function (g) {
152
- g = g || b;
153
- $rs.addClass(g, rspkr.ui.rsbtnClass + " rspopup");
154
- rspkr.cfg.item("general.useCompactPopupButton") && $rs.addClass(g, "rscompact")
155
- }, k = function (h) {
156
- $rs.unregEvent(b, "mouseout", i);
157
- window.clearTimeout(f);
158
- var a, c = b.clientWidth + 10, u;
159
- g = rspkr.ui.showPlayer(j,
160
- b, !0);
161
- u = g.getWidth();
162
- a = parseInt($rs.offset(b).left);
163
- if ((a = rspkr.ui.viewport.width + $rs.scrollLeft(document) - a) < u)a = parseInt($rs.css(b, "left")) - (u - (c - 10)), $rs.css(b, "left", a + "px");
164
- x = !1;
165
- $rs.unregEvent(j, "click", k);
166
- $rs.regEvent(j, "click", function (a) {
167
- v(a);
168
- return g.restart()
169
- });
170
- v(h);
171
- return!1
172
- }, i = function () {
173
- f || (f = window.setTimeout(function () {
174
- n()
175
- }, rspkr.cfg.item("general.popupCloseTime") || 2E3))
176
- }, m = function () {
177
- f && (window.clearTimeout(f), f = null)
178
- }, r = function (g, a) {
179
- var h = document.body.getBoundingClientRect();
180
- $rs.css(b,
181
- {top: a - h.top + "px", left: g - h.left + "px", width: c + "px"})
182
- }, n = function () {
183
- $rs.css(b, {display: "none", top: 0, left: 0});
184
- m();
185
- p.splice(null, 1);
186
- x = !1;
187
- b.parentElement.removeChild(b)
188
- }, l = rspkr.c.findFirstRSButton(), b = document.createElement("div");
189
- b.id = rspkr.getID();
190
- b.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
191
- e();
192
- j = $rs.findIn(b, "a.rsbtn_play");
193
- j.href = l ? l.href : null;
194
- if (l = rspkr.cfg.item("general.popupHref"))j.href = l;
195
- var l = j.href.match(/lang=([^&;]*)/i).pop(), q = $rs.findIn($rs.get(b), "a.rsbtn_play span.rsbtn_text span");
196
- q && (q.textContent = q.innerText = rspkr.cfg.getPhrase("listen", l, "en_us"));
197
- $rs.setAttr(j, "title", rspkr.cfg.getPhrase("listentoselectedtext", l, "en_us"));
198
- $rs.regEvent(j, "click", k);
199
- document.body.appendChild(b);
200
- return{setPos: r, show: function (g) {
201
- m(g);
202
- if (g && "none" == $rs.css(b, "display")) {
203
- var j = b.cloneNode(!0);
204
- j.id = rspkr.getID();
205
- $rs.css(j, {display: "block", position: "absolute", top: 0, left: 0});
206
- document.body.appendChild(j);
207
- c = $rs.outerWidth(j) + 3;
208
- document.body.removeChild(j);
209
- j = g.clientX || g.pageX;
210
- g = g.clientY || g.pageY;
211
- a = g > rspkr.ui.pointerY ? g - $rs.scrollTop(document) + 36 > rspkr.ui.viewport.height - 46 ? g - 66 : g + 30 : 10 > g - $rs.scrollTop(document) - 66 ? g + 30 : g - 51;
212
- h = 10 > j - $rs.scrollLeft(document) ? j + 10 : j - $rs.scrollLeft(document) > rspkr.ui.viewport.width - (c + 10) ? rspkr.ui.viewport.width + $rs.scrollLeft(document) - (c + 10) : j + 0;
213
- r(h, a)
214
- }
215
- $rs.regEvent(b, "mouseout", i);
216
- $rs.regEvent(b, "mouseover", m);
217
- i(null);
218
- e();
219
- $rs.css(b, "display", "block")
220
- }, hide: n, id: null}
221
- }, i = {update: function (h, b, c) {
222
- "hlspeed" === h && b !== c && (h = h.replace("hl", ""), rspkr.c.converter[h] &&
223
- "function" == typeof rspkr.c.converter[h] && (b = rspkr.c.converter[h](b)), rspkr.c.data[h] = b, a && a.stop(), rspkr.pl.releaseAdapter())
224
- }}, m = function (a, b, c, f, e, g) {
225
- $rs.css(a, "background-color", "rgb(" + b + "," + c + "," + f + ")");
226
- f < e ? (f += 10, window.setTimeout(function () {
227
- m(a, b, c, f, e, g)
228
- }, 50)) : g && "function" === typeof g && g.apply(a, [])
229
- }, l = function () {
230
- return rspkr.XP ? rspkr.XP : rspkr.HL
231
- };
232
- _expand = function (a) {
233
- "string" == typeof a && (a = $rs.get(a));
234
- $rs.isArray(a) || (a = [a]);
235
- for (var b = rspkr.c.data.browser, c = function (g) {
236
- return $rs.closest(g,
237
- "div." + rspkr.ui.rsbtnClass)
238
- }, f = function () {
239
- k(this)
240
- }, e = function () {
241
- var g = $rs.findIn(c(this), ".rsbtn_play");
242
- $rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
243
- k(this);
244
- g.click()
245
- }, g = function () {
246
- $rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
247
- k(this)
248
- }, j = function () {
249
- var g = c(this);
250
- rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function () {
251
- rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
252
- rspkr.cfg.execCallback("cb.ui.settingsopened", g)
253
- })
254
- }, k = function (a) {
255
- a =
256
- c(a);
257
- $rs.unregEvent($rs.findIn(a, ".rsbtn_pause"), "click", e);
258
- $rs.unregEvent($rs.findIn(a, ".rsbtn_closer"), "click", g);
259
- $rs.unregEvent($rs.findIn(a, ".rsbtn_settings"), "click", j);
260
- $rs.unregEvent($rs.findIn(a, ".rsbtn_play"), "click", f);
261
- $rs.removeClass(a, "pre-expanded")
262
- }, i = 0; i < a.length; i++) {
263
- $rs.addClass(a[i], "rsexpanded rsstopped");
264
- var m = $rs.findIn(a[i], ".rsbtn_powered");
265
- if (m) {
266
- var l = $rs.findIn(m, ".rsbtn_btnlabel"), r = rs.cfg.getPhrase("speechenabled") || "", n = (r.match(/.*href="([^"]*)"/i) || []).pop(), p = rs.cfg.getPhrase("newwindow"),
267
- q = document.createElement("p");
268
- q.innerHTML = r;
269
- p = (q.innerText || q.textContent) + (p ? " (" + p + ")" : "");
270
- l && (l.innerHTML = r);
271
- $rs.setAttr(m, "title", p);
272
- $rs.setAttr(m, "data-readspeaker-href", n);
273
- l = $rs.getAttr(m, "data-rsevent-id");
274
- (!l || rs.l.f.eq.store[l] && !rs.l.f.eq.store[l].click) && $rs.regEvent(m, "click", function () {
275
- window.open($rs.getAttr(this, "data-readspeaker-href"))
276
- });
277
- if (m = $rs.findIn(m, ".rsbtn_btnlabel a"))(/Chrome|Safari|Opera/gi.test(b.name) || /Explorer/gi.test(b.name) && 8 <= b.version) && $rs.regEvent(m, "click", function (g) {
278
- v(g)
279
- }),
280
- m.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>'
281
- }
282
- $rs.addClass(a[i], "pre-expanded");
283
- $rs.removeClass($rs.findIn(a[i], ".rsbtn_progress_container"), "rsloading");
284
- $rs.regEvent($rs.findIn(a[i], ".rsbtn_closer"), "click", g);
285
- $rs.regEvent($rs.findIn(a[i], ".rsbtn_pause"), "click", e);
286
- $rs.regEvent($rs.findIn(a[i], ".rsbtn_play"), "click", f);
287
- $rs.regEvent($rs.findIn(a[i], ".rsbtn_settings"), "click", j)
288
- }
289
- };
290
- _animate = function () {
291
- var a =
292
- rs.cfg.item("ui.animate");
293
- if (a) {
294
- var b, c = 15, f = 500;
295
- "object" == typeof a ? (a.id && (b = $rs.get(a.id)), a.count && (c = a.count), a.interval && (f = a.interval)) : "string" === typeof a && (b = $rs.get(a));
296
- if ("boolean" === typeof a && a || $rs.isArray(b) && 0 == b.length || !b)b = $rs.get("." + rs.ui.rsbtnClass);
297
- $rs.isArray(b) || (b = [b]);
298
- var e = c, g = setInterval(function () {
299
- 0 == e && ($rs.removeClass(b, "rsanimate"), clearInterval(g));
300
- 1 == e-- % 2 ? $rs.addClass(b, "rsanimate") : $rs.removeClass(b, "rsanimate")
301
- }, f)
302
- }
303
- };
304
- return{meta: {revision: "3253"}, initrun: !1, init: function () {
305
- evt =
306
- rspkr.Common.addEvent;
307
- ui = rspkr.ui;
308
- evt("onAfterModsLoaded", y);
309
- evt("onReady", n);
310
- evt("onReady", q);
311
- evt("onReady", _animate);
312
- evt("onSelectedText", b);
313
- evt("onDeselectedText", c);
314
- evt("onSettingsChanged", i.update);
315
- evt("onAfterSyncInit", e);
316
- this.initrun = !0;
317
- rspkr.Common.dispatchEvent("onUIInitialized");
318
- rspkr.log("[rspkr.ui] Initialized!")
319
- }, addFocusHandler: function (a, b, c) {
320
- var f = b, e = c, e = e || a;
321
- void 0 === f && (f = !0);
322
- $rs.focusIn && "function" == typeof $rs.focusIn && ($rs.focusIn(a, function () {
323
- $rs.addClass(e, "rsfocus");
324
- !0 === f &&
325
- (w = a);
326
- rspkr.Common.dispatchEvent("onFocusIn", window, [a, e])
327
- }), $rs.focusOut(a, function () {
328
- $rs.removeClass(e, "rsfocus");
329
- rspkr.Common.dispatchEvent("onFocusOut", window, [a, e])
330
- }))
331
- }, focus: function (a) {
332
- t(a)
333
- }, updateFocus: function () {
334
- e()
335
- }, showOverlay: function (b, c) {
336
- var f = b, e;
337
- e = c || a.getContainer();
338
- var k = $rs.findIn(e, ".rsbtn_status");
339
- 0 === k.length && (k = document.createElement("span"), k.className = "rsbtn_status_overlay", k.innerHTML = '<span class="rsbtn_status"></span>', $rs.findIn(e, ".rsbtn_exp").appendChild(k), k = $rs.findIn(e,
340
- ".rsbtn_status"));
341
- $rs.css($rs.findIn(e, ".rsbtn_status_overlay"), "display", "block");
342
- if ("nosound" === f)f = '<a class="rsbtn_nosound">' + rspkr.cfg.getPhrase("nosound") + "</a>", k.innerHTML = f, (f = $rs.findIn(e, ".rsbtn_nosound")) && $rs.regEvent(f, "click", function () {
343
- return a.nosound()
344
- }); else if ("loaderror" === f) {
345
- var f = rspkr.c.data.getSaveData("link"), g = document.createElement("a");
346
- g.className = "rsbtn_loaderror";
347
- g.innerHTML = "[?]";
348
- g.href = f;
349
- $rs.regEvent(g, "click", function (a) {
350
- rspkr.ui.Lightbox.show("<iframe src='" + g.href +
351
- "' style='height:100%'></iframe>", null, !1, null, 300);
352
- v(a)
353
- });
354
- k.innerHTML = rspkr.cfg.getPhrase("loaderror") || "An error has occurred, try again";
355
- k.appendChild(g)
356
- } else k.innerHTML = f
357
- }, settings: i, rsbtnClass: "", addClickEvents: function () {
358
- n()
359
- }, initGlobalCallbacks: function () {
360
- y()
361
- }, showPopupIcon: function (a) {
362
- b(a)
363
- }, processDeferred: function () {
364
- q()
365
- }, showPlayer: function (b, c, e) {
366
- var k;
367
- a:{
368
- var i = e;
369
- rspkr.log("[rspkr.ui.showPlayer]");
370
- i = i || !1;
371
- if ("string" == typeof b)b:{
372
- for (var e = $rs.get("a"), g = 0, j = e.length; g < j; g++)if (e[g].href &&
373
- e[g].href == b) {
374
- e = e[g];
375
- break b
376
- }
377
- e = !1
378
- } else e = b;
379
- e = (g = e) ? $rs.closest(g, ".rsexpanded") : void 0;
380
- j = rspkr.HL.chunking ? rspkr.HL.chunking.currentChunkNumber : 1;
381
- if (e && !$rs.isArray(e) && rspkr.ui.getActivePlayer() && 1 == j)rspkr.log("Player already active, calling Player.restart() instead"), rspkr.ui.getActivePlayer().restart(), k = void 0; else {
382
- rspkr.HL.chunking && rspkr.HL.chunking.destroy();
383
- rspkr.HL.chunking && rspkr.HL.chunking.html5support && (rspkr.HL.chunking.entracte = new Audio, rspkr.HL.chunking.entracte.play(), rspkr.HL.chunking.entracte.pause());
384
- rspkr.c.dispatchEvent("onBeforeParamsSet", window, [g]);
385
- e = "string" == typeof b ? b : g.href;
386
- j = null;
387
- "string" == typeof b && (b = e.match(/readid=[^&]+/gi), j = e.match(/readclass=[^&]+/gi), b && 0 < b.length && rspkr.HL.Restore.Storage.readId.push(b[0].replace("readid=", "").split(",")), j && 0 < j.length && rspkr.HL.Restore.Storage.readClass.push(j[0].replace("readclass=", "").split(",")));
388
- rspkr.c.data.selectedHTML = "";
389
- rspkr.c.data.setParams(e);
390
- void 0 !== $rs.getAttr(g, "data-target") && null !== $rs.getAttr(g, "data-target") && (b = $rs.getAttr(g,
391
- "data-target"), b = $rs.get(b), "object" === typeof b && (c = b));
392
- c && !i ? (j = $rs.get(c), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsfloating"), rspkr.basicMode && ($rs.removeClass(j, "rshidden"), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsvisible"))) : j = $rs.closest(g, "div." + rspkr.ui.rsbtnClass);
393
- if (!0 === rspkr.cfg.item("survey.allowed"))if (c = rspkr.c.cookie, i = rspkr.cfg.item("survey.cookieName") || "rspkrsurvey", b = rspkr.cfg.item("survey.cookieLifetime") || 15552E6, g = rspkr.c.data.params, "1" === c.readKey(i, "nmbrdisplays")) {
394
- rspkr.ui.Lightbox.show(rspkr.cfg.item("survey.url") +
395
- "?customerid=" + g.customerid + "&lang=" + g.lang, rspkr.st.r().replaceTokens(rspkr.cfg.item("ui.survey.buttons").join(), {rsSURVEY_BUTTON_CLOSErs: rspkr.cfg.getPhrase("close")}), !0, function () {
396
- $rs.regEvent($rs.get("#rssurvey_button_close"), "click", rspkr.u.Lightbox.hide)
397
- }, 500);
398
- rspkr.log(c.updateKey(i, "nmbrdisplays", "displayed", b), 4);
399
- k = void 0;
400
- break a
401
- } else void 0 === c.readKey(i, "nmbrdisplays") && rspkr.log(c.updateKey(i, "nmbrdisplays", "1", b), 4);
402
- b:{
403
- c = j;
404
- for (k in f)if (f[k] && f[k].getContainer && f[k].getContainer() ==
405
- c) {
406
- k = f[k];
407
- break b
408
- }
409
- k = new rspkr.ui.Player(c);
410
- f.push(k)
411
- }
412
- if (a && a != k || a && e !== a.getHref())a.close(!0), rspkr.c.dispatchEvent("onUIClosePlayer", a.getContainer(), [0 < rspkr.c.data.selectedText.length ? "textsel" : "nosel"]);
413
- c = (c = a) ? c.getID() : null;
414
- rspkr.c.dispatchEvent("onUIShowPlayer", window, [c, k.getID()]);
415
- k.setHref(e);
416
- a = k;
417
- k.show();
418
- k = a
419
- }
420
- }
421
- return k
422
- }, expand: function (a) {
423
- _expand(a)
424
- }, pointerX: 0, pointerY: 0, setPointerPos: function (a) {
425
- rspkr.ui.pointerX = a.pageX;
426
- rspkr.ui.pointerY = a.pageY;
427
- return!0
428
- }, viewport: {width: $rs.width(window),
429
- height: $rs.height(window)}, popups: p, hl: function (a, b) {
430
- window.setTimeout(function () {
431
- m(a, 255, 255, 100, 255, b)
432
- }, 200)
433
- }, scroll: {INTERVAL: null, STEPS: 25, scrollToElm: function (a) {
434
- $rs.isVisible(a) && this.initScroll(a)
435
- }, scrollToAnchor: function (a) {
436
- for (var b = $rs.get("a"), c = null, e = 0; e < b.length; e++) {
437
- var f = b[e];
438
- if (f.name && f.name == a) {
439
- c = f;
440
- break
441
- }
442
- }
443
- this.initScroll(c)
444
- }, initScroll: function (a) {
445
- if (a) {
446
- for (var b = a.offsetTop, c = a; c.offsetParent && c.offsetParent != document.body;)c = c.offsetParent, b += c.offsetTop;
447
- b -= 50;
448
- rs.cfg.item("ui.autoscrollOffset") && !isNaN(rs.cfg.item("ui.autoscrollOffset")) && (b -= rs.cfg.item("ui.autoscrollOffset"));
449
- clearInterval(rspkr.u.scroll.INTERVAL);
450
- var c = rspkr.u.scroll.getCurrentYPos(), e = parseInt((b - c) / rspkr.u.scroll.STEPS);
451
- rspkr.u.scroll.INTERVAL = setInterval(function () {
452
- rspkr.u.scroll.scrollWindow(e, b, a)
453
- }, 10)
454
- } else document.location.hash = a
455
- }, getCurrentYPos: function () {
456
- return document.body && document.body.scrollTop ? document.body.scrollTop : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop :
457
- window.pageYOffset ? window.pageYOffset : 0
458
- }, scrollWindow: function (a, b, c) {
459
- var e = rspkr.u.scroll.getCurrentYPos(), f = e < b;
460
- window.scrollTo(0, e + a);
461
- a = rspkr.u.scroll.getCurrentYPos();
462
- if (f != a < b || e == a)window.scrollTo(0, b), clearInterval(rspkr.u.scroll.INTERVAL), "string" == typeof c && (location.hash = c)
463
- }}, activePlayer: a, getActivePlayer: function () {
464
- return a
465
- }}
466
- }();
467
- ReadSpeaker.ui.Slider = function () {
468
- var a = this, f = {handleClass: "", width: 0, height: 0, left: 0, top: 0, steps: -1, stepsize: -1, dir: "h", initval: -1, drop: null, start: null, dragging: null, click: null, labelDragHandle: "", labelStart: "", labelEnd: "", nudge: 1}, p = {rsid: void 0, parent: void 0, ref: void 0}, x = void 0, v = void 0, n = void 0, y = void 0, q = void 0, w = !1, e = 0, t = function (a) {
469
- a = a || window.event;
470
- a.returnValue = !1;
471
- if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
472
- a && a.preventDefault && a.preventDefault();
473
- a && a.stopPropagation && a.stopPropagation()
474
- };
475
- this.initElement = function (a) {
476
- if (!w) {
477
- "string" == typeof a && (a = document.getElementById(a));
478
- a.innerHTML += '<a href="javascript:void(0);" role="slider" class="keyLink" style="display:block; border:0;">&#160;</a>';
479
- var c = a.getElementsByTagName("a"), c = c[c.length - 1], k = -1 < f.steps ? f.steps : 100;
480
- c.relatedElement = a;
481
- $rs.setAttr(c, "title", f.labelDragHandle);
482
- $rs.setAttr(c, "aria-label", f.labelDragHandle);
483
- $rs.setAttr(c, "aria-orientation", "h" == f.dir ? "horizontal" : "vertical");
484
- $rs.setAttr(c, "aria-valuemin", 0);
485
- $rs.setAttr(c,
486
- "aria-valuemax", k);
487
- $rs.setAttr(c, "aria-valuenow", f.initval || 0);
488
- e = f.initval;
489
- $rs.regEvent(a, "mousedown", this.startDragMouse);
490
- $rs.regEvent(c, "click", function (a) {
491
- t(a)
492
- });
493
- $rs.regEvent(c, "keyup", this.startDragKeys);
494
- $rs.regEvent(c, "dragstart", function (a) {
495
- t(a)
496
- });
497
- $rs.regEvent(a, "touchstart", this.touchStart);
498
- $rs.regEvent(p.parent, "mousedown", this.mouseClick)
499
- }
500
- };
501
- this.mouseClick = function (b) {
502
- if (!w && !$rs.hasClass(p.ref, "dragged")) {
503
- var c = a.findPos(b.target), e = b.clientX - (c.left - f.left), b = b.clientY - (c.top - f.top);
504
- n =
505
- c.left;
506
- y = c.top;
507
- c = a.getCurrentVal({left: e, top: b});
508
- "function" == typeof f.click && f.click(c, p);
509
- return!1
510
- }
511
- };
512
- this.findPos = function (a) {
513
- var c = curTop = 0;
514
- if (a.offsetParent) {
515
- do c += a.offsetLeft, curTop += a.offsetTop; while (a = a.offsetParent);
516
- return{left: c, top: curTop}
517
- }
518
- };
519
- this.startDragMouse = function (b) {
520
- rspkr.log("[rspkr.ui.Slider] startDragMouse");
521
- if (!w) {
522
- a.startDrag(this);
523
- var c = b || window.event;
524
- x = c.clientX;
525
- v = c.clientY;
526
- $rs.regEvent(document.body, "mousemove", a.dragMouse);
527
- $rs.regEvent(document.body, "mouseup", a.releaseElement)
528
- }
529
- t(b);
530
- return!1
531
- };
532
- this.startDragKeys = function (b) {
533
- rspkr.log("[rspkr.ui.Slider] startDragKeys " + (b || window.event).keyCode);
534
- a.startDrag(this.relatedElement);
535
- $rs.regEvent(document.body, "keydown", a.dragKeys);
536
- $rs.regEvent(document.body, "keypress", a.switchKeyEvents);
537
- $rs.addClass(this.relatedElement, "rskeycontrolled");
538
- t(b)
539
- };
540
- this.touchStart = function (b) {
541
- b = b.originalEvent;
542
- rspkr.log("[rspkr.ui.Slider] touchStart");
543
- w || (a.startDrag(b.target), x = b.touches[0].pageX, v = b.touches[0].pageY, $rs.regEvent(b.target, "touchmove", a.touchMove),
544
- $rs.regEvent(b.target, "touchend", a.releaseElement));
545
- return!1
546
- };
547
- this.startDrag = function (b) {
548
- rspkr.log("[rspkr.ui.Slider] startDrag");
549
- q && a.releaseElement();
550
- n = b.offsetLeft;
551
- y = b.offsetTop;
552
- q = b;
553
- $rs.addClass(q, "dragged");
554
- "function" == typeof f.start && f.start(p)
555
- };
556
- this.dragMouse = function (b) {
557
- b = b || window.event;
558
- a.setPosition(b.clientX - x, b.clientY - v);
559
- a.valueChanged = !0;
560
- return!1
561
- };
562
- this.touchMove = function (b) {
563
- t(b);
564
- a.setPosition(b.touches[0].pageX - x, b.touches[0].pageY - v);
565
- a.valueChanged = !0;
566
- return!1
567
- };
568
- this.dragKeys = function (b) {
569
- switch ((b ||
570
- window.event).keyCode) {
571
- case 37:
572
- case 63234:
573
- a.valueChanged = !0;
574
- e -= f.nudge;
575
- break;
576
- case 38:
577
- case 63232:
578
- a.valueChanged = !0;
579
- e += f.nudge;
580
- break;
581
- case 39:
582
- case 63235:
583
- a.valueChanged = !0;
584
- e += f.nudge;
585
- break;
586
- case 40:
587
- case 63233:
588
- a.valueChanged = !0;
589
- e -= f.nudge;
590
- break;
591
- case 13:
592
- case 27:
593
- return a.releaseElement(), !1;
594
- case 9:
595
- return a.releaseElement(), !0;
596
- default:
597
- return rspkr.log("[rspkr.ui.Slider] return TRUE"), !0
598
- }
599
- !0 === a.valueChanged && (rspkr.c.dispatchEvent("onUISliderMove"), "function" == typeof f.dragging && f.dragging(a.getCurrentVal({skipValueCalculation: !0}),
600
- p));
601
- t(b);
602
- rspkr.log("[rspkr.ui.Slider] ready to return!");
603
- return!1
604
- };
605
- this.setPosition = function (b, c) {
606
- var e, i = !1;
607
- e = b;
608
- var m = n, l = f.left, h = f.width, u = "left";
609
- "v" == f.dir && (e = c, m = y, l = f.top, h = f.height, u = "top");
610
- e = m + e;
611
- -1 < f.stepsize && ((e + l) % f.stepsize ? e = f.stepsize * Math.ceil(e / f.stepsize) + l : i = !0);
612
- e > h + l ? e = h + l : e < l && (e = l);
613
- i || (q.style[u] = e + "px", "function" == typeof f.dragging && f.dragging(a.getCurrentVal(), p))
614
- };
615
- this.switchKeyEvents = function () {
616
- $rs.unregEvent(document.body, "keydown", a.dragKeys);
617
- $rs.unregEvent(document.body,
618
- "keypress", a.switchKeyEvents);
619
- $rs.regEvent(document.body, "keypress", a.dragKeys)
620
- };
621
- this.releaseElement = function () {
622
- rspkr.log("[rspkr.ui.Slider] releaseElement");
623
- $rs.unregEvent(document.body, "mousemove", a.dragMouse);
624
- $rs.unregEvent(document.body, "mouseup", a.releaseElement);
625
- $rs.unregEvent(document.body, "keypress", a.dragKeys);
626
- $rs.unregEvent(document.body, "keypress", a.switchKeyEvents);
627
- $rs.unregEvent(document.body, "keydown", a.dragKeys);
628
- $rs.unregEvent(q, "touchmove", a.touchMove);
629
- $rs.unregEvent(q, "touchend",
630
- a.releaseElement);
631
- $rs.removeClass(q, "dragged");
632
- $rs.removeClass(q, "rskeycontrolled");
633
- $rs.removeClass(q, "rsmousecontrolled");
634
- var b = a.getCurrentVal();
635
- q = null;
636
- "function" == typeof f.drop && !0 === a.valueChanged && f.drop(b, p);
637
- a.valueChanged = !1;
638
- rs.ui.getActivePlayer() && rs.ui.getActivePlayer().setProgress();
639
- return!1
640
- };
641
- this.getCurrentVal = function (a) {
642
- var c, k = f.width;
643
- c = "left";
644
- var i = f.left;
645
- "v" == f.dir && (k = f.height, c = "top", i = f.top);
646
- var m = -1 < f.steps ? f.steps : 100, k = -1 < f.stepsize ? f.stepsize : k / m, a = a ? a[c] : $rs.css(p.ref, c).replace(/px/i,
647
- "");
648
- pos = Math.round(a) - i;
649
- c = Math.round(pos / k);
650
- "v" == f.dir && (c = m - c);
651
- rspkr.log("[rspkr.ui.Slider] currentval: " + c);
652
- return a && a.skipValueCalculation || isNaN(c) ? e = Math.max(Math.min(e, m), 0) : e = c
653
- };
654
- return{init: function (b, c) {
655
- "string" == typeof b && (b = document.getElementById(b));
656
- if (b) {
657
- var e = b.id || "data-readspeaker-slider-id-" + Math.floor(2E4 * Math.random());
658
- b.setAttribute && b.setAttribute("data-readspeaker-slider-id-", "data-readspeaker-slider-parent-" + e);
659
- var i = {width: function () {
660
- return $rs.width(b)
661
- }, height: function () {
662
- return $rs.height(b)
663
- }};
664
- if ("object" == typeof c)for (var m in c)c.hasOwnProperty(m) && void 0 !== f[m] && (f[m] = c[m]);
665
- m = !1;
666
- var l;
667
- "rsbtn_volume_slider" === b.className && ("jquery" === rspkr.l.f.currentLib() && 1.5 > parseFloat(jQuery.fn.jquery)) && (l = b.parentNode.style.display, b.parentNode.style.display = "block", m = !0);
668
- f.width = i.width();
669
- f.height = i.height();
670
- m && (b.parentNode.style.display = l);
671
- -1 < f.steps && (f.stepsize = ("h" == f.dir ? f.width : f.height) / f.steps);
672
- i = document.createElement("span");
673
- i.setAttribute("data-readspeaker-slider-id-", e);
674
- i.className =
675
- f.handleClass || "rsbtn_progress_handle rsimg";
676
- b.appendChild(i);
677
- p.rsid = e;
678
- p.parent = b;
679
- p.ref = i;
680
- e = $rs.css(i, "left");
681
- null !== e && (f.left = parseInt(e.replace(/px/i, "")));
682
- e = $rs.css(i, "top");
683
- null !== e && (f.top = parseInt(e.replace(/px/i, "")));
684
- -1 < f.initval && this.jumpTo(f.initval);
685
- f.labelStart && (e = document.createElement("span"), e.className = "slider-label-start", e.innerHTML = f.labelStart, b.appendChild(e));
686
- f.labelEnd && (e = document.createElement("span"), e.className = "slider-label-end", e.innerHTML = f.labelEnd, b.appendChild(e));
687
- a.initElement(i)
688
- }
689
- }, jumpTo: function (a) {
690
- if (isNaN(a))return!1;
691
- var c = 101, e = a;
692
- -1 < f.steps && (a = Math.round(a), c = f.steps + 1);
693
- if (-1 < a && a < c) {
694
- var i = f.width, m = f.left, l = "left";
695
- "v" == f.dir && (i = f.height, m = f.top, l = "top", a = c - 1 - a);
696
- p.ref.style[l] = i / (c - 1) * a + m + "px";
697
- $rs.setAttr($rs.findIn(p.ref, "a.keyLink"), "aria-valuenow", e)
698
- }
699
- }, setCurrentValue: function (a) {
700
- e = a
701
- }, getInstance: function () {
702
- return p
703
- }, getContainer: function () {
704
- return p.parent
705
- }, releaseElement: function () {
706
- a.releaseElement()
707
- }, startDragKeys: function (b, c) {
708
- a.startDragKeys.call(b,
709
- c)
710
- }, disabled: function () {
711
- if (arguments)w = arguments[0]; else return w
712
- }}
713
- };
714
- ReadSpeaker.ui.Player = function (a) {
715
- var f = function (a) {
716
- a = a || window.event;
717
- a.returnValue = !1;
718
- if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
719
- a && a.preventDefault && a.preventDefault();
720
- a && a.stopPropagation && a.stopPropagation()
721
- }, p = rspkr.getID(), x = this, v = [], n = 0, y = !1, q = null, w = !1, e = {_play: null, _pause: null, _stop: null, _vol: null, _settings: null, _dl: null, _closer: null, _powered: null, _get: function (g, b) {
722
- var c, g = "_" + g;
723
- c = a ? this[g] && 0 < this[g].length ? this[g] : this[g] = $rs.findIn(a, b) : null;
724
- return c == [] ? null : c
725
- }, play: function () {
726
- return this._get("play",
727
- ".rsbtn_play")
728
- }, pause: function () {
729
- return this._get("pause", ".rsbtn_pause")
730
- }, stop: function () {
731
- return this._get("stop", ".rsbtn_stop")
732
- }, vol: function () {
733
- return this._get("vol", ".rsbtn_volume")
734
- }, settings: function () {
735
- return this._get("settings", ".rsbtn_settings")
736
- }, dl: function () {
737
- return this._get("dl", ".rsbtn_dl")
738
- }, pin: function () {
739
- return this._get("pin", ".rsbtn_pin")
740
- }, powered: function () {
741
- return this._get("powered", ".rsbtn_powered")
742
- }, closer: function () {
743
- return this._get("closer", ".rsbtn_closer")
744
- }, nosound: function () {
745
- return this._get("nosound",
746
- ".rsbtn_nosound")
747
- }, setPlayPause: function (a) {
748
- rspkr.log("[rspkr.ui.Player.setPlayPause(" + a + ")]");
749
- a = a ? $rs.getAttr(this.pause(), "data-rsphrase-play") : $rs.getAttr(this.pause(), "data-rsphrase-pause");
750
- $rs.setAttr(this.pause(), "title", rspkr.c.decodeEntities(a));
751
- $rs.findIn(this.pause(), ".rsbtn_btnlabel").innerHTML = a
752
- }}, t = !1, b = [], c = {play: function () {
753
- rspkr.c.dispatchEvent("onUIBeforePlay");
754
- rspkr.log("[rspkr.ui.handlers.play]");
755
- b.progress && b.progress.disabled(!1);
756
- c.setStateClass(a, "rsplaying");
757
- rspkr.basicMode &&
758
- c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsplaying");
759
- $rs.addClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading");
760
- e.setPlayPause(!1);
761
- rspkr.pl.play();
762
- w && rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x]);
763
- rspkr.c.addEvent("onBeforeSyncInit", function () {
764
- w = !0;
765
- rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x])
766
- });
767
- "flash" === rspkr.pl.adapter && !rspkr.displog.onVolumeAdjusted && rspkr.pl.setVolume(parseInt(rspkr.st.get("hlvol") || "100"));
768
- rspkr.c.dispatchEvent("onUIAfterPlay");
769
- rspkr.cfg.execCallback("cb.ui.play",
770
- a)
771
- }, pause: function () {
772
- rspkr.log("[rspkr.ui.handlers.pause]");
773
- c.setStateClass(a, "rspaused");
774
- rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rspaused");
775
- e.setPlayPause(!0);
776
- rspkr.pl.pause();
777
- rspkr.pl.getProgress(!1);
778
- rspkr.c.dispatchEvent("onUIPause");
779
- rspkr.cfg.execCallback("cb.ui.pause", a);
780
- rspkr.log("ReadSpeaker.ui.pause")
781
- }, stop: function () {
782
- rspkr.log("[rspkr.ui.handlers.stop]");
783
- b.progress && b.progress.disabled(!0);
784
- c.setStateClass(a, "rsstopped");
785
- $rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"),
786
- "rsloading");
787
- rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsstopped");
788
- e.setPlayPause(!0);
789
- $rs.setAttr(a, "data-readspeaker-current", 0);
790
- b.progress && (b.progress.jumpTo(0), k(0));
791
- rspkr.pl.stop();
792
- rspkr.pl.getProgress(!1);
793
- rspkr.c.dispatchEvent("onUIStop", a);
794
- rspkr.cfg.execCallback("cb.ui.stop", a);
795
- (!document.getElementById("rslightbox_contentcontainer") || !$rs.isVisible(document.getElementById("rslightbox_contentcontainer"))) && e.pause().focus();
796
- rspkr.HL.chunking && 1 < rspkr.HL.chunking.currentChunkNumber &&
797
- (rspkr.HL.chunking.destroy(), rspkr.pl.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter());
798
- rspkr.log("ReadSpeaker.ui.stop")
799
- }, setStateClass: function (a, b) {
800
- a && ($rs.removeClass(a, "rspaused rsstopped rsplaying"), $rs.addClass(a, b))
801
- }, vol: function (g) {
802
- var c = $rs.findIn(a, ".rsbtn_volume_container"), e = $rs.findIn(a, ".rsbtn_volume"), g = g.originalEvent, f = function (a) {
803
- var b = a.originalEvent, b = $rs.closest(b.srcElement || b.originalTarget, ".rsbtn_volume_container");
804
- if ("click" === a.type) {
805
- if (void 0 === b || $rs.isArray(b) && !b.length)$rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f)
806
- } else"keyup" === a.type && 27 === a.keyCode && ($rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f))
807
- };
808
- $rs.css(c, "left", e.offsetLeft + "px");
809
- $rs.css(c, "display", "none" == $rs.css(c, "display") ? "block" : "none");
810
- "block" === $rs.css(c, "display") ? ($rs.regEvent(document.body, "click", f), $rs.regEvent(document.body, "keyup", f)) : ($rs.unregEvent(document.body,
811
- "click", f), $rs.unregEvent(document.body, "keyup", f));
812
- g && g.stopPropagation && g.stopPropagation();
813
- g.cancelBubble = !0;
814
- e = $rs.findIn(c, ".keyLink");
815
- b.vol.startDragKeys(e, {keyCode: 13});
816
- return!1
817
- }, settings: function () {
818
- $rs.hasClass(a, "rsplaying") && this.pause();
819
- rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function (a) {
820
- var b = $rs.get("rslightbox_closer"), c = function () {
821
- document.removeEventListener ? b.removeEventListener("click", c, !1) : document.detachEvent && document.detachEvent("onclick", c);
822
- rspkr.c.dispatchEvent("onSettingsClosed",
823
- window, [])
824
- };
825
- $rs.regEvent(b, "click", c);
826
- rspkr.ui.addClickEvents();
827
- rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
828
- rspkr.cfg.execCallback("cb.ui.settingsopened", a)
829
- })
830
- }, close: function (g) {
831
- c.pin(!0);
832
- var g = g || !1, j = rspkr.pl, f = !1;
833
- rspkr.HL.chunking && rspkr.HL.chunking.destroy();
834
- g || rspkr.cfg.execCallback("cb.ui.beforeclose", a);
835
- j.hasOwnProperty("getProgress") && rspkr.pl.getProgress(!1);
836
- j.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter();
837
- $rs.setAttr(a, "data-readspeaker-current", 0);
838
- b.progress && b.progress.jumpTo(0);
839
- $rs.removeClass(a, "rsstopped rsplaying rspaused rsexpanded");
840
- if (rspkr.basicMode) {
841
- var h;
842
- (h = $rs.findIn(a, ".rsbtn_play")) && $rs.removeClass(h, "rsexpanded")
843
- }
844
- $rs.hasClass(a, "rsfloating") && ($rs.removeClass(a, rspkr.ui.rsbtnClass), rspkr.basicMode && ($rs.removeClass(a, "rsvisible"), $rs.addClass(a, "rshidden")));
845
- e.setPlayPause(!0);
846
- $rs.hasClass(a, "rspopup") && (f = !0, $rs.removeClass(a, "rspopup"), $rs.css(a, "display", "none"), a.parentNode.removeChild(a));
847
- $rs.css(a, "width", "auto");
848
- delete rspkr.displog.onVolumeAdjusted;
849
- g || (rspkr.c.dispatchEvent("onUIClosePlayer", a, ["userclick"]), rspkr.cfg.execCallback("cb.ui.close", a), rspkr.log("ReadSpeaker.ui.close: " + a));
850
- !g && !1 === f && rspkr.ui.focus($rs.findIn($rs.get(a), ".rsbtn_play"))
851
- }, dl: function () {
852
- $rs.hasClass(a, "rsplaying") && this.pause();
853
- var b = rspkr.c.data.getSaveData("dialog"), c = !1;
854
- rspkr.log("[rspkr.ui.handlers.dl] Savelink: " + b);
855
- rspkr.u.Lightbox.show(this.getDlDialog(), this.getDlButtons(), !0, function () {
856
- var a = $rs.get("#rsdl_button_accept"), e = $rs.get("#rsdl_button_decline");
857
- a && $rs.regEvent(a, "click", function (e) {
858
- rspkr.u.Lightbox.hide(e);
859
- c = "iOS" !== rspkr.c.data.browser.OS && 0 < rspkr.c.data.selectedHTML.length ? !0 : "iOS" !== rspkr.c.data.browser.OS && !0 === rspkr.cfg.item("general.usePost") ? !0 : !1;
860
- if (!0 === c) {
861
- e = null;
862
- if (document.getElementById("dliframe"))e = document.getElementById("dliframe"); else {
863
- if (document.selection)try {
864
- e = document.createElement('<iframe name="dliframe">')
865
- } catch (f) {
866
- e = document.createElement("iframe")
867
- } else e = document.createElement("iframe");
868
- e.name = "dliframe";
869
- e.setAttribute("id",
870
- "dliframe");
871
- e.setAttribute("style", "display: none; position: absolute;");
872
- e.style.display = "none";
873
- var h = document.getElementsByTagName("body"), i = null;
874
- 0 < h.length && (i = h.item(0));
875
- if (i)i.appendChild(e); else return
876
- }
877
- e.src = b;
878
- return!1
879
- }
880
- $rs.setAttr(a, "href", b);
881
- return!0
882
- });
883
- e && ($rs.regEvent(e, "click", function (a) {
884
- f(a);
885
- rspkr.u.Lightbox.hide(a)
886
- }), setTimeout(function () {
887
- rspkr.ui.focus(e)
888
- }, 200));
889
- rspkr.c.dispatchEvent("onDownloadLoaded", window, [])
890
- })
891
- }, pin: function (a) {
892
- var b = rs.ui.getActivePlayer().getContainer(), c = b.id + "_pinnedHome",
893
- f = document.getElementById(c);
894
- if (!$rs.hasClass(e.pin(), "pinned") && !a) {
895
- if ($rs.addClass(e.pin(), "pinned"), !f) {
896
- var a = function (a, b) {
897
- return window.getComputedStyle ? window.getComputedStyle(a)[b] : a.currentStyle ? a.currentStyle[b] : a.style[b]
898
- }, f = $rs.clone(b, !1, !0), h = b.offsetLeft, i = b.offsetTop;
899
- f.style.width = a(b, "width").replace(/[^-\d\.]/g, "") - 2 + "px";
900
- f.style.height = a(b, "height").replace(/[^-\d\.]/g, "") - 2 + "px";
901
- for (var k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" "),
902
- m = 0, l; l = k[m]; m++) {
903
- var n = $rs.css(b, l);
904
- $rs.setAttr(b, "data-css-" + l, n);
905
- n = a(b, l);
906
- "auto" != n && (f.style[l] = n)
907
- }
908
- b.style.position = "fixed";
909
- b.style.left = h - document.body.scrollLeft + "px";
910
- b.style.top = i - document.body.scrollTop + "px";
911
- f.className = "rsbtn_pinnedHome rsbtn";
912
- for (f.id = c; f.hasChildNodes();)f.removeChild(f.lastChild);
913
- b.parentElement.insertBefore(f, b)
914
- }
915
- } else if ($rs.hasClass(e.pin(), "pinned") || a)if ($rs.removeClass(e.pin(), "pinned"), f) {
916
- f.parentNode.removeChild(f);
917
- k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" ");
918
- for (m = 0; l = k[m]; m++)n = $rs.getAttr(b, "data-css-" + l), $rs.css(b, l, n)
919
- }
920
- }, getDlDialog: function () {
921
- var a = rspkr.cfg.item("ui.dldialog").join("\n"), b = {};
922
- b.rsTERMS_OF_USE_HEADINGrs = rspkr.cfg.getPhrase("touheading");
923
- b.rsTERMS_OF_USE_BODYrs = rspkr.cfg.getPhrase("toubody");
924
- return rspkr.st.r().replaceTokens(a, b)
925
- }, getDlButtons: function () {
926
- var a = rspkr.cfg.item("ui.dlbuttons").join("\n"), b = {};
927
- b.rsTERMS_OF_USE_ACCEPTrs = rspkr.cfg.getPhrase("touaccept");
928
- b.rsTERMS_OF_USE_DECLINErs = rspkr.cfg.getPhrase("toudecline");
929
- return rspkr.st.r().replaceTokens(a,
930
- b)
931
- }, nosound: function () {
932
- var a = rspkr.c.data.getSaveData("link");
933
- $rs.setAttr(e.nosound(), "href", a);
934
- return!0
935
- }}, k = function (b) {
936
- var b = 100 < b ? 100 : b, c = $rs.findIn(a, ".rsbtn_progress_played");
937
- "object" === typeof c && $rs.css(c, "width", b + "%");
938
- rspkr.cfg.execCallback("cb.ui.progresschanged", a, [b])
939
- }, i = function (c) {
940
- if (c.length) {
941
- var e = parseInt(c[0]), c = parseInt(c[1]), f = 0 == c ? 0 : Math.round(100 * (e / c)), h = $rs.findIn(a, ".rsbtn_current_time"), i = $rs.findIn(a, ".rsbtn_total_time"), l, n;
942
- b.progress && (b.progress.setCurrentValue(f), t ||
943
- (b.progress.jumpTo(f), k(f), h && (h.innerHTML = l = m(e)), i && (i.innerHTML = n = m(c)), rspkr.cfg.execCallback("cb.ui.timeupdated", a, [l, n])));
944
- rspkr.log("[rspkr.player.updateProgress] current time: " + e + " total time: " + c);
945
- $rs.setAttr(a, "data-readspeaker-current", e);
946
- $rs.setAttr(a, "data-readspeaker-buffered", c);
947
- 0 < e && $rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading")
948
- }
949
- }, m = function (a) {
950
- var a = a / 1E3, b = parseInt(a % 60), c = parseInt(a / 60 % 60), a = parseInt(a / 60 / 60 % 60);
951
- return(10 > a ? "0" + a : a.toString()) + ":" + (10 > c ?
952
- "0" + c : c.toString()) + ":" + (10 > b ? "0" + b : b.toString())
953
- }, l = function () {
954
- t = !0
955
- }, h = function (b) {
956
- rspkr.log("_dropProgress (" + b + ")", 5);
957
- b && (b = b / 100 * $rs.getAttr(a, "data-readspeaker-buffered") / 1E3, rspkr.pl.setProgress(b));
958
- t = !1
959
- }, u = function (a) {
960
- h(a)
961
- }, B = function (c) {
962
- rspkr.log("_dropVolume, " + c, 5);
963
- c = 0 > c ? 0 : 20 * c;
964
- b.vol && b.vol.jumpTo(c / 20);
965
- rspkr.pl.setVolume(c);
966
- rspkr.st.set("hlvol", c);
967
- rspkr.cfg.execCallback("cb.ui.volumechanged", a, [c]);
968
- return!1
969
- }, A = function (c, e) {
970
- if ("keyLink" === c.className) {
971
- var f = "";
972
- $rs.hasClass(e, "rsbtn_volume_handle") ?
973
- f = "vol" : $rs.hasClass(e, "rsbtn_progress_handle") && (f = "progress");
974
- var h = {keyCode: 13};
975
- b[f].startDragKeys(c, h)
976
- } else $rs.hasClass(e, "rsbtn_volume") && (h = {keyCode: 13}, f = $rs.findIn(a, ".rsbtn_volume_container"), f = $rs.findIn(f, ".keyLink"), b.vol.startDragKeys(f, h))
977
- }, z = function (a, c) {
978
- if ("keyLink" === a.className) {
979
- var e = "";
980
- $rs.hasClass(c, "rsbtn_volume_handle") ? e = "vol" : $rs.hasClass(c, "rsbtn_progress_handle") && (e = "progress");
981
- b[e].releaseElement();
982
- t = !1
983
- }
984
- };
985
- return{init: function () {
986
- v.push([this.show, []])
987
- }, show: function () {
988
- $rs.rsid(a);
989
- a.id = p = a.id || rspkr.getID();
990
- ui = rspkr.ui;
991
- $rs.hasClass(a, rspkr.ui.rsbtnClass) || $rs.addClass(a, rspkr.ui.rsbtnClass);
992
- var g = null, g = rspkr.cfg, j = rspkr.cfg.getPhrases(rspkr.c.data.getParam("lang"));
993
- if (0 == $rs.findIn(a, ".rsbtn_exp").length) {
994
- var i = $rs.hasClass(a, "rspopup") ? g.item("ui.popupplayer") : g.item("ui.player"), g = document.createElement("div");
995
- g.className = "rsbtn_exp rsimg rspart";
996
- g.innerHTML += i.join("\n");
997
- a.appendChild(g)
998
- }
999
- g = e.pin();
1000
- i = "Explorer" == rspkr.c.data.browser.name && 8 > rspkr.c.data.browser.version;
1001
- $rs.isArray(g) && 0 == g.length && (g = void 0);
1002
- g && !i && rspkr.cfg.item("ui.usePin") ? $rs.removeClass(g, "turnedOff") : g && g.parentElement.removeChild(g);
1003
- if (j) {
1004
- g = function (a, b) {
1005
- var c = $rs.findIn(a, ".rsbtn_btnlabel");
1006
- $rs.isArray(c) || (c = [c]);
1007
- 0 < c.length && (c[0].innerHTML = b)
1008
- };
1009
- e.pause() && ($rs.setAttr(e.pause(), "data-rsphrase-pause", j.pause), $rs.setAttr(e.pause(), "data-rsphrase-play", j.play), $rs.setAttr(e.pause(), "title", rspkr.c.decodeEntities(j.pause)), g(e.pause(), rspkr.c.decodeEntities(j.pause)));
1010
- e.stop() && ($rs.setAttr(e.stop(),
1011
- "title", rspkr.c.decodeEntities(j.stop)), g(e.stop(), rspkr.c.decodeEntities(j.stop)));
1012
- e.vol() && ($rs.setAttr(e.vol(), "title", rspkr.c.decodeEntities(j.volume)), g(e.vol(), rspkr.c.decodeEntities(j.volume)));
1013
- e.settings() && ($rs.setAttr(e.settings(), "title", rspkr.c.decodeEntities(j.settings)), g(e.settings(), rspkr.c.decodeEntities(j.settings)));
1014
- e.dl() && ($rs.setAttr(e.dl(), "title", rspkr.c.decodeEntities(j.download)), g(e.dl(), rspkr.c.decodeEntities(j.download)));
1015
- if (e.powered()) {
1016
- var i = $rs.findIn(e.powered(), ".rsbtn_btnlabel"),
1017
- k = j.speechenabled.match(/.*href="([^"]*)"/i).pop(), m = j.newwindow, q = document.createElement("p");
1018
- q.innerHTML = j.speechenabled;
1019
- m = (q.innerText || q.textContent) + (m ? " (" + m + ")" : "");
1020
- i && (i.innerHTML = j.speechenabled);
1021
- $rs.setAttr(e.powered(), "title", m);
1022
- $rs.setAttr(e.powered(), "data-readspeaker-href", k);
1023
- i = $rs.getAttr(e.powered(), "data-rsevent-id");
1024
- (!i || rs.l.f.eq.store[i] && !rs.l.f.eq.store[i].click) && $rs.regEvent(e.powered(), "click", function () {
1025
- window.open($rs.getAttr(this, "data-readspeaker-href"))
1026
- })
1027
- }
1028
- e.closer() &&
1029
- ($rs.setAttr(e.closer(), "title", rspkr.c.decodeEntities(j.closeplayer)), g(e.closer(), rspkr.c.decodeEntities(j.closeplayer)))
1030
- }
1031
- j = rspkr.c.data.browser;
1032
- (!/safari/i.test(j.name) || !/iphone|ipad|ios/i.test(j.OS)) && $rs.addClass(a, "rs-no-touch");
1033
- j = $rs.findIn(a, ".rsbtn_status_overlay");
1034
- $rs.isArray(j) || $rs.css(j, "display", "none");
1035
- "fallback" === rspkr.pl.adapter && (rspkr.ui.showOverlay("nosound", a), $rs.addClass(a, "rsstopped"));
1036
- $rs.addClass(a, "rsexpanded");
1037
- if (rspkr.basicMode) {
1038
- var r;
1039
- (r = $rs.findIn(a, ".rsbtn_play")) &&
1040
- $rs.addClass(r, "rsexpanded")
1041
- }
1042
- y || (e.stop() && ($rs.regEvent(e.stop(), "click", function (a) {
1043
- f(a);
1044
- c.stop()
1045
- }), ui.addFocusHandler(e.stop())), e.pause() && ($rs.regEvent(e.pause(), "click", function (b) {
1046
- f(b);
1047
- $rs.hasClass(a, "rsplaying") ? c.pause() : ($rs.hasClass(a, "rsstopped") || $rs.hasClass(a, "rspaused")) && c.play()
1048
- }), ui.addFocusHandler(e.pause())), e.closer() && ($rs.regEvent(e.closer(), "click", function (a) {
1049
- f(a);
1050
- c.close()
1051
- }), ui.addFocusHandler(e.closer())), e.vol() && ($rs.regEvent(e.vol(), "click", function (a) {
1052
- f(a);
1053
- c.vol(a)
1054
- }),
1055
- ui.addFocusHandler(e.vol())), e.dl() && ($rs.regEvent(e.dl(), "click", function (a) {
1056
- f(a);
1057
- return c.dl()
1058
- }), ui.addFocusHandler(e.dl())), e.settings() && ($rs.regEvent(e.settings(), "click", function (a) {
1059
- f(a);
1060
- c.settings()
1061
- }), ui.addFocusHandler(e.settings())), e.pin() && ($rs.regEvent(e.pin(), "click", function (a) {
1062
- f(a);
1063
- c.pin()
1064
- }), ui.addFocusHandler(e.pin())), r = rspkr.cfg, $rs.setAttr(a, "data-readspeaker-current", 0), $rs.setAttr(a, "data-readspeaker-buffered", 0), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_progress_container")) ||
1065
- (b.progress = new rspkr.ui.Slider, b.progress.init($rs.findIn($rs.get(a), ".rsbtn_progress_container"), {handleClass: r.item("ui.progressHandleClass") || "rsbtn_progress_handle rsimg", dir: r.item("ui.progressDir") || "h", nudge: 5, start: l, dragging: h, click: u, labelDragHandle: r.getPhrase("sliderseek")}), j = $rs.findIn($rs.get(a), ".rsbtn_progress_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_volume_slider")) || (j = rspkr.st.get("hlvol") || "100", j = 5 * (parseInt(j) / 100), b.vol = new rspkr.ui.Slider,
1066
- b.vol.init($rs.findIn(a, ".rsbtn_volume_slider"), {handleClass: r.item("ui.volumeHandleClass") || "rsbtn_volume_handle rsimg", dir: r.item("ui.volumeDir") || "v", steps: 5, nudge: 1, initval: j, dragging: B, click: B, labelDragHandle: r.getPhrase("slidervolumedesc")}), j = $rs.findIn($rs.get(a), ".rsbtn_volume_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), rspkr.Common.addEvent("onFocusIn", A), rspkr.Common.addEvent("onFocusOut", z), rspkr.cfg.execCallback("cb.ui.open", a), y = !0);
1067
- if ($rs.findIn(a, ".rsbtn_powered") && (r = $rs.findIn(a,
1068
- ".rsbtn_powered .rsbtn_btnlabel a")))(/Chrome|Safari|Opera/gi.test(rs.c.data.browser.name) || /Explorer/gi.test(rs.c.data.browser.name) && 8 <= rs.c.data.browser.version) && $rs.regEvent(r, "click", function (a) {
1069
- f(a)
1070
- }), r.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>';
1071
- "0" != $rs.getAttr(a, "data-readspeaker-current") && (rspkr.pl.releaseAdapter(), $rs.setAttr(a, "data-readspeaker-current", 0));
1072
- "fallback" !== rspkr.pl.adapter &&
1073
- (c.play(), rspkr.ui.focus(e.pause()));
1074
- r = (r = a) || a;
1075
- r = $rs.clone(r, !0, !0);
1076
- r.id = rspkr.getID();
1077
- document.body.appendChild(r);
1078
- $rs.css(r, {position: "absolute", top: "0", left: "0", display: "block", width: "auto"});
1079
- $rs.css(r, "float", "none");
1080
- $rs.addClass(r, "rsexpanded");
1081
- j = $rs.outerWidth(r) + 3;
1082
- r.style.display = "none";
1083
- document.body.removeChild(r);
1084
- n = j;
1085
- isNaN(n) || $rs.css(a, "width", n + (/[Ee]xplorer/.test(ReadSpeaker.c.data.browser.name) ? 1 : 0) + "px")
1086
- }, close: function (a) {
1087
- c.close(a)
1088
- }, stop: function () {
1089
- c.stop()
1090
- }, nosound: function () {
1091
- return c.nosound()
1092
- },
1093
- pause: function () {
1094
- c.pause()
1095
- }, play: function () {
1096
- c.play()
1097
- }, restart: function () {
1098
- rspkr.log("[rspkr.ui.restart]");
1099
- c.stop();
1100
- window.setTimeout(function () {
1101
- c.play()
1102
- }, 500);
1103
- return!1
1104
- }, updateProgress: function (a) {
1105
- i(a)
1106
- }, setProgress: function (a) {
1107
- h(a)
1108
- }, getContainer: function () {
1109
- return a
1110
- }, getID: function () {
1111
- return p
1112
- }, getWidth: function () {
1113
- return n
1114
- }, setHref: function (a) {
1115
- q = a
1116
- }, getHref: function () {
1117
- return q
1118
- }}
1119
- };
1120
- ReadSpeaker.ui.Lightbox = function () {
1121
- var a = null, f = null, p = null, x = null, v = null, n = null, y, q = [], w = function (a) {
1122
- a = a || window.event;
1123
- a.returnValue = !1;
1124
- if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
1125
- a && a.preventDefault && a.preventDefault();
1126
- a && a.stopPropagation && a.stopPropagation()
1127
- }, e = function () {
1128
- $rs.css(n, "display", "none");
1129
- var a = $rs.height(window), b = $rs.height(document), e = parseInt($rs.css(document.documentElement, "width")), f = $rs.width(document), l = $rs.absOffset(document.body), h = 0, p = 0;
1130
- isNaN(e) && (e = $rs.width(window));
1131
- l.left && (p = l.left);
1132
- l.top && (h = l.top);
1133
- $rs.css(v, {width: (f > e ? f : e) + "px", height: (b > a ? b : a) + "px", top: "-" + Math.abs(h) + "px", left: "-" + Math.abs(p) + "px"});
1134
- $rs.css(n, "display", "block");
1135
- t()
1136
- }, t = function () {
1137
- var a = $rs.outerWidth(n), b = $rs.outerHeight(n), e = $rs.width(window), f = $rs.height(window), b = y + 80 + 50 < f ? y + 80 : f - 50;
1138
- n.style.height = b + "px";
1139
- $rs.get("#rslightbox_content").style.height = b - 80 + "px";
1140
- b > f ? (n.style.top = $rs.scrollTop(document) + "px", n.style.marginTop = "10px") : (n.style.top = f / 2 + "px", n.style.marginTop = -(b / 2 - $rs.scrollTop(document)) +
1141
- "px");
1142
- a > e ? (n.style.left = $rs.scrollLeft(document) + "px", n.style.marginLeft = "0") : (n.style.left = "50%", n.style.marginLeft = -(a / 2 - $rs.scrollLeft(document)) + "px")
1143
- }, b = function (a) {
1144
- 27 === a.keyCode && rspkr.ui.Lightbox.hide()
1145
- };
1146
- return{init: function () {
1147
- var b = rspkr.pub.Config;
1148
- a = b.item("ui.overlay.overlayStyles");
1149
- f = b.item("ui.overlay.contentStyles");
1150
- p = b.item("ui.overlay.contentTemplate");
1151
- document.querySelectorAll || (d = document, s = d.createStyleSheet(), d.querySelectorAll = function (a, b, c, e, f) {
1152
- f = d.all;
1153
- b = [];
1154
- a = a.replace(/\[for\b/gi,
1155
- "[htmlFor").split(",");
1156
- for (c = a.length; c--;) {
1157
- s.addRule(a[c], "k:v");
1158
- for (e = f.length; e--;)f[e].currentStyle.k && b.push(f[e]);
1159
- s.removeRule(0)
1160
- }
1161
- return b
1162
- });
1163
- rspkr.log("[rspkr.ui.Lightbox] Heartbeat!")
1164
- }, show: function (c, k, i, m, l) {
1165
- for (var h = 0, u = document.body.getElementsByTagName("*"), t; t = u[h]; h++)-1 != t.tabIndex && (q.push([t, t.tabIndex]), t.tabIndex = -1);
1166
- if (!("Explorer" == rs.c.data.browser.name && 6 == rs.c.data.browser.version)) {
1167
- t = document.querySelectorAll("body > *");
1168
- for (h = 0; u = t[h]; h++)if (!("rslightbox_overlay" == u.id ||
1169
- "rslightbox_contentcontainer" == u.id || "script" == u.tagName.toLowerCase())) {
1170
- var A = u.getAttribute("aria-hidden");
1171
- A && u.setAttribute("data-original-aria-hidden", A);
1172
- u.setAttribute("aria-hidden", "true")
1173
- }
1174
- }
1175
- c = c || "";
1176
- i = i || !1;
1177
- v ? (v.style.display = "", n.style.display = "") : (v = document.createElement("div"), v.id = "rslightbox_overlay", n = document.createElement("div"), n.id = "rslightbox_contentcontainer", n.innerHTML = rspkr.st.r().replaceTokens(p.join("\n"), {rsLIGHTBOX_CLOSE_LABELrs: rspkr.cfg.getPhrase("close")}), $rs.setAttr(v,
1178
- "style", a.join(";")), $rs.setAttr(n, "style", f.join(";")), document.body.appendChild(v), document.body.appendChild(n), rspkr.evt("onSettingsLoaded", {func: rspkr.st.r().handlers.changed.addButtonEvents, context: rspkr.st.r().handlers.changed, params: [this]}));
1179
- h = $rs.get("rslightbox_closer");
1180
- rspkr.ui.addFocusHandler(h, !1);
1181
- $rs.regEvent(h, "click", function (a) {
1182
- w(a);
1183
- rspkr.ui.Lightbox.hide(a)
1184
- });
1185
- $rs.regEvent(v, "click", rspkr.ui.Lightbox.hide);
1186
- $rs.regEvent(document.body, "keyup", b);
1187
- if ((u = document.documentElement) && document.all)u.style.overflowX =
1188
- u.style.overflowY = "hidden";
1189
- if (c != x || i)i = rspkr.cfg.getPhrase("close"), $rs.setAttr(h, "title", i), $rs.findIn(h, ".rsbtn_btnlabel").innerHTML = i, $rs.get("#rslightbox_content").innerHTML = "", $rs.css("#rslightbox_content", "height", "auto"), /^http/i.test(c) ? $rs.findIn("#rslightbox_content", "iframe").length || (i = document.createElement("iframe"), i.src = c, i.className = "rslightbox-iframe", void 0 === l && (l = 2E3), $rs.get("#rslightbox_content").appendChild(i)) : "<" == c.substr(0, 1) && ($rs.get("#rslightbox_content").innerHTML =
1190
- c), $rs.get("#rslightbox_buttons").innerHTML = k, x = c, "ar_ar" == rs.c.data.params.lang && (-1 == n.className.indexOf("rtl") && (n.className = (n.className + " rtl").replace(/^\s+|\s+$/g, "")), $rs.setAttr($rs.findIn(n, "legend"), "align", "right"));
1191
- y = void 0 !== l && !isNaN(l) ? l : !rspkr.basicMode ? $rs.get("#rslightbox_content").clientHeight : $rs.get("#rslightbox_content").scrollHeight;
1192
- c = $rs.findIn("#rslightbox_content", ".rsform-row");
1193
- for (h = 0; h < c.length; h++) {
1194
- k = $rs.findIn(c[h], "input, a, select");
1195
- $rs.isArray(k) || (k = [k]);
1196
- for (u =
1197
- 0; u < k.length; u++)rspkr.ui.addFocusHandler(k[u], !1, c[h])
1198
- }
1199
- var z = $rs.findIn("#rslightbox_buttons", ".rssettings-button-close");
1200
- rspkr.ui.addFocusHandler(z, !1);
1201
- $rs.regEvent(z, "click", function (a) {
1202
- w(a)
1203
- });
1204
- (c = $rs.findIn("#rsform_wrapper", ".rssettings-button-gotobottom")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
1205
- (c = $rs.findIn("#rslightbox_buttons", ".rssettings-button-gototop")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
1206
- var g = $rs.findIn("#rslightbox_content", "input");
1207
- $rs.isArray(g) && 0 < g.length ?
1208
- setTimeout(function () {
1209
- rspkr.ui.focus(g[0]);
1210
- rspkr.Common.addEvent("onFocusIn", function (a) {
1211
- a.className && $rs.hasClass(a, "rssettings-button-gototop") ? rspkr.ui.focus(g[0]) : a.className && $rs.hasClass(a, "rssettings-button-gotobottom") && rspkr.ui.focus(z)
1212
- })
1213
- }, 200) : $rs.isArray(g) || setTimeout(function () {
1214
- rspkr.ui.focus(g)
1215
- }, 200);
1216
- e();
1217
- $rs.regEvent(window, "resize", e);
1218
- "function" == typeof m && m.apply(this, [n])
1219
- }, hide: function (a) {
1220
- for (; 0 < q.length;) {
1221
- var f = q.pop();
1222
- f[0].tabIndex = f[1]
1223
- }
1224
- if (!("Explorer" == rs.c.data.browser.name &&
1225
- 6 == rs.c.data.browser.version))for (var a = document.querySelectorAll("body > *"), f = 0, i; i = a[f]; f++) {
1226
- var m = i.getAttribute("data-original-aria-hidden");
1227
- m ? (i.setAttribute("aria-hidden", m), i.removeAttribute("data-original-aria-hidden")) : i.removeAttribute("aria-hidden")
1228
- }
1229
- w(a);
1230
- v.style.display = "none";
1231
- n.style.display = "none";
1232
- $rs.unregEvent(window, "resize", e);
1233
- $rs.unregEvent($rs.get("#rslightbox_closer"), "click", rspkr.ui.Lightbox.hide);
1234
- $rs.unregEvent(v, "click", rspkr.ui.Lightbox.hide);
1235
- $rs.unregEvent(document.body,
1236
- "keyup", b);
1237
- if ((a = document.documentElement) && document.all)a.style.overflowX = a.style.overflowY = "auto";
1238
- rspkr.ui.updateFocus();
1239
- rspkr.c.dispatchEvent("onSettingsClosed", window, [])
1240
- }, reposition: t}
1241
- }();
1
+ ReadSpeaker.ui = function () {
2
+ var a = null, f = [], p = [], x = !1, v = function (h) {
3
+ h = h || window.event;
4
+ h.returnValue = !1;
5
+ if (h = h.originalEvent)h.cancelBubble = !0, h.returnValue = !1;
6
+ h && h.preventDefault && h.preventDefault();
7
+ h && h.stopPropagation && h.stopPropagation()
8
+ }, n = function () {
9
+ rspkr.log("[rspkr.ui] Attempting to add click events.");
10
+ var h = $rs.get("." + rspkr.ui.rsbtnClass + " a.rsbtn_play"), a = null;
11
+ $rs.isArray(h) || (h = [h]);
12
+ for (var b = 0, c = h.length; b < c; b++)if ($rs.unregEvent(h[b], "click", ReadSpeakerDefer.clickhandler), a = h[b] ? $rs.getAttr(h[b],
13
+ "data-rsevent-id") : "_bogus_", rspkr.l.f.eq.store[a] && rspkr.l.f.eq.store[a].click)rspkr.log("[rspkr.ui] Click event already existed on " + h[b], 2); else {
14
+ $rs.regEvent(h[b], "click", function (g) {
15
+ v(g);
16
+ window.readpage(this)
17
+ });
18
+ rspkr.ui.addFocusHandler(h[b], !0, h[b].parentNode);
19
+ rspkr.log("[rspkr.ui] Added click event to: " + h[b], 1);
20
+ try {
21
+ $rs.getAttr(h[b], "role") || $rs.setAttr(h[b], "role", "button")
22
+ } catch (f) {
23
+ rspkr.log("[rspkr.ui] Could not add role attribute.", 2)
24
+ }
25
+ }
26
+ }, y = function () {
27
+ rspkr.log("[rspkr.ui] Initiating global callbacks");
28
+ rspkr.ui.rsbtnClass = rspkr.cfg.item("ui.rsbtnClass") || "rsbtn";
29
+ window.readpage = function (h, b) {
30
+ rspkr.ui.initrun && rspkr.ui.showPlayer(h, b)
31
+ };
32
+ window.rshlexit = function (h) {
33
+ rspkr.HL.chunking && rspkr.HL.chunking.destroy();
34
+ (void 0 === h || "false" === h) && a.stop();
35
+ setTimeout(function () {
36
+ rspkr.c.dispatchEvent("onAfterSyncExit", window)
37
+ }, 1E3)
38
+ };
39
+ window.rshlinit = l().sync.init;
40
+ window.rshlsetContent = l().sync.setContent;
41
+ window.rshlsetId = l().sync.setId;
42
+ window.rshlsync = function (h, b) {
43
+ for (var a = h.split(","), c = b.split(","), g = 0, j =
44
+ h.length; g < j; g++)l().sync.execute(a[g], c[g])
45
+ };
46
+ window.rshlcontinue = function () {
47
+ function h(g) {
48
+ if (!rspkr.HL.chunking.entracte.src) {
49
+ var g = encodeURIComponent(decodeURIComponent(rs.cfg.getPhrase(g))), a = {}, b;
50
+ for (b in rspkr.c.data.params)rspkr.c.data.params.hasOwnProperty(b) && (a[b] = rspkr.c.data.params[b]);
51
+ b = rspkr.Common.data.selectedText;
52
+ var c = rspkr.Common.data.selectedHTML;
53
+ rspkr.Common.data.selectedText = g;
54
+ rspkr.Common.data.selectedHTML = "";
55
+ a.text = g;
56
+ a.output = "audio";
57
+ g = rspkr.c.buildReadSpeakerCall(a);
58
+ rspkr.HL.chunking.entracte.src =
59
+ g;
60
+ rspkr.Common.data.selectedText = b;
61
+ rspkr.Common.data.selectedHTML = c
62
+ }
63
+ rspkr.HL.chunking.entracte.volume = parseFloat((rspkr.st.get("hlvol") || 100) / 100);
64
+ rspkr.HL.chunking.entracte.play()
65
+ }
66
+
67
+ if (rspkr.HL.chunking) {
68
+ rspkr.log("[rspkr.ui.rshlcontinue]");
69
+ rspkr.HL.chunking.chunkEnded = !0;
70
+ var b = $rs.get("#sync" + rspkr.HL.html5.synclist[rspkr.HL.html5.synclist.length - 1][2]), b = $rs.offset(b);
71
+ if (rspkr.HL.chunking.continueHref) {
72
+ var a = rspkr.cfg.item("cb.chunking.pause", void 0, !0);
73
+ if (-1 == rspkr.HL.chunking.continueTime)if (rspkr.log("[rspkr.ui.rshlcontinue] Waiting for user interaction"),
74
+ rs.ui.getActivePlayer().pause(), $rs.addClass(rspkr.ui.getActivePlayer().getContainer(), "rsautopaused"), h("chunkcontinue"), a && "function" == typeof a)rspkr.log("[rspkr.ui.rshlcontinue] Running custom callback", 3), a(); else {
75
+ rspkr.log("[rspkr.ui.rshlcontinue] Showing default continue button");
76
+ a = document.createElement("div");
77
+ a.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
78
+ $rs.addClass(a, rspkr.ui.rsbtnClass + " rspopup rsresume");
79
+ var c = $rs.findIn(a, "a");
80
+ c.removeAttribute("href");
81
+ $rs.regEvent(c, "click",
82
+ function () {
83
+ rspkr.c.dispatchEvent("onChunkResume", window)
84
+ });
85
+ $rs.findIn(c, ".rsbtn_text").innerHTML = "<span>" + rs.cfg.getPhrase("chunkbutton") + "</span>";
86
+ document.body.appendChild(a);
87
+ a.style.display = "block";
88
+ b.left += 15;
89
+ c = b.left + $rs.width(a) - $rs.width(window);
90
+ 0 < c && (b.left -= c);
91
+ a.style.left = b.left + "px";
92
+ a.style.top = b.top + 15 + "px"
93
+ } else 0 == rspkr.HL.chunking.continueTime ? (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay"), rspkr.c.dispatchEvent("onChunkResume", window)) : isNaN(rspkr.HL.chunking.continueTime) ? rspkr.log("[rshlcontinue] Invalid time parameter!",
94
+ 3) : (rspkr.log("[rspkr.ui.rshlcontinue] Autoplay with " + rspkr.HL.chunking.continueTime + " seconds delay"), 5 <= rspkr.HL.chunking.continueTime && h("chunkwait"), a && "function" == typeof a && a(rspkr.HL.chunking.continueTime), rspkr.HL.chunking.stall = !0, setTimeout(function () {
95
+ rspkr.HL.chunking.stall = !1
96
+ }, 1E3 * rspkr.HL.chunking.continueTime), rspkr.HL.chunking.timer = setTimeout(function () {
97
+ rspkr.c.dispatchEvent("onChunkResume", window)
98
+ }, 1E3 * rspkr.HL.chunking.continueTime))
99
+ } else rspkr.log("[rshlcontinue] No continue href found!")
100
+ }
101
+ };
102
+ var h = rspkr.c.data.browser;
103
+ h && (/iphone|ipad|ios|android/i.test(h.OS) || "android" == h.name.toLowerCase()) ? $rs.regEvent(document.body, "touchend", function (h) {
104
+ rspkr.c.data.setSelectedText(h);
105
+ return!0
106
+ }) : ($rs.regEvent(document.body, "mousedown", function (h) {
107
+ rspkr.ui.setPointerPos(h);
108
+ return!0
109
+ }), $rs.regEvent(document.body, "mouseup", function (a) {
110
+ "opera" === h.name.toLowerCase() ? setTimeout(function () {
111
+ rspkr.c.data.setSelectedText(a)
112
+ }, 50) : rspkr.c.data.setSelectedText(a);
113
+ return!0
114
+ }), $rs.regEvent(window, "mouseup", function (a) {
115
+ "opera" ===
116
+ h.name.toLowerCase() ? setTimeout(function () {
117
+ rspkr.c.data.setSelectedText(a)
118
+ }, 50) : rspkr.c.data.setSelectedText(a);
119
+ return!0
120
+ }), $rs.regEvent(document.body, "keydown", rspkr.ui.setPointerPos), $rs.regEvent(document.body, "keyup", function (h) {
121
+ rspkr.c.data.setSelectedText(h);
122
+ return!0
123
+ }))
124
+ }, q = function () {
125
+ document.removeEventListener ? document.removeEventListener("click", window.ReadSpeakerDefer.clickhandler, !1) : document.detachEvent && document.detachEvent("onclick", window.ReadSpeakerDefer.clickhandler);
126
+ if (ReadSpeakerDefer.deferred) {
127
+ var h =
128
+ ReadSpeakerDefer.deferred, a = null;
129
+ if ("a" != h.tagName.toLowerCase()) {
130
+ for (a = h; "body" != a.tagName.toLowerCase() && !(a = a.parentNode, "a" == a.tagName.toLowerCase()););
131
+ h = a
132
+ }
133
+ ReadSpeakerDefer.isRSLink(h) && (rspkr.log("[rspkr.ui] Activating deferred element: " + h), $rs.removeClass(h.parentNode, "rsdeferred"), rspkr.ui.showPlayer(h));
134
+ ReadSpeakerDefer.deferred = null
135
+ }
136
+ }, w = null, e = function () {
137
+ w && $rs.isVisible(w) && (rspkr.log("[rspkr.ui.updateFocus] " + w.outerHTML), t(w))
138
+ }, t = function (h) {
139
+ $rs.focus && ("function" == typeof $rs.focus &&
140
+ h) && $rs.focus(h)
141
+ }, b = function (h) {
142
+ if ("iconon" == rspkr.st.get("hlicon") && !x) {
143
+ var a = p.push(new k) - 1;
144
+ p[a].id = a;
145
+ p[a].show(h);
146
+ x = !0
147
+ }
148
+ }, c = function () {
149
+ "iconon" == rspkr.st.get("hlicon") && x && (p.pop().hide(), x = !1)
150
+ }, k = function () {
151
+ var h = 0, a = 0, b = null, c = 52, f = null, g = null, j = null, e = function (g) {
152
+ g = g || b;
153
+ $rs.addClass(g, rspkr.ui.rsbtnClass + " rspopup");
154
+ rspkr.cfg.item("general.useCompactPopupButton") && $rs.addClass(g, "rscompact")
155
+ }, k = function (h) {
156
+ $rs.unregEvent(b, "mouseout", i);
157
+ window.clearTimeout(f);
158
+ var a, c = b.clientWidth + 10, u;
159
+ g = rspkr.ui.showPlayer(j,
160
+ b, !0);
161
+ u = g.getWidth();
162
+ a = parseInt($rs.offset(b).left);
163
+ if ((a = rspkr.ui.viewport.width + $rs.scrollLeft(document) - a) < u)a = parseInt($rs.css(b, "left")) - (u - (c - 10)), $rs.css(b, "left", a + "px");
164
+ x = !1;
165
+ $rs.unregEvent(j, "click", k);
166
+ $rs.regEvent(j, "click", function (a) {
167
+ v(a);
168
+ return g.restart()
169
+ });
170
+ v(h);
171
+ return!1
172
+ }, i = function () {
173
+ f || (f = window.setTimeout(function () {
174
+ n()
175
+ }, rspkr.cfg.item("general.popupCloseTime") || 2E3))
176
+ }, m = function () {
177
+ f && (window.clearTimeout(f), f = null)
178
+ }, r = function (g, a) {
179
+ var h = document.body.getBoundingClientRect();
180
+ $rs.css(b,
181
+ {top: a - h.top + "px", left: g - h.left + "px", width: c + "px"})
182
+ }, n = function () {
183
+ $rs.css(b, {display: "none", top: 0, left: 0});
184
+ m();
185
+ p.splice(null, 1);
186
+ x = !1;
187
+ b.parentElement.removeChild(b)
188
+ }, l = rspkr.c.findFirstRSButton(), b = document.createElement("div");
189
+ b.id = rspkr.getID();
190
+ b.innerHTML = rspkr.cfg.item("ui.popupbutton").join("");
191
+ e();
192
+ j = $rs.findIn(b, "a.rsbtn_play");
193
+ j.href = l ? l.href : null;
194
+ if (l = rspkr.cfg.item("general.popupHref"))j.href = l;
195
+ var l = j.href.match(/lang=([^&;]*)/i).pop(), q = $rs.findIn($rs.get(b), "a.rsbtn_play span.rsbtn_text span");
196
+ q && (q.textContent = q.innerText = rspkr.cfg.getPhrase("listen", l, "en_us"));
197
+ $rs.setAttr(j, "title", rspkr.cfg.getPhrase("listentoselectedtext", l, "en_us"));
198
+ $rs.regEvent(j, "click", k);
199
+ document.body.appendChild(b);
200
+ return{setPos: r, show: function (g) {
201
+ m(g);
202
+ if (g && "none" == $rs.css(b, "display")) {
203
+ var j = b.cloneNode(!0);
204
+ j.id = rspkr.getID();
205
+ $rs.css(j, {display: "block", position: "absolute", top: 0, left: 0});
206
+ document.body.appendChild(j);
207
+ c = $rs.outerWidth(j) + 3;
208
+ document.body.removeChild(j);
209
+ j = g.clientX || g.pageX;
210
+ g = g.clientY || g.pageY;
211
+ a = g > rspkr.ui.pointerY ? g - $rs.scrollTop(document) + 36 > rspkr.ui.viewport.height - 46 ? g - 66 : g + 30 : 10 > g - $rs.scrollTop(document) - 66 ? g + 30 : g - 51;
212
+ h = 10 > j - $rs.scrollLeft(document) ? j + 10 : j - $rs.scrollLeft(document) > rspkr.ui.viewport.width - (c + 10) ? rspkr.ui.viewport.width + $rs.scrollLeft(document) - (c + 10) : j + 0;
213
+ r(h, a)
214
+ }
215
+ $rs.regEvent(b, "mouseout", i);
216
+ $rs.regEvent(b, "mouseover", m);
217
+ i(null);
218
+ e();
219
+ $rs.css(b, "display", "block")
220
+ }, hide: n, id: null}
221
+ }, i = {update: function (h, b, c) {
222
+ "hlspeed" === h && b !== c && (h = h.replace("hl", ""), rspkr.c.converter[h] &&
223
+ "function" == typeof rspkr.c.converter[h] && (b = rspkr.c.converter[h](b)), rspkr.c.data[h] = b, a && a.stop(), rspkr.pl.releaseAdapter())
224
+ }}, m = function (a, b, c, f, e, g) {
225
+ $rs.css(a, "background-color", "rgb(" + b + "," + c + "," + f + ")");
226
+ f < e ? (f += 10, window.setTimeout(function () {
227
+ m(a, b, c, f, e, g)
228
+ }, 50)) : g && "function" === typeof g && g.apply(a, [])
229
+ }, l = function () {
230
+ return rspkr.XP ? rspkr.XP : rspkr.HL
231
+ };
232
+ _expand = function (a) {
233
+ "string" == typeof a && (a = $rs.get(a));
234
+ $rs.isArray(a) || (a = [a]);
235
+ for (var b = rspkr.c.data.browser, c = function (g) {
236
+ return $rs.closest(g,
237
+ "div." + rspkr.ui.rsbtnClass)
238
+ }, f = function () {
239
+ k(this)
240
+ }, e = function () {
241
+ var g = $rs.findIn(c(this), ".rsbtn_play");
242
+ $rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
243
+ k(this);
244
+ g.click()
245
+ }, g = function () {
246
+ $rs.removeClass(c(this), "rsstopped rsplaying rspaused rsexpanded");
247
+ k(this)
248
+ }, j = function () {
249
+ var g = c(this);
250
+ rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function () {
251
+ rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
252
+ rspkr.cfg.execCallback("cb.ui.settingsopened", g)
253
+ })
254
+ }, k = function (a) {
255
+ a =
256
+ c(a);
257
+ $rs.unregEvent($rs.findIn(a, ".rsbtn_pause"), "click", e);
258
+ $rs.unregEvent($rs.findIn(a, ".rsbtn_closer"), "click", g);
259
+ $rs.unregEvent($rs.findIn(a, ".rsbtn_settings"), "click", j);
260
+ $rs.unregEvent($rs.findIn(a, ".rsbtn_play"), "click", f);
261
+ $rs.removeClass(a, "pre-expanded")
262
+ }, i = 0; i < a.length; i++) {
263
+ $rs.addClass(a[i], "rsexpanded rsstopped");
264
+ var m = $rs.findIn(a[i], ".rsbtn_powered");
265
+ if (m) {
266
+ var l = $rs.findIn(m, ".rsbtn_btnlabel"), r = rs.cfg.getPhrase("speechenabled") || "", n = (r.match(/.*href="([^"]*)"/i) || []).pop(), p = rs.cfg.getPhrase("newwindow"),
267
+ q = document.createElement("p");
268
+ q.innerHTML = r;
269
+ p = (q.innerText || q.textContent) + (p ? " (" + p + ")" : "");
270
+ l && (l.innerHTML = r);
271
+ $rs.setAttr(m, "title", p);
272
+ $rs.setAttr(m, "data-readspeaker-href", n);
273
+ l = $rs.getAttr(m, "data-rsevent-id");
274
+ (!l || rs.l.f.eq.store[l] && !rs.l.f.eq.store[l].click) && $rs.regEvent(m, "click", function () {
275
+ window.open($rs.getAttr(this, "data-readspeaker-href"))
276
+ });
277
+ if (m = $rs.findIn(m, ".rsbtn_btnlabel a"))(/Chrome|Safari|Opera/gi.test(b.name) || /Explorer/gi.test(b.name) && 8 <= b.version) && $rs.regEvent(m, "click", function (g) {
278
+ v(g)
279
+ }),
280
+ m.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>'
281
+ }
282
+ $rs.addClass(a[i], "pre-expanded");
283
+ $rs.removeClass($rs.findIn(a[i], ".rsbtn_progress_container"), "rsloading");
284
+ $rs.regEvent($rs.findIn(a[i], ".rsbtn_closer"), "click", g);
285
+ $rs.regEvent($rs.findIn(a[i], ".rsbtn_pause"), "click", e);
286
+ $rs.regEvent($rs.findIn(a[i], ".rsbtn_play"), "click", f);
287
+ $rs.regEvent($rs.findIn(a[i], ".rsbtn_settings"), "click", j)
288
+ }
289
+ };
290
+ _animate = function () {
291
+ var a =
292
+ rs.cfg.item("ui.animate");
293
+ if (a) {
294
+ var b, c = 15, f = 500;
295
+ "object" == typeof a ? (a.id && (b = $rs.get(a.id)), a.count && (c = a.count), a.interval && (f = a.interval)) : "string" === typeof a && (b = $rs.get(a));
296
+ if ("boolean" === typeof a && a || $rs.isArray(b) && 0 == b.length || !b)b = $rs.get("." + rs.ui.rsbtnClass);
297
+ $rs.isArray(b) || (b = [b]);
298
+ var e = c, g = setInterval(function () {
299
+ 0 == e && ($rs.removeClass(b, "rsanimate"), clearInterval(g));
300
+ 1 == e-- % 2 ? $rs.addClass(b, "rsanimate") : $rs.removeClass(b, "rsanimate")
301
+ }, f)
302
+ }
303
+ };
304
+ return{meta: {revision: "3253"}, initrun: !1, init: function () {
305
+ evt =
306
+ rspkr.Common.addEvent;
307
+ ui = rspkr.ui;
308
+ evt("onAfterModsLoaded", y);
309
+ evt("onReady", n);
310
+ evt("onReady", q);
311
+ evt("onReady", _animate);
312
+ evt("onSelectedText", b);
313
+ evt("onDeselectedText", c);
314
+ evt("onSettingsChanged", i.update);
315
+ evt("onAfterSyncInit", e);
316
+ this.initrun = !0;
317
+ rspkr.Common.dispatchEvent("onUIInitialized");
318
+ rspkr.log("[rspkr.ui] Initialized!")
319
+ }, addFocusHandler: function (a, b, c) {
320
+ var f = b, e = c, e = e || a;
321
+ void 0 === f && (f = !0);
322
+ $rs.focusIn && "function" == typeof $rs.focusIn && ($rs.focusIn(a, function () {
323
+ $rs.addClass(e, "rsfocus");
324
+ !0 === f &&
325
+ (w = a);
326
+ rspkr.Common.dispatchEvent("onFocusIn", window, [a, e])
327
+ }), $rs.focusOut(a, function () {
328
+ $rs.removeClass(e, "rsfocus");
329
+ rspkr.Common.dispatchEvent("onFocusOut", window, [a, e])
330
+ }))
331
+ }, focus: function (a) {
332
+ t(a)
333
+ }, updateFocus: function () {
334
+ e()
335
+ }, showOverlay: function (b, c) {
336
+ var f = b, e;
337
+ e = c || a.getContainer();
338
+ var k = $rs.findIn(e, ".rsbtn_status");
339
+ 0 === k.length && (k = document.createElement("span"), k.className = "rsbtn_status_overlay", k.innerHTML = '<span class="rsbtn_status"></span>', $rs.findIn(e, ".rsbtn_exp").appendChild(k), k = $rs.findIn(e,
340
+ ".rsbtn_status"));
341
+ $rs.css($rs.findIn(e, ".rsbtn_status_overlay"), "display", "block");
342
+ if ("nosound" === f)f = '<a class="rsbtn_nosound">' + rspkr.cfg.getPhrase("nosound") + "</a>", k.innerHTML = f, (f = $rs.findIn(e, ".rsbtn_nosound")) && $rs.regEvent(f, "click", function () {
343
+ return a.nosound()
344
+ }); else if ("loaderror" === f) {
345
+ var f = rspkr.c.data.getSaveData("link"), g = document.createElement("a");
346
+ g.className = "rsbtn_loaderror";
347
+ g.innerHTML = "[?]";
348
+ g.href = f;
349
+ $rs.regEvent(g, "click", function (a) {
350
+ rspkr.ui.Lightbox.show("<iframe src='" + g.href +
351
+ "' style='height:100%'></iframe>", null, !1, null, 300);
352
+ v(a)
353
+ });
354
+ k.innerHTML = rspkr.cfg.getPhrase("loaderror") || "An error has occurred, try again";
355
+ k.appendChild(g)
356
+ } else k.innerHTML = f
357
+ }, settings: i, rsbtnClass: "", addClickEvents: function () {
358
+ n()
359
+ }, initGlobalCallbacks: function () {
360
+ y()
361
+ }, showPopupIcon: function (a) {
362
+ b(a)
363
+ }, processDeferred: function () {
364
+ q()
365
+ }, showPlayer: function (b, c, e) {
366
+ var k;
367
+ a:{
368
+ var i = e;
369
+ rspkr.log("[rspkr.ui.showPlayer]");
370
+ i = i || !1;
371
+ if ("string" == typeof b)b:{
372
+ for (var e = $rs.get("a"), g = 0, j = e.length; g < j; g++)if (e[g].href &&
373
+ e[g].href == b) {
374
+ e = e[g];
375
+ break b
376
+ }
377
+ e = !1
378
+ } else e = b;
379
+ e = (g = e) ? $rs.closest(g, ".rsexpanded") : void 0;
380
+ j = rspkr.HL.chunking ? rspkr.HL.chunking.currentChunkNumber : 1;
381
+ if (e && !$rs.isArray(e) && rspkr.ui.getActivePlayer() && 1 == j)rspkr.log("Player already active, calling Player.restart() instead"), rspkr.ui.getActivePlayer().restart(), k = void 0; else {
382
+ rspkr.HL.chunking && rspkr.HL.chunking.destroy();
383
+ rspkr.HL.chunking && rspkr.HL.chunking.html5support && (rspkr.HL.chunking.entracte = new Audio, rspkr.HL.chunking.entracte.play(), rspkr.HL.chunking.entracte.pause());
384
+ rspkr.c.dispatchEvent("onBeforeParamsSet", window, [g]);
385
+ e = "string" == typeof b ? b : g.href;
386
+ j = null;
387
+ "string" == typeof b && (b = e.match(/readid=[^&]+/gi), j = e.match(/readclass=[^&]+/gi), b && 0 < b.length && rspkr.HL.Restore.Storage.readId.push(b[0].replace("readid=", "").split(",")), j && 0 < j.length && rspkr.HL.Restore.Storage.readClass.push(j[0].replace("readclass=", "").split(",")));
388
+ rspkr.c.data.selectedHTML = "";
389
+ rspkr.c.data.setParams(e);
390
+ void 0 !== $rs.getAttr(g, "data-target") && null !== $rs.getAttr(g, "data-target") && (b = $rs.getAttr(g,
391
+ "data-target"), b = $rs.get(b), "object" === typeof b && (c = b));
392
+ c && !i ? (j = $rs.get(c), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsfloating"), rspkr.basicMode && ($rs.removeClass(j, "rshidden"), $rs.addClass(j, rspkr.ui.rsbtnClass + " rsvisible"))) : j = $rs.closest(g, "div." + rspkr.ui.rsbtnClass);
393
+ if (!0 === rspkr.cfg.item("survey.allowed"))if (c = rspkr.c.cookie, i = rspkr.cfg.item("survey.cookieName") || "rspkrsurvey", b = rspkr.cfg.item("survey.cookieLifetime") || 15552E6, g = rspkr.c.data.params, "1" === c.readKey(i, "nmbrdisplays")) {
394
+ rspkr.ui.Lightbox.show(rspkr.cfg.item("survey.url") +
395
+ "?customerid=" + g.customerid + "&lang=" + g.lang, rspkr.st.r().replaceTokens(rspkr.cfg.item("ui.survey.buttons").join(), {rsSURVEY_BUTTON_CLOSErs: rspkr.cfg.getPhrase("close")}), !0, function () {
396
+ $rs.regEvent($rs.get("#rssurvey_button_close"), "click", rspkr.u.Lightbox.hide)
397
+ }, 500);
398
+ rspkr.log(c.updateKey(i, "nmbrdisplays", "displayed", b), 4);
399
+ k = void 0;
400
+ break a
401
+ } else void 0 === c.readKey(i, "nmbrdisplays") && rspkr.log(c.updateKey(i, "nmbrdisplays", "1", b), 4);
402
+ b:{
403
+ c = j;
404
+ for (k in f)if (f[k] && f[k].getContainer && f[k].getContainer() ==
405
+ c) {
406
+ k = f[k];
407
+ break b
408
+ }
409
+ k = new rspkr.ui.Player(c);
410
+ f.push(k)
411
+ }
412
+ if (a && a != k || a && e !== a.getHref())a.close(!0), rspkr.c.dispatchEvent("onUIClosePlayer", a.getContainer(), [0 < rspkr.c.data.selectedText.length ? "textsel" : "nosel"]);
413
+ c = (c = a) ? c.getID() : null;
414
+ rspkr.c.dispatchEvent("onUIShowPlayer", window, [c, k.getID()]);
415
+ k.setHref(e);
416
+ a = k;
417
+ k.show();
418
+ k = a
419
+ }
420
+ }
421
+ return k
422
+ }, expand: function (a) {
423
+ _expand(a)
424
+ }, pointerX: 0, pointerY: 0, setPointerPos: function (a) {
425
+ rspkr.ui.pointerX = a.pageX;
426
+ rspkr.ui.pointerY = a.pageY;
427
+ return!0
428
+ }, viewport: {width: $rs.width(window),
429
+ height: $rs.height(window)}, popups: p, hl: function (a, b) {
430
+ window.setTimeout(function () {
431
+ m(a, 255, 255, 100, 255, b)
432
+ }, 200)
433
+ }, scroll: {INTERVAL: null, STEPS: 25, scrollToElm: function (a) {
434
+ $rs.isVisible(a) && this.initScroll(a)
435
+ }, scrollToAnchor: function (a) {
436
+ for (var b = $rs.get("a"), c = null, e = 0; e < b.length; e++) {
437
+ var f = b[e];
438
+ if (f.name && f.name == a) {
439
+ c = f;
440
+ break
441
+ }
442
+ }
443
+ this.initScroll(c)
444
+ }, initScroll: function (a) {
445
+ if (a) {
446
+ for (var b = a.offsetTop, c = a; c.offsetParent && c.offsetParent != document.body;)c = c.offsetParent, b += c.offsetTop;
447
+ b -= 50;
448
+ rs.cfg.item("ui.autoscrollOffset") && !isNaN(rs.cfg.item("ui.autoscrollOffset")) && (b -= rs.cfg.item("ui.autoscrollOffset"));
449
+ clearInterval(rspkr.u.scroll.INTERVAL);
450
+ var c = rspkr.u.scroll.getCurrentYPos(), e = parseInt((b - c) / rspkr.u.scroll.STEPS);
451
+ rspkr.u.scroll.INTERVAL = setInterval(function () {
452
+ rspkr.u.scroll.scrollWindow(e, b, a)
453
+ }, 10)
454
+ } else document.location.hash = a
455
+ }, getCurrentYPos: function () {
456
+ return document.body && document.body.scrollTop ? document.body.scrollTop : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop :
457
+ window.pageYOffset ? window.pageYOffset : 0
458
+ }, scrollWindow: function (a, b, c) {
459
+ var e = rspkr.u.scroll.getCurrentYPos(), f = e < b;
460
+ window.scrollTo(0, e + a);
461
+ a = rspkr.u.scroll.getCurrentYPos();
462
+ if (f != a < b || e == a)window.scrollTo(0, b), clearInterval(rspkr.u.scroll.INTERVAL), "string" == typeof c && (location.hash = c)
463
+ }}, activePlayer: a, getActivePlayer: function () {
464
+ return a
465
+ }}
466
+ }();
467
+ ReadSpeaker.ui.Slider = function () {
468
+ var a = this, f = {handleClass: "", width: 0, height: 0, left: 0, top: 0, steps: -1, stepsize: -1, dir: "h", initval: -1, drop: null, start: null, dragging: null, click: null, labelDragHandle: "", labelStart: "", labelEnd: "", nudge: 1}, p = {rsid: void 0, parent: void 0, ref: void 0}, x = void 0, v = void 0, n = void 0, y = void 0, q = void 0, w = !1, e = 0, t = function (a) {
469
+ a = a || window.event;
470
+ a.returnValue = !1;
471
+ if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
472
+ a && a.preventDefault && a.preventDefault();
473
+ a && a.stopPropagation && a.stopPropagation()
474
+ };
475
+ this.initElement = function (a) {
476
+ if (!w) {
477
+ "string" == typeof a && (a = document.getElementById(a));
478
+ a.innerHTML += '<a href="javascript:void(0);" role="slider" class="keyLink" style="display:block; border:0;">&#160;</a>';
479
+ var c = a.getElementsByTagName("a"), c = c[c.length - 1], k = -1 < f.steps ? f.steps : 100;
480
+ c.relatedElement = a;
481
+ $rs.setAttr(c, "title", f.labelDragHandle);
482
+ $rs.setAttr(c, "aria-label", f.labelDragHandle);
483
+ $rs.setAttr(c, "aria-orientation", "h" == f.dir ? "horizontal" : "vertical");
484
+ $rs.setAttr(c, "aria-valuemin", 0);
485
+ $rs.setAttr(c,
486
+ "aria-valuemax", k);
487
+ $rs.setAttr(c, "aria-valuenow", f.initval || 0);
488
+ e = f.initval;
489
+ $rs.regEvent(a, "mousedown", this.startDragMouse);
490
+ $rs.regEvent(c, "click", function (a) {
491
+ t(a)
492
+ });
493
+ $rs.regEvent(c, "keyup", this.startDragKeys);
494
+ $rs.regEvent(c, "dragstart", function (a) {
495
+ t(a)
496
+ });
497
+ $rs.regEvent(a, "touchstart", this.touchStart);
498
+ $rs.regEvent(p.parent, "mousedown", this.mouseClick)
499
+ }
500
+ };
501
+ this.mouseClick = function (b) {
502
+ if (!w && !$rs.hasClass(p.ref, "dragged")) {
503
+ var c = a.findPos(b.target), e = b.clientX - (c.left - f.left), b = b.clientY - (c.top - f.top);
504
+ n =
505
+ c.left;
506
+ y = c.top;
507
+ c = a.getCurrentVal({left: e, top: b});
508
+ "function" == typeof f.click && f.click(c, p);
509
+ return!1
510
+ }
511
+ };
512
+ this.findPos = function (a) {
513
+ var c = curTop = 0;
514
+ if (a.offsetParent) {
515
+ do c += a.offsetLeft, curTop += a.offsetTop; while (a = a.offsetParent);
516
+ return{left: c, top: curTop}
517
+ }
518
+ };
519
+ this.startDragMouse = function (b) {
520
+ rspkr.log("[rspkr.ui.Slider] startDragMouse");
521
+ if (!w) {
522
+ a.startDrag(this);
523
+ var c = b || window.event;
524
+ x = c.clientX;
525
+ v = c.clientY;
526
+ $rs.regEvent(document.body, "mousemove", a.dragMouse);
527
+ $rs.regEvent(document.body, "mouseup", a.releaseElement)
528
+ }
529
+ t(b);
530
+ return!1
531
+ };
532
+ this.startDragKeys = function (b) {
533
+ rspkr.log("[rspkr.ui.Slider] startDragKeys " + (b || window.event).keyCode);
534
+ a.startDrag(this.relatedElement);
535
+ $rs.regEvent(document.body, "keydown", a.dragKeys);
536
+ $rs.regEvent(document.body, "keypress", a.switchKeyEvents);
537
+ $rs.addClass(this.relatedElement, "rskeycontrolled");
538
+ t(b)
539
+ };
540
+ this.touchStart = function (b) {
541
+ b = b.originalEvent;
542
+ rspkr.log("[rspkr.ui.Slider] touchStart");
543
+ w || (a.startDrag(b.target), x = b.touches[0].pageX, v = b.touches[0].pageY, $rs.regEvent(b.target, "touchmove", a.touchMove),
544
+ $rs.regEvent(b.target, "touchend", a.releaseElement));
545
+ return!1
546
+ };
547
+ this.startDrag = function (b) {
548
+ rspkr.log("[rspkr.ui.Slider] startDrag");
549
+ q && a.releaseElement();
550
+ n = b.offsetLeft;
551
+ y = b.offsetTop;
552
+ q = b;
553
+ $rs.addClass(q, "dragged");
554
+ "function" == typeof f.start && f.start(p)
555
+ };
556
+ this.dragMouse = function (b) {
557
+ b = b || window.event;
558
+ a.setPosition(b.clientX - x, b.clientY - v);
559
+ a.valueChanged = !0;
560
+ return!1
561
+ };
562
+ this.touchMove = function (b) {
563
+ t(b);
564
+ a.setPosition(b.touches[0].pageX - x, b.touches[0].pageY - v);
565
+ a.valueChanged = !0;
566
+ return!1
567
+ };
568
+ this.dragKeys = function (b) {
569
+ switch ((b ||
570
+ window.event).keyCode) {
571
+ case 37:
572
+ case 63234:
573
+ a.valueChanged = !0;
574
+ e -= f.nudge;
575
+ break;
576
+ case 38:
577
+ case 63232:
578
+ a.valueChanged = !0;
579
+ e += f.nudge;
580
+ break;
581
+ case 39:
582
+ case 63235:
583
+ a.valueChanged = !0;
584
+ e += f.nudge;
585
+ break;
586
+ case 40:
587
+ case 63233:
588
+ a.valueChanged = !0;
589
+ e -= f.nudge;
590
+ break;
591
+ case 13:
592
+ case 27:
593
+ return a.releaseElement(), !1;
594
+ case 9:
595
+ return a.releaseElement(), !0;
596
+ default:
597
+ return rspkr.log("[rspkr.ui.Slider] return TRUE"), !0
598
+ }
599
+ !0 === a.valueChanged && (rspkr.c.dispatchEvent("onUISliderMove"), "function" == typeof f.dragging && f.dragging(a.getCurrentVal({skipValueCalculation: !0}),
600
+ p));
601
+ t(b);
602
+ rspkr.log("[rspkr.ui.Slider] ready to return!");
603
+ return!1
604
+ };
605
+ this.setPosition = function (b, c) {
606
+ var e, i = !1;
607
+ e = b;
608
+ var m = n, l = f.left, h = f.width, u = "left";
609
+ "v" == f.dir && (e = c, m = y, l = f.top, h = f.height, u = "top");
610
+ e = m + e;
611
+ -1 < f.stepsize && ((e + l) % f.stepsize ? e = f.stepsize * Math.ceil(e / f.stepsize) + l : i = !0);
612
+ e > h + l ? e = h + l : e < l && (e = l);
613
+ i || (q.style[u] = e + "px", "function" == typeof f.dragging && f.dragging(a.getCurrentVal(), p))
614
+ };
615
+ this.switchKeyEvents = function () {
616
+ $rs.unregEvent(document.body, "keydown", a.dragKeys);
617
+ $rs.unregEvent(document.body,
618
+ "keypress", a.switchKeyEvents);
619
+ $rs.regEvent(document.body, "keypress", a.dragKeys)
620
+ };
621
+ this.releaseElement = function () {
622
+ rspkr.log("[rspkr.ui.Slider] releaseElement");
623
+ $rs.unregEvent(document.body, "mousemove", a.dragMouse);
624
+ $rs.unregEvent(document.body, "mouseup", a.releaseElement);
625
+ $rs.unregEvent(document.body, "keypress", a.dragKeys);
626
+ $rs.unregEvent(document.body, "keypress", a.switchKeyEvents);
627
+ $rs.unregEvent(document.body, "keydown", a.dragKeys);
628
+ $rs.unregEvent(q, "touchmove", a.touchMove);
629
+ $rs.unregEvent(q, "touchend",
630
+ a.releaseElement);
631
+ $rs.removeClass(q, "dragged");
632
+ $rs.removeClass(q, "rskeycontrolled");
633
+ $rs.removeClass(q, "rsmousecontrolled");
634
+ var b = a.getCurrentVal();
635
+ q = null;
636
+ "function" == typeof f.drop && !0 === a.valueChanged && f.drop(b, p);
637
+ a.valueChanged = !1;
638
+ rs.ui.getActivePlayer() && rs.ui.getActivePlayer().setProgress();
639
+ return!1
640
+ };
641
+ this.getCurrentVal = function (a) {
642
+ var c, k = f.width;
643
+ c = "left";
644
+ var i = f.left;
645
+ "v" == f.dir && (k = f.height, c = "top", i = f.top);
646
+ var m = -1 < f.steps ? f.steps : 100, k = -1 < f.stepsize ? f.stepsize : k / m, a = a ? a[c] : $rs.css(p.ref, c).replace(/px/i,
647
+ "");
648
+ pos = Math.round(a) - i;
649
+ c = Math.round(pos / k);
650
+ "v" == f.dir && (c = m - c);
651
+ rspkr.log("[rspkr.ui.Slider] currentval: " + c);
652
+ return a && a.skipValueCalculation || isNaN(c) ? e = Math.max(Math.min(e, m), 0) : e = c
653
+ };
654
+ return{init: function (b, c) {
655
+ "string" == typeof b && (b = document.getElementById(b));
656
+ if (b) {
657
+ var e = b.id || "data-readspeaker-slider-id-" + Math.floor(2E4 * Math.random());
658
+ b.setAttribute && b.setAttribute("data-readspeaker-slider-id-", "data-readspeaker-slider-parent-" + e);
659
+ var i = {width: function () {
660
+ return $rs.width(b)
661
+ }, height: function () {
662
+ return $rs.height(b)
663
+ }};
664
+ if ("object" == typeof c)for (var m in c)c.hasOwnProperty(m) && void 0 !== f[m] && (f[m] = c[m]);
665
+ m = !1;
666
+ var l;
667
+ "rsbtn_volume_slider" === b.className && ("jquery" === rspkr.l.f.currentLib() && 1.5 > parseFloat(jQuery.fn.jquery)) && (l = b.parentNode.style.display, b.parentNode.style.display = "block", m = !0);
668
+ f.width = i.width();
669
+ f.height = i.height();
670
+ m && (b.parentNode.style.display = l);
671
+ -1 < f.steps && (f.stepsize = ("h" == f.dir ? f.width : f.height) / f.steps);
672
+ i = document.createElement("span");
673
+ i.setAttribute("data-readspeaker-slider-id-", e);
674
+ i.className =
675
+ f.handleClass || "rsbtn_progress_handle rsimg";
676
+ b.appendChild(i);
677
+ p.rsid = e;
678
+ p.parent = b;
679
+ p.ref = i;
680
+ e = $rs.css(i, "left");
681
+ null !== e && (f.left = parseInt(e.replace(/px/i, "")));
682
+ e = $rs.css(i, "top");
683
+ null !== e && (f.top = parseInt(e.replace(/px/i, "")));
684
+ -1 < f.initval && this.jumpTo(f.initval);
685
+ f.labelStart && (e = document.createElement("span"), e.className = "slider-label-start", e.innerHTML = f.labelStart, b.appendChild(e));
686
+ f.labelEnd && (e = document.createElement("span"), e.className = "slider-label-end", e.innerHTML = f.labelEnd, b.appendChild(e));
687
+ a.initElement(i)
688
+ }
689
+ }, jumpTo: function (a) {
690
+ if (isNaN(a))return!1;
691
+ var c = 101, e = a;
692
+ -1 < f.steps && (a = Math.round(a), c = f.steps + 1);
693
+ if (-1 < a && a < c) {
694
+ var i = f.width, m = f.left, l = "left";
695
+ "v" == f.dir && (i = f.height, m = f.top, l = "top", a = c - 1 - a);
696
+ p.ref.style[l] = i / (c - 1) * a + m + "px";
697
+ $rs.setAttr($rs.findIn(p.ref, "a.keyLink"), "aria-valuenow", e)
698
+ }
699
+ }, setCurrentValue: function (a) {
700
+ e = a
701
+ }, getInstance: function () {
702
+ return p
703
+ }, getContainer: function () {
704
+ return p.parent
705
+ }, releaseElement: function () {
706
+ a.releaseElement()
707
+ }, startDragKeys: function (b, c) {
708
+ a.startDragKeys.call(b,
709
+ c)
710
+ }, disabled: function () {
711
+ if (arguments)w = arguments[0]; else return w
712
+ }}
713
+ };
714
+ ReadSpeaker.ui.Player = function (a) {
715
+ var f = function (a) {
716
+ a = a || window.event;
717
+ a.returnValue = !1;
718
+ if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
719
+ a && a.preventDefault && a.preventDefault();
720
+ a && a.stopPropagation && a.stopPropagation()
721
+ }, p = rspkr.getID(), x = this, v = [], n = 0, y = !1, q = null, w = !1, e = {_play: null, _pause: null, _stop: null, _vol: null, _settings: null, _dl: null, _closer: null, _powered: null, _get: function (g, b) {
722
+ var c, g = "_" + g;
723
+ c = a ? this[g] && 0 < this[g].length ? this[g] : this[g] = $rs.findIn(a, b) : null;
724
+ return c == [] ? null : c
725
+ }, play: function () {
726
+ return this._get("play",
727
+ ".rsbtn_play")
728
+ }, pause: function () {
729
+ return this._get("pause", ".rsbtn_pause")
730
+ }, stop: function () {
731
+ return this._get("stop", ".rsbtn_stop")
732
+ }, vol: function () {
733
+ return this._get("vol", ".rsbtn_volume")
734
+ }, settings: function () {
735
+ return this._get("settings", ".rsbtn_settings")
736
+ }, dl: function () {
737
+ return this._get("dl", ".rsbtn_dl")
738
+ }, pin: function () {
739
+ return this._get("pin", ".rsbtn_pin")
740
+ }, powered: function () {
741
+ return this._get("powered", ".rsbtn_powered")
742
+ }, closer: function () {
743
+ return this._get("closer", ".rsbtn_closer")
744
+ }, nosound: function () {
745
+ return this._get("nosound",
746
+ ".rsbtn_nosound")
747
+ }, setPlayPause: function (a) {
748
+ rspkr.log("[rspkr.ui.Player.setPlayPause(" + a + ")]");
749
+ a = a ? $rs.getAttr(this.pause(), "data-rsphrase-play") : $rs.getAttr(this.pause(), "data-rsphrase-pause");
750
+ $rs.setAttr(this.pause(), "title", rspkr.c.decodeEntities(a));
751
+ $rs.findIn(this.pause(), ".rsbtn_btnlabel").innerHTML = a
752
+ }}, t = !1, b = [], c = {play: function () {
753
+ rspkr.c.dispatchEvent("onUIBeforePlay");
754
+ rspkr.log("[rspkr.ui.handlers.play]");
755
+ b.progress && b.progress.disabled(!1);
756
+ c.setStateClass(a, "rsplaying");
757
+ rspkr.basicMode &&
758
+ c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsplaying");
759
+ $rs.addClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading");
760
+ e.setPlayPause(!1);
761
+ rspkr.pl.play();
762
+ w && rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x]);
763
+ rspkr.c.addEvent("onBeforeSyncInit", function () {
764
+ w = !0;
765
+ rspkr.pl.getProgress.apply(rspkr.pl, [!0, i, x])
766
+ });
767
+ "flash" === rspkr.pl.adapter && !rspkr.displog.onVolumeAdjusted && rspkr.pl.setVolume(parseInt(rspkr.st.get("hlvol") || "100"));
768
+ rspkr.c.dispatchEvent("onUIAfterPlay");
769
+ rspkr.cfg.execCallback("cb.ui.play",
770
+ a)
771
+ }, pause: function () {
772
+ rspkr.log("[rspkr.ui.handlers.pause]");
773
+ c.setStateClass(a, "rspaused");
774
+ rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rspaused");
775
+ e.setPlayPause(!0);
776
+ rspkr.pl.pause();
777
+ rspkr.pl.getProgress(!1);
778
+ rspkr.c.dispatchEvent("onUIPause");
779
+ rspkr.cfg.execCallback("cb.ui.pause", a);
780
+ rspkr.log("ReadSpeaker.ui.pause")
781
+ }, stop: function () {
782
+ rspkr.log("[rspkr.ui.handlers.stop]");
783
+ b.progress && b.progress.disabled(!0);
784
+ c.setStateClass(a, "rsstopped");
785
+ $rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"),
786
+ "rsloading");
787
+ rspkr.basicMode && c.setStateClass($rs.findIn(a, ".rsbtn_exp"), "rsstopped");
788
+ e.setPlayPause(!0);
789
+ $rs.setAttr(a, "data-readspeaker-current", 0);
790
+ b.progress && (b.progress.jumpTo(0), k(0));
791
+ rspkr.pl.stop();
792
+ rspkr.pl.getProgress(!1);
793
+ rspkr.c.dispatchEvent("onUIStop", a);
794
+ rspkr.cfg.execCallback("cb.ui.stop", a);
795
+ (!document.getElementById("rslightbox_contentcontainer") || !$rs.isVisible(document.getElementById("rslightbox_contentcontainer"))) && e.pause().focus();
796
+ rspkr.HL.chunking && 1 < rspkr.HL.chunking.currentChunkNumber &&
797
+ (rspkr.HL.chunking.destroy(), rspkr.pl.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter());
798
+ rspkr.log("ReadSpeaker.ui.stop")
799
+ }, setStateClass: function (a, b) {
800
+ a && ($rs.removeClass(a, "rspaused rsstopped rsplaying"), $rs.addClass(a, b))
801
+ }, vol: function (g) {
802
+ var c = $rs.findIn(a, ".rsbtn_volume_container"), e = $rs.findIn(a, ".rsbtn_volume"), g = g.originalEvent, f = function (a) {
803
+ var b = a.originalEvent, b = $rs.closest(b.srcElement || b.originalTarget, ".rsbtn_volume_container");
804
+ if ("click" === a.type) {
805
+ if (void 0 === b || $rs.isArray(b) && !b.length)$rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f)
806
+ } else"keyup" === a.type && 27 === a.keyCode && ($rs.css(c, "display", "none"), $rs.unregEvent(document.body, "click", f), $rs.unregEvent(document.body, "keyup", f))
807
+ };
808
+ $rs.css(c, "left", e.offsetLeft + "px");
809
+ $rs.css(c, "display", "none" == $rs.css(c, "display") ? "block" : "none");
810
+ "block" === $rs.css(c, "display") ? ($rs.regEvent(document.body, "click", f), $rs.regEvent(document.body, "keyup", f)) : ($rs.unregEvent(document.body,
811
+ "click", f), $rs.unregEvent(document.body, "keyup", f));
812
+ g && g.stopPropagation && g.stopPropagation();
813
+ g.cancelBubble = !0;
814
+ e = $rs.findIn(c, ".keyLink");
815
+ b.vol.startDragKeys(e, {keyCode: 13});
816
+ return!1
817
+ }, settings: function () {
818
+ $rs.hasClass(a, "rsplaying") && this.pause();
819
+ rspkr.ui.Lightbox.show(rspkr.st.getHTML(), rspkr.st.getButtons(), !0, function (a) {
820
+ var b = $rs.get("rslightbox_closer"), c = function () {
821
+ document.removeEventListener ? b.removeEventListener("click", c, !1) : document.detachEvent && document.detachEvent("onclick", c);
822
+ rspkr.c.dispatchEvent("onSettingsClosed",
823
+ window, [])
824
+ };
825
+ $rs.regEvent(b, "click", c);
826
+ rspkr.ui.addClickEvents();
827
+ rspkr.c.dispatchEvent("onSettingsLoaded", window, []);
828
+ rspkr.cfg.execCallback("cb.ui.settingsopened", a)
829
+ })
830
+ }, close: function (g) {
831
+ c.pin(!0);
832
+ var g = g || !1, j = rspkr.pl, f = !1;
833
+ rspkr.HL.chunking && rspkr.HL.chunking.destroy();
834
+ g || rspkr.cfg.execCallback("cb.ui.beforeclose", a);
835
+ j.hasOwnProperty("getProgress") && rspkr.pl.getProgress(!1);
836
+ j.hasOwnProperty("releaseAdapter") && rspkr.pl.releaseAdapter();
837
+ $rs.setAttr(a, "data-readspeaker-current", 0);
838
+ b.progress && b.progress.jumpTo(0);
839
+ $rs.removeClass(a, "rsstopped rsplaying rspaused rsexpanded");
840
+ if (rspkr.basicMode) {
841
+ var h;
842
+ (h = $rs.findIn(a, ".rsbtn_play")) && $rs.removeClass(h, "rsexpanded")
843
+ }
844
+ $rs.hasClass(a, "rsfloating") && ($rs.removeClass(a, rspkr.ui.rsbtnClass), rspkr.basicMode && ($rs.removeClass(a, "rsvisible"), $rs.addClass(a, "rshidden")));
845
+ e.setPlayPause(!0);
846
+ $rs.hasClass(a, "rspopup") && (f = !0, $rs.removeClass(a, "rspopup"), $rs.css(a, "display", "none"), a.parentNode.removeChild(a));
847
+ $rs.css(a, "width", "auto");
848
+ delete rspkr.displog.onVolumeAdjusted;
849
+ g || (rspkr.c.dispatchEvent("onUIClosePlayer", a, ["userclick"]), rspkr.cfg.execCallback("cb.ui.close", a), rspkr.log("ReadSpeaker.ui.close: " + a));
850
+ !g && !1 === f && rspkr.ui.focus($rs.findIn($rs.get(a), ".rsbtn_play"))
851
+ }, dl: function () {
852
+ $rs.hasClass(a, "rsplaying") && this.pause();
853
+ var b = rspkr.c.data.getSaveData("dialog"), c = !1;
854
+ rspkr.log("[rspkr.ui.handlers.dl] Savelink: " + b);
855
+ rspkr.u.Lightbox.show(this.getDlDialog(), this.getDlButtons(), !0, function () {
856
+ var a = $rs.get("#rsdl_button_accept"), e = $rs.get("#rsdl_button_decline");
857
+ a && $rs.regEvent(a, "click", function (e) {
858
+ rspkr.u.Lightbox.hide(e);
859
+ c = "iOS" !== rspkr.c.data.browser.OS && 0 < rspkr.c.data.selectedHTML.length ? !0 : "iOS" !== rspkr.c.data.browser.OS && !0 === rspkr.cfg.item("general.usePost") ? !0 : !1;
860
+ if (!0 === c) {
861
+ e = null;
862
+ if (document.getElementById("dliframe"))e = document.getElementById("dliframe"); else {
863
+ if (document.selection)try {
864
+ e = document.createElement('<iframe name="dliframe">')
865
+ } catch (f) {
866
+ e = document.createElement("iframe")
867
+ } else e = document.createElement("iframe");
868
+ e.name = "dliframe";
869
+ e.setAttribute("id",
870
+ "dliframe");
871
+ e.setAttribute("style", "display: none; position: absolute;");
872
+ e.style.display = "none";
873
+ var h = document.getElementsByTagName("body"), i = null;
874
+ 0 < h.length && (i = h.item(0));
875
+ if (i)i.appendChild(e); else return
876
+ }
877
+ e.src = b;
878
+ return!1
879
+ }
880
+ $rs.setAttr(a, "href", b);
881
+ return!0
882
+ });
883
+ e && ($rs.regEvent(e, "click", function (a) {
884
+ f(a);
885
+ rspkr.u.Lightbox.hide(a)
886
+ }), setTimeout(function () {
887
+ rspkr.ui.focus(e)
888
+ }, 200));
889
+ rspkr.c.dispatchEvent("onDownloadLoaded", window, [])
890
+ })
891
+ }, pin: function (a) {
892
+ var b = rs.ui.getActivePlayer().getContainer(), c = b.id + "_pinnedHome",
893
+ f = document.getElementById(c);
894
+ if (!$rs.hasClass(e.pin(), "pinned") && !a) {
895
+ if ($rs.addClass(e.pin(), "pinned"), !f) {
896
+ var a = function (a, b) {
897
+ return window.getComputedStyle ? window.getComputedStyle(a)[b] : a.currentStyle ? a.currentStyle[b] : a.style[b]
898
+ }, f = $rs.clone(b, !1, !0), h = b.offsetLeft, i = b.offsetTop;
899
+ f.style.width = a(b, "width").replace(/[^-\d\.]/g, "") - 2 + "px";
900
+ f.style.height = a(b, "height").replace(/[^-\d\.]/g, "") - 2 + "px";
901
+ for (var k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" "),
902
+ m = 0, l; l = k[m]; m++) {
903
+ var n = $rs.css(b, l);
904
+ $rs.setAttr(b, "data-css-" + l, n);
905
+ n = a(b, l);
906
+ "auto" != n && (f.style[l] = n)
907
+ }
908
+ b.style.position = "fixed";
909
+ b.style.left = h - document.body.scrollLeft + "px";
910
+ b.style.top = i - document.body.scrollTop + "px";
911
+ f.className = "rsbtn_pinnedHome rsbtn";
912
+ for (f.id = c; f.hasChildNodes();)f.removeChild(f.lastChild);
913
+ b.parentElement.insertBefore(f, b)
914
+ }
915
+ } else if ($rs.hasClass(e.pin(), "pinned") || a)if ($rs.removeClass(e.pin(), "pinned"), f) {
916
+ f.parentNode.removeChild(f);
917
+ k = "position left right top bottom margin-left margin-right margin-top margin-bottom".split(" ");
918
+ for (m = 0; l = k[m]; m++)n = $rs.getAttr(b, "data-css-" + l), $rs.css(b, l, n)
919
+ }
920
+ }, getDlDialog: function () {
921
+ var a = rspkr.cfg.item("ui.dldialog").join("\n"), b = {};
922
+ b.rsTERMS_OF_USE_HEADINGrs = rspkr.cfg.getPhrase("touheading");
923
+ b.rsTERMS_OF_USE_BODYrs = rspkr.cfg.getPhrase("toubody");
924
+ return rspkr.st.r().replaceTokens(a, b)
925
+ }, getDlButtons: function () {
926
+ var a = rspkr.cfg.item("ui.dlbuttons").join("\n"), b = {};
927
+ b.rsTERMS_OF_USE_ACCEPTrs = rspkr.cfg.getPhrase("touaccept");
928
+ b.rsTERMS_OF_USE_DECLINErs = rspkr.cfg.getPhrase("toudecline");
929
+ return rspkr.st.r().replaceTokens(a,
930
+ b)
931
+ }, nosound: function () {
932
+ var a = rspkr.c.data.getSaveData("link");
933
+ $rs.setAttr(e.nosound(), "href", a);
934
+ return!0
935
+ }}, k = function (b) {
936
+ var b = 100 < b ? 100 : b, c = $rs.findIn(a, ".rsbtn_progress_played");
937
+ "object" === typeof c && $rs.css(c, "width", b + "%");
938
+ rspkr.cfg.execCallback("cb.ui.progresschanged", a, [b])
939
+ }, i = function (c) {
940
+ if (c.length) {
941
+ var e = parseInt(c[0]), c = parseInt(c[1]), f = 0 == c ? 0 : Math.round(100 * (e / c)), h = $rs.findIn(a, ".rsbtn_current_time"), i = $rs.findIn(a, ".rsbtn_total_time"), l, n;
942
+ b.progress && (b.progress.setCurrentValue(f), t ||
943
+ (b.progress.jumpTo(f), k(f), h && (h.innerHTML = l = m(e)), i && (i.innerHTML = n = m(c)), rspkr.cfg.execCallback("cb.ui.timeupdated", a, [l, n])));
944
+ rspkr.log("[rspkr.player.updateProgress] current time: " + e + " total time: " + c);
945
+ $rs.setAttr(a, "data-readspeaker-current", e);
946
+ $rs.setAttr(a, "data-readspeaker-buffered", c);
947
+ 0 < e && $rs.removeClass($rs.findIn(a, ".rsbtn_progress_container"), "rsloading")
948
+ }
949
+ }, m = function (a) {
950
+ var a = a / 1E3, b = parseInt(a % 60), c = parseInt(a / 60 % 60), a = parseInt(a / 60 / 60 % 60);
951
+ return(10 > a ? "0" + a : a.toString()) + ":" + (10 > c ?
952
+ "0" + c : c.toString()) + ":" + (10 > b ? "0" + b : b.toString())
953
+ }, l = function () {
954
+ t = !0
955
+ }, h = function (b) {
956
+ rspkr.log("_dropProgress (" + b + ")", 5);
957
+ b && (b = b / 100 * $rs.getAttr(a, "data-readspeaker-buffered") / 1E3, rspkr.pl.setProgress(b));
958
+ t = !1
959
+ }, u = function (a) {
960
+ h(a)
961
+ }, B = function (c) {
962
+ rspkr.log("_dropVolume, " + c, 5);
963
+ c = 0 > c ? 0 : 20 * c;
964
+ b.vol && b.vol.jumpTo(c / 20);
965
+ rspkr.pl.setVolume(c);
966
+ rspkr.st.set("hlvol", c);
967
+ rspkr.cfg.execCallback("cb.ui.volumechanged", a, [c]);
968
+ return!1
969
+ }, A = function (c, e) {
970
+ if ("keyLink" === c.className) {
971
+ var f = "";
972
+ $rs.hasClass(e, "rsbtn_volume_handle") ?
973
+ f = "vol" : $rs.hasClass(e, "rsbtn_progress_handle") && (f = "progress");
974
+ var h = {keyCode: 13};
975
+ b[f].startDragKeys(c, h)
976
+ } else $rs.hasClass(e, "rsbtn_volume") && (h = {keyCode: 13}, f = $rs.findIn(a, ".rsbtn_volume_container"), f = $rs.findIn(f, ".keyLink"), b.vol.startDragKeys(f, h))
977
+ }, z = function (a, c) {
978
+ if ("keyLink" === a.className) {
979
+ var e = "";
980
+ $rs.hasClass(c, "rsbtn_volume_handle") ? e = "vol" : $rs.hasClass(c, "rsbtn_progress_handle") && (e = "progress");
981
+ b[e].releaseElement();
982
+ t = !1
983
+ }
984
+ };
985
+ return{init: function () {
986
+ v.push([this.show, []])
987
+ }, show: function () {
988
+ $rs.rsid(a);
989
+ a.id = p = a.id || rspkr.getID();
990
+ ui = rspkr.ui;
991
+ $rs.hasClass(a, rspkr.ui.rsbtnClass) || $rs.addClass(a, rspkr.ui.rsbtnClass);
992
+ var g = null, g = rspkr.cfg, j = rspkr.cfg.getPhrases(rspkr.c.data.getParam("lang"));
993
+ if (0 == $rs.findIn(a, ".rsbtn_exp").length) {
994
+ var i = $rs.hasClass(a, "rspopup") ? g.item("ui.popupplayer") : g.item("ui.player"), g = document.createElement("div");
995
+ g.className = "rsbtn_exp rsimg rspart";
996
+ g.innerHTML += i.join("\n");
997
+ a.appendChild(g)
998
+ }
999
+ g = e.pin();
1000
+ i = "Explorer" == rspkr.c.data.browser.name && 8 > rspkr.c.data.browser.version;
1001
+ $rs.isArray(g) && 0 == g.length && (g = void 0);
1002
+ g && !i && rspkr.cfg.item("ui.usePin") ? $rs.removeClass(g, "turnedOff") : g && g.parentElement.removeChild(g);
1003
+ if (j) {
1004
+ g = function (a, b) {
1005
+ var c = $rs.findIn(a, ".rsbtn_btnlabel");
1006
+ $rs.isArray(c) || (c = [c]);
1007
+ 0 < c.length && (c[0].innerHTML = b)
1008
+ };
1009
+ e.pause() && ($rs.setAttr(e.pause(), "data-rsphrase-pause", j.pause), $rs.setAttr(e.pause(), "data-rsphrase-play", j.play), $rs.setAttr(e.pause(), "title", rspkr.c.decodeEntities(j.pause)), g(e.pause(), rspkr.c.decodeEntities(j.pause)));
1010
+ e.stop() && ($rs.setAttr(e.stop(),
1011
+ "title", rspkr.c.decodeEntities(j.stop)), g(e.stop(), rspkr.c.decodeEntities(j.stop)));
1012
+ e.vol() && ($rs.setAttr(e.vol(), "title", rspkr.c.decodeEntities(j.volume)), g(e.vol(), rspkr.c.decodeEntities(j.volume)));
1013
+ e.settings() && ($rs.setAttr(e.settings(), "title", rspkr.c.decodeEntities(j.settings)), g(e.settings(), rspkr.c.decodeEntities(j.settings)));
1014
+ e.dl() && ($rs.setAttr(e.dl(), "title", rspkr.c.decodeEntities(j.download)), g(e.dl(), rspkr.c.decodeEntities(j.download)));
1015
+ if (e.powered()) {
1016
+ var i = $rs.findIn(e.powered(), ".rsbtn_btnlabel"),
1017
+ k = j.speechenabled.match(/.*href="([^"]*)"/i).pop(), m = j.newwindow, q = document.createElement("p");
1018
+ q.innerHTML = j.speechenabled;
1019
+ m = (q.innerText || q.textContent) + (m ? " (" + m + ")" : "");
1020
+ i && (i.innerHTML = j.speechenabled);
1021
+ $rs.setAttr(e.powered(), "title", m);
1022
+ $rs.setAttr(e.powered(), "data-readspeaker-href", k);
1023
+ i = $rs.getAttr(e.powered(), "data-rsevent-id");
1024
+ (!i || rs.l.f.eq.store[i] && !rs.l.f.eq.store[i].click) && $rs.regEvent(e.powered(), "click", function () {
1025
+ window.open($rs.getAttr(this, "data-readspeaker-href"))
1026
+ })
1027
+ }
1028
+ e.closer() &&
1029
+ ($rs.setAttr(e.closer(), "title", rspkr.c.decodeEntities(j.closeplayer)), g(e.closer(), rspkr.c.decodeEntities(j.closeplayer)))
1030
+ }
1031
+ j = rspkr.c.data.browser;
1032
+ (!/safari/i.test(j.name) || !/iphone|ipad|ios/i.test(j.OS)) && $rs.addClass(a, "rs-no-touch");
1033
+ j = $rs.findIn(a, ".rsbtn_status_overlay");
1034
+ $rs.isArray(j) || $rs.css(j, "display", "none");
1035
+ "fallback" === rspkr.pl.adapter && (rspkr.ui.showOverlay("nosound", a), $rs.addClass(a, "rsstopped"));
1036
+ $rs.addClass(a, "rsexpanded");
1037
+ if (rspkr.basicMode) {
1038
+ var r;
1039
+ (r = $rs.findIn(a, ".rsbtn_play")) &&
1040
+ $rs.addClass(r, "rsexpanded")
1041
+ }
1042
+ y || (e.stop() && ($rs.regEvent(e.stop(), "click", function (a) {
1043
+ f(a);
1044
+ c.stop()
1045
+ }), ui.addFocusHandler(e.stop())), e.pause() && ($rs.regEvent(e.pause(), "click", function (b) {
1046
+ f(b);
1047
+ $rs.hasClass(a, "rsplaying") ? c.pause() : ($rs.hasClass(a, "rsstopped") || $rs.hasClass(a, "rspaused")) && c.play()
1048
+ }), ui.addFocusHandler(e.pause())), e.closer() && ($rs.regEvent(e.closer(), "click", function (a) {
1049
+ f(a);
1050
+ c.close()
1051
+ }), ui.addFocusHandler(e.closer())), e.vol() && ($rs.regEvent(e.vol(), "click", function (a) {
1052
+ f(a);
1053
+ c.vol(a)
1054
+ }),
1055
+ ui.addFocusHandler(e.vol())), e.dl() && ($rs.regEvent(e.dl(), "click", function (a) {
1056
+ f(a);
1057
+ return c.dl()
1058
+ }), ui.addFocusHandler(e.dl())), e.settings() && ($rs.regEvent(e.settings(), "click", function (a) {
1059
+ f(a);
1060
+ c.settings()
1061
+ }), ui.addFocusHandler(e.settings())), e.pin() && ($rs.regEvent(e.pin(), "click", function (a) {
1062
+ f(a);
1063
+ c.pin()
1064
+ }), ui.addFocusHandler(e.pin())), r = rspkr.cfg, $rs.setAttr(a, "data-readspeaker-current", 0), $rs.setAttr(a, "data-readspeaker-buffered", 0), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_progress_container")) ||
1065
+ (b.progress = new rspkr.ui.Slider, b.progress.init($rs.findIn($rs.get(a), ".rsbtn_progress_container"), {handleClass: r.item("ui.progressHandleClass") || "rsbtn_progress_handle rsimg", dir: r.item("ui.progressDir") || "h", nudge: 5, start: l, dragging: h, click: u, labelDragHandle: r.getPhrase("sliderseek")}), j = $rs.findIn($rs.get(a), ".rsbtn_progress_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), $rs.isArray($rs.findIn($rs.get(a), ".rsbtn_volume_slider")) || (j = rspkr.st.get("hlvol") || "100", j = 5 * (parseInt(j) / 100), b.vol = new rspkr.ui.Slider,
1066
+ b.vol.init($rs.findIn(a, ".rsbtn_volume_slider"), {handleClass: r.item("ui.volumeHandleClass") || "rsbtn_volume_handle rsimg", dir: r.item("ui.volumeDir") || "v", steps: 5, nudge: 1, initval: j, dragging: B, click: B, labelDragHandle: r.getPhrase("slidervolumedesc")}), j = $rs.findIn($rs.get(a), ".rsbtn_volume_handle a"), ui.addFocusHandler(j, !1, j.parentNode)), rspkr.Common.addEvent("onFocusIn", A), rspkr.Common.addEvent("onFocusOut", z), rspkr.cfg.execCallback("cb.ui.open", a), y = !0);
1067
+ if ($rs.findIn(a, ".rsbtn_powered") && (r = $rs.findIn(a,
1068
+ ".rsbtn_powered .rsbtn_btnlabel a")))(/Chrome|Safari|Opera/gi.test(rs.c.data.browser.name) || /Explorer/gi.test(rs.c.data.browser.name) && 8 <= rs.c.data.browser.version) && $rs.regEvent(r, "click", function (a) {
1069
+ f(a)
1070
+ }), r.innerHTML = '<span class="rsbtn_label_read">Read</span><span class="rsbtn_label_speaker">Speaker</span><span class="rsbtn_label_icon rsimg"></span>';
1071
+ "0" != $rs.getAttr(a, "data-readspeaker-current") && (rspkr.pl.releaseAdapter(), $rs.setAttr(a, "data-readspeaker-current", 0));
1072
+ "fallback" !== rspkr.pl.adapter &&
1073
+ (c.play(), rspkr.ui.focus(e.pause()));
1074
+ r = (r = a) || a;
1075
+ r = $rs.clone(r, !0, !0);
1076
+ r.id = rspkr.getID();
1077
+ document.body.appendChild(r);
1078
+ $rs.css(r, {position: "absolute", top: "0", left: "0", display: "block", width: "auto"});
1079
+ $rs.css(r, "float", "none");
1080
+ $rs.addClass(r, "rsexpanded");
1081
+ j = $rs.outerWidth(r) + 3;
1082
+ r.style.display = "none";
1083
+ document.body.removeChild(r);
1084
+ n = j;
1085
+ isNaN(n) || $rs.css(a, "width", n + (/[Ee]xplorer/.test(ReadSpeaker.c.data.browser.name) ? 1 : 0) + "px")
1086
+ }, close: function (a) {
1087
+ c.close(a)
1088
+ }, stop: function () {
1089
+ c.stop()
1090
+ }, nosound: function () {
1091
+ return c.nosound()
1092
+ },
1093
+ pause: function () {
1094
+ c.pause()
1095
+ }, play: function () {
1096
+ c.play()
1097
+ }, restart: function () {
1098
+ rspkr.log("[rspkr.ui.restart]");
1099
+ c.stop();
1100
+ window.setTimeout(function () {
1101
+ c.play()
1102
+ }, 500);
1103
+ return!1
1104
+ }, updateProgress: function (a) {
1105
+ i(a)
1106
+ }, setProgress: function (a) {
1107
+ h(a)
1108
+ }, getContainer: function () {
1109
+ return a
1110
+ }, getID: function () {
1111
+ return p
1112
+ }, getWidth: function () {
1113
+ return n
1114
+ }, setHref: function (a) {
1115
+ q = a
1116
+ }, getHref: function () {
1117
+ return q
1118
+ }}
1119
+ };
1120
+ ReadSpeaker.ui.Lightbox = function () {
1121
+ var a = null, f = null, p = null, x = null, v = null, n = null, y, q = [], w = function (a) {
1122
+ a = a || window.event;
1123
+ a.returnValue = !1;
1124
+ if (a = a.originalEvent)a.cancelBubble = !0, a.returnValue = !1;
1125
+ a && a.preventDefault && a.preventDefault();
1126
+ a && a.stopPropagation && a.stopPropagation()
1127
+ }, e = function () {
1128
+ $rs.css(n, "display", "none");
1129
+ var a = $rs.height(window), b = $rs.height(document), e = parseInt($rs.css(document.documentElement, "width")), f = $rs.width(document), l = $rs.absOffset(document.body), h = 0, p = 0;
1130
+ isNaN(e) && (e = $rs.width(window));
1131
+ l.left && (p = l.left);
1132
+ l.top && (h = l.top);
1133
+ $rs.css(v, {width: (f > e ? f : e) + "px", height: (b > a ? b : a) + "px", top: "-" + Math.abs(h) + "px", left: "-" + Math.abs(p) + "px"});
1134
+ $rs.css(n, "display", "block");
1135
+ t()
1136
+ }, t = function () {
1137
+ var a = $rs.outerWidth(n), b = $rs.outerHeight(n), e = $rs.width(window), f = $rs.height(window), b = y + 80 + 50 < f ? y + 80 : f - 50;
1138
+ n.style.height = b + "px";
1139
+ $rs.get("#rslightbox_content").style.height = b - 80 + "px";
1140
+ b > f ? (n.style.top = $rs.scrollTop(document) + "px", n.style.marginTop = "10px") : (n.style.top = f / 2 + "px", n.style.marginTop = -(b / 2 - $rs.scrollTop(document)) +
1141
+ "px");
1142
+ a > e ? (n.style.left = $rs.scrollLeft(document) + "px", n.style.marginLeft = "0") : (n.style.left = "50%", n.style.marginLeft = -(a / 2 - $rs.scrollLeft(document)) + "px")
1143
+ }, b = function (a) {
1144
+ 27 === a.keyCode && rspkr.ui.Lightbox.hide()
1145
+ };
1146
+ return{init: function () {
1147
+ var b = rspkr.pub.Config;
1148
+ a = b.item("ui.overlay.overlayStyles");
1149
+ f = b.item("ui.overlay.contentStyles");
1150
+ p = b.item("ui.overlay.contentTemplate");
1151
+ document.querySelectorAll || (d = document, s = d.createStyleSheet(), d.querySelectorAll = function (a, b, c, e, f) {
1152
+ f = d.all;
1153
+ b = [];
1154
+ a = a.replace(/\[for\b/gi,
1155
+ "[htmlFor").split(",");
1156
+ for (c = a.length; c--;) {
1157
+ s.addRule(a[c], "k:v");
1158
+ for (e = f.length; e--;)f[e].currentStyle.k && b.push(f[e]);
1159
+ s.removeRule(0)
1160
+ }
1161
+ return b
1162
+ });
1163
+ rspkr.log("[rspkr.ui.Lightbox] Heartbeat!")
1164
+ }, show: function (c, k, i, m, l) {
1165
+ for (var h = 0, u = document.body.getElementsByTagName("*"), t; t = u[h]; h++)-1 != t.tabIndex && (q.push([t, t.tabIndex]), t.tabIndex = -1);
1166
+ if (!("Explorer" == rs.c.data.browser.name && 6 == rs.c.data.browser.version)) {
1167
+ t = document.querySelectorAll("body > *");
1168
+ for (h = 0; u = t[h]; h++)if (!("rslightbox_overlay" == u.id ||
1169
+ "rslightbox_contentcontainer" == u.id || "script" == u.tagName.toLowerCase())) {
1170
+ var A = u.getAttribute("aria-hidden");
1171
+ A && u.setAttribute("data-original-aria-hidden", A);
1172
+ u.setAttribute("aria-hidden", "true")
1173
+ }
1174
+ }
1175
+ c = c || "";
1176
+ i = i || !1;
1177
+ v ? (v.style.display = "", n.style.display = "") : (v = document.createElement("div"), v.id = "rslightbox_overlay", n = document.createElement("div"), n.id = "rslightbox_contentcontainer", n.innerHTML = rspkr.st.r().replaceTokens(p.join("\n"), {rsLIGHTBOX_CLOSE_LABELrs: rspkr.cfg.getPhrase("close")}), $rs.setAttr(v,
1178
+ "style", a.join(";")), $rs.setAttr(n, "style", f.join(";")), document.body.appendChild(v), document.body.appendChild(n), rspkr.evt("onSettingsLoaded", {func: rspkr.st.r().handlers.changed.addButtonEvents, context: rspkr.st.r().handlers.changed, params: [this]}));
1179
+ h = $rs.get("rslightbox_closer");
1180
+ rspkr.ui.addFocusHandler(h, !1);
1181
+ $rs.regEvent(h, "click", function (a) {
1182
+ w(a);
1183
+ rspkr.ui.Lightbox.hide(a)
1184
+ });
1185
+ $rs.regEvent(v, "click", rspkr.ui.Lightbox.hide);
1186
+ $rs.regEvent(document.body, "keyup", b);
1187
+ if ((u = document.documentElement) && document.all)u.style.overflowX =
1188
+ u.style.overflowY = "hidden";
1189
+ if (c != x || i)i = rspkr.cfg.getPhrase("close"), $rs.setAttr(h, "title", i), $rs.findIn(h, ".rsbtn_btnlabel").innerHTML = i, $rs.get("#rslightbox_content").innerHTML = "", $rs.css("#rslightbox_content", "height", "auto"), /^http/i.test(c) ? $rs.findIn("#rslightbox_content", "iframe").length || (i = document.createElement("iframe"), i.src = c, i.className = "rslightbox-iframe", void 0 === l && (l = 2E3), $rs.get("#rslightbox_content").appendChild(i)) : "<" == c.substr(0, 1) && ($rs.get("#rslightbox_content").innerHTML =
1190
+ c), $rs.get("#rslightbox_buttons").innerHTML = k, x = c, "ar_ar" == rs.c.data.params.lang && (-1 == n.className.indexOf("rtl") && (n.className = (n.className + " rtl").replace(/^\s+|\s+$/g, "")), $rs.setAttr($rs.findIn(n, "legend"), "align", "right"));
1191
+ y = void 0 !== l && !isNaN(l) ? l : !rspkr.basicMode ? $rs.get("#rslightbox_content").clientHeight : $rs.get("#rslightbox_content").scrollHeight;
1192
+ c = $rs.findIn("#rslightbox_content", ".rsform-row");
1193
+ for (h = 0; h < c.length; h++) {
1194
+ k = $rs.findIn(c[h], "input, a, select");
1195
+ $rs.isArray(k) || (k = [k]);
1196
+ for (u =
1197
+ 0; u < k.length; u++)rspkr.ui.addFocusHandler(k[u], !1, c[h])
1198
+ }
1199
+ var z = $rs.findIn("#rslightbox_buttons", ".rssettings-button-close");
1200
+ rspkr.ui.addFocusHandler(z, !1);
1201
+ $rs.regEvent(z, "click", function (a) {
1202
+ w(a)
1203
+ });
1204
+ (c = $rs.findIn("#rsform_wrapper", ".rssettings-button-gotobottom")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
1205
+ (c = $rs.findIn("#rslightbox_buttons", ".rssettings-button-gototop")) && !$rs.isArray(c) && rspkr.ui.addFocusHandler(c, !1);
1206
+ var g = $rs.findIn("#rslightbox_content", "input");
1207
+ $rs.isArray(g) && 0 < g.length ?
1208
+ setTimeout(function () {
1209
+ rspkr.ui.focus(g[0]);
1210
+ rspkr.Common.addEvent("onFocusIn", function (a) {
1211
+ a.className && $rs.hasClass(a, "rssettings-button-gototop") ? rspkr.ui.focus(g[0]) : a.className && $rs.hasClass(a, "rssettings-button-gotobottom") && rspkr.ui.focus(z)
1212
+ })
1213
+ }, 200) : $rs.isArray(g) || setTimeout(function () {
1214
+ rspkr.ui.focus(g)
1215
+ }, 200);
1216
+ e();
1217
+ $rs.regEvent(window, "resize", e);
1218
+ "function" == typeof m && m.apply(this, [n])
1219
+ }, hide: function (a) {
1220
+ for (; 0 < q.length;) {
1221
+ var f = q.pop();
1222
+ f[0].tabIndex = f[1]
1223
+ }
1224
+ if (!("Explorer" == rs.c.data.browser.name &&
1225
+ 6 == rs.c.data.browser.version))for (var a = document.querySelectorAll("body > *"), f = 0, i; i = a[f]; f++) {
1226
+ var m = i.getAttribute("data-original-aria-hidden");
1227
+ m ? (i.setAttribute("aria-hidden", m), i.removeAttribute("data-original-aria-hidden")) : i.removeAttribute("aria-hidden")
1228
+ }
1229
+ w(a);
1230
+ v.style.display = "none";
1231
+ n.style.display = "none";
1232
+ $rs.unregEvent(window, "resize", e);
1233
+ $rs.unregEvent($rs.get("#rslightbox_closer"), "click", rspkr.ui.Lightbox.hide);
1234
+ $rs.unregEvent(v, "click", rspkr.ui.Lightbox.hide);
1235
+ $rs.unregEvent(document.body,
1236
+ "keyup", b);
1237
+ if ((a = document.documentElement) && document.all)a.style.overflowX = a.style.overflowY = "auto";
1238
+ rspkr.ui.updateFocus();
1239
+ rspkr.c.dispatchEvent("onSettingsClosed", window, [])
1240
+ }, reposition: t}
1241
+ }();