1import{r as e,j as s,R as a}from"./Cb7KVQV9.js";import{b as t}from"./DMSsJFyb.js";import{F as l}from"./K9Fjl2dn.js";import{P as i}from"./CBTyghW5.js";import{d as r,P as n}from"./KlMN3LCD.js";import{R as c,B as m}from"./DSEdC8bO.js";import{j as o,C as d,R as h}from"./DXxQwAFg.js";import{S as p}from"./1q7JMjPM.js";import{L as j}from"./hznuaPxg.js";import"./nyX0CqFI.js";import"./CtHda_MU.js";import"./yUTl9gN0.js";import"./QKbNa7Tc.js";import"./BeLtu-UY.js";import"./BrRE13G_.js";import"./XoDbBQUm.js";import"./BWjE_4Si.js";import"./BFk34ZWe.js";import"./CPqx4nYA.js";import"./DYt-z7IF.js";import"./BbkmRKJQ.js";import"./De3SUFka.js";import"./CTBizfNm.js";import"./GDGmKQxh.js";import"./D7I9jlYy.js";import"./w45Krg71.js";import"./BenCLopm.js";import"./CdJVFwMy.js";import"./B4uAlFUu.js";import"./C5Huw2aR.js";import"./DH0LoexQ.js";import"./B3S1iNVp.js";import"./iJGA2h5J.js";import"./H5wWVUl6.js";import"./Bm8bmW7p.js";import"./C_CpVLLG.js";import"./8Xt6D0vq.js";import"./ZJSVNpfi.js";import"./Bp7M2gVl.js";import"./Dwd33ndG.js";import"./D8_Zmyug.js";import"./DvCEEdEu.js";import"./C3iLwklL.js";import"./CaOgpIsL.js";import"./BkMlFOJ-.js";import"./CZmJzOY-.js";import"./yJGO6Amu.js";import"./CWkYTb2H.js";import"./DWRoy1ct.js";import"./Ds0C_khL.js";import"./CaPCYKCY.js";import"./C0EZ3hi7.js";import"./DM2AKqwu.js";import"./DoBxDInM.js";import"./BOo6GlvS.js";import"./Dkpt1IX3.js";import"./Dd2IIlCl.js";import"./CmVirvHy.js";import"./ByvUupxX.js";import"./C5Ed0hsj.js";import"./BrfFlxfT.js";import"./BO4ZThAr.js";import"./DhvNrx4q.js";import"./CSQGeap9.js";import"./D_I-_Nxc.js";import"./CjZORlUH.js";import"./BXzfF2qz.js";const x="fc5lj",u=s=>e.createElement("svg",{width:14,height:2,viewBox:"0 0 14 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},e.createElement("path",{d:"M0 2V0H14V2H0Z",fill:"#8D9382"})),w=s=>e.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},e.createElement("path",{d:"M6 14V8H0V6H6V0H8V6H14V8H8V14H6Z",fill:"#8D9382"})),v="-jn6c",f="jnUGr",g="H5yhp",N=({data:e,handleDisclosureChange:a})=>{const{name:t,content:l,seoId:i}=e,r=window.location.hash.substring(1).split("#").filter(Boolean);return s.jsx(o,{className:v,defaultOpen:r.includes(i),children:({open:e})=>s.jsxs("div",{children:[s.jsxs(d,{className:g,onClick:()=>a(i),children:[t,e?s.jsx(u,{}):s.jsx(w,{})]}),s.jsx(h,{className:f,children:l&&s.jsx(c,{html:l,simple:!0})})]})})},k=({data:a})=>{const[t,l]=e.useState([]),i=e=>{if(t.includes(e)){const s=t.filter((s=>s!==e));r(s)}else{const s=t.filter((s=>s!==e));s.push(e),r(s)}},r=e=>{const s=e.join("#"),a=`${window.location.pathname}${s?`#${s}`:""}`;window.history.replaceState(null,null,a),l(e)};return e.useEffect((()=>{const e=window.location.hash.substring(1).split("#").filter(Boolean);l(e)}),[]),s.jsx("div",{className:x,children:a.map(((e,a)=>e.content?s.jsx(N,{data:e,handleDisclosureChange:i},a):null))})},E="hByX2",b="-DzGE",_=s=>e.createElement("svg",{width:24,height:24,fill:"#595c50",strokeWidth:.5,stroke:"#595c50",...s},e.createElement("path",{d:"M16.965 2.381c3.593 1.946 6.035 5.749 6.035 10.119 0 6.347-5.153 11.5-11.5 11.5s-11.5-5.153-11.5-11.5c0-4.37 2.442-8.173 6.035-10.119l.608.809c-3.353 1.755-5.643 5.267-5.643 9.31 0 5.795 4.705 10.5 10.5 10.5s10.5-4.705 10.5-10.5c0-4.043-2.29-7.555-5.643-9.31l.608-.809zm-4.965-2.381v14.826l3.747-4.604.753.666-5 6.112-5-6.101.737-.679 3.763 4.608v-14.828h1z"})),y={wrapper:"_7FYJx",documents:"lWOe7",document:"nsi0w",icon:"GoJ7P",info:"Bleor",arrow:"D3SGV",download:"-jDk2"},D=({data:e=[]})=>!e||!e.length>0?null:s.jsxs("div",{className:y.wrapper,children:[s.jsx("h3",{children:"Súvisiace dokumenty"}),s.jsx("div",{className:y.documents,children:e.map(((e,a)=>{const{thumb:t="",icon:l="",name:i="",seoId:r="",hasDetail:n,info:c}=e;return s.jsxs("div",{className:y.document,children:[t||l?s.jsx("img",{src:t?m+t:m+l,alt:"Obrazok dokuentu"+i}):s.jsx("div",{}),s.jsxs("div",{className:y.info,children:[s.jsx(j,{to:n?"/dokument/"+r:m+"/dokument/f/"+r,target:n?"_self":"_blank",download:!n,children:i}),!n&&s.jsx("div",{children:c?"Stiahnuť "+c:""})]}),n?s.jsx(p,{className:y.arrow}):s.jsx(_,{className:y.arroww})]},r||a)}))})]}),V={"dokumenty-detail-header-wrapper":"H-x2U",title:"QDOBd","header-wrapper":"-RYDt",category:"WVg3-","download-title":"HbjJb","img-wrapper":"_2clwK","tag-wrapper":"L3boC",tags:"gZ5du",tag:"OSHIf","file-wrapper":"o9pA-",info:"_358MX",col:"_009XA",label:"Bm0w5",text:"skrJq","btn-wrapper":"dN3vv"},Z=s=>e.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"60 60 400 400",...s},e.createElement("defs",null,e.createElement("linearGradient",{id:"linear-gradient",x1:256,y1:329.5,x2:256,y2:841.5,gradientTransform:"translate(0 -329.5)",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{offset:0,stopColor:"#f704fe"}),e.createElement("stop",{offset:1,stopColor:"#24bce3"}))),e.createElement("g",{id:"Layer_1-2","data-name":"Layer_1"},e.createElement("g",{id:"_280965824","data-name":280965824},e.createElement("path",{id:"_280966424","data-name":280966424,className:"cls-2",d:"m367.9,406h-189.8c-7.2,0-13.1-5.9-13.1-13.1v-240.1c0-7.2,5.9-13.1,13.1-13.1h144.6c1.8,0,3.3,1.5,3.3,3.3s-1.5,3.3-3.3,3.3h-144.6c-3.6,0-6.6,2.9-6.6,6.6v240.1c0,3.6,2.9,6.6,6.6,6.6h189.8c3.6,0,6.6-2.9,6.6-6.6v-194.8c0-1.8,1.5-3.3,3.3-3.3s3.3,1.5,3.3,3.3v194.8c-.1,7.2-6.1,13-13.2,13h0Z"}),e.createElement("path",{id:"_280966064","data-name":280966064,className:"cls-2",d:"m168.1,372.2h-24c-7.2,0-13.1-5.9-13.1-13.1V119c0-7.2,5.9-13.1,13.1-13.1h189.9c7.2,0,13.1,5.9,13.1,13.1v45.3c0,1.8-1.5,3.3-3.3,3.3s-3.3-1.5-3.3-3.3v-45.3c0-3.6-2.9-6.6-6.6-6.6h-189.8c-3.6,0-6.6,2.9-6.6,6.6v240.1c0,3.6,2.9,6.6,6.6,6.6h24c1.8,0,3.3,1.5,3.3,3.3s-1.5,3.2-3.3,3.2h0Z"}),e.createElement("path",{id:"_280966136","data-name":280966136,className:"cls-2",d:"m325.9,150.9v37.4c0,3.6,2.9,6.6,6.6,6.6h37.4l-44-44h0Zm51.7,50.5h-45.3c-7.2,0-13.1-5.9-13.1-13.1v-45.3c0-1.3.8-2.5,2-3s2.6-.2,3.6.7l55.1,55.1c.9.9,1.2,2.3.7,3.6-.4,1.2-1.6,2-3,2Z"}),e.createElement("path",{id:"_280966088","data-name":280966088,className:"cls-2",d:"m298.8,201.4h-51.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h51.7c1.8,0,3.3,1.5,3.3,3.3s-1.6,3.3-3.3,3.3h0Z"}),e.createElement("path",{id:"_280965344","data-name":280965344,className:"cls-2",d:"m298.8,176.4h-51.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h51.7c1.8,0,3.3,1.5,3.3,3.3-.1,1.8-1.6,3.3-3.3,3.3h0Z"}),e.createElement("path",{id:"_280965200","data-name":280965200,className:"cls-2",d:"m348.2,240.2h-150.6c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h150.7c1.8,0,3.3,1.5,3.3,3.3-.1,2-1.6,3.3-3.4,3.3h0Z"}),e.createElement("path",{id:"_280965176","data-name":280965176,className:"cls-2",d:"m348.2,271.8h-150.6c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h150.7c1.8,0,3.3,1.5,3.3,3.3s-1.6,3.3-3.4,3.3h0Z"}),e.createElement("path",{id:"_280965848","data-name":280965848,className:"cls-2",d:"m348.2,303.1h-150.6c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h150.7c1.8,0,3.3,1.5,3.3,3.3s-1.6,3.3-3.4,3.3h0Z"}),e.createElement("path",{id:"_280965320","data-name":280965320,className:"cls-2",d:"m348.2,334.5h-150.6c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h150.7c1.8,0,3.3,1.5,3.3,3.3-.1,1.9-1.6,3.3-3.4,3.3h0Z"}),e.createElement("path",{id:"_280965680","data-name":280965680,className:"cls-2",d:"m348.2,366h-150.6c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h150.7c1.8,0,3.3,1.5,3.3,3.3s-1.6,3.3-3.4,3.3h0Z"})))),H=a.memo((({images:a,themes:t,file:l,name:i})=>{const{ext:r,info:n,lang:c,link:o,size:d}=l,h=e.useMemo((()=>t),[t]),p=null==n?void 0:n.toLowerCase().includes("slov-lex"),x=null==n?void 0:n.toLowerCase().includes("eur-lex"),u=p||x,w=e.useCallback(((e,a)=>a?s.jsxs("div",{className:V.col,children:[s.jsx("p",{className:V.label,children:`${e}:`}),s.jsx("p",{className:V.text,children:a})]}):null),[]);return s.jsxs("header",{className:V["dokumenty-detail-header-wrapper"],role:"banner",children:[s.jsx("h1",{className:V.title,children:i}),s.jsxs("div",{className:V["header-wrapper"],children:[s.jsx("div",{className:V["img-wrapper"],children:s.jsx(Z,{})}),s.jsxs("div",{className:V["tag-wrapper"],children:[(null==h?void 0:h.length)>0&&s.jsx("p",{className:V.category,children:(null==h?void 0:h.length)>1?"Témy":"Téma"}),s.jsx("div",{className:V.tags,children:h.map((e=>{const{name:a,seoId:t}=e;return s.jsx(j,{to:"/dokumenty?page=1&themes="+t,className:V.tag,children:a},t)}))})]}),s.jsxs("section",{className:V["download-wrapper"],children:[s.jsx("p",{className:V["download-title"],children:u?"Externý dokument":"Dokument na stiahnutie"}),s.jsxs("div",{className:V["file-wrapper"],children:[s.jsxs("div",{className:V.info,children:[w("Formát",r),w("Veľkosť",d),r||d?null:w("Info",n),w("Jazyk",c)]}),s.jsx("div",{className:V["btn-wrapper"],children:s.jsx(j,{to:m+o||"",className:"no_doc_icon",download:!0,target:"_blank","aria-label":"Stiahnuť súbor",children:u?s.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.4 13L0 11.6L9.6 2H1V0H13V12H11V3.4L1.4 13Z"})}):s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"36px",width:"36px",viewBox:"0 -960 960 960",fill:"#e8eaed",children:s.jsx("path",{d:"M480-313 287-506l43-43 120 120v-371h60v371l120-120 43 43-193 193ZM220-160q-24 0-42-18t-18-42v-143h60v143h520v-143h60v143q0 24-18 42t-42 18H220Z"})})})})]})]})]})]})})),S="s33Pe",B="lUlVi",L="pWdwc",C="lSQP9",M="_1wius",O=({data:e})=>
1{if(!e)return null;const{administrator:a,administratorShort:t,placeOfAcceptance:l,dateOfAcceptance:i,dateOfValidity:r}=e,n=e=>{if(!e)return null;return new Date(e).toLocaleDateString("sk-SK")};return s.jsx("section",{className:S,children:s.jsxs("div",{className:B,children:[a?s.jsxs("div",{className:L,children:[s.jsx("div",{className:C,children:"Gestor"}),s.jsxs("div",{className:M,children:[a,t?s.jsxs("span",{children:[" (",t,")"]}):null]})]}):null,l?s.jsxs("div",{className:L,children:[s.jsx("div",{className:C,children:"Miesto prijatia"}),s.jsx("div",{className:M,children:l})]}):null,i?s.jsxs("div",{className:L,children:[s.jsx("div",{className:C,children:"Dátum prijatia"}),s.jsx("div",{className:M,children:n(i)})]}):null,r?s.jsxs("div",{className:L,children:[s.jsx("div",{className:C,children:"Dátum platnosti"}),s.jsx("div",{className:M,children:n(r)})]}):null]})})},z=({data:e})=>{if(!e)return null;const{themes:a,name:t,file:l,images:i,blocks:n,headlineData:c,relevants:m}=e,o=n.filter((e=>"center"===e.place))||[];return s.jsxs("div",{className:E,children:[s.jsxs("div",{className:b,children:[s.jsx(H,{images:i,themes:a,file:l,name:t}),c?s.jsx(O,{data:c}):null]}),o.map(((e,a)=>s.jsx(r,{sectionData:e},a))),a.length>0&&s.jsx(k,{data:a}),(null==m?void 0:m.length)>0&&s.jsxs(s.Fragment,{children:[s.jsx("hr",{}),s.jsx(D,{data:m})]})]})},P="nexsb",G=({data:a,refPass:r})=>{const[c,m]=e.useState(!1),{blocks:o=[]}=a;return e.useEffect((()=>{m(!0)}),[]),o&&c?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:t(P,"loading-opacity-200"),children:[s.jsx(i,{blocks:o}),s.jsxs("main",{id:"main-content",ref:r,children:[s.jsx(n,{}),s.jsx(z,{data:a})]})]}),s.jsx(l,{})]}):null};export{G as default};
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.