PageSourceSearch

https://abair.ie/_next/static/chunks/app/page-e8878eec1387bba1.js

js abair.ie collected 2026-10-02 04:41:57 UTC 43,674 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{368:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(5155),i=a(4274);a(8102);var s=a(3811);function n(e){let{isDark:t=!1}=e,{t:a}=(0,i.Bd)();return(0,r.jsx)("section",{className:"".concat(t?"bg-gray-900 border-gray-800":"bg-white border-gray-100"," border-t"),children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 sm:py-16",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6 sm:space-y-8",children:[(0,r.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold ".concat(t?"text-white":"text-gray-900"," mb-0 leading-tight tracking-tight text-center"),children:a("social_media.title")}),(0,r.jsx)("div",{className:"flex items-center space-x-4 sm:space-x-6 md:space-x-8",children:s.V.map(e=>{let a=e.icon;return(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group relative flex flex-col items-center","aria-label":e.ariaLabel,children:[(0,r.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 md:w-16 md:h-16 flex items-center justify-center rounded-full ".concat(t?"bg-gray-800 text-gray-300":"bg-gray-100 text-gray-600"," ").concat(e.hoverColor," hover:text-white transition-all duration-300 transform hover:scale-110"),children:(0,r.jsx)(a,{className:"h-6 w-6 sm:h-7 sm:w-7 md:h-8 md:w-8"})}),(0,r.jsx)("span",{className:"absolute top-full mt-2 text-sm font-medium ".concat(t?"text-gray-300":"text-gray-700"," opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap"),children:e.name})]},e.name)})})]})})})}},919:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5105).A)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},941:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>J});var r=a(5155),i=a(5239),s=a(4033),n=a(4274),l=a(2115),o=a(5105);let c=(0,o.A)("Ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]);
1var d=a(9e3),g=a(9142),m=a(2987),h=a(2619),p=a.n(h),u=a(6953);a(8102);var x=a(1544),b=a(3400);function f(){let{t:e}=(0,n.Bd)(),[t,a]=(0,l.useState)(""),[i,s]=(0,l.useState)(null),{recording:o,processing:h,error:f,secondsRemaining:w,maxRecordingSeconds:A,startRecording:v,stopRecording:y}=(0,u.w)({onFinalResult:e=>{a(e)},onError:t=>{console.error("Recognition error:",t),a(e("mini_recognition_preview.errorProcessingAudio"))}});(0,l.useEffect)(()=>{(async()=>{if(o&&!i)try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});s(e)}catch(e){console.error("Error getting audio stream:",e)}else!o&&i&&(i.getTracks().forEach(e=>e.stop()),s(null))})()},[o,i]);let j=async()=>{a(""),await v()};return(0,r.jsxs)("div",{className:"bg-gradient-to-br from-white to-blue-50 rounded-xl p-4 transition-all duration-300 hover:shadow-lg shadow-md border border-blue-200/50 w-full max-w-80 lg:w-80",children:[(0,r.jsxs)("div",{className:"mb-3 text-center",children:[(0,r.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 flex items-center justify-center gap-2",children:[(0,r.jsx)(c,{className:"w-5 h-5 text-blue-600"}),e("mini_recognition_preview.title")]}),(0,r.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:e("mini_recognition_preview.subtitle")})]}),(0,r.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,r.jsx)("button",{onClick:()=>{o?y():j()},"aria-label":e(o?"a11y.stop_recording":"a11y.start_recording"),"aria-pressed":o,className:"px-3 py-2 rounded-lg font-medium transition-all flex items-center justify-center bg-blue-500 hover:bg-blue-600 text-white focus:outline-none focus:ring-2 focus:ring-blue-300",children:o?(0,r.jsx)(d.A,{className:"w-4 h-4"}):(0,r.jsx)(g.A,{className:"w-4 h-4"})}),o&&i?(0,r.jsx)("div",{className:"flex-1 min-h-[40px] h-[40px]",children:(0,r.jsx)(x.A,{stream:i,height:40,width:288,strokeColor:"#3b82f6"})}):(0,r.jsx)("div",{className:"flex-1 min-h-[40px] p-2 text-sm border border-blue-200 rounded-lg bg-white flex items-start",children:h?(0,r.jsxs)("div",{className:"flex items-center space-x-2 text-blue-600",children:[(0,r.jsx)("div",{className:"animate-spin w-3 h-3 border-2 border-blue-600 border-t-transparent rounded-full"}),(0,r.jsx)("span",{className:"text-xs",children:e("mini_recognition_preview.processing")})]}):t?(0,r.jsx)("p",{className:"text-gray-900 font-medium text-xs leading-relaxed",children:t}):(0,r.jsx)("span",{className:"text-gray-400 text-sm",children:e("mini_recognition_preview.clickToRecord")})})]}),o&&(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsx)(b.A,{secondsRemaining:w,maxSeconds:A})}),(0,r.jsxs)(p(),{href:"/recognition",className:"group inline-flex items-center justify-center w-full bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg font-medium transition-colors duration-200 text-sm",children:[e("mini_recognition_preview.goToRecognition"),(0,r.jsx)(m.A,{className:"w-4 h-4 ml-1 group-hover:translate-x-1 transition-transform"})]})]})}var w=a(5130),A=a(5870),v=a(3511),y=a(5408),j=a(9155);function _(){let{t:e}=(0,n.Bd)(),[t,a]=(0,l.useState)(!1),i=(0,l.useRef)(null),{dialect:s,setDialect:o,gender:c,setGender:d,selectedVoice:g,allVoices:h,synthesisText:u,setSynthesisText:x,synthesisAudio:b,awaitingSynthesis:f,synthesisAudioPlaying:_,setSynthesisAudioPlaying:N,audioRef:k,initTTS:R,stopSynthesisAudio:I}=(0,y.X)();(0,l.useEffect)(()=>{let e=e=>{i.current&&!i.current.contains(e.target)&&a(!1)};return t&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t]);let C=async()=>{if(_)return void I();u.trim()&&g&&await R()},S=(0,j.x0)(h,s,e=>e.voices.length>0);return(0,r.jsxs)("div",{className:"bg-gradient-to-tr to-white from-green-50 rounded-xl p-4 transition-all duration-300 hover:shadow-lg shadow-md border border-green-200/50 w-full max-w-80 lg:w-80 relative",children:[(0,r.jsxs)("div",{className:"mb-3 text-center",children:[(0,r.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 flex items-center justify-center gap-2",children:[(0,r.jsx)(w.A,{className:"w-5 h-5 text-green-600"}),e("mini_synthesis_preview.title")]}),(0,r.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:e("mini_synthesis_preview.subtitle")})]}),(0,r.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,r.jsx)("input",{type:"text",value:u,onChange:e=>x(e.target.value),"aria-label":e("a11y.text_to_synthesize"),className:"flex-1 min-w-0 p-2 text-sm border border-green-200 rounded-lg focus:border-green-500 focus:ring-1 focus:ring-green-200 focus:outline-none transition-colors bg-white",placeholder:e("mini_synthesis_preview.placeholder")}),(0,r.jsx)("button",{onClick:()=>a(!t),"aria-label":e("a11y.voice_settings"),"aria-expanded":t,className:"w-10 h-10 rounded-lg font-medium transition-all flex items-center justify-center flex-shrink-0 bg-gray-100 hover:bg-gray-200 text-gray-700 focus:outline-none focus:ring-2 focus:ring-green-300",children:(0,r.jsx)(A.A,{className:"w-4 h-4"})}),(0,r.jsx)("button",{onClick:C,disabled:!u.trim()||f||!g,className:"w-10 h-10 rounded-lg font-medium transition-all flex items-center justify-center flex-shrink-0 ".concat(u.trim()&&!f&&g?"bg-green-500 hover:bg-green-600 text-white":"bg-gray-200 text-gray-400 cursor-not-allowed"),children:f?(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent roun
1ded-full animate-spin"}):_?(0,r.jsx)(v.A,{className:"w-4 h-4"}):(0,r.jsx)(w.A,{className:"w-4 h-4"})})]}),t&&(0,r.jsxs)("div",{ref:i,className:"absolute top-20 left-0 right-0 mx-4 bg-white rounded-lg shadow-xl border border-gray-200 p-3 z-50",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:e("mini_synthesis_preview.voiceSettings")}),(0,r.jsxs)("div",{className:"mb-2",children:[(0,r.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:e("synthesis_page.dialectLabel")}),(0,r.jsx)("select",{value:s,onChange:e=>o(e.target.value),className:"w-full p-2 text-sm border border-gray-200 rounded-lg focus:border-green-500 focus:ring-1 focus:ring-green-200 focus:outline-none bg-white",children:(0,j.WF)(h).map(t=>{let a=(0,j.i7)(t);return(0,r.jsx)("option",{value:t,children:a?e(a):t},t)})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:e("synthesis_page.genderLabel")}),(0,r.jsxs)("select",{value:c,onChange:e=>d(e.target.value),className:"w-full p-2 text-sm border border-gray-200 rounded-lg focus:border-green-500 focus:ring-1 focus:ring-green-200 focus:outline-none bg-white",disabled:0===S.length,children:[S.includes("female")&&(0,r.jsx)("option",{value:"female",children:e("synthesis_page.genderOptions_female")}),S.includes("male")&&(0,r.jsx)("option",{value:"male",children:e("synthesis_page.genderOptions_male")})]})]}),g&&(0,r.jsxs)("div",{className:"mt-2 pt-2 border-t border-gray-200 text-xs text-gray-600",children:[e("mini_synthesis_preview.currentVoice"),": ",g.name]}),(0,r.jsx)("button",{onClick:()=>a(!1),className:"w-full mt-3 bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg font-medium transition-colors text-sm",children:e("mini_synthesis_preview.acceptSettings")})]}),(0,r.jsx)("audio",{ref:k,src:b,onEnded:()=>N(!1),preload:"metadata"}),(0,r.jsxs)(p(),{href:"/synthesis?text=".concat(encodeURIComponent(u),"&dialect=").concat(s,"&gender=").concat(c),className:"group inline-flex items-center justify-center w-full bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg font-medium transition-colors duration-200 text-sm",children:[e("mini_synthesis_preview.goToSynthesis"),(0,r.jsx)(m.A,{className:"w-4 h-4 ml-1 group-hover:translate-x-1 transition-transform"})]})]})}let N=(0,o.A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);var k=a(919),R=a(482);function I(){var e;let{t:t}=(0,n.Bd)(),a=(0,l.useRef)(null),[i,s]=(0,l.useState)("IDLE"),[o,c]=(0,l.useState)([]),[h,b]=(0,l.useState)(null),{voices:f}=(0,R.F)(),w=(0,l.useMemo)(()=>{var e,t;return null!=(t=null!=(e=f.find(e=>"Connemara"===e.locale&&"female"===e.gender&&e.voices.length>0))?e:f[0])?t:null},[f]),{recording:A,processing:v,error:y,startRecording:_,stopRecording:I}=(0,u.w)({onFinalResult:async e=>{if(e.trim()){let t={role:"user",content:e};c(e=>[...e,t]),await S(e)}else s("IDLE")},onError:e=>{console.error("Recognition error:",e),s("IDLE")}});(0,l.useEffect)(()=>{(async()=>{if(A&&!h)try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});b(e)}catch(e){console.error("Error getting audio stream for visualization:",e)}else!A&&h&&(h.getTracks().forEach(e=>e.stop()),b(null))})()},[A,h]);let C=(null==(e=o.filter(e=>"assistant"===e.role).pop())?void 0:e.content)||"";(0,l.useEffect)(()=>{A||v?s("LISTENING"):s(e=>"LISTENING"===e?"IDLE":e)},[A,v]),(0,l.useEffect)(()=>{("PROCESSING_LLM"===i||"PREPARING_AUDIO"===i||"PLAYING_AUDIO"===i)&&A&&I()},[i,A,I]);let S=async e=>{s("PROCESSING_LLM");try{let t=o.map(e=>({role:e.role,content:e.content}));t.push({role:"user",content:e});let a=await fetch("/api/s2s",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:t})});if(!a.ok)throw Error("API request failed: ".concat(a.status));let{text:r}=await a.json(),i={role:"assistant",content:r};c(e=>[...e,i]),await E(i)}catch(t){console.error("Error generating AI response:",t);let e={role:"assistant",content:"Gabh mo leithsc\xe9al, t\xe1 fadhb agam faoi l\xe1thair. An f\xe9idir leat triail eile a bhaint as?"};c(t=>[...t,e]);try{await E(e)}catch(e){console.error("Synthesis error after AI error:",e),s("IDLE")}}},E=async e=>{if(!w)return void s("IDLE");s("PREPARING_AUDIO");try{let t=await (0,j.ru)(e.content,w,"PIPER",1);if(t&&t.audioContent){let e="data:audio/wav;base64,"+t.audioContent;s("PLAYING_AUDIO"),a.current&&(a.current.src=e,a.current.play())}}catch(e){console.error("Synthesis error:",e),s("IDLE")}};return(0,r.jsxs)("div",{className:"bg-gradient-to-br from-white to-purple-50 rounded-xl p-4 transition-all duration-300 hover:shadow-lg shadow-md border border-purple-200/50 w-full max-w-80 lg:w-80 min-h-40 flex flex-col",children:[(0,r.jsxs)("div",{className:"mb-3 text-center",children:[(0,r.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 flex items-center justify-center gap-2",children:[(0,r.jsx)(N,{className:"w-5 h-5 text-purple-600"}),t("mini_speech_to_speech_preview.title")]}),(0,r.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:t("mini_speech_to_speech_preview.subtitle")})]}),(0,r.jsxs)("div",{className:"flex gap-2 mb-3 flex-1 items-start",children:[(0,r.jsx)("button",{onClick:A?()=>{I(),s("IDLE")}:_,disabled:v||"IDLE"!==i&&!A,className:"w-10 h-[40px] rounded-lg font-medium transition-all flex items-center justify-center flex-shrink-0 ".concat(v?"bg-yellow-500 text-white":A?"bg-red-500 hover:bg-red-600 animate-pulse text-white":"IDLE"===i?"bg-purple-600 hover:bg-purple-700 text-white":"bg-gray-300 text-gray-500 cursor-not-allowed"),children:v||"PROCESSING_LLM"===i?(0,r.jsx)(k.A,{className:"w-3.5 h-3.5 animate-spin"}):A||"LISTENING"===i?(0,r.jsx)(d.A,{className:"w-3.5 h-3.5"}):(0,r.jsx)(g.A,{className:"w-3.5 h-3.5"})}
1),A&&h?(0,r.jsx)("div",{className:"flex-1 min-h-[40px] h-[40px]",children:(0,r.jsx)(x.A,{stream:h,height:40,width:240,strokeColor:"#9333ea"})}):(0,r.jsx)("div",{className:"flex-1 min-h-[40px] p-2 text-sm border border-purple-200 rounded-lg focus-within:border-purple-500 focus-within:ring-1 focus-within:ring-purple-200 transition-colors bg-white flex items-start",children:C?(0,r.jsx)("p",{className:"text-gray-900 font-medium text-xs leading-relaxed",children:C}):(0,r.jsx)("span",{className:"text-gray-400 text-sm",children:t("mini_speech_to_speech_preview.placeholder")})})]}),(0,r.jsx)("audio",{ref:a,onEnded:()=>{s("IDLE")},preload:"none"}),(0,r.jsxs)(p(),{href:"/speech-to-speech",className:"group inline-flex items-center justify-center w-full bg-purple-500 hover:bg-purple-600 text-white px-4 py-2 rounded-lg font-medium transition-colors duration-200 text-sm",children:[t("mini_speech_to_speech_preview.try_full_version"),(0,r.jsx)(m.A,{className:"w-4 h-4 ml-1 group-hover:translate-x-1 transition-transform"})]})]})}function C(){let{t:e}=(0,n.Bd)();return(0,r.jsxs)("section",{className:"relative min-h-[calc(100vh-4rem)] flex flex-col overflow-hidden py-4",children:[(0,r.jsx)(i.default,{src:"/home_bg.svg",alt:"","aria-hidden":"true",fill:!0,className:"object-cover fixed",priority:!0}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-white/45 to-white/0 z-10"}),(0,r.jsx)("div",{className:"relative max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 z-20 flex-[1] flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center w-full",children:[(0,r.jsx)("div",{className:"mb-4 sm:mb-6 md:mb-8 lg:mb-10 flex justify-center",children:(0,r.jsx)(i.default,{src:"/abair_logo.svg",alt:e("hero.logoAlt"),width:128,height:128,className:"h-12 sm:h-16 md:h-20 lg:h-28 w-auto opacity-90",style:{filter:"saturate(80%) hue-rotate(0deg) brightness(140%) contrast(100%)"}})}),(0,r.jsx)("h1",{className:"text-gray-700 text-base sm:text-lg md:text-2xl lg:text-3xl mb-6 sm:mb-8 md:mb-12 lg:mb-16 font-light leading-tight tracking-tight",children:e("hero.tagline")}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 lg:gap-8 justify-center items-center w-full",children:[(0,r.jsx)(_,{}),(0,r.jsx)(f,{}),(0,r.jsx)(I,{})]})]})}),(0,r.jsx)("div",{className:"flex-[2]"}),(0,r.jsx)("button",{onClick:()=>{let e=window.pageYOffset,t=window.innerHeight-64-e,a=null,r=i=>{null===a&&(a=i);let s=Math.min((i-a)/600,1);window.scrollTo(0,e+t*(s<.5?2*s*s:-1+(4-2*s)*s)),s<1&&requestAnimationFrame(r)};requestAnimationFrame(r)},className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 z-10 text-white hover:text-white transition-colors duration-200 animate-bounce rounded-full focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-transparent","aria-label":e("hero.scrollDownLabel"),children:(0,r.jsx)(s.A,{className:"w-8 h-8"})})]})}var S=a(6482),E=a(8901);function L(){let{t:e}=(0,n.Bd)(),t={education:{backgroundImage:"/preview_section_home/scealai.webp",gradient:"from-emerald-600/80 to-emerald-800/80"},accessibility:{backgroundImage:"/preview_section_home/aac.webp",gradient:"from-purple-600/80 to-purple-800/80"},public:{backgroundImage:"/preview_section_home/fotheidil.webp",gradient:"from-orange-600/80 to-orange-800/80"}},a=(0,S.Zb)().map(a=>({id:a.id,title:e(a.titleKey.replace("applications_page.categories_","projects_preview.")),icon:a.icon,description:e(a.descriptionKey.replace("applications_page.categories_","projects_preview.")),backgroundImage:t[a.id].backgroundImage,projects:(0,S.bb)(a.id).filter(e=>e.link||e.demoPagePath).map(t=>({name:e(t.nameKey),link:t.link,demoPagePath:t.demoPagePath,status:t.status})),gradient:t[a.id].gradient}));return(0,r.jsx)("section",{className:"py-16 bg-white",children:(0,r.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"text-center mb-16",children:[(0,r.jsx)("h2",{className:"text-5xl md:text-6xl lg:text-7xl font-bold text-gray-900 mb-8 leading-tight tracking-tight",children:e("projects_preview.title")}),(0,r.jsx)("p",{className:"text-2xl text-gray-600 max-w-4xl mx-auto leading-relaxed font-light",children:e("projects_preview.subtitle")})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-start",children:a.map(t=>(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg hover:shadow-xl transition-shadow duration-300 overflow-hidden border border-gray-100 flex flex-col",children:[(0,r.jsxs)("div",{className:"relative p-6 text-white overflow-hidden",children:[(0,r.jsx)(i.default,{src:t.backgroundImage,alt:"","aria-hidden":"true",fill:!0,className:"object-cover"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br ".concat(t.gradient)}),(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsxs)("div",{className:"flex items-center mb-3",children:[(0,r.jsx)(t.icon,{className:"w-7 h-7 mr-3"}),(0,r.jsx)("h3",{className:"text-xl font-bold",children:t.title})]}),(0,r.jsx)("p",{className:"text-white/95 text-sm leading-relaxed",children:t.description})]})]}),(0,r.jsxs)("div",{className:"p-6 flex-1 flex flex-col gap-3",children:[t.projects.map((e,a)=>{let i=e.link||e.demoPagePath||"#",s=!!e.link&&!e.link.startsWith("/");return(0,r.jsx)(p(),{href:i,target:s?"_blank":"_self",rel:s?"noopener noreferrer":void 0,onClick:()=>s&&(0,E.VR)(e.link),className:"block px-4 py-3 rounded-lg text-sm font-medium text-center transition-colors duration-200 ".concat("education"===t.id?"bg-emerald-50 text-emerald-700 hover:bg-emerald-100 border border-emerald-200":"accessibility"===t.id?"bg-purple-50 text-purple-700 hover:bg-purple-100 border border-purple-200":"bg-orange-50 text-orange-700 hover:bg-orange-100 border border-orange-200"),children:e.name},a)}),(0,r.jsxs)(p(),{href:"/applications?tab=".concat(t.id),className:"mt-4 inline-flex items-center justify-center px-4 py-3 rounded-lg text-sm font-semibold transition-all duration-200 ".concat("education"===t.id?"bg-emerald-600 hover:bg-emerald-700 text-white":"accessibility"===t.id?"bg-purple-600 hover:bg-purple-700 text-white":"bg-orange-600 hover:bg-orange-700 text-white"),children:[e("projects_preview.findOutMore"),(0,r.jsx)(m.A,{className:"w-4 h-4 ml-2"})]})]})]},t.id))})]})})}function U(){let{t:e}=(0,n.Bd)();return new Date>new Date("2026-02-21T23:59:59")?null:(0,r.jsx)("section",{id:"event-poster",className:"py-16 bg-white",children:(0,r.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)("div",{className:"w-full h-px bg-gradient-to-r from-transparent via-gray-300 to-transparent mb-16"}),(0,r.jsx)("div",{className:"text-center mb-12",children:(0,r.jsx)("h2",{className:"text-5xl md:text-6xl lg:text-7xl font-bold text-gray-900 leading-tight tracking-tight",children:e("event_banner.title")})}),(0,r.jsx)("div",{className:"relative w-full rounded-2xl overflow-hidden shadow-lg",children:(0,r.jsx)(i.default,{src:"/app_images/kerry_event.jpeg",alt:e("event_banner.poster_alt"),width:1200,height:800,className:"w-full h-auto",priority:!0})})]})})}var B=a(5229),D=a(6485),Q=a(6983),M=a(1873);function P(){let{t:e}=(0,n.Bd)(),[t,a]=(0,l.useState)(!1),[i,s]=(0,l.useState)(!1),o=new Date>new Date("2026-02-21T23:59:59");(0,l.useEffect)(()=>
1{if(!o&&!localStorage.getItem("event-banner-dismissed")){let e=setTimeout(()=>{a(!0),s(!0)},1e3);return()=>clearTimeout(e)}},[o]);let c=()=>{s(!1),setTimeout(()=>{a(!1),localStorage.setItem("event-banner-dismissed","true")},300)};return!t||o?null:(0,r.jsx)("div",{className:"fixed bottom-4 left-4 right-4 md:left-auto md:right-6 md:max-w-md z-50 transition-all duration-300 ".concat(i?"opacity-100 translate-y-0":"opacity-0 translate-y-4"),children:(0,r.jsx)("div",{className:"bg-gradient-to-r from-emerald-600 to-teal-600 rounded-2xl shadow-2xl overflow-hidden",children:(0,r.jsxs)("div",{className:"p-4 pr-12 relative",children:[(0,r.jsx)("button",{onClick:c,className:"absolute top-3 right-3 p-1 rounded-full hover:bg-white/20 transition-colors","aria-label":e("a11y.dismiss"),children:(0,r.jsx)(B.A,{className:"w-5 h-5 text-white"})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("h3",{className:"text-white font-bold text-lg mb-2",children:["\uD83D\uDCE2 ",e("event_banner.title")]}),(0,r.jsx)("p",{className:"text-emerald-100 text-sm mb-3 line-clamp-3",children:e("event_banner.description")}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-emerald-100 text-xs mb-3",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(D.A,{className:"w-4 h-4"}),e("event_banner.date")]}),(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(Q.A,{className:"w-4 h-4"}),e("event_banner.time")]}),(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(M.A,{className:"w-4 h-4"}),e("event_banner.location")]})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("button",{type:"button",onClick:()=>{let e=document.getElementById("event-poster");e&&e.scrollIntoView({behavior:"smooth"}),c()},"aria-label":e("event_banner.view_details_aria"),className:"inline-block bg-white/20 hover:bg-white/30 text-white text-sm px-4 py-2 rounded-lg transition-colors",children:[e("event_banner.view_details")," →"]})})]})]})})})}function K(e){let{isDark:t=!1,imagePosition:a="right",textAlign:s="left"}=e,{t:l}=(0,n.Bd)(),o=(0,r.jsx)("div",{className:"lg:w-1/2 relative overflow-hidden flex items-center ".concat(t?"":"bg-gradient-to-br from-gray-50 to-white"),children:(0,r.jsx)("div",{className:"w-full px-8 lg:px-16 py-16 lg:py-20 flex flex-col ".concat("center"===s?"items-center":"right"===s?"items-end":"items-start"),children:(0,r.jsxs)("div",{className:"center"===s?"text-center":"right"===s?"text-right":"text-left",children:[(0,r.jsx)("h2",{className:"text-4xl lg:text-5xl font-bold ".concat(t?"text-white":"text-gray-900"," mb-6 leading-tight tracking-tight"),children:l("about_us.title")}),(0,r.jsxs)("div",{className:"prose prose-lg ".concat(t?"text-slate-200":"text-gray-700"," mb-10"),children:[(0,r.jsx)("p",{className:"text-xl leading-relaxed font-light mb-4",children:l("about_us.paragraph1")}),(0,r.jsx)("p",{className:"text-xl leading-relaxed font-light",children:l("about_us.paragraph2")})]}),(0,r.jsxs)(p(),{href:"/about",className:"inline-flex items-center px-6 py-3 rounded-lg font-medium transition-all duration-200 ".concat(t?"bg-emerald-600 hover:bg-emerald-700 text-white shadow-lg hover:shadow-xl":"bg-emerald-600 hover:bg-emerald-700 text-white shadow-md hover:shadow-lg"),children:[l("about_us.read_more"),(0,r.jsx)("svg",{className:"ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})})}),c=(0,r.jsxs)("figure",{className:"lg:w-1/2 relative overflow-hidden m-0",children:[(0,r.jsx)("div",{className:"absolute inset-0",children:(0,r.jsx)(i.default,{src:"/group_photo.webp",alt:l("about_us.imageAlt"),fill:!0,className:"object-cover scale-105 transition-transform duration-700 hover:scale-100",priority:!0})}),(0,r.jsx)("div",{className:"absolute inset-0 ".concat(t?"left"===a?"bg-gradient-to-l from-slate-800 via-transparent to-transparent lg:bg-gradient-to-l lg:from-slate-800 lg:via-transparent lg:to-slate-800/20":"bg-gradient-to-r from-slate-800 via-transparent to-transparent lg:bg-gradient-to-r lg:from-slate-800 lg:via-trans
1parent lg:to-slate-800/20":"left"===a?"bg-gradient-to-l from-white via-white/50 to-transparent lg:bg-gradient-to-l lg:from-white lg:via-white/40 lg:to-transparent":"bg-gradient-to-r from-white via-white/50 to-transparent lg:bg-gradient-to-r lg:from-white lg:via-white/40 lg:to-transparent")}),(0,r.jsx)("figcaption",{className:"absolute bottom-0 left-0 right-0 px-6 py-4 bg-gradient-to-t from-black/70 to-transparent text-white/90 text-sm font-light tracking-wide text-center",children:l("about_us.photo_caption")})]});return(0,r.jsx)("section",{className:"relative overflow-hidden ".concat(t?"bg-slate-800 border-b border-gray-100":"bg-white border-b border-gray-200"," last:border-b-0"),children:(0,r.jsx)("div",{className:"flex flex-col lg:flex-row min-h-[600px]",children:"left"===a?(0,r.jsxs)(r.Fragment,{children:[c,o]}):(0,r.jsxs)(r.Fragment,{children:[o,c]})})})}function T(){let{t:e}=(0,n.Bd)();return(0,r.jsx)("section",{className:"relative overflow-hidden bg-white border-b border-gray-100 last:border-b-0",children:(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row lg:min-h-[600px]",children:[(0,r.jsx)("div",{className:"lg:w-1/2 relative overflow-hidden bg-white h-64 sm:h-80 lg:h-auto",children:(0,r.jsx)("div",{className:"absolute inset-0",children:(0,r.jsx)(i.default,{src:"/mile_glor_na_nog.webp",alt:e("contribute_section.imageAlt"),fill:!0,className:"object-contain object-center lg:object-right transition-transform duration-700",priority:!0})})}),(0,r.jsx)("div",{className:"lg:w-1/2 relative overflow-hidden flex items-center",children:(0,r.jsxs)("div",{className:"w-full px-6 sm:px-8 lg:px-16 py-8 sm:py-12 lg:py-20",children:[(0,r.jsx)("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 mb-4 sm:mb-6 leading-tight tracking-tight",children:e("contribute_section.title")}),(0,r.jsx)("div",{className:"prose prose-lg text-gray-700 mb-6 sm:mb-8 lg:mb-10",children:(0,r.jsx)("p",{className:"text-lg sm:text-xl leading-relaxed font-light mb-4",children:e("contribute_section.paragraph1")})}),(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)(p(),{href:"https://mileglornanog.abair.ie",target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,E.VR)("https://mileglornanog.abair.ie"),className:"inline-flex items-center justify-center bg-purple-600 hover:bg-purple-700 text-white px-6 py-3 sm:px-8 sm:py-4 rounded-xl text-sm sm:text-base font-semibold transition-all duration-300 hover:shadow-lg group",children:[e("contribute_section.startRecording"),(0,r.jsx)(m.A,{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform"})]})})]})})]})})}var G=a(368);function J(){let{t:e}=(0,n.Bd)();return(0,r.jsxs)("div",{className:"min-h-screen",children:[(0,r.jsx)(P,{}),(0,r.jsx)(C,{}),(0,r.jsx)(L,{}),(0,r.jsx)(U,{}),(0,r.jsx)(K,{isDark:!0,textAlign:"center"}),(0,r.jsx)(T,{}),(0,r.jsx)(G.A,{isDark:!0})]})}},1544:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(5155),i=a(2115),s=a(4274);let n=e=>{let{stream:t,backgroundColor:a="transparent",height:n=100,width:l=500,isStatic:o=!1,strokeColor:c="#fca5a5"}=e,{t:d}=(0,s.Bd)(),g=(0,i.useRef)(null),m=(0,i.useRef)(0),[h,p]=(0,i.useState)();(0,i.useEffect)(()=>{t&&!h&&p(new AudioContext)},[t,h]),(0,i.useEffect)(()=>{h&&!o?x(t,a):o&&g.current&&u()},[h,t,a,o]);let u=()=>{let e=g.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let a=t.createLinearGradient(0,0,l,0);a.addColorStop(0,"#dbeafe"),a.addColorStop(1,"#bfdbfe"),t.fillStyle=a,t.fillRect(0,0,l,n),t.lineWidth=3,t.strokeStyle=c,t.beginPath();let r=n/2;t.moveTo(0,r),t.lineTo(l,r),t.stroke()};(0,i.useEffect)(()=>()=>{cancelAnimationFrame(m.current)},[]);let x=(e,t)=>{if(cancelAnimationFrame(m.current),e&&h&&null!==g.current){let a=h.createMediaStreamSource(e),r=h.createAnalyser();r.fftSize=512;let i=r.frequencyBinCount,s=new Uint8Array(i),o=g.current.getContext("2d");a.connect(r);let d=()=>{if(null!==o&&null!==g.current){r.getByteTimeDomainData(s),o.clearRect(0,0,l,n),o.fillStyle=t,o.fillRect(0,0,l,n),o.lineWidth=3,o.strokeStyle=c,o.beginPath();let e=l/i,a=0;for(let t=0;t<i;t++){let r=s[t]/128*n/2;0===t?o.moveTo(a,r):o.lineTo(a,r),a+=e}o.stroke()}m.current=requestAnimationFrame(d)};d()}else{let e=g.current;if(e){let t=e.getContext("2d");t&&(t.clearRect(0,0,l,n),o&&u())}}},b=!!t&&!o;return(0,r.jsx)("div",{className:"rounded-lg overflow-hidden w-full",role:"img","aria-label":d(b?"a11y.audio_waveform_recording":"a11y.audio_waveform_idle"),children:(0,r.jsx)("canvas",{width:l,height:n,ref:g,className:"block w-full h-full","aria-hidden":"true"})})}},2987:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5105).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},3400:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(5155),i=a(1042),s=a.n(i),n=a(4274);function l(e){let{secondsRemaining:t,maxSeconds:a}=e,{t:i}=(0,n.Bd)(),l=t<=5,o=Math.min(1,Math.max(0,(a-t)/a));return(0,r.jsxs)("div",{className:"jsx-1441d4a3ac48cc77 w-full flex items-center gap-2",children:[(0,r.jsx)("div",{className:"jsx-1441d4a3ac48cc77 relative flex-1 h-1.5 rounded-full overflow-hidden bg-gray-200",children:(0,r.jsx)("div",{style:{width:"".concat((1-o)*100,"%")},className:"jsx-1441d4a3ac48cc77 "+"absolute right-0 top-0 h-full rounded-full transition-[width] duration-1000 ease-linear ".concat(l?"bg-red-600 recording-countdown-flash":"bg-blue-500")})}),(0,r.jsxs)("span",{"aria-hidden":"true",className:"jsx-1441d4a3ac48cc77 "+"text-xs font-bold tabular-nums leading-none ".concat(l?"text-red-600":"text-gray-500"),children:[t,"s"]}),(0,r.jsx)("span",{"aria-live":"polite",className:"jsx-1441d4a3ac48cc77 sr-only",children:t<=10?i("a11y.recording_time_remaining",{seconds:t}):""}),(0,r.jsx)(s(),{id:"1441d4a3ac48cc77",children:"@keyframes recording-countdown-flash{0%,100%{background-color:#fecaca}50%{background-color:#dc2626}}.recording-countdown-flash.jsx-1441d4a3ac48cc77{animation:recording-countdown-flash.6s ease-in-out infinite}"})]})}a(8102)},3811:(e,t,a)=>{"use strict";a.d(t,{V:()=>o});var r=a(5105);let i=(0,r.A)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]),s=(0,r.A)("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]),n=(0,r.A)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);var l=a(5155);let o=[{name:"Instagram",url:"https://www.instagram.com/abair_tcd/",
1icon:i,ariaLabel:"Instagram",hoverColor:"hover:bg-gradient-to-br hover:from-purple-600 hover:via-pink-600 hover:to-orange-500"},{name:"LinkedIn",url:"https://www.linkedin.com/company/abairtcd",icon:s,ariaLabel:"LinkedIn",hoverColor:"hover:bg-blue-700"},{name:"Facebook",url:"https://www.facebook.com/people/ABAIRie/61581827327964/",icon:n,ariaLabel:"Facebook",hoverColor:"hover:bg-blue-600"},{name:"Reddit",url:"https://www.reddit.com/r/AbairNEARTU/",icon:e=>(0,l.jsx)("svg",{...e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,l.jsx)("path",{d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})}),ariaLabel:"Reddit - Neart\xfa",hoverColor:"hover:bg-orange-600"}]},4033:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5105).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6482:(e,t,a)=>{"use strict";a.d(t,{Zb:()=>m,bb:()=>g});let r=(0,a(5105).A)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);var i=a(9442),s=a(1169);let n={src:"/_next/static/media/s2s_demo.c648668b.webp",height:829,width:1628,blurDataURL:"data:image/webp;base64,UklGRjYAAABXRUJQVlA4ICoAAACwAQCdASoIAAQAAkA4JZQAAxZg53oAAP79QSoRj0khyj25D1Qbh5QAAAA=",blurWidth:8,blurHeight:4},l={src:"/_next/static/media/fotheidil_demo.83c56dc4.webp",height:974,width:1918,blurDataURL:"data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAAAwAQCdASoIAAQAAkA4JaQAA3AA/vsB8L22XU5eH+9/k8gBrVgAAA==",blurWidth:8,blurHeight:4},o={src:"/_next/static/media/dictation_demo.ee29eccd.webp",height:502,width:1066,blurDataURL:"data:image/webp;base64,UklGRi4AAABXRUJQVlA4ICIAAAAwAQCdASoIAAQAAkA4JaQAA3AA/vq7H7RPAkizd/4QAAAA",blurWidth:8,blurHeight:4},c={src:"/_next/static/media/webreader_demo.086d97c5.webp",height:529,width:1304,blurDataURL:"data:image/webp;base64,UklGRjAAAABXRUJQVlA4ICQAAACQAQCdASoIAAMAAkA4JaQAAudP3WAA/vtMPJaHuZmTRIQAAAA=",blurWidth:8,blurHeight:3},d=[{id:"webreader-public",nameKey:"applications_page.projects_webreader_name",descriptionKey:"applications_page.projects_webreader_description",image:c,status:"active",link:"/webreader",category:"public"},{id:"fotheidil-public",nameKey:"applications_page.projects_fotheidil_name",descriptionKey:"applications_page.projects_fotheidil_description",status:"new",image:l,link:"https://fotheidil.abair.ie",category:"public",nameLang:"ga"},{id:"dictation-public",nameKey:"applications_page.projects_dictation_name",descriptionKey:"applications_page.projects_dictation_description",status:"new",image:o,link:"/recognition",category:"public"},{id:"speech-to-speech-public",nameKey:"applications_page.projects_speechToSpeech_name",descriptionKey:"applications_page.projects_speechToSpeech_description",status:"beta",image:n,link:"/speech-to-speech",category:"public"},{id:"an-scealai",nameKey:"applications_page.projects_anScealai_name",descriptionKey:"applications_page.projects_anScealai_description",status:"active",image:{src:"/_next/static/media/scealai_demo.b7bdcaef.webp",height:1080,width:919,blurDataURL:"data:image/webp;base64,UklGRpwAAABXRUJQVlA4WAoAAAAQAAAABgAABwAAQUxQSDIAAAABUBPJVvNqFIAXaiThg6FCCRZQQhfr9EkiImIC4AQAyMSeRkEBWESr64fI/Pwv8rleC1ZQOCBEAAAAsAEAnQEqBwAIAAJAOCWMAnQA83r8YAD+97JinwPhx09af33sFGz5VUuggdE+8KMYJUyvYGLnGMUHAKYZ+aoKU2IgAAA=",blurWidth:7,blurHeight:8},link:"https://scealai.abair.ie",category:"education",nameLang:"ga"},{id:"meall-an-oige",nameKey:"applications_page.projects_meallAnOige_name",descriptionKey:"applications_page.projects_meallAnOige_description",status:"in_progress",image:{src:"/_next/static/media/mao_demo.495d5f99.webp",height:915,width:1912,blurDataURL:"data:image/webp;base64,UklGRkYAAABXRUJQVlA4IDoAAADwAQCdASoIAAQAAkA4JagCdAEUpFD50AAA/sn/Mf1s/I/tt+KoJHqSp5QSfpxaOYU/AgRmBfEGZ6YA",blurWidth:8,blurHeight:4},demoPagePath:"meallanoige",category:"education",nameLang:"ga"},{id:"neartu",nameKey:"applications_page.projects_neartu_name",descriptionKey:"applications_page.projects_neartu_description",status:"new",image:{src:"/_next/static/media/neartu_cover.21605165.webp",height:1080,width:810,blurDataURL:"data:image/webp;base64,UklGRloAAABXRUJQVlA4IE4AAACwAQCdASoGAAgAAkA4JQBOgCHXTZyAAP6t159TTqERuFW3ERqMirCx36O2O1yRUj57hgPzNMdPX4Ko0F9UG7it1EFk3CAb0b80t0IPAAA=",blurWidth:6,blurHeight:8},link:"/neartu",category:"accessibility",nameLang:"ga"},{id:"screenreader",nameKey:"applications_page.projects_screenReader_name",descriptionKey:"applications_page.projects_screenReader_description",status:"active",image:{src:"/_next/static/media/ronan_using_screenreader.b49e42d4.png",height:493,width:627,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAZlBMVEVWMEpSWHHSs7xjTmoQEiJgPl6Svtrnv8tzS
1odsXZtsID2jh51whKpkWWKUh7SUcJpCGjQ8CSBoM2Spi5WzjKqji5m0c6NJRF5gT2JNaIMhOFbZnsFVN2DPlb/+3uZ+L1Wqvc3Om6ezT/0UAAAACXBIWXMAACHVAAAh1QEEnLSdAAAAOklEQVR4nAXBhQGAMBAAsat+BSjuuv+SJPRdCyk9BDb/fiLEcdmVlps4O7vm0xDKNOjjyjS+UtaZ+gdGDQJ73Y9t6QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},link:"/screenreader",category:"accessibility"},{id:"sapi",nameKey:"applications_page.projects_sapi_name",descriptionKey:"applications_page.projects_sapi_description",status:"active",image:{src:"/_next/static/media/sapi_demo.8f632a42.webp",height:871,width:1346,blurDataURL:"data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAAACwAQCdASoIAAUAAkA4JaQAAu0YvNNAAP79P49H0+lTBTqsiwAAAA==",blurWidth:8,blurHeight:5},link:"https://phoneticsrv3.lcs.tcd.ie/sapi/index.html",category:"accessibility"},{id:"geabaire",nameKey:"applications_page.projects_geabaire_name",descriptionKey:"applications_page.projects_geabaire_description",status:"active",image:{src:"/_next/static/media/geabaire_demo.f531ff73.webp",height:984,width:1920,blurDataURL:"data:image/webp;base64,UklGRkAAAABXRUJQVlA4IDQAAACwAQCdASoIAAQAAkA4JQBOgCHfwF2AAP74Rho28xcuU4RVHlxF8kcvNSbxNTWyZ4b36gAA",blurWidth:8,blurHeight:4},link:"/geabaire",category:"accessibility",nameLang:"ga"},{id:"webreader-accessibility",nameKey:"applications_page.projects_webreader_name",descriptionKey:"applications_page.projects_webreader_description",image:c,status:"active",link:"/webreader",category:"accessibility"},{id:"dictation-accessibility",nameKey:"applications_page.projects_dictation_name",descriptionKey:"applications_page.projects_dictation_description",status:"new",image:o,link:"/recognition",category:"accessibility"},{id:"fotheidil-accessibility",nameKey:"applications_page.projects_fotheidil_name",descriptionKey:"applications_page.projects_fotheidil_description",status:"new",image:l,link:"https://fotheidil.abair.ie",category:"accessibility",nameLang:"ga"},{id:"speech-to-speech-accessibility",nameKey:"applications_page.projects_speechToSpeech_name",descriptionKey:"applications_page.projects_speechToSpeech_description",status:"beta",image:n,link:"/speech-to-speech",category:"accessibility"}],g=e=>d.filter(t=>t.category===e),m=()=>[{id:"public",titleKey:"applications_page.categories_public_title",descriptionKey:"applications_page.categories_public_description",icon:r},{id:"education",titleKey:"applications_page.categories_education_title",descriptionKey:"applications_page.categories_education_description",icon:i.A},{id:"accessibility",titleKey:"applications_page.categories_accessibility_title",descriptionKey:"applications_page.categories_accessibility_description",icon:s.A}]},6485:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5105).A)("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]])},6953:(e,t,a)=>{"use strict";a.d(t,{w:()=>i});var r=a(2115);let i=e=>{let{onFinalResult:t,onError:i}=e,[s,n]=(0,r.useState)(!1),[l,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(null),[g,m]=(0,r.useState)(30),h=(0,r.useRef)(null),p=(0,r.useRef)(null),u=(0,r.useRef)([]),x=(0,r.useRef)(null),b=()=>{x.current&&(clearInterval(x.current),x.current=null)};(0,r.useEffect)(()=>()=>{b()},[]);let f=async()=>{if(!s&&!l)try{d(null),m(30);let e=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});p.current=e,u.current=[];let r=new MediaRecorder(e,{mimeType:"audio/webm;codecs=opus"});r.ondataavailable=e=>{e.data.size>0&&u.current.push(e.data)},r.onstop=async()=>{b(),n(!1),o(!0);try{let e=new Blob(u.current,{type:"audio/webm;codecs=opus"}),r=new FormData;r.append("file",e,"recording.webm"),r.append("captpunct","true");let i=await fetch("https://recognition.abair.ie/v3-5/transcribe",{method:"POST",body:r});if(!i.ok){let e=await i.text();throw Error("HTTP error! status: ".concat(i.status,", message: ").concat(e))}let s=await i.json();if(console.log("Recognition result:",s),s.text&&s.text.trim())a.e(9979).then(a.bind(a,9979)).then(e=>{let{track:t}=e;t("Recognition",{})}),t(s.text);else if(s.error)throw Error(s.error);else{let e=s.text||s.transcription||s.result||"";if(e.trim())t(e);else throw Error("No transcription received from API")}}catch(t){let e=t instanceof Error?t.message:"Unknown error occurred";d(e),i&&i(e)}
1finally{o(!1),p.current&&(p.current.getTracks().forEach(e=>e.stop()),p.current=null)}},r.onerror=e=>{b();let t="Recording error occurred";d(t),i&&i(t),n(!1),o(!1)},h.current=r,r.start(),n(!0),b(),m(30),x.current=setInterval(()=>{m(e=>e<=1?(b(),h.current&&"inactive"!==h.current.state&&h.current.stop(),0):e-1)},1e3)}catch(t){let e=t instanceof Error?t.message:"Failed to start recording";d(e),i&&i(e)}};return{recording:s,processing:l,error:c,secondsRemaining:g,maxRecordingSeconds:30,startRecording:f,stopRecording:()=>{h.current&&s&&(b(),h.current.stop())}}}},6983:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5105).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},8661:(e,t,a)=>{Promise.resolve().then(a.bind(a,941))},8901:(e,t,a)=>{"use strict";a.d(t,{VR:()=>s});let r=[[/(^|\.)scealai\.abair\.ie$/i,"An Sc\xe9ala\xed"],[/(^|\.)geabaire\.abair\.ie$/i,"Geabaire"],[/(^|\.)fotheidil\.abair\.ie$/i,"Fotheidil"],[/(^|\.)screenreader\.abair\.ie$/i,"Screen Reader"],[/(^|\.)mileglornanog\.abair\.ie$/i,"M\xedle Gl\xf3r na n\xd3g"],[/(^|\.)webreader\.abair\.ie$/i,"ABAIR Web Reader"]],i=[[/phoneticsrv3\.lcs\.tcd\.ie\/sapi/i,"SAPI"]];function s(e){let t=function(e){if(!e)return null;let t="",a="";try{let r=window.location.origin,i=new URL(e,r);if("http:"!==i.protocol&&"https:"!==i.protocol)return null;t=i.hostname,a="".concat(i.hostname).concat(i.pathname)}catch(e){return null}for(let[e,a]of r)if(e.test(t))return a;for(let[e,t]of i)if(e.test(a))return t;return null}(e);t&&function(e){if(!e)return;let t=JSON.stringify({n:"Redirect to ".concat(e),u:window.location.href,d:"abair.ie",r:document.referrer||null});navigator.sendBeacon("https://analytics.abair.ie/api/event",new Blob([t],{type:"application/json"}))}(t)}},9442:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5105).A)("GraduationCap",[["path",{d:"M22 10v6M2 10l10-5 10 5-10 5z",key:"1ef52a"}],["path",{d:"M6 12v5c3 3 9 3 12 0v-5",key:"1f75yj"}]])}},e=>{e.O(0,[4274,5239,338,6139,8407,8102,3238,8441,1255,7358],()=>e(e.s=8661)),_N_E=e.O()}]);

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.