PageSourceSearch

https://cdn-ec-assets.garagemca.org/_next/static/chunks/pages/exhibition/[slug]/[tourSlug]-1a0d932129ac2ec3.js

js garagemca.org collected 2026-09-24 08:41:30 UTC 16,746 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1186],{20640:function(e,t,n){"use strict";var r=n(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,c,a,s,u,l=!1;t||(t={}),n=t.debug||!1;try{if(c=r(),a=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),a.selectNodeContents(u),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),u&&document.body.removeChild(u),c()}return l}},17313:function(e,t,n){"use strict";var r=n(59499),o=n(16835),i=n(67294),c=n(54490),a=n(44012),s=n(87379),u=n(54522),l=n(58990),p=n(16952),f=n(89498),d=n(85893);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=(0,c.vU)({about:{id:"components.Exhibition.TourStepNavigation.about",defaultMessage:"\u041e \u0432\u044b\u0441\u0442\u0430\u0432\u043a\u0435"},start:{id:"components.Exhibition.TourStepNavigation.start",defaultMessage:"\u041d\u0430\u0447\u0430\u0442\u044c"}}),b={xs:24};t.Z=function(e){var t=e.activeIndex,n=e.guideEntries,r=void 0===n?[]:n,c=e.parentLink,s=e.infoText,h=(0,u.wR)().isVisible,k=i.useState(0),j=(0,o.Z)(k,2),O=j[0],P=j[1];if((0,i.useEffect)((function(){if(h){var e=document.querySelector("#alert-message");e&&P(e.offsetHeight)}else P(0);return function(){P(0)}}),[h]),0===r.length)return null;var Z=r[t-1],C=r[t+1];return(0,d.jsx)(x,{alertMessageHeight:O,children:(0,d.jsx)(f.W2,{children:(0,d.jsxs)(y,{children:[-1!==t&&(0,d.jsx)(v,{children:(0,d.jsxs)(p.Z,{to:Z?"".concat(c,"/").concat(Z.slug):c,children:[(0,d.jsx)(w,{position:"left",children:(0,d.jsx)(l.Z,{hoverComponent:v,sizes:b,direction:"left",isDark:!0})}),Z?Z.number:s||(0,d.jsx)(a.Z,m({},g.about))]})}),t+1!==r.length&&(0,d.jsx)(v,{isRight:!0,children:(0,d.jsxs)(p.Z,{to:"".concat(c,"/").concat(-1===t?r[0].slug:C.slug),children:[-1===t?(0,d.jsx)(a.Z,m({},g.start)):C.number,(0,d.jsx)(w,{position:"right",children:(0,d.jsx)(l.Z,{hoverComponent:v,sizes:b,isDark:!0})})]})})]})})})};var x=s.ZP.div.withConfig({componentId:"f4foep-0"})(["position:fixed;z-index:98;right:0;bottom:","px;left:0;transition:bottom 0.2s;background-color:",";"],(function(e){return e.alertMessageHeight}),(function(e){return e.theme.colors.primary})),y=s.ZP.div.withConfig({componentId:"f4foep-1"})(["display:flex;align-items:center;min-height:51px;padding:10px 0;color:white;font-size:29px;","{min-height:72px;}"],(function(e){return e.theme.breakpoints.up("md")})),v=s.ZP.div.withConfig({componentId:"f4foep-2"})(["cursor:pointer;user-select:none;text-transform:uppercase;font-size:24px;",";
1a{display:flex;}"],(function(e){return e.isRight&&(0,s.iv)(["margin-left:auto;"])})),w=s.ZP.span.withConfig({componentId:"f4foep-3"})(["display:flex;align-items:center;",";"],(function(e){return"left"===e.position?"margin-right: 10px;":"margin-left: 10px;"}))},81513:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(59499),o=n(67294),i=n(20640),c=n.n(i),a=n(54490),s=n(86896),u=n(44012),l=n(87379),p=n(25119),f=n(40733),d=n(81117),h={facebook:"//www.facebook.com/sharer/sharer.php?u={{href}}",x:"//x.com/intent/tweet?text={{text}}&url={{href}}&via={{via}}",vkontakte:"//vk.com/share.php?url={{href}}",odnoklassniki:"//connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl={{href}}",telegram:"//t.me/share/url?&via={{via}}&url={{href}}"};var m=n(85893);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=[{name:"X",icon:"x",service:"x"},{name:"VK",icon:"vk",service:"vkontakte"},{name:"OK",icon:"ok",service:"odnoklassniki"},{name:"Telegram",icon:"tg",service:"telegram"}],y=(0,a.vU)({tags:{id:"components.Share.tags",defaultMessage:"\u0422\u0435\u0433\u0438"},share:{id:"components.Share.share",defaultMessage:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"},copied:{id:"components.Share.copied",defaultMessage:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e!"},copied_button:{id:"components.Share.copied_button",defaultMessage:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443"},arial_social_button:{id:"components.Share.arial_social_button",defaultMessage:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432 {social}"}}),v=function(){var e=(0,o.useState)(!1),t=e[0],n=e[1];return(0,m.jsx)(I,{children:(0,m.jsx)(R,{disabled:t,onClick:function(){c()(window.location.href),n(!0),setTimeout((function(){n(!1)}),3e3)},children:t?(0,m.jsx)(u.Z,b({},y.copied)):(0,m.jsx)(u.Z,b({},y.copied_button))})})},w=function(e){var t=e.parent,n=e.tags,r=e.isCourses,o=(0,s.Z)(),i=Boolean(n||t);return(0,m.jsxs)(k,{children:[i&&(0,m.jsxs)(O,{children:[t&&(0,m.jsx)(P,{as:f.Z,isShare:!0,parent:t}),n&&(0,m.jsxs)(P,{children:[!t&&(0,m.jsx)(j,{children:(0,m.jsx)(u.Z,b({},y.tags))}),(0,m.jsx)(d.Z,{tags:n,isCourses:r})]})]}),(0,m.jsxs)(Z,{hasMeta:i,children:[(0,m.jsx)(j,{children:(0,m.jsx)(u.Z,b({},y.share))}),(0,m.jsxs)(C,{children:[(0,m.jsx)(S,{children:x.map((function(e,t){return(0,m.jsx)(D,{children:(0,m.jsx)(_,{onClick:(n=e.service,function(){var e={href:window.encodeURIComponent(window.location.href),via:"garage_mca"},t=h[n].replace(/(\{\{(.*?)\}\})/g,(function(t,n,r){return e[r]?e[r]:""}));!function(e,t,n,r){var o=window.screen.width/2-n/2,i=window.screen.height/2-r/2;window.open(e,t,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=".concat(n,", height=").concat(r,", top=").concat(i,", left=").concat(o))}(t,n,600,320)}),"aria-label":o.formatMessage(y.arial_social_button,{social:e.name}),children:(0,m.jsx)(E,{name:e.icon})})},String(t));var n}))}),(0,m.jsx)(v,{})]})]})]})},k=l.ZP.div.withConfig({componentId:"sc-1iw50yk-0"})(["",";position:relative;z-index:1;padding-bottom:80px;","{padding-bottom:120px;}","{border-top:1px solid ",";}","{padding-bottom:150px;}"],(function(e){return e.theme.grid}),(function(e){return e.theme.breakpoints.up("sm")}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.breakpoints.up("xl")})),j=l.ZP.h2.withConfig({componentId:"sc-1iw50yk-1"})(["flex:1;margin:0;margin-bottom:5px;padding:0;letter-spacing:-0.01em;font-size:15.75px;font-weight:500;line-height:24px;","{& span{position:absolute;
1left:0;}}","{margin-bottom:10px;}","{font-size:20px;}"],(function(e){return e.theme.breakpoints.only("sm")}),(function(e){return e.theme.breakpoints.only("md")}),(function(e){return e.theme.breakpoints.up("xl")})),O=l.ZP.div.withConfig({componentId:"sc-1iw50yk-2"})(["grid-column:1 / -1;padding-top:9px;","{grid-column:3 / -1;}","{&:before{position:absolute;top:0;right:0;left:0;height:1px;content:'';background:",";}}","{grid-column:1 / 5;}","{grid-column:1 / 4;}","{padding-top:10px;}"],(function(e){return e.theme.breakpoints.up("sm")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.up("lg")}),(function(e){return e.theme.breakpoints.up("xl")})),P=l.ZP.div.withConfig({componentId:"sc-1iw50yk-3"})(["& + &{margin-top:10px;padding-top:9px;border-top:1px solid ",";}"],(function(e){return e.theme.colors.primary})),Z=l.ZP.section.withConfig({componentId:"sc-1iw50yk-4"})(["grid-column:1 / -1;padding-top:9px;","{grid-column:3 / -1;}","{&:before{position:absolute;right:0;left:0;height:1px;margin-top:-9px;content:'';background:",";}}","{grid-column:",";}",";"],(function(e){return e.theme.breakpoints.up("sm")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.hasMeta?"7 / -1":"1 / -1"}),(function(e){return e.hasMeta&&(0,l.iv)(["","{margin-top:40px;}","{margin-top:50px;}"],(function(e){return e.theme.breakpoints.only("xs")}),(function(e){return e.theme.breakpoints.only("sm")}))})),C=l.ZP.div.withConfig({componentId:"sc-1iw50yk-5"})(["","{display:flex;justify-content:space-between;}"],(function(e){return e.theme.breakpoints.up("sm")})),S=l.ZP.ul.withConfig({componentId:"sc-1iw50yk-6"})(["display:flex;",";"],(function(e){return e.theme.listStyleNone})),D=l.ZP.li.withConfig({componentId:"sc-1iw50yk-7"})(["margin-right:10px;&:last-child{margin-right:0;}"]),_=l.ZP.button.withConfig({componentId:"sc-1iw50yk-8"})(["",";display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;cursor:pointer;border:1px solid ",";border-radius:50%;background-color:",";",";","{width:45px;height:45px;}","{&:hover{background-color:white;}}"],(function(e){return e.theme.resetButton}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.transition("background-color")}),(function(e){return e.theme.breakpoints.up("xl")}),(function(e){return e.theme.notTouchScreen})),E=(0,l.ZP)(p.ZP).withConfig({componentId:"sc-1iw50yk-9"})(["display:inline-block;color:",";font-size:22px;line-height:1;",";","{",":hover &{color:",";}}"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.transition("color")}),(function(e){return e.theme.notTouchScreen}),_,(function(e){return e.theme.colors.primary})),I=l.ZP.div.withConfig({componentId:"sc-1iw50yk-10"})(["","{margin-top:10px;}"],(function(e){return e.theme.breakpoints.only("xs")})),R=l.ZP.button.withConfig({componentId:"sc-1iw50yk-11"})(["width:195px;height:40px;padding:0;cursor:pointer;letter-spacing:0.04em;text-transform:uppercase;color:",";border:1px solid ",";background:",";font-size:12.1px;",";","{width:242px;height:45px;font-size:15.75px;}&:disabled{cursor:default;border-color:",";background-color:",";}","{&:not(:disabled):hover{color:",";background-color:",";}}"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.transition("color, background-color")}),(function(e){return e.theme.breakpoints.up("xl")}),(function(e){return e.theme.colors.gray}),(function(e){return e.theme.colors.gray}),(function(e){return e.theme.notTouchScreen}),(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.white}))},14465:function(e,t,n){"use strict";n.r(t);var r=n(50029),o=n(92777),i=n(82262),c=n(10748),a=n(45959),s=n(63553),u=n(37247),l=n(59499),p=n(87794),f=n.n(p),d=n(67294),h=n(11163),m=n(29299),g=n(42279),b=n(27361),x=n.n(b),y=n(75472),v=n.n(y),w=n(89734),k=n.n(w),j=n(32064),O=n(50783),P=n(17313),Z=n(55813),C=n(90322),S=n(87650),D=n(81513),_=n(8292),E=n(90924),I=n(21064),R=n(89498),T=n(85893);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?z(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var o=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var U=(0,g.zB)({eventTour:_.z}),A=function(e){(0,a.Z)(n,e);var t=M(n);function n(){var e;(0,o.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,l.Z)((0,c.Z)(e),"_getGuide",(function(){var t=e.props,n=t.eventTour,r=t.router.query,o={};"tour"===(null===r||void 0===r?void 0:r.tourSlug)?o=v()(x()(n,"guides")||[],"id","asc")[0]:o=(n&&n.guides||[]).find((function(e){return e.slug===tourSlug}));return o})),e}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.eventTour,n=e.router.query,r=this._getGuide(),o=(0,E.jr)("exhibition",{title:x()(r,"title"),image:x()(r,"image.url"),color:x()(t,"previewImageDominantColor"),v:1}),i={title:x()(r,"title"),description:x()(r,"lead"),image:o,dynamicImage:o},c=x()(r,"guideEntries")&&k()(x()(r,"guideEntries"),[function(e){return Number(e.number)}]);if(!r)return(0,T.jsx)(O.Z,{code:404});var a={activeIndex:-1,guideEntries:c,parentLink:"exhibition/".concat(x()(t,"slug"),"/").concat(null===n||void 0===n?void 0:n.tourSlug)};return(0,T.jsxs)(C.Z,{headerProps:{tour:a},withoutNewsSubscription:!0,withoutFooter:!0,children:[(0,T.jsx)(E.ZP,N({},i)),(0,T.jsx)(S.Z,{title:x()(r,"title"),image:x()(r,"image.cover.url"),breadcrumbs:[{sectionKey:"exhibitions",link:"exhibitions"},{title:x()(t,"title"),link:"exhibition/".concat(x()(t,"slug"))}]}),(0,T.jsxs)(R.W2,{children:[(0,T.jsx)("div",{className:"text text__section text__section--no-border",children:(0,T.jsx)("div",{className:"text__section__content",children:(0,T.jsx)(Z.Z,{html:x()(r,"description")})})}),(0,T.jsx)(D.Z,{})]}),(0,T.jsx)(P.Z,N({},a))]})}}]),n}(d.Component);A.getInitialProps=I.Y.getInitialPageProps((function(e){return function(){var t=(0,r.Z)(f().mark((function t(n){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch((0,j.d7)(null===(r=n.query)||void 0===r?void 0:r.slug));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),t.default=(0,h.withRouter)((0,m.$j)(U)(A))},32551:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/exhibition/[slug]/[tourSlug]",function(){return n(14465)}])},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)}
1)),t&&t.focus()}}}},function(e){e.O(0,[7650,9774,2888,179],(function(){return t=32551,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.