1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2656,1848],{2656:function(e,r,n){n.r(r);var i=n(85893),t=n(67294),l=n(21608),o=n(31555),a=n(36968),c=(n(20239),n(7126)),s=n.n(c),d=n(85739),u=n(72045),f=n(41848),h=n(98782),m=n(17886);r.default=function(e){var r,n=e.data,c=e.isMobile,v=void 0!==c&&c,p=(0,t.useState)(!0),w=p[0],g=p[1],_=(0,h.Z)(v?"":(null===n||void 0===n||null===(r=n.meta)||void 0===r?void 0:r.field_crowdriff_id)||"");if((0,t.useEffect)((function(){v&&g(!1)}),[v]),n){var j=(null===n||void 0===n?void 0:n.meta)||{},x=j.field_title,b=j.body,y=j.field_crowdriff_id,S=j.read,N=j.type_contenu,k=j.field_paragraph_seating_capacity,M=j.field_paragraph_eating_time,Z=void 0===M?[]:M,T=j.field_paragraph_attire,C=j.field_bars_practical_information,E=void 0===C?[]:C,O=S||{},A=O.read_more_mobile,F=O.read_less_mobile,B=k||{},I=B.number_of_seat_label,L=B.field_number_of_seats,R=B.field_description,q=T||{},H=q.label,P=q.item,z=void 0===P?[]:P;return(0,i.jsxs)("div",{className:s().itemViews,children:[x&&(0,i.jsx)("h2",{className:s().titleH3,children:x}),(0,i.jsxs)(l.Z,{className:s().contentView,children:[(0,i.jsxs)(o.Z,{md:7,xl:8,className:"".concat(s().richtext," ").concat(s().itemText),children:[(0,d.Z)(b||""),(0,i.jsx)("div",{className:"".concat(s().praticInfo," ").concat(v&&!w?s().hidden:""),children:"restaurant"===N?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:s().wrapper,children:(0,i.jsxs)("ul",{children:[k&&(0,i.jsxs)("li",{children:[I&&L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("strong",{children:[I,":"]})," ",L]}),R&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),R]})]}),Z.length>0&&(0,i.jsx)("li",{children:Z.map((function(e){var r=e||{},n=r.type_eating_time,l=r.field_description;return n&&l&&(0,i.jsxs)(t.Fragment,{children:[(0,i.jsxs)("strong",{children:[n," :"]})," ",l,(0,i.jsx)("br",{})]},(0,u.Z)())}))})]})}),(0,i.jsx)("div",{className:s().wrapper,children:T&&(0,i.jsxs)("p",{children:[H&&(0,i.jsxs)("strong",{children:[H," :"]}),(null===z||void 0===z?void 0:z.length)>0&&(0,i.jsx)("br",{}),z.map((function(e){var r=e||{},n=r.field_day_part,l=r.field_attire_description,o=r.field_description;return(0,i.jsxs)(t.Fragment,{children:[n&&l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("strong",{children:[n,":"]})," ",l]})," ",o&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),"(",o,")"]}),(0,i.jsx)("br",{})]},(0,u.Z)())}))]})})]}):(0,i.jsx)("div",{className:s().wrapperBar,children:E.length>0&&(0,i.jsx)("ul",{children:E.map((function(e){var r=(e||{}).field_details,n=void 0===r?"":r;return n&&(0,i.jsx)("li",{children:(0,i.jsx)("strong",{children:n})},(0,u.Z)())}))})})}),v&&(w?(0,i.jsx)(m.Z,{onClick:function(){return g(!1)},className:s().btnMoreRestoLess,title:F}):(0,i.jsx)(m.Z,{onClick:function(){return g(!0)},className:s().btnMoreResto,title:A}))]}),(0,i.jsx)(o.Z,{md:5,xl:4,className:s().contentImages,children:(0,i.jsxs)("div",{className:"crowdriffGalleryContainer showMobile",children:[_&&(0,i.jsx)("div",{className:s().loadingCrowdRiffMini,children:(0,i.jsx)(a.Z,{animation:"border"})}),(0,i.jsx)(f.default,{id:y||""})]})})]})]})}}},17886:function(e,r,n){var i=n(85893);r.Z=function(e){var r=e.title,n=e.onClick,t=e.className,l=void 0===t?"":t;return r&&(0,i.jsx)("button",{type:"button",className:"".concat(l," moreLink"),onClick:n,children:(0,i.jsx)("span",{children:r})})}},41848:function(e,r,n){n.r(r);var i=n(85893),t=n(67294),l=n(58299),o=n(7126),a=n.n(o),c=n(32916),s=n(46066);function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=e[n];return i}function u(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(r){u(e,r,n[r])}))}return e}function h(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,t,l=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(l.push(i.value),!r||l.length!==r);o=!0);}catch(c){a=!0,t=c}finally{try{o||null==n.return||n.return()}finally{if(a)throw t}}return l}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return d(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,r)}
1(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.default=function(e){var r=e.id,n=(e.async,e.isBlog),o=void 0!==n&&n,d=e.isMobile,u=void 0!==d&&d,m=(0,t.useRef)(null),v=(0,t.useState)(!0),p=v[0],w=v[1],g=(0,t.useState)(!1),_=g[0],j=g[1],x=(0,t.useState)([]),b=x[0],y=x[1];(0,c.Z)(m,(function(){j(!0)}));var S=(0,t.useMemo)((function(){return u?{dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,infinite:!1,autoplay:!1,arrows:!1,swipeToSlide:!0}:{dots:!0,speed:500,slidesToShow:Math.min(3,b.length),slidesToScroll:1,infinite:!1,autoplay:!1,arrows:!1,variableWidth:!0,swipeToSlide:!0}}),[b,u]);if((0,t.useEffect)((function(){var e,n,i=o||_,t=function(){if(!m.current)return[];var e=new Map;return Array.from(m.current.querySelectorAll("img.asset__img")).forEach((function(r){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";var r=e.split(",").map((function(e){return e.trim()})).map((function(e){var r=h(e.split(/\s+/),2),n=r[0],i=r[1];return{url:n,size:Number.parseInt(i,10)||0}})).filter((function(e){return e.url}));return r.length?(r.sort((function(e,r){return r.size-e.size})),r[0].url):""}(r.srcset),i=n||r.src||r.currentSrc,t=null===i||void 0===i?void 0:i.replace(/\/125\.jpg(\?.*)?$/i,"/1080.jpg$1");t&&!e.has(t)&&e.set(t,{url:t,width:r.naturalWidth||r.width||0,height:r.naturalHeight||r.height||0,lightboxButton:r.closest("button.cr__asset__button")})})),Array.from(e.values())};if(document)if(p)w(!1);else if(r)if(i){n=new MutationObserver((function(){!function(){var e=t();y(e)}()})),m.current&&n.observe(m.current,{childList:!0,subtree:!0});var a=document.createElement("script");a.src="".concat(l.T3),a.id=r,a.defer=!0,m.current.appendChild(a),e=m.current}else{var c=document.createElement("span");c.id="".concat(r,"span"),c.style="display: none; visibility: hidden;",m.current.appendChild(c),e=m.current}return function(){if(null===n||void 0===n||n.disconnect(),(null===e||void 0===e?void 0:e.innerHTML)&&(e.innerHTML=""),(null===window||void 0===window?void 0:window.crowdriff__gallery)&&r){var i,t=r.replace("cr-init__","cr__");window.crowdriff__gallery.rendered=null===window||void 0===window||null===(i=window.crowdriff__gallery)||void 0===i?void 0:i.rendered.filter((function(e){return e!==t}))}}}),[p,r,o,_]),r)return o&&b.length>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:m,style:{display:"none"}}),(0,i.jsx)("div",{className:"block-slider--with-normal-pagination block-slider--with-normal-pagination-alto-bullet",children:(0,i.jsx)("div",{className:"slick-custom",children:(0,t.createElement)(s.Z,f({},S,{key:b.map((function(e){return e.url})).join("|"),className:"crowdriffBlogSlider"}),b.map((function(e,r){return(0,i.jsx)("div",{className:a().crowdriffBlogItem,style:u?void 0:{width:Math.max(220,Math.round((e.width||500)/(e.height||500)*500))},children:(0,i.jsx)("img",{src:e.url,alt:"crowdriff-".concat(r+1),onClick:function(){var r;return null===(r=e.lightboxButton)||void 0===r?void 0:r.click()},style:{cursor:e.lightboxButton?"pointer":void 0,width:"100%",height:u?"450px":"clamp(220px, 25vw, 500px)",objectFit:"cover",paddingRight:u?0:5}})},e.url||r)})))})})]}):(0,i.jsx)("div",{ref:m,className:a().crowdriffGallery})}},98782:function(e,r,n){var i=n(67294);r.Z=function(e){var r=(0,i.useState)(!0),n=r[0],t=r[1];return(0,i.useEffect)((function(){var r=0;!function n(){if(document&&e){var i,l,o,a,c=document.querySelector("#".concat(e.replace("cr-init","cr")," .cr__gallery .isLoaded")),s=document.querySelector("#".concat(e)),d=document.querySelector("#".concat(e,"span"));if(r++,c?t(!1):s||d?(t(!0),setTimeout(n,500)):r>4?t(!1):(t(!0),setTimeout(n,500)),(null===window||void 0===window||null===(i=window.crowdriff__gallery)||void 0===i||null===(l=i.waiting)||void 0===l?void 0:l.length)>0&&(null===window||void 0===window||null===(o=window.crowdriff__gallery)||void 0===o?void 0:o.processQueue))null===window||void 0===window||null===(a=window.crowdriff__gallery)||void 0===a||a.processQueue()}else t(!1)}()}),[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.