PageSourceSearch

https://studykit.app/_nuxt/vocab.YvNEr0Q2.js

js studykit.app collected 2026-10-05 10:59:49 UTC 24,531 bytes, 47 lines download raw bytes

1import{_ as $e}from"./TrackCustomizer.vue.B-vCaJQ1.js";import{_ as Te}from"./SafeIcon.vue.r5tZHDcs.js";import{d as je,u as Re,q as ue,r as V,a2 as Le,p as F,b as Ve,T as Ae,f as l,g as k,h as e,j as t,E as S,A as I,y as i,i as o,k as A,t as T,F as N,G as W,V as Pe,S as D,W as Fe,a4 as Ne,R as O,an as We,bc as Ee,bi as qe,n as He,B as Me,X as K,C as Be}from"./entry.DrpYnreb.js";import{_ as ze}from"./IncompatibleResourcesCard.vue.Cwi2esql.js";import{_ as Oe}from"./StyledButtonLink.vue.CgKBr7aV.js";import{_ as Ue}from"./StyledFadedDiv.vue.DoBT32eg.js";import{_ as Ge}from"./StreakMessageCard.vue.CfDIe9l5.js";import{_ as Ye}from"./PercentCircle.BCvariaE.js";import{_ as Xe}from"./EditDailyGoalButton.vue.C9mB9dw-.js";import{_ as Je}from"./DeckPreview.vue.Dd8b2Mph.js";import{_ as Ke}from"./StyledLink.vue.XQoYm1A5.js";import{_ as Qe}from"./Carousel.vue.CLEBE7Pz.js";import{G as Ze,j as et,y as tt}from"./popover.B9GaRHXH.js";import{_ as st}from"./TickedMenu.vue.CXHbVPmX.js";import{x as ot,m as at,y as rt,I as nt,p as it}from"./tabs.T1IBLDLM.js";import{u as lt}from"./switch.6h4lhFW4.js";import{I as ct,_ as dt}from"./DeckCardListItem.vue.GRQcHQtV.js";import{h as ut,S as mt}from"./transition.D7RPZcOR.js";import{_ as pt}from"./SupporterFeatureCard.vue.mqfKEVwK.js";import{W as ft}from"./dialog.BA_Sy0b5.js";import"./loadingBar.NOSCYz4Y.js";import{u as xt}from"./spaceResourceContext.BuxVoxs5.js";import{a as _t}from"./search.DG2Zyx8m.js";import{u as ht}from"./asyncData.DgbV1HUY.js";import{s as kt}from"./kitAssist.Dyo6F3hQ.js";import{L as bt}from"./lessons.D6Tpu1G-.js";import{I as Q}from"./IconBook.D7KjCYkm.js";import{I as me}from"./IconPlus.5Jie_odF.js";import{I as wt}from"./IconCheck.BZAdVrRt.js";import{I as pe}from"./IconX.D7rDJyk0.js";import{I as vt,a as yt,b as gt}from"./IconSelectAll.DoJo2NRw.js";import"./CardButton.vue.C-XoGhFr.js";import"./SupporterBadge.B7YVSMoC.js";import"./CheckButton.vue.DqpY8ody.js";import"./SpeechSettings.vue.Dbx5zcIo.js";import"./disclosure.DO4xlrpe.js";import"./keyboard.Drq1i1gz.js";import"./use-resolve-button-type.3s-WU4iA.js";import"./open-closed.BN71ViRE.js";import"./SpeechVoiceSelect.vue.DAWgEgKU.js";import"./IconChevronDown.DItAtI9T.js";import"./createVueComponent.5pdGujNb.js";import"./ResourceLinker.vue.D7tOoGoY.js";import"./nuxt-link.7CWUUqGI.js";import"./helpers.GDsuqJk0.js";import"./ResourcePreview.vue.B3trk-LH.js";import"./IconFlame.D3UKO-IB.js";import"./betterRPC.7uLb1MNa.js";import"./formatNum.BL3lpnJL.js";import"./IconCards.rVDYpMpQ.js";import"./IconPencil.pICNPj9o.js";import"./IconTrash.N0PJbLkW.js";import"./IconHash.CVOW_Dgx.js";import"./IconDots.CjoyURnj.js";import"./IconChevronRight.DhX3Zxn6.js";import"./portal.CG-KeZPJ.js";import"./env.DaWd-ERT.js";import"./hidden.C3oNBqTs.js";import"./form.dtnbVZ95.js";import"./RichTextRenderer.C5i9p1Bd.js";import"./SafeHtml.vue.VFZb6209.js";import"./MediaDisplay.vue.BqlDVjMM.js";import"./_commonjsHelpers.BosuxZz1.js";const Ct={class:"space-y-2 p-2 sm:pt-0"},St={class:"space-y-1"},It=e("h2",{class:"text-xl @sm:text-2xl font-medium text-brown-800 dark:text-brown-100"}," We couldn't load your decks ",-1),Dt=e("p",{class:"text-sm @sm:text-base text-brown-500 dark:text-brown-400 max-w-sm mx-auto"}," Something got stuck while loading your cards. Check your connection and try again. ",-1),$t=e("div",{class:"space-y-1.5"},[e("h1",{class:"text-2xl font-semibold text-brown-800 dark:text-brown-100 @sm:text-3xl"}," Study Vocabulary "),e("h3",{class:"text-sm @sm:text-base"}," Launch a vocab study session with your selected decks. ")],-1),Tt={class:"flex items-center justify-between text-sm @sm:text-base"},jt={class:"flex items-center space-x-3"},Rt={class:"inline-flex items-center space-x-1.5"},Lt={class:"hidden @sm:inline"},Vt={class:"absolute text-sm top-0 right-2 flex gap-x-1 items-center justify-center rounded-full bg-brown-700 dark:bg-brown-800 px-2.5 py-0.5 text-white"},At=e("p",{class:"whitespace-nowrap text-sm"},"100+",-1),Pt=e("div",{class:"space-y-1"},[e("h2",{class:"text-xl @sm:text-2xl font-medium text-brown-800 dark:text-brown-100"}," Pick a deck to start studying "),e("p",{class:"text-sm @sm:text-base text-brown-500 dark:text-brown-400 max-w-sm mx-auto"}," Choose a vocab deck and your progress, mastery, and cards will show up here. ")],-1),Ft=e("p",{class:"font-medium uppercase @sm:text-lg"}," Add A Deck ",-1),Nt={key:5,class:"flex flex-col space-y-2 @sm:flex-row @sm:items-stretch @sm:space-x-2 @sm:space-y-0"},Wt=e("span",null," Study ",-1),Et=e("h2",{class:"text-xl font-medium text-brown-800 dark:text-brown-100 @sm:text-2xl"}," Your Progress ",-1),qt={class:"text-center"},Ht=e("span",{class:"text-brown-500 dark:text-brown-400 text-xs font-medium uppercase tracking-wide"}," Cards Seen ",-1),Mt={class:"bg-brown-50 border-brown-100 text-brown-500 dark:text-brown-400 dark:bg-brown-900 dark:border-kit-800 inline-block rounded border-2 px-2 text-xs"},Bt={class:"flex justify-between px-6 @sm:px-0.5 py-1 max-w-sm"},zt={class:"relative flex items-center justify-center"},Ot=["title"],Ut=e("span",{class:"text-brown-500 dark:text-brown-400 font-light"},"%",-1),Gt={class:"text-brown-500 dark:text-brown-400 @sm:text-sm text-xs font-medium uppercase tracking-wide"},Yt={class:"grow space-y-2"},Xt={class:"p-3 @sm:p-4 flex-[0.7]"},Jt=e("h3",{class:"text-xs font-medium uppercase tracking-wide text-brown-500 @sm:text-sm"}," Daily Goal ",-1),Kt={class:"text-sm"},Qt={class:"text-lg font-medium text-kit-500"},Zt=e("span",{class:"ml-0.5 font-light"},"pts",-1),es={class:"flex items-center space-x-1"},ts={class:"h-1.5 grow rounded-full bg-kit-100"},ss={key:0,class:"hidden p-3 pt-2.5 h-full @sm:flex flex-1 space-x-1"},os=e("span",null," Study ",-1),as=e("h2",{class:"text-xl font-medium text-brown-800 dark:text-brown-100 @sm:text-2xl ml-4 @sm:ml-5"}," Selected Decks ",-1),rs=["onClick"],ns=e("p",{class:"font-medium uppercase @sm:text-lg"}," Add A Resource ",-1),is={class:"text-sm @sm:text-base"},ls={class:"inline-flex items-center space-x-1.5"},cs=e("h2",{class:"text-xl font-medium text-brown-800 dark:text-brown-100 @sm:text-2xl"}," Cards ",-1),ds=e("div",{class:"py-1 px-2 text-xs @sm:text-sm"}," The cards shown below are all the material you'll review when studying this track. By enabling select-only mode or switching to the review list, you can tailor your studying to exclude specific cards. ",-1),us={class:"flex items-center justify-between"},ms={class:"flex items-center space-x-3"}
1,ps={key:0,class:"space-x-1"},fs=["disabled"],xs=["disabled"],_s={class:"inline-flex items-center space-x-1.5"},hs=e("p",{class:"text-xs font-medium uppercase tracking-wide text-brown-500 @sm:text-sm"}," Select-only ",-1),ks={class:"inline-flex items-center space-x-1.5"},bs=e("p",{class:"text-xs font-medium uppercase tracking-wide text-brown-500 @sm:text-sm"}," Peek ",-1),ws={key:1,class:"border-2 rounded border-dashed border-brown-100"},vs={class:"mx-auto flex max-w-xs flex-col items-center space-y-3 @sm:py-10 py-8 px-4 text-center text-brown-400"},ys=e("p",{class:"text-sm @sm:text-base"}," Cards you've added to your review list will show up here. ",-1),gs={class:"text-sm @sm:text-base"},Cs={class:"text-xs font-medium uppercase tracking-wide text-brown-500 @sm:text-sm"},Ss={key:1,class:"border-2 rounded border-dashed border-brown-100"},Is=e("div",{class:"mx-auto flex max-w-xs flex-col items-center space-y-3 @sm:py-10 py-8 px-4 text-center text-brown-400"},[e("p",{class:"text-sm @sm:text-base"}," All the cards you're studying will show up here. ")],-1),Ds=[Is],$s=e("div",{class:"fixed inset-0 bg-black bg-opacity-25 pointer-events-none"},null,-1),Ts={class:"flex items-center justify-center gap-4 p-4 border-dashed border-4 rounded border-brown-200"},js={class:"py-4 text-center w-full"},Rs={class:"space-y-4"},Bo=je({__name:"vocab",setup(Ls){const E=Re(),q=ue().$db(),H=Be(),M=V(!1),C=Le(),U=V(!1),v=xt(),G=async()=>{const a=await _t({promptCreate:"deck"});a&&(v.value.includes(a)||(v.value.push(a),x.refresh()))},Z=a=>{var s,b;v.value=v.value.filter(c=>c!==a),x.data.value&&(x.data.value.decks=(s=x.data.value)==null?void 0:s.decks.filter(c=>c.id!==a),x.data.value.resourcesWithoutDecks=(b=x.data.value)==null?void 0:b.resourcesWithoutDecks.filter(c=>c.id!==a))},x=ht(async()=>{const a=[];if(We(),v.value.length===0)return{decks:a,resourcesWithoutDecks:[]};const{data:s,error:b}=await q.from("resource_links").select(`
2        doc:doc_id(
3          id,
4          name,
5          type
6        ),
7        test:test_id(
8          id,
9          name,
10          type
11        ),
12        deck:deck_id(
13          id,
14          language,
15          name,
16          description,
17          multilingual,
18          has_embeddings,
19          tags,
20          cards(
21            id,
22            question,
23            answer,
24            deck_id,
25            media_url,
26            media_url_question,
27            rich_text_answer,
28            rich_text_question
29          )
30        )`).or(`deck_id.in.(${v.value.join(",")}), doc_id.in.(${v.value.join(",")}), test_id.in.(${v.value.join(",")})`);if(b)throw b;const c=[],d=[],$=[...v.value];v.value.forEach(n=>{var L;const u=s.find(w=>Object.values(w).some(m=>(m==null?void 0:m.id)===n));if(!u)return c.push(n);if((L=u.deck)==null?void 0:L.id){if(a.some(m=>m.id===u.deck.id))return;a.push(u.deck),$.push(...Object.values(u).filter(m=>m!==null).map(m=>m.id))}else{const w=Object.values(u).find(m=>(m==null?void 0:m.id)===n);d.push(w)}});const g=[];if(c.length>0){const n=await q.from("resources").select("name,type,id").in("id",c);if(n.error)throw n.error;n.data.forEach(u=>{u.type==="deck"?g.push(u.id):d.push(u)})}if(g.length>0){const n=await q.from("decks").select(`
31        id,
32        language,
33        name,
34        description,
35        multilingual,
36        has_embeddings,
37        tags,
38        cards(
39          id,
40          question,
41          answer,
42          deck_id,
43          media_url,
44          media_url_question,
45          rich_text_answer,
46          rich_text_question
47        )`).in("id",g);if(n.error)throw n.error;a.push(...n.data)}if(E.value.data){const n=a.map(R=>R.cards).flat().map(R=>R.id),u=n.length?await Ee(n):[];a.forEach(R=>{R.cards.forEach(L=>{const w=u.find(m=>m.card_id===L.id);L.mastery=(w==null?void 0:w.mastery)||0,L.review_rank=(w==null?void 0:w.review_rank)||0})})}return C.value.decks=a,C.value.cards=a.map(n=>n.cards).flat(),C.value.settingsID="resource-"+v.value.join("-"),kt(v.value.concat($).concat(g)),{decks:a,resourcesWithoutDecks:d}},"$q9iAkdAuU4"),f=F(()=>{var a;return((a=x.data.value)==null?void 0:a.decks)||[]}),_=F(()=>f.value.map(a=>a.cards).flat()||[]),fe=F(()=>_.value.filter(a=>a.mastery>0).length),Y=F(()=>_.value.filter(a=>a.review_rank>0).sort((a,s)=>a.review_rank-s.review_rank)),xe=F(()=>{const a={New:0,Familiar:0,Mastered:0};for(const s of _.value)s.mastery<=4?a.New++:s.mastery<=9?a.Familiar++:a.Mastered++;return a}),j=Ve(),ee=V(),X=V(20),P=V(!1),J=V(0),y=V(!1),h=V([]);Ae(ee,()=>{X.value+=20});const B=F(()=>h.value.length/_.value.length*100>50?"show":"hide");function te(a){if(a==="show"){h.value=[];return}else if(a==="review"){h.value=_.value.filter(s=>s.review_rank===0).map(s=>s.id);return}h.value=_.value.map(s=>s.id)}async function se(a){var d,$;const s=_.value.find(g=>g.id===parseInt(a));if(s==null)return;const b=s.review_rank>0?0:1;if(!E.value.data){H.fire({title:"Not Logged In"});return}const{error:c}=await q.from("user_card_mastery").upsert({review_rank:b,card_id:a,user_id:(d=E.value.data)==null?void 0:d.id}).eq("card_id",a).eq("user_id",($=E.value.data)==null?void 0:$.id);c?H.fire({icon:"error",title:"Error",text:"Something went wrong!"+c.message+" Please try again later."}):x.refresh()}function _e(){var d,$,g;const a=J.value===1?Y.value:_.value;if(a.filter(n=>
47!(y.value?h.value:[]).includes(n.id)).length===0){H.fire({title:"No Cards",text:"You have ignored all the cards in this track. Please enable some cards to continue",icon:"warning"});return}const b=C.value.settings.enabledLessons.map(n=>bt[n].cardValidator);if(!(b.length===0||b.some(n=>!n)?!0:a.filter(n=>!(y.value?h.value:[]).includes(n.id)).some(n=>b.some(u=>u?u(n):!0)))){H.fire({title:"No Lessons Work With Cards",text:"You have enabled lessons that do not work with any of the cards you have chosen. Please enable some other cards/lessons to continue",icon:"warning"});return}C.value={title:"Open Study",settingsID:C.value.settingsID,cards:a.filter(n=>!(y.value?h.value:[]).includes(n.id)),decks:f.value,card:null,isQuick:!1,track:{},trackProgress:JSON.parse(JSON.stringify(j.value)),settings:{...C.value.settings,ignoredCards:y.value?h.value:[]}},C.value.decks.forEach(n=>{qe(n.id,C.value.settings)}),(g=($=(d=ue()).$posthog)==null?void 0:$.call(d))==null||g.capture("study_session_started",{surface:"vocab",card_count:C.value.cards.length,deck_count:C.value.decks.length}),He("/games/solo")}return(a,s)=>{var ie,le,ce,de;const b=$e,c=Te,d=Me,$=ze,g=Oe,n=Ue,u=Ge,R=Ye,L=Xe,w=Je,m=Ke,he=Qe,ke=Ze,be=st,we=et,ve=tt,oe=ot,ye=at,ae=lt,z=dt,re=rt,ge=nt,Ce=it,ne=ut,Se=pt,Ie=ft,De=mt;return l(),k(N,null,[e("main",Ct,[t(M)?(l(),S(b,{key:0,onClose:s[0]||(s[0]=r=>M.value=!1),onContinue:_e})):I("",!0),t(x).status.value==="error"?(l(),S(d,{key:1,class:"fadeIn text-center py-10 @sm:py-16 space-y-4"},{default:i(()=>[e("div",St,[o(c,{icon:"tabler:wifi-off",class:"text-4xl text-kit-500 inline-block"}),It,Dt]),e("button",{onClick:s[1]||(s[1]=r=>t(x).refresh()),class:"btn btn-kit text-white mx-auto"}," Retry ")]),_:1})):I("",!0),t(f)?(l(),S(d,{key:2,kit:"",class:"space-y-3 @sm:space-y-4 fadeIn relative"},{default:i(()=>[$t,e("div",Tt,[e("div",jt,[e("div",Rt,[o(t(Q),{"stroke-width":"2.5",class:"h-4.5 w-4.5 shrink-0 text-kit-500"}),e("p",null,[A(T(t(f).length)+" ",1),e("span",Lt," deck"+T(t(f).length!==1?"s":""),1)])])])]),e("span",Vt,[o(c,{icon:"mdi:star-four-points",class:"inline-block"}),At])]),_:1})):I("",!0),(((le=(ie=t(x).data)==null?void 0:ie.value)==null?void 0:le.resourcesWithoutDecks.length)||-1)>0?(l(),S($,{key:3,"target-type":"deck",onRemove:Z,onRefresh:s[2]||(s[2]=r=>t(x).refresh()),resources:(de=(ce=t(x).data)==null?void 0:ce.value)==null?void 0:de.resourcesWithoutDecks,description:"The resources below don't have any decks associated with them, so you won't be able to use them in your study session until you make a deck for them."},null,8,["resources"])):I("",!0),t(f).length===0&&t(x).status.value!=="error"?(l(),S(d,{key:4,class:"fadeIn text-center py-10 @sm:py-16 space-y-4"},{default:i(()=>[Pt,e("button",{onClick:G,class:"mx-auto w-full max-w-xs border-2 rounded border-kit-200 bg-white/40 border-dashed p-6 flex flex-col items-center justify-center space-y-1 hover:border-kit-300 hover:bg-kit-50 dark:bg-brown-950 dark:border-brown-700 dark:hover:bg-brown-800 group text-kit-300 hover:text-kit-400"},[o(t(me),{size:40}),Ft])]),_:1})):I("",!0),t(f).length>0?(l(),k("div",Nt,[t(f).length>0?(l(),S(n,{key:0,class:"flex space-x-1 border-t-2 border-kit-100 p-3 pt-2.5 @sm:hidden"},{default:i(()=>[o(g,{button:"",onClick:s[3]||(s[3]=r=>M.value=!0),class:"study-btn w-full flex items-center space-x-1.5 px-2 py-1"},{default:i(()=>[o(t(Q),{class:"h-5 w-5 shrink-0"}),Wt]),_:1})]),_:1})):I("",!0),o(d,{class:"w-full @sm:max-w-xs shrink-0 space-y-4"},{default:i(()=>[Et,o(u),e("aside",qt,[Ht,e("span",Mt,T(t(fe))+" / "+T(t(_).length),1)]),e("div",Bt,[(l(!0),k(N,null,W(t(xe),(r,p)=>(l(),k("div",{key:p,class:"flex flex-col items-center space-y-2"},[e("div",zt,[o(R,{percent:t(_).length>0?r/t(_).length:0,class:D(["h-18 @sm:h-[86px] aspect-square",{New:"text-brown-300 dark:text-brown-500",Familiar:"text-kit-300 dark:text-kit-500",Mastered:"text-kit-500 dark:text-kit-800"}[p]])},null,8,["percent","class"]),e("p",{class:"text-brown-700 dark:text-brown-500 @sm:text-xl absolute text-lg",title:`${r} Cards are ${p}`},[A(T(t(_).length>0?(r/t(_).length*100).toFixed(0):0),1),Ut],8,Ot)]),e("p",Gt,T(p),1)]))),128))])]),_:1}),e("div",Yt,[o(d,{unpad:"",class:"flex flex-col @sm:flex-row @sm:items-center"},{default:i(()=>[e("div",Xt,[Jt,e("p",Kt,[e("span",Qt,T(t(j).points_today.toLocaleStr
47ing()),1),A("/"+T(t(j).points_goal.toLocaleString()),1),Zt]),e("div",es,[e("div",ts,[e("div",{class:"h-full rounded-full bg-kit-500",style:Pe(`width: min(100%,${t(j).points_today/t(j).points_goal*100}%);`)},null,4)]),(l(),S(Fe(t(j).streakState==="early"?t(wt):t(pe)),{"stroke-width":"3.5",class:D(["h-3 w-3 shrink-0",t(j).points_today>=t(j).points_goal?"text-kit-500":"text-kit-300"])},null,8,["class"]))]),o(L)]),t(f).length>0?(l(),k("div",ss,[o(g,{onClick:s[4]||(s[4]=r=>M.value=!0),class:"study-btn flex flex-1 justify-center items-center px-2 py-1 flex-col space-y-0.5"},{default:i(()=>[o(t(Q),{class:"h-5 w-5 shrink-0"}),os]),_:1})])):I("",!0)]),_:1}),o(d,{unpad:"",class:"space-y-2 @sm:space-y-3 py-3 @sm:py-4"},{default:i(()=>[as,o(he,{items:t(f).length+(t(f).length?1:0)},{cta:i(()=>[e("p",is,[A(" Add a "),o(m,{button:"",onClick:G},{default:i(()=>[A("resource")]),_:1}),A(" to begin studying vocabulary. ")])]),default:i(()=>[(l(!0),k(N,null,W(t(f),r=>(l(),k("div",{key:r.id,class:"block relative"},[e("button",{onClick:p=>Z(r.id),class:"absolute top-2 right-2 flex items-center justify-center rounded-full p-1 @sm:p-2 hover:bg-kit-50/40 hover:text-kit-400 group text-kit-300"},[o(t(pe),{class:"h-5 w-5"})],8,rs),o(w,K({class:"h-full",min:""},r,{"num-cards":r.cards.length}),null,16,["num-cards"])]))),128)),t(f).length>0?(l(),k("button",{key:0,onClick:G,class:"border-2 rounded border-kit-200 bg-white/40 border-dashed p-4 flex flex-col items-center justify-center @sm:space-y-1 hover:border-kit-300 hover:bg-kit-50/40 group text-kit-300 hover:text-kit-400 dark:bg-brown-900 hover:dark:bg-brown-900/40"},[o(t(me),{size:40}),ns])):I("",!0)]),_:1},8,["items"])]),_:1})])])):I("",!0),t(f).length>0?(l(),S(d,{key:6,class:"space-y-4"},{default:i(()=>[e("div",ls,[cs,o(ve,{class:"relative h-5 w-5 shrink-0"},{default:i(()=>[o(ke,{class:"text-brown-400 hover:text-kit-400"},{default:i(()=>[o(t(vt),{"stroke-width":"2.5",class:"h-5 w-5"})]),_:1}),o(Ne,{"enter-from-class":"opacity-0 -translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-1"},{default:i(()=>[o(we,{class:"absolute left-0 z-20 transition-[transform,opacity]"},{default:i(({close:r})=>[o(be,{class:"left-0 w-6",size:"lg",kiss:""},{default:i(()=>[ds]),_:1})]),_:1})]),_:1})]),_:1})]),t(f).length>0?(l(),S(Ce,{key:0,"selected-index":t(J),onChange:s[13]||(s[13]=r=>J.value=r)},{default:i(()=>[e("div",us,[o(ye,{class:"flex"},{default:i(()=>[o(oe,{as:"template"},{default:i(({selected:r})=>[e("button",{class:D(["@sm:text-sm rounded-l border-2 border-r px-2 py-0.5 text-xs font-medium uppercase tracking-wide",r?"bg-kit-100 border-kit-200 text-kit-500 dark:bg-kit-900 dark:border-kit-800 dark:text-kit-100":"bg-kit-25 border-kit-100 text-kit-300 hover:bg-kit-50 hover:border-brown-200/60 hover:text-kit-400/80 dark:border-kit-800 dark:text-kit-100 dark:bg-brown-900 dark:hover:bg-kit-900 dark:hover:text-brown-100"])}," All Cards ",2)]),_:1}),o(oe,{as:"template"},{default:i(({selected:r})=>[e("button",{class:D(["@sm:text-sm rounded-r border-2 border-l px-2 py-0.5 text-xs font-medium uppercase tracking-wide",r?"bg-kit-100 border-kit-200 text-kit-500 dark:bg-kit-900 dark:border-kit-800 dark:text-kit-100":"bg-kit-25 border-kit-100 text-kit-300 hover:bg-kit-50 hover:border-brown-200/60 hover:text-kit-400/80 dark:border-kit-800 dark:text-kit-100 dark:bg-brown-900 dark:hover:bg-kit-900 dark:hover:text-brown-100"])}," Review List ",2)]),_:1})]),_:1}),e("div",ms,[t(y)?(l(),k("div",ps,[e("button",{onClick:s[5]||(s[5]=r=>te("show")),title:"Select all cards",disabled:t(B)==="hide",class:D(["inline-flex items-center justify-center bg-brown-50 p-px rounded border-2 border-brown-200",t(B)==="hide"&&"opacity-60"])},[o(t(yt),{"stroke-width":"2.5",class:"w-4.5 h-4.5"})],10,fs),e("button",{onClick:s[6]||(s[6]=r=>te("hide")),title:"Deselect all cards",disabled:t(B)==="show",class:D(["inline-flex items-center justify-center bg-brown-50 p-px rounded border-2 border-brown-200",t(B)==="show"&&"opacity-60"])},[o(t(gt),{"stroke-width":"2.5",class:"w-4.5 h-4.5"})],10,xs)])):I("",!0),e("div",_s,[hs,o(ae,{modelValue:t(y),"onUpdate:modelValue":s[7]||(s[7]=r=>O(y)?y.value=r:null),class:D([t(y)?"bg-kit-500 border-kit-500":"bg-kit-200 border-kit-200","relative flex h-4 w-7 items-center rounded-full border-2 transition-colors"])},{default:i(()=>[e("div",{class:D(["absolute h-3 w-3 rounded-full bg-white transition-[left]",t(y)?"left-3":"left-0"])},null,2)]),_:1},8,["modelValue","class"])]),e("div",ks,[bs,o(ae,{modelValue:t(P),"onUpdate:modelValue":s[8]||(s[8]=r=>O(P)?P.value=r:null),class:D([t(P)?"bg-kit-500 border-kit-500":"bg-kit-200 border-kit-200","relative flex h-4 w-7 items-center rounded-full border-2 transition-colors"])},{default:i(()=>[e("div",{class:D(["absolute h-3 w-3 rounded-full bg-white transition-[left]",t(P)?"left-3":"left-0"])},null,2)]),_:1},8,["modelValue","class"])])])]),o(ge,null,{default:i(()=>[o(re,{class:"space-y-1"},{default:i(()=>[(l(!0),k(N,null,W(t(_).slice(0,t(X)),r=>(l(),S(z,K({card:r,peek:t(P),select:t(y)},{key:r.id,modelValue:t(h),"onUpdate:modelValue":s[9]||(s[9]=p=>O(h)?h.value=p:null),onToggleReview:s[10]||(s[10]=p=>se(p))}),null,16,["modelValue"]))),128))]),_:1}),o(re,{class:"space-y-1"},{default:i(()=>[t(Y).length>0?(l(!0),k(N,{key:0},W(t(Y).slice(0,t(X)),r=>(l(),S(z,K({card:r,peek:t(P),select:t(y)},{key:r.id,modelValue:t(h),"onUpdate:modelValue":s[11]||(s[11]=p=>O(h)?h.value=p:null),onToggleReview:s[12]||(s[12]=p=>se(p))}),null,16,["modelValue"]))),128)):(l(),k("div",ws,[e("div",vs,[ys,e("p",gs,[A(" Toggle the "),o(t(ct),{"stroke-width":"2.5",class:"h-3 w-3 @sm:h-3.5 @sm:w-3.5 text-brown-600 inline"}),A(" icon on a card you'd like to add to your list. ")])])]))]),_:1})]),_:1}),e("div",{ref_key:"lastItem",ref:ee,class:"space-x-3 px-3 @sm:space-x-4"},[(l(),k(N,null,W({New:"0-4",Familiar:"5-9",Mastered:"10"},(r,p)=>e("div",{key:p,class:"inline-flex space-x-1.5"},[e("span",{class:D(["rounded-full px-1.5 text-xs text-white @sm:text-sm",{New:"bg-brown-300",Familiar:"bg-kit-300",Mastered:"bg-kit-500"}[p]])},T(r),3),e("span",Cs,T(p),1)])),64))],512)]),_:1},8,["selected-index"])):(l(),k("div",Ss,Ds))]),_:1})):I("",!0)]),o(De,{show:t(U),as:"template"},{default:i(()=>[o(Ie,{as:"div",open:t(U),onClose:s[14]||(s[14]=r=>U.value=!1),class:"z-[50] fixed flex text-brown-800 dark:text-brown-100 justify-center inset-0 p-4 py-12 mx-auto h-screen w-screen overflow-y-auto pointer-events-none"},{default:i(()=>[o(ne,{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:i(()=>[$s]),_:1}),o(ne,{as:"div",class:"w-full max-w-4xl transform overflow-hidden overflow-y-auto scrollbar roun
47ded-2xl bg-white p-6 align-middle shadow-xl transition-all text-left pointer-events-auto",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:i(()=>[o(Se,{title:"Universal Import",text:"You've already used your free import. Become a supporter to access this feature and more ❤️",class:"h-full md:flex items-center",features:[{icon:"tabler:file-type-pdf",text:"Import PDFs, DOCX, and more note formats"},{icon:"tabler:video",text:"Import Videos from YouTube or your Own Device"},{icon:"tabler:wand",text:"Auto Create Resources From The Web"},{icon:"tabler:clock",text:"Transformed into Cards, Notes, and Tests in Minutes"}]},{default:i(()=>[e("div",Ts,[o(c,{class:"text-6xl",icon:"vscode-icons:file-type-pdf2"}),o(c,{class:"text-5xl",icon:"logos:youtube-icon"}),o(c,{class:"text-6xl",icon:"flat-color-icons:audio-file"}),o(c,{class:"text-6xl",icon:"fxemoji:document"})]),e("aside",js,[o(c,{icon:"tabler:chevron-down",class:"text-4xl inline-block"})]),e("div",Rs,[o(z,{class:"bg-white",card:{question:"How did the Industrial Revolution impact the world?",answer:"The creation of new technologies, increased production of goods, and the rise of urbanization."}},null,8,["card"]),o(z,{class:"bg-white hidden md:block",card:{question:"What is the difference between absolute and relative location?",answer:"Absolute Location refers to the exact latitude and longitude coordinates of a specific place on Earth"}})])]),_:1})]),_:1})]),_:1},8,["open"])]),_:1},8,["show"])],64)}}});export{Bo 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.