PageSourceSearch

https://wext.ai/_next/static/chunks/pages/vocabulary-activity-generator/gap-fill-a1d281ceedbb22f4.js

js wext.ai collected 2026-10-05 13:22:45 UTC 13,498 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7397],{99259:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/vocabulary-activity-generator/gap-fill",function(){return i(84188)}])},84188:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return R}});var r=i(85893),n=i(75248),o=i(67294),l=i(3679),a=i(31504),s=i(58896),d=i(69957),c=i(68029),u=i(30980),A=i(90092),h=i(73636),g=i(86058),x=i(11631),m=i(12519),p=i(73244),f=i(56406),b=i(73577),y=i(61121),C=i(73729),w=i(80677),v=i(59876);let _=[{category:"Descriptive",info:"Create questions where learners identify the missing word based on its description at the end of the sentence.",example:"Farmers rely on _____ to supply water to crops. (irrigation)"},{category:"Functional",info:"Create questions where learners choose the missing word based on its function or purpose.",example:"A _____ measures temperature. (thermometer)"},{category:"Synonym",info:"Create questions where learners select the word closest in meaning to the missing word in the sentence.",example:"The road was not straight but very _____. (winding)"},{category:"Antonym",info:"Create questions where learners identify the missing word as the opposite in meaning to the given context.",example:"Unlike his outgoing brother, he was _____. (shy)"},{category:"Cause and Effect",info:"Create questions where learners identify the missing word that represents either a cause or an effect.",example:"Due to extreme heat, the region experienced ______. (drought)"},{category:"Contextual",info:"Create questions where learners infer the missing word using clues from the sentence’s context.",example:"The detective carefully examined the ______ of the crime. (scene)"},{category:"Example",info:"Create questions where the missing word is defined through examples provided in the sentence.",example:"Apples, bananas, and grapes are in the ______ section. (produce)"},{category:"Inference",info:"Create questions where learners deduce the missing word using indirect clues rather than direct definitions.",example:"His vague response increased public ______. (suspicion)"}],j=["None","Contextual","First Letter","Word in Brackets"],E=()=>{let e=(0,d.HQ)(),t=(0,s.CGy)(e=>e.languageLevel),i=(0,s.CGy)(e=>e.vocabularyActivity),n=(0,s.TL5)(),[E,S]=(0,o.useState)([]),[R,q]=(0,o.useState)({additionalRules:!1}),[W,T]=(0,o.useState)({oxfordWordList:!1}),B=["A1","A2","B1","B2","C1","C2"];(0,o.useEffect)(()=>{n((0,s.LIF)(e))},[]);let L=e=>{q(t=>({...t,[e]:!t[e]}))},O=e=>{T(t=>({...t,[e]:!t[e]}))},V=t=>{let i=B.includes(t.level),r={...t,questionFocus:E,oxfordWordList:!!i&&W.oxfordWordList,additionalRules:R.additionalRules?void 0:t.additionalRules};n((0,s.S$y)({axios:e,body:r})),n(s.cog.updateData({gapFill:r}))},F=[{type:l.C.TEXT,id:"title",label:"title",placeholder:"Give this activity a title"},{id:"numberOfQuestions",label:"number of questions",placeholder:"E.g: 3",type:l.C.NUMBER,style:{height:"50px"}},{type:l.C.SELECT,id:"level",label:"level",placeholder:"Select level",options:t.data.map(e=>({label:e.value,value:e.value}))},{id:"ageGroup",label:"Age Group",type:l.C.SELECT,placeholder:"Select age group",options:C.xW.map(e=>({value:e,label:e}))},{type:l.C.CUSTOM,id:"questionFocus",label:"question focus",render:e=>{var t,i;let{field:n,colors:o}=e;return(0,r.jsxs)(c.x,{my:4,children:[(0,r.jsx)(u.l,{display:"flex",ms:"10px",htmlFor:n.id,fontSize:"md",color:o.textColor,letterSpacing:"0px",fontWeight:"bold",_hover:{cursor:"pointer"},textTransform:"capitalize",children:n.label}),(0,r.jsx)(w.V,{placeholder:"Select a question focus",options:_.map(e=>{let{category:t}=e;return{value:t,label:t}}),onChange:e=>S(e?[e.value]:[])}),E.length>0&&(0,r.jsxs)(c.x,{mt:"15px",p:"12px",border:"1px solid lightgray",borderRadius:"8px",backgroundColor:"#F9FAFB",children:[(0,r.jsxs)(c.x,{display:"flex",alignItems:"center",gap:2,mb:2,children:[(0,r.jsx)(c.x,{display:"flex",alignItems:"center",justifyContent:"center",color:"blue",w:"20px",h:"20px",children:(0,r.jsx)(y.Fs0,{size:15})}),(0,r.jsxs)(c.x,{children:[(0,r.jsxs)(A.x,{fontWeight:"bold",fontSize:"sm",color:"#3730A3",children:["Focus: ",E[0]]}),(0,r.jsx)(A.x,{fontSize:"sm",color:"gray.600",children:(null===(t=_.find(e=>e.category===E[0]))||void 0===t?void 0:t.info)||""})]})]}),(0,r.jsxs)(c.x,{mt:"10px",p:"12px",border:"1px solid lightgray",borderRadius:"8px",backgroundColor:"white",children:[(0,r.jsxs)(c.x,{display:"flex",alignItems:"center",gap:2,mb:1,children:[(0,r.jsx)(y.wRn,{color:"blue",size:13}),(0,r.jsx)(A.x,{fontWeight:"bold",fontSize:"xs",color:"#3730A3",children:"EXAMPLE:"})]}),(0,r.jsx)(A.x,{fontStyle:"italic",color:"gray.600",children:(null===(i=_.find(e=>e.category===E[0]))||void 0===i?void 0:i.example)||""})]})]})]})}},{id:"questionClue",label:"Question Clue",type:l.C.SELECT,placeholder:"Select question clue",options:j.map(e=>({value:e,label:e}))},{type:l.C.CUSTOM,id:"oxfordWordList",label:"Use Oxford Wordlist ",render:e=>{let{field:t,formik:i,colors:n}=e,o=i.values.level,l=B.includes(o),a=W.oxfordWordList;return(0,r.jsx)(c.x,{my:4,children:l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.l,{display:"flex",ms:"10px",htmlFor:t.i
1d,fontSize:"md",color:n.textColor,letterSpacing:"0px",fontWeight:"bold",_hover:{cursor:"pointer"},textTransform:"capitalize",children:(0,r.jsxs)(h.U,{align:"start",spacing:2,children:[(0,r.jsx)(g.X,{id:t.id,textTransform:"capitalize",fontWeight:"bold",mb:2,mt:"5px",onChange:()=>O(t.id),ml:2,size:"md",isChecked:a,children:"Use Oxford Wordlist"}),a&&(0,r.jsx)(x.u,{label:"The activity will be generated using random words selected from the Oxford 3000 word list according to the chosen CEFR level.",hasArrow:!0,placement:"right",openDelay:150,children:(0,r.jsx)(m.h,{"aria-label":"Oxford Wordlist info",icon:(0,r.jsx)(v.hQ,{}),size:"sm",variant:"ghost",mt:"2px",tabIndex:0})})]})}),i.errors[t.id]&&(0,r.jsx)(b.J,{message:i.errors[t.id]})]})})}},{type:l.C.CUSTOM,id:"additionalRules",label:"Additional Rules",placeholder:"You can customize your activity by adding group of words, choosing a topic, and setting a context for more personalized vocabulary activities.",render:e=>{let{field:t,formik:i,colors:n}=e;return(0,r.jsxs)(c.x,{my:4,children:[(0,r.jsxs)(u.l,{display:"flex",ms:"10px",htmlFor:t.i
1d,fontSize:"md",color:n.textColor,letterSpacing:"0px",fontWeight:"bold",_hover:{cursor:"pointer"},textTransform:"capitalize",children:[t.label,(0,r.jsx)(g.X,{fontWeight:"medium",textTransform:"capitalize",mb:4,onChange:()=>L(t.id),ml:2,size:"md",children:"auto generate"})]}),!R[t.id]&&(0,r.jsx)(p.g,{id:t.id,color:n.textColor,border:"1px solid",borderRadius:"10px",borderColor:n.borderColor,fontWeight:"500",placeholder:t.placeholder,_placeholder:{color:n.placeholderColor},_focus:{borderColor:"none"},mb:"14px",onChange:i.handleChange,value:i.values[t.id]}),i.errors[t.id]&&(0,r.jsx)(b.J,{message:i.errors[t.id]})]})}}];return(0,r.jsxs)(c.x,{children:[(0,r.jsx)(l.I,{fields:F,submitLabel:"generate",initialValues:a.J.gapFillForm.initialValue,validationSchema:a.J.gapFillForm.schema,onSubmit:V,isLoading:i.isGenerating}),i.error&&(0,r.jsx)(f.B,{message:i.error.message,mt:"24px"})]})};var S=i(6743);function R(){let e=(0,s.CGy)(e=>e.vocabularyActivity),t=(0,s.TL5)();return(0,o.useEffect)(()=>(t(s.vL0.reset()),t(s.cog.reset()),()=>{t(s.vL0.reset()),t(s.cog.reset())}),[]),(0,r.jsx)(n.c,{left:(0,r.jsx)(E,{}),right:(0,r.jsx)(S.v,{type:"gap fill"}),isRightLoading:e.isLoading,isGenerating:e.isGenerating,maxLoadingDuration:20,rightStyle:{w:"100%"}})}},75248:function(e,t,i){"use strict";i.d(t,{c:function(){return A}});var r=i(85893),n=i(88329),o=i(68029),l=i(84468),a=i(67294),s=i(94605),d=i(51160),c=i(41189),u=i(58896);let A=e=>{let{left:t,right:i,isRightLoading:A,isRightVisible:h,rightStyle:g,isGenerating:x,maxLoadingDuration:m}=e,p=(0,u.TL5)();return(0,a.useEffect)(()=>{p(c.P.toggleCollapsedSidebar(!0))},[p]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.k,{w:"100%",direction:"column",position:"relative",mt:{base:"70px",md:"0px",xl:"0px"},children:(0,r.jsxs)(n.k,{mx:"auto",w:{base:"100%",md:"100%",xl:"100%"},maxW:"100%",justify:"center",direction:{base:"column",md:"row"},children:[(0,r.jsx)(l.Z,{minW:{base:"100%",md:"40%",xl:"476px"},maxW:{base:"100%",md:"40%",xl:"476px"},h:"min-content",me:{base:"0px",md:"20px"},mb:{base:"20px",md:"0px"},children:t}),A?(0,r.jsx)(d.v,{}):(0,r.jsx)(l.Z,{maxW:"100%",alignItems:"center",...!h&&{bg:"transparent"},children:(0,r.jsx)(o.x,{maxW:"1000px",width:"100%",...g&&g,children:i})})]})}),x&&(0,r.jsx)(s.b,{maxDuration:m})]})}},20985:function(e,t,i){"use strict";i.d(t,{l:function(){return g}});var r=i(85893),n=i(69957),o=i(67294),l=i(31046),a=i(38488),s=i(3712),d=i(88329),c=i(12519),u=i(37945),A=i(52091),h=i(37094);let g=e=>{let{samples:t}=e,[i,g]=(0,o.useState)(!1),{array:x,current:m,next:p,isLastItem:f,reset:b}=(0,n.fr)(t),y=(0,l.ff)("navy","white"),C=(0,l.ff)("navy.700","white"),w=(0,l.ff)("white","navy.700"),v=()=>{g(!1),b()};return i?(0,r.jsxs)(s.K,{children:[(0,r.jsxs)(d.k,{justifyContent:"flex-end",children:[x.length>1&&(0,r.jsx)(c.h,{icon:(0,r.jsx)(A.Wgy,{size:30,color:y}),w:0,onClick:p,"aria-label":""}),f&&(0,r.jsx)(c.h,{icon:(0,r.jsx)(h.mpJ,{size:40,color:y}),w:0,onClick:v,"aria-label":""})]}),(0,r.jsx)(u.E,{loading:"lazy",src:null==m?void 0:m.src,alt:""})]}):(0,r.jsx)(a.z,{bg:C,color:w,onClick:()=>g(!0),textTransform:"capitalize",children:"show sample output"})}},6743:function(e,t,i){"use strict";i.d(t,{v:function(){return c}});var r=i(85893),n=i(58896);i(67294);var o=i(88329),l=i(56406),a=i(20985),s=i(92626);let d={"multiple choice":[{src:"/_next/static/media/sample-mutiple-choice.50189655.png",height:578,width:847,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEXy8vLr6+xSJ2f5AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAFUlEQVR4nGNgBAMGEIQCBAPGgokAAAGxAA1DZDBUAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5}],cloze:[{src:"/_next/static/media/sample-cloze.f87a1d9e.png",height:629,width:850,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAFVBMVEXh4uPv7+/09PTf4OHx8fLq6ur9/v6iLMsjAAAABHRSTlP7kpL7dXtYrgAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAChJREFUeJwdiYEJADAMwrTN/P/kYYWEgJqx7bESgES7e+h1wEVPVY0PELQAr29biRkAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6}],"gap fill":[{src:"/_next/static/media/sample-gap-fill.c9cc7e5d.png",height:452,width:851,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEXt7e7m5ufz8/OD1g22AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHUlEQVR4nGNgAAMmBgYGRkZGRgYmJgiDESQEZQAAAX8AGbg3oboAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}],matching:[{src:"/_next/static/media/sample-matching.17a44f8a.png",height:578,width:846,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAACVBMVEXw8fH19vXp6eq+nmzNAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHklEQVR4nGXGsQ0AMBDEIHz7D/1KnQqwbTyZRP2hAwMzACBjhbbIAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5}],"word matching":[{src:"/_next/static/media/sample-word-matching.c0fe3726.png",height:600,width:855,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAACVBMVEXv8PDn6Oj29vZaplnqAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIUlEQVR4nDWIsQ0AAAyChP+Pboypi0DyA3rOjC1NA3iIHgKMACFVr7q7AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6}]},c=e=>{let{type:t}=e,i=(0,n.CGy)(e=>e.vocabularyActivity);return i.error?(0,r.jsx)(l.B,{message:i.error.message}):i.data?(0,r.jsx)(s.O,{activity:i.data}):(0,r.jsx)(o.k,{justifyContent:"center",children:(0,r.jsx)(a.l,{samples:d[t]})})}},31504:function(e,t,i){"use strict";i.d(t,{J:function(){return s}});var r=i(16310);let n={schema:{title:r.Z_().required("Title is required"),numberOfQuestions:r.Rx().min(3,e=>{let{min:t}=e;return"Number of questions should be greater or equal to ".concat(t)}).max(20,e=>{let{max:t}=e;return"Number of questions should be less or equal to ".concat(t)}).required("Number of questions is required"),level:r.Z_().required("Level is required"),ageGroup:r.Z_().oneOf(["Secondary School 10-14","High School 15-18","Adults 19-35"]).required("Age group is required"),additionalRules:r.Z_()},initialValue:{title:"",numberOfQuestions:"",level:"",ageGroup:"",additionalRules:""}}
1,o={schema:r.Ry().shape({...n.schema}),initialValue:{...n.initialValue}},l={schema:r.Ry().shape({...n.schema,title:r.Z_().notRequired(),numberOfWords:r.Rx().typeError("Please enter a valid number").integer("Target Number of words must be an integer").min(0,e=>{let{min:t}=e;return"Number of words should be greater or equal to ".concat(t)}).max(1e3,e=>{let{max:t}=e;return"Number of words should be less or equal to ".concat(t)}).required("Number of words is required")}),initialValue:{...n.initialValue,title:void 0,numberOfWords:""}},a={schema:r.Ry().shape({...n.schema,questionClue:r.Z_().required("Question clue is required")}),initialValue:{...n.initialValue,questionClue:""}},s={form:o,clozeForm:l,gapFillForm:a}},73729:function(e,t,i){"use strict";i.d(t,{FN:function(){return n},Kj:function(){return o},SL:function(){return r},Td:function(){return s},uZ:function(){return a},xW:function(){return l}});let r=["grammar","listening","reading","speaking","vocabulary","writing"],n=["A1","A2","B1","B2","C1","C2","Mastery+"],o="Primary",l=["Secondary School 10-14","High School 15-18","Adults 19-35"],a=["Quiz","Project","Presentation","Other"],s=["Technical","Soft Skill","Other"]}},function(e){e.O(0,[7665,3768,7909,5633,4172,630,4817,7788,5675,9321,2506,3271,8186,2027,2088,449,1473,2225,2626,9774,2888,179],function(){return e(e.s=99259)}),_N_E=e.O()}]);

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.