1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[309],{2629:(e,t,a)=>{"use strict";a.d(t,{C:()=>o,default:()=>i});var s=a(12115),r=a(94170);let l="odo:currPath",n="odo:prevPath";function i(){let e=(0,r.a8)();return(0,s.useEffect)(()=>{if(e)try{let t=sessionStorage.getItem(l);t&&t!==e&&sessionStorage.setItem(n,t),sessionStorage.setItem(l,e)}catch(e){}},[e]),null}function o(){try{return sessionStorage.getItem(n)||""}catch(e){return""}}},6010:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var s=a(12115);let r=RegExp("(?<=(?:^|[\\s;])[A-Za-zÄÄ
ÄÄÄÄÅÅÅÅ\xd3\xf3ÅÅŹźŻż]) ","gm"),l=function(){return(0,s.useEffect)(()=>{let e=null,t=null,a=()=>{e=null,t=null,document.querySelectorAll("h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption, label, td, th").forEach(e=>{let t,a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),s=[];for(;t=a.nextNode();)if(t.textContent&&t.textContent.trim()){let e=t.parentElement;e&&!["SCRIPT","STYLE","CODE","PRE","TEXTAREA","INPUT"].includes(e.tagName)&&s.push(t)}s.forEach(e=>{let t=e.textContent||"",a=t.replace(r,"\xa0");t!==a&&(e.textContent=a)})})},s=()=>{let s=Date.now();null===t&&(t=s),null!==e&&clearTimeout(e),e=setTimeout(a,Math.max(0,Math.min(400,2e3-(s-t))))};s();let l=new MutationObserver(s);return l.observe(document.body,{childList:!0,subtree:!0}),()=>{null!==e&&clearTimeout(e),l.disconnect()}},[]),null}},7313:(e,t,a)=>{"use strict";a.d(t,{p:()=>o});var s=a(76367),r=a(22514),l=a(95155),n=a(12115),i=a(40980);let o=n.forwardRef((e,t)=>{let[a,...n]=[e,t],{className:o,type:c}=a,d=(0,r._)(a,["className","type"]),[m]=n;return(0,l.jsx)("input",(0,s._)({type:c,className:(0,i.cn)("flex h-8 w-full rounded-md border border-primary bg-white px-3 py-2 text-base disabled:cursor-not-allowed disabled:opacity-50",o),ref:m},d))});o.displayName="Input"},10309:(e,t,a)=>{Promise.resolve().then(a.bind(a,76558)),Promise.resolve().then(a.bind(a,91930)),Promise.resolve().then(a.t.bind(a,38437,23)),Promise.resolve().then(a.bind(a,34612)),Promise.resolve().then(a.bind(a,21930)),Promise.resolve().then(a.bind(a,67740)),Promise.resolve().then(a.bind(a,74331)),Promise.resolve().then(a.bind(a,41873)),Promise.resolve().then(a.bind(a,6010)),Promise.resolve().then(a.bind(a,2629)),Promise.resolve().then(a.bind(a,73824)),Promise.resolve().then(a.bind(a,47930)),Promise.resolve().then(a.bind(a,18158))},18781:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(95155),r=a(12115),l=a(50910);function n(e){let{onVerify:t,onError:a,onExpired:n,theme:i="auto",size:o="normal",className:c="",resetSignal:d=0}=e,m=(0,r.useRef)(null),u=(0,r.useRef)(null),x=(0,r.useRef)(!1),h="0x4AAAAAAB75kOQRPJli6P6h",p=(0,r.useCallback)(()=>{m.current&&h&&!u.current&&window.turnstile&&(u.current=window.turnstile.render(m.current,{sitekey:h,callback:t,"error-callback":a,"expired-callback":n,theme:i,size:o}))},[h,t,a,n,i,o]);return((0,l.c)("turnstile"),(0,r.useEffect)(()=>{d>0&&u.current&&window.turnstile&&window.turnstile.reset(u.current)},[d]),(0,r.useEffect)(()=>{},[t]),(0,r.useEffect)(()=>{if(!h)return void console.warn("NEXT_PUBLIC_TURNSTILE_SITE_KEY not configured");let e=window;if(e.__turnstileOnloadHandlers||(e.__turnstileOnloadHandlers=[],window.onloadTurnstileCallback=()=>{var t;let a=null!=(t=e.__turnstileOnloadHandlers)?t:[];e.__turnstileOnloadHandlers=[],a.forEach(e=>e())}),e.__turnstileOnloadHandlers.push(p),document.querySelector('script[src*="turnstile"]'))window.turnstile&&p();else{x.current=!0;let e=document.createElement("script");e.src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback",e.async=!0,e.defer=!0,document.head.appendChild(e)}return()=>{u.current&&window.turnstile&&(window.turnstile.remove(u.current),u.current=null)}},[h,p]),h)?(0,s.jsx)("div",{ref:m,className:c}):null}},21930:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var s=a(95155),r=a(94170);function l(e){let{children:t,className:a}=e,l=(0,r.a8)();return(0,s.jsx)(r.N_,{href:"/",className:a,"aria-label":"ODO24",onClick:e=>{"/"===l&&(e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))},children:t})}},34612:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var s=a(27866),r=a.n(s),l=a(28366),n=a(12115);a(88893),a(11286);let i=()=>{let e=(0,l.Ym)();return(0,n.useEffect)(()=>{e&&r().locale(e)},[e]),null}},41873:(e,t,a)=>{"use strict";a.d(t,{default:()=>k});var s=a(76367),r=a(30694),l=a(95155),n=a(94170),i=a(50910),o=a(5772),c=a(7313),d=a(54327),m=a(18781),u=a(12725),x=a(12115),h=a(27866),p=a.n(h),f=a(40980),w=a(95735),b=a(
173321),g=a(76944),v=a(60520);let y=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j={errors:{fieldErrors:{imie:void 0,email:void 0},formErrors:[]},formData:{imie:"",email:""},success:!1},N=e=>{let{className:t}=e;return(0,l.jsx)("svg",{viewBox:"0 0 320 512",fill:"currentColor","aria-hidden":"true",className:t,children:(0,l.jsx)("path",{d:"M310.6,361.4c12.5,12.5,12.5,32.8,0,45.2c-6.2,6.2-14.4,9.4-22.6,9.4s-16.4-3.1-22.6-9.4L160,301.3L54.6,406.6c-6.2,6.3-14.4,9.4-22.6,9.4s-16.4-3.1-22.6-9.4c-12.5-12.5-12.5-32.8,0-45.2L114.8,256L9.4,150.6c-12.5-12.5-12.5-32.8,0-45.2s32.8-12.5,45.2,0L160,210.8l105.4-105.4c12.5-12.5,32.8-12.5,45.2,0s12.5,32.7,0,45.2L205.2,256L310.6,361.4z"})})},k=()=>{var e,t,a;let h=(0,b.usePathname)(),k=()=>["/szkolenia","/oferta","/e-learning","/sklep","/ankietaofertowa","/formularz-zgloszeniowy-szkolenia-rodo","/formularz-zgloszeniowy-akademia-rodo"].some(e=>h.includes(e)),[z,_]=(0,x.useState)({subscribed:!1}),[C,A]=(0,x.useState)(!0),[E,S]=(0,x.useState)(!1),[L,O]=(0,x.useState)(!1),[P,D]=(0,x.useState)(!1),[T,R]=(0,x.useState)(""),q=(0,x.useCallback)(e=>R(e),[]),B=(0,x.useCallback)(()=>R(""),[]),[W,I]=(0,x.useState)(0);(0,x.useEffect)(()=>{try{let e=localStorage.getItem("newsletter");_(e?JSON.parse(e):{subscribed:!1})}catch(e){console.error("Local storage error:",e),_({subscribed:!1})}},[]),(0,x.useEffect)(()=>{try{localStorage.setItem("newsletter",JSON.stringify(z))}catch(e){console.error("Local storage error:",e)}},[z]),(0,x.useEffect)(()=>{L&&A(!0)},[L]),(0,x.useEffect)(()=>{E&&(A(!0),setTimeout(()=>{_(e=>(0,r._)((0,s._)({},e),{expirationDate:p()().add(5,"d").unix()}))},1e3))},[E]),(0,x.useEffect)(()=>{if(z.subscribed||void 0!==z.expirationDate&&z.expirationDate>=p()().unix()||k())return;let e=document.documentElement.scrollHeight,t=window.innerHeight;if(e>2e3){let a=()=>{(e-t)/2<window.scrollY&&(A(!1),window.removeEventListener("scroll",a))};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)}let a=setTimeout(()=>A(!1),3e4);return()=>clearTimeout(a)},[z.subscribed,z.expirationDate,h]);let U=(0,i.c)(),H=(0,i.c)("biuletynform"),M=(0,i.c)("biuletynsuccessmessage"),[F,Q,J]=(0,x.useActionState)(w.r,j),[X,Y]=(0,x.useState)({}),Z={imie:null!=(e=X.imie)?e:(null==F?void 0:F.errors.fieldErrors.imie)?String(F.errors.fieldErrors.imie):void 0,email:null!=(t=X.email)?t:(null==F?void 0:F.errors.fieldErrors.email)?String(F.errors.fieldErrors.email):void 0};return((0,x.useEffect)(()=>{if(F.success&&(O(!0),Y({})),F!==j){var e;R(""),I(e=>e+1),(F.errors.fieldErrors.imie||F.errors.fieldErrors.email||(null==(e=F.errors.formErrors)?void 0:e.length))&&Y({})}},[F]),k())?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.bL,{open:L,onOpenChange:e=>{!e&&L&&(O(!1),_({subscribed:!0}))},children:(0,l.jsxs)(u.ZL,{children:[(0,l.jsx)(u.hJ,{className:"fixed inset-0 z-[100000] bg-white/[0.98]"}),(0,l.jsxs)(u.UC,{className:"fixed inset-0 z-[100001] flex flex-col overflow-y-auto focus:outline-none",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between w-full max-w-[1060px] mx-auto px-4 pt-6 pb-4 md:pt-8 md:pb-6 mb-10 shrink-0",children:[(0,l.jsx)(n.N_,{href:"/",children:(0,l.jsx)(o.default,{src:"/svg/logo-odo24.svg",alt:"ODO 24",width:164,height:52,className:"h-[52px] w-auto",quality:90})}),(0,l.jsx)(u.bm,{asChild:!0,children:(0,l.jsxs)("button",{type:"button","aria-label":U("close"),className:"cursor-pointer flex items-center gap-4",children:[(0,l.jsx)("span",{className:"uppercase text-xl font-normal tracking-wide",children:U("close")}),(0,l.jsx)("div",{className:"h-8 w-[42px] flex items-center justify-center border-2 border-primary rounded-xl text-secondary",children:(0,l.jsx)("svg",{viewBox:"0 0 320 512",width:"13",height:"21",fill:"currentColor","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M310.6,361.4c12.5,12.5,12.5,32.8,0,45.2c-6.2,6.2-14.4,9.4-22.6,9.4s-16.4-3.1-22.6-9.4L160,301.3L54.6,406.6c-6.2,6.3-14.4,9.4-22.6,9.4s-16.4-3.1-22.6-9.4c-12.5-12.5-12.5-32.8,0-45.2L114.8,256L9.4,150.6c-12.5-12.5-12.5-32.8,0-45.2s32.8-12.5,45.2,0L160,210.8l105.4-105.4c12.5-12.5,32.8-12.5,45.2,0s12.5,32.7,0,45.2L205.2,256L310.6,361.4z"})})})]})})]}),(0,l.jsxs)("div",{className:"w-full max-w-[1060px] mx-auto px-4 md:px-[100px] pb-10",children:[(0,l.jsx)(u.hE,{asChild:!0,children:(0,l.jsx)("h1",{className:"text-[41px] font-bold text-secondary leading-[1.2] mb-8",children:M("potwierdzSwojAdresMail")})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[300px_1fr] gap-[60
1px] items-start",children:[(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsx)(o.default,{src:g.A,alt:"Leniuch ODO 24",width:300,height:260,className:"object-contain",quality:90})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-secondary mb-5",children:M("wyslalismyDoCiebieWiadomosc")}),(0,l.jsxs)("p",{className:"mb-5 text-grayish-blue",children:[M("tylkoJednoKlikniecieDzieli")," ",M("poradnikowSzkolenPotwierdzSwoj")," ",M("linkKtoryZnajdzieszWiadomosci")]}),(0,l.jsxs)("p",{className:"text-sm text-gray-500",children:[M("jezeliMailDoCiebie")," ",M("abyPrzyszlosciToSie")]})]})]})]})]})]})}),!z.subscribed&&(!z.expirationDate||z.expirationDate<p()().unix())&&(0,l.jsx)("div",{className:(0,f.cn)("fixed bottom-0 left-0 right-0 max-w-full overflow-x-hidden backdrop-blur-sm bg-linear-to-r from-slate-150/60 to-slate-150/60 py-2 md:py-7 text-slate-800 transition duration-500 z-100000000",C&&"translate-y-full"),children:(0,l.jsx)("div",{className:"relative w-full min-w-0 mx-auto px-4 min-[1200px]:px-0 max-w-[1066px]",children:P?(0,l.jsxs)("div",{children:[(0,l.jsx)("button",{type:"button",onClick:()=>D(!1),title:U("close"),className:"absolute top-0 right-2 min-[1200px]:-right-10 text-primary cursor-pointer transition-transform hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",children:(0,l.jsx)(N,{className:"w-6 h-9"})}),(0,l.jsxs)("div",{className:"pr-8 text-sm",children:[U("newsletter_drawer.admin_1")," ",(0,l.jsx)(n.N_,{href:"/regulamin",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-whale-800 hover:underline",children:U("newsletter_drawer.admin_2")}),". ",U("newsletter_drawer.admin_3")," ",(0,l.jsx)(n.N_,{href:"/polityka-prywatnosci",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-whale-800 hover:underline",children:U("newsletter_drawer.admin_4")}),"."]})]}):(0,l.jsxs)("div",{className:"flex justify-between flex-col md:flex-row px-0 sm:px-4 gap-1.5 md:gap-2 lg:gap-12 min-w-0",children:[(0,l.jsx)("div",{className:"flex-none hidden md:block self-center",children:(0,l.jsx)(o.default,{src:"/images/kontakt/zapanuj-nad-rodo.png",alt:"Zapanuj nad RODO",width:198,height:200,quality:90})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsx)("div",{className:"text-lg leading-snug md:text-2xl md:leading-normal font-bold mb-1 md:mb-5 pr-8 md:pr-0 break-words",children:(0,f.Cs)(U("newsletter_drawer.title"))}),(0,l.jsxs)("div",{className:"hidden md:block text-sm",children:[U("newsletter_drawer.admin_1")," ",(0,l.jsx)(n.N_,{href:"/regulamin",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-whale-800 hover:underline",children:U("newsletter_drawer.admin_2")}),". ",U("newsletter_drawer.admin_3")," ",(0,l.jsx)(n.N_,{href:"/polityka-prywatnosci",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-whale-800 hover:underline",children:U("newsletter_drawer.admin_4")}),"."]})]}),(0,l.jsxs)("div",{className:"self-center w-full md:w-auto",children:[(0,l.jsx)("button",{type:"button",onClick:()=>S(!0),title:U("close"),className:"absolute top-0 right-2 min-[1200px]:-right-10 text-primary cursor-pointer transition-transform hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",children:(0,l.jsx)(N,{className:"w-6 h-9"})}),(0,l.jsxs)("form",{action:Q,onSubmit:e=>{let t=e.currentTarget,a=new FormData(t),s={},r=String(a.get("imie")||"").trim(),l=String(a.get("email")||"").trim();if(r?r.length<2&&(s.imie=H("validation_errors.imie_min")):s.imie=H("validation_errors.fill_required"),l?y.test(l)||(s.email=H("validation_errors.email_invalid")):s.email=H("validation_errors.fill_required"),Object.keys(s).length>0){e.preventDefault(),Y(s);let a=["imie","email"].find(e=>s[e]);if(a){let e=t.elements.namedItem(a);e instanceof HTMLElement&&e.focus({preventScroll:!0})}return}Y({})},noValidate:!0,className:"flex flex-col gap-1.5 md:gap-4 w-full max-w-full sm:max-w-64 mx-auto md:mx-0 pt-0 md:pt-5 min-w-0 overflow-visible",children:[(0,l.jsxs)("div",{className:(0,f.cn)("relative overflow-visible",Z.imie&&"mb-9"),children:[(0,l.jsx)(c.p,{type:"text",name:"imie",placeholder:U("kontakt.form.name"),className:"rounded-full border-primary",defaultValue:null==F?void 0:F.formData.imie,"aria-invalid":!!Z.imie}),Z.imie&&(0,l.jsx)(v.A,{message:Z.imie,className:"absolute left-3 top-full z-30 mt-1.5"})]}),(0,l.jsxs)("div",{className:(0,f.cn)("relative overflow-visible",Z.email&&"mb-9"),children:[(0,l.jsx)(c.p,{type:"email",name:"email",placeholder:U("kontakt.form.email"),className:"rounded-full border-primary",defaultValue:null==F?void 0:F.formData.email,"aria-invalid":!!Z.email}),Z.email&&(0,l.jsx)(v.A,{message:Z.email,className:"absolute left-3 top-full z-30 mt-1.5"})]}),!!(null==F||null==(a=F.errors.formErrors)?void 0:a.length)&&(0,l.jsx)("span",{className:"text-red-600 text-sm ml-4",children:F.errors.formErrors[0]}),(0,l.jsx)("input",{type:"hidden",name:"cf-turnstile-response",value:T,readOnly:!0}),!C&&(0,l.jsx)(m.A,{onVerify:q,onExpired:B,size:"normal",theme:"light",resetSignal:W}),(0,l.jsx)(d.$,{type:"submit",size:"lg",disabled:J||!T,className:"w-full rounded-full text-base md:text-lg",children:U("newsletter_drawer.save")})]})]}),(0,l.jsxs)("div",{className:"md:hidden text-xs flex items-start gap-2",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1 leading-snug",children:U("newsletter_drawer.mobile")}),(0,l.jsx)("button",{type:"button",title:U("more"),onClick:()=>D(!0),className:"text-primary hover:text-whale-800 hover:underline shrink-0 whitespace-nowrap pt-0.5",children:">>>"})]})]})})})]})}},54327:(e,t,a)=>{"use strict";a.d(t,{$:()=>c});var s=a(76367),r=a(22514),l=a(95155),n=a(12115),i=a(42442),o=a(40980);let c=(0,n.forwardRef)((e,t)=>{let[a,...n]=[e,t],{variant:c="default",size:d="sm",component:m,asChild:u=!1,className:x=""}=a,h=(0,r._)(a,["variant","size","component","asChild","className"]),[p]=n,f=u?i.DX:m||"button";return(0,l.jsx)(f,(0,s._)({className:(0,o.cn)("inline-flex flex-none self-center justify-self-start shrink-0 items-center justify-center text-center align-middle cursor-pointer font-normal text-md rounded-4xl transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-transparent no-underline",{"bg-primary text-white uppercase min-w-[160px]":"default"===c,"bg-primary text-white uppercase":"compact"===c,"bg-transparent text-primary border-primary":"outline"===c,"hover:underline text-primary lowercase py-0.5 px-5 text-base":"ghost"===c},"ghost"!==c&&{"py-0.5 px-5 text-base":"sm"===d,"py-0.5 px-6 text-base":"md"===d,"py-0.75 px-7.5 text-xl":"lg"===d},"leading-none",x),ref:p},h))});c.displayName="Button"},60520:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(95155),r=a(40980);function l(e){let{message:t,className:a}=e;return(0,s.jsxs)("div",{role:"alert",className:(0,r.cn)("relative z-20 mt-2 inline-flex max-w-[min(100%,22rem)] items-center gap-2 rounded-sm bg-white px-2.5 py-1.5 text-sm text-[#333] shadow-[0_2px_6px_rgba(0,0,0,0.28)]",a),children:[(0,s.jsx)("span",{"aria-hidden":!0,
1className:"pointer-events-none absolute -top-1.5 left-4 h-0 w-0 border-x-[6px] border-b-[6px] border-x-transparent border-b-white drop-shadow-[0_-1px_1px_rgba(0,0,0,0.12)]"}),(0,s.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-4 shrink-0 items-center justify-center rounded-[2px] bg-[#f5a623] text-[11px] font-bold leading-none text-white",children:"!"}),(0,s.jsx)("span",{className:"leading-snug",children:t})]})}},67740:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var s=a(95155),r=a(94170);function l(e){let{children:t}=e;return(0,r.a8)().includes("/akademia-analizy-ryzyka")?null:(0,s.jsx)(s.Fragment,{children:t})}},73824:(e,t,a)=>{"use strict";a.d(t,{default:()=>r});var s=a(12115);function r(){return(0,s.useEffect)(()=>{let e=e=>{(3===e.button||4===e.button||4===e.which||5===e.which)&&e.stopImmediatePropagation()};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[]),null}},74331:(e,t,a)=>{"use strict";a.d(t,{default:()=>b});var s=a(95155),r=a(94170),l=a(5772),n=a(54327),i=a(12115),o=a(50910),c=a(28366),d=a(40980),m=a(35605);function u(e){let{pages:t,homeHref:a="/",className:l="",auto:n=!0}=e,i=(0,m.i)(),c=(0,o.c)("breadcrumbs"),u=t||(n?i:[]);return 0===u.length?null:(0,s.jsx)("nav",{"aria-label":"Breadcrumb",className:(0,d.cn)("flex",l),children:(0,s.jsxs)("ol",{role:"list",className:"flex items-center flex-wrap gap-[2px]",children:[(0,s.jsx)("li",{children:(0,s.jsx)(r.N_,{href:a,className:"text-primary hover:underline transition-all text-base font-normal uppercase",children:c("stronaGlowna")})}),u.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start md:items-center gap-[2px] min-w-0 max-w-full",children:[(0,s.jsx)("span",{className:"mx-1 shrink-0 mt-[0.15em] md:mt-0 leading-none","aria-hidden":"true",children:"â¢"}),e.current?(0,s.jsx)("span",{className:"text-grayish-blue text-base font-normal uppercase","aria-current":"page",title:e.name,children:e.name}):(0,s.jsx)(r.N_,{href:e.href,className:"text-primary hover:underline transition-all text-base font-normal uppercase",title:e.name,children:e.name})]},"".concat(e.href,"-").concat(t)))]})})}var x=a(97307),h=a(12725);let p=e=>{let{isOpen:t,onClose:a}=e,[n,c]=(0,i.useState)(""),d=(0,r.rd)(),m=(0,o.c)("searchpopup");return(0,s.jsx)(h.bL,{open:t,onOpenChange:a,children:(0,s.jsxs)(h.ZL,{children:[(0,s.jsx)(h.hJ,{className:"fixed inset-0 z-[100000] bg-secondary/95 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),(0,s.jsx)(h.UC,{className:"fixed inset-0 z-[100000] overflow-y-auto text-white duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 focus:outline-none",children:(0,s.jsxs)("div",{className:"min-h-full flex flex-col gap-8 py-4 sm:py-12",children:[(0,s.jsxs)("div",{className:"w-full container flex justify-between items-center",children:[(0,s.jsx)("div",{className:"ml-2",children:(0,s.jsx)("a",{href:"/",title:"ODO 24",children:(0,s.jsx)(l.default,{src:"/svg/logo-odo24.svg",alt:"ODO 24 logo",width:164,height:78,className:"brightness-0 invert w-[120px] sm:w-[164px] h-auto",quality:90})})}),(0,s.jsx)(h.bm,{asChild:!0,children:(0,s.jsxs)("button",{className:"flex items-center gap-4 font-semibold text-2xl uppercase cursor-pointer leading-none",children:[(0,s.jsx)("span",{className:"hidden sm:inline",children:m("zamknij")}),(0,s.jsx)(x.SXS,{className:"size-12 sm:size-14 text-primary block"})]})})]}),(0,s.jsx)("div",{className:"flex-1 flex items-start justify-center pt-[10vh] sm:pt-[15vh]",children:(0,s.jsxs)("div",{className:"w-full max-w-150 px-4",children:[(0,s.jsx)(h.hE,{className:"text-4xl sm:text-5xl font-bold mb-8 md:text-center text-white",children:m("szukajWOdo24")}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),n.trim()&&(d.push("/szukaj?q=".concat(encodeURIComponent(n))),a(!1))},className:"bg-white rounded-2xl p-1 md:px-4 flex items-center border border-primary",children:[(0,s.jsx)("input",{type:"text",value:n,onChange:e=>c(e.target.value),placeholder:m("npPrzejecieFunkcjiIod"),className:"search-popup-input flex-1 border-0 border-none ring-0 outline-none text-lg text-gray-800 placeholder:text-[#445c69] bg-transparent appearance-none",autoFocus:!0,name:"search"}),(0,s.jsx)("button",{type:"submit","aria-label":"Search",className:"px-2 cursor-pointer shrink-0",children:(0,s.jsx)(l.default,{src:"/svg/icon-search.svg",alt:"Szukaj",width:36,height:36,className:"size-9 sm:size-9",quality:90})})]})]})})]})})]})})},f=e=>{let{isOpen:t,onClose:a,links:o}=e,m=(0,c.Ym)();return(0,i.useEffect)(()=>
1{if(!t)return;let e=e=>{"Escape"===e.key&&a()};document.addEventListener("keydown",e);let s=window.scrollY,{body:r,documentElement:l}=document,n=r.style.overflow,i=l.style.overflow,o=r.style.position,c=r.style.top,d=r.style.width;return r.style.overflow="hidden",l.style.overflow="hidden",r.style.position="fixed",r.style.top="-".concat(s,"px"),r.style.width="100%",()=>{document.removeEventListener("keydown",e),r.style.overflow=n,l.style.overflow=i,r.style.position=o,r.style.top=c,r.style.width=d,window.scrollTo(0,s)}},[t,a]),(0,s.jsxs)("div",{className:"fixed inset-0 z-[100000001] bg-primary text-white transition-all duration-300 ".concat(t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-14 px-2 pt-4",children:[(0,s.jsx)(r.N_,{href:"/",className:"flex items-center",onClick:a,children:(0,s.jsx)(l.default,{src:"/svg/logo-odo24.svg",alt:"ODO24 Logo",width:110,height:52,className:"w-[80px] sm:w-[110px] invert brightness-0",quality:90})}),(0,s.jsx)(n.$,{variant:"ghost",size:"sm",className:"lg:hidden text-white hover:bg-transparent p-0",onClick:a,"aria-label":t?"Zamknij menu":"Otw\xf3rz menu",children:(0,s.jsxs)("span",{className:"relative block h-9 w-9",children:[(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 transition-all duration-200 ".concat(t?"translate-y-0 delay-0":"-translate-y-3 delay-200"),children:(0,s.jsx)("span",{className:"block h-[5px] w-9 bg-white transition-transform duration-200 ".concat(t?"rotate-45 scale-x-125 delay-200":"rotate-0 scale-x-100 delay-0")})}),(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 h-[5px] w-9 -translate-x-1/2 bg-white transition-opacity duration-200 ".concat(t?"opacity-0 delay-0":"opacity-100 delay-200")}),(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 transition-all duration-200 ".concat(t?"translate-y-0 delay-0":"translate-y-3 delay-200"),children:(0,s.jsx)("span",{className:"block h-[5px] w-9 bg-white transition-transform duration-200 ".concat(t?"-rotate-45 scale-x-125 delay-200":"rotate-0 scale-x-100 delay-0")})})]})})]}),(0,s.jsx)("nav",{className:"pt-6 pb-10 h-[calc(100dvh-56px)] min-h-0 overflow-y-auto flex flex-col [@media(max-height:625px)]:pt-2 [@media(max-height:625px)]:pb-4",children:(0,s.jsx)("ul",{className:"text-xl-plus uppercase flex flex-1 min-h-0 flex-col justify-evenly [@media(min-height:626px)]:flex-none [@media(min-height:626px)]:justify-start [@media(min-height:626px)]:space-y-[20px]",children:o.map(e=>{var t;return(0,s.jsx)("li",{children:(0,s.jsx)(r.N_,{href:e.href,onClick:a,className:"block w-full transition-colors ".concat(e.emphasis?"bg-accent text-white px-6 py-3 text-center hover:bg-white hover:text-primary [@media(max-height:625px)]:py-2":"group flex items-center justify-center py-[7.5px] hover:bg-white hover:text-primary [@media(max-height:625px)]:py-1"),children:(0,s.jsxs)("span",{className:(0,d.cn)("flex items-center gap-4","en"===m?"w-[280px]":"w-[200px]"),children:[!e.emphasis&&e.iconSrc&&(0,s.jsx)(l.default,{src:e.iconSrc,alt:null!=(t=e.iconAlt)?t:"",width:45,height:45,className:"h-[45px] w-[45px] shrink-0 invert brightness-0 group-hover:invert-0 group-hover:brightness-100 transition-all [@media(max-height:625px)]:h-8 [@media(max-height:625px)]:w-8",quality:90}),(0,s.jsx)("span",{children:e.label})]})})},e.href)})})})]})};var w=a(47930);let b=()=>{let e=(0,o.c)("links"),t=(0,c.Ym)(),a=(0,r.a8)(),{urls:d}=(0,w.L)(),[m,x]=(0,i.useState)(!1),[h,b]=(0,i.useState)(!1),[g,v]=(0,i.useState)(!1),y=e=>{if(e===t)return;let{search:s,hash:l}=window.location,n=d?"/".concat(e).concat(d[e]):(0,r.Hm)({href:a,locale:e,forcePrefix:!0}),i=new URLSearchParams(s.startsWith("?")?s.slice(1):s);i.set("lng",e),document.cookie="NEXT_LOCALE=".concat(e,"; path=/; max-age=31536000; SameSite=Lax"),window.location.assign("".concat(n,"?").concat(i.toString()).concat(l))},j=(0,o.c)("navbar");if((0,i.useEffect)(()=>{let e=()=>{x(window.scrollY>150)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,i.useEffect)(()=>{let e=new URL(window.location.href);if(!e.searchParams.has("lng"))return;e.searchParams.delete("lng");let t=e.searchParams.toString();window.history.replaceState(window.history.state,"","".concat(e.pathname).concat(t?"?".concat(t):"").concat(e.hash))},[a,t]),a.includes("/akademia-analizy-ryzyka"))return null;let N=e=>"/"===e?"/"===a:!!("/wiedza"===e&&a.startsWith("/biuletyn")||"/wiedza"===e&&a.startsWith("/rodo-nawigator-online")||"/szkolenia-rodo"===e&&a.startsWith("/e-learning")||"/szkolenia-rodo"===e&&a.startsWith("/formularz-zgloszeniowy-szkolenia-rodo")||"/szkolenia-rodo"===e&&a.startsWith("/dokumentacja")||"/wiedza"===e&&a.startsWith("/ranking-aplikacji-dla-sygnalistow"))||a.startsWith(e),k=e=>t=>{a===e&&(t.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))},z=[{href:"/o-nas",label:e("about_us"),iconSrc:"/template/default/images/svg/icon-about.svg",iconAlt:"O nas"},{href:"/oferta/uslugi",label:e("services"),iconSrc:"/template/default/images/svg/icon-services.svg",iconAlt:"UsÅugi"},{href:"/szkolenia-rodo",label:e("training"),iconSrc:"/template/default/images/svg/icon-trainings.svg",iconAlt:"Szkolenia"},{href:"/wiedza",label:e("knowledge"),iconSrc:"/template/default/images/svg/icon-knowledge.svg",iconAlt:"Wiedza"},{href:"/narzedzia",label:e("tools"),iconSrc:"/template/default/images/svg/icon-tools.svg",iconAlt:"NarzÄdzia"},{href:"/kontakt",label:e("contact"),iconSrc:"/template/default/images/svg/icon-contact.svg",iconAlt:"Kontakt"},{href:"/bezplatne-porady",label:e("free_consultations"),iconSrc:"/template/default/images/svg/icon-iod3-b.svg",iconAlt:"BezpÅatne porady"}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{isOpen:h,onClose:b}),(0,s.jsx)(f,{isOpen:g,onClose:()=>v(!1),links:z}),(0,s.jsx)("header",{className:"bg-white relative z-40 flex items-center pt-4 pb-5 mb-0 md:pb-5 md:pt-7 w-full max-w-[1030px] mr-auto ml-auto px-4 min-[1200px]:px-0 min-w-0 overflow-x-hidden",children:(0,s.jsxs)("div",{className:"w-full min-w-0",children:[(0,s.jsxs)("div",{className:"w-full flex items-center justify-between mb-0 md:mb-0 gap-2 min-w-0",children:[(0,s.jsx)("div",{className:"flex shrink-0 items-center h-full mr-2 sm:mr-6",children:(0,s.jsx)(r.N_,{href:"/",onClick:k("/"),className:"flex items-center",children:(0,s.jsx)(l.default,{src:"/svg/logo-od
1o24.svg",alt:"ODO24 Logo",width:110,height:52,className:"w-[80px] sm:w-[110px]",quality:90})})}),(0,s.jsxs)("nav",{className:"hidden min-[1000px]:flex items-center h-9 min-w-0",children:[(0,s.jsxs)("div",{className:"bg-gradient-to-r flex-1 min-w-0 ".concat("en"===t?"max-w-[756px]":"max-w-[700px]"," from-primary via-primary to-primary/95 rounded-full pl-5 flex flex-nowrap items-center h-full mr-8 text-white font-medium *:transition-colors uppercase justify-center space-x-6 [&>a]:shrink-0 [&>a]:whitespace-nowrap"),children:[(0,s.jsx)(r.N_,{href:"/o-nas",onClick:k("/o-nas"),className:"pl-2 ".concat(N("/o-nas")?"font-bold":"font-normal"),children:e("about_us")}),(0,s.jsx)(r.N_,{href:"/oferta/uslugi",onClick:k("/oferta/uslugi"),className:"".concat(N("/oferta")?"font-bold":"font-normal"),children:e("services")}),(0,s.jsx)(r.N_,{href:"/szkolenia-rodo",onClick:k("/szkolenia-rodo"),className:"".concat(N("/szkolenia-rodo")?"font-bold":"font-normal"),children:e("training")}),(0,s.jsx)(r.N_,{href:"/wiedza",onClick:k("/wiedza"),className:"".concat(N("/wiedza")?"font-bold":"font-normal"),children:e("knowledge")}),(0,s.jsx)(r.N_,{href:"/narzedzia",onClick:k("/narzedzia"),className:"".concat(N("/narzedzia")?"font-bold":"font-normal"),children:e("tools")}),(0,s.jsx)(r.N_,{href:"/kontakt",onClick:k("/kontakt"),className:"".concat(N("/kontakt")?"font-bold":"font-normal"),children:e("contact")}),(0,s.jsx)(r.N_,{href:"/bezplatne-porady",onClick:k("/bezplatne-porady"),className:"bg-accent text-[13px] px-6 rounded-r-full h-full flex items-center justify-center ml-auto leading-none ".concat(N("/bezplatne-porady")?"font-bold":"font-normal"),children:e("free_consultations")})]}),(0,s.jsxs)("div",{className:"flex items-center shrink-0",children:[(0,s.jsxs)("div",{className:"flex flex-row flex-nowrap items-center justify-center bg-primary rounded-full text-sm font-bold p-1 w-[70px] mr-4 h-9 whitespace-nowrap [overflow-wrap:normal] [word-break:normal]",children:[(0,s.jsx)("button",{type:"button",onClick:()=>y("en"),className:"shrink-0 px-1 py-0.75 transition-colors cursor-pointer rounded-full whitespace-nowrap ".concat("en"===t?"bg-white text-primary":"text-white"),"aria-label":j("switchToEnglish"),children:"EN"}),(0,s.jsx)("button",{type:"button",onClick:()=>y("pl"),className:"shrink-0 px-1 py-0.75 transition-colors cursor-pointer rounded-full whitespace-nowrap ".concat("pl"===t?"bg-white text-primary":"text-white"),"aria-label":j("switchToPolish"),children:"PL"})]}),(0,s.jsx)("button",{className:"hover:opacity-80 transition-opacity cursor-pointer",onClick:()=>b(!0),"aria-label":j("wyszukaj"),children:(0,s.jsx)(l.default,{src:"/svg/icon-search.svg",alt:j("szukaj"),width:36,height:36,quality:90})})]})]}),(0,s.jsxs)("div",{className:"min-[1000px]:hidden flex items-center justify-between gap-2",children:[(0,s.jsx)("button",{className:"hover:opacity-80 transition-opacity cursor-pointer",onClick:()=>b(!0),"aria-label":j("wyszukaj"),children:(0,s.jsx)(l.default,{src:"/svg/icon-search.svg",alt:j("szukaj"),width:38,height:38,quality:90})}),(0,s.jsxs)("div",{className:"flex flex-row flex-nowrap items-center justify-center bg-primary rounded-full text-sm mr-2.5 font-bold p-1 w-[70px] h-9 whitespace-nowrap [overflow-wrap:normal] [word-break:normal]",children:[(0,s.jsx)("button",{type:"button",onClick:()=>y("en"),className:"shrink-0 px-1 py-0.75 transition-colors cursor-pointer rounded-full whitespace-nowrap ".concat("en"===t?"bg-white text-primary":"text-white"),"aria-label":j("switchToEnglish"),children:"EN"}),(0,s.jsx)("button",{type:"button",onClick:()=>y("pl"),className:"shrink-0 px-1 py-0.75 transition-colors cursor-pointer rounded-full whitespace-nowrap ".concat("pl"===t?"bg-white text-primary":"text-white"),"aria-label":j("switchToPolish"),children:"PL"})]}),(0,s.jsx)(n.$,{variant:"ghost",size:"sm",className:"text-grayish-blue hover:bg-transparent p-0 font-bold",onClick:()=>v(e=>!e),"aria-label":j(g?"zamknijMenu":"otworzMenu"),children:(0,s.jsxs)("span",{className:"relative block h-9 w-9",children:[(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 transition-all duration-200 ".concat(g?"translate-y-0 delay-0":"-translate-y-3 delay-200"),children:(0,s.jsx)("span",{className:"block h-[5px] w-9 bg-primary transition-transform duration-200 ".concat(g?"rotate-45 scale-x-125 delay-200":"rotate-0 scale-x-100 delay-0")})}),(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 h-[5px] w-9 -translate-x-1/2 bg-primary transition-opacity duration-200 ".concat(g?"opacity-0 delay-0":"opacity-100 delay-200")}),(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 transition-all duration-200 ".concat(g?"translate-y-0 delay-0":"translate-y-3 delay-200"),children:(0,s.jsx)("span",{className:"block h-[5px] w-9 bg-primary transition-transform duration-200 ".concat(g?"-rotate-45 scale-x-125 delay-200":"rotate-0 scale-x-100 delay-0")})})]})})]})]}),(0,s.jsx)(u,{auto:!0,className:"mt-5"})]})}),(0,s.jsx)("header",{className:"bg-primary z-50 transition-all duration-700 ease-out ".concat(m?"fixed top-0 left-0 right-0 transform translate-y-0":"fixed top-0 left-0 right-0 transform -translate-y-full"),children:(0,s.jsx)("div",{className:"container mx-auto px-5 max-w-[1030px] h-15",children:(0,s.jsxs)("div",{className:"flex items-center justify-between h-full gap-4",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(r.N_,{href:"/",onClick:k("/"),className:"flex items-center",children:(0,s.jsx)(l.default,{src:"/svg/logo-od
1o24.svg",alt:"ODO24 Logo",width:164,height:78,className:"h-[52px] w-auto invert brightness-0",quality:90})})}),(0,s.jsx)("div",{className:"w-full flex justify-center max-w-[1030px] mx-auto pl-3",children:(0,s.jsxs)("nav",{className:"hidden min-[1000px]:flex items-center",children:[(0,s.jsxs)("div",{className:"flex flex-nowrap items-center space-x-6 text-white font-medium *:transition-colors uppercase [&>a]:shrink-0 [&>a]:whitespace-nowrap",children:[(0,s.jsx)(r.N_,{href:"/o-nas",onClick:k("/o-nas"),className:"".concat(N("/o-nas")?"font-bold":""),children:e("about_us")}),(0,s.jsx)(r.N_,{href:"/oferta/uslugi",onClick:k("/oferta/uslugi"),className:"".concat(N("/oferta")?"font-bold":""),children:e("services")}),(0,s.jsx)(r.N_,{href:"/szkolenia-rodo",onClick:k("/szkolenia-rodo"),className:"".concat(N("/szkolenia-rodo")?"font-bold":""),children:e("training")}),(0,s.jsx)(r.N_,{href:"/wiedza",onClick:k("/wiedza"),className:"".concat(N("/wiedza")?"font-bold":""),children:e("knowledge")}),(0,s.jsx)(r.N_,{href:"/narzedzia",onClick:k("/narzedzia"),className:"".concat(N("/narzedzia")?"font-bold":""),children:e("tools")}),(0,s.jsx)(r.N_,{href:"/kontakt",onClick:k("/kontakt"),className:"".concat(N("/kontakt")?"font-bold":""),children:e("contact")})]}),(0,s.jsx)("div",{className:"flex items-center space-x-4 ml-4 uppercase",children:(0,s.jsx)(r.N_,{href:"/bezplatne-porady",onClick:k("/bezplatne-porady"),className:"shrink-0 whitespace-nowrap bg-transparent text-white text-xs px-6 py-2 rounded-full ".concat(N("/bezplatne-porady")?"font-bold":""),children:e("free_consultations")})})]})}),(0,s.jsx)(n.$,{variant:"ghost",size:"sm",className:"min-[1000px]:hidden text-white hover:bg-transparent p-0",onClick:()=>v(e=>!e),"aria-label":j(g?"zamknijMenu":"otworzMenu"),children:(0,s.jsxs)("span",{className:"relative block h-9 w-9",children:[(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 transition-all duration-200 ".concat(g?"translate-y-0 delay-0":"-translate-y-3 delay-200"),children:(0,s.jsx)("span",{className:"block h-[5px] w-9 bg-white transition-transform duration-200 ".concat(g?"rotate-45 scale-x-125 delay-200":"rotate-0 scale-x-100 delay-0")})}),(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 h-[5px] w-9 -translate-x-1/2 bg-white transition-opacity duration-200 ".concat(g?"opacity-0 delay-0":"opacity-100 delay-200")}),(0,s.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 transition-all duration-200 ".concat(g?"translate-y-0 delay-0":"translate-y-3 delay-200"),children:(0,s.jsx)("span",{className:"block h-[5px] w-9 bg-white transition-transform duration-200 ".concat(g?"-rotate-45 scale-x-125 delay-200":"rotate-0 scale-x-100 delay-0")})})]})})]})})})]})}},76944:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s={src:"/_next/static/media/leniuch.991da84c.webp",height:200,width:305,blurDataURL:"data:image/webp;base64,UklGRqIAAABXRUJQVlA4WAoAAAAQAAAABwAABAAAQUxQSCkAAAAAAAMxJGsWn30AQRcncG+1siqEPcHZ3/aZSPO30/xyyTQ04FFqtB49HQBWUDggUgAAADACAJ0BKggABQACQDgliAJ0BhgBjdxv9AYAAPa+w2WOhKyCkrxN5m311XavBFlaLLzBQXe7wAHc1ezGnlB7cs5LAEVdUkShTzu5CFXf7+DOkAA=",blurWidth:8,blurHeight:5}},95735:(e,t,a)=>{"use strict";a.d(t,{r:()=>r});var s=a(9339);let r=(0,s.createServerReference)("60efd2bdbe5930bfc718082a1e6362b4e8caecaf70",s.callServer,void 0,s.findSourceMapURL,"submitForm")}}]);
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.