@sparkle-learning/core 0.0.33 → 0.0.36

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 (631) hide show
  1. package/dist/cjs/{auth.service-f878f6ab.js → PrivateRoute-074c584e.js} +34 -3
  2. package/dist/cjs/{active-router-eedb3bfe.js → active-router-f9e18bd8.js} +1 -1
  3. package/dist/cjs/{animation-6132e37f.js → animation-ee586546.js} +83 -78
  4. package/dist/cjs/{app-globals-9869bf67.js → app-globals-33c9f31b.js} +1 -1
  5. package/dist/cjs/{auth.store-ff3fda09.js → auth.store-1e630a7d.js} +48 -725
  6. package/dist/cjs/compass-svg.cjs.entry.js +1 -1
  7. package/dist/cjs/context-consumer.cjs.entry.js +1 -1
  8. package/dist/cjs/course-select.cjs.entry.js +1 -1
  9. package/dist/cjs/{cubic-bezier-293f4663.js → cubic-bezier-53d26d05.js} +10 -11
  10. package/dist/cjs/{facilitator.service-faac5c0c.js → facilitator.service-9e990274.js} +8 -7
  11. package/dist/cjs/{feed.service-66405969.js → feed.service-b4f09441.js} +8 -7
  12. package/dist/cjs/{focus-visible-ad3828a7.js → focus-visible-b0b07ba6.js} +19 -6
  13. package/dist/cjs/{framework-delegate-2470a246.js → framework-delegate-59a98abd.js} +11 -13
  14. package/dist/cjs/{gesture-controller-07c31f70.js → gesture-controller-0eb5579e.js} +1 -1
  15. package/dist/cjs/{haptic-91e86eb7.js → haptic-780f33c4.js} +3 -2
  16. package/dist/cjs/{hardware-back-button-f7b5d99e.js → hardware-back-button-92d97ff8.js} +8 -8
  17. package/dist/cjs/{sparkle-export-lessons_6.cjs.entry.js → header-mobile-collapse_61.cjs.entry.js} +11608 -2721
  18. package/dist/cjs/{helpers-7e28976c.js → helpers-c2496722.js} +81 -14
  19. package/dist/cjs/httpService-7211d93b.js +685 -0
  20. package/dist/cjs/{icons-80d477f6.js → icons-c61db785.js} +1 -1
  21. package/dist/cjs/{index-43642662.js → index-12082cba.js} +21 -18
  22. package/dist/cjs/{index-459a5fa9.js → index-15ea05f5.js} +19 -28
  23. package/dist/cjs/{index-bae2a754.js → index-51e8292e.js} +18 -11
  24. package/dist/cjs/{index-b12edb26.js → index-787d4498.js} +17 -25
  25. package/dist/cjs/{tap-click-1caf1780.js → index-8b5629a6.js} +30 -20
  26. package/dist/cjs/{index-8540d72e.js → index-975586fd.js} +7 -1
  27. package/dist/cjs/index-9c7b27e4.js +140 -0
  28. package/dist/cjs/{index-185f9c5a.js → index-af080b50.js} +9 -8
  29. package/dist/cjs/index-e56e09b8.js +38 -0
  30. package/dist/cjs/index.cjs.js +12 -12
  31. package/dist/cjs/{index.es-ef3efdfb.js → index.es-38cbcdbe.js} +2 -7
  32. package/dist/cjs/{input-shims-6c442c9f.js → input-shims-eff63b88.js} +21 -24
  33. package/dist/cjs/ion-accordion-group.cjs.entry.js +17 -9
  34. package/dist/cjs/ion-accordion.cjs.entry.js +19 -23
  35. package/dist/cjs/ion-action-sheet_4.cjs.entry.js +216 -212
  36. package/dist/cjs/ion-app.cjs.entry.js +8 -8
  37. package/dist/cjs/ion-back-button.cjs.entry.js +11 -11
  38. package/dist/cjs/ion-backdrop.cjs.entry.js +4 -4
  39. package/dist/cjs/ion-badge.cjs.entry.js +3 -3
  40. package/dist/cjs/ion-breadcrumb.cjs.entry.js +13 -21
  41. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +12 -14
  42. package/dist/cjs/ion-buttons_3.cjs.entry.js +13 -13
  43. package/dist/cjs/ion-card-header.cjs.entry.js +4 -4
  44. package/dist/cjs/ion-card-subtitle.cjs.entry.js +4 -4
  45. package/dist/cjs/ion-card-title.cjs.entry.js +4 -4
  46. package/dist/cjs/ion-chip.cjs.entry.js +3 -3
  47. package/dist/cjs/ion-content_2.cjs.entry.js +59 -52
  48. package/dist/cjs/ion-datetime-button.cjs.entry.js +312 -0
  49. package/dist/cjs/ion-datetime.cjs.entry.js +752 -1245
  50. package/dist/cjs/ion-fab-button.cjs.entry.js +25 -9
  51. package/dist/cjs/ion-fab-list.cjs.entry.js +4 -4
  52. package/dist/cjs/ion-fab.cjs.entry.js +15 -13
  53. package/dist/cjs/ion-footer.cjs.entry.js +16 -14
  54. package/dist/cjs/ion-img.cjs.entry.js +4 -4
  55. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +5 -5
  56. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +13 -15
  57. package/dist/cjs/ion-item-divider.cjs.entry.js +4 -4
  58. package/dist/cjs/ion-item-group.cjs.entry.js +3 -3
  59. package/dist/cjs/ion-item-option.cjs.entry.js +8 -8
  60. package/dist/cjs/ion-item-options.cjs.entry.js +5 -5
  61. package/dist/cjs/ion-item-sliding.cjs.entry.js +41 -46
  62. package/dist/cjs/ion-loading.cjs.entry.js +23 -35
  63. package/dist/cjs/ion-menu-button.cjs.entry.js +13 -13
  64. package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -7
  65. package/dist/cjs/ion-menu.cjs.entry.js +47 -40
  66. package/dist/cjs/ion-modal.cjs.entry.js +935 -282
  67. package/dist/cjs/ion-nav-link.cjs.entry.js +2 -2
  68. package/dist/cjs/ion-nav.cjs.entry.js +45 -35
  69. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +151 -43
  70. package/dist/cjs/ion-picker-column.cjs.entry.js +23 -25
  71. package/dist/cjs/ion-picker.cjs.entry.js +15 -17
  72. package/dist/cjs/ion-progress-bar.cjs.entry.js +6 -8
  73. package/dist/cjs/ion-refresher-content.cjs.entry.js +6 -12
  74. package/dist/cjs/ion-refresher.cjs.entry.js +68 -50
  75. package/dist/cjs/ion-reorder-group.cjs.entry.js +15 -16
  76. package/dist/cjs/ion-reorder.cjs.entry.js +3 -3
  77. package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
  78. package/dist/cjs/ion-route.cjs.entry.js +1 -1
  79. package/dist/cjs/ion-router-link.cjs.entry.js +5 -5
  80. package/dist/cjs/ion-router-outlet.cjs.entry.js +22 -20
  81. package/dist/cjs/ion-router.cjs.entry.js +32 -31
  82. package/dist/cjs/ion-searchbar.cjs.entry.js +14 -16
  83. package/dist/cjs/ion-segment-button.cjs.entry.js +8 -8
  84. package/dist/cjs/ion-segment.cjs.entry.js +24 -26
  85. package/dist/cjs/ion-select_2.cjs.entry.js +59 -56
  86. package/dist/cjs/ion-skeleton-text.cjs.entry.js +4 -4
  87. package/dist/cjs/ion-slide.cjs.entry.js +3 -3
  88. package/dist/cjs/ion-slides.cjs.entry.js +23 -23
  89. package/dist/cjs/ion-split-pane.cjs.entry.js +10 -11
  90. package/dist/cjs/ion-tab-bar.cjs.entry.js +5 -5
  91. package/dist/cjs/ion-tab-button.cjs.entry.js +6 -6
  92. package/dist/cjs/ion-tab.cjs.entry.js +4 -4
  93. package/dist/cjs/ion-tabs.cjs.entry.js +4 -5
  94. package/dist/cjs/ion-textarea.cjs.entry.js +29 -28
  95. package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
  96. package/dist/cjs/ion-toast.cjs.entry.js +23 -43
  97. package/dist/cjs/ion-toggle.cjs.entry.js +36 -19
  98. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +29 -28
  99. package/dist/cjs/{ionic-global-878073d1.js → ionic-global-2cde9d3a.js} +27 -31
  100. package/dist/cjs/{ios.transition-c3bfb096.js → ios.transition-da235483.js} +71 -51
  101. package/dist/cjs/{keyboard-dfd76ac3.js → keyboard-91096619.js} +3 -3
  102. package/dist/cjs/loader.cjs.js +5 -5
  103. package/dist/cjs/{md.transition-7eb9a1a7.js → md.transition-be429e07.js} +9 -16
  104. package/dist/cjs/{menu-toggle-util-cb549c2c.js → menu-toggle-util-7a01448c.js} +2 -2
  105. package/dist/cjs/{overlays-0a748609.js → overlays-32df265a.js} +29 -29
  106. package/dist/cjs/parse-d0071120.js +1237 -0
  107. package/dist/cjs/{purify-d0ad2883.js → purify-fb9c107e.js} +1 -1
  108. package/dist/cjs/sparkle-animation-player.cjs.entry.js +1 -1
  109. package/dist/cjs/sparkle-character-intro.cjs.entry.js +1 -1
  110. package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
  111. package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
  112. package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
  113. package/dist/cjs/sparkle-core.cjs.js +5 -5
  114. package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
  115. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +8 -7
  116. package/dist/cjs/sparkle-feed-post.cjs.entry.js +104 -3
  117. package/dist/cjs/sparkle-feedback.cjs.entry.js +8 -8
  118. package/dist/cjs/sparkle-goal-form.cjs.entry.js +8 -7
  119. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +1 -1
  120. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
  121. package/dist/cjs/sparkle-intro.cjs.entry.js +2 -2
  122. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
  123. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
  124. package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
  125. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
  126. package/dist/cjs/sparkle-overlay.cjs.entry.js +1 -1
  127. package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
  128. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
  129. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
  130. package/dist/cjs/sparkle-quiz-v1.cjs.entry.js +105 -0
  131. package/dist/cjs/sparkle-quiz.cjs.entry.js +55 -41
  132. package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
  133. package/dist/cjs/sparkle-sidebar.cjs.entry.js +1 -1
  134. package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
  135. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
  136. package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
  137. package/dist/cjs/sparkle-youtube.cjs.entry.js +1 -1
  138. package/dist/cjs/{spinner-configs-6f6b7ef0.js → spinner-configs-0ac05f2d.js} +43 -43
  139. package/dist/cjs/{status-tap-8697433c.js → status-tap-033befa2.js} +7 -5
  140. package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
  141. package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
  142. package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
  143. package/dist/cjs/student.service-2e58f237.js +78 -0
  144. package/dist/cjs/{swipe-back-7e08b5e0.js → swipe-back-4a826f9b.js} +5 -5
  145. package/dist/cjs/{theme-4252ac15.js → theme-b0b295c1.js} +6 -5
  146. package/dist/collection/collection-manifest.json +4 -2
  147. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +16 -0
  148. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +197 -3
  149. package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -1
  150. package/dist/collection/components/sparkle-quiz/{sparkle-quiz.css → sparkle-quiz/sparkle-quiz.css} +0 -0
  151. package/dist/collection/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.js +326 -0
  152. package/dist/collection/components/sparkle-quiz/sparkle-quiz-v1.css +48 -0
  153. package/dist/collection/components/sparkle-quiz/{sparkle-quiz.js → sparkle-quiz-v1.js} +4 -4
  154. package/dist/esm/{auth.service-7ab0ac58.js → PrivateRoute-c5441f35.js} +33 -3
  155. package/dist/esm/{active-router-909088d6.js → active-router-fc9e4e06.js} +1 -1
  156. package/dist/esm/{animation-7b083379.js → animation-12377cb3.js} +83 -78
  157. package/dist/esm/{app-globals-5c736ae5.js → app-globals-3f0347b0.js} +1 -1
  158. package/dist/esm/{auth.store-98fad96d.js → auth.store-dba2c2da.js} +45 -725
  159. package/dist/esm/compass-svg.entry.js +1 -1
  160. package/dist/esm/context-consumer.entry.js +1 -1
  161. package/dist/esm/course-select.entry.js +1 -1
  162. package/dist/esm/{cubic-bezier-a7ad9c8e.js → cubic-bezier-4c0db14f.js} +10 -11
  163. package/dist/esm/{facilitator.service-1524bf89.js → facilitator.service-b0292f7f.js} +2 -1
  164. package/dist/esm/{feed.service-4900fc62.js → feed.service-8fbe4ce3.js} +3 -2
  165. package/dist/esm/{focus-visible-40cda868.js → focus-visible-4e9a0764.js} +19 -6
  166. package/dist/esm/{framework-delegate-518bd233.js → framework-delegate-3e634a5c.js} +11 -13
  167. package/dist/esm/{gesture-controller-686622ba.js → gesture-controller-7be18351.js} +1 -1
  168. package/dist/esm/{haptic-99c9e346.js → haptic-522f76f2.js} +3 -2
  169. package/dist/esm/{hardware-back-button-b6ccf74a.js → hardware-back-button-fa04d6e9.js} +8 -8
  170. package/dist/esm/{sparkle-export-lessons_6.entry.js → header-mobile-collapse_61.entry.js} +11502 -2670
  171. package/dist/esm/{helpers-9d0930de.js → helpers-bf0e23d6.js} +81 -15
  172. package/dist/esm/httpService-7b75b095.js +683 -0
  173. package/dist/esm/{icons-05b6ce86.js → icons-9b62a1ec.js} +2 -2
  174. package/dist/esm/{index-a12c14bd.js → index-21661af2.js} +22 -19
  175. package/dist/esm/{index-8de9446b.js → index-2b84cad2.js} +17 -25
  176. package/dist/esm/{index-ea26196a.js → index-4044fde9.js} +5 -2
  177. package/dist/esm/{tap-click-cca25060.js → index-45fec1e7.js} +30 -20
  178. package/dist/esm/index-5e8971ae.js +128 -0
  179. package/dist/esm/{index-435af8e6.js → index-be6112f8.js} +9 -8
  180. package/dist/esm/{index-5568e3fa.js → index-c04b9ed5.js} +18 -11
  181. package/dist/esm/{index-fa5e93c5.js → index-cded2d87.js} +19 -28
  182. package/dist/esm/index-dad75b83.js +34 -0
  183. package/dist/esm/{index.es-89cff481.js → index.es-e0c0f891.js} +2 -7
  184. package/dist/esm/index.js +8 -8
  185. package/dist/esm/{input-shims-7f04e044.js → input-shims-671d8d9f.js} +21 -24
  186. package/dist/esm/ion-accordion-group.entry.js +17 -9
  187. package/dist/esm/ion-accordion.entry.js +19 -23
  188. package/dist/esm/ion-action-sheet_4.entry.js +216 -212
  189. package/dist/esm/ion-app.entry.js +8 -8
  190. package/dist/esm/ion-back-button.entry.js +11 -11
  191. package/dist/esm/ion-backdrop.entry.js +4 -4
  192. package/dist/esm/ion-badge.entry.js +3 -3
  193. package/dist/esm/ion-breadcrumb.entry.js +13 -21
  194. package/dist/esm/ion-breadcrumbs.entry.js +12 -14
  195. package/dist/esm/ion-buttons_3.entry.js +13 -13
  196. package/dist/esm/ion-card-header.entry.js +4 -4
  197. package/dist/esm/ion-card-subtitle.entry.js +4 -4
  198. package/dist/esm/ion-card-title.entry.js +4 -4
  199. package/dist/esm/ion-chip.entry.js +3 -3
  200. package/dist/esm/ion-content_2.entry.js +59 -52
  201. package/dist/esm/ion-datetime-button.entry.js +308 -0
  202. package/dist/esm/ion-datetime.entry.js +723 -1216
  203. package/dist/esm/ion-fab-button.entry.js +25 -9
  204. package/dist/esm/ion-fab-list.entry.js +4 -4
  205. package/dist/esm/ion-fab.entry.js +15 -13
  206. package/dist/esm/ion-footer.entry.js +16 -14
  207. package/dist/esm/ion-img.entry.js +4 -4
  208. package/dist/esm/ion-infinite-scroll-content.entry.js +5 -5
  209. package/dist/esm/ion-infinite-scroll.entry.js +13 -15
  210. package/dist/esm/ion-item-divider.entry.js +4 -4
  211. package/dist/esm/ion-item-group.entry.js +3 -3
  212. package/dist/esm/ion-item-option.entry.js +8 -8
  213. package/dist/esm/ion-item-options.entry.js +5 -5
  214. package/dist/esm/ion-item-sliding.entry.js +41 -46
  215. package/dist/esm/ion-loading.entry.js +23 -35
  216. package/dist/esm/ion-menu-button.entry.js +13 -13
  217. package/dist/esm/ion-menu-toggle.entry.js +7 -7
  218. package/dist/esm/ion-menu.entry.js +47 -40
  219. package/dist/esm/ion-modal.entry.js +921 -268
  220. package/dist/esm/ion-nav-link.entry.js +2 -2
  221. package/dist/esm/ion-nav.entry.js +45 -35
  222. package/dist/esm/ion-picker-column-internal_2.entry.js +151 -43
  223. package/dist/esm/ion-picker-column.entry.js +23 -25
  224. package/dist/esm/ion-picker.entry.js +15 -17
  225. package/dist/esm/ion-progress-bar.entry.js +6 -8
  226. package/dist/esm/ion-refresher-content.entry.js +6 -12
  227. package/dist/esm/ion-refresher.entry.js +68 -50
  228. package/dist/esm/ion-reorder-group.entry.js +15 -16
  229. package/dist/esm/ion-reorder.entry.js +3 -3
  230. package/dist/esm/ion-route-redirect.entry.js +1 -1
  231. package/dist/esm/ion-route.entry.js +1 -1
  232. package/dist/esm/ion-router-link.entry.js +5 -5
  233. package/dist/esm/ion-router-outlet.entry.js +22 -20
  234. package/dist/esm/ion-router.entry.js +32 -31
  235. package/dist/esm/ion-searchbar.entry.js +14 -16
  236. package/dist/esm/ion-segment-button.entry.js +8 -8
  237. package/dist/esm/ion-segment.entry.js +24 -26
  238. package/dist/esm/ion-select_2.entry.js +59 -56
  239. package/dist/esm/ion-skeleton-text.entry.js +4 -4
  240. package/dist/esm/ion-slide.entry.js +3 -3
  241. package/dist/esm/ion-slides.entry.js +23 -23
  242. package/dist/esm/ion-split-pane.entry.js +10 -11
  243. package/dist/esm/ion-tab-bar.entry.js +5 -5
  244. package/dist/esm/ion-tab-button.entry.js +6 -6
  245. package/dist/esm/ion-tab.entry.js +4 -4
  246. package/dist/esm/ion-tabs.entry.js +4 -5
  247. package/dist/esm/ion-textarea.entry.js +29 -28
  248. package/dist/esm/ion-thumbnail.entry.js +2 -2
  249. package/dist/esm/ion-toast.entry.js +23 -43
  250. package/dist/esm/ion-toggle.entry.js +36 -19
  251. package/dist/esm/ion-virtual-scroll.entry.js +29 -28
  252. package/dist/esm/{ionic-global-0939c477.js → ionic-global-4903e23e.js} +27 -31
  253. package/dist/esm/{ios.transition-db4f4ca6.js → ios.transition-131d64fe.js} +71 -51
  254. package/dist/esm/{keyboard-2503e874.js → keyboard-7e8329b3.js} +3 -3
  255. package/dist/esm/loader.js +5 -5
  256. package/dist/esm/{md.transition-8294b503.js → md.transition-f6126011.js} +9 -16
  257. package/dist/esm/{menu-toggle-util-06adade3.js → menu-toggle-util-bace8ae6.js} +2 -2
  258. package/dist/esm/{overlays-5c777f10.js → overlays-3b4dca92.js} +30 -30
  259. package/dist/esm/parse-1ae3a9bb.js +1196 -0
  260. package/dist/esm/polyfills/css-shim.js +1 -1
  261. package/dist/esm/{purify-eb68cf1d.js → purify-85bfcc69.js} +1 -1
  262. package/dist/esm/sparkle-animation-player.entry.js +2 -2
  263. package/dist/esm/sparkle-character-intro.entry.js +1 -1
  264. package/dist/esm/sparkle-code.entry.js +2 -2
  265. package/dist/esm/sparkle-compass-post.entry.js +1 -1
  266. package/dist/esm/sparkle-compass.entry.js +1 -1
  267. package/dist/esm/sparkle-core.js +5 -5
  268. package/dist/esm/sparkle-emoji.entry.js +1 -1
  269. package/dist/esm/sparkle-facilitator-notes-form.entry.js +8 -7
  270. package/dist/esm/sparkle-feed-post.entry.js +104 -3
  271. package/dist/esm/sparkle-feedback.entry.js +8 -8
  272. package/dist/esm/sparkle-goal-form.entry.js +9 -8
  273. package/dist/esm/sparkle-gww-comment-list.entry.js +1 -1
  274. package/dist/esm/sparkle-gww-graph.entry.js +1 -1
  275. package/dist/esm/sparkle-intro.entry.js +2 -2
  276. package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
  277. package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
  278. package/dist/esm/sparkle-modal-image.entry.js +1 -1
  279. package/dist/esm/sparkle-notfound-page.entry.js +1 -1
  280. package/dist/esm/sparkle-overlay.entry.js +1 -1
  281. package/dist/esm/sparkle-poll.entry.js +1 -1
  282. package/dist/esm/sparkle-quiz-container.entry.js +1 -1
  283. package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
  284. package/dist/esm/sparkle-quiz-v1.entry.js +101 -0
  285. package/dist/esm/sparkle-quiz.entry.js +55 -41
  286. package/dist/esm/sparkle-select.entry.js +1 -1
  287. package/dist/esm/sparkle-sidebar.entry.js +1 -1
  288. package/dist/esm/sparkle-tab.entry.js +1 -1
  289. package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
  290. package/dist/esm/sparkle-tabs.entry.js +1 -1
  291. package/dist/esm/sparkle-youtube.entry.js +1 -1
  292. package/dist/esm/{spinner-configs-f609a655.js → spinner-configs-a37e628a.js} +43 -43
  293. package/dist/esm/{status-tap-e8c0c752.js → status-tap-dde52787.js} +7 -5
  294. package/dist/esm/stencil-async-content.entry.js +1 -1
  295. package/dist/esm/stencil-route-title.entry.js +2 -2
  296. package/dist/esm/stencil-router-prompt.entry.js +2 -2
  297. package/dist/esm/{student.service-c2f44f3a.js → student.service-0746418b.js} +19 -3
  298. package/dist/esm/{swipe-back-9a3b2cdd.js → swipe-back-7847a0c1.js} +5 -5
  299. package/dist/esm/{theme-c336c9d9.js → theme-7ef00c83.js} +6 -5
  300. package/dist/esm/{util-a831d09d.js → util-6ef753e9.js} +1 -1
  301. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +8 -1
  302. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +46 -22
  303. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +43 -19
  304. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +60 -0
  305. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +2 -1
  306. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +2 -2
  307. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +6 -6
  308. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +6 -6
  309. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +3 -3
  310. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +1 -6
  311. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +1 -6
  312. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +1 -5
  313. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +1 -5
  314. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +31 -3
  315. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +29 -1
  316. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +24 -1
  317. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +24 -1
  318. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +4 -0
  319. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +4 -0
  320. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +2 -2
  321. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +2 -2
  322. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +8 -8
  323. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +34 -17
  324. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +34 -17
  325. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +50 -1
  326. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +27 -0
  327. package/dist/sparkle-core/index.esm.js +1 -1
  328. package/dist/sparkle-core/p-00d10dc9.js +4 -0
  329. package/dist/sparkle-core/p-0147266a.js +1 -0
  330. package/dist/sparkle-core/{p-797c23ed.entry.js → p-04c7b276.entry.js} +1 -1
  331. package/dist/sparkle-core/p-05c032dd.js +4 -0
  332. package/dist/sparkle-core/{p-5f45d206.entry.js → p-06642405.entry.js} +1 -1
  333. package/dist/sparkle-core/p-0664370b.entry.js +1 -0
  334. package/dist/sparkle-core/{p-39e5a90f.entry.js → p-06c7d0f2.entry.js} +1 -1
  335. package/dist/sparkle-core/{p-703ca87c.js → p-076f0239.js} +0 -0
  336. package/dist/sparkle-core/p-077c732b.js +4 -0
  337. package/dist/sparkle-core/p-0ad5c123.entry.js +1 -0
  338. package/dist/sparkle-core/{p-beb401e3.entry.js → p-0afa3a4d.entry.js} +1 -1
  339. package/dist/sparkle-core/{p-52f1d1ca.entry.js → p-0c3f3ea6.entry.js} +1 -1
  340. package/dist/sparkle-core/{p-69e7783d.js → p-0e4de1d0.js} +0 -0
  341. package/dist/sparkle-core/{p-337f92b0.entry.js → p-0f1c5899.entry.js} +5 -5
  342. package/dist/sparkle-core/{p-5e4ec238.entry.js → p-0fa3fd63.entry.js} +1 -1
  343. package/dist/sparkle-core/p-11356b03.entry.js +1 -0
  344. package/dist/sparkle-core/p-12dd96d7.js +4 -0
  345. package/dist/sparkle-core/{p-21db4e8e.entry.js → p-162bff1a.entry.js} +1 -1
  346. package/dist/sparkle-core/p-1b1ba156.entry.js +1 -0
  347. package/dist/sparkle-core/p-1d4c7c11.js +1 -0
  348. package/dist/sparkle-core/{p-11234d0f.entry.js → p-1e125ca5.entry.js} +1 -1
  349. package/dist/sparkle-core/{p-5b40aae5.entry.js → p-1e4782af.entry.js} +1 -1
  350. package/dist/sparkle-core/{p-4550e10f.entry.js → p-1e4f65ee.entry.js} +1 -1
  351. package/dist/sparkle-core/{p-f6bafe1d.js → p-2033cd86.js} +2 -2
  352. package/dist/sparkle-core/{p-ed0e9d29.entry.js → p-214d1229.entry.js} +1 -1
  353. package/dist/sparkle-core/p-23aca7ca.js +4 -0
  354. package/dist/sparkle-core/{p-85429b12.entry.js → p-24cb9a33.entry.js} +1 -1
  355. package/dist/sparkle-core/{p-37c00e39.entry.js → p-27fbabc3.entry.js} +1 -1
  356. package/dist/sparkle-core/{p-7d61177b.entry.js → p-2ba70507.entry.js} +1 -1
  357. package/dist/sparkle-core/{p-c8ae9e47.entry.js → p-2c1ca854.entry.js} +1 -1
  358. package/dist/sparkle-core/{p-23a9f7d1.entry.js → p-2d9659e2.entry.js} +1 -1
  359. package/dist/sparkle-core/p-2f569553.js +1 -0
  360. package/dist/sparkle-core/p-2ff67662.js +4 -0
  361. package/dist/sparkle-core/p-30b810d1.entry.js +4 -0
  362. package/dist/sparkle-core/p-32f4e565.entry.js +1 -0
  363. package/dist/sparkle-core/{p-057f6a23.entry.js → p-352677e6.entry.js} +1 -1
  364. package/dist/sparkle-core/{p-b49ca0ea.entry.js → p-370609ba.entry.js} +1 -1
  365. package/dist/sparkle-core/p-377b04c2.entry.js +10 -0
  366. package/dist/sparkle-core/{p-aa9ebc39.entry.js → p-38b7cf68.entry.js} +1 -1
  367. package/dist/sparkle-core/{p-667accac.entry.js → p-3963e02b.entry.js} +1 -1
  368. package/dist/sparkle-core/p-39712c56.entry.js +4 -0
  369. package/dist/sparkle-core/p-3a965828.entry.js +1 -0
  370. package/dist/sparkle-core/p-3de0e00c.js +4 -0
  371. package/dist/sparkle-core/{p-04583c51.entry.js → p-4053ecdb.entry.js} +1 -1
  372. package/dist/sparkle-core/p-462bffba.js +1 -0
  373. package/dist/sparkle-core/p-48f72e63.js +4 -0
  374. package/dist/sparkle-core/p-4c6a7e52.js +1 -0
  375. package/dist/sparkle-core/{p-8c6b6038.js → p-4d4077ea.js} +0 -0
  376. package/dist/sparkle-core/{p-3a202a38.entry.js → p-5096739e.entry.js} +1 -1
  377. package/dist/sparkle-core/p-5322c920.entry.js +1 -0
  378. package/dist/sparkle-core/{p-c748f64e.entry.js → p-54dd894f.entry.js} +1 -1
  379. package/dist/sparkle-core/p-564e64fc.entry.js +4 -0
  380. package/dist/sparkle-core/{p-b3909012.entry.js → p-5893bbe5.entry.js} +1 -1
  381. package/dist/sparkle-core/p-58e4bbe5.entry.js +1 -0
  382. package/dist/sparkle-core/p-590266d6.entry.js +1 -0
  383. package/dist/sparkle-core/p-594a6982.entry.js +1 -0
  384. package/dist/sparkle-core/{p-aef8aa31.entry.js → p-5c435d5a.entry.js} +1 -1
  385. package/dist/sparkle-core/{p-a7832a51.js → p-5cad23f1.js} +1 -1
  386. package/dist/sparkle-core/p-5efc6566.js +1 -0
  387. package/dist/sparkle-core/p-600cf6a3.js +1 -0
  388. package/dist/sparkle-core/{p-a9ee3f6d.entry.js → p-601397df.entry.js} +1 -1
  389. package/dist/sparkle-core/p-604a7987.js +4 -0
  390. package/dist/sparkle-core/{p-11cf398a.entry.js → p-616941c6.entry.js} +1 -1
  391. package/dist/sparkle-core/{p-aa87c7f0.entry.js → p-6316d124.entry.js} +1 -1
  392. package/dist/sparkle-core/p-63f71ada.entry.js +1 -0
  393. package/dist/sparkle-core/p-641bfc92.entry.js +1 -0
  394. package/dist/sparkle-core/p-69487d90.entry.js +1 -0
  395. package/dist/sparkle-core/{p-5a98d42e.entry.js → p-6faa194c.entry.js} +2 -2
  396. package/dist/sparkle-core/p-6ffd2420.entry.js +1 -0
  397. package/dist/sparkle-core/p-73721c84.js +4 -0
  398. package/dist/sparkle-core/p-74864276.entry.js +1 -0
  399. package/dist/sparkle-core/p-7d8427eb.js +4 -0
  400. package/dist/sparkle-core/{p-5264da79.js → p-7e7ce516.js} +0 -0
  401. package/dist/sparkle-core/{p-43a7391b.entry.js → p-80d6b0e6.entry.js} +1 -1
  402. package/dist/sparkle-core/{p-c5b9bdd6.entry.js → p-81714d94.entry.js} +1 -1
  403. package/dist/sparkle-core/p-8492a765.entry.js +1 -0
  404. package/dist/sparkle-core/p-859563db.entry.js +1 -0
  405. package/dist/sparkle-core/{p-4dc3ef96.entry.js → p-865f36a8.entry.js} +1 -1
  406. package/dist/sparkle-core/{p-52d4715a.js → p-86ed13f0.js} +1 -1
  407. package/dist/sparkle-core/p-871106e0.js +4 -0
  408. package/dist/sparkle-core/p-894ff7e6.entry.js +1 -0
  409. package/dist/sparkle-core/{p-7493ee15.entry.js → p-8a41b502.entry.js} +1 -1
  410. package/dist/sparkle-core/p-8c74cbb6.entry.js +1 -0
  411. package/dist/sparkle-core/{p-d4c07aca.js → p-924b2917.js} +0 -0
  412. package/dist/sparkle-core/p-9289cdbc.entry.js +1 -0
  413. package/dist/sparkle-core/{p-4bd4dab2.js → p-935e7cfc.js} +1 -1
  414. package/dist/sparkle-core/{p-d7baf31e.entry.js → p-975b99ee.entry.js} +1 -1
  415. package/dist/sparkle-core/p-99ee9919.js +1 -0
  416. package/dist/sparkle-core/p-9abbd715.entry.js +1 -0
  417. package/dist/sparkle-core/{p-ff4d6858.js → p-9d894ed4.js} +2 -2
  418. package/dist/sparkle-core/{p-fbd7eeca.entry.js → p-9e309b3e.entry.js} +1 -1
  419. package/dist/sparkle-core/{p-996361f9.entry.js → p-9e7fee8f.entry.js} +1 -1
  420. package/dist/sparkle-core/p-9ebf0537.entry.js +1 -0
  421. package/dist/sparkle-core/p-a102341e.entry.js +1 -0
  422. package/dist/sparkle-core/p-a208ab2d.js +4 -0
  423. package/dist/sparkle-core/p-a2638250.entry.js +1 -0
  424. package/dist/sparkle-core/{p-016a7aaf.entry.js → p-a2ebcf0a.entry.js} +1 -1
  425. package/dist/sparkle-core/{p-6823e6c1.entry.js → p-a98d7ebe.entry.js} +1 -1
  426. package/dist/sparkle-core/p-add30d46.js +4 -0
  427. package/dist/sparkle-core/p-af3cc111.entry.js +1 -0
  428. package/dist/sparkle-core/{p-0ad99881.js → p-b0603d19.js} +1 -1
  429. package/dist/sparkle-core/p-b3f375fb.entry.js +1 -0
  430. package/dist/sparkle-core/p-b5f3e1bf.entry.js +1 -0
  431. package/dist/sparkle-core/{p-90466494.entry.js → p-b96f3c84.entry.js} +2 -2
  432. package/dist/sparkle-core/p-bd80ff43.js +4 -0
  433. package/dist/sparkle-core/p-be64105c.entry.js +1 -0
  434. package/dist/sparkle-core/{p-08923b40.entry.js → p-c0533c23.entry.js} +1 -1
  435. package/dist/sparkle-core/p-c2990b24.entry.js +1 -0
  436. package/dist/sparkle-core/{p-c3d3d5c4.entry.js → p-c3cadfc6.entry.js} +1 -1
  437. package/dist/sparkle-core/p-c60b29bd.entry.js +4 -0
  438. package/dist/sparkle-core/p-cabfbf22.entry.js +1 -0
  439. package/dist/sparkle-core/p-cc518c36.entry.js +1 -0
  440. package/dist/sparkle-core/{p-b21d0d9f.entry.js → p-ce4b22f7.entry.js} +2 -2
  441. package/dist/sparkle-core/p-cffd4817.entry.js +1 -0
  442. package/dist/sparkle-core/{p-c69b0a7a.entry.js → p-d0adf726.entry.js} +1 -1
  443. package/dist/sparkle-core/{p-03ec54a8.entry.js → p-d20e4fcf.entry.js} +1 -1
  444. package/dist/sparkle-core/p-d24e53ab.entry.js +1 -0
  445. package/dist/sparkle-core/p-d288e6c1.entry.js +1 -0
  446. package/dist/sparkle-core/{p-ee0d7f19.entry.js → p-d601810e.entry.js} +1 -1
  447. package/dist/sparkle-core/p-d68092b7.js +4 -0
  448. package/dist/sparkle-core/p-de4deb61.entry.js +1 -0
  449. package/dist/sparkle-core/{p-b07a2cf2.entry.js → p-e249aebf.entry.js} +1 -1
  450. package/dist/sparkle-core/p-e3e36ce9.entry.js +1 -0
  451. package/dist/sparkle-core/{p-1726da2f.entry.js → p-e421d638.entry.js} +1 -1
  452. package/dist/sparkle-core/p-e686d8b5.entry.js +4 -0
  453. package/dist/sparkle-core/{p-401feeb0.js → p-e8073714.js} +1 -1
  454. package/dist/sparkle-core/p-e863bf1d.entry.js +1 -0
  455. package/dist/sparkle-core/{p-3defe550.entry.js → p-e8988989.entry.js} +1 -1
  456. package/dist/sparkle-core/p-e9431eeb.js +7 -0
  457. package/dist/sparkle-core/p-ea962e1b.entry.js +1 -0
  458. package/dist/sparkle-core/p-eaa8bbee.js +4 -0
  459. package/dist/sparkle-core/p-eaf76d1d.entry.js +352 -0
  460. package/dist/sparkle-core/p-ebd4354b.entry.js +1 -0
  461. package/dist/sparkle-core/p-ee1e0eb4.js +2 -0
  462. package/dist/sparkle-core/{p-d00f550b.entry.js → p-ef4edc48.entry.js} +1 -1
  463. package/dist/sparkle-core/{p-a9ccb0df.js → p-f3cba72a.js} +0 -0
  464. package/dist/sparkle-core/p-fb0ca75e.entry.js +5 -0
  465. package/dist/sparkle-core/p-fb757951.entry.js +1 -0
  466. package/dist/sparkle-core/p-fbccd30c.js +1 -0
  467. package/dist/sparkle-core/p-fd8d0738.entry.js +4 -0
  468. package/dist/sparkle-core/{p-90389886.entry.js → p-fda95b6e.entry.js} +1 -1
  469. package/dist/sparkle-core/{p-350adbaa.entry.js → p-fe6dc976.entry.js} +1 -1
  470. package/dist/sparkle-core/{p-ecd39170.entry.js → p-ff0e0d4e.entry.js} +1 -1
  471. package/dist/sparkle-core/sparkle-core.css +1 -1
  472. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  473. package/dist/types/components/sparkle-feed-post/sparkle-feed-post.d.ts +16 -0
  474. package/dist/types/components/sparkle-quiz/sparkle-quiz/sparkle-quiz.d.ts +42 -0
  475. package/dist/types/components/sparkle-quiz/sparkle-quiz-v1.d.ts +41 -0
  476. package/dist/types/components/sparkle-quiz/sparkle-quiz.d.ts +36 -36
  477. package/dist/types/components.d.ts +96 -11
  478. package/package.json +3 -3
  479. package/dist/cjs/PrivateRoute-482697a6.js +0 -35
  480. package/dist/cjs/dom-utils-b8befdd5.js +0 -63
  481. package/dist/cjs/header-mobile-collapse_2.cjs.entry.js +0 -112
  482. package/dist/cjs/index-07e8aa51.js +0 -3071
  483. package/dist/cjs/injectHistory-77d41284.js +0 -9
  484. package/dist/cjs/ion-avatar.cjs.entry.js +0 -25
  485. package/dist/cjs/ion-button_3.cjs.entry.js +0 -383
  486. package/dist/cjs/ion-card_2.cjs.entry.js +0 -93
  487. package/dist/cjs/ion-checkbox_4.cjs.entry.js +0 -370
  488. package/dist/cjs/ion-col_3.cjs.entry.js +0 -155
  489. package/dist/cjs/ion-icon_2.cjs.entry.js +0 -397
  490. package/dist/cjs/ion-input_2.cjs.entry.js +0 -316
  491. package/dist/cjs/ion-label_2.cjs.entry.js +0 -126
  492. package/dist/cjs/ion-range.cjs.entry.js +0 -445
  493. package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
  494. package/dist/cjs/match-path-84c9f7ca.js +0 -511
  495. package/dist/cjs/sparkle-card_3.cjs.entry.js +0 -91
  496. package/dist/cjs/sparkle-course-root.cjs.entry.js +0 -145
  497. package/dist/cjs/sparkle-dropdown.cjs.entry.js +0 -61
  498. package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +0 -2129
  499. package/dist/cjs/sparkle-goal-progress.cjs.entry.js +0 -19
  500. package/dist/cjs/sparkle-gww-item.cjs.entry.js +0 -74
  501. package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +0 -236
  502. package/dist/cjs/sparkle-validation-error.cjs.entry.js +0 -21
  503. package/dist/cjs/stencil-route-link.cjs.entry.js +0 -77
  504. package/dist/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  505. package/dist/cjs/student.service-7af424fe.js +0 -61
  506. package/dist/cjs/user.store-3d29139d.js +0 -21
  507. package/dist/esm/PrivateRoute-f59ba6b5.js +0 -33
  508. package/dist/esm/dom-utils-8e73e88b.js +0 -55
  509. package/dist/esm/header-mobile-collapse_2.entry.js +0 -107
  510. package/dist/esm/index-c92f99d4.js +0 -3067
  511. package/dist/esm/injectHistory-52d0c7eb.js +0 -7
  512. package/dist/esm/ion-avatar.entry.js +0 -21
  513. package/dist/esm/ion-button_3.entry.js +0 -377
  514. package/dist/esm/ion-card_2.entry.js +0 -88
  515. package/dist/esm/ion-checkbox_4.entry.js +0 -363
  516. package/dist/esm/ion-col_3.entry.js +0 -149
  517. package/dist/esm/ion-icon_2.entry.js +0 -392
  518. package/dist/esm/ion-input_2.entry.js +0 -311
  519. package/dist/esm/ion-label_2.entry.js +0 -121
  520. package/dist/esm/ion-range.entry.js +0 -441
  521. package/dist/esm/ion-spinner.entry.js +0 -60
  522. package/dist/esm/match-path-36fdf5c7.js +0 -499
  523. package/dist/esm/sparkle-card_3.entry.js +0 -85
  524. package/dist/esm/sparkle-course-root.entry.js +0 -141
  525. package/dist/esm/sparkle-dropdown.entry.js +0 -57
  526. package/dist/esm/sparkle-facilitator-header_19.entry.js +0 -2107
  527. package/dist/esm/sparkle-goal-progress.entry.js +0 -15
  528. package/dist/esm/sparkle-gww-item.entry.js +0 -70
  529. package/dist/esm/sparkle-menu-toggle_3.entry.js +0 -230
  530. package/dist/esm/sparkle-validation-error.entry.js +0 -17
  531. package/dist/esm/stencil-route-link.entry.js +0 -73
  532. package/dist/esm/stencil-router-redirect.entry.js +0 -28
  533. package/dist/esm/user.store-e6ff7558.js +0 -19
  534. package/dist/sparkle-core/p-021fde3c.entry.js +0 -1
  535. package/dist/sparkle-core/p-034306e2.js +0 -1
  536. package/dist/sparkle-core/p-034aa29f.entry.js +0 -5
  537. package/dist/sparkle-core/p-052caa63.js +0 -1
  538. package/dist/sparkle-core/p-0580419b.entry.js +0 -1
  539. package/dist/sparkle-core/p-063cd168.js +0 -4
  540. package/dist/sparkle-core/p-06c0cce3.entry.js +0 -1
  541. package/dist/sparkle-core/p-081968cc.entry.js +0 -1
  542. package/dist/sparkle-core/p-0934f5dd.entry.js +0 -1
  543. package/dist/sparkle-core/p-1133fcbd.js +0 -4
  544. package/dist/sparkle-core/p-1551190a.entry.js +0 -1
  545. package/dist/sparkle-core/p-1728ead7.js +0 -1
  546. package/dist/sparkle-core/p-1e8c22e0.entry.js +0 -1
  547. package/dist/sparkle-core/p-21bf4ca0.entry.js +0 -1
  548. package/dist/sparkle-core/p-232cc3bc.js +0 -1
  549. package/dist/sparkle-core/p-28950db0.entry.js +0 -1
  550. package/dist/sparkle-core/p-2af82cc1.entry.js +0 -1
  551. package/dist/sparkle-core/p-2bd4c60e.js +0 -1
  552. package/dist/sparkle-core/p-2f437793.entry.js +0 -348
  553. package/dist/sparkle-core/p-330ccc7c.entry.js +0 -1
  554. package/dist/sparkle-core/p-35a7bd6c.entry.js +0 -1
  555. package/dist/sparkle-core/p-35c5c110.entry.js +0 -1
  556. package/dist/sparkle-core/p-3ff617d5.js +0 -1
  557. package/dist/sparkle-core/p-4028676b.js +0 -4
  558. package/dist/sparkle-core/p-41124baa.js +0 -4
  559. package/dist/sparkle-core/p-41af3793.entry.js +0 -1
  560. package/dist/sparkle-core/p-44c23f72.js +0 -1
  561. package/dist/sparkle-core/p-45e6db62.entry.js +0 -1
  562. package/dist/sparkle-core/p-48f9b960.entry.js +0 -1
  563. package/dist/sparkle-core/p-4a72626a.js +0 -1
  564. package/dist/sparkle-core/p-4ba57978.entry.js +0 -4
  565. package/dist/sparkle-core/p-4ef4b8bd.entry.js +0 -5
  566. package/dist/sparkle-core/p-4f144efa.js +0 -4
  567. package/dist/sparkle-core/p-58e98f89.entry.js +0 -1
  568. package/dist/sparkle-core/p-59f7bf6e.entry.js +0 -1
  569. package/dist/sparkle-core/p-5ec7fd67.entry.js +0 -1
  570. package/dist/sparkle-core/p-618f6f82.entry.js +0 -1
  571. package/dist/sparkle-core/p-62a6c96f.entry.js +0 -1
  572. package/dist/sparkle-core/p-65ca1fb2.entry.js +0 -1
  573. package/dist/sparkle-core/p-663fafa9.entry.js +0 -1
  574. package/dist/sparkle-core/p-67f71099.entry.js +0 -4
  575. package/dist/sparkle-core/p-680663a2.entry.js +0 -1
  576. package/dist/sparkle-core/p-6a16b9ef.entry.js +0 -4
  577. package/dist/sparkle-core/p-6b6a8f0a.entry.js +0 -1
  578. package/dist/sparkle-core/p-6c5b5ea2.entry.js +0 -1
  579. package/dist/sparkle-core/p-6ebf52fb.entry.js +0 -1
  580. package/dist/sparkle-core/p-6f45db93.js +0 -1
  581. package/dist/sparkle-core/p-6fd4985d.js +0 -4
  582. package/dist/sparkle-core/p-7052c43a.entry.js +0 -1
  583. package/dist/sparkle-core/p-70b2452c.js +0 -4
  584. package/dist/sparkle-core/p-74106ca8.entry.js +0 -1
  585. package/dist/sparkle-core/p-75572037.js +0 -1
  586. package/dist/sparkle-core/p-7568dcab.entry.js +0 -1
  587. package/dist/sparkle-core/p-768bcc9e.entry.js +0 -1
  588. package/dist/sparkle-core/p-7703bae9.entry.js +0 -1
  589. package/dist/sparkle-core/p-77c23496.entry.js +0 -1
  590. package/dist/sparkle-core/p-79606a41.entry.js +0 -1
  591. package/dist/sparkle-core/p-7976e88c.entry.js +0 -1
  592. package/dist/sparkle-core/p-7c1f59ec.js +0 -1
  593. package/dist/sparkle-core/p-7de0a22b.entry.js +0 -1
  594. package/dist/sparkle-core/p-848fe770.entry.js +0 -1
  595. package/dist/sparkle-core/p-86d099f1.js +0 -4
  596. package/dist/sparkle-core/p-87549bb7.js +0 -4
  597. package/dist/sparkle-core/p-8c470e28.entry.js +0 -1
  598. package/dist/sparkle-core/p-954c89c2.entry.js +0 -1
  599. package/dist/sparkle-core/p-95d01c4c.js +0 -4
  600. package/dist/sparkle-core/p-987c64eb.js +0 -1
  601. package/dist/sparkle-core/p-9babd345.js +0 -1
  602. package/dist/sparkle-core/p-a89dea80.entry.js +0 -1
  603. package/dist/sparkle-core/p-b17dd6df.js +0 -4
  604. package/dist/sparkle-core/p-b3e6427d.js +0 -7
  605. package/dist/sparkle-core/p-b7dafaae.entry.js +0 -1
  606. package/dist/sparkle-core/p-bd062288.entry.js +0 -1
  607. package/dist/sparkle-core/p-bef34cfe.entry.js +0 -1
  608. package/dist/sparkle-core/p-c1c59771.js +0 -1
  609. package/dist/sparkle-core/p-c4104929.entry.js +0 -1
  610. package/dist/sparkle-core/p-c48bbc7c.entry.js +0 -4
  611. package/dist/sparkle-core/p-c753207f.entry.js +0 -1
  612. package/dist/sparkle-core/p-c8ed0575.js +0 -1
  613. package/dist/sparkle-core/p-c96b24bd.entry.js +0 -4
  614. package/dist/sparkle-core/p-ce13171b.entry.js +0 -1
  615. package/dist/sparkle-core/p-d394eed1.entry.js +0 -1
  616. package/dist/sparkle-core/p-d48e95c1.entry.js +0 -1
  617. package/dist/sparkle-core/p-d4b1a14a.entry.js +0 -1
  618. package/dist/sparkle-core/p-d56efeac.entry.js +0 -4
  619. package/dist/sparkle-core/p-d59a5984.entry.js +0 -1
  620. package/dist/sparkle-core/p-d8aff730.entry.js +0 -1
  621. package/dist/sparkle-core/p-da8921d0.entry.js +0 -1
  622. package/dist/sparkle-core/p-e08059b6.js +0 -4
  623. package/dist/sparkle-core/p-e3fdd0a8.entry.js +0 -1
  624. package/dist/sparkle-core/p-ec4d22e3.entry.js +0 -1
  625. package/dist/sparkle-core/p-ed3eed72.entry.js +0 -1
  626. package/dist/sparkle-core/p-ee0717e1.entry.js +0 -4
  627. package/dist/sparkle-core/p-ef2dace6.js +0 -4
  628. package/dist/sparkle-core/p-f1106984.entry.js +0 -1
  629. package/dist/sparkle-core/p-f61ca75c.entry.js +0 -1
  630. package/dist/sparkle-core/p-f9b73032.entry.js +0 -1
  631. package/dist/sparkle-core/p-fef04ab5.js +0 -4
@@ -1,15 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-5568e3fa.js';
2
-
3
- const sparkleGoalProgressCss = ":host{display:block}.progress-container{padding:4px;display:flex;align-items:center}.progress-container>.progress{padding-left:6px}#progress-bar{background:#ccc;border-radius:12px;height:10px;width:100%;padding:0px;margin:0 auto}#progress-bar:after{content:'';display:block;background:var(--ion-color-primary);width:var(--p);height:100%;border-radius:9px}.percentage{padding-left:10px}";
4
-
5
- const SparkleGoalProgress = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- render() {
10
- return (h(Host, null, h("div", { class: "progress-container" }, h("div", { id: "progress-bar", style: { "--p": this.percentage + "%" } }), h("strong", { class: "percentage" }, this.percentage, "%"))));
11
- }
12
- };
13
- SparkleGoalProgress.style = sparkleGoalProgressCss;
14
-
15
- export { SparkleGoalProgress as sparkle_goal_progress };
@@ -1,70 +0,0 @@
1
- import { r as registerInstance, h, c as getAssetPath, H as Host } from './index-5568e3fa.js';
2
- import { m as modalController } from './overlays-5c777f10.js';
3
- import { S as SparkleGlobal, f as date } from './util-a831d09d.js';
4
- import './ionic-global-0939c477.js';
5
- import './hardware-back-button-b6ccf74a.js';
6
- import './helpers-9d0930de.js';
7
-
8
- var PostVisibility;
9
- (function (PostVisibility) {
10
- PostVisibility[PostVisibility["Private"] = 0] = "Private";
11
- PostVisibility[PostVisibility["Public"] = 1] = "Public";
12
- })(PostVisibility || (PostVisibility = {}));
13
-
14
- const sparkleGwwItemCss = ":host{display:block}.Card{background-color:var(--background);border-radius:4px;box-shadow:rgb(2 8 20 / 10%) 0px 0.175em 0.5em, rgb(2 8 20 / 8%) 0px 0.085em 0.175em;color:var(--text-color--light);display:flex;flex-direction:column;font-size:inherit;font-weight:normal;justify-content:flex-start;line-height:1.6;transition:box-shadow 150ms ease 0s, transform 150ms ease 0s, -webkit-box-shadow 150ms ease 0s, -webkit-transform 150ms ease 0s;width:100%;overflow:hidden;margin-bottom:20px;height:auto !important}.footer ion-item ion-avatar{width:30px;height:30px}.comment-overview{padding:0px 16px;text-align:right;cursor:pointer}";
15
-
16
- const SparkleGwwItem = class {
17
- constructor(hostRef) {
18
- registerInstance(this, hostRef);
19
- }
20
- async presentModal(comments) {
21
- const modal = await modalController.create({
22
- component: "sparkle-gww-comment-list",
23
- componentProps: { comments: comments }
24
- });
25
- await modal.present();
26
- }
27
- clearCommentField() {
28
- this.comment = "";
29
- }
30
- renderMyMoodTemplate(data) {
31
- return (h("div", null, h("b", null, "Mood:"), " ", data.Mood, h("br", null), h("b", null, "Level:"), " ", data.Level, h("br", null), h("img", { src: data.MoodImage }), "`"));
32
- }
33
- renderMyHealthTemplate(data) {
34
- return (h("div", null, h("b", null, "Heart rate:"), " ", data.HeartRate, " bpm "));
35
- }
36
- renderMyGoalTemplate(data) {
37
- return (h("div", null, h("b", null, "Goal: "), " ", data.GoalTitle, " ", h("br", null), h("b", null, "Update Text: "), " ", data.GoalText, " ", h("br", null), h("sparkle-goal-progress", { percentage: data.GoalProgress })));
38
- }
39
- renderTemplate() {
40
- if (this.post.PostTextJSON) {
41
- var parseData = JSON.parse(this.post.PostTextJSON);
42
- if (this.post.MiniAppId == SparkleGlobal.MY_GOALS_APP_ID) {
43
- return this.renderMyGoalTemplate(parseData);
44
- }
45
- else if (this.post.MiniAppId == SparkleGlobal.MY_HEALTH_APP_ID) {
46
- return this.renderMyHealthTemplate(parseData);
47
- }
48
- else if (this.post.MiniAppId == SparkleGlobal.MY_MOOD_APP_ID) {
49
- return this.renderMyMoodTemplate(parseData);
50
- }
51
- }
52
- else {
53
- return ([
54
- h("div", { innerHTML: this.post.PostText }),
55
- this.post.ExternalResourceUrl && h("div", null, h("img", { src: this.post.ExternalResourceUrl, class: "external-src-image" }))
56
- ]);
57
- }
58
- }
59
- render() {
60
- return (h(Host, { class: {
61
- 'Card': true,
62
- } }, h("ion-item", { class: "header-item" }, h("ion-avatar", { class: "header-avatar", slot: "start" }, h("img", { src: this.post.ProfileImageUrl ? this.post.ProfileImageUrl : getAssetPath("/assets/img/user.png") })), h("div", null, h("strong", { class: "requester-name", "text-capitalize": true }, this.post.Name), h("div", null, h("small", null, " ", date(this.post.CreatedOn)))), h("div", { slot: "end" }, h("ion-icon", { color: "primary", name: this.post.PostVisibility == PostVisibility.Public ? "globe-outline" : "eye-outline" }))), h("div", { class: "ion-padding" }, this.renderTemplate()), h("div", { class: "footer" }, this.post.Comments.length > 0 &&
63
- h("div", { class: "comment-overview", slot: "end" }, " ", h("small", { onClick: () => this.post.Comments.length > 0 && this.presentModal(this.post.Comments) }, "Comments (", this.post.Comments.length, ")")), this.post.Comments.map((item) => {
64
- h("ion-item", { class: "comment-box", onClick: () => this.presentModal(this.post.Comments) }, h("ion-avatar", { class: "footer-avatar", slot: "start" }, h("img", { src: item.ProfileImageUrl ? item.ProfileImageUrl : "/assets/img/user.png" })), h("small", null, h("b", null, item.Name), " ", item.Comment), h("ion-icon", { slot: "end", name: "git-merge", color: "primary" }));
65
- }), h("hr", null), h("ion-item", { class: "comment-footer" }, h("ion-avatar", { class: "footer-avatar", slot: "start" }, h("img", { src: getAssetPath("/assets/img/user.png") })), h("ion-input", { value: this.comment, onIonChange: (e) => this.comment = e.target.value, type: "text", placeholder: "Write a comment" }), h("ion-button", { onClick: () => this.onPostComment({ Comment: this.comment, PostId: this.post.Id }), slot: "end", size: "small", disabled: !this.comment || this.loading }, this.loading ? h("ion-spinner", { name: "dots" }) : "POST COMMENT")))));
66
- }
67
- };
68
- SparkleGwwItem.style = sparkleGwwItemCss;
69
-
70
- export { SparkleGwwItem as sparkle_gww_item };
@@ -1,230 +0,0 @@
1
- import { r as registerInstance, h, H as Host, e as getElement, k as getContext } from './index-5568e3fa.js';
2
- import { M as Menu } from './icons-05b6ce86.js';
3
- import { A as ActiveRouter } from './active-router-909088d6.js';
4
- import { m as matchPath } from './match-path-36fdf5c7.js';
5
-
6
- const menuToggleCss = "sparkle-menu-toggle{background-color:rgba(0, 0, 0, var(--bg-alpha, 0));border-radius:50%;color:var(--text-color--light);cursor:pointer;height:40px;padding:8px;width:40px}@media (hover: hover){sparkle-menu-toggle:focus,sparkle-menu-toggle:hover{--bg-alpha:0.03;outline:none}sparkle-menu-toggle:active{--bg-alpha:0.06}}sparkle-menu-toggle svg{fill:currentColor}";
7
-
8
- const SparkleMenuToggle = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- }
12
- hostData() {
13
- return {
14
- 'role': 'button',
15
- 'tabindex': '0',
16
- 'aria-label': 'Toggle Menu',
17
- };
18
- }
19
- __stencil_render() {
20
- return h(Menu, null);
21
- }
22
- render() { return h(Host, this.hostData(), this.__stencil_render()); }
23
- };
24
- SparkleMenuToggle.style = menuToggleCss;
25
-
26
- const navCss = "sparkle-nav{display:block;flex:0 0 auto;z-index:1}sparkle-nav .wrapper{position:relative}sparkle-nav .section-label{margin-bottom:0;font-size:14px;font-weight:600}sparkle-nav .module-list li,sparkle-nav .module-list ul li{list-style-type:none;margin:0;padding:0}sparkle-nav .module-list{margin-top:0;padding:0}sparkle-nav .module-list .section-label:first-of-type{margin-top:0}sparkle-nav .module-list li{font-size:14px;padding:10px 10px 0px 14px}sparkle-nav .module-list>li{margin-top:10px}sparkle-nav .module-list a{font-weight:400;color:#6c6c8b;text-decoration:none;white-space:nowrap;border:0}sparkle-nav .module-list a:not(.link-active){transition:color 0.2s}sparkle-nav .module-list a:hover{border:0}sparkle-nav .module-list .link-active{font-weight:bold;color:var(--ion-color-sparkle)}sparkle-nav .module-list .link-active a{color:var(--ion-color-sparkle)}sparkle-nav .module-list a:hover:not(.link-active){color:var(--ion-color-sparkle)}sparkle-nav .module-list ul li{padding-left:12px;transition:80ms height;display:block;overflow:hidden;text-overflow:ellipsis}sparkle-nav .module-list ul.collapsed li{height:0}sparkle-nav ul.session-list{margin:0;padding:10px 0px 0px 0px}sparkle-nav ul.session-list li a{display:flex;flex-direction:column;padding:15px 24px;position:relative}sparkle-nav ul.session-list li a:before{content:'';width:10px;height:10px;border-radius:50%;background:#dfe1e3;display:block;position:absolute;left:1px;top:50%;margin-top:-5px;z-index:5}sparkle-nav ul.session-list li a:after{content:'';background:#dfe1e3;height:100%;position:absolute;width:2px;display:block;left:5px;top:0}sparkle-nav ul.session-list li a.is-active{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:before{width:14px;height:14px;left:23px;margin-top:-7px;background:var(--ion-color-sparkle);box-shadow:0 0 4px var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:after{background:#dfe1e3}sparkle-nav ul.session-list li stencil-route-link.is-completed a{}sparkle-nav ul.session-list li stencil-route-link.is-completed a:before{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li stencil-route-link.is-completed a:after{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a p{color:#fff;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.2s ease-in-out color}sparkle-nav ul.session-list li a span{display:block;line-height:12px}sparkle-nav ul li span.coming-soon{font-size:0.7rem;display:block;background:0 0;color:#f6c95b;line-height:14px;border-radius:4px;padding:1px 4px 0;box-shadow:none;border:1px solid #f6c95b;width:85px;text-align:center}sparkle-nav ul.session-list li a:hover p{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li:first-child a:after{height:50%;top:50%}sparkle-nav ul.session-list li:last-child a:after{height:50%;bottom:50%}";
27
-
28
- const SparkleNav = class {
29
- constructor(hostRef) {
30
- registerInstance(this, hostRef);
31
- //TODO: get this config somewhere from the config initialization
32
- this.config = {
33
- showRomanNumber: false,
34
- showModuleIndex: true,
35
- showSessionIndex: true,
36
- };
37
- this.toggleParent = (parentItem) => {
38
- return (e) => {
39
- e.preventDefault();
40
- this.selectedParent = parentItem;
41
- };
42
- };
43
- }
44
- componentDidLoad() { }
45
- //TODO: not working
46
- pageDidLoadHandler($event) {
47
- if ($event) {
48
- //let pageInfo = $event.detail.pageInfo;
49
- let splittedParts = window.location.pathname.split('/').filter(x => !!x && x != 'course');
50
- this.moduleURLName = splittedParts[0];
51
- this.sessionURLName = splittedParts[1];
52
- if (this.toc) {
53
- let courseModule = this.toc.courseModules.find(x => x.urlName == this.moduleURLName);
54
- this.selectedParent = courseModule;
55
- }
56
- }
57
- }
58
- toggleLeftSidebar() { }
59
- romanize(num) {
60
- if (isNaN(num))
61
- return NaN;
62
- var digits = String(+num).split(''), key = [
63
- '',
64
- 'C',
65
- 'CC',
66
- 'CCC',
67
- 'CD',
68
- 'D',
69
- 'DC',
70
- 'DCC',
71
- 'DCCC',
72
- 'CM',
73
- '',
74
- 'X',
75
- 'XX',
76
- 'XXX',
77
- 'XL',
78
- 'L',
79
- 'LX',
80
- 'LXX',
81
- 'LXXX',
82
- 'XC',
83
- '',
84
- 'I',
85
- 'II',
86
- 'III',
87
- 'IV',
88
- 'V',
89
- 'VI',
90
- 'VII',
91
- 'VIII',
92
- 'IX',
93
- ], roman = '', i = 3;
94
- while (i--)
95
- roman = (key[+digits.pop() + i * 10] || '') + roman;
96
- return Array(+digits.join('') + 1).join('M') + roman;
97
- }
98
- getModuleIndex(index, preventNumbering) {
99
- return this.config.showModuleIndex && !preventNumbering ? (this.config.showRomanNumber ? this.romanize(index) : index) + '. ' : '';
100
- }
101
- getSessionIndex(index, preventNumbering) {
102
- return this.config.showSessionIndex && !preventNumbering ? (this.config.showRomanNumber ? this.romanize(index) : index) + '. ' : '';
103
- }
104
- hostData() {
105
- return {
106
- role: 'navigation',
107
- };
108
- }
109
- __stencil_render() {
110
- let moduleIndex = 0;
111
- let sessionIndex = 0;
112
- return (h("ul", { class: "module-list" }, this.toc &&
113
- this.toc.courseModules.map(module => {
114
- sessionIndex = 0;
115
- if (!module.preventNumbering) {
116
- moduleIndex++;
117
- }
118
- return (module.sessions.length > 0 && (h("li", null, h("a", { class: { 'link-active': module.urlName == this.moduleURLName }, href: module.sessions[0].urlName || '#', onClick: this.toggleParent(module) }, h("span", { class: "section-label" }, this.getModuleIndex(moduleIndex, module.preventNumbering), module.name, module.comingSoon && h("span", { class: "coming-soon" }, " Coming soon"))), h("ul", { class: { 'collapsed': this.selectedParent ? module !== this.selectedParent : moduleIndex !== 0, 'session-list': true } }, module.sessions.map(session => {
119
- if (!session.preventNumbering) {
120
- sessionIndex++;
121
- }
122
- return (h("li", { class: {
123
- 'active': module.urlName == this.moduleURLName && session.urlName == this.sessionURLName,
124
- } }, h("stencil-route-link", { class: {
125
- 'is-completed': true,
126
- 'link-active': module.urlName == this.moduleURLName && session.urlName == this.sessionURLName,
127
- }, url: 'course/' + module.urlName + '/' + session.urlName + '/' + session.pages[0].urlName, onClick: () => this.toggleLeftSidebar() }, this.getSessionIndex(sessionIndex, session.preventNumbering), session.name, session.comingSoon && h("span", { class: "coming-soon" }, " Coming soon"))));
128
- })))));
129
- })));
130
- }
131
- get el() { return getElement(this); }
132
- render() { return h(Host, this.hostData(), this.__stencil_render()); }
133
- };
134
- SparkleNav.style = navCss;
135
-
136
- const getUniqueId = () => {
137
- return ((Math.random() * 10e16).toString().match(/.{4}/g) || []).join('-');
138
- };
139
- const getMatch = (pathname, url, exact) => {
140
- return matchPath(pathname, {
141
- path: url,
142
- exact: exact,
143
- strict: true
144
- });
145
- };
146
- const isHTMLStencilRouteElement = (elm) => {
147
- return elm.tagName === 'STENCIL-ROUTE';
148
- };
149
- const RouteSwitch = class {
150
- constructor(hostRef) {
151
- registerInstance(this, hostRef);
152
- this.group = getUniqueId();
153
- this.subscribers = [];
154
- this.queue = getContext(this, "queue");
155
- }
156
- componentWillLoad() {
157
- if (this.location != null) {
158
- this.regenerateSubscribers(this.location);
159
- }
160
- }
161
- async regenerateSubscribers(newLocation) {
162
- if (newLocation == null) {
163
- return;
164
- }
165
- let newActiveIndex = -1;
166
- this.subscribers = Array.prototype.slice.call(this.el.children)
167
- .filter(isHTMLStencilRouteElement)
168
- .map((childElement, index) => {
169
- const match = getMatch(newLocation.pathname, childElement.url, childElement.exact);
170
- if (match && newActiveIndex === -1) {
171
- newActiveIndex = index;
172
- }
173
- return {
174
- el: childElement,
175
- match: match
176
- };
177
- });
178
- if (newActiveIndex === -1) {
179
- return;
180
- }
181
- // Check if this actually changes which child is active
182
- // then just pass the new match down if the active route isn't changing.
183
- if (this.activeIndex === newActiveIndex) {
184
- this.subscribers[newActiveIndex].el.match = this.subscribers[newActiveIndex].match;
185
- return;
186
- }
187
- this.activeIndex = newActiveIndex;
188
- // Set all props on the new active route then wait until it says that it
189
- // is completed
190
- const activeChild = this.subscribers[this.activeIndex];
191
- if (this.scrollTopOffset) {
192
- activeChild.el.scrollTopOffset = this.scrollTopOffset;
193
- }
194
- activeChild.el.group = this.group;
195
- activeChild.el.match = activeChild.match;
196
- activeChild.el.componentUpdated = (routeViewUpdatedOptions) => {
197
- // After the new active route has completed then update visibility of routes
198
- this.queue.write(() => {
199
- this.subscribers.forEach((child, index) => {
200
- child.el.componentUpdated = undefined;
201
- if (index === this.activeIndex) {
202
- return child.el.style.display = '';
203
- }
204
- if (this.scrollTopOffset) {
205
- child.el.scrollTopOffset = this.scrollTopOffset;
206
- }
207
- child.el.group = this.group;
208
- child.el.match = null;
209
- child.el.style.display = 'none';
210
- });
211
- });
212
- if (this.routeViewsUpdated) {
213
- this.routeViewsUpdated(Object.assign({ scrollTopOffset: this.scrollTopOffset }, routeViewUpdatedOptions));
214
- }
215
- };
216
- }
217
- render() {
218
- return (h("slot", null));
219
- }
220
- get el() { return getElement(this); }
221
- static get watchers() { return {
222
- "location": ["regenerateSubscribers"]
223
- }; }
224
- };
225
- ActiveRouter.injectProps(RouteSwitch, [
226
- 'location',
227
- 'routeViewsUpdated'
228
- ]);
229
-
230
- export { SparkleMenuToggle as sparkle_menu_toggle, SparkleNav as sparkle_nav, RouteSwitch as stencil_route_switch };
@@ -1,17 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-5568e3fa.js';
2
-
3
- const sparkleValidationErrorCss = ":host{display:block}sparkle-validation-error ul{padding:10px 0px}sparkle-validation-error .alert-danger{margin-top:10px;font-size:12px}";
4
-
5
- const SparkleValidationError = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.errors = [];
9
- }
10
- render() {
11
- return (h(Host, null, this.errors.length > 0 &&
12
- h("div", { class: "alert alert-danger", role: "alert" }, h("ul", null, this.errors.map(error => h("li", null, h("b", null, error.Field, ": "), error.Message))))));
13
- }
14
- };
15
- SparkleValidationError.style = sparkleValidationErrorCss;
16
-
17
- export { SparkleValidationError as sparkle_validation_error };
@@ -1,73 +0,0 @@
1
- import { r as registerInstance, h, e as getElement } from './index-5568e3fa.js';
2
- import { m as matchPath } from './match-path-36fdf5c7.js';
3
- import { d as isModifiedEvent } from './dom-utils-8e73e88b.js';
4
- import { A as ActiveRouter } from './active-router-909088d6.js';
5
-
6
- const getUrl = (url, root) => {
7
- // Don't allow double slashes
8
- if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
9
- return root.slice(0, root.length - 1) + url;
10
- }
11
- return root + url;
12
- };
13
- const RouteLink = class {
14
- constructor(hostRef) {
15
- registerInstance(this, hostRef);
16
- this.unsubscribe = () => { return; };
17
- this.activeClass = 'link-active';
18
- this.exact = false;
19
- this.strict = true;
20
- /**
21
- * Custom tag to use instead of an anchor
22
- */
23
- this.custom = 'a';
24
- this.match = null;
25
- }
26
- componentWillLoad() {
27
- this.computeMatch();
28
- }
29
- // Identify if the current route is a match.
30
- computeMatch() {
31
- if (this.location) {
32
- this.match = matchPath(this.location.pathname, {
33
- path: this.urlMatch || this.url,
34
- exact: this.exact,
35
- strict: this.strict
36
- });
37
- }
38
- }
39
- handleClick(e) {
40
- if (isModifiedEvent(e) || !this.history || !this.url || !this.root) {
41
- return;
42
- }
43
- e.preventDefault();
44
- return this.history.push(getUrl(this.url, this.root));
45
- }
46
- // Get the URL for this route link without the root from the router
47
- render() {
48
- let anchorAttributes = {
49
- class: {
50
- [this.activeClass]: this.match !== null,
51
- },
52
- onClick: this.handleClick.bind(this)
53
- };
54
- if (this.anchorClass) {
55
- anchorAttributes.class[this.anchorClass] = true;
56
- }
57
- if (this.custom === 'a') {
58
- anchorAttributes = Object.assign({}, anchorAttributes, { href: this.url, title: this.anchorTitle, role: this.anchorRole, tabindex: this.anchorTabIndex, 'aria-haspopup': this.ariaHaspopup, id: this.anchorId, 'aria-posinset': this.ariaPosinset, 'aria-setsize': this.ariaSetsize, 'aria-label': this.ariaLabel });
59
- }
60
- return (h(this.custom, Object.assign({}, anchorAttributes), h("slot", null)));
61
- }
62
- get el() { return getElement(this); }
63
- static get watchers() { return {
64
- "location": ["computeMatch"]
65
- }; }
66
- };
67
- ActiveRouter.injectProps(RouteLink, [
68
- 'history',
69
- 'location',
70
- 'root'
71
- ]);
72
-
73
- export { RouteLink as stencil_route_link };
@@ -1,28 +0,0 @@
1
- import { r as registerInstance, e as getElement } from './index-5568e3fa.js';
2
- import { A as ActiveRouter } from './active-router-909088d6.js';
3
-
4
- // Get the URL for this route link without the root from the router
5
- const getUrl = (url, root) => {
6
- // Don't allow double slashes
7
- if (url.charAt(0) == '/' && root.charAt(root.length - 1) == '/') {
8
- return root.slice(0, root.length - 1) + url;
9
- }
10
- return root + url;
11
- };
12
- const Redirect = class {
13
- constructor(hostRef) {
14
- registerInstance(this, hostRef);
15
- }
16
- componentWillLoad() {
17
- if (this.history && this.root && this.url) {
18
- return this.history.replace(getUrl(this.url, this.root));
19
- }
20
- }
21
- get el() { return getElement(this); }
22
- };
23
- ActiveRouter.injectProps(Redirect, [
24
- 'history',
25
- 'root'
26
- ]);
27
-
28
- export { Redirect as stencil_router_redirect };
@@ -1,19 +0,0 @@
1
- import { c as createStore } from './auth.store-98fad96d.js';
2
-
3
- const { state, onChange, reset } = createStore({
4
- user: {
5
- FirstName: '',
6
- LastName: '',
7
- ProfileText: '',
8
- ProfileImage: '',
9
- IsVerified: false,
10
- Roles: [],
11
- FacilitatorClassList: []
12
- },
13
- loaded: false,
14
- updateLoading: false,
15
- enrollmentList: [],
16
- });
17
- const userStore = { state, onChange, reset };
18
-
19
- export { userStore as u };
@@ -1 +0,0 @@
1
- import{r as e,h as o,e as i}from"./p-9babd345.js";import{a as l}from"./p-401feeb0.js";const t=class{constructor(o){e(this,o),this.darkMode=!0,this.mobileDropdownActive=!1,this.stuck=!1,this.queued=!1}deactivate(){setTimeout((()=>{this.el.classList.remove("ionic-sub-header--mobile-active")}),200)}getTriggerEl(){const e=document.createElement("div");return e.id="ionic-sub-header__trigger",e}componentDidLoad(){this.el.before&&(this.el.before(this.getTriggerEl()),this.init(),requestAnimationFrame((()=>{this.el.classList.add("ionic-sub-header--initialized")})))}init(){this.observer=new IntersectionObserver((e=>{this.queued||(this.stuck||0!==e[0].intersectionRatio?this.stuck&&1===e[0].intersectionRatio&&(this.queued=!0,requestAnimationFrame((()=>{this.el.classList.remove("ionic-sub-header--stuck"),this.stuck=!1,this.queued=!1}))):(this.queued=!0,requestAnimationFrame((()=>{this.el.classList.add("ionic-sub-header--stuck"),this.stuck=!0,this.queued=!1}))))}),{threshold:[0,1]});const e=document.getElementById("ionic-sub-header__trigger");this.el&&e&&(this.observer.observe(e),setTimeout((()=>{this.el.classList.add("ionic-sub-header--initialized");const e=document.querySelector(".navbar-default");e&&e.classList.add("navbar--not-fixed")}),405))}handleMobileToggleClick(){this.el.classList.toggle("ionic-sub-header--mobile-active")}render(){return[o("div",{class:"header-mobile-collapse__backdrop",onClick:()=>this.deactivate()}),o("a",{class:"ionic-sub-header__mobile-toggle",onClick:()=>this.handleMobileToggleClick()},o(l,null)),o("div",{class:"header-mobile-collapse__content"},o("slot",null))]}get el(){return i(this)}};t.style="header-mobile-collapse,header-mobile-collapse .header-mobile-collapse__content{flex:1;display:flex;justify-content:flex-end;align-items:center}header-mobile-collapse .ionic-sub-header__mobile-toggle{display:none;padding-top:14px;pointer-events:none;padding-left:8px}header-mobile-collapse .ionic-sub-header__mobile-toggle svg{height:20px;width:20px}header-mobile-collapse .UtilNav{margin-left:auto}header-mobile-collapse>ionic-search{padding-right:8px;padding-top:4px;display:none}header-mobile-collapse .label-sm-only .Dropdown-button-label,header-mobile-collapse .sm-only{display:none}@media (max-width: 800px){header-mobile-collapse .ionic-sub-header__mobile-toggle{display:block;cursor:pointer;padding-top:14px;pointer-events:all;transition:0.2s transform ease 0.1s;transform-origin:66% 50%}header-mobile-collapse .header-mobile-collapse__backdrop{position:fixed;top:100%;height:100vh;left:0;right:0;background:rgba(0, 0, 0, 0.1);cursor:pointer;opacity:0;pointer-events:none;transition:0.4s opacity}header-mobile-collapse.ionic-sub-header--mobile-active .header-mobile-collapse__backdrop{opacity:1;pointer-events:all}header-mobile-collapse>ionic-search{display:block}header-mobile-collapse .header-mobile-collapse__content{display:flex;flex-direction:column;align-items:stretch;position:fixed;width:100vw;left:0;background:white;box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);top:56px;padding:16px 16px 8px;max-height:calc(100vh - 64px);overflow:auto;pointer-events:none;opacity:0;transform:translateY(-10px);transition:transform 0.2s cubic-bezier(0.36, 0.66, 0.04, 1), opacity 0.2s linear}header-mobile-collapse.ionic-sub-header--mobile-active .header-mobile-collapse__content{opacity:1;pointer-events:all;transform:translateY(0);transition:transform 0.25s cubic-bezier(0.17, 0.67, 0.52, 1), opacity 0.1s linear}header-mobile-collapse .sparkle-dropdown,header-mobile-collapse .SectionNav .Dropdown{align-self:stretch}header-mobile-collapse .Dropdown .Dropdown-button,header-mobile-collapse .UtilNav .sm-only{width:100%;display:flex;justify-content:space-between;color:#5b708b;font-size:20px;line-height:24px;letter-spacing:-0.03em;padding:13px 0 14px}header-mobile-collapse .Dropdown--left .Dropdown-button{padding-left:16px;padding-right:14px;margin-bottom:10px;padding-top:10px;height:44px;box-shadow:0px 1px 2px rgba(2, 8, 20, 0.04)}header-mobile-collapse .Dropdown .Dropdown-button .Dropdown-arrow{height:26px;width:20px;margin-right:-4px}header-mobile-collapse .SectionNav .Dropdown,header-mobile-collapse .SectionNav-tabs>*{margin-right:0}header-mobile-collapse .Dropdown:focus{outline:none}header-mobile-collapse .SectionNav-tabs stencil-route-link{height:45px}header-mobile-collapse .Dropdown--right .Dropdown-button{text-align:left}header-mobile-collapse .SectionNav stencil-route,header-mobile-collapse .SectionNav-tabs,header-mobile-collapse .UtilNav{display:flex;flex-direction:column;margin-left:0;align-items:stretch}header-mobile-collapse .UtilNav>*{margin-left:0;border-bottom:1px solid #e6e6e8}header-mobile-collapse .UtilNav>:last-child{border-bottom:none}header-mobile-collapse .Dropdown-panel{position:static;border-bottom:1px solid var(--text-color--lighter)}header-mobile-collapse .SectionNav-tabs a{font-size:20px;line-height:24px;letter-spacing:-0.02em;color:#5b708b;padding-left:16px;padding-right:14px;font-weight:400}header-mobile-collapse .UtilNav a{padding:0}header-mobile-collapse .SectionNav-tabs .link-active{background:rgba(var(--ion-color-primary-rgb), 0.12);color:var(--ion-color-primary);display:flex;justify-content:space-between;width:100%;border-radius:8px}header-mobile-collapse .SectionNav-tabs .link-active::after{content:'\\2713';position:static;background:none;width:auto;font-size:16px}header-mobile-collapse .SectionNav-tabs{position:relative;padding-bottom:8px;margin-bottom:18px;margin-top:5px}header-mobile-collapse .SectionNav-tabs::after{position:absolute;bottom:0;left:-16px;width:100vw;border-bottom:1px solid #e6e6e8;content:''}header-mobile-collapse .header-mobile-collapse__content ionic-search{display:none}header-mobile-collapse .UtilNav::before{content:'More';font-size:20px;line-height:24px;letter-spacing:0.01em;color:#000;padding:6px 2px 8px}header-mobile-collapse .label-sm-only .Dropdown-button-label,header-mobile-collapse .sm-only{display:block}header-mobile-collapse .label-sm-only .Dropdown-icon,header-mobile-collapse .lg-only{display:none}header-mobile-collapse .label-sm-only .Dropdown-icon+.Dropdown-arrow{fill:#5b708b}header-mobile-collapse .UtilNav .sm-only .Dropdown-arrow{height:26px;width:20px;margin-right:-4px;fill:#b2becd}header-mobile-collapse .Dropdown-panel a{padding:8px;font-size:16px}header-mobile-collapse .Dropdown.is-open .Dropdown-panel{position:static}}";const a=class{constructor(o){e(this,o),this.round=!1,this.primary=!1}render(){return void 0!==this.href?/^\/course/.test(this.href)?o("stencil-route-link",{url:this.href},o("slot",null)):o("a",{href:this.href},o("slot",null)):o("button",null,o("slot",null))}};a.style="sparkle-button{background-color:rgba(var(--ion-color-sparkle-rgb), var(--bg-alpha, 0.06));border-radius:6px;color:var(--accent-color);display:inline-block;font-weight:600;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.1)}sparkle-button a,sparkle-button button{color:inherit;display:inline-block;font-size:inherit;font-weight:inherit;padding:0.75em 1.5em}sparkle-button button{appearance:none;background:none;border:none;line-height:inherit}sparkle-button svg{fill:currentColor;height:1em;margin-bottom:-0.125em;width:1em}sparkle-button[round]{border-radius:2em}sparkle-button[primary]{background-color:rgba(var(--ion-color-sparkle-rgb));color:var(--ion-color-sparkle-contrast)}@media (hover: hover){sparkle-button:hover{--bg-alpha:0.08}sparkle-button:active{--bg-alpha:0.1}}";export{t as header_mobile_collapse,a as sparkle_button}
@@ -1 +0,0 @@
1
- import{E as t}from"./p-b226f54d.js";import{c as e}from"./p-c1c59771.js";import{h as s}from"./p-9babd345.js";import{s as n}from"./p-4bd4dab2.js";class i extends Error{constructor(t,e){const s=new.target.prototype;super(`${t}: Status code '${e}'`),this.statusCode=e,this.__proto__=s}}class r extends Error{constructor(t="A timeout occurred."){const e=new.target.prototype;super(t),this.__proto__=e}}class o extends Error{constructor(t="An abort occurred."){const e=new.target.prototype;super(t),this.__proto__=e}}class h extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.transport=e,this.errorType="UnsupportedTransportError",this.__proto__=s}}class c extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.transport=e,this.errorType="DisabledTransportError",this.__proto__=s}}class a extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.transport=e,this.errorType="FailedToStartTransportError",this.__proto__=s}}class l extends Error{constructor(t){const e=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=e}}class u extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.innerErrors=e,this.__proto__=s}}class d{constructor(t,e,s){this.statusCode=t,this.statusText=e,this.content=s}}class p{get(t,e){return this.send({...e,method:"GET",url:t})}post(t,e){return this.send({...e,method:"POST",url:t})}delete(t,e){return this.send({...e,method:"DELETE",url:t})}getCookieString(t){return""}}var f,w,g;!function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"}(f||(f={}));class m{constructor(){}log(t,e){}}m.instance=new m;class y{static isRequired(t,e){if(null==t)throw new Error(`The '${e}' argument is required.`)}static isNotEmpty(t,e){if(!t||t.match(/^\s*$/))throw new Error(`The '${e}' argument should not be empty.`)}static isIn(t,e,s){if(!(t in e))throw new Error(`Unknown ${s} value: ${t}.`)}}class b{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&void 0===window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function v(t,e){let s="";return E(t)?(s=`Binary data of length ${t.byteLength}`,e&&(s+=`. Content: '${function(t){const e=new Uint8Array(t);let s="";return e.forEach((t=>{s+=`0x${t<16?"0":""}${t.toString(16)} `})),s.substr(0,s.length-1)}(t)}'`)):"string"==typeof t&&(s=`String data of length ${t.length}`,e&&(s+=`. Content: '${t}'`)),s}function E(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}async function $(t,e,s,n,i,r,o){let h={};if(i){const t=await i();t&&(h={Authorization:`Bearer ${t}`})}const[c,a]=k();h[c]=a,t.log(f.Trace,`(${e} transport) sending data. ${v(r,o.logMessageContent)}.`);const l=E(r)?"arraybuffer":"text",u=await s.post(n,{content:r,headers:{...h,...o.headers},responseType:l,timeout:o.timeout,withCredentials:o.withCredentials});t.log(f.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)}class C{constructor(t,e){this._subject=t,this._observer=e}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch((()=>{}))}}class S{constructor(t){this._minLevel=t,this.out=console}log(t,e){if(t>=this._minLevel){const s=`[${(new Date).toISOString()}] ${f[t]}: ${e}`;switch(t){case f.Critical:case f.Error:this.out.error(s);break;case f.Warning:this.out.warn(s);break;case f.Information:this.out.info(s);break;default:this.out.log(s)}}}}function k(){let t="X-SignalR-User-Agent";return b.isNode&&(t="User-Agent"),[t,_("6.0.3",P(),b.isNode?"NodeJS":"Browser",T())]}function _(t,e,s,n){let i="Microsoft SignalR/";const r=t.split(".");return i+=`${r[0]}.${r[1]}`,i+=` (${t}; `,i+=e&&""!==e?`${e}; `:"Unknown OS; ",i+=`${s}`,i+=n?`; ${n}`:"; Unknown Runtime Version",i+=")",i}function P(){if(!b.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function T(){if(b.isNode)return process.versions.node}function I(t){return t.stack?t.stack:t.message?t.message:`${t}`}class H extends p{constructor(t){if(super(),this._logger=t,"undefined"==typeof fetch){const t="function"==typeof __webpack_require__?__non_webpack_require__:require;this._jar=new(t("tough-cookie").CookieJar),this._fetchType=t("node-fetch"),this._fetchType=t("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("could not find global")}());if("undefined"==typeof AbortController){const t="function"==typeof __webpack_require__?__non_webpack_require__:require;this._abortControllerType=t("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new o;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const e=new this._abortControllerType;let s;t.abortSignal&&(t.abortSignal.onabort=()=>{e.abort(),s=new o});let n,h=null;t.timeout&&(h=setTimeout((()=>{e.abort(),this._logger.log(f.Warning,"Timeout from HTTP request."),s=new r}),t.timeout));try{n=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:!0===t.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:e.signal})}catch(t){if(s)throw s;throw this._logger.log(f.Warning,`Error from HTTP request. ${t}.`),t}finally{h&&clearTimeout(h),t.abortSignal&&(t.abortSignal.onabort=null)}if(!n.ok){const t=await R(n,"text");throw new i(t||n.statusText,n.status)}const c=R(n,t.responseType),a=await c;return new d(n.status,n.statusText,a)}getCookieString(t){let e="";return b.isNode&&this._jar&&this._jar.getCookies(t,((t,s)=>e=s.join("; "))),e}}function R(t,e){let s;switch(e){case"arraybuffer":s=t.arrayBuffer();break;case"text":s=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:s=t.text()}return s}class D extends p{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o):t.method?t.url?new Promise(((e,s)=>{const n=new XMLHttpRequest;n.open(t.method,t.url,!0),n.withCredentials=void 0===t.withCredentials||t.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const h=t.headers;h&&Object.keys(h).forEach((t=>{n.setRequestHeader(t,h[t])})),t.responseType&&(n.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{n.abort(),s(new o)}),t.timeout&&(n.timeout=t.timeout),n.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),n.status>=200&&n.status<300?e(new d(n.status,n.statusText,n.response||n.responseText)):s(new i(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(f.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),s(new i(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(f.Warning,"Timeout from HTTP request."),s(new r)},n.send(t.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class x extends p{constructor(t){if(super(),"undefined"!=typeof fetch||b.isNode)this._httpClient=new H(t);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new D(t)}}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}class N{static write(t){return`${t}${N.RecordSeparator}`}static parse(t){if(t[t.length-1]!==N.RecordSeparator)throw new Error("Message is incomplete.");const e=t.split(N.RecordSeparator);return e.pop(),e}}N.RecordSeparatorCode=30,N.RecordSeparator=String.fromCharCode(N.RecordSeparatorCode);class q{writeHandshakeRequest(t){return N.write(JSON.stringify(t))}parseHandshakeResponse(t){let e,s;if(E(t)){const n=new Uint8Array(t),i=n.indexOf(N.RecordSeparatorCode);if(-1===i)throw new Error("Message is incomplete.");const r=i+1;e=String.fromCharCode.apply(null,Array.prototype.slice.call(n.slice(0,r))),s=n.byteLength>r?n.slice(r).buffer:null}else{const n=t,i=n.indexOf(N.RecordSeparator);if(-1===i)throw new Error("Message is incomplete.");const r=i+1;e=n.substring(0,r),s=n.length>r?n.substring(r):null}const n=N.parse(e),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[s,i]}}!function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(w||(w={}));class U{constructor(){this.observers=[]}next(t){for(const e of this.observers)e.next(t)}error(t){for(const e of this.observers)e.error&&e.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new C(this,t)}}!function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"}(g||(g={}));class A{constructor(t,e,s,n){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(f.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},y.isRequired(t,"connection"),y.isRequired(e,"logger"),y.isRequired(s,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=e,this._protocol=s,this.connection=t,this._reconnectPolicy=n,this._handshakeProtocol=new q,this.connection.onreceive=t=>this._processIncomingData(t),this.connection.onclose=t=>this._connectionClosed(t),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=g.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:w.Ping})}static create(t,e,s,n){return new A(t,e,s,n)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==g.Disconnected&&this._connectionState!==g.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==g.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=g.Connecting,this._logger.log(f.Debug,"Starting HubConnection.");try{await this._startInternal(),b.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=g.Connected,this._connectionStarted=!0,this._logger.log(f.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=g.Disconnected,this._logger.log(f.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise(((t,e)=>{this._handshakeResolver=t,this._handshakeRejecter=e}));await this.connection.start(this._protocol.transferFormat);try{const e={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(f.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(e)),this._logger.log(f.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError}catch(t){throw this._logger.log(f.Debug,`Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(t),t}}async stop(){const t=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch(t){}}_stopInternal(t){return this._connectionState===g.Disconnected?(this._logger.log(f.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===g.Disconnecting?(this._logger.log(f.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=g.Disconnecting,this._logger.log(f.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(f.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(t)))}stream(t,...e){const[s,n]=this._replaceStreamingParams(e),i=this._createStreamInvocation(t,e,n);let r;const o=new U;return o.cancelCallback=()=>{const t=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],r.then((()=>this._sendWithProtocol(t)))},this._callbacks[i.invocationId]=(t,e)=>{e?o.error(e):t&&(t.type===w.Completion?t.error?o.error(new Error(t.error)):o.complete():o.next(t.item))},r=this._sendWithProtocol(i).catch((t=>{o.error(t),delete this._callbacks[i.invocationId]})),this._launchStreams(s,r),o}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._sendMessage(this._protocol.writeMessage(t))}send(t,...e){const[s,n]=this._replaceStreamingParams(e),i=this._sendWithProtocol(this._createInvocation(t,e,!0,n));return this._launchStreams(s,i),i}invoke(t,...e){const[s,n]=this._replaceStreamingParams(e),i=this._createInvocation(t,e,!1,n);return new Promise(((t,e)=>{this._callbacks[i.invocationId]=(s,n)=>{n?e(n):s&&(s.type===w.Completion?s.error?e(new Error(s.error)):t(s.result):e(new Error(`Unexpected message type: ${s.type}`)))};const n=this._sendWithProtocol(i).catch((t=>{e(t),delete this._callbacks[i.invocationId]}));this._launchStreams(s,n)}))}on(t,e){t&&e&&(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),-1===this._methods[t].indexOf(e)&&this._methods[t].push(e))}off(t,e){if(!t)return;t=t.toLowerCase();const s=this._methods[t];if(s)if(e){const n=s.indexOf(e);-1!==n&&(s.splice(n,1),0===s.length&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const e=this._protocol.parseMessages(t,this._logger);for(const t of e)switch(t.type){case w.Invocation:this._invokeClientMethod(t);break;case w.StreamItem:case w.Completion:{const e=this._callbacks[t.invocationId];if(e){t.type===w.Completion&&delete this._callbacks[t.invocationId];try{e(t)}catch(t){this._logger.log(f.Error,`Stream callback threw error: ${I(t)}`)}}break}case w.Ping:break;case w.Close:{this._logger.log(f.Information,"Close message received from server.");const e=t.error?new Error("Server returned an error on close: "+t.error):void 0;!0===t.allowReconnect?this.connection.stop(e):this._stopPromise=this._stopInternal(e);break}default:this._logger.log(f.Warning,`Invalid message type: ${t.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let e,s;try{[s,e]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(t){const e="Error parsing handshake response: "+t;this._logger.log(f.Error,e);const s=new Error(e);throw this._handshakeRejecter(s),s}if(e.error){const t="Server returned handshake error: "+e.error;this._logger.log(f.Error,t);const s=new Error(t);throw this._handshakeRejecter(s),s}return this._logger.log(f.Debug,"Server handshake complete."),this._handshakeResolver(),s}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout((()=>this.serverTimeout()),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let t=this._nextKeepAlive-(new Date).getTime();t<0&&(t=0),this._pingServerHandle=setTimeout((async()=>{if(this._connectionState===g.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}),t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(t){const e=this._methods[t.target.toLowerCase()];if(e){try{e.forEach((e=>e.apply(this,t.arguments)))}catch(e){this._logger.log(f.Error,`A callback for the method ${t.target.toLowerCase()} threw error '${e}'.`)}if(t.invocationId){const t="Server requested a response, which is not supported in this version of the client.";this._logger.log(f.Error,t),this._stopPromise=this._stopInternal(new Error(t))}}else this._logger.log(f.Warning,`No client method with the name '${t.target}' found.`)}_connectionClosed(t){this._logger.log(f.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===g.Disconnecting?this._completeClose(t):this._connectionState===g.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===g.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=g.Disconnected,this._connectionStarted=!1,b.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach((e=>e.apply(this,[t])))}catch(e){this._logger.log(f.Error,`An onclose callback called with error '${t}' threw error '${e}'.`)}}}async _reconnect(t){const e=Date.now();let s=0,n=void 0!==t?t:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(s++,0,n);if(null===i)return this._logger.log(f.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(t);if(this._connectionState=g.Reconnecting,this._logger.log(f.Information,t?`Connection reconnecting because of error '${t}'.`:"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach((e=>e.apply(this,[t])))}catch(e){this._logger.log(f.Error,`An onreconnecting callback called with error '${t}' threw error '${e}'.`)}if(this._connectionState!==g.Reconnecting)return void this._logger.log(f.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==i;){if(this._logger.log(f.Information,`Reconnect attempt number ${s} will start in ${i} ms.`),await new Promise((t=>{this._reconnectDelayHandle=setTimeout(t,i)})),this._reconnectDelayHandle=void 0,this._connectionState!==g.Reconnecting)return void this._logger.log(f.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=g.Connected,this._logger.log(f.Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach((t=>t.apply(this,[this.connection.connectionId])))}catch(t){this._logger.log(f.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${t}'.`)}return}catch(t){if(this._logger.log(f.Information,`Reconnect attempt failed because of error '${t}'.`),this._connectionState!==g.Reconnecting)return this._logger.log(f.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===g.Disconnecting&&this._completeClose());n=t instanceof Error?t:new Error(t.toString()),i=this._getNextRetryDelay(s++,Date.now()-e,n)}}this._logger.log(f.Information,`Reconnect retries have been exhausted after ${Date.now()-e} ms and ${s} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,e,s){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:t,retryReason:s})}catch(s){return this._logger.log(f.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${e}) threw error '${s}'.`),null}}_cancelCallbacksWithError(t){const e=this._callbacks;this._callbacks={},Object.keys(e).forEach((s=>{const n=e[s];try{n(null,t)}catch(e){this._logger.log(f.Error,`Stream 'error' callback called with '${t}' threw error: ${I(e)}`)}}))}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,e,s,n){if(s)return 0!==n.length?{arguments:e,streamIds:n,target:t,type:w.Invocation}:{arguments:e,target:t,type:w.Invocation};{const s=this._invocationId;return this._invocationId++,0!==n.length?{arguments:e,invocationId:s.toString(),streamIds:n,target:t,type:w.Invocation}:{arguments:e,invocationId:s.toString(),target:t,type:w.Invocation}}}_launchStreams(t,e){if(0!==t.length){e||(e=Promise.resolve());for(const s in t)t[s].subscribe({complete:()=>{e=e.then((()=>this._sendWithProtocol(this._createCompletionMessage(s))))},error:t=>{let n;n=t instanceof Error?t.message:t&&t.toString?t.toString():"Unknown error",e=e.then((()=>this._sendWithProtocol(this._createCompletionMessage(s,n))))},next:t=>{e=e.then((()=>this._sendWithProtocol(this._createStreamItemMessage(s,t))))}})}}_replaceStreamingParams(t){const e=[],s=[];for(let n=0;n<t.length;n++){const i=t[n];if(this._isObservable(i)){const r=this._invocationId;this._invocationId++,e[r]=i,s.push(r.toString()),t.splice(n,1)}}return[e,s]}_isObservable(t){return t&&t.subscribe&&"function"==typeof t.subscribe}_createStreamInvocation(t,e,s){const n=this._invocationId;return this._invocationId++,0!==s.length?{arguments:e,invocationId:n.toString(),streamIds:s,target:t,type:w.StreamInvocation}:{arguments:e,invocationId:n.toString(),target:t,type:w.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:w.CancelInvocation}}_createStreamItemMessage(t,e){return{invocationId:t,item:e,type:w.StreamItem}}_createCompletionMessage(t,e,s){return e?{error:e,invocationId:t,type:w.Completion}:{invocationId:t,result:s,type:w.Completion}}}const L=[0,2e3,1e4,3e4,null];class M{constructor(t){this._retryDelays=void 0!==t?[...t,null]:L}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}class W{}var F,O;W.Authorization="Authorization",W.Cookie="Cookie",function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(F||(F={})),function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(O||(O={}));class j{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class B{constructor(t,e,s,n){this._httpClient=t,this._accessTokenFactory=e,this._logger=s,this._pollAbort=new j,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(t,e){if(y.isRequired(t,"url"),y.isRequired(e,"transferFormat"),y.isIn(e,O,"transferFormat"),this._url=t,this._logger.log(f.Trace,"(LongPolling transport) Connecting."),e===O.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[s,n]=k(),r={[s]:n,...this._options.headers},o={abortSignal:this._pollAbort.signal,headers:r,timeout:1e5,withCredentials:this._options.withCredentials};e===O.Binary&&(o.responseType="arraybuffer");const h=await this._getAccessToken();this._updateHeaderToken(o,h);const c=`${t}&_=${Date.now()}`;this._logger.log(f.Trace,`(LongPolling transport) polling: ${c}.`);const a=await this._httpClient.get(c,o);200!==a.statusCode?(this._logger.log(f.Error,`(LongPolling transport) Unexpected response code: ${a.statusCode}.`),this._closeError=new i(a.statusText||"",a.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,o)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(t,e){t.headers||(t.headers={}),e?t.headers[W.Authorization]=`Bearer ${e}`:t.headers[W.Authorization]&&delete t.headers[W.Authorization]}async _poll(t,e){try{for(;this._running;){const s=await this._getAccessToken();this._updateHeaderToken(e,s);try{const s=`${t}&_=${Date.now()}`;this._logger.log(f.Trace,`(LongPolling transport) polling: ${s}.`);const n=await this._httpClient.get(s,e);204===n.statusCode?(this._logger.log(f.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==n.statusCode?(this._logger.log(f.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new i(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(f.Trace,`(LongPolling transport) data received. ${v(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(f.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(t){this._running?t instanceof r?this._logger.log(f.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=t,this._running=!1):this._logger.log(f.Trace,`(LongPolling transport) Poll errored after shutdown: ${t.message}`)}}}finally{this._logger.log(f.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?$(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(f.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(f.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const t={},[e,s]=k();t[e]=s;const n={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},i=await this._getAccessToken();this._updateHeaderToken(n,i),await this._httpClient.delete(this._url,n),this._logger.log(f.Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(f.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(f.Trace,t),this.onclose(this._closeError)}}}class X{constructor(t,e,s,n){this._httpClient=t,this._accessTokenFactory=e,this._logger=s,this._options=n,this.onreceive=null,this.onclose=null}async connect(t,e){if(y.isRequired(t,"url"),y.isRequired(e,"transferFormat"),y.isIn(e,O,"transferFormat"),this._logger.log(f.Trace,"(SSE transport) Connecting."),this._url=t,this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(e)}`)}return new Promise(((s,n)=>{let i,r=!1;if(e===O.Text){if(b.isBrowser||b.isWebWorker)i=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const e=this._httpClient.getCookieString(t),s={};s.Cookie=e;const[n,r]=k();s[n]=r,i=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...s,...this._options.headers}})}try{i.onmessage=t=>{if(this.onreceive)try{this._logger.log(f.Trace,`(SSE transport) data received. ${v(t.data,this._options.logMessageContent)}.`),this.onreceive(t.data)}catch(t){return void this._close(t)}},i.onerror=()=>{r?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},i.onopen=()=>{this._logger.log(f.Information,`SSE connected to ${this._url}`),this._eventSource=i,r=!0,s()}}catch(t){return void n(t)}}else n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))}async send(t){return this._eventSource?$(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}class J{constructor(t,e,s,n,i,r){this._logger=s,this._accessTokenFactory=e,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=r}async connect(t,e){if(y.isRequired(t,"url"),y.isRequired(e,"transferFormat"),y.isIn(e,O,"transferFormat"),this._logger.log(f.Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(e)}`)}return new Promise(((s,n)=>{let i;t=t.replace(/^http/,"ws");const r=this._httpClient.getCookieString(t);let o=!1;if(b.isNode){const e={},[s,n]=k();e[s]=n,r&&(e[W.Cookie]=`${r}`),i=new this._webSocketConstructor(t,void 0,{headers:{...e,...this._headers}})}i||(i=new this._webSocketConstructor(t)),e===O.Binary&&(i.binaryType="arraybuffer"),i.onopen=()=>{this._logger.log(f.Information,`WebSocket connected to ${t}.`),this._webSocket=i,o=!0,s()},i.onerror=t=>{let e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:"There was an error with the transport",this._logger.log(f.Information,`(WebSockets transport) ${e}.`)},i.onmessage=t=>{if(this._logger.log(f.Trace,`(WebSockets transport) data received. ${v(t.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(t.data)}catch(t){return void this._close(t)}},i.onclose=t=>{if(o)this._close(t);else{let e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",n(new Error(e))}}}))}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(f.Trace,`(WebSockets transport) sending data. ${v(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(f.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(t)||!1!==t.wasClean&&1e3===t.code?t instanceof Error?this.onclose(t):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)))}_isCloseEvent(t){return t&&"boolean"==typeof t.wasClean&&"number"==typeof t.code}}class z{constructor(t,e={}){var s;if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,y.isRequired(t,"url"),this._logger=void 0===(s=e.logger)?new S(f.Information):null===s?m.instance:void 0!==s.log?s:new S(s),this.baseUrl=this._resolveUrl(t),(e=e||{}).logMessageContent=void 0!==e.logMessageContent&&e.logMessageContent,"boolean"!=typeof e.withCredentials&&void 0!==e.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");e.withCredentials=void 0===e.withCredentials||e.withCredentials,e.timeout=void 0===e.timeout?1e5:e.timeout;let n=null,i=null;if(b.isNode&&"undefined"!=typeof require){const t="function"==typeof __webpack_require__?__non_webpack_require__:require;n=t("ws"),i=t("eventsource")}b.isNode||"undefined"==typeof WebSocket||e.WebSocket?b.isNode&&!e.WebSocket&&n&&(e.WebSocket=n):e.WebSocket=WebSocket,b.isNode||"undefined"==typeof EventSource||e.EventSource?b.isNode&&!e.EventSource&&void 0!==i&&(e.EventSource=i):e.EventSource=EventSource,this._httpClient=e.httpClient||new x(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=e,this.onreceive=null,this.onclose=null}async start(t){if(y.isIn(t=t||O.Binary,O,"transferFormat"),this._logger.log(f.Debug,`Starting connection with transfer format '${O[t]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,"Disconnecting"===this._connectionState){const t="Failed to start the HttpConnection before stop() was called.";return this._logger.log(f.Error,t),await this._stopPromise,Promise.reject(new Error(t))}if("Connected"!==this._connectionState){const t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(f.Error,t),Promise.reject(new Error(t))}this._connectionStarted=!0}send(t){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new V(this.transport)),this._sendQueue.send(t))}async stop(t){return"Disconnected"===this._connectionState?(this._logger.log(f.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(f.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise((t=>{this._stopPromiseResolver=t})),await this._stopInternal(t),void await this._stopPromise)}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch(t){}if(this.transport){try{await this.transport.stop()}catch(t){this._logger.log(f.Error,`HttpConnection.transport.stop() threw error '${t}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(f.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let e=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==F.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(F.WebSockets),await this._startTransport(e,t)}else{let s=null,n=0;do{if(s=await this._getNegotiationResponse(e),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(s.error)throw new Error(s.error);if(s.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(s.url&&(e=s.url),s.accessToken){const t=s.accessToken;this._accessTokenFactory=()=>t}n++}while(s.url&&n<100);if(100===n&&s.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(e,this._options.transport,s,t)}this.transport instanceof B&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(f.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(t){return this._logger.log(f.Error,"Failed to start the connection: "+t),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(t)}}async _getNegotiationResponse(t){const e={};if(this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e[W.Authorization]=`Bearer ${t}`)}const[s,n]=k();e[s]=n;const r=this._resolveNegotiateUrl(t);this._logger.log(f.Debug,`Sending negotiation request: ${r}.`);try{const t=await this._httpClient.post(r,{content:"",headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==t.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${t.statusCode}'`));const s=JSON.parse(t.content);return(!s.negotiateVersion||s.negotiateVersion<1)&&(s.connectionToken=s.connectionId),s}catch(t){let e="Failed to complete negotiation with the server: "+t;return t instanceof i&&404===t.statusCode&&(e+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(f.Error,e),Promise.reject(new l(e))}}_createConnectUrl(t,e){return e?t+(-1===t.indexOf("?")?"?":"&")+`id=${e}`:t}async _createTransport(t,e,s,n){let i=this._createConnectUrl(t,s.connectionToken);if(this._isITransport(e))return this._logger.log(f.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,await this._startTransport(i,n),void(this.connectionId=s.connectionId);const r=[],o=s.availableTransports||[];let h=s;for(const s of o){const o=this._resolveTransportOrError(s,e,n);if(o instanceof Error)r.push(`${s.transport} failed:`),r.push(o);else if(this._isITransport(o)){if(this.transport=o,!h){try{h=await this._getNegotiationResponse(t)}catch(t){return Promise.reject(t)}i=this._createConnectUrl(t,h.connectionToken)}try{return await this._startTransport(i,n),void(this.connectionId=h.connectionId)}catch(t){if(this._logger.log(f.Error,`Failed to start the transport '${s.transport}': ${t}`),h=void 0,r.push(new a(`${s.transport} failed: ${t}`,F[s.transport])),"Connecting"!==this._connectionState){const t="Failed to select transport before stop() was called.";return this._logger.log(f.Debug,t),Promise.reject(new Error(t))}}}}return Promise.reject(r.length>0?new u(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`,r):new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case F.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new J(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case F.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new X(this._httpClient,this._accessTokenFactory,this._logger,this._options);case F.LongPolling:return new B(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,e){return this.transport.onreceive=this.onreceive,this.transport.onclose=t=>this._stopConnection(t),this.transport.connect(t,e)}_resolveTransportOrError(t,e,s){const n=F[t.transport];if(null==n)return this._logger.log(f.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(!function(t,e){return!t||0!=(e&t)}(e,n))return this._logger.log(f.Debug,`Skipping transport '${F[n]}' because it was disabled by the client.`),new c(`'${F[n]}' is disabled by the client.`,n);if(!(t.transferFormats.map((t=>O[t])).indexOf(s)>=0))return this._logger.log(f.Debug,`Skipping transport '${F[n]}' because it does not support the requested transfer format '${O[s]}'.`),new Error(`'${F[n]}' does not support ${O[s]}.`);if(n===F.WebSockets&&!this._options.WebSocket||n===F.ServerSentEvents&&!this._options.EventSource)return this._logger.log(f.Debug,`Skipping transport '${F[n]}' because it is not supported in your environment.'`),new h(`'${F[n]}' is not supported in your environment.`,n);this._logger.log(f.Debug,`Selecting transport '${F[n]}'.`);try{return this._constructTransport(n)}catch(t){return t}}_isITransport(t){return t&&"object"==typeof t&&"connect"in t}_stopConnection(t){if(this._logger.log(f.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(f.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),t?this._logger.log(f.Error,`Connection disconnected with error '${t}'.`):this._logger.log(f.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch((t=>{this._logger.log(f.Error,`TransportSendQueue.stop() threw error '${t}'.`)})),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(e){this._logger.log(f.Error,`HttpConnection.onclose(${t}) threw error '${e}'.`)}}}else this._logger.log(f.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if(!b.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const e=window.document.createElement("a");return e.href=t,this._logger.log(f.Information,`Normalizing '${t}' to '${e.href}'.`),e.href}_resolveNegotiateUrl(t){const e=t.indexOf("?");let s=t.substring(0,-1===e?t.length:e);return"/"!==s[s.length-1]&&(s+="/"),s+="negotiate",s+=-1===e?"":t.substring(e),-1===s.indexOf("negotiateVersion")&&(s+=-1===e?"?":"&",s+="negotiateVersion="+this._negotiateVersion),s}}class V{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new G,this._transportResult=new G,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new G),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new G;const t=this._transportResult;this._transportResult=void 0;const e="string"==typeof this._buffer[0]?this._buffer.join(""):V._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(e),t.resolve()}catch(e){t.reject(e)}}}static _concatBuffers(t){const e=t.map((t=>t.byteLength)).reduce(((t,e)=>t+e)),s=new Uint8Array(e);let n=0;for(const e of t)s.set(new Uint8Array(e),n),n+=e.byteLength;return s.buffer}}class G{constructor(){this.promise=new Promise(((t,e)=>[this._resolver,this._rejecter]=[t,e]))}resolve(){this._resolver()}reject(t){this._rejecter(t)}}class K{constructor(){this.name="json",this.version=1,this.transferFormat=O.Text}parseMessages(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=m.instance);const s=N.parse(t),n=[];for(const t of s){const s=JSON.parse(t);if("number"!=typeof s.type)throw new Error("Invalid payload.");switch(s.type){case w.Invocation:this._isInvocationMessage(s);break;case w.StreamItem:this._isStreamItemMessage(s);break;case w.Completion:this._isCompletionMessage(s);break;case w.Ping:case w.Close:break;default:e.log(f.Information,"Unknown message type '"+s.type+"' ignored.");continue}n.push(s)}return n}writeMessage(t){return N.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(t,e){if("string"!=typeof t||""===t)throw new Error(e)}}const Q={trace:f.Trace,debug:f.Debug,info:f.Information,information:f.Information,warn:f.Warning,warning:f.Warning,error:f.Error,critical:f.Critical,none:f.None};class Y{configureLogging(t){if(y.isRequired(t,"logging"),void 0!==t.log)this.logger=t;else if("string"==typeof t){const e=function(t){const e=Q[t.toLowerCase()];if(void 0!==e)return e;throw new Error(`Unknown log level: ${t}`)}(t);this.logger=new S(e)}else this.logger=new S(t);return this}withUrl(t,e){return y.isRequired(t,"url"),y.isNotEmpty(t,"url"),this.url=t,this.httpConnectionOptions="object"==typeof e?{...this.httpConnectionOptions,...e}:{...this.httpConnectionOptions,transport:e},this}withHubProtocol(t){return y.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=t?Array.isArray(t)?new M(t):t:new M,this}build(){const t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const e=new z(this.url,t);return A.create(e,this.logger||m.instance,this.protocol||new K,this.reconnectPolicy)}}const{state:Z,onChange:tt,reset:et}=e({connecting:!1,connected:!1}),st={state:Z,onChange:tt,reset:et};class nt{constructor(){console.log("Starting signalR");var e=t.getInstance().get("sparkle");this.connection=(new Y).withUrl(`${e.apiUrl}hubs/sparkle?url=${window.location.href}&courseClassId=1`,{accessTokenFactory:()=>this.getToken(),skipNegotiation:!0,transport:F.WebSockets}).configureLogging(f.Debug).withAutomaticReconnect({nextRetryDelayInMilliseconds:t=>t.elapsedMilliseconds<6e4?1e4*Math.random():null}).build(),this.connection.on("SendMessage",((t,e)=>{let s=JSON.parse(e);console.log("Server said ",t,s)})),this.connection.onclose((()=>{})),this.connection.onreconnecting((()=>{console.assert(this.connection.state===g.Reconnecting)})),this.connection.onreconnected((()=>{console.assert(this.connection.state===g.Connected)}))}static getInstance(){return nt.instance||(nt.instance=new nt),nt.instance}async start(){console.log("start");try{st.state.connecting=!0,st.state.connected=!st.state.connecting,await this.connection.start(),console.log(this.connection),st.state.connecting=!1,st.state.connected=!st.state.connecting,console.assert(this.connection.state===g.Connected),console.log("SignalR Connected.")}catch(t){console.assert(this.connection.state===g.Disconnected),console.log(t)}}async callSignalR(t,e){console.log("signalR invoke",t,this.connection.connectionState),this.getToken()?(this.connection.invoke(t,JSON.stringify(e)),console.log("After signalR invoke",t,this.connection.connectionState)):console.log("Cannot connect to signalR. Not logged in")}getToken(){var e=t.getInstance().get("sparkle");return e&&e.auth&&e.auth.getToken()?sparkle.auth.getToken():null}}const it=(t,e)=>{const s=[];for(let n=0;n<e.length;n++){let i=e[n];if(0===n&&"string"==typeof i&&rt.includes(i.toLowerCase().trim()))i="template";else if(1===n&&i){const t={};Object.keys(i).forEach((e=>{const s=e.toLowerCase();s.startsWith("on")||"innerhtml"===s||(t[e]=i[e])})),i=t}else n>1&&Array.isArray(i)&&(i=it(t,i));s.push(i)}return t.apply(null,s)},rt=["script","link","meta","object","head","html","body"],ot=["😕","😟","😑","😧","😯","😮","🙃","🤕","😫"],ht={default:t=>{const{page:e}=t;return s("article",null,!1!==e.renderTitle?s("h1",null,e.title):null,s("section",{class:"markdown-content"},it(s,e.body)),s("sparkle-page-footer",{page:e}))},pdf:t=>{const{page:e}=t;return s("article",null,!1!==e.renderTitle?s("h1",null,e.title):null,s("section",{class:"markdown-content"},it(s,e.body)))},error:t=>s("main",{class:"Error full-screen"},s("div",null,n(ot)),s("h1",null,(t=>{switch(t.status){case 404:return"Not Found";default:return"Uh Oh"}})(t)),s("p",null,(t=>{switch(t.status){case 404:return"Sorry, we couldn't find that page.";default:return"Sorry, something went wrong."}})(t)))};export{nt as S,st as s,ht as t}