PageSourceSearch

https://classmate-vuive.com/assets/HomeV2-577b5fc8.js

js classmate-vuive.com collected 2026-10-08 16:08:35 UTC 11,663 bytes, 1 lines download raw bytes

1import{a as c,j as e,F as J}from"./index-7a84a097.js";import{an as h,j as f,bf as o,B as i,f as K,k as N,F as Q,S as ee,Z as re,r as a,a1 as p,T as d,I as te,M as ie,a0 as ne,bg as ae}from"./vendor-56877fa0.js";import{r as x}from"./createSvgIcon-d4243c27.js";import{L as oe}from"./Layout-50650e7f.js";import"./chart-libs-b4df5823.js";import"./CheckPermissions-afd20e60.js";import"./data-f4081293.js";import"./uploadFileToWordpress-4368437d.js";import"./dbUtils-23702e29.js";import"./vocabTool-22dcac3d.js";import"./purify.es-749c2c05.js";import"./dataLogService-189bf805.js";import"./processOpenAIRequest-45bb506f.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./ComprehensiveInputGenerator-f6afb2f6.js";import"./ToastNotification-3a4328ed.js";import"./x-f4d47a47.js";import"./info-7ea2c597.js";import"./circle-alert-f8a05d05.js";import"./circle-check-0b5deb42.js";import"./FileSaver.min-6ca833d4.js";import"./zap-1e80bbf4.js";import"./loader-circle-ffdb44c4.js";import"./book-open-2a4c65a3.js";import"./lightbulb-8e6fabd1.js";import"./mic-off-c6a33f86.js";import"./mic-ac88b27d.js";import"./send-80b35437.js";import"./printer-c88fc7c5.js";import"./crown-de58961d.js";import"./sparkles-1103ff7b.js";import"./file-text-475b247c.js";import"./speechToTextRequest-fcd7eba8.js";import"./refresh-cw-1e477dcd.js";import"./agentMockData-1dc8c3e2.js";import"./search-ae40e1da.js";import"./check-cba4af81.js";import"./plus-95e565c6.js";import"./message-square-78acdf5f.js";import"./lib-c7e7e01a.js";import"./cn-39d6bbce.js";import"./bundle-mjs-06deff77.js";import"./menu-7e7bb316.js";var z={},se=h;Object.defineProperty(z,"__esModule",{value:!0});var F=z.default=void 0,ce=se(x()),le=f;F=z.default=(0,ce.default)((0,le.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var M={},de=h;Object.defineProperty(M,"__esModule",{value:!0});var H=M.default=void 0,ue=de(x()),me=f;H=M.default=(0,ue.default)((0,me.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var _={},pe=h;Object.defineProperty(_,"__esModule",{value:!0});var P=_.default=void 0,he=pe(x()),fe=f;P=_.default=(0,he.default)((0,fe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var E={},xe=h;Object.defineProperty(E,"__esModule",{value:!0});var W=E.default=void 0,ge=xe(x()),be=f;W=E.default=(0,ge.default)((0,be.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var j={},ve=h;Object.defineProperty(j,"__esModule",{value:!0});var U=j.default=void 0,ye=ve(x()),Se=f;U=j.default=(0,ye.default)((0,Se.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate");const we=o(i)(({theme:r})=>({background:"linear-gradient(135deg, #4776E6 0%, #8E54E9 100%)",minHeight:"100vh",padding:"24px",[r.breakpoints.down("md")]:{padding:"16px"},display:"flex",flexDirection:"column",alignItems:"center",overflowX:"hidden"})),C=o(K)(({theme:r})=>({borderRadius:"16px",boxShadow:"0 8px 16px rgba(0,0,0,0.08)",background:"white",overflow:"hidden",transition:"transform 0.3s ease",width:"100%","&:hover":{transform:"translateY(-4px)"},[r.breakpoints.down("sm")]:{borderRadius:"12px"}})),Ce=o(i)(({theme:r})=>({background:"linear-gradient(135deg, rgba(142, 84, 233, 0.05) 0%, rgba(71, 118, 23
10, 0.05) 100%)",borderRadius:"16px",padding:"16px",marginTop:"24px",minHeight:"300px",width:"100%",[r.breakpoints.down("sm")]:{padding:"12px",minHeight:"250px",borderRadius:"12px"}})),ke=o(i)({display:"flex",justifyContent:"flex-end",marginBottom:"16px"}),Re=o(i)({display:"flex",justifyContent:"flex-start",marginBottom:"16px"}),q=o(i)(({isUser:r,theme:s})=>({maxWidth:"80%",padding:"12px 16px",borderRadius:"16px",backgroundColor:r?"#8E54E9":"white",color:r?"white":"#333",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",border:r?"none":"1px solid #eee",wordBreak:"break-word",[s==null?void 0:s.breakpoints.down("sm")]:{padding:"10px 14px",fontSize:"0.95rem"}})),ze=o(N)(({theme:r})=>({borderRadius:"50%",minWidth:"64px",height:"64px",background:"linear-gradient(135deg, #4776E6 0%, #8E54E9 100%)","&:hover":{background:"linear-gradient(135deg, #3a61c9 0%, #7945c9 100%)"},boxShadow:"0 6px 12px rgba(142, 84, 233, 0.3)",[r.breakpoints.down("sm")]:{minWidth:"56px",height:"56px"}})),k=o(Q)({"& .MuiFormControlLabel-label":{fontSize:"14px",fontWeight:500},marginLeft:0,width:"100%",marginBottom:"8px"}),R=o(ee)(({theme:r})=>({"& .MuiSwitch-switchBase.Mui-checked":{color:"#8E54E9","&:hover":{backgroundColor:"rgba(142, 84, 233, 0.08)"}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#8E54E9"}})),Me=o(re)(({completed:r,theme:s})=>({margin:"4px",backgroundColor:r?"rgba(46, 139, 87, 0.1)":"rgba(229, 231, 235, 0.3)",border:r?"1px solid rgba(46, 139, 87, 0.5)":"1px solid rgba(229, 231, 235, 0.5)","& .MuiChip-icon":{color:r?"#2E8B57":"#9CA3AF"},"& .MuiChip-label":{[s==null?void 0:s.breakpoints.down("sm")]:{fontSize:"0.75rem"}}}));o(i,{shouldForwardProp:r=>r!=="active"&&r!=="height"})(({active:r,height:s,theme:A})=>({width:"4px",height:`${s}px`,background:r?"linear-gradient(180deg, #4776E6 0%, #8E54E9 100%)":"#E5E7EB",borderRadius:"2px",transition:"height 0.05s ease",margin:"0 2px"}));o(i)({display:"flex",alignItems:"center",justifyContent:"center",height:"60px",padding:"10px",marginTop:"16px"});const _e=o(i)({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",borderRadius:"24px",background:"rgba(142, 84, 233, 0.1)",color:"#8E54E9",fontWeight:500,fontSize:"1.1rem",margin:"16px auto",width:"fit-content"}),wr=()=>{const[r,s]=a.useState(!1),[A,Ee]=a.useState([{isUser:!1,message:"Hi there! I'm your language learning assistant. What would you like to practice today?"},{isUser:!0,message:"I want to practice talking about my hobbies."},{isUser:!1,message:"Great choice! What are some of your hobbies?"}]),[V,je]=a.useState([{id:1,text:"Use at least 3 hobby-related vocabulary words",completed:!1},{id:2,text:"Speak for at least 30 seconds",completed:!0},{id:3,text:"Use past tense to describe when you started the hobby",completed:!1},{id:4,text:"Compare two different hobbies",completed:!1}]),[O,B]=a.useState(0),[Ae,I]=a.useState(Array(20).fill(5)),u=a.useRef(null),g=a.useRef(null),[$,y]=a.useState(null),b=a.useRef(null),S=a.useRef(null),v=a.useRef(null),l=a.useRef(null),G=t=>{const n=Math.floor(t/60),m=t%60;return`${n.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")}`},L=()=>{if(!r||!S.current||!l.current)return;S.current.getByteFrequencyData(l.current),Array.from(l.current).reduce((n,m)=>n+m,0)/l.current.length;const t=Array.from({length:20},(n,m)=>{const w=Math.floor(m*(l.current.length/40)),Z=l.current[w];return Math.sqrt(Z/255)*60+3});I(t),g.current=requestAnimationFrame(L)},X=async()=>{try{b.current||(b.current=new(window.AudioContext||window.webkitAudioContext));const t=await navigator.mediaDevices.getUserMedia({audio:!0});v.current=t;const n=b.current.createAnalyser();n.fftSize=128,n.smoothingTimeConstant=.5,b.current.createMediaStreamSource(t).connect(n);const w=new Uint8Array(n.frequencyBinCount);S.current=n,l.current=w,L(),y(null)}catch(t){console.error("Error accessing microphone:",t),y("Could not access microphone. Please grant permission and try again."),s(!1)}},D=()=>{v.current&&(v.current.getTracks().forEach(t=>t.stop()),v.current=null),g.current&&(cancelAnimationFrame(g.current),g.current=null),I(Array(20).fill(5))},Y=async()=>{const t=!r;s(t),t?(B(0),u.current=window.setInterval(()=>{B(n=>n+1)},1e3),await X()):(u.current&&(window.clearInterval(u.current),u.current=null),D())};a.useEffect(()=>()=>{u.current&&window.clearInterval(u.current),D()},[]);const T=()=>{y(null)};return c(oe,{hideTextLookup:!0,children:[e(we,{children:e(i,{width:"100%",maxWidth:"960px",children:c(p,{container:!0,spacing:{xs:2,md:3},children:[e(p,{item:!0,xs:12,md:8,children:e(C,{children:c(i,{p:{xs:2,md:3},children:[c(i,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e(d,{variant:"h5",fontWeight:"600",color:"#333",sx:{fontSize:{xs:"1.2rem",md:"1.5rem"}},children:"Speaking Practice: Talking About Hobbies"}),e(te,{size:"small",children:e(W,{})})]}),e(d,{variant:"body1",color:"#555",mb:2,sx:{fontSize:{xs:"0.9rem",md:"1rem"}},children:"Practice talking about your favorite activities and interests. Focus on using descriptive vocabulary and proper tenses."}),e(Ce,{children:A.map((t,n)=>t.isUser?e(ke,{children:e(q,{isUser:!0,children:e(d,{variant:"body1",sx:{fontSize:{xs:"0.9rem",md:"1rem"}},children:t.message})})},n):c(Re,{children:[e(ie,{sx:{mr:1,bgcolor:"#4776E6",width:{xs:28,md:40},height:{xs:28,md:40}},children:e(U,{fontSize:"small"})}),e(q,{isUser:!1,children:e(d,{variant:"body1",sx:{fontSize:{xs:"0.9rem",md:"1rem"}},children:t.message})})]},n))}),e(i,{display:"flex",alignItems:"center",justifyContent:"center",mt:3,children:e(ze,{variant:"contained",onClick:Y,sx:{animation:r?"pulse 1.5s infinite":"none","@keyframes pulse":{"0%":{boxShadow:"0 0 0 0 rgba(142, 84, 233, 0.7)"},"70%":{boxShadow:"0 0 0 15px rgba(142, 84, 233, 0)"},"100%":{boxShadow:"0 0 0 0 rgba(142, 84, 233, 0)"}}},children:r?e(H,{fontSize:"medium",sx:{fontSize:{xs:"1.25rem",md:"1.75rem"}}}):e(F,{fontSize:"medium",sx:{fontSize:{xs:"1.25rem",md:"1.75rem"}}})})}),r&&e(J,{children:e(_e,{children:G(O)})}),e(i,{mt:2,display:"flex",justifyContent:"center",children:e(d,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.8rem",md:"0.875rem"}},children:r?"Speak now... your voice is being analyzed":"Click to start speaking"})})]})})}),e(p,{item:!0,xs:12,md:4,children:c(p,{container:!0,spacing:{xs:2,md:3},direction:"column",children:[e(p,{item:!0,children:e(C,{children:c(i,{p:{xs:2,md:3},children:[e(d,{variant:"h6",fontWeight:"600",mb:2,sx:{fontSize:{xs:"1rem",md:"1.25rem"}},children:"Practice Requirements"}),e(i,{display:"flex",flexWrap:"wrap",children:V.map(t=>e(Me,{completed:t.completed,icon:t.completed?e(P,{fontSize:"small"}):void 0,label:t.text,size:"small"},t.id))})]})})}),e(p,{item:!0,children:e(C,{children:c(i,{p:{xs:2,md:3},children:[e(d,{variant:"h6",fontWeight:"600",mb:2,sx:{fontSize:{xs:"1rem",md:"1.25rem"}},children:"Settings"}),c(i,{display:"flex",flexDirection:"column",children:[e(k,{control:e(R,{defaultChecked:!0,size:"small"}),label:"Conversation Mode"}),e(k,{control:e(R,{size:"small"}),label:"Pronunciation Assessment"}),e(k,{control:e(R,{defaultChecked:!0,size:"small"}),label:"Auto-transcribe"})]})]})})})]})})]})})}),e(ae,{open:!!$,autoHideDuration:6e3,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:e(ne,{onClose:T,severity:"error",sx:{width:"100%"},children:$})})]})};export{wr as default};

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.