1"use strict";(self.webpackChunkaverpoint_react_app=self.webpackChunkaverpoint_react_app||[]).push([[6659],{44115:(e,i,o)=>{o.r(i),o.d(i,{default:()=>d});var t=o(65043),s=o(95789),n=o(60958),l=o(11152),c=o(80456),a=o(70579);window.getInviteDetails=e=>(console.log("Mock getInviteDetails called with inviteId:",e),Promise.resolve({id:e,email:"[email protected]",profile:{firstName:"John"},school:{name:"Springfield High School"},userType:"teacher",course:{id:"course_001",name:"English Literature 101"},sectionCourse:null,inviter:{firstName:"Sarah",lastName:"Principal"}}));const r=[{id:"school_admin_invited_after_meeting",label:"School admin invited after meeting",description:"School admin receives an invite after a meeting"},{id:"school_admin_invited_by_school_admin",label:"School admin invited by school admin",description:"School admin receives an invite from another admin"},{id:"teacher_invited_after_meeting_with_course",label:"Teacher invited after meeting with course",description:"Teacher receives an invite with course"},{id:"teacher_invited_after_meeting_no_course",label:"Teacher invited after meeting without course",description:"Teacher receives an invite without course"},{id:"teacher_invited_by_school_admin_with_course",label:"Teacher invited by school admin with course",description:"Teacher receives an invite from school admin with course"},{id:"teacher_invited_by_school_admin_no_course",label:"Teacher invited by school admin without course",description:"Teacher receives an invite from school admin without course"},{id:"co_teacher_invited_by_teacher",label:"Co-teacher invited by teacher",description:"Co-teacher receives an invite from teacher"},{id:"section_lead_invited_by_head_teacher",label:"Section lead invited by head teacher",description:"Section lead receives an invite from head teacher"},{id:"student_invited_by_teacher",label:"Student invited by teacher",description:"Student receives an invite from teacher"}];const d=function(){const[e,i]=(0,t.useState)([]),[o,d]=(0,t.useState)(!0),[h,m]=(0,t.useState)(null),[u,p]=(0,t.useState)(!1),[v,g]=(0,t.useState)(!1),[f,_]=(0,t.useState)({firstName:"John",lastName:"Doe",subjects:"English",classes:"Class A",schoolMediaLiteracyApproach:"Integrated",subjectsForAverPointIntegration:"English",placesOfInterest:[],schoolId:"school_001",schoolName:"Springfield High School",schoolType:"public_school",schoolCity:"Springfield",schoolState:"Illinois",schoolCountry:"United States",schoolDistrict:"Springfield District"});function w(e){return e.startsWith("school_admin")?"schoolAdmin":e.startsWith("teacher")||e.startsWith("co_teacher")||e.startsWith("section_lead")?"teacher":e.startsWith("student")?"student":"admin"}(0,t.useEffect)((()=>{!async function(){try{d(!0),i(r)}catch(e){console.error("Error loading flows:",e)}finally{d(!1)}}()}),[]);const b={model:f,user:{profile:{firstName:"John",lastName:"Doe",email:"[email protected]",roles:[{type:"admin",isVerified:!0}]},schools:[{id:"school_001",name:"Springfield High School",city:"Springfield",state:"Illinois",country:"United States",type:"public_school",district:"Springfield District"}],courses:h&&(h.id.includes("with_course")||h.id.startsWith("section_lead"))?[{id:"course_001",name:"English Literature 101",description:"Introduction to English Literature"},{id:"course_002",name:"American History",description:"A comprehensive study of American history"},{id:"course_003",name:"World Cultures",description:"Exploring world cultures and societies"}]:[],username:"johndoe"},role:h?w(h.id):"admin",onUpdate:e=>{console.log("onUpdate called with:",e),_(e)},onValidate:e=>{console.log("onValidate called with:",e)},onShowContinue:e=>{console.log("onShowContinue called with:",e)},onContinue:()=>{console.log("onContinue called")},isUserVerified:!0,onComplete:()=>{console.log("onComplete called"),p(!0)},onGetUserCourses:async()=>(console.log("onGetUserCourses called"),Promise.resolve()),onOpenModal:(e,i)=>{console.log("onOpenModal called with:",{modalName:e,config:i})},onNavigate:e=>{console.log("onNavigate called with:",e)}};if(u&&h)return(0,a.jsx)("div",{className:"welcome-flows",children:(0,a.jsxs)("div",{className:"wf-completion",children:[(0,a.jsx)("div",{className:"wf-completion-icon",children:"\u2713"}),(0,a.jsx)("h2",{className:"wf-completion-title",children:"Flow Complete!"}),(0,a.jsxs)("p",{className:"wf-completion-message",children:[h.label," flow has been completed successfully."]}),(0,a.jsx)("button",{type:"button",className:"btn btn-primary",onClick:()=>{m(null),p(!1),g(!1)},children:"Back to flows"})]})});if(h&&!v){const e={location:{pathname:"/auth/signUp",search:"",state:{}},dispatch:()=>{},actions:{generateUniqueId:()=>(console.log("generateUniqueId called"),Promise.resolve("unique_id_12345")),getInviteDetails:e=>{console.log("getInviteDetails called with:",e);const i=h.id.includes("with_course"),o=h.id.includes("co_teacher"),t=h.id.includes("section_lead");let s=null,n=null;return(i||o||t)&&(s={id:"course_001",name:"English Literature 101"}),t&&(n={id:"section_001",name:"Period 1 - Advanced Readers"}),Promise.resolve({id:e,email:"[email protected]",profile:{firstName:"John"},school:{name:"Springfield High School"},userType:w(h.id),course:s,sectionCourse:n,inviter:{firstName:"Sarah",lastName:"Principal"}})},checkEmail:e=>(console.log("checkEmail called with:",e),console.log("Email verified, proceeding to flow"),g(!0),new Promise((()=>{}))),logSignupEvent:e=>{console.log("logSignupEvent called with:",e)},cognitoSignup:e=>(console.log("cognitoSignup called with:",e),Promise.resolve()),cognitoLogin:e=>(console.log("cognitoLogin called with:",e),Promise.resolve()),resendVerificationCode:e=>(console.log("resendVerificationCode called for:",e),Promise.resolve()),requestAccess:e=>(console.log("requestAccess called with:",e),Promise.resolve()),manualLogout:e=>{console.log("manualLogout called for pathname:",e)}},history:{push:e=>{console.log("Mock navigation to:",e),g(!0)}},signUpRole:w(h.id),signUpEmail:"[email protected]",inviteId:"invite_001",inviteEmail:"[email protected]",isClassroomSignup:!1,client:null,preventFocusOnStart:!1,checkValidation:!1,view:"component"};return(0,a.jsxs)("div",{className:"welcome-flows",children:[(0,a.jsx)("div",{className:"wf-header-back",children:(0,a.jsx)("button",{type:"button",className:"btn btn-link",onClick:()=>{m(null),g(!1)},children:"\u2190 Back to flows"})}),(0,a.jsx)("div",{className:"wf-signup-section",children:(0,a.jsx)(c.A,{...e})})]})}if(h){const e=(S=h.id).startsWith("school_admin")?"school_admin":S.startsWith("teacher")||S.startsWith("co_teacher")||S.startsWith("section_lead")?"teacher":S.startsWith("student")?"student":null;return(0,a.jsxs)("div",{className:"welcome-flows",children:[(0,a.jsx)("div",{className:"wf-header-back",children:(0,a.jsx)("button",{type:"button",className:"btn btn-link",onClick:()=>m(null),children:"\u2190 Back to flows"})}),(0,a.jsxs)("div",{className:"wf-preview",children:["school_admin"===e&&(0,a.jsx)(s.A,{...b}),"teacher"===e&&(0,a.jsx)(n.A,{...b}),"student"===e&&(0,a.jsx)(l.A,{...b})]})]})}var S;return(0,a.jsxs)("div",{className:"welcome-flows",children:[(0,a.jsxs)("div",{className:"wf-header",children:[(0,a.jsx)("h2",{children:"Welcome Flows"}),(0,a.jsx)("p",{className:"wf-subtitle",children:"Select a flow template for user onboarding"})]}),o?(0,a.jsx)("div",{className:"wf-loading",children:"Loading flows..."}):(0,a.jsx)("div",{className:"wf-list",children:e.map((e=>(0,a.jsx)("button",{type:"button",className:"wf-card",onClick:()=>{m(e),g(!1)},children:(0,a.jsxs)("div",{className:"wf-card-content",children:[(0,a.jsx)("h3",{className:"wf-card-title",children:e.label}),(0,a.jsx)("p",{className:"wf-card-description",children:e.description})]})},e.id)))})]})}}}]); 2//# sourceMappingURL=6659.083aac48.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.