1import{r,j as t}from"./react-core.BDt0pQY0.js";import{at as d,au as u,bK as h,bL as b}from"./index.De8hWtDH.js";import{C as j}from"./chevron-up.Cg_biQtW.js";import{C as w}from"./chevron-down.CG8ixt_n.js";const E=({darkMode:x,faqs:n,pad:m})=>{const[a,f]=r.useState(null),p=r.useRef([]),o=r.useRef(null);r.useEffect(()=>{o.current=a},[a]),r.useLayoutEffect(()=>{const l=()=>{if(o.current===null&&(p.current.forEach(e=>{e&&(e.style.minHeight="")}),!(window.innerWidth<1024)))for(let e=0;e<n.length;e+=2){const s=p.current[e],i=p.current[e+1];if(!s)continue;const g=Math.max(s.offsetHeight,i?i.offsetHeight:0);s.style.minHeight=g+"px",i&&(i.style.minHeight=g+"px")}};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[n]);const c=(l,e)=>t.jsx(b,{index:e,y:22,duration:.75,children:t.jsxs("div",{ref:s=>{p.current[e]=s},onClick:()=>f(a===e?null:e),className:` 2 p-[20px] tablet:py-[25px] tablet:px-[30px] lg:py-[34px] lg:px-[40px] 3 rounded-[20px] tablet:rounded-[30px] lg:rounded-[40px] 4 border transition-all duration-300 cursor-pointer 5 ${x?"border-[#353438] bg-black":"border-[#E3E3E4] bg-white"} 6 `,children:[t.jsxs("button",{className:"w-full flex items-center justify-between gap-4 text-left",children:[t.jsx("div",{className:"text-[16px] tablet:text-[18px] font-medium",children:l.question}),t.jsx("span",{className:"shrink-0",children:a===e?t.jsx(j,{className:`h-5 w-5 ${x?"text-[#C6C5C7]":"text-[#46454A]"}`}):t.jsx(w,{className:`h-5 w-5 ${x?"text-[#C6C5C7]":"text-[#46454A]"}`})})]}),t.jsx("div",{className:`overflow-hidden transition-all duration-300 ${a===e?"max-h-[500px] pt-[20px]":"max-h-0"}`,children:t.jsx("div",{className:"text-[14px] tablet:text-[16px] lg:text-[18px] leading-relaxed opacity-90 text-left",dangerouslySetInnerHTML:{__html:l.answer}})})]})},e);return t.jsx("section",{className:`${m?"":"p-[30px] tablet:p-[40px] lg:p-[60px]"} ${x?"bg-[#0B0B0B] text-[#C6C5C7]":"bg-[#FCFCFC] text-[#46454A]"}`,style:{fontFamily:"Satoshi"},children:t.jsxs("div",{children:[t.jsxs("div",{className:"text-left flex flex-col tablet:gap-[24px] mb-[24px] tablet:mb-[36px] lg:gap-[30px] lg:mb-[40px]",children:[t.jsx(d,{className:"text-[20px] tablet:text-[24px] lg:text-[24px] font-bold mb-3",children:"FAQs"}),t.jsx(u,{delay:.16,className:"text-[14px] tablet:text-[16px] lg:text-[18px]",children:"Everything you need to know about our worldwide Teacher Training program"})]}),t.jsxs(h,{step:.06,className:"flex flex-col lg:flex-row gap-[20px] tablet:gap-[24px] lg:gap-[30px]",children:[t.jsx("div",{className:"flex flex-col gap-[20px] tablet:gap-[24px] lg:gap-[30px] flex-1",children:n.filter((l,e)=>e%2===0).map((l,e)=>c(l,e*2))}),t.jsx("div",{className:"flex flex-col gap-[20px] tablet:gap-[24px] lg:gap-[30px] flex-1",children:n.filter((l,e)=>e%2===1).map((l,e)=>c(l,e*2+1))})]})]})})};export{E as G};
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.