PageSourceSearch

https://utwpolska.pl/assets/PlacementTestStart-BJ87VI6i.js

js utwpolska.pl collected 2026-10-06 12:54:23 UTC 7,237 bytes, 6 lines download raw bytes

1import{c as b,z,r as n,k as N,j as e,S as f,e as o,ao as y,q as k,p as v,A as E,an as T}from"./index-BPOcIo0n.js";import{C as L}from"./check-circle-2-CYKplh2T.js";/**
2 * @license lucide-react v0.344.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 S=b("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),R={angielski:"J4WCxajxY5RGkpzd",hiszpanski:"efrJO5JDjjw5KRuu",niemiecki:"hkUL92mkqV9IxnID",wloski:"Nv7EoJvcGlzEw2rU",francuski:"p449KHw3RZUksBgN"},j="https://edupanel.utwpolska.pl",P=`${j}/test-poziomujacy/`;function W(i){if(!i||typeof i!="object")return null;const t=i;return t.type!=="edupanel:placement-test-result"||typeof t.level!="string"||!t.level?null:{level:t.level,score:Number(t.score)||0,maxScore:Number(t.maxScore)||0,percentage:Number(t.percentage)||0}}function M(){const{lang:i}=z(),t=(i||"").toLowerCase(),x=R[t],a=n.useMemo(()=>N.find(s=>s.id===t),[t]),[r,d]=n.useState(null),l=n.useRef(null),c=n.useRef(0);if(n.useEffect(()=>{const s=m=>{var h;if(m.origin!==j||m.source!==((h=l.current)==null?void 0:h.contentWindow))return;const u=W(m.data);u&&(d(u),window.scrollTo({top:0,behavior:"smooth"}))};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)},[]),!a||!x)return e.jsxs("div",{className:"bg-surface min-h-screen pt-32 pb-24",children:[e.jsx(f,{title:"Test nie został znaleziony | UTW APS",description:"Wybrany test poziomujący nie jest dostępny.",canonicalPath:"/testy-poziomujace",robots:"noindex,follow"}),e.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold font-serif text-primary mb-6",children:"Nie znaleźliśmy tego testu"}),e.jsx("p",{className:"text-primary/70 font-medium mb-8",children:"Wybierz język z listy testów poziomujących."}),e.jsxs(o,{to:"/testy-poziomujace",className:"inline-flex items-center gap-2 bg-primary text-white px-6 py-3 rounded-xl font-bold hover:bg-primary-light transition-colors",children:[e.jsx(y,{className:"w-5 h-5"}),"Wróć do testów"]})]})]});const p=`${P}?token=${x}`,w=()=>{var s;c.current+=1,c.current>1&&((s=l.current)==null||s.scrollIntoView({behavior:"smooth",block:"start"}))},g=()=>{c.current=0,d(null)};return e.jsxs("div",{className:"bg-surface min-h-screen pb-16",children:[e.jsx(f,{title:`Test poziomujący — ${a.lang} | UTW APS`,description:`Bezpłatny test poziomujący z języka ${a.lang.toLowerCase()}. Sprawdź swój poziom — bez stresu, bez limitu czasu.`,canonicalPath:`/testy-poziomujace/start/${t}`,robots:"noindex,follow"}),e.jsx("section",{className:"pt-28 pb-8 bg-white border-b border-primary/5",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[e.jsxs(o,{to:"/testy-poziomujace",className:"inline-flex items-center gap-2 text-accent hover:text-primary font-bold mb-6 transition-colors",children:[e.jsx(y,{className:"w-5 h-5"}),"Wybierz inny język"]}),e.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[e.jsx("span",{className:"text-4xl","aria-hidden":!0,children:a.emoji}),e.jsxs("h1",{className:"text-3xl md:text-4xl font-bold font-serif text-primary leading-tight",children:["Test poziomujący — ",a.lang]})]}),e.jsx("p",{className:"text-primary/70 font-medium leading-relaxed max-w-3xl",children:"Rozwiąż test w spokojnym tempie. Zaraz po wysłaniu odpowiedzi zobaczysz tutaj swój poziom i podpowiemy, do której grupy się zapisać."})]})}),e.jsx("section",{className:"py-10",children:e.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:r?e.jsxs("div",{className:"bg-white rounded-3xl border border-primary/10 shadow-soft p-8 md:p-12 text-center",children:[e.jsx("div",{className:"w-20 h-20 mx-auto rounded-full bg-green-100 flex items-center justify-center mb-6",children:e.jsx(L,{className:"w-10 h-10 text-green-600"})}),e.jsx("p",{className:"text-sm font-bold uppercase tracking-wider text-primary/60 mb-2",children:"Twój poziom"}),e.jsx("h2",{className:"text-4xl md:text-5xl font-bold font-serif text-primary mb-4",children:r.level}),r.maxScore>0&&e.jsxs("p",{className:"text-lg text-primary/75 font-medium mb-2",children:[r.score," z ",r.maxScore," pkt (",r.percentage,"%)"]}),e.jsx("p",{className:"text-primary/60 font-medium leading-relaxed max-w-2xl mx-auto mb-10",children:"Przy zapisie wybierz grupę na tym poziomie. Jeśli w teście zaznaczono wysyłkę wyniku, kopia trafi też na pod
6any adres e-mail."}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 max-w-xl mx-auto mb-8",children:[e.jsxs("div",{className:"bg-surface rounded-2xl p-5 flex items-center gap-3 text-left",children:[e.jsx(k,{className:"w-5 h-5 text-accent shrink-0"}),e.jsx("p",{className:"text-primary/80 font-medium text-sm leading-snug",children:'Nie widzisz maila z wynikiem? Zajrzyj do folderu „Spam".'})]}),e.jsxs("div",{className:"bg-surface rounded-2xl p-5 flex items-center gap-3 text-left",children:[e.jsx(v,{className:"w-5 h-5 text-green-600 shrink-0"}),e.jsxs("p",{className:"text-primary/80 font-medium text-sm leading-snug",children:["Wahasz się między grupami? ",e.jsx(o,{to:"/kontakt",className:"font-bold text-accent hover:text-primary",children:"Napisz do nas"})," — pomożemy wybrać."]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[e.jsxs(o,{to:`/zapisy?course=${t}`,className:"inline-flex items-center justify-center gap-2 bg-primary text-white px-7 py-4 rounded-2xl font-bold hover:bg-primary-light transition-colors shadow-lg w-full sm:w-auto",children:["Zapisz się na kurs",e.jsx(E,{className:"w-5 h-5"})]}),e.jsx(o,{to:"/testy-poziomujace",className:"inline-flex items-center justify-center gap-2 bg-white text-primary px-7 py-4 rounded-2xl font-bold border-2 border-primary/10 hover:border-primary/30 transition-colors w-full sm:w-auto",children:"Wróć do testów"}),e.jsxs("button",{type:"button",onClick:g,className:"inline-flex items-center justify-center gap-2 text-primary/60 hover:text-primary px-5 py-3 font-bold text-sm transition-colors w-full sm:w-auto",children:[e.jsx(T,{className:"w-4 h-4"}),"Rozwiąż jeszcze raz"]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-3xl border border-primary/10 shadow-soft overflow-hidden",children:e.jsx("iframe",{ref:l,src:p,title:`Test poziomujący — ${a.lang}`,className:"w-full block scroll-mt-28",style:{minHeight:"1400px",height:"90vh",border:"none"},onLoad:w})}),e.jsxs("div",{className:"mt-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 text-sm text-primary/60 font-medium",children:[e.jsx("p",{className:"leading-snug",children:"Test ładowany jest z platformy EduPanel. Wynik pokażemy tutaj zaraz po wysłaniu odpowiedzi."}),e.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-accent hover:text-primary font-bold transition-colors whitespace-nowrap",children:["Otwórz w nowej karcie",e.jsx(S,{className:"w-3.5 h-3.5"})]})]})]})})})]})}export{M as PlacementTestStart};

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.