PageSourceSearch

https://www.oponeo.pl/ndcr/_next/static/chunks/pages/_site/speed-camera-map-7988dd389fdc04fe.js

js oponeo.pl collected 2026-10-02 10:45:47 UTC 97,794 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10712,35573],{67301:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_site/speed-camera-map",function(){return n(62468)}])},22073:function(e,a,n){"use strict";n.d(a,{Z:function(){return l}});var t=n(7320),r=n(11720),i=n(78854),o=n(75019),s=n(44842);function l(e){let{name:a,label:n,type:l,maxLength:m,className:c,positiveValidation:d,disabled:g,value:p,setValue:u,invalid:x,required:L=!0,minLength:h,onKeyDown:w,onFocus:b,onBlur:f,onValidate:k,customErrorMessage:y,keepErrorOnBlur:v=!1,isAddressNumber:z,acceptEmpty:j=!1,textClassName:N}=e,_="Wypełnij to pole",Z=d?"validatedWithCheck":"validated",C="error",[S,B]=(0,r.useState)(!1),[M,T]=(0,r.useState)(x?C:""),[E,X]=(0,r.useState)(_),[A,D]=(0,r.useState)(!1),[I,R]=(0,r.useState)(!1),P=(0,r.useRef)(null),W=/^[0-9\s]+$/,F=/(?=.*\d)(?=.*[a-zA-Z])/,O=/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/,G=/[0-9]{2}-[0-9]{3}/,V="".concat(a,"-error"),K=/^-?(?:[0-9]{1,3})(?:\.[0-9]+)?$/;(0,o.o)(()=>{T(x?C:Z)},[x]),(0,r.useEffect)(()=>{X(null!=y?y:_)},[y]),(0,r.useEffect)(()=>{"address"===a&&P.current&&!F.test(P.current.value)&&""!==P.current.value&&(D(!0),R(!0))},[]),(0,r.useEffect)(()=>null==z?void 0:z(I),[I]);let H=()=>{if(P.current){let e="";if("number"===l&&"nip"===a)(0,s.CV)(P.current.value)?e=Z:""!==P.current.value?(X("Wpisz poprawny NIP"),e=C):(X(_),L&&(e=C));else if("postalCode"===a)G.test(P.current.value)?e=Z:""!==P.current.value?(X("Wpisz poprawny kod pocztowy"),e=C):(X(_),L&&(e=C));else if("address"===a){if(I&&""!==P.current.value){F.test(P.current.value)&&(D(!1),R(!1));return}F.test(P.current.value)?(e=Z,D(!1),R(!1)):(""!==P.current.value?(X("Uzupełnij nr domu/lokalu"),D(!0)):(X(_),D(!1),R(!1)),L&&(e=C))}else"accountNumber"===a?P.current.value&&26===P.current.value.removeAllWhitespace().length?e=d?"validatedWithCheck":"validated":""!==P.current.value?(X("Wpisz poprawny numer konta (musi składać się z 26 cyfr)"),e="error"):(X(_),L&&(e="error")):"number"===l?W.test(P.current.value)&&(!h||P.current.value.length>=h)||j&&""==P.current.value?e=Z:L&&(e=C):"email"===l?O.test(P.current.value)||j&&""==P.current.value?e=Z:""!==P.current.value?(X("Wpisz poprawny adres e-mail"),e=C):(X(_),L&&(e=C)):"locationMeasure"===l?K.test(P.current.value)||j&&""==P.current.value?e=Z:(e="error",""!==P.current.value?X("Kod musi mieć format XX-XXX"):X("Wypełnij to pole")):j||""!==P.current.value?e=Z:L&&(e=C);T(e),k&&k(e)}};return(0,t.BX)("div",{className:(0,s.cn)("relative mt-5 grid w-full grid-rows-[20px_auto]",c),children:[(0,t.BX)("label",{htmlFor:a,className:(0,s.cn)("pointer-events-none col-span-full row-[1/2] text-sm duration-100",N),children:[L?(0,t.tZ)("span",{className:"text-red contrast:text-black","aria-hidden":"true",children:"*"}):null," ",n]}),(0,t.tZ)("input",{id:a,type:l,name:a,maxLength:m,minLength:h,disabled:g,className:(0,s.cn)("peer col-span-full row-[2/3] h-[42px] w-full rounded-[4px] border border-cerebral-grey p-2.5 pr-[35px] text-[13px] hover:border-industrial-revolution focus:border-industrial-revolution disabled:bg-super-silver disabled:opacity-70 contrast:text-white",{"border-red":M===C},N),value:p,onKeyDown:w||(e=>{if("number"===l){if(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","."].includes(e.key))return;/^\d$/.test(e.key)||e.preventDefault()}if("locationMeasure"===l){if(["Backspace","Delete","Tab","ArrowLeft","ArrowRight",".","-"].includes(e.key))return;/^\d$|^\+$/.test(e.key)||e.preventDefault()}}),onChange:e=>{let{value:n}=e.target;if(!("number"===l&&(n.includes(" ")||Number.isNaN(Number(n))))){if("postalCode"===a){let a=n.replace(/\D/g,"");a.length<=2?e.target.value=a:e.target.value="".concat(a.slice(0,2),"-").concat(a.slice(2,5))}if(m&&e.target.value.length>m)return;u(e.target.value)}},onFocus:()=>{B(!0),b&&b()},onBlur:()=>{null==f||f(),v&&x||!P.current||(H(),""===P.current.value&&B(!1))},ref:P,"aria-invalid":M===C,...M===C&&{"aria-describedby":V}}),L&&d&&"validatedWithCheck"===M&&(0,t.tZ)("span",{className:"icon-ok-negative pointer-events-none col-span-full row-[2/3] mr-3 self-center justify-self-end text-xl text-green-bell-pepper contrast:text-white"}),M===C&&(0,t.BX)(t.HY,{children:[(0,t.tZ)("span",{className:"icon-note-negative pointer-events-none col-span-full row-[2/3] mr-3 self-center justify-self-end text-xl text-red contrast:text-white"}),(0,t.tZ)("span",{id:"".concat(a,"-error"),className:(0,s.cn)("col-span-full row-[4/5] text-sm text-red contrast:text-black",{"row-[3/5]":A}),...M===C&&{role:"alert","aria-live":"assertive"},children:E})]}),A&&(0,t.tZ)(i.Z,{label:"Zaznacz, jeśli w Twoim adresie nie ma nr. domu/lokalu.",className:"mt-3 h-fit pl-3",size:"large",tristep:!1,checked:I,onChange:e=>{H(),R(e);let a=e?Z:C;X("Uzupełnij nr domu/lokalu"),T(a),null==k||k(a)}})]})}},21507:function(e,a,n){"use strict";n.d(a,{Z:function(){return o}});var t=n(7320),r=n(11720),i=n(44842);function o(e){let{name:a,label:n,cols:o,rows:s,maxLength:l,className:m,positiveValidation:c,value:d,setValue:g,onChange:p,invalid:u,required:x=!0,showCharacterLimit:L=!1,placeholder:h,acceptEmpty:w,textClassName:b,contrastRed:f}=e,[k,y]=(0,r.useState)(!1),[v,z]=(0,r.useState)(u?"error":""),j=(0,r.useRef)(null),N="".concat(a,"-error");return(0,r.useEffect)(()=>{z(u?"error":"")},[u]),(0,t.BX)("div",{className:(0,i.cn)("group relative mt-5 grid w-full",m),children:[(0,t.BX)("label",{htmlFor:a,id:N,className:(0,i.cn)("pointer-events-none col-span-full row-start-1 block text-sm duration-100 contrast:text-black",b),children:[x&&(0,t.tZ)("span",{className:"contrast:text-white! text-red contrast:text-black","aria-hidden":"true",children:"*"})," ",n]}),(0,t.BX)("div",{className:"relative col-span-full row-start-2 h-auto",children:[(0,t.tZ)("textarea",{value:d,placeholder:h,id:a,name:a,cols:o,rows:s,maxLength:l,className:(0,i.cn)("col-span-full row-[2/3] -mb-1 h-[145px] w-full resize-none rounded-[4px] border border-cerebral-grey p-2.5 pr-[35px] text-[14px] leading-4 group-focus-within:!border-industrial-revolution contrast:text-white",b,{"border-red focus:border-red group-focus-within:!border-red group-hover:!border-red":"error"===v||"limit"===v,"contrast: border-rose-600 contrast:border-2":("error"===v||"limit"===v)&&f,"group-hover:border-industrial-revolution":!("error"===v||"limit"===v),"rounded-bl-none rounded-br-none border-b-0":L}),onKeyUp:()=>{j.current&&(""!==j.current.value||w?j.current.value.length===l?z("limit"):(g(j.current.value),z(c?"validated":""),p&&p(j.current.value)):z("error"))},onFocus:()=>{y(!0)},onBlur:()=>{y(!1),j.current&&(""!==j.current.value||w?z(c?"validated":""):z("error"))},ref:j,onChange:e=>{l&&e.target.value.length>l||(g(e.target.value),p&&p(e.target.value))},"aria-invalid":"error"===v,...("error"===v||"limit"===v)&&{"aria-describedby":N}}),x&&c&&"validated"===v&&(0,t.tZ)("span",{className:"icon-ok-negative pointer-events-none absolute right-3 top-3 text-xl text-green-bell-pepper contrast:text-white"}),x&&"error"===v&&(0,t.tZ)("span",{className:"icon-note-negative pointer-events-none absolute right-3 top-3 text-xl text-red contrast:text-white"}),"limit"===v&&(0,t.tZ)("span",{className:"icon-note-negative pointer-events-none absolute right-3 top-3 text-xl text-red contrast:text-white"})]}),L&&l&&(0,t.BX)("span",{className:(0,i.cn)("pointer-events-none col-span-full row-start-3 -mt-[4px] w-full self
1-end justify-self-start rounded-[4px] rounded-tl-none rounded-tr-none border border-cerebral-grey py-2 pr-4 text-right text-xs text-black group-focus-within:!border-blue contrast:bg-black contrast:text-white",{"border-red group-focus-within:!border-red group-hover:!border-red":"error"===v||"limit"===v,"contrast: border-rose-600 contrast:border-2":("error"===v||"limit"===v)&&f,"group-hover:border-industrial-revolution":!("error"===v||"limit"===v)}),children:[(null==d?void 0:d.length)||0," / ",l," znak\xf3w"]}),x&&"error"===v&&(0,t.tZ)("span",{className:(0,i.cn)("col-span-full text-sm text-red contrast:text-black",L?"row-[4/5]":"row-[3/4]"),..."error"===v&&{role:"alert","aria-live":"assertive"},children:"Wypełnij to pole"}),"limit"===v&&(0,t.tZ)("span",{className:(0,i.cn)("col-span-full text-sm text-red contrast:text-black",L?"row-start-4":"row-start-3"),role:"alert","aria-live":"assertive",children:"Wpisano maksymalną ilość znak\xf3w"})]})}},62468:function(e,a,n){"use strict";n.r(a),n.d(a,{__N_SSP:function(){return ea},default:function(){return en}});var t,r,i=n(7320),o=n(14640),s=n(11720),l=n(36271),m=n(380),c=n(14330),d=n(33707),g=n(44842),p=e=>{let{items:a,variant:n="default",header:t}
1=e,[r,o]=(0,s.useState)(null),l={green:{button:"bg-soccer-turf",border:"border-soccer-turf",hover:"hover:bg-[#2CA405]"},darkblue:{button:"bg-[#0057B2]",border:"border-[#0057B2]",hover:"hover:bg-[#004E9F]"},blue:{button:"bg-blue",border:"border-blue",hover:"hover:bg-blue-hover"},orange:{button:"bg-[#ff5502]",border:"border-[#ff5502]",hover:"hover:bg-[#E54B00]"},lightblue:{button:"bg-[#3D92DE]",border:"border-[#3D92DE]",hover:"hover:bg-[#3783C8]"}};return(0,i.BX)("div",{className:"scroll-mt-10 s:scroll-mt-2 m:scroll-mt-2",role:"presentation",children:[t&&t,(0,i.tZ)("div",{className:(0,g.cn)("mx-auto max-w-3xl",{"max-w-full divide-y divide-[#bbb]":"transparent"===n}),children:a.map((e,a)=>{let t=r===a,s=l[e.colorVariant||"blue"];return(0,i.BX)("div",{className:(0,g.cn)("mb-8 s:mb-4",{"mb-0 s:mb-0":"transparent"===n}),children:[(0,i.BX)("button",{"aria-expanded":t,onClick:()=>o(t?null:a),className:(0,g.cn)("relative z-10",{"flex w-full items-center justify-between rounded-[15px] px-8 py-5 text-left transition-colors s:gap-5 s:px-3 s:py-2":"default"===n,"flex w-full items-center justify-between px-5 py-5 s:gap-2.5 s:px-0 s:py-2.5":"transparent"===n},{[s.button]:"default"===n,[s.border]:"default"===n}),children:[(0,i.BX)("div",{className:(0,g.cn)("flex items-center gap-7 s:gap-5",{"w-full":"transparent"===n}),children:[e.image&&(0,i.tZ)("div",{className:"h-[66px] w-[66px] flex-shrink-0 bg-contain bg-left bg-no-repeat s:size-10",style:{backgroundImage:"url(".concat(e.image,")")},role:"img"}),(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.label},className:(0,g.cn)("text-2.25xl font-medium s:text-base",{"block w-full text-2xl text-blue":"transparent"===n})})]}),(0,i.tZ)(d.E.span,{"aria-hidden":"true",animate:{rotate:t?180:0},transition:{duration:.3,ease:"easeInOut"},className:(0,g.cn)("icon-arrow-down-bold text-base/none s:text-2xs/none",{"text-[#bbb]":"transparent"===n}),children:(0,i.tZ)("span",{className:"sr-only",children:t?"Zwiń opis":"Rozwiń opis"})})]}),(0,i.tZ)(d.E.div,{role:"region",initial:{height:0,y:"default"===n?-20:0},animate:{height:t?"auto":0,transition:{height:{duration:.3}}},exit:{height:0,transition:{height:{duration:.3}}},className:(0,g.cn)("h-0 overflow-hidden"),children:(0,i.BX)("div",{className:(0,g.cn)({"overflow-hidden border-b-[3px] bg-[#011C47] p-10 s:px-5":"default"===n,"mx-auto w-[680px] py-5 pt-2.5 text-center text-[#02245b] s:w-[300px]":"transparent"===n},{[s.border]:"default"===n}),children:[(0,i.tZ)("p",{className:"text-base s:text-sm",children:e.description}),(0,i.tZ)("p",{className:"mt-5 text-base s:text-sm",children:e.secondDescription})]})})]},a)})})]})},u=()=>(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",{className:(0,g.cn)("pointer-events-none absolute left-1/2 top-[-71px] z-[1] h-[663px] w-[1920px] -translate-x-1/2 bg-cover bg-center",'bg-[url("/ndcr/images/other/speedCameraMap/main-background-1800.webp")]',"1.5xl:w-[2560px]",'s:top-[-87px] s:h-[650px] s:w-[768px] s:bg-[url("/ndcr/images/other/speedCameraMap/main-background-320.webp")]','m:top-[-84px] m:h-[653px] m:w-[1200px] m:bg-[url("/ndcr/images/other/speedCameraMap/main-background-768.webp")]','1.5xl:bg-[url("/ndcr/images/other/speedCameraMap/main-background-960.webp")]'),role:"img","aria-label":"Main background"}),(0,i.tZ)("div",{className:(0,g.cn)("pointer-events-none absolute","h-[724px] w-[1207px]","left-[calc(50%-6px)] top-[-73px] -translate-x-1/2","bg-[url('/ndcr/images/other/speedCameraMap/main-background-glow-1800.webp')] bg-cover bg-center","s:top-[-70px] s:h-[652px] s:w-[756px] s:bg-[url('/ndcr/images/other/speedCameraMap/main-background-glow-320.webp')]","m:left-[calc(50%+2px)] m:h-[694px] m:w-[1194px] m:bg-[url('/ndcr/images/other/speedCameraMap/main-background-glow-768.webp')]","1.5xl:left-1/2 1.5xl:top-[-71px] 1.5xl:bg-[url('/ndcr/images/other/speedCameraMap/main-background-glow-960.webp')]"),role:"img"}),(0,i.tZ)("div",{className:(0,g.cn)("pointer-events-none absolute left-[calc(50%-50px)] top-[191px] z-[2] h-[65px] w-[93px] -translate-x-1/2 bg-cover bg-center 1.5xl:left-[calc(50%-44px)]","bg-[url('/ndcr/images/other/speedCameraMap/main-background-car-front.webp')]","s:top-[196px] s:h-[56px] s:w-[79px]","m:top-[167px] m:w-[92px]"),role:"img"}),(0,i.tZ)("div",{className:(0,g.cn)("pointer-events-none absolute left-[calc(50%+48px)] top-[190p
1x] z-[2] h-[56px] w-[74px] -translate-x-1/2 bg-cover bg-center 1.5xl:left-[calc(50%+54px)]","bg-[url('/ndcr/images/other/speedCameraMap/main-background-car-back.webp')]","s:left-[calc(50%+47px)] s:top-[199px] s:h-[44px] s:w-[59px]","m:top-[166px]"),role:"img"}),(0,i.tZ)("div",{className:(0,g.cn)("pointer-events-none absolute left-[calc(50%+388px)] top-[34px] z-[2] h-[375px] w-[190px] -translate-x-1/2 bg-cover bg-center 1.5xl:left-[calc(50%+394px)]","bg-[url('/ndcr/images/other/speedCameraMap/main-speed-camera.webp')]","s:left-[calc(50%+137px)] s:top-[91px] s:h-[213px] s:w-[108px]","m:left-[calc(50%+374px)] m:top-4"),role:"img"})]}),x=n(25675),L=n.n(x),h=n(78296),w=n(59120),b=n(22073),f=n(78854),k=n(81999),y=n(50040),v=n(61525),z=n(21507),j=n(37054),N=n(54226),_=JSON.parse('[[{"id":0,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":38.32,"minLat":34}},{"id":1,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":38.32,"minLat":34}},{"id":2,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":38.32,"minLat":34}},{"id":3,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":38.32,"minLat":34}},{"id":4,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":38.32,"minLat":34}},{"id":5,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":38.32,"minLat":34}},{"id":6,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":38.32,"minLat":34}},{"id":7,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":38.32,"minLat":34}},{"id":8,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":38.32,"minLat":34}},{"id":9,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":38.32,"minLat":34}},{"id":10,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":38.32,"minLat":34}},{"id":11,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":38.32,"minLat":34}},{"id":12,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":38.32,"minLat":34}},{"id":13,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":38.32,"minLat":34}},{"id":14,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":38.32,"minLat":34}},{"id":15,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":38.32,"minLat":34}},{"id":16,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":38.32,"minLat":34}},{"id":17,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":38.32,"minLat":34}},{"id":18,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":38.32,"minLat":34}},{"id":19,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":38.32,"minLat":34}},{"id":20,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":42.64,"minLat":38.32}},{"id":21,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":42.64,"minLat":38.32}},{"id":22,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":42.64,"minLat":38.32}},{"id":23,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":42.64,"minLat":38.32}},{"id":24,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":42.64,"minLat":38.32}},{"id":25,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":42.64,"minLat":38.32}},{"id":26,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":42.64,"minLat":38.32}},{"id":27,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":42.64,"minLat":38.32}},{"id":28,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":42.64,"minLat":38.32}},{"id":29,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":42.64,"minLat":38.32}},{"id":30,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":42.64,"minLat":38.32}},{"id":31,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":42.64,"minLat":38.32}},{"id":32,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":42.64,"minLat":38.32}},{"id":33,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":42.64,"minLat":38.32}},{"id":34,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":42.64,"minLat":38.32}},{"id":35,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":42.64,"minLat":38.32}},{"id":36,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":42.64,"minLat":38.32}},{"id":37,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":42.64,"minLat":38.32}},{"id":38,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":42.64,"minLat":38.32}},{"id":39,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":42.64,"minLat":38.32}},{"id":40,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":46.96,"minLat":42.64}},{"id":41,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":46.96,"minLat":42.64}},{"id":42,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":46.96,"minLat":42.64}},{"id":43,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":46.96,"minLat":42.64}},{"id":44,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":46.96,"minLat":42.64}},{"id":45,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":46.96,"minLat":42.64}},{"id":46,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":46.96,"minLat":42.64}},{"id":47,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":46.96,"minLat":42.64}},{"id":48,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":46.96,"minLat":42.64}},{"id":49,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":46.96,"minLat":42.64}},{"id":50,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":46.96,"minLat":42.64}},{"id":51,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":46.96,"minLat":42.64}},{"id":52,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":46.96,"minLat":42.64}},{"id":53,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":46.96,"minLat":42.64}},{"id":54,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":46.96,"minLat":42.64}},{"id":55,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":46.96,"minLat":42.64}},{"id":56,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":46.96,"minLat":42.64}},{"id":57,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":46.96,"minLat":42.64}},{"id":58,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":46.96,"minLat":42.64}},{"id":59,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":46.96,"minLat":42.64}},{"id":60,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":51.28,"minLat":46.96}},{"id":61,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":51.28,"minLat":46.96}},{"id":62,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":51.28,"minLat":46.96}},{"id":63,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":51.28,"minLat":46.96}},{"id":64,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":51.28,"minLat":46.96}},{"id":65,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":51.28,"minLat":46.96}},{"id":66,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":51.28,"minLat":46.96}},{"id":67,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":51.28,"minLat":46.96}},{"id":68,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":51.28,"minLat":46.96}},{"id":69,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":51.28,"minLat":46.96}},{"id":70,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":51.28,"minLat":46.96}},{"id":71,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":51.28,"minLat":46.96}},{"id":72,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":51.28,"minLat":46.96}},{"id":73,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":51.28,"minLat":46.96}},{"id":74,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":51.28,"minLat":46.96}},{"id":75,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":51.28,"minLat":46.96}},{"id":76,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":51.28,"minLat":46.96}},{"id":77,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":51.28,"minLat":46.96}},{"id":78,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":51.28,"minLat":46.96}},{"id":79,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":51.28,"minLat":46.96}},{"id":80,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":55.6,"minLat":51.28}},{"id":81,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":55.6,"minLat":51.28}},{"id":82,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":55.6,"minLat":51.28}},{"id":83,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":55.6,"minLat":51.28}},{"id":84,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":55.6,"minLat":51.28}},{"id":85,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":55.6,"minLat":51.28}},{"id":86,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":55.6,"minLat":51.28}},{"id":87,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":55.6,"minLat":51.28}},{"id":88,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":55.6,"minLat":51.28}},{"id":89,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":55.6,"minLat":51.28}},{"id":90,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":55.6,"minLat":51.28}},{"id":91,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":55.6,"minLat":51.28}},{"id":92,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":55.6,"minLat":51.28}},{"id":93,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":55.6,"minLat":51.28}},{"id":94,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":55.6,"minLat":51.28}},{"id":95,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":55.6,"minLat":51.28}},{"id":96,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":55.6,"minLat":51.28}},{"id":97,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":55.6,"minLat":51.28}},{"id":98,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":55.6,"minLat":51.28}},{"id":99,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":55.6,"minLat":51.28}},{"id":100,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":59.92,"minLat":55.6}},{"id":101,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":59.92,"minLat":55.6}},{"id":102,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":59.92,"minLat":55.6}},{"id":103,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":59.92,"minLat":55.6}},{"id":104,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":59.92,"minLat":55.6}},{"id":105,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":59.92,"minLat":55.6}},{"id":106,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":59.92,"minLat":55.6}},{"id":107,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":59.92,"minLat":55.6}},{"id":108,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":59.92,"minLat":55.6}},{"id":109,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":59.92,"minLat":55.6}},{"id":110,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":59.92,"minLat":55.6}},{"id":111,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":59.92,"minLat":55.6}},{"id":112,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":59.92,"minLat":55.6}},{"id":113,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":59.92,"minLat":55.6}},{"id":114,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":59.92,"minLat":55.6}},{"id":115,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":59.92,"minLat":55.6}},{"id":116,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":59.92,"minLat":55.6}},{"id":117,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":59.92,"minLat":55.6}},{"id":118,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":59.92,"minLat":55.6}},{"id":119,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":59.92,"minLat":55.6}},{"id":120,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":64.24,"minLat":59.92}},{"id":121,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":64.24,"minLat":59.92}},{"id":122,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":64.24,"minLat":59.92}},{"id":123,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":64.24,"minLat":59.92}},{"id":124,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":64.24,"minLat":59.92}},{"id":125,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":64.24,"minLat":59.92}},{"id":126,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":64.24,"minLat":59.92}},{"id":127,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":64.24,"minLat":59.92}},{"id":128,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":64.24,"minLat":59.92}},{"id":129,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":64.24,"minLat":59.92}},{"id":130,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":64.24,"minLat":59.92}},{"id":131,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":64.24,"minLat":59.92}},{"id":132,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":64.24,"minLat":59.92}},{"id":133,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":64.24,"minLat":59.92}},{"id":134,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":64.24,"minLat":59.92}},{"id":135,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":64.24,"minLat":59.92}},{"id":136,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":64.24,"minLat":59.92}},{"id":137,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":64.24,"minLat":59.92}},{"id":138,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":64.24,"minLat":59.92}},{"id":139,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":64.24,"minLat":59.92}},{"id":140,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":68.56,"minLat":64.24}},{"id":141,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":68.56,"minLat":64.24}},{"id":142,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":68.56,"minLat":64.24}},{"id":143,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":68.56,"minLat":64.24}},{"id":144,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":68.56,"minLat":64.24}},{"id":145,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":68.56,"minLat":64.24}},{"id":146,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":68.56,"minLat":64.24}},{"id":147,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":68.56,"minLat":64.24}},{"id":148,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":68.56,"minLat":64.24}},{"id":149,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":68.56,"minLat":64.24}},{"id":150,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":68.56,"minLat":64.24}},{"id":151,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":68.56,"minLat":64.24}},{"id":152,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":68.56,"minLat":64.24}},{"id":153,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":68.56,"minLat":64.24}},{"id":154,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":68.56,"minLat":64.24}},{"id":155,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":68.56,"minLat":64.24}},{"id":156,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":68.56,"minLat":64.24}},{"id":157,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":68.56,"minLat":64.24}},{"id":158,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":68.56,"minLat":64.24}},{"id":159,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":68.56,"minLat":64.24}},{"id":160,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":72.88,"minLat":68.56}},{"id":161,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":72.88,"minLat":68.56}},{"id":162,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":72.88,"minLat":68.56}},{"id":163,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":72.88,"minLat":68.56}},{"id":164,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":72.88,"minLat":68.56}},{"id":165,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":72.88,"minLat":68.56}},{"id":166,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":72.88,"minLat":68.56}},{"id":167,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":72.88,"minLat":68.56}},{"id":168,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":72.88,"minLat":68.56}},{"id":169,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":72.88,"minLat":68.56}},{"id":170,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":72.88,"minLat":68.56}},{"id":171,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":72.88,"minLat":68.56}},{"id":172,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":72.88,"minLat":68.56}},{"id":173,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":72.88,"minLat":68.56}},{"id":174,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":72.88,"minLat":68.56}},{"id":175,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":72.88,"minLat":68.56}},{"id":176,"ranges":{"maxLng":131.25,"minLng":122,"maxLat":72.88,"minLat":68.56}},{"id":177,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":72.88,"minLat":68.56}},{"id":178,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":72.88,"minLat":68.56}},{"id":179,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":72.88,"minLat":68.56}},{"id":180,"ranges":{"maxLng":-16.75,"minLng":-26,"maxLat":77.2,"minLat":72.88}},{"id":181,"ranges":{"maxLng":-7.5,"minLng":-16.75,"maxLat":77.2,"minLat":72.88}},{"id":182,"ranges":{"maxLng":1.75,"minLng":-7.5,"maxLat":77.2,"minLat":72.88}},{"id":183,"ranges":{"maxLng":11,"minLng":1.75,"maxLat":77.2,"minLat":72.88}},{"id":184,"ranges":{"maxLng":20.25,"minLng":11,"maxLat":77.2,"minLat":72.88}},{"id":185,"ranges":{"maxLng":29.5,"minLng":20.25,"maxLat":77.2,"minLat":72.88}},{"id":186,"ranges":{"maxLng":38.75,"minLng":29.5,"maxLat":77.2,"minLat":72.88}},{"id":187,"ranges":{"maxLng":48,"minLng":38.75,"maxLat":77.2,"minLat":72.88}},{"id":188,"ranges":{"maxLng":57.25,"minLng":48,"maxLat":77.2,"minLat":72.88}},{"id":189,"ranges":{"maxLng":66.5,"minLng":57.25,"maxLat":77.2,"minLat":72.88}},{"id":190,"ranges":{"maxLng":75.75,"minLng":66.5,"maxLat":77.2,"minLat":72.88}},{"id":191,"ranges":{"maxLng":85,"minLng":75.75,"maxLat":77.2,"minLat":72.88}},{"id":192,"ranges":{"maxLng":94.25,"minLng":85,"maxLat":77.2,"minLat":72.88}},{"id":193,"ranges":{"maxLng":103.5,"minLng":94.25,"maxLat":77.2,"minLat":72.88}},{"id":194,"ranges":{"maxLng":112.75,"minLng":103.5,"maxLat":77.2,"minLat":72.88}},{"id":195,"ranges":{"maxLng":122,"minLng":112.75,"maxLat":77.2,"minLat":72.88}},{"id":196,"r
1anges":{"maxLng":131.25,"minLng":122,"maxLat":77.2,"minLat":72.88}},{"id":197,"ranges":{"maxLng":140.5,"minLng":131.25,"maxLat":77.2,"minLat":72.88}},{"id":198,"ranges":{"maxLng":149.75,"minLng":140.5,"maxLat":77.2,"minLat":72.88}},{"id":199,"ranges":{"maxLng":159,"minLng":149.75,"maxLat":77.2,"minLat":72.88}}]]');let Z=["maps","places","routes","geometry","marker"],C=(0,s.createContext)({directionsFrom:"",directionsTo:"",isMapVisible:!1,mapReady:!1,speedCameras:[],errors:{directionsFrom:!1,directionsTo:!1,waypoints:[],directionsError:!1},fromPredictions:[],toPredictions:[],isLoaded:!1,directions:null,setDirections:()=>{},setDirectionsFrom:()=>{},setDirectionsTo:()=>{},setIsMapVisible:()=>{},setMapReady:()=>{},showMap:()=>{},resetForm:()=>{},openDirectionsInGoogleMaps:()=>{},getPlacePredictions:()=>{},selectPrediction:()=>{},waypoints:[],addWaypoint:()=>{},removeWaypoint:()=>{},setWaypoint:()=>{}}),S=()=>(0,s.useContext)(C),B=e=>{let{children:a}=e,[t,r]=(0,s.useState)(""),[o,l]=(0,s.useState)(""),[m,c]=(0,s.useState)(!1),[d,g]=(0,s.useState)(!1),[p,u]=(0,s.useState)([]),[x,L]=(0,s.useState)({directionsFrom:!1,directionsTo:!1,waypoints:[],directionsError:!1}),[h,w]=(0,s.useState)([]),[b,f]=(0,s.useState)([]),[k,y]=(0,s.useState)(null),[v,z]=(0,s.useState)([]),{isLoaded:S}=(0,j.Ji)({googleMapsApiKey:"AIzaSyC6WPXzO-UxgXMWav-26Ojjvb23XzANFKE",libraries:Z,id:"google-map-script",language:"pl"}),B=(0,N.U)(),M=(e,a)=>{z(n=>{let t=[...n];return t[e]={...t[e],value:a},t})},T=(e,a)=>{z(n=>{let t=[...n];return t[e]={...t[e],predictions:a},t})},E=()=>{let e={directionsFrom:!t.trim(),directionsTo:!o.trim(),waypoints:v.map(e=>!e.value.trim()),directionsError:!1};return e.directionsFrom||e.directionsTo||e.waypoints.some(e=>e)?(L(e),!1):(L(e),!0)},X=(0,s.useCallback)(async(e,a,n)=>{if(!e||e.length<3||!S){"from"===a?w([]):"to"===a?f([]):"waypoint"===a&&void 0!==n&&T(n,[]);return}if(!window.google||!window.google.maps)return;let{suggestions:t}=await window.google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,includedPrimaryTypes:["geocode","establishment"]});t?"from"===a?w(t):"to"===a?f(t):"waypoint"===a&&void 0!==n&&T(n,t):"from"===a?w([]):"to"===a?f([]):"waypoint"===a&&void 0!==n&&T(n,[])},[S]),A=e=>{let a=new Set;return e.legs.forEach(e=>{e.steps.forEach(e=>{[{lat:e.start_location.lat(),lng:e.start_location.lng()},{lat:e.end_location.lat(),lng:e.end_location.lng()}].forEach(e=>{_[0].filter(a=>e.lat>=a.ranges.minLat&&e.lat<a.ranges.maxLat&&e.lng>=a.ranges.minLng&&e.lng<a.ranges.maxLng).forEach(e=>a.add(e.id))})})}),Array.from(a)},D=async e=>{e.orderBy(e=>e);try{return(await Promise.all(e.map(async e=>{try{return(await n(13891)("./chunk_".concat(e,".json")))[0].cameras}catch(a){return console.error("Error loading chunk ".concat(e,":"),a),[]}}))).flat()}catch(e){return console.error("Error loading camera chunks:",e),[]}},I=(e,a)=>{let n,t,r,i;let o=(e,a)=>{let n=!1;for(let t=0,r=a.length-1;t<a.length;r=t++){let i=a[t].lat,o=a[t].lng,s=a[r].lat,l=a[r].lng;o>e.lng!=l>e.lng&&e.lat<(s-i)*(e.lng-o)/(l-o)+i&&(n=!n)}return n},s=(e=>{let a=[];e.legs.forEach(e=>{e.steps.forEach(e=>{e.path.forEach(e=>a.push(e))})});let n=[];a.forEach(e=>{n.push({lat:e.lat()+1e-4,lng:e.lng()})});for(let e=a.length-1;e>=0;e--)n.push({lat:a[e].lat()-1e-4,lng:a[e].lng()});return n})(a),l=(n=1/0,t=-1/0,r=1/0,i=-1/0,s.forEach(e=>{e.lat<n&&(n=e.lat),e.lat>t&&(t=e.lat),e.lng<r&&(r=e.lng),e.lng>i&&(i=e.lng)}),{minLat:n,maxLat:t,minLng:r,maxLng:i}),m=new Set(["G","GA","A","SC","SCM","SCE","UHV"]);return e.filter(e=>{if("A"!==e.Status||!m.has(e.Type))return!1;let{Latitude:a,Longitude:n}=e;return!(a<l.minLat)&&!(a>l.maxLat)&&!(n<l.minLng)&&!(n>l.maxLng)&&o({lat:a,lng:n},s)}).map(e=>({ChangeTime:e.ChangeTime,City:e.City,ID:e.ID,Latitude:e.Latitude,Longitude:e.Longitude,Speed:e.Speed,Status:e.Status,Street:e.Street,Type:e.Type}))},R=async()=>{if(E()){B.showLoading();try{let e=new google.maps.DirectionsService,a=await e.route({origin:t,destination:o,waypoints:v.map(e=>({location:e.value,stopover:!0})),travelMode:google.maps.TravelMode.DRIVING,provideRouteAlternatives:!1,drivingOptions:{departureTime:new Date,trafficModel:google.maps.TrafficModel.BEST_GUESS}});if(!a.routes||0===a.routes.length){L({directionsFrom:!1,directionsTo:!1,waypoints:[],directionsError:!0}),B.hideLoading();return}let n=A(a.routes[0]),r=await D(n),i=I(r,a.routes[0]);u(i),y(a),L({directionsFrom:!1,directionsTo:!1,waypoints:[],directionsError:!1}),c(!0),B.hideLoading()}catch(e){L({directionsFrom:!1,directionsTo:!1,waypoints:[],directionsError:!0}),B.hideLoading()}}};return(0,i.tZ)(C.Provider,{value:{directionsFrom:t,directionsTo:o,isMapVisible:m,mapReady:d,speedCameras:p,errors:x,fromPredictions:h,toPredictions:b,isLoaded:S,directions:k,setDirections:y,setDirectionsFrom:r,setDirectionsTo:l,setIsMapVisible:c,setMapReady:g,showMap:R,resetForm:()=>{r(""),l(""),c(!1),g(!1),u([]),L({directionsFrom:!1,directionsTo:!1,waypoints:[],directionsError:!1}),w([]),f([]),y(null),z([])},openDirectionsInGoogleMaps:()=>{let e=encodeURIComponent(t),a=encodeURIComponent(o),n=v.length?"&waypoints=".concat(v.map(e=>encodeURIComponent(e.value)).join("|")):"",r="https://www.google.com/maps/dir/?api=1&origin=".concat(e,"&destination=").concat(a).concat(n,"&travelmode=DRIVING&alternatives=false");window.open(r,"_blank")},getPlacePredictions:X,selectPrediction:(e,a,n)=>{"from"===a?(r(e.description),w([])):"to"===a?(l(e.description),f([])):"wayp
1oint"===a&&void 0!==n&&(M(n,e.description),T(n,[]))},waypoints:v,addWaypoint:()=>{v.length<5&&z([...v,{value:"",predictions:[]}])},removeWaypoint:e=>{z(v.filter((a,n)=>n!==e))},setWaypoint:M},children:a})};var M=n(31938),T=n(34717);let E={};(t=r||(r={}))[t.AF=0]="AF",t[t.AL=1]="AL",t[t.DZ=2]="DZ",t[t.AD=3]="AD",t[t.AO=4]="AO",t[t.AI=5]="AI",t[t.AQ=6]="AQ",t[t.AG=7]="AG",t[t.SA=8]="SA",t[t.AR=9]="AR",t[t.AM=10]="AM",t[t.AW=11]="AW",t[t.AU=12]="AU",t[t.AT=13]="AT",t[t.AZ=14]="AZ",t[t.BS=15]="BS",t[t.BH=16]="BH",t[t.BD=17]="BD",t[t.BB=18]="BB",t[t.BE=19]="BE",t[t.BZ=20]="BZ",t[t.BJ=21]="BJ",t[t.BM=22]="BM",t[t.BT=23]="BT",t[t.BY=24]="BY",t[t.BO=25]="BO",t[t.BQ=26]="BQ",t[t.BA=27]="BA",t[t.BW=28]="BW",t[t.BR=29]="BR",t[t.BN=30]="BN",t[t.IO=31]="IO",t[t.BG=32]="BG",t[t.BF=33]="BF",t[t.BI=34]="BI",t[t.XC=35]="XC",t[t.CL=36]="CL",t[t.CN=37]="CN",t[t.CW=38]="CW",t[t.HR=39]="HR",t[t.CY=40]="CY",t[t.TD=41]="TD",t[t.ME=42]="ME",t[t.CZ=43]="CZ",t[t.DK=44]="DK",t[t.DM=45]="DM",t[t.DO=46]="DO",t[t.DJ=47]="DJ",t[t.EG=48]="EG",t[t.EC=49]="EC",t[t.ER=50]="ER",t[t.EE=51]="EE",t[t.ET=52]="ET",t[t.FK=53]="FK",t[t.FJ=54]="FJ",t[t.PH=55]="PH",t[t.FI=56]="FI",t[t.TF=57]="TF",t[t.FR=58]="FR",t[t.GA=59]="GA",t[t.GM=60]="GM",t[t.GH=61]="GH",t[t.GI=62]="GI",t[t.GR=63]="GR",t[t.GD=64]="GD",t[t.GL=65]="GL",t[t.GE=66]="GE",t[t.GU=67]="GU",t[t.GY=68]="GY",t[t.GT=69]="GT",t[t.GN=70]="GN",t[t.GQ=71]="GQ",t[t.GW=72]="GW",t[t.HT=73]="HT",t[t.ES=74]="ES",t[t.HN=75]="HN",t[t.HK=76]="HK",t[t.IN=77]="IN",t[t.ID=78]="ID",t[t.IQ=79]="IQ",t[t.IR=80]="IR",t[t.IE=81]="IE",t[t.IS=82]="IS",t[t.IL=83]="IL",t[t.JM=84]="JM",t[t.JP=85]="JP",t[t.YE=86]="YE",t[t.JO=87]="JO",t[t.KY=88]="KY",t[t.KH=89]="KH",t[t.CM=90]="CM",t[t.CA=91]="CA",t[t.QA=92]="QA",t[t.KZ=93]="KZ",t[t.KE=94]="KE",t[t.KG=95]="KG",t[t.KI=96]="KI",t[t.CO=97]="CO",t[t.KM=98]="KM",t[t.CG=99]="CG",t[t.CD=100]="CD",t[t.KP=101]="KP",t[t.XK=102]="XK",t[t.CR=103]="CR",t[t.CU=104]="CU",t[t.KW=105]="KW",t[t.LA=106]="LA",t[t.LS=107]="LS",t[t.LB=108]="LB",t[t.LR=109]="LR",t[t.LY=110]="LY",t[t.LI=111]="LI",t[t.LT=112]="LT",t[t.LU=113]="LU",t[t.LV=114]="LV",t[t.MK=115]="MK",t[t.MG=116]="MG",t[t.YT=117]="YT",t[t.MO=118]="MO",t[t.MW=119]="MW",t[t.MV=120]="MV",t[t.MY=121]="MY",t[t.ML=122]="ML",t[t.MT=123]="MT",t[t.MP=124]="MP",t[t.MA=125]="MA",t[t.MR=126]="MR",t[t.MU=127]="MU",t[t.MX=128]="MX",t[t.XL=129]="XL",t[t.FM=130]="FM",t[t.UM=131]="UM",t[t.MD=132]="MD",t[t.MN=133]="MN",t[t.MS=134]="MS",t[t.MZ=135]="MZ",t[t.MM=136]="MM",t[t.NA=137]="NA",t[t.NR=138]="NR",t[t.NP=139]="NP",t[t.NL=140]="NL",t[t.DE=141]="DE",t[t.NE=142]="NE",t[t.NG=143]="NG",t[t.NI=144]="NI",t[t.NU=145]="NU",t[t.NF=146]="NF",t[t.NO=147]="NO",t[t.NC=148]="NC",t[t.NZ=149]="NZ",t[t.PS=150]="PS",t[t.OM=151]="OM",t[t.PK=152]="PK",t[t.PW=153]="PW",t[t.PA=154]="PA",t[t.PG=155]="PG",t[t.PY=156]="PY",t[t.PE=157]="PE",t[t.PN=158]="PN",t[t.PF=159]="PF",t[t.PL=160]="PL",t[t.ZA=161]="ZA",t[t.GS=162]="GS",t[t.PT=163]="PT",t[t.KR=164]="KR",t[t.CF=165]="CF",t[t.RU=166]="RU",t[t.RW=167]="RW",t[t.EH=168]="EH",t[t.BL=169]="BL",t[t.RO=170]="RO",t[t.SV=171]="SV",t[t.WS=172]="WS",t[t.AS=173]="AS",t[t.SM=174]="SM",t[t.SN=175]="SN",t[t.SR=176]="SR",t[t.SC=177]="SC",t[t.SL=178]="SL",t[t.SG=179]="SG",t[t.SZ=180]="SZ",t[t.SK=181]="SK",t[t.SI=182]="SI",t[t.SO=183]="SO",t[t.LK=184]="LK",t[t.PM=185]="PM",t[t.KN=186]="KN",t[t.LC=187]="LC",t[t.VC=188]="VC",t[t.US=189]="US",t[t.SD=190]="SD",t[t.SS=191]="SS",t[t.SY=192]="SY",t[t.CH=193]="CH",t[t.SE=194]="SE",t[t.SH=195]="SH",t[t.TJ=196]="TJ",t[t.TH=197]="TH",t[t.TW=198]="TW",t[t.TZ=199]="TZ",t[t.TG=200]="TG",t[t.TK=201]="TK",t[t.TO=202]="TO",t[t.TT=203]="TT",t[t.TN=204]="TN",t[t.TR=205]="TR",t[t.TM=206]="TM",t[t.TC=207]="TC",t[t.TV=208]="TV",t[t.UG=209]="UG",t[t.UA=210]="UA",t[t.UY=211]="UY",t[t.UZ=212]="UZ",t[t.VU=213]="VU",t[t.WF=214]="WF",t[t.VA=215]="VA",t[t.VE=216]="VE",t[t.HU=217]="HU",t[t.GB=218]="GB",t[t.VN=219]="VN",t[t.IT=220]="IT",t[t.TL=221]="TL",t[t.CI=222]="CI",t[t.BV=223]="BV",t[t.CX=224]="CX",t[t.CK=225]="CK",t[t.VI=226]="VI",t[t.VG=227]="VG",t[t.HM=228]="HM",t[t.CC=229]="CC",t[t.FO=230]="FO",t[t.MH=231]="MH",t[t.SB=232]="SB",t[t.SX=233]="SX",t[t.ST=234]="ST",t[t.ZM=235]="ZM",t[t.CV=236]="CV",t[t.ZW=237]="ZW",t[t.AE=238]="AE",t[t.XI=239]="XI",t[t.MC=240]="MC";let X=[1,3,13,24,19,27,32,39,42,43,44,51,56,58,63,66,74,140,81,82,111,112,113,114,115,123,132,240,141,147,160,163,166,170,174,181,182,193,194,205,210,215,217,218,220];var A=(e,a,n)=>{let t=E[n];if(t){let a=t[e];if(a)return a}let i=new Intl.DisplayNames([e],{type:"region"}),o=a.map(e=>({Name:i.of(r[e])}));return(o=o.sort())&&(E[n]?E[n][e]=o:E[n]={[e]:o}),o},D=n(49395),I=n(3213);let R={lat:52.2297,lng:21.0122},P=(0,s.forwardRef)((e,a)=>
1{let{initialPosition:n,resetAddressInput:t,markerLocation:r,setMarkerLocation:o}=e,l=(0,s.useRef)(null),m=(0,N.U)(),{directions:c,setMapReady:d}=S();(0,s.useImperativeHandle)(a,()=>({getMapCenter:()=>{let e=l.current;if(e){let a=e.getCenter();if(a)return{lat:a.lat(),lng:a.lng()}}return null}}));let g=e=>{e.latLng&&(o({lat:e.latLng.lat(),lng:e.latLng.lng()}),t())};return(0,i.tZ)("div",{className:"my-2 h-[25rem] w-full overflow-hidden rounded-lg border border-gray-300 s:h-[65dvh]",children:(0,i.tZ)(j.b6,{mapContainerClassName:"w-full h-full",center:n||R,zoom:12,onLoad:e=>{var a;if(l.current=e,null==c?void 0:null===(a=c.routes[0])||void 0===a?void 0:a.bounds){let a=c.routes[0].bounds;e.fitBounds(a),m.hideLoading(),d(!0)}},options:{mapTypeId:"roadmap",streetViewControl:!1,mapTypeControl:!1,scrollwheel:!0,gestureHandling:"greedy"},onClick:g,children:(0,i.tZ)(j.jC,{position:r||R,icon:"/ndcr/images/other/speedCameraMap/map-legend-2.svg",draggable:!0,onDragEnd:g})})})});P.displayName="MapPicker";var W=n(71062),F=n.n(W)();let O=e=>{let{formStatus:a}=e,[n,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{var e;t(null!==(e=null==a?void 0:a.success)&&void 0!==e&&e)},[a]),(0,i.tZ)(i.HY,{children:(0,i.tZ)(v.Z,{label:"Zgłoszenie przesłane",open:n,onClose:()=>{t(!1)},className:"w-[48rem]",children:(0,i.tZ)("div",{className:"flex w-full justify-center",children:(0,i.BX)("div",{className:"my-8 inline-flex justify-start gap-4 self-stretch s:mx-[1,875rem] s:max-w-[18.75rem] s:gap-4 s:self-center",children:[(0,i.tZ)("div",{className:"h-[5.5rem] w-[3.875rem] overflow-hidden s:h-[8.75rem]",children:(0,i.tZ)("img",{alt:"Image present speed camera",className:"h-full w-full object-cover object-top s:object-fill",src:"/ndcr/images/other/speedCameraMap/speedcamera.svg"})}),(0,i.BX)("div",{className:"flex-1 justify-start text-1.5xl font-normal text-sky-950 ".concat(F.className),children:["Fotoradar został zgłoszony i po pomyślnej weryfikacji zostanie dodany do mapy. Dziękujemy za przesłanie formularza!"," "]})]})})})})};var G=n(49460);let V=e=>e.map(e=>{var a,n;return{description:null===(a=e.placePrediction)||void 0===a?void 0:a.text.text,place_id:null===(n=e.placePrediction)||void 0===n?void 0:n.placeId,predictionRef:e}});var K=e=>{let{predictions:a,onSelect:n,inputName:t,selectedIndex:r,onClose:o}=e,l=(0,s.useRef)(null);return((0,G.t$)(l,()=>{o()}),0===a.length)?null:(0,i.tZ)("div",{ref:l,className:"absolute z-10 mt-[-1px] w-full",role:"listbox","aria-label":"Sugestie lokalizacji",children:(0,i.tZ)("ul",{className:"max-h-[186px] w-full divide-y divide-separators-black overflow-y-auto rounded-bl-[4px] rounded-br-[4px] border border-cerebral-grey bg-white",children:a.map((e,a)=>(0,i.tZ)("li",{id:"".concat(t,"-option-").concat(a),role:"option","aria-selected":r===a,onClick:()=>{n(e),o()},className:(0,g.cn)("max-w-full cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap py-2.5 text-left indent-2.5 text-xs transition-colors duration-100 hover:bg-[#6969690d] contrast:text-black",{"bg-[#6969690d]":r===a}),children:e.description},e.place_id))})})};let H=e=>{let{isModalOpened:a,setIsModalOpened:n,clientAccount:t,userIp:r}=e,{isLoaded:o,getPlacePredictions:l}=S(),m=(0,M.E)(),c=(0,T.V)(),d={lat:52.2297,lng:21.0122}
1,[g,p]=(0,s.useState)([]),[u,x]=(0,s.useState)([]),[L,w]=(0,s.useState)(null),[j,N]=(0,s.useState)(d.lng),[_,Z]=(0,s.useState)(d.lat),[C,B]=(0,s.useState)(-1),[E,R]=(0,s.useState)(!1),[W,G]=(0,s.useState)(""),[H,U]=(0,s.useState)(!1),[Y,J]=(0,s.useState)(0),[q,Q]=(0,s.useState)(""),[$,ee]=(0,s.useState)(-1),[ea,en]=(0,s.useState)(!1),[et,er]=(0,s.useState)(""),[ei,eo]=(0,s.useState)(""),[es,el]=(0,s.useState)(""),[em,ec]=(0,s.useState)(""),[ed,eg]=(0,s.useState)(""),[ep,eu]=(0,s.useState)(""),[ex,eL]=(0,s.useState)(""),[eh,ew]=(0,s.useState)(""),[eb,ef]=(0,s.useState)(""),[ek,ey]=(0,s.useState)({lng:j||d.lng,lat:_||d.lat}),[ev,ez]=(0,s.useState)(!1),{resetCaptcha:ej,verifyCaptcha:eN,captchaVisible:e_,requireCaptcha:eZ,captchaError:eC,setCaptchaVisible:eS,setRequireCaptcha:eB,setCaptchaError:eM}=(0,D.C)(),eT=(0,s.useRef)(null),eE=()=>{en(!1),eL(""),ef(""),eo(""),el(""),ew(""),eu(""),eg(""),G(""),ec(""),Q(""),U(!1),ez(!1)};(0,s.useEffect)(()=>{R(a)},[a]);let eX=async e=>{if(e.preventDefault(),eZ){eM(!0),eS(!0);return}let a=!1;if(eb.trim()||(a=!0),eh.trim()||(a=!0),W.trim()||(a=!0),ev||(a=!0),en(a),!a){try{let e={address:ex,city:eb,postalCode:ei,roadNumber:es,country:eh,latitude:ep,longitude:ed,speedCameraType:W,additionalInfo:q,userEmail:(null==t?void 0:t.email)||"",userIp:null!=r?r:"",speedLimit:em},a=await m.post("SpeedCamera/AddReport",{parameters:{},payload:e});a.data.success?(w({success:!0,message:"Zgłoszenie została wysłana pomyślnie."}),eE(),R(!1)):(ej(),w({success:!1,message:"Wystąpił błąd podczas wysyłania zgłoszenia. Spr\xf3buj ponownie."}),a.data.showCaptcha?(eS(!0),eB(!0)):eS(!1))}catch(e){ej(),eB(!0),w({success:!1,message:"Wystąpił błąd sieci lub nieoczekiwany problem. Spr\xf3buj ponownie."})}n(!1)}},eA=(0,s.useRef)(null),eD=e=>{if(e)return eV.find(a=>a.value.toLowerCase()===e.toLowerCase())},eI=async e=>{var a;let n=null===(a=e.predictionRef.placePrediction)||void 0===a?void 0:a.toPlace();n&&(await n.fetchFields({fields:["formattedAddress","location","addressComponents"]}),n.formattedAddress&&eL(n.formattedAddress),n.location&&(eg(n.location.lng().toString()),eu(n.location.lat().toString())),n.addressComponents&&n.addressComponents.forEach(e=>{var a,n,t;e.types.includes("locality")&&ef(null!==(n=e.longText)&&void 0!==n?n:""),e.types.includes("country")&&ew(null!==(t=e.longText)&&void 0!==t?t:""),e.types.includes("postal_code")&&e.longText&&(null===(a=e.longText)||void 0===a?void 0:a.length)>=4&&eo(e.longText)}),x([]),ee(-1))},eR=e=>{eL(e),eP(e),e.length>=3&&o?l(e,"from"):x([])},eP=async e=>{if(!window.google||!window.google.maps)return;let{suggestions:a}=await window.google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e});x(a)};(0,s.useEffect)(()=>{H&&(Z(Number(ep)),N(Number(ed)))},[H]);let eW=e=>{er(e),eF(e),e.length>=3&&o?l(e,"from"):p([]),eT.current&&clearTimeout(eT.current),window.google&&window.google.maps&&e.length>5&&(eT.current=setTimeout(()=>{new window.google.maps.Geocoder().geocode({address:e},(e,a)=>{if("OK"===a&&e&&e[0]){let a=e[0].geometry.location;Z(a.lat()),N(a.lng()),ey({lat:a.lat(),lng:a.lng()})}})},500))},eF=async e=>{if(!window.google||!window.google.maps)return;let{suggestions:a}=await window.google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e});p(a)},eO=(0,s.useRef)(null),eG="undefined"!=typeof navigator?navigator.language.slice(0,2):"pl",[eV,eK]=(0,s.useState)([]);return(0,s.useEffect)(()=>{eK(A(eG,X,"speedCameraForm").map(e=>({label:e.Name,value:e.Name,disabled:!1})))},[eG]),(0,i.BX)(i.HY,{children:[(0,i.tZ)(v.Z,{mobileAsDrawer:!0,open:E,onClose:()=>{R(!1),n(!1)},headerClassName:"!text-navy",label:"Zgłoś fotoradar",footer:(0,i.tZ)("span",{className:"flex h-15 items-center justify-end",children:(0,i.tZ)(h.Z,{type:"submit","aria-label":"Wyślij zgłoszenie fotoradaru",onClick:()=>{var e;if(!eb.trim()||!eh.trim()||!W.trim()||!ev){en(!0);return}null===(e=eA.current)||void 0===e||e.requestSubmit()},className:"!h-12 w-[18rem] s:w-full s:!text-sm",text:"Zgłoś fotoradar"})}),children:(0,i.tZ)("section",{className:"ml-auto mr-1 flex w-[44.25rem] 
1justify-center s:w-full","aria-label":"Formularz zgłoszenia fotoradaru",children:(0,i.BX)("form",{ref:eA,autoComplete:"off",onSubmit:eX,className:"flex flex-col items-center justify-center pb-[2rem] pt-[2rem] s:mx-8 s:max-w-[19rem]","aria-labelledby":"ReportSpeedCameraTitle",children:[(0,i.tZ)(D.Z,{captchaError:eC,captchaVisible:e_,verifyCaptcha:eN,onExpired:()=>eB(!0),className:"col-span-2 mb-5 justify-self-center"}),(0,i.BX)("header",{className:"inline-flex gap-2.5 s:self-center",children:[(0,i.tZ)("div",{className:"justify-center text-base font-bold text-navy ".concat(F.className," leading-tight"),children:"1."}),(0,i.BX)("div",{className:"flex-1 justify-center",children:[(0,i.BX)("span",{className:"text-base font-bold text-navy ".concat(F.className," leading-tight"),children:["Wskaż lokalizację fotoradaru -"," "]}),(0,i.tZ)("span",{className:"text-base text-navy ".concat(F.className," leading-tight"),children:"możesz pobrać dane z mapy lub uzupełnić formularz samodzielnie."})]})]}),(0,i.BX)("div",{className:"w-full max-w-[25rem]",children:[(0,i.BX)("div",{className:"flex flex-col items-center justify-center gap-3 pt-5 s:gap-4",children:[(0,i.tZ)("div",{className:"flex h-20 w-full items-center justify-center bg-[url(/ndcr/images/other/speedCameraMap/button-background-map.svg)]",children:(0,i.tZ)(h.Z,{type:"button","aria-label":"kliknij by wybrać punkt na mapie",className:"!h-8 w-36 !rounded-lg !text-sm",text:"Wybierz z mapy",onClick:()=>{R(!1),U(!0)}})}),(0,i.BX)("span",{className:"text-sm font-bold text-navy ".concat(F.className," rounded-sm leading-tight"),children:[" ",(0,i.tZ)("p",{className:"mb-1 mr-5 inline-block w-10 rounded-sm border-b-2 border-solid border-navy"})," lub wpisz dane"," ",(0,i.tZ)("p",{className:"mb-1 ml-2 inline-block w-10 border-b-2 border-solid border-navy"})," "]}),(0,i.BX)("span",{className:"w-full text-end text-base s:mr-0 ".concat(F.className," pt-2 s:pt-0"),children:[(0,i.tZ)("span",{className:"text-base text-red contrast:text-black",children:"*"})," ",(0,i.tZ)("span",{className:"text-navy",children:"Pola wymagane"})]})]}),(0,i.BX)("div",{className:"flex flex-col gap-5",children:[(0,i.BX)("div",{className:"relative",children:[(0,i.tZ)(b.Z,{name:"address",label:"Ulica i nr domu/lokalu",maxLength:100,value:ex,setValue:e=>eR("string"==typeof e?e:""),className:"mt-0 w-full",required:!1,positiveValidation:!0,acceptEmpty:!0,textClassName:"text-navy !text-[15px]"}),(0,i.tZ)(K,{predictions:V(u),onSelect:e=>eI(e),inputName:"address",selectedIndex:$,onClose:()=>{}}),(0,i.tZ)("span",{className:"relative top-2 text-industrial-revolution contrast:text-black",children:"Adres może być przybliżony."})]}),(0,i.tZ)(b.Z,{name:"city",label:"Miejscowość",maxLength:100,value:eb,setValue:ef,invalid:ea&&!eb.trim(),className:"relative mt-0 w-full",positiveValidation:!0,customErrorMessage:"Podaj miejscowość",textClassName:"text-navy !text-[15px]"}),(0,i.tZ)(b.Z,{type:"postalCode",name:"postalCode",label:"Kod pocztowy",maxLength:6,value:ei,setValue:eo,className:"relative mt-0 w-full",required:!1,positiveValidation:!0,acceptEmpty:!0,textClassName:"text-navy !text-[15px]"}),(0,i.BX)("div",{className:"relative",children:[(0,i.tZ)(b.Z,{name:"roadNumber",label:"Oznaczenie lub nr drogi",maxLength:100,value:es,setValue:el,className:"relative mt-0 w-full",required:!1,positiveValidation:!0,acceptEmpty:!0,textClassName:"text-navy !text-[15px]"}),(0,i.tZ)("span",{className:"relative top-2 text-industrial-revolution contrast:text-black",children:"Np. droga krajowa nr 10"})]}),(0,i.tZ)(I.Z,{label:"Kraj",id:"countrySelector",value:eh,onChange:e=>{var a;return ew(null!==(a=null==e?void 0:e.value)&&void 0!==a?a:"")},className:"w-full text-ellipsis text-navy",selectClassName:"!h-11 ".concat(F.className," !font-normal !bg-[right_0.5rem_top_1rem]"),required:!0,placeholder:"Wybierz",items:eV,error:ea&&!eh.trim(),errorMessage:"Wybierz kraj"}),(0,i.tZ)(b.Z,{name:"longitude",label:"Szerokość geograficzna",maxLength:100,value:ed,setValue:eg,className:"relative mt-0 w-full",required:!1,type:"locationMeasure",positiveValidation:!0,acceptEmpty:!0,textClassName:"text-navy !text-[15px]"}),(0,i.tZ)(b.Z,{name:"latitude",label:"Długość geograficzna",maxLength:100,value:ep,setValue:eu,className:"relative mt-0 w-full",required:!1,type:"locationMeasure",positiveValidation:!0,acceptEmpty:!0,textClassName:"text-navy !text-[15px]"})]})]}),(0,i.tZ)("div",{className:"inline-flex gap-2.5 self-stretch pt-8 s:w-[19rem]",children:(0,i.BX)("div",{className:"flex items-start justify-start gap-2.5",children:[(0,i.tZ)("div",{className:"justify-center text-base font-bold text-navy ".concat(F.className," leading-tight"),children:"2."}),(0,i.tZ)("div",{className:"justify-center text-base font-bold text-navy ".concat(F.className," leading-tight"),children:"Dodaj informacje o fotoradarze"})]})}),(0,i.BX)("div",{className:"flex w-[25rem] max-w-[25rem] flex-col gap-4 pt-5 s:w-full",children:[(0,i.tZ)("div",{className:"relative flex w-full flex-col",children:(0,i.tZ)(I.Z,{label:"Typ fotoradaru",id:"speedCameraType",value:W,onChange:e=>{var a;G(null!==(a=null==e?void 0:e.value)&&void 0!==a?a:"")},className:"w-full text-ellipsis text-navy",selectClassName:"!h-11 ".concat(F.className," !font-normal 
1!bg-[right_0.5rem_top_1rem]"),required:!0,placeholder:"Wybierz",items:[{label:"Fotoradar stacjonarny",value:"Fotoradar stacjonarny",disabled:!1},{label:"Fotoradar mobilny",value:"Fotoradar mobilny",disabled:!1},{label:"Odcinkowy pomiar prędkości",value:"Odcinkowy pomiar prędkości",disabled:!1},{label:"Rejestrator przejazdu na czerwonym świetle",value:"Rejestrator przejazdu na czerwonym świetle",disabled:!1},{label:"Rejestrator przejazdu przez tory kolejowe",value:"Rejestrator przejazdu przez tory kolejowe",disabled:!1},{label:"Kontrola wyprzedzania",value:"Kontrola wyprzedzania",disabled:!1}],error:ea&&!W.trim(),errorMessage:"Wybierz typ fotoradaru"})}),(0,i.tZ)(b.Z,{name:"speedLimit",label:"Ograniczenie prędkości (km/h)",maxLength:3,value:em,setValue:ec,className:"mt-0 w-full",required:!1,type:"number",positiveValidation:!0,acceptEmpty:!0,textClassName:"text-navy !text-[15px]"}),(0,i.tZ)(z.Z,{name:"Dodatkowe informacje",label:"Dodatkowe informacje",rows:10,cols:20,maxLength:500,value:q,setValue:Q,className:"mt-0 flex w-full flex-col",showCharacterLimit:!0,positiveValidation:!0,required:!1,placeholder:"Treść...",acceptEmpty:!0,textClassName:"text-navy !text-[15px]"})]}),(0,i.tZ)("div",{className:"inline-flex gap-2.5 self-stretch pt-8 s:w-[19rem]",children:(0,i.BX)("div",{className:"flex items-start justify-start gap-2.5",children:[(0,i.tZ)("div",{className:"justify-center text-base font-bold text-navy ".concat(F.className," leading-tight"),children:"3."}),(0,i.tZ)("div",{className:"justify-center text-base font-bold text-navy ".concat(F.className," leading-tight"),children:"Wyraź zgodę"})]})}),(0,i.tZ)("div",{className:"flex w-[25rem] max-w-[25rem] flex-col gap-4 pt-5 s:w-full",children:(0,i.tZ)(f.Z,{size:"large",required:!0,variant:"green",errorIcon:!0,checked:ev,invalid:ea&&!ev,onChange:e=>ez(e),className:"relative items-start gap-5 [&_button]:min-h-8 [&_button]:min-w-8",label:(0,i.BX)("span",{className:"".concat(F.className," text-sm text-navy"),children:[(0,i.tZ)("span",{className:"text-red",children:"* "}),"Wyrażam zgodę na przetwarzanie moich danych osobowych przez Opooneo.pl S.A. z siedzibą w Bydgoszczy, będącego administratorem danych osobowych, w celu zgłoszenia fotoradaru na mapę fotoradar\xf3w. Zapoznałem się z treścią"," ",(0,i.tZ)(y.Z,{className:"contents",text:"Polityki prywatności",href:c.url("privacy-policy"),target:"_blank"}),"."]})})})]})})}),(0,i.tZ)(v.Z,{mobileAsDrawer:!0,open:H,headerClassName:"!text-navy",label:"Wskaż na mapie",onClose:()=>{er(ex),U(!1),R(!0)},footer:(0,i.BX)("span",{className:"my-3 flex h-[3.5rem] items-center justify-end s:my-0 s:h-[5.5rem] s:flex-col s:justify-evenly",children:[(0,i.tZ)(h.Z,{type:"button","aria-label":"Wr\xf3c do formularza",onClick:()=>{U(!1),R(!0)},className:"!text-lgs:!h-10 left-10 mr-3 !h-12 w-[12.5rem] !border-none !px-0 !font-normal s:!h-9 s:!text-sm m:relative",text:"Wr\xf3c do formularza",color:"ghost-blue"}),(0,i.tZ)(h.Z,{type:"submit","aria-label":"Wybierz lokalizacje",onClick:()=>{if(eO.current&&ek&&window.google&&window.google.maps){new window.google.maps.Geocoder().geocode({location:ek},(e,a)=>{if("OK"===a&&e&&e[0]){let a=e[0].formatted_address;er(a),eu(ek.lat.toString()),eg(ek.lng.toString()),Z(ek.lat),N(ek.lng);let n="",t="",r="";for(let a of e[0].address_components)a.types.includes("locality")&&(n=a.long_name),a.types.includes("administrative_area_level_2")&&!n&&(n=a.long_name),a.types.includes("country")&&(t=a.long_name),a.types.includes("postal_code")&&a.long_name.length>=4&&(r=a.long_name);let i=eD(t);eL(a),ef(n),ew(i?i.value:t),eo(r)}U(!1),R(!0)});return}U(!1),R(!0)},className:"!text-lgs:!h-10 left-10 !h-12 w-[18rem] s:!h-9 s:w-full m:relative",text:"Wybierz lokalizacje"})]}),children:(0,i.tZ)("section",{className:"w-full s:flex s:flex-col s:items-center","aria-label":"Wyszukaj lokalizację (ulica, miasto)",children:(0,i.BX)("div",{className:"w-[44rem] s:max-w-[18.75rem]",children:[(0,i.BX)("div",{className:"input-map-search-wrapper mb-3 mt-7 w-full",children:[(0,i.tZ)("label",{htmlFor:"locationSearch",className:"mb-1 text-sm text-navy",children:"Wyszukaj lokalizację (ulica, miasto)"}),(0,i.tZ)(k.Z,{className:"w-full !text-[15px] text-navy contrast:text-white",icon:{iconName:"icon-magnifier"},value:et,onChange:e=>eW("string"==typeof e?e:""),onSubmit:()=>eX,name:"LocationSearch",id:"locationSearch"}),(0,i.tZ)(K,{predictions:V(g),onSelect:e=>{er(e.description),p([]),B(-1),window.google&&window.google.maps&&new window.google.maps.Geocoder().geocode({address:e.description},(e,a)=>{if("OK"===a&&e&&e[0]){let a=e[0].geometry.location;Z(a.lat()),N(a.lng()),ey({lat:a.lat(),lng:a.lng()}),J(e=>e+1);let n="";for(let a of e[0].address_components)if(a.types.includes("postal_code")){n=a.long_name;break}eo(n)}})},inputName:"localization-search",selectedIndex:C,onClose:()=>{}})]}),(0,i.tZ)(P,{ref:eO,initialPosition:{lng:j||d.lng,lat:_||d.lat}
1,resetAddressInput:()=>er(""),markerLocation:ek,setMarkerLocation:e=>{Z(e.lat),N(e.lng),ey(e)}},Y)]})})}),(0,i.tZ)(O,{formStatus:L})]})};var U=e=>{let{clientAccount:a,userIp:n}=e,{directionsFrom:t,directionsTo:r,mapReady:o,errors:l,fromPredictions:m,toPredictions:c,isLoaded:d,setDirectionsFrom:p,setDirectionsTo:u,showMap:x,getPlacePredictions:f,selectPrediction:k,waypoints:y,addWaypoint:v,removeWaypoint:z,setWaypoint:j}=S(),[N,_]=(0,s.useState)(null),[Z,C]=(0,s.useState)(-1),[B,M]=(0,s.useState)(!1),T=(0,s.useRef)(null),E=(e,a,n)=>{var i;T.current&&clearTimeout(T.current);let o="function"==typeof e?e("from"===a?t:"to"===a?r:(null===(i=y[n])||void 0===i?void 0:i.value)||""):e;T.current=setTimeout(()=>{o.length>=3&&d&&f(o,a,n)},500)},X=(e,a,n)=>{var t;if(!N||N.type!==a||"waypoint"===a&&N.waypointIndex!==n)return;let r="from"===a?m:"to"===a?c:(null===(t=y[n])||void 0===t?void 0:t.predictions)||[];if("Escape"===e.key){e.preventDefault(),_(null),C(-1);return}r.length>0&&("ArrowDown"===e.key?(e.preventDefault(),C(e=>e<0||e>=r.length-1?0:e+1)):"ArrowUp"===e.key?(e.preventDefault(),C(e=>e<=0?r.length-1:e-1)):"Enter"===e.key?(e.preventDefault(),Z>=0&&Z<r.length&&A(r[Z],a,n)):"Backspace"===e.key&&C(-1))},A=(e,a,n)=>{k(e,a,n),_(null),C(-1)},D=(e,a)=>{var n;_({type:e,waypointIndex:a}),C(-1),E("from"===e?t:"to"===e?r:(null===(n=y[a])||void 0===n?void 0:n.value)||"",e,a)};return(0,i.BX)("div",{className:(0,g.cn)("relative col-start-1 col-end-2 row-start-1 row-end-2 box-border flex h-full flex-col items-center justify-center rounded-[10px] transition-opacity duration-300 s:w-[300px]",{"pointer-events-none opacity-0":o,"pointer-events-auto opacity-100":!o}),children:[(0,i.BX)("div",{className:"z-[1] w-[287px] py-5 s:w-[237px]",children:[(0,i.tZ)("span",{className:"mb-2.5 text-base font-bold uppercase tracking-[0.75px] text-navy",children:"Wyznacz trasę"}),(0,i.BX)("form",{className:"flex flex-col text-left",autoComplete:"off",onSubmit:e=>{e.preventDefault(),x()},children:[(0,i.BX)("div",{className:"relative",children:[(0,i.tZ)(b.Z,{name:"DirectionsFrom",label:"Jadę z...",maxLength:100,value:t,setValue:e=>{p(e),(null==N?void 0:N.type)==="from"?E(e,"from"):D("from")},invalid:l.directionsFrom,onKeyDown:e=>X(e,"from"),onFocus:()=>D("from"),textClassName:"text-navy contrast:text-black"}),N&&"from"===N.type&&m.length>0&&(0,i.tZ)(K,{predictions:V(m),onSelect:e=>A(e,"from"),inputName:"DirectionsFrom",selectedIndex:Z,onClose:()=>_(null)})]}),y.map((e,a)=>(0,i.BX)("div",{className:"relative",children:[(0,i.BX)("div",{className:"flex items-center gap-2",children:[(0,i.tZ)(b.Z,{name:"Waypoint".concat(a),label:"Punkt pośredni ".concat(a+1),textClassName:"text-navy contrast:text-black",maxLength:100,value:e.value,setValue:n=>{if("function"==typeof n){let t=n(e.value);j(a,t),(null==N?void 0:N.type)==="waypoint"&&(null==N?void 0:N.waypointIndex)===a&&E(t,"waypoint",a)}else j(a,n),(null==N?void 0:N.type)==="waypoint"&&(null==N?void 0:N.waypointIndex)===a&&E(n,"waypoint",a)},invalid:l.waypoints[a]||!1,onKeyDown:e=>X(e,"waypoint",a),onFocus:()=>D("waypoint",a)}),(0,i.tZ)("button",{type:"button",onClick:()=>z(a),className:"mt-5 h-8 w-8 rounded-full",children:(0,i.tZ)("span",{className:"icon-close text-xl/none text-industrial-revolution hover:text-red"})})]}),N&&"waypoint"===N.type&&N.waypointIndex===a&&e.predictions.length>0&&(0,i.tZ)(K,{predictions:V(e.predictions),onSelect:e=>A(e,"waypoint",a),inputName:"Waypoint".concat(a),selectedIndex:Z,onClose:()=>_(null)})]},a)),y.length<5&&(0,i.BX)("button",{type:"button",onClick:v,className:"mt-5 flex w-full items-center justify-center gap-2 rounded-md border-2 border-dashed border-cerebral-grey p-2 text-navy transition-colors duration-100 hover:border-industrial-revolution contrast:text-black",children:[(0,i.tZ)("span",{className:"icon-plus text-xl/none"}),(0,i.tZ)("span",{children:"Dodaj punkt pośredni"})]}),(0,i.BX)("div",{className:"relative",children:[(0,i.tZ)(b.Z,{name:"DirectionsTo",label:"Jadę do...",maxLength:100,value:r,setValue:e=>{u(e),(null==N?void 0:N.type)==="to"?E(e,"to"):D("to")},invalid:l.directionsTo,onKeyDown:e=>X(e,"to"),onFocus:()=>D("to"),textClassName:"text-navy contrast:text-black"}),N&&"to"===N.type&&c.length>0&&(0,i.tZ)(K,{predictions:V(c),onSelect:e=>A(e,"to"),inputName:"DirectionsTo",selectedIndex:Z,onClose:()=>_(null)})]}),(l.directionsFrom||l.directionsTo||l.waypoints.some(e=>e))&&(0,i.tZ)("div",{className:"mt-5 bg-white text-left",children:(0,i.tZ)(w.Z,{size:"small",variant:"negative",className:"contrast:text-black",children:"Wypełnij wszystkie pola formularza."})}),l.directionsError&&(0,i.tZ)("div",{className:"mt-5 bg-white text-left",children:(0,i.tZ)(w.Z,{size:"small",variant:"negative",className:"contrast:text-black",children:"Nie znaleziono trasy."})}),(0,i.tZ)(h.Z,{text:"Pokaż mapę fotoradar\xf3w",className:"mb-4 mt-8 !h-12 w-full !bg-[#ff5502] !text-lg hover:!bg-[#e64d02] focus:!bg-[#e64d02] s:mt-5 s:!h-10 s:!text-sm",onClick:x,type:"submit"}),(0,i.BX)("span",{className:"self-center rounded-sm text-sm leading-tight text-sky-950",children:[" ",(0,i.tZ)("p",{className:"mb-1 mr-10 inline-block w-10 rounded-sm border-b-2 border-solid border-sky-950"}),"lub",(0,i.tZ)("p",{className:"mb-1 ml-10 inline-block w-10 border-b-2 border-solid border-sky-950"})," "]}),(0,i.tZ)(h.Z,{text:"Zgłoś fotoradar",className:"s:!text-s mt-4 !h-12 w-full !text-lg s:mt-1 s:!h-10",onClick:()=>{M(!B)},type:"button"})]}),(0,i.tZ)(H,{isModalOpened:B,setIsModalOpened:M,clientAccount:a,userIp:n})]}),(0,i.tZ)(L(),{src:"/ndcr/images/other/speedCameraMap/map-form-background.webp",width:947,height:486,alt:"Mapa fotoradar\xf3w w Polsce i Europie",loading:"eager",className:"absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 roun
1ded-[10px] object-cover"})]})};n(79102);var Y=()=>{var e;let{isMapVisible:a,mapReady:n,setMapReady:t,resetForm:r,openDirectionsInGoogleMaps:o,isLoaded:l,directions:m,speedCameras:c}=S(),d=(0,s.useRef)(null),p=(0,N.U)(),[u,x]=s.default.useState(null),[L,w]=(0,s.useState)(0);(0,s.useEffect)(()=>{a||x(null)},[a]),(0,s.useEffect)(()=>{if(c.length>20){w(c.length);return}w(0);let e=setInterval(()=>{w(a=>a>=c.length?(clearInterval(e),a):a+1)},100);return()=>clearInterval(e)},[c]);let b=e=>"G"===e||"GA"===e?{icon:"/ndcr/images/other/speedCameraMap/map-legend-1.svg",title:"Kontrola prędkości"}:"A"===e?{icon:"/ndcr/images/other/speedCameraMap/map-legend-2.svg",title:"Kontrola przejazdu na czerwonym świetle"}:"SC"===e||"SCM"===e||"SCE"===e?{icon:"/ndcr/images/other/speedCameraMap/map-legend-3.svg",title:"Odcinkowy pomiar prędkości"}:"UHV"===e?{icon:"/ndcr/images/other/speedCameraMap/map-legend-4.svg",title:"Kontrola zakazu wyprzedzania"}:{icon:"/ndcr/images/other/speedCameraMap/map-legend-1.svg",title:"Kontrola prędkości"};return a&&(null==m?void 0:null===(e=m.routes)||void 0===e?void 0:e.length)?(0,i.tZ)("div",{className:(0,g.cn)("relative col-start-1 col-end-2 row-start-1 row-end-2 h-full w-full rounded-[10px] transition-opacity duration-300",{"opacity-0":!n,"opacity-100":n}),children:l&&(0,i.BX)(i.HY,{children:[(0,i.BX)("div",{className:"absolute bottom-5 left-1/2 z-10 flex -translate-x-1/2 items-center gap-5 s:grid s:gap-2.5",children:[(0,i.tZ)(h.Z,{size:{s:"small",l:"medium"},color:"ghost-blue",text:"Wr\xf3ć do wyszukiwania",onClick:()=>{x(null),r()},className:"!whitespace-nowrap !bg-white"}),(0,i.tZ)(h.Z,{size:{s:"small",l:"medium"},color:"ghost-blue",text:"Przejdź do mapy Google",onClick:o,className:"!whitespace-nowrap !bg-white"})]}),(0,i.BX)(j.b6,{mapContainerClassName:"w-full h-full rounded-[10px]",zoom:12,onLoad:e=>{var a;if(d.current=e,null==m?void 0:null===(a=m.routes[0])||void 0===a?void 0:a.bounds){let a=m.routes[0].bounds;e.fitBounds(a),p.hideLoading(),t(!0)}},options:{mapTypeId:"roadmap",streetViewControl:!1,mapTypeControl:!1,scrollwheel:!0,gestureHandling:"greedy"},children:[m&&(0,i.tZ)(j.tH,{directions:m,options:{suppressMarkers:!1,preserveViewport:!1}}),c.slice(0,L).map(e=>(0,i.tZ)(j.Jx,{position:{lat:e.Latitude,lng:e.Longitude},icon:{url:b(e.Type).icon,scaledSize:new google.maps.Size(25,40)},onClick:()=>x(e),animation:google.maps.Animation.DROP,options:{optimized:!1}},e.ID)),u&&(0,i.tZ)(j.nx,{position:{lat:u.Latitude,lng:u.Longitude},onCloseClick:()=>x(null),options:{pixelOffset:new google.maps.Size(0,-40)},children:(0,i.BX)("div",{className:"".concat(F.className," py-1 text-sm"),children:[(0,i.BX)("h3",{className:"font-bold",children:[b(u.Type).title," ",u.ID]}),(0,i.BX)("p",{children:[u.City,", ",u.Street]}),"A"!==u.Type&&(0,i.BX)("p",{children:["Limit prędkości: ",u.Speed," km/h"]}),(0,i.BX)("p",{className:"text-xs text-industrial-revolution",children:["Data ostatniej modyfikacji: ",u.ChangeTime]})]})})]})]})}):null},J=()=>(0,i.tZ)("div",{className:"flex flex-row items-center justify-between px-2.5 pl-7 pt-4 s:grid s:grid-cols-2 s:flex-wrap s:gap-x-1 s:gap-y-3 s:px-2",children:[{label:"fotoradar z ograniczeniem prędkości",imgSrcPattern:"/ndcr/images/other/speedCameraMap/map-legend-1.svg"},{label:"kontrola przejazdu na czerwonym świetle",imgSrcPattern:"/ndcr/images/other/speedCameraMap/map-legend-2.svg"},{label:"odcinkowy pomiar prędkości",imgSrcPattern:"/ndcr/images/other/speedCameraMap/map-legend-3.svg"},{label:"kontrola zakazu wyprzedzania",imgSrcPattern:"/ndcr/images/other/speedCameraMap/map-legend-4.svg"}].map(e=>{let{label:a,imgSrcPattern:n}=e;return(0,i.BX)("div",{className:"flex flex-row items-center gap-2.5 s:max-w-[149px]",children:[(0,i.tZ)("div",{className:"h-10 w-6 flex-shrink-0 bg-contain bg-center bg-no-repeat s:h-9 s:w-[1.375rem]",style:{backgroundImage:"url(".concat(n,")")},role:"img"}),(0,i.tZ)("span",{className:"max-w-[9.375rem] text-left text-xs text-[#02245b]",children:a})]},a)})}),q=e=>{let{mapRef:a,clientAccount:n,userIp:t}=e;return(0,i.tZ)(B,{children:(0,i.BX)("div",{ref:a,className:"relative z-[5] mb-2.5 box-border grid min-h-[570px] scroll-mt-12 grid-rows-[1fr_66px] rounded-[20px] bg-white px-2.5 pb-4 pt-2.5 s:min-h-[498px] s:scroll-mt-2 s:grid-rows-[1fr_111px] s:rounded-[15p
1x] m:scroll-mt-2",children:[(0,i.tZ)(Y,{}),(0,i.tZ)(U,{clientAccount:n,userIp:t}),(0,i.tZ)(J,{})]})})},Q=e=>{let{items:a,navOpen:n,setNavOpen:t}=e;return(0,i.tZ)("div",{className:(0,g.cn)("mb-3 flex justify-center divide-x divide-cerebral-grey s:absolute s:left-1/2 s:top-[44px] s:z-10 s:w-dvw s:-translate-x-1/2 s:flex-col s:items-center s:divide-x-0 s:divide-y s:divide-[#3396FF] s:bg-blue-hover s:py-1.5 s:shadow-light s:transition-opacity s:duration-200",{"s:pointer-events-none s:opacity-0":!n,"s:pointer-events-auto s:opacity-100":n}),children:a.map(e=>{let{label:a,ref:n}=e;return(0,i.tZ)("button",{className:"px-10 text-sm font-normal uppercase leading-normal tracking-[0.7px] text-[#02245b] hover:underline hover:underline-offset-3 focus:underline focus:underline-offset-3 s:w-[300px] s:py-2.5 s:text-xs s:tracking-[0.65px] s:text-white m:px-5",onClick:e=>{var a;e.preventDefault(),t(!1),null===(a=n.current)||void 0===a||a.scrollIntoView({behavior:"smooth"})},children:a},a)})})},$=e=>{let{navOpen:a,setNavOpen:n,mapRef:t}=e;return(0,i.BX)("div",{className:"mb-[96px] text-[#02245b] s:mb-[103px]",children:[(0,i.BX)("div",{className:"relative z-[1] s:flex s:flex-row s:items-center s:justify-between",children:[(0,i.BX)("h1",{className:"mb-1 text-4xl/11 font-bold s:text-lg m:text-3xl/9",children:[(0,i.tZ)("span",{className:"text-blue",children:"Mapa fotoradar\xf3w"}),"\xa0w Europie"]}),(0,i.tZ)("button",{onClick:()=>{n(!a)},className:"hidden pb-2 s:block",children:a?(0,i.tZ)("svg",{width:"21",height:"22",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.tZ)("path",{d:"M19.9096 19.0778L19.9097 19.0779C20.3634 19.556 20.3635 20.3261 19.9096 20.8039C19.6898 21.0352 19.389 21.1675 19.0727 21.1676C19.0725 21.1676 19.0724 21.1676 19.0723 21.1676V20.9176C18.8262 20.918 18.5899 20.8149 18.4162 20.6317L19.9096 19.0778ZM19.9096 19.0778L12.1571 10.9171L19.9096 2.75639C20.3635 2.27864 20.3635 1.50849 19.9096 1.03075C19.4489 0.54574 18.6957 0.54574 18.2349 1.03075L10.5001 9.17287L2.76521 1.03075C2.30441 0.545687 1.55167 0.545824 1.09061 1.03065C0.636171 1.50854 0.636783 2.27875 1.09053 2.75639L8.84307 10.9171L1.09053 19.0778C0.871022 19.3089 0.750139 19.6195 0.750139 19.9411C0.750139 20.6064 1.26582 21.1676 1.92787 21.1676C2.24436 21.1676 2.54532 21.0353 2.76521 20.8039L10.5001 12.6618L18.2347 20.8037L19.9096 19.0778Z",fill:"#B9B3B8",stroke:"#B9B3B8",strokeWidth:"0.5"})}):(0,i.BX)("svg",{width:"23",height:"20",viewBox:"0 0 23 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.BX)("g",{clipPath:"url(#clip0_865_7674)",children:[(0,i.tZ)("path",{d:"M21.4667 3.58341H1.53333C0.686646 3.58341 0 2.87438 0 2.00008C0 1.12578 0.686646 0.416748 1.53333 0.416748H21.4667C22.3134 0.416748 23 1.12578 23 2.00008C23 2.87438 22.3134 3.58341 21.4667 3.58341Z",fill:"#B9B3B8"}),(0,i.tZ)("path",{d:"M21.4667 19.4167H1.53333C0.686646 19.4167 0 18.7076 0 17.8333C0 16.959 0.686646 16.25 1.53333 16.25H21.4667C22.3134 16.25 23 16.959 23 17.8333C23 18.7076 22.3134 19.4167 21.4667 19.4167Z",fill:"#B9B3B8"}),(0,i.tZ)("path",{d:"M21.4667 11.5002H1.53333C0.686646 11.5002 0 10.7911 0 9.91683C0 9.04253 0.686646 8.3335 1.53333 8.3335H21.4667C22.3134 8.3335 23 9.04253 23 9.91683C23 10.7911 22.3134 11.5002 21.4667 11.5002Z",fill:"#B9B3B8"})]}),(0,i.tZ)("defs",{children:(0,i.tZ)("clipPath",{id:"clip0_865_7674",children:(0,i.tZ)("rect",{width:"23",height:"19",fill:"white",transform:"translate(0 0.416748)"})})})]})})]}),(0,i.BX)("p",{className:"relative z-[1] mx-auto mb-0.5 w-[530px] text-base/5 s:mb-2.5 s:w-[300px] s:text-xs",children:["Dla os\xf3b planujących podr\xf3że samochodem po Europie przygotowaliśmy aktualną ",(0,i.tZ)("strong",{children:"mapę fotoradar\xf3w"}),"."]}),(0,i.tZ)("p",{className:"relative z-[1] mx-auto w-[400px] text-sm/4 s:w-[150px] s:text-xs/3",children:"Wpisz miejsce startu i zakończenia swojej podr\xf3ży, aby poznać ich lokalizacje i rodzaje urządzeń przy wyznaczonej trasie."}),(0,i.BX)(d.E.button,{whileHover:{scale:1.01},whileTap:{scale:.99},onClick:()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},className:"1.5xl:left-[calc(50%+198px)] absolute left-[calc(50%+193px)] top-[132px] z-[2] flex aspect-square w-[114px] curs
1or-pointer flex-col items-center justify-center rounded-full bg-[#ff5502] text-center text-sm/4 font-bold text-white s:left-[calc(50%-178px)] s:top-[85px] s:w-[97px] s:text-xs m:left-[calc(50%+190px)] m:top-[125px] m:w-[101px] m:text-xs",children:[(0,i.tZ)("span",{className:"uppercase m:text-sm/none",children:"Sprawdź"}),"lokalizację fotoradar\xf3w",(0,i.tZ)("span",{className:"icon-arrow-down mt-1.5 text-2xs/none m:mt-1"})]})]})},ee=n(10620),ea=!0;function en(e){let a=[{title:(0,o.useTranslations)()("txtSEO_BCSpeedCameraMap"),href:"/mapa-fotoradarow"}],n=(0,s.useRef)(null),t=(0,s.useRef)(null),r=(0,s.useRef)(null),d=(0,s.useRef)(null),[x,L]=(0,s.useState)(!1);return(0,m.x)({id:"content",order:3}),(0,i.BX)(i.HY,{children:[(0,i.tZ)(c.Z,{items:a,className:"speedCameraMap"}),(0,i.BX)("main",{id:"content",className:"".concat(F.className," lightMode overflow-hidden"),children:[(0,i.BX)("section",{className:"relative bg-gradient-to-b from-transparent from-50% via-[#02245b] via-50% to-[#02245b] pb-9 pt-3 text-center m:pb-10 m:pt-1",children:[(0,i.BX)(l.Z,{className:"s:px-0",children:[(0,i.tZ)(Q,{items:[{label:"Mapa",ref:n},{label:"Rodzaje fotoradar\xf3w",ref:t},{label:"Zdjęcie z fotoradaru",ref:r},{label:"FAQ",ref:d}],navOpen:x,setNavOpen:L}),(0,i.tZ)($,{navOpen:x,setNavOpen:L,mapRef:n}),(0,i.tZ)(q,{mapRef:n,clientAccount:e.clientAccount,userIp:e.clientIp}),(0,i.tZ)("div",{className:"flex justify-end",children:(0,i.BX)("a",{href:"https://www.fotoradary.pl/",className:"z-30 inline-flex items-end justify-end gap-1.5 leading-2 text-white",rel:"nofollow",target:"_blank",children:["dane udostępnione przez: ",(0,i.tZ)("div",{className:"h-[32px] w-[66px] bg-[url(/ndcr/images/other/speedCameraMap/SCBD.svg)]"})]})})]}),(0,i.tZ)(u,{})]}),(0,i.BX)("section",{className:"relative bg-[#02245b] pb-8 pt-5 text-center text-white",children:[(0,i.tZ)("div",{className:"absolute left-0 top-0 z-[1] h-full w-full bg-[#00143380]"}),(0,i.BX)(l.Z,{className:"relative z-[29]",children:[(0,i.BX)("div",{className:"flex px-8 s:flex-col-reverse s:px-0 m:px-4",children:[(0,i.tZ)("div",{className:"h-[126px] w-[256px] flex-shrink-0 bg-[url(/ndcr/images/other/speedCameraMap/speedometer.webp)] bg-contain bg-center bg-no-repeat s:-mt-[46px] s:h-[62px] s:w-[126px] m:h-[107px] m:w-[217px]",role:"img"}),(0,i.BX)("p",{className:"text-lg s:text-sm m:text-sm",children:["Fotoradary często umieszcza się w miejscach, gdzie wielokrotnie dochodziło do niebezpiecznych sytuacji. Należy pamiętać, że przestrzeganie limit\xf3w prędkości jest obowiązkowe, niezależnie od obecności fotoradaru.",(0,i.tZ)("strong",{className:"mt-1 block text-1.5xl/none uppercase text-soccer-turf s:ml-auto s:mt-5 s:w-[160px] s:text-sm m:mt-2",children:"należy przestrzegać limit\xf3w prędkości"})]})]}),(0,i.tZ)("hr",{className:"relative left-1/2 w-[1025px] -translate-x-1/2 bg-white s:w-[420px] m:w-[818px]"}),(0,i.BX)("p",{className:"mx-auto w-[780px] pt-8 text-lg s:w-full s:pt-5 s:text-sm m:w-full m:text-base",children:["Mniejsza prędkość to r\xf3wnież spos\xf3b na oszczędność – auto zużywa w\xf3wczas znacznie mniej paliwa, o czym możesz przekonać się korzystając np. z naszego"," ",(0,i.tZ)("a",{className:"text-soccer-turf underline-offset-3 hover:underline focus:underline",href:(0,ee.N)("OLD_OPONEO","/kalkulator-spalania"),children:"kalkulatora spalania"}),"."]})]}),(0,i.tZ)("div",{className:(0,g.cn)("pointer-events-none absolute left-1/2 top-1/2 h-[1260px] w-[1229px] -translate-x-1/2 -translate-y-1/2 bg-[url('/ndcr/images/other/speedCameraMap/note-background-glow.webp')] bg-cover bg-center s:h-[820px] s:w-[800px]"),role:"presentation"})]}),(0,i.tZ)("section",{ref:t,className:"scroll-mt-10 bg-gradient-to-b from-[#02245b] from-50% via-[#02245b] via-[79%] to-50% pb-[50px] pt-[68px] text-center text-white s:scroll-mt-2 m:scroll-mt-2",children:(0,i.BX)(l.Z,{children:[(0,i.BX)("div",{className:"mb-6",children:[(0,i.BX)("h2",{className:"mb-6 text-5.25xl s:text-2xl",children:[(0,i.tZ)("strong",{children:"Rodzaje"})," fotoradar\xf3w"]}),(0,i.tZ)("p",{className:"text-center text-base s:text-xs",children:"CANARD (Centrum Automatycznego Nadzoru nad Ruchem Drogowym) oraz instytucje w innych krajach wykorzystują r\xf3żne systemy pomiarowe. Od ich typu zależne jest między innymi to, z jakiej odległości fotoradar robi zdjęcie."})]}),(0,i.tZ)(p,{items:[{image:"/ndcr/images/other/speedCameraMap/accordion-radar.webp",label:"Technologia <strong>radarowa</strong>
1",description:"Urządzenie wysyła sygnał elektromagnetyczny w kierunku zbliżających się pojazd\xf3w. Fale odbijają się od nich i wracają do źr\xf3dła, dzięki czemu system w oparciu o zmiany ich częstotliwości jest w stanie obliczyć prędkość nadjeżdżającego auta. To bardzo popularne i powszechnie stosowane rozwiązanie, kt\xf3re może dokonywać precyzyjnych pomiar\xf3w prędkości nawet z dużych odległości.",colorVariant:"green"},{image:"/ndcr/images/other/speedCameraMap/accordion-laser.webp",label:"Technologia <strong>laserowa</strong>",description:"To nowoczesna, zaawansowana opcja. Fotoradary działające w tej technologii nazywane są lidarami. Zasada ich działania polega na wysłaniu wiązki lasera w stronę pojazdu. Odbija się ona od karoserii i wraca do urządzenia, kt\xf3re oblicza długość fali świetlnej. Takie rozwiązanie jest znacznie bardziej precyzyjne od zwykłego radaru, sprawdza się jednak na mniejszych odległościach.",colorVariant:"darkblue"},{image:"/ndcr/images/other/speedCameraMap/accordion-speed.webp",label:"<strong>Odcinkowy</strong> pomiar prędkości",description:"To metoda, kt\xf3ra wykorzystuje dwa fotoradary. Pierwszy z nich rejestruje pojazd na początku wybranego odcinka drogi o określonej długości, a drugi na jego końcu. Następnie mierzony jest czas, w jakim kierowca pokonał ten dystans, a na koniec obliczona zostaje prędkość.",colorVariant:"blue"},{image:"/ndcr/images/other/speedCameraMap/accordion-overtake.webp",label:"Kontrola <strong>zakazu wyprzedzania</strong>",description:"Zasada funkcjonowania podobna jest do tego, jak działa fotoradar standardowy. Opiera się o fale elektromagnetyczne. R\xf3żnicę stanowi jednak możliwość określania przez urządzenie r\xf3wnież położenia pojazdu na drodze. Dzięki tej funkcjonalności może ono zarejestrować złamanie przez kierowcę zakazu wyprzedzania i na tej podstawie wystawiony zostaje mandat.",colorVariant:"orange"},{image:"/ndcr/images/other/speedCameraMap/accordion-lights.webp",label:"Rejestratory <strong>przejazdu na czerwonym świetle</strong>",description:"Przyspieszenie na pomarańczowym świetle nie jest dobrym pomysłem. W niekt\xf3rych miejscach zlokalizowane są specjalne kamery, kt\xf3re rejestrują pojazdy w momencie, kiedy te przekraczają skrzyżowanie po zmianie sygnału na czerwony. Nagrany przez nie materiał jest podstawą do nałożenia kary. Jeśli zastanawiasz się, jak wygląda rejestrator przejazdu na czerwonym świetle, to bardzo łatwo go dostrzec – to ż\xf3łta kamera zamontowana tuż przy światłach.",colorVariant:"lightblue"}],header:(0,i.BX)("p",{className:"mb-10 text-1.5xl font-bold s:mb-5 s:text-sm",children:["Obecnie na drogach można spotkać ",(0,i.tZ)("br",{}),"radary funkcjonujące w oparciu o poniższe technologie:"]})}),(0,i.BX)("div",{className:"scroll-mt-10 pb-[200px] s:scroll-mt-2 m:scroll-mt-2",ref:r,children:[(0,i.BX)("h2",{className:"mb-[70px] pt-10 text-5.25xl text-white s:mb-0 s:mt-12 s:text-2xl m:text-5xl",children:["Co robić gdy otrzymamy ",(0,i.tZ)("br",{})," zdjęcie wykonane przez ",(0,i.tZ)("strong",{children:"fotoradar"}),"?"]}),(0,i.BX)("div",{className:"relative mx-auto h-[786px] w-[792px] s:left-1/2 s:h-[395px] s:w-[360px] s:-translate-x-1/2",children:[(0,i.tZ)("div",{className:(0,g.cn)("relative z-[1] h-[786px] w-[792px] bg-cover bg-center","bg-[url('/ndcr/images/other/speedCameraMap/infographic-globe-960.webp')]","s:h-[395px] s:w-[360px] s:bg-[url('/ndcr/images/other/speedCameraMap/infographic-globe-320.webp')]"),role:"img","aria-label":"infografika"}),(0,i.tZ)("div",{className:"absolute left-[5px] top-[240px] z-[1] h-[264px] w-[78px] bg-[url('/ndcr/images/other/speedCameraMap/infographic-tree.webp')] bg-cover bg-center s:hidden",role:"img","aria-label":"drzewo"}),["Wykonanie zdjęcia przez fotoradar.","Zdjęcie trafia do rejestru, kt\xf3ry gromadzi dane o naruszeniach.","Otrzymanie przez właściciela pojazdu nakazu wskazania kierującego pojazdem"].map((e,a)=>(0,i.BX)("div",{className:(0,g.cn)("absolute z-[2] box-border rounded-[10px] bg-blue px-5 py-3 text-center text-xl font-bold text-white s:p-3 s:text-xs",{"left-[314px] top-[103px] w-[235px] s:left-[112px] s:top-[51px] s:w-[156px]":0===a,"left-[418px] top-[235px] w-[366px] s:left-[161px] s:top-[122px] s:w-[183px]":1===a,"left-[-22px] top-[473px] w-[348px] s:left-0.5 s:top-[243px] s:w-[211px]":2===a}),children:[(0,i.tZ)("div",{className:"absolute -top-9 left-1/2 flex size-[50px] -translate-x-1/2 items-center justify-center rounded-full bg-white text-3xl font-bold text-red s:-top-5 s:size-[30px] s:text-lg",children:"".concat(a+1,".")}),e]},a)),(0,i.BX)("div",{className:"absolute left-[225px] top-[568px] z-[1] h-[266px] w-[288px] s:left-[135px] s:top-[317px] s:z-[3] s:h-[103px] s:w-[95px]",children:[(0,i.tZ)("div",{className:"h-full w-full bg-[url('/ndcr/images/other/speedCameraMap/infographic-letter.webp')] bg-cover bg-center s:h-[103px] s:w-[95px]",role:"img","aria-label":"koperta"}),[{text:"Przyznanie się do przekroczenia prędkości i przyjęcie mandatu",arrow:"/ndcr/images/other/speedCameraMap/infographic-arrow-1.webp"},{text:"Nieprzyznanie się do przekroczenia prędkości i wskazanie kierującego pojazdem",arrow:"/ndcr/images/other/speedCameraMap/infographic-arrow-2.webp"},{text:"Nieprzyjęcie mandatu i niewskazanie osoby odpowiedzialnej",arrow:"/ndcr/images/other/speedCameraMap/infographic-arrow-3.webp"}].map((e,a)=>{let{text:n,arrow:t}=e;return(0,i.BX)("div",{className:(0,g.cn)("absolute text-center text-base font-bold text-[#02245b] s:text-xs",{"left-[-209px] top-[173px] w-[192px] s:left-[-118px] s:top-[70px] s:w-[110px]":0===a,"left-[-121px] top-[337px] w-[192px] s:left-[-83px] s:top-[160px] s:w-[140px]":1===a,"left-[170px] top-[326px] w-[170px] s:left-[79px] s:top-[144px] s:w-[110px]":2===a}),children:[n,(0,i.tZ)("div",{className:(0,g.cn)("absolute bg-cover bg-center",{'bottom-[74px] left-[111px] h-[91px] w-[163px] bg-[url("/ndcr/images/other/speedCameraMap/infographic-arrow-1.webp")] s:bottom-[66px] s:left-[66px] s:h-[49px] s:w-[88px] s:rotate-6':0===a,'bottom-[78px] left-[60px] h-[214px] w-[170px] bg-[url("/ndcr/images/other/speedCameraMap/infographic-arrow-2.webp")] s:bottom-[61px] s:left-[70px] s:h-[105px] s:w-[77px] s:-rotate-[25deg]':1===a,'-left-10 bottom-[78px] z-[3] h-[163px] w-[180px] bg-[url("/ndcr/images/other/speedCameraMap/infographic-arrow-3.webp")] s:bottom-[82px] s:left-[-32px] s:h-[91px] s:w-[101px]':2===a}),role:"img","aria-label":"strzałka"})]},a)})]}),(0,i.BX)("div",{className:"absolute left-[554px] top-[687px] z-[1] box-border flex size-[171px] flex-col items-center justify-center gap-2.5 rounded-full bg-[#0057b2] text-center s:left-[224px] s:top-[307px] s:size-[121px] s:gap-1",children:[(0,i.tZ)("span",{className:"text-xl font-bold s:px-1 s:text-xs/3",children:"Uważaj na\xa0oszust\xf3w!"}),(0,i.tZ)("span",{className:"mx-auto block w-[150px] text-base/5 s:w-[105px] s:text-xs/3",children:"Zawsze identyfikuj nadawcę wiadomości."})]}),(0,i.tZ)("div",{className:(0,g.cn)("absolute left-1/2 top-1/2 h-[1096px] w-[1689px] -translate-x-1/2 -translate-y-1/2 bg-[url('/ndcr/images/other/speedCameraMap/infographic-glow-960.webp')] bg-cover bg-center s:h-[518px] s:w-[798px] s:bg-[url('/ndcr/images/other/speedCameraMap/infographic-glow-320.webp')] s:bg-cover s:bg-center"),role:"presentation"})]})]})]})}),(0,i.BX)("section",{ref:d,className:"relative overflow-hidden pb-[145px] pt-[50px] s:pb-[100px]",children:[(0,i.BX)(l.Z,{children:[(0,i.BX)("h2",{className:"mb-10 text-center text-5xl text-[#02245b] s:text-2xl",children:["Wszystko, co chcesz wiedzieć ",(0,i.tZ)("strong",{children:"o\xa0fotoradarach"})]}),(0,i.tZ)(p,{items:[{label:"Z jakiej odległości <strong>fotoradar</strong> robi zdjęcie?",description:"Wykonywane przez fotoradar zdjęcie rejestrowane jest po wykryciu przekroczenia dozwolonej prędkości przez nadjeżdżający pojazd. W przypadku urządzeń radarowych możliwy dystans pomiaru wynosi nawet kilkaset metr\xf3w, jednak skutecznie wykorzystywany jest na kilkudziesięciu metrach. Mechanizmy laserowe, czyli lidary, choć precyzyjniejsze, mają kr\xf3tszy zasięg wynoszący od kilku do kilkudziesięciu metr\xf3w."},{label:"Czy <strong>fotoradar</strong> robi zdjęcia z tyłu?",description:"Istnieją sytuacje, w kt\xf3rych fotoradar robi zdjęcie z tyłu. Dlatego należy zwracać uwagę na znaki drogowe informujące o kontroli prędkości. Szczeg\xf3lną ostrożność trzeba zachować po przejechaniu skrzyżowania, kt\xf3re unieważnia wcześniejsze, określone przez odpowiedni znak maksymalne ograniczenie prędkości na drodze."},{label:"Czy <strong>fotoradary</strong> muszą być oznakowane?",description:"Zgodnie z obowiązującym w Pol
1sce prawem, kontrola prędkości musi być wcześniej oznaczona przez specjalny, niebiesko-biały znak: fotoradar. Same urządzenia muszą być także dobrze widoczne. Dlatego też obecnie mają one jaskrawy, ż\xf3łty kolor. Należy jednak podkreślić, że te obostrzenia nie dotyczą kontroli prędkości dokonywanych na drogach osobiście przez policję fotoradarami przenośnymi, ręcznymi.",secondDescription:"Warto pamiętać, że w innych krajach ustawodawstwo może wyglądać zupełnie inaczej. Oznacza to, że opuszczając granice Polski, możemy spotkać się np. z niezapowiedzianym wcześniej przez oznakowanie pomiarem prędkości. Dlatego przed wyjazdem warto sprawdzić mapę fotoradar\xf3w w Niemczech, Czechach, na Słowacji i w innych państwach europejskich, przez kt\xf3re zamierzamy przejeżdżać."},{label:"Po jakim czasie przychodzi mandat z <strong>fotoradaru</strong>?",description:"Na stronie CANARD (gitd.gov.pl) można znaleźć informację o tym, że mandaty z fotoradaru nie mogą być nałożone po upływie 60 dni od dnia ustalenia sprawcy zdarzenia. Jednak samo zdjęcie, po otrzymaniu kt\xf3rego trzeba wskazać osobę kierującą pojazdem w momencie wykroczenia przysyłane jest zazwyczaj w ciągu miesiąca od zarejestrowania zdarzenia, choć zdarzają się rzadkie sytuacje, w kt\xf3rych dociera ono nawet po ok. p\xf3ł roku.",secondDescription:"Cały proces może trwać nieco dłużej w przypadku zdjęcia z fotoradaru zrobionego za granicą. Jest to związane z koniecznością identyfikacji właściciela pojazdu przez zagraniczne służby oraz przekazaniem przez nich informacji odpowiednim organom w Polsce, kt\xf3re muszą wysłać mandat pocztą. Termin jego dostarczenia zależny jest w dużej mierze od stopnia biurokratyzmu w danym państwie, jednak na terenie całej Unii Europejskiej obowiązuje dyrektywa 2011/82/UE, zgodnie z kt\xf3rą wszystkie państwa członkowskie muszą ściśle wsp\xf3łpracować w kwestii wymiany informacji o właścicielach pojazd\xf3w. Dzięki temu proces nie trwa latami."}],variant:"transparent"})]}),(0,i.tZ)("div",{className:(0,g.cn)("absolute bottom-[-74px] left-1/2 z-[-1] h-[1386px] w-[1920px] -translate-x-1/2 object-cover","bg-[url('/ndcr/images/other/speedCameraMap/faq-background-1800.webp')] bg-cover bg-center","s:bottom-4 s:h-[356px] s:w-[768px] s:bg-[url('/ndcr/images/other/speedCameraMap/faq-background-320.webp')]","m:-bottom-10 m:h-[659px] m:w-[1200px] m:bg-[url('/ndcr/images/other/speedCameraMap/faq-background-768.webp')]","xl:bg-[url('/ndcr/images/other/speedCameraMap/faq-background-960.webp')]","1.5xl:bottom-[-77px] 1.5xl:w-[2560px]"),role:"presentation","aria-label":"tło"})]})]})]})}},14330:function(e,a,n){"use strict";var t=n(7320),r=n(41664),i=n.n(r),o=n(54226),s=n(2775),l=n(27884),m=n(44842),c=n(49629),d=n.n(c),g=n(92836);a.Z=e=>{let{items:a,xl:n,variant:r="default",className:c,hideOponeo:p}=e,u=(0,o.U)(),x=(0,l.J)(),L=(0,s.R)();return x.addBreadcrumbList(a),(0,t.tZ)("div",{className:(0,m.cn)(d().breadcrumb,{[d().xl]:"enabled"===n,[d().transparent]:"transparent"===r,[d()[c]]:c&&d()[c]}),children:(0,t.tZ)("div",{className:d().container,children:(0,t.tZ)("div",{style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,t.BX)("ul",{children:[!p&&(0,t.tZ)("li",{children:L.portalId===g.V.PortalId.OponeoPL?(0,t.tZ)(i(),{href:"/",prefetch:!1,children:"Oponeo"}):(0,t.tZ)("a",{href:"/",children:L.portalId===g.V.PortalId.ReifeneoDE?"Reifeneo":"Oponeo"})}),a.length>0&&(0,t.BX)(t.HY,{children:[a.slice(0,a.length-1).map((e,a)=>(0,t.tZ)("li",{className:!p||a>0?"icon-arrow-right":"text-nowrap",children:e.useClientRouting?(0,t.tZ)(i(),{prefetch:!1,href:e.href,onClick:u.showLoading,children:e.title}):(0,t.tZ)("a",{href:e.href,onClick:u.showLoading,children:e.title})},a)),(0,t.tZ)("li",{className:"icon-arrow-right",children:(0,t.tZ)("span",{children:a[a.length-1].title})})]})]})})})})}},81999:function(e,a,n){"use strict";var t=n(7320),r=n(11720),i=n(44842),o=n(49460);a.Z=e=>{let{type:a="text",value:n,icon:s,placeholder:l,autofocus:m,className:c,autocomplete:d,autocompleteTemplate:g,name:p,id:u,onClick:x,onTouchStart:L,onChange:h,onSubmit:w,onKeyDown:b}=e,[f,k]=(0,r.useState)(!1),[y,v]=(0,r.useState)(null!=n?n:""),z=(0,r.useRef)(null),j=(0,r.useRef)(null);(0,r.useEffect)(()=>{n&&v(n)},[n]);let N=e=>{j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{null==h||h(e)},500)};(0,r.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]),(0,r.useEffect)(()=>{n||k(!1)},[n]);let _=(0,r.useRef)(null);return(0,o.t$)(_,()=>k(!1)),(0,t.BX)("div",{ref:_,onClick:x,onTouchStart:L,onKeyDown:b,className:(0,i.cn)("relative flex items-center rounded-[5px] border border-cerebral-grey bg-white text-sm hover:border-black contrast:bg-black",c,{"rounded-b-none":f}),children:[(0,t.BX)("div",{className:"grid w-full items-center",children:[s&&(0,t.tZ)("span",{className:(0,i.cn)("col-start-1 row-start-1 px-4 text-base text-industrial-revolution contrast:text-white",s.iconName)}),(0,t.tZ)("input",{ref:z,className:(0,i.cn)("col-start-1 row-start-1 inline-block h-9 w-full rounded-[5px] bg-transparent contrast:text-white",{"indent-12":void 0!==s,"indent-4":void 0===s}),name:p,id:u,maxLength:45,value:y,type:a,placeholder:l,onChange:e=>{let a=e.currentTarget.value;v(a),a.length>=2?k(!0):(k(!1),null==h||h(a)),N(a)},onKeyDown:e=>{if("Enter"===e.key){j.current&&(clearTimeout(j.current),j.current=null);let a=e.currentTarget.value;null==h||h(a),null==w||w(a)}},autoFocus:m})]}),f&&(d||g)&&(0,t.BX)("div",{className:"absolute left-[-1px] top-full z-10 w-[calc(100%+2px)] rounded-b-[5px] border border-cerebral-grey bg-white shadow-sm",children:[d&&(0,t.tZ)("ul",{className:"p-1 text-sm",children:d.map((e,a)=>(0,t.tZ)("li",{children:(0,t.tZ)("button",{className:"my-0.5 w-full p-1 text-left hover:bg-lighthouse focus:bg-lighthouse",children:e})},a))}),g&&g]})]})}},79102:function(){},71062:function(e){e.exports={style:{fontFamily:"'__Sarala_643622', '__Sarala_Fallback_643622', Roboto, Avenir Medium, Helvetica, sans-serif",fontStyle:"normal"},className:"__className_643622",variable:"__variable_643622"}},49629:function(e){e.exports={breadcrumb:"e70dea",container:"cd155c",xl:"_81794a",transparent:"_3a47ed",cityRanking:"fca13f",noBorder:"_70a669",wider:"_148611",speedCameraMap:"_628a5f"}},13891:function(e,a,n){var t={"./chunk_0.json":[84581,84581],"./chunk_1.json":[60330,60330],"./chunk_10.json":[90654,90654],"./chunk_100.json":[28492,28492],"./chunk_101.json":[9420,9420],"./chunk_102.json":[65268,65268],"./chunk_103.json":[62173,62173],"./chunk_104.json":[34436,34436],"./chunk_105.json":[5995,5995],"./chunk_106.json":[57363,57363],"./chunk_107.json":[75021,75021],"./chunk_108.json":[93801,93801],"./chunk_109.json":[52288,52288],"./chunk_11.json":[36034,36034],"./chunk_110.json":[98303,98303],"./chunk_111.json":[39618,39618],"./chunk_112.json":[79731,79731],"./chunk_113.json":[26486,26486],"./chunk_114.json":[63112,63112],"./chunk_115.json":[58352,58352],"./chunk_116.json":[89513,89513],"./chunk_117.json":[18147,18147],"./chunk_118.json":[37329,37329],"./chunk_119.json":[76957,76957],"./chunk_12.json":[99198,99198],"./chunk_120.json":[2790,2790],"./chunk_121.json":[36555,36555],"./chunk_122.json":[25621,25621],"./chunk_123.json":[27597,27597],"./chunk_124.json":[47072,47072],"./chunk_125.json":[28632,28632],"./chunk_126.json":[76003,76003],"./chunk_127.json":[94058,94058],"./chunk_128.json":[77009,77009],"./chunk_129.json":[92560,92560],"./chunk_13.json":[99888,99888],"./chunk_130.json":[16775,16775],"./chunk_131.json":[66468,66468],"./chunk_132.json":[16657,42080],"./chunk_133.json":[37027,37027],"./chunk_134.json":[38555,38555],"./chunk_135.json":[19151,19151],"./chunk_136.json":[80374,80374],"./chunk_137.json":[24839,24839],"./chunk_138.json":[48153,48153],"./chunk_139.json":[14857,14857],"./chunk_14.json":[16625,16625],"./chunk_140.json":[48129,48129],"./chunk_141.json":[64499,64499],"./chunk_142.json":[53639,53639],"./chunk_143.json":[97774,97774],"./chunk_144.json":[38158,38158],"./chunk_145.json":[10258,10258],"./chunk_146.json":[55684,55684],"./chunk_147.json":[5010,5010],"./chunk_148.json":[94969,94969],"./chunk_149.json":[29134,29134],"./chunk_15.json":[33487,33487],"./chunk_150.json":[51669,51669],"./chunk_151.json":[12627,12627],"./chunk_152.
1json":[17537,17537],"./chunk_153.json":[79021,79021],"./chunk_154.json":[32071,32071],"./chunk_155.json":[32806,32806],"./chunk_156.json":[30713,30713],"./chunk_157.json":[42151,42151],"./chunk_158.json":[1252,1252],"./chunk_159.json":[16465,16465],"./chunk_16.json":[549,549],"./chunk_160.json":[545,545],"./chunk_161.json":[48739,48739],"./chunk_162.json":[25983,25983],"./chunk_163.json":[97334,97334],"./chunk_164.json":[47460,47460],"./chunk_165.json":[14869,14869],"./chunk_166.json":[95462,95462],"./chunk_167.json":[38348,38348],"./chunk_168.json":[47894,47894],"./chunk_169.json":[90119,90119],"./chunk_17.json":[54870,54870],"./chunk_170.json":[66946,66946],"./chunk_171.json":[30464,30464],"./chunk_172.json":[76955,76955],"./chunk_173.json":[57389,57389],"./chunk_174.json":[27323,27323],"./chunk_175.json":[25295,25295],"./chunk_176.json":[19905,19905],"./chunk_177.json":[7425,7425],"./chunk_178.json":[23468,23468],"./chunk_179.json":[86103,70704],"./chunk_18.json":[35845,35845],"./chunk_180.json":[11756,11756],"./chunk_181.json":[19966,19966],"./chunk_182.json":[5940,5940],"./chunk_183.json":[54185,54185],"./chunk_184.json":[2557,23306],"./chunk_185.json":[56091,56091],"./chunk_186.json":[69266,69266],"./chunk_187.json":[2121,2121],"./chunk_188.json":[43805,43805],"./chunk_189.json":[48611,48611],"./chunk_19.json":[91612,91612],"./chunk_190.json":[69679,69679],"./chunk_191.json":[69762,69762],"./chunk_192.json":[51268,51268],"./chunk_193.json":[3752,3752],"./chunk_194.json":[65302,65302],"./chunk_195.json":[4731,4731],"./chunk_196.json":[39529,39529],"./chunk_197.json":[44178,44178],"./chunk_198.json":[70016,70016],"./chunk_199.json":[22076,22076],"./chunk_2.json":[13209,13209],"./chunk_20.json":[13567,13567],"./chunk_21.json":[13251,13251],"./chunk_22.json":[57893,57893],"./chunk_23.json":[89332,89332],"./chunk_24.json":[15085,15085],"./chunk_25.json":[85088,85088],"./chunk_26.json":[49008,49008],"./chunk_27.json":[56286,56286],"./chunk_28.json":[84867,84867],"./chunk_29.json":[420,420],"./chunk_3.json":[79815,79815],"./chunk_30.json":[31803,31803],"./chunk_31.json":[39333,39333],"./chunk_32.json":[41327,41327],"./chunk_33.json":[50121,50121],"./chunk_34.json":[49066,49066],"./chunk_35.json":[67740,67740],"./chunk_36.json":[42348,42348],"./chunk_37.json":[73176,73176],"./chunk_38.json":[41668,41668],"./chunk_39.json":[14005,14005],"./chunk_4.json":[34674,34674],"./chunk_40.json":[25918,25918],"./chunk_41.json":[75262,75262],"./chunk_42.json":[23265,23265],"./chunk_43.json":[63163,63163],"./chunk_44.json":[22334,22334],"./chunk_45.json":[2659,2659],"./chunk_46.json":[45350,45350],"./chunk_47.json":[88257,88257],"./chunk_48.json":[14830,14830],"./chunk_49.json":[36550,36550],"./chunk_5.json":[76331,76331],"./chunk_50.json":[63174,63174],"./chunk_51.json":[21310,21310],"./chunk_52.json":[95644,95644],"./chunk_53.json":[62992,62992],"./chunk_54.json":[87185,87185],"./chunk_55.json":[53796,53796],"./chunk_56.json":[74997,74997],"./chunk_57.json":[83054,83054],"./chunk_58.json":[84289,84289],"./chunk_59.json":[75583,75583],"./chunk_6.json":[63922,63922],"./chunk_60.json":[24737,24737],"./chunk_61.json":[60418,60418],"./chunk_62.json":[72749,72749],"./chunk_63.json":[29628,29628],"./chunk_64.json":[5495,5495],"./chunk_65.json":[78460,78460],"./chunk_66.json":[69949,69949],"./chunk_67.json":[36505,36505],"./chunk_68.json":[72427,72427],"./chunk_69.json":[53443,53443],"./chunk_7.json":[45475,45475],"./chunk_70.json":[1952,1952],"./chunk_71.json":[13420,13420],"./chunk_72.json":[45464,45464],"./chunk_73.json":[53113,53113],"./chunk_74.json":[84933,84933],"./chunk_75.json":[2032,2032],"./chunk_76.json":[26128,26128],"./chunk_77.json":[34614,34614],"./chunk_78.json":[70498,70498],"./chunk_79.json":[76006,76006],"./chunk_8.json":[20864,20864],"./chunk_80.json":[19878,19878],"./chunk_81.json":[66901,66901],"./chunk_82.json":[11379,11379],"./chunk_83.json":[8328,8328],"./chunk_84.json":[81660,81660],"./chunk_85.json":[26032,26032],"./chunk_86.json":[91602,91602],"./chunk_87.json":[26635,13032],"./chunk_88.json":[61008,61008],"./chunk_89.json":[12092,12092],"./chunk_9.json":[31732,31732],"./chunk_90.json":[37758,37758],"./chunk_91.json":[13674,13674],"./chunk_92.json":[48578,48578],"./chunk_93.json":[6210,6210],"./chunk_94.json":[70787,70787],"./chunk_95.json":[17185,17185],"./chunk_96.json":[35849,35849],"./chunk_97.json":[19020,19020],"./chunk_98.json":[84394,84394],"./chunk_99.json":[7821,7821]};function r(e){if(!n.o(t,e))return Promise.resolve().then(function(){var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a});
1var a=t[e],r=a[0];return n.e(a[1]).then(function(){return n.t(r,19)})}r.keys=function(){return Object.keys(t)},r.id=13891,e.exports=r}},function(e){e.O(0,[91255,3213,92888,40179],function(){return e(e.s=67301)}),_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.