(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[578],{7148:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/[host]/[[...urls]]",function(){return t(1539)}])},6976:function(e,l,t){"use strict";t.d(l,{Z:function(){return i}});var s=t(7294),n=t(7650);function i(e,l){"number"==typeof e&&(e={rootMargin:e+"px"}),"object"!=typeof e&&(e={});let{ref:t,inView:i,entry:a}=(0,n.YD)(e);return"function"==typeof l&&(0,s.useEffect)(()=>{i&&l(i)},[i]),[t,i,a]}},1539:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return lo},default:function(){return ld}});var s,n,i=t(5893),a=t(9008),c=t.n(a),r=t(789),o=t.n(r),d=t(7294),x=t(5892),h=t.n(x),m=t(5152),u=t.n(m),j=t(6976);function p(e){let{src:l,width:t,height:s,loading:n="lazy",rootMargin:a=200,objectPosition:c,objectFit:r,alt:o="",sizes:d=[],useSources:x=!0,...h}=e;if(!l||"string"!=typeof l)throw console.log(l),Error("Image.src [string] is Mandatory");let m="https://cdn.justo.cz/",u="560,640,960,1024,1120,1280,1366,1920,2048".split(/,\s*/).map(e=>parseInt(e));if(t){let e=u.find(e=>e>=t);u=u.filter(l=>l<=e)}l.match(/^s3:\/\//)&&(l=l.replace("s3://",m)),l.match(/^(http:|https:)\/\//)||(l=m.replace(/\/$/,"")+"/"+l.replace(/^\//,""));let p=x&&Object.fromEntries("webp".split(/,\s*/).map(e=>[e,u.map(t=>l.replace("/original/","/".concat(e,"/").concat(t,"/"))+" ".concat(t,"w"))])),[g,b]=(0,j.Z)(a);return(0,i.jsxs)(v,{...e,children:[" ",(0,i.jsxs)("picture",{ref:g,children:[x&&Object.entries(p).map((e,l)=>{let[t,s]=e;return(0,i.jsx)("source",{type:"image/".concat(t),srcSet:s.join(", "),sizes:(null==d?void 0:d.length)?d.join(", "):void 0},l)}),(0,i.jsx)("img",{["eager"===n||b?"src":"data-src"]:l,alt:o,loading:n,style:f({width:t,height:s,objectFit:r,objectPosition:c}),...h})]})]})}let v=e=>{let{width:l,height:t,className:s,children:n}=e,a={width:"100%",height:"100%",display:"inline-block"};return l&&t&&(a={...a,position:"relative",paddingBottom:t/l*100+"%"}),(0,i.jsx)("span",{style:a,className:s,children:n})},f=e=>{let{width:l,height:t,objectFit:s,objectPosition:n}=e,i={width:"100%",height:"100%",objectFit:s||"inherit",objectPosition:n||"inherit"};return l&&t&&(i={...i,width:"100%",height:"100%",position:"absolute",top:0,right:0,bottom:0,left:0}),i},g=u()(()=>Promise.all([t.e(861),t.e(481)]).then(t.bind(t,4481)),{loadableGenerated:{webpack:()=>[4481]},ssr:!1}),b=e=>{let{image:l,video:t,name:s}=e;return(!!l||!!t)&&(t?(0,i.jsx)("div",{className:h().cover,children:(0,i.jsx)(g,{video:t,image:null==l?void 0:l.replace("/original/","/webp/1920/")})}):(0,i.jsx)("div",{className:h().cover,children:(0,i.jsx)(p,{src:l,alt:s,width:1920})}))},k=e=>{let{image:l,name:t,className:s=""}=e;return(0,i.jsx)("div",{className:h().profile+" "+s,children:(0,i.jsx)(p,{src:l,alt:t,width:640,height:640})})};var w=t(3219),N=t(87),y=t(4128),_=t(4871),z=t(8005),Z=t(4020),S=t(9535);let C=e=>{let{links:l}=e;return(0,i.jsx)("div",{className:h().socials,children:l.map((e,l)=>{let t=e.match(/facebook\.com/)?y.Z:e.match(/instagram\.com/)?Z.Z:e.match(/sreality\.cz/)?P:e.match(/firmy\.cz/)?D:e.match(/mapy\.cz/)?O:e.match(/youtube\.com|youtu\.be/)?_.Z:e.match(/linkedin\.com/)?z.Z:e.match(/google\.com|goo\.gl/)?S.Z:N.Z;return(0,i.jsx)("a",{href:e,target:"_blank",children:(0,i.jsx)(t,{})},l)})})},P=()=>(0,i.jsx)(w.Z,{children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",children:(0,i.jsx)("path",{d:"m20.12544,3.90477c.36369-.65276.71574.33501,1.04458,1.5688.32633,1.22601,1.16141,2.50541-1.03287,2.67305-.82997-.01641-1.59049-.09508-3.24324-.00556-1.47143.08146-1.78923.15262-2.79697.4815-.49023.16986-.50936.69586-.06516.97497.3115.19571,1.87485.77425,3.28639,1.33083,1.74838.68972,4.30725,1.54712,5.38215,2.34863,1.62563,1.21123,1.48774,3.02411.87134,4.0856-.68379,1.17594-2.8347,1.71169-5.68764,2.26604-3.26808.63382-4.45662.59713-6.98094.64687-2.78785.05538-6.03852.04396-8.63539-.20482-2.65882-.25523-2.36733-.65643-2.10211-.81151.22754-.13232,1.23106-.08206,2.40702-.12958,2.04386-.08288,5.15633-.36057,7.57509-.67141,3.49069-.44731,5.40839-.90181,6.89695-1.81177,1.24822-.76311.52737-1.55461.33033-1.70168-.49816-.5866-2.41868-1.4231-4.08997-2.27412-2.43499-1.23962-4.26306-2.29437-4.73009-3.29519-.36117-.77342-.3069-1.74922.60239-2.62495,1.06341-1.02529,2.30822-1.57464,3.96609-1.96663,1.80917-.42757,2.83923-.4362,4.29613-.48123,1.19196-.03642,2.47754.01085,2.70594-.39783",fillRule:"evenodd"})})}),D=()=>(0,i.jsx)(w.Z,{children:(0,i.jsx)("svg",{viewBox:"-3 -3 32 32",children:(0,i.jsx)("path",{d:"M23.616 2.719c-.346-.612-.895-1.12-1.47-1.453C20.003.02 17.586.008 15.219 0a34.91 34.91 0 00-5.132.372c-.939.136-1.874.31-2.801.515a34.27 34.27 0 00-3.283.873c-.98.321-1.925.89-2.827 1.406-.42.24-.869.557-1.07 1.042-.24.582-.003 1.137.044 1.728.066.821.396 1.075.798 1.692.795 1.22 2.067 1.551 3.372 1.028.342-.137 1.185-.785 1.506-.689.521.157.075 1.83-.035 2.234-.15.552-.43.963-.942 1.164-.43.168-1.319.071-1.46.67-.396 1.673 1.296 2.907 1.53 4.394.117.743-.181 1.487-.258 2.221-.101.964-.155 1.938-.232 2.905-.036.453-.161 1.076-.117 1.52.068.677.801 1.086 1.354.865.875-.35 1.337-1.5 1.692-2.345.486-1.159.742-2.337.97-3.575.152-.83.425-1.714 1.334-1.819 1.201-.137 2.371-.481 3.575-.617 1.293-.147 2.597-.207 3.877-.473.853-.177 1.724-.15 2.583-.277 1.446-.214 3.154-.787 4.41-1.603.613-.398.853-1.292 1.106-1.963.663-1.757-3.846-1.515-4.529-1.522-1.943-.018-3.744.036-5.404.179-1.215.105-2.412.197-3.632.173-.532-.01-1.307-.005-1.654-.519-.407-.603-.118-1.92.135-2.54.319-.785 1.532-.567 2.161-.616 1.07-.084 2.134-.248 3.206-.296 2.282-.102 4.469-.204 6.73-.587.568-.096 1.58-.296 1.72-1.029.121-.645-.027-1.258-.33-1.792",fillRule:"evenodd"})})}),O=()=>(0,i.jsx)(w.Z,{children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",children:(0,i.jsx)("path",{d:"m17.75,4.8c1.2.62,2.32,1.1,2.89,2.47.56,1.34-.59,6.99-.58,10.77,0,.18,0,.36,0,.54.05,1.35-.48,3.98-1.63,3.37-.37-.2-.91-1.33-1.34-2.6-.7-2.07-.12-7.17-.7-7.28-.91,1.08-3.33,3-4.25,3.6-1.58,1.02-2.08-.39-2.36-1.3-.34-1.11-1.65-3.59-1.91-3.79-.2-.15-.22.06-.25.2-.1.32-.6,3.76-1.14,5.64-.58,2.02-1.96,5.34-2.6,6.12-.64.78-3.3,1.45-3.84,1.47-.35.08,1.87-4.45,2.4-6.37.75-1.97,1.89-6.52,2.04-9.56.12-2.01-.05-3.88-.08-4.42,0-.73.74-1.12,1.16-1.21.48-.1,1.53-.29,2.6.9.63.7,1.61,3.03,1.88,3.61.34.72,1.75,3.99,1.96,4.75.71-.51,1.76-1.53,2.82-2.68,1.14-1.24,2.41-3.31,2.55-4.34.13-.05.26.05.38.12,0,0-.12-.07,0,0h0Z"})})});var E=e=>{let l=u()(()=>Promise.all([t.e(860),t.e(686)]).then(t.bind(t,1686)),{loadableGenerated:{webpack:()=>[1686]}});return(0,i.jsx)(l,{...e})},F=t(326),T=t(1145),A=t(9418),R=t(1664),L=t.n(R);let I=e=>{let{children:l,href:t="#",...s}=e;return(0,i.jsx)(L(),{href:t,scroll:!1,...s,children:l})};function V(e){let{profile:l,menu:t}=e,[s,n]=(0,d.useState)(!1),a=e=>{var l;e.preventDefault(),e.stopPropagation(),n(!s),s||null===(l=window.clickAway)||void 0===l||l.push(()=>n(!1))};return(0,i.jsxs)("div",{className:h().menudrop,children:[(0,i.jsx)("button",{onClick:a,children:(0,i.jsx)(F.Z,{fontSize:"small"})}),s&&(0,i.jsxs)("ul",{children:[Object.entries(t).map((e,l)=>{let[t,{title:s}]=e;return(0,i.jsx)(I,{href:"/"+("home"===t?"":t),className:"button",children:(0,i.jsx)("span",{children:s})},l)}),l.bookings&&(0,i.jsx)(I,{href:l.bookings,target:"_blank",className:"button",children:(0,i.jsxs)("span",{children:[(0,i.jsx)(A.Z,{fontSize:"inherit",className:"-mt-0.5 mr-2"}),"Rezervace"]})}),(0,i.jsx)(I,{href:"tel:"+l.contact.phone,className:"button lg:!hidden",children:(0,i.jsxs)("span",{children:[(0,i.jsx)(T.Z,{fontSize:"inherit",className:"-mt-0.5 mr-2"}),"Volat"]})})]})]})}let M=e=>{window.location=e.currentTarget.href.replace("_!_","@"),e.preventDefault()},U=e=>e.replace("@","_!_");var B=t(7507);function J(e){let{profiles:l,wrap:t=!1,contacts:s=!1}=e;if(!(null==l?void 0:l.length))return!1;let n=(0,i.jsx)("div",{className:t?"flex flex-wrap gap-5":"flex",children:l.map((e,l)=>{var n;return(0,i.jsxs)("div",{className:t?"w-[148px]":"w-[148px] mr-5",children:[(0,i.jsxs)("a",{href:null===(n=e.contact)||void 0===n?void 0:n.web,target:"_blank",className:"block",children:[(0,i.jsx)("span",{className:"block w-[148px] h-[148px] rounded-lg overflow-hidden bg-gray-100 shadow-lg dark:shadow-none",children:(0,i.jsx)(p,{src:e.profile,alt:e.name,width:640,height:640,className:"transition-transform hover:scale-105"})}),(0,i.jsx)("strong",{className:"block mt-2 -mb-1",children:e.name}),(0,i.jsx)("small",{className:"opacity-60",children:e.jobTitle})]}),s&&(0,i.jsxs)("div",{className:"mt-1 text-sm",children:[e.contact.phone&&(0,i.jsx)("a",{href:"tel:".concat(e.contact.phone),children:e.contact.phone}),e.contact.email&&(0,i.jsxs)("a",{href:"mailto:".concat(U(e.contact.email)),onClick:M,className:"block",children:[e.contact.email.split("@")[0],(0,i.jsx)(B.Z,{className:"!ml-0 !mr-0.25 !text-sm"}),e.contact.email.split("@")[1]]})]})]},l)})});return t?n:(0,i.jsx)("div",{className:"-mx-4 px-4 pb-5 -mb-5 overflow-x-auto overflow-y-hidden",children:n})}var K=t(5363),q=t(4814),G=t.n(q),W=t(1163);function H(){let e=(0,W.useRouter)();return(0,d.useEffect)(()=>{e.push("/")},[]),(0,i.jsx)("div",{className:"text-center py-8",children:(0,i.jsx)("h4",{children:" Error 404 "})})}var $=t(6448),Q=t(6307);function X(e){var l;let{profile:t,title:s="",link:n="",form:a=!0,call:c=!0,share:r=!0,border:o=!0,className:x="",offer:h}=e,[m,u]=(0,d.useState)(!1),[j,p]=(0,d.useState)(!1),[v,f]=(0,d.useState)(!1),g=async e=>{var l,t;e.preventDefault(),e.stopPropagation(),!await (null===(t=navigator.share)||void 0===t?void 0:t.call(navigator,{title:s,text:s,url:n}).then(()=>!0).catch(e=>(null==e?void 0:e.name)==="AbortError"))&&(p(!j),j||null===(l=window.clickAway)||void 0===l||l.push(()=>p(!1)))},b=e=>{var l;e.preventDefault(),e.stopPropagation(),null==navigator||null===(l=navigator.clipboard)||void 0===l||l.writeText(n).then(()=>{f(!0),setTimeout(()=>p(!1),1500)}).catch(()=>null)},k=e=>{e.preventDefault(),window.open(e.currentTarget.getAttribute("href"),"_blank","width=560,height=480")};return(0,i.jsxs)("div",{className:G().actions+" "+(o?G().border:"")+" "+x,children:[(0,i.jsxs)("div",{children:[a&&(0,i.jsxs)("a",{href:"#",onClick:e=>{e.preventDefault(),u(!m)},children:[(0,i.jsx)($.Z,{})," Napsat zpr\xe1vu"]}),c&&(0,i.jsxs)("a",{href:"tel:".concat(null===(l=t.contact)||void 0===l?void 0:l.phone),children:[(0,i.jsx)(T.Z,{})," Volat"]}),r&&(0,i.jsxs)("a",{href:"#",onClick:g,children:[(0,i.jsx)(Q.Z,{})," Sd\xedlet"]})]}),j&&(0,i.jsx)("div",{className:G().share,children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("button",{onClick:b,className:"button",children:(0,i.jsx)("span",{children:v?"Zkop\xedrov\xe1no":"Zkop\xedrovat odkaz"})}),(0,i.jsx)("a",{href:"mailto:?subject=".concat(s,"&body=").concat(n),className:"button",children:(0,i.jsx)("span",{children:"Poslat e-mailem"})}),(0,i.jsx)("a",{href:"sms:?&body="+n,className:"button",children:(0,i.jsx)("span",{children:"Poslat SMS"})}),(0,i.jsx)("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,className:"button",onClick:k,children:(0,i.jsx)("span",{children:"Facebook"})}),(0,i.jsx)("a",{href:"https://twitter.com/intent/tweet?url="+n,className:"button",onClick:k,children:(0,i.jsx)("span",{children:"Twitter"})})]})}),m&&(0,i.jsx)("div",{className:"w-full p-4",children:(0,i.jsx)(E,{profile:t,link:n,offer:h})})]})}var Y=t(9980),ee=t.n(Y),el=t(6051),et=t.n(el),es=t(9543),en=t.n(es),ei=t(7145),ea=t.n(ei),ec=t(1426),er=t.n(ec),eo=t(5935);let ed=ee()({html:!0,linkify:!0,typographer:!0,quotes:"„“‚‘"}).use(er()).use(ea(),{pattern:/^(http:|https:?)\/\//,attrs:{target:"_blank"}}).use(et(),{headerless:!0}).use(en());function ex(e){let{children:l,inline:t=!1}=e;return t?(0,eo.ZP)(ed.renderInline(l)):(0,eo.ZP)(ed.render(l))}var eh=t(3926),em=t(3632),eu=t(6318);function ej(e){let{data:l}=e,[t,s]=(0,d.useState)(!1);return(0,i.jsxs)("div",{className:G().reference,children:[(0,i.jsxs)("p",{children:["⭐ ⭐ ⭐ ⭐ ⭐ "," ",(0,i.jsx)(eh.Z,{onClickAway:()=>setTimeout(()=>s(!1),250),touchEvent:"onTouchStart",children:(0,i.jsx)(em.Z,{title:(0,i.jsx)(ep,{}),placement:"top-start",open:t,onClick:()=>s(!t),className:"cursor-pointer",children:(0,i.jsx)(eu.Z,{className:"!text-sm ml-1 mb-0.5 opacity-70"})})})]}),l.text&&(0,i.jsx)("blockquote",{children:(0,i.jsx)(ex,{children:l.text})}),(0,i.jsxs)("p",{children:[" — ",(0,i.jsx)("strong",{children:l.name}),", "," ",l.city+" "+l.year+" ",l.source?(0,i.jsxs)("a",{href:l.link||void 0,target:"_blank",className:"text-xs",children:["(zdroj ",l.source,")"]}):""]})]})}let ep=()=>(0,i.jsxs)("p",{children:["Recenze neověřujeme, ale kontrolujeme, jestli jsou v souladu s pravidly. "," ",(0,i.jsx)("a",{href:"/legal",target:"_blank",className:"underline",children:"Zobrazit pravidla"})]});var ev=t(449);function ef(e){let{data:{title:l,price:t,text:s,link:n}}=e;return(0,i.jsxs)("div",{children:[(0,i.jsxs)("h3",{children:[" ",l," "]}),t&&(0,i.jsxs)("small",{className:"block -mt-2",children:[(0,i.jsx)(ev.Z,{fontSize:"0.8rem"})," ",t]}),s.split(/\n{2,}/).map((e,l)=>(0,i.jsx)("p",{children:e},l)),n&&(0,i.jsxs)("a",{href:n,target:"_blank",className:"block text-center font-normal text-front-light",children:[(0,i.jsx)("hr",{className:"!border-0 !border-t !border-back-light"}),(0,i.jsx)(A.Z,{className:"text-lg mr-3"}),"Online rezervace"]})]})}var eg=t(7709);function eb(e){let{data:{title:l,image:t,link:s}}=e,n=!!(null==s?void 0:s.match(/justo\.cz\//));return(0,i.jsxs)("div",{children:[(0,i.jsx)(p,{src:t,alt:("Certifik\xe1t "+(null!=l?l:"")).trim(),width:n?1050:void 0,height:n?1485:void 0,sizes:["(min-width: 560px) 560px","100vw"]}),s&&(0,i.jsxs)("a",{href:s,target:"_blank",className:"block text-center font-normal text-front-light",children:[(0,i.jsx)("hr",{className:"!border-0 !border-t !border-back-light"}),(0,i.jsx)(eg.Z,{className:"text-lg mr-3"}),"Ověřit certifik\xe1t online"]})]})}function ek(e){let{data:{name:l,status:t,statusText:s,uri:n,locality:a,images:c,price:{price:r,discount:o,currency:d,unit:x}={}}}=e;return(0,i.jsxs)(I,{href:"/nemovitosti/".concat(n),className:G().offer,children:[(0,i.jsxs)("div",{className:"relative overflow-hidden",children:[t>1&&s&&(0,i.jsxs)("p",{className:G().status,children:[" ",s," "]}),(null==c?void 0:c[0])&&(0,i.jsx)("img",{src:c[0],alt:l}),(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-x-2 mt-2",children:[(null==c?void 0:c[1])&&(0,i.jsx)("img",{src:c[1],alt:l}),(null==c?void 0:c[2])&&(0,i.jsx)("img",{src:c[2],alt:l}),(null==c?void 0:c[3])&&(0,i.jsx)("img",{src:c[3],alt:l})]})]}),(0,i.jsxs)("h3",{children:[" ",l," "]}),(0,i.jsxs)("p",{className:"!-mt-2",children:[a,(0,i.jsx)("br",{}),!!r&&(0,i.jsxs)(i.Fragment,{children:[o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("small",{className:"text-gray-400 line-through",children:(null==r?void 0:r.toLocaleString("cs"))+" "+d}),(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:(null==o?void 0:o.toLocaleString("cs"))+" "+d})]}):(0,i.jsx)("strong",{children:(null==r?void 0:r.toLocaleString("cs"))+" "+d})," "+x,t>1&&s&&(0,i.jsxs)("span",{className:"lowercase opacity-50",children:[" (",s,")"]})]})]})]})}var ew=t(6402);let eN=u()(()=>Promise.all([t.e(861),t.e(481)]).then(t.bind(t,4481)),{loadableGenerated:{webpack:()=>[4481]},ssr:!1});function ey(e){try{var l,t,s,n,a,c;let{profile:r,host:o,type:d,date:x,activity:h,content:m,children:u,_id:j}=e;if(o!==r._id&&(r=null===(l=r.profiles)||void 0===l?void 0:l.find(e=>e._id===o)),!r)return!1;let v="".concat(r.name," ").concat(null!=h?h:""),f=(null===(t=r.contact.web)||void 0===t?void 0:t.replace(/\/$/,""))+"/"+j;if("offer"===d){let e=null===(n=m.find(e=>!!e.offer))||void 0===n?void 0:n.offer;e&&(v=e.name,f=(null===(a=r.contact.web)||void 0===a?void 0:a.replace(/\/$/,""))+"/"+e.idc)}return(0,i.jsxs)("section",{className:G().entry,children:[(0,i.jsxs)("header",{children:[r.profile&&(0,i.jsx)(I,{href:r.contact.web,onClick:e=>{var l,t;return(null==window?void 0:null===(l=window.location)||void 0===l?void 0:null===(t=l.href)||void 0===t?void 0:t.includes(r.contact.web))&&e.preventDefault()},children:(0,i.jsx)("img",{src:null===(s=r.profile)||void 0===s?void 0:s.replace("/original/","/webp/640/"),alt:r.name})}),(0,i.jsxs)("p",{children:[(0,i.jsxs)(I,{href:r.contact.web,onClick:e=>{var l,t;return(null==window?void 0:null===(l=window.location)||void 0===l?void 0:null===(t=l.href)||void 0===t?void 0:t.includes(r.contact.web))&&e.preventDefault()},children:[(0,i.jsx)("strong",{children:r.name})," "]}),(0,i.jsx)("span",{children:h}),(0,i.jsx)(I,{href:f,children:(0,i.jsxs)("span",{className:"opacity-70",children:[" ",new Date(x).toLocaleDateString("cs")," "]})})]})]}),u?(0,i.jsx)("article",{children:u}):null==m?void 0:m.map((e,l)=>{var t;return(0,i.jsxs)("article",{children:[e.text&&(0,i.jsx)("p",{children:e.text}),e.video&&(0,i.jsx)(eN,{video:e.video,image:e.image,className:"bg-black max-h-[640px] mb-4"})||e.image&&(0,i.jsx)(p,{src:e.image,alt:"",sizes:["(min-width: 560px) 560px","100vw"]}),e.reference&&(0,i.jsx)(ej,{data:e.reference}),e.service&&(0,i.jsx)(ef,{data:e.service}),e.certificate&&(0,i.jsx)(eb,{data:e.certificate}),e.offer&&(0,i.jsx)(ek,{data:e.offer}),(null===(t=e.link)||void 0===t?void 0:t.url)&&(0,i.jsxs)("a",{href:e.link.url,target:e.link.url.match(/^http(s?):\/\//)&&!e.link.url.includes(r.contact.web)?"_blank":"",className:"text-front-light",children:[(0,i.jsx)("hr",{className:"!border-0 !border-t !border-back-light"}),(0,i.jsxs)("div",{className:"flex items-center gap-x-5 pl-1",children:[(0,i.jsx)(ew.Z,{className:e.link.description?"text-3xl":"text-xl"}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{className:"block text-lg -mb-1",children:null!==(c=e.link.title)&&void 0!==c?c:e.link.url}),e.link.description&&(0,i.jsx)("small",{children:e.link.description})]})]})]})]},l)}),(0,i.jsx)(X,{...e,title:v,link:f,offer:(null==m?void 0:m[0].offer)?{idc:m[0].offer.idc,name:m[0].offer.name}:void 0})]})}catch(e){return console.warn(e),!1}}var e_=t(8456),ez=t(5801);let eZ=e=>{let l=[];return"available"===e.available&&l.push("available"),e.type&&l.push(e.type),e.category&&l.push(e.category),{search:e.search,user:e.user,filter:l}},eS=()=>(0,i.jsx)("div",{className:"text-center opacity-50 my-8 min-h-[400px]",children:(0,i.jsx)(e_.Z,{color:"inherit"})});var eC=function(e){let{filter:l={},offerFilter:t={},exclude:s,profile:n}=e,a={type:l,limit:10},[c,r]=(0,d.useState)([]),[o,x]=(0,d.useState)(0),[h,m]=(0,d.useState)(!0),u=async e=>{let l=null!=e?e:o,n="/api/feed?"+(0,ez.u)({...a,...eZ(t),page:l}),i=await fetch(n).then(e=>e.json());if(!(null==i?void 0:i.length)&&0!==e)return m(!1);i.length<=10&&m(null);let d=i.slice(0,10);(null==s?void 0:s.id)&&(d=d.filter(e=>{var l;return(null===(l=e._id)||void 0===l?void 0:l.toString())!==s.id.toString()})),(null==s?void 0:s.offer)&&(d=d.filter(e=>e.offer!==s.offer)),r(0===e?d:[...c,...d]),x(l+1)},[p]=(0,j.Z)(400,()=>u());return(0,d.useEffect)(()=>{Object.keys(t).length&&u(0)},[t]),(0,i.jsxs)("div",{className:G().feed,children:[c.map((e,l)=>(0,d.createElement)(ey,{...e,profile:n,key:l})),h?(0,i.jsx)("div",{ref:p,children:(0,i.jsx)(eS,{})}):!!Object.keys(t).length&&!c.length&&(0,i.jsx)("p",{className:"italic text-center opacity-60 my-5",children:" Nic jsme nenašli :( "})]})};function eP(e){var l,t,s,n,a,r;let{data:{entry:o,...x}}=e;return o?((0,d.useEffect)(()=>{setTimeout(()=>{var e,l;null===(e=null==document?void 0:document.querySelector("main section:first-child"))||void 0===e||null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"start"}),null==window||window.scrollBy(0,-72)},250)},[]),console.log(o),(0,i.jsxs)("div",{className:G().feed,children:[(0,i.jsx)(ey,{...o,profile:x}),(0,i.jsxs)(c(),{children:[(null==o?void 0:null===(l=o.content)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.text)&&(0,i.jsx)("meta",{name:"description",content:null===(s=o.content)||void 0===s?void 0:s[0].text}),(null==o?void 0:null===(n=o.content)||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.image)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"og:image",content:null==o?void 0:null===(r=o.content)||void 0===r?void 0:r[0].image},"og_image"),(0,i.jsx)("meta",{name:"og:image:width",content:""},"og_image_width"),(0,i.jsx)("meta",{name:"og:image:height",content:""},"og_image_height")]})]}),(0,i.jsx)("h4",{className:"text-center mt-12",children:" Dalš\xed př\xedspěvky "}),(0,i.jsx)(eC,{profile:x,exclude:{id:o._id}})]})):(0,i.jsx)(H,{})}var eD=t(8911),eO=t(2684),eE=t(9903),eF=t(1690),eT=t(3769),eA=t(4957),eR=t(805);let eL=e=>{var l,t,s,n,a;let{data:c}=e;return(0,i.jsx)("section",{className:h().details,children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:(0,i.jsxs)(I,{href:c.contact.officeWeb||"/kontakt",children:[(0,i.jsx)(eD.Z,{}),(0,i.jsx)("span",{children:c.office})]})}),"office"===c.type&&(0,i.jsx)("li",{children:(0,i.jsxs)(I,{href:"/kontakt",children:[(0,i.jsx)(eT.Z,{}),(0,i.jsx)("span",{children:c.address})]})}),!!(null===(l=c.users)||void 0===l?void 0:l.length)&&(0,i.jsx)("li",{children:(0,i.jsxs)(I,{href:"/o-nas",children:[(0,i.jsx)(eO.Z,{}),(0,i.jsx)("span",{children:1===c.users.length?"1 člen t\xfdmu":c.users.length<5?"".concat(c.users.length," členov\xe9 t\xfdmu"):"".concat(c.users.length," členů t\xfdmu")})]})}),!!(null===(t=c.counts)||void 0===t?void 0:t.references)&&(0,i.jsx)("li",{children:(0,i.jsxs)(I,{href:"/reference",children:[(0,i.jsx)(eA.Z,{}),(0,i.jsx)("span",{children:c.counts.references<5?"".concat(c.counts.references," reference"):"".concat(c.counts.references," referenc\xed")})]})}),!!(null===(s=c.counts)||void 0===s?void 0:s.certificates)&&(0,i.jsx)("li",{children:(0,i.jsxs)(I,{href:"/certifikaty",children:[(0,i.jsx)(eR.Z,{}),(0,i.jsx)("span",{children:1===c.counts.certificates?"1 certifik\xe1t":c.counts.certificates<5?"".concat(c.counts.certificates," certifik\xe1ty"):"".concat(c.counts.certificates," certifik\xe1tů")})]})}),!!(null===(n=c.contact)||void 0===n?void 0:n.phone)&&(0,i.jsx)("li",{children:(0,i.jsxs)("a",{href:"tel:".concat(c.contact.phone),children:[(0,i.jsx)(T.Z,{}),(0,i.jsx)("span",{children:c.contact.phone})]})}),!!(null===(a=c.contact)||void 0===a?void 0:a.email)&&(0,i.jsx)("li",{children:(0,i.jsxs)("a",{href:"mailto:".concat(U(c.contact.email)),onClick:M,children:[(0,i.jsx)(eE.Z,{}),(0,i.jsxs)("span",{children:[c.contact.email.split("@")[0],(0,i.jsx)(B.Z,{className:"!ml-0 !mr-0.5 !text-sm"}),c.contact.email.split("@")[1]]})]})}),(0,i.jsx)("li",{children:(0,i.jsxs)(I,{href:"/kontakt",children:[(0,i.jsx)(eF.Z,{}),(0,i.jsx)("span",{children:"V\xedce informac\xed"})]})})]})})};var eI=t(4593),eV=t(3800),eM=t(2592);let eU=e=>(0,i.jsxs)("svg",{viewBox:"0 0 26 8.2",fill:"#a27d22","aria-labelledby":"title",...e,children:[(0,i.jsx)("title",{id:"title",lang:"cs",children:"JUSTO"}),(0,i.jsx)("path",{d:"m2.54883,2.77588v.4917c0,.74805.03027,1.83057.03027,2.29346,0,1.58447-.65039,2.57861-2.22461,2.57861-.08887,0-.17773,0-.25586-.01025l-.09863-.30469.0293-.04932c.06934.00977.1582.01953.24609.01953.90527,0,1.29004-.71826,1.29004-2.37158v-2.64746c0-.88623-.0498-1.98828-.09863-2.77588.17676.01025.39355.02002.57031.02002.17773,0,.39355-.00977.57129-.02002-.0498.7876-.05957,1.88965-.05957,2.77588Zm6.67969,1.41992c0,.72998-.07617,1.15479-.21777,1.49268-.32715.72998-1.01367,1.17627-2.07031,1.17627-1.6123,0-2.38574-.70801-2.38574-2.32031,0-.49023.02148-1.00244.02148-1.40527,0-.88281-.01074-1.44922-.05469-1.91797.22949.01123.41406.02197.56641.02197.1416,0,.38184-.01074.58887-.02197-.05469.47949-.10938,1.66699-.10938,2.83301,0,1.3833.19629,2.2876,1.54785,2.2876.81641,0,1.26367-.40283,1.45898-1.0459.10938-.35938.13086-.77344.13086-1.28564,0-1.16553-.04297-2.12402-.11914-2.77783.19531.01074.30469.01074.40234.01074.07715,0,.18555,0,.33789-.01074-.05469.72998-.09766,1.78662-.09766,2.96338Zm2.92188,2.63623c-.50098,0-1.17676-.1416-1.43848-.2832.02148-.27197.09766-.69727.1748-.96924l.18457-.01123c.13086.52295.56641.83887,1.14453.83887.52246,0,1.0127-.27246,1.0127-.9585,0-.61035-.4248-.86084-1.11133-1.14404-.59863-.25049-1.30762-.57764-1.30762-1.55811,0-1.08936.94824-1.62305,1.92871-1.62305.46875,0,.91504.09766,1.27441.26123-.08691.25049-.17383.61035-.22852.89355l-.18555.01074c-.07617-.43555-.38086-.75146-.93652-.75146-.49023,0-.9043.27197-.9043.81689,0,.56641.33789.79541.95898,1.0459.83887.34863,1.4707.68652,1.4707,1.66699,0,1.1001-.87207,1.76465-2.03711,1.76465Zm5.41504-5.14209c-.01074.32666-.02148.72998-.02148.9585v1.44922c0,.69727.02148,1.83057.07617,2.63672-.1416-.01123-.38086-.02197-.58789-.02197-.19629,0-.43652.01074-.57812.02197.05469-.80615.07715-1.93945.07715-2.63672v-1.44922c0-.23926-.01172-.63184-.02246-.9585-.4248,0-1.19824.05469-1.6123.11963.01074-.13037.01074-.22852.01074-.30469,0-.06543,0-.15283-.01074-.28369.53418.02197,1.44922.03271,2.125.03271.68555,0,1.60156-.01074,2.15723-.03271-.01172.13086-.01172.21826-.01172.28369,0,.07617,0,.17432.01172.30469-.41406-.06494-1.18848-.11963-1.61328-.11963Zm5.25391,5.1748c-1.79785,0-2.95312-1.14355-2.95312-2.88672,0-1.76514,1.15527-2.88721,2.95312-2.88721,1.85156,0,2.95215,1.11133,2.95215,2.88721,0,1.71045-1.14355,2.88672-2.95215,2.88672Zm0-5.35986c-1.10059,0-1.79785.82764-1.79785,2.47314,0,1.60156.69727,2.45117,1.79785,2.45117,1.12207,0,1.80859-.83887,1.80859-2.45117,0-1.60156-.68652-2.47314-1.80859-2.47314Z"})]}),eB=()=>(0,i.jsxs)("a",{href:"https://www.justo.cz/",target:"_blank",className:"!no-underline",children:[(0,i.jsx)(eg.Z,{className:"h-5 mr-2 -mt-1 fill-gold dark:fill-current"}),"Jsme partnerem s\xedtě ",(0,i.jsx)("i",{className:"inline-block !w-[1px] pl-1 -mr-1 overflow-hidden",children:" JUSTO"}),(0,i.jsx)(eU,{className:"h-4 inline-block fill-current"})]}),eJ=u()(()=>Promise.all([t.e(725),t.e(752)]).then(t.bind(t,8752)),{loadableGenerated:{webpack:()=>[8752]},ssr:!1});function eK(e){let{data:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:o().about,children:[(0,i.jsx)(ex,{children:l.longAbout||""}),(0,i.jsx)("hr",{}),(0,i.jsx)("p",{children:"office"===l.type?(0,i.jsx)(eB,{}):(0,i.jsxs)("a",{href:l.contact.officeWeb,target:"_blank",className:"!no-underline",children:[(0,i.jsx)(eD.Z,{className:"h-5 mr-2 -mt-1 fill-gold dark:fill-current"}),l.office]})})]}),"office"===l.type&&(0,i.jsxs)("section",{className:"lg:!mt-0",children:[(0,i.jsx)("h4",{className:"text-center mb-5",children:" N\xe1š t\xfdm "}),(0,i.jsx)(J,{profiles:l.profiles,wrap:!0,contacts:!0})]}),(0,i.jsx)("div",{className:"mb-24"})]})}var eq=t(7957),eG=t(9238),eW=t.n(eG),eH=t(9026);t(9446);var e$=t(1170),eQ=t(569);let eX=e=>{let{photos:l,alt:t,videos:s,iframe:n}=e;if(!Array.isArray(l)||!(null==l?void 0:l.length))return null;let[a,c]=(0,d.useState)(!1),r=l[0];return(0,i.jsx)("div",{className:eW().gallery,children:(0,i.jsxs)(eH.ri,{children:[(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(eH.ck,{...eY(r),children:e=>{let{ref:l,open:s}=e;return(0,i.jsx)("img",{ref:l,onClick:s,src:r.large,srcSet:e0(r),loading:"eager",alt:t},r.large)}})}),l.length>1&&(0,i.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mt-4 overflow-hidden",children:l.slice(1).map((e,l)=>(0,i.jsx)(eH.ck,{...eY(e),children:s=>{let{ref:n,open:c}=s;return(0,i.jsx)("img",{ref:n,onClick:c,src:e.mid,alt:t,loading:"lazy",hidden:!(l<4||a)},e.mid)}},l))}),(0,i.jsxs)("p",{className:"mt-4 flex flex-wrap justify-center gap-4",children:[!a&&l.length>5&&(0,i.jsxs)("button",{onClick:()=>c(!a),className:"butt min-w-[200px] grow lg:grow-0",children:[(0,i.jsx)(e$.Z,{className:"mr-2"}),"Dalš\xedch ",l.length-5," fotek"]}),!!(null==s?void 0:s.length)&&s.map((e,l)=>(0,i.jsx)(eH.ck,{content:(0,i.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(e.id,"?autoplay=1"),...e1}),children:e=>{let{ref:t,open:n}=e;return(0,i.jsxs)("button",{ref:t,onClick:n,className:"butt min-w-[200px] grow lg:grow-0",children:[(0,i.jsx)(_.Z,{className:"mr-2"}),s.length>1?"".concat(l+1,". video"):"Přehr\xe1t video"]})}},e.id)),n&&(0,i.jsx)(eH.ck,{content:(0,i.jsx)("iframe",{src:n,...e1}),children:e=>{let{ref:l,open:t}=e;return(0,i.jsxs)("button",{ref:l,onClick:t,className:"butt min-w-[200px] grow lg:grow-0",children:[(0,i.jsx)(eQ.Z,{className:"mr-2"}),"Virtu\xe1ln\xed prohl\xeddka"]})}})]})]})})},eY=e=>{var l,t;return{thumbnail:e.thumb,original:e.hd||e.large,width:null===(l=null!==(s=e.sizes.hd)&&void 0!==s?s:e.sizes.large)||void 0===l?void 0:l[0],height:null===(t=null!==(n=e.sizes.hd)&&void 0!==n?n:e.sizes.large)||void 0===t?void 0:t[1],originalSrcset:e0(e)}},e0=e=>Object.entries(e.sizes).map(l=>{let[t,[s]]=l;return e[t]?"".concat(e[t]," ").concat(s,"w"):null}).filter(e=>!!e).join(", "),e1={style:{width:"100%",height:"100%"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0},e2=u()(()=>Promise.all([t.e(725),t.e(752)]).then(t.bind(t,8752)),{loadableGenerated:{webpack:()=>[8752]},ssr:!1});function e4(e){var l,t,s,n,a,r,o,x,h,m,u,p,v,f,g,b,k,w,N,y,_,z,Z,S,C,P,D;let{profile:O,data:F}=e,T=O.contact.web+"/"+F.idc,[R,L]=(0,d.useState)(!1),[I,V]=(0,d.useState)(!1),[J]=(0,j.Z)(200,e=>e&&V(!0));return("office"===O.type&&(null===(l=O.profiles)||void 0===l?void 0:l.length)&&(O={...null===(t=O.profiles)||void 0===t?void 0:t.find(e=>{var l;return(null===(l=e.contact)||void 0===l?void 0:l.email)===F.user}),logo_white:O.logo_white,logo:O.logo}),null==O?void 0:O.name)?((0,d.useEffect)(()=>{var e,l;null===(e=null==document?void 0:document.querySelector("main h2"))||void 0===e||null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"start"}),null==window||window.scrollBy(0,-72)},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c(),{children:[(0,i.jsx)("title",{children:"".concat(F.name," | ").concat(O.name,", ").concat(O.jobTitle,", ").concat(O.region)}),(0,i.jsx)("meta",{name:"description",content:null===(s=F.text.cs.split(/\r?\n/))||void 0===s?void 0:s[0]}),(null===(n=F.photos)||void 0===n?void 0:n[0])&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"og:image",content:F.photos[0].hd||F.photos[0].large},"og_image"),(0,i.jsx)("meta",{name:"og:image:width",content:null===(a=F.photos[0].sizes.hd||F.photos[0].sizes.large)||void 0===a?void 0:a[0]},"og_image_width"),(0,i.jsx)("meta",{name:"og:image:height",content:null===(r=F.photos[0].sizes.hd||F.photos[0].sizes.large)||void 0===r?void 0:r[1]},"og_image_height")]})]}),(0,i.jsxs)("section",{children:[(0,i.jsxs)("div",{className:"md:flex justify-between mb-4",children:[(0,i.jsxs)("div",{className:"md:text-lg text-front-light",children:[(0,i.jsxs)("h2",{className:"text-2xl text-front font-normal mb-2",children:[" ",F.name]}),(0,i.jsxs)("p",{children:[(0,i.jsx)(eT.Z,{className:"!text-lg -ml-0.5 mr-2"}),F.local.formatted]}),(0,i.jsxs)("p",{children:[(0,i.jsx)(ev.Z,{className:"!text-base mr-2"}),(null===(o=F.price)||void 0===o?void 0:o.discount)&&(0,i.jsx)("small",{className:"text-gray-400 line-through mr-2",children:(null===(x=F.price.price)||void 0===x?void 0:x.toLocaleString("cs"))+" "+F.price.currency}),F.price?(null===(h=F.price.discount||F.price.price)||void 0===h?void 0:h.toLocaleString("cs"))+" "+F.price.currency+" "+F.price.unit:"Cena na dotaz",F.status>1&&F.statusText&&(0,i.jsx)("span",{className:eW().status+" ml-2",children:F.statusText})]})]}),(0,i.jsxs)("div",{className:"hidden md:block",children:[(0,i.jsx)("button",{className:"blue w-64",onClick:()=>{var e,l;null==window||null===(e=window.dataLayer)||void 0===e||e.push({event:"M\xe1m z\xe1jem"}),null===(l=document.querySelector('input[name="name"]'))||void 0===l||l.scrollIntoView({block:"center",behavior:"smooth"})},children:"M\xe1m z\xe1jem"}),(0,i.jsx)(X,{title:F.name,link:T,profile:O,className:"mt-4",form:!1,call:!1,border:!1})]})]}),(0,i.jsx)(eX,{photos:F.photos,videos:F.videos,iframe:null===(m=F.iframes)||void 0===m?void 0:null===(u=m[0])||void 0===u?void 0:u.id,alt:F.name})]}),(0,i.jsxs)("section",{className:"md:hidden",children:[(0,i.jsx)("button",{className:"blue w-64 mx-auto",onClick:()=>{var e,l;null==window||null===(e=window.dataLayer)||void 0===e||e.push({event:"M\xe1m z\xe1jem"}),null===(l=document.querySelector('input[name="name"]'))||void 0===l||l.scrollIntoView({block:"center",behavior:"smooth"})},children:"M\xe1m z\xe1jem"}),(0,i.jsx)(X,{title:F.name,link:T,profile:O,className:"mt-4",form:!1,call:!1,border:!1})]}),(0,i.jsxs)("article",{className:"lg:flex lg:space-x-4 lg:-my-4",children:[(0,i.jsxs)("section",{className:"lg:w-2/3 space-y-3",children:[(0,i.jsxs)("h2",{className:"text-2xl mb-5",children:[" ",F.name]}),(0,i.jsx)(ex,{children:null===(p=F.text.cs)||void 0===p?void 0:p.replace(/\n/g,"\n\n").replace(/\n{2,}/g,"\n\n")})]}),(0,i.jsxs)("section",{className:"lg:w-1/3 "+eW().params,children:[(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" cena "}),F.price?(0,i.jsxs)("dd",{children:[F.price.discount&&(0,i.jsxs)("div",{className:"line-through opacity-50",children:[" ",(null===(v=F.price.price)||void 0===v?void 0:v.toLocaleString("cs"))+" "+F.price.currency," "]}),(0,i.jsxs)("div",{className:"text-2xl",children:[" ",(null===(f=F.price.discount||F.price.price)||void 0===f?void 0:f.toLocaleString("cs"))+" "+F.price.currency," "]}),F.price.unit&&(0,i.jsxs)("p",{children:[" ",F.price.unit," "]}),F.price.text_note&&(0,i.jsxs)("p",{children:[" ",F.price.text_note," "]}),F.price.legal_services>1&&(0,i.jsx)("p",{children:" vč. pr\xe1vn\xedch služeb "}),F.price.commission>1&&(0,i.jsx)("p",{children:" vč. provize "}),F.price.charge>1&&(0,i.jsx)("p",{children:" vč. poplatků "})]}):(0,i.jsx)("dd",{className:"text-2xl",children:" na dotaz "})]}),(null===(g=F.price)||void 0===g?void 0:g.comission_value)&&(null===(b=F.price)||void 0===b?void 0:b.comission_paid_by)==="tenant"&&(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" provize RK "}),(0,i.jsxs)("dd",{children:[" ",null===(k=F.price.comission_value)||void 0===k?void 0:k.toLocaleString("cs")," Kč "]})]}),!!(null===(w=F.price)||void 0===w?void 0:w.deposit)&&(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" vratn\xe1 z\xe1loha "}),(0,i.jsxs)("dd",{children:[" ",null===(N=F.price.deposit)||void 0===N?void 0:N.toLocaleString("cs")," Kč "]})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" adresa "}),(0,i.jsxs)("dd",{children:[" ",F.local.formatted," "]})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" ID nab\xeddky "}),(0,i.jsxs)("dd",{children:[" ",F.idc," "]})]}),F.statusText&&(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" Stav nab\xeddky "}),(0,i.jsxs)("dd",{children:[" ",F.statusText," "]})]}),(0,i.jsxs)("div",{className:(R?"max-h-auto":"max-h-[196px]")+" overflow-hidden mt-2",children:[Object.entries(F.params).map((e,l)=>{let[t,s]=e;return(0,i.jsxs)("dl",{children:[(0,i.jsxs)("dt",{children:[" ",t]}),(0,i.jsxs)("dd",{children:[" ",Array.isArray(s)?s.join(", "):s]})]},l)}),F.files.find(e=>"PENB do inzerce"===e.attach_type)&&(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{children:" Průkaz "}),(0,i.jsxs)("dd",{children:[" ",(0,i.jsx)("a",{href:"https://www.justo.cz/"+(null===(y=F.files.find(e=>"PENB do inzerce"===e.attach_type))||void 0===y?void 0:y.file),target:"_blank",className:"underline hover:no-underline",children:" Zobrazit průkaz PENB"})," "]})]})]}),!R&&(0,i.jsx)("button",{onClick:()=>L(!0),className:"mx-auto",children:" Zobrazit dalš\xed parametry "})]})]}),(null===(_=F.local)||void 0===_?void 0:null===(z=_.gps)||void 0===z?void 0:z.x)&&(0,i.jsx)("section",{className:"h-[400px] !p-0 md:!p-1 overflow-hidden",ref:J,children:I?(0,i.jsx)(e2,{data:F.local}):(0,i.jsx)("div",{className:"w-[40px] h-[40px] mx-auto mt-[180px]",children:(0,i.jsx)(e_.Z,{color:"inherit"})})}),!!(null===(Z=F.opendoors)||void 0===Z?void 0:Z.length)&&(0,i.jsxs)("section",{className:"text-center",children:[(0,i.jsx)("h4",{className:"text-xl",children:1===F.opendoors.length?"Prohl\xeddkov\xfd den":"Prohl\xeddkov\xe9 dny"}),(0,i.jsx)("p",{children:" online rezervace "}),(0,i.jsx)("p",{className:"mt-1 -mb-2",children:F.opendoors.map((e,l)=>{let{date:t,link:s}=e;return(0,i.jsxs)("a",{href:s,target:"_blank",className:"button w-auto !inline-block m-2",children:[(0,i.jsx)(A.Z,{className:"mr-3"}),new Date(t).toLocaleDateString("cs")]},l)})})]}),(0,i.jsxs)("div",{className:"lg:flex lg:space-x-4 lg:-my-4",children:[(0,i.jsxs)("section",{className:"lg:w-1/3",children:[(0,i.jsxs)("div",{className:"flex space-x-4",children:[(0,i.jsx)("img",{src:O.profile,alt:O.name,className:eW().profile}),(0,i.jsxs)("div",{children:[(0,i.jsx)("h4",{className:"text-xl",children:O.name}),(0,i.jsx)("small",{children:O.jobTitle}),(0,i.jsx)("p",{className:"mt-2",children:(0,i.jsx)("a",{href:"tel:".concat(O.contact.phone),children:O.contact.phone})}),(0,i.jsx)("p",{children:(0,i.jsxs)("a",{href:"mailto:".concat(U(O.contact.email)),onClick:M,children:[O.contact.email.split("@")[0],(0,i.jsx)(B.Z,{className:"!mx-0 !text-sm"}),O.contact.email.split("@")[1]]})})]})]}),(0,i.jsx)("hr",{}),(0,i.jsx)("div",{children:(0,i.jsxs)("a",{href:(null===(S=O.contact)||void 0===S?void 0:S.officeWeb)||void 0,target:"_blank",className:"block max-w-[280px] mx-auto ",children:[(0,i.jsx)("img",{src:O.logo,alt:O.office+" logo",className:"w-full dark:hidden"}),(0,i.jsx)("img",{src:O.logo_white,alt:O.office+" white logo",className:"w-full hidden dark:inline"})]})})]}),(0,i.jsx)("section",{className:"lg:w-2/3",children:(0,i.jsx)(E,{profile:O,autoFocus:!1,offer:{idc:F.idc,name:F.name}})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-center mt-4",children:(0,i.jsx)("strong",{children:" Dalš\xed nab\xeddky "})}),(0,i.jsx)(eC,{profile:O,filter:"offer",exclude:{offer:F.offer}})]}),(0,i.jsx)(K.hg,{item:{"@context":"https://schema.org/","@type":"RealEstateListing",name:F.name,url:T,image:F.photos[0].hd||F.photos[0].large,description:null===(C=F.text.cs.split(/\r?\n/))||void 0===C?void 0:C[0],offers:{"@type":"Offer",price:null===(P=F.price)||void 0===P?void 0:P.price,priceCurrency:{Kč:"CZK",$:"USD","€":"EUR"}[null===(D=F.price)||void 0===D?void 0:D.currency],businessFunction:{sale:"http://purl.org/goodrelations/v1#Sell",rent:"http://purl.org/goodrelations/v1#LeaseOut"}[F.type],url:T,address:{"@type":"PostalAddress",streetAddress:(F.local.ulice+" "+F.local.cislo).trim(),addressLocality:F.local.obec,postalCode:F.local.psc,addressCountry:"CZ"},floorSize:{"@type":"QuantitativeValue",value:parseInt(F.params["Plocha užitn\xe1"]).toString(),unitCode:"MTK"},hasMap:{"@type":"Map",name:F.name,latitude:F.local.gps.x,longitude:F.local.gps.y},seller:{"@type":"RealEstateAgent",name:O.name,url:O.contact.web,logo:O.logo,image:O.profile,description:O.about,brand:{"@type":"Brand",name:O.office,image:O.logo,logo:O.logo},contactPoint:{"@type":"ContactPoint",telephone:O.contact.phone,email:O.contact.email},telephone:O.contact.phone,email:O.contact.email,sameAs:O.links,knowsAbout:["Real Estate"]}}}})]})):(0,i.jsx)(H,{})}var e5=t(4956),e7=t(3454),e3=t(2430),e6=t(1265),e8=t(2761),e9=t(5395);let le=e=>{let{filter:l,setFilter:t}=e,s=(0,d.useRef)(),[n,a]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{window.innerWidth>1024&&a(!0)},[]),(0,i.jsx)(e3.Z,{theme:ll,children:(0,i.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:"space-y-5",children:[(0,i.jsxs)("div",{className:"flex space-x-3",children:[(0,i.jsx)("input",{name:"search",size:"small",placeholder:"Hledat...",ref:s,onKeyDown:e=>"Enter"===e.key&&t(l=>({...l,search:e.target.value}))}),(0,i.jsx)("button",{onClick:()=>t(e=>{var l;return{...e,search:null===(l=s.current)||void 0===l?void 0:l.value}}),className:"blue",children:(0,i.jsx)(e8.Z,{})}),(0,i.jsx)("button",{onClick:()=>a(!n),className:"blue lg:hidden",children:(0,i.jsx)(e9.Z,{})})]}),!!n&&Object.entries({available:[["all","Všechny"],["available","Jen voln\xe9"]],type:[["sale","Prodej"],["rent","Pron\xe1jem"]],category:[["flat","Byty"],["house","Domy"],["land","Pozemky"],["other","Jin\xe9"]]}).map(e=>{let[s,n]=e;return(0,i.jsx)("div",{className:"text-black bg-back-dark dark:bg-gray-100 rounded overflow-hidden",children:(0,i.jsx)(e7.Z,{value:l[s]||"",onChange:(e,l)=>t(e=>({...e,[s]:l})),color:"primary",exclusive:!0,fullWidth:!0,size:"small",children:n.map(e=>{let[l,t]=e;return(0,i.jsx)(e5.Z,{value:l,children:t},l)})})},s)})]})})},ll=(0,e6.Z)({palette:{primary:{main:"#1C4ED8"}}}),lt=e=>{let{data:l}=e;return(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)("h1",{className:"!mt-0",children:" Pr\xe1vn\xed informace "}),(0,i.jsxs)("p",{children:["Provozovatelem a vlastn\xedkem těcho webov\xfdch str\xe1nek (d\xe1le jen „Str\xe1nky“) je ",l.name,"."]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("b",{children:l.name})," vykon\xe1v\xe1 realitn\xed zprostředkov\xe1n\xed ve smyslu z\xe1kona č. 39/2020 Sb., o realitn\xedm zprostředkov\xe1n\xed (d\xe1le jen „ZRZ“) v rozsahu služeb uveden\xfdch na těchto Str\xe1nk\xe1ch pouze jako zmocněn\xfd z\xe1stupce ",l.legal.company||l.name,", kter\xe1 je členem s\xedtě realitn\xedch kancel\xe1ř\xed JUSTO, samostatně podnikaj\xedc\xed pod označen\xedm ",l.office," (d\xe1le jen „",l.office,"“), a to ve smyslu ustanoven\xed \xa7 7 odst. 5 ZRZ."]}),(0,i.jsxs)("p",{children:["Realitn\xed kancel\xe1ř ",(0,i.jsx)("b",{children:l.office})," je souč\xe1st\xed s\xedtě realitn\xedch kancel\xe1ř\xed JUSTO a je nez\xe1visle provozov\xe1na "," ",l.legal.company||l.name,"."]}),(0,i.jsxs)("p",{children:["Spr\xe1vcem osobn\xedch \xfadajů je ",(0,i.jsx)("b",{children:l.office}),"."]}),(0,i.jsxs)("p",{children:[l.name," je proto ve vztahu k vašim osobn\xedm \xfadajům pouze zpracovatelem a z toho důvodů vešker\xe9 \xfadaje směřuj\xed do e-mailov\xfdch schr\xe1nek na dom\xe9ně @justo.cz."]}),(0,i.jsx)("p",{children:"Společnost JUSTO Česk\xe1 republika s.r.o., se s\xeddlem: Kodaňsk\xe1 1441/46, 101 00 Praha 10 – Vršovice, IČ: 04419995, DIČ: CZ04419995, Datov\xe1 schr\xe1nka: 2739bvp, zaps\xe1na u Městsk\xe9ho soudu v Praze pod spisovou značkou C 247188 (d\xe1le jen „Společnost JUSTO“), je dalš\xedm Zpracovatelem vašich \xfadajů."}),(0,i.jsxs)("p",{children:[l.name," informuje spotřebitele, že smlouvy, kter\xe9 budou uzav\xedr\xe1ny v r\xe1mci poskytov\xe1n\xed realitn\xedch služeb v\xfdše uveden\xfdch, budou uzav\xedr\xe1ny mezi ",l.office," a spotřebitelem. ",l.name," ve smlouv\xe1ch bude m\xedt roli zmocněn\xe9ho z\xe1stupce ",l.office,"."]}),l.legal.whistle&&(0,i.jsxs)("p",{children:[" Umožňujeme př\xedjem anonymn\xedch ozn\xe1men\xed dle z\xe1kona č. 171/2023 Sb., o ochraně oznamovatelů a z\xe1kona č. 253/2008 Sb., o někter\xfdch opatřen\xedch proti legalizaci v\xfdnosů z trestn\xe9 činnosti a financov\xe1n\xed terorismu, a to všem osob\xe1m prostřednictv\xedm aplikace "," ",(0,i.jsx)("a",{href:l.legal.whistle,target:"_blank",className:"underline hover:no-underline",children:"Nenech to b\xfdt"}),". "]})]})},ls=e=>{let{data:l}=e;return(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)("h1",{className:"!mt-0",children:" Pr\xe1vn\xed informace "}),(0,i.jsxs)("p",{children:["Provozovatelem a vlastn\xedkem těcho webov\xfdch str\xe1nek (d\xe1le jen „Str\xe1nky“) je ",l.legal.company||l.name," (d\xe1le jen ",(0,i.jsxs)("b",{children:["„",l.name,"“"]}),")."]}),(0,i.jsxs)("p",{children:["Realitn\xed kancel\xe1ř ",(0,i.jsx)("b",{children:l.office})," je souč\xe1st\xed s\xedtě realitn\xedch kancel\xe1ř\xed JUSTO a je nez\xe1visle provozov\xe1na "," ",(l.legal.company||l.name).replace(/\.$/,""),"."]}),(0,i.jsxs)("p",{children:["Spr\xe1vcem osobn\xedch \xfadajů je ",(0,i.jsx)("b",{children:l.office}),". Vešker\xe9 \xfadaje směřuj\xed do e-mailov\xfdch schr\xe1nek na dom\xe9ně @justo.cz, a proto je Společnost JUSTO Česk\xe1 republika s.r.o., se s\xeddlem: Kodaňsk\xe1 1441/46, 101 00 Praha 10 – Vršovice, IČ: 04419995, DIČ: CZ04419995, Datov\xe1 schr\xe1nka: 2739bvp, zaps\xe1na u Městsk\xe9ho soudu v Praze pod spisovou značkou C 247188 (d\xe1le jen „Společnost JUSTO“) Zpracovatelem vašich \xfadajů."]}),l.legal.whistle&&(0,i.jsxs)("p",{children:[" Umožňujeme př\xedjem anonymn\xedch ozn\xe1men\xed dle z\xe1kona č. 171/2023 Sb., o ochraně oznamovatelů a z\xe1kona č. 253/2008 Sb., o někter\xfdch opatřen\xedch proti legalizaci v\xfdnosů z trestn\xe9 činnosti a financov\xe1n\xed terorismu, a to všem osob\xe1m prostřednictv\xedm aplikace "," ",(0,i.jsx)("a",{href:l.legal.whistle,target:"_blank",className:"underline hover:no-underline",children:"Nenech to b\xfdt"}),". "]})]})},ln=()=>(0,i.jsx)("ul",{className:"space-y-2",children:[["#gdpr","Z\xe1sady ochrany osobn\xedch \xfadajů, informace o zpracov\xe1n\xed a pr\xe1vech klientů dle Nař\xedzen\xed GDPR"],["#cookies","Cookies"],["#spory","Informace o možnosti řešen\xed spotřebitelsk\xfdch sporů"],["#reklamace","Reklamačn\xed ř\xe1d"],["#formular","Vzorov\xfd formul\xe1ř pro odstoupen\xed od spotřebitelsk\xe9 smlouvy"],["#autorska-prava","Autorsk\xe1 pr\xe1va"],["#odkazy","Odkazy na jin\xe9 str\xe1nky"],["#odpovednost","Odpovědnost a pr\xe1vn\xed režim"]].map((e,l)=>{let[t,s]=e;return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:li+t,target:"_blank",className:"underline hover:no-underline",children:s})},l)})}),li="https://www.justo.cz/o-nas/pravni-informace";var la=function(e){var l,t,s,n,a,r,x,h,m,u,j,p,v,f,g,w,N,y,_,z,Z;let{data:S,host:P,urls:D}=e,O=lr(S.type),F=null!==(f=null===(l=O[null!==(v=null==D?void 0:D[0])&&void 0!==v?v:"home"])||void 0===l?void 0:l.component)&&void 0!==f?f:eP,T=null===(t=O[null==D?void 0:D[0]])||void 0===t?void 0:t.title;(null===(s=S.counts)||void 0===s?void 0:s.news)||delete O.aktuality,(null===(n=S.counts)||void 0===n?void 0:n.services)||delete O.sluzby,(null===(a=S.counts)||void 0===a?void 0:a.offers)||delete O.nemovitosti,(null===(r=S.counts)||void 0===r?void 0:r.references)||delete O.reference,(null===(x=S.counts)||void 0===x?void 0:x.certificates)||delete O.certifikaty,delete O.legal;let A=()=>{let e=document.querySelector("header"),l=document.querySelector("header + nav");l&&e&&(l.style.top=window.scrollY>e.clientHeight?"0px":"")};(0,d.useEffect)(()=>(window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[]),(0,d.useEffect)(()=>{var e,l;let t=document.querySelector("menu .active");null===(e=null!==(l=null==t?void 0:t.nextSibling)&&void 0!==l?l:t)||void 0===e||e.scrollIntoView({block:"nearest"})},[D]);let[R,L]=(0,d.useState)(!1);return"user"!==S.type||(null===(h=S.cover)||void 0===h?void 0:h.image)||(null!==(N=(g=S).cover)&&void 0!==N||(g.cover={}),(w=S.cover).image||(w.image="https://cdn.justo.cz/images/original/6449b4b73e5ac7e421f53ac3-cover.fallback.jpg")),(0,i.jsxs)("div",{className:o().profile,children:[(0,i.jsxs)(c(),{children:[(0,i.jsx)("title",{children:[T,S.name,S.jobTitle,S.region].filter(e=>!!e).join(", ")}),(0,i.jsx)("meta",{name:"description",content:S.about}),(null===(m=S.cover)||void 0===m?void 0:m.image)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{property:"og:image",content:S.cover.image},"og_image"),(0,i.jsx)("meta",{property:"og:image:width",content:"1920"},"og_image_width"),(0,i.jsx)("meta",{property:"og:image:height",content:"1080"},"og_image_width")]})]}),(0,i.jsx)("header",{children:(0,i.jsxs)("div",{className:"cnt",children:[(0,i.jsx)(b,{...null!==(y=S.cover)&&void 0!==y?y:{},name:S.name}),"user"===S.type?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{image:S.profile}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(C,{links:S.links})})]}):(0,i.jsx)("div",{className:"text-right mt-9 -mb-12 hidden lg:block",children:(0,i.jsx)(C,{links:S.links})}),(0,i.jsxs)("div",{className:"user"===S.type?"lg:ml-52 lg:-mt-10":"",children:["user"===S.type?(0,i.jsxs)("div",{className:"user"===S.type?"lg:h-[74px]":"",children:[(0,i.jsx)("h1",{children:S.name}),S.jobTitle&&(0,i.jsx)("p",{className:"subtitle",children:S.jobTitle}),S.region&&(0,i.jsx)("p",{className:"subtitle",children:S.region})]}):(0,i.jsxs)("div",{className:"!-mb-5 -mt-4 lg:mt-0",children:[(0,i.jsx)("img",{src:S.logo,alt:S.office+" logo",className:"h-36 mx-auto lg:-mx-12 lg:-mb-8 block lg:inline-block dark:hidden dark:lg:hidden"}),(0,i.jsx)("img",{src:S.logo_white,alt:S.office+" white logo",className:"h-36 mx-auto lg:-mx-12 lg:-mb-8 hidden dark:block dark:lg:inline-block"})]}),(0,i.jsxs)("div",{className:o().cta,children:[(0,i.jsxs)("menu",{children:[(0,i.jsx)("button",{onClick:e=>{e.preventDefault(),L(!R)},className:"blue flex-1",children:"Napsat zpr\xe1vu"}),(0,i.jsx)("a",{className:"button lg:w-28",href:"tel:"+S.contact.phone,children:" Volat "}),(0,i.jsx)(V,{profile:S,menu:O})]}),R&&(0,i.jsx)("div",{className:"mb-4",children:(0,i.jsx)(E,{profile:S,offer:S.offer?{idc:S.offer.idc,name:S.offer.name}:void 0})})]})]}),(0,i.jsx)("nav",{children:(0,i.jsx)("menu",{children:Object.entries(O).map((e,l)=>{let[t,{title:s}]=e;return(0,i.jsx)(I,{href:"/"+("home"===t?"":t),"data-active":!!((null==D?void 0:D[0])===t||"home"===t&&!D),className:(null==D?void 0:D[0])!==t&&(t||D)?"":"active",children:s},l)})})})]})}),(0,i.jsx)("nav",{children:(0,i.jsxs)("div",{className:"cnt",children:[(0,i.jsxs)("div",{children:[S.profile&&(0,i.jsx)("img",{src:null===(u=S.profile)||void 0===u?void 0:u.replace("/original/","/webp/640/"),alt:S.name}),(0,i.jsxs)("h2",{children:[" ",S.name," "]})]}),(0,i.jsx)("div",{children:(0,i.jsx)(V,{profile:S,menu:O})})]})}),(0,i.jsx)("main",{children:(0,i.jsx)("div",{className:"cnt",children:(0,i.jsx)(F,{data:S,host:P,urls:D})})}),(0,i.jsx)("footer",{children:(0,i.jsxs)("div",{className:"cnt text-sm text-center",children:[S.logo&&S.logo_white&&(0,i.jsxs)("a",{href:null!==(z=null!==(_=null===(j=S.contact)||void 0===j?void 0:j.officeWeb)&&void 0!==_?_:null===(p=S.contact)||void 0===p?void 0:p.web)&&void 0!==z?z:"#",children:[(0,i.jsx)("img",{src:S.logo,alt:S.office+" logo",className:"w-[320px] mx-auto dark:hidden"}),(0,i.jsx)("img",{src:S.logo_white,alt:S.office+" white logo",className:"w-[320px] mx-auto hidden dark:inline"})]}),(0,i.jsx)(C,{links:S.links}),(0,i.jsxs)("div",{className:"opacity-50 my-12 space-y-1",children:[(0,i.jsx)("p",{children:(0,i.jsx)(I,{href:"/legal",children:"GDPR a pr\xe1vn\xed informace"})}),(0,i.jsx)("p",{children:(0,i.jsxs)("a",{href:"https://www.justo.cz",target:"_blank",children:["\xa9 JUSTO ",new Date().getFullYear()]})})]})]})}),(0,i.jsx)(K.hg,{item:{"@context":"https://schema.org/","@type":"RealEstateAgent",name:S.name,url:S.contact.web,logo:S.logo,image:null!==(Z=S.profile)&&void 0!==Z?Z:S.logo,description:S.about,brand:{"@type":"Brand",name:S.office,image:S.logo,logo:S.logo},contactPoint:{"@type":"ContactPoint",telephone:S.contact.phone,email:S.contact.email},telephone:S.contact.phone,email:S.contact.email,sameAs:S.links,knowsAbout:["Real Estate"]}})]})};let lc={home:{title:"Přehled",component:function(e){let{data:l}=e;return(0,i.jsxs)(i.Fragment,{children:["office"===l.type&&(0,i.jsx)("section",{className:"!mb-0",children:(0,i.jsx)(J,{profiles:l.profiles})}),(0,i.jsxs)("div",{className:"lg:flex lg:gap-x-4 lg:justify-between",children:[(0,i.jsxs)("div",{className:"flex-1 lg:self-start lg:sticky lg:top-14",children:[(0,i.jsx)("section",{children:(0,i.jsx)("p",{children:(0,i.jsxs)(I,{href:"office"===l.type?"/o-nas":"/bio",children:[l.about," "," ",(0,i.jsx)("span",{className:"underline",children:"Č\xedst v\xedce"})]})})}),(0,i.jsx)(eL,{data:l}),l.bookings&&(0,i.jsx)("section",{children:(0,i.jsxs)("a",{href:l.bookings,className:"button",target:"_blank",children:[(0,i.jsx)(A.Z,{className:"text-lg mr-3"}),"Online rezervace"]})})]}),(0,i.jsx)("div",{className:"lg:w-[42rem]",children:(0,i.jsx)(eC,{profile:l})})]})]})}},bio:{title:"O mně",only:"user",component:eK},"o-nas":{title:"O n\xe1s",only:"office",component:eK},aktuality:{title:"Aktuality",component:function(e){let{data:l}=e;return(0,i.jsx)(eC,{profile:l,filter:"news"})}},nemovitosti:{title:"Nemovitosti",component:function(e){let{data:l,urls:t}=e,{offer:s,...n}=l;if(null==t?void 0:t[1])return l.offer?(0,i.jsx)(e4,{profile:n,data:s}):(0,i.jsx)(H,{});if("user"===l.type)return(0,i.jsx)(eC,{profile:n,filter:"offer"});let[a,c]=(0,d.useState)({available:"all"});return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"lg:flex lg:gap-x-4 lg:justify-between",children:[(0,i.jsx)("div",{className:"flex-1 lg:self-start lg:sticky lg:top-14 max-w-2xl mx-auto",children:(0,i.jsx)("section",{children:(0,i.jsx)(le,{filter:a,setFilter:c})})}),(0,i.jsx)("div",{className:"lg:w-[42rem]",children:(0,i.jsx)(eC,{profile:n,filter:"offer",offerFilter:a})})]})})}},sluzby:{title:"Služby",component:function(e){let{data:l}=e;return(0,i.jsxs)("div",{className:"max-w-2xl mx-auto",children:[l.bookings&&(0,i.jsx)("section",{children:(0,i.jsxs)("a",{href:l.bookings,className:"button",target:"_blank",children:[(0,i.jsx)(A.Z,{className:"text-lg mr-3"}),"Online rezervace"]})}),(0,i.jsx)(eC,{profile:l,filter:"service"})]})}},reference:{title:"Reference",component:function(e){let{data:l}=e,[t,s]=(0,d.useState)(!1);return(0,i.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,i.jsxs)("section",{children:[(0,i.jsxs)("a",{href:"#",className:"button",onClick:e=>{e.preventDefault(),s(!t)},children:[(0,i.jsx)(eq.Z,{className:"text-lg mr-3"}),"Napište referenci"]}),t&&(0,i.jsx)(E,{profile:l,className:"mt-4",defaultMessage:"Moje zkušenost s ".concat("user"===l.type?"makl\xe9řem":"realitn\xed kancel\xe1ř\xed"," ").concat(l.name,":\n")})]}),(0,i.jsx)(eC,{profile:l,filter:"reference"})]})}},certifikaty:{title:"Certifik\xe1ty",component:function(e){let{data:l}=e;return(0,i.jsx)(eC,{profile:l,filter:"certificate"})}},kontakt:{title:"Kontakt",component:function(e){var l,t,s,n,a;let{data:c}=e,r=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"svg",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{fill:s="black",margin:n=2,width:i=400,height:a=400,...c}=t,r=eM.Ue(e,c),o=r.modules.data;if("svg"===l){let e=r.modules.size,l=[...o].map((l,t)=>l&&[Math.floor(t/e),t%e]).filter(e=>!!e).filter(l=>{let[t,s]=l;return!(t<7&&s<7)&&!(t>=e-7&&s<7)&&!(t<7&&s>=e-7)}),t=l.map(e=>{let[l,t]=e;return'<rect x="'.concat(n+l,'" y="').concat(n+t,'" width="0.9" height="0.9" rx="1" />')});t.push('<rect x="'.concat(n+2,'" y="').concat(n+2,'" width="2.9" height="2.9" rx="1" /> ')),t.push('<rect x="'.concat(n+2,'" y="').concat(n-5+e,'" width="2.9" height="2.9" rx="1" /> ')),t.push('<rect x="'.concat(n+e-5,'" y="').concat(n+2,'" width="2.9" height="2.9" rx="1" /> '));let c='<path d="m70,60c0,5.5-4.5,10-10,10H10c-5.5,0-10-4.5-10-10V10C0,4.5,4.5,0,10,0h50c5.5,0,10,4.5,10,10v50Zm-9.0006-41q0-10-10-10h-32c-10,0-10,.13043-10,10v32q0,10,10,10h32c10,0,10-.13044,10-10,0,0,0-32,0-32Z" />';return'<svg viewBox="0 0 '.concat(2*n+e," ").concat(2*n+e,'" width="').concat(i,'" height="').concat(a,'" fill="').concat(s,'">\n').concat(t.filter(e=>!!e).join("\n"),'\n\n<g>\n  <svg x="').concat(n,'" y="').concat(n,'" viewBox="0 0 70 70" width="6.9" height="6.9">').concat(c,'</svg>\n  <svg x="').concat(n,'" y="').concat(n+e-7,'" viewBox="0 0 70 70" width="6.9" height="6.9">').concat(c,'</svg>\n  <svg x="').concat(n+e-7,'" y="').concat(n,'" viewBox="0 0 70 70" width="6.9" height="6.9">').concat(c,"</svg> \n</g>\n</svg>")}return o}(c.contact.web+"/contact.vcf","svg",{fill:"",margin:0,width:135,height:135}),[o,x]=(0,d.useState)(!1),[m]=(0,j.Z)(200,e=>e&&x(!0));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"lg:flex lg:space-x-4 lg:justify-between",children:[(0,i.jsxs)("section",{className:"lg:flex-1",children:[(0,i.jsxs)("div",{className:"float-right hidden lg:block",children:[(0,i.jsx)("h4",{className:"mb-2",children:" Kontakt do telefonu "}),(0,i.jsx)("div",{className:"fill-current",dangerouslySetInnerHTML:{__html:r}})]}),(0,i.jsx)("h4",{className:"mb-2",children:" Kontakt "}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:h().details,children:(0,i.jsxs)("ul",{children:[c.contact.phone&&(0,i.jsx)("li",{children:(0,i.jsxs)("a",{href:"tel:".concat(c.contact.phone),children:[(0,i.jsx)(T.Z,{}),(0,i.jsx)("span",{children:c.contact.phone})]})}),c.contact.email&&(0,i.jsx)("li",{children:(0,i.jsxs)("a",{href:"mailto:".concat(U(c.contact.email)),onClick:M,children:[(0,i.jsx)(eE.Z,{}),(0,i.jsxs)("span",{children:[c.contact.email.split("@")[0],(0,i.jsx)(B.Z,{className:"!mx-0 !text-sm"}),c.contact.email.split("@")[1]]})]})}),c.contact.languages&&(null===(l=c.contact.languages)||void 0===l?void 0:l.trim())!=="\uD83C\uDDE8\uD83C\uDDFF"&&"user"===c.type&&(0,i.jsx)("li",{children:(0,i.jsxs)("a",{children:[(0,i.jsx)(eI.Z,{className:"relative -top-0.5"}),(0,i.jsxs)("span",{children:[c.contact.languages.trim().split(/\s+/).map((e,l)=>{var t,s;return(0,i.jsx)("img",{src:"/flags/".concat((null===(t=e.codePointAt(0))||void 0===t?void 0:t.toString(16))+"-"+(null===(s=e.codePointAt(2))||void 0===s?void 0:s.toString(16)),".svg"),alt:e,className:"inline-block w-5 h-5 -mt-1 ml-0 mr-2"},l)})," "]})]})})]})}),(0,i.jsx)("div",{className:"my-4 max-w-[180px]",children:(0,i.jsx)("a",{href:"/contact.vcf",className:"button w-auto mb-4",children:"Uložit kontakt"})}),!!(null===(t=c.links)||void 0===t?void 0:t.length)&&(0,i.jsx)("div",{className:"mt-8",children:(0,i.jsx)(C,{links:c.links})}),(0,i.jsx)("h4",{className:"mt-8 mb-2",children:" Realitn\xed kancel\xe1ř "}),(0,i.jsx)("div",{className:h().details,children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:(0,i.jsxs)("a",{href:c.contact.officeWeb||void 0,children:[(0,i.jsx)(eD.Z,{}),(0,i.jsx)("span",{children:c.office})]})}),(0,i.jsx)("li",{children:(0,i.jsxs)("a",{href:c.contact.addressLink||"https://mapy.cz/?q="+encodeURIComponent(c.address),target:"_blank",children:[(0,i.jsx)(eT.Z,{}),(0,i.jsx)("span",{children:c.address})]})})]})})]})]}),c.legal&&(0,i.jsxs)("section",{className:"lg:flex-1",children:[(0,i.jsx)("h4",{children:" Fakturačn\xed \xfadaje "}),(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:null!==(a=c.legal.company)&&void 0!==a?a:c.name})}),c.legal.address&&(0,i.jsx)("p",{children:c.legal.address}),c.legal.note&&(0,i.jsx)("p",{children:c.legal.note})]}),(0,i.jsxs)("div",{className:"mt-2",children:[c.legal.reg&&(0,i.jsxs)("p",{children:["IČ: ",c.legal.reg]}),c.legal.tax&&(0,i.jsxs)("p",{children:["DIČ: ",c.legal.tax]})]}),(0,i.jsxs)("div",{className:"mt-2",children:[c.legal.bankAcc&&(0,i.jsxs)("p",{children:["Bankovn\xed \xfačet: ",c.legal.bankAcc]}),c.legal.resAcc&&(0,i.jsxs)("p",{children:["Rezervačn\xed \xfačet: ",c.legal.resAcc]}),c.legal.datovka&&(0,i.jsxs)("p",{children:["Datov\xe1 schr\xe1nka: ",c.legal.datovka]}),(0,i.jsx)("p",{children:(0,i.jsxs)(I,{href:"/legal",className:"hover:underline",children:["GDPR a pr\xe1vn\xed informace",(0,i.jsx)(eV.Z,{className:"text-base ml-1"})," "]})})]}),(0,i.jsx)("hr",{}),(0,i.jsx)("p",{className:"mt-4",children:(0,i.jsx)(eB,{})})]})]}),"office"===c.type&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:"lg:!mt-0",children:[(0,i.jsx)("h4",{className:"text-center mb-5",children:" N\xe1š t\xfdm "}),(0,i.jsx)(J,{profiles:c.profiles,wrap:!0,contacts:!0})]}),(null===(s=c.contact)||void 0===s?void 0:s.lat)&&(null===(n=c.contact)||void 0===n?void 0:n.lng)&&(0,i.jsx)("section",{className:"h-[400px] !p-0 md:!p-1 overflow-hidden",ref:m,children:o?(0,i.jsx)(eJ,{data:{name:c.name,gps:{x:c.contact.lat,y:c.contact.lng}}}):(0,i.jsx)("div",{className:"w-[40px] h-[40px] mx-auto mt-[180px]",children:(0,i.jsx)(e_.Z,{color:"inherit"})})})]})]})}},legal:{title:"Pr\xe1vn\xed informace",component:function(e){let{data:l}=e;return(0,i.jsxs)("section",{children:["user"===l.type?(0,i.jsx)(lt,{data:l}):(0,i.jsx)(ls,{data:l}),(0,i.jsx)("hr",{}),(0,i.jsx)(ln,{})]})}}},lr=e=>Object.fromEntries(Object.entries(lc).filter(l=>{let[,t]=l;return!t.only||t.only===e}));var lo=!0,ld=e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c(),{children:[(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("link",{rel:"apple-touch-icon",type:"image/png",href:"/favicon.png"}),(0,i.jsx)("link",{rel:"icon shortcut",type:"image/png",href:"/favicon.png"})]}),(0,i.jsx)(la,{...e})]})},4814:function(e){e.exports={feed:"Feed_feed__QbNoM",entry:"Feed_entry__kcbEd",actions:"Feed_actions__TnbhM",reference:"Feed_reference__vjCkU",offer:"Feed_offer__c8t_x",status:"Feed_status__K0FoW",border:"Feed_border__sLV4F",share:"Feed_share__aDJaE"}},9238:function(e){e.exports={params:"Offer_params__N3LKN",status:"Offer_status__bk_jD",profile:"Offer_profile__LrJcz",gallery:"Offer_gallery__z5KiX",actions:"Offer_actions__EmsHR"}},789:function(e){e.exports={profile:"profile_profile__1Gk7Q",subtitle:"profile_subtitle__r4kV1",cta:"profile_cta__mf_VF",about:"profile_about__PS9pi"}},5892:function(e){e.exports={cover:"components_cover__8ZO6e",video:"components_video__QP5Um",controls:"components_controls__iW_JI",profile:"components_profile__ElIyj",socials:"components_socials__19kCb",details:"components_details__OAWds",menudrop:"components_menudrop__6eL1G"}}},function(e){e.O(0,[687,470,774,888,179],function(){return e(e.s=7148)}),_N_E=e.O()}]);