PageSourceSearch

https://hlavenec.cz/_next/static/immutable/chunks/1ebvfzy8j4apy.js

js hlavenec.cz collected 2026-10-02 12:30:11 UTC 23,696 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,368989,e=>{"use strict";var r=e.i(532405),a=e.i(522484),t=e.i(984106);let s=(0,t.default)("outline","arrow-left","ArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]]),n=(0,t.default)("outline","arrow-right","ArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]]);var l=e.i(649372),i=e.i(860399);let o=(0,t.default)("outline","calendar-plus","CalendarPlus",[["path",{d:"M12.5 21h-6.5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v5",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M16 19h6",key:"svg-4"}],["path",{d:"M19 16v6",key:"svg-5"}]]);var d=e.i(496102);let c=(0,t.default)("outline","mail","Mail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]]),m=(0,t.default)("outline","map-pin","MapPin",[["path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0",key:"svg-1"}]]),u=(0,t.default)("outline","phone","Phone",[["path",{d:"M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2",key:"svg-0"}]]);function p(e){let r=new Date(e);return Number.isNaN(r.getTime())?"":r.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,"")}e.s(["EventBlock",0,function({title:e,event:a,minulo:t=!1,plakat:s,rozpisNadpis:n="Program"}){return(0,r.jsxs)("section",{"aria-label":"Informace o akci",className:"mt-10 overflow-hidden rounded-2xl border border-border first:mt-0",children:[(0,r.jsxs)("div",{className:`grid gap-px bg-border ${a.where?"sm:grid-cols-2":""}`,children:[(0,r.jsxs)("div",{className:"bg-secondary/50 p-5",children:[(0,r.jsx)("p",{className:"eyebrow eyebrow-muted",children:"Kdy"}),(0,r.jsxs)("p",{className:"mt-2 flex items-start gap-2.5 text-base font-medium text-foreground",children:[(0,r.jsx)(i.IconCalendarEvent,{className:"mt-0.5 size-5 shrink-0 text-primary","aria-hidden":"true"}),a.when||function(e){if(!e)return"";let r=new Date(e);return Number.isNaN(r.getTime())?"":new Intl.DateTimeFormat("cs-CZ",{timeZone:"Europe/Prague",weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(r)}(a.start)]})]}),a.where&&(0,r.jsxs)("div",{className:"bg-secondary/50 p-5",children:[(0,r.jsx)("p",{className:"eyebrow eyebrow-muted",children:"Kde"}),(0,r.jsxs)("p",{className:"mt-2 flex items-start gap-2.5 text-base font-medium text-foreground",children:[(0,r.jsx)(m,{className:"mt-0.5 size-5 shrink-0 text-primary","aria-hidden":"true"}),(0,r.jsx)("span",{children:a.where})]})]})]}),(a.price||a.organizer)&&(0,r.jsxs)("dl",{className:"flex flex-wrap gap-x-8 gap-y-2 border-t border-border px-5 py-4 text-sm",children:[a.price&&(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("dt",{className:"text-muted-foreground",children:"Vstupné:"}),(0,r.jsx)("dd",{className:"font-medium text-foreground",children:a.price})]}),a.organizer&&(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("dt",{className:"text-muted-foreground",children:"Pořádá:"}),(0,r.jsx)("dd",{className:"font-medium text-foreground",children:a.organizer})]})]}),(a.contactPhone||a.contactEmail)&&(0,r.jsxs)("div",{className:"border-t border-border px-5 py-4",children:[(0,r.jsx)("p",{className:"eyebrow eyebrow-muted",children:"Přihlášky"}),(0,r.jsxs)("div",{className:"mt-2 flex flex-col items-start gap-1",children:[a.contactPhone&&(0,r.jsxs)("a",{href:`tel:${a.contactPhone.replace(/[\s ]/g,"")}`,className:"link-inline inline-flex min-h-11 items-center gap-2 text-base font-medium",children:[(0,r.jsx)(u,{className:"size-4 shrink-0 text-primary","aria-hidden":"true"}),a.contactPhone]}),a.contactEmail&&(0,r.jsxs)("a",{href:`mailto:${a.contactEmail}`,className:"link-inline inline-flex min-h-11 items-center gap-2 text-base font-medium break-all",children:[(0,r.jsx)(c,{className:"size-4 shrink-0 text-primary","aria-hidden":"true"}),a.contactEmail]})]})]}),a.program&&a.program.length>0&&(0,r.jsxs)("div",{className:"border-t border-border p-5",children:[(0,r.jsx)("p",{className:"eyebrow eyebrow-muted",children:n}),(0,r.jsx)("ul",{className:"mt-3 space-y-0",children:a.program.map(e=>(0,r.jsxs)("li",{className:"flex gap-4 border-b border-border py-3 last:border-b-0",children:[(0,r.jsx)("span",{className:"min-w-16 shrink-0 font-display text-base whitespace-nowrap text-primary",children:e.time}),(0,r.jsx)("span",{className:"min-w-0 text-base text-foreground",children:e.what})]},e.time+e.what))})]}),(a.start&&!t||a.link||s)&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3 border-t border-border bg-background p-5",children:[a.start&&!t&&(0,r.jsxs)("button",{type:"button",onClick:()=>(function(e,r){if(!r.start)return;let a=r.end??r.start,t=`BEGIN:VCALENDAR\r
2VERSION:2.0\r
3PRODID:-//Obec Hlavenec//Akce//CS\r
4BEGIN:VEVENT\r
5UID:${e.replace(/\s+/g,"-").toLowerCase()}@hlavenec.cz\r
6DTSTART:${p(r.start)}\r
7DTEND:${p(a)}\r
8SUMMARY:${e}\r
9LOCATION:${r.where}\r
10END:VEVENT\r
11END:VCALENDAR`,s=URL.createObjectURL(new Blob([t],{type:"text/calendar;charset=utf-8"})),n=document.createElement("a");n.href=s,n.download="akce-hlavenec.ics",n.click(),URL.revokeObjectURL(s)})(e,a),className:"inline-flex min-h-11 items-center gap-2 rounded-full border border-border bg-card px-4 py-2.5 text-sm font-semibold text-foreground hover:border-primary hover:text-primary-deep",children:[(0,r.jsx)(o,{className:"size-4 text-primary","aria-hidden":"true"})," Uložit do kalendáře"]}
11),s&&(0,r.jsxs)("a",{href:s.url,download:s.nazev,className:"inline-flex min-h-11 items-center gap-2 rounded-full border border-border bg-card px-4 py-2.5 text-sm font-semibold text-foreground hover:border-primary hover:text-primary-deep",children:[(0,r.jsx)(d.IconDownload,{className:"size-4 text-primary","aria-hidden":"true"})," Stáhnout plakát"]}),a.link&&(0,r.jsxs)("a",{href:a.link.href,className:"inline-flex items-center gap-2 rounded-full border border-border px-4 py-2.5 text-sm font-medium text-foreground hover:bg-secondary",children:[a.link.label," ",(0,r.jsx)(l.IconArrowUpRight,{className:"size-4","aria-hidden":"true"})]})]})]})},"PrevNext",0,function({prev:e,next:t}){return(0,r.jsxs)("nav",{"aria-label":"Další aktuality",className:"mt-14 grid gap-4 border-t border-border pt-8 sm:grid-cols-2",children:[e?(0,r.jsxs)(a.default,{href:`/zivot-v-obci/aktuality/${e.slug}`,className:"surface group p-5",children:[(0,r.jsxs)("span",{className:"eyebrow eyebrow-muted flex items-center gap-2",children:[(0,r.jsx)(s,{className:"size-4","aria-hidden":"true"})," Předchozí"]}),(0,r.jsx)("span",{className:"mt-2 block break-words font-display text-lg text-primary-deep",children:e.title})]}):(0,r.jsx)("span",{}),t&&(0,r.jsxs)(a.default,{href:`/zivot-v-obci/aktuality/${t.slug}`,className:"surface group p-5 sm:text-right",children:[(0,r.jsxs)("span",{className:"eyebrow eyebrow-muted flex items-center gap-2 sm:justify-end",children:["Následující ",(0,r.jsx)(n,{className:"size-4","aria-hidden":"true"})]}),(0,r.jsx)("span",{className:"mt-2 block break-words font-display text-lg text-primary-deep",children:t.title})]})]})}],368989)},827531,e=>{"use strict";var r=e.i(532405),a=e.i(887713),t=e.i(522484),s=e.i(550323),n=e.i(827053),l=e.i(991656);e.s(["NapsatUradu",0,function({className:e,popisek:i="Napsat úřadu"}){let o=(0,a.useRef)(null),d=(0,s.usePathname)(),c=(0,a.useId)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{href:"/kontakty/kontaktni-formular",className:e,onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||0!==e.button||"function"==typeof o.current?.showModal&&(e.preventDefault(),o.current.showModal())},children:i}),(0,r.jsx)("dialog",{ref:o,"aria-labelledby":c,className:"contact-dialog m-0! h-dvh max-h-dvh w-full max-w-none overflow-hidden border-0 bg-background p-0 text-foreground backdrop:bg-ink/60 backdrop:backdrop-blur-sm sm:m-auto! sm:h-auto sm:max-h-[calc(100dvh-4rem)] sm:w-[min(42rem,calc(100vw-2rem))] sm:rounded-2xl sm:border sm:border-border",children:(0,r.jsxs)("div",{className:"flex h-full max-h-dvh flex-col sm:max-h-[calc(100dvh-4rem)]",children:[(0,r.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b border-border px-5 py-4 sm:px-8 sm:py-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{id:c,className:"font-display text-xl text-primary-deep",children:"Napsat obecnímu úřadu"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Odpovídáme zpravidla do tří pracovních dnů."})]}),(0,r.jsx)("button",{type:"button",onClick:()=>o.current?.close(),"aria-label":"Zavřít",className:"grid size-11 shrink-0 place-items-center rounded-full border border-border text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground",children:(0,r.jsx)(n.IconX,{className:"size-5","aria-hidden":"true"})})]}),(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 pt-5 pb-[max(1.5rem,env(safe-area-inset-bottom))] sm:px-8 sm:py-6",children:(0,r.jsx)(l.KontaktniFormular,{zeStranky:d,bezRamecku:!0})})]})})]})}])},451422,e=>{"use strict";var r=e.i(532405),a=e.i(518133);e.s(["OdkazNaSoubor",0,function({href:e,nazev:t,children:s,...n}){return(0,r.jsx)("a",{href:e,download:(0,a.nazevKUlozeni)(t,e),onClick:r=>{r.metaKey||r.ctrlKey||r.shiftKey||0!==r.button||(r.preventDefault(),(0,a.stahni)(e,t).then(r=>{r||(window.location.href=e)}))},...n,children:s})}])},237561,460615,e=>{"use strict";e.s(["PaticSekce",()=>i],237561),e.s([],460615);var r=e.i(532405),a=e.i(522484),t=e.i(550323),s=e.i(827531);e.i(713658),e.i(373696);var n=e.i(524197);function l({item:e,dir:t}){return(0,r.jsxs)(a.default,{href:e.to,className:`group flex min-h-16 items-center gap-3 rounded-lg px-4 py-3 transition-colors hover:bg-secondary ${"next"===t?"sm:justify-end sm:text-right":""}`,children:["prev"===t&&(0,r.jsx)("span",{"aria-hidden":"true",children:"←"}),(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"eyebrow eyebrow-muted block",children:"prev"===t?"Předchozí":"Další"}),(0,r.jsx)("span",{className:"mt-0.5 block truncate font-semibold text-primary-deep",children:e.label})]}),"next"===t&&(0,r.jsx)("span",{"aria-hidden":"true",children:"→"})]})}function i({section:e,bezFormulare:o=!1}){let d=(0,t.usePathname)(),c=n.sections[e].nav.flatMap(e=>[e,...e.children??[]]),m=c.findIndex(e=>e.to===d),u=m>0?c[m-1]:void 0,p=m>=0&&m<c.length-1?c[m+1]:void 0;return(0,r.jsxs)(r.Fragment,{children:[(u||p)&&(0,r.jsxs)("nav",{"aria-label":"Další stránky v sekci",className:"mt-12 grid gap-1 border-t border-border pt-4 sm:grid-cols-2",children:[u?(0,r.jsx)(l,{item:u,dir:"prev"}):(0,r.jsx)("span",{className:"hidden sm:block"}),p&&(0,r.jsx)(l,{item:p,dir:"next"})]}),!o&&(0,r.jsxs)("div",{className:"mt-10 flex flex-col gap-4 roun
11ded-xl border border-border bg-secondary/60 p-6 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-display text-lg text-primary-deep",children:"NenaÅ¡li jste, co hledáte?"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"NapiÅ¡te nebo zavolejte na obecní úřad."})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,r.jsx)(s.NapsatUradu,{className:"btn-base btn-primary"}),(0,r.jsx)(a.default,{href:"/kontakty",className:"btn-base btn-outline",children:"Kontakty"})]})]})]})}},713658,e=>{"use strict";var r=e.i(532405),a=e.i(522484),t=e.i(550323),s=e.i(887713);function n(e,r){return e===r||e.startsWith(`${r}/`)}function l(e){if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=document.documentElement.classList.contains("a11y-no-motion")||window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:r?"auto":"smooth"})}function i({dolu:e=!1}){return(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-300 ease-in-out motion-reduce:transition-none ${e?"rotate-90":""}`,children:(0,r.jsx)("path",{d:"m9 18 6-6-6-6"})})}let o="flex w-full items-center gap-1.5 rounded-[0.5rem] px-2.5 py-2 text-left text-[0.9rem] leading-[1.5] outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card";function d({polozka:e,cesta:t,podstranka:s=!1}){let n=t===e.to;return(0,r.jsx)(a.default,{href:e.to,scroll:!1,onClick:l,"aria-current":n?"page":void 0,className:`${s?"polozka-podstranka flex w-full items-center gap-1.5 rounded-[0.5rem] px-2.5 py-2 text-left text-[0.85rem] leading-[1.5] outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card":`polozka-sekce ${o}`} ${n?"bg-secondary font-semibold text-secondary-foreground":"text-foreground/75 hover:bg-muted hover:text-foreground"}`,children:e.label})}function c({skupina:e,cesta:t}){let m=(0,s.useId)(),u=e.children??[],p=n(t,e.to)||u.some(e=>n(t,e.to)),[h,x]=(0,s.useState)(null),f=h??p,b=t===e.to;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-stretch gap-0.5",children:[(0,r.jsx)(a.default,{href:e.to,scroll:!1,onClick:l,"aria-current":b?"page":void 0,className:`polozka-sekce polozka-skupina ${o} min-w-0 flex-1 hover:bg-muted ${b?"bg-secondary font-semibold text-secondary-foreground":f||p?"font-semibold text-foreground":"font-medium text-foreground/80 hover:text-foreground"}`,children:(0,r.jsxs)("span",{className:"min-w-0",children:[e.label,p&&!b&&!f&&(0,r.jsx)("span",{className:"sr-only",children:" (obsahuje aktuální stránku)"})]})}),(0,r.jsxs)("button",{type:"button",onClick:()=>x(!f),"aria-expanded":f,"aria-controls":m,className:"flex w-9 shrink-0 items-center justify-center gap-1.5 rounded-[0.5rem] outline-none transition-colors duration-150 hover:bg-secondary focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card",children:[(0,r.jsx)("span",{className:"sr-only",children:f?`Sbalit podstr\xe1nky: ${e.label}`:`Rozbalit podstr\xe1nky: ${e.label}`}),p&&!f&&(0,r.jsx)("span",{"aria-hidden":"true",className:"size-1.5 shrink-0 rounded-full bg-primary"}),(0,r.jsx)(i,{dolu:f})]})]}),(0,r.jsx)("div",{id:m,inert:!f,className:`grid transition-[grid-template-rows] duration-300 ease-in-out motion-reduce:transition-none ${f?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,r.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,r.jsx)("ul",{className:"mt-0.5 mb-1 ml-3 space-y-0.5 border-l border-border pl-3",children:u.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(d,{polozka:e,cesta:t,podstranka:!0})},e.to))})})})]})}function m({korenSekce:e,nav:t,cesta:s}){let n=s===e.to;return(0,r.jsxs)("div",{className:"menu-sekce rounded-[1.125rem] border border-border bg-card p-3 shadow-(--shadow-soft)",children:[(0,r.jsx)(a.default,{href:e.to,scroll:!1,onClick:l,"aria-current":n?"page":void 0,className:"block rounded-[0.5rem] px-3 pt-1 pb-1.5 text-[1.15rem] leading-tight font-bold tracking-tight text-foreground outline-none transition-colors duration-150 hover:text-primary focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card",children:e.label}),(0,r.jsx)("div",{"aria-hidden":"true",className:"mx-3 border-t border-border"}),(0,r.jsx)("nav",{"aria-label":`Sekce ${e.label}`,className:"pt-2",children:(0,r.jsx)("ul",{className:"space-y-0.5",children:t.map(e=>(0,r.jsx)("li",{children:(e.children?.length??0)>0?(0,r.jsx)(c,{skupina:e,cesta:s}):(0,r.jsx)(d,{polozka:e,cesta:s})},e.to))})})]})}e.s(["SectionNav",0,function({korenSekce:e,nav:a}){let s=(0,t.usePathname)();return(0,r.jsx)("div",{className:"hidden lg:sticky lg:top-24 lg:block lg:max-h-[calc(100vh-7rem)] lg:self-start lg:overflow-y-auto",children:(0,r.jsx)(m,{korenSekce:e,nav:a,cesta:s})})}])},649372,e=>{"use strict";let r=(0,e.i(984106).default)("outline","arrow-up-right","ArrowUpRight",[["path",{d:"M17 7l-10 10",key:"svg-0"}],["path",{d:"M8 7l9 0l0 9",key:"svg-1"}]]);e.s(["IconArrowUpRight",0,r],649372)},860399,e=>{"use strict";let r=(0,e.i(984106).default)("outline","calendar-event","CalendarEvent",[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M16 3l0 4",key:"svg-1"}],["path",{d:"M8 3l0 4",key:"svg-2"}],["path",{d:"M4 11l16 0",key:"svg-3"}],["path",{d:"M8 15h2v2h-2l0 -2",key:"svg-4"}]]);e.s(["IconCalendarEvent",0,r],860399)},203019,(e,r,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t={callServer:function(){return n.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var s in t)Object.defineProperty(a,s,{enumerable:!0,get:t[s]});let n=e.r(749298),l=e.r(717735),i=e.r(316212)},991656,e=>{"use strict";var r=e.i(532405),a=e.i(887713),t=e.i(522484),s=e.i(913766),n=e.i(203019);let l=(0,n.createServerReference)("60a8e3c68e9960ef2d5fcc6476ad4c8d14ab3a24fe",n.callServer,void 0,n.findSourceMapURL,"odeslatDotaz"),i={stav:"cekam"},o=/^[^@\s]+@[^@\s]+\.[^@\s]{2,}$/,d={jmeno:function(e){return e.trim().length>=2?null:"Vyplňte prosím jméno."},email:function(e){return""===e.trim()?"Vyplňte prosím e-mail, aÅ¥ vám můžeme odpovědět.":o.test(e.trim())?null:"Tohle nevypadá jako e-mail. Zkontrolujte prosím zavináč a tečku, třeba [email protected]."},telefon:function(e){let r=e.replace(/\D/g,"");return""===r||9===(r.startsWith("420")?r.slice(3):r).length?null:"Telefon má mít devět číslic, třeba 777 123 456."},zprava:function(e){return e.trim().length>=10?null:"NapiÅ¡te prosím aspoň pár slov, čeho se dotaz týká."}};e.s(["KontaktniFormular",0,function({zeStranky:e,bezRamecku:n=!1}){let[o,c,m]=(0,a.useActionState)(l,i),u=(0,a.useId)(),[p]=(0,a.useState)(()=>Date.now()),[h,x]=(0,a.useState)({}),[f,b]=(0,a.useState)(""),[v,g]=(0,a.useState)(0),j=(0,a.useRef)(null),y=(e,r)=>{let a=d[e]?.(r)??null;return x(r=>{let t={...r};return a?t[e]=a:delete t[e],t}),a};if((0,a.useEffect)(()=>{"odeslano"===o.stav?j.current?.focus():"chyba"===o.stav&&o.pole&&document.getElementById(`${u}-${o.pole}`)?.focus()},[o,u]),"odeslano"===o.stav)return(0,r.jsxs)("div",{ref:j,tabIndex:-1,role:"status",className:n?"":"surface p-6",children:[(0,r.jsx)("span",{className:"grid size-11 place-items-center rounded-full bg-primary text-primary-foreground",children:(0,r.jsx)(s.IconCheck,{"aria-hidden":"true",className:"size-5"})}),(0,r.jsx)("p",{className:"mt-4 font-display text-lg text-primary-deep",children:"Zpráva odeÅ¡la"}),(0,r.jsx)("p",{className:"mt-2 text-muted-foreground",children:"Děkujeme. Na dotazy odpovídáme zpravidla do tří pracovních dnů. Pokud jde o něco naléhavého, zavolejte prosím na obecní úřad."})]});let N=`${u}-chyba`,k=e=>h[e]??("chyba"===o.stav&&o.pole===e?o.zprava:void 0),w=e=>h[e]?`${u}-${e}-chyba`:o.pole===e?N:void 0,z=e=>h[e]?(0,r.jsx)("span",{id:`${u}-${e}-chyba`,className:"mt-1 block text-sm text-destructive",children:h[e]}):null;return(0,r.jsxs)("form",{action:c,noValidate:!0,onSubmit:e=>{if(m)return void e.preventDefault();let r=new FormData(e.currentTarget),a={};for(let e of["jmeno","email","telefon","zprava"]){let t=d[e]?.(String(r.get(e)??""));t&&(a[e]=t)}if(Object.keys(a).length>0){e.preventDefault(),x(a);let r=["jmeno","email","telefon","zprava"].find(e=>a[e]);r&&document.getElementById(`${u}-${r}`)?.focus()}},className:n?"space-y-4":"surface space-y-4 p-6",children:[(0,r.jsx)("input",{type:"hidden",name:"zalozeno",value:p}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Pole s ",(0,r.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,r.jsx)("span",{className:"sr-only",children:"hvězdičkou"})," jsou povinná."]}),e&&(0,r.jsx)("input",{type:"hidden",name:"stranka",value:e}),(0,r.jsxs)("div",{"aria-hidden":"true",className:"absolute left-[-9999px] h-px w-px overflow-hidden",children:[(0,r.jsx)("label",{htmlFor:`${u}-web`,children:"Nevyplňujte"}),(0,r.jsx)("input",{id:`${u}-web`,name:"web",type:"text",tabIndex:-1,autoComplete:"off"})]}),(0,r.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,r.jsxs)("p",{children:[(0,r.jsxs)("label",{htmlFor:`${u}-jmeno`,className:"mb-1 block text-sm font-medium",children:["Jméno ",(0,r.jsx)("span",{"aria-hidden":"true",children:"*"})]}),(0,r.jsx)("input",{id:`${u}-jmeno`,name:"jmeno",required:!0,maxLength:120,autoComplete:"name",className:"field","aria-invalid":!!k("jmeno")||void 0,"aria-describedby":w("jmeno"),onBlur:e=>y("jmeno",e.currentTarget.value)}),z("jmeno")]}),(0,r.jsxs)("p",{children:[(0,r.jsxs)("label",{htmlFor:`${u}-email`,className:"mb-1 block text-sm font-medium",children:["E-mail ",(0,r.jsx)("span",{"aria-hidden":"true",children:"*"})]}),(0,r.jsx)("input",{id:`${u}-email`,name:"email",type:"email",required:!0,maxLength:200,autoComplete:"email",inputMode:"email",placeholder:"[email protected]",className:"field","aria-invalid":!!k("email")||void 0,"aria-describedby":w("email"),onBlur:e=>y("email",e.currentTarget.value)}),z("email")]})]}),(0,r.jsxs)("p",{children:[(0,r.jsxs)("label",{htmlFor:`${u}-telefon`,className:"mb-1 block text-sm font-medium",children:["Telefon ",(0,r.jsx)("span",{className:"font-normal text-muted-foreground",children:"(nepovinné)"})]}),(0,r.jsx)("input",{id:`${u}-telefon`,name:"telefon",type:"tel",autoComplete:"tel",inputMode:"tel",maxLength:16,placeholder:"777 123 456",value:f,onChange:e=>{let r,a,t,s,n,l,i=((r=e.currentTarget.value.replace(/[^\d+]/g,"")).startsWith("00")&&(r=`+${r.slice(2)}`),a=r.startsWith("+"),t=r.replace(/\D/g,""),s=a?t.slice(0,3):"",l=(n=(a?t.slice(3):t).slice(0,9)).replace(/(\d{3})(?=\d)/g,"$1 "),a?`+${s}${n?" ":""}${l}`:l);b(i),h.telefon&&y("telefon",i)},onBlur:e=>y("telefon",e.currentTarget.value),className:"field num","aria-invalid":!!k("telefon")||void 0,"aria-describedby":w("telefon")}),z("telefon")]}),(0,r.jsxs)("p",{children:[(0,r.jsxs)("label",{htmlFor:`${u}-zprava`,className:"mb-1 block text-sm font-medium",children:["Zpráva ",(0,r.jsx)("span",{"aria-hidden":"true",children:"*"})]}),(0,r.jsx)("textarea",{id:`${u}-zprava`,name:"zprava",required:!0,rows:5,maxLength:1e3,className:"field min-h-28","aria-invalid":!!k("zprava")||void 0,"aria-describedby":w("zprava"),onInput:e=>g(e.currentTarget.value.length),onBlur:e=>y("zprava",e.currentTarget.value)}),(0,r.jsxs)("span",{className:"mt-1 flex justify-between gap-4",children:[z("zprava"),v>=850&&(0,r.jsxs)("span",{className:"ml-auto block text-xs text-muted-foreground num",children:[v,"/1000"]})]})]}),"chyba"===o.stav&&(0,r.jsx)("p",{id:N,role:"alert",className:"rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:o.zprava}),(0,r.jsx)("button",{type:"submit","aria-disabled":m||void 0,"aria-busy":m||void 0,className:"btn-base btn-primary w-full sm:w-auto aria-disabled:opacity-70",children:m?"Odesílám…":"Odeslat zprávu"}),(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Jak nakládáme s údaji, popisuje"," ",(0,r.jsx)(t.default,{className:"link-inline",href:"/obecni-urad/informace-o-zpracovani-osobnich-udaju",children:"zpracování osobních údajů"}),"."]})]})}],991656)}]);

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.