@sparkle-learning/core 0.0.39 → 0.0.40
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.
- package/dist/cjs/{auth.service-4b584cd7.js → PrivateRoute-074c584e.js} +30 -0
- package/dist/cjs/{sparkle-export-lessons_6.cjs.entry.js → header-mobile-collapse_61.cjs.entry.js} +11602 -2716
- package/dist/cjs/{icons-c61db785.js → icons-fda820af.js} +0 -0
- package/dist/cjs/index.cjs.js +5 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-core.cjs.js +1 -1
- package/dist/cjs/sparkle-feedback.cjs.entry.js +1 -2
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +117 -0
- package/dist/cjs/sparkle-quiz.cjs.entry.js +120 -0
- package/dist/cjs/student.service-2e58f237.js +78 -0
- package/dist/esm/{auth.service-9fb86455.js → PrivateRoute-c5441f35.js} +33 -4
- package/dist/esm/{animation-e0716b39.js → animation-12377cb3.js} +1 -1
- package/dist/esm/{auth.store-633e8414.js → auth.store-dba2c2da.js} +1 -1
- package/dist/esm/{facilitator.service-8fd435bf.js → facilitator.service-b0292f7f.js} +2 -2
- package/dist/esm/{feed.service-ace049e5.js → feed.service-8fbe4ce3.js} +3 -3
- package/dist/esm/{framework-delegate-e4f8013b.js → framework-delegate-3e634a5c.js} +1 -1
- package/dist/esm/{sparkle-export-lessons_6.entry.js → header-mobile-collapse_61.entry.js} +11501 -2670
- package/dist/esm/{helpers-03073fe4.js → helpers-bf0e23d6.js} +1 -1
- package/dist/esm/{httpService-61864992.js → httpService-7b75b095.js} +2 -2
- package/dist/esm/{icons-90b957ab.js → icons-1c794c74.js} +1 -1
- package/dist/esm/{index-b4b4e503.js → index-2b84cad2.js} +3 -3
- package/dist/esm/{index-a2d2941d.js → index-45fec1e7.js} +1 -1
- package/dist/esm/{index-37004831.js → index-5e8971ae.js} +1 -1
- package/dist/esm/{index-dedabca0.js → index-cded2d87.js} +2 -2
- package/dist/esm/{index.es-283fbd2e.js → index.es-e0c0f891.js} +1 -1
- package/dist/esm/index.js +5 -6
- package/dist/esm/{input-shims-cc3720a0.js → input-shims-671d8d9f.js} +2 -2
- package/dist/esm/ion-accordion.entry.js +1 -1
- package/dist/esm/ion-action-sheet_4.entry.js +5 -5
- package/dist/esm/ion-app.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb.entry.js +1 -1
- package/dist/esm/ion-content_2.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime.entry.js +1 -1
- package/dist/esm/ion-fab-button.entry.js +1 -1
- package/dist/esm/ion-footer.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll.entry.js +2 -2
- package/dist/esm/ion-item-options.entry.js +1 -1
- package/dist/esm/ion-item-sliding.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu-button.entry.js +4 -4
- package/dist/esm/ion-menu-toggle.entry.js +4 -4
- package/dist/esm/ion-menu.entry.js +4 -4
- package/dist/esm/ion-modal.entry.js +6 -6
- package/dist/esm/ion-nav.entry.js +4 -4
- package/dist/esm/ion-picker-column-internal_2.entry.js +1 -1
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-refresher.entry.js +3 -3
- package/dist/esm/ion-reorder-group.entry.js +2 -2
- package/dist/esm/ion-router-outlet.entry.js +4 -4
- package/dist/esm/ion-router.entry.js +1 -1
- package/dist/esm/ion-searchbar.entry.js +1 -1
- package/dist/esm/ion-segment-button.entry.js +1 -1
- package/dist/esm/ion-segment.entry.js +1 -1
- package/dist/esm/ion-select_2.entry.js +2 -2
- package/dist/esm/ion-slides.entry.js +1 -1
- package/dist/esm/ion-tab.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +1 -1
- package/dist/esm/ion-virtual-scroll.entry.js +1 -1
- package/dist/esm/{ios.transition-3a6179bb.js → ios.transition-131d64fe.js} +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-cff16bf3.js → md.transition-f6126011.js} +3 -3
- package/dist/esm/{menu-toggle-util-59241733.js → menu-toggle-util-bace8ae6.js} +1 -1
- package/dist/esm/{overlays-bdd9344a.js → overlays-3b4dca92.js} +2 -2
- package/dist/esm/{purify-7085b248.js → purify-85bfcc69.js} +1 -1
- package/dist/esm/sparkle-animation-player.entry.js +1 -1
- package/dist/esm/sparkle-code.entry.js +1 -1
- package/dist/esm/sparkle-core.js +1 -1
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +5 -5
- package/dist/esm/sparkle-feed-post.entry.js +1 -1
- package/dist/esm/sparkle-feedback.entry.js +5 -6
- package/dist/esm/sparkle-goal-form.entry.js +6 -6
- package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
- package/dist/esm/sparkle-quiz-feedback_5.entry.js +109 -0
- package/dist/esm/sparkle-quiz.entry.js +116 -0
- package/dist/esm/{status-tap-463d0f87.js → status-tap-dde52787.js} +2 -2
- package/dist/esm/{student.service-e6eb1f99.js → student.service-0746418b.js} +19 -3
- package/dist/esm/{swipe-back-f8765ac9.js → swipe-back-7847a0c1.js} +1 -1
- package/dist/esm/{util-a831d09d.js → util-6ef753e9.js} +1 -1
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +89 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
- package/dist/sparkle-core/index.esm.js +1 -1
- package/dist/sparkle-core/{p-539bf742.js → p-00d10dc9.js} +2 -2
- package/dist/sparkle-core/{p-b9933822.js → p-05c032dd.js} +1 -1
- package/dist/sparkle-core/{p-dabc80c4.entry.js → p-0664370b.entry.js} +1 -1
- package/dist/sparkle-core/p-077c732b.js +4 -0
- package/dist/sparkle-core/{p-c278db5f.entry.js → p-0ad5c123.entry.js} +1 -1
- package/dist/sparkle-core/{p-b9b1d4da.entry.js → p-0afa3a4d.entry.js} +1 -1
- package/dist/sparkle-core/{p-285ab4ed.entry.js → p-0c3f3ea6.entry.js} +1 -1
- package/dist/sparkle-core/{p-727e1c28.entry.js → p-0f1c5899.entry.js} +1 -1
- package/dist/sparkle-core/{p-64e814b9.entry.js → p-11356b03.entry.js} +1 -1
- package/dist/sparkle-core/{p-b5ec8fb0.entry.js → p-11a6c175.entry.js} +1 -1
- package/dist/sparkle-core/p-12dd96d7.js +4 -0
- package/dist/sparkle-core/{p-a85598ad.js → p-1d4c7c11.js} +1 -1
- package/dist/sparkle-core/{p-c8fe45df.entry.js → p-1e125ca5.entry.js} +1 -1
- package/dist/sparkle-core/{p-cab3da3c.entry.js → p-1e4f65ee.entry.js} +1 -1
- package/dist/sparkle-core/{p-405f7c58.js → p-2033cd86.js} +2 -2
- package/dist/sparkle-core/p-23aca7ca.js +4 -0
- package/dist/sparkle-core/{p-e65c72cc.entry.js → p-24cb9a33.entry.js} +1 -1
- package/dist/sparkle-core/{p-014b5707.entry.js → p-2c1ca854.entry.js} +1 -1
- package/dist/sparkle-core/{p-340754ed.js → p-2f569553.js} +1 -1
- package/dist/sparkle-core/{p-2e2b813c.js → p-2ff67662.js} +2 -2
- package/dist/sparkle-core/{p-0c0f8acd.entry.js → p-30b810d1.entry.js} +1 -1
- package/dist/sparkle-core/{p-b236d258.entry.js → p-377b04c2.entry.js} +1 -1
- package/dist/sparkle-core/{p-fde382f0.entry.js → p-39712c56.entry.js} +1 -1
- package/dist/sparkle-core/{p-be28346b.js → p-3de0e00c.js} +1 -1
- package/dist/sparkle-core/p-462bffba.js +1 -0
- package/dist/sparkle-core/{p-3f85e1ca.js → p-48f72e63.js} +2 -2
- package/dist/sparkle-core/{p-6f0545b3.entry.js → p-54dd894f.entry.js} +1 -1
- package/dist/sparkle-core/{p-ce94efdb.entry.js → p-564e64fc.entry.js} +1 -1
- package/dist/sparkle-core/{p-db8387eb.entry.js → p-58e4bbe5.entry.js} +1 -1
- package/dist/sparkle-core/{p-ca4c8a10.js → p-5cad23f1.js} +1 -1
- package/dist/sparkle-core/p-5efc6566.js +1 -0
- package/dist/sparkle-core/{p-c9cd4ff1.js → p-600cf6a3.js} +1 -1
- package/dist/sparkle-core/{p-2e035338.entry.js → p-641bfc92.entry.js} +1 -1
- package/dist/sparkle-core/{p-b4bc8b02.entry.js → p-6faa194c.entry.js} +1 -1
- package/dist/sparkle-core/{p-2f10208d.entry.js → p-6ffd2420.entry.js} +1 -1
- package/dist/sparkle-core/p-73721c84.js +4 -0
- package/dist/sparkle-core/{p-ed9f48c4.entry.js → p-74864276.entry.js} +1 -1
- package/dist/sparkle-core/p-80d6b0e6.entry.js +1 -0
- package/dist/sparkle-core/p-8492a765.entry.js +1 -0
- package/dist/sparkle-core/{p-a019ad0c.js → p-86ed13f0.js} +1 -1
- package/dist/sparkle-core/{p-4ae75caa.entry.js → p-894ff7e6.entry.js} +1 -1
- package/dist/sparkle-core/{p-5519d283.entry.js → p-9289cdbc.entry.js} +1 -1
- package/dist/sparkle-core/{p-4bd4dab2.js → p-935e7cfc.js} +1 -1
- package/dist/sparkle-core/{p-25e556cc.entry.js → p-957715c5.entry.js} +1 -1
- package/dist/sparkle-core/{p-b4b01fa2.entry.js → p-9abbd715.entry.js} +1 -1
- package/dist/sparkle-core/{p-e7568d4b.js → p-9d894ed4.js} +1 -1
- package/dist/sparkle-core/{p-4320dac0.entry.js → p-9ebf0537.entry.js} +1 -1
- package/dist/sparkle-core/p-a49ab4e8.entry.js +1 -0
- package/dist/sparkle-core/{p-93e74f1b.entry.js → p-af3cc111.entry.js} +1 -1
- package/dist/sparkle-core/{p-5fc26938.js → p-b0603d19.js} +1 -1
- package/dist/sparkle-core/{p-317037de.entry.js → p-b3f375fb.entry.js} +1 -1
- package/dist/sparkle-core/p-b4408842.entry.js +352 -0
- package/dist/sparkle-core/{p-2fba9a3a.entry.js → p-b5f3e1bf.entry.js} +1 -1
- package/dist/sparkle-core/{p-82ad4e7c.entry.js → p-b96f3c84.entry.js} +2 -2
- package/dist/sparkle-core/{p-ad102371.js → p-bd80ff43.js} +1 -1
- package/dist/sparkle-core/{p-f0cf4a8f.entry.js → p-be64105c.entry.js} +1 -1
- package/dist/sparkle-core/{p-f4b0b6a4.entry.js → p-c0533c23.entry.js} +1 -1
- package/dist/sparkle-core/p-c3cadfc6.entry.js +1 -0
- package/dist/sparkle-core/{p-2d4a5ddf.entry.js → p-c60b29bd.entry.js} +2 -2
- package/dist/sparkle-core/{p-56a2e8a2.js → p-cabe9139.js} +1 -1
- package/dist/sparkle-core/{p-0bb0cf41.entry.js → p-cabfbf22.entry.js} +1 -1
- package/dist/sparkle-core/{p-66a85393.entry.js → p-ce4b22f7.entry.js} +1 -1
- package/dist/sparkle-core/{p-17eb4633.js → p-d68092b7.js} +1 -1
- package/dist/sparkle-core/{p-0ea2518d.entry.js → p-de4deb61.entry.js} +1 -1
- package/dist/sparkle-core/{p-1f0b3ff9.entry.js → p-e686d8b5.entry.js} +1 -1
- package/dist/sparkle-core/{p-08d97c59.entry.js → p-e77d982d.entry.js} +1 -1
- package/dist/sparkle-core/{p-44f813b7.entry.js → p-e863bf1d.entry.js} +1 -1
- package/dist/sparkle-core/{p-63f69cdc.entry.js → p-ebd4354b.entry.js} +1 -1
- package/dist/sparkle-core/{p-fc965b88.entry.js → p-ef4edc48.entry.js} +1 -1
- package/dist/sparkle-core/{p-c2bbaf55.entry.js → p-fb0ca75e.entry.js} +1 -1
- package/dist/sparkle-core/{p-b83444c7.entry.js → p-fb757951.entry.js} +1 -1
- package/dist/sparkle-core/{p-d81a0680.js → p-fbccd30c.js} +1 -1
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/PrivateRoute-4abc9d29.js +0 -35
- package/dist/cjs/dom-utils-b8befdd5.js +0 -63
- package/dist/cjs/header-mobile-collapse.cjs.entry.js +0 -90
- package/dist/cjs/index-70e63f5b.js +0 -3071
- package/dist/cjs/injectHistory-7206bbb9.js +0 -9
- package/dist/cjs/ion-avatar.cjs.entry.js +0 -25
- package/dist/cjs/ion-button.cjs.entry.js +0 -129
- package/dist/cjs/ion-card_2.cjs.entry.js +0 -91
- package/dist/cjs/ion-checkbox_4.cjs.entry.js +0 -360
- package/dist/cjs/ion-col_3.cjs.entry.js +0 -159
- package/dist/cjs/ion-icon_13.cjs.entry.js +0 -1505
- package/dist/cjs/ion-input_2.cjs.entry.js +0 -313
- package/dist/cjs/ion-label_2.cjs.entry.js +0 -126
- package/dist/cjs/ion-spinner.cjs.entry.js +0 -64
- package/dist/cjs/match-path-84c9f7ca.js +0 -511
- package/dist/cjs/sparkle-card_3.cjs.entry.js +0 -91
- package/dist/cjs/sparkle-course-root.cjs.entry.js +0 -146
- package/dist/cjs/sparkle-dropdown.cjs.entry.js +0 -61
- package/dist/cjs/sparkle-facilitator-header_19.cjs.entry.js +0 -2130
- package/dist/cjs/sparkle-goal-progress.cjs.entry.js +0 -19
- package/dist/cjs/sparkle-gww-item.cjs.entry.js +0 -74
- package/dist/cjs/sparkle-menu-toggle_3.cjs.entry.js +0 -236
- package/dist/cjs/sparkle-validation-error.cjs.entry.js +0 -21
- package/dist/cjs/stencil-router-redirect.cjs.entry.js +0 -32
- package/dist/cjs/student.service-d48f1c99.js +0 -61
- package/dist/cjs/user.store-8a049c4e.js +0 -21
- package/dist/esm/PrivateRoute-7b526801.js +0 -33
- package/dist/esm/dom-utils-109a7d75.js +0 -55
- package/dist/esm/header-mobile-collapse.entry.js +0 -86
- package/dist/esm/index-f9b9ba5d.js +0 -3067
- package/dist/esm/injectHistory-968f626d.js +0 -7
- package/dist/esm/ion-avatar.entry.js +0 -21
- package/dist/esm/ion-button.entry.js +0 -125
- package/dist/esm/ion-card_2.entry.js +0 -86
- package/dist/esm/ion-checkbox_4.entry.js +0 -353
- package/dist/esm/ion-col_3.entry.js +0 -153
- package/dist/esm/ion-icon_13.entry.js +0 -1489
- package/dist/esm/ion-input_2.entry.js +0 -308
- package/dist/esm/ion-label_2.entry.js +0 -121
- package/dist/esm/ion-spinner.entry.js +0 -60
- package/dist/esm/match-path-36fdf5c7.js +0 -499
- package/dist/esm/sparkle-card_3.entry.js +0 -85
- package/dist/esm/sparkle-course-root.entry.js +0 -142
- package/dist/esm/sparkle-dropdown.entry.js +0 -57
- package/dist/esm/sparkle-facilitator-header_19.entry.js +0 -2108
- package/dist/esm/sparkle-goal-progress.entry.js +0 -15
- package/dist/esm/sparkle-gww-item.entry.js +0 -70
- package/dist/esm/sparkle-menu-toggle_3.entry.js +0 -230
- package/dist/esm/sparkle-validation-error.entry.js +0 -17
- package/dist/esm/stencil-router-redirect.entry.js +0 -28
- package/dist/esm/user.store-b8645067.js +0 -19
- package/dist/sparkle-core/p-03585916.js +0 -1
- package/dist/sparkle-core/p-1019ebc3.js +0 -1
- package/dist/sparkle-core/p-1728ead7.js +0 -1
- package/dist/sparkle-core/p-32762a44.entry.js +0 -1
- package/dist/sparkle-core/p-3bc68dd0.js +0 -1
- package/dist/sparkle-core/p-3c133235.entry.js +0 -1
- package/dist/sparkle-core/p-46869031.entry.js +0 -1
- package/dist/sparkle-core/p-4a5f2b2b.js +0 -1
- package/dist/sparkle-core/p-53bcbd1d.js +0 -1
- package/dist/sparkle-core/p-54ada5e3.entry.js +0 -1
- package/dist/sparkle-core/p-554da5b8.entry.js +0 -1
- package/dist/sparkle-core/p-5da2d95a.entry.js +0 -1
- package/dist/sparkle-core/p-6b05a1d3.entry.js +0 -1
- package/dist/sparkle-core/p-6ea246fe.js +0 -4
- package/dist/sparkle-core/p-6ed0236e.entry.js +0 -1
- package/dist/sparkle-core/p-7f25366a.entry.js +0 -1
- package/dist/sparkle-core/p-91accfc1.js +0 -1
- package/dist/sparkle-core/p-a5c5da9a.entry.js +0 -1
- package/dist/sparkle-core/p-a8a77bec.entry.js +0 -1
- package/dist/sparkle-core/p-c4af184b.entry.js +0 -1
- package/dist/sparkle-core/p-c71cbbf7.entry.js +0 -1
- package/dist/sparkle-core/p-c8c73fa7.js +0 -4
- package/dist/sparkle-core/p-cd832fbf.entry.js +0 -1
- package/dist/sparkle-core/p-d0ac5f17.js +0 -1
- package/dist/sparkle-core/p-d1fcbfc2.js +0 -4
- package/dist/sparkle-core/p-d432d3ac.entry.js +0 -1
- package/dist/sparkle-core/p-d969f7d0.entry.js +0 -348
- package/dist/sparkle-core/p-dca90a55.entry.js +0 -4
- package/dist/sparkle-core/p-dd2e7f84.js +0 -4
- package/dist/sparkle-core/p-e0429a19.entry.js +0 -1
- package/dist/sparkle-core/p-e7066c64.entry.js +0 -1
- package/dist/sparkle-core/p-eb40a191.entry.js +0 -1
- package/dist/sparkle-core/p-ecdea569.entry.js +0 -1
- package/dist/sparkle-core/p-ef6c2352.entry.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as t,e as i,H as a,i as o,F as s,c as n,k as r}from"./p-ee1e0eb4.js";import{m as l}from"./p-405f7c58.js";import{S as h,t as d,s as p}from"./p-d0ac5f17.js";import{T as c,A as u,c as m}from"./p-340754ed.js";import{F as g,f}from"./p-d81a0680.js";import{H as b}from"./p-a85598ad.js";import{m as v,h as k}from"./p-2e2b813c.js";import{A as x,g as w,F as y,f as N}from"./p-c9cd4ff1.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-1019ebc3.js";import{u as D}from"./p-4a5f2b2b.js";import{S as A}from"./p-03585916.js";import{i as U}from"./p-3bc68dd0.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-99ee9919.js";import{s as $,a as X,b as J,g as K,c as Q,d as Z}from"./p-53bcbd1d.js";import"./p-add30d46.js";import"./p-17eb4633.js";import"./p-871106e0.js";import"./p-3f85e1ca.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=o(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 g.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")},o=(e,t)=>{e.forEach((e=>{["href","content"].forEach((i=>{e.hasAttribute(i)&&e.setAttribute(i,t(e.getAttribute(i)))}))}))},s=()=>{const e=(/^\/docs\/pages.*$/.test(this.notesPath),"Sparkle");return i.title||t?`${t} - ${e}`:e};document.title=s(),o(a.title,s),o(a.url,(e=>{const t="/docs/",i=location.pathname.split(t)[1];return e.split(t)[0]+t+i})),o(a.description,(()=>i.description||"Sparkle is the free open-source platform for creating learning content on web, mobile and desktop.")),o(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(s,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(f.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"},f.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 b.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 b.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 b.http.post("api/Account/reset-password",e),t.Succeeded&&(u.state.loading=!1)}catch(e){return u.state.loading=!1,e}return t}}const oe=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")))))]}};oe.style="sparkle-forgot-password .list{margin-bottom:0}";const se=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"}))))}};se.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=o(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=o(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}=m({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 b.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=o(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=o(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")},o=(e,t)=>{e.forEach((e=>{["href","content"].forEach((i=>{e.hasAttribute(i)&&e.setAttribute(i,t(e.getAttribute(i)))}))}))},s=()=>{const e=(/^\/docs\/pages\/appflow.*$/.test(this.path),"Sparkle");return i.title||t?`${t} - ${e}`:e};document.title=s(),o(a.title,s),o(a.url,(e=>{const t="/docs/",i=location.pathname.split(t)[1];return e.split(t)[0]+t+i})),o(a.description,(()=>i.description||"Sparkle is the free open-source platform for creating learning content on web, mobile and desktop.")),o(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 b.getInstance(),await b.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,o)=>{if(null!=e){const s="function"==typeof e?e(t,i):e;"string"==typeof s?"function"==typeof a?a(s,o):(Oe(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==s)}else o(!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,o=e.location,s=e.navigator,n=X(e),r=!J(s),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:s,hash:n}=o;let r=a+s+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(s,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 o=t-a;o&&(i=!0,O(o))},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",s=R(e,t,V(p),P.location);g.confirmTransitionTo(s,i,d,(e=>{if(!e)return;const t=j(s),{key:r,state:l}=s;if(n)if(a.pushState({key:r,state:l},"",t),h)o.href=t;else{const e=y.indexOf(P.location.key),t=y.slice(0,-1===e?0:e+1);t.push(s.key),y=t,f({action:i,location:s})}else Oe(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),o.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",s=R(e,t,V(p),P.location);g.confirmTransitionTo(s,i,d,(e=>{if(!e)return;const t=j(s),{key:r,state:l}=s;if(n)if(a.replaceState({key:r,state:l},"",t),h)o.replace(t);else{const e=y.indexOf(P.location.key);-1!==e&&(y[e]=s.key),f({action:i,location:s})}else Oe(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),o.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,o=0,s=!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 o=t-a;o&&(i=!0,I(o))},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)=>{o+=t,1===o?e.addEventListener("hashchange",x):0===o&&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",o=R(e,void 0,V(h),C.location);v.confirmTransitionTo(o,i,d,(e=>{if(!e)return;const t=Y(o),s=u(c+t);if(g()!==s){a=t,(e=>{n.hash=e})(s);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:o})}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",o=R(e,void 0,V(h),C.location);v.confirmTransitionTo(o,i,d,(e=>{if(!e)return;const t=Y(o),s=u(c+t);g()!==s&&(a=t,f(s));const n=O.indexOf(Y(C.location));-1!==n&&(O[n]=t),k({action:i,location:o})}))},go:I,goBack:()=>I(-1),goForward:()=>I(1),block:(t="")=>{const i=v.setPrompt(t);return s||(P(e,1),s=!0),()=>(s&&(s=!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,oe as sparkle_forgot_password,se 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 +0,0 @@
|
|
1
|
-
import{r as s,h as r,H as e}from"./p-ee1e0eb4.js";import{c as n,g as i}from"./p-871106e0.js";import{c as t}from"./p-0e4de1d0.js";import{S as o}from"./p-f3cba72a.js";const a=class{constructor(r){s(this,r),this.paused=!1}getName(){const s=this.name||n.get("spinner"),r=i(this);return s||("ios"===r?"lines":"circular")}render(){const s=this,a=i(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:t(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,i)=>{const t=s.fn(e,n,i);return t.style["animation-duration"]=e+"ms",r("svg",{viewBox:t.viewBox||"0 0 64 64",style:t.style},r("circle",{transform:t.transform||"translate(32,32)",cx:t.cx,cy:t.cy,r:t.r,style:s.elmDuration?{animationDuration:e+"ms"}:{}}))},p=(s,e,n,i)=>{const t=s.fn(e,n,i);return t.style["animation-duration"]=e+"ms",r("svg",{viewBox:t.viewBox||"0 0 64 64",style:t.style},r("line",{transform:"translate(32,32)",y1:t.y1,y2:t.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{transform-origin:center;position:absolute;top:0;left:0;width:100%;height:100%;transform:translateZ(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 +0,0 @@
|
|
1
|
-
import{c as e}from"./p-340754ed.js";const{state:t,onChange:s,reset:a}=e({user:{FirstName:"",LastName:"",ProfileText:"",ProfileImage:"",IsVerified:!1,Roles:[],FacilitatorClassList:[]},loaded:!1,updateLoading:!1,enrollmentList:[]}),o={state:t,onChange:s,reset:a};export{o as u}
|
@@ -1 +0,0 @@
|
|
1
|
-
const r=(r,t,e)=>e(r.confirm(t)),t=r=>r.metaKey||r.altKey||r.ctrlKey||r.shiftKey,e=r=>{const t=r.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&r.history&&"pushState"in r.history},o=r=>-1===r.userAgent.indexOf("Trident"),s=r=>-1===r.userAgent.indexOf("Firefox"),a=(r,t)=>void 0===t.state&&-1===r.userAgent.indexOf("CriOS"),n=(r,t)=>{const e=r[t],o="__storage_test__";try{return e.setItem(o,o),e.removeItem(o),!0}catch(r){return r instanceof DOMException&&(22===r.code||1014===r.code||"QuotaExceededError"===r.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.name)&&0!==e.length}};export{e as a,o as b,a as c,s as d,r as g,t as i,n as s}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r,h as s,H as e}from"./p-ee1e0eb4.js";const a=class{constructor(s){r(this,s)}render(){return s(e,null,s("div",{class:"progress-container"},s("div",{id:"progress-bar",style:{"--p":this.percentage+"%"}}),s("strong",{class:"percentage"},this.percentage,"%")))}};a.style=":host{display:block}.progress-container{padding:4px;display:flex;align-items:center}.progress-container>.progress{padding-left:6px}#progress-bar{background:#ccc;border-radius:12px;height:10px;width:100%;padding:0px;margin:0 auto}#progress-bar:after{content:'';display:block;background:var(--ion-color-primary);width:var(--p);height:100%;border-radius:9px}.percentage{padding-left:10px}";export{a as sparkle_goal_progress}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,e as s}from"./p-ee1e0eb4.js";import{A as r}from"./p-99ee9919.js";const e=class{constructor(s){t(this,s)}componentWillLoad(){if(this.history&&this.root&&this.url)return this.history.replace((s=this.root,"/"==(t=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+t:s+t));var t,s}get el(){return s(this)}};r.injectProps(e,["history","root"]);export{e as stencil_router_redirect}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r,h as o,H as d}from"./p-ee1e0eb4.js";import{g as i}from"./p-871106e0.js";const s=class{constructor(o){r(this,o)}render(){return o(d,{class:i(this)},o("slot",null))}};s.style={ios:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",md:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}"};export{s as ion_avatar}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as i,H as n}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{o,c as a}from"./p-0e4de1d0.js";const e=class{constructor(i){t(this,i),this.button=!1,this.type="button",this.disabled=!1,this.routerDirection="forward"}isClickable(){return void 0!==this.href||this.button}renderCard(t){const n=this.isClickable();if(!n)return[i("slot",null)];const{href:r,routerAnimation:a,routerDirection:e}=this,d=n?void 0===r?"button":"a":"div";return i(d,Object.assign({},"button"===d?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target},{class:"card-native",part:"native",disabled:this.disabled,onClick:t=>o(r,t,e,a)}),i("slot",null),n&&"md"===t&&i("ion-ripple-effect",null))}render(){const t=r(this);return i(n,{class:a(this.color,{[t]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(t))}};e.style={ios:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{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;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;transform:translateZ(0);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){transform:scale3d(0.97, 0.97, 1)}",md:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{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;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}"};const d=class{constructor(i){t(this,i)}render(){const t=r(this);return i(n,{class:{[t]:!0,[`card-content-${t}`]:!0}})}};d.style={ios:"ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"};export{e as ion_card,d as ion_card_content}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import{d as t}from"./p-17eb4633.js";import{i as o}from"./p-506221fe.js";import{createGesture as r}from"./p-e9431eeb.js";import"./p-076f0239.js";
|
2
|
-
/*!
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
4
|
-
*/const e=(e,s,n,a,p)=>{const i=e.ownerDocument.defaultView,c=o(e),m=t=>c?-t.deltaX:t.deltaX;return r({el:e,gestureName:"goback-swipe",gesturePriority:40,threshold:10,canStart:t=>(t=>{const{startX:o}=t;return c?o>=i.innerWidth-50:o<=50})(t)&&s(),onStart:n,onMove:t=>{const o=m(t);a(o/i.innerWidth)},onEnd:o=>{const r=m(o),e=i.innerWidth,s=r/e,n=(t=>c?-t.velocityX:t.velocityX)(o),a=n>=0&&(n>.2||r>e/2),f=(a?1-s:s)*e;let h=0;if(f>5){const t=f/Math.abs(n);h=Math.min(t,540)}p(a,s<=0?.01:t(0,s,.9999),h)}})};export{e as createSwipeBackGesture}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as o,e as i}from"./p-ee1e0eb4.js";import{a as l}from"./p-56a2e8a2.js";const a=class{constructor(o){e(this,o),this.darkMode=!0,this.mobileDropdownActive=!1,this.stuck=!1,this.queued=!1}deactivate(){setTimeout((()=>{this.el.classList.remove("ionic-sub-header--mobile-active")}),200)}getTriggerEl(){const e=document.createElement("div");return e.id="ionic-sub-header__trigger",e}componentDidLoad(){this.el.before&&(this.el.before(this.getTriggerEl()),this.init(),requestAnimationFrame((()=>{this.el.classList.add("ionic-sub-header--initialized")})))}init(){this.observer=new IntersectionObserver((e=>{this.queued||(this.stuck||0!==e[0].intersectionRatio?this.stuck&&1===e[0].intersectionRatio&&(this.queued=!0,requestAnimationFrame((()=>{this.el.classList.remove("ionic-sub-header--stuck"),this.stuck=!1,this.queued=!1}))):(this.queued=!0,requestAnimationFrame((()=>{this.el.classList.add("ionic-sub-header--stuck"),this.stuck=!0,this.queued=!1}))))}),{threshold:[0,1]});const e=document.getElementById("ionic-sub-header__trigger");this.el&&e&&(this.observer.observe(e),setTimeout((()=>{this.el.classList.add("ionic-sub-header--initialized");const e=document.querySelector(".navbar-default");e&&e.classList.add("navbar--not-fixed")}),405))}handleMobileToggleClick(){this.el.classList.toggle("ionic-sub-header--mobile-active")}render(){return[o("div",{class:"header-mobile-collapse__backdrop",onClick:()=>this.deactivate()}),o("a",{class:"ionic-sub-header__mobile-toggle",onClick:()=>this.handleMobileToggleClick()},o(l,null)),o("div",{class:"header-mobile-collapse__content"},o("slot",null))]}get el(){return i(this)}};a.style="header-mobile-collapse,header-mobile-collapse .header-mobile-collapse__content{flex:1;display:flex;justify-content:flex-end;align-items:center}header-mobile-collapse .ionic-sub-header__mobile-toggle{display:none;padding-top:14px;pointer-events:none;padding-left:8px}header-mobile-collapse .ionic-sub-header__mobile-toggle svg{height:20px;width:20px}header-mobile-collapse .UtilNav{margin-left:auto}header-mobile-collapse>ionic-search{padding-right:8px;padding-top:4px;display:none}header-mobile-collapse .label-sm-only .Dropdown-button-label,header-mobile-collapse .sm-only{display:none}@media (max-width: 800px){header-mobile-collapse .ionic-sub-header__mobile-toggle{display:block;cursor:pointer;padding-top:14px;pointer-events:all;transition:0.2s transform ease 0.1s;transform-origin:66% 50%}header-mobile-collapse .header-mobile-collapse__backdrop{position:fixed;top:100%;height:100vh;left:0;right:0;background:rgba(0, 0, 0, 0.1);cursor:pointer;opacity:0;pointer-events:none;transition:0.4s opacity}header-mobile-collapse.ionic-sub-header--mobile-active .header-mobile-collapse__backdrop{opacity:1;pointer-events:all}header-mobile-collapse>ionic-search{display:block}header-mobile-collapse .header-mobile-collapse__content{display:flex;flex-direction:column;align-items:stretch;position:fixed;width:100vw;left:0;background:white;box-shadow:0px 1px 3px rgba(2, 8, 20, 0.06), 0px 1px 2px rgba(2, 8, 20, 0.04);top:56px;padding:16px 16px 8px;max-height:calc(100vh - 64px);overflow:auto;pointer-events:none;opacity:0;transform:translateY(-10px);transition:transform 0.2s cubic-bezier(0.36, 0.66, 0.04, 1), opacity 0.2s linear}header-mobile-collapse.ionic-sub-header--mobile-active .header-mobile-collapse__content{opacity:1;pointer-events:all;transform:translateY(0);transition:transform 0.25s cubic-bezier(0.17, 0.67, 0.52, 1), opacity 0.1s linear}header-mobile-collapse .sparkle-dropdown,header-mobile-collapse .SectionNav .Dropdown{align-self:stretch}header-mobile-collapse .Dropdown .Dropdown-button,header-mobile-collapse .UtilNav .sm-only{width:100%;display:flex;justify-content:space-between;color:#5b708b;font-size:20px;line-height:24px;letter-spacing:-0.03em;padding:13px 0 14px}header-mobile-collapse .Dropdown--left .Dropdown-button{padding-left:16px;padding-right:14px;margin-bottom:10px;padding-top:10px;height:44px;box-shadow:0px 1px 2px rgba(2, 8, 20, 0.04)}header-mobile-collapse .Dropdown .Dropdown-button .Dropdown-arrow{height:26px;width:20px;margin-right:-4px}header-mobile-collapse .SectionNav .Dropdown,header-mobile-collapse .SectionNav-tabs>*{margin-right:0}header-mobile-collapse .Dropdown:focus{outline:none}header-mobile-collapse .SectionNav-tabs stencil-route-link{height:45px}header-mobile-collapse .Dropdown--right .Dropdown-button{text-align:left}header-mobile-collapse .SectionNav stencil-route,header-mobile-collapse .SectionNav-tabs,header-mobile-collapse .UtilNav{display:flex;flex-direction:column;margin-left:0;align-items:stretch}header-mobile-collapse .UtilNav>*{margin-left:0;border-bottom:1px solid #e6e6e8}header-mobile-collapse .UtilNav>:last-child{border-bottom:none}header-mobile-collapse .Dropdown-panel{position:static;border-bottom:1px solid var(--text-color--lighter)}header-mobile-collapse .SectionNav-tabs a{font-size:20px;line-height:24px;letter-spacing:-0.02em;color:#5b708b;padding-left:16px;padding-right:14px;font-weight:400}header-mobile-collapse .UtilNav a{padding:0}header-mobile-collapse .SectionNav-tabs .link-active{background:rgba(var(--ion-color-primary-rgb), 0.12);color:var(--ion-color-primary);display:flex;justify-content:space-between;width:100%;border-radius:8px}header-mobile-collapse .SectionNav-tabs .link-active::after{content:'\\2713';position:static;background:none;width:auto;font-size:16px}header-mobile-collapse .SectionNav-tabs{position:relative;padding-bottom:8px;margin-bottom:18px;margin-top:5px}header-mobile-collapse .SectionNav-tabs::after{position:absolute;bottom:0;left:-16px;width:100vw;border-bottom:1px solid #e6e6e8;content:''}header-mobile-collapse .header-mobile-collapse__content ionic-search{display:none}header-mobile-collapse .UtilNav::before{content:'More';font-size:20px;line-height:24px;letter-spacing:0.01em;color:#000;padding:6px 2px 8px}header-mobile-collapse .label-sm-only .Dropdown-button-label,header-mobile-collapse .sm-only{display:block}header-mobile-collapse .label-sm-only .Dropdown-icon,header-mobile-collapse .lg-only{display:none}header-mobile-collapse .label-sm-only .Dropdown-icon+.Dropdown-arrow{fill:#5b708b}header-mobile-collapse .UtilNav .sm-only .Dropdown-arrow{height:26px;width:20px;margin-right:-4px;fill:#b2becd}header-mobile-collapse .Dropdown-panel a{padding:8px;font-size:16px}header-mobile-collapse .Dropdown.is-open .Dropdown-panel{position:static}}";export{a as header_mobile_collapse}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as s,h as e,H as i,e as l,k as t}from"./p-ee1e0eb4.js";import{M as o}from"./p-56a2e8a2.js";import{A as a}from"./p-99ee9919.js";import{m as r}from"./p-1728ead7.js";const n=class{constructor(e){s(this,e)}hostData(){return{role:"button",tabindex:"0","aria-label":"Toggle Menu"}}__stencil_render(){return e(o,null)}render(){return e(i,this.hostData(),this.__stencil_render())}};n.style="sparkle-menu-toggle{background-color:rgba(0, 0, 0, var(--bg-alpha, 0));border-radius:50%;color:var(--text-color--light);cursor:pointer;height:40px;padding:8px;width:40px}@media (hover: hover){sparkle-menu-toggle:focus,sparkle-menu-toggle:hover{--bg-alpha:0.03;outline:none}sparkle-menu-toggle:active{--bg-alpha:0.06}}sparkle-menu-toggle svg{fill:currentColor}";const p=class{constructor(e){s(this,e),this.config={showRomanNumber:!1,showModuleIndex:!0,showSessionIndex:!0},this.toggleParent=s=>e=>{e.preventDefault(),this.selectedParent=s}}componentDidLoad(){}pageDidLoadHandler(s){if(s){let s=window.location.pathname.split("/").filter((s=>!!s&&"course"!=s));if(this.moduleURLName=s[0],this.sessionURLName=s[1],this.toc){let s=this.toc.courseModules.find((s=>s.urlName==this.moduleURLName));this.selectedParent=s}}}toggleLeftSidebar(){}romanize(s){if(isNaN(s))return NaN;for(var e=String(+s).split(""),i=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],l="",t=3;t--;)l=(i[+e.pop()+10*t]||"")+l;return Array(+e.join("")+1).join("M")+l}getModuleIndex(s,e){return this.config.showModuleIndex&&!e?(this.config.showRomanNumber?this.romanize(s):s)+". ":""}getSessionIndex(s,e){return this.config.showSessionIndex&&!e?s+". ":""}hostData(){return{role:"navigation"}}__stencil_render(){let s=0,i=0;return e("ul",{class:"module-list"},this.toc&&this.toc.courseModules.map((l=>(i=0,l.preventNumbering||s++,l.sessions.length>0&&e("li",null,e("a",{class:{"link-active":l.urlName==this.moduleURLName},href:l.sessions[0].urlName||"#",onClick:this.toggleParent(l)},e("span",{class:"section-label"},this.getModuleIndex(s,l.preventNumbering),l.name,l.comingSoon&&e("span",{class:"coming-soon"}," Coming soon"))),e("ul",{class:{collapsed:this.selectedParent?l!==this.selectedParent:0!==s,"session-list":!0}},l.sessions.map((s=>(s.preventNumbering||i++,e("li",{class:{active:l.urlName==this.moduleURLName&&s.urlName==this.sessionURLName}},e("stencil-route-link",{class:{"is-completed":!0,"link-active":l.urlName==this.moduleURLName&&s.urlName==this.sessionURLName},url:"course/"+l.urlName+"/"+s.urlName+"/"+s.pages[0].urlName,onClick:()=>this.toggleLeftSidebar()},this.getSessionIndex(i,s.preventNumbering),s.name,s.comingSoon&&e("span",{class:"coming-soon"}," Coming soon"))))))))))))}get el(){return l(this)}render(){return e(i,this.hostData(),this.__stencil_render())}};p.style="sparkle-nav{display:block;flex:0 0 auto;z-index:1}sparkle-nav .wrapper{position:relative}sparkle-nav .section-label{margin-bottom:0;font-size:14px;font-weight:600}sparkle-nav .module-list li,sparkle-nav .module-list ul li{list-style-type:none;margin:0;padding:0}sparkle-nav .module-list{margin-top:0;padding:0}sparkle-nav .module-list .section-label:first-of-type{margin-top:0}sparkle-nav .module-list li{font-size:14px;padding:10px 10px 0px 14px}sparkle-nav .module-list>li{margin-top:10px}sparkle-nav .module-list a{font-weight:400;color:#6c6c8b;text-decoration:none;white-space:nowrap;border:0}sparkle-nav .module-list a:not(.link-active){transition:color 0.2s}sparkle-nav .module-list a:hover{border:0}sparkle-nav .module-list .link-active{font-weight:bold;color:var(--ion-color-sparkle)}sparkle-nav .module-list .link-active a{color:var(--ion-color-sparkle)}sparkle-nav .module-list a:hover:not(.link-active){color:var(--ion-color-sparkle)}sparkle-nav .module-list ul li{padding-left:12px;transition:80ms height;display:block;overflow:hidden;text-overflow:ellipsis}sparkle-nav .module-list ul.collapsed li{height:0}sparkle-nav ul.session-list{margin:0;padding:10px 0px 0px 0px}sparkle-nav ul.session-list li a{display:flex;flex-direction:column;padding:15px 24px;position:relative}sparkle-nav ul.session-list li a:before{content:'';width:10px;height:10px;border-radius:50%;background:#dfe1e3;display:block;position:absolute;left:1px;top:50%;margin-top:-5px;z-index:5}sparkle-nav ul.session-list li a:after{content:'';background:#dfe1e3;height:100%;position:absolute;width:2px;display:block;left:5px;top:0}sparkle-nav ul.session-list li a.is-active{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:before{width:14px;height:14px;left:23px;margin-top:-7px;background:var(--ion-color-sparkle);box-shadow:0 0 4px var(--ion-color-sparkle)}sparkle-nav ul.session-list li a.is-active:after{background:#dfe1e3}sparkle-nav ul.session-list li stencil-route-link.is-completed a{}sparkle-nav ul.session-list li stencil-route-link.is-completed a:before{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li stencil-route-link.is-completed a:after{background:var(--ion-color-sparkle)}sparkle-nav ul.session-list li a p{color:#fff;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.2s ease-in-out color}sparkle-nav ul.session-list li a span{display:block;line-height:12px}sparkle-nav ul li span.coming-soon{font-size:0.7rem;display:block;background:0 0;color:#f6c95b;line-height:14px;border-radius:4px;padding:1px 4px 0;box-shadow:none;border:1px solid #f6c95b;width:85px;text-align:center}sparkle-nav ul.session-list li a:hover p{color:var(--ion-color-sparkle)}sparkle-nav ul.session-list li:first-child a:after{height:50%;top:50%}sparkle-nav ul.session-list li:last-child a:after{height:50%;bottom:50%}";const c=s=>"STENCIL-ROUTE"===s.tagName,h=class{constructor(e){s(this,e),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=t(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(s){if(null==s)return;let e=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(c).map(((i,l)=>{const t=r(s.pathname,{path:i.url,exact:i.exact,strict:!0});return t&&-1===e&&(e=l),{el:i,match:t}})),-1===e)return;if(this.activeIndex===e)return void(this.subscribers[e].el.match=this.subscribers[e].match);this.activeIndex=e;const i=this.subscribers[this.activeIndex];this.scrollTopOffset&&(i.el.scrollTopOffset=this.scrollTopOffset),i.el.group=this.group,i.el.match=i.match,i.el.componentUpdated=s=>{this.queue.write((()=>{this.subscribers.forEach(((s,e)=>{if(s.el.componentUpdated=void 0,e===this.activeIndex)return s.el.style.display="";this.scrollTopOffset&&(s.el.scrollTopOffset=this.scrollTopOffset),s.el.group=this.group,s.el.match=null,s.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},s))}}render(){return e("slot",null)}get el(){return l(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};a.injectProps(h,["location","routeViewsUpdated"]);export{n as sparkle_menu_toggle,p as sparkle_nav,h as stencil_route_switch}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{h as e}from"./p-ee1e0eb4.js";import{A as r}from"./p-340754ed.js";const t=t=>{var{component:n,permission:o,render:c}=t,i=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(t,["component","permission","render"]);const s=n;return e("stencil-route",Object.assign({},i,{routeRender:t=>r.state.isAuthenticated?o&&!sparkle.auth.isGranted(o)?e("stencil-router-redirect",{url:"/unauthorized"}):s?e(s,Object.assign({},t,t.componentProps)):c(t):e("stencil-router-redirect",{url:"/login"})}))};export{t as P}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,i as l,h as o,H as e,e as t}from"./p-ee1e0eb4.js";import{g as n}from"./p-871106e0.js";import{c as a,h as s}from"./p-0e4de1d0.js";const r=class{constructor(o){i(this,o),this.ionColor=l(this,"ionColor",7),this.ionStyle=l(this,"ionStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate="floating"===this.position,this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout((()=>{this.noAnimate=!1}),1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:i}=this;this.ionColor.emit({"item-label-color":void 0!==i,[`ion-color-${i}`]:void 0!==i})}emitStyle(){const{inRange:i,position:l}=this;i||this.ionStyle.emit({label:!0,[`label-${l}`]:void 0!==l})}render(){const i=this.position,l=n(this);return o(e,{class:a(this.color,{[l]:!0,"in-item-color":s("ion-item.ion-color",this.el),[`label-${i}`]:void 0!==i,"label-no-animate":this.noAnimate,"label-rtl":"rtl"===document.dir})})}get el(){return t(this)}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}};r.style={ios:".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{align-self:baseline}.label-fixed.sc-ion-label-ios-h{flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;transform:translate(0, 29px);transform-origin:left top;transition:transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{transform-origin:right top}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",md:'.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{align-self:baseline}.label-fixed.sc-ion-label-md-h{flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{transform-origin:top right}.label-stacked.sc-ion-label-md-h{transform:translateY(50%) scale(0.75);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{transform:translateY(96%);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{transform:translateY(-6px) scale(0.75);position:relative;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}'};const m=class{constructor(l){i(this,l),this.inset=!1}async closeSlidingItems(){const i=this.el.querySelector("ion-item-sliding");return!!(null==i?void 0:i.closeOpened)&&i.closeOpened()}render(){const i=n(this),{lines:l,inset:t}=this;return o(e,{role:"list",class:{[i]:!0,[`list-${i}`]:!0,"list-inset":t,[`list-lines-${l}`]:void 0!==l,[`list-${i}-lines-${l}`]:void 0!==l}})}get el(){return t(this)}};m.style={ios:"ion-list{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:block;contain:content;list-style-type:none}ion-list.list-inset{transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.list-ios.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-ios.list-inset ion-item{--border-width:0 0 1px 0;--inner-border-width:0}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item{--border-width:0;--inner-border-width:0}.list-ios-lines-full .item,.list-ios .item-lines-full{--border-width:0 0 0.55px 0}.list-ios-lines-full .item{--inner-border-width:0}.list-ios-lines-inset .item,.list-ios .item-lines-inset{--inner-border-width:0 0 0.55px 0}.list-ios .item-lines-inset{--border-width:0}.list-ios .item-lines-full{--inner-border-width:0}.list-ios .item-lines-none{--border-width:0;--inner-border-width:0}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:"ion-list{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:block;contain:content;list-style-type:none}ion-list.list-inset{transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-md>.input:last-child::after{left:0}[dir=rtl] .list-md>.input:last-child::after,:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}.list-md.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.list-md.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0;--border-width:0 0 1px 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0}.list-md.list-inset .item-interactive{--padding-start:0;--padding-end:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item{--border-width:0;--inner-border-width:0}.list-md-lines-full .item,.list-md .item-lines-full{--border-width:0 0 1px 0}.list-md-lines-full .item{--inner-border-width:0}.list-md-lines-inset .item,.list-md .item-lines-inset{--inner-border-width:0 0 1px 0}.list-md .item-lines-inset{--border-width:0}.list-md .item-lines-full{--inner-border-width:0}.list-md .item-lines-none{--border-width:0;--inner-border-width:0}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"};export{r as ion_label,m as ion_list}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,h as n,e,H as r}from"./p-ee1e0eb4.js";import{D as i}from"./p-56a2e8a2.js";const t=class{constructor(n){o(this,n),this.align="left",this.isOpen=!1}handleClick(o){o.target instanceof Node&&this.el.contains(o.target)||this.close()}handleKeyup(o){"Enter"===o.key&&this.toggle(),"Escape"===o.key&&this.close()}async close(){this.isOpen=!1}async open(){this.isOpen=!0}async toggle(){this.isOpen=!this.isOpen}hostData(){return{tabindex:"0",class:{Dropdown:!0,[`Dropdown--${this.align}`]:!0,"is-open":this.isOpen}}}__stencil_render(){const o=this.icon;return[n("button",{tabindex:"-1",class:"Dropdown-button","aria-haspopup":"menu","aria-expanded":this.isOpen?"true":"false",onClick:this.toggle.bind(this)},n("span",{class:"Dropdown-button-label"},this.label),o?n(o,{class:"Dropdown-icon"}):null,this.image?n("img",{class:"Dropdown-image",src:this.image}):null,n(i,{class:"Dropdown-arrow"})),n("div",{role:"menu",class:"Dropdown-panel"},n("slot",null))]}get el(){return e(this)}render(){return n(r,this.hostData(),this.__stencil_render())}};t.style=".Dropdown{display:inline-block;position:relative;z-index:1}.Dropdown-button{appearance:none;background:none;border:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:initial;white-space:nowrap;display:flex}.Dropdown-button .Dropdown-icon{height:14px;width:22px;fill:#ced6e0}.Dropdown-button .Dropdown-icon+.Dropdown-arrow{margin-left:0px;fill:#ced6e0;vertical-align:2px}.Dropdown:focus,.Dropdown-button:focus{outline:none}.Dropdown-button:hover{cursor:pointer}.Dropdown-arrow{fill:currentColor;height:0.8em;margin-bottom:-0.0875em;width:0.8em;margin-left:0.8em}.Dropdown.is-open .Dropdown-arrow{transform:rotate(180deg)}.Dropdown-panel{background-color:var(--background);border-radius:6px;border:none;box-shadow:0px 4px 12px 0px rgba(0, 0, 0, 0.08), 0px 2px 4px 0px rgba(0, 0, 0, 0.08);display:none;min-width:100%;overflow:hidden;pointer-events:none;position:absolute;top:100%;visibility:hidden}.Dropdown.is-open .Dropdown-panel{display:initial;pointer-events:auto;visibility:visible}.Dropdown--left .Dropdown-panel{left:0}.Dropdown--right .Dropdown-panel{right:0}.Dropdown--center .Dropdown-panel{left:50%;transform:translateX(-50%)}.Dropdown-panel a{display:flex;justify-content:space-between;padding:0.5em 1em}.Dropdown-panel svg{height:1em;width:1em;margin-left:4px}@media (hover: hover){.Dropdown-panel a:hover{background-color:rgba(0, 0, 0, 0.025)}}.Dropdown-panel>section{padding:0.5em 0}.Dropdown-panel>section:not(:last-child){border-bottom:solid 1px var(--line-rule-color)}.Dropdown-image{height:36px;width:36px;border-radius:50%}";export{t as sparkle_dropdown}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as s,i as t,h as e}from"./p-ee1e0eb4.js";import{i as r}from"./p-3bc68dd0.js";import{P as o}from"./p-91accfc1.js";import{A as i}from"./p-9a443f51.js";import{A as a}from"./p-340754ed.js";import{i as l,A as h}from"./p-1019ebc3.js";import{u as n}from"./p-4a5f2b2b.js";import"./p-99ee9919.js";import"./p-b226f54d.js";import"./p-5d409601.js";import"./p-a85598ad.js";import"./p-2e2b813c.js";import"./p-871106e0.js";import"./p-add30d46.js";import"./p-17eb4633.js";const p=class{constructor(e){s(this,e),this.pageChanged=t(this,"pageChanged",7),this.history=null,this.tocPath="/assets/content/toc.json",this.quizPath="/assets/quiz.json",this.config={appUrl:"http://localhost:3333",globalAssetsUrl:"http://localhost:3333/assets",apiUrl:"https://localhost:44369/",quizPath:this.quizPath,tocPath:this.tocPath,menu:{showRomanNumber:!0,showModuleIndex:!0,showSessionIndex:!0},prod:!0,courseId:1},this.isMenuToggled=!1,this.setHistory=({history:s})=>{this.history||(this.history=s,this.history.listen(this.newPage.bind(this)))},this.toggleMenu=()=>{this.isMenuToggled=!this.isMenuToggled},this.handlePageClick=()=>{this.isSmallViewport()&&this.isMenuToggled&&(this.isMenuToggled=!1)}}newPage(s){this.pageChanged.emit(s)}lockScroll(s){this.isSmallViewport()&&document.body.classList.toggle("scroll-lock",s)}async componentWillLoad(){l({sparkle:Object.assign({},this.config)}),this.tocData=await i.getInstance().loadJsonFile(this.tocPath)}isSmallViewport(){return matchMedia&&matchMedia("(max-width: 768px)").matches}async toggleStudentSidebar(){var s=document.getElementById("onlineStudents");await s.show()}renderPage(s){return e("stencil-route",{url:"/"+s,routeRender:()=>[this.renderHeaderAndMenu(),e("sparkle-page",{history:this.history,path:""},"login"==s&&e("sparkle-login",null),"signup"==s&&e("sparkle-signup",{history:this.history}),"forgot-password"==s&&e("sparkle-forgot-password",{history:this.history}),"reset-password"==s&&e("sparkle-reset-password",{history:this.history}))]})}renderPrivatePage(s){return e(o,{url:"/"+s,render:()=>[this.renderHeaderAndMenu(),e("sparkle-page",{history:this.history,path:""},"profile"==s&&e("sparkle-user-profile",null),"enrollment"==s&&e("sparkle-user-enrollment",null),"home/my-mood"==s&&e("sparkle-mood",{history:this.history}),"home/my-health"==s&&e("sparkle-health",{history:this.history}),"home/my-goals"==s&&e("sparkle-goals",null),"home/great-white-wall"==s&&e("sparkle-gww",null))]})}renderHeaderAndMenu(){return[this.renderHeader(),e("sparkle-menu",{toc:this.tocData,config:this.config.menu,toggleClickFn:this.toggleMenu})]}renderHeader(){return[e("sparkle-header",{courseName:this.tocData.name,toggleClickFn:this.toggleMenu,signoutClickFn:this.signout,authUser:a.state.isAuthenticated,imageUrl:n.state.user.ProfileImage},this.renderLogo())]}async signout(){await h.getInstance().signOut(),this.history.replace("/login",{})}renderLogo(){return e("a",{slot:"logo",href:"https://girlsinclearning.com/",target:"_blank"},e("img",{class:"girls-inc-logo",src:"/assets/img/logo-primary.png"}))}getFirstLessonUrl(){if(this.tocData){let s=this.tocData.courseModules[0],t=s.sessions[0];return"/course/"+s.urlName+"/"+t.urlName+"/"+t.pages[0].urlName}return"/home"}render(){return e("sparkle-root",{config:this.config},e("stencil-router",{class:{Layout:!0,"is-menu-toggled":this.isMenuToggled}},e("stencil-route",{style:{display:"none"},routeRender:this.setHistory}),e("stencil-route-switch",{scrollTopOffset:0},e("stencil-route",{url:"/",exact:!0,routeRender:()=>e("stencil-router-redirect",{url:this.getFirstLessonUrl()})}),e("stencil-route",{url:"/unauthorized",routeRender:()=>[this.renderHeaderAndMenu(),e("sparkle-unauthorized",null)]}),e("stencil-route",{url:"/course/:page*",routeRender:s=>[this.renderHeaderAndMenu(),e("sparkle-page",{history:this.history,path:`/course/${s.match.params.page||"index"}.json`,onClick:this.handlePageClick})]}),e("stencil-route",{url:"/presentation/course/:page*",routeRender:s=>e("sparkle-page",{history:this.history,presentation:!0,path:`/course/${s.match.params.page||"index"}.json`,onClick:this.handlePageClick})}),e("stencil-route",{url:"/presentation/teacher/course/:page*",routeRender:s=>[e("sparkle-facilitator-header",{courseName:this.tocData.name,toggleStudentClickFn:this.toggleStudentSidebar},this.renderLogo()),e("sparkle-facilitator-page",{notesPath:`/course/${s.match.params.page||"index"}-notes.json`,path:`/course/${s.match.params.page||"index"}.json`,onClick:this.handlePageClick})]}),this.renderPrivatePage("home/my-mood"),this.renderPrivatePage("home/my-health"),this.renderPrivatePage("home/my-goals"),this.renderPrivatePage("home/great-white-wall"),e(o,{url:"/home/:page*",render:s=>[this.renderHeaderAndMenu(),e("sparkle-page",{history:this.history,path:`/course/home/${s.match.params.page||"index"}.json`,onClick:this.handlePageClick})]}),this.renderPage("login"),this.renderPage("signup"),this.renderPage("forgot-password"),this.renderPage("reset-password"),this.renderPrivatePage("profile"),this.renderPrivatePage("enrollment"))))}static get watchers(){return{isMenuToggled:["lockScroll"]}}};r(p),p.style=":host{display:block}";export{p as sparkle_course_root}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as e,c as s,H as i}from"./p-ee1e0eb4.js";import{m as o}from"./p-2e2b813c.js";import{S as r,f as a}from"./p-4bd4dab2.js";import"./p-871106e0.js";import"./p-add30d46.js";import"./p-17eb4633.js";var n;!function(t){t[t.Private=0]="Private",t[t.Public=1]="Public"}(n||(n={}));const l=class{constructor(e){t(this,e)}async presentModal(t){const e=await o.create({component:"sparkle-gww-comment-list",componentProps:{comments:t}});await e.present()}clearCommentField(){this.comment=""}renderMyMoodTemplate(t){return e("div",null,e("b",null,"Mood:")," ",t.Mood,e("br",null),e("b",null,"Level:")," ",t.Level,e("br",null),e("img",{src:t.MoodImage}),"`")}renderMyHealthTemplate(t){return e("div",null,e("b",null,"Heart rate:")," ",t.HeartRate," bpm ")}renderMyGoalTemplate(t){return e("div",null,e("b",null,"Goal: ")," ",t.GoalTitle," ",e("br",null),e("b",null,"Update Text: ")," ",t.GoalText," ",e("br",null),e("sparkle-goal-progress",{percentage:t.GoalProgress}))}renderTemplate(){if(!this.post.PostTextJSON)return[e("div",{innerHTML:this.post.PostText}),this.post.ExternalResourceUrl&&e("div",null,e("img",{src:this.post.ExternalResourceUrl,class:"external-src-image"}))];var t=JSON.parse(this.post.PostTextJSON);return this.post.MiniAppId==r.MY_GOALS_APP_ID?this.renderMyGoalTemplate(t):this.post.MiniAppId==r.MY_HEALTH_APP_ID?this.renderMyHealthTemplate(t):this.post.MiniAppId==r.MY_MOOD_APP_ID?this.renderMyMoodTemplate(t):void 0}render(){return e(i,{class:{Card:!0}},e("ion-item",{class:"header-item"},e("ion-avatar",{class:"header-avatar",slot:"start"},e("img",{src:this.post.ProfileImageUrl?this.post.ProfileImageUrl:s("/assets/img/user.png")})),e("div",null,e("strong",{class:"requester-name","text-capitalize":!0},this.post.Name),e("div",null,e("small",null," ",a(this.post.CreatedOn)))),e("div",{slot:"end"},e("ion-icon",{color:"primary",name:this.post.PostVisibility==n.Public?"globe-outline":"eye-outline"}))),e("div",{class:"ion-padding"},this.renderTemplate()),e("div",{class:"footer"},this.post.Comments.length>0&&e("div",{class:"comment-overview",slot:"end"}," ",e("small",{onClick:()=>this.post.Comments.length>0&&this.presentModal(this.post.Comments)},"Comments (",this.post.Comments.length,")")),this.post.Comments.map((t=>{e("ion-item",{class:"comment-box",onClick:()=>this.presentModal(this.post.Comments)},e("ion-avatar",{class:"footer-avatar",slot:"start"},e("img",{src:t.ProfileImageUrl?t.ProfileImageUrl:"/assets/img/user.png"})),e("small",null,e("b",null,t.Name)," ",t.Comment),e("ion-icon",{slot:"end",name:"git-merge",color:"primary"}))})),e("hr",null),e("ion-item",{class:"comment-footer"},e("ion-avatar",{class:"footer-avatar",slot:"start"},e("img",{src:s("/assets/img/user.png")})),e("ion-input",{value:this.comment,onIonChange:t=>this.comment=t.target.value,type:"text",placeholder:"Write a comment"}),e("ion-button",{onClick:()=>this.onPostComment({Comment:this.comment,PostId:this.post.Id}),slot:"end",size:"small",disabled:!this.comment||this.loading},this.loading?e("ion-spinner",{name:"dots"}):"POST COMMENT"))))}};l.style=":host{display:block}.Card{background-color:var(--background);border-radius:4px;box-shadow:rgb(2 8 20 / 10%) 0px 0.175em 0.5em, rgb(2 8 20 / 8%) 0px 0.085em 0.175em;color:var(--text-color--light);display:flex;flex-direction:column;font-size:inherit;font-weight:normal;justify-content:flex-start;line-height:1.6;transition:box-shadow 150ms ease 0s, transform 150ms ease 0s, -webkit-box-shadow 150ms ease 0s, -webkit-transform 150ms ease 0s;width:100%;overflow:hidden;margin-bottom:20px;height:auto !important}.footer ion-item ion-avatar{width:30px;height:30px}.comment-overview{padding:0px 16px;text-align:right;cursor:pointer}";export{l as sparkle_gww_item}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import{c as t}from"./p-3f85e1ca.js";import{g as e}from"./p-539bf742.js";import"./p-17eb4633.js";import"./p-ee1e0eb4.js";
|
2
|
-
/*!
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
4
|
-
*/const o=(o,r)=>{const i="back"===r.direction,a=r.leavingEl,s=e(r.enteringEl),p=s.querySelector("ion-toolbar"),n=t();if(n.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),i?n.duration(r.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(r.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),p){const e=t();e.addElement(p),n.addAnimation(e)}if(a&&i){n.duration(r.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const o=t();o.addElement(e(a)).onFinish((t=>{1===t&&o.elements.length>0&&o.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),n.addAnimation(o)}return n};export{o as mdTransitionAnimation}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as s,h as t,H as i}from"./p-ee1e0eb4.js";import{g as e}from"./p-871106e0.js";import{m as o}from"./p-405f7c58.js";import{u as a}from"./p-a019ad0c.js";import"./p-add30d46.js";import"./p-17eb4633.js";import"./p-3f85e1ca.js";const n=class{constructor(t){s(this,t),this.visible=!1,this.autoHide=!0,this.onClick=()=>o.toggle(this.menu)}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await a(this.menu)}render(){const s=e(this),o=this.autoHide&&!this.visible;return t(i,{onClick:this.onClick,"aria-hidden":o?"true":null,class:{[s]:!0,"menu-toggle-hidden":o}},t("slot",null))}};n.style=":host(.menu-toggle-hidden){display:none}";export{n as ion_menu_toggle}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{E as t}from"./p-b226f54d.js";import{c as e}from"./p-340754ed.js";import{h as s}from"./p-ee1e0eb4.js";import{s as n}from"./p-4bd4dab2.js";class i extends Error{constructor(t,e){const s=new.target.prototype;super(`${t}: Status code '${e}'`),this.statusCode=e,this.__proto__=s}}class r extends Error{constructor(t="A timeout occurred."){const e=new.target.prototype;super(t),this.__proto__=e}}class o extends Error{constructor(t="An abort occurred."){const e=new.target.prototype;super(t),this.__proto__=e}}class h extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.transport=e,this.errorType="UnsupportedTransportError",this.__proto__=s}}class c extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.transport=e,this.errorType="DisabledTransportError",this.__proto__=s}}class a extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.transport=e,this.errorType="FailedToStartTransportError",this.__proto__=s}}class l extends Error{constructor(t){const e=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=e}}class u extends Error{constructor(t,e){const s=new.target.prototype;super(t),this.innerErrors=e,this.__proto__=s}}class d{constructor(t,e,s){this.statusCode=t,this.statusText=e,this.content=s}}class p{get(t,e){return this.send({...e,method:"GET",url:t})}post(t,e){return this.send({...e,method:"POST",url:t})}delete(t,e){return this.send({...e,method:"DELETE",url:t})}getCookieString(t){return""}}var f,w,g;!function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"}(f||(f={}));class m{constructor(){}log(t,e){}}m.instance=new m;class y{static isRequired(t,e){if(null==t)throw new Error(`The '${e}' argument is required.`)}static isNotEmpty(t,e){if(!t||t.match(/^\s*$/))throw new Error(`The '${e}' argument should not be empty.`)}static isIn(t,e,s){if(!(t in e))throw new Error(`Unknown ${s} value: ${t}.`)}}class b{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&void 0===window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function v(t,e){let s="";return E(t)?(s=`Binary data of length ${t.byteLength}`,e&&(s+=`. Content: '${function(t){const e=new Uint8Array(t);let s="";return e.forEach((t=>{s+=`0x${t<16?"0":""}${t.toString(16)} `})),s.substr(0,s.length-1)}(t)}'`)):"string"==typeof t&&(s=`String data of length ${t.length}`,e&&(s+=`. Content: '${t}'`)),s}function E(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}async function $(t,e,s,n,i,r,o){let h={};if(i){const t=await i();t&&(h={Authorization:`Bearer ${t}`})}const[c,a]=k();h[c]=a,t.log(f.Trace,`(${e} transport) sending data. ${v(r,o.logMessageContent)}.`);const l=E(r)?"arraybuffer":"text",u=await s.post(n,{content:r,headers:{...h,...o.headers},responseType:l,timeout:o.timeout,withCredentials:o.withCredentials});t.log(f.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)}class C{constructor(t,e){this._subject=t,this._observer=e}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch((()=>{}))}}class S{constructor(t){this._minLevel=t,this.out=console}log(t,e){if(t>=this._minLevel){const s=`[${(new Date).toISOString()}] ${f[t]}: ${e}`;switch(t){case f.Critical:case f.Error:this.out.error(s);break;case f.Warning:this.out.warn(s);break;case f.Information:this.out.info(s);break;default:this.out.log(s)}}}}function k(){let t="X-SignalR-User-Agent";return b.isNode&&(t="User-Agent"),[t,_("6.0.3",P(),b.isNode?"NodeJS":"Browser",T())]}function _(t,e,s,n){let i="Microsoft SignalR/";const r=t.split(".");return i+=`${r[0]}.${r[1]}`,i+=` (${t}; `,i+=e&&""!==e?`${e}; `:"Unknown OS; ",i+=`${s}`,i+=n?`; ${n}`:"; Unknown Runtime Version",i+=")",i}function P(){if(!b.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function T(){if(b.isNode)return process.versions.node}function I(t){return t.stack?t.stack:t.message?t.message:`${t}`}class H extends p{constructor(t){if(super(),this._logger=t,"undefined"==typeof fetch){const t="function"==typeof __webpack_require__?__non_webpack_require__:require;this._jar=new(t("tough-cookie").CookieJar),this._fetchType=t("node-fetch"),this._fetchType=t("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("could not find global")}());if("undefined"==typeof AbortController){const t="function"==typeof __webpack_require__?__non_webpack_require__:require;this._abortControllerType=t("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new o;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const e=new this._abortControllerType;let s;t.abortSignal&&(t.abortSignal.onabort=()=>{e.abort(),s=new o});let n,h=null;t.timeout&&(h=setTimeout((()=>{e.abort(),this._logger.log(f.Warning,"Timeout from HTTP request."),s=new r}),t.timeout));try{n=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:!0===t.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:e.signal})}catch(t){if(s)throw s;throw this._logger.log(f.Warning,`Error from HTTP request. ${t}.`),t}finally{h&&clearTimeout(h),t.abortSignal&&(t.abortSignal.onabort=null)}if(!n.ok){const t=await R(n,"text");throw new i(t||n.statusText,n.status)}const c=R(n,t.responseType),a=await c;return new d(n.status,n.statusText,a)}getCookieString(t){let e="";return b.isNode&&this._jar&&this._jar.getCookies(t,((t,s)=>e=s.join("; "))),e}}function R(t,e){let s;switch(e){case"arraybuffer":s=t.arrayBuffer();break;case"text":s=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:s=t.text()}return s}class D extends p{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o):t.method?t.url?new Promise(((e,s)=>{const n=new XMLHttpRequest;n.open(t.method,t.url,!0),n.withCredentials=void 0===t.withCredentials||t.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const h=t.headers;h&&Object.keys(h).forEach((t=>{n.setRequestHeader(t,h[t])})),t.responseType&&(n.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{n.abort(),s(new o)}),t.timeout&&(n.timeout=t.timeout),n.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),n.status>=200&&n.status<300?e(new d(n.status,n.statusText,n.response||n.responseText)):s(new i(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(f.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),s(new i(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(f.Warning,"Timeout from HTTP request."),s(new r)},n.send(t.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class x extends p{constructor(t){if(super(),"undefined"!=typeof fetch||b.isNode)this._httpClient=new H(t);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new D(t)}}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}class N{static write(t){return`${t}${N.RecordSeparator}`}static parse(t){if(t[t.length-1]!==N.RecordSeparator)throw new Error("Message is incomplete.");const e=t.split(N.RecordSeparator);return e.pop(),e}}N.RecordSeparatorCode=30,N.RecordSeparator=String.fromCharCode(N.RecordSeparatorCode);class q{writeHandshakeRequest(t){return N.write(JSON.stringify(t))}parseHandshakeResponse(t){let e,s;if(E(t)){const n=new Uint8Array(t),i=n.indexOf(N.RecordSeparatorCode);if(-1===i)throw new Error("Message is incomplete.");const r=i+1;e=String.fromCharCode.apply(null,Array.prototype.slice.call(n.slice(0,r))),s=n.byteLength>r?n.slice(r).buffer:null}else{const n=t,i=n.indexOf(N.RecordSeparator);if(-1===i)throw new Error("Message is incomplete.");const r=i+1;e=n.substring(0,r),s=n.length>r?n.substring(r):null}const n=N.parse(e),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[s,i]}}!function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(w||(w={}));class U{constructor(){this.observers=[]}next(t){for(const e of this.observers)e.next(t)}error(t){for(const e of this.observers)e.error&&e.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new C(this,t)}}!function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"}(g||(g={}));class A{constructor(t,e,s,n){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(f.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},y.isRequired(t,"connection"),y.isRequired(e,"logger"),y.isRequired(s,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=e,this._protocol=s,this.connection=t,this._reconnectPolicy=n,this._handshakeProtocol=new q,this.connection.onreceive=t=>this._processIncomingData(t),this.connection.onclose=t=>this._connectionClosed(t),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=g.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:w.Ping})}static create(t,e,s,n){return new A(t,e,s,n)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==g.Disconnected&&this._connectionState!==g.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==g.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=g.Connecting,this._logger.log(f.Debug,"Starting HubConnection.");try{await this._startInternal(),b.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=g.Connected,this._connectionStarted=!0,this._logger.log(f.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=g.Disconnected,this._logger.log(f.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise(((t,e)=>{this._handshakeResolver=t,this._handshakeRejecter=e}));await this.connection.start(this._protocol.transferFormat);try{const e={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(f.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(e)),this._logger.log(f.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError}catch(t){throw this._logger.log(f.Debug,`Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(t),t}}async stop(){const t=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch(t){}}_stopInternal(t){return this._connectionState===g.Disconnected?(this._logger.log(f.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===g.Disconnecting?(this._logger.log(f.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=g.Disconnecting,this._logger.log(f.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(f.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(t)))}stream(t,...e){const[s,n]=this._replaceStreamingParams(e),i=this._createStreamInvocation(t,e,n);let r;const o=new U;return o.cancelCallback=()=>{const t=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],r.then((()=>this._sendWithProtocol(t)))},this._callbacks[i.invocationId]=(t,e)=>{e?o.error(e):t&&(t.type===w.Completion?t.error?o.error(new Error(t.error)):o.complete():o.next(t.item))},r=this._sendWithProtocol(i).catch((t=>{o.error(t),delete this._callbacks[i.invocationId]})),this._launchStreams(s,r),o}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._sendMessage(this._protocol.writeMessage(t))}send(t,...e){const[s,n]=this._replaceStreamingParams(e),i=this._sendWithProtocol(this._createInvocation(t,e,!0,n));return this._launchStreams(s,i),i}invoke(t,...e){const[s,n]=this._replaceStreamingParams(e),i=this._createInvocation(t,e,!1,n);return new Promise(((t,e)=>{this._callbacks[i.invocationId]=(s,n)=>{n?e(n):s&&(s.type===w.Completion?s.error?e(new Error(s.error)):t(s.result):e(new Error(`Unexpected message type: ${s.type}`)))};const n=this._sendWithProtocol(i).catch((t=>{e(t),delete this._callbacks[i.invocationId]}));this._launchStreams(s,n)}))}on(t,e){t&&e&&(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),-1===this._methods[t].indexOf(e)&&this._methods[t].push(e))}off(t,e){if(!t)return;t=t.toLowerCase();const s=this._methods[t];if(s)if(e){const n=s.indexOf(e);-1!==n&&(s.splice(n,1),0===s.length&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const e=this._protocol.parseMessages(t,this._logger);for(const t of e)switch(t.type){case w.Invocation:this._invokeClientMethod(t);break;case w.StreamItem:case w.Completion:{const e=this._callbacks[t.invocationId];if(e){t.type===w.Completion&&delete this._callbacks[t.invocationId];try{e(t)}catch(t){this._logger.log(f.Error,`Stream callback threw error: ${I(t)}`)}}break}case w.Ping:break;case w.Close:{this._logger.log(f.Information,"Close message received from server.");const e=t.error?new Error("Server returned an error on close: "+t.error):void 0;!0===t.allowReconnect?this.connection.stop(e):this._stopPromise=this._stopInternal(e);break}default:this._logger.log(f.Warning,`Invalid message type: ${t.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let e,s;try{[s,e]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(t){const e="Error parsing handshake response: "+t;this._logger.log(f.Error,e);const s=new Error(e);throw this._handshakeRejecter(s),s}if(e.error){const t="Server returned handshake error: "+e.error;this._logger.log(f.Error,t);const s=new Error(t);throw this._handshakeRejecter(s),s}return this._logger.log(f.Debug,"Server handshake complete."),this._handshakeResolver(),s}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout((()=>this.serverTimeout()),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let t=this._nextKeepAlive-(new Date).getTime();t<0&&(t=0),this._pingServerHandle=setTimeout((async()=>{if(this._connectionState===g.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}),t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(t){const e=this._methods[t.target.toLowerCase()];if(e){try{e.forEach((e=>e.apply(this,t.arguments)))}catch(e){this._logger.log(f.Error,`A callback for the method ${t.target.toLowerCase()} threw error '${e}'.`)}if(t.invocationId){const t="Server requested a response, which is not supported in this version of the client.";this._logger.log(f.Error,t),this._stopPromise=this._stopInternal(new Error(t))}}else this._logger.log(f.Warning,`No client method with the name '${t.target}' found.`)}_connectionClosed(t){this._logger.log(f.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===g.Disconnecting?this._completeClose(t):this._connectionState===g.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===g.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=g.Disconnected,this._connectionStarted=!1,b.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach((e=>e.apply(this,[t])))}catch(e){this._logger.log(f.Error,`An onclose callback called with error '${t}' threw error '${e}'.`)}}}async _reconnect(t){const e=Date.now();let s=0,n=void 0!==t?t:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(s++,0,n);if(null===i)return this._logger.log(f.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(t);if(this._connectionState=g.Reconnecting,this._logger.log(f.Information,t?`Connection reconnecting because of error '${t}'.`:"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach((e=>e.apply(this,[t])))}catch(e){this._logger.log(f.Error,`An onreconnecting callback called with error '${t}' threw error '${e}'.`)}if(this._connectionState!==g.Reconnecting)return void this._logger.log(f.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==i;){if(this._logger.log(f.Information,`Reconnect attempt number ${s} will start in ${i} ms.`),await new Promise((t=>{this._reconnectDelayHandle=setTimeout(t,i)})),this._reconnectDelayHandle=void 0,this._connectionState!==g.Reconnecting)return void this._logger.log(f.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=g.Connected,this._logger.log(f.Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach((t=>t.apply(this,[this.connection.connectionId])))}catch(t){this._logger.log(f.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${t}'.`)}return}catch(t){if(this._logger.log(f.Information,`Reconnect attempt failed because of error '${t}'.`),this._connectionState!==g.Reconnecting)return this._logger.log(f.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===g.Disconnecting&&this._completeClose());n=t instanceof Error?t:new Error(t.toString()),i=this._getNextRetryDelay(s++,Date.now()-e,n)}}this._logger.log(f.Information,`Reconnect retries have been exhausted after ${Date.now()-e} ms and ${s} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,e,s){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:t,retryReason:s})}catch(s){return this._logger.log(f.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${e}) threw error '${s}'.`),null}}_cancelCallbacksWithError(t){const e=this._callbacks;this._callbacks={},Object.keys(e).forEach((s=>{const n=e[s];try{n(null,t)}catch(e){this._logger.log(f.Error,`Stream 'error' callback called with '${t}' threw error: ${I(e)}`)}}))}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,e,s,n){if(s)return 0!==n.length?{arguments:e,streamIds:n,target:t,type:w.Invocation}:{arguments:e,target:t,type:w.Invocation};{const s=this._invocationId;return this._invocationId++,0!==n.length?{arguments:e,invocationId:s.toString(),streamIds:n,target:t,type:w.Invocation}:{arguments:e,invocationId:s.toString(),target:t,type:w.Invocation}}}_launchStreams(t,e){if(0!==t.length){e||(e=Promise.resolve());for(const s in t)t[s].subscribe({complete:()=>{e=e.then((()=>this._sendWithProtocol(this._createCompletionMessage(s))))},error:t=>{let n;n=t instanceof Error?t.message:t&&t.toString?t.toString():"Unknown error",e=e.then((()=>this._sendWithProtocol(this._createCompletionMessage(s,n))))},next:t=>{e=e.then((()=>this._sendWithProtocol(this._createStreamItemMessage(s,t))))}})}}_replaceStreamingParams(t){const e=[],s=[];for(let n=0;n<t.length;n++){const i=t[n];if(this._isObservable(i)){const r=this._invocationId;this._invocationId++,e[r]=i,s.push(r.toString()),t.splice(n,1)}}return[e,s]}_isObservable(t){return t&&t.subscribe&&"function"==typeof t.subscribe}_createStreamInvocation(t,e,s){const n=this._invocationId;return this._invocationId++,0!==s.length?{arguments:e,invocationId:n.toString(),streamIds:s,target:t,type:w.StreamInvocation}:{arguments:e,invocationId:n.toString(),target:t,type:w.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:w.CancelInvocation}}_createStreamItemMessage(t,e){return{invocationId:t,item:e,type:w.StreamItem}}_createCompletionMessage(t,e,s){return e?{error:e,invocationId:t,type:w.Completion}:{invocationId:t,result:s,type:w.Completion}}}const L=[0,2e3,1e4,3e4,null];class M{constructor(t){this._retryDelays=void 0!==t?[...t,null]:L}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}class W{}var F,O;W.Authorization="Authorization",W.Cookie="Cookie",function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(F||(F={})),function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(O||(O={}));class j{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class B{constructor(t,e,s,n){this._httpClient=t,this._accessTokenFactory=e,this._logger=s,this._pollAbort=new j,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(t,e){if(y.isRequired(t,"url"),y.isRequired(e,"transferFormat"),y.isIn(e,O,"transferFormat"),this._url=t,this._logger.log(f.Trace,"(LongPolling transport) Connecting."),e===O.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[s,n]=k(),r={[s]:n,...this._options.headers},o={abortSignal:this._pollAbort.signal,headers:r,timeout:1e5,withCredentials:this._options.withCredentials};e===O.Binary&&(o.responseType="arraybuffer");const h=await this._getAccessToken();this._updateHeaderToken(o,h);const c=`${t}&_=${Date.now()}`;this._logger.log(f.Trace,`(LongPolling transport) polling: ${c}.`);const a=await this._httpClient.get(c,o);200!==a.statusCode?(this._logger.log(f.Error,`(LongPolling transport) Unexpected response code: ${a.statusCode}.`),this._closeError=new i(a.statusText||"",a.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,o)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(t,e){t.headers||(t.headers={}),e?t.headers[W.Authorization]=`Bearer ${e}`:t.headers[W.Authorization]&&delete t.headers[W.Authorization]}async _poll(t,e){try{for(;this._running;){const s=await this._getAccessToken();this._updateHeaderToken(e,s);try{const s=`${t}&_=${Date.now()}`;this._logger.log(f.Trace,`(LongPolling transport) polling: ${s}.`);const n=await this._httpClient.get(s,e);204===n.statusCode?(this._logger.log(f.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==n.statusCode?(this._logger.log(f.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new i(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(f.Trace,`(LongPolling transport) data received. ${v(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(f.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(t){this._running?t instanceof r?this._logger.log(f.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=t,this._running=!1):this._logger.log(f.Trace,`(LongPolling transport) Poll errored after shutdown: ${t.message}`)}}}finally{this._logger.log(f.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?$(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(f.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(f.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const t={},[e,s]=k();t[e]=s;const n={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},i=await this._getAccessToken();this._updateHeaderToken(n,i),await this._httpClient.delete(this._url,n),this._logger.log(f.Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(f.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(f.Trace,t),this.onclose(this._closeError)}}}class X{constructor(t,e,s,n){this._httpClient=t,this._accessTokenFactory=e,this._logger=s,this._options=n,this.onreceive=null,this.onclose=null}async connect(t,e){if(y.isRequired(t,"url"),y.isRequired(e,"transferFormat"),y.isIn(e,O,"transferFormat"),this._logger.log(f.Trace,"(SSE transport) Connecting."),this._url=t,this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(e)}`)}return new Promise(((s,n)=>{let i,r=!1;if(e===O.Text){if(b.isBrowser||b.isWebWorker)i=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const e=this._httpClient.getCookieString(t),s={};s.Cookie=e;const[n,r]=k();s[n]=r,i=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...s,...this._options.headers}})}try{i.onmessage=t=>{if(this.onreceive)try{this._logger.log(f.Trace,`(SSE transport) data received. ${v(t.data,this._options.logMessageContent)}.`),this.onreceive(t.data)}catch(t){return void this._close(t)}},i.onerror=()=>{r?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},i.onopen=()=>{this._logger.log(f.Information,`SSE connected to ${this._url}`),this._eventSource=i,r=!0,s()}}catch(t){return void n(t)}}else n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))}async send(t){return this._eventSource?$(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}class J{constructor(t,e,s,n,i,r){this._logger=s,this._accessTokenFactory=e,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=r}async connect(t,e){if(y.isRequired(t,"url"),y.isRequired(e,"transferFormat"),y.isIn(e,O,"transferFormat"),this._logger.log(f.Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(e)}`)}return new Promise(((s,n)=>{let i;t=t.replace(/^http/,"ws");const r=this._httpClient.getCookieString(t);let o=!1;if(b.isNode){const e={},[s,n]=k();e[s]=n,r&&(e[W.Cookie]=`${r}`),i=new this._webSocketConstructor(t,void 0,{headers:{...e,...this._headers}})}i||(i=new this._webSocketConstructor(t)),e===O.Binary&&(i.binaryType="arraybuffer"),i.onopen=()=>{this._logger.log(f.Information,`WebSocket connected to ${t}.`),this._webSocket=i,o=!0,s()},i.onerror=t=>{let e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:"There was an error with the transport",this._logger.log(f.Information,`(WebSockets transport) ${e}.`)},i.onmessage=t=>{if(this._logger.log(f.Trace,`(WebSockets transport) data received. ${v(t.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(t.data)}catch(t){return void this._close(t)}},i.onclose=t=>{if(o)this._close(t);else{let e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",n(new Error(e))}}}))}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(f.Trace,`(WebSockets transport) sending data. ${v(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(f.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(t)||!1!==t.wasClean&&1e3===t.code?t instanceof Error?this.onclose(t):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)))}_isCloseEvent(t){return t&&"boolean"==typeof t.wasClean&&"number"==typeof t.code}}class z{constructor(t,e={}){var s;if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,y.isRequired(t,"url"),this._logger=void 0===(s=e.logger)?new S(f.Information):null===s?m.instance:void 0!==s.log?s:new S(s),this.baseUrl=this._resolveUrl(t),(e=e||{}).logMessageContent=void 0!==e.logMessageContent&&e.logMessageContent,"boolean"!=typeof e.withCredentials&&void 0!==e.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");e.withCredentials=void 0===e.withCredentials||e.withCredentials,e.timeout=void 0===e.timeout?1e5:e.timeout;let n=null,i=null;if(b.isNode&&"undefined"!=typeof require){const t="function"==typeof __webpack_require__?__non_webpack_require__:require;n=t("ws"),i=t("eventsource")}b.isNode||"undefined"==typeof WebSocket||e.WebSocket?b.isNode&&!e.WebSocket&&n&&(e.WebSocket=n):e.WebSocket=WebSocket,b.isNode||"undefined"==typeof EventSource||e.EventSource?b.isNode&&!e.EventSource&&void 0!==i&&(e.EventSource=i):e.EventSource=EventSource,this._httpClient=e.httpClient||new x(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=e,this.onreceive=null,this.onclose=null}async start(t){if(y.isIn(t=t||O.Binary,O,"transferFormat"),this._logger.log(f.Debug,`Starting connection with transfer format '${O[t]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,"Disconnecting"===this._connectionState){const t="Failed to start the HttpConnection before stop() was called.";return this._logger.log(f.Error,t),await this._stopPromise,Promise.reject(new Error(t))}if("Connected"!==this._connectionState){const t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(f.Error,t),Promise.reject(new Error(t))}this._connectionStarted=!0}send(t){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new V(this.transport)),this._sendQueue.send(t))}async stop(t){return"Disconnected"===this._connectionState?(this._logger.log(f.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(f.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise((t=>{this._stopPromiseResolver=t})),await this._stopInternal(t),void await this._stopPromise)}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch(t){}if(this.transport){try{await this.transport.stop()}catch(t){this._logger.log(f.Error,`HttpConnection.transport.stop() threw error '${t}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(f.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let e=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==F.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(F.WebSockets),await this._startTransport(e,t)}else{let s=null,n=0;do{if(s=await this._getNegotiationResponse(e),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(s.error)throw new Error(s.error);if(s.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(s.url&&(e=s.url),s.accessToken){const t=s.accessToken;this._accessTokenFactory=()=>t}n++}while(s.url&&n<100);if(100===n&&s.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(e,this._options.transport,s,t)}this.transport instanceof B&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(f.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(t){return this._logger.log(f.Error,"Failed to start the connection: "+t),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(t)}}async _getNegotiationResponse(t){const e={};if(this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e[W.Authorization]=`Bearer ${t}`)}const[s,n]=k();e[s]=n;const r=this._resolveNegotiateUrl(t);this._logger.log(f.Debug,`Sending negotiation request: ${r}.`);try{const t=await this._httpClient.post(r,{content:"",headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==t.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${t.statusCode}'`));const s=JSON.parse(t.content);return(!s.negotiateVersion||s.negotiateVersion<1)&&(s.connectionToken=s.connectionId),s}catch(t){let e="Failed to complete negotiation with the server: "+t;return t instanceof i&&404===t.statusCode&&(e+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(f.Error,e),Promise.reject(new l(e))}}_createConnectUrl(t,e){return e?t+(-1===t.indexOf("?")?"?":"&")+`id=${e}`:t}async _createTransport(t,e,s,n){let i=this._createConnectUrl(t,s.connectionToken);if(this._isITransport(e))return this._logger.log(f.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,await this._startTransport(i,n),void(this.connectionId=s.connectionId);const r=[],o=s.availableTransports||[];let h=s;for(const s of o){const o=this._resolveTransportOrError(s,e,n);if(o instanceof Error)r.push(`${s.transport} failed:`),r.push(o);else if(this._isITransport(o)){if(this.transport=o,!h){try{h=await this._getNegotiationResponse(t)}catch(t){return Promise.reject(t)}i=this._createConnectUrl(t,h.connectionToken)}try{return await this._startTransport(i,n),void(this.connectionId=h.connectionId)}catch(t){if(this._logger.log(f.Error,`Failed to start the transport '${s.transport}': ${t}`),h=void 0,r.push(new a(`${s.transport} failed: ${t}`,F[s.transport])),"Connecting"!==this._connectionState){const t="Failed to select transport before stop() was called.";return this._logger.log(f.Debug,t),Promise.reject(new Error(t))}}}}return Promise.reject(r.length>0?new u(`Unable to connect to the server with any of the available transports. ${r.join(" ")}`,r):new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case F.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new J(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case F.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new X(this._httpClient,this._accessTokenFactory,this._logger,this._options);case F.LongPolling:return new B(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,e){return this.transport.onreceive=this.onreceive,this.transport.onclose=t=>this._stopConnection(t),this.transport.connect(t,e)}_resolveTransportOrError(t,e,s){const n=F[t.transport];if(null==n)return this._logger.log(f.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(!function(t,e){return!t||0!=(e&t)}(e,n))return this._logger.log(f.Debug,`Skipping transport '${F[n]}' because it was disabled by the client.`),new c(`'${F[n]}' is disabled by the client.`,n);if(!(t.transferFormats.map((t=>O[t])).indexOf(s)>=0))return this._logger.log(f.Debug,`Skipping transport '${F[n]}' because it does not support the requested transfer format '${O[s]}'.`),new Error(`'${F[n]}' does not support ${O[s]}.`);if(n===F.WebSockets&&!this._options.WebSocket||n===F.ServerSentEvents&&!this._options.EventSource)return this._logger.log(f.Debug,`Skipping transport '${F[n]}' because it is not supported in your environment.'`),new h(`'${F[n]}' is not supported in your environment.`,n);this._logger.log(f.Debug,`Selecting transport '${F[n]}'.`);try{return this._constructTransport(n)}catch(t){return t}}_isITransport(t){return t&&"object"==typeof t&&"connect"in t}_stopConnection(t){if(this._logger.log(f.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(f.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),t?this._logger.log(f.Error,`Connection disconnected with error '${t}'.`):this._logger.log(f.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch((t=>{this._logger.log(f.Error,`TransportSendQueue.stop() threw error '${t}'.`)})),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(e){this._logger.log(f.Error,`HttpConnection.onclose(${t}) threw error '${e}'.`)}}}else this._logger.log(f.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if(!b.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const e=window.document.createElement("a");return e.href=t,this._logger.log(f.Information,`Normalizing '${t}' to '${e.href}'.`),e.href}_resolveNegotiateUrl(t){const e=t.indexOf("?");let s=t.substring(0,-1===e?t.length:e);return"/"!==s[s.length-1]&&(s+="/"),s+="negotiate",s+=-1===e?"":t.substring(e),-1===s.indexOf("negotiateVersion")&&(s+=-1===e?"?":"&",s+="negotiateVersion="+this._negotiateVersion),s}}class V{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new G,this._transportResult=new G,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new G),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new G;const t=this._transportResult;this._transportResult=void 0;const e="string"==typeof this._buffer[0]?this._buffer.join(""):V._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(e),t.resolve()}catch(e){t.reject(e)}}}static _concatBuffers(t){const e=t.map((t=>t.byteLength)).reduce(((t,e)=>t+e)),s=new Uint8Array(e);let n=0;for(const e of t)s.set(new Uint8Array(e),n),n+=e.byteLength;return s.buffer}}class G{constructor(){this.promise=new Promise(((t,e)=>[this._resolver,this._rejecter]=[t,e]))}resolve(){this._resolver()}reject(t){this._rejecter(t)}}class K{constructor(){this.name="json",this.version=1,this.transferFormat=O.Text}parseMessages(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=m.instance);const s=N.parse(t),n=[];for(const t of s){const s=JSON.parse(t);if("number"!=typeof s.type)throw new Error("Invalid payload.");switch(s.type){case w.Invocation:this._isInvocationMessage(s);break;case w.StreamItem:this._isStreamItemMessage(s);break;case w.Completion:this._isCompletionMessage(s);break;case w.Ping:case w.Close:break;default:e.log(f.Information,"Unknown message type '"+s.type+"' ignored.");continue}n.push(s)}return n}writeMessage(t){return N.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(t,e){if("string"!=typeof t||""===t)throw new Error(e)}}const Q={trace:f.Trace,debug:f.Debug,info:f.Information,information:f.Information,warn:f.Warning,warning:f.Warning,error:f.Error,critical:f.Critical,none:f.None};class Y{configureLogging(t){if(y.isRequired(t,"logging"),void 0!==t.log)this.logger=t;else if("string"==typeof t){const e=function(t){const e=Q[t.toLowerCase()];if(void 0!==e)return e;throw new Error(`Unknown log level: ${t}`)}(t);this.logger=new S(e)}else this.logger=new S(t);return this}withUrl(t,e){return y.isRequired(t,"url"),y.isNotEmpty(t,"url"),this.url=t,this.httpConnectionOptions="object"==typeof e?{...this.httpConnectionOptions,...e}:{...this.httpConnectionOptions,transport:e},this}withHubProtocol(t){return y.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=t?Array.isArray(t)?new M(t):t:new M,this}build(){const t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const e=new z(this.url,t);return A.create(e,this.logger||m.instance,this.protocol||new K,this.reconnectPolicy)}}const{state:Z,onChange:tt,reset:et}=e({connecting:!1,connected:!1}),st={state:Z,onChange:tt,reset:et};class nt{constructor(){console.log("Starting signalR");var e=t.getInstance().get("sparkle");this.connection=(new Y).withUrl(`${e.apiUrl}hubs/sparkle?url=${window.location.href}&courseClassId=1`,{accessTokenFactory:()=>this.getToken(),skipNegotiation:!0,transport:F.WebSockets}).configureLogging(f.Debug).withAutomaticReconnect({nextRetryDelayInMilliseconds:t=>t.elapsedMilliseconds<6e4?1e4*Math.random():null}).build(),this.connection.on("SendMessage",((t,e)=>{let s=JSON.parse(e);console.log("Server said ",t,s)})),this.connection.onclose((()=>{})),this.connection.onreconnecting((()=>{console.assert(this.connection.state===g.Reconnecting)})),this.connection.onreconnected((()=>{console.assert(this.connection.state===g.Connected)}))}static getInstance(){return nt.instance||(nt.instance=new nt),nt.instance}async start(){console.log("start");try{st.state.connecting=!0,st.state.connected=!st.state.connecting,await this.connection.start(),console.log(this.connection),st.state.connecting=!1,st.state.connected=!st.state.connecting,console.assert(this.connection.state===g.Connected),console.log("SignalR Connected.")}catch(t){console.assert(this.connection.state===g.Disconnected),console.log(t)}}async callSignalR(t,e){console.log("signalR invoke",t,this.connection.connectionState),this.getToken()?(this.connection.invoke(t,JSON.stringify(e)),console.log("After signalR invoke",t,this.connection.connectionState)):console.log("Cannot connect to signalR. Not logged in")}getToken(){var e=t.getInstance().get("sparkle");return e&&e.auth&&e.auth.getToken()?sparkle.auth.getToken():null}}const it=(t,e)=>{const s=[];for(let n=0;n<e.length;n++){let i=e[n];if(0===n&&"string"==typeof i&&rt.includes(i.toLowerCase().trim()))i="template";else if(1===n&&i){const t={};Object.keys(i).forEach((e=>{const s=e.toLowerCase();s.startsWith("on")||"innerhtml"===s||(t[e]=i[e])})),i=t}else n>1&&Array.isArray(i)&&(i=it(t,i));s.push(i)}return t.apply(null,s)},rt=["script","link","meta","object","head","html","body"],ot=["😕","😟","😑","😧","😯","😮","🙃","🤕","😫"],ht={default:t=>{const{page:e}=t;return s("article",null,!1!==e.renderTitle?s("h1",null,e.title):null,s("section",{class:"markdown-content"},it(s,e.body)),s("sparkle-page-footer",{page:e}))},pdf:t=>{const{page:e}=t;return s("article",null,!1!==e.renderTitle?s("h1",null,e.title):null,s("section",{class:"markdown-content"},it(s,e.body)))},error:t=>s("main",{class:"Error full-screen"},s("div",null,n(ot)),s("h1",null,(t=>{switch(t.status){case 404:return"Not Found";default:return"Uh Oh"}})(t)),s("p",null,(t=>{switch(t.status){case 404:return"Sorry, we couldn't find that page.";default:return"Sorry, something went wrong."}})(t)))};export{nt as S,st as s,ht as t}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import{j as o,w as s}from"./p-ee1e0eb4.js";import{f as t,s as a}from"./p-ad102371.js";import{c as e}from"./p-17eb4633.js";import"./p-a208ab2d.js";
|
2
|
-
/*!
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
4
|
-
*/const r=()=>{const r=window;r.addEventListener("statusTap",(()=>{o((()=>{const o=document.elementFromPoint(r.innerWidth/2,r.innerHeight/2);if(!o)return;const n=t(o);n&&new Promise((o=>e(n,o))).then((()=>{s((async()=>{n.style.setProperty("--overflow","hidden"),await a(n,300),n.style.removeProperty("--overflow")}))}))}))}))};export{r as startStatusTap}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,i as t,h as n,H as r,e as i}from"./p-ee1e0eb4.js";import{g as a}from"./p-871106e0.js";import{q as e,i as d}from"./p-17eb4633.js";import{o as s,c as l,h as c}from"./p-0e4de1d0.js";const b=class{constructor(n){o(this,n),this.ionFocus=t(this,"ionFocus",7),this.ionBlur=t(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.inheritedAttributes={},this.buttonType="button",this.disabled=!1,this.routerDirection="forward",this.strong=!1,this.type="button",this.handleClick=o=>{if("button"===this.type)s(this.href,o,this.routerDirection,this.routerAnimation);else if(e(this.el)){const t=this.el.closest("form");if(t){o.preventDefault();const n=document.createElement("button");n.type=this.type,n.style.display="none",t.appendChild(n),n.click(),n.remove()}}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=d(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(void 0===this.fill||"clear"===this.fill)&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}render(){const o=a(this),{buttonType:t,type:i,disabled:e,rel:d,target:s,size:b,href:u,color:g,expand:h,hasIconOnly:p,shape:v,strong:m,inheritedAttributes:f}=this,k=void 0===b&&this.inItem?"small":b,y=void 0===u?"button":"a",x="button"===y?{type:i}:{download:this.download,href:u,rel:d,target:s};let w=this.fill;return void 0===w&&(w=this.inToolbar||this.inListHeader?"clear":"solid"),n(r,{onClick:this.handleClick,"aria-disabled":e?"true":null,class:l(g,{[o]:!0,[t]:!0,[`${t}-${h}`]:void 0!==h,[`${t}-${k}`]:void 0!==k,[`${t}-${v}`]:void 0!==v,[`${t}-${w}`]:!0,[`${t}-strong`]:m,"in-toolbar":c("ion-toolbar",this.el),"in-toolbar-color":c("ion-toolbar[color]",this.el),"button-has-icon-only":p,"button-disabled":e,"ion-activatable":!0,"ion-focusable":!0})},n(y,Object.assign({},x,{class:"button-native",part:"native",disabled:e,onFocus:this.onFocus,onBlur:this.onBlur},f),n("span",{class:"button-inner"},n("slot",{name:"icon-only"}),n("slot",{name:"start"}),n("slot",null),n("slot",{name:"end"})),"md"===o&&n("ion-ripple-effect",{type:this.rippleType})))}get el(){return i(this)}};b.style={ios:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;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%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;box-sizing:border-box;appearance:none}@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)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:10px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:2.8em;font-size:16px;font-weight:500;letter-spacing:-0.03em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--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}:host(.button-outline){--border-radius:10px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:17px;font-weight:normal;letter-spacing:0}:host(.button-large){--border-radius:12px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--border-radius:6px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:hover),:host(.button-outline:hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native::after{background:#fff;opacity:0.1}}',md:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;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%;transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;box-sizing:border-box;appearance:none}@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)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:flex;position:relative;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};export{b as ion_button}
|