snice 4.9.0 → 4.10.0

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 (733) hide show
  1. package/adapters/react/app-tiles.d.ts +28 -0
  2. package/adapters/react/app-tiles.d.ts.map +1 -0
  3. package/adapters/react/app-tiles.js +24 -0
  4. package/adapters/react/app-tiles.js.map +1 -0
  5. package/adapters/react/app-tiles.tsx +36 -0
  6. package/adapters/react/book.d.ts +28 -0
  7. package/adapters/react/book.d.ts.map +1 -0
  8. package/adapters/react/book.js +24 -0
  9. package/adapters/react/book.js.map +1 -0
  10. package/adapters/react/book.tsx +36 -0
  11. package/adapters/react/comments.d.ts +29 -0
  12. package/adapters/react/comments.d.ts.map +1 -0
  13. package/adapters/react/comments.js +24 -0
  14. package/adapters/react/comments.js.map +1 -0
  15. package/adapters/react/comments.tsx +37 -0
  16. package/adapters/react/components.d.ts +52 -0
  17. package/adapters/react/components.d.ts.map +1 -1
  18. package/adapters/react/components.js +26 -0
  19. package/adapters/react/components.js.map +1 -1
  20. package/adapters/react/components.ts +52 -0
  21. package/adapters/react/countdown.d.ts +31 -0
  22. package/adapters/react/countdown.d.ts.map +1 -0
  23. package/adapters/react/countdown.js +24 -0
  24. package/adapters/react/countdown.js.map +1 -0
  25. package/adapters/react/countdown.tsx +39 -0
  26. package/adapters/react/cropper.d.ts +29 -0
  27. package/adapters/react/cropper.d.ts.map +1 -0
  28. package/adapters/react/cropper.js +24 -0
  29. package/adapters/react/cropper.js.map +1 -0
  30. package/adapters/react/cropper.tsx +37 -0
  31. package/adapters/react/diff.d.ts +31 -0
  32. package/adapters/react/diff.d.ts.map +1 -0
  33. package/adapters/react/diff.js +24 -0
  34. package/adapters/react/diff.js.map +1 -0
  35. package/adapters/react/diff.tsx +39 -0
  36. package/adapters/react/flip-card.d.ts +28 -0
  37. package/adapters/react/flip-card.d.ts.map +1 -0
  38. package/adapters/react/flip-card.js +24 -0
  39. package/adapters/react/flip-card.js.map +1 -0
  40. package/adapters/react/flip-card.tsx +36 -0
  41. package/adapters/react/flow.d.ts +32 -0
  42. package/adapters/react/flow.d.ts.map +1 -0
  43. package/adapters/react/flow.js +24 -0
  44. package/adapters/react/flow.js.map +1 -0
  45. package/adapters/react/flow.tsx +40 -0
  46. package/adapters/react/gantt.d.ts +27 -0
  47. package/adapters/react/gantt.d.ts.map +1 -0
  48. package/adapters/react/gantt.js +24 -0
  49. package/adapters/react/gantt.js.map +1 -0
  50. package/adapters/react/gantt.tsx +35 -0
  51. package/adapters/react/map.d.ts +30 -0
  52. package/adapters/react/map.d.ts.map +1 -0
  53. package/adapters/react/map.js +24 -0
  54. package/adapters/react/map.js.map +1 -0
  55. package/adapters/react/map.tsx +38 -0
  56. package/adapters/react/markdown.d.ts +26 -0
  57. package/adapters/react/markdown.d.ts.map +1 -0
  58. package/adapters/react/markdown.js +24 -0
  59. package/adapters/react/markdown.js.map +1 -0
  60. package/adapters/react/markdown.tsx +34 -0
  61. package/adapters/react/notification-center.d.ts +26 -0
  62. package/adapters/react/notification-center.d.ts.map +1 -0
  63. package/adapters/react/notification-center.js +24 -0
  64. package/adapters/react/notification-center.js.map +1 -0
  65. package/adapters/react/notification-center.tsx +34 -0
  66. package/adapters/react/org-chart.d.ts +28 -0
  67. package/adapters/react/org-chart.d.ts.map +1 -0
  68. package/adapters/react/org-chart.js +24 -0
  69. package/adapters/react/org-chart.js.map +1 -0
  70. package/adapters/react/org-chart.tsx +36 -0
  71. package/adapters/react/pdf-viewer.d.ts +28 -0
  72. package/adapters/react/pdf-viewer.d.ts.map +1 -0
  73. package/adapters/react/pdf-viewer.js +24 -0
  74. package/adapters/react/pdf-viewer.js.map +1 -0
  75. package/adapters/react/pdf-viewer.tsx +36 -0
  76. package/adapters/react/podcast-player.d.ts +40 -0
  77. package/adapters/react/podcast-player.d.ts.map +1 -0
  78. package/adapters/react/podcast-player.js +24 -0
  79. package/adapters/react/podcast-player.js.map +1 -0
  80. package/adapters/react/podcast-player.tsx +48 -0
  81. package/adapters/react/pricing-table.d.ts +27 -0
  82. package/adapters/react/pricing-table.d.ts.map +1 -0
  83. package/adapters/react/pricing-table.js +24 -0
  84. package/adapters/react/pricing-table.js.map +1 -0
  85. package/adapters/react/pricing-table.tsx +35 -0
  86. package/adapters/react/rating.d.ts +30 -0
  87. package/adapters/react/rating.d.ts.map +1 -0
  88. package/adapters/react/rating.js +24 -0
  89. package/adapters/react/rating.js.map +1 -0
  90. package/adapters/react/rating.tsx +38 -0
  91. package/adapters/react/recipe.d.ts +43 -0
  92. package/adapters/react/recipe.d.ts.map +1 -0
  93. package/adapters/react/recipe.js +24 -0
  94. package/adapters/react/recipe.js.map +1 -0
  95. package/adapters/react/recipe.tsx +51 -0
  96. package/adapters/react/sortable.d.ts +28 -0
  97. package/adapters/react/sortable.d.ts.map +1 -0
  98. package/adapters/react/sortable.js +24 -0
  99. package/adapters/react/sortable.js.map +1 -0
  100. package/adapters/react/sortable.tsx +36 -0
  101. package/adapters/react/spotlight.d.ts +27 -0
  102. package/adapters/react/spotlight.d.ts.map +1 -0
  103. package/adapters/react/spotlight.js +24 -0
  104. package/adapters/react/spotlight.js.map +1 -0
  105. package/adapters/react/spotlight.tsx +35 -0
  106. package/adapters/react/spreadsheet.d.ts +27 -0
  107. package/adapters/react/spreadsheet.d.ts.map +1 -0
  108. package/adapters/react/spreadsheet.js +24 -0
  109. package/adapters/react/spreadsheet.js.map +1 -0
  110. package/adapters/react/spreadsheet.tsx +35 -0
  111. package/adapters/react/tag-input.d.ts +33 -0
  112. package/adapters/react/tag-input.d.ts.map +1 -0
  113. package/adapters/react/tag-input.js +24 -0
  114. package/adapters/react/tag-input.js.map +1 -0
  115. package/adapters/react/tag-input.tsx +41 -0
  116. package/adapters/react/testimonial.d.ts +31 -0
  117. package/adapters/react/testimonial.d.ts.map +1 -0
  118. package/adapters/react/testimonial.js +24 -0
  119. package/adapters/react/testimonial.js.map +1 -0
  120. package/adapters/react/testimonial.tsx +39 -0
  121. package/adapters/react/video-player.d.ts +34 -0
  122. package/adapters/react/video-player.d.ts.map +1 -0
  123. package/adapters/react/video-player.js +24 -0
  124. package/adapters/react/video-player.js.map +1 -0
  125. package/adapters/react/video-player.tsx +42 -0
  126. package/adapters/react/waterfall.d.ts +29 -0
  127. package/adapters/react/waterfall.d.ts.map +1 -0
  128. package/adapters/react/waterfall.js +24 -0
  129. package/adapters/react/waterfall.js.map +1 -0
  130. package/adapters/react/waterfall.tsx +37 -0
  131. package/adapters/react/weather.d.ts +27 -0
  132. package/adapters/react/weather.d.ts.map +1 -0
  133. package/adapters/react/weather.js +24 -0
  134. package/adapters/react/weather.js.map +1 -0
  135. package/adapters/react/weather.tsx +35 -0
  136. package/dist/cdn/accordion/snice-accordion.js +1 -1
  137. package/dist/cdn/accordion/snice-accordion.min.js +1 -1
  138. package/dist/cdn/alert/snice-alert.js +1 -1
  139. package/dist/cdn/alert/snice-alert.min.js +1 -1
  140. package/dist/cdn/app-tiles/README.md +27 -0
  141. package/dist/cdn/app-tiles/snice-app-tiles.js +333 -0
  142. package/dist/cdn/app-tiles/snice-app-tiles.js.map +1 -0
  143. package/dist/cdn/app-tiles/snice-app-tiles.min.js +11 -0
  144. package/dist/cdn/app-tiles/snice-app-tiles.min.js.map +1 -0
  145. package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
  146. package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
  147. package/dist/cdn/avatar/snice-avatar.js +1 -1
  148. package/dist/cdn/avatar/snice-avatar.min.js +1 -1
  149. package/dist/cdn/badge/snice-badge.js +1 -1
  150. package/dist/cdn/badge/snice-badge.min.js +1 -1
  151. package/dist/cdn/banner/snice-banner.js +1 -1
  152. package/dist/cdn/banner/snice-banner.min.js +1 -1
  153. package/dist/cdn/book/README.md +27 -0
  154. package/dist/cdn/book/snice-book.js +353 -0
  155. package/dist/cdn/book/snice-book.js.map +1 -0
  156. package/dist/cdn/book/snice-book.min.js +13 -0
  157. package/dist/cdn/book/snice-book.min.js.map +1 -0
  158. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
  159. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
  160. package/dist/cdn/button/snice-button.js +1 -1
  161. package/dist/cdn/button/snice-button.min.js +1 -1
  162. package/dist/cdn/calendar/snice-calendar.js +1 -1
  163. package/dist/cdn/calendar/snice-calendar.min.js +1 -1
  164. package/dist/cdn/camera/snice-camera.js +1 -1
  165. package/dist/cdn/camera/snice-camera.min.js +1 -1
  166. package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
  167. package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
  168. package/dist/cdn/candlestick/snice-candlestick.js +1 -1
  169. package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
  170. package/dist/cdn/card/snice-card.js +1 -1
  171. package/dist/cdn/card/snice-card.min.js +1 -1
  172. package/dist/cdn/carousel/snice-carousel.js +1 -1
  173. package/dist/cdn/carousel/snice-carousel.min.js +1 -1
  174. package/dist/cdn/chart/snice-chart.js +1 -1
  175. package/dist/cdn/chart/snice-chart.min.js +1 -1
  176. package/dist/cdn/chat/snice-chat.js +1 -1
  177. package/dist/cdn/chat/snice-chat.min.js +1 -1
  178. package/dist/cdn/checkbox/snice-checkbox.js +1 -1
  179. package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
  180. package/dist/cdn/chip/snice-chip.js +1 -1
  181. package/dist/cdn/chip/snice-chip.min.js +1 -1
  182. package/dist/cdn/code-block/snice-code-block.js +1 -1
  183. package/dist/cdn/code-block/snice-code-block.min.js +1 -1
  184. package/dist/cdn/color-display/snice-color-display.js +1 -1
  185. package/dist/cdn/color-display/snice-color-display.min.js +1 -1
  186. package/dist/cdn/color-picker/snice-color-picker.js +1 -1
  187. package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
  188. package/dist/cdn/command-palette/snice-command-palette.js +1 -1
  189. package/dist/cdn/command-palette/snice-command-palette.min.js +1 -1
  190. package/dist/cdn/comments/README.md +27 -0
  191. package/dist/cdn/comments/snice-comments.js +544 -0
  192. package/dist/cdn/comments/snice-comments.js.map +1 -0
  193. package/dist/cdn/comments/snice-comments.min.js +100 -0
  194. package/dist/cdn/comments/snice-comments.min.js.map +1 -0
  195. package/dist/cdn/countdown/README.md +27 -0
  196. package/dist/cdn/countdown/snice-countdown.js +235 -0
  197. package/dist/cdn/countdown/snice-countdown.js.map +1 -0
  198. package/dist/cdn/countdown/snice-countdown.min.js +14 -0
  199. package/dist/cdn/countdown/snice-countdown.min.js.map +1 -0
  200. package/dist/cdn/cropper/README.md +27 -0
  201. package/dist/cdn/cropper/snice-cropper.js +352 -0
  202. package/dist/cdn/cropper/snice-cropper.js.map +1 -0
  203. package/dist/cdn/cropper/snice-cropper.min.js +25 -0
  204. package/dist/cdn/cropper/snice-cropper.min.js.map +1 -0
  205. package/dist/cdn/date-picker/snice-date-picker.js +1 -1
  206. package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
  207. package/dist/cdn/diff/README.md +27 -0
  208. package/dist/cdn/diff/snice-diff.js +441 -0
  209. package/dist/cdn/diff/snice-diff.js.map +1 -0
  210. package/dist/cdn/diff/snice-diff.min.js +54 -0
  211. package/dist/cdn/diff/snice-diff.min.js.map +1 -0
  212. package/dist/cdn/divider/snice-divider.js +1 -1
  213. package/dist/cdn/divider/snice-divider.min.js +1 -1
  214. package/dist/cdn/doc/snice-doc.js +1 -1
  215. package/dist/cdn/doc/snice-doc.min.js +1 -1
  216. package/dist/cdn/draw/snice-draw.js +1 -1
  217. package/dist/cdn/draw/snice-draw.min.js +1 -1
  218. package/dist/cdn/drawer/snice-drawer.js +1 -1
  219. package/dist/cdn/drawer/snice-drawer.min.js +1 -1
  220. package/dist/cdn/empty-state/snice-empty-state.js +1 -1
  221. package/dist/cdn/empty-state/snice-empty-state.min.js +1 -1
  222. package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
  223. package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
  224. package/dist/cdn/file-upload/snice-file-upload.js +1 -1
  225. package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
  226. package/dist/cdn/flip-card/README.md +27 -0
  227. package/dist/cdn/flip-card/snice-flip-card.js +183 -0
  228. package/dist/cdn/flip-card/snice-flip-card.js.map +1 -0
  229. package/dist/cdn/flip-card/snice-flip-card.min.js +22 -0
  230. package/dist/cdn/flip-card/snice-flip-card.min.js.map +1 -0
  231. package/dist/cdn/flow/README.md +27 -0
  232. package/dist/cdn/flow/snice-flow.js +822 -0
  233. package/dist/cdn/flow/snice-flow.js.map +1 -0
  234. package/dist/cdn/flow/snice-flow.min.js +17 -0
  235. package/dist/cdn/flow/snice-flow.min.js.map +1 -0
  236. package/dist/cdn/funnel/snice-funnel.js +1 -1
  237. package/dist/cdn/funnel/snice-funnel.min.js +1 -1
  238. package/dist/cdn/gantt/README.md +27 -0
  239. package/dist/cdn/gantt/snice-gantt.js +436 -0
  240. package/dist/cdn/gantt/snice-gantt.js.map +1 -0
  241. package/dist/cdn/gantt/snice-gantt.min.js +60 -0
  242. package/dist/cdn/gantt/snice-gantt.min.js.map +1 -0
  243. package/dist/cdn/gauge/snice-gauge.js +1 -1
  244. package/dist/cdn/gauge/snice-gauge.min.js +1 -1
  245. package/dist/cdn/heatmap/snice-heatmap.js +1 -1
  246. package/dist/cdn/heatmap/snice-heatmap.min.js +1 -1
  247. package/dist/cdn/image/snice-image.js +1 -1
  248. package/dist/cdn/image/snice-image.min.js +1 -1
  249. package/dist/cdn/input/snice-input.js +1 -1
  250. package/dist/cdn/input/snice-input.min.js +1 -1
  251. package/dist/cdn/kanban/snice-kanban.js +1 -1
  252. package/dist/cdn/kanban/snice-kanban.min.js +1 -1
  253. package/dist/cdn/kpi/snice-kpi.js +1 -1
  254. package/dist/cdn/kpi/snice-kpi.min.js +1 -1
  255. package/dist/cdn/layout/snice-layout.js +1 -1
  256. package/dist/cdn/layout/snice-layout.min.js +1 -1
  257. package/dist/cdn/link/snice-link.js +1 -1
  258. package/dist/cdn/link/snice-link.min.js +1 -1
  259. package/dist/cdn/link-preview/snice-link-preview.js +1 -1
  260. package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
  261. package/dist/cdn/list/snice-list.js +1 -1
  262. package/dist/cdn/list/snice-list.min.js +1 -1
  263. package/dist/cdn/location/snice-location.js +1 -1
  264. package/dist/cdn/location/snice-location.min.js +1 -1
  265. package/dist/cdn/login/snice-login.js +1 -1
  266. package/dist/cdn/login/snice-login.min.js +1 -1
  267. package/dist/cdn/map/README.md +27 -0
  268. package/dist/cdn/map/snice-map.js +415 -0
  269. package/dist/cdn/map/snice-map.js.map +1 -0
  270. package/dist/cdn/map/snice-map.min.js +52 -0
  271. package/dist/cdn/map/snice-map.min.js.map +1 -0
  272. package/dist/cdn/markdown/README.md +27 -0
  273. package/dist/cdn/markdown/snice-markdown.js +317 -0
  274. package/dist/cdn/markdown/snice-markdown.js.map +1 -0
  275. package/dist/cdn/markdown/snice-markdown.min.js +11 -0
  276. package/dist/cdn/markdown/snice-markdown.min.js.map +1 -0
  277. package/dist/cdn/masonry/snice-masonry.js +1 -1
  278. package/dist/cdn/masonry/snice-masonry.min.js +1 -1
  279. package/dist/cdn/menu/snice-menu.js +1 -1
  280. package/dist/cdn/menu/snice-menu.min.js +1 -1
  281. package/dist/cdn/modal/snice-modal.js +1 -1
  282. package/dist/cdn/modal/snice-modal.min.js +1 -1
  283. package/dist/cdn/music-player/snice-music-player.js +1 -1
  284. package/dist/cdn/music-player/snice-music-player.min.js +1 -1
  285. package/dist/cdn/nav/snice-nav.js +1 -1
  286. package/dist/cdn/nav/snice-nav.min.js +1 -1
  287. package/dist/cdn/network-graph/snice-network-graph.js +1 -1
  288. package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
  289. package/dist/cdn/notification-center/README.md +27 -0
  290. package/dist/cdn/notification-center/snice-notification-center.js +204 -0
  291. package/dist/cdn/notification-center/snice-notification-center.js.map +1 -0
  292. package/dist/cdn/notification-center/snice-notification-center.min.js +33 -0
  293. package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -0
  294. package/dist/cdn/org-chart/README.md +27 -0
  295. package/dist/cdn/org-chart/snice-org-chart.js +294 -0
  296. package/dist/cdn/org-chart/snice-org-chart.js.map +1 -0
  297. package/dist/cdn/org-chart/snice-org-chart.min.js +32 -0
  298. package/dist/cdn/org-chart/snice-org-chart.min.js.map +1 -0
  299. package/dist/cdn/pagination/snice-pagination.js +1 -1
  300. package/dist/cdn/pagination/snice-pagination.min.js +1 -1
  301. package/dist/cdn/paint/snice-paint.js +1 -1
  302. package/dist/cdn/paint/snice-paint.min.js +1 -1
  303. package/dist/cdn/pdf-viewer/README.md +27 -0
  304. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +594 -0
  305. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js.map +1 -0
  306. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +88 -0
  307. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js.map +1 -0
  308. package/dist/cdn/podcast-player/README.md +27 -0
  309. package/dist/cdn/podcast-player/snice-podcast-player.js +835 -0
  310. package/dist/cdn/podcast-player/snice-podcast-player.js.map +1 -0
  311. package/dist/cdn/podcast-player/snice-podcast-player.min.js +209 -0
  312. package/dist/cdn/podcast-player/snice-podcast-player.min.js.map +1 -0
  313. package/dist/cdn/pricing-table/README.md +27 -0
  314. package/dist/cdn/pricing-table/snice-pricing-table.js +491 -0
  315. package/dist/cdn/pricing-table/snice-pricing-table.js.map +1 -0
  316. package/dist/cdn/pricing-table/snice-pricing-table.min.js +141 -0
  317. package/dist/cdn/pricing-table/snice-pricing-table.min.js.map +1 -0
  318. package/dist/cdn/progress/snice-progress.js +1 -1
  319. package/dist/cdn/progress/snice-progress.min.js +1 -1
  320. package/dist/cdn/qr-code/snice-qr-code.js +1 -1
  321. package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
  322. package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
  323. package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
  324. package/dist/cdn/radio/snice-radio.js +1 -1
  325. package/dist/cdn/radio/snice-radio.min.js +1 -1
  326. package/dist/cdn/rating/README.md +27 -0
  327. package/dist/cdn/rating/snice-rating.js +210 -0
  328. package/dist/cdn/rating/snice-rating.js.map +1 -0
  329. package/dist/cdn/rating/snice-rating.min.js +25 -0
  330. package/dist/cdn/rating/snice-rating.min.js.map +1 -0
  331. package/dist/cdn/recipe/README.md +27 -0
  332. package/dist/cdn/recipe/snice-recipe.js +619 -0
  333. package/dist/cdn/recipe/snice-recipe.js.map +1 -0
  334. package/dist/cdn/recipe/snice-recipe.min.js +185 -0
  335. package/dist/cdn/recipe/snice-recipe.min.js.map +1 -0
  336. package/dist/cdn/runtime/snice-runtime.esm.js +3 -3
  337. package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
  338. package/dist/cdn/runtime/snice-runtime.esm.min.js +3 -3
  339. package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
  340. package/dist/cdn/runtime/snice-runtime.js +3 -3
  341. package/dist/cdn/runtime/snice-runtime.js.map +1 -1
  342. package/dist/cdn/runtime/snice-runtime.min.js +3 -3
  343. package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
  344. package/dist/cdn/sankey/snice-sankey.js +1 -1
  345. package/dist/cdn/sankey/snice-sankey.min.js +1 -1
  346. package/dist/cdn/select/snice-select.js +1 -1
  347. package/dist/cdn/select/snice-select.min.js +1 -1
  348. package/dist/cdn/skeleton/snice-skeleton.js +1 -1
  349. package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
  350. package/dist/cdn/slider/snice-slider.js +1 -1
  351. package/dist/cdn/slider/snice-slider.min.js +1 -1
  352. package/dist/cdn/sortable/README.md +27 -0
  353. package/dist/cdn/sortable/snice-sortable.js +254 -0
  354. package/dist/cdn/sortable/snice-sortable.js.map +1 -0
  355. package/dist/cdn/sortable/snice-sortable.min.js +12 -0
  356. package/dist/cdn/sortable/snice-sortable.min.js.map +1 -0
  357. package/dist/cdn/sparkline/snice-sparkline.js +1 -1
  358. package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
  359. package/dist/cdn/spinner/snice-spinner.js +1 -1
  360. package/dist/cdn/spinner/snice-spinner.min.js +1 -1
  361. package/dist/cdn/split-pane/snice-split-pane.js +1 -1
  362. package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
  363. package/dist/cdn/spotlight/README.md +27 -0
  364. package/dist/cdn/spotlight/snice-spotlight.js +397 -0
  365. package/dist/cdn/spotlight/snice-spotlight.js.map +1 -0
  366. package/dist/cdn/spotlight/snice-spotlight.min.js +8 -0
  367. package/dist/cdn/spotlight/snice-spotlight.min.js.map +1 -0
  368. package/dist/cdn/spreadsheet/README.md +27 -0
  369. package/dist/cdn/spreadsheet/snice-spreadsheet.js +1171 -0
  370. package/dist/cdn/spreadsheet/snice-spreadsheet.js.map +1 -0
  371. package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +30 -0
  372. package/dist/cdn/spreadsheet/snice-spreadsheet.min.js.map +1 -0
  373. package/dist/cdn/stepper/snice-stepper.js +1 -1
  374. package/dist/cdn/stepper/snice-stepper.min.js +1 -1
  375. package/dist/cdn/switch/snice-switch.js +1 -1
  376. package/dist/cdn/switch/snice-switch.min.js +1 -1
  377. package/dist/cdn/table/snice-table.js +1 -1
  378. package/dist/cdn/table/snice-table.min.js +1 -1
  379. package/dist/cdn/tabs/snice-tabs.js +1 -1
  380. package/dist/cdn/tabs/snice-tabs.min.js +1 -1
  381. package/dist/cdn/tag-input/README.md +27 -0
  382. package/dist/cdn/tag-input/snice-tag-input.js +387 -0
  383. package/dist/cdn/tag-input/snice-tag-input.js.map +1 -0
  384. package/dist/cdn/tag-input/snice-tag-input.min.js +65 -0
  385. package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -0
  386. package/dist/cdn/terminal/snice-terminal.js +1 -1
  387. package/dist/cdn/terminal/snice-terminal.min.js +1 -1
  388. package/dist/cdn/testimonial/README.md +27 -0
  389. package/dist/cdn/testimonial/snice-testimonial.js +187 -0
  390. package/dist/cdn/testimonial/snice-testimonial.js.map +1 -0
  391. package/dist/cdn/testimonial/snice-testimonial.min.js +21 -0
  392. package/dist/cdn/testimonial/snice-testimonial.min.js.map +1 -0
  393. package/dist/cdn/textarea/snice-textarea.js +1 -1
  394. package/dist/cdn/textarea/snice-textarea.min.js +1 -1
  395. package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
  396. package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
  397. package/dist/cdn/timeline/snice-timeline.js +1 -1
  398. package/dist/cdn/timeline/snice-timeline.min.js +1 -1
  399. package/dist/cdn/timer/snice-timer.js +1 -1
  400. package/dist/cdn/timer/snice-timer.min.js +1 -1
  401. package/dist/cdn/toast/snice-toast.js +1 -1
  402. package/dist/cdn/toast/snice-toast.min.js +1 -1
  403. package/dist/cdn/tooltip/snice-tooltip.js +1 -1
  404. package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
  405. package/dist/cdn/tree/snice-tree.js +1 -1
  406. package/dist/cdn/tree/snice-tree.min.js +1 -1
  407. package/dist/cdn/treemap/snice-treemap.js +1 -1
  408. package/dist/cdn/treemap/snice-treemap.min.js +1 -1
  409. package/dist/cdn/video-player/README.md +27 -0
  410. package/dist/cdn/video-player/snice-video-player.js +721 -0
  411. package/dist/cdn/video-player/snice-video-player.js.map +1 -0
  412. package/dist/cdn/video-player/snice-video-player.min.js +153 -0
  413. package/dist/cdn/video-player/snice-video-player.min.js.map +1 -0
  414. package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
  415. package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
  416. package/dist/cdn/waterfall/README.md +27 -0
  417. package/dist/cdn/waterfall/snice-waterfall.js +292 -0
  418. package/dist/cdn/waterfall/snice-waterfall.js.map +1 -0
  419. package/dist/cdn/waterfall/snice-waterfall.min.js +12 -0
  420. package/dist/cdn/waterfall/snice-waterfall.min.js.map +1 -0
  421. package/dist/cdn/weather/README.md +27 -0
  422. package/dist/cdn/weather/snice-weather.js +194 -0
  423. package/dist/cdn/weather/snice-weather.js.map +1 -0
  424. package/dist/cdn/weather/snice-weather.min.js +42 -0
  425. package/dist/cdn/weather/snice-weather.min.js.map +1 -0
  426. package/dist/components/app-tiles/snice-app-tiles.d.ts +36 -0
  427. package/dist/components/app-tiles/snice-app-tiles.js +265 -0
  428. package/dist/components/app-tiles/snice-app-tiles.js.map +1 -0
  429. package/dist/components/app-tiles/snice-app-tiles.types.d.ts +22 -0
  430. package/dist/components/book/snice-book.d.ts +46 -0
  431. package/dist/components/book/snice-book.js +285 -0
  432. package/dist/components/book/snice-book.js.map +1 -0
  433. package/dist/components/book/snice-book.types.d.ts +21 -0
  434. package/dist/components/comments/snice-comments.d.ts +62 -0
  435. package/dist/components/comments/snice-comments.js +476 -0
  436. package/dist/components/comments/snice-comments.js.map +1 -0
  437. package/dist/components/comments/snice-comments.types.d.ts +64 -0
  438. package/dist/components/countdown/snice-countdown.d.ts +21 -0
  439. package/dist/components/countdown/snice-countdown.js +168 -0
  440. package/dist/components/countdown/snice-countdown.js.map +1 -0
  441. package/dist/components/countdown/snice-countdown.types.d.ts +18 -0
  442. package/dist/components/cropper/snice-cropper.d.ts +32 -0
  443. package/dist/components/cropper/snice-cropper.js +285 -0
  444. package/dist/components/cropper/snice-cropper.js.map +1 -0
  445. package/dist/components/cropper/snice-cropper.types.d.ts +26 -0
  446. package/dist/components/diff/snice-diff.d.ts +32 -0
  447. package/dist/components/diff/snice-diff.js +374 -0
  448. package/dist/components/diff/snice-diff.js.map +1 -0
  449. package/dist/components/diff/snice-diff.types.d.ts +26 -0
  450. package/dist/components/flip-card/snice-flip-card.d.ts +15 -0
  451. package/dist/components/flip-card/snice-flip-card.js +116 -0
  452. package/dist/components/flip-card/snice-flip-card.js.map +1 -0
  453. package/dist/components/flip-card/snice-flip-card.types.d.ts +16 -0
  454. package/dist/components/flow/snice-flow.d.ts +91 -0
  455. package/dist/components/flow/snice-flow.js +755 -0
  456. package/dist/components/flow/snice-flow.js.map +1 -0
  457. package/dist/components/flow/snice-flow.types.d.ts +64 -0
  458. package/dist/components/gantt/snice-gantt.d.ts +34 -0
  459. package/dist/components/gantt/snice-gantt.js +369 -0
  460. package/dist/components/gantt/snice-gantt.js.map +1 -0
  461. package/dist/components/gantt/snice-gantt.types.d.ts +37 -0
  462. package/dist/components/map/snice-map.d.ts +44 -0
  463. package/dist/components/map/snice-map.js +348 -0
  464. package/dist/components/map/snice-map.js.map +1 -0
  465. package/dist/components/map/snice-map.types.d.ts +41 -0
  466. package/dist/components/markdown/snice-markdown.d.ts +24 -0
  467. package/dist/components/markdown/snice-markdown.js +250 -0
  468. package/dist/components/markdown/snice-markdown.js.map +1 -0
  469. package/dist/components/markdown/snice-markdown.types.d.ts +16 -0
  470. package/dist/components/notification-center/snice-notification-center.d.ts +18 -0
  471. package/dist/components/notification-center/snice-notification-center.js +137 -0
  472. package/dist/components/notification-center/snice-notification-center.js.map +1 -0
  473. package/dist/components/notification-center/snice-notification-center.types.d.ts +24 -0
  474. package/dist/components/org-chart/snice-org-chart.d.ts +28 -0
  475. package/dist/components/org-chart/snice-org-chart.js +227 -0
  476. package/dist/components/org-chart/snice-org-chart.js.map +1 -0
  477. package/dist/components/org-chart/snice-org-chart.types.d.ts +28 -0
  478. package/dist/components/pdf-viewer/pdf.min.mjs +21 -0
  479. package/dist/components/pdf-viewer/pdf.worker.min.mjs +21 -0
  480. package/dist/components/pdf-viewer/snice-pdf-viewer.d.ts +59 -0
  481. package/dist/components/pdf-viewer/snice-pdf-viewer.js +527 -0
  482. package/dist/components/pdf-viewer/snice-pdf-viewer.js.map +1 -0
  483. package/dist/components/pdf-viewer/snice-pdf-viewer.types.d.ts +25 -0
  484. package/dist/components/podcast-player/snice-podcast-player.d.ts +72 -0
  485. package/dist/components/podcast-player/snice-podcast-player.js +768 -0
  486. package/dist/components/podcast-player/snice-podcast-player.js.map +1 -0
  487. package/dist/components/podcast-player/snice-podcast-player.types.d.ts +79 -0
  488. package/dist/components/pricing-table/snice-pricing-table.d.ts +51 -0
  489. package/dist/components/pricing-table/snice-pricing-table.js +422 -0
  490. package/dist/components/pricing-table/snice-pricing-table.js.map +1 -0
  491. package/dist/components/pricing-table/snice-pricing-table.types.d.ts +49 -0
  492. package/dist/components/rating/snice-rating.d.ts +15 -0
  493. package/dist/components/rating/snice-rating.js +143 -0
  494. package/dist/components/rating/snice-rating.js.map +1 -0
  495. package/dist/components/rating/snice-rating.types.d.ts +15 -0
  496. package/dist/components/recipe/snice-recipe.d.ts +53 -0
  497. package/dist/components/recipe/snice-recipe.js +552 -0
  498. package/dist/components/recipe/snice-recipe.js.map +1 -0
  499. package/dist/components/recipe/snice-recipe.types.d.ts +56 -0
  500. package/dist/components/sortable/snice-sortable.d.ts +24 -0
  501. package/dist/components/sortable/snice-sortable.js +187 -0
  502. package/dist/components/sortable/snice-sortable.js.map +1 -0
  503. package/dist/components/sortable/snice-sortable.types.d.ts +20 -0
  504. package/dist/components/spotlight/snice-spotlight.d.ts +42 -0
  505. package/dist/components/spotlight/snice-spotlight.js +330 -0
  506. package/dist/components/spotlight/snice-spotlight.js.map +1 -0
  507. package/dist/components/spotlight/snice-spotlight.types.d.ts +26 -0
  508. package/dist/components/spreadsheet/snice-spreadsheet.d.ts +102 -0
  509. package/dist/components/spreadsheet/snice-spreadsheet.js +1104 -0
  510. package/dist/components/spreadsheet/snice-spreadsheet.js.map +1 -0
  511. package/dist/components/spreadsheet/snice-spreadsheet.types.d.ts +54 -0
  512. package/dist/components/tag-input/snice-tag-input.d.ts +40 -0
  513. package/dist/components/tag-input/snice-tag-input.js +320 -0
  514. package/dist/components/tag-input/snice-tag-input.js.map +1 -0
  515. package/dist/components/tag-input/snice-tag-input.types.d.ts +29 -0
  516. package/dist/components/testimonial/snice-testimonial.d.ts +15 -0
  517. package/dist/components/testimonial/snice-testimonial.js +120 -0
  518. package/dist/components/testimonial/snice-testimonial.js.map +1 -0
  519. package/dist/components/testimonial/snice-testimonial.types.d.ts +10 -0
  520. package/dist/components/video-player/snice-video-player.d.ts +78 -0
  521. package/dist/components/video-player/snice-video-player.js +654 -0
  522. package/dist/components/video-player/snice-video-player.js.map +1 -0
  523. package/dist/components/video-player/snice-video-player.types.d.ts +47 -0
  524. package/dist/components/waterfall/snice-waterfall.d.ts +30 -0
  525. package/dist/components/waterfall/snice-waterfall.js +225 -0
  526. package/dist/components/waterfall/snice-waterfall.js.map +1 -0
  527. package/dist/components/waterfall/snice-waterfall.types.d.ts +23 -0
  528. package/dist/components/weather/snice-weather.d.ts +10 -0
  529. package/dist/components/weather/snice-weather.js +127 -0
  530. package/dist/components/weather/snice-weather.js.map +1 -0
  531. package/dist/components/weather/snice-weather.types.d.ts +22 -0
  532. package/dist/index.cjs +1 -1
  533. package/dist/index.esm.js +1 -1
  534. package/dist/index.iife.js +1 -1
  535. package/dist/symbols.cjs +1 -1
  536. package/dist/symbols.esm.js +1 -1
  537. package/dist/transitions.cjs +1 -1
  538. package/dist/transitions.esm.js +1 -1
  539. package/docs/ai/DEVELOPMENT.md +1 -1
  540. package/docs/ai/api.md +6 -3
  541. package/docs/ai/components/accordion.md +0 -34
  542. package/docs/ai/components/app-tiles.md +77 -0
  543. package/docs/ai/components/audio-recorder.md +2 -0
  544. package/docs/ai/components/badge.md +7 -0
  545. package/docs/ai/components/book.md +78 -0
  546. package/docs/ai/components/button.md +5 -0
  547. package/docs/ai/components/chart.md +0 -24
  548. package/docs/ai/components/chat.md +7 -95
  549. package/docs/ai/components/code-block.md +3 -82
  550. package/docs/ai/components/color-display.md +3 -3
  551. package/docs/ai/components/color-picker.md +4 -4
  552. package/docs/ai/components/comments.md +75 -0
  553. package/docs/ai/components/countdown.md +54 -0
  554. package/docs/ai/components/cropper.md +57 -0
  555. package/docs/ai/components/date-picker.md +15 -9
  556. package/docs/ai/components/diff.md +66 -0
  557. package/docs/ai/components/divider.md +1 -1
  558. package/docs/ai/components/draw.md +5 -5
  559. package/docs/ai/components/drawer.md +5 -5
  560. package/docs/ai/components/empty-state.md +2 -2
  561. package/docs/ai/components/file-gallery.md +16 -87
  562. package/docs/ai/components/file-upload.md +6 -6
  563. package/docs/ai/components/flip-card.md +52 -0
  564. package/docs/ai/components/flow.md +104 -0
  565. package/docs/ai/components/funnel.md +3 -3
  566. package/docs/ai/components/gantt.md +63 -0
  567. package/docs/ai/components/gauge.md +1 -1
  568. package/docs/ai/components/heatmap.md +5 -5
  569. package/docs/ai/components/input.md +20 -18
  570. package/docs/ai/components/kanban.md +2 -2
  571. package/docs/ai/components/kpi.md +4 -53
  572. package/docs/ai/components/layout.md +10 -235
  573. package/docs/ai/components/link-preview.md +20 -29
  574. package/docs/ai/components/link.md +27 -47
  575. package/docs/ai/components/list.md +51 -31
  576. package/docs/ai/components/location.md +15 -27
  577. package/docs/ai/components/login.md +43 -94
  578. package/docs/ai/components/map.md +72 -0
  579. package/docs/ai/components/markdown.md +63 -0
  580. package/docs/ai/components/masonry.md +10 -6
  581. package/docs/ai/components/menu.md +40 -72
  582. package/docs/ai/components/modal.md +25 -42
  583. package/docs/ai/components/music-player.md +37 -89
  584. package/docs/ai/components/nav.md +25 -39
  585. package/docs/ai/components/network-graph.md +39 -43
  586. package/docs/ai/components/notification-center.md +79 -0
  587. package/docs/ai/components/org-chart.md +62 -0
  588. package/docs/ai/components/pagination.md +16 -18
  589. package/docs/ai/components/pdf-viewer.md +57 -0
  590. package/docs/ai/components/podcast-player.md +94 -0
  591. package/docs/ai/components/pricing-table.md +87 -0
  592. package/docs/ai/components/progress.md +23 -39
  593. package/docs/ai/components/qr-code.md +37 -84
  594. package/docs/ai/components/qr-reader.md +51 -61
  595. package/docs/ai/components/radio.md +27 -39
  596. package/docs/ai/components/rating.md +56 -0
  597. package/docs/ai/components/recipe.md +90 -0
  598. package/docs/ai/components/skeleton.md +0 -8
  599. package/docs/ai/components/slider.md +10 -50
  600. package/docs/ai/components/sortable.md +57 -0
  601. package/docs/ai/components/sparkline.md +26 -152
  602. package/docs/ai/components/spinner.md +0 -21
  603. package/docs/ai/components/split-pane.md +16 -38
  604. package/docs/ai/components/spotlight.md +61 -0
  605. package/docs/ai/components/spreadsheet.md +138 -0
  606. package/docs/ai/components/stepper.md +37 -183
  607. package/docs/ai/components/switch.md +28 -35
  608. package/docs/ai/components/table.md +43 -172
  609. package/docs/ai/components/tabs.md +31 -52
  610. package/docs/ai/components/tag-input.md +70 -0
  611. package/docs/ai/components/terminal.md +34 -116
  612. package/docs/ai/components/testimonial.md +56 -0
  613. package/docs/ai/components/textarea.md +11 -43
  614. package/docs/ai/components/theme.md +120 -0
  615. package/docs/ai/components/time-range-picker.md +17 -49
  616. package/docs/ai/components/timeline.md +7 -46
  617. package/docs/ai/components/timer.md +41 -37
  618. package/docs/ai/components/toast.md +19 -90
  619. package/docs/ai/components/tooltip.md +17 -104
  620. package/docs/ai/components/tree.md +38 -162
  621. package/docs/ai/components/treemap.md +23 -44
  622. package/docs/ai/components/video-player.md +91 -0
  623. package/docs/ai/components/virtual-scroller.md +23 -46
  624. package/docs/ai/components/waterfall.md +56 -0
  625. package/docs/ai/components/weather.md +78 -0
  626. package/docs/ai/decorators.md +25 -3
  627. package/docs/ai/patterns.md +17 -1
  628. package/docs/components/accordion.md +8 -6
  629. package/docs/components/alert.md +2 -0
  630. package/docs/components/app-tiles.md +162 -0
  631. package/docs/components/audio-recorder.md +6 -0
  632. package/docs/components/avatar.md +225 -0
  633. package/docs/components/badge.md +2 -0
  634. package/docs/components/banner.md +2 -0
  635. package/docs/components/book.md +184 -0
  636. package/docs/components/breadcrumbs.md +2 -0
  637. package/docs/components/button.md +15 -0
  638. package/docs/components/calendar.md +2 -0
  639. package/docs/components/camera-annotate.md +2 -0
  640. package/docs/components/camera.md +2 -0
  641. package/docs/components/candlestick.md +2 -0
  642. package/docs/components/card.md +2 -0
  643. package/docs/components/carousel.md +205 -36
  644. package/docs/components/chart.md +2 -0
  645. package/docs/components/chat.md +2 -0
  646. package/docs/components/checkbox.md +2 -0
  647. package/docs/components/chip.md +2 -0
  648. package/docs/components/code-block.md +2 -0
  649. package/docs/components/color-display.md +2 -0
  650. package/docs/components/color-picker.md +6 -4
  651. package/docs/components/command-palette.md +2 -0
  652. package/docs/components/comments.md +235 -0
  653. package/docs/components/countdown.md +121 -0
  654. package/docs/components/cropper.md +152 -0
  655. package/docs/components/date-picker.md +201 -0
  656. package/docs/components/diff.md +177 -0
  657. package/docs/components/divider.md +132 -0
  658. package/docs/components/doc.md +2 -0
  659. package/docs/components/draw.md +2 -0
  660. package/docs/components/drawer.md +2 -0
  661. package/docs/components/empty-state.md +2 -0
  662. package/docs/components/file-gallery.md +2 -0
  663. package/docs/components/file-upload.md +2 -0
  664. package/docs/components/flip-card.md +169 -0
  665. package/docs/components/flow.md +208 -0
  666. package/docs/components/funnel.md +2 -0
  667. package/docs/components/gantt.md +187 -0
  668. package/docs/components/gauge.md +2 -0
  669. package/docs/components/heatmap.md +2 -0
  670. package/docs/components/image.md +2 -0
  671. package/docs/components/input.md +242 -0
  672. package/docs/components/kanban.md +2 -0
  673. package/docs/components/kpi.md +2 -0
  674. package/docs/components/layout.md +84 -0
  675. package/docs/components/link-preview.md +66 -92
  676. package/docs/components/link.md +73 -157
  677. package/docs/components/list.md +140 -44
  678. package/docs/components/location.md +96 -283
  679. package/docs/components/login.md +131 -498
  680. package/docs/components/map.md +203 -0
  681. package/docs/components/markdown.md +220 -0
  682. package/docs/components/masonry.md +57 -102
  683. package/docs/components/menu.md +87 -494
  684. package/docs/components/modal.md +83 -436
  685. package/docs/components/music-player.md +116 -221
  686. package/docs/components/nav.md +107 -170
  687. package/docs/components/network-graph.md +83 -111
  688. package/docs/components/notification-center.md +256 -0
  689. package/docs/components/org-chart.md +275 -0
  690. package/docs/components/pagination.md +75 -218
  691. package/docs/components/paint.md +108 -73
  692. package/docs/components/pdf-viewer.md +204 -0
  693. package/docs/components/podcast-player.md +277 -0
  694. package/docs/components/pricing-table.md +249 -0
  695. package/docs/components/progress.md +169 -0
  696. package/docs/components/qr-code.md +95 -378
  697. package/docs/components/qr-reader.md +83 -258
  698. package/docs/components/radio.md +151 -0
  699. package/docs/components/rating.md +154 -0
  700. package/docs/components/recipe.md +323 -0
  701. package/docs/components/sankey.md +84 -107
  702. package/docs/components/select.md +114 -485
  703. package/docs/components/skeleton.md +96 -0
  704. package/docs/components/slider.md +92 -235
  705. package/docs/components/sortable.md +267 -0
  706. package/docs/components/sparkline.md +76 -222
  707. package/docs/components/spinner.md +37 -18
  708. package/docs/components/split-pane.md +62 -226
  709. package/docs/components/spotlight.md +240 -0
  710. package/docs/components/spreadsheet.md +405 -0
  711. package/docs/components/stepper.md +72 -306
  712. package/docs/components/switch.md +69 -293
  713. package/docs/components/table.md +250 -0
  714. package/docs/components/tabs.md +92 -471
  715. package/docs/components/tag-input.md +257 -0
  716. package/docs/components/terminal.md +87 -391
  717. package/docs/components/testimonial.md +185 -0
  718. package/docs/components/textarea.md +96 -181
  719. package/docs/components/theme.md +216 -0
  720. package/docs/components/time-range-picker.md +99 -151
  721. package/docs/components/timeline.md +67 -115
  722. package/docs/components/timer.md +44 -86
  723. package/docs/components/toast.md +93 -432
  724. package/docs/components/tooltip.md +75 -419
  725. package/docs/components/tree.md +110 -436
  726. package/docs/components/treemap.md +86 -129
  727. package/docs/components/video-player.md +336 -0
  728. package/docs/components/virtual-scroller.md +86 -226
  729. package/docs/components/waterfall.md +217 -0
  730. package/docs/components/weather.md +239 -0
  731. package/package.json +1 -1
  732. package/docs/ai/components/popover.md +0 -70
  733. package/docs/components/popover.md +0 -333
@@ -0,0 +1,835 @@
1
+ /*!
2
+ * snice v4.9.0
3
+ * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
+ * (c) 2024
5
+ * Released under the MIT License.
6
+ */
7
+ if(typeof globalThis.Snice==="undefined"){console.warn("[snice] snice-runtime.min.js must be loaded before snice-podcast-player.min.js");}
8
+ var SnicePodcastPlayer = (function (exports, snice) {
9
+ 'use strict';
10
+
11
+ /******************************************************************************
12
+ Copyright (c) Microsoft Corporation.
13
+
14
+ Permission to use, copy, modify, and/or distribute this software for any
15
+ purpose with or without fee is hereby granted.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
+ PERFORMANCE OF THIS SOFTWARE.
24
+ ***************************************************************************** */
25
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26
+
27
+
28
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
29
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
30
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
31
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
32
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
33
+ var _, done = false;
34
+ for (var i = decorators.length - 1; i >= 0; i--) {
35
+ var context = {};
36
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
37
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
38
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
39
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
40
+ if (kind === "accessor") {
41
+ if (result === void 0) continue;
42
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
43
+ if (_ = accept(result.get)) descriptor.get = _;
44
+ if (_ = accept(result.set)) descriptor.set = _;
45
+ if (_ = accept(result.init)) initializers.unshift(_);
46
+ }
47
+ else if (_ = accept(result)) {
48
+ if (kind === "field") initializers.unshift(_);
49
+ else descriptor[key] = _;
50
+ }
51
+ }
52
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
53
+ done = true;
54
+ }
55
+ function __runInitializers(thisArg, initializers, value) {
56
+ var useValue = arguments.length > 2;
57
+ for (var i = 0; i < initializers.length; i++) {
58
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
59
+ }
60
+ return useValue ? value : void 0;
61
+ }
62
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
63
+ var e = new Error(message);
64
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
65
+ };
66
+
67
+ var playerStyles = ":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}.podcast-container{background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-lg,.5rem);padding:var(--snice-spacing-lg,1.5rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.podcast-info{display:flex;gap:var(--snice-spacing-md,1rem);margin-bottom:var(--snice-spacing-lg,1.5rem)}.podcast-artwork{flex-shrink:0;width:7.5rem;height:7.5rem;border-radius:var(--snice-border-radius-lg,.5rem);overflow:hidden;background:var(--snice-color-background-element,rgb(252 251 249));display:flex;align-items:center;justify-content:center}.podcast-artwork img{width:100%;height:100%;object-fit:cover}.podcast-artwork-placeholder{color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-meta{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.podcast-show{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-primary,rgb(37 99 235));margin-bottom:var(--snice-spacing-3xs,.125rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:.05em}.podcast-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-xs,.5rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-description{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));line-height:var(--snice-line-height-normal, 1.5);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.podcast-controls{margin-bottom:var(--snice-spacing-md,1rem)}.podcast-control-buttons{display:flex;align-items:center;justify-content:center;gap:var(--snice-spacing-md,1rem);margin-bottom:var(--snice-spacing-md,1rem)}.podcast-btn{background:0 0;border:none;cursor:pointer;padding:var(--snice-spacing-xs,.5rem);border-radius:var(--snice-border-radius-md,.25rem);color:var(--snice-color-text,rgb(23 23 23));display:inline-flex;align-items:center;justify-content:center;transition:background-color var(--snice-transition-fast, 150ms) ease;position:relative}.podcast-btn:hover:not(:disabled){background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-btn:active:not(:disabled){background:var(--snice-color-background-active,rgb(226 226 226))}.podcast-btn:disabled{opacity:.5;cursor:not-allowed}.podcast-btn-skip-label{position:absolute;font-size:.5rem;font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23));bottom:.25rem}.podcast-btn-play{background:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));padding:var(--snice-spacing-md,1rem);border-radius:50%}.podcast-btn-play:hover:not(:disabled){background:var(--snice-color-primary-hover,rgb(29 78 216))}.podcast-btn-speed{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);min-width:2.75rem;padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.podcast-btn-speed.active{color:var(--snice-color-primary,rgb(37 99 235));border-color:var(--snice-color-primary,rgb(37 99 235))}.podcast-progress-container{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem)}.podcast-time{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-secondary,rgb(82 82 82));min-width:2.75rem}.podcast-time-current{text-align:right}.podcast-time-remaining{text-align:left}.podcast-progress{flex:1;height:.375rem;background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px;cursor:pointer;position:relative;overflow:hidden}.podcast-progress:hover{height:.5rem}.podcast-progress-bar{height:100%;background:var(--snice-color-primary,rgb(37 99 235));border-radius:9999px;transition:width .1s linear}.podcast-volume{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem)}.podcast-volume-slider-container{display:flex;align-items:center}.podcast-volume-slider{-webkit-appearance:none;appearance:none;width:5rem;height:.375rem;background:linear-gradient(to right,var(--snice-color-primary,rgb(37 99 235)) 0,var(--snice-color-primary,rgb(37 99 235)) var(--volume-percent,100%),var(--snice-color-background-element,rgb(252 251 249)) var(--volume-percent,100%),var(--snice-color-background-element,rgb(252 251 249)) 100%);border-radius:9999px;outline:0;cursor:pointer}.podcast-volume-slider::-webkit-slider-runnable-track{width:100%;height:.375rem;background:0 0;border-radius:9999px}.podcast-volume-slider::-moz-range-track{width:100%;height:.375rem;background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px}.podcast-volume-slider::-moz-range-progress{height:.375rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:9999px}.podcast-volume-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.875rem;height:.875rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:50%;cursor:pointer;margin-top:-.25rem}.podcast-volume-slider::-moz-range-thumb{width:.875rem;height:.875rem;background:var(--snice-color-primary,rgb(37 99 235));border:none;border-radius:50%;cursor:pointer}.podcast-bottom-bar{display:flex;align-items:center;justify-content:space-between;margin-top:var(--snice-spacing-sm,.75rem)}.podcast-sleep{display:flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem)}.podcast-sleep-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-sleep-time{font-size:var(--snice-font-size-xs, .75rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-primary,rgb(37 99 235));font-variant-numeric:tabular-nums}.podcast-btn-sleep{font-size:var(--snice-font-size-xs, .75rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.podcast-btn-sleep.active{color:var(--snice-color-primary,rgb(37 99 235));border-color:var(--snice-color-primary,rgb(37 99 235))}.podcast-chapters{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding-top:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-md,1rem)}.podcast-chapters-header{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-sm,.75rem)}.podcast-chapter-item{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);cursor:pointer;transition:background-color var(--snice-transition-fast, 150ms) ease}.podcast-chapter-item:hover{background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-chapter-item.active{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.podcast-chapter-time{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-tertiary,rgb(115 115 115));min-width:2.5rem;flex-shrink:0}.podcast-chapter-title{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text,rgb(23 23 23));flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-chapter-item.active .podcast-chapter-title{color:var(--snice-color-primary,rgb(37 99 235));font-weight:var(--snice-font-weight-medium,500)}.podcast-episodes{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding-top:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-md,1rem)}.podcast-episodes-header{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-sm,.75rem)}.podcast-episode-list{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem);max-height:18.75rem;overflow-y:auto}.podcast-episode-item{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);cursor:pointer;transition:background-color var(--snice-transition-fast, 150ms) ease}.podcast-episode-item:hover{background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-episode-item.active{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.podcast-episode-artwork{width:3rem;height:3rem;border-radius:var(--snice-border-radius-md,.25rem);object-fit:cover;flex-shrink:0}.podcast-episode-info{flex:1;min-width:0}.podcast-episode-title{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-3xs,.125rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-episode-item.active .podcast-episode-title{color:var(--snice-color-primary,rgb(37 99 235));font-weight:var(--snice-font-weight-medium,500)}.podcast-episode-date{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-episode-duration{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-tertiary,rgb(115 115 115));flex-shrink:0}.podcast-episode-playing-icon{display:flex;align-items:center;gap:2px;flex-shrink:0}.podcast-episode-playing-icon span{display:inline-block;width:3px;height:.75rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:1px;animation:.8s ease-in-out infinite podcast-bar-bounce}.podcast-episode-playing-icon span:nth-child(2){animation-delay:.15s}.podcast-episode-playing-icon span:nth-child(3){animation-delay:.3s}@keyframes podcast-bar-bounce{0%,100%{height:.25rem}50%{height:.75rem}}.podcast-episode-list::-webkit-scrollbar{width:.5rem}.podcast-episode-list::-webkit-scrollbar-track{background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px}.podcast-episode-list::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:9999px}.podcast-episode-list::-webkit-scrollbar-thumb:hover{background:var(--snice-color-border-hover,rgb(204 204 204))}";
68
+
69
+ const PLAYBACK_RATES = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
70
+ const SLEEP_OPTIONS = [0, 5, 10, 15, 30, 45, 60]; // minutes
71
+ const STORAGE_KEY_PREFIX = 'snice-podcast-position-';
72
+ let SnicePodcastPlayer = (() => {
73
+ let _classDecorators = [snice.element('snice-podcast-player')];
74
+ let _classDescriptor;
75
+ let _classExtraInitializers = [];
76
+ let _classThis;
77
+ let _classSuper = HTMLElement;
78
+ let _instanceExtraInitializers = [];
79
+ let _src_decorators;
80
+ let _src_initializers = [];
81
+ let _src_extraInitializers = [];
82
+ let _fromRss_decorators;
83
+ let _fromRss_initializers = [];
84
+ let _fromRss_extraInitializers = [];
85
+ let _title_decorators;
86
+ let _title_initializers = [];
87
+ let _title_extraInitializers = [];
88
+ let _show_decorators;
89
+ let _show_initializers = [];
90
+ let _show_extraInitializers = [];
91
+ let _artwork_decorators;
92
+ let _artwork_initializers = [];
93
+ let _artwork_extraInitializers = [];
94
+ let _description_decorators;
95
+ let _description_initializers = [];
96
+ let _description_extraInitializers = [];
97
+ let _playbackRate_decorators;
98
+ let _playbackRate_initializers = [];
99
+ let _playbackRate_extraInitializers = [];
100
+ let _skipForward_decorators;
101
+ let _skipForward_initializers = [];
102
+ let _skipForward_extraInitializers = [];
103
+ let _skipBack_decorators;
104
+ let _skipBack_initializers = [];
105
+ let _skipBack_extraInitializers = [];
106
+ let _currentTime_decorators;
107
+ let _currentTime_initializers = [];
108
+ let _currentTime_extraInitializers = [];
109
+ let _duration_decorators;
110
+ let _duration_initializers = [];
111
+ let _duration_extraInitializers = [];
112
+ let _volume_decorators;
113
+ let _volume_initializers = [];
114
+ let _volume_extraInitializers = [];
115
+ let _muted_decorators;
116
+ let _muted_initializers = [];
117
+ let _muted_extraInitializers = [];
118
+ let _episodes_decorators;
119
+ let _episodes_initializers = [];
120
+ let _episodes_extraInitializers = [];
121
+ let _currentEpisodeIndex_decorators;
122
+ let _currentEpisodeIndex_initializers = [];
123
+ let _currentEpisodeIndex_extraInitializers = [];
124
+ let _sleepTimer_decorators;
125
+ let _sleepTimer_initializers = [];
126
+ let _sleepTimer_extraInitializers = [];
127
+ let _progressElement_decorators;
128
+ let _progressElement_initializers = [];
129
+ let _progressElement_extraInitializers = [];
130
+ let _componentStyles_decorators;
131
+ let _init_decorators;
132
+ let _cleanup_decorators;
133
+ let _handleSrcChange_decorators;
134
+ let _handleRssChange_decorators;
135
+ let _handleVolumeChange_decorators;
136
+ let _handleMutedChange_decorators;
137
+ let _handlePlaybackRateChange_decorators;
138
+ let _renderPlayer_decorators;
139
+ let _emitPlay_decorators;
140
+ let _emitPause_decorators;
141
+ let _emitEnded_decorators;
142
+ let _emitTimeUpdate_decorators;
143
+ let _emitRateChange_decorators;
144
+ let _emitEpisodeChange_decorators;
145
+ let _emitFeedLoaded_decorators;
146
+ (class extends _classSuper {
147
+ static { _classThis = this; }
148
+ static {
149
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
150
+ _src_decorators = [snice.property()];
151
+ _fromRss_decorators = [snice.property({ attribute: 'from-rss' })];
152
+ _title_decorators = [snice.property()];
153
+ _show_decorators = [snice.property()];
154
+ _artwork_decorators = [snice.property()];
155
+ _description_decorators = [snice.property()];
156
+ _playbackRate_decorators = [snice.property({ type: Number, attribute: 'playback-rate' })];
157
+ _skipForward_decorators = [snice.property({ type: Number, attribute: 'skip-forward' })];
158
+ _skipBack_decorators = [snice.property({ type: Number, attribute: 'skip-back' })];
159
+ _currentTime_decorators = [snice.property({ type: Number, attribute: 'current-time' })];
160
+ _duration_decorators = [snice.property({ type: Number })];
161
+ _volume_decorators = [snice.property({ type: Number })];
162
+ _muted_decorators = [snice.property({ type: Boolean })];
163
+ _episodes_decorators = [snice.property({ type: Array })];
164
+ _currentEpisodeIndex_decorators = [snice.property({ type: Number, attribute: 'current-episode-index' })];
165
+ _sleepTimer_decorators = [snice.property({ type: Number, attribute: 'sleep-timer' })];
166
+ _progressElement_decorators = [snice.query('.podcast-progress')];
167
+ _componentStyles_decorators = [snice.styles()];
168
+ _init_decorators = [snice.ready()];
169
+ _cleanup_decorators = [snice.dispose()];
170
+ _handleSrcChange_decorators = [snice.watch('src')];
171
+ _handleRssChange_decorators = [snice.watch('fromRss')];
172
+ _handleVolumeChange_decorators = [snice.watch('volume')];
173
+ _handleMutedChange_decorators = [snice.watch('muted')];
174
+ _handlePlaybackRateChange_decorators = [snice.watch('playbackRate')];
175
+ _renderPlayer_decorators = [snice.render()];
176
+ _emitPlay_decorators = [snice.dispatch('podcast-play', { bubbles: true, composed: true })];
177
+ _emitPause_decorators = [snice.dispatch('podcast-pause', { bubbles: true, composed: true })];
178
+ _emitEnded_decorators = [snice.dispatch('podcast-ended', { bubbles: true, composed: true })];
179
+ _emitTimeUpdate_decorators = [snice.dispatch('podcast-time-update', { bubbles: true, composed: true })];
180
+ _emitRateChange_decorators = [snice.dispatch('podcast-rate-change', { bubbles: true, composed: true })];
181
+ _emitEpisodeChange_decorators = [snice.dispatch('podcast-episode-change', { bubbles: true, composed: true })];
182
+ _emitFeedLoaded_decorators = [snice.dispatch('podcast-feed-loaded', { bubbles: true, composed: true })];
183
+ __esDecorate(this, null, _componentStyles_decorators, { kind: "method", name: "componentStyles", static: false, private: false, access: { has: obj => "componentStyles" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);
184
+ __esDecorate(this, null, _init_decorators, { kind: "method", name: "init", static: false, private: false, access: { has: obj => "init" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);
185
+ __esDecorate(this, null, _cleanup_decorators, { kind: "method", name: "cleanup", static: false, private: false, access: { has: obj => "cleanup" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);
186
+ __esDecorate(this, null, _handleSrcChange_decorators, { kind: "method", name: "handleSrcChange", static: false, private: false, access: { has: obj => "handleSrcChange" in obj, get: obj => obj.handleSrcChange }, metadata: _metadata }, null, _instanceExtraInitializers);
187
+ __esDecorate(this, null, _handleRssChange_decorators, { kind: "method", name: "handleRssChange", static: false, private: false, access: { has: obj => "handleRssChange" in obj, get: obj => obj.handleRssChange }, metadata: _metadata }, null, _instanceExtraInitializers);
188
+ __esDecorate(this, null, _handleVolumeChange_decorators, { kind: "method", name: "handleVolumeChange", static: false, private: false, access: { has: obj => "handleVolumeChange" in obj, get: obj => obj.handleVolumeChange }, metadata: _metadata }, null, _instanceExtraInitializers);
189
+ __esDecorate(this, null, _handleMutedChange_decorators, { kind: "method", name: "handleMutedChange", static: false, private: false, access: { has: obj => "handleMutedChange" in obj, get: obj => obj.handleMutedChange }, metadata: _metadata }, null, _instanceExtraInitializers);
190
+ __esDecorate(this, null, _handlePlaybackRateChange_decorators, { kind: "method", name: "handlePlaybackRateChange", static: false, private: false, access: { has: obj => "handlePlaybackRateChange" in obj, get: obj => obj.handlePlaybackRateChange }, metadata: _metadata }, null, _instanceExtraInitializers);
191
+ __esDecorate(this, null, _renderPlayer_decorators, { kind: "method", name: "renderPlayer", static: false, private: false, access: { has: obj => "renderPlayer" in obj, get: obj => obj.renderPlayer }, metadata: _metadata }, null, _instanceExtraInitializers);
192
+ __esDecorate(this, null, _emitPlay_decorators, { kind: "method", name: "emitPlay", static: false, private: false, access: { has: obj => "emitPlay" in obj, get: obj => obj.emitPlay }, metadata: _metadata }, null, _instanceExtraInitializers);
193
+ __esDecorate(this, null, _emitPause_decorators, { kind: "method", name: "emitPause", static: false, private: false, access: { has: obj => "emitPause" in obj, get: obj => obj.emitPause }, metadata: _metadata }, null, _instanceExtraInitializers);
194
+ __esDecorate(this, null, _emitEnded_decorators, { kind: "method", name: "emitEnded", static: false, private: false, access: { has: obj => "emitEnded" in obj, get: obj => obj.emitEnded }, metadata: _metadata }, null, _instanceExtraInitializers);
195
+ __esDecorate(this, null, _emitTimeUpdate_decorators, { kind: "method", name: "emitTimeUpdate", static: false, private: false, access: { has: obj => "emitTimeUpdate" in obj, get: obj => obj.emitTimeUpdate }, metadata: _metadata }, null, _instanceExtraInitializers);
196
+ __esDecorate(this, null, _emitRateChange_decorators, { kind: "method", name: "emitRateChange", static: false, private: false, access: { has: obj => "emitRateChange" in obj, get: obj => obj.emitRateChange }, metadata: _metadata }, null, _instanceExtraInitializers);
197
+ __esDecorate(this, null, _emitEpisodeChange_decorators, { kind: "method", name: "emitEpisodeChange", static: false, private: false, access: { has: obj => "emitEpisodeChange" in obj, get: obj => obj.emitEpisodeChange }, metadata: _metadata }, null, _instanceExtraInitializers);
198
+ __esDecorate(this, null, _emitFeedLoaded_decorators, { kind: "method", name: "emitFeedLoaded", static: false, private: false, access: { has: obj => "emitFeedLoaded" in obj, get: obj => obj.emitFeedLoaded }, metadata: _metadata }, null, _instanceExtraInitializers);
199
+ __esDecorate(null, null, _src_decorators, { kind: "field", name: "src", static: false, private: false, access: { has: obj => "src" in obj, get: obj => obj.src, set: (obj, value) => { obj.src = value; } }, metadata: _metadata }, _src_initializers, _src_extraInitializers);
200
+ __esDecorate(null, null, _fromRss_decorators, { kind: "field", name: "fromRss", static: false, private: false, access: { has: obj => "fromRss" in obj, get: obj => obj.fromRss, set: (obj, value) => { obj.fromRss = value; } }, metadata: _metadata }, _fromRss_initializers, _fromRss_extraInitializers);
201
+ __esDecorate(null, null, _title_decorators, { kind: "field", name: "title", static: false, private: false, access: { has: obj => "title" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);
202
+ __esDecorate(null, null, _show_decorators, { kind: "field", name: "show", static: false, private: false, access: { has: obj => "show" in obj, get: obj => obj.show, set: (obj, value) => { obj.show = value; } }, metadata: _metadata }, _show_initializers, _show_extraInitializers);
203
+ __esDecorate(null, null, _artwork_decorators, { kind: "field", name: "artwork", static: false, private: false, access: { has: obj => "artwork" in obj, get: obj => obj.artwork, set: (obj, value) => { obj.artwork = value; } }, metadata: _metadata }, _artwork_initializers, _artwork_extraInitializers);
204
+ __esDecorate(null, null, _description_decorators, { kind: "field", name: "description", static: false, private: false, access: { has: obj => "description" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);
205
+ __esDecorate(null, null, _playbackRate_decorators, { kind: "field", name: "playbackRate", static: false, private: false, access: { has: obj => "playbackRate" in obj, get: obj => obj.playbackRate, set: (obj, value) => { obj.playbackRate = value; } }, metadata: _metadata }, _playbackRate_initializers, _playbackRate_extraInitializers);
206
+ __esDecorate(null, null, _skipForward_decorators, { kind: "field", name: "skipForward", static: false, private: false, access: { has: obj => "skipForward" in obj, get: obj => obj.skipForward, set: (obj, value) => { obj.skipForward = value; } }, metadata: _metadata }, _skipForward_initializers, _skipForward_extraInitializers);
207
+ __esDecorate(null, null, _skipBack_decorators, { kind: "field", name: "skipBack", static: false, private: false, access: { has: obj => "skipBack" in obj, get: obj => obj.skipBack, set: (obj, value) => { obj.skipBack = value; } }, metadata: _metadata }, _skipBack_initializers, _skipBack_extraInitializers);
208
+ __esDecorate(null, null, _currentTime_decorators, { kind: "field", name: "currentTime", static: false, private: false, access: { has: obj => "currentTime" in obj, get: obj => obj.currentTime, set: (obj, value) => { obj.currentTime = value; } }, metadata: _metadata }, _currentTime_initializers, _currentTime_extraInitializers);
209
+ __esDecorate(null, null, _duration_decorators, { kind: "field", name: "duration", static: false, private: false, access: { has: obj => "duration" in obj, get: obj => obj.duration, set: (obj, value) => { obj.duration = value; } }, metadata: _metadata }, _duration_initializers, _duration_extraInitializers);
210
+ __esDecorate(null, null, _volume_decorators, { kind: "field", name: "volume", static: false, private: false, access: { has: obj => "volume" in obj, get: obj => obj.volume, set: (obj, value) => { obj.volume = value; } }, metadata: _metadata }, _volume_initializers, _volume_extraInitializers);
211
+ __esDecorate(null, null, _muted_decorators, { kind: "field", name: "muted", static: false, private: false, access: { has: obj => "muted" in obj, get: obj => obj.muted, set: (obj, value) => { obj.muted = value; } }, metadata: _metadata }, _muted_initializers, _muted_extraInitializers);
212
+ __esDecorate(null, null, _episodes_decorators, { kind: "field", name: "episodes", static: false, private: false, access: { has: obj => "episodes" in obj, get: obj => obj.episodes, set: (obj, value) => { obj.episodes = value; } }, metadata: _metadata }, _episodes_initializers, _episodes_extraInitializers);
213
+ __esDecorate(null, null, _currentEpisodeIndex_decorators, { kind: "field", name: "currentEpisodeIndex", static: false, private: false, access: { has: obj => "currentEpisodeIndex" in obj, get: obj => obj.currentEpisodeIndex, set: (obj, value) => { obj.currentEpisodeIndex = value; } }, metadata: _metadata }, _currentEpisodeIndex_initializers, _currentEpisodeIndex_extraInitializers);
214
+ __esDecorate(null, null, _sleepTimer_decorators, { kind: "field", name: "sleepTimer", static: false, private: false, access: { has: obj => "sleepTimer" in obj, get: obj => obj.sleepTimer, set: (obj, value) => { obj.sleepTimer = value; } }, metadata: _metadata }, _sleepTimer_initializers, _sleepTimer_extraInitializers);
215
+ __esDecorate(null, null, _progressElement_decorators, { kind: "field", name: "progressElement", static: false, private: false, access: { has: obj => "progressElement" in obj, get: obj => obj.progressElement, set: (obj, value) => { obj.progressElement = value; } }, metadata: _metadata }, _progressElement_initializers, _progressElement_extraInitializers);
216
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
217
+ _classThis = _classDescriptor.value;
218
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
219
+ __runInitializers(_classThis, _classExtraInitializers);
220
+ }
221
+ componentStyles() {
222
+ return snice.css /*css*/ `${playerStyles}`;
223
+ }
224
+ init() {
225
+ this.audioElement = new Audio();
226
+ this.audioElement.volume = this.volume;
227
+ this.audioElement.muted = this.muted;
228
+ this.audioElement.playbackRate = this.playbackRate;
229
+ this.audioElement.addEventListener('loadedmetadata', () => {
230
+ this.duration = this.audioElement.duration;
231
+ if (this.state === 'loading') {
232
+ this.state = 'paused';
233
+ }
234
+ });
235
+ this.audioElement.addEventListener('play', () => {
236
+ this.state = 'playing';
237
+ this.emitPlay();
238
+ });
239
+ this.audioElement.addEventListener('pause', () => {
240
+ if (!this.audioElement.ended) {
241
+ this.state = 'paused';
242
+ this.savePosition();
243
+ }
244
+ this.emitPause();
245
+ });
246
+ this.audioElement.addEventListener('ended', () => {
247
+ this.state = 'stopped';
248
+ this.clearSavedPosition();
249
+ this.emitEnded();
250
+ });
251
+ this.audioElement.addEventListener('timeupdate', () => {
252
+ this.currentTime = this.audioElement.currentTime;
253
+ this.emitTimeUpdate();
254
+ });
255
+ this.audioElement.addEventListener('error', () => {
256
+ this.state = 'error';
257
+ });
258
+ // Load src if provided directly
259
+ if (this.src) {
260
+ this.loadSrc(this.src);
261
+ }
262
+ // Fetch RSS if provided
263
+ if (this.fromRss) {
264
+ this.fetchRSS(this.fromRss);
265
+ }
266
+ }
267
+ cleanup() {
268
+ this.savePosition();
269
+ this.clearSleepTimer();
270
+ if (this.audioElement) {
271
+ this.audioElement.pause();
272
+ this.audioElement.src = '';
273
+ this.audioElement = null;
274
+ }
275
+ }
276
+ handleSrcChange(_oldVal, newVal) {
277
+ if (newVal) {
278
+ this.loadSrc(newVal);
279
+ }
280
+ }
281
+ handleRssChange(_oldVal, newVal) {
282
+ if (newVal) {
283
+ this.fetchRSS(newVal);
284
+ }
285
+ }
286
+ handleVolumeChange(_oldVal, newVal) {
287
+ if (this.audioElement && newVal >= 0 && newVal <= 1) {
288
+ this.audioElement.volume = newVal;
289
+ }
290
+ }
291
+ handleMutedChange(_oldVal, newVal) {
292
+ if (this.audioElement) {
293
+ this.audioElement.muted = newVal;
294
+ }
295
+ }
296
+ handlePlaybackRateChange(_oldVal, newVal) {
297
+ if (this.audioElement && newVal >= 0.5 && newVal <= 2) {
298
+ this.audioElement.playbackRate = newVal;
299
+ this.emitRateChange();
300
+ }
301
+ }
302
+ renderPlayer() {
303
+ const currentEpisode = this.getCurrentEpisode();
304
+ const displayTitle = currentEpisode?.title || this.title || 'No episode loaded';
305
+ const displayShow = currentEpisode ? this.show : this.show;
306
+ const displayArtwork = currentEpisode?.artwork || this.artwork;
307
+ const displayDescription = currentEpisode?.description || this.description;
308
+ const chapters = currentEpisode?.chapters || [];
309
+ const progress = this.duration > 0 ? (this.currentTime / this.duration) * 100 : 0;
310
+ const isPlaying = this.state === 'playing';
311
+ const hasSource = !!this.src || this.currentEpisodeIndex >= 0;
312
+ const rateIsNotOne = this.playbackRate !== 1;
313
+ const hasSleepTimer = this.sleepTimerRemaining > 0;
314
+ const hasChapters = chapters.length > 0;
315
+ const hasEpisodes = this.episodes.length > 0;
316
+ const showVolSlider = this.showVolumeSlider;
317
+ const isMutedOrZero = this.muted || this.volume === 0;
318
+ const isHighVolume = !this.muted && this.volume > 0.5;
319
+ return snice.html /*html*/ `
320
+ <div class="podcast-container">
321
+ <div class="podcast-info">
322
+ <div class="podcast-artwork">
323
+ <if ${displayArtwork}>
324
+ <img src="${displayArtwork}" alt="${displayTitle}" />
325
+ </if>
326
+ <if ${!displayArtwork}>
327
+ <div class="podcast-artwork-placeholder">
328
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
329
+ <path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/>
330
+ <path d="M19 10v2a7 7 0 0 1-14 0v-2"/>
331
+ <line x1="12" y1="19" x2="12" y2="23"/>
332
+ <line x1="8" y1="23" x2="16" y2="23"/>
333
+ </svg>
334
+ </div>
335
+ </if>
336
+ </div>
337
+
338
+ <div class="podcast-meta">
339
+ <if ${displayShow}>
340
+ <div class="podcast-show">${displayShow}</div>
341
+ </if>
342
+ <div class="podcast-title">${displayTitle}</div>
343
+ <if ${displayDescription}>
344
+ <div class="podcast-description">${displayDescription}</div>
345
+ </if>
346
+ </div>
347
+ </div>
348
+
349
+ <div class="podcast-controls">
350
+ <div class="podcast-control-buttons">
351
+ <button
352
+ class="podcast-btn podcast-btn-speed ${rateIsNotOne ? 'active' : ''}"
353
+ @click=${() => this.cyclePlaybackRate()}
354
+ title="Playback speed"
355
+ >${this.playbackRate}x</button>
356
+
357
+ <button
358
+ class="podcast-btn"
359
+ @click=${() => this.doSkipBack()}
360
+ title="Skip back ${this.skipBack}s"
361
+ ?disabled=${!hasSource}
362
+ >
363
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
364
+ <path d="M1 4v6h6"/>
365
+ <path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/>
366
+ </svg>
367
+ <span class="podcast-btn-skip-label">${this.skipBack}</span>
368
+ </button>
369
+
370
+ <button
371
+ class="podcast-btn podcast-btn-play"
372
+ @click=${() => this.toggle()}
373
+ title="${isPlaying ? 'Pause' : 'Play'}"
374
+ ?disabled=${!hasSource}
375
+ >
376
+ <if ${isPlaying}>
377
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="currentColor">
378
+ <rect x="6" y="4" width="4" height="16"></rect>
379
+ <rect x="14" y="4" width="4" height="16"></rect>
380
+ </svg>
381
+ </if>
382
+ <if ${!isPlaying}>
383
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="currentColor">
384
+ <path d="M8 5v14l11-7z"/>
385
+ </svg>
386
+ </if>
387
+ </button>
388
+
389
+ <button
390
+ class="podcast-btn"
391
+ @click=${() => this.doSkipForward()}
392
+ title="Skip forward ${this.skipForward}s"
393
+ ?disabled=${!hasSource}
394
+ >
395
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
396
+ <path d="M23 4v6h-6"/>
397
+ <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>
398
+ </svg>
399
+ <span class="podcast-btn-skip-label">${this.skipForward}</span>
400
+ </button>
401
+
402
+ <button
403
+ class="podcast-btn podcast-btn-sleep ${hasSleepTimer ? 'active' : ''}"
404
+ @click=${() => this.cycleSleepTimer()}
405
+ title="Sleep timer"
406
+ >
407
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
408
+ <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
409
+ </svg>
410
+ </button>
411
+ </div>
412
+
413
+ <div class="podcast-progress-container">
414
+ <span class="podcast-time podcast-time-current">${this.formatTime(this.currentTime)}</span>
415
+ <div class="podcast-progress" @click=${(e) => this.handleSeek(e)}>
416
+ <div class="podcast-progress-bar" style="width: ${progress}%"></div>
417
+ </div>
418
+ <span class="podcast-time podcast-time-remaining">-${this.formatTime(this.duration - this.currentTime)}</span>
419
+ </div>
420
+ </div>
421
+
422
+ <div class="podcast-bottom-bar">
423
+ <div class="podcast-volume">
424
+ <button
425
+ class="podcast-btn"
426
+ @click=${() => this.toggleVolumeSlider()}
427
+ title="Volume"
428
+ >
429
+ <if ${isMutedOrZero}>
430
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
431
+ <path d="M11 5L6 9H2v6h4l5 4V5z"/>
432
+ <line x1="23" y1="9" x2="17" y2="15"/>
433
+ <line x1="17" y1="9" x2="23" y2="15"/>
434
+ </svg>
435
+ </if>
436
+ <if ${isHighVolume}>
437
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
438
+ <path d="M11 5L6 9H2v6h4l5 4V5z"/>
439
+ <path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"/>
440
+ </svg>
441
+ </if>
442
+ <if ${!isMutedOrZero && !isHighVolume}>
443
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
444
+ <path d="M11 5L6 9H2v6h4l5 4V5z"/>
445
+ <path d="M15.54 8.46a5 5 0 0 1 0 7.07"/>
446
+ </svg>
447
+ </if>
448
+ </button>
449
+ <if ${showVolSlider}>
450
+ <div class="podcast-volume-slider-container">
451
+ <input
452
+ class="podcast-volume-slider"
453
+ type="range"
454
+ min="0"
455
+ max="1"
456
+ step="0.01"
457
+ .value=${this.volume.toString()}
458
+ style="--volume-percent: ${this.volume * 100}%"
459
+ @input=${(e) => this.handleVolumeInput(e)}
460
+ />
461
+ </div>
462
+ </if>
463
+ </div>
464
+
465
+ <if ${hasSleepTimer}>
466
+ <div class="podcast-sleep">
467
+ <span class="podcast-sleep-label">Sleep in</span>
468
+ <span class="podcast-sleep-time">${this.formatTime(this.sleepTimerRemaining)}</span>
469
+ </div>
470
+ </if>
471
+ </div>
472
+
473
+ <if ${hasChapters}>
474
+ <div class="podcast-chapters">
475
+ <div class="podcast-chapters-header">Chapters</div>
476
+ ${chapters.map((chapter, i) => {
477
+ const isActive = this.isActiveChapter(chapter, chapters, i);
478
+ return snice.html /*html*/ `
479
+ <div
480
+ class="podcast-chapter-item ${isActive ? 'active' : ''}"
481
+ @click=${() => this.seekTo(chapter.startTime)}
482
+ >
483
+ <span class="podcast-chapter-time">${this.formatTime(chapter.startTime)}</span>
484
+ <span class="podcast-chapter-title">${chapter.title}</span>
485
+ </div>
486
+ `;
487
+ })}
488
+ </div>
489
+ </if>
490
+
491
+ <if ${hasEpisodes}>
492
+ <div class="podcast-episodes">
493
+ <div class="podcast-episodes-header">Episodes</div>
494
+ <div class="podcast-episode-list">
495
+ ${this.episodes.map((episode, index) => {
496
+ const isActive = index === this.currentEpisodeIndex;
497
+ const isEpPlaying = isActive && isPlaying;
498
+ return snice.html /*html*/ `
499
+ <div
500
+ class="podcast-episode-item ${isActive ? 'active' : ''}"
501
+ @click=${() => this.loadEpisode(index)}
502
+ >
503
+ <if ${episode.artwork}>
504
+ <img class="podcast-episode-artwork" src="${episode.artwork}" alt="${episode.title}" />
505
+ </if>
506
+ <div class="podcast-episode-info">
507
+ <div class="podcast-episode-title">${episode.title}</div>
508
+ <if ${episode.pubDate}>
509
+ <div class="podcast-episode-date">${episode.pubDate}</div>
510
+ </if>
511
+ </div>
512
+ <if ${isEpPlaying}>
513
+ <div class="podcast-episode-playing-icon">
514
+ <span></span><span></span><span></span>
515
+ </div>
516
+ </if>
517
+ <if ${!isEpPlaying && episode.duration}>
518
+ <div class="podcast-episode-duration">${this.formatTime(episode.duration || 0)}</div>
519
+ </if>
520
+ </div>
521
+ `;
522
+ })}
523
+ </div>
524
+ </div>
525
+ </if>
526
+ </div>
527
+ `;
528
+ }
529
+ // --- Public Methods ---
530
+ async play() {
531
+ if (!this.audioElement || !this.audioElement.src)
532
+ return;
533
+ try {
534
+ await this.audioElement.play();
535
+ }
536
+ catch {
537
+ this.state = 'error';
538
+ }
539
+ }
540
+ pause() {
541
+ if (!this.audioElement)
542
+ return;
543
+ this.audioElement.pause();
544
+ }
545
+ toggle() {
546
+ if (this.state === 'playing') {
547
+ this.pause();
548
+ }
549
+ else {
550
+ this.play();
551
+ }
552
+ }
553
+ doSkipForward() {
554
+ if (!this.audioElement)
555
+ return;
556
+ this.seekTo(Math.min(this.currentTime + this.skipForward, this.duration));
557
+ }
558
+ doSkipBack() {
559
+ if (!this.audioElement)
560
+ return;
561
+ this.seekTo(Math.max(this.currentTime - this.skipBack, 0));
562
+ }
563
+ seekTo(time) {
564
+ if (!this.audioElement)
565
+ return;
566
+ this.audioElement.currentTime = time;
567
+ this.currentTime = time;
568
+ }
569
+ setPlaybackRate(rate) {
570
+ if (rate < 0.5 || rate > 2)
571
+ return;
572
+ this.playbackRate = rate;
573
+ }
574
+ loadEpisode(index) {
575
+ if (index < 0 || index >= this.episodes.length)
576
+ return;
577
+ // Save position of current episode before switching
578
+ this.savePosition();
579
+ const episode = this.episodes[index];
580
+ this.currentEpisodeIndex = index;
581
+ this.title = episode.title;
582
+ if (episode.artwork)
583
+ this.artwork = episode.artwork;
584
+ if (episode.description)
585
+ this.description = episode.description;
586
+ this.loadSrc(episode.src);
587
+ this.emitEpisodeChange(episode, index);
588
+ // Restore saved position for this episode
589
+ const saved = this.getSavedPosition(episode.src);
590
+ if (saved > 0) {
591
+ // Wait for metadata to load before seeking
592
+ const onLoaded = () => {
593
+ this.seekTo(saved);
594
+ this.audioElement?.removeEventListener('loadedmetadata', onLoaded);
595
+ };
596
+ this.audioElement?.addEventListener('loadedmetadata', onLoaded);
597
+ }
598
+ }
599
+ // --- Private Methods ---
600
+ loadSrc(src) {
601
+ if (!this.audioElement)
602
+ return;
603
+ this.state = 'loading';
604
+ this.audioElement.src = src;
605
+ this.audioElement.load();
606
+ this.currentTime = 0;
607
+ this.duration = 0;
608
+ }
609
+ async fetchRSS(url) {
610
+ try {
611
+ const response = await fetch(url);
612
+ const text = await response.text();
613
+ const feed = this.parseRSS(text);
614
+ if (feed.title && !this.show)
615
+ this.show = feed.title;
616
+ if (feed.artwork && !this.artwork)
617
+ this.artwork = feed.artwork;
618
+ if (feed.description && !this.description)
619
+ this.description = feed.description;
620
+ this.episodes = feed.episodes;
621
+ this.emitFeedLoaded(feed);
622
+ }
623
+ catch {
624
+ this.state = 'error';
625
+ }
626
+ }
627
+ parseRSS(xml) {
628
+ const parser = new DOMParser();
629
+ const doc = parser.parseFromString(xml, 'application/xml');
630
+ const channel = doc.querySelector('channel');
631
+ const title = channel?.querySelector('title')?.textContent || '';
632
+ const description = channel?.querySelector('description')?.textContent || '';
633
+ // Try itunes:image first, then regular image
634
+ const itunesImage = channel?.querySelector('image[href]')?.getAttribute('href')
635
+ || channel?.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')?.[0]?.getAttribute('href');
636
+ const regularImage = channel?.querySelector('image > url')?.textContent;
637
+ const artwork = itunesImage || regularImage || '';
638
+ const items = channel?.querySelectorAll('item') || [];
639
+ const episodes = [];
640
+ items.forEach(item => {
641
+ const epTitle = item.querySelector('title')?.textContent || '';
642
+ const enclosure = item.querySelector('enclosure');
643
+ const src = enclosure?.getAttribute('url') || '';
644
+ if (!src)
645
+ return;
646
+ const epDescription = item.querySelector('description')?.textContent || '';
647
+ const pubDate = item.querySelector('pubDate')?.textContent || '';
648
+ // Parse itunes:duration
649
+ const itunesDuration = item.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'duration')?.[0]?.textContent;
650
+ const duration = itunesDuration ? this.parseDuration(itunesDuration) : undefined;
651
+ // Episode artwork
652
+ const epImage = item.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')?.[0]?.getAttribute('href') || '';
653
+ episodes.push({
654
+ title: epTitle,
655
+ src,
656
+ artwork: epImage || artwork,
657
+ description: epDescription,
658
+ pubDate: pubDate ? this.formatDate(pubDate) : undefined,
659
+ duration,
660
+ });
661
+ });
662
+ return { title, artwork, description, episodes };
663
+ }
664
+ parseDuration(duration) {
665
+ // Handle HH:MM:SS, MM:SS, or plain seconds
666
+ const parts = duration.split(':').map(Number);
667
+ if (parts.length === 3)
668
+ return parts[0] * 3600 + parts[1] * 60 + parts[2];
669
+ if (parts.length === 2)
670
+ return parts[0] * 60 + parts[1];
671
+ return parts[0] || 0;
672
+ }
673
+ formatDate(dateStr) {
674
+ try {
675
+ const date = new Date(dateStr);
676
+ return date.toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' });
677
+ }
678
+ catch {
679
+ return dateStr;
680
+ }
681
+ }
682
+ cyclePlaybackRate() {
683
+ const idx = PLAYBACK_RATES.indexOf(this.playbackRate);
684
+ const nextIdx = (idx + 1) % PLAYBACK_RATES.length;
685
+ this.setPlaybackRate(PLAYBACK_RATES[nextIdx]);
686
+ }
687
+ cycleSleepTimer() {
688
+ const currentMinutes = Math.ceil(this.sleepTimerRemaining / 60);
689
+ const idx = SLEEP_OPTIONS.findIndex(opt => opt >= currentMinutes);
690
+ const nextIdx = (idx + 1) % SLEEP_OPTIONS.length;
691
+ const minutes = SLEEP_OPTIONS[nextIdx];
692
+ this.clearSleepTimer();
693
+ if (minutes > 0) {
694
+ this.sleepTimerRemaining = minutes * 60;
695
+ this.sleepTimerInterval = window.setInterval(() => {
696
+ this.sleepTimerRemaining--;
697
+ if (this.sleepTimerRemaining <= 0) {
698
+ this.pause();
699
+ this.clearSleepTimer();
700
+ }
701
+ }, 1000);
702
+ }
703
+ }
704
+ clearSleepTimer() {
705
+ if (this.sleepTimerInterval !== null) {
706
+ clearInterval(this.sleepTimerInterval);
707
+ this.sleepTimerInterval = null;
708
+ }
709
+ this.sleepTimerRemaining = 0;
710
+ }
711
+ handleSeek(e) {
712
+ if (!this.progressElement || this.duration === 0)
713
+ return;
714
+ const rect = this.progressElement.getBoundingClientRect();
715
+ const percent = (e.clientX - rect.left) / rect.width;
716
+ this.seekTo(percent * this.duration);
717
+ }
718
+ handleVolumeInput(e) {
719
+ const input = e.target;
720
+ const vol = parseFloat(input.value);
721
+ input.style.setProperty('--volume-percent', `${vol * 100}%`);
722
+ this.volume = vol;
723
+ if (vol > 0 && this.muted)
724
+ this.muted = false;
725
+ }
726
+ toggleVolumeSlider() {
727
+ this.showVolumeSlider = !this.showVolumeSlider;
728
+ }
729
+ getCurrentEpisode() {
730
+ if (this.currentEpisodeIndex >= 0 && this.currentEpisodeIndex < this.episodes.length) {
731
+ return this.episodes[this.currentEpisodeIndex];
732
+ }
733
+ return null;
734
+ }
735
+ isActiveChapter(chapter, chapters, index) {
736
+ const nextChapter = chapters[index + 1];
737
+ const endTime = chapter.endTime || (nextChapter ? nextChapter.startTime : this.duration);
738
+ return this.currentTime >= chapter.startTime && this.currentTime < endTime;
739
+ }
740
+ formatTime(seconds) {
741
+ if (isNaN(seconds) || seconds === Infinity || seconds < 0)
742
+ return '0:00';
743
+ const h = Math.floor(seconds / 3600);
744
+ const m = Math.floor((seconds % 3600) / 60);
745
+ const s = Math.floor(seconds % 60);
746
+ if (h > 0) {
747
+ return `${h}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;
748
+ }
749
+ return `${m}:${s.toString().padStart(2, '0')}`;
750
+ }
751
+ // --- localStorage position memory ---
752
+ getStorageKey(src) {
753
+ return STORAGE_KEY_PREFIX + (src || this.audioElement?.src || '');
754
+ }
755
+ savePosition() {
756
+ if (!this.audioElement?.src || this.currentTime < 5)
757
+ return;
758
+ try {
759
+ localStorage.setItem(this.getStorageKey(), String(this.currentTime));
760
+ }
761
+ catch { /* storage full or unavailable */ }
762
+ }
763
+ getSavedPosition(src) {
764
+ try {
765
+ const saved = localStorage.getItem(this.getStorageKey(src));
766
+ return saved ? parseFloat(saved) : 0;
767
+ }
768
+ catch {
769
+ return 0;
770
+ }
771
+ }
772
+ clearSavedPosition() {
773
+ try {
774
+ localStorage.removeItem(this.getStorageKey());
775
+ }
776
+ catch { /* ignore */ }
777
+ }
778
+ // --- Events ---
779
+ emitPlay() {
780
+ return { player: this, episode: this.getCurrentEpisode() };
781
+ }
782
+ emitPause() {
783
+ return { player: this, episode: this.getCurrentEpisode() };
784
+ }
785
+ emitEnded() {
786
+ return { player: this, episode: this.getCurrentEpisode() };
787
+ }
788
+ emitTimeUpdate() {
789
+ return { player: this, currentTime: this.currentTime, duration: this.duration };
790
+ }
791
+ emitRateChange() {
792
+ return { player: this, rate: this.playbackRate };
793
+ }
794
+ emitEpisodeChange(episode, index) {
795
+ return { player: this, episode, index };
796
+ }
797
+ emitFeedLoaded(feed) {
798
+ return { player: this, feed };
799
+ }
800
+ constructor() {
801
+ super(...arguments);
802
+ this.src = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _src_initializers, ''));
803
+ this.fromRss = (__runInitializers(this, _src_extraInitializers), __runInitializers(this, _fromRss_initializers, ''));
804
+ this.title = (__runInitializers(this, _fromRss_extraInitializers), __runInitializers(this, _title_initializers, ''));
805
+ this.show = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _show_initializers, ''));
806
+ this.artwork = (__runInitializers(this, _show_extraInitializers), __runInitializers(this, _artwork_initializers, ''));
807
+ this.description = (__runInitializers(this, _artwork_extraInitializers), __runInitializers(this, _description_initializers, ''));
808
+ this.playbackRate = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _playbackRate_initializers, 1));
809
+ this.skipForward = (__runInitializers(this, _playbackRate_extraInitializers), __runInitializers(this, _skipForward_initializers, 30));
810
+ this.skipBack = (__runInitializers(this, _skipForward_extraInitializers), __runInitializers(this, _skipBack_initializers, 15));
811
+ this.currentTime = (__runInitializers(this, _skipBack_extraInitializers), __runInitializers(this, _currentTime_initializers, 0));
812
+ this.duration = (__runInitializers(this, _currentTime_extraInitializers), __runInitializers(this, _duration_initializers, 0));
813
+ this.volume = (__runInitializers(this, _duration_extraInitializers), __runInitializers(this, _volume_initializers, 1));
814
+ this.muted = (__runInitializers(this, _volume_extraInitializers), __runInitializers(this, _muted_initializers, false));
815
+ this.episodes = (__runInitializers(this, _muted_extraInitializers), __runInitializers(this, _episodes_initializers, []));
816
+ this.currentEpisodeIndex = (__runInitializers(this, _episodes_extraInitializers), __runInitializers(this, _currentEpisodeIndex_initializers, -1));
817
+ this.sleepTimer = (__runInitializers(this, _currentEpisodeIndex_extraInitializers), __runInitializers(this, _sleepTimer_initializers, 0));
818
+ this.state = (__runInitializers(this, _sleepTimer_extraInitializers), 'stopped');
819
+ this.audioElement = null;
820
+ this.sleepTimerInterval = null;
821
+ this.sleepTimerRemaining = 0;
822
+ this.showVolumeSlider = false;
823
+ this.progressElement = __runInitializers(this, _progressElement_initializers, void 0);
824
+ __runInitializers(this, _progressElement_extraInitializers);
825
+ }
826
+ });
827
+ return _classThis;
828
+ })();
829
+
830
+ exports.SnicePodcastPlayer = SnicePodcastPlayer;
831
+
832
+ return exports;
833
+
834
+ })({}, Snice);
835
+ //# sourceMappingURL=snice-podcast-player.js.map