PageSourceSearch

https://medialogue.cz/_next/static/chunks/pages/expositions/[id]-6aa356cd14edde1486ed.js

js medialogue.cz collected 2026-10-07 01:25:13 UTC 9,770 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[11],{"0dZj":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/expositions/[id]",function(){return n("B7Ww")}])},"3fZ3":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n("Ff2n"),i=n("rePB"),r=n("R/WZ"),c=n("SpDg"),o=(n("q1tI"),n("nKUr"));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=Object(r.a)((function(e){var t,n;return{root:{maxWidth:"1920px",width:"100%",marginLeft:"auto",marginRight:"auto",backgroundSize:"cover",backgroundPosition:"center",backgroundColor:"#ccc",minHeight:"244px",maxHeight:"415px",height:"33vw",position:"relative",flexShrink:0},itemLegend:Object(i.a)({position:"absolute",bottom:"70px",left:"30px",right:"30px",color:"#FFFFFF",textAlign:"left"},e.breakpoints.up("md"),{width:"75%",margin:"0 auto"}),itemLegendTitle:(t={fontSize:"40px",lineHeight:"40px",fontWeight:900,marginBottom:"6px"},Object(i.a)(t,e.breakpoints.up("md"),{marginBottom:"8px",fontSize:"50px",lineHeight:"50px"}),Object(i.a)(t,e.breakpoints.up("lg"),{marginBottom:"10px",fontSize:"60px",lineHeight:"60px"}),t),itemLegendDescription:(n={fontSize:"16px",lineHeight:"18px"},Object(i.a)(n,e.breakpoints.up("md"),{fontSize:"20px",lineHeight:"22px"}),Object(i.a)(n,e.breakpoints.up("lg"),{fontSize:"24px",lineHeight:"28px"}),n)}})),u=function(e){var t=e.className,n=d();return Object(o.jsx)(c.a,{variant:"rect",className:"".concat(n.root," ").concat(t)})};t.b=function(e){var t=e.imgUrl,n=e.title,i=e.subtitle,r=e.className,c=Object(a.a)(e,["imgUrl","title","subtitle","className"]),s=d();return Object(o.jsx)("div",l(l({className:"".concat(s.root," ").concat(r),style:{backgroundImage:"url(".concat(t,")")}},c),{},{children:Object(o.jsxs)("div",{className:s.itemLegend,children:[Object(o.jsx)("div",{className:s.itemLegendTitle,children:n}),Object(o.jsx)("div",{className:s.itemLegendDescription,children:i})]})}))}},B7Ww:function(e,t,n){"use strict";n.r(t);var a,i=n("rePB"),r=n("ZD0w"),c=n("q1tI"),o=n("nOHt"),s=n("ofer"),l=n("Z3vd"),d=n("3fZ3"),u=n("Xt1q"),p=n("R/WZ"),m=n("nKUr"),b=Object(p.a)((function(e){return{root:Object(i.a)({display:"grid",gridTemplateColumns:"repeat(auto-fill, 280px)",gridGap:"30px 1rem",justifyContent:"space-around"},e.breakpoints.up("md"),{gridTemplateColumns:"repeat(auto-fill, 310px)"}),galleryImage:Object(i.a)({width:"280px",height:"200px",cursor:"pointer"},e.breakpoints.up("md"),{width:"310px",height:"220px"}),viewedImage:{maxWidth:"1000px"},modalInnerWrapper:{height:"100%",position:"relative"},previewModal:Object(i.a)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"95vw",maxWidth:"1000px",height:"90vh",maxHeight:"900px",backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center",outline:"none",marginTop:"15px"},e.breakpoints.up("sm"),{width:"80vw",height:"80vh",marginTop:"0px"}),modalButton:{width:"70px",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",cursor:"pointer","&:hover $iconWrapper":{opacity:.5,backgroundColor:"#4e4e4e"}},modalButtonPrevious:{left:0},modalButtonNext:{right:0},iconWrapper:{width:"60px",height:"60px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%","& img":{marginLeft:"-7px"}},closeButton:Object(i.a)({position:"absolute",top:"-35px",right:"3px",cursor:"pointer",opacity:.6,"&:hover":{opacity:1}},e.breakpoints.up("sm"),{top:"-40px"}),backdrop:{backgroundColor:"rgba(0, 0, 0, 0.7)"}}})),j=function(e){var t=e.images,n=b(),a=Object(c.useState)(null),i=a[0],r=a[1],o=Object(c.useState)(-1),s=o[0],l=o[1];Object(c.useEffect)((function(){t&&i&&l(t.findIndex((function(e){return e===i})))}),[t,i]);var d=function(){r(null)},p=function(){var e=s-1>=0?s-1:t.length-1;r(t[e])},j=function(){var e=s+1<t.length?s+1:0;r(t[e])};return Object(m.jsxs)("div",{className:n.root,children:[t.map((function(e,t){return Object(m.jsx)("img",{src:e.thumbnailUrl,className:n.galleryImage,alt:"",onClick:function(){return function(e){r(e)}(e)}},t)})),Object(m.jsx)(u.a,{open:!!i,onClose:d,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",className:n.backdrop,children:i?Object(m.jsx)("div",{className:n.previewModal,style:{backgroundImage:'url("'.concat(i.imageUrl,'")')},children:Object(m.jsxs)("div",{className:n.modalInnerWrapper,children:[Object(m.jsx)("div",{role:"button",className:n.closeButton,onClick:d,children:Object(m.jsx)("img",{src:"/images/close.svg",alt:"Close"})}),Object(m.jsx)("div",{role:"button",className:"".concat(n.modalButton," ").concat(n.modalButtonPrevious),onClick:p,children:Object(m.jsx)("div",{className:n.iconWrapper,children:Object(m.jsx)("img",{src:"/images/chevron-left.svg",alt:"Previous image",style:{marginLeft:"-7px"}})})}),Object(m.jsx)("div",{role:"button",className:"".concat(n.modalButton," ").concat(n.modalButtonNext),onClick:j,children:Object(m.jsx)("div",{className:n.iconWrapper,children:Object(m.jsx)("img",{src:"/images/chevron-right.svg",alt:"Next image",style:{marginLeft:"5px"}})})})]})}):Object(m.jsx)("div",{})})]})},g=n("l8J/"),x=n("h4VS"),h=n("VX74"),f=Object(h.gql)(a||(a=Object(x.a)(['\n  query GetExhibitions($id: Float) {\n    exhibitions(filter: {id: {_eq: $id}}) {\n      id,\n      title,\n      header_title,\n      subtitle,\n      date_from,\n      date_to,\n      place,\n      text,\n      header_image {\n        id\n      },\n      gallery {\n        id,\n        directus_files_id {\n          id\n        }\n      },\n      partners(sort: "sort") {\n        id,\n        partners_id {\n          name,\n          logo {\n            id\n          },\n          url\n        }\n      },\n      translations {\n        title,\n        header_title\n        subtitle,\n        text\n      }\n    }\n  }
1\n']))),O=n("Tm7s"),v=n("lraM"),y=n("trE4"),k=Object(p.a)((function(e){return{root:Object(i.a)({display:"grid",gridTemplateColumns:"repeat(auto-fill, 280px)",gridGap:"60px 1rem",justifyItems:"center",justifyContent:"space-around"},e.breakpoints.up("md"),{gridTemplateColumns:"repeat(auto-fill, 310px)"})}})),_=function(e){var t=e.model,n=k(),a=Object(c.useState)([]),i=a[0],r=a[1];return Object(c.useEffect)((function(){var e=t?t.map((function(e){return e.partners_id})).filter((function(e){return e})):[];r(e)}),[t]),Object(m.jsx)("div",{className:n.root,children:i.map((function(e){var t=e.logo?e.logo.id:"";return Object(m.jsx)("a",{href:e.url?e.url:null,target:"_blank",rel:"noopener",children:Object(m.jsx)("img",{src:"".concat(v.a,"/assets/").concat(t,"/?key=partner-logo"),alt:e.name,title:e.name})},t)}))})},w=n("SpDg"),N=Object(p.a)((function(e){return{headerImage:Object(i.a)({marginBottom:"26px"},e.breakpoints.up("md"),{marginBottom:"40px"}),galleryAfter:{marginTop:"40px",display:"flex",justifyContent:"center",alignItems:"center"},loadButton:{padding:"12px 50px"},multiText:{"& a":{color:e.palette.primary.main}}}}));t.default=function(){var e=Object(O.a)(),t=N(),n=Object(o.useRouter)().query.id,a=Number(n)||0,i=Object(c.useState)(null),u=i[0],p=i[1],b=Object(c.useState)([]),x=b[0],k=b[1],S=Object(c.useState)([]),B=S[0],C=S[1],I=Object(c.useState)(12),P=I[0],T=I[1],E=Object(c.useState)(!0),W=E[0],F=E[1],H=Object(y.a)(),L=Object(h.useQuery)(f,{variables:{id:a}}),D=L.data,U=L.loading;L.error;Object(c.useEffect)((function(){var e=null===D||void 0===D?void 0:D.exhibitions;e&&e.length&&p(e[0])}),[D]),Object(c.useEffect)((function(){var e="".concat(v.a,"/assets");if(u&&u.gallery){var t=u.gallery.map((function(t){var n=t.directus_files_id?t.directus_files_id.id:"";return{imageUrl:"".concat(e,"/").concat(n),thumbnailUrl:"".concat(e,"/").concat(n,"?key=gallery-thumbnail")}}));k(t),C(t.slice(0,P))}}),[u]),Object(c.useEffect)((function(){F(x.length>B.length)}),[B]);return Object(m.jsxs)(m.Fragment,{children:[U&&Object(m.jsx)(d.a,{className:t.headerImage}),u&&Object(m.jsx)(d.b,{imgUrl:u.header_image?"".concat(v.a,"/assets/").concat(u.header_image.id):"",title:e(u,"header_title"),subtitle:e(u,"subtitle"),className:t.headerImage}),Object(m.jsxs)(g.a,{variant:"narrow",main:!0,children:[U&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(s.a,{variant:"h1",children:Object(m.jsx)(w.a,{})}),Object(m.jsx)(w.a,{}),Object(m.jsx)(w.a,{}),Object(m.jsx)(w.a,{})]}),u&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsxs)(s.a,{variant:"h1",children:[e(u,"title"),u.place&&", ".concat(u.place)]}),u.date_from&&Object(m.jsxs)("strong",{children:[H(u.date_from)," - ",H(u.date_to)]}),Object(m.jsx)("div",{className:t.multiText,dangerouslySetInnerHTML:{__html:e(u,"text")}})]}),!!B.length&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(s.a,{variant:"h1",children:Object(m.jsx)(r.Trans,{id:"Galerie"})}),Object(m.jsx)(j,{images:B}),Object(m.jsx)("div",{className:t.galleryAfter,children:W&&Object(m.jsx)(l.a,{className:t.loadButton,onClick:function(){var e=P+12;C(x.slice(0,e)),T(e)},variant:"contained",color:"primary",children:Object(m.jsx)(r.Trans,{id:"Na\u010d\xedst dal\u0161\xed"})})})]}),u&&u.partners&&!!u.partners.length&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(s.a,{variant:"h1",children:Object(m.jsx)(r.Trans,{id:"Partne\u0159i"})}),Object(m.jsx)(_,{model:u.partners})]})]})]})}}},[["0dZj",0,1,2,3,4,6]]]);

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.