PageSourceSearch

https://app.memrise.com/_next/static/chunks/7063-d9892bea3bd67261.js

js memrise.com collected 2026-09-24 08:29:36 UTC 51,183 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7063],{4440:(e,t,r)=>{r.d(t,{b:()=>_});var n=r(42969);r(14232);var i=r(5720),o=r(99500),a=r(12303),s=r(48278),c=r(66978),l=r(61542),d=r(2553),u=r(5646),h=u.Ay.div.withConfig({componentId:"sc-mllg1j-0"})(function(e){var t=e.theme;return(0,u.AH)(["background-color:",";border:"," solid ",";border-radius:",";padding:",";position:relative;width:100%;overflow:hidden;display:flex;align-items:stretch;margin:"," 0;svg{position:absolute;right:",";width:70%;color:",";opacity:0.35;}"],t.co.primary95,t.bo.mediumWidth,t.co.primary50,t.bo.mediumLarge,t.sz.s4,t.sz.s2,t.sz.s4,t.co.primary60)}),f=u.Ay.div.withConfig({componentId:"sc-mllg1j-1"})(function(e){var t=e.theme;return(0,u.AH)(["display:flex;flex-direction:column;flex:1;z-index:1;gap:",";align-items:flex-start;"],t.sz.s3)}),p=u.Ay.div.withConfig({componentId:"sc-mllg1j-2"})(function(e){var t=e.theme;return(0,u.AH)(["",";color:",";"],t.typography.heading.desktop.xxs,t.co.neutral10)}),g=u.Ay.div.withConfig({componentId:"sc-mllg1j-3"})(function(e){var t=e.theme;return(0,u.AH)(["",";color:",";"],t.typography.paragraph.m,t.co.neutral20)}),m=u.Ay.div.withConfig({componentId:"sc-mllg1j-4"})(function(e){var t=e.theme;return(0,u.AH)(["min-width:",";svg{width:",";height:",";color:",";opacity:1;}"],t.sz.s16,t.sz.s12,t.sz.s12,t.co.neutral0)}),w=r(37876);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y=function(e){return(0,w.jsx)("svg",v(v({},e),{},{children:(0,w.jsx)("path",{fill:"currentColor",d:"M26.411 16.485C3.823 27.291-6.069 53.02 4.128 74.45c10.345 21.74 35.887 30.375 58.127 19.647 22.72-10.96 32.824-37.377 22.554-58.967C74.59 13.617 49.289 5.541 26.41 16.485M160.004 153.014c-12.056 5.808-17.335 19.638-11.893 31.156 5.521 11.685 19.154 16.327 31.025 10.56 12.127-5.891 17.52-20.09 12.038-31.694-5.454-11.563-18.959-15.904-31.17-10.022M154.38 2.803c-9.562 4.592-13.749 15.527-9.433 24.635 4.379 9.24 15.192 12.91 24.606 8.35 9.618-4.658 13.895-15.886 9.547-25.061-4.325-9.143-15.035-12.575-24.72-7.924M25.942 175.868c-9.562 4.593-13.75 15.528-9.433 24.635 4.379 9.24 15.191 12.91 24.606 8.35 9.618-4.658 13.895-15.885 9.547-25.061-4.325-9.142-15.036-12.575-24.72-7.924M99.452 112.129c-6.79 3.242-9.764 10.961-6.7 17.39 3.11 6.522 10.789 9.112 17.474 5.894 6.831-3.288 9.868-11.214 6.781-17.69-3.072-6.454-10.678-8.877-17.556-5.594M202.692 63.387c-2.91 1.35-4.184 4.566-2.87 7.245 1.332 2.718 4.623 3.797 7.488 2.456 2.927-1.37 4.229-4.672 2.906-7.371-1.316-2.689-4.576-3.699-7.524-2.33"})}))};y.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 211 211"};var x=(0,i.YK)({title:{id:"arabic_script_home_card_title",defaultMessage:"Arabic Script"},description:{id:"arabic_script_home_card_description",defaultMessage:"Everything you need to learn the Arabic script."},cta:{id:"arabic_script_home_card_cta",defaultMessage:"Learn Now"}}),_=function(){var e=(0,i.tz)();return(0,o.nd)()?(0,w.jsxs)(h,{"data-testid":"arabic-script-home-card",children:[(0,w.jsx)(c.g,{Svg:y}),(0,w.jsxs)(f,{children:[(0,w.jsx)(p,{children:e.formatMessage(x.title)}),(0,w.jsx)(g,{children:e.formatMessage(x.description)}),(0,w.jsx)(l.$n,{buttonType:"secondary",onClick:function(){var e=(0,s.S)();(0,a.d)({replitUrl:o.O2,languagePairId:e})},children:e.formatMessage(x.cta)})]}),(0,w.jsx)(m,{children:(0,w.jsx)(d.A,{name:"arabicScript"})})]}):null}},15343:(e,t,r)=>{r.d(t,{T:()=>n});var n=(0,r(5720).YK)({chooseTitle:{id:"vocab_tracks_choose_title",defaultMessage:"Choose the vocab"},chooseSubheader:{id:"vocab_tracks_choose_subheader",defaultMessage:"Choose the words that we'll build your Memrise course around."},chooseTitleEuropeanSpanish:{id:"vocab_tracks_choose_title_es",defaultMessage:"Choose your course vocab"},chooseSubheaderEuropeanSpanish:{id:"vocab_tracks_choose_subheader_es",defaultMessage:"You’ll build the same skills whatever vocab you learn, so pick what’s relevant to you"},changeLaterNote:{id:"vocab_tracks_change_later_note",defaultMessage:"You can always change this later"},startAnywhereNote:{id:"vocab_tracks_start_anywhere_note",defaultMessage:"Start with any theme or word list — you can always change this later"},schoolExams:{id:"vocab_tracks_school_exams",defaultMessage:"School & exams"},startHere:{id:"vocab_tracks_start_here",defaultMessage:"Start here"},previous:{id:"onboarding_nav_previous",defaultMessage:"Previous"},next:{id:"vocab_tracks_next",defaultMessage:"Next"},changeTitle:{id:"vocab_tracks_change_title",defaultMessage:"Change V
1ocab track"},changeSubheader:{id:"vocab_tracks_change_subheader",defaultMessage:"Choose the words that we'll build your Memrise course around. When you change vocab track we'll automatically update your course path."},currentBadge:{id:"wordlists_currentlylearning_label",defaultMessage:"Currently learning"},completedBadge:{id:"wordlist_completedscreen_label"},wordCount:{id:"wordlists_viewlist_section1_subheader"},changeVocabList:{id:"vocab_tracks_change_list",defaultMessage:"Change Vocab list"},themeCount:{id:"vocab_tracks_theme_count",defaultMessage:"{themeCount} themes"},viewDetails:{id:"vocab_tracks_view_details",defaultMessage:"View details"},communityCardTitle:{id:"vocab_tracks_community_card_title",defaultMessage:"Community Word lists"},communityCardDescription:{id:"vocab_tracks_community_card_description",defaultMessage:"Browse lists made by other learners, or create your own."},contentsTitle:{id:"vocab_tracks_contents_title",defaultMessage:"{trackTitle} contents"},contentsSubheader:{id:"vocab_tracks_contents_subheader",defaultMessage:"Learn the full list from the start, or jump straight to any theme or topic — nothing is locked."},learnWholeList:{id:"vocab_tracks_learn_whole_list",defaultMessage:"Learn the whole list from the start"},vocabByTheme:{id:"vocab_tracks_vocab_by_theme",defaultMessage:"Vocab by Theme"},pickTopic:{id:"vocab_tracks_pick_topic",defaultMessage:"Or pick a specific topic now. You can always change your vocab list at any time"},learnTopic:{id:"vocab_tracks_learn_topic",defaultMessage:"Learn {topicTitle}"},selectTrack:{id:"vocab_tracks_select_track",defaultMessage:"Select {trackTitle}"},selectThisWordlist:{id:"vocab_tracks_select_this_wordlist",defaultMessage:"Select this word list"},communitySearchPlaceholder:{id:"cwl_dashboard_search_bar_placeholder",defaultMessage:"Search by word list title or description"},communityNoResults:{id:"content_discovery_no_results",defaultMessage:"No results"},communityClearSearch:{id:"content_discovery_clear",defaultMessage:"Clear"},communityByAuthor:{id:"vocab_tracks_community_by_author",defaultMessage:"by {author}"},continueLearning:{id:"vocab_tracks_continue_learning",defaultMessage:"Continue learning"},backToVocab:{id:"vocab_tracks_back_to_vocab",defaultMessage:"Back to Vocab"}})},25941:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5720),i=r(5646),o=i.Ay.span.withConfig({componentId:"sc-gz1deu-0"})(function(e){var t=e.theme;return(0,i.AH)(["",";background:",";color:",";border-radius:",";padding:"," ",";display:inline-block;white-space:nowrap;"],t.typography.button.s,t.co.success98,t.co.success20,t.bo.small,t.sz.s1,t.sz.s2)}),a=r(37876),s=(0,n.YK)({label:{id:"wordlists_viewscreen_card_badge"}}),c=function(){var e=(0,n.tz)().formatMessage(s.label);return(0,a.jsx)(o,{"data-testid":"wordlist_community_label",children:e})}},79570:(e,t,r)=>{r.d(t,{KA:()=>k,Lm:()=>w,Os:()=>v,QK:()=>y,Vp:()=>b,m$:()=>I,pp:()=>A,wH:()=>x});var n,i,o=r(44478),a=r(63857),s=r(42969),c=r(60180),l=r.n(c),d=r(26900),u=r(3625),h=r(48278),f=r(1094),p=r(87281);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,s.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=function(e,t){if(e.length<1)return[];var r=t.reduce(function(e,t){return m(m({},e),{},(0,s.A)({},t.learnableId,t))},{});return e.map(function(e){return{learnable:e,progress:r[e.id]||null}})},b=function(e){return Object.values(e).map(function(e){var t=(0,p.$P)(e.learnable);return{item:t.item,definition:t.definition,growthLevel:e.progress.growthLevel,learnableId:e.learnable.id}})},v=function(e){var t=e.sessionSourceId,r=e.sessionSourceType,n=e.answeredExtraInfo,i=e.updatedProgress,o=e.points,a=e.msTimeSpent,s=n.oldLearnableWithProgress,c=s.learnable,l=s.progress,d=(0,u.$N)();return{learnableId:i.learnableId,languagePairId:"language_pair"===r?t:void 0,scenarioId:"scenario"===r?t:void 0,learningElement:c.learningElement,definitionElement:c.definitionElement,boxTemplate:n.templateName,givenAnswer:n.givenAnswer,timeSpent:a,when:d,lastDate:d,testId:n.testId,correct:i.correct,attempts:i.attempts,totalStreak:i.totalStreak,currentStreak:i.currentStreak,growthLevel:i.growthLevel,interval:i.interval||null,points:o,bonusPoints:0,score:+("Correct"===n.correctness),memId:(null==l?void 0:l.memId)||null,nextDate:i.nextDate?(0,u.e1)(i.nextDate):null,createdDate:(0,u.e1)(i.createdDate)}},y=(n=(0,a.A)(l().mark(function e(t,r,n,i,a,s){var c,u,f,p;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=(0,h.S)(),u=(0,o.A)(t);case 2:if(!(u.length>0)){e.next=12;break}if(f=u.splice(0,50).map(function(e){return m(m({},e),{},{notDifficult:r[e.learnableId].notDifficult,starred:r[e.learnableId].starred,ignored:r[e.learnableId].ignored})}),p=["classic_review"].includes(n)?"review":n,c){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,d.fR.postProgressRegister(c,f,s,p,i,a);case 10:e.next=2;break;case 12:case"end":return e.stop()}},e)})),function(e,t,r,i,o,a){return n.apply(this,arguments)}),x=function(e){return e.reduce(function(e,t){return e+t.points},0)},_=function(e,t){if(e!==f.dF.DIFFICULT_WORDS)return t;var r=m({},t);return Object.keys(r).forEach(function(e){r[parseInt(e)].starred=!1}),r},A=(i=(0,a.A)(l().mark(function e(t,r,n,i,o,a,s,c){var u,h,f,p;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return h=x(u=t.slice()),f=_(n,a),e.next=5,y(u,f,n,i,o,r);case 5:return e.next=7,d.CH.end({sessionId:r,sessionType:n,sessionSourceType:i,sessionPoints:h,sessionSourceId:o,endReason:s,allSessionLearnablesIdKeys:c});case 7:return p=e.sent,e.abrupt("return",p);case 9:case"end":return e.stop()}},e)})),function(e,t,r,n,o,a,s,c){return i.apply(this,arguments)}),k=function(e){return e.reduce(function(e,t){return 1===t.score?e+1:e},0)},I=function(e,t){return[].concat((0,o.A)(t.slice(0,t.length-1)),[m(m({},t[t.length-1]),{},{points:t[t.length-1].points+e})])}},87281:(e,t,r)=>{r.d(t,{$P:()=>C,$o:()=>j,Dt:()=>I,X7:()=>p,gY:()=>A,nb:()=>g,nj:()=>w});var n=r(44478),i=r(42969),o=r(78220),a=r(83199),s=r(70610),c=r(31314),l=r(1094),d=r
1(94350);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var f=function(e,t){var r=Object.values(t.screens).find(function(t){return t.template===e.toString()});if(!r)throw new a.D("Could not find the screen for this learnable type: ".concat(e));return r},p=function(e){return f(l.cT.PRESENTATION,e)},g=function(e){var t=e.value,r=e.kind;if(r===l.y6.TEXT)return t;var n=(0,s.Mn)({max:t.length});return r===l.y6.VIDEO||r===l.y6.IMAGE?t[n]:t&&t.length>0?t[n].normal:null},m=function(e){var t=g(e);if(null===t)throw Error("Could not get single value");return t},w=function(e,t,r,n){var i=t[1]===Number(r);if(e===l.dF.LEARN&&"PresentationCard"===n&&i)return 582},b=function(e,t){if(null!=t&&e.kind===l.y6.VIDEO&&e.actors){var r=e.value,n=e.actors.findIndex(function(e,n){return n<r.length&&e.some(function(e){return e.id===t})});if(n>=0)return r[n]}return m(e)},v=function(e){var t=e.value,r=e.kind;return r===l.y6.TEXT?[t]:r===l.y6.VIDEO||r===l.y6.IMAGE?t:t.map(function(e){return e.normal})},y=function(e){return{answers:e.correct,keyboardChoices:e.choices,direction:e.answer.direction}},x=function(e){if(!e)throw Error("Missing learnable value");return e},_=function(e,t){var r;switch(t){case"Text":return{promptType:t,text:m(r=x(e.text)),direction:r.direction,showBigger:k(r.style),label:r.label};case"Image":return{promptType:t,image:m(r=x(e.image)),direction:r.direction};case"Video":return{promptType:t,video:m(r=x(e.video)),direction:r.direction};case"Audio":return{promptType:t,audio:m(r=x(e.audio)),direction:r.direction};default:throw Error('promptType of "'.concat(t,'" not known'))}},A=function(e){switch(e){case"MultipleChoice":default:return l.cT.MULTIPLE_CHOICE;case"ReverseMultipleChoice":return l.cT.REVERSED_MULTIPLE_CHOICE;case"AudioMultipleChoice":return l.cT.AUDIO_MULTIPLE_CHOICE;case"Typing":return l.cT.TYPING;case"Tapping":return l.cT.TAPPING}},k=function(e){return e.indexOf("bigger")>=0},I=function(e,t,r,n){var i,s=(0,o.A)(),c=t.testType.prompt,u=A(t.testType.model),p=(null==n?void 0:n.tracingEnabled)&&u===l.cT.TYPING&&(0,d.QQ)(e.learningElement);p&&(u=l.cT.TRACING);var g=f(p?l.cT.TYPING:u,e);if(null===g.prompt)throw new a.D("Item doesn't have a prompt",404);var w=_(g.prompt,c),b=g.attributes.map(function(e){return e.value});if(g.postAnswerInfo){var v=g.postAnswerInfo,x=v.label,I=v.kind;i={label:x,value:m(g.postAnswerInfo),kind:I}}var j={kind:"Test",prompt:w,attributeValues:b,postAnswerInfo:i,testId:s,timeCardShown:r};switch(u){case l.cT.TYPING:var C=y(g),z=C.answers,O=C.keyboardChoices,P=C.direction,S=k(g.answer.style),T=t.isCopy;return h({response:{templateName:u,direction:P,answers:z,keyboardChoices:O,isCopy:(null==n||!n.disableCopy)&&T,showBigger:S,label:g.answer.label}},j);case l.cT.TAPPING:var M=t.answers,E=t.choices,H=t.isCopy,L=k(g.answer.style);return h({response:{templateName:u,direction:g.answer.direction,answers:M,choices:E,isCopy:(null==n||!n.disableCopy)&&H,showBigger:L}},j);case l.cT.AUDIO_MULTIPLE_CHOICE:var D=t.answer,N=t.choices;return h({response:{templateName:u,direction:"target",correctChoice:D.stringValue,choices:N.map(function(e){return e.stringValue})}},j);case l.cT.REVERSED_MULTIPLE_CHOICE:case l.cT.MULTIPLE_CHOICE:var W=t.choices,V=t.answer,R=t.responseType;return h({response:{templateName:u,direction:g.answer.direction,choices:W,correctChoice:V,responseType:R,showBigger:k(g.answer.style)}},j);case l.cT.TRACING:var $=y(g).answers;return h({response:{templateName:u,direction:g.answer.direction,character:e.learningElement,answers:$}},j)}},j=function(e){var t=p(e).audio;return null!==t?g(t):null},C=function(e,t,r){var i,o,a=p(e),s=a.item,d=a.definition,u=a.visibleInfo,h=a.hiddenInfo,f=a.attributes,w=a.audio,y=a.video,x=a.nugget,_=a.mems,A=f.map(function(e){return e.value}),I=w&&v(w)||[],j=y&&b(y,null==r?void 0:r.preferVideoActorId),C=s&&m(s),z=d&&m(d),O=u.concat(h).map(function(e){return{value:g(e)||"undefined",kind:e.kind,label:e.label}});return{item:{label:s.label,value:C,alternatives:s.alternatives,kind:s.kind,showBigger:k(s.style)},definition:{label:d.label,value:z,kind:d.kind,showBigger:k(d.style)},attributeValues:A,audioSrcs:I,videoSrc:j,extraInfo:(i=e.romanization,!i||i===C||O.some(function(e){return(0,c.If)(e.label)||e.value===i})?O:[{label:"Romanization",value:i,kind:l.y6.TEXT}].concat((0,n.A)(O))),kind:"Presentation",previousIncorrectAnswer:null!=(o=null==t?void 0:t.previousIncorrectAnswer)?o:null,nugget:x,mems:_,sampleSentences:e.sampleSentences,pitchAccent:e.pitchAccent,kana:e.kana,phoneticSpelling:e.phoneticSpelling}}},92991:(e,t,r)=>{r.d(t,{J:()=>n});var n=function(e,t,r,n){return e?{pathname:t,query:{language_pair_id:r,back:n}}:""}},92994:(e,t,r)=>{r.d(t,{_D:()=>l,eq:()=>h});var n,i=r(63857),o=r(60180),a=r.n(o),s=r(26900);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e){return e.isCompleted||e.learnablesCount>0&&e.learnedLearnablesCount>=e.learnablesCount}
1,d=function(e){var t=e.wordlists,r=e.collectionWordlistIds,n=e.activeWordlistId;if(!n)return null;var i=r.indexOf(n);if(-1===i)return null;var o,a=new Map(t.map(function(e){return[e.wordlistId,e]})),s=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return c(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,void 0):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}(r.slice(i+1));try{for(s.s();!(o=s.n()).done;){var d,u=o.value,h=a.get(u);if(h&&(d=h).learnablesCount>0&&!l(d))return u}}catch(e){s.e(e)}finally{s.f()}return null},u=function(e){var t=e.wordlists,r=e.activeWordlistId,n=t.find(function(e){return e.wordlistId===r});return!!n&&l(n)},h=(n=(0,i.A)(a().mark(function e(t,r){var n,i;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.fetchQuery({queryKey:["getWordlistsWithProgress",t],queryFn:function(){return s.Uq.getWordlistsWithProgress(t)},staleTime:0});case 2:if(u(n=e.sent)){e.next=5;break}return e.abrupt("return","not-needed");case 5:if(i=d(n)){e.next=8;break}return e.abrupt("return","track-complete");case 8:return e.next=10,s.Uq.activateWordlist(t,i);case 10:return e.next=12,Promise.all([r.invalidateQueries({queryKey:["getWordlistsWithProgress",t]}),r.invalidateQueries({queryKey:["getWordlist",t]})]);case 12:return e.abrupt("return","advanced");case 13:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},94350:(e,t,r)=>{r.d(t,{Im:()=>c,QQ:()=>l,X2:()=>d,m:()=>u,r0:()=>h});var n=r(44478),i=function(e){var t=e.codePointAt(0);return!!t&&(t>=19968&&t<=40959||t>=13312&&t<=19903||t>=131072&&t<=173791||t>=173824&&t<=177983||t>=177984&&t<=178207||t>=63744&&t<=64255)},o=function(e){var t=e.codePointAt(0);return!!t&&t>=12352&&t<=12447},a=function(e){var t=e.codePointAt(0);return!!t&&t>=12448&&t<=12543},s=function(e){var t=e.codePointAt(0);return!!t&&(t>=44032&&t<=55215||t>=4352&&t<=4607||t>=12592&&t<=12687)},c=function(e){return i(e)?"hanzi":o(e)||a(e)?"kana":s(e)?"hangul":null},l=function(e){return 1===(0,n.A)(e).length&&null!==c(e)},d=.8,u=2,h=2500},97306:(e,t,r)=>{r.d(t,{O:()=>e6});var n,i=r(63857),o=r(42969),a=r(60180),s=r.n(a),c=r(14232),l=r(5720),d=r(67768),u=r(74359),h=r(48230),f=r.n(h),p=r(25493),g=r(25941),m=r(61542),w=r(26900),b=r(53403),v=r(4285),y=r(99634),x=r(68567),_=r(62296),A=r(43526),k=r(76553),I=r(92994),j=r(81523),C=r(15343),z=r(2553),O=r(63521),P=r(31765),S=r(4724),T=function(e){var t=Math.max(0,Math.min(e,6));return 0===t?{labelId:"new_word",isNew:!0,filledStages:t}:t<3?{labelId:"learning",isNew:!1,filledStages:t}:{labelId:"almost_there",isNew:!1,filledStages:t}},M=r(5646),E=r(36877),H=M.Ay.div.withConfig({componentId:"sc-10nukfr-0"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;gap:",";min-width:0;"],t.sz.s3)}),L=M.Ay.div.withConfig({componentId:"sc-10nukfr-1"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;align-items:center;gap:",";min-width:0;@media (max-width:","){flex-wrap:wrap;}"],t.sz.s2,t.sz.lg)}),D=M.Ay.h2.withConfig({componentId:"sc-10nukfr-2"})(function(e){var t=e.theme;return(0,M.AH)(["margin:0;",";color:",";line-height:1.3;@media (max-width:","){",";}"],t.typography.heading.desktop.xs,t.co.secondary20,t.sz.lg,t.typography.heading.mobile.xs)}),N=M.Ay.span.withConfig({componentId:"sc-10nukfr-3"})(function(e){var t=e.theme;return(0,M.AH)(["display:inline-flex;align-items:center;gap:",";margin-left:auto;flex:none;white-space:nowrap;",";font-weight:",";color:",";svg{width:",";height:",";flex:none;}@media (max-width:","){margin-left:0;}
1"],t.sz.s1,t.typography.paragraph.s,t.DEPRECATED_ty.semiBold,t.co.secondary50,t.sz.s4,t.sz.s4,t.sz.lg)}),W=M.Ay.p.withConfig({componentId:"sc-10nukfr-4"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;align-items:center;gap:",";margin:0;",";color:",";svg{width:",";height:",";flex:none;}"],t.sz.s2,t.typography.paragraph.s,t.co.secondary50,t.sz.s4,t.sz.s4)}),V=M.Ay.div.withConfig({componentId:"sc-10nukfr-5"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;gap:",";min-width:0;"],t.sz.s1)}),R=M.Ay.div.withConfig({componentId:"sc-10nukfr-6"})(function(e){var t=e.theme,r=e.$isSelected;return(0,M.AH)(["display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:",";width:100%;padding:"," ",";border:"," solid ",";border-radius:",";background-color:",";text-align:left;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease;html[data-color-scheme='dark'] &{background-color:",";}&:hover{background-color:",";border-color:",";html[data-color-scheme='dark'] &{background-color:",";}}@media (max-width:","){gap:",";padding:",";}"],t.sz.s3,t.sz.s2,t.sz.s3,t.bo.mediumWidth,r?t.co.primary20:"transparent",t.bo.medium,r?t.co.primary95:t.co.neutral99,r?(0,E.No)(.4,t.co.primary95):(0,E.No)(.62,t.co.neutral99),r?t.co.primary95:t.co.secondary99,r?t.co.primary20:t.co.secondary95,r?(0,E.No)(.4,t.co.primary95):(0,E.No)(.5,t.co.secondary99),t.sz.lg,t.sz.s2,t.sz.s2)}),$=M.Ay.div.withConfig({componentId:"sc-10nukfr-7"})(function(){return(0,M.AH)(["min-width:0;"])}),q=M.Ay.div.withConfig({componentId:"sc-10nukfr-8"})(function(e){var t=e.theme;return(0,M.AH)(["",";font-weight:",";color:",";line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],t.typography.paragraph.m,t.DEPRECATED_ty.bold,t.co.secondary20)}),F=M.Ay.div.withConfig({componentId:"sc-10nukfr-9"})(function(e){var t=e.theme;return(0,M.AH)(["",";color:",";line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],t.typography.paragraph.s,t.co.secondary50)}),U=M.Ay.div.withConfig({componentId:"sc-10nukfr-10"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;align-items:flex-start;gap:",";width:auto;min-width:",";flex:none;@media (max-width:","){min-width:0;}"],t.sz.s1,t.sz.s26,t.sz.lg)}),K=M.Ay.div.withConfig({componentId:"sc-10nukfr-11"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;gap:",";"],t.sz.s1)}),B=M.Ay.span.withConfig({componentId:"sc-10nukfr-12"})(function(e){var t=e.theme,r=e.$isOn;return(0,M.AH)(["width:",";height:",";border-radius:",";background-color:",";@media (max-width:","){width:",";}"],t.sz.s4,t.sz.s1,t.bo.round,r?t.co.primary20:t.co.secondary95,t.sz.lg,t.sz.s3)}),Y=r(37876),G=(0,l.YK)({title:{id:"dashboard_next_lesson_words_title",defaultMessage:"Lesson Preview"},nextLessonTitle:{id:"dashboard_next_lesson_title",defaultMessage:"In this lesson"},duration:{id:"dashboard_next_lesson_duration",defaultMessage:"≈ {minutes} min"},hint:{id:"dashboard_next_lesson_hint",defaultMessage:"Pick any word to hear it, or watch a local say it"}}),Q=function(e){var t,r=e.learnables,n=e.selectedId,i=e.onSelectLearnable,o=e.showNextLessonTitle,a=(0,l.tz)(),s=a.formatMessage(o?G.nextLessonTitle:G.title),c=null!=(t=(0,S.Rc)(O.pR))?t:"",d=(0,P.B)(c),u=function(e){null==i||i(e)},h=function(e,t){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),u(t))};return(0,Y.jsxs)(H,{children:[(0,Y.jsxs)(L,{children:[(0,Y.jsx)(D,{children:s}),(0,Y.jsxs)(N,{children:[(0,Y.jsx)(z.A,{name:"timer"}),a.formatMessage(G.duration,{minutes:Math.max(1,Math.round(.8*r.length))})]})]}),(0,Y.jsxs)(W,{children:[(0,Y.jsx)(z.A,{name:"soundFull"}),(0,Y.jsx)(z.A,{name:"videoLibraryFilled"}),(0,Y.jsx)("span",{children:a.formatMessage(G.hint)})]}),(0,Y.jsx)(V,{role:"listbox","aria-label":s,"data-testid":"wordlist-locals-preview",children:r.map(function(e){var t=T(e.growthLevel),r=e.id===n;return(0,Y.jsxs)(R,{role:"option",tabIndex:0,"aria-selected":r,$isSelected:r,onClick:function(){return u(e.id)},onKeyDown:function(t){return h(t,e.id)},"data-testid":"wordlist-preview-word",children:[(0,Y.jsxs)($,{dir:d,children:[(0,Y.jsx)(q,{children:e.target}),e.gloss?(0,Y.jsx)(F,{children:e.gloss}):null]}),(0,Y.jsx)(U,{children:(0,Y.jsx)(K,{role:"progressbar","aria-valuenow":t.filledStages,"aria-valuemin":0,"aria-valuemax":6,"aria-label":"".concat(e.target," progress"),"data-testid":"wordlist-preview-stages",children:Array.from({length:6},function(e,r){return(0,Y.jsx)(B,{$isOn:r<t.filledStages,"aria-hidden":!0},r)})})})]},e.id)})})]})},X=M.Ay.div.withConfig({componentId:"sc-1ca2zkd-0"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;gap:",";min-width:0;min-height:0;width:",";max-width:100%;height:100%;@media (max-width:","){width:min(100%,",");margin-inline:auto;height:auto;}
1"],t.sz.s2,t.sz.s74,t.sz.lg,t.sz.s48)}),Z=M.Ay.div.withConfig({componentId:"sc-1ca2zkd-1"})(function(e){var t=e.theme;return(0,M.AH)(["position:relative;flex:1;min-height:0;width:100%;border-radius:",";overflow:hidden;background-color:",";@media (max-width:","){flex:none;max-height:",";aspect-ratio:3 / 4;}"],t.bo.medium,t.co.secondary20,t.sz.lg,t.sz.s64)}),J=M.Ay.video.withConfig({componentId:"sc-1ca2zkd-2"})(function(){return(0,M.AH)(["position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;cursor:pointer;"])}),ee=M.Ay.div.withConfig({componentId:"sc-1ca2zkd-3"})(function(e){var t=e.$isInteractive;return(0,M.AH)(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;cursor:",";"],t?"pointer":"default")}),et=M.Ay.div.withConfig({componentId:"sc-1ca2zkd-4"})(function(){return(0,M.AH)(["position:absolute;inset:0;pointer-events:none;background:linear-gradient( 180deg,rgba(41,55,73,0.45) 0%,rgba(41,55,73,0) 40%,rgba(41,55,73,0) 100% );"])}),er=M.Ay.span.withConfig({componentId:"sc-1ca2zkd-5"})(function(e){var t=e.theme;return(0,M.AH)(["position:absolute;top:",";left:",";z-index:1;display:flex;align-items:center;gap:",";height:",";padding:0 ",";border-radius:",";background:rgba(0,17,34,0.6);color:",";",";font-weight:",";letter-spacing:0.04em;pointer-events:none;svg{width:",";height:",";color:",";}"],t.sz.s2,t.sz.s2,t.sz.s1,t.sz.s6,t.sz.s2,t.bo.round,t.co.neutral99,t.typography.paragraph.s,t.DEPRECATED_ty.bold,t.sz.s3,t.sz.s3,t.co.primary20)}),en=M.Ay.button.withConfig({componentId:"sc-1ca2zkd-6"})(function(e){var t=e.theme;return(0,M.AH)(["position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:",";height:",";padding:0;border:none;border-radius:",";background-color:",";color:",";cursor:pointer;transition:transform 150ms ease;&:hover{transform:translate(-50%,-50%) scale(1.06);}svg{width:",";height:",";margin-left:2px;}@media (max-width:","){width:",";height:",";svg{width:",";height:",";}}"],t.sz.s16,t.sz.s16,t.bo.round,t.co.primary20,t.co.secondary0,t.sz.s6,t.sz.s6,t.sz.lg,t.sz.s12,t.sz.s12,t.sz.s5,t.sz.s5)}),ei=(0,l.YK)({playVideo:{id:"wordlist_preview_play",defaultMessage:"Play video"},playAudio:{id:"accessibility_dictionary_playAudio"},localSpeaker:{id:"dashboard_next_lesson_local_speaker",defaultMessage:"Local speaker"}}),eo=function(e){var t=e.videoSrc,r=e.audioSrc,n=e.isAudioPlaying,i=e.shouldAutoplayVideo,o=void 0!==i&&i,a=e.onPlayAudio,s=e.onVideoAutoplayHandled,d=(0,l.tz)(),u=(0,c.useRef)(null),h=(0,c.useState)(!1),f=h[0],p=h[1];(0,c.useEffect)(function(){p(!1)},[t]),(0,c.useEffect)(function(){if(o&&t){var e=u.current;e&&(e.play().catch(function(){}),null==s||s())}},[o,t,s]);var g=function(){var e=u.current;e&&(e.paused?e.play():e.pause())},m=!!t,w=!!r;return(0,Y.jsx)(X,{"data-testid":"wordlist-preview-media-panel",children:(0,Y.jsx)(Z,{children:m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(J,{ref:u,src:"".concat(t,"#t=0.1"),playsInline:!0,preload:"metadata",onClick:g,onPlay:function(){return p(!0)},onPause:function(){return p(!1)},onEnded:function(){return p(!1)},"data-testid":"wordlist-preview-video"}),(0,Y.jsx)(et,{"aria-hidden":!0}),(0,Y.jsxs)(er,{children:[(0,Y.jsx)(z.A,{name:"videoLibraryFilled"}),d.formatMessage(ei.localSpeaker)]}),!f&&(0,Y.jsx)(en,{type:"button",onClick:g,"aria-label":d.formatMessage(ei.playVideo),"data-testid":"wordlist-preview-play",children:(0,Y.jsx)(z.A,{name:"playFilled"})})]}):(0,Y.jsx)(ee,{"data-testid":"wordlist-preview-audio",onClick:w?a:void 0,$isInteractive:w,children:w?(0,Y.jsx)(en,{type:"button",onClick:function(e){e.stopPropagation(),null==a||a()},"aria-label":d.formatMessage(ei.playAudio),"data-testid":"wordlist-preview-play",children:(0,Y.jsx)(z.A,{name:void 0!==n&&n?"soundFull":"playFilled"})}):null})})})},ea=320,es=90,ec=80,el=650,ed=r(10284),eu=M.Ay.div.withConfig({componentId:"sc-f60t4f-0"})(function(e){var t=e.theme;return(0,M.AH)(["position:relative;height:100%;width:auto;aspect-ratio:1;max-height:100%;max-width:100%;min-height:0;min-width:0;overflow:hidden;border-radius:",";background-color:",";cursor:pointer;@media (max-width:","){height:auto;width:100%;}"],t.bo.medium,t.co.neutral90,t.sz.md)});M.Ay.button.withConfig({componentId:"sc-f60t4f-1"})(function(e){var t=e.theme;return(0,M.AH)(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:",";height:",";padding:0;border:none;border-radius:",";background-color:rgba(0,0,0,0.55);color:",";font-size:",";cursor:pointer;"],t.sz.s12,t.sz.s12,t.bo.round,t.co.neutral99,t.sz.s5)}),M.Ay.div.withConfig({componentId:"sc-f60t4f-2"})(function(e){var t=e.theme;return(0,M.AH)(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:",";font-size:",";pointer-events:none;"],t.co.secondary20,t.sz.s10)});var eh=(0,M.i7)(["from{grid-template-rows:0fr;}to{grid-template-rows:1fr;}"]),ef=(0,M.i7)(["from{opacity:0;transform:scale(0.92);}to{opacity:1;transform:scale(1);}"]),ep=M.Ay.div.withConfig({componentId:"sc-1ufn82l-0"})(function(e){var t=e.$delayMs;return(0,M.AH)(["display:grid;grid-template-rows:0fr;animation:"," ","ms ease-out forwards;animation-delay:","ms;"],eh,ea,t)}),eg=M.Ay.div.withConfig({componentId:"sc-1ufn82l-1"})(function(){return(0,M.AH)(["overflow:hidden;min-height:0;"])}),em=M.Ay.div.withConfig({componentId:"sc-1ufn82l-2"})(function(e){var t=e.theme;return(0,M.AH)(["width:",";height:",";border-radius:",";",";"],t.sz.s16,t.sz.s5,t.bo.small,ed.q)}),ew=M.Ay.div.withConfig({componentId:"sc-1ufn82l-3"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;align-items:flex-start;gap:",";width:100%;"],t.sz.s2)}),eb=M.Ay.div.withConfig({componentId:"sc-1ufn82l-4"})(function(e){var t=e.theme;return(0,M.AH)(["width:min(100%,",");height:",";border-radius:",";",";"],t.sz.s40,t.sz.s10,t.bo.round,ed.q)}),ev=M.Ay.div.withConfig({componentId:"sc-1ufn82l-5"})(function(e){var t=e.theme;
1return(0,M.AH)(["height:100%;width:",";max-width:100%;opacity:0;animation:"," ","ms ease-out forwards;animation-delay:","ms;@media (max-width:","){width:min(100%,",");height:auto;margin-inline:auto;}"],t.sz.s74,ef,ea,el,t.sz.lg,t.sz.s48)}),ey=(0,M.Ay)(eu).withConfig({componentId:"sc-1ufn82l-6"})(function(e){var t=e.theme;return(0,M.AH)(["",";height:100%;width:100%;aspect-ratio:auto;@media (max-width:","){height:auto;max-height:",";aspect-ratio:3 / 4;}"],ed.q,t.sz.lg,t.sz.s64)}),ex=function(){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ep,{$delayMs:ec,children:(0,Y.jsx)(eg,{children:(0,Y.jsx)(em,{"aria-hidden":!0,"data-testid":"wordlist-preview-title-skeleton"})})}),(0,Y.jsx)(ew,{"data-testid":"wordlist-locals-preview-skeleton",children:Array.from({length:5},function(e,t){return(0,Y.jsx)(ep,{$delayMs:ec+ea+t*es,children:(0,Y.jsx)(eg,{children:(0,Y.jsx)(eb,{"aria-hidden":!0,"data-testid":"wordlist-preview-word-skeleton"})})},t)})})]})},e_=function(){return(0,Y.jsx)(ev,{children:(0,Y.jsx)(ey,{"aria-hidden":!0,"data-testid":"wordlist-preview-media-skeleton"})})},eA=r(44478),ek=r(31314),eI=r(1094),ej=r(87281),eC=r(79570);function ez(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var eP=function(e){try{var t=(0,ej.X7)(e).video;if(!t)return null;return(0,ej.nb)(t)}catch(e){return null}},eS=function(e){try{return(0,ej.$o)(e)}catch(e){return null}},eT=function(e){try{var t=(0,ej.X7)(e),r=t.visibleInfo,n=t.hiddenInfo,i=[].concat((0,eA.A)(r),(0,eA.A)(n)).find(function(e){return(0,ek.If)(e.label)});return i?(0,ej.nb)(i):null}catch(e){return null}},eM=(n=(0,i.A)(s().mark(function e(t,r){var n,i,a,c,l,d,u,h,f,p,g;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=new Set(r.map(function(e){return String(e.id)})),i=new Map(r.map(function(e){return[e.learningElement.trim().toLowerCase(),String(e.id)]})),a=new Map,0!==n.size){e.next=5;break}return e.abrupt("return",a);case 5:return e.next=7,w.Y_.getAllUserLearnables(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({learning_state:"STILL_LEARNING",ordering:"LAST_TOUCHED",ordering_direction:"DESCENDING",page_size:50},c?{next_page_token:c}:{}));case 7:d=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return ez(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ez(e,void 0):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}((l=e.sent).learnables),e.prev=9,d.s();case 11:if((u=d.n()).done){e.next=23;break}if(f=String((h=u.value).learnableIdKey),!n.has(f)){e.next=18;break}return a.set(f,h.growthLevel),n.delete(f),e.abrupt("continue",21);case 18:p=h.targetValue.trim().toLowerCase(),(g=i.get(p))&&n.has(g)&&(a.set(g,h.growthLevel),n.delete(g));case 21:e.next=11;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(9),d.e(e.t0);case 28:return e.prev=28,d.f(),e.finish(28);case 31:c=l.nextPageToken;case 32:if(c&&n.size>0){e.next=5;break}case 33:return e.abrupt("return",a);case 34:case"end":return e.stop()}},e,null,[[9,25,28,31]])})),function(e,t){return n.apply(this,arguments)}),eE=function(e){var t,r=e.languagePairId,n=e.enabled,o=(0,u.I)({queryKey:["wordlistLocalsPreview",r],queryFn:(t=(0,i.A)(s().mark(function e(){var t,n,i,o,a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w.CH.startLearningSession(eI.dF.LEARN,{sessionSourceType:"active_wordlist_for_language_pair",sessionSourceId:r});case 2:return i=(n=e.sent).learnables.slice(0,5),o=(0,eC.Lm)(i,null!=(t=n.progress)?t:[]),e.next=7,eM(r,i);case 7:return a=e.sent,e.abrupt("return",o.map(function(e){var t,r=e.learnable,n=e.progress,i=a.get(String(r.id)),o=null==n?void 0:n.growthLevel,s=null!=(t=null!=i?i:o)?t:0;return{id:r.id,target:r.learningElement,gloss:r.definitionElement,phonetic:eT(r),growthLevel:s,videoSrc:eP(r),audioSrc:eS(r)}}));case 9:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),enabled:n&&!!r,staleTime:0,refetchOnMount:"always"}),a=o.data,l=o.isPending;return{learnables:(0,c.useMemo)(function(){return null!=a?a:[]},[a]),isLoading:n&&!!r&&l}},eH=r(42385),eL=M.Ay.div.withConfig({componentId:"sc-129a7x5-0"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;width:100%;margin-bottom:",";background-color:",";border:"," solid ",";border-radius:",";box-shadow:",";overflow:hidden;",";.spring-cleaning-overview &{margin-bottom:0;background:none;border:none;box-shadow:none;border-radius:0;overflow:visible;}html[data-color-scheme='dark'] .spring-cleaning-overview &{background:none;backdrop-filter:none;box-shadow:none;}
1"],t.sz.s4,t.co.neutral99,t.bo.thinWidth,t.co.neutral95,t.bo.mediumLarge,t.sh.s1,eH.Wp)}),eD=M.Ay.header.withConfig({componentId:"sc-129a7x5-1"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;align-items:center;gap:",";padding:"," ",";background-color:",";border-bottom:"," solid ",";html[data-color-scheme='dark'] &{background-color:",";border-bottom-color:",";}@media (max-width:","){flex-direction:column;align-items:stretch;gap:",";padding:"," ",";}.spring-cleaning-overview &{padding:0 0 ",";background:none;border-bottom:none;}html[data-color-scheme='dark'] .spring-cleaning-overview &{background:none;border-bottom:none;}"],t.sz.s3,t.sz.s3,t.sz.s5,t.co.primary98,t.bo.thinWidth,t.co.primary90,(0,E.No)(.85,t.co.primary98),(0,E.No)(.82,t.co.primary90),t.sz.lg,t.sz.s2,t.sz.s3,t.sz.s3,t.sz.s3)}),eN=M.Ay.div.withConfig({componentId:"sc-129a7x5-2"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;align-items:center;gap:",";min-width:0;flex:1;"],t.sz.s2)}),eW=M.Ay.img.withConfig({componentId:"sc-129a7x5-3"})(function(e){var t=e.theme;return(0,M.AH)(["display:block;width:",";height:",";border-radius:",";object-fit:cover;flex-shrink:0;box-shadow:0 0 0 "," ",";@media (max-width:","){width:",";height:",";}"],t.sz.s11,t.sz.s11,t.bo.mediumSmall,t.bo.mediumWidth,t.co.primary20,t.sz.lg,t.sz.s10,t.sz.s10)}),eV=M.Ay.span.withConfig({componentId:"sc-129a7x5-4"})(function(e){var t=e.theme;return(0,M.AH)(["font-size:",";font-weight:",";letter-spacing:0.09em;text-transform:uppercase;color:",";"],t.sz.s3,t.DEPRECATED_ty.bold,t.co.secondary50)}),eR=M.Ay.span.withConfig({componentId:"sc-129a7x5-5"})(function(e){var t=e.theme;return(0,M.AH)(["",";color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;@media (max-width:","){",";white-space:normal;}"],t.typography.heading.desktop.xs,t.co.secondary20,t.sz.lg,t.typography.heading.mobile.xs)}),e$=M.Ay.h2.withConfig({componentId:"sc-129a7x5-6"})(function(e){var t=e.theme;return(0,M.AH)(["margin:0;",";color:",";@media (max-width:","){",";}"],t.typography.heading.desktop.s,t.co.secondary20,t.sz.lg,t.typography.heading.mobile.s)}),eq=M.Ay.span.withConfig({componentId:"sc-129a7x5-7"})(function(e){var t=e.theme;return(0,M.AH)(["",";color:",";min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;@media (max-width:","){white-space:normal;}"],t.typography.paragraph.base,t.co.secondary50,t.sz.lg)}),eF=M.Ay.strong.withConfig({componentId:"sc-129a7x5-8"})(function(e){var t=e.theme;return(0,M.AH)(["font-weight:",";color:",";"],t.DEPRECATED_ty.bold,t.co.secondary20)}),eU=M.Ay.div.withConfig({componentId:"sc-129a7x5-9"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex:1;flex-direction:column;gap:",";min-width:0;"],t.sz.s1)}),eK=M.Ay.div.withConfig({componentId:"sc-129a7x5-10"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-wrap:wrap;align-items:center;gap:",";min-width:0;"],t.sz.s2)}),eB=M.Ay.div.withConfig({componentId:"sc-129a7x5-11"})(function(e){var t=e.theme;return(0,M.AH)(["flex:0 1 auto;max-width:100%;& a{max-width:100%;border-radius:",";svg{width:",";height:",";}}"],t.bo.mediumSmall,t.sz.s4,t.sz.s4)}),eY=M.Ay.div.withConfig({componentId:"sc-129a7x5-12"})(function(e){var t=e.theme;return(0,M.AH)(["margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:",";flex:none;@media (max-width:","){margin-left:0;width:100%;align-items:stretch;padding-left:calc("," + ",");}"],t.sz.s1,t.sz.lg,t.sz.s10,t.sz.s2)}),eG=M.Ay.span.withConfig({componentId:"sc-129a7x5-13"})(function(e){var t=e.theme;return(0,M.AH)(["",";font-weight:",";color:",";"],t.typography.paragraph.s,t.DEPRECATED_ty.semiBold,t.co.secondary50)}),eQ=M.Ay.div.withConfig({componentId:"sc-129a7x5-14"})(function(e){var t=e.theme;return(0,M.AH)(["width:",";height:",";border-radius:",";background-color:",";border:"," solid ",";overflow:hidden;@media (max-width:","){width:100%;}"],t.sz.s44,t.sz.s2,t.bo.round,t.co.secondary95,t.bo.thinWidth,t.co.secondary80,t.sz.lg)}),eX=M.Ay.div.withConfig({componentId:"sc-129a7x5-15"})(function(e){var t=e.theme,r=e.$percentComplete;
1return(0,M.AH)(["height:100%;width:","%;border-radius:",";background-color:",";"],Math.max(0,Math.min(r,100)),t.bo.round,t.co.primary20)}),eZ=M.Ay.div.withConfig({componentId:"sc-129a7x5-16"})(function(e){var t=e.theme,r=e.$usePreviewGrid,n=e.$showMediaColumn;return(0,M.AH)(["display:flex;flex-direction:column;gap:",";min-width:0;padding:",";.spring-cleaning-overview &{padding:0;}@media (max-width:","){padding:",";gap:",";}",""],t.sz.s3,t.sz.s5,t.sz.lg,t.sz.s3,t.sz.s3,r&&(0,M.AH)(["display:grid;grid-template-columns:minmax(0,1fr) ",";grid-template-rows:auto auto;align-items:start;column-gap:",";transition:grid-template-columns 450ms ease-out,column-gap 450ms ease-out;@media (max-width:","){display:flex;flex-direction:column;}"],n?"auto":"0fr",n?t.sz.s6:"0",t.sz.lg))}),eJ=M.Ay.div.withConfig({componentId:"sc-129a7x5-17"})(function(e){var t=e.theme;return(0,M.AH)(["display:flex;flex-direction:column;gap:",";min-width:0;","[data-preview-grid='true'] &{grid-column:1;grid-row:1;}@media (max-width:","){","[data-preview-grid='true'] &{order:3;}}"],t.sz.s3,eZ,t.sz.lg,eZ)}),e0=M.Ay.div.withConfig({componentId:"sc-129a7x5-18"})(function(e){var t=e.theme;return(0,M.AH)(["margin-top:",";","[data-preview-grid='true'] &{grid-column:1;grid-row:2;}@media (max-width:","){","[data-preview-grid='true'] &{order:2;margin-top:0;width:100%;}}"],t.sz.s1,eZ,t.sz.lg,eZ)}),e1=M.Ay.div.withConfig({componentId:"sc-129a7x5-19"})(function(e){var t=e.theme;return(0,M.AH)(["overflow:hidden;min-width:0;min-height:0;","[data-preview-grid='true'] &{grid-column:2;grid-row:1 / -1;align-self:stretch;display:flex;align-items:stretch;justify-content:flex-end;> *{height:100%;}}@media (max-width:","){","[data-preview-grid='true'] &{display:block;width:100%;order:1;align-self:center;> *{height:auto;}}}"],eZ,t.sz.lg,eZ)}),e2=M.Ay.div.withConfig({componentId:"sc-129a7x5-20"})(function(e){var t=e.$isOpen;return(0,M.AH)(["display:grid;grid-template-rows:",";transition:grid-template-rows 400ms ease-out;"],t?"1fr":"0fr")}),e5=M.Ay.div.withConfig({componentId:"sc-129a7x5-21"})(function(){return(0,M.AH)(["overflow:hidden;min-height:0;"])}),e4=(0,M.i7)(["from{opacity:0;}to{opacity:1;}"]),e9=M.Ay.div.withConfig({componentId:"sc-129a7x5-22"})(function(){return(0,M.AH)(["animation:"," 280ms ease-out;"],e4)});function e3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var e7=(0,l.YK)({currentlyLearning:{id:"wordlists_currentlylearning_label"},startLesson:{id:"scenario_button_start_lesson"},changeWordlist:{id:"dashboard_card_change_wordlist_short_cta",defaultMessage:"Change"},wordsLearnt:{id:"dashboard_next_lesson_words_learnt",defaultMessage:"{learned} of {total} words learnt"},listProgressLabel:{id:"dashboard_next_lesson_list_progress_label",defaultMessage:"Words learnt in {title}"},practiceVocabTitle:{id:"dashboard_current_wordlist_practice_title",defaultMessage:"Practice your vocab"},learningWordlist:{id:"dashboard_current_wordlist_learning_label",defaultMessage:"You're learning <bold>{title}</bold>"}}),e6=function(e){var t,r=e.languagePairId,n=e.showPracticeVocabHeader,a=e.pathwayNodeId,h=(0,l.tz)(),z=(0,x.A)().safePush,O=(0,d.jE)(),P=(0,v.hF)().experienceType,S=(0,y.u)().user,T=(0,j.h)(r).isEligibleForTracksAndThemes,M=(0,c.useCallback)(function(e,t){w.mq.trackUserAction(e,"dashboard_home_tab",null!=r?r:null,!!(null!=S&&S.isPro),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e3(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e3(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({card:"current_wordlist"},t))},[r,null==S?void 0:S.isPro]),E=function(){w.mq.trackUserAction("clicked_home_card","dashboard_home_tab",null!=r?r:null,!!(null!=S&&S.isPro),{card:"current_wordlist"})},H=(0,u.I)({queryKey:["getWordlistsWithProgress",r],queryFn:function(){return w.Uq.getWordlistsWithProgress(r)},enabled:!!r}).data,L=(0,c.useMemo)(function(){return H?H.wordlists.find(function(e){return e.wordlistId===H.activeWordlistId}):null}
1,[H]),D=null==H?void 0:H.activeWordlistId;(0,c.useEffect)(function(){H&&(0,k.dp)(H.activeWordlistId)},[H]);var N=!!r&&!!D&&!L,W=(0,u.I)({queryKey:["getWordlist",r,D],queryFn:function(){return w.Uq.getWordlist(r,D)},enabled:N}).data,V=null!=L?L:null==W?void 0:W.wordlist,R=!!L&&(0,I._D)(L),$=(0,c.useState)(!1),q=$[0],F=$[1],U=(0,c.useCallback)((0,i.A)(s().mark(function e(){var t;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("2025"!==P||!r)){e.next=3;break}return z(b.b.scenarios.learn),e.abrupt("return");case 3:if(t=(0,_.b)(r,void 0!==a?{source:"current_wordlist_card",pathwayNodeId:a}:"current_wordlist_card"),!(!T||!R)){e.next=7;break}return z(t),e.abrupt("return");case 7:return F(!0),e.prev=8,e.next=11,(0,I.eq)(r,O);case 11:z("track-complete"===e.sent?b.b.wordlists.changeVocabTrack:t),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(8),z(t);case 18:case"end":return e.stop()}},e,null,[[8,15]])})),[P,R,r,a,O,z,T]),K="2025"===P&&!!V,B=eE({languagePairId:r,enabled:K}),G=B.learnables,X=B.isLoading,Z=G.length>0,J=(0,c.useState)(),ee=J[0],et=J[1],er=(0,c.useState)(null),en=er[0],ei=er[1],ea=(0,c.useRef)(null);(0,c.useEffect)(function(){var e;et(null==(e=G[0])?void 0:e.id)},[G]),(0,c.useEffect)(function(){return function(){var e;null==(e=ea.current)||e.pause()}},[]);var es=null!=ee?ee:null==(t=G[0])?void 0:t.id,ec=G.find(function(e){return e.id===es}),ed=Z||X,eu=K&&(X||Z),eh=(0,c.useState)(!1),ef=eh[0],ep=eh[1],eg=(0,c.useState)(!1),em=eg[0],ew=eg[1];(0,c.useEffect)(function(){if(!eu)return void ep(!1);var e=requestAnimationFrame(function(){ep(!0)});return function(){return cancelAnimationFrame(e)}},[eu]),(0,c.useEffect)(function(){if(!X)return void ew(!1);var e=window.setTimeout(function(){ew(!0)},el-80);return function(){return window.clearTimeout(e)}},[X]);var eb=K&&(ed||X&&em),ev=(0,c.useCallback)(function(){ea.current&&(ea.current.pause(),ea.current=null),ei(null)},[]),ey=(0,c.useCallback)(function(e){et(e),M("clicked_wordlist_preview_item",{learnable_id:String(e)})},[M]),eA=(0,c.useCallback)(function(e){var t=G.find(function(t){return t.id===e});if(null!=t&&t.audioSrc){et(e),ev();var r=new Audio(t.audioSrc);ea.current=r,ei(e),r.onended=function(){ei(null),ea.current=null},r.play().catch(function(){ei(null),ea.current=null})}},[G,ev]),ek=(0,c.useRef)(!1);if((0,c.useEffect)(function(){G.length>0&&!ek.current&&(ek.current=!0,M("wordlist_preview_shown",{preview_count:String(G.length)}))},[G.length,M]),!V)return null;var eI="learnedLearnablesCount"in V?V.learnedLearnablesCount:0,ej=V.learnablesCount,eC=ej>0?eI/ej*100:0,ez=(0,Y.jsx)(eB,{children:(0,Y.jsx)(p.z,{buttonSize:"extraSmall",buttonType:"secondary",icon:"sort",href:T?b.b.wordlists.changeVocabTrack:b.b.wordlists.main,onClick:E,"data-testid":"current-wordlist-change-wordlist",children:h.formatMessage(T?C.T.changeVocabList:e7.changeWordlist)})}),eO="user"===V.creator&&(0,Y.jsx)(g.Z,{});return(0,Y.jsxs)(eL,{"data-testid":"current-wordlist-card",children:[(0,Y.jsxs)(eD,{children:[(0,Y.jsxs)(eN,{"data-testid":"current-wordlist-link",children:[(0,Y.jsx)(f(),{href:(0,A.f)("".concat(b.b.wordlists.details,"/").concat(V.wordlistId),{languagePairId:String(r)}),onClick:E,"aria-label":V.title,"data-testid":"current-wordlist-view-wordlist",children:(0,Y.jsx)(eW,{src:V.pictureUrl,alt:""})}),(0,Y.jsx)(eU,{children:n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(e$,{children:h.formatMessage(e7.practiceVocabTitle)}),(0,Y.jsxs)(eK,{children:[(0,Y.jsx)(eq,{"data-testid":"current-wordlist-subline",children:h.formatMessage(e7.learningWordlist,{title:V.title,bold:function(e){return(0,Y.jsx)(eF,{children:e})}})}),eO,ez]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(eV,{children:h.formatMessage(e7.currentlyLearning)}),(0,Y.jsxs)(eK,{children:[(0,Y.jsx)(eR,{children:V.title}),eO,ez]})]})})]}),ej>0&&(0,Y.jsxs)(eY,{children:[(0,Y.jsx)(eG,{children:h.formatMessage(e7.wordsLearnt,{learned:eI,total:ej})}),(0,Y.jsx)(eQ,{role:"progressbar","aria-valuenow":eI,"aria-valuemin":0,"aria-valuemax":ej,"aria-label":h.formatMessage(e7.listProgressLabel,{title:V.title}),children:(0,Y.jsx)(eX,{$percentComplete:eC})})]})]}),(0,Y.jsxs)(eZ,{$usePreviewGrid:eu,$showMediaColumn:eb,"data-preview-grid":eu?"true":void 0,children:[(0,Y.jsx)(eJ,{children:eu&&(0,Y.jsx)(e2,{$isOpen:ef,children:(0,Y.jsx)(e5,{children:X?(0,Y.jsx)(ex,{}):void 0!==es&&(0,Y.jsx)(e9,{children:(0,Y.jsx)(Q,{learnables:G,selectedId:es,onSelectLearnable:e
1y,showNextLessonTitle:n})})})})}),eb&&(0,Y.jsx)(e1,{children:X?(0,Y.jsx)(e_,{}):ec&&(0,Y.jsx)(eo,{videoSrc:ec.videoSrc,audioSrc:ec.audioSrc,isAudioPlaying:en===ec.id,onPlayAudio:function(){return eA(ec.id)}})}),(0,Y.jsx)(e0,{children:(0,Y.jsx)(m.$n,{buttonSize:"medium",buttonType:"primary",wide:!0,onClick:function(){U()},disabled:q,"data-testid":"current-wordlist-start-lesson",children:h.formatMessage(e7.startLesson)})})]})]})}}}]);
2//# sourceMappingURL=7063-d9892bea3bd67261.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.