@sparkle-learning/core 0.0.56 → 0.0.58
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/sparkle-feed-post.cjs.entry.js +25 -19
- package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +26 -20
- package/dist/esm/sparkle-feed-post.entry.js +25 -19
- package/dist/sparkle-core/p-2caed39f.entry.js +1 -0
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/package.json +1 -1
- package/dist/sparkle-core/p-08cca80d.entry.js +0 -1
@@ -55,25 +55,30 @@ const SparkleFeedPost = class {
|
|
55
55
|
AssignmentData: '',
|
56
56
|
PostTextJSON: null,
|
57
57
|
};
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
58
|
+
try {
|
59
|
+
const result = await feed_service.FeedService.getInstance().createPost(data);
|
60
|
+
if (result.Succeeded) {
|
61
|
+
this.postLoading = false;
|
62
|
+
//show success toast
|
63
|
+
this.successMessage = 'Posted Successfully.';
|
64
|
+
this.postText = '';
|
65
|
+
this.externalResourceUrl = '';
|
66
|
+
this.uploadedImage = '';
|
67
|
+
}
|
68
|
+
else {
|
69
|
+
this.postLoading = false;
|
70
|
+
this.errorMessage = 'There is an error while posting to feed.';
|
71
|
+
}
|
72
|
+
if (this.assignmentName) {
|
73
|
+
var assignmentModel = {
|
74
|
+
AssignmentData: JSON.stringify({ text: data.PostText, url: data.ExternalResourceUrl }),
|
75
|
+
AssignmentName: this.assignmentName,
|
76
|
+
};
|
77
|
+
await assignment_service.AssignmentService.getInstance().createAssignment(assignmentModel);
|
78
|
+
}
|
66
79
|
}
|
67
|
-
|
80
|
+
catch (e) {
|
68
81
|
this.postLoading = false;
|
69
|
-
this.errorMessage = 'There is an error while posting to feed.';
|
70
|
-
}
|
71
|
-
if (this.assignmentName) {
|
72
|
-
var assignmentModel = {
|
73
|
-
AssignmentData: JSON.stringify({ text: data.PostText, url: data.ExternalResourceUrl }),
|
74
|
-
AssignmentName: this.assignmentName,
|
75
|
-
};
|
76
|
-
await assignment_service.AssignmentService.getInstance().createAssignment(assignmentModel);
|
77
82
|
}
|
78
83
|
}
|
79
84
|
async uploadImage(evt) {
|
@@ -96,10 +101,11 @@ const SparkleFeedPost = class {
|
|
96
101
|
fileInput.click();
|
97
102
|
}
|
98
103
|
renderUserInfo() {
|
104
|
+
const imageSrc = "/assets/img/user.png";
|
99
105
|
let authUser = token_service.TokenService.getInstance().getAuthUserSync();
|
100
106
|
//var tokenInfo = { Token: null, ProfileImageUrl: null };
|
101
107
|
if (authUser && authUser.JWToken) {
|
102
|
-
return (index.h("ion-avatar", { class: "header-avatar", slot: "end" }, authUser.PhotoUrl ? index.h("img", { src: authUser.PhotoUrl }) : index.h("img", { src:
|
108
|
+
return (index.h("ion-avatar", { class: "header-avatar", slot: "end" }, authUser.PhotoUrl ? index.h("img", { src: authUser.PhotoUrl }) : index.h("img", { src: imageSrc })));
|
103
109
|
}
|
104
110
|
else {
|
105
111
|
return (index.h("ion-button", { slot: "end", href: "/login" }, "Login to Post"));
|
@@ -107,7 +113,7 @@ const SparkleFeedPost = class {
|
|
107
113
|
}
|
108
114
|
render() {
|
109
115
|
const userInfo = this.renderUserInfo();
|
110
|
-
return (index.h(index.Host, null, index.h("div", { class: "assignment-name", ref: el => (this.ref = el) }, index.h("slot", null)), index.h("ion-card", null, index.h("ion-item", { class: "header", lines: "full" }, userInfo), index.h("ion-card-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-item", { class: "padding" }, index.h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", name: "PostText", value: this.postText })), index.h("ion-item", { class: "padding" }, index.h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", value: this.externalResourceUrl })), this.uploadedImage ? (index.h("ion-item", { class: "ion-padding", lines: "none" }, index.h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''), index.h("ion-item", { lines: "none" }, index.h("input", { type: "file", id: "fileInput", onChange: evt => this.uploadImage(evt), style: { display: 'none' }, accept: "image/*" }), this.uploadImageLoading ? index.h("ion-spinner", { color: "primary" }) : '', index.h("ion-button", { slot: "start", onClick: evt => this.selectFile() }, index.h("ion-icon", { name: "add" }), "Upload Image")), index.h("div", { class: "public-post-toggle" }, index.h("ion-toggle", { class: "IsPublic", color: "primary", name: "IsPublic" }), index.h("div", null, "Public Post")), index.h("div", { class: "post-footer-container" }, index.h("div", { class: "post-footer" }, index.h("div", null, index.h("div", { class: "error" }, this.errorMessage), index.h("div", { class: "success" }, this.successMessage)), index.h("div", null, this.postLoading ? index.h("ion-spinner", { color: "primary" }) : ''), index.h("ion-button", { slot: "end", size: "default", onClick: evt => this.submitPost(), disabled: this.postLoading || !this.isAuthenticated() }, "Post")))))))));
|
116
|
+
return (index.h(index.Host, null, index.h("div", { class: "assignment-name", ref: el => (this.ref = el) }, index.h("slot", null)), index.h("ion-card", null, index.h("ion-item", { class: "header", lines: "full" }, userInfo), index.h("ion-card-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-item", { class: "padding" }, index.h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", onInput: (ev) => (this.postText = ev.target.value), name: "PostText", value: this.postText })), index.h("ion-item", { class: "padding" }, index.h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", onInput: (ev) => (this.externalResourceUrl = ev.target.value), value: this.externalResourceUrl })), this.uploadedImage ? (index.h("ion-item", { class: "ion-padding", lines: "none" }, index.h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''), index.h("ion-item", { lines: "none" }, index.h("input", { type: "file", id: "fileInput", onChange: evt => this.uploadImage(evt), style: { display: 'none' }, accept: "image/*" }), this.uploadImageLoading ? index.h("ion-spinner", { color: "primary" }) : '', index.h("ion-button", { slot: "start", onClick: evt => this.selectFile() }, index.h("ion-icon", { name: "add" }), "Upload Image")), index.h("div", { class: "public-post-toggle" }, index.h("ion-toggle", { class: "IsPublic", color: "primary", name: "IsPublic" }), index.h("div", null, "Public Post")), index.h("div", { class: "post-footer-container" }, index.h("div", { class: "post-footer" }, index.h("div", null, index.h("div", { class: "error" }, this.errorMessage), index.h("div", { class: "success" }, this.successMessage)), index.h("div", null, this.postLoading ? index.h("ion-spinner", { color: "primary" }) : ''), index.h("ion-button", { slot: "end", size: "default", onClick: evt => this.submitPost(), disabled: this.postLoading || !this.isAuthenticated() }, "Post")))))))));
|
111
117
|
}
|
112
118
|
get el() { return index.getElement(this); }
|
113
119
|
};
|
@@ -37,25 +37,30 @@ export class SparkleFeedPost {
|
|
37
37
|
AssignmentData: '',
|
38
38
|
PostTextJSON: null,
|
39
39
|
};
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
40
|
+
try {
|
41
|
+
const result = await FeedService.getInstance().createPost(data);
|
42
|
+
if (result.Succeeded) {
|
43
|
+
this.postLoading = false;
|
44
|
+
//show success toast
|
45
|
+
this.successMessage = 'Posted Successfully.';
|
46
|
+
this.postText = '';
|
47
|
+
this.externalResourceUrl = '';
|
48
|
+
this.uploadedImage = '';
|
49
|
+
}
|
50
|
+
else {
|
51
|
+
this.postLoading = false;
|
52
|
+
this.errorMessage = 'There is an error while posting to feed.';
|
53
|
+
}
|
54
|
+
if (this.assignmentName) {
|
55
|
+
var assignmentModel = {
|
56
|
+
AssignmentData: JSON.stringify({ text: data.PostText, url: data.ExternalResourceUrl }),
|
57
|
+
AssignmentName: this.assignmentName,
|
58
|
+
};
|
59
|
+
await AssignmentService.getInstance().createAssignment(assignmentModel);
|
60
|
+
}
|
48
61
|
}
|
49
|
-
|
62
|
+
catch (e) {
|
50
63
|
this.postLoading = false;
|
51
|
-
this.errorMessage = 'There is an error while posting to feed.';
|
52
|
-
}
|
53
|
-
if (this.assignmentName) {
|
54
|
-
var assignmentModel = {
|
55
|
-
AssignmentData: JSON.stringify({ text: data.PostText, url: data.ExternalResourceUrl }),
|
56
|
-
AssignmentName: this.assignmentName,
|
57
|
-
};
|
58
|
-
await AssignmentService.getInstance().createAssignment(assignmentModel);
|
59
64
|
}
|
60
65
|
}
|
61
66
|
async uploadImage(evt) {
|
@@ -78,10 +83,11 @@ export class SparkleFeedPost {
|
|
78
83
|
fileInput.click();
|
79
84
|
}
|
80
85
|
renderUserInfo() {
|
86
|
+
const imageSrc = "/assets/img/user.png";
|
81
87
|
let authUser = TokenService.getInstance().getAuthUserSync();
|
82
88
|
//var tokenInfo = { Token: null, ProfileImageUrl: null };
|
83
89
|
if (authUser && authUser.JWToken) {
|
84
|
-
return (h("ion-avatar", { class: "header-avatar", slot: "end" }, authUser.PhotoUrl ? h("img", { src: authUser.PhotoUrl }) : h("img", { src:
|
90
|
+
return (h("ion-avatar", { class: "header-avatar", slot: "end" }, authUser.PhotoUrl ? h("img", { src: authUser.PhotoUrl }) : h("img", { src: imageSrc })));
|
85
91
|
}
|
86
92
|
else {
|
87
93
|
return (h("ion-button", { slot: "end", href: "/login" }, "Login to Post"));
|
@@ -98,9 +104,9 @@ export class SparkleFeedPost {
|
|
98
104
|
h("form", null,
|
99
105
|
h("ion-list", null,
|
100
106
|
h("ion-item", { class: "padding" },
|
101
|
-
h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", name: "PostText", value: this.postText })),
|
107
|
+
h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", onInput: (ev) => (this.postText = ev.target.value), name: "PostText", value: this.postText })),
|
102
108
|
h("ion-item", { class: "padding" },
|
103
|
-
h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", value: this.externalResourceUrl })),
|
109
|
+
h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", onInput: (ev) => (this.externalResourceUrl = ev.target.value), value: this.externalResourceUrl })),
|
104
110
|
this.uploadedImage ? (h("ion-item", { class: "ion-padding", lines: "none" },
|
105
111
|
h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''),
|
106
112
|
h("ion-item", { lines: "none" },
|
@@ -51,25 +51,30 @@ const SparkleFeedPost = class {
|
|
51
51
|
AssignmentData: '',
|
52
52
|
PostTextJSON: null,
|
53
53
|
};
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
54
|
+
try {
|
55
|
+
const result = await FeedService.getInstance().createPost(data);
|
56
|
+
if (result.Succeeded) {
|
57
|
+
this.postLoading = false;
|
58
|
+
//show success toast
|
59
|
+
this.successMessage = 'Posted Successfully.';
|
60
|
+
this.postText = '';
|
61
|
+
this.externalResourceUrl = '';
|
62
|
+
this.uploadedImage = '';
|
63
|
+
}
|
64
|
+
else {
|
65
|
+
this.postLoading = false;
|
66
|
+
this.errorMessage = 'There is an error while posting to feed.';
|
67
|
+
}
|
68
|
+
if (this.assignmentName) {
|
69
|
+
var assignmentModel = {
|
70
|
+
AssignmentData: JSON.stringify({ text: data.PostText, url: data.ExternalResourceUrl }),
|
71
|
+
AssignmentName: this.assignmentName,
|
72
|
+
};
|
73
|
+
await AssignmentService.getInstance().createAssignment(assignmentModel);
|
74
|
+
}
|
62
75
|
}
|
63
|
-
|
76
|
+
catch (e) {
|
64
77
|
this.postLoading = false;
|
65
|
-
this.errorMessage = 'There is an error while posting to feed.';
|
66
|
-
}
|
67
|
-
if (this.assignmentName) {
|
68
|
-
var assignmentModel = {
|
69
|
-
AssignmentData: JSON.stringify({ text: data.PostText, url: data.ExternalResourceUrl }),
|
70
|
-
AssignmentName: this.assignmentName,
|
71
|
-
};
|
72
|
-
await AssignmentService.getInstance().createAssignment(assignmentModel);
|
73
78
|
}
|
74
79
|
}
|
75
80
|
async uploadImage(evt) {
|
@@ -92,10 +97,11 @@ const SparkleFeedPost = class {
|
|
92
97
|
fileInput.click();
|
93
98
|
}
|
94
99
|
renderUserInfo() {
|
100
|
+
const imageSrc = "/assets/img/user.png";
|
95
101
|
let authUser = TokenService.getInstance().getAuthUserSync();
|
96
102
|
//var tokenInfo = { Token: null, ProfileImageUrl: null };
|
97
103
|
if (authUser && authUser.JWToken) {
|
98
|
-
return (h("ion-avatar", { class: "header-avatar", slot: "end" }, authUser.PhotoUrl ? h("img", { src: authUser.PhotoUrl }) : h("img", { src:
|
104
|
+
return (h("ion-avatar", { class: "header-avatar", slot: "end" }, authUser.PhotoUrl ? h("img", { src: authUser.PhotoUrl }) : h("img", { src: imageSrc })));
|
99
105
|
}
|
100
106
|
else {
|
101
107
|
return (h("ion-button", { slot: "end", href: "/login" }, "Login to Post"));
|
@@ -103,7 +109,7 @@ const SparkleFeedPost = class {
|
|
103
109
|
}
|
104
110
|
render() {
|
105
111
|
const userInfo = this.renderUserInfo();
|
106
|
-
return (h(Host, null, h("div", { class: "assignment-name", ref: el => (this.ref = el) }, h("slot", null)), h("ion-card", null, h("ion-item", { class: "header", lines: "full" }, userInfo), h("ion-card-content", null, h("form", null, h("ion-list", null, h("ion-item", { class: "padding" }, h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", name: "PostText", value: this.postText })), h("ion-item", { class: "padding" }, h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", value: this.externalResourceUrl })), this.uploadedImage ? (h("ion-item", { class: "ion-padding", lines: "none" }, h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''), h("ion-item", { lines: "none" }, h("input", { type: "file", id: "fileInput", onChange: evt => this.uploadImage(evt), style: { display: 'none' }, accept: "image/*" }), this.uploadImageLoading ? h("ion-spinner", { color: "primary" }) : '', h("ion-button", { slot: "start", onClick: evt => this.selectFile() }, h("ion-icon", { name: "add" }), "Upload Image")), h("div", { class: "public-post-toggle" }, h("ion-toggle", { class: "IsPublic", color: "primary", name: "IsPublic" }), h("div", null, "Public Post")), h("div", { class: "post-footer-container" }, h("div", { class: "post-footer" }, h("div", null, h("div", { class: "error" }, this.errorMessage), h("div", { class: "success" }, this.successMessage)), h("div", null, this.postLoading ? h("ion-spinner", { color: "primary" }) : ''), h("ion-button", { slot: "end", size: "default", onClick: evt => this.submitPost(), disabled: this.postLoading || !this.isAuthenticated() }, "Post")))))))));
|
112
|
+
return (h(Host, null, h("div", { class: "assignment-name", ref: el => (this.ref = el) }, h("slot", null)), h("ion-card", null, h("ion-item", { class: "header", lines: "full" }, userInfo), h("ion-card-content", null, h("form", null, h("ion-list", null, h("ion-item", { class: "padding" }, h("ion-textarea", { class: "PostText", required: true, placeholder: "Post Text", onInput: (ev) => (this.postText = ev.target.value), name: "PostText", value: this.postText })), h("ion-item", { class: "padding" }, h("ion-input", { class: "PostExternalUrl", required: true, type: "text", placeholder: "URL", name: "ExternalResourceUrl", onInput: (ev) => (this.externalResourceUrl = ev.target.value), value: this.externalResourceUrl })), this.uploadedImage ? (h("ion-item", { class: "ion-padding", lines: "none" }, h("img", { class: "uploaded-image", src: this.uploadedImage }))) : (''), h("ion-item", { lines: "none" }, h("input", { type: "file", id: "fileInput", onChange: evt => this.uploadImage(evt), style: { display: 'none' }, accept: "image/*" }), this.uploadImageLoading ? h("ion-spinner", { color: "primary" }) : '', h("ion-button", { slot: "start", onClick: evt => this.selectFile() }, h("ion-icon", { name: "add" }), "Upload Image")), h("div", { class: "public-post-toggle" }, h("ion-toggle", { class: "IsPublic", color: "primary", name: "IsPublic" }), h("div", null, "Public Post")), h("div", { class: "post-footer-container" }, h("div", { class: "post-footer" }, h("div", null, h("div", { class: "error" }, this.errorMessage), h("div", { class: "success" }, this.successMessage)), h("div", null, this.postLoading ? h("ion-spinner", { color: "primary" }) : ''), h("ion-button", { slot: "end", size: "default", onClick: evt => this.submitPost(), disabled: this.postLoading || !this.isAuthenticated() }, "Post")))))))));
|
107
113
|
}
|
108
114
|
get el() { return getElement(this); }
|
109
115
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as s,h as t,H as i,e}from"./p-ee1e0eb4.js";import{A as o}from"./p-4fba3e4c.js";import{F as n}from"./p-b8d71ff4.js";import{M as a}from"./p-1adc98f6.js";import{T as l}from"./p-7dae0f0e.js";import{S as r}from"./p-8b56f734.js";import"./p-b06e2bef.js";import"./p-2f569553.js";import"./p-ff7a8a71.js";import"./p-871106e0.js";import"./p-add30d46.js";import"./p-d68092b7.js";import"./p-bd90903e.js";import"./p-5d409601.js";const p=class{constructor(t){s(this,t)}componentDidLoad(){this.postText=this.textValue,this.ref&&this.ref.innerText&&(this.assignmentName=this.ref.innerText,console.log(this.assignmentName))}setText(s){this.postText=s}isAuthenticated(){return l.getInstance().isAuthenticated()}async submitPost(){this.postLoading=!0,this.errorMessage="",this.successMessage="";var s=this.el.getElementsByClassName("PostExternalUrl")[0],t=this.el.getElementsByClassName("IsPublic")[0],i={PostText:this.postText,IsPublic:t.checked,ExternalResourceUrl:s.value,MiniAppId:r.MY_GOALS_APP_ID,AssignmentName:this.assignmentName,AssignmentData:"",PostTextJSON:null};try{if((await n.getInstance().createPost(i)).Succeeded?(this.postLoading=!1,this.successMessage="Posted Successfully.",this.postText="",this.externalResourceUrl="",this.uploadedImage=""):(this.postLoading=!1,this.errorMessage="There is an error while posting to feed."),this.assignmentName){var e={AssignmentData:JSON.stringify({text:i.PostText,url:i.ExternalResourceUrl}),AssignmentName:this.assignmentName};await o.getInstance().createAssignment(e)}}catch(s){this.postLoading=!1}}async uploadImage(s){this.uploadImageLoading=!0;var t=s.target.files;let i=await a.getInstance().uploadImage(t);i.Succeeded?(console.log(i),this.uploadImageLoading=!1,this.uploadedImage=i.Data.length>0?i.Data[0].FullImageUrl:"",this.externalResourceUrl=i.Data.length>0?i.Data[0].FullImageUrl:""):(this.uploadImageLoading=!1,this.errorMessage="There is an error while uploading an image.")}selectFile(){this.el.querySelector("#fileInput").click()}renderUserInfo(){let s=l.getInstance().getAuthUserSync();return s&&s.JWToken?t("ion-avatar",{class:"header-avatar",slot:"end"},t("img",s.PhotoUrl?{src:s.PhotoUrl}:{src:"/assets/img/user.png"})):t("ion-button",{slot:"end",href:"/login"},"Login to Post")}render(){const s=this.renderUserInfo();return t(i,null,t("div",{class:"assignment-name",ref:s=>this.ref=s},t("slot",null)),t("ion-card",null,t("ion-item",{class:"header",lines:"full"},s),t("ion-card-content",null,t("form",null,t("ion-list",null,t("ion-item",{class:"padding"},t("ion-textarea",{class:"PostText",required:!0,placeholder:"Post Text",onInput:s=>this.postText=s.target.value,name:"PostText",value:this.postText})),t("ion-item",{class:"padding"},t("ion-input",{class:"PostExternalUrl",required:!0,type:"text",placeholder:"URL",name:"ExternalResourceUrl",onInput:s=>this.externalResourceUrl=s.target.value,value:this.externalResourceUrl})),this.uploadedImage?t("ion-item",{class:"ion-padding",lines:"none"},t("img",{class:"uploaded-image",src:this.uploadedImage})):"",t("ion-item",{lines:"none"},t("input",{type:"file",id:"fileInput",onChange:s=>this.uploadImage(s),style:{display:"none"},accept:"image/*"}),this.uploadImageLoading?t("ion-spinner",{color:"primary"}):"",t("ion-button",{slot:"start",onClick:()=>this.selectFile()},t("ion-icon",{name:"add"}),"Upload Image")),t("div",{class:"public-post-toggle"},t("ion-toggle",{class:"IsPublic",color:"primary",name:"IsPublic"}),t("div",null,"Public Post")),t("div",{class:"post-footer-container"},t("div",{class:"post-footer"},t("div",null,t("div",{class:"error"},this.errorMessage),t("div",{class:"success"},this.successMessage)),t("div",null,this.postLoading?t("ion-spinner",{color:"primary"}):""),t("ion-button",{slot:"end",size:"default",onClick:()=>this.submitPost(),disabled:this.postLoading||!this.isAuthenticated()},"Post"))))))))}get el(){return e(this)}};p.style=":host{display:block}.post-footer-container{display:flex;justify-content:flex-end}.post-footer{display:flex;justify-content:space-between;align-items:center}.error{color:red;margin-right:10px}.success{color:green;margin-right:10px}.uploaded-image{display:block;max-height:140px;width:auto !important}.public-post-toggle{display:flex;justify-content:flex-end;align-items:center}.assignment-name{display:none}";export{p as sparkle_feed_post}
|
@@ -1 +1 @@
|
|
1
|
-
import{p as e,b as o}from"./p-ee1e0eb4.js";import{g as t}from"./p-0147266a.js";import"./p-871106e0.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-f891c79a",[[0,"sparkle-discussion",{"allowPostToFeed":[4,"allow-post-to-feed"],"feedStartingText":[1,"feed-starting-text"],"isTeacherMode":[1028,"is-teacher-mode"],"questionIds":[1,"question-ids"],"quizData":[32]}]]],["p-42ed7d5f",[[0,"sparkle-goal-form",{"appData":[16],"name":[32],"description":[32],"category":[32],"progress":[32],"public":[32],"goalUpdateText":[32],"submitted":[32]}]]],["p-08420531",[[0,"sparkle-input",{"type":[1],"value":[1032],"label":[1],"name":[1],"placeholder":[1],"checked":[4],"options":[1]}]]],["p-4d1cfcbe",[[0,"sparkle-feedback",{"formControls":[32],"submitted":[32]}]]],["p-30b810d1",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"multiple":[4],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}]]],["p-9e7fee8f",[[0,"sparkle-gww-comment-list",{"comments":[16]}]]],["p-f47fe1fe",[[4,"sparkle-assignment",{"name":[1025],"submitted":[32],"assignmentLoading":[32],"errorMessage":[32],"successMessage":[32]},[[0,"fileUploaded","fileUploaded"]]]]],["p-72053ae0",[[0,"sparkle-quiz",{"questionId":[2,"question-id"],"submitted":[4],"correct":[4],"showInstantResult":[4,"show-instant-result"],"question":[32],"quizData":[32]},[[0,"quizInputChange","quizInputChangeHandler"],[0,"quizFeedbackChange","quizFeedbackChangeHandler"],[0,"quizSelectChange","quizSelectChangeHandler"],[0,"quizOpinionChange","quizOpinionChangeHandler"]]]]],["p-c64a34cd",[[4,"sparkle-quiz-old",{"questionId":[2,"question-id"],"type":[1],"scale":[1],"questionText":[1,"question-text"],"showOptionNumber":[4,"show-option-number"],"submitted":[4],"correct":[4],"feedback":[1],"showInstantResult":[4,"show-instant-result"],"options":[32]},[[0,"quizInputChange","quizInputChangeHandler"],[0,"quizFeedbackChange","quizFeedbackChangeHandler"],[0,"quizSelectChange","quizSelectChangeHandler"],[0,"quizOpinionChange","quizOpinionChangeHandler"]]]]],["p-d601810e",[[0,"sparkle-compass-post",{"errorMessage":[32],"successMessage":[32],"resiliance":[32],"care":[32],"compassData":[32],"renderCompass":[64]}]]],["p-85d4cd5c",[[0,"sparkle-animation-player",{"src":[1],"composition":[1],"initialClassMode":[4,"initial-class-mode"],"classMode":[32],"showCaption":[32],"paused":[32],"sizeOfCanvas":[32],"sizeofProgressBar":[32],"dataLoaded":[32],"currentProgressWidth":[32],"captionText":[32],"showFirstFrame":[32],"isBusy":[32],"playAnimation":[64],"pauseAnimation":[64],"classRoomModeChanged":[64],"destroyAnimation":[64]},[[0,"ionChange","closedCaptionChange"],[16,"classRoomModeChanged","onClassRoomModeChanged"]]]]],["p-38c842d5",[[0,"sparkle-facilitator-notes-form",{"initialValues":[16],"formControls":[32],"submitted":[32]}]]],["p-0e8e539f",[[1,"sparkle-file-upload",{"value":[1025],"name":[1025],"errorMessage":[32],"uploadedImage":[32],"uploadImageLoading":[32]}]]],["p-04c7b276",[[4,"sparkle-sidebar",{"position":[1],"size":[1],"headerText":[1,"header-text"],"isShowing":[32],"hide":[64],"show":[64]}]]],["p-c2990b24",[[0,"course-select",{"toggleClickFn":[16]}]]],["p-6ffd2420",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}]]],["p-6d2f4093",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-894ff7e6",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-6bde0192",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-cc518c36",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-f196c124",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-98daeddb",[[0,"sparkle-quiz-container",{"questionIds":[1,"question-ids"],"showInstantResult":[4,"show-instant-result"],"submitted":[32]},[[4,"pageDidLoad","pageDidLoadHandler"],[16,"quizAnswerChanged","updateQuizAnswerModelHandler"]]]]],["p-9289cdbc",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}]]],["p-9abbd715",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-27fbabc3",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["p-9ebf0537",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["p-975b99ee",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-1b1ba156",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-b6fec622",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]]],["p-ff080f82",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["p-cffd4817",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-0c3f3ea6",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-b5f3e1bf",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}]]],["p-594a6982",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]]],["p-352677e6",[[0,"sparkle-lower-content-nav",{"next":[16],"prev":[16]}]]],["p-fda95b6e",[[0,"sparkle-notfound-page"]]],["p-06642405",[[0,"sparkle-table-of-contents",{"links":[16],"label":[1],"basepath":[1],"itemOffsets":[32],"selectedId":[32],"pageWidth":[32]},[[9,"scroll","function"],[9,"resize","updateItemOffsets"]]]]],["p-a2ebcf0a",[[0,"compass-svg"]]],["p-a98d7ebe",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["p-69487d90",[[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["p-74864276",[[0,"ion-app",{"setFocus":[64]}]]],["p-1e4782af",[[33,"ion-badge",{"color":[513]}]]],["p-601397df",[[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["p-38b7cf68",[[33,"ion-card-header",{"color":[513],"translucent":[4]}]]],["p-2ba70507",[[33,"ion-card-subtitle",{"color":[513]}]]],["p-865f36a8",[[33,"ion-card-title",{"color":[513]}]]],["p-5322c920",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}]]],["p-06c7d0f2",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-e686d8b5",[[36,"ion-footer",{"collapse":[1],"translucent":[4]}]]],["p-0afa3a4d",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-0ad5c123",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-e249aebf",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}]]],["p-e3e36ce9",[[32,"ion-item-group"]]],["p-24cb9a33",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-cabfbf22",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-8492a765",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-c60b29bd",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-fd8d0738",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-c0533c23",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["p-39712c56",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-fb757951",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-859563db",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}]]],["p-81714d94",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-b96f3c84",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-214d1229",[[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["p-ebd4354b",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-2c1ca854",[[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["p-d20e4fcf",[[1,"ion-skeleton-text",{"animated":[4]}]]],["p-9e309b3e",[[0,"ion-slide"]]],["p-1e125ca5",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-2d9659e2",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-de4deb61",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-e8988989",[[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["p-d288e6c1",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-d24e53ab",[[1,"ion-thumbnail"]]],["p-ef4edc48",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-13ec39db",[[4,"sparkle-character-intro",{"character":[1],"position":[1]}]]],["p-11a6c175",[[0,"sparkle-code",{"language":[513],"showCopyConfirmation":[32]}]]],["p-3963e02b",[[0,"sparkle-compass",{"resiliance":[514],"care":[514],"organization":[514],"school":[514],"relationship":[514],"emotions":[514],"spirituality":[514],"rest":[514],"canvas":[32],"canvase_container":[32],"drawOnCompass":[64]}]]],["p-616941c6",[[1,"sparkle-emoji",{"mood":[1],"size":[1]}]]],["p-63f71ada",[[4,"sparkle-gww-graph"]]],["p-5c435d5a",[[0,"sparkle-intro",{"description":[32]}]]],["p-957715c5",[[4,"sparkle-menu-collapsible",{"heading":[1],"isOpen":[32]}]]],["p-e421d638",[[1,"sparkle-modal-image",{"src":[1],"alt":[1],"width":[1],"height":[1],"openDialog":[1028,"open-dialog"],"transparent":[4]},[[0,"keydown","handleKeyDown"],[2,"click","handleScroll"]]]]],["p-8c74cbb6",[[1,"sparkle-poll"]]],["p-6316d124",[[4,"sparkle-tab",{"tab":[513],"selected":[516]}]]],["p-a2638250",[[4,"sparkle-tabs",{"listenFor":[1,"listen-for"],"selected":[32],"tabs":[32]},[[8,"local-storage","listenForFrameworkSelection"]]]]],["p-c7e21070",[[0,"sparkle-video-player",{"src":[1],"type":[1],"width":[2],"controls":[4]}]]],["p-fe6dc976",[[0,"sparkle-youtube",{"src":[1],"initialClassMode":[4,"initial-class-mode"],"classMode":[32],"video_thumbnail":[32],"classRoomModeChanged":[64]}]]],["p-ea962e1b",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["p-32f4e565",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["p-d0adf726",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["p-5096739e",[[0,"sparkle-select",{"options":[1040],"initializer":[16],"optionRenderer":[16],"selected":[32]}]]],["p-b3f375fb",[[32,"ion-picker-column",{"col":[16]}]]],["p-4053ecdb",[[4,"sparkle-overlay",{"titleId":[1,"title-id"],"absolute":[4],"theme":[1],"preventClose":[4,"prevent-close"],"focusIndex":[32],"isShowing":[32],"show":[64],"hide":[64]},[[0,"keydown","handleKeyDown"]]]]],["p-11356b03",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["p-973fe404",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]],[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}],[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]],[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}],[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-08cca80d",[[4,"sparkle-feed-post",{"assignmentName":[1025,"assignment-name"],"textValue":[1,"text-value"],"postText":[32],"errorMessage":[32],"uploadedImage":[32],"successMessage":[32],"externalResourceUrl":[32],"uploadImageLoading":[32],"postLoading":[32],"setText":[64]}]]],["p-5893bbe5",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["p-f714f77a",[[0,"sparkle-discussion-questions",{"allowPostToFeed":[4,"allow-post-to-feed"],"postToFeedAssignmentName":[1,"post-to-feed-assignment-name"],"feedStartingText":[1,"feed-starting-text"],"isTeacherMode":[4,"is-teacher-mode"],"questions":[16],"error":[32],"modelChange":[32],"responses":[32],"suggestionList":[32],"postToFeedTextValue":[32]}],[0,"sparkle-discussion-results",{"allowPostToFeed":[4,"allow-post-to-feed"],"feedStartingText":[1,"feed-starting-text"],"isTeacherMode":[4,"is-teacher-mode"],"questions":[16],"error":[32],"modelChange":[32],"responses":[32],"suggestionList":[32]},[[16,"receivedPollSubmissionSignalREvent","gotServerUpdate"]]]]],["p-be64105c",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["p-0664370b",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}],[33,"ion-picker-internal"]]],["p-fb0ca75e",[[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"]]]]],["p-c3cadfc6",[[0,"sparkle-quiz-opinion",{"question":[16],"selectedIndex":[32]}],[0,"sparkle-quiz-feedback",{"question":[16]}],[0,"sparkle-quiz-input",{"question":[16]}],[0,"sparkle-quiz-poll",{"question":[16]}],[0,"sparkle-quiz-select",{"question":[16],"allowMultiple":[4,"allow-multiple"],"values":[32]}]]],["p-8a41b502",[[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["p-3daf2915",[[0,"sparkle-course-root",{"isMenuToggled":[32],"tocData":[32]},[[0,"userDidLogIn","useDidLogin"]]],[0,"sparkle-login",{"history":[16],"notsignin":[32],"username":[32],"password":[32],"rememberMe":[32],"submitted":[32]}],[0,"sparkle-user-enrollment",{"enrollmentFormControls":[32],"enrollmentFormSubmitted":[32]}],[0,"sparkle-mood",{"history":[16],"loading":[32],"feeling":[32],"intensity":[32],"location":[32],"public":[32],"submitted":[32],"currentStep":[32]}],[0,"sparkle-signup",{"history":[16],"validationErrors":[32],"formControls":[32],"submitted":[32]}],[0,"sparkle-user-profile",{"profileFormControls":[32],"profileFormSubmitted":[32]}],[0,"sparkle-forgot-password",{"history":[16],"validationErrors":[32],"formControls":[32],"submitted":[32]}],[0,"sparkle-goals"],[0,"sparkle-health",{"history":[16],"uploadedImageUrl":[32],"heartRate":[32],"public":[32],"submitted":[32]}],[0,"sparkle-gww"],[0,"sparkle-reset-password",{"history":[16],"validationErrors":[32],"formControls":[32],"submitted":[32]}],[0,"sparkle-facilitator-page",{"path":[1],"notesPath":[1,"notes-path"],"badFetch":[32],"badFetchLessonNotes":[32],"isLesson":[32],"notesPage":[32],"lessonNotesPage":[32],"page":[32],"onlineStudents":[32],"activetab":[32]}],[4,"sparkle-header",{"authUser":[8,"auth-user"],"hideClassRoomToggle":[4,"hide-class-room-toggle"],"courseName":[1,"course-name"],"imageUrl":[1,"image-url"],"toggleClickFn":[16],"signoutClickFn":[16],"classRoomMode":[32],"hidden":[32]},[[9,"scroll","handleScroll"]]],[0,"sparkle-menu",{"toggleClickFn":[16],"toc":[16],"config":[16]}],[4,"sparkle-facilitator-header",{"courseName":[1,"course-name"],"toggleStudentClickFn":[16],"hidden":[32]},[[9,"scroll","handleScroll"]]],[4,"sparkle-page",{"history":[16],"path":[1],"presentation":[4],"badFetch":[32],"page":[32],"isLesson":[32]}],[4,"sparkle-root",{"config":[16]}],[0,"sparkle-unauthorized"],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sparkle-gww-item",{"post":[16],"onPostComment":[16],"loading":[4],"comment":[32]},[[16,"commentPosted","clearCommentField"]]],[0,"sparkle-goal-item",{"goal":[16],"onEditGoal":[16]}],[0,"sparkle-page-footer",{"page":[16]}],[0,"sparkle-nav",{"toc":[16],"config":[16],"selectedParent":[1040],"moduleURLName":[32],"sessionURLName":[32]},[[4,"pageDidLoad","pageDidLoadHandler"]]],[1,"ion-grid",{"fixed":[4]}],[4,"sparkle-cards"],[0,"sparkle-export-lessons",{"tocData":[32],"moduleContent":[32],"moduleName":[32],"page":[32]}],[0,"sparkle-facilitator-dashboard",{"tocData":[32],"selectedModule":[32],"selectedSession":[32],"selectedPage":[32],"showAllModules":[32]}],[0,"sparkle-facilitator-notes"],[0,"sparkle-online-students",{"path":[1],"onlineStudents":[32]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}],[4,"sparkle-card",{"href":[1],"header":[1],"icon":[1],"hoverIcon":[1,"hover-icon"],"iconset":[1],"ionicon":[1],"img":[1],"size":[1],"activeIndex":[32]}],[4,"sparkle-button",{"href":[1],"round":[516],"primary":[516]}],[0,"sparkle-pagination",{"page":[16]}],[4,"header-mobile-collapse",{"darkMode":[4,"dark-mode"],"mobileDropdownActive":[32],"stuck":[32],"queued":[32]},[[16,"pageChanged","deactivate"]]],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-row"],[0,"sparkle-menu-toggle"],[4,"sparkle-dropdown",{"align":[1],"label":[1],"icon":[16],"image":[1],"isOpen":[32],"close":[64],"open":[64],"toggle":[64]},[[8,"click","handleClick"],[0,"keyup","handleKeyup"]]],[0,"sparkle-validation-error",{"errors":[16]}],[0,"sparkle-goal-progress",{"percentage":[1]}],[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}],[1,"ion-text",{"color":[513]}],[33,"ion-avatar"],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]],[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}],[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[33,"ion-note",{"color":[513]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]]]'),e))));
|
1
|
+
import{p as e,b as o}from"./p-ee1e0eb4.js";import{g as t}from"./p-0147266a.js";import"./p-871106e0.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-f891c79a",[[0,"sparkle-discussion",{"allowPostToFeed":[4,"allow-post-to-feed"],"feedStartingText":[1,"feed-starting-text"],"isTeacherMode":[1028,"is-teacher-mode"],"questionIds":[1,"question-ids"],"quizData":[32]}]]],["p-42ed7d5f",[[0,"sparkle-goal-form",{"appData":[16],"name":[32],"description":[32],"category":[32],"progress":[32],"public":[32],"goalUpdateText":[32],"submitted":[32]}]]],["p-08420531",[[0,"sparkle-input",{"type":[1],"value":[1032],"label":[1],"name":[1],"placeholder":[1],"checked":[4],"options":[1]}]]],["p-4d1cfcbe",[[0,"sparkle-feedback",{"formControls":[32],"submitted":[32]}]]],["p-30b810d1",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"multiple":[4],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}]]],["p-9e7fee8f",[[0,"sparkle-gww-comment-list",{"comments":[16]}]]],["p-f47fe1fe",[[4,"sparkle-assignment",{"name":[1025],"submitted":[32],"assignmentLoading":[32],"errorMessage":[32],"successMessage":[32]},[[0,"fileUploaded","fileUploaded"]]]]],["p-72053ae0",[[0,"sparkle-quiz",{"questionId":[2,"question-id"],"submitted":[4],"correct":[4],"showInstantResult":[4,"show-instant-result"],"question":[32],"quizData":[32]},[[0,"quizInputChange","quizInputChangeHandler"],[0,"quizFeedbackChange","quizFeedbackChangeHandler"],[0,"quizSelectChange","quizSelectChangeHandler"],[0,"quizOpinionChange","quizOpinionChangeHandler"]]]]],["p-c64a34cd",[[4,"sparkle-quiz-old",{"questionId":[2,"question-id"],"type":[1],"scale":[1],"questionText":[1,"question-text"],"showOptionNumber":[4,"show-option-number"],"submitted":[4],"correct":[4],"feedback":[1],"showInstantResult":[4,"show-instant-result"],"options":[32]},[[0,"quizInputChange","quizInputChangeHandler"],[0,"quizFeedbackChange","quizFeedbackChangeHandler"],[0,"quizSelectChange","quizSelectChangeHandler"],[0,"quizOpinionChange","quizOpinionChangeHandler"]]]]],["p-d601810e",[[0,"sparkle-compass-post",{"errorMessage":[32],"successMessage":[32],"resiliance":[32],"care":[32],"compassData":[32],"renderCompass":[64]}]]],["p-85d4cd5c",[[0,"sparkle-animation-player",{"src":[1],"composition":[1],"initialClassMode":[4,"initial-class-mode"],"classMode":[32],"showCaption":[32],"paused":[32],"sizeOfCanvas":[32],"sizeofProgressBar":[32],"dataLoaded":[32],"currentProgressWidth":[32],"captionText":[32],"showFirstFrame":[32],"isBusy":[32],"playAnimation":[64],"pauseAnimation":[64],"classRoomModeChanged":[64],"destroyAnimation":[64]},[[0,"ionChange","closedCaptionChange"],[16,"classRoomModeChanged","onClassRoomModeChanged"]]]]],["p-38c842d5",[[0,"sparkle-facilitator-notes-form",{"initialValues":[16],"formControls":[32],"submitted":[32]}]]],["p-0e8e539f",[[1,"sparkle-file-upload",{"value":[1025],"name":[1025],"errorMessage":[32],"uploadedImage":[32],"uploadImageLoading":[32]}]]],["p-04c7b276",[[4,"sparkle-sidebar",{"position":[1],"size":[1],"headerText":[1,"header-text"],"isShowing":[32],"hide":[64],"show":[64]}]]],["p-c2990b24",[[0,"course-select",{"toggleClickFn":[16]}]]],["p-6ffd2420",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}]]],["p-6d2f4093",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-894ff7e6",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-6bde0192",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-cc518c36",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-f196c124",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-98daeddb",[[0,"sparkle-quiz-container",{"questionIds":[1,"question-ids"],"showInstantResult":[4,"show-instant-result"],"submitted":[32]},[[4,"pageDidLoad","pageDidLoadHandler"],[16,"quizAnswerChanged","updateQuizAnswerModelHandler"]]]]],["p-9289cdbc",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}]]],["p-9abbd715",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-27fbabc3",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["p-9ebf0537",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["p-975b99ee",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-1b1ba156",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-b6fec622",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]]],["p-ff080f82",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["p-cffd4817",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-0c3f3ea6",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["p-b5f3e1bf",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}]]],["p-594a6982",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]]],["p-352677e6",[[0,"sparkle-lower-content-nav",{"next":[16],"prev":[16]}]]],["p-fda95b6e",[[0,"sparkle-notfound-page"]]],["p-06642405",[[0,"sparkle-table-of-contents",{"links":[16],"label":[1],"basepath":[1],"itemOffsets":[32],"selectedId":[32],"pageWidth":[32]},[[9,"scroll","function"],[9,"resize","updateItemOffsets"]]]]],["p-a2ebcf0a",[[0,"compass-svg"]]],["p-a98d7ebe",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["p-69487d90",[[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["p-74864276",[[0,"ion-app",{"setFocus":[64]}]]],["p-1e4782af",[[33,"ion-badge",{"color":[513]}]]],["p-601397df",[[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["p-38b7cf68",[[33,"ion-card-header",{"color":[513],"translucent":[4]}]]],["p-2ba70507",[[33,"ion-card-subtitle",{"color":[513]}]]],["p-865f36a8",[[33,"ion-card-title",{"color":[513]}]]],["p-5322c920",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}]]],["p-06c7d0f2",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-e686d8b5",[[36,"ion-footer",{"collapse":[1],"translucent":[4]}]]],["p-0afa3a4d",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-0ad5c123",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-e249aebf",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}]]],["p-e3e36ce9",[[32,"ion-item-group"]]],["p-24cb9a33",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-cabfbf22",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-8492a765",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-c60b29bd",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-fd8d0738",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-c0533c23",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["p-39712c56",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-fb757951",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-859563db",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}]]],["p-81714d94",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-b96f3c84",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-214d1229",[[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["p-ebd4354b",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-2c1ca854",[[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["p-d20e4fcf",[[1,"ion-skeleton-text",{"animated":[4]}]]],["p-9e309b3e",[[0,"ion-slide"]]],["p-1e125ca5",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-2d9659e2",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-de4deb61",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-e8988989",[[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["p-d288e6c1",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-d24e53ab",[[1,"ion-thumbnail"]]],["p-ef4edc48",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-13ec39db",[[4,"sparkle-character-intro",{"character":[1],"position":[1]}]]],["p-11a6c175",[[0,"sparkle-code",{"language":[513],"showCopyConfirmation":[32]}]]],["p-3963e02b",[[0,"sparkle-compass",{"resiliance":[514],"care":[514],"organization":[514],"school":[514],"relationship":[514],"emotions":[514],"spirituality":[514],"rest":[514],"canvas":[32],"canvase_container":[32],"drawOnCompass":[64]}]]],["p-616941c6",[[1,"sparkle-emoji",{"mood":[1],"size":[1]}]]],["p-63f71ada",[[4,"sparkle-gww-graph"]]],["p-5c435d5a",[[0,"sparkle-intro",{"description":[32]}]]],["p-957715c5",[[4,"sparkle-menu-collapsible",{"heading":[1],"isOpen":[32]}]]],["p-e421d638",[[1,"sparkle-modal-image",{"src":[1],"alt":[1],"width":[1],"height":[1],"openDialog":[1028,"open-dialog"],"transparent":[4]},[[0,"keydown","handleKeyDown"],[2,"click","handleScroll"]]]]],["p-8c74cbb6",[[1,"sparkle-poll"]]],["p-6316d124",[[4,"sparkle-tab",{"tab":[513],"selected":[516]}]]],["p-a2638250",[[4,"sparkle-tabs",{"listenFor":[1,"listen-for"],"selected":[32],"tabs":[32]},[[8,"local-storage","listenForFrameworkSelection"]]]]],["p-c7e21070",[[0,"sparkle-video-player",{"src":[1],"type":[1],"width":[2],"controls":[4]}]]],["p-fe6dc976",[[0,"sparkle-youtube",{"src":[1],"initialClassMode":[4,"initial-class-mode"],"classMode":[32],"video_thumbnail":[32],"classRoomModeChanged":[64]}]]],["p-ea962e1b",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["p-32f4e565",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["p-d0adf726",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["p-5096739e",[[0,"sparkle-select",{"options":[1040],"initializer":[16],"optionRenderer":[16],"selected":[32]}]]],["p-b3f375fb",[[32,"ion-picker-column",{"col":[16]}]]],["p-4053ecdb",[[4,"sparkle-overlay",{"titleId":[1,"title-id"],"absolute":[4],"theme":[1],"preventClose":[4,"prevent-close"],"focusIndex":[32],"isShowing":[32],"show":[64],"hide":[64]},[[0,"keydown","handleKeyDown"]]]]],["p-11356b03",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["p-973fe404",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]],[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}],[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]],[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}],[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-2caed39f",[[4,"sparkle-feed-post",{"assignmentName":[1025,"assignment-name"],"textValue":[1,"text-value"],"postText":[32],"errorMessage":[32],"uploadedImage":[32],"successMessage":[32],"externalResourceUrl":[32],"uploadImageLoading":[32],"postLoading":[32],"setText":[64]}]]],["p-5893bbe5",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["p-f714f77a",[[0,"sparkle-discussion-questions",{"allowPostToFeed":[4,"allow-post-to-feed"],"postToFeedAssignmentName":[1,"post-to-feed-assignment-name"],"feedStartingText":[1,"feed-starting-text"],"isTeacherMode":[4,"is-teacher-mode"],"questions":[16],"error":[32],"modelChange":[32],"responses":[32],"suggestionList":[32],"postToFeedTextValue":[32]}],[0,"sparkle-discussion-results",{"allowPostToFeed":[4,"allow-post-to-feed"],"feedStartingText":[1,"feed-starting-text"],"isTeacherMode":[4,"is-teacher-mode"],"questions":[16],"error":[32],"modelChange":[32],"responses":[32],"suggestionList":[32]},[[16,"receivedPollSubmissionSignalREvent","gotServerUpdate"]]]]],["p-be64105c",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["p-0664370b",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}],[33,"ion-picker-internal"]]],["p-fb0ca75e",[[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"]]]]],["p-c3cadfc6",[[0,"sparkle-quiz-opinion",{"question":[16],"selectedIndex":[32]}],[0,"sparkle-quiz-feedback",{"question":[16]}],[0,"sparkle-quiz-input",{"question":[16]}],[0,"sparkle-quiz-poll",{"question":[16]}],[0,"sparkle-quiz-select",{"question":[16],"allowMultiple":[4,"allow-multiple"],"values":[32]}]]],["p-8a41b502",[[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["p-3daf2915",[[0,"sparkle-course-root",{"isMenuToggled":[32],"tocData":[32]},[[0,"userDidLogIn","useDidLogin"]]],[0,"sparkle-login",{"history":[16],"notsignin":[32],"username":[32],"password":[32],"rememberMe":[32],"submitted":[32]}],[0,"sparkle-user-enrollment",{"enrollmentFormControls":[32],"enrollmentFormSubmitted":[32]}],[0,"sparkle-mood",{"history":[16],"loading":[32],"feeling":[32],"intensity":[32],"location":[32],"public":[32],"submitted":[32],"currentStep":[32]}],[0,"sparkle-signup",{"history":[16],"validationErrors":[32],"formControls":[32],"submitted":[32]}],[0,"sparkle-user-profile",{"profileFormControls":[32],"profileFormSubmitted":[32]}],[0,"sparkle-forgot-password",{"history":[16],"validationErrors":[32],"formControls":[32],"submitted":[32]}],[0,"sparkle-goals"],[0,"sparkle-health",{"history":[16],"uploadedImageUrl":[32],"heartRate":[32],"public":[32],"submitted":[32]}],[0,"sparkle-gww"],[0,"sparkle-reset-password",{"history":[16],"validationErrors":[32],"formControls":[32],"submitted":[32]}],[0,"sparkle-facilitator-page",{"path":[1],"notesPath":[1,"notes-path"],"badFetch":[32],"badFetchLessonNotes":[32],"isLesson":[32],"notesPage":[32],"lessonNotesPage":[32],"page":[32],"onlineStudents":[32],"activetab":[32]}],[4,"sparkle-header",{"authUser":[8,"auth-user"],"hideClassRoomToggle":[4,"hide-class-room-toggle"],"courseName":[1,"course-name"],"imageUrl":[1,"image-url"],"toggleClickFn":[16],"signoutClickFn":[16],"classRoomMode":[32],"hidden":[32]},[[9,"scroll","handleScroll"]]],[0,"sparkle-menu",{"toggleClickFn":[16],"toc":[16],"config":[16]}],[4,"sparkle-facilitator-header",{"courseName":[1,"course-name"],"toggleStudentClickFn":[16],"hidden":[32]},[[9,"scroll","handleScroll"]]],[4,"sparkle-page",{"history":[16],"path":[1],"presentation":[4],"badFetch":[32],"page":[32],"isLesson":[32]}],[4,"sparkle-root",{"config":[16]}],[0,"sparkle-unauthorized"],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sparkle-gww-item",{"post":[16],"onPostComment":[16],"loading":[4],"comment":[32]},[[16,"commentPosted","clearCommentField"]]],[0,"sparkle-goal-item",{"goal":[16],"onEditGoal":[16]}],[0,"sparkle-page-footer",{"page":[16]}],[0,"sparkle-nav",{"toc":[16],"config":[16],"selectedParent":[1040],"moduleURLName":[32],"sessionURLName":[32]},[[4,"pageDidLoad","pageDidLoadHandler"]]],[1,"ion-grid",{"fixed":[4]}],[4,"sparkle-cards"],[0,"sparkle-export-lessons",{"tocData":[32],"moduleContent":[32],"moduleName":[32],"page":[32]}],[0,"sparkle-facilitator-dashboard",{"tocData":[32],"selectedModule":[32],"selectedSession":[32],"selectedPage":[32],"showAllModules":[32]}],[0,"sparkle-facilitator-notes"],[0,"sparkle-online-students",{"path":[1],"onlineStudents":[32]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}],[4,"sparkle-card",{"href":[1],"header":[1],"icon":[1],"hoverIcon":[1,"hover-icon"],"iconset":[1],"ionicon":[1],"img":[1],"size":[1],"activeIndex":[32]}],[4,"sparkle-button",{"href":[1],"round":[516],"primary":[516]}],[0,"sparkle-pagination",{"page":[16]}],[4,"header-mobile-collapse",{"darkMode":[4,"dark-mode"],"mobileDropdownActive":[32],"stuck":[32],"queued":[32]},[[16,"pageChanged","deactivate"]]],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-row"],[0,"sparkle-menu-toggle"],[4,"sparkle-dropdown",{"align":[1],"label":[1],"icon":[16],"image":[1],"isOpen":[32],"close":[64],"open":[64],"toggle":[64]},[[8,"click","handleClick"],[0,"keyup","handleKeyup"]]],[0,"sparkle-validation-error",{"errors":[16]}],[0,"sparkle-goal-progress",{"percentage":[1]}],[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}],[1,"ion-text",{"color":[513]}],[33,"ion-avatar"],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]],[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}],[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[33,"ion-note",{"color":[513]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]]]'),e))));
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
import{r as s,h as t,H as i,e}from"./p-ee1e0eb4.js";import{A as o}from"./p-4fba3e4c.js";import{F as n}from"./p-b8d71ff4.js";import{M as a}from"./p-1adc98f6.js";import{T as l}from"./p-7dae0f0e.js";import{S as r}from"./p-8b56f734.js";import"./p-b06e2bef.js";import"./p-2f569553.js";import"./p-ff7a8a71.js";import"./p-871106e0.js";import"./p-add30d46.js";import"./p-d68092b7.js";import"./p-bd90903e.js";import"./p-5d409601.js";const p=class{constructor(t){s(this,t)}componentDidLoad(){this.postText=this.textValue,this.ref&&this.ref.innerText&&(this.assignmentName=this.ref.innerText,console.log(this.assignmentName))}setText(s){this.postText=s}isAuthenticated(){return l.getInstance().isAuthenticated()}async submitPost(){this.postLoading=!0,this.errorMessage="",this.successMessage="";var s=this.el.getElementsByClassName("PostExternalUrl")[0],t=this.el.getElementsByClassName("IsPublic")[0],i={PostText:this.postText,IsPublic:t.checked,ExternalResourceUrl:s.value,MiniAppId:r.MY_GOALS_APP_ID,AssignmentName:this.assignmentName,AssignmentData:"",PostTextJSON:null};if((await n.getInstance().createPost(i)).Succeeded?(this.postLoading=!1,this.successMessage="Posted Successfully.",this.postText="",this.externalResourceUrl="",this.uploadedImage=""):(this.postLoading=!1,this.errorMessage="There is an error while posting to feed."),this.assignmentName){var e={AssignmentData:JSON.stringify({text:i.PostText,url:i.ExternalResourceUrl}),AssignmentName:this.assignmentName};await o.getInstance().createAssignment(e)}}async uploadImage(s){this.uploadImageLoading=!0;var t=s.target.files;let i=await a.getInstance().uploadImage(t);i.Succeeded?(console.log(i),this.uploadImageLoading=!1,this.uploadedImage=i.Data.length>0?i.Data[0].FullImageUrl:"",this.externalResourceUrl=i.Data.length>0?i.Data[0].FullImageUrl:""):(this.uploadImageLoading=!1,this.errorMessage="There is an error while uploading an image.")}selectFile(){this.el.querySelector("#fileInput").click()}renderUserInfo(){let s=l.getInstance().getAuthUserSync();return s&&s.JWToken?t("ion-avatar",{class:"header-avatar",slot:"end"},t("img",s.PhotoUrl?{src:s.PhotoUrl}:{src:"/assets/img/user.png"})):t("ion-button",{slot:"end",href:"/login"},"Login to Post")}render(){const s=this.renderUserInfo();return t(i,null,t("div",{class:"assignment-name",ref:s=>this.ref=s},t("slot",null)),t("ion-card",null,t("ion-item",{class:"header",lines:"full"},s),t("ion-card-content",null,t("form",null,t("ion-list",null,t("ion-item",{class:"padding"},t("ion-textarea",{class:"PostText",required:!0,placeholder:"Post Text",name:"PostText",value:this.postText})),t("ion-item",{class:"padding"},t("ion-input",{class:"PostExternalUrl",required:!0,type:"text",placeholder:"URL",name:"ExternalResourceUrl",value:this.externalResourceUrl})),this.uploadedImage?t("ion-item",{class:"ion-padding",lines:"none"},t("img",{class:"uploaded-image",src:this.uploadedImage})):"",t("ion-item",{lines:"none"},t("input",{type:"file",id:"fileInput",onChange:s=>this.uploadImage(s),style:{display:"none"},accept:"image/*"}),this.uploadImageLoading?t("ion-spinner",{color:"primary"}):"",t("ion-button",{slot:"start",onClick:()=>this.selectFile()},t("ion-icon",{name:"add"}),"Upload Image")),t("div",{class:"public-post-toggle"},t("ion-toggle",{class:"IsPublic",color:"primary",name:"IsPublic"}),t("div",null,"Public Post")),t("div",{class:"post-footer-container"},t("div",{class:"post-footer"},t("div",null,t("div",{class:"error"},this.errorMessage),t("div",{class:"success"},this.successMessage)),t("div",null,this.postLoading?t("ion-spinner",{color:"primary"}):""),t("ion-button",{slot:"end",size:"default",onClick:()=>this.submitPost(),disabled:this.postLoading||!this.isAuthenticated()},"Post"))))))))}get el(){return e(this)}};p.style=":host{display:block}.post-footer-container{display:flex;justify-content:flex-end}.post-footer{display:flex;justify-content:space-between;align-items:center}.error{color:red;margin-right:10px}.success{color:green;margin-right:10px}.uploaded-image{display:block;max-height:140px;width:auto !important}.public-post-toggle{display:flex;justify-content:flex-end;align-items:center}.assignment-name{display:none}";export{p as sparkle_feed_post}
|