PageSourceSearch

https://english-unpacked.lovable.app/assets/TechTalkSection-BWocK5cM.js

js english-unpacked.lovable.app collected 2026-10-03 03:31:15 UTC 8,622 bytes, 6 lines download raw bytes

1import{e as k,r as u,j as e,C as d,a as m,R as y,B as c,W as N,p as v,k as C,Q as S,S as T,N as I,L as A,F as L}from"./index-s4pdDsnf.js";import{t as R}from"./techTalkData-D3zVb1WR.js";import{I as x}from"./InfoSection-wUl0yhQM.js";import{M as $}from"./MatchingExercise-D70jaKHS.js";import{M as B}from"./MultipleChoiceQuiz-B0yMcCwR.js";import{C as b}from"./chevron-up-Ch4XGPOU.js";import{C as f}from"./circle-check-CpK5Xfb5.js";import{I as M}from"./info-CZzlY0Im.js";import{A as j}from"./arrow-left-CBFO7C_W.js";import{A as g}from"./arrow-right-BkAx2mp-.js";import"./useActivityTracking-CRABKqd1.js";import"./lightbulb-Cg9ZDfVm.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const z=k("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),E=({track:s,title:t,script:a})=>{const[r,i]=u.useState(!1);return e.jsx(d,{className:"bg-muted/40 border-dashed",children:e.jsxs(m,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:e.jsx(y,{className:"h-5 w-5"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"text-sm font-semibold text-foreground",children:["▶ Audio ",s,t?` — ${t}`:""]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"🎧 Audio coming soon. Work through the printed prompts in the meantime."}),e.jsx("audio",{controls:!0,className:"w-full mt-2 opacity-60","aria-disabled":!0,children:e.jsx("source",{src:""})})]})]}),a&&a.length>0&&e.jsxs("div",{className:"mt-3 pt-3 border-t border-border/50",children:[e.jsxs(c,{variant:"ghost",size:"sm",className:"gap-1 h-7",onClick:()=>i(l=>!l),children:[r?e.jsx(b,{className:"h-3.5 w-3.5"}):e.jsx(N,{className:"h-3.5 w-3.5"}),r?"Hide audio script":"Show audio script"]}),r&&e.jsx("div",{className:"mt-2 space-y-2 text-sm text-foreground bg-background/60 rounded-lg p-3",children:a.map((l,o)=>e.jsx("p",{children:l},o))})]})]})})},w=({answers:s})=>{const[t,a]=u.useState(!1);return e.jsxs("div",{className:"mt-3",children:[e.jsxs(c,{variant:"ghost",size:"sm",className:"gap-1 h-7",onClick:()=>a(r=>!r),children:[e.jsx(z,{className:"h-3.5 w-3.5"}),t?"Hide answer key":"Show answer key",t?e.jsx(b,{className:"h-3.5 w-3.5"}):e.jsx(N,{className:"h-3.5 w-3.5"})]}),t&&e.jsx("ul",{className:"mt-2 space-y-1 bg-emerald-50 dark:bg-emerald-950/20 border border-emerald-200/60 rounded-lg p-3 text-sm",children:s.map((r,i)=>e.jsxs("li",{className:"flex items-start gap-2 text-emerald-900 dark:text-emerald-200",children:[e.jsx(f,{className:"h-4 w-4 mt-0.5 shrink-0"})," ",e.jsx("span",{children:r})]},i))})]})},F=({a:s})=>{var r;const[t,a]=u.useState(!1);return e.jsx(x,{title:s.title||"Fill in the blanks",children:e.jsxs("div",{className:"space-y-3",children:[(r=s.blanks)==null?void 0:r.map((i,l)=>e.jsxs("div",{className:"p-3 rounded-lg border border-border",children:[e.jsxs("p",{className:"text-foreground",children:[e.jsxs("span",{className:"font-semibold text-muted-foreground mr-2",children:[l+1,"."]}),i.prompt]}),t&&e.jsxs("p",{className:"mt-1 text-sm text-green-700 dark:text-green-400 flex items-center gap-1",children:[e.jsx(f,{className:"h-4 w-4"})," ",i.answer]})]},l)),e.jsx(c,{variant:"outline",size:"sm",onClick:()=>a(i=>!i),children:t?"Hide answers":"Show answers"})]})})},H=({a:s})=>{var t;return e.jsx(x,{title:s.title||"Key vocabulary",children:e.jsx("div",{className:"flex flex-wrap gap-2",children:(t=s.words)==null?void 0:t.map(a=>e.jsx("span",{className:"px-3 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium",children:a},a))})})},K=({a:s})=>e.jsxs(x,{title:s.title||"Discussion",children:[s.body&&e.jsx("p",{className:"text-foreground mb-3 whitespace-pre-line",children:s.body}),s.bullets&&e.jsx("ul",{className:"space-y-2 list-disc list-inside text-foreground",children:s.bullets.map((t,a)=>e.jsx("li",{children:t},a))}),s.answers&&e.jsx(w,{answers:s.answers})]}),U=({a:s})=>{var t;return e.jsx(x,{title:s.title||"Reading",children:e.jsx("div",{className:"space-y-3 text-foreground leading-relaxed",children:(t=s.passage)==null?void 0:t.map((a,r)=>
6e.jsx("p",{children:a},r))})})},W=({a:s})=>e.jsx(d,{className:"border-l-4 border-l-blue-500 bg-blue-50/40 dark:bg-blue-950/20",children:e.jsxs(m,{className:"p-5",children:[e.jsxs("h4",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(M,{className:"h-4 w-4 text-blue-600"})," ",s.title||"Language note"]}),s.body&&e.jsx("p",{className:"text-foreground whitespace-pre-line",children:s.body})]})}),D=({a:s})=>e.jsx(d,{className:"border-l-4 border-l-primary",children:e.jsxs(m,{className:"p-5",children:[e.jsx("h4",{className:"font-semibold text-foreground mb-2",children:s.title||"Task"}),s.body&&e.jsx("p",{className:"text-foreground whitespace-pre-line",children:s.body}),s.bullets&&e.jsx("ul",{className:"mt-2 space-y-1 list-disc list-inside text-foreground",children:s.bullets.map((t,a)=>e.jsx("li",{children:t},a))}),s.answers&&e.jsx(w,{answers:s.answers})]})}),Q=({a:s})=>e.jsx(d,{className:"border-dashed bg-amber-50/40 dark:bg-amber-950/10",children:e.jsxs(m,{className:"p-4",children:[e.jsx("h4",{className:"font-semibold text-foreground mb-1 text-sm",children:s.title||"Note"}),s.body&&e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.body})]})}),P=({activities:s})=>e.jsx("div",{className:"space-y-6",children:s.map((t,a)=>{switch(t.type){case"audio":return e.jsx(E,{track:t.track||"?",title:t.title,script:t.script},a);case"intro":case"discussion":return e.jsx(K,{a:t},a);case"reading":return e.jsx(U,{a:t},a);case"word-list":return e.jsx(H,{a:t},a);case"fill-blanks":return e.jsx(F,{a:t},a);case"language-note":return e.jsx(W,{a:t},a);case"matching":return e.jsx($,{title:t.title||"Matching exercise",description:t.body,pairs:t.pairs||[],leftLabel:"Item",rightLabel:"Match"},a);case"multiple-choice":return e.jsx(B,{title:t.title||"Quiz",description:t.body||"",questions:(t.mcq||[]).map((r,i)=>({id:i+1,text:r.question,options:r.options,answer:r.options[r.answerIndex]}))},a);case"task":return e.jsx(D,{a:t},a);case"note":return e.jsx(Q,{a:t},a);default:return null}})}),re=()=>{const{unitId:s,sectionId:t}=v(),a=C(),r=R.find(n=>n.id===s),i=r==null?void 0:r.sections.find(n=>n.id===t);if(!r||!i)return e.jsx(S,{to:"/tech-talk",replace:!0});const l=r.sections.findIndex(n=>n.id===t),o=l>0?r.sections[l-1]:null,h=l<r.sections.length-1?r.sections[l+1]:null,p=n=>{a(n),window.scrollTo({top:0,behavior:"smooth"})};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(T,{title:`${i.title} — ${r.title} | Tech Talk Intermediate`,description:i.description}),e.jsx(I,{}),e.jsx("section",{className:"bg-primary/10 py-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("span",{className:"text-sm font-medium text-muted-foreground",children:["Unit ",r.number,": ",r.title," · ",i.source==="SB"?"Student's Book":"Workbook"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mt-1",children:i.title}),e.jsx("p",{className:"text-muted-foreground mt-2",children:i.description})]})}),e.jsxs("main",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[e.jsx("div",{className:"mb-8",children:e.jsx(A,{to:`/tech-talk/${r.id}`,children:e.jsxs(c,{variant:"ghost",className:"gap-2",children:[e.jsx(j,{className:"h-4 w-4"})," Back to ",r.title]})})}),e.jsx(P,{activities:i.activities}),e.jsxs("div",{className:"flex justify-between items-center mt-12 pt-6 border-t border-border",children:[o?e.jsxs(c,{variant:"outline",className:"gap-2",onClick:()=>p(`/tech-talk/${r.id}/${o.id}`),children:[e.jsx(j,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:o.title}),e.jsx("span",{className:"sm:hidden",children:"Previous"})]}):e.jsx("div",{}),h?e.jsxs(c,{className:"gap-2 bg-primary hover:bg-primary/90",onClick:()=>p(`/tech-talk/${r.id}/${h.id}`),children:[e.jsx("span",{className:"hidden sm:inline",children:h.title}),e.jsx("span",{className:"sm:hidden",children:"Next"}),e.jsx(g,{className:"h-4 w-4"})]}):e.jsxs(c,{className:"gap-2 bg-primary hover:bg-primary/90",onClick:()=>p(`/tech-talk/${r.id}`),children:["Back to Unit ",e.jsx(g,{className:"h-4 w-4"})]})]})]}),e.jsx(L,{})]})};export{re 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.