@sparkle-learning/core 0.0.31 → 0.0.34

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 (278) hide show
  1. package/dist/cjs/PrivateRoute-482697a6.js +35 -0
  2. package/dist/cjs/{PrivateRoute-043bb7d3.js → auth.service-f878f6ab.js} +0 -30
  3. package/dist/cjs/dom-utils-b8befdd5.js +63 -0
  4. package/dist/cjs/header-mobile-collapse_2.cjs.entry.js +112 -0
  5. package/dist/cjs/{icons-b8a2231a.js → icons-80d477f6.js} +0 -0
  6. package/dist/cjs/index-07e8aa51.js +3071 -0
  7. package/dist/cjs/index.cjs.js +6 -5
  8. package/dist/cjs/injectHistory-77d41284.js +9 -0
  9. package/dist/cjs/ion-avatar.cjs.entry.js +25 -0
  10. package/dist/cjs/ion-button_3.cjs.entry.js +383 -0
  11. package/dist/cjs/ion-card_2.cjs.entry.js +93 -0
  12. package/dist/cjs/ion-checkbox_4.cjs.entry.js +370 -0
  13. package/dist/cjs/ion-col_3.cjs.entry.js +155 -0
  14. package/dist/cjs/ion-icon_2.cjs.entry.js +397 -0
  15. package/dist/cjs/ion-input_2.cjs.entry.js +316 -0
  16. package/dist/cjs/ion-label_2.cjs.entry.js +126 -0
  17. package/dist/cjs/ion-range.cjs.entry.js +445 -0
  18. package/dist/cjs/ion-spinner.cjs.entry.js +64 -0
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/match-path-84c9f7ca.js +511 -0
  21. package/dist/cjs/sparkle-card_3.cjs.entry.js +91 -0
  22. package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
  23. package/dist/cjs/sparkle-core.cjs.js +1 -1
  24. package/dist/cjs/sparkle-course-root.cjs.entry.js +145 -0
  25. package/dist/cjs/sparkle-dropdown.cjs.entry.js +61 -0
  26. package/dist/cjs/{header-mobile-collapse_61.cjs.entry.js → sparkle-export-lessons_6.cjs.entry.js} +8863 -17664
  27. package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +2129 -0
  28. package/dist/cjs/sparkle-feedback.cjs.entry.js +2 -1
  29. package/dist/cjs/sparkle-goal-progress.cjs.entry.js +19 -0
  30. package/dist/cjs/sparkle-gww-item.cjs.entry.js +74 -0
  31. package/dist/cjs/sparkle-intro.cjs.entry.js +26 -0
  32. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
  33. package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +236 -0
  34. package/dist/cjs/sparkle-validation-error.cjs.entry.js +21 -0
  35. package/dist/cjs/stencil-route-link.cjs.entry.js +77 -0
  36. package/dist/cjs/stencil-router-redirect.cjs.entry.js +32 -0
  37. package/dist/cjs/student.service-7af424fe.js +61 -0
  38. package/dist/cjs/user.store-3d29139d.js +21 -0
  39. package/dist/collection/collection-manifest.json +1 -0
  40. package/dist/collection/components/layout/page/page.js +0 -2
  41. package/dist/collection/components/sparkle-intro/sparkle-intro.css +15 -0
  42. package/dist/collection/components/sparkle-intro/sparkle-intro.js +35 -0
  43. package/dist/collection/models/course.model.js +6 -0
  44. package/dist/esm/PrivateRoute-f59ba6b5.js +33 -0
  45. package/dist/esm/{animation-b306f6c2.js → animation-7b083379.js} +1 -1
  46. package/dist/esm/{PrivateRoute-b9937c45.js → auth.service-7ab0ac58.js} +3 -32
  47. package/dist/esm/{auth.store-3ed2389e.js → auth.store-98fad96d.js} +2 -2
  48. package/dist/esm/dom-utils-8e73e88b.js +55 -0
  49. package/dist/esm/{facilitator.service-ec0a9739.js → facilitator.service-1524bf89.js} +1 -1
  50. package/dist/esm/{feed.service-33b83cb7.js → feed.service-4900fc62.js} +2 -2
  51. package/dist/esm/{framework-delegate-3bc58c27.js → framework-delegate-518bd233.js} +1 -1
  52. package/dist/esm/header-mobile-collapse_2.entry.js +107 -0
  53. package/dist/esm/{helpers-39367fe1.js → helpers-9d0930de.js} +1 -1
  54. package/dist/esm/{icons-5debfbaf.js → icons-05b6ce86.js} +1 -1
  55. package/dist/esm/{index-c26d8655.js → index-8de9446b.js} +3 -3
  56. package/dist/esm/index-c92f99d4.js +3067 -0
  57. package/dist/esm/{index-dc61f152.js → index-ea26196a.js} +1 -1
  58. package/dist/esm/{index-9594837e.js → index-fa5e93c5.js} +2 -2
  59. package/dist/esm/{index.es-97dd8174.js → index.es-89cff481.js} +3 -3
  60. package/dist/esm/index.js +5 -4
  61. package/dist/esm/injectHistory-52d0c7eb.js +7 -0
  62. package/dist/esm/{input-shims-cc98ea92.js → input-shims-7f04e044.js} +1 -1
  63. package/dist/esm/ion-accordion.entry.js +2 -2
  64. package/dist/esm/ion-action-sheet_4.entry.js +5 -5
  65. package/dist/esm/ion-app.entry.js +3 -3
  66. package/dist/esm/ion-avatar.entry.js +21 -0
  67. package/dist/esm/ion-back-button.entry.js +2 -2
  68. package/dist/esm/ion-breadcrumb.entry.js +2 -2
  69. package/dist/esm/ion-button_3.entry.js +377 -0
  70. package/dist/esm/ion-card_2.entry.js +88 -0
  71. package/dist/esm/ion-checkbox_4.entry.js +363 -0
  72. package/dist/esm/ion-col_3.entry.js +149 -0
  73. package/dist/esm/ion-content_2.entry.js +1 -1
  74. package/dist/esm/ion-datetime.entry.js +2 -2
  75. package/dist/esm/ion-fab-button.entry.js +1 -1
  76. package/dist/esm/ion-footer.entry.js +1 -1
  77. package/dist/esm/ion-icon_2.entry.js +392 -0
  78. package/dist/esm/ion-img.entry.js +1 -1
  79. package/dist/esm/ion-infinite-scroll.entry.js +1 -1
  80. package/dist/esm/ion-input_2.entry.js +311 -0
  81. package/dist/esm/ion-item-options.entry.js +1 -1
  82. package/dist/esm/ion-item-sliding.entry.js +1 -1
  83. package/dist/esm/ion-label_2.entry.js +121 -0
  84. package/dist/esm/ion-loading.entry.js +3 -3
  85. package/dist/esm/ion-menu-button.entry.js +5 -5
  86. package/dist/esm/ion-menu-toggle.entry.js +4 -4
  87. package/dist/esm/ion-menu.entry.js +4 -4
  88. package/dist/esm/ion-modal.entry.js +5 -5
  89. package/dist/esm/ion-nav.entry.js +4 -4
  90. package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
  91. package/dist/esm/ion-picker-column.entry.js +1 -1
  92. package/dist/esm/ion-picker.entry.js +3 -3
  93. package/dist/esm/ion-progress-bar.entry.js +1 -1
  94. package/dist/esm/ion-range.entry.js +441 -0
  95. package/dist/esm/ion-refresher-content.entry.js +1 -1
  96. package/dist/esm/ion-refresher.entry.js +2 -2
  97. package/dist/esm/ion-reorder-group.entry.js +1 -1
  98. package/dist/esm/ion-reorder.entry.js +1 -1
  99. package/dist/esm/ion-router-outlet.entry.js +4 -4
  100. package/dist/esm/ion-router.entry.js +1 -1
  101. package/dist/esm/ion-searchbar.entry.js +2 -2
  102. package/dist/esm/ion-segment-button.entry.js +1 -1
  103. package/dist/esm/ion-segment.entry.js +1 -1
  104. package/dist/esm/ion-select_2.entry.js +2 -2
  105. package/dist/esm/ion-slides.entry.js +1 -1
  106. package/dist/esm/ion-spinner.entry.js +60 -0
  107. package/dist/esm/ion-tab.entry.js +2 -2
  108. package/dist/esm/ion-textarea.entry.js +1 -1
  109. package/dist/esm/ion-toast.entry.js +3 -3
  110. package/dist/esm/ion-toggle.entry.js +1 -1
  111. package/dist/esm/ion-virtual-scroll.entry.js +1 -1
  112. package/dist/esm/{ios.transition-b4ca8a33.js → ios.transition-db4f4ca6.js} +3 -3
  113. package/dist/esm/loader.js +1 -1
  114. package/dist/esm/match-path-36fdf5c7.js +499 -0
  115. package/dist/esm/{md.transition-ca5e0322.js → md.transition-8294b503.js} +3 -3
  116. package/dist/esm/{menu-toggle-util-7fa22c2f.js → menu-toggle-util-06adade3.js} +1 -1
  117. package/dist/esm/{overlays-34cfa9e0.js → overlays-5c777f10.js} +2 -2
  118. package/dist/esm/{purify-ffce2b4c.js → purify-eb68cf1d.js} +1 -1
  119. package/dist/esm/sparkle-animation-player.entry.js +1 -1
  120. package/dist/esm/sparkle-card_3.entry.js +85 -0
  121. package/dist/esm/sparkle-code.entry.js +1 -1
  122. package/dist/esm/sparkle-core.js +1 -1
  123. package/dist/esm/sparkle-course-root.entry.js +141 -0
  124. package/dist/esm/sparkle-dropdown.entry.js +57 -0
  125. package/dist/esm/{header-mobile-collapse_61.entry.js → sparkle-export-lessons_6.entry.js} +8858 -17604
  126. package/dist/esm/sparkle-facilitator-header_19.entry.js +2107 -0
  127. package/dist/esm/sparkle-facilitator-notes-form.entry.js +4 -4
  128. package/dist/esm/sparkle-feedback.entry.js +5 -4
  129. package/dist/esm/sparkle-goal-form.entry.js +5 -5
  130. package/dist/esm/sparkle-goal-progress.entry.js +15 -0
  131. package/dist/esm/sparkle-gww-item.entry.js +70 -0
  132. package/dist/esm/sparkle-intro.entry.js +22 -0
  133. package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
  134. package/dist/esm/sparkle-menu-toggle_3.entry.js +230 -0
  135. package/dist/esm/sparkle-validation-error.entry.js +17 -0
  136. package/dist/esm/{status-tap-6351a0cb.js → status-tap-e8c0c752.js} +1 -1
  137. package/dist/esm/stencil-route-link.entry.js +73 -0
  138. package/dist/esm/stencil-router-redirect.entry.js +28 -0
  139. package/dist/esm/{student.service-29b688ba.js → student.service-c2f44f3a.js} +3 -18
  140. package/dist/esm/{swipe-back-34251834.js → swipe-back-9a3b2cdd.js} +1 -1
  141. package/dist/esm/{tap-click-13f1fb0d.js → tap-click-cca25060.js} +1 -1
  142. package/dist/esm/user.store-e6ff7558.js +19 -0
  143. package/dist/esm/{util-6ef753e9.js → util-a831d09d.js} +1 -1
  144. package/dist/sparkle-core/index.esm.js +1 -1
  145. package/dist/sparkle-core/p-021fde3c.entry.js +1 -0
  146. package/dist/sparkle-core/p-034306e2.js +1 -0
  147. package/dist/sparkle-core/{p-6c90bde6.entry.js → p-034aa29f.entry.js} +1 -1
  148. package/dist/sparkle-core/p-06c0cce3.entry.js +1 -0
  149. package/dist/sparkle-core/{p-9cfdeb18.entry.js → p-08923b40.entry.js} +1 -1
  150. package/dist/sparkle-core/{p-513794b0.js → p-0ad99881.js} +1 -1
  151. package/dist/sparkle-core/{p-95004267.entry.js → p-11234d0f.entry.js} +1 -1
  152. package/dist/sparkle-core/{p-9a17f2ad.js → p-1133fcbd.js} +2 -2
  153. package/dist/sparkle-core/{p-faa912d7.entry.js → p-1551190a.entry.js} +1 -1
  154. package/dist/sparkle-core/p-1728ead7.js +1 -0
  155. package/dist/sparkle-core/{p-ae1f145d.entry.js → p-1e8c22e0.entry.js} +1 -1
  156. package/dist/sparkle-core/p-232cc3bc.js +1 -0
  157. package/dist/sparkle-core/{p-289a35ed.entry.js → p-28950db0.entry.js} +1 -1
  158. package/dist/sparkle-core/p-2af82cc1.entry.js +1 -0
  159. package/dist/sparkle-core/p-2bd4c60e.js +1 -0
  160. package/dist/sparkle-core/p-2f437793.entry.js +348 -0
  161. package/dist/sparkle-core/p-330ccc7c.entry.js +1 -0
  162. package/dist/sparkle-core/{p-838fa86d.entry.js → p-337f92b0.entry.js} +1 -1
  163. package/dist/sparkle-core/{p-857f3696.entry.js → p-35c5c110.entry.js} +1 -1
  164. package/dist/sparkle-core/p-3ff617d5.js +1 -0
  165. package/dist/sparkle-core/{p-7c38a70b.js → p-401feeb0.js} +1 -1
  166. package/dist/sparkle-core/{p-5a3d0e6b.js → p-4028676b.js} +1 -1
  167. package/dist/sparkle-core/{p-1cef8572.js → p-41124baa.js} +1 -1
  168. package/dist/sparkle-core/{p-0187adef.entry.js → p-41af3793.entry.js} +1 -1
  169. package/dist/sparkle-core/p-43a7391b.entry.js +1 -0
  170. package/dist/sparkle-core/{p-855ca600.js → p-44c23f72.js} +1 -1
  171. package/dist/sparkle-core/{p-c1376096.entry.js → p-4550e10f.entry.js} +1 -1
  172. package/dist/sparkle-core/{p-660e0742.js → p-4a72626a.js} +1 -1
  173. package/dist/sparkle-core/{p-e1cba44b.entry.js → p-4ba57978.entry.js} +1 -1
  174. package/dist/sparkle-core/{p-935e7cfc.js → p-4bd4dab2.js} +1 -1
  175. package/dist/sparkle-core/{p-d5b05ece.entry.js → p-4ef4b8bd.entry.js} +1 -1
  176. package/dist/sparkle-core/{p-55ae49e1.js → p-4f144efa.js} +1 -1
  177. package/dist/sparkle-core/{p-713590fc.js → p-52d4715a.js} +1 -1
  178. package/dist/sparkle-core/{p-bca0e465.entry.js → p-52f1d1ca.entry.js} +1 -1
  179. package/dist/sparkle-core/{p-7e61973d.entry.js → p-5a98d42e.entry.js} +1 -1
  180. package/dist/sparkle-core/{p-82e98d07.entry.js → p-5e4ec238.entry.js} +1 -1
  181. package/dist/sparkle-core/{p-0146afa0.entry.js → p-5ec7fd67.entry.js} +1 -1
  182. package/dist/sparkle-core/p-618f6f82.entry.js +1 -0
  183. package/dist/sparkle-core/p-65ca1fb2.entry.js +1 -0
  184. package/dist/sparkle-core/{p-a080e768.entry.js → p-663fafa9.entry.js} +1 -1
  185. package/dist/sparkle-core/p-67f71099.entry.js +4 -0
  186. package/dist/sparkle-core/{p-6e88764b.entry.js → p-6a16b9ef.entry.js} +2 -2
  187. package/dist/sparkle-core/p-6b6a8f0a.entry.js +1 -0
  188. package/dist/sparkle-core/p-6c5b5ea2.entry.js +1 -0
  189. package/dist/sparkle-core/{p-941eaa3a.entry.js → p-6ebf52fb.entry.js} +1 -1
  190. package/dist/sparkle-core/p-6f45db93.js +1 -0
  191. package/dist/sparkle-core/p-74106ca8.entry.js +1 -0
  192. package/dist/sparkle-core/{p-6fbe3ca3.entry.js → p-7568dcab.entry.js} +1 -1
  193. package/dist/sparkle-core/p-7703bae9.entry.js +1 -0
  194. package/dist/sparkle-core/p-77c23496.entry.js +1 -0
  195. package/dist/sparkle-core/p-79606a41.entry.js +1 -0
  196. package/dist/sparkle-core/p-7976e88c.entry.js +1 -0
  197. package/dist/sparkle-core/p-7c1f59ec.js +1 -0
  198. package/dist/sparkle-core/p-7de0a22b.entry.js +1 -0
  199. package/dist/sparkle-core/p-848fe770.entry.js +1 -0
  200. package/dist/sparkle-core/{p-cbbeed67.entry.js → p-85429b12.entry.js} +1 -1
  201. package/dist/sparkle-core/{p-64e72f8f.js → p-86d099f1.js} +2 -2
  202. package/dist/sparkle-core/{p-389500fd.js → p-87549bb7.js} +2 -2
  203. package/dist/sparkle-core/{p-1b78dea1.entry.js → p-8c470e28.entry.js} +1 -1
  204. package/dist/sparkle-core/{p-50aac721.entry.js → p-90466494.entry.js} +1 -1
  205. package/dist/sparkle-core/p-954c89c2.entry.js +1 -0
  206. package/dist/sparkle-core/{p-f4001fdf.js → p-95d01c4c.js} +1 -1
  207. package/dist/sparkle-core/{p-6ee40949.js → p-987c64eb.js} +1 -1
  208. package/dist/sparkle-core/{p-1af044f7.js → p-a7832a51.js} +1 -1
  209. package/dist/sparkle-core/p-a89dea80.entry.js +1 -0
  210. package/dist/sparkle-core/{p-6c6145cd.js → p-b17dd6df.js} +2 -2
  211. package/dist/sparkle-core/{p-5ff6416d.entry.js → p-b21d0d9f.entry.js} +1 -1
  212. package/dist/sparkle-core/p-b7dafaae.entry.js +1 -0
  213. package/dist/sparkle-core/{p-c3986a52.entry.js → p-bd062288.entry.js} +1 -1
  214. package/dist/sparkle-core/{p-c1279cc9.entry.js → p-beb401e3.entry.js} +1 -1
  215. package/dist/sparkle-core/p-bef34cfe.entry.js +1 -0
  216. package/dist/sparkle-core/{p-6bf07a28.js → p-c1c59771.js} +1 -1
  217. package/dist/sparkle-core/p-c4104929.entry.js +1 -0
  218. package/dist/sparkle-core/{p-173d5461.entry.js → p-c748f64e.entry.js} +1 -1
  219. package/dist/sparkle-core/{p-d4a435f8.entry.js → p-c753207f.entry.js} +1 -1
  220. package/dist/sparkle-core/{p-18e62133.entry.js → p-c8ae9e47.entry.js} +1 -1
  221. package/dist/sparkle-core/p-c8ed0575.js +1 -0
  222. package/dist/sparkle-core/{p-8fe2e51f.entry.js → p-c96b24bd.entry.js} +2 -2
  223. package/dist/sparkle-core/p-ce13171b.entry.js +1 -0
  224. package/dist/sparkle-core/{p-5c9aa1f9.entry.js → p-d00f550b.entry.js} +1 -1
  225. package/dist/sparkle-core/p-d394eed1.entry.js +1 -0
  226. package/dist/sparkle-core/p-d48e95c1.entry.js +1 -0
  227. package/dist/sparkle-core/p-d4b1a14a.entry.js +1 -0
  228. package/dist/sparkle-core/{p-b81e20fe.entry.js → p-d56efeac.entry.js} +1 -1
  229. package/dist/sparkle-core/{p-932bfb69.entry.js → p-d59a5984.entry.js} +1 -1
  230. package/dist/sparkle-core/p-d8aff730.entry.js +1 -0
  231. package/dist/sparkle-core/{p-5d2e54ee.entry.js → p-da8921d0.entry.js} +1 -1
  232. package/dist/sparkle-core/{p-a1cab0f3.js → p-e08059b6.js} +2 -2
  233. package/dist/sparkle-core/p-e1aee41e.entry.js +1 -0
  234. package/dist/sparkle-core/{p-5598650a.entry.js → p-ec4d22e3.entry.js} +1 -1
  235. package/dist/sparkle-core/{p-eb70a23c.entry.js → p-ed3eed72.entry.js} +1 -1
  236. package/dist/sparkle-core/{p-a7cc0052.entry.js → p-ee0717e1.entry.js} +1 -1
  237. package/dist/sparkle-core/p-ef2dace6.js +4 -0
  238. package/dist/sparkle-core/{p-2ee6a5f9.entry.js → p-f1106984.entry.js} +1 -1
  239. package/dist/sparkle-core/p-f61ca75c.entry.js +1 -0
  240. package/dist/sparkle-core/{p-e225581a.js → p-f6bafe1d.js} +1 -1
  241. package/dist/sparkle-core/{p-1df05176.js → p-ff4d6858.js} +1 -1
  242. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  243. package/dist/types/components/sparkle-intro/sparkle-intro.d.ts +7 -0
  244. package/dist/types/components.d.ts +13 -0
  245. package/dist/types/models/course.model.d.ts +1 -8
  246. package/package.json +2 -2
  247. package/dist/cjs/student.service-744c3155.js +0 -77
  248. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
  249. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
  250. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
  251. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
  252. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
  253. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
  254. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
  255. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
  256. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
  257. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
  258. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
  259. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
  260. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
  261. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -18
  262. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -89
  263. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
  264. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
  265. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
  266. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
  267. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
  268. package/dist/sparkle-core/p-03189863.js +0 -1
  269. package/dist/sparkle-core/p-1339830f.entry.js +0 -1
  270. package/dist/sparkle-core/p-145e40f5.entry.js +0 -1
  271. package/dist/sparkle-core/p-547b70c6.entry.js +0 -1
  272. package/dist/sparkle-core/p-6bbabb80.entry.js +0 -1
  273. package/dist/sparkle-core/p-950effe7.entry.js +0 -1
  274. package/dist/sparkle-core/p-d8d3524a.js +0 -1
  275. package/dist/sparkle-core/p-df0070c5.entry.js +0 -352
  276. package/dist/sparkle-core/p-e0fced48.entry.js +0 -1
  277. package/dist/sparkle-core/p-e72d4450.js +0 -4
  278. package/dist/sparkle-core/p-fc933591.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e,h as t,e as i,H as a,i as s,F as o,c as n,k as r}from"./p-9babd345.js";import{m as l}from"./p-f6bafe1d.js";import{S as h,t as d,s as p}from"./p-034306e2.js";import{T as c,A as u,H as m,c as g}from"./p-c1c59771.js";import{F as f,f as b}from"./p-44c23f72.js";import{m as v,h as k}from"./p-b17dd6df.js";import{A as x,g as w,F as y,f as N}from"./p-4a72626a.js";import{E as S}from"./p-b226f54d.js";import{A as j}from"./p-9a443f51.js";import{b as O,S as I,c as P,d as C,e as E}from"./p-4bd4dab2.js";import{A as L,s as T}from"./p-7c1f59ec.js";import{u as D}from"./p-232cc3bc.js";import{S as A}from"./p-3ff617d5.js";import{i as U}from"./p-6f45db93.js";import{m as _,a as F,s as z,b as M,c as R,d as V,h as G,e as H,f as Y,g as q,l as B}from"./p-1728ead7.js";import{A as W}from"./p-052caa63.js";import{s as $,a as X,b as J,g as K,i as Q,c as Z}from"./p-2bd4c60e.js";import"./p-6fd4985d.js";import"./p-4f144efa.js";import"./p-fef04ab5.js";import"./p-87549bb7.js";import"./p-5d409601.js";const ee=class{constructor(t){e(this,t),this.courseName="",this.hidden=!1,this.frameRequested=!1,this.prevScroll=0}handleScroll(){this.frameRequested||(requestAnimationFrame((()=>{const{scrollY:e}=window;this.hidden=e>60&&e>this.prevScroll,this.prevScroll=e,this.frameRequested=!1})),this.frameRequested=!0)}componentWillLoad(){}hostData(){return{class:{hidden:this.hidden}}}openEnd(){l.enable(!0,"students"),l.open("students")}async openOnlineStudentsSidebar(){document.getElementById("#onlineStudents")}__stencil_render(){return t("header",null,t("a",{href:"/home"},t("div",{class:"HeaderLogo"},this.courseName)),t("header-mobile-collapse",null,t("div",{class:"SectionNav-tabs"}),t("nav",{class:"UtilNav"},t("sparkle-button",{href:"/login",round:!0},"Login"),t("sparkle-button",{href:"/signup",primary:!0,round:!0},"Get Started"),t("slot",{name:"logo"}))))}get el(){return i(this)}render(){return t(a,this.hostData(),this.__stencil_render())}};ee.style='sparkle-facilitator-header{background-color:var(--background);box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);color:var(--text-color--light);display:block;font-size:14px;font-weight:500;line-height:1;position:fixed;top:0;left:0;transform:translateY(0);transition:transform 200ms ease;user-select:none;width:100%;white-space:nowrap;z-index:2}@media (min-width: 768px){.Layout:not(.is-menu-toggled) sparkle-facilitator-header.hidden{transform:translateY(-100%)}}@media (max-width: 768px){.Layout.is-menu-toggled sparkle-facilitator-header.hidden{transform:translateY(-100%)}}sparkle-facilitator-header header{align-items:center;display:flex;height:var(--header-height);padding:0 1.4rem 0 0.8rem}sparkle-facilitator-header a{color:inherit;font-weight:500;padding:10px 0}sparkle-facilitator-header ion-icon{font-size:16px;color:#B2BECD}sparkle-facilitator-header .link-active{color:var(--ion-color-sparkle)}@media (hover: hover){sparkle-facilitator-header a:not(.link-active):hover{color:var(--text-color)}}sparkle-facilitator-header sparkle-menu-toggle{flex:none;margin-right:0.75em}sparkle-facilitator-header .HeaderLogo{color:var(--text-color--dark);font-family:var(--heading-font-family);height:25px;margin-right:2em;display:flex;justify-content:center;align-items:center;font-size:1.5em}sparkle-facilitator-header .SectionNav stencil-route{display:flex}sparkle-facilitator-header .SectionNav .Dropdown{align-self:center;color:var(--text-color);margin-right:0.75em}sparkle-facilitator-header .SectionNav .Dropdown-button{border:solid 1px #DEE3EA;border-radius:6px;color:var(--text-color--dark);padding:10px;transition:border-color 100ms ease}sparkle-facilitator-header .SectionNav .Dropdown.is-open .Dropdown-button{border-color:var(--line-rule-color)}sparkle-facilitator-header .SectionNav .Dropdown-panel{min-width:180px}sparkle-facilitator-header .SectionNav .Dropdown-panel a{display:flex;justify-content:space-between}sparkle-facilitator-header .SectionNav .Dropdown-panel svg{height:1em;width:1em}sparkle-facilitator-header .SectionNav .Dropdown-panel .Nav-link{margin-left:0;margin-right:0}sparkle-facilitator-header .SectionNav-tabs>*{align-items:center;display:inline-flex;height:var(--header-height);margin-right:1em;padding:0px 1em;position:relative}sparkle-facilitator-header .SectionNav-tabs .link-active:after{background-color:currentColor;bottom:0;content:"";display:block;height:2px;left:0;position:absolute;width:100%}sparkle-facilitator-header .UtilNav{align-items:center;display:flex;font-size:12px;margin-left:auto}sparkle-facilitator-header .UtilNav>*{margin-left:1em}sparkle-facilitator-header .UtilNav .Dropdown.is-open{color:var(--text-color)}sparkle-facilitator-header .UtilNav .Dropdown-button{padding:10px 0}@media (hover: hover){sparkle-facilitator-header .UtilNav .Dropdown-button:hover{color:var(--text-color)}}sparkle-facilitator-header .UtilNav .Dropdown-panel{font-size:14px}sparkle-facilitator-header .girls-inc-logo{display:block;max-width:40px;max-height:40px;width:auto;height:auto}';class te{constructor(){}static getInstance(){return te.instance||(te.instance=new te),te.instance}async UpdateTocPageInfo(e){c.state.pageInfo=e}}const ie=class{constructor(t){e(this,t),this.pageDidLoad=s(this,"pageDidLoad",7),this.isLesson=!1,this.notesPage={title:null,path:null,body:null,pageInfo:null},this.lessonNotesPage={title:null,path:null,body:null,pageInfo:null},this.page={title:null,path:null,body:null,pageInfo:null},this.onlineStudents=[],this.activetab="FACILITATOR_NOTES",this.validateFetch=e=>{if(!e.ok)throw e;return e.json()},this.handleNotesPage=e=>{this.badFetch=null,this.notesPage=e,this.pageDidLoad.emit({pageInfo:this.notesPage.pageInfo})},this.handleLessonNotesPage=e=>{this.badFetchLessonNotes=null,this.lessonNotesPage=e},this.handleNewPage=e=>{this.page=e,this.page=Object.assign(Object.assign({},this.page),{nextUrl:"/presentation/teacher"+this.page.nextUrl,previousUrl:"/presentation/teacher"+this.page.previousUrl}),te.getInstance().UpdateTocPageInfo(this.page.pageInfo)},this.handleBadFetch=e=>{this.badFetch=e,this.notesPage={title:e.statusText,body:null,path:null,pageInfo:null}},this.handleLessonNotesBadFetch=e=>{this.badFetchLessonNotes=e,this.lessonNotesPage={title:e.statusText,body:null,path:null,pageInfo:null}}}async componentWillLoad(){return await this.fetchClasses(),this.fetchNotesPage(this.notesPath)&&this.fetchPage(this.path)}componentDidLoad(){this.isLesson=c.state.pageInfo.pageId>0,this.isLesson||(this.activetab="ONLINE_STUDENTS")}async fetchClasses(){await f.getInstance().fetchClasses()}fetchNotesPage(e,t){if(null===e||e===t)return;e=/^\/docs\/pages\/[a-z]{2}\.json$/.test(e)?e.replace(".json","/index.json"):e;let i=this.getLessonPath(e);return console.log(i),fetch(e).then(this.validateFetch).then(this.handleNotesPage).catch(this.handleBadFetch)&&fetch(i).then(this.validateFetch).then(this.handleLessonNotesPage).catch(this.handleLessonNotesBadFetch)}getLessonPath(e){let t=e.split("/");return t.pop(),t.join("/")+"/lesson-notes.json"}fetchPage(e,t){if(null!==e&&e!==t)return"Connected"==h.getInstance().connection.connectionState&&h.getInstance().callSignalR("NavigateFacilitatorPresentationCourseTo",{url:this.path.replace(".json","")}),e=/^\/docs\/pages\/[a-z]{2}\.json$/.test(e)?e.replace(".json","/index.json"):e,fetch(e).then(this.validateFetch).then(this.handleNewPage).catch(this.handleBadFetch)}disconnectedCallback(){te.getInstance().UpdateTocPageInfo(null)}setDocumentMeta(e){const{title:t,meta:i={}}=e,a={title:document.head.querySelectorAll(".meta-title"),description:document.head.querySelectorAll(".meta-description"),url:document.head.querySelectorAll('.meta-url, link[rel="canonical"]'),image:document.head.querySelectorAll(".meta-image")},s=(e,t)=>{e.forEach((e=>{["href","content"].forEach((i=>{e.hasAttribute(i)&&e.setAttribute(i,t(e.getAttribute(i)))}))}))},o=()=>{const e=(/^\/docs\/pages.*$/.test(this.notesPath),"Sparkle");return i.title||t?`${t} - ${e}`:e};document.title=o(),s(a.title,o),s(a.url,(e=>{const t="/docs/",i=location.pathname.split(t)[1];return e.split(t)[0]+t+i})),s(a.description,(()=>i.description||"Sparkle is the free open-source platform for creating learning content on web, mobile and desktop.")),s(a.image,(()=>i.image||"https://girlsinclearning.com//images/logo-primary.png"))}hostData(){return{class:{[this.notesPage.pageClass]:"string"==typeof this.notesPage.pageClass}}}renderNavigation(){return t("div",{class:"p-2 d-md-flex justify-content-md-center"},t("div",{class:"btn-group btn-group-sm",role:"group","aria-label":"Basic outlined example"},t("button",{type:"button",class:"btn btn-outline-primary"},"Prev"),t("input",{type:"text",class:"form-control",placeholder:"Input group example","aria-label":"Input group example","aria-describedby":"btnGroupAddon",value:this.path.replace("index",""),readOnly:!0}),t("button",{type:"button",class:"btn btn-outline-primary"},"Next")))}renderTabs(){return t("main",{class:"no-demo"},t("ul",{class:"nav nav-tabs"},this.isLesson&&t(o,null,t("li",{class:"nav-item"},t("a",{class:"nav-link "+("FACILITATOR_NOTES"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="FACILITATOR_NOTES"},"Facilitator Notes")),t("li",{class:"nav-item"},t("a",{class:"nav-link "+("NOTES"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="NOTES"},"Notes")),t("li",{class:"nav-item"},t("a",{class:"nav-link "+("LESSON_NOTES"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="LESSON_NOTES"},"Lesson Notes"))),t("li",{class:"nav-item"},t("a",{class:"nav-link "+("ONLINE_STUDENTS"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="ONLINE_STUDENTS"},"Online Students")),t("li",{class:"nav-item"},t("a",{class:"nav-link "+("DASHBOARD"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="DASHBOARD"},"Dashboard")),t("li",{class:"nav-item"},t("a",{class:"nav-link "+("EXPORT"==this.activetab?"active":""),href:"javascript:void(0)",onClick:()=>this.activetab="EXPORT"},"Export"))),t("div",{class:"tab-content"},"FACILITATOR_NOTES"==this.activetab&&this.renderFacilitatorNotes(),"NOTES"==this.activetab&&t("sparkle-facilitator-notes",null),"LESSON_NOTES"==this.activetab&&this.renderLessonNotes(),"ONLINE_STUDENTS"==this.activetab&&t("sparkle-online-students",{path:this.path}),"DASHBOARD"==this.activetab&&t("sparkle-facilitator-dashboard",null),"EXPORT"==this.activetab&&t("sparkle-export-lessons",null)))}renderLessonNotes(){const{lessonNotesPage:e}=this,i=d[e.template]||d.default;return this.badFetchLessonNotes?d.error(this.badFetch):t(i,{page:e})}renderFacilitatorNotes(){const{notesPage:e}=this,i=d[e.template]||d.default;return this.badFetch?d.error(this.badFetch):t(i,{page:e})}__stencil_render(){console.log(b.state.classes);const{page:e}=this,i=this.renderTabs();return t("div",{class:"container"},t("div",{class:"d-flex justify-content-between align-items-center"},t("sparkle-page-footer",{page:e}),t("div",null,t("select",{class:"form-select","aria-label":"Default select example"},b.state.classes.map((e=>t("option",null,e.ClassName)))))),i)}static get watchers(){return{notesPath:["fetchNotesPage"],path:["fetchPage"],page:["setDocumentMeta"]}}render(){return t(a,this.hostData(),this.__stencil_render())}};ie.style=".Error{align-items:center;background-color:var(--offset-background);color:var(--text-color--light);display:flex;flex-direction:column;justify-content:center;line-height:1;white-space:nowrap}.Error.full-screen{padding-bottom:3rem}.Error>*{margin:10px}.Error h1,.Error div{color:inherit;font-size:3rem}.Error div{text-shadow:3px 3px 3px rgba(0,0,0,0.1)}.Error p{font-size:18px}sparkle-facilitator-page{display:grid;font-size:16px;grid-template-columns:1fr;line-height:2;margin-top:var(--header-height);overflow-x:hidden;transform:var(--page-transform, none);transition:transform 200ms cubic-bezier(0.2, 1, 0.2, 1);--page-padding:2rem;padding:20px}@media (min-width: 1234px){sparkle-facilitator-page{grid-template-columns:1fr}}@media (min-width: 1800px){sparkle-facilitator-page{grid-template-columns:1fr}}sparkle-facilitator-page>main.column-1{position:relative;grid-column:1;margin-bottom:3rem;padding:var(--page-padding, 2rem 1rem);position:relative}sparkle-facilitator-page>main.column-2{position:relative;grid-column:1;margin-bottom:3rem;padding:var(--page-padding, 2rem 1rem);position:relative}sparkle-facilitator-page sparkle-pagination{grid-column:1 / -1;border:none;--page-padding:0rem 1rem}sparkle-facilitator-page .full-screen{grid-column:1 / -1;height:calc(100vh - var(--header-height));margin-bottom:0;overflow:hidden;padding:0}sparkle-facilitator-page sparkle-page-footer{margin-top:0rem}sparkle-facilitator-page .page-heading-encapsulation{text-transform:uppercase;background:transparent;color:#2d4665;border:1px solid #dee3ea;border-radius:14px;height:24px;padding:2px 8px;font-weight:600;font-size:10px;line-height:14px;display:inline-flex;align-items:center;align-self:center;justify-self:flex-end;letter-spacing:0.08em;float:right}sparkle-facilitator-page .page-heading-encapsulation:hover{border-color:#92a1b3}sparkle-facilitator-page h1{display:flex;justify-content:space-between;margin-top:2rem;margin-bottom:1rem}sparkle-facilitator-page h2 a[href^='#'],sparkle-facilitator-page h3 a[href^='#'],sparkle-facilitator-page h4 a[href^='#'],sparkle-facilitator-page h5 a[href^='#'],sparkle-facilitator-page h6 a[href^='#']{color:inherit;position:relative}sparkle-facilitator-page h2 a[href^='#']:before,sparkle-facilitator-page h3 a[href^='#']:before,sparkle-facilitator-page h4 a[href^='#']:before,sparkle-facilitator-page h5 a[href^='#']:before,sparkle-facilitator-page h6 a[href^='#']:before{content:'#';opacity:0;padding-right:5px;position:absolute;right:100%;transition:opacity 100ms ease}sparkle-facilitator-page h2 a[href^='#']:hover:before,sparkle-facilitator-page h3 a[href^='#']:hover:before,sparkle-facilitator-page h4 a[href^='#']:hover:before,sparkle-facilitator-page h5 a[href^='#']:hover:before,sparkle-facilitator-page h6 a[href^='#']:hover:before{opacity:1}sparkle-facilitator-page h2 code,sparkle-facilitator-page h3 code,sparkle-facilitator-page h4 code,sparkle-facilitator-page h5 code,sparkle-facilitator-page h6 code{background:none;font-size:inherit}sparkle-facilitator-page aside{float:right;margin-left:20px;margin-bottom:20px}@media (min-width: 1234px){sparkle-facilitator-page main.no-demo .page-meta{position:fixed;right:0;top:100px;width:240px;transition:0.2s transform ease}sparkle-header.hidden~stencil-route sparkle-facilitator-page main.no-demo .page-meta{transform:translateY(-60px)}}sparkle-facilitator-page main.has-demo .page-meta internal-ad{display:none}sparkle-facilitator-page .tab-content{padding:20px}";class ae{constructor(){}static getInstance(){return ae.instance||(ae.instance=new ae),ae.instance}async register(e){const t={"Content-Type":"application/json"};let i;u.state.loading=!0;try{i=await m.http.post("api/Account/Register",e,{headers:t}),i.Succeeded&&(u.state.loading=!1)}catch(e){return u.state.loading=!1,e}return i}async forgotPassword(e){let t;u.state.loading=!0;try{t=await m.http.post("api/Account/Forgot-Password",e),t.Succeeded&&(u.state.loading=!1)}catch(e){return u.state.loading=!1,e}return t}async resetPassword(e){let t;u.state.loading=!0;try{t=await m.http.post("api/Account/reset-password",e),t.Succeeded&&(u.state.loading=!1)}catch(e){return u.state.loading=!1,e}return t}}const se=class{constructor(t){e(this,t),this.formControls={email:{isValid:!1,value:"",validate:e=>!!e}},this.submitted=!1}changeFormValue(e,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[e]:Object.assign(Object.assign({},this.formControls[e]),{value:t,isValid:this.formControls[e].validate(t)})})}async handleSubmit(e){e.preventDefault(),this.submitted=!0;let t=!0;for(let e in this.formControls){let i=this.formControls[e];i.validate(i.value),i.isValid||(t=!1)}if(t){let e=await ae.getInstance().forgotPassword({Email:this.formControls.email.value,ClientURL:window.location.origin+"/reset-password"});e.Succeeded?this.history.replace("/login",{}):e.Failed&&e.Errors.length>0&&(this.validationErrors=e.Errors)}}render(){return[t("div",null,t("div",{class:"login-logo"},t("img",{src:n("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),t("sparkle-validation-error",{errors:this.validationErrors}),t("form",{novalidate:"true",onSubmit:e=>this.handleSubmit(e)},t("ion-list",{"no-lines":!0},t("ion-item",{lines:"none"},"Enter your email address and we will send you a link to reset your password."),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Email"),t("ion-input",{name:"email",type:"text",value:this.formControls.email.value,onInput:e=>this.changeFormValue("email",e.target.value),spellcheck:!1,autocapitalize:"off"})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.email.isValid||!1===this.submitted,class:"ion-padding-left"},"Email is required")),t("br",null),t("div",{class:"ion-padding"},t("ion-button",{type:"submit",expand:"block",disabled:u.state.loading},u.state.loading&&t("ion-spinner",{name:"dots"})," SEND PASSWORD RESET EMAIL")))))]}};se.style="sparkle-forgot-password .list{margin-bottom:0}";const oe=class{constructor(t){e(this,t)}async componentDidLoad(){await x.getInstance().getAllGoals()}async presentAddGoalModal(e){const t=await v.create({component:"sparkle-goal-form",cssClass:"auto-height",componentProps:{appData:e}});await t.present()}render(){return t(a,null,t("h2",null,"MY GOALS"),t("ion-item",{lines:"none"},t("ion-button",{size:"default",color:"primary",slot:"end",onClick:()=>this.presentAddGoalModal(null)},t("ion-icon",{name:"add-outline"}),"Add")),t("div",{class:"ion-padding"},t("sparkle-cards",null,w.state.goals.map((e=>t("div",{style:{position:"relative"}},t("sparkle-goal-item",{goal:e.AppData,onEditGoal:()=>this.presentAddGoalModal(e)}))))),!w.state.goalsLoading&&0==w.state.goals.length&&t("div",{class:"text-center"},"No Goals"),w.state.goalsLoading&&t("div",{class:"text-center"},t("ion-spinner",{name:"dots"}))))}};oe.style=":host{display:block}sparkle-dropdown a{color:var(--text-color);padding:1em;cursor:pointer}";const ne=class{constructor(t){e(this,t),this.commentPosted=s(this,"commentPosted",7),this.postComment=async e=>{(await y.getInstance().createPostComment(e)).Succeeded&&this.commentPosted.emit()}}async componentDidLoad(){await y.getInstance().getAllPosts()}render(){return console.log(N.state.postIdLoading,"Loading"),t(a,null,N.state.posts.map((e=>t("sparkle-gww-item",{key:e.Id,post:e,onPostComment:this.postComment,loading:N.state.postIdLoading==e.Id}))))}};ne.style=":host{display:block}";const re=window.localStorage;class le{}le.LOCALSTORAGE_CLASSROOM_MODE="SPARKLE_CLASSROOM_MODE";const he=class{constructor(t){e(this,t),this.classRoomModeChanged=s(this,"classRoomModeChanged",7),this.hideClassRoomToggle=!1,this.courseName="",this.imageUrl="",this.classRoomMode=!0,this.hidden=!1,this.frameRequested=!1,this.prevScroll=0}handleScroll(){this.frameRequested||(requestAnimationFrame((()=>{const{scrollY:e}=window;this.hidden=e>60&&e>this.prevScroll,this.prevScroll=e,this.frameRequested=!1})),this.frameRequested=!0)}componentDidLoad(){var e;this.classRoomMode=null!==(e=function(e){try{if(re){const t=re.getItem(e);return JSON.parse(t)}}catch(e){return null}}(le.LOCALSTORAGE_CLASSROOM_MODE))&&void 0!==e&&e}hostData(){return{class:{hidden:this.hidden}}}toggleClassRoomMode(){var e,t;this.classRoomMode=!this.classRoomMode,e=le.LOCALSTORAGE_CLASSROOM_MODE,t=this.classRoomMode,new Promise(((i,a)=>{try{re&&re.setItem(e,JSON.stringify(t)),i()}catch(e){a(`Couldnt store object ${e}`)}})),this.classRoomModeChanged.emit(this.classRoomMode)}renderModeToggle(){return t("div",{class:"class-room-toggle-container"},t("div",{class:"class-room-mode-toggle-title"},"Classroom"),t("div",{class:"class-room-mode-toggle"},t("button",{class:1==this.classRoomMode?"is-selected":null,title:"Toggle classroom mode",onClick:()=>this.toggleClassRoomMode()},"On"),t("button",{class:0==this.classRoomMode?"is-selected":null,title:"Toggle classroom mode",onClick:()=>this.toggleClassRoomMode()},"Off")))}__stencil_render(){return t("header",null,t("sparkle-menu-toggle",{onClick:this.toggleClickFn}),t("a",{href:"/home"},t("div",{class:"HeaderLogo"},this.courseName)),t("header-mobile-collapse",null,t("div",{class:"SectionNav-tabs"},t("stencil-route-link",{url:"/home"},"Home")),t("nav",{class:"UtilNav"},this.authUser?t("sparkle-dropdown",{image:this.imageUrl,align:"center",label:"Account",class:"label-sm-only profile-dropdown"},t("section",null,t("stencil-route-link",{url:"/profile"},"My Profile"),t("stencil-route-link",{url:"/enrollment"},"My Enrollment"),t("a",{onClick:this.signoutClickFn},"Sign Out"))):[t("sparkle-button",{href:"/login",round:!0},"Login"),t("sparkle-button",{href:"/signup",primary:!0,round:!0},"Get Started")],!this.hideClassRoomToggle&&this.renderModeToggle(),t("slot",{name:"logo"}))))}render(){return t(a,this.hostData(),this.__stencil_render())}};he.style="sparkle-header{background-color:var(--background);box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);color:var(--text-color--light);display:block;font-size:14px;font-weight:500;line-height:1;position:fixed;top:0;left:0;transform:translateY(0);transition:transform 200ms ease;user-select:none;width:100%;white-space:nowrap;z-index:2}@media (min-width: 768px){.Layout:not(.is-menu-toggled) sparkle-header.hidden{transform:translateY(-100%)}}@media (max-width: 768px){.Layout.is-menu-toggled sparkle-header.hidden{transform:translateY(-100%)}}sparkle-header header{align-items:center;display:flex;height:var(--header-height);padding:0 1.4rem 0 0.8rem}sparkle-header a{color:inherit;font-weight:500;padding:10px 0}sparkle-header ion-icon{font-size:16px;color:#b2becd}sparkle-header .link-active{color:var(--ion-color-sparkle)}@media (hover: hover){sparkle-header a:not(.link-active):hover{color:var(--text-color)}}sparkle-header sparkle-menu-toggle{flex:none;margin-right:0.75em}sparkle-header .HeaderLogo{color:var(--text-color--dark);font-family:var(--heading-font-family);height:25px;margin-right:2em;display:flex;justify-content:center;align-items:center;font-size:1.5em}sparkle-header .SectionNav stencil-route{display:flex}sparkle-header .SectionNav .Dropdown{align-self:center;color:var(--text-color);margin-right:0.75em}sparkle-header .SectionNav .Dropdown-button{border:solid 1px #dee3ea;border-radius:6px;color:var(--text-color--dark);padding:10px;transition:border-color 100ms ease}sparkle-header .SectionNav .Dropdown.is-open .Dropdown-button{border-color:var(--line-rule-color)}sparkle-header .SectionNav .Dropdown-panel{min-width:180px}sparkle-header .SectionNav .Dropdown-panel a{display:flex;justify-content:space-between}sparkle-header .SectionNav .Dropdown-panel svg{height:1em;width:1em}sparkle-header .SectionNav .Dropdown-panel .Nav-link{margin-left:0;margin-right:0}sparkle-header .SectionNav-tabs>*{align-items:center;display:inline-flex;height:var(--header-height);margin-right:1em;padding:0px 1em;position:relative}sparkle-header .SectionNav-tabs .link-active:after{background-color:currentColor;bottom:0;content:'';display:block;height:2px;left:0;position:absolute;width:100%}sparkle-header .UtilNav{align-items:center;display:flex;font-size:12px;margin-left:auto}sparkle-header .UtilNav>*{margin-left:1em}sparkle-header .UtilNav .Dropdown.is-open{color:var(--text-color)}sparkle-header .UtilNav .Dropdown-button{padding:10px 0}@media (hover: hover){sparkle-header .UtilNav .Dropdown-button:hover{color:var(--text-color)}}sparkle-header .UtilNav .Dropdown-panel{font-size:14px}sparkle-header .class-room-toggle-container{display:flex;justify-content:start;align-items:center;padding-left:20px}sparkle-header .class-room-mode-toggle-title{padding-right:5px}sparkle-header .class-room-mode-toggle{align-items:center;display:flex;justify-content:center;width:90px;height:28px;background:var(--ion-color-sparkle-step-50);border-radius:18px}sparkle-header .class-room-mode-toggle button{background-color:transparent;border:none;border-radius:16px;color:#5b708b;cursor:pointer;font-family:var(--font-family);font-size:11px;letter-spacing:-0.02em;width:calc(50% - 2px);line-height:21px;padding-top:2px;transition:200ms background-color ease, 200ms color ease}sparkle-header .class-room-mode-toggle button:focus,sparkle-header .class-room-mode-toggle button:active{outline:none}sparkle-header .class-room-mode-toggle button.is-selected{background-color:var(--ion-color-sparkle);color:var(--ion-color-sparkle-contrast);font-weight:600;box-shadow:0px 2px 3px #a7b5c7}sparkle-header .girls-inc-logo{display:block;max-width:40px;max-height:40px;width:auto;height:auto}sparkle-header sparkle-dropdown.profile-dropdown .Dropdown-icon{height:30px;width:30px}sparkle-header sparkle-dropdown.profile-dropdown .Dropdown-arrow{height:30px}";const{state:de,reset:pe}=g({mediaUploading:!1}),ce={state:de,reset:pe};class ue{constructor(){}static getInstance(){return ue.instance||(ue.instance=new ue),ue.instance}async uploadImage(e){let t,i=new FormData;for(let t=0;t<e.length;t++)i.append("uploads[]",e[t],e[t].name);ce.state.mediaUploading=!0;try{t=await m.http.post("api/v1/MediaItems/Upload",i),t&&(ce.state.mediaUploading=!1)}catch(e){ce.state.mediaUploading=!1}return t}}const me=class{constructor(t){e(this,t),this.uploadedImageUrl="",this.heartRate=0,this.public=!0,this.submitted=!1}async postFeed(){const e=S.getInstance().get("sparkle"),t=await j.getInstance().loadJsonFile(e.tocPath);var i={PostText:O(this.heartRate),ExternalResourceUrl:this.uploadedImageUrl,IsPublic:this.public,MiniAppId:I.MY_HEALTH_APP_ID,CourseId:t.id,PostTextJSON:P(this.heartRate)};(await y.getInstance().createPost(i)).Succeeded&&this.history.replace("/home")}async uploadImage(e){if(this.submitted=!0,console.log(e.target.files),e.target.files&&e.target.files[0]){const t=await ue.getInstance().uploadImage(e.target.files);t.Succeeded&&t.Data&&t.Data.length>0&&(this.uploadedImageUrl=t.Data[0].FullImageUrl,console.log(this.uploadedImageUrl))}}selectFile(){this.el.querySelector("#fileInput").click()}render(){return t(a,null,t("div",null,t("h3",null,"MY HEALTH"),t("p",null,"This mini-app will help girls develop and instil good physical health habits"),t("ion-list",null,t("ion-list-header",null,"Select Heart Rate"),t("ion-item",{lines:"none"},t("ion-range",{min:0,max:150,step:1,snaps:!0,pin:!0,onIonChange:e=>this.heartRate=+e.detail.value},t("ion-icon",{size:"small",slot:"start",name:"pulse"}),t("ion-icon",{name:"pulse",size:"small"}),t("div",{slot:"end"},t("strong",null,this.heartRate)))),this.uploadedImageUrl&&t("ion-item",{lines:"none"},t("img",{class:"health-image",src:this.uploadedImageUrl})),t("ion-item",{lines:"none"},t("input",{type:"file",id:"fileInput",onChange:e=>this.uploadImage(e),style:{display:"none"},accept:"image/*"}),t("div",null,t("ion-button",{onClick:()=>this.selectFile(),disabled:ce.state.mediaUploading},ce.state.mediaUploading&&t("ion-spinner",{name:"dots"}),"Upload Image"))),t("ion-item",{lines:"none"},t("ion-label",null,"Share to Community Wall"),t("ion-checkbox",{slot:"start",onChange:e=>this.public=e.detail.checked,checked:!0})),t("ion-item",{lines:"none"},t("ion-button",{slot:"end",color:"primary",size:"default",onClick:()=>this.postFeed(),disabled:ce.state.mediaUploading||N.state.createPostLoading},N.state.createPostLoading&&t("ion-spinner",{name:"dots"})," POST")))))}get el(){return i(this)}};me.style=":host{display:block}.health-image{display:block;max-width:300px;max-height:200px;width:auto;height:auto}";const ge=class{constructor(t){e(this,t),this.userDidLogIn=s(this,"userDidLogIn",7),this.username={valid:!1,value:""},this.password={valid:!1,value:""},this.rememberMe={valid:!0,value:!1},this.submitted=!1}handleUsername(e){this.validateUsername(),this.username=Object.assign(Object.assign({},this.username),{value:e.target.value})}handlePassword(e){this.validatePassword(),this.password.value=e.target.value,this.password=Object.assign(Object.assign({},this.password),{value:e.target.value})}handleRememberMe(e){this.rememberMe=Object.assign(Object.assign({},this.password),{value:e.target.checked}),console.log(this.rememberMe.value)}validateUsername(){this.username=Object.assign(Object.assign({},this.username),this.username.value&&this.username.value.length>0?{valid:!0}:{valid:!1})}validatePassword(){if(this.password.value&&this.password.value.length>0)return this.password.valid=!0,void(this.password=Object.assign(Object.assign({},this.password),{valid:!0}));this.password=Object.assign(Object.assign({},this.password),{valid:!1})}async componentWillLoad(){this.destroyListener=u.onChange("authUser",(async e=>{this.notsignin=!e})),this.notsignin=!u.state.authUser}disconnectedCallback(){this.destroyListener&&this.destroyListener()}async onLogin(e){e.preventDefault(),this.validatePassword(),this.validateUsername(),this.submitted=!0,this.password.valid&&this.username.valid&&(await L.getInstance().authenticate({Email:this.username.value,Password:this.password.value,RememberClient:this.rememberMe.value}),sessionStorage.setItem("rememberMe",1==this.rememberMe.value?"1":"0"),this.userDidLogIn.emit({loginStatus:!0}))}async onSignup(e){e.preventDefault()}renderLogin(){return[t("div",null,t("div",{class:"login-logo"},t("img",{src:n("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),t("form",{novalidate:"true",onSubmit:e=>this.onLogin(e)},t("ion-list",{"no-lines":!0},t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Username"),t("ion-input",{name:"username",type:"text",value:this.username.value,onInput:e=>this.handleUsername(e),spellcheck:!1,autocapitalize:"off",required:!0})),t("ion-text",{color:"danger"},t("p",{hidden:this.username.valid||!1===this.submitted,class:"ion-padding-left"},"Username is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Password"),t("ion-input",{name:"password",type:"password",value:this.password.value,onInput:e=>this.handlePassword(e),required:!0})),t("ion-text",{color:"danger"},t("p",{hidden:this.password.valid||!1===this.submitted,class:"ion-padding-left"},"Password is required")),t("ion-item",{lines:"none"},t("ion-label",null,"Remember Me"),t("ion-checkbox",{slot:"start",checked:this.rememberMe.value,onIonChange:e=>this.handleRememberMe(e)})),t("ion-item",{lines:"none"},t("stencil-route-link",{slot:"end",url:"/forgot-password",exact:!0},"Forgot Password?"))),t("ion-row",null,t("ion-col",null,t("ion-button",{type:"submit",expand:"block",disabled:u.state.loading},u.state.loading&&t("ion-spinner",{name:"dots"})," Log In"))),t("ion-item",{lines:"none"},t("span",null," Not registered yet? ",t("stencil-route-link",{url:"/signup",exact:!0},"Sign Up")))))]}render(){return this.notsignin?this.renderLogin():t("stencil-router-redirect",{url:"home"})}};ge.style="sparkle-login .list{margin-bottom:0}";const fe=class{constructor(t){e(this,t),this.config={showRomanNumber:!1,showModuleIndex:!0,showSessionIndex:!0}}render(){return[t("header",null,t("sparkle-menu-toggle",{onClick:this.toggleClickFn}),t("stencil-route-link",{url:"/docs/"},t("div",{class:"MenuLogo"},this.toc.name))),t("stencil-route-switch",{scrollTopOffset:0,class:"Menu"},t("sparkle-nav",{toc:this.toc,config:this.config}))]}};fe.style="sparkle-menu{background-color:var(--background);border-right:solid 1px var(--line-rule-color);display:flex;flex-direction:column;height:100vh;left:0;position:fixed;top:0;transition:transform 200ms cubic-bezier(0.2, 1, 0.2, 1);transform:var(--menu-transform, none);width:var(--menu-width);z-index:1}sparkle-menu>header{align-items:center;border-bottom:solid 1px var(--line-rule-color);display:flex;flex:none;height:var(--header-height);padding:0 1.4rem 0 0.8rem;user-select:none}sparkle-menu sparkle-menu-toggle{margin-right:0.75em}sparkle-menu .MenuLogo{color:var(--text-color--dark);font-family:var(--heading-font-family);height:25px}sparkle-menu>.Menu{overflow-y:auto;-webkit-overflow-scrolling:touch}sparkle-menu nav{padding:2rem 1.5rem}.MenuControls{border-bottom:solid 1px var(--line-rule-color);box-shadow:0 5px 10px -10px rgba(0, 0, 0, 0.1);font-size:13px;padding:1em}.CourseSelect,.CourseSelect .Dropdown,.CourseSelect .Dropdown-button{width:100%}.CourseSelect-course{align-items:center;display:flex}.CourseSelect-icon{height:14px;width:14px;margin-right:0.5em}.CourseSelect .Select-option{padding-left:0.75em}";const be=class{constructor(t){e(this,t),this.feelingItems=["Anger","Fear","Disgust","Happiness","Sadness","Suprise","Neutral","Anxiety","Love","Depression","Contempt","Pride","Shame","Envy"],this.intensityItems=["1","2","3","4","5","6","7","8","9","10"],this.locationItems=["anger.jpg","fear.jpg","disgust.jpg","happiness.jpg","sadness.jpg","neutral.jpg","anxiety.jpg","love.jpg","depression.jpg","contempt.jpg","pride.jpg","shame.jpg","envy.jpg"],this.feeling=this.feelingItems[0],this.intensity=this.intensityItems[0],this.location=this.locationItems[0],this.public=!0,this.submitted=!1,this.currentStep="FEELING"}back(){"LOCATION"==this.currentStep?this.currentStep="INTENSITY":"INTENSITY"==this.currentStep&&(this.currentStep="FEELING")}async next(){if("FEELING"==this.currentStep)this.currentStep="INTENSITY";else if("INTENSITY"==this.currentStep)this.currentStep="LOCATION";else if("LOCATION"==this.currentStep){const t=S.getInstance().get("sparkle");var e={CourseId:(await j.getInstance().loadJsonFile(t.tocPath)).id,PostText:C(this.feeling,this.intensity,n("../assets/img/mood/"+this.location)),PostTextJSON:E(this.feeling,this.intensity,n("../assets/img/mood/"+this.location)),ExternalResourceUrl:"",IsPublic:this.public,MiniAppId:I.MY_MOOD_APP_ID};(await y.getInstance().createPost(e)).Succeeded&&this.history.replace("/home")}}render(){const e="LOCATION"==this.currentStep?"SUBMIT":"NEXT";return t(a,null,t("div",{class:"FEELING"==this.currentStep?"":"hide"},t("ion-list",null,t("ion-radio-group",{name:"feeling",value:this.feeling,onIonChange:e=>this.feeling=e.detail.value},t("ion-list-header",null,t("ion-label",null,"FEELING")),this.feelingItems.map((e=>t("ion-item",null,t("ion-label",null,e),t("ion-radio",{slot:"start",value:e}))))))),t("div",{class:"INTENSITY"==this.currentStep?"":"hide"},t("ion-list",null,t("ion-radio-group",{name:"intesity",value:this.intensity,onIonChange:e=>this.intensity=e.detail.value},t("ion-list-header",null,t("ion-label",null,"INTENSITY")),this.intensityItems.map((e=>t("ion-item",null,t("ion-label",null,e),t("ion-radio",{slot:"start",value:e}))))))),t("div",{class:"LOCATION"==this.currentStep?"":"hide"},t("ion-list",null,t("ion-radio-group",{name:"location",value:this.location,onIonChange:e=>this.location=e.detail.value},t("ion-list-header",null,t("ion-label",null,t("h3",null,"LOCATION"))),this.locationItems.map((e=>t("ion-item",null,t("ion-label",null,t("img",{src:n("../assets/img/mood/"+e)})),t("ion-radio",{slot:"start",value:e}))))),t("ion-item",{lines:"none"},t("ion-label",null,"Share to Community Wall"),t("ion-checkbox",{slot:"start",onChange:e=>this.public=e.detail.checked,checked:!0})))),t("ion-item",{lines:"none"},"FEELING"!=this.currentStep&&t("ion-button",{size:"default",slot:"start",onClick:()=>this.back()},"BACK"),t("ion-button",{slot:"end",color:"primary",size:"default",onClick:()=>this.next(),disabled:N.state.createPostLoading},N.state.createPostLoading&&t("ion-spinner",{name:"dots"}),e)))}};be.style=":host{display:block}.show{display:block}.hide{display:none}";const ve=class{constructor(t){e(this,t),this.pageDidLoad=s(this,"pageDidLoad",7),this.presentation=!1,this.page={title:null,path:null,body:null,pageInfo:null},this.isLesson=!1,this.handleFacilitatorNavigationChange=e=>{this.history.replace(e,{})},this.validateFetch=e=>{if(!e.ok)throw e;return e.json()},this.handleNewPage=e=>{this.badFetch=null,this.page=e,this.presentation&&(this.page=Object.assign(Object.assign({},this.page),{previousUrl:"/presentation"+this.page.previousUrl,nextUrl:"/presentation"+this.page.nextUrl})),te.getInstance().UpdateTocPageInfo(this.page.pageInfo),this.isLesson=this.page.pageInfo.pageId>0,this.pageDidLoad.emit({pageInfo:this.page.pageInfo})},this.handleBadFetch=e=>{this.badFetch=e,this.page={title:e.statusText,body:null,path:null,pageInfo:null}}}componentWillLoad(){if(this.path)return this.fetchPage(this.path)}componentDidLoad(){this.presentation&&p.onChange("connected",(e=>{e&&h.getInstance().connection.on("NavigateFacilitatorPresentationCourseTo",this.handleFacilitatorNavigationChange)}))}fetchPage(e,t){if("Connected"==h.getInstance().connection.connectionState&&(h.getInstance().callSignalR("OnStudentNavigate",{url:window.location.href}),this.presentation&&(console.log("register listener"),h.getInstance().connection.on("NavigateFacilitatorPresentationCourseTo",this.handleFacilitatorNavigationChange))),null!==e&&e!==t)return e=/^\/docs\/pages\/[a-z]{2}\.json$/.test(e)?e.replace(".json","/index.json"):e,fetch(e).then(this.validateFetch).then(this.handleNewPage).catch(this.handleBadFetch)}disconnectedCallback(){te.getInstance().UpdateTocPageInfo(null)}setDocumentMeta(e){const{title:t,meta:i={}}=e,a={title:document.head.querySelectorAll(".meta-title"),description:document.head.querySelectorAll(".meta-description"),url:document.head.querySelectorAll('.meta-url, link[rel="canonical"]'),image:document.head.querySelectorAll(".meta-image")},s=(e,t)=>{e.forEach((e=>{["href","content"].forEach((i=>{e.hasAttribute(i)&&e.setAttribute(i,t(e.getAttribute(i)))}))}))},o=()=>{const e=(/^\/docs\/pages\/appflow.*$/.test(this.path),"Sparkle");return i.title||t?`${t} - ${e}`:e};document.title=o(),s(a.title,o),s(a.url,(e=>{const t="/docs/",i=location.pathname.split(t)[1];return e.split(t)[0]+t+i})),s(a.description,(()=>i.description||"Sparkle is the free open-source platform for creating learning content on web, mobile and desktop.")),s(a.image,(()=>i.image||"https://girlsinclearning.com//images/logo-primary.png"))}hostData(){return{class:{[this.page.pageClass]:"string"==typeof this.page.pageClass}}}async presentFeedbackModal(){const e=await v.create({component:"sparkle-feedback",cssClass:"sparkle-modal sparkle-feedback-modal"});await e.present()}async openProjectorPage(){D.state.user.FacilitatorClassList.length>1?await this.presentAlertClasses():this.openWindows()}async presentAlertClasses(){var e=[];D.state.user.FacilitatorClassList.forEach(((t,i)=>e.push({name:"radio"+i,type:"radio",label:t.CourseName,value:t.CourseClassId})));const t=await k.create({header:"Classes",inputs:e,buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:()=>{}},{text:"Ok",handler:()=>{}}]});await t.present()}openWindows(){window.open(window.location.origin+"/presentation"+this.path.replace(".json",""),"_blank"),setTimeout((()=>{window.open(window.location.origin+"/presentation/teacher"+this.path.replace(".json",""),"_blank")}),500)}renderControls(){return u.state.isAuthenticated?t("div",{class:"controls"},t("ion-button",{onClick:()=>this.presentFeedbackModal()},t("ion-icon",{name:"chatbox-outline"})),this.isLesson&&D.state.user&&D.state.user.Roles.indexOf("Facilitator")>-1&&t("ion-button",{onClick:()=>this.openProjectorPage()},t("ion-icon",{name:"desktop-outline"}))):""}__stencil_render(){if(this.path){const{page:e}=this;if(this.badFetch)return d.error(this.badFetch);const i=d[e.template]||d.default;return[t("main",{class:"no-demo"},this.renderControls(),t(i,{page:e}))]}return t("main",{class:"no-demo"},t("slot",null))}static get watchers(){return{path:["fetchPage"],page:["setDocumentMeta"]}}render(){return t(a,this.hostData(),this.__stencil_render())}};ve.style=".Error{align-items:center;background-color:var(--offset-background);color:var(--text-color--light);display:flex;flex-direction:column;justify-content:center;line-height:1;white-space:nowrap}.Error.full-screen{padding-bottom:3rem}.Error>*{margin:10px}.Error h1,.Error div{color:inherit;font-size:3rem}.Error div{text-shadow:3px 3px 3px rgba(0,0,0,0.1)}.Error p{font-size:18px}sparkle-page{display:grid;font-size:16px;grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 1fr;line-height:2;margin-left:var(--page-margin-left);margin-top:var(--header-height);overflow-x:hidden;transform:var(--page-transform, none);transition:transform 200ms cubic-bezier(0.2, 1, 0.2, 1)}@media (min-width: 1234px){sparkle-page{grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 3fr}}@media (min-width: 1800px){sparkle-page{grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 1fr 240px}}sparkle-page>main{position:relative;grid-column:2;margin-bottom:3rem;padding:var(--page-padding, 2rem 1rem);position:relative}sparkle-page sparkle-pagination{grid-column:1 / -1}sparkle-page .full-screen{grid-column:1 / -1;height:calc(100vh - var(--header-height));margin-bottom:0;overflow:hidden;padding:0}sparkle-page .page-heading-encapsulation{text-transform:uppercase;background:transparent;color:#2d4665;border:1px solid #dee3ea;border-radius:14px;height:24px;padding:2px 8px;font-weight:600;font-size:10px;line-height:14px;display:inline-flex;align-items:center;align-self:center;justify-self:flex-end;letter-spacing:0.08em;float:right}sparkle-page .page-heading-encapsulation:hover{border-color:#92a1b3}sparkle-page h1{display:flex;justify-content:space-between;margin-top:2rem;margin-bottom:1rem}sparkle-page h2 a[href^='#'],sparkle-page h3 a[href^='#'],sparkle-page h4 a[href^='#'],sparkle-page h5 a[href^='#'],sparkle-page h6 a[href^='#']{color:inherit;position:relative}sparkle-page h2 a[href^='#']:before,sparkle-page h3 a[href^='#']:before,sparkle-page h4 a[href^='#']:before,sparkle-page h5 a[href^='#']:before,sparkle-page h6 a[href^='#']:before{content:'#';opacity:0;padding-right:5px;position:absolute;right:100%;transition:opacity 100ms ease}sparkle-page h2 a[href^='#']:hover:before,sparkle-page h3 a[href^='#']:hover:before,sparkle-page h4 a[href^='#']:hover:before,sparkle-page h5 a[href^='#']:hover:before,sparkle-page h6 a[href^='#']:hover:before{opacity:1}sparkle-page h2 code,sparkle-page h3 code,sparkle-page h4 code,sparkle-page h5 code,sparkle-page h6 code{background:none;font-size:inherit}sparkle-page aside{float:right;margin-left:20px;margin-bottom:20px}@media (min-width: 1234px){sparkle-page main.no-demo .page-meta{position:fixed;right:0;top:100px;width:240px;transition:0.2s transform ease}sparkle-header.hidden~stencil-route sparkle-page main.no-demo .page-meta{transform:translateY(-60px)}}sparkle-page main.has-demo .page-meta internal-ad{display:none}sparkle-page .controls{display:flex;justify-content:flex-end}";const ke=class{constructor(t){e(this,t),this.formControls={password:{isValid:!1,value:"",validate:e=>!!e},confirmPassword:{isValid:!1,value:"",validate:e=>!!e}},this.submitted=!1}componentDidLoad(){console.log(this.history.location.query.code),console.log(this.history.location.query.email)}changeFormValue(e,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[e]:Object.assign(Object.assign({},this.formControls[e]),{value:t,isValid:this.formControls[e].validate(t)})})}async handleSubmit(e){e.preventDefault(),this.submitted=!0;let t=!0;for(let e in this.formControls){let i=this.formControls[e];i.validate(i.value),i.isValid||(t=!1)}if(t){let e=await ae.getInstance().resetPassword({Email:this.history.location.query.email,Token:this.history.location.query.code,Password:this.formControls.password.value,ConfirmPassword:this.formControls.confirmPassword.value});e.Succeeded?this.history.replace("/login",{}):e.Failed&&e.Errors.length>0&&(this.validationErrors=e.Errors)}}render(){return t(a,null,t("div",{class:"login-logo"},t("img",{src:n("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),t("sparkle-validation-error",{errors:this.validationErrors}),t("form",{novalidate:"true",onSubmit:e=>this.handleSubmit(e)},t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Password"),t("ion-input",{name:"password",type:"password",value:this.formControls.password.value,onInput:e=>this.changeFormValue("password",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.password.isValid||!1===this.submitted,class:"ion-padding-start"},"Password is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Confirm Password"),t("ion-input",{name:"confirmPassword",type:"password",value:this.formControls.confirmPassword.value,onInput:e=>this.changeFormValue("confirmPassword",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.confirmPassword.isValid||!1===this.submitted,class:"ion-padding-start"},"Confirm Password is required")),t("br",null),t("div",{class:"ion-padding"},t("ion-button",{type:"submit",expand:"block",disabled:u.state.loading},u.state.loading&&t("ion-spinner",{name:"dots"})," Reset Password"))))}};ke.style=":host{display:block}";const xe=class{constructor(t){e(this,t),this.history=null,this.handleStudentNavigationChange=e=>{this.history.replace(e,{})}}async componentWillLoad(){T({sparkle:Object.assign(Object.assign({},this.config),{prod:!0})}),await m.getInstance(),await m.init();var e=S.getInstance().get("sparkle");if(e&&e.auth&&e.auth.getToken()&&(u.state.isAuthenticated=!0),u.onChange("isAuthenticated",(async e=>{e&&(console.log("authenticated"),await A.getInstance().fetchUserConfiguration())})),u.state.isAuthenticated)return await A.getInstance().fetchUserConfiguration()}componentDidLoad(){h.getInstance().connection.on("NavigateStudentTo",this.handleStudentNavigationChange),u.onChange("isAuthenticated",(async e=>{e&&h.getInstance().start()})),u.state.isAuthenticated&&h.getInstance().start()}render(){return t(a,null,t("slot",null))}};U(xe),xe.style=":root{--page-padding:2rem 0}sparkle-root{overflow-y:auto}.Layout{display:flex;overflow-x:hidden}.Layout>stencil-route,.Layout>stencil-route-switch{width:100%}.Layout.is-menu-toggled{--menu-transform:translateX(calc(-1 * var(--menu-width)));--page-margin-left:0}@media (max-width: 768px){.Layout{--menu-transform:translateX(calc(-1 * var(--menu-width)));--page-padding:1.5rem;--page-margin-left:0}.Layout.is-menu-toggled{--menu-transform:none;--page-transform:translateX(var(--menu-width))}.Layout.is-menu-toggled sparkle-page>*{opacity:0.2;pointer-events:none}body.scroll-lock{overflow-y:hidden}}#messagesList{display:grid;font-size:12px;font-weight:bold;grid-template-columns:1fr minmax(0, var(--page-width, 720px)) 1fr;line-height:2;margin-left:var(--page-margin-left);margin-top:var(--header-height);overflow-x:hidden;transform:var(--page-transform, none);margin-top:56px;padding:4px;background:#e50739;color:#fff}";const we=class{constructor(t){e(this,t),this.formControls={firstName:{isValid:!1,value:"",validate:e=>!!e},lastName:{isValid:!1,value:"",validate:e=>!!e},userName:{isValid:!1,value:"",validate:e=>!!e},email:{isValid:!1,value:"",validate:e=>!!e},password:{isValid:!1,value:"",validate:e=>!!e},confirmPassword:{isValid:!1,value:"",validate:e=>!!e}},this.submitted=!1}changeFormValue(e,t){this.formControls=Object.assign(Object.assign({},this.formControls),{[e]:Object.assign(Object.assign({},this.formControls[e]),{value:t,isValid:this.formControls[e].validate(t)})})}async handleSubmit(e){e.preventDefault(),this.submitted=!0;let t=!0;for(let e in this.formControls){let i=this.formControls[e];i.validate(i.value),i.isValid||(t=!1)}if(t){let e=await ae.getInstance().register({Email:this.formControls.email.value,UserName:this.formControls.userName.value,FirstName:this.formControls.firstName.value,LastName:this.formControls.lastName.value,Password:this.formControls.password.value,ConfirmPassword:this.formControls.confirmPassword.value});e.Succeeded?this.history.replace("/login",{}):e.Failed&&e.Errors.length>0&&(this.validationErrors=e.Errors)}}render(){return[t("div",null,t("div",{class:"signup-logo"},t("img",{src:n("/assets/img/G3-Girls.jpg"),alt:"Girls Inc"})),t("sparkle-validation-error",{errors:this.validationErrors}),t("form",{onSubmit:e=>this.handleSubmit(e),novalidate:!0},t("ion-list",{"no-lines":!0},t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"First Name"),t("ion-input",{name:"firstName",type:"text",value:this.formControls.firstName.value,onInput:e=>this.changeFormValue("firstName",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.firstName.isValid||!1===this.submitted,class:"ion-padding-start"},"First Name is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Last Name"),t("ion-input",{name:"lastName",type:"text",value:this.formControls.lastName.value,onInput:e=>this.changeFormValue("lastName",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.lastName.isValid||!1===this.submitted,class:"ion-padding-start"},"Last Name is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Username"),t("ion-input",{name:"userName",type:"text",value:this.formControls.userName.value,onInput:e=>this.changeFormValue("userName",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.userName.isValid||!1===this.submitted,class:"ion-padding-start"},"Username is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Email"),t("ion-input",{name:"email",type:"text",value:this.formControls.email.value,onInput:e=>this.changeFormValue("email",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.email.isValid||!1===this.submitted,class:"ion-padding-start"},"Email is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Password"),t("ion-input",{name:"password",type:"password",value:this.formControls.password.value,onInput:e=>this.changeFormValue("password",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.password.isValid||!1===this.submitted,class:"ion-padding-start"},"Password is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Confirm Password"),t("ion-input",{name:"confirmPassword",type:"password",value:this.formControls.confirmPassword.value,onInput:e=>this.changeFormValue("confirmPassword",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.formControls.confirmPassword.isValid||!1===this.submitted,class:"ion-padding-start"},"Confirm Password is required"))),t("div",{class:"ion-padding"},t("ion-button",{type:"submit",expand:"block",disabled:u.state.loading},u.state.loading&&t("ion-spinner",{name:"dots"}),"Register")),t("ion-item",{lines:"none"},"Already have an account?  ",t("stencil-route-link",{url:"/login",exact:!0},"Log In"))))]}};we.style="sparkle-signup .list{margin-bottom:0}";const ye=class{constructor(t){e(this,t)}render(){return t(a,{class:{unauthorized:!0}},t("div",{class:"content"},t("h1",null,"401"),t("p",null,"Unauthorized")))}};ye.style=":host{display:block}.unauthorized{display:block;padding-left:var(--page-margin-left);padding-top:var(--header-height)}.content{text-align:center;padding-top:40px}";const Ne=class{constructor(t){e(this,t),this.enrollmentFormControls={ShortCode:{isValid:!1,value:"",validate:e=>!!e}},this.enrollmentFormSubmitted=!1}changeEnrollmentFormValue(e,t){this.enrollmentFormControls=Object.assign(Object.assign({},this.enrollmentFormControls),{[e]:Object.assign(Object.assign({},this.enrollmentFormControls[e]),{value:t,isValid:this.enrollmentFormControls[e].validate(t)})})}async handleEnrollmentFormSubmit(e){e.preventDefault(),this.enrollmentFormSubmitted=!0;let t=!0;for(let e in this.enrollmentFormControls){let i=this.enrollmentFormControls[e];i.validate(i.value),i.isValid||(t=!1)}if(t){let e=await A.getInstance().enrollClass({ShortCode:this.enrollmentFormControls.ShortCode.value});console.log(e)}}async leaveClass(e){let t=await A.getInstance().leaveClass({Id:e});console.log(t)}renderEnrollmentList(){return D.state.enrollmentList.length>0?D.state.enrollmentList.map((e=>t("ion-item",null,t("ion-label",null,e.Name),t("ion-button",{onClick:()=>this.leaveClass(e.Id)},t("ion-icon",{name:"trash"}))))):t("ion-item",{lines:"none"},t("ion-text",{class:"ion-text-center"},"No data found"))}render(){return t(a,null,t("form",{onSubmit:e=>this.handleEnrollmentFormSubmit(e),novalidate:!0},t("ion-list",{"no-lines":!0},t("ion-list-header",null,"Enrollment"),t("ion-grid",null,t("ion-row",{class:"ion-align-items-center"},t("ion-col",{size:"9"},t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Short Code"),t("ion-input",{name:"ShortCode",type:"text",value:this.enrollmentFormControls.ShortCode.value,onInput:e=>this.changeEnrollmentFormValue("ShortCode",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.enrollmentFormControls.ShortCode.isValid||!1===this.enrollmentFormSubmitted,class:"ion-padding-start"},"Short Code is required"))),t("ion-col",{size:"3"},t("div",null,t("ion-button",{slot:"end",type:"submit",expand:"block"},"Enroll"))))))),t("ion-list",null,t("ion-list-header",null,"Enroll List"),this.renderEnrollmentList()))}};Ne.style=":host{display:block}";const Se=class{constructor(t){e(this,t),this.profileFormControls={ProfileImage:{isValid:!0,value:"",validate:()=>!0},FirstName:{isValid:!1,value:"",validate:e=>!!e},LastName:{isValid:!1,value:"",validate:e=>!!e},ProfileText:{isValid:!0,value:"",validate:e=>!!e}},this.profileFormSubmitted=!1}componentWillLoad(){if(D.state.user){const e=D.state.user;this.changeFormValue("FirstName",e.FirstName),this.changeFormValue("LastName",e.LastName),this.changeFormValue("ProfileText",e.ProfileText),this.changeFormValue("ProfileImage",e.ProfileImage)}}changeFormValue(e,t){this.profileFormControls=Object.assign(Object.assign({},this.profileFormControls),{[e]:Object.assign(Object.assign({},this.profileFormControls[e]),{value:t,isValid:this.profileFormControls[e].validate(t)})})}async handleProfileFormSubmit(e){e.preventDefault(),await this.updateUser()}async updateUser(){this.profileFormSubmitted=!0;let e=!0;for(let t in this.profileFormControls){let i=this.profileFormControls[t];i.validate(i.value),i.isValid||(e=!1)}e&&await A.getInstance().updateProfile({FirstName:this.profileFormControls.FirstName.value,LastName:this.profileFormControls.LastName.value,ProfileImage:this.profileFormControls.ProfileImage.value,ProfileText:this.profileFormControls.ProfileText.value})}async uploadProfileImage(e){if(e.target.files&&e.target.files[0]){const t=await ue.getInstance().uploadImage(e.target.files);t.Succeeded&&t.Data&&t.Data.length>0&&(this.changeFormValue("ProfileImage",t.Data[0].FullImageUrl),await this.updateUser())}}selectFile(){this.el.querySelector("#fileInput").click()}render(){return t(a,null,t("ion-card",{color:"sparkle"},t("div",{class:"img-wrapper"},t("img",{class:ce.state.mediaUploading?"loading":"",src:this.profileFormControls.ProfileImage.value||n("../assets/svg/profile.svg")}),t("input",{type:"file",id:"fileInput",onChange:e=>this.uploadProfileImage(e),style:{display:"none"},accept:"image/*"}),t("ion-button",{color:"sparkle",onClick:()=>this.selectFile(),disabled:ce.state.mediaUploading},t("ion-icon",{slot:"icon-only",name:"camera-outline"})),ce.state.mediaUploading&&t("ion-spinner",{class:"image-upload-loading",name:"dots"})),t("ion-card-content",{class:"ion-text-center"},t("h2",null,this.profileFormControls.FirstName.value," ",this.profileFormControls.LastName.value),t("h3",null,this.profileFormControls.ProfileText.value))),t("form",{onSubmit:e=>this.handleProfileFormSubmit(e),novalidate:!0},t("ion-list",{"no-lines":!0},t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"First Name"),t("ion-input",{name:"firstName",type:"text",value:this.profileFormControls.FirstName.value,onInput:e=>this.changeFormValue("FirstName",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.profileFormControls.FirstName.isValid||!1===this.profileFormSubmitted,class:"ion-padding-start"},"First Name is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Last Name"),t("ion-input",{name:"lastName",type:"text",value:this.profileFormControls.LastName.value,onInput:e=>this.changeFormValue("LastName",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.profileFormControls.LastName.isValid||!1===this.profileFormSubmitted,class:"ion-padding-start"},"Last Name is required")),t("ion-item",null,t("ion-label",{position:"stacked",color:"primary"},"Profile Bio"),t("ion-input",{name:"lastName",type:"text",value:this.profileFormControls.ProfileText.value,onInput:e=>this.changeFormValue("ProfileText",e.target.value)})),t("ion-text",{color:"danger"},t("p",{hidden:this.profileFormControls.ProfileText.isValid||!1===this.profileFormSubmitted,class:"ion-padding-start"},"Profile Bio is required"))),t("div",{class:"ion-padding"},t("ion-button",{type:"submit",expand:"block",disabled:D.state.updateLoading},D.state.updateLoading&&t("ion-spinner",{name:"dots"})," Update"))))}get el(){return i(this)}};Se.style=":host{display:block}ion-card{box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2);overflow:visible;margin:16px 0 24px;position:relative;padding-top:60px}ion-card .img-wrapper{background-color:#f5f5f5;border-radius:10px;position:absolute;left:50%;top:-30px;transform:translateX(-50%)}ion-card .img-wrapper img{border-radius:10px;width:80px;height:80px}ion-card .img-wrapper ion-button{--border-width:1px;--border-color:var(--ion-color-sparkle);--border-style:solid;--padding-start:0;--padding-end:0;--padding-bottom:0;--padding-top:0;--border-radius:50%;height:26px;width:26px;position:absolute;right:-10px;bottom:-10px}ion-card .img-wrapper ion-button ion-icon{width:14px;height:14px}ion-card .img-wrapper img.loading{opacity:0.1}.image-upload-loading{position:absolute;top:40%;left:35%}";const je=class{constructor(t){e(this,t),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(e){const t=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(e&&!t)return this.previousMatch=this.match,this.match=_(e.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let e={};this.history&&this.history.location.hash?e={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(e={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(e):this.match&&!F(this.match,this.previousMatch)&&this.routeViewsUpdated&&this.routeViewsUpdated(e)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const e=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},e,{component:this.component})):this.component?t(this.component,Object.assign({},e)):void 0}get el(){return i(this)}static get watchers(){return{location:["computeMatch"]}}};W.injectProps(je,["location","history","historyType","routeViewsUpdated"]),je.style="stencil-route.inactive{display:none}";const Oe=(e,...t)=>{e||console.warn(...t)},Ie=()=>{let e,t=[];return{setPrompt:t=>(Oe(null==e,"A history supports only one prompt at a time"),e=t,()=>{e===t&&(e=null)}),confirmTransitionTo:(t,i,a,s)=>{if(null!=e){const o="function"==typeof e?e(t,i):e;"string"==typeof o?"function"==typeof a?a(o,s):(Oe(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),s(!0)):s(!1!==o)}else s(!0)},appendListener:e=>{let i=!0;const a=(...t)=>{i&&e(...t)};return t.push(a),()=>{i=!1,t=t.filter((e=>e!==a))}},notifyListeners:(...e)=>{t.forEach((t=>t(...e)))}}},Pe=(e,t="scrollPositions")=>{let i=new Map;const a=(t,a)=>{if(i.set(t,a),$(e,"sessionStorage")){const t=[];i.forEach(((e,i)=>{t.push([i,e])})),e.sessionStorage.setItem("scrollPositions",JSON.stringify(t))}};if($(e,"sessionStorage")){const a=e.sessionStorage.getItem(t);i=a?new Map(JSON.parse(a)):i}return"scrollRestoration"in e.history&&(history.scrollRestoration="manual"),{set:a,get:e=>i.get(e),has:e=>i.has(e),capture:t=>{a(t,[e.scrollX,e.scrollY])}}},Ce={hashbang:{encodePath:e=>"!"===e.charAt(0)?e:"!/"+q(e),decodePath:e=>"!"===e.charAt(0)?e.substr(1):e},noslash:{encodePath:q,decodePath:M},slash:{encodePath:M,decodePath:M}},Ee=(e,t)=>{const i=0==e.pathname.indexOf(t)?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:i})},Le={browser:(e,t={})=>{let i=!1;const a=e.history,s=e.location,o=e.navigator,n=X(e),r=!J(o),l=Pe(e),h=null!=t.forceRefresh&&t.forceRefresh,d=null!=t.getUserConfirmation?t.getUserConfirmation:K,p=null!=t.keyLength?t.keyLength:6,c=t.basename?z(M(t.basename)):"",u=()=>{try{return e.history.state||{}}catch(e){return{}}},m=e=>{e=e||{};const{key:t,state:i}=e,{pathname:a,search:o,hash:n}=s;let r=a+o+n;return Oe(!c||G(r,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+r+'" to begin with "'+c+'".'),c&&(r=H(r,c)),R(r,i,t||V(p))},g=Ie(),f=e=>{l.capture(P.location.key),Object.assign(P,e),P.location.scrollPosition=l.get(P.location.key),P.length=a.length,g.notifyListeners(P.location,P.action)},b=e=>{Q(o,e)||k(m(e.state))},v=()=>{k(m(u()))},k=e=>{if(i)i=!1,f();else{const t="POP";g.confirmTransitionTo(e,t,d,(i=>{i?f({action:t,location:e}):x(e)}))}},x=e=>{let t=y.indexOf(P.location.key),a=y.indexOf(e.key);-1===t&&(t=0),-1===a&&(a=0);const s=t-a;s&&(i=!0,O(s))},w=m(u());let y=[w.key],N=0,S=!1;const j=e=>c+Y(e),O=e=>{a.go(e)},I=t=>{N+=t,1===N?(e.addEventListener("popstate",b),r&&e.addEventListener("hashchange",v)):0===N&&(e.removeEventListener("popstate",b),r&&e.removeEventListener("hashchange",v))},P={length:a.length,action:"POP",location:w,createHref:j,push:(e,t)=>{Oe(!("object"==typeof e&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const i="PUSH",o=R(e,t,V(p),P.location);g.confirmTransitionTo(o,i,d,(e=>{if(!e)return;const t=j(o),{key:r,state:l}=o;if(n)if(a.pushState({key:r,state:l},"",t),h)s.href=t;else{const e=y.indexOf(P.location.key),t=y.slice(0,-1===e?0:e+1);t.push(o.key),y=t,f({action:i,location:o})}else Oe(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),s.href=t}))},replace:(e,t)=>{Oe(!("object"==typeof e&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const i="REPLACE",o=R(e,t,V(p),P.location);g.confirmTransitionTo(o,i,d,(e=>{if(!e)return;const t=j(o),{key:r,state:l}=o;if(n)if(a.replaceState({key:r,state:l},"",t),h)s.replace(t);else{const e=y.indexOf(P.location.key);-1!==e&&(y[e]=o.key),f({action:i,location:o})}else Oe(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),s.replace(t)}))},go:O,goBack:()=>O(-1),goForward:()=>O(1),block:(e="")=>{const t=g.setPrompt(e);return S||(I(1),S=!0),()=>(S&&(S=!1,I(-1)),t())},listen:e=>{const t=g.appendListener(e);return I(1),()=>{I(-1),t()}},win:e};return P},hash:(e,t={})=>{let i=!1,a=null,s=0,o=!1;const n=e.location,r=e.history,l=Z(e.navigator),h=null!=t.keyLength?t.keyLength:6,{getUserConfirmation:d=K,hashType:p="slash"}=t,c=t.basename?z(M(t.basename)):"",{encodePath:u,decodePath:m}=Ce[p],g=()=>{const e=n.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},f=e=>{const t=n.href.indexOf("#");n.replace(n.href.slice(0,t>=0?t:0)+"#"+e)},b=()=>{let e=m(g());return Oe(!c||G(e,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+c+'".'),c&&(e=H(e,c)),R(e,void 0,V(h))},v=Ie(),k=e=>{Object.assign(C,e),C.length=r.length,v.notifyListeners(C.location,C.action)},x=()=>{const e=g(),t=u(e);if(e!==t)f(t);else{const e=b(),t=C.location;if(!i&&B(t,e))return;if(a===Y(e))return;a=null,w(e)}},w=e=>{if(i)i=!1,k();else{const t="POP";v.confirmTransitionTo(e,t,d,(i=>{i?k({action:t,location:e}):y(e)}))}},y=e=>{let t=O.lastIndexOf(Y(C.location)),a=O.lastIndexOf(Y(e));-1===t&&(t=0),-1===a&&(a=0);const s=t-a;s&&(i=!0,I(s))},N=g(),S=u(N);N!==S&&f(S);const j=b();let O=[Y(j)];const I=e=>{Oe(l,"Hash history go(n) causes a full page reload in this browser"),r.go(e)},P=(e,t)=>{s+=t,1===s?e.addEventListener("hashchange",x):0===s&&e.removeEventListener("hashchange",x)},C={length:r.length,action:"POP",location:j,createHref:e=>"#"+u(c+Y(e)),push:(e,t)=>{Oe(void 0===t,"Hash history cannot push state; it is ignored");const i="PUSH",s=R(e,void 0,V(h),C.location);v.confirmTransitionTo(s,i,d,(e=>{if(!e)return;const t=Y(s),o=u(c+t);if(g()!==o){a=t,(e=>{n.hash=e})(o);const e=O.lastIndexOf(Y(C.location)),r=O.slice(0,-1===e?0:e+1);r.push(t),O=r,k({action:i,location:s})}else Oe(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),k()}))},replace:(e,t)=>{Oe(void 0===t,"Hash history cannot replace state; it is ignored");const i="REPLACE",s=R(e,void 0,V(h),C.location);v.confirmTransitionTo(s,i,d,(e=>{if(!e)return;const t=Y(s),o=u(c+t);g()!==o&&(a=t,f(o));const n=O.indexOf(Y(C.location));-1!==n&&(O[n]=t),k({action:i,location:s})}))},go:I,goBack:()=>I(-1),goForward:()=>I(1),block:(t="")=>{const i=v.setPrompt(t);return o||(P(e,1),o=!0),()=>(o&&(o=!1,P(e,-1)),i())},listen:t=>{const i=v.appendListener(t);return P(e,1),()=>{P(e,-1),i()}},win:e};return C}},Te=class{constructor(t){e(this,t),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(e={})=>{if(this.history&&e.scrollToId&&"browser"===this.historyType){const t=this.history.win.document.getElementById(e.scrollToId);if(t)return t.scrollIntoView()}this.scrollTo(e.scrollTopOffset||this.scrollTopOffset)},this.isServer=r(this,"isServer"),this.queue=r(this,"queue")}componentWillLoad(){this.history=Le[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((e=>{e=Ee(e,this.root),this.location=e})),this.location=Ee(this.history.location,this.root)}scrollTo(e){const t=this.history;if(null!=e&&!this.isServer&&t)return"POP"===t.action&&Array.isArray(t.location.scrollPosition)?this.queue.write((()=>{t&&t.location&&Array.isArray(t.location.scrollPosition)&&t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])})):this.queue.write((()=>{t.win.scrollTo(0,e)}))}render(){if(this.location&&this.history)return t(W.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},t("slot",null))}get el(){return i(this)}};export{ee as sparkle_facilitator_header,ie as sparkle_facilitator_page,se as sparkle_forgot_password,oe as sparkle_goals,ne as sparkle_gww,he as sparkle_header,me as sparkle_health,ge as sparkle_login,fe as sparkle_menu,be as sparkle_mood,ve as sparkle_page,ke as sparkle_reset_password,xe as sparkle_root,we as sparkle_signup,ye as sparkle_unauthorized,Ne as sparkle_user_enrollment,Se as sparkle_user_profile,je as stencil_route,Te as stencil_router}
@@ -1,4 +1,4 @@
1
- import{r as t,j as i,w as s,f as e,h,H as r,e as n}from"./p-9babd345.js";import{c as o}from"./p-55ae49e1.js";
1
+ import{r as t,j as i,w as s,f as e,h,H as r,e as n}from"./p-9babd345.js";import{c as o}from"./p-4f144efa.js";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
4
  */const a=(t,i)=>{const s=l(t,i);return s&&t.ownerDocument?t.ownerDocument.importNode(s.content,!0).children[0]:null},l=(t,i)=>{switch(i){case"item":return t.querySelector("template:not([name])");case"header":return t.querySelector("template[name=header]");case"footer":return t.querySelector("template[name=footer]")}},c=(t,i,s,e,h,r,n,o,a,l,c,u)=>{const d=[],m=u+c;for(let u=c;u<m;u++){const c=t[u];if(h){const i=h(c,u,t);null!=i&&d.push({i:l++,type:"header",value:i,index:u,height:s?s(i,u):n,reads:s?0:2,visible:!!s})}if(d.push({i:l++,type:"item",value:c,index:u,height:i?i(c,u):a,reads:i?0:2,visible:!!i}),r){const i=r(c,u,t);null!=i&&d.push({i:l++,type:"footer",value:i,index:u,height:e?e(i,u):o,reads:e?0:2,visible:!!e})}}return d},u=class{constructor(i){t(this,i),this.range={offset:0,length:0},this.viewportHeight=0,this.cells=[],this.virtualDom=[],this.isEnabled=!1,this.viewportOffset=0,this.currentScrollTop=0,this.indexDirty=0,this.lastItemLen=0,this.totalHeight=0,this.approxItemHeight=45,this.approxHeaderHeight=30,this.approxFooterHeight=30,this.onScroll=()=>{this.updateVirtualScroll()}}itemsChanged(){this.calcCells(),this.updateVirtualScroll()}componentWillLoad(){console.warn("[Deprecation Warning]: ion-virtual-scroll has been deprecated and will be removed in Ionic Framework v7.0. See https://ionicframework.com/docs/angular/virtual-scroll for migration steps.")}async connectedCallback(){const t=this.el.closest("ion-content");t?(this.scrollEl=await t.getScrollElement(),this.contentEl=t,this.calcCells(),this.updateState()):console.error("<ion-virtual-scroll> must be used inside an <ion-content>")}componentDidUpdate(){this.updateState()}disconnectedCallback(){this.scrollEl=void 0}onResize(){this.calcCells(),this.updateVirtualScroll()}positionForItem(t){return Promise.resolve(((t,i,s)=>{const e=i.find((i=>"item"===i.type&&i.index===t));return e?s[e.i]:-1})(t,this.cells,this.getHeightIndex()))}async checkRange(t,i=-1){if(!this.items)return;const s=-1===i?this.items.length-t:i,e=((t,i)=>0===i?0:i===(t.length>0?t[t.length-1].index:0)+1?t.length:t.findIndex((t=>t.index===i)))(this.cells,t),h=c(this.items,this.itemHeight,this.headerHeight,this.footerHeight,this.headerFn,this.footerFn,this.approxHeaderHeight,this.approxFooterHeight,this.approxItemHeight,e,t,s);this.cells=((t,i,s)=>{if(0===s&&i.length>=t.length)return i;for(let e=0;e<i.length;e++)t[e+s]=i[e];return t})(this.cells,h,e),this.lastItemLen=this.items.length,this.indexDirty=Math.max(t-1,0),this.scheduleUpdate()}async checkEnd(){this.items&&this.checkRange(this.lastItemLen)}updateVirtualScroll(){this.isEnabled&&this.scrollEl&&(this.timerUpdate&&(clearTimeout(this.timerUpdate),this.timerUpdate=void 0),i(this.readVS.bind(this)),s(this.writeVS.bind(this)))}readVS(){const{contentEl:t,scrollEl:i,el:s}=this;let e=0,h=s;for(;h&&h!==t;)e+=h.offsetTop,h=h.offsetParent;this.viewportOffset=e,i&&(this.viewportHeight=i.offsetHeight,this.currentScrollTop=i.scrollTop)}writeVS(){const t=this.indexDirty,i=(r=this.currentScrollTop-this.viewportOffset,n=this.viewportHeight,{top:Math.max(r-100,0),bottom:r+n+100}),s=this.getHeightIndex(),h=((t,i)=>{const s=i.top,e=i.bottom;let h=0;for(;h<t.length&&!(t[h]>s);h++);const r=Math.max(h-2-1,0);for(;h<t.length&&!(t[h]>=e);h++);return{offset:r,length:Math.min(h+2,t.length)-r}})(s,i);var r,n;((t,i,s)=>t<=s.offset+s.length||i.offset!==s.offset||i.length!==s.length)(t,this.range,h)&&(this.range=h,((t,i,s,e)=>{for(const i of t)i.change=0,i.d=!0;const h=[],r=e.offset+e.length;for(let n=e.offset;n<r;n++){const e=s[n],r=t.find((t=>t.d&&t.cell===e));if(r){const t=i[n];t!==r.top&&(r.top=t,r.change=1),r.d=!1}else h.push(e)}const n=t.filter((t=>t.d));for(const s of h){const e=n.find((t=>t.d&&t.cell.type===s.type)),h=s.i;e?(e.d=!1,e.change=2,e.cell=s,e.top=i[h]):t.push({d:!1,cell:s,visible:!0,change:2,top:i[h]})}t.filter((t=>t.d&&-9999!==t.top)).forEach((t=>{t.change=1,t.top=-9999}))})(this.virtualDom,s,this.cells,h),this.nodeRender?((t,i,s,e)=>{const h=Array.from(t.children).filter((t=>"TEMPLATE"!==t.tagName)),r=h.length;let n;for(let o=0;o<s.length;o++){const l=s[o],c=l.cell;if(2===l.change){if(o<r)n=h[o],i(n,c,o);else{const s=a(t,c.type);n=i(s,c,o)||s,n.classList.add("virtual-item"),t.appendChild(n)}n.$ionCell=c}else n=h[o];0!==l.change&&(n.style.transform=`translate3d(0,${l.top}px,0)`);const u=c.visible;l.visible!==u&&(u?n.classList.remove("virtual-loading"):n.classList.add("virtual-loading"),l.visible=u),c.reads>0&&(e(c,n),c.reads--)}})(this.el,this.nodeRender,this.virtualDom,this.updateCellHeight.bind(this)):this.domRender?this.domRender(this.virtualDom):this.renderItem&&e(this))}updateCellHeight(t,i){const s=()=>{if(i.$ionCell===t){const s=window.getComputedStyle(i),e=i.offsetHeight+parseFloat(s.getPropertyValue("margin-bottom"));this.setCellHeight(t,e)}};i?o(i,s):s()}setCellHeight(t,i){const s=t.i;t===this.cells[s]&&(t.height===i&&!0===t.visible||(t.visible=!0,t.height=i,this.indexDirty=Math.min(this.indexDirty,s),this.scheduleUpdate()))}scheduleUpdate(){clearTimeout(this.timerUpdate),this.timerUpdate=setTimeout((()=>this.updateVirtualScroll()),100)}updateState(){const t=!(!this.scrollEl||!this.cells);t!==this.isEnabled&&(this.enableScrollEvents(t),t&&this.updateVirtualScroll())}calcCells(){this.items&&(this.lastItemLen=this.items.length,this.cells=c(this.items,this.itemHeight,this.headerHeight,this.footerHeight,this.headerFn,this.footerFn,this.approxHeaderHeight,this.approxFooterHeight,this.approxItemHeight,0,0,this.lastItemLen),this.indexDirty=0)}getHeightIndex(){return this.indexDirty!==1/0&&this.calcHeightIndex(this.indexDirty),this.heightIndex}calcHeightIndex(t=0){this.heightIndex=((t,i)=>{if(!t)return new Uint32Array(i);if(t.length===i)return t;if(i>t.length){const s=new Uint32Array(i);return s.set(t),s}return t.subarray(0,i)})(this.heightIndex,this.cells.length),this.totalHeight=((t,i,s)=>{let e=t[s];for(let h=s;h<t.length;h++)t[h]=e,e+=i[h].height;return e})(this.heightIndex,this.cells,t),this.indexDirty=1/0}enableScrollEvents(t){this.rmEvent&&(this.rmEvent(),this.rmEvent=void 0);const i=this.scrollEl;i&&(this.isEnabled=t,i.addEventListener("scroll",this.onScroll),this.rmEvent=()=>{i.removeEventListener("scroll",this.onScroll)})}renderVirtualNode(t){const{type:i,value:s,index:e}=t.cell;switch(i){case"item":return this.renderItem(s,e);case"header":return this.renderHeader(s,e);case"footer":return this.renderFooter(s,e)}}render(){return h(r,{style:{height:`${this.totalHeight}px`}},this.renderItem&&h(d,{dom:this.virtualDom},this.virtualDom.map((t=>this.renderVirtualNode(t)))))}get el(){return n(this)}static get watchers(){return{itemHeight:["itemsChanged"],headerHeight:["itemsChanged"],footerHeight:["itemsChanged"],items:["itemsChanged"]}}},d=({dom:t},i,s)=>s.map(i,((i,s)=>{const e=t[s],h=i.vattrs||{};let r=h.class||"";return r+="virtual-item ",e.visible||(r+="virtual-loading"),Object.assign(Object.assign({},i),{vattrs:Object.assign(Object.assign({},h),{class:r,style:Object.assign(Object.assign({},h.style),{transform:`translate3d(0,${e.top}px,0)`})})})}));u.style="ion-virtual-scroll{display:block;position:relative;width:100%;contain:strict;user-select:none}ion-virtual-scroll>.virtual-loading{opacity:0}ion-virtual-scroll>.virtual-item{position:absolute !important;top:0 !important;right:0 !important;left:0 !important;transition-duration:0ms;will-change:transform}";export{u as ion_virtual_scroll}
@@ -0,0 +1 @@
1
+ import{r as a,h as i,H as r}from"./p-9babd345.js";import{O as t}from"./p-401feeb0.js";const e=class{constructor(i){a(this,i),this.activeIndex=0,this.rotationTime=6e3}hostData(){return{class:{"Card-with-image":void 0!==this.img,"Card-without-image":void 0===this.img,"Card-size-lg":"lg"===this.size}}}componentWillLoad(){void 0===this.iconset&&(this.activeIndex=0,this.rotationTime=4e3+2e3*Math.random(),setInterval(this.tic.bind(this),this.rotationTime),setTimeout(this.tic.bind(this),this.rotationTime/3))}componentWillUnload(){clearInterval(this.interval)}tic(){if(void 0!==this.iconset&&this.activeIndex>=this.iconset.split(",").length-1)return this.activeIndex=0;this.activeIndex++}__stencil_render(){const a=void 0===this.href,r=void 0!==this.href&&/^http/.test(this.href),e="undefined"===this.header?null:i("header",{class:"Card-header"},this.header," ",r?i(t,null):null),s=this.hoverIcon||this.icon,o=[this.img&&i("img",{src:this.img,class:"Card-image"}),i("div",{class:"Card-container"},this.icon&&i("img",{src:this.icon,class:"Card-icon Card-icon-default"}),s&&i("img",{src:s,class:"Card-icon Card-icon-hover"}),this.ionicon&&i("ion-icon",{name:this.ionicon,class:"Card-ionicon"}),this.iconset&&i("div",{class:"Card-iconset__container"},this.iconset.split(",").map(((a,r)=>i("img",{src:a,class:"Card-icon "+(r===this.activeIndex?"Card-icon--active":""),"data-index":r})))),e,i("div",{class:"Card-content"},i("slot",null)))];return a?i("div",{class:"Card"},o):r?i("a",{class:"Card",href:this.href},o):i("stencil-route-link",{url:this.href,anchorClass:"Card"},o)}render(){return i(r,this.hostData(),this.__stencil_render())}};e.style="sparkle-card{display:block;font-size:12px;max-width:30em}.Card{background-color:var(--background);border-radius:4px;box-shadow:0px 0.175em 0.5em rgba(2, 8, 20, 0.1), 0px 0.085em 0.175em rgba(2, 8, 20, 0.08);color:var(--text-color--light);display:flex;flex-direction:column;font-size:inherit;font-weight:normal;height:100%;justify-content:flex-start;line-height:1.6;transition:box-shadow 150ms ease, transform 150ms ease;width:100%;overflow:hidden}.Card-with-image{grid-row:span 2}.Card-without-image{font-size:12px}.Card-container{padding:1.65em 2em 1.65em}.Card-image{width:100%;height:auto}.Card-icon,.Card-iconset__container{width:48px;height:48px;margin-bottom:1.2em;border-radius:50%;object-fit:cover;background:rgb(246, 248, 251)}.Card-icon-hover{display:none}.Card-iconset__container{position:relative}.Card-iconset__container .Card-icon{position:absolute;opacity:0;transition:0.8s opacity}.Card-iconset__container .Card-icon--active{opacity:1}.Card-ionicon{width:48px;height:48px;float:left;margin-right:1em}@media (hover: hover){.Card[href]:hover{box-shadow:0 0.35em 1.175em rgba(2, 8, 20, 0.1), 0 0.175em 0.5em rgba(2, 8, 20, 0.08);transform:translateY(-1px)}.Card[href]:hover .Card-icon-default{display:none}.Card[href]:hover .Card-icon-hover{display:block}}.Card-content>*:first-child{margin-top:0}.Card-content>*:last-child{margin-bottom:0}.Card-content>*{margin:0 0 0.65em}.Card-header{color:var(--text-color--dark);font-size:1.4em;font-weight:500;line-height:1.4;margin-bottom:0.45em}.Card-without-image .Card-header{margin-bottom:0.3em}.Card-header>svg{fill:currentColor;height:1em;margin-bottom:-0.125em;width:auto}.Card-size-lg{font-size:14px}.Card-size-lg .Card-icon,.Card-size-lg .Card-ionicon,.Card-size-lg .Card-iconset__container{width:80px;height:80px}.Card-size-lg.Card-without-image .Card-header{font-size:20px}sparkle-card.disabled,sparkle-card[disabled]{position:relative}sparkle-card.disabled::after,sparkle-card[disabled]::after{position:absolute;top:0;right:0;left:0;bottom:0;background:rgba(232, 232, 232, 0.5);pointer-events:none;content:''}aside sparkle-card{max-width:240px}aside .Card-container{display:grid;grid-template-columns:minmax(0, max-content) 1fr;grid-template-rows:minmax(0, min-content);grid-template-areas:'icon title'\r\n 'icon body'}aside .Card-icon{width:32px;height:32px;margin-right:16px;margin-bottom:0;grid-area:icon}aside .Card-header{grid-area:title}aside .Card-header::after{background-image:url('/docs/assets/img/new-tab.svg');display:inline-block;height:13px;width:13px;background-size:13px 13px;margin-left:4px;content:''}aside .Card-content{grid-area:body;max-height:42px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}aside .Card-icon+.Card-content{margin-top:-6px}.markdown-content p sparkle-card{margin-top:1em}";const s=class{constructor(i){a(this,i)}render(){return i("slot",null)}};s.style="sparkle-cards{display:grid;font-size:12px;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));grid-gap:1.35rem}sparkle-cards>sparkle-card{font-size:inherit;max-width:none}sparkle-cards>sparkle-card.tall{grid-row:span 2}sparkle-cards>sparkle-card.wide{grid-column:span 2}sparkle-cards.prioritized>sparkle-card:nth-child(-n+5){font-size:1.25em}sparkle-cards.prioritized>sparkle-card:first-child{grid-row:span 2}sparkle-cards.max-measure>sparkle-card{max-width:50%}";const o=class{constructor(i){a(this,i)}render(){return i(r,null,i("sparkle-card",{header:this.goal.Name,icon:this.goal.CategoryIcon},i("div",{class:"goal-header"},i("ion-button",{size:"small",color:"primary",onClick:()=>this.onEditGoal()},"Edit")),i("p",null,this.goal.Description),i("sparkle-goal-progress",{percentage:this.goal.Percentage.toString()})))}};o.style=":host{display:block}.Card-content{padding-top:8px}.goal-header{display:flex;justify-content:flex-end;margin-top:-40px !important}";export{e as sparkle_card,s as sparkle_cards,o as sparkle_goal_item}
@@ -0,0 +1 @@
1
+ import{r as i,i as t,h as r,H as o,e}from"./p-9babd345.js";import{g as n}from"./p-fef04ab5.js";import{n as a,d as s,a as d,r as l}from"./p-4f144efa.js";import{c,h}from"./p-69e7783d.js";const b=class{constructor(r){i(this,r),this.ionChange=t(this,"ionChange",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.ionStyle=t(this,"ionStyle",7),this.inputId="ion-cb-"+p++,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=i=>{i.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(i){this.ionChange.emit({checked:i,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:i,checked:t,disabled:e,el:d,indeterminate:l,inputId:b,name:p,value:g}=this,m=n(this),{label:u,labelId:k,labelText:x}=a(d,b);s(!0,d,p,t?g:"",e);let f=r("path",l?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===m&&(f=r("path",l?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),r(o,{onClick:this.onClick,"aria-labelledby":u?k:null,"aria-checked":`${t}`,"aria-hidden":e?"true":null,role:"checkbox",class:c(i,{[m]:!0,"in-item":h("ion-item",d),"checkbox-checked":t,"checkbox-disabled":e,"checkbox-indeterminate":l,interactive:!0})},r("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},f),r("label",{htmlFor:b},x),r("input",{type:"checkbox","aria-checked":`${t}`,disabled:e,id:b,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:i=>this.focusEl=i}))}get el(){return e(this)}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}};let p=0;b.style={ios:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",md:":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}"};const g=class{constructor(t){i(this,t)}render(){const{lines:i}=this,t=n(this);return r(o,{class:c(this.color,{[t]:!0,[`list-header-lines-${i}`]:void 0!==i})},r("div",{class:"list-header-inner"},r("slot",null)))}};g.style={ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:flex;position:relative;flex:1;flex-direction:inherit;align-items:inherit;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;box-sizing:border-box}::slotted(ion-label){flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"};const m=class{constructor(r){i(this,r),this.ionStyle=t(this,"ionStyle",7),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.inputId="ion-rb-"+u++,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}async setFocus(i){i.stopPropagation(),i.preventDefault(),this.el.focus()}async setButtonTabindex(i){this.buttonTabindex=i}connectedCallback(){void 0===this.value&&(this.value=this.inputId);const i=this.radioGroup=this.el.closest("ion-radio-group");i&&(this.updateState(),d(i,"ionChange",this.updateState))}disconnectedCallback(){const i=this.radioGroup;i&&(l(i,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:i,disabled:t,checked:e,color:s,el:d,buttonTabindex:l}=this,b=n(this),{label:p,labelId:g,labelText:m}=a(d,i);return r(o,{"aria-checked":`${e}`,"aria-hidden":t?"true":null,"aria-labelledby":p?g:null,role:"radio",tabindex:l,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:c(s,{[b]:!0,"in-item":h("ion-item",d),interactive:!0,"radio-checked":e,"radio-disabled":t})},r("div",{class:"radio-icon",part:"container"},r("div",{class:"radio-inner",part:"mark"}),r("div",{class:"radio-ripple"})),r("label",{htmlFor:i},m),r("input",{type:"radio",checked:e,disabled:t,tabindex:"-1",id:i,ref:i=>this.nativeInput=i}))}get el(){return e(this)}static get watchers(){return{color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}};let u=0;m.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));transform:scale3d(0, 0, 0);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}'};const k=class{constructor(r){i(this,r),this.ionChange=t(this,"ionChange",7),this.inputId="ion-rg-"+x++,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=i=>{const t=this.getRadios(),r=t.find((i=>!i.disabled)),o=t.find((t=>t.value===i&&!t.disabled));if(!r&&!o)return;const e=o||r;for(const i of t)i.setButtonTabindex(i===e?0:-1)},this.onClick=i=>{i.preventDefault();const t=i.target&&i.target.closest("ion-radio");if(t){const i=t.value;i!==this.value?this.value=i:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(i){this.setRadioTabindex(i),this.ionChange.emit({value:i})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const i=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(i){const t=this.label=i.querySelector("ion-label");t&&(this.labelId=t.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(i){const t=!!this.el.closest("ion-select-popover");if(i.target&&!this.el.contains(i.target))return;const r=this.getRadios().filter((i=>!i.disabled));if(i.target&&r.includes(i.target)){const o=r.findIndex((t=>t===i.target)),e=r[o];let n;["ArrowDown","ArrowRight"].includes(i.code)&&(n=o===r.length-1?r[0]:r[o+1]),["ArrowUp","ArrowLeft"].includes(i.code)&&(n=0===o?r[r.length-1]:r[o-1]),n&&r.includes(n)&&(n.setFocus(i),t||(this.value=n.value)),["Space"].includes(i.code)&&(this.value=this.allowEmptySelection&&void 0!==this.value?void 0:e.value,i.preventDefault())}}render(){const{label:i,labelId:t}=this,e=n(this);return r(o,{role:"radiogroup","aria-labelledby":i?t:null,onClick:this.onClick,class:e})}get el(){return e(this)}static get watchers(){return{value:["valueChanged"]}}};let x=0;export{b as ion_checkbox,g as ion_list_header,m as ion_radio,k as ion_radio_group}
@@ -0,0 +1 @@
1
+ import{r as s,h as r,H as e}from"./p-9babd345.js";import{c as n,g as t}from"./p-fef04ab5.js";import{c as i}from"./p-69e7783d.js";import{S as o}from"./p-a9ccb0df.js";const a=class{constructor(r){s(this,r),this.paused=!1}getName(){const s=this.name||n.get("spinner"),r=t(this);return s||("ios"===r?"lines":"circular")}render(){const s=this,a=t(s),c=s.getName(),h=o[c]||o.lines,f="number"==typeof s.duration&&s.duration>10?s.duration:h.dur,m=[];if(void 0!==h.circles)for(let s=0;s<h.circles;s++)m.push(l(h,f,s,h.circles));else if(void 0!==h.lines)for(let s=0;s<h.lines;s++)m.push(p(h,f,s,h.lines));return r(e,{class:i(s.color,{[a]:!0,[`spinner-${c}`]:!0,"spinner-paused":s.paused||n.getBoolean("_testing")}),role:"progressbar",style:h.elmDuration?{animationDuration:f+"ms"}:{}},m)}},l=(s,e,n,t)=>{const i=s.fn(e,n,t);return i.style["animation-duration"]=e+"ms",r("svg",{viewBox:i.viewBox||"0 0 64 64",style:i.style},r("circle",{transform:i.transform||"translate(32,32)",cx:i.cx,cy:i.cy,r:i.r,style:s.elmDuration?{animationDuration:e+"ms"}:{}}))},p=(s,e,n,t)=>{const i=s.fn(e,n,t);return i.style["animation-duration"]=e+"ms",r("svg",{viewBox:i.viewBox||"0 0 64 64",style:i.style},r("line",{transform:"translate(32,32)",y1:i.y1,y2:i.y2}))};a.style=":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{left:0;top:0;transform-origin:center;position:absolute;width:100%;height:100%;transform:translateZ(0)}[dir=rtl] svg,:host-context([dir=rtl]) svg{left:unset;right:unset;right:0}[dir=rtl] svg,:host-context([dir=rtl]) svg{transform-origin:calc(100% - center)}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:7px}:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-width:4px}:host(.spinner-lines) line,:host(.spinner-lines-small) line,:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg,:host(.spinner-lines-sharp) svg,:host(.spinner-lines-sharp-small) svg{animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{animation:spinner-dots 1s linear infinite}:host(.spinner-circular) svg{animation:spinner-circular linear infinite}:host(.spinner-circular) circle{animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{animation-play-state:paused}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-scale-out{0%{transform:scale(1, 1)}100%{transform:scale(0, 0)}}@keyframes spinner-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spinner-dots{0%{transform:scale(1, 1);opacity:0.9}50%{transform:scale(0.4, 0.4);opacity:0.3}100%{transform:scale(1, 1);opacity:0.9}}@keyframes spinner-circular{100%{transform:rotate(360deg)}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}";export{a as ion_spinner}
@@ -1,4 +1,4 @@
1
- import{w as e,r,i,j as s,h as t,e as n,H as o}from"./p-9babd345.js";import{a as h,g as a}from"./p-fef04ab5.js";import{g as f}from"./p-8c6b6038.js";import{t as l,c,l as p,g,k as d}from"./p-55ae49e1.js";import{h as m}from"./p-063cd168.js";import{c as u}from"./p-389500fd.js";
1
+ import{w as e,r,i,j as s,h as t,e as n,H as o}from"./p-9babd345.js";import{a as h,g as a}from"./p-fef04ab5.js";import{g as f}from"./p-8c6b6038.js";import{t as l,c,e as p,g,b as d}from"./p-4f144efa.js";import{h as m}from"./p-063cd168.js";import{c as u}from"./p-87549bb7.js";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
4
  */const x=e=>{const r=e.querySelector("ion-spinner"),i=r.shadowRoot.querySelector("circle"),s=e.querySelector(".spinner-arrow-container"),t=e.querySelector(".arrow-container"),n=t?t.querySelector("ion-icon"):null,o=u().duration(1e3).easing("ease-out"),h=u().addElement(s).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),a=u().addElement(i).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),f=u().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(t&&n){const e=u().addElement(t).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),r=u().addElement(n).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([e,r])}return o.addAnimation([h,a,f])},v=(r,i,s=200)=>{if(!r)return Promise.resolve();const t=l(r,s);return e((()=>{r.style.setProperty("transition",`${s}ms all ease-out`),void 0===i?r.style.removeProperty("transform"):r.style.setProperty("transform",`translate3d(0px, ${i}, 0px)`)})),t},y=async(e,r)=>{const i=e.querySelector("ion-refresher-content");if(!i)return Promise.resolve(!1);await new Promise((e=>c(i,e)));const s=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),t=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return null!==s&&null!==t&&("ios"===r&&h("mobile")&&void 0!==e.style.webkitOverflowScrolling||"md"===r)},b=class{constructor(e){r(this,e),this.ionRefresh=i(this,"ionRefresh",7),this.ionPull=i(this,"ionPull",7),this.ionStart=i(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async checkNativeRefresher(){const e=await y(this.el,a(this));if(e&&!this.nativeRefresher){const e=this.el.closest("ion-content");this.setupNativeRefresher(e)}else e||this.destroyNativeRefresher()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}async resetNativeRefresher(e,r){this.state=r,"ios"===a(this)?await v(e,void 0,300):await l(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach((e=>e.destroy())),this.animations=[],this.progress=0,this.state=1}async setupiOSNativeRefresher(r,i){this.elementToTransform=this.scrollEl;const t=r.shadowRoot.querySelectorAll("svg");let n=.16*this.scrollEl.clientHeight;const o=t.length;e((()=>t.forEach((e=>e.style.setProperty("animation","none"))))),this.scrollListenerCallback=()=>{(this.pointerDown||1!==this.state)&&s((()=>{const r=this.scrollEl.scrollTop,s=this.el.clientHeight;if(r>0){if(8===this.state){const t=p(0,r/(.5*s),1);return void e((()=>{i.style.setProperty("opacity",(1-t).toString())}))}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit()),this.pointerDown&&this.ionPull.emit());const h=this.didStart?30:0,a=this.progress=p(0,(Math.abs(r)-h)/n,1);var f,l;8===this.state||1===a?(this.pointerDown&&(f=i,l=this.lastVelocityY,e((()=>{f.style.setProperty("--refreshing-rotation-duration",l>=1?"0.5s":"2s"),f.style.setProperty("opacity","1")}))),this.didRefresh||(this.beginRefresh(),this.didRefresh=!0,m({style:"light"}),this.pointerDown||v(this.elementToTransform,`${s}px`))):(this.state=2,((r,i,s)=>{e((()=>{r.forEach(((e,r)=>{const t=r*(1/i),n=p(0,(s-t)/(1-t),1);e.style.setProperty("opacity",n.toString())}))}))})(t,o,a))}))},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback),this.gesture=(await import("./p-b3e6427d.js")).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||v(this.elementToTransform,"0px"),0===n&&(n=.16*this.scrollEl.clientHeight)},onMove:e=>{this.lastVelocityY=e.velocityY},onEnd:()=>{this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh&&s((()=>v(this.elementToTransform,`${this.el.clientHeight}px`)))}}),this.disabledChanged()}async setupMDNativeRefresher(r,i,s){const t=g(i).querySelector("circle"),n=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),o=g(s).querySelector("circle");null!==t&&null!==o&&e((()=>{t.style.setProperty("animation","none"),s.style.setProperty("animation-delay","-655ms"),o.style.setProperty("animation-delay","-655ms")})),this.gesture=(await import("./p-b3e6427d.js")).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>8!==this.state&&32!==this.state&&0===this.scrollEl.scrollTop,onStart:e=>{e.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:i=>{if(i.velocityY<0&&0===this.progress&&!i.data.didStart||i.data.cancelled)i.data.cancelled=!0;else{if(!i.data.didStart){i.data.didStart=!0,this.state=2,e((()=>this.scrollEl.style.setProperty("--overflow","hidden")));const s=((e,r,i)=>"scale"===e?((e,r)=>{const i=r.clientHeight,s=u().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${i}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return x(e).addAnimation([s])})(r,i):((e,r)=>{const i=r.clientHeight,s=u().addElement(e).keyframes([{offset:0,transform:`translateY(-${i}px)`},{offset:1,transform:"translateY(100px)"}]);return x(e).addAnimation([s])})(r,i))((e=>{const r=e.previousElementSibling;return null!==r&&"ION-HEADER"===r.tagName?"translate":"scale"})(r),n,this.el);return i.data.animation=s,s.progressStart(!1,0),this.ionStart.emit(),void this.animations.push(s)}this.progress=p(0,i.deltaY/180*.5,1),i.data.animation.progressStep(this.progress),this.ionPull.emit()}},onEnd:r=>{if(!r.data.didStart)return;if(e((()=>this.scrollEl.style.removeProperty("--overflow"))),this.progress<=.4)return this.gesture.enable(!1),void r.data.animation.progressEnd(0,this.progress,500).onFinish((()=>{this.animations.forEach((e=>e.destroy())),this.animations=[],this.gesture.enable(!0),this.state=1}));const i=f([0,0],[0,0],[1,1],[1,1],this.progress)[0],s=(e=>u().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"))(n);this.animations.push(s),e((async()=>{n.style.setProperty("--ion-pulling-refresher-translate",100*i+"px"),r.data.animation.progressEnd(),await s.play(),this.beginRefresh(),r.data.animation.destroy()}))}}),this.disabledChanged()}async setupNativeRefresher(e){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl)return;this.setCss(0,"",!1,""),this.nativeRefresher=!0;const r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),i=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");"ios"===a(this)?this.setupiOSNativeRefresher(r,i):this.setupMDNativeRefresher(e,r,i)}componentDidUpdate(){this.checkNativeRefresher()}async connectedCallback(){if("fixed"!==this.el.getAttribute("slot"))return void console.error('Make sure you use: <ion-refresher slot="fixed">');const e=this.el.closest("ion-content");e?(await new Promise((r=>c(e,r))),this.scrollEl=await e.getScrollElement(),this.backgroundContentEl=g(e).querySelector("#background-content"),await y(this.el,a(this))?this.setupNativeRefresher(e):(this.gesture=(await import("./p-b3e6427d.js")).createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>this.canStart(),onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:()=>this.onEnd()}),this.disabledChanged())):console.error("<ion-refresher> must be used inside an <ion-content>")}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async complete(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||d((()=>d((()=>this.resetNativeRefresher(this.elementToTransform,32)))))):this.close(32,"120ms")}async cancel(){this.nativeRefresher?this.pointerDown||d((()=>d((()=>this.resetNativeRefresher(this.elementToTransform,16))))):this.close(16,"")}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||1!==this.state||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1}onMove(e){if(!this.scrollEl)return;const r=e.event;if(r.touches&&r.touches.length>1)return;if(0!=(56&this.state))return;const i=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,s=e.deltaY*i;if(s<=0)return this.progress=0,this.state=1,this.appliedStyles?void this.setCss(0,"",!1,""):void 0;if(1===this.state){if(this.scrollEl.scrollTop>0)return void(this.progress=0);this.state=2}if(r.cancelable&&r.preventDefault(),this.setCss(s,"0ms",!0,""),0===s)return void(this.progress=0);const t=this.pullMin;this.progress=s/t,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),s<t?this.state=2:s>this.pullMax?this.beginRefresh():this.state=4}onEnd(){4===this.state?this.beginRefresh():2===this.state&&this.cancel()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,r){setTimeout((()=>{this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"")}),600),this.state=e,this.setCss(0,this.closeDuration,!0,r)}setCss(r,i,s,t){this.nativeRefresher||(this.appliedStyles=r>0,e((()=>{if(this.scrollEl&&this.backgroundContentEl){const e=this.scrollEl.style,n=this.backgroundContentEl.style;e.transform=n.transform=r>0?`translateY(${r}px) translateZ(0px)`:"",e.transitionDuration=n.transitionDuration=i,e.transitionDelay=n.transitionDelay=t,e.overflow=s?"hidden":""}})))}render(){const e=a(this);return t(o,{slot:"fixed",class:{[e]:!0,[`refresher-${e}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":1!==this.state,"refresher-pulling":2===this.state,"refresher-ready":4===this.state,"refresher-refreshing":8===this.state,"refresher-cancelling":16===this.state,"refresher-completing":32===this.state}})}get el(){return n(this)}static get watchers(){return{disabled:["disabledChanged"]}}};b.style={ios:"ion-refresher{left:0;top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}[dir=rtl] ion-refresher,:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:flex;flex-direction:column;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{transform-origin:center;transition:200ms;font-size:30px;text-align:center}[dir=rtl] .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{transform-origin:calc(100% - center)}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native ion-spinner{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, #747577)}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{transform:scale(0) rotate(180deg);transition:300ms}@keyframes refresher-pop{0%{transform:scale(1);animation-timing-function:ease-in}50%{transform:scale(1.2);animation-timing-function:ease-out}100%{transform:scale(1)}}@keyframes refresher-rotate{from{transform:rotate(0deg)}to{transform:rotate(180deg)}}",md:"ion-refresher{left:0;top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}[dir=rtl] ion-refresher,:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:flex;flex-direction:column;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{transform-origin:center;transition:200ms;font-size:30px;text-align:center}[dir=rtl] .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{transform-origin:calc(100% - center)}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #3880ff)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native ion-spinner{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #3880ff);font-size:12px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native .arrow-container ion-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:flex}ion-refresher.refresher-native .refresher-pulling-icon{transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;border-radius:100%;padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:flex;border:1px solid var(--ion-color-step-200, #ececec);background:var(--ion-color-step-250, #ffffff);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}"};export{b as ion_refresher}
@@ -1 +1 @@
1
- import{r as t,i,h as s,e as a}from"./p-9babd345.js";import{g as e,c as o}from"./p-fef04ab5.js";import{g as h}from"./p-8c6b6038.js";import{a as n,d as r}from"./p-5a3d0e6b.js";import{s as c}from"./p-55ae49e1.js";import{t as l}from"./p-a1cab0f3.js";const d=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.gestureOrAnimationInProgress=!1,this.mode=e(this),this.animated=!0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(void 0!==this.swipeHandler)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await import("./p-f4001fdf.js")).createSwipeBackGesture(this.el,(()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart()),(()=>t()),(t=>this.ani&&this.ani.progressStep(t)),((t,i,s)=>{if(this.ani){this.ani.onFinish((()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(t)}),{oneTimeCallback:!0});let a=t?-.001:.001;t?a+=h([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),a+=h([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.ani.progressEnd(t?1:0,a,s)}else this.gestureOrAnimationInProgress=!1})),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,i,s){const a=await this.lock();let e=!1;try{e=await this.transition(t,i,s)}catch(t){console.error(t)}return a(),e}async setRouteId(t,i,s,a){return{changed:await this.setRoot(t,i,{duration:"root"===s?0:void 0,direction:"back"===s?"back":"forward",animationBuilder:a}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,i,s){if(this.activeComponent===t&&c(i,this.activeParams))return!1;const a=this.activeEl,e=await n(this.delegate,this.el,t,["ion-page","ion-page-invisible"],i);return this.activeComponent=t,this.activeEl=e,this.activeParams=i,await this.commit(e,a,s),await r(this.delegate,a),!0}async transition(t,i,s={}){if(i===t)return!1;this.ionNavWillChange.emit();const{el:a,mode:e}=this,h=this.animated&&o.getBoolean("animated",!0),n=s.animationBuilder||this.animation||o.get("navAnimation");return await l(Object.assign(Object.assign({mode:e,animated:h,enteringEl:t,leavingEl:i,baseEl:a,progressCallback:s.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.ani=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0},s),{animationBuilder:n})),this.ionNavDidChange.emit(),!0}async lock(){const t=this.waitPromise;let i;return this.waitPromise=new Promise((t=>i=t)),void 0!==t&&await t,i}render(){return s("slot",null)}get el(){return a(this)}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}};d.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";export{d as ion_router_outlet}
1
+ import{r as t,i,h as s,e as a}from"./p-9babd345.js";import{g as e,c as o}from"./p-fef04ab5.js";import{g as h}from"./p-8c6b6038.js";import{a as n,d as r}from"./p-4028676b.js";import{s as c}from"./p-4f144efa.js";import{t as l}from"./p-e08059b6.js";const d=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.gestureOrAnimationInProgress=!1,this.mode=e(this),this.animated=!0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(void 0!==this.swipeHandler)}async connectedCallback(){const t=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await import("./p-95d01c4c.js")).createSwipeBackGesture(this.el,(()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart()),(()=>t()),(t=>this.ani&&this.ani.progressStep(t)),((t,i,s)=>{if(this.ani){this.ani.onFinish((()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(t)}),{oneTimeCallback:!0});let a=t?-.001:.001;t?a+=h([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),a+=h([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.ani.progressEnd(t?1:0,a,s)}else this.gestureOrAnimationInProgress=!1})),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(t,i,s){const a=await this.lock();let e=!1;try{e=await this.transition(t,i,s)}catch(t){console.error(t)}return a(),e}async setRouteId(t,i,s,a){return{changed:await this.setRoot(t,i,{duration:"root"===s?0:void 0,direction:"back"===s?"back":"forward",animationBuilder:a}),element:this.activeEl}}async getRouteId(){const t=this.activeEl;return t?{id:t.tagName,element:t,params:this.activeParams}:void 0}async setRoot(t,i,s){if(this.activeComponent===t&&c(i,this.activeParams))return!1;const a=this.activeEl,e=await n(this.delegate,this.el,t,["ion-page","ion-page-invisible"],i);return this.activeComponent=t,this.activeEl=e,this.activeParams=i,await this.commit(e,a,s),await r(this.delegate,a),!0}async transition(t,i,s={}){if(i===t)return!1;this.ionNavWillChange.emit();const{el:a,mode:e}=this,h=this.animated&&o.getBoolean("animated",!0),n=s.animationBuilder||this.animation||o.get("navAnimation");return await l(Object.assign(Object.assign({mode:e,animated:h,enteringEl:t,leavingEl:i,baseEl:a,progressCallback:s.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.ani=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0},s),{animationBuilder:n})),this.ionNavDidChange.emit(),!0}async lock(){const t=this.waitPromise;let i;return this.waitPromise=new Promise((t=>i=t)),void 0!==t&&await t,i}render(){return s("slot",null)}get el(){return a(this)}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}};d.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";export{d as ion_router_outlet}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as s,e as i}from"./p-9babd345.js";import{r as e,l as n}from"./p-987c64eb.js";import{g as t}from"./p-fef04ab5.js";const c=class{constructor(r){o(this,r)}onClick(o){const r=this.el.closest("ion-reorder-group");o.preventDefault(),r&&r.disabled||o.stopImmediatePropagation()}render(){const o=t(this);return r(s,{class:o},r("slot",null,r("ion-icon",{icon:"ios"===o?e:n,lazy:!1,class:"reorder-icon",part:"icon"})))}get el(){return i(this)}};c.style={ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:34px;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:31px;opacity:0.3}"};export{c as ion_reorder}
@@ -1 +1 @@
1
- import{r as o,i as t,h as r,H as a,e as n}from"./p-9babd345.js";import{h as i}from"./p-6ee40949.js";import{g as e}from"./p-fef04ab5.js";import{h as s,o as c,c as d}from"./p-69e7783d.js";const l=class{constructor(r){o(this,r),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.activated=!1,this.disabled=!1,this.routerDirection="forward",this.show=!1,this.translucent=!1,this.type="button",this.closeIcon=i,this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}render(){const{el:o,disabled:t,color:n,href:i,activated:l,show:b,translucent:u,size:g}=this,p=s("ion-fab-list",o),h=e(this),v=void 0===i?"button":"a",f="button"===v?{type:this.type}:{download:this.download,href:i,rel:this.rel,target:this.target};return r(a,{"aria-disabled":t?"true":null,class:d(n,{[h]:!0,"fab-button-in-list":p,"fab-button-translucent-in-list":p&&u,"fab-button-close-active":l,"fab-button-show":b,"fab-button-disabled":t,"fab-button-translucent":u,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${g}`]:void 0!==g})},r(v,Object.assign({},f,{class:"button-native",part:"native",disabled:t,onFocus:this.onFocus,onBlur:this.onBlur,onClick:o=>c(i,o,this.routerDirection,this.routerAnimation)}),r("ion-icon",{icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),r("span",{class:"button-inner"},r("slot",null)),"md"===h&&r("ion-ripple-effect",null)))}get el(){return n(this)}};l.style={ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-kerning:none}.button-native{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transform:var(--transform);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;appearance:none;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:flex;position:absolute;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;height:100%;transition:all ease-in-out 300ms;transition-property:transform, opacity;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){margin-left:8px;margin-right:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.fab-button-small){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px}}.close-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;transform:scale(0.4) rotateZ(-45deg);transition:all ease-in-out 300ms;transition-property:transform, opacity;font-size:var(--close-icon-font-size);opacity:0;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.close-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.fab-button-close-active) .close-icon{transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports (backdrop-filter: blur(0)){:host(.fab-button-translucent) .button-native{backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports (backdrop-filter: blur(0)){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports (backdrop-filter: blur(0)){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-kerning:none}.button-native{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transform:var(--transform);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;appearance:none;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:flex;position:absolute;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;height:100%;transition:all ease-in-out 300ms;transition-property:transform, opacity;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){margin-left:8px;margin-right:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.fab-button-small){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px}}.close-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;transform:scale(0.4) rotateZ(-45deg);transition:all ease-in-out 300ms;transition-property:transform, opacity;font-size:var(--close-icon-font-size);opacity:0;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.close-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.fab-button-close-active) .close-icon{transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports (backdrop-filter: blur(0)){:host(.fab-button-translucent) .button-native{backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'};export{l as ion_fab_button}
1
+ import{r as o,i as t,h as r,H as a,e as n}from"./p-9babd345.js";import{h as i}from"./p-987c64eb.js";import{g as e}from"./p-fef04ab5.js";import{h as s,o as c,c as d}from"./p-69e7783d.js";const l=class{constructor(r){o(this,r),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.activated=!1,this.disabled=!1,this.routerDirection="forward",this.show=!1,this.translucent=!1,this.type="button",this.closeIcon=i,this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}render(){const{el:o,disabled:t,color:n,href:i,activated:l,show:b,translucent:u,size:g}=this,p=s("ion-fab-list",o),h=e(this),v=void 0===i?"button":"a",f="button"===v?{type:this.type}:{download:this.download,href:i,rel:this.rel,target:this.target};return r(a,{"aria-disabled":t?"true":null,class:d(n,{[h]:!0,"fab-button-in-list":p,"fab-button-translucent-in-list":p&&u,"fab-button-close-active":l,"fab-button-show":b,"fab-button-disabled":t,"fab-button-translucent":u,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${g}`]:void 0!==g})},r(v,Object.assign({},f,{class:"button-native",part:"native",disabled:t,onFocus:this.onFocus,onBlur:this.onBlur,onClick:o=>c(i,o,this.routerDirection,this.routerAnimation)}),r("ion-icon",{icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),r("span",{class:"button-inner"},r("slot",null)),"md"===h&&r("ion-ripple-effect",null)))}get el(){return n(this)}};l.style={ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-kerning:none}.button-native{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transform:var(--transform);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;appearance:none;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:flex;position:absolute;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;height:100%;transition:all ease-in-out 300ms;transition-property:transform, opacity;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){margin-left:8px;margin-right:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.fab-button-small){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px}}.close-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;transform:scale(0.4) rotateZ(-45deg);transition:all ease-in-out 300ms;transition-property:transform, opacity;font-size:var(--close-icon-font-size);opacity:0;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.close-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.fab-button-close-active) .close-icon{transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports (backdrop-filter: blur(0)){:host(.fab-button-translucent) .button-native{backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports (backdrop-filter: blur(0)){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports (backdrop-filter: blur(0)){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-kerning:none}.button-native{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;transform:var(--transform);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;appearance:none;box-sizing:border-box}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:flex;position:absolute;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;height:100%;transition:all ease-in-out 300ms;transition-property:transform, opacity;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){margin-left:8px;margin-right:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.fab-button-small){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px}}.close-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;transform:scale(0.4) rotateZ(-45deg);transition:all ease-in-out 300ms;transition-property:transform, opacity;font-size:var(--close-icon-font-size);opacity:0;z-index:1}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.close-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.fab-button-close-active) .close-icon{transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports (backdrop-filter: blur(0)){:host(.fab-button-translucent) .button-native{backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'};export{l as ion_fab_button}
@@ -1,4 +1,4 @@
1
- import{w as i,B as e}from"./p-9babd345.js";import{c as n,k as a}from"./p-55ae49e1.js";
1
+ import{w as i,B as e}from"./p-9babd345.js";import{c as n,b as a}from"./p-4f144efa.js";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */const o="ionViewWillLeave",s="ionViewDidLeave",t="ionViewWillUnload",r=e=>new Promise(((n,a)=>{i((()=>{c(e),w(e).then((i=>{i.animation&&i.animation.destroy(),d(e),n(i)}),(i=>{d(e),a(i)}))}))})),c=i=>{const e=i.enteringEl,n=i.leavingEl;L(e,n,i.direction),i.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),h(e,!1),e.style.setProperty("pointer-events","none"),n&&(h(n,!1),n.style.setProperty("pointer-events","none"))},w=async i=>{const n=await l(i);return n&&e.isBrowser?p(n,i):v(i)},d=i=>{const e=i.enteringEl,n=i.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),void 0!==n&&(n.classList.remove("ion-page-invisible"),n.style.removeProperty("pointer-events"))},l=async i=>{if(i.leavingEl&&i.animated&&0!==i.duration)return i.animationBuilder?i.animationBuilder:"ios"===i.mode?(await import("./p-1df05176.js")).iosTransitionAnimation:(await import("./p-e72d4450.js")).mdTransitionAnimation},p=async(i,e)=>{await m(e,!0);const n=i(e.baseEl,e);f(e.enteringEl,e.leavingEl);const a=await b(n,e);return e.progressCallback&&e.progressCallback(void 0),a&&g(e.enteringEl,e.leavingEl),{hasCompleted:a,animation:n}},v=async i=>{const e=i.enteringEl,n=i.leavingEl;return await m(i,!1),f(e,n),g(e,n),{hasCompleted:!0}},m=async(i,e)=>{const n=(void 0!==i.deepWait?i.deepWait:e)?[V(i.enteringEl),V(i.leavingEl)]:[P(i.enteringEl),P(i.leavingEl)];await Promise.all(n),await u(i.viewIsReady,i.enteringEl)},u=async(i,e)=>{i&&await i(e)},b=(i,e)=>{const n=e.progressCallback,a=new Promise((e=>{i.onFinish((i=>e(1===i)))}));return n?(i.progressStart(!0),n(i)):i.play(),a},f=(i,e)=>{y(e,"ionViewWillLeave"),y(i,"ionViewWillEnter")},g=(i,e)=>{y(i,"ionViewDidEnter"),y(e,"ionViewDidLeave")},y=(i,e)=>{if(i){const n=new CustomEvent(e,{bubbles:!1,cancelable:!1});i.dispatchEvent(n)}},P=i=>i?new Promise((e=>n(i,e))):Promise.resolve(),V=async i=>{const e=i;if(e){if(null!=e.componentOnReady){if(null!=await e.componentOnReady())return}else if(null!=e.__registerHost){const i=new Promise((i=>a(i)));return void await i}await Promise.all(Array.from(e.children).map(V))}},h=(i,e)=>{e?(i.setAttribute("aria-hidden","true"),i.classList.add("ion-page-hidden")):(i.hidden=!1,i.removeAttribute("aria-hidden"),i.classList.remove("ion-page-hidden"))},L=(i,e,n)=>{void 0!==i&&(i.style.zIndex="back"===n?"99":"101"),void 0!==e&&(e.style.zIndex="100")},j=i=>{if(i.classList.contains("ion-page"))return i;return i.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||i};export{t as L,o as a,s as b,V as d,j as g,y as l,h as s,r as t}
4
+ */const o="ionViewWillLeave",s="ionViewDidLeave",t="ionViewWillUnload",r=e=>new Promise(((n,a)=>{i((()=>{c(e),w(e).then((i=>{i.animation&&i.animation.destroy(),d(e),n(i)}),(i=>{d(e),a(i)}))}))})),c=i=>{const e=i.enteringEl,n=i.leavingEl;L(e,n,i.direction),i.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),h(e,!1),e.style.setProperty("pointer-events","none"),n&&(h(n,!1),n.style.setProperty("pointer-events","none"))},w=async i=>{const n=await l(i);return n&&e.isBrowser?p(n,i):v(i)},d=i=>{const e=i.enteringEl,n=i.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),void 0!==n&&(n.classList.remove("ion-page-invisible"),n.style.removeProperty("pointer-events"))},l=async i=>{if(i.leavingEl&&i.animated&&0!==i.duration)return i.animationBuilder?i.animationBuilder:"ios"===i.mode?(await import("./p-ff4d6858.js")).iosTransitionAnimation:(await import("./p-ef2dace6.js")).mdTransitionAnimation},p=async(i,e)=>{await m(e,!0);const n=i(e.baseEl,e);f(e.enteringEl,e.leavingEl);const a=await b(n,e);return e.progressCallback&&e.progressCallback(void 0),a&&g(e.enteringEl,e.leavingEl),{hasCompleted:a,animation:n}},v=async i=>{const e=i.enteringEl,n=i.leavingEl;return await m(i,!1),f(e,n),g(e,n),{hasCompleted:!0}},m=async(i,e)=>{const n=(void 0!==i.deepWait?i.deepWait:e)?[V(i.enteringEl),V(i.leavingEl)]:[P(i.enteringEl),P(i.leavingEl)];await Promise.all(n),await u(i.viewIsReady,i.enteringEl)},u=async(i,e)=>{i&&await i(e)},b=(i,e)=>{const n=e.progressCallback,a=new Promise((e=>{i.onFinish((i=>e(1===i)))}));return n?(i.progressStart(!0),n(i)):i.play(),a},f=(i,e)=>{y(e,"ionViewWillLeave"),y(i,"ionViewWillEnter")},g=(i,e)=>{y(i,"ionViewDidEnter"),y(e,"ionViewDidLeave")},y=(i,e)=>{if(i){const n=new CustomEvent(e,{bubbles:!1,cancelable:!1});i.dispatchEvent(n)}},P=i=>i?new Promise((e=>n(i,e))):Promise.resolve(),V=async i=>{const e=i;if(e){if(null!=e.componentOnReady){if(null!=await e.componentOnReady())return}else if(null!=e.__registerHost){const i=new Promise((i=>a(i)));return void await i}await Promise.all(Array.from(e.children).map(V))}},h=(i,e)=>{e?(i.setAttribute("aria-hidden","true"),i.classList.add("ion-page-hidden")):(i.hidden=!1,i.removeAttribute("aria-hidden"),i.classList.remove("ion-page-hidden"))},L=(i,e,n)=>{void 0!==i&&(i.style.zIndex="back"===n?"99":"101"),void 0!==e&&(e.style.zIndex="100")},j=i=>{if(i.classList.contains("ion-page"))return i;return i.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||i};export{t as L,o as a,s as b,V as d,j as g,y as l,h as s,r as t}
@@ -0,0 +1 @@
1
+ import{r as a,h as e,e as s}from"./p-9babd345.js";const r=class{constructor(e){a(this,e)}componentDidLoad(){}introOnMouseOver(a,e){this.description=a,console.log(e),e.target.style.opacity=1}render(){return e("div",null,e("div",{class:"people"},e("div",{class:"character-image zynab",onMouseOver:a=>this.introOnMouseOver("<strong>I’m Zinab or Z.</strong> My family’s from Nigeria, and we live in the Melrose section of the South Bronx. I’m all about racial justice, and watch… I’m going to be the first Muslim mayor of New York City. Believe that!",a)},e("img",{src:"/assets/img/characters/zynab.png"})),e("div",{class:"character-image kimberley",onMouseOver:a=>this.introOnMouseOver("<strong>Hey, everyone, this is Kimberly </strong>and I’m from Brooklyn. My dream is to become a venture capitalist, so I can fund businesses and causes led by other Black Women. I love watching reality TV shows that are related to business like Shark Tank and Undercover Boss.",a)},e("img",{src:"/assets/img/characters/kimberly.png"})),e("div",{class:"character-image jen",onMouseOver:a=>this.introOnMouseOver("<strong>Hi, my name’s Jen</strong> and I’m from Murray Hill Queens. Second-generation Korean American. I love softball and statistics, so right now my dream job would be in sabermetrics. You know, basically a data analyst in baseball.",a)},e("img",{src:"/assets/img/characters/jen.png"})),e("div",{class:"character-image yuna",onMouseOver:a=>this.introOnMouseOver("<strong>Hi, my name’s Yuna</strong> and I’m from Murray Hill Queens. Second-generation Korean American. I love softball and statistics, so right now my dream job would be in sabermetrics. You know, basically a data analyst in baseball.",a)},e("img",{src:"/assets/img/characters/yuna.png"})),e("div",{class:"character-image valeria",onMouseOver:a=>this.introOnMouseOver("<strong>I’m VALERIA but most of my friends call me Val.</strong> First-generation Dominican from Washington Heights. I could watch MSNBC and CNN all day. In fact, one day I’m going to have my own political talk show like my crushes Rachel Maddow and Robin Roberts.",a)},e("img",{src:"/assets/img/characters/valeria.png"}))),e("div",{class:"people-description"},this.description?e("div",{class:"character-intro",innerHTML:this.description}):""))}get el(){return s(this)}};r.style=".people{display:flex}.character-intro{width:100%;padding:15px;border:1px red solid;border-radius:5px}.character-image{opacity:0.5}.character-image:hover{opacity:1}";export{r as sparkle_intro}
@@ -1 +1 @@
1
- import{r as s,h as i,H as r,e}from"./p-9babd345.js";import{j as n,k as t}from"./p-6ee40949.js";import{g as o,c,a}from"./p-fef04ab5.js";import{s as h}from"./p-70b2452c.js";import{S as l}from"./p-a9ccb0df.js";const f=class{constructor(i){s(this,i)}componentWillLoad(){if(void 0===this.pullingIcon){const s=o(this),i=void 0!==this.el.style.webkitOverflowScrolling?"lines":t;this.pullingIcon=c.get("refreshingIcon","ios"===s&&a("mobile")?c.get("spinner",i):"circular")}if(void 0===this.refreshingSpinner){const s=o(this);this.refreshingSpinner=c.get("refreshingSpinner",c.get("spinner","ios"===s?"lines":"circular"))}}render(){const s=this.pullingIcon,e=null!=s&&void 0!==l[s],t=o(this);return i(r,{class:t},i("div",{class:"refresher-pulling"},this.pullingIcon&&e&&i("div",{class:"refresher-pulling-icon"},i("div",{class:"spinner-arrow-container"},i("ion-spinner",{name:this.pullingIcon,paused:!0}),"md"===t&&"circular"===this.pullingIcon&&i("div",{class:"arrow-container"},i("ion-icon",{icon:n})))),this.pullingIcon&&!e&&i("div",{class:"refresher-pulling-icon"},i("ion-icon",{icon:this.pullingIcon,lazy:!1})),this.pullingText&&i("div",{class:"refresher-pulling-text",innerHTML:h(this.pullingText)})),i("div",{class:"refresher-refreshing"},this.refreshingSpinner&&i("div",{class:"refresher-refreshing-icon"},i("ion-spinner",{name:this.refreshingSpinner})),this.refreshingText&&i("div",{class:"refresher-refreshing-text",innerHTML:h(this.refreshingText)})))}get el(){return e(this)}};export{f as ion_refresher_content}
1
+ import{r as s,h as i,H as r,e}from"./p-9babd345.js";import{j as n,k as t}from"./p-987c64eb.js";import{g as o,c,a}from"./p-fef04ab5.js";import{s as h}from"./p-70b2452c.js";import{S as l}from"./p-a9ccb0df.js";const f=class{constructor(i){s(this,i)}componentWillLoad(){if(void 0===this.pullingIcon){const s=o(this),i=void 0!==this.el.style.webkitOverflowScrolling?"lines":t;this.pullingIcon=c.get("refreshingIcon","ios"===s&&a("mobile")?c.get("spinner",i):"circular")}if(void 0===this.refreshingSpinner){const s=o(this);this.refreshingSpinner=c.get("refreshingSpinner",c.get("spinner","ios"===s?"lines":"circular"))}}render(){const s=this.pullingIcon,e=null!=s&&void 0!==l[s],t=o(this);return i(r,{class:t},i("div",{class:"refresher-pulling"},this.pullingIcon&&e&&i("div",{class:"refresher-pulling-icon"},i("div",{class:"spinner-arrow-container"},i("ion-spinner",{name:this.pullingIcon,paused:!0}),"md"===t&&"circular"===this.pullingIcon&&i("div",{class:"arrow-container"},i("ion-icon",{icon:n})))),this.pullingIcon&&!e&&i("div",{class:"refresher-pulling-icon"},i("ion-icon",{icon:this.pullingIcon,lazy:!1})),this.pullingText&&i("div",{class:"refresher-pulling-text",innerHTML:h(this.pullingText)})),i("div",{class:"refresher-refreshing"},this.refreshingSpinner&&i("div",{class:"refresher-refreshing-icon"},i("ion-spinner",{name:this.refreshingSpinner})),this.refreshingText&&i("div",{class:"refresher-refreshing-text",innerHTML:h(this.refreshingText)})))}get el(){return e(this)}};export{f as ion_refresher_content}
@@ -1 +1 @@
1
- import{r as t,i,h as s,e,H as h}from"./p-9babd345.js";import{g as n}from"./p-fef04ab5.js";import{m as o}from"./p-55ae49e1.js";let a;const r=class{constructor(s){t(this,s),this.ionDrag=i(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.closestContent=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){this.item=this.el.querySelector("ion-item"),this.closestContent=this.el.closest("ion-content"),await this.updateOptions(),this.gesture=(await import("./p-b3e6427d.js")).createGesture({el:this.el,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:t=>this.canStart(t),onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,a===this.el&&(a=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}async open(t){if(null===this.item)return;const i=this.getOptions(t);i&&(void 0===t&&(t=i===this.leftOptions?"start":"end"),t=o(t)?"end":"start",this.openAmount<0&&i===this.leftOptions||this.openAmount>0&&i===this.rightOptions||(this.closeOpened(),this.state=4,requestAnimationFrame((()=>{this.calculateOptsWidth(),a=this.el,this.setOpenAmount("end"===t?this.optsWidthRightSide:-this.optsWidthLeftSide,!1),this.state="end"===t?8:16}))))}async close(){this.setOpenAmount(0,!0)}async closeOpened(){return void 0!==a&&(a.close(),a=void 0,!0)}getOptions(t){return void 0===t?this.leftOptions||this.rightOptions:"start"===t?this.leftOptions:this.rightOptions}async updateOptions(){const t=this.el.querySelectorAll("ion-item-options");let i=0;this.leftOptions=this.rightOptions=void 0;for(let s=0;s<t.length;s++){const e=t.item(s),h=void 0!==e.componentOnReady?await e.componentOnReady():e;"start"==(o(h.side)?"end":"start")?(this.leftOptions=h,i|=1):(this.rightOptions=h,i|=2)}this.optsDirty=!0,this.sides=i}canStart(t){return!("rtl"===document.dir?window.innerWidth-t.startX<15:t.startX<15)&&(a&&a!==this.el&&this.closeOpened(),!(!this.rightOptions&&!this.leftOptions))}disableContentScrollY(){null!==this.closestContent&&(this.initialContentScrollY=this.closestContent.scrollY,this.closestContent.scrollY=!1)}restoreContentScrollY(){null!==this.closestContent&&(this.closestContent.scrollY=this.initialContentScrollY)}onStart(){this.item=this.el.querySelector("ion-item"),this.disableContentScrollY(),a=this.el,void 0!==this.tmr&&(clearTimeout(this.tmr),this.tmr=void 0),0===this.openAmount&&(this.optsDirty=!0,this.state=4),this.initialOpenAmount=this.openAmount,this.item&&(this.item.style.transition="none")}onMove(t){this.optsDirty&&this.calculateOptsWidth();let i,s=this.initialOpenAmount-t.deltaX;switch(this.sides){case 2:s=Math.max(0,s);break;case 1:s=Math.min(0,s);break;case 3:break;case 0:return;default:console.warn("invalid ItemSideFlags value",this.sides)}s>this.optsWidthRightSide?(i=this.optsWidthRightSide,s=i+.55*(s-i)):s<-this.optsWidthLeftSide&&(i=-this.optsWidthLeftSide,s=i+.55*(s-i)),this.setOpenAmount(s,!1)}onEnd(t){this.restoreContentScrollY();const i=t.velocityX;let s=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const e=this.openAmount>0==!(i<0),h=Math.abs(i)>.3,n=Math.abs(this.openAmount)<Math.abs(s/2);d(e,h,n)&&(s=0);const o=this.state;this.setOpenAmount(s,!0),0!=(32&o)&&this.rightOptions?this.rightOptions.fireSwipeEvent():0!=(64&o)&&this.leftOptions&&this.leftOptions.fireSwipeEvent()}calculateOptsWidth(){this.optsWidthRightSide=0,this.rightOptions&&(this.rightOptions.style.display="flex",this.optsWidthRightSide=this.rightOptions.offsetWidth,this.rightOptions.style.display=""),this.optsWidthLeftSide=0,this.leftOptions&&(this.leftOptions.style.display="flex",this.optsWidthLeftSide=this.leftOptions.offsetWidth,this.leftOptions.style.display=""),this.optsDirty=!1}setOpenAmount(t,i){if(void 0!==this.tmr&&(clearTimeout(this.tmr),this.tmr=void 0),!this.item)return;const s=this.item.style;if(this.openAmount=t,i&&(s.transition=""),t>0)this.state=t>=this.optsWidthRightSide+30?40:8;else{if(!(t<0))return this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout((()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled)}),600),a=void 0,void(s.transform="");this.state=t<=-this.optsWidthLeftSide-30?80:16}s.transform=`translate3d(${-t}px,0,0)`,this.ionDrag.emit({amount:t,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const t=n(this);return s(h,{class:{[t]:!0,"item-sliding-active-slide":2!==this.state,"item-sliding-active-options-end":0!=(8&this.state),"item-sliding-active-options-start":0!=(16&this.state),"item-sliding-active-swipe-end":0!=(32&this.state),"item-sliding-active-swipe-start":0!=(64&this.state)}})}get el(){return e(this)}static get watchers(){return{disabled:["disabledChanged"]}}},d=(t,i,s)=>!i&&s||t&&i;r.style="ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;user-select:none}ion-item-sliding .item{user-select:none}.item-sliding-active-slide .item{position:relative;transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;order:1;transition-duration:0.6s;transition-property:padding-left}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable,:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{order:-1}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;order:-1;transition-duration:0.6s;transition-property:padding-right}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable,:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{order:1}";export{r as ion_item_sliding}
1
+ import{r as t,i,h as s,e,H as h}from"./p-9babd345.js";import{g as n}from"./p-fef04ab5.js";import{h as o}from"./p-4f144efa.js";let a;const r=class{constructor(s){t(this,s),this.ionDrag=i(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.closestContent=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){this.item=this.el.querySelector("ion-item"),this.closestContent=this.el.closest("ion-content"),await this.updateOptions(),this.gesture=(await import("./p-b3e6427d.js")).createGesture({el:this.el,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:t=>this.canStart(t),onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,a===this.el&&(a=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}async open(t){if(null===this.item)return;const i=this.getOptions(t);i&&(void 0===t&&(t=i===this.leftOptions?"start":"end"),t=o(t)?"end":"start",this.openAmount<0&&i===this.leftOptions||this.openAmount>0&&i===this.rightOptions||(this.closeOpened(),this.state=4,requestAnimationFrame((()=>{this.calculateOptsWidth(),a=this.el,this.setOpenAmount("end"===t?this.optsWidthRightSide:-this.optsWidthLeftSide,!1),this.state="end"===t?8:16}))))}async close(){this.setOpenAmount(0,!0)}async closeOpened(){return void 0!==a&&(a.close(),a=void 0,!0)}getOptions(t){return void 0===t?this.leftOptions||this.rightOptions:"start"===t?this.leftOptions:this.rightOptions}async updateOptions(){const t=this.el.querySelectorAll("ion-item-options");let i=0;this.leftOptions=this.rightOptions=void 0;for(let s=0;s<t.length;s++){const e=t.item(s),h=void 0!==e.componentOnReady?await e.componentOnReady():e;"start"==(o(h.side)?"end":"start")?(this.leftOptions=h,i|=1):(this.rightOptions=h,i|=2)}this.optsDirty=!0,this.sides=i}canStart(t){return!("rtl"===document.dir?window.innerWidth-t.startX<15:t.startX<15)&&(a&&a!==this.el&&this.closeOpened(),!(!this.rightOptions&&!this.leftOptions))}disableContentScrollY(){null!==this.closestContent&&(this.initialContentScrollY=this.closestContent.scrollY,this.closestContent.scrollY=!1)}restoreContentScrollY(){null!==this.closestContent&&(this.closestContent.scrollY=this.initialContentScrollY)}onStart(){this.item=this.el.querySelector("ion-item"),this.disableContentScrollY(),a=this.el,void 0!==this.tmr&&(clearTimeout(this.tmr),this.tmr=void 0),0===this.openAmount&&(this.optsDirty=!0,this.state=4),this.initialOpenAmount=this.openAmount,this.item&&(this.item.style.transition="none")}onMove(t){this.optsDirty&&this.calculateOptsWidth();let i,s=this.initialOpenAmount-t.deltaX;switch(this.sides){case 2:s=Math.max(0,s);break;case 1:s=Math.min(0,s);break;case 3:break;case 0:return;default:console.warn("invalid ItemSideFlags value",this.sides)}s>this.optsWidthRightSide?(i=this.optsWidthRightSide,s=i+.55*(s-i)):s<-this.optsWidthLeftSide&&(i=-this.optsWidthLeftSide,s=i+.55*(s-i)),this.setOpenAmount(s,!1)}onEnd(t){this.restoreContentScrollY();const i=t.velocityX;let s=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const e=this.openAmount>0==!(i<0),h=Math.abs(i)>.3,n=Math.abs(this.openAmount)<Math.abs(s/2);d(e,h,n)&&(s=0);const o=this.state;this.setOpenAmount(s,!0),0!=(32&o)&&this.rightOptions?this.rightOptions.fireSwipeEvent():0!=(64&o)&&this.leftOptions&&this.leftOptions.fireSwipeEvent()}calculateOptsWidth(){this.optsWidthRightSide=0,this.rightOptions&&(this.rightOptions.style.display="flex",this.optsWidthRightSide=this.rightOptions.offsetWidth,this.rightOptions.style.display=""),this.optsWidthLeftSide=0,this.leftOptions&&(this.leftOptions.style.display="flex",this.optsWidthLeftSide=this.leftOptions.offsetWidth,this.leftOptions.style.display=""),this.optsDirty=!1}setOpenAmount(t,i){if(void 0!==this.tmr&&(clearTimeout(this.tmr),this.tmr=void 0),!this.item)return;const s=this.item.style;if(this.openAmount=t,i&&(s.transition=""),t>0)this.state=t>=this.optsWidthRightSide+30?40:8;else{if(!(t<0))return this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout((()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled)}),600),a=void 0,void(s.transform="");this.state=t<=-this.optsWidthLeftSide-30?80:16}s.transform=`translate3d(${-t}px,0,0)`,this.ionDrag.emit({amount:t,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const t=n(this);return s(h,{class:{[t]:!0,"item-sliding-active-slide":2!==this.state,"item-sliding-active-options-end":0!=(8&this.state),"item-sliding-active-options-start":0!=(16&this.state),"item-sliding-active-swipe-end":0!=(32&this.state),"item-sliding-active-swipe-start":0!=(64&this.state)}})}get el(){return e(this)}static get watchers(){return{disabled:["disabledChanged"]}}},d=(t,i,s)=>!i&&s||t&&i;r.style="ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;user-select:none}ion-item-sliding .item{user-select:none}.item-sliding-active-slide .item{position:relative;transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;order:1;transition-duration:0.6s;transition-property:padding-left}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable,:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{order:-1}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;order:-1;transition-duration:0.6s;transition-property:padding-right}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable,:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{order:1}";export{r as ion_item_sliding}
@@ -1,4 +1,4 @@
1
- import{r as t,i as e,h as i,H as s,e as o}from"./p-9babd345.js";import{g as n}from"./p-fef04ab5.js";import{f as a,j as r,b as l,d}from"./p-55ae49e1.js";import{f as h,h as c,a as p}from"./p-6c6145cd.js";import{h as u}from"./p-69e7783d.js";import"./p-6fd4985d.js";
1
+ import{r as t,i as e,h as i,H as s,e as o}from"./p-9babd345.js";import{g as n}from"./p-fef04ab5.js";import{f as a,m as r,n as l,d}from"./p-4f144efa.js";import{c as h,f as c,h as p}from"./p-b17dd6df.js";import{h as u}from"./p-69e7783d.js";import"./p-6fd4985d.js";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
4
  */const g=(t,e)=>{if(1===t.nodeType)return(t.tagName===e.toUpperCase()?[t]:Array.from(t.querySelectorAll(e))).find((e=>e.value===t.value))},b=class{constructor(i){t(this,i),this.ionChange=e(this,"ionChange",7),this.ionCancel=e(this,"ionCancel",7),this.ionFocus=e(this,"ionFocus",7),this.ionBlur=e(this,"ionBlur",7),this.ionStyle=e(this,"ionStyle",7),this.inputId="ion-sel-"+k++,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=t=>{this.setFocus(),this.open(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}styleChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})}async connectedCallback(){this.updateOverlayOptions(),this.emitStyle(),this.mutationO=((t,e,i)=>{if("undefined"==typeof MutationObserver)return;const s=new MutationObserver((t=>{i(((t,e)=>{let i;t.forEach((t=>{for(let s=0;s<t.addedNodes.length;s++)i=g(t.addedNodes[s],e)||i}))})(t,"ion-select-option"))}));return s.observe(t,{childList:!0,subtree:!0}),s})(this.el,0,(async()=>{this.updateOverlayOptions()}))}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentDidLoad(){this.didInit=!0}async open(t){if(this.disabled||this.isExpanded)return;const e=this.overlay=await this.createOverlay(t);if(this.isExpanded=!0,e.onDidDismiss().then((()=>{this.overlay=void 0,this.isExpanded=!1,this.setFocus()})),await e.present(),"popover"===this.interface){let t=this.childOpts.map((t=>t.value)).indexOf(this.value);t=t>-1?t:0;const i=e.querySelector(`.select-interface-option:nth-child(${t+1})`);i&&a(i)}return e}createOverlay(t){let e=this.interface;return"action-sheet"===e&&this.multiple&&(console.warn(`Select interface cannot be "${e}" with a multi-value select. Using the "alert" interface instead.`),e="alert"),"popover"!==e||t||(console.warn(`Select interface cannot be a "${e}" without passing an event. Using the "alert" interface instead.`),e="alert"),"action-sheet"===e?this.openActionSheet():"popover"===e?this.openPopover(t):this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t)return;const e=this.childOpts,i=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(e,i);break;case"popover":const s=t.querySelector("ion-select-popover");s&&(s.options=this.createPopoverOptions(e,i));break;case"alert":t.inputs=this.createAlertInputs(e,this.multiple?"checkbox":"radio",i)}}createActionSheetButtons(t,e){const i=t.map((t=>{const i=m(t),s=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" "),o=`${C} ${s}`;return{role:f(e,i,this.compareWith)?"selected":"",text:t.textContent,cssClass:o,handler:()=>{this.value=i}}}));return i.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),i}createAlertInputs(t,e,i){return t.map((t=>{const s=m(t),o=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" ");return{type:e,cssClass:`${C} ${o}`,label:t.textContent||"",value:s,checked:f(i,s,this.compareWith),disabled:t.disabled}}))}createPopoverOptions(t,e){return t.map((t=>{const i=m(t),s=Array.from(t.classList).filter((t=>"hydrated"!==t)).join(" ");return{text:t.textContent||"",cssClass:`${C} ${s}`,value:i,checked:f(e,i,this.compareWith),disabled:t.disabled,handler:t=>{this.value=t,this.multiple||this.close()}}}))}async openPopover(t){const e=this.interfaceOptions,i=n(this),s="md"!==i,o=this.multiple,a=this.value;let r=t,l="auto";const d=this.el.closest("ion-item");d&&(d.classList.contains("item-label-floating")||d.classList.contains("item-label-stacked"))&&(r=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:d}}),l="cover");const c=Object.assign(Object.assign({mode:i,event:r,alignment:"center",size:l,showBackdrop:s},e),{component:"ion-select-popover",cssClass:["select-popover",e.cssClass],componentProps:{header:e.header,subHeader:e.subHeader,message:e.message,multiple:o,value:a,options:this.createPopoverOptions(this.childOpts,a)}});return h.create(c)}async openActionSheet(){const t=n(this),e=this.interfaceOptions,i=Object.assign(Object.assign({mode:t},e),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",e.cssClass]});return c.create(i)}async openAlert(){const t=this.getLabel(),e=t?t.textContent:null,i=this.interfaceOptions,s=this.multiple?"checkbox":"radio",o=n(this),a=Object.assign(Object.assign({mode:o},i),{header:i.header?i.header:e,inputs:this.createAlertInputs(this.childOpts,s,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:t=>{this.value=t}}],cssClass:["select-alert",i.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return p.create(a)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return r(this.el)}hasValue(){return""!==this.getText()}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const t=this.selectedText;return null!=t&&""!==t?t:y(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled,select:!0,"select-disabled":this.disabled,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.isExpanded})}render(){const{disabled:t,el:e,inputId:o,isExpanded:a,name:r,placeholder:h,value:c}=this,p=n(this),{labelText:g,labelId:b}=l(e,o);d(!0,e,r,v(c),t);let f=!1,m=this.getText();""===m&&void 0!==h&&(m=h,f=!0);const x={"select-text":!0,"select-placeholder":f},y=f?"placeholder":"text",w=void 0!==g?""!==m?`${m}, ${g}`:g:m;return i(s,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":w,class:{[p]:!0,"in-item":u("ion-item",e),"select-disabled":t,"select-expanded":a}},i("div",{"aria-hidden":"true",class:x,part:y},m),i("div",{class:"select-icon",role:"presentation",part:"icon"},i("div",{class:"select-icon-inner"})),i("label",{id:b},w),i("button",{type:"button",disabled:t,id:o,"aria-labelledby":b,"aria-haspopup":"listbox","aria-expanded":`${a}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.focusEl=t}))}get el(){return o(this)}static get watchers(){return{disabled:["styleChanged"],placeholder:["styleChanged"],isExpanded:["styleChanged"],value:["valueChanged"]}}},f=(t,e,i)=>void 0!==t&&(Array.isArray(t)?t.some((t=>x(t,e,i))):x(t,e,i)),m=t=>{const e=t.value;return void 0===e?t.textContent||"":e},v=t=>{if(null!=t)return Array.isArray(t)?t.join(","):t.toString()},x=(t,e,i)=>"function"==typeof i?i(t,e):"string"==typeof i?t[i]===e[i]:Array.isArray(e)?e.includes(t):t===e,y=(t,e,i)=>void 0===e?"":Array.isArray(e)?e.map((e=>w(t,e,i))).filter((t=>null!==t)).join(", "):w(t,e,i)||"",w=(t,e,i)=>{const s=t.find((t=>x(m(t),e,i)));return s?s.textContent:null};let k=0;const C="select-interface-option";b.style={ios:":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:flex;position:relative;align-items:center;font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px;opacity:0.33}",md:":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:flex;position:relative;align-items:center;font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;appearance:none;outline:none;display:flex;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px;transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:0.55}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus) .select-icon{transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)) .select-icon{transform:translate3d(0, -9px, 0) rotate(180deg)}:host-context(ion-item.ion-focused) .select-icon,:host-context(.item-has-focus) .select-icon{color:var(--highlight-color-focused);opacity:1}"};const O=class{constructor(e){t(this,e),this.inputId="ion-selopt-"+j++,this.disabled=!1}render(){return i(s,{role:"option",id:this.inputId,class:n(this)})}get el(){return o(this)}};let j=0;O.style=":host{display:none}";export{b as ion_select,O as ion_select_option}
@@ -0,0 +1,4 @@
1
+ import{c as t}from"./p-87549bb7.js";import{g as o}from"./p-e08059b6.js";import"./p-4f144efa.js";import"./p-9babd345.js";
2
+ /*!
3
+ * (C) Ionic http://ionicframework.com - MIT License
4
+ */const r=(r,a)=>{const i="back"===a.direction,s=a.leavingEl,e=o(a.enteringEl),p=e.querySelector("ion-toolbar"),n=t();if(n.addElement(e).fill("both").beforeRemoveClass("ion-page-invisible"),i?n.duration(a.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(a.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),p){const o=t();o.addElement(p),n.addAnimation(o)}if(s&&i){n.duration(a.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const r=t();r.addElement(o(s)).onFinish((t=>{1===t&&r.elements.length>0&&r.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),n.addAnimation(r)}return n};export{r as mdTransitionAnimation}