PageSourceSearch

https://v2.dende.ai/assets/index-DalKXevh.js

js dende.ai collected 2026-10-03 21:02:04 UTC 2,532 bytes, 1 lines download raw bytes

1import{A as P,C as Q,o as A,f as N,r as o,E as z,j as d,S as C,F as O}from"./index-CX9Yt7tV.js";import{u as G}from"./usePractice-DLQwsXJX.js";import{F as Y}from"./index-Dm6mGK7h.js";import{Q as Z}from"./index-BIwZomLG.js";import{B as $}from"./index-DtGFsrfc.js";import"./useModal-CdoRY_V_.js";import"./useScrollHighlightById-Dsq_v9Of.js";import"./index-DAt2TEz5.js";import"./sequential-CsDTyT7W.js";import"./timePressure-Ynsv69rE.js";import"./index-CMfHl9FO.js";import"./index-BauQG4ra.js";import"./useModalDialogsLayout-DJYzJ8eZ.js";import"./arrow-icon-B_1ykC_o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"d08f5907ff4ed0f3fc55f7aec34166a744102d67"};var s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="1902c279-aec8-41d1-937a-7e125ecc78b1",e._sentryDebugIdIdentifier="sentry-dbid-1902c279-aec8-41d1-937a-7e125ecc78b1")}catch{}})();const q=10,nt=()=>{var g,h,y,b,I;const{resourceId:e}=P(),{state:s}=Q(),r=A(),{translate:M}=N(),{handleResourcePractice:E,closeQuizModal:L,isOpen:v}=G(),[c,f]=o.useState(null),[m,l]=o.useState([]),{data:t,isLoading:p,isFetching:T}=z({resource_id:e||"",size:q,last_learning_material_id:c||void 0},{skip:!e,refetchOnMountOrArgChange:!0});o.useEffect(()=>{var i;if((i=t==null?void 0:t.data)!=null&&i.items){const x=t.data.items;if(c===null)l(x);else{const B=new Set(m.map(n=>n.id)),R=x.filter(n=>!B.has(n.id));l(n=>[...n,...R])}}},[(g=t==null?void 0:t.data)==null?void 0:g.items]),o.useEffect(()=>()=>{l([]),f(null)},[]);const u=!!((h=t==null?void 0:t.data)!=null&&h.last),S=((y=t==null?void 0:t.data)==null?void 0:y.total)||0,_=(b=t==null?void 0:t.data)==null?void 0:b.progress,a=(I=t==null?void 0:t.data)==null?void 0:I.resource,k=()=>{var i;u&&!p&&!T&&((i=t==null?void 0:t.data)!=null&&i.last)&&f(t.data.last)},w=()=>{r(`${O.studyMaterial.index}?tab=flashcards`,{state:{id:e}})},j=()=>{e&&E(e)};return d.jsxs("div",{className:"flex flex-col gap-4 pb-1 h-[calc(100dvh-90px)] sm:h-[calc(100dvh-60px)]",children:[d.jsx($,{handleBackToLearningModule:w,title:M("pages.flashcards.backToFlashcard")}),v&&d.jsx(Z,{onClose:L,studyMaterialType:C.Flashcards}),d.jsx(Y,{chapterId:void 0,resourceId:e,title:a==null?void 0:a.name,progress:_,resourceSection:void 0,resourceTitle:a==null?void 0:a.name,flashcardsNumber:(s==null?void 0:s.total)||S||0,flashcards:m,isLoading:p,handlePracticeFlashcard:j,hasMore:u,handleLoadMore:k})]})};export{nt as FlashcardResourse};

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.