PageSourceSearch

https://www.haylingua.am/assets/lessonPreload-dc7bc234.js

js haylingua.am collected 2026-10-04 08:02:26 UTC 940 bytes, 2 lines download raw bytes

1import{b as l}from"./index-c61a06a9.js";const h=new Map,i=3;function p(t){const s=(t==null?void 0:t.config)||{},c=t==null?void 0:t.id,e=[],n=new Set,a=o=>{const r=(o||"").trim();!r||n.has(r)||(n.add(r),e.push({text:r,exerciseId:c}))};return a(s.ttsText??s.text),a((t==null?void 0:t.expected_answer)??s.answer??s.target??s.phrase),Array.isArray(s.lines)&&s.lines.forEach(o=>a(o==null?void 0:o.text)),e}function A(t,s){if(!t)return null;if(h.has(t))return h.get(t);const c=s||{}.VITE_API_BASE_URL||"https://haylinguav2.onrender.com",e=fetch(`${c}/lessons/${t}`).then(n=>n.ok?n.json():null).then(n=>n?((Array.isArray(n.exercises)?n.exercises:[]).slice(0,i).forEach(o=>{p(o).forEach(({text:r,exerciseId:u})=>{l(c,{text:r,exerciseId:u}).then(f=>URL.revokeObjectURL(f)).catch(()=>{})})}),n):null).catch(()=>null);return h.set(t,e),e}function E(t){return t&&h.get(t)||null}export{E as g,A as p};
2//# sourceMappingURL=lessonPreload-dc7bc234.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.