1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[558],{9691:function(e,n,t){"use strict";var r=t(2087),l=t(4481),i=t(543);n.Z=function(e){var n=(0,l.Z)("common"),t=n.t,a=n.lang,s=e.showArchives;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ul",{className:!0===s?"footerArchives":"hideArchives",children:(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat(a,"/archives"),children:t("archives_link")})})}),(0,r.jsxs)("ul",{className:"footer",children:[(0,r.jsx)("li",{id:"signature",children:(0,r.jsxs)("a",{href:"http://www.art-o-rama.fr",target:"_blank",children:["ART-O-RAMA Marseille. ",t("artorama_date")]})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:t("contact_url"),children:t("contact")})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://www.instagram.com/artorama_marseille/?hl=".concat(a),children:"Ins"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://www.facebook.com/ART.O.RAMA.marseille",children:"Fb"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.default,{href:"/",locale:"fr",children:(0,r.jsx)("a",{className:"fr"===a?"fr":"",children:"FR"})})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.default,{href:"/",locale:"en",children:(0,r.jsx)("a",{className:"en"===a?"fr":"",children:"EN"})})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:t("artorama_vip_url"),children:t("vip_area")})})]}),(0,r.jsxs)("ul",{className:"footerMobile",children:[(0,r.jsx)("li",{id:"signatureMobile",children:(0,r.jsxs)("a",{href:"http://www.art-o-rama.fr",target:"_blank",children:["ART-O-RAMA Marseille.",(0,r.jsx)("br",{}),t("artorama_date")]})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:t("contact_url"),children:t("contact")})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://www.instagram.com/artorama_marseille/?hl=".concat(a),children:"Ins"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://www.facebook.com/ART.O.RAMA.marseille",children:"Fb"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.default,{href:"/",locale:"fr",children:(0,r.jsx)("a",{className:"fr"===a?"fr":"",children:"FR"})})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.default,{href:"/",locale:"en",children:(0,r.jsx)("a",{className:"en"===a?"fr":"",children:"EN"})})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:t("artorama_vip_url"),children:t("vip_area")})})]})]})}},8971:function(e,n,t){"use strict";var r=t(2087),l=t(543),i=t(4481),a=t(4121);n.Z=function(e){var n=(0,i.Z)("common"),t=n.t,s=n.lang,o=e.archives,c=e.gallery,u=e.artwork,d=e.allGalleries,h=e.handleCloseArtwork,m=e.naviguateGalleries,f=e.menuOpen,x=e.handleToggleMenu,j="",p="";if(d){var v,g=d.findIndex((function(e){return e.node.immaterialId===c.immaterialId})),y=d.length-1;v=g+1>y?0:g+1,j=d[g-1<0?y:g-1].node.slug,p=d[v].node.slug}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("ul",{className:"main-nav",children:[(0,r.jsx)("li",{id:c?"salon":"",children:(0,r.jsx)(l.default,{href:"/",locale:"fr"===s?"fr":"en",children:(0,r.jsx)("a",{children:t("title")})})}),o&&(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{href:"/archives",locale:"fr"===s?"fr":"en",children:(0,r.jsx)("a",{id:"archives",children:t("archives_title")})})}),c&&(0,r.jsxs)("li",{id:"myGallery",children:[(0,r.jsxs)("a",{id:"galleryNameTc",href:"#",className:f?"canClose":"",onClick:function(){return x()},children:[c.title,", ",c.city,(0,r.jsx)("div",{className:"close",children:"\xd7"})]}),m&&(0,r.jsxs)("span",{className:"naviguateGalleries",children:[j&&(0,r.jsx)(l.default,{href:j,locale:s,children:(0,r.jsx)("a",{children:"\u2190"})}),"\xa0\xa0\xa0\xa0",p&&(0,r.jsx)(l.default,{href:p,locale:s,children:(0,r.jsx)("a",{children:"\u2192"})})]})]}),(null===u||void 0===u?void 0:u.artist)&&(0,r.jsx)("li",{id:"titreCourant",children:(0,r.jsxs)("a",{href:"#",className:"informations",onClick:function(e){h(e)},children:[(0,r.jsxs)("span",{className:"tcName",children:[u.artist,(0,r.jsxs)("span",{className:"reg",children:["\xa0\xa0",(0,r.jsx)("i",{children:u.name}),", ",u.date]})]}),(0,r.jsx)("span",{className:"closeBox",children:"\xd7"})]})})]}),f&&(0,r.jsx)("div",{id:"indexSub",children:d.map((function(e,n){var i=e.node;return(0,r.jsxs)("ul",{style:{backgroundColor:(0,a.f)(i.immaterialId).plainColor},children:[(0,r.jsx)("li",{className:"emptySub",style:{color:(0,a.f)(i.immaterialId).plainColor},children:t("title")}),(0,r.jsx)("li",{className:"gallerySub",children:(0,r.jsx)(l.default,{href:"".concat(i.slug),locale:s,children:(0,r.jsxs)("a",{onClick:function(){return x()},children:[(0,r.jsxs)("strong",{children:[i.title,", ",i.galleries.city]}),(0,r.jsxs)("span",{className:"listeArtistes",children:["\u2003\u2003",i.galleries.subtitle]})]})},i.id)})]},n)}))})]})}},4121:function(e,n,t){"use strict";t.d(n,{f:function(){return i}});var r=t(4179),l=[[340,60,65],[0,65,65],[0,100,72],[16,100,66],[10,100,72],[17,100,77],[20,100,72],[30,100,72],[40,100,72],[50,100,72],[51,100,62],[60,100,68],[70,100,72],[85,100,72],[100,100,72],[120,100,72],[120,73,75],[147,70,47],[140,100,72],[157,100,49],[160,100,72],[174,72,56],[177,70,41],[160,51,60],[182,40,50],[170,100,72],[187,
1100,66],[180,100,72],[190,100,72],[195,90,50],[200,100,72],[210,100,72],[215,100,68],[225,100,75],[240,100,80],[255,100,80],[270,100,80],[285,100,80],[300,100,80],[320,100,80],[340,100,80],[360,100,80],[45,35,80],[85,35,80],[125,35,80],[175,35,80],[190,52,80],[205,35,80],[225,35,80],[265,35,80],[305,35,80],[345,35,80],[351,100,86],[30,59,57],[56,38,58],[0,0,66]];function i(e){var n;if(e){var t=new Date,i=e+t.getDate()+t.getMonth();n=(0,r.W6)(i)}else n=Math.random();var a=Math.floor(n*l.length);return{colors:l[a],plainColor:"hsl(".concat(l[a][0],", ").concat(l[a][1],"%, ").concat(l[a][2],"%)"),mediumColor:"hsl(".concat(l[a][0],", ").concat(l[a][1],"%, ").concat(l[a][2]-28,"%)"),lightColor:"hsl(".concat(l[a][0],", ").concat(l[a][1],"%, ").concat(l[a][2]+12,"%)"),textColor:"black"}}},6543:function(e,n,t){"use strict";t.d(n,{V:function(){return r},_:function(){return l}});var r=2026,l=2026},2137:function(e,n,t){"use strict";t.d(n,{f:function(){return s},V:function(){return o}});var r=t(1290),l=t(1817);function i(){var e=(0,r.Z)(["\n query AGallery($slug: ID!) {\n immaterial(id: $slug, idType: SLUG) {\n immaterialId\n title\n slug\n galleries {\n city\n email\n website\n phone\n subtitle\n annee\n image {\n id\n sourceUrl\n }\n artworks {\n artist\n artworkName\n artworkType\n boxSize\n comments\n date\n description\n html\n audio {\n id\n mediaType\n mediaItemUrl\n }\n video {\n id\n mediaType\n mediaItemUrl\n }\n price\n }\n columns {\n column\n }\n }\n }\n }\n"]);return i=function(){return e},e}function a(){var e=(0,r.Z)(["\n query allGalleries($locale: LanguageCodeFilterEnum!) {\n immaterials(\n first: 200\n where: { language: $locale, orderby: [{ field: TITLE, order: ASC }] }\n ) {\n edges {\n node {\n immaterialId\n id\n slug\n title\n galleries {\n city\n subtitle\n annee\n artworks {\n date\n }\n }\n }\n }\n }\n }\n"]);return a=function(){return e},e}var s=(0,l.ZP)(a()),o=(0,l.ZP)(i())},4179:function(e,n,t){"use strict";t.d(n,{W6:function(){return i},TV:function(){return a}});var r=t(9227);function l(){var e=new Date;return i(e.getDate()+e.getMonth())}function i(e){var n=1e4*Math.sin(e++);return n-Math.floor(n)}function a(e){for(var n=(0,r.Z)(e),t=n.length-1;t>0;t--){var i=Math.floor(l()*(t+1)),a=[n[i],n[t]];n[t]=a[0],n[i]=a[1]}return n}},2162:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return b},default:function(){return w}});var r=t(2087),l=t(7158),i=t(8971),a=t(9691);function s(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,n){return(o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){return!n||"object"!==c(n)&&"function"!==typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=t(3882);t(7820);function m(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=d(e);if(n){var l=d(this).constructor;t=Reflect.construct(r,arguments,l)}else t=r.apply(this,arguments);return u(this,t)}}var f=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&o(e,n)}(a,e);var n,t,l,i=m(a);function a(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e)).interval=null,n.audioEl=new Audio(n.props.mediaItemUrl),n.audioEl.loop=!0,n.audioEl.addEventListener("canplaythrough",(function(){n.setState({duration:n.audioEl.duration})})),n.state={currentTime:0,duration:0},n}return n=a,(t=[{key:"componentDidMount",value:function(){this.playAudio()}},{key:"componentWillUnmount",value:function(){this.stopAudio()}},{key:"playAudio",value:function(){var e=this;this.audioEl.play(),this.interval=setInterval((function(){e.setState({currentTime:e.audioEl.currentTime,progress:e.audioEl.currentTime/e.audioEl.duration*100})}),100)}},{key:"stopAudio",value:function(){clearInterval(this.interval),this.audioEl.pause()}},{key:"render",value:function(){return(0,r.jsx)("div",{id:"audioWork",children:(0,r.jsx)("div",{id:"seekSlider",style:{width:"".concat(this.state.progress,"%")}})})}}])&&s(n.prototype,t),l&&s(n,l),a}
1(h.Component),x=t(4481),j=t(5634),p=t(4121),v=t(2137),g=t(5334),y=t(6543),b=!0;function w(){var e,n,t=(0,j.useRouter)(),s=(0,x.Z)("common"),o=s.t,c=s.lang,u=(0,g.useQuery)(v.V,{variables:{slug:t.query.slug}}),d=(u.loading,u.error,u.data.immaterial),m=null===(e=(0,g.useQuery)(v.f,{variables:{locale:c.toUpperCase()}}).data)||void 0===e||null===(n=e.immaterials)||void 0===n?void 0:n.edges,b=d.galleries,w=b.artworks,C=b.columns,k=b.image,S=(0,h.useState)(!1),T=S[0],A=S[1],E=(0,h.useState)(!1),I=E[0],M=E[1],O=(0,h.useState)(!1),P=O[0],R=O[1],F=(0,h.useState)(""),Z=F[0],D=F[1],G=(0,h.useState)(""),U=G[0],L=G[1],W=(0,h.useState)(""),H=W[0],V=W[1],$=(0,h.useState)(""),q=$[0],z=$[1],Q=(0,h.useState)(""),X=Q[0],B=Q[1],J=(0,h.useState)(""),K=J[0],Y=J[1],ee=(0,h.useState)(!0),ne=ee[0],te=ee[1],re=(0,h.useState)(!1),le=re[0],ie=re[1];(0,h.useEffect)((function(){var e;document.body.classList.add("galleryPage"),e="CNAP"===d.title?{plainColor:"black",lightColor:"lightgrey",mediumColor:"grey",textColor:"white"}:(0,p.f)(d.immaterialId),document.documentElement.style.setProperty("--plainColor",e.plainColor),document.documentElement.style.setProperty("--lightColor",e.lightColor),document.documentElement.style.setProperty("--mediumColor",e.mediumColor),document.documentElement.style.setProperty("--textColor",e.textColor)}),[d]),(0,h.useEffect)((function(){T||I||le?document.body.classList.add("modal-open"):document.body.classList.remove("modal-open")}),[T,I,le]);var ae=function(e,n,t,r,l,i,a,s){"html"===l&&A(!0),"audio"===l&&M(!0),"video"===l&&R(!0),B(n),z(t),Y(r),D(i),L(a),V(s),window.scrollTo(0,0),te(!1)},se=d.galleries.annee,oe=m.filter((function(e){var n=!1;return e.node.galleries.annee==se&&(n=!0),"CNAP"===e.node.title&&(n=!1),n}));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.default,{children:[(0,r.jsx)("title",{children:d.title}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.Z,{archives:d.galleries.annee!=y.V,gallery:{immaterialId:d.immaterialId,title:d.title,city:d.galleries.city},artwork:{artist:X,name:q,date:K},allGalleries:oe,handleCloseArtwork:function(e){A(!1),M(!1),R(!1),B(""),z(""),Y(""),D(""),L(""),V(""),window.scrollTo(0,0),te(!0)},naviguateGalleries:ne,menuOpen:le,handleToggleMenu:function(e){T||I||P||ie(!le)}}),(0,r.jsxs)("div",{id:"main-gallery",children:[(0,r.jsxs)("div",{id:"presGallery",children:[(null===k||void 0===k?void 0:k.sourceUrl)&&(0,r.jsx)("img",{src:k.sourceUrl})||(0,r.jsx)("img",{src:"/blankGallery.png",alt:""}),(0,r.jsx)("h3",{children:d.galleries.subtitle}),(0,r.jsx)("div",{id:"galleryContact",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{className:"emptyCell",children:o("title")}),(0,r.jsxs)("li",{className:"textCell",children:[d.galleries.email&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"mailto:".concat(d.galleries.email),children:"@"}),(0,r.jsx)("br",{})]}),d.galleries.phone&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"tel:".concat(d.galleries.phone),children:"T."}),(0,r.jsx)("br",{})]}),d.galleries.website&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{className:"icon-www",href:"".concat(d.galleries.website)}),(0,r.jsx)("br",{})]})]})]})})]}),w&&(0,r.jsx)("div",{id:"cartels",children:w.map((function(e,n){return(0,r.jsx)(N,{data:e,handleOpenArtwork:ae,contact:{email:d.galleries.email,phone:d.galleries.phone,website:d.galleries.website,annee:d.galleries.annee}},n)}))}),C&&(0,r.jsx)("div",{id:"detailsGallery",children:C.map((function(e,n){return(0,r.jsx)(_,{data:e},n)}))})]}),T&&Z&&(0,r.jsx)("div",{id:"textWork",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{className:"emptyCell",children:o("title")}),(0,r.jsx)("li",{className:"textCell",dangerouslySetInnerHTML:{__html:Z}})]})}),I&&(0,r.jsx)(f,{mediaItemUrl:U}),P&&(0,r.jsx)("div",{id:"videoWork",children:(0,r.jsx)("video",{autoPlay:!0,children:(0,r.jsx)("source",{src:H,type:"video/mp4"})})}),(0,r.jsx)(a.Z,{})]})}function _(e){var n=e.data;return null!==n&&void 0!==n&&n.column?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"columnDetails",dangerouslySetInnerHTML:{__html:n.column}})}):(0,r.jsx)(r.Fragment,{})}function N(e){var n=e.data,t=e.handleOpenArtwork,l=e.contact,i=(0,x.Z)("common"),a=i.t,s=(i.lang,"");return s="double"===n.boxSize?"cartelDouble":"cartelSimple",l.annee==y._&&(s+=" cartelHover"),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:s,children:[(0,r.jsxs)("div",{className:"double"===n.boxSize?"cartelDoubleCartel":"",onClick:l.annee==y._?function(e){var r,l;t(e,n.artist,n.artworkName,n.date,n.artworkType,n.html,null===(r=n.audio)||void 0===r?void 0:r.mediaItemUrl,null===(l=n.video)||void 0===l?void 0:l.mediaItemUrl)}:void 0,children:[(0,r.jsx)("p",{children:(0,r.jsx)("b",{children:n.artist})}),(0,r.jsx)("div",{className:"titreMedium",dangerouslySetInnerHTML:{__html:"<p><i>".concat(n.artworkName).concat(n.date?", "+n.date:"","</i> ").concat(n.description,"</p>")}})]}),(0,r.jsxs)("div",{className:"price",children:[n.price,(0,r.jsxs)("span",{className:"directContact",children:[l.email?(0,r.jsxs)(r.Fragment,{children:["\u2003",(0,r.jsx)("a",{href:"mailto:".concat(l.email,"?subject=").concat(a("title")," : ").concat(n.artist," - ").concat(n.artworkName).split("&").join(" "),children:"@"})]}):"",l.phone?(0,r.jsxs)(r.Fragment,{children:["\u2003",(0,r.jsx)("a",{href:"tel:".concat(l.phone),children:"T."})]}):""]})]}),n.comments&&(0,r.jsx)("div",{className:"cartelDoubleCommentaire",dangerouslySetInnerHTML:{__html:n.comments}})]})})}},5646:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gallery/[slug]",function(){return t(2162)}])}},function(e){e.O(0,[945,774,888,179],(function(){return n=5646,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.