PageSourceSearch

https://learn.lalia.io/_next/static/chunks/pages/vocab/debug-4271345e423d5886.js

js lalia.io collected 2026-10-09 17:38:32 UTC 7,347 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5312],{61592:function(e,t,a){var n=a(52074).w_;e.exports.F=function(e){return n({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(e)}},42060:function(e,t,a){var n=a(52074).w_;e.exports.a=function(e){return n({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}},9439:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/vocab/debug",function(){return a(94690)}])},77207:function(e,t,a){"use strict";var n=a(97458),r=a(52983),s=a(61592),l=a(42060);let i=[{label:"My Decks",items:[{label:"Cards",href:"/vocab"},{label:"Decks",href:"/vocab/decks"}]},{label:"Games",items:[{label:'"Anki"',href:"/vocab/cardDisplay"},{label:"Crossword",href:"/experiments/crossword"},{label:"Synoflex",href:"/experiments/synoflex"}]},{label:"Dev",items:[{label:"Index",href:"/vocab"},{label:"Developer",href:"/vocab/developer"},{label:"Articles",href:"/articles"}]}];t.Z=function(){let[e,t]=(0,r.useState)(!1),a=(0,r.useRef)(null);(0,r.useEffect)(()=>{function e(e){a.current&&!a.current.contains(e.target)&&t(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let c=()=>{t(!e)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:"fixed top-4 right-4 rounded-md  p-2 text-blue-600 transition-colors duration-200 hover:text-gray-900",onClick:c,children:e?(0,n.jsx)(l.a,{size:20}):null}),(0,n.jsx)("button",{className:"fixed top-4 left-4 rounded-md bg-gray-100 p-2 text-gray-600 transition-colors duration-200 hover:text-gray-900",onClick:c,children:e?null:(0,n.jsx)(s.F,{size:20})}),(0,n.jsxs)("div",{ref:a,className:"fixed top-0 left-0 z-50 h-screen w-64 bg-white py-4 shadow-lg transition-all duration-200 ".concat(e?"translate-x-0":"-translate-x-full"),children:[(0,n.jsx)("h2",{className:"my-auto px-4 text-center text-lg font-bold uppercase tracking-wider text-gray-900",children:"Menu"}),i.map(e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"my-auto border-b border-gray-300 py-2 px-4 text-lg font-bold text-gray-900 hover:text-primary-600",children:e.label}),e.items.map(e=>(0,n.jsx)("a",{href:e.href,className:"my-auto block px-4 py-2 text-gray-600 transition-colors duration-200 hover:bg-gray-100 hover:text-primary-600",children:e.label},e.label))]},e.label))]})]})}},26718:function(e,t,a){"use strict";a.d(t,{O:function(){return r}});var n=a(40739);function r(e){let t=n.S.experiments.lankia.addVocab.useMutation(),a=n.S.experiments.lankia.addVocabToCurrentUser.useMutation(),r=n.S.experiments.lankia.addExistingCardToDeck.useMutation(),s=n.S.experiments.lankia.addNewCardToDeck.useMutation(),l=n.S.experiments.lankia.addDeck.useMutation(),i=n.S.experiments.lankia.getAllVocab.useQuery(void 0,{staleTime:1/0,enabled:e}),c=n.S.experiments.lankia.getAllPublicDecks.useQuery(void 0,{staleTime:1/0,enabled:e}),o=n.S.experiments.lankia.getAllDecksForUser.useQuery(void 0,{staleTime:1/0,enabled:e}),d=n.S.experiments.lankia.getAllUserVocab.useQuery(void 0,{staleTime:1/0,enabled:e}),u=n.S.experiments.lankia.updateUserVocab.useMutation(),x=n.S.experiments.lankia.decrementUserVocab.useMutation(),m=n.S.experiments.lankia.removeUserVocab.useMutation(),h=n.S.experiments.lankia.removeVocab.useMutation(),b=n.S.experiments.lankia.removeCardDeckRecord.useMutation(),p=n.S.experiments.lankia.updateDeck.useMutation(),f=n.S.experiments.lankia.removeDeck.useMutation();return{isAddingCard:t.isLoading||a.isLoading||r.isLoading||s.isLoading,addVocab:(e,a,n,r)=>
1t.mutateAsync({keyphrase:e,definition:a,examples:n,cardID:r}),addVocabToCurrentUser:(e,t,n)=>a.mutateAsync({cardID:e,mastery:t,notes:n||null}),addExistingVocabToDeck:(e,t)=>r.mutateAsync({cardID:e,deckID:t}),addNewVocabToDeck:(e,t,a,n,r)=>s.mutateAsync({keyphrase:e,definition:t,examples:a,cardID:r,deckID:n}),addDeck:(e,t,a)=>l.mutateAsync({deck:e,isPublic:t,deckID:a}),getAllVocabQuery:i,getAllUserVocabQuery:d,getDeckVocabQuery:t=>n.S.experiments.lankia.getDeckVocab.useQuery({deck:t},{staleTime:1/0,enabled:e}),getDeckUserVocabQuery:t=>n.S.experiments.lankia.getDeckUserVocab.useQuery({deck:t},{staleTime:1/0,enabled:e}),getAllPublicDeckQuery:c,getAllUserDeckQuery:o,updateUserVocab:(e,t,a)=>u.mutateAsync({cardID:e,mastery:t,notes:a||null}),decrementUserVocabCountdown:e=>x.mutateAsync({cardID:e}),removeUserVocab:e=>m.mutateAsync({cardID:e}),removeVocab:e=>h.mutateAsync({cardID:e}),removeCardDeckRecord:e=>b.mutateAsync({cardID:e}),updateDeck:(e,t)=>p.mutateAsync({deck:e,deckID:t}),removeDeck:e=>f.mutateAsync({deckID:e})}}},94690:function(e,t,a){"use strict";a.r(t);var n=a(97458),r=a(76754),s=a(23559),l=a(77207),i=a(26718);t.default=function(){let{getAllUserVocabQuery:e}=(0,i.O)(),{data:t,isLoading:a}=e;return(0,n.jsxs)("div",{className:"min-h-screen bg-gray-100",children:[(0,n.jsx)(l.Z,{}),a&&(0,n.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center space-y-4",children:[(0,n.jsx)("header",{className:"text-xl font-bold",children:"Preparing your learning..."}),(0,n.jsx)(s.Z,{size:200})]}),!a&&(0,n.jsx)("div",{className:"flex h-full flex-row",children:(0,n.jsxs)("div",{className:"m-4 flex w-full flex-col items-center justify-evenly",children:[(0,n.jsx)("div",{className:"mb-4 text-xl font-bold",children:"Card Records:"}),(0,n.jsxs)("table",{className:"table w-full",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{}),(0,n.jsx)("th",{children:"Vocabulary"}),(0,n.jsx)("th",{children:"Countdown"}),(0,n.jsx)("th",{children:"Due date"}),(0,n.jsx)("th",{children:"Last seen"}),(0,n.jsx)("th",{children:"cardScore"}),(0,n.jsx)("th",{children:"Mastery"})]})}),(0,n.jsx)("tbody",{children:null==t?void 0:t.map((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t+1}),(0,n.jsx)("td",{children:e.keyphrase.en}),(0,n.jsx)("td",{children:e.countdown}),(0,n.jsx)("td",{children:e.nextAppearance}),(0,n.jsx)("td",{children:e.lastSeen}),(0,n.jsx)("td",{children:e.cardScore}),(0,n.jsx)("td",{children:e.mastery})]},t))})]})]})}),!a&&(0,n.jsxs)("div",{className:"fixed inset-x-1 bottom-0 m-4 flex flex-row justify-evenly",children:[(0,n.jsx)(r.tR,{href:"/experiments/crossword",className:"btn bg-purple-400 text-black no-underline hover:bg-purple-600 hover:no-underline",disabled:(null!=t?t:[]).length<3,children:"Crossword"}),(0,n.jsx)(r.tR,{href:"/experiments/synoflex",className:"btn bg-blue-400 text-black no-underline hover:no-underline",disabled:(null!=t?t:[]).length<3,children:"SynoFlex"})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=9439)}),_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.